var _yt_player={};(function(g){var window=this;/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Google LLC SPDX-License-Identifier: Apache-2.0 */ /* Copyright Google LLC All Rights Reserved. Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.dev/license */ /* (The MIT License) Copyright (C) 2014 by Vitaly Puzrin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ----------------------------------------------------------------------------- Ported from zlib, which is under the following license https://github.com/madler/zlib/blob/master/zlib.h zlib.h -- interface of the 'zlib' general purpose compression library version 1.2.8, April 28th, 2013 Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. Jean-loup Gailly Mark Adler jloup@gzip.org madler@alumni.caltech.edu The data format used by the zlib library is described by RFCs (Request for Comments) 1950 to 1952 in the files http://tools.ietf.org/html/rfc1950 (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format). */ /* Copyright 2015-present Dan Abramov SPDX-License-Identifier: MIT */ 'use strict';var f="indexOf{G{file{cmo=pf{length{url{call{{path{clone{startsWith{rr?[1-9].*\\.c\\.youtube\\.com${1969-12-31T23:00:01.000-01:00{//{get{slice{split{fallback_count{/videoplayback{Y{1969-12-31T18:11:52.000-05:45{1969-12-31T19:45:01.000-04:15{push{local{set{1970-01-01T01:31:41.000+01:30{match{X{mn{toString{redirector.googlevideo.com{={/{&{a1.googlevideo.com{reverse{Sq{undefined{\\.a1\\.googlevideo\\.com${signatureCipher{NaN{forEach{pop{1{unshift{throw{splice{https://local{scheme{V{http://local{fromCharCode{oD{fvip{sp{youtube.player.web_20260210_11_RC00{1970-01-01T02:03:38.000+02:00{rr{join{S{lq{/initplayback{cmo=td{\\.googlevideo\\.com${mB{gmtemP1cgoEjqAB8d_-_w8_{playerfallback{mg{://{index.m3u8{n{1969-12-31T12:46:03.000-11:15{,{,;[,{s{Untrusted URL{www.youtube.com{assign{/file/index.m3u8{%3D{xj{r{cmo{cW{/api/manifest{replace{1970-01-01T08:16:11.000+08:15".split("{"), RK,Ns,We,Sx,s3,sKD,E3,TT,O3,xB,IxB,FP,oK,Rn,$z,In,NKT,pex,vp,dx,yz,z3,lxH,Et,axH,ec,J3,vBB,kz,BKK,HwT,q3e,dsH,uR,Vz,Mg,rx,on,D2,ls,txH,aT,vl,Hl,jKx,q$,ds,t_,jL,Wl,SL,nj,TK,J_,kT,eL,QX,Oe,xT,iwq,z22,mu,Usq,cl,Xr,VX,Lj,GTq,oT,DI,Rg,KP,s5,Ig,pP,li,ag,nBK,HE,EBK,qE,fP,yQ,jl,ii,zZ,GZ,gu,Sl,nP,mse,PTT,J1,kw,Yw,el,O5,QQ,xw,md,cD3,VQ,ME,wu,S3x,FG,XeH,uPK,rDe,CT3,K0,sU,aF,v_,H_,B_,dM,tx,yg,f0,UU,RF,n0,SO,TF,EU,bj,ks,Ys,eO,wex,Qg,xs,mM,P_,Z_,c_,uj,Vg,C0,Fb,oF,RR,Fq2,sI,KK,$g,D_,oBK,vo,Bo,Ho,qB,dk,yo,fK,jT, iu,zY,UI,snK,GY,Wo,gk,$gK,I2e,ppq,ST,a2B,nK,EI,vzT,JR,TY,eT,OI,qtT,Qo,XB,Vo,uu,m_,f2H,rk,oR,bJ,Rh,Dc,hr,sk,$c,pI,lJ,ah,v$,H$,dd,tr,jW,iJ,z$,Uk,Ar,gd,W$,SW,nI,Ek,kc,Yc,eW,Ok,Q4,jnK,V4,Xz,ZW,m5,c$,uJ,LI,wd,A3H,Fz,oh,znw,DW,bq,Ra,$6,Ia,p8,lq,UgB,gz2,BN,HN,dP,qZ,nzT,jC,t9,EzD,J3D,Uu,iq,Go,gP,WN,SC,zo,Eu,n8,J9,To,x6,QS,k6,eC,m$,cN,uq,Xw,VS,C8,wP,Fw,oa,MZ,L8,rP,bA,Rk,hV,KR,$0,Ik,NP,pR,lA,Ou,ak,Bv,Hv,qP,fR,yR,tV,jZ,AV,za,Ga,gH,Wv,JV,k0,Y0,eZ,U4,O4,QR,Pv,mQ,ZZ,cv,uA,CR,MP,rH,FU,bd,RH,he,Kq,sd,$q,IH,Nu,pq, ld,aH,vD,BD,dW,ye,Ae,id,fq,Ud,gW,WD,xge,QnP,Ed,Je,kq,xq,mgP,mK,PD,ZV,cD,XN,Ve,Cq,Mu,rW,Lq,wW,FN,oH,DV,bl,hS,KV,$o,pV,ll,v6,H6,dD,fV,yT,tS,jX,AS,XpP,Us,G9,W6,SX,CRD,nV,T9,ko,McK,mk,P6,ZU,c6,ul,Xg,LUK,wpx,VT,CV,Ml,LV,Fg,oi,DU,b4,wD,RZ,oz2,ha,DgK,Kf,sV,KuH,sTT,aZ,vk,Bk,Hk,q3,d3,ff,yd,ta,Aa,jD,$$B,NsT,pls,aIe,zg,UV,Gg,vTe,Bsw,HjD,qes,SD,nf,EV,d$q,fIw,Tg,Ja,Yl,eD,OV,Qd,y_K,xl,mR,Pk,tLT,ZT,jTq,ck,ijK,XC,Cf,zc2,r3,ETH,GKw,gTK,Wue,Sex,nT3,Lf,w3,Tsw,oZ,DT,J_B,kKT,YeD,bV,ecH,QTP,hK,RS,x$e,KS,m$q,IS,pS,$3,Ps2, sE,vy,c_e,urH,dp,VL2,CsK,MLT,jd,zW,AK,tK,UE,GW,r_H,Wy,wl2,Sd,EE,TW,Fu2,JK,oTH,Roq,INq,OE,NuK,ed,m7,ZQ,k3,uV,pEK,Py,lNT,aU,H9,v9,BuH,HPT,q5x,dEB,fNB,yF,to,jG,y1P,tlx,iX,zk,jgP,iPq,W9,zox,SG,n2,UE3,xW,mt,WdD,P9,S5B,ZM,c9,uX,XE,VF,C2,nwK,EwT,FE,Rv,DM,Tux,kZH,Iv,eox,Nq,pU,Qgs,xE3,OPB,mE3,ZPH,c1K,uGT,gwx,Jo,GZT,l5,vj,Hj,Vlx,qq,dq,yb,i5,CiT,tY,Wj,Sy,GD,MlP,zD,AY,JY,ey,r1K,LdT,ZG,u5,Vb,wE2,wq,ov,LU,Ki,m2,CU,owH,RG,DG,bK,sH,Fde,ht,aG,Bd,yq,DET,tt,At,b0T,iK,UH,G1,hhT,Wd,SS,KM3,k5,T1,Qq,Jt,OH,uK,NMx,p_K,a_H, cd,Mf,vsH,Li,BMe,Dg,wS,H0D,qUT,dNP,f_T,hy,Axx,$Q,pT,UNP,WMe,SUK,nsT,Ese,gsq,GFK,a_,q2,vc,TMK,fT,ym,ty,Ay,i6,kF3,YUH,ehs,xNw,O0D,UW,GU,Wc,g$,mNK,TU,Z03,nT,Pjx,YQ,kQ,X_q,VOK,CjB,MOs,eM,Qm,w_2,FM3,xQ,Za,cc,mw,Pc,RSK,Xx,u6,M2,r$,w$,LT,hSx,K_B,sRx,RI,hl,sj,Nkq,Kl,NW,lL,pl,$BD,qW,d0,fl,yv,tl,jB,Al,iL,z4,Uj,lcK,G4,g0,WP,SB,acK,vg3,Bk3,HKD,N2,nl,Ej,T4,Jl,kO,iKx,GYx,W_K,SIe,PP,EgT,cP,uL,JRx,Cl,kYH,MW,Ll,w0,oI,DY,hc,K5,sB,vX,YIx,HX,qv,OKw,d4,f5,tc,ZKe,QR2,g4,WX,SI,n5,EB,TS,Jc,MTT,eI,OB,QI,xd,rRD,ZP,cX,uI,XA, VI,C5,r4,L5,w4,FA,DP,bw,RE,hq,Kp,sl,$N,IE,N9,pp,lw,aE,vQ,BQ,jn,Aq,iw,zp,L_s,Ul,gA,WQ,Sn,Jq,kN,YN,en,xN,mn,PQ,woK,F_x,Ze,ogB,DBs,uw,wA,F6,RdT,hdx,b1,hQ,KD,$_,sb,Nc,pD,aA,vg,she,fD,tQ,j8,AQ,i1,GE,go,Ub,Wg,R_,nD,Eb,S8,yB,TE,k_,aWK,e8,u1,Xh,Zi,CD,Mc,HIq,wo,qkK,Fh,oA,fW2,iIw,yrP,jh2,ArT,Bdw,bG,G$H,gcw,KX,s7,Skw,a$,ncH,vu,Bu,Hu,qj,fX,tN,jP,Ec2,AN,iG,Jr3,GJ,Wu,SP,nX,E7,TJ,JN,kE,YE,O7,Ykq,Q5,OIH,PJ2,xKx,mK2,ZIe,uzT,VWT,CJD,X$B,rre,cu,uG,CX,L5q,w$T,V5,ocx,DKH,b8T,$Z2,saD,Rz,h$,Kk,sO,IzT,az,NPB,pNw,d8,fk,yJ, azK,v6q,H8K,dZx,fzK,iQ,WL,nk,k9,Y9,e5,OO,PL,tCP,jax,A9q,i8x,uQ,z$q,UZK,VJ,Ck,g6x,MC,w8,E6D,J9T,koK,e$T,QaT,xZH,n6P,mZT,oz,c92,uw2,Ko,XND,VCB,IY,CqP,MCT,r9q,L$B,vW,wNB,F$T,o63,DZK,bR3,RsT,hs3,KQB,$PK,qr,NHK,pvs,lZD,aZT,v0x,BHP,fo,yk,t7,jw,dPT,A7,tZ2,yVw,HRK,jkP,fZT,q4K,AVT,iRe,zsx,UPe,t1,Gax,g0P,WQx,S4K,n0T,Y4K,E0P,Sw,no,TP,QkT,PA2,mPB,Eo,YM,ZRT,Qk,cVK,Xv2,Zw,uUs,wvP,VZD,cW,FQT,uy,bqx,o0D,DPx,R1e,Vk,KKw,sHP,$uP,IV3,NWP,pDH,lV3,h1T,vqw,BWH,HqP,yeD,fV2,qdK,jHD,wI,Aew,iqw,z1w,UuP,Dw,gqe,WK3,b$,nq2,TWB, EqP,Jex,e1K,kdx,aq,H2,B2,$X,OqT,v2,qt,QHP,fQ,Pde,muK,j$,tF,i$,UM,GR,W2,Zqq,nQ,XDs,TR,JF,VYT,CdH,req,oqx,LKx,wDs,FKK,kU,OM,YU,R5H,Zk,P2,mI,u$,siK,aU2,BDH,lUK,p62,voH,CQ,Fl,tXx,HVT,qsx,fUT,KkD,Sse,IJ,Wkw,e5K,goP,VM,aJ,Dk,si,noK,wy,IU3,$lH,NDq,ry,G93,dz,X62,ug2,A2,Clx,MXq,im,rSP,LkK,w6w,ooT,Dlx,Gn,RNT,gz,hNw,KRK,$3T,ITw,SU,pkP,aTB,nd,vlK,Ei,Tn,J2,B3T,HfT,jZH,Qp,P7,glP,nlx,JaD,kgT,YVq,oJ,eNw,Ofw,wz,xPB,rz,FX,Ld,c7,$8,I1,pW,l2,a1,x3T,vY,m33,P42,qU,caw,uCq,XkT,VD2,th,C43,MDH,rax,jv,LRB,wkw,FRs,Ah,ol3,D3x, i2,bSq,hQT,zr,K7s,sS3,$5K,Un,Gr,gm,IQx,NpH,pyw,lQP,aQq,v3D,RY,Bpw,En,Tr,HSK,d53,k8,yKK,fQP,ev,tdH,On,jSe,U5e,AKK,iSD,zQq,g3x,SE3,E3w,YEH,JKH,kWx,x8,mp,PY,ZO,QST,x5K,m5H,cY,u2,X3,cK2,ZST,uax,Xyx,rm,Vdw,MdH,DO,bM,wyP,F7s,o3T,b2D,RfK,KtT,sUq,ID,p9T,lMx,aD,vWx,BI,H2K,HI,q0,dC,qhq,dTT,fY,Bas,yx,tJ,yow,fMx,AJ,zfD,UT3,zm,Gm,Gks,EC,Tm,gWw,YY,kY,WtK,JJ,EWe,TaT,Jox,kk3,Yhs,efD,O2w,ea,fw,nWB,PX3,OC,coe,uE3,ZC,X9x,xY,mv,VGP,cI,MGq,Lt3,uM,XV,w9H,FtP,oWB,DTB,bUx,IG3,DC,svB,h7B,R7x,K2x,pje,aGx,vXH,Rr,HUD,p9,W23, ln,ar,nXK,JYT,BF,HF,kDs,f9,qh,YqH,e7T,OUP,QvD,xqD,P5T,d5,ZUK,Vyx,MyT,L22,wj2,C5K,oXP,DqK,hvK,sGD,Rve,$fD,NS2,tj,lgT,pd3,jm,v5s,Aj,qHx,dfB,zM,fge,g5,tSB,GM,WF,Sm,At2,ET,zvB,n9,Ufe,Jj,G1q,TM,Yv,em,un,VA,WrP,w5,SHs,n5H,E5x,TS3,g5P,k1D,XI,OiT,QGe,xfq,mfq,JtH,xv,OT,PF,PKB,C9,cF,QA,KM,r5,Zd,or,Dd,cte,uDT,$m,r,MS2,Id,N1,rtx,Fr2,o53,ad,v8,bT3,B8,s_B,IaB,pcK,laq,q1,aaT,vQK,B$T,jz,qWx,d2P,HTe,faD,Uv,gt,Sz,nM,Ev,Tc,yyT,JB,Gc,Ym,ez,Ov,Qf,xm,j_x,Aye,iTT,zlK,U2s,GUx,ml,gQ3,Wwx,SWP,P8,nQ3,EQ2,T$T,uU,C6x,gB,IYD, WzT,N0q,Sjx,nO2,EOP,k4B,T0x,Sb,JlK,Yje,e9w,QIq,Ol2,PLK,xWs,mWH,clH,ZlD,u7w,XPD,kb,VBH,rlB,CLs,Lzs,MB3,wPx,FzK,oOT,DWT,b5w,RPD,hPH,KAs,dvs,fP2,ycB,tIw,jf3,Qh,Ace,i5P,zPx,UvB,GS3,gdw,WAT,SBB,EdD,P5,ZA,c5,ua,XJ,rj,T4B,rB,JcT,kSH,YBs,ePs,O5w,DA,Qfx,tR,pw,bC,Rc,xvx,hk,K6,sK,$S,Ic,NS,mvH,p6,lC,PIK,Z5K,uAw,VIH,vz,Hz,CIe,MIT,rcB,LAe,qS,wX2,dV,f6,y3,jr,Ak,iC,zh,UK,gV,Wz,Sr,DvD,bp2,RyD,hyD,sEe,$9H,Ie3,NAB,pQH,leq,Jk,vNw,HpD,qlP,d9w,er,kS,YS,Q3,feT,yqx,OK,tnK,Aqx,zyx,Z3,GpT,Wn3,gNK,Sl2,nNB,ENT,uC,Xu,V3,TAx, Jqe,kps,Yl3,eyH,Ops,QE3,x9H,m9T,MS,PwT,Zpw,rV,wV,cqT,oc,u6q,XQT,Vns,Cwx,MnP,D3,rqe,Is,NL,wQK,pA,d1,as,tu,RXK,NoK,hX3,pgK,ai2,v_x,lie,Bow,HDP,fiT,yQx,jAq,iDq,g_P,hf,KJ,E_x,JQx,ODT,$4,QAx,kED,IN,NI,pJ,lS,P1T,XgP,ZD2,L8B,hG3,RGx,wg2,KWx,H4,o_P,F8x,I5B,l5x,puH,HXB,a5K,Ti,Jf,tPx,eK,j$T,nE3,S7H,WWK,GJs,gE3,iXq,TjK,EEe,zGe,xjH,Q$B,PGT,uS,rNT,ZXP,uOB,ANK,x4,ZF,kJs,JNT,OXB,oED,m3,LWB,RqB,szq,Ims,pLH,v9B,B8s,qOs,fmT,t5s,y$H,UCw,A$s,jze,G6B,n93,E9T,T8P,J$x,T5,k63,eqx,tM,jt,XLq,V5P,u_w,CQK,AB,dcw,AM,ip,zG,UF, r$T,LLB,wLx,mx,gT,FLx,o9H,Wq,boP,R8K,DCP,h82,KsT,EK,sYx,$r2,AQD,IwT,iU,hM,lU,pW2,lwe,s$B,q7T,k4,yNx,lmx,HkK,g9D,qoB,Hq,q6,I0,$H,aN,lp,awq,Dcx,Sbx,YbB,eXe,xcT,cQP,C1e,bXw,Njw,vEP,Bjx,djK,f5T,DjB,hqP,$CD,N8e,amK,SOB,ZkT,Ju,gMT,y7D,kH,tw2,EF,ike,a0,zq3,VB,Wsq,mD,L9,Mh,YHs,nM3,OF,EM2,mS,Pq,ZH,TIP,J7s,up,cq,X4,kPK,VU,Cg,YoK,M6,QY2,OoK,e83,rT,mrH,hX,PyK,ZoP,c7K,ujT,Vw2,Cye,r7P,wWH,FsP,Zu,oMP,$I,Ie,NJ,pG,Dre,bQs,lD,ae,vJ,R_2,h_T,HJ,yj,tX,iD,tz,jb,W5,ED,GC,Yb,eb,Tu,Jz,U0,zC,KIx,a5,B5,qD,f4,zu,Gu,UD,$t2,IkB, nG,lkB,akK,E0,JX,ByD,vUx,HQ3,kI,YI,O0,xI,mF,dtx,fk3,t$T,PJ,uD,AFe,Z$,iQB,z_w,yFe,jqe,Ut2,GRK,gUK,SMq,WI2,EUq,JFe,kRq,Ty3,YMT,e_3,Qq2,mtT,P$K,wn,FW,ZQw,cFe,oe,ulK,D$,X2K,V$H,C$3,R8,M$e,rFw,KC,sx,w2B,FIx,oUH,RLw,pC,a8,hLe,IqH,tUP,jJe,d9,qiT,p7B,y2T,aqB,tP,BC,NzK,$xP,sJP,KB2,yc,HC,fC,zLe,AP,i9,zf,Ux,Gf,g9,UxH,WC,S9,gJx,WBH,Ex,ka,EJ2,Tf,JP,Qc,Ya,knK,YiH,PC,eLP,Z8,mxH,Pmx,MA,ZdK,c2x,u9,X1,Vc,CC,r9,LC,w9,F1,o8,uXT,D8,X7q,bh,Rm,Cms,VUq,MUs,r2T,hU,KO,sP,w7K,Im,pO,lh,FBx,am,vt,Ht,q8,dX,oJx,Dxq,bWe,fO,RHD, hHq,yN,tU,KpD,s1K,ji,AU,$U2,IO3,Nmw,pYe,lO2,zL,UP,GL,aOx,v8e,BmH,Wt,Si,HWw,qnD,dUK,fOB,yhD,tvD,j1D,AhH,EP,iWq,zHD,UUT,OP,n8B,E8T,TmK,me,Pt,kre,Yn2,eHP,OWw,Zp,xUH,mU3,ct,chD,XYP,Vvw,Xt,wYe,FpP,o8T,hE,DUD,bYK,hFH,vC,dxs,VN,RF2,$0T,lCx,aCH,vYH,BCx,qCK,KvT,KB,d0T,sJ,$2,Ip,fC3,yJq,pB,lg,taK,ap,jDB,AJD,va,M8,dv,zFD,gYe,gv,lqw,fq3,Wa,S4,nB,EJ,Tw,JE,SCx,OJ,JJx,kmH,nYK,EYx,TCK,QDq,YC3,eFx,OYH,my,x0K,m02,vJK,HdT,idw,j9,ZYK,Pa,cJe,XIe,PMH,VaT,Ma3,Lv2,CMT,wIx,FvT,oY2,RRK,b9B,KDx,srB,$hP,CB,IdB,Rd,N5K,wv,op,R4, hn,x2,wj,$r,I4,NH,pt,adx,a4,vvD,GmH,H9K,ft,An,dhe,OD,iv,jrB,LX,i9T,zRB,UhH,zz,GMw,gv3,T5H,EvK,WDK,nvB,STK,eRe,O9H,xhT,mh3,Z9q,Cns,Ss,nt,LDe,Ew,Tz,FDT,ovw,bMK,RrD,hrB,$1K,IuK,Nt2,p83,vmD,Bts,qvK,d1B,yBH,tzw,ABT,U1s,gmB,Ow,QP,Wlw,EmT,Ct,x1x,Yvw,PUD,ZMH,uys,X8B,cBs,r6,MH,Vzq,CUB,MzD,w6,DhT,ve,jdT,bP,hCT,pa,lAw,BBw,vbD,qDq,dDT,fAw,yzT,tbe,j5s,Azq,B0,FlT,LlB,W6w,qF,GT,dw,fa,yy,nbT,EbB,kuT,zT,Aw,TBT,jJ,iP,aj,v0,UN,eCx,Gs,gK,O4K,xDe,mDP,Z4T,gw,Q5K,W0,PaT,na,uJK,X5P,EN,b4w,kK,xK,P0,Mbx,rz3,AD,lT,w5q,Zr,c0, F6P,o4,uP,Vy,DDe,Kxx,$SK,I3K,L,La,ww,NVx,bb,l3B,a33,vSw,sz,H6w,$u,trK,jcD,Ny,Ak2,USP,tT,jp,AT,gS3,ib,Gq,Wr,Sp,nz,TVP,WxP,JkK,khq,YKH,ku,Yu,emq,O6T,QcT,xSx,mSs,PCB,xu,Oz,ep,Z6H,QK,mV,ckH,uuT,XzP,CC2,Mrs,rkH,wzK,Fxx,oSP,DSs,RI2,Pr,hIT,cr,KhB,ssK,XY,VK,Cz,N1T,$LK,pmP,lnw,ans,InK,HAw,q1x,fnH,Rt,yuD,bz,t7q,Kx,Auq,iA3,zIs,$C,ULB,G5P,It,S12,nAT,kcP,Qdq,EAK,Nn,px,lz,eIw,OAH,at,vb,Bb,Qsq,xLw,mLB,POw,cuT,Hb,Fhs,K3x,yL,sNe,IF3,NOB,p4D,lFH,aFT,v4T,BOK,HJe,jH,q6T,dIT,AH,iz,fFs,yfw,jNH,Afq,iJK,zMB,UIe,z_,Gi2,g4H, W3e,G_,n4w,JfT,SH,gE,S6x,TO3,nx,ki3,Em,Y6B,$p,OJB,QNK,xIe,T_,JH,mIT,kC,eH,uRK,X4e,MKH,rfT,QL,L3T,w4K,F3T,xC,o4q,YC,DIx,ZJs,VKK,PSB,CSH,Pb,bgs,Rpx,hpq,KSx,s0K,Zs,$6P,cb,VL,Cx,Mn,uz,IHD,pqw,lHP,NTw,aHx,vHT,Hge,qFs,rE,d6K,fHT,tt3,Lx,j0T,AMT,wE,FT,ot,nHT,SFx,TTK,gHw,vAH,JMB,WSK,GGT,igw,zpD,U6K,YFx,epe,kGP,R6,x63,sg,dLD,Lz,wL,oL,DR,Ppx,l8,hO,Zg2,a6,cMx,vA,u4T,XqB,BA,Nd,py,HA,Ky,Cp2,qd,$h,dl,fy,yY,I6,m63,Vts,tO,rMx,je,Mtx,LSx,wqT,FSB,oHe,D6T,R0s,AO,cfK,i8,zb,gAs,Whe,h0e,KFK,Gb,kh,NnD,sex,$JD,gl,Se,a$s, vIT,BnB,HGw,q0T,dJx,f$K,ee,yX2,Og,tux,QY,AXT,jeT,z0s,UJs,iGH,mc,gIB,WFq,S03,EI3,Tns,kCT,Zy,PA,JXq,e0K,u8,Qes,Xd,OGT,cXK,cA,VY,Cy,VuT,XJD,wl,Md,RM,rXK,DJ3,wJT,oIT,FFs,Ku,RZP,hZK,KXe,s8K,$Aw,I8H,N9K,pCT,$y,l8w,a8B,vaB,HCB,IM,B9T,qxP,sa,f8K,aM,iCK,gaB,WXP,Sxs,APB,qa,fu,Hx,Bx,naH,y$,zZH,vx,d2,UAP,yPH,pu,T93,t9P,JP2,kf3,Eaw,YxK,eZw,t0,OC2,xAD,mAq,Q8T,P9x,ZC3,u1K,XCq,M9T,V9D,C9T,jk,rPP,LXK,wCD,oaw,A0,io,DAx,bOK,RAq,hAs,zl,KeK,smT,$8T,IpK,NXP,ptB,lpB,apT,vpH,BXw,HOK,qPs,d8D,fpD,tiq,jmP,AUB,g2,Ua,Wx,nu,U8e, Tl,GLw,gp3,Wex,Ea,SP2,zAB,Yy,Ep2,JU2,kLK,Oa,TX2,Q$,npB,FY,hH,Wb,pJT,Yh,JO,WA,ny,Tb,mO,eAe,Gfx,Na,cx,uo,OOw,Qm2,x8H,XQ,m8w,PhH,V$,YP2,ZOx,cUT,utB,Xtx,Cu,Chx,rUT,Lex,Lu,D8B,wtT,FeT,r2,OgB,Ma,ViT,bBT,R4s,h4H,KyK,Mis,FQ,spx,$zB,I4q,Nvx,a4H,v2K,Bvw,D0,HB3,f4B,bW,UzT,yEB,AEs,z43,E2x,TvT,Ro,iBq,K_,hs,JET,kw3,WyH,t42,qJB,YJT,e43,OB2,Qpx,xzK,PgT,$i,mzT,cEK,ZBH,Xaq,uoe,Nw,Io,V4s,Cgw,M4q,rEq,LyD,p_,o2H,Dzx,btq,lW,RJK,hJw,ao,KgT,s4w,ILs,BM,HM,qw,f_,N63,yZ,d7,$Hw,pGx,lLP,aLq,vrq,B6P,Htx,qww,dHH,jh,ynK,ts2,j4e, As,AnH,itT,zJT,UH2,b6,jF2,iW,WgB,zV,U8,SwP,nrK,GV,ErD,T6x,g7,Jnq,iOx,ts,GzP,kzD,WM,xH2,mHx,Pv2,Zte,cnB,u2e,Sh,XGx,VsK,CvT,MsK,n_,E8,TV,rn3,Js,ode,wGx,Yi,ki,orK,DHw,eh,O8,baq,FgT,xi,Ruw,mY,hu3,ZB,IrT,NwH,cM,arT,XM,C_,KaB,Mw,vKT,is,L_,PM,BwK,HaT,$FB,qNe,w7,dFH,sjq,VZ,ywq,tJq,frK,jjT,FM,oo,Wa3,UFP,bH,Gsx,iaK,SNT,Awx,Tws,nKs,DB,Jws,zuT,YNe,Oaw,R7,xFT,mFK,Qje,ZaK,cwe,dAP,Px,opx,X0w,uW,I7,$n,pZ,a7,vO,VJs,BO,LaT,w0T,fZ,HO,MJs,qb,Fa2,lH,tL,dY,ya,KZ,Nb,IRx,CP3,sA,NLw,zj,u8T,DFT,lRK,aRq,vu2,HzD,BLe,qzP,sLT, prx,fRB,yTB,tpT,jLH,ATe,Gj,gY,izq,zDe,bzw,WO,UyT,Gq2,guK,Sf,WVK,Sz2,nZ,nux,Euw,TL3,JTT,Yzs,EA,kq2,Tj,eDT,OzD,QLD,my2,Pbx,xyK,JL,kn,Yn,ef,Zzs,cTB,uYT,XrK,Qa,VpK,MpK,rTH,Cbw,LVP,Z9,bxq,uH,hUs,wrq,FVx,ouB,DyD,cO,RUD,Kf2,$nT,IsK,NEK,Va,CZ,XK,Mb,lsw,ase,LZ,BET,rY,HxK,iT,wY,dnq,yHK,tHP,jts,FK,AHq,ixK,zUP,o7,D9,UnP,G_K,Sm2,ECT,TEB,JHK,k_D,YmK,eUx,OxT,QtT,mnP,xnH,h5,KE,ZxH,sf,RB,Pzq,$7,VHT,bm,rHD,lf,vs,bye,pE,LfT,Dn2,NR,aB,wbq,RY3,Bs,hYe,Hs,KcP,qR,s6B,$dB,Iy3,yu,lyB,NlP,aye,BVx,GX,vr,SR,nE,Ef,Hyx,qg3,ddq, TX,k7,Y7,j6T,iys,yOe,J5,fyx,UdK,WcK,eR,SgB,nhx,Of,Qu,x7,TlD,ghe,Ps,JO3,mC,kbw,YgH,cs,Oye,XF,xdP,md3,Q6q,P83,Zyq,cO3,ude,MR,rh,LE,CE,XA2,Ve3,wh,FF,C8T,Mex,rOP,DS,Lcw,Ddq,b3,buH,wAs,ohT,hzH,hA,KOe,K1,sMB,$aK,sY,I0x,N2q,pxs,l0P,a03,vy2,B2H,HuT,Ix,p1,Nk,qax,daw,f02,y0P,ax,tkx,jMP,A0H,l3,iuT,zzD,UaP,vw,gyx,Glw,Bw,Hw,WO2,Sa2,ny3,EyB,T2K,qk,dG,klT,tA,J0K,j0,Yax,AA,i3,ez3,QMx,xaD,max,PoP,OuK,Zuw,c0T,uQP,ze,Mk2,Xxw,CoD,UY,Ge,gG,r0B,Ww,LOx,FOw,S0,oyP,DaK,b_K,RK3,hKK,KYT,soT,$wH,n1,EY,IBs,N7q,pMT,lBK,aBq,Te, viK,B7T,q8K,dww,th2,i_T,zKT,e0,OY,GVs,giw,UwT,WYP,Qt,xj,m9,niw,S8s,JsH,kVP,Y8B,eK2,Pw,ZE,Qo2,cw,mwK,u3,Z_K,uMe,XMD,Mk,Vt,C1,bZ3,MhK,F5,ox,wMq,rG,L1,wG,FYK,oiT,DE,Iy,pn,lr,KP3,sQ,ay,$1,$be,heK,I9B,ReP,Ry,Kn,NYB,s7K,pOs,vR,l9s,a9K,BYs,BR,HZP,qAw,HR,qm,dbq,yLx,f9D,tfs,db,fn,j7H,yE,ALK,iZT,zeT,tb,jq,Ubq,Gjx,Ab,gne,WPK,UQ,ir,zO,SAx,GO,JL3,TO,kj2,YAx,Jb,eeK,Q7B,OZH,xbH,mb2,PHH,ZZK,cLs,uKD,XOT,k1,Y1,CHP,rL3,x1,LPe,FPe,m1,onK,DbH,RbT,bEx,Z7,KCx,ur,cR,sBT,ISB,lSD,aS2,FyP,VE,Cn,zmK,XS,v7x,Mm,rb,qfq,E7K,ZR, ub,bE,ThD,jse,Rb,sm,h6,Ks,Ug,D7,J5T,YfD,ebK,OEK,QBK,xRq,mRK,PfB,ZEx,E4T,Eg,Xss,v1,VRH,B1,$G,MRw,LC3,H1,wsD,qG,fs,o7P,yW,d_,ROx,ab,t6,sxK,hOw,K9K,lE,c5e,jF,Ib,uFB,ps,IE2,NG3,pwK,lET,DRe,FCs,b1T,aE3,vj3,H1K,g_,W1,c8,qYq,BG2,yAx,t0q,jxq,UG,zx,AAq,iE,A6,Gx,dkw,i1D,SF,zO3,GeB,oKs,gjx,W9e,SY3,TGP,ns,Eje,J6,njx,EG,JA3,keT,YYK,eOK,O1D,Qx2,Kz,OG,QW,P1,uE,RL,Xf,mkP,P3x,Z1H,cAx,VW,MG,w_,Xwx,C3K,M0x,rAT,wwq,oj3,Dke,Ls,L9T,$P,Rke,Ff,Cs,hkB,Ne,syK,K1x,p7,xG,al,vH,NbT,Il,c1,bY,ob,Dj,Rl,F9x,hp,Zj,r_,pRw,DGq,Raq, ha3,Fc,$ex,KiH,slB,pHK,lv3,ave,vPH,Beq,H7H,GQT,gPT,h8,qbK,S$P,nPx,KH,EPK,Wie,Jpx,kQ3,Y$K,O7x,bT,h2q,R23,nw,Kw;RK=function(b){return function(){return bT[b].apply(this,arguments)}}; g.hD=function(b,R){return bT[b]=R}; Ns=function(b,R){if(R)for(var h=0;hB.start&&h>=5;J+=Q}q=`${J.substr(0,4)} ${J.substr(4,4)} ${J.substr(8,4)} ${J.substr(12,4)} ${J.substr(16,4)}`}else q="";p={video_id_and_cpn:String(R.videoId)+" / "+q,codecs:"",dims_and_frames:"",bandwidth_kbps:`${p.toFixed(0)} Kbps`,buffer_health_seconds:`${a.toFixed(2)} s`, date:`${(new Date).toString()}`,drm_style:v?"":"display:none",drm:v,debug_info:d,extra_debug_info:"",bandwidth_style:H,network_activity_style:H,network_activity_bytes:`${l.toFixed(0)} KB`,shader_info:B,shader_info_style:B?"":"display:none",playback_categories:""};l=`${K.clientWidth}x${K.clientHeight}`+(h>1?`*${h.toFixed(2)}`:"");a="-";N.totalVideoFrames&&(a=`${N.droppedVideoFrames||0} dropped of ${N.totalVideoFrames}`);p.dims_and_frames=`${l} / ${a}`;b=b.getVolume();l=AD(R);b=`${Math.round(b)}% / ${R.V?.audio.Y? "VB":R.V?.audio.G?"DRC":`${Math.round(b*l)}%`}`;l=R.dG.toFixed(1);isFinite(Number(l))&&(b+=` (content loudness ${l}dB)`);p.volume=b;p.resolution=`${K.videoWidth}x${K.videoHeight}`;if(K=R.Y){if(b=K.video)l=b.fps,l>1&&(p.resolution+=`@${l}`),(l=N.z8)&&l.video&&(p.resolution+=` / ${l.video.width}x${l.video.height}`,l.video.fps>1&&(p.resolution+=`@${l.video.fps}`)),p.codecs=iT(K),!R.V||K.audio&&K.video?K.Ak&&(p.codecs+=` / ${K.Ak}A`):p.codecs+=` / ${iT(R.V)}`,b.G||b.primaries?(l=b.G||"unknown",l==="smpte2084"? l=`${l} (PQ)`:l==="arib-std-b67"&&(l=`${l} (HLG)`),p.color=`${l} / ${b.primaries||"unknown"}`,p.color_style=""):p.color_style="display:none";if(K.debugInfo){p.fmt_debug_info="";for(var e of K.debugInfo)p.fmt_debug_info+=`${e.label}:${e.text} `}p.fmt_debug_info_style=p.fmt_debug_info&&p.fmt_debug_info.length>0?"":"display:none"}e=R.isLivePlayback;K=R.VB;p.live_mode_style=e||K?"":"display:none";p.live_latency_style=e?"":"display:none";if(K)p.live_mode="Post-Live"+(zT(R)?" Manifestless":"");else if(e){K= N.o5;p.live_latency_secs=`${K.toFixed(2)}s`;e=zT(R)?"Manifestless, ":"";R.pm&&(e+="Windowed, ");b="Uncertain";if(K>=0&&K<120)if(R.latencyClass&&R.latencyClass!=="UNKNOWN")switch(R.latencyClass){case "NORMAL":b="Optimized for Normal Latency";break;case "LOW":b="Optimized for Low Latency";break;case "ULTRALOW":b="Optimized for Ultra Low Latency";break;default:b="Unknown Latency Setting"}else b=R.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";e+=b;(K=N.UK)&&(e+=`, seq ${K.sequence}`); p.live_mode=e}I.experiments.Mj().G.WY(bwK)?N.isGapless&&!N.F9&&(p.playback_categories=N.GI?p.playback_categories+"Gapless ":p.playback_categories+"Queued "):!N.isGapless||GT(R)&&N.F9||(p.playback_categories+="Gapless ");p.playback_categories_style=p.playback_categories?"":"display:none";p.bandwidth_samples=N.Pt;p.network_activity_samples=N.XA;p.live_latency_samples=N.bZ;p.buffer_health_samples=N.CM;I=R.Sn();if(R.cotn||I)p.cotn_and_local_media=`${R.cotn?R.cotn:"null"} / ${I}`;p.cotn_and_local_media_style= p.cotn_and_local_media?"":"display:none";gK(R,"web_player_release_debug")?(p.release_name=f[55],p.release_style=""):p.release_style="display:none";p.debug_info&&S.length>0&&p.debug_info.length+S.length<=60?p.debug_info+=" "+S:p.extra_debug_info=S;p.extra_debug_info_style=p.extra_debug_info&&p.extra_debug_info.length>0?"":"display:none";return p}; Sx=function(b,R){R&&s3(b,R)}; s3=function(b,R){var h=nw;b=b.split(".");for(var K=0;K=this.length))return this[b]}; TT=function(b,R,h){b instanceof String&&(b=String(b));for(var K=b.length-1;K>=0;K--){var I=b[K];if(R.call(h,I,K,b))return{wJ:K,wN:I}}return{wJ:-1,wN:void 0}}; g.kB=function(b,R,h){b=b.split(".");h=h||g.JD;for(var K;b.length&&(K=b.shift());)b.length||R===void 0?h[K]&&h[K]!==Object.prototype[K]?h=h[K]:h=h[K]={}:h[K]=R}; O3=function(b,R){var h=g.YB("CLOSURE_FLAGS");b=h&&h[b];return b!=null?b:R}; g.YB=function(b,R){b=b.split(".");R=R||g.JD;for(var h=0;h=0;--h)h in K&&R.call(void 0,K[h],h,b)}; g.lR=function(b,R,h){return Array.prototype.filter.call(b,R,h)}; g.an=function(b,R,h){return Array.prototype.map.call(b,R,h)}; vp=function(b,R,h){return Array.prototype.reduce.call(b,R,h)}; dx=function(b,R){return Array.prototype.some.call(b,R,void 0)}; g.fr=function(b,R,h){return Array.prototype.every.call(b,R,h)}; g.jc=function(b,R,h){R=yz(b,R,h);return R<0?null:typeof b==="string"?b.charAt(R):b[R]}; yz=function(b,R,h){const K=b.length,I=typeof b==="string"?b.split(""):b;for(let N=0;N=0;K--)if(K in I&&R.call(h,I[K],K,b))return K;return-1}; g.iR=function(b,R){return Array.prototype.indexOf.call(b,R,void 0)>=0}; z3=function(b){if(!Array.isArray(b))for(let R=b.length-1;R>=0;R--)delete b[R];b.length=0}; g.G3=function(b,R){R=Array.prototype.indexOf.call(b,R,void 0);let h;(h=R>=0)&&g.Ut(b,R);return h}; g.Ut=function(b,R){return Array.prototype.splice.call(b,R,1).length==1}; g.gx=function(b,R){R=yz(b,R);R>=0&&g.Ut(b,R)}; lxH=function(b,R){let h=0;pex(b,function(K,I){R.call(void 0,K,I,b)&&g.Ut(b,I)&&h++})}; g.Wp=function(b){return Array.prototype.concat.apply([],arguments)}; g.Sc=function(b){const R=b.length;if(R>0){const h=Array(R);for(let K=0;K>>1);let a;h?a=R.call(void 0,b[l],l,b):a=R(K,b[l]);a>0?I=l+1:(N=l,p=!a)}return p?I:-I-1}; g.Ot=function(b,R){b.sort(R||kz)}; vBB=function(b,R){const h=kz;g.Ot(b,function(K,I){return h(R(K),R(I))})}; g.Qz=function(b,R,h){if(!g.mq(b)||!g.mq(R)||b.length!=R.length)return!1;const K=b.length;h=h||BKK;for(let I=0;IR?1:b{const K=h.event,I=R[K];R.hasOwnProperty(K)?I!==null&&(h.equals(I)||(R[K]=null)):R[K]=h}); lxH(b,h=>R[h.event]===null)}; g.Z2=function(b,R,h){for(const K in b)R.call(h,b[K],K,b)}; g.cp=function(b,R,h){const K={};for(const I in b)R.call(h,b[I],I,b)&&(K[I]=b[I]);return K}; uR=function(b,R){const h={};for(const K in b)h[K]=R.call(void 0,b[K],K,b);return h}; g.XH=function(b,R,h){for(const K in b)if(R.call(h,b[K],K,b))return!0;return!1}; Vz=function(b,R){for(const h in b)if(!R.call(void 0,b[h],h,b))return!1;return!0}; g.Cr=function(b){for(const R in b)return R}; Mg=function(b){for(const R in b)return b[R]}; rx=function(b){const R=[];let h=0;for(const K in b)R[h++]=b[K];return R}; g.Lr=function(b){const R=[];let h=0;for(const K in b)R[h++]=K;return R}; g.wx=function(b,R){return b!==null&&R in b}; g.FH=function(b,R){for(const h in b)if(b[h]==R)return!0;return!1}; on=function(b,R){for(const h in b)if(R.call(void 0,b[h],h,b))return h}; D2=function(b,R){return(R=on(b,R))&&b[R]}; g.RT=function(b){for(const R in b)return!1;return!0}; g.h_=function(b){for(const R in b)delete b[R]}; g.Kj=function(b,R,h){return b!==null&&R in b?b[R]:h}; g.se=function(b,R){for(const h in b)if(!(h in R)||b[h]!==R[h])return!1;for(const h in R)if(!(h in b))return!1;return!0}; g.$T=function(b){const R={};for(const h in b)R[h]=b[h];return R}; g.IT=function(b){if(!b||typeof b!=="object")return b;if(typeof b.clone==="function")return b.clone();if(typeof Map!=="undefined"&&b instanceof Map)return new Map(b);if(typeof Set!=="undefined"&&b instanceof Set)return new Set(b);if(b instanceof Date)return new Date(b.getTime());const R=Array.isArray(b)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(b)||b instanceof DataView?{}:new b.constructor(b.length);for(const h in b)R[h]=g.IT(b[h]);return R}; g.pj=function(b,R){let h,K;for(let I=1;IK.G); g.Z2(h,(K,I)=>{K=b.X[I]!==void 0?String(b.X[I]):K.G&&K.Y!==null?String(K.Y):"";K.length>0&&(R[I]=K)},b); return R}; jKx=function(b){b=Hl(b);const R=[];g.Z2(b,(h,K)=>{K in Object.prototype||typeof h!="undefined"&&R.push([K,":",h].join(""))}); return R}; q$=function(b,R){return b.lastIndexOf(R,0)==0}; ds=function(b,R){const h=b.length-R.length;return h>=0&&b.indexOf(R,h)==h}; g.fj=function(b){return/^[\s\xa0]*$/.test(b)}; g.yX=function(b,R){return b.indexOf(R)!=-1}; t_=function(b,R){return g.yX(b.toLowerCase(),R.toLowerCase())}; g.A_=function(b,R){let h=0;b=String(b).trim().split(".");R=String(R).trim().split(".");const K=Math.max(b.length,R.length);for(let p=0;h==0&&pR?1:0}; var ADK=function(b,R,h,K,I,N,p,l,a){return is[f[6]](this,1,b,R,h,K,I,N,p,l,a)}; g.zK=function(){var b=g.JD.navigator;return b&&(b=b.userAgent)?b:""}; Wl=function(b){if(!Ue&&!GK||!gs)return!1;for(let R=0;R0:!1}; TK=function(){return nj()?!1:SL("Opera")}; J_=function(){return nj()?!1:SL("Trident")||SL("MSIE")}; kT=function(){return nj()?Wl("Microsoft Edge"):SL("Edg/")}; eL=function(){return SL("Firefox")||SL("FxiOS")}; QX=function(){return SL("Safari")&&!(Oe()||(nj()?0:SL("Coast"))||TK()||(nj()?0:SL("Edge"))||kT()||(nj()?Wl("Opera"):SL("OPR"))||eL()||SL("Silk")||SL("Android"))}; Oe=function(){return nj()?Wl("Chromium"):(SL("Chrome")||SL("CriOS"))&&!(nj()?0:SL("Edge"))||SL("Silk")}; xT=function(){return SL("Android")&&!(Oe()||eL()||TK()||SL("Silk"))}; iwq=function(b){const R={};b.forEach(h=>{R[h[0]]=h[1]}); return h=>R[h.find(K=>K in R)]||""}; z22=function(b){var R=g.zK();if(b==="Internet Explorer"){if(J_())if((b=/rv: *([\d\.]*)/.exec(R))&&b[1])R=b[1];else{b="";var h=/MSIE +([\d\.]+)/.exec(R);if(h&&h[1])if(R=/Trident\/(\d.\d)/.exec(R),h[1]=="7.0")if(R&&R[1])switch(R[1]){case "4.0":b="8.0";break;case "5.0":b="9.0";break;case "6.0":b="10.0";break;case "7.0":b="11.0"}else b="7.0";else b=h[1];R=b}else R="";return R}const K=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");h=[];let I;for(;I=K.exec(R);)h.push([I[1],I[2],I[3]||void 0]); R=iwq(h);switch(b){case "Opera":if(TK())return R(["Version","Opera"]);if(nj()?Wl("Opera"):SL("OPR"))return R(["OPR"]);break;case "Microsoft Edge":if(nj()?0:SL("Edge"))return R(["Edge"]);if(kT())return R(["Edg"]);break;case "Chromium":if(Oe())return R(["Chrome","CriOS","HeadlessChrome"])}return b==="Firefox"&&eL()||b==="Safari"&&QX()||b==="Android Browser"&&xT()||b==="Silk"&&SL("Silk")?(R=h[2])&&R[1]||"":""}; mu=function(b){if(nj()&&b!=="Silk"){var R=gs.brands.find(({brand:h})=>h===b); if(!R||!R.version)return NaN;R=R.version.split(".")}else{R=z22(b);if(R==="")return NaN;R=R.split(".")}return R.length===0?NaN:Number(R[0])}; Usq=function(){let b=null;if(!Pl)return b;try{const R=h=>h; b=Pl.createPolicy("goog#html",{createHTML:R,createScript:R,createScriptURL:R})}catch(R){}return b}; cl=function(){ZI===void 0&&(ZI=Usq());return ZI}; Xr=function(b){const R=cl();b=R?R.createScriptURL(b):b;return new us(b)}; VX=function(b){if(b instanceof us)return b.G;throw Error("");}; g.M$=function(b){if(b instanceof Cj)return b.G;throw Error("");}; Lj=function(b){return new rs(R=>R.substr(0,b.length+1).toLowerCase()===b+":")}; GTq=function(b,R=ws){if(b instanceof Cj)return b;for(let h=0;h{if(K instanceof BE)K=K.G;else throw Error("");return K}).every(K=>"data-loaded".indexOf(K)!==0))throw Error('Attribute "data-loaded" does not match any of the allowed prefixes.'); b.setAttribute("data-loaded",R)}; HE=function(b,R){b.__closure__error__context__984382||(b.__closure__error__context__984382={});b.__closure__error__context__984382.severity=R}; EBK=function(b){var R=g.YB("window.location.href");b==null&&(b='Unknown Error of type "null/undefined"');if(typeof b==="string")return{message:b,name:"Unknown error",lineNumber:"Not available",fileName:R,stack:"Not available"};let h,K;var I=!1;try{h=b.lineNumber||b.line||"Not available"}catch(N){h="Not available",I=!0}try{K=b.fileName||b.filename||b.sourceURL||g.JD.$googDebugFname||R}catch(N){K="Not available",I=!0}R=qE(b);if(!(!I&&b.lineNumber&&b.fileName&&b.stack&&b.message&&b.name)){I=b.message; if(I==null){if(b.constructor&&b.constructor instanceof Function){if(b.constructor.name)I=b.constructor.name;else if(I=b.constructor,du[I])I=du[I];else{I=String(I);if(!du[I]){const N=/function\s+([^\(]+)/m.exec(I);du[I]=N?N[1]:"[Anonymous]"}I=du[I]}I='Unknown Error of type "'+I+'"'}else I="Unknown Error of unknown type";typeof b.toString==="function"&&Object.prototype.toString!==b.toString&&(I+=": "+b.toString())}return{message:I,name:b.name||"UnknownError",lineNumber:h,fileName:K,stack:R||"Not available"}}return{message:b.message, name:b.name,lineNumber:b.lineNumber,fileName:b.fileName,stack:R}}; qE=function(b,R){R||(R={});R[fP(b)]=!0;let h=b.stack||"";var K=b.cause;K&&!R[fP(K)]&&(h+="\nCaused by: ",K.stack&&K.stack.indexOf(K.toString())==0||(h+=typeof K==="string"?K:K.message+"\n"),h+=qE(K,R));b=b.errors;if(Array.isArray(b)){K=1;let I;for(I=0;I4);I++)R[fP(b[I])]||(h+="\nInner error "+K++ +": ",b[I].stack&&b[I].stack.indexOf(b[I].toString())==0||(h+=typeof b[I]==="string"?b[I]:b[I].message+"\n"),h+=qE(b[I],R));I")!=-1&&(b=b.replace(e2T,">")),b.indexOf('"')!=-1&&(b=b.replace(OwK,""")),b.indexOf("'")!=-1&&(b=b.replace(QKT,"'")),b.indexOf("\x00")!=-1&&(b=b.replace(xsP,"�")));return b}; g.U5=function(b){return b==null?"":String(b)}; GZ=function(b){let R=0;for(let h=0;h>>0;return R}; gu=function(b){const R=Number(b);return R==0&&g.fj(b)?NaN:R}; Sl=function(b){return String(b).replace(/\-([a-z])/g,function(R,h){return h.toUpperCase()})}; nP=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; mse=function(b){return b.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(R,h,K){return h+K.toUpperCase()})}; PTT=function(b){var R=1;b=b.split(":");const h=[];for(;R>0&&b.length;)h.push(b.shift()),R--;b.length&&h.push(b.join(":"));return h}; J1=function(){return Ue||GK?!!gs&&!!gs.platform:!1}; kw=function(){return J1()?gs.platform==="Android":SL("Android")}; Yw=function(){return SL("iPhone")&&!SL("iPod")&&!SL("iPad")}; el=function(){return Yw()||SL("iPad")||SL("iPod")}; O5=function(){return J1()?gs.platform==="macOS":SL("Macintosh")}; QQ=function(){return J1()?gs.platform==="Windows":SL("Windows")}; xw=function(b){xw[" "](b);return b}; md=function(b,R){try{return xw(b[R]),!0}catch(h){}return!1}; cD3=function(b,R){var h=ZwT;return Object.prototype.hasOwnProperty.call(h,b)?h[b]:h[b]=R(b)}; g.ZN=function(b){return cD3(b,function(){return g.A_(PE,b)>=0})}; g.ui=function(b,R,h){return Math.min(Math.max(b,R),h)}; g.XG=function(b,R){b%=R;return b*R<0?b+R:b}; VQ=function(b,R,h){return b+h*(R-b)}; g.CP=function(b,R){this.x=b!==void 0?b:0;this.y=R!==void 0?R:0}; ME=function(b,R){return b==R?!0:b&&R?b.x==R.x&&b.y==R.y:!1}; g.ru=function(b,R){this.width=b;this.height=R}; g.LP=function(b,R){return b==R?!0:b&&R?b.width==R.width&&b.height==R.height:!1}; wu=function(b){return b.width*b.height}; S3x=function(b){return new BE(b[0].toLowerCase())}; FG=function(b){if(b instanceof h1)return b;b=String(b).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");return KP(b)}; XeH=function(b){return uPK(b)}; uPK=function(b){const R=FG("");return KP(b.map(h=>s5(FG(h))).join(s5(R).toString()))}; rDe=function(b){var R;if(!og.test("div"))throw Error("");if(VxT.indexOf("DIV")!==-1)throw Error("");let h="":(b=XeH(R.map(K=>K instanceof h1?K:FG(String(K)))),h+=">"+b.toString()+""); return KP(h)}; CT3=function(b){var R="";const h=Object.keys(b);for(let N=0;N2&&yg(I,p,K,2);return p}; yg=function(b,R,h,K){function I(N){N&&R.appendChild(typeof N==="string"?b.createTextNode(N):N)} for(;K0?I(N):g.pr(N&&typeof N.length=="number"&&typeof N.item=="function"?g.Sc(N):N,I)}}; g.jO=function(b){return f0(document,b)}; f0=function(b,R){R=String(R);b.contentType==="application/xhtml+xml"&&(R=R.toLowerCase());return b.createElement(R)}; g.Ax=function(b){return document.createTextNode(String(b))}; g.ij=function(b,R){b.appendChild(R)}; g.zF=function(b){let R;for(;R=b.firstChild;)b.removeChild(R)}; UU=function(b,R,h){b.insertBefore(R,b.childNodes[h]||null)}; g.GF=function(b){return b&&b.parentNode?b.parentNode.removeChild(b):null}; g.gM=function(b,R){return b&&R?b==R||b.contains(R):!1}; RF=function(b){return b.nodeType==9?b:b.ownerDocument||b.document}; g.W_=function(b,R){if("textContent"in b)b.textContent=R;else if(b.nodeType==3)b.data=String(R);else if(b.firstChild&&b.firstChild.nodeType==3){for(;b.lastChild!=b.firstChild;)b.removeChild(b.lastChild);b.firstChild.data=String(R)}else g.zF(b),b.appendChild(RF(b).createTextNode(String(R)))}; n0=function(b){return b.tagName=="A"&&b.hasAttribute("href")||b.tagName=="INPUT"||b.tagName=="TEXTAREA"||b.tagName=="SELECT"||b.tagName=="BUTTON"?!b.disabled&&(!b.hasAttribute("tabindex")||SO(b)):b.hasAttribute("tabindex")&&SO(b)}; SO=function(b){b=b.tabIndex;return typeof b==="number"&&b>=0&&b<32768}; TF=function(b,R,h){if(!R&&!h)return null;const K=R?String(R).toUpperCase():null;return EU(b,function(I){return(!K||I.nodeName==K)&&(!h||typeof I.className==="string"&&g.iR(I.className.split(/\s+/),h))},!0)}; EU=function(b,R,h){b&&!h&&(b=b.parentNode);for(h=0;b;){if(R(b))return b;b=b.parentNode;h++}return null}; bj=function(b){this.G=b||g.JD.document||document}; ks=function(){return!(!Jx||!Jx.performance)}; Ys=function(b){return g.qN?"webkit"+b:b.toLowerCase()}; eO=function(b){return function(){return b}}; g.OU=function(){}; wex=function(b){var R=R||0;return function(){return b.apply(this,Array.prototype.slice.call(arguments,0,R))}}; Qg=function(b){let R=!1,h;return function(){R||(h=b(),R=!0);return h}}; xs=function(b){let R=b;return function(){if(R){const h=R;R=null;h()}}}; mM=function(b,R,h){let K=0;return function(I){g.JD.clearTimeout(K);const N=arguments;K=g.JD.setTimeout(function(){b.apply(h,N)},R)}}; P_=function(b,R,h,K){this.top=b;this.right=R;this.bottom=h;this.left=K}; Z_=function(b){return b.right-b.left}; c_=function(b,R){return b==R?!0:b&&R?b.top==R.top&&b.right==R.right&&b.bottom==R.bottom&&b.left==R.left:!1}; uj=function(b,R,h){R instanceof g.CP?(b.left+=R.x,b.right+=R.x,b.top+=R.y,b.bottom+=R.y):(b.left+=R,b.right+=R,typeof h==="number"&&(b.top+=h,b.bottom+=h));return b}; g.Xb=function(b,R,h,K){this.left=b;this.top=R;this.width=h;this.height=K}; Vg=function(b,R){return b==R?!0:b&&R?b.left==R.left&&b.width==R.width&&b.top==R.top&&b.height==R.height:!1}; g.MN=function(b,R,h){if(typeof R==="string")(R=C0(b,R))&&(b.style[R]=h);else for(const I in R){h=b;var K=R[I];const N=C0(h,I);N&&(h.style[N]=K)}}; C0=function(b,R){let h=rM[R];if(!h){var K=Sl(R);h=K;b.style[K]===void 0&&(K=(g.qN?"Webkit":L0?"Moz":null)+mse(K),b.style[K]!==void 0&&(h=K));rM[R]=h}return h}; g.wM=function(b,R){const h=b.style[Sl(R)];return typeof h!=="undefined"?h:b.style[C0(b,R)]||""}; Fb=function(b,R){const h=RF(b);return h.defaultView&&h.defaultView.getComputedStyle&&(b=h.defaultView.getComputedStyle(b,null))?b[R]||b.getPropertyValue(R)||"":""}; oF=function(b,R){return Fb(b,R)||(b.currentStyle?b.currentStyle[R]:null)||b.style&&b.style[R]}; g.bu=function(b,R,h){let K;R instanceof g.CP?(K=R.x,R=R.y):(K=R,R=h);b.style.left=D_(K,!1);b.style.top=D_(R,!1)}; RR=function(b){try{return b.getBoundingClientRect()}catch(R){return{left:0,top:0,right:0,bottom:0}}}; Fq2=function(b){const R=RF(b);let h=oF(b,"position"),K=h=="fixed"||h=="absolute";for(b=b.parentNode;b&&b!=R;b=b.parentNode)if(b.nodeType==11&&b.host&&(b=b.host),h=oF(b,"position"),K=K&&h=="static"&&b!=R.documentElement&&b!=R.body,!K&&(b.scrollWidth>b.clientWidth||b.scrollHeight>b.clientHeight||h=="fixed"||h=="absolute"||h=="relative"))return b;return null}; g.hR=function(b){var R=RF(b);const h=new g.CP(0,0);if(b==(R?RF(R):document).documentElement)return h;b=RR(b);R=K0(R);R=H_(R.G);h.x=b.left+R.x;h.y=b.top+R.y;return h}; sI=function(b,R){const h=new g.CP(0,0);let K=dM(RF(b));if(!md(K,"parent"))return h;do{const I=K==R?g.hR(b):KK(b);h.x+=I.x;h.y+=I.y}while(K&&K!=R&&K!=K.parent&&(b=K.frameElement)&&(K=K.parent));return h}; g.NB=function(b,R){b=$g(b);R=$g(R);return new g.CP(b.x-R.x,b.y-R.y)}; KK=function(b){b=RR(b);return new g.CP(b.left,b.top)}; $g=function(b){if(b.nodeType==1)return KK(b);b=b.changedTouches?b.changedTouches[0]:b;return new g.CP(b.clientX,b.clientY)}; g.pK=function(b,R,h){if(R instanceof g.ru)h=R.height,R=R.width;else if(h==void 0)throw Error("missing height argument");b.style.width=D_(R,!0);b.style.height=D_(h,!0)}; D_=function(b,R){typeof b=="number"&&(b=(R?Math.round(b):b)+"px");return b}; g.lu=function(b){var R=oBK;if(oF(b,"display")!="none")return R(b);const h=b.style,K=h.display,I=h.visibility,N=h.position;h.visibility="hidden";h.position="absolute";h.display="inline";b=R(b);h.display=K;h.position=N;h.visibility=I;return b}; oBK=function(b){const R=b.offsetWidth,h=b.offsetHeight,K=g.qN&&!R&&!h;return(R===void 0||K)&&b.getBoundingClientRect?(b=RR(b),new g.ru(b.right-b.left,b.bottom-b.top)):new g.ru(R,h)}; g.aR=function(b,R){b.style.display=R?"":"none"}; vo=function(b){return b?b.passive&&DsH()?b:b.capture||!1:!1}; Bo=function(b,R,h,K){return typeof b.addEventListener==="function"?(b.addEventListener(R,h,vo(K)),!0):!1}; Ho=function(b){return b.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[b.visibilityState||b.webkitVisibilityState||b.mozVisibilityState||""]??0}; qB=function(b){try{return!!b&&b.location.href!=null&&md(b,"foo")}catch{return!1}}; dk=function(b){let R=b;for(;b&&b!=b.parent;)b=b.parent,qB(b)&&(R=b);return R}; yo=function(){return(Ue||GK)&&gs?gs.mobile:!fK()&&(SL("iPod")||SL("iPhone")||SL("Android")||SL("IEMobile"))}; fK=function(){return(Ue||GK)&&gs?!gs.mobile&&(SL("iPad")||SL("Android")||SL("Silk")):SL("iPad")||SL("Android")&&!SL("Mobile")||SL("Silk")}; jT=function(b,R,h,K,I,N,p){if((b-3^28)=b){tR(23,R);var l=g.XH(R[f[1]],br2)}b+5>>2=b&&(l=h(I,N,p));return l}; iu=function(){var b=g.JD;const R=[];let h=null,K;do{K=b;if(qB(K)){var I=K.location.href;h=K.document&&K.document.referrer||null}else I=h,h=null;R.push(new AR(I||""));try{b=K.parent}catch(N){b=null}}while(b&&K!==b);for(let N=0,p=R.length-1;N<=p;++N)R[N].depth=p-N;K=g.JD;if(K.location&&K.location.ancestorOrigins&&K.location.ancestorOrigins.length===R.length-1)for(b=1;b=0;--I){var N=b[I];!h&&RnD.test(N.url)&&(h=N);if(N.url&&!N.G){R=N;break}}I=null;N=b.length&&b[K].url;R.depth!==0&&N&&(I=b[K]);return new hnx(R,I,h)}; UI=function(b,R){if(b)for(const h in b)Object.prototype.hasOwnProperty.call(b,h)&&R(b[h],h,b)}; snK=function(){const b=[];UI(KUK,R=>{b.push(R)}); return b}; GY=function(b,R){const h={};h[b]=R;return[h]}; Wo=function(b,R,h,K,I){const N=[];UI(b,(p,l)=>{(p=gk(p,R,h,K,I))&&N.push(`${l}=${p}`)}); return N.join(R)}; gk=function(b,R,h,K,I){if(b==null)return"";R=R||"&";h=h||",$";typeof h==="string"&&(h=h.split(""));if(b instanceof Array){if(K||(K=0),KR&&(R=h.length);return 3997-R-b.X.length-1}; I2e=function(b,R){g.fr(R,I=>I.depth>=0); const h=vp(R,(I,N)=>Math.max(I,N.depth),-1),K=HwT(h+2); K[0]=b;g.pr(R,I=>K[I.depth+1]=I.G); return K}; ppq=function(){return NxT().map(b=>gk(b))}; ST=function(b){b.UCR=!0;return b}; a2B=function(){const b=nK("IFRAME"),R={};g.pr(l2H(),h=>{b.sandbox&&b.sandbox.supports&&b.sandbox.supports(h)&&(R[h]=!0)}); return R}; nK=function(b,R=document){return R.createElement(String(b).toLowerCase())}; EI=function(b){Jx.google_image_requests||(Jx.google_image_requests=[]);const R=nK("IMG",Jx.document);R.src=b;Jx.google_image_requests.push(R)}; vzT=function(){TY();const b=Jx.document;return!!(b&&b.body&&b.body.getBoundingClientRect&&typeof Jx.setInterval==="function"&&typeof Jx.clearInterval==="function"&&typeof Jx.setTimeout==="function"&&typeof Jx.clearTimeout==="function")}; JR=function(){TY();return ppq()}; TY=function(){var b=kg(Bxx);if(!b.G){if(!Jx)throw Error("Context has not been set and window is undefined.");b.G=kg(HrH)}return b.G}; eT=function(b){return(Yg||(Yg=new TextEncoder)).encode(b)}; OI=function(b){g.JD.setTimeout(()=>{throw b;},0)}; qtT=function(b){return Array.prototype.map.call(b,function(R){R=R.toString(16);return R.length>1?R:"0"+R}).join("")}; Qo=function(b){const R=[];for(let h=0;h>6|192:((I&64512)==55296&&K+1>18|240,R[h++]=I>>12&63|128):R[h++]=I>>12|224,R[h++]=I>>6&63|128),R[h++]=I&63|128)}return R}; g.Zc=function(b,R){R===void 0&&(R=0);m_();R=Po[R];const h=Array(Math.floor(b.length/3)),K=R[64]||"";let I=0,N=0;for(;I>2];p=R[(p&3)<<4|l>>4];l=R[(l&15)<<2|a>>6];a=R[a&63];h[N++]=""+v+p+l+a}v=0;a=K;switch(b.length-I){case 2:v=b[I+1],a=R[(v&15)<<2]||K;case 1:b=b[I],h[N]=""+R[b>>2]+R[(b&3)<<4|v>>4]+a+K}return h.join("")}; g.co=function(b,R,h){if(R){const K=[];let I=0;for(let N=0;N255){const l=Error("go/unicode-to-byte-error");if(h)throw l;K[I++]=p&255;p>>=8}K[I++]=p}b=g.Zc(K,R)}else b=g.JD.btoa(b);return b}; XB=function(b){const R=[];uu(b,function(h){R.push(h)}); return R}; Vo=function(b){const R=b.length;let h=R*3/4;h%3?h=Math.floor(h):g.yX("=.",b[R-1])&&(h=g.yX("=.",b[R-2])?h-2:h-1);const K=new Uint8Array(h);let I=0;uu(b,function(N){K[I++]=N}); return I!==h?K.subarray(0,I):K}; uu=function(b,R){function h(I){for(;K>4);p!=64&&(R(N<<4&240|p>>2),l!=64&&R(p<<6&192|l))}}; m_=function(){if(!CK){CK={};var b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),R=["+/=","+/","-_=","-_.","-_"];for(let h=0;h<5;h++){const K=b.concat(R[h].split(""));Po[h]=K;for(let I=0;I=R||(h[b]=K+1,b=Error(),HE(b,"incident"),OI(b))}}; $c=function(b,R=!1){return R&&Symbol.for&&b?Symbol.for(b):b!=null?Symbol(b):Symbol()}; pI=function(b,R){return R===void 0?b.G!==Ih&&!!(2&(b.IY[NK]|0)):!!(2&R)&&b.G!==Ih}; lJ=function(b,R){if(b!=null)if(typeof b==="string")b=b?new wk(b,FB):oR();else if(b.constructor!==wk)if(b!=null&&b instanceof Uint8Array)b=b.length?new wk(new Uint8Array(b),FB):oR();else{if(!R)throw Error();b=void 0}return b}; ah=function(b,R){if(typeof R!=="number"||R<0||R>=b.length)throw Error();}; v$=function(b,R,h){const K=R&128?0:-1,I=b.length;var N;if(N=!!I)N=b[I-1],N=N!=null&&typeof N==="object"&&N.constructor===Object;const p=I+(N?-1:0);for(R=R&128?1:0;R>>0;fI=R;y4=(b-R)/4294967296>>>0}; jW=function(b){if(b<0){tr(0-b);b=fI;var R=y4;R=~R;b?b=~b+1:R+=1;const [h,K]=[b,R];fI=h>>>0;y4=K>>>0}else tr(b)}; iJ=function(b,R){const h=R*4294967296+(b>>>0);return Number.isSafeInteger(h)?h:Ar(b,R)}; z$=function(b,R){const h=R&2147483648;h&&(b=~b+1>>>0,R=~R>>>0,b==0&&(R=R+1>>>0));b=iJ(b,R);return typeof b==="number"?h?-b:b:h?"-"+b:b}; Uk=function(b,R){return dd(BigInt.asIntN(64,(BigInt.asUintN(32,BigInt(R))<>>=0;b>>>=0;var h;R<=2097151?h=""+(4294967296*R+b):h=""+(BigInt(R)<>>0)):h=Ar(b,R);return h}; W$=function(b){b.length<16?jW(Number(b)):(b=BigInt(b),fI=Number(b&BigInt(4294967295))>>>0,y4=Number(b>>BigInt(32)&BigInt(4294967295)))}; SW=function(b){if(b!=null&&typeof b!=="number")throw Error(`Value of float/double field must be a number, found ${typeof b}: ${b}`);return b}; nI=function(b){return b.displayName||b.name||"unknown type name"}; Ek=function(b){if(b!=null&&typeof b!=="boolean")throw Error(`Expected boolean but got ${xB(b)}: ${b}`);return b}; kc=function(b){switch(typeof b){case "bigint":return!0;case "number":return T$(b);case "string":return tcD.test(b);default:return!1}}; Yc=function(b){if(typeof b!=="number")throw hr("int32");if(!T$(b))throw hr("int32");return b|0}; eW=function(b){return b==null?b:Yc(b)}; Ok=function(b){if(b==null)return b;if(typeof b==="string"&&b)b=+b;else if(typeof b!=="number")return;return T$(b)?b|0:void 0}; Q4=function(b){if(b==null)return b;if(typeof b==="string"&&b)b=+b;else if(typeof b!=="number")return;return T$(b)?b>>>0:void 0}; jnK=function(b){var R=xc?1024:0;if(!kc(b))throw hr("int64");const h=typeof b;switch(R){case 512:switch(h){case "string":return m5(b);case "bigint":return String(P$(64,b));default:return ZW(b)}case 1024:switch(h){case "string":return c$(b);case "bigint":return dd(P$(64,b));default:return uJ(b)}case 0:switch(h){case "string":return m5(b);case "bigint":return dd(P$(64,b));default:return Xz(b)}default:return Rg(R,"Unknown format requested type for int64")}}; V4=function(b){return b==null?b:jnK(b)}; Xz=function(b){kc(b);b=CI(b);MK(b)||(jW(b),b=z$(fI,y4));return b}; ZW=function(b){kc(b);b=CI(b);MK(b)?b=String(b):(jW(b),b=gd());return b}; m5=function(b){kc(b);var R=CI(Number(b));if(MK(R))return String(R);R=b.indexOf(".");R!==-1&&(b=b.substring(0,R));R=b.length;(b[0]==="-"?R<20||R===20&&b<="-9223372036854775808":R<19||R===19&&b<="9223372036854775807")||(W$(b),b=gd());return b}; c$=function(b){var R=CI(Number(b));if(MK(R))return dd(R);R=b.indexOf(".");R!==-1&&(b=b.substring(0,R));return dd(P$(64,BigInt(b)))}; uJ=function(b){return MK(b)?dd(Xz(b)):dd(ZW(b))}; LI=function(b){if(b==null)return b;if(typeof b==="bigint")return rd(b)?b=Number(b):(b=P$(64,b),b=rd(b)?Number(b):String(b)),b;if(kc(b))return typeof b==="number"?Xz(b):m5(b)}; wd=function(b){const R=typeof b;if(b==null)return b;if(R==="bigint")return dd(P$(64,b));if(kc(b))return R==="string"?c$(b):uJ(b)}; A3H=function(b){if(b==null)return b;const R=typeof b;if(R==="bigint")return String(P$(64,b));if(kc(b)){if(R==="string")return m5(b);if(R==="number")return Xz(b)}}; Fz=function(b){if(b==null)return b;var R=typeof b;if(R==="bigint")return String(irx(64,b));if(kc(b)){if(R==="string")return kc(b),R=CI(Number(b)),MK(R)&&R>=0?b=String(R):(R=b.indexOf("."),R!==-1&&(b=b.substring(0,R)),b[0]==="-"?R=!1:(R=b.length,R=R<20?!0:R===20&&b<="18446744073709551615"),R||(W$(b),b=Ar(fI,y4))),b;if(R==="number")return kc(b),b=CI(b),b>=0&&MK(b)||(jW(b),b=iJ(fI,y4)),b}}; oh=function(b){if(b==null||typeof b=="string"||b instanceof wk)return b}; znw=function(b){if(typeof b!=="string")throw Error();return b}; DW=function(b){if(b!=null&&typeof b!=="string")throw Error();return b}; bq=function(b){return b==null||typeof b==="string"?b:void 0}; Ra=function(b,R){if(!(b instanceof R))throw Error(`Expected instanceof ${nI(R)} but got ${b&&nI(b.constructor)}`);return b}; $6=function(b,R,h){if(b!=null&&b[h9]===K8)return b;if(Array.isArray(b)){var K=b[NK]|0;h=K|h&32|h&2;h!==K&&(b[NK]=h);return new R(b)}}; Ia=function(b){return b}; p8=function(b){const R=oK(NZ);return R?b[R]:void 0}; lq=function(b,R){for(const h in b)!isNaN(h)&&R(b,+h,b[h])}; UgB=function(b){const R=new aa;lq(b,(h,K,I)=>{R[K]=[...I]}); R.DY=b.DY;return R}; gz2=function(b,R){R<100||sk(G3K,1)}; BN=function(b,R,h,K){const I=K!==void 0;K=!!K;var N=oK(NZ),p;!I&&N&&(p=b[N])&&lq(p,gz2);N=[];var l=b.length;let a;p=4294967295;let v=!1;const B=!!(R&64),H=B?R&128?0:-1:void 0;R&1||(a=l&&b[l-1],a!=null&&typeof a==="object"&&a.constructor===Object?(l--,p=l):a=void 0,!B||R&128||I||(v=!0,p=(vN??Ia)(p-H,H,b,a,void 0)+H));R=void 0;for(var q=0;q=p){const t=q-H;(R??(R={}))[t]=d}else N[q]=d}if(a)for(let d in a){l=a[d];if(l==null||(l=h(l,K))==null)continue; q=+d;let t;B&&!Number.isNaN(q)&&(t=q+H)0?void 0:b===0?yS||(yS=[0,void 0]):[-b,void 0];case "string":return[0,b];case "object":return b}}; jC=function(b,R){return t9(b,R[0],R[1])}; t9=function(b,R,h,K=0){if(b==null){var I=32;h?(b=[h],I|=128):b=[];R&&(I=I&-16760833|(R&1023)<<14)}else{if(!Array.isArray(b))throw Error("narr");I=b[NK]|0;if(A9&&1&I)throw Error("rfarr");2048&I&&!(2&I)&&EzD();if(I&256)throw Error("farr");if(I&64)return(I|K)!==I&&(b[NK]=I|K),b;if(h&&(I|=128,h!==b[0]))throw Error("mid");a:{h=b;I|=64;var N=h.length;if(N){var p=N-1;const a=h[p];if(a!=null&&typeof a==="object"&&a.constructor===Object){R=I&128?0:-1;p-=R;if(p>=1024)throw Error("pvtlmt");for(var l in a)if(N= +l,N1024)throw Error("spvt");I=I&-16760833|(l&1023)<<14}}}b[NK]=I|64|K;return b}; EzD=function(){if(A9)throw Error("carr");sk(Txw,5)}; J3D=function(b,R){if(typeof b!=="object")return b;if(Array.isArray(b)){var h=b[NK]|0;b.length===0&&h&1?b=void 0:h&2||(!R||4096&h||16&h?b=iq(b,h,!1,R&&!(h&16)):(b[NK]|=34,h&4&&Object.freeze(b)));return b}if(b!=null&&b[h9]===K8)return R=b.IY,h=R[NK]|0,pI(b,h)?b:zo(b,R,h)?Uu(b,R):iq(R,h);if(b instanceof wk)return b}; Uu=function(b,R,h){b=new b.constructor(R);h&&(b.G=Ih);b.V=Ih;return b}; iq=function(b,R,h,K){K??(K=!!(34&R));b=BN(b,R,J3D,K);K=32;h&&(K|=2);R=R&16769217|K;b[NK]=R;return b}; Go=function(b){const R=b.IY,h=R[NK]|0;return pI(b,h)?zo(b,R,h)?Uu(b,R,!0):new b.constructor(iq(R,h,!1)):b}; gP=function(b){if(b.G!==Ih)return!1;var R=b.IY;R=iq(R,R[NK]|0);R[NK]|=2048;b.IY=R;b.G=void 0;b.V=void 0;return!0}; WN=function(b){if(!gP(b)&&pI(b,b.IY[NK]|0))throw Error();}; SC=function(b,R){R===void 0&&(R=b[NK]|0);R&32&&!(R&4096)&&(b[NK]=R|4096)}; zo=function(b,R,h){return h&2?!0:h&32&&!(h&4096)?(R[NK]=h|2,b.G=Ih,!0):!1}; Eu=function(b,R,h,K,I){Object.isExtensible(b);R=n8(b.IY,R,h,I);if(R!==null||K&&b.V!==Ih)return R}; n8=function(b,R,h,K){if(R===-1)return null;const I=R+(h?0:-1),N=b.length-1;let p,l;if(!(N<1+(h?0:-1))){if(I>=N)if(p=b[N],p!=null&&typeof p==="object"&&p.constructor===Object)h=p[R],l=!0;else if(I===N)h=p;else return;else h=b[I];if(K&&h!=null){K=K(h);if(K==null)return K;if(!Object.is(K,h))return l?p[R]=K:b[I]=K,K}return h}}; J9=function(b,R,h,K){WN(b);const I=b.IY;To(I,I[NK]|0,R,h,K);return b}; To=function(b,R,h,K,I){const N=h+(I?0:-1);var p=b.length-1;if(p>=1+(I?0:-1)&&N>=p){const l=b[p];if(l!=null&&typeof l==="object"&&l.constructor===Object)return l[h]=K,R}if(N<=p)return b[N]=K,R;K!==void 0&&(p=(R??(R=b[NK]|0))>>14&1023||536870912,h>=p?K!=null&&(b[p+(I?0:-1)]={[h]:K}):b[N]=K);return R}; x6=function(b,R,h,K,I){let N=b.IY,p=N[NK]|0;K=pI(b,p)?1:K;I=!!I||K===3;K===2&&gP(b)&&(N=b.IY,p=N[NK]|0);b=k6(N,R);let l=b===Y6?7:b[NK]|0,a=eC(l,p);var v=4&a?!1:!0;if(v){4&a&&(b=[...b],l=0,a=Ou(a,p),p=To(N,p,R,b));let B=0,H=0;for(;B{const l=$6(p,h,R);N=l!==p&&l!=null;return l}); if(K!=null)return N&&!pI(K)&&SC(b,R),K}; hV=function(b,R,h,K){let I=b.IY,N=I[NK]|0;R=Rk(I,N,R,h,K);if(R==null)return R;N=I[NK]|0;if(!pI(b,N)){const p=Go(R);p!==R&&(gP(b)&&(I=b.IY,N=I[NK]|0),R=p,N=To(I,N,h,R,K),SC(I,N))}return R}; KR=function(b,R,h,K,I,N,p,l,a){var v=pI(b,h);N=v?1:N;l=!!l||N===3;v=a&&!v;(N===2||v)&&gP(b)&&(R=b.IY,h=R[NK]|0);b=k6(R,I,p);var B=b===Y6?7:b[NK]|0,H=eC(B,h);if(a=!(4&H)){var q=b,d=h;const t=!!(2&H);t&&(d|=2);let S=!t,J=!0,e=0,Y=0;for(;e32)for(I|=(h&127)>>4,N=3;N<32&&h&128;N+=7)h=p[l++],I|=(h&127)<>>0,I>>>0);throw Error();}; gH=function(b){let R=0,h=b.G;const K=h+10,I=b.Y;for(;h>>0}; k0=function(b){const R=JV(b);b=JV(b);return iJ(R,b)}; Y0=function(b){const R=JV(b);b=JV(b);return dd(BigInt.asUintN(64,(BigInt(b>>>0)<>>0)))}; eZ=function(b){var R=b.S;R||(R=b.Y,R=b.S=new DataView(R.buffer,R.byteOffset,R.byteLength));R=R.getFloat64(b.G,!0);U4(b,b.G+8);return R}; U4=function(b,R){b.G=R;if(R>b.X)throw Error();}; O4=function(b,R){if(R<0)throw Error();const h=b.G;R=h+R;if(R>b.X)throw Error();b.G=R;return h}; QR=function(b,R){if(R==0)return oR();var h=O4(b,R);b.mA&&b.J?h=b.Y.subarray(h,h+R):(b=b.Y,R=h+R,h=h===R?new Uint8Array(0):b.slice(h,R));return h.length==0?oR():new wk(h,FB)}; Pv=function(b,R,h,K){if(x0.length){const I=x0.pop();mQ(I,K);I.G.init(b,R,h,K);return I}return new YtK(b,R,h,K)}; mQ=function(b,{pf:R=!1}={}){b.pf=R}; ZZ=function(b){var R=b.G;if(R.G==R.X)return!1;b.V=b.G.G;var h=Wv(b.G)>>>0;R=h>>>3;h&=7;if(!(h>=0&&h<=5))throw Error();if(R<1)throw Error();b.X=R;b.Y=h;return!0}; cv=function(b){switch(b.Y){case 0:b.Y!=0?cv(b):gH(b.G);break;case 1:b=b.G;U4(b,b.G+8);break;case 2:if(b.Y!=2)cv(b);else{var R=Wv(b.G)>>>0;b=b.G;U4(b,b.G+R)}break;case 5:b=b.G;U4(b,b.G+4);break;case 3:R=b.X;do{if(!ZZ(b))throw Error();if(b.Y==4){if(b.X!=R)throw Error();break}cv(b)}while(1);break;default:throw Error();}}; uA=function(b,R,h){const K=b.G.X;var I=Wv(b.G)>>>0;I=b.G.G+I;let N=I-K;N<=0&&(b.G.X=I,h(R,b,void 0,void 0,void 0),N=I-b.G.G);if(N)throw Error();b.G.G=I;b.G.X=K}; CR=function(b){var R=Wv(b.G)>>>0,h=b.G;b=O4(h,R);var K=h.Y;(h=XU)||(h=XU=new TextDecoder("utf-8",{fatal:!0}));R=b+R;K=b===0&&R===K.length?K:K.subarray(b,R);try{var I=h.decode(K)}catch(N){if(VR===void 0){try{h.decode(new Uint8Array([128]))}catch(p){}try{h.decode(new Uint8Array([97])),VR=!0}catch(p){VR=!1}}!VR&&(XU=void 0);throw N;}return I}; MP=function(b){const R=Wv(b.G)>>>0;return QR(b.G,R)}; rH=function(b,R,h){var K=Wv(b.G)>>>0;for(K=b.G.G+K;b.G.G0||R>127;)b.G.push(R&127|128),R=(R>>>7|h<<25)>>>0,h>>>=7;b.G.push(R)}; he=function(b,R){b.G.push(R>>>0&255);b.G.push(R>>>8&255);b.G.push(R>>>16&255);b.G.push(R>>>24&255)}; Kq=function(b,R){for(;R>127;)b.G.push(R&127|128),R>>>=7;b.G.push(R)}; sd=function(b,R){if(R>=0)Kq(b,R);else{for(let h=0;h<9;h++)b.G.push(R&127|128),R>>=7;b.G.push(1)}}; $q=function(b,R){R.length!==0&&(b.X.push(R),b.Y+=R.length)}; IH=function(b,R,h){Kq(b.G,R*8+h)}; Nu=function(b,R){IH(b,R,2);R=b.G.end();$q(b,R);R.push(b.Y);return R}; pq=function(b,R){var h=R.pop();for(h=b.Y+b.G.length()-h;h>127;)R.push(h&127|128),h>>>=7,b.Y++;R.push(h);b.Y++}; ld=function(b,R,h){if(h!=null){switch(typeof h){case "string":FU(h)}IH(b,R,1);switch(typeof h){case "number":b=b.G;tr(h);he(b,fI);he(b,y4);break;case "bigint":h=BigInt.asUintN(64,h);h=new wH(Number(h&BigInt(4294967295)),Number(h>>BigInt(32)));b=b.G;R=h.G;he(b,h.Y);he(b,R);break;default:h=FU(h),b=b.G,R=h.G,he(b,h.Y),he(b,R)}}}; aH=function(b,R,h){IH(b,R,2);Kq(b.G,h.length);$q(b,b.G.end());$q(b,h)}; vD=function(){const b=class{constructor(){throw Error();}};Object.setPrototypeOf(b,b.prototype);return b}; BD=function(b,R){if(R==null||R=="")return new b;R=JSON.parse(R);if(!Array.isArray(R))throw Error("dnarr");R[NK]|=32;return new b(R)}; dW=function(b,R){return new HD(b,R,qu)}; ye=function(b,R,h,K,I){R=fq(R,K);R!=null&&(h=Nu(b,h),I(R,b),pq(b,h))}; Ae=function(b,R,h,K){var I=K[b];if(I)return I;I={};I.Ot=K;I.lA=nzT(K[0]);var N=K[1];let p=1;N&&N.constructor===Object&&(I.extensions=N,N=K[++p],typeof N==="function"&&(I.Vl=!0,te??(te=N),jY??(jY=K[p+1]),N=K[p+=2]));const l={};for(;N&&Array.isArray(N)&&N.length&&typeof N[0]==="number"&&N[0]>0;){for(var a=0;aI(N,p,l,K):I}; gW=function(b,R,h,K,I){const N=h.QE;let p,l;b[R]=(a,v,B)=>N(a,v,B,l||(l=Ae(Gd,Ud,gW,K).lA),p||(p=WD(K)),I)}; WD=function(b){let R=b[SY];if(R!=null)return R;const h=Ae(Gd,Ud,gW,b);R=h.Vl?(K,I)=>te(K,I,h):(K,I)=>{for(;ZZ(I)&&I.Y!=4;){var N=I.X,p=h[N]; if(p==null){var l=h.extensions;l&&(l=l[N])&&(l=QnP(l),l!=null&&(p=h[N]=l))}if(p==null||!p(I,K,N)){l=I;p=l.V;cv(l);if(l.pf)var a=void 0;else a=l.G.G-p,l.G.G=p,a=QR(l.G,a);p=void 0;l=K;a&&((p=l[NZ]??(l[NZ]=new aa))[N]??(p[N]=[])).push(a)}}if(K=p8(K))K.DY=h.Ot[nq];return!0}; b[SY]=R;b[nq]=xge.bind(b);return R}; xge=function(b,R,h,K){var I=this[Gd];const N=this[SY],p=jC(void 0,I.lA),l=p8(b);if(l){var a=!1,v=I.extensions;if(v){I=(B,H,q)=>{if(q.length!==0)if(v[H])for(const d of q){B=Pv(d);try{a=!0,N(p,B)}finally{B.free()}}else K?.(b,H,q)}; if(R==null)lq(l,I);else if(l!=null){const B=l[R];B&&I(l,R,B)}if(a){let B=b[NK]|0;if(B&2&&B&2048&&!h?.sS)throw Error();const H=H$(B),q=(d,t)=>{if(n8(b,d,H)!=null)switch(h?.mz6){case 1:return;default:throw Error();}t!=null&&(B=To(b,B,d,t,H));delete l[d]}; R==null?v$(p,p[NK]|0,(d,t)=>{q(d,t)}):q(R,n8(p,R,H))}}}}; QnP=function(b){b=id(b);const R=b[0].QE;if(b=b[1]){const h=WD(b),K=Ae(Gd,Ud,gW,b).lA;return(I,N,p)=>R(I,N,p,K,h)}return R}; Ed=function(b,R,h){b[R]=h.Pb}; Je=function(b,R,h,K){let I,N;const p=h.Pb;b[R]=(l,a,v)=>p(l,a,v,N||(N=Ae(Td,Ed,Je,K).lA),I||(I=kq(K)))}; kq=function(b){let R=b[Yq];if(!R){const h=Ae(Td,Ed,Je,b);R=(K,I)=>xq(K,I,h); b[Yq]=R}return R}; xq=function(b,R,h){v$(b,b[NK]|0,(K,I)=>{if(I!=null){var N=mgP(h,K);N?N(R,I,K):K<500||sk(PRT,3)}}); (b=p8(b))&&lq(b,(K,I,N)=>{$q(R,R.G.end());for(K=0;KK(p,l,a,N,I)}else h=K; return b[R]=h}}; mK=function(b,R,h){if(Array.isArray(R)){var K=R[NK]|0;if(K&4)return R;for(var I=0,N=0;I>BigInt(32)));RH(b.G,h.Y,h.G);break;default:h=bd(R),RH(b.G,h.Y,h.G)}}}; Cq=function(b,R,h){R=Ok(R);R!=null&&R!=null&&(IH(b,h,0),sd(b.G,R))}; Mu=function(b,R,h){R=R==null||typeof R==="boolean"?R:typeof R==="number"?!!R:void 0;R!=null&&(IH(b,h,0),b.G.G.push(R?1:0))}; rW=function(b,R,h){R=bq(R);R!=null&&aH(b,h,eT(R))}; Lq=function(b,R,h,K,I){R=fq(R,K);R!=null&&(h=Nu(b,h),I(R,b),pq(b,h))}; wW=function(b,R){return(h,K)=>{{const N={qN:!0};K&&Object.assign(N,K);h=Pv(h,void 0,void 0,N);try{const p=new b,l=p.IY;WD(R)(l,h);var I=p}finally{h.free()}}return I}}; FN=function(b){return function(){const R=new Zrq;xq(this.IY,R,Ae(Td,Ed,Je,b));$q(R,R.G.end());const h=new Uint8Array(R.Y),K=R.X,I=K.length;let N=0;for(let p=0;pBD(b,R)}; DV=function(b,R){return(...h)=>{if(b.G>-1)return R(...h);try{return b.G=b.X.G.now(),R(...h)}finally{b.V+=b.X.G.now()-b.G,b.G=-1,b.Y+=1}}}; bl=function(){return kg(c3P)}; hS=function(b,R,h,K){if(Math.random()<(K||b.G))try{let I;h instanceof Ri?I=h:(I=new Ri,UI(h,function(p,l){var a=I;const v=a.V++;p=GY(l,p);a.G.push(v);a.Y[v]=p})); const N=I.xj(b.Y,"pagead2.googlesyndication.com","/pagead/gen_204?id="+R+"&");N&&(TY(),EI(N))}catch(I){}}; KV=function(){const b=g.JD.performance;return b&&b.now&&b.timing?Math.floor(b.now()+b.timing.navigationStart):g.wK()}; $o=function(){const b=g.JD.performance;return b&&b.now?b.now():null}; pV=function(b){b&&Ii&&Nl()&&(Ii.clearMarks(`goog_${b.label}_${b.uniqueId}_start`),Ii.clearMarks(`goog_${b.label}_${b.uniqueId}_end`))}; ll=function(b,R,h,K,I,N,p){let l="";b&&(l+=b+":");h&&(l+="//",R&&(l+=R+"@"),l+=h,K&&(l+=":"+K));I&&(l+=I);N&&(l+="?"+N);p&&(l+="#"+p);return l}; g.ai=function(b){return b.match(uH2)}; v6=function(b){return b?decodeURI(b):b}; g.B6=function(b){return v6(g.ai(b)[3]||null)}; H6=function(b){return v6(g.ai(b)[5]||null)}; g.ql=function(b){b=g.ai(b);return ll(b[1],b[2],b[3],b[4])}; dD=function(b){b=g.ai(b);return ll(null,null,null,null,b[5],b[6],b[7])}; fV=function(b){const R=b.indexOf("#");return R<0?b:b.slice(0,R)}; yT=function(b,R){if(b){b=b.split("&");for(let h=0;h=0?(I=b[h].substring(0,K),N=b[h].substring(K+1)):I=b[h];R(I,N?ii(N):"")}}}; tS=function(b,R){if(!R)return b;var h=b.indexOf("#");h<0&&(h=b.length);let K=b.indexOf("?"),I;K<0||K>h?(K=h,I=""):I=b.substring(K+1,h);b=[b.slice(0,K),I,b.slice(h)];h=b[1];b[1]=R?h?h+"&"+R:R:h;return b[0]+(b[1]?"?"+b[1]:"")+b[2]}; jX=function(b,R,h){if(Array.isArray(R))for(let K=0;K=0&&Rh)I=h;K+=R.length+1;return ii(b.slice(K,I!==-1?I:0))}; SX=function(b,R){const h=b.search(gD);let K=0,I;const N=[];for(;(I=G9(b,K,R,h))>=0;)N.push(b.substring(K,I)),K=Math.min(b.indexOf("&",I)+1||h,h);N.push(b.slice(K));return N.join("").replace(Vcx,"$1")}; CRD=function(b,R,h){return Us(SX(b,R),R,h)}; nV=function(b){let R=b.toString();b.name&&R.indexOf(b.name)==-1&&(R+=": "+b.name);b.message&&R.indexOf(b.message)==-1&&(R+=": "+b.message);if(b.stack)a:{b=b.stack;var h=R;try{b.indexOf(h)==-1&&(b=h+"\n"+b);let K;for(;b!=K;)K=b,b=b.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");R=b.replace(/\n */g,"\n");break a}catch(K){R=h;break a}R=void 0}return R}; T9=function(b,R,h,K){return DV(bl().G.G,()=>{let I,N;try{b.i5&&b.i5.G?(N=b.i5.start(R.toString(),3),I=h(),b.i5.end(N)):I=h()}catch(p){let l=b.Pz;try{pV(N),l=b.Y(R,new Es(nV(p)),void 0,K)}catch(a){b.jD(217,a)}if(!l)throw p;}return I})()}; ko=function(b,R,h,K){var I=JS;return DV(bl().G.G,(...N)=>T9(I,b,()=>R.apply(h,N),K))}; McK=function(){var b=bl().X,R=Yo>=0?Date.now()-eX-Yo:-1;const h=Os?Date.now()-eX-QT:-1,K=xo>=0?Date.now()-eX-xo:-1;let I;if(b==947190542)return 100;if(b==79463069)return 200;b=[2E3,4E3];I=[250,500,1E3];JS.jD(637,Error(),.001,void 0);let N=R;h!=-1&&h1500&&K<4E3?500:p}; mk=function(b){const R=b!==b.top,h=b.top===dk(b);let K=-1,I=0,N;R&&h&&b.top.mraid?(K=3,N=b.top.mraid):K=(N=b.mraid)?R?h?2:1:0:-1;N&&(N.IS_GMA_SDK||(I=2),Vz(r3e,p=>typeof N[p]==="function")||(I=1)); return{tZ:N,compatibility:I,tP:K}}; P6=function(b,R,h=!1){if(b&&R!==null&&R!=R.top){if(!R.top)return new g.ru(-12245933,-12245933);R=R.top}try{return h?(new g.ru(R.innerWidth,R.innerHeight)).round():v_(R||window).round()}catch(K){return new g.ru(-12245933,-12245933)}}; ZU=function(b,R,h){try{if(b){if(!R.top)return new P_(-12245933,-12245933,-12245933,-12245933);R=R.top}const {height:I,width:N}=P6(b,R,h);if(N===-12245933)return new P_(N,N,N,N);var K=K0(R.document);const {x:p,y:l}=H_(K.G);return new P_(l,p+N,l+I,p)}catch{return new P_(-12245933,-12245933,-12245933,-12245933)}}; c6=function(b){return new P_(b.top,b.right,b.bottom,b.left)}; ul=function(b){const R=b.top||0,h=b.left||0;return new P_(R,h+(b.width||0),R+(b.height||0),h)}; Xg=function(b){return b!=null&&b>=0&&b<=1}; LUK=function(b,R=Jx){R!==null&&R!=R.top&&(R=R.top);let h=0,K=0;try{const I=R.document,N=I.body,p=I.documentElement;if(I.compatMode=="CSS1Compat"&&p.scrollHeight)h=p.scrollHeight!=b.height?p.scrollHeight:p.offsetHeight,K=p.scrollWidth!=b.width?p.scrollWidth:p.offsetWidth;else{let l=p.scrollHeight,a=p.scrollWidth,v=p.offsetHeight,B=p.offsetWidth;p.clientHeight!=v&&(l=N.scrollHeight,a=N.scrollWidth,v=N.offsetHeight,B=N.offsetWidth);l>b.height?l>v?(h=l,K=a):(h=v,K=B):lt_(b,R))||t_(b,"OMI/")&&!t_(b,"XiaoMi/")?!0:t_(b,"Presto")&&t_(b,"Linux")&&!t_(b,"X11")&&!t_(b,"Android")&&!t_(b,"Mobi"):!1}; VT=function(){return kg(FUH)}; CV=function(b,R){R&&R.screen&&(b.V=new g.ru(R.screen.width,R.screen.height))}; Ml=function(b,R){const h=b.G?new g.ru(Z_(b.G),b.G.getHeight()):new g.ru(0,0);b.S=LUK(h,R)}; LV=function(){var b=VT();if(b.J>0||b.K)return!0;b=TY().Y.isVisible();const R=Ho(rD)===0;return b||R}; Fg=function(b){const R=g.Sc(b.S);g.pr(R,h=>{h.G6(b.G)}); b.G!=b||wD(b)}; oi=function(b,R){g.iR(b.S,R)||(b.S.push(R),R.G6(b.G),R.J(b.V),R.Z8()&&(b.nR=!0))}; DU=function(b){b.nR=b.S.length?dx(b.S,R=>R.Z8()):!1}; b4=function(b){b=b.G;b.Zr();b.NJ();var R=VT();R.D=ZU(!1,b.X,R.isMobileDevice);Ml(VT(),b.X);b.V.G=b.KR()}; wD=function(b){const R=g.Sc(b.S);g.pr(R,h=>{h.J(b.V)})}; RZ=function(b,R){return b.K?new P_(Math.max(R.top+b.K.top,R.top),Math.min(R.left+b.K.right,R.right),Math.min(R.top+b.K.bottom,R.bottom),Math.max(R.left+b.K.left,R.left)):R.clone()}; oz2=function(b){switch(Math.trunc(b.X)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; ha=function(b,R){return b.XR.X?!1:b.YR.Y?!1:typeof b.Gtypeof R.G?!1:b.G{b.add(h.Y,h.G,oz2(h))})}; Kf=function(b,R){UI(R,(h,K)=>{h===void 0||b.add(K,h,0)}); return b}; sV=function(b){var R=bjK;b.Y&&(g.Ot(b.G,(h,K)=>ha(K,h)?1:ha(h,K)?-1:0),b.Y=!1); return vp(b.G,(h,K)=>{K=R(K);return`${h}${h!=""&&K!=""?"&":""}${K}`},"")}; g.$l=function(b){b&&typeof b.dispose=="function"&&b.dispose()}; g.IZ=function(b){for(let R=0,h=arguments.length;R{var I=b.G;if(!K.G&&(K.X(R,h),K.V())){K.G=!0;var N=K.Y();const p=new pf;p.add("id","av-js");p.add("type","verif");p.add("vtype",K.S);K=kg(RcD);p.add("i",K.G++);p.add("adk",I);Kf(p,N);I=new hcT(p);l4(I)}})}; sTT=function(b){return g.an(b,(R,h,K)=>h>0?K[h]-K[h-1]:K[h])}; aZ=function(b,R,h){b=g.an(b.G,K=>R(K)); return h?b:sTT(b)}; vk=function(b,R=!0){return aZ(b,h=>h.G,R)}; Bk=function(b,R,h){const K=g.A3(b.Y,I=>R<=I); return K==-1?0:h(b.G[K])}; Hk=function(b,R){return Bk(b,R,h=>h.G)}; q3=function(b,R=!0){return aZ(b,h=>h.X,R)}; d3=function(b,R){return Bk(b,R,h=>h.X)}; ff=function(b,R){return Bk(b,R,h=>h.Y)}; yd=function(b){g.pr(b.G,R=>{R.Y=0})}; ta=function(b,R=!0){return q3(b.Y,R)}; Aa=function(b,R){R=jD(R);return R===0?0:jD(b)/R}; jD=function(b){return Math.max(b.bottom-b.top,0)*Math.max(b.right-b.left,0)}; $$B=function(b,R){if(!b||!R)return!1;let h=0;for(;b!==null&&h++<100;){if(b===R)return!0;try{if(b=b.parentElement||b){const K=RF(b),I=K&&dM(K),N=I&&I.frameElement;N&&(b=N)}}catch(K){break}}return!1}; NsT=function(b,R,h){if(!b||!R)return!1;R=uj(b.clone(),-R.left,-R.top);b=(R.left+R.right)/2;R=(R.top+R.bottom)/2;qB(window.top)&&window.top&&window.top.document&&(window=window.top);if(!IIT())return!1;b=window.document.elementFromPoint(b,R);if(!b)return!1;R=(R=(R=RF(h))&&R.defaultView&&R.defaultView.frameElement)&&$$B(R,b);const K=b===h;b=!K&&b&&EU(b,I=>I===h); return!(R||K||b)}; pls=function(b,R,h,K){return VT().X?!1:Z_(b)<=0||b.getHeight()<=0?!0:h&&K?i4(208,()=>NsT(b,R,h)):!1}; aIe=function(b){b=b.U7.LP;var R;if(R=b&&b.getAttribute)R=/-[a-z]/.test("googleAvInapp")?!1:lIT&&b.dataset?"googleAvInapp"in b.dataset:b.hasAttribute?b.hasAttribute("data-"+nP()):!!b.getAttribute("data-"+nP());R&&(VT().Y=!0)}; zg=function(b,R){R!=b.Li&&(b.Li=R,b=VT(),R?b.J++:b.J>0&&b.J--)}; UV=function(b,R){if(b.rB){if(R.getName()===b.rB.getName())return;b.rB.dispose();b.rB=null}R=R.create(b.U7.G,b.gi,b.Z8());if(R=R!=null&&R.observe()?R:null)b.rB=R}; Gg=function(b,R,h){if(!b.Ou||b.yG==-1||R.Y===-1||b.Ou.Y===-1)return 0;b=R.Y-b.Ou.Y;return b>h?0:b}; vTe=function(b,R,h){if(b.rB){b.rB.S();var K=b.rB.SY,I=K.V,N=I.G;if(K.J!=null){var p=K.X;b.Dh=new g.CP(p.left-N.left,p.top-N.top)}N=b.Xh()?Math.max(K.G,K.S):K.G;p={};I.volume!==null&&(p.volume=I.volume);I=b.Ss(K);b.Ou=K;b.bv(N,R,h,!1,p,I,K.K)}}; Bsw=function(b){if(b.jq&&b.f4){var R=vl(b.gi,"od")==1,h=VT().G,K=b.f4,I=b.rB?b.rB.getName():"ns",N=b.Dh,p=new g.ru(Z_(h),h.getHeight());h=b.Xh();b={Xo:I,Dh:N,Wp:p,Xh:h,FH:b.eS.FH,Eo:R};if(R=K.Y){R.S();I=R.SY;N=I.V.G;var l=p=null;I.J!=null&&N&&(p=I.X,p=new g.CP(p.left-N.left,p.top-N.top),l=new g.ru(N.right-N.left,N.bottom-N.top));I=h?Math.max(I.G,I.S):I.G;h={Xo:R.getName(),Dh:p,Wp:l,Xh:h,Eo:!1,FH:I}}else h=null;h&&KuH(K,b,h)}}; HjD=function(b,R,h){R&&(b.mV=R);h&&(b.pu=h)}; g.g3=function(){}; g.Wk=function(b){return{value:b,done:!1}}; qes=function(b){const R={ptlt:g.wK()-b.S};var h=b.Y;h&&(R.pnk=h);(h=b.X)&&(R.pnc=h);(h=b.V)&&(R.pnmm=h);(b=b.G)&&(R.pns=b);return R}; SD=function(b){return Xg(b.volume)&&b.volume>0}; nf=function(b,R){const h={};if(b!==void 0)if(R!=null)for(const K in R){const I=R[K];K in Object.prototype||I!=null&&(h[K]=typeof I==="function"?I(b):b[I])}else g.pj(h,b);return sV(Kf(new pf,h))}; EV=function(b,R){const h=b.Y[R],K=h[1];b.X+=h[0];K>0&&b.G[R]==0&&(b.G[R]=1)}; d$q=function(b){const R=g.Lr(b.Y);let h=0;for(const K in b.G)g.iR(R,K)&&b.G[K]==1&&(h+=b.Y[K][1],b.G[K]=2);return h}; fIw=function(b){let R=0;for(const h in b.G){const K=b.G[h];if(K==1||K==2)R+=b.Y[h][1]}return R}; Tg=function(b,R,h){let K=b.JX;Os||h||b.K==-1||(K+=R-b.K);return K}; Ja=function(b){return[b.top,b.left,b.bottom,b.right]}; Yl=function(b){return b===void 0?b:Number(b)?kl(b,3):0}; eD=function(b,R,h){let K=b.length;for(;KMath.max(1E4,b.X/3)?0:R);var h=b.K(b)||{};h=h.currentTime!==void 0?h.currentTime:b.C;const K=h-b.C;let I=0;K>=0?(b.nR+=R,b.SY+=Math.max(R-K,0),I=Math.min(K,b.nR)):b.NJ+=Math.abs(K);K!=0&&(b.nR=0);b.Zr==-1&&K>0&&(b.Zr=xo>=0?Date.now()-eX-xo:-1);b.C=h;return I}; xl=function(b){const R=!!vl(bl().gi,"umt");return b.G6||!R&&!b.JX?0:1}; mR=function(b,R){return b.T6[R!=null&&R=15E3?!0:b.xZ?h?!0:b.X>0?R>=b.X/2:b.gp>0?R>=b.gp:!1:!1}; tLT=function(b,R){dx(b.J,h=>h.X==R.X)||b.J.push(R)}; ZT=function(b){const R=Hk(b.V0().G,1);return Pk(b,R)}; jTq=function(b){const R=kl(b.eS.FH,2),h=b.AU.X;var K=b.eS,I=mR(b);const N=Yl(I.V),p=Yl(I.J),l=Yl(K.volume),a=kl(I.D,2),v=kl(I.C,2),B=kl(K.FH,2),H=kl(I.nR,2),q=kl(I.MJ,2);K=kl(K.rh,2);const d=b.Ay().clone().round();b=b.rB&&b.rB.X?(b.rB?b.rB.X:null).clone().round():null;I=ta(I,!1);return{Oo:R,j3:h,ML:N,PA:p,X8:l,yH:a,GF:v,FH:B,g8:H,YU:q,rh:K,position:d,N5:b,S0:I}}; ck=function(b,R){eD(b.G,R,()=>({Oo:0,j3:void 0,ML:-1,PA:-1,X8:-1,yH:-1,GF:-1,FH:-1,g8:-1,YU:-1,rh:-1,position:void 0,N5:void 0,S0:[]})); b.G[R]=jTq(b)}; ijK=function(b,R){if(g.iR(A_K,R))return!0;const h=b.kT[R];return h!==void 0?(b.kT[R]=!0,!h):!1}; XC=function(b,R,h,K,I){if(b.c_)return{"if":0,vs:0};var N=b.Ay().clone().round();const p=b.rB?b.rB.X:null,l=VT();var a=bl();const v=b.V0();var B=b.rB?b.rB.getName():"ns";const H={};H["if"]=l.X?1:void 0;H.sdk=b.V?b.V:void 0;H.t=b.timeCreated;H.p=[N.top,N.left,N.bottom,N.right];N&&p&&!c_(p,N)&&(N=p.round(),H.cp=[N.top,N.left,N.bottom,N.right]);H.tos=vk(v.Y,!1);H.mtos=ta(v);H.mcvt=v.NJ.X;H.ps=void 0;N=Tg(v,Date.now()-eX,b.WZ());H.vht=N;H.mut=v.wp.X;H.a=Yl(b.eS.volume);H.mv=Yl(v.J);H.fs=b.Li?1:0;H.ft= v.G6.G;H.at=v.S.G;H.as=v.V>0?1:0;H.atos=vk(v.G);H.ssb=vk(v.KR,!1);H.amtos=q3(v.G,!1);H.uac=b.CR;H.vpt=v.X.G;B=="nio"&&(H.nio=1,H.avms="nio");H.gmm="4";H.gdr=Pk(b,v.X.G,!0)?1:0;H.efpf=b.Ty;if(B=="gsv"||B=="nis")B=b.rB,B.nR>0&&(H.nnut=B.nR);H.tcm=xl(b);H.nmt=b.NJ;H.bt=b.SY;H.pst=b.Zr;H.vpaid=b.G6;H.dur=b.X;H.vmtime=b.C;H.is=b.AU.X;b.G.length>=1&&(H.i0=b.G[0].j3,H.a0=[b.G[0].X8],H.c0=[b.G[0].FH],H.ss0=[b.G[0].rh],B=b.G[0].position,N=b.G[0].N5,H.p0=B?Ja(B):void 0,B&&N&&!c_(N,B)&&(H.cp0=Ja(N)));b.G.length>= 2&&(H.i1=b.G[1].j3,H.a1=OV(b.G[1].ML,b.G[1].X8,b.G[1].PA),H.c1=OV(b.G[1].yH,b.G[1].FH,b.G[1].GF),H.ss1=OV(b.G[1].g8,b.G[1].rh,b.G[1].YU),B=b.G[1].position,N=b.G[1].N5,H.p1=B?Ja(B):void 0,B&&N&&!c_(N,B)&&(H.cp1=Ja(N)),H.mtos1=b.G[1].S0);b.G.length>=3&&(H.i2=b.G[2].j3,H.a2=OV(b.G[2].ML,b.G[2].X8,b.G[2].PA),H.c2=OV(b.G[2].yH,b.G[2].FH,b.G[2].GF),H.ss2=OV(b.G[2].g8,b.G[2].rh,b.G[2].YU),B=b.G[2].position,N=b.G[2].N5,H.p2=B?Ja(B):void 0,B&&N&&!c_(N,B)&&(H.cp2=Ja(N)),H.mtos2=b.G[2].S0);b.G.length>=4&&(H.i3= b.G[3].j3,H.a3=OV(b.G[3].ML,b.G[3].X8,b.G[3].PA),H.c3=OV(b.G[3].yH,b.G[3].FH,b.G[3].GF),H.ss3=OV(b.G[3].g8,b.G[3].rh,b.G[3].YU),B=b.G[3].position,N=b.G[3].N5,H.p3=B?Ja(B):void 0,B&&N&&!c_(N,B)&&(H.cp3=Ja(N)),H.mtos3=b.G[3].S0);H.cs=fIw(b.AU);R&&(H.ic=d$q(b.AU),H.dvpt=v.X.Y,H.dvs=ff(v.Y,.5),H.dfvs=ff(v.Y,1),H.davs=ff(v.G,.5),H.dafvs=ff(v.G,1),h&&(v.X.Y=0,yd(v.Y),yd(v.G)),b.KX()&&(H.dtos=v.T6,H.dav=v.U,H.dtoss=b.zg+1,h&&(v.T6=0,v.U=0,b.zg++)),H.dat=v.S.Y,H.dft=v.G6.Y,h&&(v.S.Y=0,v.G6.Y=0));H.ps=[l.S.width, l.S.height];H.bs=[Z_(l.G),l.G.getHeight()];H.scs=[l.V.width,l.V.height];H.dom=l.domain;b.oL&&(H.vds=b.oL);if(b.J.length>0||b.ET)R=g.Sc(b.J),b.ET&&R.push(b.ET),H.pings=g.an(R,q=>q.toString()); R=g.an(g.lR(b.J,q=>q.J()),q=>q.getId()); axH(R);H.ces=R;b.Y&&(H.vmer=b.Y);b.U&&(H.vmmk=b.U);b.MJ&&(H.vmiec=b.MJ);H.avms=b.rB?b.rB.getName():"ns";b.rB&&g.pj(H,b.rB.lW());K?(H.c=kl(b.eS.FH,2),H.ss=kl(b.eS.rh,2)):H.tth=Date.now()-eX-u4;H.mc=kl(v.C,2);H.nc=kl(v.D,2);H.mv=Yl(v.J);H.nv=Yl(v.V);H.lte=kl(b.pv,2);K=mR(b,I);ta(v);H.qmtos=ta(K);H.qnc=kl(K.D,2);H.qmv=Yl(K.J);H.qnv=Yl(K.V);H.qas=K.V>0?1:0;H.qi=b.Lm;H.avms||(H.avms="geo");H.psm=v.gp.G;H.psv=v.gp.getValue();H.psfv=v.pR.getValue();H.psa=v.Zr.getValue();a=jKx(a.gi);a.length&&(H.veid=a); b.S&&g.pj(H,qes(b.S));H.avas=b.dP();H.vs=b.HW();H.co=zc2(b);H.tm=v.SY;H.tu=v.vY;return H}; Cf=function(b,R,h){var K=b.w7[R];if(K!=null)return K;K=ijK(b,R);const I=on(Vd,N=>N==R); b=XC(b,K,K,h,U$x[Vd[I]]);R=="fully_viewable_audible_half_duration_impression"&&(b.std="csm");return b}; zc2=function(b){var R=b.vY.toString(10).padStart(2,"0");R=`${b.PH}${R}`;b.vY<99&&b.vY++;return R}; r3=function(b,R,h){M3(h,"mousedown",()=>GKw(b),301); M3(R,"scroll",()=>gTK(b),302); M3(h,"touchmove",()=>Wue(b),303); M3(h,"mousemove",()=>Sex(b),304); M3(h,"keydown",()=>nT3(b),305)}; ETH=function(){var b=document.documentElement;try{if(!qB(dM().top))return"2";var R;let h=[];const K=dM(b.ownerDocument);for(b=K;b!=K.top;b=b.parent)if(b.frameElement)h.push(b.frameElement);else break;return(R=h)&&R.length!=0?"1":"0"}catch(h){return"2"}}; GKw=function(b){g.Z2(b.G,R=>{R.X>1E5||++R.X})}; gTK=function(b){g.Z2(b.G,R=>{R.G>1E5||++R.G})}; Wue=function(b){g.Z2(b.G,R=>{R.G>1E5||++R.G})}; Sex=function(b){g.Z2(b.G,R=>{R.V>1E5||++R.V})}; nT3=function(b){g.Z2(b.G,R=>{R.Y>1E5||++R.Y})}; Lf=function(b,R){return g.jc(b.G,h=>h.Lm==R)}; w3=function(b,R){return R?g.jc(b.G,h=>h.U7.LP==R):null}; Tsw=function(b,R){return g.jc(b.Y,h=>h.YY()==2&&h.Lm==R)}; oZ=function(){var b=FC;return b.G.length==0?b.Y:b.Y.length==0?b.G:g.Wp(b.Y,b.G)}; DT=function(b,R){b=R.YY()==1?b.G:b.Y;const h=yz(b,K=>K==R); return h!=-1?(b.splice(h,1),R.rB&&R.rB.unobserve(),R.dispose(),!0):!1}; J_B=function(b){var R=FC;let h;if(DT(R,b)){switch(b.YY()){case 0:h=()=>null; case 2:h=()=>Tsw(R,b.Lm); break;case 1:h=()=>Lf(R,b.Lm)}for(let K=h();K;K=h())DT(R,K)}}; kKT=function(b){var R=FC;b=g.lR(b,h=>!w3(R,h.U7.LP)); R.G.push(...b)}; YeD=function(b){var R=FC;const h=[];g.pr(b,K=>{dx(R.G,I=>I.U7.LP===K.U7.LP&&I.Lm===K.Lm)||(R.G.push(K),h.push(K))})}; bV=function(b,R){if(b.Y==null)return!1;const h=(K,I)=>{R(K,I)}; b.G=g.jc(b.Y,K=>K!=null&&K.C()); b.G&&(b.G.init(h)?b4(b.G.G):R(b.G.G.U(),b.G));return b.G!=null}; ecH=function(b){if(!b.length)return[];b=g.lR(b,R=>R!=null&&R.T6()); for(let R=1;RRS(b,I)),OjD); K=DV(K,()=>{b.V.unobserve(R);b.V.observe(R);RS(b,hK(b))}); h.ResizeObserver?(b.T6=new h.ResizeObserver(K),b.T6.observe(R)):h.MutationObserver&&(b.nR=new g.JD.MutationObserver(K),b.nR.observe(R,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));b.V.observe(R);RS(b,hK(b));return!0}; hK=function(b){return b.V&&b.V.takeRecords?b.V.takeRecords():[]}; RS=function(b,R){try{if(R.length){b.vY||(b.vY=Date.now()-eX);var h=x$e(R),K=sI(b.element,b.Y.G.X),I=K.x,N=K.y;b.X=new P_(Math.round(N),Math.round(I)+h.boundingClientRect.width,Math.round(N)+h.boundingClientRect.height,Math.round(I));b.G=RZ(b,b.X);var p=c6(h.intersectionRect);b.C=uj(p,b.X.left-p.left,b.X.top-p.top)}}catch(l){b.unobserve(),JS.jD(299,l,void 0,void 0)}}; x$e=function(b){return vp(b,(R,h)=>R.time>h.time?R:h,b[0])}; KS=function(){bl();const b=VT();return b.X||b.Y?0:2}; m$q=function(b,R){if(!b.V){R=ko(142,R);TY();var h;rD.visibilityState?h="visibilitychange":rD.mozVisibilityState?h="mozvisibilitychange":rD.webkitVisibilityState&&(h="webkitvisibilitychange");h&&Bo(rD,h,R,{capture:!1})&&(b.V=R)}}; IS=function(b){const R=LV(),h=Date.now()-eX;R?(Os||(QT=h,g.pr(FC.G,K=>{var I=K.V0();I.JX=Tg(I,h,K.y$!=1)})),Os=!0):(b.J=sE(b,h),Os=!1,u4=h,g.pr(FC.G,K=>{K.jq&&(K.V0().K=h)})); $3(b,oZ(),!R)}; pS=function(){var b=N5;b.S||(b.S=!0,m$q(b,(...R)=>IS(b,...R)),IS(b))}; $3=function(b,R,h){if(!b.done&&(b.Y.cancel(),R.length!=0)){b.X=null;try{Ps2();var K=Date.now()-eX;bl().S=K;if(kg(lV).G!=null)for(let I=0;I{I.eS.FH=0}):b.Y.schedule()}}}; Ps2=function(){kg(aS);const b=kg(lV);b.G!=null&&b.G.G?b4(b.G.G):VT().update(Jx)}; sE=function(b,R){b=b.J;Os&&(b+=R-QT);return b}; vy=function(){const b=kg(lV);if(b.G!=null){var R=b.G;g.pr(oZ(),h=>UV(h,R))}}; c_e=function(b=()=>({})){var R=N5; JS.Wt="av-js";By.G=.01;ZjP([h=>{var K=bl(),I={bin:K.Y,type:"error"};K=Hl(K.gi);if(!R.X){var N=Jx.document,p=Yo>=0?Date.now()-eX-Yo:-1;const B=Date.now()-eX;R.G.UJ==-1&&(p=B);const H=VT(),q=bl(),d=Hl(q.gi),t=oZ();try{if(t.length>0){var l=H.G;l&&(d.bs=[Z_(l),l.getHeight()]);var a=H.S;a&&(d.ps=[a.width,a.height]);Jx.screen&&(d.scs=[Jx.screen.width,Jx.screen.height])}else d.url=encodeURIComponent(Jx.location.href.substring(0,512)),N.referrer&&(d.referrer=encodeURIComponent(N.referrer.substring(0,512))); d.tt=p;d.pt=Yo;d.bin=q.Y;Jx.google_osd_load_pub_page_exp!==void 0&&(d.olpp=Jx.google_osd_load_pub_page_exp);d.deb=[1,R.G.Zx,R.G.zc,R.G.sL,R.G.UJ,0,R.Y.Y,R.G.u0,R.G.hJ,R.G.g$,R.G.IA,-1].join(";");d.tvt=sE(R,B);H.Y&&(d.inapp=1);if(Jx!==null&&Jx!=Jx.top){t.length>0&&(d.iframe_loc=encodeURIComponent(Jx.location.href.substring(0,512)));var v=H.D;d.is=[Z_(v),v.getHeight()]}}catch(S){d.error=1}R.X=d}l=g.$T(R.X);a=bl().G;vl(a.X,"prf")==1?(v=new Hy,N=a.G,p=0,N.G>-1&&(p=N.X.G.now()-N.G),v=VS(v,1,SW(N.V+p), 0),N=a.G,v=VS(v,5,eW(N.G>-1?N.Y+1:N.Y),0),v=VS(v,2,V4(a.Y.G.X()),"0"),v=VS(v,3,V4(a.Y.G.Y()),"0"),a=VS(v,4,V4(a.Y.G.G()),"0"),a={pf:g.Zc(a.Y())}):a={};g.pj(l,a);g.pj(h,I,K,l,b())}])}; urH=function(){var b=q5||Jx;if(!b)return"";const R=[];if(!b.location||!b.location.href)return"";R.push(`${"url"}=${encodeURIComponent(b.location.href.substring(0,512))}`);b.document&&b.document.referrer&&R.push(`${"referrer"}=${encodeURIComponent(b.document.referrer.substring(0,512))}`);return R.join("&")}; dp=function(){let b="youtube.player.web_20260210_11_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20260210_11_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20260210_11_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20260210_11_RC00".match(/_(\d{8})_\d+_RC\d+$/);if(b?.length==2)return b[1];b="youtube.player.web_20260210_11_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);return b?.length==3?"20"+b[1]+b[2]:null}; VL2=function(b){try{const R=b.split(",");return R.length>g.Lr(Xl3).length?null:vp(R,(h,K)=>{K=K.toLowerCase().split("=");if(K.length!=2||fS[K[0]]===void 0||!fS[K[0]](K[1]))throw Error(`Entry (${K[0]}, ${K[1]}) is invalid.`);h[K[0]]=K[1];return h},{})}catch(R){return null}}; CsK=function(b,R){if(b.G==void 0)return 0;switch(b.S){case "mtos":return b.Y?d3(R.G,b.G):d3(R.Y,b.G);case "tos":return b.Y?Hk(R.G,b.G):Hk(R.Y,b.G)}return 0}; MLT=function(b){const R=bl(),h=kg(y8);b&&!R.V&&(R.V=!0,h.fR=!0,h.K&&h.fail("w",!0))}; jd=function(){try{const b=kg(y8);tK(b,"removeEventListener","ready",jd);AK(b)}catch(b){JS.jD(541,b,void 0,void 0)}}; zW=function(b,R){try{var h=kg(y8);h.SY=!0;let I;I=b?new P_(b.y,b.x+b.width,b.y+b.height,b.x):new P_(0,0,0,0);const N=Date.now()-eX,p=LV();var K=new iV(N,p,h);K.G=I;K.volume=R;h.J(K)}catch(I){JS.jD(542,I,void 0,void 0)}}; AK=function(b){typeof b.Y.tZ.AFMA_LIDAR==="string"?(b.vY=!0,r_H(b)):(b.Y.compatibility=3,b.K="nc",b.fail("w"))}; tK=function(b,R,...h){try{return b.Y.tZ[R].apply(b.Y.tZ,h)}catch(K){Lux(K,I=>{I.method=R})}}; UE=function(b,R,h){tK(b,"addEventListener",R,h)}; GW=function(b){bl().V=!!tK(b,"isViewable");UE(b,"viewableChange",MLT);tK(b,"getState")==="loading"?UE(b,"ready",jd):AK(b)}; r_H=function(b){b.SY=!1;const R=vl(bl().gi,"rmmt")==1,h=!!tK(b,"isViewable");(R?!h:1)&&TY().setTimeout(gp(524,()=>{b.SY||(Wy(b),JS.jD(540,Error(),void 0,void 0),b.K="mt",b.fail("w"))}),500); wl2(b);UE(b,b.Y.tZ.AFMA_LIDAR,zW)}; Wy=function(b){tK(b,"removeEventListener",b.Y.tZ.AFMA_LIDAR,zW);b.vY=!1}; wl2=function(b){var R=vl(bl().gi,"sneio")==1;const h=b.Y.tZ.AFMA_LIDAR_EXP_1!==void 0,K=b.Y.tZ.AFMA_LIDAR_EXP_2!==void 0;(R=R&&K)&&(b.Y.tZ.AFMA_LIDAR_EXP_2=!0);h&&(b.Y.tZ.AFMA_LIDAR_EXP_1=!R)}; Sd=function(b,R){if(tK(b,"getState")==="loading")return new g.ru(-1,-1);R=tK(b,R);if(!R)return new g.ru(-1,-1);b=parseInt(R.width,10);R=parseInt(R.height,10);return isNaN(b)||isNaN(R)?new g.ru(-1,-1):new g.ru(b,R)}; EE=function(){const b=VT();return{sv:"968",...(nS!==null&&{v:nS}),["if"]:b.X?"1":"0",nas:String(FC.G.length)}}; TW=function(b,R){const h=b[R];h!==void 0&&h>0&&(b[R]=Math.floor(h*1E3))}; Fu2=function(b){c_e(()=>{const R=EE();b.Y!=null&&(R.sdk=b.Y);const h=kg(lV);h.G!=null&&(R.avms=h.G.getName());return R})}; JK=function(b,R,h,K){b=b.C(null,K,!0,R);b.V=h;kKT([b]);return b}; oTH=function(b,R,h){R.c_=!0;switch(R.YY()){case 1:k3(R,h);break;case 2:b.NJ(R)}}; Roq=function(b,R,h){dsH(R);const K=b.G;g.pr(R,I=>{const N=g.an(I.criteria,p=>{var l=VL2(p);if(l==null)p=null;else if(p=new D$K,l.visible!=null&&(p.G=l.visible/100),l.audible!=null&&(p.Y=l.audible==1),l.time!=null){const a=l.timetype=="mtos"?"mtos":"tos",v=ds(l.time,"%")?"%":"ms";l=parseInt(l.time,10);v=="%"&&(l/=100);p.setTime(l,v,a)}return p}); dx(N,p=>p==null)||tLT(h,new bPq(I.id,I.event,N,K))})}; INq=function(){const b=[];var R=bl();b.push(kg(hoT));vl(R.gi,"mvp_lv")&&b.push(kg(y8));R=[new KdB,new sg3];R.push(new $Ew(b));R.push(new Y3(Jx));return R}; OE=function(){const b=[new Y3(Jx)],R=kg(lV);R.Y=b;bV(R,()=>{ed("i")})?N5.done||(vy(),pS()):ed("i")}; NuK=function(b){if(!b.isInitialized){b.isInitialized=!0;try{const K=Date.now()-eX,I=bl(),N=VT();Yo=K;I.X=79463069;b.Y!=="o"&&(q5=dk(Jx));if(vzT()){N5.G.zc=0;N5.G.UJ=Date.now()-eX-K;var R=INq(),h=kg(lV);h.Y=R;bV(h,()=>{OE()})?N5.done||(vy(),oi(h.G.G,b),pS()):N.X?OE():pS()}else Q8=!0}catch(K){throw FC.reset(),K; }}}; ed=function(b){N5.Y.cancel();x3=b;N5.done=!0}; m7=function(b){if(b.Y)return b.Y;const R=kg(lV).G;if(R)switch(R.getName()){case "nis":b.Y="n";break;case "gsv":b.Y="m"}b.Y||(b.Y="h");return b.Y}; ZQ=function(b,R,h){if(b.G==null)return R.oL|=4,!1;b=Py(b.G,h,R);R.oL|=b;return b==0}; k3=function(b,R){if(!b.RH){var h=Cf(b,"start",LV());h=b.wV.G(h).G;var K={id:"lidarv"};K.r=R;K.sv="968";nS!==null&&(K.v=nS);yT(h,(I,N)=>K[I]=I=="mtos"||I=="tos"?N:encodeURIComponent(N)); R=urH();yT(R,(I,N)=>K[I]=encodeURIComponent(N)); R="//pagead2.googlesyndication.com/pagead/gen_204?"+sV(Kf(new pf,K));l4(R);b.RH=!0}}; uV=function(b,R,h){$3(N5,[b],!LV());ck(b,h);h!=4&&eD(b.T6,h,b.CB);return Cf(b,R,LV())}; pEK=function(b,R,h,K){let I;I=w3(FC,h);I!==null&&I.Lm!==R&&(b.K(I),I=null);I||(R=b.C(h,Date.now()-eX,!1,R),FC.Y.length==0&&(bl().X=79463069),YeD([R]),I=R,I.V=m7(b),K&&(I.pR=K));return I}; Py=function(b,R,h){b=b.Y();if(typeof b==="function"){var K={...(nS!==null&&{v:nS}),sv:"968",cb:p2,e:lNT(R)};const I=Cf(h,R,LV());g.pj(K,I);h.w7[R]=I;K=h.YY()==2?aNe(K).join("&"):h.wV.G(K).G;try{return b(h.Lm,K,R),0}catch(N){return 2}}else return 1}; lNT=function(b){const R=q$(b,"custom_metric_viewable")?"custom_metric_viewable":b;b=on(Vd,h=>h==R); return lX[b]}; aU=function(b){return{viewability:b.G,googleViewability:b.Y}}; H9=function(b,R,h={}){b=v9(kg(B9),R,h,b);return aU(b)}; v9=function(b,R,h={},K){var I={};g.pj(I,{opt_adElement:void 0,opt_fullscreen:void 0},h);var N=b.U(R,h);h=N?N.wV:b.T6();if(I.opt_bounds)return h.G(qT("ol",K));if(K!==void 0)if(da(K)!==void 0)if(Q8)b=qT("ue",K);else if(NuK(b),x3=="i")b=qT("i",K),b["if"]=0;else if(R=b.U(R,I)){b:{x3=="i"&&(R.c_=!0);N=I.opt_fullscreen;N!==void 0&&zg(R,!!N);if(N=!VT().Y)(N=t_(g.zK(),"CrKey")&&!(t_(g.zK(),"CrKey")&&t_(g.zK(),"SmartSpeaker"))||t_(g.zK(),"PlayStation")||t_(g.zK(),"Roku")||wpx()||t_(g.zK(),"Xbox"))||(N=g.zK(), N=t_(N,"AppleTV")||t_(N,"Apple TV")||t_(N,"CFNetwork")||t_(N,"tvOS")),N||(N=g.zK(),N=t_(N,"sdk_google_atv_x86")||t_(N,"Android TV")),N=!N;N&&(TY(),N=Ho(rD)===0);var p=N;if(p){switch(R.YY()){case 1:k3(R,"pv");break;case 2:b.NJ(R)}ed("pv")}N=K.toLowerCase();if(!p&&(vl(bl().gi,"ssmol")&&N==="loaded"?0:g.iR(vw2,N))&&R.y$==0){x3!="i"&&(N5.done=!1);p=I!==void 0?I.opt_nativeTime:void 0;xo=p=typeof p==="number"?p:Date.now()-eX;R.jq=!0;var l=LV();R.y$=1;R.kT={};R.kT.start=!1;R.kT.firstquartile=!1;R.kT.midpoint= !1;R.kT.thirdquartile=!1;R.kT.complete=!1;R.kT.resume=!1;R.kT.pause=!1;R.kT.skip=!1;R.kT.mute=!1;R.kT.unmute=!1;R.kT.viewable_impression=!1;R.kT.measurable_impression=!1;R.kT.fully_viewable_audible_half_duration_impression=!1;R.kT.fullscreen=!1;R.kT.exitfullscreen=!1;R.zg=0;l||(R.V0().K=p);$3(N5,[R],!l)}(p=R.uD[N])&&EV(R.AU,p);vl(bl().gi,"fmd")||g.iR(f2,N)&&R.ET&&R.ET.Y(R,null);let a;switch(R.YY()){case 1:a=q$(N,"custom_metric_viewable")?b.KR.custom_metric_viewable:b.KR[N];break;case 2:a=b.m_[N]}if(a&& (K=a.call(b,R,I,K),vl(bl().gi,"fmd")&&g.iR(f2,N)&&R.ET&&R.ET.Y(R,null),K!==void 0)){I=qT(void 0,N);g.pj(I,K);K=I;break b}K=void 0}R.y$==3&&b.K(R);b=K}else b=qT("nf",K);else b=void 0;else Q8?b=qT("ue"):N?(b=qT(),g.pj(b,XC(N,!0,!1,!1))):b=qT("nf");return typeof b==="string"?h.G():h.G(b)}; BuH=function(b,R,h){let K=Lf(FC,R);K||(K=JK(b,R,"n",h.opt_nativeTime||-1));return K}; HPT=function(b,R,h){var K=Lf(FC,R);K||(K=h.opt_nativeTime||-1,K=JK(b,R,m7(b),K),h.opt_osdId&&(K.pR=h.opt_osdId));return K}; q5x=function(b,R){let h=Lf(FC,R);h||(h=JK(b,R,"h",-1));return h}; dEB=function(b,R,h){h=h.opt_configurable_tracking_events;b.G!=null&&Array.isArray(h)&&Roq(b,h,R)}; fNB=function(b){bl();switch(m7(b)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; yF=function(b,R){R&&(b.nR=R)}; to=function(b,...R){R=R.filter(Boolean).join("&");if(!R)return b;const h=b.match(/[?&]adurl=/);return h?b.slice(0,h.index+1)+R+"&"+b.slice(h.index+1):b+(b.indexOf("?")<0?"?":"&")+R}; jG=function(b,R){return R?"&"+b+"="+encodeURIComponent(R):""}; y1P=function(b){b=b.V;if(!b)return"";let R=jG("uap",b.platform)+jG("uapv",b.platformVersion)+jG("uafv",b.uaFullVersion)+jG("uaa",b.architecture)+jG("uam",b.model)+jG("uab",b.bitness);b.fullVersionList&&(R+="&uafvl="+encodeURIComponent(b.fullVersionList.map(h=>encodeURIComponent(h.brand)+";"+encodeURIComponent(h.version)).join("|"))); b.wow64!=null&&(R+="&uaw="+Number(b.wow64));return R.slice(1)}; tlx=function(b,R,h,K,I){var N=window,p;h?p="//pagead2.googlesyndication.com/bg/"+zZ(h)+".js":p="";h=N.document;const l={};R&&(l._scs_=R);l._bgu_=p;l._bgp_=K;l._li_="v_h.3.0.0.0";I&&(l._upb_=I);(R=N.GoogleTyFxhY)&&typeof R.push=="function"||(R=N.GoogleTyFxhY=[]);R.push(l);R=K0(h).createElement("SCRIPT");R.type="text/javascript";R.async=!0;b=(0,g.DN)`//tpc.googlesyndication.com/sodar/${zZ(b)+".js"}`;g.vE(R,b);(N=(N.GoogleTyFxhYEET||{})[R.src])?N():h.getElementsByTagName("head")[0].appendChild(R)}; iX=function(b="bevasrsg"){return new Promise(R=>{if(window===window.top)var h=window;else{try{h=!!window?.top?.location.href&&!1}catch(I){h=!0}h=h?window:window.top}let K=h[b];K?.bevasrs?R(new Ao(K.bevasrs)):(K||(K={nqfbel:[]},h[b]=K),K.nqfbel.push(I=>{R(new Ao(I))}))})}; zk=function(b){const R={c:b.EA,e:b.bL,mc:b.nD,me:b.G8};b.UE&&(R.co={c:b.UE.tN,a:b.UE.LK,s:b.UE.k_});return R}; jgP=function(b){b.Y!==void 0&&(b.X.forEach(R=>{b.Y?.removeEventListener(R,b.V)}),b.Y=void 0)}; iPq=async function(b){if(!b.GJ.wpc)throw new Uh(30,"NWA");if(b.G)return b.G;const R=await b.GJ.wpc();b.G=new A1x(R);return b.G}; W9=function(b){const R=[];$0(b,Gk,6).forEach(h=>{g.vv(h,2)<=53&&R.push(g.vv(h,1))}); return R}; zox=function(b){const R=[];$0(b,Gk,6).forEach(h=>{g.vv(h,2)>53&&R.push(g.vv(h,1))}); return R}; SG=function(b){b.then(()=>{},()=>{})}; n2=function(b){return{fieldType:2,fieldName:b}}; g.Eh=function(b){return{fieldType:3,fieldName:b}}; UE3=function(b,R){return Xw(b,R,Yc)}; xW=function(b){var R=new Tk;R=tV(R,1,b.Y);var h=GZT(b);R=Xw(R,h,znw);h=[];const K=[];for(var I of b.G.keys())K.push(I.split(","));for(I=0;I>>31)&4294967295;H=I[0];var t=I[1],S=I[2],J=I[3],e=I[4];for(d=0;d<80;d++){if(d<40)if(d<20){var Y=J^t&(S^J);var Q=1518500249}else Y=t^S^J,Q=1859775393;else d<60?(Y=t&S|J&(t|S),Q=2400959708):(Y=t^S^J,Q=3395469782);Y=((H<<5|H>>>27)&4294967295)+Y+e+Q+q[d]&4294967295;e=J;J=S;S=(t<<30|t>>>2)&4294967295;t=H;H=Y}I[0]=I[0]+H&4294967295;I[1]=I[1]+t&4294967295;I[2]= I[2]+S&4294967295;I[3]=I[3]+J&4294967295;I[4]=I[4]+e&4294967295} function h(H,q){if(typeof H==="string"){H=unescape(encodeURIComponent(H));for(var d=[],t=0,S=H.length;t=56;d--)N[d]=q&255,q>>>=8;R(N);for(d=q=0;d<5;d++)for(var t=24;t>=0;t-=8)H[q++]=I[d]>>t&255;return H} for(var I=[],N=[],p=[],l=[128],a=1;a<64;++a)l[a]=0;var v,B;b();return{reset:b,update:h,digest:K,Dm:function(){for(var H=K(),q="",d=0;d{var I=new ra;I=tV(I,1,K.brand);return tV(I,2,K.version)})); typeof b.mobile==="boolean"&&J9(MT,2,Ek(b.mobile));wa=b.getHighEntropyValues(R)}const h=new Set(R);return wa.then(K=>{const I=MT.clone();h.has("platform")&&tV(I,3,K.platform);h.has("platformVersion")&&tV(I,4,K.platformVersion);h.has("architecture")&&tV(I,5,K.architecture);h.has("model")&&tV(I,6,K.model);h.has("uaFullVersion")&&tV(I,7,K.uaFullVersion);return I.MU()}).catch(()=>MT.MU())}; FE=function(b){return AV(b,1,1)}; Rv=function(b,R){NP(b.G,oU,1,R);qP(R,1)||FE(R);b.sT||(R=DM(b),Hv(R,5)||tV(R,5,b.locale));b.uach&&(R=DM(b),hV(R,b5,9)||NP(R,b5,9,b.uach))}; DM=function(b){var R=hV(b.G,oU,1);R||(R=new oU,Rv(b,R));b=R;R=hV(b,hY,11);R||(R=new hY,NP(b,hY,11,R));return R}; Tux=function(b,R){b.Y=R}; kZH=function(b){const R=b.sT?void 0:dM();R?EwT(R,L2).then(h=>{b.uach=J1e(h??"[]");h=DM(b);NP(h,b5,9,b.uach);return!0}).catch(()=>!1):Promise.resolve(!1)}; g.KU=function(b,R,h,K){this.V=b;this.S=R;this.G=this.X=b;this.J=h||0;this.D=K||2}; g.sq=function(b){b.G=Math.min(b.S,b.G*b.D);b.X=Math.min(b.S,b.G+(b.J?Math.round(b.J*(Math.random()-.5)*2*b.G):0));b.Y++}; var Y5e=function(b){return $X[f[6]](this,15,b)}; Iv=function(){return"https://play.google.com/log?format=json&hasfast=true"}; eox=function(b,R){if(!b.gp)return()=>{}; const h=()=>{b.flush()}; return R?()=>{R().then(h)}:h}; Nq=function(b){b.X.isFinal=!0;b.flush();b.X.isFinal=!1}; pU=function(b){b.K||(b.K=Iv());try{return(new URL(b.K)).toString()}catch(R){return(new URL(b.K,dM().location.origin)).toString()}}; Qgs=function(b){OPB(b,(R,h)=>{R=new URL(R);R.searchParams.set("format","json");let K=!1;try{K=dM().navigator.sendBeacon(R.toString(),h.MU())}catch{}K||(b.U=!1);return K})}; xE3=function(b,R,h=null,K=b.withCredentials){const I={},N=new URL(pU(b));h&&(I.Authorization=h);b.sessionIndex&&(I["X-Goog-AuthUser"]=b.sessionIndex,N.searchParams.set("authuser",b.sessionIndex));b.pageId&&(Object.defineProperty(I,"X-Goog-PageId",{value:b.pageId}),N.searchParams.set("pageId",b.pageId));return{url:N.toString(),body:R,f_:1,requestHeaders:I,requestType:"POST",withCredentials:K,timeoutMillis:b.timeoutMillis}}; OPB=function(b,R){if(b.G.length!==0){var h=new URL(pU(b));h.searchParams.delete("format");var K=b.AC();K&&h.searchParams.set("auth",K);h.searchParams.set("authuser",b.sessionIndex||"0");for(K=0;K<10&&b.G.length;++K){const I=b.G.slice(0,32),N=b.X.build(I,b.V,b.J,b.xa,b.C,b.G6);if(!R(h.toString(),N)){++b.J;break}b.V=0;b.J=0;b.C=0;b.G6=0;b.G=b.G.slice(I.length)}b.Y.enabled&&b.Y.stop()}}; mE3=function(b,R){b.buildLabel=R;return b}; ZPH=function(b){b.network=new Pix;return b}; c1K=function(b,R){b.G=R}; uGT=function(b){b.Y=!0;return b}; gwx=function(b){return b.fields.map(R=>R.fieldType)}; Jo=function(b,...R){R=l5(R);return b.G.has(R)?b.G.get(R):void 0}; GZT=function(b){return b.fields.map(R=>R.fieldName)}; l5=function(...b){return b?b.join(","):"key"}; g.av=function(b,R){this.type=b;this.currentTarget=this.target=R;this.defaultPrevented=this.Y=!1}; vj=function(b,R){g.av.call(this,b?b.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.G=null;b&&this.init(b,R)}; Hj=function(b){return!(!b||!b[Bj])}; Vlx=function(b,R,h,K,I){this.listener=b;this.proxy=null;this.src=R;this.type=h;this.capture=!!K;this.handler=I;this.key=++XET;this.removed=this.Wm=!1}; qq=function(b){b.removed=!0;b.listener=null;b.proxy=null;b.src=null;b.handler=null}; dq=function(b){this.src=b;this.listeners={};this.G=0}; g.fU=function(b,R){const h=R.type;h in b.listeners&&g.G3(b.listeners[h],R)&&(qq(R),b.listeners[h].length==0&&(delete b.listeners[h],b.G--))}; yb=function(b,R,h,K){for(let I=0;I1)));p=p.next)I||(N=p);I&&(h.G==0&&K==1?ov(h,R):(N?(K=N,K.next==h.V&&(h.V=K),K.next=K.next.next):DG(h),bK(h,I,3,R)))}b.X=null}else m2(b,3,R)}; LU=function(b,R){b.Y||b.G!=2&&b.G!=3||RG(b);b.V?b.V.next=R:b.Y=R;b.V=R}; Ki=function(b,R,h,K){const I=u5(null,null,null);I.G=new g.Pj(function(N,p){I.X=R?function(l){try{const a=R.call(K,l);N(a)}catch(a){p(a)}}:N; I.Y=h?function(l){try{const a=h.call(K,l);a===void 0&&l instanceof ht?p(l):N(a)}catch(a){p(a)}}:p}); I.G.X=b;LU(b,I);return I.G}; m2=function(b,R,h){b.G==0&&(b===h&&(R=3,h=new TypeError("Promise cannot resolve to itself")),b.G=1,CU(h,b.oA,b.qw,b)||(b.D=h,b.G=R,b.X=null,RG(b),R!=3||h instanceof ht||Fde(b,h)))}; CU=function(b,R,h,K){if(b instanceof g.Pj)return wq(b,R,h,K),!0;if(b)try{var I=!!b.$goog_Thenable}catch(N){I=!1}else I=!1;if(I)return b.then(R,h,K),!0;if(g.uT(b))try{const N=b.then;if(typeof N==="function")return owH(b,N,R,h,K),!0}catch(N){return h.call(K,N),!0}return!1}; owH=function(b,R,h,K,I){function N(a){l||(l=!0,K.call(I,a))} function p(a){l||(l=!0,h.call(I,a))} let l=!1;try{R.call(b,p,N)}catch(a){N(a)}}; RG=function(b){b.J||(b.J=!0,g.Mq(b.R1,b))}; DG=function(b){let R=null;b.Y&&(R=b.Y,b.Y=R.next,R.next=null);b.Y||(b.V=null);return R}; bK=function(b,R,h,K){if(h==3&&R.Y&&!R.V)for(;b&&b.S;b=b.X)b.S=!1;if(R.G)R.G.X=null,sH(R,h,K);else try{R.V?R.X.call(R.context):sH(R,h,K)}catch(I){$5.call(null,I)}cj.put(R)}; sH=function(b,R,h){R==2?b.X.call(b.context,h):b.Y&&b.Y.call(b.context,h)}; Fde=function(b,R){b.S=!0;g.Mq(function(){b.S&&$5.call(null,R)})}; ht=function(b){In.call(this,b)}; g.IG=function(b,R){g.TD.call(this);this.zk=b||1;this.nW=R||g.JD;this.YL=(0,g.Ms)(this.Sp,this);this.HE=g.wK()}; g.Nf=function(b,R,h){if(typeof b==="function")h&&(b=(0,g.Ms)(b,h));else if(b&&typeof b.handleEvent=="function")b=(0,g.Ms)(b.handleEvent,b);else throw Error("Invalid listener argument");return Number(R)>2147483647?-1:g.JD.setTimeout(b,R||0)}; aG=function(b,R){let h=null;return(new g.Pj(function(K,I){h=g.Nf(function(){K(R)},b); h==-1&&I(Error("Failed to schedule timer."))})).xb(function(K){g.JD.clearTimeout(h); throw K;})}; Bd=function(b,R,...h){b.Y.has(R)||b.Y.set(R,new vd(R,h))}; g.qf=function(b,R,...h){b.Y.has(R)||b.Y.set(R,new Hd(R,h))}; g.fi=function(b,R,...h){g.dS(b,R,1,h)}; yq=function(b){b.G.enabled||b.G.start();b.S++;b.S>=b.X&&b.V()}; DET=function(b){for(let R=0;R2?b.G.statusText:""}catch(h){R=""}b.V=R+" ["+b.getStatus()+"]";T1(b)}}finally{Jt(b)}}}; Jt=function(b,R){if(b.G){b.J&&(clearTimeout(b.J),b.J=null);const h=b.G;b.G=null;R||b.dispatchEvent("ready");try{h.onreadystatechange=null}catch(K){}}}; OH=function(b){var R=b.getStatus();a:switch(R){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var h=!0;break a;default:h=!1}if(!h){if(R=R===0)b=g.ai(String(b.K))[1]||null,!b&&g.JD.self&&g.JD.self.location&&(b=g.JD.self.location.protocol.slice(0,-1)),R=!sF2.test(b?b.toLowerCase():"");h=R}return h}; g.eS=function(b){return b.G?b.G.readyState:0}; g.x5=function(b){try{return b.G?b.G.responseText:""}catch(R){return""}}; g.mr=function(b){try{if(!b.G)return null;if("response"in b.G)return b.G.response;switch(b.T6){case "":case "text":return b.G.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in b.G)return b.G.mozResponseArrayBuffer}return null}catch(R){return null}}; g.Pd=function(b){const R={};b=(b.G&&g.eS(b)>=2?b.G.getAllResponseHeaders()||"":"").split("\r\n");for(let K=0;K{setTimeout(()=>{try{N.V()}finally{I.dispose()}})}); N.X=1E5;N.flushInterval=3E4;N.G.setInterval(3E4);return N}; p_K=function(b){if(b.timer===void 0){const R=Math.max(0,b.G+b.Y-cd());b.timer=setTimeout(()=>{try{b.callback()}finally{b.G=cd(),b.timer=void 0}},R)}}; a_H=function(b,R=[]){return new l_e(b,R)}; cd=function(){return globalThis.performance?.now?.()??Date.now()}; Mf=function(b,R){if(b.disable)return new Ci;R=R?W9(R):[];return a_H({sV:b.sV,xC:b.tJ,bu:b.fS,F0:b.F0,xU:b.xU,Fb:b.Fb},R)}; vsH=function(b){if(!b)return null;b=fR(b,4);return b===null||b===void 0?null:Xr(b)}; Li=function(){rS.instance||(rS.instance=new rS);return rS.instance}; BMe=function(b,R,h,K){if(!R&&!h)return Promise.resolve();if(!K)return wS(R,h);let I;(I=b.Y)[K]||(I[K]=new Promise((N,p)=>{wS(R,h).then(()=>{b.G=K;N()},l=>{delete b.Y[K]; p(l)})})); return b.Y[K]}; Dg=function(b,R){return BMe(b,hV(R,FD,1,B$),hV(R,oG,2,B$),Hv(R,3,void 0,B$))}; wS=function(b,R){return R?H0D(R):b?qUT(b):Promise.resolve()}; H0D=function(b){return new Promise((R,h)=>{const K=g.jO("SCRIPT"),I=vsH(b);g.vE(K,I);K.onload=()=>{g.GF(K);R()}; K.onerror=()=>{g.GF(K);h(Error("EWLS"))}; (g.$s("HEAD")[0]||document.documentElement).appendChild(K)})}; qUT=function(b){return new Promise(R=>{const h=g.jO("SCRIPT");if(b){var K=fR(b,6);K=K===null||K===void 0?null:pP(K)}else K=null;h.textContent=li(K);ag(h);(g.$s("HEAD")[0]||document.documentElement).appendChild(h);g.GF(h);R()})}; dNP=function(b,R){return jZ(b,1,R)}; f_T=function(b,R){return jZ(b,2,R)}; hy=function(b){const R={ns:b.Sn,el:b.eventLabel,cpn:b.clientPlaybackNonce,ver:2,cmt:b.Y(b.G),fmt:b.hc,fs:b.Ty?"1":"0",rt:b.Y(b.jn),adformat:b.adFormat,content_v:b.contentVideoId,euri:b.s8,lact:b.Ys,live:b.wB,cl:(868418280).toString(),mos:b.gB,state:b.playerState,volume:b.vO};b.subscribed&&(R.subscribed="1");Object.assign(R,b.SK);b.K==="all"?Object.assign(R,b.RH):b.K==="once"&&b.X&&Object.assign(R,b.RH);b.autoplay&&(R.autoplay="1");b.pz&&(R.sautoplay="1");b.CR&&(R.dni="1");!b.S&&b.vY&&(R.epm=yxP[b.vY]); b.isFinal&&(R["final"]="1");b.Zr&&(R.splay="1");b.eb&&(R.delay=b.eb);b.NJ&&(R.hl=b.NJ);b.region&&(R.cr=b.region);b.userGenderAge&&(R.uga=b.userGenderAge);b.userAge!==void 0&&b.KR&&(R.uga=b.KR+b.userAge);b.SY!==void 0&&(R.len=b.Y(b.SY));(!b.S||b.PH)&&b.experimentIds.length>0&&(R.fexp=b.experimentIds.toString());b.D!==null&&(R.rtn=b.Y(b.D));b.Mh&&(R.feature=b.Mh);b.wR&&(R.ctrl=b.wR);b.Nf&&(R.ytr=b.Nf);b.wp&&(R.afmt=b.wp);b.offlineDownloadUserChoice&&(R.ODUC=b.offlineDownloadUserChoice);b.G6&&(R.lio= b.Y(b.G6));b.S?(R.idpj=b.Kh,R.ldpj=b.ri,b.delayThresholdMet&&(R.dtm="1"),b.U!=null&&(R.rti=b.Y(b.U)),b.Bm&&(R.ald=b.Bm),b.compositeLiveIngestionOffsetToken&&(R.clio=b.compositeLiveIngestionOffsetToken)):b.adType!==void 0&&(R.at=b.adType);b.FM&&(b.X||b.S)&&(R.size=b.FM);b.X&&b.J.length&&(R.pbstyle=b.J.join(","));b.EW!=null&&(b.X||b.S)&&(R.inview=b.Y(b.EW));b.heartbeatLoggingToken&&(R.hb_data=b.heartbeatLoggingToken);b.S&&(R.volume=b6(b,g.an(b.segments,h=>h.volume)),R.st=b6(b,g.an(b.segments,h=>h.startTime)), R.et=b6(b,g.an(b.segments,h=>h.endTime)),dx(b.segments,h=>h.playbackRate!==1)&&(R.rate=b6(b,g.an(b.segments,h=>h.playbackRate))),dx(b.segments,h=>h.G!=="-")&&(R.als=g.an(b.segments,h=>h.G).join(",")),dx(b.segments,h=>h.previouslyEnded)&&(R.pe=g.an(b.segments,h=>`${+h.previouslyEnded}`).join(","))); R.muted=b6(b,g.an(b.segments,h=>h.muted?1:0)); dx(b.segments,h=>h.visibilityState!==0)&&(R.vis=b6(b,g.an(b.segments,h=>h.visibilityState))); dx(b.segments,h=>h.connectionType!==0)&&(R.conn=b6(b,g.an(b.segments,h=>h.connectionType))); dx(b.segments,h=>h.Y!==0)&&(R.blo=b6(b,g.an(b.segments,h=>h.Y))); dx(b.segments,h=>!!h.V)&&(R.blo=g.an(b.segments,h=>h.V).join(",")); dx(b.segments,h=>!!h.compositeLiveStatusToken)&&(R.cbs=g.an(b.segments,h=>h.compositeLiveStatusToken).join(",")); dx(b.segments,h=>h.X!=="-")&&(R.cc=g.an(b.segments,h=>h.X).join(",")); dx(b.segments,h=>h.clipId!=="-")&&(R.clipid=g.an(b.segments,h=>h.clipId).join(",")); if(dx(b.segments,h=>!!h.audioId)){let h="au"; b.X&&(h="au_d");R[h]=g.an(b.segments,K=>K.audioId).join(",")}R_()&&b.C&&(R.ctt=b.C,R.cttype=b.fR,R.mdx_environment=b.mdxEnvironment); b.wi&&(R.etype=b.nR!==void 0?b.nR:0);b.xZ&&(R.uoo=b.xZ);b.livingRoomAppMode&&b.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(R.clram=tOe[b.livingRoomAppMode]||b.livingRoomAppMode);b.V?jF2(b,R):(R.docid=b.videoId,R.referrer=b.referrer,R.ei=b.eventId,R.of=b.ER,R.osid=b.osid,R.vm=b.videoMetadata,b.adQueryId&&(R.aqi=b.adQueryId),b.autonav&&(R.autonav="1"),b.playlistId&&(R.list=b.playlistId),b.i7&&(R.ssrt="1"),b.oN&&(R.upt=b.oN));b.X&&(b.embedsRct&&(R.rct=b.embedsRct),b.embedsRctn&&(R.rctn= b.embedsRctn),b.compositeLiveIngestionOffsetToken&&(R.clio=b.compositeLiveIngestionOffsetToken));b.JX&&(R.host_cpn=b.JX);return R}; Axx=function(b,R){return jZ(b,3,R)}; $Q=async function(b,R,h,K,I){R=Axx(f_T(dNP(new KT,b.requestKey),R),h);h=b.G();b=await K.S("c",b.requestKey,I,b.client.create(R,h));const N=Rh(uq(b,2));if(N.length)return uK(K,()=>{var p=new Uint8Array(N.length);for(var l=0;lPromise.resolve("E:CTO"))}catch(B){l="E:UCE"}}let a; const v=new g.KU(p?N.w$:N.Ob,N.fO,N.WG,N.LO);for(let B=1;B<=N.maxAttempts;B++){if(B!==1){a_(b,0);b.G=new Bc(v.getValue(),N.Ao,N.g7);const H=await b.G.promise;b.G=void 0;H===1?(B=1,v.reset()):g.sq(v)}try{let H;h?H=h:(a_(b,5),H=await vc(UNP(R,b.logger,B,K.G,l),N.Yo,()=>Promise.reject(Error("RGF:Fetch timed out")))); a_(b,3);await vc(Dg(K,H),N.Zy,()=>Promise.reject(Error("DTZ:Script timed out"))); a_(b,8);await I;const q=new Hc({challenge:H,BP:b.options.BP,d7:b.options.d7});await vc(q.cL,N.Wi,()=>Promise.reject(Error("QEG:Setup timed out"))); a=q;break}catch(H){b.handleError(H),q2(b)}}if(b.HY())break;a&&(h=void 0,GFK(b,p),p=a,gsq(b,a),q2(b));a_(b,2);b.G=new Bc(N.Bi,N.Ao,N.g7);b.isPaused&&b.G.pause();await b.G.promise;b.G=void 0;if(b.HY())break}p?.dispose()}; SUK=function(b){b.D=Error("Cancelled by dispose");b.S.resolve();SG(b.J.promise);b.J.reject(Error("Cancelled by dispose"));b.logger.dispose();Promise.all(b.V).then(async()=>{b.X?.dispose();b.X=void 0}); b.V=[];b.G?.Y();SG(b.Y.promise);b.Y.reject(Error("Cancelled by dispose"))}; nsT=async function(b){if(b.HY())throw Error("Already disposed");b.G?.Y();await b.Y.promise}; Ese=function(b,R){const h=b.Ek;b.Ek=()=>{h();R()}}; gsq=function(b,R){b.HY()||(b.X=R,b.logger.update(R.TP()),b.S.resolve(),b.J.resolve(void 0),b.Ek())}; GFK=function(b,R){R&&(Promise.all(b.V).then(()=>void R.dispose()),b.V=[])}; a_=function(b,R){b.K=R;b.options.JUO?.(R)}; q2=function(b){b.HY()||(b.Y.resolve(),b.Y=new g.d$)}; vc=function(b,R,h){let K;const I=new Promise(N=>{K=setTimeout(N,R)}); return Promise.race([b.finally(()=>void clearTimeout(K)), I.then(h)])}; TMK=function(b,R){b.endTimeMs=Date.now()+R;b.tick()}; fT=function(b){b.G&&(clearTimeout(b.G),b.G=null)}; ym=function(b,R){try{return globalThis.sessionStorage.setItem(b,R),!0}catch(h){return!1}}; ty=function(b,R=0,h=b.length,K){let I=0;for(K&&(I=ty(K));R>1,jM),ty(b,b.length>>1)];return R.toString(16)+h.toString(16)}; i6=function(b,R){var h=[ty(R,0,R.length>>1,void 0),ty(R,R.length>>1)];b=new Uint32Array(b.buffer);R=b[0];const [K,I]=h;for(h=1;h>>8|p<<24,p+=N|0,p^=l+38293,N=N<<3|N>>>29,N^=p,a=a>>>8|a<<24,a+=l|0,a^=v+38293,l=l<<3|l>>>29,l^=a;N=[N,p];b[h]^=N[0];h+1void globalThis.sessionStorage.removeItem(v))?ym(R,g.Zc(p))?"s":"t":"i"}; YUH=function(b,R){var h=globalThis.sessionStorage.getItem(b);if(!h)return["m"];let K;try{K=Vo(h),i6(K,R)}catch(I){return globalThis.sessionStorage.removeItem(b),["c"]}for(R=4;R<7&&K[R]===0;)R++;for(h=0;h=h?(globalThis.sessionStorage.removeItem(b),["e"]):["a",new Uint8Array(K.buffer,R+4)]}; ehs=function(b){var R=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!R)return new zU(b);var h=R.split(",");if(h.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new zU(b);R=h.slice(1);R.length===1&&R[0]===""&&(R=[]);h=Number(h[0]);return isNaN(h)||h<0||h>R.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new zU(b)):new zU(b,h,R)}; xNw=function(b){function R(){h-=K;h-=I;h^=I>>>13;K-=I;K-=h;K^=h<<8;I-=h;I-=K;I^=K>>>13;h-=K;h-=I;h^=I>>>12;K-=I;K-=h;K^=h<<16;I-=h;I-=K;I^=K>>>5;h-=K;h-=I;h^=I>>>3;K-=I;K-=h;K^=h<<10;I-=h;I-=K;I^=K>>>15} b=O0D(b);let h=2654435769,K=2654435769,I=314159265;const N=b.length;let p=N,l=0;for(;p>=12;p-=12,l+=12)h+=UW(b,l),K+=UW(b,l+4),I+=UW(b,l+8),R();I+=N;switch(p){case 11:I+=b[l+10]<<24;case 10:I+=b[l+9]<<16;case 9:I+=b[l+8]<<8;case 8:K+=b[l+7]<<24;case 7:K+=b[l+6]<<16;case 6:K+=b[l+5]<<8;case 5:K+=b[l+4];case 4:h+=b[l+3]<<24;case 3:h+=b[l+2]<<16;case 2:h+=b[l+1]<<8;case 1:h+=b[l+0]}R();return QF3.toString(I)}; O0D=function(b){const R=[];for(let h=0;h{b.V.resolve()},R); b.addOnDisposeCallback(()=>void clearTimeout(h))}; Wc=function(b,R){var h=`${R(b.error.message)}:${R(b.error.stack)}`.substring(0,2048);R=h.length+1;h=g$(h);const K=new Uint8Array(4+h.length);K.set([42,R&127|128,R>>7,b.error.code]);K.set(h,4);return K}; g$=function(b){return globalThis.TextEncoder?(new TextEncoder).encode(b):g.xg(b)}; mNK=function(b,R,h){return b instanceof l6?pT(b,h,R,1):b.df(h)}; TU=async function(b){let R=void 0;b.S++;const h=new g.d$;b.GJ instanceof SM&&b.GJ.V.push(h.promise);if(b.t6){const N=new g.d$;setTimeout(()=>void N.resolve()); await N.promise}const K=b.logger.share();try{b.state=5;const N=[],p=await vc(b.GJ.snapshot({EA:{},Wv:N}),b.GZ.nw,()=>Promise.reject(new Uh(15,"MDA:Timeout"))); nT(b,"MDA:Disposed");const l=N[0];b.state=6;const a=await vc(mNK(b.rE,K,p),b.GZ.TH,()=>Promise.reject(new Uh(10,"BWB:Timeout"))); nT(b,"BWB:Disposed");b.state=7;R=uK(K,()=>{const v=Pjx(b,a,h,l);v.V.promise.then(()=>void b.J()); return v},"i")}catch(N){R?.dispose(); if(!b.Y){const p=Z03(b,N);h.resolve();var I;if(I=b.GJ instanceof SM&&b.S<2)a:if(N instanceof Uh)I=N.code!==32&&N.code!==20&&N.code!==10;else{if(N instanceof EW)switch(N.code){case 2:case 13:case 14:case 4:break;default:I=!1;break a}I=!0}if(I){const l=setTimeout(()=>void b.J(),(1+Math.random()*.25)*(b.G?6E4:1E3)); b.addOnDisposeCallback(()=>void clearTimeout(l)); return}b.Y=p}K.cg(b.G?13:14);b.V.reject(b.Y);return}finally{K.dispose()}b.state=8;b.S=0;b.G?.dispose();b.G=R;b.V.resolve()}; Z03=function(b,R){if(!(R instanceof Uh))if(R instanceof EW){const h=Error(R.toString());h.stack=R.stack;R=new Uh(11,"EBH:Error",h)}else R=new Uh(12,"BSO:Unknown",R);return b.reportError(R)}; nT=function(b,R){if(b.HY())throw new Uh(b.G?20:32,R);}; Pjx=function(b,R,h,K){const I=(Q4(Eu(R,2))??0)*1E3;if(I<=0)throw new Uh(31,"TTM:Invalid");if(Hv(R,4))return new cx2(b.logger,Hv(R,4),I);if(!(Q4(Eu(R,3))??0))return new ubD(b.logger,Rh(uq(R,1)),I);if(!K)throw new Uh(4,"PMD:Undefined");K=K(Rh(uq(R,1)));if(typeof K!=="function")throw new Uh(16,"APF:Failed");b.D=Math.floor((Date.now()+I)/1E3);b=new Jy(b.logger,K,Q4(Eu(R,3))??0,I);b.addOnDisposeCallback(()=>void h.resolve()); return b}; YQ=function(b,R,h){try{if(b.HY())throw new Uh(21,"BNT:disposed");if(!b.G&&b.Y)throw b.Y;return X_q(b,R,h)??VOK(b,R,h)??CjB(b,R,h)}catch(K){if(!R.G8)throw kQ(b,K);return MOs(b,h,K)}}; kQ=function(b,R){R=R instanceof Uh?R:new Uh(5,"TVD:error",R);return b.reportError(R)}; X_q=function(b,R,h){return b.G?.vA(()=>eM(b,R),h,K=>{if(b.G instanceof Jy&&R.UE?.k_)try{b.cache?.G(eM(b,R),K,R.UE.tN,b.D-120)}catch(I){b.reportError(new Uh(24,"ELX:write",I))}})}; VOK=function(b,R,h){if(R.UE?.LK)try{const K=b.cache?.Y(eM(b,R),R.UE.tN);return K?h?uK(b.logger,()=>g.Zc(K,2),"a"):K:void 0}catch(K){b.reportError(new Uh(23,"RXO:read",K))}}; CjB=function(b,R,h){const K={stack:[],error:void 0,hasError:!1};try{if(!R.nD)throw new Uh(29,"SDF:notready");return Rn(K,new OW(b.logger,0,b.state)).vA(()=>eM(b,R),h)}catch(I){K.error=I,K.hasError=!0}finally{$z(K)}}; MOs=function(b,R,h){const K={stack:[],error:void 0,hasError:!1};try{const I=kQ(b,h);return Rn(K,new rxB(b.logger,I)).vA(()=>[],R)}catch(I){K.error=I,K.hasError=!0}finally{$z(K)}}; eM=function(b,R){return R.bL?R.bL:R.EA?uK(b.logger,()=>R.bL=g$(R.EA),"c"):[]}; Qm=function(){let b=0,R;return h=>{R||(R=new Ci);const K=new OW(R,b,1),I=K.vA(()=>g$(h),!0); K.dispose();b++;return I}}; w_2=function(b,R={}){return new LM3(b,R)}; FM3=function(b){b.J.Qb("data",R=>{if("1"in R){var h=R["1"];let K;try{K=b.D(h)}catch(I){xQ(b,new EW(13,`Error when deserializing response data; error: ${I}, response: ${h}`))}K&&mw(b,K)}if("2"in R)for(R=Pc(b,R["2"]),h=0;h{Za(b,cc(b));for(let R=0;R{if(b.G.length!==0){var R=b.xhr.Y;R!==0||OH(b.xhr)||(R=6);var h=-1;switch(R){case 0:var K=2;break;case 7:K=10;break;case 8:K=4;break;case 6:h=b.xhr.getStatus();K=At(h);break;default:K=14}Za(b,cc(b));R=hhT(R)+", error: "+b.xhr.getLastError();h!==-1&&(R+=`, http status code: ${h}`);xQ(b,new EW(K,R))}})}; xQ=function(b,R){for(let h=0;h{R[K]=h[K]}); return R}; mw=function(b,R){for(let h=0;h{if(OH(b.xhr)){var K=g.x5(b.xhr);if(R&&b.xhr.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");K=atob(K)}try{var I=b.D(K)}catch(p){xQ(b,u6(new EW(13,`Error when deserializing response data; error: ${p}, response: ${K}`),h));return}K=At(b.xhr.getStatus());Za(b,cc(b));K===0?mw(b,I):xQ(b,u6(new EW(K,"Xhr succeeded but the status code is not 200"),h))}else{K=g.x5(b.xhr);let p;I=cc(b);if(K){var N= Pc(b,K);K=N.code;p=N.details;N=N.metadata}else K=2,p=`Rpc failed due to xhr error. uri: ${String(b.xhr.K)}, error code: ${b.xhr.Y}, error: ${b.xhr.getLastError()}`,N=I;Za(b,I);xQ(b,u6(new EW(K,p,N),h))}})}; Xx=function(b,R){R=b.indexOf(R);R>-1&&b.splice(R,1)}; u6=function(b,R){R.stack&&(b.stack+="\n"+R.stack);return b}; g.CT=function(b){this.V=b.Br||null;this.X=b.QQ||!1;this.Y=void 0}; M2=function(b,R){g.TD.call(this);this.nR=b;this.J=R;this.S=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.U=new Headers;this.Y=null;this.C="GET";this.G6="";this.G=!1;this.D=this.X=this.V=null;this.K=new AbortController}; r$=function(b){b.X.read().then(b.pk.bind(b)).catch(b.h5.bind(b))}; w$=function(b){b.readyState=4;b.V=null;b.X=null;b.D=null;LT(b)}; LT=function(b){b.onreadystatechange&&b.onreadystatechange.call(b)}; hSx=function(b){if(b.Rm&&typeof b.Rm=="function")return b.Rm();if(typeof Map!=="undefined"&&b instanceof Map||typeof Set!=="undefined"&&b instanceof Set)return Array.from(b.values());if(typeof b==="string")return b.split("");if(g.mq(b)){const R=[],h=b.length;for(let K=0;K>4&15).toString(16)+(b&15).toString(16)}; Kl=function(b,R){this.Y=this.G=null;this.X=b||null;this.V=!!R}; NW=function(b){b.G||(b.G=new Map,b.Y=0,b.X&&yT(b.X,function(R,h){b.add(ii(R),h)}))}; lL=function(b,R){NW(b);R=pl(b,R);return b.G.has(R)}; g.aI=function(b,R,h){b.remove(R);h.length>0&&(b.X=null,b.G.set(pl(b,R),g.Sc(h)),b.Y=b.Y+h.length)}; pl=function(b,R){R=String(R);b.V&&(R=R.toLowerCase());return R}; $BD=function(b,R){R&&!b.V&&(NW(b),b.X=null,b.G.forEach(function(h,K){const I=K.toLowerCase();K!=I&&(this.remove(K),g.aI(this,I,h))},b)); b.V=R}; g.vP=function(b){let R="";g.Z2(b,function(h,K){R+=K;R+=":";R+=h;R+="\r\n"}); return R}; g.BP=function(b,R,h){if(g.RT(h))return b;h=g.vP(h);if(typeof b==="string")return Us(b,g.A1(R),h);g.$O(b,R,h);return b}; g.HP=function(b){g.N3.call(this);this.Y=b;this.G={}}; qW=function(b,R,h,K,I,N){if(Array.isArray(h))for(let p=0;pI=>K.intercept(I,h),b)}; vg3=function(b,R){return R.reduce((h,K)=>I=>K.intercept(I,h),b)}; Bk3=function(b,R,h){const K=R.k8,I=R.getMetadata(),N=nl(b,!0);b=Ej(b,I,N,h+K.getName());h=T4(N,K.Y,!1);RSK(h,I["X-Goog-Encode-Response-If-Executable"]==="base64");R=K.G(R.uI);N.send(b,"POST",R);return h}; HKD=function(b,R,h,K,I,N={}){const p=R.substring(0,R.length-I.name.length),l=N?.signal;return vg3(a=>new Promise((v,B)=>{if(l?.aborted){const d=new EW(1,"Aborted");d.cause=l.reason;B(d)}else{var H={},q=Bk3(b,a,p);q.Qb("error",d=>void B(d)); q.Qb("metadata",d=>{H=d}); q.Qb("data",d=>{v(w_2(d,H))}); l&&l.addEventListener("abort",()=>{q.cancel();const d=new EW(1,"Aborted");d.cause=l.reason;B(d)})}}),b.qx).call(b,I.J(h,K)).then(a=>a.q7)}; N2=function(b,R,h,K,I,N={}){return HKD(b,R,h,K,I,N)}; nl=function(b,R){R=b.G&&!R;return b.Ly||R?new g.ni(new g.CT({Br:b.Ly,QQ:R})):new g.ni}; Ej=function(b,R,h,K){R["Content-Type"]="application/json+protobuf";R["X-User-Agent"]="grpc-web-javascript/0.1";const I=R.Authorization;if(I&&qI3.has(I.split(" ")[0])||b.withCredentials)h.D=!0;if(b.GQ)K=g.BP(K,"$httpHeaders",R);else for(const N of Object.keys(R))h.headers.set(N,R[N]);return K}; T4=function(b,R,h){let K;h&&(b.isActive(),h=new dBP(b),K=new fcw(h));return new yRx({xhr:b,tH:K},R)}; Jl=function(){this.G=new tT3;this.Y="https://jnn-pa.googleapis.com".replace(/\/+$/,"")}; kO=function(b){return b.G.WY(jRe)}; iKx=function(b){if(g.fj(g.U5(b)))return!1;if(b.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")>=0)return!0;let R;try{R=new g.Fx(b)}catch(h){return g.jc(YO,K=>b.search(K)>0)!=null}return R.J.match(AR2)?!0:g.jc(YO,h=>b.match(h)!=null)!=null}; g.eB=function(b,R){return b.replace(zSB,function(h,K){try{let I=g.Kj(R,K);if(I==null||I.toString()==null)return h;I=I.toString();if(I==""||!g.fj(g.U5(I)))return encodeURIComponent(I).replace(/%2C/g,",")}catch(I){}return h})}; GYx=function(b){const R=b.IY;return KR(b,R,R[NK]|0,UBT,2,1)}; W_K=function(b){var R;if((R=b[Oj])!=null)b=R;else{if(Qv!==Qv)throw Error();b=b[Oj]=ggx(b.G)}return b}; SIe=function(b){return b[xO]??(b[xO]=new Map(GYx(W_K(b)).map(R=>[R.getName(),g.vv(R,2)])))}; PP=function(b){if(b.Fv!==void 0){var R=mz;mz=!0;try{for(let h=b.Fv;h!==void 0;h=h.Si5){const K=h.wRO;K.uO||(K.uO=!0,PP(K),K.Xl?.(K))}}finally{mz=R}}}; EgT=function(b,R){const h=Object.create(ngP);h.value=b;R!==void 0&&(h.OL=R);b=()=>{if(mz)throw Error("");return h.value}; b[ZY]=h;return[b,K=>cP(h,K), K=>{cP(h,K(h.value))}]}; cP=function(b,R){b.OL(b.value,R)||(b.value=R,b.version++,Tk3++,PP(b))}; uL=function(b,R=""){var h={};b=EgT(b,h.equals);h=h.debugName;b[0][ZY].debugName=h&&R?`${h}__${R}`:h??R??"[signal]"}; JRx=function(){var b=g.X7;Vv.instance||(Vv.instance=new Vv(b));return Vv.instance}; Cl=function(b,R){return b.V?b.V:b.V=new Promise(async h=>{const K=window.AbortController?new window.AbortController:void 0,I=K?.signal;let N=!1;try{K&&(b.Y=b.Uj.Hg(()=>{K.abort()},R||2E4)),await fetch("/generate_204",{method:"HEAD", signal:I}),N=!0}catch{N=!1}finally{b.V=void 0,b.Y&&(b.Uj.wk(b.Y),b.Y=0),N!==b.G&&(b.G=N,b.G?b.dispatchEvent("networkstatus-online"):b.dispatchEvent("networkstatus-offline")),h(N)}})}; kYH=function(b){b.G===-1&&(b.G=b.data.reduce((R,h,K)=>R+(h?2**K:0),0)); return b.G}; MW=function(b){b.setAttribute("role","link")}; Ll=function(b,R){Array.isArray(R)&&(R=R.join(" "));R===""||R==void 0?(r0||(r0={atomic:!1,autocomplete:"none",dropeffect:"none",haspopup:!1,live:"off",multiline:!1,multiselectable:!1,orientation:"vertical",readonly:!1,relevant:"additions text",required:!1,sort:"none",busy:!1,disabled:!1,hidden:!1,invalid:"false"}),R=r0,"label"in R?b.setAttribute("aria-label",R.label):b.removeAttribute("aria-label")):b.setAttribute("aria-label",R)}; w0=function(b){b=b.getAttribute("aria-label");return b==null||b==void 0?"":String(b)}; g.F7=function(b,R,h){g.N3.call(this);this.G=null;this.V=!1;this.J=b;this.S=h;this.Y=R||window;this.X=(0,g.Ms)(this.KF,this)}; oI=function(b){b=b.Y;return b.requestAnimationFrame||b.webkitRequestAnimationFrame||b.mozRequestAnimationFrame||b.oRequestAnimationFrame||b.msRequestAnimationFrame||null}; DY=function(b){b=b.Y;return b.cancelAnimationFrame||b.cancelRequestAnimationFrame||b.webkitCancelRequestAnimationFrame||b.mozCancelRequestAnimationFrame||b.oCancelRequestAnimationFrame||b.msCancelRequestAnimationFrame||null}; g.bI=function(b,R,h){g.N3.call(this);this.G=b;this.zk=R||0;this.Y=h;this.X=(0,g.Ms)(this.ND,this)}; g.Rf=function(b){b.stop();b.ND()}; hc=function(b){b.i5=g.Nf(()=>{b.i5=null;b.G&&!b.Y&&(b.G=!1,hc(b))},b.zk); const R=b.X;b.X=null;b.S.apply(null,R)}; K5=function(b){return typeof b.className=="string"?b.className:b.getAttribute&&b.getAttribute("class")||""}; sB=function(b){return b.classList?b.classList:K5(b).match(/\S+/g)||[]}; g.$d=function(b,R){typeof b.className=="string"?b.className=R:b.setAttribute&&b.setAttribute("class",R)}; g.If=function(b,R){return b.classList?b.classList.contains(R):g.iR(sB(b),R)}; g.Nv=function(b,R){if(b.classList)b.classList.add(R);else if(!g.If(b,R)){const h=K5(b);g.$d(b,h+(h.length>0?" "+R:R))}}; g.p5=function(b,R){if(b.classList)Array.prototype.forEach.call(R,function(K){g.Nv(b,K)}); else{var h={};Array.prototype.forEach.call(sB(b),function(K){h[K]=!0}); Array.prototype.forEach.call(R,function(K){h[K]=!0}); R="";for(const K in h)R+=R.length>0?" "+K:K;g.$d(b,R)}}; g.lI=function(b,R){b.classList?b.classList.remove(R):g.If(b,R)&&g.$d(b,Array.prototype.filter.call(sB(b),function(h){return h!=R}).join(" "))}; g.af=function(b,R){b.classList?Array.prototype.forEach.call(R,function(h){g.lI(b,h)}):g.$d(b,Array.prototype.filter.call(sB(b),function(h){return!g.iR(R,h)}).join(" "))}; g.k=function(b,R,h){h?g.Nv(b,R):g.lI(b,R)}; vX=function(b,R){const h=!g.If(b,R);g.k(b,R,h)}; g.BX=function(){g.TD.call(this);this.G=0;this.endTime=this.startTime=null}; YIx=function(b,R){Array.isArray(R)||(R=[R]);R=R.map(function(h){return typeof h==="string"?h:h.property+" "+h.duration+"s "+h.timing+" "+h.delay+"s"}); g.MN(b,"transition",R.join(","))}; HX=function(b,R,h,K,I){g.BX.call(this);this.Y=b;this.S=R;this.J=h;this.V=K;this.D=Array.isArray(I)?I:[I]}; qv=function(b,R,h,K){return new HX(b,R,{opacity:h},{opacity:K},{property:"opacity",duration:R,timing:"ease-in",delay:0})}; OKw=function(b){b=b.trim();if(b=="")return null;var R=String(b.slice(0,4)).toLowerCase();if(("url("1||b&&b.split(")"),null;if(b.indexOf("(")>0){if(/"|'/.test(b))return null;R=/([\-\w]+)\(/g;let h;for(;h=R.exec(b);)if(!(h[1].toLowerCase()in eSH))return null}return b}; d4=function(b,R){b=g.JD[b];return b&&b.prototype?(R=Object.getOwnPropertyDescriptor(b.prototype,R))&&R.get||null:null}; f5=function(b){const R=g.JD.CSSStyleDeclaration;return R&&R.prototype&&R.prototype[b]||null}; tc=function(b,R,h,K){if(b)return b.apply(R,K);if(g.yI&&document.documentMode<10){if(!R[h].call)throw Error("IE Clobbering detected");}else if(typeof R[h]!="function")throw Error("Clobbering detected");return R[h].apply(R,K)}; ZKe=function(b){if(!b)return"";const R=document.createElement("div").style;QR2(b).forEach(function(h){const K=g.qN&&h in xBP?h:h.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");q$(K,"--")||q$(K,"var")||(h=tc(mBT,b,b.getPropertyValue?"getPropertyValue":"getAttribute",[h])||"",h=OKw(h),h!=null&&tc(PuK,R,R.setProperty?"setProperty":"setAttribute",[K,h]))}); return R.cssText||""}; QR2=function(b){g.mq(b)?b=g.Sc(b):(b=g.Lr(b),g.G3(b,"cssText"));return b}; g.Ac=function(b){var R;let h=R=0,K=!1;b=b.split(cRT);for(let I=0;I.4?-1:1;return(R==0?null:R)==-1?"rtl":"ltr"}; g.GS=function(b){if(b instanceof iI||b instanceof zS||b instanceof UB)return b;if(typeof b.next=="function")return new iI(()=>b); if(typeof b[Symbol.iterator]=="function")return new iI(()=>b[Symbol.iterator]()); if(typeof b.sz=="function")return new iI(()=>b.sz()); throw Error("Not an iterator or iterable.");}; g4=function(b,R,h,K,I,N,p,l){this.G=b;this.D=R;this.X=h;this.S=K;this.V=I;this.J=N;this.Y=p;this.K=l}; WX=function(b,R){if(R==0)return b.G;if(R==1)return b.Y;let h=VQ(b.G,b.X,R),K=VQ(b.X,b.V,R);b=VQ(b.V,b.Y,R);h=VQ(h,K,R);K=VQ(K,b,R);return VQ(h,K,R)}; SI=function(b,R){if(R==0)return b.D;if(R==1)return b.K;let h=VQ(b.D,b.S,R),K=VQ(b.S,b.J,R);b=VQ(b.J,b.K,R);h=VQ(h,K,R);K=VQ(K,b,R);return VQ(h,K,R)}; n5=function(b,R){let h=(R-b.G)/(b.Y-b.G);if(h<=0)return 0;if(h>=1)return 1;let K=0,I=1,N=0;for(var p=0;p<8;p++){N=WX(b,h);const l=(WX(b,h+1E-6)-N)/1E-6;if(Math.abs(N-R)<1E-6)return h;if(Math.abs(l)<1E-6)break;else N1E-6&&p<8;p++)N=0}; g.kd=function(b){g.N3.call(this);this.J=1;this.X=[];this.V=0;this.G=[];this.Y={};this.D=!!b}; MTT=function(b,R,h){g.Mq(function(){b.apply(R,h)})}; g.Yd=function(b){this.OC=b}; eI=function(b){this.OC=b}; OB=function(b){this.data=b}; QI=function(b){return b===void 0||b instanceof OB?b:new OB(b)}; xd=function(b){this.OC=b}; g.mA=function(b){const R=b.creation;b=b.expiration;return!!b&&bg.wK()}; g.PX=function(b){this.OC=b}; rRD=function(){}; ZP=function(){}; cX=function(b){this.G=b;this.Y=null}; uI=function(b){if(b.G==null)throw Error("Storage mechanism: Storage unavailable");b.isAvailable()||OI(Error("Storage mechanism: Storage unavailable"))}; XA=function(){let b=null;try{b=g.JD.localStorage||null}catch(R){}cX.call(this,b)}; VI=function(){let b=null;try{b=g.JD.sessionStorage||null}catch(R){}cX.call(this,b)}; C5=function(b,R){this.Y=b;this.G=R+"::"}; g.Mv=function(b){const R=new XA;return R.isAvailable()?b?new C5(R,b):R:null}; r4=function(b,R){this.G=b;this.Y=R}; L5=function(){}; w4=function(){let b=Error();b.name="SecurityError";throw b;}; FA=function(){return{get opener(){return null},get closed(){return!0},get location(){w4()},get document(){w4()},postMessage:function(){}, close:function(){}, focus:function(){}}}; DP=function(b){var R,h,K=b.length,I=0;for(R=0;R>>6:(N<65536?l[h++]=224|N>>>12:(l[h++]=240|N>>>18,l[h++]=128|N>>>12&63),l[h++]=128|N>>> 6&63),l[h++]=128|N&63);return l}; bw=function(b){for(var R=b.length;--R>=0;)b[R]=0}; RE=function(b,R,h,K,I){this.Rz=b;this.Py=R;this.Q3=h;this.sb=K;this.iq=I;this.fq=b&&b.length}; hq=function(b,R){this.iE=b;this.Va=0;this.ZV=R}; Kp=function(b,R){b.nh[b.pending++]=R&255;b.nh[b.pending++]=R>>>8&255}; sl=function(b,R,h){b.Tk>16-h?(b.hE|=R<>16-b.Tk,b.Tk+=h-16):(b.hE|=R<>>=1,h<<=1;while(--R>0);return h>>>1}; N9=function(b,R,h){var K=Array(16),I=0,N;for(N=1;N<=15;N++)K[N]=I=I+h[N-1]<<1;for(h=0;h<=R;h++)I=b[h*2+1],I!==0&&(b[h*2]=IE(K[I]++,I))}; pp=function(b){var R;for(R=0;R<286;R++)b.Cj[R*2]=0;for(R=0;R<30;R++)b.Nu[R*2]=0;for(R=0;R<19;R++)b.ZL[R*2]=0;b.Cj[512]=1;b.QZ=b.Aj=0;b.GT=b.matches=0}; lw=function(b){b.Tk>8?Kp(b,b.hE):b.Tk>0&&(b.nh[b.pending++]=b.hE);b.hE=0;b.Tk=0}; aE=function(b,R,h){lw(b);Kp(b,h);Kp(b,~h);of.wM(b.nh,b.window,R,h,b.pending);b.pending+=h}; vQ=function(b,R,h,K){var I=R*2,N=h*2;return b[I]>>7)];$N(b,p,h);l=yC[p];l!==0&&(I-=tq[p],sl(b,I,l))}}while(K>1;p>=1;p--)BQ(b,h,p);a=N;do p=b.uP[1],b.uP[1]=b.uP[b.Dk--],BQ(b,h,1),K=b.uP[1],b.uP[--b.jB]=p,b.uP[--b.jB]=K,h[a*2]=h[p*2]+h[K*2],b.depth[a]=(b.depth[p]>=b.depth[K]?b.depth[p]:b.depth[K])+1,h[p*2+1]=h[K*2+1]=a,b.uP[1]=a++,BQ(b,h,1);while(b.Dk>= 2);b.uP[--b.jB]=b.uP[1];p=R.iE;a=R.Va;K=R.ZV.Rz;I=R.ZV.fq;N=R.ZV.Py;var v=R.ZV.Q3,B=R.ZV.iq,H,q=0;for(H=0;H<=15;H++)b.yg[H]=0;p[b.uP[b.jB]*2+1]=0;for(R=b.jB+1;R<573;R++){var d=b.uP[R];H=p[p[d*2+1]*2+1]+1;H>B&&(H=B,q++);p[d*2+1]=H;if(!(d>a)){b.yg[H]++;var t=0;d>=v&&(t=N[d-v]);var S=p[d*2];b.QZ+=S*(H+t);I&&(b.Aj+=S*(K[d*2+1]+t))}}if(q!==0){do{for(H=B-1;b.yg[H]===0;)H--;b.yg[H]--;b.yg[H+1]+=2;b.yg[B]--;q-=2}while(q>0);for(H=B;H!==0;H--)for(d=b.yg[H];d!==0;)K=b.uP[--R],K>a||(p[K*2+1]!==H&&(b.QZ+=(H-p[K* 2+1])*p[K*2],p[K*2+1]=H),d--)}N9(h,l,b.yg)}; iw=function(b,R,h){var K,I=-1,N=R[1],p=0,l=7,a=4;N===0&&(l=138,a=3);R[(h+1)*2+1]=65535;for(K=0;K<=h;K++){var v=N;N=R[(K+1)*2+1];++p>>=1)if(R&1&&b.Cj[h*2]!==0)return 0;if(b.Cj[18]!==0||b.Cj[20]!==0||b.Cj[26]!==0)return 1;for(h=32;h<256;h++)if(b.Cj[h*2]!==0)return 1;return 0}; Ul=function(b,R,h){b.nh[b.q5+b.GT*2]=R>>>8&255;b.nh[b.q5+b.GT*2+1]=R&255;b.nh[b.F2+b.GT]=h&255;b.GT++;R===0?b.Cj[h*2]++:(b.matches++,R--,b.Cj[(HQ[h]+256+1)*2]++,b.Nu[(R<256?fp[R]:fp[256+(R>>>7)])*2]++);return b.GT===b.T_-1}; gA=function(b,R){b.msg=Gp[R];return R}; WQ=function(b){for(var R=b.length;--R>=0;)b[R]=0}; Sn=function(b){var R=b.state,h=R.pending;h>b.jX&&(h=b.jX);h!==0&&(of.wM(b.output,R.nh,R.mL,h,b.Nk),b.Nk+=h,R.mL+=h,b.rA+=h,b.jX-=h,R.pending-=h,R.pending===0&&(R.mL=0))}; Jq=function(b,R){var h=b.O_>=0?b.O_:-1,K=b.ul-b.O_,I=0;if(b.level>0){b.aY.qQ===2&&(b.aY.qQ=L_s(b));Aq(b,b.mG);Aq(b,b.uK);iw(b,b.Cj,b.mG.Va);iw(b,b.Nu,b.uK.Va);Aq(b,b.GC);for(I=18;I>=3&&b.ZL[np[I]*2+1]===0;I--);b.QZ+=3*(I+1)+5+5+4;var N=b.QZ+3+7>>>3;var p=b.Aj+3+7>>>3;p<=N&&(N=p)}else N=p=K+5;if(K+4<=N&&h!==-1)sl(b,R?1:0,3),aE(b,h,K);else if(b.strategy===4||p===N)sl(b,2+(R?1:0),3),jn(b,El,Tp);else{sl(b,4+(R?1:0),3);h=b.mG.Va+1;K=b.uK.Va+1;I+=1;sl(b,h-257,5);sl(b,K-1,5);sl(b,I-4,4);for(N=0;N>>8&255;b.nh[b.pending++]=R&255}; en=function(b,R){var h=b.fl,K=b.ul,I=b.lC,N=b.vj,p=b.ul>b.nj-262?b.ul-(b.nj-262):0,l=b.window,a=b.LY,v=b.Nn,B=b.ul+258,H=l[K+I-1],q=l[K+I];b.lC>=b.a6&&(h>>=2);N>b.OW&&(N=b.OW);do{var d=R;if(l[d+I]===q&&l[d+I-1]===H&&l[d]===l[K]&&l[++d]===l[K+1]){K+=2;for(d++;l[++K]===l[++d]&&l[++K]===l[++d]&&l[++K]===l[++d]&&l[++K]===l[++d]&&l[++K]===l[++d]&&l[++K]===l[++d]&&l[++K]===l[++d]&&l[++K]===l[++d]&&KI){b.vP=R;I=d;if(d>=N)break;H=l[K+I-1];q=l[K+I]}}}while((R=v[R&a])>p&&--h!== 0);return I<=b.OW?I:b.OW}; xN=function(b){var R=b.nj,h;do{var K=b.Cu-b.OW-b.ul;if(b.ul>=R+(R-262)){of.wM(b.window,b.window,R,R,0);b.vP-=R;b.ul-=R;b.O_-=R;var I=h=b.v1;do{var N=b.head[--I];b.head[I]=N>=R?N-R:0}while(--h);I=h=R;do N=b.Nn[--I],b.Nn[I]=N>=R?N-R:0;while(--h);K+=R}if(b.aY.M8===0)break;I=b.aY;h=b.window;N=b.ul+b.OW;var p=I.M8;p>K&&(p=K);p===0?h=0:(I.M8-=p,of.wM(h,I.input,I.ue,p,N),I.state.wrap===1?I.yB=Ol(I.yB,h,p,N):I.state.wrap===2&&(I.yB=QC(I.yB,h,p,N)),I.ue+=p,I.IS+=p,h=p);b.OW+=h;if(b.OW+b.Aq>=3)for(K=b.ul-b.Aq, b.zj=b.window[K],b.zj=(b.zj<=3&&(b.zj=(b.zj<=3)if(h=Ul(b,b.ul-b.vP,b.PO-3),b.OW-=b.PO,b.PO<=b.Ec&&b.OW>=3){b.PO--;do b.ul++,b.zj=(b.zj<=3&&(b.zj=(b.zj<4096)&&(b.PO=2));if(b.lC>=3&&b.PO<=b.lC){K=b.ul+b.OW-3;h=Ul(b,b.ul-1-b.PC,b.lC-3);b.OW-=b.lC-1;b.lC-=2;do++b.ul<=K&&(b.zj=(b.zj<=3&&b.ul>0&&(K=b.ul-1,h=N[K],h===N[++K]&&h===N[++K]&&h===N[++K])){for(I=b.ul+258;h===N[++K]&&h===N[++K]&&h===N[++K]&&h===N[++K]&&h===N[++K]&&h===N[++K]&&h===N[++K]&&h===N[++K]&&Kb.OW&&(b.PO=b.OW)}b.PO>=3?(h=Ul(b,1,b.PO-3),b.OW-=b.PO,b.ul+=b.PO,b.PO=0):(h=Ul(b,0,b.window[b.ul]),b.OW--,b.ul++);if(h&&(Jq(b,!1),b.aY.jX===0))return 1}b.Aq=0;return R=== 4?(Jq(b,!0),b.aY.jX===0?3:4):b.GT&&(Jq(b,!1),b.aY.jX===0)?1:2}; F_x=function(b,R){for(var h;;){if(b.OW===0&&(xN(b),b.OW===0)){if(R===0)return 1;break}b.PO=0;h=Ul(b,0,b.window[b.ul]);b.OW--;b.ul++;if(h&&(Jq(b,!1),b.aY.jX===0))return 1}b.Aq=0;return R===4?(Jq(b,!0),b.aY.jX===0?3:4):b.GT&&(Jq(b,!1),b.aY.jX===0)?1:2}; Ze=function(b,R,h,K,I){this.qZ=b;this.bq=R;this.Rf=h;this.cN=K;this.func=I}; ogB=function(){this.aY=null;this.status=0;this.nh=null;this.wrap=this.pending=this.mL=this.My=0;this.Tj=null;this.Ej=0;this.method=8;this.XV=-1;this.LY=this.m0=this.nj=0;this.window=null;this.Cu=0;this.head=this.Nn=null;this.vj=this.a6=this.strategy=this.level=this.Ec=this.fl=this.lC=this.OW=this.vP=this.ul=this.To=this.PC=this.PO=this.O_=this.aR=this.Hq=this.je=this.v1=this.zj=0;this.Cj=new of.RP(1146);this.Nu=new of.RP(122);this.ZL=new of.RP(78);WQ(this.Cj);WQ(this.Nu);WQ(this.ZL);this.GC=this.uK= this.mG=null;this.yg=new of.RP(16);this.uP=new of.RP(573);WQ(this.uP);this.jB=this.Dk=0;this.depth=new of.RP(573);WQ(this.depth);this.Tk=this.hE=this.Aq=this.matches=this.Aj=this.QZ=this.q5=this.GT=this.T_=this.F2=0}; DBs=function(b,R){if(!b||!b.state||R>5||R<0)return b?gA(b,-2):-2;var h=b.state;if(!b.output||!b.input&&b.M8!==0||h.status===666&&R!==4)return gA(b,b.jX===0?-5:-2);h.aY=b;var K=h.XV;h.XV=R;if(h.status===42)if(h.wrap===2)b.yB=0,kN(h,31),kN(h,139),kN(h,8),h.Tj?(kN(h,(h.Tj.text?1:0)+(h.Tj.qp?2:0)+(h.Tj.extra?4:0)+(h.Tj.name?8:0)+(h.Tj.comment?16:0)),kN(h,h.Tj.time&255),kN(h,h.Tj.time>>8&255),kN(h,h.Tj.time>>16&255),kN(h,h.Tj.time>>24&255),kN(h,h.level===9?2:h.strategy>=2||h.level<2?4:0),kN(h,h.Tj.os& 255),h.Tj.extra&&h.Tj.extra.length&&(kN(h,h.Tj.extra.length&255),kN(h,h.Tj.extra.length>>8&255)),h.Tj.qp&&(b.yB=QC(b.yB,h.nh,h.pending,0)),h.Ej=0,h.status=69):(kN(h,0),kN(h,0),kN(h,0),kN(h,0),kN(h,0),kN(h,h.level===9?2:h.strategy>=2||h.level<2?4:0),kN(h,3),h.status=113);else{var I=8+(h.m0-8<<4)<<8;I|=(h.strategy>=2||h.level<2?0:h.level<6?1:h.level===6?2:3)<<6;h.ul!==0&&(I|=32);h.status=113;YN(h,I+(31-I%31));h.ul!==0&&(YN(h,b.yB>>>16),YN(h,b.yB&65535));b.yB=1}if(h.status===69)if(h.Tj.extra){for(I= h.pending;h.Ej<(h.Tj.extra.length&65535)&&(h.pending!==h.My||(h.Tj.qp&&h.pending>I&&(b.yB=QC(b.yB,h.nh,h.pending-I,I)),Sn(b),I=h.pending,h.pending!==h.My));)kN(h,h.Tj.extra[h.Ej]&255),h.Ej++;h.Tj.qp&&h.pending>I&&(b.yB=QC(b.yB,h.nh,h.pending-I,I));h.Ej===h.Tj.extra.length&&(h.Ej=0,h.status=73)}else h.status=73;if(h.status===73)if(h.Tj.name){I=h.pending;do{if(h.pending===h.My&&(h.Tj.qp&&h.pending>I&&(b.yB=QC(b.yB,h.nh,h.pending-I,I)),Sn(b),I=h.pending,h.pending===h.My)){var N=1;break}N=h.EjI&&(b.yB=QC(b.yB,h.nh,h.pending-I,I));N===0&&(h.Ej=0,h.status=91)}else h.status=91;if(h.status===91)if(h.Tj.comment){I=h.pending;do{if(h.pending===h.My&&(h.Tj.qp&&h.pending>I&&(b.yB=QC(b.yB,h.nh,h.pending-I,I)),Sn(b),I=h.pending,h.pending===h.My)){N=1;break}N=h.EjI&&(b.yB=QC(b.yB,h.nh,h.pending-I,I));N===0&&(h.status=103)}else h.status= 103;h.status===103&&(h.Tj.qp?(h.pending+2>h.My&&Sn(b),h.pending+2<=h.My&&(kN(h,b.yB&255),kN(h,b.yB>>8&255),b.yB=0,h.status=113)):h.status=113);if(h.pending!==0){if(Sn(b),b.jX===0)return h.XV=-1,0}else if(b.M8===0&&(R<<1)-(R>4?9:0)<=(K<<1)-(K>4?9:0)&&R!==4)return gA(b,-5);if(h.status===666&&b.M8!==0)return gA(b,-5);if(b.M8!==0||h.OW!==0||R!==0&&h.status!==666){K=h.strategy===2?F_x(h,R):h.strategy===3?woK(h,R):cQ[h.level].func(h,R);if(K===3||K===4)h.status=666;if(K===1||K===3)return b.jX===0&&(h.XV= -1),0;if(K===2&&(R===1?(sl(h,2,3),$N(h,256,El),h.Tk===16?(Kp(h,h.hE),h.hE=0,h.Tk=0):h.Tk>=8&&(h.nh[h.pending++]=h.hE&255,h.hE>>=8,h.Tk-=8)):R!==5&&(sl(h,0,3),aE(h,0,0),R===3&&(WQ(h.head),h.OW===0&&(h.ul=0,h.O_=0,h.Aq=0))),Sn(b),b.jX===0))return h.XV=-1,0}if(R!==4)return 0;if(h.wrap<=0)return 1;h.wrap===2?(kN(h,b.yB&255),kN(h,b.yB>>8&255),kN(h,b.yB>>16&255),kN(h,b.yB>>24&255),kN(h,b.IS&255),kN(h,b.IS>>8&255),kN(h,b.IS>>16&255),kN(h,b.IS>>24&255)):(YN(h,b.yB>>>16),YN(h,b.yB&65535));Sn(b);h.wrap>0&& (h.wrap=-h.wrap);return h.pending!==0?0:1}; uw=function(b){if(!(this instanceof uw))return new uw(b);b=this.options=of.assign({level:-1,method:8,chunkSize:16384,fY:15,eT:8,strategy:0,to:""},b||{});b.raw&&b.fY>0?b.fY=-b.fY:b.xo&&b.fY>0&&b.fY<16&&(b.fY+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.aY=new X6;this.aY.jX=0;var R=this.aY;var h=b.level,K=b.method,I=b.fY,N=b.eT,p=b.strategy;if(R){var l=1;h===-1&&(h=6);I<0?(l=0,I=-I):I>15&&(l=2,I-=16);if(N<1||N>9||K!==8||I<8||I>15||h<0||h>9||p<0||p>4)R=gA(R,-2);else{I===8&&(I=9);var a= new ogB;R.state=a;a.aY=R;a.wrap=l;a.Tj=null;a.m0=I;a.nj=1<>=7;N<30;N++)for(tq[N]=p<<7,I=0;I<1<=v.nj&&(R===0&&(WQ(v.head),v.ul=0,v.O_=0,v.Aq=0),h=new of.vQ(v.nj),of.wM(h,N,p-v.nj,v.nj,0),N=h,p=v.nj);h=b.M8;K=b.ue;I=b.input;b.M8=p;b.ue=0;b.input=N;for(xN(v);v.OW>=3;){N=v.ul;p=v.OW-2;do v.zj=(v.zj<R:b.length===1?b[0]:b.reduce((R,h)=>(...K)=>R(h(...K)))}; RdT=function(){var b=[];return R=>(h,K)=>{h=R(h,K);let I=()=>{throw Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");}; const N={getState:h.getState,dispatch:(p,...l)=>I(p,...l)}; K=b.map(p=>p(N)); I=F6(...K)(h.dispatch);return{...h,dispatch:I}}}; hdx=function(b){Object.keys(b).forEach(R=>{const h=b[R];if(typeof h(void 0,{type:oE})==="undefined")throw Error(`The slice reducer for key "${R}" returned undefined during initialization. `+"If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(typeof h(void 0,{type:`@@redux/PROBE_UNKNOWN_ACTION${De()}`})==="undefined")throw Error(`The slice reducer for key "${R}" returned undefined when probed with a random type. Don't try to handle '${oE}' or other actions in "redux/*" `+ "namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.");})}; b1=function(b,R,h){function K(){if(B)throw Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return l} function I(q){if(typeof q!=="function")throw Error(`Expected the listener to be a function. Instead, received: '${typeof q}'`);if(B)throw Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let d=!0;v===a&&(v=a.slice());v.push(q);return function(){if(d){if(B)throw Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details."); d=!1;v===a&&(v=a.slice());v.splice(v.indexOf(q),1);a=null}}} function N(q){if(typeof q!=="object"||q===null)var d=!1;else{for(d=q;Object.getPrototypeOf(d)!==null;)d=Object.getPrototypeOf(d);d=Object.getPrototypeOf(q)===d}if(!d)throw Error(`Actions must be plain objects. Instead, the actual type was: '${typeof q}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`); if(typeof q.type==="undefined")throw Error('Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(B)throw Error("Reducers may not dispatch actions.");try{B=!0,l=p(l,q)}finally{B=!1}d=a=v;for(let t=0;t1?R[b[0]]=b[1]:b.length===1&&Object.assign(R,b[0])}; g.x=function(b,R){return b in l1?l1[b]:R}; vg=function(b){const R=l1.EXPERIMENT_FLAGS;return R?R[b]:void 0}; she=function(b){Hg.forEach(R=>R(b))}; g.dK=function(b){return b&&window.yterr?function(){try{return b.apply(this,arguments)}catch(R){g.qc(R)}}:b}; g.qc=function(b){var R=g.YB("yt.logging.errors.log");R?R(b,"ERROR",void 0,void 0,void 0,void 0,void 0):(R=g.x("ERRORS",[]),R.push([b,"ERROR",void 0,void 0,void 0,void 0,void 0]),aA("ERRORS",R));she(b)}; fD=function(b,R,h,K,I){var N=g.YB("yt.logging.errors.log");N?N(b,"WARNING",R,h,K,void 0,I):(N=g.x("ERRORS",[]),N.push([b,"WARNING",R,h,K,void 0,I]),aA("ERRORS",N))}; tQ=function(b,R){R=b.split(R);const h={};for(let N=0,p=R.length;N{const I=g.A1(K);g.pr(Array.isArray(h)?h:[h],N=>{N==""?R.push(I):R.push(`${I}=${g.A1(N)}`)})}); return R.join("&")}; AQ=function(b){b.charAt(0)==="?"&&(b=b.substring(1));return tQ(b,"&")}; i1=function(b){return b.split(",").map(R=>AQ(R))}; g.zE=function(b){return b.indexOf("?")!==-1?(b=(b||"").split("#")[0],b=b.split("?",2),AQ(b.length>1?b[1]:b[0])):{}}; GE=function(b,R){return Ub(b,R||{},!0)}; go=function(b,R){return Ub(b,R||{},!1)}; Ub=function(b,R,h){var K=b.split("#",2);b=K[0];K=K.length>1?"#"+K[1]:"";var I=b.split("?",2);b=I[0];I=AQ(I[1]||"");for(const N in R)if(h||!g.wx(I,N))I[N]=R[N];return g.z9(b,I)+K}; Wg=function(b){if(!R)var R=window.location.href;const h=g.ai(b)[1]||null,K=g.B6(b);h&&K?(b=g.ai(b),R=g.ai(R),b=b[3]==R[3]&&b[1]==R[1]&&b[4]==R[4]):b=K?g.B6(R)===K&&(Number(g.ai(R)[4]||null)||null)===(Number(g.ai(b)[4]||null)||null):!0;return b}; R_=function(b){b||(b=document.location.href);b=g.ai(b)[1]||null;return b!==null&&b==="https"}; nD=function(b){b=S8(b);return b===null?!1:b[0]==="com"&&b[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; Eb=function(b){b=S8(b);return b===null?!1:b[1]==="google"?!0:b[2]==="google"?b[0]==="au"&&b[1]==="com"?!0:b[0]==="uk"&&b[1]==="co"?!0:!1:!1}; S8=function(b){b=g.B6(b);return b!==null?b.split(".").reverse():null}; yB=function(b){return b&&b.match(Ndq)?b:ii(b)}; TE=function(b){a:{let h;try{h=b.G.top.location.href}catch(K){b=2;break a}b=h?h===b.Y.location.href?0:1:2}b={dt:p$x,flash:"0",frm:b};try{b.u_tz=-(new Date).getTimezoneOffset();try{var R=Jx.history.length}catch(h){R=0}b.u_his=R;b.u_h=Jx.screen?.height;b.u_w=Jx.screen?.width;b.u_ah=Jx.screen?.availHeight;b.u_aw=Jx.screen?.availWidth;b.u_cd=Jx.screen?.colorDepth}catch(h){}return b}; k_=function(b=Nc()){var R=JQ,h=Object,K=h.assign,I=TE(R);var N=R.G;let p,l,a,v,B,H,q;try{var d=N.screenX;var t=N.screenY}catch(J){}try{var S=N.outerWidth;p=N.outerHeight}catch(J){}try{l=N.innerWidth,a=N.innerHeight}catch(J){}try{v=N.screenLeft,B=N.screenTop}catch(J){}try{l=N.innerWidth,a=N.innerHeight}catch(J){}try{H=N.screen.availWidth,q=N.screen.availTop}catch(J){}N=[v,B,d,t,H,q,S,p,l,a];d=P6(!1,R.G.top);t=new lWw;"SVGElement"in g.JD&&"createElementNS"in g.JD.document&&t.set(0);S=a2B();S["allow-top-navigation-by-user-activation"]&& t.set(1);S["allow-popups-to-escape-sandbox"]&&t.set(2);g.JD.crypto&&g.JD.crypto.subtle&&t.set(3);"TextDecoder"in g.JD&&"TextEncoder"in g.JD&&t.set(4);t=kYH(t);R=K.call(h,I,{bc:t,bih:d.height,biw:d.width,brdim:N.join(),vis:Ho(R.Y),wgl:!!Jx.WebGLRenderingContext});R.ca_type="image";b&&(R.bid=b);return R}; aWK=function(){if(!Y_)return null;const b=Y_();return"open"in b?b:null}; g.Ob=function(b){switch(e8(b)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; e8=function(b){return b&&"status"in b?b.status:-1}; g.QB=function(b,R){typeof b==="function"&&(b=g.dK(b));return window.setTimeout(b,R)}; g.x_=function(b,R){typeof b==="function"&&(b=g.dK(b));return window.setInterval(b,R)}; g.m8=function(b){window.clearTimeout(b)}; g.Pg=function(b){window.clearInterval(b)}; g.cg=function(b){b=Zi(b);return typeof b==="string"&&b==="false"?!1:!!b}; u1=function(b,R){b=Zi(b);return b===void 0&&R!==void 0?R:Number(b||0)}; Xh=function(){return g.x("EXPERIMENTS_TOKEN","")}; Zi=function(b){return g.x("EXPERIMENT_FLAGS",{})[b]}; var vcq=function(){return VB[f[6]](this,1)}; CD=function(){const b=[],R=g.x("EXPERIMENTS_FORCED_FLAGS",{});for(var h of Object.keys(R))b.push({key:h,value:String(R[h])});h=g.x("EXPERIMENT_FLAGS",{});for(const K of Object.keys(h))K.startsWith("force_")&&R[K]===void 0&&b.push({key:K,value:String(h[K])});return b}; Mc=function(b,R,h="GET",K="",I,N,p,l=!1,a){const v=aWK();if(!v)return null;const B=()=>{(v&&"readyState"in v?v.readyState:0)===4&&R&&g.dK(R)(v)}; "onloadend"in v?v.addEventListener("loadend",B,!1):v.onreadystatechange=B;g.cg("debug_forward_web_query_parameters")&&(b=Bdw(b));v.open(h,b,!0);N&&(v.responseType=N);p&&(v.withCredentials=!0);h=h==="POST"&&(window.FormData===void 0||!(K instanceof FormData));if(I=HIq(b,I))for(const H in I)v.setRequestHeader(H,I[H]),"content-type"===H.toLowerCase()&&(h=!1);h&&v.setRequestHeader("Content-Type","application/x-www-form-urlencoded");a&&"onprogress"in v&&(v.onprogress=()=>{a(v.responseText)}); if(l&&"setAttributionReporting"in XMLHttpRequest.prototype){b={eventSourceEligible:!0,triggerEligible:!1};try{v.setAttributionReporting(b)}catch(H){fD(H)}}v.send(K);return v}; HIq=function(b,R={}){const h=Wg(b),K=g.x("INNERTUBE_CLIENT_NAME"),I=g.cg("web_ajax_ignore_global_headers_if_set");for(const l in ro){let a=g.x(ro[l]);const v=l==="X-Goog-AuthUser"||l==="X-Goog-PageId";l!=="X-Goog-Visitor-Id"||a||(a=g.x("VISITOR_DATA"));var N;if(!(N=!a)){if(!(N=h||(g.B6(b)?!1:!0))){N=b;var p;if(p=g.cg("add_auth_headers_to_remarketing_google_dot_com_ping")&&l==="Authorization"&&(K==="TVHTML5"||K==="TVHTML5_UNPLUGGED"||K==="TVHTML5_SIMPLY")&&Eb(N))N=H6(N)||"",N=N.split("/"),N="/"+(N.length> 1?N[1]:""),p=N==="/pagead";N=p?!0:!1}N=!N}N||I&&R[l]!==void 0||K==="TVHTML5_UNPLUGGED"&&v||(R[l]=a)}"X-Goog-EOM-Visitor-Id"in R&&"X-Goog-Visitor-Id"in R&&delete R["X-Goog-Visitor-Id"];if(h||!g.B6(b))R["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(h||!g.B6(b)){let l;try{l=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch{}l&&(R["X-YouTube-Time-Zone"]=l)}document.location.hostname.endsWith("youtubeeducation.com")||!h&&g.B6(b)||(R["X-YouTube-Ad-Signals"]=j8(k_()));return R}; wo=function(b,R){R.method="POST";R.postParams||(R.postParams={});return g.LD(b,R)}; qkK=function(b,R){if(window.fetch&&R.format!=="XML"){var h={method:R.method||"GET",credentials:"same-origin"};R.headers&&(h.headers=R.headers);R.priority&&(h.priority=R.priority);b=Fh(b,R);var K=oA(b,R);K&&(h.body=K);R.withCredentials&&(h.credentials="include");var I=R.context||g.JD,N=!1,p;fetch(b,h).then(l=>{if(!N){N=!0;p&&g.m8(p);var a=l.ok,v=B=>{B=B||{};a?R.onSuccess&&R.onSuccess.call(I,B,l):R.onError&&R.onError.call(I,B,l);R.onFinish&&R.onFinish.call(I,B,l)}; (R.format||"JSON")==="JSON"&&(a||l.status>=400&&l.status<500)?l.json().then(v,()=>{v(null)}):v(null)}}).catch(()=>{R.onError&&R.onError.call(I,{},{})}); b=R.timeout||0;R.onFetchTimeout&&b>0&&(p=g.QB(()=>{N||(N=!0,g.m8(p),R.onFetchTimeout.call(R.context||g.JD))},b))}else g.LD(b,R)}; g.LD=function(b,R){const h=R.format||"JSON";b=Fh(b,R);var K=oA(b,R);let I=!1,N;const p=dKT(b,l=>{if(!I){I=!0;N&&g.m8(N);var a=g.Ob(l),v=null,B=400<=l.status&&l.status<500,H=500<=l.status&&l.status<600;if(a||B||H)v=fW2(b,h,l,R.convertToSafeHtml);a&&(a=yrP(h,l,v));v=v||{};B=R.context||g.JD;a?R.onSuccess&&R.onSuccess.call(B,l,v):R.onError&&R.onError.call(B,l,v);R.onFinish&&R.onFinish.call(B,l,v)}},R.method,K,R.headers,R.responseType,R.withCredentials,!1,R.onProgress); K=R.timeout||0;if(R.onTimeout&&K>0){const l=R.onTimeout;N=g.QB(()=>{I||(I=!0,p.abort(),g.m8(N),l.call(R.context||g.JD,p))},K)}return p}; Fh=function(b,R){R.includeDomain&&(b=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+b);const h=g.x("XSRF_FIELD_NAME");if(R=R.urlParams)R[h]&&delete R[h],b=GE(b,R);return b}; oA=function(b,R){const h=g.x("XSRF_FIELD_NAME"),K=g.x("XSRF_TOKEN");var I=R.postBody||"",N=R.postParams;const p=g.x("XSRF_FIELD_NAME");let l;R.headers&&(l=R.headers["Content-Type"]);R.excludeXsrf||g.B6(b)&&!R.withCredentials&&g.B6(b)!==document.location.hostname||R.method!=="POST"||l&&l!=="application/x-www-form-urlencoded"||R.postParams&&R.postParams[p]||(N||(N={}),N[h]=K);(g.cg("ajax_parse_query_data_only_when_filled")&&N&&Object.keys(N).length>0||N)&&typeof I==="string"&&(I=AQ(I),g.pj(I,N),I=R.postBodyFormat&& R.postBodyFormat==="JSON"?JSON.stringify(I):g.il(I));N=I||N&&!g.RT(N);!tW3&&N&&R.method!=="POST"&&(tW3=!0,g.qc(Error("AJAX request with postData should use POST")));return I}; fW2=function(b,R,h,K){let I=null;switch(R){case "JSON":let N;try{N=h.responseText}catch(p){throw K=Error("Error reading responseText"),K.params=b,fD(K),p;}b=h.getResponseHeader("Content-Type")||"";N&&b.indexOf("json")>=0&&(N.substring(0,5)===")]}'\n"&&(N=N.substring(5)),I=JSON.parse(N));break;case "XML":if(b=(b=h.responseXML)?jh2(b):null)I={},g.pr(b.getElementsByTagName("*"),p=>{I[p.tagName]=ArT(p)})}K&&iIw(I); return I}; iIw=function(b){if(g.uT(b))for(const R in b)R==="html_content"||ds(R,"_html")?b[R]=KP(b[R]):iIw(b[R])}; yrP=function(b,R,h){if(R&&R.status===204)return!0;switch(b){case "JSON":return!!h;case "XML":return Number(h&&h.return_code)===0;case "RAW":return!0;default:return!!h}}; jh2=function(b){return b?(b=("responseXML"in b?b.responseXML:b).getElementsByTagName("root"))&&b.length>0?b[0]:null:null}; ArT=function(b){let R="";g.pr(b.childNodes,h=>{R+=h.nodeValue}); return R}; Bdw=function(b){var R=window.location.search,h=g.B6(b);g.cg("debug_handle_relative_url_for_query_forward_killswitch")||!h&&Wg(b)&&(h=document.location.hostname);var K=H6(b);K=(h=h&&(h.endsWith("youtube.com")||h.endsWith("youtube-nocookie.com")))&&K&&K.startsWith("/api/");if(!h||K)return b;const I=AQ(R),N={};g.pr(zdx,p=>{I[p]&&(N[p]=I[p])}); return go(b,N)}; bG=function(b,R){const h=g.$T(R);let K;return(new g.Pj((I,N)=>{h.onSuccess=p=>{g.Ob(p)?I(new UKT(p)):N(new Di(`Request failed, status=${e8(p)}`,"net.badstatus",p))}; h.onError=p=>{N(new Di("Unknown request error","net.unknown",p))}; h.onTimeout=p=>{N(new Di("Request timed out","net.timeout",p))}; K=g.LD(b,h)})).xb(I=>{I instanceof ht&&K?.abort(); return Vb(I)})}; g.R$=function(b,R,h,K,I=-1,N){const p=a=>new g.Pj(v=>{setTimeout(v,a)}),l=(a,v,B)=>a.xb(H=>{if(v<=0||e8(H.xhr)===403)return Vb(new Di("Request retried too many times","net.retryexhausted",H.xhr)); const q=Math.pow(2,h-v+1)*B,d=I>0?Math.min(I,q):q;return p(B).then(()=>{N&&N(H,v-1);return l(bG(b,R),v-1,d)})}); return l(bG(b,R),h-1,K)}; G$H=function(b,R=null){b.X=2;b.Y=R}; gcw=function(b,R=null){b.X=1;b.Y=R}; KX=function(b=null){const R=new hN;G$H(R,b);return R}; var W5x=function(){return $X[f[6]](this,1)}; s7=function(b=null){const R=new hN;gcw(R,b);return R}; g.Nj=function(b,R,h,K="youtube.com",I=!1){$E||I$.set(""+b,R,{QH:h,path:"/",domain:K,secure:I})}; g.pX=function(b,R){if(!$E)return I$.get(""+b,R)}; g.lG=function(b,R="/",h="youtube.com"){$E||I$.remove(""+b,R,h)}; Skw=function(){if(!I$.isEnabled())return!1;if(!I$.isEmpty())return!0;I$.set("TESTCOOKIESENABLED","1",{QH:60});if(I$.get("TESTCOOKIESENABLED")!=="1")return!1;I$.remove("TESTCOOKIESENABLED");return!0}; g.Z=function(b,R){if(b)return b[R.name]}; a$=function(b){const R=g.x("INNERTUBE_HOST_OVERRIDE");R&&(b=String(R)+String(dD(b)));return b}; ncH=function(b){const R={};g.cg("json_condensed_response")&&(R.prettyPrint="false");return b=go(b,R)}; vu=function(b,R="POST"){b={method:R,mode:Wg(b)?"same-origin":"cors",credentials:Wg(b)?"same-origin":"include"};R={};const h={};for(const K of Object.keys(R))R[K]&&(h[K]=R[K]);Object.keys(h).length>0&&(b.headers=h);return b}; Bu=function(b,R={}){return`${"service"}:${b}/${Object.keys(R).sort().map(h=>h+":"+R[h]).join("/")}`}; Hu=function(){const b=/Chrome\/(\d+)/.exec(g.zK());return b?parseFloat(b[1]):NaN}; qj=function(){var b=/\sCobalt\/(\S+)\s/.exec(g.zK());if(!b)return NaN;const R=[];for(const h of b[1].split("."))b=parseInt(h,10),b>=0&&R.push(b);return parseFloat(R.join("."))}; fX=function(){return g.dj("android")&&g.dj("chrome")&&!(g.dj("trident/")||g.dj("edge/"))&&!g.dj("cobalt")}; g.y5=function(){return g.dj("cobalt")}; tN=function(){return g.dj("cobalt")&&g.dj("appletv")}; jP=function(){return g.dj("(ps3; leanback shell)")||g.dj("ps3")&&g.y5()}; Ec2=function(){return g.dj("(ps4; leanback shell)")||g.dj("ps4")&&g.y5()}; g.TdH=function(){return g.y5()&&(g.dj("ps4 vr")||g.dj("ps4 pro vr"))}; AN=function(){const b=/WebKit\/([0-9]+)/.exec(g.zK());return!!(b&&parseInt(b[1],10)>=600)}; iG=function(){const b=/WebKit\/([0-9]+)/.exec(g.zK());return!!(b&&parseInt(b[1],10)>=602)}; Jr3=function(){return g.dj("iemobile")||g.dj("windows phone")&&g.dj("edge")}; GJ=function(){return(zJ||U7)&&g.dj("applewebkit")&&!g.dj("version")&&(!g.dj("safari")||g.dj("gsa/"))}; Wu=function(){return g.gj&&g.dj("version/")}; SP=function(){return g.dj("smart-tv")&&g.dj("samsung")}; g.dj=function(b){const R=g.zK();return R?R.toLowerCase().indexOf(b)>=0:!1}; nX=function(){return XE()||GJ()||Wu()?!0:g.x("EOM_VISITOR_DATA")?!1:!0}; E7=function(b,R){return R===void 0||R===null?b:R==="1"||R===!0||R===1||R==="True"?!0:!1}; TJ=function(b,R,h){for(const K in h)if(h[K]==R)return h[K];return b}; JN=function(b,R){return R===void 0||R===null?b:Number(R)}; kE=function(b,R){return R===void 0||R===null?b:R.toString()}; YE=function(b,R){if(R){if(b==="fullwidth")return Infinity;if(b==="fullheight")return 0}return b&&(R=b.match(k$T))&&(b=Number(R[2]),R=Number(R[1]),!isNaN(b)&&!isNaN(R)&&b>0)?R/b:NaN}; O7=function(b){var R=b.docid||b.video_id||b.videoId||b.id;if(R)return R;R=b.raw_player_response;R||(b=b.player_response)&&(R=JSON.parse(b));return R&&R.videoDetails&&R.videoDetails.videoId||null}; Ykq=function(b){return Q5(b,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.xE=function(b){return b==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||b==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; Q5=function(b,R=!1){R=R?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(R="EMBEDDED_PLAYER_MODE_PFL");let h=b.raw_embedded_player_response;if(!h&&(b=b.embedded_player_response))try{h=JSON.parse(b)}catch(K){return R}return h?TJ(R,h.embeddedPlayerMode,edq):R}; OIH=function(){if(g.cg("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!nX())return Error("User has not consented - not fetching biscotti id.");const b=g.x("PLAYER_VARS",{});if(g.Kj(b,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(Ykq(b))return Error("Biscotti id fetching has been disabled for pfl.")}; PJ2=function(){const b=OIH();if(b!==void 0)return Vb(b);mW||(mW=bG("//googleads.g.doubleclick.net/pagead/id",Qh3).then(xKx).xb(R=>mK2(2,R))); return mW}; xKx=function(b){b=b.xhr.responseText;if(!q$(b,")]}'"))throw new Pu;b=JSON.parse(b.substr(4));if((b.type||1)>1)throw new Pu;b=b.id;pD(b);mW=s7(b);ZIe(18E5,2);return b}; mK2=function(b,R){R=new crP(R);pD("");mW=KX(R);b>0&&ZIe(12E4,b-1);throw R;}; ZIe=function(b,R){g.QB(function(){bG("//googleads.g.doubleclick.net/pagead/id",Qh3).then(xKx,h=>mK2(R,h)).xb(g.OU)},b)}; uzT=function(){try{const b=g.YB("yt.ads.biscotti.getId_");return b?b():PJ2()}catch(b){return Vb(b)}}; VWT=function(b){b&&(b.dataset?b.dataset[X$B()]="true":nBK(b))}; CJD=function(b){return b?b.dataset?b.dataset[X$B()]:b.getAttribute("data-loaded"):null}; X$B=function(){return MW3.loaded||(MW3.loaded="loaded".replace(/\-([a-z])/g,(b,R)=>R.toUpperCase()))}; rre=function(){var b=document;if("visibilityState"in b)return b.visibilityState;const R=Z5+"VisibilityState";if(R in b)return b[R]}; cu=function(b,R){let h;dx(b,K=>{h=R[K];return!!h}); return h}; uG=function(b){if(b.requestFullscreen)b=b.requestFullscreen(void 0);else if(b.webkitRequestFullscreen)b=b.webkitRequestFullscreen();else if(b.mozRequestFullScreen)b=b.mozRequestFullScreen();else if(b.msRequestFullscreen)b=b.msRequestFullscreen();else if(b.webkitEnterFullscreen)b=b.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return b instanceof Promise?b:Promise.resolve()}; CX=function(b){var R;g.XO()?V5()==b&&(R=document):R=b;return R&&(b=cu(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],R))?(R=b.call(R),R instanceof Promise?R:Promise.resolve()):Promise.resolve()}; L5q=function(b){return g.jc(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],R=>`on${R.toLowerCase()}`in b)}; w$T=function(){var b=document;return g.jc(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],R=>`on${R.toLowerCase()}`in b)}; g.XO=function(){return!!cu(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; V5=function(b=!1){let R=cu(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(b)for(;R&&R.shadowRoot;)R=R.shadowRoot.fullscreenElement;return R?R:null}; ocx=function(b,R,h,K){const I=[];for(const l of h){if(!l.url)continue;h=new g.Mj(l.url,!0);if(l.s){var N=h,p=l.sp;const a=is(16,decodeURIComponent(l.s));N[f[24]](p,encodeURIComponent(a))}for(const a of Object.keys(K))h.set(a,K[a]);N=rj(l.type,l.quality,l.itag,l.width,l.height);I.push(new F5D(N,h))}return LX(b.S,I,wj(b,R),!1)}; DKH=function(b){if(document.body&&document.documentElement){const R=document.body.scrollTop+document.documentElement.scrollTop;b.G=b.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);b.Y=b.clientY+R}}; b8T=function(b,R,h,K={}){b.addEventListener&&(R!="mouseenter"||"onmouseenter"in document?R!="mouseleave"||"onmouseenter"in document?R=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(R="MozMousePixelScroll"):R="mouseout":R="mouseover");return on(o$,I=>{const N=typeof I[4]==="boolean"&&I[4]==!!K,p=g.uT(I[4])&&g.uT(K)&&g.se(I[4],K);return!!I.length&&I[0]==b&&I[1]==R&&I[2]==h&&(N||p)})}; g.D5=function(b,R,h,K={}){if(!b||!b.addEventListener&&!b.attachEvent)return"";let I=b8T(b,R,h,K);if(I)return I;I=++R$K.count+"";const N=!(R!="mouseenter"&&R!="mouseleave"||!b.addEventListener||"onmouseenter"in document);let p;p=N?l=>{l=new h$q(l);if(!EU(l.relatedTarget,a=>a==b,!0))return l.currentTarget=b,l.type=R,h.call(b,l)}:l=>{l=new h$q(l); l.currentTarget=b;return h.call(b,l)}; p=g.dK(p);b.addEventListener?(R=="mouseenter"&&N?R="mouseover":R=="mouseleave"&&N?R="mouseout":R=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(R="MozMousePixelScroll"),K$H()||typeof K==="boolean"?b.addEventListener(R,p,K):b.addEventListener(R,p,!!K.capture)):b.attachEvent(`on${R}`,p);o$[I]=[b,R,h,p,K];return I}; $Z2=function(b){return saD(b,R=>g.If(R,"ytp-ad-has-logging-urls"))}; saD=function(b,R){const h=document.body||document;return g.D5(h,"click",K=>{const I=EU(K.target,N=>N===h||R(N),!0); I&&I!==h&&!I.disabled&&(K.currentTarget=I,b.call(I,K))})}; g.bQ=function(b){b&&(typeof b=="string"&&(b=[b]),g.pr(b,R=>{if(R in o$){var h=o$[R];const K=h[0],I=h[1],N=h[3];h=h[4];K.removeEventListener?K$H()||typeof h==="boolean"?K.removeEventListener(I,N,h):K.removeEventListener(I,N,!!h.capture):K.detachEvent&&K.detachEvent(`on${I}`,N);delete o$[R]}}))}; Rz=function(b){for(let R in o$)o$[R][0]==b&&g.bQ(R)}; h$=function(b){b=b||window.event;let R;b.composedPath&&typeof b.composedPath==="function"?R=b.composedPath():R=b.path;R&&R.length?b=R[0]:(b=b||window.event,b=b.target||b.srcElement,b.nodeType==3&&(b=b.parentNode));return b}; Kk=function(b){this.D=b;this.G=null;this.V=0;this.J=null;this.S=0;this.Y=[];for(b=0;b<4;b++)this.Y.push(0);this.X=0;this.C=g.D5(window,"mousemove",(0,g.Ms)(this.U,this));this.K=g.x_((0,g.Ms)(this.G6,this),25)}; sO=function(b,R,h,K){for(let I=0;I0?h:0;h=K?Date.now()+K*1E3:0;if((K=K?g.$9.y8():g.$9.AF())&&window.JSON){typeof R!=="string"&&(R=JSON.stringify(R,void 0));try{K.set(b,R,h)}catch(I){K.remove(b)}}}; g.NC=function(b){const R=g.$9.AF(),h=g.$9.y8();if(!R&&!h||!window.JSON)return null;let K;try{K=R.get(b)}catch(I){}if(typeof K!=="string")try{K=h.get(b)}catch(I){}if(typeof K!=="string")return null;try{K=JSON.parse(K,void 0)}catch(I){}return K}; IzT=function(){var b=g.$9.y8();if(b&&(b=b.bO("yt-player-quality")))return b.creation}; g.pk=function(b){try{const R=g.$9.AF(),h=g.$9.y8();R&&R.remove(b);h&&h.remove(b)}catch(R){}}; g.lQ=function(){return g.NC("yt-remote-session-screen-id")}; az=function(){if(!g.JD.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.JD.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.JD.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.JD.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.JD.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(b){return"WEB_DISPLAY_MODE_UNKNOWN"}}; NPB=function(){vL.instance||(vL.instance=new vL);return vL.instance}; pNw=function(b){switch(b){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}}; g.HL=function(){BL||(BL=new lzT);return BL}; d8=function(b,R){var h=`f${Math.floor(b/31)+1}`;b=1<10&&J$.shift()))}; Y9=function(b,R){EO||(T6?T6.logEvent(b,R):(J$.push({type:"EVENT",eventType:b,payload:R}),J$.length>10&&J$.shift()))}; e5=function(b){if(b.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; OO=function(b){return b.substr(0,b.indexOf(":"))||b}; PL=function(b,R,h,K){R=OO(R);let I;I=b instanceof Error?b:Error(`Unexpected error: ${b}`);if(I instanceof g.QJ)return I;b={objectStoreNames:h,dbName:R,dbVersion:K};if(I.name==="QuotaExceededError")return new g.QJ("QUOTA_EXCEEDED",b);if(g.x9&&I.name==="UnknownError")return new g.QJ("QUOTA_MAYBE_EXCEEDED",b);if(I instanceof mL)return new g.QJ("MISSING_INDEX",{...b,objectStore:I.objectStore,index:I.index});if(I.name==="InvalidStateError"&&y9w.some(N=>I.message.includes(N)))return new g.QJ("EXECUTE_TRANSACTION_ON_CLOSED_DB", b); if(I.name==="AbortError")return new g.QJ("UNKNOWN_ABORT",b,I.message);I.args=[{...b,name:"IdbError",WA:I.name}];I.level="WARNING";return I}; g.Zm=function(b,R,h){const K=nk();return new g.QJ("IDB_NOT_SUPPORTED",{context:{caller:b,publicName:R,version:h,hasSucceededOnce:K?.hasSucceededOnce}})}; tCP=function(b){if(!b)throw Error();throw b;}; jax=function(b){return b}; A9q=function(b,R,h,K,I){try{if(b.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");const N=h(b.state.value);N instanceof g.cL?uQ(b,R,N,K,I):K(N)}catch(N){I(N)}}; i8x=function(b,R,h,K,I){try{if(b.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");const N=h(b.state.reason);N instanceof g.cL?uQ(b,R,N,K,I):K(N)}catch(N){I(N)}}; uQ=function(b,R,h,K,I){R===h?I(new TypeError("Circular promise chain detected.")):h.then(N=>{N instanceof g.cL?uQ(b,R,N,K,I):K(N)},N=>{I(N)})}; z$q=function(b,R,h){const K=()=>{try{b.removeEventListener("success",I),b.removeEventListener("error",N)}catch{}},I=()=>{R(b.result); K()},N=()=>{h(b.error); K()}; b.addEventListener("success",I);b.addEventListener("error",N)}; UZK=function(b){return new Promise((R,h)=>{z$q(b,R,h)})}; VJ=function(b){return new g.cL(new X_((R,h)=>{z$q(b,R,h)}))}; Ck=function(b,R){return new g.cL(new X_((h,K)=>{const I=()=>{const N=b?R(b):null;N?N.then(p=>{b=p;I()},K):h()}; I()}))}; g6x=function(b){return VJ(b).then(R=>R?new Go2(b,R):null)}; g.W$H=function(b){b.cursor.continue(void 0);return g6x(b.request)}; MC=function(){return g.cg("idb_immediate_commit")}; g.r8=async function(b,R,h,K){const I={mode:"readonly",oT:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof h==="string"?I.mode=h:Object.assign(I,h);b.transactionCount++;h=I.oT?3:1;let N=0,p;for(;!p;){N++;const B=Math.round((0,g.c)());try{var l=b.G.transaction(R,I.mode),a=K,v=!!I.commit;const H=new SuT(l),q=await n6P(H,a,v),d=Math.round((0,g.c)());E6D(b,B,d,N,void 0,R.join(),I);return q}catch(H){a=Math.round((0,g.c)());const q=PL(H,b.G.name,R.join(),b.G.version);if(q instanceof g.QJ&&!q.G||N>=h)E6D(b,B, a,N,q,R.join(),I),p=q}}return Promise.reject(p)}; g.Lk=function(b,R,h){b=b.G.createObjectStore(R,h);return new TPx(b)}; w8=function(b,R){b.G.objectStoreNames.contains(R)&&b.G.deleteObjectStore(R)}; E6D=function(b,R,h,K,I,N,p){R=h-R;I?(I instanceof g.QJ&&(I.type==="QUOTA_EXCEEDED"||I.type==="QUOTA_MAYBE_EXCEEDED")&&Y9("QUOTA_EXCEEDED",{dbName:OO(b.G.name),objectStoreNames:N,transactionCount:b.transactionCount,transactionMode:p.mode}),I instanceof g.QJ&&I.type==="UNKNOWN_ABORT"&&(h-=b.X,h<0&&h>=2147483648&&(h=0),Y9("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:N,transactionDuration:R,transactionCount:b.transactionCount,dbDuration:h}),b.Y=!0),J9T(b,!1,K,N,R,p.tag),k9(I)):J9T(b,!0,K,N,R, p.tag)}; J9T=function(b,R,h,K,I,N="IDB_TRANSACTION_TAG_UNKNOWN"){Y9("TRANSACTION_ENDED",{objectStoreNames:K,connectionHasUnknownAbortedTransaction:b.Y,duration:I,isSuccessful:R,tryCount:h,tag:N})}; g.F_=function(b,R,h){b.G.createIndex(R,h,{unique:!1})}; g.Dm=function(b,R,h){b=b.G.openCursor(R.query,R.direction);return oz(b).then(K=>Ck(K,h))}; koK=function(b,R){return g.Dm(b,{query:R},h=>h.delete().then(()=>g.by(h))).then(()=>{})}; var YuP=function(b,R){return RY[f[6]](this,29,b,R)}; e$T=function(b,R,h){const K=[];return g.Dm(b,{query:R},I=>{if(!(h!==void 0&&K.length>=h))return K.push(I.getValue()),g.by(I)}).then(()=>K)}; QaT=function(b){const R=[];return g.O82(b,{query:void 0},h=>{R.push(h.cursor.primaryKey);return g.W$H(h)}).then(()=>R)}; xZH=function(b){return"getAllKeys"in IDBObjectStore.prototype?VJ(b.G.getAllKeys(void 0,void 0)):QaT(b)}; g.O82=function(b,R,h){const K=R.query;R=R.direction;b="openKeyCursor"in IDBObjectStore.prototype?b.G.openKeyCursor(K,R):b.G.openCursor(K,R);return g6x(b).then(I=>Ck(I,h))}; n6P=function(b,R,h){const K=new Promise((I,N)=>{try{const p=R(b);h&&b.commit();p.then(l=>{I(l)}).catch(N)}catch(p){N(p),b.abort()}}); return Promise.all([K,b.done]).then(([I])=>I)}; g.h7=function(b,R,h){const {query:K=null,direction:I="next"}=R;b=b.G.openCursor(K,I);return oz(b).then(N=>Ck(N,h))}; mZT=function(b,R,h){const K=[];return g.h7(b,{query:R},I=>{if(!(h!==void 0&&K.length>=h))return K.push(I.getValue()),g.by(I)}).then(()=>K)}; oz=function(b){return VJ(b).then(R=>R?new PqP(b,R):null)}; g.by=function(b){b.cursor.continue(void 0);return oz(b.request)}; c92=function(b,R,h){return new Promise((K,I)=>{let N;N=R!==void 0?self.indexedDB.open(b,R):self.indexedDB.open(b);const p=h.blocked,l=h.blocking,a=h.vp,v=h.upgrade,B=h.closed;let H;const q=()=>{H||(H=new Z8x(N.result,{closed:B}));return H}; N.addEventListener("upgradeneeded",d=>{try{if(d.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(N.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");d.dataLoss&&d.dataLoss!=="none"&&Y9("IDB_DATA_CORRUPTED",{reason:d.dataLossMessage||"unknown reason",dbName:OO(b)});const t=q(),S=new SuT(N.transaction);v&&v(t,J=>d.oldVersion=J,S); S.done.catch(J=>{I(J)})}catch(t){I(t)}}); N.addEventListener("success",()=>{const d=N.result;l&&d.addEventListener("versionchange",()=>{l(q())}); d.addEventListener("close",()=>{Y9("IDB_UNEXPECTEDLY_CLOSED",{dbName:OO(b),dbVersion:d.version});a&&a()}); K(q())}); N.addEventListener("error",()=>{I(N.error)}); p&&N.addEventListener("blocked",()=>{p()})})}; uw2=function(b,R,h={}){return c92(b,R,h)}; Ko=async function(b,R={}){try{const h=self.indexedDB.deleteDatabase(b),K=R.blocked;K&&h.addEventListener("blocked",()=>{K()}); await UZK(h)}catch(h){throw PL(h,b,"",-1);}}; XND=function(b,R){return new g.QJ("INCOMPATIBLE_DB_VERSION",{dbName:b.name,oldVersion:b.options.version,newVersion:R})}; g.so=function(b,R){if(!R)throw g.Zm("openWithToken",OO(b.name));return b.open()}; VCB=async function(b,R){return g.r8(await g.so($M,R),["databases"],{oT:!0,mode:"readwrite"},h=>{const K=h.objectStore("databases");return K.get(b.actualName).then(I=>{if(I?b.actualName!==I.actualName||b.publicName!==I.publicName||b.userIdentifier!==I.userIdentifier:1)return K.put(b).then(()=>{})})})}; IY=async function(b,R){return b?(await g.so($M,R)).delete("databases",b):void 0}; CqP=async function(b,R){const h=[];R=await g.so($M,R);await g.r8(R,["databases"],{oT:!0,mode:"readonly"},K=>{h.length=0;return g.Dm(K.objectStore("databases"),{},I=>{b(I.getValue())&&h.push(I.getValue());return g.by(I)})}); return h}; MCT=function(b,R){return CqP(h=>h.publicName===b&&h.userIdentifier!==void 0,R)}; r9q=async function(){if(nk()?.hasSucceededOnce)return!0;var b;if(!(b=Nr&&AN()&&!iG()||g.po)){try{b=self;var R=!!(b.indexedDB&&b.IDBIndex&&b.IDBKeyRange&&b.IDBObjectStore)}catch(h){R=!1}b=!R}if(b||!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return!1;try{return await VCB({actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0},ly),await IY("yt-idb-test-do-not-use",ly),!0}catch(h){return!1}}; L$B=function(){if(aY!==void 0)return aY;EO=!0;return aY=r9q().then(b=>{EO=!1;if(S5()?.Y()){var R={hasSucceededOnce:nk()?.hasSucceededOnce||b};S5()?.set("LAST_RESULT_ENTRY_KEY",R,2592E3,!0)}return b})}; vW=function(){return g.YB("ytglobal.idbToken_")||void 0}; g.BW=function(){const b=vW();return b?Promise.resolve(b):L$B().then(R=>{R?(g.kB("ytglobal.idbToken_",ly),R=ly):R=void 0;return R})}; wNB=function(b){if(!g.j5())throw b=new g.QJ("AUTH_INVALID",{dbName:b}),k9(b),b;const R=g.t$();return{actualName:`${b}:${R}`,publicName:b,userIdentifier:R}}; F$T=async function(b,R,h,K){var I=Error().stack??"";const N=await g.BW();if(!N)throw R=g.Zm("openDbImpl",b,R),g.cg("ytidb_async_stack_killswitch")||(R.stack=`${R.stack}\n${I.substring(I.indexOf("\n")+1)}`),k9(R),R;e5(b);I=h?{actualName:b,publicName:b,userIdentifier:void 0}:wNB(b);try{return await VCB(I,N),await uw2(I.actualName,R,K)}catch(p){try{await IY(I.actualName,N)}catch{}throw p;}}; o63=function(b,R,h={}){return F$T(b,R,!1,h)}; DZK=function(b,R,h={}){return F$T(b,R,!0,h)}; bR3=async function(b,R={}){const h=await g.BW();h&&(e5(b),b=wNB(b),await Ko(b.actualName,R),await IY(b.actualName,h))}; RsT=function(b,R,h){b=b.map(async K=>{await Ko(K.actualName,R);await IY(K.actualName,h)}); return Promise.all(b).then(()=>{})}; hs3=async function(b){var R={};const h=await g.BW();h&&(e5(b),b=await MCT(b,h),await RsT(b,R,h))}; KQB=async function(b,R={}){const h=await g.BW();h&&(e5(b),await Ko(b,R),await IY(b,h))}; $PK=function(b,R){let h;return()=>{h||(h=new sk3(b,R));return h}}; g.HW=function(b,R){return $PK(b,R)}; qr=function(b){return g.so(IZT(),b)}; NHK=async function(b,R,h,K){b={config:b,hashData:R,timestamp:K!==void 0?K:(0,g.c)()};h=await qr(h);await h.clear("hotConfigStore");return await h.put("hotConfigStore",b)}; pvs=async function(b,R,h,K,I){b={config:b,hashData:R,configData:h,timestamp:I!==void 0?I:(0,g.c)()};K=await qr(K);await K.clear("coldConfigStore");return await K.put("coldConfigStore",b)}; lZD=async function(b){b=await qr(b);let R=void 0;await g.r8(b,["coldConfigStore"],{mode:"readwrite",oT:!0},h=>g.h7(h.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},K=>{R=K.getValue()})); return R}; aZT=async function(b){b=await qr(b);let R=void 0;await g.r8(b,["hotConfigStore"],{mode:"readwrite",oT:!0},h=>g.h7(h.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},K=>{R=K.getValue()})); return R}; v0x=async function(){await hs3("ytGcfConfig")}; BHP=function(){if(!dI.instance){const b=new dI;dI.instance=b}return dI.instance}; fo=function(b,R){b.Y=R;g.kB("yt.gcf.config.hotConfigGroup",b.Y||null)}; yk=function(b,R){b.G=R;g.kB("yt.gcf.config.coldConfigGroup",b.G||null)}; t7=function(){return g.YB("yt.gcf.config.coldConfigGroup")}; jw=function(){return g.YB("yt.gcf.config.hotConfigGroup")}; dPT=function(b){if(!b.Y||!b.G){if(!vW()){const R=g.Zm("scheduleGetConfigs");fD(R)}b.V||(b.V=g.X7.Hg(async()=>{try{await HRK(b)}catch{}try{await q4K(b)}catch{}b.V&&(b.V=0)},100))}}; A7=function(b,R){b.coldHashData=R;g.kB("yt.gcf.config.coldHashData",b.coldHashData||null)}; tZ2=async function(b){if(g.cg("start_client_gcf")||g.cg("delete_gcf_config_db"))g.cg("start_client_gcf")&&(await g.BW()&&g.j5()&&!g.cg("delete_gcf_config_db")?(b.S=!0,dPT(b)):(fZT(b),yVw(b))),g.cg("delete_gcf_config_db")&&await v0x()}; yVw=function(b){fo(b,g.x("RAW_HOT_CONFIG_GROUP"));b.g_(g.x("SERIALIZED_HOT_HASH_DATA"))}; HRK=async function(b){if(b.Y)return jw();if(!b.S)return b=g.Zm("getHotConfig IDB not initialized"),fD(b),Promise.reject(b);const R=vW(),h=g.x("TIME_CREATED_MS");if(R){var K=await aZT(R);if(K&&K.timestamp>h)return fo(b,K.config),b.g_(K.hashData),jw()}else K=g.Zm("getHotConfig token error"),fD(K);yVw(b);R&&b.Y&&b.hotHashData&&await NHK(b.Y,b.hotHashData,R,h);return b.Y?jw():(b=new g.A$("Config not available in ytConfig"),fD(b),Promise.reject(b))}; jkP=function(b,R){b.configData=R;g.kB("yt.gcf.config.coldConfigData",b.configData||null)}; fZT=function(b){yk(b,g.x("RAW_COLD_CONFIG_GROUP"));A7(b,g.x("SERIALIZED_COLD_HASH_DATA"));jkP(b,b.G?.configData)}; q4K=async function(b){if(b.G)return t7();if(!b.S)return b=g.Zm("getColdConfig IDB not initialized"),fD(b),Promise.reject(b);const R=vW(),h=g.x("TIME_CREATED_MS");if(R){var K=await lZD(R);if(K&&K.timestamp>h)return yk(b,K.config),jkP(b,K.configData),A7(b,K.hashData),t7()}else K=g.Zm("getColdConfig"),fD(K);fZT(b);R&&b.G&&b.coldHashData&&b.configData&&await pvs(b.G,b.coldHashData,b.configData,R,h);return b.G?t7():(b=new g.A$("Config not available in ytConfig"),fD(b),Promise.reject(b))}; AVT=async function(b,R,h){if(g.cg("start_client_gcf")){h&&fo(b,h);b.g_(R);const K=vW();K&&(h||(h=(await aZT(K))?.config),await NHK(h,R,K));if(h){b=b.J;for(const I of b.G)I(h)}}}; iRe=async function(b,R,h){g.cg("start_client_gcf")&&(A7(b,R),b=vW())&&(h||(h=(await lZD(b))?.config),h&&await pvs(h,R,h.configData,b))}; zsx=function(){var b=BHP(),R=(0,g.c)()-b.X;if(!(b.X!==0&&R=b&&(b+8&27)>2&15)>=5&&R[f[22]](h);if(b+9>>2=b){for(var l=64,a=[];++l-a[f[4]]-32;)switch(l){case 58:l=96;continue;case 91:l=44;break;case 65:l=47;continue;case 46:l=153;case 123:l-=58;default:a[f[22]](String[f[51]](l))}p=a}(b-3^29)=b&&(R=(R%h[f[4]]+h[f[4]])%h[f[4]],l=h[0],h[0]=h[R],h[R]=l,p=[R]);return p}; g.zP=function(b){const R={client:{hl:b.tF,gl:b.RD,clientName:b.CJ,clientVersion:b.innertubeContextClientVersion,configInfo:b.N9}};navigator.userAgent&&(R.client.userAgent=String(navigator.userAgent));var h=g.JD.devicePixelRatio;h&&h!=1&&(R.client.screenDensityFloat=String(h));h=Xh();h!==""&&(R.client.experimentsToken=h);h=CD();h.length>0&&(R.request={internalExperimentFlags:h});Gax(b,void 0,R);g0P(void 0,R);WQx(void 0,R);S4K(b,void 0,R);n0T(void 0,R);g.cg("start_client_gcf")&&E0P(void 0,R);g.x("DELEGATED_SESSION_ID")&& !g.cg("pageid_as_header_web")&&(R.user={onBehalfOfUser:g.x("DELEGATED_SESSION_ID")});!g.cg("fill_delegate_context_in_gel_killswitch")&&(b=g.x("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(R.user={...R.user,serializedDelegationContext:b});b=g.x("INNERTUBE_CONTEXT");g.cg("enable_persistent_device_token")&&b?.client?.rolloutToken&&(R.client.rolloutToken=b?.client?.rolloutToken);b=Object;h=b.assign;var K=R.client,I=g.x("DEVICE","");const N={};for(const [p,l]of Object.entries(AQ(I))){I=p;const a= l;I==="cbrand"?N.deviceMake=a:I==="cmodel"?N.deviceModel=a:I==="cbr"?N.browserName=a:I==="cbrver"?N.browserVersion=a:I==="cos"?N.osName=a:I==="cosver"?N.osVersion=a:I==="cplatform"&&(N.platform=a)}R.client=h.call(b,K,N);return R}; Gax=function(b,R,h){b=b.CJ;if(b==="WEB"||b==="MWEB"||b===1||b===2)R?(h=hV(R,Uo,96)||new Uo,b=az(),b=Object.keys(THx).indexOf(b),b=b===-1?null:b,b!==null&&AV(h,3,b),NP(R,Uo,96,h)):h&&(h.client.mainAppWebInfo=h.client.mainAppWebInfo??{},h.client.mainAppWebInfo.webDisplayMode=az())}; g0P=function(b,R){const h=g.YB("yt.embedded_player.embed_url");h&&(b?(R=hV(b,GP,7)||new GP,tV(R,4,h),NP(b,GP,7,R)):R&&(R.thirdParty={embedUrl:h}))}; WQx=function(b,R){if(g.cg("web_log_memory_total_kbytes")&&g.JD.navigator?.deviceMemory){const h=g.JD.navigator?.deviceMemory;b?J9(b,95,V4(h*1E6)):R&&(R.client.memoryTotalKbytes=`${h*1E6}`)}}; S4K=function(b,R,h){b.appInstallData&&(R?(h=hV(R,gI,62)??new gI,tV(h,6,b.appInstallData),NP(R,gI,62,h)):h&&(h.client.configInfo=h.client.configInfo||{},h.client.configInfo.appInstallData=b.appInstallData))}; n0T=function(b,R){var h=H8K();h&&(b?AV(b,61,JV3[h]):R&&(R.client.connectionType=h));g.cg("web_log_effective_connection_type")&&(h=dZx())&&(b?AV(b,94,kaD[h]):R&&(R.client.effectiveConnectionType=h))}; Y4K=function(b,R,h={}){let K={};g.x("EOM_VISITOR_DATA")?K={"X-Goog-EOM-Visitor-Id":g.x("EOM_VISITOR_DATA")}:K={"X-Goog-Visitor-Id":h.visitorData||g.x("VISITOR_DATA","")};if(R&&R.includes("www.youtube-nocookie.com"))return K;R=h.fK||g.x("AUTHORIZATION");R||(b?R=`Bearer ${g.YB("gapi.auth.getToken")().access_token}`:(b=NPB().RX(WW),g.cg("pageid_as_header_web")||delete b["X-Goog-PageId"],K={...K,...b}));R&&(K.Authorization=R);return K}; E0P=function(b,R){var h=zsx();if(h){var K=h.coldConfigData,I=h.coldHashData;h=h.hotHashData;b?(R=hV(b,gI,62)??new gI,K=tV(R,1,K),tV(K,3,I).g_(h),NP(b,gI,62,R)):R&&(R.client.configInfo=R.client.configInfo||{},K&&(R.client.configInfo.coldConfigData=K),I&&(R.client.configInfo.coldHashData=I),h&&(R.client.configInfo.hotHashData=h))}}; Sw=function(b){this.version=1;this.args=b}; no=function(b,R){this.topic=b;this.G=R}; TP=function(b,R){const h=Eo();h&&h.publish.call(h,b.toString(),b,R)}; QkT=function(b){var R=esH;const h=Eo();if(!h)return 0;const K=h.subscribe(R.toString(),(I,N)=>{var p=g.YB("ytPubsub2Pubsub2SkipSubKey");p&&p==K||(p=()=>{if(J7[K])try{if(N&&R instanceof no&&R!=I)try{{var l=R.G,a=N;if(!a.args||!a.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");let v;try{if(!l.eG){const B=new l;l.eG=B.version}v=l.eG}catch(B){}if(!v||a.version!=v)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{N=Reflect.construct(l, g.Sc(a.args))}catch(B){throw B.message="yt.pubsub2.Data.deserialize(): "+B.message,B;}}}catch(v){throw v.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+R.toString()+": "+v.message,v;}b.call(window,N)}catch(v){g.qc(v)}},ORx[R.toString()]?g.g8()?g.X7.Hg(p):g.QB(p,0):p())}); J7[K]=!0;kM[R.toString()]||(kM[R.toString()]=[]);kM[R.toString()].push(K);return K}; PA2=function(){var b=xPB;const R=QkT(function(h){b.apply(void 0,arguments);mPB(R)}); return R}; mPB=function(b){const R=Eo();R&&(typeof b==="number"&&(b=[b]),g.pr(b,h=>{R.unsubscribeByKey(h);delete J7[h]}))}; Eo=function(){return g.YB("ytPubsub2Pubsub2Instance")}; YM=function(b,R,h={sampleRate:.1}){Math.random(){h=h.data;if(h.op==="gzippedGelBatch"){var K=ms.get(h.key);K&&(uUs(h.gzippedBatch,K.latencyPayload,K.url,K.options,K.sendFn),ms.delete(h.key))}},R=Qk(); R&&(R.addEventListener("message",b),R.onerror=()=>{ms.clear()},xM=!0)}}; Zw=function(b,R,h,K,I=!1){const N={startTime:(0,g.c)(),ticks:{},infos:{}};try{const l=VZD(R);if(l!=null&&(l>CAT||lCAT||K{}; R.options.onError=async(I,N)=>{const p=o0D(N),l=DPx(N);l&&b.O9&&b.O9("web_enable_error_204")&&b.handleError(Error("Request failed due to compression"),R.url,N);if(b.O9&&b.O9("nwl_consider_error_code")&&p||b.O9&&!b.O9("nwl_consider_error_code")&&b.potentialEsfErrorCounter<=b.hA)if(b.nN.UZ&&await b.nN.UZ(),!b.nN.kV()){h(I,N);b.O9&&b.O9("nwl_consider_error_code")&&R?.id!==void 0&&await b.NU.Jt(R.id,b.pT,!1);return}b.O9&&b.O9("nwl_consider_error_code")&&!p&&b.potentialEsfErrorCounter>b.hA||(b.potentialEsfErrorCounter++, R?.id!==void 0&&(R.sendCount{b.nN.kV()&&b.X()},b.BC)):await b.NU.yC(R.id,b.pT)),h(I,N))}; const K=R.options.onSuccess?R.options.onSuccess:()=>{}; R.options.onSuccess=async(I,N)=>{R?.id!==void 0&&await b.NU.yC(R.id,b.pT);b.nN.yf&&b.O9&&b.O9("vss_network_hint")&&b.nN.yf(!0);K(I,N)}; return R}; o0D=function(b){return(b=b?.error?.code)&&b>=400&&b<=599?!1:!0}; DPx=function(b){b=b?.error?.code;return!(b!==400&&b!==415)}; R1e=function(){if(Xj)return Xj();Xj=g.HW("LogsDatabaseV2",{fX:{LogsRequestsStore:{JZ:2}},shared:!1,upgrade(b,R,h){R(2)&&g.Lk(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});R(3);R(5)&&(h=h.objectStore("LogsRequestsStore"),h.G.indexNames.contains("newRequest")&&h.G.deleteIndex("newRequest"),g.F_(h,"newRequestV2",["status","interface","timestamp"]));R(7)&&w8(b,"sapisid");R(9)&&w8(b,"SWHealthLog")},version:9});return Xj()}; Vk=function(b){return g.so(R1e(),b)}; KKw=async function(b,R){const h={startTime:(0,g.c)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}};R=await Vk(R);b={...b,options:JSON.parse(JSON.stringify(b.options)),interface:g.x("INNERTUBE_CONTEXT_CLIENT_NAME",0)};b=await R.put("LogsRequestsStore",b);h.ticks.tc=(0,g.c)();h1T(h);return b}; sHP=async function(b,R){const h={startTime:(0,g.c)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}};R=await Vk(R);var K=g.x("INNERTUBE_CONTEXT_CLIENT_NAME",0),I=[b,K,0];K=[b,K,(0,g.c)()];const N=IDBKeyRange.bound(I,K);let p="prev";g.cg("use_fifo_for_networkless")&&(p="next");let l=void 0;I=b==="NEW"?"readwrite":"readonly";g.cg("use_readonly_for_get_most_recent_by_status_killswitch")&&(I="readwrite");await g.r8(R,["LogsRequestsStore"],{mode:I,oT:!0},a=>g.h7(a.objectStore("LogsRequestsStore").index("newRequestV2"), {query:N,direction:p},v=>{v.getValue()&&(l=v.getValue(),b==="NEW"&&(l.status="QUEUED",v.update(l)))})); h.ticks.tc=(0,g.c)();h1T(h);return l}; $uP=async function(b,R){return g.r8(await Vk(R),["LogsRequestsStore"],{mode:"readwrite",oT:!0},h=>{const K=h.objectStore("LogsRequestsStore");return K.get(b).then(I=>{if(I)return I.status="QUEUED",K.put(I).then(()=>I)})})}; IV3=async function(b,R,h=!0,K){return g.r8(await Vk(R),["LogsRequestsStore"],{mode:"readwrite",oT:!0},I=>{const N=I.objectStore("LogsRequestsStore");return N.get(b).then(p=>p?(p.status="NEW",h&&(p.sendCount+=1),K!==void 0&&(p.options.compress=K),N.put(p).then(()=>p)):g.cL.resolve(void 0))})}; NWP=async function(b,R){return(await Vk(R)).delete("LogsRequestsStore",b)}; pDH=async function(b){b=await Vk(b);const R=(0,g.c)()-2592E6;await g.r8(b,["LogsRequestsStore"],{mode:"readwrite",oT:!0},h=>g.Dm(h.objectStore("LogsRequestsStore"),{},K=>{if(K.getValue().timestamp<=R)return K.delete().then(()=>g.by(K))}))}; lV3=async function(){await hs3("LogsDatabaseV2")}; h1T=function(b){g.cg("nwl_csi_killswitch")||YM("networkless_performance",b,{sampleRate:1})}; vqw=function(b){return g.so(aV2(),b)}; BWH=async function(b){b=await vqw(b);const R=(0,g.c)()-2592E6;await g.r8(b,["SWHealthLog"],{mode:"readwrite",oT:!0},h=>g.Dm(h.objectStore("SWHealthLog"),{},K=>{if(K.getValue().timestamp<=R)return K.delete().then(()=>g.by(K))}))}; HqP=async function(b){await (await vqw(b)).clear("SWHealthLog")}; g.Co=function(b,R,h,K,I="",N=!1,p=!1){if(b)if(h&&!g.y5())fD(new g.A$("Legacy referrer-scrubbed ping detected")),b&&qdK(b,void 0,{scrubReferrer:!0});else if(I)Mc(b,R,"POST",I,K);else if(g.x("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||K||p)Mc(b,R,"GET","",K,void 0,N,p);else{b:{try{c:{var l=new duT({url:b});if(l.G.dsh==="1")var a=null;else{var v=l.G.ae;if(v==="1"){const H=l.G.adurl;if(H)try{a={version:3,Zm:decodeURIComponent(H),K_:to(l.Y,"act=1","ri=1",y1P(l))};break c}catch(q){}}a=v==="2"?{version:4,Zm:to(l.Y, "dct=1","suid="+l.X,"ri=1"),K_:to(l.Y,"act=1","ri=1","suid="+l.X)}:null}}if(a){const H=H6(b);var B=!(!H||!H.endsWith("/aclk")||W6(b,"ri")!=="1");break b}}catch(H){}B=!1}B?fV2(b)?(R&&R(),h=!0):h=!1:h=!1;h||qdK(b,R)}}; yeD=function(b,R=""){fV2(b,R)||g.Co(b,void 0,void 0,void 0,R)}; fV2=function(b,R=""){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(b,R))return!0}catch(h){}return!1}; qdK=function(b,R,h={}){const K=new Image,I=""+tYD++;Mr[I]=K;K.onload=K.onerror=()=>{R&&Mr[I]&&R();delete Mr[I]}; h.scrubReferrer&&(K.referrerPolicy="no-referrer");K.src=b}; jHD=function(b){return document.featurePolicy?.allowedFeatures().includes("attribution-reporting")?b+"&nis=6":b+"&nis=5"}; wI=function(){rI||(rI=new Lo("yt.offline"));return rI}; Aew=function(b){if(g.cg("offline_error_handling")){var R=wI().get("errors",!0)||{};R[b.message]={name:b.name,stack:b.stack};b.level&&(R[b.message].level=b.level);wI().set("errors",R,2592E3,!0)}}; iqw=function(){if(!Fj.instance){const b=g.YB("yt.networkRequestMonitor.instance")||new Fj;g.kB("yt.networkRequestMonitor.instance",b);Fj.instance=b}return Fj.instance}; z1w=function(){if(!oY.instance){const b=g.YB("yt.networkStatusManager.instance")||new oY;g.kB("yt.networkStatusManager.instance",b);oY.instance=b}return oY.instance}; UuP=function(b,R){b.rateLimit?b.G?(g.X7.wk(b.V),b.V=g.X7.Hg(()=>{b.X!==R&&(b.dispatchEvent(R),b.X=R,b.G=(0,g.c)())},b.rateLimit-((0,g.c)()-b.G))):(b.dispatchEvent(R),b.X=R,b.G=(0,g.c)()):b.dispatchEvent(R)}; Dw=function(){let b=g.YB("yt.networklessRequestController.instance");b||(b=new Gde,g.kB("yt.networklessRequestController.instance",b),g.cg("networkless_logging")&&g.BW().then(R=>{b.pT=R;FQT(b);b.S.resolve();b.S9&&Math.random()<=b.QO&&b.pT&&BWH(b.pT);g.cg("networkless_immediately_drop_sw_health_store")&&gqe(b)})); return b}; gqe=async function(b){if(!b.pT)throw g.Zm("clearSWHealthLogsDb");HqP(b.pT).catch(R=>{b.handleError(R)})}; WK3=function(b,R,h,K=!1){R=g.cg("web_fp_via_jspb")?Object.assign({},R):R;g.cg("use_request_time_ms_header")?R.headers&&Wg(b)&&(R.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.c)()))):R.postParams?.requestTimeMs&&(R.postParams.requestTimeMs=Math.round((0,g.c)()));h&&Object.keys(R).length===0?g.Co(b):R.compress?R.postBody?(typeof R.postBody!=="string"&&(R.postBody=JSON.stringify(R.postBody)),Zw(b,R.postBody,R,g.LD,K)):Zw(b,JSON.stringify(R.postParams),R,wo,K):g.LD(b,R)}; b$=function(b,R){g.cg("use_event_time_ms_header")&&Wg(b)&&(R.headers||(R.headers={}),R.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.c)())));return R}; g.Rq=function(b,R,h,K){!g.x("VISITOR_DATA")&&R!=="visitor_id"&&Math.random()<.01&&fD(new g.A$("Missing VISITOR_DATA when sending innertube request.",R,h,K));if(!b.isReady())throw b=new g.A$("innertube xhrclient not ready",R,h,K),g.qc(b),b;const I={headers:K.headers||{},method:"POST",postParams:h,postBody:K.postBody,postBodyFormat:K.postBodyFormat||"JSON",onTimeout:()=>{K.onTimeout()}, onFetchTimeout:K.onTimeout,onSuccess:(v,B)=>{if(K.onSuccess)K.onSuccess(B)}, onFetchSuccess:v=>{if(K.onSuccess)K.onSuccess(v)}, onProgress:v=>{if(K.onProgress)K.onProgress(v)}, onError:(v,B)=>{if(K.onError)K.onError(B)}, onFetchError:v=>{if(K.onError)K.onError(v)}, timeout:K.timeout,withCredentials:!0,compress:K.compress};I.headers["Content-Type"]||(I.headers["Content-Type"]="application/json");h="";var N=b.config_.yl;N&&(h=N);N=b.config_.hR||!1;const p=Y4K(N,h,K);Object.assign(I.headers,p);I.headers.Authorization&&!h&&N&&(I.headers["x-origin"]=window.location.origin);const l=GE(`${h}${`/${"youtubei"}/${b.config_.innertubeApiVersion}/${R}`}`,{alt:"json"}),a=(v=!1)=>{try{if(v&&K.retry&&!K.networklessOptions.bypassNetworkless)I.method="POST",K.networklessOptions.writeThenSend? Dw().writeThenSend(l,I):Dw().sendAndWrite(l,I);else if(K.compress){const B=!K.networklessOptions.writeThenSend;if(I.postBody){let H=I.postBody;typeof H!=="string"&&(H=JSON.stringify(I.postBody));Zw(l,H,I,g.LD,B)}else Zw(l,JSON.stringify(I.postParams),I,wo,B)}else wo(l,I)}catch(B){if(B.name==="InvalidAccessError")fD(Error("An extension is blocking network request."));else throw B;}}; g.YB("ytNetworklessLoggingInitializationOptions")&&SdK.isNwlInitialized?L$B().then(v=>{a(v)}):a(!1)}; g.Iq=function(b,R,h){const K=g.hF();if(K&&R){const I=K.subscribe(b,function(){const N=arguments,p=()=>{KQ[I]&&R.apply&&typeof R.apply=="function"&&R.apply(h||window,N)}; try{g.sM[b]?p():g.QB(p,0)}catch(l){g.qc(l)}},h); KQ[I]=!0;$U[b]||($U[b]=[]);$U[b].push(I);return I}return 0}; nq2=function(b){const R=g.Iq("LOGGED_IN",function(h){b.apply(void 0,arguments);g.Nt(R)})}; g.Nt=function(b){const R=g.hF();R&&(typeof b==="number"?b=[b]:typeof b==="string"&&(b=[parseInt(b,10)]),g.pr(b,h=>{R.unsubscribeByKey(h);delete KQ[h]}))}; g.pQ=function(b,R){const h=g.hF();return h?h.publish.apply(h,arguments):!1}; TWB=function(b){const R=g.hF();if(R)if(R.clear(b),b)EqP(b);else for(let h in $U)EqP(h)}; g.hF=function(){return g.JD.ytPubsubPubsubInstance}; EqP=function(b){$U[b]&&(b=$U[b],g.pr(b,R=>{KQ[R]&&delete KQ[R]}),b.length=0)}; g.l$=function(b,R,h=null){Jex(b,R,h)}; Jex=function(b,R,h=null){const K=kdx(typeof b==="string"?b:b.toString());let I=document.getElementById(K);var N=I&&CJD(I);const p=I&&!N;N?R&&R():(R&&(N=g.Iq(K,R),R=`${g.VH(R)}`,Yd3[R]=N),p||(I=e1K(b,K,()=>{CJD(I)||(VWT(I),g.pQ(K),g.QB(()=>{TWB(K)},0))},h)))}; e1K=function(b,R,h,K=null){const I=g.jO("SCRIPT");I.id=R;I.onload=()=>{h&&setTimeout(h,0)}; I.onreadystatechange=()=>{switch(I.readyState){case "loaded":case "complete":I.onload()}}; K&&I.setAttribute("nonce",K);g.vE(I,typeof b==="string"?g.IA(b):b);b=document.getElementsByTagName("head")[0]||document.body;b.insertBefore(I,b.firstChild);return I}; kdx=function(b){const R=document.createElement("a");g.bi(R,b);b=R.href.replace(/^[a-zA-Z]+:\/\//,"//");return`js-${GZ(b)}`}; aq=function(b,R){if(b===R)b=!0;else if(Array.isArray(b)&&Array.isArray(R))b=g.Qz(b,R,aq);else if(g.uT(b)&&g.uT(R))a:if(g.Lr(b).length!=g.Lr(R).length)b=!1;else{for(let h in b)if(!aq(b[h],R[h])){b=!1;break a}b=!0}else b=!1;return b}; H2=function(b,...R){if(!v2(b)||R.some(h=>!v2(h)))throw Error("Only objects may be merged."); for(const h of R)B2(b,h)}; B2=function(b,R){for(const h in R)if(v2(R[h])){if(h in b&&!v2(b[h]))throw Error("Cannot merge an object into a non-object.");h in b||(b[h]={});B2(b[h],R[h])}else if(qt(R[h])){if(h in b&&!qt(b[h]))throw Error("Cannot merge an array into a non-array.");h in b||(b[h]=[]);OqT(b[h],R[h])}else b[h]=R[h];return b}; $X=function(b,R){if((b-5^3)=b){for(var h=64,K=[];++h-K[f[4]]-32;){switch(h){case 58:h-=14;case 91:case 92:case 93:continue;case 123:h=47;case 94:case 95:case 96:continue;case 46:h=95}K[f[22]](String[f[51]](h))}var I=K}b-7>>3==1&&R[f[35]]();return I}; OqT=function(b,R){for(const h of R)v2(h)?b.push(B2({},h)):qt(h)?b.push(OqT([],h)):b.push(h);return b}; v2=function(b){return typeof b==="object"&&!Array.isArray(b)}; qt=function(b){return typeof b==="object"&&Array.isArray(b)}; QHP=function(b,R){if(!R)return!1;for(let h=0;h(b&15).toString(16)).join("")}; Pde=function(){({qiv:R=!1,Gjr:b=!0}={});var b,R;if(g.YB("_lact",window)==null){var h=parseInt(g.x("LACT"),10);h=isFinite(h)?Date.now()-Math.max(h,0):-1;g.kB("_lact",h,window);g.kB("_fact",h,window);h==-1&&tF();muK(R,b);new Kk(()=>{j$("mouse",100)})}}; muK=function(b=!1,R=!0){var h=window;g.D5(h.document,"keydown",tF);g.D5(h.document,"keyup",tF);g.D5(h.document,"mousedown",tF);g.D5(h.document,"mouseup",tF);b?g.D5(h,"touchmove",()=>{j$("touchmove",200)},{passive:!0}):(g.D5(h,"resize",()=>{j$("resize",200)}),R&&g.D5(h,"scroll",()=>{j$("scroll",200)})); g.D5(h.document,"touchstart",tF,{passive:!0});g.D5(h.document,"touchend",tF,{passive:!0})}; j$=function(b,R){AF[b]||(AF[b]=!0,g.X7.Hg(()=>{tF();AF[b]=!1},R))}; tF=function(){g.YB("_lact",window)==null&&(Pde(),g.YB("_lact",window));var b=Date.now();g.kB("_lact",b,window);g.YB("_fact",window)==-1&&g.kB("_fact",b,window);(b=g.YB("ytglobal.ytUtilActivityCallback_"))&&b()}; i$=function(){const b=g.YB("_lact",window);return b==null?-1:Math.max(Date.now()-b,0)}; UM=function(b){return new zR(b)}; GR=function(b,R){b.G.set(R.YG,R);const h=b.X.get(R.YG);if(h)try{h.f6(b.resolve(R.YG))}catch(K){h.VJ(K)}}; W2=function(b,R,h,K=!1){if(h.indexOf(R)>-1)throw Error(`Deps cycle for: ${R}`);if(b.Y.has(R))return b.Y.get(R);if(!b.G.has(R)){if(K)return;throw Error(`No provider for: ${R}`);}K=b.G.get(R);h.push(R);if(K.gr!==void 0)var I=K.gr;else if(K.jp)I=K[gy]?Zqq(b,K[gy],h):[],I=K.jp(...I);else if(K.Zz){I=K.Zz;const N=I[gy]?Zqq(b,I[gy],h):[];I=new I(...N)}else throw Error(`Could not resolve providers for: ${R}`);h.pop();K.gTH||b.Y.set(R,I);return I}; Zqq=function(b,R,h){return R?R.map(K=>K instanceof zR?W2(b,K.key,h,!0):W2(b,K,h)):[]}; nQ=function(){S$||(S$=new ceT);return S$}; XDs=function(){var b=uNT;return()=>{const R=nQ();R.resolve(UM(b))||GR(R,{YG:b,Zz:b,[gy]:void 0});return R.resolve(b)}}; TR=function(){return"h5vcc"in EM&&EM.h5vcc.traceEvent?.traceBegin&&EM.h5vcc.traceEvent?.traceEnd?1:"performance"in EM&&EM.performance.mark&&EM.performance.measure?2:0}; JF=function(b){const R=TR();switch(R){case 1:EM.h5vcc.traceEvent.traceBegin("YTLR",b);break;case 2:EM.performance.mark(`${b}-start`);break;case 0:break;default:Rg(R,"unknown trace type")}}; VYT=function(b){var R=TR();switch(R){case 1:EM.h5vcc.traceEvent.traceEnd("YTLR",b);break;case 2:R=`${b}-start`;const h=`${b}-end`;EM.performance.mark(h);EM.performance.measure(b,R,h);break;case 0:break;default:Rg(R,"unknown trace type")}}; CdH=function(b){var R=Array.from(b.G.keys()).sort((h,K)=>(b.G[K].priority??0)-(b.G[h].priority??0)); for(const h of R)R=b.G[h],R.jobId===void 0||R.lQ||(b.scheduler.wk(R.jobId),iQ(R.Bh,10))}; req=function(b,R,h){MY2&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed(`[${b.constructor.name}] '${b.state}' to '${R}'`),console.log("with message: ",h),console.groupEnd())}; oqx=function(b,R){const h=R.filter(I=>(b.Y??I.priority??0)===10),K=R.filter(I=>(b.Y??I.priority??0)!==10); return b.V.XIY?async(...I)=>{await LKx(h,...I);wDs(b,K,...I)}:(...I)=>{FKK(h,...I); wDs(b,K,...I)}}; LKx=async function(b,...R){g.G6();for(const h of b){let K;fzK(()=>{kU(h.name);const I=YU(()=>h.callback(...R)); e$(I)?K=g.cg("web_lifecycle_error_handling_killswitch")?I.then(()=>{OM(h.name)}):I.then(()=>{OM(h.name)},N=>{window.onerror?.(N.message,"",0,0,N); OM(h.name)}):OM(h.name)}); K&&await K}}; wDs=function(b,R,...h){R=R.map(K=>({Bh:()=>{kU(K.name);YU(()=>K.callback(...h)); OM(K.name)}, priority:b.Y??K.priority??0})); R.length&&(b.X=new DuP(R))}; FKK=function(b,...R){g.G6();for(const h of b)fzK(()=>{kU(h.name);YU(()=>h.callback(...R)); OM(h.name)})}; kU=function(b){QM&&b&&JF(b)}; OM=function(b){QM&&b&&VYT(b)}; YU=function(b){if(g.cg("web_lifecycle_error_handling_killswitch"))return b();try{return b()}catch(R){window.onerror?.(R.message,"",0,0,R)}}; R5H=function(){xU||(xU=new bVs);return xU}; Zk=function(b,R){const h=mI(R);if(b.Y[h])return b.Y[h];const K=Object.keys(b.store)||[];if(K.length<=1&&mI(R)===K[0])return K;const I=[];for(let p=0;p{h=h.data;if(h.op==="serializedGelBatch"){var K=Xl.get(h.key);K&&(KkD(h.serializedBatch,K.client,K.resolve,K.networklessOptions,K.isIsolated,K.useVSSEndpoint,K.dangerousLogToVisitorSession,K.requestsOutstanding),Xl.delete(h.key))}},R=Qk(); R&&(R.addEventListener("message",b),R.onerror=()=>{Xl.clear()}); h5H=!0}}; aU2=function(b,R){if(b.endpoint==="log_event"){VM(b);var h=CQ(b),K=$lH(b.payload)||"",I=IU3(K),N=200;if(I){if(I.enabled===!1&&!g.cg("web_payload_policy_disabled_killswitch"))return;N=NDq(I.tier);if(N===400){p62(b,R);return}}Mt[h]=!0;h={cttAuthInfo:h,isJspb:!1,tier:N};u$().storePayload(h,b.payload);lUK(R,!1,h,ry(K))}}; BDH=function(b,R,h){if(R.endpoint==="log_event"){VM(void 0,R);var K=CQ(R,!0),I=IU3(b),N=200;if(I){if(I.enabled===!1&&!g.cg("web_payload_policy_disabled_killswitch"))return;N=NDq(I.tier);if(N===400){voH(b,R,h);return}}Mt[K]=!0;K={cttAuthInfo:K,isJspb:!0,tier:N};u$().storePayload(K,dP(R.payload));lUK(h,!0,K,ry(b))}}; lUK=function(b,R=!1,h,K=!1){b&&(LQ=new b);b=u1("tvhtml5_logging_max_batch_ads_fork")||u1("tvhtml5_logging_max_batch")||u1("web_logging_max_batch")||100;const I=(0,g.c)(),N=wy(R,h.tier),p=N.V;K&&(N.X=!0);K=0;h&&(K=u$().getSequenceCount(h));K>=1E3?Fl({writeThenSend:!0},R,h.tier):K>=b?oq||(oq=Dk(()=>{Fl({writeThenSend:!0},R,h.tier);oq=void 0},0)):I-p>=10&&(HVT(R,h.tier),N.V=I)}; p62=function(b,R){if(b.endpoint==="log_event"){g.cg("more_accurate_gel_parser")&&u$().storePayload({isJspb:!1},b.payload);VM(b);var h=CQ(b),K=new Map;K.set(h,[b.payload]);var I=$lH(b.payload)||"";R&&(LQ=new R);return new g.Pj((N,p)=>{LQ&&LQ.isReady()?qsx(K,LQ,N,p,{bypassNetworkless:!0},!0,ry(I)):N()})}}; var dle=function(b,R,h){return bm[f[6]](this,6,b,R,h)}; voH=function(b,R,h){if(R.endpoint==="log_event"){VM(void 0,R);var K=CQ(R,!0),I=new Map;I.set(K,[dP(R.payload)]);h&&(LQ=new h);return new g.Pj(N=>{LQ&&LQ.isReady()?fUT(I,LQ,N,{bypassNetworkless:!0},!0,ry(b)):N()})}}; CQ=function(b,R=!1){var h="";if(b.dangerousLogToVisitorSession)h="visitorOnlyApprovedKey";else if(b.cttAuthInfo){if(R){R=b.cttAuthInfo.token;h=b.cttAuthInfo;const K=new ySP;h.videoId?K.setVideoId(h.videoId):h.playlistId&&wP(K,2,RJ,DW(h.playlistId));h2[R]=K}else R=b.cttAuthInfo,h={},R.videoId?h.videoId=R.videoId:R.playlistId&&(h.playlistId=R.playlistId),Kd[b.cttAuthInfo.token]=h;h=b.cttAuthInfo.token}return h}; Fl=function(b={},R=!1,h){new g.Pj((K,I)=>{const N=wy(R,h),p=N.X;N.X=!1;si(N.Y);si(N.G);N.G=0;LQ&&LQ.isReady()?h===void 0&&g.cg("enable_web_tiered_gel")?tXx(K,I,b,R,300,p):tXx(K,I,b,R,h,p):(HVT(R,h),K())})}; tXx=function(b,R,h={},K=!1,I=200,N=!1){var p=LQ,l=new Map;const a=new Map,v={isJspb:K,cttAuthInfo:void 0,tier:I},B={isJspb:K,cttAuthInfo:void 0};if(K){for(const H of Object.keys(Mt))R=g.cg("enable_web_tiered_gel")?u$().smartExtractMatchingEntries({keys:[v,B],sizeLimit:1E3}):u$().extractMatchingEntries({isJspb:!0,cttAuthInfo:H}),R.length>0&&l.set(H,R),(g.cg("web_fp_via_jspb_and_json")&&h.writeThenSend||!g.cg("web_fp_via_jspb_and_json"))&&delete Mt[H];fUT(l,p,b,h,!1,N)}else{for(const H of Object.keys(Mt))l= g.cg("enable_web_tiered_gel")?u$().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:H,tier:I},{isJspb:!1,cttAuthInfo:H}],sizeLimit:1E3}):u$().extractMatchingEntries({isJspb:!1,cttAuthInfo:H}),l.length>0&&a.set(H,l),(g.cg("web_fp_via_jspb_and_json")&&h.writeThenSend||!g.cg("web_fp_via_jspb_and_json"))&&delete Mt[H];qsx(a,p,b,R,h,!1,N)}}; HVT=function(b=!1,R=200){const h=()=>{Fl({writeThenSend:!0},b,R)},K=wy(b,R); var I=K===jix||K===AST?5E3:iVB;g.cg("web_gel_timeout_cap")&&!K.G&&(I=Dk(()=>{h()},I),K.G=I); si(K.Y);I=g.x("LOGGING_BATCH_TIMEOUT",u1("web_gel_debounce_ms",1E4));g.cg("shorten_initial_gel_batch_timeout")&&$J&&(I=z5B);I=Dk(()=>{u1("gel_min_batch_size")>0?u$().getSequenceCount({cttAuthInfo:void 0,isJspb:b,tier:R})>=UlK&&h():h()},I); K.Y=I}; qsx=function(b,R,h,K,I={},N,p){const l=Math.round((0,g.c)());let a=b.size;const v=G93(p);for(const [B,H]of b){b=B;p=H;const q=g.IT({context:g.zP(R.config_||g.iy())});if(!g.mq(p)&&!g.cg("throw_err_when_logevent_malformed_killswitch")){K();break}q.events=p;(p=Kd[b])&&goP(q,b,p);delete Kd[b];const d=b==="visitorOnlyApprovedKey";Wkw(q,l,d);Sse(I);const t=e=>{g.cg("start_client_gcf")&&g.X7.Hg(async()=>{await noK(e)}); a--;a||h()}; let S=0;const J=()=>{S++;if(I.bypassNetworkless&&S===1)try{g.Rq(R,v,q,IJ({writeThenSend:!0},d,t,J,N)),$J=!1}catch(e){g.qc(e),K()}a--;a||h()}; try{g.Rq(R,v,q,IJ(I,d,t,J,N)),$J=!1}catch(e){g.qc(e),K()}}}; fUT=function(b,R,h,K={},I,N){const p=Math.round((0,g.c)()),l={value:b.size};var a=new Map([...b]);for(const [J]of a){var v=J,B=b.get(v);a=new g.Nx;var H=R.config_||g.iy(),q=new pd,d=new Eos;tV(d,1,H.tF);tV(d,2,H.RD);AV(d,16,H.XT);tV(d,17,H.innertubeContextClientVersion);if(H.N9){var t=H.N9,S=new gI;t.coldConfigData&&tV(S,1,t.coldConfigData);t.appInstallData&&tV(S,6,t.appInstallData);t.coldHashData&&tV(S,3,t.coldHashData);t.hotHashData&&S.g_(t.hotHashData);NP(d,gI,62,S)}(t=g.JD.devicePixelRatio)&& t!=1&&J9(d,65,SW(t));t=Xh();t!==""&&tV(d,54,t);t=CD();if(t.length>0){S=new TDx;for(let e=0;e{g.cg("start_client_gcf")&&g.X7.Hg(async()=>{await noK(a)}); l.value--;l.value||h()},()=>{l.value--; l.value||h()},I); K.headers["Content-Type"]="application/json+protobuf";K.postBodyFormat="JSPB";K.postBody=b;g.Rq(R,N,"",K);$J=!1}; Sse=function(b){g.cg("always_send_and_write")&&(b.writeThenSend=!1)}; IJ=function(b,R,h,K,I){b={retry:!0,onSuccess:h,onError:K,networklessOptions:b,dangerousLogToVisitorSession:R,scX:!!I,headers:{},postBodyFormat:"",postBody:"",compress:g.cg("compress_gel")||g.cg("compress_gel_lr")};aJ()&&(b.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.c)())));return b}; Wkw=function(b,R,h){aJ()||(b.requestTimeMs=String(R));g.cg("unsplit_gel_payloads_in_logs")&&(b.unsplitGelPayloadsInLogs=!0);!h&&(R=g.x("EVENT_ID"))&&(h=e5K(),b.serializedClientEventId={serializedEventId:R,clientCounter:String(h)})}; e5K=function(){let b=g.x("BATCH_CLIENT_COUNTER")||0;b||(b=Math.floor(Math.random()*65535/2));b++;b>65535&&(b=1);aA("BATCH_CLIENT_COUNTER",b);return b}; goP=function(b,R,h){let K;if(h.videoId)K="VIDEO";else if(h.playlistId)K="PLAYLIST";else return;b.credentialTransferTokenTargetId=h;b.context=b.context||{};b.context.user=b.context.user||{};b.context.user.credentialTransferTokens=[{token:R,scope:K}]}; VM=function(b,R){var h=g.YB("yt.logging.transport.enableScrapingForTest"),K=Zi("il_payload_scraping");K=(K!==void 0?String(K):"")==="enable_il_payload_scraping";if(!h)if(K)H7=[],g.kB("yt.logging.transport.enableScrapingForTest",!0),g.kB("yt.logging.transport.scrapedPayloadsForTesting",H7),g.kB("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.kB("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.kB("yt.logging.transport.scrapeClientEvent",!0);else return;h=g.YB("yt.logging.transport.scrapedPayloadsForTesting");K=g.YB("yt.logging.transport.payloadToScrape");R&&(R=R.payload,(R=g.YB("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(R)())&&h.push(R));R=g.YB("yt.logging.transport.scrapeClientEvent");if(K&&K.length>=1)for(let I=0;I{R5H().currentState==="none"?b():R5H().install({none:{callback:b}})},R):iQ(b,0,R)}; si=function(b){g.cg("transport_use_scheduler")?g.X7.wk(b):g.m8(b)}; noK=async function(b){b=b?.responseContext?.globalConfigGroup;var R=g.Z(b,QiB),h=b?.hotHashData;const K=g.Z(b,xl2),I=b?.coldHashData,N=nQ().resolve(UM(dI));N&&(h&&(R?await AVT(N,h,R):await AVT(N,h)),I&&(K?await iRe(N,I,K):await iRe(N,I)));R=b?.rawFinchStaticConfigGroup;(b=b?.finchStaticHashData)?(h=nQ().resolve(UM(mls)))?await h.prY({config:R||{},LlZ:b||""}):(R||b)&&fD(new g.A$("FinchConfigManagerService is not present, but Finch config data is present.")):R&&fD(new g.A$("Finch config data is present, but hash is missing."))}; wy=function(b,R=200){return b?R===300?jix:PlT:R===300?AST:ZVD}; IU3=function(b){if(g.cg("enable_web_tiered_gel")){b=cSB[b||""];var R=nQ().resolve(UM(dI))?.g0()?.loggingHotConfig?.eventLoggingConfig?.payloadPolicies;if(R)for(let h=0;hb!==void 0)}; g.Ui=function(b=0){b=Clx(b);if(!b&&!g.x("USE_CSN_FALLBACK",!0))return null;b||(b="UNDEFINED_CSN");return b?b:null}; ooT=function(b){for(const R of Object.values(FkH))if(g.Ui(R)===b)return!0;return!1}; Dlx=function(b,R,h){const K=LkK();(h=g.Ui(h))&&delete K[h];R&&(K[b]=R)}; Gn=function(b){return LkK()[b]}; RNT=function(b,R,h=0,K){if(b!==Clx(h)||R!==g.x(im(h)))if(Dlx(b,K,h),MXq(b,h),aA(im(h),R),R=()=>{setTimeout(()=>{b&&g.yp("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:bfT,clientScreenNonce:b})},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(R)}catch(I){R()}else R()}; gz=function(b,R){var h=g.x("VALID_SESSION_TEMPDATA_DOMAINS",[]),K=g.B6(window.location.href);K&&h.push(K);K=g.B6(b);if(g.iR(h,K)||!K&&q$(b,"/"))if(h=document.createElement("a"),g.bi(h,b),b=h.href)if(b=dD(b),b=fV(b))if(!R.csn&&(R.itct||R.ved)&&(R=Object.assign({csn:g.Ui()},R)),I){var I=parseInt(I,10);isFinite(I)&&I>0&&hNw(b,R,I)}else hNw(b,R)}; hNw=function(b,R,h){b=KRK(b);R=R?g.il(R):"";h=h||5;nX()&&g.Nj(b,R,h)}; KRK=function(b){for(let R of sZT)b=SX(b,R);return"ST-"+GZ(b).toString(36)}; $3T=function(b){if(b.name==="JavaException")return!0;b=b.stack;return b.includes("chrome://")||b.includes("-extension://")||b.includes("webkit-masked-url://")}; ITw=function(b){if(!b.stack)return!0;const R=!b.stack.includes("\n");return R&&b.stack.includes("ErrorType: ")||R&&b.stack.includes("Anonymous function (Unknown script")||b.stack.toLowerCase()==="not available"||b.fileName==="user-script"||b.fileName.startsWith("user-script:")?!0:!1}; SU=function(){if(!W7){var b=W7=new N3K;b.m3.length=0;b.hw.length=0;pkP(b,lTH)}return W7}; pkP=function(b,R){R.m3&&b.m3.unshift.apply(b.m3,R.m3);R.hw&&b.hw.unshift.apply(b.hw,R.hw)}; aTB=function(b){const R=b.length;let h=0;const K=()=>b.charCodeAt(h++); do{var I=nd(K);if(I===Infinity)break;const N=I>>3;switch(I&7){case 0:I=nd(K);if(N===2)return I;break;case 1:if(N===2)return;h+=8;break;case 2:I=nd(K);if(N===2)return b.substr(h,I);h+=I;break;case 5:if(N===2)return;h+=4;break;default:return}}while(h500));K++);K=I}else if(typeof b==="object")for(I in b){if(b[I]){a:{var N=I;var p=b[I],l=R,a=h;if(typeof p!=="string"||N!=="clickTrackingParams"&&N!=="trackingParams"){N=0;break a}N=(p=aTB(atob(p.replace(/-/g,"+").replace(/_/g,"/"))))?Ei(`${N}.ve`,p,l,a):0}K+=N;K+=Ei(I,b[I],R,h);if(K>500)break}}else h[R]=Tn(b),K+=h[R].length;else h[R]=Tn(b),K+=h[R].length;return K}; Ei=function(b,R,h,K){h+=`.${b}`;b=Tn(R);K[h]=b;return h.length+b.length}; Tn=function(b){try{return(typeof b==="string"?b:String(JSON.stringify(b))).substr(0,500)}catch(R){return`unable to serialize ${typeof b} (${R.message})`}}; J2=function(b){g.X(b)}; g.kJ=function(b){g.X(b,"WARNING")}; B3T=function(b,R,h){var K;b>>2&7||(K=R!==null);if((b|24)==b){const I=R[f[0]](f[32],12),N=R[f[0]](f[32],I+1);I>0&&N>0?(h[f[8]]=R[f[15]](0,N),R=R[f[15]](N+1)):(h[f[8]]=R,R=f[7]);K=[R]}return K}; g.X=function(b,R="ERROR"){var h={};h.name=g.x("INNERTUBE_CONTEXT_CLIENT_NAME",1);h.version=g.x("INNERTUBE_CONTEXT_CLIENT_VERSION");HfT(b,h,R)}; HfT=function(b,R,h="ERROR"){if(b){b.hasOwnProperty("level")&&b.level&&(h=b.level);if(g.cg("console_log_js_exceptions")||["test","dev","autopush","staging"].includes(g.x("SERVER_VERSION"))){var K=[];K.push(`Name: ${b.name}`);K.push(`Message: ${b.message}`);b.hasOwnProperty("params")&&K.push(`Error Params: ${JSON.stringify(b.params)}`);b.hasOwnProperty("args")&&K.push(`Error args: ${JSON.stringify(b.args)}`);K.push(`File name: ${b.fileName}`);K.push(`Stacktrace: ${b.stack}`);window.console.log(K.join("\n"), b)}if(!(qVe>=5)){K=[];for(I of d3H)try{I()&&K.push(I())}catch(t){}var I=K;I=[...fTw,...I];var N=EBK(b);K=N.message||"Unknown Error";const q=N.name||"UnknownError";var p=N.stack||b.Y||"Not available";if(p.startsWith(`${q}: ${K}`)){var l=p.split("\n");l.shift();p=l.join("\n")}l=N.lineNumber||"Not available";N=N.fileName||"Not available";let d=0;if(b.hasOwnProperty("args")&&b.args&&b.args.length)for(var a=0;a=500);a++);else if(b.hasOwnProperty("params")&& b.params){const t=b.params;if(typeof b.params==="object")for(a in t){if(!t[a])continue;const S=`params.${a}`,J=Tn(t[a]);R[S]=J;d+=S.length+J.length;if(d>500)break}else R.params=Tn(t)}if(I.length)for(a=0;a=500);a++);navigator.vendor&&!R.hasOwnProperty("vendor")&&(R["device.vendor"]=navigator.vendor);R={message:K,name:q,lineNumber:l,fileName:N,stack:p,params:R,sampleWeight:1};a=Number(b.columnNumber);isNaN(a)||(R.lineNumber=`${R.lineNumber}:${a}`); if(b.level==="IGNORED")var v=0;else a:{b=SU();for(v of b.m3)if(R.message&&R.message.match(v.vK)){v=v.weight;break a}for(var B of b.hw)if(B.callback(R)){v=B.weight;break a}v=1}R.sampleWeight=v;v=R;for(var H of yaH){if(!H.n7[v.name])continue;B=H.n7[v.name];for(const t of B){B=v.message.match(t.DU);if(!B)continue;v.params["params.error.original"]=B[0];b=t.groups;R={};for(a=0;a1E3&&g.kJ(new g.A$("IL Attach cache exceeded limit"))}p=rz(h,R);um.has(p)?Ld(h, R):Vp.set(p,!0)}}K=K.filter(l=>{l.csn!==R?(l.csn=R,l=!0):l=!1;return l}); h={csn:R,parentVe:h.getAsJson(),childVes:g.an(K,l=>l.getAsJson())}; R==="UNDEFINED_CSN"?wz("visualElementAttached",N,h):b?dz("visualElementAttached",h,b,N):g.yp("visualElementAttached",h,N)}; kgT=function(b,R,h,K,I,N,p){FX(h,R);K=c7({cttAuthInfo:Gn(R)||void 0,automatedLogEventSource:p},R);h={csn:R,ve:h.getAsJson(),eventType:1};I&&(h.clientData=I);R==="UNDEFINED_CSN"?wz("visualElementShown",K,h):b?dz("visualElementShown",h,b,K):g.yp("visualElementShown",h,K)}; YVq=function(b,R,h,K=!1){const I=K?16:8;K=c7({cttAuthInfo:Gn(R)||void 0,endOfSequence:K,automatedLogEventSource:void 0},R);h={csn:R,ve:h.getAsJson(),eventType:I};R==="UNDEFINED_CSN"?wz("visualElementHidden",K,h):b?dz("visualElementHidden",h,b,K):g.yp("visualElementHidden",h,K)}; oJ=function(b,R,h,K,I,N){eNw(b,R,h,void 0,K,I,N)}; eNw=function(b,R,h,K,I,N,p){FX(h,R);K=K||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";N=c7({cttAuthInfo:Gn(R)||void 0,automatedLogEventSource:p},R);h={csn:R,ve:h.getAsJson(),gestureType:K};I&&(h.clientData=I);R==="UNDEFINED_CSN"?wz("visualElementGestured",N,h):b?dz("visualElementGestured",h,b,N):g.yp("visualElementGestured",h,N)}; Ofw=function(){let b;b=fQ(16);const R=[];for(let h=0;h{g.pr(R,h=>{FX(h,b);const K=c7({cttAuthInfo:Gn(b)||void 0,automatedLogEventSource:void 0},b);h={csn:b,ve:h.getAsJson(),eventType:4};b==="UNDEFINED_CSN"?wz("visualElementShown",K,h):g.yp("visualElementShown",h,K)})})()}; g.KW=function(b,R){g.dK(()=>{g.pr(R,h=>{YVq(void 0,b,h)})})()}; g.sn=function(b,R,h){g.dK(oJ)(void 0,b,R,h,void 0)}; $8=function(b,R,h,K){g.dK(eNw)(void 0,b,R,h,K,void 0)}; I1=function(b){var R=":"+(L5.getInstance().G++).toString(36);return b+R}; g.NU=function(b=!1){g.N3.call(this);this.HR=new g.kd(b);g.n(this,this.HR)}; pW=function(){const b="ytp-id-"+QZP.toString();QZP++;return b}; l2=function(b,R,h,K){if(K.substring(0,2)==="{{")b.er[K]=[R,h];else return K}; a1=function(b,R,h,K){if(h==="child"){g.zF(R);let N;K===void 0?N=void 0:N=!Array.isArray(K)||K&&typeof K.B==="string"?[K]:K;h=x3T(b,N);for(var I of h)R.appendChild(I)}else h==="style"?g.MN(R,"cssText",K?K:""):K===null||K===void 0?R.removeAttribute(h):(I=K.toString(),h==="href"&&(I=g.M$(g.Fr(I))),R.setAttribute(h,I))}; x3T=function(b,R){const h=[];if(!R)return h;for(const K of R){if(K==null)continue;R=K.nodeType;R===1||R===3?h.push(K):K&&typeof K.B==="string"?h.push(b.createElement(K)):K.element?h.push(K.element):typeof K==="string"&&K.indexOf("\n")!==-1?K.split("\n").forEach((I,N)=>{N>0&&h.push(g.jO("BR"));h.push(g.Ax(I))}):h.push(g.Ax(K))}return h}; vY=function(b=null,R=null){if(b==null)return g.kJ(Error("Got null or undefined adText object")),"";let h=g.U5(b.text);if(!b.isTemplated)return h;if(R==null)return g.kJ(Error("Missing required parameters for a templated message")),h;for(const [K,I]of Object.entries(R))h=h.replace("{"+K+"}",I);return h}; m33=function(b=null){return b!=null&&(b=b.thumbnail,b!=null&&b.thumbnails!=null&&b.thumbnails.length!=0&&b.thumbnails[0].url!=null)?g.U5(b.thumbnails[0].url):""}; P42=function(b=null){return b!=null&&(b=b.thumbnail,b!=null&&b.thumbnails!=null&&b.thumbnails.length!=0&&b.thumbnails[0].width!=null&&b.thumbnails[0].height!=null)?new g.ru(b.thumbnails[0].width||0,b.thumbnails[0].height||0):new g.ru(0,0)}; g.BY=function(b){if(b.simpleText)return b.simpleText;if(b.runs){const R=[];for(const h of b.runs)h.text&&R.push(h.text);return R.join("")}return""}; g.HY=function(b){if(b.simpleText)return b=document.createTextNode(b.simpleText),b;const R=[];if(b.runs)for(let l=0;l>3==2){R[18]!==-2&&(R[43]==7&&((0,R[40])((((0,R[67])(R[36],R[51]),R[38])(R[6],R[8-new h(f[25])/1E3%(new h(f[21])/1E3)**4]),R[38])(R[63],R[76]),R[72],R[51]),1)||((0,R[67])(R[62],R[6]),(((0,R[70])(R[35],R[55]),R[37])(R[2],R[33]),R[77])(R[52],R[45])));R[78]!==-4&&((0,R[10])((0,R[14])(R[64],R[52]),R[63],R[33]),[])||(0,R[10])((0,R[37])(R[28],R[21]),R[11],R[67],R[56],(0,R[49])());(R[17]<-9||((0,R[8])(R[67],R[76]),0))&&(0,R[47])(R[52],R[34]);R[7]!=0&&(R[41]!==-1&& ((0,R[10])(((0,R[10])((0,R[37])(R[30],R[52]),R[51],R[56],R[47]),(0,R[41])(R[45],R[71])),R[46],R[56]),f[40])||(0,R[26])((0,R[42])(R[67],R[58]),R[69],(0,R[69])((0,R[68])(R[12],R[23],(0,R[30])()),R[71],R[22],R[35]),R[68],R[46],R[23],(0,R[30])()));var v=[]}(b&121)==b&&h[f[4]]!=0&&(R=(R%h[f[4]]+h[f[4]])%h[f[4]],h[f[46]](0,1,h[f[46]](R,1,h[0])[0]));b-5>>3==3&&R[f[46]](R[f[4]],0,h);(b-2|64)=b&&(v=h(K,I,N,p,l,a));return v}; Bpw=function(){return{B:"svg",O:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{B:"path",O:{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"}}]}}; En=function(){return{B:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{B:"path",XX:!0,Z:"ytp-svg-fill",O:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}}; Tr=function(b,R=!1,h=!1,K=!1){if(!b)return null;switch(b.iconType){case "OPEN_IN_NEW":case "EXTERNAL_LINK":return h?{B:"svg",O:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},W:[{B:"path",O:{d:"M21 21H3V3h9v1H4v16h16v-8h1v9zM15 3v1h4.32l-8.03 8.03.71.71 8-8V9h1V3h-6z"}}]}:zr();case "CHECK_BOX":return{B:"svg",O:{height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{B:"path",O:{d:"M0 0h24v24H0z",fill:"none"}},{B:"path",O:{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z", fill:"#d4d4d4"}}]};case "CHECK_BOX_OUTLINE_BLANK":return{B:"svg",O:{height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{B:"path",O:{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z",fill:"#d4d4d4"}},{B:"path",O:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.y7();case "INFO_OUTLINE":return R?{B:"svg",O:{fill:"#fff",height:"12px",style:"padding-top: 8px",viewBox:"0 -960 960 960",width:"12px"},W:[{B:"path",O:{d:"M430.09-270.8h101.34V-528H430.09v257.2Zm49.52-338.03q20.94 0 35.34-14.01 14.4-14.01 14.4-34.95 0-20.94-14.01-35.34-14.01-14.39-34.95-14.39-20.94 0-35.34 14.01-14.4 14.01-14.4 34.95 0 20.94 14.01 35.34 14.01 14.39 34.95 14.39Zm.67 548.18q-86.64 0-163.19-32.66-76.56-32.66-133.84-89.94t-89.94-133.8q-32.66-76.51-32.66-163.41 0-87.15 32.72-163.31t90.14-133.61q57.42-57.44 133.79-89.7 76.38-32.27 163.16-32.27 87.14 0 163.31 32.26 76.16 32.26 133.61 89.71 57.45 57.45 89.71 133.86 32.26 76.42 32.26 163.33 0 86.91-32.27 163.08-32.26 76.18-89.7 133.6-57.45 57.42-133.83 90.14-76.39 32.72-163.27 32.72Zm-.33-105.18q131.13 0 222.68-91.49 91.54-91.49 91.54-222.63 0-131.13-91.49-222.68-91.49-91.54-222.63-91.54-131.13 0-222.68 91.49-91.54 91.49-91.54 222.63 0 131.13 91.49 222.68 91.49 91.54 222.63 91.54ZM480-480Z"}}]}: LRB();case "REMOVE_CIRCLE":return{B:"svg",O:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},W:[{B:"path",O:{d:"M0 0h24v24H0z",fill:"none"}},{B:"path",O:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z",fill:"#757575"}}]};case "SKIP_NEXT":return i2();case "SKIP_NEXT_NEW":return K?bSq():{B:"svg",O:{height:"100%",viewBox:"-6 -6 36 36",width:"100%"},W:[{B:"path",O:{d:"M5,18l10-6L5,6V18L5,18z M19,6h-2v12h2V6z",fill:"#fff"}}]};case "LIKE":return FRs(); case "DISLIKE":return MDH();default:return g.kJ(new g.A$("Unexpected icon:",b)),null}}; HSK=function(b){let R=null;b.G!=null&&(R=[b.G.serviceEndpoint,b.G.navigationEndpoint].filter(h=>h!=null),b.G.command&&(R=R.concat(b.G.command))); return R||[]}; d53=function(){Jh==null&&(Jh=new qET);return Jh}; k8=function(b,R){if(b.simpleText){a:{b=b.simpleText;if(R&&(R=fQP(b))){R=tx("SPAN",null,R);break a}R=g.Ax(b)}return R}const h=[];if(b.runs)for(let K=0;KI.baseUrl),d53().register(h,b),g.Nv(h,"ytp-ad-has-logging-urls")); return h||tx("SPAN",null,K)}; fQP=function(b){b=b.split(/(?:\r\n|\r|\n)/g);if(b.length>1){const R=[b[0]];for(let h=1;hb.V(I))); R.confirmLabel&&(R=g.BY(R.confirmLabel),b.updateValue("confirmLabel",R),b.G.j(b.C,"click",I=>b.J(I))); b.G.j(b.T6,"click",I=>b.S(I))}; On=function(b){b.C&&(b.isToggled()?(g.aR(b.J,!1),g.aR(b.S,!0),b.Y.setAttribute("aria-checked",!0)):(g.aR(b.J,!0),g.aR(b.S,!1),b.Y.setAttribute("aria-checked",!1)))}; jSe=function(b,R){let h=null;b.X&&(h=(R?[b.X.defaultServiceEndpoint,b.X.defaultNavigationEndpoint]:[b.X.toggledServiceEndpoint]).filter(K=>K!=null)); return h||[]}; U5e=function(b,R){var h=R.cancelRenderer&&R.cancelRenderer.buttonRenderer||null;h&&(b.G=new Q7(b.api,b.layoutId,b.interactionLoggingClientData,b.eY,["ytp-ad-feedback-dialog-close-button"],"button"),g.n(b,b.G),b.G.init(I1("button"),h,b.macros),b.G.listen("click",b.D,b),b.G.AX(b.element));R.title&&(h=g.BY(R.title),b.updateValue("title",h));R.reasonsTitle&&(h=g.BY(R.reasonsTitle),b.updateValue("reasonsTitle",h));R.reasons&&AKK(b,R.reasons);R.cancelLabel&&(h=g.BY(R.cancelLabel),b.updateValue("cancelLabel", h),g.D5(b.S,"click",()=>b.D())); R.confirmLabel&&(h=g.BY(R.confirmLabel),b.updateValue("confirmLabel",h),g.D5(b.J,"click",()=>iSD(b))); R.undoRenderer&&zQq(b,R.undoRenderer)}; AKK=function(b,R){for(const K of R){R=K.reason;if(R==null){g.kJ(Error("AdFeedbackReason.reason was not set."));continue}var h=K.endpoint;if(h==null){g.kJ(Error("AdFeedbackReason.endpoint was not set."));continue}const I=new GWT(R,h);g.n(b,I);R=b.C;h=I.hO();R.appendChild(h);b.V.push(I)}}; iSD=function(b){var R=b.V.filter(h=>h.isChecked()); R.length!==0&&(R=R[0].getCommand(),b.layoutId?b.eY.executeCommand(R,b.layoutId):g.X(Error("Missing layoutId for ad feedback dialog.")),b.api.onAdUxClicked("ad-feedback-dialog-confirm-button",b.layoutId),b.publish("a"),b.hide())}; zQq=function(b,R){if(R=R&&R.buttonRenderer||null)R.serviceEndpoint?(b.Y=new Q7(b.api,b.layoutId,b.interactionLoggingClientData,b.eY,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.n(b,b.Y),b.Y.init(I1("ad-feedback-undo-mute-button"),R,b.macros),b.Y.listen("click",b.vY,b),b.Y.AX(b.T6)):g.kJ(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint."))}; g3x=function(b){b.G&&b.G.listen("click",b.T6,b);g.D5(b.J,"click",()=>b.T6())}; SE3=function(b,R){if(R=R.content&&R.content.adFeedbackRenderer||null)b.Y=new W7x(b.api,b.layoutId,b.interactionLoggingClientData,b.eY),g.n(b,b.Y),b.Y.init(I1("ad-feedback-dialog"),R,b.macros),b.Y.AX(b.C),b.Y.subscribe("a",()=>b.publish("c"))}; E3w=function(b,R){if(R=R.content&&R.content.confirmDialogRenderer||null)b.V=new n3B(b.api,b.layoutId,b.interactionLoggingClientData,b.eY),g.n(b,b.V),b.V.init(I1("ad-mute-confirm-dialog"),R,b.macros),b.V.AX(b.C),b.V.subscribe("b",()=>b.publish("c"))}; YEH=function(b,R,h){b.button==null?g.X(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(b.Y&&g.Nv(b.Y.element,"ytp-ad-info-hover-text-short"),(R=R&&R.serviceEndpoint&&g.Z(R.serviceEndpoint,TpT)||null)?(JKH(b,R,h),b.button.listen("click",()=>{b.G&&!b.G.XM&&(b.G.show(),kWx(b))})):b.button.listen("click",()=>kWx(b)))}; JKH=function(b,R,h){R=R.dialog&&g.Z(R.dialog,eQH)||null;R==null?g.X(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(b.G=new OS3(b.api,b.layoutId,b.interactionLoggingClientData,b.eY,b.V),g.n(b,b.G),b.G.init(I1("ad-info-dialog"),R,h),b.G.AX(b.V),b.G.subscribe("d",()=>b.publish("f")),b.G.subscribe("c",()=>b.publish("e")))}; kWx=function(b){b.api.onAdUxClicked("ad-info-icon-button",b.layoutId)}; x8=function(b,R){R&&g.W_(b.element,vY(b.G,R))}; mp=function(b){b.G&&b.C===-1&&(b.C=b.G.subscribe("h",b.X,b),b.Zr=b.G.subscribe("g",b.S,b),b.X())}; PY=function(b){b.G!=null&&b.C!==-1&&(b.G.pN(b.C),b.G.pN(b.Zr),b.Zr=-1,b.C=-1)}; ZO=function(b,R){b=b.element.element;R?b.setAttribute("aria-hidden","true"):b.removeAttribute("aria-hidden")}; QST=function(b){switch(b){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:Rg(b,"unknown result type")}}; x5K=function(b,R){let h=1;b.isTrusted===!1&&(h=0);aA("ISDSTAT",h);cY(h,"i.s_",{triggerContext:"sk",metadata:R});return h}; m5H=function(b,R){const h=[];R?R.isTrusted===!0?h.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):R.isTrusted===!1?h.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):h.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):h.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");cY(0,"a.s_",{metadata:b,states:h});aA("ASDSTAT",0)}; cY=function(b,R,h){R=PV3[R];const K={detected:b===0,source:`${R.Y}${h.triggerContext??""}${h.xF??""}`,detectionStates:h.states,durationMs:h.ql};h.metadata&&(K.contentCpn=h.metadata.contentCpn,K.adCpn=h.metadata.adCpn);g.yp("biscottiBasedDetection",K);R.G!==void 0&&(h=Number(g.x("CATSTAT",0)),R.G!==void 0?(R=R.G,b=QST(b),b=h&~(3<R.adLifecycleCommand?ZST(R.adLifecycleCommand):!1)}; ZST=function(b){return b.action==="END_LINEAR_AD"||b.action==="END_LINEAR_AD_PLACEMENT"}; uax=function(b,R){b.J||(b.J=!0,b.Y&&(R?b.Y.T6.hide():b.Y.hide()),R?(b=b.V,b.RH.show(),b.show()):b.V.show())}; g.CW=function(b,R){var h=Math.abs(Math.floor(b)),K=Math.floor(h/86400);const I=Math.floor(h%86400/3600),N=Math.floor(h%3600/60);h=Math.floor(h%60);if(R){R="";K>0&&(R+=` ${K} `+"D\u00edas");if(K>0||I>0)R+=` ${I} `+"Horas";R+=` ${N} `+"Minutos";R+=` ${h} `+"Segundos";K=R.trim()}else{R="";K>0&&(R+=`${K}:`,I<10&&(R+="0"));if(K>0||I>0)R+=`${I}:`,N<10&&(R+="0");R+=`${N}:`;h<10&&(R+="0");K=R+h}return b>=0?K:`-${K}`}; g.MU=function(b){return(!("button"in b)||typeof b.button!=="number"||b.button===0)&&!("shiftKey"in b&&b.shiftKey)&&!("altKey"in b&&b.altKey)&&!("metaKey"in b&&b.metaKey)&&!("ctrlKey"in b&&b.ctrlKey)}; Xyx=function(b,R){return b.Y+R*(b.G-b.Y)}; rm=function(b,R,h){return b.G-b.Y?g.ui((R-b.Y)/(b.G-b.Y),0,1):h!=null?h:Infinity}; Vdw=function(b){b=b.api.L();return g.LW(b)&&b.Y}; g.wm=function(b){b&=16777215;var R=[(b&16711680)>>16,(b&65280)>>8,b&255];b=R[0];var h=R[1];R=R[2];b=Number(b);h=Number(h);R=Number(R);if(b!=(b&255)||h!=(h&255)||R!=(R&255))throw Error('"('+b+","+h+","+R+'") is not a valid RGB color');h=b<<16|h<<8|R;return b<16?"#"+(16777216|h).toString(16).slice(1):"#"+h.toString(16)}; g.o1=function(){if(!F3){F3=new Vq(new CVe);const b=u1("client_streamz_web_flush_count",-1);b!==-1&&(F3.X=b)}return F3}; MdH=function(){let b=!1;try{b=!!window.sessionStorage.getItem("session_logininfo")}catch{b=!0}return(g.x("INNERTUBE_CLIENT_NAME")==="WEB"||g.x("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&b}; DO=function(){try{window.sessionStorage.removeItem("stickiness_reload");window.sessionStorage.removeItem("session_logininfo");aA("LOGIN_INFO","");window.sessionStorage.setItem("from_switch_account","1");var b;let h=rKK;h||(h=document.querySelector("#persist_identity"));if(b=h){var R=b.src?(new URL(b.src)).origin:"*";b.contentWindow?.postMessage({action:"clear"},R)}}catch{}}; bM=function(b){b&&(b.startsWith("https://accounts.google.com/AddSession")?DO():b.startsWith("https://accounts.google.com/ServiceLogin")?DO():b.startsWith("https://myaccount.google.com")&&g.II(b).Y.endsWith("/youtubeoptions")&&DO());if(g.x("LOGGED_IN",!0)&&MdH()){var R=g.x("VALID_SESSION_TEMPDATA_DOMAINS",[]);var h=g.B6(window.location.href);h&&R.push(h);h=g.B6(b);g.iR(R,h)||!h&&q$(b,"/")?(R=dD(b),(R=fV(R))?(R=KRK(R),R=(R=g.pX(R)||null)?AQ(R):{}):R=null):R=null;R==null&&(R={});h=R;var K=void 0;MdH()? (K||(K=g.x("LOGIN_INFO")),K?(h.session_logininfo=K,h=!0):h=!1):h=!1;h&&gz(b,R)}}; g.L7D=function(b){var R=window;b=g.z9(b,{});bM(b);b=g.Fr(b+"");R=R.location;b=DI(b);b!==void 0&&(R.href=b)}; g.RD=function(b,R={},h=!1){const K=g.x("EVENT_ID");K&&(R.ei||(R.ei=K));R&&gz(b,R);h||(bM(b),g.L7D(b))}; g.hJ=function(b,R,h,K,I=!1){h&&gz(b,h);h=g.Fr(b);const N=g.M$(h);b!=N&&fD(Error(`Unsafe window.open URL: ${b}`));b=N;R=R||GZ(b).toString(36);try{if(I)return I=b,I=jHD(I),bM(I),g.$w(window,I,R,"attributionsrc")}catch(p){g.qc(p)}bM(b);return g.$w(window,h,R,K)}; wyP=function(b){KY=b}; F7s=function(b){sC=b}; o3T=function(b){$Y=b}; b2D=function(){D5x=$Y=sC=KY=null}; RfK=function(b){b.addEventListener("updateKevlarOrC3Companion",wyP);b.addEventListener("updateEngagementPanelAction",F7s);b.addEventListener("changeEngagementPanelVisibility",o3T);window.addEventListener("yt-navigate-start",b2D)}; KtT=function(){var b=window.location.href;if(g.cg("kevlar_disable_theme_param"))return null;const R=H6(b);if(g.cg("enable_dark_theme_only_on_shorts")&&R?.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{const h=g.zE(b).theme;return hfK.get(h)||null}catch(h){}return null}; sUq=function(b,R){if(R.encryptedTokenJarContents&&(b.G[R.encryptedTokenJarContents]=R,typeof R.expirationSeconds==="string")){const h=Number(R.expirationSeconds);setTimeout(()=>{delete b.G[R.encryptedTokenJarContents]},h*1E3); b.Y&&g.Nj("CONSISTENCY",R.encryptedTokenJarContents,h,void 0,!0)}}; ID=function(b){return b.localStorage===void 0?new Lo("yt-client-location"):b.localStorage}; g.lM=function(b,R=!1,h=!1){var K=g.x("INNERTUBE_CONTEXT");if(!K)return g.X(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};K=g.IT(K);g.cg("web_no_tracking_params_in_shell_killswitch")||delete K.clickTracking;K.client||(K.client={});var I=K.client;I.clientName==="MWEB"&&I.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(I.clientFormFactor=g.x("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");I.screenWidthPoints=window.innerWidth;I.screenHeightPoints=window.innerHeight;I.screenPixelDensity= Math.round(window.devicePixelRatio||1);I.screenDensityFloat=window.devicePixelRatio||1;I.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var N=g.HL();var p="USER_INTERFACE_THEME_LIGHT";N.WY(165)?p="USER_INTERFACE_THEME_DARK":N.WY(174)?p="USER_INTERFACE_THEME_LIGHT":!g.cg("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&&(p="USER_INTERFACE_THEME_DARK");N=KtT()||p;I.userInterfaceTheme= N;if(!R){if(N=H8K())I.connectionType=N;g.cg("web_log_effective_connection_type")&&(N=dZx())&&(K.client.effectiveConnectionType=N)}g.cg("web_log_memory_total_kbytes")&&g.JD.navigator?.deviceMemory&&(K.client.memoryTotalKbytes=`${g.JD.navigator?.deviceMemory*1E6}`);if(g.cg("web_gcf_hashes_innertube")){var l=zsx();l&&(N=l.coldConfigData,p=l.coldHashData,l=l.hotHashData,K.client.configInfo=K.client.configInfo||{},N&&(K.client.configInfo.coldConfigData=N),p&&(K.client.configInfo.coldHashData=p),l&&(K.client.configInfo.hotHashData= l))}N=g.zE(g.JD.location.href);!g.cg("web_populate_internal_geo_killswitch")&&N.internalcountrycode&&(I.internalGeo=N.internalcountrycode);I.clientName==="MWEB"||I.clientName==="WEB"?(I.mainAppWebInfo||(I.mainAppWebInfo={}),I.mainAppWebInfo.graftUrl=g.JD.location.href,g.cg("kevlar_woffle")&&$TT.instance&&(N=$TT.instance,I.mainAppWebInfo.pwaInstallabilityStatus=!N.G&&N.Y?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),I.mainAppWebInfo.webDisplayMode=az(),I.mainAppWebInfo.isWebNativeShareAvailable= navigator&&navigator.share!==void 0):I.clientName==="TVHTML5"&&(!g.cg("web_lr_app_quality_killswitch")&&(N=g.x("LIVING_ROOM_APP_QUALITY"))&&(I.tvAppInfo=Object.assign(I.tvAppInfo||{},{appQuality:N})),N=g.x("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(I.tvAppInfo=Object.assign(I.tvAppInfo||{},{certificationScope:N}));if(!g.cg("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!=="undefined")try{var a=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch{}a=void 0}a&&(I.timeZone=a)}(a= Xh())?I.experimentsToken=a:delete I.experimentsToken;I=CD();N0.instance||(N0.instance=new N0);a=rx(N0.instance.G);K.request={...K.request,internalExperimentFlags:I,consistencyTokenJars:a};!g.cg("web_prequest_context_killswitch")&&(I=g.x("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(K.request.externalPrequestContext=I);a=g.HL();I=a.WY(58);a=a.get("gsml","");K.user={...K.user};I&&(K.user.enableSafetyMode=I);a&&(K.user.lockedSafetyMode=!0);g.cg("warm_op_csn_cleanup")?h&&(R=g.Ui())&&(K.clientScreenNonce=R): !R&&(R=g.Ui())&&(K.clientScreenNonce=R);b&&(K.clickTracking={clickTrackingParams:b});if(b=g.YB("yt.mdx.remote.remoteClient_"))K.remoteClient=b;pY.getInstance().setLocationOnInnerTubeContext(K);try{var v=k_(),B=v.bid;delete v.bid;K.adSignalsInfo={params:[],bid:B};for(const [H,q]of Object.entries(v))v=H,B=q,K.adSignalsInfo.params?.push({key:v,value:`${B}`});if(K.client?.clientName==="TVHTML5"||K.client?.clientName==="TVHTML5_UNPLUGGED"){const H=g.x("INNERTUBE_CONTEXT");H.adSignalsInfo&&(K.adSignalsInfo.advertisingId= H.adSignalsInfo.advertisingId,K.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",K.adSignalsInfo.limitAdTracking=H.adSignalsInfo.limitAdTracking)}}catch(H){g.X(H)}return K}; p9T=function(b,R){if(!b)return!1;var h=g.Z(b,IMB)?.signal;if(h&&R.QP)return!!R.QP[h];if((h=g.Z(b,NaT)?.request)&&R.B5)return!!R.B5[h];for(const K in b)if(R.gf[K])return!0;return!1}; lMx=function(b){const R={"Content-Type":"application/json"};g.x("EOM_VISITOR_DATA")?R["X-Goog-EOM-Visitor-Id"]=g.x("EOM_VISITOR_DATA"):g.x("VISITOR_DATA")&&(R["X-Goog-Visitor-Id"]=g.x("VISITOR_DATA"));R["X-Youtube-Bootstrap-Logged-In"]=g.x("LOGGED_IN",!1);g.x("DEBUG_SETTINGS_METADATA")&&(R["X-Debug-Settings-Metadata"]=g.x("DEBUG_SETTINGS_METADATA"));b!=="cors"&&((b=g.x("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(R["X-Youtube-Client-Name"]=b),(b=g.x("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(R["X-Youtube-Client-Version"]= b),(b=g.x("CHROME_CONNECTED_HEADER"))&&(R["X-Youtube-Chrome-Connected"]=b),(b=g.x("DOMAIN_ADMIN_STATE"))&&(R["X-Youtube-Domain-Admin-State"]=b));(b=g.x("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(R["X-YouTube-Lava-Device-Context"]=b);return R}; aD=function(b){return()=>new b}; vWx=function(b){if(b.length===1)return b[0];var R=aMx.UNKNOWN_INTERFACE;if(R){R=new RegExp(R);for(var h of b)if(R.exec(h))return h}const K=[];Object.entries(aMx).forEach(([I,N])=>{"UNKNOWN_INTERFACE"!==I&&K.push(N)}); h=new RegExp(K.join("|"));b.sort((I,N)=>I.length-N.length); for(const I of b)if(!h.exec(I))return I;return b[0]}; g.vI=function(b){return`/youtubei/v1/${vWx(b)}`}; BI=function(b){return g.YB("ytcsi."+(b||"")+"data_")||Bas(b)}; H2K=function(){const b=BI();b.info||(b.info={});return b.info}; HI=function(b){b=BI(b);b.metadata||(b.metadata={});return b.metadata}; q0=function(b){b=BI(b);b.tick||(b.tick={});return b.tick}; dC=function(b){b=BI(b);if(b.gel){const R=b.gel;R.gelInfos||(R.gelInfos={});R.gelTicks||(R.gelTicks={})}else b.gel={gelTicks:{},gelInfos:{}};return b.gel}; qhq=function(b){b=dC(b);b.gelInfos||(b.gelInfos={});return b.gelInfos}; dTT=function(){const b=dC();b.preLoggedGelInfos||(b.preLoggedGelInfos=[]);return b.preLoggedGelInfos}; fY=function(b){let R=BI(b).nonce;R||(R=g.yM(16),BI(b).nonce=R);return R}; Bas=function(b){const R={tick:{},info:{}};g.kB("ytcsi."+(b||"")+"data_",R);return R}; yx=function(){let b=g.YB("ytcsi.debug");b||(b=[],g.kB("ytcsi.debug",b),g.kB("ytcsi.reference",{}));return b}; tJ=function(b){b=b||"";const R=fMx();if(R[b])return R[b];const h=yx(),K={timerName:b,info:{},tick:{},span:{},jspbInfo:[]};h.push(K);return R[b]=K}; yow=function(b){b=b||"";const R=fMx();R[b]&&delete R[b];const h=yx(),K={timerName:b,info:{},tick:{},span:{},jspbInfo:[]};h.push(K);R[b]=K}; fMx=function(){const b=g.YB("ytcsi.reference");if(b)return b;yx();return g.YB("ytcsi.reference")}; AJ=function(b){return tGw[b]||"LATENCY_ACTION_UNKNOWN"}; zfD=function(b,R,h={}){var K=Math.round(h.timestamp||(0,g.c)());yR(b,1,K{const K=(0,g.c)();for(const I in UC)UC[I]&&K-UC[I].time>6E4&&delete UC[I];b&&(b.G=0)},5E3)); return h.count>5?(h.count===6&&Math.random()*1E5<1&&(h=new g.A$("CSI data exceeded logging limit with key",R.split("_")),R.indexOf("plev")>=0||g.kJ(h)),!0):!1}; Gks=function(){var b;g.cg("csi_use_performance_navigation_timing")?(b=gC?.getEntriesByType?.("navigation")?.[0]?.toJSON?.())?(b.requestStart=EC(b.requestStart),b.responseEnd=EC(b.responseEnd),b.redirectStart=EC(b.redirectStart),b.redirectEnd=EC(b.redirectEnd),b.domainLookupEnd=EC(b.domainLookupEnd),b.connectStart=EC(b.connectStart),b.connectEnd=EC(b.connectEnd),b.responseStart=EC(b.responseStart),b.secureConnectionStart=EC(b.secureConnectionStart),b.domainLookupStart=EC(b.domainLookupStart),b.isPerformanceNavigationTiming= !0):b=gC.timing:b=g.cg("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(gC.timing)):gC.timing;return b}; EC=function(b){return Math.round(Tm()+b)}; Tm=function(){return(g.cg("csi_use_time_origin")||g.cg("csi_use_time_origin_tvhtml5"))&&gC.timeOrigin?Math.floor(gC.timeOrigin):gC.timing.navigationStart}; gWw=function(){const b=dTT(),R=qhq();var h=void 0;for(var K=0;K{H2(R,l);H2(N,l);p=!0}; for(const l of b)I(l);p&&kY(N)}}; YY=function(b,R){JJ("_start",b,R)}; kY=function(b,R){if(!g.cg("web_csi_action_sampling_enabled")||!BI(R).actionDisabled){var h=tJ(R||"");H2(h.info,b);b.loadType&&(h=b.loadType,HI(R).loadType=h);H2(qhq(R),b);h=fY(R);R=BI(R).cttAuthInfo;zm().info(b,h,R)}}; WtK=function(){return(nQ().resolve(UM(dI))?.g0()?.loggingHotConfig?.csiConfig?.debugTicks??[]).map(b=>Object.values(b)[0])}; JJ=function(b,R,h){if(!g.cg("web_csi_action_sampling_enabled")||!BI(h).actionDisabled){var K=fY(h),I;if(I=g.cg("web_csi_debug_sample_enabled")&&K){nQ().resolve(UM(dI))?.g0()&&!Shx&&(Shx=!0,JJ("gcfl",(0,g.c)(),h));I=nQ().resolve(UM(dI))?.g0()?.loggingHotConfig?.csiConfig?.debugSampleWeight||0;var N;if(N=I!==0)b:{N=WtK();if(N.length>0)for(let l=0;l{R.name.startsWith("mark_")&&gC.clearMarks?.(R.name)})}; TaT=function(){switch(rre()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}}; Jox=function(b){const R={},h=(K,I,N)=>{I=I.match("_rid")?I.split("_rid")[0]:I;typeof N==="number"&&(N=JSON.stringify(N));K.requestIds?K.requestIds.push({endpoint:I,id:N}):K.requestIds=[{endpoint:I,id:N}]}; for(const [K,I]of Object.entries(b)){b=K;const N=I;switch(b){case "GetBrowse_rid":h(R,b,N);break;case "GetGuide_rid":h(R,b,N);break;case "GetHome_rid":h(R,b,N);break;case "GetPlayer_rid":h(R,b,N);break;case "GetSearch_rid":h(R,b,N);break;case "GetSettings_rid":h(R,b,N);break;case "GetTrending_rid":h(R,b,N);break;case "GetWatchNext_rid":h(R,b,N);break;case "yt_red":R.isRedSubscriber=!!N;break;case "yt_ad":R.isMonetized=!!N}}return R}; kk3=function(b,R){b=document.querySelector(b);if(!b)return!1;var h="";const K=b.nodeName;K==="SCRIPT"?(h=b.src,h||(h=b.getAttribute("data-timing-href"))&&(h=window.location.protocol+h)):K==="LINK"&&(h=b.href);Ig(document)&&b.setAttribute("nonce",Ig(document));return h?(b=gC.getEntriesByName(h))&&b[0]&&(b=b[0],h=Tm(),JJ("rsf_"+R,h+Math.round(b.fetchStart)),JJ("rse_"+R,h+Math.round(b.responseEnd)),b.transferSize!==void 0&&b.transferSize===0)?!0:!1:!1}; Yhs=function(){const b=window.location.protocol;var R=gC.getEntriesByType("resource");R=g.lR(R,h=>h.name.indexOf(`${b}//fonts.gstatic.com/s/`)===0); (R=vp(R,(h,K)=>K.duration>h.duration?K:h,{duration:0}))&&R.startTime>0&&R.responseEnd>0&&(JJ("wffs",EC(R.startTime)),JJ("wffe",EC(R.responseEnd)))}; efD=function(b,R,h){gC&&gC.measure&&(b.startsWith("measure_")||(b="measure_"+b),h?gC.measure(b,R,h):R?gC.measure(b,R):gC.measure(b))}; O2w=function(b){var R=fw("aft",b);if(R)return R;R=g.x((b||"")+"TIMING_AFT_KEYS",["ol"]);const h=R.length;for(let K=0;Kh.name==="first-paint"))return EC(b.startTime)}let R; g.cg("csi_use_performance_navigation_timing")?R=gC.getEntriesByType("first-paint")[0].startTime:R=gC.timing.gV5;return R?Math.max(0,R):0}; OC=function(b){Bas(b);Z23();EWe();b||(g.x("TIMING_ACTION")&&aA("PREVIOUS_ACTION",g.x("TIMING_ACTION")),aA("TIMING_ACTION",""))}; coe=function(){var b=["pbs","pbu"];g.dK(()=>{tJ("").info.actionType="watch";b&&aA("TIMING_AFT_KEYS",b);aA("TIMING_ACTION","watch");var R=Jox(g.x("TIMING_INFO",{}));Object.keys(R).length>0&&kY(R);R={isNavigation:!0,actionType:AJ(g.x("TIMING_ACTION"))};var h=g.x("PREVIOUS_ACTION");h&&(R.previousAction=AJ(h));if(h=g.x("CLIENT_PROTOCOL"))R.httpProtocol=h;if(h=g.x("CLIENT_TRANSPORT"))R.transportProtocol=h;(h=g.Ui())&&h!=="UNDEFINED_CSN"&&(R.clientScreenNonce=h);h=TaT();if(h===1||h===-1)R.isVisible=!0; h=HI().loadType==="cold";var K=H2K();h||(h=K.yt_lt==="cold");if(h){R.loadType="cold";h=H2K();K=Gks();let p=Tm();const l=g.x("CSI_START_TIMESTAMP_MILLIS",0);l>0&&!g.cg("embeds_web_enable_csi_start_override_killswitch")&&(p=l);p&&(JJ("srt",K.responseStart),h.prerender!==1&&YY(p));h=PX3();h>0&&JJ("fpt",h);h=Gks();h.isPerformanceNavigationTiming&&kY({performanceNavigationTiming:!0},void 0);JJ("nreqs",h.requestStart,void 0);JJ("nress",h.responseStart,void 0);JJ("nrese",h.responseEnd,void 0);h.redirectEnd- h.redirectStart>0&&(JJ("nrs",h.redirectStart,void 0),JJ("nre",h.redirectEnd,void 0));h.domainLookupEnd-h.domainLookupStart>0&&(JJ("ndnss",h.domainLookupStart,void 0),JJ("ndnse",h.domainLookupEnd,void 0));h.connectEnd-h.connectStart>0&&(JJ("ntcps",h.connectStart,void 0),JJ("ntcpe",h.connectEnd,void 0));h.secureConnectionStart>=Tm()&&h.connectEnd-h.secureConnectionStart>0&&(JJ("nstcps",h.secureConnectionStart,void 0),JJ("ntcpe",h.connectEnd,void 0));gC&&"getEntriesByType"in gC&&Yhs();h=[];if(document.querySelector&& gC&&gC.getEntriesByName)for(I in Qx)Qx.hasOwnProperty(I)&&(K=Qx[I],kk3(I,K)&&h.push(K));var I=h;if(I.length>0){R.resourceInfo=[];for(var N of I)R.resourceInfo.push({resourceCache:N})}}kY(R);gWw();ea(!0);N=g.x("TIMING_ACTION");g.YB("ytglobal.timingready_")&&N&&xY()&&O2w()&&nWB()})()}; uE3=function(){var b={};g.dK(()=>{xY()&&mv("aa",void 0,void 0);yow();OC();ea(!1);b.cttAuthInfo&&(BI().cttAuthInfo=b.cttAuthInfo);aA("TIMING_AFT_KEYS",[]);b.CnJ?g.PI({loadType:"hot"}):g.PI({loadType:"warm"});aA("TIMING_ACTION","");delete g.x("TIMING_INFO",{}).yt_lt;g.dK(YY)(b.startTime,void 0)})()}; ZC=function(b,R={}){g.dK(()=>{X9x(b);var h=R.sampleRate;if(!g.cg("web_csi_action_sampling_enabled")||h===void 0||h<=1)h=!1;else{var K=fY(b);h=nlx(K)%h!==0}h&&(BI(b).actionDisabled=!0);tJ(b||"").info.actionType=b;R.cttAuthInfo&&(BI(b).cttAuthInfo=R.cttAuthInfo);aA(b+"TIMING_ACTION",b);g.dK(YY)(R.startTime,b);h={actionType:AJ(b)};R.Gz5&&(h.previousAction=AJ(g.x("TIMING_ACTION")));(K=g.Ui())&&K!=="UNDEFINED_CSN"&&(h.clientScreenNonce=K);g.PI(h,b);ea(!0,b)})()}; X9x=function(b){g.dK(()=>{xY(b)&&mv("aa",void 0,b);yow(b);OC(b)})()}; xY=function(b){return g.dK(()=>cI("_start",b))()}; g.PI=function(b,R,h=!1){g.dK(kY)(b,R,h)}; mv=function(b,R,h){return g.dK(JJ)(b,R,h)}; VGP=function(b){g.dK(efD)("action_finished",b,void 0)}; cI=function(b,R){return g.dK(()=>{const h=q0(R);return b in h})()}; MGq=function(b){if(!g.cg("universal_csi_network_ticks"))return"";b=H6(b)||"";const R=Object.keys(CXP);for(let h=0;h{}; const R=CXP[b];return R?(uM(R),()=>{var h=g.cg("universal_csi_network_ticks")?(h=roK[b])?uM(h):!1:!1;return h}):()=>{}}; uM=function(b,R,h){return g.dK(()=>{if(cI(b,h))return!1;mv(b,R,h);return!0})()}; XV=function(b,R,h){g.dK(()=>{if(!xY(h)||cI(b,h))return!1;mv(b,R,h);return!0})()}; w9H=function(){g.dK(()=>{const b=fY();requestAnimationFrame(()=>{setTimeout(()=>{b===fY()&&mv("ftl",void 0,void 0)},0)})})()}; FtP=function(b,R,h,K,I){if(oD.instance!==void 0){if(K=oD.instance,b=[b!==K.V,R!==K.nN,h!==K.G,I!==K.X,!1,!1,!1],b.some(N=>N))throw new g.A$("InnerTubeTransportService is already initialized",b); }else oD.instance=new oD(b,R,h,K,I)}; oWB=function(b,R){a:{b=b.V;var h=g.Z(R,IMB)?.signal;if(h&&b.QP&&(h=b.QP[h])){var K=h();break a}if((h=g.Z(R,NaT)?.request)&&b.B5&&(h=b.B5[h])){K=h();break a}for(K in R)if(b.gf[K]&&(R=b.gf[K])){K=R();break a}K=void 0}if(K!==void 0)return Promise.resolve(K)}; DTB=function(b,R,h){b=b.G.RX(R?.Yg?.identity||WW,{sessionIndex:R?.Yg?.sessionIndex});return{...lMx(h),...b}}; bUx=async function(b,R,h){b=await g.Xp(b.G.RX(R?.Yg?.identity||WW,{sessionIndex:R?.Yg?.sessionIndex}));return Promise.resolve({...lMx(h),...b})}; IG3=async function(b,R,h,K=()=>{}){var I=R.config?.Or?.gw; if(I&&b.X&&b.X.has(I)&&!R.config?.Or?.disableCache){var N=await b.X.get(I);if(N&&!N.isExpired())return K=R7x(N),g.cg("web_process_response_store_responses")&&!N.isProcessed()&&(h7B(b,K,R),await K2x(b.X,I)),Promise.resolve(K)}await svB(R);(I=R.config?.requestKey)&&b.Y.has(I)?h=b.Y.get(I):(N=JSON.stringify(R.W3),R.ly={...R.ly,headers:{...(R.ly?.headers??{}),...h}},h={...R.ly},R.ly.method==="POST"&&(h={...h,body:N}),R.config?.Hi&&mv(R.config.Hi),h=b.nN.fetch(R.input,h,R.config),I&&b.Y.set(I,h));(h=await h)&& g.cg("web_streaming_player")&&Array.isArray(h)&&(h=h[0].playerResponse);if(h&&"error"in h&&h?.error?.details){N=h.error.details;for(const p of N)(N=p["@type"])&&$qx.indexOf(N)>-1&&(delete p["@type"],h=p)}I&&b.Y.has(I)&&b.Y.delete(I);R.config?.z$&&mv(R.config.z$);h7B(b,h,R);R.config?.Xd&&mv(R.config.Xd);K();return h||void 0}; DC=function(b,R,h){const K=oWB(b,R);return K?new g.Pj(async(I,N)=>{const p=(await K).S(R,h,WW);p?(bM(p.input),N=p.ly?.mode==="cors"?"cors":void 0,N=b.G.Yq?DTB(b,p.config,N):await bUx(b,p.config,N),I(IG3(b,p,N))):N(new g.A$("Error: Failed to build request for command.",R))}):Vb(new g.A$("Error: No request builder found for command.",R))}; g.bn=function(b,R,h,K,I={Yg:{identity:WW}}){let N=()=>{}; N=Lt3(MGq(h));R.context||(R.context=g.lM(K,!0));return new g.Pj(async p=>{var l=a$(h);l=Wg(l)?"same-origin":"cors";l=b.G.Yq?DTB(b,I,l):await bUx(b,I,l);var a=ncH(a$(h));a={input:a,ly:vu(a),W3:R,config:I};p(IG3(b,a,l,N))})}; svB=async function(b){if(b?.W3?.context){b=b.W3.context;for(const R of[])await R.cU6(b)}}; h7B=function(b,R,h){if(R&&!R?.sequenceMetaData?.skipProcessing&&b.S)for(const K of NqK)b.S[K]&&b.S[K].handleResponse(R,h)}; R7x=function(b){return{...b.data.innertubeResponse,cacheMetadata:{isCacheHit:!0}}}; K2x=async function(b,R){const h=b.G.get(R);h&&(h.entryData.isProcessed=!0,await pje(b,R,h.entryData))}; pje=async function(b,R,h){var K=b.Y;if(h.expireTimestampMs){K=Number(h.expireTimestampMs)-Math.round((0,g.c)());const I=u1("mweb_override_response_store_expiration_ms");I>0&&I{b.remove(R)},K); b.G.set(R,{entryData:h,timer:K})}; aGx=function(b,R){if(b=b.G.get(R))return new lG3(b.entryData)}; vXH=function(b,R){const h=b.G.get(R);h&&(clearTimeout(h.timer),b.G.delete(R))}; Rr=function(b,R,h){if(!g.cg("state_tags_killswitch")){var K=new BqK(R);if((K.G?.stateTagsModified||[]).length>0){var I=b.G.WM();for(var N of I){var p=aGx(b.G,N);if(p){a:{I=K.G?.stateTagsModified||[];p=(new BqK(R7x(p))).G?.relevantStateTags||[];for(var l of p)if(l.stateTag!=null&&I.includes(l.stateTag)&&l.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){I=!0;break a}I=!1}I&&vXH(b.G,N)}}}}K=R.responseContext?.maxAgeSeconds;if(h&&K&&Number(K)>0){K=Number(K)*1E3;N=Math.round((0,g.c)()); l=N.toString();R={innertubeResponse:R,serverDateTimestampMs:l,lastModifiedTimestampMs:l,expireTimestampMs:(N+K).toString(),isProcessed:!0};if(K=g.x("INNERTUBE_CONTEXT_CLIENT_NAME"))R.clientName=K;b.G.put(h,new lG3(R))}}; HUD=function(b,R,h){if(b.G){const K=H6(SX(R,"key"))||"/UNKNOWN_PATH";b.G.start(K)}b=h;g.cg("wug_networking_gzip_request")&&(b=wvP(h));return new window.Request(R,b)}; g.Nh=function(b,R,h){if(!hj){const p=nQ();GR(p,{YG:qqe,Zz:dqw});if(h?.OA){GR(p,{YG:K9,gr:g.x("INNERTUBE_CONTEXT_CLIENT_NAME",h.clientInterface)});GR(p,{YG:sT,gr:5184E6});GR(p,{YG:$v,Zz:fGq,[gy]:[K9,sT]});GR(p,{YG:Ir,Zz:yYx});var K=p.resolve(Ir),I=window;if(I.ytInitialVideoId){var N=I.ytInitialVideoId;I.ytInitialPlayerResponse&&Rr(K,I.ytInitialPlayerResponse,Bu("player",{videoId:N}));I.ytInitialWatchNextResponse&&Rr(K,I.ytInitialWatchNextResponse,Bu("next",{videoId:N}));I.ytInitialReelItemWatchResponse&& Rr(K,I.ytInitialReelItemWatchResponse,Bu("reel_item_watch",{videoId:N}))}}K={gf:{feedbackEndpoint:aD(tyB),modifyChannelNotificationPreferenceEndpoint:aD(jv2),playlistEditEndpoint:aD(AYT),shareEntityEndpoint:aD(iUw),subscribeEndpoint:aD(z7x),unsubscribeEndpoint:aD(UqD),webPlayerShareEntityServiceEndpoint:aD(GDT)}};I=pY.getInstance();N={};I&&(N.client_location=I);h?.OA&&(I=p.resolve(Ir),N.store=I);b===void 0&&(b=NPB());R===void 0&&(R=p.resolve(qqe));FtP(K,R,b,N,h?.OA?p.resolve($v):void 0);GR(p,{YG:gXx, gr:oD.instance});hj=p.resolve(gXx)}return hj}; p9=function(b){const R={};b=b.split("&");for(const h of b)b=h.split("="),b.length===2&&(R[b[0]]=b[1]);return R}; W23=async function(){var b=window;await iX(ln());const R=b.bgevmc;if(!R)throw Error("BGE Controls not exposed");return{pause:()=>{R.p()}, resume:()=>{R.r()}, checkForRefresh:()=>R.cr()}}; ln=function(){return g.cg("bg_st_hr")?"havuokmhhs-0":`${"havuokmhhs"}-${Math.floor(globalThis.performance?.timeOrigin||0)}`}; ar=function(b){window.bgens=b}; nXK=function(){return new Promise(b=>{const R=window;R.ntpevasrs!==void 0?b(new Sq2(R.ntpevasrs)):(R.ntpqfbel===void 0&&(R.ntpqfbel=[]),R.ntpqfbel.push(h=>{b(new Sq2(h))}))})}; JYT=function(){if(nX()){var b=g.x("PLAYER_VARS",{});if(g.Kj(b,"privembed",!1)!="1"&&!Ykq(b)){var R=()=>{vF=!0;"google_ad_status"in window?aA("DCLKSTAT",1):aA("DCLKSTAT",2)}; try{const h=Ig(document);g.l$(EXP,R,h)}catch(h){}Tqe.push(g.X7.Hg(()=>{if(!(vF||"google_ad_status"in window)){try{if(EXP.toString()&&R){var h=`${g.VH(R)}`,K=Yd3[h];K&&g.Nt(K)}}catch(I){}vF=!0;aA("DCLKSTAT",3)}},5E3))}}}; BF=function(){const b=Number(g.x("DCLKSTAT",0));return isNaN(b)?0:b}; HF=function(b,R){b.G=R}; kDs=async function(b){let R;if(g.JD.ytAtP&&!g.cg("ytatp_ks")){var h=await g.JD.ytAtP;delete g.JD.ytAtP;let I=h?.R;R=h?.T;I?b.Y.G(1,b.X++):(b.Y.G(2,b.X++),h=await qh(b,d5(R,null)),I=JSON.stringify(h));g.JD.ytAtRC?g.JD.ytAtRC(I):g.kJ(Error("ytAtRC not defined for ytAtP."))}else g.JD.ytAtRC?iQ(async()=>{R=g.JD.ytAtT;delete g.JD.ytAtT;if(g.JD.ytAtRC){b.Y.G(2,b.X++);var I=await qh(b,d5(R,null));g.JD.ytAtRC&&g.JD.ytAtRC(JSON.stringify(I))}else b.Y.G(6,b.X++)},2,u1("att_init_delay",0)):(R=g.JD.ytAtT,delete g.JD.ytAtT, b.Y.G(1,b.X++)); h=await nXK();h.bindInnertubeChallengeFetcher(I=>{b.Y.G(3,b.X++);return qh(b,d5(R,I))}); h.registerChallengeFetchedCallback(I=>{I=I.challenge;if(!I)throw Error("BGE_MACR");I={challenge:I,Ny:p9(I),GJ:K,bgChallenge:new sW};I=Promise.resolve(I);b.G=I}); const K=await iX(ln());h=h.getLatestChallengeResponse().challenge;if(!h)throw Error("BGE_MACIL");return{challenge:h,Ny:p9(h),GJ:K,bgChallenge:new sW}}; f9=async function(b){var R=d5(void 0,Li().G);try{var h=await YqH(b,R)}catch(l){return g.kJ(Error("Failed to fetch attestation challenge after 5 attempts; not retrying for 24h.")),e7T(b,864E5),{challenge:"",Ny:{},GJ:void 0,bgChallenge:void 0}}R=h.mS;const K=h.eZ;e7T(b,(Number(K.t)||7200)*1E3);b=void 0;if("c1a"in K&&h.bgChallenge){h=h.bgChallenge;var I=new sW;if(h.interpreterJavascript){var N=hQ(h.interpreterJavascript);N=li(N).toString();var p=new FD;tV(p,6,N);NP(I,FD,1,p,B$)}else h.interpreterUrl&& (N=KD(h.interpreterUrl),N=VX(N).toString(),p=new oG,tV(p,4,N),NP(I,oG,2,p,B$));h.interpreterHash&&jZ(I,3,h.interpreterHash,B$);h.program&&jZ(I,4,h.program,B$);h.globalName&&jZ(I,5,h.globalName,B$);h.clientExperimentsStateBlob&&jZ(I,7,h.clientExperimentsStateBlob,B$);try{await Dg(Li(),I)}catch(l){return g.kJ(l),{challenge:R,Ny:K,GJ:b,bgChallenge:I}}try{b=new Hc({challenge:I,BP:{sV:"aGIf"}}),await b.cL}catch(l){g.kJ(l),b=void 0}}return{challenge:R,Ny:K,GJ:b,bgChallenge:I}}; qh=async function(b,R){const h=b.V;if(!h||h.kV())return OUP(b,R);XV("att_pna",void 0,"attestation_challenge_fetch");return new Promise(K=>{h.Yt("publicytnetworkstatus-online",()=>{OUP(b,R).then(K)})})}; YqH=async function(b,R){let h=void 0,K=0;for(;K<5;){if(K>0){const I=1E3*Math.pow(2,K-1)+Math.random()*1E3;await new Promise(N=>{g.z6(0,()=>{N(void 0)},I)})}try{b.Y.G(4,b.X++); const I=await qh(b,R);return QvD(I)}catch(I){h=I,I instanceof Error&&g.kJ(I)}K++}throw h;}; e7T=function(b,R){const h=Date.now()+R,K=async()=>{const I=h-Date.now();I<1E3?await xqD(b):iQ(K,0,Math.min(I,6E4))}; K()}; var mqB=function(b,R,h,K,I){return t1[f[6]](this,47,b,R,h,K,I)}; OUP=async function(b,R){ar(2);try{const h=await qh(b.network,R);h?h.challenge&&!h.bgChallenge?ar(1):ar(4):ar(3);return h}catch(h){ar(3)}}; QvD=function(b){if(!b)throw Error("Fetching Attestation challenge returned falsy");if(!b.challenge)throw Error("Missing Attestation challenge");const R=b.challenge,h=p9(R);if("c1a"in h&&(!b.bgChallenge||!b.bgChallenge.program))throw Error("Expected bg challenge but missing.");return{...b,mS:R,eZ:h}}; xqD=async function(b){const R=await Promise.race([b.G,null]);var h=f9(b);b.G=h;R?.GJ?.dispose()}; P5T=function(b,R){return new Promise(h=>{g.z6(0,()=>{h(R())},b)})}; d5=function(b,R){const h={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};b&&(h.eacrToken=b);R&&(h.interpreterHash=R);return h}; ZUK=function(){return new Promise(b=>{const R=window;R.attmp!==void 0?b(R.attmp):(R.attmq===void 0&&(R.attmq=[]),R.attmq.push(h=>{b(h)}))})}; g.cYs=async function(b,R){if(g.cg("attmusi")&&g.cg("attmusi_ue")){var h=window;return h.attmp!==void 0?h.attmp.s("ENGAGEMENT_TYPE_PLAYBACK",b,R):(await ZUK()).s("ENGAGEMENT_TYPE_PLAYBACK",b,R)}return(h=(h=g.YB("yt.aba.att"))?h:yA.instance!==void 0?yA.instance.S.bind(yA.instance):null)?h("ENGAGEMENT_TYPE_PLAYBACK",b,R):Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"})}; g.upB=async function(){if(g.cg("attmusi")&&g.cg("attmusi_ue"))return window.attmp===void 0?!1:(await ZUK()).ir();var b;return(b=(b=g.YB("yt.aba.att2"))?b:yA.instance!==void 0?yA.instance.J.bind(yA.instance):null)?b():Promise.resolve(!1)}; Vyx=function(b,R){var h=g.YB("ytDebugData.callbacks");h||(h={},g.kB("ytDebugData.callbacks",h));if(g.cg("web_dd_iu")||XjT.includes(b))h[b]=R}; MyT=function(b){let R="";for(let K=0;K=0||G9(b,0,"gad_source",b.search(gD))>=0}; NS2=function(b,R){var h=nQ().resolve(Igx);if($fD(R)){var K=W6(R,"gclid");R={handleEvent:I=>{b&&!b.closed&&typeof b.postMessage==="function"&&I&&I.origin&&I.source===b&&I.data&&I.data.action==="gcl_setup"&&b.postMessage({action:"gcl_transfer",...(K&&{gclid:K}),gadSource:2},I.origin)}}; for(const [I,N]of h.G){const p=I,l=N;if(p.closed)try{window.removeEventListener("message",l),h.G.delete(p)}catch(a){g.X(a)}}b&&h.G.size<15&&(h.G.set(b,R),window.addEventListener("message",R))}}; tj=function(b,R,h){if(!R)return b.length>=1?b[b.length-1]:null;for(const K of b)if(K.width&&K.height&&(h&&K.width>=R||!h&&K.height>=R))return K;for(R=b.length-1;R>=0;R--)if(h&&b[R].width||!h&&b[R].height)return b[R];return b[0]}; lgT=function(b,R,h,K,I,N){h?(b.Na(2),g.l$(g.IA(h),()=>{if(window.trayride)pd3(b,K,I);else{b.Na(3);const p=kdx(h),l=document.getElementById(p);l&&(TWB(p),l.parentNode.removeChild(l));g.kJ(new g.A$("BL:ULB",`${h}`))}},N)):R?(N=g.jO("SCRIPT"),R instanceof NE?(N.textContent=li(R),ag(N)):N.textContent=R,N.nonce=Ig(document),document.head.appendChild(N),document.head.removeChild(N),window.trayride?pd3(b,K,I):(b.Na(4),g.kJ(new g.A$("BL:ULBJ")))):g.kJ(new g.A$("BL:ULV"))}; pd3=function(b,R,h){b.Na(5);const K=!!b.y0&&agB.includes(g.B6(b.y0)||"");try{const I=new Hc({program:R,globalName:"trayride",BP:{disable:!g.cg("att_web_record_metrics")||!g.cg("att_skip_metrics_for_cookieless_domains_ks")&&K,sV:"aGIf"}});I.cL.then(()=>{b.Na(6);h&&h(R)}); b.G(I)}catch(I){b.Na(7),I instanceof Error&&g.kJ(I)}}; jm=function(){const b=g.YB("yt.abuse.playerAttLoader");return b&&["bgvma","bgvmb","bgvmc"].every(R=>R in b)?b:null}; v5s=function(b,R,h){let K=!1;for(const [I]of b.Wg.entries()){const N=I;N.slotType==="SLOT_TYPE_PLAYER_BYTES"&&N.jY==="core"&&(K=!0)}if(K){a:if(!h){for(const [I,N]of b.Wg.entries())if(b=I,h=N,b.slotType==="SLOT_TYPE_IN_PLAYER"&&b.jY==="core"){h=h.layoutId;break a}h=void 0}h?R.zs(h):u2("No triggering layout ID available when attempting to mute.")}}; Aj=function(b,R,h){b.HY();b.G.get(R)&&g.X(Error(`Extension name ${R} already registered`));b.G.set(R,h)}; qHx=function(b,R=[],h,K){b.HY();const I=[],N=[];for(const p of R)g.Z(p,BSx)||g.Z(p,Hi3)?I.push(p):N.push(p);for(const p of I)zM(b,p,h,K);for(const p of N)zM(b,p,h,K)}; dfB=function(b,R){Aj(b,R.Bq(),(h,K,I)=>{R.H_(h,K,I)})}; zM=function(b,R,h,K){b.HY();R.loggingUrls&&fge(b,"loggingUrls",R.loggingUrls,h,K);for(const [I,N]of Object.entries(R)){R=I;const p=N;R==="openPopupAction"?UT(b.Op.get(),"innertubeCommand",{openPopupAction:p}):R==="confirmDialogEndpoint"?UT(b.Op.get(),"innertubeCommand",{confirmDialogEndpoint:p}):ytP.hasOwnProperty(R)||fge(b,R,p,h,K)}}; fge=function(b,R,h,K,I){if((b=b.G.get(R))&&typeof b==="function")try{b(h,K,I)}catch(N){g.X(N)}else R=new g.A$("Unhandled field",R),g.kJ(R)}; g5=function(b,R,h){if(h&&!h.includes(b.layoutType))return!1;for(const K of R)if(!GM(b.clientMetadata,K))return!1;return!0}; tSB=function(b,R){switch(b){case "TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL":return 0;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED":return 1;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED":return 2;case "TRIGGER_CATEGORY_SLOT_EXPIRATION":return 3;case "TRIGGER_CATEGORY_SLOT_FULFILLMENT":return 4;case "TRIGGER_CATEGORY_SLOT_ENTRY":return 5;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED":return 6;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED":return 7;default:return R(b),8}}; GM=function(b,R){return b.G.has(R)}; WF=function(b){return Array.from(b.G.keys())}; Sm=function(b,R,h){if(h&&h!==b.slotType)return!1;for(const K of R)if(!GM(b.clientMetadata,K))return!1;return!0}; At2=function(b){return jGe.get(b)?.Ga||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; ET=function(b,R){const h={type:R.slotType,controlFlowManagerLayer:iiT.get(R.jY)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};R.slotEntryTrigger&&(h.entryTriggerType=R.slotEntryTrigger.triggerType);R.slotPhysicalPosition!==1&&(h.slotPhysicalPosition=R.slotPhysicalPosition);if(b){h.debugData={slotId:R.slotId};if(b=R.slotEntryTrigger)h.debugData.slotEntryTriggerData=n9(b);b=R.slotFulfillmentTriggers;h.debugData.fulfillmentTriggerData=[];for(const K of b)h.debugData.fulfillmentTriggerData.push(n9(K));R= R.slotExpirationTriggers;h.debugData.expirationTriggerData=[];for(const K of R)h.debugData.expirationTriggerData.push(n9(K))}return h}; zvB=function(b,R){const h={type:R.layoutType,controlFlowManagerLayer:iiT.get(R.jY)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};b&&(h.debugData={layoutId:R.layoutId});return h}; n9=function(b,R){const h={type:b.triggerType};R!=null&&(h.category=R);b.triggeringSlotId!=null&&(h.triggerSourceData||(h.triggerSourceData={}),h.triggerSourceData.associatedSlotId=b.triggeringSlotId);b.triggeringLayoutId!=null&&(h.triggerSourceData||(h.triggerSourceData={}),h.triggerSourceData.associatedLayoutId=b.triggeringLayoutId);return h}; Ufe=function(b,R,h,K){R={opportunityType:R};b&&(K||h)&&(K=g.an(K||[],I=>ET(b,I)),R.debugData={...(h&&h.length>0?{associatedSlotId:h}:{}), ...(K.length>0?{slots:K}:{})});return R}; Jj=function(b,R){return h=>G1q(TM(b),R.slotId,R.slotType,R.slotPhysicalPosition,R.jY,R.slotEntryTrigger,R.slotFulfillmentTriggers,R.slotExpirationTriggers,h.layoutId,h.layoutType,h.jY)}; G1q=function(b,R,h,K,I,N,p,l,a,v,B){return{adClientDataEntry:{slotData:ET(b,{slotId:R,slotType:h,slotPhysicalPosition:K,jY:I,slotEntryTrigger:N,slotFulfillmentTriggers:p,slotExpirationTriggers:l,clientMetadata:new kv([])}),layoutData:zvB(b,{layoutId:a,layoutType:v,jY:B,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],IT:new Map,clientMetadata:new kv([]),qj:{}})}}}; TM=function(b){return b.G||b.VX.get().A.L().N("html5_force_debug_data_for_client_tmp_logs")}; Yv=function(b,R){b.Y.add(R)}; em=function(b,R){b.Y.delete(R)}; un=function(b,R,h){if(OT(b.G,R)){a:switch(QA(b.G,R).G){case "exit_requested":var K=!0;break a;default:K=!1}if(!K)a:switch(QA(b.G,R).G){case "rendering_stop_requested":K=!0;break a;default:K=!1}if(K&&(QA(b.G,R).S=!0,!h))return;if(xv(QA(b.G,R)))QA(b.G,R).S=!0,g5P(b,R,h);else{a:switch(QA(b.G,R).V){case "fill_requested":h=!0;break a;default:h=!1}if(h)QA(b.G,R).S=!0,OT(b.G,R)&&(mD(b.cH,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",R),b=QA(b.G,R),b.V="fill_cancel_requested",b.D.nL());else{h= PF(b.G,R);(K=b.VX.get().A.L().experiments.O9("h5_enable_layout_unscheduling_events"))&&(h?b.UD(R,h):u2(Error("Layout is null for LayoutUnscheduled event."),R,h,void 0,!1));mD(b.cH,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",R);const l=QA(b.G,R);var I=R.slotEntryTrigger;const a=l.nR.get(I.triggerId);a&&(a.Zd(I),l.nR.delete(I.triggerId));for(var N of R.slotFulfillmentTriggers)if(I=l.G6.get(N.triggerId))I.Zd(N),l.G6.delete(N.triggerId);for(var p of R.slotExpirationTriggers)if(N=l.U.get(p.triggerId))N.Zd(p), l.U.delete(p.triggerId);l.layout!=null&&(p=l.layout,Zd(l,p.layoutExitNormalTriggers),Zd(l,p.layoutExitSkipTriggers),Zd(l,p.layoutExitMuteTriggers),Zd(l,p.layoutExitUserInputSubmittedTriggers),Zd(l,p.layoutExitUserCancelledTriggers));l.D=void 0;l.Y!=null&&(l.Y.release(),l.Y=void 0);l.X!=null&&(l.X.release(),l.X=void 0);p=b.G;QA(p,R)&&(p=cF(p,`${R.slotType}_${R.slotPhysicalPosition}`))&&p.delete(R.slotId);mD(b.cH,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",R);for(const v of b.Y)v.Zs(R),h&&!K&&v.UD(R,h)}}}}; VA=function(b,R){if(OT(b.G,R)){QA(b.G,R).J=!1;var h=XI;R=QA(b.G,R);const K=[...R.K];z3(R.K);h(b,K)}}; WrP=function(b,R){OT(b.G,R)&&xv(QA(b.G,R))&&PF(b.G,R)&&!C9(b.G,R)&&(Mh(b.cH,"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",R,PF(b.G,R)??void 0),b=QA(b.G,R),b.G!=="entered"&&r5(b.slot,b.G,"enterLayoutForSlot"),b.G="rendering",b.X.startRendering(b.layout))}; w5=function(b,R,h,K){u2(h,R,void 0,void 0,h.G2);h.wh?L9(b.cH,K,h.wh,R):u2("adsClientErrorMessage is missing.",R);un(b,R,!0)}; SHs=function(b,R,h){if(OT(b.G,R))if(QA(b.G,R).V=h?"filled":"not_filled",h===null){Mh(b.cH,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",R);for(var K of b.Y)K.aB(R);un(b,R,!1)}else{Mh(b.cH,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",R,h);Mh(b.cH,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",R,h);if(K=h.Sb??h.clientMetadata.rp("metadata_type_sub_layouts"))for(const p of K)Mh(b.cH,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",R,p);for(const p of b.Y)p.Ds(R);if(OT(b.G,R))if(QA(b.G,R).S)un(b,R,!1);else{Mh(b.cH, "ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",R,h);try{var I=b.G;if(!QA(I,R))throw new FI("Unknown slotState for onLayout",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!I.X9.EC.get(R.slotType))throw new FI("No LayoutRenderingAdapterFactory registered for slot of type: "+R.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANNOT_FIND_MATCHING_LAYOUT_RENDERING_ADAPTER_FACTORY");if(h.layoutExitNormalTriggers.length==0&&h.layoutExitSkipTriggers.length==0&&h.layoutExitMuteTriggers.length==0&&h.layoutExitUserInputSubmittedTriggers.length== 0&&h.layoutExitUserCancelledTriggers.length==0)throw new FI("Layout has no exit triggers.",void 0,"ADS_CLIENT_ERROR_MESSAGE_EMPTY_LAYOUT_EXIT_TRIGGER");or(I,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",h.layoutExitNormalTriggers);or(I,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",h.layoutExitSkipTriggers);or(I,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",h.layoutExitMuteTriggers);or(I,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",h.layoutExitUserInputSubmittedTriggers);or(I,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED", h.layoutExitUserCancelledTriggers)}catch(p){p instanceof FI?b.ZP(R,h,p,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):b.ZP(R,h,new FI(`Unexpected error: ${p}`,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");un(b,R,!0);return}QA(b.G,R).J=!0;try{var N=b.G;const p=QA(N,R),l=N.X9.EC.get(R.slotType).get().build(N.V,N.Y,R,h);l.init();p.layout=h;if(p.X)throw new FI("Already had LayoutRenderingAdapter registered for slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_BUILD_DUPLICATE_LAYOUT_RENDERING_ADAPTER"); p.X=l;Dd(N,p,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",h.layoutExitNormalTriggers);Dd(N,p,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",h.layoutExitSkipTriggers);Dd(N,p,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",h.layoutExitMuteTriggers);Dd(N,p,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",h.layoutExitUserInputSubmittedTriggers);Dd(N,p,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",h.layoutExitUserCancelledTriggers)}catch(p){VA(b,R);p instanceof FI?b.ZP(R,h,p,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"): b.ZP(R,h,new FI(`Unexpected error: ${p}`,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");un(b,R,!0);return}Mh(b.cH,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",R,h);for(const p of b.Y)p.Gf(R,h);VA(b,R);WrP(b,R)}else b=b.VX.get(),g.bU(b.A.L())||Rd(b.A.L())||g.hB(b.A.L())?b=!0:(u2("Composite VOD on legacy path."),b=!1),b&&u2("slot is unscheduled after been fulfilled.",R,h)}}; n5H=function(b,R,h){R.jY!=="core"&&Mh(b.cH,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",R,h)}; E5x=function(b,R,h){Mh(b.cH,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",R,h);for(const K of b.Y)K.Gf(R,h)}; TS3=function(b,R,h){Mh(b.cH,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",R,h);for(const K of b.Y)K.PR(R,h)}; g5P=function(b,R,h){if(OT(b.G,R)&&xv(QA(b.G,R))){var K=PF(b.G,R);if(K&&C9(b.G,R))JtH(b,R,K,h?"error":"abandoned");else{mD(b.cH,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",R);try{const I=QA(b.G,R);if(!I)throw new V("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");I.G!=="enter_requested"&&I.G!=="entered"&&I.G!=="rendering"&&r5(I.slot,I.G,"exitSlot");I.G="exit_requested";if(I.Y===void 0)throw I.G="scheduled",new V("Cannot exit slot because adapter is not defined", void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");I.Y.oF()}catch(I){I instanceof V&&I.wh?(L9(b.cH,"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",I.wh,R),u2(I,R,void 0,void 0,I.G2)):(L9(b.cH,"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",R),u2(I,R))}}}}; k1D=function(b,R,h,K){Mh(b.cH,At2(K),R,h);for(const I of b.Y)I.cR(R,h,K)}; XI=function(b,R){R.sort((I,N)=>{if(I.category===N.category)return I.trigger.triggerId.localeCompare(N.trigger.triggerId);const p=l=>{u2("TriggerCategoryOrder enum does not contain trigger category: "+l)}; return tSB(I.category,p)-tSB(N.category,p)}); var h=new Map;for(var K of R){if(!OT(b.G,K.slot))continue;if(QA(b.G,K.slot).J){QA(b.G,K.slot).K.push(K);continue}YHs(b.cH,K.slot,K,K.layout);(R=h.get(K.category))||(R=[]);R.push(K);h.set(K.category,R)}for(const [I,N]of evw)K=N,(R=h.get(I))&&OiT(b,R,K);(K=h.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&QGe(b,K);(K=h.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&xfq(b,K);(h=h.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&mfq(b,h)}; OiT=function(b,R,h){for(const K of R)K.layout&&C9(b.G,K.slot)&&JtH(b,K.slot,K.layout,h)}; QGe=function(b,R){for(const h of R)un(b,h.slot,!1)}; xfq=function(b,R){for(const h of R){a:switch(QA(b.G,h.slot).V){case "not_filled":R=!0;break a;default:R=!1}R&&(mD(b.cH,"ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",h.slot),b.G.w1(h.slot))}}; mfq=function(b,R){for(const I of R){mD(b.cH,"ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",I.slot);for(const N of b.Y)N.HI(I.slot);try{var h=b.G,K=I.slot;const N=QA(h,K);if(!N)throw new V("Got enter request for unknown slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!N.Y)throw new V("Tried to enter slot with no assigned slotAdapter",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");if(N.G!=="scheduled")throw new V("Tried to enter a slot from stage: "+N.G,void 0,"ADS_CLIENT_ERROR_MESSAGE_ILLEGAL_SLOT_STATE"); if(xv(N))throw new V("Got enter request for already active slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_COLLISION");for(const p of cF(h,`${K.slotType}_${K.slotPhysicalPosition}`).values())if(N!==p&&xv(p)&&(N.slot.fulfilledLayout?.layoutType!=="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED"||p.layout?.layoutType!=="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"))throw new V("Trying to enter a slot when a slot of same type is already active.",{activeSlotStatus:p.G},"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");}catch(N){N instanceof V&&N.wh?(L9(b.cH,"ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED",N.wh,I.slot),u2(N,I.slot,PF(b.G,I.slot),void 0,N.G2)):(L9(b.cH,"ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",I.slot),u2(N,I.slot));un(b,I.slot,!0);continue}R=QA(b.G,I.slot);R.G!=="scheduled"&&r5(R.slot,R.G,"enterSlot");R.G="enter_requested";R.Y.HX()}}; JtH=function(b,R,h,K){OT(b.G,R)&&(Mh(b.cH,jGe.get(K)?.Os||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED",R,h),b=QA(b.G,R),b.G!=="rendering"&&r5(b.slot,b.G,"exitLayout"),b.G="rendering_stop_requested",b.X.h9(h,K))}; xv=function(b){return b.G==="enter_requested"||b.isActive()}; OT=function(b,R){return QA(b,R)!=null}; PF=function(b,R){(b=QA(b,R))?b.layout!=null&&!b.layout&&u2("Unexpected empty layout",R):u2("Unexpected undefined slotState",R);return b?.layout||null}; PKB=function(b){const R=[];b.G.forEach(h=>{for(const K of h.values())R.push(K.slot)}); return R}; C9=function(b,R){b=QA(b,R);if(R=b.layout!=null)a:switch(b.G){case "rendering":case "rendering_stop_requested":R=!0;break a;default:R=!1}return R}; cF=function(b,R){return(b=b.G.get(R))?b:new Map}; QA=function(b,R){return cF(b,`${R.slotType}_${R.slotPhysicalPosition}`).get(R.slotId)}; KM=function(b,R,h){if(h.length==0)throw new V(`No ${ZiT.get(R)} triggers found for slot.`,void 0,cte(R));for(const K of h)if(!b.X9.l3.get(K.triggerType))throw new V("No trigger adapter registered for "+R+" trigger of type: "+K.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");}; r5=function(b,R,h){u2(`Slot stage was ${R} when calling method ${h}`,b)}; Zd=function(b,R){for(const h of R)if(R=b.C.get(h.triggerId))R.Zd(h),b.C.delete(h.triggerId)}; or=function(b,R,h){for(const K of h)if(!b.X9.l3.get(K.triggerType))throw new FI(`No trigger adapter registered for ${ZiT.get(R)} trigger of type: ${K.triggerType}`,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");}; Dd=function(b,R,h,K){for(const I of K)K=b.X9.l3.get(I.triggerType),K.Ff(h,I,R.slot,R.layout?R.layout:null),R.C.set(I.triggerId,K)}; cte=function(b){switch(b){case "TRIGGER_CATEGORY_SLOT_ENTRY":return"ADS_CLIENT_ERROR_MESSAGE_EMPTY_SLOT_ENTRY_TRIGGER";case "TRIGGER_CATEGORY_SLOT_EXPIRATION":return"ADS_CLIENT_ERROR_MESSAGE_EMPTY_SLOT_EXPIRATION_TRIGGER";case "TRIGGER_CATEGORY_SLOT_FULFILLMENT":return"ADS_CLIENT_ERROR_MESSAGE_EMPTY_SLOT_FULFILLMENT_TRIGGER";default:return"ADS_CLIENT_ERROR_MESSAGE_INVALID_TRIGGER"}}; uDT=function(b){return $m(b.cP).concat($m(b.l3)).concat($m(b.gK)).concat($m(b.Hk)).concat($m(b.EC))}; $m=function(b){const R=[];for(const h of b.values())h.Ch&&R.push(h);return R}; r=function(b){return new XdB(b)}; MS2=function(b){const R=new VSP((h,K,I,N)=>new CKx(b.G.X9,h,K,I,N,b.G.VX),new Set(uDT(b.G.X9).concat(b.G.listeners)),b.G.cH,b.G.VX); g.n(b,R);return R}; Id=function(b,R,h){qHx(b.G(),R,h)}; N1=function(b,R,h,K){(b=b.G())||u2("Could not initiate a command router instance.");zM(b,R,h,K)}; rtx=function(b,R){const h=R.bgp&&R.bgub,K=!!R.upb;R.siub&&R.scs&&(h||K)&&(K&&pM(b.VX.get(),"html5_export_sodar_snapshot")&&FP(async I=>(await iX(ln())).snapshot(I)),tlx(R.siub,R.scs,R.bgub,R.bgp,R.upb))}; Fr2=function(b,R,h,K){b.G&&u2("Currently active request ongoing for slot. This should never happen",b.slot);b.G=R();b.G.then(I=>{b.G=null;K&&K(I);const N=I.Jj?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE";var p=b.Y.get(),l=b.slot.slotId,a=Jj(b.Og.get(),{slotId:b.slot.slotId,slotType:b.slot.slotType,slotPhysicalPosition:b.slot.slotPhysicalPosition,jY:b.slot.jY,slotEntryTrigger:b.slot.slotEntryTrigger,slotFulfillmentTriggers:b.slot.slotFulfillmentTriggers,slotExpirationTriggers:b.slot.slotExpirationTriggers}); const v=lU(p.Y.get(),N,l),B={layoutId:v,layoutType:N,jY:"core"};I={layoutId:v,layoutType:N,IT:new Map,layoutExitNormalTriggers:[new Lrx(p.G,l)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],jY:"core",clientMetadata:new kv([new wdx(I)]),qj:a(B)};SHs(b.callback,b.slot,I)},I=>{b.G=null; h&&h();I instanceof ht||w5(b.callback,b.slot,new V(I,void 0,"ADS_CLIENT_ERROR_MESSAGE_AD_BREAK_REQUEST_ERROR",!0),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")})}; o53=function(b){if(b.G==null)b.callback.mu(b.slot);else try{b.G.cancel(),b.G=null,b.callback.mu(b.slot)}catch(R){b.G=null,w5(b.callback,b.slot,new V(R,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANCEL_SLOT_FULFILLMENT_FAILURE"),"ADS_CLIENT_ERROR_TYPE_CANCEL_FULFILL_SLOT_FAILED")}}; ad=function(b,R,h=!1,K=""){!b&&h&&g.kJ(Error(`Player URL validator detects invalid url. ${K}: ${R}`));return b}; v8=function(b,R){return R&&R.test(b)?!0:!1}; bT3=function(b){return(b=Dfq&&Dfq.exec(b))?b[0]:""}; B8=function(b){return ad(v8(b,RlD),b,!1,"Trusted Stream URL")}; g.H8=function(b){return ad(v8(b,hlD),b,!1,"Trusted Image URL")}; s_B=function(b){return ad(v8(b,Kw3),b,!1,"Trusted Promoted Video Domain URL")}; IaB=function(b){return ad(v8(b,$2D),b,!1,"Drm Licensor URL")}; pcK=function(b,R=!1){return ad(v8(b,N$3),b,R,"Captions URL")}; laq=function(b){b=new g.Fx(b);g.o_(b,document.location.protocol);g.Da(b,document.location.hostname);document.location.port&&g.bL(b,document.location.port);return b.toString()}; q1=function(b){b=new g.Fx(b);g.o_(b,document.location.protocol);return b.toString()}; aaT=function(b){return b===-0x8000000000000?"BEFORE_MEDIA_START":b===0?"MEDIA_START":b===0x7ffffffffffff?"MEDIA_END":b===0x8000000000000?"AFTER_MEDIA_END":b.toString()}; g.dt=function(b,R){return b.start-R.start||b.priority-R.priority||b.Y-R.Y}; g.fM=function(b){return`crn_${b}`}; g.yf=function(b){return`crx_${b}`}; vQK=function(b,R){switch(b.style){case tB.CHAPTER_MARKER:return R?8:5;case tB.AD_MARKER:return 6;case tB.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}}; B$T=function(b){b.b5?.get().G9(b.slot.clientMetadata.rp("metadata_type_cue_point").identifier)}; jz=function(b,R){return Sm(b,R.Gj,R.slotType)?!0:!1}; qWx=function(b){if(b.slot.clientMetadata.rp("metadata_type_allow_pause_ad_break_request_slot_reschedule")){const R=HTe(b,b.slot);AB(b.G.get(),"OPPORTUNITY_TYPE_PAUSE_AD_BREAK_REQUEST_SLOT_RESCHEDULE",()=>[R])}}; d2P=function(b){if(b.slot.clientMetadata.rp("metadata_type_prefetch_metadata")){const R=HTe(b,b.slot);AB(b.G.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",()=>[R])}}; HTe=function(b,R){const h=iU(b.Y.get(),b.slot.slotType);b={...b.slot};if(R.slotEntryTrigger){var K=R.slotId;var I=R.slotEntryTrigger;K=I.triggeringSlotId!=null&&I.triggeringSlotId===K?I.clone(h):I}else K=void 0;return{...b,slotId:h,slotEntryTrigger:K,slotFulfillmentTriggers:faD(R.slotId,h,R.slotFulfillmentTriggers),slotExpirationTriggers:faD(R.slotId,h,R.slotExpirationTriggers)}}; faD=function(b,R,h){const K=[];for(const I of h)K.push(I.triggeringSlotId!=null&&I.triggeringSlotId===b?I.clone(R):I);return K}; g.zc=function(b,R){for(const h of Object.keys(R)){const K=R[h];b=b.replace(new RegExp("\\$"+h,"gi"),()=>K)}return b}; Uv=function(b,R,h){R.layoutId!==b.layout.layoutId?b.G.ZP(b.slot,R,new FI("Unknown layout received. "+`Required LayoutId: ${b.layout.layoutId}`+`and LayoutType: ${b.layout.layoutType}`,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):h()}; gt=function(b,R,h,K,I,N,p,l){K=K||h.clientMetadata.rp(N);b=Gc(b);const a=xs(()=>{I.PR(R,h)}); l.push(p(K,b,h.layoutId,{adsClientData:h.qj},()=>{a()}))}; Sz=function(b,R,h,K,I,N,p,l,a){if(R===b)if(a){if(a===l.layoutId){a:{for(const v of h.keys())if(v.slotType==="SLOT_TYPE_PLAYER_BYTES"&&N===h.get(v).layoutId){b=!0;break a}b=!1}b?W8(K,1):I?I():u2("Tried to call engagePingCallback but it is null",p,l)}}else u2("Companion AdUxClick received without a layoutId",p,l)}; nM=function(b){return!!b.get("active_view_viewable")?.length||!!b.get("active_view_measurable")?.length||!!b.get("active_view_fully_viewable_audible_half_duration")?.length||!!b.get("audio_audible")?.length||!!b.get("audio_measurable")?.length}; Ev=function(b){return b?.activeViewTracking?.trafficType??"ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; Tc=function(b){return new Map([["impression",b.impressionPings||[]],["error",b.errorPings||[]],["mute",b.mutePings||[]],["unmute",b.unmutePings||[]],["pause",b.pausePings||[]],["rewind",b.rewindPings||[]],["resume",b.resumePings||[]],["skip",b.skipPings||[]],["swipe",b.swipePings||[]],["close",b.closePings||[]],["progress",b.progressPings||[]],["clickthrough",b.clickthroughPings||[]],["fullscreen",b.fullscreenPings||[]],["active_view_viewable",b.activeViewViewablePings||[]],["active_view_measurable", b.activeViewMeasurablePings||[]],["active_view_fully_viewable_audible_half_duration",b.activeViewFullyViewableAudibleHalfDurationPings||[]],["audio_audible",b.activeViewTracking?.activeViewAudioAudiblePings||[]],["audio_measurable",b.activeViewTracking?.activeViewAudioMeasurablePings||[]],["end_fullscreen",b.endFullscreenPings||[]],["channel_clickthrough",b.channelClickthroughPings||[]],["abandon",b.abandonPings||[]],["start",b.startPings||[]],["first_quartile",b.firstQuartilePings||[]],["midpoint", b.secondQuartilePings||[]],["third_quartile",b.thirdQuartilePings||[]],["complete",b.completePings||[]],["unmuted_impression",b.unmutedImpressionPings||[]],["unmuted_error",b.unmutedErrorPings||[]],["unmuted_mute",b.unmutedMutePings||[]],["unmuted_unmute",b.unmutedUnmutePings||[]],["unmuted_pause",b.unmutedPausePings||[]],["unmuted_resume",b.unmutedResumePings||[]],["unmuted_close",b.unmutedClosePings||[]],["unmuted_progress",b.unmutedProgressPings||[]],["unmuted_clickthrough",b.unmutedClickthroughPings|| []],["unmuted_fullscreen",b.unmutedFullscreenPings||[]],["unmuted_end_fullscreen",b.unmutedEndFullscreenPings||[]],["unmuted_abandon",b.unmutedAbandonPings||[]],["unmuted_start",b.unmutedStartPings||[]],["unmuted_first_quartile",b.unmutedFirstQuartilePings||[]],["unmuted_midpoint",b.unmutedSecondQuartilePings||[]],["unmuted_third_quartile",b.unmutedThirdQuartilePings||[]],["unmuted_complete",b.unmutedCompletePings||[]],["unmuted_skip",b.unmutedSkipPings||[]]])}; yyT=function(b){switch(b){case "abandon":return"unmuted_abandon";case "active_view_fully_viewable_audible_half_duration":return null;case "active_view_measurable":return null;case "active_view_viewable":return null;case "audio_audible":return null;case "audio_measurable":return null;case "channel_clickthrough":return null;case "clickthrough":return"unmuted_clickthrough";case "close":return"unmuted_close";case "companion_engagement":return null;case "complete":return"unmuted_complete";case "end_fullscreen":return"unmuted_end_fullscreen"; case "error":return"unmuted_error";case "first_quartile":return"unmuted_first_quartile";case "fullscreen":return"unmuted_fullscreen";case "impression":return"unmuted_impression";case "midpoint":return"unmuted_midpoint";case "mute":return"unmuted_mute";case "pause":return"unmuted_pause";case "progress":return"unmuted_progress";case "resume":return"unmuted_resume";case "rewind":return null;case "skip":return"unmuted_skip";case "swipe":return null;case "start":return"unmuted_start";case "third_quartile":return"unmuted_third_quartile"; case "unmute":return"unmuted_unmute";case "seek":return null;case "unmuted_abandon":case "unmuted_clickthrough":case "unmuted_complete":case "unmuted_end_fullscreen":case "unmuted_error":case "unmuted_first_quartile":case "unmuted_fullscreen":case "unmuted_impression":case "unmuted_midpoint":case "unmuted_mute":case "unmuted_pause":case "unmuted_close":case "unmuted_progress":case "unmuted_resume":case "unmuted_start":case "unmuted_third_quartile":case "unmuted_unmute":case "unmuted_skip":return null; default:return null}}; JB=function(){return["metadata_type_ad_placement_config"]}; Gc=function(b){var R=b.aH.get();return km(R,b.D)}; Ym=function(b,R,h){tMP(b.aH.get(),b.layoutId,R,h,b.J??void 0,b.S)}; ez=function(b,R,h=!1){b.G.has(R)?Ym(b,R,[]):b.d2(R,h)}; Ov=function(b,R,h=!1){for(;b.VR.hasOwnProperty("offsetMilliseconds"))}; j_x=function(b,R,h){b.J=R;b.S=h}; Aye=function(){const b=["metadata_type_ads_engagement_panel_layout_view_model","metadata_type_linked_player_bytes_layout_id"];JB().forEach(R=>{b.push(R)}); return{Gj:b,eX:["LAYOUT_TYPE_PANEL"]}}; iTT=function(){const b=["metadata_type_banner_image_layout_view_model","metadata_type_linked_player_bytes_layout_id"];JB().forEach(R=>{b.push(R)}); return{Gj:b,eX:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}}; zlK=function(){const b=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];JB().forEach(R=>{b.push(R)}); return{Gj:b,eX:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}}; U2s=function(){const b=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];JB().forEach(R=>{b.push(R)}); return{Gj:b,eX:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}}; GUx=function(){const b=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];JB().forEach(R=>{b.push(R)}); return{Gj:b,eX:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}}; ml=function(b,R,h=!1){var K=b.S();if(K){for(;b.V{b.push(R)}); return{Gj:b,eX:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}}; Wwx=function(){const b=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"];JB().forEach(R=>{b.push(R)}); return{Gj:b,eX:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}}; SWP=function(){const b=["metadata_type_ad_action_interstitial_renderer"];JB().forEach(R=>{b.push(R)}); return{Gj:b,eX:["LAYOUT_TYPE_ENDCAP"]}}; P8=function(b,R){return g5(b,R.Gj,R.eX)?!0:!1}; nQ3=function(){const b=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];JB().forEach(R=>{b.push(R)}); return{Gj:b,eX:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}}; EQ2=function(){const b=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model","metadata_type_linked_player_bytes_layout_id"];JB().forEach(R=>{b.push(R)}); return{Gj:b,eX:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}}; T$T=function(){const b=["metadata_type_client_forecasting_ad_renderer"];JB().forEach(R=>{b.push(R)}); return{Gj:b,eX:["LAYOUT_TYPE_FORECASTING"]}}; uU=function(b,R,h){if(((b|3)&15)==3)a:{var K=R[f[16]](f[7]),I=[-336955139,-79342690,null,Jys,-690574097,f[45],K,-2105335269,943560452,-406826352,470215228,352844511,Y5e,840036367,-51764265,-750911866,K,947574800,28917552,931771759,-1617515133,kUD,vcq,-1232672736,ADK,862351366,YuP,-2102893504,670700661,1394596274,-1485566650,f[73],1559364982,1056730704,532702261,2096892897,2055851165,1687745072,1394596274,1081161340,mqB,dle,973985318,632683612,YWK,elH,OTT,-1478953927,-1574635865,1284812075,1311433206, null,Q_x,-746421020,-1864825855,null,-1674856646,-218802972,-699032315,x23,1151600436,-998951248,-1888390524,K,-624441829,446575780,m2s,P6q,ZTx,922705685,cye,757526877,uxK,TK3,971718171,-746706301,-2068492512,Xc2,1311433206,W5x];I[2]=I;I[51]=I;I[55]=I;if(typeof VMT===f[37]){var N=R;break a}try{I=Zu(8,I)}catch(p){N=f[65]+R;break a}N=K[f[58]](f[7])}if((b&110)==b){K=64;for(I=[];++K-I[f[4]]-32;){switch(K){case 91:K=44;continue;case 123:K=65;break;case 65:K-=18;continue;case 58:K=96;continue;case 46:K= 95}I[f[22]](String[f[51]](K))}N=I}if((b|56)==b){K=R[f[16]](f[32]);I=0;K[0]||I++;const p={};for(;I>4<3&&b+8>=21&&(tR(2,R),K=decodeURIComponent(R[f[14]](f[28])||f[7])[f[16]](f[72]),N=R[f[8]]===f[18]&&K[f[4]]>1&&!!K[1]);(b&47)==b&&h[f[4]]!=0&&(K=t1(1,R,h),R=K[0]);return N}; C6x=function(b,R){return GM(b.clientMetadata,"metadata_type_ad_info_ad_metadata")?b.clientMetadata.rp("metadata_type_ad_info_ad_metadata"):R?{channelId:R.zI,channelThumbnailUrl:R.profilePicture,channelTitle:R.author,videoTitle:R.title}:(u2("No layout metadata nor AdPlayback specified for AdMetaData"),{channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""})}; var P6q=function(b,R){return bm[f[6]](this,32,b,R)}; var MMK=function(b,R){return GM(b.clientMetadata,"metadata_ad_video_is_listed")?b.clientMetadata.rp("metadata_ad_video_is_listed"):R?R.isListed:(u2("No layout metadata nor AdPlayback specified for ad video isListed"),!1)},ryK=function(b){return b.layout.renderingContent?b.layout.clientMetadata.rp("metadata_type_player_bytes_callback_ref")?.current:b.layout.clientMetadata.rp("metadata_type_player_bytes_callback")},Lwe=function(){return{Gj:["metadata_type_instream_ad_player_overlay_renderer", "metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],eX:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}},Xy=function(b){return b.layout.renderingContent?b.layout.clientMetadata.rp("metadata_type_player_bytes_callback_ref")?.current:b.layout.clientMetadata.rp("metadata_type_player_bytes_callback")},wcK=function(){return{Gj:["metadata_type_valid_ad_message_renderer"], eX:["LAYOUT_TYPE_TEXT_BANNER_OVERLAY"]}},LM=function(b,R,h,K,I,N,p,l,a){return P8(h,Lwe())||h.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.Z(h.renderingContent,Vf)!==void 0?new Fwx(b,R,h,K,I,N,p,l,a):P8(h,{Gj:["metadata_type_player_overlay_layout_renderer", "metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],eX:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})||h.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.Z(h.renderingContent,CM)!==void 0?new oQB(b,R,h,K,I,N,p,l,a):P8(h,SWP())||h.layoutType==="LAYOUT_TYPE_ENDCAP"&&g.Z(h.renderingContent,M1)!==void 0?new D2e(b,R,h,K,N):P8(h,wcK())?new ble(R,h,b,K,I,a):P8(h,{Gj:["metadata_type_instream_ad_player_overlay_renderer"], eX:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})?new R9w(b,R,h,K,I,l):h.layoutType==="LAYOUT_TYPE_ENDCAP"&&g.Z(h.renderingContent,rt)!==void 0?new h9B(b,R,h,K,N):null},wt=function(b){return!b.oldState.isPlaying()&&b.state.isPlaying()},Fy=function(b,R,h){return b{b.removeEventListener("playing",h); R(...K)}; b.addEventListener("playing",h)},sD=function(){let b=g.YB("yt.player.utils.videoElement_"); b||(b=g.jO("VIDEO"),g.kB("yt.player.utils.videoElement_",b));return b},$b=function(b){const R=sD(); return!!(R&&R.canPlayType&&R.canPlayType(b))},ND=function(b){if(/opus/.test(b)&&g.I5&&!Jc("38")&&!g.y5())return!1; if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(b);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(b);if(/webm/.test(b)&&!Ec2())return!1;b==='audio/mp4; codecs="mp4a.40.2"'&&(b='video/mp4; codecs="avc1.4d401f"');return!!$b(b)},$Wx=function(b){try{const R=ND('video/mp4; codecs="avc1.42001E"')||ND('video/webm; codecs="vp9"'); return(ND('audio/mp4; codecs="mp4a.40.2"')||ND('audio/webm; codecs="opus"'))&&(R||!b)||$b('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch{return"html5.missingapi"}},p4=function(){const b=sD(); return!(!b.webkitSupportsPresentationMode||typeof b.webkitSetPresentationMode!=="function")},la=function(){const b=sD(); try{const R=b.muted;b.muted=!R;return b.muted!==R}catch{}return!1},pPH=function(b,R){a5(b,2,R.O7,v5,3); a5(b,3,R.innertubeRequest,IYD,3);B5(b,4,R.onesieUstreamerConfig);B5(b,9,R.Ho);a5(b,10,R.WL,H5,3);a5(b,15,R.reloadPlaybackParams,N0q,3);qD(b,18,R.Un)},aYT=function(b,R){a5(b,1,R.formatId,dB,3); f4(b,2,R.startTimeMs);f4(b,3,R.durationMs);f4(b,4,R.UV);f4(b,5,R.ED);a5(b,9,R.pRR,lYP,3);a5(b,11,R.Dzr,yh,1);a5(b,12,R.eE,yh,1)},vOB=function(b,R){qD(b,1,R.videoId); f4(b,2,R.lmt)},lYP=function(b,R){if(R.KK)for(let h=0;h>31));f4(b,16,R.JH);f4(b,17,R.detailedNetworkType);f4(b,18,R.Bt);f4(b,19,R.So);f4(b,21,R.Yx);f4(b,23,R.L_);f4(b,28,R.Od);f4(b,29,R.AL);f4(b,34,R.visibility);h=R.playbackRate;if(h!==void 0){var K=new ArrayBuffer(4);(new Float32Array(K))[0]=h;h=(new Uint32Array(K))[0];if(h!==void 0)for(UD(b,285),Gu(b,4),K=0;K<4;)b.view.setUint8(b.pos,h&255),h>>=8,b.pos+=1,K+=1}f4(b,36,R.b0);a5(b,38,R.mediaCapabilities,dW2,3);f4(b,39,R.Bp);f4(b,40,R.mN); f4(b,44,R.playerState);zu(b,46,R.qW);f4(b,48,R.hZ);f4(b,50,R.IK);f4(b,51,R.YA);f4(b,54,R.D8);if(R.Wx)for(h=0;h>31));qD(b,2,R.message)},G4q=function(b,R){f4(b,1,R.clientState); a5(b,2,R.uyJ,z9P,1)},ilD=function(b,R){B5(b,1,R.fH); a5(b,2,R.OP,UWP,3);a5(b,3,R.coldStartInfo,G4q,3)},Ale=function(b,R){f4(b,1,R.type); B5(b,2,R.value)},jIH=function(b,R){qD(b,1,R.hl); qD(b,12,R.deviceMake);qD(b,13,R.deviceModel);f4(b,16,R.clientName);qD(b,17,R.clientVersion);qD(b,18,R.osName);qD(b,19,R.osVersion)},gOK=function(b,R){qD(b,1,R.name); qD(b,2,R.value)}; var Xc2=function(b,R){return t1[f[6]](this,20,b,R)}; gB=function(b,R){qD(b,1,R.url);if(R.LJ)for(let h=0;h=2?l[1]:"";const a=$vx.test(R);var v=IPB.exec(R);v=v!=null&&v.length>=2?v[1]:"";var B=N4P.exec(R);B=B!=null&&B.length>=2&&!Number.isNaN(Number(B[1]))?Number(B[1]):1;var H=pXK.exec(R);H=H!=null&&H.length>=2?H[1]:"0";const q=OD(b.player.L().y0);var d=b.player.getVideoData({playerType:1});const t=g.lM(d.C,!0),S="BISCOTTI_ID"in h?h.BISCOTTI_ID: "";lPK(b,t,R,S.toString(),b.player.L(),d);d={splay:!1,lactMilliseconds:h.LACT.toString(),playerHeightPixels:Math.trunc(h.P_H),playerWidthPixels:Math.trunc(h.P_W),vis:Math.trunc(h.VIS),signatureTimestamp:20494,autonavState:aPD(b.player.L())};b.player.N("embeds_enable_encrypted_host_flags_enforcement")&&(d.encryptedHostFlags=b.player.L().getWebPlayerContextConfig()?.encryptedHostFlags);K&&(K={},vdT(K,h.YT_REMOTE)&&(d.mdxContext=K));if(K=B4x.includes(q)?void 0:g.pX("PREF")){var J=K.split(RegExp("[:&]")); for(let Y=0,Q=J.length;Y1&&e[1].toUpperCase()==="TRUE"){t.user.lockedSafetyMode=!0;break}}a:{if("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in H5T){K=K.split(RegExp("[:&]"));e=H5T.FLAG_AUTO_CAPTIONS_DEFAULT_ON;J="f"+(1+Math.floor(e/31)).toString();e=1<=2?R[1]:"")&&v&&(t.user.credentialTransferTokens=[{token:R,scope:"VIDEO"}]);R={contentPlaybackContext:d};l={adBlock:Math.trunc(h.AD_BLOCK),params:l,breakIndex:B,breakPositionMs:H,clientPlaybackNonce:h.CPN,topLevelDomain:q,isProxyAdTagRequest:a,context:t,adSignalsInfoString:j8(k_(S.toString())),overridePlaybackContext:R};I!==void 0&&(l.cueProcessedMs=Math.round(I).toString());N&&(l.cuepointId=N);v&&(l.videoId=v);h.LIVE_TARGETING_CONTEXT&&(l.liveTargetingParams=h.LIVE_TARGETING_CONTEXT); h.AD_BREAK_LENGTH&&(l.breakLengthMs=Math.trunc(h.AD_BREAK_LENGTH*1E3).toString());p&&(l.driftFromHeadMs=p.toString());l.currentMediaTimeMs=Math.round(b.player.getCurrentTime({playerType:1})*1E3);(b=b.player.getGetAdBreakContext())&&(l.getAdBreakContext=b);return l}; fP2=function(b){return{RO:tz(b,1),items:eb(b,2,KAs),wx:tz(b,3)}}; ycB=function(b){return{token:jb(b,1),videoId:jb(b,2)}}; tIw=function(b){return{Iy:tz(b,1)}}; jf3=function(b){return{JA:jb(b,1),action:tz(b,2),Fa:ED(b,3,tIw)}}; Qh=function(b){return{L7:tz(b,1),zx:tz(b,2),seekSource:tz(b,3)}}; Ace=function(b){return{MW:ED(b,2,ia),cpn:jb(b,5),loggingMetadata:W5(b,6),Gm:ED(b,7,ia),Ub:tz(b,8),Is:Yb(b,9)}}; i5P=function(b){return{ke:eb(b,1,Ace)}}; zPx=function(b){return{metadata:eb(b,1,i5P),trackType:tz(b,2)}}; UvB=function(b,R){f4(b,1,R.id);qD(b,2,R.url)}; GS3=function(b,R){f4(b,1,R.id);qD(b,2,R.name);f4(b,3,R.resourceId);f4(b,4,R.line);f4(b,5,R.column)}; gdw=function(b,R){f4(b,1,R.id);f4(b,2,R.timestampMs);f4(b,3,R.stackId)}; WAT=function(b,R){f4(b,1,R.id);f4(b,2,R.frameId);f4(b,3,R.parentId)}; SBB=function(b,R){if(R.resources)for(var h=0;h=Math.floor(N*16/9)*1.3||b>=N*1.3)return R;R=I}return"tiny"}; ZA=function(b){return b.indexOf("/mp4")>=0?1:b.indexOf("/webm")>=0?2:b.indexOf("/x-flv")>=0?3:b.indexOf("/vtt")>=0?4:0}; c5=function(b){return b.includes("vtt")||b.includes("text/mp4")}; ua=function(b){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(b)}; XJ=function(b){return/(vp9|vp09|vp8|avc1|av01|av02)/.test(b)}; rj=function(b,R,h,K,I,N,p){const l=new Vh;R in g.m6||(R="small");R==="light"&&(R="tiny");K&&I?(I=Number(I),K=Number(K)):(I=g.m6[R],K=Math.round(I*16/9));N=new C4(K,I,0,null,void 0,R,N,p);b=unescape(b.replace(/"/g,'"'));return new MD(h,b,{audio:l,video:N})}; T4B=function(b){return b.U9==="H"||b.U9==="h"}; rB=function(b){return b.U9==="9h"||b.U9==="(h"}; JcT=function(b){return!!b.contentProtection&&!!b.contentProtection.fairplay&&(b.U9==="("||b.U9==="(h"||b.U9==="A"||b.U9==="MEAC3")||L4&&!!b.contentProtection&&b.U9==="1e"}; kSH=function(b){return b.U9==="MAC3"||b.U9==="MEAC3"||b.U9==="M"||b.U9==="I"}; g.wB=function(b){return b.containerType===1}; YBs=function(b){return b.U9==="("||b.U9==="(h"||b.U9==="H"||L4&&b.U9==="1e"}; ePs=function(b,R=1){const h={};b.video&&(b.video.width&&(h[FJ.WIDTH.name]=b.video.width),b.video.height&&(h[FJ.HEIGHT.name]=b.video.height),b.video.fps&&(h[FJ.FRAMERATE.name]=b.video.fps*R),b.video.G&&(h[FJ.EOTF.name]=b.video.G),b.nz&&(h[FJ.BITRATE.name]=b.nz*8*R),b.U9==="("&&(h[FJ.CRYPTOBLOCKFORMAT.name]="subsample"),b.video.projectionType==="EQUIRECTANGULAR"||b.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||b.video.projectionType==="MESH")&&(h[FJ.DECODETOTEXTURE.name]="true");b.audio?.numChannels&& b.U9!=="i"&&b.U9!=="I"&&(h[FJ.CHANNELS.name]=b.audio.numChannels);return h}; g.o5=function(b,R){return{itag:+b.itag,lmt:R?0:b.lastModified,xtags:b.Y||""}}; O5w=function(b){const R=navigator.mediaCapabilities;if(!R?.decodingInfo||b.U9==="f")return Promise.resolve();const h={type:b.audio&&b.video?"file":"media-source"};b.video&&(h.video={contentType:b.mimeType,width:b.video.width||640,height:b.video.height||360,bitrate:b.nz*8||1E6,framerate:b.video.fps||30});b.audio&&(h.audio={contentType:b.mimeType,channels:`${b.audio.numChannels||2}`,bitrate:b.nz*8||128E3,samplerate:b.audio.sampleRate||44100});return R.decodingInfo(h).then(K=>{b.S=K})}; DA=function(b,R){return{start(h){return b[h]},end(h){return R[h]},length:b.length}}; Qfx=function(b,R,h){const K=[],I=[];for(let N=0;NN-p); I.sort((N,p)=>N-p); return DA(K,I)}; tR=function(b,R,h,K){if((b&28)==b){var I=R[h];const p=I[f[0]](f[31]);p>0?c8(25,K,I[f[15]](0,p),I[f[15]](p+1)):I&&(K[I]=f[7]);var N=[]}(b-3^27)=b&&R[f[19]]&&(I=c8(8,R));return N}; pw=function(b,R=",",h=b?b.length:0){const K=[];if(b)for(h=Math.max(b.length-h,0);h=R)return h}catch(h){}return-1}; Rc=function(b,R){return bC(b,R)>=0}; xvx=function(b,R){if(!b)return NaN;R=bC(b,R);return R>=0?b.start(R):NaN}; hk=function(b,R){if(!b)return NaN;R=bC(b,R);return R>=0?b.end(R):NaN}; K6=function(b){return b&&b.length?b.end(b.length-1):NaN}; sK=function(b){return K6(b)>0}; $S=function(b,R){b=hk(b,R);return b>=0?b-R:0}; Ic=function(b,R,h){const K=[],I=[];for(let N=0;Nh||(K.push(Math.max(R,b.start(N))-R),I.push(Math.min(h,b.end(N))-R));return DA(K,I)}; NS=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; mvH=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; p6=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; lC=function(b){try{return b.X()==="open"}catch(R){return!1}}; PIK=function(b,R){lC(b)?g.Mq(()=>{R(b)}):b.callback=R}; Z5K=function(b,R,h){ac&&(vz(b.mediaElement,{l:"mswssb",sr:b.mediaElement.z6?.yk()},!1),R.vZ(b.U,b),h.vZ(b.U,b));b.G=R;b.Y=h;g.n(b,R);g.n(b,h)}; uAw=function(b,R,h,K=""){K=R.mimeType+K;const I=h.mimeType;R=R.U9;h=h.U9;b.JX=b.cY?.addSourceBuffer(I);b.NJ=K.split(";")[0]==="fakesb"?void 0:b.cY?.addSourceBuffer(K);b.Tf&&(b.Tf.webkitSourceAddId("0",I),b.Tf.webkitSourceAddId("1",K));h=new cce(b.JX,b.Tf,"0",ZA(I),h,!1);K=new cce(b.NJ,b.Tf,"1",ZA(K),R,!0);Z5K(b,h,K)}; VIH=function(b,R,h,K){if(!b.G||!b.Y)return null;const I=b.G.isView()?b.G.QB:b.G,N=b.Y.isView()?b.Y.QB:b.Y,p=new Bz(b.mediaElement,b.cY,!0);p.V=b.V;Z5K(p,new XXP(I,R,h,K),new XXP(N,R,h,K));lC(b)||b.G.yj(b.G.Kz());return p}; vz=function(b,R,h=!1){b.z6?.zy()&&b.z6.YZ("rms",R,h)}; Hz=function(b){b=b.K();return b.length<1?NaN:b.end(b.length-1)}; CIe=function(b,R){b.yV&&b.yV.equals(R)||(b.yV&&b.yV.dispose(),b.yV=R)}; MIT=function(b){!b.Y&&mvH()&&(b.V?b.V.then(()=>MIT(b)):b.E8()||(b.Y=b.Uz()))}; rcB=function(b){b.Y&&(b.Y.dispose(),b.Y=void 0)}; LAe=function(b,R,h){b.isPaused()||b.getCurrentTime()>R||h>10||(b.play(),g.QB(()=>{LAe(b,b.getCurrentTime(),h+1)},500))}; qS=function(b){return $S(b.w4(),b.getCurrentTime())}; wX2=function(b,R){if(b.X()===0||b.hasError())return!1;const h=b.getCurrentTime()>0;return R>=0&&(b=b.K(),b.length||!h)?Rc(b,R):h}; dV=function(b){b.E8()&&(b.z6&&b.z6.z9("rs_s"),Nr&&b.getCurrentTime()>0&&b.seekTo(0),b.pR(),b.load(),CIe(b,null));delete b.V}; f6=function(b){switch(b.Oi()){case 2:return"progressive.net.retryexhausted";case 3:return b=b.e6(),b?.includes("MEDIA_ERR_CAPABILITY_CHANGED")||FA3&&b?.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}}; y3=function(b){return b.isPlaying()&&!b.G(16)&&!b.G(32)}; jr=function(b,R,h,K){if(!(R===b.state&&h===b.gt&&K===b.seekSource||R!==void 0&&(R&128&&!h||R&2&&R&16))){var I;if(I=R)I=R||b.state,I=!!(I&16||I&32);b=new g.tk(R,h,I?K?K:b.seekSource:null)}return b}; Ak=function(b,R,h=!1){return ode(b,R.getCurrentTime(),(0,g.c)(),qS(R),h)}; iC=function(b,R,h=null){return jr(b,b.state|R,null,h)}; zh=function(b,R){return jr(b,b.state&~R,null,null)}; UK=function(b,R,h,K=null){return jr(b,(b.state|R)&~h,null,K)}; g.Gh=function(b,R){return R.state===b.state&&R.gt===b.gt}; gV=function(b){return b.G(128)?-1:b.G(2)?0:b.G(2048)?3:b.G(64)?-1:b.G(1)&&!b.G(32)?3:b.G(8)?1:b.G(4)?2:-1}; Wz=function(b){return b.layout.clientMetadata.rp("METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; Sr=function(b,R){ez(b.LR,R,!b.G)}; DvD=function(b){u2("Received layout exit signal when not in layout exit flow.",b.slot,b.layout)}; bp2=function(b){if(b.kO==="rendering"){Sr(b,"pause");var R=Wz(b)?.pauseCommands||[];Id(b.JO.get(),R,b.layout.layoutId);b.rz(2)}}; RyD=function(b){if(b.kO==="rendering"){Sr(b,"resume");var R=Wz(b)?.resumeCommands||[];Id(b.JO.get(),R,b.layout.layoutId)}}; hyD=function(b,R,h=!1){b.G||Ov(b.LR,R,h)}; sEe=function(b){return(Wz(b)?.progressCommands||[]).findIndex(R=>!!g.Z(R?.command,Knw))!==-1}; $9H=function(b,R){switch(R){case "normal":b.d2("complete");break;case "skipped":b.d2("skip");break;case "abandoned":Qf(b.LR,"impression")&&b.d2("abandon")}}; Ie3=function(b,R){b.X||(R=new g.n6(R.state,new g.tk),b.X=!0);return R}; NAB=function(b,R){wt(R)?b.rz(1):R.Up(4)&&!R.Up(2)&&bp2(b);X3(R,4)<0&&!(X3(R,2)<0)&&RyD(b)}; pQH=function(b){b.position===0&&(b.BR.get(),b=b.layout.clientMetadata.rp("metadata_type_ad_placement_config").kind,b={adBreakType:EK(b)},mv("ad_bl"),g.PI(b))}; g.Th=function(b,R,h){cI(b,h)||XV(b,R,h);cI(b,"video_to_ad")||XV(b,R,"video_to_ad");cI(b,"ad_to_video")||XV(b,R,"ad_to_video");cI(b,"ad_to_ad")||XV(b,R,"ad_to_ad")}; leq=function(b){b.qq=Date.now();Jk(b,b.tW);b.timer.start()}; Jk=function(b,R){R={current:R/1E3,duration:b.Dp()/1E3};UT(b.Op.get(),"onAdPlaybackProgress",R)}; vNw=function(b){return new aeP({...b,mF:b.callback,rz:()=>{}})}; HpD=function(b){return new BAx({...b,rz:R=>{UT(b.Op.get(),"onAdIntroStateChange",R)}})}; qlP=function(b){return new BAx({...b,rz:R=>{b.Op.get().CA(R)}})}; d9w=function(b){var R=b.ph,h=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"];for(const K of JB())h.push(K);if(P8(R,{Gj:h,eX:["LAYOUT_TYPE_MEDIA_BREAK"]}))return vNw(b);R=b.ph;h=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];for(const K of JB())h.push(K);if(P8(R,{Gj:h,eX:["LAYOUT_TYPE_MEDIA"]}))return GM(b.ph.clientMetadata,"metadata_type_ad_intro")?HpD(b):qlP(b)}; er=function(b,R,h){const K=kS(b);b.NF===b.DH.length-1&&u2("Unexpected skip with target requested during the last sublayout");if(h.renderingContent===void 0&&h.layoutId!==YS(K,R,h)){u2("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",K.UW(),K.QV(),{requestingSlot:R,requestingLayout:h});var I=!1}else I=!0;if(I){a:{if((I=K.QV().clientMetadata.rp("metadata_type_ad_pod_skip_target"))&&I>0&&I{OK(b,b.NF+1)})}; feT=function(b,R,h,K){yqx(b,R,h,"skipped",()=>{OK(b,K)})}; yqx=function(b,R,h,K,I){if(!b.Qe){var N=kS(b);N?(N.QV().layoutId!==h.layoutId&&u2("SubLayout mismatch in exitSubLayout",R,h,{exitingSubLayout:h.layoutId,activeSubLayout:N.QV().layoutId}),b.Qe=!0,N.h9(N.QV(),K),k1D(b.nM,R,h,K),b.Qe=!1,b.Ql?(b.Ql(),xS(b.BR.get())):I()):u2("No active adapter when exitSubLayout in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.",R,h)}}; OK=function(b,R){if(b.NF===b.DH.length-1)b.NF++,mx(b.Mf,b.layout),xS(b.BR.get());else a:{if(b.NF===-1&&(b.callback.PR(b.slot,b.layout),R>0)){u2("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",b.slot,b.layout,{indexToPlay:R,layoutId:b.layout.layoutId});break a}b.NF=R;R=kS(b);if(b.NF>0){var h=b.BR.get();h.Y=!1;const K={};h.G&&h.videoId&&(K.cttAuthInfo={token:h.G,videoId:h.videoId});ZC("ad_to_ad",K)}h=g.Z(R.QV().renderingContent,M1);!h?.isEligibleToBeSkippedWhenNoEngagementOnLayoutId|| (b.Gz.get().UP.get(h.isEligibleToBeSkippedWhenNoEngagementOnLayoutId)??!1)?R.startRendering(R.QV()):OK(b,b.NF+1)}}; tnK=function(b){(b=kS(b))&&b.H7()}; Aqx=function(b){return new jEw(b.Fo,b.s9,b.b5,b.xs,b.BY,b.Gz,b.BR,b.nM,b.slot,b.layout,b.un,b.Mf,b.u5,b.VX)}; zyx=function(b,R,h,K,I,N,p,l,a,v,B,H,q,d,t,S,J,e,Y,Q,P,$B){const IK={aH:l,Dl:a,DQ:v,xs:B,s9:H,BY:q,Gz:d,Ma:t,BR:S,Op:J,JO:e,vr:Y,VX:Q,context:$B};l=P8(K,{Gj:["metadata_type_sub_layouts"],eX:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})||K.Sb!==void 0&&K.layoutType==="LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES";a=P8(K,{Gj:[],eX:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]});v=()=>{const Pe=K.Sb??K.clientMetadata.rp("metadata_type_sub_layouts"),U3=Aqx({Fo:b,s9:H,b5:P,xs:B,BY:q,Gz:d,BR:S,nM:R,slot:h,layout:K, un:N,Mf:p,u5:I,VX:Q}),Zx=[];for(let Cw=0;Cw{ce.h9(Pe[Cw],"normal")}, K8:Cw,NN:Pe.length,ji:!1});if(!Ee)return;Zx.push(Ee)}U3.DH=Zx;return U3}; t=()=>{const Pe=d9w({...IK,callback:{PR:b.PR.bind(b),cR:b.cR.bind(b),ZP:b.ZP.bind(b)},slot:h,ph:K,jz:()=>{mx(p,K)}, K8:0,NN:1,ji:!0});return Pe?new ipK(b,B,q,S,Pe,I,Q):Pe}; if(l)return v();if(a)return t()}; Z3=function(b,R){Pz(b.aH.get(),{driftRecoveryInfo:{contentCpn:b.s9.get().Sz?.clientPlaybackNonce,adClientData:b.layout.qj.adClientDataEntry,...R}})}; GpT=function(b){var R=b.layout.clientMetadata.rp("metadata_type_layout_enter_ms");const h=b.layout.clientMetadata.rp("metadata_type_layout_exit_ms");b=b.Zq.get();R=U9q(b.X,R,h);return Math.min(h,R!==null?R:Infinity)}; Wn3=function(b,R){const h=gNK(b,R);h||u2("Expected subLRA found by layout ID",b.slot,b.layout,{layoutId:R});b.G={FQ:h};h?h.startRendering(h.QV()):R===b.Y&&u2("Failed to find rendering adapter for survey media layout",b.slot,b.layout,{surveyMediaLayoutId:R})}; gNK=function(b,R){return R==null?null:b.X.find(h=>h.QV().layoutId===R)||null}; Sl2=function(b,R,h,K,I,N,p,l,a,v){var B=I-K;const H=(b.fulfilledLayout||b.clientMetadata.rp("metadata_type_fulfilled_layout"))?.clientMetadata.rp("metadata_type_ssdai_ads_config")||"",q=b.clientMetadata.rp("metadata_type_triggering_cue_point")?.current?.identifier;q||cz(v,"ads_cpu",`slid.${R.layoutId}`);if(!B)return p.Kn(h,H,2,N,K,I,b.slotId,q),cz(v,"ads_iraot",`slid.${R.layoutId};enterMs.${K};exitMs.${I};vid.${h.video_id}`),null;B=p.Yp(h,H,2,N,K,I,b.slotId,q);cz(v,"ads_atct",`slid.${R.layoutId};enterMs.${K};exitMs.${I};vid.${h.video_id};pid.${B};cid.${q}`); if(!B)return u2("Unexpected failure to add to playback timeline",b,R,a()),null;b=b.slotId;R=R.layoutId;B?(l.G.has(B)&&u2("Unexpected remap of timeline playback"),l.G.set(B,{slotId:b,layoutId:R})):u2("Invalid timeline playback ID");K+N>I&&p.y7(B,I-K);return B}; nNB=function(b,R,h){const K=R.clientMetadata.rp("metadata_type_sodar_extension_data");if(K)try{rtx(h,K)}catch(I){u2("Unexpected error when loading Sodar",b,R,{error:I})}}; ENT=function(b,R,h,K,I,N,p){uC(b,R,new g.n6(h,new g.tk),K,I,p,!1,N)}; uC=function(b,R,h,K,I,N,p=!0,l){wt(h)&&Fy(I,0,null)&&(!Qf(b,"impression")&&l&&l(),b.d2("impression"));Qf(b,"impression")&&(h.Up(4)&&!h.Up(2)&&b.zf("pause"),X3(h,4)<0&&!(X3(h,2)<0)&&b.zf("resume"),h.Up(16)&&I>=.5&&b.zf("seek"),p&&h.Up(2)&&Xu(b,h.state,R,K,I,N))}; Xu=function(b,R,h,K,I,N,p,l,a){Qf(b,"impression")&&(N?(N=I-K,N=N>=-1&&N<=2):N=Math.abs(K-I)<=1,V3(b,R,N?K:I,h,K,p,l&&N),N&&!a&&b.d2("complete"))}; V3=function(b,R,h,K,I,N,p){Ov(b,h*1E3,p);I<=0||h<=0||R?.G(16)||R?.G(32)||(Fy(h,I*.25,K)&&(N&&!Qf(b,"first_quartile")&&N("first"),b.d2("first_quartile")),Fy(h,I*.5,K)&&(N&&!Qf(b,"midpoint")&&N("second"),b.d2("midpoint")),Fy(h,I*.75,K)&&(N&&!Qf(b,"third_quartile")&&N("third"),b.d2("third_quartile")))}; TAx=function(b,R){Qf(b,"impression")&&b.zf(R?"fullscreen":"end_fullscreen")}; Jqe=function(b){Qf(b,"impression")&&b.zf("clickthrough")}; kps=function(b){b.zf("active_view_measurable")}; Yl3=function(b){Qf(b,"impression")&&!Qf(b,"seek")&&b.zf("active_view_fully_viewable_audible_half_duration")}; eyH=function(b){Qf(b,"impression")&&!Qf(b,"seek")&&b.zf("active_view_viewable")}; Ops=function(b){Qf(b,"impression")&&!Qf(b,"seek")&&b.zf("audio_audible")}; QE3=function(b){Qf(b,"impression")&&!Qf(b,"seek")&&b.zf("audio_measurable")}; x9H=function(b,R){cz(b.aH.get(),"ads_imp",`cpn.${b.layout.clientMetadata.rp("metadata_type_content_cpn")};acpn.${od(b.s9.get(),2)?.clientPlaybackNonce};clr.${R};skp.${!!g.Z(b.layout.clientMetadata.rp("metadata_type_instream_ad_player_overlay_renderer")?.skipOrPreviewRenderer,C6)}`)}; m9T=function(b,R,h){cz(b.aH.get(),"ads_qua",`cpn.${b.layout.clientMetadata.rp("metadata_type_content_cpn")};acpn.${od(b.s9.get(),2)?.clientPlaybackNonce};qt.${R};clr.${h}`)}; MS=function(b){return{enterMs:b.clientMetadata.rp("metadata_type_layout_enter_ms"),exitMs:b.clientMetadata.rp("metadata_type_layout_exit_ms")}}; PwT=function(b,R){cz(b.aH.get(),"ads_imp",`acpn.${od(b.s9.get(),2)?.clientPlaybackNonce};clr.${R}`)}; Zpw=function(b,R,h){cz(b.aH.get(),"ads_qua",`cpn.${b.layout.clientMetadata.rp("metadata_type_content_cpn")};acpn.${od(b.s9.get(),2)?.clientPlaybackNonce};qt.${R};clr.${h}`)}; rV=function(b){return`${Math.round(b.width)}x${Math.round(b.height)}`}; wV=function(b,R,h=L6){h.widthb.width*b.height*.2)return{RN:3,Bs:501,errorMessage:`ad(${rV(h)}) to container(${rV(b)}) ratio exceeds limit.`};if(h.height>b.height/3-R)return{RN:3,Bs:501,errorMessage:`ad(${rV(h)}) covers container(${rV(b)}) center.`}}; cqT=function(b,R){const h=b.clientMetadata.rp("metadata_type_ad_placement_config");return new Fu(b.IT,R,h,b.layoutId)}; oc=function(b){return b.clientMetadata.rp("metadata_type_invideo_overlay_ad_renderer")}; u6q=function(){const b=["metadata_type_invideo_overlay_ad_renderer"];JB().forEach(R=>{b.push(R)}); return{Gj:b,eX:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; XQT=function(){const b=["metadata_type_invideo_overlay_ad_renderer"];for(const R of JB())b.push(R);return{Gj:b,eX:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; Vns=function(b=null){return b!=null&&(b=b.thumbnail,b!=null&&b.thumbnails!=null&&b.thumbnails.length!=0&&b.thumbnails[0].width!=null&&b.thumbnails[0].height!=null)?new g.ru(b.thumbnails[0].width||0,b.thumbnails[0].height||0):new g.ru(0,0)}; Cwx=function(){const b=Lwe();b.Gj.push("metadata_type_ad_info_ad_metadata");return b}; MnP=function(b){switch(b){case "LAYOUT_EXIT_REASON_UNSPECIFIED":return"unknown";case "LAYOUT_EXIT_REASON_NORMAL":return"normal";case "LAYOUT_EXIT_REASON_ERROR":return"error";case "LAYOUT_EXIT_REASON_USER_SKIPPED":return"skipped";case "LAYOUT_EXIT_REASON_USER_MUTED":return"muted";case "LAYOUT_EXIT_REASON_ABANDONED":return"abandoned";case "LAYOUT_EXIT_REASON_USER_INPUT_SUBMITTED":return"user_input_submitted";case "LAYOUT_EXIT_REASON_USER_CANCELLED":return"user_cancelled";default:return new V(`Invalid layout exit reason: ${b}`)}}; D3=function(b){return b?.layoutId!=null&&b?.layoutType!=null}; rqe=function(b){if(!D3(b.adLayoutMetadata))return!1;b=b.renderingContent;return g.Z(b,bO)||g.Z(b,Rs)||g.Z(b,hu)||g.Z(b,KA)||g.Z(b,s1)||g.Z(b,$A)?!0:!1}; Is=function(b){return!!(b.G3&&b.slot&&b.layout)}; NL=function(b){const R=b.config?.adPlacementConfig;b=b.renderer;return!(!R||R.kind==null||!b)}; wQK=function(b){if(!D3(b.adLayoutMetadata))return!1;b=b.renderingContent;return g.Z(b,M1)||g.Z(b,rt)||g.Z(b,Lns)||g.Z(b,Vf)||g.Z(b,CM)?!0:!1}; pA=function(b){return b.playerVars!==void 0&&b.pings!==void 0&&b.externalVideoId!==void 0}; d1=function(b){if(!D3(b.adLayoutMetadata))return!1;b=b.renderingContent;var R=g.Z(b,lO);return R?as(R):(R=g.Z(b,vm))?pA(R):(R=g.Z(b,Bm))?R.playerVars!==void 0:(R=g.Z(b,M1))?R.durationMilliseconds!==void 0:g.Z(b,Hm)||g.Z(b,qL)?!0:!1}; as=function(b){b=(b.sequentialLayouts||[]).map(R=>g.Z(R,fA)); return b.length>0&&b.every(d1)}; tu=function(b){return D3(b.adLayoutMetadata)?(b=g.Z(b.renderingContent,yV))&&b.pings?!0:!1:!1}; RXK=function(b){if(!D3(b.adLayoutMetadata))return!1;if(g.Z(b.renderingContent,Fne)||g.Z(b.renderingContent,j7))return!0;const R=g.Z(b.renderingContent,Au);return g.Z(b.renderingContent,iO)||g.Z(R?.sidePanel,oNs)||g.Z(R?.sidePanel,D93)||g.Z(R?.sidePanel,bDK)?!0:!1}; NoK=function(b){var R;(R=!b)||(R=b.adSlotMetadata,R=!(R?.slotId!==void 0&&R?.slotType!==void 0));if(R||!(hX3(b)||b.slotEntryTrigger&&b.slotFulfillmentTriggers&&b.slotExpirationTriggers))return!1;b=b.fulfillmentContent?.fulfilledLayout;return(R=g.Z(b,fA))?d1(R):(R=g.Z(b,z5))?RXK(R):(R=g.Z(b,K83))?wQK(R):(R=g.Z(b,sAx))?rqe(R):(R=g.Z(b,$cT))?D3(R.adLayoutMetadata)?g.Z(R.renderingContent,bO)?!0:!1:!1:(R=g.Z(b,U1))?tu(R):(b=g.Z(b,IiT))?D3(b.adLayoutMetadata)?g.Z(b.renderingContent,j7)?!0:!1:!1:!1}; hX3=function(b){return(b=g.Z(b.fulfillmentContent?.fulfilledLayout,z5))&&b.adLayoutMetadata?.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"&&b.layoutExitNormalTriggers===void 0}; pgK=function(b){for(const R of b||[]){b=g.Z(R,G5);if(b===void 0||!NoK(b))break;if((b=g.Z(b.fulfillmentContent?.fulfilledLayout,U1))&&tu(b))return!0}return!1}; ai2=function(b,R=!1){if(!b.questions?.length||!b.playbackCommands||!R&&b.questions.length!==1)return!1;for(const h of b.questions)if(!lie(g.Z(h,g1)?.surveyAdQuestionCommon||g.Z(h,Wm)?.surveyAdQuestionCommon))return!1;return!0}; v_x=function(b){({instreamSurveyAdRenderer:b}=b?.playerOverlay||{});return b?b.playbackCommands&&b.questions&&b.questions.length===1?lie(g.Z(b.questions[0],g1)?.surveyAdQuestionCommon||g.Z(b.questions[0],Wm)?.surveyAdQuestionCommon):!1:!1}; lie=function(b){if(!b)return!1;b=g.Z(b.instreamAdPlayerOverlay,S7);const R=g.Z(b?.skipOrPreviewRenderer,C6),h=g.Z(b?.adInfoRenderer,nA);return(g.Z(b?.skipOrPreviewRenderer,E1)||R)&&h?!0:!1}; Bow=function(b){return b.linearAds!=null&&D3(b.adLayoutMetadata)}; HDP=function(b){return b.linearAd!=null&&b.adVideoStart!=null}; fiT=function(b,R,h){const K=(h.adSlots??[]).map(p=>g.Z(p,G5)); if(h.Jj)if(R.clientMetadata.rp("metadata_type_allow_pause_ad_break_request_slot_reschedule"))AB(b.G.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",()=>[],R.slotId); else{if(b.VX.get().A.L().N("h5_check_forecasting_renderer_for_throttled_midroll")){var I=h.n2.filter(p=>p.renderer?.clientForecastingAdRenderer!=null); I.length!==0?qbK(b.X,I,K,R.slotId,h.ssdaiAdsConfig):AB(b.G.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",()=>[],R.slotId)}else AB(b.G.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",()=>[],R.slotId); dcw(b.V,R)}else{I={Xe:Math.round(R.clientMetadata.rp("metadata_type_ad_break_request_data")?.Xe||0),IQ:R.clientMetadata.rp("metadata_type_ad_break_request_data")?.IQ};var N=R.clientMetadata.rp("metadata_type_cue_point");qbK(b.X,h.n2,K,R.slotId,h.ssdaiAdsConfig,I,N)}}; yQx=function(b,R){for(const h of R){if(h.slotType==="SLOT_TYPE_PLAYER_BYTES"&&h.fulfilledLayout)if(R=void 0,h.fulfilledLayout.renderingContent)R=h.fulfilledLayout.clientMetadata.rp("metadata_type_player_vars");else{if(h.fulfilledLayout.Sb)for(const K of h.fulfilledLayout.Sb)if(K.renderingContent&&(R=K.clientMetadata.rp("metadata_type_player_vars")))break}else R=void 0;if(R){b.xs.get().A.preloadVideoByPlayerVars(R,2,300);break}}}; jAq=function(b,R,h,K,I,N,p,l){const a=od(b.s9.get(),1);if(t8P(b.VX.get())){const v=T5(b.Y.get(),h,K,I,a.clientPlaybackNonce,a.I8,a.daiEnabled,a,N,p);yQx(b,v);AB(b.G.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",()=>v,R)}else AB(b.G.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",()=>T5(b.Y.get(),h,K,I,a.clientPlaybackNonce,a.I8,a.daiEnabled,a,N,p,l),R)}; iDq=function(b,R,h,K,I,N,p){R=AQD(R,N,Number(K.prefetchMilliseconds)||0,p);b=R instanceof V?R:Ju(b,K,I,R,h);return b instanceof V?b:[b]}; g_P=function(b,R,h,K,I){const N=iU(b.Y.get(),"SLOT_TYPE_AD_BREAK_REQUEST");K=[new zXP({getAdBreakUrl:K.getAdBreakUrl,Xe:0,IQ:0}),new UcD];b=R.pauseDurationMs?R.lactThresholdMs?{slotId:N,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new kA(b.G,N),slotFulfillmentTriggers:[new GEB(b.G)],slotExpirationTriggers:[new YA(b.G,I),new e7(b.G,N)],jY:"core",clientMetadata:new kv(K),adSlotLoggingData:h}:new V("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new V("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return b instanceof V?b:[b]}; hf=function(b,R,h){if(b.beforeContentVideoIdStartedTrigger)b=b.beforeContentVideoIdStartedTrigger?new O1(QV,R,b.id):new V("Not able to create BeforeContentVideoIdStartedTrigger");else if(b.layoutIdExitedTrigger)b=b.layoutIdExitedTrigger?.triggeringLayoutId?new xA(QV,b.layoutIdExitedTrigger.triggeringLayoutId,b.id):new V("Not able to create LayoutIdExitedTrigger");else if(b.layoutExitedForReasonTrigger)b.layoutExitedForReasonTrigger?.triggeringLayoutId&&b.layoutExitedForReasonTrigger?.layoutExitReason? (R=MnP(b.layoutExitedForReasonTrigger.layoutExitReason),b=R instanceof V?R:new mh(QV,b.layoutExitedForReasonTrigger.triggeringLayoutId,[R],b.id)):b=new V("Not able to create LayoutIdExitedForReasonTrigger");else if(b.onLayoutSelfExitRequestedTrigger)b=b.onLayoutSelfExitRequestedTrigger?.triggeringLayoutId?new Pm(QV,b.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,b.id):new V("Not able to create OnLayoutSelfExitRequestedTrigger");else if(b.onNewPlaybackAfterContentVideoIdTrigger)b=b.onNewPlaybackAfterContentVideoIdTrigger? new YA(QV,R,b.id):new V("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else if(b.skipRequestedTrigger)b=b.skipRequestedTrigger?.triggeringLayoutId?new Zn(QV,b.skipRequestedTrigger.triggeringLayoutId,b.id):new V("Not able to create SkipRequestedTrigger");else if(b.slotIdEnteredTrigger)b=b.slotIdEnteredTrigger?.triggeringSlotId?new cm(QV,b.slotIdEnteredTrigger.triggeringSlotId,b.id):new V("Not able to create SlotIdEnteredTrigger");else if(b.slotIdExitedTrigger)b=b.slotIdExitedTrigger?.triggeringSlotId? new e7(QV,b.slotIdExitedTrigger.triggeringSlotId,b.id):new V("Not able to create SkipRequestedTrigger");else if(b.surveySubmittedTrigger)b=b.surveySubmittedTrigger?.triggeringLayoutId?new uO(QV,b.surveySubmittedTrigger.triggeringLayoutId,b.id):new V("Not able to create SurveySubmittedTrigger");else if(b.mediaResumedTrigger)b=b.mediaResumedTrigger&&b.id?new W8K(b.id):new V("Not able to create MediaResumedTrigger");else if(b.closeRequestedTrigger)b=b.closeRequestedTrigger?.triggeringLayoutId?new Xi(QV, b.closeRequestedTrigger.triggeringLayoutId,b.id):new V("Not able to create CloseRequestedTrigger");else if(b.slotIdScheduledTrigger)b=b.slotIdScheduledTrigger?.triggeringSlotId?new kA(QV,b.slotIdScheduledTrigger.triggeringSlotId,b.id):new V("Not able to create SlotIdScheduledTrigger");else if(b.mediaTimeRangeTrigger){var K=Number(b.mediaTimeRangeTrigger?.offsetStartMilliseconds),I=Number(b.mediaTimeRangeTrigger?.offsetEndMilliseconds);isFinite(K)&&isFinite(I)?(I===-1&&(I=h),h=K>I?new V("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.", {offsetStartMs:K,offsetEndMs:I},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",I===h&&K-500<=I):new EB(K,I),b=h instanceof V?h:new VV(QV,R,h,!1,b.id)):b=new V("Not able to create MediaTimeRangeTrigger")}else b=b.contentVideoIdEndedTrigger?b.contentVideoIdEndedTrigger?new CA(QV,R,!1,b.id):new V("Not able to create ContentVideoIdEndedTrigger"):b.layoutIdEnteredTrigger?b.layoutIdEnteredTrigger?.triggeringLayoutId?new ML(QV,b.layoutIdEnteredTrigger.triggeringLayoutId,b.id):new V("Not able to create LayoutIdEnteredTrigger"): b.timeRelativeToLayoutEnterTrigger?b.timeRelativeToLayoutEnterTrigger?.triggeringLayoutId?new r1(QV,Number(b.timeRelativeToLayoutEnterTrigger.durationMs),b.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,b.id):new V("Not able to create TimeRelativeToLayoutEnterTrigger"):b.onDifferentLayoutIdEnteredTrigger?b.onDifferentLayoutIdEnteredTrigger?.triggeringLayoutId&&b.onDifferentLayoutIdEnteredTrigger.slotType&&b.onDifferentLayoutIdEnteredTrigger.layoutType?new LA(QV,b.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId, b.onDifferentLayoutIdEnteredTrigger.slotType,b.onDifferentLayoutIdEnteredTrigger.layoutType,b.id):new V("Not able to create CloseRequestedTrigger"):b.liveStreamBreakStartedTrigger?b.liveStreamBreakStartedTrigger&&b.id?new w1(QV,b.id):new V("Not able to create LiveStreamBreakStartedTrigger"):b.liveStreamBreakEndedTrigger?b.liveStreamBreakEndedTrigger&&b.id?new Fi(QV,b.id):new V("Not able to create LiveStreamBreakEndedTrigger"):b.liveStreamBreakScheduledDurationMatchedTrigger?b.liveStreamBreakScheduledDurationMatchedTrigger?.breakDurationMs? new os(Number(b.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,b.id):new V("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger"):b.liveStreamBreakScheduledDurationNotMatchedTrigger?b.liveStreamBreakScheduledDurationNotMatchedTrigger?.breakDurationMs?new Dn(Number(b.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,b.id):new V("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger"):b.newSlotScheduledWithBreakDurationTrigger? b.newSlotScheduledWithBreakDurationTrigger?.breakDurationMs?new bS(Number(b.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,b.id):new V("Not able to create NewSlotScheduledWithBreakDurationTrigger"):b.prefetchCacheExpiredTrigger?new RN(QV,b.id):new V("Not able to convert an AdsControlflowTrigger.");return b}; KJ=function(b,R){R.G>=2&&(b.slot_pos=R.adPodIndex);b.autoplay="1"}; E_x=function(b,R,h,K,I,N,p,l){return R===null?new V("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:R,ActionCompanionAdRenderer:K}):[Sbx(b,R,p,N,a=>{var v=a.slotId;a=l(a);var B=K.adLayoutLoggingData;const H=new kv([new n_H(K),new s6(I)]);v=lU(h.Y.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",v);const q={layoutId:v,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",jY:"core"};return{layoutId:v,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",IT:new Map, layoutExitNormalTriggers:[new YA(h.G,p)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],jY:"core",clientMetadata:H,qj:a(q),adLayoutLoggingData:B}})]}; JQx=function(b,R,h,K,I,N,p,l){return R===null?new V("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:R,TopBannerImageTextIconButtonedLayoutViewModel:K}):[Sbx(b,R,p,N,a=>{var v=a.slotId;a=l(a);var B=K.adLayoutLoggingData;const H=new kv([new ToD(K),new s6(I)]);v=lU(h.Y.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",v);const q={layoutId:v,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",jY:"core"};return{layoutId:v,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", IT:new Map,layoutExitNormalTriggers:[new YA(h.G,p)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],jY:"core",clientMetadata:H,qj:a(q),adLayoutLoggingData:B}})]}; ODT=function(b,R,h,K,I,N){if(!N)for(const p of R)$4(b,p.renderer,p.config.adPlacementConfig.kind);b=Array.from(b.values()).filter(p=>kED(p)); R=[];for(const p of b)for(const l of p.im)N=a=>l.NQ(a,p.instreamVideoAdRenderer.elementId,l.sM),l.isContentVideoCompanion?R.push(YbB(h,K,I,p.instreamVideoAdRenderer.elementId,l.associatedCompositePlayerBytesLayoutId,l.adSlotLoggingData,N)):b.length>1?R.push(eXe(h,K,I,p.instreamVideoAdRenderer.elementId,l.adSlotLoggingData,a=>l.NQ(a,p.instreamVideoAdRenderer.elementId,l.sM,l.associatedCompositePlayerBytesLayoutId))):R.push(eXe(h,K,I,p.instreamVideoAdRenderer.elementId,l.adSlotLoggingData,N)); return R}; $4=function(b,R,h){if(R=QAx(R))for(const K of R)K&&K.externalVideoId?(R=IN(b,K.externalVideoId),R.instreamVideoAdRenderer||(R.instreamVideoAdRenderer=K,R.dl=h)):u2("InstreamVideoAdRenderer without externalVideoId")}; QAx=function(b){const R=[],h=b.sandwichedLinearAdRenderer&&b.sandwichedLinearAdRenderer.linearAd&&g.Z(b.sandwichedLinearAdRenderer.linearAd,vm);if(h)return R.push(h),R;if(b.instreamVideoAdRenderer)return R.push(b.instreamVideoAdRenderer),R;if(b.linearAdSequenceRenderer&&b.linearAdSequenceRenderer.linearAds){for(const K of b.linearAdSequenceRenderer.linearAds)g.Z(K,vm)&&R.push(g.Z(K,vm));return R}return null}; kED=function(b){if(b.instreamVideoAdRenderer===void 0)return u2("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(const R of b.im){if(R.NQ===void 0)return!1;if(R.sM===void 0)return u2("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(b.dl===void 0||R.Hm===void 0||b.dl!==R.Hm&&R.Hm!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(b.instreamVideoAdRenderer.elementId===void 0)return u2("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:b.dl,"matching APSR kind":R.Hm}),!1}return!0}; IN=function(b,R){b.has(R)||b.set(R,{instreamVideoAdRenderer:void 0,dl:void 0,adVideoId:R,im:[]});return b.get(R)}; NI=function(b,R,h,K,I,N,p,l,a){I?IN(b,I).im.push({qpH:R,Hm:h,isContentVideoCompanion:K,sM:p,associatedCompositePlayerBytesLayoutId:N,adSlotLoggingData:l,NQ:a}):u2("Companion AdPlacementSupportedRenderer without adVideoId")}; pJ=function(b){let R=0;for(const h of b.questions)(b=g.Z(h,g1)||g.Z(h,Wm))&&(R+=b.surveyAdQuestionCommon?.durationMilliseconds||0);return R}; lS=function(b){var R=g.Z(b.questions?.[0],g1)?.surveyAdQuestionCommon||g.Z(b.questions?.[0],Wm)?.surveyAdQuestionCommon;R=[...(b.playbackCommands?.instreamAdCompleteCommands||[]),...(R?.timeoutCommands||[])];return{impressionCommands:b.playbackCommands?.impressionCommands,errorCommands:b.playbackCommands?.errorCommands,muteCommands:b.playbackCommands?.muteCommands,unmuteCommands:b.playbackCommands?.unmuteCommands,pauseCommands:b.playbackCommands?.pauseCommands,rewindCommands:b.playbackCommands?.rewindCommands, resumeCommands:b.playbackCommands?.resumeCommands,skipCommands:b.playbackCommands?.skipCommands,progressCommands:b.playbackCommands?.progressCommands,EsY:b.playbackCommands?.clickthroughCommands,fullscreenCommands:b.playbackCommands?.fullscreenCommands,activeViewViewableCommands:b.playbackCommands?.activeViewViewableCommands,activeViewMeasurableCommands:b.playbackCommands?.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:b.playbackCommands?.activeViewFullyViewableAudibleHalfDurationCommands, activeViewAudioAudibleCommands:b.playbackCommands?.activeViewTracking?.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:b.playbackCommands?.activeViewTracking?.activeViewAudioMeasurableCommands,endFullscreenCommands:b.playbackCommands?.endFullscreenCommands,abandonCommands:b.playbackCommands?.abandonCommands,completeCommands:R}}; P1T=function(b,R,h,K,I,N,p){return(l,a)=>xcT(b,a.slotId,l,N,(v,B)=>{var H=a.layoutId;v=p(v);return aN(R,H,B,I,v,"LAYOUT_TYPE_SURVEY",[new mcK(h),K],h.adLayoutLoggingData)})}; XgP=function(b,R,h,K,I,N,p){if(!ZD2(b))return new V("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:b});const l=b.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[cQP(N,R,h,K,a=>{var v=a.slotId;a=p(a);v=lU(I.Y.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",v);const B={layoutId:v,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",jY:"core"},H=new xA(I.G,K);return{layoutId:v,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",IT:new Map,layoutExitNormalTriggers:[H], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],jY:"core",clientMetadata:new kv([new uhP(l)]),qj:a(B)}})]}; ZD2=function(b){b=g.Z(b?.additionalPlayerOverlay,V8q);if(!b)return!1;const R=b.slidingMessages;return b.title&&R&&R.length!==0?!0:!1}; L8B=function(b,R,h,K,I){if(!b.playerOverlay?.instreamSurveyAdRenderer)return()=>[]; if(!v_x(b))return()=>new V("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:b}); const N=b.playerOverlay.instreamSurveyAdRenderer,p=pJ(N);return p<=0?()=>new V("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:N}):(l,a)=>{const v=C1e(l,h,K,B=>{var H=B.slotId; B=a(B);var q=lS(N);H=lU(I.Y.get(),"LAYOUT_TYPE_SURVEY",H);const d={layoutId:H,layoutType:"LAYOUT_TYPE_SURVEY",jY:"core"},t=new xA(I.G,K),S=new Zn(I.G,H),J=new uO(I.G,H),e=new M83(I.G);return{layoutId:H,layoutType:"LAYOUT_TYPE_SURVEY",IT:new Map,layoutExitNormalTriggers:[t,e],layoutExitSkipTriggers:[S],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[J],layoutExitUserCancelledTriggers:[],jY:"core",clientMetadata:new kv([new rQx(N),new s6(R),new v4(p/1E3),new B4(q)]),qj:B(d),adLayoutLoggingData:N.adLayoutLoggingData}}); l=XgP(b,h,v.slotId,K,I,l,a);return l instanceof V?l:[v,...l]}}; hG3=function(b,R,h,K,I,N,p){const l=[];try{let a,v=[];if(h.renderer.linearAdSequenceRenderer)a=H=>{H=wg2(H.slotId,h,R,I(H),K,N);v=H.uM;return H.Fl}; else if(h.renderer.instreamVideoAdRenderer)a=H=>{var q=H.slotId;H=I(H);const d=h.config.adPlacementConfig,{wL:t,Cf:S}=F8x(d);var J=h.renderer.instreamVideoAdRenderer;if(J?.playerOverlay?.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var e=H4(J);const Y=Math.min(t+e.videoLengthSeconds*1E3,S),Q=new qI(0,[e.videoLengthSeconds]);var P=e.videoLengthSeconds,$B=e.playerVars,IK=e.instreamAdPlayerOverlayRenderer,Pe=e.playerOverlayLayoutRenderer,U3=e.adVideoId, Zx=o_P(h),Cw=e.IT;e=e.eH;var Ee=J?.adLayoutLoggingData;J=J?.sodarExtensionData;q=lU(R.Y.get(),"LAYOUT_TYPE_MEDIA",q);const ce={layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA",jY:"core"};return{layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA",IT:Cw,layoutExitNormalTriggers:[new Fi(R.G)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],jY:"core",clientMetadata:new kv([new dO(K),new fJ(P),new yw($B),new tf(t),new jK(Y),IK&&new Af(IK),Pe&& new iS(Pe),new s6(d),new zi(U3),new U6(Q),new Gi(Zx),J&&new gO(J),new W4({current:null}),new SK,new nJ(e)].filter(Dcx)),qj:H(ce),adLayoutLoggingData:Ee}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");const B=bXw(b,K,h.adSlotLoggingData,a,p);l.push(B);for(const H of v){const q=H(b,I);if(q instanceof V)return q;l.push(...q)}}catch(a){return new V(a,{errorMessage:a.message,AdPlacementRenderer:h,numberOfSurveyRenderers:RGx(h)})}return l}; RGx=function(b){({linearAds:b}=b.renderer.linearAdSequenceRenderer||{});return b?.length?b.filter(R=>g.Z(R,vm)?.playerOverlay?.instreamSurveyAdRenderer!=null).length:0}; wg2=function(b,R,h,K,I,N){const p=R.config.adPlacementConfig,{wL:l,Cf:a}=F8x(p);var {linearAds:v}=R.renderer.linearAdSequenceRenderer||{};if(!v?.length)throw new TypeError("Expected linear ads");const B=[],H={Ur:l,K8:0,Mw:B};v=v.map(d=>KWx(b,d,H,h,K,p,I,a)).map((d,t)=>{t=new qI(t,B); return d(t)}); const q=v.map(d=>d.JJ); return{Fl:s$B(h,b,l,q,p,o_P(R),K,a,N),uM:v.map(d=>d.hL)}}; KWx=function(b,R,h,K,I,N,p,l){const a=H4(g.Z(R,vm)),v=h.Ur,B=h.K8,H=Math.min(v+a.videoLengthSeconds*1E3,l);h.Ur=H;h.K8++;h.Mw.push(a.videoLengthSeconds);const q=g.Z(R,vm)?.playerOverlay?.instreamSurveyAdRenderer;if(a.adVideoId==="nPpU29QrbiU"&&q==null)throw new TypeError("Survey slate media has no survey overlay");return d=>{KJ(a.playerVars,d);var t=a.videoLengthSeconds,S=a.playerVars,J=a.IT,e=a.eH,Y=a.instreamAdPlayerOverlayRenderer,Q=a.playerOverlayLayoutRenderer,P=a.adVideoId,$B=g.Z(R,vm)?.adLayoutLoggingData, IK=g.Z(R,vm)?.sodarExtensionData;const Pe=lU(K.Y.get(),"LAYOUT_TYPE_MEDIA",b),U3={layoutId:Pe,layoutType:"LAYOUT_TYPE_MEDIA",jY:"adapter"};d={layoutId:Pe,layoutType:"LAYOUT_TYPE_MEDIA",IT:J,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],jY:"adapter",clientMetadata:new kv([new dO(p),new fJ(t),new yw(S),new tf(v),new jK(H),new E6(B),new W4({current:null}),Y&&new Af(Y),Q&&new iS(Q),new s6(N),new zi(P), new U6(d),IK&&new gO(IK),q&&new $je(q),new SK,new nJ(e)].filter(Dcx)),qj:I(U3),adLayoutLoggingData:$B};t=L8B(g.Z(R,vm),N,p,d.layoutId,K);return{JJ:d,hL:t}}}; H4=function(b){if(!b)throw new TypeError("Expected instream video ad renderer");if(!b.playerVars)throw new TypeError("Expected player vars in url encoded string");const R=AQ(b.playerVars);var h=Number(R.length_seconds);if(isNaN(h))throw new TypeError("Expected valid length seconds in player vars");var K=Number(b.trimmedMaxNonSkippableAdDurationMs);h=isNaN(K)?h:Math.min(h,K/1E3);({instreamAdPlayerOverlayRenderer:K=null}=b.playerOverlay||{});const {playerOverlayLayoutRenderer:I=null}=b.playerOverlay|| {};var N=R.video_id;N||(N=(N=b.externalVideoId)?N:void 0);if(!N)throw new TypeError("Expected valid video id in IVAR");return{playerVars:R,videoLengthSeconds:h,instreamAdPlayerOverlayRenderer:K,playerOverlayLayoutRenderer:I,adVideoId:N,IT:b.pings?Tc(b.pings):new Map,eH:Ev(b.pings)}}; o_P=function(b){b=Number(b.driftRecoveryMs);return isNaN(b)||b<=0?null:b}; F8x=function(b){const {offsetStartMilliseconds:R,offsetEndMilliseconds:h}=b.adTimeOffset||{};b=Number(R);if(isNaN(b))throw new TypeError("Expected valid start offset");const K=Number(h);if(isNaN(K))throw new TypeError("Expected valid end offset");return{wL:b,Cf:K}}; I5B=function(b){const R=b.clientMetadata.rp("metadata_type_player_bytes_callback_ref")?.current;if(!R)return null;const h=b.clientMetadata.rp("metadata_type_ad_pod_skip_target_callback_ref");var K=b.layoutId,I=b.clientMetadata.rp("metadata_type_content_cpn"),N=b.clientMetadata.rp("metadata_type_instream_ad_player_overlay_renderer"),p=b.clientMetadata.rp("metadata_type_player_underlay_renderer"),l=b.clientMetadata.rp("metadata_type_ad_placement_config"),a=b.clientMetadata.rp("metadata_type_video_length_seconds"); var v=GM(b.clientMetadata,"metadata_type_layout_enter_ms")&&GM(b.clientMetadata,"metadata_type_layout_exit_ms")?(b.clientMetadata.rp("metadata_type_layout_exit_ms")-b.clientMetadata.rp("metadata_type_layout_enter_ms"))/1E3:void 0;return{wz:K,contentCpn:I,W6:R,Kd:h,instreamAdPlayerOverlayRenderer:N,instreamAdPlayerUnderlayRenderer:p,adPlacementConfig:l,videoLengthSeconds:a,Iq:v,inPlayerLayoutId:b.clientMetadata.rp("metadata_type_linked_in_player_layout_id"),inPlayerSlotId:b.clientMetadata.rp("metadata_type_linked_in_player_slot_id")}}; l5x=function(b,R,h,K,I,N,p,l,a,v,B,H,q,d,t){K=iU(K,"SLOT_TYPE_PLAYER_BYTES");b=Njw(I,b,p,h,K,a,v);if(b instanceof V)return b;v=b.clientMetadata.rp("metadata_type_fulfilled_layout")?.layoutId;if(!v)return new V("Invalid adNotify layout");R=puH(v,I,N,h,l,R,a,B,H,q,d,t,p);return R instanceof V?R:[b,...R]}; puH=function(b,R,h,K,I,N,p,l,a,v,B,H,q){h=a5K(R,h,K,N,p,l,a,v,B,H,q);if(h instanceof V)return h;b=vEP(R,b,p,I,h);return b instanceof V?b:[...b.S6,b.ZG]}; HXB=function(b,R,h,K,I,N,p,l,a,v,B,H,q,d){R=a5K(b,R,h,I,N,l,a,v,B,H,q,d);if(R instanceof V)return R;b=Bjx(b,h,N,p,K,l.AO,R);return b instanceof V?b:b.S6.concat(b.ZG)}; a5K=function(b,R,h,K,I,N,p,l,a,v,B,H){const q=Ti(K);return q instanceof FI?new V(q):v.A.L().experiments.O9("html5_refactor_in_player_slot_generation")?d=>{var t=new qI(0,[q.xG]);d=q7T(R,q.layoutId,q.Nt,h,Jf(q.playerVars,q.wH,N,a,t),q.xG,I,t,p(d),l.get(q.Nt.externalVideoId),H);t=[];if(q.Nt.playerOverlay.instreamAdPlayerOverlayRenderer){const S=I5B(d);if(!S)return u2("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,d),{layout:d,S6:[]};t=[djK(b, S.contentCpn,S.wz,J=>k4(R,J.slotId,"core",S,Jj(B,J)),S.inPlayerSlotId), ...t];if(S.instreamAdPlayerUnderlayRenderer&&Y4(v)){const J=S.instreamAdPlayerUnderlayRenderer;t=[f5T(b,S.contentCpn,S.wz,e=>yNx(R,e.slotId,J,S.adPlacementConfig,S.wz,Jj(B,e))), ...t]}}return{layout:d,S6:t}}:d=>{const t=new qI(0,[q.xG]); return{layout:q7T(R,q.layoutId,q.Nt,h,Jf(q.playerVars,q.wH,N,a,t),q.xG,I,t,p(d),l.get(q.Nt.externalVideoId),H),S6:[]}}}; Ti=function(b){if(!b.playerVars)return new FI("No playerVars available in InstreamVideoAdRenderer.");if(b.elementId==null||b.playerVars==null||b.playerOverlay==null||b.playerOverlay?.instreamAdPlayerOverlayRenderer==null&&b.playerOverlay?.playerOverlayLayoutRenderer==null||b.pings==null||b.externalVideoId==null)return new FI("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:b});const R=AQ(b.playerVars);let h=Number(R.length_seconds);isNaN(h)&&(h=0,u2("Expected valid length seconds in player vars but got NaN")); return{layoutId:b.elementId,Nt:b,playerVars:R,wH:b.playerVars,xG:h}}; Jf=function(b,R,h,K,I){b.iv_load_policy=K;R=AQ(R);if(R.cta_conversion_urls)try{b.cta_conversion_urls=JSON.parse(R.cta_conversion_urls)}catch(N){u2(N)}h.wR&&(b.ctrl=h.wR);h.Nf&&(b.ytr=h.Nf);h.F8&&(b.ytrcc=h.F8);h.isMdxPlayback&&(b.mdx="1");b.vvt&&(b.vss_credentials_token=b.vvt,h.SR&&(b.vss_credentials_token_type=h.SR),h.mdxEnvironment&&(b.mdx_environment=h.mdxEnvironment));KJ(b,I);return b}; tPx=function(b){const R=new Map;for(const h of b)(b=h.renderer.remoteSlotsRenderer)&&b.hostElementId&&R.set(b.hostElementId,b);return R}; eK=function(b){return b.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; j$T=function(b){return b!=null}; nE3=function(b,R,h,K,I,N,p,l,a,v,B,H,q,d,t){const S=[];for(const P of b){if(hX3(P))continue;if(P?.adSlotMetadata?.slotType==="SLOT_TYPE_IN_PLAYER")continue;var J=ANK(P,K,h.I8);if(J instanceof V)return J;var e={slotId:P.adSlotMetadata.slotId,slotType:P.adSlotMetadata.slotType,slotPhysicalPosition:P.adSlotMetadata.slotPhysicalPosition??1,jY:"core",slotEntryTrigger:J.slotEntryTrigger,slotFulfillmentTriggers:J.slotFulfillmentTriggers,slotExpirationTriggers:J.slotExpirationTriggers},Y=g.Z(P.fulfillmentContent.fulfilledLayout, fA);if(Y){if(!d1(Y))return new V("Invalid PlayerBytesAdLayoutRenderer");var Q=H&&!(eK(P)&&P.slotEntryTrigger.beforeContentVideoIdStartedTrigger);J=J.slotFulfillmentTriggers.some($B=>$B instanceof os); Y=Q?iXq(e,P.adSlotMetadata.triggerEvent,Y,h,K,N,b,q,J,a,d):zGe(e,P.adSlotMetadata.triggerEvent,Y,R,h,K,I,N,p,l,a,v,b,B,P.adSlotMetadata.triggeringSourceLayoutId);if(Y instanceof V)return Y;J=[];t?J.push(new O6({current:t})):J.push(new O6({current:null}));eK(P)&&J.push(new Qw({iW:eK(P)&&!!P.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));Q&&J.push(new SK);h.AO&&J.push(new Uj3({}));e={...e,clientMetadata:new kv(J),fulfilledLayout:Y.layout,adSlotLoggingData:P.adSlotMetadata.adSlotLoggingData}; S.push(...Y.S6);S.push(e);continue}if(Q=g.Z(P.fulfillmentContent.fulfilledLayout,z5)){if(!RXK(Q))return new V("Invalid PlayerUnderlayAdLayoutRenderer");Q=GJs(Q,K,h.I8,N,e,P.adSlotMetadata.triggerEvent,P.adSlotMetadata.triggeringSourceLayoutId);if(Q instanceof V)return Q;e={...e,clientMetadata:new kv([]),fulfilledLayout:Q,adSlotLoggingData:P.adSlotMetadata.adSlotLoggingData};S.push(e);continue}if(Q=g.Z(P.fulfillmentContent.fulfilledLayout,IiT)){if(!D3(Q.adLayoutMetadata)||!g.Z(Q.renderingContent,j7))return new V("Invalid InPlayerOrganicOverlayAdLayoutRenderer"); Q=Q.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PLAYER_ORGANIC_BANNER_OVERLAY"?gE3(Q,K,h.I8,N,e):new V(`LayoutType [${Q.adLayoutMetadata.layoutType}] is invalid for InPlayerOrganicOverlaySlot`);if(Q instanceof V)return Q;e={...e,clientMetadata:new kv([]),fulfilledLayout:Q,adSlotLoggingData:P.adSlotMetadata.adSlotLoggingData};S.push(e);continue}if(Q=g.Z(P.fulfillmentContent.fulfilledLayout,sAx)){if(!rqe(Q))return new V("Invalid AboveFeedAdLayoutRenderer");Q=WWK(Q,K,h.I8,N,e,P.adSlotMetadata.triggerEvent, P.adSlotMetadata.triggeringSourceLayoutId);if(Q instanceof V)return Q;e={...e,clientMetadata:new kv([]),fulfilledLayout:Q,adSlotLoggingData:P.adSlotMetadata.adSlotLoggingData};S.push(e);continue}if(Q=g.Z(P.fulfillmentContent.fulfilledLayout,$cT)){if(!D3(Q.adLayoutMetadata)||!g.Z(Q.renderingContent,bO))return new V("Invalid BelowPlayerAdLayoutRenderer");Q=WWK(Q,K,h.I8,N,e,P.adSlotMetadata.triggerEvent,P.adSlotMetadata.triggeringSourceLayoutId);if(Q instanceof V)return Q;e={...e,clientMetadata:new kv([]), fulfilledLayout:Q,adSlotLoggingData:P.adSlotMetadata.adSlotLoggingData};S.push(e);continue}if(Q=g.Z(P.fulfillmentContent.fulfilledLayout,U1)){if(!tu(Q))return new V("Invalid PlayerBytesSequenceItemAdLayoutRenderer");Q=S7H(Q,K,h.I8,N,e,P.adSlotMetadata.triggerEvent);if(Q instanceof V)return Q;e={...e,clientMetadata:new kv([]),fulfilledLayout:Q,adSlotLoggingData:P.adSlotMetadata.adSlotLoggingData};S.push(e)}else return new V(`Unable to retrieve a client slot [${e.slotType}] from a given AdSlotRenderer`)}return S}; S7H=function(b,R,h,K,I,N){const p={layoutId:b.adLayoutMetadata.layoutId,layoutType:b.adLayoutMetadata.layoutType,jY:"core"};R=x4(b,R,h);return R instanceof V?R:(h=g.Z(b.renderingContent,yV))&&h.pings?{...p,renderingContent:b.renderingContent,IT:Tc(h.pings),...R,qj:Jj(K,I)(p),clientMetadata:new kv([new s6(m3(N)),new B4({progressCommands:h.progressCommands})]),adLayoutLoggingData:b.adLayoutMetadata.adLayoutLoggingData}:new V("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")}; WWK=function(b,R,h,K,I,N,p){const l={layoutId:b.adLayoutMetadata.layoutId,layoutType:b.adLayoutMetadata.layoutType,jY:"core"};R=x4(b,R,h);if(R instanceof V)return R;h=[];h.push(new s6(m3(N)));N==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&p!==void 0&&h.push(new P4(p));return{...l,renderingContent:b.renderingContent,IT:new Map([["impression",g.Z(b.renderingContent,hu)?g.Z(b.renderingContent,hu)?.impressionPings||[]:g.Z(b.renderingContent,bO)?g.Z(b.renderingContent,bO)?.impressionPings||[]:g.Z(b.renderingContent, Rs)?g.Z(b.renderingContent,Rs)?.impressionPings||[]:[]]]),...R,qj:Jj(K,I)(l),clientMetadata:new kv(h),adLayoutLoggingData:b.adLayoutMetadata.adLayoutLoggingData}}; GJs=function(b,R,h,K,I,N,p){if(b.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")a:{var l=g.Z(b.renderingContent,Au);const a=g.Z(b.renderingContent,j7);p=new Map;if(l){p=g.Z(l.sidePanel,D93);if(!p){b=new V("DismissablePanelTextPortraitImageRenderer is missing");break a}p=new Map([["impression",p.impressionPings||[]],["resume",p.resumePings||[]]])}else if(!a){b=new V("AdsEngagementPanelSectionListViewModel is missing");break a}l={layoutId:b.adLayoutMetadata.layoutId, layoutType:b.adLayoutMetadata.layoutType,jY:"core"};R=x4(b,R,h);b=R instanceof V?R:{...l,renderingContent:b.renderingContent,IT:p,...R,qj:Jj(K,I)(l),clientMetadata:new kv([new s6(m3(N))]),adLayoutLoggingData:b.adLayoutMetadata.adLayoutLoggingData}}else b.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.Z(b.renderingContent,Fne)?(p={layoutId:b.adLayoutMetadata.layoutId,layoutType:b.adLayoutMetadata.layoutType,jY:"core"},R=x4(b,R,h),b=R instanceof V?R:{...p,renderingContent:b.renderingContent, IT:new Map,...R,qj:Jj(K,I)(p),clientMetadata:new kv([new s6(m3(N))]),adLayoutLoggingData:b.adLayoutMetadata.adLayoutLoggingData}):b=new V("CounterfactualRenderer is missing"):b.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?b=new V("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):b.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?b=new V("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):b.adLayoutMetadata.layoutType=== "LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.Z(b.renderingContent,iO)?(N={layoutId:b.adLayoutMetadata.layoutId,layoutType:b.adLayoutMetadata.layoutType,jY:"core"},R=x4(b,R,h),b=R instanceof V?R:p?{...N,renderingContent:b.renderingContent,IT:new Map,...R,qj:Jj(K,I)(N),clientMetadata:new kv([new P4(p)]),adLayoutLoggingData:b.adLayoutMetadata.adLayoutLoggingData}:new V("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):b=new V("DisplayUnderlayTextGridCardsLayoutViewModel is missing"): b.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.Z(b.renderingContent,j7)?(N={layoutId:b.adLayoutMetadata.layoutId,layoutType:b.adLayoutMetadata.layoutType,jY:"core"},R=x4(b,R,h),b=R instanceof V?R:{...N,renderingContent:b.renderingContent,IT:new Map([]),...R,qj:Jj(K,I)(N),adLayoutLoggingData:b.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new kv([])}):b=new V("AdsEngagementPanelSectionListViewModel is missing"):(b.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_IMAGE_QR_CODE"? l=new V("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):l=new V(`LayoutType [${b.adLayoutMetadata.layoutType}] is invalid for PlayerUnderlaySlot`),b=l);return b}; gE3=function(b,R,h,K,I){if(!g.Z(b.renderingContent,j7))return new V("AdsEngagementPanelSectionListViewModel is missing");const N={layoutId:b.adLayoutMetadata.layoutId,layoutType:b.adLayoutMetadata.layoutType,jY:"core"};R=x4(b,R,h);return R instanceof V?R:{...N,renderingContent:b.renderingContent,IT:new Map([]),...R,qj:Jj(K,I)(N),adLayoutLoggingData:b.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new kv([])}}; iXq=function(b,R,h,K,I,N,p,l,a,v,B){if(B?.Xe===void 0||B?.IQ===void 0)return new V("Cached ad break range from cue point is missing");var H=x4(h,I,K.I8);if(H instanceof V)return H;H={layoutExitMuteTriggers:[],layoutExitNormalTriggers:H.layoutExitNormalTriggers,layoutExitSkipTriggers:[],layoutExitUserCancelledTriggers:[],layoutExitUserInputSubmittedTriggers:[]};if(g.Z(h.renderingContent,vm))return b=EEe(b,R,h,H,I,N,p,K.I8,B.Xe,B.IQ,v),b instanceof V?b:b.HD===void 0?new V("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:b.layout,S6:[b.HD]};var q=g.Z(h.renderingContent,lO);if(q){if(!D3(h.adLayoutMetadata))return new V("Invalid ad layout metadata");if(!as(q))return new V("Invalid sequential layout");q=q.sequentialLayouts.map(d=>d.playerBytesAdLayoutRenderer); b=TjK(b,R,h,H,q,I,K,N,p,l,B.Xe,B.IQ,a,v);return b instanceof V?b:{layout:b.v5,S6:b.S6}}return new V("Not able to convert a sequential layout")}; TjK=function(b,R,h,K,I,N,p,l,a,v,B,H,q,d){var t=JNT(I,B,H);if(t instanceof V)return t;const S=[],J=[];for(const U3 of t){a:{var e=b,Y=I[U3.K8],Q=U3,P=R;t=N;var $B=p,IK=l,Pe=a;const Zx=ZF(Y);if(Zx instanceof V){t=Zx;break a}const Cw={layoutId:Y.adLayoutMetadata.layoutId,layoutType:Y.adLayoutMetadata.layoutType,jY:"adapter"};Q=kJs(P,Y,Q,t,void 0,d);if(Q instanceof V){t=Q;break a}e={...Cw,...c4,IT:Zx,renderingContent:Y.renderingContent,clientMetadata:new kv(Q),qj:Jj(IK,e)(Cw),adLayoutLoggingData:Y.adLayoutMetadata.adLayoutLoggingData}; t=(t=uS(Pe,e,t,$B.I8,IK,void 0,!0))?t instanceof V?t:{layout:e,HD:t}:new V("Expecting associatedInPlayerSlot")}if(t instanceof V)return t;S.push(t.layout);J.push(t.HD)}I={layoutId:h.adLayoutMetadata.layoutId,layoutType:h.adLayoutMetadata.layoutType,jY:"core"};R=[new Gi(Number(h.driftRecoveryMs)),new tf(B),new jK(H),new s6(m3(R)),new Y7s(v),new SK];q&&R.push(new eGT);return{v5:{...I,...K,Sb:S,IT:new Map,clientMetadata:new kv(R),qj:Jj(l,b)(I)},S6:J}}; EEe=function(b,R,h,K,I,N,p,l,a,v,B){if(!d1(h))return new V("Invalid PlayerBytesAdLayoutRenderer");const H=ZF(h);if(H instanceof V)return H;const q={layoutId:h.adLayoutMetadata.layoutId,layoutType:h.adLayoutMetadata.layoutType,jY:"core"};var d=g.Z(h.renderingContent,vm);if(!d)return new V("Invalid rendering content for DAI media layout");d=H4(d);a={gP:d,K8:0,Ur:a,nu:Math.min(a+d.videoLengthSeconds*1E3,v),qt:new qI(0,[d.videoLengthSeconds])};R=kJs(R,h,a,I,Number(h.driftRecoveryMs)??void 0,B);if(R instanceof V)return R;b={...q,...K,IT:H,renderingContent:h.renderingContent,clientMetadata:new kv(R),qj:Jj(N,b)(q),adLayoutLoggingData:h.adLayoutMetadata.adLayoutLoggingData};return(I=uS(p,b,I,l,N,void 0,!0))?I instanceof V?I:{layout:b,HD:I}:new V("Expecting associatedInPlayerSlot")}; zGe=function(b,R,h,K,I,N,p,l,a,v,B,H,q,d,t){const S=x4(h,N,I.I8);if(S instanceof V)return S;if(g.Z(h.renderingContent,vm)){a=OXB([h],I,a);if(a instanceof V)return a;if(a.length!==1)return new V("Only expected one media layout.");b=Q$B(b,R,h,S,a[0],void 0,"core",K,N,p,l,v,q,d,I.I8,void 0,t);return b instanceof V?b:{layout:b.layout,S6:b.HD?[b.HD]:[]}}var J=g.Z(h.renderingContent,lO);if(J){if(!D3(h.adLayoutMetadata))return new V("Invalid ad layout metadata");if(!as(J))return new V("Invalid sequential layout"); J=J.sequentialLayouts.map(e=>e.playerBytesAdLayoutRenderer); b=xjH(b,R,h.adLayoutMetadata,S,J,K,N,I,a,p,l,v,B,H,q,d,t);return b instanceof V?b:{layout:b.v5,S6:b.S6}}return new V("Not able to convert a sequential layout")}; xjH=function(b,R,h,K,I,N,p,l,a,v,B,H,q,d,t,S,J){const e=new Vw({current:null}),Y=OXB(I,l,a);if(Y instanceof V)return Y;a=[];const Q=[];var P=void 0;for(let Zx=0;Zx0&&(Y.push(S),Y.push(new oN(IK.adPodSkipTarget)));(N=v.get(IK.externalVideoId))&&Y.push(new DF(N));N=Y}else N=new V("Invalid vod media renderer")}if(N instanceof V)return N;b={...p,...K,IT:e,renderingContent:h.renderingContent,clientMetadata:new kv(N),qj:Jj(B,b)(p),adLayoutLoggingData:h.adLayoutMetadata.adLayoutLoggingData};h=g.Z(h.renderingContent, vm);if(!h||!pA(h))return new V("Invalid meida renderer");H=IN(H,h.externalVideoId);H.instreamVideoAdRenderer=h;H.dl="AD_PLACEMENT_KIND_START";return d?(a=uS(q,b,a,t,B,S,!1),a instanceof V?a:uOB(b.layoutId,q)&&a?{layout:{...b,clientMetadata:new kv(N.concat(new MP3(a)))}}:{layout:b,HD:a}):{layout:b}}; PGT=function(b,R,h,K,I){if(!d1(R))return new V("Invalid PlayerBytesAdLayoutRenderer");const N=g.Z(R.renderingContent,M1);if(!N||N.durationMilliseconds===void 0)return new V("Invalid endcap renderer");const p={layoutId:R.adLayoutMetadata.layoutId,layoutType:R.adLayoutMetadata.layoutType,jY:"adapter"};K=[new bp(N.durationMilliseconds),new B4({impressionCommands:void 0,abandonCommands:N.abandonCommands?[{commandExecutorCommand:N.abandonCommands}]:void 0,completeCommands:N.completionCommands}),new s6(K), new R0("LAYOUT_TYPE_ENDCAP")];I&&(K.push(new LJ(I.qt.adPodIndex-1)),K.push(new E6(I.qt.adPodIndex)),K.push(new oN(I.adPodSkipTarget??-1)));return{...p,...c4,renderingContent:R.renderingContent,clientMetadata:new kv(K),IT:N.skipPings?new Map([["skip",N.skipPings]]):new Map,qj:Jj(h,b)(p),adLayoutLoggingData:R.adLayoutMetadata.adLayoutLoggingData}}; uS=function(b,R,h,K,I,N,p){b=b.filter(H=>H.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&H.adSlotMetadata.triggeringSourceLayoutId===R.layoutId); if(b.length!==0){if(b.length!==1)return new V("Invalid InPlayer slot association for the given PlayerBytes layout");var l=b[0];b=ANK(l,h,K);if(b instanceof V)return b;b={slotId:l.adSlotMetadata.slotId,slotType:l.adSlotMetadata.slotType,slotPhysicalPosition:l.adSlotMetadata.slotPhysicalPosition??1,jY:"core",slotEntryTrigger:b.slotEntryTrigger,slotFulfillmentTriggers:b.slotFulfillmentTriggers,slotExpirationTriggers:b.slotExpirationTriggers};var a=g.Z(l.fulfillmentContent.fulfilledLayout,K83);if(!a|| !wQK(a))return new V("Invalid InPlayerAdLayoutRenderer");var v={layoutId:a.adLayoutMetadata.layoutId,layoutType:a.adLayoutMetadata.layoutType,jY:"core"};h=x4(a,h,K);if(h instanceof V)return h;K=[];var B=a.adLayoutMetadata.layoutType;p&&K.push(new SK);if(B==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")K.push(...rNT(l.adSlotMetadata.triggerEvent,R)),(N=LWB(h,R.layoutId))&&K.push(new wuT(N));else if(B==="LAYOUT_TYPE_ENDCAP"||B==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED"){K.push(new s6(m3(l.adSlotMetadata.triggerEvent))); if(B==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED")return new V("Cannot parse endcap layout since AdUxReadyApi is not provided");N&&K.push(N)}else return new V("Not able to parse an SDF InPlayer layout");I={...v,...h,renderingContent:a.renderingContent,IT:new Map,qj:Jj(I,b)(v),clientMetadata:new kv(K),adLayoutLoggingData:a.adLayoutMetadata.adLayoutLoggingData};return{...b,fulfilledLayout:I,clientMetadata:new kv([])}}}; rNT=function(b,R){const h=[];h.push(new s6(m3(b)));h.push(new P4(R.layoutId));(b=R.clientMetadata.rp("metadata_type_player_bytes_callback_ref"))&&h.push(new W4(b));(b=R.clientMetadata.rp("metadata_type_ad_pod_skip_target_callback_ref"))&&h.push(new Vw(b));(b=R.clientMetadata.rp("metadata_type_remote_slots_data"))&&h.push(new DF(b));(b=R.clientMetadata.rp("metadata_type_ad_next_params"))&&h.push(new wO(b));(b=R.clientMetadata.rp("metadata_type_ad_video_clickthrough_endpoint"))&&h.push(new FR(b));(b= R.clientMetadata.rp("metadata_type_ad_pod_info"))&&h.push(new U6(b));(R=R.clientMetadata.rp("metadata_type_ad_video_id"))&&h.push(new zi(R));return h}; ZXP=function(b,R,h,K,I,N){const p=K.NK.inPlayerSlotId,l=v=>hM(R,v),a={layoutId:K.NK.inPlayerLayoutId, layoutType:"LAYOUT_TYPE_ENDCAP",jY:"core"};h={slotId:p,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,jY:"core",slotEntryTrigger:new ML(l,b),slotFulfillmentTriggers:[new cm(l,p)],slotExpirationTriggers:[new e7(l,p),new YA(l,h)]};b={...a,layoutExitNormalTriggers:[new xA(l,b)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],IT:new Map,clientMetadata:new kv([new FWe(K.NK),new s6(K.adPlacementConfig),I]),qj:Jj(N,h)(a), adLayoutLoggingData:K.NK.adLayoutLoggingData};return{...h,clientMetadata:new kv([new Kg(b)])}}; uOB=function(b,R){for(const h of R)if(h.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){R=g.Z(h.fulfillmentContent.fulfilledLayout,z5);if(!R)continue;if((R=g.Z(R.renderingContent,Au))&&R.associatedPlayerBytesLayoutId===b)return h}}; ANK=function(b,R,h){const K=hf(b.slotEntryTrigger,R,h);if(K instanceof V)return K;const I=[];for(var N of b.slotFulfillmentTriggers){const p=hf(N,R,h);if(p instanceof V)return p;I.push(p)}N=[];for(const p of b.slotExpirationTriggers){b=hf(p,R,h);if(b instanceof V)return b;N.push(b)}return{slotEntryTrigger:K,slotFulfillmentTriggers:I,slotExpirationTriggers:N}}; x4=function(b,R,h){const K=[];for(var I of b.layoutExitNormalTriggers||[]){var N=hf(I,R,h);if(N instanceof V)return N;K.push(N)}I=[];for(var p of b.layoutExitSkipTriggers||[]){N=hf(p,R,h);if(N instanceof V)return N;I.push(N)}p=[];for(var l of b.layoutExitMuteTriggers||[]){N=hf(l,R,h);if(N instanceof V)return N;p.push(N)}l=[];for(const a of b.layoutExitUserInputSubmittedTriggers||[]){b=hf(a,R,h);if(b instanceof V)return b;l.push(b)}return{layoutExitNormalTriggers:K,layoutExitSkipTriggers:I,layoutExitMuteTriggers:p, layoutExitUserInputSubmittedTriggers:l,layoutExitUserCancelledTriggers:[]}}; ZF=function(b){const R=g.Z(b.renderingContent,vm);if(R?.pings)return Tc(R.pings);b=g.Z(b.renderingContent,M1);return b?.skipPings?new Map([["skip",b.skipPings]]):new Map}; kJs=function(b,R,h,K,I,N){R=g.Z(R.renderingContent,vm);if(!R)return new V("Invalid rendering content for DAI media layout");b=[new dO(K),new fJ(h.gP.videoLengthSeconds),...(sF(N)?[new B4({impressionCommands:R.impressionCommands,abandonCommands:R.onAbandonCommands,completeCommands:R.completeCommands,progressCommands:R.adVideoProgressCommands})]:[]),new yw(h.gP.playerVars),new tf(h.Ur),new jK(h.nu),new E6(h.K8),new s6(m3(b)),new zi(h.gP.adVideoId),new U6(h.qt),R.sodarExtensionData&&new gO(R.sodarExtensionData), new W4({current:null}),new SK,new nJ(Ev(R.pings))].filter(j$T);I!==void 0&&b.push(new Gi(I));return b}; JNT=function(b,R,h){b=b.map(a=>H4(g.Z(a.renderingContent,vm))); const K=b.map(a=>a.videoLengthSeconds),I=K.map((a,v)=>new qI(v,K)); let N=R,p=h;const l=[];b.forEach((a,v)=>{p=Math.min(N+a.videoLengthSeconds*1E3,h);KJ(a.playerVars,I[v]);l.push({gP:a,Ur:N,nu:p,K8:v,qt:I[v]});N=p}); return l}; OXB=function(b,R,h){const K=[];for(var I of b){var N=g.Z(I.renderingContent,vm);if(N){if(!pA(N))return new V("Invalid vod media renderer");K.push(oED(N))}}I=K.map(l=>l.xG); N=[];let p=0;for(let l=0;lh instanceof xA&&h?.triggeringLayoutId!==R)?.triggeringLayoutId}; RqB=function(b,R,h,K,I,N,p,l,a){const v=h.pings;return v?[DjB(b,N,l,I,B=>{var H=B.slotId;B=a(B);var q=h.adLayoutLoggingData,d=h.progressCommands;H=lU(R.Y.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",H);const t={layoutId:H,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",jY:"core"};return{layoutId:H,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",IT:Tc(v),layoutExitNormalTriggers:[new YA(R.G,N)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[], jY:"core",clientMetadata:new kv([new s6(K),new nJ(Ev(v)),new bkD(v?.activeViewTracking?.identifier),new fJ(p/1E3),new B4({progressCommands:d}),new v4(p/1E3)]),qj:B(t),adLayoutLoggingData:q}})]:new V("VideoAdTrackingRenderer without VideoAdTracking pings filled.",{videoAdTrackingRenderer:h})}; szq=function(b,R,h,K,I,N,p,l){b=hqP(b,h,N,p,K,a=>{var v=a.slotId;a=l(a);v=lU(R.Y.get(),"LAYOUT_TYPE_FORECASTING",v);const B={layoutId:v,layoutType:"LAYOUT_TYPE_FORECASTING",jY:"core"},H=new Map,q=I.impressionUrls;q&&H.set("impression",q);return{layoutId:v,layoutType:"LAYOUT_TYPE_FORECASTING",IT:H,layoutExitNormalTriggers:[new Pm(R.G,v)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],jY:"core",clientMetadata:new kv([new KLe(I), new s6(h)]),qj:a(B)}}); return b instanceof V?b:[b]}; Ims=function(b,R,h,K,I,N,p){return[$CD(b,N,K,l=>{var a=l.slotId;l=p(l);a=lU(R.Y.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);const v={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",jY:"core"};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",IT:new Map,layoutExitNormalTriggers:[new YA(R.G,N)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],jY:"core",clientMetadata:new kv([new Af(I), new s6(h)]),qj:l(v),adLayoutLoggingData:I.adLayoutLoggingData}})]}; pLH=function(b,R,h,K,I,N,p,l){b=N8e(b,h,N,p,K,(a,v)=>{var B=a.slotId;a=l(a);var H=I.contentSupportedRenderer;H?H.textOverlayAdContentRenderer?(H=lU(R.Y.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",B),v=$H(R,H,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",I,h,a,I0(R,v,B))):H.enhancedTextOverlayAdContentRenderer?(H=lU(R.Y.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",B),v=$H(R,H,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",I,h,a,I0(R,v,B))):H.imageOverlayAdContentRenderer?(H=lU(R.Y.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY", B),v=I0(R,v,B),v.push(new r1(R.G,45E3,H)),v=$H(R,H,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",I,h,a,v)):v=new FI("InvideoOverlayAdRenderer without appropriate sub renderer"):v=new FI("InvideoOverlayAdRenderer without contentSupportedRenderer");return v}); return b instanceof V?b:[b]}; v9B=function(b,R,h,K,I,N,p,l,a){const v=Number(K.durationMilliseconds);return isNaN(v)?new V("Expected valid duration for AdActionInterstitialRenderer."):B=>lmx(R,B.slotId,h,v,{impressionCommands:void 0,abandonCommands:K.abandonCommands?[{commandExecutorCommand:K.abandonCommands}]:void 0,completeCommands:K.completionCommands},K.skipPings?new Map([["skip",K.skipPings]]):new Map,p(B),H=>amK(b,H,I,(q,d)=>{var t=q.slotId;q=p(q);t=lU(R.Y.get(),"LAYOUT_TYPE_ENDCAP",t);return aN(R,t,d,h,q,"LAYOUT_TYPE_ENDCAP", [new FWe(K),l],K.adLayoutLoggingData)}),a,N-1,K.adLayoutLoggingData,N)}; B8s=function(b,R,h,K){if(!h.playerVars)return new V("No playerVars available in AdIntroRenderer.");const I=AQ(h.playerVars);I.autoplay="1";return N=>{var p=N.slotId;N=K(N);p=lU(b.Y.get(),"LAYOUT_TYPE_MEDIA",p);const l={layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",jY:"adapter"};return{ph:{layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",IT:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],jY:"adapter", clientMetadata:new kv([new mjw,new s6(R),new W4({current:null}),new yw(I)]),qj:N(l)},Ez:[new mh(b.G,p,["error"])],Wa:[],TW:[],Y0:[]}}}; var elH=function(b,R,h,K,I,N,p){return bm[f[6]](this,4,b,R,h,K,I,N,p)}; qOs=function(b,R,h,K,I,N,p,l,a,v=!1){const B=pJ(I);if(!ai2(I,v))return new V("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:I});if(B<=0)return new V("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:I});const H=P1T(b,R,I,N,h,K,p);return H instanceof V?H:q=>HkK(R,q.slotId,h,B,lS(I),p(q),H,l,a)}; fmT=function(b,R,h,K,I,N,p,l){if(!(!isNaN(Number(I.timeoutSeconds))&&I.text&&I.ctaButton&&g.Z(I.ctaButton,N6)&&I.brandImage&&I.backgroundImage&&g.Z(I.backgroundImage,pg)&&g.Z(I.backgroundImage,pg)?.landscape))return new V("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:I});const a=I.timeoutSeconds*1E3,v=(H,q)=>{var d=H.slotId;H=p(H);d=lU(R.Y.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",d);return aN(R,d,q,h,H,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT", [new dCK(I),N],I.adLayoutLoggingData)},B=H=>amK(b,H,K,v); return H=>{var q=H.slotId,d={impressionCommands:I.impressionCommands,completeCommands:I.timeoutCommands,skipCommands:I.dismissCommands};H=p(H);q=lp(R,q,h,a,d,new Map,H,B);d=new rO(q.Uk);H=new LJ(l);return{ph:{layoutId:q.layoutId,layoutType:q.layoutType,IT:q.IT,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],jY:q.jY,clientMetadata:new kv([...q.P3,d,H]),qj:q.qj,adLayoutLoggingData:q.adLayoutLoggingData}, Ez:[],Wa:q.layoutExitMuteTriggers,TW:q.layoutExitUserInputSubmittedTriggers,Y0:q.layoutExitUserCancelledTriggers,HD:q.HD}}}; t5s=function(b,R,h,K,I,N,p,l,a,v,B,H,q,d,t,S){b=iU(b,"SLOT_TYPE_PLAYER_BYTES");K=Njw(R,p,K,I,b,v,B);if(K instanceof V)return K;p=K.clientMetadata.rp("metadata_type_fulfilled_layout")?.layoutId;if(!p)return new V("Invalid adNotify layout");R=y$H(p,R,h,I,N,a,l,v,H,q,d,t,S);return R instanceof V?R:[K,...R]}; y$H=function(b,R,h,K,I,N,p,l,a,v,B,H,q){h=jze(R,h,K,N,p,l,a,v,B,H,q);A$s(N)?(K=ike(R,b),b=iU(R.Y.get(),"SLOT_TYPE_IN_PLAYER"),N=lU(R.Y.get(),"LAYOUT_TYPE_SURVEY",b),l=a0(R,K,l),R=[...l.slotExpirationTriggers,new Xi(R.G,N)],b=h({slotId:l.slotId,slotType:l.slotType,slotPhysicalPosition:l.slotPhysicalPosition,slotEntryTrigger:l.slotEntryTrigger,slotFulfillmentTriggers:l.slotFulfillmentTriggers,slotExpirationTriggers:R,jY:l.jY},{slotId:b,layoutId:N}),I=b instanceof V?b:{ZG:{...l,slotExpirationTriggers:R, clientMetadata:new kv([new Kg(b.layout)]),adSlotLoggingData:I},S6:b.S6}):I=vEP(R,b,l,I,h);return I instanceof V?I:[...I.S6,I.ZG]}; UCw=function(b,R,h,K,I,N,p,l,a,v,B,H,q,d){R=jze(b,R,h,I,N,p,a,v,B,H,q,d);A$s(I)?(p=zq3(b,h,p,l),p instanceof V?b=p:(l=iU(b.Y.get(),"SLOT_TYPE_IN_PLAYER"),a=lU(b.Y.get(),"LAYOUT_TYPE_SURVEY",l),I=[...p.slotExpirationTriggers,new Xi(b.G,a)],l=R({slotId:p.slotId,slotType:p.slotType,slotPhysicalPosition:p.slotPhysicalPosition,jY:p.jY,slotEntryTrigger:p.slotEntryTrigger,slotFulfillmentTriggers:p.slotFulfillmentTriggers,slotExpirationTriggers:I},{slotId:l,layoutId:a}),b=l instanceof V?l:{ZG:{slotId:p.slotId, slotType:p.slotType,slotPhysicalPosition:p.slotPhysicalPosition,slotEntryTrigger:p.slotEntryTrigger,slotFulfillmentTriggers:p.slotFulfillmentTriggers,slotExpirationTriggers:I,jY:p.jY,clientMetadata:new kv([new Kg(l.layout),new Qw({iW:b.iW(h)})]),adSlotLoggingData:K},S6:l.S6})):b=Bjx(b,h,p,l,K,a.AO,R);return b instanceof V?b:b.S6.concat(b.ZG)}; A$s=function(b){for(const R of b)if(g.Z(R,Hm))return!0;return!1}; jze=function(b,R,h,K,I,N,p,l,a,v,B,H){return(q,d)=>{if(CJ(B)&&MI(B))a:{var t=G6B(K);if(t instanceof V)d=t;else{var S=0,J=[],e=[],Y=[],Q=[],P=[],$B=[],IK=new vq,Pe=new Vw({current:null}),U3=!1,Zx=[],Cw=0,Ee=[];for(var ce=0;ce0?t:-1;continue}if(WE=g.Z(ce,M1)){ce=v9B(b,R,h,WE,N,S,l,Pe,t);if(ce instanceof V){d= ce;break a}ce=ce(q);J.push(ce.ph);e=[...ce.Ez,...e];Y=[...ce.Wa,...Y];ce.HD&&(Zx=[ce.HD,...Zx]);continue}if(WE=g.Z(ce,Hm)){if(d===void 0){d=new V("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:WE});break a}ce=qOs(b,R,h,N,WE,IK,l,d,S,pM(B,"supports_multi_step_on_desktop"));if(ce instanceof V){d=ce;break a}ce=ce(q);J.push(ce.ph);ce.HD&&Zx.push(ce.HD);e=[...ce.Ez,...e];Y=[...ce.Wa,...Y];Q=[...ce.TW,...Q];P=[...ce.Y0,...P];$B=[IK,...$B];continue}if(ce= g.Z(ce,qL)){ce=fmT(b,R,h,N,ce,IK,l,S);if(ce instanceof V){d=ce;break a}ce=ce(q);J.push(ce.ph);ce.HD&&Zx.push(ce.HD);Y=[...ce.Wa,...Y]}else{d=new V("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}}d={Sb:J,layoutExitSkipTriggers:e,layoutExitUserInputSubmittedTriggers:Q,layoutExitUserCancelledTriggers:P,layoutExitMuteTriggers:Y,P3:$B,S6:Zx}}}else a:if(Ee=G6B(K),Ee instanceof V)d=Ee;else{G$=0;J=[];e=[];Y=[];Q=[];P=[];$B=[];IK=new vq;Pe=new Vw({current:null});U3=!1;Zx=[];Cw=-1;for(S of K)if(g.Z(S, Bm)){t=B8s(R,h,g.Z(S,Bm),l);if(t instanceof V){d=t;break a}t=t(q);J.push(t.ph);e=[...t.Ez,...e];Y=[...t.Wa,...Y];t.HD&&(Zx=[t.HD,...Zx])}else if(g.Z(S,vm)){Cw=Ti(g.Z(S,vm));if(Cw instanceof FI){d=new V(Cw);break a}t=new qI(G$,Ee);t=g9D(R,Cw.layoutId,Cw.Nt,h,Jf(Cw.playerVars,Cw.wH,p,v,t),Cw.xG,N,t,l(q),Pe,a.get(Cw.Nt.externalVideoId),void 0,H);G$++;J.push(t.ph);e=[...t.Ez,...e];Y=[...t.Wa,...Y];U3||($B.push(Pe),U3=!0);Cw=(Cw=Cw.Nt.adPodSkipTarget)&&Cw>0?Cw:-1}else if(g.Z(S,M1)){t=v9B(b,R,h,g.Z(S,M1), N,G$,l,Pe,Cw);if(t instanceof V){d=t;break a}t=t(q);J.push(t.ph);e=[...t.Ez,...e];Y=[...t.Wa,...Y];t.HD&&(Zx=[t.HD,...Zx])}else if(g.Z(S,Hm)){if(d===void 0){d=new V("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.Z(S,Hm)});break a}t=qOs(b,R,h,N,g.Z(S,Hm),IK,l,d,G$,pM(B,"supports_multi_step_on_desktop"));if(t instanceof V){d=t;break a}t=t(q);J.push(t.ph);t.HD&&Zx.push(t.HD);e=[...t.Ez,...e];Y=[...t.Wa,...Y];Q=[...t.TW,...Q];P=[...t.Y0,...P]; $B=[IK,...$B]}else if(g.Z(S,qL)){t=fmT(b,R,h,N,g.Z(S,qL),IK,l,G$);if(t instanceof V){d=t;break a}t=t(q);J.push(t.ph);t.HD&&Zx.push(t.HD);Y=[...t.Wa,...Y]}else{d=new V("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}d={Sb:J,layoutExitSkipTriggers:e,layoutExitUserInputSubmittedTriggers:Q,layoutExitUserCancelledTriggers:P,layoutExitMuteTriggers:Y,P3:$B,S6:Zx}}d instanceof V?q=d:(P=q.slotId,G$=d.Sb,S=d.layoutExitSkipTriggers,J=d.layoutExitMuteTriggers,e=d.layoutExitUserInputSubmittedTriggers, Y=d.P3,q=l(q),Q=I?I.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",P=I?I.layoutId:lU(R.Y.get(),Q,P),$B={layoutId:P,layoutType:Q,jY:"core"},q={layout:{layoutId:P,layoutType:Q,IT:new Map,layoutExitNormalTriggers:[new Pm(R.G,P)],layoutExitSkipTriggers:S,layoutExitMuteTriggers:J,layoutExitUserInputSubmittedTriggers:e,layoutExitUserCancelledTriggers:[],jY:"core",clientMetadata:new kv([new WLK(G$),...Y]),qj:q($B)},S6:d.S6});return q}}; G6B=function(b){const R=[];for(const h of b){if(!g.Z(h,vm))continue;b=Ti(g.Z(h,vm));if(b instanceof FI)return new V(b);R.push(b.xG)}return R}; n93=function(b,R,h,K,I,N,p,l=!1){if(!ai2(h,l))return new V("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:h});const a=pJ(h);if(a<=0)return new V("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:h});const v=new vq,B=P1T(b,R,h,v,K,N,p);return SOB(b,K,N,a,I,(H,q)=>{var d=H.slotId,t=lS(h);H=p(H);d=lU(R.Y.get(),"LAYOUT_TYPE_MEDIA_BREAK",d);const S={layoutId:d,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",jY:"core"},J=B(d,q),e=J.clientMetadata.rp("metadata_type_fulfilled_layout"); e||u2("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");t=[new s6(K),new bp(a),new B4(t),v];e&&t.push(new R0(e.layoutType));return{dZ:{layoutId:d,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",IT:new Map,layoutExitNormalTriggers:[new Pm(R.G,d)],layoutExitSkipTriggers:[new Zn(R.G,q.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new uO(R.G,q.layoutId)],layoutExitUserCancelledTriggers:[],jY:"core",clientMetadata:new kv(t), qj:H(S)},Wy:J}})}; E9T=function(b){if(!HDP(b))return!1;const R=g.Z(b.adVideoStart,Bq);return R?g.Z(b.linearAd,vm)&&Is(R)?!0:(u2("Invalid Sandwich with notify"),!1):!1}; T8P=function(b){if(b.linearAds==null)return!1;b=g.Z(b.adStart,Bq);return b?Is(b)?!0:(u2("Invalid LASR with notify"),!1):!1}; J$x=function(b){if(!Bow(b))return!1;b=g.Z(b.adStart,Bq);return b?Is(b)?!0:(u2("Invalid LASR with notify"),!1):!1}; T5=function(b,R,h,K,I,N,p,l,a,v,B){const H=[];if(R.length===0&&K.length===0&&h.length===0)return H;R=R.filter(NL);const q=h.filter(NoK),d=K.filter(NL),t=new Map,S=tPx(R),J=h.some($B=>$B?.adSlotMetadata?.slotType==="SLOT_TYPE_PLAYER_BYTES"),e=h.some($B=>$B?.adSlotMetadata?.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"),Y=h.some($B=>$B?.adSlotMetadata?.slotType==="SLOT_TYPE_IN_PLAYER"),Q=h.some($B=>$B?.adSlotMetadata?.slotType==="SLOT_TYPE_BELOW_PLAYER"||$B?.adSlotMetadata?.slotType==="SLOT_TYPE_ABOVE_FEED"), P=h.some($B=>$B?.adSlotMetadata?.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"); h=h.some($B=>$B?.adSlotMetadata?.slotType==="SLOT_TYPE_IN_PLAYER_ORGANIC_OVERLAY"); if(J||e||Y||Q||P||h)v=nE3(q,R,l,I,S,b.Og.get(),b.loadPolicy,t,b.VX.get(),b.V.get(),Y,p,a,v,B),v instanceof V?u2(v,void 0,void 0,{contentCpn:I}):H.push(...v);for(const $B of R)v=k63(b,t,$B,I,N,p,J,l,S,a,q,b.VX.get().A.L().experiments.O9("html5_enable_triggering_cuepoint_for_slot")?B:void 0),v instanceof V?u2(v,void 0,void 0,{renderer:$B.renderer,config:$B.config.adPlacementConfig,kind:$B.config.adPlacementConfig.kind,contentCpn:I,daiEnabled:p}):H.push(...v);YOT(b.VX.get())||(N=eqx(b,d,I,l,S,t),H.push(...N)); if(b.X===null||p&&!l.q6)return b=l.AO&&R.length===1&&R[0].config?.adPlacementConfig?.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&R[0].renderer?.adBreakServiceRenderer,H.length||b||u2("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":R.length,contentCpn:I,"first APR kind":R[0]?.config?.adPlacementConfig?.kind,renderer:R[0]?.renderer}),H;K=K.filter(NL);H.push(...ODT(t,K,b.Y.get(),b.X,I,J));H.length||u2("Expected slots parsed from AdPlacementRenderers", void 0,void 0,{"AdPlacementRenderer count":R.length,contentCpn:I,daiEnabled:p.toString(),"first APR kind":R[0]?.config?.adPlacementConfig?.kind,renderer:R[0]?.renderer});return H}; k63=function(b,R,h,K,I,N,p,l,a,v,B,H){const q=h.renderer,d=h.config.adPlacementConfig,t=d.kind,S=h.adSlotLoggingData,J=Y=>Jj(b.Og.get(),Y); var e=l.q6&&t==="AD_PLACEMENT_KIND_START";e=N&&!e;if(q.adsEngagementPanelRenderer!=null)return NI(R,h.elementId,t,q.adsEngagementPanelRenderer.isContentVideoEngagementPanel,q.adsEngagementPanelRenderer.adVideoId,q.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,d,S,(Y,Q,P,$B)=>{var IK=b.G.get(),Pe=Y.slotId,U3=q.adsEngagementPanelRenderer;Y=Jj(b.Og.get(),Y);return Hq(IK,Pe,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON",new Okx(U3),Q,P,U3.impressionPings,Y,q.adsEngagementPanelRenderer.adLayoutLoggingData, $B)}),[]; if(q.adsEngagementPanelLayoutViewModel)return NI(R,h.elementId,t,q.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,q.adsEngagementPanelLayoutViewModel.adVideoId,q.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,d,S,(Y,Q,P,$B)=>{var IK=b.G.get(),Pe=Y.slotId,U3=q.adsEngagementPanelLayoutViewModel;Y=Jj(b.Og.get(),Y);return q6(IK,Pe,"LAYOUT_TYPE_PANEL",new Qzx(U3),Q,P,Y,q.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,$B)}),[]; if(q.actionCompanionAdRenderer!=null){if(q.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return E_x(b.Y.get(),b.X,b.G.get(),q.actionCompanionAdRenderer,d,S,K,J);NI(R,h.elementId,t,q.actionCompanionAdRenderer.isContentVideoCompanion,q.actionCompanionAdRenderer.adVideoId,q.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,d,S,(Y,Q,P,$B)=>{var IK=b.G.get(),Pe=Y.slotId,U3=q.actionCompanionAdRenderer;Y=Jj(b.Og.get(),Y);return Hq(IK,Pe,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new n_H(U3),Q,P,U3.impressionPings,Y,q.actionCompanionAdRenderer.adLayoutLoggingData,$B)})}else if(q.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(q.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return JQx(b.Y.get(),b.X,b.G.get(),q.topBannerImageTextIconButtonedLayoutViewModel,d,S,K,J); NI(R,h.elementId,t,q.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,q.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,q.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,d,S,(Y,Q,P,$B)=>{var IK=b.G.get(),Pe=Y.slotId,U3=q.topBannerImageTextIconButtonedLayoutViewModel;Y=Jj(b.Og.get(),Y);return q6(IK,Pe,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new ToD(U3),Q,P,Y,q.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,$B)})}else if(q.imageCompanionAdRenderer)NI(R, h.elementId,t,q.imageCompanionAdRenderer.isContentVideoCompanion,q.imageCompanionAdRenderer.adVideoId,q.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,d,S,(Y,Q,P,$B)=>{var IK=b.G.get(),Pe=Y.slotId,U3=q.imageCompanionAdRenderer; Y=Jj(b.Og.get(),Y);return Hq(IK,Pe,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new xCT(U3),Q,P,U3.impressionPings,Y,q.imageCompanionAdRenderer.adLayoutLoggingData,$B)}); else if(q.bannerImageLayoutViewModel)NI(R,h.elementId,t,q.bannerImageLayoutViewModel.isContentVideoCompanion,q.bannerImageLayoutViewModel.adVideoId,q.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,d,S,(Y,Q,P,$B)=>{var IK=b.G.get(),Pe=Y.slotId,U3=q.bannerImageLayoutViewModel;Y=Jj(b.Og.get(),Y);return q6(IK,Pe,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new mCs(U3),Q,P,Y,q.bannerImageLayoutViewModel.adLayoutLoggingData,$B)}); else if(q.shoppingCompanionCarouselRenderer)NI(R,h.elementId,t,q.shoppingCompanionCarouselRenderer.isContentVideoCompanion,q.shoppingCompanionCarouselRenderer.adVideoId,q.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,d,S,(Y,Q,P,$B)=>{var IK=b.G.get(),Pe=Y.slotId,U3=q.shoppingCompanionCarouselRenderer;Y=Jj(b.Og.get(),Y);return Hq(IK,Pe,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new PQK(U3),Q,P,U3.impressionPings,Y,q.shoppingCompanionCarouselRenderer.adLayoutLoggingData,$B)}); else if(q.adBreakServiceRenderer){if(h.renderer?.adBreakServiceRenderer?.getAdBreakUrl===void 0)return[];if(t==="AD_PLACEMENT_KIND_PAUSE")return g_P(b.Y.get(),d,S,h.renderer.adBreakServiceRenderer,K);if(t!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&t!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return iDq(b.Y.get(),d,S,h.renderer.adBreakServiceRenderer,K,I,N);l.AO||u2("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:t,adPlacementConfig:d,daiEnabledForContentVideo:String(N), isServedFromLiveInfra:String(l.AO),clientPlaybackNonce:l.clientPlaybackNonce});if(t==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!b.BY)return new V("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!b.r3)return new V("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");b.r3.ym({adPlacementRenderer:h,contentCpn:K,I8:I});I=b.BY.get().getCurrentTimeSec(1,!1);return ZkT(b.Y.get(),h.renderer.adBreakServiceRenderer, d,I,K,S,N)}if(!b.uR)return new V("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");b.uR.ym({adPlacementRenderer:h,contentCpn:K,I8:I})}else{if(q.clientForecastingAdRenderer)return szq(b.Y.get(),b.G.get(),d,S,q.clientForecastingAdRenderer,K,I,J);if(q.invideoOverlayAdRenderer)return pLH(b.Y.get(),b.G.get(),d,S,q.invideoOverlayAdRenderer,K,I,J);if(q.instreamAdPlayerOverlayRenderer)return Ims(b.Y.get(),b.G.get(),d,S,q.instreamAdPlayerOverlayRenderer, K,J);if((q.linearAdSequenceRenderer||q.instreamVideoAdRenderer)&&e)return hG3(b.Y.get(),b.G.get(),h,K,J,v,H);if(q.linearAdSequenceRenderer&&!e){if(p)return[];$4(R,q,t);if(q.linearAdSequenceRenderer.adLayoutMetadata){if(!Bow(q.linearAdSequenceRenderer))return new V("Received invalid LinearAdSequenceRenderer.")}else if(q.linearAdSequenceRenderer.linearAds==null)return new V("Received invalid LinearAdSequenceRenderer.");if(g.Z(q.linearAdSequenceRenderer.adStart,Bq)){u2("Found AdNotify in LinearAdSequenceRenderer"); h=g.Z(q.linearAdSequenceRenderer.adStart,Bq);if(!(h?.durationMs!=null&&h?.durationMs>0))return new V("Invalid AdMessageRenderer.");N=q.linearAdSequenceRenderer.linearAds;return t5s(b.V.get(),b.Y.get(),b.G.get(),b.Og.get(),d,S,h,D3(q.linearAdSequenceRenderer.adLayoutMetadata)?q.linearAdSequenceRenderer.adLayoutMetadata:void 0,N,K,I,l,J,a,b.loadPolicy,b.VX.get())}return UCw(b.Y.get(),b.G.get(),d,S,q.linearAdSequenceRenderer.linearAds,D3(q.linearAdSequenceRenderer.adLayoutMetadata)?q.linearAdSequenceRenderer.adLayoutMetadata: void 0,K,I,l,J,a,b.loadPolicy,b.VX.get(),B)}if(!q.remoteSlotsRenderer||N){if(q.instreamVideoAdRenderer&&!e){if(p)return[];$4(R,q,t);return HXB(b.Y.get(),b.G.get(),d,S,q.instreamVideoAdRenderer,K,I,l,J,a,b.loadPolicy,b.VX.get(),b.Og.get(),B)}if(q.instreamSurveyAdRenderer)return n93(b.Y.get(),b.G.get(),q.instreamSurveyAdRenderer,d,S,K,J,pM(b.VX.get(),"supports_multi_step_on_desktop"));if(q.sandwichedLinearAdRenderer!=null)return HDP(q.sandwichedLinearAdRenderer)?g.Z(q.sandwichedLinearAdRenderer.adVideoStart, Bq)?(u2("Found AdNotify in SandwichedLinearAdRenderer"),h=g.Z(q.sandwichedLinearAdRenderer.adVideoStart,Bq),h?.durationMs!=null&&h?.durationMs>0?(N=g.Z(q.sandwichedLinearAdRenderer.linearAd,vm))?l5x(h,N,d,b.V.get(),b.Y.get(),b.G.get(),b.Og.get(),S,K,I,l,J,a,b.loadPolicy,b.VX.get()):new V("Missing IVAR from Sandwich"):new V("Invalid AdMessageRenderer.")):UCw(b.Y.get(),b.G.get(),d,S,[q.sandwichedLinearAdRenderer.adVideoStart,q.sandwichedLinearAdRenderer.linearAd],void 0,K,I,l,J,a,b.loadPolicy,b.VX.get()): new V("Received invalid SandwichedLinearAdRenderer.");if(q.videoAdTrackingRenderer!=null)return RqB(b.Y.get(),b.G.get(),q.videoAdTrackingRenderer,d,S,K,I,l.mY,J)}}return[]}; eqx=function(b,R,h,K,I,N){const p=B=>Jj(b.Og.get(),B),l=[]; for(const B of R){R=B.renderer;var a=R.sandwichedLinearAdRenderer,v=R.linearAdSequenceRenderer;a&&E9T(a)?(u2("Found AdNotify with SandwichedLinearAdRenderer"),v=g.Z(a.adVideoStart,Bq),a=g.Z(a.linearAd,vm),$4(N,R,B.config.adPlacementConfig.kind),R=puH(v?.layout.layoutId,b.Y.get(),b.G.get(),B.config.adPlacementConfig,B.adSlotLoggingData,a,h,K,p,I,b.loadPolicy,b.VX.get(),b.Og.get()),R instanceof V?u2(R):l.push(...R)):v&&(!v.adLayoutMetadata&&T8P(v)||v.adLayoutMetadata&&J$x(v))&&(u2("Found AdNotify with LinearAdSequenceRenderer"), $4(N,R,B.config.adPlacementConfig.kind),R=y$H(g.Z(v.adStart,Bq)?.layout.layoutId,b.Y.get(),b.G.get(),B.config.adPlacementConfig,B.adSlotLoggingData,v.linearAds,D3(v.adLayoutMetadata)?v.adLayoutMetadata:void 0,h,K,p,I,b.loadPolicy,b.VX.get()),R instanceof V?u2(R):l.push(...R))}return l}; tM=function(b,R,h){const K=b.BY.get().getCurrentTimeSec(1,!1);b.VX.get().A.L().zy()&&cz(b.aH.get(),"sdai",`onopp.1;evt.${h.event};start.${h.startSecs.toFixed(3)};d.${h.oY.toFixed(3)}`);AB(b.Y.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",()=>{var I=b.X.get(),N=R.adPlacementRenderer.renderer.adBreakServiceRenderer,p=R.contentCpn,l=R.adPlacementRenderer.adSlotLoggingData;dT(b.VX.get());var a=b.aH;var v=I.VX.get();v=g.fg(v.A.L().experiments,"max_prefetch_window_sec_for_livestream_optimization"); var B=I.VX.get();var H=g.fg(B.A.L().experiments,"min_prefetch_offset_sec_for_livestream_optimization");{B=h.startSecs*1E3;B={TE:new EB(B,B+h.oY*1E3),PL:!1,cueProcessedMs:K*1E3};const d=h.startSecs+h.oY;if(K===0)B.UA=new EB(0,d*1E3);else{H=h.startSecs-H;var q=H-K;B.UA=q<=0?new EB(H*1E3,d*1E3):new EB(Math.floor(K+Math.random()*Math.min(q,v))*1E3,d*1E3)}v=B}N=Ju(I,N,p,v,l,[new c$w(h)]);yU(I.VX.get())&&cz(a.get(),"abrsm",`cpi.${h.identifier};cps.${h.startSecs};cpd.${h.oY};cts.${K};rbf.${v.UA.start}`); a.get().A.hd(h.startSecs-K,v.UA.start/1E3-K);return[N]})}; jt=function(b){const R=b.clientMetadata.rp("metadata_type_player_bytes_callback_ref")?.current;if(!R)return null;const h=b.clientMetadata.rp("metadata_type_ad_pod_skip_target_callback_ref");var K=b.layoutId,I=b.clientMetadata.rp("metadata_type_content_cpn"),N=b.clientMetadata.rp("metadata_type_instream_ad_player_overlay_renderer"),p=b.clientMetadata.rp("metadata_type_player_overlay_layout_renderer"),l=b.clientMetadata.rp("metadata_type_player_underlay_renderer"),a=b.clientMetadata.rp("metadata_type_ad_placement_config"), v=b.clientMetadata.rp("metadata_type_video_length_seconds");var B=GM(b.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?b.clientMetadata.rp("METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):GM(b.clientMetadata,"metadata_type_layout_enter_ms")&&GM(b.clientMetadata,"metadata_type_layout_exit_ms")?(b.clientMetadata.rp("metadata_type_layout_exit_ms")-b.clientMetadata.rp("metadata_type_layout_enter_ms"))/1E3:void 0;return{wz:K,contentCpn:I,W6:R,Kd:h,instreamAdPlayerOverlayRenderer:N,playerOverlayLayoutRenderer:p, instreamAdPlayerUnderlayRenderer:l,adPlacementConfig:a,videoLengthSeconds:v,Iq:B,inPlayerLayoutId:b.clientMetadata.rp("metadata_type_linked_in_player_layout_id"),inPlayerSlotId:b.clientMetadata.rp("metadata_type_linked_in_player_slot_id")}}; XLq=function(b,R){return u_w(b,R)}; V5P=function(b,R){R=u_w(b,R);if(!R)return null;R.Iq=b.clientMetadata.rp("metadata_type_ad_pod_info")?.adBreakRemainingLengthSeconds;return R}; u_w=function(b,R){const h=b.clientMetadata.rp("metadata_type_player_bytes_callback_ref")?.current;if(!h)return null;const K=MMK(b,R);return{oM:C6x(b,R),adPlacementConfig:b.clientMetadata.rp("metadata_type_ad_placement_config"),zR:K,contentCpn:b.clientMetadata.rp("metadata_type_content_cpn"),inPlayerLayoutId:b.clientMetadata.rp("metadata_type_linked_in_player_layout_id"),inPlayerSlotId:b.clientMetadata.rp("metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:b.clientMetadata.rp("metadata_type_instream_ad_player_overlay_renderer"), playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,Iq:void 0,W6:h,wz:b.layoutId,videoLengthSeconds:b.clientMetadata.rp("metadata_type_video_length_seconds")}}; CQK=function(b,R,h){return f5T(b.G.get(),R.contentCpn,R.wz,K=>yNx(b.Y.get(),K.slotId,h,R.adPlacementConfig,R.wz,Jj(b.Og.get(),K)))}; AB=function(b,R,h,K){b.G().o0(R,K);h=h();b=b.G();b.cH.G("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",R,K,h);for(const l of h)a:{R=b;mD(R.cH,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",l);mD(R.cH,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",l);try{var I=R.G;if(g.fj(l.slotId))throw new V("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(QA(I,l))throw new V("Duplicate registration for slot.",{slotId:l.slotId,slotEntryTriggerType:l.slotEntryTrigger.triggerType},"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT"); if(!I.X9.gK.has(l.slotType))throw new V("No fulfillment adapter factory registered for slot of type: "+l.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!I.X9.Hk.has(l.slotType))throw new V("No SlotAdapterFactory registered for slot of type: "+l.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");KM(I,"TRIGGER_CATEGORY_SLOT_ENTRY",l.slotEntryTrigger?[l.slotEntryTrigger]:[]);KM(I,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",l.slotFulfillmentTriggers);KM(I, "TRIGGER_CATEGORY_SLOT_EXPIRATION",l.slotExpirationTriggers);var N=R.G;const a=`${l.slotType}_${l.slotPhysicalPosition}`,v=cF(N,a);if(QA(N,l))throw new V("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");v.set(l.slotId,new M5s(l));N.G.set(a,v)}catch(a){a instanceof V&&a.wh?(L9(R.cH,"ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",a.wh,l),u2(a,l,void 0,void 0,a.G2)):(L9(R.cH,"ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",l),u2(a, l));break a}QA(R.G,l).J=!0;try{var p=R.G;const a=QA(p,l),v=l.slotEntryTrigger,B=p.X9.l3.get(v.triggerType);B&&(B.Ff("TRIGGER_CATEGORY_SLOT_ENTRY",v,l,null),a.nR.set(v.triggerId,B));for(const d of l.slotFulfillmentTriggers){const t=p.X9.l3.get(d.triggerType);t&&(t.Ff("TRIGGER_CATEGORY_SLOT_FULFILLMENT",d,l,null),a.G6.set(d.triggerId,t))}for(const d of l.slotExpirationTriggers){const t=p.X9.l3.get(d.triggerType);t&&(t.Ff("TRIGGER_CATEGORY_SLOT_EXPIRATION",d,l,null),a.U.set(d.triggerId,t))}const H=p.X9.gK.get(l.slotType).get().build(p.X, l);a.D=H;const q=p.X9.Hk.get(l.slotType).get().build(p.S,l);q.init();a.Y=q}catch(a){a instanceof V&&a.wh?(L9(R.cH,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",a.wh,l),u2(a,l,void 0,void 0,a.G2)):(L9(R.cH,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",l),u2(a,l));un(R,l,!0);break a}mD(R.cH,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",l);R.G.qz(l);for(const a of R.Y)a.qz(l);VA(R,l)}}; dcw=function(b,R){var h=0x8000000000000;let K=0,I=0x8000000000000;for(const a of R.slotFulfillmentTriggers){if(!(a instanceof VV)){u2("Found unexpected fulfillment trigger for throttled slot.",R,null,{fulfillmentTrigger:a});continue}const v=a.G.start;h=Math.min(h,v);K=Math.max(K,a.G.end);a.visible&&(I=Math.min(I,v))}const {startMs:N,endMs:p,Uo:l}={startMs:h,endMs:K,Uo:I<0x8000000000000&&h0&&XI(b.J(),N)}; FLx=function(b,R){R=(R.oY+1)*1E3;let h=void 0;for(const {trigger:K,slot:I}of b.HH.values())K instanceof os&&K.breakDurationMs<=R&&(!h||K.breakDurationMs>h.trigger.breakDurationMs)&&(h={slot:I,trigger:K});return h}; o9H=function(b){const R=[];for(const {trigger:h}of b.HH.values())h instanceof os&&R.push(h.breakDurationMs);return R}; Wq=function(b){b.G=null;b.HH.clear();b.Y&&b.Y.stop();b.S&&b.S.stop();b.X?.stop();delete b.X}; boP=function(b){cz(b.aH.get(),"ads_ce",`bdc.${o9H(b).length};fi.${!!b.G};fet.${!!b.Y}`);b.G&&(b.V=!0,b.Y&&(b.Y.stop(),b.Y.start()),DCP(b,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"))}; R8K=function(b){b=b.adPlacementRenderer.config.adPlacementConfig;if(b.prefetchModeConfig&&b.prefetchModeConfig.cacheFetchRefreshDurationMs&&(b=Number(b.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(b)||b<=0)))return b}; DCP=function(b,R){const h=[];for(const K of b.HH.values())K.trigger.triggerType===R&&h.push(K);h.length>0&&XI(b.J(),h)}; h82=function(b){b=b.adPlacementRenderer.config.adPlacementConfig;if(!b.prefetchModeConfig||!b.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;b=Number(b.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(b)||b<=0?0:Math.floor(Math.random()*b)}; KsT=function(b,R){const h=[];if(R=b.G.get(R.layoutId))for(const K of R)(R=b.Y.get(K.triggerId))&&h.push(R);return h}; EK=function(b){switch(b){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"}}; sYx=function(b){switch(b){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; $r2=function(b,R){const h={slotId:iU(R,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],jY:"surface",clientMetadata:new kv([])};R=lU(R,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",h.slotId);R={layoutId:R,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",IT:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[], jY:"surface",clientMetadata:new kv([]),qj:G1q(!1,h.slotId,h.slotType,h.slotPhysicalPosition,h.jY,h.slotEntryTrigger,h.slotFulfillmentTriggers,h.slotExpirationTriggers,R,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return{...b,G3:!0,slot:h,layout:R}}; AQD=function(b,R,h,K){var I=b.kind;K=K?!1:!b.hideCueRangeMarker;switch(I){case "AD_PLACEMENT_KIND_START":return K={TE:new EB(-0x8000000000000,-0x8000000000000),PL:K},h!=null&&(K.UA=new EB(-0x8000000000000,-0x8000000000000)),K;case "AD_PLACEMENT_KIND_END":return K={TE:new EB(0x7ffffffffffff,0x8000000000000),PL:K},h!=null&&(K.UA=new EB(Math.max(0,R-h),0x8000000000000)),K;case "AD_PLACEMENT_KIND_MILLISECONDS":I=b.adTimeOffset;I.offsetStartMilliseconds||u2("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); I.offsetEndMilliseconds||u2("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");b=Number(I.offsetStartMilliseconds);I=Number(I.offsetEndMilliseconds);I===-1&&(I=R);if(Number.isNaN(b)||Number.isNaN(I)||b>I)return new V("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:b,offsetEndMs:I},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",I===R&&b-500<=I);K={TE:new EB(b,I),PL:K};if(h!=null){b=Math.max(0,b-h);if(b===I)return K;K.UA=new EB(b,I)}return K; default:return new V("AdPlacementKind not supported in convertToRange.",{kind:I,adPlacementConfig:b})}}; IwT=function(b){if(!b||!b.adPlacements&&!b.adSlots)return!1;for(const R of b.adPlacements||[]){if(!R)continue;const h=R.adPlacementRenderer;if(h!=null&&(h.config&&h.config.adPlacementConfig&&h.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0}for(const R of b.adSlots||[])if(g.Z(R,G5)?.adSlotMetadata?.triggerEvent==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0;return!1}; iU=function(b,R){if(St(b.VX.get())){let h=b.Y.get(R)||0;h++;b.Y.set(R,h);return`${R}_${h}`}return g.yM(16)}; hM=function(b,R){if(St(b.VX.get())){let h=b.X.get(R)||0;h++;b.X.set(R,h);return`${R}_${h}`}return g.yM(16)}; lU=function(b,R,h){if(St(b.VX.get())){let K=b.G.get(R)||0;K++;b.G.set(R,K);return`${h}_${R}_${K}`}return g.yM(16)}; pW2=function(b){const R=[new P4(b.wz),new NIH(b.W6),new s6(b.adPlacementConfig),new fJ(b.videoLengthSeconds),new v4(b.Iq)];b.instreamAdPlayerOverlayRenderer&&R.push(new Af(b.instreamAdPlayerOverlayRenderer));b.playerOverlayLayoutRenderer&&R.push(new iS(b.playerOverlayLayoutRenderer));b.Kd&&R.push(new Vw(b.Kd));return R}; lwe=function(b,R,h,K,I,N){b=h.inPlayerLayoutId?h.inPlayerLayoutId:lU(N,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",b);const p=h.instreamAdPlayerOverlayRenderer?h.instreamAdPlayerOverlayRenderer?.adLayoutLoggingData:h.playerOverlayLayoutRenderer?.adLayoutLoggingData,l={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",jY:R};return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",IT:new Map,layoutExitNormalTriggers:[new xA(a=>hM(N,a),h.wz)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],jY:R,clientMetadata:K,qj:I(l),adLayoutLoggingData:p}}; s$B=function(b,R,h,K,I,N,p,l,a){K.every(B=>g5(B,[],["LAYOUT_TYPE_MEDIA"]))||u2("Unexpect subLayout type for DAI composite layout"); R=lU(b.Y.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",R);const v={layoutId:R,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",jY:"core"};return{layoutId:R,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",IT:new Map,layoutExitNormalTriggers:[new Fi(b.G)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],jY:"core",clientMetadata:new kv([new tf(h),new jK(l),new WLK(K),new s6(I),new Gi(N),new SK,new Y7s(a)]),qj:p(v)}}; q7T=function(b,R,h,K,I,N,p,l,a,v,B){b=awq(b,R,"core",h,K,I,N,p,l,a,v,void 0,B);return{layoutId:b.layoutId,layoutType:b.layoutType,IT:b.IT,layoutExitNormalTriggers:b.layoutExitNormalTriggers,layoutExitSkipTriggers:b.layoutExitSkipTriggers,layoutExitMuteTriggers:b.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:b.layoutExitUserInputSubmittedTriggers,layoutExitUserCancelledTriggers:b.layoutExitUserCancelledTriggers,jY:b.jY,clientMetadata:new kv(b.vt),qj:b.qj,adLayoutLoggingData:b.adLayoutLoggingData}}; k4=function(b,R,h,K,I){const N=pW2(K);return lwe(R,h,K,new kv(N),I,b.Y.get())}; yNx=function(b,R,h,K,I,N){h=new kv([new vMq(h),new s6(K)]);R=lU(b.Y.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",R);K={layoutId:R,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",jY:"core"};return{layoutId:R,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",IT:new Map,layoutExitNormalTriggers:[new xA(p=>hM(b.Y.get(),p),I)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],jY:"core",clientMetadata:h,qj:N(K),adLayoutLoggingData:void 0}}; lmx=function(b,R,h,K,I,N,p,l,a,v,B,H){b=lp(b,R,h,K,I,N,p,l,B,H);R=b.P3;h=new rO(b.Uk);K=b.layoutExitSkipTriggers;a>0&&(R.push(h),R.push(new oN(a)),K=[]);R.push(new LJ(v));return{ph:{layoutId:b.layoutId,layoutType:b.layoutType,IT:b.IT,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],jY:b.jY,clientMetadata:new kv(R),qj:b.qj,adLayoutLoggingData:b.adLayoutLoggingData},Ez:K,Wa:b.layoutExitMuteTriggers, TW:b.layoutExitUserInputSubmittedTriggers,Y0:b.layoutExitUserCancelledTriggers,HD:b.HD}}; HkK=function(b,R,h,K,I,N,p,l,a){R=lp(b,R,h,K,I,new Map,N,v=>p(v,l)); b=new uO(b.G,R.Uk);h=new rO(R.Uk);a=new LJ(a);return{ph:{layoutId:R.layoutId,layoutType:R.layoutType,IT:R.IT,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],jY:R.jY,clientMetadata:new kv([...R.P3,h,a]),qj:R.qj,adLayoutLoggingData:R.adLayoutLoggingData},Ez:R.layoutExitSkipTriggers,Wa:R.layoutExitMuteTriggers,TW:[...R.layoutExitUserInputSubmittedTriggers,b],Y0:R.layoutExitUserCancelledTriggers, HD:R.HD}}; g9D=function(b,R,h,K,I,N,p,l,a,v,B,H,q){R=awq(b,R,"adapter",h,K,I,N,p,l,a,B,H,q);K=R.layoutExitSkipTriggers;I=R.vt;h.adPodSkipTarget&&h.adPodSkipTarget>0&&(I.push(v),I.push(new oN(h.adPodSkipTarget)),K=[]);I.push(new LJ(l.adPodIndex));h.isCritical&&(K=[new mh(b.G,R.layoutId,["error"]),...K]);return{ph:{layoutId:R.layoutId,layoutType:R.layoutType,IT:R.IT,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[], jY:R.jY,clientMetadata:new kv(I),qj:R.qj,adLayoutLoggingData:R.adLayoutLoggingData},Ez:K,Wa:R.layoutExitMuteTriggers,TW:R.layoutExitUserInputSubmittedTriggers,Y0:R.layoutExitUserCancelledTriggers}}; qoB=function(b,R,h,K,I){const N=pW2(K);N.push(new BIH(K.oM));N.push(new Hoq(K.zR));return lwe(R,h,K,new kv(N),I,b.Y.get())}; Hq=function(b,R,h,K,I,N,p,l,a,v){R=lU(b.Y.get(),h,R);const B={layoutId:R,layoutType:h,jY:"core"},H=new Map;p&&H.set("impression",p);p=[new LA(b.G,I,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];v&&p.push(new mh(b.G,v,["normal"]));return{layoutId:R,layoutType:h,IT:H,layoutExitNormalTriggers:p,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],jY:"core",clientMetadata:new kv([K,new s6(N),new P4(I)]),qj:l(B),adLayoutLoggingData:a}}; q6=function(b,R,h,K,I,N,p,l,a){R=lU(b.Y.get(),h,R);const v={layoutId:R,layoutType:h,jY:"core"},B=[new LA(b.G,I,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];a&&B.push(new mh(b.G,a,["normal"]));return{layoutId:R,layoutType:h,IT:new Map,layoutExitNormalTriggers:B,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],jY:"core",clientMetadata:new kv([K,new s6(N),new P4(I)]),qj:p(v),adLayoutLoggingData:l}}; I0=function(b,R,h){const K=[];K.push(new ng(b.G,h));R&&K.push(R);return K}; $H=function(b,R,h,K,I,N,p){const l={layoutId:R,layoutType:h,jY:"core"};return{layoutId:R,layoutType:h,IT:new Map,layoutExitNormalTriggers:p,layoutExitSkipTriggers:[new Xi(b.G,R)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],jY:"core",clientMetadata:new kv([new dr2(K),new s6(I)]),qj:N(l),adLayoutLoggingData:K.adLayoutLoggingData}}; aN=function(b,R,h,K,I,N,p,l){const a={layoutId:R,layoutType:N,jY:"core"};return{layoutId:R,layoutType:N,IT:new Map,layoutExitNormalTriggers:[new xA(b.G,h)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],jY:"core",clientMetadata:new kv([new s6(K),...p]),qj:I(a),adLayoutLoggingData:l}}; lp=function(b,R,h,K,I,N,p,l,a,v){R=lU(b.Y.get(),"LAYOUT_TYPE_MEDIA_BREAK",R);const B={layoutId:R,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",jY:"adapter"};l=l(R);const H=l.clientMetadata.rp("metadata_type_fulfilled_layout");H||u2("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");const q=H?H.layoutId:"";h=[new s6(h),new bp(K),new B4(I)];H&&h.push(new R0(H.layoutType));v&&h.push(new E6(v));return{layoutId:R,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", IT:N,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new Zn(b.G,q)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],jY:"adapter",P3:h,qj:p(B),adLayoutLoggingData:a,HD:l,Uk:q}}; awq=function(b,R,h,K,I,N,p,l,a,v,B,H,q){const d={layoutId:R,layoutType:"LAYOUT_TYPE_MEDIA",jY:h};I=[new s6(I),new U6(a),new zi(K.externalVideoId),new dO(l),new B4({impressionCommands:K.impressionCommands,abandonCommands:K.onAbandonCommands,completeCommands:K.completeCommands,progressCommands:K.adVideoProgressCommands}),new yw(N),new W4({current:null}),new fJ(p)];(N=K.playerOverlay.instreamAdPlayerOverlayRenderer)&&I.push(new Af(N));(p=K.playerOverlay.playerOverlayLayoutRenderer)&&I.push(new iS(p)); H&&I.push(new VPx(H));(H=K.playerUnderlay)&&I.push(new vMq(H));l=iU(b.Y.get(),"SLOT_TYPE_IN_PLAYER");H=(H=N?N.elementId:p?.layoutId)?H:lU(b.Y.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",l);I.push(new rO(H));I.push(new cNT(l));I.push(new E6(a.adPodIndex));K.adNextParams&&I.push(new wO(K.adNextParams));K.shrunkenPlayerBytesConfig&&I.push(new fwH(K.shrunkenPlayerBytesConfig));K.clickthroughEndpoint&&I.push(new FR(K.clickthroughEndpoint));K.legacyInfoCardVastExtension&&I.push(new CGT(K.legacyInfoCardVastExtension)); K.sodarExtensionData&&I.push(new gO(K.sodarExtensionData));B&&I.push(new DF(B));I.push(new nJ(Ev(K.pings)));a=Tc(K.pings);if(q){a:{for(t of q)if(t.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){q=g.Z(t.fulfillmentContent.fulfilledLayout,z5);if(!q)continue;if((q=g.Z(q.renderingContent,Au))&&q.associatedPlayerBytesLayoutId===R)break a}var t=void 0}t&&I.push(new XuH(t))}return{layoutId:R,layoutType:"LAYOUT_TYPE_MEDIA",IT:a,layoutExitNormalTriggers:[new Pm(b.G,R)],layoutExitSkipTriggers:K.skipOffsetMilliseconds? [new Zn(b.G,H)]:[],layoutExitMuteTriggers:[new Zn(b.G,H)],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],jY:h,vt:I,qj:v(d),adLayoutLoggingData:K.adLayoutLoggingData}}; Dcx=function(b){return b!=null}; Sbx=function(b,R,h,K,I){const N=iU(b.Y.get(),R);return EF(b,N,R,new O1(b.G,h),[new YA(b.G,h),new e7(b.G,N)],K,I)}; YbB=function(b,R,h,K,I,N,p){const l=iU(b.Y.get(),R);return EF(b,l,R,new mh(b.G,I,["normal"]),[new YA(b.G,h),new e7(b.G,l),new mh(b.G,K,["error"])],N,p)}; eXe=function(b,R,h,K,I,N){const p=iU(b.Y.get(),R);return EF(b,p,R,new ML(b.G,K),[new YA(b.G,h),new e7(b.G,p),new mh(b.G,K,["error"])],I,N)}; xcT=function(b,R,h,K,I){return y7D(b,R,h,K,I)}; cQP=function(b,R,h,K,I){const N=iU(b.Y.get(),"SLOT_TYPE_IN_PLAYER");h=new TG(b.G,K,h);K=[new cm(b.G,N)];b=[new YA(b.G,R)];return{slotId:N,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:h,slotFulfillmentTriggers:K,slotExpirationTriggers:b,jY:"core",clientMetadata:new kv([new Kg(I({slotId:N,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,jY:"core",slotEntryTrigger:h,slotFulfillmentTriggers:K,slotExpirationTriggers:b}))])}}; C1e=function(b,R,h,K){const I=iU(b.Y.get(),"SLOT_TYPE_IN_PLAYER");h=new ML(b.G,h);var N=[new cm(b.G,I)];const p=[new e7(b.G,I),new YA(b.G,R)];N={slotId:I,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,jY:"core",slotEntryTrigger:h,slotFulfillmentTriggers:N,slotExpirationTriggers:p};return{slotId:I,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:h,slotFulfillmentTriggers:[new cm(b.G,I)],slotExpirationTriggers:[new YA(b.G,R),new e7(b.G,I)],jY:"core",clientMetadata:new kv([new Kg(K(N))])}}; bXw=function(b,R,h,K,I){const N=iU(b.Y.get(),"SLOT_TYPE_PLAYER_BYTES"),p=new w1(b.G),l=[new kA(b.G,N)];b=[new YA(b.G,R)];R=[];R.push(new Kg(K({slotId:N,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,jY:"core",slotEntryTrigger:p,slotFulfillmentTriggers:l,slotExpirationTriggers:b})));R.push(new SK);I&&R.push(new O6({current:I}));return{slotId:N,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:p,slotFulfillmentTriggers:l,slotExpirationTriggers:b,jY:"core",clientMetadata:new kv(R), adSlotLoggingData:h}}; Njw=function(b,R,h,K,I,N,p){const l=iU(b.Y.get(),"SLOT_TYPE_IN_PLAYER"),a=lU(b.Y.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",l);K=tw2(b,K,N,p,a);if(K instanceof V)return K;p=[new cm(b.G,l)];I=[new YA(b.G,N),new cm(b.G,I),new JM(b.G,I)];h=Jj(h,{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,jY:"core",slotEntryTrigger:K,slotFulfillmentTriggers:p,slotExpirationTriggers:I});b=b.X.get();N={layoutId:a,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",jY:"core"};R={layoutId:a,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", IT:new Map,layoutExitNormalTriggers:[new jYx(b.G,a,R.durationMs)],layoutExitSkipTriggers:[new A7T(b.G,a,R.durationMs)],layoutExitUserCancelledTriggers:[new io2(b.G,a)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],jY:"core",clientMetadata:new kv([new z8B(R)]),qj:h(N)};return{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,jY:"core",slotEntryTrigger:K,slotFulfillmentTriggers:p,slotExpirationTriggers:I,clientMetadata:new kv([new Kg(R)])}}; vEP=function(b,R,h,K,I){R=ike(b,R);b=a0(b,R,h);I=I({slotId:b.slotId,slotType:b.slotType,slotPhysicalPosition:b.slotPhysicalPosition,slotEntryTrigger:b.slotEntryTrigger,slotFulfillmentTriggers:b.slotFulfillmentTriggers,slotExpirationTriggers:b.slotExpirationTriggers,jY:b.jY});return I instanceof V?I:{ZG:{...b,clientMetadata:new kv([new Kg(I.layout)]),adSlotLoggingData:K},S6:I.S6}}; Bjx=function(b,R,h,K,I,N,p){h=zq3(b,R,h,K);if(h instanceof V)return h;p=p({slotId:h.slotId,slotType:h.slotType,slotPhysicalPosition:h.slotPhysicalPosition,slotEntryTrigger:h.slotEntryTrigger,slotFulfillmentTriggers:h.slotFulfillmentTriggers,slotExpirationTriggers:h.slotExpirationTriggers,jY:h.jY});if(p instanceof V)return p;b=[new Kg(p.layout),new Qw({iW:b.iW(R)})];N&&b.push(new Uj3({}));return{ZG:{slotId:h.slotId,slotType:h.slotType,slotPhysicalPosition:h.slotPhysicalPosition,slotEntryTrigger:h.slotEntryTrigger, slotFulfillmentTriggers:h.slotFulfillmentTriggers,slotExpirationTriggers:h.slotExpirationTriggers,jY:h.jY,clientMetadata:new kv(b),adSlotLoggingData:I},S6:p.S6}}; djK=function(b,R,h,K,I){I=I?I:iU(b.Y.get(),"SLOT_TYPE_IN_PLAYER");h=new ML(b.G,h);const N=[new cm(b.G,I)];b=[new YA(b.G,R),new e7(b.G,I)];return{slotId:I,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:h,slotFulfillmentTriggers:N,slotExpirationTriggers:b,jY:"core",clientMetadata:new kv([new Kg(K({slotId:I,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,jY:"core",slotEntryTrigger:h,slotFulfillmentTriggers:N,slotExpirationTriggers:b}))])}}; f5T=function(b,R,h,K){const I=iU(b.Y.get(),"SLOT_TYPE_PLAYER_UNDERLAY");h=new ML(b.G,h);const N=[new cm(b.G,I)];b=[new YA(b.G,R),new e7(b.G,I)];return{slotId:I,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:h,slotFulfillmentTriggers:N,slotExpirationTriggers:b,jY:"core",clientMetadata:new kv([new Kg(K({slotId:I,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,jY:"core",slotEntryTrigger:h,slotFulfillmentTriggers:N,slotExpirationTriggers:b}))])}}; DjB=function(b,R,h,K,I){h=h?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";const N=iU(b.Y.get(),h);R=new O1(b.G,R);const p=[new cm(b.G,N)];b=[new e7(b.G,N)];return{slotId:N,slotType:h,slotPhysicalPosition:1,slotEntryTrigger:R,slotFulfillmentTriggers:p,slotExpirationTriggers:b,jY:"core",clientMetadata:new kv([new Kg(I({slotId:N,slotType:h,slotPhysicalPosition:1,jY:"core",slotEntryTrigger:R,slotFulfillmentTriggers:p,slotExpirationTriggers:b}))]),adSlotLoggingData:K}}; hqP=function(b,R,h,K,I,N){const p=iU(b.Y.get(),"SLOT_TYPE_FORECASTING");R=kH(b,R,h,K);if(R instanceof V)return R;K=[new cm(b.G,p)];b=[new e7(b.G,p),new YA(b.G,h)];return{slotId:p,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:R,slotFulfillmentTriggers:K,slotExpirationTriggers:b,jY:"core",clientMetadata:new kv([new Kg(N({slotId:p,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,jY:"core",slotEntryTrigger:R,slotFulfillmentTriggers:K,slotExpirationTriggers:b}))]),adSlotLoggingData:I}}; $CD=function(b,R,h,K){const I=iU(b.Y.get(),"SLOT_TYPE_IN_PLAYER"),N=new O1(b.G,R),p=[new kA(b.G,I)];b=[new YA(b.G,R),new e7(b.G,I)];return{slotId:I,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:N,slotFulfillmentTriggers:p,slotExpirationTriggers:b,jY:"core",clientMetadata:new kv([new Kg(K({slotId:I,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,jY:"core",slotEntryTrigger:N,slotFulfillmentTriggers:p,slotExpirationTriggers:b}))]),adSlotLoggingData:h}}; N8e=function(b,R,h,K,I,N){R=kH(b,R,h,K);if(R instanceof V)return R;const p=R instanceof VV?new Ur3(b.G,h,R.G):null;K=iU(b.Y.get(),"SLOT_TYPE_IN_PLAYER");const l=[new cm(b.G,K)];b=[new YA(b.G,h),new e7(b.G,K)];N=N({slotId:K,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,jY:"core",slotEntryTrigger:R,slotFulfillmentTriggers:l,slotExpirationTriggers:b},p);return N instanceof FI?new V(N):{slotId:K,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:R,slotFulfillmentTriggers:l, slotExpirationTriggers:b,jY:"core",clientMetadata:new kv([new Kg(N)]),adSlotLoggingData:I}}; amK=function(b,R,h,K){const I=iU(b.Y.get(),"SLOT_TYPE_IN_PLAYER");return y7D(b,I,R,h,K)}; SOB=function(b,R,h,K,I,N){const p=iU(b.Y.get(),"SLOT_TYPE_PLAYER_BYTES"),l=iU(b.Y.get(),"SLOT_TYPE_IN_PLAYER"),a=lU(b.Y.get(),"LAYOUT_TYPE_SURVEY",l);K=kH(b,R,h,K);const v=[new cm(b.G,p)];h=[new e7(b.G,p),new YA(b.G,h),new Xi(b.G,a)];if(K instanceof V)return K;const {dZ:B,Wy:H}=N({slotId:p,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,jY:"core",slotEntryTrigger:K,slotFulfillmentTriggers:v,slotExpirationTriggers:h},{slotId:l,layoutId:a});return[{slotId:p,slotType:"SLOT_TYPE_PLAYER_BYTES", slotPhysicalPosition:1,slotEntryTrigger:K,slotFulfillmentTriggers:v,slotExpirationTriggers:h,jY:"core",clientMetadata:new kv([new Kg(B),new Qw({iW:b.iW(R)})]),adSlotLoggingData:I},H]}; ZkT=function(b,R,h,K,I,N,p){if(!h.prefetchModeConfig)return new V("AdPlacementConfig for Live Prefetch is missing prefetch_config");h=h.prefetchModeConfig;K*=1E3;const l=[];if(!h.breakLengthMs)return new V("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(const B of h.breakLengthMs)if(Number(B)>0){var a=K+Number(h.startTimeOffsetMs),v=a+Number(h.cacheFetchSmearingDurationMs);a={TE:new EB(v,v+Number(B)),PL:!1,UA:new EB(Math.floor(a+Math.random()*Number(h.cacheFetchSmearingDurationMs)), v),cueProcessedMs:K?K:a};v=[];v.push(new eGT);const H=[];H.push(new RN(b.G));H.push(new GP2(b.G));p&&v.push(new SK);l.push(Ju(b,R,I,a,N,v,H))}return l}; Ju=function(b,R,h,K,I,N=[],p){const l=iU(b.Y.get(),"SLOT_TYPE_AD_BREAK_REQUEST");p||(p=[],K.UA&&K.UA.start!==K.TE.start&&p.push(new VV(b.G,h,new EB(K.UA.start,K.TE.start),!1)),p.push(new VV(b.G,h,new EB(K.TE.start,K.TE.end),K.PL)));K={getAdBreakUrl:R.getAdBreakUrl,Xe:K.TE.start,IQ:K.TE.end,cueProcessedMs:K.cueProcessedMs};R=new YH(b.G,l);N=[new zXP(K),...N];return{slotId:l,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:R,slotFulfillmentTriggers:p,slotExpirationTriggers:[new YA(b.G, h),new e7(b.G,l),new et(b.G,l)],jY:"core",clientMetadata:new kv(N),adSlotLoggingData:I}}; gMT=function(b,R,h){const K=[];for(const I of h)K.push(I.triggeringSlotId!=null&&I.triggeringSlotId===b?I.clone(R):I);return K}; y7D=function(b,R,h,K,I){const N=new ML(b.G,h),p=[new cm(b.G,R)];b=[new e7(b.G,R),new YA(b.G,K)];return{slotId:R,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:N,slotFulfillmentTriggers:p,slotExpirationTriggers:b,jY:"core",clientMetadata:new kv([new Kg(I({slotId:R,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,jY:"core",slotEntryTrigger:N,slotFulfillmentTriggers:p,slotExpirationTriggers:b},h))]),adSlotLoggingData:void 0}}; kH=function(b,R,h,K){return Wsq(b,R,h,K,(I,N)=>new VV(b.G,h,I,N))}; tw2=function(b,R,h,K,I){return Wsq(b,R,h,K,(N,p)=>new Soq(b.G,h,N,p,I))}; EF=function(b,R,h,K,I,N,p){b=[new kA(b.G,R)];return{slotId:R,slotType:h,slotPhysicalPosition:1,slotEntryTrigger:K,slotFulfillmentTriggers:b,slotExpirationTriggers:I,jY:"core",clientMetadata:new kv([new Kg(p({slotId:R,slotType:h,slotPhysicalPosition:1,jY:"core",slotEntryTrigger:K,slotFulfillmentTriggers:b,slotExpirationTriggers:I}))]),adSlotLoggingData:N}}; ike=function(b,R){return YOT(b.VX.get())?new mh(b.G,R,["normal","error","skipped"]):new mh(b.G,R,["normal"])}; a0=function(b,R,h){const K=iU(b.Y.get(),"SLOT_TYPE_PLAYER_BYTES"),I=[new cm(b.G,K)];b=[new e7(b.G,K),new YA(b.G,h)];return{slotId:K,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:R,slotFulfillmentTriggers:I,slotExpirationTriggers:b,jY:"core"}}; zq3=function(b,R,h,K){R=kH(b,R,h,K);return R instanceof V?R:a0(b,R,h)}; VB=function(b,R,h){(b+5^9)=b&&(h=(h%R[f[4]]+R[f[4]])%R[f[4]],R[f[46]](h,1));if((b^23)<8&&(b^17)>>4>=0)for(R=(R%h[f[4]]+h[f[4]])%h[f[4]];R--;)h[f[44]](h[f[42]]());if(!(b+7>>4)){for(var K=64,I=[];++K-I[f[4]]-32;)switch(K){case 46:K=95;default:I[f[22]](String[f[51]](K));case 94:case 95:case 96:break;case 123:K-=76;case 92:case 93:continue;case 58:K=44;case 91:}var N=I}return N}; Wsq=function(b,R,h,K,I){const N=!R.hideCueRangeMarker;switch(R.kind){case "AD_PLACEMENT_KIND_START":return new O1(b.G,h);case "AD_PLACEMENT_KIND_MILLISECONDS":return b=AQD(R,K),b instanceof V?b:I(b.TE,N);case "AD_PLACEMENT_KIND_END":return new CA(b.G,h,N);default:return new V("Cannot construct entry trigger",{kind:R.kind})}}; mD=function(b,R,h){b.G(R,void 0,void 0,void 0,h,void 0,void 0,void 0,h.adSlotLoggingData)}; L9=function(b,R,h,K,I){b.G("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,K,I,void 0,void 0,K.adSlotLoggingData,I?I.adLayoutLoggingData:void 0,{errorType:R,errorMessage:h})}; Mh=function(b,R,h,K){b.G(R,void 0,void 0,void 0,h,K?K:void 0,void 0,void 0,h.adSlotLoggingData,K?K.adLayoutLoggingData:void 0);R=nQ().resolve(UM(dI))?.g0();h=R?.adsHotConfig;R?.adsSeenHotConfig?.logOnAdsSeen&&h?.webEnablePremiumAdsSeenLogging&&nM3(b,K?K:void 0)}; YHs=function(b,R,h,K){pM(b.VX.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED","trigger:",h,"slot:",R,"layout:",K);TM(b.Y.get())&&b.G("ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",void 0,void 0,void 0,R,K?K:void 0,void 0,h,R.adSlotLoggingData,K?K.adLayoutLoggingData:void 0)}; nM3=function(b,R){if(R){var h=R.adLayoutLoggingData;g.z6(g.G6(),()=>{b.X?.G(h)},0)}}; OF=function(b,R){return b.G.get(R)||null}; EM2=function(){let b,R;return{iK:new QU((h,K)=>{b=h;R=K}), resolve:b,reject:R}}; mS=function(b){return xH(b)?b:e$(b)?new QU((R,h)=>{b.then(R,h)}):new QU(R=>{R(b)})}; Pq=function(b){return new QU((R,h)=>{h(b)})}; ZH=function(b){try{return mS(b())}catch(R){return Pq(R)}}; TIP=function(b){return new Promise((R,h)=>{cq(b,R,h)})}; J7s=async function(b){return TIP(b)}; up=function(b){if(b.G==="fulfilled"){var R=b.Y;b.Y=[];b.X=[];for(var h of R)h(b.result)}else if(b.G==="rejected"){h=b.X;b.Y=[];b.X=[];for(R of h)R(b.error)}}; cq=function(b,R,h){const {iK:K,resolve:I,reject:N}=EM2();b.Y.push(p=>{if(R)try{const l=R(p);I(l)}catch(l){N(l)}else I(p)}); b.X.push(p=>{if(h)try{const l=h(p);I(l)}catch(l){N(l)}else N(p)}); up(b);return K}; X4=function(b,R){return cq(b,void 0,R)}; kPK=function(b,R){cq(b,h=>cq(mS(R()),()=>h),h=>cq(mS(R()),()=>Pq(h)))}; VU=function(b,R){return YoK(R.call(b))}; Cg=function(b){return function*(){return yield{iK:mS(b)}}()}; YoK=function(b){return ZH(()=>M6(b,b.next()))}; M6=function(b,R){return R.done?mS(R.value):X4(cq(R.value.iK,h=>M6(b,b.next(h))),h=>M6(b,b.throw(h)))}; QY2=function(b){const R=e83(b);return cq(OoK(R),()=>R.map(h=>h.state()))}; OoK=function(b){if(b.length===0)return mS(NaN);const {iK:R,resolve:h}=EM2();let K=b.length;for(const [I,N]of b.entries()){const p=I;kPK(N,()=>{R.G==="pending"&&(xrw(void 0)&&(void 0)(p)&&R.G==="pending"?h(p):(--K,K===0&&h(NaN)))})}return R}; e83=function(b){return b.map(R=>mS(R))}; rT=function(b){return window.Int32Array?new Int32Array(b):Array(b)}; mrH=function(b){const R=b.key;let h=b.counter[0]^R[0],K=b.counter[1]^R[1],I=b.counter[2]^R[2],N=b.counter[3]^R[3];for(var p=3;p>=0&&!(b.counter[p]=-~b.counter[p]);p--);let l,a,v=4;for(;v<40;)p=Lg[h>>>24]^wT[K>>16&255]^F4[I>>8&255]^o0[N&255]^R[v++],l=Lg[K>>>24]^wT[I>>16&255]^F4[N>>8&255]^o0[h&255]^R[v++],a=Lg[I>>>24]^wT[N>>16&255]^F4[h>>8&255]^o0[K&255]^R[v++],N=Lg[N>>>24]^wT[h>>16&255]^F4[K>>8&255]^o0[I&255]^R[v++],h=p,K=l,I=a;b=b.Y;p=R[40];b[0]=DH[h>>>24]^p>>>24;b[1]=DH[K>>16&255]^p>>16&255;b[2]= DH[I>>8&255]^p>>8&255;b[3]=DH[N&255]^p&255;p=R[41];b[4]=DH[K>>>24]^p>>>24;b[5]=DH[I>>16&255]^p>>16&255;b[6]=DH[N>>8&255]^p>>8&255;b[7]=DH[h&255]^p&255;p=R[42];b[8]=DH[I>>>24]^p>>>24;b[9]=DH[N>>16&255]^p>>16&255;b[10]=DH[h>>8&255]^p>>8&255;b[11]=DH[K&255]^p&255;p=R[43];b[12]=DH[N>>>24]^p>>>24;b[13]=DH[h>>16&255]^p>>16&255;b[14]=DH[K>>8&255]^p>>8&255;b[15]=DH[I&255]^p&255}; hX=function(){if(!bD&&!g.po){if(Re)return Re;Re=window.crypto?.subtle;if(Re?.importKey&&Re?.sign&&Re?.encrypt)return Re;Re=void 0}}; PyK=async function(b,R,h){b.G||(b.G=await b.subtleCrypto.importKey("raw",b.Y,{name:"AES-CTR"},!1,["encrypt"]));b=await b.subtleCrypto.encrypt({name:"AES-CTR",counter:h,length:128},b.G,R);return new Uint8Array(b)}; ZoP=function(b){b.G=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];b.D=[];b.D.length=64;b.V=0;b.Y=0}; c7K=function(b,R,h){const K=b.D;let I=b.G[0],N=b.G[1],p=b.G[2],l=b.G[3],a=b.G[4],v=b.G[5],B=b.G[6],H=b.G[7],q,d,t;for(let S=0;S<64;)S<16?(K[S]=t=R[h]<<24|R[h+1]<<16|R[h+2]<<8|R[h+3],h+=4):(q=K[S-2],d=K[S-15],t=K[S-7]+K[S-16]+((q>>>17|q<<15)^(q>>>19|q<<13)^q>>>10)+((d>>>7|d<<25)^(d>>>18|d<<14)^d>>>3),K[S]=t),q=H+KG[S]+t+((a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7))+(a&v^~a&B),d=((I>>>2|I<<30)^(I>>>13|I<<19)^(I>>>22|I<<10))+(I&N^I&p^N&p),H=q+d,l+=q,S++,S<16?(K[S]=t=R[h]<<24|R[h+1]<<16|R[h+2]<<8|R[h+ 3],h+=4):(q=K[S-2],d=K[S-15],t=K[S-7]+K[S-16]+((q>>>17|q<<15)^(q>>>19|q<<13)^q>>>10)+((d>>>7|d<<25)^(d>>>18|d<<14)^d>>>3),K[S]=t),q=B+KG[S]+t+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&a^~l&v),d=((H>>>2|H<<30)^(H>>>13|H<<19)^(H>>>22|H<<10))+(H&I^H&N^I&N),B=q+d,p+=q,S++,S<16?(K[S]=t=R[h]<<24|R[h+1]<<16|R[h+2]<<8|R[h+3],h+=4):(q=K[S-2],d=K[S-15],t=K[S-7]+K[S-16]+((q>>>17|q<<15)^(q>>>19|q<<13)^q>>>10)+((d>>>7|d<<25)^(d>>>18|d<<14)^d>>>3),K[S]=t),q=v+KG[S]+t+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25| p<<7))+(p&l^~p&a),d=((B>>>2|B<<30)^(B>>>13|B<<19)^(B>>>22|B<<10))+(B&H^B&I^H&I),v=q+d,N+=q,S++,S<16?(K[S]=t=R[h]<<24|R[h+1]<<16|R[h+2]<<8|R[h+3],h+=4):(q=K[S-2],d=K[S-15],t=K[S-7]+K[S-16]+((q>>>17|q<<15)^(q>>>19|q<<13)^q>>>10)+((d>>>7|d<<25)^(d>>>18|d<<14)^d>>>3),K[S]=t),q=a+KG[S]+t+((N>>>6|N<<26)^(N>>>11|N<<21)^(N>>>25|N<<7))+(N&p^~N&l),d=((v>>>2|v<<30)^(v>>>13|v<<19)^(v>>>22|v<<10))+(v&B^v&H^B&H),t=H,H=l,l=t,t=B,B=p,p=t,t=v,v=N,N=t,a=I+q,I=q+d,S++;b.G[0]=I+b.G[0]|0;b.G[1]=N+b.G[1]|0;b.G[2]=p+b.G[2]| 0;b.G[3]=l+b.G[3]|0;b.G[4]=a+b.G[4]|0;b.G[5]=v+b.G[5]|0;b.G[6]=B+b.G[6]|0;b.G[7]=H+b.G[7]|0}; ujT=function(b){const R=new Uint8Array(32);var h=64-b.Y;b.Y>55&&(h+=64);const K=new Uint8Array(h);K[0]=128;let I=b.V*8;for(let N=1;N<9;N++){const p=I%256;K[h-N]=p;I=(I-p)/256}b.update(K);for(h=0;h<8;h++)R[h*4]=b.G[h]>>>24,R[h*4+1]=b.G[h]>>>16&255,R[h*4+2]=b.G[h]>>>8&255,R[h*4+3]=b.G[h]&255;ZoP(b);return R}; Vw2=function(b,R,h){b=new XWH(b.G);b.update(R);b.update(h);R=ujT(b);b.update(b.S);b.update(R);R=ujT(b);b.reset();return R}; Cye=async function(b,R,h){b.G||(b.G=await b.subtleCrypto.importKey("raw",b.Y,{name:"HMAC",hash:"SHA-256"},!1,["sign"]));const K=new Uint8Array(R.length+h.length);K.set(R);K.set(h,R.length);b=await b.subtleCrypto.sign({name:"HMAC",hash:"SHA-256"},b.G,K);return new Uint8Array(b)}; r7P=async function(b,R,h,K){b.Y||(b.Y=new MwP(b.G,K));return Cye(b.Y,R,h)}; wWH=function(b,R,h){b.X||(b.X=new LsP(b.G));return Vw2(b.X,R,h)}; FsP=async function(b,R,h){const K=hX();if(K)try{return await r7P(b,R,h,K)}catch(I){return g.kJ(I),bD=!0,wWH(b,R,h)}else return wWH(b,R,h)}; g.s0=function(b,R,h){const K={...b};for(const I of Object.keys(R)){const N=b[I],p=R[I];if(p===void 0)delete K[I];else if(N===void 0)K[I]=p;else if(Array.isArray(p)&&Array.isArray(N))K[I]=h?[...N,...p]:p;else if(!Array.isArray(p)&&g.uT(p)&&!Array.isArray(N)&&g.uT(N))K[I]=g.s0(N,p,h);else if(typeof p===typeof N)K[I]=p;else return R=new g.A$("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:I,N45:N,updateValue:p}),g.X(R),b}return K}; Zu=function(b,R){if((b-5^16)=b){var h=R[f[16]](f[33]);const N={};for(let p=0;p=-2&&((0,R[21])((0,R[40])((0,R[40])((0,R[68])(R[new Date(f[71])/1E3],R[25]),R[68],R[63],R[27]),R[72],R[16]),R[72],(0,R[41])(R[16],R[5],(0,R[22])()),R[6]),1)||(0,R[40])(((((0,R[70])(R[1],R[6]),R[70])(R[34],R[2]),R[73])(R[27]),R[8])(R[69],R[76]),R[42],R[24],R[47]))}catch(N){(0,R[64])(R[47],R[3])}finally{R[23]!=-6&&(0,R[68])(R[78])}try{h= c8(1,R,Date)}catch(N){}try{R[72]<=7&&(R[65]===-8||((((0,R[new Date(f[20])/1E3+256])(R[12]),R[36])((0,R[42])(R[39],R[59]),R[64],R[12],R[6]),R[66])(R[50],R[47]),0))&&(0,R[45])(((0,R[3])(R[49],R[48],(0,R[35])()),R[30])(R[49],R[80]),R[2],(0,R[30])(R[17],R[31]),R[6],R[new Date(f[56])/1E3*175-3+-38107],R[25]),R[19]>9?(0,R[3])(R[25],R[48],(0,R[21])()):(0,R[34])(R[49])}catch(N){(0,R[30])(R[25],R[27]),(0,R[3])(R[49],R[48],(0,R[41])())}try{R[11]!=-8&&(0,R[7])(R[32],(0,R[14])(R[25]),(0,R[34])(R[59]),(0,R[6])(R[63], R[17]),R[11],R[17])}catch(N){(0,R[41])(R[6],R[5],(0,R[59])())}finally{h=RY(58,R,Date)}try{(R[33]!=-3||(((0,R[68])(R[46],R[23],(0,R[36])()),(0,R[4])((0,R[71])(R[12],R[5]),((0,R[69])((0,R[42])(R[17],R[22]),R[71],R[22],R[41]),R[new Date(f[86])/1E3])(R[12],R[70]),R[69],(0,R[71])(R[27],R[56]),R[71],R[12],R[34]),R[71])(R[46],R[62]),0))&&((((0,R[39])(R[10],R[22]),R[39])(R[2],R[46]),(0,R[63])(R[29],R[27]),R[65])(R[13],R[54]),(0,R[39])(R[11],R[27]),R[17])((0,R[17])((0,R[11])(R[0],R[2]),R[5],R[54]),R[13],R[41], R[54]),((0,R[19])(R[53],R[54]),R[5])(R[2])}catch(N){R[56]>=9&&(R[46]>-4&&((0,R[19])(R[59],R[80]),5)||(0,R[19])(R[54],R[77]))}I=[]}if(!(b+8&30))for(h=R[f[4]];h;)R[f[22]](R[f[46]](--h,1)[0]);(b>>1&7)>=6&&(b^92)>>4<3&&(I=R[f[19]]?R[f[19]][f[10]](f[23]):R[f[48]]===f[23]);if((b-2^11)=b){tR(19,R);h=R[f[48]]+(R[f[48]]?f[68]:f[13])+R[f[27]]+R[f[8]];if(jT(30,R)){const N=[];g.Z2(R[f[1]],(p,l)=>{p!==null&&N[f[22]](`${l}=${p}`)}); h+=`?${N[f[58]](f[33])}`}I=h}return I}; oMP=function(b,R){return b.G.length===0?!1:(b=b.G[b.G.length-1])&&b.buffer===R.buffer&&b.byteOffset+b.length===R.byteOffset}; $I=function(b){b.V=void 0;b.Y=0;b.X=0}; Ie=function(b,R){for(const h of R.G)b.append(h)}; NJ=function(b,R,h){let {xr:K,ZH:I}=b.split(R);({xr:K}=I.split(h));return K}; pG=function(b,R,h){b.isFocused(R);return R-b.X+h<=b.G[b.Y].length}; Dre=function(b){if(!b.V){const R=b.G[b.Y];b.V=new DataView(R.buffer,R.byteOffset,R.length)}return b.V}; bQs=function(b,R=0,h=-1){if(!b.totalLength||!h)return new DataView(new ArrayBuffer(0));h<0&&(h=b.totalLength-R);b.focus(R);if(!pG(b,R,h)){var K=b.Y,I=b.X;b.focus(R+h-1);I=new Uint8Array(b.X+b.G[b.Y].length-I);let N=0;for(let p=K;p<=b.Y;p++)I.set(b.G[p],N),N+=b.G[p].length;b.G.splice(K,b.Y-K+1,I);$I(b);b.focus(R)}K=b.G[b.Y];return new DataView(K.buffer,K.byteOffset+R-b.X,h)}; lD=function(b,R=0,h=-1){b=bQs(b,R,h);return new Uint8Array(b.buffer,b.byteOffset,b.byteLength)}; ae=function(b,R=0,h=-1){b=lD(b,R,h);R=new Uint8Array(b.length);try{R.set(b)}catch(K){for(h=0;h>10;I=56320|I&1023}qJ[N++]=I}I=String.fromCharCode.apply(String, qJ);N<1024&&(I=I.substring(0,N));h.push(I)}return h.join("")}; yj=function(b,R){if(fG?.encodeInto){const {read:K,written:I}=fG.encodeInto(b,R);return K>6|192:((I&64512)===55296&&K+1>18|240,R[h++]=I>>12&63|128):R[h++]=I>>12|224,R[h++]=I>>6&63|128),R[h++]=I&63|128)}return h}; tX=function(b){if(fG)return fG.encode(b);let R=new Uint8Array(Math.ceil(b.length*1.2)),h=yj(b,R);R.lengthh&&(R=R.subarray(0,h));return R}; iD=function(b,R){b=b instanceof Uint8Array?new ju([b]):b;return R(new AX(b))}; tz=function(b,R){if(zC(b,R))return U0(b)}; jb=function(b,R){if(b=W5(b,R))return g.dn(b)}; W5=function(b,R){if(zC(b,R)){R=U0(b);var h=lD(b.G,b.pos,R);b.pos+=R;return h}}; ED=function(b,R,h){if(b=W5(b,R))return h(new AX(new ju([b])))}; GC=function(b,R="",h=""){b=new g.Mj(b,!0);b.set("alr","yes");h&&(h=is(17,decodeURIComponent(h)),b[f[24]](R,encodeURIComponent(h)));return b}; Yb=function(b,R){if(zC(b,R))return!!U0(b)}; eb=function(b,R,h){const K=[];let I;for(;I=W5(b,R);)K.push(h(new AX(new ju([I]))));return K.length?K:void 0}; Tu=function(b,R){if(zC(b,R))return R=lD(b.G,b.pos,8),b.pos+=8,(new DataView(R.buffer,R.byteOffset,R.byteLength)).getFloat64(0,!0)}; Jz=function(b,R){const h=[];for(;zC(b,R);)h.push(U0(b));return h.length?h:void 0}; U0=function(b){let R=vJ(b.G,b.pos);++b.pos;if(R<128)return R;let h=R&127,K=1;for(;R>=128;)R=vJ(b.G,b.pos),++b.pos,K*=128,h+=(R&127)*K;return h}; zC=function(b,R){let h=b.Y;for(b.Y=-1;b.pos+1<=b.G.totalLength;){h<0&&(h=U0(b));var K=h>>3;const I=h&7;if(K===R)return!0;if(K>R){b.Y=h;break}h=-1;switch(I){case 0:U0(b);break;case 1:b.pos+=8;break;case 2:K=U0(b);b.pos+=K;break;case 5:b.pos+=4}}return!1}; KIx=function(b,R){b=new Uint8Array(b);R&&b.set(R);return b}; g.gn=function(b,R){const h=new sqx(4096);R(h,b);return new Uint8Array(h.G.buffer,h.G.byteOffset,h.pos)}; a5=function(b,R,h,K,I=3){h&&($t2(b,R,I),K(b,h),IkB(b))}; B5=function(b,R,h){h!==void 0&&(UD(b,R*8+2),R=h.length,UD(b,R),Gu(b,R),b.G.set(h,b.pos),b.pos+=R)}; qD=function(b,R,h){h!==void 0&&($t2(b,R,Math.ceil(Math.log2(h.length*4+2)/7)),Gu(b,h.length*1.2),R=yj(h,b.G.subarray(b.pos)),b.pos+R>b.G.length&&(Gu(b,R),R=yj(h,b.G.subarray(b.pos))),b.pos+=R,IkB(b))}; f4=function(b,R,h){h!==void 0&&(UD(b,R*8),UD(b,h))}; zu=function(b,R,h){h!==void 0&&f4(b,R,h?1:0)}; Gu=function(b,R){R=b.pos+R;if(!(b.G.length>=R)){for(var h=b.G.length*2;h268435455){Gu(b,4);let h=R&1073741823;for(let K=0;K<4;K++)b.view.setUint8(b.pos,h&127|128),h>>=7,b.pos+=1;R=Math.floor(R/268435456)}for(Gu(b,4);R>127;)b.view.setUint8(b.pos,R&127|128),R>>=7,b.pos+=1;b.view.setUint8(b.pos,R);b.pos+=1}; $t2=function(b,R,h=2){UD(b,R*8+2);b.Y.push(b.pos);b.Y.push(h);b.pos+=h}; IkB=function(b){let R=b.Y.pop(),h=b.Y.pop(),K=b.pos-h-R;for(;R--;){const I=R?128:0;b.view.setUint8(h++,K&127|I);K>>=7}}; g.WJ=function(b){var R=new AX(new ju([Vo(decodeURIComponent(b))]));b=jb(R,2);R=tz(R,4);const h=Nyx[R];if(typeof h==="undefined")throw b=new g.A$("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:R}),g.X(b),b;return{e2:R,entityType:h,entityId:b}}; g.Su=function(b,R){const h=new sqx;B5(h,2,tX(b));b=p2H[R];if(typeof b==="undefined")throw R=new g.A$("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:R}),g.X(R),R;f4(h,4,b);f4(h,5,1);R=new Uint8Array(h.G.buffer,h.G.byteOffset,h.pos);return encodeURIComponent(g.Zc(R,0))}; nG=function(b,R,h,K){if(K===void 0){const {[h]:I,...N}=b[R]||{};return{...b,[R]:N}}return{...b,[R]:{...b[R],[h]:K}}}; lkB=function(b,R,h,K,I){const N=b[R];if(!N?.[h])return b;K=g.s0(N[h],K,I==="REPEATED_FIELDS_MERGE_OPTION_APPEND");return{...b,[R]:{...b[R],[h]:K}}}; akK=function(b={},R){switch(R.type){case "ENTITY_LOADED":return R.payload.reduce((h,K)=>{const I=K.options?.persistenceOption;if(I&&I!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&I!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return h;if(!K.entityKey)return g.X(Error("Missing entity key")),h;if(K.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!K.payload)return K=new g.A$("REPLACE entity mutation is missing a payload",{entityKey:K.entityKey}),g.X(K),h;var N=g.Cr(K.payload);return nG(h,N,K.entityKey,K.payload[N])}if(K.type=== "ENTITY_MUTATION_TYPE_DELETE"){a:{K=K.entityKey;try{const p=g.WJ(K).entityType;N=nG(h,p,K);break a}catch(p){if(p instanceof Error){K=new g.A$("Failed to deserialize entity key",{entityKey:K,originalMessage:p.message});g.X(K);N=h;break a}throw p;}N=void 0}return N}if(K.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!K.payload)return K=new g.A$("UPDATE entity mutation is missing a payload",{entityKey:K.entityKey}),g.X(K),h;N=g.Cr(K.payload);return lkB(h,N,K.entityKey,K.payload[N],K.fieldMask?.mergeOptions?.repeatedFieldsMergeOption)}return h}, b); case "REPLACE_ENTITY":return nG(b,R.payload.entityType,R.payload.key,R.payload.mp);case "REPLACE_ENTITIES":return Object.keys(R.payload).reduce((h,K)=>{const I=R.payload[K];return Object.keys(I).reduce((N,p)=>nG(N,K,p,I[p]),h)},b); case "UPDATE_ENTITY":return lkB(b,R.payload.entityType,R.payload.key,R.payload.mp,R.payload.MrJ);default:return b}}; E0=function(b,R,h){return b[R]?b[R][h]||null:null}; JX=function(b){var R=b.hours||0;var h=b.minutes||0,K=b.seconds||0;R=K+h*60+R*3600+(b.days||0)*86400+(b.weeks||0)*604800+(b.months||0)*2629800+(b.years||0)*31557600;R<=0?R={hours:0,minutes:0,seconds:0}:(b=R,R=Math.floor(b/3600),b%=3600,h=Math.floor(b/60),K=Math.floor(b%60),R={hours:R,minutes:h,seconds:K});const {hours:I=0,minutes:N=0,seconds:p=0}=R;h=I>0;R=[];if(h){b=(new Intl.NumberFormat("en-u-nu-latn")).format(I);K=["fr"];const l="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(" "); b="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(TC)?b.replace(",","\u00a0"):K.includes(TC)?b.replace(",","\u202f"):l.includes(TC)?b.replace(",","."):b;R.push(b)}h=vUx(N,h);R.push(h);h=ByD().format(p);R.push(h);h=":";"da fi id si sr sr-Latn".split(" ").includes(TC)&&(h=".");return R.join(h)}; ByD=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; vUx=function(b,R=!1){return(["af","be","lt"].includes(TC)||R)&&b<10?ByD().format(b):(new Intl.NumberFormat("en-u-nu-latn")).format(b)}; HQ3=function(b,R){b=b.watchEndpointSupportedAuthorizationTokenConfig?.videoAuthorizationToken?.credentialTransferTokens||[];for(let h=0;h{qM2.includes(R)||(g.kJ(new g.A$("createClientScreen() called with a non-page VE",R)),R=83769);K.isHistoryNavigation||b.G.push({rootVe:R,key:K.key||""});b.K=[];b.U=[];K.xL?dtx(b,R,h,K):fk3(b,R,h,K)})()}; dtx=function(b,R,h,K={}){b.Y.add(K.layer||0);b.S=()=>{fk3(b,R,h,K);const I=g.zn(K.layer);if(I){for(const N of b.K)PJ(b,N[0],N[1]||I,K.layer);for(const N of b.U)yFe(b,N[0],N[1])}}; h||g.Ui(K.layer)||b.S();if(K.xL)for(const I of K.xL)t$T(b,I,K.layer);else g.X(Error("Delayed screen needs a data promise."))}; fk3=function(b,R,h,K={}){var I=void 0;K.layer||(K.layer=0);I=K.parentLayer!==void 0?K.parentLayer:K.layer;const N=g.Ui(I);I=g.zn(I);const p=h||I;let l;p&&(K.parentCsn!==void 0?l={clientScreenNonce:K.parentCsn,visualElement:p}:N&&N!=="UNDEFINED_CSN"&&(l={clientScreenNonce:N,visualElement:p}));let a;const v=g.x("EVENT_ID");N==="UNDEFINED_CSN"&&v&&(a={servletData:{serializedServletEventId:v}});g.cg("combine_ve_grafts")&&N&&Z$(b,N);g.cg("no_client_ve_attach_unless_shown")&&p&&N&&Ld(p,N);let B;try{B=JaD(b.client, R,l,K.rL,K.cttAuthInfo,a,K.implicitGestureType,K.loggingExpectations,K.automatedLogEventSource)}catch(q){Qp(q,{FZ:R,rootVe:I,aPX:h,tKO:N,Hh9:l,rL:K.rL});g.X(q);return}RNT(B,R,K.layer,K.cttAuthInfo);N&&N!=="UNDEFINED_CSN"&&I&&!ooT(N)&&YVq(b.client,N,I,!0);b.G[b.G.length-1]&&!b.G[b.G.length-1].csn&&(b.G[b.G.length-1].csn=B||"");g.PI({clientScreenNonce:B});cJ.instance||(cJ.instance=new cJ);g.dK(O0().G).bind(O0())();const H=g.zn(K.layer);N&&N!=="UNDEFINED_CSN"&&H&&g.cg("music_web_mark_root_visible")&& g.R1(B,H);b.Y.delete(K.layer||0);b.S=void 0;b.T6.get(K.layer)?.forEach((q,d)=>{q?PJ(b,d,q,K.layer):H&&PJ(b,d,H,K.layer)}); jqe(b)}; t$T=function(b,R,h=0){g.dK(()=>{R.then(K=>{b.Y.has(h)&&b.S&&b.S();const I=g.Ui(h),N=g.zn(h);if(I&&N){var p={automatedLogEventSource:3};K?.response?.trackingParams&&g.Mx(b.client,I,N,g.jU(K.response.trackingParams),!1,p);K?.playerResponse?.trackingParams&&g.Mx(b.client,I,N,g.jU(K.playerResponse.trackingParams),!1,p)}})})()}; PJ=function(b,R,h,K=0){return g.dK(()=>{if(b.Y.has(K))return b.K.push([R,h]),!0;const I=g.Ui(K),N=h||g.zn(K);if(I&&N){if(g.cg("combine_ve_grafts")){const p=b.V.get(N.toString());p?p.push(R):(b.D.set(N.toString(),N),b.V.set(N.toString(),[R]));b.C||(b.C=g.z6(0,()=>{Z$(b,I)},1200))}else g.Mx(b.client,I,N,R); return!0}return!1})()}; uD=function(b){var R=xI();g.dK(()=>{const h=g.jU(b);PJ(R,h);return h})()}; AFe=function(b){var R={veType:253246};return g.dK(()=>{if(!R.veType)return J2(new g.A$("Error: Trying to graft a client VE without a veType.")),null;if(R.visibilityTypes){var h=R.visibilityTypes.reduce((K,I)=>K|I); h={visibility:{types:String(h)}}}h=A2(R.veType,R.visualElement,R.elementIndex,R.clientYouTubeData,void 0,h);return PJ(b,h)?h:null})()}; Z$=function(b,R){if(R===void 0){const h=w6w();for(let K=0;K{(K=b.D.get(K))&&g.Cd(b.client,R,K,h)}),b.V.clear(),b.D.clear(),b.C=void 0}; iQB=function(b,R){const h=g.Ui(0);h&&oJ(b.client,h,R,void 0)}; z_w=function(b,R,h,K=0){if(!R)return!1;K=g.Ui(K);if(!K)return!1;oJ(b.client,K,g.jU(R),h);return!0}; yFe=function(b,R,h,K=0){const I=g.Ui(K);R=R||g.zn(K);I&&R&&(b=b.client,K=c7({cttAuthInfo:Gn(I)||void 0},I),h={csn:I,ve:R.getAsJson(),clientData:h},I==="UNDEFINED_CSN"?wz("visualElementStateChanged",K,h):b?dz("visualElementStateChanged",h,b,K):g.yp("visualElementStateChanged",h,K))}; jqe=function(b){for(var R=0;R{h.qk(K,I)}); K.open(R.method??"GET",b,!0);K.responseType="text";K.withCredentials=!0;if(R.headers)for(const [I,N]of Object.entries(R.headers))K.setRequestHeader(I,N);return K}; gUK=function(){const b=navigator;return new Promise((R,h)=>{b.webkitTemporaryStorage?.queryUsageAndQuota?b.webkitTemporaryStorage.queryUsageAndQuota((K,I)=>{R({usage:K,quota:I})},K=>{h(K)}):h(Error("webkitTemporaryStorage is not supported."))})}; SMq=function(b,R){Vj.getInstance().estimate().then(h=>{b.G("idbQuotaExceeded",{...R,isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:WI2(h?.usage),deviceStorageQuotaMbytes:WI2(h?.quota)})})}; WI2=function(b){return typeof b==="undefined"?"-1":String(Math.ceil(b/1048576))}; EUq=function(){const b=g.HL();return b.WY(192)?b.WY(190):!(g.cg("web_watch_cinematics_disabled_by_default")||g.cg("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&nU3())}; JFe=function(b,R){Ty3(b.program,R.AP)&&(XV("bg_i",void 0,"player_att"),g.CG.initialize(b,()=>{XV("bg_l",void 0,"player_att");MJ=(0,g.c)()},R.cspNonce,R.y0))}; kRq=function(b={}){return g.CG.invoke(b)}; Ty3=function(b,R){if(b){var h;g.CG.isLoading()?h=!1:h=!MJ||(0,g.c)()-MJ>R;b=h}else b=!1;return b}; YMT=function(b,R){if(R.partnerId===38&&b.playerStyle==="books")return b=R.videoId.indexOf(":"),g.z9(`//play.google.com/books/volumes/${R.videoId.slice(0,b)}/content/media`,{aid:R.videoId.slice(b+1),sig:R.Yi});if(R.partnerId===30&&b.playerStyle==="docs")return g.z9("https://docs.google.com/get_video_info",{docid:R.videoId,authuser:R.I7,authkey:R.OG,eurl:b.gB});if(R.partnerId===33&&b.playerStyle==="google-live")return g.z9("//google-liveplayer.appspot.com/get_video_info",{key:R.videoId});throw Error("getVideoInfoUrl for invalid namespace: "+ b.G6);}; g.rn=function(b,R){return b.y0+"timedtext_video?ref=player&v="+R.videoId}; e_3=function(b){const R={};b.aS&&(R.ytrext=b.aS);return g.RT(R)?void 0:R}; g.LG=function(b,R){JFe(b,{AP:g.fg(R.experiments,"bg_vm_reinit_threshold"),cspNonce:R.cspNonce,y0:R.y0||""})}; g.OQK=function(b){if(b.videoData&&b.videoData.XR){const R=[b.videoData.XR];for(const h of Object.keys(b.G))if(b.Ny[h]&&b.G[h]){const K=b.G[h](b.Ny);K&&R.push(K)}return R.join("&")}return null}; Qq2=function(){const b=XMLHttpRequest.prototype.fetch;return!!b&&b.length===3}; mtT=function(b){xt2=2592E3*(b||1)}; P$K=function(b){g.Iz("yt-player-bandwidth",b,2592E3)}; wn=function(b=xt2){if(b>0&&!(IzT()>(0,g.c)()-b*1E3))return 0;b=g.NC("yt-player-quality");if(typeof b==="string"){if(b=g.m6[b],b>0)return b}else if(b instanceof Object)return b.quality;return 0}; FW=function(){const b=g.NC("yt-player-proxima-pref");return b==null?null:b}; ZQw=function(){const b=g.NC("yt-player-quality");if(b instanceof Object&&b.quality&&b.previousQuality){if(b.quality>b.previousQuality)return 1;if(b.qualityR.startsWith("1")),g.Iz("yt-player-performance-cap-active-set",b,2592E3)):g.Iz("yt-player-performance-cap-active-set",[],2592E3)}; V$H=function(b){g.Iz("yt-player-watch-later-pending",b)}; var ZTx=function(b,R){return VB[f[6]](this,10,b,R)}; C$3=function(){return!!g.NC("yt-player-headers-readable")}; g.b9=function(){const b=g.NC("yt-player-caption-language-preferences");return b?b:[]}; R8=function(){const b=g.NC("yt-player-user-settings"),R=new Map;if(b)for(const [h,K]of Object.entries(b))R.set(h,K);return R}; M$e=function(){return g.NC("yt-player-voice-boost")??void 0}; rFw=function(){return g.NC("yt-player-audio-quality-setting")??2}; KC=function(){try{const b=window.navigator;if(b.getAutoplayPolicy&&typeof b.getAutoplayPolicy==="function"){const R=document.getElementsByClassName(g.hP.Hu);let h;h=R.length>0&&R[0]?b.getAutoplayPolicy(R[0]):b.getAutoplayPolicy("mediaelement");if(LIK[h])return LIK[h]}}catch(b){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; sx=function(b){return b.jn||b.xV||b.mutedAutoplay}; w2B=function(b,R){return sx(b)?R!==1&&R!==2&&R!==0?"AUTOPLAY_STATUS_UNAVAILABLE":b.yh?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; FIx=function(b,R,h){const K=R.L();b.thirdParty||(b.thirdParty={});b.thirdParty={...b.thirdParty,embedUrl:K.loaderUrl};K.ancestorOrigins&&(b.thirdParty.embeddedPlayerContext={...b.thirdParty.embeddedPlayerContext,ancestorOrigins:K.ancestorOrigins});K.ow!=null&&(b.thirdParty.embeddedPlayerContext={...b.thirdParty.embeddedPlayerContext,visibilityFraction:Number(K.ow)});K.qf&&(b.thirdParty.embeddedPlayerContext={...b.thirdParty.embeddedPlayerContext,visibilityFractionSource:K.qf});b.thirdParty.embeddedPlayerContext= {...b.thirdParty.embeddedPlayerContext,autoplayBrowserPolicy:KC(),autoplayIntended:sx(R),autoplayStatus:w2B(R,h)}}; oUH=function(b){const R=[];for(let h of b.split(",")){if(!h)continue;(b=h.startsWith("!"))&&(h=h.substring(1));const K=h.split("-");K.length<3||R.push({La:K[0],platform:K[1],deviceVersion:K[2],PE:b})}return R}; RLw=function(b){return oUH(b).map(({La:R,deviceVersion:h,PE:K})=>({deviceInterface:DtK[bdH[R]]||0,deviceVersion:h||"",isSleeping:K}))}; g.I8=function(b,R,h,K){return new $a(g.m6[b]||0,g.m6[R]||0,h,K)}; pC=function(b){if(NA&&b.nz)return!1;const R=g.m6.auto;return b.Y===R&&b.G===R}; a8=function(b){return l9[b.G||b.Y]||"auto"}; hLe=function(b,R){R=g.m6[R];return b.Y<=R&&(!b.G||b.G>=R)}; IqH=function(b,R,h,K,I,N,p){if(b.Y)return b.Y;const l={},a=new Set,v={};if(vC(K)){for(var B in K.G){if(!K.G.hasOwnProperty(B))continue;b=K.G[B];v[b.info.U9]=[b.info]}return v}B=KB2(R,K,l);N&&I({aftsrt:BC(B)});const H={};for(const q of Object.keys(B)){const d=q;for(const t of B[d]){const S=t.itag,J=`${d}_${Number(t.video?.fps||0)}_${!!t.audio?.Y}`;if(H.hasOwnProperty(J)){H[J]===!0?v[d].push(t):l[S]=H[J];continue}const e=HC(R,t,h,K.isLive,a);e!==!0?(p.add(d),l[S]=e,e==="disablevp9hfr"&&(H[J]="disablevp9hfr")): (v[d]=v[d]||[],v[d].push(t),H[J]=!0)}}N&&I({bfflt:BC(v)});for(const q in v){if(!v.hasOwnProperty(q))continue;K=q;v[K]&&v[K][0].fT()&&(v[K]=v[K],v[K]=sJP(R,v[K],l),v[K]=$xP(v[K],l))}N&&Object.keys(l).length>0&&I({rjr:ba(l)});for(const q of a.values())(R=h.X.get(q))&&--R.Sj;N&&I({aftflt:BC(v)});b.Y=g.cp(v,q=>!!q.length); return b.Y}; tUP=function(b,R,h,K,I,N,p){var l=R.G||!!I;const a=l&&R.Ty?N:void 0;var v=new Set;let B=IqH(b,R,h,K,N,l,v);K.V()&&(B=NzK(h,B,I,l,N,R),l&&N({enflt:BC(B)}));R.KR=p7B(B,R);I=$B=>!!B[$B]; var H=lqw(R);h=[];for(var q of Object.values(B))q?.length&&q[0].Pr()&&h.push(...q);if(vC(K))return N=g.jc(Object.values(B),$B=>!!$B.length&&!!$B[0].audio),l=g.jc(Object.values(B),$B=>!!$B.length&&!!$B[0].video),N&&l||KX(),s7(new qA(l,N,a,h)); q=B.a;var d=!1;R.Ab&&H[0]!=="a"&&aqB(q)&&(H.unshift("a"),d=!0);l&&(N({audioPrefOrder:H.join("_")}),N({preferHighQualityAudio:R.Ab}),N({forcedAacForHqa:d}));q=[];if(R.Sn){H=g.lR(H,I);d=new Set;for(var t of H){var S=B[t];const $B=new Set;for(var J of S)if(S=J.Nj?.id)d.has(S)?$B.has(S)&&q.push(J):($B.add(S),d.add(S),q.push(J))}if(q.length===0){if(H.length===0)return l&&N({noaudio:1}),KX();q=B[H[0]]}}else{q=g.jc(H,I);if(!q)return l&&N({noaudio:1}),KX();q=B[q]}B["9"]&&B.h&&K.AO&&!R.JX&&(l&&N({dltvp9:1}), delete B["9"]);if(p){l&&N({bfsflt:BC(B),bfsflta:d9(b)});R.SY?b.G=vJK(v,b.G):b.G.clear();l&&N({bfsfltb:d9(b)});for(var e in B){if(!B.hasOwnProperty(e))continue;p=e;if(!(p==="f"||R.V7===0&&BzD.has(p)))for(var Y of B[p])R.SY?HdT(p,Y,b.G):qiT(b,p,Y)}l&&N({aftsflt:d9(b)})}e=B["1h"]?"1h":"1";b=B["9h"]?"9h":"9";p=B[e];v=B["2"];t=B[b];p&&p.length&&(R.Y.highestAv1Resolution=p[p.length-1].video.qualityOrdinal);t&&t.length&&(R.Y.highestVp9Resolution=t[t.length-1].video.qualityOrdinal);Y=[];J=[];if(R.SK&&v)Y= v,J=["2"];else if(R.hc&&p)Y=p,J=[e],N({forceAv1:e});else if(R.K&&!R.GE){J=dxs(K)?B["1h"]||B["9h"]?["1h","9h"]:["9","h"]:["1","9","h"];l&&N({newhybpref:J.join(".")});for(var Q of J)Y=Y.concat(B[Q]).filter($B=>$B)}else R.X4>0&&t&&p&&(J=[e, b],Y=p.concat(t).filter($B=>$B)); if(Y.length&&!R.GE){fC(Y,J);if(l){l=[];for(var P of Y)l.push(P.itag);N({hbdfmt:l.join(".")})}return s7(new qA(Y,q,a,h))}P=fq3(R);P=g.jc(P,I);if(!P){if(B[e])return N=B[e],fC(N),s7(new qA(N,q,a,h));l&&N({novideo:1});return KX()}P!=="1"&&P!=="1h"||!B[b]||(Q=yc(B[P]),I=yc(B[b]),I>Q?P=b:I===Q&&y2T(B[b])&&(P=b));P==="9"&&B.h&&yc(B.h)>yc(B["9"])&&(P="h");R.wp&&K.isLive&&P==="("&&B.H&&yc(B["("])<1440&&(P="H");l&&N({vfmly:tP(P)});R=B[P];if(!R.length)return l&&N({novfmly:tP(P)}),KX();fC(R);return s7(new qA(R, q,a,h))}; jJe=function(b,R,h,K,I,N,p,l=!1){if(R.pz&&p&&p.length>1&&!(R.X4>0||R.K)){const H=R.G||!!I,q=H&&R.Ty?N:void 0,d=KB2(R,K),t=[],S=[],J={};for(let e=0;e=h.video?.height)||(l=h.itag,R=p?p:{itag:l,U9:R,Pr:N},N?R.numChannels=h.audio.numChannels:(N=h.video,R.maxWidth=N?.width,R.maxHeight=N?.height,R.maxFramerate=K,R.maxBitrateBps=h.nz*8,R.mz=N?.isHdr()),b.G.set(I,R))}; p7B=function(b,R){const h=!(!b.m&&!b.M),K=!(!b.mac3&&!b.MAC3),I=!(!b.meac3&&!b.MEAC3);b=!(!b.i&&!b.I);R.jn=b;return h||K||I||b}; y2T=function(b){for(const R of b)if(R.itag&&A2K.has(R.itag))return!0;return!1}; aqB=function(b){for(const R of b)if(R.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1}; tP=function(b){switch(b){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return b}}; BC=function(b){const R=[];for(const h in b){if(!b.hasOwnProperty(h))continue;const K=h;R.push(tP(K));for(const I of b[K])R.push(I.itag)}return R.join(".")}; NzK=function(b,R,h,K,I,N){const p={},l={};g.Z2(R,(a,v)=>{a=a.filter(B=>{const H=B.itag;if(!B.contentProtection)return l[H]="noenc",!1;if(N.RH&&B.U9==="(h"&&N.nR)return l[H]="lichdr",!1;if(!b.V&&B.U9==="1e")return l[H]="noav1enc",!1;if(B.U9==="("||B.U9==="(h"){if(b.Y&&h&&h.flavor==="widevine"){var q=B.mimeType+"; experimental=allowed";(q=!!B.contentProtection[h.flavor]&&!!h.Y[q])||(l[H]=B.contentProtection[h.flavor]?"unspt":"noflv");return q}if(!j9(b,FJ.CRYPTOBLOCKFORMAT)&&!b.T6||b.C)return l[H]=b.C? "disvp":"vpsub",!1}return h&&B.contentProtection[h.flavor]&&h.Y[B.mimeType]?!0:(l[H]=h?B.contentProtection[h.flavor]?"unspt":"noflv":"nosys",!1)}); a.length&&(p[v]=a)}); K&&Object.entries(l).length&&I({rjr:ba(l)});return p}; $xP=function(b,R){const h=vp(b,(K,I)=>I.video.Y()?Math.min(K,I.video.width):K,Infinity); h{if(K.video.Y()||K.video.width{if(K.itag!=="299")return!0;R[K.itag]="ps3hfr1080";return!1})); return b}; sJP=function(b,R,h){return R=R.filter(K=>{if(K.video.qualityOrdinal<=b.Zl)return!0;h[K.itag]="maxquality";return!1})}; KB2=function(b,R,h){const K={};for(const I in R.G){if(!R.G.hasOwnProperty(I))continue;const N=R.G[I].info;if(b.D&&N.video&&N.video.qualityOrdinalMath.max(R,h.video.qualityOrdinal),0)}; HC=function(b,R,h,K=!1,I=new Set){if(R.U9==="")return"unkn";if((R.itag==="304"||R.itag==="266")&&b.C)return"blk2khfr";if(b.J&&R.video&&R.video.qualityOrdinal>b.J)return`max${b.J}`;if(b.xZ&&R.U9==="h"&&R.video&&R.video.qualityOrdinal>1080)return"blkhigh264";if(R.U9==="(h"&&!h.J)return"enchdr";if(K&&kSH(R)&&!b.vY)return"blk51live";if((R.U9==="MAC3"||R.U9==="mac3")&&!b.V)return"blkac3";if((R.U9==="MEAC3"||R.U9==="meac3")&&!b.S)return"blkeac3";if(R.U9==="M"||R.U9==="m")return"blkaac51";if((R.U9==="so"|| R.U9==="sa")&&!b.G6)return"blkamb";if(!b.RH&&JcT(R)&&(!h.V||R.U9!=="1e"))return"cbc";if(!h.V&&JcT(R)&&R.U9==="1e")return"cbcav1";if((R.U9==="i"||R.U9==="I")&&!b.PH)return"blkiamf";if(b.CR&&R.audio?.Y===!0)return"blkvbcabr";if(b.Zr&&(R.U9==="1"||R.U9==="1h"||h.V&&R.U9==="1e")&&R.video?.qualityOrdinal&&R.video?.qualityOrdinal>b.Zr)return"av1cap";K=h.X.get(R.U9);if(!b.fR&&K&&K.Sj>0)return I.add(R.U9),"byerr";if(R.video?.Y()){if(!h.nR&&!j9(h,FJ.FRAMERATE))return"capHfr";if(b.pR&&R.video.qualityOrdinal>= 4320)return"blk8khfr";if(R.V()&&b.Ys&&R.contentProtection&&R.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(b.nz&&R.nz>b.nz)return"ratecap";if(b.T6>0&&R.fT()&&R.video.height>b.T6)return"mvhcap";b=idw(h,R);return b!==!0?b:!0}; fC=function(b,R=[]){g.Ot(b,(h,K)=>{const I=K.nz-h.nz;if(!h.fT()||!K.fT())return I;let N=K.video.height*K.video.width-h.video.height*h.video.width;!N&&R&&R.length>0&&(h=R.indexOf(h.U9)+1,K=R.indexOf(K.U9)+1,N=h===0||K===0?K||-1:h-K);N||(N=I);return N})}; zLe=function(b,R){if(R>b.jK())b.segments=[];else{var h=yz(b.segments,K=>K.Dr>=R,b); h>0&&b.segments.splice(0,h)}}; AP=function(b){const R=b.data.getUint8(b.offset+b.G);b.G+=1;return R}; i9=function(b){const R=b.data.getUint16(b.offset+b.G);b.G+=2;return R}; zf=function(b){const R=b.data.getInt32(b.offset+b.G);b.G+=4;return R}; Ux=function(b){const R=b.data.getUint32(b.offset+b.G);b.G+=4;return R}; Gf=function(b){var R=b.data;var h=b.offset+b.G;R=R.getUint32(h)*4294967296+R.getUint32(h+4);b.G+=8;return R}; g9=function(b,R=NaN){let h;if(isNaN(R))h=b.size;else for(h=b.G;h1?Math.ceil(I*R):Math.floor(I*R))}b.skip(1);h=AP(b)<<16|i9(b);if(h&256){K=h&1;I=h&4;var N=h&512,p=h&1024,l=h&2048;h=Ux(b);K&&b.skip(4);I&&b.skip(4);K=(N?4:0)+(p?4:0)+(l?4:0);for(I=0;I1?Math.ceil(p*R):Math.floor(p*R)),b.skip(K)}}}; Tf=function(b,R){if(b.byteLength-R<8)return!1;var h=b.getUint32(R);if(h<8||b.byteLength-R122)return!1}return!0}; JP=function(b,R){const h=b.getUint32(R),K=b.getUint32(R+4);return new TzK(b,R,h,K)}; g.Ox=function(b){const R=b.data.getUint8(b.dataOffset)?20:12;return b.data.getUint32(b.dataOffset+R)}; Qc=function(b){b=new DataView(b.buffer,b.byteOffset,b.byteLength);return(b=g.e9(b,0,1836476516))?g.Ox(b):NaN}; Ya=function(b){return b===1701082227||b===1836019558||b===1836019574||b===1835297121||b===1835626086||b===1937007212||b===1953653094||b===1953653099||b===1836475768}; knK=function(b){var R=g.e9(b,0,1937011556);if(!R)return null;R=ka(b,R.dataOffset+8,1635148593)||ka(b,R.dataOffset+8,1635135537);if(!R)return null;var h=ka(b,R.dataOffset+78,1936995172),K=ka(b,R.dataOffset+78,1937126244);if(!K)return null;R=null;if(h)switch(h.skip(4),AP(h)){default:R=0;break;case 1:R=2;break;case 2:R=1;break;case 3:R=255}let I=h=null,N=null;if(K=ka(b,K.dataOffset,1886547818)){const p=ka(b,K.dataOffset,1886546020);let l=ka(b,K.dataOffset,2037673328);if(!l&&(l=ka(b,K.dataOffset,1836279920), !l))return null;p&&(p.skip(4),h=zf(p)/65536,N=zf(p)/65536,I=zf(p)/65536);b=UxH(l);b=new DataView(b.buffer,b.byteOffset+8,b.byteLength-8);return new J23(R,h,N,I,b)}return null}; g.xa=function(b){if(b.data.getUint8(b.dataOffset)){var R=b.data;b=b.dataOffset+4;R=R.getUint32(b)*4294967296+R.getUint32(b+4)}else R=b.data.getUint32(b.dataOffset+4);return R}; YiH=function(b){b=new TzK(b.data,b.offset,b.size,b.type,b.Y);var R=AP(b);b.skip(7);const h=Ux(b);let K;R===0?(R=Ux(b),K=Ux(b)):(R=Gf(b),K=Gf(b));b.skip(2);const I=i9(b),N=[],p=[];for(let l=0;l1&&N[1])return K=h.G,b=K[f[85]](/^[^.]*/,f[7]),g.Da(h,`${K[f[0]](f[57])===0?f[57]:f[81]}${I}---${N[1]}${b}`),h=new g.Mj(h[f[29]]()),h[f[24]](f[17],f[43]),h;if(R)return h=b[f[9]](),h[f[24]](f[17],f[43]),h;I=h.G[f[26]](f[38]);h.G[f[26]](f[63])?(g.Da(h,f[30]),K=h[f[29]]()): h.G[f[26]](f[11])?(g.Da(h,f[76]),K=h[f[29]]()):(h=laq(K),B8(h)&&(K=h));h=new g.Mj(K);h[f[24]](f[3],f[43]);I&&h[f[24]](f[62],f[34]);return h}; eLP=function(b){b.skip(4);return{dc:g9(b,0),value:g9(b,0),timescale:Ux(b),zWr:Ux(b),eventDuration:Ux(b),id:Ux(b),tR:g9(b),offset:b.offset}}; g.QJ3=function(b){const R=ka(b,0,1701671783);if(!R)return null;var h=eLP(R);const K=h.dc;h=Ex(h.tR);if(b=ka(b,R.offset+R.size,1701671783))if(b=eLP(b),b=Ex(b.tR),h&&b)for(const I of Object.keys(b))h[I]=b[I];return h?new Odx(h,K):null}; Z8=function(b,R){let h=ka(b,0,R);for(;h;){var K=h;K.type=1936419184;K.data.setUint32(K.offset+4,1936419184);h=ka(b,h.offset+h.size,R)}}; mxH=function(b,R){var h=g.e9(b,0,1937011556),K=g.e9(b,0,1953654136);if(!h||!K||b.getUint32(h.offset+12)>=2)return null;const I=new DataView(R.buffer,R.byteOffset,R.length),N=g.e9(I,0,1937011556);if(!N)return null;R=I.getUint32(N.dataOffset+8);K=I.getUint32(N.dataOffset+12);if(K!==1701733217&&K!==1701733238)return null;K=new xxH(b.byteLength+R);WC(K,b,0,h.offset+12);K.data.setInt32(K.offset,2);K.offset+=4;WC(K,b,h.offset+16,h.size-16);WC(K,I,I.byteOffset+N.dataOffset+8,R);WC(K,b,h.offset+h.size,b.byteLength- (h.offset+h.size));h=[1836019574,1953653099,1835297121,1835626086,1937007212,1937011556];for(const p of h)h=g.e9(b,0,p),K.data.setUint32(h.offset,h.size+R);b=g.e9(K.data,0,1953654136);K.data.setUint32(b.offset+16,2);return K.data}; Pmx=function(b){var R=g.e9(b,0,1937011556);if(!R)return null;var h=b.getUint32(R.dataOffset+12);if(h!==1701733217&&h!==1701733238)return null;R=ka(b,R.offset+24+(h===1701733217?28:78),1936289382);if(!R)return null;h=ka(b,R.offset+8,1935894637);if(!h||b.getUint32(h.offset+12)!==1667392371)return null;R=ka(b,R.offset+8,1935894633);if(!R)return null;R=ka(b,R.offset+8,1952804451);if(!R)return null;h=new Uint8Array(16);for(let K=0;K<16;K++)h[K]=b.getInt8(R.offset+16+K);return h}; MA=function(b,R,h){var K=new cC(h);if(!u9(K,b))return!1;K=X1(K);if(!Vc(K,R))return!1;for(b=0;R;)R>>>=8,b++;R=K.start+K.pos;const I=CC(K,!0);K=b+(K.start+K.pos-R)+I;K=K>9?ZdK(K-9,8):ZdK(K-2,1);b=R-b;h.setUint8(b++,236);for(R=0;Rh;I++)h=h*256+D8(b),K*=128;return R?h-K:h}; r9=function(b){return b.pos>=b.G.byteLength}; LC=function(b){const R=CC(b,!0);let h=D8(b);for(let K=1;K0){const K=Zu(3,R.substring(h+1));g.Z2(K,function(I,N){this.set(N,I)},b); R=R.substring(0,h)}R=uU(57,R);g.Z2(R,function(K,I){this.set(I,K)},b)}; r2T=function(b){const R=b.DL.xj(),h=[];g.Z2(b.G,(I,N)=>{h.push(`${N}=${I}`)}); if(!h.length)return R;const K=h.join("&");b=jT(1,b.DL)?"&":"?";return R+b+K}; hU=function(b,R){b[R]||(b[R]=new LBx);return b[R]}; KO=function(b){b.S=(0,g.c)();b.started=0;b.timedOut=0;b.G=0}; sP=function(b,R){let h=b.started+b.G*4;R&&(h+=b.X);h=Math.max(0,h-3);return 1.6**h}; w7K=function(b,R,h){if(Zu(77,b.G))return!1;var K=hU(h,$p(26,b.G));if(K.timedOut<1&&K.G<1)return!1;K=K.timedOut+K.G;b=Im(b,R);h=hU(h,$p(26,b));return h.timedOut+h.G+00))return b}; q8=function(b,R){return new Bt(b,b+R-1)}; dX=function(b){if(!b)return new Bt(0,0);var R=Number(b.start);b=Number(b.end);if(!isNaN(R)&&!isNaN(b)&&(R=new Bt(R,b),R.length>0))return R}; oJx=function(b){b.length===1||g.fr(b,h=>!!h.range); for(var R=1;R=R.range.start+R.G&&b.range.start+b.G+b.Y<=R.range.start+R.G+R.Y:b.Dr===R.Dr&&b.G>=R.G&&(b.G+b.Y<=R.G+R.Y||R.X)}; lO2=function(b,R){return b.hX!==R.hX?!1:b.U()&&R.type===3&&b.hX.G()?(b=b.hX.gp(b),dx(b,h=>lO2(h,R))):b.Dr===R.Dr&&!!R.Y&&R.G+R.Y>b.G&&R.G+R.Y<=b.G+b.Y}; zL=function(b,R){var h=R.Dr;b.D="updateWithSegmentInfo";b.Dr=h;if(b.startTime!==R.startTime||b.duration!==R.duration)b.startTime=R.startTime,b.duration=R.duration,RHD(b)}; UP=function(b){return!yN(b.kZ[b.kZ.length-1])}; GL=function(b){return b.kZ[b.kZ.length-1].U()}; g.gX=function(b,R,h){let K;h=b.zG===null?b.yV.zG(R,h,b.kZ[0].type):b.zG;b.G?(R=h?PC(b.G,R.jH):b.G,K=new N8(R),K.get("alr")||K.set("alr","yes"),b.Y&&MUs(K,b.Y)):/http[s]?:\/\//.test(b.Y)?K=new N8(new g.Mj(b.Y)):(K=pO(b.yV,h,R),b.Y&&MUs(K,b.Y));(R=b.range)?K.set("range",R.toString()):b.kZ[0].hX.K()&&b.kZ.length===1&&b.kZ[0].G&&K.set("range",`${b.kZ[0].G}-`);b.requestId&&K.set("req_id",b.requestId);isNaN(b.Wr)||K.set("headm",b.Wr.toString());isNaN(b.S)||K.set("mffa",`${b.S}ms`);b.urlParams&&g.Z2(b.urlParams, (I,N)=>{K.set(N,I)}); return K}; aOx=function(b){if(b.range)return b.X;b=b.kZ[0];return Math.round(b.K*b.hX.info.nz)}; v8e=function(b,R){return Math.max(0,b.kZ[0].V-R)}; BmH=function(b,R){for(const h of b.kZ)if(h.type===3&&R>=h.V&&R<=h.S)return!0;return!1}; Wt=function(b,R,h){for(;b;b=b.parentNode){if(!b.attributes||h&&b.nodeName!==h)continue;const K=b.getAttribute(R);if(K)return K}return""}; Si=function(b,R){for(;b;b=b.parentNode){const h=b.getElementsByTagName(R);if(h.length>0)return h[0]}return null}; HWw=function(b){if(!b)return 0;const R=b.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return R?(Number(R[2])|0)*3600+(Number(R[4])|0)*60+(Number(R[6])|0):Number(b)|0}; qnD=function(b){return b.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?`${b}Z`:b}; dUK=function(b){const R=b.X;b.X=[];return R}; fOB=function(b){b.G||(b.G=new nO);return b.G}; yhD=function(b,R){b.Y[R]||(b.Y[R]=new nO);return b.Y[R]}; tvD=function(b,R){b.X[R]||(b.X[R]=new nO);return b.X[R]}; j1D=function(b,R){const h=[];R=Array.from(R.getElementsByTagName("SegmentTimeline"));for(const K of R){R=K.parentNode.parentNode;let I=null;R.nodeName==="Period"?I=fOB(b):R.nodeName==="AdaptationSet"?(R=R.getAttribute("id")||R.getAttribute("mimetype")||"",I=yhD(b,R)):R.nodeName==="Representation"&&(R=R.getAttribute("id")||"",I=tvD(b,R));if(I==null)return;I.update(K);g.nr(h,dUK(I))}g.nr(b.V,h);vBB(b.V,K=>K.startSecs*1E3+K.G)}; AhH=function(b){b.G&&(b.G.G=[]);g.Z2(b.Y,R=>{R.G=[]}); g.Z2(b.X,R=>{R.G=[]})}; EP=function(b,R){return ec(b.segments,h=>R-h.Dr)}; iWq=function(b,R,h){const K=b.index.K(R),I=b.index.getStartTime(R);let N=b.index.getDuration(R);h?N=h=0:h=b.info.nz*N;return new TL([new ih(3,b,void 0,"otfCreateRequestInfoForSegment",R,I,N,0,h)],K)}; zHD=function(b,R){if(!b.index.isLoaded()){var h=[],K=R.S;R=R.D.split(",").filter(v=>v.length>0); var I=0,N=0,p=0,l=/^(\d+)/,a=/r=(\d+)/;for(let v=0;v0&&(b.G=Math.min(b.G+h,10),b.Y=I),b.G>0?(b.G--, b=!0):b=!1,b?(typeof K==="function"&&(K=K()),console.log(`${"plyr"}.${R}`,K)):(K=(SnH.get(R)??0)+1,SnH.set(R,K),K%100===1&&console.warn("plyr",`${"plyr"}.${R} is chatty, dropping logs.`)))}; OP=function(b){if(!b.D){if(g.wB(b.info.hX.info)){var R=g.ei(b);var h=ka(R,0,1836019574);if(h){h=h.offset+h.size;var K=new Uint8Array(h);K.set(new Uint8Array(R.buffer,R.byteOffset,h));R=K}else R=null}else R=X7q(new cC(g.ei(b)));R&&(b.info.hX.Y=R,b.D=!0)}}; g.ei=function(b){return bQs(b.Y)}; n8B=function(b,R){R=Math.min(R,b.info.Y);const {xr:h,ZH:K}=b.Y.split(R),I=new QN(new ih(b.info.type,b.info.hX,b.info.range,b.info.D,b.info.Dr,b.info.startTime,b.info.duration,b.info.G,R,!1,b.info.oU,b.info.clipId),h);I.V=b.V;I.X=b.X;R=new QN(new ih(b.info.type,b.info.hX,b.info.range,b.info.D,b.info.Dr,b.info.startTime,b.info.duration,b.info.G+R,b.info.Y-R,b.info.X,b.info.oU,b.info.clipId),K);R.V=b.V;R.X=b.X;return[I,R]}; g.xp=function(b){g.wB(b.info.hX.info)||b.info.hX.info.Qn();if(b.X!==-1)return b.X;if(b.G&&WBH(b.G))return b.X=WBH(b.G),b.X;if(g.wB(b.info.hX.info)){var R=g.ei(b);var h=b.info.hX.Y,K=NaN;let I=NaN,N=0;for(;Tf(R,N);){const p=JP(R,N);p.type===1936286840?I=p.data.getUint32(p.dataOffset+8):p.type===1836476516?I=g.Ox(p):p.type===1952867444&&isNaN(K)&&(K=g.xa(p));N=Ya(p.type)?N+8:N+p.size}!I&&h&&(I=Qc(h));R=K/I}else R=new cC(g.ei(b)),h=b.S?R:new cC(new DataView(b.info.hX.Y.buffer)),K=bh(h),h=R.pos,R.pos= 0,Rm(R)?Vc(R,231)?(K=LC(R)*K/1E9,R.pos=h,R=K):(R.pos=h,R=NaN):(R.pos=h,R=NaN);b.X=R||b.info.V;return b.X}; E8T=function(b,R){g.wB(b.info.hX.info)||b.info.hX.info.Qn();b.X=R;if(g.wB(b.info.hX.info)){var h=g.ei(b);b=b.info.hX.Y;var K=NaN,I=NaN;let a=0;for(;Tf(h,a);){const v=JP(h,a);isNaN(K)&&(v.type===1936286840?K=v.data.getUint32(v.dataOffset+8):v.type===1836476516&&(K=g.Ox(v)));if(v.type===1952867444){!K&&b&&(K=Qc(b));var N=g.xa(v);isNaN(I)&&(I=Math.round(R*K)-N);var p=v;N+=I;if(p.data.getUint8(p.dataOffset)){var l=p.data;p=p.dataOffset+4;l.setUint32(p,Math.floor(N/4294967296));l.setUint32(p+4,N&4294967295)}else p.data.setUint32(p.dataOffset+ 4,N)}a=Ya(v.type)?a+8:a+v.size}return!0}h=new cC(g.ei(b));b=b.S?h:new cC(new DataView(b.info.hX.Y.buffer));K=bh(b);b=h.pos;h.pos=0;if(Rm(h)&&Vc(h,231))if(I=CC(h,!0),R=Math.floor(R*1E9/K),Math.ceil(Math.log(R)/Math.log(2)/8)>I)R=!1;else{for(K=I-1;K>=0;K--)h.G.setUint8(h.pos+K,R&255),R>>>=8;h.pos=b;R=!0}else R=!1;return R}; TmK=function(b,R){b.timestampOffset>0&&(R-=b.timestampOffset);var h=g.xp(b)+R;E8T(b,h);b.timestampOffset=R}; me=function(b){g.wB(b.info.hX.info)||b.info.hX.info.Qn();if(b.G&&b.info.type===6)return b.G.Dd;if(g.wB(b.info.hX.info)){var R=g.ei(b);var h=0;R=g.mX(R,1936286840);for(var K of R)R=YiH(K),h+=R.vz[0]/R.timescale;h=h||NaN;if(!(h>=0))a:{h=g.ei(b);K=b.info.hX.Y;let H=R=0;for(var I=0;Tf(h,R);){const q=JP(h,R);if(q.type===1836476516)H=g.Ox(q);else if(q.type===1836019558){!H&&K&&(H=Qc(K));if(!H){h=NaN;break a}var N=ka(q.data,q.dataOffset,1953653094),p=N;N=H;var l=ka(p.data,p.dataOffset,1952868452);p=ka(p.data, p.dataOffset,1953658222);var a=zf(l);zf(l);a&2&&zf(l);l=a&8?zf(l):0;var v=zf(p),B=v&1;a=v&4;const d=v&256,t=v&512,S=v&1024;v&=2048;const J=Ux(p);B&&zf(p);a&&zf(p);B=0;for(let e=0;eg.R$(R,h,4,1E3),b,{format:"RAW", method:"GET",withCredentials:!0})}; g.P2w=function(b){let R;b.responseType&&b.responseType!=="text"?b.responseType==="arraybuffer"&&(R=HJ(new Uint8Array(b.response))):R=b.responseText;return!R||R.length>2048?"":R.indexOf("https://")===0?R:""}; ct=function(b,R,h){R.match(ZWq);return b(R,h).then(K=>{const I=g.P2w(K.xhr);return I?ct(b,I,h):K.xhr})}; chD=function(b){return dx(b,R=>"FORMAT_STREAM_TYPE_OTF"===R.type)?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; XYP=function(b,R,h=0,K){K=new g.uh("",K,!1);K.duration=h||0;for(const I of b){b=Xt(I,R,K.duration);const {Sq:N,s:p,mB:l}=bm(11,I);(h=GC(N||I.url||"",l,p))&&(b.streamType==="FORMAT_STREAM_TYPE_OTF"?VN(K,new u3T(h,b)):VN(K,new CO(h,b,dX(I.initRange),dX(I.indexRange))))}K.isOtf=!0;return K}; Vvw=function(b,R,h=0,K){K=new g.uh("",K.experiments,!1);K.duration=h||0;for(const I of b){b=Xt(I,R,K.duration);h=dX(I.initRange);const N=dX(I.indexRange),{Sq:p,s:l,mB:a}=bm(13,I),v=GC(p||I.url||"",a,l);v&&VN(K,new CO(v,b,h,N))}return K}; Xt=function(b,R,h=0){let K=b.mimeType||"";var I=b.itag;var N=b.xtags;I=I?I.toString():"";N&&(I+=`;${N}`);N=I;if(XJ(K)){var p=b.width||640;I=b.height||360;var l=b.fps,a=b.qualityLabel;const S=b.qualityOrdinal,J=b.colorInfo,e=b.projectionType;var v;b.stereoLayout&&(v=C2x[b.stereoLayout]);const Y=xUH(b)||void 0;var B;J?.primaries&&(B=Mvq[J.primaries]||void 0);p=new C4(p,I,l,e,v,void 0,a,S&&rh2[S],Y,B);K=M8(K,p,rX[b.itag||""]);LO&&(K+="; enableflushduringseek=true");wX&&(K+="; enableresetaudiodecoder=true")}let H; if(ua(K)){var q=b.audioSampleRate;v=b.audioTrack;q=new Vh(q?+q:void 0,b.audioChannels,b.spatialAudioType,b.isDrc,b.loudnessDb,b.trackAbsoluteLoudnessLkfs,b.audioQuality||"AUDIO_QUALITY_UNKNOWN",b.isVb);v&&(B=v.displayName,I=v.id,l=v.audioIsDefault,v=v.isAutoDubbed,B&&(H=new g.Ft(B,I||"",!!l,!!v)))}let d;b.captionTrack&&(v=b.captionTrack.displayName,B=b.captionTrack.vssId,I=b.captionTrack.languageCode,l=b.captionTrack.kind,a=b.captionTrack.id,v&&B&&I&&(d=new LpH(v,B,I,l,b.xtags,a)));v=Number(b.bitrate)/ 8;B=Number(b.contentLength);I=Number(b.lastModified);a=b.drmFamilies;l=b.type;b=Number(b.approxDurationMs);let t;if(R&&a){t={};for(const S of a)(a=om[S])&&(t[a]=R[a])}return new MD(N,K,{audio:q,video:p,Nj:H,contentProtection:t,nz:v,fM:h&&B?B/h:0,contentLength:B,lastModified:I,captionTrack:d,streamType:l,approxDurationMs:b})}; wYe=function(b){return dx(b,R=>"FORMAT_STREAM_TYPE_OTF"===R.stream_type)?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; FpP=function(b,R,h=0,K){K=new g.uh("",K,!1);K.duration=h||0;for(const I of b)if(b=hE(I,R,K.duration),h=GC(I.url,I.sp,I.s))if(b.streamType==="FORMAT_STREAM_TYPE_OTF")VN(K,new u3T(h,b));else{const N=Ht(I.init),p=Ht(I.index);VN(K,new CO(h,b,N,p))}K.isOtf=!0;return K}; o8T=function(b,R,h=0,K){K=new g.uh("",K?.experiments,!1);K.duration=h||0;for(const I of b){b=hE(I,R,K.duration);h=Ht(I.init);const N=Ht(I.index),p=GC(I.url,I.sp,I.s);p&&VN(K,new CO(p,b,h,N))}return K}; hE=function(b,R,h=0){let K=b.type;var I=b.itag;var N=b.xtags;N&&(I=b.itag+";"+N);if(XJ(K)){var p=(b.size||"640x360").split("x");p=new C4(+p[0],+p[1],+b.fps,b.projection_type,+b.stereo_layout,void 0,b.quality_label,+b.quality_ordinal,b.eotf,b.primaries);K=M8(K,p,rX[b.itag]);LO&&(K+="; enableflushduringseek=true");wX&&(K+="; enableresetaudiodecoder=true")}let l,a;ua(K)&&(l=new Vh(+b.audio_sample_rate||void 0,+b.audio_channels||0,b.spatial_audio_type,!!b.drc),b.name&&(a=new g.Ft(b.name,b.audio_track_id, b.isDefault==="1",b.isAutoDubbed==="1")));let v;b.caption_display_name&&b.caption_vss_id&&b.caption_language_code&&(v=new LpH(b.caption_display_name,b.caption_vss_id,b.caption_language_code,b.caption_kind,b.xtags,b.caption_id));N=Number(b.bitrate)/8;const B=Number(b.clen),H=Number(b.lmt);h=h&&B?B/h:0;let q;if(R&&b.drm_families){q={};for(const d of b.drm_families.split(","))q[d]=R[d]}return new MD(I,K,{audio:l,video:p,Nj:a,contentProtection:q,nz:N,fM:h,contentLength:B,lastModified:H,captionTrack:v, streamType:b.stream_type,approxDurationMs:Number(b.approx_duration_ms)})}; DUD=function(b){switch(b){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"}}; bYK=function(b){switch(b){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"}}; hFH=function(b,R,h){return RF2(new g.uh(b,R,h),b)}; vC=function(b){return g.XH(b.G,R=>Zu(79,R.yV.G))}; dxs=function(b){return g.XH(b.G,R=>!!R.info.video&&R.info.video.isHdr())}; VN=function(b,R){b.G[R.info.id]=R;b.X.set(vt(R,b.AO),R)}; RF2=function(b,R=""){b.state=1;b.vY=(0,g.c)();return mU3(R||b.sourceUrl).then(h=>{if(!b.HY()){b.g4=h.status;h=h.responseText;const I=new DOMParser;h=yQ(I,$_(h),"text/xml").getElementsByTagName("MPD")[0];b.nR=HWw(Wt(h,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(h.attributes)for(K of h.attributes)if(K.value==="http://youtube.com/yt/2012/10/10"){var K=K.name.split(":")[1];break b}K=""}b.J=K;b.isLive=b.nR{let K; h instanceof Di&&(K=h.xhr,b.g4=K.status);b.state=3;b.publish("loaderror");return Vb(K)})}; g.sDD=function(b){return g.XH(b.G,R=>c5(R.info.mimeType))}; $0T=function(b){return g.XH(b.G,R=>R.info.video?R.info.video.projectionType==="EQUIRECTANGULAR":!1)}; lCx=function(b){return g.XH(b.G,R=>R.info.video?R.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1)}; aCH=function(b){return g.XH(b.G,R=>R.info.video?R.info.video.projectionType==="MESH":!1)}; vYH=function(b){return g.XH(b.G,R=>R.info.video?R.info.video.stereoLayout===1:!1)}; BCx=function(b){return Vz(b.G,R=>R.info.video?R.NJ():!0)}; qCK=function(b,R){let h=Wt(R,"id");h=h.replace(":",";");let K=Wt(R,"mimeType");var I=Wt(R,"codecs");K=I?`${K}; codecs="${I}"`:K;I=Number(Wt(R,"bandwidth"))/8;const N=Number(Si(R,"BaseURL").getAttribute(b.J+":contentLength")),p=b.duration&&N?N/b.duration:0;if(XJ(K)){var l=Number(Wt(R,"width")),a=Number(Wt(R,"height")),v=Number(Wt(R,"frameRate"));const t=DUD(Wt(R,b.J+":projectionType"));a:switch(Wt(R,b.J+":stereoLayout")){case "layout_left_right":var B=1;break a;case "layout_top_bottom":B=2;break a; default:B=0}B=new C4(l,a,v,t,B)}if(ua(K)){var H=Number(Wt(R,"audioSamplingRate"));var q=Number(Wt(R.getElementsByTagName("AudioChannelConfiguration")[0],"value"));l=bYK(Wt(R,b.J+":spatialAudioType"));H=new Vh(H,q,l);a:{a=Wt(R,"lang")||"und";if(q=Si(R,"Role"))if(v=Wt(q,"value")||"",g.wx(HYT,v)){q=`${a}.${HYT[v]}`;l=v==="main";b=Wt(R,b.J+":langName")||`${a} - ${v}`;q=new g.Ft(b,q,l);break a}q=void 0}}if(R=Si(R,"ContentProtection"))if(R.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var d= {};for(R=R.firstChild;R!=null;R=R.nextSibling){if(!(R instanceof Element))continue;if(!/SystemURL/.test(R.nodeName))continue;b=R.getAttribute("type");l=R.textContent;b&&l&&(d[b]=l.trim())}}else d=void 0;return new MD(h,K,{audio:H,video:B,Nj:q,contentProtection:d,nz:I,fM:p,contentLength:N})}; KvT=function(b){var R=b.nR;isFinite(R)&&(KB(b)?b.refresh():(R=Math.max(0,b.vY+R-(0,g.c)()),b.S||(b.S=new g.bI(b.refresh,R,b),g.n(b,b.S)),b.S.start(R)))}; KB=function(b){return b.isLive&&(0,g.c)()-b.vY>=b.nR}; d0T=function(b){b=b.G;for(const R in b){const h=b[R].index;if(h.isLoaded())return h.jK()+1}return 0}; sJ=function(b){return b.gz?b.gz-(b.U||b.timestampOffset):0}; $2=function(b){return b.Th?b.Th-(b.U||b.timestampOffset):0}; Ip=function(b){if(!isNaN(b.SY))return b.SY;var R=b.G;for(var h in R){var K=R[h].index;if(K.isLoaded()&&!c5(R[h].info.mimeType)){R=0;for(h=K.cZ();h<=K.jK();h++)R+=K.getDuration(h);R/=K.Zp();R=Math.round(R/.5)*.5;K.Zp()>10&&(b.SY=R);return R}if(b.isLive&&(K=R[h],K.Dd))return K.Dd}return NaN}; fC3=function(b,R){b=D2(b.G,K=>K.index.isLoaded()); if(!b)return NaN;b=b.index;const h=b.dt(R);return b.getStartTime(h)===R?R:h49?"p60":R>32?"p48":""}`;R=oe()[b];if(R!=null&&R>0)return R;R=qz.get(b);if(R!=null&&R>0)return R;h=h?.get(b);return h!=null&&h>0?h:8192}; zFD=function(b,R=!1){ulK(R);X2K(R);if(R){for(const h of qz.keys())h.startsWith("1")||qz.delete(h);for(const h of fB.values())h.startsWith("1")||fB.delete(h);for(const h of b.keys())h.startsWith("1")||b.delete(h)}else qz.clear(),fB.clear(),b.clear()}; gYe=function(b,{isOtf:R,Rv:h,yM:K,YH:I,ju:N,Ab:p,Pi:l,LM:a,V7:v,disableAv1:B,If:H}){const q=new U0e(b);if(b.zy()||b.N("html5_logging_format_selection"))q.G=!0;q.NJ=N;q.Ab=p&&b.K;q.V7=v;g.dj("windows nt 5.1")&&!g.yr&&(q.GE=!0);if(N=h)N=g.tE(b)?GmH(b):!1;N&&(q.G6=!0);l&&(q.GE=!0,q.FM=!0);R&&!b.N("html5_otf_prefer_vp9")&&(q.GE=!0);b.playerStyle==="picasaweb"&&(R&&(q.GE=!1),q.C=!1);I&&(q.GE=!0);j9(b.S,FJ.CHANNELS)&&(b.N("html5_enable_ac3")&&(q.V=!0),b.N("html5_enable_eac3")&&(q.S=!0),b.N("html5_enable_ac3_gapless")&& (q.gp=!0));b.N("html5_block_8k_hfr")&&(q.pR=!0);q.J=g.fg(b.experiments,"html5_max_selectable_quality_ordinal");q.D=g.fg(b.experiments,"html5_min_selectable_quality_ordinal");j4&&(q.Zl=480);if(K||h)q.C=!1;q.xZ=!1;q.disableAv1=B;R=gv(b,q.Y,void 0,q.disableAv1);R>0&&R<2160&&(NS()||b.N("html5_format_hybridization"))&&(q.Y.supportsChangeType=+NS(),q.X4=R);R>=2160&&(q.MJ=!0);q.LM=a;q.JX=g.po||SP()&&!a?!1:!0;q.K=b.N("html5_format_hybridization");q.wp=b.N("html5_disable_encrypted_vp9_live_non_2k_4k");q.fR= H;return q}; gv=function(b,R={},h,K=!1){if(K)return R.disabled=1,0;if(j9(b.S,FJ.AV1_CODECS)&&j9(b.S,FJ.HEIGHT)&&j9(b.S,FJ.BITRATE))return R.isCapabilityUsable=1,8192;K=1080;var I=navigator.hardwareConcurrency;I<=2&&(K=480);R.coreCount=I;if(I=g.fg(b.experiments,"html5_default_av1_threshold"))K=R["default"]=I;if(b=b.S.G6)R.mcap=b,K=Math.max(K,b);if(h){if(b=h.videoInfos.find(N=>N.G())?.S?.powerEfficient)K=8192,R.isEfficient=1; h=h.videoInfos[0].video;I=Math.min(dv("1",h.fps),dv("1",30));R.perfCap=I;K=Math.min(K,I);h.isHdr()&&!b&&(R.hdr=1,K*=.75)}else h=dv("1",30),R.perfCap30=h,K=Math.min(K,h),h=dv("1",60),R.perfCap60=h,K=Math.min(K,h);return R.av1Threshold=K}; lqw=function(b){let R=["o","a","A"];b.V7===1&&(b.V&&(R=["mac3","MAC3"].concat(R)),b.S&&(R=["meac3","MEAC3"].concat(R)),b.PH&&(R=["i","I"].concat(R)));b.G6&&(R=["so","sa"].concat(R));!b.FM||b.gp||b.X||b.m_||R.unshift("a");b.X&&(R=(WvK[b.X]||[b.X]).concat(R));return R}; fq3=function(b){if(b.NJ)return["f"];if(g.dj("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");let R=["9h","9","h","8"];b.EW&&R.push("1e");R=R.concat(["(h","(","H","*"]);b.MJ&&(R.unshift("1"),R.unshift("1h"));b.GE&&R.unshift("h");b.U&&(R=(WvK[b.U]||[b.U]).concat(R));return R}; Wa=function(){const b=window;let R=b.MSMediaKeys;AN()&&!R&&(R=b.WebKitMediaKeys);return R&&R.isTypeSupported?R:null}; S4=function(b){return navigator.requestMediaKeySystemAccess?g.I5&&!g.y5()?Jc("45"):g.po||g.yI?b.O9("edge_nonprefixed_eme"):g.yr?Jc("47"):g.x9&&b.O9("html5_enable_safari_fairplay")?!1:!0:!1}; nB=function(b){return b.V?!1:!b.keySystemAccess&&!!Wa()&&b.keySystem==="com.microsoft.playready"}; EJ=function(b){return b.keySystem==="com.microsoft.playready"}; Tw=function(b){return!b.keySystemAccess&&!!Wa()&&b.keySystem==="com.apple.fps.1_0"}; JE=function(b){return b.keySystem==="com.youtube.fairplay"}; g.k2=function(b){return b.flavor==="fairplay"}; SCx=function(b,R,h,K){const I=tN(),N=(h=I||h&&AN())?["com.youtube.fairplay"]:["com.widevine.alpha"];R&&N.unshift("com.youtube.widevine.l3");I&&K&&N.unshift("com.youtube.fairplay.sbdl");return h?N:b?[...N,...Y2.playready]:[...Y2.playready,...N]}; OJ=function(b){if(!b.HY())if(b.Y.length===0)b.callback(b.V);else{var R=b.Y[0],h=b.X[R],K=nYK(b,h);e4&&e4.keySystem===R&&e4.Di===JSON.stringify(K)?(b.YZ("remksa",{re:!0}),EYx(b,h,e4.keySystemAccess)):(b.YZ("remksa",{re:!1,ok:e4?.keySystem??""}),e4=void 0,navigator.requestMediaKeySystemAccess(R,K).then(YI(I=>{EYx(b,h,I,K)}),YI(()=>{b.S=!b.S&&b.X[b.Y[0]].flavor==="widevine"; b.S||b.Y.shift();OJ(b)})))}}; JJx=function(b){if(Wa()&&(g.x9||zJ))b.V.push(new Qr("fairplay","com.apple.fps.1_0","",b.uv.experiments));else{var R=TCK(),h=g.jc(b.Y,K=>{const I=b.X[K];let N=!1,p=!1;for(const l in b.G[I.flavor])R(l,K)&&(I.Y[l]=!0,N=N||l.indexOf("audio/")===0,p=p||l.indexOf("video/")===0);return N&&p}); h&&b.V.push(b.X[h]);b.Y=[]}b.callback(b.V)}; kmH=function(b,R){b.callback=R;b.V=[];S4(b.uv.experiments)?OJ(b):JJx(b)}; nYK=function(b,R){const h={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(b.N("html5_enable_vp9_fairplay")&&JE(R))return h.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),h.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[h];EJ(R)&&(h.initDataTypes=["keyids","cenc"]);for(const I of Object.keys(b.G[R.flavor])){var K=I.indexOf("audio/")===0;const N=K?h.audioCapabilities:h.videoCapabilities;R.flavor!=="widevine"||b.S?N.push({contentType:I}): K?N.push({contentType:I,robustness:"SW_SECURE_CRYPTO"}):(g.I5&&g.dj("windows nt")&&!b.N("html5_drm_enable_moho")||N.push({contentType:I,robustness:"HW_SECURE_ALL"}),K=I,b.uv.S.Y&&I.includes("vp09")&&(K=I+"; experimental=allowed"),N.push({contentType:K,robustness:"SW_SECURE_DECODE"}),x2(b.uv)==="MWEB"&&(Wu()||fX())&&(b.YZ("swcrypto",{}),N.push({contentType:I,robustness:"SW_SECURE_CRYPTO"})))}return[h]}; EYx=function(b,R,h,K){if(!b.HY()){K&&(e4={keySystem:R.keySystem,keySystemAccess:h,Di:JSON.stringify(K)});R.keySystemAccess=h;if(EJ(R)){var I=sD();for(var N of Object.keys(b.G[R.flavor]))R.Y[N]=!!I.canPlayType(N)}else{N=R.keySystemAccess.getConfiguration();if(N.audioCapabilities)for(I of N.audioCapabilities)R.Y[I.contentType]=!0;if(N.videoCapabilities)for(const p of N.videoCapabilities)R.Y[p.contentType]=!0}b.V.push(R);b.useCobaltWidevine||b.N("html5_enable_vp9_fairplay")&&R.G()?(b.Y.shift(),OJ(b)): b.callback(b.V)}}; TCK=function(){const b=Wa();if(b){const h=b.isTypeSupported;return(K,I)=>h(I,K)}const R=sD(); return R&&(R.addKey||R.webkitAddKey)?(h,K)=>!!R.canPlayType(h,K):()=>!1}; QDq=function(b,R){switch(R.mO){case "bool":return b.O9(R.Mp);case "int":return b=YC3(b,R.Mp),dd(b);case "double":return YC3(b,R.Mp);case "string":return eFx(b,R.Mp);case "int32_list":return OYH(b,R.Mp);case "int64_list":return OYH(b,R.Mp).map(h=>dd(h)); case "string_list":throw Error("String list flags are not supported in WPCC");default:throw Error("Unknown flag type");}}; YC3=function(b,R){b=b.flags.get(`${R}`);return Number(b)||0}; eFx=function(b,R){return(b=b.flags.get(`${R}`))?b.toString():""}; OYH=function(b,R){if(b=b.flags.get(`${R}`))if(b=b.replace(/\[ *(.*?) *\]/,"$1"))return b.split(",").map(Number);return[]}; my=function(b,R){return(b=b.WY(R))?b.toString():""}; g.fg=function(b,R,h=0){b=b.WY(R);JSON.stringify(b);return b===void 0?h:Number(b)}; x0K=function(b){if(b=b.WY("html5_web_po_experiment_ids"))if(b=b.replace(/\[ *(.*?) *\]/,"$1"))return b.split(",").map(Number);return[]}; m02=function(b){if(b.G)return b.G;if(b.experimentIds.length<=1)return b.G=b.experimentIds,b.G;const R=[...b.experimentIds].map(h=>Number(h)); R.sort();for(let h=R.length-1;h>0;--h)R[h]-=R[h-1];b.G=R.map(h=>h.toString()); b.G.unshift("v1");return b.G}; vJK=function(b,R){const h=new Map;for(const K of R.keys()){const I=K.split("_")[0];b.has(I)||h.set(K,R.get(K))}return h}; HdT=function(b,R,h){const K=R.video?.fps||0,I=`${b}_${K}`,N=!!R.audio,p={itag:R.itag,U9:b,Pr:N};if(N)p.numChannels=R.audio.numChannels;else{var l=R.video;p.maxWidth=l?.width;p.maxHeight=l?.height;p.maxFramerate=K;p.maxBitrateBps=R.nz*8;p.mz=l?.isHdr()}l=h.get(I);l?N||(R=Math.max(l.maxWidth||0,l.maxHeight||0)>Math.max(p.maxWidth||0,p.maxHeight||0)?l:p,b={itag:R.itag,U9:b,Pr:N,maxWidth:Math.max(l.maxWidth||0,p.maxWidth||0),maxHeight:Math.max(l.maxHeight||0,p.maxHeight||0),maxFramerate:K,mz:R.mz},b.maxBitrateBps= R.maxBitrateBps,h.set(I,b)):h.set(I,p)}; idw=function(b,R,h=1){const K=R.itag;if(K==="0")return!0;let I=R.mimeType;if(R.U9==="1e"&&!b.V)return"dav1enc";if(R.G()&&b.U)return"dav1";if(R.video&&(R.video.isHdr()||R.video.primaries==="bt2020")&&!(j9(b,FJ.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(K==="338"&&!(g.I5?Jc(53):g.yr&&Jc(64)))return"dopus";h=ePs(R,h);b.Y&&R.V()&&(h[FJ.EXPERIMENTAL.name]= "allowed");for(const l of Object.keys(FJ)){const a=FJ[l];var N;if(N=h[a.name])if(N=!(a===FJ.EOTF&&R.mimeType.indexOf("vp09.02")>0)){N=a;var p=R;N=!(b.experiments.O9("html5_ignore_h264_framerate_cap")&&N===FJ.FRAMERATE&&T4B(p))}if(N)if(j9(b,a))if(b.S){if(b.S[a.name]1080&&R.contentProtection&&(I+="; hdcp=2.2");return K==="227"?"hqcenc":K!=="585"&&K!=="588"&&K!== "583"&&K!=="586"&&K!=="584"&&K!=="587"&&K!=="591"&&K!=="592"||b.experiments.O9("html5_enable_new_hvc_enc")?tN()&&qj()>=21&&g.dj("appletv5")&&(K==="410"||K==="845")?!0:b.isTypeSupported(I)?!0:"tpus":"newhvc"}; j9=function(b,R){R.name in b.D||(b.D[R.name]=PMH(b,R));return b.D[R.name]}; ZYK=function(b){navigator.mediaCapabilities?.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(R=>{R.smooth&&R.powerEfficient&&(b.G6=2160)})}; Pa=function(){const b=fX()&&!Jc(29),R=g.dj("google tv")&&g.dj("chrome")&&!Jc(30);return b||R?!1:mvH()}; cJe=function(b,R,h){let K=480;for(const I of R)R=I.video.qualityOrdinal,R<=1080&&R>K&&idw(b,I,h)===!0&&(K=R);return K}; g.Z4=function(b,R=!1){return Pa()&&b.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!R&&b.canPlayType(sD(),"application/x-mpegURL")?!0:!1}; XIe=function(b){uVK(()=>{for(const R of Object.keys(FJ))j9(b,FJ[R])})}; PMH=function(b,R){if(b.S)return!!b.S[R.name];if(R===FJ.BITRATE&&b.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!b.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(R===FJ.AV1_CODECS)return b.isTypeSupported(`video/mp4; codecs=${R.valid}`)&&!b.isTypeSupported(`video/mp4; codecs=${R.PZ}`);let h;R.video?(h='video/webm; codecs="vp9"',b.isTypeSupported(h)||(h='video/mp4; codecs="avc1.4d401e"')):(h='audio/webm; codecs="opus"', b.isTypeSupported(h)||(h='audio/mp4; codecs="mp4a.40.2"'));return b.isTypeSupported(`${h}; ${R.name}=${R.valid}`)&&!b.isTypeSupported(`${h}; ${R.name}=${R.PZ}`)}; VaT=function(b,R){let h=0;b.X.has(R)&&(h=b.X.get(R).nk);b.X.set(R,{nk:h+1,Sj:2**(h+1)});b.G=!0}; Ma3=function(b,R,h,K,I){if(R&&typeof R==="object"){const N=p=>CMT(b,p,h,K,I); if(e$(R))return R.then(N);if(xH(R))return cq(R,N)}return CMT(b,R,h,K,I)}; Lv2=function(b,R,h,K=1){h>=0&&(R in b.G||(b.G[R]=new rJT),b.G[R].Sh(h,K))}; CMT=function(b,R,h,K,I){const N=(0,g.c)();I=I?I(R):void 0;const p=I?.Mu??1;p!==0&&Lv2(b,I?.profile??h,N-K,p);return R}; wIx=function(b){const R=window;R.ywc||(R.ywc={});var h=R.ywc[b];if(h)return h;h={};return R.ywc[b]=h}; FvT=function(b){const R=window;R.ywc&&delete R.ywc[b]}; oY2=function(b){const R=wIx(b);if(R.binP)return R.binP;R.binP=Promise.resolve().then(()=>fetch(b)).then(h=>{if(!h.ok)throw Error(`HTTP${h.statusText}`); return h.arrayBuffer()}); R.binP.then(h=>{R.bin=h},()=>{FvT(b)}); return R.binP}; RRK=function(b,R,h){return VU(void 0,function(){return function*(){const K=ca.e_(),I=b&&ug;if(!I&&!R)return h?.("wasmns",{p:b?"1":"0",a:R?"1":"0",s:ug?"1":"0"}),Pq(Error("wasm.wm.ns"));const N=new D0K;if(I)try{const p=yield*Cg(b9B(N,b)),l=new Xo(p,N,!1,!0);ca.lO("winit",K);h?.("wasmsw",{});return l}catch(p){if(h?.("wasmerrw",{e:`${p}`}),!R)throw Error(`wasm.wm.iw: ${p}`);}if(!R)throw Error("wasm.wm.xx");try{const p=yield*Cg(R(N)),l=new Xo({exports:p},N,!0,!0);ca.lO("winitjs",K);h?.("wasmsa",{});return l}catch(p){throw h?.("wasmerra", {e:`${p}`}),Error(`wasm.wm.ia: ${p}`);}}()})}; b9B=function(b,R){return VU(hRH,function(){const h=this;return function*(){if(!h.G)throw"wasm.ps.ns";const K=yield*Cg(KDx(h,R));if(!K)throw"wasm.ps.um";return yield*Cg(WebAssembly.instantiate(K,b))}()})}; KDx=function(b,R){return VU(b,function(){const h=this;return function*(){const K=[],I=()=>"wasm.ps.c: ["+K.map(l=>`"${l}"`).join(", ")+"]",N=wIx(R); if(N.mod)return N.mod;if(N.modP)try{return yield*Cg(N.modP)}catch(l){K.unshift("pcm")}let p=N.bin;if(!p&&N.binP)try{p=yield*Cg(N.binP)}catch(l){K.unshift("pfb")}if(!p)try{p=yield*Cg(oY2(R))}catch(l){throw h.G=!1,K.unshift(`fb: ${l}`),I();}try{return yield*Cg(WebAssembly.compile(p))}catch(l){FvT(R),K.unshift(`ca: ${l}`)}throw I();}()})}; srB=function(b,R,h,K){h=b.G.Xq(h);var I=b.Y;I.G.exports.AES128CTRCipher_setCounter(I.cipher,h.byteOffset);R=b.G.Xq(R);b.Y.encrypt(R);I=void 0;if(K){K=b.G;I=b.X;const N=new Uint8Array(K.exports.memory.buffer,K.malloc(32),32);K.exports.Sha256Hmac(I.byteOffset,I.byteLength,h.byteOffset,h.byteLength,R.byteOffset,R.byteLength,N.byteOffset);I=b.G.lk(N)}b.G.free(h.byteOffset);return{lf:b.G.lk(R),signature:I}}; $hP=function(b){b.V||(b.V=new g.Vr(b.Y));return b.V}; CB=function(b){try{return Vo(b)}catch(R){return null}}; IdB=function(b){var R=cFe();if(R.values){R=R.values;const p={};for(var h of Object.keys(b.values)){R[h]&&b.Y[h]&&(b.values[h]+=R[h]-b.Y[h]);var K=b,I=K;if(!I.values[h]){var N=cFe();I.values=N.values||{};I.rl=N.halfLives||{};I.Y=N.values?Object.assign({},N.values):{}}p[h]=K.values[h]&&K.rl[h]?K.values[h]/2**(K.G/K.rl[h]):0}b.Y=p}h=b.rl;R={};R.values=b.Y;R.halfLives=h;g.Iz("yt-player-memory",R,2592E3)}; Rd=function(b){return/web/i.test(x2(b))}; g.Mz=function(b){return x2(b)==="WEB_UNPLUGGED"}; g.LW=function(b){return x2(b)==="WEB_REMIX"}; g.rv=function(b){return b.N("html5_local_playsinline")?zJ&&!g.ZN(602)&&!("playsInline"in sD()):zJ&&!b.LZ||g.dj("nintendo wiiu")?!0:!1}; g.Fo=function(b){return b.V&&g.LB(b)&&!wv(b)&&!b.J}; N5K=function(b){return x2(b)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; wv=function(b){return b.nR==="adunit"||b.playerStyle==="gvn"}; op=function(b){return b.nR==="detailpage"}; g.LB=function(b){return b.nR==="embedded"}; g.D4=function(b){return b.nR==="profilepage"}; g.bv=function(b){if(!b.webPlayerContextConfig?.embedsHostFlags?.enableLiteUx||b.Zl||b.J||b.X||b.MJ==="EMBEDDED_PLAYER_MODE_PFP")return"EMBEDDED_PLAYER_LITE_MODE_NONE";b=g.fg(b.experiments,"embeds_web_lite_mode");return b===void 0?"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN":b>=0&&b0&&b.MY&&(K.sort(),g.kJ(new g.A$("Player client parameters changed after startup",K)));b.userAge=JN(b.userAge,R.user_age);b.yu=kE(b.yu,R.user_display_email);b.userDisplayImage=kE(b.userDisplayImage,R.user_display_image);g.H8(b.userDisplayImage)||(b.userDisplayImage="");b.userDisplayName=kE(b.userDisplayName, R.user_display_name);b.BI=kE(b.BI,R.user_gender);b.csiPageType=kE(b.csiPageType,R.csi_page_type);b.csiServiceName=kE(b.csiServiceName,R.csi_service_name);b.Kj=E7(b.Kj,R.enablecsi);b.pageId=kE(b.pageId,R.pageid);if(h=R.enabled_engage_types)b.enabledEngageTypes=new Set(h.split(","));R.living_room_session_po_token&&(b.wB=R.living_room_session_po_token.toString())}; hn=function(b){return x2(b)==="WEB_KIDS"}; x2=function(b){return b.G.c}; wj=function(b,R){return!b.J&&fX()&&Jc(55)&&b.controlsType==="3"&&!R}; g.Kt=function(b){b=OD(b.y0);return b==="www.youtube-nocookie.com"?"www.youtube.com":b}; $r=function(b,R,h){return b.protocol+"://i1.ytimg.com/vi/"+R+"/"+(h||"hqdefault.jpg")}; I4=function(b){return op(b)&&!g.Mz(b)}; NH=function(b){return b.nR==="leanback"}; g.hB=function(b){return/^TVHTML5/.test(x2(b))}; pt=function(b){return x2(b)==="TVHTML5"}; adx=function(b){return b.G.cmodel==="CHROMECAST ULTRA/STEAK"||b.G.cmodel==="CHROMECAST/STEAK"}; g.yH=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; g.lv=function(b){return x2(b).toUpperCase()==="WEB"}; a4=function(b){return x2(b)==="TVHTML5_UNPLUGGED"}; g.bU=function(b){return g.Mz(b)||x2(b)==="TV_UNPLUGGED_CAST"||a4(b)}; g.vG=function(b){return x2(b)==="WEB_MUSIC_INTEGRATIONS"}; g.BG=function(b){return x2(b)==="WEB_EMBEDDED_PLAYER"}; vvD=function(b,R=!1,h=!0){return!g.lv(b)||!R||!h}; g.tE=function(b){return(b.deviceIsAudioOnly||!g.I5||Nr||b.controlsType==="3"?!1:g.gj?b.V&&g.ZN(51):!0)||(b.deviceIsAudioOnly||!g.yr||Nr||b.controlsType==="3"?!1:g.gj?b.V&&g.ZN(48):g.ZN(38))||(b.deviceIsAudioOnly||!g.HG||Nr||b.controlsType==="3"?!1:g.gj?b.V&&g.ZN(37):g.ZN(27))||!b.deviceIsAudioOnly&&g.qH&&!Jr3()&&g.ZN(11)||!b.deviceIsAudioOnly&&g.x9&&g.ZN("604.4")}; GmH=function(b){if(g.LB(b)&&d6)return!1;if(g.yr){if(!g.ZN(47)||!g.ZN(52)&&g.ZN(51))return!1}else if(g.x9)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; H9K=function(b,R){return b.enabledEngageTypes.has(R.toString())||B5q.includes(R)}; ft=function(b){if(!b.userDisplayImage)return"";const R=b.userDisplayImage.split("/");if(R.length===5)return b=R[R.length-1].split("="),b[1]="s20-c",R[R.length-1]=b.join("="),R.join("/");if(R.length===8)return R.splice(7,0,"s20-c"),R.join("/");if(R.length===9)return R[7]+="-s20-c",R.join("/");g.kJ(new g.A$("Profile image not a FIFE URL.",b.userDisplayImage));return b.userDisplayImage}; g.yP=function(b){let R=g.Kt(b);qTq.includes(R)&&(R="www.youtube.com");return b.protocol+"://"+R}; g.js=function(b,R=""){if(b.c$){const h=new tn;let K;const I=b.c$();I.signedOut?K="":I.token?K=I.token:I.pendingResult.then(N=>{I.signedOut?h.resolve(""):h.resolve(N.token)},N=>{g.kJ(new g.A$("b189348328_oauth_callback_failed",{error:N})); h.resolve(R)}); return K!==void 0?s7(K):new hN(h)}return s7(R)}; An=function(b,R=""){return b.GG?mS(!0):X4(cq(mS(g.js(b,R)),h=>mS(!!h)),()=>mS(!1))}; dhe=function(b,R){b.KR=R;b.Sn?.G?.J(R);R.G?b.Tv.push("asmjs"):b.Tv.push("wasm")}; OD=function(b){const R=g.B6(b);return(b=Number(g.ai(b)[4]||null)||null)?`${R}:${b}`:R}; iv=function(b,R=!1){const h=rX[b];let K=fdT[h];const I=yjH[b];if(!I||!K)return null;R=new C4(R?I.height:I.width,R?I.width:I.height,I.fps);K=M8(K,R,h);return new MD(b,K,{video:R,nz:I.bitrate/8})}; jrB=function(b){const R=fdT[rX[b]],h=tm2[b];return h&&R?new MD(b,R,{audio:new Vh(h.audioSampleRate,h.numChannels)}):null}; LX=function(b,R,h,K){if(h)return KX();h={};const I=sD();for(const N of R)if(b.canPlayType(I,N.getInfo().mimeType)||K)if(R=N.G.video.quality,!h[R]||h[R].getInfo().Qn())h[R]=N;b=[];h.auto&&b.push(h.auto);for(const N of xb)(K=h[N])&&b.push(K);return b.length?s7(b):KX()}; i9T=function(b,R=!1,h=!0,K={}){const I={};for(const p of b){if(R&&MediaSource&&MediaSource.isTypeSupported&&(b=p.type,p.audio_channels&&(b=b+"; channels="+p.audio_channels),!MediaSource.isTypeSupported(b))){K[p.itag]="tpus";continue}if(!h&&p.drm_families&&(p.eotf==="smpte2084"||p.eotf==="arib-std-b67")){K[p.itag]="enchdr";continue}b=void 0;const l={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"};var N=p.type.match(/codecs="([^"]*)"/);N=N?N[1]:"";p.audio_track_id&&(b=new g.Ft(p.name, p.audio_track_id,!!p.is_default));const a=p.eotf;b=new Aj2({itag:p.itag,url:p.url,codecs:N,width:Number(p.width),height:Number(p.height),fps:Number(p.fps),bitrate:Number(p.bitrate),audioItag:p.audio_itag,qM:a?l[a]:void 0,contentProtection:p.drm_families,Nj:b,audioChannels:Number(p.audio_channels)});I[b.itag]=I[b.itag]||[];I[b.itag].push(b)}return I}; zRB=function(b,R){b.X.some(h=>h.Nj?.getId()===R); b.G=R}; UhH=function(b){const R=[],h=[];for(const K of b.Y)K.bitrate<=b.V?R.push(K):h.push(K);R.sort((K,I)=>I.bitrate-K.bitrate); h.sort((K,I)=>K.bitrate-I.bitrate); b.Y=R.concat(h)}; zz=function(b,R,h){b.cpn&&(R=g.z9(R,{cpn:b.cpn}));h&&(R=g.z9(R,{paired:h}));return R}; GMw=function(b,R){b=b.itag.toString();R!==null&&(b+=R.itag.toString());return b}; gv3=function(b,R){if(!(Nr||AN()||tN()))return null;b=i9T(R,b.N("html5_filter_fmp4_in_hls"));if(!b)return null;R=[];const h={};for(const K of Object.keys(b))for(const I of b[K])if(I.Nj){const N=I.Nj.getId();if(!h[N]){const p=new g.Uw(N,I.Nj);h[N]=p;R.push(p)}}return R.length>0?R:null}; T5H=function(b,R,h,K,I,N,p){if(!(Nr||AN()||tN()))return KX();const l={},a=WDK(h),v=i9T(h,b.N("html5_filter_fmp4_in_hls"),b.S.J,l);if(!v)return p({noplst:1}),KX();STK(v);const B={fairplay:"https://youtube.com/api/drm/fps?ek=uninitialized"};let H;h=[];const q=[],d=[];var t=null;let S="";K=K&&K.match(/hls_timedtext_playlist/)?new Aj2({itag:"0",url:K,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,Nj:new g.Ft("English","en",!1)}):null;for(const Q of Object.keys(v))if(!b.N("html5_disable_drm_hfr_1080")|| Q!=="383"&&Q!=="373")for(const P of v[Q])if(P.width){for(const Pe of P.Y)if(v[Pe]){P.G=Pe;break}P.G||(P.G=nvB(v,P));const $B=v[P.G];if(!$B)continue;h.push(P);P.contentProtection==="fairplay"&&(H=B);let IK="";P.qM==="PQ"?IK="smpte2084":P.qM==="HLG"&&(IK="arib-std-b67");IK&&(S=IK);d.push(EvK($B,[P],K,N,P.itag,P.width,P.height,P.fps,a,void 0,void 0,H,IK));if(!t||P.width*P.height*P.fps>t.width*t.height*t.fps)t=P}else q.push(P);else l[Q]="disdrmhfr";d.reduce((Q,P)=>P.getInfo().isEncrypted()&&Q,!0)&&(H= B); I=Math.max(I,0);const {fps:J=0,width:e=0,height:Y=0}=t||{};t=b.N("html5_native_audio_track_switching");d.push(EvK(q,h,K,N,"93",e,Y,J,a,"auto",I,H,S,t));Object.entries(l).length&&p(l);return LX(b.S,d,wj(b,R),!1)}; EvK=function(b,R,h,K,I,N,p,l,a,v,B,H,q,d){let t=0,S="";for(const J of b)S||(S=J.itag),J.audioChannels&&J.audioChannels>t&&(t=J.audioChannels,S=J.itag);I=new MD(I,"application/x-mpegURL",{audio:new Vh(0,t),video:new C4(N,p,l,null,void 0,v,void 0,void 0,q),contentProtection:H,Ak:S});b=new JjB(b,R,h?[h]:[],K,!!d);b.V=B?B:1369843;return new kM2(I,b,a)}; WDK=function(b){for(const R of b)if(R.url&&(b=R.url.split("expire/"),!(b.length<=1)))return+b[1].split("/")[0];return NaN}; nvB=function(b,R){for(const h of Object.keys(b)){const K=b[h][0];if(!K.width&&K.contentProtection===R.contentProtection&&!K.audioChannels)return h}return""}; STK=function(b){const R=new Set;for(var h of Object.values(b))if(h.length){var K=h[0];K.height&&K.codecs.startsWith("vp09")&&R.add(K.height)}h=[];if(R.size)for(const I of Object.keys(b))b[I].length&&(K=b[I][0],K.height&&R.has(K.height)&&!K.codecs.startsWith("vp09")&&h.push(I));for(const I of h)delete b[I]}; eRe=function(b,R,h){const K=[];for(const I of h){if(!I||!I.url)continue;h=rj(I.type,"medium","0");K.push(new YTx(h,I.url))}return LX(b.S,K,wj(b,R),!1)}; O9H=function(b,R){const h=[],K=rj(R.type,"auto",R.itag);h.push(new YTx(K,R.url));return LX(b.S,h,!1,!0)}; xhT=function(b){return b&&QrP[b]?QrP[b]:null}; mh3=function(b){switch(b){case "multiview.ustreamer_disabled":case "sabr.invalid_input_stream":case "sabr.live_no_max_sq":case "sabr.live_unauthorized_request":case "sabr.malformed_config":case "sabr.media_serving_enforcement_id_error":case "sabr.metadata_fetcher_error":case "sabr.no_audio_selected":case "sabr.no_available_formats":case "sabr.no_redirect_url":case "sabr.no_video_selected":case "sabr.too_many_chunk_reader_error_retries":return b;default:return"sabr.config"}}; Z9q=function(b,R){if(R=R?.watchEndpointSupportedOnesieConfig?.html5PlaybackOnesieConfig)b.Ok=new Pnx(R)}; g.Gz=function(b){const R=[];if(b.displayName)R.push(b.displayName);else{const h=b.languageName||"";R.push(h);b.kind==="asr"&&h.indexOf("(")===-1&&R.push(" (Subt\u00edtulos autom\u00e1ticos)");b.name&&R.push(` - ${b.name}`)}b.translationLanguage&&R.push(` >> ${b.translationLanguage.languageName}`);return R.join("")}; g.g6=function(b){const R={languageCode:b.languageCode,languageName:b.languageName,displayName:g.Gz(b),kind:b.kind,name:b.name,id:b.id,is_servable:b.G,is_default:b.isDefault,is_translateable:b.isTranslateable,vss_id:b.vssId};b.xtags&&(R.xtags=b.xtags);b.captionId&&(R.captionId=b.captionId);b.translationLanguage&&(R.translationLanguage=b.translationLanguage);return R}; g.WG=function(b){return b.translationLanguage?b.translationLanguage.languageCode:b.languageCode}; g.cjT=function(b){let R=b.vssId;b.translationLanguage&&R&&(R=`t${R}.${g.WG(b)}`);return R}; Cns=function(b,R,h,K){b||(b=R&&uIP.hasOwnProperty(R)&&XFw.hasOwnProperty(R)?XFw[R]+"_"+uIP[R]:void 0);R=b;if(!R)return null;b=R.match(Vmw);if(!b||b.length!==5)return null;{const N=R.match(Vmw);if(N){b=Number(N[3]);var I=[7,8,10,5,6];b=!(Number(N[1])===1&&b===8)&&I.indexOf(b)>=0}else b=!1}return h||K||b?R:null}; Ss=function(b,R){const h={};for(const I of Object.keys(MmK)){var K=R?R+I:I;K=b[K+"_webp"]||b[K];g.H8(K)&&(h[MmK[I]]=K)}return h}; nt=function(b){const R={};if(!b||!b.thumbnails)return R;b=b.thumbnails.filter(I=>!!I.url); b.sort((I,N)=>I.width-N.width||I.height-N.height); for(var h of Object.keys(rjH)){var K=Number(h);const I=rjH[K];for(const N of b)if(N.width>=K){K=LDe(N.url);g.H8(K)&&(R[I]=K);break}}(h=b.pop())&&h.width>=1280&&(h=LDe(h.url),g.H8(h)&&(R["maxresdefault.jpg"]=h));return R}; LDe=function(b){return b.startsWith("//")?"https:"+b:b}; Ew=function(b){return b&&b.baseUrl||""}; Tz=function(b){b=g.zE(b);for(const R of Object.keys(b)){const h=b[R];b[R]=Array.isArray(h)?h[0]:h}return b}; FDT=function(b,R){for(var h of R)if(R=h.playerAnnotationsUrlsRenderer){R.adsOnly&&(b.zO=!0);if(h=R.loadPolicy)b.annotationsLoadPolicy=wFe[h];if(h=R.invideoUrl)b.OE=q1(h);b.Sd=!0;break}}; ovw=function(b,R){b.botguardData=R.playerAttestationRenderer.botguardData;R=R.playerAttestationRenderer.challenge;R!=null&&(b.XR=R)}; bMK=function(b,R){b.captionTracks=[];if(R.captionTracks)for(var h of R.captionTracks){var K=DhT(h.baseUrl);if(!K)return;K={is_translateable:!!h.isTranslatable,languageCode:h.languageCode,languageName:h.name&&g.BY(h.name),url:K,vss_id:h.vssId,kind:h.kind};K.name=h.trackName;K.displayName=h.name&&g.BY(h.name);b.captionTracks.push(new g.Jn(K))}b.Gg=R.audioTracks||[];b.Xv=R.defaultAudioTrackIndex||0;b.t_=[];if(R.translationLanguages)for(const I of R.translationLanguages){h={};h.languageCode=I.languageCode; h.languageName=g.BY(I.languageName);if(I.translationSourceTrackIndices){h.translationSourceTrackIndices=[];for(const N of I.translationSourceTrackIndices)h.translationSourceTrackIndices.push(N)}if(I.excludeAudioTrackIndices){h.excludeAudioTrackIndices=[];for(const N of I.excludeAudioTrackIndices)h.excludeAudioTrackIndices.push(N)}b.t_.push(h)}b.YX=[];if(R.defaultTranslationSourceTrackIndices)for(const I of R.defaultTranslationSourceTrackIndices)b.YX.push(I);b.Rr=!!R.contribute&&!!R.contribute.captionsMetadataRenderer}; RrD=function(b,R,h){var K=R.errorScreen;if(!(K&&(K.playerLegacyDesktopYpcOfferRenderer||K.playerLegacyDesktopYpcTrailerRenderer||K.ypcTrailerRenderer)||h&&h.isUpcoming||["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(R.status))){b.errorCode=xhT(R.errorCode)||"auth";if(h=K&&K.playerErrorMessageRenderer){b.playerErrorMessageRenderer=h;const I=h.reason;I&&(b.errorReason=g.BY(I));if(h=h.subreason)b.oo=g.BY(h),b.bK=h}else b.errorReason=R.reason||null;h=R.status;h==="LOGIN_REQUIRED"?b.errorDetail= "1":h==="CONTENT_CHECK_REQUIRED"?b.errorDetail="2":h==="AGE_CHECK_REQUIRED"?(R=(R=R.errorScreen)&&R.playerKavRenderer,b.errorDetail=R&&R.kavUrl?"4":"3"):(K=K?.playerErrorMessageRenderer?.proceedButton?.buttonRenderer?.command,b.errorDetail=R.isBlockedInRestrictedMode?"5":g.Z(K,g.kr)?.signal==="RELOAD_PAGE"?"7":"0")}}; hrB=function(b,R){b.dS=!0;const h=R.heartbeatToken;h&&(b.drmSessionId=R.drmSessionId||"",b.heartbeatToken=h,b.Vi=Number(R.intervalMilliseconds),b.WW=Number(R.maxRetries),b.Uq=!!R.softFailOnError,b.Md=!!R.useInnertubeHeartbeatsForDrm);b.heartbeatServerData=R.heartbeatServerData;b.Ce=!!R.heartbeatAttestationConfig?.requiresAttestation}; $1K=function(b,R){for(const h of R){R=h.interstitials.map(K=>{const I=g.Z(K,KlD);if(I)return{is_yto_interstitial:!0,raw_player_response:I};if(K=g.Z(K,sdD))return Object.assign({is_yto_interstitial:!0},AQ(K))}); for(const K of R)switch(h.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":b.interstitials=b.interstitials.concat({time:0,playerVars:K,rW:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":b.interstitials=b.interstitials.concat({time:0x7ffffffffffff,playerVars:K,rW:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":R=Number(h.podConfig.timeToInsertAtMillis),b.interstitials=b.interstitials.concat({time:R,playerVars:K,rW:R===0?5:7})}}}; IuK=function(b,R){if(R=R.find(h=>!(!h||!h.tooltipRenderer)))b.tooltipRenderer=R.tooltipRenderer}; Nt2=function(b,R){R.subscribeCommand&&(b.subscribeCommand=R.subscribeCommand);R.unsubscribeCommand&&(b.unsubscribeCommand=R.unsubscribeCommand);R.addToWatchLaterCommand&&(b.addToWatchLaterCommand=R.addToWatchLaterCommand);R.removeFromWatchLaterCommand&&(b.removeFromWatchLaterCommand=R.removeFromWatchLaterCommand);R.getSharePanelCommand&&(b.getSharePanelCommand=R.getSharePanelCommand)}; p83=function(b,R){R!=null?(b.wW=R,b.C0=!0):(b.wW="",b.C0=!1)}; vmD=function(b,R){if(R=R.playerControlsOverlayRenderer)p83(b,R.controlBgHtml),R.mutedAutoplay?(R=g.Z(R.mutedAutoplay,lux))&&R.endScreen&&(R=g.Z(R.endScreen,aux))&&R.text&&(b.T8=g.BY(R.text)):b.mutedAutoplay=!1}; Bts=function(b,R){var h=R.backgroundability;h&&h.backgroundabilityRenderer.backgroundable&&(b.backgroundable=!0);R.offlineability?.offlineabilityRenderer?.offlineable&&(b.offlineable=!0);if(h=R.contextParams)b.contextParams=h;(h=R.pictureInPicture)&&h.pictureInPictureRenderer.playableInPip&&(b.pipable=!0);R.playableInEmbed&&(b.allowEmbed=!0);if(h=R.ypcClickwrap)R=h.playerLegacyDesktopYpcClickwrapRenderer,h=h.ypcRentalActivationRenderer,R?(b.Zw=R.durationMessage||"",b.CY=!0):h&&(R=h.durationMessage, b.Zw=R?g.BY(R):"",b.CY=!0)}; qvK=function(b,R,h){var K=Ew(R.googleRemarketingUrl);K&&(b.googleRemarketingUrl=K);if(K=Ew(R.youtubeRemarketingUrl))b.youtubeRemarketingUrl=K;if(K=R.heartbeatLoggingToken)b.heartbeatLoggingToken=K;K={};var I=Ew(R.ptrackingUrl);if(I){I=Tz(I);var N=I.oid;N&&(b.sK=N);if(N=I.pltype)b.KD=N;if(N=I.ptchn)b.cj=N;if(N=I.ptk)b.Qd=encodeURIComponent(N);if(I=I.m)b.J2=I}if(I=Ew(R.qoeUrl)){I=g.zE(I);for(p of Object.keys(I))N=I[p],I[p]=Array.isArray(N)?N.join(","):N;var p=I;b.nf=p;if(I=p.cat)b.N("html5_enable_qoe_cat_list")? b.kt=b.kt.concat(I.split(",")):b.Tv=I;if(I=p.live)b.zr=I;if(p=p.drm_product)b.drmProduct=p}if(p=Ew(R.videostatsPlaybackUrl)){p=Tz(p);if(I=p.adformat)if(h.adformat=I,N=b.L(),N=Cns(I,b.EF,N.V,N.K))b.adFormat=N;if(N=p.aqi)h.ad_query_id=N;if(h=p.autoplay)b.xV=h=="1",b.qn=h=="1";if(h=p.autonav)b.isAutonav=h=="1";if(h=p.delay)b.eb=gu(h);if(h=p.ei)b.eventId=h;if(h=CB(p.adcontext))try{var l=HMw(h);l&&(b.pK=l)}catch(a){g.kJ(Error("Malformed adContext"))}if(h||I)b.xV=!0;if(l=p.feature)b.Mh=l;if(l=p.list)b.playlistId= l;if(l=p.of)b.ER=l;if(l=p.osid)b.osid=l;if(l=p.referrer)b.referrer=l;if(l=p.sdetail)b.zL=l;if(l=p.sourceid)b.j0v=l;if(l=p.ssrt)b.i7=l=="1";if(l=p.subscribed)b.subscribed=l=="1";if(l=p.uga)b.userGenderAge=l;if(l=p.upt)b.oN=l;if(l=p.vm)b.videoMetadata=l;K.playback=p}if(l=Ew(R.videostatsWatchtimeUrl)){l=Tz(l);if(h=l.ald)b.Bm=h;K.watchtime=l}if(l=Ew(R.atrUrl))l=Tz(l),K.atr=l;if(l=Ew(R.engageUrl))l=Tz(l),K.engage=l;b.e$=K;R.promotedPlaybackTracking&&(R=R.promotedPlaybackTracking,R.startUrls&&(b.AA=R.startUrls), R.firstQuartileUrls&&(b.Gx=R.firstQuartileUrls),R.secondQuartileUrls&&(b.Ym=R.secondQuartileUrls),R.thirdQuartileUrls&&(b.Tx=R.thirdQuartileUrls),R.completeUrls&&(b.n$=R.completeUrls),R.engagedViewUrls&&(R.engagedViewUrls.length>1&&g.kJ(new g.A$("There are more than one engaged_view_urls.")),b.Fs=R.engagedViewUrls[0]))}; d1B=function(b,R,h){for(const K of R)if(K&&(R=K.playerLegacyDesktopWatchAdsRenderer)&&(R=R.playerAdParams)){R.autoplay=="1"&&(b.xV=!0,b.qn=!0);b.DF=R.encodedAdSafetyReason||null;R.showContentThumbnail!==void 0&&(b.gU=!!R.showContentThumbnail);h.enabled_engage_types=R.enabledEngageTypes;break}}; yBH=function(b,R){var h=R.manifestlessWindowedLiveConfig;if(h){var K=Number(h.minDvrSequence),I=Number(h.maxDvrSequence),N=Number(h.minDvrMediaTimeMs),p=Number(h.maxDvrMediaTimeMs);h=Number(h.startWalltimeMs);K&&(b.A9=K);N&&(b.Th=N/1E3,b.N("html5_sabr_parse_live_metadata_playback_boundaries")&&ve(b)&&(b.Ja=N/1E3));I&&(b.vg=I);p&&(b.gz=p/1E3,b.N("html5_sabr_parse_live_metadata_playback_boundaries")&&ve(b)&&(b.QL=p/1E3));h&&(b.bB=h/1E3);(K||N)&&(I||p)&&(b.pm=!0,b.isLivePlayback=!0,b.allowLiveDvr=!0, b.VB=!1)}if(K=R.daiConfig){if(K.enableDai){b.w3=!0;if(I=K.enableServerStitchedDai)b.enableServerStitchedDai=I;if(I=K.enablePreroll)b.A2=I}if(K.daiType==="DAI_TYPE_SS_DISABLED"||K.debugInfo?.isDisabledUnpluggedChannel)b.H1=!0;K.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(b.vE=!0);K.allowUstreamerRequestAdconfig&&(b.lJ=!0);K.sendSsdaiMissingAdBreakReasons&&(b.GV=!0)}if(K=R.audioConfig){I=K.loudnessDb;I!=null&&(b.dG=I);I=K.trackAbsoluteLoudnessLkfs;I!=null&&(b.Ri=I);I=K.loudnessTargetLkfs;I!=null&&(b.loudnessTargetLkfs= I);K.audioMuted&&(b.OU=!0);K.muteOnStart&&(b.Om=!0);if(I=K.loudnessNormalizationConfig)I.applyStatefulNormalization&&(b.applyStatefulNormalization=!0),I.preserveStatefulLoudnessTarget&&(b.preserveStatefulLoudnessTarget=!0),N=I.minimumLoudnessTargetLkfs,N!=null&&(b.minimumLoudnessTargetLkfs=N),I=I.maxStatefulTimeThresholdSec,I!=null&&(b.maxStatefulTimeThresholdSec=I);K.playAudioOnly&&(b.wQ=!0)}if(I=R.playbackEndConfig)K=I.endSeconds,I=I.limitedPlaybackDurationInSeconds,b.mutedAutoplay&&(K&&(b.endSeconds= K),I&&(b.limitedPlaybackDurationInSeconds=I));if(K=R.fairPlayConfig){if(I=K.certificate)b.Oz=CB(I);I=Number(K.keyRotationPeriodMs);I>0&&(b.cX=I);K=Number(K.keyPrefetchMarginMs);K>0&&(b.pB=K)}if(K=R.playbackStartConfig){b.Ke=Number(K.startSeconds);N=K.liveUtcStartSeconds;I=!!b.liveUtcStartSeconds&&b.liveUtcStartSeconds>0;N&&!I&&(b.liveUtcStartSeconds=Number(N));if(N=K.startPosition)if((p=N.utcTimeMillis)&&!I&&(b.liveUtcStartSeconds=Number(p)*.001),I=N.streamTimeMillis)b.Nc=Number(I)*.001;b.progressBarStartPosition= K.progressBarStartPosition;b.progressBarEndPosition=K.progressBarEndPosition}else if(K=R.skippableSegmentsConfig){if(I=K.introSkipDurationMs)b.Ul=Number(I)/1E3;if(K=K.outroSkipDurationMs)b.KQ=Number(K)/1E3}if(I=R.skippableIntroConfig)K=Number(I.startMs),I=Number(I.endMs),isNaN(K)||isNaN(I)||(b.dE=K,b.pP=I);if(K=R.streamSelectionConfig)b.Zk=Number(K.maxBitrate);if(K=R.vrConfig)b.k0=K.partialSpherical=="1";if(K=R.webDrmConfig){K.skipWidevine&&(b.sy=!0);if(I=K.widevineServiceCert)b.zM=CB(I);K.useCobaltWidevine&& (b.useCobaltWidevine=!0);K.startWithNoQualityConstraint&&(b.Jm=!0)}if(K=R.mediaCommonConfig){if(I=K.dynamicReadaheadConfig){b.maxReadAheadMediaTimeMs=I.maxReadAheadMediaTimeMs||NaN;b.minReadAheadMediaTimeMs=I.minReadAheadMediaTimeMs||NaN;b.readAheadGrowthRateMs=I.readAheadGrowthRateMs||NaN;if(I=K?.mediaUstreamerRequestConfig?.videoPlaybackUstreamerConfig)b.Bg=CB(I);if((I=K?.sabrContextUpdates)&&I.length>0)for(var l of I)l.type&&l.value&&(I={type:l.type,scope:l.scope,value:CB(l.value)||void 0,sendByDefault:l.sendByDefault}, b.sabrContextUpdates.set(l.type,I))}if(l=K.serverPlaybackStartConfig)b.serverPlaybackStartConfig=l;K.useServerDrivenAbr&&(b.yP=!0);if(l=K.requestPipeliningConfig)b.requestPipeliningConfig=l}if(l=R.inlinePlaybackConfig)b.dL=!!l.showAudioControls;if(l=R.embeddedPlayerConfig){b.embeddedPlayerConfig=l;if(I=l.embeddedPlayerMode)K=b.L(),K.MJ=I,K.X=I==="EMBEDDED_PLAYER_MODE_PFL";if(l=l.permissions)b.allowImaMonetization=!!l.allowImaMonetization}if(l=R.webPlayerConfig)l.gatewayExperimentGroup&&(b.gatewayExperimentGroup= l.gatewayExperimentGroup),l.isProximaEligible&&(b.isProximaLatencyEligible=!0);R=R.playerControlsConfig;b.L().experiments.Mj().G.WY(fuB)&&R?.isSeekable!==void 0&&(b.isSeekable=!!R.isSeekable)}; tzw=function(b,R,h){var K=R.formats;if(K){var I=[];for(var N of K)I.push(`${N.itag}/${N.width}x${N.height}`);b.eW=I.join(",");I=[];for(var p of K){K={itag:p.itag,type:p.mimeType,quality:p.quality};(N=p.url)&&(K.url=N);const {cW:q,Sq:d,mB:t,s:S}=bm(10,p);q&&(K.url=d,K.sp=t,K.s=S);I.push(g.il(K))}b.E$=I.join(",")}if(p=R.hlsFormats){I={};if(h&&(h=h.audioPairingConfig)&&h.pairs)for(var l of h.pairs)h=l.videoItag,I[h]||(I[h]=[]),I[h].push(l.audioItag);l={};for(var a of p)l[a.itag]=a.bitrate;a=[];for(var v of p){h= {itag:v.itag,type:v.mimeType,url:v.url,bitrate:v.bitrate,width:v.width,height:v.height,fps:v.fps};if(p=v.audioTrack)if(K=p.displayName)h.name=K,h.audio_track_id=p.id,p.audioIsDefault&&(h.is_default="1");if(v.drmFamilies){p=[];for(var B of v.drmFamilies)p.push(om[B]);h.drm_families=p.join(",")}(p=I[v.itag])&&p.length&&(h.audio_itag=p.join(","),(p=l[p[0]])&&(h.bitrate+=p));(p=xUH(v))&&(h.eotf=p);v.audioChannels&&(h.audio_channels=v.audioChannels);a.push(g.il(h))}b.hlsFormats=a.join(",")}if((B=R.licenseInfos)&& B.length>0){v={};for(var H of B)B=H.drmFamily,I=H.url,B&&I&&(v[om[B]]=I);b.contentProtection=v}if(H=R.drmParams)b.drmParams=H;if(H=R.dashManifestUrl)b.uT=g.z9(H,{cpn:b.clientPlaybackNonce});if(H=R.hlsManifestUrl)b.hlsvp=H;if(H=R.probeUrl)b.probeUrl=q1(g.z9(H,{cpn:b.clientPlaybackNonce}));if(R=R.serverAbrStreamingUrl)b.C6=new g.Mj(R,!0)}; ABT=function(b,R,h){var K=R.videoId;K&&(b.videoId=K,h.video_id||(h.video_id=K));if(K=R.title)b.title=K,h.title||(h.title=K);if(K=R.lengthSeconds)b.lengthSeconds=Number(K),h.length_seconds||(h.length_seconds=K);if(K=R.keywords)b.keywords=jdT(K);if(K=R.channelId)b.zI=K,h.ucid||(h.ucid=K);if(K=R.viewCount)b.rawViewCount=Number(K);if(K=R.author)b.author=K,h.author||(h.author=K);if(h=R.shortDescription)b.shortDescription=h;if(h=R.isCrawlable)b.isListed=h;if(h=R.musicVideoType)b.musicVideoType=h;h=R.isLive; h!=null&&(b.isLivePlayback=h);if(h||R.isUpcoming)b.isPremiere=!R.isLiveContent;if(h=R.thumbnail)b.xT=nt(h);if(h=R.isExternallyHostedPodcast)b.isExternallyHostedPodcast=h;(h=R.stationType)&&h!=="STATION_TYPE_UNKNOWN"&&(b.vN=!0);R=R.viewerLivestreamJoinPosition;R?.utcTimeMillis&&(b.ey=gu(R.utcTimeMillis))}; U1s=function(b,R){if(R.playerLegacyDesktopYpcTrailerRenderer){var h=R.playerLegacyDesktopYpcTrailerRenderer;b.pW=h.trailerVideoId||"";var K=(K=R.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer)&&K.ypcTrailerRenderer}else R.playerLegacyDesktopYpcOfferRenderer?h=R.playerLegacyDesktopYpcOfferRenderer:R.ypcTrailerRenderer&&(K=R.ypcTrailerRenderer,R=K.fullVideoMessage,b.ol=R?g.BY(R):"",b.pW=g.Z(K,iMT)?.videoDetails?.videoId||"");h&&(b.qr=h.itemTitle||"",h.itemUrl&&(b.Wf=h.itemUrl),h.itemBuyUrl&&(b.ww= h.itemBuyUrl),b.OF=h.itemThumbnail||"",b.Co=h.offerHeadline||"",b.xw=h.offerDescription||"",b.pG=h.offerId||"",b.UF=h.offerButtonText||"",b.Wz=h.offerButtonFormattedText||null,b.zZ=h.overlayDurationMsec||NaN,b.ol=h.fullVideoMessage||"",b.gM=!0);K&&((h=g.Z(K,iMT))?b.cB={raw_player_response:h}:(h=g.Z(K,zrP),b.cB=h?AQ(h):null),b.gM=!0)}; gmB=function(b,R,h,K){R.isLiveDefaultBroadcast&&(b.isLiveDefaultBroadcast=!0);R.isUpcoming&&(b.isUpcoming=!0);if(R.isPostLiveDvr){b.VB=!0;if(K=R.latencyClass)b.latencyClass=GcK[K]||"UNKNOWN";R.isLowLatencyLiveStream&&(b.isLowLatencyLiveStream=!0)}else{let I=!1;b.YH?(b.allowLiveDvr=Pa()?!0:U7&&Yr<5?!1:!0,b.isLivePlayback=!0):R.isLive?(K.livestream="1",b.allowLiveDvr=R.isLiveDvrEnabled?Pa()?!0:U7&&Yr<5?!1:!0:!1,b.partnerId=27,I=!0):R.isUpcoming&&(I=!0);if(R.isLive||b.YH){R.isLowLatencyLiveStream&&(b.isLowLatencyLiveStream= !0);const N=R.latencyClass;N&&(b.latencyClass=GcK[N]||"UNKNOWN");if(R=R.liveChunkReadahead)b.liveChunkReadahead=R;if(R=h&&h.livePlayerConfig){R.hasSubfragmentedFmp4&&(b.hasSubfragmentedFmp4=!0);R.hasSubfragmentedWebm&&(b.gg=!0);R.defraggedFromSubfragments&&(b.defraggedFromSubfragments=!0);if(h=R.liveExperimentalContentId)b.liveExperimentalContentId=Number(h);R=R.isLiveHeadPlayable;b.N("html5_live_head_playable")&&R!=null&&(b.isLiveHeadPlayable=R)}}I&&(b.isLivePlayback=!0,K.adformat&&K.adformat.split("_")[1]!== "8"||b.Ha.push("heartbeat"))}}; Ow=function(b){return new es(b.substring(0,2),b.substring(2))}; QP=function(b,R){return E0(b,"macroMarkersListEntity",R)}; Wlw=function(b){const R=b.getWatchNextResponse()?.contents?.twoColumnWatchNextResults;(b=b.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.endScreen?.watchNextEndScreenRenderer?.results)||(b=R?.endScreen?.endScreen?.results);return b}; g.mg=function(b){b=g.Z(b.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.decoratedPlayerBarRenderer,xr);return g.Z(b?.playerBar,Sve)}; EmT=function(){if(PG===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(R){}a:{try{var b=!!self.localStorage}catch{b=!1}if(b&&(b=g.Mv(`${g.t$()}::${"yt-player"}`))){PG=new nmP(b);break a}PG=void 0}}return PG}; g.ZL=function(){const b=EmT();if(!b)return{};try{const R=b.get("yt-player-lv");return JSON.parse(R||"{}")}catch(R){return{}}}; g.TtD=function(b){const R=EmT();R&&(b=JSON.stringify(b),R.set("yt-player-lv",b))}; g.cG=function(b){return g.ZL()[b]||0}; g.uv=function(b,R){const h=g.ZL();R!==h[b]&&(R!==0?h[b]=R:delete h[b],g.TtD(h))}; g.X2=async function(b){return g.so(JBw(),b)}; Ct=async function(b,R,h,K,I,N,p,l){if(g.cG(b)===4)return 4;const a=await g.BW();if(!a)throw g.Zm("wiac");l&&p!==void 0&&(p=await kcP(l,p));const v=h.lastModified||"0";l=await g.X2(a);try{return VP++,await g.r8(l,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",oT:!0},B=>{if(N!==void 0&&p!==void 0){var H=`${b}${"|"}${R.id}${"|"}${v}${"|"}${String(N).padStart(10,"0")}`;H=B.objectStore("media").put(p,H)}else H=g.cL.resolve(void 0);var q=Yvw(b,R.fT());const d=Yvw(b,!R.fT());var t={fmts:j8({dlt:K.downloadedEndTime.toString(), mket:K.maxKnownEndTime.toString(),avbr:K.averageByteRate.toString()}),format:h||{}};q=B.objectStore("index").put(t,q);const S=K.downloadedEndTime===-1;t=S?B.objectStore("index").get(d):g.cL.resolve(void 0);const J={fmts:"music",format:{}};B=S&&I&&!R.fT()?B.objectStore("index").put(J,d):g.cL.resolve(void 0);return g.cL.all([B,t,H,q]).then(([,e])=>{VP--;let Y=g.cG(b);if(Y!==4&&S&&I||e!==void 0&&g.erx(e.fmts))Y=1,g.uv(b,Y);return Y})})}catch(B){VP--; l=g.cG(b);if(l===4)return l;g.uv(b,4);throw B;}}; g.OMH=async function(b){const R=await g.BW();if(!R)throw g.Zm("ri");return g.r8(await g.X2(R),["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},h=>{const K=IDBKeyRange.bound(b+"|",b+"~");return h.objectStore("index").getAll(K).then(I=>I.map(N=>N?N.format:{}))})}; x1x=async function(b,R,h,K,I){var N=await g.BW();if(!N)throw g.Zm("rc");N=g.r8(await g.X2(N),["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},p=>{const l=`${b}${"|"}${R}${"|"}${h}${"|"}${String(K).padStart(10,"0")}`;return p.objectStore("media").get(l)}); return I?N.then(p=>{if(p===void 0)throw Error("No data from indexDb");return Qdq(I,p)}).catch(p=>{throw new g.A$(`Error while reading chunk: ${p.name}, ${p.message}`); }):N}; g.erx=function(b){return b?b==="music"?!0:b.includes("dlt=-1")||!b.includes("dlt="):!1}; Yvw=function(b,R){return`${b}${"|"}${R?"v":"a"}`}; PUD=function(b){const R={},h={};for(const N of b){var K=N.split("|");if(!N.match(g.m1x)){h[N]="?";continue}b=Number(K.pop());if(isNaN(b)){h[N]="?";continue}var I=K.join("|");(K=R[I])?(I=K[K.length-1],b===I.end+1?I.end=b:K.push({start:b,end:b})):R[I]=[{start:b,end:b}]}for(const N of Object.keys(R))h[N]=R[N].map(p=>`${p.start}-${p.end}`).join(","); return h}; ZMH=function(b,R,h){for(h=MH(b,h);h>=0;){var K=b.levels[h];if(K.isLoaded(r6(K,R))&&(K=g.Lt(K,R)))return K;h--}return g.Lt(b.levels[0],R)}; uys=function(b){if(!b.G&&!b.X.isEmpty()){var R=b.X.remove();b.G=cBs(b,R)}}; X8B=function(b,R,h){h=MH(b,h);for(let p,l;h>=0;h--)if(p=b.levels[h],l=r6(p,R),!p.isLoaded(l)){var K=b,I=h,N=l;const a=`${I}-${N}`;K.J.has(a)||(K.J.add(a),K.X.enqueue(I,{zn:I,YP:N}))}uys(b)}; cBs=function(b,R){const h=document.createElement("img");b.crossOrigin&&(h.crossOrigin=b.crossOrigin);h.src=b.levels[R.zn].xj(R.YP);h.onload=()=>{var K=R.zn,I=R.YP;b.G!==null&&(b.G.onload=null,b.G=null);K=b.levels[K];K.loaded.add(I);uys(b);const N=K.columns*K.rows;I*=N;K=Math.min(I+N-1,K.S()-1);I=[I,K];b.publish("l",I[0],I[1])}; return h}; g.Lt=function(b,R){R>=b.J()&&b.Y();const h=r6(b,R);var K=b.columns*b.rows,I=R%K;R=I%b.columns;I=Math.floor(I/b.columns);let N;const p=b.Y()+1-K*h;p=R)return b.V.set(R,K),K;b.V.set(R,h-1);return h-1}; Vzq=function(b,R,h){return(b=b.levels[R])?b.V(h):-1}; CUB=function(b,R,h){R={cpn:R};b.indexOf("/ibw/")===-1&&(R.ibw=h?String(h):"1369843");return{url:g.z9(b,R),type:"application/x-mpegURL",quality:"auto",itag:"93"}}; MzD=function(b){try{const R=(new g.Mj(b,!0)).get("n");if(R){const h=b.match(/\/n\/([^/]+)/);if(h&&h[1]&&h[1]!==R)return b.replace(`/n/${h[1]}`,`/n/${R}`)}}catch(R){g.kJ(R)}return b}; w6=function(b){if(b.isAd()&&(b.xZ?b.videoId!==b.uv.fR:b.videoId!=b.uv.fR))return b.uv.fR}; DhT=function(b){if(b){if(pcK(b))return b;b=laq(b);if(pcK(b,!0))return b}return""}; ve=function(b){var R=b.N("html5_enable_sabr_on_drive")&&b.uv.G6==="gd";if(b.TZ)return b.yP&&b.YZ("fds",{fds:!0},!0),!1;if(b.uv.G6!=="yt"&&!R)return b.yP&&b.YZ("dsvn",{ns:b.uv.G6},!0),!1;if(b.cotn||!b.G||b.G.isOtf&&!b.N("html5_enable_sabr_otf_in_client")||b.X&&!b.X.G()||b.vE&&!b.N("html5_enable_sabr_csdai"))return!1;if(b.N("html5_use_sabr_requests_for_debugging"))return!0;b.yP&&b.YZ("esfw",{usbc:b.yP,hsu:!!b.C6},!0);if(b.yP&&b.C6)return!0;if(b.N("html5_remove_client_sabr_determination"))return!1;var h= !b.G.AO&&!b.OD();R=h&&F2&&b.N("html5_enable_sabr_vod_streaming_xhr");h=h&&!F2&&b.N("html5_enable_sabr_vod_non_streaming_xhr");const K=o4(b),I=b.N("html5_enable_sabr_drm_vod_streaming_xhr")&&F2&&b.OD()&&!b.G.AO&&(b.drmProduct==="1"?!1:!0);(R=R||h||K||I)&&!b.C6&&b.YZ("sabr",{loc:"m"},!0);return R&&!!b.C6}; jdT=function(b){const R={};for(const h of b)b=h.split("="),b.length===2?R[b[0]]=b[1]:R[h]=!0;return R}; bP=function(b){if(b.N("html5_onesie")&&b.errorCode)return!1;let R=g.iR(b.Ha,"ypc");b.ypcPreview&&(R=!1);return b.Jh()&&!b.loading&&(g.DL(b)||g.iR(b.Ha,"heartbeat")||R)}; hCT=function(b,R){var h=R.raw_embedded_player_response;if(!h){var K=R.embedded_player_response;K&&(h=JSON.parse(K))}h&&(b.XI=h);if(b.XI){b.embeddedPlayerConfig=b.XI.embeddedPlayerConfig||null;if(h=b.XI.videoFlags)h.playableInEmbed&&(b.allowEmbed=!0),h.isPrivate&&(b.isPrivate=!0),h.userDisplayName&&(R.user_display_name=h.userDisplayName),h.userDisplayImage&&(R.user_display_image=h.userDisplayImage);if((h=b.XI.embedPreview)&&h.thumbnailPreviewRenderer){h=h.thumbnailPreviewRenderer;p83(b,h.controlBgHtml); if(K=h.defaultThumbnail)b.xT=nt(K);b.N("embeds_web_enable_search_button")&&h.searchButton&&(K=g.Z(h.searchButton,N6))&&(b.MR=g.Z(K.navigationEndpoint,g.Rj));(K=g.Z(h?.videoDetails,rBK))&&LlB(b,R,K);K=g.Z(h?.videoDetails,w8K);b.EW=!!h.addToWatchLaterButton;FlT(b,h.shareButton);K?.musicVideoType&&(b.musicVideoType=K.musicVideoType);if(K=g.Z(b.getEmbeddedPlayerResponse()?.embedPreview?.thumbnailPreviewRenderer?.playButton?.buttonRenderer?.navigationEndpoint,g.hw))Z9q(b,K),b.videoId=K.videoId||b.videoId; h.videoDurationSeconds&&(b.lengthSeconds=gu(h.videoDurationSeconds));h.webPlayerActionsPorting&&Nt2(b,h.webPlayerActionsPorting);if(h=g.Z(h?.playlist,om2)){b.er=!0;K=[];var I=Number(h.currentIndex);if(h.contents)for(let N=0,p=h.contents.length;N=0?I.countDownSecsForFullscreen*1E3:-1);b.N("web_autonav_color_transition")&&I.watchToWatchTransitionRenderer&&(b.watchToWatchTransitionRenderer=g.Z(I.watchToWatchTransitionRenderer,NBP))}if(I=Wlw(b))I=I?.[0]?.endScreenVideoRenderer?.navigationEndpoint?.clickTrackingParams,d=b.U(),I&&d&&(d.sessionData={itct:I});b.T6.currentVideoThumbnail&&(b.xT=nt(b.T6.currentVideoThumbnail)); (I=b.T6?.contents?.twoColumnWatchNextResults?.results?.results?.contents)&&I[0]&&(d=I[0].videoPrimaryInfoRenderer)&&d&&d.subtitle&&(b.oS=g.BY(d.subtitle));I&&I[1]&&(I=I[1].videoSecondaryInfoRenderer?.owner?.videoOwnerRenderer?.thumbnail?.thumbnails)&&I.length&&(b.profilePicture=I[I.length-1].url);R=O7(R);if(I=b.getWatchNextResponse()?.onResponseReceivedEndpoints)for(var t of I)g.Z(t,Ij)&&(b.sH=g.Z(t,Ij)),I=g.Z(t,p53),I?.entityKeys&&(b.b6=I.entityKeys||[],I.visibleOnLoadKeys&&(b.visibleOnLoadKeys= I.visibleOnLoadKeys));b.N("web_key_moments_markers")&&(t=g.NF.getState().entities,I=g.Su("visibility_override","markersVisibilityOverrideEntity"),t=E0(t,"markersVisibilityOverrideEntity",I),b.SY=t?.videoId===(b.videoId||R)&&t?.visibilityOverrideMarkersKey?t.visibilityOverrideMarkersKey:b.visibleOnLoadKeys,b.visibleOnLoadKeys=[...b.SY])}}; lAw=function(b,R){if(R=R.raw_reel_item_watch_response)b.reelItemWatchResponse=R}; BBw=function(b,R){b.fflags=kE(b.fflags,R.fflags);var h=R.iv_invideo_url;h&&(b.OE=q1(h));b.zO=E7(b.zO,R.iv_ads_only);if(h=R.cta_conversion_urls)b.wA=h;b.isPharma=E7(b.isPharma,R.is_pharma);b.author=kE(b.author,R.author);b.Zl=DhT(R.ttsurl)||b.Zl;b.yu=E7(b.yu,R.cc_asr);b.JX=kE(b.JX,R.channel_path);if(h=R.profile_picture)b.profilePicture=kE(b.profilePicture,h);b.videoCountText=kE(b.videoCountText,R.video_count_text);b.autonavState=TJ(b.autonavState,R.autonav_state,aA3);b.clientPlaybackNonce=kE(b.clientPlaybackNonce, R.cpn);b.subscribed=E7(b.subscribed,R.subscribed);b.rawViewCount=JN(b.rawViewCount,R.view_count);b.shortViewCount=kE(b.shortViewCount,R.short_view_count_text);b.publishedTimeText=kE(b.publishedTimeText||"",R.publishedTimeText);b.lengthText=kE(b.lengthText||"",R.lengthText);b.n6=kE(b.n6||"",R.n6);b.fb=kE(b.fb||"",R.fb);b.title=kE(b.title,R.title);b.subtitle=kE(b.subtitle,R.subtitle);b.expandedTitle=kE(b.expandedTitle,R.expanded_title);b.expandedSubtitle=kE(b.expandedSubtitle,R.expanded_subtitle);b.ypcPreview= kE(b.ypcPreview,R.ypc_preview);b.iD=kE(b.iD,R.ypc_origin);b.wi=E7(b.wi,R.ypc_is_premiere_trailer);b.Zw=kE(b.Zw,R.ypc_clickwrap_message);b.paygated=E7(b.paygated,R.paygated);b.ge=E7(b.ge,R.requires_purchase);b.showShareButton=!E7(!b.showShareButton,R.ss);b.EW=E7(b.EW,R.showwatchlater);b.x4=E7(b.x4,R.shownotifybutton);b.Yb=E7(b.Yb,R.copy_share);if(h=R.el)b.eventLabel=h;if(h=R.keywords)b.keywords=jdT(h.split(","));if(h=R.rvs)b.suggestions=i1(h).map(K=>K.playlist||K.list||K.api?new $K(b.uv,K):new sN(b.uv, K)); b.contentCheckOk=E7(b.contentCheckOk,R.cco);b.racyCheckOk=E7(b.racyCheckOk,R.rco);b.isLivingRoomDeeplink=E7(b.isLivingRoomDeeplink,R.is_living_room_deeplink);b.oauthToken=kE(b.oauthToken,R.oauth_token);b.wp=kE(b.wp,R.kpt);b.visitorData=kE(b.visitorData,R.visitor_data);if(h=R.session_data)b.sessionData=tQ(h,"&");b.RC=kE(b.RC,R.endscreen_ad_tracking_data);b.Eu=E7(b.Eu,R.wait_for_vast_info_cards_xml);b.qH=E7(b.qH,R.suppress_creator_endscreen);b.s0=E7(b.s0,R.is_trueview_action);b.dg=kE(b.dg,R.tracking_list); vbD(b,R)}; g.lP=function(b,R,h){R&&R.cpn&&g.kJ(new g.A$("CPN provided in VideoData update",{Vre:R.cpn,mZ:b.clientPlaybackNonce,jk5:h}));h?(O7(R),b.setData(R),bP(b)&&b.oe()):(R=R||{},hCT(b,R),pa(b,R),lAw(b,R),BBw(b,R),b.publish("dataupdated"))}; vbD=function(b,R){R.inlineMetricEnabled&&(b.inlineMetricEnabled=!0);R.playback_progress_0s_url&&(b.jx=new H4w(R));if(R=R.video_masthead_ad_quartile_urls)b.Au=R.quartile_0_url,b.Qz=R.quartile_25_url,b.Pm=R.quartile_50_url,b.nx=R.quartile_75_url,b.tS=R.quartile_100_url,b.AA=R.quartile_0_urls,b.Gx=R.quartile_25_urls,b.Ym=R.quartile_50_urls,b.Tx=R.quartile_75_urls,b.n$=R.quartile_100_urls}; g.Ka=function(b,R){for(const h of R)h.cueRangeSetIdentifier&&b.dh.set(h.cueRangeSetIdentifier,h.playerCueRanges??[])}; qDq=function(b){if(!b)return null;for(const R of b)if(b=R.adPlacementRenderer?.renderer?.videoAdTrackingRenderer)return b;return null}; dDT=function(b){const R=b.playerResponse?.playerConfig?.compositeVideoConfig?.sourceConfigs;b=b.playerResponse?.playerConfig?.compositeVideoConfig?.defaultActiveSourceVideoId;if(!R||!R.length)return"";b||(b=R[0].videoId||"");for(const h of R)if(h.videoId===b&&h.audioTracks)for(const K of h.audioTracks)if(K.isDefaultForSource)return K.id||"";return""}; fAw=function(b,R,h){switch(R){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":h>30?b.limitedPlaybackDurationInSeconds=30:h<30&&h>10&&(b.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":b.limitedPlaybackDurationInSeconds=h*.2}}; yzT=function(b,R){return R!=null?E7(b.D,R):b.D?b.D:b.uv.preferGapless&&b.uv.supportsGaplessShorts()}; tbe=function(b){return!!b&&isFinite(b)&&b>1E9}; j5s=function(b){return tN()&&aj(b)?!1:v0(b)&&(g.bU(b.uv)?!b.isLivePlayback:b.hlsvp)||!Pa()||b.jU?!0:!1}; Azq=function(b){b=g.zE(b);return Number(b.expire)||0}; B0=function(b){const R=b.L();return b.uv.G6==="hm"||b.uv.G6==="gd"||R.experiments.Mj().G.WY(i4x)&&b.uv.J?!0:!1}; FlT=function(b,R){b.showShareButton=!!R;if(R=g.Z(R,N6)?.navigationEndpoint||g.Z(R,N6)?.command)b.Yb=!!g.Z(R,zC3)}; LlB=function(b,R,h){var K=h.channelThumbnail;K&&(K=K.thumbnails)&&(K=K[0])&&(R.profile_picture=K.url);if(K=g.Z(g.Z(h?.channelThumbnailEndpoint,UDB)?.urlEndpoint,g.Y8))R.channel_path=K.url;if(K=h.collapsedRenderer)if(K=g.Z(K,Gue)){const I=K.title;I&&(R.title=g.BY(I));if(K=K.subtitle)R.subtitle=g.BY(K)}if(h=h.expandedRenderer)if(h=g.Z(h,gbx)){if(K=h.title)R.expanded_title=g.BY(K);if(K=h.subtitle)R.expanded_subtitle=g.BY(K);if(h=h.subscribeButton)b.subscribeButtonRenderer=g.Z(h,g.H0),b.subscribeButtonRenderer&& (R.ucid=b.subscribeButtonRenderer.channelId,R.subscribed=b.subscribeButtonRenderer.subscribed,b.x4=!!b.subscribeButtonRenderer.notificationPreferenceToggleButton,b.subscribeButtonRenderer.notificationPreferenceToggleButton&&b.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer&&(R=b.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer,R.isToggled?(b.pM=R.toggledServiceEndpoint||null,b.xA=R.defaultServiceEndpoint||null):(b.pM=R.defaultServiceEndpoint|| null,b.xA=R.toggledServiceEndpoint||null)))}}; W6w=function(b){return!!b.Fs||!!b.Au||!!b.AA||!!b.jx||b.al}; qF=function(b){return!!(b.X&&b.X.videoInfos&&b.X.videoInfos.length)}; GT=function(b){return b.mY()&&b.L().supportsGaplessShorts()}; dw=function(b){var R=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],h=x2(b.uv)==="TVHTML5_SIMPLY"&&b.uv.G.ctheme==="MUSIC";!b.wQ&&(g.LW(b.uv)||g.vG(b.uv)||h)&&(R.includes(b.musicVideoType)||b.isExternallyHostedPodcast)&&(b.wQ=!0);if(R=g.y5())R=/Starboard\/([0-9]+)/.exec(g.zK()),R=(R?parseInt(R[1],10):NaN)<10;h=b.uv;h=(x2(h)==="TVHTML5_CAST"||x2(h)==="TVHTML5"&&(h.G.cver.startsWith("6.20130725")||h.G.cver.startsWith("6.20130726")))&&b.uv.G.ctheme==="MUSIC";var K;if(K=!b.wQ)h||(h= b.uv,h=x2(h)==="TVHTML5"&&h.G.cver.startsWith("7")),K=h;K&&!R&&(R=b.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",h=(b.N("cast_prefer_audio_only_for_atv_and_uploads")||b.N("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&b.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",R||h||b.isExternallyHostedPodcast)&&(b.wQ=!0);return b.uv.deviceIsAudioOnly||b.wQ&&b.uv.K}; fa=function(b){return b.uv.N("html5_disable_av1")?!0:!1}; yy=function(b){return b.playerResponse?.playerConfig?.compositeVideoConfig?.compositeBroadcastType==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}; g.tw=function(b){var R=b.D;b.N("html5_gapless_unlimit_format_selection")&>(b)&&(R=!1);const h=!!b.G&&b.G.AO;R=gYe(b.uv,{Rv:b.Rv(),yM:h,ju:dw(b),Ab:b.Ab,Pi:R,isOtf:b.isOtf(),LM:b.LM(),YH:b.YH,V7:b.getUserAudio51Preference(),disableAv1:fa(b),If:yy(b)});ve(b)&&(R.Sn=!0);tN()&&b.playerResponse&&b.playerResponse.playerConfig&&b.playerResponse.playerConfig.webPlayerConfig&&b.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(R.V=!0,R.S=!0);b.D&&b.isAd()&&(b.TG&&(R.U=b.TG),b.Kj&& (R.X=b.Kj));b.mY()&&(R.T6=g.fg(b.uv.experiments,"html5_hard_cap_max_vertical_resolution_for_shorts"));R.vY=b.isLivePlayback&&b.OD()&&b.uv.N("html5_drm_live_audio_51");R.nR=b.dK;b.N("html5_disable_vp9_hdr_fairplay")&&tN()&&(R.nR=!0);R.CR=!ve(b);return b.KR=R}; nbT=function(b){mv("drm_pb_s",void 0,b.G6);b.Oz||b.G&&b.G.V();var R={};b.G&&(R=IqH(b.BI,g.tw(b),b.uv.S,b.G,h=>b.publish("ctmp","fmtflt",h),!0,new Set)); R=new SDq(R,b.uv,b.sy,b.useCobaltWidevine?tN()?aj(b):!1:!1,(h,K)=>{b.YZ(h,K)}); g.n(b,R);b.CN=!1;b.loading=!0;kmH(R,h=>{mv("drm_pb_f",void 0,b.G6);for(var K of h)switch(K.flavor){case "fairplay":K.Oz=b.Oz;K.cX=b.cX;K.pB=b.pB;break;case "widevine":K.zM=b.zM}b.Cm=h;if(b.Cm.length>0&&(b.S=b.Cm[0],b.uv.zy())){h={};for(const [I,N]of Object.entries(b.S.Y)){K=N;let p="unk";const l=I.match(/(.*)codecs="(.*)"/);l&&(p=l[2]);h[p]=K}b.YZ("drmProbe",h)}b.oe()})}; EbB=function(b){var R;if(R=!!b.cotn)R=b.videoId,R=!!R&&g.cG(R)===1;return R&&!b.qf}; kuT=function(b){var R=b.playerResponse?.streamingData?.adaptiveFormats||[],h=null;if(R.length>0)h=TBT(b,R);else if(!b.N("html5_deprecate_adaptive_formats_string")){b.YZ("pafmtstr",{s:b.adaptiveFormats.substring(0,50)});if((R=b.adaptiveFormats)&&!v0(b)){b.uv.S.Y&&(Ha=!0);R=jJ(R);h=b.contentProtection;var K=b.lengthSeconds,I=b.isLivePlayback,N=b.VB,p=b.uv,l=wYe(R);if(I||N){K=p?.experiments;I=new g.uh("",K,!0);I.AO=!0;I.isManifestless=!0;I.Y=!N;I.isLive=!N;I.VB=N;for(v of R){p=hE(v,h);l=GC(v.url,v.sp, v.s);var a=l.get("id");a&&a.includes("%7E")&&(I.C=!0);a=K?.O9("html5_max_known_end_time_rebase");const B=Number(v.target_duration_sec)||5,H=Number(v.max_dvr_duration_sec)||14400,q=Number(l.get("mindsq")||l.get("min_sq")||"0"),d=Number(l.get("maxdsq")||l.get("max_sq")||"0")||Infinity;I.A9=I.A9||q;I.vg=I.vg||d;const t=!c5(p.mimeType);l&&VN(I,new JzK(l,p,{Dd:B,zE:t,T7:H,A9:q,vg:d,y4:300,VB:N,cf:a}))}var v=I}else v=l==="FORMAT_STREAM_TYPE_OTF"?FpP(R,h,K,p?.experiments):o8T(R,h,K,p);R.length>0&&(R=R[0], B0(b)&&R.url&&(b.K0=b.K0||Azq(R.url)));R=b.isLivePlayback&&!b.VB&&!b.pm&&!b.isPremiere;b.N("html5_live_head_playable")&&(!Aw(b)&&R&&b.YZ("missingLiveHeadPlayable",{}),b.uv.G6==="yt"&&(v.JX=!0));h=v}else h=null;b.YZ("pafmts",{isManifestFilled:!!h})}if(!h)return!1;iP(b,h);return!0}; zT=function(b){return!(!b.G||!b.G.isManifestless)}; Aw=function(b){return b.N("html5_live_head_playable")&&zT(b)&&b.uv.G6==="yt"?b.isLiveHeadPlayable:b.isLivePlayback}; TBT=function(b,R){if(R.length===0||v0(b))return null;b.uv.S.Y&&(Ha=!0);var h=b.contentProtection;var K=b.lengthSeconds,I=b.isLivePlayback,N=b.VB,p=b.uv,l=chD(R);if(I||N){K=p.experiments;I=new g.uh("",K,!0);I.Y=!N;I.AO=!0;I.isManifestless=!0;I.isLive=!N;I.VB=N;for(const v of R){p=Xt(v,h);const {Sq:B,s:H,mB:q}=bm(9,v);l=GC(B||v.url||"",q,H);var a=l.get("id");a&&a.includes("%7E")&&(I.C=!0);a=K?.O9("html5_max_known_end_time_rebase");const d=Number(v.targetDurationSec||5),t=Number(v.maxDvrDurationSec|| 14400),S=Number(l.get("mindsq")||l.get("min_sq")||"0"),J=Number(l.get("maxdsq")||l.get("max_sq")||"0")||Infinity;I.A9=I.A9||S;I.vg=I.vg||J;const e=!c5(p.mimeType);l&&VN(I,new JzK(l,p,{Dd:d,zE:e,T7:t,A9:S,vg:J,y4:300,VB:N,cf:a}))}h=I}else h=l==="FORMAT_STREAM_TYPE_OTF"?XYP(R,h,K,p.experiments):Vvw(R,h,K,p);R.length>0&&(R=R[0],B0(b)&&R.url&&(b.K0=b.K0||Azq(R.url)));R=b.isLivePlayback&&!b.VB&&!b.pm&&!b.isPremiere;b.N("html5_live_head_playable")&&(!Aw(b)&&R&&b.YZ("missingLiveHeadPlayable",{}),b.uv.G6=== "yt"&&(h.JX=!0));return h}; jJ=function(b,R){b=i1(b);const h={};if(R)for(var K of R.split(","))(R=K.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(h[R[1]]={width:R[2],height:R[3]});for(const I of b)if(K=h[I.itag])I.width=K.width,I.height=K.height;return b}; iP=function(b,R,h=!1){b.ow=void 0;b.G=R;g.n(b,R);R.A9=b.A9;R.vg=b.vg;R.Th=b.Th;R.gz=b.gz;R.bB=b.bB;b.C6&&(R.G6=new YDe(b.C6));(b.Rv()||g.zs(b))&&b.Ha.push("webgl");b.G.isLive||(b.isLivePlayback=!1);const K=R.sourceUrl.split("/");if(b.xZ?K.indexOf("manifest_duration")!==-1:K.indexOf("manifest_duration")!=-1)b.pZ=Number(K[K.indexOf("manifest_duration")+1]);if(R.Y||R.isManifestless)R.subscribe("clienttemp",b.YZ,b),h?R.subscribe("refresh",b.EH,b):R.subscribe("cuepointsadded",b.fn,b);R.V()?b.CN=!0:e4= void 0;b.pm&&(R.K=b.pm,R.isLive=!0,b.isLivePlayback=!0);R.isPremiere=b.isPremiere;R.isLiveHeadPlayable=b.isLiveHeadPlayable}; aj=function(b){return b.N("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; v0=function(b){return tN()?!aj(b):AN()?!(!b.Oz||!b.N("html5_enable_safari_fairplay")&&Pa()):!1}; UN=function(b){return b.xZ?b.isLowLatencyLiveStream&&b.G!=null&&Ip(b.G)>=5:b.isLowLatencyLiveStream&&b.G!=void 0&&Ip(b.G)>=5}; eCx=function(b){b.loading=!0;b.Ys=!1;if(EbB(b))g.OMH(b.videoId).then(K=>{if(b.playerResponse?.streamingData){var I=[];for(const N of K)K=Object.assign({},N),K.signatureCipher="",I.push(K);I.length<2&&b.YZ("offmlf",{len:I.length});I=TBT(b,I);dw(b)&&yJq(I,!1);iP(b,I);b.YZ("dlr",{})}else b.YZ("offsdm",{cotn:b.SV?b.SV.cotn:"0",cpn:b.clientPlaybackNonce})}).then(()=>{b.oe()}); else{B8(b.uT)||g.kJ(new g.A$("DASH MPD Origin invalid: ",b.uT));var R=b.uT,h=g.fg(b.uv.experiments,"dash_manifest_version")||4;R=g.z9(R,{mpd_version:h});b.isLowLatencyLiveStream&&b.latencyClass!=="NORMAL"||(R=g.z9(R,{pacing:0}));hFH(R,b.uv.experiments,b.isLivePlayback).then(K=>{b.HY()||(iP(b,K,!0),mv("mrc",void 0,b.G6),b.oe())},K=>{b.HY()||(b.loading=!1,b.publish("dataloaderror",new g.hz("manifest.net.retryexhausted",{backend:"manifest", rc:K.status},1)))}); mv("mrs",void 0,b.G6)}}; Gs=function(b){if(!b.isProximaLatencyEligible)return 0;const R=FW();return b.uv.getWebPlayerContextConfig()?.enableProximaLowLatency?2:R===1?1:b.N("html5_enable_proxima")?2:0}; gK=function(b,R){return b.N(R)?!0:(b.fflags||"").includes(R+"=true")}; O4K=function(b,R){const h=R||j5s(b)||b.isExternallyHostedPodcast;if(!b.G||h)return b.YZ("skipDash",{dm:!!b.G,air:R,dd:b.jU,mss:Pa(),"3pp":b.isExternallyHostedPodcast}),KX();dw(b)&&yJq(b.G,b.isLivePlayback);return s7().then(()=>jJe(b.BI,g.tw(b),b.uv.S,b.G,b.S,K=>b.publish("ctmp","fmtflt",K),b.BQ,gw(b)).then(K=>{b.QU(K); b.BI.Y=null;/^av/.test(b.clientPlaybackNonce)&&b.KR&&b.YZ("av1",b.KR.Y)}))}; xDe=function(b,R){if(R&&b.hlsvp)return KX();if(b.hlsFormats){if(R=jJ(b.hlsFormats)){const K=[];for(var h of R)h.url&&(h.url=MzD(h.url)),b.KR?.G&&K.push(h.itag);b.KR?.G&&K.length>0&&b.YZ("hlsfmt",{itags:K.join(".")})}b.hc=gv3(b.uv,R);b.hc&&Q5K(b,b.hc);h=b.clientPlaybackNonce;return T5H(b.uv,b.isAd(),R,b.playerResponse?.captions?.playerCaptionsRenderer?.baseUrl??null,b.Zk,h,K=>b.publish("ctmp","hlsflt",K)).then(K=>{let I=0; const N=[];for(const p of K)N.push(p.getInfo()?.itag),p.getInfo()?.K()?.numChannels>I&&(I=p.getInfo().audio.numChannels);I>2&&b.YZ("hlschl",{mn:I});b.KR?.G&&b.YZ("hlsfmtaf",{itags:N.join(".")});if(b.N("html5_enable_vp9_fairplay")&&b.S?.G()){b.YZ("drm",{sbdlfbk:1});for(const p of b.Cm)if(JE(p)){b.S=p;break}}W0(b,K)})}return KX()}; mDP=function(b){if(b.isExternallyHostedPodcast&&b.E$){const R=jJ(b.E$);if(!R[0])return KX();b.hN=R[0];return O9H(b.uv,R[0]).then(h=>{W0(b,h)})}return b.cO&&b.iJ?eRe(b.uv,b.isAd(),b.cO).then(R=>{W0(b,R)}):KX()}; Z4T=function(b){if(b.isExternallyHostedPodcast)return KX();const R=jJ(b.E$,b.eW);if(b.hlsvp){const h=CUB(b.hlsvp,b.clientPlaybackNonce,b.Zk);R.push(h)}return ocx(b.uv,b.isAd(),R,PaT(b)).then(h=>{W0(b,h)})}; gw=function(b){const R=b.N("html5_enable_server_format_filter")&&!b.OD(),h=b.N("html5_enable_server_format_filter_for_drm")&&b.OD();return ve(b)&&(R||h)}; Q5K=function(b,R){R.sort((h,K)=>h.toString().localeCompare(K.toString(),b.uv.hostLanguage))}; W0=function(b,R){b.fR=R;b.QU(new qA(g.an(b.fR,h=>h.getInfo())))}; PaT=function(b){const R={cpn:b.clientPlaybackNonce,c:b.uv.G.c,cver:b.uv.G.cver};b.Qd&&(R.ptk=b.Qd,R.oid=b.sK,R.ptchn=b.cj,R.pltype=b.KD,b.J2&&(R.m=b.J2));return R}; g.SJ=function(b){return v0(b)&&b.Oz?{fairplay:"https://youtube.com/api/drm/fps?ek=uninitialized"}:b.Y&&b.Y.contentProtection||null}; na=function(b){return b.playerResponse&&b.playerResponse.paidContentOverlay&&b.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.Z(b.T6?.playerOverlays?.playerOverlayRenderer?.playerDisclosure,czT)||null}; uJK=function(b){const R=na(b);return R&&R.text?g.BY(R.text):b.paidContentOverlayText}; X5P=function(b){const R=na(b);return R&&R.durationMs?gu(R.durationMs):b.paidContentOverlayDurationMs}; EN=function(b){let R="";if(b.zr)return b.zr;b.isLivePlayback&&(R=b.allowLiveDvr?"dvr":b.isPremiere?"lp":b.pm?"window":"live");b.VB&&(R="post");return R}; g.Ts=function(b,R){return typeof b.keywords[R]!=="string"?null:b.keywords[R]}; g.DL=function(b){return!!(b.uT||b.E$||b.cO||b.hlsvp||b.bY())}; b4w=function(b){return(b=b.Jq)&&b.showError?b.showError:!1}; g.Jw=function(b){return Aw(b)&&!b.allowLiveDvr}; kK=function(b){return Aw(b)&&b.allowLiveDvr}; g.YK=function(b){return!!b.G&&$0T(b.G)}; g.eJ=function(b){return!!b.G&&lCx(b.G)}; g.zs=function(b){return!!b.G&&vYH(b.G)}; g.ON=function(b){return!!b.G&&aCH(b.G)}; g.VbP=function(b){if(b.qH)return null;let R=b.KG;R||(R=b.playerResponse&&b.playerResponse.endscreen&&b.playerResponse.endscreen.endscreenUrlRenderer&&b.playerResponse.endscreen.endscreenUrlRenderer.url);return R||null}; g.Cax=function(b){return b.qH?null:b.playerResponse&&b.playerResponse.endscreen&&b.playerResponse.endscreen.endscreenRenderer||null}; g.Qy=function(b){if(!b.playerResponse||!b.playerResponse.annotations)return null;for(const R of b.playerResponse.annotations)if(R.playerAnnotationsExpandedRenderer&&R.playerAnnotationsExpandedRenderer.featuredChannel)return R.playerAnnotationsExpandedRenderer;return null}; xK=function(b){return b.adFormat&&(b.xZ?b.adFormat!=="1_5":b.adFormat!="1_5")?"adunit":b.eventLabel||b.uv.nR}; g.ma=function(b){return xK(b)==="shortspage"}; P0=function(b){return b.xV||xK(b)==="detailpage"||xK(b)==="shortspage"||b.mutedAutoplay}; Mbx=function(b){const R=xK(b)==="adunit"?b.qn:P0(b)?xK(b)==="detailpage"||xK(b)==="shortspage"?b.isAutonav||b.pR>0:b.pz?!1:b.uv.x4||b.uv.cO||!g.Fo(b.uv)?!0:!1:(b.pz?0:b.jn)&&g.Fo(b.uv)?!0:!1;b.N("html5_log_detailpage_autoplay")&&xK(b)==="detailpage"&&b.YZ("autoplay_info",{autoplay:b.xV,autonav:b.isAutonav,wasDompaused:b.pz,result:R});return R}; rz3=function(b){let R=1;var h=g.fg(b.uv.experiments,"html5_default_ad_gain");h&&b.isAd()&&(R=h);h=b.V?.audio.X!=null?b.V?.audio.X:b.dG;isNaN(h)||(b.OV=4);return Math.min(1,10**(-h/20))||R}; AD=function(b){if(b.N("html5_stateful_audio_normalization")){{let K=1;var R=g.fg(b.uv.experiments,"html5_default_ad_gain");R&&b.isAd()&&(K=R);const I=b.V?.audio.V??b.Ri;if(I==null||isNaN(I))b=rz3(b);else{R=(0,g.c)();b.OV=1;var h=R-b.uv.s7<=b.maxStatefulTimeThresholdSec*1E3;b.applyStatefulNormalization&&h?b.OV=2:h||(b.uv.Yb=Infinity,b.uv.s7=NaN);h=(b.OV===2?g.ui(b.uv.Yb,b.minimumLoudnessTargetLkfs,b.loudnessTargetLkfs):b.loudnessTargetLkfs)-I;b.OV!==2&&(h+=b.playerResponse?.playerConfig?.audioConfig?.loudnessNormalizationConfig?.statelessLoudnessAdjustmentGain|| 0);h=Math.min(h,0);b.preserveStatefulLoudnessTarget&&(b.uv.Yb=I+h,b.uv.s7=R);b=Math.min(1,10**(h/20))||K}}}else b=rz3(b);return b}; g.L62=function(b){return b.AO()&&ve(b)}; lT=function(b){return!!b.playerResponse?.playerConfig?.mediaCommonConfig?.splitScreenEligible}; w5q=function(b){return isNaN(b)?0:Math.max((Date.now()-b)/1E3-30,0)}; Zr=function(b){return!(!b.qf||!b.uv.K)&&b.bY()}; c0=function(b){return b.A2&&b.enableServerStitchedDai}; F6P=function(b){return b.yP&&!b.C6}; o4=function(b){var R;if(!(R=F2&&b.AO()&&b.OD()&&(b.drmProduct==="1"?!1:!0)&&b.N("html5_sabr_live_drm_streaming_xhr"))){R=b.AO()&&!b.OD()&&F2;var h=b.AO()&&b.latencyClass!=="ULTRALOW"&&!b.isLowLatencyLiveStream&&b.N("html5_sabr_live_normal_latency_streaming_xhr"),K=b.isLowLatencyLiveStream&&b.N("html5_sabr_live_low_latency_streaming_xhr");const I=b.latencyClass==="ULTRALOW"&&b.N("html5_sabr_live_ultra_low_latency_streaming_xhr");R=R&&(h||K||I)}h=R;R=b.enableServerStitchedDai&&h&&b.N("html5_enable_sabr_ssdai_streaming_xhr"); h=!b.enableServerStitchedDai&&h;K=b.AO()&&!F2&&b.N("html5_enable_sabr_live_non_streaming_xhr");b=F2&&(b.eK()||lT(b)&&b.N("html5_enable_sabr_for_lifa_eligible_streams"));return R||h||K||b}; uP=function(b){return b.KZ?["OK","LIVE_STREAM_OFFLINE"].includes(b.KZ.status):!0}; g.obT=function(b){return b.captionsLanguagePreference||b.uv.captionsLanguagePreference||g.Ts(b,"yt:cc_default_lang")||b.uv.m_}; g.X8=function(b){return!!b.embeddedPlayerConfig?.embeddedPlayerFlags?.enableMusicUx}; Vy=function(b){return b.uv.V&&b.isPrivate}; DDe=function(b){return b.playerResponse?.playerConfig?.daiConfig?b.H1?1:b.oQ?2:0:3}; g.MF=function(b){var R=b.L();const h=g.Ca(R);var K=R.gB;g.LB(R)&&(K&&(h.thirdParty={...h.thirdParty,embedUrl:K}),FIx(h,b));(K=b.C)?h.clickTracking={clickTrackingParams:K}:g.LB(b.L())&&g.x("EVENT_ID")?h.clickTracking={clickTrackingParams:g.x("EVENT_ID")}:R.N("html5_log_missing_itct")&&(K=new g.A$("Missing ITCT in InnerTubeContext",{isAd:b.isAd(),RJH:R.getWebPlayerContextConfig()?.contextId}),g.X(K));K=h.client||{};var I="EMBED",N=xK(b);N==="leanback"?I="WATCH":R.N("gvi_channel_client_screen")&&N=== "profilepage"?I="CHANNEL":b.YH?I="LIVE_MONITOR":N==="detailpage"?I="WATCH_FULL_SCREEN":N==="adunit"?I="ADUNIT":N==="sponsorshipsoffer"&&(I="UNKNOWN");K.clientScreen=I;if(I=b.kidsAppInfo)K.kidsAppInfo=JSON.parse(I);(N=b.VP)&&!I&&(K.kidsAppInfo={contentSettings:{ageUpMode:b6e[N]}});if(I=b.bD)K.unpluggedAppInfo={enableFilterMode:!0};(N=b.unpluggedFilterModeType)&&!I&&(K.unpluggedAppInfo={filterModeType:RmH[N]});if(I=b.PH)K.unpluggedLocationInfo=I;h.client=K;K=h.request||{};b.ri&&(K.isPrefetch=!0);if(I= b.mdxEnvironment)K.mdxEnvironment=I;if(I=b.mdxControlMode)K.mdxControlMode=hmq[I];h.request=K;K=h.user||{};if(I=b.nR)K.credentialTransferTokens=[{token:I,scope:"VIDEO"}];if(I=b.wp)K.delegatePurchases={oauthToken:I},K.kidsParent={oauthToken:I};if(R=R.getWebPlayerContextConfig()?.userContentRating)K.serializedUserContentRating=R;h.user=K;if(R=b.contextParams)h.activePlayers=[{playerContextParams:R}];if(b=b.clientScreenNonce)h.clientScreenNonce=b;return h}; g.Ca=function(b){const R=g.lM(),h=R.client||{};if(b.forcedExperiments){var K=b.forcedExperiments.split(",");const I=[];for(const N of K)I.push(Number(N));h.experimentIds=I}if(K=b.homeGroupInfo)h.homeGroupInfo=JSON.parse(K);if(K=b.getPlayerType())h.playerType=K;if(K=b.G.ctheme)h.theme=K;if(K=b.livingRoomAppMode)h.tvAppInfo={...h.tvAppInfo,livingRoomAppMode:K};K=b.deviceYear;b.N("html5_propagate_device_year")&&K&&(h.tvAppInfo={...h.tvAppInfo,deviceYear:K});if(K=b.livingRoomPoTokenId)h.tvAppInfo={...h.tvAppInfo, livingRoomPoTokenId:K};R.client=h;K=R.user||{};b.enableSafetyMode&&(K={...K,enableSafetyMode:!0});!h.tvAppInfo?.usePageidAsHeader&&b.pageId&&(K={...K,onBehalfOfUser:b.pageId});R.user=K;return R}; Kxx=function(b){const R=!b?.LM()&&b?.AO()&&SP();return{supportsVp9Encoding:!(!b?.UG()||R),supportXhr:F2}}; $SK=async function(b,R){b={context:g.Ca(b.L()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:b.videoId,cpn:b.clientPlaybackNonce}}]};const h=g.vI(scH);return await g.bn(R,b,h)}; I3K=function(b,R,h){const K=g.fg(R.experiments,"bg_vm_reinit_threshold");(!MJ||(0,g.c)()-MJ>K)&&$SK(b,h).then(I=>{I&&(I=I.botguardData)&&g.LG(I,R)},I=>{b.HY()||(I=K4(I),b.YZ("attf",I.details))})}; g.rw=function(b,R,...h){b.state.X.publish(R,...h);b.state.Y.publish(R,...h)}; L=function(b,R,h){b.state.G[R]=(...K)=>h.apply(b,K)}; La=function(b,R,h){b.state.G.hasOwnProperty(R)||L(b,R,h);b.state.S[R]=(...K)=>h.apply(b,K); b.state.D.add(R)}; ww=function(b,R,h){b.state.G.hasOwnProperty(R)||L(b,R,h);b.app.L().K&&(b.state.J[R]=(...K)=>h.apply(b,K),b.state.D.add(R))}; g.F8=function(b,R,h){return b.state.G[R](...h)}; g.oj=function(b,R,...h){b.state.X.publish(R,...h);b.state.Y.publish(R,...h);b.state.V.publish(R,...h)}; g.Dr=function(b,R,...h){b.state.X.publish(R,...h);b.state.Y.publish(R,...h);b.state.V.publish(R,...h);b.state.K.publish(R,...h)}; NVx=function(b,R,h){typeof b==="string"&&(b={mediaContentUrl:b,startSeconds:R,suggestedQuality:h});a:{if((R=b.mediaContentUrl)&&(R=/\/([ve]|embed)\/([^#?]+)/.exec(R))&&R[2]){R=R[2];break a}R=null}b.videoId=R;return bb(b)}; bb=function(b,R,h){if(typeof b==="string")return{videoId:b,startSeconds:R,suggestedQuality:h};R={};for(const K of pzP)b[K]&&(R[K]=b[K]);if(b=b.embedConfig||b.embed_config)if(typeof b==="string")R.embed_config=b;else if(g.uT(b))try{const K=JSON.stringify(b);R.embed_config=K}catch(K){console.error("Invalid embedConfig JSON",K)}return R}; l3B=function(b,R,h,K){if(g.uT(b)&&!Array.isArray(b)){R="playlist list listType index startSeconds suggestedQuality".split(" ");h={};for(K=0;Kb.getPlaybackQuality(1)); La(b,"setPlaybackQuality",b.BI);La(b,"getAvailableQualityLevels",b.SY);La(b,"getCurrentTime",b.JX);La(b,"getDuration",b.Zr);La(b,"addEventListener",b.G6);La(b,"removeEventListener",b.K5);La(b,"getDebugText",b.NJ);La(b,"getVideoData",()=>a33(b)); La(b,"addCueRange",b.K);La(b,"removeCueRange",b.removeCueRange);La(b,"setSize",b.setSize);La(b,"getApiInterface",b.getApiInterface);La(b,"destroy",b.destroy);La(b,"mutedAutoplay",b.mutedAutoplay);const R=b.app.L();R.J||(La(b,"getVideoEmbedCode",b.getVideoEmbedCode),La(b,"getVideoUrl",b.FM));La(b,"getMediaReferenceTime",b.xZ);La(b,"getSize",b.getSize);La(b,"setFauxFullscreen",b.yu);R.N("embeds_enable_move_set_center_crop_to_public")&&La(b,"setCenterCrop",b.setCenterCrop);R.J||La(b,"logImaAdEvent", b.logImaAdEvent);La(b,"preloadVideoById",b.K0);La(b,"wakeUpControls",b.wakeUpControls)}; g.hT=function(b){return(b=BVx(b.app.VV()))?b.gk():null}; sz=function(b){const R=g.bv(b.app.L()),h=b.app.getVideoData()?.er;b=Kz(b.app);return g.xE(R)&&!h||b?!1:!0}; H6w=function(b){let R=b.raw_player_response;if(!R){var h=b.player_response;h&&(R=JSON.parse(h))}delete b.player_response;delete b.raw_player_response;R&&(b.raw_player_response={streamingData:R.streamingData,playerConfig:R.playerConfig},R.playbackTracking?.qoeUrl&&(b.raw_player_response={...b.raw_player_response,playbackTracking:{qoeUrl:R.playbackTracking.qoeUrl}}),R.videoDetails&&(R.videoDetails.videoId||R.videoDetails.lengthSeconds)&&(h={},R.videoDetails.videoId&&(h.videoId=R.videoDetails.videoId), R.videoDetails.lengthSeconds&&(h.lengthSeconds=R.videoDetails.lengthSeconds),b.raw_player_response={...b.raw_player_response,videoDetails:h}))}; $u=function(b,R){const h={};if(b.app.L().C){for(const K of qK3)R.hasOwnProperty(K)&&(h[K]=R[K]);if(b=h.qoe_cat)R="",typeof b==="string"&&b.length>0&&(R=b.split(",").filter(K=>dSw.includes(K)).join(",")),h.qoe_cat=R; H6w(h)}else for(const K of f33)R.hasOwnProperty(K)&&(h[K]=R[K]);return h}; trK=function(b){return b?ykK[b]||5:5}; jcD=function(b){L(b,"getInternalApiInterface",b.getInternalApiInterface);L(b,"getTrustedApi",b.getTrustedApi);L(b,"addEventListener",b.U);L(b,"removeEventListener",b.vD);L(b,"cueVideoByPlayerVars",b.nR);L(b,"loadVideoByPlayerVars",b.m_);L(b,"preloadVideoByPlayerVars",b.wi);L(b,"getAdState",b.getAdState);L(b,"sendAbandonmentPing",b.sendAbandonmentPing);L(b,"setLoopRange",b.setLoopRange);L(b,"getLoopRange",b.getLoopRange);L(b,"setAutonavState",b.setAutonavState);L(b,"seekTo",b.vO);L(b,"seekBy",b.wB); L(b,"seekToLiveHead",b.seekToLiveHead);L(b,"requestSeekToWallTimeSeconds",b.requestSeekToWallTimeSeconds);L(b,"seekToStreamTime",b.seekToStreamTime);L(b,"prefetchKeyPlay",b.prefetchKeyPlay);L(b,"startSeekCsiAction",b.startSeekCsiAction);L(b,"getStreamTimeOffset",b.getStreamTimeOffset);L(b,"isOrchestrationLeader",b.isOrchestrationLeader);L(b,"getVideoData",b.Zl);L(b,"setInlinePreview",b.setInlinePreview);L(b,"getAppState",b.getAppState);L(b,"updateLastActiveTime",b.updateLastActiveTime);L(b,"setBlackout", b.setBlackout);L(b,"setUserEngagement",b.setUserEngagement);L(b,"updateSubtitlesUserSettings",b.updateSubtitlesUserSettings);L(b,"getPresentingPlayerType",b.X);L(b,"canPlayType",b.canPlayType);L(b,"updatePlaylist",b.updatePlaylist);L(b,"updateVideoData",b.updateVideoData);L(b,"updateEnvironmentData",b.updateEnvironmentData);L(b,"sendVideoStatsEngageEvent",b.cO);L(b,"productsInVideoVisibilityUpdated",b.productsInVideoVisibilityUpdated);L(b,"setSafetyMode",b.setSafetyMode);L(b,"isAtLiveHead",R=>b.isAtLiveHead(void 0, R)); L(b,"getVideoAspectRatio",b.getVideoAspectRatio);L(b,"getPreferredQuality",b.getPreferredQuality);L(b,"getPlaybackQualityLabel",b.getPlaybackQualityLabel);L(b,"setPlaybackQualityRange",b.Jq);L(b,"onAdUxClicked",b.onAdUxClicked);L(b,"getFeedbackProductData",b.getFeedbackProductData);L(b,"getStoryboardFrame",b.getStoryboardFrame);L(b,"getStoryboardFrameIndex",b.getStoryboardFrameIndex);L(b,"getStoryboardLevel",b.getStoryboardLevel);L(b,"getNumberOfStoryboardLevels",b.getNumberOfStoryboardLevels);L(b, "getCaptionWindowContainerId",b.getCaptionWindowContainerId);L(b,"getAvailableQualityLabels",b.getAvailableQualityLabels);L(b,"addCueRange",b.addCueRange);L(b,"addUtcCueRange",b.addUtcCueRange);L(b,"showAirplayPicker",b.showAirplayPicker);L(b,"dispatchReduxAction",b.dispatchReduxAction);L(b,"getPlayerResponse",b.wp);L(b,"getWatchNextResponse",b.EW);L(b,"getHeartbeatResponse",b.pR);L(b,"getCurrentTime",b.vY);L(b,"getDuration",b.gS);L(b,"getPlayerState",b.getPlayerState);L(b,"getPlayerStateObject", b.fR);L(b,"getVideoLoadedFraction",b.getVideoLoadedFraction);L(b,"getProgressState",b.getProgressState);L(b,"getVolume",b.getVolume);L(b,"setVolume",b.Yn);L(b,"isMuted",b.isMuted);L(b,"mute",b.BA);L(b,"unMute",b.Z7);L(b,"loadModule",b.loadModule);L(b,"unloadModule",b.unloadModule);L(b,"getOption",b.FB);L(b,"getOptions",b.getOptions);L(b,"setOption",b.setOption);L(b,"loadVideoById",b.Kl);L(b,"loadVideoByUrl",b.jL);L(b,"playVideo",b.OR);L(b,"loadPlaylist",b.loadPlaylist);L(b,"nextVideo",b.nextVideo); L(b,"previousVideo",b.previousVideo);L(b,"playVideoAt",b.playVideoAt);L(b,"getDebugText",b.getDebugText);L(b,"getWebPlayerContextConfig",b.getWebPlayerContextConfig);L(b,"notifyShortsAdSwipeEvent",b.notifyShortsAdSwipeEvent);L(b,"getVideoContentRect",b.getVideoContentRect);L(b,"setSqueezeback",b.setSqueezeback);L(b,"toggleSubtitlesOn",b.toggleSubtitlesOn);L(b,"isSubtitlesOn",b.isSubtitlesOn);L(b,"getAudioTrack",b.MJ);L(b,"setAudioTrack",b.er);L(b,"getAvailableAudioTracks",b.gp);L(b,"reportPlaybackIssue", b.reportPlaybackIssue);L(b,"setAutonav",b.setAutonav);L(b,"isNotServable",b.isNotServable);L(b,"channelSubscribed",b.channelSubscribed);L(b,"channelUnsubscribed",b.channelUnsubscribed);L(b,"togglePictureInPicture",b.togglePictureInPicture);L(b,"supportsGaplessAudio",b.supportsGaplessAudio);L(b,"supportsGaplessShorts",b.supportsGaplessShorts);L(b,"enqueueVideoByPlayerVars",R=>void b.enqueueVideoByPlayerVars(R)); L(b,"clearQueue",b.clearQueue);L(b,"getMaxPlaybackQuality",b.getMaxPlaybackQuality);L(b,"getUserPlaybackQualityPreference",b.getUserPlaybackQualityPreference);L(b,"getSubtitlesUserSettings",b.getSubtitlesUserSettings);L(b,"resetSubtitlesUserSettings",b.resetSubtitlesUserSettings);L(b,"setMinimized",b.setMinimized);L(b,"setOverlayVisibility",b.setOverlayVisibility);L(b,"confirmYpcRental",b.confirmYpcRental);L(b,"queueNextVideo",b.queueNextVideo);L(b,"handleExternalCall",b.handleExternalCall);L(b,"logApiCall", b.logApiCall);L(b,"isExternalMethodAvailable",b.isExternalMethodAvailable);L(b,"setScreenLayer",b.setScreenLayer);L(b,"getCurrentPlaylistSequence",b.getCurrentPlaylistSequence);L(b,"getPlaylistSequenceForTime",b.getPlaylistSequenceForTime);L(b,"shouldSendVisibilityState",b.shouldSendVisibilityState);L(b,"syncVolume",b.syncVolume);L(b,"highlightSettingsMenuItem",b.highlightSettingsMenuItem);L(b,"openSettingsMenuItem",b.openSettingsMenuItem);L(b,"getEmbeddedPlayerResponse",b.getEmbeddedPlayerResponse); L(b,"getVisibilityState",b.getVisibilityState);L(b,"isMutedByMutedAutoplay",b.isMutedByMutedAutoplay);L(b,"isMutedByEmbedsMutedAutoplay",b.isMutedByEmbedsMutedAutoplay);L(b,"setGlobalCrop",b.setGlobalCrop);L(b,"setInternalSize",b.setInternalSize);L(b,"setFauxFullscreen",b.setFauxFullscreen);L(b,"setAppFullscreen",b.setAppFullscreen)}; Ny=function(b,R,h){b=g.IL(b.qb(),R);return h?(h.addOnDisposeCallback(b),null):b}; g.pz=function(b,R,h){return b.app.L().ri?R:g.zc("$DESCRIPTION\u00a0($SHORTCUT)",{DESCRIPTION:R,SHORTCUT:h})}; Ak2=function(b){b.qb().element.setAttribute("aria-live","polite")}; g.lb=function(b,R){b.getPresentingPlayerType()===3?b.publish("mdxautoplaycancel"):g.rw(b,"onAutonavCancelled",R)}; g.aL=function(b){b=b.VV();const R=b.X$.get("endscreen");return R&&R.rT()?!0:b.b7()}; g.Br=function(b){const R=vr(b.VV());return b.app.us&&!b.isFullscreen()||b.getPresentingPlayerType()===3&&R&&R.hasNext()&&R.hasPrevious()||!!b.getPlaylist()}; g.Hr=function(b,R){g.F8(b,"addEmbedsConversionTrackingParams",[R])}; g.tD=function(b){return(b=g.qy(b.VV()))?b.P1():{}}; g.i6P=function(b){b=(b=b.getVideoData())&&b.Y;return!!b&&!(!b.audio||!b.video)&&b.mimeType!=="application/x-mpegURL"}; g.dL=function(b,R,h){b=b.tX().element;let K=ec(b.children,I=>{I=Number(I.getAttribute("data-layer"));return h-I||1}); K<0&&(K=-(K+1));UU(b,R,K);R.setAttribute("data-layer",String(h))}; g.fz=function(b){const R=b.L();if(!R.Ys)return!1;const h=b.getVideoData();if(!h||b.getPresentingPlayerType()===3)return!1;var K=(!h.isLiveDefaultBroadcast||R.N("allow_poltergust_autoplay"))&&!h.MJ();K=h.isLivePlayback&&(!R.N("allow_live_autoplay")||!K);const I=h.isLivePlayback&&R.N("allow_live_autoplay_on_mweb");b=b.getPlaylist();b=!!b&&b.hasNext();var N=h.T6&&h.T6.playerOverlays||null;N=!!(N&&N.playerOverlayRenderer&&N.playerOverlayRenderer.autoplay);N=h.C0&&N;return!h.ypcPreview&&(!K||I)&&!g.iR(h.Ha, "ypc")&&!b&&(!g.Fo(R)||N)}; USP=function(b,R){b=zmK(b.app.Nz().J);for(const h of b){b=h.getAvailableAudioTracks();let K=null;for(const I of b)if(I.getLanguageInfo().getId()===R){K=I;break}K&&h.Xz(K,!0)}}; tT=function(){yK||(yK=new Ghs);return yK}; jp=function(b,R){R?b.requestHeaders.Authorization=`Bearer ${R}`:delete b.requestHeaders.Authorization}; AT=function(b){const R=b.A.getRootNode();return b.A.N("web_watch_pip")||b.A.N("web_shorts_pip")?RF(R):document}; gS3=function(b){b.sourceElement&&(document.activeElement&&g.gM(b.element,document.activeElement)&&b.sourceElement.focus(),b.sourceElement.setAttribute("aria-expanded","false"),b.sourceElement=void 0);b.S.Y();b.J=void 0}; ib=function(b,R,h){b.nZ()?b.aT():b.zD(R,h)}; g.zq=function(b={},R=[],h=!1,K=!1){R.push("ytp-menuitem");"role"in b||(b.role="menuitem");h||"tabindex"in b||(b.tabindex="0");b={B:h?"a":"div",F5:R,O:b,W:[{B:"div",Z:"ytp-menuitem-icon",IH:"{{icon}}"},{B:"div",Z:"ytp-menuitem-label",IH:"{{label}}"},{B:"div",Z:"ytp-menuitem-content",IH:"{{content}}"}]};K&&b.W.push({B:"div",Z:"ytp-menuitem-secondary-icon",IH:"{{secondaryIcon}}"});return b}; g.Uz=function(b,R){b.updateValue("label",R)}; Gq=function(b){return b?g.BY(b):""}; Wr=function(b,R,h,K){R in b.G||(h=new g.gL(h,K,{id:R,priority:2,namespace:"appad"}),b.api.f5([h],1),b.G[R]=h)}; Sp=function(b,R){WxP(b,R).then(h=>{g.Co(R,void 0,void 0,h)})}; nz=function(b,R){R.forEach(h=>{Sp(b,h)})}; TVP=function(b,R,h){if(!(h in R))return!1;R=R[h];Array.isArray(R)||(R=[R]);for(const K of R)R={CPN:b.api.getVideoData().clientPlaybackNonce},R=g.eB(K,R),g.Co(R,void 0,ad(v8(R,SKK),R,!1,"Active View 3rd Party Integration URL")||ad(v8(R,nSK),R,!1,"Google/YouTube Brand Lift URL")||ad(v8(R,ESH),R,!1,"Nielsen OCR URL"));return!0}; WxP=function(b,R){return g.hB(b.api.L())&&nD(R)&&R_(R)?g.js(b.api.L(),b.api.getVideoData().J()).then(h=>{let K;h&&(K={Authorization:`Bearer ${h}`});return K},void 0):s7()}; JkK=function(b){const R=!b.L().OV&&b.getPresentingPlayerType()!==3;return b.isFullscreen()||R}; g.Ez=function(b,R,h=!1,K){const I=b.currentTarget;if(!h&&g.MU(b))return b.preventDefault(),!0;R.pauseVideo();b=I.getAttribute("href");g.RD(b,K,!0);return!1}; g.Tq=function(b,R,h){if(I4(R.L())&&R.getPresentingPlayerType()!==2){if(g.MU(h))return R.isFullscreen()&&!R.L().externalFullscreen&&R.toggleFullscreen(),h.preventDefault(),!0}else{const K=g.MU(h);K&&R.pauseVideo();g.RD(b,void 0,!0);K&&(g.hJ(b),h.preventDefault())}return!1}; khq=function(b){b=JT.includes("es")?b.N("delhi_modern_web_player_icons")?th():{B:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{B:"path",XX:!0,O:{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"}}]}:b.N("delhi_modern_web_player_icons")?Bpw():{B:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{B:"path",XX:!0,O:{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"}}]};b.Z="ytp-subtitles-button-icon"; return b}; YKH=function(b){return JT.includes("es")?b?th():{B:"svg",O:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{B:"path",O:{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"}}]}:b?{B:"svg",O:{fill:"none",height:"24",viewBox:"0 0 24 24", width:"24"},W:[{B:"path",O:{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"}}]}:{B:"svg",O:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{B:"path",O:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]}}; ku=function(){return{B:"div",Z:"ytp-spinner-container",W:[{B:"div",Z:"ytp-spinner-rotator",W:[{B:"div",Z:"ytp-spinner-left",W:[{B:"div",Z:"ytp-spinner-circle"}]},{B:"div",Z:"ytp-spinner-right",W:[{B:"div",Z:"ytp-spinner-circle"}]}]}]}}; Yu=function(b){if(document.createRange){const R=document.createRange();R&&(R.selectNodeContents(b),b=window.getSelection())&&(b.removeAllRanges(),b.addRange(R))}}; emq=function(b,R){const h=R.getAudioTrack();return h.id!=="und"?g.lR(b,K=>K.Nj?.name===h.getLanguageInfo().name):b}; O6T=function(b,R){return R.getUserAudio51Preference()?g.lR(b,ep):b}; QcT=function(b){return b.map(R=>new MD(R.id,"application/x-mpegURL",{Nj:R.Nj}))}; xSx=function(b){return g.NC("yt-player-drc-pref")?g.lR(b,Oz):b}; mSs=function(b){return M$e()===2?g.lR(b,QK):b}; PCB=function(b){return rFw()===1?g.lR(b,xu):b}; xu=function(b){return b.audio?.audioQuality==="AUDIO_QUALITY_HIGH"&&!ep(b)}; Oz=function(b){return b.audio?.G===!0}; ep=function(b){return b.J()}; Z6H=function(b){return b.Nj!==void 0}; QK=function(b){return b.audio?.Y===!0}; mV=function(b,R){if(b.length<2)return!1;const h=R(b[0]);return b.some(K=>R(K)!==h)}; ckH=function(b,R){b=new Set(b.map(R));b.delete(void 0);return b.size>=2}; uuT=function(b){return b.A.L().N("web_player_autonav_use_server_provided_state")&&b.PD().O$()}; XzP=function(b){b.isChecked=b.isChecked;b.yX("ytp-autonav-toggle-button").setAttribute("aria-checked",String(b.isChecked));const R=b.isChecked?"Reproducci\u00f3n autom\u00e1tica activada":"Reproducci\u00f3n autom\u00e1tica desactivada";b.A.L().N("player_tooltip_data_title_killswitch")?b.update({title:R,label:R}):b.update({"data-tooltip-title":R,label:R});b.A.d4()}; CC2=function(b){b.menuItem||(b.menuItem=new Vrq(b.api),g.n(b,b.menuItem),b.menuItem.bv(b.G))}; Mrs=function(b){var R=b.api.N("delhi_modern_web_player_compact_controls"),h=g.fg(b.api.L().experiments,"delhi_modern_web_player_responsive_compact_controls_threshold"),K=R||h>0&&b.api.getPlayerSize().width<=h;R=b.api.getRootNode();R.classList.toggle("ytp-delhi-modern-compact-controls",K);h=K?"40px":"48px";const I=K?"8px":"12px",N=K?"56px":"72px",p=K?"56px":"64px";let l=K?"48px":"56px",a=K?"12px":"20px";K=K?"72px":"96px";b.api.N("delhi_modern_web_player_big_mode_consistent_pill_height")&&(l="56px", a="12px",K="80px");R.style.setProperty("--yt-delhi-pill-height",h);R.style.setProperty("--yt-delhi-pill-top-height",I);R.style.setProperty("--yt-delhi-bottom-controls-height",N);R.style.setProperty("--yt-delhi-bottom-controls-height-xsmall-width-mode",p);R.style.setProperty("--yt-delhi-big-mode-pill-height",l);R.style.setProperty("--yt-delhi-big-mode-pill-top-height",a);R.style.setProperty("--yt-delhi-big-mode-bottom-controls-height",K)}; rkH=function(b,R){for(const h of R){R=Number(h.playbackPosition?.utcTimeMillis)/1E3;const K=`embargo_${R}`;b.api.addUtcCueRange(K,R,R+Number(h.duration?.seconds),"embargo",!1);h.onEnter&&(b.G[K]=h.onEnter.filter(b.Y))}}; wzK=function(b){var R=b.api.getRootNode();R=b.api.getWebPlayerContextConfig().embedsEnableEmc3ds?R.parentElement?.parentElement||R:R;b.G=new Lxs(R,h=>{h!=null&&(b.api.L().ow=h,b.api.L().qf="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.n(b,b.G);b.events.j(b.api,"videoStatsPingCreated",h=>{var K=b.G;K=K.G==null?null:Math.round(K.G*100)/100;h.inview=K!=null?K:void 0;K=b.api.getPlayerSize();if(K.height>0&&K.width>0){K=[Math.round(K.width),Math.round(K.height)];const I=g.yH();I>1&&K.push(I);K=K.join(":")}else K=void 0;h.size=K})}; Fxx=function(b){return(b?.messageRenderers||[]).find(R=>!!R.timeCounterRenderer)?.timeCounterRenderer||null}; oSP=function(b){var R=Math,h=R.round;const K=Math.min((0,g.c)()-b.X,b.Y);R=h.call(R,(b.Y-K)/1E3);b.updateValue("duration",JX({seconds:R}));R<=0&&b.G?b.stopTimer():b.G&&b.G.start()}; DSs=function(b,R){b.G||(b.Y=R,b.X=(0,g.c)(),b.G=new g.F7(()=>{oSP(b)},null),oSP(b))}; RI2=function(b,R){let h=0;for(h=0;h{const p=g.Z(N?.onTap,xJ);p&&g.rw(b.api,"innertubeCommand",p)}); b.G[h]=K}for(;h0&&I&&(h=Math.max(h,b.policy.GG));return ssK(b,h,R)}; VK=function(b){return cr(b)/b.playbackRate}; Cz=function(b,R,h){const K=b.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],I=b.policy.playbackStartPolicy.startMinReadaheadPolicy||[];b=Infinity;R=R&&K.length>0?K:I;for(const N of R)R=N.minReadaheadMs||0,h<(N.minBandwidthBytesPerSec||0)||b>R&&(b=R);return b=0?R[I]:null;var B;if(B=h){B=K;var H=I,q=h.startTimeMs+h.durationMs,d=B.startTimeMs+B.durationMs;if(B.startTimeMs-q>b.Y)B=!1;else if(InK(b,h.formatId, B.formatId))h.durationMs=Math.max(q,d)-h.startTimeMs,h.ED=Math.max(h.ED,B.ED),B=!0;else if(Math.abs(h.startTimeMs-B.startTimeMs)<=b.Y)if(h.durationMs>B.durationMs+b.Y){H=h.formatId;var t=h.UV,S=h.ED;h.formatId=B.formatId;h.durationMs=B.durationMs;h.UV=B.UV;h.ED=B.ED;B.formatId=H;B.startTimeMs=d;B.durationMs=q-d;B.UV=t;B.ED=S;B=!1}else h.formatId=B.formatId,B=!0;else q>B.startTimeMs&&(q>d&&(R.splice(H+1,0,{formatId:h.formatId,startTimeMs:d,durationMs:q-d,UV:B.ED+1,ED:h.ED}),b.logger&&b.logger({splitOldStart:h.startTimeMs?.toFixed(3), splitOldEnd:q?.toFixed(3),splitNewStart:B.startTimeMs?.toFixed(3),splitNewEnd:d?.toFixed(3)})),h.durationMs=B.startTimeMs-h.startTimeMs,h.ED=B.UV-1),B=!1}B?K=h:(I+=1,R.splice(I,0,K));h=0;for(B=I+1;B=t+q.Y?q=!0:S+q.Yh.startTimeMs-K.startTimeMs); return b>=0?b:-b-2}; pmP=function(b,R,h){if(b.logger){var K=[];for(let I=0;I0&&(0,g.c)()-b.U<5E3&&(b.logger&&b.logger({dend:K.info.vR()}),h=Qfx(h,I,I+.01))}b.policy.jx&&b.logger&&b.logger({cbri:`${b.G}`});K=[];for(var N=I=0;I=p){const d={...b.Ic[N]};var a=b.oH.X.get(am(b.Ic[N].formatId)),v=Math.max(l,p);p=a.index.dt(v+ b.Y/1E3);l=a.index.getStartTime(p);var B=p+ +(Math.abs(l-v)>b.Y/1E3);v=B+b.V;B=a.index.getStartTime(B)*1E3;N!==b.G||R?(d.UV=v,d.startTimeMs=B):(b.logger&&b.logger({pEvict:"1",og:d.startTimeMs,adj:l*1E3}),d.UV=p+b.V,d.startTimeMs=l*1E3);p=b.X?.info.duration||11;N===b.G&&Hb.Y/1E3);p=l+b.V;a=a.index.Ts(l)*1E3;d.ED=p;d.durationMs=a-d.startTimeMs;d.UV<=d.ED&&K.push(d)}q{R.push({...N})}); const K=b.SY.Jn();let I=b.G;for(const N of K)I=N1T(b,R,h,N,I);R.forEach(N=>{N.startTimeMs&&(N.startTimeMs+=b.timestampOffset*1E3)}); return{Ic:R,XQ:h}}; InK=function(b,R,h){return R.itag!==h.itag||R.xtags!==h.xtags?!1:b.oH.AO||R.lmt===h.lmt}; HAw=function(b,R,h,K,I){if(!R.hX.G()){if(!(I=h===0||!!R.Y.length&&R.Y[0]instanceof My))a:{if(R.Y.length&&(I=R.Y[0],I instanceof rL&&I.qU&&I.Bg)){I=!0;break a}I=!1}I||b.policy.G||Lz(R);return h}const N=wL(R,h);if(!isNaN(N))return N;if(b.loader.Ia(h*1E3))return h;I.RK?b.policy.RL&&(b=FY(b.loader,R),vAH(R.X,h+b,!0)):(R.o8(),b.loader.oP(!1,`sta_${+R.hX.info.Pr()}`));return K&&(b=hk(K.RY(),h),!isNaN(b))?(oL(R,b+B1B,I),h):oL(R,h,I)}; q1x=function(b,R,h){if(!b.policy.J){b=R.hX.index;var K=R.G.Dr;b.mQ(K)||h&&h.Dr===K?(R.V=!b.mQ(K),R.C=!b.mQ(K)):(R.V=!0,R.C=!0)}}; fnH=function(b){const R=Math.max(b.videoTrack.X.X||0,b.audioTrack.X.X||0);dLD(b.videoTrack);dLD(b.audioTrack);b.policy.J||taK(b.oH);b.oH.isManifestless&&!b.policy.J&&(b.G=!0,b.Y=0);var h=b.loader;if(!h.policy.G6||h.policy.KR)h.currentTime=R;b.V=!0;b.X=new tn;return b.X}; Rt=function(b){var R=b.videoTrack.S!==-1,h=b.audioTrack.S!==-1;if(!R||!h)if(R=!R&&DR(b.videoTrack),h=!h&&DR(b.audioTrack),R||h)if(h=R?b.videoTrack:b.audioTrack,R=R?b.audioTrack:b.videoTrack,h.S=DR(h).info.Dr,b.policy.J&&(R.S=DR(R)?.info.nR()||R.S),R.S!==-1){let K=Math.max(R.hX.index.getStartTime(R.S),h.hX.index.getStartTime(h.S));$2(b.oH)&&Math.abs(K-$2(b.oH))>432E3&&AJD(b.oH);b.Y&&(K=b.Y,b.Y=0);g.Mq(()=>{b.policy.J||bz(b,K,102)}); b.loader.YZ("initManifestlessSync",{st:K,ost:K+b.loader.Kz(),a:b.audioTrack.S,v:b.videoTrack.S});b.X&&(b.X.resolve(K+.1),b.X=null);b.policy.J&&bz(b,K,102)}}; yuD=function(b,R,h){if(!b.isSeeking())return-1;h=(h?b.videoTrack:b.audioTrack).hX.index;const K=h.dt(b.targetTime);return(h.mQ(b.oH.A9)||R.Dr===b.oH.A9)&&K{Rt(b)}); else{if(b.isSeeking()&&b.targetTime){const N=yuD(b,R,h);if(N!==-1){b.videoTrack.V=!1;b.audioTrack.V=!1;b.G=!0;b.Y=0;g.Mq(()=>{b.loader.YZ("seekreason",{reason:"behindMinSq",tgt:N});bz(b,N)}); return}}h?b.videoTrack.C=!1:b.audioTrack.C=!1;var I=!b.G;wL(b.videoTrack,b.targetTime)>=0&&wL(b.audioTrack,b.targetTime)>=0&&I?((b.videoTrack.V||b.audioTrack.V)&&b.loader.YZ("iterativeSeeking",{status:"done",count:b.seekCount}),b.videoTrack.V=!1,b.audioTrack.V=!1):K&&g.Mq(()=>{if(b.G||!b.policy.fR)Rt(b);else{var N=R.startTime,p=R.duration;if(!b.policy.J){var l=b.videoTrack.S!==-1&&b.audioTrack.S!==-1,a=!b.videoTrack.C&&!b.audioTrack.C;(h?b.videoTrack.V:b.audioTrack.V)&&l&&a&&(b.targetTime>=N&&b.targetTime< N+p+.1?((h?b.videoTrack:b.audioTrack).V=!1,b.videoTrack.V||b.audioTrack.V||(b.loader.YZ("iterativeSeeking",{status:"done",target:N,originalTime:N+b.loader.Kz(),count:b.seekCount}),b.seekCount=0)):b.seekCount<8?(b.seekCount++,b.loader.YZ("iterativeSeeking",{status:"inprogress",count:b.seekCount,target:b.targetTime,actual:N,duration:p,isVideo:h}),b.seek(b.targetTime,{})):(b.loader.YZ("iterativeSeeking",{status:"incomplete",count:b.seekCount,target:b.targetTime,actual:N}),b.seekCount=0,b.videoTrack.V= !1,b.audioTrack.V=!1,hH(b.loader,N+.1,{eB:!0,ZK:"chunkSelectorSynchronizeMedia",IR:!0})))}}})}}; Kx=function(b,R,h){jse(b.g2,R);b.vY&&(b.vY.add(Math.ceil(R)-Math.ceil(b.D)),b.vY.add(Math.max(0,Math.ceil(h/1024)-Math.ceil(b.S/1024))));const K=R-b.D,I=h-b.S;b.ri=I;b.PH=Math.max(b.PH,I/(K+.01)*1E3);b.D=R;b.S=h;b.SY&&h>b.SY&&Auq(b)}; Auq=function(b){b.JX=Math.max(b.JX,b.S-b.s8);b.MJ=Math.max(b.MJ,b.D-b.wi);b.SY=0}; iA3=function(b,R){b.url=R;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=()=>{performance.clearResourceTimings()})}; zIs=function(b){b.Zr=b.G+b.snapshot.delay*1E3;b.jn=!1}; $C=function(b,R,h){if(!b.Lt){R=Math.max(R,.01);var K=b.h8?Math.max(R,h/b.h8):R,I=b.g2.Y.X;I&&(K=R,b.h8&&(K=Math.max(R,h/b.h8*I)));sm(b.g2,R,h,K)}}; ULB=function(b){const R=b.pR||b.xZ;return R?b.snapshot.delay+Math.min(b.YV,(b.U-b.G6)/1E3)+R:b.Kh}; G5P=function(b){return(b.J-b.G)/1E3}; It=function(b,R){if(b.Mm&&b.Dr!==void 0&&b.Wr!==void 0){var h=Math,K=h.min,I=b.gp;var N=b.Mm;var p=b.G;if(gAs(N,b.Dr))N=R;else{var l=0;N.pj&&(l=.2);N=p+(N.YV+l)*1E3}b.gp=K.call(h,I,N);h=Math;K=h.min;I=b.NJ;N=b.Mm;p=b.G;l=Whe(N,b.Dr,b.Wr);l!==2&&(R=l?R:p+N.YV*1E3,N.pj&&(R+=N.YV*1E3));b.NJ=K.call(h,I,R);b.gp<=b.G?zIs(b):(b.Zr=b.gp,b.jn=!0)}}; S12=function(b,R){if(R+1<=b.totalLength){var h=vJ(b,R);h=h<128?1:h<192?2:h<224?3:h<240?4:5}else h=0;if(h<1||!(R+h<=b.totalLength))return[-1,R];if(h===1)b=vJ(b,R++);else if(h===2)h=vJ(b,R++),b=vJ(b,R++),b=(h&63)+64*b;else if(h===3){h=vJ(b,R++);var K=vJ(b,R++);b=vJ(b,R++);b=(h&31)+32*(K+256*b)}else if(h===4){h=vJ(b,R++);K=vJ(b,R++);const I=vJ(b,R++);b=vJ(b,R++);b=(h&15)+16*(K+256*(I+256*b))}else h=R+1,b.focus(h),pG(b,h,4)?b=Dre(b).getUint32(h-b.X,!0):(K=vJ(b,h+2)+256*vJ(b,h+3),b=vJ(b,h)+256*(vJ(b,h+ 1)+256*K)),R+=5;return[b,R]}; nAT=function(b){return g.fr(b.info.kZ,R=>R.type===3)}; kcP=async function(b,R){return R?(new g.Vr(b.Y)).encrypt(R,b.G):R}; Qdq=async function(b,R){return R?await (new g.Vr(b.Y)).decrypt(R,b.G):R}; EAK=function(b){b.X.read().then(b.D,b.onError).then(void 0,J2)}; Nn=function(b,R,h,K,I){if(Zu(76,b.DL))return new T1e(b,h);b=b.xj();return K?Qq2()?new JuT(b,R,h,I):new k5e(b,R,h,I):new Y1x(b,h,I)}; px=function(b,R,h){b.G&&(Ie(b.G,R),R=b.G,b.G=null);let K=0,I=0;for(const a of b.kZ){if(a.range&&K+a.Y<=b.Y){K+=a.Y;continue}if(yN(a)&&!h&&b.Y+R.totalLength-I=400?(b.lastError="net.badstatus",!0):I?(b.lastError="ump.spsrejectfailure",!0):h||K?!1:(b.lastError=R===204?"net.nocontent":"net.connect",!0)}; Bb=function(b,R){if(b.policy.nx)return!1;const h=R.getResponseHeader("content-type"),K=R.kp();b=!K||K<=b.policy.Au;return(!R.o$()||!h||h.indexOf("text/plain")!==-1)&&b}; Qsq=function(b,R){let h="";R=R.GL();R.totalLength<=b.policy.Au&&(b=lD(R),b=HJ(b),h=B8(b)?b:"");return h}; xLw=function(b){const R=b.timing.K();R.shost=$p(24,b.SX.DL);b.policy.gB&&b.policy.E_&&(R.csrc=1);return R}; mLB=function(b,R){return b?.maxWidth>R?.maxWidth||b?.maxHeight>R?.maxHeight}; POw=function(b,R){for(const h of R.keys()){const K=R.get(h);if(K.length===0)continue;g.Ot(K,(p,l)=>l.maxFramerate-p.maxFramerate); const I=[K[0]];let N=0;for(let p=1;pb.G||h.push(K);return h}; Hb=function(b,R,h){let K=uiH[b]||[];h.N("html5_shorts_onesie_mismatched_fix")&&(K=Xmw[b]||[]);R.push(...K);h.N("html5_early_media_for_drm")&&R.push(...(V7q[b]||[]))}; Fhs=function(b,R){const h=g.tw(b);var K=b.L();const I=K.S;K=K.N("html5_shorts_onesie_mismatched_fix");const N=b.mY();if(K){if(!I.G){if(N&&qn)return qn;if(dE)return dE}}else if(dE&&!I.G)return dE;const p=[],l=[],a={};var v=fx.concat(COH);K&&(v=fx.concat(M7w));b.N("html5_early_media_for_drm")&&(v=v.concat(rus),b.N("allow_vp9_1080p_mq_enc")&&v.push(Lhw));const B=[...wmK];b.N("html5_iamf_audio_onesie_fmt")&&B.push(["773"]);for(var H of v){v=!1;for(const d of H){var q=iv(d,N&&K);if(!q||!q.video)continue; if(q.G()&&!h.MJ&&q.video.qualityOrdinal>h.X4)continue;const t=g.fg(b.L().experiments,"html5_drm_byterate_soft_cap");if(t>0&&YBs(q)&&q.nz>t)continue;if(v){p.push(d);Hb(d,p,b);continue}q=HC(h,q,I);q===!0?(v=!0,p.push(d),Hb(d,p,b)):a[d]=q}}for(const d of B)for(const t of d){H=jrB(t);if(!H||!H.audio||!b.N("html5_onesie_51_audio")&&H.J())continue;H=HC(h,H,I);if(H===!0){l.push(t);Hb(t,l,b);break}else a[t]=H}if(!b.N("html5_enable_audio_quality_setting")){b=["141","774"];for(const d of b)l.includes(d)&&(g.G3(l, d),a[d]="blkhqa")}h.G&&R("orfmts",a);if(K)return I.G&&(I.G=!1,qn=dE=void 0),N?qn={video:p,audio:l}:dE={video:p,audio:l};dE={video:p,audio:l};I.G=!1;return dE}; g.bJH=function(b,R,h){const K=h.S,I=[],N=[];var p=h.N("html5_shorts_onesie_mismatched_fix");b=b.mY();var l=fx.concat(COH);p&&(l=fx.concat(M7w));h.N("html5_early_media_for_drm")&&(l=l.concat(rus),h.N("allow_vp9_1080p_mq_enc")&&l.push(Lhw));const a=[...wmK];h.N("html5_iamf_audio_onesie_fmt")&&a.push(["773"]);for(const v of l)for(const B of v){l=iv(B,b&&p);if(!l||!l.video)continue;const H=g.fg(h.experiments,"html5_drm_byterate_soft_cap");if(!(H>0&&YBs(l)&&l.nz>H)&&HC(R,l,K)===!0){I.push({videoCodec:oAw[rX[B]], maxWidth:l.video.width,maxHeight:l.video.height,maxFramerate:l.video.fps});break}}for(const v of a)for(const B of v)if((p=jrB(B))&&p.audio&&(h.N("html5_onesie_51_audio")||!p.J())&&HC(R,p,K)===!0){N.push({audioCodec:DLT[rX[B]],numChannels:p.audio.numChannels});break}return{videoFormatCapabilities:I,audioFormatCapabilities:N}}; K3x=function(b){const R={};var h=b.PY;const K=b.uv,I=b.g2,N=h.getVideoData();var p=wn(0);var l=h.getVisibilityState();K.N("html5_enable_audio_quality_setting")&&(R.M2=K.M2);p&&(R.JH=p,R.lastManualDirection=ZQw(),p=IzT()||0,p>0&&(p=(K.N("html5_use_date_now_for_local_storage")?Date.now():(0,g.c)())-p,K.N("html5_use_date_now_for_local_storage")?p>0&&(R.timeSinceLastManualFormatSelectionMs=p):R.timeSinceLastManualFormatSelectionMs=p));if(I.G6||K.N("html5_sabr_ugc_vod_web_embedded_client_default_bandwidth_on_iphone")&& zJ)p=K.N("html5_disable_bandwidth_cofactors_for_sabr_live")?!!b.Nb?.Yb:!1,R.L_=ZR(I,!p);var a=g.m6.medium,v=Math.floor(a*16/9);(p=N.mY())||(N.G&&N.X&&N.X.videoInfos.length!==0?(p=N.X.videoInfos[0],p=!!p.video&&p.video.width0?{authorizedFormats:b.authorizedFormats}:{authorizedFormats:l};b.sabrLicenseConstraint&&(R.cE.sabrLicenseConstraint=b.sabrLicenseConstraint);if(K.N("html5_onesie_media_capabilities")||gw(N))R.mN=3;K.N("html5_onesie_audio_only_playback")&&dw(N)&&(R.mN=1);b.Nb?.Ys&&b.T3&&(R.mN=R.mN===void 0?7:R.mN|4);l=N.KR?N.KR:g.tw(N);K.N("html5_onesie_media_capabilities")&&(R.mediaCapabilities=g.bJH(N,l,K));if(b.Nb?.NJ()){v=b.gA;B=b.A1; var H=b.Nb?.nz;p=[];a=[];const J=new Map;var q=N.BI.G;for(var d of q.values())if(d.Pr)a.push({audioCodec:DLT[d.U9],numChannels:d.numChannels,spatialCapabilityBitmask:RMT[d.U9]});else{q=oAw[d.U9];var t=d.maxBitrateBps||0,S=H?H*8:0;t={videoCodec:q,maxWidth:B?854:d.maxWidth||0,maxHeight:B?480:d.maxHeight||0,maxFramerate:d.maxFramerate||0,is10BitSupported:d.mz||!1,maxBitrateBps:S&&t?Math.min(S,t):S||t};if(d.U9==="1"||d.U9==="9")t.efficient=!0;q=`${q}_${d.mz}`;S=J.get(q)||[];S.push(t);J.set(q,S)}p=POw(p, J);d=v?[...v]:[];N.N("html5_ssff_denylist_opus_low")&&d.push(249,350);g.tw(N);R.mediaCapabilities={videoFormatCapabilities:p,audioFormatCapabilities:a,hdrModeBitmask:3,perPlaybackAttributes:d.length?{itagDenylist:d}:{}}}b.Nb?.G&&(R.GE=l.GE,R.X4=b.Nb?.X4);K.K5&&(R.qW=K.K5);R.Od=b.h2;R.MP=b.MP;R.uA=b.uA;R.hZ=b.hZ;b.f3&&(R.AL=(0,g.c)()-b.f3);b.B$&&(R.B$=b.B$);F2||(R.WN=!0);d=ub(I)*1E3;d>0&&(R.I1=d);b.Nb?.yh&&b.hB&&b.hB0?h:I.interruptions[0]||0;b.Nb?.PH&&(R.y9=b.y9);K.pR&&(R.audioTrackId=K.pR);N.U8()&&!R.audioTrackId&&(K.N("html5_fill_default_mosaic_audio_track_id")||(b=dDT(N),R.audioTrackId=b),N?.YZ("misstrkchg",{"default":R.audioTrackId}));if(b=navigator.connection?.type||"")R.detailedNetworkType=hMs[b]||hMs.other;!K.N("html5_enable_voice_boost")|| N.mY()||N.isAd()||(R.Cw=K.Te);return R}; yL=function(b,R,h,K,I,N,p){const l={};R&&(l.LA=R);if(!b)return l;l.playbackCookie=h?.playbackCookie;I&&(l.Ud=I);l.aL=[];l.Us=[];if(p?.size)for(const a of p.values())l.Us.push(a);if(b.sabrContextUpdates.size>0)for(const a of b.sabrContextUpdates.values())sNe(l,a,K);ve(b)&&N&&sNe(l,N,K);R=b.L().G;l.clientInfo={clientName:$I2[R.c.toUpperCase()]||0};R.cbrand&&(l.clientInfo.deviceMake=R.cbrand);R.cmodel&&(l.clientInfo.deviceModel=R.cmodel);R.cver&&(l.clientInfo.clientVersion=R.cver);R.cos&&(l.clientInfo.osName= R.cos);R.cosver&&(l.clientInfo.osVersion=R.cosver);R=b.L();R.N("html5_sabr_enable_server_xtag_selection")&&R.m_&&(l.clientInfo.hl=R.m_);b.Ho&&(l.Ho=b.Ho);return l}; sNe=function(b,R,h){const K=R.type||0;h?.has(K)?b.Us.push(R):b.aL.push(K)}; IF3=function(b){if(!(GL(b.info)&&b.info.r9()&&b.policy.s8&&b.Yy)||b.info.yV.X>=2||wn()>0||!C$3())return!1;var R=b.SX.get("aitags");if(!R)return!1;R=ii(R).split(",");const h=[];for(const K of b.Yy)g.iR(R,K)&&h.push(K);if(!h.length)return!1;b.SX.set("altitags",g.A1(h.join(",")));return!0}; NOB=function(b,R,h=!1){g.X(R);b.l5.lastError="player.exception";b.errorMessage=`${R.name}_${R.message}`;h?g.Mq(()=>{at(b.l5)}):at(b.l5)}; p4D=function(b){b.Iy&&(b.xhr.status=b.Iy,b.g4=b.Iy)}; lFH=function(b,R){b.timing.C=!0;b.xhr.o$()&&b.timing.nR();b.policy.jn&&b.CP?.stop();px(b.CT,R,!1)}; aFT=function(b,R,h){let K=b.h8?Math.max(R,h/b.h8):R;const I=b.g2.Y.X;I&&(K=R,b.h8&&(K=Math.max(R,h/b.h8*I)));sm(b.g2,R,h,K)}; v4T=function(b,R,h){switch(R){case 35:b.BK(h);break;case 44:b.qP(h);break;case 43:b.oI(h);break;case 53:b.Dn(h);break;case 56:b.DT();break;case 57:b.NA(h);break;case 42:b.gV(h);break;case 45:b.FG(h);break;case 59:b.ZT(h);break;case 51:b.pA(h);break;case 49:b.bA(h);break;case 50:b.HV(h);break;case 47:b.xt(h);break;case 58:b.Yh(h);break;case 61:b.z6.Rc.HR((0,g.c)());break;case 66:b.RR(h);break;case 46:b.ag(h);break;case 67:b.onSnackbarMessage(h);break;case 71:R=iD(h,zPx),b.z6.rG(R)}}; BOK=function(b){tH=b}; HJe=function(b,R,h){b.L0.get(R).onProgress=h}; jH=function(b,R){b.ud(R)&&(tH?b.L0.get(R).AE.clear():b.L0.get(R).HO=new ju,b.Y(R),b.V=!0)}; q6T=function(b){for(const [R,h]of b.L0){const K=R;h.A_||jH(b,K)}}; dIT=function(b,R){b=b.L0.get(R);if(!b)return 0;R=0;if(b.kZ.length>0){for(const h of b.kZ)R+=h.range?.length||0;return R}if(b.V4.length>0)for(const h of b.V4)R+=h.uN||0;return R+b.Y8}; AH=function(b,R){if(tH){let h=0;b=b.L0.get(R);if(!b?.AE)return 0;for(const K of b.AE.values())h+=K.data.totalLength;return h}return b.L0.get(R)?.HO.S()||0}; iz=function(b,R){b=b.L0.get(R);if(tH){if(!b?.A_)return!1;R=b.AE.size>0;return b.SI.length>0||R}return!!b?.A_&&!!b?.HO.S()}; fFs=function(b,R){const h=b.L0.get(R),K=dIT(b,R),I=!K&&!!h.bytesReceived;if(tH){if(b.oH?.AO){for(var N of h.AE.values())if(!N.wE)return!1;return I}}else if(N=b.E2(R),I&&b.X&&N!==void 0)return N;return(I||h.bytesReceived===K)&&h.RS+AH(b,R)===h.bytesReceived}; yfw=function(b,R,h){const K=b.oH?.X.get(R);if(!K)return[];if(h.fC)return K.D(0,h.clipId)?.kZ||[];if(K.X()){var I=h.startMs,N=h.durationMs,p=1E3;b.Nb?.G&&h.timeRange&&(I=h.timeRange.startTicks??-1,N=h.timeRange.YR??-1,p=h.timeRange.timescale??-1);if(h.PB<0||h.tq<0||N<0||I<0||h.uN<0||p<0)return jH(b,R),[];b=q8(h.PB,h.uN);R=h.aq||0;return[new ih(3,K,b,"makeSliceInfosMediaBytes",h.tq-1,I/p,N/p,R,b.length-R,void 0,h.oU,h.clipId)]}return h.tq<0?(jH(b,R),[]):b.oH?.AO?(N=K.Dd,p=N*K.info.nz,R=h.aq,b.Nb?.G&& b.J.v8()!=="ONESIE"&&h.timeRange&&!R&&(I=h.timeRange.startTicks/h.timeRange.timescale),[new ih(3,K,void 0,"makeSliceInfosMediaBytes",h.tq,I,N,R,p,!0,h.oU,h.clipId)]):[]}; jNH=function(b,R,h,K){h.kZ.push(...K);if(tH)h.Er.has(R)||h.Er.set(R,[]),h.Er.get(R).push(...K);else if(h.CT)for(const I of K)h.CT.kZ.push(I);else h.CT=new tK2(b.Nb,[...h.kZ]),b.Nb?.xI&&g.n(b,h.CT)}; Afq=function(b,R,h){b.oH=R;b.Nb=h;for(const [K,I]of b.L0){R=K;h=I;for(const N of h.s4){const p=yfw(b,R,N);jNH(b,N.eR,h,p)}}}; iJK=function(b){return b.Tr()&&!b.Yl}; zMB=function(b){b.policy.Rg&&b.EZ&&!b.mx?b.mx=!0:b.Rc.nR()}; UIe=function(b,R){let h=-1,K=-1,I=-1;if(b.S1?.items)for(const N of b.S1.items)R=l,a=b.oH.isManifestless,p?(b.G?.Yj.event==="predictStart"&&b.G.Drb.S&&(b.S=NaN,b.J=NaN);if(b.G&&b.G.Dr===R){if(K=b.G,!b.policy.S||!b.policy.Y)if(I&&K){var N=K.Yj,p=I.Pk(N);N.event==="predictStart"&&(b.C=R);b.YZ("sdai",{onqevt:N.event,sq:R,mt:h,gab:p,cst:N.startSecs,cueid:b.policy.Qz&&(p||N.event==="start")?N.identifier:void 0},!0);p?N.event!=="predictStart"?(N.event==="start"&&b.C===R-1&&b.YZ("sdai",{gabonstart:R}),K.s2?G_(b, 4,"cue"):(b.S=R,b.J=h,b.YZ("sdai",{joinad:b.Y,sg:b.S,st:b.J.toFixed(3)}),b.K=Date.now(),G_(b,2,b.Y===3?"staftpred":"join"),E4T(I,K.Yj))):(p=TO3(b),R+=Math.max(Math.ceil(-N.G/p),1),N=Math.floor(h-N.G/1E3),b.policy.Y?b.X=N:b.V=R,b.YZ("sdai",{onpred:h,estsq:R,estmt:N.toFixed(3)}),Wb(b.loader,N,N,R,p),b.K=Date.now(),G_(b,3,"predict"),E4T(I,K.Yj)):b.Y===1?b.xO?.o1(h)?(Wb(b.loader,h,h,R),G_(b,4,"sk2head")):G_(b,5,"nogab"):N.event==="predictStart"&&(b.policy.Y&&b.X>0?(h=Math.floor(h-N.G/1E3),b.X!==h&&b.YZ("sdai", {updateSt:h,old:b.X}),b.X=h):b.V>0&&(h=R+Math.max(Math.ceil(-N.G/TO3(b)),1),b.V!==h&&(b.YZ("sdai",{updateSt:h,old:b.V}),b.V=h)))}else b.YZ("sdai",{nulldec:1,sq:R,mt:h.toFixed(3),evt:K?.Yj?.event||"none"})}else b.Y===1&&G_(b,5,"noad")}; SH=function(b,R,h){return(h<0||h===b.S)&&!isNaN(b.J)?b.J:R}; gE=function(b,R,h){R.startSecs+=isNaN(b.D)?0:b.D;jDB(b.oH,R,h)}; S6x=function(b,R){if(b.G){var h=b.G.Yj.oY-(R.startTime+b.D-b.G.Yj.startSecs);h<=0||(h=new nC(b.G.Yj.startSecs-(isNaN(b.D)?0:b.D),h,b.G.Yj.context,b.G.Yj.identifier,"stop",b.G.Yj.G+R.duration*1E3),b.YZ("cuepointdiscontinuity",{segNum:R.Dr}),gE(b,h,R.Dr))}}; TO3=function(b){switch(b.policy.latencyClass){case "LOW":return 2E3;case "ULTRALOW":return 1E3;default:return 5E3}}; nx=function(b,R,h,K=!1){K?G_(b,1,"seek"):R>0&&Math.abs(R-h)>=5&&b.Y===4&&G_(b,5,"sk2t")}; ki3=function(b){if(!b)return"unknown";switch(b){case 5:return"predictStart";case 1:return"start";case 2:return"continue";case 3:return"stop";case 6:return"prefetch";default:return"unknown"}}; Em=function(b,R){return R?b.policy.c$&&R.tileContext?`${R.identifier};${R.tileContext}`:R.identifier:""}; Y6B=function(b,R){let h=-(R.Yj?.Wj||0);R.timeRange&&(h+=(R.timeRange.startTicks||0)/(R.timeRange.timescale||1));return new nC(h,R.Yj?.Nw||0,R.Yj?.AJ||"",R.Yj?.identifier||"",ki3(R.Yj?.event),(R.Yj?.Wj||0)*1E3,b.policy.c$?R.tileContext:void 0)}; $p=function(b,R){if(!(b+9>>4)){var h;tR(22,R);if(h=R[f[1]][f[70]]||null)h=eMK[0](h),R[f[24]](f[70],h);var K=[]}(b&90)==b&&(tR(25,R),K=R[f[27]]);if((b|48)==b)throw R;return K}; OJB=function(b){switch(b){case 1:return"timeout";case 2:return"ratecontrol";case 3:return"sverr";case 4:return"deleted";case 5:return"waiting";case 6:return"ready";case 7:return"ssdisabled";default:return"unknown"}}; QNK=function(b,R){let h="";const K=[];for(const [I,N]of b.G.entries()){const p=I,l=N;l?.startTimeSecs<=R&&R<=l?.startTimeSecs+l?.oY&&K.push(p);h+=`${p}:${l?.startTimeSecs.toFixed(3)}:${l?.oY.toFixed(3)};`}K.length===0&&b.YZ("clsdai",{no_cid:1,mt:R.toFixed(3),adConfigMap:h.substring(0,1024)});return K}; xIe=function(b,R,h=!1){h&&(b.J=!0);++b.S;h=6E4*2**b.S;h=(0,g.c)()+h;b.X.set(R.info.id,h)}; T_=function(b){for(const [R,h]of b.X.entries()){const K=R;h<(0,g.c)()&&b.X.delete(K)}return b.X}; JH=function(b,R){b.G!==R&&(b.G=R,b.Y=!0)}; mIT=function(b,R){let h;R&&(h=g.jc(b.V.Y,K=>K.id===R)); h||(h=g.jc(b.V.Y,K=>!!K.Nj?.isDefault),R&&b.YZ("iaf",{id:R, sid:h?.id}));return h}; kC=function(b){if(!b.Y||!b.policy.V&&!b.Y.info.Nj){var R=b.J.Y;b.Y&&(R=R.filter(K=>K.audio.G===b.Y.info.audio.G),R.length||(R=b.J.Y)); b.Y=b.oH.G[R[0].id];if(R.length>1&&!b.policy.Ab){if(!b.policy.mK){var h=g.jc(R,K=>K.audio.audioQuality!=="AUDIO_QUALITY_HIGH"); h&&(b.Y=b.oH.G[h.id])}h=!1;if(h=b.policy.m_?!0:b.G.isLocked()?b.G.G<240:PSB(b,b.Y))b.Y=b.oH.G[g.Ng(R).id]}}}; eH=function(b,R){b.G=R;var h=b.J.videoInfos;if(!b.G.isLocked()){const N=(0,g.c)();h=g.lR(h,function(p){if(p.nz>this.policy.nz)return!1;const l=this.oH.G[p.id];return T_(this.S).get(p.id)>N||l.yV.X>4||l.Zr>4?!1:this.MJ.has(+p.itag)?!1:!0},b); b.S.A1()&&(h=g.lR(h,p=>p.video.width<=854&&p.video.height<=480))}h.length||(h=b.J.videoInfos); let K=h;b.policy.oQ&&(K=ZJs(b,K,R));K=g.lR(K,R.V,R);if(b.G.isLocked()&&b.S.G){var I=g.jc(h,N=>N.id===b.S.G); I?K=[I]:JH(b.S,"")}b.policy.oQ||(K=ZJs(b,K,R));K.length||(K=[h[0]]);K.sort((N,p)=>YC(b,N)-YC(b,p)); for(R=1;RI.video.width?(g.Ut(K,R),R--):YC(b,h)*b.policy.K>YC(b,I)&&(g.Ut(K,R-1),R--);R=K[K.length-1];b.pR=!!b.X&&!!b.X.info&&b.X.info.U9!==R.U9;b.V=K;b.NJ.clear();h=!1;for(I=0;I=1080&&(h=!0);cfK(b.policy,R,b.oH.AO)}; uRK=function(b){var R=b.policy.C;const h=VK(b.nR)/R-YC(b,b.Y.info);R=g.A3(b.V,function(K){return YC(this,K)0&&!(YC(b,b.V[R])<=I);R--);for(h=h/b.policy.K-K;R=h);R++);b.nextVideo=b.oH.G[b.V[R].id];b.K=R}}; L3T=function(b,R){if(rfT(b,R))return null;if(R.reason==="m"&&R.isLocked())return eH(b,R),b.K=b.V.length-1,kC(b),QL(b),b.C=b.C||b.X!==b.nextVideo,b.X=b.nextVideo,new Om(b.Y,b.X,R.reason);R.reason==="r"&&(b.U=-1);eH(b,R);QL(b);if(R.reason==="r"&&b.nextVideo===b.X)return new Om(b.Y,b.nextVideo,R.reason);b.X&&b.nextVideo&&YC(b,b.X.info)1.5&&b.loader.YZ("overshoot",{sq:R.Dr,br:h,max:K}))}}; xC=function(b,R,h=!1){xIe(b.S,R,h);b.U=-1;eH(b,b.G)}; o4q=function(b,R){return new Om(b.D,b.X,R||b.G.reason)}; YC=function(b,R){if(!b.gp[R.id]){var h=b.oH.G[R.id].index.V_(b.T6,15);h=R.fM&&b.X&&b.X.index.isLoaded()?h||R.fM:h||R.nz;b.gp[R.id]=h}h=b.gp[R.id];b.NJ.has(R.itag)&&(h*=1.5);return h*=Math.max(1,b.xZ.JU()||0)}; DIx=function(b,R){const h={};for(const K of R){if(!K||!K.video)continue;R=K.video.qualityOrdinal;const I=h[R],N=I&&I.G()&&I.video.qualityOrdinal>b.policy.X4,p=R<=b.policy.X4?K.G():K.V();if(!I||N||p)h[R]=K}return h}; ZJs=function(b,R,h){const K=h.reason==="m"||h.reason==="s";b.policy.uG&&mf&&g.x9&&(!K||h.G<1080)&&(R=R.filter(I=>I.video&&(!I.S||I.S.powerEfficient))); if(R.length>0)if(NS()){const I=DIx(b,R);R=R.filter(N=>!!N&&!!N.video&&N.U9===I[N.video.qualityOrdinal].U9)}else{const I=R[0]?.video?.qualityOrdinal; if(I){h=R.filter(p=>!!p&&!!p.video&&p.video.qualityOrdinal===I); const N=DIx(b,h)[I].U9;R=R.filter(p=>!!p&&!!p.video&&p.U9===N)}}return R}; VKK=function(b){const R=g.jc(b.J.Y,K=>K.audio.G),h=g.jc(b.J.Y,K=>!K.audio.G); return R?b.policy.GR?R:h:null}; PSB=function(b,R){let h=0;for(;h+1K}; CSH=function(b,R,h){if(R.info.U9==="f"||b.SY.includes(vt(R,b.oH.AO)))return R;for(let K=0;Kh.info.itag===R); if(!b)throw Error("Itag "+R+" from server not known.");return b}; Rpx=function(b){const R=[];if(b.G.reason==="m"||b.G.reason==="s")return R;if(BCx(b.oH)){for(let h=Math.max(0,b.K-2);hN?I=0:K[p]>b.buffered[p]&&(p===N-1?I=2:p===N-2&&K[p+1]>b.buffered[p+1]&&(I=3))}b.G.add(R<<3|(h&&4)|I);R=Math.ceil(b.track.CZ()*1E3);b.G.add(R-b.S);b.S=R;if(I===1)for(b.G.add(N),R=0,p=0;p= 2&&b.G.add(K[N-1]-b.buffered[N-1]);h&&b.G.add(h);b.buffered=K}; $6P=function(b){if(b.policy.wB&&b.policy.Ir)for(const R of b.policy.wB){const h=g.zE(R),K=+h.clen,I=+h.csz;if(K>0&&I>0&&b.policy.V===h.docid&&b.G.info.id===h.fmtid&&b.G.info.lastModified===+h.lmt)return{clen:K,csz:I,ck:h.ck,civ:h.civ}}}; cb=function(b){return{downloadedEndTime:Math.round(b.KT?b.KT.S:0),maxKnownEndTime:Math.round(b.G.index.Aw()),averageByteRate:Math.round(b.G.info.fM)}}; VL=function(b,R=!1){!R||b.indexRange&&b.initRange&&b.KT||uz(b,new XT("Woffle: Expect isFinal to always have indexRange and initRange and lastSlice"));R={lmt:b.G.info.lastModified,docid:b.policy.V,fmtid:b.G.info.id,type:b.G.info.mimeType.split(";")[0],csz:b.chunkSize,clen:b.V*b.chunkSize+b.Y};b.crypto&&(R.ck=b.D,R.civ=b.J);R="local://localhost/videoplayback?"+j8(R);R={itag:+b.G.info.itag,mimeType:b.G.info.mimeType,bitrate:b.G.info.nz*8,lastModified:String(b.G.info.lastModified),initRange:b.initRange?.G(), indexRange:b.indexRange?.G(),url:R};var h=b.G.info.Y;h&&(R.xtags=h);if(h=b.G.info.video)if(R.quality=h.quality,R.qualityLabel=h.qualityLabel,R.width=h.width,R.height=h.height,h=h.fps)R.fps=h;if(b=b.G.info.audio){if(h=b.sampleRate)R.audioSampleRate=String(h);if(b=b.numChannels)R.audioChannels=b}return R}; Cx=function(b,R,h=!1){R.then(K=>{b.G6.delete(R);(h||K===4)&&b.K.resolve(K)},K=>{b.K.reject(K)})}; Mn=function(b){return!!b.KT&&b.KT.J()}; uz=function(b,R){g.cG(b.policy.V)!==4&&(g.uv(b.policy.V,4),g.kJ(R),b.K.reject(new XT(R.message)))}; IHD=function(b,R){let h=0;const K=lD(R.Y);if(b.V=K.length)return;if(h<0)throw Error("Missing data");b.V=b.X;b.Y=0}for(;h{const I=Ct(K,b.KT.hX.info,VL(b,!0),h,b.policy.xZ,b.V,R,b.crypto);Cx(b,I,!0)})}else uz(b,new XT("Woffle: Expect always re-mark currentChunkOffset at EOS")); else uz(b,new XT("Woffle: Expect at EOS to always have lastSlice or indexRange"))}; lHP=function(b,R){if(!Mn(b)&&!b.HY()){if(!(b.nR||(b.nR=!0,b.X>0))){var h=cb(b);h=Ct(b.policy.V,b.G.info,VL(b),h,b.policy.xZ);Cx(b,h)}if(R.info.type===1){if(b.KT){uz(b,Error("Woffle: Expect INIT slices to always start us off"));return}b.initRange=q8(0,R.Y.totalLength)}else if(R.info.type===2)b.KT&&b.KT.type===1||uz(b,Error("Woffle: Index before init")),b.indexRange=q8(b.initRange.end+1,R.Y.totalLength);else if(R.info.type===3){if(!b.KT){uz(b,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(b.KT.type===3&&!fO(b.KT,R.info)&&(b.U=[],R.info.Dr!==ji(b.KT)||R.info.G!==0))return;if(R.info.X){for(const K of b.U)IHD(b,K);b.U=[]}else{b.U.push(R);b.KT=R.info;return}}else{uz(b,Error("Woffle: Unexpected slice type"));return}b.KT=R.info;IHD(b,R);pqw(b)}}; NTw=function(b){return{downloadedEndTime:-1,maxKnownEndTime:Math.round(b.G.index.Aw()),averageByteRate:Math.round(b.G.info.fM)}}; aHx=function(b){b=g.mX(b,1886614376);for(const R of b);return g.an(b,R=>UxH(R))}; vHT=function(b){var R=vp(b,(K,I)=>K+I.length,0); R=new Uint8Array(R);let h=0;for(const K of b)R.set(K,h),h+=K.length;return R}; Hge=function(b){a:{var R=b.initData;try{var h=0;const I=new DataView(R.buffer);for(;h0){const a=I.getUint32(h+28);p+=a*16+4}const l=I.getUint32(h+p-4);try{const a=BTw(R.subarray(h+p,h+p+l));if(a!==null){var K=a;break a}}catch(a){}h+=N}K=null;break a}catch(I){K=null;break a}K=void 0}if(K!=null){R=Q4(Eu(K,7,void 0,dH));R==null||b.Qn||(b.cryptoPeriodIndex=R);R=Q4(Eu(K,10, void 0,dH));R!=null&&R>0&&!b.Qn&&(b.G=R);for(const I of x6(K,2,cN,void 0===s4?2:4))K=b.X,R=K.push,h=Rh(I),h=g.Zc(h,4),R.call(K,h)}}; qFs=function(b){return isNaN(b.cryptoPeriodIndex)?g.Zc(b.initData):`${b.cryptoPeriodIndex}`}; rE=function(b){if(b.offset>=b.Y.totalLength)throw Error();return vJ(b.Y,b.offset++)}; d6K=function(b,R=!1){var h=rE(b);if(h===1){R=-1;for(h=0;h<7;h++){var K=rE(b);R===-1&&K!==255&&(R=0);R>-1&&(R=R*256+K)}return R}K=128;for(let I=0;I<6&&K>h;I++)h=h*256+rE(b),K*=128;return R?h:h-K}; fHT=function(b){try{const R=d6K(b,!0),h=d6K(b,!1);return{id:R,size:h}}catch(R){return{id:-1,size:-1}}}; tt3=function(b){var R=new yMq(b),h=-1,K=0;let I=0;for(;!K||!I;){const {id:N,size:p}=fHT(R);if(N<0)return;if(N===176){if(p!==2)return;K=R.G()}else if(N===186){if(p!==2)return;I=R.G()}N===374648427?h=R.G()+p:N!==408125543&&N!==174&&N!==224&&R.skip(p)}R=ae(b,0,h);h=new DataView(R.buffer);h.setUint16(K,3840);h.setUint16(I,2160);K=new ju([R]);Ie(K,b);return K}; Lx=function(b){b.J?.dispose();b.J=null}; j0T=function(b){return b.Y.length?b.Y[0]:null}; AMT=function(b,R){return b.Y.some(h=>h.info.Dr===R)}; wE=function(b,R){R={rst4disc:R,cd:b.D.toFixed(3),sq:b.MJ?b.MJ.Dr:-1};b.X=NaN;b.D=0;b.NJ=-1;b.MJ=null;b.Zr=NaN;b.JX=NaN;b.vY=null;b.loader.YZ("mdstm",R)}; FT=function(b){b.G=null;b.C=-1;b.K=0;b.S=null;b.T6=NaN;b.U=0;b.G6=null}; ot=function(b,R){if(R.info.X){b.pR=R.info;if(b.S){var h=b.S,K=igw(b,!1);h=zpD(h);b.loader.j0(b.hX,K,h);b.G6||b.policy.K5||U6K(b);b.G6=null}FT(b)}b.J&&lHP(b.J,R);if(K=b.Jl())if(K=K.J(R,b.policy.EH,b.policy.K0)){b.Y.pop();b.Y.push(K);return}b.Y.push(R)}; nHT=function(b,R,h,K=0){if(b.V){var I=b.V.G+b.V.Y;if(h.info.G>0)if(h.info.Dr===b.V.Dr&&h.info.G=0&&b.V.Dr>=0&&!fO(b.V,h.info))throw new g.A$("improper_continuation",b.V.vR(),h.info.vR());s1K(b.V,h.info)||wE(b,"d")}else if(h.info.G>0)throw new g.A$("continuation_of_null",h.info.vR());b.V=h.info;b.hX=h.info.hX;if(h.info.G===0){if(b.G)if(!b.loader.isOffline()||b.policy.jJ)b.loader.YZ("slice_not_fully_processed",{buffered:b.G.info.vR(), push:h.info.vR()});else throw new g.A$("slice_not_fully_processed",b.G.info.vR(),h.info.vR());FT(b);b.gp=K}else{if(b.gp&&K&&b.gp!==K)throw b=new g.A$("lmt_mismatch",h.info.Dr,b.gp,K),b.level="WARNING",b;!h.info.hX.X()&&b.S&&(K=h.info,I=b.S.BM,K.D="updateWithEmsg",K.Dr=I)}if(b.G){K=b.G.J(h);if(!K)throw new g.A$("failed_to_merge",b.G.info.vR(),h.info.vR());b.G=K}else b.G=h;a:{h=g.wB(b.G.info.hX.info);if(b.G.info.type!==3){if(!b.G.info.X)break a;b.G.info.type===6?GGT(b,R,b.G):gHw(b,b.G);b.G=null}for(;b.G;){K= b.G.Y.totalLength;if(b.C<=0&&b.K===0){var N=b.G.Y;let v=I=-1;if(h){for(var p=0;p+80))break;if(q!==408125543)if(q===524531317)p=!0,d>=0&&(v=N.G()+d,l=!0);else{if(p&&(q===160||q===163)&&(I<0&&(I=a),l))break;q===163&&(I=Math.max(0,I),v=N.G()+d);if(q===160){I<0&&(v=I=N.G()+d);break}N.skip(d)}}I<0&&(v=-1)}const {mT:B, NW:H}={mT:I,NW:v};if(B<0)break;b.C=B;b.K=H-B}if(b.C>K)break;b.C?(K=WSK(b,b.C),K.S&&SFx(b,K),GGT(b,R,K),ot(b,K),b.C=0):b.K&&(K=WSK(b,b.K<0?Infinity:b.K),b.K-=K.Y.totalLength,ot(b,K))}}b.G&&b.G.info.X&&(ot(b,b.G),b.G=null)}; SFx=function(b,R){var h=g.ei(R);if(rB(R.info.hX.info)&&R.info.hX.info.video.primaries==="bt2020"){var K=new cC(h);u9(K,[408125543,374648427,174,224,21936,21937])&&(K=K.start+K.pos,h.getUint8(K)===129&&h.getUint8(K+1)===1&&h.setUint8(K+1,9))}K=R.info.hX.info;K.V()&&!rB(K)&&(K=g.ei(R),(new cC(K)).fC(),MA([408125543,374648427,174,224],21936,K));R.info.hX.info.fT()&&(K=R.info.hX,K.info&&K.info.video&&K.info.video.projectionType==="MESH"&&!K.U&&(g.wB(K.info)?K.U=knK(h):K.info.Qn()&&(K.U=c2x(h))));R.info.hX.info.Qn()&& R.info.fT()&&(h=g.ei(R),(new cC(h)).fC(),MA([408125543,374648427,174,224],30320,h)&&MA([408125543,374648427,174,224],21432,h));if(b.policy.Jv&&R.info.hX.info.Qn()){K=g.ei(R);var I=new cC(K);if(u9(I,[408125543,374648427,174,29637])){h=CC(I,!0);I=I.start+I.pos;for(var N=0;NK.info.Vh+K.Y.totalLength,0); b.G&&(R+=b.G.Y.totalLength);return R}; WSK=function(b,R){var h=b.G;R=Math.min(R,h.Y.totalLength);if(R===h.Y.totalLength)return b.G=null,h;h=n8B(h,R);b.G=h[1];return h[0]}; GGT=function(b,R,h){if(h.info.hX.X()){if(b.xZ&&kGP(h)){R=g.ei(h);var K=g.e9(R,0,1953658222);if(K){K.skip(1);var I=AP(K)<<16|i9(K),N=I&1,p=I&4;if(I&256){R=I&512;var l=I&1024;I&=2048;var a=Ux(K);a<2||(N&&K.skip(4),p&&K.skip(4),N=Ux(K),K.skip((a-1)*(4+(R?4:0)+(l?4:0)+(I?4:0))-4),K.data.setUint32(K.offset+K.G,N))}}}if(R=b.nR&&!!b.nR.hX.nR)if(R=h.info.fT())R=kre(h),l=b.nR,b8?(K=1/R,R=R6(b,R)>=R6(l)+K):R=b.getDuration()>=l.getDuration(),R=!R;R&&kGP(h)&&(R=b.nR,b8?(K=kre(h),l=1/K,K=R6(b,K),R=R6(R)+l-K): R=R.getDuration()-b.getDuration(),R=1+R/h.info.duration,EJ2(g.ei(h),R))}else{K=!1;b.S||(eHP(h),h.G&&(b.S=h.G,K=!0,N=h.info,p=h.G.BM,N.D="updateWithEmsg",N.Dr=p,N=h.G,N.J&&(p=b.hX.index,p.S=!N.J,p.J="emsg"),N=h.info.hX.info,p=g.ei(h),g.wB(N)?Z8(p,1701671783):N.Qn()&&MA([408125543],307544935,p)));a:if((N=Pt(h,b.policy.Zl))&&Yn2(h))p=YFx(b,h),b.D+=p,N-=p,b.U+=N,b.X=b.policy.qf?b.X+N:NaN;else{if(b.policy.TZ){if(p=a=b.loader.IR(g.xp(h),1),b.X>=0&&h.info.type!==6){if(b.policy.qf&&isNaN(b.JX)){g.kJ(new g.A$("Missing duration while processing previous chunk", h.info.vR()));b.loader.isOffline()&&!b.policy.jJ||epe(b,h,p);wE(b,"m");break a}I=a-b.X;var v=I-b.D;const B=h.info.Dr,H=b.MJ?b.MJ.Dr:-1,q=b.Zr,d=b.JX,t=b.policy.SV&&I>b.policy.SV,S=Math.abs(v)>10,J=Math.abs(b.X-p)<1E-7;if(Math.abs(v)>1E-4){b.SY+=1;const e=b.S?.X();v={audio:`${+b.Pr()}`,sq:B.toFixed(),sliceStart:a,lastSq:H.toFixed(),lastSliceStart:q,lastSliceDuration:d,totalDrift:(I*1E3).toFixed(),segDrift:(v*1E3).toFixed(),skipRewrite:`${+(t||S)}`};e?.length&&(v.adCpn=e[0]);b.loader.handleError("qoe.avsync", v);b.NJ=B}t||S||J||(p=b.X);a=YFx(b,h,a);N-=a;b.D=I+a}}else p=isNaN(b.X)?h.info.startTime:b.X;epe(b,h,p)&&(b.U+=N,b.X=p+N,b.policy.lD&&b.SY>=b.policy.lD&&(b.SY=0,b.loader.X1({resetForRewrites:"count"})))}b.MJ=h.info;b.JX=me(h);h.X>=0&&(b.Zr=h.X);if(K&&b.S){K=igw(b,!0);zL(h.info,K);b.G&&zL(b.G.info,K);for(l of R)b.policy.J&&l.Dr!==b.S?.BM||zL(l,K);(h.info.X||b.G&&b.G.info.X)&&h.info.type!==6||(b.G6=K,b.policy.Y?(R=zpD(b.S),b.loader.j0(b.hX,K,R)):(R=b.loader,R.oH.isManifestless&&OgB(R,K,null,!!b.hX.info.video)), b.policy.K5||U6K(b))}}TTK(b,h);b.timestampOffset&&TmK(h,b.timestampOffset)}; igw=function(b,R){let h;const K=b.S;if(h=gJx(K))h.startSecs+=b.T6;const I=b.T6;let N=0;b.hX instanceof Nz&&(N=b.hX.Dd);return new JU(K.BM,I,R?N:b.U,K.ingestionTime,`sq/${K.BM}`,void 0,void 0,R,h)}; zpD=function(b){if(b.s2()){var R=b.data["Stitched-Video-Id"]?b.data["Stitched-Video-Id"].split(",").slice(0,-1):[],h=b.X();var K=[];if(b.data["Stitched-Video-Duration-Us"])for(var I of b.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1))K.push((Number(I)||0)/1E6);I=[];if(b.data["Stitched-Video-Start-Frame-Index"])for(var N of b.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1))I.push(Number(N)||0);N=[];if(b.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(const p of b.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0, -1))N.push((Number(p)||0)/1E6);b=new Q0q(R,h,K,N,g.SiP(b),g.nJD(b))}else b=null;return b}; U6K=function(b){const R=b.S,h=gJx(R);h&&(h.startSecs+=b.T6,b.loader.Ap(b.hX,h,R.BM,R.s2()))}; YFx=function(b,R,h){var K=0;if(R.info.hX.info.Qn()&&!Yn2(R))return 0;if(b.nR&&!b.Pr()){let v=0;h&&g.wB(R.info.hX.info)?v=h-b.X:R.info.hX.info.Qn()&&(v=b.D);var I=R.info.Dr;h=Pt(R,b.policy.Zl);var N=b.nR;const {NB:B,xv:H}={NB:N.NJ,xv:N.D};N=Math.abs(H-v)>.02;if((I===B||I>B&&I>b.NJ)&&N){K=Math.max(.95,Math.min(1.05,(h-(H-v))/h));if(g.wB(R.info.hX.info))EJ2(g.ei(R),K);else if(R.info.hX.info.Qn()&&(N=v-H,!g.wB(R.info.hX.info)&&(R.info.hX.info.Qn(),K=new cC(g.ei(R)),I=R.S?K:new cC(new DataView(R.info.hX.Y.buffer)), Pt(R,!0)))){var p=N*1E3,l=bh(I);I=K.pos;K.pos=0;if(K.G.getUint8(K.pos)===160||Rm(K))if(Vc(K,160))if(CC(K,!0),Vc(K,155)){N=K.pos;var a=CC(K,!0);K.pos=N;p=p*1E9/l;l=LC(K);p=l+Math.max(-l*.7,Math.min(l,p));p=Math.sign(p)*Math.floor(Math.abs(p));if(!(Math.ceil(Math.log(p)/Math.log(2)/8)>a)){K.pos=N+1;for(N=a-1;N>=0;N--)K.G.setUint8(K.pos+N,p&255),p>>>=8;K.pos=I}}else K.pos=I;else K.pos=I;else K.pos=I}K=Pt(R,b.policy.Zl);K=h-K}K&&R.info.hX.info.Qn()&&b.loader.YZ("webmDurationAdjustment",{durationAdjustment:K, videoDrift:v+K,audioDrift:H})}return K}; epe=function(b,R,h){if(!E8T(R,h))return R=AU(R.info),R.smst="1",b.loader.handleError("fmt.unparseable",R||{},1),!1;isNaN(b.T6)&&(b.T6=h);return!0}; kGP=function(b){return b.info.hX.X()&&b.info.Dr===b.info.hX.index.jK()}; R6=function(b,R=0){R=R?Math.round(b.timestampOffset*R)/R:b.timestampOffset;b.hX.nR&&R&&(R+=b.hX.nR.G);return R+b.getDuration()}; x63=function(b,R){R<0||(b.Y.forEach(h=>{TmK(h,R)}),b.timestampOffset=R)}; sg=function(b,R=!1){var h=b.loader.getCurrentTime(),K=b.X.Jl();let I=K?.info.S||0;if(K?.info.hX.T6()&&!K.info.X)if(b.policy.s7)I=K.info.V;else if(b.policy.U$){var N=K.info;I=N.range?N.S:Math.min(N.startTime+Math.min(N.duration*N.G/N.hX.info.nz,N.duration)+(N.range?N.K:Math.min(N.duration,N.duration*N.Y/N.hX.info.nz)),N.startTime+N.duration)}if(!b.il){if((b.policy.G||b.policy.KY)&&R&&!isNaN(h)){if(K)return I-h;if(b.policy.KY&&b.hX.info.U9==="f")return Infinity}return 0}if((N=hO(b))&&Ky(N))return N.S; var p=b.il.RY(!0);if(R&&K)return N=0,b.policy.G&&(N=$S(p,I+.02)),N+I-h;R=$S(p,h);b.policy.tS&&N&&(K=bC(p,h),p=bC(p,N.V-.02),K===p&&(h=N.S-h,b.policy.X&&h>R+.02&&b.YZ("abh",{bh:R,bhtls:h}),R=Math.max(R,h)));return R}; dLD=function(b){b.J=!0;b.V=!0;b.S=-1;oL(b,Infinity)}; Lz=function(b){for(const R of b.Y)$h(b,R);b.Y=[];b.G=null}; wL=function(b,R,h=!1){if(b.il){const K=b.il.RY(),I=hk(K,R);let N=NaN;const p=hO(b);p&&(N=hk(K,p.hX.index.getStartTime(p.Dr)));if(I===N&&b.G&&b.G.Y&&m63(I6(b),0))return R}b=Nd(b,R,h);return b>=0?b:NaN}; oL=function(b,R,h){b.hX.G();var K=Nd(b,R);if(K>=0)return K;b.D?.nR(R,h);K=Math;var I=K.min,N=b.X;if(N.J)if(N=N.J,N.KT&&N.KT.type===3)N=N.KT.startTime;else if(N.X>0){var p=N.G.index;p=g.Yz(p.offsets.subarray(0,p.count),N.X*N.chunkSize);N=N.G.index.getStartTime(p>=0?p:Math.max(0,-p-2))}else N=0;else N=Infinity;R=I.call(K,R,N);b.G=b.policy.nR?null:b.hX.J(R).kZ[0];py(b)&&(b.policy.Hs&&h?.seekSource===60||b.il&&b.il.abort(),b.policy.W7&&b.D?.K());b.gp=0;return b.G?b.G.startTime:R}; DR=function(b){return j0T(b.X)}; Ppx=function(b,R){return!!b.D?.C(R)||AMT(b.X,R)}; l8=function(b,R,h=!1){R&&b8&&x63(b.X,R.JF());h||b.D?.J();b.il=R;b.D?.T6(b.il)}; hO=function(b){return b.policy.dh?b.D?.gp()||null:b.il&&b.il.U5()}; Zg2=function(b){const R={};for(let h=0;h4&&b.nR.shift()}; cMx=function(b,R){if(R.yS()){const h=R.Nm();for(const K of h)b.policy.X&&R instanceof My&&b.YZ("omblss",{s:K.info.vR()}),vA(b,R.info.kZ,K,R.B8())}}; vA=function(b,R,h,K=0){isNaN(b.G6)||(b.YZ("aswm",{sq:R[0].Dr,id:R[0].hX.info.itag,xtag:R[0].hX.info.Y,ep:Date.now()-b.G6}),b.G6=NaN);switch(h.info.type){case 1:case 2:u4T(b,h);break;case 4:var I=h.info.hX;const N=I.pR(h);b.G?.U()&&pYe(h.info,b.G)&&(b.G=I.gp(b.G).pop());for(const p of N)vA(b,R,p,K);break;case 3:h.info.hX.info.video?(I=b.timing,I.MJ||(I.MJ=(0,g.c)(),g.Th("fvb_r",I.MJ,I.G))):(I=b.timing,I.J||(I.J=(0,g.c)(),g.Th("fab_r",I.J,I.G)));nHT(b.X,R,h,K);b.policy.G&&XqB(b);break;case 6:nHT(b.X, R,h,K),b.G=h.info}}; u4T=function(b,R){if(R.info.type===1)if(R.info.hX.info.video){var h=b.timing;h.SY||(h.SY=(0,g.c)(),g.Th("vis_r",h.SY,h.G))}else h=b.timing,h.K||(h.K=(0,g.c)(),g.Th("ais_r",h.K,h.G));gHw(b.X,R);b=b.loader;b.videoTrack.hX.G()&&b.audioTrack.hX.G()&&b.policy.G&&!b.oH.AO&&(R=b.audioTrack.getDuration(),h=b.videoTrack.getDuration(),Math.abs(R-h)>1&&b.YZ("trBug",{af:`${g.o5(b.audioTrack.hX.info,!1)}`,vf:`${g.o5(b.videoTrack.hX.info,!1)}`,a:`${R}`,v:`${h}`}))}; XqB=function(b){b.Y.length?b.G=g.Ng(g.Ng(b.Y).info.kZ):b.X.Y.length?b.G=b.X.Jl().info:b.G=hO(b)}; BA=function(b,R){const h={Ic:[],vM:[]};return b.D?.G6(R)??h}; Nd=function(b,R,h=!1){if(!b.G||!b.G.Y)return NaN;b=I6(b);R=Vts(b,R+.02,h);return R<0?NaN:m63(b,h?R:0)?b[R].startTime:NaN}; py=function(b){var R;!(R=b.hX.info.U9==="f")&&(R=b.policy.V)&&(R=b.X,R=!!R.J&&Mn(R.J));if(R)return!0;R=hO(b);if(!R)return!1;const h=Ky(R)&&R.X;return b.isManifestless&&b.T6>0?h||R.Dr>=b.T6:h}; HA=function(b){let R=0;for(const h of b.Y)R+=aOx(h.info);return R+=JMB(b.X)}; Ky=function(b){return b?b.J():!1}; Cp2=function(b){const R=hO(b);return R?R.S-b.loader.getCurrentTime():0}; qd=function(b,R,h,K){if(!b.hX.index.mQ(R,!0))return!1;try{Lz(b);var I=b.X;let N=null;for(let p=I.Y.length-1;p>=0;p--){const l=I.Y[p];l.info.Dr>=R&&(I.Y.pop(),I.X-=Pt(l,I.policy.Zl),N=l.info)}N&&(I.V=I.Y.length>0?I.Y[I.Y.length-1].info:I.vY,I.Y.length!==0||I.V||wE(I,"r"));I.loader.YZ("mdstm",{rollbk:1,itag:N?N.hX.info.itag:"",popped:N?N.Dr:-1,sq:R,lastslc:I.V?I.V.Dr:-1,lastfraget:I.X.toFixed(3)});if(b.policy.G)return b.G=null,!0;K>h?oL(b,K):b.G=b.hX.S(R-1,!1).kZ[0]}catch(N){return R=K4(N),R.details.reason= "rollbkerr",b.loader.handleError(R.errorCode,R.details,R.severity),!1}return!0}; $h=function(b,R,h=!1){Mtx(b,R,h);R.dispose()}; dl=function(b){const R=b.X.Jl();return R?R.info:hO(b)}; fy=function(b,R){let h;for(h=0;hlO2(I,K))?(b.G=K,b.policy.X&&b.YZ("cer",{lsr:"lsp", lsp:K.vR()})):(tU(R.info.kZ[0])?(b.G=R.CT&&R.CT.X?IO3(R.CT.X):$U2(R.info.kZ[0]),b.policy.X&&b.YZ("cer",{lsr:b.G.vR(),lsp:K?.vR()})):(b.G=null,b.policy.X&&b.YZ("cer",{lsr:"null",lsp:K?.vR()})),b.loader.isOffline()&&!b.policy.jJ||$h(b,R,!0))}}; yY=function(b){return py(b)||Ky(b.X.Jl()?.info)}; I6=function(b){let R=[];const h=hO(b);h&&R.push(h);R=g.Wp(R,b.X.jR());for(const K of b.Y)for(const I of K.info.kZ)K.KJ&&(R=g.lR(R,N=>!pYe(N,I))),(tU(I)||I.U())&&R.push(I); b.G&&!hHq(b.G,g.Ng(R),b.G.hX.X())&&R.push(b.G);return R}; m63=function(b,R){if(!b.length)return!1;for(R+=1;R=R)return I}return K}; tO=function(b){return!(!b.G||b.G.hX===b.hX)}; rMx=function(b,R,h){return b.policy.G?sg(b,!0)R&&b.SR.bc)}; oHe=function(b,R){const h=DR(b);return h&&h.info.type!==6?!R.G6(b,h.info.Dr):!1}; D6T=function(b,R){for(const h of b.U)if(h.BM===R)return h.TV?2:1;return 0}; R0s=function({hasSubfragmentedFmp4:b=!1,gg:R=!1}={}){const h=new bGK;h.pj=b||R;return h}; AO=function(b){return b.G&&b.U8&&b.playbackStartPolicy}; cfK=function(b,R,h=!1){R.video.qualityOrdinal>1080&&!b.pM&&(b.vY=36700160,b.wp=5242880,b.JX=Math.max(4194304,b.JX),b.pM=!0);R.video.qualityOrdinal>2160&&!b.cQ&&(b.vY=104857600,b.nz=13107200,b.cQ=!0);g.fg(b.uv.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?R.isEncrypted()&&g.y5()&&g.dj("samsung")&&(g.dj("kant")||g.dj("muse"))&&(b.nz=g.fg(b.uv.experiments,"html5_samsung_kant_limit_max_bitrate")):R.isEncrypted()&&g.y5()&&g.dj("kant")&&(b.nz=1310720);b.jU!==0&&R.isEncrypted()&&(b.nz=b.jU);b.dK!== 0&&R.isEncrypted()&&h&&(b.nz=b.dK);R.nz&&(b.Lg=Math.max(b.ow,Math.min(b.JX,5*R.nz)))}; i8=function(b,R,h=0){return g.fg(b.uv.experiments,R)||h}; zb=function(b,R,h,K){b.U8&&(b.playbackStartPolicy=R,b.Pc=h,b.QW=K)}; gAs=function(b,R){if(R<0)return!0;const h=b.jK();return R0)return 2;if(R<0)return 1;h=b.jK();return R(0,g.c)()?0:1}; Gb=function(b,R,h){if(b.policy.vO)return!1;var K=b.G;var I=R.G?.nR()||-1;K.Y===3&&I+1>=K.V?(K.YZ("sdai",{haltrq:I+1,est:K.V}),K=!1):K=K.Y!==2;if(!K||!(R.G?R.G.hX.yV:R.hX.yV).D(b.policy,b.X,b.loader.a$)||b.loader.isSuspended&&(!Ug(b.schedule)||b.loader.vX))return!1;if(b.policy.V&&VP>=5)return b.loader.uc.qa(),!1;if(b.oH.isManifestless){if(R.Y.length>0&&R.G&&R.G.Dr===-1||R.Y.length>=b.policy.VP||!b.policy.CF&&R.Y.length>0&&!b.policy.D.pj)return!1;if(R.J)return!b.oH.isLive||!isNaN(b.Wr)}if(FSB(R))return!1; if(!R.G){if(!R.hX.G())return!1;oL(R,b.loader.getCurrentTime())}if(DR(R)&&(R.Jl()!==DR(R)||b.loader.isSuspended))return!1;I=(K=b.policy.mX)&&!R.Y.length&&sg(R,!0)=b.policy.BQ)return!1;K=R.G;if(!K)return!0;K.U()&&K.hX.G()&&(R.G=g.Ng(K.hX.gp(K)),K=R.G);if(!K.J()&&!K.hX.V(K))return!1;N=b.oH.VB||b.oH.K;if(b.oH.isManifestless&&N){N=R.hX.index.jK();var p=h.hX.index.jK(); N=Math.min(N,p);if(R.hX.index.GS()>0&&N>0&&K.Dr>=N)return R.T6=N,h.T6=N,!1}if(K.hX.info.audio&&K.U()||K.J())return!1;N=!R.V&&!h.V;if(I=!I)I=K.S,I=!!(h.G&&!Ky(h.G)&&h.G.Ssex(b,R)?(sex(b,R),!1):(b=R.il)&&b.isLocked()?!1:!0}; kh=function(b,R){b.loader.Dv(R);var h=aOx(R),K=b.loader.kC();h={g2:b.schedule,VC:h,jE:KhB(b.V,h),r9:yN(R.kZ[0]),Lt:Zu(78,R.yV.G),BX:b.policy.X,vk:(I,N)=>{b.loader.IC(I,N)}}; b.schedule.Y.J&&(h.h8=(b.videoTrack.hX?.info.nz||0)+(b.audioTrack.hX?.info.nz||0));b.Mm&&(h.Dr=R.kZ[0].Dr,h.Wr=R.Wr,h.Mm=b.Mm);K={UU:v8e(R,b.loader.getCurrentTime()),Yy:b.policy.s8&&GL(R)&&R.kZ[0].hX.info.video?Rpx(b.Y):void 0,VU:b.policy.gp,poToken:b.loader.KC(),zK:b.loader.ov(),HF:b.HF,qU:isNaN(b.qU)?null:b.qU,Bg:b.Bg,lw:b.lw,wx:b.wx,LA:K};return new rL(b.policy,R,h,b.X,(I,N)=>{try{a:{const $B=I.info.kZ[0].hX,IK=$B.info.video?b.videoTrack:b.audioTrack;if(!(I.state>=2)||I.isComplete()||I.FR()||!(!b.loader.cY|| b.loader.isSuspended||sg(IK)>3)){const Pe=h0e(I,b.policy,b.X);Pe===1&&(b.C=!0);$JD(b,I,Pe);if(I.isComplete()||I.HY()&&N<3){if(b.policy.X){const U3=I.timing.K();U3.rst=I.state;U3.strm=I.xhr.o$();U3.cncl=I.xhr&&I.l5.S?1:0;b.loader.YZ("rqs",U3)}I.Za&&b.loader.YZ("sbwe3",{},!0)}if(!b.HY()&&I.state>=2){W3e(b.timing,I,$B);var p=b.loader;b.qU&&I.O1&&p&&(b.qU=NaN,b.loader.wX(I.O1),b.loader.Bn(),b.loader.YZ("cabrUtcSeek",{mediaTimeSeconds:I.O1}));I.k5&&b.qU&&I.k5&&!I.k5.action&&(b.loader.wK(b.qU),b.qU=NaN, b.loader.YZ("cabrUtcSeekFallback",{targetUtcTimeSeconds:b.qU}));I.iB&&b.loader.Yh(I.iB);b.policy.jn&&(b.wx=I.wx);if(I.state===3){fy(IK,I);GL(I.info)&&gl(b,IK,$B,!0);if(b.xO){const U3=I.info.e9();U3&&b.xO.kH(I.info.kZ[0].Dr,$B.info.id,U3)}b.loader.nt()}else if(I.isComplete()&&I.info.kZ[0].type===5){if(I.state!==4)I.nU()&&b.loader.handleError(I.Oi(),I.QG());else{var l=(I.info.kZ[0].hX.info.video?b.videoTrack:b.audioTrack).Y[0]||null;l&&l instanceof rL&&l.FR()&&l.s$()}I.dispose()}else{if(!I.nU()&&I.bc&& I.state>=2&&I.state!==3){var a=I.xhr.getResponseHeader("X-Response-Itag");if(a){var v=bgs(b.Y,a),B=I.info.X;if(B){var H=B-v.vY();v.G6=!0;I.info.kZ[0].hX.G6=!1;var q=v.D(H);I.info=q;if(I.CT){var d=I.CT,t=q.kZ;(t.length!==d.kZ.length||t.length=b.policy.Dw&&b.xO&&I.info.isDecorated()&&Zx==="net.badstatus"&&Eg(b.xO,Ee,Cw))){var e=(U3.info.video&&U3.yV.X>1||I.g4===410||I.g4===500||I.g4===503)&&!(T_(b.Y.S).size>0)&&!Zu(79,U3.yV.G),Y=I.QG(),Q=U3.info.video?b.videoTrack:b.audioTrack;e&&(Y.stun="1");b.loader.handleError(Zx,Y);b.HY()||(e&&xC(b.Y,U3),fy(Q,I),b.loader.nt())}}else v=1,b.xO&&I.info.isDecorated()&& Zx==="net.badstatus"&&Eg(b.xO,Ee,Cw)&&(v=0),b.oH.isLive&&I.Oi()==="net.badstatus"&&b.S<=b.policy.Cm*2?(taK(b.oH),b.oH.VB||b.oH.isPremiere?hH(b.loader,0,{ZK:"badStatusWorkaround"}):b.oH.K?hH(b.loader,b.oH.Th,{ZK:"badStatusWorkaround",IR:!0}):Tb(b.loader)):b.loader.handleError(Zx,I.QG(),v);isNaN(b.qU)||(b.loader.wK(b.qU),b.qU=NaN)}b.policy.Sn&&!I.isComplete()?JO(b.loader):b.loader.nt();var P=KFK(I,b.policy,b.X);$JD(b,I,P)}}}}}catch($B){P=b.G6?1:0,b.G6=!0,I=R5(P),P=K4($B,P),b.loader.handleError(P.errorCode, P.details,P.severity),I||b.loader.o8()}},K)}; NnD=function(b,R,h){var K=R.G?R.G.hX.yV:R.hX.yV;var I=b.X,N;(N=!b.policy.Ml)||(N=$p(18,K.G)===$p(8,K.Y));N?K=!1:(I=hU(I,$p(26,K.Y)),N=6E4*I.V**1.6,(0,g.c)()0&&(h=((0,g.c)()-b.loader.Zb)/1E3,R=Math.min(R,b.policy.RH+b.policy.Jq*h));R=b.loader.getCurrentTime()+R;return b.policy.bD&&(h=pJT(b.loader)+b.policy.bD,h=0||R.yV.RF("defrag")==="1"||R.yV.RF("otf")==="1"){R=null;break a}I=q8(0,4096)}I=new TL([new ih(5,K.hX,I,"createProbeRequestInfo"+K.D,K.Dr)],R.Y);I.zG=h;I.G=R.G;R=I}R&&kh(b,R)}}; gl=function(b,R,h,K){if(!(h.G()||h.MJ()||h.G6||!h.yV.D(b.policy,b.X,b.loader.a$)||h.info.U9==="f"||b.policy.G)){if(K){K=b.V;var I=h.info;K=ssK(K,I.video?K.policy.KG:K.policy.Te,I.nz)}else K=0;K=h.D(K);b=kh(b,K);UP(K)&&a6(R,b);h.G6=!0}}; Se=function(b,R){if(b.policy.useUmp&&R.HY())return!1;try{var h=R.info.kZ[0].hX;const p=h.info.video?b.videoTrack:b.audioTrack;var K=p;if(b.oH.isManifestless&&K){b.S=0;K.J&&(R.HY(),R.isComplete()||R.yS(),K.J=!1);R.tM()&&b.loader.AD.a8(1,R.tM());var I=R.GS(),N=R.vW();ap(b.oH,I,N)}if(R.info.r9()&&!UP(R.info))for(const a of R.Nm())u4T(p,a);K=p;for(b.loader.getCurrentTime();K.Y.length&&K.Y[0].state===4;){const a=K.Y.shift();cMx(K,a);K.SY=a.uF()}K.Y.length&&cMx(K,K.Y[0]);const l=!!DR(p);l&&R instanceof My&&(h.info.Pr()?g4H(b.timing):Gi2(b.timing));return l}catch(p){R=R.QG();R.origin="hrhs";a:{b=b.loader;h=p;if(h instanceof Error){R.msg||(R.msg=`${h.message}`);R.name||(R.name=`${h.name}`);if(h instanceof g.A$&&h.args)for(const [l,a]of Object.entries(h.args))R[`arg${l}`]=`${a}`;g.kJ(h);if(h.level==="WARNING"){b.PY.X1(R);break a}}b.handleError("fmt.unplayable",R,1)}return!1}}; a$s=function(b){const R=b.videoTrack.hX.index;b.Mm=new l$x({fZ:b.policy.fZ,pj:b.policy.D.pj,YV:R.A3(),jK:()=>R.jK(), DS:()=>R.DS()})}; vIT=function(b,R,h=0,K){R!==b.V&&(b.V&&(b.T6=!0),b.V=R,b.zF(R,b.videoTrack,h,K))}; BnB=function(b){if(b.Y?.isLocked())return b.videoInfos;const R=T_(b.G);let h=g.lR(b.videoInfos,K=>K.nz>b.Nb.nz?!1:!R.has(K.id)); b.G.A1()&&(h=g.lR(h,K=>K.video.width<=854&&K.video.height<=480)); return h}; HGw=function(b,R){const h=[];for(const K of R)h.push(g.o5(K,b.oH.AO));return h}; q0T=function(b,R,h=0,K){if(b.D&&R!==b.S)return!0;b.D=!1;R!==b.S&&(b.S=R,b.zF(R,b.audioTrack,h,K));return!1}; dJx=function(b,R){return b.Nb.tv&&R.reason==="l"||b.Nb.U0?!1:b.Nb.KW?!0:R.reason==="l"||R.reason==="b"||R.reason==="o"}; f$K=function(b,R){const h=b.G.G;if(h){b.videoInfos=b.J;var K=g.jc(b.videoInfos,I=>I.id===h); K&&K.video.qualityOrdinal===R?b.videoInfos=[K]:(K=b.videoInfos.map(I=>I.id),b.loader.YZ("sabrpf",{pfid:`${h}`, vfids:`${K.join(".")}`}),ee(b,R,R),JH(b.G,""))}else ee(b,R,R)}; ee=function(b,R,h){b.videoInfos=b.J;b.videoInfos=g.lR(b.videoInfos,K=>K.video.qualityOrdinal>=R&&K.video.qualityOrdinal<=h)}; yX2=function(b,R){b.Nb.NJ()&&(b.nR=R.reason==="m"||R.reason==="l"?!0:!1);R.reason==="m"?R.isLocked()&&f$K(b,R.G):dJx(b,R)?ee(b,R.Y,R.G):b.videoInfos=b.J;b.U=!0;b.Y=R}; Og=function(b,R){return b.map(h=>am(g.o5(h,R)))}; tux=function(b,R,h){if(b.K){var K=g.lR(b.X,I=>I.id===b.K); return Og(K,h).includes(R)}K=g.lR(b.X,I=>!!I.Nj?.isDefault); return K.length>0?Og(K,h).includes(R):Og(b.X,h).includes(R)}; QY=function(b,R,h=!1){xIe(b.G,R,h)}; AXT=function(b,R,h,K){const I=b.oH;var N=b.PY.getVideoData(),p=b.aC;const l=K3x({g2:b.g2,uv:N.L(),PY:b.PY,h2:b.h2,Nb:b.Nb,f3:b.f3,hB:b.hB,IK:b.IK,YA:b.YA,D8:b.D8,B$:b.B$,V1:b.V1,sabrLicenseConstraint:N.sabrLicenseConstraint,hZ:b.hZ,y9:b.y9,MP:b.MP,uA:b.uA,T3:!!p,authorizedFormats:N.authorizedFormats,gA:b.gA,A1:b.A1}),a=yL(N,b.LA,b.nextRequestPolicy,b.fJ,b.Ud,b.At,b.vG);h&&R&&(h=a.Us?a.Us.map(H=>H.type):[],R("sabr",{stmctxt:h.join("_"), unsntctxt:a.aL?a.aL.join("_"):""}));R=b.HL;h=b.DR;h===void 0&&R===void 0&&(h=jeT(I.AO,b.Wc?.video),R=jeT(I.AO,b.Wc?.audio));let v;N.Bg&&(v=N.Bg);let B;(N=b.Nb?.vV)&&N>0&&(b.oh||b.SG)&&(B=new Uint8Array(N));p={O7:l,vM:b.vM,HL:R,DR:h,aC:p,videoPlaybackUstreamerConfig:v,WL:a,bM:B};K&&b.Bk?b.Bk.length>0&&(p.Bk=b.Bk):b.H$&&(p.H$=b.H$);b.Nb?.NJ()&&!NS()&&(b.W1&&(p.W1=b.W1),b.wg&&(p.wg=b.wg));p.Ic=b.Ic;p.Ol=I.KR;return p}; jeT=function(b,R){return R?[g.o5(R.info,b)]:[]}; z0s=function(b,R,h){R=pO(b.yV,iGH(b,R,h),R);b.cq()&&R.set("probe","1");return R}; UJs=function(b){const R={},h=[],K=[];if(!b.data)return R;for(var I=0;I{R=Number(h);return`${R===1?2:R-1}---`})}; e0K=function(b,R=!1,h){var K=my(b.QX.experiments,"debug_bandaid_hostname");return K?(R=g.fg(b.QX.experiments,"debug_bandaid_port"),K=R>0?`${K}:${R}`:K,R=b.QX.experiments.O9("debug_bandaid_insecure_scheme"),Zy(b,K,R)):R&&h?.url&&!b.Y?(K=$p(16,new g.Mj(h.url)),Zy(b,K)):b.G.get(0)?.location.clone()}; u8=async function(b,R){var h=Zy(b,"redirector.googlevideo.com");h.set("alr","yes");h.set("id",`${Math.round(Math.random()*1E5)}`);if(R===1||R===2)h.set("cmo=sensitive_content","yes"),h.set("sc","yes");R===2&&h.set("cmo=td","c.youtube.com");var K=await bG(h.xj(),{format:"RAW",timeout:5E3});if(K.xhr.status!==200||!K.xhr.responseText)return Promise.reject(new g.A$("b204258371_no_host",h.xj(),K.xhr.status));var I=new g.Mj(K.xhr.responseText);h=$p(24,I);K=I.get("ms");b=Zy(b,h);I=I.get("mm");b.set("ms", K);b.set("mm",I);return h&&OGT(h)?R!==2||cA(h)?b:Promise.reject(new g.A$("b204258371_untrusted",h,K)):Promise.reject(new g.A$("b204258371_invalid",h,K))}; Qes=function(b,R){b=`https://${R.G()}/initplayback?c=${x2(b.QX)}`+"&owc=1";Pr(b,"pw",h=>{h.ht=R.Y})}; Xd=function(b,R,h,K){Pr(`https://${R}${"/videoplayback?probe=1"}`,h,I=>{!K.N("html5_onesie_host_racing")||K.videoData.isLivePlayback||K.N("html5_onesie_probe_ec_hosts")||K.Z4||K.sJ();b.X.push(I)},I=>{b.X.push(I.details)})}; OGT=function(b){return/.*(\.c\.youtube\.com|.*\.googlevideo\.com)/.test(b)}; cXK=function(b,R,h){var K=b.videoId,I=g.MF(b),N=b.L(),p={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(i$()),referer:document.location.toString(),signatureTimestamp:20494},l=g.HL();b.isAutonav&&(p.autonav=!0);l.WY(141)&&(p.autonavState=l.WY(140)?"STATE_OFF":"STATE_ON");p.autoCaptionsDefaultOn=l.WY(66);Mbx(b)&&(p.autoplay=!0);N.K&&b.cycToken&&(p.cycToken=b.cycToken);N.enablePrivacyFilter&&(p.enablePrivacyFilter=!0);b.isFling&&(p.fling=!0);var a=b.forceAdsUrl;if(a){l={};var v=[];a=a.split(","); for(var B of a){var H=B.split("|");H.length!==3||B.includes("=")||(H[0]=`breaktype=${H[0]}`,H[1]=`offset=${H[1]}`,H[2]=`url=${H[2]}`);a={adtype:"video_ad"};for(var q of H){const [Q,...P]=q.split("=");a[Q]=P.join("=")}H=a.url;const S=a.presetad,J=a.viralresponseurl,e=Number(a.campaignid),Y=a.bibliotecaadid;if(a.adtype==="in_display_ad")H&&(l.url=H),S&&(l.presetAd=S),J&&(l.viralAdResponseUrl=J),e&&(l.viralCampaignId=String(e)),Y&&(l.bibliotecaAdId=Y);else if(a.adtype==="video_ad"){const Q={offset:{kind:"OFFSET_MILLISECONDS", value:String(Number(a.offset)||0)}};if(a=xJT[a.breaktype])Q.breakType=a;H&&(Q.url=H);S&&(Q.presetAd=S);J&&(Q.viralAdResponseUrl=J);e&&(Q.viralCampaignId=String(e));Y&&(Q.bibliotecaAdId=Y);v.push(Q)}}p.forceAdParameters={videoAds:v,inDisplayAd:l}}b.isInlinePlaybackNoAd&&(p.isInlinePlaybackNoAd=!0);b.isLivingRoomDeeplink&&(p.isLivingRoomDeeplink=!0);B=b.Gi;if(B!=null){B={startWalltime:String(B)};if(q=b.pZ)B.manifestDuration=String(q||14400);p.liveContext=B}b.mutedAutoplay&&(p.mutedAutoplay=!0,B=N.getWebPlayerContextConfig(), B?.embedsHostFlags?.allowMutedAutoplayDurationMode&&B?.embedsHostFlags?.allowMutedAutoplayDurationMode.includes(mJT[b.mutedAutoplayDurationMode])&&(p.mutedAutoplayDurationMode=mJT[b.mutedAutoplayDurationMode]));if(b.pz?0:b.jn)p.splay=!0;B=b.vnd;B===5&&(p.vnd=B);B={};if(q=b.isMdxPlayback)B.triggeredByMdx=q;if(q=b.F8)B.skippableAdsSupported=q.split(",").includes("ska");if(v=b.Nf){q=b.aS;l=[];for(var d of oUH(v)){v=d.platform;v={applicationState:d.PE?"INACTIVE":"ACTIVE",clientFormFactor:PDs[v]||"UNKNOWN_FORM_FACTOR", clientName:bdH[d.La]||"UNKNOWN_INTERFACE",clientVersion:d.deviceVersion||"",platform:ZGe[v]||"UNKNOWN_PLATFORM"};a={};if(q){var t=void 0;try{t=JSON.parse(q)}catch(S){g.kJ(S)}t&&(a={params:[{key:"ms",value:t.ms}]},t.advertising_id&&(a.advertisingId=t.advertising_id),t.limit_ad_tracking!==void 0&&t.limit_ad_tracking!==null&&(a.limitAdTracking=t.limit_ad_tracking),v.osName=t.os_name,v.userAgent=t.user_agent,v.windowHeightPoints=t.window_height_points,v.windowWidthPoints=t.window_width_points)}l.push({adSignalsInfo:a, remoteClient:v})}B.remoteContexts=l}d=b.sourceContainerPlaylistId;t=b.serializedMdxMetadata;if(d||t)q={},d&&(q.mdxPlaybackContainerInfo={sourceContainerPlaylistId:d}),t&&(q.serializedMdxMetadata=t),B.mdxPlaybackSourceContext=q;p.mdxContext=B;d=R.width;d>0&&(p.playerWidthPixels=Math.round(d));if(R=R.height)p.playerHeightPixels=Math.round(R);h!==0&&(p.vis=h);if(h=N.widgetReferrer)p.widgetReferrer=h.substring(0,128);g.Fo(N)&&p&&(p.ancestorOrigins=N.ancestorOrigins);b.defaultActiveSourceVideoId&&(p.compositeVideoContext= {defaultActiveSourceVideoId:b.defaultActiveSourceVideoId});if(N=N.getWebPlayerContextConfig())p.encryptedHostFlags=N.encryptedHostFlags;K={videoId:K,context:I,playbackContext:{contentPlaybackContext:p}};b.Pa&&(K.playbackContext.reloadPlaybackContext={reloadPlaybackParams:b.Pa?.reloadPlaybackParams});b.contentCheckOk&&(K.contentCheckOk=!0);if(I=b.clientPlaybackNonce)K.cpn=I;if(I=b.playerParams)K.params=I;if(I=b.playlistId)K.playlistId=I;b.racyCheckOk&&(K.racyCheckOk=!0);I=b.L();p=I.embedConfig;b.xI&& I.N("embeds_enable_per_video_embed_config")?K.serializedThirdPartyEmbedConfig=b.xI:p&&(K.serializedThirdPartyEmbedConfig=p);K.captionParams={};p=g.HL().WY(65);b.deviceCaptionsOn!=null?K.captionParams.deviceCaptionsOn=b.deviceCaptionsOn:g.lv(I)&&(K.captionParams.deviceCaptionsOn=p!=null?!p:!1);b.vV&&(K.captionParams.deviceCaptionsLangPref=b.vV);b.sU.length?K.captionParams.viewerSelectedCaptionLangs=b.sU:g.lv(I)&&(p=g.b9(),p?.length&&(K.captionParams.viewerSelectedCaptionLangs=p));p=b.fetchType==="onesie"&& b.N("html5_onesie_attach_po_token");N=b.fetchType!=="onesie"&&b.N("html5_non_onesie_attach_po_token");if(p||N)p=b.L(),p.wB&&(K.serviceIntegrityDimensions={},K.serviceIntegrityDimensions.poToken=p.wB);I.N("fetch_att_independently")&&(K.attestationRequest={omitBotguardData:!0});K.playbackContext||(K.playbackContext={});K.playbackContext.devicePlaybackCapabilities=Kxx(b);K.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding===!1&&b.YZ("noVp9",{});return K}; cA=function(b){const R=/sn-[^.]*-/;return/.*\.c\.youtube\.com/.test(b)&&!R.test(b)}; VY=function(b){for(;b.G.length&&!b.G[0].isEncrypted;){const {videoId:h,eR:K,formatId:I,buffer:N,uU:p}=b.G.shift();if(N)b.Io.z6.L5?.get(h)?.G(K,I,N);else if(p)b.Io.z6.Sa(h,K,I);else{var R=b.Io;R.G[I].bF=!0;R=R.z6.L5?.get(h);R?.ud(I)&&R?.Y(I)}}}; g.CDK=function(b){for(;!b.V&&!b.error;){var R=b;R.V=!!Cy(R,1);switch(Cy(R,2)){case 2:var h=void 0,K=[],I=[];I.length=19;I.fill(0);var N=Cy(R,5)+257;h=Cy(R,5)+1;var p=Cy(R,4)+4;for(var l=0;l0;a--)K.push(l)}K.length!==p?R.error=!0:(h=K.slice(-h),K.length=N,VuT(R,K,h));break;case 1:VuT(R,rl,Ly);break; case 0:wl(R,R.G&7);K=Cy(R,16);N=Cy(R,16);(K^N)!==65535&&(R.error=!0);R.output.set(R.data.subarray(R.Y,R.Y+K),R.X);R.Y+=K;R.X+=K;break;default:R.error=!0}b.X>b.output.length&&(b.output=new Uint8Array(b.X*2),b.X=0,b.Y=0,b.V=!1,b.G=0,b.register=0)}b.output.length!==b.X&&(b.output=b.output.subarray(0,b.X));return b.error?new Uint8Array(0):b.output}; Cy=function(b,R){for(;b.G=b.data.length)return b.error=!0,0;b.register|=b.data[b.Y++]<>=R;b.G-=R;return h}; VuT=function(b,R,h){R=Md(R);h=Md(h);const K=b.data,I=b.output;let N=b.X;for(var p=b.register,l=b.G,a=b.Y;;){if(l<15){if(a>K.length){b.error=!0;break}p|=(K[a+1]<<8)+K[a]<>=7;v<0;)v=R[(p&1)-v],p>>=1;else p>>=v&15;l-=v&15;v>>=4;if(v<256)I[N++]=v;else if(b.register=p,b.G=l,b.Y=a,v>256){p=Fd[v];p+=Cy(b,o6[v]);a=XJD(b,h);l=Dy[a];l+=Cy(b,bo[a]);if(MuK&&ph.length&&(b.error=!0);b.register|=(h[K+1]<<8)+h[K]<=0)return wl(b,h&15),h>>4;for(wl(b,7);h<0;)h=R[Cy(b,1)-h];return h>>4}; wl=function(b,R){b.G-=R;b.register>>=R}; Md=function(b){var R=[];for(var h of b)R[h]||(R[h]=0),R[h]++;var K=R[0]=0;h=[];var I=0,N=0;for(var p=1;p7&&(I+=R[p]);for(K=1;K>a&1;l=I<<4|p;if(p<=7)for(a=1<<7-p;a--;)N[a<>=7;p--;){N[a]||(N[a]=-R,R+=2);const v=K&1;K>>=1;a=v-N[a]}N[a]=l}}return N}; RM=function(b,R){b.Y(`${"dcmprs"}_${b.context}_${b.G}_${"gz"}_${R}`)}; rXK=function(b,R){return VU(b,function(){const h=this;return function*(){let K;const I=Date.now();try{RM(h,"s");var N=yield*Cg(R());if(!N)throw Error("no result");RM(h,"e");return N}catch(p){throw RM(h,"f"),K=p,h.cg(K,"gz"),p;}finally{N=Date.now(),h.BH("gz",N-I,K)}}()})}; DJ3=function(b,R,h,K){return VU(void 0,function(){return function*(){const I=(N,p)=>rXK(new LFs(N,h,K),()=>mS(p(b))); if(h0)try{return yield*Cg(I("n",wJT))}catch(N){}if(R)try{return yield*Cg(I(R.G?"a":"w",N=>FFs(N,R)))}catch(N){}return yield*Cg(I("p",oIT))}()})}; wJT=async function(b){if(!h0)throw Error("DecompressionStream is not supported");const R=ca.e_();var h=new DecompressionStream("gzip");const K=h.writable.getWriter();K.write(b);K.close();b=h.readable.getReader();for(h=new ju([]);;){const {value:I,done:N}=await b.read();if(N)break;h.append(I)}b=lD(h);ca.lO("gznb",R,Math.ceil(b.byteLength/16));return b}; oIT=function(b){const R=ca.e_();b=g.CDK(new g.bCs(b));ca.lO("gzjb",R,Math.ceil(b.byteLength/16));return b}; FFs=function(b,R){const h=ca.e_();b=R.Xq(b);let K;try{const I=b.byteOffset,N=b.byteLength,p=R.exports.getInflatedSize(I,N);if(p===0)throw Error("wasm_gz: bad input");const l=R.malloc(p),a=R.exports.inflateGzip(I,N,l);if(a)throw R.free(l),Error(`wasm_gz: fail${a}`);K=new Uint8Array(R.exports.memory.buffer,l,p)}finally{R.free(b.byteOffset)}R=R.lk(K);ca.lO("gzwb",h,Math.ceil(R.byteLength/16));return R}; Ku=function(b){var R=b.queue;R.G.length&&R.G[0].isEncrypted&&!R.Y&&(R.G.length=0);for(const h of Object.keys(b.G)){const K=b.G[h];K.bF||(R=b.queue,R.G.push({videoId:K.videoId,formatId:h,isEncrypted:!1}),R.Y||VY(R))}}; RZP=function(b,R){const h=R.totalLength;let K=!1;switch(b.X){case 0:b.H6(R,b.V).then(I=>{var N=b.z6;N.GD("oprr");N.playerResponse=I;N.wq||(N.BL=!1);sa(N)},I=>{b.z6.fail(I)}); break;case 2:b.GD("ormk");R=lD(R);b.queue.decrypt(R);break;default:K=!0}b.z6.Q$&&b.z6.YZ("ombup",`id.${11};pt.${b.X};len.${h}${K?";ignored.1":""}`);b.X=null}; hZK=function(b,R){b.z6.GD("oprgz2_s");R=DJ3(R,b.z6.L().KR,b.z6.Q$?b.z6.YZ.bind(b.z6):()=>{},h=>{b.z6.GD(h)}); cq(R,()=>{b.z6.GD("oprgz2_e")},()=>{b.z6.GD("oprgz2_f")}); return R}; KXe=async function(b,R){b.z6.GD("oprgz_s");if(h0)try{var h=await wJT(R);b.z6.GD("oprgz_n");b.z6.YZ("oprsgz",{i:"n"});return h}catch(K){b.z6.YZ("gzerr",{impl:"native",err:`${K}`})}if(h=b.z6.L().KR)try{const K=FFs(R,h);b.z6.GD("oprgz_w");b.z6.YZ("oprsgz",{i:"w"});return K}catch(K){b.z6.YZ("gzerr",{impl:"wasm",err:`${K}`})}R=oIT(R);b.z6.GD("oprgz_p");b.z6.YZ("oprsgz",{i:"j"});return R}; s8K=function(b){return new Promise(R=>{setTimeout(R,b)})}; $Aw=function(b,R){var h=b.L();h=b.ri&&h.N("html5_onesie_preload_use_content_owner");if((R=e0K(R,h,b.Ok))&&b.videoId){b=CB(b.videoId);h=[];if(b)for(const K of b)h.push(K.toString(16).padStart(2,"0"));R.set("id",h.join(""));return R}}; I8H=async function(b,R,h=0){const K=[];K.push(R.load());h>0&&K.push(s8K(h));await Promise.race(K);return $Aw(b,R)}; N9K=function(b,R,h,K=!1){b.set("cpn",R.clientPlaybackNonce);b.set("opr","1");const I=R.L();b.set("por","1");hX()||b.set("onem","1");R.startSeconds>0&&b.set("osts",`${R.startSeconds}`);K||(I.N("html5_onesie_disable_partial_segments")&&b.set("oses","1"),R=I.N("html5_gapless_onesie_no_media_bytes")&>(R)&&R.ri,h&&!R?(R=h.audio,b.set("pvi",h.video.join(",")),I.N("html5_onesie_disable_audio_bytes")||b.set("pai",R.join(",")),F2||b.set("osh","1")):(b.set("oad","0"),b.set("ovd","0"),b.set("oaad","0"),b.set("oavd", "0")))}; pCT=function(b,R,h,K,I=!1){const N=`${"https://youtubei.googleapis.com/youtubei/"}${R.Pa.innertubeApiVersion}/player`,p=[{name:"Content-Type",value:"application/json"}];K&&p.push({name:"Authorization",value:`Bearer ${K}`});p.push({name:"User-Agent",value:g.zK()});g.x("EOM_VISITOR_DATA")?p.push({name:"X-Goog-EOM-Visitor-Id",value:g.x("EOM_VISITOR_DATA")}):(h=h.visitorData||g.x("VISITOR_DATA"))&&p.push({name:"X-Goog-Visitor-Id",value:h});(h=g.x("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&p.push({name:"X-YouTube-Lava-Device-Context", value:h});(R=my(R.experiments,"debug_sherlog_username"))&&p.push({name:"X-Youtube-Sherlog-Username",value:R});b=tX(JSON.stringify(b));return{url:N,LJ:p,postBody:b,M7:I,PQ:I}}; $y=function(b,R,h,K,I,N,p,l,a){const v=b.sf,B=b.zS;b=b.zV;var H=v!==void 0&&B!==void 0;const q=K.getVideoData();var d=R.G.encryptedClientKey;R=H?R.iv:void 0;H=ZR(N,!0);I=I||!!hX()&&H>1572864;return{innertubeRequest:{xx:b,d$:v,zS:B,encryptedClientKey:d,iv:R,ef:!0,KO:!0,jo:"DecompressionStream"in window||!I,dN:h.experiments.O9("html5_use_jsonformatter_to_parse_player_response")},O7:K3x({g2:N,uv:h,PY:K,h2:q.startSeconds*1E3,bd:!0}),onesieUstreamerConfig:p,Ho:l,WL:yL(q),reloadPlaybackParams:q.Pa?.reloadPlaybackParams, Un:a}}; l8w=function(b,R,h,K,I,N,p,l){const a=g.gn(b,gB);let v;var B;b.PQ||((B=S03(R,a))?(v=B.lf,B=B.signature):(B=v=R.encrypt(a),(0,g.c)(),B=Vw2(new LsP(R.G.X),B,R.iv)));return $y(v&&B?{sf:v,zS:B}:{zV:a},R,h,K,!!b.PQ,I,N,p,l)}; a8B=async function(b,R,h,K,I,N,p,l){var a=g.gn(b,gB);a=await WFq(R,a);const v=await EI3(R,a);return $y({sf:a,zS:v},R,h,K,!!b.PQ,I,N,p,l)}; vaB=function(b,R,h,K,I,N,p,l){var a=g.gn(b,gB);if(a=S03(R,a))return $y({sf:a.lf,zS:a.signature},R,h,K,!!b.PQ,I,N,p,l)}; HCB=async function(b,R,h){b.GD("oprd_s");R=B9T(b)?await Tns(b.iA,R,h):b.iA.decrypt(R,h);b.GD("oprd_c");return R}; IM=function(b){if(!b.Rc)return{};const R=b.Rc.K();R.d=b.Rc.vY?.MU();R.shost=b.f7;R.ty="o";return R}; B9T=function(b,R){return b.N("html5_onesie_sync_request_encryption")||R?.PQ?!1:!!hX()}; qxP=function(b){return b.N("html5_onesie_host_probing")||b.Q$?F2:!1}; sa=function(b){if(!b.playerResponse)return!1;if(b.Ci)return!0;var R=b.videoData.N("html5_onesie_audio_only_playback")&&dw(b.videoData);if(b.L5&&b.BL){if(!b.L5.has(b.X3))return!1;const K=b.L5.get(b.X3);var h;if(h=K){h=!1;for(const I of K.L0.keys()){const N=K.L0.get(I);if(N)for(const p of N.V4)p.uN>0&&(N.Pr?h=!0:R=!0)}h=!(R&&h)}if(h)return!1}b.GD("ofr");b.Eh.resolve(b.playerResponse);b.hS||(b.w8?.start(),b.KA.start());return b.Ci=!0}; f8K=function(b){if(b.L5&&!b.N("html5_onesie_media_capabilities")){b.GD("ogsf_s");var R=Fhs(b.PY.getVideoData(),(K,I)=>{b.YZ(K,I)}),h=dAP(b.PY); R.video=cuT(h,R.video);b.GD("ogsf_c");if(R.video.length)return R;b.YZ("ombspf",`l.${h.Y};u.${h.G};o.${h.X};r.${h.reason}`)}}; aM=function(b,R){if(R.HY()||b.HY())b.policy.P_||(b.policy.J?Na(b.loader):b.loader.nt());else{if(b.policy.X&&R.isComplete()&&R instanceof Um){var h=b.loader,K=h.YZ;var I=Object.assign(R.Rc.K(),{rst:R.state,strm:R.xhr.o$(),d:R.Rc.vY?.MU(),cncl:R.xhr&&R.l5.S?1:0,rqb:R.yx,cwt:R.l5.X,swt:R.EZ?.eN});I=Object.assign(UJs(R.info),I);K.call(h,"rqs",I)}if(R.isComplete()&&R.cq()&&R instanceof Um)b.policy.FM?R.SL()?(R.dispose(),b.G.length===0?b.loader.nt():(b=b.G[0],b instanceof Um&&b.FR()&&b.s$())):R.nU()&&b.loader.handleError(R.Oi(), R.QG()):(R.dispose(),b.loader.nt());else{if(R.ye())b.SG=!0,R instanceof Um&&W3e(b.timing,R),yPH(b),pu(b);else if(R.nU())h=b.PY.B_(),R instanceof Um&&R.info.G?.O7?.hZ&&h&&b.loader.wK(h),R instanceof Um&&iJK(R)?b.loader.LC?.X():R instanceof lo?b.G.pop():(h=1,R.canRetry()&&ny(b.loader)&&(t9P(b,R),h=0),b.loader.handleError(R.Oi(),R.QG(),h));else{if(b.loader.isSuspended&&!R.isComplete())return;pu(b)}R.HY()||R instanceof lo||(R.isComplete()?h=KFK(R,b.policy,b.V):(h=h0e(R,b.policy,b.V),h===1&&(b.wp=!0)), h!==0&&(K=new j8B(1,R.info.yV),K.zG=h===2,APB(b,K)));R.isComplete()&&(b.oh=!1,R.ye()||(b.SG=!1));b.policy.Sn&&!R.isComplete()?JO(b.loader):b.loader.nt()}}}; iCK=function(b){b.policy.EW&&(b.vY=void 0,b.D8=0)}; gaB=function(b){if(!zZH(b,b.C))return vx(b,"ratelimited"),!1;if(yY(b.audioTrack)&&yY(b.videoTrack))return vx(b,"endofstream"),!1;if(b.policy.Y)if(b.policy.S){if(b.K?.C())return vx(b,"ssdaiblocked"),!1}else{var R=!1;if(b.nR.Y===2)R=!0;else if(b.nR.Y===3){Bx(b);b.loader.Kz();var h=BA(b.audioTrack,b.loader.isSeeking()).Ic;var K=BA(b.videoTrack,b.loader.isSeeking()).Ic;var I=b.loader.getCurrentTime()||0;h=Hx(b,h,I);K=Hx(b,K,I);K=Math.min(h,K);I=b.nR;K>=I.X?(I.YZ("sdai",{haltrq:K,est:I.X}),K=!0):K=!1; K&&(R=!0)}if(R)return vx(b,"waitingforads"),!1}b.policy.vD&&(b.MJ=qa(b,b.audioTrack),b.gp=qa(b,b.videoTrack));if(!b.X)return d2(b,{nopolicy:1}),!0;if(b.PY.B_())return d2(b,{utc:1}),!0;if(b.Y.D)return d2(b,{audio:1}),!0;if(b.policy.O$&&b.Y.U)return d2(b,{constraint:1}),!0;if(!b.X.targetAudioReadaheadMs||!b.X.targetVideoReadaheadMs)return d2(b,{noreadahead:1}),!0;if(b.policy.J&&b.loader.wl())return d2(b,{seekToHead:1}),!0;R=Math.min(FY(b.loader,b.audioTrack)*1E3,b.X.targetAudioReadaheadMs);K=Math.min(FY(b.loader, b.videoTrack)*1E3,b.X.targetVideoReadaheadMs);I=Math.min(R,K);var N=b.PY.getCurrentTime()*1E3;const {ai:p,oi:l,jC:a,dw:v}=UAP(b,N);let B;h=p0&&b.C.IG++)}; APB=function(b,R,h){var K={g2:b.g2,vk:(N,p)=>{b.PY.IC(N,p)}, r9:b.policy.oy,BX:b.policy.X};b.g2.Y.J&&(K.h8=(b.videoTrack.hX.info.nz||0)+(b.audioTrack.hX.info.nz||0));b.policy.pZ&&(K.YV=b.audioTrack.hX.index.A3(),K.r9=!1);var I=iGH(R,b.policy,b.V)?2:1;I!==b.G6&&(b.G6=I,yPH(b));h=b.Rb(h);if(b.policy.U&&b.policy.X&&h.fJ){let N=I="";for(const p of h.fJ)b.videoData.sabrContextUpdates.has(p)||b.policy.U&&h.At&&h.At.type===p?I+=`_${p}`:N+=`_${p}`;b.loader.YZ("sabrbldrqs",{ctxts:I,misctxts:N})}!R.setData(h,b.policy,b.V)&&b.policy.U&&b.loader.handleError("player.exception", {reason:"buildsabrrequestdatafailed"},1);K=new Um(b.policy,R,b.oH,b.V,b,K,b.loader.ov());z_(b.timing);b.policy.ri&&b.loader.YZ("sabrcrqinfo",{rn:K.SJ(),probe:R.cq()});return K}; qa=function(b,R){Bx(b);b.loader.Kz();return BA(R,b.loader.isSeeking())}; fu=function(b){return b.policy.Ys&&!!b.J}; Hx=function(b,R,h){b=b.loader.Kz()||0;return y$(R,(h+b)*1E3)/1E3+h}; Bx=function(b){const R=b.policy.J&&b.loader?.wl();var h=b.loader.getCurrentTime()||0;h=naH(b,h);a:if(b.policy.bC&&b.loader.isSeeking()){var K=Nd(b.videoTrack,h);b.loader.YZ("asmtfnctv",{b:h,a:K});if(!isNaN(K)){h=K;break a}}K=b.loader.Kz()||0;h+=K;K=kK(b.videoData)||g.Jw(b.videoData);let I=0;R?(K&&(I=Number.MAX_SAFE_INTEGER),b.videoData.pm&&(I=Math.ceil(b.videoData.Th*1E3))):I=Math.ceil(h*1E3);return Math.min(Number.MAX_SAFE_INTEGER,I)}; naH=function(b,R){if(b.loader.isSeeking())return R;var h=b.PY.di();if(!h)return R;h=h.w4();if(h.length===0||Rc(h,R))return R;if(!b.videoTrack.ze(R)&&!b.audioTrack.ze(R))return b.loader.YZ("sundrn",{b:0,lt:R}),R;let K=R,I=Infinity;for(let N=0;NR)continue;const p=R-h.end(N);p=20)?(b.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),R):K}; y$=function(b,R){let h=0,K=-1;for(const I of b)if(!(I.startTimeMs+I.durationMsR||K>=0&&I.UV>K+1)break;h=Math.max(h,I.startTimeMs+I.durationMs);K=Math.max(K,I.ED)}return Math.max(0,h-R)}; zZH=function(b,R){a:{if(b.U>0){var h=Math.floor((0,g.c)()/1E4);if(h===R.o9){if(R.IG>=b.U){R.IG===b.U&&(h={reason:"toomanyrequests"},h.limit=R.IG,b.loader.handleError("player.exception",h),R.IG+=1);R=!1;break a}}else R.o9=h,R.IG=0}R=!0}return!R||b.loader.isSuspended&&b.loader.vX?!1:b.D&&(0,g.c)()0&&(!b.policy.U||b.G.length!==1||!b.G[0].P5())||!b.oH.G6?.D(b.policy,b.V,b.loader.a$)||b.Zr?!1:!0}; vx=function(b,R){b.pR=R;b.policy.ri&&b.loader.YZ("sabrcrb",{reason:R})}; d2=function(b,R){b.pR=void 0;b.RH=(0,g.c)();b.policy.ri&&b.loader.YZ("sabrcrq",R)}; UAP=function(b,R){const {jC:h,dw:K}=Eaw(b);let I;b.policy.vD?(I=y$(b.MJ.Ic,R),b=y$(b.gp.Ic,R)):(I=h,b=K);return{ai:I,oi:b,jC:h,dw:K}}; yPH=function(b){b.videoData.vY.clear();if(b.videoData.sabrContextUpdates.size>0)for(var R of b.videoData.sabrContextUpdates.keys())b.videoData.sabrContextUpdates.get(R)?.sendByDefault&&b.videoData.vY.add(R);if(b.policy.U&&b.G.length)for(const h of b.G)(R=h.l9())&&R.type&&R.sendByDefault&&b.videoData.vY.add(R.type)}; pu=function(b){for(;b.G.length&&b.G[0].wS(b.Vn());){const R=b.G.shift();T93(b,R)}b.G.length&&T93(b,b.G[0])}; T93=function(b,R){R instanceof Um&&(b.JX=R);var h=new Set(R.VD(b.Vn()));for(const p of h){if(h=R instanceof lo){h=b.Y;var K=h.oH.AO,I=Og(h.videoInfos,K);K=tux(h,p,K);var N=I.includes(p);!h.Nb.wA||K||N||h.loader.YZ("sabrcpf",{fid:`${p}`,vfids:`${I.join(".")}`,said:h.K||""});h=!(K||I.includes(p))}if(h)continue;h=R.jR(p,b.Vn());I=b.policy.Ys&&c5(h[0].hX.info.mimeType);if(!R.yS(p,b.Vn()))continue;K=R.Nm(p,b.Vn());for(const l of K){b.policy.X&&R instanceof lo&&b.loader.YZ("omblss",{s:l.info.vR()});if(I){K= b.timing;K.G6||(K.G6=(0,g.c)(),g.Th("fcb_r",K.G6,K.G));K=b;K.videoData.AO()&&K.J&&am(K.J)===am(g.o5(l.info.hX.info,K.oH.AO))&&K.PY.publish("sabrCaptionsDataLoaded",l,K.dX.bind(K));continue}K=l.info.hX.info.Pr();N=l.info.hX;const a=R instanceof lo?1:2;if(K){if(q0T(b.Y,N,a,R.gJ(b.Vn())?.token))continue}else vIT(b.Y,N,a,R.gJ(b.Vn())?.token);N=K?b.audioTrack:b.videoTrack;R instanceof lo&&(N.J=!1,R instanceof lo&&(K?g4H(b.timing):Gi2(b.timing)));try{vA(N,h,l)}catch(v){K=K4(v),b.loader.handleError(K.errorCode, K.details,K.severity),N.o8(),b.oP(!1,"pushSlice"),Na(b.loader)}}}}; t9P=function(b,R){b.policy.U?b.G.splice(b.G.indexOf(R)).forEach(h=>{h.dispose()}):(b.G.pop(),R?.dispose())}; JP2=function(b,R,h){const K=[];for(let I=0;I=7E3&&I>=7E3}return R}; eZw=function(b,R){b.delay?.dispose();b.delay=null;const h=Array.from(b.G.values()).sort((K,I)=>K.mediaTime-I.mediaTime); h.length!==0&&(R=(h[0].mediaTime-R)*1E3/b.PY.getPlaybackRate(),b.delay=new g.bI(()=>{t0(b)},R>500?R-500:R),b.delay.start())}; t0=function(b,R){if(y3(b.PY.getPlayerState())&&b.G.size!==0){R=R??Array.from(b.G.values()).sort((I,N)=>I.mediaTime-N.mediaTime); var h=b.getCurrentTime(),K=(R[0].mediaTime-h)*1E3/b.PY.getPlaybackRate();if(K<500){h=K>0?b.PY.di()?.getCurrentTime()??b.PY.getCurrentTime():h;for(const I of R)if(h>=I.mediaTime)I.resolve([I.mediaTime,I.id]),b.G.delete(I.id);else break}eZw(b,h)}}; OC2=function(b,R,h){b.G.delete(h);return new Promise(K=>{b.G.set(h,{id:h,mediaTime:R,resolve:K});K=Array.from(b.G.values()).sort((I,N)=>I.mediaTime-N.mediaTime); h===K[0].id&&t0(b,K)})}; xAD=function(b){const R=b.PY.di()?.getCurrentTime()??b.PY.getCurrentTime(),h=b.V.dt(R);Q8T(b,h,R);b.isSeeking=!1;var K=Array.from(b.G.keys()).filter(I=>I>=h).sort((I,N)=>I-N); for(const I of K)K=I===h?R-b.V.getStartTime(h):0,b.D(I,b.G.get(I),K)}; mAq=function(b,R,h,K=!1){R!==b.mZ&&(b.mZ=R,b.PY.publish("playbackstarted",R,h+b.PY.Kz(),K))}; Q8T=function(b,R,h){const K=b.G.get(R),I=b.V.getStartTime(R),N=b.V.getDuration(R);let p=I;(K?.G??[b.cpn]).forEach((l,a)=>{const v=K?.Y[a]??N;h>=p&&h{b.S.G.delete(h)}); b.X.delete(R)}; ZC3=function(b,R,h,K){b.Y=h;h=`${R}.${h}`;b.X.has(R)?b.X.get(R).push(h):b.X.set(R,[h]);OC2(b.S,K,h).then(([I,N])=>{const [p,l]=N.split(".");[,N]=[Number(p),l];mAq(b,N,I)})}; u1K=function(b,R,h,K,I,N){return R.CN&&R.CR&&h===3?new cPT(b,R,K,I,N):null}; XCq=function(b,R){if(b.policy.VM){var h=R.info.nz,K=ZR(b.schedule);R=R.index.A3();h=Math.max(1,K/h);b.K=Math.round(Math.max(((h-1)*R+b.policy.pz)/h,R-b.policy.KZ)*1E3)}}; M9T=function(b,R){var h=Date.now()/1E3,K=h-b.startTimeSecs;const I=h-b.J;var N=I>=b.policy.bJ,p=!1;if(N){let l=0;!isNaN(R)&&R>b.S&&(l=R-b.S,b.S=R);l/I=b.policy.KZ&&!b.X;if(!N&&!h&&V9D(b,R))return NaN;h&&(b.X=!0);a:{K=p;h=(0,g.c)()/1E3-(b.GW.JU()||0)-b.D.G-b.policy.pz;N=b.Y.startTime;h=N+h;if(K){if(isNaN(R)){jk(b,NaN,"n",R);N=NaN;break a}K=R-b.policy.b6;K0&&(p.headers=l);N&&(p.onFinish=N);return Object.keys(p).length>1?p:null}; io=function(b,R,h,K,I,N,p,l){R_()&&h.token&&(b=GE(b,{ctt:h.token,cttype:h.Fw,mdx_environment:h.mdxEnvironment}));K.N("net_pings_low_priority")&&(R||(R={}),R.priority="low");N||l&&K.N("nwl_skip_retry")?(R==null?R={}:oaw(b,K.N("html5_assert_cpn_with_regex")),p?Dw().sendAndWrite(b,R):Dw().sendThenWrite(b,R,l)):R?(oaw(b,K.N("html5_assert_cpn_with_regex")),qkK(b,R)):g.Co(b,I)}; DAx=function(b){const R=[];for(let h=0;h0&&h>0&&!b.Y&&b.X<1E7)try{b.V=b.S({sampleInterval:R,maxBufferSize:h}),b.V?.addEventListener("samplebufferfull",async()=>{await b.stop();hAs(b)})}catch(K){b.Y=RAq(K.message)}}; zl=function(b,R){b=window.h5vcc?.settings?.set(b,R);return e$(b)?cq(mS(b),()=>!0,()=>!1):mS(!!b)}; KeK=function(b){return zl("MediaSource.EnableUsingMediaSourceBufferedRange",b?1:0)}; smT=function(b){return zl("HTTP3",b?1:0)}; $8T=function(b){return zl("MediaSource.EnableUsingMediaSourceAttachmentMethods",b?1:0)}; IpK=function(b){return zl("QUIC",b?1:0)}; NXP=function(b){return zl("Media.AudioWriteDurationLocal",b)}; ptB=function(b){return zl("Media.PlayerConfiguration.DecodeToTexturePreferred",b?1:0)}; lpB=function(b){return zl("Media.VideoBufferSizeClampMb",b)}; apT=function(b){return zl("Media.VideoDecoderPollIntervalMs",b)}; vpH=function(b){return zl("Media.VideoInitialMaxFramesInDecoder",b)}; BXw=function(b){return zl("Media.EnableAllocateOnDemand",b?1:0)}; HOK=function(b){return zl("Media.AppendFirstSegmentSynchronously",b?1:0)}; qPs=function(b){return zl("Media.EnableResetAudioDecoder",b?1:0)}; d8D=function(b){return zl("Media.EnableFlushDuringSeek",b?1:0)}; fpD=function(b){return zl("DecoderBuffer.EnableMediaBufferPoolAllocatorStrategy",b?1:0)}; tiq=function(){var b=window.h5vcc?.settings?.getPersistentSettingAsString?.("cpu_usage_tracker_intervals");if(b!=null){b=JSON.parse(b)??[];var R=b.filter(h=>h.type==="total").map(h=>h.seconds); for(const h of yUT)R.indexOf(h)===-1&&b.push({type:"total",seconds:h});window.h5vcc?.settings?.set("cpu_usage_tracker_intervals_enabled",1);window.h5vcc?.settings?.set("cpu_usage_tracker_intervals",JSON.stringify(b))}}; jmP=function(){var b=window.H5vccPlatformService;let R="";if(b&&b.has("dev.cobalt.coat.clientloginfo")&&(b=b.open("dev.cobalt.coat.clientloginfo",()=>{}))){const h=b.send(new ArrayBuffer(0)); h&&(R=String.fromCharCode(...(new Uint8Array(h))));b.close()}return R}; AUB=function(b){var R=window.H5vccPlatformService;R?.has("com.google.android.youtube.tv.prodlogger")&&(R=R.open("com.google.android.youtube.tv.prodlogger",()=>{}))&&(R.send(tX(`cpn: ${b}`).buffer),R.close())}; g.Gl=function(b,R,h,K){Ua(b,h,`${R.toFixed(3)}:${K.join(":")}`)}; g2=function(b,R){var h=b.provider.getCurrentTime();g.Gl(b,R,"cmt",[h.toFixed(3)]);var K=h=b.provider.mH();if((!b.Y||b.provider.QX.N("html5_shorts_gapless_no_gllat")&>(b.provider.videoData)?0:K*1E3>b.Y.h$+100)&&b.Y){K=b.Y.isAd;h=h*1E3-b.Y.h$;b.Ie=R*1E3-b.Y.jf-h-b.Y.JP;var I=(0,g.c)()-h;R=b.Ie;h=b.provider.videoData;var N=h.isAd();if(K||N){N=`${K?"ad":"video"}_to_${N?"ad":"video"}`;var p={};h.g3&&(p.cttAuthInfo={token:h.g3,videoId:h.videoId});p.startTime=I-R;ZC(N,p);g.PI({targetVideoId:h.videoId, targetCpn:h.clientPlaybackNonce},N);mv("pbs",I,N)}else I=b.provider.PY.vI(),I.J!==h.clientPlaybackNonce?(I.S=h.clientPlaybackNonce,I.Y=R):h.mY()||g.kJ(new g.A$("CSI timing logged before gllat",{cpn:h.clientPlaybackNonce}));b.YZ("gllat",{l:b.Ie.toFixed(),prev_ad:+K});delete b.Y}}; Ua=function(b,R,h){const K=b.G.get(R);K?K.push(h):b.G.set(R,[h])}; Wx=function(b,R,h){if(!isNaN(h.UU)){let K=h.UU;h.Y=0?R:g.Sk(b.provider);const h=b.provider.PY.B7();var K=h.aQ-(b.vY||0);K>0&&g.Gl(b,R,"bwm",[K,(h.pY-(b.Zl||0)).toFixed(3)]);isNaN(b.vY)&&h.aQ&&b.isOffline&&b.YE(!1);b.vY=h.aQ;b.Zl=h.pY;isNaN(h.bandwidthEstimate)||g.Gl(b,R,"bwe",[h.bandwidthEstimate.toFixed(0)]);b.provider.QX.zy()&&Object.keys(h.G).length!==0&&b.YZ("bwinfo",h.G);if(b.provider.QX.zy()||b.provider.QX.N("html5_log_meminfo"))K=rPP(),Object.values(K).some(I=>I!==void 0)&&b.YZ("meminfo",K); b.provider.QX.zy()&&(K=b.pR?.V())&&Object.values(K).some(I=>I!=null)&&b.YZ("cpuinfo",K); b.NJ&&b.YZ("jsprof",b.NJ.flush());b.HR&&b.YZ("uma",b.HR.flush());b.U&&g.Gl(b,R,"bat",[b.U.level,b.U.charging?"1":"0"]);K=b.provider.PY.getVisibilityState();b.FM!==K&&(g.Gl(b,R,"vis",[K]),b.FM=K);g2(b,R);(K=iOx(b.provider))&&K!==b.Ty&&(g.Gl(b,R,"conn",[K]),b.Ty=K);Wx(b,R,h)}; U8e=function(b,R,h){const K=g.Sk(b.provider);zAB(b,K,R,0,h);nu(b,K);Ea(b)}; Tl=function(b,R){Ua(b,"cat",R)}; GLw=function(b){var R=b.provider.PY.B7();const h=g.Sk(b.provider);Wx(b,h,R);const K=R.X;R=R.V;isNaN(K)||(b.provider.QX.N("html5_unified_live_latency_reporting")&&!isNaN(R)&&R?g.Gl(b,h,"e2el",[K.toFixed(3),R.toFixed(3)]):g.Gl(b,h,"e2el",[K.toFixed(3)]))}; gp3=function(b,R){R={cpn:b.provider.videoData.clientPlaybackNonce,sequenceNumber:R,serializedWatchEndpointLoggingContext:b.provider.videoData.yE};b.serializedHouseBrandPlayerServiceLoggingContext&&(R.serializedHouseBrandPlayerServiceLoggingContext=Vo(b.serializedHouseBrandPlayerServiceLoggingContext)||void 0);b.provider.videoData.playerResponseCpn&&(R.playerResponseCpn=b.provider.videoData.playerResponseCpn);J0.length&&(R.decoderInfo=J0);b.remoteControlMode&&(R.remoteControlMode=b.remoteControlMode); b.remoteConnectedDevices.length&&(R.remoteConnectedDevices=b.remoteConnectedDevices);b.Q5?.length&&(R.serializedQoeContextData=b.Q5.map(h=>tX(h))); return R}; Wex=function(b,R,h){g.js(b.provider.QX,b.provider.videoData.J()).then(K=>{var I=!1;R.includes("&dt=")||R.includes("&cotn=")?I=!0:b.provider.QX.N("qoe_with_networkless")&&(I=!0);const N=b.provider.QX.N("qoe_send_and_write");var p=b.provider.QX;K=A0(R,p,b.provider.QX.pageId,b.provider.QX.sendVisitorIdHeader?b.provider.videoData.visitorData:void 0,K);p.N("html5_simplify_pings")&&(K=K||{});K?(K.method="POST",K.postBody=h,io(R,K,{token:b.provider.videoData.g3,Fw:b.provider.videoData.SR,mdxEnvironment:b.provider.videoData.mdxEnvironment}, p,void 0,I,N&&b.MJ)):I?(I=b.provider.QX.N("networkless_ajax"),p={method:"POST",postBody:h},N&&b.MJ?Dw().sendAndWrite(R,p):I?g.LD(R,{method:"POST",postBody:h}):Dw().sendThenWrite(R,p)):yeD(R,h)})}; Ea=function(b){if(!b.provider.QX.N("html5_qoe_no_len_check")){var R=0;for(const [h,K]of b.G.entries())R+=h.length+Number(vp(K,(I,N)=>I+N.length,0)); R>96E3&&(new g.bI(b.reportStats,0,b)).start()}}; SP2=function(b){b.provider.videoData.ri&&Tl(b,"prefetch");b.provider.videoData.pR&&b.YZ("reload",{r:b.provider.videoData.reloadReason,ct:b.provider.videoData.pR});b.provider.videoData.YH&&Tl(b,"monitor");b.provider.videoData.isLivePlayback&&Tl(b,"live");F2&&Tl(b,"streaming");b.provider.videoData.wR&&b.YZ("ctrl",{mode:b.provider.videoData.wR},!0);if(b.provider.videoData.Nf){var R=b.provider.videoData.Nf.replace(/,/g,"_");b.YZ("ytp",{type:R},!0)}b.provider.videoData.h_&&(R=b.provider.videoData.h_.replace(/,/g, "."),b.YZ("ytrexp",{ids:R},!0));b.provider.QX.zy()&&b.YZ("now",{wt:(0,g.c)()});R=b.provider.videoData;var h=b.provider.QX.N("enable_white_noise")||b.provider.QX.N("enable_webgl_noop");const K=g.zs(R)||g.YK(R)||g.eJ(R)||g.ON(R);(h||K)&&(h=(0,g.ky)())&&b.G.set("gpu",[h]);Zr(b.provider.videoData)&&g.Gl(b,g.Sk(b.provider),"dt",["1"]);R.cotn&&!Zr(R)&&b.YE(!0);b.provider.QX.zy()&&(R=(0,g.c)()-b.provider.QX.vD,b.YZ("playerage",{secs:(1.6**Math.round(Math.log(R/1E3)/Math.log(1.6))).toFixed()}));b.S=!0;b.C= g.x_(()=>{b.reportStats()},1E4)}; zAB=function(b,R,h,K,I){var N=b.provider.QX.G.cbrver;b.provider.QX.G.cbr==="Chrome"&&/^96[.]/.test(N)&&h==="net.badstatus"&&/rc\.500/.test(I)&&Yy(b,3);b.provider.QX.N("html5_use_ump")&&/b248180278/.test(I)&&Yy(b,4);N=b.provider.getCurrentTime();K=K===1?"fatal":"";h=[h,K,N.toFixed(3)];K&&(I+=`;a6s.${BF()}`);I&&h.push(npB(I));g.Gl(b,R,"error",h);b.S=!0}; Yy=function(b,R){b.xZ||(Ua(b,"fcnz",`${R}`),b.xZ=!0)}; Ep2=function(b,R){const h=g.Sk(b.provider);if(!b.provider.QX.experiments.O9("html5_refactor_sabr_video_format_selection_logging")||R.G.id!==b.JX){var K=b.provider.QX.Mj().G.WY(ek);K&&!b.T6&&R.reason!=="m"&&(R.reason="i");var I=[R.G.id,R.Y,b.JX,R.reason];K&&R.reason==="i"&&I.push(Oa(b,R));R.token&&I.push(R.token);g.Gl(b,h,"vfs",I);b.JX=R.G.id;K=b.provider.PY.getPlayerSize();K.width>0&&K.height>0&&(K=[Math.round(K.width),Math.round(K.height)],I=g.yH(),I>1&&K.push(I),g.Gl(b,h,"view",K));b.T6||(b.provider.QX.zy()&& Tl(b,"rqs2"),b.provider.videoData.G&&vC(b.provider.videoData.G)&&b.G.set("preload",["1"]));b.T6=!0;b.S=!0}R.reason==="m"&&++b.ri===100&&Yy(b,2);g.Gl(b,h,"vps",[b.p5]);b.nR||b.reportStats(h)}; JU2=function(b,R,h){var K=b.provider.QX;const I=K.Mj(),N=[];K.experiments.O9("html5_refactor_sabr_audio_format_selection_logging")?(R=h.G,K=[R.audio&&R.video?R.Ak?R.Ak:"":R.id],R.Nj&&R.Nj.id&&K.push(R.Nj.id),K=K.join(";"),K!==b.J&&(R=[K,b.J,h.reason],N.push(...TX2(h)),I.G.WY(ek)&&h.reason==="i"&&N.push(Oa(b,h)),N.length>0&&R.push(N.join(";")),h.token&&R.push(h.token),g.Gl(b,g.Sk(b.provider),"afs",R),b.J=K)):h.G.id!==b.J&&(K=[h.G.id,b.J,h.reason],N.push(...TX2(h)),I.G.WY(ek)&&h.reason==="i"&&N.push(Oa(b, h)),N.length>0&&K.push(N.join(";")),h.token&&K.push(h.token),g.Gl(b,R,"afs",K),b.J=h.G.id)}; kLK=function(b){b.V>=0||(b.provider.QX.K0||b.provider.PY.getVisibilityState()!==3?b.V=g.Sk(b.provider):b.Zr=!0)}; Oa=function(b,R){let h;b.provider.videoData.Sn()?(b=4,h=1):b=R.source??0;b=`${"sms"}.${b}`;h!==void 0&&(b+=`_${h}`);return b}; TX2=function(b){const R=[];if(b=b.G.audio){const h=b?.V;h!==void 0&&R.push(`${"fl"}.${h}`);b=b?.X;b!==void 0&&(b=Math.min(-b,0),R.push(`${"vg"}.${b}`),R.push("nm.4"))}return R}; Q$=function(b,R,h,K,I){const N=g.Sk(b.provider);R!==1&&R!==3&&R!==5||g.Gl(b,N,"vps",[b.p5]);Ua(b,"xvt",`t.${N.toFixed(3)};m.${I.toFixed(3)};g.${2};tt.${R};np.${0};c.${h};d.${K}`)}; npB=function(b){/[^a-zA-Z0-9;.!_-]/.test(b)&&(b=b.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return b}; FY=function(b,R){if(b.NJ&&!b.bT)return 3;if(b.isSuspended)return 1;if(b.cY?.gp())return 4;let h=(R.hX.info.audio?b.policy.wp:b.policy.vY)/(R.nz*b.policy.sE);if(b.policy.DX>0&&b.cY&&lC(b.cY)&&(R=R.hX.info.video?b.cY.Y:b.cY.G)&&!R.TI()){R=R.RY();const K=bC(R,b.getCurrentTime());K>=0&&(R=b.getCurrentTime()-R.start(K),h+=Math.max(0,Math.min(R-b.policy.DX,b.policy.Xj)))}b.policy.MJ>0&&(h=Math.min(h,b.policy.MJ));return h}; hH=function(b,R,h){YP2(b,h.ZK||"unknown");b.PY.seekTo(R,h)}; Wb=function(b,R,h,K,I){b.PY.getVideoData().eK()?I&&b.Y.SY+I/1E3>h&&(b.YZ("sdai",{seg:K,rbt:h.toFixed(3),end:b.Y.SY.toFixed(3),sd:I.toFixed(3)}),b.oP(!1,"rollback")):b.policy.Y&&b.oP(!1,"rollback");if(b.oH.isManifestless){I=qd(b.audioTrack,K,h,R);var N=qd(b.videoTrack,K,h,R);b.policy.SK||(N&&lg(b.oH,K,!0),I&&lg(b.oH,K,!1));N&&(b.videoTrack.U=[]);I&&(b.audioTrack.U=[]);b.YZ("sdai",{rollbk2_seg:K,rbt:h.toFixed(3),lt:R.toFixed(3),a:I,v:N});(I||N)&&b.policy.Y&&Na(b)}}; pJT=function(b){const R=b.Vk().filter(h=>h.namespace==="ad"); for(const h of R)if(h.start/1E3>b.getCurrentTime())return h.start/1E3;return Infinity}; Yh=function(b){var R=(0,g.c)();b.Zb=R}; JO=function(b){b.policy.Sn&&b.policy.Uh&&Math.min(Cp2(b.videoTrack),Cp2(b.audioTrack))*1E3>b.policy.jc?b.Sn.qa():b.NC()}; WA=function(b,R,h,K=!1){K&&!R.vY&&(NS()||(K=R.il)&&!K.U2(h.info)&&b.PY.lR(),R.vY=!0);R.hX!==h&&(R.hX=h)}; ny=function(b){return b.a$=R-.01}else R=!1;return R}; Na=function(b){b.FM.qa()}; cx=function(b,R){R&&Px(b.PY,new Z0(R.video,R.reason));b.G.Zr&&(R=o4q(b.G,"a"),b.PY.Fc(new Z0(R.audio,R.reason)))}; uo=function(b,R,h,K){const I=hO(R);!I||I.X||fO(I,K)||(h.abort(),b.policy.dh&&R.D?.K(),R.K?.D());if(!h.Yr()||NS())try{b.policy.CS?h.S_(K.hX.info.containerType,K.hX.info.U9)&&h.sG(K.hX.info.containerType,K.hX.info.U9,K.hX.info.mimeType):h.cz(K.hX.info.containerType,K.hX.info.mimeType)}catch(N){return g.kJ(N),b.YZ("ctexp",{name:N.name,msg:N.message}),!1}else K.hX.info.containerType!==h.Yr()&&b.YZ("ctu",{ct:NS(),prev_c:h.Yr(),curr_c:K.hX.info.containerType});K=K.hX.nR;b.policy.MY&&K&&(R=0+K.duration, K=-K.G,0===h.Cg()&&R===h.j9()||h.j1(0,R),K!==h.Kz()&&(h.yj(K),b8&&x63(b.audioTrack.yr(),h.JF())));return!0}; OOw=function(b,R,h){if(!(b.videoTrack.hX.G()&&b.audioTrack.hX.G()&&b.cY&&b.cY.Y&&b.cY.G))return!1;if(h&&b.oH.isManifestless&&(b.videoTrack.S===-1||b.audioTrack.S===-1))return!0;const K=wL(b.videoTrack,R,h);if(isNaN(K))return!1;b=wL(b.audioTrack,b.policy.CR?R:K,h);return isNaN(b)?!1:!0}; Qm2=function(b){b.V?.Mk?.itagDenylist&&b.cA(b.V?.Mk.itagDenylist);b.V?.playbackStartPolicy&&zb(b.policy,b.V?.playbackStartPolicy,3,b.V?.SJ());if(b.policy.m1){var R=b.Vn();(R=R?b.V?.yY.get(R):void 0)&&b.Y.BK(R,-1)}b.oH.C||(R=b.V?.iZ,R?.qE&&R?.Ki&&b.oH.AO&&ap(b.oH,R.qE,R.Ki));if(b.V?.wf){R=b.V.wf.get(b.Vn()||"");if(!R)return;if(b.oH&&R.formatId){const h=b.oH.X.get(am(R.formatId));h&&(h.info.debugInfo=R.debugInfo)}}b.policy.T6&&(b.V?.By().forEach(h=>{b.gT(h)}),b.V?.Vx())}; x8H=function(b){if(!b.oH.AO)return!0;const R=b.PY.getVideoData();if(b.PY.Oj())return b.YZ("ombpa",{}),!1;if(!!b.V?.iZ?.Qw!==b.oH.VB)return b.YZ("ombplmm",{}),!1;var h=R.Zr||R.liveUtcStartSeconds||R.Nc;if(b.oH.VB&&h)return b.YZ("ombplst",{}),!1;if(b.oH.C)return b.YZ("ombab",{}),!1;h=Date.now();return va(b.oH)&&!isNaN(b.MJ)&&h-b.MJ>b.policy.Hx*1E3?(b.YZ("ombttl",{}),!1):Gs(R)!==0&&!b.policy.G||R.N("html5_disable_onesie_media_for_mosaic")&&R.U8()||R.N("html5_disable_onesie_media_for_lifa_eligible")&& lT(R)?!1:!0}; XQ=function(b,R){const h=vt(R.hX,b.oH.AO);var K=b.G6?.jR(h)||[];if(K.length===0)return b.YZ("ombmsi",{}),!1;K=new TL(K);if((!b.policy.nR||isFinite(b.getCurrentTime())||b.PY.B_())&&!BmH(K,b.getCurrentTime()))return b.YZ("ostmf",{ct:b.getCurrentTime(),a:R.hX.info.Pr()}),!1;b.G6?.x3(h);return!0}; m8w=function(b,R){const h=R.hX;var K=b.oH.AO;if(x8H(b))if(b.G6&&b.G6.ud(vt(h,K))){if(K=vt(h,K),XQ(b,R)){var I=new TL(b.G6.jR(K)),N=p=>{try{p.nU()?(b.handleError(p.Oi(),p.QG()),fy(R,p),GL(p.info)&&gl(b.J,R,h,!0),b.NC()):Se(b.J,p)&&(b.X?.gp(p.info,b.xO),b.NC())}catch(l){p=K4(l),b.handleError(p.errorCode,p.details,p.severity),b.o8()}}; h.G6=!0;UP(I)&&(a6(R,new My(b.policy,K,I,b.G6,N)),z_(b.timing))}}else b.YZ("ombfmt",{})}; PhH=function(b){b.policy.S&&b.V&&(b.V.yO.forEach(R=>{b.Wq(R,-1)}),b.V.yO=[])}; V$=function(b,R){R=R||b.videoTrack&&b.videoTrack.G&&b.videoTrack.G.startTime||b.getCurrentTime();var h=WA,K=b.videoTrack,I=b.G;R=I.nextVideo&&I.nextVideo.index.dt(R)||0;I.T6!==R&&(I.gp={},I.T6=R,eH(I,I.G));R=!I.G.isLocked()&&I.U>-1&&(0,g.c)()-I.U=R&&sg(h,!0)>=R}else h.Y.length||K.Y.length?(I=h.hX.info.nz+K.hX.info.nz,I=10*(1-VK(R)/I),R=Math.max(I,R.policy.TG),h=sg(K,!0)>=R&&sg(h, !0)>=R):h=!0;if(!h)return"abr";h=b.videoTrack;if(h.Y.length>0&&h.X.Y.length===1&&j0T(h.X).info.K360);if(!b.bT||h)return"";h=b.policy.Kj;AO(b.policy)&&(h=Cz(b.U,b.bT,VK(b.U)));h=rMx(b.videoTrack,b.getCurrentTime(),h)||rMx(b.audioTrack,b.getCurrentTime(),h);return AO(b.policy)?h?"mbnm":"":(b.videoTrack.Y.length> 0||b.audioTrack.Y.length>0||Gb(b.J,b.videoTrack,b.audioTrack)||Gb(b.J,b.audioTrack,b.videoTrack))&&h?"nord":""}; Lu=function(b,R,h,K){K.info.hX.G();var I=K.info.hX.Y;if(!I||!h.U1()||h.aK()===I)return!1;let N=I;var p=h.fB();if(b.policy.fn&&p&&h.isView()&&g.wB(K.info.hX.info)){const a=new DataView(I.buffer,I.byteOffset,I.byteLength);(p=mxH(a,p))?N=new Uint8Array(p.buffer,p.byteOffset,p.byteLength):b.YZ("fenc",{})}b.policy.al&&(p=wtT(b,K,new ju([N])))&&(N=lD(p));let l;(p=K.info.hX.D(0,K.info.clipId))&&(l=p.kZ[0]);if(K===b.EW){if(b.gp+=1,b.PY.getVideoData().N("html5_shorts_gapless_restart_on_init_seg_retries")&& b.gp>5)return b.gp=0,b.PY.X1({initSegStuck:1,as:K.info.vR()}),!0}else b.gp=0,b.EW=K;b.policy.iz&&(h.abort(),R.K?.D());I=FeT(b,h,N,l,I);R.K?.U(I,l);if(I!==0)return b.policy.ge&>(b.PY.getVideoData())?(b.PY.X2()||r2(b,"sepInit",I,K.info),opx(b.PY,"sie")):r2(b,"sepInit",I,K.info),!0;K.info.fT()?(R=b.timing,R.gp||(R.gp=(0,g.c)(),g.Th("vis_a",R.gp,R.G))):(R=b.timing,R.D||(R.D=(0,g.c)(),g.Th("ais_a",R.D,R.G)));(K=K.info.hX.Kg)&&b.PY.nY(new Ds(K.key,K.type));return h.TI()}; D8B=function(b,R,h){if(b.policy.Zr&&DR(R)?.isLocked)return!1;if(h.Ph())return!0;if(!h.U1())return!1;const K=DR(R);if(!K||K.info.type===6)return!1;if(b.policy.CG||b.X?.G6(R,K.info.Dr))b.vY=0;else return b.I0.isSeeking()&&Na(b),b.vY=b.vY||(0,g.c)(),!1;if(!uo(b,R,h,K.info))return!1;if(b.oH.Y&&K.info.G===0){var I;if(h.aK()==null){var N=hO(R);if(!(I=!N||N.hX!==K.info.hX)){b:if(I=N.G6,N=K.info.G6,I.length!==N.length)I=!1;else{for(var p=0;pN)return b.policy.G&&(R===b.videoTrack?b.JX=b.JX||(0,g.c)():b.SY=b.SY||(0,g.c)()),b.policy.tj&&vAH(R.X,N,!1),!1;R===b.videoTrack?b.JX=0:b.SY=0;b.policy.Kh&&h===b.cY?.G&&b.wp&&(h.Ih()===0?(b.wp=!1,b.policy.Kh=!1):b.fR=h.Ih());a:{N=b.policy.Ty?(0,g.c)():0;p=K.S&&K.info.hX.Y||void 0;var l=K.Y;K.S&&(l=wtT(b,K,l)||l);const a=lD(l);l=b.policy.Ty?(0,g.c)():0;h=FeT(b,h,a,K.info,p);R.K?.K(K.info,h,l-N,(0,g.c)()-l);b.gp=0;if(h===0)b.NJ&&(b.NJ=!1,b.Zl=!1),b.RH=0,h=!0;else{if(h=== 2||h===5)r2(b,"checked",h,K.info);else{if(h===1){if(!b.NJ){b.NJ=!0;h=!1;break a}if(!b.Zl){b.Zl=!0;b.PY.seekTo(b.getCurrentTime(),{ZK:"quotaExceeded",IR:!0});h=!1;break a}K.info.fT()?(N=b.policy,N.vY=Math.floor(N.vY*.8),N.MJ=Math.floor(N.MJ*.8)):(N=b.policy,N.wp=Math.floor(N.wp*.8),N.MJ=Math.floor(N.MJ*.8));b.policy.G?QY(b.S,K.info.hX):xC(b.G,K.info.hX)}b.PY.X1({reattachOnAppend:h})}h=!1}}if(!h)return!1;b.policy.Zr&&K.info.J()?(b.PY.L().zy()&&b.YZ("eosl",{ls:K.info.vR()}),K.isLocked=!0):(R.SH(K),F3T(b.G, K.info));I&&(R=K.info.hX.Kg)&&b.PY.nY(new Ds(R.key,R.type));return!0}; wtT=function(b,R,h){var K;if(K=b.policy.al&&b.cY&&!b.cY.C&&!b.PY.FU())R=R.info.hX.info,K=R.Qn()&&R.V()&&R.video&&R.video.width<3840&&R.video.width>R.video.height;if(K&&(b.cY.C=!0,ND('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return h=tt3(h),b.policy.X&&b.YZ("sp4k",{s:!!h}),h}; FeT=function(b,R,h,K,I){try{const N=R===b.cY?.G?b.audioTrack:b.videoTrack;if(b.policy.Zr&&K?.J()){if(K?.C>1)return 6;N.MJ=new g.bI(()=>{const p=DR(N);b.HY()||!p?.isLocked?b.PY.L().zy()&&b.YZ("eosl",{delayA:p?.info.vR()}):Mis(N)?(b.PY.L().zy()&&b.YZ("eosl",{dunlock:p?.info.vR()}),Ma(b,N===b.audioTrack)):(b.YZ("nue",{ls:p.info.vR()}),p.info.C+=1,b.cY&&b.dH())},1E4,b); b.PY.L().zy()&&b.YZ("eosl",{delayS:K.vR()});N.MJ.start()}b.policy.iJ&&K?.hX instanceof Nz&&K.J()&&b.YZ("poseos",{itag:K.hX.info.itag,seg:K.Dr,lseg:K.hX.index.jK(),es:K.hX.index.J});R.appendBuffer(h,K,I)}catch(N){if(N instanceof DOMException){if(N.code===11)return 2;if(N.code===12)return 5;if(N.code===22||N.message.indexOf("Not enough storage")===0)return R=Object.assign({name:"QuotaExceededError",buffered:pw(R.RY()).replace(/,/g,"_"),vheap:HA(b.videoTrack),aheap:HA(b.audioTrack),message:g.co(N.message, 3),track:b.cY?R===b.cY.Y?"v":"a":"u"},rPP()),b.handleError("player.exception",R),1;g.X(N)}return 4}return b.cY.r4()?3:0}; r2=function(b,R,h,K){let I="fmt.unplayable",N=1;h===5||h===3?(I="fmt.unparseable",b.policy.G?!K.hX.info.video||T_(b.S.G).size>0||QY(b.S,K.hX):!K.hX.info.video||T_(b.G.S).size>0||xC(b.G,K.hX)):h===2&&(b.RH<15?(b.RH++,I="html5.invalidstate",N=0):I="fmt.unplayable");K=AU(K);K.mrs=b.cY?.X();K.origin=R;K.reason=h;K.trg="appenderr";b.handleError(I,K,N)}; OgB=function(b,R,h,K,I){var N=b.oH;var p=b.policy.G,l=!1;let a=-1;for(const H in N.G){var v=c5(N.G[H].info.mimeType)||N.G[H].info.fT();if(K===v)if(v=N.G[H].index,v.mQ(R.Dr)){{l=v;var B=R;const q=l.X(B.Dr);q&&q.startTime!==B.startTime?(l.segments=[],l.D(B),l=!0):l=!1}l?a=R.Dr:!R.pending&&p&&(B=v.getDuration(R.Dr),B!==R.duration&&(N.publish("clienttemp","mfldurUpdate",{itag:N.G[H].info.itag,seg:R.Dr,od:B,nd:R.duration},!1),v.D(R),l=!0))}else v.D(R),l=!0}a>=0&&N.publish("clienttemp","resetMflIndex", {[K?"v":"a"]:a},!1);N=l;t7q(b.I0,R,K,N);b.policy.T6||b.X.j0(R,h,K,I);R.Dr===b.oH.A9&&N&&$2(b.oH)&&R.startTime>$2(b.oH)&&(b.oH.Th=R.startTime+(isNaN(b.timestampOffset)?0:b.timestampOffset),b.I0.isSeeking()&&b.I0.targetTime{b.policy.X&&b.YZ("pathprobe",h)},h=>{b.PY.handleError(h)})}; bBT=function(b,R){b.xO=R;b.X&&(b.X.xO=R);R=b.xO;var h=b.videoTrack.hX.info.Qn();R.EW=h;R.BH({swebm:h});b.J.xO=b.xO;b.policy.Y&&(b.Y.xO=b.xO,PhH(b))}; R4s=function(b,R){if(b.cY&&b.cY.Y){if(b.policy.Vz){var h=b.audioTrack.D?.D()||null;if(h&&h.Pr()){var K=b.PY;if(K.iG&&(K.iG.G=h,h=K.bl,h.qoe)){h=h.qoe;K=K.iG;const I=g.Sk(h.provider);JU2(h,I,K)}}}b.policy.lG&&(h=b.videoTrack.D?.D()||null)&&h.fT()&&(K=b.PY,K.Ko&&(K.Ko.G=h,h=K.bl,h.qoe&&Ep2(h.qoe,K.Ko)));R-=isNaN(b.timestampOffset)?0:b.timestampOffset;b.getCurrentTime()!==R&&b.resume();b.I0.isSeeking()&&b.cY&&!b.cY.r4()&&(K=b.getCurrentTime()<=R&&RK.startTime>=R&&OOw(b,K.startTime,!1)); return h&&h.startTime0)h=!0;else{for(const K of b.X.values())if(K.cryptoPeriodIndex===h){h=!0;break a}h=!1}}b.publish("log_qoe",{wvagt:"reqnews",canskip:h});h||b.publish("rotated_need_key_info_ready",R)}; Nvx=function(b){switch(b){case "DRM_TRACK_TYPE_AUDIO":return 1;case "DRM_TRACK_TYPE_SD":return 2;case "DRM_TRACK_TYPE_HD":return 3;case "DRM_TRACK_TYPE_UHD1":return 4;case "DRM_TRACK_TYPE_UHD2":return 5;default:return 0}}; a4H=function(b,R=!1){var h=b.status==="LICENSE_STATUS_OK"?0:9999,K=null;if(b.license)try{K=Vo(b.license)}catch(I){g.X(I)}if(h===0&&!K)return null;K=new pa2(h,K);h!==0&&b.reason&&(K.errorMessage=b.reason);if(b.authorizedFormats){h={};const I=[],N={};for(const p of b.authorizedFormats){if(!p.trackType||!p.keyId)continue;R&&K.Y.push({trackType:Nvx(p.trackType),isHdr:!!p.isHdr});let l=l4H[p.trackType];if(l){l==="HD"&&b.isHd720&&(l="HD720");p.isHdr&&(l+="HDR");h[l]||(I.push(l),h[l]=!0);let a=null;try{a= Vo(p.keyId)}catch(v){g.X(v)}a&&(N[g.Zc(a,4)]=l)}}K.X=I;K.G=N}b.nextFairplayKeyId&&(K.nextFairplayKeyId=b.nextFairplayKeyId);b.sabrLicenseConstraint&&(K.sabrLicenseConstraint=Vo(b.sabrLicenseConstraint));return K}; v2K=function(b,R,h){b.onSuccess=R;b.onError=h}; Bvw=function(b,R,h,K){const I={timeout:3E4,onSuccess:N=>{if(!b.HY())if(mv("drm_net_r",void 0,b.timer),N=a4H(N,b.Y))b.onSuccess(N,b.requestNumber);else b.onError(b,"drm.net","t.p;p.i")}, onError:N=>{if(!b.HY())if(N&&N.error)N=N.error,b.onError(b,"drm.net.badstatus",`t.r;p.i;c.${N.code};s.${N.status}`,N.code);else b.onError(b,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:()=>{b.onError(b,"drm.net",`${"rt"}.req.${b.requestNumber}`)}}; K&&(I.fK=`Bearer ${K}`);g.Rq(h,"player/get_drm_license",R,I)}; D0=function(b,R,h=!1){ba(R);(h||b.QX.zy())&&b.publish("ctmp","drmlog",R)}; HB3=function(b){let R=b.baseUrl;IaB(R)||b.error("drm.net",2,"t.x");if(!W6(R,"fexp")){const h=["23898307","23914062","23916106","23883098"].filter(K=>b.QX.experiments.experiments[K]); h.length>0&&(b.S.fexp=h.join())}for(const h of Object.keys(b.S))R=CRD(R,h,b.S[h]);return R}; f4B=function(b,R,h,K){qJB(R,(I,N)=>{if(b.QX.Mj().G.WY(dzD)&&b.Y.flavor==="widevine")a:{let p=!1;try{p=iD(I,Yje).type===4}catch(l){}if(p){if(D0(b,{cert_cache_hit:!!b.dB?.certificate},!0),K){R?.update(K);break a}}else if(h){h.G=R??null;h.licenseRequest=I;break a}bW(b,I,N,p)}else bW(b,I,N)},(I,N,p)=>{if(!b.HY()){N=void 0; var l=1;g.k2(b.Y)&&g.Mz(b.QX)&&b.QX.N("html5_enable_safari_fairplay")&&p===1212433232&&(N="ERROR_HDCP",l=b.QX.N("html5_safari_fairplay_ignore_hdcp")?0:l);b.error("drm.keyerror",l,I,N)}},()=>{b.HY()||(D0(b,{onkyadd:1}),b.C||(b.publish("sessionready"),b.C=!0))},I=>{b.lB(I)})}; bW=function(b,R,h,K=!1){if(!b.HY())if(R){D0(b,{onkmtyp:h});b.status="km";switch(h){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":yEB(b,R);return;default:b.publish("ctmp","message_type",{t:h,l:R.byteLength})}b.nR||(mv("drm_gk_f",void 0,b.videoData.G6),b.nR=!0,b.publish("newsession",b));if(EJ(b.Y)&&(R=t42(R),!R))return;R=new jpD(R,++b.requestNumber,b.videoData.G6,b.QX.N("html5_enable_vp9_fairplay"));v2K(R,I=>{AEs(b,I,K)},(I,N,p)=>{if(!b.HY()){var l= 0; I.G.Y>=3&&(l=1,N="drm.net.retryexhausted");D0(b,{onlcsrqerr:N,info:p});b.error(N,l,p);b.shouldRetry(R5(l),I)&&iBq(b,I)}}); g.n(b,R);z43(b,R)}else b.error("drm.unavailable",1,"km.empty")}; UzT=function(b,R,h=null,K){let I=null;try{I=R.createSession(b.K,N=>{D0(b,{m:N})}),f4B(b,I,K,h)}catch(N){R="t.g",N instanceof DOMException&&(R+=`;c.${N.code}`),b.publish("licenseerror","drm.unavailable",1,R,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}return I}; yEB=function(b,R){D0(b,{sdpvrq:1});b.J=Date.now();if(b.Y.flavor!=="widevine")b.error("drm.provision",1,`e.flavor;f.${b.Y.flavor};l.${R.byteLength}`);else{var h={cpn:b.videoData.clientPlaybackNonce};Object.assign(h,b.QX.G);h=g.z9("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",h);R={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, R)}),responseType:"arraybuffer"};g.R$(h,R,3,500).then(YI(K=>{K=K.xhr;if(!b.HY()){K=new Uint8Array(K.response);var I=String.fromCharCode.apply(null,K);try{var N=JSON.parse(I)}catch(p){}N&&N.signedResponse?(b.publish("ctmp","drminfo",{provisioning:1}),N=(Date.now()-b.J)/1E3,b.J=NaN,b.publish("ctmp","provs",{et:N.toFixed(3)}),b.X&&b.X.update(K)):(N=N&&N.error&&N.error.message,K="e.parse",N&&(K+=`;m.${N}`),b.error("drm.provision",1,K))}}),YI(K=>{b.HY()||b.error("drm.provision",1,`e.${K.errorCode};c.${K.xhr&& K.xhr.status}`)}))}}; AEs=function(b,R,h){if(!b.HY())if(D0(b,{onlcsrsp:1}),b.status="rr",R.statusCode!==0)b.error("drm.auth",1,`t.f;c.${R.statusCode}`,R.errorMessage||void 0);else{mv("drm_kr_s",void 0,b.videoData.G6);if(R.heartbeatParams&&R.heartbeatParams.url&&b.videoData.N("outertube_streaming_data_always_use_staging_license_service")){var K=b.Y.X.match(/(.*)youtube.com/g);K&&(R.heartbeatParams.url=K[0]+R.heartbeatParams.url)}R.heartbeatParams&&b.publish("newlicense",R.heartbeatParams);R.X&&(b.V=R.X,b.videoData.m5|| b.publish("newlicense",new Gwx),b.videoData.m5=!0,b.D=dx(b.V,I=>I.includes("HDR"))); R.Y&&(b.U=R.Y);R.G&&(b.QX.N("html5_enable_vp9_fairplay")&&b.Y.G()?(K=g.Zc(Qo(b.fairplayKeyId),4),b.G[K]={type:R.G[K],status:"unknown"}):b.G=uR(R.G,I=>({type:I,status:"unknown"}))); JE(b.Y)&&(R.message=h_T(g.Zc(R.message)));b.X&&(D0(b,{updtks:1}),b.status="ku",h&&b.dB&&b.QX.Mj().G.WY(dzD)&&(b.dB.certificate=R.message),b.X.update(R.message).then(()=>{mv("drm_kr_f",void 0,b.videoData.G6);Ro(b)||(D0(b,{ksApiUnsup:1}),b.publish("keystatuseschange",b));!h&&b.dB&&b.QX.Mj().G.WY(g2H)&&(b.dB.G=UzT(b,b.dB.mediaKeys,b.dB?.certificate,b.dB))},I=>{I=`msuf.req.${b.requestNumber};msg.${g.co(I.message,3)}`; b.error("drm.keyerror",1,I)})); g.k2(b.Y)&&b.publish("fairplay_next_need_key_info",b.baseUrl,R.nextFairplayKeyId);b.QX.N("html5_enable_vp9_fairplay")&&b.Y.G()&&b.publish("qualitychange",WyH(b.V));R.sabrLicenseConstraint&&b.publish("sabrlicenseconstraint",R.sabrLicenseConstraint)}}; z43=function(b,R){b.status="km";mv("drm_net_s",void 0,b.videoData.G6);const h=new g.fd(b.QX.Pa),K={context:g.zP(h.config_||g.iy())};K.drmSystem=SJe[b.Y.flavor];K.videoId=b.videoData.videoId;K.cpn=b.videoData.clientPlaybackNonce;K.sessionId=b.sessionId;K.licenseRequest=g.Zc(R.message);K.drmParams=b.videoData.drmParams;isNaN(b.cryptoPeriodIndex)||(K.isKeyRotated=!0,K.cryptoPeriodIndex=b.cryptoPeriodIndex);var I=!!b.videoData.Y?.D()?.isHdr();K.drmVideoFeature=I?"DRM_VIDEO_FEATURE_PREFER_HDR":"DRM_VIDEO_FEATURE_SDR"; b.QX.experiments.Mj().G.WY(n23)&&(K.context=g.MF(b.videoData));if(K.context&&K.context.client){if(I=b.QX.G)K.context.client.deviceMake=I.cbrand,K.context.client.deviceModel=I.cmodel,K.context.client.browserName=I.cbr,K.context.client.browserVersion=I.cbrver,K.context.client.osName=I.cos,K.context.client.osVersion=I.cosver;b.QX.experiments.Mj().G.WY(n23)||(K.context.user=K.context.user||{},b.videoData.nR&&(K.context.user.credentialTransferTokens=[{token:b.videoData.nR,scope:"VIDEO"}]),b.videoData.wp&& (K.context.user.kidsParent={oauthToken:b.videoData.wp}));K.context.request=K.context.request||{};K.context.request.mdxEnvironment=b.videoData.mdxEnvironment||K.context.request.mdxEnvironment;g.k2(b.Y)&&(K.fairplayKeyId=g.Zc(Qo(b.fairplayKeyId)));g.js(b.QX,b.videoData.J()).then(N=>{Bvw(R,K,h,N);b.status="rs"})}else b.error("drm.net",2,"t.r;ic.0")}; E2x=function(b,R,h){const K={};K.isHdr=R.includes("HDR");switch(R.replace("HDR","").replace("720","")){case "AUDIO":K.trackType=1;break;case "SD":K.trackType=2;break;case "HD":K.trackType=3;break;case "UHD1":K.trackType=4;break;case "UHD2":K.trackType=5;break;default:K.trackType=0}!K.trackType||h[R]||Ro(b)&&!hs(b,R)||(b.authorizedFormats.push(K),h[R]=!0)}; TvT=function(b,R){const h=[];for(const K of Object.keys(b.G))h.push(`${K}_${b.G[K].type}_${b.G[K].status}`);return h.join(R)}; Ro=function(b){var R;if(R=b.G6&&b.X!=null)b=b.X,R=!(!b.G||!b.G.keyStatuses);return R}; iBq=function(b,R){var h=R.G.getValue();h=new g.bI(()=>{z43(b,R)},h); g.n(b,h);h.start();g.sq(R.G);D0(b,{rtyrq:1})}; K_=function(b){const R={};R[b.status]=Ro(b)?TvT(b,"."):b.V.join(".");return R}; hs=function(b,R){for(const h in b.G)if(b.G[h].status==="usable"&&b.G[h].type===R)return!0;return!1}; JET=function(b,R){for(const h in b.G)if(b.G[h].type===R)return b.G[h].status}; kw3=function(b){let R;R=b[0];b[0]=b[3];b[3]=R;R=b[1];b[1]=b[2];b[2]=R;R=b[4];b[4]=b[5];b[5]=R;R=b[6];b[6]=b[7];b[7]=R}; WyH=function(b){return g.iR(b,"UHD2")||g.iR(b,"UHD2HDR")?"highres":g.iR(b,"UHD1")||g.iR(b,"UHD1HDR")?"hd2160":g.iR(b,"HD")||g.iR(b,"HDHDR")?"hd1080":g.iR(b,"HD720")||g.iR(b,"HD720HDR")?"hd720":"large"}; t42=function(b){var R="";for(let h=0;h{b.onClosed()}),null)):b.Y&&(sO(b.V,b.Y,["mskeymessage", "webkitkeymessage"],b.C),sO(b.V,b.Y,["mskeyerror","webkitkeyerror"],b.G6),sO(b.V,b.Y,["mskeyadded","webkitkeyadded"],b.U))}; e43=function(b,R,h){g.X(h);b.X&&(h instanceof DOMException&&(R+=`;n.${h.name};m.${h.message}`),b.X(R))}; OB2=function(b){sO(b.V,b.element,["keymessage","webkitkeymessage"],b.G6);sO(b.V,b.element,["keyerror","webkitkeyerror"],b.U);sO(b.V,b.element,["keyadded","webkitkeyadded"],b.K)}; Qpx=function(b,R=null){if(b.G.keySystemAccess)return b.D=b.D.then(()=>b.mediaKeys?Promise.resolve():R?.mediaKeys&&R.z6?.yk()?(b.mediaKeys=R?.mediaKeys,Promise.resolve()):b.G.keySystemAccess.createMediaKeys().then(h=>{b.HY()||(b.mediaKeys=h,R?.z6?.yk()&&(R.mediaKeys=h))})).then(()=>{const h=R?.hO(); return b.element&&b.element!==h&&b.element.mediaKeys?b.element.setMediaKeys(null):Promise.resolve()}).then(()=>{b.element=R?.hO(); return b.element&&b.element.mediaKeys!==b.mediaKeys?b.element.setMediaKeys(b.mediaKeys):Promise.resolve()}),b.D; nB(b.G)?b.Y=new (Wa())(b.G.keySystem):Tw(b.G)?(b.Y=new (Wa())(b.G.keySystem),b.element?.webkitSetMediaKeys(b.Y)):OB2(b);return null}; xzK=function(b,R){const h=new Uint8Array(270);for(let K=0;K<135;K++)h[K*2]=''.charCodeAt(K);b=b.Y.createSession("video/mp4",R,h);return new s8(null,null,null,null,b)}; PgT=function(b,R){R=mzT(R,b.G.Oz);R=b.Y.createSession("video/mp4",R);return new s8(null,null,null,null,R,b.J)}; $i=function(b,R){let h=b.S[R.sessionId];!h&&b.X&&(h=b.X,b.X=null,h.sessionId=R.sessionId,b.S[R.sessionId]=h);return h}; mzT=function(b,R){var h=b.subarray(4);h=new Uint16Array(h.buffer,h.byteOffset,h.byteLength/2);h=String.fromCharCode.apply(null,h).match(/ek=([0-9a-f]+)/)[1];var K="";for(var I=0;I{ZBH(b)}),YI(h=>{if(!b.HY()){g.X(h); var K="t.a";h instanceof DOMException&&(K+=";n."+h.name+";m."+h.message);b.publish("licenseerror","drm.unavailable",1,K,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(b.Y({mdkrdy:1}),b.G6=!0); b.C&&(R=Qpx(b.C,b.mediaElement))}; ZBH=function(b){if(!b.HY())if(b.QX.N("html5_drm_set_server_cert")||b.G.G()){const R=b.mediaKeys.setServerCertificate();R?R.then(YI(h=>{b.QX.zy()&&b.publish("ctmp","ssc",{success:h})}),YI(h=>{b.publish("ctmp","ssce",{n:h.name, m:h.message})})).then(YI(()=>{Io(b)})):Io(b)}else Io(b)}; Xaq=function(b,R,h){b.wp=!0;h=new Ds(R,h);b.QX.N("html5_eme_loader_sync")&&(b.J.get(R)||b.J.set(R,h));uoe(b,h)}; uoe=function(b,R){if(!b.HY()){b.Y({onInitData:1});if(b.QX.N("html5_eme_loader_sync")&&b.videoData.X&&b.videoData.X.G()){var h=b.D.get(R.initData);R=b.J.get(R.initData);if(!h||!R)return;R=h;h=R.initData;b.J.remove(h);b.D.remove(h)}b.Y({initd:R.initData.length,ct:R.contentType});if(b.G.flavor==="widevine")if(b.SY&&!b.videoData.isLivePlayback)Nw(b);else{if(!(b.QX.N("vp9_drm_live")&&b.videoData.isLivePlayback&&R.Qn)){b.SY=!0;h=R.cryptoPeriodIndex;var K=R.G;Hge(R);R.Qn||(K&&R.G!==K?b.publish("ctmp","cpsmm", {emsg:K,pssh:R.G}):h&&R.cryptoPeriodIndex!==h&&b.publish("ctmp","cpimm",{emsg:h,pssh:R.cryptoPeriodIndex}));b.publish("widevine_set_need_key_info",R)}}else b.gp(R)}}; Nw=function(b){if(b.wp&&b.G6&&!b.T6){for(;b.V.length;){const R=b.V[0],h=V4s(b)?qFs(R):g.Zc(R.initData);if(b.G.G()&&!R.Y)b.V.shift();else{if(b.X.get(h))if(b.G.flavor!=="fairplay"||b.G.G()){b.V.shift();continue}else b.X.delete(h);Hge(R);break}}b.V.length&&b.createSession(b.V[0])}}; Io=function(b){b.HY()||(b.G6=!0,b.Y({onmdkrdy:1}),Nw(b))}; V4s=function(b){return b.G.flavor==="widevine"&&b.videoData.N("html5_drm_cpi_license_key")}; Cgw=async function(b){if(g.y5()&&b.mediaKeys.mediaKeys?.getMetrics){var R=await b.mediaKeys.getMetrics();R&&(qK(R)||(R=g.dn(R)),/^[A-Za-z0-9_-]+={0,3}$/.test(R)||(R=g.co(R,void 0,!0)),b.publish("ctmp","drm",{metrics:R}))}}; M4q=function(b,R){if(b.videoData.K)return!1;b.uv.CR+=1;if(b.uv.CR<=10)return!1;R.exiled=`${b.uv.CR}`;b.n5("qoe.start15s",R);b.PY.publish("playbackstalledatstart");return!0}; rEq=function(b){return b.Y?!0:b.uv.G6==="yt"?ve(b.videoData)?b.PY.loader?.ri():b.videoData.K?b.videoData.pR<25:!b.videoData.pR:!1}; LyD=function(b){if(!b.Y){b.Y=!0;var R=b.PY.getPlayerState();R=R.isPaused()||R.isSuspended();b.PY.Jb();R&&!Zr(b.videoData)||b.PY.publish("signatureexpired")}}; p_=function(b,R,h){const K=b.videoData.Y;var I=b.videoData.V,N=b.uv.N("html5_disable_codec_fallback_for_drm")&&b.videoData.OD();GT(b.PY.getVideoData())&&opx(b.PY,"pe");b.uv.Mj().G.WY(waq)&&(h.bkg=b.PY.SS().isBackground()?"1":"0");if((R==="progressive.net.retryexhausted"||R==="fmt.unplayable"||R==="fmt.decode")&&!b.PY.EV.S&&K&&K.itag==="22")return b.PY.EV.S=!0,b.n5("qoe.restart",{reason:"fmt.unplayable.22"}),b.PY.Ji(),!0;var p=!1;if(b.videoData.isExternallyHostedPodcast){if(p=b.videoData.hN)h.mimeType= p.type,b.YZ("3pp",{url:p.url});h.ns="3pp";b.PY.ij(R,1,"VIDEO_UNAVAILABLE",ba((new g.hz(R,h,1)).details));return!0}var l=b.Q4+3E4<(0,g.c)()||b.G.isActive();if(b.uv.N("html5_empty_src")&&b.videoData.isAd()&&R==="fmt.unplayable"&&/Empty src/.test(`${h.msg}`))return h.origin="emptysrc",b.n5("auth",h),!0;l||FyP(b.PY.SS())||(h.nonfg="paused",l=!0,b.PY.pauseVideo());R!=="fmt.decode"&&R!=="fmt.unplayable"||!I?.J()||(VaT(b.uv.S,I.U9),h.acfallexp=I.U9,p=l=!0);!l&&b.X>0&&(b.G.start(),l=!0,h.delayed="1",--b.X); I=b.PY.loader;l||!K?.G()&&!K?.V()||N||(VaT(b.uv.S,K.U9),p=l=!0,h.cfallexp=K.U9);if(!l)return M4q(b,h);N=!1;b.S?b.Q4=(0,g.c)():N=b.S=!0;l=b.videoData;if(l.gp){l=l.gp.S();var a=Date.now()/1E3+1800;l=l6048E5&&lW(b,"signature",!0);return!1}; hJw=function(b){if(b.videoData.errorDetail==="7"&&g.hB(b.uv)){const R=!b.videoData.isInlinePlaybackNoAd;R&&b.uv.U8++;lW(b,"innertube_player_reload_required",R&&b.uv.U8>1);return!0}return!1}; ao=function(b,R="fmt.noneavailable"){var h=b.uv.S;h.J=!1;h.G=!0;b.n5("qoe.restart",{e:R,detail:"hdr"});b.PY.lR(!0)}; KgT=function(b){if(b.PY.SS().isInline())return vM;b=l9[wn()];return g.I8("auto",b,!1,"s")}; s4w=function(b,R){var h;a:if((h=R.G)&&h.videoInfos.length){for(var K of h.videoInfos)if(K.S?.smooth){h=K.video.qualityOrdinal;break a}h=h.videoInfos[0].video.qualityOrdinal}else h=0;(g.dj("armv7")||g.dj("aarch64")||g.dj("android"))&&!g.hB(b.QX)&&R.G.videoInfos[0].V()&&(h=Math.min(h,g.m6.large));K=g.fg(b.QX.experiments,"html5_chipset_soft_cap");K>0&&(h=Math.min(h,K));K=g.fg(b.QX.experiments,"html5_sabr_non_streaming_xhr_soft_cap");!F2&&K>0&&(h=Math.min(h,K));if(K=g.fg(b.QX.experiments,"html5_max_vertical_resolution")){let p= 4320;for(var I=0;IK&&(p=Math.min(p,N.video.qualityOrdinal))}if(p<4320){I=0;for(N=0;N60&&!g.hB(b.QX)?new $a(0,360,!1,"v"):vM}; HM=function(b,R,h){if(b.QX.experiments.O9("html5_disable_client_autonav_cap_for_onesie")&&R.bd()||g.hB(b.QX)&&(wn(-1)>=1080||R.osid))return vM;let K=g.fg(b.QX.experiments,"html5_autonav_quality_cap");const I=g.fg(b.QX.experiments,"html5_autonav_cap_idle_secs");return K&&R.isAutonav&&i$()/1E3>I?(h&&(K=$Hw(b,h,K)),new $a(0,K,!1,"e")):vM}; qw=function(b,R){if(!R.G.G())return b.S?new $a(0,360,!1,"b"):vM;var h=!1,K=!1;for(var I of R.G.videoInfos)I.G()?h=!0:K=!0;h=h&&K;K=0;I=g.fg(b.QX.experiments,"html5_performance_cap_floor");I=b.QX.Y?240:I;for(const N of R.G.videoInfos){if(h&&N.G())continue;R=dv(N.U9,N.video.fps,b.X);const p=N.video.qualityOrdinal;if(Math.max(R,I)>=p){K=p;break}}return new $a(0,K,!1,"b")}; f_=function(b,R){const h=d7(b,R.G?.videoInfos),K=b.PY.getPlaybackRate();return K>1&&h?(b=cJe(b.QX.S,R.G.videoInfos,K),new $a(0,b,!0,"o")):new $a(0,0,!1,"o")}; N63=function(b,R){if(b.N("html5_disable_ustreamer_constraint_for_sabr")&&ve(R.videoData))return vM;const h=b.PY.wP();b.N("html5_use_video_quality_cap_for_ustreamer_constraint")&&h&&h.EG>0&&pC(R.videoData.Z5)&&(b=h.EG,R.videoData.Z5=new $a(0,b,!1,"u"));return R.videoData.Z5}; yZ=function(b,R,h){g.hB(b.QX)&&(h=h.compose(b.NE(R)));return h}; d7=function(b,R){return R&&g.hB(b.QX)?R.some(h=>h.video.Y()):!1}; $Hw=function(b,R,h){if(b.N("html5_optimality_defaults_chooses_next_higher")&&h)for(b=R.G.videoInfos,R=1;R49?"p60":K>32?"p48":""}`;h=dv(h,K,N);I>0&&(h=Math.min(h,I));!fB.has(R)&&D$().includes(R)?(K=oe(),+K[R]>0&&(h=Math.min(+K[R],h)),K[R]!==h&&(K[R]=h,g.Iz("yt-player-performance-cap",K,2592E3))):fB.has(R)||N==null?(K=D$().slice(),K.includes(R)||(K.push(R),g.Iz("yt-player-performance-cap-active-set",K,2592E3)),qz.set(R,h)):(fB.add(R),N?.set(R,h));b.PY.F1()}; aLq=function(){return uR(oe(),b=>`${b}`)}; vrq=function(b,R,h,K){if(!R||!h||!R.videoData.Y)return!1;const I=g.fg(b.QX.experiments,"html5_df_downgrade_thresh"),N=b.N("html5_log_media_perf_info");if(!((0,g.c)()-b.V<5E3?0:N||I>0))return!1;const p=((0,g.c)()-b.V)/1E3;b.V=(0,g.c)();h=h.getVideoPlaybackQuality();if(!h)return!1;const l=h.droppedVideoFrames-b.J,a=h.totalVideoFrames-b.K;b.J=h.droppedVideoFrames;b.K=h.totalVideoFrames;const v=h.displayCompositedVideoFrames===0?0:h.displayCompositedVideoFrames||-1;N&&b.QX.zy()&&b.PY.YZ("ddf",{dr:h.droppedVideoFrames, de:h.totalVideoFrames,comp:v});if(K)return b.G=0,!1;if((a-l)/p>b.U||!I||g.hB(b.QX))return!1;b.G=(a>60?l/a:0)>I?b.G+1:0;if(b.G!==3)return!1;lLP(b,R.videoData.Y);b.PY.YZ("dfd",Object.assign({dr:h.droppedVideoFrames,de:h.totalVideoFrames},aLq()));return!0}; B6P=function(b,R){b.N("html5_log_media_perf_info")&&(b.PY.YZ("perfdb",aLq()),b.PY.YZ("sessionperfdb",Object.fromEntries(qz.entries())),b.PY.YZ("playbackperfdb",Object.fromEntries(b.X.entries())),b.PY.YZ("hwc",{nch:navigator.hardwareConcurrency},!0),R&&b.PY.YZ("mcdb",{itags:R.G.videoInfos.filter(h=>h.S?.smooth===!1).map(h=>h.itag).join("-")}))}; Htx=function(b){switch(b.QX.playerCanaryStage?.toLowerCase()){case "xsmall":return"HTML5_PLAYER_CANARY_STAGE_XSMALL";case "small":return"HTML5_PLAYER_CANARY_STAGE_SMALL";case "medium":return"HTML5_PLAYER_CANARY_STAGE_MEDIUM";case "large":return"HTML5_PLAYER_CANARY_STAGE_LARGE";case "xlarge":return"HTML5_PLAYER_CANARY_STAGE_XLARGE";default:return"HTML5_PLAYER_CANARY_STAGE_UNSPECIFIED"}}; qww=function(b){b.G>=0||(b.provider.PY.getVisibilityState()===3?b.S=!0:(b.G=g.Sk(b.provider),b.delay.start()))}; dHH=function(b){if(!(b.Y<0)){var R=g.Sk(b.provider),h=R-b.V;b.V=R;b.playerState.Y()?b.playTimeSecs+=h:b.playerState.isBuffering()&&!b.playerState.G(16)&&(b.rebufferTimeSecs+=h)}}; jh=function(b){b.G.startTime=b.X;b.G.endTime=b.Y;b.fm?.length&&(b.G.fm=b.fm);b.A8?.length&&(b.G.A8=b.A8);let R=!1;b.segments.length&&g.Ng(b.segments).isEmpty()?(b.segments[b.segments.length-1].previouslyEnded&&(b.G.previouslyEnded=!0),b.segments[b.segments.length-1]=b.G,R=!0):b.segments.length&&b.G.isEmpty()||(b.segments.push(b.G),R=!0);R?b.G.endTime===0&&(b.previouslyEnded=!1):b.G.previouslyEnded&&(b.previouslyEnded=!0);b.J+=b.Y-b.X;b.G=ts(b.provider);b.G.previouslyEnded=b.previouslyEnded;b.provider.QX.Mj().G.WY(fL2)&& (b.S+=JSON.stringify(b.G).length);b.previouslyEnded=!1;b.X=b.Y}; ynK=function(b){g.Pg(b.D);b.D=NaN}; ts2=function(b){ynK(b);b.D=g.x_(()=>{b.update()},100); b.yG=g.Sk(b.provider);b.G=ts(b.provider)}; j4e=function(b,R,h){h-=b.yG;return R===b.Y&&h>.5}; As=function(b,R){const h=b.sendVisitorIdHeader?b.visitorData:void 0;return g.js(b.QX,b.accessToken).then(K=>A0(b.uri,b.QX,b.pageId,h,K,R))}; AnH=function(b){b.indexOf("watchtime")!==-1&&g.yp("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:b}})}; itT=function(b,R){b.attestationResponse&&As(b).then(h=>{h=h||{};h.method="POST";h.postParams={atr:b.attestationResponse};b.MJ?b.gp?Dw().sendAndWrite(R,h):Dw().sendThenWrite(R,h):g.LD(R,h)})}; zJT=function(b){const R={Lo:[]};if(dx(b.segments,h=>!!h.fm||!!h.A8)){for(const h of b.segments)R.Lo.push({fm:h.fm||[], A8:h.A8||[]});b=g.gn(R,QIq);return g.Zc(b,4)}}; UH2=function(b,R){return()=>{b.QX.N("html5_simplify_pings")?(b.G=b.SY,b.jn=R(),b.Ys=0,b.send()):As(b).then(h=>{var K=hy(b);K.cmt=K.len;K.lact="0";const I=R().toFixed(3);K.rt=Number(I).toString();K=g.z9(b.uri,K);b.QX.N("vss_through_gel_double")&&AnH(K);b.MJ?(h==null&&(h={}),b.gp?Dw().sendAndWrite(K,h):Dw().sendThenWrite(K,h)):h?g.LD(K,h):g.Co(K)})}}; b6=function(b,R){return g.an(R,b.Y).join(",")}; jF2=function(b,R){if(R&&b.V){var h=new Set(["q","feature","mos"]),K=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),I=new Set(["aqi","autonav","list","ssrt","upt"]);b.V.ns==="3pp"&&(R.ns="3pp");for(const N of Object.keys(b.V))K.has(N)||h.has(N)||I.has(N)&&!b.V[N]||(R[N]=b.V[N])}}; iW=function(b,R){var h=GzP(b.provider);Object.assign(h,{state:b.U});R=new grK(b.provider.videoData,b.provider.QX,R,h);R.G=b.provider.PY.mH();h=b.provider.videoData.clientPlaybackNonce;R.G=b.provider.PY.nJ(h);b.provider.videoData.isLivePlayback||(R.SY=b.provider.PY.getDuration(h));b.provider.videoData.G&&(h=b.provider.videoData.G.hh(R.G))&&(R.G6=h-R.G,yy(b.provider.videoData)&&(R.G+=b.provider.PY.Kz(),R.G6-=b.provider.PY.Kz()));R.jn=g.Sk(b.provider);R.segments=[ts(b.provider)];return R}; WgB=function(b){var R=b.provider.videoData.Ge;const h=b.provider.videoData.YM,K=[10+R,10,10,40+h-R,40];var I=b.provider.videoData.getPlayerResponse()?.playbackTracking;const N=I?.videostatsScheduledFlushWalltimeSeconds;I=I?.videostatsDefaultFlushIntervalSeconds;if(!(N&&N.length>0&&I))return K;R=[N[0]+R,...N.slice(1).map((p,l)=>p-N[l]), I+h-R,I];return R.some(p=>p<0)?(g.Yp(b.logger,347111855,`Neg vss scheduled pings ${N} ${I}`),K):R}; zV=function(b,R=NaN){const h=g.Sk(b.provider);R=isNaN(R)?h:R;R=Math.ceil(R);const K=b.T6[b.G6];b.G6+1{if(!b.HY()){b.S=NaN;var N=b.C(),p=SwP(b,N);p.U=I;var l=b.MJ>1E3;!(N.length>1)&&N[0].isEmpty()||l||(p.D=zV(b,I));p.send();b.MJ++}},(I-h)*1E3); return b.Y=I}; U8=function(b,R){const h=b.provider.QX;g.js(b.provider.QX,b.provider.videoData.J()).then(K=>{const I=b.provider.QX.pageId,N=b.provider.QX.sendVisitorIdHeader?b.provider.videoData.visitorData:void 0,p=b.provider.QX.N("vss_pings_using_networkless")||b.provider.QX.N("kevlar_woffle"),l=b.provider.QX.N("allow_skip_networkless");K=A0(R,h,I,N,K);io(R,K,{token:b.provider.videoData.g3,Fw:b.provider.videoData.SR,mdxEnvironment:b.provider.videoData.mdxEnvironment},h,void 0,p&&!l,!1,!0)})}; SwP=function(b,R){const h=iW(b,"watchtime");nrK(b)&&(h.delayThresholdMet=!0,b.vY=!0);if(b.X>0){for(const K of R)K.startTime-=b.X,K.endTime-=b.X;h.G-=b.X}else h.G=b.G.Y;h.segments=R;return h}; nrK=function(b){var R;if(R=b.provider.videoData.isLoaded()&&b.provider.videoData.eb&&b.V&&!b.vY)R=b.G,R=R.J+R.mH()-R.X>=b.provider.videoData.eb;return!!R}; GV=function(b,R){const h=b.K(!isNaN(b.Y));R&&(b.Y=NaN);return h}; ErD=function(b){b.provider.videoData.youtubeRemarketingUrl&&!b.JX&&(U8(b,b.provider.videoData.youtubeRemarketingUrl),b.JX=!0)}; T6x=function(b){b.provider.videoData.googleRemarketingUrl&&!b.SY&&(U8(b,b.provider.videoData.googleRemarketingUrl),b.SY=!0)}; g7=function(b){if(!b.HY()&&b.V){b.U="paused";var R=GV(b);R.isFinal=!0;R.send();b.dispose()}}; Jnq=function(b,R,h){if(!b.gp){h||(h=iW(b,"atr"));h.attestationResponse=R;try{h.send()}catch(K){if(K.message!=="Unknown Error")throw K;}b.gp=!0}}; g.Sk=function(b){return kzD(b)()}; iOx=function(b){const R=navigator.connection?.type||"";if(R)return Yws[R]||Yws.other;if(g.hB(b.QX)){b=navigator.userAgent;if(/[Ww]ireless[)]/.test(b))return 3;if(/[Ww]ired[)]/.test(b))return 30}return 0}; ts=function(b){const R=new eJP;R.X=GzP(b).cc?.toString()||"-";R.playbackRate=b.PY.getPlaybackRate();var h=b.PY.getVisibilityState();h!==0&&(R.visibilityState=h);b.QX.xZ&&(R.Y=1);R.V=b.videoData.nX;R.compositeLiveStatusToken=b.videoData.compositeLiveStatusToken;R.heartbeatLoggingToken=b.videoData.heartbeatLoggingToken;h=b.PY.getAudioTrack();h.Nj&&h.Nj.id&&h.Nj.id!=="und"&&(R.audioId=h.Nj.id);R.connectionType=iOx(b);R.volume=b.PY.getVolume();R.muted=b.PY.isMuted();R.clipId=b.PY.Fq()||"-";R.G=b.videoData.WB|| "-";return R}; GzP=function(b){const R=b.PY.Jw()||{};R.fs=b.PY.XG();R.volume=b.PY.getVolume();R.muted=b.PY.isMuted()?1:0;R.mos=R.muted;R.clipid=b.PY.Fq();R.playerheight=b.PY.getPlayerSize()?.height||0;R.playerwidth=b.PY.getPlayerSize()?.width||0;b=b.videoData;const h={};b.Y&&(h.fmt=b.Y.itag,b.V&&(b.xZ?b.V.itag!==b.Y.itag:b.V.itag!=b.Y.itag)&&(h.afmt=b.V.itag));h.ei=b.eventId;h.list=b.playlistId;h.cpn=b.clientPlaybackNonce;b.videoId&&(h.v=b.videoId);b.OU&&(h.infringe=1);(b.pz?0:b.jn)&&(h.splay=1);const K=EN(b);K&& (h.live=K);b.qn&&(h.sautoplay=1);b.xV&&(h.autoplay=1);b.zL&&(h.sdetail=b.zL);b.partnerId&&(h.partnerid=b.partnerId);b.osid&&(h.osid=b.osid);b.P_&&(h.cc=g.cjT(b.P_));return Object.assign(R,h)}; kzD=function(b){if(!b.G){const R=g.Lw(K=>{let I=(0,g.c)();K&&I<=631152E6&&(b.PY.YZ("ytnerror",{issue:28799967,value:`${I}`}),I=(new Date).getTime()+2);return I},b.QX.N("html5_validate_yt_now")),h=R(); b.G=()=>Math.round(R()-h)/1E3; b.PY.Zn()}return b.G}; WM=function(b){b.Y&&qww(b.Y);b.qoe&&kLK(b.qoe)}; xH2=function(b,R,h,K){h.adFormat=h.CR;const I=R.PY;R=new Ots(new Q4K(h,R.QX,{getDuration:()=>h.lengthSeconds, getCurrentTime:()=>I.getCurrentTime(), mH:()=>I.mH(), nJ:()=>I.nJ(), B7:()=>I.B7(), getPlayerSize:()=>I.getPlayerSize(), getAudioTrack:()=>h.getAudioTrack(), getPlaybackRate:()=>I.getPlaybackRate(), J3:()=>I.J3(), getVisibilityState:()=>I.getVisibilityState(), vI:()=>I.vI(), Jw:()=>I.Jw(), getVolume:()=>I.getVolume(), isMuted:()=>I.isMuted(), XG:()=>I.XG(), Fq:()=>I.Fq(), getProximaLatencyPreference:()=>I.getProximaLatencyPreference(), Zn(){I.Zn()},YZ(N,p){I.YZ(N,p)},CL:()=>I.CL(), Kz:()=>I.Kz()})); R.X=K;g.n(b,R);return R}; mHx=function(b){b.Y&&b.Y.send();if(b.qoe){var R=b.qoe;if(R.S){R.p5==="PL"&&(R.p5="N");var h=g.Sk(R.provider);g.Gl(R,h,"vps",[R.p5]);R.D||(R.V>=0&&R.G.set("user_intent",[R.V.toString()]),R.D=!0);R.provider.QX.zy()&&R.YZ("finalized",{});R.MJ=!0;R.reportStats(h)}}if(b.provider.videoData.enableServerStitchedDai)for(const K of b.X.values())g7(K);else b.G&&g7(b.G);b.dispose()}; Pv2=function(b,R){b.G&&Jnq(b.G,R)}; Zte=function(b){if(!b.G)return null;const R=iW(b.G,"atr");return h=>{b.G&&Jnq(b.G,h,R)}}; cnB=function(b,R){b=ec(b.array,h=>R-h.start||1); return b<0?-(b+1):b}; u2e=function(b,R,h){const K=[];for(R=cnB(b,R);Rh)break}return K}; Sh=function(b,R){const h=[];for(const K of b.array)if(K.contains(R)&&h.push(K),K.start>R)break;return h}; XGx=function(b){return b.array.slice(cnB(b,0x7ffffffffffff),b.array.length)}; VsK=function(b,R){let h=NaN;for(const K of b.array)if(K.contains(R)&&(isNaN(h)||K.endR&&(isNaN(h)||K.start!R.has(h))}; MsK=function(b){return b.PY.getPlayerState().G(2)?0x8000000000000:b.PY.getCurrentTime()*1E3}; n_=function(b,R){const h=[];if(!R.length)return h;for(let K=0;Kl.end<0x8000000000000),p=XGx(b.G)):R=b.X<=h&&y3(R)?u2e(b.G,b.X,h):Sh(b.G,h); I=I.concat(n_(b,R));N&&(I=I.concat(TV(b,N)));p&&(I=I.concat(n_(b,p)));b.X=h;E8(b,I)}}; Js=function(b,R){return R>b.mediaTime+b.S&&R1)b.V=!0;if(I||isNaN(b.Y))b.Y=R;if(b.G)R!==b.mediaTime&&(b.G=!1);else if(R>0&&b.mediaTime===R){I=1500;if(b.QX.N("html5_buffer_underrun_transition_fix")){I=g.fg(b.QX.experiments,"html5_min_playback_advance_for_steady_state_secs");const N=g.fg(b.QX.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");I=I>0&&N>0&&Math.abs(R-b.Y)(K||!b.V?I:400)}b.mediaTime=R;b.X=h;return!1}; wGx=function(b,R,h){return R.mI(h).then(()=>s7(new Lg3(R,R.X)),K=>{K instanceof Error&&g.kJ(K); var I=$b('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),N=ND('audio/mp4; codecs="mp4a.40.2"'),p=I||N;const l=R.isLivePlayback&&!g.Z4(b.S,!0);K="fmt.noneavailable";l?K="html5.unsupportedlive":p||(K="html5.missingapi");p=l||!p?2:1;I={buildRej:"1",a:R.bY(),d:!!R.uT,drm:R.OD(),f18:R.E$.indexOf("itag=18")>=0,c18:I};R.G&&(R.OD()?(I.f142=!!R.G.G["142"],I.f149=!!R.G.G["149"],I.f279=!!R.G.G["279"]):(I.f133=!!R.G.G["133"],I.f140=!!R.G.G["140"],I.f242=!!R.G.G["242"]),I.cAAC=N,I.cAVC=ND('video/mp4; codecs="avc1.42001E"'), I.cVP9=ND('video/webm; codecs="vp9"'));R.S&&(I.drmsys=R.S.keySystem,N=0,R.S.Y&&(N=Object.keys(R.S.Y).length),I.drmst=N);return new g.hz(K,I,p)})}; Yi=function(b,R){R=Math.max(Math.max(1,Math.ceil(b.policy.V/ki(b))),R);return Math.min(Math.min(8,Math.floor(b.policy.U/ki(b))),R)}; ki=function(b){return b.videoData.G?Ip(b.videoData.G)||5:5}; orK=function(b,R){if(R)return R=b.videoData,R=FgT(b,isNaN(R.liveChunkReadahead)?3:R.liveChunkReadahead,R),Yi(b,R);if(b.Y.length){if(Math.min.apply(null,b.Y)>1)return Yi(b,b.G-1);if(b.policy.K)return Yi(b,b.G+1)}return b.G}; DHw=function(b,R=!1){if(!b.Y.length)return!1;const h=b.G;b.G=orK(b,R);if(R=h!==b.G)b.Y=[],b.CM=0;return R}; eh=function(b){let R=b.policy.G;b.V||(R=Math.max(R-1,0));return R*ki(b)}; O8=function(b,R){return R>=b.va()-eh(b)}; baq=function(b,R,h=!0){const K=O8(b,R);h||K?K&&(b.X=!0):b.X=!1;b.D=b.policy.X===2||b.policy.X===3&&b.X;R=O8(b,R);b.V!==R&&b.publish("livestatusshift",R);b.V=R}; FgT=function(b,R,h){h.YH&&R--;UN(h)&&(R=1);Gs(h)!==0&&(b=g.fg(b.experiments,"html5_live_chunk_readahead_proxima_override"))&&(R=b,h.G?.pR()&&R++);return R}; xi=function(b,R,h=null){return new QZ(g.fg(b.QX.experiments,R)||0,h?b.QX.N(h):!1)}; Ruw=function(b,R){b.G=R}; mY=function(b,R,h,K,I,N,p,l){R?R.test(h)?(b.n5(I,R,p),R.J||N()):(!R.Y||R.V?h=!1:(h=(0,g.c)(),K?R.G||(R.G=h):R.G=0,N=!K&&h-R.Y>3E4,h=R.G&&h-R.G>1E3||N?R.V=!0:!1),h&&(l={...b.RT(R),...l},l.wn=p,l.we=I,l.wsuc=K,b.PY.YZ("workaroundReport",l),K&&(R.reset(),b.X[I]=!1))):b.PY.ij("auth",2,"BROWSER_OR_EXTENSION_ERROR",ba({source:"watchdog",name:p}))}; hu3=function(b,R){if(b.G){var h=b.G;var K=b.getCurrentTime(),I=h.va();var N=h.policy.Y;h.V||(N=Math.max(N-1,0));N*=ki(h);K>=I-N||!h.Mn()?h=K0&&Hz(b.mediaElement)>0&&(b.Y=PM(b,b.Y,!1)),R=b.N("html5_pseudogapless_shorts_seek_to_next_start")&&R?.seekSource===60,!b.mediaElement||!KaB(b,R))b.PH.start(750);else if(!isNaN(b.Y)&&isFinite(b.Y)&&(R=b.JX-(b.Y-b.timestampOffset),!(R===0||Math.abs(R)<.005)))if(R=b.mediaElement.getCurrentTime()-b.Y,Math.abs(R)<=b.NJ||Math.abs(R)<.005)sjq(b);else{if(b.videoData.mK)b.videoData.mK= !1;else if(!Aw(b.videoData)&&b.Y>=b.Ep()-.1){b.Y=b.Ep();b.V.resolve(b.Ep());b.QX.zy()&&b.PY.YZ("setEndedInSeek",{tgt:`${b.Y}`,maxst:`${b.Ep()}`});b.PY.Ad();return}try{const h=b.Y-b.timestampOffset;b.mediaElement.seekTo(h);b.G6.G=h;b.JX=h;b.X=b.Y;b.C=!1}catch(h){}}}; IrT=function(b,R){b.MJ=!0;b.N("html5_use_centralized_player_time")&&(b.Y=b.J,b.X=b.Y,b.J=NaN);$FB(b,R)}; NwH=function(b){let R=0,h=NaN,K="";if(!b.U)return{startSeconds:R,bS:h,source:K};b.videoData.pm?R=b.videoData.Th:Aw(b.videoData)&&(R=Infinity);if(g.Jw(b.videoData))return{startSeconds:R,bS:h,source:K};b.videoData.startSeconds?(K="ss",R=b.videoData.startSeconds):b.videoData.Nc&&(K="stss",R=b.videoData.Nc);b.videoData.liveUtcStartSeconds&&(h=b.videoData.liveUtcStartSeconds);if(isFinite(R)&&(R>b.Ep()||R1E9}; arT=function(b,R){b.playbackData=R;b.videoData.isLivePlayback&&(b.K=new p0T(()=>{a:{if(b.playbackData&&b.playbackData.G.G()){if(zT(b.videoData)&&b.loader){var h=b.loader.AD.JU()||0;break a}if(b.videoData.G){h=b.videoData.G.gp;break a}}h=0}return h}),b.G=new lrB(b.videoData,b.QX.experiments,()=>b.Ep(!0))); uW(b.PY)?(b.videoData.Pa?.jO||(R=NwH(b),R.bS?(ve(b.videoData)&&b.yZ(R.bS,R.startSeconds),b.X=R.startSeconds):R.startSeconds>0&&b.seekTo(R.startSeconds,{ZK:"seektimeline_startPlayback",seekSource:15})),b.U=!1):cM(b)||(b.X=b.X||b.videoData.startSeconds||0,b.videoData.isLivePlayback||(R=b.PY.videoData.Ep(),b.X>R&&(b.N("html5_sabr_log_invalid_sabr_current_time")&&b.PY.YZ("invalidSabrCmtStart",{rt:b.X,mst:R}),b.N("html5_sabr_vod_invalid_start_time_fallback")&&(b.X=0))))}; XM=function(b,R){if(b.G&&b.loader){var h=!1;R?h=!0:b.videoData.isLowLatencyLiveStream||b.videoData.latencyClass==="LOW"||b.videoData.latencyClass==="ULTRALOW"?h=DHw(b.G):b.KR&&(b.KR=!1,h=DHw(b.G,!0));h&&(R=b.PY.bl,h=b.G,h=ki(h)*h.G,R.qoe&&(R=R.qoe,g.Gl(R,g.Sk(R.provider),"lra",[h]),R.YZ("live-readahead-seconds",{v:h})));R=b.loader;h=b.G.G;b=b.G;b=(b.G-1+b.policy.G)*ki(b);var K=NaN;var I=R.pz;I===2||I===-1?(I=h,UN(R.PY.getVideoData())&&(K=R.policy.dg)):I=h-1;I=Math.max(I,0);h=R.J;h.Wr=I;h.K=K;R.K&& (R.K.G6=b)}}; C_=function(b,R){(b.loader=R)?XM(b,!0):VZ(b)}; KaB=function(b,R=!1){if(!b.mediaElement||b.mediaElement.X()===0||b.mediaElement.hasError())return!1;const h=b.mediaElement.getCurrentTime()>0;return b.videoData.X&&b.videoData.X.G()||b.videoData.isLivePlayback||!b.videoData.OD()?b.Y>=0&&!R&&(R=b.mediaElement.K(),R.length||!h)?Rc(R,b.Y-b.timestampOffset):h:h}; Mw=function(b){return b.mediaElement?qS(b.mediaElement):0}; vKT=function(b,R){var h=b.getCurrentTime();const K=b.isAtLiveHead(h);if(b.K&&K){var I=b.K;if(I.G&&!(h>=I.Y&&h50&&I.Y.shift())),baq(b.G,h,R),R&&hu3(b,!0));K!==b.Ty&&(R=b.getCurrentTime()-b.fR<=500,h=b.RH>=1E3,R||h||(R=b.PY.bl,R.qoe&&(R=R.qoe,h=g.Sk(R.provider),g.Gl(R,h,"lh", [K?"1":"0"])),b.Ty=K,b.RH++,b.fR=b.getCurrentTime()))}; is=function(b,R,h,K,I,N,p,l,a,v){if(b-8>>3>=1&&(b|5)>>5<5){const H=R[f[16]](f[7]);r7[f[52]](H,73);r7[f[60]](H,1);r7[f[52]](H,75);r7[f[67]](H,48);var B=H[f[58]](f[7])}(b-9|32)=b&&(B=K(I,N,p,l,a,v));return B}; L_=function(b,R){let h=b.V;h||(b.V=new tn,h=b.V,ZB(b,R));return h}; PM=function(b,R,h){if(isNaN(R))return NaN;const K=b.f0();h=b.Ep(h);return b.N("html5_clamp_invalid_seek_to_min_seekable_time")&&!b.videoData.isLivePlayback&&R>h+1&&R0)||b.mediaElement&&b.mediaElement.getCurrentTime()>0||(R={ZK:"seektimeline_resumeTime",RK:R},b.videoData.K||(R.seekSource=15),b.seekTo(b.X,R))}; $FB=function(b,R){qNe(b,R).then(void 0,()=>{VZ(b)}); L_(b,R).then(h=>{w7(b,h)},()=>{VZ(b)}); b.PY.z_(R);if(b.QX.zy()||dFH(b))R=b.RT(),R["native"]=`${+b.C}`,R.tgt=`${b.Y}`,R.otgt=`${b.Y+b.timestampOffset}`,R.maxst=`${b.Ep()}`,b.G&&b.N("html5_high_res_seek_logging")&&(R.tht=`${b.G.S()}`,R.ht=`${b.G.va()}`,R.adft=`${eh(b.G)}`),b.N("html5_sabr_parse_live_metadata_playback_boundaries")&&b.videoData.G&&ve(b.videoData)&&(R.minst=`${b.videoData.G.Ja}`,R.cminst=`${b.videoData.G.f0()+b.timestampOffset}`,R.maxst=`${b.videoData.G.QL}`,R.hts=`${b.videoData.G.T6}`,R.cmaxst=`${b.videoData.G.Ep()+b.timestampOffset}`), b.PY.YZ("startSeek",R)}; qNe=function(b,R){b.nR||(b.loader?isFinite(b.Y)?b.nR=b.loader.seek(b.Y-b.timestampOffset,R):(Aw(b.videoData),b.N("html5_unified_live_latency_reporting")&&(b.PY.Hh=0),b.nR=Tb(b.loader),o4(b.videoData)||(b.Y=b.loader.getCurrentTime()+b.timestampOffset)):b.nR=g.Xp(b.Y-b.timestampOffset));return b.nR}; w7=function(b,R){b.S&&(b.S.resolve(R),b.PY.qV(),b.QX.zy()||dFH(b))&&(R=b.RT(),R["native"]=`${+b.C}`,R.otgt=`${b.Y+b.timestampOffset}`,b.PY.YZ("seekEnd",R));VZ(b)}; dFH=function(b){return b.videoData.mY()&&b.N("html5_enable_shorts_seek_details_logging")}; sjq=function(b){b.V&&(b.V.resolve(b.mediaElement.getCurrentTime()),b.G6.Y=null)}; VZ=function(b){b.Y=NaN;b.J=NaN;b.JX=NaN;b.V=null;b.nR=null;b.S=null;b.MJ=!1;b.C=!1;b.NJ=0;b.gp.stop();b.Zr.stop()}; ywq=function(b){if(b.U)if(b.videoData.Pa?.jO)b.U=!1;else if(g.Jw(b.videoData))b.U=!1;else{var R="ss",h=0;b.videoData.G?.isManifestless&&b.videoData.Zr&&!cM(b)&&(R="mss",h=b.videoData.Zr);(b.videoData.pm?b.N("html5_prioritize_windowed_st_start_seconds"):b.N("html5_prioritize_st_start_seconds"))&&!h&&b.videoData.Nc&&(R="stss",h=b.videoData.Nc);!h&&frK(b)&&(h=b.videoData.liveUtcStartSeconds||b.videoData.Zr,R="utc",h=b.Ep()-b.hh(b.Ep())+h);!h&&b.videoData.AO()&&b.videoData.Nc&&(R="stss",h=b.videoData.Nc); var K={};if(h){if(h>b.Ep()||h{w7(b,N)},()=>{VZ(b)}),b.videoData.isAd()&&m5H({adCpn:b.videoData.clientPlaybackNonce, contentCpn:b.videoData.U0??""},R.G),b.JX=I,Ruw(b.G6,h.getCurrentTime()),b.seekTo(I,{seekSource:104,ZK:"seektimeline_mediaElementEvent"}),b.C=!0;break;case "seeked":sjq(b);break;case "loadedmetadata":uW(b.PY)||ywq(b);ZB(b);break;case "progress":ZB(b);break;case "pause":b.D=b.getCurrentTime()}b.D&&((K==="play"||K==="playing"||K==="timeupdate"||K==="progress")&&b.getCurrentTime()-b.D>10&&(b.N("html5_sky_skip_pause_jump")?b.PY.YZ("skipPauseJump",{evt:K,cmt:b.getCurrentTime(),lpt:b.D}):b.seekTo(b.D,{ZK:"pauseJump"})), K!=="pause"&&K!=="play"&&K!=="playing"&&K!=="progress"&&(b.D=0))}; frK=function(b){return(kK(b.videoData)||!!b.videoData.liveUtcStartSeconds)&&(!!b.videoData.liveUtcStartSeconds||cM(b))&&!!b.videoData.G}; jjT=function(b,R){b.PY.YZ("sdai",{adj4t:R.toFixed(3)});b.SY=R;R+=1;b.Y=R;b.X=R;L_(b).then(h=>{w7(b,h)},()=>{VZ(b)})}; FM=function(b,R){return b.G.get(R)?.buffer.V()||[]}; oo=function(b,R){return b.G.get(R)?.buffer.X()||0}; Wa3=function(b,R){function h(N){return K.G6!=="yt"&&(I.partnerId===38&&K.playerStyle==="books"||I.partnerId===30&&K.playerStyle==="docs"||I.partnerId===33&&K.playerStyle==="google-live")?Awx(b,I,N):iaK(b,I).then(()=>{K.N("embeds_enable_shorts")&&b.L().m1&&I.isEmbedsShortsMode(new g.ru(0,0),!!I.playlistId)?zuT(b,I):DB(b,I)},p=>{DB(b,I,!0); throw p;})} const K=b.L(),I=b.getVideoData();I.HY();I.loading=!0;return UFP(b)?Gsx(b,I,R).then(()=>{DB(b,I)},N=>{N=K4(N); if(R5(N.severity))return DB(b,I,!0),Promise.reject(N);N.errorCode==="onesie.response.badproxystatus"&&`${N.details.st}`==="3"&&(gKw=!0);b.handleError(N);return h("onesie")}):h("gvi")}; UFP=function(b){var R=b.L();if(R.N("html5_disable_onesie")||!R.N("html5_onesie")||!R.N("html5_onesie_inline")&&b.getVisibilityState()===5||R.G6!=="yt")return!1;var h=R.Sn;if(!h||!h.G)return b.handleError(new g.hz("onesie.unavailable.hotconfig",{key:"0"})),!1;h.G.D<(0,g.c)()&&(b.YZ("okexp","1"),(h=b.ov())&&R.N("html5_prefer_trusted_host_on_key_expiration")&&(h.Y=!0,(R=h.G.get(0)?.G())&&!cA(R)&&h.G.delete(0)));if(gKw)return b.YZ("ost3","1"),!1;R={};return Object.keys(R).length>0?(R.onesie="0",b.handleError(new g.hz("html5.missingapi", R)),!1):!0}; bH=function(b,R){const h=tT();jp(h,R);return g.Nh(h,Ut2(),{OA:b.OA(),clientInterface:x2(b)})}; Gsx=async function(b,R,h){R.fetchType="onesie";var K=cXK(R,b.getPlayerSize(),b.getVisibilityState());K=new lo(b,K,h);h=await K.fetch();var I={player_response:h};R.loading=!1;b=b.ac.W_;if(K.L5){for(const [p,l]of K.L5.entries()){var N=p;const a=l;b.G.set(N,a,180);N===R.videoId&&(N=a.VD(),R.BQ=N)}b.rE=K}for(const [p,l]of K.XB.entries())b.Y.set(p,l,180);g.lP(R,I,!0);if(R.loading||bP(R))return Promise.resolve();b.G.removeAll();b.Y.removeAll();R.BQ=[];K={};I="onesie.response";b=0;R.errorCode?(I="auth", K.ec=R.errorCode,K.ed=R.errorDetail,K.es=R.oo||"",b=2):(K.successButUnplayable="1",K.disposed=`${+R.HY()}`,K.afmts=`${+/adaptiveFormats/.test(h)}`,K.cpn=R.clientPlaybackNonce);return Promise.reject(new g.hz(I,K,b))}; iaK=async function(b,R){const h=R.isAd();let K=!h,I=h?1:3;for(let p=0;p0){await aG(5E3);var N=new g.A$("Retrying OnePlatform request",{attempt:p});g.kJ(N)}try{await SNT(b,R);return}catch(l){const a=K4(l);N=a.errorCode;const v=b.L(),B=v.N("html5_use_network_error_code_enums")?401:"401";K&&N==="manifest.net.badstatus"&&a.details.rc===B&&(K=!1,p===I-1&&(I+=1));if(p===I-1)return b=nKs(h,a.details),b.details.backend="op",b.details.originec=N,Promise.reject(b);if(N==="auth"||N==="manifest.net.retryexhausted"|| v.N("embeds_enable_get_player_error_mapping")&&g.LB(b.L()))return Promise.reject(a);b.handleError(a);if(R5(a.severity))break}}return Promise.reject(nKs(h,{backend:"op"}))}; SNT=async function(b,R){R.fetchType="gp";var h=b.L(),K=g.js(h,R.J());K=K.G?await K.G:K.getValue();var I=bH(h,K);const N=cXK(R,b.getPlayerSize(),b.getVisibilityState()),p=g.vI(EKK);var l=R.J(),a=(0,g.c)(),v=!1;let B="empty";K=0;b.GD("psns");const H={qk:function(q){q.readyState===2&&b.GD("ps_c")}}; h.OA()&&(H.Or={gw:Bu("player",{videoId:String(R.videoId)})});I=await g.bn(I,N,p,void 0,H);b.GD("psnr");if(!R.HY()){I?"error"in I&&I.error?(v=!0,B=`esf:${I.error.message}`,K=I.error.code):I.errorMetadata&&(v=!0,B="its",K=I.errorMetadata.status):v=!0;if(v)return v=0,I=((0,g.c)()-a).toFixed(),a={},a=h.N("html5_use_network_error_code_enums")?{backend:"op",rc:K,rt:I,reason:B,has_kpt:R.wp?"1":"0",has_mdx_env:R.mdxEnvironment?"1":"0",has_omit_key_flag:g.x("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")? "1":"0",has_page_id:h.pageId?"1":"0",has_token:l?"1":"0",has_vvt:R.nR?"1":"0",is_mdx:R.isMdxPlayback?"1":"0",mdx_ctrl:R.wR||"",token_eq:l===R.J()?"1":"0"}:{backend:"op",rc:`${K}`,rt:I,reason:B,has_kpt:R.wp?"1":"0",has_mdx_env:R.mdxEnvironment?"1":"0",has_omit_key_flag:g.x("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:h.pageId?"1":"0",has_token:l?"1":"0",has_vvt:R.nR?"1":"0",is_mdx:R.isMdxPlayback?"1":"0",mdx_ctrl:R.wR||"",token_eq:l===R.J()?"1":"0"},R="manifest.net.connect", K===429?(R="auth",v=2):K>200&&(R="manifest.net.badstatus",K===400&&(v=2)),Promise.reject(new g.hz(R,a,v));R.loading=!1;g.lP(R,{raw_player_response:I},!0);g.LB(R.L())&&I&&I.trackingParams&&uD(I.trackingParams);if(R.errorCode)return K={ec:R.errorCode,ed:R.errorDetail,es:R.oo||""},l="auth",h.N("embeds_enable_get_player_error_mapping")&&g.LB(R.L())&&R.errorCode&&(l=R.errorCode),Promise.reject(new g.hz(l,K,2));if(!R.loading&&!bP(R))return h=R.isAd()?"auth":"manifest.net.retryexhausted",K=R.isAd()?2:1, Promise.reject(new g.hz(h,{successButUnplayable:"1",hasMedia:g.DL(R)?"1":"0"},K))}}; Awx=async function(b,R,h){function K(){return!0} function I(v){v=K4(v);if(R5(v.severity))return Promise.reject(v);b.handleError(v);return!1} const N=YMT(b.L(),R,b.getPlayerSize(),b.getVisibilityState(),b.isFullscreen()),p=R.isAd(),l=p?1:3;for(let v=0;v0&&(await aG(5E3),a={playerretry:v,playerretrysrc:h},p||(a.recover="embedded"),a=go(N,a));if(await Tws(R,a).then(K,I))return}R=p?"auth":"manifest.net.retryexhausted";h=p?2:1;if(!p&&Math.random()<1E-4)try{g.kJ(new g.A$("b/152131571",btoa(N)))}catch{}return Promise.reject(new g.hz(R,{backend:"gvi"},h))}; Tws=async function(b,R){function h(a){if(!b.HY()){a=a?a.status:-1;var v=0,B=((0,g.c)()-l).toFixed();B=K.N("html5_use_network_error_code_enums")?{backend:"gvi",rc:a,rt:B}:{backend:"gvi",rc:`${a}`,rt:B};var H="manifest.net.connect";a===429?(H="auth",v=2):a>200&&(H="manifest.net.badstatus",a===400&&(v=2));return Promise.reject(new g.hz(H,B,v))}} b.fetchType="gvi";const K=b.L();var I;(I=e_3(b))?(I={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:I},R=go(R,{action_display_post:1})):I={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4};const N={};K.sendVisitorIdHeader&&b.visitorData&&(N["X-Goog-Visitor-Id"]=b.visitorData);const p=my(K.experiments,"debug_sherlog_username");p&&(N["X-Youtube-Sherlog-Username"]=p);Object.keys(N).length>0&&(I.headers=N);const l=(0,g.c)();I=await ct(bG,R,I).then(void 0,function(a){return h(a.xhr)}); if(!I||!I.responseText)return h(I);b.loading=!1;I=AQ(I.responseText);g.lP(b,I,!0);if(b.errorCode)return Promise.reject(new g.hz("auth",{ec:b.errorCode,ed:b.errorDetail,es:b.oo||""},2));if(!b.loading&&!bP(b))return I=b.isAd()?"auth":"manifest.net.retryexhausted",R=b.isAd()?2:1,Promise.reject(new g.hz(I,{successButUnplayable:"1"},R))}; nKs=function(b,R){return new g.hz(b?"auth":"manifest.net.retryexhausted",R,b?2:1)}; DB=async function(b,R,h=!1){const K=b.L();h&&(!g.BG(K)||xK(R)!=="embedded")||R.MY||xK(R)!=="adunit"&&(g.hB(K)||hn(K)||g.LW(K)||g.vG(K)||g.Mz(K)||x2(K)==="WEB_CREATOR")||(h=g.js(K,R.J()),h=h.G?await h.G:h.getValue(),Jws(b,R,h))}; Jws=async function(b,R,h){try{const N=b.L(),p=bH(N,h);var K=R.L();const l=g.HL(),a={context:g.MF(R),videoId:R.videoId,racyCheckOk:R.racyCheckOk,contentCheckOk:R.contentCheckOk,autonavState:"STATE_NONE"};xK(R)==="adunit"&&(a.isAdPlayback=!0);K.embedConfig&&(a.serializedThirdPartyEmbedConfig=K.embedConfig);K.oQ&&(a.showContentOwnerOnly=!0);R.lG&&(a.showShortsOnly=!0);l.WY(141)&&(a.autonavState=l.WY(140)?"STATE_OFF":"STATE_ON");if(g.lv(K)){const q=l.WY(65);h=q!=null?!q:!1;const d=!!g.NC("yt-player-sticky-caption"); a.captionsRequested=h&&d}const v=K.getWebPlayerContextConfig()?.encryptedHostFlags;v&&(a.playbackContext={encryptedHostFlags:v});var I=a;const B=g.vI(kss);b.GD("wn_s");K={};N.OA()&&(K.Or={gw:Bu("next",{videoId:String(R.videoId)})});const H=await g.bn(p,I,B,void 0,K);b.GD("wn_r");!H||"error"in H&&H.error||(g.LB(R.L())&&H.trackingParams&&uD(H.trackingParams),g.lP(R,{raw_watch_next_response:H},!1))}catch(N){}}; zuT=async function(b,R){var h=g.js(b.L(),R.J());h=h.G?await h.G:h.getValue();YNe(b,R,h)}; YNe=async function(b,R,h){b=b.L();try{const I=bH(b,h);var K={context:g.MF(R),playerRequest:{videoId:R.videoId},disablePlayerResponse:!0};const N=g.vI(euB);h={};b.OA()&&(h.Or={gw:Bu("reel_item_watch",{videoId:String(R.videoId)})});const p=await g.bn(I,K,N,void 0,h);!p||"error"in p&&p.error||g.lP(R,{raw_reel_item_watch_response:p})}catch(I){}}; Oaw=function(b,R){b.GD("vir");b.GD("ps_s");XV("vir",void 0,"video_to_ad");R=Wa3(b,R);R.then(function(){b.GD("virc");XV("virc",void 0,"video_to_ad");b.GD("ps_r");XV("ps_r",void 0,"video_to_ad")},function(){b.GD("virc"); XV("virc",void 0,"video_to_ad")}); return R}; R7=function(){const b=rre();return!(!b||b==="visible")}; xFT=function(b){const R=Qje();R&&document.addEventListener(R,b,!1)}; mFK=function(b){const R=Qje();R&&document.removeEventListener(R,b,!1)}; Qje=function(){let b;if(document.visibilityState)b="visibilitychange";else{if(!document[Z5+"VisibilityState"])return"";b=Z5+"visibilitychange"}return b}; ZaK=function(b){PPx=b}; cwe=function(b){hL=b}; dAP=function(b){var R=b.EV;b=b.videoData;const h=BM(R,b);R.N("html5_disable_client_autonav_cap_for_onesie")||h.compose(HM(R,b));return h}; Px=function(b,R){KZ(b,R.reason,R.G.info,R.source,R.token)}; opx=function(b,R){b.ac.F9()||(b.YZ("sgap",{f:R}),b.ac.clearQueue(!1,R==="pe"))}; X0w=function(b){b.mediaElement&&(b.cY?(sA(b),b.HK(),u8T(b,!1)):(b.videoData.gp&&b.videoData.gp.V(),b.mediaElement.stopVideo()),b.playVideo())}; uW=function(b){return b.N("html5_disable_video_player_initiated_seeks")&&ve(b.videoData)}; I7=function(b,R){b.gx&&$n(b);b.gx=new g.gL(R*1E3,0x7ffffffffffff);b.gx.namespace="endcr";b.addCueRange(b.gx)}; $n=function(b){b.removeCueRange(b.gx);b.gx=null}; pZ=function(b){if(b.videoData.X&&b.videoData.X.G()){var R=Nb(b);if(b.loader&&(b=b.loader,!b.HY()))if(b.policy.G){var h=b.S;if(R.isLocked()&&h.G.Y||h.Y===void 0||!R.equals(h.Y)){h=b.S.Y;yX2(b.S,R);var K;if(K=R.isLocked()&&R.reason==="m"){K=b.S;var I=K.V?.info.D().qualityOrdinal;K=K.T6?!0:K.V?R.G!==I?!0:!K.G.Y||K.Nb.Pa&&K.G.G===K.V.info.itag?!1:!0:!1}I=b.policy.cO&&R.reason==="l";h=h.G>R.G&&R.reason==="b";K||I||h?(b.PY.X1({reattachOnConstraint:K?"u":I?"drm":"perf",lo:R.Y,up:R.G}),b.policy.Pa||(b.S.G.Y= !1)):(b.policy.Pa&&(b.S.G.Y=!1),Na(b))}}else!rfT(b.G,R)&&b.videoTrack&&(I=b.G.G,cx(b,L3T(b.G,R)),V$(b),h=R.isLocked()&&R.reason==="m"&&b.G.C,K=b.policy.cO&&R.reason==="l"&&tO(b.videoTrack),R=I.G>R.G&&R.reason==="b",I=b.G.pR&&!NS(),h||K||R||I?b.PY.X1({reattachOnConstraint:h?"u":K?"drm":I?"codec":"perf"}):Na(b))}}; a7=function(b,R=!0){b.QX.jU&&!b.videoData.backgroundable&&b.mediaElement&&!b.R0()&&(b.isBackground()&&b.mediaElement.SY()?(b.YZ("bgmobile",{suspend:1}),b.Jb(!0,!0)):!b.isBackground()&&R&&lH(b)&&b.YZ("bgmobile",{resume:1}))}; vO=function(b){if(!Aw(b.videoData))return NaN;let R=0;b.loader&&b.videoData.G&&(R=zT(b.videoData)?b.loader.AD.JU()||0:b.videoData.G.gp);return(0,g.c)()/1E3-b.hh()-R}; VJs=function(b,R){if(b.playerType===2||b.QX.mK)R.iJ=!0;var h=Cns(R.CR,R.EF,b.QX.V,b.QX.K);h&&(R.adFormat=h);b.playerType===2&&(R.xV=!0);if(b.isFullscreen()||b.QX.V)h=g.NC("yt-player-autonavstate"),R.autonavState=h||(b.QX.V?2:b.videoData.autonavState);R.endSeconds&&R.endSeconds>R.startSeconds&&I7(b,R.endSeconds)}; BO=function(b){b.loader&&(b.loader.dispose(),b.loader=null,C_(b.Vp,null));b.yk()?CP3(b):b.HK()}; LaT=function(b){if(!b.playerState.G(128))if(b.videoData.isLoaded(),b.Pd=g.Sc(b.videoData.Ha),g.DL(b.videoData)){b.vH.tick("bpd_s");HO(b).then(()=>{b.vH.tick("bpd_c");if(!b.HY()){b.sC&&(b.n0(iC(iC(b.playerState,512),1)),lH(b));var h=b.videoData;h.endSeconds&&h.endSeconds>h.startSeconds&&I7(b,h.endSeconds);b.Gv.finished=!0;qb(b,"dataloaded");b.YQ.KP()&&dY(b);B6P(b.EV,b.nT)}}); b.N("html5_log_media_perf_info")&&b.YZ("loudness",{v:b.videoData.dG.toFixed(3)},!0);var R=b.mediaElement?.hO();if(R&&"disablePictureInPicture"in R&&b.QX.E_)try{R.disablePictureInPicture=b.QX.SK&&!b.videoData.backgroundable}catch(h){g.kJ(h)}MJs(b);b.IX=new rwK(b.videoData)}else qb(b,"dataloaded")}; w0T=function(b){const R=b.videoData;Oaw(b,b.g2).then(void 0,h=>{b.videoData!==R||R.HY()||(h=K4(h),h.errorCode==="auth"&&b.videoData.errorDetail&&b.videoData.errorDetail!=="7"?b.ij(h.errorCode,2,unescape(b.videoData.errorReason),ba(h.details),b.videoData.errorDetail,b.videoData.oo||void 0):b.handleError(h))})}; fZ=function(b){return g.hB(b.QX)&&b.videoData.isLivePlayback&&(!b.QX.N("html5_allow_multiview_tile_preload")||!b.videoData.SK)}; HO=function(b){BO(b);b.nT=null;const R=wGx(b.QX,b.videoData,b.R0());b.d0=R;b.d0.then(h=>{Fa2(b,h)},h=>{b.HY()||(h=K4(h),b.visibility.isBackground()?(ya(b,"vp_none_avail"),b.d0=null,b.Gv.reset()):(b.Gv.finished=!0,b.ij(h.errorCode,h.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",ba(h.details))))}); return R}; MJs=function(b){gK(b.videoData,"html5_set_debugging_opt_in")&&(b=g.HL(),b.WY(183)||(d8(183,!0),b.save()))}; qb=function(b,R="dataupdated"){b.publish("internalvideodatachange",R,b.videoData)}; Fa2=function(b,R){if(!b.HY()&&!R.videoData.HY()){b.nT=R;arT(b.Vp,b.nT);if(b.videoData.isLivePlayback){var h=oKs(b.ac.W_,b.videoData.videoId)||b.loader&&!isNaN(b.loader.MJ);h=b.N("html5_onesie_live")&&h;uW(b)||b.videoData.Zr>0&&!zT(b.videoData)||h||b.seekTo(b.Ep(),{ZK:"videoplayer_playbackData",seekSource:18})}if(b.videoData.X.G()){if(F6P(b.videoData)){b.ij("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR",ba({missabrurl:1}));return}b.loader?g.kJ(Error("Duplicated Loader")):(h=g.fg(b.QX.experiments,"html5_onesie_defer_content_loader_ms"))&& b.Oj()&&oKs(b.ac.W_,b.videoData.Ib)?g.QB(()=>{b.HY()||b.loader||tL(b)},h):tL(b)}else!b.videoData.X.G()&&Zr(b.videoData)&&b.JB(new jf(b.videoData.videoId||"",4)); b.Oh();pGx(R).then(()=>{const K={};b.F1(K);b.QX.zy()&&b.N("html5_log_media_perf_info")&&b.YZ("av1Info",K);pZ(b)})}}; lH=function(b,R=!1){if(!b.mediaElement||!b.videoData.X)return!1;var h=DFT(b,R),K=b.mediaElement.SY();let I=!1;K&&K.equals(h)||(bzw(b,h),I=!0);b.playerState.G(2)||HaT(b.Vp,R);a:{R=I;if(ve(b.videoData)){if(!b.videoData.OD())break a}else if(!g.SJ(b.videoData))break a;if(b.mediaElement)if((h=b.videoData.S)&&b.mediaElement.J()){K=b.mediaElement.hO();if(b.Eg)if(K!==b.Eg.element)sA(b);else if(R&&h.flavor==="fairplay"&&!tN())sA(b);else break a;if(b.N("html5_report_error_for_unsupported_tvos_widevine")&&tN()&& h.flavor==="widevine")b.ij("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.unspttvoswidevine");else{b.Eg=new RDH(K,b.videoData,b.QX,b.mediaElement,b.dB);b.Eg.subscribe("licenseerror",b.bk,b);b.Eg.subscribe("qualitychange",b.BJ,b);b.Eg.subscribe("heartbeatparams",b.v6,b);b.Eg.subscribe("keystatuseschange",b.lB,b);b.Eg.subscribe("ctmp",b.YZ,b);for(const N of b.sN.keys)R=b.sN.get(N),b.Eg.nY(R);b.N("html5_eme_loader_sync")||b.sN.removeAll()}}else b.ij("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK", "trg.updatedrm")}return I}; tL=function(b){var R=b.videoData.G,h={cpn:b.videoData.clientPlaybackNonce,c:b.QX.G.c,cver:b.QX.G.cver};for(const [l,a]of Object.entries(h)){h=l;var K=a;for(var I of Object.values(R.G))I.yV.C(h,K);R.G6?.C(h,K)}I=b.QX;h=b.videoData;K=b.g2;R=new g.hDx(I);var N=R0s({hasSubfragmentedFmp4:h.hasSubfragmentedFmp4,gg:h.gg});R.D=N;R.MJ=h.maxReadAheadMediaTimeMs/1E3||R.MJ;K.V.JU()===K.policy.G?R.RH=10:R.RH=h.minReadAheadMediaTimeMs/1E3||R.RH;R.Jq=h.readAheadGrowthRateMs/1E3||R.Jq;h.lJ&&(R.S=!0,R.LZ=!0,I.experiments.Mj().G.WY(KVH)&& DDe(h)===3&&(R.BI=!0));R.d_=!p6();g.hB(I)||!p6()?(R.vY=8388608,R.wp=524288,R.Te=5,R.JX=1048576,R.o3=1.5,R.nz=4587520,jP()&&(R.nz=786432),R.K*=1.1,R.C*=1.1,R.x4=!0):I.Y&&(R.K*=1.3,R.C*=1.3);g.I5&&g.dj("crkey")&&(N=I.G.cmodel==="CHROMECAST/ANCHOVY",R.vY=20971520,R.wp=1572864,N&&(R.nz=812500,R.wi=1E3,R.KG=5,R.JX=2097152));g.yr&&(R.x4=!0);I.supportsGaplessAudio()||(R.MY=!1);j4&&(R.m_=!0);R.s8=I.N("html5_peak_shave");h.bd()&&I.N("html5_disable_peak_shave_for_onesie")&&(R.s8=!1);N=h.G?.V();if(zT(h)){R.K5= !0;R.pZ||(R.Yb=!0);R.Zl=!0;R.qf=!0;R.TZ=!0;if(h.latencyClass==="ULTRALOW"||h.latencyClass==="LOW"&&!I.N("html5_disable_low_pipeline"))R.VP=2,R.BQ=4;R.fZ=h.defraggedFromSubfragments;g.Jw(h)&&(R.fR=!1);R.iN=g.bU(I)}h.isAd()&&(R.Kj=0,R.GG=0);R.CN=I.N("html5_ultra_low_latency_subsegment_readahead")&&h.latencyClass==="ULTRALOW";R.X=I.zy();K.Y.V=zT(h)?.5:0;h.isLivePlayback&&(R.TG=g.fg(I.experiments,"html5_min_startup_buffered_media_duration_for_live_secs")||.25,R.Zr=!1);h.OD()&&(R.Zr=!1);K=!I.N("html5_sabr_keep_all_quality_constraints")&& !h.OD();const p=I.N("html5_sabr_remove_all_quality_constraints_for_drm_traffic")&&h.OD();R.U0=K||p;R.LN=gw(h);UN(h)&&(R.CN=!0,h.latencyClass==="LOW"?R.pz=g.fg(I.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):h.latencyClass==="ULTRALOW"&&(R.pz=g.fg(I.experiments,"html5_jumbo_ull_subsegment_readahead_target")),R.ZX=!0);h.AO()&&(R.sE=1.3);R.m_=R.m_||h.Te;R.Ab=(R.Ab||h.Ab)&&I.K;R.hc=h.D;I.zy()&&(R.Ty=!0);h.D&&!N&&(R.fn=!0);h.D&&h.isAd()&&(R.K*=1.6,R.C*=1.6);Zr(h)&&(R.V=h.videoId,R.nX=!0, R.s0=100,h.s7&&h.s7.length>0&&(R.wB=h.s7));R.cO=h.Jm;R.X4=gv(I,{},h.X||void 0,fa(h));R.xZ=dw(h)&&(g.LW(I)||g.vG(I));ve(h)&&(R.J=!0,R.U$=I.N("html5_estimate_live_partial_slice_duration"),g.hB(I)&&!g.y5()&&I.N("html5_force_audio_to_cover_video_keyframe")?R.CR=!1:R.CR=!0,R.Uh||h.isLivePlayback||!I.N("html5_sabr_non_streaming_xhr_vod_client_request_cancellation")||(R.E_=!0,R.Kb=g.fg(I.experiments,"html5_sabr_non_streaming_xhr_vod_request_cancellation_timeout_ms")),I.N("html5_sabr_report_partial_segment_estimated_duration")&& (R.kf=!0),R.G=!0,R.bz=I.N("html5_trigger_loader_when_idle_network"),R.xA=I.N("html5_sabr_parse_live_metadata_playback_boundaries"),R.m1=I.N("html5_consume_onesie_next_request_policy_for_sabr"),R.yh=I.N("html5_sabr_report_next_ad_break_time"),R.xQ=I.N("html5_log_high_res_buffer_timeline")&&I.zy(),R.tj=I.N("html5_remove_stuck_slices_beyond_max_buffer_limits"),R.dh=I.N("html5_gapless_sabr_btl_last_slice")&>(h),R.W7=I.N("html5_reset_last_appended_slice_on_seek")&>(h),zT(h)?(R.RL=!0,R.oy=I.N("html5_disable_variability_tracker_for_live"), R.pR=!0,I.N("html5_simplified_backup_timeout_sabr_live")&&(R.gB=!0,R.wi=R.qc)):R.FM=I.N("html5_probe_request_on_sabr_request_progress"),R.iD=I.N("html5_serve_start_seconds_seek_for_post_live_sabr"),R.SK=I.N("html5_flush_index_on_updated_timestamp_offset"),R.U=ve(h),R.s7=I.N("html5_ignore_partial_segment_from_live_readahead"),I.N("html5_include_partial_segment_for_jumbo_ll")&&UN(h)&&(R.s7=!1),R.iJ=I.N("html5_use_non_active_broadcast_for_post_live"),R.G6=I.N("html5_use_centralized_player_time"),R.KR= I.N("html5_log_centralized_player_time"),R.er=I.N("html5_consume_onesie_sabr_seek"),R.nR=I.N("html5_enable_sabr_seek_loader_refactor"),h.enableServerStitchedDai&&(R.Y=!0,R.RC=I.N("html5_reset_server_stitch_state_for_non_sabr_seek"),R.CG=I.N("html5_remove_ssdai_append_pause")&&!h.eK(),R.HR=I.N("html5_ssdai_log_ssevt_in_loader_timers")),R.Wk=I.zy(),R.latencyClass=h.latencyClass,R.sU=!h.AO()&&I.N("html5_prebuffer_instream_media_vod"));R.Ys=g.L62(h);j9(I.S,FJ.BITRATE)&&(R.nz=NaN);if(K=g.fg(I.experiments, "html5_request_size_max_kb"))R.JX=K*1024;if(I.S.Y)R.OV="; "+FJ.EXPERIMENTAL.name+"=allowed";else if(I.N("html5_enable_cobalt_tunnel_mode")&&g.y5()){const {name:l,valid:a}=FJ.TUNNELMODE;R.OV=`; ${l}=${a}`}I=h.serverPlaybackStartConfig;I?.enable&&I?.playbackStartPolicy&&(R.U8=!0,zb(R,I.playbackStartPolicy,2));I=sLT(b);b.sN.removeAll();a:{h=b.ac.W_;if(K=b.videoData.videoId)if(N=h.G.get(K)){h.G.remove(K);h=N;break a}h=void 0}b.loader=new $yq(b,b.g2,R,b.videoData.G,b.videoData.X,Nb(b),I,b.videoData.enableServerStitchedDai, h,b.videoData.G6);R=b.videoData.N("html5_disable_preload_for_ssdai_with_preroll")&&b.videoData.isLivePlayback&&b.Oj()?!0:b.sC&&fZ(b);b.loader.initialize(b.getCurrentTime(),Nb(b),R);b.videoData.probeUrl&&(b.loader.xZ=b.videoData.probeUrl);!b.Pd.length&&!b.sC||b.videoData.cotn||b.loader?.T6(!1);C_(b.Vp,b.loader);b.xO&&(bBT(b.loader,b.xO),b.YZ("sdai",{sdl:1}));b.videoData.Sn()&&(b=b.loader,b.policy.Cm=b.policy.hN)}; dY=function(b){b.HY();if(!b.YQ.finished&&b.Gv.finished&&!b.playerState.G(128)&&!b.Pd.length){if(!b.Ei.started){var R=b.Ei;R.started=!0;R.sync()}if(!b.PM()){b.loader&&(b.Mj().G.WY(ek)?R=b.loader.CR(!0)>0:(R=b.loader.timing,R=!!R.Y&&!!R.X),b.Lq=R);b.YQ.finished||(b.YQ.finished=!0);R=b.N("html5_onesie_live")&&b.loader&&!isNaN(b.loader.MJ);!b.videoData.isLivePlayback||b.videoData.Zr>0&&!zT(b.videoData)||R||uW(b)||(b.seekTo(Infinity,{ZK:"videoplayer_readying",seekSource:18}),b.isBackground()&&(b.p$=!0)); R=b.bl;if(R.qoe){R=R.qoe;const K=R.provider.videoData,I=R.provider.QX;for(var h of I.Tv)Tl(R,h);if(R.provider.N("html5_enable_qoe_cat_list"))for(const N of K.kt)Tl(R,N);else K.Tv&&Tl(R,R.provider.videoData.Tv);K.AO()&&(h=K.G,zT(K)&&Tl(R,"manifestless"),h&&Ip(h)&&Tl(R,`live-segment-${Ip(h).toFixed(1)}`));ve(K)?Tl(R,"sabr"):R.K6(Gs(K));if(lT(K)||K.eK())K.eK()&&Tl(R,"ssa"),Tl(R,"lifa");yy(K)&&Tl(R,"cdm");K.gatewayExperimentGroup&&(h=K.gatewayExperimentGroup,h==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"? h="spkadtrt":h==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(h="spkadctrl"),Tl(R,h));I.G6!=="yt"&&R.G.set("len",[K.lengthSeconds.toFixed(2)]);K.cotn&&!Zr(K)&&R.YE(!0);I.zy()&&(h=jmP())&&R.YZ("cblt",{m:h});I.N("html5_log_screen_diagonal")&&R.YZ("cbltdiag",{v:window.H5vccScreen?.GetDiagonal?window.H5vccScreen.GetDiagonal():0})}b.publish("playbackready");cI("pl_c",b.vH.timerName)||(b.vH.tick("pl_c"),XV("pl_c",void 0,"video_to_ad"));cI("pbr",b.vH.timerName)||(b.vH.tick("pbr"),XV("pbr",void 0,"video_to_ad"))}}}; ya=function(b,R){b.playerState.G(128)||(b.n0(UK(b.playerState,1028,9)),b.YZ("dompaused",{r:R}),b.publish("onAutoplayBlocked"))}; g.AL=function(b){const R=Nb(b);return pC(R)||!b.nT?null:g.jc(b.nT.G.videoInfos,h=>R.V(h))}; KZ=function(b,R,h,K,I){var N=b.bl;const p=b.videoData;p.Y=h;const l=g.AL(b);h=new iH(h,R,l?l.itag:"",K,I);b.QX.experiments.O9("html5_refactor_sabr_video_format_selection_logging")?b.Ko=h:N.qoe&&Ep2(N.qoe,h);N=b.EV;N.Y=0;N.G=0;b.publish("internalvideoformatchange",p,R==="m")}; Nb=function(b){if(b.nT){var R=b.EV;var h=b.nT;b=b.ZS();let K=KgT(R);if(pC(K)){if(K=R.NE(h).compose(s4w(R,h)).compose(ILs(R,h)).compose(BM(R,h.videoData)).compose(HM(R,h.videoData,h)).compose(qw(R,h)).compose(f_(R,h)),pC(b)||R.N("html5_apply_pbr_cap_for_drm"))K=K.compose(N63(R,h))}else R.N("html5_perf_cap_override_sticky")&&(K=K.compose(qw(R,h))),R.N("html5_ustreamer_cap_override_sticky")&&(K=K.compose(N63(R,h)));K=K.compose(f_(R,h));R=h.videoData.bC.compose(K).compose(h.videoData.o3).compose(b)}else R= vM;return R}; IRx=function(b){const R="loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ");for(const h of R)b.AS.j(b.mediaElement,h,b.ZB,b);b.QX.bC&&b.mediaElement.J()&&(b.AS.j(b.mediaElement,"webkitplaybacktargetavailabilitychanged",b.QI,b),b.AS.j(b.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",b.PJ,b))}; CP3=function(b){if(b.cY)if(b.hC(),b.cY.D)try{b.QX.zy()&&b.YZ("rms",{l:"vprms",sr:b.yk(),rs:b.cY.X()}),b.cY.clear(),b.mediaElement?.FM(b.cY),b.cY=null}catch(h){var R=new g.A$(`Error while clearing Media Source in VideoPlayer: ${h.name}, ${h.message}`);R=K4(R);b.handleError(R);b.HK()}else b.HK()}; sA=function(b){b.Eg&&(b.Eg.dispose(),b.Eg=null)}; NLw=function(b){b.mediaElement&&b.mediaElement.R0()&&(b.L3=(0,g.c)());b.QX.R$?g.QB(()=>{zj(b)},0):zj(b)}; zj=function(b){if(!b.cY?.nC()){if(b.mediaElement)try{b.TL=b.mediaElement.playVideo()}catch(R){ya(b,`err.${R}`)}if(b.TL){const R=b.TL;R.then(void 0,h=>{if(!(b.playerState.G(4)||b.playerState.G(256)||b.TL!==R||h&&h.name==="AbortError"&&h.message&&h.message.includes("load"))){let K="promise";h&&h.name&&(K+=`;m.${h.name}`);ya(b,K);b.RW=!0;b.videoData.pz=!0}})}}}; u8T=function(b,R=!1){if(b.cY)return b.cY.V;prx(b,R);return b.Uz()?.MJ()||null}; DFT=function(b,R=!1){let h=null;b.videoData.X?.G()?(h=u8T(b,R),b.loader?.resume()):(BO(b),b.videoData.gp&&(h=b.videoData.gp.Y()));return h}; lRK=function(b,R){if(R.G.video.quality==="auto"&&R.getInfo().X()&&b.videoData.fR)for(const h of b.videoData.fR)if(h.getHeight()===b.Nq&&h.G.video.quality!=="auto")return h.getInfo();return R.getInfo()}; aRq=function(b){return!!(b.N("html5_native_audio_track_switching")&&g.x9&&b.videoData.Y?.X())}; vu2=function(b){if(!aRq(b))return!1;b=b.mediaElement?.audioTracks();return!!(b&&b.length>1)}; HzD=function(b){const R=BLe(b);if(R){var h=UA[R]||R;return b.videoData.getAvailableAudioTracks().find(K=>K.Nj.getName()===h)}}; BLe=function(b){if(b=b.mediaElement?.audioTracks())for(let R=0;RI.getLanguageInfo().id===K)); if(b.QX.experiments.O9("enable_audio_description_setting")&&g.HL().WY(198))for(const I of h)if(I.S){R=I;break}b.Mj().G.WY(dys)&&b.videoData.cotn&&(R=h.find(I=>!!I.J)); R||(b=b.getAudioTrack(),R=b.Nj.isDefault?void 0:b);return R}; prx=function(b,R=!1){let h;try{g.y5()&&b.videoData.Rv()&&rcB(b.mediaElement),h=b.mediaElement.Uz(b.kG(),b.P8())}catch(K){if(p_(b.W$,"html5.missingapi",{updateMs:"1"}))return;console.error("window.URL object overwritten by external code",K);b.ij("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");return}b.Yf(h,!1,!1,R)}; fRB=function(b,R=!1){if(b.loader){b.videoData.enableServerStitchedDai&&spx(b.loader);const h=b.getCurrentTime()-b.Kz();b.loader.seek(h,{RK:R}).xb(()=>{})}else tL(b)}; yTB=function(b,R,h=!1,K=!1){!b.cY||R&&b.cY!==R||(R=b.getDuration(),!R&&zT(b.videoData)&&(R=25200,b.N("html5_use_centralized_player_time")&&(R=46800)),b.cY.isView?R>b.cY.getDuration()&&b.cY&&(b.cY.Fr(R),b.loader?.jn(R)):b.cY&&(b.cY.Fr(R),b.loader?.jn(R)),Xtx(b.loader,b.cY,h,K),b.publish("mediasourceattached"))}; tpT=function(b,R){if(b.QX.zy()&&b.mediaElement){const h=b.mediaElement.RT();h.omt=(b.mediaElement.getCurrentTime()+b.Kz()).toFixed(3);h.ps=b.playerState.state.toString(16);h.rt=(g.Sk(b.bl.provider)*1E3).toFixed();h.e=R;b.Xs[b.eg++%5]=h}}; jLH=function(b){if(g.dj("cobalt")&&g.dj("nintendo switch")){var R=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;b.YZ("nxdock",{d:R})}}; ATe=function(b){g.Pg(b.IE);Gj(b)||(b.IE=g.x_(()=>Gj(b),100))}; Gj=function(b){var R=b.mediaElement;R&&b.Jk&&!b.videoData.K&&!cI("vfp",b.vH.timerName)&&R.X()>=2&&!R.isEnded()&&sK(R.w4())&&b.vH.tick("vfp");return(R=b.mediaElement)&&!b.videoData.K&&R.getDuration()>0&&(R.isPaused()&&R.X()>=2&&sK(R.w4())&&(cI("pbp",b.vH.timerName)||b.vH.tick("pbp"),!b.videoData.FM||b.m4||R.isSeeking()||(b.m4=!0,b.publish("onPlaybackPauseAtStart"))),R=R.getCurrentTime(),Js(b.uf,R))?(b.Jz(),!0):!1}; gY=function(b,R){b.QX.N("html5_log_rebuffer_reason")&&(R={r:R,lact:i$()},b.mediaElement&&(R.bh=qS(b.mediaElement)),b.YZ("bufreason",R))}; izq=function(b){b.bl.onProgress();if(Aw(b.videoData)&&Date.now()>b.Hh+6283){if(b.N("html5_unified_live_latency_reporting")){var R=b.bl;R.qoe&&GLw(R.qoe)}else!b.isAtLiveHead()||b.videoData.G&&KB(b.videoData.G)||(R=b.bl,R.qoe&&GLw(R.qoe));R=g.bU(b.QX);const h=b.N("html5_always_log_rawlat");(R||h)&&b.YZ("rawlat",{l:oo(b.MN,"rawlivelatency").toFixed(3)});b.Hh=Date.now()}b.videoData.Y&&b.videoData.Y.X()&&(R=b.Np())&&R.videoHeight!==b.Nq&&(b.Nq=R.videoHeight,KZ(b,"a",lRK(b,b.videoData.gp)))}; zDe=function(b){if(b.QX.zy()){b.Xs.sort((R,h)=>+R.rt-+h.rt); for(const R of b.Xs)b.YZ("vpe",Object.assign({t:R.rt},R));b.Xs=[];b.eg=0}}; bzw=function(b,R){b.vH.tick("vta");XV("vta",void 0,"video_to_ad");b.getCurrentTime()>0&&BwK(b.Vp,b.getCurrentTime());b.mediaElement.activate(R);b.cY&&WL(4);!b.videoData.K&&b.playerState.isOrWillBePlaying()&&b.Ya.start();aRq(b)&&(R=b.mediaElement?.audioTracks())&&(R.onaddtrack=()=>{qzP(b)},R.onremovetrack=()=>{qzP(b)},R.onchange=()=>{b.publish("internalaudioformatchange",b.videoData,!0)})}; WO=function(b,R,h){const K=b.api.getCurrentTime()*1E3{b.api.playVideo();nZ(b)}); Sf("pause",()=>{b.api.pauseVideo();nZ(b)}); Sf("seekbackward",()=>{b.api.seekBy(-5*b.api.getPlaybackRate());nZ(b)}); Sf("seekforward",()=>{b.api.seekBy(5*b.api.getPlaybackRate());nZ(b)}); Sf("seekto",R=>{R=R.seekTime;R!=null&&b.api.seekTo(R);nZ(b)})}; nZ=function(b){b.api.N("web_reset_lact_on_media_actions")&&b.api.updateLastActiveTime()}; nux=function(b,R){for(const h of R){R=Number(h.playbackRelativePosition?.utcTimeMs)/1E3;const K=R+Number(h.duration?.seconds),I=`composite_embargo_${R}`;if(h.onEnter){const N=h.onEnter.filter(b.V);N.length&&(b.Y.set(I,N),b.api.addUtcCueRange(I,R,K,"compositeembargo",!1))}}}; Euw=function(b,R){b.G?.id!==R?.id&&(b.G&&(b.Y.delete(b.G.id),b.api.ZU([b.G],1)),b.G=R)}; TL3=function(b){b=b?.qualityDetails||[];return g.uT(b)&&!Array.isArray(b)?b:b.reduce((R,{key:h,value:K})=>{h&&K&&(R[h]=K);return R},{})}; JTT=function(b,R,h){const K=[],I=R?156595:151874;for(const p of b){var N=p.video;b={formatId:p.id,qualityLabel:N.qualityLabel,quality:N.quality,isPlayable:R};if(N=h[N.qualityLabel])b.paygatedQualityDetails={paygatedIndicatorText:N.paygatedIndicatorText,endpoint:N.endpoint,veType:I,trackingParams:N.trackingParams};K.push(b)}return K}; Yzs=function(b){EA()&&(b.vH=b.api.vI(),b.G=new tn,b.X=2,b.vH.bP("pt_pish"),window.requestIdleCallback?window.requestIdleCallback(()=>{kq2(b)}):kq2(b))}; EA=function(){return window.android&&window.android.webview&&window.android.webview.getExperimentalMediaIntegrityTokenProvider}; kq2=function(b){if(EA()){b.vH=b.api.vI();b.vH.bP("pt_pis");try{window.android.webview.getExperimentalMediaIntegrityTokenProvider({cloudProjectNumber:868618676952}).then(R=>{b.Y=R;b.G?.resolve();b.vH.bP("pt_pif")}).catch(R=>{Tj(R,"player_start"); b.vH.bP("pt_pie");b.G?.reject(R)})}catch(R){Tj(R,"player_start_catch"),b.api.YZ("pfes",{}),b.G?.reject(R)}}}; Tj=function(b,R){b.message&&g.kJ(Error(`${R}_${b.message}`))}; eDT=function(b,R){if(b.Y){var h=R.videoId;b.X=3;b.vH.bP("pt_ms");try{b.Y.requestToken(h).then(K=>{b.vH.bP("pt_mf");if(K=CB(K))R.m1={fH:K}}).catch(K=>{b.vH.bP("pt_me"); Tj(K,"player_generate");b.handleError(K,R)})}catch(K){Tj(K,"player_generate_catch"),b.handleError(K,R)}}}; OzD=function(b){const R=b.api.getVideoData();b.button.sW(R.KB)}; QLD=function(b,R){pt(b.api.L())&&(R?b.S.show():b.S.hide())}; my2=function(b){b.V0&&K>0&&(I.width+=K,g.MN(R.element,"width",`${I.width}px`)));b.size=I}}; XrK=function(b){b.X&&g.Rf(b.X);b.V&&g.Rf(b.V)}; Qa=function(b,R,h,K){XrK(b);R&&(R.unsubscribe("size-change",b.Dz,b),R.unsubscribe("back",b.e5,b));h.subscribe("size-change",b.Dz,b);h.subscribe("back",b.e5,b);if(b.XM){g.Nv(h.element,K?"ytp-panel-animate-back":"ytp-panel-animate-forward");h.AX(b.content);h.focus();b.element.scrollLeft=0;b.element.scrollTop=0;var I=b.size;uYT(b);g.pK(b.element,I);b.X=new g.bI(()=>{VpK(b,R,h,K)},20,b); b.X.start()}else h.AX(b.content),R&&R.detach()}; g.mP=function(b,R){const h=b.G[b.G.length-1];h!==R&&(b.G.push(R),Qa(b,h,R))}; VpK=function(b,R,h,K){b.X.dispose();b.X=null;g.Nv(b.element,"ytp-popup-animating");K?(g.Nv(R.element,"ytp-panel-animate-forward"),g.lI(h.element,"ytp-panel-animate-back")):(g.Nv(R.element,"ytp-panel-animate-back"),g.lI(h.element,"ytp-panel-animate-forward"));g.pK(b.element,b.size);b.V=new g.bI(()=>{g.lI(b.element,"ytp-popup-animating");R.detach();g.af(R.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);b.V.dispose();b.V=null},250,b); b.V.start()}; MpK=function(b,R,h){const K=R?.text?.simpleText;K&&(h=Cbw(b,h,K,R?.icon,R?.secondaryIcon),R.navigationEndpoint&&h.listen("click",()=>{g.rw(b.A,"innertubeCommand",R.navigationEndpoint);b.hide()},b))}; rTH=function(b,R,h){const K=R?.text?.simpleText;K&&Cbw(b,h,K,R?.icon).listen("click",()=>{R?.icon?.iconType==="HIDE"?b.A.publish("featuredproductdismissed"):R.serviceEndpoint&&g.rw(b.A,"innertubeCommand",R.serviceEndpoint);b.hide()},b)}; Cbw=function(b,R,h,K,I){R=new g.PO(g.zq({},[],!1,!!I),R,h);I&&R.updateValue("secondaryIcon",LVP(I));R.setIcon(LVP(K));g.n(b,R);b.WD.WH(R,!0);return R}; LVP=function(b){if(!b)return null;switch(b.iconType){case "ACCOUNT_CIRCLE":return{B:"svg",O:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{B:"path",O:{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{B:"svg",O:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{B:"path",O:{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 jv();case "HIDE":return{B:"svg",O:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{B:"g",W:[{B:"path",O:{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 zr()}}; Z9=function(b){b.isInitialized&&(b.enabled=b.isVisible,b.gp=b.isVisible,kn(b),b.Y(),b.thumbnailImage.sW(b.isVisible),b.shouldHideDismissButton||b.dismissButton.sW(b.isVisible),b.shouldShowOverflowButton&&b.overflowButton.sW(b.isVisible))}; bxq=function(b,R,h){if(h){var K="";wrq(b,R)&&(K=R,b.api.L().pR=R);K&&FVx(b,K)&&(USP(b.api,K),cq(An(b.api.L(),b.api.getVideoData()?.J()),I=>{var N=K;ouB(I)!==N&&DyD(b,cO(I),{stringValue:N})}))}}; uH=function(b){R8()?.size&&cq(An(b.api.L(),b.api.getVideoData()?.J()),R=>{(R=ouB(R))&&FVx(b,R)&&(b.api.L().pR=R)})}; hUs=function(b,R){X4(cq(cq(b.MF(),h=>hvK(h,[cO(R)])),h=>{if(h)for(const {key:K, value:I}of h)K&&I&&(RUD([{settingItemId:K,settingOptionValue:I}]),uH(b))}),()=>{b.G=!0})}; wrq=function(b,R){b=b.api.getAvailableAudioTracks();for(const h of b)if(h.getLanguageInfo().getId()===R)return h;return null}; FVx=function(b,R){return R.split(".")[0]!==""&&b.api.getVideoData()?.xQ()&&!0}; ouB=function(b){{b=cO(b);const R=R8();b=R?R.get(b):void 0}return b&&b.stringValue?b.stringValue:""}; DyD=function(b,R,h){RUD([{settingItemId:R,settingOptionValue:h}]);cq(b.MF(),K=>{sGD(K,R,h)})}; cO=function(b){let R=(484).toString();b&&(R=(483).toString());return R}; RUD=function(b){let R=R8();R||(R=new Map);for(const h of b)R.set(h.settingItemId,h.settingOptionValue);b=JSON.stringify(Object.fromEntries(R));g.Iz("yt-player-user-settings",b,2592E3)}; Kf2=function(b){if(b.K){const R=b.options[b.K];R.element.getAttribute("aria-checked");R.element.setAttribute("aria-checked","false");b.K=null}}; $nT=function(b,R){g.OA(b.Jc);const h={};let K=!1;for(let N=0;N1?2:1,b.X.height=b.heightPx* h,b.X.style.height=`${b.heightPx}px`,b.Y.scale(1,h)));for(var I of R){R=b;var N=b.index;for(h=0;h+2{K.setAttribute("d",tHP(N,p,l))},200)}; ixK=function(b,R){return b.X===void 0?!1:R.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(R.seekLengthMilliseconds)===5E3?b.X===72:R.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(R.seekLengthMilliseconds)===1E4?b.X===74:R.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(R.seekLengthMilliseconds)===5E3?b.X===71:R.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(R.seekLengthMilliseconds)===1E4?b.X===73:!1}; zUP=function(b){b.timelyActions&&(b.S=b.timelyActions.reduce((R,h)=>{if(h.cueRangeId===void 0)return R;R[h.cueRangeId]=0;return R},{}))}; o7=function(b){b.nR&&clearTimeout(b.nR);b.nR=void 0;b.G6=!1}; D9=function(b,R){if(b.timelyActions)for(const h of b.timelyActions)if(h.cueRangeId===R)return h}; UnP=function(b,R){if((b=D9(b,R))&&b.onCueRangeExit)return P7(b.onCueRangeExit)}; G_K=function(b,R){const h=Number(R?.maxVisibleDurationMilliseconds);h&&(o7(b),b.nR=setTimeout(()=>{if(b.G!==void 0&&R?.cueRangeId===b.G){b.G6=!1;var K=UnP(b,b.G);K&&g.rw(b.api,"innertubeCommand",K)}},h))}; Sm2=function(b){if(b=b.getWatchNextResponse())if(b=g.Z(b.playerOverlays?.playerOverlayRenderer?.timelyActionsOverlayViewModel,gCD),b?.timelyActions)return b?.timelyActions.map(R=>g.Z(R,Wfq)).filter(R=>!!R)}; ECT=function(b){b.menuItem||(b.menuItem=new nC3(b.api,R=>{b.setVoiceBoostUserPreference(R)},()=>b.getVoiceBoostUserPreference(),()=>b.getVoiceBoostState()),g.n(b,b.menuItem))}; TEB=function(b){b=b.xj();if(!b)return!1;b=g.zE(b).exp||"";return b.includes("xpv")||b.includes("xpe")}; JHK=function(b){for(const R of g.bf(b,!0))if(TEB(R))return!0;return!1}; k_D=function(b,R){for(const K of g.bf(b,!0))if(TEB(K)){b=K;var h={potc:"1",pot:R};b.url&&(b.url=GE(b.url,h))}}; YmK=async function(b){try{await b}catch(R){}}; eUx=function(b){const R=new Jl,h={["X-Goog-Api-Key"]:"AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw"};return new l6(R,b,()=>h)}; OxT=function(b){return new SM(b)}; QtT=function(b){b.Y&&(b.V=new tn,b.S.promise.then(()=>{b.vH.bP("pot_if");RB(b)}))}; mnP=function(b){const R=(b.N("html5_generate_session_po_token")||b.N("html5_generate_content_po_token"))&&!b.useLivingRoomPoToken;try{if(b.N("html5_use_shared_owl_instance"))xnH(b);else if(R){b.vH.bP("pot_isc");const h=g.fg(b.api.L().experiments,"html5_webpo_kaios_defer_timeout_ms");h?(h5(b),g.QB(()=>{KE(b)},h)):b.N("html5_webpo_idle_priority_job")?(h5(b),g.z6(g.G6(),()=>{KE(b)})):KE(b)}}catch(h){h instanceof Error&&g.kJ(h)}}; xnH=async function(b){sf(b,"swpo_i");h5(b);RB(b);var R=await iX(ln());sf(b,"swpo_co");R=await iPq(R);b.N("html5_web_po_token_disable_caching")||R.JM(150);b.Y=R;sf(b,"swpo_cc");YmK(R.Ef()).then(()=>{b.G=!0;b.S.resolve();sf(b,"swpo_re")}); g.QB(()=>{KE(b);sf(b,"swpo_si")},0)}; h5=function(b){b.X||(b.X=Qm())}; KE=function(b){var R=b.api.L();b.vH.bP("pot_ist");b.Y||Pzq(b);b.N("html5_bandaid_attach_content_po_token")||(b.N("html5_generate_session_po_token")&&(RB(b),QtT(b)),R=g.fg(R.experiments,"html5_session_po_token_interval_time_ms")||0,R>0&&(b.K=g.x_(()=>{RB(b)},R)),b.D=!0)}; ZxH=function(b){const R=my(b.experiments,"html5_web_po_request_key");return R?R:g.hB(b)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; sf=function(b,R){b.N("html5_webpo_bge_ctmp")&&b.api.YZ(R,{hwpo:!!b.Y,hwpor:b.G})}; RB=async function(b){if(b.N("html5_generate_session_po_token")&&!b.useLivingRoomPoToken){var R=b.api.L(),h=g.x("EOM_VISITOR_DATA")||g.x("VISITOR_DATA");h=R.GG?R.datasyncId:h;h=my(R.experiments,"html5_mock_content_binding_for_session_token")||R.livingRoomPoTokenId||h;R.wB=$7(b,h)}}; Pzq=function(b){const R=b.api.L();var h=ZxH(R);h=eUx(h);const K=h.df.bind(h);h.df=async N=>{N=await K(N);b.api.YZ("itr",{});return N}; let I;try{I=OxT({rE:h,GZ:{maxAttempts:5},BP:{sV:"CLEn",disable:R.experiments.O9("html5_web_po_disable_remote_logging"),tJ:x0K(R.experiments),Fb:p=>{var l=cHH.get(p);l||(l=new uTD(p),l=new Vq(l),cHH.set(p,l));return l}, fS:b.N("wpo_dis_lfdms")?0:1E3},uh:g.kJ});const N=new XbP({GJ:I,rE:h,onError:g.kJ});YmK(N.Ef()).then(()=>{b.G=!0;b.S.resolve()}); b.N("html5_web_po_token_disable_caching")||N.JM(150);g.n(b,I);g.n(b,N);b.Y=N}catch(N){g.kJ(N),I?.dispose()}}; $7=function(b,R){if(!b.Y){if(b.X)try{return b.X(R)}catch(h){g.kJ(h)}return""}try{b.vH.bP(b.G?"pot_cms":"pot_csms");const h={nD:!0,G8:!0,EA:R};b.N("html5_web_po_token_disable_caching")||(h.UE={tN:R,LK:!0,k_:!0});const K=b.Y.S$(h);b.vH.bP(b.G?"pot_cmf":"pot_csmf");b.G&&(b.V?.resolve(),b.V=null,b.J&&(b.J=!1,b.api.app.E9().IZ(!1)));return K}catch(h){return g.kJ(h),""}}; VHT=function(b,R){let h;switch(R){case 2:R="Ocultar v\u00eddeos";h="Hide recommendations grid";break;default:R="M\u00e1s v\u00eddeos",h="Show recommendations grid"}b.updateValue("title",R);b.element.ariaLabel=h;b.V.textContent=R}; bm=function(b,R,h,K,I,N,p,l){if((b<<1&15)>=11&&b+5>>4<4){var a=K[f[4]];R[f[41]](function(H,q,d){this[f[22]](d[q]=K[(K[f[0]](H)-K[f[0]](this[q])+q+a--)%K[f[4]]])},h[f[16]](f[7]))}if(b+8>>1=b)a:{var v=g.Z(R,Cze)||R[f[39]]; const H={cW:!1,Sq:f[7],mB:f[7],s:f[7]};if(!v){var B=H;break a}v=AQ(v);H[f[83]]=!0;H[f[36]]=v[f[5]];H[f[64]]=v[f[54]];H[f[74]]=v[f[74]];B=H}b-5<<2>=b&&(b-4|29){b.V&&K.keyCode===86&&!K.repeat&&b.X!==0&&(I&&(I.JY=!0),b.C("INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"))}); R.j(b.api.getRootNode(),"wheel",K=>{if(!b.G6&&b.V&&b.Y?.element&&!b.api.getPlayerStateObject().G(2)&&b.X!==0&&NR(b))if(g.Nv(b.api.getRootNode(),"ytp-grid-scrolling"),b.S===0&&(b.S=window.innerHeight),b.X===1)b.S!==0&&(b.G+=K.deltaY/b.S,b.G=g.ui(b.G,0,.7),aB(b),wbq(b,b.D/b.S+b.G>=.7,2));else if(b.X===2){const I=K.deltaY<0,N=b.Y?.V?.scrollTop===0,p=b.G!==0;I&&N||p&&!I?b.S!==0&&(b.G=Math.max(0,b.G-K.deltaY/b.S),aB(b),wbq(b,b.D/b.S+Math.abs(b.G)>=.7,1)):b.G!==0&&(b.G=0,aB(b))}},b,!0); R.j(h,"standardControlsInitialized",()=>{if(!b.Y){b.Y=new FfK(b.api,b.JX.bind(b));b.gp&&(b.U=new oCB(b.api),g.n(b,b.U),b.U.element.setAttribute("data-overlay-order","12"),b.api.Yk(b.U.element,4),b.U.listen("click",b.C,b));g.n(b,b.Y);var K=b.api.getRootNode().querySelector(".ytp-chrome-bottom");K&&K.parentNode&&K.parentNode.insertBefore(b.Y.element,K.nextSibling);Dn2(b)}}); R.j(h,"presentingplayerstatechange",()=>{pE(b)}); R.j(h,"autonavvisibility",()=>{pE(b)}); b.api.SS().subscribe("visibilitystatechange",()=>{pE(b)}); LfT(b,b.X)}; pE=function(b){if(b.V)if(g.lI(b.api.getRootNode(),"ytp-grid-scrolling"),b.api.getPresentingPlayerType()===2||b.api.Ik()||b.api.isMinimized())vs(b,0);else{var R=b.api.getPlayerStateObject().G(2);if(R)vs(b,2,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED");else if(b.isEnded&&!R){const h=NR(b)?1:0;b.isEnded=R;vs(b,h)}else NR(b)?b.X!==2&&vs(b,1):vs(b,0);b.isEnded=R}}; LfT=function(b,R){const h=b.api.getRootNode();g.k(h,"ytp-fullscreen-grid-peeking",R===1);g.k(h,"ytp-fullscreen-grid-active",R===2);R===1&&Dn2(b)}; Dn2=function(b){const R=b.api.getRootNode();var h=b.api.getPlayerStateObject().G(256)||b.api.getPlayerStateObject().G(32)||b.api.getPlayerStateObject().G(16)?b.D:b.SY&&b.api.getPlayerStateObject().isPaused()?(b.Y?.element.clientWidth||0)*.5625/3*b.vY||b.T6:b.T6;b.D=h;R.style.setProperty("--ytp-grid-peek-height",`${b.D}px`);g.k(R,"ytp-disable-bottom-gradient",b.D<=12&&b.J===0)}; NR=function(b){return b.api.isFullscreen()||b.NJ&&b.api.gR()}; aB=function(b){b.G===0&&b.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage","0");requestAnimationFrame(()=>{const R=b.G-b.J;let h=R;b.G!==0&&(h=g.ui(R,-.01,.01));b.J+=h;b.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",`${b.J.toString()}`);b.J!==b.G&&aB(b)})}; wbq=function(b,R,h){b.K&&clearTimeout(b.K);b.G===0&&g.lI(b.api.getRootNode(),"ytp-grid-scrolling");R?RY3(b,h):b.G<.1&&(b.K=window.setTimeout(()=>{RY3(b)},1E3))}; RY3=function(b,R){b.K&&(clearTimeout(b.K),b.K=null);b.S=0;b.V&&b.X!==0&&(R?vs(b,R):Math.abs(b.G)>=.15&&b.C("INTERACTION_LOGGING_GESTURE_TYPE_SCROLL_BEGAN_DRAGGING"),b.G=0,aB(b),g.lI(b.api.getRootNode(),"ytp-grid-scrolling"))}; Bs=function(b,R,h){mv("pbs",R??(0,g.c)(),h??b.timerName)}; hYe=function(b,R,h){var K=g.LB(R.uv)&&!R.uv.J;if(R.uv.Kj&&(op(R.uv)||R.uv.nR==="shortspage"||NH(R.uv)||K)&&!b.X){b.X=!0;b.J=R.clientPlaybackNonce;g.x("TIMING_ACTION")||aA("TIMING_ACTION",b.QX.csiPageType);b.QX.csiServiceName&&aA("CSI_SERVICE_NAME",b.QX.csiServiceName);if(b.G){K=b.G.vI();for(var I of Object.keys(K))mv(I,K[I],b.timerName);I=g.dK(Jox)(b.G.XU);g.PI(I,b.timerName);I=b.G;I.Y={};I.XU={}}g.PI({playerInfo:{visibilityState:g.dK(TaT)()},playerType:"LATENCY_PLAYER_HTML5"},b.timerName);b.S!== R.clientPlaybackNonce||Number.isNaN(b.Y)||(cI("_start",b.timerName)?h=g.dK(fw)("_start",b.timerName)+b.Y:g.kJ(new g.A$("attempted to log gapless pbs before CSI timeline started",{cpn:R.clientPlaybackNonce})));!h||cI("pbs",b.timerName)||R.Rg||Bs(b,h)}}; Hs=function(b){uE3();coe();b.timerName=""}; KcP=function(b){if(b.G){var R=b.G;R.Y={};R.XU={}}b.X=!1;b.S=void 0;b.Y=NaN}; qR=function(b){return!!(b.playlist||b.list||b.api)}; g.fE=function(b,R,h,K){R=R!==void 0?R:b.index;R=b.items&&R in b.items?b.items[b.order[R]]:null;let I=null;R&&(h&&(R.autoplay="1"),K&&(R.autonav="1"),I=new g.dh(b.uv,R),g.n(b,I),I.er=!0,I.startSeconds=b.startSeconds||I.clipStart||0,b.listId&&(I.playlistId=b.listId.toString()));return I}; s6B=function(b,R){if(R.video&&R.video.length){b.title=R.title||"";b.description=R.description;b.views=R.views;b.likes=R.likes;b.dislikes=R.dislikes;b.author=R.author||"";var h=R.loop;h&&(b.loop=h);h=g.fE(b);b.items=[];for(const K of R.video)K&&(K.video_id=K.encrypted_id,b.items.push(K));b.length=b.items.length;(R=R.index)?b.index=R:b.findIndex(h);b.setShuffle(!1);b.loaded=!0;b.Y++;b.G&&b.G()}}; $dB=function(b){const R=b.index+1;return R>=b.length?0:R}; Iy3=function(b){const R=b.index-1;return R<0?b.length-1:R}; yu=function(b,R){b.index=g.ui(R,0,b.length-1);b.startSeconds=0}; lyB=async function(b,R){const h=g.Nh();var K=b.L();const I={context:g.MF(b),playbackContext:{contentPlaybackContext:{ancestorOrigins:K.ancestorOrigins}}};var N=K.getWebPlayerContextConfig();N?.encryptedHostFlags&&(I.playbackContext.contentPlaybackContext.encryptedHostFlags=N.encryptedHostFlags);N?.hideInfo&&(I.playerParams={showinfo:!1});N=K.embedConfig;const p=b.xI;var l=R.docid||R.video_id||R.videoId||R.id;if(!l){l=R.raw_embedded_player_response;if(!l){var a=R.embedded_player_response;a&&(l=JSON.parse(a))}l= l?g.Z(l?.embedPreview?.thumbnailPreviewRenderer?.playButton?.buttonRenderer?.navigationEndpoint,g.hw)?.videoId||null:null}l=l?l:void 0;a=b.playlistId?b.playlistId:R.list;const v=R.listType;if(a){var B;v==="user_uploads"?B={username:a}:B={playlistId:a};NlP(N,p,l,R,B,K.experiments);I.playlistRequest=B}else R.playlist?(B={templistVideoIds:R.playlist.toString().split(",")},NlP(N,p,l,R,B,K.experiments),I.playlistRequest=B):l&&(B={videoId:l},p&&K.N("embeds_enable_per_video_embed_config")?B.serializedThirdPartyEmbedConfig= p:N&&(B.serializedThirdPartyEmbedConfig=N),I.singleVideoRequest=B);K=g.vI(pAw);try{const H=await g.bn(h,I,K),q=b.L();R.raw_embedded_player_response=H;q.MJ=Q5(R,g.Fo(q));q.X=q.MJ==="EMBEDDED_PLAYER_MODE_PFL";H&&H.trackingParams&&uD(H.trackingParams);return new g.dh(q,R)}catch(H){return H instanceof Error||(H=Error("b259802748")),g.X(H),b}}; NlP=function(b,R,h,K,I,N){K.index&&(I.playlistIndex=String(Number(K.index)+1));I.videoId=h?h:"";R&&N.O9("embeds_enable_per_video_embed_config")?I.serializedThirdPartyEmbedConfig=R:b&&(I.serializedThirdPartyEmbedConfig=b)}; g.jR=function(b,R){t5.get(b);t5.set(b,R)}; g.bf=function(b,R){return R?b.G.concat(b.Y):b.G}; aye=function(b,R){g.jc(R,h=>b.equals(h))||R.push(b)}; g.A5=function(b,R){switch(R.kind){case "asr":aye(R,b.Y);break;default:aye(R,b.G)}}; g.vhT=function(b,R){return R.L().N("html5_use_hls_native_captions")&&g.x9&&b.AO()&&!!b.Y?.X()}; g.zX=function(b,R){return b.L().N("safari_live_drm_captions_fix")&&b.getVideoData()?.OD()?!1:g.bU(b.L())&&!R.isManifestless}; g.Uf=function(b,R){return c5(b.info.mimeType)?R?b.info.itag===R:!0:!1}; g.Blx=function(b,R){if(b.G!=null&&g.zX(R,b.G)&&b.G.G.rawcc!=null)return!0;if(!b.AO())return!1;R=!!b.G&&b.G.isManifestless&&Object.values(b.G.G).some(h=>g.Uf(h,"386")); b=!!b.G&&!b.G.isManifestless&&g.sDD(b.G);return R||b}; BVx=function(b){if(b.A.L().Zr)return b.X$.get("ux")}; GX=function(b){return b.X$.get("ad")}; g.gh=function(b){return b.X$.get("captions")}; g.Ws=function(b){return b.X$.get("annotations_module")}; vr=function(b){if(b.A.L().CN)return b.X$.get("remote")}; SR=function(b){return b.X$.get("creatorendscreen")}; nE=function(b){if(hn(b.A.L()))return b.X$.get("kids")}; g.qy=function(b){return b.X$.get("webgl")}; Ef=function(b){if(b.A.L().Jq)return b.X$.get("offline")}; Hyx=function(b){if(b.A.L().showMiniplayerUiWhenMinimized)return b.X$.get("miniplayer")}; qg3=function(b,R){b.X=R}; ddq=function(b){const R=b.A.getVideoData();return g.vhT(R,b.A)||!!R.Zl||!!R.captionTracks.length||g.Blx(R,b.A)}; TX=function(b,R,h=!1,K=!1,I){var N;let p=b.X$.get(R);if(!p||K)if(I||(I=()=>{TX(b,R,h,K)}),N||(N=()=>{J5(b,R)}),p=p||fyx(b,R,yOe(b,R),I,N))b.X$.set(R,p),p.create(),b.A.publish("modulecreated",R),h&&g.Dr(b.A,"onApiChange")}; k7=function(b){if(b.A.L().X)return!1;if(b=b.A.getVideoData({playerType:1}).getPlayerResponse()){const R=b.adPlacements;if(R)for(let h=0;h{b.J.add(I);h.call(b)},K)}}; WcK=async function(b){var R=b.X$.get("asmjs");if(R)return R;R=t5.get("asmjs")??await new Promise((h,K)=>{UdK(b,"asmjs",()=>{const I=t5.get("asmjs");I?h(I):K("cannot load module asmjs")},K)}); if(!R)return Promise.reject("cannot load module asmjs");R=new R(b.A);b.X$.set("asmjs",R);R.create();return R}; eR=function(b){var R=b.A.getVideoData();if(b=R.N("web_player_defer_ad")){if(g.iR(R.Ha,"ad")||W6w(R)||R.enableServerStitchedDai)var h=!1;else{b=R.startSeconds;var K=R.playerResponse?.adPlacements;if(R=K){R=Number.MAX_VALUE;for(h of K)if(K=h.adPlacementRenderer){const I=K.config?.adPlacementConfig;I?.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&(K=(Number(I?.adTimeOffset?.offsetStartMilliseconds)||0)-Number(K.renderer?.adBreakServiceRenderer?.prefetchMilliseconds||0),K{h["set"](I,null)}); return h}; x7=function(b,R,h){for(const K of Eh2){const I=b.X$.get(K);I&&(h||I.Bd(R))&&(g.$l(I),b.X$.delete(K))}b.A.publish("modulesDestroyed",R)}; TlD=function(b){return ZH(()=>b.X$.get("asmjs")??SgB(b))}; ghe=function(b,R,h,K){var I=g.$s("SCRIPT");let N=!1,p;for(let d=0;d{b.HY()||h.call(b)},a=()=>{b.HY()||K.call(b)},v=p.onload; p.onload=d=>{ey(l);v&&v.apply(window,[d])}; const B=p.onerror;p.onerror=d=>{if(Math.random()<.01){const t=new g.A$("Unable to load player module",R,document.location&&document.location.origin);g.X(t)}ey(a);B&&B(d)}; const H=p,q=H.onreadystatechange;H.onreadystatechange=d=>{switch(H.readyState){case "loaded":case "complete":ey(l)}q&&q(d)}; N&&((I=b.A.L().cspNonce)&&p.setAttribute("nonce",I),g.vE(p,g.IA(R)),I=g.$s("HEAD")[0]||document.body,I.insertBefore(p,I.firstChild),b.addOnDisposeCallback(()=>{p.parentNode&&p.parentNode.removeChild(p)}))}; Ps=function(b,R,h){b.HY();const K=mC(b);h?(b.Y|=R,R&1&&b.U.start(),R&2&&b.G6.start(),R&2048&&b.C.start()):(b.Y&=~R,R&1&&b.U.stop(),R&2&&b.G6.stop(),R&2048&&b.C.stop(),R&512&&b.nR.stop());b.Y&512&&!(b.Y&128)&&b.nR.qa(b.SY);R=mC(b);K!==R&&b.publish("autohideupdate",R)}; var YWK=function(b,R){return uU[f[6]](this,5,b,R)}; JO3=function(b){Ps(b,4,!1);b.D&&(b.G.Ac(b.D),b.D=null,b.X=b.G.j(b.target,"mouseover",b.MA));b.X&&(b.G.Ac(b.X),b.X=b.G.j(b.target,"mouseover",b.MA))}; mC=function(b){return b.api.N("allow_autohide_on_paused_videos")?!(b.Y&-129):!b.Y}; kbw=function(b,...R){var h=b.api.L();for(const N of R){if(!N||N instanceof g.dh&&!N.videoId)continue;var K=b.api.tX().getPlayerSize();var I=g.yH();R=K.width*I;I*=K.height;if(R>1280||I>720)if(K=N.hU("maxresdefault.jpg"))break;if(R>640||I>480)if(K=N.hU("maxresdefault.jpg"))break;if(R>320||I>180)if(K=N.hU("sddefault.jpg")||N.hU("hqdefault.jpg")||N.hU("mqdefault.jpg"))break;if(K=N.hU("default.jpg"))break}g.BG(h)&&(h=new Image,h.addEventListener("load",()=>{w9H()}),h.src=K?K:"",b.api.vI().tick("ftr")); b.S.style.backgroundImage=K?`url(${K})`:""}; YgH=function(b){for(let R=0;R=67&&!b.api.L().D;b=b.api.L().disableOrganicUi;return!g.dj("tizen")&&!j4&&!R&&!b}; cO3=function(b,R){if(!R)return!1;var h=b.api.di();if(h.J()&&(h=h.hO())&&g.gM(h,R))return h.controls;for(h=0;h=11;b=b.api.L().D&&Vu;return!(!R&&!b)}; MR=function(b,R){b.qC.ea();if(b.Hf&&b.FN)b.FN=!1;else if(!b.api.L().vY&&!b.Vg()){const h=b.api.getPlayerStateObject();h.G(2)&&g.aL(b.api)||b.K4(h);R&&CE(b,R)?XA2(b):!b.api.L().wp||h.isCued()||h.G(1024)?b.Hd():b.Fh.isActive()?(b.EJ(),b.Fh.stop()):b.Fh.start()}}; rh=function(b,R){return!b.api.isInline()&&!cO3(b,h$(R))&&g.MU(R)}; LE=function(b,R){return b.api.getVideoData()?.mutedAutoplay&&R.target?.className?.includes("ytp-info-panel")?!1:g.MU(R)&&b.api.isMutedByMutedAutoplay()?(b.api.unMute(),b.api.getPresentingPlayerType()===2&&b.api.playVideo(),R=b.api.getPlayerStateObject(),!R.G(4)||R.G(8)||R.G(2)||b.Hd(),!0):!1}; CE=function(b,R){if(!b.api.L().N("web_player_invisible_fullscreen_button"))return!1;var h=b.api.getRootNode().getBoundingClientRect();let K,I;R.targetTouches&&R.targetTouches.length?(K=R.targetTouches[0].clientX,I=R.targetTouches[0].clientY):R.clientX!==void 0&&(K=R.clientX,I=R.clientY);return K!==void 0&&I!==void 0&&(R=K-h.left,h=I-h.top,b=b.api.getPlayerSize(),h>=b.height-40&&R>=b.width-40)?!0:!1}; XA2=function(b){if(b.api.L().wp&&b.api.getPresentingPlayerType()!==3)try{b.api.toggleFullscreen().catch(R=>{b.Dt(R)}),b.api.N("web_player_fullscreen_double_click_ve")&&b.api.logClick(b.api.tX().element)}catch(R){b.Dt(R)}}; Ve3=function(b,R,h){b.api.isFullscreen()?h<1-R&&b.api.toggleFullscreen():h>1+R&&b.api.toggleFullscreen()}; wh=function(b,R,h="",K=""){b.updateValue("label",h);b.updateValue("icon",R);b.G.i6();b.Y.start();b.updateValue("title",K);g.k(b.element,"ytp-bezel-text-hide",!K)}; FF=function(b,R,h){let K;R<=0?(h=En(),R="silenciado",K=0):(h=h?{B:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{B:"path",XX:!0,O:{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"}}]}:{B:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{B:"path",XX:!0,O:{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"}}]},K=Math.floor(R),R=K+"volumen");wh(b,h,R,`${K}%`)}; C8T=function(b,R){R=R?{B:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{B:"path",XX:!0,Z:"ytp-svg-fill",O:{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"}}]}:rax();const h=b.A.getPlaybackRate(),K=g.zc("Velocidad: $RATE",{RATE:String(h)});wh(b,R,K,h+"x")}; Mex=function(b,R){R=R?"Subt\u00edtulos activados":"Subt\u00edtulos desactivados";wh(b,khq(b.A),R)}; rOP=function(b,R){b.G=R;b.element.classList.toggle(oB.NOTIFICATIONS_ENABLED,b.G);const h=b.api.getVideoData();h?(R=R?h.pM:h.xA)?(b=b.api.MF())?DC(b,R):g.X(Error("No innertube service available when updating notification preferences.")):g.X(Error("No update preferences command available.")):g.X(Error("No video data when updating notification preferences."))}; DS=function(b,R,h){const K=document.location.protocol;b=XpP(`${K}//${b}/signin?context=popup`,"feature",R,"next",`${K}//${location.hostname}/post_login`);Lcw(b,h)}; Lcw=function(b,R){if(b=g.$w(window,b,"loginPopup","width=800,height=600,resizable=yes,scrollbars=yes"))nq2(()=>{R()}),b.moveTo((screen.width-800)/2,(screen.height-600)/2)}; Ddq=function(b){const R=b.api.L();wAs(b);b.updateValue("flyoutUnfocusable","true");b.updateValue("channelTitleFocusable","-1");b.updateValue("shouldHideExpandedTitleForA11y","true");b.updateValue("shouldHideExpandedSubtitleForA11y","true");R.Y||R.JX||(b.j(b.channel,"mouseenter",b.J),b.j(b.channel,"mouseleave",b.S),b.j(b.channel,"focusin",b.J),b.j(b.channel,"focusout",h=>{b.channel.contains(h.relatedTarget)||b.S()})); b.X=new g.bI(()=>{b.isExpanded()&&(b.api.logVisibility(b.channelName,!1),b.subscribeButton&&(b.subscribeButton.hide(),b.api.logVisibility(b.subscribeButton.element,!1)),b.G&&(b.G.hide(),b.api.logVisibility(b.G.element,!1)),b.channel.classList.remove("ytp-title-expanded"),b.channel.classList.add("ytp-title-show-collapsed"))},500); g.n(b,b.X);b.j(b.channel,FcT,()=>{ohT(b)}); b.j(b.api,"onHideControls",b.D);b.j(b.api,"appresize",b.D);b.j(b.api,"fullscreentoggled",b.D)}; b3=function(b){var R=b.api.L();const h=b.api.getVideoData();let K=g.yP(R)+h.JX;g.X8(h)&&(K="https://music.youtube.com"+h.JX);if(!g.Fo(R))return K;R={};g.F8(b.api,"addEmbedsConversionTrackingParams",[R]);return g.z9(K,R)}; buH=function(b){const R=b.api.getPlayerSize();return g.Fo(b.api.L())&&R.width>=524}; wAs=function(b){if(!b.api.L().PH){var R=b.api.getVideoData(),h=new g.Rx("Suscribirme",null,"Suscrito",null,!0,!1,R.zI,R.subscribed,"channel_avatar",null,b.api,!0);b.api.createServerVe(h.element,b);b.api.setTrackingParams(h.element,R.subscribeButtonRenderer?.trackingParams||null);b.j(h.element,"click",()=>{b.api.logClick(h.element)}); b.subscribeButton=h;g.n(b,b.subscribeButton);b.subscribeButton.AX(b.K);b.subscribeButton.hide();var K=new Rz3(b.api);b.G=K;g.n(b,K);K.AX(b.K);K.hide();b.j(b.api,"SUBSCRIBE",()=>{R.x4&&(K.show(),b.api.logVisibility(K.element,!0))}); b.j(b.api,"UNSUBSCRIBE",()=>{R.x4&&(K.hide(),b.api.logVisibility(K.element,!1),rOP(K,!1))})}}; ohT=function(b){b.channel.classList.remove("ytp-title-show-collapsed");b.channel.classList.remove("ytp-title-show-expanded")}; hzH=function(b,R="",h=""){b.V?(b.U!==R&&(b.Y.style.backgroundImage=`url(${R})`,b.U=R),b.updateValue("channelLink",b3(b)),b.updateValue("channelLogoLabel",g.zc("Foto de $CHANNEL_NAME",{CHANNEL_NAME:h})),g.Nv(b.api.getRootNode(),"ytp-title-enable-channel-logo")):g.lI(b.api.getRootNode(),"ytp-title-enable-channel-logo");b.api.logVisibility(b.Y,b.V&&b.G6)}; hA=function(b,R){b.element.setAttribute("aria-haspopup",String(R))}; KOe=function(){let b=document.queryCommandSupported&&document.queryCommandSupported("copy");mu("Chromium")>=43&&(b=!0);mu("Firefox")<=40&&(b=!1);return b}; K1=function(b){b.LX?.sW(!b.A.isFullscreen()&&!b.A.isMinimized()&&b.A.getPresentingPlayerType()!==2&&b.A.L().showMiniplayerButton)}; sMB=function(b){const R=!!b.xR;g.Uz(b.RT,R?"Copiar informaci\u00f3n de depuraci\u00f3n":"Obtener informaci\u00f3n de depuraci\u00f3n");hA(b.RT,!R);g.Uz(b.pC,R?"Copiar c\u00f3digo de inserci\u00f3n":"Obtener c\u00f3digo de inserci\u00f3n");hA(b.pC,!R);g.Uz(b.getVideoUrl,R?"Copiar URL del v\u00eddeo":"Obtener URL de v\u00eddeo");hA(b.getVideoUrl,!R);g.Uz(b.d9,R?"Copiar la URL del v\u00eddeo a partir del minuto actual":"Obtener URL de v\u00eddeo en el minuto actual");hA(b.d9,!R);b.pC.setIcon(R?C43(): null);b.getVideoUrl.setIcon(R?Ah():null);b.d9.setIcon(R?Ah():null)}; $aK=function(b,R){var h=b.A.L();const K=b.A.getPresentingPlayerType()===2;var I=!K||R.isListed;I=!h.C&&!!R.videoId&&I;h.playerStyle!=="play"?h="https://support.google.com/youtube/?p=report_playback":(h={contact_type:"playbackissue",html5:1,ei:R.eventId,v:R.videoId,p:"movies_playback"},R.Y&&(h.fmt=R.Y.itag),R.clientPlaybackNonce&&(h.cpn=R.clientPlaybackNonce),R.partnerId&&(h.partnerid=R.partnerId),h=g.z9("//support.google.com/googleplay/",h));b.pC.sW(I&&R.allowEmbed);b.getVideoUrl.sW(I);b.d9.sW(I&& !R.isLivePlayback);b.V5.setContent(h,"href");b.Xr?.sW(!R.isLivePlayback&&!K);K1(b);b.HM?.sW(!K)}; sY=function(b,R){let h=!1;if(b.xR){const K=b.xR.element;K.value=R;K.select();try{h=document.execCommand("copy")}catch(I){}}h?b.Gy.aT():(b.Mg.setContent(R,"text"),g.mP(b.Gy,b.N6),Yu(b.Mg.element),b.xR&&(b.xR=null,sMB(b)));return h}; I0x=function(b){return g.Fo(b.A.L())?b.HM:b.Xr}; N2q=function(b){b.Y.Y();var R=b.A.L();R.playerStyle==="gvn"||R.Y||R.JX||(R=b.A.tX(),b.Y.j(R,"contextmenu",b.SY),b.Y.j(R,"touchstart",b.onTouchStart,null,!0),b.Y.j(R,"touchmove",b.C,null,!0),b.Y.j(R,"touchend",b.C,null,!0))}; pxs=function(b){b.A.isFullscreen()?g.dL(b.A,b.element,10):b.AX(AT(b).body)}; l0P=async function(b,R){try{return await navigator.clipboard.writeText(R),!0}catch{let h=!1;const K=g.jO("TEXTAREA");K.value=R;K.setAttribute("readonly","");b=b.api.getRootNode();b.appendChild(K);if(Nr){const I=window.getSelection();I.removeAllRanges();const N=document.createRange();N.selectNodeContents(K);I.addRange(N);K.setSelectionRange(0,R.length)}else K.select();try{h=document.execCommand("copy")}catch(I){}b.removeChild(K);return h}}; a03=function(b){b.updateValue("icon",qU());if(b.api.L().Y)b.tooltip.j_(b.element,"Se ha copiado el enlace en el portapapeles.");else{b.updateValue("title-attr","Se ha copiado el enlace en el portapapeles.");b.updateValue("tooltip-title","Se ha copiado el enlace en el portapapeles.");b.tooltip.d4();b.tooltip.j_(b.element);const R=b.listen("mouseleave",()=>{b.Ac(R);b.bv();b.tooltip.dT()})}}; vy2=function(b){var R=b.api.L();const h=b.api.getVideoData(),K=b.api.tX().getPlayerSize().width;R=R.X;return!!h.videoId&&K>=240&&h.Yb&&!h.C0&&!b.api.isEmbedsShortsMode()&&!R}; B2H=function(b,R){R=g.zc("$TOTAL_SEEK_TIME\u00a0segundos",{TOTAL_SEEK_TIME:R.toString()});b.updateValue("seekTime",R)}; HuT=function(b,R){!b.A.N("web_enable_shopping_timely_shelf_client")||b.A.N("web_force_featured_product_banner_with_timely_shelf")||!R||R.isLivePlayback||R.isPremiere||R.VB||R.isLiveHeadPlayable||R.pm||R.getPlayerResponse()?.videoDetails?.isLiveContent!==!1?b.badge.element.classList.remove("ytp-timely-shelf-present"):b.badge.element.classList.add("ytp-timely-shelf-present")}; Ix=function(b){b.NJ=[];b.JX();b.A.lj("featured_product")}; p1=function(b){b.ri?.stop();b.C.hide();b.U.hide();Nk(b)}; Nk=function(b){if(b.trendingOfferEntityKey){var R=g.NF.getState().entities;(R=E0(R,"trendingOfferEntity",b.trendingOfferEntityKey))?R.encodedSkuId!==b.G?.bannerData?.itemData?.encodedOfferSkuId?l3(b):(b.V.update({trendingOffer:`${R.shortLabel} \u2022 ${R.countLabel}`}),b.V.show(),b.banner.update({vendor:ax(b)})):l3(b)}else l3(b)}; qax=function(b){const R=b.G?.bannerData?.itemData;return R?.priceReplacementText||b.A.N("web_player_enable_featured_product_banner_promotion_text_on_desktop")||!R?.dealsData?.sales?.originalPrice?null:R?.dealsData?.sales?.originalPrice}; daw=function(b){const R=b.G?.bannerData?.itemData;return R?.priceReplacementText||b.A.N("web_player_enable_featured_product_banner_promotion_text_on_desktop")||R?.dealsData?.sales?.originalPrice||!R?.dealsData?.priceDrop?.referencePrice?null:R?.dealsData?.priceDrop?.referencePrice}; f02=function(b){const R=b.G?.bannerData?.itemData;return b.A.N("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&!R?.priceReplacementText&&R?.promotionText?R?.promotionText.content:null}; y0P=function(b){const R=b.G?.bannerData?.itemData;return R?.priceReplacementText?R?.priceReplacementText:R?.promotionText&&b.A.N("web_player_enable_featured_product_banner_promotion_text_on_desktop")?`${R?.price} ${R?.promotionText?.content}`:R?.dealsData?.sales?.originalPrice?R?.dealsData?.sales?.salesPriceAccessibilityLabel:R?.dealsData?.priceDrop?.referencePrice?`${R?.price} ${R?.dealsData?.priceDrop?.referencePrice}`:R?.price}; ax=function(b){return b.A.N("web_player_enable_featured_product_banner_promotion_text_on_desktop")?b.V.XM?null:b.G?.bannerData?.itemData?.vendorName:b.V.XM||b.U.XM||b.G?.bannerData?.itemData?.affiliateDisclaimer?null:b.G?.bannerData?.itemData?.vendorName}; tkx=function(b){const R=(Number(b.G?.bannerData?.itemData?.hiddenProductOptions?.dropTimestampMs)-Date.now())/1E3;b.countdownTimer.setContent(JX({seconds:R}));R>0&&b.PH?.start()}; jMP=function(b){b=b.G?.bannerData?.itemData;return!b?.affiliateDisclaimer&&b?.exclusivesData?.exclusiveOfferLabelText&&b?.exclusivesData?.expirationTimestampMs&&b?.exclusivesData?.exclusiveOfferCountdownText?!0:!1}; A0H=function(b){var R=(Number(b.G?.bannerData?.itemData?.exclusivesData?.expirationTimestampMs)-Date.now())/1E3;if(R>0){if(R<604800){var h=b.G?.bannerData?.itemData?.exclusivesData?.exclusiveOfferCountdownText;if(h!==void 0){var K=Date.now();for(const I of h){if(I===void 0||I.text===void 0)continue;h=Number(I.textDisplayStartTimestampMs);if(!isNaN(h)&&K>=h){I.insertCountdown?(R=I.text.replace(/\$0/,String(JX({seconds:R}))),b.C.setContent(R)):b.C.setContent(I.text);b.C.show();break}}}}b.U.update({exclusive:b.G?.bannerData?.itemData?.exclusivesData?.exclusiveOfferLabelText}); b.U.show();l3(b);b.ri?.start()}else p1(b)}; l3=function(b){b.V.hide();b.banner.update({vendor:ax(b)})}; iuT=function(b){if(b!==void 0&&b.trim()!==""&&(b=Math.trunc(Number(b.trim())),!(isNaN(b)||b<0)))return b}; zzD=function(b,R){Ix(b);if(R){var h=g.NF.getState().entities;h=E0(h,"featuredProductsEntity",R);if(h?.productsData){R=[];for(const K of h.productsData)if(K?.identifier&&K.featuredSegments){b.NJ.push(K);for(const I of K?.featuredSegments){h=iuT(I.startTimeSec);if(h===void 0)continue;const N=iuT(I.endTimeSec);R.push(new g.gL(h*1E3,N===void 0?0x7ffffffffffff:N*1E3,{id:K.identifier,namespace:"featured_product"}))}}b.A.f5(R)}}}; UaP=function(b){switch(b){case "OPEN_IN_NEW":return zr();case "NOT_INTERESTED":return{B:"svg",O:{fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{B:"path",O:{d:"M18.71,6C20.13,7.59,21,9.69,21,12c0,4.97-4.03,9-9,9c-2.31,0-4.41-0.87-6-2.29L18.71,6z M3,12 c0-4.97,4.03-9,9-9c2.31,0,4.41,.87,6,2.29L5.29,18C3.87,16.41,3,14.31,3,12z M12,2c5.52,0,10,4.48,10,10c0,5.52-4.48,10-10,10 C6.48,22,2,17.52,2,12C2,6.48,6.48,2,12,2z","fill-rule":"evenodd"}}]};case "HELP_OUTLINE":return jv();default:return zr()}}; vw=function(b,R){if(!R.CY||!b.A.PM()){var h=R.R$||1E4,K=!!R.NJ?.title?.content||!!R.NJ?.bodyText?.content;b.G?R.videoId&&R.videoId!==b.videoId&&(b.G.i6(),b.videoId=R.videoId,K?(Glw(b,h,R),b.zD()):(b.aT(),b.G.dispose(),b.G=null)):K&&(R.videoId&&(b.videoId=R.videoId),Glw(b,h,R),b.zD())}}; gyx=function(b,R){b.G&&(R.G(8)?(b.Y=!0,b.zD(),b.G.start()):(R.G(2)||R.G(64))&&b.videoId&&(b.videoId=null))}; Glw=function(b,R,h){b.G&&b.G.dispose();b.G=new g.bI(b.K,R,b);g.n(b,b.G);b.A.setTrackingParams(b.element,h.NJ?.trackingParams||null);h?.NJ?.title?.content?(R=h.NJ?.title?.content,h.NJ?.bodyText?.content&&(R+=" \u2022 ")):R="";b.update({text:R+(h.NJ?.bodyText?.content||""),chevron:g.fW()})}; Bw=function(b){let R=null;try{R=b.toLocaleString("es",{style:"percent"})}catch(h){R=b.toLocaleString(void 0,{style:"percent"})}return R}; Hw=function(b,R){let h=0;for(const K of b){if(K.startTime>R)break;h++}return h===0?h:h-1}; WO2=function(b,R){let h=0;for(const K of b){if(R=K.timeRangeStartMillis&&R2**31-1?"0":String(b)}; j0=function(b,R){b.actionButtons.includes(R)||(b.actionButtons.push(R),b.updateValue("buttons",b.actionButtons))}; Yax=function(b){var R=document.querySelectorAll(`[data-tooltip-target-id="${b.tooltipRenderer.targetId}"]`);R=R.length>0?R[0]:null;const h=g.p0("ytp-ad-module");b.X=!!g.p0("ytp-chrome-bottom")?.contains(R);b.D=!!h?.contains(R);b.K=!!R?.hasAttribute("data-tooltip-target-fixed");return R}; AA=function(b){var R;if(!(R=!b.G)){R=b.G;var h=window.getComputedStyle(R);R=h.display==="none"||h.visibility==="hidden"||R.getAttribute("aria-hidden")==="true"}if(R||b.A.isMinimized())b.sW(!1);else if(R=g.lu(b.G),R.width&&R.height){b.A.qA(b.element,b.G);var K=b.A.tX().getPlayerSize().height;h=g.lu(b.yX("ytp-promotooltip-container")).height;b.X?b.element.style.top=`${K-h-R.height-12}px`:b.K||(K=b.A.tb().height-h-R.height-12,b.element.style.top=`${K}px`);K=b.yX("ytp-promotooltip-pointer");const I=g.NB(b.G, b.A.getRootNode()),N=Number(b.element.style.left.replace(/[^\d\.]/g,""));b=b.A.isFullscreen()?18:12;K.style.left=`${I.x-N+R.width/2-b}px`;K.style.top=`${h}px`}else b.sW(!1)}; i3=function(b){b.sW(!1);b.Y&&b.A.logVisibility(b.element,b.XM)}; ez3=function(b){const R=g.Z(b.dismissButton,N6)?.text?.runs?.length&&!!g.Z(b.dismissButton,N6).text.runs[0].text;return g.Z(b.acceptButton,N6)?.text?.runs?.length&&!!g.Z(b.acceptButton,N6).text.runs[0].text||R}; QMx=function(b,R=1,h=!0){b.X=b.V.animate([{offset:0,opacity:R},{offset:1,opacity:0}],{duration:200,fill:"forwards",easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"});h&&(b.X.addEventListener("finish",()=>{b.X=void 0;OuK(b);b.hide()}),b.G="fading-out")}; xaD=function(b,R){b.X=b.V.animate([{offset:0,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",opacity:R},{offset:1,opacity:1}],{duration:200,fill:"forwards"});b.X.addEventListener("finish",()=>{b.X=void 0;b.J.start();b.G="lingering"})}; max=function(b,R,h=!1,K=!1){var I=[];I.push({offset:0,transform:`translateX(${b.Y===-1?20:-20}px)`,opacity:h?"0":"1"});h&&I.push({offset:.5,opacity:"1"});I.push({offset:1,transform:"translateX(0)",opacity:"1"});h=R.animate(I,{duration:400,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});R=R.querySelector("path");I=[];const N={offset:0,d:b.Y===-1?'path("M 18 4 L 18 16 L 18 28")':'path("M 4 4 L 4 16 L 4 28")'};K&&(N.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))");I.push(N);K&&I.push({offset:.8,filter:"drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))"}); b={offset:1,d:b.Y===-1?'path("M 18 4 L 6 16 L 18 28")':'path("M 4 4 L 16 16 L 4 28")'};K&&(b.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0))");I.push(b);R.animate(I,{duration:333,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)",fill:"forwards"});return h}; PoP=function(b){const R=b.V.querySelector(".ytp-seek-overlay-arrow-persistent").cloneNode(!0);R.classList.add("ytp-seek-overlay-arrow-additional");R.classList.remove("ytp-seek-overlay-arrow-persistent");b.V.appendChild(R);max(b,R,!0,!0).addEventListener("finish",()=>{R.remove()})}; OuK=function(b){b.S=0;b.G="hidden";b.Y=void 0;b.V=void 0;b.J.stop();b.X=void 0}; Zuw=function(b){const R=Number(getComputedStyle(b.V).opacity);b.X?.cancel();b.X=void 0;return R}; c0T=function(b,R,h){b.updateValue("text",R);if(h){a:{switch(h){case "PREMIUM_STANDALONE":R=IQx();break a;case "PREMIUM_STANDALONE_CAIRO":R=NpH();break a}R=void 0}b.updateValue("icon",R)}for(const K of b.U.getAnimations())K.cancel();b.U.animate([{offset:0,opacity:0},{offset:.3,opacity:1},{offset:.7,opacity:1},{offset:1,opacity:0}],{duration:1400}).addEventListener("finish",()=>{b.updateValue("text","");b.updateValue("icon","")})}; uQP=function(b,R){R.name!=="InvalidStateError"&&R.name!=="AbortError"&&(R.name==="NotAllowedError"?(b.G.Vg(),ib(b.Y,b.element,!1)):g.X(R))}; ze=function(b){var R=b.api.L();const h=b.api.getVideoData(),K=g.Fo(R)&&g.Br(b.api)&&b.api.getPlayerStateObject().G(128);R=R.X||R.disableSharing&&b.api.getPresentingPlayerType()!==2||!h.showShareButton||h.Yb||K||h.C0||!1;b=b.api.tX().getPlayerSize().width;return!!h.videoId&&b>=240&&!R}; Mk2=function(b,R){Xxw(b);const h=R.links||R.shareTargets;let K=0;for(let l=0;l{var q=a.url;if(g.MU(H)){var d={};d.target=d.target||"YouTube";d.width=d.width||"600";d.height=d.height||"600";{var t=d;t||(t={});d=window;var S=q instanceof Cj?q:g.Fr(typeof q.href!="undefined"?q.href:String(q));var J=self.crossOriginIsolated!==void 0,e="strict-origin-when-cross-origin"; window.Request&&(e=(new Request("/")).referrerPolicy);var Y=t.noreferrer;if(J&&Y&&e==="unsafe-url")throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");e=Y&&!J;q=t.target||q.target;Y=[];let P=[],$B=!1;for(var Q in t){const IK=t[Q];switch(Q){case "width":case "height":case "top":case "left":Y.push(Q+"="+IK);break;case "target":break;case "noopener":case "noreferrer":IK?P.push(Q):($B=!0,P.push(Q+"=false"));break;case "attributionsrc":Y.push(Q+ (IK?"="+IK:""));break;default:Y.push(Q+"="+(IK?1:0))}}Q=q!==void 0&&!["_blank","_self","_top","_parent",""].includes(q);Q=eL()&&Q;Vk3&&J&&Y.length===0&&P.length>0&&!Q&&!$B?(P.length===2&&(P=["noreferrer"]),g.$w(d,S,q,P[0]),d=FA()):(J=Y.join(","),el()&&d.navigator&&d.navigator.standalone&&q&&q!="_self"?(J=g.jO("A"),g.bi(J,S),J.target=q,e&&(J.rel="noreferrer"),((t=t.attributionsrc)||t==="")&&J.setAttribute("attributionsrc",t),t=document.createEvent("MouseEvent"),t.initMouseEvent("click",!0,!0,d,1), J.dispatchEvent(t),d=FA()):e?(d=g.$w(d,"",q,J),t=g.M$(S),d&&(d.opener=null,t===""&&(t="javascript:''"),t='',t=KP(t),(S=d.document)&&S.write&&(S.write(s5(t)),S.close()))):((d=g.$w(d,S,q,J))&&t.noopener&&(d.opener=null),d&&t.noreferrer&&(d.opener=null)))}d&&(d.opener||(d.opener=window),d.focus());H.preventDefault()}}); B.addOnDisposeCallback(g.IL(b.tooltip,B.element));v==="Facebook"?b.api.createClientVe(B.element,B,164504):v==="Twitter"&&b.api.createClientVe(B.element,B,164505);b.j(B.element,"click",()=>{b.api.logClick(B.element)}); b.api.logVisibility(B.element,!0);b.Y.push(B);K++}const N=R.more||R.moreLink,p=new g.w({B:"a",F5:["ytp-share-panel-service-button","ytp-button"],W:[{B:"span",Z:"ytp-share-panel-service-button-more",W:[{B:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},W:[{B:"rect",O:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{B:"path",O:{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"}}]}]}],O:{href:N,target:"_blank",title:"M\u00e1s"}});p.listen("click",l=>{var a=N;b.api.logClick(b.moreButton.element);a=CoD(b,a);g.Tq(a,b.api,l)&&g.rw(b.api,"SHARE_CLICKED")}); p.addOnDisposeCallback(g.IL(b.tooltip,p.element));b.api.createClientVe(p.element,p,164506);b.j(p.element,"click",()=>{b.api.logClick(p.element)}); b.api.logVisibility(p.element,!0);b.Y.push(p);b.moreButton=p;b.updateValue("buttons",b.Y)}; Xxw=function(b){for(const R of b.Y)R.detach(),g.$l(R);b.Y=[]}; CoD=function(b,R){const h={};g.Fo(b.api.L())&&(g.F8(b.api,"addEmbedsConversionTrackingParams",[h]),R=g.z9(R,h));return R}; UY=function(b){return b===void 0||b.startSec===void 0||b.endSec===void 0?!1:!0}; Ge=function(b,R){b.startSec+=R;b.endSec+=R}; gG=function(b){b.A.lj("shopping_overlay_visible");b.A.lj("shopping_overlay_preview_collapsed");b.A.lj("shopping_overlay_preview_expanded");b.A.lj("shopping_overlay_expanded")}; r0B=function(b,R){b.isContentForward=R;g.k(b.badge.element,"ytp-suggested-action-badge-content-forward",R)}; Ww=function(b){const R=b.isContentForward&&!b.wp();g.k(b.badge.element,"ytp-suggested-action-badge-preview-collapsed",R&&b.G);g.k(b.badge.element,"ytp-suggested-action-badge-preview-expanded",R&&b.V)}; LOx=function(b){b.U&&b.KR.element.removeChild(b.U.element);b.U=void 0}; FOw=function(b,R){return R.map(h=>{if((h=g.Z(h,wxe)?.thumbnail?.thumbnails)&&h.length!==0)return h[0].url}).filter(h=>h!==void 0).map(h=>{h=new g.w({B:"img", Z:"ytp-suggested-action-product-thumbnail",O:{alt:"",src:h}});g.n(b,h);return h})}; S0=function(b,R,h){return new g.gL(b*1E3,R*1E3,{priority:9,namespace:h})}; oyP=function(b){b.j(b.A,g.fM("shopping_overlay_visible"),()=>{b.MC(!0)}); b.j(b.A,g.yf("shopping_overlay_visible"),()=>{b.MC(!1)}); b.j(b.A,g.fM("shopping_overlay_expanded"),()=>{b.gp=!0;kn(b)}); b.j(b.A,g.yf("shopping_overlay_expanded"),()=>{b.gp=!1;kn(b)}); b.j(b.A,g.fM("shopping_overlay_preview_collapsed"),()=>{b.G=!0;Ww(b)}); b.j(b.A,g.yf("shopping_overlay_preview_collapsed"),()=>{b.G=!1;Ww(b)}); b.j(b.A,g.fM("shopping_overlay_preview_expanded"),()=>{b.V=!0;Ww(b)}); b.j(b.A,g.yf("shopping_overlay_preview_expanded"),()=>{b.V=!1;Ww(b)})}; DaK=function(b){var R=b.api.L(),h=b.api.getVideoData();h=g.yP(R)+h.JX;if(!g.Fo(R))return h;R={};g.F8(b.api,"addEmbedsConversionTrackingParams",[R]);return g.z9(h,R)}; b_K=function(b){if(!b.api.L().PH){var R=b.api.getVideoData(),h=new g.Rx("Suscribirme",null,"Suscrito",null,!0,!1,R.zI,R.subscribed,"channel_avatar",null,b.api,!0);b.api.createServerVe(h.element,b);b.api.setTrackingParams(h.element,R.subscribeButtonRenderer?.trackingParams||null);b.j(h.element,"click",()=>{b.api.logClick(h.element)}); b.subscribeButton=h;g.n(b,b.subscribeButton);b.subscribeButton.AX(b.element)}}; RK3=function(b,R,h="",K=""){R?(b.Y!==h&&(b.G.style.backgroundImage=`url(${h})`,b.Y=h),b.updateValue("channelLogoLabel",g.zc("Foto de $CHANNEL_NAME",{CHANNEL_NAME:K})),g.Nv(b.api.getRootNode(),"ytp-title-enable-channel-logo")):g.lI(b.api.getRootNode(),"ytp-title-enable-channel-logo");b.api.logVisibility(b.G,R&&b.G6);b.api.logVisibility(b.channelName,R&&b.G6)}; hKK=function(b,R){if(b.G){R=Math.floor(R*.4);R=Math.max(R,47);var h=R+2;if(b.X!==h){b.X=h;b.Y.height=h;b.G.clearRect(0,0,1,h);var K=b.G.createLinearGradient(0,2,0,2+R),I=R-42;K.addColorStop(0,"rgba(0, 0, 0, 0)");K.addColorStop(I/R,"rgba(0, 0, 0, 0.3)");K.addColorStop(1,"rgba(0, 0, 0, 0.68)");b.G.fillStyle=K;b.G.fillRect(0,2,1,R);b.element.style.height=`${h}px`;try{b.element.style.backgroundImage=`url(${b.Y.toDataURL()})`}catch(N){}}}}; KYT=function(b,R){R!==b.J&&(b.update({chapterTitle:R,ariaLabel:R}),b.J=R);R?b.show():b.hide()}; soT=function(b){b.G.disabled=b.Y==null;g.k(b.G,"ytp-chapter-container-disabled",b.G.disabled);b.FX()}; $wH=function(b,R,h,K,I){const N=R.Xc/R.rows;let p=Math.min(h/(R.BV/R.columns),K/N),l=R.BV*p,a=R.Xc*p;l=Math.floor(l/R.columns)*R.columns;a=Math.floor(a/R.rows)*R.rows;let v=l/R.columns,B=a/R.rows;const H=-R.column*v,q=-R.row*B;I&&N<=45&&(B-=1/p);v-=2/p;b=b.style;b.width=`${v}px`;b.height=`${B}px`;I||(K=(K-B)/2,h=(h-v)/2,b.marginTop=Math.floor(K)+"px",b.marginBottom=Math.ceil(K)+"px",b.marginLeft=Math.floor(h)+"px",b.marginRight=Math.ceil(h)+"px");b.background=`url(${R.url}) ${H}px ${q}px/${l}px ${a}px`}; n1=function(b,R){const h=!!b.G;b.G=R;b.G?(h||(b.events.j(b.api,"videodatachange",()=>{n1(b,b.api.hW())}),b.events.j(b.api,"progresssync",b.onProgress),b.events.j(b.api,"appresize",b.V)),b.frameIndex=NaN,EY(b),b.fade.show(200)):(h&&b.events.Y(),b.fade.hide(),b.fade.stop())}; EY=function(b){var R=b.G;const h=b.api.getCurrentTime(),K=b.api.tX().getPlayerSize();var I=MH(R,K.width);I=Vzq(R,I,h);b.update({timestamp:g.CW(h)});I!==b.frameIndex&&(b.frameIndex=I,X8B(R,I,K.width),R=ZMH(R,I,K.width),$wH(b.Y,R,K.width,K.height))}; IBs=function(b,R){return b.A.N("delhi_modern_web_player_icons")?R?{B:"svg",O:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{B:"path",O:{d:"M3.29 3.29C3.11 3.46 3.01 3.70 3.00 3.94C2.98 4.19 3.06 4.43 3.22 4.63L3.29 4.70L7.58 8.99H5C4.73 8.99 4.48 9.10 4.29 9.29C4.10 9.47 4 9.73 4 9.99C4 10.26 4.10 10.51 4.29 10.70C4.48 10.89 4.73 10.99 5 10.99H11V4.99C11 4.73 10.89 4.47 10.70 4.29C10.51 4.10 10.26 3.99 10 3.99C9.73 3.99 9.48 4.10 9.29 4.29C9.10 4.47 9 4.73 9 4.99V7.58L4.70 3.29L4.63 3.22C4.43 3.06 4.19 2.98 3.94 3.00C3.70 3.01 3.46 3.11 3.29 3.29ZM19 13H13V19C13 19.26 13.10 19.51 13.29 19.70C13.48 19.89 13.73 20 14 20C14.26 20 14.51 19.89 14.70 19.70C14.89 19.51 15 19.26 15 19V16.41L19.29 20.70L19.36 20.77C19.56 20.92 19.80 21.00 20.04 20.99C20.29 20.98 20.52 20.87 20.70 20.70C20.87 20.52 20.98 20.29 20.99 20.04C21.00 19.80 20.92 19.56 20.77 19.36L20.70 19.29L16.41 15H19C19.26 15 19.51 14.89 19.70 14.70C19.89 14.51 20 14.26 20 14C20 13.73 19.89 13.48 19.70 13.29C19.51 13.10 19.26 13 19 13Z", fill:"white"}}]}:{B:"svg",O:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{B:"path",O:{d:"M10 3H3V10C3 10.26 3.10 10.51 3.29 10.70C3.48 10.89 3.73 11 4 11C4.26 11 4.51 10.89 4.70 10.70C4.89 10.51 5 10.26 5 10V6.41L9.29 10.70L9.36 10.77C9.56 10.92 9.80 11.00 10.04 10.99C10.29 10.98 10.52 10.87 10.70 10.70C10.87 10.52 10.98 10.29 10.99 10.04C11.00 9.80 10.92 9.56 10.77 9.36L10.70 9.29L6.41 5H10C10.26 5 10.51 4.89 10.70 4.70C10.89 4.51 11 4.26 11 4C11 3.73 10.89 3.48 10.70 3.29C10.51 3.10 10.26 3 10 3ZM20 13C19.73 13 19.48 13.10 19.29 13.29C19.10 13.48 19 13.73 19 14V17.58L14.70 13.29L14.63 13.22C14.43 13.07 14.19 12.99 13.95 13.00C13.70 13.01 13.47 13.12 13.29 13.29C13.12 13.47 13.01 13.70 13.00 13.95C12.99 14.19 13.07 14.43 13.22 14.63L13.29 14.70L17.58 19H14C13.73 19 13.48 19.10 13.29 19.29C13.10 19.48 13 19.73 13 20C13 20.26 13.10 20.51 13.29 20.70C13.48 20.89 13.73 21 14 21H21V14C21 13.73 20.89 13.48 20.70 13.29C20.51 13.10 20.26 13 20 13Z", fill:"white"}}]}:R?{B:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{B:"g",Z:"ytp-fullscreen-button-corner-2",W:[{B:"path",XX:!0,Z:"ytp-svg-fill",O:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{B:"g",Z:"ytp-fullscreen-button-corner-3",W:[{B:"path",XX:!0,Z:"ytp-svg-fill",O:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{B:"g",Z:"ytp-fullscreen-button-corner-0",W:[{B:"path",XX:!0,Z:"ytp-svg-fill",O:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{B:"g",Z:"ytp-fullscreen-button-corner-1", W:[{B:"path",XX:!0,Z:"ytp-svg-fill",O:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]}:{B:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{B:"g",Z:"ytp-fullscreen-button-corner-0",W:[{B:"path",XX:!0,Z:"ytp-svg-fill",O:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{B:"g",Z:"ytp-fullscreen-button-corner-1",W:[{B:"path",XX:!0,Z:"ytp-svg-fill",O:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{B:"g",Z:"ytp-fullscreen-button-corner-2",W:[{B:"path",XX:!0,Z:"ytp-svg-fill", O:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{B:"g",Z:"ytp-fullscreen-button-corner-3",W:[{B:"path",XX:!0,Z:"ytp-svg-fill",O:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]}}; N7q=function(b,R){R?b.element.classList.add("ytp-jump-button-enabled"):b.element.classList.remove("ytp-jump-button-enabled");b.A.logVisibility(b.element,R);b.A.d4()}; pMT=function(b){var R=b.A.getVideoData()?.SY;if(R){b=b.V.pR;for(const h of R)if((R=b[h])&&R.onTap?.innertubeCommand?.changeEngagementPanelVisibilityAction?.targetId!=="engagement-panel-macro-markers-problem-walkthroughs")return R}}; lBK=function(b){return b.A.N("delhi_modern_web_player_icons")?D3x():Un()}; aBq=function(b,R){b.Y.style.setProperty("--yt-slider-shape-gradient-percent",`${(R-b.X)/(b.J-b.X)*100}%`)}; Te=function(b,R,h=!1){b.V&&(cancelAnimationFrame(b.V),b.V=0);h?viK(b,b.G,R):B7T(b,R)}; viK=function(b,R,h){const K=performance.now(),I=h-R;if(I!==0){var N=p=>{p=(p-K)/400;p>1&&(p=1);B7T(b,R+I*SI(H_x,n5(H_x,p)));b.V=p<1?requestAnimationFrame(N):0}; b.V=requestAnimationFrame(N)}}; B7T=function(b,R){b.G=R;b.update({slidervalue:b.G,ariaValueNow:b.G,ariaValueText:`${b.G.toFixed(2)}`});b.Y.valueAsNumber=b.G;aBq(b,R)}; q8K=function(b,R){b.element.classList.toggle("ytp-volume-popover-hovering",R);b.isVisible=R;(b=b.element.closest(".ytp-chrome-bottom"))&&b.classList.toggle("ytp-volume-popover-showing",R)}; dww=function(b){var R=null;const h="No puedes cambiar el volumen en este navegador. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK".split(/\$(BEGIN|END)_LINK/);R=new JA(b.A,{B:"span",F5:["ytp-popup","ytp-generic-popup"],O:{tabindex:"0"},W:[h[0],{B:"a",O:{href:"https://support.google.com/youtube/?p=noaudio",target:b.A.L().U},IH:h[2]},h[4]]},100,!0);g.n(b,R);R.hide();R.subscribe("show",K=>{b.A.Ea(R,K)}); g.dL(b.A,R.element,4)}; th2=function(b,R){b.K=R;let h=b.JX;b.A.N("delhi_modern_web_player_icons")?b.Y.yX("ytp-svg-volume-animation-big-ripple").setAttribute("transform",`translate(${kj}, ${Yj}) scale(${R}) translate(-${kj},-${Yj})`):R&&(h+=tHP(fBx,ysT,R));b.C.setAttribute("d",h)}; i_T=function(b,R){let h;R===1?h=b.A.N("delhi_modern_web_player_icons")?{B:"svg",O:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{B:"path",O:{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"}}]}:En():h=b.Y;b.SY=R;if(b.A.N("delhi_modern_web_player_icons"))b.Y.yX("ytp-svg-volume-animation-small-ripple").setAttribute("transform",`translate(${joD}, ${Asx}) scale(${1-R}) translate(-${joD},-${Asx})`),b.Y.yX("ytp-svg-volume-animation-big-ripple").setAttribute("transform",`translate(${kj}, ${Yj}) scale(${b.K-R}) translate(-${kj}, -${Yj})`);else{var K=20*R;for(var I=0;I=3&&b.A.getPresentingPlayerType()!==2}; UwT=function(b){const R=vr(b.A.VV());return R?b.G?R.hasNext():R.hasPrevious():!1}; WYP=function(b,R){return b?R?bSq():i2():R?{B:"svg",O:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{B:"path",O:{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"}}]}:pyw()}; Qt=function(b,R){const h=g.CW(R),K=g.zc("Ir al momento $PROGRESS",{PROGRESS:g.CW(R,!0)});b.update({ariamin:0,ariamax:Math.floor(b.api.getDuration()),arianow:Math.floor(R),arianowtext:K,seekTime:h})}; xj=function(b){b.U=NaN;b.K=0;b.D=b.X}; m9=function(b,R){b.C&&(b.C.mq=!0);b.update({seekTime:g.CW(R)});const h=b.J*b.scale;R=R-h?-R/h*b.interval*.5:-(R+h/2)/h*b.interval}; S8s=function(b){return-((b.S.offsetWidth||(b.frameCount-1)*b.J*b.scale)-b.G/2)}; JsH=function(b){var R=b.api.hW();if(R){var h=90*b.scale,K=MH(R,160*b.scale);if(R=R.levels[K]){b.J=R.width;if(!b.V.length){K=[];var I=r6(R,R.Y()),N=R.columns*R.rows,p=R.frameCount;for(var l=0;l<=I;l++){var a=p b.V.length;)b.thumbnails.pop()?.dispose();for(;b.thumbnails.lengthh.length;)b.Y.pop()?.dispose();for(;b.Y.length0&&(b.Y=R,b.D.style.height=`${b.Y}px`)}; Y8B=function(b,R,h,K,I=!1){kVP(b,K);h=L22(R,h,b.Y,K,I);R=R.length===0?"":MyT(h);b.api.N("delhi_modern_web_player")?b.X.setAttribute("d",R):b.S.setAttribute("d",R);b.Jh=R!=="";g.k(b.api.getRootNode(),"ytp-heat-map",b.Jh);g.k(b.api.getRootNode(),"ytp-heat-map-played_bar",b.api.N("web_player_heat_map_played_bar")&&R!=="");b.api.N("delhi_modern_web_player")?(b.V.style.display="none",b.G.style.display="none"):b.X.style.display="none"}; eK2=function(b,R,h,K,I=!1){kVP(b,K);h=wj2(R,h,b.Y,K,I);R=R.length===0?"":MyT(h);b.api.N("delhi_modern_web_player")?b.X.setAttribute("d",R):b.S.setAttribute("d",R);b.Jh=R!=="";g.k(b.api.getRootNode(),"ytp-heat-map",b.Jh);b.api.N("delhi_modern_web_player")?(b.V.style.display="none",b.G.style.display="none"):b.X.style.display="none"}; Pw=function(b,R){g.MN(b.G,"width",R)}; ZE=function(b,R){g.MN(b.G,"margin-right",`${R}px`)}; Qo2=function(b){if(b.G.length===0){const R=new O_K;b.G.push(R);g.n(b,R);R.AX(b.KR,0)}for(;b.G.length>1;)b.G.pop().dispose();Pw(b.G[0],"100%");b.G[0].startTime=0;b.G[0].title=""}; cw=function(b){const R=g.lv(b.api.L())&&(b.api.N("web_shorts_pip")||b.api.N("web_watch_pip"));return!b.api.getVideoData()?.isLivePlayback&&!b.api.isMinimized()&&!b.api.isInline()&&(!b.api.ut()||!R)}; mwK=function(b){const R=new xwB(b.api);b.V.push(R);g.n(b,R);R.AX(b.nR)}; u3=function(b){for(;b.K.length;)b.K.pop().dispose()}; Z_K=function(b){return g.Z(g.Z(b.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.decoratedPlayerBarRenderer,xr)?.playerBar,PWx)?.chapters}; uMe=function(b,R){let h=0,K=!1;for(const p of R){if(g.Z(p,csK)){R=g.Z(p,csK);var I={startTime:NaN,title:null,onActiveCommand:void 0},N=R.title;I.title=N?g.BY(N):"";N=R.timeRangeStartMillis;N!=null&&(I.startTime=N);I.onActiveCommand=R.onActiveCommand;R=I;h===0&&R.startTime!==0&&(b.G[h].startTime=0,b.G[h].title="",b.G[h].onActiveCommand=R.onActiveCommand,h++,K=!0);b.G.length<=h&&(I=new O_K,b.G.push(I),g.n(b,I),I.AX(b.KR,b.KR.children.length));b.G[h].startTime=R.startTime;b.G[h].title=R.title?R.title: "";b.G[h].onActiveCommand=R.onActiveCommand;b.G[h].index=K?h-1:h}h++}for(;h=v&&q<=B&&H.push(l)}I>0&&(b.nR.style.height=`${I}px`);Y8B(b.V[a],H,h,I,a===0);H.length>0&&(p=H[H.length-1])}g.X5(b); R=R.heatMarkersDecorations||[];l=[];for(const a of R)if(R=g.Z(a,LYB))K=R.label,l.push({visibleTimeRangeStartMillis:R.visibleTimeRangeStartMillis??-1,visibleTimeRangeEndMillis:R.visibleTimeRangeEndMillis??-1,decorationTimeMillis:R.decorationTimeMillis??NaN,label:K?g.BY(K):""});b.heatMarkersDecorations=l}}; g.X5=function(b){b.vY=b.G.length-1;b.RH=0;wMq(b,!0)&&wMq(b,!1);var R=0;for(var h=0;h=0;K--)if(b.G[K].width>0){ZE(b.G[K],0);const I=Math.floor(b.G[K].width);b.G[K].width=I;Pw(b.G[K],`${I}px`);break}b.G[h].width=0;Pw(b.G[h],"0")}else h===b.G.length-1?(K=Math.floor(b.G[h].width+R),b.G[h].width=K,Pw(b.G[h],`${K}px`)):(R=b.G[h].width+R,K=Math.round(R),R-=K,b.G[h].width=K,Pw(b.G[h],`${K}px`));h=0;if(b.V.length===b.G.length)for(R= 0;R0&&b.api.getPlayerSize().width<=K;b.api.N("delhi_modern_web_player")?R=b.api.getPlayerSize().width<=528?K?56:64:b.J?K?72:96:K?56:72:b.J?R=54:g.Fo(h)&&!h.Y&&(R=40);b.T6=R}}}; C1=function(b,R){for(const h of R){R=F5(b,h.timeRangeStartMillis/(b.X.G*1E3),ox(b));const K=b.api.N("delhi_modern_web_player")?.667:.6;g.MN(h.element,"transform",`translateX(${R}px) scaleX(${K})`)}}; bZ3=function(b,R){R=g.Z(R.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.decoratedPlayerBarRenderer,xr);if(R?.progressColor)for(let h=0;hI.startTime&&I.width>0&&K++;K=K<0?0:K;I=h.G-rG(b)*b.vY;return R*I+rG(b)*K+h.V}; ox=function(b){let R=b.fR.x;R=g.ui(R,0,b.D);b.OV.update(R,b.D);return b.OV}; wMq=function(b,R){let h=0,K=!1;const I=b.G.length;let N=b.X.G*1E3;N===0&&(N=b.api.getProgressState().seekableEnd*1E3);if(N>0&&b.D>0){const a=b.D-rG(b)*b.vY,v=b.RH===0?3:a*b.RH;for(var p of b.G)p.width=0;for(;h1);const H=(N===0?0:B/N*a)+b.G[h].width;if(H>v)b.G[h].width=H;else{b.G[h].width=0;p=b;var l=h;const q=p.G[l-1];q!==void 0&&q.width>0?q.width+= H:lb.RH&&(b.RH=B/N),K=!0)}h++}}return K}; rG=function(b){return b.api.N("delhi_modern_web_player")?4:b.J?3:2}; L1=function(b,R,h){return DE(b)?new br(Math.max(R,b.ll.startTimeMs/1E3),Math.min(h,b.ll.endTimeMs/1E3)):new br(R,h)}; wG=function(b,R,h){b.C=R;b.CR=h;const K=ox(b);var I=b.X.G,N=Xyx(b.X,b.C),p=g.zc("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.CW(N,!0),DURATION:g.CW(I,!0)}),l=Hw(b.G,N*1E3);l=b.G[l].title;b.update({ariamin:Math.floor(b.X.Y),ariamax:Math.floor(I),arianow:Math.floor(N),arianowtext:l?l+" "+p:p});I=b.clipStart;N=b.clipEnd;b.ll&&b.api.getPresentingPlayerType()!==2&&(I=b.ll.startTimeMs/1E3,N=b.ll.endTimeMs/1E3);I=rm(b.X,I,0);l=rm(b.X,N,1);p=b.api.getVideoData();N=g.ui(R,I,l);h=p?.Sn()?1:g.ui(h,I,l);R= F5(b,R,K);g.MN(b.jJ,"transform",`translateX(${R}px)`);b.api.N("delhi_modern_web_player")&&b.api.N("delhi_modern_web_player_cutout")&&Ry(b,R);Kn(b,K,I,N,"PLAY_PROGRESS");p?.MJ()?(R=b.api.getProgressState().seekableEnd)&&Kn(b,K,N,rm(b.X,R),"LIVE_BUFFER"):Kn(b,K,I,h,"LOAD_PROGRESS");b.api.N("web_player_heat_map_played_bar")&&b.V[0]?.U(N)}; FYK=function(b){b.cO.style.removeProperty("height");for(const R of Object.keys(b.Zr))ReP(b,R);sQ(b);wG(b,b.C,b.CR)}; oiT=function(b){if(!b.api.getVideoData()?.MJ()){var R=ox(b);Kn(b,R,b.C,Math.max(R.Y,b.C),"HOVER_PROGRESS");var h=$1(b,R.G*b.C,!0),K=$1(b,R.X,!0);for(let I=h;I<=K;I++)g.k(b.G[I].X,"ytp-hover-progress-light",R.Y>b.C);g.k(b.cO,"ytp-scrubber-button-hover",h===K&&b.G.length>1);b.api.N("web_player_heat_map_played_bar")&&b.V[0]?.K(R.Y)}}; DE=function(b){return!!b.ll?.postId&&b.api.getPresentingPlayerType()!==2}; Iy=function(b,R,h,K,I){R=heK(b,R);h=heK(b,h);b=b.progressBar.visualElement;K={seekData:{startMediaTimeMs:R,endMediaTimeMs:h,seekSource:K}};(R=g.Ui())&&$8(R,b,I,K)}; pn=function(b,R){R?b.U||(b.element.removeAttribute("aria-disabled"),b.U=new g.Nm(b.progressBar,!0),b.api.N("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&b.U.subscribe("hoverstart",b.xI,b),b.U.subscribe("hovermove",b.c$,b),b.U.subscribe("hoverend",b.pZ,b),b.U.subscribe("dragstart",b.qf,b),b.U.subscribe("dragmove",b.KZ,b),b.U.subscribe("dragend",b.b6,b),b.api&&b.api.N("delhi_modern_web_player")&&b.api.N("delhi_modern_web_player_cutout")&&(b.vD=new g.Nm(b.progressBar, !0),b.vD.subscribe("hoverstart",()=>{b.wB=!0;Ry(b)},b),b.vD.subscribe("hoverend",()=>{b.wB=!1; Ry(b)},b)),b.Pa=b.listen("keydown",b.VA)):b.U&&(b.element.setAttribute("aria-disabled","true"),b.Ac(b.Pa),b.U.cancel(),b.U.dispose(),b.U=null)}; lr=function(b){b.Y&&(b.Y.disable(),b.xZ=0,b.nR.style.removeProperty("transform"),b.progressBar.style.removeProperty("transform"),b.wp.style.removeProperty("height"),b.element.parentElement&&b.element.parentElement.style.removeProperty("height"))}; KP3=function(b,R){if(b.ll?.type==="repeatChapter"||R?.type==="repeatChapter")R&&(R=b.G[Hw(b.G,R.startTimeMs)],g.k(R.G,"ytp-repeating-chapter",!1)),b.ll&&(R=b.G[Hw(b.G,b.ll.startTimeMs)],g.k(R.G,"ytp-repeating-chapter",!0)),b.G.forEach(h=>{g.k(h.G,"ytp-exp-chapter-hover-container",!b.ll)})}; sQ=function(b){var R=!!b.ll&&b.api.getPresentingPlayerType()!==2;let h=b.clipStart;var K=b.clipEnd;let I=!0,N=!0;R&&b.ll?(h=b.ll.startTimeMs/1E3,K=b.ll.endTimeMs/1E3):(I=h>b.X.Y,N=b.X.G>0&&K1){h=$1(b,R.X,!0);let K=0;for(let I=0;I0&&(K+=b.G[I].width,K+=rG(b));h=(b.G[h].startTime+(R.X-K)/b.G[h].width*((h===b.G.length-1?b.X.G*1E3:b.G[h+1].startTime)-b.G[h].startTime))/1E3||0}return h}; $1=function(b,R,h=!1){let K=0;h&&(R-=s7K(b,R)*rG(b));for(const I of b.G){if(R>I.width)R-=I.width;else break;K++}return K===b.G.length?K-1:K}; $be=function(b,R){const h=R/((b.J?135:90)-b.T6)*b.T6;g.MN(b.progressBar,"transform",`translateY(${-R}px)`);g.MN(b.nR,"transform",`translateY(${-R}px)`);g.MN(b.wp,"transform",`translateY(${h}px)`);b.wp.style.height=`${R+h}px`;b.element.parentElement&&(b.element.parentElement.style.height=`${b.T6-h}px`)}; heK=function(b,R){if(R<0)return"0";b=Math.floor(Math.min(R,b.api.getDuration())*1E3);return b>2**31-1?"0":String(b)}; I9B=function(b,R,h){if(h>=b.G.length)return!1;const K=b.D-rG(b)*b.vY;return Math.abs(R-b.G[h].startTime/1E3)/b.X.G*K<4}; ReP=function(b,R){var h=b.Zr[R];R=b.EW[R];const K=ox(b);let I=rm(b.X,h.start/1E3,0),N;const p=vQK(h,b.J)/K.width;N=rm(b.X,h.end/1E3,1);p!==Number.POSITIVE_INFINITY&&(I=g.ui(I,0,N-p));N=Math.min(N,I+p);h.color&&(R.style.background=h.color);h=I;R.style.left=`${Math.max(h*K.G+K.V,0)}px`;vR(b,R,g.ui((N-h)*K.G+K.V,0,K.width),K.width,!0)}; Ry=function(b,R){b.api.getPresentingPlayerType()!==1?b.KR.style.removeProperty("clip-path"):(R||(R=F5(b,b.C,ox(b))),b.KR.style.clipPath='path("'+(b.wB?NYB(b,8,R,b.J?50:36,0,6):NYB(b,4,R,b.J?34:24,2,3))+'")')}; Kn=function(b,R,h,K,I){var N=b.G.length,p=R.G-b.vY*rG(b),l=h*p;h=$1(b,l);var a=K*p;p=$1(b,a);I==="HOVER_PROGRESS"&&(p=$1(b,R.G*K,!0),a=R.G*K-s7K(b,R.G*K)*rG(b));K=Math.max(l-pOs(b,h),0);for(l=h;lI.width)R-=I.width,R-=rG(b),K++;else break;return K===h?h-1:K}; pOs=function(b,R){if(R>=b.G.length)return b.D;let h=0,K=0;for(;K0||b.hc.clientWidth>0?(N=R.clientWidth/h,b=-1*b.ri.clientWidth/h):(N/=h,b=-1*b.G[I].element.offsetLeft/h),g.MN(R,"background-size",`${N}px`),g.MN(R,"background-position-x",`${b}px`))}; a9K=function(b,R,h){h=b.G[R].hO(h);vR(b,h,0,b.G[R].width)}; g.vn2=function(b,R,h,K){const I=b.D!==h,N=b.J!==K;b.Kj=R;b.D=h;b.J=K;cw(b)&&b.Y?.wp(K);FYK(b);b.G.length===1&&(b.G[0].width=h||0);I&&g.X5(b);b.Y&&N&&cw(b)&&(b.Y.isEnabled&&(R=b.J?135:90,h=R-b.T6,b.wp.style.height=`${R}px`,g.MN(b.nR,"transform",`translateY(${-h}px)`),g.MN(b.progressBar,"transform",`translateY(${-h}px)`)),JsH(b.Y))}; BYs=function(b,R){const h=R.getId();b.Zr[h]===R&&(g.GF(b.EW[h]),delete b.Zr[h],delete b.EW[h])}; BR=function(b,R){b.Y=!!R;b.G(b.A.tX().getPlayerSize())}; HZP=function(b,R,h,K){R={B:"span",F5:K,W:[R]};let I;K="ytp-swatch-color";if(b.C||b.S)K="ytp-swatch-color-white";h==="highres"?I="8K":h==="hd2880"?I="5K":h==="hd2160"?I="4K":h.indexOf("hd")===0&&h!=="hd720"&&(I="HD");I&&(R.W.push(" "),R.W.push({B:"sup",Z:K,IH:I}));return R}; qAw=function(b,R,h){const K=b.NJ[R],I=g.m6[R];return HZP(b,K?K.qualityLabel:I?`${I}p`:"Autom\u00e1tica",R,h)}; HR=function(b,R,h,K,I){const N=(R=b.S?b.J[R]:b.T6[R])&&R.quality;var p=R&&R.qualityLabel;p=p?p:"Autom\u00e1tica";K&&(p=`(${p}`);b=HZP(b,p,N||"",I);K&&b.W.push(")");(K=(K=R&&R.paygatedQualityDetails)&&K.paygatedIndicatorText)&&h&&b.W.push({B:"div",Z:"ytp-premium-label",IH:K});return b}; qm=function(b,R){b=Number(g.ui(R,b.X,b.V).toFixed(2));R=Math.floor((b+.001)*100%5+2E-15);let h=b;R!==0&&(h=b-R*.01);return Number(h.toFixed(2))}; dbq=function(b,R){const h=db(R);b.S&&(b.nR||R===b.T6)?(b.Y(b.S),b.setContent(R.toString())):b.Y(h)}; yLx=function(b){var R=b.C.map(db);b.J&&R.push(b.J);b.V(R);b.S=null;b.T6=null;R=b.A.getPlaybackRate();fn(b.A)&&f9D(b,R);!b.C.includes(R)||b.nR?b.Y(b.S):b.Y(db(R))}; f9D=function(b,R){b.T6=R;b.S=g.zc("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:R.toString()});R=b.C.map(db);R.unshift(b.S);b.J&&R.push(b.J);b.V(R)}; tfs=function(b,R,h,K){h=new g.PO({B:"div",F5:["ytp-menuitem"],O:{tabindex:"0",role:"menuitemradio","aria-checked":K?"true":"false"},W:[{B:"div",F5:["ytp-menuitem-label"],W:[{B:"div",F5:["ytp-menuitem-container-with-badge"],W:[{B:"div",IH:"{{label}}"},b.MJ]}]}]},h,b.X(R));h.listen("click",()=>{b.SY(R)}); return h}; db=function(b){return b.toString()}; fn=function(b){return b.N("web_settings_menu_surface_custom_playback")}; j7H=function(b,R){return!!R&&b.getAvailablePlaybackRates()[b.getAvailablePlaybackRates().length-1]<=2}; yE=function(b){return b.N("web_settings_menu_surface_custom_playback")&&b.N("web_settings_use_input_slider")}; ALK=function(b,R){b.publish("settingChange",b.setting+"Override",!R);b.Gy.e5()}; iZT=function(b,R){b.languages=g.Pp(R,b.S,b);b.V(g.an(R,b.S))}; zeT=function(b,R){b.A.setOption("captions","sampleSubtitles",R)}; tb=function(b){return Object.values(b.tracks).find(R=>R.languageCode==="en"&&R.kind==="asr")}; jq=function(b,R){b.A.setOption("captions","track",R)}; Ubq=function(b,R){b.settingsButton=R;b.element.id=R.element.getAttribute("aria-controls")}; Gjx=function(b){if(b.A.N("delhi_modern_web_player_icons"))return b=JT.includes("es")?Ab(b)&&b.isEnabled()?{B:"svg",O:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{B:"path",O:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V19C1 19.53 1.21 20.03 1.58 20.41C1.96 20.78 2.46 21 3 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM9.03 8.08L9.29 8.16C9.79 8.35 10.24 8.65 10.60 9.05L10.77 9.26L10.83 9.34C10.96 9.55 11.01 9.80 10.96 10.05C10.92 10.29 10.79 10.51 10.59 10.66C10.40 10.81 10.15 10.89 9.91 10.87C9.66 10.85 9.43 10.74 9.26 10.57L9.19 10.49L9.11 10.39C8.98 10.24 8.81 10.12 8.62 10.05L8.54 10.02C8.32 9.97 8.10 10.00 7.91 10.11C7.67 10.24 7.48 10.43 7.35 10.67L7.28 10.79C7.09 11.16 6.99 11.58 7 12L7.00 12.16C7.02 12.52 7.11 12.88 7.28 13.20L7.35 13.32C7.48 13.56 7.67 13.75 7.91 13.88L7.99 13.92C8.16 14.00 8.35 14.02 8.54 13.97L8.62 13.94C8.85 13.85 9.05 13.70 9.19 13.50L9.26 13.43C9.44 13.24 9.68 13.13 9.93 13.12C10.19 13.11 10.44 13.20 10.63 13.37C10.82 13.53 10.94 13.77 10.97 14.02C11.00 14.27 10.93 14.53 10.77 14.73C10.39 15.23 9.88 15.61 9.29 15.83L9.03 15.91C8.43 16.06 7.79 16.01 7.21 15.77L6.97 15.65C6.42 15.35 5.95 14.90 5.64 14.36L5.50 14.12C5.21 13.55 5.04 12.92 5.00 12.27L5 12C4.99 11.26 5.17 10.53 5.50 9.87L5.64 9.63C5.96 9.09 6.42 8.64 6.97 8.34C7.60 8.00 8.34 7.91 9.03 8.08ZM17.03 8.08L17.29 8.16C17.79 8.35 18.24 8.65 18.60 9.05L18.77 9.26L18.83 9.34C18.96 9.55 19.01 9.80 18.96 10.05C18.92 10.29 18.79 10.51 18.59 10.66C18.40 10.81 18.15 10.89 17.91 10.87C17.66 10.85 17.43 10.74 17.26 10.57L17.19 10.49L17.11 10.39C16.98 10.24 16.81 10.12 16.62 10.05L16.54 10.02C16.32 9.97 16.10 10.00 15.91 10.11C15.67 10.24 15.48 10.43 15.35 10.67L15.28 10.79C15.09 11.16 14.99 11.58 15 12L15.00 12.16C15.02 12.52 15.11 12.88 15.28 13.20L15.35 13.32C15.48 13.56 15.67 13.75 15.91 13.88L15.99 13.92C16.16 14.00 16.35 14.02 16.54 13.97L16.62 13.94C16.85 13.85 17.05 13.70 17.19 13.50L17.26 13.43C17.44 13.24 17.68 13.13 17.93 13.12C18.19 13.11 18.44 13.20 18.63 13.37C18.82 13.53 18.94 13.77 18.97 14.02C19.00 14.27 18.93 14.53 18.77 14.73C18.39 15.23 17.88 15.61 17.29 15.83L17.03 15.91C16.43 16.06 15.79 16.01 15.21 15.77L14.97 15.65C14.42 15.35 13.95 14.90 13.64 14.36L13.50 14.12C13.21 13.55 13.04 12.92 13.00 12.27L13 12C12.99 11.26 13.17 10.53 13.50 9.87L13.64 9.63C13.96 9.09 14.42 8.64 14.97 8.34C15.60 8.00 16.34 7.91 17.03 8.08Z", fill:"white"}}]}:th():Ab(b)&&b.isEnabled()?{B:"svg",O:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{B:"path",O:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V19C1 19.53 1.21 20.03 1.58 20.41C1.96 20.78 2.46 21 3 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM6 11H8C8.26 11 8.51 11.10 8.70 11.29C8.89 11.48 9 11.73 9 12C9 12.26 8.89 12.51 8.70 12.70C8.51 12.89 8.26 13 8 13H6C5.73 13 5.48 12.89 5.29 12.70C5.10 12.51 5 12.26 5 12C5 11.73 5.10 11.48 5.29 11.29C5.48 11.10 5.73 11 6 11ZM12 11H18C18.26 11 18.51 11.10 18.70 11.29C18.89 11.48 19 11.73 19 12C19 12.26 18.89 12.51 18.70 12.70C18.51 12.89 18.26 13 18 13H12C11.73 13 11.48 12.89 11.29 12.70C11.10 12.51 11 12.26 11 12C11 11.73 11.10 11.48 11.29 11.29C11.48 11.10 11.73 11 12 11ZM16 15H18C18.26 15 18.51 15.10 18.70 15.29C18.89 15.48 19 15.73 19 16C19 16.26 18.89 16.51 18.70 16.70C18.51 16.89 18.26 17 18 17H16C15.73 17 15.48 16.89 15.29 16.70C15.10 16.51 15 16.26 15 16C15 15.73 15.10 15.48 15.29 15.29C15.48 15.10 15.73 15 16 15ZM6 15H12C12.26 15 12.51 15.10 12.70 15.29C12.89 15.48 13 15.73 13 16C13 16.26 12.89 16.51 12.70 16.70C12.51 16.89 12.26 17 12 17H6C5.73 17 5.48 16.89 5.29 16.70C5.10 16.51 5 16.26 5 16C5 15.73 5.10 15.48 5.29 15.29C5.48 15.10 5.73 15 6 15Z", fill:"white"}}]}:Bpw()}; Ab=function(b){return g.gh(b.A.VV())!=null?g.gh(b.A.VV()).U4()?!!b.A.getOption("captions","tracklist",{includeAsr:!0}).length:!0:!1}; gne=function(b,R){const h=b.liveBadge.element,K=b.api.isLifaAdPlaying();h.disabled=K||R;!ir(b)||b.K===R&&b.D===b.liveIndicatorText&&b.J===b.isPremiere||(b.K=R,b.D=b.liveIndicatorText,b.J=b.isPremiere,b.FX(),R?h.classList.add("ytp-live-badge-is-livehead"):h.classList.remove("ytp-live-badge-is-livehead"),b.liveIndicatorText?b.liveBadge.setContent(b.liveIndicatorText):b.liveBadge.setContent(b.isPremiere?"Estreno":"En directo"),R?b.G&&(b.G(),b.G=null,h.removeAttribute("data-tooltip-title")):(h.setAttribute("data-tooltip-title", "Accede a la emisi\u00f3n en directo"),b.G=g.IL(b.tooltip,b.liveBadge.element)))}; WPK=function(b,R){const h=b.ll!==R;b.ll=R;h&&zO(b)}; UQ=function(b){return!!b.ll&&!!b.ll.postId&&b.api.getPresentingPlayerType()!==2&&(!b.ll.type||b.ll.type==="clips")}; ir=function(b){const R=b.api.L().N("enable_linear_program_progress"),h=b.api.getPresentingPlayerType()===2;return b.e3&&!UQ(b)&&(!R||!b.Y)&&!h}; zO=function(b){b.updateValue("clipicon",{B:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},W:[{B:"path",O:{d:"M22,3h-4l-5,5l3,3l6-6V3L22,3z M10.79,7.79C10.91,7.38,11,6.95,11,6.5C11,4.01,8.99,2,6.5,2S2,4.01,2,6.5S4.01,11,6.5,11 c0.45,0,.88-0.09,1.29-0.21L9,12l-1.21,1.21C7.38,13.09,6.95,13,6.5,13C4.01,13,2,15.01,2,17.5S4.01,22,6.5,22s4.5-2.01,4.5-4.5 c0-0.45-0.09-0.88-0.21-1.29L12,15l6,6h4v-2L10.79,7.79z M6.5,8C5.67,8,5,7.33,5,6.5S5.67,5,6.5,5S8,5.67,8,6.5S7.33,8,6.5,8z M6.5,19C5.67,19,5,18.33,5,17.5S5.67,16,6.5,16S8,16.67,8,17.5S7.33,19,6.5,19z"}}]}); b.e3&&!b.Y?b.updateValue("watchfullvideo","Ver emisi\u00f3n en directo"):b.updateValue("watchfullvideo","Ver v\u00eddeo completo");g.k(b.element,"ytp-clip",UQ(b));g.k(b.element,"ytp-live",ir(b))}; SAx=function(b,R){b.sW(R.width>=350)}; GO=function(b,R,h){var K=Math.floor(R),I=`${K}% ${"volumen"}`+(h?" silenciado":"");h=h?0:R/100;b.updateValue("valuenow",K);b.updateValue("valuetext",I);K=b.X?78:52;I=!b.api.N("delhi_modern_web_player")&&b.X?18:12;b.SY.style.left=`${(K-I)*h}px`;b.volume=R}; var Q_x=function(b){return c8[f[6]](this,10,b)}; var nnx=function(b){const R=b.api.tU();b.X!==R&&(b.X=R,GO(b,b.api.getVolume(),b.api.isMuted()))},gb=function(b,R,h,K,I){const N=b.G||b.isDragging||b.Y||b.Gh; b.G=R;b.isDragging=h;b.Y=K;b.Gh=I;R=b.G||b.isDragging||b.Y||b.Gh;N!==R&&(R?b.S=b.j(b.element,"wheel",b.T6):(b.Ac(b.S),b.S=null),g.k(b.J,"ytp-volume-slider-active",R))},WR=function(b,R,h,K,I){R.AX(h,I); b.A.N("frosted_glass_controls_opacity_animation")&&(b=R.element,K&&(b=R.yX(K)),b.classList.add("ytp-autohide-fade-transition"))},nn=function(b,R,h){b.A.N("delhi_modern_web_player")?R.AX(b.V.yX(Sq[h])):R.AX(b.V.element)},EnB=function(b){b.G.element.classList.toggle("ytp-xsmall-width-right-controls-expanded",b.K.isExpanded())},TYD=function(b,R){b.A.getPlayerStateObject().isCued()||R?R&&(b.MJ.hide(),b.gp.hide(),b.muteButton&&b.muteButton.Qp(!1),b.J&&b.J.Qp(!1),b.S&&b.S.Qp(!1),b.A.dT(b.hO())):R||(b.MJ.show(), b.gp.show(),b.muteButton&&b.muteButton.Qp(!0),b.J&&b.J.Qp(!0),b.S&&b.S.Qp(!0),b.D2())},EQ=function(b){if(b.A.N("web_player_rtr_ctrls")&&b.A.tX().Mt)return 0; const R=b.A.tU(),h=b.A.getVideoData().C0;let K=0;b.A.tU()&&b.A.isEmbedsShortsMode()&&(K=(b.A.tX().getPlayerSize().width-b.A.getVideoContentRect().width)/2);return 12*(h?0:R?2:1)+K}; var x23=function(){return uU[f[6]](this,68)}; JL3=function(b){const R=b.A.tX().getPlayerSize().width;return Math.max(R-EQ(b)*2,100)}; TO=function(b){var R=b.A.tU()?72:50;const h=b.A.L();g.lv(h)&&(h.N("delhi_modern_web_player")?(R=g.fg(h.experiments,"delhi_modern_web_player_responsive_compact_controls_threshold"),R=b.A.N("delhi_modern_web_player_compact_controls")||R>0&&b.A.getPlayerSize().width<=R,R=b.A.tU()?h.N("delhi_modern_web_player_big_mode_consistent_pill_height")?100:112:R?70:78,b.A.getRootNode().classList.contains("ytp-fullscreen-grid-peeking")&&(b=getComputedStyle(b.A.getRootNode()).getPropertyValue("--ytp-grid-peek-height")|| "36px",R+=Number(b.replace("px","")))):R=62,g.LB(h)&&(R=54));return R}; kj2=function(b){b.suggestedActions={};b.A.lj("suggested_action_button_visible");b.G=null;b.A.setTrackingParams(b.badge.element,null);b.X=!1;b.V=!1}; YAx=function(b){b.updateValue("channelLink","");b.updateValue("channelName","");g.LB(b.api.L())||b.api.N("enable_channel_title_always_focusable")?b.updateValue("channelTitleFocusable","0"):b.updateValue("channelTitleFocusable","-1")}; g.IL=function(b,R){if(b.MJ)return()=>{}; R.addEventListener("mouseover",b.J);R.addEventListener("focus",b.J);const h=b.env.N("player_tooltip_data_title_killswitch")?R.getAttribute("title"):R.getAttribute("data-tooltip-title");h&&!R.hasAttribute("aria-label")&&R.setAttribute("aria-label",h);return()=>{b.G===R&&b.S();R.removeEventListener("mouseover",b.J);R.removeEventListener("focus",b.J)}}; Jb=function(b){let R;if(b.G){R=b.G.getAttribute("data-tooltip-text");if(b.X&&b.G.getAttribute("aria-label")!==b.X)var h=b.X;var K=b.G.getAttribute("aria-keyshortcuts"),I=b.G.getAttribute("data-title-no-tooltip");K&&I&&(h=g.zc("$BUTTON_TITLE combinaci\u00f3n de teclas $SHORTCUT_KEY",{BUTTON_TITLE:I,SHORTCUT_KEY:K}));h&&b.G.setAttribute("aria-label",h);if(R&&!b.K){eeK(b,!0);var N=b.G;b.updateValue("text",R);h=N.getAttribute("data-duration");b.update({title:b.X,duration:h});N=N.getAttribute("data-preview"); b.env.N("delhi_modern_web_player")?(b.updateValue("title",I),b.updateValue("keyBoardShortcutTitle",K.toUpperCase())):eeK(b,!1);K=243*b.scale;I=141*b.scale;b.bg.style.width=`${K}px`;b.bg.style.height=`${I}px`;b.bg.style.backgroundImage=N?`url(${N})`:"";b.bg.style.backgroundSize=`${K}px ${I}px`;b.wrapper.style.width=`${K}px`;g.p5(b.element,["ytp-text-detail","ytp-preview"]);g.k(b.element,"ytp-has-duration",!!h)}else I&&K&&b.env.N("delhi_modern_web_player")?(b.updateValue("text",I),b.updateValue("keyBoardShortcut", K.toUpperCase())):b.updateValue("text",b.X),g.af(b.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);h=b.G;h.hasAttribute("data-tooltip-offset-y")?(h=Number(h.getAttribute("data-tooltip-offset-y")),h=isNaN(h)?0:h):h=0;OZH(b,!!R,void 0,h)}}; eeK=function(b,R){b.env.N("delhi_modern_web_player")&&b.scale!==.6&&(b.scale=R?.8:1)}; Q7B=function(b,R){g.k(b.element,"ytp-preview",R>=0);if(!(R<0||R===b.V)){b.V=R;R=243*b.scale;var h=141*b.scale,K=ZMH(b.Y,b.V,R);$wH(b.bg,K,R,h,!0);b.nR.start()}}; OZH=function(b,R,h,K){const I=Math.min(b.Cy,300*b.scale);b.element.style.maxWidth=R?"":`${I}px`;b.JX.qA(b.element,b.G,h,b.type===1,K);b.element.style.top?g.Nv(b.element,"ytp-bottom"):b.element.style.bottom&&g.Nv(b.element,"ytp-top");b.type===3&&b.T6.start()}; xbH=function(b,R,h,K){if(R&&!R.hasAttribute)b=new g.A$("showElementTooltip called with non-element.",R.toString()),g.X(b);else{isNaN(b.V)||(b.V=NaN,b.bg.style.background="");g.lI(b.element,"ytp-tooltip-progress-bar-style");b.G=R;b.K=!!K;K?b.X=K:(b.env.N("player_tooltip_data_title_killswitch")?b.X=R.getAttribute("title"):b.X=R.getAttribute("data-tooltip-title"),b.env.N("player_tooltip_data_title_killswitch")?R.removeAttribute("title"):R.removeAttribute("data-tooltip-title"));g.$d(b.element,"ytp-tooltip"); b.api.N("frosted_glass_controls_opacity_animation")&&g.Nv(b.element,"ytp-frosted-glass-fade-transition");var I=R.getAttribute("data-tooltip-image");I&&(b.image.style.backgroundImage=`url(${I})`);K?b.update({ariaHidden:"false"}):b.update({ariaHidden:"true"});g.k(b.element,"ytp-tooltip-image-enabled",!!I);R=R.getAttribute("data-tooltip-opaque");g.k(b.element,"ytp-tooltip-opaque",!!R);b.type=h;b.api.addEventListener("appresize",b.C);b.D&&(Jb(b),b.fade.show(0))}}; mb2=function(b){const R=b.G;b.type===3&&b.T6.stop();b.api.removeEventListener("appresize",b.C);b.K||(b.env.N("player_tooltip_data_title_killswitch")?R.setAttribute("title",b.X):R.setAttribute("data-tooltip-title",b.X));b.X="";b.G=null;b.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});b.wrapper.style.width=""}; PHH=function(b){if(!b.isRequestPending){b.isRequestPending=!0;b.bv(3);var R=b.A.getVideoData();R=b.G?R.removeFromWatchLaterCommand:R.addToWatchLaterCommand;const h=b.A.MF(),K=b.G?()=>{b.G=!1;b.isRequestPending=!1;b.bv(2);b.A.L().K&&g.rw(b.A,"WATCH_LATER_VIDEO_REMOVED")}:()=>{b.G=!0; b.isRequestPending=!1;b.bv(1);b.A.L().Y&&b.A.j_(b.element);b.A.L().K&&g.rw(b.A,"WATCH_LATER_VIDEO_ADDED")}; DC(h,R).then(K,()=>{b.isRequestPending=!1;b.bv(4,"Se ha producido un error. Vuelve a intentarlo m\u00e1s tarde.");b.A.L().K&&g.rw(b.A,"WATCH_LATER_ERROR","Se ha producido un error. Vuelve a intentarlo m\u00e1s tarde.")})}}; ZZK=function(b){const R=b.A.getPlayerSize(),h=b.A.L(),K=b.A.getVideoData(),I=g.Fo(h)&&g.Br(b.A)&&b.A.getPlayerStateObject().G(128),N=h.X;return h.EW&&R.width>=240&&!K.isAd()&&K.EW&&!I&&!K.C0&&!b.A.isEmbedsShortsMode()&&!N}; cLs=function(b,R){if(R!==b.icon){let h;switch(R){case 3:h=ku();break;case 1:h=qU();break;case 2:h={B:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{B:"path",XX:!0,Z:"ytp-svg-fill",O:{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:h={B:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{B:"path", XX:!0,O:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}b.updateValue("icon",h);b.icon=R}}; uKD=function(b,R){DS(g.Kt(b.A.L()),"wl_button",()=>{V$H({videoId:R});window.location.reload()})}; XOT=function(b){const R=b.api.L(),h=b.api.getPlayerStateObject().G(128);return R.V&&h&&!b.api.isFullscreen()}; k1=function(b){if(b.DP()&&!b.api.isEmbedsShortsMode()&&b.WI){var R=b.api.N("web_player_hide_overflow_button_if_empty_menu");!b.aG||R&&!ZZK(b.aG)||j0(b.WI,b.aG);!b.shareButton||R&&!ze(b.shareButton)||j0(b.WI,b.shareButton);!b.copyLinkButton||R&&!vy2(b.copyLinkButton)||j0(b.WI,b.copyLinkButton)}else{const h=b.api.L().getWebPlayerContextConfig();if(b.WI){R=b.WI;for(const K of R.actionButtons)K.detach();R.actionButtons=[]}b.searchButton&&!g.gM(b.Tz.element,b.searchButton.element)&&b.searchButton.AX(b.Tz.element); !b.aG||h?.hideTopWatchNextButton||g.gM(b.Tz.element,b.aG.element)||b.aG.AX(b.Tz.element);!b.shareButton||h?.hideTopShareButton||g.gM(b.Tz.element,b.shareButton.element)||b.shareButton.AX(b.Tz.element);b.copyLinkButton&&!g.gM(b.Tz.element,b.copyLinkButton.element)&&b.copyLinkButton.AX(b.Tz.element)}}; Y1=function(b,R,h){R=h?R.lastElementChild:R.firstElementChild;let K=null;for(;R;){if(Fb(R,"display")!=="none"&&R.getAttribute("aria-hidden")!=="true"){let I;R.tabIndex>=0?I=R:I=Y1(b,R,h);I&&(K?h?I.tabIndex>K.tabIndex&&(K=I):I.tabIndex{for(let b=OQ.length;b<4;b++){const R=g.jO("VIDEO");R.load();OQ.push(new g.QE(R))}},{capture:!0, passive:!0}),Mfs=!0)}; x1=function(b,R,h,K){var I=h.getVideoData();const N=R.getVideoData();if(h.getPlayerState().isError())return{msg:"player-error"};var p=N.X;if(R.mH()>K/1E3+1)return{msg:"in-the-past"};if(N.isLivePlayback&&!isFinite(K))return{msg:"live-infinite"};K=R.di();var l=null;K&&(l=K.isView()?K.mediaElement.S():K.S());if(l&&l.length>12&&g.SJ(I))return{msg:"played-ranges"};if(!I.X)return null;if(!p)return{msg:"no-pvd-formats"};if(!I.X.G()||!p.G())return{msg:"non-dash"};K=p.videoInfos[0];l=I.X.videoInfos[0];b.G6&& GT(N)&&(K=R.kG(),l=h.kG());if(!K||!l)return{msg:"no-video-info"};if(b.J&&(K.G()||l.G()))return{msg:"av1"};R=b.V&&N.mY()&&NS();if(l.containerType!==K.containerType)if(R)N.YZ("sgap",{ierr:"container"});else return{msg:"container"};if(b.S&&!R&&(l.U9!==K.U9||l.U9===""||K.U9===""))return{msg:"codec"};if(b.D&&l.video&&K.video&&Math.abs(l.video.width/l.video.height-K.video.width/K.video.height)>.01)return{msg:"ratio"};if(g.SJ(N)&&g.SJ(I))return{msg:"content-protection"};p=p.Y[0];I=I.X.Y[0];h=p.audio;const a= I.audio;if(h.sampleRate!==a.sampleRate&&!g.I5)if(R)N.YZ("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:p.itag,cr:h.sampleRate,ni:I.itag,nr:a.sampleRate};return(h.numChannels||2)!==(a.numChannels||2)?{msg:"channel-count"}:b.K&&N.mY()&&K.video.fps!==l.video.fps?{msg:"fps"}:null}; LPe=function(b,R,h){const K=b.getVideoData(),I=R.getVideoData();if(!K.L().supportsGaplessShorts())return{nq:"env"};if((!h.U||K.xV&&!K.isAd()||I.xV&&!I.isAd())&&(!h.Y||K.xV&&!K.isAd()||I.xV)&&(!h.X||I.xV&&!I.isAd()||K.xV)&&(K.xV||I.xV))return{nq:"autoplay"};if(K.endSeconds>0)return{nq:"endcr"};if(!K.D)return{nq:"client"};if(!b.F9())return{nq:"no-empty"};b=x1(h,b,R,Infinity);return b!=null?{nq:b.msg}:null}; FPe=function(b){const R=new wOe;R.V=b.N("h5_gapless_support_types_diff");R.K=!1;R.G6=b.N("html5_gapless_use_format_info_fix");R.J=b.N("html5_gapless_disable_on_av1")&&!b.N("html5_gapless_enable_on_av1");R.S=b.N("html5_gapless_check_codec_diff_strictly");R.U=b.N("html5_gapless_on_ad_autoplay");R.D=b.N("html5_gapless_disable_diff_aspect_radio");R.Y=b.N("html5_gapless_ad_autoplay_on_ad_to_video_only")&&!b.N("html5_disable_loop_range_for_shorts_ads");R.G=b.N("html5_pseudogapless_shorts_seek_to_next_start"); R.X=b.N("html5_gapless_ad_autoplay_on_video_to_ad_only");return R}; m1=function(b,R){R<=b.status.status||(b.status={status:R,error:null},R===5&&b.Eh.resolve())}; onK=function(b,R,h,K){b=b.isView()?b.mediaElement:b;return new g.PR(b,R,h,K)}; DbH=async function(b){if(b.HY())return Promise.reject(Error(b.status.error||"disposed"));b.timeout.start();await b.Eh;var R=b.G.di();if(R.isEnded())return b.zz("ended_in_finishTransition"),Promise.reject(Error(b.status.error||""));if(!b.S||!lC(b.S))return b.zz("next_mse_closed"),Promise.reject(Error(b.status.error||""));if(b.Y.Uz()!==b.S)return b.zz("next_mse_mismatch"),Promise.reject(Error(b.status.error||""));const {Fp:h,D6:K,M3:I}=b.K();b.G.RB(!1,!0);const N=onK(R,h,I,!b.Y.getVideoData().isAd()); b.Y.setMediaElement(N);const p=b.G.FO();p&&b.Y.Jd(p.mJ,p.eI);b.MJ&&(b.policy.G||b.Y.seekTo(b.Y.getCurrentTime()+.001,{eB:!0,l8:3,ZK:"gapless_pseudo"}),N.play());R=R.RT();R.cpn=b.G.getVideoData().clientPlaybackNonce;R.st=`${h}`;R.et=`${I}`;b.Y.YZ("gapless",R);b.G.YZ("gaplessTo",{cpn:b.Y.getVideoData().clientPlaybackNonce});R=b.G.getPlayerType()===b.Y.getPlayerType();b.G.Gl(K,!0,!1,R,b.Y.getVideoData().clientPlaybackNonce);b.Y.Gl(b.Y.getCurrentTime(),!0,!0,R,b.G.getVideoData().clientPlaybackNonce); b.Y.e0();g.Mq(()=>{!b.Y.getVideoData().K&&b.Y.getPlayerState().isOrWillBePlaying()&&b.Y.Jz()}); m1(b,6);b.dispose();return Promise.resolve()}; RbT=function(b){if(b.Y.getVideoData().X){var R=b.ac.L().N("html5_gapless_suspend_next_loader")&&b.J===1;b.Y.Yf(b.S,R,b.J===1&&ve(b.G.getVideoData()));m1(b,3);bEx(b);var {O4:h,zp:K}=Z7(b);h.subscribe("updateend",b.D,b);K.subscribe("updateend",b.D,b);b.D(h);b.D(K)}}; bEx=function(b){b.G.unsubscribe("internalvideodatachange",b.X,b);b.Y.unsubscribe("internalvideodatachange",b.X,b);b.ac.L().N("html5_gapless_use_format_info_fix")&&(b.G.unsubscribe("internalvideoformatchange",b.X,b),b.Y.unsubscribe("internalvideoformatchange",b.X,b));b.G.unsubscribe("mediasourceattached",b.X,b);b.Y.unsubscribe("statechange",b.C,b)}; Z7=function(b){return{O4:b.V.G.QB,zp:b.V.Y.QB}}; KCx=async function(b){if(!b.HY()&&b.V&&b.G){b.G6&&b.app.E9().Ad(!0,!1);var R=null;if(b.X)try{await DbH(b.X)}catch(K){R=K}if(b.G&&(hbH.M1("vqsp",()=>{b.app.lN(b.G)}),b.G)){var h=b.G.di(); b.app.L().N("html5_gapless_seek_on_negative_time")&&h&&h.getCurrentTime()<-.01&&b.G.seekTo(0);hbH.M1("vqpv",()=>{b.app.playVideo()}); R&&(b.G?(R=R?R.message:"forced",b.Y?.YZ("gapfulfbk",{r:R}),b.G.M9(R)):b.Y?.YZ("gapsp",{}));R=b.V;cR(b);R&&R.resolve();Promise.resolve()}}}; ur=function(b){b.U&&b.J&&b.U.removeEventListener("timeupdate",b.J);b.J=null;b.U=null}; cR=function(b,R=!1){if(b.Y){if(b.D){var h=b.Y;b.app.qJ.removeEventListener(g.fM("vqueued"),b.K);h.removeCueRange(b.D)}b.Y=null;b.D=null}b.X&&(b.X.status.status!==6&&(h=b.X,h.status.status!==Infinity&&h.J!==1&&h.zz("Canceled")),b.X=null);b.V=null;b.G&&!R&&b.G!==b.app.YO()&&b.G!==b.app.E9()&&b.G.dispose();b.G&&R&&b.G.HK();b.G=null;b.G6=!1}; sBT=function(b,R,h=!0){const K=b.app.E9(),I=K.getVideoData().isLivePlayback?Infinity:K.QK(!0)*1E3;R>I&&(R=I-200,b.G6=!0);h&&K.getCurrentTime()>=R/1E3?b.K():(b.Y=K,h&&(h=R,R=b.Y,b.app.qJ.addEventListener(g.fM("vqueued"),b.K),h=isFinite(h)||h/1E3>R.getDuration()?h:0x8000000000000,b.D=new g.gL(h,0x8000000000000,{namespace:"vqueued"}),R.addCueRange(b.D)))}; ISB=function(b,R,h,K=0,I=0){b.F9()||(ur(b),cR(b));b.V=new tn;b.G=R;sBT(b,h,I===0);var N=K/=1E3,p=R.getVideoData().G;if(K&&p&&b.Y){let l=K,a=0;R.getVideoData().isLivePlayback&&(N=Math.min(h/1E3,b.Y.QK(!0)),a=Math.max(0,N-b.Y.getCurrentTime()),l=Math.min(K,R.QK()+a));N=fC3(p,l)||K;N!==K&&b.G.YZ("qvaln",{st:K,at:N,rm:a,ct:l})}R=N;K=b.G;K.getVideoData().ri=!0;K.getVideoData().D=!0;K.J1(!0);p={};b.Y&&(p=b.Y.CZ(),N=b.Y.getVideoData().clientPlaybackNonce,p={crt:(p*1E3).toFixed(),cpn:N});K.YZ("queued",p); R!==0&&K.seekTo(R+.01,{eB:!0,l8:3,ZK:"videoqueuer_queued"});b.X=new $RD(b.S,b.app.E9(),b.G,h,b.app,I);h=b.X;h.status.status!==Infinity&&(m1(h,1),h.G.subscribe("internalvideodatachange",h.X,h),h.Y.subscribe("internalvideodatachange",h.X,h),h.ac.L().N("html5_gapless_use_format_info_fix")&&(h.G.subscribe("internalvideoformatchange",h.X,h),h.Y.subscribe("internalvideoformatchange",h.X,h)),h.G.subscribe("mediasourceattached",h.X,h),h.Y.subscribe("statechange",h.C,h),h.G.subscribe("newelementrequired", h.T6,h),h.X());return b.V}; lSD=function(b,R){if(b.app.L().Mj().G.WY(Nhx)){var h=b.app.L().Mj().G.WY(psK);if(!(h<=0)){ur(b);var K=b.app.E9()?.di();K&&b.G&&(b.G.getVideoData().Rg=!0,b.J=()=>{var I=K.getCurrentTime();I>=R+h/1E3&&(I=Date.now()-(I-R)*1E3,b.app.vI().tick("pbs",I),ur(b))},b.U=K,K.addEventListener("timeupdate",b.J))}}}; aS2=function(b,R,h){if(b.F9())return"qie";if(b.G==null||b.G.HY()||b.G.getVideoData()==null)return"qpd";if(R.videoId!==b.G.Vn())return"vinm";if((b.X?.G6()||-1)<=0)return"ivd";if(h!==1)return"upt";b=b.X?.gp();return b!=null?b:null}; FyP=function(b){return!(b.isMinimized()||b.isInline()||b.isBackground()||b.ut()||b.tC()||b.TK()||b.gR())}; VE=function(b){const R=(0,g.c)();b.data.forEach(h=>{h.expire!(h.expireR.value)}; XS=function(b,R,h){h&&b.Y&&b.Y(R.value)}; v7x=function(b){const R=b.G?[b.G]:[];for(const h of Object.values(b.V))h.dispose(),delete b.S[h.m7()];b.V={};b.G=null;b.K=null;b.U.clear();Mm(b,[],R)}; Mm=function(b,R,h){const K=[b.Y];b.G&&K.push(b.G);b.api.publish("playbackChange",{active:K.filter(I=>I.getPlayerType()!==0).map(I=>({cpn:I.m7()})), started:R.filter(I=>I.getPlayerType()!==0).map(I=>({cpn:I.m7()})), ended:h.filter(I=>I.getPlayerType()!==0).map(I=>({cpn:I.m7()}))})}; rb=function(b,R,h){const K=[R],I=b.G?[b.G]:[];b.V[R.m7()]=R;b.S[R.m7()]=R;b.G=R;h&&(b.K=R);b.U.set("",R);Mm(b,K,I)}; var Jys=function(b,R,h,K,I,N,p,l){return RY[f[6]](this,66,b,R,h,K,I,N,p,l)}; qfq=function(b){const R=b.experiments,h=R.O9.bind(R);Ln=h("html5_use_async_stopVideo");BhP=h("html5_pause_for_async_stopVideo");wb=h("html5_not_reset_media_source")||h("html5_not_reset_media_source_non_drm_vod");h("html5_listen_for_audio_output_changed")&&(FA3=!0);ac=h("html5_not_reset_media_source")||h("html5_not_reset_media_source_non_drm_vod");HEH=h("html5_not_reset_media_source")||h("html5_not_reset_media_source_non_drm_vod");FS=h("html5_retain_source_buffer_appends_for_debugging");ase(h("web_watch_pip")|| h("web_shorts_pip"));ZaK(h("log_foreground_not_focused_as_background"));cwe(h("web_player_pip_logging_fix"));h("html5_mediastream_applies_timestamp_offset")&&(b8=!0);b.zy()&&tiq();Error.stackTraceLimit=50;const K=g.fg(R,"html5_idle_rate_limit_ms");K&&Object.defineProperty(window,"requestIdleCallback",{value:I=>window.setTimeout(I,K)}); XIe(b.S);BOK(h("html5_use_ump_request_slicer"));h("html5_disable_streaming_xhr")&&(F2=!1);h("html5_byterate_constraints")&&(NA=!0);h("html5_use_non_active_broadcast_for_post_live")&&(oy=!0);h("html5_enable_encrypted_av1")&&(L4=!0);mtT(g.fg(b.experiments,"html5_sticky_duration_mos"))}; E7K=function(b){const R={};var h=b.experiments.V8();const K=[];b=(N,p,l)=>{K.push(cq(p(l),a=>{R[N]=a}))}; var I=h.G.WY(dRH);I&&b("MediaSource.EnableUsingMediaSourceBufferedRange",KeK,I===1);(I=h.G.WY(fSx))&&b("HTTP3",smT,I===1);(I=h.G.WY(y5w))&&b("MediaSource.EnableUsingMediaSourceAttachmentMethods",$8T,I===1);(I=h.G.WY(tRT))&&b("QUIC",IpK,I===1);(I=h.G.WY(jBD))&&b("Media.PlayerConfiguration.DecodeToTexturePreferred",ptB,I===1);(I=h.G.WY(A5T))&&b("Media.AudioWriteDurationLocal",NXP,Number(I));(I=h.G.WY(iEK))&&b("Media.VideoBufferSizeClampMb",lpB,I);(I=h.G.WY(zbK))&&b("Media.EnableAllocateOnDemand",BXw, Number(I)===1);(I=h.G.WY(URe))&&b("Media.AppendFirstSegmentSynchronously",HOK,Number(I)===1);(I=h.G.WY(GXx))&&b("Media.EnableFlushDuringSeek",d8D,Number(I)===1);(I=h.G.WY(g7T))&&b("DecoderBuffer.EnableMediaBufferPoolAllocatorStrategy",fpD,Number(I)===1);(I=h.G.WY(WCx))&&b("Media.EnableResetAudioDecoder",qPs,Number(I)===1);(I=h.G.WY(SfH))&&b("Media.VideoDecoderPollIntervalMs",apT,I);(h=h.G.WY(n7q))&&b("Media.VideoInitialMaxFramesInDecoder",vpH,h);return cq(QY2(K),()=>R)}; ZR=function(b,R=!1,h=1048576){let K=D7(b);K=1/((b.D.JU()||0)*b.policy.U+1/K);let I=b.gp.JU();I=I>0?I:1;var N=Math.max(K,I);b.policy.V>0&&I1E3){const K=b.interruptions;K.push(Math.ceil(h));K.sort((I,N)=>N-I); K.length>16&&K.pop()}b.T6+=h}}b.S=R}; Rb=function(b,R,h){isNaN(h)||(b.nR+=h);isNaN(R)||(b.NJ+=R)}; sm=function(b,R,h,K=R){b.V.a8(K,h/R);b.J=(0,g.c)()}; h6=function(b,R,h){R=Math.max(R,b.Y.G);b.D.a8(1,h/R)}; Ks=function(b,R,h,K,I,N=!1){b.gp.a8(R,h/R);b.J=(0,g.c)();I||b.U.a8(1,R-K);N||(b.S=0);b.C>-1&&(0,g.c)()-b.C>3E4&&(P$K(bE(b)),b.C=(0,g.c)(),b.G6=!0)}; Ug=function(b){return(0,g.c)()-b.J>=4E3}; D7=function(b){b=b.V.JU();return b>0?b:1}; J5T=function(b,R,h=!1){R.aQ=b.nR;R.pY=b.NJ;R.bandwidthEstimate=ZR(b);if(h){h=(b.K.JU()*1E3).toFixed();var K=(b.MJ.JU()*1E3).toFixed(),I=ub(b).toFixed(2),N=((b.D.JU()||0)*1E9).toFixed(2),p=b.V.JU().toFixed(0),l=b.gp.JU().toFixed(0),a=b.U.percentile(.5).toFixed(2),v=b.U.percentile(.92).toFixed(2),B=b.U.percentile(.96).toFixed(2),H=b.U.percentile(.98).toFixed(2);b.G?b.G.reset():b.G=new sG;b.G.add(b.T6);b.G.add(b.interruptions.length);let t=0;for(var q=b.interruptions.length-1;q>=0;q--){var d=b.interruptions[q]; b.G.add(d-t);t=d}t=0;for(q=b.X.length-1;q>=0;q--){d=b.X[q];const S=d.stamp/36E5;b.G.add(S-t);t=S;b.G.add(d.net/1E3);b.G.add(d.max)}b=b.G.MU();R.G={ttr:h,ttm:K,d:I,st:N,bw:p,abw:l,v50:a,v92:v,v96:B,v98:H,"int":b}}}; YfD=function(b,R,h){const K=new kXe(h);b&&(K.X=!0,K.S=.1);h.O9("html5_media_time_weight")&&(K.X=!1);R&&(K.G=R/8);K.Y=wn()>=480;return K}; ebK=function(b,R,h=!0){b.G=0;b.startTimeSecs=R;b.X=h;b.Y=!0}; OEK=function(b,R,h){b=b.Y;var K=g.Yz(b,{yp:R},(I,N)=>I.yp-N.yp); K=K<0?(K+2)*-1:K;if(K>=0)for(let I=K;I<=K+1&&I=N.yp-h&&R<=N.uj+h)return N}}; QBK=function(b,R,h){const K=b.G.get(R);K?(K.push(h),g.Ot(K,(I,N)=>I.yp-N.yp)):b.G.set(R,[h])}; xRq=function(b,R){g.xz(b.Y,R,(h,K)=>h.yp===K.yp?h.durationMs-K.durationMs:h.yp-K.yp); b.X.set(R.cpn,R);R.E7&&QBK(b,R.E7,R)}; mRK=function(b,R){const h=[];for(const K of b.Y)R(K)||h.push(K);if(b.QX.N("html5_sstm_fixes"))for(const K of b.Y)R(K)&&b.X.delete(K.cpn);b.Y=h}; PfB=function(b,R){R=g.Yz(b.Y,{uj:R},(h,K)=>h.uj-K.uj); return R>=0?b.Y[R]:null}; ZEx=function(b,R){const h=b.Y.indexOf(R);h>=0&&b.Y.splice(h,1);b.X.delete(R.cpn)}; E4T=function(b,R){if(b.De||R.identifier&&b.ri.has(R.identifier))b.BH({startnoad:R.identifier}),$G(b);else if(dx(b.K,h=>h.identifier===R.identifier))b.BH({timedoutcp:1}),b.J.start(0); else if(dx(b.vY,h=>h.identifier===R.identifier))b.BH({fetchedcp:1}),$G(b); else if(b.J.isActive())b.BH({racingcp:`${b.S?.identifier}_${R.identifier}`});else{b.pz=(new Date).getTime()/1E3;b.BH({adf:1});let h=5E3;h&&R.event==="predictStart"&&(h-=R.G);b.xZ=Math.max(h,15E3);b.D=!1;b.J.start(b.xZ);b.S=R;b.G6.clearAll();b.Zr=[]}}; g.I$3=function(b,R,h,K,I,N,p){var l=I===3,a=c5e(b,R,h,I,K,p);if(!a)return Ib(b,h,l),a=g.NG(b,h)?"undec":"ncp",b.BH({gvprp:a,mt:R,seg:h,tt:I,itag:K,ce:p}),null;l||b.ao.set(h,a);p=a.E7;I=b.x0(h-1,I,N)?.Am||"";I===""&&b.BH({eds:1});N=uFB(b,a.ssdaiAdsConfig);l=b.playback.getVideoData();l=l.d_[l.Y?.containerType||0];a=a.Vj&&h>=a.Vj?a.Vj:void 0;a={oG:p?ps(b,p):[],adsConfig:N,Am:I,VL:a,eO:gu(l.split(";")[0]),Lu:l.split(";")[1]||""};I={H$:a};b.pR&&b.BH({gvprpro:"v",sq:h,mt:R.toFixed(3),itag:K,acpns:a.oG?.join("_")|| "none",abid:p});return I}; Eg=function(b,R,h,K,I){K=K||{reason:"disablessdai"};if(R&&h){if(!lE(b,R,h))return!1;K.sq=h}if(b.De)return!1;b.De=!0;b.lY>0&&(b.lY=0,b.jS="",b.D9(b.playback.m7(),0),b.api.publish("serverstitchedvideochange"));b.playback.VO(K,I);return!0}; Xss=function(b,R,h){const K=b.fR||b.app.E9().getPlayerState();ab(b,!0);b.playback.seekTo(R,h);b=b.app.E9();R=b.getPlayerState();K.isOrWillBePlaying()&&!R.isOrWillBePlaying()?b.playVideo():K.isPaused()&&!R.isPaused()&&b.pauseVideo()}; v1=function(b){b.pR&&b.BH({adf:`0_${(new Date).getTime()/1E3-b.pz}_isTimeout_${b.D}`})}; VRH=function(b,R,h){if(b.K.length)for(const K of b.K){const I=K.startSecs*1E3,N=K.oY*1E3+I;if(R>I&&RI&&hp.identifier===K.identifier)||(b.BH({adskip:R}),b.Ys.push(K)),K}}; B1=function(b,R,h){b.playback.oE(R,h)}; $G=function(b){b.D=!1;b.J.isActive()&&v1(b);b.J.stop();b.rK(!1)}; MRw=function(b,R){return R?b.QX.Mj().G.WY(Cfx)&&R?.tileContext?`${R?.LU};${R?.tileContext}`:R?.LU:""}; LC3=function(b,R,h){(b.app.Nz().V[R.clientPlaybackNonce]||null)?.dispose();R=new r5T(R,b.playback,h/1E3);b.nR.set(R.m7(),R);b=b.app.Nz();b.V[R.m7()]=R;b.S[R.m7()]=R}; H1=function(b,R,h){return{ssvc:R,cpn:h?.cpn||"",vid:h?.videoData.videoId||"",ct:(b.playback.getCurrentTime()||0).toFixed(3),cmt:(b.playback.mH()||0).toFixed(3)}}; wsD=function(b,R,h){return new g.gL(b,R,{id:h,namespace:"serverstitchedcuerange",priority:9})}; qG=function(b,R,h,K){b.QX.N("html5_ssdai_log_ssevt_in_loader_timers")&&(K=b.U?0:Math.round((K-h)*1E3),b.playback.YZ("ssevt",{tag:"sstme",ad:R!==b.playback.m7(),cpn:R,st:(h-b.playback.GU()).toFixed(3),late:K}))}; fs=function(b,R){b.X||b.U||d_(b,b.jS);const h=R.qK,K=R.aF;if(K.cpn===b.jS)b.BH({igtranssame:1,enter:K.cpn,exit:h.cpn});else{var I=b.U,N=!!b.X;b.X="";var p=R.Dc,l=h.playerType===2?h.yp/1E3+h.videoData.Ty:b.zT().videoData.Ty;b.api.N("html5_ssdai_enable_media_end_cue_range")&&(N||I||h.playerType!==2?(I||N)&&b.BH({mecr:0,seek:I,skip:N}):b.api.by(h.cpn));if(h.playerType===2&&K.playerType===2)N?b.BH({igtransskip:1,enter:K.cpn,exit:h.cpn,seek:I,skip:b.X}):FCs(b,h,K,l,p,I,N);else{b.jS=K.cpn;b.D9(K.cpn,K.startTimeSecs|| p);R=R.QF;if(h.playerType===1&&K.playerType===2){b.T6=0;o7P(b,K);var a=H1(b,"c2a",K);b.BH(a);b.lY++}else if(h.playerType===2&&K.playerType===1){b.api.publish("serverstitchedvideochange");a=H1(b,"a2c");b.BH(a);b.lY=0;b.T6=l;a=h.cpn;var v=b.T6;if(a!==b.playback.m7()){const B=b.nR.get(a);B?B.G=v:b.BH({nop_e:a})}b.bG(h.E7)}a=DRe(b);b.playback.XZ(h,K,l,p,I,N,R,a)}b1T(b)}}; o7P=function(b,R){var h=b.app;c0(h.PD())&&h.DK.X[2]&&g.Yp(b.logger,360717806,"SSTM lingering playback");b.api.PX();b.api.publish("serverstitchedvideochange",R.cpn,R.iC)}; yW=function(b,R,h=0){return{jb:OEK(b.G,R*1E3,h*1E3),HP:R}}; d_=function(b,R){var h=R||b.jS;const K=b.G.Qu(h);K?(R=K.videoData,h=K.iC||(b.Y.get(h)?.start??0)/1E3,b=b.playback.getCurrentTime()-h,R.Ty=b>0?b:0):b.zT().videoData.Ty=b.playback.getCurrentTime()}; ROx=function(b,R,h){b.playback.lR();b.playback.seekTo(R,h);b.playback.playVideo()}; ab=function(b,R){b.Ty=NaN;b.PH=null;b.CR.stop();b.gp&&R&&b.gp.SB();b.fR=null;b.gp=null}; t6=function(b){hOw(b);for(var R of b.Y.values())R.start>=-1&&R.end<=Infinity&&(b.playback.removeCueRange(R),b.Y.delete(R.getId()),b.BH({rmAdCR:1}));const {jb:h,HP:K}=yW(b,-.001);h&&(R=K*1E3-h.yp,K9K(b,h,R,h.yp+R),R=b.Y.get(h.cpn))&&(R.start=h.yp,R.end=h.yp+h.durationMs);({jb:R}=yW(b,Infinity));R&&b.cg(`Invalid_clearEndTimeMs_${Infinity}_that_falls_during_${`playback_cpn_${R.cpn}_video_id_${R.videoData?.videoId}_durationMs_${R.durationMs}_enterTimeMs_${R.yp}_parentReturnTimeMs_${R.uj}`}._`+"Child_playbacks_can_only_have_duration_updated_not_their_start.")}; sxK=function(b){b.G6.clearAll();b.Y.clear();b.G.clear();b.ao.clear();b.Zr=[];b.S=null;b.ri.clear();b.JX.clear();b.K=[];b.vY=[];b.Ys=[];b.jn=[];b.m_.clear();b.SK.clear();b.hc.clear();b.wp.clear();b.D=!1;b.T6=0;b.U=!1;b.NJ=!1;b.lY=0;b.pz=0;b.EW=!1;b.De=!1;b.X="";v7x(b.app.Nz());rb(b.app.Nz(),b.playback,!1);b.nR.clear();b.J.isActive()&&$G(b)}; hOw=function(b){mRK(b.G,R=>R.yp>=-1&&R.uj<=Infinity)}; K9K=function(b,R,h,K){R.durationMs=h;R.uj=K;(K=b.nR.get(R.cpn))?K.Fr(h/1E3):b.BH({nop_d:R.cpn})}; g.NG=function(b,R){for(const h of b.Zr)if(R>=h.start&&R<=h.end)return!0;return!1}; lE=function(b,R,h,K,I){let N=b.ao.get(h);if(!N){if(N=jF(b,R))return N;R=b.x0(h-1,K??2);if(I)return b.BH({misscue:I,sq:h,type:K,prevsstate:R?.Pn,prevrecord:b.ao.has(h-1)}),b.ao.get(h-1);if(R?.Pn===2)return b.BH({adnf:1,sq:h,type:K,prevrecord:b.ao.has(h-1)}),b.ao.get(h-1)}return N}; c5e=function(b,R,h,K,I,N){if(!b.De)if(g.NG(b,h))b.BH({gdu:"undec",seg:h,itag:I});else if(R=lE(b,R,h,K,N),!b.playback.getVideoData().eK()||!R?.lZ)return R}; jF=function(b,R){R+=b.GU();if(b.playback.getVideoData().eK()){a:{var h=b.G;b=R*1E3;for(K of h.Y)if(h=K.iC?K.iC*1E3:K.yp,b>=K.yp-1E3&&b<=h+K.durationMs+1E3)break a;var K=void 0}K={jb:K,HP:R}}else K=yW(b,R),K?.jb||(K=yW(b,R,1));return K?.jb}; Ib=function(b,R,h=!1){if(!h){for(const K of b.Zr){if(R>=K.start&&R<=K.end)return;if(R===K.end+1){K.end+=1;return}}b.Zr.push(new $kT(R))}}; uFB=function(b,R=""){const h=CB(R)||void 0;R&&h||b.BH({adcfg:R?.length,dcfg:h?.length});return h}; ps=function(b,R){const h=[];b=b.G.G.get(R);if(!b)return[];for(const K of b)K.cpn&&h.push(K.cpn);return h}; IE2=function(b,R,h){let K=!1;if(h=b.G.G.get(h))for(const I of h)I.durationMs!==0&&I.uj!==I.yp&&(h=I.cpn,R===h&&(K=!0),K&&!b.SK.has(h)&&(b.BH({decoratedAd:h}),b.SK.add(h)))}; NG3=function(b,R,h){let K=0;b=b.G.G.get(h);if(!b)return-1;for(const I of b){if(I.cpn===R)return K;K++}return-1}; pwK=function(b,R){let h=0;b=b.G.G.get(R);if(!b)return 0;for(const K of b)K.durationMs!==0&&K.uj!==K.yp&&h++;return h}; lET=function(b){for(const R of b.Y.values())b.playback.removeCueRange(R);b.Y.clear();b.G6.clearAll()}; DRe=function(b){if(b.KR||b.FM){var R=Array.from(b.app.Nz().U.values()),h=[],K=[],I=[],N=[],p=[],l=[];for(var a of R)if(R=b.G.Qu(a.m7()))R.fm&&h.push(R.fm),R.Da&&K.push(R.Da),R.HC&&K.push(R.HC),N.push(R.cpn),p.push(R.videoData.videoId||""),l.push(R.videoData.adFormat||R.videoData.CR),R.serializedQoeContextData&&I.push(R.serializedQoeContextData);R=a=void 0;b.KR&&(R={fm:h,A8:K});b.FM&&(a={oG:N,b2:p,adFormats:l,serializedQoeContextData:I});return{fu:R,Gp:a}}}; FCs=function(b,R,h,K,I,N,p){if(R&&h){b.jS=h.cpn;b.D9(h.cpn,h.startTimeSecs||I);o7P(b,h);var l=H1(b,"a2a",h);b.BH(l);b.lY++;l=DRe(b);b.playback.XZ(R,h,K||0,I||0,!!N,!!p,void 0,l)}else b.BH({misspbkonadtrans:1,enter:h?.cpn||"",exit:R?.cpn||"",seek:N,skip:p})}; b1T=function(b){b.wp.add(b.X);b.X="";b.U=!1}; aE3=function(b,R,h){var K;if(K=b.playback.getVideoData().eK())K=(K=b.G.Qu(R))&&K.E7?(b=b.G.G.get(K?.E7))&&b.slice(-1)[0].cpn===R:!1;return K&&h===2?1E3:0}; vj3=function(b,R,h,K){R={qK:R,aF:h,Dc:b.playback.getCurrentTime(),QF:K};fs(b,R)}; H1K=function(b,R,h={}){const K=b.J||b.app.E9().getPlayerState();A6(b,!0);R=isFinite(R)?R:b.G.va();const {jb:I,HP:N}=iE(b,R);R=I&&!zx(b,I)||!I&&b.G!==b.app.E9();var p=N*1E3;p=b.X&&b.X.start<=p&&p<=b.X.end;!R&&p||UG(b);I?BG2(b,I,N,h,K):Gx(b,N,h,K,"_execute")}; g_=function(b,R,h,K){b.G.YZ("timelineerror",{e:R,cpn:h?h:void 0,videoId:K?K:void 0})}; W1=function(b,R){return new g.gL(Math.max(0,b-5E3),R?0x8000000000000:b-1,{namespace:"childplayback",priority:9})}; c8=function(b,R,h,K){if((b&83)==b){R[35]!==10&&(R[35]<-6&&((0,R[43])(((0,R[11])(R[new h(f[12])/1E3]),(0,R[37])(R[2],R[1],(0,R[75])()),R[22])(R[47],R[44]),R[64],R[12],R[10]),1)||(0,R[79])((0,R[36])((0,R[68])(R[51]),R[42],R[52],R[59]),R[36],(0,R[37])(R[59],R[1],(0,R[69])()),R[64],R[78],R[29]));((0,R[62])(R[59]),R[8])(R[51]);(0,R[64])(R[51],R[5]);var I=[]}if((b|24)==b){if(h===f[82]){var N;(N=K[f[0]](f[31]))>=0?(h=`cmo=${K[f[15]](0,N)}`,K=K[f[15]](N+1)):(N=K[f[0]](f[79]))>=0&&(h=`cmo=${K[f[15]](0,N)}`, K=K[f[15]](N+3))}R[h]=K}(b+9^27)=b&&R[f[35]]();if(!((b^56)&7)){if(!(B8(R[f[19]])||R[f[19]][f[10]](f[23])||R[f[19]][f[10]](f[47])||R[f[19]][f[10]](f[50])))throw new g.A$(f[75],R[f[19]]);N=g.II(R[f[19]]);R[f[48]]=N[f[59]];R[f[27]]=N[f[1]]+(N[f[27]]!=null?`:${N[f[27]]}`:f[7]);var p=N[f[19]];p[f[10]](f[18])?(R[f[8]]=f[18],p=p[f[15]](14)):p[f[10]](f[61])?(R[f[8]]=f[61],p=p[f[15]](13)):p[f[10]](f[84])?(p=B3T(24,p,R),p=p[0]):(R[f[8]]=p,p=f[7]);var l=R[f[1]];R[f[1]]=uU(56,p);Object[f[77]](R[f[1]], Zu(2,N[f[49]][f[29]]()));Object[f[77]](R[f[1]],l);R[f[1]][f[2]]===f[69]&&(delete R[f[1]][f[2]],R[f[8]]+=f[78]);R[f[19]]=f[7];R[f[5]]=f[7];R[f[49]]&&(N=$p(1,R));I=[]}return I}; qYq=function(b,R,h){const K=R.XO;R.XO=h;zx(b,R)&&(h=b.app.E9(),K.qF===b.X&&UG(b),h.removeCueRange(K.qF),h.addCueRange(R.XO.qF))}; BG2=function(b,R,h,K,I){const N=zx(b,R);if(!N){R.playerVars.prefer_gapless=!0;var p=new g.dh(b.QX,R.playerVars);p.BD=R.BD;b.api.eU(p,R.playerType)}p=b.app.E9();N||p.addCueRange(R.XO.qF);p.seekTo(h,{ZK:"application_timelinemanager",...K});dkw(b,I)}; yAx=function(b,R,h,K,I,N){var p=R.cpn,l=R.docid||R.video_id||R.videoId||R.id,a=b.G;N=N===void 0?I+K:N;if(I>N)return g_(b,`enterAfterReturn enterTimeMs=${I} is greater than parentReturnTimeMs=${N.toFixed(3)}`,p,l),"";var v=a.f0()*1E3;if(Iv)return a=`returnAfterDuration parentReturnTimeMs=${N.toFixed(3)} is greater than parentDurationMs=${v}. And timestampOffset in seconds is ${a.Kz()}`, g_(b,a,p,l),"";v=null;for(const H of b.Y){if(I>=H.yp&&IH.yp)return g_(b,"overlappingReturn",p,l),"";if(N===H.yp)return g_(b,"outOfOrder",p,l),"";I===H.uj&&(v=H)}p=`cs_childplayback_${fEq++}`;l={qF:W1(K,!0),VS:Infinity,target:null};const B={BD:p,playerVars:R,playerType:h,durationMs:K,yp:I,uj:N,XO:l};b.Y=b.Y.concat(B).sort((H,q)=>H.yp-q.yp); v?qYq(b,v,{qF:W1(v.durationMs,!0),VS:v.XO.VS,target:B}):(R={qF:W1(I,!1),VS:I,target:B},b.S.set(R.qF,R),a.addCueRange(R.qF));R=!0;if(b.G===b.app.E9()&&(a=a.getCurrentTime()*1E3,a>=B.yp&&a{BG2(b,B,q/1E3,{},H)}); R=!1}R&&(b.C.unshift(B),b.nR.qa(0));return p}; t0q=function(b,R,h,K){b.X=K;K=R.BD;const I=R.playerVars,N=R.playerType;b.D=R;I&&b.api.enqueueVideoByPlayerVars(I,N,h,K)}; jxq=function(b,R,h,K){b.X=K;b.api.rP(b.G,h,R)}; UG=function(b){b.D=null;b.X=null;b.api.F9()||b.api.clearQueue()}; zx=function(b,R){b=b.app.E9();return!!b&&b.getVideoData().BD===R.BD}; AAq=function(b,R){zx(b,R)||g_(b,"childPlaybackIsNotPresenting");return R.uj===R.yp+R.durationMs?R.yp+b.app.E9().getCurrentTime()*1E3:R.uj}; iE=function(b,R){let h=0;for(const K of b.Y){b=K.yp/1E3+h;const I=b+K.durationMs/1E3;if(b>R)break;if(I>R)return{jb:K,HP:R-b};h=I-K.uj/1E3}return{jb:null,HP:R-h}}; A6=function(b,R){b.G6=NaN;b.U=null;b.K.stop();b.V&&R&&b.V.SB();b.J=null;b.V=null}; Gx=function(b,R,h,K,I){const N=b.G;N!==b.app.E9()&&b.app.eP();b.QX.N("html5_sabr_csdai_seek_log")||(I="");N.seekTo(R,{ZK:"application_timelinemanager"+(I??""),...h});dkw(b,K)}; dkw=function(b,R){b=b.app.E9();const h=b.getPlayerState();R.isOrWillBePlaying()&&!h.isOrWillBePlaying()?b.playVideo():R.isPaused()&&!h.isPaused()&&b.pauseVideo()}; i1D=function(b){var R=b.Y.find(h=>zx(b,h)); if(R){const h=b.app.E9();UG(b);const K=new g.tk(8);R=AAq(b,R)/1E3;Gx(b,R,{},K,"_force");h.YZ("forceParentTransition",{childPlayback:1});b.G.YZ("forceParentTransition",{parentPlayback:1})}}; SF=function(b,R=-1,h=Infinity){for(const [l,a]of b.S){var K=l,I=a;I.VS>=R&&I.target&&I.target.uj<=h&&(b.G.removeCueRange(K),b.S.delete(K))}K=[];for(const l of b.Y)l.yp>=R&&l.uj<=h?(I=b,I.D===l&&UG(I),zx(I,l)&&I.app.eP()):K.push(l);b.Y=K;const {jb:N,HP:p}=iE(b,R/1E3);N&&(R=p*1E3,zO3(b,N,R,N.uj===N.yp+N.durationMs?N.yp+R:N.uj));({jb:R}=iE(b,h/1E3));R&&g_(b,`Invalid clearEndTimeMs=${h} that falls during ${`playback={timelinePlaybackId=${R.BD} video_id=${R.playerVars.video_id} durationMs=${R.durationMs} enterTimeMs=${R.yp} parentReturnTimeMs=${R.uj}}`}.`+ "Child playbacks can only have duration updated not their start.")}; zO3=function(b,R,h,K){R.durationMs=h;R.uj=K;K={qF:W1(h,!0),VS:h,target:null};qYq(b,R,K);zx(b,R)&&b.app.E9().getCurrentTime()*1E3>h&&(R=AAq(b,R)/1E3,h=b.app.E9().getPlayerState(),Gx(b,R,{},h,"_update"))}; GeB=function(b){b&&b!=="web"&&UkK.includes(b)}; oKs=function(b,R){return R?!!b.G.get(R):!1}; gjx=function(b,R){b.dataset.version=R}; W9e=function(b){b.Mt=!b.Mt;b.rX=!0;b.element.classList.toggle("ytp-retro-player",b.Mt);b.resize();b.rX=!1;g.rw(b.app.qJ,"onRetroModeChanged",b.Mt)}; SY3=function(b){const R=b.app.qJ,h=()=>{b.Vd=new g.Xb(0,0,0,0);b.EN=new g.Xb(0,0,0,0)},K=p=>{p.getVideoData()&&b.updateVideoData(p.getVideoData())},I=(p,l)=>{b.kI(p,l)},N=p=>{b.tO&&ns(b); EG(b)!==b.Ve&&b.resize();b.app.L().N("web_enable_smart_zoom")&&b.D0&&(p.state.isPaused()?b.D0.pause():p.Up(8)&&b.D0.playState==="paused"&&b.D0.play())}; R.addEventListener("initializingmode",h);R.addEventListener("videoplayerreset",K);R.addEventListener("videodatachange",I);R.addEventListener("presentingplayerstatechange",N);b.addOnDisposeCallback(()=>{R.removeEventListener("initializingmode",h);R.removeEventListener("videoplayerreset",K);R.removeEventListener("videodatachange",I);R.removeEventListener("presentingplayerstatechange",N)})}; TGP=function(b){var R=b.P$();let h=1;var K=!1;const I=njx(b,R,b.getVideoAspectRatio()),N=b.app.L(),p=N.N("enable_desktop_player_underlay"),l=Jr3();var a=g.fg(N.experiments,"player_underlay_min_player_width");a=p&&b.CQ&&b.getPlayerSize().width>a;if(EG(b)){var v=Eje(b);var B=isNaN(v)||g.po||mf&&g.x9||a;Nr&&!g.ZN(601)?v=I.aspectRatio:B=B||N.controlsType==="3";B?a?(B=N.N("place_shrunken_video_on_left_of_player")?16:b.getPlayerSize().width-R.width-16,v=Math.max((b.getPlayerSize().height-R.height)/2,0), B=new g.Xb(B,v,R.width,R.height),b.tO.style.setProperty("border-radius","12px")):B=new g.Xb(0,0,R.width,R.height):(h=I.aspectRatio/v,B=new g.Xb((R.width-I.width/h)/2,(R.height-I.height)/2,I.width/h,I.height),h===1&&g.x9&&(v=B.width-R.height*v,v>0&&(B.width+=v,B.height+=v)));g.k(b.element,"ytp-fit-cover-video",Math.max(B.width-I.width,B.height-I.height)<1);if(l||b.cC)b.tO.style.display="";b.Ve=!0}else{B=-R.height;Nr?B*=window.devicePixelRatio:g.qH&&(B-=window.screen.height);B=new g.Xb(0,B,R.width, R.height);if(l||b.cC)b.tO.style.display="none";b.Ve=!1}Vg(b.Vd,B)||(b.Vd=B,g.Mz(N)?(b.tO.style.setProperty("width",B.width+"px","important"),b.tO.style.setProperty("height",B.height+"px","important")):g.pK(b.tO,B.getSize()),K=new g.CP(B.left,B.top),g.bu(b.tO,Math.round(K.x),Math.round(K.y)),K=!0);R=new g.Xb((R.width-I.width)/2,(R.height-I.height)/2,I.width,I.height);Vg(b.EN,R)||(b.EN=R,K=!0);g.MN(b.tO,"transform",h===1?"":`scaleX(${h})`);p&&a!==b.yd&&(a&&(b.tO.addEventListener(Tx,b.Ls),b.tO.addEventListener("transitioncancel", b.Ls),b.tO.classList.add(g.hP.VIDEO_CONTAINER_TRANSITIONING)),b.yd=a,b.app.qJ.publish("playerUnderlayVisibilityChange",b.yd?"transitioning":"hidden"));return K}; ns=function(b){var R=b.app.L().controlsType==="3"&&!b.Si&&EG(b)&&!b.app.JI||!1;b.tO.controls=R;b.tO.tabIndex=R?0:-1;b.app.L().V&&(b.tO.ariaHidden="true");R?b.tO.removeEventListener("focus",b.ux):b.tO.addEventListener("focus",b.ux)}; Eje=function(b){var R=b.app.E9();if(R=R?R.getVideoData():null){if(g.YK(R)||g.eJ(R)||g.ON(R))return 16/9;if(qF(R)&&R.X.G())return b=R.X.videoInfos[0].video,J6(b.width,b.height)}return(b=b.tO)?J6(b.videoWidth,b.videoHeight):16/9}; J6=function(b,R){return Math.abs(kG*R-b)<1||Math.abs(kG/b-R)<1?kG:b/R}; njx=function(b,R,h,K){let I=h;const N=J6(R.width,R.height);b.gL?I=hN?{width:R.width,height:R.width/I,aspectRatio:I}:II?b.width=b.height*h:h{h.reject("timeout")},1E4); b.Br.onerror=()=>{h.reject("error")}; b.Br.onmessage=()=>{h.resolve();clearTimeout(R)}; await h.promise;b.Br.onmessage=null;b.Br.onerror=null;b.Br.addEventListener("message",K=>void b.receive(K)); b.YZ("workerCtor",{})}catch(h){clearTimeout(R),b.Br?.terminate(),b.Br.onmessage=null,b.Br.onerror=null,b.Br=void 0,b.YZ("workerErr",{e:`${h}`})}}}; YYK=function(b,R){if(b.G&&b.G.byteLength===R)return b.G;const h=new Uint8Array(R);let K=0;for(;R>0;){const I=new Uint8Array(Math.min(R,65536));crypto.getRandomValues(I);h.set(I,K);R-=I.length;K+=I.length}return b.G=h}; eOK=function(b,R){b.Br&&(R=YYK(b,R),R.length>0&&R[0]++,R={[0]:0,[1]:performance.now(),[2]:R},b.request(R))}; O1D=async function(b){b.Y!==void 0||b.X||(b.X=!0,await keT(b),b.X=!1,b.Br&&(eOK(b,b.U),b.Y=setInterval(()=>{b.sendRequest()},b.intervalMs)))}; Qx2=function(b,R){const h=b.DK.Qk;return h?gV(h.getPlayerState()):b.getVideoData().enableServerStitchedDai&&R===2?(b.QX.Mj().G.WY(YG)?b.DK.G?.isAd()??!1:b.bj?.RH(b.getCurrentTime()))?b.zY:-1:R!==2||b.w3()?b.zY:b.KL}; Kz=function(b){return b.JI&&b.getVideoData().mutedAutoplay}; OG=function(b,R,h){R&&(R=g.eF(b,{playerType:h}),R===b.YO()&&(R.getVideoData().jn=!0))}; QW=function(b,R,h=!0,K,I,N){const p=g.eF(b,{playerType:I});var l=p.getVideoData();p.getPlayerType()===2&&!b.w3(p)&&!l.isSeekable||g.Jw(l)||((l=b.DK.Qk)?l.seekTo(R,{Il:!h,Z1:K,ZK:"application",seekSource:N}):(p&&p===b.YO()&&b.ll&&!xkw(b,R)&&b.setLoopRange(null),b.seekTo(R,h,K,I,N,"_request")))}; P1=function(b,R){R=g.eF(b,{playerType:R});R=xG(b,R);return mZ(b,R.QK(),R)}; uE=function(b,R,h){b.QX.gp&&(b.JW=R,R.muted||Zj(b,!1),h&&b.QX.storeUserVolume&&!b.QX.FM&&(h={volume:Math.floor(R.volume),muted:R.muted},h.unstorable||(g.Iz("yt-player-volume",h),g.Iz("yt-player-volume",h,2592E3))),c1(b),h=g.I5&&b.mediaElement&&!b.mediaElement.E8(),b.QX.FM&&!h||g.Dr(b.qJ,"onVolumeChange",{muted:R.muted,volume:R.volume,unstorable:!b.QX.storeUserVolume}))}; RL=function(b,R){return b.N("web_player_misc_bugfix_b")?b.DK.Qu(R)||b.DK.D:b.DK.Qu(R)}; Xf=function(b,R,h,K,I,N,p){R={id:R,namespace:p??"appapi"};N==="chapter"?(R.style=tB.CHAPTER_MARKER,R.visible=!0):isNaN(I)||(N==="ad"?R.style=tB.AD_MARKER:(R.style=tB.TIME_MARKER,R.color=I),R.visible=!0);b.w_([new g.gL(h*1E3,K*1E3,R)],1);return!0}; mkP=function(b,R,h=!0,K,I){const N=g.eF(b,{playerType:1});let p=0;N.getStreamTimeOffset()&&!N.Kz()&&(p=N.getStreamTimeOffset());QW(b,R-p,h,K,1,I)}; P3x=function(b){if(b.QX.storeUserVolume){b=g.NC("yt-player-volume")||{};const R=b.volume;b={volume:isNaN(R)?100:g.ui(Math.floor(R),0,100),muted:!!b.muted}}else b={volume:100,muted:b.QX.mute};return b}; Z1H=function(b,R,h,K,I,N=!0){const p=b.hh();if(!p)return N&&b.getVideoData().isLivePlayback&&b.tI.push({id:R,Lw:h,mU:K}),!1;N=p-b.getCurrentTime();return Xf(b,R,h-N,K-N,void 0,void 0,I)}; cAx=function(b,R){b.PD().autonavState=R;g.Iz("yt-player-autonavstate",R);b.qJ.publish("autonavchange",R)}; VW=function(b,R){b.playlist&&(g.$l(b.playlist),b.playlist=null);R&&(b.us&&(R.fetch=0),b.playlist=new u5w(b.QX,R))}; MG=function(b,R,h){R=g.eF(b,{playerType:h}).lj(R);h&&b.getPresentingPlayerType()!==h||Cs(b,"cuerangesremoved",R)}; w_=function(b,R,h,K=Infinity,I=0){var N=b.E9();h=h||N.getPlayerType();(N=r_(b,h,R,!0))||(N=Ls(b,h,R,!0));R=b.YO();h===2&&R&&(h=N.getVideoData(),R.Mc(h.clientPlaybackNonce,h.CR||"",h.breakType||0,h.dG,h.videoId||""));b.rP(N,K,0,I)}; Xwx=function(b){const R=b.webPlayerContextConfig.trustedJsUrl;return R?KD(R).toString():b.webPlayerContextConfig.jsUrl}; C3K=function(b){var R="";let h="";var K=Xwx(b),I=W6(K,"cb");I&&/^[\w-]+$/.test(I)&&(h=I);K.indexOf("//")===0&&(K=b.QX.protocol+":"+K);I=K.lastIndexOf("/base.js");I!==-1&&(R=K.substring(0,I+1));if(K=Error().stack)if(K=K.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))K=K[1],K.includes(R)||g.kJ(Error("Player module URL mismatch: "+`${K} vs ${R}.`));R=new V0x(b.qJ,R,h);qg3(R,{destroyed:()=>{b.onApiChange()}}); return R}; M0x=function(b){VU(b,function(){const R=this;return function*(){R.vH.tick("wasm_s");const h=Y7(R.cD)?K=>cq(TlD(R.cD),I=>I.QM(K)):void 0; try{const K=RRK(R.webPlayerContextConfig.wasmModuleUrl,h,R.gX.bind(R)),I=yield*Cg(K);R.vH.tick(I.G?"wasm_fa":"wasm_fw");dhe(R.QX,I)}catch(K){R.vH.tick("wasm_ferr")}}()})}; rAT=function(b){const R=new g.dh(b.QX,b.J5);b.qJ.publish("initialvideodatacreated",R);return Ls(b,1,R,!1)}; wwq=function(b){const R=b.YO();R.setPlaybackRate(b.QX.V?1:L9T(b,Number(g.NC("yt-player-playback-rate"))||1));R.vZ(b.Ld,b);R.hj()}; oj3=function(b){b.xX();var R=b.J5;Ff(b);b.events.j(window,"resize",b.SZ);const h=b.PD();g.Dr(b.qJ,"onVolumeChange",b.JW);if(R&&qR(R)){const K=I4(b.QX);K&&!b.us&&(R.fetch=0);const I=g.Fo(b.QX);I&&!b.us&&(R.fetch=0);VW(b,R);g.Fo(b.QX)&&b.vH.tick("ep_pr_s");if(!K||b.us)if(I&&!b.us)ob(b);else if(!h.Jh())b.playlist.onReady(()=>{Dj(b)})}b.lN(b.YO(),!1,!0); b.YO().getPlayerState().G(128)||(R=$Wx(!b.QX.deviceIsAudioOnly),R==="fmt.noneavailable"?b.zz("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):R==="html5.missingapi"?b.zz(R,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):h&&h.Jh()&&bY(b)&&(b.QX.x4||b.QX.cO)?Rl(b):h.ZX?b.qJ.mutedAutoplay({durationMode:h.mutedAutoplayDurationMode}):g.NC("yt-player-playback-on-reload")?(g.yp("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!b.QX.T6}),g.Iz("yt-player-playback-on-reload",!1), Rl(b)):NH(b.QX)||F9x(b),g.lv(b.QX)||x2(b.QX)==="MWEB"?(g.z6(g.G6(),()=>{hp(b)}),g.z6(g.G6(),()=>{JYT()})):(hp(b),JYT()))}; Dke=function(b){const R=h=>{h.stack&&h.stack.indexOf("player")!==-1&&b.E9().qL(h)}; Oi.subscribe("handleError",R);Hg.push(R);return()=>{Oi.unsubscribe("handleError",R);const h=Hg.indexOf(R);h!==-1&&Hg.splice(h,1)}}; Ls=function(b,R,h,K,I){b=g.bnB(b,R,h,I);b=new g.K7(b);K&&b.hj();return b}; L9T=function(b,R){var h=b.qJ.getAvailablePlaybackRates();R=Number(R.toFixed(2));b=h[0];h=h[h.length-1];R<=b?R=b:R>=h?R=h:(b=Math.floor(R*100+.001)%5,b!==0&&(R-=b*.01,R=Math.floor(R*100+.001)/100));return R}; $P=function(b){s$(b);b.setLoopVideo(!1);b.setLoopRange(null);b.qJ.publish("legacyadtrackingpingreset");b.Sk={};b.tI=[];KcP(b.vH);if(b.bj){var R=b.bj,h=b.YO();h.getPlayerType();ab(R,!1);t6(R);sxK(R);R.playback=h}R=b.xO;b=b.YO();b.getPlayerType()!==1&&g_(R,"invalidParentVideoPlayerType");A6(R,!1);SF(R);R.G=b}; Rke=function(b){const R=b.mediaElement;p4()?b.fP.j(R,"webkitpresentationmodechanged",b.o2):window.document.pictureInPictureEnabled&&(b.fP.j(R,"enterpictureinpicture",()=>{b.F3(!0)}),b.fP.j(R,"leavepictureinpicture",()=>{b.F3(!1)})); zJ&&(b.fP.j(R,"webkitbeginfullscreen",()=>{b.J8(3)}),b.fP.j(R,"webkitendfullscreen",()=>{b.J8(0)}))}; Ff=function(b){b.mediaElement=b.QX.deviceIsAudioOnly?new g.QE(g.jO("AUDIO")):OQ.pop()||new g.QE(g.jO("VIDEO"));g.n(b,b.mediaElement);b.E9().setMediaElement(b.mediaElement);try{b.QX.FM?(b.xf&&b.events.Ac(b.xf),b.xf=b.events.j(b.mediaElement,"volumechange",b.No)):(b.mediaElement.U(b.JW.muted),b.mediaElement.setVolume(b.JW.volume/100))}catch(I){b.zz("html5.missingapi",2,"UNSUPPORTED_DEVICE",`setvolume.1;emsg.${I&&typeof I==="object"&&"message"in I&&typeof I.message==="string"&&I.message.replace(/[;:,]/g, "_")}`);return}b.fP.Y();Rke(b);var R=b.template,h=b.mediaElement.hO();R.tO=h;R.Si=!1;R.tO.parentNode||UU(R.v2,R.tO,0);R.Vd=new g.Xb(0,0,0,0);TGP(R);ns(R);h=R.tO;g.Nv(h,"video-stream");g.Nv(h,g.hP.MAIN_VIDEO);const K=R.app.L();K.OV&&h.setAttribute("data-no-fullscreen","true");K.N("html5_local_playsinline")?"playsInline"in sD()&&(h.playsInline=!0):K.LZ&&(h.setAttribute("webkit-playsinline",""),h.setAttribute("playsinline",""));K.U$&&R.tO&&R.j(h,"click",h.play,h);try{b.mediaElement.activate()}catch(I){b.zz("html5.missingapi", 2,"UNSUPPORTED_DEVICE",`activate.1;emsg.${I&&typeof I==="object"&&"message"in I&&typeof I.message==="string"&&I.message.replace(/[;:,]/g,"_")}`)}}; Cs=function(b,R,h){b.qJ.publish(R,h);const K=g.hB(b.QX)||g.Mz(b.QX)||g.LW(b.QX);if(h&&K){let I;switch(R){case "cuerangemarkersupdated":I="onCueRangeMarkersUpdated";break;case "cuerangesadded":I="onCueRangesAdded";break;case "cuerangesremoved":I="onCueRangesRemoved"}I&&g.rw(b.qJ,I,h.map(N=>({getId(){return this.id},end:N.end,id:N.getId(),namespace:N.namespace==="ad"?"ad":"",start:N.start,style:N.style,visible:N.visible,markerPositionMs:N.markerPositionMs})))}}; hkB=function(b,R=!0){var h;if(h=b.Dq){h=b.Dq;var K=b.mediaElement;h=!!K&&K===h.mediaElement}h&&(b.RB(),Ff(b));h=b.E9();h.RB(!R);h.jG(b.kP,b);h.getPlayerType()!==1&&h.dispose();b=b.DK;R=[b.Y];b.Y=b.D;Mm(b,[],R)}; Ne=function(b,R,h,K){h&&(b.RB(),Ff(b));h=b.E9();h.qX(R);const I=b.getVideoData(),N={};N.video_id=I.videoId;N.adformat=I.adFormat;I.isLivePlayback||(N.start=h.getCurrentTime(),N.resume="1");I.isLivePlayback&&zT(I)&&g.bU(b.QX)&&(N.live_utc_start=h.hh(),N.resume="1");I.nR&&(N.vvt=I.nR);I.g3&&(N.vss_credentials_token=I.g3,N.vss_credentials_token_type=I.SR);I.oauthToken&&(N.oauth_token=I.oauthToken);N.autoplay=1;N.reload_count=I.pR+1;N.reload_reason=R;I.sE&&(N.unplugged_partner_opt_out=I.sE);I.wi&&(N.ypc_is_premiere_trailer= I.wi);I.playerParams&&(N.player_params=I.playerParams);I.C&&(N.itct=I.C);b.loadVideoByPlayerVars(N,void 0,!0,void 0,void 0,K);R==="signature"&&b.bj&&Il(b)}; syK=function(b){if(!K1x(b)){var R=b.YO().di();R&&(R=R.C(),R instanceof Promise&&R.catch(()=>{})); p7(b,gV(b.getPlayerStateObject()))}}; K1x=function(b){if(b.playlist&&(g.LB(b.QX)||b.QX.nR==="background_audio_playback")&&b.tD()){const R=b.QX.N("html5_player_autonav_logging");b.nextVideo(!1,R);return!0}return!1}; p7=function(b,R){const h=b.E9(),K=h.getPlayerType();if(K!==2||b.w3()){if(K===2&&b.w3()||K===5||K===6||K===7)if(R===-1||R===0||R===5)return;if(R===0){if(b.ll)return;if(h.b3()&&g.hB(b.QX)){b.playVideo();return}}b.zY!==R&&(b.zY=R,g.Dr(b.qJ,"onStateChange",R))}else b.KL!==R&&(b.KL=R,g.Dr(b.qJ,"onAdStateChange",R))}; g.eF=function(b,R){return b.DK.Qu(R)||b.DK.D}; g.bnB=function(b,R,h,K){let I=b.vH;R===2&&(I=new $mx(b.QX));R=new g.lY(b.QX,R,I,b.template,(N,p,l)=>{b.qJ.publish(N,p,l)},()=>b.qJ.getVisibilityState(),b.visibility,b,b.g2,h,K,b.dB); b.QX.Mj().G.WY(I7B)&&b.Kv(h.clientPlaybackNonce);return R}; xG=function(b,R){return b.w3(R)?b.YO():R}; al=function(b,R){const h=b.E9();return R===b.YO()&&b.w3(R)&&b.w3(h)?h:R}; vH=function(b){b=vr(b.cD);return!!b&&b.loaded}; NbT=function(b){const R=b.getVideoData();var h=b.cD;eR(h)||h.S();!ug&&Y7(h)&&SgB(h);TX(h,"embed");TX(h,"kids");TX(h,"remote");TX(h,"miniplayer");TX(h,"offline");TX(h,"unplugged");TX(h,"ypc",!1,!0);TX(h,"webgl",!1,!0);nhx(h)||(TX(h,"captions",!0),TX(h,"endscreen"),h.G(),TX(h,"creatorendscreen",!0));h.U();h.A.publish("modulesCreated");b.qJ.publish("videoready",R)}; Il=function(b){if(!vH(b)){const R=GX(b.cD);R&&!R.created&&k7(b.cD)&&R.create()}}; c1=function(b){var R=b.getVideoData();if(!R.OU){R=b.QX.FM?1:AD(R);const h=b.mediaElement;h.U(b.JW.muted);try{h.setVolume(b.JW.volume*R/100)}catch{g.kJ(new g.A$("b183742307",`multiplier: ${R}, volume: ${b.JW.volume}`))}}}; bY=function(b){b=b.PD();b.Jh();return P0(b)}; ob=function(b,R){const h=(R?R:b.PD()).n4;b.vH.tick("ep_pr_r");if(h!=null&&(s6B(b.playlist,h),b.We))b.playlist.onReady(()=>{Dj(b,R)})}; Dj=function(b,R){const h=g.Fo(b.QX)&&!b.QX.C;var K=h&&R?R:g.fE(b.playlist);R=h&&R?R:b.getVideoData();K&&(R.xV&&(b.QX.x4||b.QX.cO)||!b.f2?(R=R.jn,K=b.eU(K,1),R&&OG(b,K)):BH(b,K,1));g.Fo(b.QX)&&b.vH.tick("ep_p_l");b.We=!1;g.oj(b.qJ,"onPlaylistUpdate")}; Rl=function(b){var R=b.YO();if(R.getPlayerState().G(128))return!1;R=R.getVideoData();bY(b)&&b.QX.cO&&(OQ.length&&b.JI?(uE(b,{muted:!1,volume:b.JW.volume},!1),Zj(b,!1)):OQ.length||b.JW.muted||(uE(b,{muted:!0,volume:b.JW.volume},!1),Zj(b,!0)));bY(b)&&g.Fo(b.QX)&&R.mutedAutoplay&&(uE(b,{muted:!0,volume:b.JW.volume},!1),Zj(b,!0));R.Om&&uE(b,{muted:!0,volume:b.JW.volume},!1);r_(b,1,R,!1);const h=b.YO();b.qJ.publish("initializingmode");b.lN(h);b.xY(3);var K;if(!(K=!b.QX.nX)){if(K=b.Dq){K=b.Dq;var I=b.mediaElement; K=!!I&&I===K.mediaElement}K=K&&b.I5}K&&(b.RB(),Ff(b),h.setMediaElement(b.mediaElement));h.S8();if(h.getPlayerState().G(128))return!1;R.FM||p7(b,3);return b.I5=!0}; F9x=function(b){b.qJ.publish("initializingmode");b.xY(2);TX(b.cD,"remote");TX(b.cD,"miniplayer")}; hp=function(b){if(!b.N("use_rta_for_player"))if(b.N("fetch_att_independently"))b.wv.qa();else{var R=b.getVideoData().botguardData;R&&g.LG(R,b.QX,b.getVideoData().XR||"")}}; Zj=function(b,R){R!==b.JI&&(b.JI=R,g.oj(b.qJ,"onMutedAutoplayChange",R))}; r_=function(b,R,h,K){const I=HH(b,R,h),N=b.DK.J.get(I)||null;if(!N)return null;b.DK.J.remove(I);if(N.HY())return null;if(N.getPlayerState().G(128))return N.dispose(),null;if(N===b.Qu({playerType:R}))return b.vH.infoGel({isCacheHit:!0}),N;if((N.getVideoData().oauthToken||h.oauthToken)&&N.getVideoData().oauthToken!==h.oauthToken)return null;R===1&&(R=b.E9().getVideoData(),GT(R)&&R.isAd()&&K||s$(b));K||b.lN(N,!0);b.vH.infoGel({isCacheHit:!0});return N}; pRw=function(b){const R=(0,g.c)();var h=b.getCurrentTime();b=b.getVideoData();h=1E3*(h-b.startSeconds);b.isLivePlayback&&(h=0);return R-Math.max(h,0)}; var kUD=function(b,R,h,K,I,N){return jT[f[6]](this,8,b,R,h,K,I,N)}; var xkw=function(b,R){if(!b.ll)return!1;const h=b.ll.startTimeMs*.001-1;let K=b.ll.endTimeMs*.001;b.ll.type==="repeatChapter"&&K--;return Math.abs(R-h)<=1E-6||Math.abs(R-K)<=1E-6||R>=h&&R<=K},l7K=function(b){var R=b.E9(); if(b.N("html5_disable_loop_range_for_shorts_ads")&&R.getVideoData().isAd()?0:GT(R.getVideoData())&&!R.ez())R=P1(b)*1E3-b.getVideoData().Vz,b.N("html5_gapless_new_slr")?(b=b.jy,MG(b.app,"gaplessshortslooprange"),R=new g.gL(0,R,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(b=b.app.E9())&&b.addCueRange(R)):b.setLoopRange({startTimeMs:0,endTimeMs:R,type:"shortsLoop"})},a7w=function(b){const R=b.YO(); if(!(R.getPlayerState().G(64)&&b.PD().isLivePlayback&&b.ll.startTimeMs<5E3)){if(b.ll.type==="repeatChapter"){var h=BVx(b.VV())?.gk(),K=b.getVideoData()?.m_;h instanceof g.qe&&K&&(K=K[Hw(K,b.ll.startTimeMs)],h.renderChapterSeekingAnimation(0,K.title));isNaN(Number(b.ll.loopCount))?b.ll.loopCount=0:b.ll.loopCount++;b.ll.loopCount===1&&g.rw(b.qJ,"innertubeCommand",b.getVideoData().Xj)}h={ZK:"application_loopRangeStart"};if(b.ll.type==="clips"||b.ll.type==="shortsLoop")h.seekSource=58;R.seekTo(b.ll.startTimeMs* .001,h)}},mZ=function(b,R,h){if(b.w3(h)&&(h=h.getVideoData(),!de(b))){b=b.xO; for(var K of b.Y)if(h.BD===K.BD){R+=K.yp/1E3;break}K=R;for(const I of b.Y){if(h.BD===I.BD)break;b=I.yp/1E3;if(b{b.We=!0;ob(b,N)}); else b.playlist.onReady(()=>{Dj(b)}); g.Fo(b.QX)&&b.vH.tick("ep_a_pr_r")},f7=function(b){const R=V5(!0); return R&&(R===b.template.element||b.mediaElement&&R===b.mediaElement.hO())?R:null},yb3=function(b,R){var h=window.screen?.orientation; if(b.QX.D&&h&&h.lock&&(!g.I5||!f7T))if(R){R=h.type.indexOf("portrait")===0;const K=b.template.getVideoAspectRatio();let I=R;K<1?I=!0:K>1&&(I=!1);b.j$&&I===R||(h=h.lock(I?"portrait":"landscape"),h!=null&&h.catch(()=>{}),b.j$=!0)}else b.j$&&(b.j$=!1,h.unlock())},tqw=function(b,R){R.bounds=b.getBoundingClientRect(); const h=["display","opacity","visibility","zIndex"];for(const K of h)R[K]=Fb(b,K);R.hidden=!!b.hidden},jyT=function(b,R){const h=b.Qu({playerType:1}); if(h){if(h.getVideoData().clientPlaybackNonce===R)return h;if((b=b.FI.G)&&b.getVideoData().clientPlaybackNonce===R)return b}return null},Abq=function(b){return b.name==="TypeError"&&b.stack.includes("/s/player/")&&Hu()<=105},in3=function(b){return b.isTimeout?"NO_BID":"ERR_BID"},zkx=function(){let b=null; uzT().then(R=>b=R,R=>b=in3(R)); return b},UmT=function(){const b=aG(1E3,"NO_BID"); return g.Fp(wE2([uzT(),b]).xb(in3),()=>{b.cancel()})},aPD=function(b){return b.Ys?g.HL().WY(140)?"STATE_OFF":"STATE_ON":"STATE_NONE"},yD=function(b,R,{H5:h, qF:K,cueProcessedMs:I}={},N=""){const p=b.player.getVideoData({playerType:1}),l=b.player.L().Kb;var a=0;if(I&&K&&!h){const q=K.end-K.start;q>0&&(a=Math.floor(q/1E3))}a=h?h.oY:a;const v={AD_BLOCK:b.G++,AD_BREAK_LENGTH:a,AUTONAV_STATE:aPD(b.player.L()),CA_TYPE:"image",CPN:p.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:b.player.PK()*1E3,LACT:i$(),LIVE_INDEX:h?b.Y++:1,LIVE_TARGETING_CONTEXT:h&&h.context?h.context:"",MIDROLL_POS:K?Math.round(K.start/1E3):0,MIDROLL_POS_MS:K?Math.round(K.start):0,VIS:b.player.getVisibilityState(), P_H:b.player.tX().P$().height,P_W:b.player.tX().P$().width,YT_REMOTE:l?l.join(","):""},B=TE(JQ);Object.keys(B).forEach(q=>{B[q]!=null&&(v[q.toUpperCase()]=B[q].toString())}); N!==""&&(v.BISCOTTI_ID=N);K={};nD(R)&&(K.sts="20494",(N=b.player.L().forcedExperiments)&&(K.forced_experiments=N));const H=go(g.eB(R,v),K);return H.split("?").length!==2?Vb(Error("Invalid AdBreakInfo URL")):g.js(b.player.L(),p?.oauthToken).then(q=>{if(q&&R_()){var d=tT();jp(d,q)}q=b.player.MF(d);d=h&&b.player.L().N("html5_send_cuepoint_id_in_ad_break_request")?h.identifier:void 0;d=dvs(b,H,v,p.isMdxPlayback,I,d);return g.bn(q,d,"/youtubei/v1/player/ad_break").then(t=>t)})},GOT=function(b,R){b=b.player.L(); if(pt(b)||a4(b))b=g.x("INNERTUBE_CONTEXT"),b?.adSignalsInfo?.advertisingId&&typeof b?.adSignalsInfo?.limitAdTracking!=="undefined"&&(R.advertisingId=b.adSignalsInfo.advertisingId,R.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",R.limitAdTracking=b.adSignalsInfo.limitAdTracking)},lPK=function(b,R,h,K,I,N){R.client||(R.client={}); b.player.L().N("h5_remove_url_for_get_ad_break")||(R.client.originalUrl=h);const p=Wg(h);let l=g.B6(h)?!1:!0;(p||l)&&typeof Intl!=="undefined"&&(R.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);l=g.B6(h)?!1:!0;if(p||l||K!==""){const a={};h=j8(k_(K)).split("&");const v=new Map;h.forEach(B=>{B=B.split("=");B.length>1&&v.set(B[0].toString(),decodeURIComponent(B[1].toString()))}); v.has("bid")&&(a.bid=v.get("bid"));a.params=[];g1x.forEach(B=>{v.has(B)&&(B={key:B,value:v.get(B)},a.params.push(B))}); GOT(b,a);R.adSignalsInfo=a}R.client.unpluggedAppInfo||(R.client.unpluggedAppInfo={});R.client.unpluggedAppInfo.enableFilterMode=!1;h=I.G.cosver;h!=null&&h!=="cosver"&&(R.client.osVersion=h);h=I.G.cplatform;h!=null&&h!=="cplatform"&&h!==""&&(R.client.platform=h);h=I.G.cmodel;h!=null&&h!=="cmodel"&&(R.client.deviceModel=h);h=I.G.cplayer;h!=null&&h!=="cplayer"&&(R.client.playerType=h);h=I.G.cbrand;h!=null&&h!=="cbrand"&&(R.client.deviceMake=h);R.user||(R.user={});R.user.lockedSafetyMode=!1;g.LB(I)&& FIx(R,N,b.player.getPlayerState(1));if(b=I.livingRoomPoTokenId)R.client.tvAppInfo={...R.client.tvAppInfo,livingRoomPoTokenId:b}},vdT=function(b,R){let h=!1; if(R==="")return h;R.split(",").forEach(K=>{const I={},N={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""};let p="ACTIVE";K[0]==="!"&&(K=K.substring(1),p="INACTIVE");K=K.split("-");K.length<3||(K[0]in W1D&&(N.clientName=W1D[K[0]]),K[1]in SQ2&&(N.platform=SQ2[K[1]]),N.applicationState=p,N.clientVersion=K.length>2?K[2]:"",I.remoteClient=N,b.remoteContexts?b.remoteContexts.push(I):b.remoteContexts=[I],h=!0)}); return h},xmB=function(b){const R=new n1e(b.G.Op); g.n(b,R);b=[new E1H(b.G.aH),new Tbs(b.G.A),new JbT(b.G.aH),new kOs(b.G.Im,b.G.kJ),new YQH,new ekw(b.G.V$,b.G.xk,b.G.aH),new Onw,new Qyx(b.G.xk)];for(const h of b)dfB(R,h);for(const h of["adInfoDialogEndpoint","adFeedbackEndpoint"])Aj(R,h,()=>{}); return R},tp=function(b){const R=b.s9,h=b.VX; b=b.Og;const K={QYO:new mmx(R.get(),h),VX:h};return{cH:new PrD(h,b,R),context:K}},xS=function(b){b.Y=!1; const R={};b.G&&b.videoId&&(R.cttAuthInfo={token:b.G,videoId:b.videoId});ZC("ad_to_video",R);Zns(b)},cbe=function(b){if(b.A.getVideoData({playerType:1})?.K){b.Y=!1; var R={};b.G&&b.videoId&&(R.cttAuthInfo={token:b.G,videoId:b.videoId});ZC("video_to_ad",R)}},uSw=function(b,R){for(const h of R)if((b=h.renderer)&&(b.instreamVideoAdRenderer||b.linearAdSequenceRenderer||b.sandwichedLinearAdRenderer||b.instreamSurveyAdRenderer)){mv("ad_i"); g.PI({isMonetized:!0});break}},Zns=function(b){if(b.X)if(b.V==="AD_PLACEMENT_KIND_START"&&b.actionType==="video_to_ad")OC("video_to_ad"); else{var R={adBreakType:EK(b.V),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:b.videoStreamType};b.actionType==="ad_to_video"?(b.contentCpn&&(R.targetCpn=b.contentCpn),b.videoId&&(R.targetVideoId=b.videoId)):(b.adCpn&&(R.targetCpn=b.adCpn),b.adVideoId&&(R.targetVideoId=b.adVideoId));b.adFormat&&(R.adType=b.adFormat);b.contentCpn&&(R.clientPlaybackNonce=b.contentCpn);b.videoId&&(R.videoId=b.videoId);b.adCpn&&(R.adClientPlaybackNonce= b.adCpn);b.adVideoId&&(R.adVideoId=b.adVideoId);g.PI(R,b.actionType);b.A.L().experiments.O9("html5_ads_csi_qoes")&&(R=b.A.CZ(b.actionType==="ad_to_video"?1:2),R=(0,g.c)()-1E3*R,uM("qoes",R,b.actionType))}},XRq=function(b){b.contentCpn=null; b.adCpn=null;b.videoId=null;b.adVideoId=null;b.adFormat=null;b.V="AD_PLACEMENT_KIND_UNKNOWN";b.actionType="unknown_type";b.X=!1;b.Y=!1},j1=function(b,R){b.A.cueVideoByPlayerVars(R,2)},UT=function(b,R,...h){R==="onAdStart"||R==="onAdEnd"?g.Dr(b.A,R,...h):g.rw(b.A,R,...h)},pM=function(b,R){return b.A.L().N(R)},Vq2=function(b){return b.A.L().experiments.O9("enable_desktop_discovery_video_abandon_pings")||pt(b.A.L())},CrT=function(b){return b.A.L().experiments.O9("enable_progres_commands_lr_feeds")}, Mq2=function(b){return b.A.L().experiments.O9("enable_progress_commands_lr_shorts")},CJ=function(b,R){return b.A.L().N("html5_cue_video_for_preroll")&&R?.kind==="AD_PLACEMENT_KIND_START"?!1:b.A.L().experiments.O9("html5_load_ads_instead_of_cue")},MI=function(b){return b.A.L().experiments.O9("html5_preload_ads")},rbs=function(b){return b.A.L().experiments.O9("html5_load_empty_player_in_media_break_sub_lra")},Ap=function(b){return b.A.L().experiments.O9("html5_ssdai_enable_media_end_cue_range")},iY= function(b){return b.A.L().N("substitute_ad_cpn_macro_in_ssdai")},dT=function(b){return b.A.getVideoData({playerType:1}).getPlayerResponse()?.playerConfig?.daiConfig?.enableServerStitchedDai||!1},sF=function(b){return b.A.L().experiments.O9("enable_progress_commands_el_dai")},t8P=function(b){b=b.A.getVideoData({playerType:1}); return!!b&&b.N("html5_preload_first_vod_video_ad")&&!b.isDaiEnabled()&&!b.isLivePlayback},Y4=function(b){return b.A.L().experiments.O9("enable_desktop_player_underlay")},YOT=function(b){return b.A.L().N("html5_enable_vod_slar_with_notify_pacf")},St=function(b){return b.A.L().experiments.O9("enable_ads_control_flow_deterministic_id_generation")},yU=function(b){return b.A.L().experiments.O9("html5_cuepoint_identifier_logging")},L1T=function(b){return b.A.L().N("html5_recognize_predict_start_cue_point")}, wR2=function(b){return b.A.L().experiments.O9("should_ignore_cuepoints_during_lifa_preroll")},F13=function(b){switch(b){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}},U$=function(){if(zQ===null){zQ=new o1H; kg(B9).Y="b";var b=kg(B9);let R=m7(b)=="h"||m7(b)=="b",h=!(bl(),!1);R&&h&&(b.SY=!0,b.JX=new DmK)}return zQ},bsw=function(b,R,h){b.G[R]=h},RBT=function(b){switch(b){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}},ge=function(b,R,h){const K=h.eH,I=h.Fx,N=h.listener; h=h.aM;if(b.G.has(R))u2("Unexpected registration of layout in LidarApi");else{if(h){if(b.Y.has(h))return;b.Y.add(h)}b.G.set(R,N);aT(bl().gi,"fmd",1);yF(kg(B9),K);bsw(U$(),R,{ID:()=>{if(!I)return{};const p=b.A.getPresentingPlayerType(!0);return b.A.getVideoData({playerType:p})?.isAd()?{currentTime:b.BY.get().getCurrentTimeSec(p,!1,void 0),duration:I,isPlaying:GQ(b.BY.get(),p).isPlaying(),isVpaid:!1,isYouTube:!0,volume:b.BY.get().isMuted()?0:b.BY.get().getVolume()/100}:{}}})}},WH=function(b,R){b.G.has(R)? (b.G.delete(R),delete U$().G[R]):u2("Unexpected unregistration of layout in LidarApi")},hBq=function(b,R){if(b.A.isLifaAdPlaying()){var h=b.A.tb(!0,!0); b.D(R,h.width*.5*1.1,h.height*.25*1.1,h.width*.5*.9,h.height*.5*.9)}},$Gx=function(b,R){const h={}; KZ3(b,h,R);sbK(h);h.LACT=S1(()=>i$().toString()); h.VIS=S1(()=>b.getVisibilityState().toString()); h.SDKV="h.3.0";h.VOL=S1(()=>b.isMuted()?"0":Math.round(b.getVolume()).toString()); h.VED="";return h},IjD=function(b,R){const h={}; if(R||!b||!b.kind)return h;if(b.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||b.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!b.adTimeOffset||!b.adTimeOffset.offsetStartMilliseconds)return g.X(Error("malformed AdPlacementConfig")),h;h.MIDROLL_POS=S1(eO(Math.round(gu(b.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else h.MIDROLL_POS=S1(eO("0"));return h},S1=function(b){return{toString(){return b()}}},N_P=function(b,R,h){if(!h||g.RT(h))return b; const K=Object.assign({},b),I=R?encodeURIComponent:N=>N; b=(N,p)=>{(p=h[p])&&(K[N]=I(p))}; b("DV_VIEWABILITY","doubleVerifyViewability");b("IAS_VIEWABILITY","integralAdsViewability");b("MOAT_INIT","moatInit");b("MOAT_VIEWABILITY","moatViewability");b=(N,p)=>{(p=h[p])&&(K[N]=p)}; b("GOOGLE_VIEWABILITY","googleViewability");b("VIEWABILITY","viewability");return K},KZ3=function(b,R,h){R.CPN=S1(()=>{var K; (K=b.getVideoData({playerType:1}))?K=K.clientPlaybackNonce:(g.kJ(Error("Video data is null.")),K=null);return K}); R.AD_MT=S1(()=>{if(h!=null)var K=h;else b.L().N("enable_h5_shorts_ad_fill_ad_mt_macro")||b.L().N("enable_desktop_discovery_pings_ad_mt_macro")||pt(b.L())?(K=b.getPresentingPlayerType(!0),K=b.getVideoData({playerType:K})?.isAd()?b.getCurrentTime({playerType:K,eh:!1}):0):K=b.getCurrentTime({playerType:2,eh:!1});return p1s(K)}); R.MT=S1(()=>p1s(b.getCurrentTime({playerType:1,eh:!1}))); R.P_H=S1(()=>b.tX().P$().height.toString()); R.P_W=S1(()=>b.tX().P$().width.toString()); R.PV_H=S1(()=>b.tX().getVideoContentRect().height.toString()); R.PV_W=S1(()=>b.tX().getVideoContentRect().width.toString())},p1s=function(b){return Math.round(Math.max(0,b*1E3)).toString()},sbK=function(b){b.CONN=S1(eO("0")); b.WT=S1(()=>Date.now().toString())},ljP=async function(b,R,h,K,I){const N=!!R.scrubReferrer; h=g.eB(R.baseUrl,N_P(h,N,K));K={};if(R.headers){var p=b.V();p=p.G?await p.G:p.getValue();for(const l of R.headers)switch(l.headerType){case "VISITOR_ID":g.x("VISITOR_DATA")&&(K["X-Goog-Visitor-Id"]=g.x("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.x("EOM_VISITOR_DATA")&&(K["X-Goog-EOM-Visitor-Id"]=g.x("EOM_VISITOR_DATA"));break;case "USER_AUTH":p&&(K.Authorization=`Bearer ${p}`);break;case "PLUS_PAGE_ID":(R=b.S())&&(K["X-Goog-PageId"]=R);break;case "AUTH_USER":R=b.G();!p&&R&&(K["X-Goog-AuthUser"]= R);break;case "DATASYNC_ID":b.X()?.O9("enable_datasync_id_header_in_web_vss_pings")&&(R=b.Y(),Wg(h)&&g.x("LOGGED_IN")&&R&&(K["X-YouTube-DataSync-Id"]=R))}"X-Goog-EOM-Visitor-Id"in K&&"X-Goog-Visitor-Id"in K&&delete K["X-Goog-Visitor-Id"]}g.Co(h,void 0,N,Object.keys(K).length!==0?K:void 0,"",!0,I)},cz=function(b,R,h){typeof h==="string"?b.A.getVideoData({playerType:1}).yJ(R,h):b.A.getVideoData({playerType:1}).YZ(R,h)},W8=function(b,R){b.A.sendVideoStatsEngageEvent(R,void 0,2)},tMP=function(b,R,h,K= [],I,N){const p=ip(b.Y.get(),R); if(p){var l=b.Dl.get().zf(R,h),a=km(b,n7(p),p,I,N);K.forEach((v,B)=>{v.baseUrl&&(b.X.send(v.baseUrl,a,l,v.attributionSrcMode),v.serializedAdPingMetadata&&b.cH.G("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,p,new aj2(v,B),void 0,void 0,p.adLayoutLoggingData))})}else u2("Trying to track from an unknown layout.",void 0,void 0,{layoutId:R, trackingType:h})},E$=function(b,R){b.G.has(R.XE())?u2("Trying to register an existing AdErrorInfoSupplier."):b.G.set(R.XE(),R)},TQ=function(b,R){b.G.delete(R.XE())||u2("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")},Pz=function(b,R){g.yp("adsClientStateChange",R)},vGx=function(b,R,h,K,I){const N=ip(b.Y.get(),h); N?(h=km(b,n7(N),N,void 0,void 0,K),R.hasOwnProperty("baseUrl")?b.V.send(R,h):b.X.send(R,h,{},I)):u2("Trying to ping from an unknown layout",void 0,void 0,{layoutId:h})},km=function(b,R,h,K,I,N){const p=h?B_K(b):{},l=h?HsP(b,h.layoutId):{},a=qGx(b),v=I??od(b.s9.get(),2)?.clientPlaybackNonce; b={...$Gx(b.A,K),...IjD(R.adPlacementConfig,h?.renderingContent!==void 0),...l,...p,...a,FINAL:S1(()=>"1"), AD_CPN:S1(()=>v||"")}; h?.renderingContent!==void 0||(b.SLOT_POS=S1(()=>(R.Cl||0).toString())); h={};N=Object.assign({},b,N);for(const B of Object.values(dGw))b=N[B],b!=null&&b.toString()!=null&&(h[B]=b.toString());return h},n7=function(b){const R=b.clientMetadata.rp("metadata_type_ad_placement_config"); b=b.clientMetadata.rp("metadata_type_media_sub_layout_index");return{adPlacementConfig:R,Cl:b}},B_K=function(b){const R={},h=b.lS?.V3(); h!=null&&(R.SURVEY_ELAPSED_MS=S1(()=>Math.round(h*1E3).toString())); R.SURVEY_LOCAL_TIME_EPOCH_S=S1(()=>Math.round(Date.now()/1E3).toString()); return R},HsP=function(b,R){b=b.G.get(R); return b?(b=b.W5())?{YT_ERROR_CODE:b.RN.toString(),ERRORCODE:b.Bs.toString(),ERROR_MSG:b.errorMessage}:{}:{}},qGx=function(b){const R={},h=b.A.getVideoData({playerType:1}); R.ASR=S1(()=>h?.DF??null); R.EI=S1(()=>h?.eventId??null); return R},od=function(b,R){const h=b.A.getVideoData({playerType:R}); return h?b.mI(h,R||b.A.getPresentingPlayerType(!0)):null},Jp=function(b,R,h){const K=b.mI(R,h); b.Sz=K;b.listeners.forEach(I=>{I.aI(K)})},fjP=function(b,R){b.Hn=b.Hn.filter(h=>h!==R)},kP=function(b,R){g.Nv(b.A.getRootNode(),R)},YP=function(b,R){g.lI(b.A.getRootNode(),R)},GQ=function(b,R){return b.A.getPlayerStateObject(R)},e1=function(b){b.A.cueVideoByPlayerVars({videoId:"empty_video"},2)},y6e=function(b,R){const h=b.A.L(); g.rv(h)||h.controlsType!=="3"||b.A.tX().RE(R)},O$=function(b,R,h){return b.getCurrentTimeSec(R,h)},QD=function(b,R){R=b.s9.get().ZF.get(R)??null; if(R===null)return u2("Expected ad video start time on playback timeline"),0;b=b.A.getCurrentTime({playerType:2,eh:!0});return bI.adPlacementRenderer).filter(I=>!(!I||!I.renderer)); if(!K.length&&!h.length)return{n2:[],adSlots:h,Jj:!1,ssdaiAdsConfig:void 0};if(R.end>0){const I=R.end.toString();K.forEach(N=>{(N=N.config&&N.config.adPlacementConfig)&&N.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&N.adTimeOffset&&N.adTimeOffset.offsetEndMilliseconds==="-1"&&N.adTimeOffset.offsetEndMilliseconds!==I&&(N.adTimeOffset.offsetEndMilliseconds=I)}); h.map(N=>g.Z(N,G5)).forEach(N=>{(N=N?.slotEntryTrigger?.mediaTimeRangeTrigger)&&N.offsetEndMilliseconds==="-1"&&(N.offsetEndMilliseconds=I)})}return{n2:K, adSlots:h,Jj:!1,ssdaiAdsConfig:b.ssdaiAdsConfig}},ise=function(b,R,h){R=g.an(R,K=>new A6H(K,h,K.id)); g.rw(b.A,"onAdUxUpdate",R)},xP=function(b,R){for(const h of b.listeners)R(h)},zBw=function(b,R){var h=b.startSecs+b.oY; h=h<=0?null:h;if(h===null)return null;switch(b.event){case "start":case "continue":case "stop":break;case "predictStart":if(R)break;return null;default:return null}R=Math.max(b.startSecs,0);return{l0:new EB(R,h),nS:new nC(R,h-R,b.context,b.identifier,b.event,b.G)}},U9q=function(b,R,h){const K=g.Yz(b.G,R); if(K>=0)return R;R=-K-1;return R>=b.G.length||b.G[R]>h?null:b.G[R]},UGK=function(b,R){b.HB.push(R); let h=!1;for(const K of b.listeners)h=K.rV(R)||h;b.V=h;yU(b.VX.get())&&cz(b.aH.get(),"onci",`cpi.${R.identifier};cpe.${R.event};cps.${R.startSecs};cbi.${h}`)},gGK=function(b,R){Pz(b.aH.get(),{cuepointTrigger:{event:Gxw(R.event), cuepointId:R.identifier,totalCueDurationMs:R.oY*1E3,playheadTimeMs:R.G,cueStartTimeMs:R.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:b.A.getVideoData({playerType:1}).clientPlaybackNonce}})},Gxw=function(b){switch(b){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";case "prefetch":return"CUEPOINT_EVENT_PREFETCH";default:return Rg(b,"Unexpected cuepoint event")}},WZ2=function(b){switch(b){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:Rg(b,"unknown transitionReason")}},YGB=function(b,R,h,K,I){try{{const p=R.L(); if(g.lv(p))var N=new SGx(b,R,h,K,I);else if(g.BG(p))N=new nGq(b,R,h,K,I);else if(hn(p))N=new EGK(b,R,h,K,I);else if(g.LW(p))N=new T_K(b,R,h,K,I);else if(g.Mz(p))N=new J6K(b,R,h,K,I);else throw new TypeError("Unknown web interface");}return N}catch{return K=R.L(),u2("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:K.G.cplatform,interface:K.G.c,WHe:K.G.cver,fQ5:K.G.ctheme,OT6:K.G.cplayer,ZhR:K.playerStyle}),new kxP(b,R,h,I)}},mi=function(b){return b.G.ya},eBw=function(b){b= b.L(); return Rd(b)&&!g.bU(b)&&b.playerStyle==="desktop-polymer"},OsD=function(b){const R=g.p0("html5-video-player"); R&&g.k(R,"ytp-ad-display-override",b)},Qb3=function(b){const R=new g.PH({B:"div", Z:"ytp-ad-text-overlay",W:[{B:"div",Z:"ytp-ad-overlay-ad-info-button-container"},{B:"div",Z:"ytp-ad-overlay-close-container",W:[{B:"button",Z:"ytp-ad-overlay-close-button",W:[Tr(Zv)]}]},{B:"div",Z:"ytp-ad-overlay-title",IH:"{{title}}"},{B:"div",Z:"ytp-ad-overlay-desc",IH:"{{description}}"},{B:"div",F5:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],IH:"{{displayUrl}}"}]});b.j(R.yX("ytp-ad-overlay-title"),"click",h=>{cH(b,R.element,h)}); b.j(R.yX("ytp-ad-overlay-link"),"click",h=>{cH(b,R.element,h)}); b.j(R.yX("ytp-ad-overlay-close-container"),"click",b.vY);R.hide();return R},xGH=function(b){const R=new g.PH({B:"div", F5:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],W:[{B:"div",Z:"ytp-ad-overlay-ad-info-button-container"},{B:"div",Z:"ytp-ad-overlay-close-container",W:[{B:"button",Z:"ytp-ad-overlay-close-button",W:[Tr(Zv)]}]},{B:"div",Z:"ytp-ad-overlay-text-image",W:[{B:"img",O:{src:"{{imageUrl}}"}}]},{B:"div",Z:"ytp-ad-overlay-title",IH:"{{title}}"},{B:"div",Z:"ytp-ad-overlay-desc",IH:"{{description}}"},{B:"div",F5:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],IH:"{{displayUrl}}"}]});b.j(R.yX("ytp-ad-overlay-title"), "click",h=>{cH(b,R.element,h)}); b.j(R.yX("ytp-ad-overlay-link"),"click",h=>{cH(b,R.element,h)}); b.j(R.yX("ytp-ad-overlay-close-container"),"click",b.vY);b.j(R.yX("ytp-ad-overlay-text-image"),"click",b.FM);R.hide();return R},mGe=function(b){const R=new g.PH({B:"div", Z:"ytp-ad-image-overlay",W:[{B:"div",Z:"ytp-ad-overlay-ad-info-button-container"},{B:"div",Z:"ytp-ad-overlay-close-container",W:[{B:"button",Z:"ytp-ad-overlay-close-button",W:[Tr(Zv)]}]},{B:"div",Z:"ytp-ad-overlay-image",W:[{B:"img",O:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});b.j(R.yX("ytp-ad-overlay-image"),"click",h=>{cH(b,R.element,h)}); b.j(R.yX("ytp-ad-overlay-close-container"),"click",b.vY);R.hide();return R},cH=function(b,R,h){const K=g.$T(b.macros),I=g.lu(R); K.AW={toString:()=>I.width.toString()}; K.AH={toString:()=>I.height.toString()}; const N=g.NB(h,R).floor();K.I_X={toString:()=>N.x.toString()}; K.NX={toString:()=>N.x.toString()}; K.I_Y={toString:()=>N.y.toString()}; K.NY={toString:()=>N.y.toString()}; K.NM={toString:()=>b.D.toString()}; for(const p of b.J)b.layoutId?N1(b.eY,p,b.layoutId,K):g.X(Error("Missing layoutId for invideo_overlay_ad."));b.api.pauseVideo()},PEw=function(b,R){b=b.api.getRootNode(); g.k(b,"ytp-ad-overlay-open",R);g.k(b,"ytp-ad-overlay-closed",!R)},Xc=function(b,R){if(R){var h=g.Z(R,nA)||null; h==null?g.X(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(R=g.p0("video-ads ytp-ad-module")||null,R==null?g.X(Error("Could not locate the root ads container element to attach the ad info dialog.")):(b.C=new g.PH({B:"div",Z:"ytp-ad-overlay-ad-info-dialog-container"}),g.n(b,b.C),b.C.AX(R),R=new uY(b.api,b.layoutId,b.interactionLoggingClientData,b.eY,b.C.element,!1),g.n(b,R),R.init(I1("ad-info-hover-text-button"),h,b.macros),b.S?(R.AX(b.S,0),R.subscribe("f",b.RH,b),R.subscribe("e", b.Jp,b),b.j(b.S,"click",b.Sn),b.j(g.p0("ytp-ad-button",R.element),"click",()=>{if(g.Z(g.Z(h.button,N6)?.serviceEndpoint,TpT))b.Zr=b.api.getPlayerState(1)===2,b.api.pauseVideo();else b.api.onAdUxClicked("ad-info-hover-text-button",b.layoutId)}),b.KR=R):g.X(Error("Ad info button container within overlay ad was not present."))))}else g.kJ(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))},ZsK=function(b,R){if(VD(b,C7)||b.api.isMinimized())return!1; const h=vY(R.title),K=vY(R.description);if(g.fj(h)||g.fj(K))return!1;b.createServerVe(b.X.element,R.trackingParams||null);b.X.updateValue("title",vY(R.title));b.X.updateValue("description",vY(R.description));b.X.updateValue("displayUrl",vY(R.displayUrl));R.navigationEndpoint&&g.nr(b.J,R.navigationEndpoint);b.X.show();b.T6.start();b.logVisibility(b.X.element,!0);b.j(b.X.element,"mouseover",()=>{b.D++}); return!0},c6e=function(b,R){if(VD(b,C7)||b.api.isMinimized())return!1; const h=vY(R.title),K=vY(R.description);if(g.fj(h)||g.fj(K))return!1;b.createServerVe(b.Y.element,R.trackingParams||null);b.Y.updateValue("title",vY(R.title));b.Y.updateValue("description",vY(R.description));b.Y.updateValue("displayUrl",vY(R.displayUrl));b.Y.updateValue("imageUrl",m33(R.image));R.navigationEndpoint&&g.nr(b.J,R.navigationEndpoint);b.xZ=R.imageNavigationEndpoint||null;b.Y.show();b.T6.start();b.logVisibility(b.Y.element,!0);b.j(b.Y.element,"mouseover",()=>{b.D++}); return!0},uf2=function(b,R){if(b.api.isMinimized())return!1; const h=P42(R.image);let K=h;h.width{b.D++;b.api.Y2("invideo-overlay",b.layoutId)}); b.j(b.G.element,"mouseout",()=>{b.api.Gt("invideo-overlay",b.layoutId)}); return!0},X1s=function(b){return b.V&&b.V.closeButton&&b.V.closeButton.buttonRenderer&&(b=b.V.closeButton.buttonRenderer,b.serviceEndpoint)?[b.serviceEndpoint]:[]},VD=function(b,R){var h=b.api.tX().P$(); const K=b.api.tb(!0,!1);return(R=wV(h,h.height-(K.height+K.top),R))?(b.NJ&&R&&(h=g.$T(b.macros),h.ERRORCODE=R.Bs.toString(),h.ERROR_MSG=R.errorMessage,b.layoutId?N1(b.eY,b.NJ,b.layoutId,h):g.X(Error("Missing layoutId for invideo_overlay_ad."))),!0):!1},VFq=function(b,R){b=b.api.getRootNode(); g.k(b,"ytp-ad-overlay-open",R);g.k(b,"ytp-ad-overlay-closed",!R)},CE2=function(b){const R=g.p0("html5-video-player"); R&&g.k(R,"ytp-ad-display-override",b)},re=function(b,R,h=!1){b.G&&(R?b.G.hide():b.G.show(),h&&b.G instanceof Me&&!b.G.J&&uax(b.G,!1)); b.Y&&(R?b.Y.show():b.Y.hide())},MFT=function(b){function R(h){return{toString:()=>h()}} b.macros.SURVEY_LOCAL_TIME_EPOCH_S=R(()=>{const h=new Date;return(Math.round(h.valueOf()/1E3)+-1*h.getTimezoneOffset()*60).toString()}); b.macros.SURVEY_ELAPSED_MS=R(()=>(Date.now()-b.V).toString())},r63=function(b,R){R=g.BY(R); g.W_(b.questionText,R);b.J&&b.questionText.setAttribute("id",I1("survey-question-text"))},w1q=function(b,R,h,K){K=new LZT(b.api,b.layoutId,b.interactionLoggingClientData,b.eY,K,b.T6); K.AX(b.answers);K.init(I1("survey-answer"),R,h);b.J&&(R=b.questionText.getAttribute("id"),R!=null&&(K.G!==null?K.G.Y.setAttribute("aria-describedby",R):K.answer.getElementsByTagName("button")[0].setAttribute("aria-describedby",R)));b.Y.push(K)}; var br2=function(b){return B3T[f[6]](this,1,b)}; DGq=function(b,R){if(R){var h=R.background;h&&g.Z(h,FZx)&&(h=(h=g.Z(h,FZx).image)&&ev(h)||"",g.fj(h)?g.kJ(Error("Found ThumbnailDetails without valid image URL")):g.MN(b.NJ,"backgroundImage",`url(${h})`));if(R.durationMilliseconds==null||R.durationMilliseconds===void 0||R.durationMilliseconds===0)b=Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+`${JSON.stringify(R)}`),g.X(b);else{b.V=g.wK();b.G=new L7(b.api,R.durationMilliseconds);g.n(b,b.G);if(b.G&&R.instreamAdPlayerOverlay&& g.Z(R.instreamAdPlayerOverlay,S7))try{var K=new oG3(b.api,b.layoutId,b.interactionLoggingClientData,b.eY,b.G);K.AX(b.playerOverlay);K.init(I1("survey-player-overlay"),g.Z(R.instreamAdPlayerOverlay,S7),b.macros);b.X=K;g.n(b,K);b.D()}catch(I){K=Error("ISAPOR had an error when initializing. Error: "+`${I} SurveyAdQuestionCommon: ${JSON.stringify(R)}`),g.X(K)}else K=Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+`${JSON.stringify(R)}`),g.X(K);b.G&&R.durationMilliseconds&&R.durationMilliseconds> 0?(R=new we(b.api,b.G),R.AX(b.playerOverlay),g.n(b,R)):(b=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+`${JSON.stringify(R)}`),g.X(b))}}else g.X(Error("addCommonComponents() needs to be called before starting countdown."))}; Raq=function(b,R,h){b.noneOfTheAbove=new b7s(b.api,b.layoutId,b.interactionLoggingClientData,b.eY);b.noneOfTheAbove.AX(b.answers);b.noneOfTheAbove.init(I1("survey-none-of-the-above"),R,h)}; ha3=function(b){b.Y.forEach(R=>{R.G.toggleButton(!1)}); re(b.X,Fc(b),!0)}; Fc=function(b){return b.Y.some(R=>R.G.isToggled())||b.noneOfTheAbove.button.isToggled()}; $ex=function(b,R){const h=b.Y[R];b.X?.dispose();g.Z(h,Wm)?KiH(b,g.Z(h,Wm),b.macros):g.Z(h,g1)&&slB(b,g.Z(h,g1),b.macros);b.G=R}; KiH=function(b,R,h){const K=new IvP(b.api,b.layoutId,b.interactionLoggingClientData,b.eY,b.V.bind(b));K.AX(b.S);K.init(I1("survey-question-single-select"),R,h);b.api.L().N("supports_multi_step_on_desktop")?b.X=K:b.questions.push(K);g.n(b,K)}; slB=function(b,R,h){const K=new NeB(b.api,b.layoutId,b.interactionLoggingClientData,b.eY,b.V.bind(b));K.AX(b.S);K.init(I1("survey-question-multi-select"),R,h);b.api.L().N("supports_multi_step_on_desktop")?b.X=K:b.questions.push(K);g.n(b,K)}; pHK=function(b,R){R=R&&ev(R)||"";if(g.fj(R))g.kJ(Error("Found ThumbnailDetails without valid image URL"));else{var h=b.style;b=b.style.cssText;const K=document.implementation.createHTMLDocument("").createElement("DIV");K.style.cssText=b;b=ZKe(K.style);h.cssText=[b,`background-image:url("${R}");`].join("")}}; lv3=function(b){const R=g.p0("html5-video-player");R&&g.k(R,"ytp-ad-display-override",b)}; ave=function(b){switch(b.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}}; vPH=function(b){const R=g.p0("html5-video-player");R&&g.k(R,"ytp-ad-display-override",b)}; Beq=function(b){const R=g.p0("html5-video-player");R&&g.k(R,"ytp-ad-display-override",b)}; H7H=function(b){if(!b.adAvatar||!g.Z(b.adAvatar,ol))return g.X(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!b.headline)return g.X(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!b.adBadge||!g.Z(b.adBadge,Dv))return g.X(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!b.adButton||!g.Z(b.adButton,bF))return g.X(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!b.adInfoRenderer|| !g.Z(b.adInfoRenderer,nA))return g.X(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;b=b.durationMilliseconds||0;return typeof b!=="number"||b<=0?(g.X(Error("durationMilliseconds was specified incorrectly in "+`VideoInterstitialButtonedCenteredLayoutRenderer with a value of: ${b}`)),!1):!0}; GQT=function(b,R,h,K,I={},N=!1,p=!1){switch(b){case "invideo-overlay":b=new q$B(R,K,I,h);break;case "player-overlay":b=new deT(R,K,I,h,new RQ(R),p);break;case "player-overlay-layout":b=new fvD(R,K,I,h,new RQ(R));break;case "survey":b=new ypT(R,K,I,h);break;case "ad-action-interstitial":b=new t1x(R,K,I,h,N,p);break;case "video-interstitial-buttoned-centered":b=new jlw(R,K,I,h);break;case "survey-interstitial":b=new ApH(R,K,I,h);break;case "ad-message":b=new i7K(R,K,I,h,new RQ(R,1));break;case "player-underlay":b= new zaD(R,K,I,h);break;case "display-underlay-text-grid-cards":b=new UeH(R,K,I,h,new RQ(R));break;default:return null}return b}; gPT=function(b,R){b=g.Kj(b.components,R.id,null);b==null&&g.kJ(Error("Component not found for element id: "+R.id));return b||null}; h8=function(b,R){R===b.EE&&(b.EE=void 0)}; qbK=function(b,R,h=[],K="",I="",N,p){const l=mi(b.G).xk,a=b.player.getVideoData({playerType:1});a&&a.getPlayerResponse();a&&a.AO();h=Wie(R,h,l,mi(b.G).iY);jAq(mi(b.G).Mb,K,h.kU,h.Em,R,I,N,p)}; S$P=function(b){var R=mi(b.G).XH,h=R.V().Se("SLOT_TYPE_PLAYER_BYTES",1);R=od(R.s9.get(),1).clientPlaybackNonce;let K=!1;for(const I of h)h=I.slotType==="SLOT_TYPE_PLAYER_BYTES"&&I.slotEntryTrigger instanceof O1?I.slotEntryTrigger.iy:void 0,h&&h===R&&(K&&u2("More than 1 preroll playerBytes slot detected",I),K=!0);K||mi(b.G).jI.cn()}; nPx=function(b){b=mi(b.G).Im;let R="";for(const h of b.Wg.keys()){if(h.slotType==="SLOT_TYPE_PLAYER_BYTES"&&h.jY==="core")return!0;R+=h.slotType+" "}Math.random()<.01&&u2("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:R});return!1}; KH=function(b){b=mi(b.G).Im;for(const R of b.Wg.values())if(R.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; EPK=function(b){b.created!==b.loaded&&u2("Created and loaded are out of sync")}; Wie=function(b,R,h,K){R={kU:[],Em:R};for(const N of b){if(!N)continue;if(N.renderer==null)continue;b=N.renderer;if(!h.A.L().N("html5_enable_vod_lasr_with_notify_pacf")){var I=K;g.Z(b.sandwichedLinearAdRenderer?.adVideoStart,Bq)?(I=$r2(g.Z(b.sandwichedLinearAdRenderer?.adVideoStart,Bq),I),g.Zq(b.sandwichedLinearAdRenderer.adVideoStart,Bq,I)):g.Z(b.linearAdSequenceRenderer?.adStart,Bq)&&(I=$r2(g.Z(b.linearAdSequenceRenderer?.adStart,Bq),I),g.Zq(b.linearAdSequenceRenderer.adStart,Bq,I))}R.kU.push(N)}return R}; g.sr=function(b){if(typeof DOMParser!="undefined")return yQ(new DOMParser,$_(b),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.TeT=function(b){const R=b.L();return R.pz&&!R.X&&g.Fo(R)?b.isEmbedsShortsMode()?(b=b.tb(),Math.min(b.width,b.height)>=315):!b.DP():!1}; Jpx=function(b){for(let R=0;R<16;++R){const h=new g.w({B:"a",Z:"ytp-suggestion-link",O:{href:"{{link}}",target:b.api.L().U,"aria-label":"{{aria_label}}"},W:[{B:"div",Z:"ytp-suggestion-image"},{B:"div",Z:"ytp-suggestion-overlay",O:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},W:[{B:"div",Z:"ytp-suggestion-title",IH:"{{title}}"},{B:"div",Z:"ytp-suggestion-author",IH:"{{author_and_views}}"},{B:"div",O:{"data-is-live":"{{is_live}}"},Z:"ytp-suggestion-duration",IH:"{{duration}}"}]}]}); g.n(b,h);const K=h.yX("ytp-suggestion-link");g.MN(K,"transitionDelay",`${R/20}s`);b.X.j(K,"click",I=>{var N=R;if(b.Y){var p=b.suggestionData[N],l=p.sessionData;b.S&&b.api.N("web_player_log_click_before_generating_ve_conversion_params")?(b.api.logClick(b.G[N].element),N=p.Ba(),p={},g.Hr(b.api,p),N=g.z9(N,p),g.Tq(N,b.api,I)):g.Ez(I,b.api,b.S,l||void 0)&&b.api.BZ(p.videoId,l,p.playlistId)}else I.preventDefault(),document.activeElement.blur()}); h.AX(b.suggestions.element);b.G.push(h);b.api.createServerVe(h.element,h)}}; kQ3=function(b){if(b.api.L().N("web_player_log_click_before_generating_ve_conversion_params")){var R=Math.floor(-b.scrollPosition/(b.V+8));const h=Math.min(R+b.columns,b.suggestionData.length)-1;for(;R<=h;R++)b.api.logVisibility(b.G[R].element,!0)}}; g.$t=function(b){var R=b.api.tU()?32:16;R=b.D/2+R;b.next.element.style.bottom=`${R}px`;b.previous.element.style.bottom=`${R}px`;R=b.scrollPosition;const h=b.containerWidth-b.suggestionData.length*(b.V+8);g.k(b.element,"ytp-scroll-min",R>=0);g.k(b.element,"ytp-scroll-max",R<=h)}; Y$K=function(b){return uU[f[6]](this,48,b)}; O7x=function(b){var R=b.suggestionData.length;for(let N=0;N>>0);$sK=0;g.Dx(In,Error);In.prototype.name="CustomError";var hx;var Ql3={NONE:0,vU:1},xeK={Sc:0,rXH:1,NpX:2,HRp:3},IQ={Pw:"a",Xi:"d",VIDEO:"v"};var mex=class{constructor(){this.FH=0;this.G=!1;this.Y=-1;this.L2=!1;this.rh=0}isVisible(){return this.L2?this.FH>=.3:this.FH>=.5}};var N_={w5:0,zA:1},PYx={NONE:0,oJ:1,jw:2};var N$="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");var pH=class{constructor(){this.Y=null;this.G=!1}getValue(){return this.Y}},fxP=class extends pH{constructor(b){super();this.V=b}X(b){this.Y===null&&g.FH(this.V,b)&&(this.Y=b)}},Z7x=class extends pH{X(b){this.Y===null&&typeof b==="number"&&(this.Y=b)}},yDw=class extends pH{X(b){this.Y===null&&typeof b==="string"&&(this.Y=b)}};var cpw=class{constructor(){this.G={};this.Y=!0;this.X={}}disable(){this.Y=!1}enable(){this.Y=!0}isEnabled(){return this.Y}reset(){this.G={};this.Y=!0;this.X={}}};var ucK=b=>{ls(b,"od",Ql3);ls(b,"opac",N_).G=!0;ls(b,"sbeos",N_).G=!0;ls(b,"prf",N_).G=!0;ls(b,"mwt",N_).G=!0;ls(b,"iogeo",N_)};var rD=document,Jx=window;var XH3=O3(1,!0),Ue=O3(610401301,!1);O3(899588437,!1);O3(772657768,!0);O3(513659523,!1);O3(568333945,!0);var Vk3=O3(1331761403,!1);O3(651175828,!1);O3(722764542,!1);O3(748402145,!1);O3(748402146,!1);var A9=O3(748402147,!0),lF=O3(824648567,!0),xc=O3(824656860,XH3);O3(333098724,!1);O3(861377723,!1);O3(861377724,!1);O3(2147483644,!1);O3(2147483645,!1);O3(2147483646,XH3);O3(2147483647,!0);var GK=!!g.YB("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var kTT=/&/g,Y3K=//g,OwK=/"/g,QKT=/'/g,xsP=/\x00/g,JDx=/[\x00&<>"']/;var gs,V1x=g.JD.navigator;gs=V1x?V1x.userAgentData||null:null;var Pl=globalThis.trustedTypes,ZI;var us=class{constructor(b){this.G=b}toString(){return this.G+""}};var Cj=class{constructor(b){this.G=b}toString(){return this.G}},gBK=new Cj("about:invalid#zClosurez");var rs=class{constructor(b){this.Jh=b}},CYD=Lj("tel"),M1T=Lj("sms"),ws=[Lj("data"),Lj("http"),Lj("https"),Lj("mailto"),Lj("ftp"),new rs(b=>/^[^:]*([/?#]|$)/.test(b))],WqT=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var h1=class{constructor(b){this.G=b}toString(){return this.G+""}};var NE=class{constructor(b){this.G=b}toString(){return this.G+""}};var BE=class{constructor(b){this.G=b}toString(){return this.G}};var du={};xw[" "]=function(){};var L0,mf,f7T,rpw,Lix,wHK,eq,j4,aQ;g.HG=TK();g.yI=J_();g.po=SL("Edge");g.qH=g.po||g.yI;L0=SL("Gecko")&&!(t_(g.zK(),"WebKit")&&!SL("Edge"))&&!(SL("Trident")||SL("MSIE"))&&!SL("Edge");g.qN=t_(g.zK(),"WebKit")&&!SL("Edge");mf=O5();f7T=QQ();g.gj=kw();rpw=Yw();Lix=SL("iPad");wHK=SL("iPod");eq=el();j4=t_(g.zK(),"KaiOS"); a:{let b="";const R=function(){const h=g.zK();if(L0)return/rv:([^\);]+)(\)|;)/.exec(h);if(g.po)return/Edge\/([\d\.]+)/.exec(h);if(g.yI)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(h);if(g.qN)return/WebKit\/(\S+)/.exec(h);if(g.HG)return/(?:Version)[ \/]?(\S+)/.exec(h)}(); R&&(b=R?R[1]:"");if(g.yI){var v3;const h=g.JD.document;v3=h?h.documentMode:void 0;if(v3!=null&&v3>parseFloat(b)){aQ=String(v3);break a}}aQ=b}var PE=aQ,ZwT={};var zJ,U7;g.yr=eL();zJ=Yw()||SL("iPod");U7=SL("iPad");g.B3=xT();g.I5=Oe();g.x9=QX()&&!el();var lIT=!g.yI&&!QX();g.W=g.CP.prototype;g.W.clone=function(){return new g.CP(this.x,this.y)}; g.W.equals=function(b){return b instanceof g.CP&&ME(this,b)}; g.W.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.W.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.W.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.W.scale=function(b,R){this.x*=b;this.y*=typeof R==="number"?R:b;return this};g.W=g.ru.prototype;g.W.clone=function(){return new g.ru(this.width,this.height)}; g.W.aspectRatio=function(){return this.width/this.height}; g.W.isEmpty=function(){return!wu(this)}; g.W.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.W.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.W.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.W.scale=function(b,R){this.width*=b;this.height*=typeof R==="number"?R:b;return this};var YJ=class{constructor(b,R){this.G=b===eU&&R||""}toString(){return this.G}},eU={};new YJ(eU,"");var og=/^[a-z][a-z\d-]*$/i,VxT="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),Mxq="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),LqK=["action","formaction","href"];var lj={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.W=bj.prototype;g.W.hO=function(b){return sU(this.G,b)}; g.W.getElementsByTagName=function(b,R){return(R||this.G).getElementsByTagName(String(b))}; g.W.yX=function(b){return g.p0(b,this.G)}; g.W.setProperties=aF;g.W.createElement=function(b){return f0(this.G,b)}; g.W.appendChild=g.ij;g.W.append=function(b,R){yg(RF(b),b,arguments,1)}; g.W.canHaveChildren=function(b){if(b.nodeType!=1)return!1;switch(b.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.W.removeNode=g.GF;g.W.getChildren=function(b){return b.children}; g.W.contains=g.gM;g.W.isFocusable=n0;var FiH=class{constructor(){this.G=this.LP=null}};var oPH=class{now(){return 0}Y(){return 0}X(){return 0}G(){return 0}};var DeT=class extends oPH{constructor(){super();if(!ks())throw Error();}now(){return ks()&&Jx.performance.now?Jx.performance.now():super.now()}Y(){return ks()&&Jx.performance.memory?Jx.performance.memory.totalJSHeapSize||0:super.Y()}X(){return ks()&&Jx.performance.memory?Jx.performance.memory.usedJSHeapSize||0:super.X()}G(){return ks()&&Jx.performance.memory?Jx.performance.memory.jsHeapSizeLimit||0:super.G()}};var FcT=Ys("AnimationEnd"),Tx=Ys("TransitionEnd");g.W=P_.prototype;g.W.getHeight=function(){return this.bottom-this.top}; g.W.clone=function(){return new P_(this.top,this.right,this.bottom,this.left)}; g.W.contains=function(b){return this&&b?b instanceof P_?b.left>=this.left&&b.right<=this.right&&b.top>=this.top&&b.bottom<=this.bottom:b.x>=this.left&&b.x<=this.right&&b.y>=this.top&&b.y<=this.bottom:!1}; g.W.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.W.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.W.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.W.scale=function(b,R){R=typeof R==="number"?R:b;this.left*=b;this.right*=b;this.top*=R;this.bottom*=R;return this};g.W=g.Xb.prototype;g.W.clone=function(){return new g.Xb(this.left,this.top,this.width,this.height)}; g.W.contains=function(b){return b instanceof g.CP?b.x>=this.left&&b.x<=this.left+this.width&&b.y>=this.top&&b.y<=this.top+this.height:this.left<=b.left&&this.left+this.width>=b.left+b.width&&this.top<=b.top&&this.top+this.height>=b.top+b.height}; g.W.getSize=function(){return new g.ru(this.width,this.height)}; g.W.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.W.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.W.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.W.scale=function(b,R){R=typeof R==="number"?R:b;this.left*=b;this.width*=b;this.top*=R;this.height*=R;return this};var rM={};var DsH=Qg(()=>{let b=!1;try{const R=Object.defineProperty({},"passive",{get(){b=!0}});g.JD.addEventListener("test",null,R)}catch(R){}return b});var bHD=class{isVisible(){return Ho(rD)===1}};var RnD=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)"),hnx=class{constructor(b,R,h){this.G=b;this.Y=R;this.X=h}},AR=class{constructor(b,R){this.url=b;this.G=!!R;this.depth=null}};var Ri=class{constructor(){this.X="&";this.Y={};this.V=0;this.G=[]}xj(b,R,h){b=b+"//"+R+h;var K=$gK(this)-h.length;if(K<0)return"";this.G.sort((I,N)=>I-N); h=null;R="";for(let I=0;I=a.length){K-=a.length;b+=a;R=this.X;break}h=h==null?N:h}}}K="";h!=null&&(K=`${R}${"trn"}=${h}`);return b+K}};var H3=class{constructor(b,R){this.G=b;this.depth=R}},NxT=()=>{var b=iu();const R=Math.max(b.length-1,0);var h=zY(b);b=h.G;var K=h.Y;const I=h.X,N=[];h=(l,a)=>l==null?a:l; I&&N.push(new H3([I.url,I.G?2:0],h(I.depth,1)));K&&K!=I&&N.push(new H3([K.url,2],0));b.url&&b!=I&&N.push(new H3([b.url,0],h(b.depth,R)));const p=g.an(N,(l,a)=>N.slice(0,N.length-a)); !b.url||(I||K)&&b!=I||(K=/https?:\/\/[^\/]+/.exec(b.url)?.[0]??"")&&p.push([new H3([K,1],h(b.depth,R))]);p.push([]);return g.an(p,l=>I2e(R,l))};var y3K=ST(b=>typeof b==="number"),qK=ST(b=>typeof b==="string"),e$=ST(b=>b!=null&&typeof b==="object"&&typeof b.then==="function"),xrw=ST(b=>typeof b==="function"),R3T=ST(b=>!!b&&(typeof b==="object"||typeof b==="function"));var KUK={Jr:"allow-forms",NT:"allow-modals",r6:"allow-orientation-lock",HS:"allow-pointer-lock",DO:"allow-popups",ZO:"allow-popups-to-escape-sandbox",ox:"allow-presentation",qT:"allow-same-origin",xD:"allow-scripts",z1:"allow-top-navigation",cS:"allow-top-navigation-by-user-activation"},l2H=Qg(()=>snK());var kg=b=>{const R="Ui";if(b.Ui&&b.hasOwnProperty(R))return b.Ui;const h=new b;b.Ui=h;b.hasOwnProperty(R);return h};var HrH=class{constructor(){this.Y=new bHD;this.G=ks()?new DeT:new oPH}setInterval(b,R){return Jx.setInterval(b,R)}clearInterval(b){Jx.clearInterval(b)}setTimeout(b,R){return Jx.setTimeout(b,R)}clearTimeout(b){Jx.clearTimeout(b)}};var Bxx=class{};var VR=!0,XU,Yg;var Po={},CK=null;var MB=/[-_.]/g,dg3={"-":"+",_:"/",".":"="},FB={};var wk=class{isEmpty(){return this.G==null}sizeBytes(){const b=bJ(this);return b?b.length:0}constructor(b,R){Dc(R);this.G=b;if(b!=null&&b.length===0)throw Error("ByteString should be constructed with non-empty values");}},LK;var KI=void 0;var NK=$c("jas",!0),Dz=$c(),NZ=$c(),h3H=$c(),G3K=$c(),PRT=$c(),Txw=$c(),h9=$c("m_m",!0),WUe=$c(),KJT=$c();[...Object.values({kz:1,tK:2,RJ:4,XF:8,xjX:16,CV:32,mD:64,k7:128,sO:256,GyR:512,KE:1024,Qy:2048,Rp:4096,nV:8192})];var Y6,sQ2=[];sQ2[NK]=7;Y6=Object.freeze(sQ2);var K8={},Ih={},s4=Object.freeze({}),Qv={},B$={};var rd=ST(b=>b>=$_2&&b<=IXx),$_2=BigInt(Number.MIN_SAFE_INTEGER),IXx=BigInt(Number.MAX_SAFE_INTEGER);var fI=0,y4=0,ud;var P$=typeof BigInt==="function"?BigInt.asIntN:void 0,irx=typeof BigInt==="function"?BigInt.asUintN:void 0,MK=Number.isSafeInteger,T$=Number.isFinite,CI=Math.trunc,tcD=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var St2={};var aa=class{},NRx={sS:!0};var vN;var f8,yS;var k3K=dd(0),dH={};var iA=class{constructor(b,R,h){this.buffer=b;if(h&&!R)throw Error();this.G=R}};var p32=class{constructor(b,R,h,K){this.Y=null;this.J=!1;this.S=null;this.G=this.X=this.V=0;this.init(b,R,h,K)}init(b,R,h,{mA:K=!1,qN:I=!1}={}){this.mA=K;this.qN=I;b&&(b=za(b,this.qN),this.Y=b.buffer,this.J=b.G,this.S=null,this.V=R||0,this.X=h!==void 0?this.V+h:this.Y.length,this.G=this.V)}free(){this.clear();q_.length<100&&q_.push(this)}clear(){this.Y=null;this.J=!1;this.S=null;this.G=this.X=this.V=0;this.mA=!1}reset(){this.G=this.V}},q_=[];var YtK=class{constructor(b,R,h,K){if(q_.length){const I=q_.pop();I.init(b,R,h,K);b=I}else b=new p32(b,R,h,K);this.G=b;this.V=this.G.G;this.Y=this.X=-1;mQ(this,K)}free(){this.G.clear();this.Y=this.X=-1;x0.length<100&&x0.push(this)}reset(){this.G.reset();this.V=this.G.G;this.Y=this.X=-1}},x0=[];var lXK=class{constructor(){if(Qv!==Qv)throw Error();}};var wH=class{constructor(b,R){this.Y=b>>>0;this.G=R>>>0}},LR,DZ=class{constructor(b,R){this.Y=b>>>0;this.G=R>>>0}},ok;var aXK=class{constructor(){this.G=[]}length(){return this.G.length}end(){const b=this.G;this.G=[];return b}};var Zrq=class{constructor(){this.X=[];this.Y=0;this.G=new aXK}};var qu=vD(),vtK=vD(),dR=vD(),fH=vD(),BRs=vD(),HHT=vD(),yG=vD(),qr3=vD(),t8=vD(),d_2=vD(),fXB=vD();var zd=class{constructor(b,R,h){this.IY=t9(b,R,h,2048)}toJSON(){return dP(this)}MU(b){return JSON.stringify(dP(this,b))}clone(){const b=this.IY,R=b[NK]|0;return zo(this,b,R)?Uu(this,b,!0):new this.constructor(iq(b,R,!1))}};zd.prototype[h9]=K8;zd.prototype.toString=function(){return this.IY.toString()};var HD=class{constructor(b,R,h){this.QE=b;this.Pb=R;b=oK(qu);this.G=!!b&&h===b||!1}},enD=dW(function(b,R,h,K,I){if(b.Y!==2)return!1;uA(b,bA(R,K,h),I);return!0},ye),OrT=dW(function(b,R,h,K,I){if(b.Y!==2)return!1; uA(b,bA(R,K,h),I);return!0},ye),Td=Symbol(),Gd=Symbol(),SY=Symbol(),Yq=Symbol(),nq=Symbol(),te,jY;var y83=dd(0),t_P=PD(function(b,R,h){if(b.Y!==1)return!1;cD(R,h,eZ(b.G));return!0},XN,t8),jQT=PD(function(b,R,h,K){if(b.Y!==1)return!1; Fw(R,h,K,eZ(b.G));return!0},XN,t8),j_=PD(function(b,R,h){if(lF)return b.Y!==0?b=!1:(cD(R,h,Ga(b.G,Uk)),b=!0),b; if(b.Y!==0)return!1;cD(R,h,Ga(b.G,z$));return!0},Ve,yG),A8x=PD(function(b,R,h,K){if(lF)return b.Y!==0?b=!1:(Fw(R,h,K,Ga(b.G,Uk)),b=!0),b; if(b.Y!==0)return!1;Fw(R,h,K,Ga(b.G,z$));return!0},Ve,yG),A8=PD(function(b,R,h){if(b.Y!==0)return!1; cD(R,h,Wv(b.G));return!0},Cq,fH),iHD=PD(function(b,R,h,K){if(b.Y!==0)return!1; Fw(R,h,K,Wv(b.G));return!0},Cq,fH),z3w=PD(function(b,R,h){if(lF)return b.Y!==1?b=!1:(cD(R,h,Y0(b.G)),b=!0),b; if(b.Y!==1)return!1;cD(R,h,k0(b.G));return!0},function(b,R,h){ld(b,h,Fz(R))},qr3),U_T=ZV(function(b,R,h){if(lF)return b.Y!==1&&b.Y!==2?b=!1:(R=C8(R,R[NK]|0,h),b.Y==2?rH(b,Y0,R):R.push(Y0(b.G)),b=!0),b; if(b.Y!==1&&b.Y!==2)return!1;R=C8(R,R[NK]|0,h);b.Y==2?rH(b,k0,R):R.push(k0(b.G));return!0},function(b,R,h){R=mK(Fz,R,!1); if(R!=null)for(let K=0;K>>0);return!0},function(b,R,h){R=Q4(R); R!=null&&R!=null&&(IH(b,h,0),Kq(b.G,R))},BRs),W3=PD(function(b,R,h){if(b.Y!==0)return!1; cD(R,h,Wv(b.G));return!0},function(b,R,h){R=Ok(R); R!=null&&(R=parseInt(R,10),IH(b,h,0),sd(b.G,R))},fXB);var TRw=new Map,J8H=class extends lXK{constructor(b,R){super();this.typeName=b;this.G=R;if(Qv!==Qv)throw Error();TRw.set(b,this)}};var YrK=class{constructor(b){var R=kIw;this.G=b;this.isRepeated=0;this.Y=hV;this.defaultValue=void 0;this.X=R.messageId!=null?B$:void 0}register(){xw(this)}};var Hy=class extends zd{constructor(b){super(b)}};Hy.prototype.Y=FN([0,PD(function(b,R,h){if(b.Y!==1)return!1;b=eZ(b.G);cD(R,h,b===0?void 0:b);return!0},XN,t8), PD(function(b,R,h){if(lF)return b.Y!==0?R=!1:(b=Ga(b.G,Uk),cD(R,h,b===y83?void 0:b),R=!0),R;if(b.Y!==0)return!1;b=Ga(b.G,z$);cD(R,h,b===0?void 0:b);return!0},Ve,yG), -2,PD(function(b,R,h){if(b.Y!==0)return!1;b=Wv(b.G);cD(R,h,b===0?void 0:b);return!0},Cq,fH)]);var e3K=class{constructor(b){this.X=b;this.G=-1;this.Y=this.V=0}};var OH3=class{constructor(b,R){this.Y=b;this.X=R;this.G=new e3K(b)}};var QQD=class{constructor(){this.G={}}WY(b){const R=this.G[b.key];if(b.valueType==="proto"){try{const h=JSON.parse(R);if(Array.isArray(h))return h}catch(h){}return b.defaultValue}return typeof R===typeof b.defaultValue?R:b.defaultValue}};var x_K={b4:1,Su:2,mW:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};var c3P=class{constructor(){this.X=void 0;this.Y=this.J=0;this.S=-1;this.gi=new cpw;ls(this.gi,"mv",PYx).G=!0;ls(this.gi,"omid",N_);ls(this.gi,"epoh",N_).G=!0;ls(this.gi,"epph",N_).G=!0;ls(this.gi,"umt",N_).G=!0;ls(this.gi,"phel",N_).G=!0;ls(this.gi,"phell",N_).G=!0;ls(this.gi,"oseid",x_K).G=!0;var b=this.gi;b.G.sloi||(b.G.sloi=new Z7x);b.G.sloi.G=!0;ls(this.gi,"mm",IQ);ls(this.gi,"ovms",xeK).G=!0;ls(this.gi,"xdi",N_).G=!0;ls(this.gi,"amp",N_).G=!0;ls(this.gi,"prf",N_).G=!0;ls(this.gi,"gtx",N_).G= !0;ls(this.gi,"mvp_lv",N_).G=!0;ls(this.gi,"ssmol",N_).G=!0;ls(this.gi,"fmd",N_).G=!0;ls(this.gi,"gen204simple",N_);this.G=new OH3(TY(),this.gi);this.V=!1;this.flags=new QQD}RI(b){if(typeof b==="string"&&b.length!=0){var R=this.gi;if(R.Y){b=b.split("&");for(let I=b.length-1;I>=0;I--){var h=b[I].split("="),K=decodeURIComponent(h[0]);h.length>1?(h=decodeURIComponent(h[1]),h=/^[0-9]+$/g.exec(h)?parseInt(h,10):h):h=1;(K=R.G[K])&&K.X(h)}}}}};var m_D=class{constructor(){let b="https:";Jx&&Jx.location&&Jx.location.protocol==="http:"&&(b="http:");this.Y=b;this.G=.01}};var PFP=class{constructor(b,R){this.error=b;this.meta={};this.context=R.context;this.msg=R.message||"";this.id=R.id||"jserror"}};var S_=null;var ZHT=class{constructor(b,R,h){this.label=b;this.type=R;this.value=h;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}};var Ii=g.JD.performance,c8q=!!(Ii&&Ii.mark&&Ii.measure&&Ii.clearMarks),Nl=Qg(()=>{var b;if(b=c8q){var R;b=window;if(S_===null){S_="";try{let h="";try{h=b.top.location.hash}catch(K){h=b.location.hash}h&&(S_=(R=h.match(/\bdeid=([\d,]+)/))?R[1]:"")}catch(h){}}R=S_;b=!!R.indexOf&&R.indexOf("1337")>=0}return b});var uH2=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),gD=/#|$/,Vcx=/[?&]($|#)/;var uv2=class{constructor(b=null){this.G=By;this.Wt="jserror";this.Pz=!0;this.EM=null;this.Y=this.jD;this.i5=b}jD(b,R,h,K,I){I=I||this.Wt;let N;try{const q=new Ri;var p=q;p.G.push(1);p.Y[1]=GY("context",b);R.error&&R.meta&&R.id||(R=new Es(nV(R)));p=R;if(p.msg){R=q;var l=p.msg.substring(0,512);R.G.push(2);R.Y[2]=GY("msg",l)}var a=p.meta||{};l=a;if(this.EM)try{this.EM(l)}catch(d){}if(K)try{K(l)}catch(d){}K=q;a=[a];K.G.push(3);K.Y[3]=a;N=zY();if(N.Y){a=q;var v=N.Y.url||"";a.G.push(4);a.Y[4]=GY("top", v)}var B={url:N.G.url||""};if(N.G.url){const d=g.ai(N.G.url);var H=ll(d[1],null,d[3],d[4])}else H="";v=q;B=[B,{url:H}];v.G.push(5);v.Y[5]=B;hS(this.G,I,q,h)}catch(q){try{hS(this.G,I,{context:"ecmserr",rctx:b,msg:nV(q),url:N&&N.G.url},h)}catch(d){}}return this.Pz}},Es=class extends PFP{constructor(b){super(Error(b),{message:b})}};var By,JS,nH=new class{constructor(b,R){this.events=[];this.Y=R||g.JD;let h=null;R&&(R.google_js_reporting_queue=R.google_js_reporting_queue||[],this.events=R.google_js_reporting_queue,h=R.google_measure_js_timing);this.G=Nl()||(h!=null?h:Math.random()2048||this.events.push(b)}}}(1,window),X3q=()=>{Jx&&typeof Jx.google_measure_js_timing!="undefined"&&(Jx.google_measure_js_timing||nH.disable())}; By=new m_D;JS=new uv2(nH);Jx&&Jx.document&&(Jx.document.readyState=="complete"?X3q():nH.G&&Bo(Jx,"load",()=>{X3q()})); var ZjP=b=>{JS.EM=R=>{g.pr(b,h=>{h(R)})}},i4=(b,R)=>T9(JS,b,R),gp=(b,R)=>ko(b,R),Lux=(b,R)=>{JS.jD(538,b,.01,R)};var eX=Date.now(),QT=-1,Yo=-1,u4,xo=-1,Os=!1;var iV=class{constructor(b,R,h){var K=new P_(0,0,0,0);this.time=b;this.volume=null;this.X=R;this.G=K;this.Y=h}equals(b,R=!1){return!!b&&(!R||this.volume==b.volume)&&this.X==b.X&&c_(this.G,b.G)&&!0}};var V_B=class{constructor(b,R,h,K,I,N,p,l){this.V=b;this.D=R;this.X=h;this.J=K;this.G=I;this.S=N;this.Y=p;this.K=l}hO(){return this.D}equals(b,R=!1){return this.V.equals(b.V,R)&&this.D==b.D&&c_(this.X,b.X)&&c_(this.J,b.J)&&this.G==b.G&&this.S==b.S&&this.Y==b.Y&&this.K==b.K}};var CFe={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},Vd={Xt:"start",FY:"firstquartile",Ox:"midpoint",yW:"thirdquartile",COMPLETE:"complete",ERROR:"error",wC:"metric",PAUSE:"pause",YF:"resume",IM:"skip",l$:"viewable_impression",Ww:"mute",gY:"unmute",Js:"fullscreen",As:"exitfullscreen",hs:"bufferstart",ys:"bufferfinish",N0:"fully_viewable_audible_half_duration_impression",LF:"measurable_impression",kq:"abandon",Bw:"engagedview",rC:"impression",Vs:"creativeview",LOADED:"loaded", j4:"progress",CLOSE:"close",jQ:"collapse",S4:"overlay_resize",BT:"overlay_unmeasurable_impression",Af:"overlay_unviewable_impression",Jf:"overlay_viewable_immediate_impression",FF:"overlay_viewable_end_of_session_impression",l_:"custom_metric_viewable",nF:"audio_audible",YS:"audio_measurable",GB:"audio_impression"},vw2="start firstquartile midpoint thirdquartile resume loaded".split(" "),f2=["start","firstquartile","midpoint","thirdquartile"],A_K=["abandon"],lX={UNKNOWN:-1,Xt:0,FY:1,Ox:2,yW:3,COMPLETE:4, wC:5,PAUSE:6,YF:7,IM:8,l$:9,Ww:10,gY:11,Js:12,As:13,N0:14,LF:15,kq:16,Bw:17,rC:18,Vs:19,LOADED:20,l_:21,hs:22,ys:23,GB:27,YS:28,nF:29};var r3e={yT:"addEventListener",EO:"getMaxSize",m$:"getScreenSize",ew:"getState",OO:"getVersion",S96:"removeEventListener",Q6:"isViewable"};var IIT=()=>{const b=window.document;return b&&typeof b.elementFromPoint==="function"};var kl=(b,R)=>{R=Math.pow(10,R);return Math.floor(b*R)/R};var FUH=class{constructor(){this.X=!qB(Jx.top);this.isMobileDevice=fK()||yo();const b=iu();this.domain=b.length>0&&b[b.length-1]!=null&&b[b.length-1].url!=null?g.B6(b[b.length-1].url)||"":"";this.G=new P_(0,0,0,0);this.V=new g.ru(0,0);this.S=new g.ru(0,0);this.D=new P_(0,0,0,0);this.frameOffset=new g.CP(0,0);this.J=0;this.K=!1;this.Y=!(!Jx||!mk(Jx).tZ);this.update(Jx)}update(b){b&&b.document&&(this.D=ZU(!1,b,this.isMobileDevice),this.G=ZU(!0,b,this.isMobileDevice),Ml(this,b),CV(this,b))}};var M_3=class{constructor(b){this.X=b;this.Y=0;this.G=null}cancel(){TY().clearTimeout(this.G);this.G=null}schedule(){const b=TY(),R=bl().G.G;this.G=b.setTimeout(DV(R,gp(143,()=>{this.Y++;this.X.sample()})),McK())}};var Er=class{constructor(b,R,h="na"){this.X=b;this.CR=h;this.S=[];this.isInitialized=!1;this.V=new iV(-1,!0,this);this.G=this;this.C=R;this.gp=this.nR=!1;this.pR="uk";this.JX=!1;this.D=!0}T6(){return!1}initialize(){return this.isInitialized=!0}U(){return this.G.pR}MJ(){return this.G.gp}fail(b,R=!1){if(!this.gp||R)this.gp=!0,this.pR=b,this.C=0,this.G!=this||Fg(this)}getName(){return this.G.CR}lW(){return this.G.xZ()}xZ(){return{}}N2(){return this.G.C}NJ(){var b=VT();b.G=ZU(!0,this.X,b.isMobileDevice)}Zr(){CV(VT(), this.X)}KR(){return this.V.G}sample(){}isActive(){return this.G.D}G6(b){const R=this.G;this.G=b.N2()>=this.C?b:this;R!==this.G?(this.D=this.G.D,Fg(this)):this.D!==this.G.D&&(this.D=this.G.D,Fg(this))}J(b){if(b.Y===this.G){const R=!this.V.equals(b,this.nR);this.V=b;R&&wD(this)}}Z8(){return this.nR}dispose(){this.JX=!0}HY(){return this.JX}};var r8w=class{constructor(b,R,h,K){this.element=b;this.G=new P_(0,0,0,0);this.X=null;this.C=new P_(0,0,0,0);this.Y=R;this.gi=h;this.KR=K;this.NJ=!1;this.timestamp=-1;this.SY=new V_B(R.V,this.element,this.G,new P_(0,0,0,0),0,0,Date.now()-eX,0);this.K=void 0}observe(){return!0}unobserve(){}D(b){this.K=b}dispose(){if(!this.HY()){var b=this.Y;g.G3(b.S,this);b.nR&&this.Z8()&&DU(b);this.unobserve();this.NJ=!0}}HY(){return this.NJ}lW(){return this.Y.lW()}N2(){return this.Y.N2()}U(){return this.Y.U()}MJ(){return this.Y.MJ()}G6(){}J(){this.S()}Z8(){return this.KR}};var TI=class{constructor(b){this.K=!1;this.G=b;this.D=()=>{}}N2(){return this.G.N2()}U(){return this.G.U()}MJ(){return this.G.MJ()}create(b,R,h){let K=null; this.G&&(K=this.V(b,R,h),oi(this.G,K));return K}C(){return this.X()}X(){return!1}init(b){return this.G.initialize()?(oi(this.G,this),this.D=b,!0):!1}G6(b){b.N2()==0&&this.D(b.U(),this)}J(){}Z8(){return!1}dispose(){this.K=!0}HY(){return this.K}lW(){return{}}};var LJ2=class{constructor(b,R,h=0){this.X=h;this.Y=b;this.G=R==null?"":R}};var pf=class{constructor(){this.X=0;this.G=[];this.Y=!1}add(b,R,h){++this.X;b=new LJ2(b,R,h);this.G.push(new LJ2(b.Y,b.G,b.X+this.X/4096));this.Y=!0;return this}};var bjK=b=>{const R=b.Y;b=b.G;return b===""?R:typeof b==="boolean"?b?R:"":Array.isArray(b)?b.length===0?R:`${R}=${b.join()}`:`${R}=${g.iR(["mtos","tos","p"],R)?b:encodeURIComponent(b)}`};var hcT=class{constructor(b){this.G=new pf;b!==void 0&&DgK(this.G,b);this.G.add("v","unreleased",-16)}toString(){let b="//pagead2.googlesyndication.com//pagead/gen_204";const R=sV(this.G);R.length>0&&(b+="?"+R);return b}};var aNe=b=>{const R=[],h=[];g.Z2(b,(K,I)=>{if(!(I in Object.prototype)&&typeof K!="undefined")switch(Array.isArray(K)&&(K=K.join(",")),K=[I,"=",K].join(""),I){case "adk":case "r":case "tt":case "error":case "mtos":case "tos":case "p":case "bs":R.unshift(K);break;case "req":case "url":case "referrer":case "iframe_loc":h.push(K);break;default:R.push(K)}}); return R.concat(h)},l4=b=>{b=b.toString(); TY();EI(b)};var RcD=class{constructor(){this.G=0}};g.N3.prototype.s8=!1;g.N3.prototype.HY=function(){return this.s8}; g.N3.prototype.dispose=function(){this.s8||(this.s8=!0,this.X5())}; g.N3.prototype[Symbol.dispose]=function(){this.dispose()}; g.N3.prototype.addOnDisposeCallback=function(b,R){this.s8?R!==void 0?b.call(R):b():(this.Kh||(this.Kh=[]),R&&(b=b.bind(R)),this.Kh.push(b))}; g.N3.prototype.X5=function(){if(this.Kh)for(;this.Kh.length;)this.Kh.shift()()};var w3s=[0,j_,GIK,-1];var J8=class{constructor(){this.Y=this.X=this.V=this.G=0}update(b,R,h=!b){b&&(this.G+=R,this.Y+=R,this.V+=R,this.X=Math.max(this.X,this.V));h&&(this.V=0)}};var FJ3=[1,.75,.5,.3,0],kt=class{constructor(b=FJ3){this.Y=b;this.G=g.an(this.Y,()=>new J8)}update(b,R,h,K,I,N=!0){R=I?Math.min(b,R):R; for(I=0;I0&&R>=p;p=!(b>0&&b>=p)||h;this.G[I].update(N&&l,K,!N||p)}}};var otw=class{constructor(){this.Y=new kt;this.vY=this.SY=0;this.NJ=new J8;this.C=this.D=-1;this.xZ=1E3;this.KR=new kt([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.MJ=this.nR=-1}update(b,R,h,K){this.D=this.D!=-1?Math.min(this.D,R.FH):R.FH;this.C=Math.max(this.C,R.FH);this.nR=this.nR!=-1?Math.min(this.nR,R.rh):R.rh;this.MJ=Math.max(this.MJ,R.rh);this.KR.update(R.rh,h.rh,R.G,b,K);this.SY+=b;R.FH===0&&(this.vY+=b);this.Y.update(R.FH,h.FH,R.G,b,K);h=K||h.L2!=R.L2?h.isVisible()&&R.isVisible():h.isVisible(); R=!R.isVisible()||R.G;this.NJ.update(h,b,R)}KX(){return this.NJ.X>=this.xZ}};if(rD&&rD.URL){var D_3=rD.URL,Yt;a:{if(D_3){var bhx=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{const b=bhx.exec(decodeURIComponent(D_3));if(b){Yt=b[1]&&b[1].length>1?b[1].substring(1):"true";break a}}catch{}}Yt=""}JS.Pz=!(Yt.length>0)}var M3=(b,R,h,K)=>{h=ko(K,h);Bo(b,R,h,{capture:!1})};var Rws=new P_(0,0,0,0);var hw3=new P_(0,0,0,0),KHq=class extends g.N3{constructor(b,R){super();this.position=hw3.clone();this.TF=this.CB();this.pv=-2;this.timeCreated=Date.now();this.vv=-1;this.yG=R;this.Ou=null;this.jq=!1;this.Dh=null;this.opacity=-1;this.requestSource=7;this.rN=!1;this.mV=()=>{}; this.pu=()=>{}; this.U7=new FiH;this.U7.LP=b;this.U7.G=b;this.c_=!1;this.V9={Qm:null,t0:null};this.bI=!0;this.f4=null;this.Li=this.gZ=!1;bl().J++;this.eS=this.hF();this.XL=-1;this.rB=null;this.hasCompleted=this.MB=!1;this.gi=new cpw;ucK(this.gi);aIe(this);this.requestSource==1?aT(this.gi,"od",1):aT(this.gi,"od",0)}X5(){if(this.U7.G){if(this.V9.Qm){var b=this.U7.G;typeof b.removeEventListener==="function"&&b.removeEventListener("mouseover",this.V9.Qm,vo());this.V9.Qm=null}this.V9.t0&&(b=this.U7.G,typeof b.removeEventListener=== "function"&&b.removeEventListener("mouseout",this.V9.t0,vo()),this.V9.t0=null)}this.f4&&this.f4.dispose();this.rB&&this.rB.dispose();delete this.TF;delete this.mV;delete this.pu;delete this.U7.LP;delete this.U7.G;delete this.V9;delete this.f4;delete this.rB;delete this.gi;super.X5()}Ay(){return this.rB?this.rB.G:this.position}RI(b){bl().RI(b)}Z8(){return!1}CB(){return new otw}V0(){return this.TF}Ss(b){return Gg(this,b,1E4)}bv(b,R,h,K,I,N,p){this.c_||(this.jq&&(b=this.Cd(b,h,I,p),K=K&&this.eS.FH>= (this.L2()?.3:.5),this.Ky(N,b,K),this.yG=R,b.FH>0&&-1===this.XL&&(this.XL=R),this.vv==-1&&this.KX()&&(this.vv=R),this.pv==-2&&(this.pv=jD(this.Ay())?b.FH:-1),this.eS=b),this.mV(this))}Ky(b,R,h){this.V0().update(b,R,this.eS,h)}hF(){return new mex}Cd(b,R,h,K){h=this.hF();h.G=R;R=TY().Y;R=Ho(rD)===0?-1:R.isVisible()?0:1;h.Y=R;h.FH=this.VN(b);h.L2=this.L2();h.rh=K;return h}VN(b){return this.opacity===0&&vl(this.gi,"opac")===1?0:b}L2(){return!1}Xh(){return this.MB||this.gZ}MA(){Date.now()}FV(){Date.now()}v8(){return this.requestSource}YY(){return 0}KX(){return this.TF.KX()}HW(){var b= this.jq;b=(this.hasCompleted||this.HY())&&!b;const R=bl().Y!==2||this.rN;return this.c_||R&&b?2:this.KX()?4:3}dP(){return 0}};g.g3.prototype.next=function(){return g.e_}; g.e_={done:!0,value:void 0};g.g3.prototype.sz=function(){return this};var sPB=class{constructor(){this.V=this.G=this.X=this.Y=this.S=0}};var $MT=class extends mex{constructor(){super();this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}};var Or=(b,R,h=!0,K=()=>!0)=>I=>{const N=I[b]; if(Array.isArray(N)&&K(I))return IlH(N,R,h)},QG=(b,R)=>h=>R(h)?h[b]:void 0,Nc2=b=>R=>{for(let h=0;hh?g.lR(b,(K,I)=>g.iR(R,I)):g.an(R,(K,I,N)=>b.slice(I>0?N[I-1]+1:0,K+1).reduce((p,l)=>p+l,0));var xt=Nc2([void 0,1,2,3,4,8,16]),mJ=Nc2([void 0,4,8,16]),pie={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:QG("p0",mJ),p1:QG("p1",mJ),p2:QG("p2",mJ),p3:QG("p3",mJ),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:Or("mtos1",[0,2,4],!1,mJ),mtos2:Or("mtos2",[0,2,4],!1,mJ),mtos3:Or("mtos3",[0,2,4],!1,mJ),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:QG("a0",mJ),a1:QG("a1",mJ),a2:QG("a2",mJ),a3:QG("a3",mJ),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:QG("c0",mJ),c1:QG("c1",mJ),c2:QG("c2",mJ),c3:QG("c3",mJ),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:QG("qmtos",xt),qnc:QG("qnc",xt),qmv:QG("qmv",xt),qnv:QG("qnv",xt), 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:QG("ss0",mJ),ss1:QG("ss1",mJ),ss2:QG("ss2",mJ),ss3:QG("ss3",mJ),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"},llK=Object.assign({},pie,{avid:eO("audio"),avas:"avas",vs:"vs"}),alT={atos:"atos",avt:Or("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:((b,R)=>h=>h[b]===void 0&&R!==void 0?R:h[b])("ss",0), t:"t"};var vF2=class{constructor(){this.Y=this.G=""}};var Bcx=class{};var Hh3=class{constructor(){this.Y={vs:[1,0],vw:[0,1],am:[2,2],a:[4,4],f:[8,8],bm:[16,16],b:[32,32],avw:[0,64],avs:[64,0],pv:[256,256],gdr:[0,512],p:[0,1024],r:[0,2048],m:[0,4096],um:[0,8192],ef:[0,16384],s:[0,32768],pmx:[0,16777216],mut:[33554432,33554432],umutb:[67108864,67108864],tvoff:[134217728,134217728]};this.G={};for(const b in this.Y)this.Y[b][1]>0&&(this.G[b]=0);this.X=0}};var P3=class{constructor(){this.G=this.Y=0}getValue(){return this.Y}update(b,R){b>=32||(this.G&1<=.5;Xg(R.volume)&&(this.V=this.V!=-1?Math.min(this.V,R.volume):R.volume,this.J=Math.max(this.J,R.volume));N&&(this.T6+=b,this.U+=I?b:0);this.G.update(R.FH,h.FH,R.G,b,K,I); this.X.update(!0,b);this.S.update(I,b);this.G6.update(h.fullscreen,b);this.wp.update(I&&!N,b);b=Math.floor(R.mediaTime/1E3);this.gp.update(b,R.isVisible());this.pR.update(b,R.FH>=1);this.Zr.update(b,SD(R))}}};var dMw=class{constructor(){this.S=!1}Y(b){this.S||(this.G(b)?(b=Py(this.U,this.X,b),this.V|=b,b=b==0):b=!1,this.S=b)}};var ZX=class extends dMw{constructor(b,R){super();this.X=b;this.U=R;this.V=0}G(){return!0}J(){return!1}getId(){const b=on(Vd,R=>R==this.X); return lX[b].toString()}toString(){let b="";this.J()&&(b+="c");this.S&&(b+="s");this.V>0&&(b+=`:${this.V}`);return this.getId()+b}};var flH=class extends ZX{constructor(b,R){super(b,R);this.D=[]}Y(b,R=null){R!=null&&this.D.push(R);super.Y(b)}};var yg3=class{};var c3=class extends yg3{Y(){return null}X(){return[]}};var uF=class extends r8w{gp(){if(this.element){var b=this.element,R=this.Y.G.X;try{try{var h=c6(b.getBoundingClientRect())}catch(v){h=new P_(0,0,0,0)}const I=h.right-h.left,N=h.bottom-h.top,p=sI(b,R),l=p.x,a=p.y;var K=new P_(Math.round(a),Math.round(l+I),Math.round(a+N),Math.round(l))}catch(I){K=Rws.clone()}this.X=K;this.G=RZ(this,this.X)}}Zr(){this.C=this.Y.V.G}xZ(b){const R=vl(this.gi,"od")==1;return pls(b,this.C,this.element,R)}pR(){this.timestamp=Date.now()-eX}S(){this.pR();this.gp();if(this.element&& typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var b=this.element;var R=new g.ru(b.videoWidth,b.videoHeight);b=this.G;var h=Z_(b),K=b.getHeight(),I=R.width;R=R.height;I<=0||R<=0||h<=0||K<=0||(I/=R,R=h/K,b=b.clone(),I>R?(h/=I,K=(K-h)/2,K>0&&(K=b.top+K,b.top=Math.round(K),b.bottom=Math.round(K+h))):(K*=I,h=Math.round((h-K)/2),h>0&&(h=b.left+h,b.left=Math.round(h),b.right=Math.round(h+K))));this.G=b}this.Zr();b=this.G;h=this.C;b=b.left<=h.right&&h.left<=b.right&& b.top<=h.bottom&&h.top<=b.bottom?new P_(Math.max(b.top,h.top),Math.min(b.right,h.right),Math.min(b.bottom,h.bottom),Math.max(b.left,h.left)):new P_(0,0,0,0);h=b.top>=b.bottom||b.left>=b.right?new P_(0,0,0,0):b;b=this.Y.V;R=I=K=0;(this.G.bottom-this.G.top)*(this.G.right-this.G.left)>0&&(this.xZ(h)?h=new P_(0,0,0,0):(K=VT().V,R=new P_(0,K.height,K.width,0),K=Aa(h,this.K??this.G),I=Aa(h,VT().G),R=Aa(h,R)));h=h.top>=h.bottom||h.left>=h.right?new P_(0,0,0,0):uj(h,-this.G.left,-this.G.top);LV()||(I=K=0); this.SY=new V_B(b,this.element,this.G,h,K,I,this.timestamp,R)}getName(){return this.Y.getName()}};var tgP=new P_(0,0,0,0),jPK=class extends uF{constructor(b,R,h){super(null,b,R,h);this.T6=b.isActive();this.nR=0}observe(){this.V();return!0}J(){super.S()}pR(){}gp(){}S(){this.V();super.S()}G6(b){b=b.isActive();b!==this.T6&&(b?this.V():(VT().G=new P_(0,0,0,0),this.G=new P_(0,0,0,0),this.C=new P_(0,0,0,0),this.timestamp=-1));this.T6=b}};var U$x={firstquartile:0,midpoint:1,thirdquartile:2,complete:3},AgK=class extends KHq{constructor(b,R,h,K=new c3){super(b,R);this.wV=h;this.zg=0;this.kT={};this.AU=new Hh3;this.w7={};this.Lm="";this.pR=null;this.RH=!1;this.G=[];this.ET=K.Y();this.J=K.X();this.V=null;this.X=-1;this.JX=this.G6=void 0;this.nR=this.C=0;this.gp=-1;this.KR=this.xZ=!1;this.MJ=this.U=this.Y=this.oL=this.CR=0;new kt;this.SY=this.NJ=0;this.Zr=-1;this.y$=0;this.K=g.OU;this.T6=[this.CB()];this.Ty=2;this.uD={};this.uD.pause="p"; this.uD.resume="r";this.uD.skip="s";this.uD.mute="m";this.uD.unmute="um";this.uD.exitfullscreen="ef";this.S=null;this.wp=this.fR=!1;this.PH=Math.floor(Date.now()/1E3-1704067200);this.vY=0}Z8(){return!0}WZ(){return this.y$==2}Ss(b){return Gg(this,b,Math.max(1E4,this.X/3))}bv(b,R,h,K,I,N,p){const l=this.K(this)||{};g.pj(l,I);this.X=l.duration||this.X;this.G6=l.isVpaid||this.G6;this.JX=l.isYouTube||this.JX;TY();this.wp=!1;I=y_K(this,R);xl(this)===1&&(N=I);super.bv(b,R,h,K,l,N,p);this.ET&&this.ET.S&& g.pr(this.J,a=>{a.Y(this)})}Ky(b,R,h){super.Ky(b,R,h); mR(this).update(b,R,this.eS,h);this.KR=SD(this.eS)&&SD(R);this.gp==-1&&this.xZ&&(this.gp=this.V0().X.G);this.AU.X=0;b=this.KX();R.isVisible()&&EV(this.AU,"vs");b&&EV(this.AU,"vw");Xg(R.volume)&&EV(this.AU,"am");SD(R)?EV(this.AU,"a"):EV(this.AU,"mut");this.Li&&EV(this.AU,"f");R.Y!=-1&&(EV(this.AU,"bm"),R.Y==1&&(EV(this.AU,"b"),SD(R)&&EV(this.AU,"umutb")));SD(R)&&R.isVisible()&&EV(this.AU,"avs");this.KR&&b&&EV(this.AU,"avw");R.FH>0&&EV(this.AU,"pv");Pk(this,this.V0().X.G,!0)&&EV(this.AU,"gdr");d3(this.V0().Y, 1)>=2E3&&EV(this.AU,"pmx");this.wp&&EV(this.AU,"tvoff")}CB(){return new q9x}V0(){return this.TF}hF(){return new $MT}Cd(b,R,h,K=-1){b=super.Cd(b,R,h,K);b.fullscreen=this.Li;b.paused=this.WZ();b.volume=h.volume;Xg(b.volume)||(this.CR++,R=this.eS,Xg(R.volume)&&(b.volume=R.volume));h=h.currentTime;b.mediaTime=h!==void 0&&h>=0?h:-1;return b}VN(b){return VT(),this.Li?1:super.VN(b)}YY(){return 1}getDuration(){return this.X}HW(){return this.c_?2:ZT(this)?5:this.KX()?4:3}dP(){return this.fR?this.V0().S.X>= 2E3?4:3:2}D(b){this.rB&&this.rB.D(b)}};var ihK=g.wK(),DmK=class{constructor(){this.G={};const b=dM();r3(this,b,document);const R=ETH();try{if("1"==R){for(let h=b.parent;h!=b.top;h=h.parent)r3(this,h,h.document);r3(this,b.top,b.top.document)}}catch(h){}}};var zw2=class{constructor(){this.G=[];this.Y=[]}reset(){this.G=[];this.Y=[]}},FC=kg(zw2);var lV=class{constructor(){this.G=this.Y=null}};var $Ew=class extends TI{constructor(b){b=ecH(b);super(b.length?b[b.length-1]:new Er(Jx,0));this.S=b;this.Y=null}getName(){return(this.Y?this.Y:this.G).getName()}lW(){return(this.Y?this.Y:this.G).lW()}N2(){return(this.Y?this.Y:this.G).N2()}init(b){let R=!1;g.pr(this.S,h=>{h.initialize()&&(R=!0)}); R&&(this.D=b,oi(this.G,this));return R}dispose(){g.pr(this.S,b=>{b.dispose()}); super.dispose()}C(){return dx(this.S,b=>b.T6())}X(){return dx(this.S,b=>b.T6())}V(b,R,h){return new uF(b,this.G,R,h)}J(b){this.Y=b.Y}};var OjD={threshold:[0,.3,.5,.75,1]},UM3=class extends uF{constructor(b,R,h,K){super(b,R,h,K);this.JX=this.vY=this.nR=this.T6=this.V=null}observe(){this.JX||(this.JX=Date.now()-eX);if(i4(298,()=>QTP(this)))return!0; this.Y.fail("msf");return!1}unobserve(){if(this.V&&this.element)try{this.V.unobserve(this.element),this.T6?(this.T6.unobserve(this.element),this.T6=null):this.nR&&(this.nR.disconnect(),this.nR=null)}catch(b){}}S(){const b=hK(this);b.length>0&&RS(this,b);super.S()}gp(){}xZ(){return!1}Zr(){}lW(){return Object.assign(this.Y.lW(),{niot_obs:this.JX,niot_cbk:this.vY})}getName(){return"nio"}};var Y3=class extends TI{constructor(b=Jx){super(new Er(b,2))}getName(){return"nio"}X(){return!VT().Y&&this.G.G.X.IntersectionObserver!=null}V(b,R,h){return new UM3(b,this.G,R,h)}};var hoT=class extends Er{constructor(){const b=KS();super(Jx.top,b,"geo")}KR(){return VT().G}T6(){const b=KS();this.C!==b&&(this.G!=this&&b>this.G.C&&(this.G=this,Fg(this)),this.C=b);return b==2}};var aS=class{};var G0H=class{constructor(){this.done=!1;this.G={Zx:0,zc:0,LZ6:0,sL:0,UJ:-1,u0:0,hJ:0,g$:0,IA:0};this.V=null;this.S=!1;this.X=null;this.J=0;this.Y=new M_3(this)}sample(){$3(this,oZ(),!1)}},N5=kg(G0H);var q5=null,x3="",Q8=!1;var gFx=()=>"av.default_js".includes("ima_html5_sdk")?{dW:"ima",mw:null}:"av.default_js".includes("ima_native_sdk")?{dW:"nima",mw:null}:"av.default_js".includes("admob-native-video-javascript")?{dW:"an",mw:null}:"youtube.player.web_20260210_11_RC00".includes("cast_js_sdk")?{dW:"cast",mw:dp()}:"youtube.player.web_20260210_11_RC00".includes("youtube.player.web")?{dW:"yw",mw:dp()}:"youtube.player.web_20260210_11_RC00".includes("outstream_web_client")?{dW:"out",mw:dp()}:"youtube.player.web_20260210_11_RC00".includes("drx_rewarded_web")? {dW:"r",mw:dp()}:"youtube.player.web_20260210_11_RC00".includes("gam_native_web_video")?{dW:"n",mw:dp()}:"youtube.player.web_20260210_11_RC00".includes("admob_interstitial_video")?{dW:"int",mw:dp()}:{dW:"j",mw:null},p2=gFx().dW,nS=gFx().mw;var qT=(b,R)=>{const h={sv:"968"};nS!==null&&(h.v=nS);h.cb=p2;h.nas=FC.G.length;h.msg=b;R!==void 0&&(b=da(R))&&(h.e=lX[b]);return h},da=b=>{const R=q$(b,"custom_metric_viewable")?"custom_metric_viewable":b.toLowerCase(); return on(Vd,h=>h==R)};var Xl3={pE:"visible",G4:"audible",IlX:"time",XH9:"timetype"},fS={visible:b=>/^(100|[0-9]{1,2})$/.test(b), audible:b=>b=="0"||b=="1", timetype:b=>b=="mtos"||b=="tos", time:b=>/^(100|[0-9]{1,2})%$/.test(b)||/^([0-9])+ms$/.test(b)},D$K=class{constructor(){this.G=void 0; this.Y=!1;this.X=0;this.V=-1;this.S="tos"}setTime(b,R,h="tos"){R=="ms"?(this.X=b,this.V=-1):(this.X=-1,this.V=b);this.S=h;return this}};var bPq=class extends ZX{constructor(b,R,h,K){super(R,K);this.D=b;this.K=h}getId(){return this.D}J(){return!0}G(b){const R=b.V0(),h=b.getDuration();return dx(this.K,K=>{if(K.G!=void 0)var I=CsK(K,R);else b:{switch(K.S){case "mtos":I=K.Y?R.S.X:R.X.G;break b;case "tos":I=K.Y?R.S.G:R.X.G;break b}I=0}I==0?K=!1:(K=K.X!=-1?K.X:h!==void 0&&h>0?K.V*h:-1,K=K!=-1&&I>=K);return K})}};var WHq=class extends Bcx{G(b){const R=new vF2;R.G=nf(b,pie);R.Y=nf(b,alT);return R}};var S9T=class extends ZX{constructor(b){super("fully_viewable_audible_half_duration_impression",b)}G(b){return ZT(b)}};var nFq=class extends yg3{constructor(b){super();this.G=b}};var EFT=class extends ZX{constructor(b){super("viewable_impression",b)}G(b){return b.V0().KX()}};var TcD=class extends flH{constructor(b){super("measurable_impression",b)}G(b){const R=g.iR(this.D,vl(bl().gi,"ovms"));return!b.c_&&(b.y$!=0||R)}};var Jg3=class extends nFq{Y(){return new TcD(this.G)}X(){return[new EFT(this.G),new S9T(this.G)]}};var k0H=class extends jPK{V(){const b=g.YB("ima.admob.getViewability"),R=vl(this.gi,"queryid");typeof b==="function"&&R&&b(R)}getName(){return"gsv"}};var KdB=class extends TI{constructor(){super(new Er(Jx,2))}getName(){return"gsv"}X(){const b=VT();bl();return b.Y&&!1}V(b,R,h){return new k0H(this.G,R,h)}};var Y9q=class extends jPK{V(){const b=g.YB("ima.bridge.getNativeViewability"),R=vl(this.gi,"queryid");typeof b==="function"&&R&&b(R,h=>{g.RT(h)&&this.nR++;const K=h.opt_nativeViewVisibleBounds||{},I=h.opt_nativeViewHidden;this.G=ul(h.opt_nativeViewBounds||{});const N=this.Y.V;N.G=I?tgP.clone():ul(K);this.timestamp=h.opt_nativeTime||-1;VT().G=N.G;h=h.opt_nativeVolume;h!==void 0&&(N.volume=h)})}getName(){return"nis"}};var sg3=class extends TI{constructor(){super(new Er(Jx,2))}getName(){return"nis"}X(){const b=VT();bl();return b.Y&&!1}V(b,R,h){return new Y9q(this.G,R,h)}};var y8=class extends Er{constructor(){super(Jx,2,"mraid");this.wp=0;this.SY=this.vY=!1;this.K=null;this.Y=mk(this.X);this.V.G=new P_(0,0,0,0);this.fR=!1}T6(){return this.Y.tZ!=null}xZ(){const b={};this.wp&&(b.mraid=this.wp);this.vY&&(b.mlc=1);b.mtop=this.Y.tP;this.K&&(b.mse=this.K);this.fR&&(b.msc=1);b.mcp=this.Y.compatibility;return b}initialize(){if(this.isInitialized)return!this.MJ();this.isInitialized=!0;if(this.Y.compatibility===2)return this.K="ng",this.fail("w"),!1;if(this.Y.compatibility=== 1)return this.K="mm",this.fail("w"),!1;VT().K=!0;this.X.document.readyState&&this.X.document.readyState=="complete"?GW(this):M3(this.X,"load",()=>{TY().setTimeout(gp(292,()=>GW(this)),100)},292); return!0}NJ(){const b=VT(),R=Sd(this,"getMaxSize");b.G=new P_(0,R.width,R.height,0)}Zr(){VT().V=Sd(this,"getScreenSize")}dispose(){Wy(this);super.dispose()}};var eww=new class{constructor(b,R=!1){this.key=b;this.defaultValue=R;this.valueType="boolean"}}("45378663");var OhK=class{constructor(){this.isInitialized=!1;this.G=this.Y=null;this.KR={start:this.pz,firstquartile:this.Ty,midpoint:this.Sn,thirdquartile:this.jn,complete:this.CR,error:this.RH,pause:this.vY,resume:this.fR,skip:this.EW,viewable_impression:this.X,mute:this.V,unmute:this.V,fullscreen:this.Zl,exitfullscreen:this.PH,fully_viewable_audible_half_duration_impression:this.X,measurable_impression:this.X,abandon:this.vY,engagedview:this.X,impression:this.X,creativeview:this.X,progress:this.V,custom_metric_viewable:this.X, bufferstart:this.vY,bufferfinish:this.fR,audio_measurable:this.X,audio_audible:this.X};this.m_={overlay_resize:this.FM,abandon:this.gp,close:this.gp,collapse:this.gp,overlay_unmeasurable_impression:b=>Cf(b,"overlay_unmeasurable_impression",LV()), overlay_viewable_immediate_impression:b=>Cf(b,"overlay_viewable_immediate_impression",LV()), overlay_unviewable_impression:b=>Cf(b,"overlay_unviewable_impression",LV()), overlay_viewable_end_of_session_impression:b=>Cf(b,"overlay_viewable_end_of_session_impression",LV())}; bl().Y=3;Fu2(this);this.S=null}K(b){zg(b,!1);J_B(b)}U(){}C(b,R,h,K){b=new AgK(b,h?R:-1,this.T6(),this.pR());b.Lm=K;txH(b.gi);aT(b.gi,"queryid",b.Lm);b.RI("");HjD(b,(...I)=>this.xZ(...I),(...I)=>oTH(this,...I)); (K=kg(lV).G)&&UV(b,K);this.S&&(b.D(this.S),this.S=null);b.U7.LP&&kg(aS);return b}G6(b){switch(b.N2()){case 0:if(b=kg(lV).G)b=b.G,g.G3(b.S,this),b.nR&&this.Z8()&&DU(b);OE();break;case 2:pS()}}J(){}Z8(){return!1}pz(b){var R=b.K(b);R&&(R=R.volume,b.fR=Xg(R)&&R>0);ck(b,0);return Cf(b,"start",LV())}V(b,R,h){$3(N5,[b],!LV());return this.X(b,R,h)}X(b,R,h){return Cf(b,h,LV())}Ty(b){return uV(b,"firstquartile",1)}Sn(b){b.xZ=!0;return uV(b,"midpoint",2)}jn(b){return uV(b,"thirdquartile",3)}CR(b){const R=uV(b, "complete",4);Qd(b);return R}RH(b){b.y$=3;return Cf(b,"error",LV())}fR(b,R,h){R=LV();if(b.WZ()&&!R){var K=b.V0(),I=Date.now()-eX;K.K=I}$3(N5,[b],!R);b.WZ()&&(b.y$=1);return Cf(b,h,R)}EW(b,R){R=this.V(b,R||{},"skip");Qd(b);return R}Zl(b,R){zg(b,!0);return this.V(b,R||{},"fullscreen")}PH(b,R){zg(b,!1);return this.V(b,R||{},"exitfullscreen")}vY(b,R,h){R=b.V0();var K=Date.now()-eX;R.JX=Tg(R,K,b.y$!=1);$3(N5,[b],!LV());b.y$==1&&(b.y$=2);return Cf(b,h,LV())}FM(b){$3(N5,[b],!LV());return b.Y()}gp(b){$3(N5, [b],!LV());this.wp(b);Qd(b);return b.Y()}xZ(){}NJ(){}wp(){}Zr(){}MJ(){}pR(){this.G||(this.G=this.MJ());return this.G==null?new c3:new Jg3(this.G)}T6(){return new WHq}};var QPq=class extends ZX{constructor(b){super("audio_audible",b)}G(b){return b.dP()==4}};var xMx=class extends flH{constructor(b){super("audio_measurable",b)}G(b){b=b.dP();return b==3||b==4}};var mMD=class extends nFq{Y(){return new xMx(this.G)}X(){return[new QPq(this.G)]}};var PNx=class extends Bcx{G(b){b&&(b.e===28&&(b=Object.assign({},b,{avas:3})),b.vs===4||b.vs===5)&&(b=Object.assign({},b,{vs:3}));const R=new vF2;R.G=nf(b,llK);R.Y=nf(b,alT);return R}};var Zhw=class{constructor(b){this.G=b}Y(){return g.YB(this.G)}};var B9=class extends OhK{constructor(){super();this.JX=null;this.SY=!1;this.nR="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}U(b,R){let h;const K=kg(lV);if(K.G!=null)switch(K.G.getName()){case "nis":h=BuH(this,b,R);break;case "gsv":h=HPT(this,b,R);break;case "exc":h=q5x(this,b)}h||(R.opt_overlayAdElement?h=void 0:R.opt_adElement&&(h=pEK(this,b,R.opt_adElement,R.opt_osdId)));h&&h.YY()==1&&(h.K==g.OU&&(h.K=I=>this.Zr(I)),dEB(this,h,R)); return h}Zr(b){b.Y=0;b.MJ=0;let R;if(b.V=="h"||b.V=="n"){bl();b.pR&&(bl(),m7(this)!="h"&&m7(this));var h=g.YB("ima.common.getVideoMetadata");if(typeof h==="function")try{R=h(b.Lm)}catch(K){b.Y|=4}else b.Y|=2}else if(b.V=="b")if(h=g.YB("ytads.bulleit.getVideoMetadata"),typeof h==="function")try{R=h(b.Lm)}catch(K){b.Y|=4}else b.Y|=2;else if(b.V=="ml")if(h=g.YB("ima.common.getVideoMetadata"),typeof h==="function")try{R=h(b.Lm)}catch(K){b.Y|=4}else b.Y|=2;else b.Y|=1;b.Y||(R===void 0?b.Y|=8:R===null? b.Y|=16:g.RT(R)?b.Y|=32:R.errorCode!=null&&(b.MJ=R.errorCode,b.Y|=64));R==null&&(R={});h=R;b.U=0;for(const K in CFe)h[K]==null&&(b.U|=CFe[K]);TW(h,"currentTime");TW(h,"duration");Xg(R.volume)&&Xg()&&(R.volume*=NaN);return R}MJ(){bl();m7(this)!="h"&&m7(this);const b=fNB(this);return b!=null?new Zhw(b):null}NJ(b){!b.G&&b.c_&&ZQ(this,b,"overlay_unmeasurable_impression")&&(b.G=!0)}wp(b){b.bI&&(b.KX()?ZQ(this,b,"overlay_viewable_end_of_session_impression"):ZQ(this,b,"overlay_unviewable_impression"),b.bI= !1)}xZ(){}C(b,R,h,K){if(bl().flags.WY(eww)){var I=vl(bl().gi,"mm");(I={[IQ.Pw]:"ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",[IQ.VIDEO]:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}[I])&&yF(this,I);this.nR==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&JS.jD(1044,Error(),void 0,void 0)}b=super.C(b,R,h,K);this.SY&&(R=this.JX,b.S==null&&(b.S=new sPB),R.G[b.Lm]=b.S,b.S.S=ihK);return b}K(b){b&&b.YY()==1&&this.SY&&delete this.JX.G[b.Lm];return super.K(b)}pR(){this.G||(this.G=this.MJ());return this.G==null?new c3:this.nR==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"? new mMD(this.G):new Jg3(this.G)}T6(){return this.nR==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new PNx:new WHq}D(b,R,h,K,I){R=new P_(h,R+K,h+I,R);(b=Lf(FC,b))?b.D(R):this.S=R}},cgP=ko(193,H9,void 0,EE);g.kB("Goog_AdSense_Lidar_sendVastEvent",cgP);var uZT;uZT=ko(194,function(b,R={}){b=v9(kg(B9),b,R);return aU(b)}); g.kB("Goog_AdSense_Lidar_getViewability",uZT);var XiD=ko(195,function(){return JR()}); g.kB("Goog_AdSense_Lidar_getUrlSignalsArray",XiD);var Vgs;Vgs=ko(196,function(){return JSON.stringify(JR())}); g.kB("Goog_AdSense_Lidar_getUrlSignalsList",Vgs);var duT=class{constructor({url:b,rqY:R}){this.Y=b;this.V=R;this.X=(new Date).getTime()-17040672E5;this.G={};const h=/[?&]([^&=]+)=([^&]*)/g;for(;R=h.exec(b);)this.G[R[1]]=R[2]}};var Uh=class extends Error{constructor(b,R,h=Error()){super();this.code=b;R+=":";h instanceof Error?(this.message=R+h.message,this.stack=h.stack||""):(this.message=R+String(h),this.stack="");Object.setPrototypeOf(this,new.target.prototype)}};var A1x=class extends g.N3{constructor(b){super();this.wpc=b}Ef(){return this.wpc.f()}JM(b){this.wpc.c(b)}X(b){return this.wpc.m(zk(b))}S$(b){return this.wpc.mws(zk(b))}},Ao=class extends g.N3{constructor(b){super();this.GJ=b;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.Y=void 0;this.cL=this.GJ.p;this.V=this.PF.bind(this);this.addOnDisposeCallback(()=>void jgP(this))}snapshot(b){return this.GJ.s({...(b.EA&&{c:b.EA}), ...(b.Qc&&{s:b.Qc}),...(b.Gq!==void 0&&{p:b.Gq})})}PF(b){this.GJ.e(b)}TP(){return this.GJ.l()}};var CNT=class extends g.N3{constructor(){super(...arguments);this.G6=1}share(){if(this.HY())throw Error("E:AD");this.G6++;return this}dispose(){--this.G6||super.dispose()}};var Mg2=class{constructor(b){this.G=b;Bd(b,"/client_streamz/bg/frs",g.Eh("mk"))}Sh(b,R){this.G.Sh("/client_streamz/bg/frs",b,R)}},rgx=class{constructor(b){this.G=b;Bd(b,"/client_streamz/bg/wrl",g.Eh("mn"),n2("ac"),n2("sc"),g.Eh("rk"),g.Eh("mk"))}Sh(b,R,h,K,I,N){this.G.Sh("/client_streamz/bg/wrl",b,R,h,K,I,N)}},LHK=class{constructor(b){this.Y=b;g.qf(b,"/client_streamz/bg/ec",g.Eh("en"),g.Eh("mk"))}G(b,R){g.fi(this.Y,"/client_streamz/bg/ec",b,R)}},wiB=class{constructor(b){this.G=b;Bd(b,"/client_streamz/bg/el", g.Eh("en"),g.Eh("mk"))}Sh(b,R,h){this.G.Sh("/client_streamz/bg/el",b,R,h)}},FH3=class{constructor(b){this.Y=b;g.qf(b,"/client_streamz/bg/cec",n2("ec"),g.Eh("mk"))}G(b,R){g.fi(this.Y,"/client_streamz/bg/cec",b,R)}},oFe=class{constructor(b){this.Y=b;g.qf(b,"/client_streamz/bg/po/csc",n2("cs"),g.Eh("mk"))}G(b,R){g.fi(this.Y,"/client_streamz/bg/po/csc",b,R)}},DMK=class{constructor(b){this.Y=b;g.qf(b,"/client_streamz/bg/po/ctav",g.Eh("av"),g.Eh("mk"))}G(b,R){g.fi(this.Y,"/client_streamz/bg/po/ctav",b, R)}},beK=class{constructor(b){this.Y=b;g.qf(b,"/client_streamz/bg/po/cwsc",g.Eh("su"),g.Eh("mk"))}G(b,R){g.fi(this.Y,"/client_streamz/bg/po/cwsc",b,R)}};var $NH=class extends zd{constructor(b){super(b)}};var Oh=class extends zd{constructor(b){super(b)}},QF=[1,2,3];var kW=class extends zd{constructor(b){super(b)}},YW=[1,2,3];var eG=class extends zd{constructor(b){super(b)}};var Rjx=class extends zd{constructor(b){super(b)}};var hjw=class extends zd{constructor(b){super(b)}},KNw=[1,2,3];var Tk=class extends zd{constructor(b){super(b)}Bq(){var b=x6(this,3,bq,3,!0);ah(b);return b[void 0]}};Tk.prototype.Y=FN([0,iF,[0,KNw,Ur,[0,iF,-1,gtH],Ur,[0,iF,-1,A8,gtH],Ur,[0,iF]],Srq,zI,[0,zI,[0,QF,ntB,iHD,WJq],[0,YW,A8x,jQT,Ur,[0,zI,[0,t_P,j_]]]],z3w,U_T]);var sVe=class extends zd{constructor(b){super(b)}};g.W=c9.prototype;g.W.isEnabled=function(){if(!g.JD.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{QH:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.W.set=function(b,R,h){let K;var I=!1;let N;if(typeof h==="object"){N=h.sameSite;I=h.secure||!1;K=h.domain||void 0;var p=h.path||void 0;var l=h.QH}if(/[;=\s]/.test(b))throw Error('Invalid cookie name "'+b+'"');if(/[;\r\n]/.test(R))throw Error('Invalid cookie value "'+R+'"');l===void 0&&(l=-1);h=K?";domain="+K:"";p=p?";path="+p:"";I=I?";secure":"";l=l<0?"":l==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+l*1E3)).toUTCString();this.G.cookie=b+"="+R+h+p+l+I+(N!=null? ";samesite="+N:"")}; g.W.get=function(b,R){const h=b+"=",K=(this.G.cookie||"").split(";");for(let I=0,N;I=0;R--)this.remove(b[R])}; var I$=new c9(typeof document=="undefined"?null:document);var $YH=class{async compress(b){var R=new CompressionStream("gzip");const h=(new Response(R.readable)).arrayBuffer();R=R.writable.getWriter();await R.write((new TextEncoder).encode(b));await R.close();return new Uint8Array(await h)}isSupported(b){return b<1024?!1:typeof CompressionStream!=="undefined"}};var Xv=class extends zd{constructor(b){super(b)}};var Ibw=class{constructor(b,R){this.intervalMs=b;this.callback=R;this.enabled=!1;this.G=()=>g.wK(); this.Y=this.G()}setInterval(b){this.intervalMs=b;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()}start(){this.enabled=!0;this.timer||(this.timer=setTimeout(()=>{this.tick()},this.intervalMs),this.Y=this.G())}stop(){this.enabled=!1; this.timer&&(clearTimeout(this.timer),this.timer=void 0)}tick(){if(this.enabled){const b=Math.max(this.G()-this.Y,0);b{this.tick()},this.intervalMs-b):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0}};var NUx=class extends zd{constructor(b){super(b)}};var pSq=class extends zd{constructor(b){super(b)}};g.VG=class extends zd{constructor(b){super(b)}Yd(){return qP(this,1)}};g.VG.prototype.qg=RK(1);var ra=class extends zd{constructor(b){super(b)}};var b5=class extends zd{constructor(b){super(b)}},J1e=oH(b5);var hY=class extends zd{constructor(b){super(b)}};var L2=["platform","platformVersion","architecture","model","uaFullVersion"],MT=new b5,wa=null;var oU=class extends zd{constructor(b){super(b)}};var lbq=class extends zd{constructor(b){super(b)}};var abq=class extends zd{constructor(b){super(b,4)}};var CH=class extends zd{constructor(b){super(b,36)}N(){const b=this.IY;return Rk(b,b[NK]|0,lbq,7)!==void 0}H3(){return hV(this,Xv,16)}};var v$P=class extends zd{constructor(b){super(b,19)}oC(b){return AV(this,2,b)}};var BUK=class{constructor(b,R=!1){this.sT=R;this.uach=this.locale=null;this.Y=0;this.isFinal=!1;this.G=new v$P;Number.isInteger(b)&&this.G.oC(b);R||(this.locale=document.documentElement.getAttribute("lang"));Rv(this,new oU)}oC(b){this.G.oC(b);return this}build(b,R=0,h=0,K=null,I=0,N=0){if(!this.sT){var p=DM(this);var l=new g.VG;l=AV(l,1,this.Y);l=J9(l,2,Ek(this.isFinal));h=J9(l,3,eW(h>0?h:void 0));I=J9(h,4,eW(I>0?I:void 0));N=J9(I,5,eW(N>0?N:void 0));I=N.IY;h=I[NK]|0;N=pI(N,h)?N:zo(N,I,h)?Uu(N,I): new N.constructor(iq(I,h,!0));NP(p,g.VG,10,N)}p=this.G.clone();N=Date.now().toString();p=J9(p,4,V4(N));b=lA(p,CH,3,b.slice());K&&(p=new NUx,K=J9(p,13,eW(K)),p=new pSq,K=NP(p,NUx,2,K),p=new abq,K=NP(p,pSq,1,K),K=AV(K,2,9),NP(b,abq,18,K));R&&yR(b,14,R);return b}};g.KU.prototype.Y=0;g.KU.prototype.reset=function(){this.G=this.X=this.V;this.Y=0}; g.KU.prototype.getValue=function(){return this.X};var kIw=class extends zd{constructor(b){super(b,8)}},Hex=oH(kIw);var M_;M_=new YrK(class extends zd{constructor(b){super(b)}});var qRK=class extends g.N3{constructor(b){super();this.componentId="";this.G=[];this.SY="";this.pageId=null;this.vY=this.nR=-1;this.D=this.experimentIds=null;this.G6=this.C=this.J=this.V=0;this.JX=1;this.timeoutMillis=0;this.T6=!1;this.logSource=b.logSource;this.AC=b.AC||(()=>{}); this.X=new BUK(b.logSource,b.sT);this.network=b.network||null;this.xa=b.xa||null;this.K=b.iM||null;this.sessionIndex=b.sessionIndex||null;this.z0=b.z0||!1;this.logger=null;this.withCredentials=!b.c5;this.sT=b.sT||!1;this.U=!this.sT&&!!dM()&&!!dM().navigator&&dM().navigator.sendBeacon!==void 0;this.gp=typeof URLSearchParams!=="undefined"&&!!(new URL(Iv())).searchParams&&!!(new URL(Iv())).searchParams.set;const R=FE(new oU);Rv(this.X,R);this.S=new g.KU(1E4,3E5,.1);b=eox(this,b.Q1);this.Y=new Ibw(this.S.getValue(), b);this.MJ=new Ibw(6E5,b);this.z0||this.MJ.start();this.sT||(document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Nq(this)}),document.addEventListener("pagehide",()=>{Nq(this)}))}X5(){Nq(this); this.Y.stop();this.MJ.stop();super.X5()}dispatch(b){if(b instanceof CH)this.log(b);else try{var R=new CH,h=b.MU();var K=tV(R,8,h);this.log(K)}catch{}}log(b){if(this.gp){b=b.clone();var R=this.JX++;b=yR(b,21,R);this.componentId&&tV(b,26,this.componentId);R=b;{var h=Eu(R,1);const K=typeof h;h=h==null?h:K==="bigint"?String(P$(64,h)):kc(h)?K==="string"?m5(h):Xz(h):void 0}h==null&&(h=Date.now(),h=Number.isFinite(h)?h.toString():"0",J9(R,1,V4(h)));(xc?LI(Eu(R,15,void 0,void 0,wd)):LI(Eu(R,15)))!=null|| yR(R,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(h=this.experimentIds.clone(),NP(R,Xv,16,h));R=this.G.length-1E3+1;R>0&&(this.G.splice(0,R),this.V+=R);this.G.push(b);this.z0||this.Y.enabled||this.Y.start()}}flush(b,R){if(this.G.length===0)b&&b();else if(this.T6&&this.U)this.X.Y=3,Qgs(this);else{var h=Date.now();if(this.vY>h&&this.nR{this.S.reset();this.Y.setInterval(this.S.getValue());if(B){var H=null;try{var q=JSON.stringify(JSON.parse(B.replace(")]}'\n","")));H=Hex(q)}catch(d){}if(H){B=Number(Bv(H,1,dd("-1")));B>0&&(this.nR=Date.now(),this.vY=this.nR+B);(B=oK(NZ))&&H.IY[B]?.[175237375]!= null&&sk(h3H,3);if(oK(KJT)&&oK(NZ)&&void 0===KJT&&(B=H.IY,q=B[NZ])&&(q=q.DY))try{q(B,175237375,NRx)}catch(d){OI(d)}H=M_.G?M_.Y(H,M_.G,175237375,M_.X):M_.Y(H,175237375,null,M_.X);if(H=H===null?void 0:H)H=g.vv(H,1,-1),H!==-1&&(this.S=new g.KU(H<1?1:H,3E5,.1),this.Y.setInterval(this.S.getValue()))}}b&&b();this.J=0},a=(B,H)=>{var q=$0(K,CH,3); var d=Number(Bv(K,14));g.sq(this.S);this.Y.setInterval(this.S.getValue());B===401&&I&&(this.SY=I);d&&(this.V+=d);H===void 0&&(H=this.isRetryable(B));H&&(this.G=q.concat(this.G),this.z0||this.Y.enabled||this.Y.start());R&&R("net-send-failed",B);++this.J},v=()=>{this.network&&this.network.send(p,l,a)}; N?N.then(B=>{p.requestHeaders["Content-Encoding"]="gzip";p.requestHeaders["Content-Type"]="application/binary";p.body=B;p.f_=2;v()},()=>{v()}):v()}}}}isRetryable(b){return 500<=b&&b<600||b===401||b===0}};var dY2=class{constructor(){this.rY=typeof AbortController!=="undefined"}async send(b,R,h){const K=this.rY?new AbortController:void 0,I=K?setTimeout(()=>{K.abort()},b.timeoutMillis):void 0; try{const N=await fetch(b.url,{method:b.requestType,headers:{...b.requestHeaders},...(b.body&&{body:b.body}),...(b.withCredentials&&{credentials:"include"}),signal:b.timeoutMillis&&K?K.signal:null});N.status===200?R?.(await N.text()):h?.(N.status)}catch(N){switch(N?.name){case "AbortError":h?.(408);break;default:h?.(400)}}finally{clearTimeout(I)}}Yd(){return 4}};var XD=class extends g.N3{constructor(){super();this.logSource=1828;this.sessionIndex="0";this.F0="https://play.google.com/log?format=json&hasfast=true";this.network=this.buildLabel=null;this.componentId="";this.G=this.xa=null;this.Y=!1;this.pageId=null}c5(){this.X=!0;return this}build(){this.network||(this.network=new dY2);const b=new qRK({logSource:this.logSource,AC:this.AC?this.AC:C2,sessionIndex:this.sessionIndex,iM:this.F0,sT:!1,z0:!1,c5:this.X,Q1:this.Q1,network:this.network});g.n(this,b);if(this.buildLabel){var R= this.buildLabel,h=DM(b.X);tV(h,7,R)}b.D=new $YH;this.componentId&&(b.componentId=this.componentId);this.xa&&(b.xa=this.xa);this.pageId&&(b.pageId=this.pageId);this.G&&((h=this.G)?(b.experimentIds||(b.experimentIds=new Xv),R=b.experimentIds,h=h.MU(),tV(R,4,h)):b.experimentIds&&J9(b.experimentIds,4));this.Y&&(b.T6=b.U);kZH(b.X);this.network.oC&&this.network.oC(this.logSource);this.network.wc&&this.network.wc(b);return b}};var I_3=class extends g.N3{constructor(b){super();this.logSource=1828;this.componentId="";b||(b=new XD,b.componentId="",g.n(this,b),b=b.build());this.G=b}flush(b){b=b||[];if(b.length){const R=new sVe,h=[];for(let K=0;K-1?(R=b[p],h||(R.Wm=!1)):(R=new Vlx(R,this.src,N,!!K,I),R.Wm=h,b.push(R));return R}; g.W.remove=function(b,R,h,K){b=b.toString();if(!(b in this.listeners))return!1;const I=this.listeners[b];R=yb(I,R,h,K);return R>-1?(qq(I[R]),g.Ut(I,R),I.length==0&&(delete this.listeners[b],this.G--),!0):!1}; g.W.removeAll=function(b){b=b&&b.toString();let R=0;for(const h in this.listeners)if(!b||h==b){const K=this.listeners[h];for(let I=0;I-1?b[I]:null}; g.W.hasListener=function(b,R){const h=b!==void 0,K=h?b.toString():"",I=R!==void 0;return g.XH(this.listeners,function(N){for(let p=0;p>>0);g.Dx(g.TD,g.N3);g.TD.prototype[Bj]=!0;g.W=g.TD.prototype;g.W.addEventListener=function(b,R,h,K){g.jy(this,b,R,h,K)}; g.W.removeEventListener=function(b,R,h,K){Wj(this,b,R,h,K)}; g.W.dispatchEvent=function(b){var R=this.mM;if(R){var h=[];for(var K=1;R;R=R.mM)h.push(R),++K}R=this.Dx;K=b.type||b;if(typeof b==="string")b=new g.av(b,R);else if(b instanceof g.av)b.target=b.target||R;else{var I=b;b=new g.av(K,R);g.pj(b,I)}I=!0;let N,p;if(h)for(p=h.length-1;!b.Y&&p>=0;p--)N=b.currentTarget=h[p],I=JY(N,K,!0,b)&&I;b.Y||(N=b.currentTarget=R,I=JY(N,K,!0,b)&&I,b.Y||(I=JY(N,K,!1,b)&&I));if(h)for(p=0;!b.Y&&pb&&AsyncContext.Snapshot.wrap(b):b=>b;var yms=class{constructor(b,R){this.X=b;this.V=R;this.Y=0;this.G=null}get(){let b;this.Y>0?(this.Y--,b=this.G,this.G=b.next,b.next=null):b=this.X();return b}put(b){this.V(b);this.Y<100&&(this.Y++,b.next=this.G,this.G=b)}};var YX;var tAK=class{constructor(){this.Y=this.G=null}add(b,R){const h=Qb.get();h.set(b,R);this.Y?this.Y.next=h:this.G=h;this.Y=h}remove(){let b=null;this.G&&(b=this.G,this.G=this.G.next,this.G||(this.Y=null),b.next=null);return b}},Qb=new yms(()=>new jVx,b=>b.reset()),jVx=class{constructor(){this.next=this.scope=this.G=null}set(b,R){this.G=b; this.scope=R;this.next=null}reset(){this.next=this.scope=this.G=null}};var rR,xX,Oq,Amw;xX=!1;Oq=new tAK;g.Mq=(b,R)=>{rR||Amw();xX||(rR(),xX=!0);Oq.add(b,R)}; Amw=()=>{const b=Promise.resolve(void 0);rR=()=>{b.then(LdT)}};ZG.prototype.reset=function(){this.context=this.Y=this.X=this.G=null;this.V=!1}; var cj=new yms(function(){return new ZG},function(b){b.reset()}); g.Pj.prototype.then=function(b,R,h){return Ki(this,kX(typeof b==="function"?b:null),kX(typeof R==="function"?R:null),h)}; g.Pj.prototype.$goog_Thenable=!0;g.W=g.Pj.prototype;g.W.finally=function(b){b=kX(b);return new g.Pj((R,h)=>{wq(this,K=>{b();R(K)},K=>{b(); h(K)})})}; g.W.xb=function(b,R){return Ki(this,null,kX(b),R)}; g.W.catch=g.Pj.prototype.xb;g.W.cancel=function(b){if(this.G==0){const R=new ht(b);g.Mq(function(){ov(this,R)},this)}}; g.W.oA=function(b){this.G=0;m2(this,2,b)}; g.W.qw=function(b){this.G=0;m2(this,3,b)}; g.W.R1=function(){let b;for(;b=DG(this);)bK(this,b,this.G,this.D);this.J=!1}; var $5=OI;g.Dx(ht,In);ht.prototype.name="cancel";g.Dx(g.IG,g.TD);g.W=g.IG.prototype;g.W.enabled=!1;g.W.i5=null;g.W.setInterval=function(b){this.zk=b;this.i5&&this.enabled?(this.stop(),this.start()):this.i5&&this.stop()}; g.W.Sp=function(){if(this.enabled){const b=g.wK()-this.HE;b>0&&bR.G.size); b.length&&this.K.flush(b,this.J);DET(b);this.S=0;this.G.enabled&&this.G.stop()}Sh(b,R,...h){(b=tt(this,b))&&b instanceof vd&&(b.Sh(R,h),yq(this))}};var EW=class extends Error{constructor(b,R,h={}){super(R);this.code=b;this.metadata=h;this.name="RpcError";Object.setPrototypeOf(this,new.target.prototype)}toString(){let b=`RpcError(${b0T(this.code)||String(this.code)})`;this.message&&(b+=": "+this.message);return b}};iK.prototype.MU=function(b){const R=[];UH(this,b,R);return R.join("")}; var gS={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},Rh2=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;var ies;g.Dx(SS,Wd);SS.prototype.G=function(){return new XMLHttpRequest}; ies=new SS;g.Dx(g.ni,g.TD);var sF2=/^https?$/i,zjx=["POST","PUT"],EH=[];g.W=g.ni.prototype;g.W.nO=function(){this.dispose();g.G3(EH,this)}; g.W.send=function(b,R,h,K){if(this.G)throw Error("[goog.net.XhrIo] Object is active with another request="+this.K+"; newUri="+b);R=R?R.toUpperCase():"GET";this.K=b;this.V="";this.Y=0;this.C=!1;this.X=!0;this.G=this.MJ?this.MJ.G():ies.G();this.G.onreadystatechange=kX((0,g.Ms)(this.Hj,this));try{this.getStatus(),this.nR=!0,this.G.open(R,String(b),!0),this.nR=!1}catch(N){this.getStatus();k5(this,N);return}b=h||"";h=new Map(this.headers);if(K)if(Object.getPrototypeOf(K)===Object.prototype)for(var I in K)h.set(I, K[I]);else if(typeof K.keys==="function"&&typeof K.get==="function")for(const N of K.keys())h.set(N,K.get(N));else throw Error("Unknown input type for opt_headers: "+String(K));K=Array.from(h.keys()).find(N=>"content-type"==N.toLowerCase()); I=g.JD.FormData&&b instanceof g.JD.FormData;!g.iR(zjx,R)||K||I||h.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const [N,p]of h)this.G.setRequestHeader(N,p);this.T6&&(this.G.responseType=this.T6);"withCredentials"in this.G&&this.G.withCredentials!==this.D&&(this.G.withCredentials=this.D);try{this.J&&(clearTimeout(this.J),this.J=null),this.G6>0&&(this.getStatus(),this.J=setTimeout(this.i_.bind(this),this.G6)),this.getStatus(),this.U=!0,this.G.send(b),this.U=!1}catch(N){this.getStatus(), k5(this,N)}}; g.W.i_=function(){typeof Y5!="undefined"&&this.G&&(this.V="Timed out after "+this.G6+"ms, aborting",this.Y=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.W.abort=function(b){this.G&&this.X&&(this.getStatus(),this.X=!1,this.S=!0,this.G.abort(),this.S=!1,this.Y=b||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Jt(this))}; g.W.X5=function(){this.G&&(this.X&&(this.X=!1,this.S=!0,this.G.abort(),this.S=!1),Jt(this,!0));g.ni.d3.X5.call(this)}; g.W.Hj=function(){this.HY()||(this.nR||this.U||this.S?Qq(this):this.XJ())}; g.W.XJ=function(){Qq(this)}; g.W.isActive=function(){return!!this.G}; g.W.isComplete=function(){return g.eS(this)==4}; g.W.getStatus=function(){try{return g.eS(this)>2?this.G.status:-1}catch(b){return-1}}; g.W.getResponseHeader=function(b){if(this.G&&this.isComplete())return b=this.G.getResponseHeader(b),b===null?void 0:b}; g.W.getLastError=function(){return typeof this.V==="string"?this.V:String(this.V)};var Pix=class{send(b,R=()=>{},h=()=>{}){KM3(b.url,K=>{K=K.target; OH(K)?R(g.x5(K)):h(K.getStatus())},b.requestType,b.body,b.requestHeaders,b.timeoutMillis,b.withCredentials)}Yd(){return 1}};var LH=class{constructor(b,R){this.logger=b;this.event=R;this.startTime=cd()}done(){this.logger.X(this.event,cd()-this.startTime)}},wR=class extends CNT{constructor(){super(...arguments);this.w2={H3:()=>[]}}},Ci=class extends wR{V(){}G(){}X(){}cg(){}Y(){}S(b,R,h,K){return K}K(){}J(){}D(){}},UYP=class extends wR{constructor(b){super(); this.logger=b;this.w2={eZR:()=>this.logger, H3:()=>this.logger.w2.H3()}; this.addOnDisposeCallback(()=>void this.logger.dispose())}update(b){this.logger.dispose(); this.logger=b}G(b){this.logger.G(b)}X(b,R){this.logger.X(b,R)}cg(b){this.logger.cg(b)}Y(){this.logger.Y()}S(b,R,h,K){return this.logger.S(b,R,h,K)}K(b){this.logger.K(b)}J(b){this.logger.J(b)}D(b){this.logger.D(b)}V(b){this.logger.V(b)}},G2x=class extends g.N3{constructor(b,R){super();this.callback=b;this.Y=R;this.G=-R;this.addOnDisposeCallback(()=>void clearTimeout(this.timer))}},g$q=class extends wR{constructor(b,R){super(); this.metrics=b;this.sV=R}V(b){this.metrics.Pp.Sh(b,this.sV)}G(b){this.metrics.eventCount.G(b,this.sV)}X(b,R){this.metrics.CO.Sh(R,b,this.sV)}cg(b){this.metrics.errorCount.G(b,this.sV)}S(b,R,h,K){const I=cd(),N=p=>{if(!this.HY()){var l=cd()-I;this.metrics.RA.Sh(l,b,h,p,R,this.sV)}}; K.then(()=>void N(0),p=>void N(p instanceof EW?p.code:-1)); return K}K(b){this.metrics.kx.G(b,this.sV)}J(b){this.metrics.Ut.G(b,this.sV)}D(b){this.metrics.tL.G(b,this.sV)}},l_e=class extends g$q{constructor(b,R=[]){const h={sV:b.sV||"_",xC:b.xC||[],bu:b.bu|0,F0:b.F0,xU:b.xU||(()=>{}), Fb:b.Fb||((I,N)=>NMx(I,N,h.xU,h.F0))},K=h.Fb("53",h.xC.concat(R)); super({Pp:new Mg2(K),errorCount:new FH3(K),eventCount:new LHK(K),CO:new wiB(K),RA:new rgx(K),kx:new oFe(K),Ut:new DMK(K),tL:new beK(K)},h.sV);this.w2={H3:()=>this.options.xC.concat(this.nR).sort((I,N)=>I-N)}; this.options=h;this.service=K;this.C=!b.Fb;this.U=new G2x(()=>void this.service.V(),h.bu); this.addOnDisposeCallback(()=>{this.U.dispose();this.C&&this.service.dispose()}); g.Ot(this.nR=R.slice())}Y(){p_K(this.U)}};var FD=class extends zd{constructor(b){super(b)}};var oG=class extends zd{constructor(b){super(b)}};var sW=class extends zd{constructor(b){super(b,0,sW.messageId)}},i0T=oH(sW),WNx=function(b){return ST(R=>R instanceof b&&!pI(R))}(sW); sW.messageId="bfkj";var Gk=class extends zd{constructor(b){super(b)}};var SRw=class extends zd{constructor(b){super(b)}},n$2=oH(SRw);g.d$=class{constructor(){this.promise=new Promise((b,R)=>{this.resolve=b;this.reject=R})}};var Hc=class extends g.N3{constructor(b){super();this.Y=Math.floor(Math.random()*200);this.G=new SRw;let R;if("challenge"in b&&WNx(b.challenge)){R=Hv(b.challenge,4,void 0,B$);var h=Hv(b.challenge,5,void 0,B$);Hv(b.challenge,7,void 0,B$)&&(this.G=n$2(Hv(b.challenge,7,void 0,B$)))}else({program:R,globalName:h}=b);this.addOnDisposeCallback(async()=>{const {Rd:v}=await this.X;v?.()}); this.logger=Mf(b.BP||{},this.G);g.n(this,this.logger);const K=new g.d$;this.X=K.promise;this.logger.G("t");const I=this.logger.share(),N=new LH(I,"t"),p=(v,B,H,q)=>{if(!this.logger.HY()){var d="k";B?d="h":H&&(d="u");d!=="k"?q!==0&&(this.logger.G(d),this.logger.X(d,v)):this.Y<=0?(this.logger.G(d),this.logger.X(d,v),this.Y=Math.floor(Math.random()*200)):this.Y--}},l=(v,B,H,q)=>{Promise.resolve().then(()=>{N.done(); I.Y();I.dispose();K.resolve({i$:v,Rd:B,wd:H,jcX:q})})}; if(!g.JD[h])throw this.logger.cg(25),Error("EGOU");if(!g.JD[h].a)throw this.logger.cg(26),Error("ELIU");try{const v=g.JD[h].a;h=[];const B=[];var a=W9(this.G);for(let d=0;d{})}catch(v){throw this.logger.cg(28),v; }}snapshot(b){if(this.HY())throw Error("Already disposed");this.logger.G("n");const R=this.logger.share();return this.X.then(({i$:h})=>new Promise(K=>{const I=new LH(R,"n");h(N=>{I.done();R.V(N.length);R.Y();R.dispose();K(N)},[b.EA, b.Qc,b.Wv,b.Gq])}))}ej(b){if(this.HY())throw Error("Already disposed"); this.logger.G("n");const R=uK(this.logger,()=>this.V([b.EA,b.Qc,b.Wv,b.Gq]),"n"); this.logger.V(R.length);this.logger.Y();return R}PF(b){this.X.then(({wd:R})=>{R?.(b)})}TP(){return this.logger.share()}};var rS=class{constructor(){this.Y={};this.G=null}};var KT=class extends zd{constructor(b){super(b)}};var I_=class extends zd{constructor(b){super(b)}};var l6=class{constructor(b,R,h){this.client=b;this.requestKey=R;this.G=h}df(b){return pT(this,b,new Ci,0)}};var SM=class extends g.N3{constructor(b){super();this.options=b;this.J=new g.d$;this.cL=this.J.promise;this.S=new g.d$;this.K=1;this.Y=new g.d$;this.V=[];this.isPaused=!1;this.Ek=b.Ek||(()=>{}); this.logger=new UYP(Mf(b.BP||{}));WMe(this,b.rE,b.LHp,b.eW9,b.Isp,{...E$2,...(b.GZ||{})});this.addOnDisposeCallback(()=>void SUK(this))}async snapshot(b){if(this.HY())throw Error("Already disposed"); this.X||this.D||await this.S.promise;if(this.X)return await this.X.snapshot(b);throw this.D;}pause(){this.HY()||this.isPaused||(this.isPaused=!0,this.G&&this.G.pause())}resume(){!this.HY()&&this.isPaused&&(this.isPaused=!1,this.G&&this.G.resume())}async checkForRefresh(){if(this.HY())throw Error("Already disposed");if(this.G){var b=this.G;b.isExpired()?(fT(b),b.f6(0),b=!0):b=!1;b&&await this.Y.promise}else await this.Y.promise}PF(b){this.X?.PF?.(b)}handleError(b){this.HY()||(this.D=b,this.S.resolve(), this.options.uh?.(b))}TP(){return this.logger.share()}},E$2={Bi:432E5,Ao:3E5,g7:10,yv:1E4,Yo:3E4,Zy:3E4,Wi:6E4,Ob:1E3,w$:6E4,fO:6E5,WG:.25,LO:2,maxAttempts:10},Bc=class{constructor(b,R,h){this.endTimeMs=0;this.G=null;this.isPaused=!1;this.tick=()=>{if(!this.isPaused){var K=this.endTimeMs-Date.now();K<=this.X?(this.G=null,this.f6(0)):this.G=setTimeout(this.tick,Math.min(K,this.Ao))}}; this.Ao=R;this.X=h;this.promise=new Promise(K=>{this.f6=K}); TMK(this,b)}pause(){this.isPaused||(this.isPaused=!0,fT(this))}resume(){this.isPaused&&(this.isPaused=!1,this.tick())}Y(){fT(this);this.endTimeMs=0;this.isPaused=!1;this.f6(1)}isExpired(){return Date.now()>this.endTimeMs}};var JxT=Math.imul??((b,R)=>b*R|0),jM=[196, 200,224,18],zU=class{constructor(b,R=0,h=[]){this.maxItems=b;this.G=R;this.Y=h}MU(){return String(this.G)+","+this.Y.join()}Aq(b,R){let h=void 0;if(this.Y[this.G]!==b){const K=this.Y.indexOf(b);K!==-1?(this.Y.splice(K,1),KkF3(this.index,Ay(b),R,h,K),"W"):"u"; this.logger.D(I)}Y(b,R){const [h,K]=this.index?uK(this.logger,()=>YUH(Ay(b),R),"R"):["u"]; this.logger.J(h);return K}};var QF3={toString:function(b){let R=[],h=0;b-=-2147483648;R[h++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(b%52);for(b=Math.floor(b/52);b>0;)R[h++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(b%62),b=Math.floor(b/62);return R.join("")}};var Fv=class extends g.N3{constructor(b){super();this.logger=b;this.V=new g.d$}S$(b,R){const h=this.X(b);R?.(h);return uK(this.logger,()=>g.Zc(h,2),this.Y)}vA(b,R,h){return uK(this.logger,()=>R?this.S$(b,h):this.X(b,h),this.G)}},Jy=class extends Fv{constructor(b,R,h,K){super(b); this.S=R;this.D=h;this.G="m";this.Y="x";this.J=0;GU(this,K)}X(b,R){this.logger.G(this.G);++this.J>=this.D&&this.V.resolve();const h=b();b=uK(this.logger,()=>this.S(h),"C"); if(b===void 0)throw new Uh(17,"YNJ:Undefined");if(!(b instanceof Uint8Array))throw new Uh(18,"ODM:Invalid");R?.(b);return b}},ubD=class extends Fv{constructor(b,R,h){super(b);this.S=R;this.G="f";this.Y="z";GU(this,h)}X(){return this.S}},cx2=class extends Fv{constructor(b,R,h){super(b);this.S=R;this.G="w";this.Y="z";GU(this,h)}X(){return uK(this.logger,()=>Vo(this.S),"d")}S$(){return this.S}},rxB=class extends Fv{constructor(b,R){super(b); this.error=R;this.G="e";this.Y="y"}X(){if(this.S)return this.S;this.S=Wc(this,b=>"_"+xNw(b)); return Wc(this,b=>b)}},OW=class extends Fv{constructor(b,R,h){super(b); this.S=R;this.clientState=h;this.G="S";this.Y="q"}X(){var b=Math.floor(Date.now()/1E3),R=[Math.random()*255,Math.random()*255],h=R.concat([this.S&255,this.clientState],[b>>24&255,b>>16&255,b>>8&255,b&255]);b=new Uint8Array(2+h.length);b[0]=34;b[1]=h.length;b.set(h,2);h=b.subarray(2);R=R.length;for(let K=R;K{}); this.t6=b.t6||!1;if(k23(b)){const K=this.GJ;this.J=()=>nsT(K).catch(I=>{this.Y=I=this.reportError(new Uh(this.G?20:32,"TRG:Disposed",I));this.G?.dispose();this.G=void 0;this.V.reject(I)}); Ese(K,()=>void TU(this)); K.K===2&&TU(this)}else this.J=b.FZr,TU(this);const R=this.logger.share();R.G("o");const h=new LH(R,"o");this.V.promise.then(()=>{h.done();R.Y();R.dispose()},()=>void R.dispose()); this.addOnDisposeCallback(()=>{this.G?(this.G.dispose(),this.G=void 0):this.Y?this.logger.Y():(this.Y=this.reportError(new Uh(32,"TNP:Disposed")),this.logger.Y(),this.V.reject(this.Y))}); g.n(this,this.logger)}Ef(){return this.V.promise}X(b){return YQ(this,{...b},!1)}S$(b){return YQ(this,{...b},!0)}JM(b){if(!(b>150))try{this.cache=new TUx(b,this.logger)}catch(R){this.reportError(new Uh(22,"GBJ:init",R))}}reportError(b){this.logger.cg(b.code);this.onError(b);return b}},k23=function(b){return ST(R=>{if(!R3T(R))return!1;for(const [h,K]of Object.entries(b)){const I=h,N=K;if(!(I in R)){if(N.RB6===!0)continue;return!1}if(!N(R[I]))return!1}return!0})}({GJ:function(b){return ST(R=>R instanceof b)}(SM)},"");var YR3=class{constructor(){var b=g.o1();this.Y=b;g.qf(b,"/client_streamz/youtube/aba/gac",n2("type"),n2("sequence"))}G(b,R){g.fi(this.Y,"/client_streamz/youtube/aba/gac",b,R)}};var p$x=(new Date).getTime();var ej3=class extends zd{constructor(b){super(b)}};var Oes=class{constructor(b,R,h){this.uI=b;this.k8=R;this.metadata=h}getMetadata(){return this.metadata}};var LM3=class{constructor(b,R={}){this.q7=b;this.metadata=R;this.status=null}getMetadata(){return this.metadata}getStatus(){return this.status}};var QVP=class{constructor(b,R,h,K,I){this.name=b;this.methodType="unary";this.requestType=R;this.responseType=h;this.G=K;this.Y=I}J(b,R={}){return new Oes(b,this,R)}getName(){return this.name}};var xYT=new QVP("/google.internal.waa.v1.Waa/Create",KT,ej3,b=>b.MU(),oH(ej3));var mY3=class extends zd{constructor(b){super(b)}};var zhD=new QVP("/google.internal.waa.v1.Waa/GenerateIT",I_,mY3,b=>b.MU(),oH(mY3));var qI3=new Set(["SAPISIDHASH","APISIDHASH"]);var DNx=class extends zd{constructor(b){super(b)}getValue(){const b=Eu(this,2);if(Array.isArray(b)||b instanceof zd)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return uq(this,2)}};var osD=oH(class extends zd{constructor(b){super(b)}getMessage(){return Hv(this,2)}});var yRx=class{constructor(b,R){this.Y=[];this.V=[];this.S=[];this.X=[];this.G=[];this.J=b.tH;this.D=R;this.xhr=b.xhr;this.J&&FM3(this)}Qb(b,R){b==="data"?this.Y.push(R):b==="metadata"?this.V.push(R):b==="status"?this.S.push(R):b==="end"?this.X.push(R):b==="error"&&this.G.push(R)}removeListener(b,R){b==="data"?Xx(this.Y,R):b==="metadata"?Xx(this.V,R):b==="status"?Xx(this.S,R):b==="end"?Xx(this.X,R):b==="error"&&Xx(this.G,R);return this}cancel(){this.xhr.abort()}},bKe=class extends Error{constructor(){super(); this.name="AsyncStack";Object.setPrototypeOf(this,new.target.prototype)}};g.Dx(g.CT,Wd);g.CT.prototype.G=function(){const b=new M2(this.V,this.X);this.Y&&b.setCredentialsMode(this.Y);return b}; g.CT.prototype.setCredentialsMode=function(b){this.Y=b}; g.Dx(M2,g.TD);g.W=M2.prototype;g.W.open=function(b,R){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.C=b;this.G6=R;this.readyState=1;LT(this)}; g.W.send=function(b){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");if(this.K.signal.aborted)throw this.abort(),Error("Request was aborted.");this.G=!0;const R={headers:this.U,method:this.C,credentials:this.S,cache:void 0,signal:this.K.signal};b&&(R.body=b);(this.nR||g.JD).fetch(new Request(this.G6,R)).then(this.dI.bind(this),this.h5.bind(this))}; g.W.abort=function(){this.response=this.responseText="";this.U=new Headers;this.status=0;this.K.abort("Request was aborted.");this.X&&this.X.cancel("Request was aborted.").catch(()=>{}); this.readyState>=1&&this.G&&this.readyState!=4&&(this.G=!1,w$(this));this.readyState=0}; g.W.dI=function(b){if(this.G&&(this.V=b,this.Y||(this.status=this.V.status,this.statusText=this.V.statusText,this.Y=b.headers,this.readyState=2,LT(this)),this.G&&(this.readyState=3,LT(this),this.G)))if(this.responseType==="arraybuffer")b.arrayBuffer().then(this.Kk.bind(this),this.h5.bind(this));else if(typeof g.JD.ReadableStream!=="undefined"&&"body"in b){this.X=b.body.getReader();if(this.J){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response= []}else this.response=this.responseText="",this.D=new TextDecoder;r$(this)}else b.text().then(this.jt.bind(this),this.h5.bind(this))}; g.W.pk=function(b){if(this.G){if(this.J&&b.value)this.response.push(b.value);else if(!this.J){var R=b.value?b.value:new Uint8Array(0);if(R=this.D.decode(R,{stream:!b.done}))this.response=this.responseText+=R}b.done?w$(this):LT(this);this.readyState==3&&r$(this)}}; g.W.jt=function(b){this.G&&(this.response=this.responseText=b,w$(this))}; g.W.Kk=function(b){this.G&&(this.response=b,w$(this))}; g.W.h5=function(){this.G&&w$(this)}; g.W.setRequestHeader=function(b,R){this.U.append(b,R)}; g.W.getResponseHeader=function(b){return this.Y?this.Y.get(b.toLowerCase())||"":""}; g.W.getAllResponseHeaders=function(){if(!this.Y)return"";const b=[],R=this.Y.entries();for(var h=R.next();!h.done;)h=h.value,b.push(h[0]+": "+h[1]),h=R.next();return b.join("\r\n")}; g.W.setCredentialsMode=function(b){this.S=b}; Object.defineProperty(M2.prototype,"withCredentials",{get:function(){return this.S==="include"}, set:function(b){this.setCredentialsMode(b?"include":"same-origin")}});g.Fx.prototype.toString=function(){const b=[];var R=this.S;R&&b.push(sj(R,Ptq,!0),":");var h=this.G;if(h||R=="file")b.push("//"),(R=this.K)&&b.push(sj(R,Ptq,!0),"@"),b.push(g.A1(h).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),h=this.X,h!=null&&b.push(":",String(h));if(h=this.Y)this.G&&h.charAt(0)!="/"&&b.push("/"),b.push(sj(h,h.charAt(0)=="/"?Ze3:cmT,!0));(h=this.V.toString())&&b.push("?",h);(h=this.J)&&b.push("#",sj(h,u$K));return b.join("")}; g.Fx.prototype.resolve=function(b){const R=this.clone();let h=!!b.S;h?g.o_(R,b.S):h=!!b.K;h?R.K=b.K:h=!!b.G;h?g.Da(R,b.G):h=b.X!=null;var K=b.Y;if(h)g.bL(R,b.X);else if(h=!!b.Y){if(K.charAt(0)!="/")if(this.G&&!this.Y)K="/"+K;else{var I=R.Y.lastIndexOf("/");I!=-1&&(K=R.Y.slice(0,I+1)+K)}I=K;if(I==".."||I==".")K="";else if(g.yX(I,"./")||g.yX(I,"/.")){K=q$(I,"/");I=I.split("/");const N=[];for(let p=0;p1||N.length==1&&N[0]!= "")&&N.pop(),K&&p==I.length&&N.push("")):(N.push(l),K=!0)}K=N.join("/")}else K=I}h?R.Y=K:h=b.V.toString()!=="";h?RI(R,b.V.clone()):h=!!b.J;h&&(R.J=b.J);return R}; g.Fx.prototype.clone=function(){return new g.Fx(this)}; var Ptq=/[#\/\?@]/g,cmT=/[#\?:]/g,Ze3=/[#\?]/g,IcD=/[#\?@]/g,u$K=/#/g;g.W=Kl.prototype;g.W.add=function(b,R){NW(this);this.X=null;b=pl(this,b);let h=this.G.get(b);h||this.G.set(b,h=[]);h.push(R);this.Y=this.Y+1;return this}; g.W.remove=function(b){NW(this);b=pl(this,b);return this.G.has(b)?(this.X=null,this.Y=this.Y-this.G.get(b).length,this.G.delete(b)):!1}; g.W.clear=function(){this.G=this.X=null;this.Y=0}; g.W.isEmpty=function(){NW(this);return this.Y==0}; g.W.forEach=function(b,R){NW(this);this.G.forEach(function(h,K){h.forEach(function(I){b.call(R,I,K,this)},this)},this)}; g.W.WM=function(){NW(this);const b=Array.from(this.G.values()),R=Array.from(this.G.keys()),h=[];for(let K=0;K0?String(b[0]):R}; g.W.toString=function(){if(this.X)return this.X;if(!this.G)return"";const b=[],R=Array.from(this.G.keys());for(let K=0;K>>3;N.X!=1&&N.X!=2&&N.X!=15&&yv(N,p,l,"unexpected tag");N.G=1;N.Y=0;N.V=0} function h(a){N.V++;N.V==5&&a&240&&yv(N,p,l,"message length too long");N.Y|=(a&127)<<(N.V-1)*7;a&128||(N.G=2,N.K=0,typeof Uint8Array!=="undefined"?N.S=new Uint8Array(N.Y):N.S=Array(N.Y),N.Y==0&&I())} function K(a){N.S[N.K++]=a;N.K==N.Y&&I()} function I(){if(N.X<15){const a={};a[N.X]=N.S;N.D.push(a)}N.G=0} const N=this,p=b instanceof Array?b:new Uint8Array(b);let l=0;for(;l0?b:null};tl.prototype.isInputValid=function(){return this.G===null}; tl.prototype.e6=function(){return this.G}; tl.prototype.SC=function(){return!1}; tl.prototype.parse=function(b){this.G!==null&&jB(this,b,"stream already broken");let R=null;try{{var h=this.X;h.X||d0(h,b,"stream already broken");h.G+=b;const N=Math.floor(h.G.length/4);if(N==0)var K=null;else{try{var I=XB(h.G.slice(0,N*4))}catch(p){d0(h,h.G,p.message)}h.Y+=N*4;h.G=h.G.slice(N*4);K=I}}R=K===null?null:this.V.parse(K)}catch(N){jB(this,b,N.message)}this.Y+=b.length;return R};g.W=iL.prototype;g.W.isInputValid=function(){return this.S!=3}; g.W.e6=function(){return this.U}; g.W.done=function(){return this.S===2}; g.W.SC=function(){return!1}; g.W.parse=function(b){function R(){for(;H0;)if(d=b[H++],N.K===4?N.K=0:N.K++,!d)break a;if(d==='"'&&!N.D){N.G=K();break}if(d==="\\"&&!N.D&&(N.D=!0,d=b[H++], !d))break;if(N.D)if(N.D=!1,d==="u"&&(N.K=1),d=b[H++])continue;else break;l.lastIndex=H;d=l.exec(b);if(!d){H=b.length+1;break}H=d.index+1;d=b[d.index];if(!d)break}N.X+=H-t;continue;case 9:if(!d)continue;d==="r"?N.G=10:z4(N,b,H);continue;case 10:if(!d)continue;d==="u"?N.G=11:z4(N,b,H);continue;case 11:if(!d)continue;d==="e"?N.G=K():z4(N,b,H);continue;case 12:if(!d)continue;d==="a"?N.G=13:z4(N,b,H);continue;case 13:if(!d)continue;d==="l"?N.G=14:z4(N,b,H);continue;case 14:if(!d)continue;d==="s"?N.G=15: z4(N,b,H);continue;case 15:if(!d)continue;d==="e"?N.G=K():z4(N,b,H);continue;case 16:if(!d)continue;d==="u"?N.G=17:z4(N,b,H);continue;case 17:if(!d)continue;d==="l"?N.G=18:z4(N,b,H);continue;case 18:if(!d)continue;d==="l"?N.G=K():z4(N,b,H);continue;case 19:d==="."?N.G=20:z4(N,b,H);continue;case 20:if("0123456789.eE+-".indexOf(d)!==-1)continue;else H--,N.X--,N.G=K();continue;default:z4(N,b,H)}}} function K(){const d=p.pop();return d!=null?d:1} function I(d){N.Y>1||(d||(d=B===-1?N.V+b.substring(v,H):b.substring(B,H)),N.G6?N.J.push(d):N.J.push(JSON.parse(d)),B=H)} const N=this,p=N.C,l=N.nR,a=b.length;let v=0,B=-1,H=0;for(;H0?(q=N.J,N.J=[],q):null}return null};Uj.prototype.isInputValid=function(){return this.S===null}; Uj.prototype.e6=function(){return this.S}; Uj.prototype.SC=function(){return!1}; Uj.prototype.parse=function(b){function R(a){N.Y=6;N.S="The stream is broken @"+N.G+"/"+p+". Error: "+a+". With input:\n";throw Error(N.S);} function h(){N.X=new iL({ccY:!0,r$:!0})} function K(a){if(a)for(let v=0;v1)&&R("extra status: "+a);N.J=!0;const v={};v[2]=a[0];N.V.push(v)}} const N=this;let p=0;for(;p0?(b=N.V,N.V=[],b):null};var dBP=class{constructor(b){this.G=b;this.Y=null;this.S=this.X=0;this.U=!1;this.V=this.D=this.J=null;this.K=new g.HP(this);this.K.listen(this.G,"readystatechange",this.G6)}H8(){return this.G}getStatus(){return this.S}G6(b){b=b.target;try{if(b==this.G)a:{const N=g.eS(this.G);var R=this.G.Y,h=this.G.getStatus();const p=g.x5(this.G);b=[];if(g.mr(this.G)instanceof Array){const l=g.mr(this.G);l.length>0&&l[0]instanceof Uint8Array&&(this.U=!0,b=l)}if(!(N<3||N==3&&!p&&b.length==0))if(h=h==200||h==206,N== 4&&(R==8?G4(this,7):R==7?G4(this,8):h||G4(this,3)),this.Y||(this.Y=lcK(this.G),this.Y==null&&G4(this,5)),this.S>2)g0(this);else{if(b.length>this.X){const l=b.length;R=[];try{if(this.Y.SC())for(var K=0;Kthis.X){K=p.slice(this.X);this.X=p.length;try{const l=this.Y.parse(K);l!=null&&this.V&&this.V(l)}catch(l){G4(this,5);g0(this);break a}}N==4?(p.length!=0||this.U?G4(this,2):G4(this,4),g0(this)):G4(this,1)}}}catch(N){G4(this,6),g0(this)}}};var fcw=class{constructor(b){b=this.X=b;var R=(0,g.Ms)(this.V,this);b.V=R;b=this.X;R=(0,g.Ms)(this.S,this);b.D=R;this.Y={};this.G={}}Qb(b,R){let h=this.Y[b];h||(h=[],this.Y[b]=h);h.push(R)}addListener(b,R){this.Qb(b,R);return this}removeListener(b,R){const h=this.Y[b];h&&g.G3(h,R);(b=this.G[b])&&g.G3(b,R);return this}once(b,R){let h=this.G[b];h||(h=[],this.G[b]=h);h.push(R);return this}V(b){var R=this.Y.data;R&&WP(b,R);(R=this.G.data)&&WP(b,R);this.G.data=[]}S(){switch(this.X.getStatus()){case 1:SB(this, "readable");break;case 5:case 6:case 4:case 7:case 3:SB(this,"error");break;case 8:SB(this,"close");break;case 2:SB(this,"end")}}};var tT3=class{constructor(){var b={format:"jspb"};this.GQ=b.GQ||g.YB("suppressCorsPreflight",b)||!1;this.withCredentials=b.withCredentials||g.YB("withCredentials",b)||!1;this.Pv=b.Pv||[];this.qx=b.qx||[];this.Ly=b.Ly;this.G=b.HNY||!1}serverStreaming(b,R,h,K){const I=b.substring(0,b.length-K.name.length);return acK(N=>{const p=N.k8;var l=N.getMetadata();const a=nl(this,!1);l=Ej(this,l,a,I+p.getName());const v=T4(a,p.Y,!0);N=p.G(N.uI);a.send(l,"POST",N);return v},this.Pv).call(this,K.J(R,h))}};Jl.prototype.create=function(b,R,h){return N2(this.G,this.Y+"/$rpc/google.internal.waa.v1.Waa/Create",b,R||{},xYT,h)};var oQ=class{constructor(b,R){this.lL=3;this.Mp=b;this.defaultValue=R;this.mO="bool"}},DX=class{constructor(b,R){this.lL=3;this.Mp=b;this.defaultValue=R;this.mO="double"}};var waq,fuB,dzD,g2H,CtH,KVH,MA2,fL2,rm2,LNK,wSx,FNT,o$x,DYK,RVq,hVK,K4D,sCP,dys,ek,Nhx,psK,$Xx,Its,n23,NFx,jRe,pKK,I7B,ltT,i4x,atw,vR3,BFw,Hmq,qXq,dX2,fte,yW2,tV2,bN,HnK,YG,Cfx,bwK,jCP,AWP,tee,vCq;waq=new oQ(45759580,!1);fuB=new oQ(45756201,!1);g.VAq=new oQ(45757878,!1);dzD=new oQ(45749396,!1);g2H=new oQ(45751227,!1);CtH=new oQ(45751228,!1);KVH=new oQ(45745123,!1);MA2=new oQ(45742118,!1);fL2=new oQ(45742119,!1);rm2=new oQ(45754339,!1);LNK=new oQ(45757087,!1);wSx=new oQ(45756446,!1); FNT=new oQ(45739196,!1);o$x=new oQ(45739198,!1);DYK=new oQ(45739197,!1);g.bmP=new class{constructor(b,R,h,K){this.lL=b;this.Mp=R;this.defaultValue=K;this.mO="int"}}(3,45750947,"drop_large_caption_max_bytes_per_second",dd("0"));RVq=new DX(45746966,0);hVK=new DX(45746967,0);K4D=new DX(45737488,0);sCP=new DX(45737489,0);dys=new oQ(45732791,!0);ek=new oQ(45728572,!1);Nhx=new oQ(45737482,!1);psK=new DX(45741773,0);$Xx=new oQ(45754595,!1);Its=new oQ(45731083,!1);n23=new oQ(45728553,!1); NFx=new oQ(45734191,!1);jRe=new oQ(45745610,!1);pKK=new oQ(45746773,!1);I7B=new oQ(45756619,!1);ltT=new oQ(45758290,!1);i4x=new oQ(45735523,!1);atw=new DX(45735428,4E3);vR3=new oQ(45748009,!1);BFw=new oQ(45752604,!1);Hmq=new oQ(45755066,!1);qXq=new oQ(45735462,!1);dX2=new oQ(45751943,!1);fte=new oQ(45751944,!1);yW2=new oQ(45751945,!1);tV2=new oQ(45756939,!1);bN=new oQ(45727949,!1);HnK=new oQ(45752871,!1);YG=new oQ(45728181,!1);Cfx=new oQ(45746180,!1);bwK=new oQ(45756543,!1);jCP=new oQ(45756620,!1); AWP=new oQ(45740357,!1);tee=new oQ(45732775,!1);g.imK=new oQ(45734776,!1);vCq=new oQ(45755924,!1);var URe=new DX(45756872,0),A5T=new DX(45725542,0),zbK=new DX(45743228,0),jBD=new DX(45725543,0),GXx=new DX(45757426,0),fSx=new DX(45725539,0),g7T=new DX(45757750,0),tRT=new DX(45725541,0),WCx=new DX(45757427,0),y5w=new DX(45725540,0),dRH=new DX(45725538,0),iEK=new DX(45741339,0),SfH=new DX(45757957,0),n7q=new DX(45758467,0);var zVs=class{constructor(b){this.G=b}};var UXe=class{constructor(b){this.G=b}};var YO="://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(" "),AR2=/\bocr\b/;var zSB=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var Gvx=class extends zd{constructor(b){super(b,500)}};var gRT=class extends zd{constructor(b){super(b,500)}};var UBT=class extends zd{constructor(b){super(b)}getName(){return Hv(this,1)}getOptions(){return hV(this,gRT,3)}clearOptions(){return J9(this,3)}};var ggx=function(b){return R=>{R=JSON.parse(R);if(!Array.isArray(R))throw Error("Expected jspb data to be an array, got "+xB(R)+": "+R);R[NK]|=34;return new b(R)}}(class extends zd{constructor(b){super(b)}getName(){return Hv(this,1)}getOptions(){return hV(this,Gvx,3)}clearOptions(){return J9(this,3)}SS(){return qP(this,6)}sW(b){AV(this,6,b)}});var Oj=Symbol();var xO=Symbol();var mz=!1,Tk3=1,ZY=Symbol("SIGNAL");var ngP={version:0,Q0e:0,uO:!1,producers:void 0,ihH:void 0,Fv:void 0,Ua5:void 0,KZ9:!1,O0X:!1,fKJ:!1,kind:"unknown",bhr:()=>!1, s0p:()=>{}, Xl:()=>{}, WlR:()=>{}, OL:function(b,R){return Object.is(b,R)}, value:void 0,kind:"signal"};var Vv=class extends g.TD{constructor(b){super();this.S=this.Y=0;this.Uj=b??{Hg:(R,h)=>setTimeout(R,h), wk:R=>{clearTimeout(R)}}; this.G=window.navigator?.onLine??!0;this.X=async()=>{await Cl(this)}; window.addEventListener("offline",this.X);window.addEventListener("online",this.X);this.S||this.NC()}dispose(){window.removeEventListener("offline",this.X);window.removeEventListener("online",this.X);this.Uj.wk(this.S);delete Vv.instance}kV(){return this.G}NC(){this.S=this.Uj.Hg(async()=>{this.G?window.navigator?.onLine||await Cl(this):await Cl(this);this.NC()},3E4)}};var HMw=wW(class extends zd{constructor(b){super(b)}Y(){return qP(this,5)}},[0,W3,w3s,A8,W3,-2,A8,j_]);var lWw=class{constructor(){this.data=[];this.G=-1}set(b,R=!0){0<=b&&b<52&&Number.isInteger(b)&&this.data[b]!==R&&(this.data[b]=R,this.G=-1)}get(b){return!!this.data[b]}};var r0;g.Dx(g.F7,g.N3);g.W=g.F7.prototype;g.W.start=function(){this.stop();this.V=!1;const b=oI(this),R=DY(this);b&&!R&&this.Y.mozRequestAnimationFrame?(this.G=g.jy(this.Y,"MozBeforePaint",this.X),this.Y.mozRequestAnimationFrame(null),this.V=!0):this.G=b&&R?b.call(this.Y,this.X):this.Y.setTimeout(wex(this.X),20)}; g.W.stop=function(){if(this.isActive()){const b=oI(this),R=DY(this);b&&!R&&this.Y.mozRequestAnimationFrame?Sy(this.G):b&&R?R.call(this.Y,this.G):this.Y.clearTimeout(this.G)}this.G=null}; g.W.isActive=function(){return this.G!=null}; g.W.KF=function(){this.V&&this.G&&Sy(this.G);this.G=null;this.J.call(this.S,g.wK())}; g.W.X5=function(){this.stop();g.F7.d3.X5.call(this)};g.Dx(g.bI,g.N3);g.W=g.bI.prototype;g.W.fG=0;g.W.X5=function(){g.bI.d3.X5.call(this);this.stop();delete this.G;delete this.Y}; g.W.start=function(b){this.stop();this.fG=g.Nf(this.X,b!==void 0?b:this.zk)}; g.W.qa=function(b){this.isActive()||this.start(b)}; g.W.stop=function(){this.isActive()&&g.JD.clearTimeout(this.fG);this.fG=0}; g.W.i6=function(){this.isActive()&&g.Rf(this)}; g.W.isActive=function(){return this.fG!=0}; g.W.ND=function(){this.fG=0;this.G&&this.G.call(this.Y)};g.RP=class extends g.N3{constructor(b,R,h){super();this.S=h!=null?b.bind(h):b;this.zk=R;this.X=null;this.G=!1;this.Y=0;this.i5=null}V(b){this.X=arguments;this.i5||this.Y?this.G=!0:hc(this)}stop(){this.i5&&(g.JD.clearTimeout(this.i5),this.i5=null,this.G=!1,this.X=null)}pause(){this.Y++}resume(){this.Y--;this.Y||!this.G||this.i5||(this.G=!1,hc(this))}X5(){super.X5();this.stop()}};g.W4x=class{constructor(b,R){this.G=b[g.JD.Symbol.iterator]();this.Y=R}[Symbol.iterator](){return this}next(){const b=this.G.next();return{value:b.done?void 0:this.Y.call(void 0,b.value),done:b.done}}};g.Dx(g.BX,g.TD);g.W=g.BX.prototype;g.W.isPlaying=function(){return this.G==1}; g.W.isPaused=function(){return this.G==-1}; g.W.Zh=function(){this.Ze("begin")}; g.W.UT=function(){this.Ze("end")}; g.W.onFinish=function(){this.Ze("finish")}; g.W.onStop=function(){this.Ze("stop")}; g.W.Ze=function(b){this.dispatchEvent(b)};var SX3=Qg(function(){const b=g.jO("DIV");var R=g.qN?"-webkit":L0?"-moz":null;let h="transition:opacity 1s linear;";R&&(h+=R+"-transition:opacity 1s linear;");R=rDe({style:h});if(b.nodeType===1&&/^(script|style)$/i.test(b.tagName))throw Error("");b.innerHTML=s5(R);return g.wM(b.firstChild,"transition")!=""});g.Dx(HX,g.BX);g.W=HX.prototype;g.W.play=function(){if(this.isPlaying())return!1;this.Zh();this.Ze("play");this.startTime=g.wK();this.G=1;if(SX3())return g.MN(this.Y,this.J),this.X=g.Nf(this.W4,void 0,this),!0;this.uw(!1);return!1}; g.W.W4=function(){g.lu(this.Y);YIx(this.Y,this.D);g.MN(this.Y,this.V);this.X=g.Nf((0,g.Ms)(this.uw,this,!1),this.S*1E3)}; g.W.stop=function(){this.isPlaying()&&this.uw(!0)}; g.W.uw=function(b){g.MN(this.Y,"transition","");g.JD.clearTimeout(this.X);g.MN(this.Y,this.V);this.endTime=g.wK();this.G=0;if(b)this.onStop();else this.onFinish();this.UT()}; g.W.X5=function(){this.stop();HX.d3.X5.call(this)}; g.W.pause=function(){};var eSH={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};d4("Element","attributes")||d4("Node","attributes");d4("Element","innerHTML")||d4("HTMLElement","innerHTML");d4("Node","nodeName");d4("Node","nodeType");d4("Node","parentNode");d4("Node","childNodes");d4("HTMLElement","style")||d4("Element","style");d4("HTMLStyleElement","sheet");var mBT=f5("getPropertyValue"),PuK=f5("setProperty");d4("Element","namespaceURI")||d4("Node","namespaceURI");var xBP={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var XoT,eax,uBD,cRT,VTK;XoT=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]");eax=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.nRw=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.jI=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]");uBD=/^http:\/\/.*/;g.ERq=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");cRT=/\s+/;VTK=/[\d\u06f0-\u06f9]/;Intl.NumberFormat.supportedLocalesOf(["es".replace("_","-")]);var iI=class{constructor(b){this.Y=b}sz(){return new zS(this.Y())}[Symbol.iterator](){return new UB(this.Y())}G(){return new UB(this.Y())}},zS=class extends g.g3{constructor(b){super();this.Y=b}next(){return this.Y.next()}[Symbol.iterator](){return new UB(this.Y)}G(){return new UB(this.Y)}},UB=class extends iI{constructor(b){super(()=>b); this.X=b}next(){return this.X.next()}};g4.prototype.clone=function(){return new g4(this.G,this.D,this.X,this.S,this.V,this.J,this.Y,this.K)}; g4.prototype.equals=function(b){return this.G==b.G&&this.D==b.D&&this.X==b.X&&this.S==b.S&&this.V==b.V&&this.J==b.J&&this.Y==b.Y&&this.K==b.K};EB.prototype.clone=function(){return new EB(this.start,this.end)};(function(){if(f7T){var b=/Windows NT ([0-9.]+)/;return(b=b.exec(g.zK()))?b[1]:"0"}return mf?(b=/1[0|1][_.][0-9_.]+/,(b=b.exec(g.zK()))?b[0].replace(/_/g,"."):"10"):g.gj?(b=/Android\s+([^\);]+)(\)|;)/,(b=b.exec(g.zK()))?b[1]:""):rpw||Lix||wHK?(b=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(b=b.exec(g.zK()))?b[1].replace(/_/g,"."):""):""})();var Cu3=function(){if(g.yr)return TS(/Firefox\/([0-9.]+)/);if(g.yI||g.po||g.HG)return PE;if(g.I5){if(el()||O5()){var b=TS(/CriOS\/([0-9.]+)/);if(b)return b}return TS(/Chrome\/([0-9.]+)/)}if(g.x9&&!el())return TS(/Version\/([0-9.]+)/);if(zJ||U7){if(b=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.zK()))return b[1]+"."+b[2]}else if(g.B3)return(b=TS(/Android\s+([0-9.]+)/))?b:TS(/Version\/([0-9.]+)/);return""}();g.Dx(g.kd,g.N3);g.W=g.kd.prototype;g.W.subscribe=function(b,R,h){let K=this.Y[b];K||(K=this.Y[b]=[]);const I=this.J;this.G[I]=b;this.G[I+1]=R;this.G[I+2]=h;this.J=I+3;K.push(I);return I}; g.W.unsubscribe=function(b,R,h){if(b=this.Y[b]){const K=this.G;if(b=b.find(function(I){return K[I+1]==R&&K[I+2]==h}))return this.pN(b)}return!1}; g.W.pN=function(b){const R=this.G[b];if(R){const h=this.Y[R];this.V!=0?(this.X.push(b),this.G[b+1]=()=>{}):(h&&g.G3(h,b),delete this.G[b],delete this.G[b+1],delete this.G[b+2])}return!!R}; g.W.publish=function(b,R){var h=this.Y[b];if(h){const I=Array(arguments.length-1);var K=arguments.length;let N;for(N=1;N0&&this.V==0)for(;h=this.X.pop();)this.pN(h)}}return N!=0}return!1}; g.W.clear=function(b){if(b){const R=this.Y[b];R&&(R.forEach(this.pN,this),delete this.Y[b])}else this.G.length=0,this.Y={}}; g.W.X5=function(){g.kd.d3.X5.call(this);this.clear();this.X.length=0};g.Yd.prototype.set=function(b,R){R===void 0?this.OC.remove(b):this.OC.set(b,g.z1(R))}; g.Yd.prototype.get=function(b){let R;try{R=this.OC.get(b)}catch(h){return}if(R!==null)try{return JSON.parse(R)}catch(h){throw"Storage: Invalid value was encountered";}}; g.Yd.prototype.remove=function(b){this.OC.remove(b)};g.Dx(eI,g.Yd);eI.prototype.set=function(b,R){eI.d3.set.call(this,b,QI(R))}; eI.prototype.bO=function(b){b=eI.d3.get.call(this,b);if(b===void 0||b instanceof Object)return b;throw"Storage: Invalid value was encountered";}; eI.prototype.get=function(b){if(b=this.bO(b)){if(b=b.data,b===void 0)throw"Storage: Invalid value was encountered";}else b=void 0;return b};g.Dx(xd,eI);xd.prototype.set=function(b,R,h){if(R=QI(R)){if(h){if(h=h.length)return g.e_;var I=h.key(R++);if(b)return g.Wk(I);I=h.getItem(I);if(typeof I!=="string")throw"Storage mechanism: Invalid value was encountered";return g.Wk(I)}; return K}; g.W.clear=function(){uI(this);this.G.clear()}; g.W.key=function(b){uI(this);return this.G.key(b)};g.Dx(XA,cX);g.Dx(VI,cX);g.Dx(C5,ZP);C5.prototype.set=function(b,R){this.Y.set(this.G+b,R)}; C5.prototype.get=function(b){return this.Y.get(this.G+b)}; C5.prototype.remove=function(b){this.Y.remove(this.G+b)}; C5.prototype.sz=function(b){const R=this.Y[Symbol.iterator](),h=this,K=new g.g3;K.next=function(){var I=R.next();if(I.done)return I;for(I=I.value;I.slice(0,h.G.length)!=h.G;){I=R.next();if(I.done)return I;I=I.value}return g.Wk(b?I.slice(h.G.length):h.Y.get(I))}; return K};r4.prototype.getValue=function(){return this.Y}; r4.prototype.clone=function(){return new r4(this.G,this.Y)};var hg=class{constructor(b){this.G=[];if(b)a:{let h;if(b instanceof hg){if(h=b.WM(),b=b.Rm(),this.G.length<=0){var R=this.G;for(let K=0;K0;){const K=b-1>>1;if(R[K].G>h.G)R[b]=R[K],b=K;else break}R[b]=h}remove(){var b=this.G,R=b.length;const h=b[0];if(!(R<=0)){if(R==1)b.length=0;else{b[0]=b.pop();b=0;R=this.G; const I=R.length,N=R[b];for(;b>1;){var K=b*2+1;const p=b*2+2;K=pN.G)break;R[b]=R[K];b=K}R[b]=N}return h.getValue()}}Rm(){const b=this.G,R=[],h=b.length;for(let K=0;K>>16&65535|0;for(var N;h!==0;){N=h>2E3?2E3:h;h-=N;do I=I+R[K++]|0,b=b+I|0;while(--N);I%=65521;b%=65521}return I|b<<16|0};for(var QC={},Kh,OmB=[],s9=0;s9<256;s9++){Kh=s9;for(var QCs=0;QCs<8;QCs++)Kh=Kh&1?3988292384^Kh>>>1:Kh>>>1;OmB[s9]=Kh}QC=function(b,R,h,K){h=K+h;for(b^=-1;K>>8^OmB[(b^R[K])&255];return b^-1};var Gp={};Gp={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 q9=[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],yC=[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],bIx=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],np=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],El=Array(576);bw(El);var Tp=Array(60);bw(Tp);var fp=Array(512);bw(fp);var HQ=Array(256);bw(HQ);var dA=Array(29);bw(dA);var tq=Array(30);bw(tq);var Cp,M9,rA,VC=!1;var cQ;cQ=[new Ze(0,0,0,0,function(b,R){var h=65535;for(h>b.My-5&&(h=b.My-5);;){if(b.OW<=1){xN(b);if(b.OW===0&&R===0)return 1;if(b.OW===0)break}b.ul+=b.OW;b.OW=0;var K=b.O_+h;if(b.ul===0||b.ul>=K)if(b.OW=b.ul-K,b.ul=K,Jq(b,!1),b.aY.jX===0)return 1;if(b.ul-b.O_>=b.nj-262&&(Jq(b,!1),b.aY.jX===0))return 1}b.Aq=0;if(R===4)return Jq(b,!0),b.aY.jX===0?3:4;b.ul>b.O_&&Jq(b,!1);return 1}), new Ze(4,4,8,4,mn),new Ze(4,5,16,8,mn),new Ze(4,6,32,32,mn),new Ze(4,4,16,16,PQ),new Ze(8,16,32,32,PQ),new Ze(8,16,128,128,PQ),new Ze(8,32,128,256,PQ),new Ze(32,128,258,1024,PQ),new Ze(32,258,258,4096,PQ)];var X6={};X6=function(){this.input=null;this.IS=this.M8=this.ue=0;this.output=null;this.rA=this.jX=this.Nk=0;this.msg="";this.state=null;this.qQ=2;this.yB=0};var Lp=Object.prototype.toString; uw.prototype.push=function(b,R){var h=this.aY,K=this.options.chunkSize;if(this.ended)return!1;var I=R===~~R?R:R===!0?4:0;typeof b==="string"?h.input=DP(b):Lp.call(b)==="[object ArrayBuffer]"?h.input=new Uint8Array(b):h.input=b;h.ue=0;h.M8=h.input.length;do{h.jX===0&&(h.output=new of.vQ(K),h.Nk=0,h.jX=K);b=DBs(h,I);if(b!==1&&b!==0)return this.UT(b),this.ended=!0,!1;if(h.jX===0||h.M8===0&&(I===4||I===2))if(this.options.to==="string"){var N=of.R7(h.output,h.Nk);R=N;N=N.length;if(N<65537&&(R.subarray&& eVx||!R.subarray))R=String.fromCharCode.apply(null,of.R7(R,N));else{for(var p="",l=0;l0||h.jX===0)&&b!==1);if(I===4)return(h=this.aY)&&h.state?(K=h.state.status,K!==42&&K!==69&&K!==73&&K!==91&&K!==103&&K!==113&&K!==666?b=gA(h,-2):(h.state=null,b=K===113?gA(h,-3):0)):b=-2,this.UT(b),this.ended=!0,b===0;I===2&&(this.UT(0),h.jX=0);return!0}; uw.prototype.UT=function(b){b===0&&(this.result=this.options.to==="string"?this.chunks.join(""):of.PW(this.chunks));this.chunks=[];this.err=b;this.msg=this.aY.msg};var De=()=>Math.random().toString(36).substring(7).split("").join("."),oE=`@@redux/INIT${De()}`,K5x=`@@redux/REPLACE${De()}`;var RA=typeof Symbol==="function"&&Symbol.observable||"@@observable";var BTw=wW(class extends zd{constructor(b){super(b)}},[0,W3,EtH,iF,GI,iF,-1,gR,GI,gR,-1,W3,gR,EtH,zI,[0,GI,-3,gR],iF,-1,gR]);var VMT=-2085728145;var xXK=function(b,R){return(()=>{const h=new J8H(b,R);return()=>h})()}("youtube.api.innertube.AttestationError",'[null,[["ATTESTATION_ERROR_UNKNOWN",0],["ATTESTATION_ERROR_VM_NOT_INITIALIZED",1],["ATTESTATION_ERROR_VM_NO_RESPONSE",2],["ATTESTATION_ERROR_VM_TIMEOUT",3],["ATTESTATION_ERROR_VM_INTERNAL_ERROR",4],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_INVALID",5],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_NETWORK_ERROR",6],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_OFFLINE",7],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_INTERNAL_ERROR",8],["ATTESTATION_ERROR_API_NOT_READY",9],["ATTESTATION_ERROR_DEVICE_OFFLINE",10],["ATTESTATION_ERROR_KEY_PAIR_INIT_FAILED",12],["ATTESTATION_ERROR_SIGNING_DATA_MISSING",13],["ATTESTATION_ERROR_SIGNING_FAILED",14],["ATTESTATION_ERROR_CERT_CHAIN_RETRIEVAL_FAILED",15]],null,[[11,11]]]');g.D=class{constructor(b){this.name=b}};var TpT=new g.D("adInfoDialogEndpoint");var Hi3=new g.D("adPingingEndpoint");var Knw=new g.D("crossDeviceProgressCommand");var bO=new g.D("actionCompanionAdRenderer");var M1=new g.D("adActionInterstitialRenderer");var mXT=new g.D("adDurationRemainingRenderer");var nA=new g.D("adHoverTextButtonRenderer");var eQH=new g.D("adInfoDialogRenderer");var Bq=new g.D("adMessageRenderer");var E1=new g.D("adPreviewRenderer");var hu=new g.D("adsEngagementPanelRenderer");var D93=new g.D("dismissablePanelTextPortraitImageRenderer");var j7=new g.D("adsEngagementPanelSectionListViewModel");var P_D=new g.D("flyoutCtaRenderer");var Rs=new g.D("imageCompanionAdRenderer");var Vf=new g.D("instreamAdPlayerOverlayRenderer");var FZx=new g.D("instreamSurveyAdBackgroundImageRenderer");var S7=new g.D("instreamSurveyAdPlayerOverlayRenderer");var Hm=new g.D("instreamSurveyAdRenderer"),Wm=new g.D("instreamSurveyAdSingleSelectQuestionRenderer"),g1=new g.D("instreamSurveyAdMultiSelectQuestionRenderer"),$F=new g.D("instreamSurveyAdAnswerRenderer"),ZmP=new g.D("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var vm=new g.D("instreamVideoAdRenderer");var cWH=new g.D("textOverlayAdContentRenderer"),unx=new g.D("enhancedTextOverlayAdContentRenderer"),XKB=new g.D("imageOverlayAdContentRenderer");var CM=new g.D("playerOverlayLayoutRenderer");var rt=new g.D("videoInterstitialButtonedCenteredLayoutRenderer");var sAx=new g.D("aboveFeedAdLayoutRenderer");var $cT=new g.D("belowPlayerAdLayoutRenderer");var K83=new g.D("inPlayerAdLayoutRenderer");var IiT=new g.D("inPlayerOrganicOverlayAdLayoutRenderer");var fA=new g.D("playerBytesAdLayoutRenderer");var U1=new g.D("playerBytesSequenceItemAdLayoutRenderer");var z5=new g.D("playerUnderlayAdLayoutRenderer");var Bm=new g.D("adIntroRenderer");var lO=new g.D("playerBytesSequentialLayoutRenderer");var V8q=new g.D("slidingTextPlayerOverlayRenderer");var qL=new g.D("surveyTextInterstitialRenderer");var yV=new g.D("videoAdTrackingRenderer");var Lns=new g.D("videoInterstitialCenteredLayoutViewModel");var VVP=new g.D("simpleAdBadgeRenderer");var C6=new g.D("skipAdRenderer"),C_x=new g.D("skipButtonRenderer");var G5=new g.D("adSlotRenderer");var Au=new g.D("squeezebackPlayerSidePanelRenderer");var MVP=new g.D("timedPieCountdownRenderer");var ol=new g.D("adAvatarViewModel");var Dv=new g.D("adBadgeViewModel");var bF=new g.D("adButtonViewModel");var rWq=new g.D("adDetailsLineViewModel");var L4e=new g.D("adDisclosureBannerViewModel");var wKH=new g.D("adPodIndexViewModel");var F4T=new g.D("imageBackgroundViewModel");var oRw=new g.D("adGridCardCollectionViewModel");var DXB=new g.D("adGridCardTextViewModel");var bLq=new g.D("adPreviewViewModel");var Rgx=new g.D("playerAdAvatarLockupCardButtonedViewModel");var hgq=new g.D("skipAdButtonViewModel");var Kb3=new g.D("skipAdViewModel");var sX3=new g.D("timedPieCountdownViewModel");var $pT=new g.D("visitAdvertiserLinkViewModel");var KA=new g.D("bannerImageLayoutViewModel");var s1=new g.D("topBannerImageTextIconButtonedLayoutViewModel");var $A=new g.D("adsEngagementPanelLayoutViewModel");var iO=new g.D("displayUnderlayTextGridCardsLayoutViewModel");g.Rj=new g.D("browseEndpoint");var IoT=new g.D("confirmDialogEndpoint");var NZD=new g.D("commandContext");var xl2=new g.D("rawColdConfigGroup");var QiB=new g.D("rawHotConfigGroup");g.V7=new g.D("commandExecutorCommand");var pnT=class extends zd{constructor(b){super(b)}};var loH={zGY:0,wHH:1,ns6:32,MKX:61,lKp:67,uX6:103,hJR:86,P5v:42,GD6:60,flX:62,XRe:73,TiZ:76,gse:88,vsX:90,SpX:99,kyY:98,VKp:100,IKZ:102,Bip:41,AcY:69,Flv:70,Jc6:71,Ux:2,kN:27,ANDROID:3,iX:54,Kp:14,WS:91,jM:55,d6:24,E3:20,m8:18,Lp:21,w6:104,Cp:30,QR:29,P0:28,djp:101,nI:34,U3:36,eM:38,IOS:5,xz:15,L1:92,z5:40,iH:25,K1:17,j7:19,du:64,Ew:66,mR:26,Ow:22,f1:33,Wl:68,Uw:35,e7:53,wu:37,bH:39,SW5:7,B2X:57,AOO:43,JO9:59,F_Y:93,kD:74,N2e:75,rO5:85,HzX:65,DjZ:80,ZzJ:8,VnJ:10,qWY:58,oOv:63,alv:72,Rx:23,H0X:11, aKY:13,b1:12,llp:16,Qc6:56,ycZ:31,Wu:77,fE:84,Yp9:87,UO:89,WU:94,qs:95};var gI=class extends zd{constructor(b){super(b)}gI(){return Hv(this,3)}St(){return Hv(this,5)}g_(b){return tV(this,5,b)}};var Uo=class extends zd{constructor(b){super(b)}};var aox=class extends zd{constructor(b){super(b)}};var Eos=class extends zd{constructor(b){super(b)}getDeviceId(){return Hv(this,6)}H3(b){var R=x6(this,9,Ok,3,!0);ah(R,b);return R[b]}getPlayerType(){return qP(this,36)}setHomeGroupInfo(b){return NP(this,aox,81,b)}clearLocationPlayabilityToken(){return J9(this,89)}};var JSK=class extends zd{constructor(b){super(b)}getValue(){return Hv(this,oa(this,k9D,2))}},k9D=[2,3,4,5,6];var vZ2=class extends zd{constructor(b){super(b)}setTrackingParams(b){return J9(this,1,lJ(b,!1))}};var TDx=class extends zd{constructor(b){super(b)}};var GP=class extends zd{constructor(b){super(b)}H3(b){var R=x6(this,5,Q4,3,!0);ah(R,b);return R[b]}};var Ys2=class extends zd{constructor(b){super(b)}getToken(){return fR(this,2)}setToken(b){return tV(this,2,b)}};var lm=class extends zd{constructor(b){super(b)}setSafetyMode(b){return AV(this,5,b)}};var pd=class extends zd{constructor(b){super(b)}X(b){return NP(this,Eos,1,b)}};var pg=new g.D("thumbnailLandscapePortraitRenderer");g.BZP=new g.D("changeEngagementPanelVisibilityAction");var NaT=new g.D("continuationCommand");var HL3=new g.D("openPopupAction");g.kr=new g.D("signalAction");g.IP=new g.D("webCommandMetadata");var IAP=new g.D("metadataBadgeRenderer");var IMB=new g.D("signalServiceEndpoint");var xJ=new g.D("innertubeCommand");var qyH=new g.D("loggingDirectives");var edq={AG:"EMBEDDED_PLAYER_MODE_UNKNOWN",lV:"EMBEDDED_PLAYER_MODE_DEFAULT",BU:"EMBEDDED_PLAYER_MODE_PFP",Sw:"EMBEDDED_PLAYER_MODE_PFL"};var UDB=new g.D("channelThumbnailEndpoint");var RCx=new g.D("embeddedPlayerErrorMessageRenderer");var rBK=new g.D("embeddedPlayerOverlayVideoDetailsRenderer"),Gue=new g.D("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),gbx=new g.D("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var D1w=new g.D("embedsInfoPanelRenderer");var NM=new g.D("feedbackEndpoint");var dpH=new g.D("youtubeIconSource");var foD=new g.D("callToActionButtonViewModel");var yCP=new g.D("interactionLoggingCommandMetadata");var THx={tnp:"WEB_DISPLAY_MODE_UNKNOWN",W_H:"WEB_DISPLAY_MODE_BROWSER",Clr:"WEB_DISPLAY_MODE_MINIMAL_UI",RGY:"WEB_DISPLAY_MODE_STANDALONE",Uj9:"WEB_DISPLAY_MODE_FULLSCREEN"};var toe=class extends zd{constructor(b){super(b)}getPlayerType(){return qP(this,7)}Vn(){return Hv(this,19)}setVideoId(b){return tV(this,19,b)}};var Aow=class extends zd{constructor(b){super(b)}};var jUx=class extends zd{constructor(b){super(b)}};var B7=class extends zd{constructor(b){super(b,500)}},jXK=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330, 331,332,334,337,338,340,344,348,350,351,352,353,354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525,526,527,528,529,530,531,536,537,538,539,541];var ACx=new g.D("loggingContext");var OVT=class extends zd{constructor(b){super(b)}};var ySP=class extends zd{constructor(b){super(b)}Vn(){return fR(this,oa(this,RJ,1))}setVideoId(b){return wP(this,1,RJ,DW(b))}getPlaylistId(){return fR(this,oa(this,RJ,2))}},RJ=[1,2];g.Nx=class extends zd{constructor(b){super(b)}};g.Nx.prototype.qg=RK(0);var iLT=new g.D("dismissPlayerOverlayCommand");var Ij=new g.D("changeKeyedMarkersVisibilityCommand");var zgB=new g.D("changeMarkersVisibilityCommand");var p53=new g.D("loadMarkersCommand");var Upe=new g.D("suggestedActionDataViewModel");var Wfq=new g.D("timelyActionViewModel");var gCD=new g.D("timelyActionsOverlayViewModel");var wxe=new g.D("productListItemRenderer");var GNP=new g.D("shoppingOverlayRenderer");var w8K=new g.D("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var gZK=new g.D("adFeedbackEndpoint");var Wb2=new g.D("menuEndpoint");var SyK=new g.D("phoneDialerEndpoint");var nZP=new g.D("sendSmsEndpoint");var zC3=new g.D("copyTextEndpoint");var EZH=new g.D("shareEndpoint"),TZH=new g.D("shareEntityEndpoint"),JCP=new g.D("shareEntityServiceEndpoint"),kNH=new g.D("webPlayerShareEntityServiceEndpoint");g.Y8=new g.D("urlEndpoint");g.hw=new g.D("watchEndpoint");var Yys=new g.D("watchPlaylistEndpoint");var egx=new g.D("compositeVideoOverlayRenderer");var OLw=new g.D("miniplayerRenderer");var czT=new g.D("paidContentOverlayRenderer");var lux=new g.D("playerMutedAutoplayOverlayRenderer"),aux=new g.D("playerMutedAutoplayEndScreenRenderer");var KlD=new g.D("unserializedPlayerResponse"),iMT=new g.D("unserializedPlayerResponse");var QXq=new g.D("playlistEditEndpoint");var N6=new g.D("buttonRenderer"),ph=new g.D("toggleButtonRenderer");var Fne=new g.D("counterfactualRenderer");var xp3=new g.D("resolveUrlCommandMetadata");var mpH=new g.D("modifyChannelNotificationPreferenceEndpoint");var BSx=new g.D("pingingEndpoint");var Pxq=new g.D("unsubscribeEndpoint");g.H0=new g.D("subscribeButtonRenderer");var ZLK=new g.D("subscribeEndpoint");var bAK=new g.D("buttonViewModel");var oNs=new g.D("qrCodeRenderer");var cCq={Sm:"LIVING_ROOM_APP_MODE_UNSPECIFIED",gO:"LIVING_ROOM_APP_MODE_MAIN",uo:"LIVING_ROOM_APP_MODE_KIDS",vu:"LIVING_ROOM_APP_MODE_MUSIC",V6:"LIVING_ROOM_APP_MODE_UNPLUGGED",hx:"LIVING_ROOM_APP_MODE_GAMING"};var K6P=new g.D("autoplaySwitchButtonRenderer");var xr,PWx,Sve,csK;xr=new g.D("decoratedPlayerBarRenderer");PWx=new g.D("chapteredPlayerBarRenderer");Sve=new g.D("multiMarkersPlayerBarRenderer");csK=new g.D("chapterRenderer");g.CWD=new g.D("markerRenderer");var Dwx=new g.D("decoratedPlayheadRenderer");var $Dx=new g.D("desktopOverlayConfigRenderer");var bDK=new g.D("engagementPanelSectionListRenderer");var s5x=new g.D("gatedActionsOverlayViewModel");var rYK=new g.D("heatMarkerRenderer");var rs3=new g.D("heatmapRenderer");var NBP=new g.D("watchToWatchTransitionRenderer");var om2=new g.D("playlistPanelRenderer");var ukP=new g.D("productUpsellSuggestedActionViewModel");var lN=new g.D("suggestedActionTimeRangeTrigger"),XnK=new g.D("suggestedActionsRenderer"),Voq=new g.D("suggestedActionRenderer");var LYB=new g.D("timedMarkerDecorationRenderer");var Cze=new g.D("cipher");var sdD=new g.D("playerVars");var zrP=new g.D("playerVars");var Cx2=g.JD.window,l1=Cx2?.yt?.config_||Cx2?.ytcfg?.data_||{};g.kB("yt.config_",l1);var Hg=[];var Ndq=/^[\w.]*$/,IWx={q:!0,search_query:!0},$KB=String(tQ);var JQ=new class{constructor(b,R){this.G=b;this.Y=R}}(window,window.document);g.kB("yt.ads_.signals_.getAdSignalsString",function(b){return j8(k_(b))});g.wK();var Y_="XMLHttpRequest"in g.JD?()=>new XMLHttpRequest:null;var Mo2="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods theme".split(" ");[...Mo2];var ro={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"},zdx=["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",...Mo2],tW3=!1,dKT=Mc;var Di=class extends In{constructor(b,R,h){super(`${b}, errorCode=${R}`);this.errorCode=R;this.xhr=h;this.name="PromiseAjaxError"}},UKT=class{constructor(b){this.xhr=b}};var hN=class{constructor(b=null){this.G=b;this.X=0;this.Y=null}then(b,R,h){return this.G?this.G.then(b,R,h):this.X===1&&b?(b=b.call(h,this.Y))&&typeof b.then==="function"?b:s7(b):this.X===2&&R?(b=R.call(h,this.Y))&&typeof b.then==="function"?b:KX(b):this}getValue(){return this.Y}};hN.prototype.$goog_Thenable=!0;var $E=!1;var Nr=zJ||U7;var k$T=/^([0-9\.]+):([0-9\.]+)$/;var crP=class extends In{constructor(b){super(b.message||b.description||b.name);this.isMissing=b instanceof Pu;this.isTimeout=b instanceof Di&&b.errorCode=="net.timeout";this.isCanceled=b instanceof ht}};crP.prototype.name="BiscottiError";var Pu=class extends In{constructor(){super("Biscotti ID is missing from server")}};Pu.prototype.name="BiscottiMissingError";var Qh3={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},mW=null;var MW3={};var rCq=0,Z5=g.qN?"webkit":L0?"moz":g.yI?"ms":g.HG?"o":"",Lb3=g.YB("ytDomDomGetNextId")||(()=>++rCq); g.kB("ytDomDomGetNextId",Lb3);var wnB={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},h$q=class{constructor(b){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(b=b||window.event){this.event=b;for(let K in b)K in wnB||(this[K]=b[K]);this.scale=b.scale;this.rotation=b.rotation;var R=b.target||b.srcElement;R&&R.nodeType==3&&(R=R.parentNode);this.target=R;var h=b.relatedTarget;if(h)try{h=h.nodeName?h:null}catch(K){h=null}else this.type=="mouseover"?h=b.fromElement:this.type=="mouseout"&&(h=b.toElement);this.relatedTarget=h;this.clientX=b.clientX!=void 0?b.clientX:b.pageX;this.clientY=b.clientY!=void 0?b.clientY:b.pageY;this.keyCode=b.keyCode?b.keyCode: b.which;this.charCode=b.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=b.altKey;this.ctrlKey=b.ctrlKey;this.shiftKey=b.shiftKey;this.metaKey=b.metaKey;this.G=b.pageX;this.Y=b.pageY}}catch(K){}}preventDefault(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}stopPropagation(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}stopImmediatePropagation(){this.event&&(this.event.cancelBubble=!0, this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())}};var o$=g.JD.ytEventsEventsListeners||{};g.kB("ytEventsEventsListeners",o$);var R$K=g.JD.ytEventsEventsCounter||{count:0};g.kB("ytEventsEventsCounter",R$K);var FbT=Qg(function(){let b=!1;try{const R=Object.defineProperty({},"passive",{get:function(){b=!0}}); window.addEventListener("test",null,R)}catch(R){}return b}),K$H=Qg(function(){let b=!1; try{const R=Object.defineProperty({},"capture",{get:function(){b=!0}}); window.addEventListener("test",null,R)}catch(R){}return b});var aP;aP=window;g.c=aP.ytcsi&&aP.ytcsi.now?aP.ytcsi.now:aP.performance&&aP.performance.timing&&aP.performance.now&&aP.performance.timing.navigationStart?()=>aP.performance.timing.navigationStart+aP.performance.now():()=>(new Date).getTime();g.Dx(Kk,g.N3);Kk.prototype.U=function(b){b.G===void 0&&DKH(b);var R=b.G;b.Y===void 0&&DKH(b);this.G=new g.CP(R,b.Y)}; Kk.prototype.Ay=function(){return this.G||new g.CP}; Kk.prototype.G6=function(){if(this.G){var b=(0,g.c)();if(this.V!=0){var R=this.J,h=this.G,K=R.x-h.x;R=R.y-h.y;K=Math.sqrt(K*K+R*R)/(b-this.V);this.Y[this.X]=Math.abs((K-this.S)/this.S)>.5?1:0;R=0;for(h=0;h<4;h++)R+=this.Y[h]||0;R>=3&&this.D();this.S=K}this.V=b;this.J=this.G;this.X=(this.X+1)%4}}; Kk.prototype.X5=function(){g.Pg(this.K);g.bQ(this.C)};var vi=class extends g.N3{constructor(b){super();this.D=[];this.Ty=b||this}j(b,R,h,K,I){h=g.dK((0,g.Ms)(h,K||this.Ty));h={target:b,name:R,callback:h};let N;I&&FbT()&&(N={passive:!0});b.addEventListener(R,h.callback,N);this.D.push(h);return h}Ac(b){for(let R=0;R{R.preventDefault();this.Y=R}); b.addEventListener("appinstalled",()=>{this.G=!0},{once:!0})}};var vL=class{constructor(){this.Yq=!0}RX(b,R){b={};var h=[];"USER_SESSION_ID"in l1&&h.push({key:"u",value:g.x("USER_SESSION_ID")});if(h=C2(h))b.Authorization=h,h=R=R?.sessionIndex,h===void 0&&(h=Number(g.x("SESSION_INDEX",0)),h=isNaN(h)?0:h),g.cg("voice_search_auth_header_removal")||(b["X-Goog-AuthUser"]=h.toString()),"INNERTUBE_HOST_OVERRIDE"in l1||(b["X-Origin"]=window.location.origin),R===void 0&&"DELEGATED_SESSION_ID"in l1&&(b["X-Goog-PageId"]=g.x("DELEGATED_SESSION_ID"));return b}};var WW={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var qC=g.YB("ytglobal.prefsUserPrefsPrefs_")||{};g.kB("ytglobal.prefsUserPrefsPrefs_",qC); var lzT=class{constructor(){this.G=g.x("ALT_PREF_COOKIE_NAME","PREF");this.Y=g.x("ALT_PREF_COOKIE_DOMAIN","youtube.com");const b=g.pX(this.G);b&&this.parse(b)}get(b,R){yJ(b);fk(b);b=qC[b]!==void 0?qC[b].toString():null;return b!=null?b:R?R:""}set(b,R){yJ(b);fk(b);if(R==null)throw Error("ExpectedNotNull");qC[b]=R.toString()}WY(b){return!!((azK(`f${Math.floor(b/31)+1}`)||0)&1<{let b;return()=>{b||(b=new Lo("ytidb"));return b}})();var J$=[],T6,EO=!1;var I6e,Niq,pZ3,l6K,mL,y9w; I6e={AUTH_INVALID:"No user identifier specified.",EXPLICIT_ABORT:"Transaction was explicitly aborted.",IDB_NOT_SUPPORTED:"IndexedDB is not supported.",MISSING_INDEX:"Index not created.",MISSING_OBJECT_STORES:"Object stores not created.",DB_DELETED_BY_MISSING_OBJECT_STORES:"Database is deleted because expected object stores were not created.",DB_REOPENED_BY_MISSING_OBJECT_STORES:"Database is reopened because expected object stores were not created.",UNKNOWN_ABORT:"Transaction was aborted for unknown reasons.",QUOTA_EXCEEDED:"The current transaction exceeded its quota limitations.", QUOTA_MAYBE_EXCEEDED:"The current transaction may have failed because of exceeding quota limitations.",EXECUTE_TRANSACTION_ON_CLOSED_DB:"Can't start a transaction on a closed database",INCOMPATIBLE_DB_VERSION:"The binary is incompatible with the database version"}; Niq={AUTH_INVALID:"ERROR",EXECUTE_TRANSACTION_ON_CLOSED_DB:"WARNING",EXPLICIT_ABORT:"IGNORED",IDB_NOT_SUPPORTED:"ERROR",MISSING_INDEX:"WARNING",MISSING_OBJECT_STORES:"ERROR",DB_DELETED_BY_MISSING_OBJECT_STORES:"WARNING",DB_REOPENED_BY_MISSING_OBJECT_STORES:"WARNING",QUOTA_EXCEEDED:"WARNING",QUOTA_MAYBE_EXCEEDED:"WARNING",UNKNOWN_ABORT:"WARNING",INCOMPATIBLE_DB_VERSION:"WARNING"}; pZ3={AUTH_INVALID:!1,EXECUTE_TRANSACTION_ON_CLOSED_DB:!1,EXPLICIT_ABORT:!1,IDB_NOT_SUPPORTED:!1,MISSING_INDEX:!1,MISSING_OBJECT_STORES:!1,DB_DELETED_BY_MISSING_OBJECT_STORES:!1,DB_REOPENED_BY_MISSING_OBJECT_STORES:!1,QUOTA_EXCEEDED:!1,QUOTA_MAYBE_EXCEEDED:!0,UNKNOWN_ABORT:!0,INCOMPATIBLE_DB_VERSION:!1}; g.QJ=class extends g.A${constructor(b,R={},h=I6e[b],K=Niq[b],I=pZ3[b]){super(h,{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:b,...R});this.type=b;this.message=h;this.level=K;this.G=I;Object.setPrototypeOf(this,g.QJ.prototype)}};l6K=class extends g.QJ{constructor(b,R){super("MISSING_OBJECT_STORES",{expectedObjectStores:R,foundObjectStores:b},I6e.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,l6K.prototype)}}; mL=class extends Error{constructor(b,R){super();this.index=b;this.objectStore=R;Object.setPrototypeOf(this,mL.prototype)}};y9w=["The database connection is closing","Can't start a transaction on a closed database","A mutation operation was attempted on a database that did not allow mutations"];var X_;X_=class{constructor(b){this.G=b}};g.cL=class{constructor(b){this.state={status:"PENDING"};this.G=[];this.Y=[];b=b.G;const R=K=>{if(this.state.status==="PENDING"){this.state={status:"FULFILLED",value:K};for(const I of this.G)I()}},h=K=>{if(this.state.status==="PENDING"){this.state={status:"REJECTED", reason:K};for(const I of this.Y)I()}}; try{b(R,h)}catch(K){h(K)}}static all(b){return new g.cL(new X_((R,h)=>{const K=[];let I=b.length;I===0&&R(K);for(let N=0;N{K[N]=p;I--;I===0&&R(K)}).catch(p=>{h(p)})}))}static resolve(b){return new g.cL(new X_((R,h)=>{b instanceof g.cL?b.then(R,h):R(b)}))}static reject(b){return new g.cL(new X_((R,h)=>{h(b)}))}then(b,R){const h=b??jax,K=R??tCP; return new g.cL(new X_((I,N)=>{this.state.status==="PENDING"?(this.G.push(()=>{A9q(this,this,h,I,N)}),this.Y.push(()=>{i8x(this,this,K,I,N)})):this.state.status==="FULFILLED"?A9q(this,this,h,I,N):this.state.status==="REJECTED"&&i8x(this,this,K,I,N)}))}catch(b){return this.then(void 0,b)}};var Go2=class{constructor(b,R){this.request=b;this.cursor=R}};var Z8x=class{constructor(b,R){this.G=b;this.options=R;this.transactionCount=0;this.X=Math.round((0,g.c)());this.Y=!1}add(b,R,h){return g.r8(this,[b],{mode:"readwrite",oT:!0,commit:MC()},K=>K.objectStore(b).add(R,h))}clear(b){return g.r8(this,[b],{mode:"readwrite", oT:!0},R=>R.objectStore(b).clear())}close(){this.G.close(); this.options?.closed&&this.options.closed()}count(b,R){return g.r8(this,[b],{mode:"readonly",oT:!0,commit:MC()},h=>h.objectStore(b).count(R))}delete(b,R){return g.r8(this,[b],{mode:"readwrite", oT:!0,commit:MC()&&!(R instanceof IDBKeyRange)},h=>h.objectStore(b).delete(R))}get(b,R){return g.r8(this,[b],{mode:"readonly", oT:!0,commit:MC()},h=>h.objectStore(b).get(R))}getAll(b,R,h){return g.r8(this,[b],{mode:"readonly", oT:!0},K=>K.objectStore(b).getAll(R,h))}put(b,R,h){return g.r8(this,[b],{mode:"readwrite", oT:!0,commit:MC()},K=>K.objectStore(b).put(R,h))}objectStoreNames(){return Array.from(this.G.objectStoreNames)}getName(){return this.G.name}},TPx=class{constructor(b){this.G=b}add(b,R){return VJ(this.G.add(b,R))}autoIncrement(){return this.G.autoIncrement}clear(){return VJ(this.G.clear()).then(()=>{})}count(b){return VJ(this.G.count(b))}delete(b){return b instanceof IDBKeyRange?koK(this,b):VJ(this.G.delete(b))}get(b){return VJ(this.G.get(b))}getAll(b,R){return"getAll"in IDBObjectStore.prototype?VJ(this.G.getAll(b, R)):e$T(this,b,R)}index(b){try{return new a63(this.G.index(b))}catch(R){if(R instanceof Error&&R.name==="NotFoundError")throw new mL(b,this.G.name); throw R;}}getName(){return this.G.name}keyPath(){return this.G.keyPath}put(b,R){return VJ(this.G.put(b,R))}},SuT=class{constructor(b){this.G=b;this.Y=new Map;this.aborted=!1;this.done=new Promise((R,h)=>{this.G.addEventListener("complete",()=>{R()}); this.G.addEventListener("error",K=>{K.currentTarget===K.target&&h(this.G.error)}); this.G.addEventListener("abort",()=>{var K=this.G.error;if(K)h(K);else if(!this.aborted){K=g.QJ;var I=this.G.objectStoreNames;const N=[];for(let p=0;pR.delete().then(()=>g.by(R)))}get(b){return VJ(this.G.get(b))}getAll(b,R){return"getAll"in IDBIndex.prototype?VJ(this.G.getAll(b,R)):mZT(this,b,R)}keyPath(){return this.G.keyPath}unique(){return this.G.unique}}, PqP=class{constructor(b,R){this.request=b; this.cursor=R}delete(){return VJ(this.cursor.delete()).then(()=>{})}getValue(){return this.cursor.value}update(b){return VJ(this.cursor.update(b))}};var vk3=class{constructor(b,R){this.name=b;this.options=R;this.X=!0;this.S=this.V=0}Y(b,R,h={}){return uw2(b,R,h)}delete(b={}){return Ko(this.name,b)}open(){if(!this.X)throw XND(this);if(this.G)return this.G;let b;const R=()=>{this.G===b&&(this.G=void 0)},h={blocking:I=>{I.close()}, closed:R,vp:R,upgrade:this.options.upgrade},K=async()=>{var I=Error().stack??"";try{const l=await this.Y(this.name,this.options.version,h);var N=l,p=this.options;const a=[];for(const v of Object.keys(p.fX)){const {JZ:B,dzX:H=Number.MAX_VALUE}=p.fX[v];!(N.G.version>=B)||N.G.version>=H||N.G.objectStoreNames.contains(v)||a.push(v)}if(a.length!==0){const v=Object.keys(this.options.fX),B=l.objectStoreNames();if(this.Sthis.options.version+1)throw I.close(),this.X=!1,XND(this,N);return I}R();l instanceof Error&&!g.cg("ytidb_async_stack_killswitch")&&(l.stack=`${l.stack}\n${I.substring(I.indexOf("\n")+1)}`);throw PL(l,this.name,"",this.options.version??-1);}}; return this.G=b=K()}};var $M=new vk3("YtIdbMeta",{fX:{databases:{JZ:1}},upgrade(b,R){R(1)&&g.Lk(b,"databases",{keyPath:"actualName"})}});var aY,ly=new class{constructor(){}}(new class{constructor(){}});new g.d$;var sk3=class extends vk3{constructor(b,R){super(b,R);this.options=R;e5(b)}Y(b,R,h={}){return(this.options.shared?DZK:o63)(b,R,{...h})}delete(b={}){return(this.options.shared?KQB:bR3)(this.name,b)}};var IZT=g.HW("ytGcfConfig",{fX:{coldConfigStore:{JZ:1},hotConfigStore:{JZ:1}},shared:!1,upgrade(b,R){R(1)&&(g.F_(g.Lk(b,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.F_(g.Lk(b,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},version:1});var BiK=class extends g.N3{constructor(){super();this.Y=[];this.G=[];const b=g.YB("yt.gcf.config.hotUpdateCallbacks");b?(this.Y=[...b],this.G=b):(this.G=[],g.kB("yt.gcf.config.hotUpdateCallbacks",this.G))}X5(){for(const R of this.Y){var b=this.G;const h=b.indexOf(R);h>=0&&b.splice(h,1)}this.Y.length=0;super.X5()}};var dI=class{constructor(){this.S=!1;this.X=this.V=0;this.J=new BiK;this.w2={wOY:()=>{this.S=!0}, K7J:()=>this.G, PR6:b=>{fo(this,b)}, g_:b=>{this.g_(b)}, Uzv:b=>{yk(this,b)}, gI:()=>this.coldHashData, St:()=>this.hotHashData, n4R:()=>this.Y, W7Y:()=>t7(), CjZ:()=>jw(), Ube:()=>g.YB("yt.gcf.config.coldHashData"), RZ5:()=>g.YB("yt.gcf.config.hotHashData"), JqY:()=>{dPT(this)}, EV6:()=>{this.g_(void 0);A7(this);delete dI.instance}, trH:b=>{this.X=b}, wDJ:()=>this.X}}g0(){return jw()??g.x("RAW_HOT_CONFIG_GROUP")}g_(b){this.hotHashData=b; g.kB("yt.gcf.config.hotHashData",this.hotHashData||null)}};var H3K=typeof TextEncoder!=="undefined"?new TextEncoder:null,rV3=H3K?b=>H3K.encode(b):b=>{b=g.xg(b); const R=new Uint8Array(b.length);for(let h=0;h{}; this.iO=()=>{}; this.now=Date.now;this.pg=!1;this.w2={RWp:R=>{this.pT=R}, NtO:()=>{this.X()}, RM:()=>{this.V()}, c7:async R=>{await this.c7(R)}, sZ:(R,h)=>this.sZ(R,h), jk:()=>{this.jk()}}; this.It=b.It??100;this.AQ=b.AQ??1;this.M4=b.M4??2592E6;this.Tp=b.Tp??12E4;this.BC=b.BC??5E3;this.pT=b.pT??void 0;this.S9=!!b.S9;this.QO=b.QO??.1;this.hA=b.hA??10;b.handleError&&(this.handleError=b.handleError);b.iO&&(this.iO=b.iO);b.pg&&(this.pg=b.pg);b.eC&&(this.eC=b.eC);this.O9=b.O9;this.Uj=b.Uj;this.NU=b.NU;this.nN=b.nN;this.sendFn=b.sendFn;this.ix=b.ix;this.nQ=b.nQ;cW(this)&&(!this.O9||this.O9("networkless_logging"))&&FQT(this)}writeThenSend(b,R={}){if(cW(this)&&this.G){const h={url:b,options:R, timestamp:this.now(),status:"NEW",sendCount:0};this.NU.set(h,this.pT).then(K=>{h.id=K;this.nN.kV()&&this.c7(h)}).catch(K=>{this.c7(h); uy(this,K)})}else this.sendFn(b,R)}sendThenWrite(b,R={},h){if(cW(this)&&this.G){const K={url:b, options:R,timestamp:this.now(),status:"NEW",sendCount:0};this.O9&&this.O9("nwl_skip_retry")&&(K.skipRetry=h);if(this.nN.kV()||this.O9&&this.O9("nwl_aggressive_send_then_write")&&!K.skipRetry){if(!K.skipRetry){const I=R.onError?R.onError:()=>{}; R.onError=async(N,p)=>{await this.NU.set(K,this.pT).catch(l=>{uy(this,l)}); I(N,p)}}this.sendFn(b,R,K.skipRetry)}else this.NU.set(K,this.pT).catch(I=>{this.sendFn(b,R,K.skipRetry); uy(this,I)})}else h=this.O9&&this.O9("nwl_skip_retry")&&h,this.sendFn(b,R,h)}sendAndWrite(b,R={}){if(cW(this)&&this.G){const h={url:b, options:R,timestamp:this.now(),status:"NEW",sendCount:0};let K=!1;const I=R.onSuccess?R.onSuccess:()=>{}; h.options.onSuccess=(N,p)=>{h.id!==void 0?this.NU.yC(h.id,this.pT):K=!0;this.nN.yf&&this.O9&&this.O9("vss_network_hint")&&this.nN.yf(!0);I(N,p)}; this.sendFn(h.url,h.options,void 0,!0);this.NU.set(h,this.pT).then(N=>{h.id=N;K&&this.NU.yC(h.id,this.pT)}).catch(N=>{uy(this,N)})}else this.sendFn(b,R,void 0,!0)}X(){if(!cW(this))throw Error("IndexedDB is not supported: throttleSend"); this.Y||(this.Y=this.Uj.Hg(async()=>{const b=await this.NU.BW("NEW",this.pT);b?(await this.c7(b),this.Y&&(this.Y=0,this.X())):this.V()},this.It))}V(){this.Uj.wk(this.Y); this.Y=0}async c7(b){if(!cW(this))throw Error("IndexedDB is not supported: immediateSend");b.id!==void 0&&(await this.NU.xK(b.id,this.pT)||this.iO(Error("The request cannot be found in the database.")));this.sZ(b,this.M4)?(b.skipRetry||(b=bqx(this,b)),b&&(b.skipRetry&&b.id!==void 0&&await this.NU.yC(b.id,this.pT),this.sendFn(b.url,b.options,!!b.skipRetry))):(this.iO(Error("Networkless Logging: Stored logs request expired age limit")),b.id!==void 0&&await this.NU.yC(b.id,this.pT))}sZ(b,R){b=b.timestamp; return this.now()-b>=R?!1:!0}jk(){if(!cW(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.NU.BW("QUEUED",this.pT).then(b=>{b&&!this.sZ(b,this.Tp)?this.Uj.Hg(async()=>{b.id!==void 0&&await this.NU.Jt(b.id,this.pT);this.jk()}):this.nN.kV()&&this.X()})}};var Xj;var cSB={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135, mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28, nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42, assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225, liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationPlayablesMetrics:533,liveCreationStreamWebrtcStats:288,liveCreationWebrtcError:526,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71, visualElementShown:72,visualElementHidden:73,visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87, spacecastSummaryRequested:88,spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137, vrCopresencePartyStats:153,vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129, buyFlowStarted:136,mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165, buyFlowEvent:167,kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177, transactionFlowPaymentCallBackReceived:387,transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186, outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205, ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218, watchTimeSegment:219,appWidthLayoutError:221,accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243, deviceContextEvent:244,templateResolutionException:245,musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267, ytbFileOpened:268,tfliteModelError:269,apiTest:270,yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293, watchRestoreAttempt:294,liteAccountSignIn:296,notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317, tvhtml5UnexpectedRestart:319,tvhtml5DeviceStorageStats:535,tvhtml5StabilityTraceEvent:478,tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336, appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358, webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376, parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394, prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418, sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501, parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297, biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456, youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486, crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511, embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515,adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527,watchZoomStateChange:528,metadataEditorEvent:529,kidsPrismaDeeplinksEvent:530,creationOrchestrationEvent:531,coordinatedSamplingTriggered:532,dnaRecapScreenshotEvent:534, mdxLocalNetworkPermissionRequestEvent:536,mdxLocalNetworkPermissionResponseEvent:537,sessionReplayEvent:538,sessionReplayStatusEvent:539,loggingReliabilityProbe:540,keyValueStoreStatsEvent:541,deviceLocationPermissionEvent:542,remoteControlStarted:543,remoteControlCompleted:544};var aV2=g.HW("ServiceWorkerLogsDatabase",{fX:{SWHealthLog:{JZ:1}},shared:!0,upgrade:(b,R)=>{R(1)&&g.F_(g.Lk(b,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var Mr={},tYD=0;var rI;var Fj=class{constructor(){this.G=new Map;this.Y=!1}requestComplete(b,R){R&&(this.Y=!0);b=this.removeParams(b);this.G.get(b)||this.G.set(b,R)}isEndpointCFR(b){b=this.removeParams(b);return(b=this.G.get(b))?!1:b===!1&&this.Y?!0:null}removeParams(b){return b.split("?")[0]}};Fj.prototype.removeParams=Fj.prototype.removeParams;Fj.prototype.isEndpointCFR=Fj.prototype.isEndpointCFR;Fj.prototype.requestComplete=Fj.prototype.requestComplete;Fj.getInstance=iqw;var oY=class extends g.TD{constructor(){super();this.Y=!1;this.G=JRx();this.G.listen("networkstatus-online",()=>{if(this.Y&&g.cg("offline_error_handling")){var b=wI().get("errors",!0);if(b){for(const R in b)if(b[R]){const h=new g.A$(R,"sent via offline_errors");h.name=b[R].name;h.stack=b[R].stack;h.level=b[R].level;g.qc(h)}wI().set("errors",{},2592E3,!0)}}})}kV(){return this.G.kV()}yf(b){this.G.G=b}DZ(){const b=window.navigator.onLine; return b===void 0?!0:b}j2(){this.Y=!0}listen(b,R){return this.G.listen(b,R)}UZ(b){return Cl(this.G,b)}};oY.prototype.sendNetworkCheckRequest=oY.prototype.UZ;oY.prototype.listen=oY.prototype.listen;oY.prototype.enableErrorFlushing=oY.prototype.j2;oY.prototype.getWindowStatus=oY.prototype.DZ;oY.prototype.networkStatusHint=oY.prototype.yf;oY.prototype.isNetworkAvailable=oY.prototype.kV;oY.getInstance=z1w;g.Hi=class extends g.TD{constructor(b={}){super();this.G=this.V=0;this.Y=z1w();const R=g.YB("yt.networkStatusManager.instance.listen").bind(this.Y);R&&(b.rateLimit?(this.rateLimit=b.rateLimit,R("networkstatus-online",()=>{UuP(this,"publicytnetworkstatus-online")}),R("networkstatus-offline",()=>{UuP(this,"publicytnetworkstatus-offline")})):(R("networkstatus-online",()=>{this.dispatchEvent("publicytnetworkstatus-online")}),R("networkstatus-offline",()=>{this.dispatchEvent("publicytnetworkstatus-offline")})))}kV(){const b= g.YB("yt.networkStatusManager.instance.isNetworkAvailable"); return b?b.bind(this.Y)():!0}yf(b){const R=g.YB("yt.networkStatusManager.instance.networkStatusHint").bind(this.Y);R&&R(b)}async UZ(b){const R=g.YB("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(this.Y);return g.cg("skip_network_check_if_cfr")&&iqw().isEndpointCFR("generate_204")?new Promise(h=>{this.yf(window.navigator?.onLine||!0);h(this.kV())}):R?R(b):!0}};var qM,Gde=class extends dQe{constructor(){qM||(qM=new g.Hi({nVp:!0,njr:!0}));super({NU:{PG:pDH,yC:NWP,BW:sHP,xK:$uP,Jt:IV3,set:KKw},nN:qM,handleError:(b,R,h)=>{const K=h?.error?.code;K===400||K===415?(b=new g.A$(b.message,R,h?.error?.code),fD(b,void 0,void 0,void 0,!0)):g.qc(b)}, iO:fD,sendFn:WK3,now:g.c,Rt:Aew,Uj:g.G6(),ix:"publicytnetworkstatus-online",nQ:"publicytnetworkstatus-offline",S9:!0,QO:.1,hA:u1("potential_esf_error_limit",10),O9:g.cg,pg:!(g.j5()&&g.B6(document.location.toString())!=="www.youtube-nocookie.com")});this.S=new g.d$;g.cg("networkless_immediately_drop_all_requests")&&lV3();KQB("LogsDatabaseV2")}writeThenSend(b,R){R||(R={});R=b$(b,R);g.j5()||(this.G=!1);super.writeThenSend(b,R)}sendThenWrite(b,R,h){R||(R={});R=b$(b,R);g.j5()||(this.G=!1);super.sendThenWrite(b, R,h)}sendAndWrite(b,R){R||(R={});R=b$(b,R);g.j5()||(this.G=!1);super.sendAndWrite(b,R)}awaitInitialization(){return this.S.promise}};var SdK=g.JD.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.kB("ytNetworklessLoggingInitializationOptions",SdK);g.fd=class{constructor(b){this.config_=null;b?this.config_=b:UPe()&&(this.config_=g.iy())}isReady(){!this.config_&&UPe()&&(this.config_=g.iy());return!!this.config_}};var f6P,KQ,$U;f6P=g.JD.ytPubsubPubsubInstance||new g.kd;KQ=g.JD.ytPubsubPubsubSubscribedKeys||{};$U=g.JD.ytPubsubPubsubTopicToKeys||{};g.sM=g.JD.ytPubsubPubsubIsSynchronous||{};g.kd.prototype.subscribe=g.kd.prototype.subscribe;g.kd.prototype.unsubscribeByKey=g.kd.prototype.pN;g.kd.prototype.publish=g.kd.prototype.publish;g.kd.prototype.clear=g.kd.prototype.clear;g.kB("ytPubsubPubsubInstance",f6P);g.kB("ytPubsubPubsubTopicToKeys",$U);g.kB("ytPubsubPubsubIsSynchronous",g.sM); g.kB("ytPubsubPubsubSubscribedKeys",KQ);var Yd3={};var yiw=class extends g.N3{append(b){b=b.hO();this.hO().appendChild(b)}},dc=class extends yiw{constructor(b){super();this.G=b}hO(){return this.G}};var t2P=class extends g.N3{constructor(b,R){super();this.X=[];this.D=!1;this.Y=0;this.S=this.J=this.V=!1;this.G6=null;const h=(0,g.Ms)(b,R);this.G=new g.bI(()=>h(this.G6),300); g.n(this,this.G);this.U=this.K=Infinity}onTouchStart(b){this.D=!0;this.Y=b.touches.length;this.G.isActive()&&(this.G.stop(),this.S=!0);b=b.touches;this.J=QHP(this,b)||b.length!=1;var R=b.item(0);this.J||!R?this.U=this.K=Infinity:(this.K=R.clientX,this.U=R.clientY);this.X.length=0;for(R=0;R=0)}if(R||b&&(b.clientX-this.K)**2+(b.clientY-this.U)**2>25)this.V=!0}onTouchEnd(b){var R= b.changedTouches;R&&this.D&&this.Y==1&&!this.V&&!this.S&&!this.J&&QHP(this,R)&&(this.G6=b,this.G.start());this.Y=b.touches.length;this.Y===0&&(this.V=this.D=!1,this.X.length=0);this.S=!1}};var dy=Date.now().toString();var AF={};var gy=Symbol("injectionDeps"),fh=class{constructor(b){this.name=b}toString(){return`InjectionToken(${this.name})`}},zR=class{constructor(b){this.key=b}},ceT=class{constructor(){this.G=new Map;this.X=new Map;this.Y=new Map;this.w2={YDY:()=>new Map(this.G)}}resolve(b){return b instanceof zR?W2(this,b.key,[],!0):W2(this,b,[])}};var S$;var EM=window;var QM=g.cg("web_enable_lifecycle_monitoring")&&TR()!==0,MY2=g.cg("web_enable_lifecycle_monitoring");var DuP=class{constructor(b){this.scheduler=g.G6();this.Y=new g.d$;this.G=b;for(let R=0;R{h.Bh();this.G[R].lQ=!0;this.G.every(I=>I.lQ===!0)&&this.Y.resolve()}; const K=iQ(b,h.priority??0);this.G[R]={...h,Bh:b,jobId:K}}}cancel(){for(const b of this.G)b.jobId===void 0||b.lQ||this.scheduler.wk(b.jobId),b.lQ=!0;this.Y.resolve()}};var j2e=class{constructor(){this.state="none";this.plugins=[];this.Y=void 0;this.V={};QM&&JF(this.state)}get currentState(){return this.state}install(b){this.plugins.push(b);return this}uninstall(...b){b.forEach(R=>{R=this.plugins.indexOf(R);R>-1&&this.plugins.splice(R,1)})}transition(b,R){QM&&VYT(this.state); var h=this.transitions.find(K=>Array.isArray(K.from)?K.from.find(I=>I===this.state&&K.to===b):K.from===this.state&&K.to===b); if(h){this.X&&(CdH(this.X),this.X=void 0);req(this,b,R);this.state=b;QM&&JF(this.state);h=h.action.bind(this);const K=this.plugins.filter(I=>I[b]).map(I=>I[b]); h(oqx(this,K),R)}else throw Error(`no transition specified from ${this.state} to ${b}`);}};var bVs=class extends j2e{constructor(){super();this.G=null;this.Y=10;this.transitions=[{from:"none",to:"application_navigating",action:this.S},{from:"application_navigating",to:"none",action:this.J},{from:"application_navigating",to:"application_navigating",action:()=>{}}, {from:"none",to:"none",action:()=>{}}]}S(b,R){this.G=g.z6(0,()=>{this.currentState==="application_navigating"&&this.transition("none")},5E3); b(R?.event)}J(b,R){this.G&&(g.X7.wk(this.G),this.G=null);b(R?.event)}},xU;var H7=[];g.kB("yt.logging.transport.getScrapedGelPayloads",function(){return H7});var c2=class{constructor(){this.store={};this.G=0;this.Y={};this.w2={O5R:()=>this.G}}storePayload(b,R){b=mI(b); this.store[b]?this.store[b].push(R):(this.Y={},this.store[b]=[R]);this.G++;g.cg("more_accurate_gel_parser")&&(R=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(R));return b}smartExtractMatchingEntries(b){if(!b.keys.length)return[];const R=Zk(this,b.keys.splice(0,1)[0]),h=[];for(let K=0;K`Cannot read property '${b.key}'`, n7:{Error:[{DU:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{DU:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{DU:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{DU:/\uc815\uc758\ub418\uc9c0 \uc54a\uc74c \ub610\ub294 (null|undefined) \ucc38\uc870\uc778 '([^']+)' \uc18d\uc131\uc744 \uac00\uc838\uc62c \uc218 \uc5c6\uc2b5\ub2c8\ub2e4./, groups:["value","key"]},{DU:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{DU:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{DU:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{fv:b=>`Cannot call '${b.key}'`, n7:{TypeError:[{DU:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{DU:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{DU:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{DU:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{DU:/\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f '([^']+)' \u30d7\u30ed\u30d1\u30c6\u30a3\u307e\u305f\u306f\u30e1\u30bd\u30c3\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u305b\u3093/,groups:["key"]}, {DU:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{fv:b=>`${b.key} is not defined`, n7:{ReferenceError:[{DU:/(.*) is not defined/,groups:["key"]},{DU:/Can't find variable: (.*)/,groups:["key"]}]}}];var lTH={m3:[],hw:[{callback:$3T,weight:500},{callback:ITw,weight:500}]};var N3K=class{constructor(){this.hw=[];this.m3=[]}},W7;var Oi=new g.kd;var tD2=new Set,qVe=0,ifK=0,AaB=0,fTw=[],d3H=[],zNT=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var Gg2=new g.D("parallelCommand");var SVx=new g.D("performOnceCommand");var WRT=new g.D("serialCommand");var mB=void 0;uL({},"sgPmTd");uL(null,"jypsq");uL(null,"mWiOof");Date.now();var T3P=class extends Sw{constructor(b){super(arguments);this.csn=b}},esH=new no("screen-created",T3P),Dq=[],ElD=Ofw,b2=0,um=new Map,XX=new Map,Vp=new Map;var jg=class{constructor(b,R=null,h={},K,I,N){this.componentType=b;this.renderer=R;this.macros=h;this.layoutId=K;this.interactionLoggingClientData=I;this.G=N;this.id=I1(b)}};g.Dx(g.NU,g.N3);g.W=g.NU.prototype;g.W.subscribe=function(b,R,h){return this.HY()?0:this.HR.subscribe(b,R,h)}; g.W.unsubscribe=function(b,R,h){return this.HY()?!1:this.HR.unsubscribe(b,R,h)}; g.W.pN=function(b){return this.HY()?!1:this.HR.pN(b)}; g.W.publish=function(b,R){return this.HY()?!1:this.HR.publish.apply(this.HR,arguments)}; g.W.vZ=function(b,R){for(let h in b)this.subscribe(h,b[h],R)}; g.W.jG=function(b,R){for(let h in b)this.unsubscribe(h,b[h],R)};var kG=16/9,AiK=[.25,.5,.75,1,1.25,1.5,1.75,2],i3e=AiK.concat([3,4,5,6,7,8,9,10,15]),zxq=AiK.concat([2.5,3,3.5,4]);var QZP=1;g.Ag=class extends g.N3{constructor(b){super();this.Zl={};this.er={};this.element=this.createElement(b)}createElement(b,R){R=R||b.B==="svg";let h;var K=b.Z,I=b.F5;R?(h=document.createElementNS("http://www.w3.org/2000/svg",b.B),g.qH&&(b.O||(b.O={}),b.O.focusable="false")):h=g.jO(b.B);if(K){if(K=l2(this,h,"class",K))a1(this,h,"class",K),this.Zl[K]=h}else if(I){for(var N of I)this.Zl[N]=h;a1(this,h,"class",I.join(" "))}K=b.IH;I=b.W;if(K)R=l2(this,h,"child",K),R!==void 0&&h.appendChild(g.Ax(R));else if(I){K= 0;for(var p of I)p&&(typeof p==="string"?(I=l2(this,h,"child",p),I!=null&&h.appendChild(g.Ax(I))):p.element?h.appendChild(p.element):(N=p,I=this.createElement(N,R),h.appendChild(I),N.XX&&(N=pW(),I.id=N,I=document.createElementNS("http://www.w3.org/2000/svg","use"),I.setAttribute("class","ytp-svg-shadow"),I.setAttributeNS("http://www.w3.org/1999/xlink","href",`#${N}`),UU(h,I,K++))))}if(b=b.O){R=h;for(const l of Object.keys(b))p=b[l],a1(this,R,l,typeof p==="string"?l2(this,R,l,p):p)}return h}yX(b){return this.Zl[b]}AX(b, R){typeof R==="number"?UU(b,this.element,R):b.appendChild(this.element)}detach(){g.GF(this.element)}update(b){for(const R of Object.keys(b))this.updateValue(R,b[R])}updateValue(b,R){(b=this.er[`{{${b}}}`])&&a1(this,b[0],b[1],R)}X5(){this.Zl={};this.er={};this.detach();super.X5()}};g.w=class extends g.Ag{constructor(b){super(b);this.XM=!0;this.G6=!1;this.listeners=[]}setContent(b,R){this.updateValue(R||"content",b)}show(){this.XM||(g.MN(this.element,"display",""),this.XM=!0)}hide(){this.XM&&(g.MN(this.element,"display","none"),this.XM=!1)}sW(b){b?this.show():this.hide()}Qp(b){this.G6=b}Cm(){return this.XM}listen(b,R,h){return this.j(this.element,b,R,h)}j(b,R,h,K){h=(0,g.Ms)(h,K||this);K={target:b,type:R,listener:h};this.listeners.push(K);b.addEventListener(R,h);return K}Ac(b){this.listeners.forEach((R, h)=>{R===b&&(R=this.listeners.splice(h,1)[0],R.target.removeEventListener(R.type,R.listener))})}focus(){this.element.focus()}X5(){for(;this.listeners.length;){const b=this.listeners.pop(); b&&b.target.removeEventListener(b.type,b.listener)}super.X5()}};g.PH=class extends g.w{constructor(b){super(b);this.Ty=new g.NU;g.n(this,this.Ty)}subscribe(b,R,h){return this.Ty.subscribe(b,R,h)}unsubscribe(b,R,h){return this.Ty.unsubscribe(b,R,h)}pN(b){return this.Ty.pN(b)}publish(b,...R){return this.Ty.publish(b,...R)}};var UQs=new WeakSet,iN=class extends g.PH{constructor(b,R,h,K,I,N,p=null){super(R);this.api=b;this.macros={};this.componentType=h;this.K=this.U=null;this.fR=p;this.layoutId=K;this.interactionLoggingClientData=I;this.eY=N;this.pR=null;this.ZY=new dc(this.element);g.n(this,this.ZY);this.wp=this.j(this.element,"click",this.onClick);this.SY=[];this.gp=new t2P(this.onClick,this);g.n(this,this.gp);this.PH=!1;this.JX=this.nR=null}bind(b){this.pR||b.renderer&&this.init(b.id,b.renderer,{},b);return Promise.resolve()}init(b, R,h){this.pR=b;this.element.setAttribute("id",this.pR);this.fR&&g.Nv(this.element,this.fR);this.nR=R&&R.adRendererCommands;this.JX=R.interaction;this.JX?.onTap&&g.Nv(this.element,"ytp-ad-component--clickable");this.macros=h;this.U=R.trackingParams||null;this.K=g.Z(R.rendererContext,ACx)?.loggingDirectives??R.loggingDirectives;this.U!=null?this.createServerVe(this.element,this.U):this.K&&(b=this.element,R=this.K,this.api.createServerVe(b,this,!0),this.api.setTrackingParams(b,R.trackingParams||null))}clear(){}hide(){super.hide(); (this.U!=null||this.K)&&this.logVisibility(this.element,!1)}show(){super.show();if(!this.PH){this.PH=!0;var b=this.nR&&this.nR.impressionCommand;const R=this.JX?.onFirstVisible;b?this.MJ(b):R&&(b=P7(R))&&this.MJ(b)}(this.U!=null||this.K)&&this.logVisibility(this.element,!0)}onClick(b){if((this.U||this.K)&&!UQs.has(b)){var R=this.element;this.api.hasVe(R)&&this.XM&&this.api.logClick(R,this.interactionLoggingClientData);UQs.add(b)}var h=this.nR&&this.nR.clickCommand;R=this.JX?.onTap;if(h){var K=this.CR(h); this.MJ(K)}else{if(h=R)a:{h=this.element;b=b.composedPath();for(K of b){if(K===h)break;if(K.className.indexOf("ytp-ad-component--clickable")>=0){h=!1;break a}}h=!0}h&&(K=P7(R))&&this.MJ(K)}}CR(b){return b}onTouchStart(b){this.gp.onTouchStart(b)}onTouchMove(b){this.gp.onTouchMove(b)}onTouchEnd(b){if(this.gp)this.gp.onTouchEnd(b)}MJ(b){this.layoutId?this.eY.executeCommand(b,this.layoutId):(b=new g.A$("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}), g.X(b))}createServerVe(b,R){this.api.createServerVe(b,this);this.api.setTrackingParams(b,R)}logVisibility(b,R){this.api.hasVe(b)&&this.api.logVisibility(b,R,this.interactionLoggingClientData)}X5(){this.clear(null);this.Ac(this.wp);for(const b of this.SY)this.Ac(b);super.X5()}};var Q7=class extends iN{constructor(b,R,h,K,I=[],N="button",p=!1,l,a=!1){I={B:"button",F5:["ytp-ad-button"].concat(I)};l!=null&&(I.O={tabindex:l});super(b,I,N,R,h,K);this.G=this.Y=this.X=null;this.S=p;this.V=a;this.hide()}init(b,R,h){super.init(b,R,h);this.G=R;if(R.text==null&&R.icon==null)g.kJ(Error("ButtonRenderer did not have text or an icon set."));else{switch(R.style||null){case "STYLE_UNKNOWN":b="ytp-ad-button-link";break;default:b=null}b!=null&&g.Nv(this.element,b);R.text!=null&&(b=g.BY(R.text), g.fj(b)||(this.element.setAttribute("aria-label",b),this.X=new g.PH({B:"span",Z:"ytp-ad-button-text",IH:b}),g.n(this,this.X),this.X.AX(this.element)));R.accessibilityData&&R.accessibilityData.accessibilityData&&R.accessibilityData.accessibilityData.label&&!g.fj(R.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",R.accessibilityData.accessibilityData.label);R.icon!=null&&(R=Tr(R.icon,this.V),R!=null&&(this.Y=new g.PH({B:"span",Z:"ytp-ad-button-icon",W:[R]}),g.n(this, this.Y)),this.S?UU(this.element,this.Y.element,0):this.Y.AX(this.element))}}clear(){this.hide()}onClick(b){super.onClick(b);for(const R of HSK(this))this.layoutId?this.eY.executeCommand(R,this.layoutId):g.X(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)}};var qET=class extends g.N3{constructor(){super();this.G=new Map;this.Y=$Z2(b=>{if(b.target&&(b=this.G.get(b.target))&&b)for(let R=0;R0&&(this.toggleButton(!this.isToggled()),this.D());super.onClick(b)}D(){g.k(this.V,"ytp-ad-toggle-button-toggled",this.isToggled());for(const b of jSe(this,this.isToggled()))this.layoutId? this.eY.executeCommand(b,this.layoutId):g.X(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);On(this)}clear(){this.hide()}toggleButton(b){g.k(this.V,"ytp-ad-toggle-button-toggled",b);this.G.checked=b;On(this)}isToggled(){return this.G.checked}};var A6H=class{constructor(b,R,h){this.actionType=R;this.id=h;this.content=b}};var Wje=class extends vi{constructor(b){super();this.G=b;this.j(this.G,"onAdUxUpdate",this.J)}J(b){if(Array.isArray(b))for(const R of b)R instanceof A6H&&this.V(R)}};var W7x=class extends iN{constructor(b,R,h,K){super(b,{B:"div",Z:"ytp-ad-feedback-dialog-background",W:[{B:"div",Z:"ytp-ad-feedback-dialog-container",W:[{B:"div",Z:"ytp-ad-feedback-dialog-form",O:{role:"dialog",tabindex:"-1"},W:[{B:"div",Z:"ytp-ad-feedback-dialog-title",W:[{B:"span",IH:"{{title}}"}]},{B:"span",Z:"ytp-ad-info-dialog-feedback-options-title",IH:"{{reasonsTitle}}"},{B:"div",Z:"ytp-ad-info-dialog-feedback-options"},{B:"div",Z:"ytp-ad-feedback-dialog-confirm-container",W:[{B:"button",Z:"ytp-ad-feedback-dialog-cancel-button", IH:"{{cancelLabel}}"},{B:"button",Z:"ytp-ad-feedback-dialog-confirm-button",IH:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",R,h,K);this.V=[];this.G=null;this.S=this.yX("ytp-ad-feedback-dialog-cancel-button");this.J=this.yX("ytp-ad-feedback-dialog-confirm-button");this.C=this.yX("ytp-ad-info-dialog-feedback-options");this.T6=this.yX("ytp-ad-feedback-dialog-title");this.X=this.Y=null;this.hide()}init(b,R,h){super.init(b,R,h);R.reasons?R.confirmLabel==null?g.X(Error("AdFeedbackRenderer.confirmLabel was not set.")): (R.cancelLabel==null&&g.kJ(Error("AdFeedbackRenderer.cancelLabel was not set.")),R.title==null&&g.kJ(Error("AdFeedbackRenderer.title was not set.")),U5e(this,R)):g.X(Error("AdFeedbackRenderer.reasons were not set."))}clear(){Rz(this.S);Rz(this.J);this.V.length=0;this.hide()}hide(){this.G&&this.G.hide();this.Y&&this.Y.hide();super.hide();this.X&&this.X.focus()}show(){this.G&&this.G.show();this.Y&&this.Y.show();this.X=document.activeElement;super.show();this.S.focus()}D(){this.api.onAdUxClicked("ad-feedback-dialog-close-button", this.layoutId);this.publish("a");this.hide()}vY(){this.hide()}},GWT=class{constructor(b,R){this.Y=R;this.G=new g.PH({B:"label",Z:"ytp-ad-feedback-dialog-reason-label",W:[{B:"input",Z:"ytp-ad-feedback-dialog-reason-input",O:{type:"radio",name:"feedback-reason-group"}},{B:"span",Z:"ytp-ad-feedback-dialog-reason-text",IH:g.BY(b)}]});this.X=this.G.yX("ytp-ad-feedback-dialog-reason-input")}hO(){return this.G.element}getCommand(){return this.Y}isChecked(){return this.X.checked}};var n3B=class extends gk2{S(b){super.S(b);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}V(b){super.V(b);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}J(b){super.J(b);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")}};var OS3=class extends iN{constructor(b,R,h,K,I){super(b,{B:"div",Z:"ytp-ad-info-dialog-background",W:[{B:"div",Z:"ytp-ad-info-dialog-container",W:[{B:"div",Z:"ytp-ad-info-dialog-form",O:{role:"dialog",tabindex:"-1"},W:[{B:"div",Z:"ytp-ad-info-dialog-title",IH:"{{title}}"},{B:"ul",Z:"ytp-ad-info-dialog-ad-reasons"},{B:"div",Z:"ytp-ad-info-dialog-message"},{B:"div",Z:"ytp-ad-info-dialog-mute-container"},{B:"div",Z:"ytp-ad-info-dialog-confirm-container",W:[{B:"button",Z:"ytp-ad-info-dialog-confirm-button", IH:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",R,h,K);this.G=this.Y=null;this.J=this.yX("ytp-ad-info-dialog-confirm-button");this.xZ=this.yX("ytp-ad-info-dialog-mute-container");this.Zr=this.yX("ytp-ad-info-dialog-message");this.vY=this.yX("ytp-ad-info-dialog-ad-reasons");this.V=this.X=null;this.C=I;this.S=null;this.NJ=!1;this.D=null;this.hide()}init(b,R,h){super.init(b,R,h);this.S=R;if(R.dialogMessage==null&&R.title==null)g.X(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set.")); else{R.confirmLabel==null&&g.kJ(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(b=R.closeOverlayRenderer&&g.Z(R.closeOverlayRenderer,N6)||null)this.G=new Q7(this.api,this.layoutId,this.interactionLoggingClientData,this.eY,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),g.n(this,this.G),this.G.init(I1("button"),b,this.macros),this.G.AX(this.element);R.title&&(b=g.BY(R.title),this.updateValue("title",b));if(R.adReasons)for(b=R.adReasons,h=0;hthis.hide()); g.n(this,this.T6);this.NJ=0;this.xZ=!1;this.RH=N;this.hide()}init(b,R,h){super.init(b,R,h);b=R.durationMilliseconds;typeof b==="number"&&b<0&&g.X(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+b));this.RH&&(this.J?g.Nv(this.Y.element,"modern-countdown-next-to-thumbnail"):g.Nv(this.Y.element,"countdown-next-to-thumbnail"));b=R.durationMilliseconds;this.NJ=b==null||b===0?this.G.LB():b;if(R.templatedCountdown)var K=R.templatedCountdown.templatedAdText;else R.staticPreview&& (K=R.staticPreview);this.V.init(I1("ad-text"),K,h);(K=this.api.getVideoData({playerType:1}))&&K.gU&&R.thumbnail?this.D.init(I1("ad-image"),R.thumbnail,h):(this.vY.hide(),this.J&&this.RH&&g.Nv(this.V.element,"ytp-ad-preview-text-modern-postroll"))}clear(){this.hide()}hide(){this.Y.hide();this.V.hide();this.D.hide();PY(this);super.hide()}show(){mp(this);this.Y.show();this.V.show();this.D.show();super.show()}S(){this.hide()}X(){if(this.G!=null){var b=this.G.getProgressState();b!=null&&b.current!=null&& (b=1E3*b.current,!this.xZ&&b>=this.NJ?(this.T6.hide(),this.xZ=!0,this.publish("i")):this.V&&this.V.isTemplated()&&(b=Math.max(0,Math.ceil((this.NJ-b)/1E3)),b!=this.KR&&(x8(this.V,{TIME_REMAINING:String(b)}),this.KR=b)))}}};var nkK=class extends Wi{constructor(b,R,h,K,I,N){super(b,{B:"div",F5:["ytp-flyout-cta","ytp-flyout-cta-inactive"],W:[{B:"div",Z:"ytp-flyout-cta-icon-container"},{B:"div",Z:"ytp-flyout-cta-body",W:[{B:"div",Z:"ytp-flyout-cta-text-container",W:[{B:"div",Z:"ytp-flyout-cta-headline-container"},{B:"div",Z:"ytp-flyout-cta-description-container"}]},{B:"div",Z:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",R,h,K,I);this.V=new z0(this.api,this.layoutId,this.interactionLoggingClientData,this.eY, "ytp-flyout-cta-icon");g.n(this,this.V);this.V.AX(this.yX("ytp-flyout-cta-icon-container"));this.V.element.classList.add("ytp-flyout-cta-icon-rounded");this.D=new G0(this.api,this.layoutId,this.interactionLoggingClientData,this.eY,"ytp-flyout-cta-headline");g.n(this,this.D);this.D.AX(this.yX("ytp-flyout-cta-headline-container"));this.J=new G0(this.api,this.layoutId,this.interactionLoggingClientData,this.eY,"ytp-flyout-cta-description");g.n(this,this.J);this.J.AX(this.yX("ytp-flyout-cta-description-container")); this.Y=new Q7(this.api,this.layoutId,this.interactionLoggingClientData,this.eY,["ytp-flyout-cta-action-button","ytp-flyout-cta-action-button-rounded"]);g.n(this,this.Y);this.Y.AX(this.yX("ytp-flyout-cta-action-button-container"));this.Y.element.setAttribute("tabIndex","-1");MW(this.Y.element);this.T6=null;this.NJ=0;this.xZ=N;this.hide()}init(b,R,h){super.init(b,R,h);if(R.image&&R.image.thumbnail)if(R.headline)if(R.description)if((b=R.actionButton&&g.Z(R.actionButton,N6))&&b.navigationEndpoint){const I= this.api.getVideoData({playerType:2});if(I!=null)if(R.image&&R.image.thumbnail){var K=R.image.thumbnail.thumbnails;K!=null&&K.length>0&&g.fj(g.U5(K[0].url))&&(K[0].url=I.profilePicture)}else g.kJ(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.V.init(I1("ad-image"),R.image,h);this.D.init(I1("ad-text"),R.headline,h);this.J.init(I1("ad-text"),R.description,h);this.Y.init(I1("button"),b,h);h=w0(this.Y.element);Ll(this.Y.element,h+" This link opens in new tab");this.T6=b.navigationEndpoint; this.api.GK()||this.show();this.api.addEventListener("playerUnderlayVisibilityChange",this.vY.bind(this));this.NJ=R.startMs||0;mp(this)}else g.X(Error("FlyoutCtaRenderer has no valid action button."));else g.X(Error("FlyoutCtaRenderer has no description AdText."));else g.X(Error("FlyoutCtaRenderer has no headline AdText."));else g.kJ(Error("FlyoutCtaRenderer has no image."))}onClick(b){super.onClick(b);this.api.pauseVideo();!g.gM(this.Y.element,b.target)&&this.T6&&(this.layoutId?this.eY.executeCommand(this.T6, this.layoutId):g.X(Error("Missing layoutId for flyout cta.")))}X(){if(this.G){var b=this.G.getProgressState();(b&&b.current||this.xZ)&&1E3*b.current>=this.NJ&&(PY(this),g.lI(this.element,"ytp-flyout-cta-inactive"),this.Y.element.removeAttribute("tabIndex"))}}S(){this.clear()}clear(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.vY.bind(this))}show(){this.Y&&this.Y.show();super.show()}hide(){this.Y&&this.Y.hide();super.hide()}vY(b){b=="hidden"?this.show():this.hide()}};var Ekw=class extends iN{constructor(b,R,h,K){super(b,{B:"div",Z:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",R,h,K,null);this.G=null;this.X=new U9(this.api,this.layoutId,this.interactionLoggingClientData,this.eY,["ytp-ad-instream-user-sentiment-like-button"]);g.n(this,this.X);this.X.AX(this.element);this.Y=new U9(this.api,this.layoutId,this.interactionLoggingClientData,this.eY,["ytp-ad-instream-user-sentiment-dislike-button"]);g.n(this,this.Y);this.Y.AX(this.element);this.V= new g.Sg(this,400,!1,500,()=>this.hide()); g.n(this,this.V);this.hide()}init(b,R,h){super.init(b,R,h);this.G=R;if(this.G.rectangle){b=this.G.likeButton&&g.Z(this.G.likeButton,ph);R=this.G.dislikeButton&&g.Z(this.G.dislikeButton,ph);this.X.init(I1("toggle-button"),b,h);this.Y.init(I1("toggle-button"),R,h);this.j(this.element,"change",this.S);this.V.show(100);this.show();for(const K of this.G&&this.G.impressionCommands||[])this.layoutId?this.eY.executeCommand(K,this.layoutId):g.X(Error("Missing layoutId for instream user sentiment."))}}clear(){this.hide()}hide(){this.X.hide(); this.Y.hide();super.hide()}show(){this.X.show();this.Y.show();super.show()}S(){vX(this.element,"ytp-ad-instream-user-sentiment-selected");this.G.postMessageAction&&g.rw(this.api,"onYtShowToast",this.G.postMessageAction);this.V.hide()}onClick(b){this.SY.length>0&&this.S();super.onClick(b)}};var E9=class extends g.N3{constructor(b,R,h,K,I=0,N=!1){super();this.Y=b;this.X=!1;this.nR=K;this.T6=N;this.J=!1;this.G=null;R>0&&(this.G=new g.bI(this.G6,R,this),g.n(this,this.G));this.S=new g.bI(this.G6,h,this);g.n(this,this.S);this.C=qv(this.Y,I,1,K);g.n(this,this.C);this.D=qv(this.Y,0,K,1);g.n(this,this.D);this.V=new vi;g.n(this,this.V)}X5(){this.reset();super.X5()}reset(){this.V.Y();this.J=!1;this.G&&this.G.stop();this.S.stop();this.X&&(this.X=!1,this.D.play())}start(){this.reset();this.V.j(this.Y, "mouseover",this.U,this);this.V.j(this.Y,"mouseout",this.K,this);this.T6&&(this.V.j(this.Y,"focusin",this.U,this),this.V.j(this.Y,"focusout",this.K,this));this.G?this.G.start():(this.J=this.X=!0,g.MN(this.Y,{opacity:this.nR}))}U(){this.X&&(this.X=!1,this.D.play());this.S.stop();this.G&&this.G.stop()}K(){this.J?this.S.start():this.G&&this.G.start()}G6(){this.X||(this.X=!0,this.C.play(),this.J=!0)}};var T0=class{constructor(b,R){this.Y=b;this.G=R}},PV3=[new T0("b.f_",0),new T0("j.s_",2),new T0("r.s_",4),new T0("e.h_",6),new T0("i.s_",8),new T0("s.t_",10),new T0("p.h_",12),new T0("s.i_",14),new T0("f.i_",16),new T0("a.b_",18),new T0("a.o_"),new T0("g.o_",22),new T0("p.i_",24),new T0("p.m_"),new T0("n.k_",20),new T0("i.f_"),new T0("a.s_"),new T0("m.c_"),new T0("n.h_",26),new T0("o.p_"),new T0("m.p_",28),new T0("o.a_"),new T0("d.p_"),new T0("e.i_")].reduce((b,R)=>{b[R.Y]=R;return b},{});g.n6=class{constructor(b,R){this.state=b;this.oldState=R}Up(b){return X3(this,b)>0}};var TiB=class extends Wi{constructor(b,R,h,K,I,N){super(b,{B:"div",Z:"ytp-ad-skip-button-slot"},"skip-button",R,h,K,I);this.T6=null;this.vY=!1;this.xZ=N;this.D=this.api.L().experiments.O9("enable_modern_skip_button_on_web");this.KR=!1;this.J=new g.PH({B:"span",F5:["ytp-ad-skip-button-container"]});this.D&&this.J.element.classList.add("ytp-ad-skip-button-container-detached");g.n(this,this.J);this.J.AX(this.element);this.Y=this.V=null;this.RH=new g.Sg(this.J,500,!1,100,()=>this.hide()); g.n(this,this.RH);this.NJ=new E9(this.J.element,15E3,5E3,.5,.5,this.D);g.n(this,this.NJ);this.hide()}init(b,R,h){super.init(b,R,h);this.T6=R;(this.vY=cK2(this))&&g.kJ(Error("hasAdControlInClickCommands_ is true."));!R||g.RT(R)?g.X(Error("SkipButtonRenderer was not specified or empty.")):!R.message||g.RT(R.message)?g.X(Error("SkipButtonRenderer.message was not specified or empty.")):(b=this.D?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"},R=this.api.L().N("delhi_modern_web_player_icons"),R=Tr(b, !1,!1,R),R==null?g.X(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+b.iconType+".")):(this.api.L().N("disable_touch_events_on_skip_button")&&(R.O={...R.O,"aria-hidden":"true",focusable:"false"}),this.V=new g.PH({B:"button",F5:[this.D?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],W:[{B:"span",Z:this.D?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",W:[R]}]}),g.n(this,this.V),this.V.AX(this.J.element),this.Y=new G0(this.api,this.layoutId,this.interactionLoggingClientData, this.eY,"ytp-ad-skip-button-text"),this.D&&this.Y.element.classList.add("ytp-ad-skip-button-text-centered"),this.Y.init(I1("ad-text"),this.T6.message,h),g.n(this,this.Y),UU(this.V.element,this.Y.element,0)),this.api.L().N("disable_touch_events_on_skip_button")||(h=this.api.L(),!(this.SY.length>0)&&h.Y&&(j4?0:"ontouchstart"in document.documentElement&&(yo()||fK()))&&(this.Ac(this.wp),this.SY=[this.j(this.element,"touchstart",this.onTouchStart,this),this.j(this.element,"touchmove",this.onTouchMove, this),this.j(this.element,"touchend",this.onTouchEnd,this)])))}clear(){this.NJ.reset();this.hide()}hide(){this.J.hide();this.Y&&this.Y.hide();PY(this);super.hide()}onClick(b){if(this.V!=null){if(b){var R=b||window.event;R.returnValue=!1;R.preventDefault&&R.preventDefault()}if(x5K(b,{contentCpn:this.api.getVideoData({playerType:1})?.clientPlaybackNonce||""})===0)g.rw(this.api,"onAbnormalityDetected");else if(super.onClick(b),this.publish("j"),g.rw(this.api,"onAdSkip"),this.xZ||!this.vY)this.api.onAdUxClicked(this.componentType, this.layoutId)}}CR(b){if(!this.xZ)return this.vY&&u2("SkipButton click commands not pruned while ALC exist"),b;const R=g.Z(b,g.V7)?.commands;if(!R)return b;b=[];for(let h=0;h=this.D&&uax(this,!0)}};var Jie=class extends Q7{constructor(b,R,h,K){super(b,R,h,K,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}init(b,R,h){super.init(b,R,h);b=!1;R.text!=null&&(b=g.BY(R.text),b=!g.fj(b));b?R.navigationEndpoint==null?g.kJ(Error("No visit advertiser clickthrough provided in renderer,")):R.style!=="STYLE_UNKNOWN"?g.kJ(Error("Button style was not a link-style type in renderer,")):this.show():g.kJ(Error("No visit advertiser text was present in the renderer."))}};var Jg=class extends iN{constructor(b,R,h,K,I=!1,N=!1){super(b,{B:"span",Z:"ytp-ad-simple-ad-badge"},"simple-ad-badge",R,h,K);this.G=this.yX("ytp-ad-simple-ad-badge");(this.Y=I)&&this.G.classList.add("ytp-ad-simple-ad-badge--clean-player");N&&this.G.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}init(b,R,h){super.init(b,R,h);b=R.text;g.fj(vY(b))?g.kJ(Error("SimpleAdBadgeRenderer has invalid or empty text")):(b&&b.text&&(R=b.text,this.Y||(R=this.api.L(),R=b.text+" "+(R&&R.Y?"\u2022":"\u00b7")), R={text:R,isTemplated:b.isTemplated},b.style&&(R.style=b.style),b.targetId&&(R.targetId=b.targetId),b=new G0(this.api,this.layoutId,this.interactionLoggingClientData,this.eY),b.init(I1("simple-ad-badge"),R,h),b.AX(this.element),g.n(this,b)),this.show())}clear(){this.hide()}};var kF=class extends jg{constructor(b,R,h,K,I=!1){super("player-overlay",b,{},R,K);this.videoAdDurationSeconds=h;this.interactionLoggingClientData=K;this.IN=I}};var L7=class extends g.NU{constructor(b,R){super();this.api=b;this.durationMs=R;this.G=null;this.handler=new vi(this);g.n(this,this.handler);this.Y=S2T;this.handler.j(this.api,"presentingplayerstatechange",this.X);this.G=this.handler.j(this.api,"onAdPlaybackProgress",this.FX)}LB(){return this.durationMs}stop(){this.G&&this.handler.Ac(this.G)}FX(b){this.Y={seekableStart:0,seekableEnd:this.durationMs/1E3,current:b.current};this.publish("h")}getProgressState(){return this.Y}X(b){b.Up(2)&&this.publish("g")}};var YF=class extends g.NU{constructor(b){super();this.G=!1;this.tW=0;this.handler=new vi(this);g.n(this,this.handler);this.durationMs=b;this.timer=new g.IG(100);g.n(this,this.timer);this.handler.j(this.timer,"tick",this.FX);this.Y={seekableStart:0,seekableEnd:b/1E3,current:0};this.start()}LB(){return this.durationMs}start(){this.G||(this.G=!0,this.timer.start())}stop(){this.G&&(this.G=!1,this.timer.stop())}FX(){this.tW+=100;let b=!1;this.tW>this.durationMs&&(this.tW=this.durationMs,this.timer.stop(), b=!0);this.Y={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.tW/1E3};this.publish("h");b&&this.publish("g")}getProgressState(){return this.Y}};var eg=class extends Wi{constructor(b,R,h,K,I,N,p){super(b,{B:"span",Z:p?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",R,h,K,I);this.videoAdDurationSeconds=N;this.Y=null;p&&this.api.L().Y&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),Nr&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()}init(b,R,h){super.init(b,R,h);if(R?.templatedCountdown?.templatedAdText){b=R.templatedCountdown.templatedAdText;if(!b.isTemplated){g.kJ(Error("AdDurationRemainingRenderer has no templated ad text.")); return}this.Y=new G0(this.api,this.layoutId,this.interactionLoggingClientData,this.eY);this.Y.init(I1("ad-text"),b,{});this.Y.AX(this.element);g.n(this,this.Y)}this.show()}clear(){this.hide()}hide(){PY(this);super.hide()}S(){this.hide()}X(){if(this.G!=null){var b=this.G.getProgressState();if(b!=null&&b.current!=null&&this.Y){var R=this.G instanceof L7?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:b.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.G instanceof YF?b.seekableEnd:this.api.getDuration(2,!1);b=b.current;R=this.api.getVideoData()?.eK?.()?Math.max(R-b,0):R-b;x8(this.Y,{FORMATTED_AD_DURATION_REMAINING:String(g.CW(R)),TIME_REMAINING:String(Math.ceil(R))})}}}show(){mp(this);super.show()}};var ktx=class extends G0{constructor(b,R,h,K){super(b,R,h,K,"ytp-video-ad-top-bar-title","ad-title")}onClick(b){super.onClick(b);this.api.onAdUxClicked(this.componentType)}};var O9=class{constructor(b){this.content=b.content;if(b.commandRuns)for(const R of b.commandRuns)this.loggingDirectives=g.Z(R,qyH),R.onTap&&(this.interaction={onTap:R.onTap})}},Q1=class extends iN{constructor(b,R,h,K){super(b,{B:"div",Z:"ad-simple-attributed-string"},"ad-simple-attributed-string",R,h,K);this.hide()}init(b,R){super.init(b,R,{});(b=R.content)?(g.W_(this.element,b),this.element.setAttribute("aria-label",R.interaction?.accessibility?.label||b)):g.X(Error("AdSimpleAttributedString does not have text content"))}clear(){this.hide()}onClick(b){super.onClick(b)}};var xF=class extends iN{constructor(b,R,h,K,I){super(b,{B:"span",Z:I?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",R,h,K);this.Y=I;this.adBadgeText=new Q1(this.api,this.layoutId,this.interactionLoggingClientData,this.eY);this.adBadgeText.AX(this.element);g.n(this,this.adBadgeText);I?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),Nr&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text"); this.hide()}init(b,R){super.init(b,R,{});(b=R.label)&&b.content&&!g.fj(b.content)?(this.adBadgeText.init(I1("ad-simple-attributed-string"),new O9(b)),(R=R.adPodIndex)&&R.content&&!g.fj(R.content)&&(this.G=new Q1(this.api,this.layoutId,this.interactionLoggingClientData,this.eY),this.G.AX(this.element),g.n(this,this.G),this.G.element.classList.add("ytp-ad-badge__pod-index"),this.G.init(I1("ad-simple-attributed-string"),new O9(R))),this.element.classList.add(this.Y?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.X(Error("No label is returned in AdBadgeViewModel."))}show(){this.adBadgeText.show();this.G?.show();super.show()}hide(){this.adBadgeText.hide();this.G?.hide();super.hide()}};var Y2q=class extends iN{constructor(b,R,h,K){super(b,{B:"span",Z:"ytp-ad-pod-index"},"ad-pod-index",R,h,K);this.api.L().Y&&(this.element.classList.add("ytp-ad-pod-index--mweb"),Nr&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()}init(b,R){super.init(b,R,{});(b=R.adPodIndex)&&b.content&&!g.fj(b.content)&&(this.G=new Q1(this.api,this.layoutId,this.interactionLoggingClientData,this.eY),this.G.AX(this.element),g.n(this,this.G),this.G.init(I1("ad-simple-attributed-string"),new O9(b)), R.visibilityCondition==="AD_POD_INDEX_VISIBILITY_CONDITION_AUTOHIDE"&&this.element.classList.add("ytp-ad-pod-index--autohide"));this.element.classList.add("ytp-ad-pod-index--stark");this.show()}show(){this.G?.show();super.show()}hide(){this.G?.hide();super.hide()}};var exT=class extends iN{constructor(b,R,h,K){super(b,{B:"div",Z:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",R,h,K);this.hide()}init(b,R){super.init(b,R,{});R?.text?R.text?.content&&!g.fj(R.text.content)&&(this.G=new g.PH({B:"div",Z:"ytp-ad-disclosure-banner__text",IH:R.text.content}),g.n(this,this.G),this.G.AX(this.element),this.api.L().N("enable_ad_disclosure_banner_a11y_fix")?((b=R.interaction?.accessibility?.label)||(b=`${R.text.content} ${"This link opens in new tab"}`),Ll(this.element, b)):this.element.setAttribute("aria-label",R.interaction?.accessibility?.label||R.text.content),R.interaction?.onTap&&(this.api.L().N("remove_chevron_from_ad_disclosure_banner_h5")||(this.Y=new g.PH({B:"div",Z:"ytp-ad-disclosure-banner__chevron",W:[g.fW()]}),g.n(this,this.Y),this.Y.AX(this.element)),this.api.L().N("enable_ad_disclosure_banner_a11y_fix")&&(MW(this.element),this.element.setAttribute("tabindex","0"),this.listen("keydown",this.VA))),this.show()):g.X(Error("No banner text found in AdDisclosureBanner."))}VA(b){if(b.key=== "Enter"||b.key===" ")b.preventDefault(),this.element.click()}clear(){this.hide()}};var br=class{constructor(b,R){this.Y=b;this.G=R}};var we=class extends g.PH{constructor(b,R,h,K=!1){super({B:"div",Z:"ytp-ad-persistent-progress-bar-container",W:[{B:"div",Z:"ytp-ad-persistent-progress-bar"}]});this.api=b;this.Y=R;this.X=h;K&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.n(this,this.Y);this.progressBar=this.yX("ytp-ad-persistent-progress-bar");this.G=-1;this.j(b,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}FX(){const b=this.Y.getProgressState();let R= b.seekableEnd;this.api.getPresentingPlayerType()===2&&(R=this.X?this.X/1E3:b.seekableEnd);this.progressBar.style.width=rm(new br(b.seekableStart,R),b.current,0)*100+"%"}onStateChange(){g.Mz(this.api.L())||(this.api.getPresentingPlayerType()===2?this.G===-1&&(this.show(),this.G=this.Y.subscribe("h",this.FX,this),this.FX()):this.G!==-1&&(this.hide(),this.Y.pN(this.G),this.G=-1))}};var deT=class extends iN{constructor(b,R,h,K,I,N){super(b,{B:"div",Z:"ytp-ad-player-overlay",W:[{B:"div",Z:"ytp-ad-player-overlay-flyout-cta"},{B:"div",Z:"ytp-ad-player-overlay-instream-info"},{B:"div",Z:"ytp-ad-player-overlay-skip-or-preview"},{B:"div",Z:"ytp-ad-player-overlay-progress-bar"},{B:"div",Z:"ytp-ad-player-overlay-instream-user-sentiment"},{B:"div",Z:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",R,h,K);this.J=N;this.S=this.yX("ytp-ad-player-overlay-flyout-cta");this.S.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.G=this.yX("ytp-ad-player-overlay-instream-info");this.V=null;Vdw(this)&&(b=tx("div"),g.Nv(b,"ytp-ad-player-overlay-top-bar-gradients"),R=b,h=this.G,h.parentNode&&h.parentNode.insertBefore(R,h),(R=this.api.getVideoData({playerType:2}))&&R.isListed&&R.title&&(h=new ktx(this.api,this.layoutId,this.interactionLoggingClientData,this.eY),h.AX(b),h.init(I1("ad-title"),{text:R.title},this.macros),g.n(this,h)),this.V=b);this.X=null;this.vY=this.yX("ytp-ad-player-overlay-skip-or-preview");this.T6=this.yX("ytp-ad-player-overlay-progress-bar"); this.C=this.yX("ytp-ad-player-overlay-instream-user-sentiment");this.D=this.yX("ytp-ad-player-overlay-ad-disclosure-banner");this.Y=I;g.n(this,this.Y);this.hide()}init(b,R,h,K){super.init(b,R,h);if(R.skipOrPreviewRenderer){if(b=g.Z(R.skipOrPreviewRenderer,C6))h=new Me(this.api,this.layoutId,this.interactionLoggingClientData,this.eY,this.Y,this.J),h.AX(this.vY),h.init(I1("skip-button"),b,this.macros),g.n(this,h);if(b=g.Z(R.skipOrPreviewRenderer,C6))var I=b.skipOffsetMilliseconds}R.brandInteractionRenderer&& (b=R.brandInteractionRenderer.brandInteractionRenderer,h=new Ekw(this.api,this.layoutId,this.interactionLoggingClientData,this.eY),h.AX(this.C),h.init(I1("instream-user-sentiment"),b,this.macros),g.n(this,h));if(b=g.Z(R,P_D))if(h=g.Z(b,P_D))b=new nkK(this.api,this.layoutId,this.interactionLoggingClientData,this.eY,this.Y,!!R.showWithoutLinkedMediaLayout),g.n(this,b),b.AX(this.S),b.init(I1("flyout-cta"),h,this.macros);K=K&&K.videoAdDurationSeconds;R.adBadgeRenderer&&(h=R.adBadgeRenderer,b=g.Z(h,Dv), b!=null?(h=new xF(this.api,this.layoutId,this.interactionLoggingClientData,this.eY,!1),g.n(this,h),h.AX(this.G),h.init(I1("ad-badge"),b,this.macros),this.X=h.element):(b=h.simpleAdBadgeRenderer,b==null&&(b={text:{text:"Anuncio",isTemplated:!1}}),h=new Jg(this.api,this.layoutId,this.interactionLoggingClientData,this.eY),g.n(this,h),h.AX(this.G),h.init(I1("simple-ad-badge"),b,this.macros)));R.adPodIndex&&(b=g.Z(R.adPodIndex,wKH),b!=null&&(h=new Y2q(this.api,this.layoutId,this.interactionLoggingClientData, this.eY),g.n(this,h),h.AX(this.G),h.init(I1("ad-pod-index"),b)));R.adDurationRemaining&&!R.showWithoutLinkedMediaLayout&&(b=R.adDurationRemaining.adDurationRemainingRenderer,b==null&&(b={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),K=new eg(this.api,this.layoutId,this.interactionLoggingClientData,this.eY,this.Y,K,!1),g.n(this,K),K.AX(this.G),K.init(I1("ad-duration-remaining"),b,this.macros));R.adInfoRenderer&&(K=g.Z(R.adInfoRenderer,nA))&&(b=new uY(this.api, this.layoutId,this.interactionLoggingClientData,this.eY,this.element,void 0,!1),g.n(this,b),this.X!==null?this.G.insertBefore(b.element,this.X.nextSibling):b.AX(this.G),b.init(I1("ad-info-hover-text-button"),K,this.macros));R.visitAdvertiserRenderer&&(b=g.Z(R.visitAdvertiserRenderer,N6))&&(h=Vdw(this)&&this.V?this.V:this.G)&&(K=new Jie(this.api,this.layoutId,this.interactionLoggingClientData,this.eY),g.n(this,K),K.AX(h),K.init(I1("visit-advertiser"),b,this.macros),MW(K.element),b=w0(K.element),Ll(K.element, b+" This link opens in new tab"));!(K=this.api.L())||g.rv(K)||g.Fo(K)||K.controlsType!="3"&&!K.disableOrganicUi||(I=new we(this.api,this.Y,I,!1),I.AX(this.T6),g.n(this,I));R.adDisclosureBannerRenderer&&(I=g.Z(R.adDisclosureBannerRenderer,L4e))&&(R=new exT(this.api,this.layoutId,this.interactionLoggingClientData,this.eY),R.AX(this.D),R.init(I1("ad-disclosure-banner"),I),g.n(this,R));this.api.L().N("enable_updated_html5_player_focus_style")&&g.Nv(this.element,"ytp-ad-player-overlay-updated-focus-style"); this.show()}clear(){this.hide()}};var O32=class{flush(b=[],R=!1){if(g.cg("enable_client_streamz_web"))for(const h of b)b=xW(h),this.G&&NP(b,hjw,2,this.G),b={serializedIncrementBatch:g.Zc(b.Y())},g.yp("streamzIncremented",b,{sendIsolatedPayload:R})}},CVe=class extends O32{constructor(){super()}},uTD=class extends O32{constructor(b){super();var R=new hjw;var h=new Rjx;h=tV(h,1,"botguard");b=tV(h,2,b);this.G=pR(R,Rjx,1,KNw,b)}};var F3,cHH=new Map;var nmP=class{constructor(b){this.G=new xd(b)}set(b,R,h){h=h!==void 0?Date.now()+h:void 0;this.G.set(b,R,h)}get(b){return this.G.get(b)}remove(b){this.G.remove(b)}};var rKK=null;var KY=null,sC=null,$Y=null,D5x=null;g.kB("yt.www.ads.eventcache.getLastCompanionData",function(){return KY}); g.kB("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.kB("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return sC}); g.kB("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return $Y}); g.kB("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return D5x});var hfK=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var N0=class{constructor(){this.G={};if(this.Y=Skw()){const b=g.pX("CONSISTENCY");b&&sUq(this,{encryptedTokenJarContents:b})}}handleResponse(b,R){if(!R)throw Error("request needs to be passed into ConsistencyService");R=R.W3.context?.request?.consistencyTokenJars||[];(b=b.responseContext?.consistencyTokenJar)&&this.replace(R,b)}replace(b,R){for(const h of b)delete this.G[h.encryptedTokenJarContents];sUq(this,R)}};var Q2D=window.location.hostname.split(".").slice(-2).join("."),pY=class{constructor(){this.Y=-1;let b=g.x("LOCATION_PLAYABILITY_TOKEN");g.x("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=ID(this))&&(b=this.localStorage.get("yt-location-playability-token"));b&&(this.locationPlayabilityToken=b,this.G=void 0)}static getInstance(){mH=g.YB("yt.clientLocationService.instance");mH||(mH=new pY,g.kB("yt.clientLocationService.instance",mH));return mH}setLocationOnInnerTubeContext(b){b.client||(b.client= {});if(this.G)b.client.locationInfo||(b.client.locationInfo={}),b.client.locationInfo.latitudeE7=Math.floor(this.G.coords.latitude*1E7),b.client.locationInfo.longitudeE7=Math.floor(this.G.coords.longitude*1E7),b.client.locationInfo.horizontalAccuracyMeters=Math.round(this.G.coords.accuracy),b.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.X||this.locationPlayabilityToken)b.client.locationPlayabilityToken=this.X||this.locationPlayabilityToken}handleResponse(b){b=b.responseContext?.locationPlayabilityToken; b!==void 0&&(this.locationPlayabilityToken=b,this.G=void 0,g.x("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=ID(this))&&this.localStorage.set("yt-location-playability-token",b,15552E3):g.Nj("YT_CL",JSON.stringify({loctok:b}),15552E3,Q2D,!0))}clearLocationPlayabilityToken(b){b==="TVHTML5"?(this.localStorage=ID(this))&&this.localStorage.remove("yt-location-playability-token"):g.lG("YT_CL");this.X=void 0;this.Y!==-1&&(clearTimeout(this.Y),this.Y=-1)}getCurrentPositionFromGeolocation(){if(!(navigator&& navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));let b=!1,R=1E4;g.x("INNERTUBE_CLIENT_NAME")==="MWEB"&&(b=!0,R=15E3);return new Promise((h,K)=>{navigator.geolocation.getCurrentPosition(I=>{this.G=I;h(I)},I=>{K(I)},{enableHighAccuracy:b, maximumAge:0,timeout:R})})}createUnpluggedLocationInfo(b){const R={}; b=b.coords;b?.latitude&&(R.latitudeE7=Math.floor(b.latitude*1E7));b?.longitude&&(R.longitudeE7=Math.floor(b.longitude*1E7));b?.accuracy&&(R.locationRadiusMeters=Math.round(b.accuracy));return R}createLocationInfo(b){const R={};b=b.coords;b?.latitude&&(R.latitudeE7=Math.floor(b.latitude*1E7));b?.longitude&&(R.longitudeE7=Math.floor(b.longitude*1E7));return R}},mH;var xQ3=class{constructor(){this.G={}}contains(b){return Object.prototype.hasOwnProperty.call(this.G,b)}get(b){if(this.contains(b))return this.G[b]}set(b,R){this.G[b]=R}WM(){return Object.keys(this.G)}remove(b){delete this.G[b]}};new class{constructor(){this.mappings=new xQ3}get(b){a:{var R=this.mappings.get(b.toString());switch(R.type){case "mapping":b=R.value;break a;case "factory":R=R.value();this.mappings.set(b.toString(),{type:"mapping",value:R});b=R;break a;default:b=Rg(R,void 0)}}return b}registerService(b,R){this.mappings.set(b.toString(),{type:"mapping",value:R});return b}};var aMx={WEB_UNPLUGGED:"^unplugged/",WEB_UNPLUGGED_ONBOARDING:"^unplugged/",WEB_UNPLUGGED_OPS:"^unplugged/",WEB_UNPLUGGED_PUBLIC:"^unplugged/",WEB_CREATOR:"^creator/",WEB_KIDS:"^kids/",WEB_EXPERIMENTS:"^experiments/",WEB_MUSIC:"^music/",WEB_REMIX:"^music/",WEB_MUSIC_EMBEDDED_PLAYER:"^music/",WEB_MUSIC_EMBEDDED_PLAYER:"^main_app/|^sfv/"};var mQq=class{S(b,R={},h=WW){var K={context:g.lM(b.clickTrackingParams,!1,this.V)};var I=this.Y(b);if(I)return this.G(K,I,R),R=g.vI(this.X()),(I=g.Z(b.commandMetadata,g.IP)?.apiUrl)&&(R=I),R=ncH(a$(R)),b={command:b,...(void 0)},K={input:R,ly:vu(R),W3:K,config:b},K.config.Yg?K.config.Yg.identity=h:K.config.Yg={identity:h},K;h=new g.A$("Error: Failed to create Request from Command.",b);g.X(h)}get V(){return!1}},Pi=class extends mQq{};var PZP={GET_DATASYNC_IDS:aD(class extends Pi{S(){return{input:"/getDatasyncIdsEndpoint",ly:vu("/getDatasyncIdsEndpoint","GET"),W3:{}}}X(){return[]}Y(){}G(){}})};var tGw={auto_search:"LATENCY_ACTION_AUTO_SEARCH",ad_to_ad:"LATENCY_ACTION_AD_TO_AD",ad_to_video:"LATENCY_ACTION_AD_TO_VIDEO",app_startup:"LATENCY_ACTION_APP_STARTUP",browse:"LATENCY_ACTION_BROWSE",cast_splash:"LATENCY_ACTION_CAST_SPLASH",channel_activity:"LATENCY_ACTION_FAMILY_CENTER_CHANNEL_ACTIVITY",channels:"LATENCY_ACTION_CHANNELS",chips:"LATENCY_ACTION_CHIPS",commerce_transaction:"LATENCY_ACTION_COMMERCE_TRANSACTION",direct_playback:"LATENCY_ACTION_DIRECT_PLAYBACK",editor:"LATENCY_ACTION_EDITOR", embed:"LATENCY_ACTION_EMBED",embed_no_video:"LATENCY_ACTION_EMBED_NO_VIDEO",entity_key_serialization_perf:"LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",entity_key_deserialization_perf:"LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",explore:"LATENCY_ACTION_EXPLORE",favorites:"LATENCY_ACTION_FAVORITES",home:"LATENCY_ACTION_HOME",inboarding:"LATENCY_ACTION_INBOARDING",landing:"LATENCY_ACTION_LANDING",learning:"LATENCY_ACTION_LEARNING",learning_journey_browse:"LATENCY_ACTION_LEARNING_JOURNEY_BROWSE", learning_journey_watch:"LATENCY_ACTION_LEARNING_JOURNEY_WATCH",library:"LATENCY_ACTION_LIBRARY",live:"LATENCY_ACTION_LIVE",live_pagination:"LATENCY_ACTION_LIVE_PAGINATION",management:"LATENCY_ACTION_MANAGEMENT",mini_app:"LATENCY_ACTION_MINI_APP_PLAY",notification_settings:"LATENCY_ACTION_FAMILY_CENTER_NOTIFICATION_SETTINGS",onboarding:"LATENCY_ACTION_ONBOARDING",parent_profile_settings:"LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",parent_tools_collection:"LATENCY_ACTION_PARENT_TOOLS_COLLECTION",parent_tools_dashboard:"LATENCY_ACTION_PARENT_TOOLS_DASHBOARD", player_att:"LATENCY_ACTION_PLAYER_ATTESTATION",prebuffer:"LATENCY_ACTION_PREBUFFER",prefetch:"LATENCY_ACTION_PREFETCH",profile_settings:"LATENCY_ACTION_KIDS_PROFILE_SETTINGS",profile_switcher:"LATENCY_ACTION_LOGIN",projects:"LATENCY_ACTION_PROJECTS",reel_watch:"LATENCY_ACTION_REEL_WATCH",results:"LATENCY_ACTION_RESULTS",red:"LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",premium:"LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",privacy_policy:"LATENCY_ACTION_FAMILY_CENTER_PRIVACY_POLICY",review:"LATENCY_ACTION_REVIEW", search_overview_answer:"LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",search_ui:"LATENCY_ACTION_SEARCH_UI",search_suggest:"LATENCY_ACTION_SUGGEST",search_zero_state:"LATENCY_ACTION_SEARCH_ZERO_STATE",secret_code:"LATENCY_ACTION_KIDS_SECRET_CODE",switchplan:"LATENCY_ACTION_UNPLUGGED_SWITCH_PLAN",seek:"LATENCY_ACTION_PLAYER_SEEK",settings:"LATENCY_ACTION_SETTINGS",store:"LATENCY_ACTION_STORE",supervision_dashboard:"LATENCY_ACTION_FAMILY_CENTER_SUPERVISION_DASHBOARD",bedtime_reminder_settings:"LATENCY_ACTION_FAMILY_CENTER_BEDTIME_REMINDER_SETTINGS", break_reminder_settings:"LATENCY_ACTION_FAMILY_CENTER_BREAK_REMINDER_SETTINGS",supervision_settings_dashboard:"LATENCY_ACTION_FAMILY_CENTER_SUPERVISION_SETTINGS_DASHBOARD",time_management:"LATENCY_ACTION_FAMILY_CENTER_TIME_MANAGEMENT",update_profile:"LATENCY_ACTION_FAMILY_CENTER_UPDATE_PROFILE",viewing_permissions:"LATENCY_ACTION_FAMILY_CENTER_VIEWING_PERMISSIONS",shorts_settings:"LATENCY_ACTION_FAMILY_CENTER_SHORTS_SETTINGS",privacy_settings:"LATENCY_ACTION_FAMILY_CENTER_PRIVACY_SETTINGS",tenx:"LATENCY_ACTION_TENX", video_preview:"LATENCY_ACTION_VIDEO_PREVIEW",video_to_ad:"LATENCY_ACTION_VIDEO_TO_AD",watch:"LATENCY_ACTION_WATCH",watch_it_again:"LATENCY_ACTION_KIDS_WATCH_IT_AGAIN","watch,watch7":"LATENCY_ACTION_WATCH","watch,watch7_html5":"LATENCY_ACTION_WATCH","watch,watch7ad":"LATENCY_ACTION_WATCH","watch,watch7ad_html5":"LATENCY_ACTION_WATCH",wn_comments:"LATENCY_ACTION_LOAD_COMMENTS",ww_rqs:"LATENCY_ACTION_WHO_IS_WATCHING",voice_assistant:"LATENCY_ACTION_VOICE_ASSISTANT",cast_load_by_entity_to_watch:"LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH", networkless_performance:"LATENCY_ACTION_NETWORKLESS_PERFORMANCE",gel_compression:"LATENCY_ACTION_GEL_COMPRESSION",gel_jspb_serialize:"LATENCY_ACTION_GEL_JSPB_SERIALIZE",attestation_challenge_fetch:"LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH"}; Object.assign(tGw,{"analytics.explore":"LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE","artist.analytics":"LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS","artist.events":"LATENCY_ACTION_CREATOR_ARTIST_CONCERTS","artist.presskit":"LATENCY_ACTION_CREATOR_ARTIST_PROFILE","asset.claimed_videos":"LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS","asset.composition":"LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION","asset.composition_ownership":"LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP","asset.composition_policy":"LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY", "asset.embeds":"LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS","asset.history":"LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY","asset.issues":"LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES","asset.licenses":"LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES","asset.metadata":"LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA","asset.ownership":"LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP","asset.potential_embeds":"LATENCY_ACTION_CREATOR_CMS_ASSET_POTENTIAL_EMBEDS","asset.policy":"LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY","asset.references":"LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES", "asset.shares":"LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES","asset.sound_recordings":"LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS","asset_group.assets":"LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS","asset_group.campaigns":"LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS","asset_group.claimed_videos":"LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS","asset_group.metadata":"LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA","song.analytics":"LATENCY_ACTION_CREATOR_SONG_ANALYTICS",creator_channel_dashboard:"LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD", "channel.analytics":"LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS","channel.comments":"LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS","channel.content":"LATENCY_ACTION_CREATOR_POST_LIST","channel.content.promotions":"LATENCY_ACTION_CREATOR_PROMOTION_LIST","channel.copyright":"LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT","channel.editing":"LATENCY_ACTION_CREATOR_CHANNEL_EDITING","channel.monetization":"LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION","channel.music":"LATENCY_ACTION_CREATOR_CHANNEL_MUSIC","channel.music_storefront":"LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT", "channel.playlists":"LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS","channel.translations":"LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS","channel.videos":"LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS","channel.live_streaming":"LATENCY_ACTION_CREATOR_LIVE_STREAMING","dialog.copyright_strikes":"LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES","dialog.video_copyright":"LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT","dialog.uploads":"LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",owner:"LATENCY_ACTION_CREATOR_CMS_DASHBOARD", "owner.allowlist":"LATENCY_ACTION_CREATOR_CMS_ALLOWLIST","owner.analytics":"LATENCY_ACTION_CREATOR_CMS_ANALYTICS","owner.art_tracks":"LATENCY_ACTION_CREATOR_CMS_ART_TRACKS","owner.assets":"LATENCY_ACTION_CREATOR_CMS_ASSETS","owner.asset_groups":"LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS","owner.bulk":"LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY","owner.campaigns":"LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS","owner.channel_invites":"LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES","owner.channels":"LATENCY_ACTION_CREATOR_CMS_CHANNELS", "owner.claimed_videos":"LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS","owner.claims":"LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING","owner.claims.manual":"LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING","owner.delivery":"LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY","owner.delivery_templates":"LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES","owner.issues":"LATENCY_ACTION_CREATOR_CMS_ISSUES","owner.licenses":"LATENCY_ACTION_CREATOR_CMS_LICENSES","owner.pitch_music":"LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC","owner.policies":"LATENCY_ACTION_CREATOR_CMS_POLICIES", "owner.releases":"LATENCY_ACTION_CREATOR_CMS_RELEASES","owner.reports":"LATENCY_ACTION_CREATOR_CMS_REPORTS","owner.videos":"LATENCY_ACTION_CREATOR_CMS_VIDEOS","playlist.videos":"LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST","post.comments":"LATENCY_ACTION_CREATOR_POST_COMMENTS","post.edit":"LATENCY_ACTION_CREATOR_POST_EDIT","promotion.edit":"LATENCY_ACTION_CREATOR_PROMOTION_EDIT","video.analytics":"LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS","video.claims":"LATENCY_ACTION_CREATOR_VIDEO_CLAIMS","video.comments":"LATENCY_ACTION_CREATOR_VIDEO_COMMENTS", "video.copyright":"LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT","video.edit":"LATENCY_ACTION_CREATOR_VIDEO_EDIT","video.editor":"LATENCY_ACTION_CREATOR_VIDEO_EDITOR","video.editor_async":"LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC","video.live_settings":"LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS","video.live_streaming":"LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING","video.monetization":"LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION","video.policy":"LATENCY_ACTION_CREATOR_VIDEO_POLICY","video.rights_management":"LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT", "video.translations":"LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS"});var mTK=class extends Sw{constructor(b,R){super(arguments);this.timer=R}},xTK=new no("aft-recorded",mTK);var i2P=g.JD.ytLoggingGelSequenceIdObj_||{};g.kB("ytLoggingGelSequenceIdObj_",i2P);var UC=g.JD.ytLoggingLatencyUsageStats_||{};g.kB("ytLoggingLatencyUsageStats_",UC); var iM=class{constructor(){this.G=0}tick(b,R,h,K){Gm(this,`tick_${b}_${R}`)||g.yp("latencyActionTicked",{tickName:b,clientActionNonce:R},{timestamp:h,cttAuthInfo:K})}info(b,R,h){const K=Object.keys(b).join("");Gm(this,`info_${K}_${R}`)||(b=Object.assign({},b),b.clientActionNonce=R,g.yp("latencyActionInfo",b,{cttAuthInfo:h}))}jspbInfo(b,R,h){let K="";for(let I=0;I{}; this.webkitClearResourceTimings=()=>{}; this.mozClearResourceTimings=()=>{}; this.msClearResourceTimings=()=>{}; this.oClearResourceTimings=()=>{}}},gC=Zl.performance||Zl.mozPerformance||Zl.msPerformance||Zl.webkitPerformance||new Z3D;var QUe=!1,Shx=!1,Qx={'script[name="scheduler/scheduler"]':"sj",'script[name="player/base"]':"pj",'link[rel="preload"][name="player/embed"]':"pej",'link[rel="stylesheet"][name="www-player"]':"pc",'link[rel="stylesheet"][name="player/www-player"]':"pc",'script[name="desktop_polymer/desktop_polymer"]':"dpj",'link[rel="import"][name="desktop_polymer"]':"dph",'script[name="mobile-c3"]':"mcj",'link[rel="stylesheet"][name="mobile-c3"]':"mcc",'script[name="player-plasma-ias-phone/base"]':"mcppj",'script[name="player-plasma-ias-tablet/base"]':"mcptj", 'link[rel="stylesheet"][name="mobile-polymer-player-ias"]':"mcpc",'link[rel="stylesheet"][name="mobile-polymer-player-svg-ias"]':"mcpsc",'script[name="mobile_blazer_core_mod"]':"mbcj",'link[rel="stylesheet"][name="mobile_blazer_css"]':"mbc",'script[name="mobile_blazer_logged_in_users_mod"]':"mbliuj",'script[name="mobile_blazer_logged_out_users_mod"]':"mblouj",'script[name="mobile_blazer_noncore_mod"]':"mbnj","#player_css":"mbpc",'script[name="mobile_blazer_desktopplayer_mod"]':"mbpj",'link[rel="stylesheet"][name="mobile_blazer_tablet_css"]':"mbtc", 'script[name="mobile_blazer_watch_mod"]':"mbwj",'script[name="embed_client"]':"ecj",'link[rel="stylesheet"][name="embed-ui"]':"ecc"},Z23=(0,g.Ms)(gC.clearResourceTimings||gC.webkitClearResourceTimings||gC.mozClearResourceTimings||gC.msClearResourceTimings||gC.oClearResourceTimings||g.OU,gC);var ci=window;ci.ytcsi&&(ci.ytcsi.infoGel=g.PI,ci.ytcsi.tick=mv);var NqK="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store manifest player_preload shorts_prefetch".split(" "),$qx=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PanelResponse"],oD=class{constructor(b,R,h,K,I){this.V=b;this.nN=R;this.G=h;this.S=K;this.X= I;this.Y=new Map;b.QP||(b.QP={});b.QP={...PZP,...b.QP}}Oq(b){return p9T(b,this.V)}};var gXx=new fh("INNERTUBE_TRANSPORT_TOKEN");var z7x=class extends Pi{X(){return Kjs}get V(){return!0}Y(b){return g.Z(b,ZLK)||void 0}G(b,R,h={}){R.channelIds&&(b.channelIds=R.channelIds);R.siloName&&(b.siloName=R.siloName);R.params&&(b.params=R.params);h.botguardResponse&&(b.botguardResponse=h.botguardResponse);h.feature&&(b.clientFeature=h.feature)}};var UqD=class extends Pi{X(){return s23}get V(){return!0}Y(b){return g.Z(b,Pxq)||void 0}G(b,R){R.channelIds&&(b.channelIds=R.channelIds);R.siloName&&(b.siloName=R.siloName);R.params&&(b.params=R.params)}};var iUw=class extends Pi{constructor(b){super();this.J=b}X(){return oZP}Y(b){return g.Z(b,TZH)||g.Z(b,JCP)||g.Z(b,EZH)}G(b,R){R.serializedShareEntity&&(b.serializedSharedEntity=R.serializedShareEntity);R.clientParamIdentifier&&this.J?.G(R.clientParamIdentifier)&&(b.clientParams=this.J.Y(R.clientParamIdentifier))}};iUw[gy]=[new fh("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN")];var tyB=class extends Pi{X(){return b32}get V(){return!0}Y(b){return g.Z(b,NM)||void 0}G(b,R,h){b.feedbackTokens=[];R.feedbackToken&&b.feedbackTokens.push(R.feedbackToken);if(R=R.cpn||h.cpn)b.feedbackContext={cpn:R};b.isFeedbackTokenUnencrypted=!!h.is_feedback_token_unencrypted;b.shouldMerge=!1;h.extra_feedback_tokens&&(b.shouldMerge=!0,b.feedbackTokens=b.feedbackTokens.concat(h.extra_feedback_tokens))}};var jv2=class extends Pi{X(){return RxH}Y(b){return g.Z(b,mpH)||void 0}G(b,R){R.params&&(b.params=R.params);R.secondaryParams&&(b.secondaryParams=R.secondaryParams)}};var AYT=class extends Pi{X(){return hx3}Y(b){return g.Z(b,QXq)||void 0}G(b,R){R.actions&&(b.actions=R.actions);R.params&&(b.params=R.params);R.playlistId&&(b.playlistId=R.playlistId)}};var GDT=class extends Pi{X(){return DpT}Y(b){return g.Z(b,kNH)}G(b,R,h={}){R.serializedShareEntity&&(b.serializedSharedEntity=R.serializedShareEntity);h.includeListId&&(b.includeListId=!0)}};var K9=new fh("CLIENT_NAME_TOKEN");var sT=new fh("DEFAULT_STORE_EXPIRATION_TOKEN");var cix=class{constructor(b,R){this.clientName=b;this.Y=R}async put(b,R){R={...R.data};R.key=b;R.clientName=this.clientName;R.expireTimestampMs===void 0&&(R.expireTimestampMs=(Math.round((0,g.c)())+this.Y).toString());return pje(this,b,R)}};cix[gy]=[K9,sT];var lG3=class{constructor(b){this.data={...b};delete this.data.innertubeResponse?.frameworkUpdates}isExpired(){return Number(this.data.expireTimestampMs||0)<(0,g.c)()}isProcessed(){return!!this.data.isProcessed}};var fGq=class extends cix{constructor(){super(...arguments);this.G=new Map}async get(b){return aGx(this,b)}async remove(b){vXH(this,b)}async removeAll(){this.G.forEach(b=>{clearTimeout(b.timer)}); this.G.clear()}has(b){return!!this.G.get(b)}WM(){return this.G.keys()}};var $v=new fh("EPHEMERAL_STORE_TOKEN");var BqK=class{constructor(b){this.G=b.responseContext?.stateTags}};var yYx=class{constructor(b){this.G=b}handleResponse(b,R){if(!R)throw Error("request needs to be passed into StoreResponseProcessorService");Rr(this,b,R.config?.Or?.gw)}};yYx[gy]=[$v];var Ir=new fh("STORE_RESPONSE_PROCESSOR_TOKEN");g.uN=class extends g.A${constructor(b){super(b,[]);this.errorType=1;Object.setPrototypeOf(this,new.target.prototype)}};var dqw=class{constructor(b){this.G=b}async fetch(b,R,h){b=HUD(this,b,R);return fetch(b).then(K=>this.handleResponse(K,h)).catch(K=>{g.kJ(K); if(h?.lT&&K instanceof g.uN&&K.errorType===1)return Promise.reject(K)})}handleResponse(b,R){let h; h=b.text().then(K=>{if(R?.ST&&b.ok)return BD(R.ST,K);K=K.replace(")]}'","");let I;if(R?.lT&&K)try{I=JSON.parse(K)}catch(N){throw new g.uN("JSON parsing failed after fetch");}return I??JSON.parse(K)}); b.redirected||b.ok?this.G&&this.G.success():(this.G&&this.G.lqR(),h=h.then(K=>{g.kJ(new g.A$("Error: API fetch failed",b.status,b.url,K));return{...K,errorMetadata:{status:b.status}}})); return h}};dqw[gy]=[UM(new fh("NETWORK_SLI_TOKEN"))];var qqe=new fh("NETWORK_MANAGER_TOKEN");var hj;var Sq2=class{constructor(b){this.G=b}bindInnertubeChallengeFetcher(b){this.G.bicf(b)}registerChallengeFetchedCallback(b){this.G.bcr(b)}getLatestChallengeResponse(){return this.G.blc()}};var Tqe=[],EXP=(0,g.DN)`https://static.doubleclick.net/instream/ad_status.js`,vF=!1;var yA=class{constructor(b,R,h){this.network=b;this.options=R;this.V=h;this.X=0;this.G=null;this.Y=new YR3;R.Kw?HF(this,kDs(this)):R.preload&&HF(this,new Promise(K=>{g.z6(0,()=>{K(f9(this))},0)}))}async J(){return!!await Promise.race([this.G, null])}async S(b,R,h){this.G===null&&HF(this,f9(this));let K=!1;const I={};return Promise.race([(async()=>{this.options.IqX&&this.options.Kw&&await (await W23())?.checkForRefresh();var N=await this.G;I.challenge=N.challenge;if(N.GJ){var p={c:N.challenge,e:b,...R};try{K=!0;let l;(l=await N.GJ.snapshot({EA:p}))?I.webResponse=l:I.error="ATTESTATION_ERROR_VM_NO_RESPONSE"}catch{I.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR"}}else"c1a"in N.Ny&&(I.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");b==="ENGAGEMENT_TYPE_PLAYBACK"&& (N=N.Ny,p={},N.c6a&&(p.reportingStatus=String(Number(N.c)^BF())),N.c6b&&(p.broadSpectrumDetectionResult=String(Number(N.c)^Number(g.x("CATSTAT",0)))),I.adblockReporting=p);return I})(), P5T(h,()=>{const N=Object.assign({},I);K&&(N.error="ATTESTATION_ERROR_VM_TIMEOUT");return N})])}};var XjT=["APP_STATE","PI"];var qM2=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,272018,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,299903,299897,299904,299901,299899,299902,299900,299898,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,276243,93911,274188,276651, 106531,257234,252598,252597,252600,252599,252596,225031,177843,27259,27262,27263,21759,283670,160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,273766,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,300884,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933, 207944,206934,303123,206929,221575,68728,221576,80353,80356,249107,180635,74610,45707,83962,83970,46713,166591,89711,74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,276200,92098,131381, 84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,72598,168413,72733,107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,273905,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142, 117432,173996,173995,174953,173994,173997,120080,117259,178546,297752,197891,156655,156654,121692,211414,211411,211412,211413,211403,184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,282159,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,304776,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,305268, 249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,136032,74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,281332,120541,222112,82047,113550,75836,75837,303882,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,293324,32633,74858,297045,275198,271884,222932,279119, 271886,213915,275199,225216,251244,258251,218674,251266,258250,251265,301662,251245,271885,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,282181,278926,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255, 147912,89281,40963,43277,43442,91824,283898,120137,186350,186351,256690,264349,264351,264350,264352,211026,250896,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,302631,242528,143815,139095,144402,149968,149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035, 27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,279531,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,298157,263843,196075,194768,252201,194769,191885,281480,233634,265810,194770,296933,195350,301607,195349,194771,293041,293042,293043,301116,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,253832,272252,253833,253834,204574,191390,179556,238596,212661,191392,197826,191393,204573,36216,28237,241212,272049,173718, 39553,192547,29222,304845,26107,241211,38050,26108,275810,120745,26109,26110,66881,28236,14586,297672,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,278306,282472,277848,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,294119,257268,63349,281127,240553,95101,75240,27039,68823,21537,83464,75707,252904,170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423, 64424,33986,100828,129089,299541,21409,282218,299506,299540,299507,299509,299539,299508,299510,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,270560,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,111059,211188,5754,264491,20445,233471,151308,151152,228067,130975,130976,247244,271622,271813,261210,210815,295069,246127,245256,244950,191925,167637,234545,197196, 302735,214295,110386,221054,273960,282111,113746,268886,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,294089,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,304169,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,275869,271673,274637, 139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,296316,96661,145188,213904,269342,96658,116646,159428,168611,168612,121122,219862,96660,282208,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,273646,273647,217932,104443,96659,147595,106442,247162,231493,213427,296813,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374, 48992,146176,176105,233035,49956,267645,275782,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,299247,178921,268574,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,301897,301900,269990,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111, 55759,64031,234746,93044,93045,281302,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,267692,267851,267577,279755,267693,267694,267578,262801,271218,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,267581,273232,82039];var F2e=class{constructor(b,R){this.Y=this.G=0;this.G=R.x-b.x;this.Y=R.y-b.y}};var uqw=class{constructor(){this.G=new Map}};var Igx=new fh("POSTMESSAGE_TUNNEL_TOKEN");var agB=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"],XZT=class{constructor(){this.state=1;this.GJ=null;this.y0=void 0}initialize(b,R,h,K){this.y0=K;if(b.program){var I;K=b.interpreterUrl??null;b.interpreterSafeScript?I=hQ(b.interpreterSafeScript):I=b.interpreterScript??null;b.interpreterSafeUrl&&(K=KD(b.interpreterSafeUrl).toString());lgT(this,I,K,b.program,R,h)}else g.kJ(Error("BL:CIP"))}isInitialized(){return this.Y()}getState(){return this.state}isLoading(){return this.state=== 2}invoke(b={}){return this.Y()?this.X({EA:b}):null}dispose(){this.G(null);this.Na(8)}Y(){return!!this.GJ}X(b){return this.GJ.ej(b)}G(b){g.$l(this.GJ);this.GJ=b}Na(b){this.state=b}};var V2T=class extends XZT{G(b){jm()?.bgvma();if(b){const R={bgvma:b.dispose.bind(b),bgvmb:b.snapshot.bind(b),bgvmc:b.ej.bind(b)};g.kB("yt.abuse.playerAttLoader",R);FP(h=>b.snapshot(h))}else g.kB("yt.abuse.playerAttLoader",null),g.kB("yt.abuse.playerAttLoaderRun",null)}Y(){return!!jm()}X(b){return jm().bgvmc(b)}};var Qyx=class{constructor(b){this.xk=b}Bq(){return"crossDeviceProgressCommand"}H_(b){if(b.crossDevicePings){const R=[];for(const h of b.crossDevicePings)R.push({baseUrl:h.baseUrl});b={crossDevicePings:R};this.xk.A.L().experiments.O9("enable_batched_cross_device_pings_in_gel_fanout")&&(b.enableBatchedCrossDevicePings=!0);this.xk.A.L().experiments.O9("relax_bg_notification_throttling")&&(b.relaxBgNotificationThrottling=!0);this.xk.A.L().experiments.O9("relax_bg_notification_throttling_counterfactual")&& (b.relaxBgNotificationThrottlingCounterfactual=!0);g.yp("crossDeviceNotificationTransfer",b)}}};var kOs=class{constructor(b,R){this.Im=b;this.kJ=R}Bq(){return"muteAdEndpoint"}H_(b,R){switch(b.type){case "SKIP":v5s(this.Im,this.kJ,R)}}};var Onw=class{Bq(){return"openPopupAction"}H_(){}};var YQH=class{Bq(){return"pingingEndpoint"}H_(){}};var ytP={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0},n1e=class extends g.N3{constructor(b){super();this.Op=b;this.G=new Map;Aj(this,"commandExecutorCommand",(R,h,K)=>{qHx(this,R.commands,h,K)}); Aj(this,"clickTrackingParams",()=>{})}};var dGw={PS:"FINAL",g6:"AD_BREAK_LENGTH",vS:"AD_CPN",VT:"AH",lX:"AD_MT",BS:"ASR",Fg:"AW",x$:"NM",z4:"NX",pI:"NY",d5:"CONN",fI:"CPN",uV:"DV_VIEWABILITY",rF:"ERRORCODE",ZE:"ERROR_MSG",qO:"EI",CE:"GOOGLE_VIEWABILITY",AK:"IAS_VIEWABILITY",YN:"LACT",y6:"LIVE_TARGETING_CONTEXT",Ns:"I_X",rO:"I_Y",xN:"MT",sY:"MIDROLL_POS",KV:"MIDROLL_POS_MS",jm:"MOAT_INIT",dO:"MOAT_VIEWABILITY",DC:"P_H",ZC:"PV_H",o4:"PV_W",qG:"P_W",cT:"TRIGGER_TYPE",xJ6:"SDKV",Wer:"SLOT_POS",T2p:"SURVEY_LOCAL_TIME_EPOCH_S",YWH:"SURVEY_ELAPSED_MS", Su:"VIS",jTe:"VIEWABILITY",EO5:"VED",mjR:"VOL",L_J:"WT",Dap:"YT_ERROR_CODE"};var ekw=class{constructor(b,R,h){this.V$=b;this.G=R;this.aH=h;GR(nQ(),{YG:Igx,Zz:uqw})}Bq(){return"urlEndpoint"}H_(b,R,h){{var K=this.aH.get();const I=ip(K.Y.get(),R);I?R=km(K,n7(I),I,void 0,void 0,h):(u2("Trying to ping from an unknown layout",void 0,void 0,{layoutId:R}),R={})}R={...R};pM(this.G,"h5_inplayer_enable_adcpn_macro_substitution_for_click_pings")&&(h=od(this.V$,2))&&(R.AD_CPN=h.clientPlaybackNonce);R=g.eB(b.url,R);b=g.hJ(R,void 0,void 0,void 0,b.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"); NS2(b,R)}};var XZ=class{constructor(b){this.value=b}get(){return this.value}},n_H=class extends XZ{G(){return"metadata_type_action_companion_ad_renderer"}},ToD=class extends XZ{G(){return"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"}},Okx=class extends XZ{G(){return"metadata_type_ads_engagement_panel_renderer"}},Qzx=class extends XZ{G(){return"metadata_type_ads_engagement_panel_layout_view_model"}},wO=class extends XZ{G(){return"metadata_type_ad_next_params"}},FR=class extends XZ{G(){return"metadata_type_ad_video_clickthrough_endpoint"}}, dr2=class extends XZ{G(){return"metadata_type_invideo_overlay_ad_renderer"}},xCT=class extends XZ{G(){return"metadata_type_image_companion_ad_renderer"}},mCs=class extends XZ{G(){return"metadata_type_banner_image_layout_view_model"}},PQK=class extends XZ{G(){return"metadata_type_shopping_companion_carousel_renderer"}},BIH=class extends XZ{G(){return"metadata_type_ad_info_ad_metadata"}},Hoq=class extends XZ{G(){return"metadata_ad_video_is_listed"}},s6=class extends XZ{G(){return"metadata_type_ad_placement_config"}}, U6=class extends XZ{G(){return"metadata_type_ad_pod_info"}},LJ=class extends XZ{G(){return"metadata_type_ad_pod_skip_index"}},oN=class extends XZ{G(){return"metadata_type_ad_pod_skip_target"}},Vw=class extends XZ{G(){return"metadata_type_ad_pod_skip_target_callback_ref"}},zi=class extends XZ{G(){return"metadata_type_ad_video_id"}},dO=class extends XZ{G(){return"metadata_type_content_cpn"}},Af=class extends XZ{G(){return"metadata_type_instream_ad_player_overlay_renderer"}},iS=class extends XZ{G(){return"metadata_type_player_overlay_layout_renderer"}}, vMq=class extends XZ{G(){return"metadata_type_player_underlay_renderer"}},XuH=class extends XZ{G(){return"metadata_type_player_underlay_ad_slot_renderer"}},MP3=class extends XZ{G(){return"metadata_type_media_associated_in_player_slot"}},fwH=class extends XZ{G(){return"metadata_type_shrunken_player_bytes_config"}},FWe=class extends XZ{G(){return"metadata_type_ad_action_interstitial_renderer"}},dCK=class extends XZ{G(){return"metadata_type_valid_survey_text_interstitial_renderer"}},rQx=class extends XZ{G(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"}}, mcK=class extends XZ{G(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"}},uhP=class extends XZ{G(){return"metadata_type_sliding_text_player_overlay_renderer"}},P4=class extends XZ{G(){return"metadata_type_linked_player_bytes_layout_id"}},wuT=class extends XZ{G(){return"metadata_type_linked_second_player_bytes_layout_id"}},rO=class extends XZ{G(){return"metadata_type_linked_in_player_layout_id"}},R0=class extends XZ{G(){return"metadata_type_linked_in_player_layout_type"}},cNT=class extends XZ{G(){return"metadata_type_linked_in_player_slot_id"}}, NIH=class extends XZ{G(){return"metadata_type_player_bytes_callback"}},W4=class extends XZ{G(){return"metadata_type_player_bytes_callback_ref"}},vq=class extends XZ{constructor(){super({current:null})}G(){return"metadata_type_player_bytes_layout_controls_callback_ref"}},WLK=class extends XZ{G(){return"metadata_type_sub_layouts"}},c$w=class extends XZ{G(){return"metadata_type_cue_point"}},O6=class extends XZ{G(){return"metadata_type_triggering_cue_point"}},fJ=class extends XZ{G(){return"metadata_type_video_length_seconds"}}, yw=class extends XZ{G(){return"metadata_type_player_vars"}},VPx=class extends XZ{G(){return"metadata_type_preload_player_vars"}},gO=class extends XZ{G(){return"metadata_type_sodar_extension_data"}},tf=class extends XZ{G(){return"metadata_type_layout_enter_ms"}},jK=class extends XZ{G(){return"metadata_type_layout_exit_ms"}},E6=class extends XZ{G(){return"metadata_type_media_sub_layout_index"}},SK=class extends XZ{constructor(){super({})}G(){return"metadata_type_dai"}},mjw=class extends XZ{constructor(){super({})}G(){return"metadata_type_ad_intro"}}, KLe=class extends XZ{G(){return"metadata_type_client_forecasting_ad_renderer"}},Gi=class extends XZ{G(){return"metadata_type_drift_recovery_ms"}},Kg=class extends XZ{G(){return"metadata_type_fulfilled_layout"}},zXP=class extends XZ{G(){return"metadata_type_ad_break_request_data"}},wdx=class extends XZ{G(){return"metadata_type_ad_break_response_data"}},DF=class extends XZ{G(){return"metadata_type_remote_slots_data"}},v4=class extends XZ{G(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"}},bp= class extends XZ{G(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"}},CGT=class extends XZ{G(){return"metadata_type_legacy_info_card_vast_extension"}},z8B=class extends XZ{G(){return"metadata_type_valid_ad_message_renderer"}},B4=class extends XZ{G(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"}},Uj3=class extends XZ{G(){return"metadata_type_served_from_live_infra"}},$je=class extends XZ{G(){return"metadata_type_survey_overlay"}},nJ=class extends XZ{G(){return"metadata_type_active_view_traffic_type"}}, bkD=class extends XZ{G(){return"metadata_type_active_view_identifier"}},Y7s=class extends XZ{G(){return"metadata_type_ssdai_ads_config"}},UcD=class extends XZ{constructor(){super(!0)}G(){return"metadata_type_allow_pause_ad_break_request_slot_reschedule"}},Qw=class extends XZ{G(){return"metadata_type_player_bytes_slot_metadata"}},eGT=class extends XZ{constructor(){super({})}G(){return"metadata_type_prefetch_metadata"}};var evw=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL","normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","muted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED","user_input_submitted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","user_cancelled"]]);var QV=()=>"",ZiT=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL", "trigger_category_layout_exit_normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","trigger_category_layout_exit_user_skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","trigger_category_layout_exit_user_muted"],["TRIGGER_CATEGORY_SLOT_EXPIRATION","trigger_category_slot_expiration"],["TRIGGER_CATEGORY_SLOT_FULFILLMENT","trigger_category_slot_fulfillment"],["TRIGGER_CATEGORY_SLOT_ENTRY","trigger_category_slot_entry"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED","trigger_category_layout_exit_user_input_submitted"], ["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","trigger_category_layout_exit_user_cancelled"]]);var FI=class extends In{constructor(b,R,h,K=!1){super(b);this.wh=h;this.G2=K;this.args=[];R&&this.args.push(R)}};var V=class extends In{constructor(b,R,h,K=!1){super(b);this.wh=h;this.G2=K;this.args=[];R&&this.args.push(R)}};var kv=class{constructor(b){const R=new Map;b.forEach(h=>{R.set(h.G(),h)}); this.G=R}rp(b){b=this.G.get(b);if(b!==void 0)return b.get()}};new Promise(()=>{});var iiT=new Map([["unspecified","CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"],["core","CONTROL_FLOW_MANAGER_LAYER_CORE"],["adapter","CONTROL_FLOW_MANAGER_LAYER_ADAPTER"],["surface","CONTROL_FLOW_MANAGER_LAYER_SURFACE"],["external","CONTROL_FLOW_MANAGER_LAYER_EXTERNAL"]]),jGe=new Map([["normal",{Os:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",Ga:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{Os:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",Ga:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}], ["muted",{Os:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",Ga:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{Os:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",Ga:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{Os:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",Ga:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{Os:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",Ga:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}], ["error",{Os:"ADS_CLIENT_EVENT_TYPE_ABORTED_EXIT_LAYOUT_REQUESTED",Ga:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED"}]]),V1=class{constructor(b){this.VX=b;b=Math.random();var R=this.VX.get();R=g.fg(R.A.L().experiments,"html5_debug_data_log_probability");R=Number.isFinite(R)&&R>=0&&R<=1?R:0;this.G=b{g.$l(this.instance);this.instance=null})}get(){Math.random()<.001&&this.HY()&&u2("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance}); this.instance||(this.instance=this.G());return this.instance}};var CZP=class extends g.N3{constructor(b){super();this.G=b;this.Y=MS2(this)}X(){return this.Y}};var Ch=class{constructor(b){this.G=b}executeCommand(b,R){zM(this.G(),b,R)}};var M2q=class{constructor(){this.listeners=new Set}addListener(b){this.listeners.add(b)}removeListener(b){this.listeners.delete(b)}};var MM=class{constructor(b){this.VX=b}};var riT=class{constructor(b,R,h,K,I){this.callback=b;this.slot=R;this.Y=h;this.Og=K;this.VX=I;this.G=null}};var tB={AD_MARKER:"ytp-ad-progress",CHAPTER_MARKER:"ytp-chapter-marker",TIME_MARKER:"ytp-time-marker"};var SKK=RegExp("^https?://([^.]*\\.moatads\\.com/|e[0-9]+\\.yt\\.srs\\.doubleverify\\.com|pagead2\\.googlesyndication\\.com/pagead/gen_204\\?id=yt3p&sr=1&|pm\\.adsafeprotected\\.com/youtube|pm\\.test-adsafeprotected\\.com/youtube|youtube[0-9]+\\.moatpixel\\.com/)"),Dfq=RegExp("^https://([a-z]+\\.)?[0-9a-f]{1,63}\\.sslproxy\\.corp\\.google\\.com/|^https://([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.demos\\.corp\\.google\\.com/|^https://[0-9a-f]{1,63}\\.proxy\\.googleprod\\.com/|^https?://(([-\\w]*www[-\\w]*\\.|[-\\w]*web[-\\w]*\\.|[-\\w]*canary[-\\w]*\\.|[-\\w]*dev[-\\w]*\\.|[-\\w]{1,3}\\.)+(corp\\.)?youtube(-nocookie|kids|education)?\\.com/|([A-Za-z0-9-]{1,63}\\.)*(youtube\\.googleapis\\.com)[.]?(:[0-9]+)?/|([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.([a-z]{3}|i)\\.corp\\.google\\.com(:[0-9]+)?/|([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.c\\.googlers\\.com(:[0-9]+)?/|(docs|drive)\\.google\\.com/(a/[^/\\\\%]+/|)|(music|music-green-qa|music-release-qa|yt-music-green\\.corp)\\.youtube\\.com/|(tv|tv-green-qa|tv-green-qa\\.corp|tv-release-qa|tv-release-qa\\.corp|tv-integration-qa|tv-integration-qa\\.corp|yt-tv-autopush\\.corp|yt-tv-integration\\.corp|yt-tv-staging\\.corp)\\.youtube\\.com/|[A-Za-z0-9-]+\\.prod\\.google\\.com(:[0-9]+)?/)"), nSK=RegExp("^https?://(www\\.google\\.com/pagead/xsul|www\\.youtube\\.com/pagead/slav)"),N$3=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|docs\\.google\\.com|drive\\.google\\.com|prod\\.google\\.com|currents\\.google\\.com|mail\\.google\\.com|youtube\\.com|youtubeeducation\\.com|youtube\\-nocookie\\.com|youtubekids\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$))"), $2D=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|prod\\.google\\.com|youtube\\.com|youtubekids\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$))"),hlD=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us|qw|rt)\\.((googleusercontent)|(google)))|((photos|testonly|work)\\.fife\\.usercontent\\.google)|([\\w\\-]+\\.fife\\.usercontent\\.google)|(([1-4]\\.bp\\.blogspot)|(bp[0-3]\\.blogger))|(ccp-lh\\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\\.(ggpht|googleusercontent))|(gm[1-4]\\.ggpht)|(play-(ti-)?lh\\.googleusercontent)|(gz0\\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\\.(ggpht|googleusercontent)))\\.com)|(drive\\.google\\.com\\/drive\\-(usercontent|viewer))|(dp[3-6]\\.googleusercontent\\.cn)|(dp4\\.googleusercontent\\.com)|((photos|drive|contribution)\\-image\\-(dev|qa)(-us|-eu)?(-auth|-cookie)?\\.corp\\.google\\.com)|(photos\\-image\\-dev\\-dl\\-(auth|eu|us)\\.corp\\.google\\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\\.sandbox\\.google\\.com\\/image)|(image\\-(dev|qa)\\-lighthouse(-auth)?\\.sandbox\\.google\\.com(\\/image)?)|(drive\\-qa\\.corp\\.google\\.com\\/drive\\-(usercontent|viewer))|(docs(\\-(dev|qa)\\.corp)?\\.google\\.com\\/(u\\/[0-9]+\\/)?(docs|sheets|slides|drawings|forms|videos|pictures)\\-images\\-(rt|qw))|(docs\\.sandbox\\.google\\.com\\/(u\\/[0-9]+\\/)?(docs|sheets|slides|drawings|forms|videos|pictures)\\-images))\\/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleplex\\.com|play\\.google\\.com|prod\\.google\\.com|currents\\.google\\.com|video\\.google\\.com|youtube\\.com|ytimg\\.com|ytimg\\.sandbox\\.google\\.com|chat\\.google\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|s2\\.googleusercontent\\.com/s2/favicons\\?|yt[3-4]\\.ggpht\\.com/)"), ESH=RegExp("^https?.*#ocr$|^https?://(aksecure\\.imrworldwide\\.com/|cdn\\.imrworldwide\\.com/|secure\\-..\\.imrworldwide\\.com/)"),Kw3=RegExp("^https?://(googleads\\.g\\.doubleclick\\.net/(aclk|pagead/conversion)|www\\.google\\.com/(aclk|pagead/conversion)|www\\.googleadservices\\.com/(aclk|pagead/(aclk|conversion))|www\\.youtube\\.com/pagead/conversion)"),RlD=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us|qw|rt)\\.((googleusercontent)|(google)))|((photos|testonly|work)\\.fife\\.usercontent\\.google)|([\\w\\-]+\\.fife\\.usercontent\\.google)|(([1-4]\\.bp\\.blogspot)|(bp[0-3]\\.blogger))|(ccp-lh\\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\\.(ggpht|googleusercontent))|(gm[1-4]\\.ggpht)|(play-(ti-)?lh\\.googleusercontent)|(gz0\\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\\.(ggpht|googleusercontent)))\\.com)|(drive\\.google\\.com\\/drive\\-(usercontent|viewer))|(dp[3-6]\\.googleusercontent\\.cn)|(dp4\\.googleusercontent\\.com)|((photos|drive|contribution)\\-image\\-(dev|qa)(-us|-eu)?(-auth|-cookie)?\\.corp\\.google\\.com)|(photos\\-image\\-dev\\-dl\\-(auth|eu|us)\\.corp\\.google\\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\\.sandbox\\.google\\.com\\/image)|(image\\-(dev|qa)\\-lighthouse(-auth)?\\.sandbox\\.google\\.com(\\/image)?)|(drive\\-qa\\.corp\\.google\\.com\\/drive\\-(usercontent|viewer))|(docs(\\-(dev|qa)\\.corp)?\\.google\\.com\\/(u\\/[0-9]+\\/)?(docs|sheets|slides|drawings|forms|videos|pictures)\\-images\\-(rt|qw))|(docs\\.sandbox\\.google\\.com\\/(u\\/[0-9]+\\/)?(docs|sheets|slides|drawings|forms|videos|pictures)\\-images))\\/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleplex\\.com|googlevideo\\.com|prod\\.google\\.com|lh3\\.photos\\.google\\.com|currents\\.google\\.com|mail\\.google\\.com|youtube\\.com|yt\\.akamaized\\.net|chat\\.google\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|([A-Za-z0-9-]{1,63}\\.)*c\\.lh3(-d[a-gyz]|-testonly)?\\.(googleusercontent|photos\\.google)\\.com/.*$)"), Ljx=RegExp("^https?://(([A-Za-z0-9-]{1,63}\\.)*(imasdk\\.googleapis\\.com|2mdn\\.net|googlesyndication\\.com|corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|googleads\\.g\\.doubleclick\\.net|prod\\.google\\.com|static\\.doubleclick\\.net|static\\.googleadsserving\\.cn|studioapi\\.doubleclick\\.net|youtube\\.com|youtube\\.googleapis\\.com|youtube\\-nocookie\\.com|youtubekids\\.com|ytimg\\.com|ytimg\\.sandbox\\.google\\.com)[.]?(:[0-9]+)?/|lightbox-(demos|builder)\\.appspot\\.com/|s[01](qa)?\\.2mdn\\.net/ads/richmedia/studio/mu/templates/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/h5/layouts/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/ytplayer)"), wZK=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)*(crowdsource|datacompute)\\.google\\.com/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https://(books|play-books-(autopush|internal|preprod|staging)(-sandbox|\\.corp))\\.googleusercontent\\.com(/|$)|^https://ads-prod\\.qa\\.adz\\.google\\.com/aw/(assetgroup/(edit|new)|campaigns/(new/(performancemax|demandgen)|edit/demandgen))|^https://ads\\.google\\.com/aw/(assetgroup/(edit|new)|campaigns/(new/(performancemax|demandgen)|edit/demandgen))|^https://adwords\\.corp\\.google\\.com/aw/(assetgroup/(edit|new)|campaigns/(new/(performancemax|demandgen)|edit/demandgen))|^https://canvastester-3fd0b\\.appspot\\.com(/|$)|^https://localhost\\.googleusercontent\\.com(:\\d+)?(/|$)|^https://narrative-news-cast-receiver-d\\.appspot\\.com(/|$)|^https://narrative-news-cast-receiver-f\\.appspot\\.com(/|$)|^https://one\\.google\\.com(/|$)|^https://www\\.google\\.com/culturalinstitute/manage/.*$|^https://www\\.gstatic\\.com/aog_howto|^https://www\\.gstatic\\.com/narrative_cast_receiver/news|^https?://(([A-Za-z0-9-]{1,63}\\.)*(imasdk\\.googleapis\\.com|corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleads\\.g\\.doubleclick\\.net|googleplex\\.com|play\\.google\\.com|prod\\.google\\.com|photos\\.google\\.com|get\\.google\\.com|currents\\.google\\.com|blogger\\.com|mail\\.google\\.com|survey\\.g\\.doubleclick\\.net|youtube\\.com|youtube\\.googleapis\\.com|youtubeeducation\\.com|youtube\\-nocookie\\.com|yt\\-web\\-embedded\\-player\\.appspot\\.com|youtubekids\\.com|vevo\\.com|chat\\.google\\.com|meet\\.google\\.com|artsandculture\\.google\\.com|ads\\-external\\-prod\\.qa\\.adz\\.google\\.com)[.]?(:[0-9]+)?(/|$)|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|(www\\.|encrypted\\.)?google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/(search|webhp)\\?|(www\\.|encrypted\\.)google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/?$|lightbox-(demos|builder)\\.appspot\\.com/|s0\\.2mdn\\.net/instream/html5/native/|s[01](qa)?\\.2mdn\\.net/ads/richmedia/studio/mu/templates/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/h5/layouts/tetris)"), FjH=RegExp("^(https://play\\.google\\.com|https://photos\\.google\\.com|https://get\\.google\\.com|https://currents\\.google\\.com|https://mail\\.google\\.com|https://yt\\-web\\-embedded\\-player\\.appspot\\.com|http://yt\\-web\\-embedded\\-player\\.appspot\\.com|https://chat\\.google\\.com|https://one\\.google\\.com|https://artsandculture\\.google\\.com|https://adstransparency\\.google\\.com|https://ads\\.google\\.com|https://adwords\\.corp\\.google\\.com|https://ads\\-external\\-prod\\.qa\\.adz\\.google\\.com|https://ads\\-prod\\.qa\\.adz\\.google\\.com)$|^http://[0-9]+\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.([a-z]{2}|i)\\.borg\\.google\\.com(:[0-9]+)?$|^https://((autopush|beta-lookup|daily-[0-6]|manual-qual|preprod|stream)\\.)?meet\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)*(crowdsource|datacompute)\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)*(youtube|youtubekids|youtubeeducation)\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+sandbox\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com$|^https://(books|play-books-(autopush|internal|preprod|staging)(-sandbox|\\.corp))\\.googleusercontent\\.com$|^https://(draft|www|(www\\.)?dev\\.sandbox|(www\\.)?autopush\\.sandbox|(www\\.)?staging\\.sandbox|(www\\.)?restore\\.sandbox)\\.blogger\\.com$|^https://[0-9a-f]{1,63}\\.proxy\\.googleprod\\.com$|^https://localhost\\.googleusercontent\\.com(:\\d+)?$|^https?://(((docs|m|sing|ss|sss|www)\\.)?drive\\.google\\.com$|([A-Za-z0-9-]{1,63}\\.)*c\\.googlers\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*corp\\.google\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*googleplex\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*proxy\\.googlers\\.com(:[0-9]+)?$|(www\\.|encrypted\\.)google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/?$|[A-Za-z0-9-]+\\.prod\\.google\\.com(:[0-9]+)?$|docs\\.google\\.com$)");var okB;g.gL=class{constructor(b,R,h={}){this.start=b;this.end=R;this.active=!0;this.color="";this.Y=okB++;this.id=h.id||"";this.priority=h.priority||9;this.visible=h.visible||!1;this.style=h.style||tB.AD_MARKER;this.namespace=h.namespace||"";if(b=h.color)b=b.toString(16),this.color=`#${Array(7-b.length).join("0")}${b}`;this.tooltip=h.tooltip;this.icons=h.icons?h.icons.filter(K=>g.fr(K.thumbnails,I=>g.H8(I.url))):null; this.associatedClipId=h.associatedClipId;this.markerPositionMs=h.markerPositionMs;this.visible=this.visible;this.style=this.style;this.start=this.start}getId(){return this.id}toString(){return"CueRange{"+this.namespace+":"+this.id+"}["+aaT(this.start)+", "+aaT(this.end)+"]"}contains(b,R){return b>=this.start&&(b{const R=this.slot.clientMetadata.rp("metadata_type_ad_break_request_data");b=Date.now();cz(this.aH.get(),"abrs",`ct.${b};cmt.${this.BY.get().getCurrentTimeSec(1,!1)};sid.${this.slot.slotId};`);return this.Y.get().fetch({dA:R.getAdBreakUrl,a9:new g.gL(R.Xe,R.IQ),H5:this.slot.clientMetadata.rp("metadata_type_cue_point"),cueProcessedMs:R.cueProcessedMs})}, ()=>{B$T(this)},R=>{var h=Date.now()-b; cz(this.aH.get(),"abrr",`ct.${(new Date).getTime()};cmt.${this.BY.get().getCurrentTimeSec(1,!1)};l.${h.toString()};sid.${this.slot.slotId};`);h=R.n2;h.length>=2&&R.ssdaiAdsConfig&&u2("Unexpected ad placement renderers length",this.slot,null,{length:h.length});R.adSlots?.some(K=>g.Z(K,G5)?.adSlotMetadata?.slotType==="SLOT_TYPE_PLAYER_BYTES")||h.some(K=>!!K.renderer?.linearAdSequenceRenderer?.linearAds?.length||!!K.renderer?.instreamVideoAdRenderer)||B$T(this)})}nL(){o53(this.G)}};var bNx=class{constructor(b,R,h,K,I,N){this.slot=R;this.G=h;this.Y=new riT(b,R,K,I,N)}w1(){Fr2(this.Y,()=>{const b=this.slot.clientMetadata.rp("metadata_type_ad_break_request_data");return b.cueProcessedMs?this.G.get().fetch({dA:b.getAdBreakUrl,a9:new g.gL(b.Xe,b.IQ),cueProcessedMs:b.cueProcessedMs}):this.G.get().fetch({dA:b.getAdBreakUrl,a9:new g.gL(b.Xe,b.IQ)})})}nL(){o53(this.Y)}};var RtP=class{constructor(b,R){this.callback=b;this.slot=R}w1(){var b=this.slot.clientMetadata;b=this.slot.fulfilledLayout??b.rp("metadata_type_fulfilled_layout");SHs(this.callback,this.slot,b)}nL(){w5(this.callback,this.slot,new V(`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")}};var htD=class{build(b,R){return R.fulfilledLayout||jz(R,{Gj:["metadata_type_fulfilled_layout"]})?new RtP(b,R):this.X(b,R)}};var rc=class extends htD{constructor(b,R,h,K,I,N,p){super();this.G=b;this.Y=R;this.Og=h;this.VX=K;this.aH=I;this.BY=N;this.b5=p}X(b,R){if(jz(R,{Gj:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new DQ2(b,R,this.G,this.Y,this.Og,this.VX,this.aH,this.BY,this.b5);if(jz(R,{Gj:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new bNx(b,R,this.G,this.Y,this.Og,this.VX);throw new V(`Unsupported slot with type: ${R.slotType} and client metadata: ${WF(R.clientMetadata)} in `+ "AdBreakRequestSlotFulfillmentAdapterFactory.");}};var Lh=class extends htD{X(b,R){throw new V(`Unsupported slot with type: ${R.slotType} and client metadata: ${WF(R.clientMetadata)} in `+"DefaultFulfillmentAdapterFactory.");}};var KTs=class{constructor(b,R,h,K,I,N){this.callback=b;this.slot=R;this.layout=h;this.X=K;this.G=I;this.Y=N}UW(){return this.slot}QV(){return this.layout}init(){}release(){}startRendering(b){if(b.layoutId!==this.layout.layoutId)this.callback.ZP(this.slot,b,new FI("Tried to start rendering an unknown layout, this adapter "+`requires LayoutId: ${this.layout.layoutId}`+`and LayoutType: ${this.layout.layoutType}`,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"); else{var R=b.clientMetadata.rp("metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.PR(this.slot,b),fiT(this.X,this.slot,R)):u2("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,b)}}h9(b,R){b.layoutId!==this.layout.layoutId?this.callback.ZP(this.slot,b,new FI("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.cR(this.slot,b,R),qWx(this),d2P(this))}};var suK=class{constructor(b,R,h){this.G=b;this.slot=R;this.layout=h}};var wc=class extends g.NU{constructor(b,R,h,K){super();this.callback=b;this.X=K;this.G=[];this.Y=new suK(b,R,h)}UW(){return this.Y.slot}QV(){return this.Y.layout}get slot(){return this.Y.slot}get layout(){return this.Y.layout}init(){this.X.get().addListener(this)}release(){this.X.get().removeListener(this);this.dispose()}zs(){}qv(){}Z3(){}X_(){}startRendering(b){Uv(this.Y,b,()=>void this.MI())}MI(){this.X.get().MI(this.G)}h9(b,R){Uv(this.Y,b,()=>{var h=this.X.get(); ise(h,this.G,3);this.G=[];this.callback.cR(this.slot,b,R)})}X5(){this.X.HY()||this.X.get().removeListener(this); super.X5()}};var Fu=class{constructor(b,R,h,K,I=null){this.X=b;this.aH=R;this.layoutId=K;this.V=0;this.J=null;this.S=void 0;this.G=new Set;this.Y=Array.from(this.X.get("progress")||[]);this.Y.sort((N,p)=>(N.offsetMilliseconds||0)-(p.offsetMilliseconds||0)); this.D={adPlacementConfig:h,Cl:I}}zf(b,R=!1){const h=(this.X.get(b)||[]).concat();if(R=R&&yyT(b)){const K=this.X.get(R);K&&h.push(...K)}Ym(this,b,h);this.G.add(b);R&&this.G.add(R)}d2(b,R=!1){if(!this.G.has(b)){var h=R&&yyT(b);h&&(R=!this.G.has(h));this.zf(b,R)}}};var $4s=class extends jg{constructor(b,R,h,K,I){super("ads-engagement-panel-layout",b,R,h,K,I)}};var Ifx=class extends wc{constructor(b,R,h,K,I,N,p){super(b,R,h,K);this.aH=I;this.u5=N;this.J=p;this.Ch=!0;this.V=null;this.S=h.clientMetadata.rp("metadata_type_linked_player_bytes_layout_id");Yv(this.u5(),this);b=h.clientMetadata.rp("metadata_type_ad_placement_config");this.LR=new Fu(h.IT,this.aH,b,h.layoutId)}LT(b,R){Sz("ads-engagement-panel-layout",b,this.J.get().Wg,this.aH.get(),this.V,this.S,this.UW(),this.QV(),R)}startRendering(b){gt(this.LR,this.UW(),this.QV(),g.Z(this.QV().renderingContent, $A),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",(R,h,K,I,N)=>new $4s(R,h,K,I,N),this.G); super.startRendering(b)}PR(b,R){this.S===R.layoutId&&(this.V===null?this.V=this.aH.get().fh():u2("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}cR(){}qz(){}Zs(){}HI(){}F$(){}J9(){}aB(){}Ds(){}Gf(){}UD(){}o0(){}X5(){em(this.u5(),this);super.X5()}};var Ng3=class extends jg{constructor(b,R,h,K,I){super("banner-image",b,R,h,K,I)}};var pV2=class extends wc{constructor(b,R,h,K,I,N,p){super(b,R,h,K);this.aH=I;this.u5=N;this.J=p;this.Ch=!0;this.V=null;this.S=h.clientMetadata.rp("metadata_type_linked_player_bytes_layout_id");Yv(this.u5(),this);this.adPlacementConfig=h.clientMetadata.rp("metadata_type_ad_placement_config");this.LR=new Fu(h.IT,this.aH,this.adPlacementConfig,h.layoutId)}LT(b,R){Sz("banner-image",b,this.J.get().Wg,this.aH.get(),this.V,this.S,this.UW(),this.QV(),R)}startRendering(b){gt(this.LR,this.UW(),this.QV(),g.Z(this.QV().renderingContent, KA),this.callback,"metadata_type_banner_image_layout_view_model",(R,h,K,I,N)=>new Ng3(R,h,K,I,N),this.G); super.startRendering(b)}PR(b,R){this.S===R.layoutId&&(this.V===null?this.V=this.aH.get().fh():u2("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}cR(){}qz(){}Zs(){}HI(){}F$(){}J9(){}aB(){}Ds(){}Gf(){}UD(){}o0(){}X5(){em(this.u5(),this);super.X5()}};var lfB=class extends jg{constructor(b,R,h,K,I){super("action-companion",b,R,h,K,I)}};var afw=class extends wc{constructor(b,R,h,K,I,N,p){super(b,R,h,K);this.aH=I;this.u5=N;this.J=p;this.Ch=!0;this.V=null;this.S=h.clientMetadata.rp("metadata_type_linked_player_bytes_layout_id");Yv(this.u5(),this);b=h.clientMetadata.rp("metadata_type_ad_placement_config");this.LR=new Fu(h.IT,this.aH,b,h.layoutId)}LT(b,R){Sz("action-companion",b,this.J.get().Wg,this.aH.get(),this.V,this.S,this.UW(),this.QV(),R)}startRendering(b){gt(this.LR,this.UW(),this.QV(),g.Z(this.QV().renderingContent,bO),this.callback, "metadata_type_action_companion_ad_renderer",(R,h,K,I,N)=>new lfB(R,h,K,I,N),this.G); super.startRendering(b)}PR(b,R){R.layoutId===this.layout.layoutId?this.LR.d2("impression"):this.S===R.layoutId&&(this.V===null?this.V=this.aH.get().fh():u2("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}cR(){}qz(){}Zs(){}HI(){}F$(){}J9(){}aB(){}Ds(){}Gf(){}UD(){}o0(){}X5(){em(this.u5(),this);super.X5()}};var vxT=class extends jg{constructor(b,R,h,K,I){super("image-companion",b,R,h,K,I)}};var BgK=class extends wc{constructor(b,R,h,K,I,N,p){super(b,R,h,K);this.aH=I;this.u5=N;this.J=p;this.Ch=!0;this.V=null;this.S=h.clientMetadata.rp("metadata_type_linked_player_bytes_layout_id");Yv(this.u5(),this);b=h.clientMetadata.rp("metadata_type_ad_placement_config");this.LR=new Fu(h.IT,this.aH,b,h.layoutId)}LT(b,R){Sz("image-companion",b,this.J.get().Wg,this.aH.get(),this.V,this.S,this.UW(),this.QV(),R)}startRendering(b){gt(this.LR,this.UW(),this.QV(),g.Z(this.QV().renderingContent,Rs),this.callback, "metadata_type_image_companion_ad_renderer",(R,h,K,I,N)=>new vxT(R,h,K,I,N),this.G); super.startRendering(b)}PR(b,R){R.layoutId===this.layout.layoutId?this.LR.d2("impression"):this.S===R.layoutId&&(this.V===null?this.V=this.aH.get().fh():u2("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}cR(){}qz(){}Zs(){}HI(){}F$(){}J9(){}aB(){}Ds(){}Gf(){}UD(){}o0(){}X5(){em(this.u5(),this);super.X5()}};var HNe=class extends jg{constructor(b,R,h,K,I){super("shopping-companion",b,R,h,K,I)}};var qL3=class extends wc{constructor(b,R,h,K,I,N,p){super(b,R,h,K);this.aH=I;this.u5=N;this.J=p;this.Ch=!0;this.V=null;this.S=h.clientMetadata.rp("metadata_type_linked_player_bytes_layout_id");Yv(this.u5(),this);b=h.clientMetadata.rp("metadata_type_ad_placement_config");this.LR=new Fu(h.IT,this.aH,b,h.layoutId)}LT(b,R){Sz("shopping-companion",b,this.J.get().Wg,this.aH.get(),this.V,this.S,this.UW(),this.QV(),R)}startRendering(b){gt(this.LR,this.UW(),this.QV(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer", (R,h,K,I,N)=>new HNe(R,h,K,I,N),this.G); super.startRendering(b)}PR(b,R){R.layoutId===this.layout.layoutId?this.LR.d2("impression"):this.S===R.layoutId&&(this.V===null?this.V=this.aH.get().fh():u2("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}cR(){}qz(){}Zs(){}HI(){}F$(){}J9(){}aB(){}Ds(){}Gf(){}UD(){}o0(){}X5(){em(this.u5(),this);super.X5()}};var FZ=class{constructor(b,R,h,K){this.JO=b;this.layoutId=h;this.S=K;this.Y=[];this.G=[];this.X=this.V=0;for(const I of R)switch(I.adVideoOffset?.kind){case "AD_VIDEO_PROGRESS_KIND_PERCENT":(I.adVideoOffset?.kind!=="AD_VIDEO_PROGRESS_KIND_PERCENT"?0:I.adVideoOffset?.percent!=null)?this.Y.push(I):u2("Invalid AdVideoProgressPercentCommand");break;case "AD_VIDEO_PROGRESS_KIND_MILLISECONDS":(I.adVideoOffset?.kind!=="AD_VIDEO_PROGRESS_KIND_MILLISECONDS"?0:I.adVideoOffset?.milliseconds!=null&&!isNaN(Number(I.adVideoOffset.milliseconds)))? this.G.push(I):u2("Invalid AdVideoProgressMillisecondsCommand");break;default:u2("Unknown or invalid AdVideoProgressOffSet kind")}this.Y.sort((I,N)=>I.adVideoOffset.percent-N.adVideoOffset.percent); this.G.sort((I,N)=>Number(I.adVideoOffset.milliseconds)-Number(N.adVideoOffset.milliseconds))}};var d4P=class extends wc{constructor(b,R,h,K,I,N){super(b,R,h,K);this.aH=I;this.u5=N;this.Ch=!0;Yv(this.u5(),this);b=h.clientMetadata.rp("metadata_type_ad_placement_config");this.LR=new Fu(h.IT,this.aH,b,h.layoutId)}startRendering(b){gt(this.LR,this.UW(),this.QV(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",(R,h,K,I,N)=>new lfB(R,h,K,I,N),this.G); super.startRendering(b)}PR(){}cR(){}qz(){}Zs(){}HI(){}F$(){}J9(){}aB(){}Ds(){}Gf(){}UD(){}o0(){}X5(){em(this.u5(),this);super.X5()}LT(){}};var ffx=class{constructor(b,R,h,K,I,N,p,l){this.callback=b;this.slot=R;this.layout=h;this.BY=K;this.aH=I;this.VX=p;this.Dl=l;this.G=!1;b=h.clientMetadata.rp("metadata_type_ad_placement_config");this.LR=new Fu(h.IT,this.aH,b,h.layoutId);b=this.layout.clientMetadata.rp("METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")?.progressCommands||[];const a=h.clientMetadata.rp("METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds");this.Y=new FZ(N,b,h.layoutId,()=>a*1E3)}UW(){return this.slot}QV(){return this.layout}init(){this.BY.get().addListener(this); this.BY.get().Hn.push(this);const b=this.layout.clientMetadata.rp("metadata_type_video_length_seconds"),R=this.layout.clientMetadata.rp("metadata_type_active_view_traffic_type");nM(this.layout.IT)&&ge(this.Dl.get(),this.layout.layoutId,{eH:R,Fx:b,listener:this})}release(){this.BY.get().removeListener(this);fjP(this.BY.get(),this);nM(this.layout.IT)&&WH(this.Dl.get(),this.layout.layoutId)}startRendering(b){this.callback.PR(this.slot,b)}h9(b,R){Vq2(this.VX.get())&&!this.G&&(this.LR.d2("abandon"),this.G= !0);this.callback.cR(this.slot,b,R)}Xf(b){switch(b.id){case "part2viewed":this.LR.d2("start");this.LR.d2("impression");break;case "videoplaytime25":this.LR.d2("first_quartile");break;case "videoplaytime50":this.LR.d2("midpoint");break;case "videoplaytime75":this.LR.d2("third_quartile");break;case "videoplaytime100":Vq2(this.VX.get())?this.G||(this.LR.d2("complete"),this.G=!0):this.LR.d2("complete");xm(this.LR)&&Ov(this.LR,Infinity,!0);CrT(this.VX.get())&&ml(this.Y,Infinity,!0);break;case "engagedview":xm(this.LR)|| this.LR.d2("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:u2("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}onVolumeChange(){}Iw(){}O8(){}yK(){}onFullscreenToggled(){}j5(){}F4(){}XK(b){CrT(this.VX.get())&&ml(this.Y,b*1E3,!1);xm(this.LR)&&Ov(this.LR,b*1E3,!1)}gh(){}le(){this.LR.d2("active_view_measurable")}SP(){this.LR.d2("active_view_viewable")}Vf(){this.LR.d2("active_view_fully_viewable_audible_half_duration")}v9(){this.LR.d2("audio_measurable")}gG(){this.LR.d2("audio_audible")}};var R9w=class extends wc{constructor(b,R,h,K,I,N){super(b,R,h,K);this.BY=I;this.S=N;this.V=!1}init(){super.init();const b=this.layout.clientMetadata.rp("metadata_type_instream_ad_player_overlay_renderer"),R={adsClientData:this.layout.qj};this.G.push(new kF(b,this.layout.layoutId,this.layout.clientMetadata.rp("METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),R,!0))}VG(){this.V||this.BY.get().resumeVideo(1)}startRendering(b){super.startRendering(b);kP(this.BY.get(),"ad-showing");this.callback.PR(this.slot, b);this.S.EE=this}h9(b,R){super.h9(b,R);YP(this.BY.get(),"ad-showing");h8(this.S,this)}LT(b){switch(b){case "ad-info-icon-button":(this.V=this.BY.get().WZ(1))||this.BY.get().pauseVideo();break;case "visit-advertiser":this.BY.get().pauseVideo()}}X5(){super.X5()}};var y4B=class extends jg{constructor(b,R,h,K,I){super("top-banner-image-text-icon-buttoned",b,R,h,K,I)}};var t6K=class extends wc{constructor(b,R,h,K,I,N){super(b,R,h,K);this.aH=I;this.u5=N;this.Ch=!0;Yv(this.u5(),this);b=h.clientMetadata.rp("metadata_type_ad_placement_config");this.LR=new Fu(h.IT,this.aH,b,h.layoutId)}startRendering(b){gt(this.LR,this.UW(),this.QV(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",(R,h,K,I,N)=>new y4B(R,h,K,I,N),this.G); super.startRendering(b)}PR(){}cR(){}qz(){}Zs(){}HI(){}F$(){}J9(){}aB(){}Ds(){}Gf(){}UD(){}o0(){}X5(){em(this.u5(),this);super.X5()}LT(){}};var juq=class extends jg{constructor(b,R,h){super("display-underlay-text-grid-cards",b,{},R,h);this.interactionLoggingClientData=h}};var A4T=class extends wc{constructor(b,R,h,K,I,N){super(b,R,h,K);this.aH=I;this.V=N;this.S=this.layout.clientMetadata.rp("metadata_type_linked_player_bytes_layout_id")}init(){super.init();this.G.push(new juq(g.Z(this.layout.renderingContent,iO),this.layout.layoutId,{adsClientData:this.layout.qj}))}LT(){AM(this.V.get(),this.S)&&W8(this.aH.get(),3)}startRendering(b){super.startRendering(b);this.callback.PR(this.slot,b)}X5(){super.X5()}};var oP=class extends jg{constructor(b,R,h,K){super("ad-action-interstitial",b,R,h,K);this.interactionLoggingClientData=K;this.IN=this.C$=!0}};var D2e=class extends wc{constructor(b,R,h,K,I){super(b,R,h,K);b=h.clientMetadata.rp("metadata_type_ad_placement_config");this.LR=new Fu(h.IT,I,b,h.layoutId)}init(){super.init();const b=g.Z(this.layout.renderingContent,M1)||this.layout.clientMetadata.rp("metadata_type_ad_action_interstitial_renderer"),R=Gc(this.LR);this.G.push(new oP(b,R,this.layout.layoutId,{adsClientData:this.layout.qj}))}startRendering(b){super.startRendering(b);this.callback.PR(this.slot,b)}LT(b,R){if(R===this.layout.layoutId)switch(b){case "skip-button":(b= this.layout.clientMetadata.rp("metadata_type_ad_pod_skip_target_callback_ref")?.current)&&er(b,this.UW(),this.layout)}}X5(){super.X5()}};var Dl=class{constructor(b,R,h){this.Y=b;this.X=R;this.G=h}build(b,R,h,K){if(P8(K,{Gj:["metadata_type_ad_break_response_data"],eX:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new KTs(b,h,K,this.Y,this.X,this.G);throw new FI(`Unsupported layout with type: ${K.layoutType} and client metadata: ${WF(K.clientMetadata)} in `+"AdBreakRequestLayoutRenderingAdapterFactory.");}};var iNT=class extends jg{constructor(b,R,h,K,I){super("ads-engagement-panel",b,R,h,K,I)}};var ztT=class extends wc{constructor(b,R,h,K,I,N,p){super(b,R,h,K);this.aH=I;this.u5=N;this.J=p;this.Ch=!0;this.V=null;this.S=h.clientMetadata.rp("metadata_type_linked_player_bytes_layout_id");Yv(this.u5(),this);b=h.clientMetadata.rp("metadata_type_ad_placement_config");this.LR=new Fu(h.IT,this.aH,b,h.layoutId)}LT(b,R){Sz("ads-engagement-panel",b,this.J.get().Wg,this.aH.get(),this.V,this.S,this.UW(),this.QV(),R)}startRendering(b){gt(this.LR,this.UW(),this.QV(),g.Z(this.QV().renderingContent,hu),this.callback, "metadata_type_ads_engagement_panel_renderer",(R,h,K,I,N)=>new iNT(R,h,K,I,N),this.G); super.startRendering(b)}PR(b,R){R.layoutId===this.layout.layoutId?this.LR.d2("impression"):this.S===R.layoutId&&(this.V===null?this.V=this.aH.get().fh():u2("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}cR(){}qz(){}Zs(){}HI(){}F$(){}J9(){}aB(){}Ds(){}Gf(){}UD(){}o0(){}X5(){em(this.u5(),this);super.X5()}};var U4T=class extends wc{constructor(b,R,h,K,I,N,p){super(b,R,h,K);this.aH=I;this.u5=N;this.J=p;this.Ch=!0;this.V=null;this.S=h.clientMetadata.rp("metadata_type_linked_player_bytes_layout_id");Yv(this.u5(),this);this.adPlacementConfig=h.clientMetadata.rp("metadata_type_ad_placement_config");this.LR=new Fu(h.IT,this.aH,this.adPlacementConfig,h.layoutId)}LT(b,R){Sz("top-banner-image-text-icon-buttoned",b,this.J.get().Wg,this.aH.get(),this.V,this.S,this.UW(),this.QV(),R)}startRendering(b){gt(this.LR, this.UW(),this.QV(),g.Z(this.QV().renderingContent,s1),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",(R,h,K,I,N)=>new y4B(R,h,K,I,N),this.G); super.startRendering(b)}PR(b,R){this.S===R.layoutId&&(this.V===null?this.V=this.aH.get().fh():u2("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}cR(){}qz(){}Zs(){}HI(){}F$(){}J9(){}aB(){}Ds(){}Gf(){}UD(){}o0(){}X5(){em(this.u5(),this);super.X5()}};var GAq=class{constructor(b,R,h,K,I){this.TD=b;this.aH=R;this.u5=h;this.G=K;this.Dl=I}build(b,R,h,K){if(P8(K,nQ3())||g.Z(K.renderingContent,hu)!==void 0)return new ztT(b,h,K,this.TD,this.aH,this.u5,this.G);if(P8(K,zlK())||g.Z(K.renderingContent,bO)!==void 0)return new afw(b,h,K,this.TD,this.aH,this.u5,this.G);if(P8(K,U2s())||g.Z(K.renderingContent,Rs)!==void 0)return new BgK(b,h,K,this.TD,this.aH,this.u5,this.G);if(P8(K,GUx()))return new qL3(b,h,K,this.TD,this.aH,this.u5,this.G);if(P8(K,gQ3()))return new d4P(b, h,K,this.TD,this.aH,this.u5);if(P8(K,iTT())||g.Z(K.renderingContent,KA)!==void 0)return new pV2(b,h,K,this.TD,this.aH,this.u5,this.G);if(P8(K,EQ2())||g.Z(K.renderingContent,s1)!==void 0)return new U4T(b,h,K,this.TD,this.aH,this.u5,this.G);if(P8(K,Wwx()))return new t6K(b,h,K,this.TD,this.aH,this.u5);if(P8(K,Aye())||g.Z(K.renderingContent,$A)!==void 0)return new Ifx(b,h,K,this.TD,this.aH,this.u5,this.G);throw new FI(`Unsupported layout with type: ${K.layoutType} and client metadata: ${WF(K.clientMetadata)} in `+ "DesktopAboveFeedLayoutRenderingAdapterFactory.");}};var gxw=class{constructor(b,R,h){this.TD=b;this.aH=R;this.G=h}build(b,R,h,K){if(P8(K,{Gj:["metadata_type_linked_player_bytes_layout_id"],eX:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new A4T(b,h,K,this.TD,this.aH,this.G);throw new FI(`Unsupported layout with type: ${K.layoutType} and client metadata: ${WF(K.clientMetadata)} in `+"DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");}};var WTP=class{constructor(b,R,h,K,I){this.callback=b;this.slot=R;this.layout=h;this.aH=K;this.Mf=I;b=this.layout.clientMetadata.rp("metadata_type_ad_placement_config");this.LR=new Fu(h.IT,this.aH,b,h.layoutId)}UW(){return this.slot}QV(){return this.layout}init(){}release(){}startRendering(b){b.layoutId!==this.layout.layoutId?this.callback.ZP(this.slot,b,new FI("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.PR(this.slot,b),this.LR.d2("impression"),mx(this.Mf,b))}h9(b,R){b.layoutId!==this.layout.layoutId?this.callback.ZP(this.slot,b,new FI("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.cR(this.slot, b,R)}};var SLH=class{constructor(b,R,h,K,I){this.callback=b;this.slot=R;this.layout=h;this.aH=K;this.Mf=I;b=this.layout.clientMetadata.rp("metadata_type_ad_placement_config");this.LR=new Fu(h.IT,this.aH,b,h.layoutId)}UW(){return this.slot}QV(){return this.layout}init(){}release(){}startRendering(b){b.layoutId!==this.layout.layoutId?this.callback.ZP(this.slot,b,new FI("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.PR(this.slot,b),this.LR.d2("impression"),mx(this.Mf,b))}h9(b,R){b.layoutId!==this.layout.layoutId?this.callback.ZP(this.slot,b,new FI("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.cR(this.slot, b,R)}};var bt=class{constructor(b,R,h,K){this.VX=b;this.aH=R;this.Mf=h;this.Dl=K}build(b,R,h,K){if(!this.VX.get().A.L().N("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(P8(K,T$T()))return new WTP(b,h,K,this.aH,this.Mf)}else if(P8(K,{Gj:[],eX:["LAYOUT_TYPE_FORECASTING"]}))return new SLH(b,h,K,this.aH,this.Mf);throw new FI(`Unsupported layout with type: ${K.layoutType} and client metadata: ${WF(K.clientMetadata)} in `+"ForecastingLayoutRenderingAdapterFactory.");}};var nxs=class extends jg{constructor(b,R,h,K){super("player-overlay-layout",b,{},h,K);this.videoAdDurationSeconds=R;this.interactionLoggingClientData=K}};var oQB=class extends wc{constructor(b,R,h,K,I,N,p,l,a){super(b,R,h,K);this.BY=I;this.aH=N;this.J=p;this.S=l;this.VX=a;this.V=!1;this.D=this.layout.clientMetadata.rp("metadata_type_linked_player_bytes_layout_id")}init(){super.init();const b=g.Z(this.layout.renderingContent,CM)||this.layout.clientMetadata.rp("metadata_type_player_overlay_layout_renderer"),R={adsClientData:this.layout.qj};this.G.push(new nxs(b,this.layout.clientMetadata.rp("METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId, R))}VG(){this.V||this.BY.get().resumeVideo(2)}startRendering(b){super.startRendering(b);this.callback.PR(this.slot,b);this.S.EE=this}h9(b,R){super.h9(b,R);h8(this.S,this)}LT(b,R){if(!pM(this.VX.get(),"stop_handling_click_for_non_rendering_overlay_layout")||R===this.layout.layoutId){if(AM(this.J.get(),this.D))switch(b){case "visit-advertiser-link":W8(this.aH.get(),3)}switch(b){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.V|| this.BY.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.V=this.BY.get().WZ(2))||this.BY.get().pauseVideo();break;case "visit-advertiser-link":this.BY.get().pauseVideo();ryK(this).cF();break;case "skip-button":b=ryK(this),this.layout.renderingContent&&!GM(this.layout.clientMetadata,"metadata_type_dai")||!b||!b.xd?(b=this.layout.clientMetadata.rp("metadata_type_ad_pod_skip_target_callback_ref")?.current)&&er(b,this.UW(),this.layout):(u2("Requesting to skip by LegacyPlayerBytes when components enabled"), b.cV(this.UW(),this.layout))}}}X5(){super.X5()}};var Fwx=class extends wc{constructor(b,R,h,K,I,N,p,l,a){super(b,R,h,K);this.BY=I;this.aH=N;this.J=p;this.S=l;this.VX=a;this.V=!1;this.D=this.layout.clientMetadata.rp("metadata_type_linked_player_bytes_layout_id")}init(){super.init();const b=g.Z(this.layout.renderingContent,Vf)||this.layout.clientMetadata.rp("metadata_type_instream_ad_player_overlay_renderer"),R={adsClientData:this.layout.qj};var h;(h=!!this.layout.renderingContent)||(h=Xy(this),h=!(h&&h.xd));this.G.push(new kF(b,this.layout.layoutId, this.layout.clientMetadata.rp("METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),R,h))}VG(){this.V||this.BY.get().resumeVideo(2)}startRendering(b){super.startRendering(b);this.callback.PR(this.slot,b);this.S.EE=this}h9(b,R){super.h9(b,R);h8(this.S,this)}LT(b,R){if(!this.VX||!pM(this.VX.get(),"stop_handling_click_for_non_rendering_overlay_layout")||R===this.layout.layoutId){if(AM(this.J.get(),this.D))switch(b){case "visit-advertiser":W8(this.aH.get(),3)}switch(b){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.V|| this.BY.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.V=this.BY.get().WZ(2))||this.BY.get().pauseVideo();break;case "visit-advertiser":this.BY.get().pauseVideo();Xy(this).cF();break;case "skip-button":b=Xy(this),this.layout.renderingContent&&!GM(this.layout.clientMetadata,"metadata_type_dai")||!b||!b.xd?(b=this.layout.clientMetadata.rp("metadata_type_ad_pod_skip_target_callback_ref")?.current)&&er(b,this.UW(),this.layout):(u2("Requesting to skip by LegacyPlayerBytes"), b.cV(this.UW(),this.layout))}}}X5(){super.X5()}};var ExD=class extends jg{constructor(b,R,h){super("ad-message",b,void 0,R,h)}};var ble=class extends wc{constructor(b,R,h,K,I,N){super(h,b,R,K);this.BY=I;this.VX=N}startRendering(b){Uv(this.Y,b,()=>{this.G.push(new ExD(this.layout.clientMetadata.rp("metadata_type_valid_ad_message_renderer"),b.layoutId,b.qj));this.MI();this.callback.PR(this.slot,b);GQ(this.BY.get(),1).G(512)&&this.callback.ZP(this.UW(),this.QV(),new FI("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}F4(){}j5(b){b.state.isError()&& this.callback.ZP(this.UW(),this.QV(),new FI("A player error happened during adNotify",{playerErrorCode:b.state.gt?.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}onFullscreenToggled(){}O8(){}yK(){}Iw(){}onVolumeChange(){}Xf(){}gh(){}LT(){}};var TgD=class extends jg{constructor(b,R,h,K){super("video-interstitial-buttoned-centered",b,R,h,K);this.interactionLoggingClientData=K}};var h9B=class extends wc{constructor(b,R,h,K,I){super(b,R,h,K);b=h.clientMetadata.rp("metadata_type_ad_placement_config");this.LR=new Fu(h.IT,I,b,h.layoutId)}init(){super.init();const b=g.Z(this.layout.renderingContent,rt),R=Gc(this.LR);this.G.push(new TgD(b,R,this.layout.layoutId,{adsClientData:this.layout.qj}))}startRendering(b){super.startRendering(b);this.callback.PR(this.slot,b)}LT(b,R){if(R===this.layout.layoutId)switch(b){case "skip-button":(b=this.layout.clientMetadata.rp("metadata_type_ad_pod_skip_target_callback_ref")?.current)&& er(b,this.UW(),this.layout)}}X5(){super.X5()}};var J4K=class{constructor(b,R,h,K,I,N){this.TD=b;this.BY=R;this.aH=h;this.Y=K;this.G=I;this.VX=N}build(b,R,h,K){if(b=LM(b,h,K,this.TD,this.BY,this.aH,this.Y,this.G,this.VX))return b;throw new FI(`Unsupported layout with type: ${K.layoutType} and client metadata: ${WF(K.clientMetadata)} in `+"OtherWebInPlayerLayoutRenderingAdapterFactory.");}};var kAK=class{constructor(b,R,h,K,I,N,p,l,a){this.callback=b;this.slot=R;this.layout=h;this.BY=K;this.aH=I;this.VX=p;this.Dl=l;this.s9=a;this.G=!1;b=h.clientMetadata.rp("metadata_type_ad_placement_config");this.LR=new Fu(h.IT,this.aH,b,h.layoutId);b=this.layout.clientMetadata.rp("METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")?.progressCommands||[];this.Y=new FZ(N,b,h.layoutId,()=>KzK(this)*1E3)}UW(){return this.slot}QV(){return this.layout}init(){this.BY.get().addListener(this); this.BY.get().Hn.push(this);const b=KzK(this);var R=g.Z(this.layout.renderingContent,yV);const h=R?Ev(R.pings):this.layout.clientMetadata.rp("metadata_type_active_view_traffic_type");R=R?R.pings?.activeViewTracking?.identifier:this.layout.clientMetadata.rp("metadata_type_active_view_identifier");nM(this.layout.IT)&&ge(this.Dl.get(),this.layout.layoutId,{eH:h,Fx:b,listener:this,aM:R})}release(){this.BY.get().removeListener(this);fjP(this.BY.get(),this);nM(this.layout.IT)&&WH(this.Dl.get(),this.layout.layoutId)}startRendering(b){this.callback.PR(this.slot, b)}h9(b,R){Du(this,"abandon");this.callback.cR(this.slot,b,R)}Xf(b){switch(b.id){case "part2viewed":this.LR.d2("start");this.LR.d2("impression");break;case "videoplaytime25":this.LR.d2("first_quartile");break;case "videoplaytime50":this.LR.d2("midpoint");break;case "videoplaytime75":this.LR.d2("third_quartile");break;case "videoplaytime100":Du(this,"complete");xm(this.LR)&&Ov(this.LR,Infinity,!0);Mq2(this.VX.get())&&ml(this.Y,Infinity,!0);break;case "engagedview":xm(this.LR)||this.LR.d2("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:u2("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}onVolumeChange(){}Iw(){}O8(){}yK(){}onFullscreenToggled(){}j5(b){this.G||(b.Up(4)&&!b.Up(2)?ez(this.LR,"pause"):X3(b,4)<0&&!(X3(b,2)<0)&&ez(this.LR,"resume"))}F4(){}XK(b){Mq2(this.VX.get())&&ml(this.Y,b*1E3,!1);xm(this.LR)&&Ov(this.LR,b*1E3,!1)}gh(){Du(this,"swipe")}le(){this.LR.d2("active_view_measurable")}SP(){this.LR.d2("active_view_viewable")}Vf(){this.LR.d2("active_view_fully_viewable_audible_half_duration")}v9(){this.LR.d2("audio_measurable")}gG(){this.LR.d2("audio_audible")}};var YLH=class{constructor(b,R,h,K,I,N){this.BY=b;this.aH=R;this.JO=h;this.VX=K;this.Dl=I;this.s9=N}build(b,R,h,K){if(h.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.Z(K.renderingContent,yV)!==void 0)return new kAK(b,h,K,this.BY,this.aH,this.JO,this.VX,this.Dl,this.s9);R=["metadata_type_ad_placement_config"];for(const I of JB())R.push(I);if(P8(K,{Gj:R,eX:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return h.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new kAK(b,h,K,this.BY,this.aH,this.JO, this.VX,this.Dl,this.s9):new ffx(b,h,K,this.BY,this.aH,this.JO,this.VX,this.Dl);throw new FI(`Unsupported layout with type: ${K.layoutType} and client metadata: ${WF(K.clientMetadata)} in `+"PlaybackTrackingLayoutRenderingAdapterFactory.");}};g.hz=class{constructor(b,R={},h=0){this.errorCode=b;this.details=R;this.severity=h}};var etB; etB={bX:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",T4:"AUTHENTICATION_MALFORMED",IV:"AUTHENTICATION_MISSING",h7:"BAD_REQUEST",A7:"CAST_SESSION_DEVICE_MISMATCHED",FC:"CAST_SESSION_VIDEO_MISMATCHED",J7:"CAST_TOKEN_EXPIRED",Ne:"CAST_TOKEN_FAILED",r5:"CAST_TOKEN_MALFORMED",H0:"CGI_PARAMS_MALFORMED",aV:"CGI_PARAMS_MISSING",Qq:"DEVICE_FALLBACK",HU:"GENERIC_WITH_LINK_AND_CPN",a_:"ERROR_HDCP",DE:"LICENSE",o_:"VIDEO_UNAVAILABLE",bV:"FORMAT_UNAVAILABLE",dF:"GEO_FAILURE",uH:"HTML5_AUDIO_RENDERER_ERROR", vl:"GENERIC_WITHOUT_LINK",Vy:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",lH:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",S7:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",Bl:"HTML5_SPS_UMP_STATUS_REJECTED",qS:"INVALID_DRM_MESSAGE",Lr:"PURCHASE_NOT_FOUND",wy:"PURCHASE_REFUNDED",BpR:"RENTAL_EXPIRED",arv:"RETRYABLE_ERROR",cXH:"SERVER_ERROR",LeY:"SIGNATURE_EXPIRED",tYX:"STOPPED_BY_ANOTHER_PLAYBACK",k69:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",QT5:"STREAMING_NOT_ALLOWED",Pl6:"STREAM_LICENSE_NOT_FOUND", hG9:"TOO_MANY_REQUESTS",uMY:"TOO_MANY_REQUESTS_WITH_LINK",gOH:"TOO_MANY_STREAMS_PER_ENTITLEMENT",vOZ:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",ize:"VIDEO_FORBIDDEN",K_Z:"VIDEO_NOT_FOUND",l1:"BROWSER_OR_EXTENSION_ERROR"}; g.ZS={ALREADY_PINNED_ON_A_DEVICE:"Ya has descargado este v\u00eddeo en el n\u00famero m\u00e1ximo de dispositivos que permite el propietario de los derechos de autor. Tienes que eliminarlo de otro dispositivo para poder verlo en este.",DEVICE_FALLBACK:"Este v\u00eddeo no est\u00e1 disponible en este dispositivo.",GENERIC_WITH_LINK_AND_CPN:"Se ha producido un error. Vuelve a intentarlo m\u00e1s tarde. (ID de reproducci\u00f3n: $CPN) $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK",LICENSE:"Se ha producido un error de licencia con este v\u00eddeo.", VIDEO_UNAVAILABLE:"El v\u00eddeo no est\u00e1 disponible",FORMAT_UNAVAILABLE:"Este v\u00eddeo no est\u00e1 disponible en esa calidad. Vuelve a intentarlo.",GEO_FAILURE:"Este v\u00eddeo no est\u00e1 disponible en tu pa\u00eds.",HTML5_AUDIO_RENDERER_ERROR:"No se ha podido procesar el audio. Reinicia tu ordenador.",GENERIC_WITHOUT_LINK:"Se ha producido un error. Vuelve a intentarlo m\u00e1s tarde.",HTML5_NO_AVAILABLE_FORMATS_FALLBACK:"No se admite este formato de v\u00eddeo.",HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK:"Tu navegador no reconoce ninguno de los formatos de v\u00eddeo disponibles por el momento. $BEGIN_LINKHaz clic aqu\u00ed para consultar las preguntas frecuentes sobre el v\u00eddeo HTML5$END_LINK.", HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT:"Este navegador no puede reproducir este v\u00eddeo. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK",HTML5_SPS_UMP_STATUS_REJECTED:"Se ha producido un error. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK",INVALID_DRM_MESSAGE:"El mensaje espec\u00edfico del sistema DRM no es v\u00e1lido.",PURCHASE_NOT_FOUND:"Este v\u00eddeo es de pago.",PURCHASE_REFUNDED:"Te hemos devuelto el importe de este v\u00eddeo.", RENTAL_EXPIRED:"El periodo de alquiler de este v\u00eddeo ha finalizado.",CAST_SESSION_DEVICE_MISMATCHED:"El dispositivo de la transmisi\u00f3n no coincide con el solicitado.",CAST_SESSION_VIDEO_MISMATCHED:"El v\u00eddeo de la transmisi\u00f3n no coincide con el solicitado.",CAST_TOKEN_FAILED:"La transmisi\u00f3n no est\u00e1 disponible. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",CAST_TOKEN_EXPIRED:"La transmisi\u00f3n ha caducado. Actualiza la p\u00e1gina.",CAST_TOKEN_MALFORMED:"La transmisi\u00f3n no es v\u00e1lida. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.", SERVER_ERROR:"Se ha producido un error en el servidor interno. Vuelve a intentarlo m\u00e1s tarde.",STOPPED_BY_ANOTHER_PLAYBACK:"Tu cuenta est\u00e1 reproduciendo este v\u00eddeo en otra ubicaci\u00f3n. Vuelve a cargar esta p\u00e1gina para reanudar la reproducci\u00f3n.",STREAM_LICENSE_NOT_FOUND:"Se ha interrumpido la reproducci\u00f3n del v\u00eddeo. Vuelve a intentarlo.",STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED:"En un periodo de 24 horas se han utilizado demasiados dispositivos o direcciones IP.", STREAMING_NOT_ALLOWED:"No se permite la reproducci\u00f3n porque el v\u00eddeo est\u00e1 fijado a otro dispositivo.",RETRYABLE_ERROR:"Se ha producido un error temporal en el servidor. Vuelve a intentarlo m\u00e1s tarde.",TOO_MANY_REQUESTS:"Inicia sesi\u00f3n para ver este v\u00eddeo.",TOO_MANY_REQUESTS_WITH_LINK:"Haz clic en $BEGIN_LINKeste enlace$END_LINK para ver este v\u00eddeo en YouTube.",TOO_MANY_STREAMS_PER_USER:"Se ha detenido la reproducci\u00f3n porque se est\u00e1n viendo demasiados v\u00eddeos de la misma cuenta.", TOO_MANY_STREAMS_PER_ENTITLEMENT:"Se ha detenido la reproducci\u00f3n porque el v\u00eddeo se ha visto en demasiados dispositivos.",UNSUPPORTED_DEVICE:"La reproducci\u00f3n no es compatible con este dispositivo.",VIDEO_FORBIDDEN:"El acceso a este v\u00eddeo est\u00e1 prohibido.",VIDEO_NOT_FOUND:"No es posible encontrar este v\u00eddeo.",BROWSER_OR_EXTENSION_ERROR:"Se ha producido un error. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK"};var RV;{var ONx=g.zK();const b=ONx.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!b||b.length<2)RV=void 0;else{var hm=ONx.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);RV=hm&&hm.length===6?Number(hm[5].replace("_",".")):0}}var Yr=RV,Vu=Yr>=0;g.Ke=class extends vi{j(b,R,h,K,I){return super.j(b,R,h,K,I)}};var om={FAIRPLAY:"fairplay",PLAYREADY:"playready",WIDEVINE:"widevine",CLEARKEY:null,FLASHACCESS:null,UNKNOWN:null,WIDEVINE_CLASSIC:null};var Vh=class{constructor(b=0,R=0,h="SPATIAL_AUDIO_TYPE_NONE",K=!1,I,N,p="AUDIO_QUALITY_UNKNOWN",l=!1){this.sampleRate=b;this.numChannels=R;this.spatialAudioType=h;this.G=K;this.X=I;this.V=N;this.audioQuality=p;this.Y=l}isMultiChannelAudio(){return this.numChannels>2}};var FJ={WIDTH:{name:"width",video:!0,valid:640,PZ:99999},HEIGHT:{name:"height",video:!0,valid:360,PZ:99999},FRAMERATE:{name:"framerate",video:!0,valid:30,PZ:9999},BITRATE:{name:"bitrate",video:!0,valid:3E5,PZ:2E9},EOTF:{name:"eotf",video:!0,valid:"bt709",PZ:"catavision"},CHANNELS:{name:"channels",video:!1,valid:2,PZ:99},CRYPTOBLOCKFORMAT:{name:"cryptoblockformat",video:!0,valid:"subsample",PZ:"invalidformat"},DECODETOTEXTURE:{name:"decode-to-texture",video:!0,valid:"false",PZ:"nope"},AV1_CODECS:{name:"codecs", video:!0,valid:"av01.0.05M.08",PZ:"av99.0.05M.08"},EXPERIMENTAL:{name:"experimental",video:!0,valid:"allowed",PZ:"invalid"},TUNNELMODE:{name:"tunnelmode",video:!0,valid:"true",PZ:"false"}};var QuH=["h","H"],x4H=["9","("],m4e=["9h","(h"],PkK=["8","*"],ZNx=["a","A"],c4x=["o","O"],uLB=["m","M"],XVx=["mac3","MAC3"],V6K=["meac3","MEAC3"],WvK={h:QuH,H:QuH,["9"]:x4H,["("]:x4H,["9h"]:m4e,["(h"]:m4e,["8"]:PkK,["*"]:PkK,a:ZNx,A:ZNx,o:c4x,O:c4x,m:uLB,M:uLB,mac3:XVx,MAC3:XVx,meac3:V6K,MEAC3:V6K},CkT=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),BzD=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var rX={["0"]:"f",["160"]:"h",["133"]:"h",["134"]:"h",["135"]:"h",["136"]:"h",["137"]:"h",["264"]:"h",["266"]:"h",["138"]:"h",["298"]:"h",["299"]:"h",["304"]:"h",["305"]:"h",["214"]:"h",["216"]:"h",["374"]:"h",["375"]:"h",["140"]:"a",["141"]:"a",["327"]:"sa",["258"]:"m",["380"]:"mac3",["328"]:"meac3",["161"]:"H",["142"]:"H",["143"]:"H",["144"]:"H",["222"]:"H",["223"]:"H",["145"]:"H",["224"]:"H",["225"]:"H",["146"]:"H",["226"]:"H",["227"]:"H",["147"]:"H",["384"]:"H",["376"]:"H",["385"]:"H",["377"]:"H", ["149"]:"A",["261"]:"M",["381"]:"MAC3",["329"]:"MEAC3",["598"]:"9",["278"]:"9",["242"]:"9",["243"]:"9",["244"]:"9",["775"]:"9",["776"]:"9",["777"]:"9",["778"]:"9",["779"]:"9",["780"]:"9",["781"]:"9",["782"]:"9",["783"]:"9",["247"]:"9",["248"]:"9",["353"]:"9",["355"]:"9",["356"]:"9",["271"]:"9",["577"]:"9",["313"]:"9",["579"]:"9",["272"]:"9",["302"]:"9",["303"]:"9",["407"]:"9",["408"]:"9",["308"]:"9",["315"]:"9",["330"]:"9h",["331"]:"9h",["332"]:"9h",["333"]:"9h",["334"]:"9h",["335"]:"9h",["336"]:"9h", ["337"]:"9h",["338"]:"so",["600"]:"o",["250"]:"o",["251"]:"o",["774"]:"o",["194"]:"*",["195"]:"*",["220"]:"*",["221"]:"*",["196"]:"*",["197"]:"*",["279"]:"(",["280"]:"(",["317"]:"(",["318"]:"(",["273"]:"(",["274"]:"(",["357"]:"(",["358"]:"(",["275"]:"(",["359"]:"(",["360"]:"(",["276"]:"(",["583"]:"(",["584"]:"(",["314"]:"(",["585"]:"(",["561"]:"(",["277"]:"(",["361"]:"(h",["362"]:"(h",["363"]:"(h",["364"]:"(h",["365"]:"(h",["366"]:"(h",["591"]:"(h",["592"]:"(h",["367"]:"(h",["586"]:"(h",["587"]:"(h", ["368"]:"(h",["588"]:"(h",["562"]:"(h",["409"]:"(",["410"]:"(",["411"]:"(",["412"]:"(",["557"]:"(",["558"]:"(",["394"]:"1",["395"]:"1",["396"]:"1",["397"]:"1",["398"]:"1",["399"]:"1",["720"]:"1",["721"]:"1",["400"]:"1",["401"]:"1",["571"]:"1",["402"]:"1",["694"]:"1h",["695"]:"1h",["696"]:"1h",["697"]:"1h",["698"]:"1h",["699"]:"1h",["700"]:"1h",["701"]:"1h",["702"]:"1h",["703"]:"1h",["386"]:"3",["387"]:"w",["406"]:"6",["787"]:"1",["788"]:"1",["548"]:"1e",["549"]:"1e",["550"]:"1e",["551"]:"1e",["809"]:"1e", ["810"]:"1e",["552"]:"1e",["811"]:"1e",["812"]:"1e",["553"]:"1e",["813"]:"1e",["814"]:"1e",["554"]:"1e",["815"]:"1e",["816"]:"1e",["555"]:"1e",["817"]:"1e",["818"]:"1e",["572"]:"1e",["556"]:"1e",["645"]:"(",["646"]:"(",["647"]:"(",["648"]:"(",["649"]:"(",["650"]:"(",["651"]:"(",["652"]:"(",["653"]:"(",["654"]:"(",["655"]:"(",["656"]:"(",["657"]:"(",["658"]:"(",["659"]:"(",["660"]:"(",["661"]:"(",["662"]:"(",["663"]:"(",["664"]:"(",["665"]:"(",["666"]:"(",["667"]:"(",["668"]:"(",["669"]:"(",["670"]:"(", ["671"]:"(",["672"]:"(",["673"]:"(",["674"]:"(h",["675"]:"(h",["676"]:"(h",["677"]:"(h",["678"]:"(h",["679"]:"(h",["680"]:"(h",["681"]:"(h",["682"]:"(h",["683"]:"(h",["684"]:"(h",["685"]:"(h",["686"]:"(h",["687"]:"(h",["688"]:"A",["689"]:"A",["690"]:"A",["691"]:"MEAC3",["773"]:"i",["806"]:"I",["805"]:"I",["829"]:"9",["830"]:"9",["831"]:"9",["832"]:"9",["833"]:"9",["834"]:"9",["835"]:"9",["836"]:"9",["892"]:"9",["893"]:"9",["837"]:"9",["838"]:"9",["839"]:"9",["840"]:"9",["841"]:"(",["842"]:"(",["843"]:"(", ["844"]:"(",["845"]:"(",["846"]:"(",["847"]:"(",["848"]:"(",["894"]:"(",["895"]:"(",["849"]:"(",["850"]:"(",["851"]:"(",["852"]:"(",["865"]:"9",["866"]:"9",["867"]:"9",["868"]:"9",["869"]:"9",["870"]:"9",["871"]:"9",["872"]:"9",["896"]:"9",["897"]:"9",["873"]:"9",["874"]:"9",["875"]:"9",["876"]:"9",["877"]:"(",["878"]:"(",["879"]:"(",["880"]:"(",["881"]:"(",["882"]:"(",["883"]:"(",["884"]:"(",["898"]:"(",["899"]:"(",["885"]:"(",["886"]:"(",["887"]:"(",["888"]:"(",["900"]:"2",["901"]:"2",["902"]:"2", ["903"]:"2",["904"]:"2",["905"]:"2",["906"]:"2",["907"]:"2",["908"]:"2"};var C2x={STEREO_LAYOUT_UNKNOWN:0,STEREO_LAYOUT_LEFT_RIGHT:1,STEREO_LAYOUT_TOP_BOTTOM:2};var nd2={u5R:0,kW:124,tf:144,nZ5:220,PvO:240,Y9e:340,G6Z:360,Tp6:480,XY5:588,Ir6:608,MYO:720,yXO:740,UX:1080,Cr:1100,R4:1440,QH5:2160,hOR:9999,0:"QUALITY_ORDINAL_UNKNOWN",124:"QUALITY_ORDINAL_144P_SAVER",144:"QUALITY_ORDINAL_144P",220:"QUALITY_ORDINAL_240P_SAVER",240:"QUALITY_ORDINAL_240P",340:"QUALITY_ORDINAL_360P_SAVER",360:"QUALITY_ORDINAL_360P",480:"QUALITY_ORDINAL_480P",588:"QUALITY_ORDINAL_608P_SAVER",608:"QUALITY_ORDINAL_608P",720:"QUALITY_ORDINAL_720P",740:"QUALITY_ORDINAL_720P_ENHANCED", 1080:"QUALITY_ORDINAL_1080P",1100:"QUALITY_ORDINAL_1080P_ENHANCED",1440:"QUALITY_ORDINAL_1440P",2160:"QUALITY_ORDINAL_2160P",9999:"QUALITY_ORDINAL_HIGHRES"};g.M6x={Iu:"auto",Mn5:"tiny",XS:"light",UJJ:"small",zN:"medium",TN:"large",T5:"hd720",Pl:"hd1080",n1:"hd1440",G5:"hd2160",Yz:"hd2880",hK:"highres",UNKNOWN:"unknown"};var l9,rh2;g.m6={auto:0,tiny:144,light:144,small:240,medium:360,large:480,hd720:720,hd1080:1080,hd1440:1440,hd2160:2160,hd2880:2880,highres:4320};l9={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"}; rh2={QUALITY_ORDINAL_UNKNOWN:0,QUALITY_ORDINAL_144P_SAVER:124,QUALITY_ORDINAL_144P:144,QUALITY_ORDINAL_240P_SAVER:220,QUALITY_ORDINAL_240P:240,QUALITY_ORDINAL_360P_SAVER:340,QUALITY_ORDINAL_360P:360,QUALITY_ORDINAL_480P:480,QUALITY_ORDINAL_608P_SAVER:588,QUALITY_ORDINAL_608P:608,QUALITY_ORDINAL_720P:720,QUALITY_ORDINAL_720P_ENHANCED:740,QUALITY_ORDINAL_1080P:1080,QUALITY_ORDINAL_1080P_ENHANCED:1100,QUALITY_ORDINAL_1440P:1440,QUALITY_ORDINAL_2160P:2160,QUALITY_ORDINAL_HIGHRES:9999};var xb="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");var C4=class{constructor(b,R,h,K,I,N,p,l,a,v){this.width=b;this.height=R;this.X=l;this.quality=N||P5(b,R);this.qualityOrdinal=g.m6[this.quality];this.fps=h||0;this.stereoLayout=!I||K!=null&&K!=="UNKNOWN"&&K!=="RECTANGULAR"?0:I;this.projectionType=K?K==="EQUIRECTANGULAR"&&I===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":K:"UNKNOWN";(b=p)||(h=g.m6[this.quality],h===0?b="Autom\u00e1tica":(b=this.projectionType,R=this.fps,b=h.toString()+(b==="EQUIRECTANGULAR"||b==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||b==="MESH"? "s":"p")+(R>55?"60":R>49?"50":R>39?"48":"")));this.qualityLabel=b;this.G=a||"";this.primaries=v||""}Y(){return this.fps>32}isHdr(){return this.G==="smpte2084"||this.G==="arib-std-b67"}};var MD=class{constructor(b,R,h={}){this.id=b;this.mimeType=R;h.nz>0||(h.nz=16E3);Object.assign(this,h);[this.itag,this.Y]=this.id.split(";");this.containerType=ZA(R);this.U9=rX[this.itag]||""}D(){return this.video}K(){return this.audio}Qn(){return this.containerType===2}V(){return this.U9==="9"||this.U9==="("||this.U9==="9h"||this.U9==="(h"}G(){return this.U9==="1"||this.U9==="1h"||L4&&this.U9==="1e"}J(){return this.U9==="mac3"||this.U9==="meac3"||this.U9==="m"||this.U9==="i"||kSH(this)}isEncrypted(){return!!this.contentProtection}Pr(){return!!this.audio}fT(){return!!this.video}X(){return this.mimeType=== "application/x-mpegURL"}},L4=!1;var XXP=class extends g.NU{constructor(b,R,h,K){super();this.QB=b;this.start=R;this.end=h;this.isActive=K;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.xu={error:()=>{!this.HY()&&this.isActive&&this.publish("error",this)}, updateend:()=>{!this.HY()&&this.isActive&&this.publish("updateend",this)}}; this.QB.vZ(this.xu);this.rr=this.isActive}appendBuffer(b,R,h){if(this.QB.Cg()!==this.appendWindowStart+this.start||this.QB.j9()!==this.appendWindowEnd+this.start||this.QB.Kz()!==this.timestampOffset+this.start)this.QB.supports(1),this.QB.j1(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.QB.yj(this.timestampOffset+this.start);this.QB.appendBuffer(b,R,h)}abort(){this.QB.abort()}remove(b,R){this.QB.remove(b+this.start,R+this.start)}removeAll(){this.remove(this.appendWindowStart, this.appendWindowEnd)}clear(){this.QB.clear()}j1(b,R){this.appendWindowStart=b;this.appendWindowEnd=R}JF(){return this.timestampOffset+this.start}Cg(){return this.appendWindowStart}j9(){return this.appendWindowEnd}yj(b){this.timestampOffset=b}Kz(){return this.timestampOffset}RY(b=!1){b=this.QB.RY(b);return Ic(b,this.start,this.end)}TI(){return this.QB.TI()}Ih(){return this.QB.Ih()}nC(){return this.QB.nC()}Ph(){return this.QB.Ph()}QC(){this.QB.QC()}U2(b){return this.QB.U2(b)}aK(){return this.QB.aK()}fB(){return this.QB.fB()}cz(b, R,h){this.QB.cz(b,R,h)}sG(b,R,h){this.QB.sG(b,R,h)}S_(b,R){return this.QB.S_(b,R)}supports(b){return this.QB.supports(b)}U5(){return this.QB.U5()}isView(){return!0}U1(){return this.QB.U1()?this.isActive:!1}isLocked(){return this.rr&&!this.isActive}RT(b){b=this.QB.RT(b);b.vw=`${this.start}-${this.end}`;return b}WX(){return this.QB.WX()}Yr(){return this.QB.Yr()}Vr(){return this.QB.Vr()}X5(){this.QB.jG(this.xu);super.X5()}};var b8=!1;var cce=class extends g.NU{constructor(b,R,h,K,I,N){super();this.il=b;this.Tf=R;this.id=h;this.containerType=K;this.U9=I;this.fT=N;this.rq=this.Cn=this.KT=null;this.nB=!1;this.appendWindowStart=this.timestampOffset=0;this.QN=DA([],[]);this.vn=!1;this.UB=[];this.Re=FS?[]:void 0;this.handler=p=>this.publish(p.type,this); this.il?.addEventListener&&(this.il.addEventListener("updateend",this.handler),this.il.addEventListener("error",this.handler))}appendBuffer(b,R,h){this.vn=!1;h&&(this.Cn=h);b.length&&(this.il?.appendBuffer?this.il.appendBuffer(b):this.il?this.il.append(b):this.Tf&&this.Tf.webkitSourceAppend(this.id,b));R&&(R.isEncrypted()&&(this.rq=this.Cn),R.type===3&&(this.KT=R),this.UB.push(R.vR()),this.UB.length>4&&this.UB.shift());this.Re&&(this.Re.length>=2||b.length>1048576?delete this.Re:this.Re.push(b))}abort(){try{this.il? this.il.abort():this.Tf&&this.Tf.webkitSourceAbort(this.id)}catch(b){HEH&&g.kJ(new g.A$(`Error while abort the source buffer: ${b.name}, ${b.message}`))}this.Cn=this.KT=null}remove(b,R,h){this.vn=!1;this.il?.remove&&(h&&h({b:pw(this.RY()),s:b,e:R}),this.il.remove(b,R))}removeAll(){this.remove(this.Cg(),this.j9())}clear(){this.nC()||(this.abort(),this.removeAll(),this.rq=this.Cn=this.KT=null,this.appendWindowStart=this.timestampOffset=0,this.QN=DA([],[]),this.vn=!1,this.Re=FS?[]:void 0,this.nB=!0)}Cg(){return b8&& this.fT?this.appendWindowStart:this.il?.appendWindowStart||0}j9(){return this.il?.appendWindowEnd||0}j1(b,R){this.il&&(b8&&this.fT?(this.appendWindowStart=b,this.il.appendWindowEnd=R):b>this.Cg()?(this.il.appendWindowEnd=R,this.il.appendWindowStart=b):(this.il.appendWindowStart=b,this.il.appendWindowEnd=R))}JF(){return this.timestampOffset}yj(b){b8?this.timestampOffset=b:this.supports(1)&&(this.il.timestampOffset=b)}Kz(){return b8?this.timestampOffset:this.supports(1)?this.il.timestampOffset:0}RY(b= !1){if(b)return this.vn||this.TI()||(this.QN=this.RY(!1),this.vn=!0),this.QN;try{return this.il?this.il.buffered:this.Tf?this.Tf.webkitSourceBuffered(this.id):DA([0],[Infinity])}catch(R){return DA([],[])}}TI(){return this.il?.updating||!1}nC(){return this.nB}Ph(){return!this.nB&&this.TI()}QC(){this.nB=!1}U2(b){const R=b?.U9;b=b?.containerType;return!R&&!b||R===this.U9&&b===this.containerType}aK(){return this.Cn}fB(){return this.rq}S_(b,R){return this.containerType!==b||this.U9!==R}cz(b,R,h){if(this.containerType!== b||h&&this.S_(b,h))this.supports(4),NS()&&this.il.changeType(R),h&&(this.U9=h);this.containerType=b}sG(b,R,h){this.containerType&&this.S_(b,R)&&NS()&&this.il.changeType(h);this.containerType=b;this.U9=R}U5(){return this.KT}isView(){return!1}supports(b){switch(b){case 1:return this.il?.timestampOffset!==void 0;case 0:return!!this.il?.appendBuffer;case 2:return!!this.il?.remove;case 3:return!(!this.il?.addEventListener||!this.il?.removeEventListener);case 4:return!(!this.il||!this.il.changeType);default:return!1}}U1(){return!this.TI()}isLocked(){return!1}RT(b){b.to= this.Kz();b.up=this.TI();b.aw=`${(this.il?.appendWindowStart||0).toFixed(3)}-${(this.il?.appendWindowEnd||Infinity).toFixed(3)}`;return b}Ih(){return this.il?.writeHead||0}WX(){const b={};for(let R=0;R{}); this.G?.clear();this.Y?.clear()}G6(){this.G?.QC();this.Y?.QC();this.D=!1}nC(){return this.Y?.nC()||this.G?.nC()}U2(b,R){return!!this.G&&!!this.Y&&this.G.U2(R)&&this.Y.U2(b)}gp(){return!!this.cY&&this.cY.streaming===!1}},ac=!1;var tn=class{constructor(){this.VJ=this.f6=NKT;this.promise=new g.Pj((b,R)=>{this.f6=b;this.VJ=R})}then(b,R){return this.promise.then(b,R)}resolve(b){this.f6(b)}reject(b){this.VJ(b)}};var r4B=class extends g.N3{constructor(){super();this.B1=!1;this.yV=null;this.PH=this.KR=!1;this.gp=new g.TD;this.mediaKeys=this.z6=null;g.n(this,this.gp)}SY(){return this.yV}activate(b){let R="";b&&(CIe(this,b),R=b.yV);if(!this.E8()||R)R&&this.E8()!==R&&(this.xZ(R),delete this.Y,this.V&&(this.V.reject(),delete this.V),!window.MediaSource&&window.ManagedMediaSource&&this.Zl(!!b?.X())),b&&b.G||this.load(),this.PH||(this.addEventListener("volumechange",this.Sn),this.PH=!0)}Uz(b,R){if(this.Y)if(wb&& this.Y.J()&&!this.Y.U2(b,R))vz(this,{l:"megms",sr:this.z6?.yk()}),rcB(this),this.stopVideo();else return this.cY=this.Y,this.Y=void 0,this.cY;b=window.MediaSource?new Bz(this,new window.MediaSource,!1):window.ManagedMediaSource?new Bz(this,new window.ManagedMediaSource,!1):window.WebKitMediaSource?new Bz(this,new window.WebKitMediaSource,!1):new Bz(this,void 0,!1);this.activate(b.V);this.cY=b;this.B1=!1;return b}FM(b){this.Y=b}playVideo(){this.isEnded()&&this.seekTo(0);!this.E8()&&this.yV&&(g.X(Error("playVideo without src")), this.xZ(this.yV.yV),this.yV.G||this.load());const b=this.play();this.z6?.US()||Vu&&(Yr||0)>=7&&(!b||this.z6?.N("mweb_ios_allow_playback_workaround_when_ready"))&&sI2(this,()=>{g.QB(()=>{LAe(this,this.getCurrentTime(),0)},500)}); return b}seekTo(b){this.X()>0&&(Vu&&Yr<4&&(b=Math.max(.1,b)),this.setCurrentTime(b))}Jb(){if(!this.Y&&this.cY)if(this.cY.D)try{vz(this,{l:"mer",sr:this.z6?.yk(),rs:this.cY.X()}),this.cY.clear(),this.FM(this.cY),this.cY=void 0}catch(b){const R=new g.A$(`Error while clearing Media Source in MediaElement: ${b.name}, ${b.message}`);g.X(R);this.stopVideo()}else this.stopVideo()}stopVideo(){if(!this.Y)if(this.cY?.G6(),Ln){if(!this.V){var b=new tn;b.then(void 0,()=>{}); this.V=b;BhP&&this.pause();g.QB(()=>{this.V===b&&(dV(this),b.resolve())},200)}}else dV(this)}U_(){const b=this.w4(); return sK(b)&&this.getDuration()?hk(b,this.getCurrentTime()):0}oK(){const b=this.getDuration();return b===Infinity?1:b?this.U_()/b:0}RT(){try{const b=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:pw(this.S(),",",3),vbu:pw(this.w4()),vbs:pw(this.K()),vpa:`${+this.isPaused()}`,vsk:`${+this.isSeeking()}`,ven:`${+this.isEnded()}`,vpr:`${this.getPlaybackRate()}`,vrs:`${this.X()}`,vns:`${this.NJ()}`,vec:`${this.Oi()}`,vemsg:this.e6(),vvol:`${this.getVolume()}`, vdom:`${+this.RH()}`,vsrc:`${+!!this.E8()}`,vw:`${b.width}`,vh:`${b.height}`}}catch{return{}}}hasError(){return this.Oi()>0}addEventListener(b,R){this.gp.listen(b,R,!1,this);this.CR(b)}removeEventListener(b,R){this.gp.Ac(b,R,!1,this)}dispatchEvent(b){if(this.V&&b.type==="pause")return!1;if(wb){var R=b.G?.timeStamp||Infinity;R=R>performance.now()?R-Date.now()+performance.now():R;const h=this.Y||this.cY;if(h?.nC()||R<=(h?.K||0))return vz(this,{l:"mede",sr:this.z6?.yk(),et:b.type}),!1;if(this.B1)return vz(this, {l:"medes",et:b.type}),h&&b.type==="seeking"&&(h.K=performance.now(),this.B1=!1),!1}return this.gp.dispatchEvent(b)}fR(){this.KR=!1}wp(){this.KR=!0;this.U(!0)}Sn(){this.KR&&!this.JX()&&this.U(!0)}equals(b){return!!b&&b.hO()===this.hO()}X5(){this.PH&&this.removeEventListener("volumechange",this.Sn);Ln&&dV(this);super.X5()}},Ln=!1,BhP=!1,wb=!1,FA3=!1;var $$;g.tk=class{constructor(b,R=null,h=null){this.gt=R;this.seekSource=h;this.state=b||64}G(b){return!!(this.state&b)}isPaused(){return this.G(4)}isPlaying(){return this.G(8)&&!this.G(512)&&!this.G(64)&&!this.G(2)}isOrWillBePlaying(){return this.G(8)&&!this.G(2)&&!this.G(1024)}Y(){return this.state===8}isCued(){return this.G(64)&&!this.G(8)&&!this.G(4)}isBuffering(){return this.G(1)&&!this.G(2)}isError(){return this.G(128)}isSuspended(){return this.G(512)}bW(){return this.G(64)&&this.G(4)}toString(){return`PSt.${this.state.toString(16)}`}}; $$={BUFFERING:"buffering-mode",CUED:"cued-mode",ENDED:"ended-mode",PAUSED:"paused-mode",PLAYING:"playing-mode",SEEKING:"seeking-mode",UNSTARTED:"unstarted-mode"};var LTT=class extends g.N3{constructor(b,R,h,K,I,N,p,l,a,v,B,H,q,d,t){super();this.mF=b;this.slot=R;this.layout=h;this.aH=K;this.Dl=I;this.s9=N;this.BY=p;this.BR=l;this.JO=a;this.rz=v;this.position=B;this.V=H;this.VX=q;this.ji=d;this.context=t;this.Ch=!0;this.X=!1;this.kO="not_rendering";this.G=!1;b=this.layout.clientMetadata.rp("metadata_type_ad_placement_config");this.LR=new Fu(h.IT,this.aH,b,h.layoutId);b=Wz(this)?.progressCommands||[];this.Y=new FZ(a,b,h.layoutId,()=>this.Dp())}UW(){return this.slot}QV(){return this.layout}init(){const b= this.layout.clientMetadata.rp("metadata_type_video_length_seconds"),R=this.layout.clientMetadata.rp("metadata_type_active_view_traffic_type"); nM(this.layout.IT)&&ge(this.Dl.get(),this.layout.layoutId,{eH:R,Fx:b,listener:this});E$(this.aH.get(),this);this.A5()}wm(){}release(){nM(this.layout.IT)&&WH(this.Dl.get(),this.layout.layoutId);TQ(this.aH.get(),this);this.Es()}aZ(){}W9(){}startRendering(b){if(b.layoutId!==this.layout.layoutId){this.mF.ZP(this.slot,b,new FI("Tried to start rendering an unknown layout, this adapter "+`requires LayoutId: ${this.layout.layoutId}`+`and LayoutType: ${this.layout.layoutType}`,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"), "ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED");var R=!1}else R=!0;R&&(this.kO="rendering_start_requested",this.rz(-1),this.L4(b),this.E1(!1))}PR(b,R){R.layoutId===this.layout.layoutId&&(this.kO="rendering",this.G=this.BY.get().isMuted()||this.BY.get().getVolume()===0,this.d2("impression"),this.d2("start"),this.BY.get().isMuted()&&(Sr(this,"mute"),b=Wz(this)?.muteCommands||[],Id(this.JO.get(),b,this.layout.layoutId)),this.BY.get().isFullscreen()&&(this.zf("fullscreen"),b=Wz(this)?.fullscreenCommands|| [],Id(this.JO.get(),b,this.layout.layoutId)),b=this.BR.get(),b.X&&!b.Y&&(b.S=!1,b.Y=!0,b.actionType!=="ad_to_video"&&(XV("pbs",void 0,b.actionType),g.cg("finalize_all_timelines")&&X9x(b.actionType))),this.rz(1),this.A$(R),R=Wz(this)?.impressionCommands||[],Id(this.JO.get(),R,this.layout.layoutId))}r8(b,R,h){this.S={RN:3,Bs:b==="load_timeout"?402:400,errorMessage:R.message};this.d2("error");b=Wz(this)?.errorCommands||[];Id(this.JO.get(),b,this.layout.layoutId);this.mF.ZP(this.slot,this.layout,R,h)}L8(b, R=!1){if(this.kO==="rendering"){Ov(this.LR,b*1E3,R);hyD(this,b*1E3,R);var h=this.Dp();h&&(h/=1E3,(b>=h*.25||R)&&this.d2("first_quartile"),(b>=h*.5||R)&&this.d2("midpoint"),(b>=h*.75||R)&&this.d2("third_quartile"),this.VX.get().A.L().experiments.O9("enable_progress_command_flush_on_kabuki")?ml(this.Y,b*1E3,R):ml(this.Y,b*1E3,sEe(this)?R:!1))}}kX(){return od(this.s9.get(),1)?.clientPlaybackNonce||""}sF(b,R){b.layoutId!==this.layout.layoutId?this.mF.ZP(this.slot,b,new FI("Tried to stop rendering an unknown layout, this adapter "+ `requires LayoutId: ${this.layout.layoutId}`+`and LayoutType: ${this.layout.layoutType}`,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):R()}cR(b,R,h){if(R.layoutId===this.layout.layoutId)switch(this.kO="not_rendering",this.layoutExitReason=void 0,(b=h!=="normal"||this.position+1===this.V)&&this.E1(b),this.J6(h),this.rz(0),h){case "abandoned":Qf(this.LR,"impression")&&(h=Wz(this)?.abandonCommands||[],Id(this.JO.get(),h,this.layout.layoutId));break;case "normal":h= Wz(this)?.completeCommands||[];Id(this.JO.get(),h,this.layout.layoutId);break;case "skipped":h=Wz(this)?.skipCommands||[],Id(this.JO.get(),h,this.layout.layoutId)}}XE(){return this.layout.layoutId}W5(){return this.S}le(){if(this.kO==="rendering"){this.LR.d2("active_view_measurable");var b=Wz(this)?.activeViewMeasurableCommands||[];Id(this.JO.get(),b,this.layout.layoutId)}}Vf(){if(this.kO==="rendering"){this.LR.d2("active_view_fully_viewable_audible_half_duration");var b=Wz(this)?.activeViewFullyViewableAudibleHalfDurationCommands|| [];Id(this.JO.get(),b,this.layout.layoutId)}}SP(){if(this.kO==="rendering"){this.LR.d2("active_view_viewable");var b=Wz(this)?.activeViewViewableCommands||[];Id(this.JO.get(),b,this.layout.layoutId)}}gG(){if(this.kO==="rendering"){this.LR.d2("audio_audible");var b=Wz(this)?.activeViewAudioAudibleCommands||[];Id(this.JO.get(),b,this.layout.layoutId)}}v9(){if(this.kO==="rendering"){this.LR.d2("audio_measurable");var b=Wz(this)?.activeViewAudioMeasurableCommands||[];Id(this.JO.get(),b,this.layout.layoutId)}}E1(b){this.BR.get().E1(this.layout.clientMetadata.rp("metadata_type_ad_placement_config").kind, b,this.position,this.V,!1)}onFullscreenToggled(b){this.kO==="rendering"&&(b?(this.zf("fullscreen"),b=Wz(this)?.fullscreenCommands||[],Id(this.JO.get(),b,this.layout.layoutId)):(this.zf("end_fullscreen"),b=Wz(this)?.endFullscreenCommands||[],Id(this.JO.get(),b,this.layout.layoutId)))}onVolumeChange(){if(this.kO==="rendering")if(this.BY.get().isMuted()){Sr(this,"mute");var b=Wz(this)?.muteCommands||[];Id(this.JO.get(),b,this.layout.layoutId)}else Sr(this,"unmute"),b=Wz(this)?.unmuteCommands||[],Id(this.JO.get(), b,this.layout.layoutId)}O8(){}yK(){}Iw(){}Xf(){}gh(){}zf(b){this.LR.zf(b,!this.G)}d2(b){this.LR.d2(b,!this.G)}};var aeP=class extends LTT{constructor(b){super(b.mF,b.slot,b.ph,b.aH,b.Dl,b.s9,b.BY,b.BR,b.JO,b.rz,b.K8,b.NN,b.VX,b.ji,b.context);this.xd=!0;this.qq=this.tW=0;this.IF=xs(()=>{this.mF.PR(this.slot,this.layout)}); this.Op=b.Op;this.jz=b.jz;this.JD=xs(()=>{this.kO!=="rendering_stop_requested"&&this.jz(this);this.TY()}); this.timer=new g.IG(200);this.timer.listen("tick",()=>{this.FX()}); g.n(this,this.timer)}TY(){this.layoutExitReason?this.mF.cR(this.slot,this.layout,this.layoutExitReason):DvD(this)}A5(){}Es(){var b=this.aH.get();b.lS===this&&(b.lS=null);this.timer.stop()}aZ(){this.timer.stop();bp2(this)}W9(){leq(this);RyD(this)}Dp(){return this.QV().clientMetadata.rp("METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}V3(){return this.tW/1E3}h9(b,R){this.sF(b,()=>{this.kO!=="rendering_stop_requested"&&(this.kO="rendering_stop_requested",this.layoutExitReason=R,$9H(this,R), this.timer.stop())})}FX(){const b=Date.now(),R=b-this.qq; this.qq=b;this.tW+=R;this.tW>=this.Dp()?(this.tW=this.Dp(),this.L8(this.tW/1E3,!0),Jk(this,this.tW),this.JD()):(this.L8(this.tW/1E3),Jk(this,this.tW))}j5(b){if(this.kO!=="not_rendering"){b=Ie3(this,b);var R=this.BY.get().getPresentingPlayerType()===2;this.kO==="rendering_start_requested"?R&&wt(b)&&this.IF():R?b.Up(2)?u2("Receive player ended event during MediaBreak",this.UW(),this.QV()):NAB(this,b):this.H7()}}L4(){pQH(this);e1(this.BY.get());this.aH.get().lS=this;cI("pbp")||cI("pbs")||XV("pbp");cI("pbp", "watch")||cI("pbs","watch")||XV("pbp",void 0,"watch");this.IF()}A$(b){this.BR.get();var R=b.clientMetadata.rp("metadata_type_ad_placement_config").kind,h=this.position===0;b=b.clientMetadata.rp("metadata_type_linked_in_player_layout_type");b={adBreakType:EK(R),adType:sYx(b)};let K=void 0;h?R!=="AD_PLACEMENT_KIND_START"&&(K="video_to_ad"):K="ad_to_ad";mv("ad_mbs",void 0,K);g.PI(b,K);leq(this)}H7(){this.JD()}J6(){}F4(){}};var BAx=class extends LTT{TY(){this.kO!=="rendering_stop_requested"&&this.jz(this);this.layoutExitReason?this.mF.cR(this.slot,this.layout,this.layoutExitReason):DvD(this)}constructor(b){super(b.callback,b.slot,b.ph,b.aH,b.Dl,b.s9,b.BY,b.BR,b.JO,b.rz,b.K8,b.NN,b.VX,b.ji,b.context);this.adCpn="";this.FT=this.jF=0;this.IF=xs(()=>{this.mF.PR(this.slot,this.layout)}); this.JD=xs(()=>{this.TY()}); this.DQ=b.DQ;this.xs=b.xs;this.Ma=b.Ma;this.Op=b.Op;this.vr=b.vr;this.jz=b.jz;pM(this.VX.get(),"html5_disable_media_load_timeout")||(this.Xp=new g.bI(()=>{this.r8("load_timeout",new FI("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); b=CJ(this.VX.get());const R=MI(this.VX.get());b&&R&&(this.lc=new g.bI(()=>{const h=this.layout.clientMetadata.rp("metadata_type_preload_player_vars");h&&this.xs.get().A.preloadVideoByPlayerVars(h,2,300)}))}H7(){this.JD()}j5(b){this.pJ(b)}A5(){this.QV().clientMetadata.rp("metadata_type_player_bytes_callback_ref").current=this; this.shrunkenPlayerBytesConfig=this.QV().clientMetadata.rp("metadata_type_shrunken_player_bytes_config")}Es(){this.QV().clientMetadata.rp("metadata_type_player_bytes_callback_ref").current=null;this.KN&&this.Ma.get().removeCueRange(this.KN);this.KN=void 0;this.Xp?.dispose();this.lc&&this.lc.dispose()}L4(b){var R=b.clientMetadata.rp("metadata_type_ad_placement_config");R=CJ(this.VX.get(),R);var h=MI(this.VX.get());if(R&&h){h=b.clientMetadata.rp("metadata_type_preload_player_vars");var K=this.VX.get(); K=g.fg(K.A.L().experiments,"html5_preload_wait_time_secs");h&&this.lc&&this.lc.start(K*1E3)}h=b.clientMetadata.rp("metadata_type_ad_video_id");K=b.clientMetadata.rp("metadata_type_legacy_info_card_vast_extension");h&&K&&this.vr.get().A.L().SY.add(h,{k6:K});(h=b.clientMetadata.rp("metadata_type_sodar_extension_data"))&&rtx(this.DQ.get(),h);y6e(this.BY.get(),!1);pQH(this);R?(h=this.xs.get(),b=b.clientMetadata.rp("metadata_type_player_vars"),h.A.loadVideoByPlayerVars(b,!1,2)):j1(this.xs.get(),b.clientMetadata.rp("metadata_type_player_vars")); this.Xp?.start();R||this.xs.get().A.playVideo(2)}A$(){this.Xp?.stop();this.xl();(this.adCpn=od(this.s9.get(),2)?.clientPlaybackNonce||"")||u2("Media layout confirmed started, but ad CPN not set.");UT(this.Op.get(),"onAdStart",this.adCpn);this.jF=Date.now()}Dp(){return od(this.s9.get(),2)?.EK}cF(){this.LR.zf("clickthrough")}h9(b,R){this.sF(b,()=>{this.kO!=="rendering_stop_requested"&&(this.kO="rendering_stop_requested",this.layoutExitReason=R,$9H(this,R),this.Xp?.stop(),this.lc&&this.lc.stop(),y6e(this.BY.get(), !0),this.shrunkenPlayerBytesConfig?.shouldRequestShrunkenPlayerBytes&&this.BY.get().zU(!1))})}onCueRangeEnter(b){b!==this.KN?u2("Received CueRangeEnter signal for unknown layout.",this.UW(),this.QV(),{cueRangeId:b}):(this.Ma.get().removeCueRange(this.KN),this.KN=void 0,b=this.QV().clientMetadata.rp("metadata_type_video_length_seconds"),this.L8(b,!0),this.d2("complete"))}J6(b){b!=="abandoned"&&UT(this.Op.get(),"onAdComplete"); UT(this.Op.get(),"onAdEnd",this.adCpn)}xl(){this.KN=`${"adcompletioncuerange"}:${this.QV().layoutId}`;this.Ma.get().addCueRange(this.KN,0x7ffffffffffff,0x8000000000000,!1,this,2,2)}onCueRangeExit(){}F4(b){this.kO==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&b>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.BY.get().zU(!0),this.L8(b))}L8(b,R=!1){super.L8(b,R);R=Date.now()-this.jF;const h=b*1E3,K={contentCpn:this.kX(), adCpn:od(this.s9.get(),2)?.clientPlaybackNonce||""};if(b-this.FT>=5){const I=R{this.callback.cR(this.slot,this.layout,R)}); this.BY.get().A.eP();j1(this.xs.get(),{});b=GQ(this.BY.get(),1);b.isPaused()&&!b.G(2)&&this.BY.get().playVideo();this.BY.get().removeListener(this);this.K2&&tnK(this)}j5(b){if(b.state.isError())this.xB(b.state.gt?.errorCode,new FI("There was a player error during this media layout.",{playerErrorCode:b.state.gt?.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED");else{var R=kS(this);R&&R.j5(b)}}yK(){}qz(){}Zs(){}HI(){}F$(){}J9(){}aB(){}Ds(){}Gf(){}UD(){}o0(){}Xf(){}gh(){}sP(b, R,h){Q3(this,b,R,h)}bb(b,R){Q3(this,b,R,"error")}};var ipK=class extends g.N3{constructor(b,R,h,K,I,N,p){super();this.callback=b;this.xs=R;this.BY=h;this.BR=K;this.nm=I;this.u5=N;this.VX=p;this.Ch=!0;this.K2=!1}UW(){return this.nm.UW()}QV(){return this.nm.QV()}init(){const b=this.QV().clientMetadata.rp("metadata_type_player_bytes_layout_controls_callback_ref");b&&(b.current=this);this.A5()}A5(){this.nm.init()}release(){const b=this.QV().clientMetadata.rp("metadata_type_player_bytes_layout_controls_callback_ref");b&&(b.current=null);this.Es()}Es(){this.nm.release()}aZ(){this.nm.aZ()}W9(){this.nm.W9()}cV(b, R){u2("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.UW(),this.QV(),{requestingSlot:b,requestingLayout:R})}startRendering(b){b.layoutId!==this.QV().layoutId?this.callback.ZP(this.UW(),b,new FI("Tried to start rendering an unknown layout, this adapter "+`requires LayoutId: ${this.QV().layoutId}`+`and LayoutType: ${this.QV().layoutType}`,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"): (this.BY.get().addListener(this),Yv(this.u5(),this),cbe(this.BR.get()),rbs(this.VX.get())||e1(this.BY.get()),this.nm.startRendering(b))}h9(b,R){this.K2=!0;this.nm.h9(b,R);this.BY.get().A.eP();j1(this.xs.get(),{});b=GQ(this.BY.get(),1);b.isPaused()&&!b.G(2)&&this.BY.get().playVideo();this.BY.get().removeListener(this);this.K2&&this.nm.H7()}PR(b,R){this.nm.PR(b,R)}cR(b,R,h){R.layoutId===this.QV().layoutId&&(this.K2=!1,em(this.u5(),this));this.nm.cR(b,R,h);R.layoutId===this.QV().layoutId&&xS(this.BR.get())}F4(b){this.nm.F4(b)}j5(b){b.state.isError()? this.xB(b.state.gt?.errorCode,new FI("There was a player error during this media layout.",{playerErrorCode:b.state.gt?.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):this.nm.j5(b)}xB(b,R,h){this.nm.r8(b,R,h)}onFullscreenToggled(b){this.nm.onFullscreenToggled(b)}O8(b){this.nm.O8(b)}Iw(b){this.nm.Iw(b)}onVolumeChange(){this.nm.onVolumeChange()}yK(){}qz(){}Zs(){}HI(){}F$(){}J9(){}aB(){}Ds(){}Gf(){}UD(){}o0(){}Xf(){}gh(){}};var wVe=class{constructor(b,R,h,K,I,N,p,l,a,v){this.callback=b;this.slot=R;this.layout=h;this.s9=K;this.b5=I;this.Zq=N;this.BY=p;this.LR=l;this.aH=a;this.D=v;this.driftRecoveryMs=this.layout.clientMetadata.rp("metadata_type_drift_recovery_ms")||null;this.V=this.layout.clientMetadata.rp("metadata_type_prefetch_metadata")!==void 0}UW(){return this.slot}QV(){return this.layout}init(){this.Zq.get().addListener(this);this.BY.get().addListener(this);var b=this.layout.clientMetadata.rp("metadata_type_layout_enter_ms"); var R=this.layout.clientMetadata.rp("metadata_type_layout_exit_ms");if(this.V){var h=this.Zq.get().HB.slice(-1)[0];h!==void 0&&(b=h.startSecs*1E3,R=(h.startSecs+h.oY)*1E3)}this.wm(b,R);h=this.s9.get().Sz?.clientPlaybackNonce;const K=this.layout.qj.adClientDataEntry;Pz(this.aH.get(),{daiStateTrigger:{filledAdsDurationMs:R-b,contentCpn:h,adClientData:K}});var I=this.Zq.get();I=U9q(I.X,b,R);I!==null&&(Pz(this.aH.get(),{daiStateTrigger:{filledAdsDurationMs:I-b,contentCpn:h,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER", adClientData:K}}),this.b5.get().kA(I,R))}release(){this.Es();this.Zq.get().removeListener(this);this.BY.get().removeListener(this)}startRendering(){this.L4();this.callback.PR(this.slot,this.layout)}h9(b,R){this.J(R);this.driftRecoveryMs!==null&&(Z3(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(GpT(this)-this.layout.clientMetadata.rp("metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.BY.get().A.PK()*1E3).toString()}),this.driftRecoveryMs= null);this.callback.cR(this.slot,this.layout,R)}rV(){return!1}MV(b){const R=this.layout.clientMetadata.rp("metadata_type_layout_enter_ms"),h=this.layout.clientMetadata.rp("metadata_type_layout_exit_ms");b*=1E3;R<=b&&bN.QV().clientMetadata.rp("metadata_type_media_sub_layout_index")-p.QV().clientMetadata.rp("metadata_type_media_sub_layout_index")); b.forEach(N=>{const p=h,l=N.QV().clientMetadata.rp("metadata_type_video_length_seconds"),a=Math.min(p+l*1E3,R);h=a;K++;I.push(l);N.wm(p,a)})}else this.X.forEach(N=>{N.init()}); this.Y!=null&&cz(this.aH.get(),"ads_ssmplra_init",`lid.${this.layout.layoutId};smlid.${this.Y}`)}Es(){this.s9.get().removeListener(this);this.G=null;this.X.forEach(b=>{b.release()})}L4(){if(this.G)u2("Failed to restart rendering",this.slot,this.layout,{hasSurveyMediaSubLayout:String(!!this.Y)}); else{var b=this.s9.get().Sz?.layoutId;Wn3(this,b)}}J(b){this.G?.FQ?.h9(this.G?.FQ?.QV(),b);this.G=null}aI({videoId:b,layoutId:R}){b==="nPpU29QrbiU"&&cz(this.aH.get(),"ads_ssmplra_opdcs",`vid.${b};lid.${this.layout.layoutId};smlid.${this.Y};slrs.${!!this.G};slrslid.${this.G?.FQ?.QV().layoutId}`);this.G&&(this.G.FQ?.QV().layoutId===R?u2("Unexpected transition into the same layout ID",this.slot,this.layout,{layoutId:R}):(this.G.FQ?.h9(this.G.FQ?.QV(),"normal"),Wn3(this,R)))}S(){}j5(){}onFullscreenToggled(){}};var oxP=class{constructor(b,R,h,K,I,N,p,l,a,v,B,H,q,d){this.callback=b;this.slot=R;this.layout=h;this.b5=K;this.LR=I;this.BY=N;this.Bo=p;this.Dl=l;this.DQ=a;this.VX=v;this.aH=B;this.s9=H;this.Ma=q;this.JO=d;this.xd=!0;this.BD=this.kO=null;this.adCpn=void 0;this.G=!1;b=this.layout.clientMetadata.rp("METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")?.progressCommands||[];this.Y=new FZ(d,b,h.layoutId,()=>this.layout.clientMetadata.rp("metadata_type_video_length_seconds")*1E3)}UW(){return this.slot}QV(){return this.layout}wm(b, R){this.layout.clientMetadata.rp("metadata_type_player_bytes_callback_ref").current=this; this.BD=Sl2(this.slot,this.layout,this.layout.clientMetadata.rp("metadata_type_player_vars"),b,R,this.layout.clientMetadata.rp("metadata_type_video_length_seconds")*1E3,this.b5.get(),this.Bo.get(),()=>{var h={...MS(this.layout)};var K=this.slot.clientMetadata.rp("metadata_type_fulfilled_layout")||this.slot.fulfilledLayout;const I=K.clientMetadata.rp("metadata_type_sub_layouts")||K.Sb;K={...MS(K),adPlacementConfig:K.clientMetadata.rp("metadata_type_ad_placement_config"),subLayouts:(I||[]).map(MS)}; return{layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",...h,compositeLayout:K,hasSurveyOverlay:GM(this.layout.clientMetadata,"metadata_type_survey_overlay"),surveyOverlay:this.layout.clientMetadata.rp("metadata_type_survey_overlay")}},this.aH.get()); this.BY.get().addListener(this);b=this.layout.clientMetadata.rp("metadata_type_video_length_seconds");R=this.layout.clientMetadata.rp("metadata_type_active_view_traffic_type");nM(this.layout.IT)&&ge(this.Dl.get(),this.layout.layoutId,{eH:R,Fx:b,listener:this});n5H(this.callback,this.slot,this.layout);E5x(this.callback,this.slot,this.layout)}init(){const b=this.layout.clientMetadata.rp("metadata_type_layout_enter_ms"),R=this.layout.clientMetadata.rp("metadata_type_layout_exit_ms");this.wm(b,R)}release(){this.BY.get().removeListener(this); nM(this.layout.IT)&&WH(this.Dl.get(),this.layout.layoutId);this.VX.get();var b=this.callback,R=this.slot,h=this.layout;for(const K of b.Y)K.UD(R,h);Ap(this.VX.get())&&(this.KN&&(cz(this.aH.get(),"ads_ccru",`acpn.${od(this.s9.get(),2)?.clientPlaybackNonce};cr.${this.KN}`),this.Ma.get().removeCueRange(this.KN)),this.KN=void 0)}startRendering(){GM(this.layout.clientMetadata,"metadata_type_survey_overlay")&&cz(this.aH.get(),"ads_ssmlra_srs",`lid.${this.layout.layoutId}`);if(this.kO)u2("Expected the layout not to be entered before start rendering", this.slot,this.layout,{hasSurveyOverlay:GM(this.layout.clientMetadata,"metadata_type_survey_overlay"),surveyOverlay:this.layout.clientMetadata.rp("metadata_type_survey_overlay")});else{this.kO={CC:null,Nh:!1};this.G=!1;iY(this.VX.get())&&(this.adCpn=od(this.s9.get(),2)?.clientPlaybackNonce);this.VX.get().A.L().experiments.O9("html5_disable_sodar_for_tvhtml5")||nNB(this.slot,this.layout,this.DQ.get());nM(this.layout.IT)&&hBq(this.Dl.get(),this.layout.layoutId);this.LR.d2("start");if(dT(this.VX.get())){const b= GQ(this.BY.get()),R=this.layout.clientMetadata.rp("metadata_type_video_length_seconds"),h=O$(this.BY.get(),2,!1);ENT(this.LR,this.kO.CC,b,R,h,()=>void x9H(this,"teois"),od(this.s9.get(),1).eK)}TS3(this.callback,this.slot,this.layout); Ap(this.VX.get())&&(this.adCpn||u2("Media layout confirmed started, but ad CPN not set."),this.xl());GM(this.layout.clientMetadata,"metadata_type_survey_overlay")&&cz(this.aH.get(),"ads_ssmlra_sre",`lid.${this.layout.layoutId}`)}}h9(b,R){if(this.kO){if(dT(this.VX.get()))if(this.BD===null)u2("Unexpected media sub layout exited without a timeline playback ID");else{b=this.layout.clientMetadata.rp("metadata_type_video_length_seconds");const h=QD(this.BY.get(),this.BD);iY(this.VX.get())&&this.adCpn=== void 0&&u2("Expected ad CPN in SSDAI macro data",this.slot,this.layout,{contentCpn:this.layout.clientMetadata.rp("metadata_type_content_cpn")});j_x(this.LR,h,this.adCpn);Xu(this.LR,null,this.kO.CC,b,h,od(this.s9.get(),1).eK,K=>void m9T(this,K,"fue"),iY(this.VX.get()),Ap(this.VX.get())); sF(this.VX.get())&&this.L8(h,!0)}this.kO=null;k1D(this.callback,this.slot,this.layout,this.G&&this.VX.get().A.L().N("dai_layout_log_skip_exit_reason")?"skipped":R)}else u2("Expected the layout to be entered before stop rendering",this.slot,this.layout)}onCueRangeEnter(b){if(b!==this.KN)u2("Received CueRangeEnter signal for unknown layout.",this.UW(),this.QV(),{cueRangeId:b});else if(this.adCpn===void 0&&u2("Expected ad CPN in SSDAI macro data",this.slot,this.layout,{contentCpn:this.layout.clientMetadata.rp("metadata_type_content_cpn")}), Qf(this.LR,"impression")&&dT(this.VX.get()))if(this.BD===null)u2("Unexpected cue range enter without a timeline playback ID");else{const R=QD(this.BY.get(),this.BD);cz(this.aH.get(),"ads_ccre",`cpn.${this.layout.clientMetadata.rp("metadata_type_content_cpn")};acpn.${od(this.s9.get(),2)?.clientPlaybackNonce};cr.${b};cts.${R}`);this.Ma.get().removeCueRange(this.KN);this.KN=void 0;sF(this.VX.get())&&this.L8(R,!0);this.LR.d2("complete")}}onCueRangeExit(){}r8(){}H7(){}F4(b){if(this.kO){if(Qf(this.LR,"impression")){const R= GQ(this.BY.get()),h=this.layout.clientMetadata.rp("metadata_type_video_length_seconds");V3(this.LR,R,b,this.kO.CC,h,K=>void m9T(this,K,"tpaqe")); sF(this.VX.get())&&this.L8(b)}this.kO.CC=b}}L8(b,R=!1){this.kO&&ml(this.Y,b*1E3,R)}j5(b){if(this.kO){dT(this.VX.get())||this.kO.Nh||(this.kO.Nh=!0,b=new g.n6(b.state,new g.tk));var R=this.layout.clientMetadata.rp("metadata_type_video_length_seconds"),h=O$(this.BY.get(),2,!1);uC(this.LR,this.kO.CC,b,R,h,od(this.s9.get(),1).eK,!dT(this.VX.get()),()=>void x9H(this,"teosc"))}}onFullscreenToggled(b){TAx(this.LR,b)}O8(){}yK(){}Iw(){}cV(b,R){b=this.aH.get(); var h=Qf(this.LR,"impression"),K=Qf(this.LR,"skip");var I=!!this.LR.X.get("skip")?.length;cz(b,"ads_dsr",`ti.${h};ts.${K};hp.${I};cpn.${this.layout.clientMetadata.rp("metadata_type_content_cpn")};acpn.${od(this.s9.get(),2)?.clientPlaybackNonce};sl.${R.clientMetadata.rp("metadata_type_linked_player_bytes_layout_id")===this.layout.layoutId}`);Qf(this.LR,"impression")&&this.LR.d2("skip");R=od(this.s9.get(),1).eK;this.G=!0;this.b5.get().u3(R)||(this.G=!1,u2("Unexpected failure to skip a server stitched ad", this.slot,this.layout))}onVolumeChange(){}PR(){}cR(){}aZ(){}W9(){}cF(){Jqe(this.LR)}le(){kps(this.LR)}Vf(){Yl3(this.LR)}SP(){eyH(this.LR)}gG(){Ops(this.LR)}v9(){QE3(this.LR)}Xf(){}gh(){}xl(){this.KN||(this.KN=`${"adcompletioncuerange"}:${this.QV().layoutId}`,this.Ma.get().addCueRange(this.KN,0x7ffffffffffff,0x8000000000000,!1,this,2,2,this.adCpn),cz(this.aH.get(),"ads_ccr",`acpn.${od(this.s9.get(),2)?.clientPlaybackNonce};cr.${this.KN}`))}};var D4D=class extends wVe{constructor(b,R,h,K,I,N,p,l,a,v,B,H,q,d){super(b,R,h,K,I,p,l,a,v,H);this.Bo=N;this.DQ=B;this.Dl=q;this.VX=d;this.BD=this.kO=null}wm(){this.layout.clientMetadata.rp("metadata_type_player_bytes_callback_ref").current=this;const b=this.layout.clientMetadata.rp("metadata_type_layout_enter_ms"),R=this.layout.clientMetadata.rp("metadata_type_layout_exit_ms");this.BD=Sl2(this.slot,this.layout,this.layout.clientMetadata.rp("metadata_type_player_vars"),b,R,this.layout.clientMetadata.rp("metadata_type_video_length_seconds")* 1E3,this.b5.get(),this.Bo.get(),()=>({layoutType:"LAYOUT_TYPE_MEDIA",enterMs:b,exitMs:R,adPlacementConfig:this.layout.clientMetadata.rp("metadata_type_ad_placement_config")}),this.aH.get()); const h=this.layout.clientMetadata.rp("metadata_type_video_length_seconds"),K=this.layout.clientMetadata.rp("metadata_type_active_view_traffic_type");nM(this.layout.IT)&&ge(this.Dl.get(),this.layout.layoutId,{eH:K,Fx:h,listener:this})}Es(){nM(this.layout.IT)&&WH(this.Dl.get(),this.layout.layoutId)}L4(){if(this.kO)u2("Expected the layout not to be entered before start rendering",this.slot,this.layout);else if(this.kO={CC:null,Nh:!1},nNB(this.slot,this.layout,this.DQ.get()),this.LR.d2("start"),dT(this.VX.get())){const b= GQ(this.BY.get()),R=this.layout.clientMetadata.rp("metadata_type_video_length_seconds"),h=O$(this.BY.get(),2,!1);ENT(this.LR,this.kO.CC,b,R,h,()=>void PwT(this,"teois"),!1)}}J(){if(this.kO){if(dT(this.VX.get()))if(this.BD===null)u2("Unexpected single media layout exited without a timeline playback ID"); else{const b=this.layout.clientMetadata.rp("metadata_type_video_length_seconds"),R=QD(this.BY.get(),this.BD);j_x(this.LR,R);Xu(this.LR,null,this.kO.CC,b,R,!1,h=>void Zpw(this,h,"fue"))}this.kO=null}else u2("Expected the layout to be entered before stop rendering",this.slot,this.layout)}S(b){if(this.kO){if(Qf(this.LR,"impression")){const R=GQ(this.BY.get()),h=this.layout.clientMetadata.rp("metadata_type_video_length_seconds"); V3(this.LR,R,b,this.kO.CC,h,K=>void Zpw(this,K,"tpaqe"))}this.kO.CC=b}}j5(b){if(this.kO){dT(this.VX.get())||this.kO.Nh||(this.kO.Nh=!0,b=new g.n6(b.state,new g.tk)); var R=this.layout.clientMetadata.rp("metadata_type_video_length_seconds"),h=O$(this.BY.get(),2,!1);uC(this.LR,this.kO.CC,b,R,h,!1,!dT(this.VX.get()),()=>void PwT(this,"teosc"))}}onFullscreenToggled(b){TAx(this.LR,b)}cF(){Jqe(this.LR)}le(){kps(this.LR)}Vf(){Yl3(this.LR)}SP(){eyH(this.LR)}gG(){Ops(this.LR)}v9(){QE3(this.LR)}};var bcq=class{constructor(b,R,h,K,I,N,p,l,a,v,B,H,q,d,t,S,J,e,Y,Q,P){this.u5=b;this.un=R;this.Mf=h;this.s9=K;this.b5=I;this.BY=N;this.Gz=p;this.aH=l;this.Bo=a;this.Zq=v;this.Dl=B;this.DQ=H;this.xs=q;this.Ma=d;this.BR=t;this.Op=S;this.JO=J;this.vr=e;this.VX=Y;this.G=Q;this.context=P}build(b,R,h,K){if(GM(h.clientMetadata,"metadata_type_dai")){var I=K.clientMetadata.rp("metadata_type_ad_placement_config");P8(K,{Gj:"metadata_type_video_length_seconds metadata_type_player_vars metadata_type_layout_enter_ms metadata_type_layout_exit_ms metadata_type_player_bytes_callback_ref metadata_type_content_cpn".split(" "), eX:["LAYOUT_TYPE_MEDIA"]})&&I!==void 0?(I=new Fu(K.IT,this.aH,I,K.layoutId,null),I=new D4D(b,h,K,this.s9,this.b5,this.Bo,this.Zq,this.BY,I,this.aH,this.DQ,this.G,this.Dl,this.VX)):I=null;if(I)return I;a:{var N=K.Sb??K.clientMetadata.rp("metadata_type_sub_layouts");const p=K.clientMetadata.rp("metadata_type_ad_placement_config");if(P8(K,{Gj:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],eX:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})&&N!==void 0&&p!== void 0){I=[];for(const l of N){N=l.clientMetadata.rp("metadata_type_media_sub_layout_index");if(!P8(l,{Gj:"metadata_type_video_length_seconds metadata_type_player_vars metadata_type_layout_enter_ms metadata_type_layout_exit_ms metadata_type_player_bytes_callback_ref metadata_type_content_cpn".split(" "),eX:["LAYOUT_TYPE_MEDIA"]})||N===void 0){b=null;break a}N=new Fu(l.IT,this.aH,p,l.layoutId,N);I.push(new oxP(R,h,l,this.b5,N,this.BY,this.Bo,this.Dl,this.DQ,this.VX,this.aH,this.s9,this.Ma,this.JO))}R= new Fu(K.IT,this.aH,p,K.layoutId);b=new FTw(b,h,K,this.s9,this.b5,this.Zq,this.BY,R,this.aH,this.G,I)}else b=null}if(b)return b}else if(b=zyx(b,R,h,K,this.u5,this.un,this.Mf,this.aH,this.Dl,this.DQ,this.xs,this.s9,this.BY,this.Gz,this.Ma,this.BR,this.Op,this.JO,this.vr,this.VX,this.b5,this.context))return b;throw new FI(`Unsupported layout with type: ${K.layoutType} and client metadata: ${WF(K.clientMetadata)} in `+"PlayerBytesLayoutRenderingAdapterFactory.");}};var IV=class{constructor(b,R,h,K,I,N,p,l,a,v,B,H,q,d,t,S,J,e){this.u5=b;this.un=R;this.Mf=h;this.aH=K;this.Dl=I;this.DQ=N;this.xs=p;this.s9=l;this.BY=a;this.Gz=v;this.Ma=B;this.BR=H;this.Op=q;this.JO=d;this.vr=t;this.VX=S;this.b5=J;this.context=e}build(b,R,h,K){if(b=zyx(b,R,h,K,this.u5,this.un,this.Mf,this.aH,this.Dl,this.DQ,this.xs,this.s9,this.BY,this.Gz,this.Ma,this.BR,this.Op,this.JO,this.vr,this.VX,this.b5,this.context))return b;throw new FI(`Unsupported layout with type: ${K.layoutType} and client metadata: ${WF(K.clientMetadata)} in `+ "PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");}};var RED=class extends jg{constructor(b,R,h,K){super("survey-interstitial",b,R,h,K)}};var hEq=class extends wc{constructor(b,R,h,K,I){super(h,b,R,K);this.aH=I;b=R.clientMetadata.rp("metadata_type_ad_placement_config");this.LR=new Fu(R.IT,I,b,R.layoutId)}startRendering(b){const R=Gc(this.LR),h={adsClientData:this.layout.qj};this.G.push(new RED(this.layout.clientMetadata.rp("metadata_type_valid_survey_text_interstitial_renderer"),R,this.QV().layoutId,h));super.startRendering(b);this.callback.PR(this.slot,b)}LT(b,R){R!==this.layout.layoutId||b!=="survey-interstitial"&&b!=="button"||((b= this.layout.clientMetadata.rp("metadata_type_player_bytes_layout_controls_callback_ref").current)?b.cV(this.slot,this.layout):u2("Tried to skip SurveyInterstitial but PlayerBytes callback is null"))}X5(){super.X5()}};var L6=new g.ru(320,63);var Kox=class extends jg{constructor(b,R,h,K){super("invideo-overlay",b,R,h,K);this.interactionLoggingClientData=K}};var sws=class extends wc{constructor(b,R,h,K,I,N,p,l,a,v,B){super(I,b,R,K);this.aH=h;this.V=N;this.BY=p;this.JO=l;this.VX=a;this.J=v;this.S=B;this.LR=cqT(R,h)}F4(){}j5(){}onFullscreenToggled(){}O8(b){b&&UF(this.V,this.layout)}yK(){}Iw(b){const R=oc(this.layout);if(this.D=wV(b,tFT(this.BY.get())))R.onErrorCommand&&this.JO.get().executeCommand(R.onErrorCommand,this.layout.layoutId),UF(this.V,this.layout)}onVolumeChange(){}XE(){return this.QV().layoutId}W5(){return this.D}LT(b){this.S.LT(b);b==="in_video_overlay_close_button"&& UF(this.V,this.layout)}X_(b){b==="invideo-overlay"&&UF(this.V,this.layout)}VG(){this.S.VG()}startRendering(b){super.startRendering(b);this.callback.PR(this.slot,b);this.J.EE=this}h9(b,R){super.h9(b,R);h8(this.J,this)}init(){super.init();E$(this.aH.get(),this);this.BY.get().addListener(this);this.G.push(new Kox(oc(this.layout),Gc(this.LR),this.layout.layoutId,{adsClientData:this.layout.qj}))}release(){super.release();this.BY.get().removeListener(this);TQ(this.aH.get(),this)}Xf(){}gh(){}};var $V2=class extends wc{constructor(b,R,h,K,I,N,p,l,a,v,B,H){super(I,b,R,K);this.aH=h;this.V=N;this.K=p;this.BY=l;this.JO=a;this.VX=v;this.J=B;this.S=H;this.LR=cqT(R,h)}init(){super.init();E$(this.aH.get(),this);this.BY.get().addListener(this);this.G.push(new Kox(oc(this.layout),Gc(this.LR),this.layout.layoutId,{adsClientData:this.layout.qj}))}VG(){this.S.VG()}startRendering(b){super.startRendering(b);this.callback.PR(this.slot,b);this.J.EE=this}h9(b,R){super.h9(b,R);h8(this.J,this)}LT(b){this.S.LT(b); b==="in_video_overlay_close_button"&&UF(this.V,this.layout)}qv(b){if(b==="invideo-overlay"){b=KsT(this.K,this.layout);for(const R of b)R.stop()}}X_(b){b==="invideo-overlay"&&UF(this.V,this.layout)}Z3(b){if(b==="invideo-overlay"){b=KsT(this.K,this.layout);for(const R of b)R.start()}}F4(){}j5(){}onFullscreenToggled(){}O8(b){b&&UF(this.V,this.layout)}yK(){}Iw(b){const R=oc(this.layout),h=R.contentSupportedRenderer.imageOverlayAdContentRenderer;if(this.D=wV(b,tFT(this.BY.get()),Vns(h.image)))R.onErrorCommand&& this.JO.get().executeCommand(R.onErrorCommand,this.layout.layoutId),UF(this.V,this.layout)}onVolumeChange(){}XE(){return this.QV().layoutId}W5(){return this.D}release(){super.release();this.BY.get().removeListener(this);TQ(this.aH.get(),this)}Xf(){}gh(){}};var NY=class{constructor(b){this.BY=b;this.G=!1}LT(b){b==="ad-info-hover-text-button"&&((this.G=this.BY.get().WZ(1))||this.BY.get().pauseVideo())}VG(){this.G||this.BY.get().resumeVideo(1)}};var I1D=class extends jg{constructor(b,R,h){super("survey",b,{},R,h)}};var NJD=class extends wc{constructor(b,R,h,K,I,N,p){super(h,b,R,K);this.V=I;this.BY=N;this.VX=p}init(){super.init();this.BY.get().addListener(this)}startRendering(b){const R=this.layout.clientMetadata.rp("METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD");this.G.push(new I1D(R,this.layout.layoutId,{adsClientData:this.layout.qj}));super.startRendering(b);this.callback.PR(this.slot,b)}PR(){}LT(b,R){R!==this.layout.layoutId||b!=="ad-info-icon-button"&&b!=="ad-info-dialog-close-button"||((R=this.layout.clientMetadata.rp("metadata_type_player_bytes_layout_controls_callback_ref").current)? b==="ad-info-icon-button"?R.aZ(this.slot,this.layout):b==="ad-info-dialog-close-button"&&R.W9(this.slot,this.layout):u2("Tried to use LayoutControlsCallback on Survey but it is null",this.slot,this.layout,{ComponentType:b}))}Iw(b){b.width<450&&UF(this.V,this.layout)}onVolumeChange(){}F4(){}onFullscreenToggled(){}O8(){}yK(){}j5(){}Xf(){}gh(){}X5(){super.X5()}release(){super.release();this.BY.get().removeListener(this)}};var pUH=class{constructor(b,R,h,K,I,N,p,l,a,v){this.TD=b;this.BY=R;this.aH=h;this.V=K;this.Dl=I;this.Y=N;this.X=p;this.JO=l;this.VX=a;this.G=v}build(b,R,h,K){if(R=LM(b,h,K,this.TD,this.BY,this.aH,this.V,this.G,this.VX))return R;if(P8(K,XQT()))return new $V2(h,K,this.aH,this.TD,b,this.Y,this.X,this.BY,this.JO,this.VX,this.G,new NY(this.BY));if(P8(K,u6q()))return new sws(h,K,this.aH,this.TD,b,this.Y,this.BY,this.JO,this.VX,this.G,new NY(this.BY));if(P8(K,{Gj:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"], eX:["LAYOUT_TYPE_SURVEY"]}))return new NJD(h,K,b,this.TD,this.Y,this.BY,this.VX);if(P8(K,{Gj:["metadata_type_player_bytes_layout_controls_callback_ref","metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],eX:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new hEq(h,K,b,this.TD,this.aH);if(P8(K,wcK()))return new ble(h,K,b,this.TD,this.BY,this.VX);throw new FI(`Unsupported layout with type: ${K.layoutType} and client metadata: ${WF(K.clientMetadata)} in `+ "WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");}};var l1B=class{constructor(b,R,h,K,I,N,p,l,a,v){this.TD=b;this.BY=R;this.aH=h;this.V=K;this.Dl=I;this.Y=N;this.X=p;this.JO=l;this.VX=a;this.G=v}build(b,R,h,K){if(R=LM(b,h,K,this.TD,this.BY,this.aH,this.V,this.G,this.VX))return R;if(P8(K,XQT()))return new $V2(h,K,this.aH,this.TD,b,this.Y,this.X,this.BY,this.JO,this.VX,this.G,new NY(this.BY));if(P8(K,u6q()))return new sws(h,K,this.aH,this.TD,b,this.Y,this.BY,this.JO,this.VX,this.G,new NY(this.BY));throw new FI(`Unsupported layout with type: ${K.layoutType} and client metadata: ${WF(K.clientMetadata)} in `+ "WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");}};var a1x=class extends Fwx{constructor(b,R,h,K,I,N,p,l,a,v){super(b,R,h,K,I,N,p,a);this.AZ=l;this.s9=v}startRendering(b){super.startRendering(b);if(b.renderingContent?MMK(b,od(this.s9.get(),2)||void 0):this.layout.clientMetadata.rp("metadata_ad_video_is_listed")){const R=b.renderingContent?C6x(b,od(this.s9.get(),2)||void 0):this.layout.clientMetadata.rp("metadata_type_ad_info_ad_metadata");b=this.AZ.get();g.rw(b.A,"onAdMetadataAvailable",R)}}};var vVB=class{constructor(b,R,h,K,I,N,p){this.TD=b;this.BY=R;this.aH=h;this.Y=K;this.AZ=I;this.G=N;this.s9=p}build(b,R,h,K){if(P8(K,Cwx())||K.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.Z(K.renderingContent,Vf)!==void 0)return new a1x(b,h,K,this.TD,this.BY,this.aH,this.Y,this.AZ,this.G,this.s9);throw new FI(`Unsupported layout with type: ${K.layoutType} and client metadata: ${WF(K.clientMetadata)} in `+"WebRemixInPlayerLayoutRenderingAdapterFactory.");}};var BJw=class{constructor(b,R,h,K,I,N,p,l){this.TD=b;this.BY=R;this.aH=h;this.Y=K;this.AZ=I;this.G=N;this.VX=p;this.s9=l}build(b,R,h,K){if(P8(K,Cwx()))return new a1x(b,h,K,this.TD,this.BY,this.aH,this.Y,this.AZ,this.G,this.s9);if(b=LM(b,h,K,this.TD,this.BY,this.aH,this.Y,this.G,this.VX))return b;throw new FI(`Unsupported layout with type: ${K.layoutType} and client metadata: ${WF(K.clientMetadata)} in `+"WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");}};var qI=class{constructor(b,R){this.adPodIndex=b;this.G=R.length;this.adBreakLengthSeconds=R.reduce((K,I)=>K+I,0); let h=0;for(b+=1;bthis.triggerId,b)}};var e7=class{constructor(b,R,h){this.triggeringSlotId=R;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=h||b(this.triggerType)}clone(b){return new e7(()=>this.triggerId,b)}};var et=class{constructor(b,R){this.triggeringSlotId=R;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=b(this.triggerType)}clone(b){return new et(()=>this.triggerId,b)}};var YH=class{constructor(b,R){this.triggeringSlotId=R;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=b(this.triggerType)}clone(b){return new YH(()=>this.triggerId,b)}};var kA=class{constructor(b,R,h){this.triggeringSlotId=R;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=h||b(this.triggerType)}clone(b){return new kA(()=>this.triggerId,b)}};var JM=class{constructor(b,R){this.triggeringSlotId=R;this.triggerType="TRIGGER_TYPE_SLOT_ID_UNSCHEDULED";this.triggerId=b(this.triggerType)}clone(b){return new JM(()=>this.triggerId,b)}};var uO=class{constructor(b,R,h){this.triggeringLayoutId=R;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=h||b(this.triggerType)}};var r1=class{constructor(b,R,h,K){this.durationMs=R;this.triggeringLayoutId=h;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=K||b(this.triggerType)}};var GG=class{constructor(b,R,h,K){this.category=b;this.trigger=R;this.slot=h;this.layout=K}};var pe=class extends g.N3{constructor(b,R,h,K,I,N,p){super();this.VX=b;this.G=R;this.Y=h;this.s9=K;this.V=I;this.X=N;this.xs=p}};var c4={layoutExitMuteTriggers:[],layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitUserCancelledTriggers:[],layoutExitUserInputSubmittedTriggers:[]};var lt={Bu:1,Ax:2,FS:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};var aV=class{constructor(b,R,h,K,I,N,p,l,a,v=1){this.V=b;this.Y=R;this.G=h;this.VX=K;this.Og=I;this.X=N;this.BY=p;this.uR=l;this.r3=a;this.loadPolicy=v}};var vS=class extends g.N3{constructor(b,R,h,K,I,N,p,l){super();this.Y=b;this.X=R;this.Zq=K;this.BY=I;this.VX=N;this.aH=p;this.b5=l;this.G=null;h.get().addListener(this);this.addOnDisposeCallback(()=>{h.HY()||h.get().removeListener(this)}); K.get().addListener(this);this.addOnDisposeCallback(()=>{K.HY()||K.get().removeListener(this)})}ym(b){if(this.G)u2("Unexpected multiple fetch instructions for the current content"); else{this.G=b;for(const R of this.Zq.get().HB)tM(this,this.G,R)}}rV(b){if(!this.G)return this.VX.get().A.L().N("high_ccv_client_side_caching_h5")||this.b5?.get().G9(b.identifier),cz(this.aH.get(),"ads_nfi",`a.cpoa;cid.${b.identifier}`),!1;tM(this,this.G,b);return!0}MV(){}JE(b){this.G&&this.G.contentCpn!==b&&(u2("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:b,fetchInstructionsCpn:this.G.contentCpn}),this.G=null)}TT(b){this.G&&this.G.contentCpn!==b&&u2("Expected content video of the current fetch instructions to end", void 0,void 0,{contentCpn:b,fetchInstructionsCpn:this.G.contentCpn},!0);this.G=null}X5(){super.X5();this.G=null}};var Hcw=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"],qZw=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_player_overlay_layout_renderer","metadata_type_ad_placement_config"];var BS=class extends g.N3{constructor(b,R,h,K,I,N,p,l){super();this.V=b;this.J=Hcw;this.S=R;this.X=h;this.G=K;this.Y=I;this.Og=N;this.VX=p;this.s9=l;this.Ch=!0}PR(b,R){if(R.layoutType==="LAYOUT_TYPE_MEDIA"&&(g5(R,this.J)||g5(R,qZw))){var h=od(this.s9.get(),2),K=this.V(R,h||void 0);K?AB(this.X.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",()=>{const I=[djK(this.G.get(),K.contentCpn,K.wz,N=>this.S(N.slotId,"core",K,Jj(this.Og.get(),N)),K.inPlayerSlotId)]; K.instreamAdPlayerUnderlayRenderer&&Y4(this.VX.get())&&I.push(CQK(this,K,K.instreamAdPlayerUnderlayRenderer));return I}):u2("Expected MediaLayout to carry valid opportunity on entered",b,R)}}qz(){}Zs(){}F$(){}HI(){}J9(){}aB(){}Ds(){}Gf(){}UD(){}o0(){}cR(){}};var HS=class extends g.N3{constructor(b,R,h,K,I,N,p){super();this.Y=b;this.G=R;this.X=h;this.V=K;this.s9=I;this.BY=N;this.BR=p}JE(b,R,h,K,I,N,p){const l=od(this.s9.get(),1);l.X0?this.BY.get().cn():(uSw(this.BR.get(),K),AB(this.Y.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",()=>T5(this.G.get(),K,I,N,b,R,p,l,"")),S$P(this.X))}TT(){}};var qY=class extends g.N3{constructor(b){super();this.G=b}};var dU=class extends g.N3{constructor(b,R,h,K,I){super();this.Y=b;this.X=R;this.Ma=h;this.context=I;this.G=new Map;K.get().addListener(this);this.addOnDisposeCallback(()=>{K.HY()||K.get().removeListener(this)})}onCueRangeEnter(){}onCueRangeExit(b){const R=this.G.get(b); R&&(this.G.delete(b),this.Ma.get().removeCueRange(b),AB(this.Y.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",()=>{var h=this.X.get();h=iU(h.Y.get(),"SLOT_TYPE_AD_BREAK_REQUEST");if(R.slotEntryTrigger){var K=R.slotId;var I=R.slotEntryTrigger;K=I.triggeringSlotId!=null&&I.triggeringSlotId===K?I.clone(h):I}else K=void 0;return[{...R,slotId:h,slotEntryTrigger:K,slotFulfillmentTriggers:gMT(R.slotId,h,R.slotFulfillmentTriggers),slotExpirationTriggers:gMT(R.slotId,h,R.slotExpirationTriggers)}]}, R.slotId))}JE(){for(const b of this.G.keys())this.Ma.get().removeCueRange(b); this.G.clear()}TT(){}};var fe=class extends g.N3{constructor(){super(...arguments);this.Ch=!0;this.Wg=new Map;this.G=new Map}qz(){}Zs(b){g.z6(g.G6(),()=>{const R=this.G.get(b);R&&u2("Expected layouts to be properly unscheduled",b,void 0,{slotType:b.slotType,layoutTypes:[...R].map(h=>h.layoutType)})},0)}F$(){}HI(){}J9(){}aB(){}Ds(){}Gf(b,R){this.G.has(b)||this.G.set(b,new Set); this.G.get(b).add(R)}UD(b,R){this.Wg.has(b)&&this.Wg.get(b)===R&&u2("Unscheduled a Layout that is currently entered.",b,R);if(this.G.has(b)){var h=this.G.get(b);h.has(R)?(h.delete(R),h.size===0&&this.G.delete(b)):u2("Trying to unscheduled a Layout that was not scheduled.",b,R)}else u2("Trying to unscheduled a Layout that was not scheduled.",b,R)}PR(b,R){this.Wg.set(b,R)}cR(b){this.Wg.delete(b)}o0(){}};var dVq=class{constructor(b,R){this.callback=b;this.slot=R}init(){}UW(){return this.slot}HX(){this.callback.F$(this.slot)}oF(){this.callback.J9(this.slot)}release(){}};var ys=class{build(b,R){return new dVq(b,R)}};var f1q=class{constructor(b,R,h){this.callback=b;this.slot=R;this.BY=h}init(){}UW(){return this.slot}HX(){kP(this.BY.get(),"ad-showing");this.callback.F$(this.slot)}oF(){this.callback.J9(this.slot);YP(this.BY.get(),"ad-showing")}release(){}};var yGK=class{constructor(b,R,h){this.callback=b;this.slot=R;this.BY=h;this.Y=!1;this.G=0}init(){}UW(){return this.slot}HX(){kP(this.BY.get(),"ad-showing");kP(this.BY.get(),"ad-interrupting");this.Y=this.BY.get().isAtLiveHead();this.G=Math.ceil(Date.now()/1E3);this.callback.F$(this.slot)}oF(){YP(this.BY.get(),"ad-showing");YP(this.BY.get(),"ad-interrupting");const b=this.Y?Infinity:O$(this.BY.get(),1,!0)+Math.floor(Date.now()/1E3)-this.G;this.BY.get().A.seekTo(b,void 0,void 0,1);this.callback.J9(this.slot)}release(){}};var tET=class{constructor(b,R,h){this.callback=b;this.slot=R;this.BY=h}init(){}UW(){return this.slot}HX(){kP(this.BY.get(),"ad-showing");kP(this.BY.get(),"ad-interrupting");this.callback.F$(this.slot)}oF(){this.BY.get().cn();YP(this.BY.get(),"ad-showing");YP(this.BY.get(),"ad-interrupting");this.callback.J9(this.slot)}release(){this.BY.get().cn()}};var tm=class{constructor(b){this.BY=b}build(b,R){if(Sm(R,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new f1q(b,R,this.BY);if(R.slotEntryTrigger instanceof VV&&Sm(R,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new yGK(b,R,this.BY);if(Sm(R,[],"SLOT_TYPE_PLAYER_BYTES"))return new tET(b,R,this.BY);throw new V(`Unsupported slot with type ${R.slotType} and client metadata: ${WF(R.clientMetadata)} in ${"PlayerBytesSlotAdapterFactory"}.`);}};var jwH=class extends g.N3{constructor(b){super();this.DJ=b;this.HH=new Map}};var jA=class extends jwH{constructor(b,R,h){super(b);this.VX=h;R.get().addListener(this);this.addOnDisposeCallback(()=>{R.HY()||R.get().removeListener(this)})}LT(b,R){if(R)if(b==="skip-button"){b=[]; for(const h of this.HH.values()){const K=h.trigger;K instanceof Zn&&h.category==="TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"&&K.triggeringLayoutId===R&&b.push(h)}b.length&&XI(this.DJ(),b)}else pM(this.VX.get(),"supports_multi_step_on_desktop")?b==="ad-action-submit-survey"&&zG(this,R):b==="survey-submit"?zG(this,R):b==="survey-single-select-answer-button"&&zG(this,R)}zs(b){const R=[];for(const h of this.HH.values()){const K=h.trigger;K instanceof Zn&&h.category==="TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"&& K.triggeringLayoutId===b&&R.push(h)}R.length?XI(this.DJ(),R):u2("Mute requested but no registered triggers can be activated.")}Ff(b,R,h,K){if(this.HH.has(R.triggerId))throw new V("Tried to register duplicate trigger for slot.");if(!(R instanceof uO||R instanceof Zn))throw new V("Incorrect TriggerType: Tried to register trigger of type "+R.triggerType+" in AdUxUpdateTriggerAdapter.");this.HH.set(R.triggerId,new GG(b,R,h,K))}Zd(b){this.HH.delete(b.triggerId)}qv(){}Z3(){}X_(){}};var Am=class extends g.N3{constructor(b){super();this.G=b;this.Ch=!0;this.HH=new Map;this.S=new Set;this.X=new Set;this.V=new Set;this.J=new Set;this.Y=new Set}Ff(b,R,h,K){if(this.HH.has(R.triggerId))throw new V("Tried to register duplicate trigger for slot.");if(!(R instanceof cm||R instanceof e7||R instanceof et||R instanceof YH||R instanceof kA||R instanceof JM||R instanceof ng||R instanceof ML||R instanceof xA||R instanceof mh||R instanceof LA||R instanceof TG))throw new V("Incorrect TriggerType: Tried to register trigger of type "+ R.triggerType+" in AdsControlFlowEventTriggerAdapter");b=new GG(b,R,h,K);this.HH.set(R.triggerId,b);R instanceof kA&&this.S.has(R.triggeringSlotId)&&XI(this.G(),[b]);R instanceof cm&&this.X.has(R.triggeringSlotId)&&XI(this.G(),[b]);R instanceof ML&&this.Y.has(R.triggeringLayoutId)&&XI(this.G(),[b])}Zd(b){this.HH.delete(b.triggerId)}qz(b){this.S.add(b.slotId);const R=[];for(const h of this.HH.values())h.trigger instanceof kA&&b.slotId===h.trigger.triggeringSlotId&&R.push(h);R.length>0&&XI(this.G(), R)}Zs(b){this.S.delete(b.slotId);const R=[];for(const h of this.HH.values()){const K=h.trigger;K instanceof JM&&K.triggeringSlotId===b.slotId&&R.push(h)}R.length>0&&XI(this.G(),R)}HI(b){const R=[];for(const h of this.HH.values()){const K=h.trigger;K instanceof ng&&K.slotType===b.slotType&&K.G!==b.slotId&&R.push(h)}R.length>0&&XI(this.G(),R)}F$(b){this.X.add(b.slotId);const R=[];for(const h of this.HH.values())h.trigger instanceof cm&&b.slotId===h.trigger.triggeringSlotId&&R.push(h);R.length>0&&XI(this.G(), R)}J9(b){this.X.delete(b.slotId);this.V.add(b.slotId);const R=[];for(const h of this.HH.values())if(h.trigger instanceof e7)b.slotId===h.trigger.triggeringSlotId&&R.push(h);else if(h.trigger instanceof TG){const K=h.trigger;b.slotId===K.slotId&&this.Y.has(K.triggeringLayoutId)&&R.push(h)}R.length>0&&XI(this.G(),R)}aB(b){const R=[];for(const h of this.HH.values())h.trigger instanceof et&&b.slotId===h.trigger.triggeringSlotId&&R.push(h);R.length>0&&XI(this.G(),R)}Ds(b){const R=[];for(const h of this.HH.values())h.trigger instanceof YH&&b.slotId===h.trigger.triggeringSlotId&&R.push(h);R.length>0&&XI(this.G(),R)}Gf(b,R){this.J.add(R.layoutId)}UD(b,R){this.J.delete(R.layoutId)}PR(b,R){this.Y.add(R.layoutId);const h=[];for(const I of this.HH.values())if(I.trigger instanceof ML)R.layoutId===I.trigger.triggeringLayoutId&&h.push(I);else if(I.trigger instanceof LA){var K=I.trigger;b.slotType===K.slotType&&R.layoutType===K.layoutType&&R.layoutId!==K.G&&h.push(I)}else I.trigger instanceof TG&&(K=I.trigger,R.layoutId===K.triggeringLayoutId&& this.V.has(K.slotId)&&h.push(I));h.length>0&&XI(this.G(),h)}cR(b,R,h){this.Y.delete(R.layoutId);b=[];for(const K of this.HH.values())if(K.trigger instanceof xA&&R.layoutId===K.trigger.triggeringLayoutId&&b.push(K),K.trigger instanceof mh){const I=K.trigger;R.layoutId===I.triggeringLayoutId&&I.G.includes(h)&&b.push(K)}b.length>0&&XI(this.G(),b)}o0(){}JE(){this.V.clear()}TT(){}};var AGP=class extends g.N3{constructor(b){super();this.G=b;this.HH=new Map}Ff(b,R,h,K){if(this.HH.has(R.triggerId))throw new V("Tried to register duplicate trigger for slot.");if(!(R instanceof Xi))throw new V("Incorrect TriggerType: Tried to register trigger of type "+R.triggerType+" in CloseRequestedTriggerAdapter");this.HH.set(R.triggerId,new GG(b,R,h,K))}Zd(b){this.HH.delete(b.triggerId)}};var z2=class extends g.N3{constructor(b,R,h){super();this.G=b;this.context=h;this.HH=new Map;R.get().addListener(this);this.addOnDisposeCallback(()=>{R.HY()||R.get().removeListener(this)})}Ff(b,R,h,K){if(this.HH.has(R.triggerId))throw new V("Tried to register duplicate trigger for slot."); if(!(R instanceof O1||R instanceof YA))throw new V("Incorrect TriggerType: Tried to register trigger of type "+R.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.HH.set(R.triggerId,new GG(b,R,h,K))}Zd(b){this.HH.delete(b.triggerId)}JE(b){const R=[];var h=R.push,K=this.HH,I=[];for(const N of K.values())N.trigger instanceof O1&&N.trigger.iy===b&&I.push(N);h.call(R,...I);h=R.push;K=this.HH;I=[];for(const N of K.values())N.trigger instanceof YA&&N.trigger.G!==b&&I.push(N);h.call(R,...I); R.length&&XI(this.G(),R)}TT(b){const R=[];var h=R.push,K=this.HH;const I=[];for(const N of K.values())K=N.trigger,K instanceof YA&&K.G===b&&I.push(N);h.call(R,...I);R.length&&XI(this.G(),R)}};var UR=class extends g.N3{constructor(b,R,h,K){super();this.Y=b;this.Ma=R;this.BY=h;this.s9=K;this.Ch=!0;this.HH=new Map;this.G=new Set;h.get().addListener(this);this.addOnDisposeCallback(()=>{h.HY()||h.get().removeListener(this)})}Ff(b,R,h,K){if(this.HH.has(R.triggerId))throw new V("Tried to register duplicate trigger for slot."); const I=`${"adtriggercuerange"}:${R.triggerId}`;if(R instanceof VV)r$T(this,b,R,h,K,I,R.G.start,R.G.end,R.iy,R.visible);else if(R instanceof CA)r$T(this,b,R,h,K,I,0x7ffffffffffff,0x8000000000000,R.iy,R.visible);else throw new V("Incorrect TriggerType: Tried to register trigger of type "+R.triggerType+" in CueRangeTriggerAdapter");}Zd(b){const R=this.HH.get(b.triggerId);R&&this.Ma.get().removeCueRange(R.cueRangeId);this.HH.delete(b.triggerId)}onCueRangeEnter(b){if(b=LLB(this,b))if(b=this.HH.get(b))if(GQ(this.BY.get()).G(32))this.G.add(b.cueRangeId); else{var R=b?.TC.trigger;(R instanceof VV||R instanceof CA)&&XI(this.Y(),[b.TC])}}onCueRangeExit(b){(b=LLB(this,b))&&(b=this.HH.get(b))&&this.G.delete(b.cueRangeId)}j5(b){if(X3(b,16)<0){for(const R of this.G)this.onCueRangeEnter(R,!0);this.G.clear()}}qz(){}Zs(){}HI(){}F$(){}J9(){}aB(){}Ds(){}Gf(){}UD(){}PR(){}cR(){}o0(){}F4(){}onFullscreenToggled(){}O8(){}yK(){}Iw(){}onVolumeChange(){}Xf(){}gh(){}};var icK=class extends g.N3{constructor(b,R){super();this.V=b;this.Y=new Map;this.X=new Map;this.G=null;R.get().addListener(this);this.addOnDisposeCallback(()=>{R.HY()||R.get().removeListener(this)}); this.G=R.get().Sz?.slotId||null}Ff(b,R,h,K){if(this.Y.has(R.triggerId)||this.X.has(R.triggerId))throw new V("Tried to re-register the trigger.");b=new GG(b,R,h,K);if(b.trigger instanceof w1)this.Y.set(b.trigger.triggerId,b);else if(b.trigger instanceof Fi)this.X.set(b.trigger.triggerId,b);else throw new V("Incorrect TriggerType: Tried to register trigger of type "+b.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.Y.has(b.trigger.triggerId)&&b.slot.slotId===this.G&&XI(this.V(), [b])}Zd(b){this.Y.delete(b.triggerId);this.X.delete(b.triggerId)}aI({slotId:b}){if(this.G!==b){var R=[];this.G!=null&&R.push(...wLx(this.X,this.G));b!=null&&R.push(...wLx(this.Y,b));this.G=b;R.length&&XI(this.V(),R)}}};var G2=class extends g.N3{constructor(b){super();this.G=b;this.Ch=!0;this.HH=new Map}Ff(b,R,h,K){if(this.HH.has(R.triggerId))throw new V("Tried to register duplicate trigger for slot.");if(!(R instanceof Pm))throw new V("Incorrect TriggerType: Tried to register trigger of type "+R.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.HH.set(R.triggerId,new GG(b,R,h,K))}Zd(b){this.HH.delete(b.triggerId)}PR(){}cR(){}qz(){}Zs(){}HI(){}F$(){}J9(){}aB(){}Ds(){}Gf(){}UD(){}o0(){}};var gU=class extends g.N3{constructor(b){super();this.G=b;this.Ch=!0;this.HH=new Map}o0(b,R){const h=[];for(const K of this.HH.values()){const I=K.trigger;I.opportunityType===b&&(I.associatedSlotId&&I.associatedSlotId!==R||h.push(K))}h.length&&XI(this.G(),h)}Ff(b,R,h,K){if(this.HH.has(R.triggerId))throw new V("Tried to register duplicate trigger for slot.");if(!(R instanceof Lrx))throw new V("Incorrect TriggerType: Tried to register trigger of type "+R.triggerType+" in OpportunityEventTriggerAdapter"); this.HH.set(R.triggerId,new GG(b,R,h,K))}Zd(b){this.HH.delete(b.triggerId)}qz(){}Zs(){}HI(){}F$(){}J9(){}aB(){}Ds(){}Gf(){}UD(){}PR(){}cR(){}};var WS=class extends g.N3{constructor(b,R,h,K,I,N){super();this.J=b;this.Zq=R;this.BY=h;this.aH=K;this.uR=N;this.G=null;this.V=!1;this.Ch=!0;this.HH=new Map;R.get().addListener(this);this.addOnDisposeCallback(()=>{R.HY()||R.get().removeListener(this)}); I.get().addListener(this);this.addOnDisposeCallback(()=>{I.HY()||I.get().removeListener(this)})}Ff(b,R,h,K){b=new GG(b,R,h,K); if(R instanceof os||R instanceof bS||R instanceof Dn||R instanceof RN||R instanceof GP2){if(this.HH.has(R.triggerId))throw new V("Tried to register duplicate trigger for slot.");this.HH.set(R.triggerId,b)}else throw new V("Incorrect TriggerType: Tried to register trigger of type "+R.triggerType+" in PrefetchTriggerAdapter");}Zd(b){this.HH.delete(b.triggerId)}qz(b){const R=b.slotFulfillmentTriggers.find(h=>h instanceof os); R&&(gT(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",R.breakDurationMs,new Set([b.slotId]),!0),cz(this.aH.get(),"ads_css",`sid.${b.slotId};bd.${R.breakDurationMs}`))}Zs(){}HI(){}F$(){}J9(){}aB(){}Ds(){}Gf(){}UD(){}PR(){}cR(){}o0(){}rV(b){if(!this.G)return cz(this.aH.get(),"ads_nfi",`a.pta;cid.${b.identifier}`),!1;this.Y&&this.Y.stop();this.S&&this.S.qa();const R=FLx(this,b);if(!R){var h=o9H(this);const K=this.D!==void 0&&Date.now()<=this.D+1E4;cz(this.aH.get(),"ads_ncfs",`cid.${b.identifier};cd.${b.oY.toFixed(3)};ccs.${K};cfa.${this.V};bdc.${h.length};${h.slice(0, 6).map(I=>`;bd.${I}`).join("")}`); return K?(tM(this.uR,this.G,b),!0):!1}(h=R.slot.clientMetadata.rp("metadata_type_triggering_cue_point"))?h.current=b:u2("Expected triggering cue point ref to be available",R.slot);(new g.bI(()=>{const K=R.trigger,I=R.slot;gT(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",K.breakDurationMs,new Set,!0);gT(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",K.breakDurationMs,new Set,!1);let N=0;for(const p of this.HH.values()){const l=p.trigger;p.slot.slotId===I.slotId&& (this.HH.delete(l.triggerId),N++)}cz(this.aH.get(),"ads_csf",`sid.${I.slotId};bd.${K.breakDurationMs};dt.${N}`)},10)).start(); return!0}MV(){}JE(b){this.V=!1;this.D=Date.now();this.G&&this.G.contentCpn!==b?(u2("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:b,fetchInstructionsCpn:this.G.contentCpn}),Wq(this)):(this.X=new g.bI(()=>{if(this.V)delete this.X;else{var R=this.BY.get().getGetAdBreakContext();Number(R?.livePlaybackPosition?.utcTimeMillis)>0?(delete this.X,boP(this)):this.X?.start()}},200),this.X?.start())}TT(b){this.G&&this.G.contentCpn!==b&&u2("Expected content video of the current fetch instructions to end", void 0,void 0,{contentCpn:b, fetchInstructionsCpn:this.G.contentCpn},!0);Wq(this)}ym(b){if(this.G)u2("Unexpected multiple fetch instructions for the current content");else{this.G=b;b=R8K(b);this.Y=new g.bI(()=>{boP(this)},b?b:6E5); this.Y.start();this.S=new g.bI(()=>{this.G&&(this.Y&&(this.Y.stop(),this.Y.start()),DCP(this,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},h82(this.G)); b=this.BY.get().getCurrentTimeSec(1,!1);for(const R of this.Zq.get().HB)cz(this.aH.get(),"nocache",`ct.${Date.now()};cmt.${b};d.${R.oY.toFixed(3)};tw.${R.startSecs-b};cid.${R.identifier};`)}}X5(){super.X5();Wq(this)}};var zET=class extends g.N3{constructor(b){super();this.X=b;this.Ch=!0;this.HH=new Map;this.G=new Map;this.Y=new Map}Ff(b,R,h,K){if(this.HH.has(R.triggerId))throw new V("Tried to register duplicate trigger for slot.");if(!(R instanceof r1))throw new V("Incorrect TriggerType: Tried to register trigger "+`of type ${R.triggerType}`+" in TimeRelativeToLayoutEnterTriggerAdapter");this.HH.set(R.triggerId,new GG(b,R,h,K));b=this.G.has(R.triggeringLayoutId)?this.G.get(R.triggeringLayoutId):new Set;b.add(R); this.G.set(R.triggeringLayoutId,b)}Zd(b){this.HH.delete(b.triggerId);if(!(b instanceof r1))throw new V("Incorrect TriggerType: Tried to unregister trigger "+`of type ${b.triggerType}`+" in TimeRelativeToLayoutEnterTriggerAdapter");var R=this.Y.get(b.triggerId);R&&(R.dispose(),this.Y.delete(b.triggerId));if(R=this.G.get(b.triggeringLayoutId))R.delete(b),R.size===0&&this.G.delete(b.triggeringLayoutId)}qz(){}Zs(){}HI(){}F$(){}J9(){}aB(){}Ds(){}Gf(){}UD(){}o0(){}PR(b,R){if(this.G.has(R.layoutId)){b=this.G.get(R.layoutId); for(const h of b)b=new g.bI(()=>{const K=this.HH.get(h.triggerId);XI(this.X(),[K])},h.durationMs),b.start(),this.Y.set(h.triggerId,b)}}cR(){}};var SA=class extends g.N3{constructor(){super();this.HH=new Map}Ff(b,R){if(this.HH.has(R.triggerId))throw new V("Tried to register duplicate trigger for slot.");throw new V("Incorrect TriggerType: Tried to register trigger of type "+R.triggerType+" in VideoTransitionTriggerAdapter.");}Zd(b){this.HH.delete(b.triggerId)}};var ne=class{constructor(b){this.VX=b;this.Y=new Map;this.G=new Map;this.X=new Map}};var ER=class{constructor(b){this.Y=b;this.G=R=>hM(this.Y.get(),R)}};var Jm=class{constructor(b,R,h){this.Y=b;this.X=R;this.VX=h;this.G=K=>hM(this.Y.get(),K)}iW(b){return b.kind==="AD_PLACEMENT_KIND_START"}};var uNT=class{G(b){b&&g.yp("adsSeenClientLogging",{serializedAdServingDataEntry:b.serializedAdServingDataEntry})}};var UVK=class extends g.N3{constructor(b,R){super();this.VX=b;this.Y=R;this.eventCount=0;this.X=XDs()()}logEvent(b){this.G(b)}G(b,R,h,K,I,N,p,l,a,v,B,H=0){pM(this.VX.get(),"h5_enable_pacf_debug_logs")&&console.log(`[PACF]: ${b}`,"slot:",I,"layout:",N,"ping:",p,"Opportunity:",{opportunityType:R,associatedSlotId:h,vTY:K,FYH:l,adSlotLoggingData:a,adLayoutLoggingData:v});try{const q=()=>{if(!this.VX.get().A.L().N("html5_disable_client_tmp_logs")&&b!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){b||u2("Empty PACF event type", I,N);var d=TM(this.Y.get());const t={eventType:b,eventOrder:++this.eventCount},S={};I&&(S.slotData=ET(d,I));N&&(S.layoutData=zvB(d,N));p&&(S.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:p.G.serializedAdPingMetadata,pingIndex:p.index});l&&(S.triggerData=n9(l.trigger,l.category));R&&(S.opportunityData=Ufe(d,R,h,K));d={organicPlaybackContext:{contentCpn:od(this.s9.get(),1).clientPlaybackNonce}};d.organicPlaybackContext.isLivePlayback=od(this.s9.get(), 1).AO;d.organicPlaybackContext.isMdxPlayback=od(this.s9.get(),1)?.isMdxPlayback;od(this.s9.get(),1)?.daiEnabled&&(d.organicPlaybackContext.isDaiContent=!0);const J=od(this.s9.get(),2)?.clientPlaybackNonce;J&&(d.adVideoPlaybackContext={adVideoCpn:J});d&&(S.externalContext=d);t.adClientData=S;a&&(t.serializedSlotAdServingData=a.serializedSlotAdServingDataEntry);v&&(t.serializedAdServingData=v.serializedAdServingDataEntry);B&&(t.errorInfo=B);g.yp("adsClientStateChange",{adsClientEvent:t})}}; H&&H>0?g.z6(g.G6(),()=>q(),H):q()}catch(q){pM(this.VX.get(),"html5_log_pacf_logging_errors")&&g.z6(g.G6(),()=>{u2(q instanceof Error?q:String(q),I,N,{pacf_message:"exception during pacf logging"})})}}};var PrD=class extends UVK{constructor(b,R,h){super(b,R);this.VX=b;this.s9=h}G(b,R,h,K,I,N,p,l,a,v,B){var H=this.VX.get();g.hB(H.A.L())?(H=this.VX.get(),H=g.fg(H.A.L().experiments,"H5_async_logging_delay_ms")):H=void 0;super.G(b,R,h,K,I,N,p,l,a,v,B,H)}};var k$=class{constructor(){this.G=new Map}clear(){this.G.clear()}};var QU=class{constructor(b){this.G="pending";this.Y=[];this.X=[];try{b(this.V.bind(this),this.reject.bind(this))}catch(R){this.reject(R)}}state(){return this.G==="fulfilled"?{state:"fulfilled",value:this.result}:this.G==="rejected"?{state:"rejected",reason:this.error}:{state:"pending"}}V(b){e$(b)||xH(b)?cq(mS(b),this.V.bind(this),this.reject.bind(this)):(this.G="fulfilled",this.result=b,up(this))}reject(b){this.G="rejected";this.error=b;up(this)}},xH=ST(b=>R3T(b)?b instanceof QU:!1);var GHw=!1,DH,Lg,wT,F4,o0,gVP=class extends g.N3{constructor(b){super();this.counter=[0,0,0,0];this.Y=new Uint8Array(16);this.G=16;if(!GHw){var R,h=new Uint8Array(256),K=new Uint8Array(256);var I=1;for(R=0;R<256;R++)h[I]=R,K[R]=I,I^=I<<1^(I>>7&&283);DH=new Uint8Array(256);Lg=rT(256);wT=rT(256);F4=rT(256);o0=rT(256);for(let p=0;p<256;p++){I=p?K[255^h[p]]:0;I^=I<<1^I<<2^I<<3^I<<4;I=I&255^I>>>8^99;DH[p]=I;R=I<<1^(I>>7&&283);var N=R^I;Lg[p]=R<<24|I<<16|I<<8|N;wT[p]=N<<24|Lg[p]>>>8;F4[p]=I<<24|wT[p]>>> 8;o0[p]=I<<24|F4[p]>>>8}GHw=!0}I=rT(44);for(h=0;h<4;h++)I[h]=b[4*h]<<24|b[4*h+1]<<16|b[4*h+2]<<8|b[4*h+3];for(K=1;h<44;h++)b=I[h-1],h%4||(b=(DH[b>>16&255]^K)<<24|DH[b>>8&255]<<16|DH[b&255]<<8|DH[b>>>24],K=K<<1^(K>>7&&283)),I[h]=I[h-4]^b;this.key=I}encrypt(b){const R=b.length;b=new Uint8Array(b.buffer.slice(b.byteOffset,b.byteOffset+R));const h=this.Y;let K=0;for(;K{const b=K=>new Uint8Array(K),R=K=>{const I=new Uint8Array(K.length); for(let N=0;N=64&&(this.J.set(b.subarray(0,64-this.Y),this.Y),R=64-this.Y,this.Y=0,c7K(this,this.J,0));for(;R+64<=h;R+=64)c7K(this,b,R);R{this.append(R)})}S(){return this.totalLength}append(b){if(oMP(this,b)){const R=this.G[this.G.length-1]; this.G[this.G.length-1]=new Uint8Array(R.buffer,R.byteOffset,R.length+b.length);$I(this)}else this.G.push(b);this.totalLength+=b.length}split(b){const R=new ju,h=new ju;for(const K of this.G)b>=K.length?(R.append(K),b-=K.length):b?(R.append(new Uint8Array(K.buffer,K.byteOffset,b)),h.append(new Uint8Array(K.buffer,K.byteOffset+b,K.length-b)),b=0):h.append(K);return{xr:R,ZH:h}}isFocused(b){return b>=this.X&&b{const b=K=>new Uint8Array(K),R=K=>{const I=new Uint8Array(K.length); for(let N=0;N{const h=g.Z(b?.commandMetadata,g.IP)?.rootVe||g.Z(b?.commandMetadata,yCP)?.screenVisualElement?.uiType;if(h){var K=g.Z(b?.commandMetadata,xp3);if(K?.parentTrackingParams){var I=g.jU(K.parentTrackingParams);if(K.parentCsn)var N=K.parentCsn}else R.clickedVisualElement?I=R.clickedVisualElement:b.clickTrackingParams&&(I=g.jU(b.clickTrackingParams)); a:{K=g.Z(b,g.hw);var p=g.Z(b,Yys);if(K){if(p=HQ3(K,"VIDEO")){K={token:p,videoId:K.videoId};break a}}else if(p&&(K=HQ3(p,"PLAYLIST"))){K={token:K,playlistId:p.playlistId};break a}K=void 0}R={cttAuthInfo:K,parentCsn:N,...R};g.cg("expectation_logging")&&(R.loggingExpectations=g.Z(b?.commandMetadata,yCP)?.loggingExpectations||void 0);mF(this,h,I,R)}else g.kJ(new g.A$("Error: Trying to create a new screen without a rootVeType",b))})()}clickCommand(b,R,h=0){return z_w(this,b.clickTrackingParams,R,h)}stateChanged(b, R,h=0){this.visualElementStateChanged(g.jU(b),R,h)}visualElementStateChanged(b,R,h=0){h===0&&this.Y.has(h)?this.U.push([b, R]):yFe(this,b,R,h)}Kv(b){const R=b.cpn;if(this.G.length&&this.G[this.G.length-2]?.cpn!==R){var h=g.Ui();if(R&&h&&h!=="UNDEFINED_CSN"){let K;b.itct&&(K=g.jU(b.itct||""));const I={};g.cg("web_playback_associated_log_ctt")&&b.g3&&(I.cttAuthInfo={token:b.g3,videoId:b.videoId});b={cpn:R,csn:h};g.cg("web_playback_associated_ve")&&K&&(g.R1(h,K),b.playbackVe=K.getAsJson());g.yp("playbackAssociated",b,I);this.G[this.G.length-1].cpn=R}}}};var XW=class{fetch(b,R,h){const K=GRK(b,R,h);return new Promise((I,N)=>{const p=()=>{if(h?.lT)try{const l=this.handleResponse(b,K.status,K.response,h);I(l)}catch(l){N(l)}else I(this.handleResponse(b,K.status,K.response,h))}; K.onerror=p;K.onload=p;K.send(R.body??null)})}handleResponse(b,R,h,K){h=h.replace(")]}'",""); let I;try{I=JSON.parse(h)}catch(N){g.kJ(new g.A$("JSON parsing failed after XHR fetch",b,R,h));if(K?.lT&&h)throw new g.uN("JSON parsing failed after XHR fetch");I={}}R!==200&&(g.kJ(new g.A$("XHR API fetch failed",b,R,h)),I={...I,errorMetadata:{status:R}});return I}};var Vj=class{static getInstance(){let b=g.YB("ytglobal.storage_");b||(b=new Vj,g.kB("ytglobal.storage_",b));return b}async estimate(){const b=navigator;if(b.storage?.estimate)return b.storage.estimate();if(b.webkitTemporaryStorage?.queryUsageAndQuota)return gUK()}};g.kB("ytglobal.storageClass_",Vj);var EVT=class{constructor(b,R){this.handleError=b;this.G=R;this.Y=!1;self.document===void 0||self.addEventListener("beforeunload",()=>{this.Y=!0}); this.X=Math.random()<=.2}cg(b){this.handleError(b)}logEvent(b,R){switch(b){case "IDB_DATA_CORRUPTED":g.cg("idb_data_corrupted_killswitch")||this.G("idbDataCorrupted",R);break;case "IDB_UNEXPECTEDLY_CLOSED":this.G("idbUnexpectedlyClosed",R);break;case "IS_SUPPORTED_COMPLETED":g.cg("idb_is_supported_completed_killswitch")||this.G("idbIsSupportedCompleted",R);break;case "QUOTA_EXCEEDED":SMq(this,R);break;case "TRANSACTION_ENDED":this.X&&Math.random()<=.1&&this.G("idbTransactionEnded",R);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":this.G("idbTransactionAborted", {...R,hasWindowUnloaded:this.Y})}}};var JBw=g.HW("yt-player-local-media",{fX:{index:{JZ:2},media:{JZ:2},captions:{JZ:5}},shared:!1,upgrade(b,R){R(2)&&(g.Lk(b,"index"),g.Lk(b,"media"));R(5)&&g.Lk(b,"captions");R(6)&&(w8(b,"metadata"),w8(b,"playerdata"))},version:5});var TJT={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},Y$;a:{var eA=g.zK();eA=eA.toLowerCase();if(g.yX(eA,"android")){var JGT=eA.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(JGT){const b=parseFloat(JGT[1]);if(b<100){Y$=b;break a}}var kHK=eA.match("("+Object.keys(TJT).join("|")+")");Y$=kHK?TJT[kHK[0]]:0}else Y$=void 0}var OR=Y$,d6=OR>=0;var nU3=Qg(()=>window.matchMedia?.("(prefers-reduced-motion: reduce)").matches);var MJ;g.CG=new V2T;MJ=0;g.YZx=class{constructor(b){this.videoData=b;this.G={c1a:()=>{const R=[];if(g.CG.isInitialized()){var h="";this.videoData&&this.videoData.XR&&(h=this.videoData.XR+`&${"r1b"}=${this.videoData.clientPlaybackNonce}`);h={atr_challenge:h};XV("bg_v",void 0,"player_att");(h=kRq(h))?(XV("bg_s",void 0,"player_att"),R.push(`${"r1a"}=${h}`)):(XV("bg_e",void 0,"player_att"),R.push("r1c=2"))}else XV("bg_e",void 0,"player_att"),window.trayride||window.botguard?R.push("r1c=1"):R.push("r1c=4");R.push(`${"r1d"}=${g.CG.getState()}`); return R.join("&")}, c6a:R=>"r6a="+(Number(R.c)^BF()), c6b:R=>`${"r6b"}=${Number(R.c)^Number(g.x("CATSTAT",0))}`}; this.videoData&&this.videoData.XR?this.Ny=AQ(this.videoData.XR):this.Ny={}}};var F2=Qq2()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.po?!0:!1;var r7={oD:function(b){b[f[35]]()}, mg:function(b,R){var h=b[0];b[0]=b[R%b[f[4]]];b[R%b[f[4]]]=h}, lq:function(b,R){b[f[46]](0,R)}};var eEs={Ar:"adunit",k$:"detailpage",gF:"editpage",Vq:"embedded",Ip:"leanback",sX:"previewpage",Kr:"profilepage",vc:"unplugged",xW:"playlistoverview",ROr:"sponsorshipsoffer",dJY:"shortspage",R_:"handlesclaiming",Fk:"immersivelivepage",U6:"creatormusic",JK:"immersivelivepreviewpage",uX:"admintoolyurt",jHX:"shortsaudiopivot",eQ:"consumption",Me:"background_audio_playback"};var xt2=2592E3;var Sq;g.hP={STOP_EVENT_PROPAGATION:"html5-stop-propagation",IV_DRAWER_ENABLED:"ytp-iv-drawer-enabled",IV_DRAWER_OPEN:"ytp-iv-drawer-open",MAIN_VIDEO:"html5-main-video",VIDEO_CONTAINER:"html5-video-container",VIDEO_CONTAINER_TRANSITIONING:"html5-video-container-transitioning",HOUSE_BRAND:"house-brand"};Sq={RIGHT_CONTROLS_LEFT:"ytp-right-controls-left",RIGHT_CONTROLS_RIGHT:"ytp-right-controls-right"};var LIK={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var DtK={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},bdH={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"},OcT={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var aA3={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};var eMK;g.Mj=class{constructor(b,R=!1){this[f[19]]=b;this[f[49]]=R;this[f[27]]=this[f[8]]=this[f[48]]=f[7];this[f[1]]={};this[f[5]]=f[7]}set(b,R){this[f[1]][b]!==R&&(this[f[1]][b]=R,this[f[5]]=f[7])}get(b){tR(21,this);return this[f[1]][b]||null}xj(){this[f[5]]||(this[f[5]]=Zu(27,this));return this[f[5]]}clone(){const b=new g.Mj(this[f[19]],this[f[49]]);b[f[48]]=this[f[48]];b[f[8]]=this[f[8]];b[f[27]]=this[f[27]];b[f[1]]=g.$T(this[f[1]]);b[f[5]]=this[f[5]];return b}};eMK=[Y$K];g.Uw=class{constructor(b,R){this.id=b;this.Nj=R;this.captionTracks=[];this.X=this.V=null;this.xtags="";this.J=this.S=!1;this.G=null;this.Y="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";b=this.Nj.id.split(".");b.length>1&&(this.S=b[1]==="2",this.J=b[1]==="4")}getLanguageInfo(){return this.Nj}getXtags(){if(!this.xtags){const b=this.id.split(";");b.length>1&&(this.xtags=b[1])}return this.xtags}toString(){return this.Nj.name}isAutoDubbed(){return this.Nj.getIsAutoDubbed()}}; g.Uw.prototype.getLanguageInfo=g.Uw.prototype.getLanguageInfo;g.Uw.prototype.isAutoDubbed=g.Uw.prototype.isAutoDubbed;var $a=class{constructor(b,R,h,K,I=0){this.Y=b;this.G=R;this.X=h;this.reason=K;this.nz=I}equals(b){return this.Y===b.Y&&this.G===b.G&&this.X===b.X&&this.reason===b.reason&&(!NA||this.nz===b.nz)}isLocked(){return this.X&&!!this.Y&&this.Y===this.G}compose(b){if(b.X&&pC(b))return vM;if(b.X||pC(this))return b;if(this.X||pC(b))return this;let R=this.Y&&b.Y?Math.max(this.Y,b.Y):this.Y||b.Y;const h=this.G&&b.G?Math.min(this.G,b.G):this.G||b.G;R=Math.min(R,h);let K=0;NA&&(K=this.nz!==0&&b.nz!==0?Math.min(this.nz, b.nz):this.nz===0?b.nz:this.nz);return NA&&R===this.Y&&h===this.G&&K===this.nz||!NA&&R===this.Y&&h===this.G?this:NA?new $a(R,h,!1,h===this.G&&K===this.nz?this.reason:b.reason,K):new $a(R,h,!1,h===this.G?this.reason:b.reason)}V(b){return!b.video||NA&&this.nz!==0&&this.nzb.V(I)),h=[],K={}; for(let I=0;Ib.V(R))}getAvailableAudioTracks(){return this.audioTracks}G(){return!!this.Y}};var A2K=new Set(["356"]),xVD=class extends g.N3{constructor(){super(...arguments);this.Y=null;this.G=new Map}X5(){super.X5()}};var JU=class{constructor(b,R,h,K,I,N,p,l,a){this.Dr=b;this.startTime=R;this.duration=h;this.ingestionTime=K;this.sourceURL=I;this.Yj=a;this.endTime=R+h;this.G=p||0;this.range=N||null;this.pending=l||!1;this.Yj=a||null}};g.x$=class{constructor(){this.segments=[];this.Y=null;this.S=!0;this.J=""}D(b){this.segments.push(b)}mQ(b){return!!this.X(b)}getDuration(b){return(b=this.X(b))?b.duration:0}U(b){return this.getDuration(b)}A3(){return 0}cZ(){return this.segments.length?this.segments[0].Dr:-1}hh(b){return(b=this.X(b))?b.ingestionTime:NaN}jK(){return this.segments.length?this.segments[this.segments.length-1].Dr:-1}OB(b){return this.jK()===b&&!this.S&&b>=0}Aw(){const b=this.segments[this.segments.length-1];return b?b.endTime: NaN}f0(){return this.segments[0].startTime}Zp(){return this.segments.length}G(){return 0}dt(b){return(b=this.V(b))?b.Dr:-1}K(b){return(b=this.X(b))?b.sourceURL:""}getStartTime(b){return(b=this.X(b))?b.startTime:0}Ts(b){return this.getStartTime(b)+this.getDuration(b)}isLoaded(){return this.segments.length>0}X(b){if(this.Y&&this.Y.Dr===b)return this.Y;b=g.Yz(this.segments,new JU(b,0,0,0,""),(R,h)=>R.Dr-h.Dr); return this.Y=b>=0?this.segments[b]:null}V(b){if(this.Y&&this.Y.startTime<=b&&bR.startTime-h.startTime); return this.Y=b>=0?this.segments[b]:this.segments[Math.max(0,-b-2)]}append(b){if(b.length)if(b=g.Sc(b),this.segments.length){var R=this.segments.length?g.Ng(this.segments).endTime:0,h=b[0].Dr-this.jK();h>1&&z3(this.segments);h=h>0?0:-h+1;for(let K=h;K1?b=b.HG:(R=hU(R,lh(this,this.zG(b,R),b)),b=Math.max(this.S,R.timedOut)+b.Av*(this.X-this.S)+.25*this.K,b=b>3?1E3*1.6**(b-3):0);return b===0?!0:this.G6+b<(0,g.c)()}C(b,R){this.G.set(b,R);this.Y.set(b,R);this.V&&this.V.set(b,R)}RF(b){return this.Y.get(b)}m7(){return this.Y.get("cpn")||""}kH(b,R){b.DL===this.G&&(this.G= Qu(b,R));b.DL===this.V&&(this.V=Qu(b,R))}nR(){this.U=!0}y9(){return this.G!==this.V&&!this.J}};var mN=class{constructor(b,R,h,K){this.initRange=h;this.indexRange=K;this.Y=null;this.G6=!1;this.Zr=0;this.nR=this.Kg=this.U=null;this.info=R;this.yV=new YDe(b)}G(){return!!this.Y&&this.index.isLoaded()}MJ(){return!1}pR(b){return[b]}gp(b){return[b]}};var Bt=class{constructor(b,R){this.start=b;this.end=R;this.length=R-b+1}toString(){return this.start+"-"+(this.end==null?"":this.end)}G(){return this.end==null?{start:String(this.start)}:{start:String(this.start),end:String(this.end)}}};var ih=class{constructor(b,R,h,K="",I,N,p,l,a,v,B,H=""){this.type=b;this.hX=R;this.range=h;this.source=K;this.oU=B;this.clipId=H;this.G6=[];this.D="";this.Dr=-1;this.C=0;this.D=K;this.Dr=I>=0?I:-1;this.startTime=N||0;this.duration=p||0;this.G=l||0;this.Y=a>=0?a:this.range?this.range.length:NaN;this.X=this.range?this.G+this.Y===this.range.length:v===void 0?!!this.Y:v;this.range?(this.V=this.startTime+this.duration*this.G/this.range.length,this.K=this.duration*this.Y/this.range.length,this.S=this.V+ this.K):RHD(this)}J(){return this.X&&this.hX.index.OB(this.Dr)}isEncrypted(){return this.hX.info.isEncrypted()}equals(b){return!(!b||b.hX!==this.hX||b.type!==this.type||(this.range&&b.range?b.range.start!==this.range.start||b.range.end!==this.range.end:b.range!==this.range)||b.Dr!==this.Dr||b.G!==this.G||b.Y!==this.Y)}U(){return this.type===4}fT(){return!!this.hX.info.video}nR(){return this.Dr}vR(){const b=AU(this);let R="";g.Z2(b,(h,K)=>{R+=`${K}_${h}_`}); return R.slice(0,-1)}};var TL=class{constructor(b,R){this.kZ=b;this.V=this.G=null;this.S=this.Wr=NaN;this.zG=this.requestId=null;this.w2={FH9:()=>this.range}; this.yV=b[0].hX.yV;this.Y=R||"";this.kZ[0].range&&this.kZ[0].Y>0&&(Dxq(b)?(this.range=oJx(b),this.X=this.range.length):(this.range=this.kZ[this.kZ.length-1].range,this.X=bWe(b)))}e9(){return this.G?this.G.xj():""}isDecorated(){return!!(this.G||this.V&&this.V.H$)}r9(){return yN(this.kZ[0])}kH(b,R){this.yV.kH(b,R);if(this.G){this.G=Qu(b,R);for(const h of["acpns","cpn","daistate","skipsq"])this.G["set"](h,null)}this.requestId=b.get("req_id")}};var Nz=class extends mN{constructor(b,R,h,K,I,N=0){super(b,R,K);this.xZ=h;this.Dd=N;this.index=I||new g.x$}X(){return!1}K(){return!0}T6(){return!1}MJ(){return!this.xZ}D(){return new TL([new ih(1,this,this.initRange,"getMetadataRequestInfo")],this.xZ)}C(){return null}SY(b){this.V(b);return this.K()&&b.Y&&!b.X?new TL([new ih(b.type,b.hX,b.range,"liveGetNextRequestInfoBySegment",b.Dr,b.startTime,b.duration,b.G+b.Y,NaN,!0)],this.index.K(b.Dr)):this.S(ji(b),!1)}J(b,R=!1){b=this.index.dt(b);R&&(b=Math.min(this.index.jK(), b+1));return this.S(b,!0)}JX(b){OP(b)}V(b){return b.Y===0?!0:this.index.jK()>b.Dr&&this.index.cZ()<=b.Dr+1}update(b,R,h){this.index.append(b);zLe(this.index,h);b=this.index;b.S=R;b.J="update"}G(){return this.MJ()?!0:super.G()}S(b,R){const h=this.index.K(b),K=this.index.getStartTime(b);let I=this.index.getDuration(b),N;R?I=N=0:N=this.info.nz>0?this.info.nz*I:1E3;return new TL([new ih(3,this,void 0,"liveCreateRequestInfoForSegment",b,K,I,0,N,!R)],h)}vY(){return this.MJ()?0:this.initRange.length}NJ(){return!1}};var P0w=class{constructor(b,R,h,K,I){this.Dr=b;this.startSecs=R;this.oY=h;this.G=K||NaN;this.Y=I||NaN}};var nO=class{constructor(){this.G=[];this.Y=null;this.J=0;this.X=[];this.S=!1;this.D="";this.V=-1}update(b){var R=void 0;this.Y&&(R=this.Y);{const t=new nO;var h=Array.from(b.getElementsByTagName("S"));if(h.length){var K=+Wt(b,"timescale")||1,I=(+h[0].getAttribute("t")||0)/K,N=+Wt(b,"startNumber")||0;t.V=I;var p=R?R.startSecs+R.oY:0,l=Date.parse(qnD(Wt(b,"yt:segmentIngestTime")))/1E3;t.S=b.parentElement.tagName==="SegmentTemplate";t.S&&(t.D=Wt(b,"media"));b=R?N-R.Dr:1;t.J=b>0?0:-b+1;for(d of h){b= +d.getAttribute("d")/K;h=(+d.getAttribute("yt:sid")||0)/K;const S=+d.getAttribute("r")||0;for(let J=0;J<=S;J++){if(R&&N<=R.Dr){N++;continue}var a=new P0w(N,p,b,l+h,I);t.G.push(a);b:{var v=d;var B=K,H=a.startSecs;a=v.getAttribute("yt:cuepointTimeOffset");var q=v.getAttribute("yt:cuepointDuration");if(!a||!q){v=null;break b}a=Number(a);H=-a/B+H;B=Number(q)/B;q=v.getAttribute("yt:cuepointContext")||null;const e=v.getAttribute("yt:cuepointIdentifier")||"";v=v.getAttribute("yt:cuepointEvent")||"";v=new nC(H, B,q,e,mVq[v]||"unknown",a)}v&&t.X.push(v);N++;p+=b;I+=b;l+=b+h}}t.G.length&&(t.Y=g.Ng(t.G))}var d=t}this.J=d.J;this.Y=d.Y||this.Y;g.nr(this.G,d.G);g.nr(this.X,d.X);this.S=d.S;this.D=d.D;this.V===-1&&(this.V=d.getStreamTimeOffset())}getStreamTimeOffset(){return this.V===-1?0:this.V}};var ZcK=class{constructor(){this.V=[];this.G=null;this.Y={};this.X={}}};var cG2=class extends g.x${constructor({Dd:b=0,zE:R=!1,T7:h=0,A9:K=0,vg:I=Infinity,y4:N=0,VB:p=!1,cf:l=!1}={}){super();this.QS=this.IP=-1;this.YV=b;this.T7=h;this.zE=R;this.A9=K;this.vg=I;this.y4=N;((this.VB=p)||isFinite(I)&&this.vg>0)&&R&&oy&&(this.S=!1,this.J="postLive");this.cf=l}A3(){return this.YV}mQ(b,R){b=EP(this,b);return b>=0&&(R||!this.segments[b].pending)}cZ(){return this.zE?this.segments.length?this.V(this.f0()).Dr:-1:super.cZ()}f0(){if(this.VB)return 0;if(!this.zE)return super.f0();if(!this.segments.length)return 0; const b=Math.max(g.Ng(this.segments).endTime-this.T7,0);return this.A9>0&&this.V(b).Dr0)return this.QS/1E3;if(!this.segments.length)return super.Aw();var b=this.jK();if(!this.zE||b<=this.segments[this.segments.length-1].Dr)b=this.segments[this.segments.length-1];else{var R=this.segments[this.segments.length-1];b=new JU(b,Math.max(0,R.startTime-(R.Dr-b)*this.YV),this.YV,0,`sq/${b}`,void 0,void 0,!0)}return this.VB?Math.min(this.T7, b.endTime):b.endTime}Zp(){return this.zE?this.segments.length?this.jK()-this.cZ()+1:0:super.Zp()}jK(){let b=Math.min(this.vg,Math.max(super.jK(),this.IP));var R=this.T7*1E3;R=this.QS>0&&this.QS0&&this.IP>0&&!R&&(R=this.V(this.T7))&&(b=Math.min(R.Dr-1,b));return b}DS(){return this.segments.length?this.segments[this.segments.length-1]:null}D(b){var R=EP(this,b.Dr);if(R>=0)this.segments[R]=b;else if(this.segments.splice(-(R+1),0,b),this.y4&&b.Dr%(300/this.YV)===0){var h=this.segments[0].Dr, K=Math.floor(this.y4/this.YV);b=b.Dr-K;R=-(R+1)-K;R>0&&b>h&&(this.segments=this.segments.slice(R))}}G6(b){b=EP(this,b);b>=0&&this.segments.splice(b,1)}GS(){return this.IP}OB(b){return oy?!this.S&&b>=0&&this.jK()<=b:super.OB(b)}V(b){if(!this.zE)return super.V(b);if(!this.segments.length)return null;var R=this.segments[this.segments.length-1];if(b=R.endTime)R=R.Dr+Math.floor((b- R.endTime)/this.YV+1);else{R=ec(this.segments,K=>b=K.endTime?1:0); if(R>=0)return this.segments[R];var h=-(R+1);R=this.segments[h-1];h=this.segments[h];R=Math.floor((b-R.endTime)/((h.startTime-R.endTime)/(h.Dr-R.Dr-1))+1)+R.Dr}return this.X(R)}X(b){if(!this.zE)return super.X(b);if(!this.segments.length)return null;var R=EP(this,b);if(R>=0)return this.segments[R];const h=-(R+1);R=this.YV;if(h===0)var K=Math.max(0,this.segments[0].startTime-(this.segments[0].Dr-b)*R);else h===this.segments.length?(K=this.segments[this.segments.length-1],K=K.endTime+(b-K.Dr-1)*R):(K= this.segments[h-1],R=this.segments[h],R=(R.startTime-K.endTime)/(R.Dr-K.Dr-1),K=K.endTime+(b-K.Dr-1)*R);return new JU(b,K,R,0,`sq/${b}`,void 0,void 0,!0)}},oy=!1;var JzK=class extends Nz{constructor(b,R,h={}){super(b,R,"",void 0,void 0,h.Dd||0);this.index=new cG2(h)}T6(){return!0}G(){return!0}V(b){return this.K()&&b.Y&&!b.X||!b.hX.index.OB(b.Dr)}D(){}J(b,R=!1){return typeof b!=="number"||isFinite(b)?super.J(b,R):new TL([new ih(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.Dd,void 0,this.Dd*this.info.nz)],"")}S(b,R){if(this.index.mQ(b))return super.S(b,R);const h=this.index.getStartTime(b);let K=Math.round(this.Dd*this.info.nz),I=this.Dd;R&&(I= K=0);return new TL([new ih(3,this,void 0,"mlLiveCreateReqInfoForSeg",b,h,I,void 0,K,!R)],b>=0?`sq/${b}`:"")}};var u3T=class extends mN{constructor(b,R){super(b,R);b=this.index=new g.x$;b.S=!1;b.J="d"}X(){return!1}K(){return!1}T6(){return!1}D(){return new TL([new ih(1,this,void 0,"otfInit")],"sq/0")}C(){return null}SY(b){this.V(b);return iWq(this,ji(b),!1)}J(b,R=!1){b=this.index.dt(b);R&&(b=Math.min(this.index.jK(),b+1));return iWq(this,b,!0)}JX(b){b.info.type===1&&(this.Y||(this.Y=ae(b.Y)),b.G&&b.G.uri==="http://youtube.com/streaming/otf/durations/112015"&&zHD(this,b.G))}V(b){return b.Y===0?!0:this.index.jK()> b.Dr&&this.index.cZ()<=b.Dr+1}vY(){return 0}NJ(){return!1}};var Grx,u9x,WpT,SnH,g8x;g.kp=class{constructor(b){this.tag=b}};Grx=new Map;u9x=class{constructor(){this.G=new Map;this.w2={xbX:()=>this.G}}}; WpT=class{constructor(){this.G=10;this.Y=Date.now()}};SnH=new Map;g8x=new u9x;var QN=class{constructor(b,R){this.info=b;this.Y=R;this.G=null;this.V=this.X=-1;this.timestampOffset=0;this.isLocked=this.D=!1;this.S=this.info.hX.MJ()&&!this.info.G}J(b,R=!1,h=0){if(this.isLocked||b.isLocked||!fO(this.info,b.info)||this.info.X)return null;if(h){if(this.Y.totalLength+b.Y.totalLength>h)return null}else if(R&&(R=this.Y,h=b.Y,R=!(h.G.length?oMP(R,h.G[0]):1)),R)return null;R=new ih(this.info.type,this.info.hX,this.info.range,this.info.D,this.info.Dr,this.info.startTime,this.info.duration, this.info.G,this.info.Y,this.info.X,this.info.oU,this.info.clipId);h=b.info;R.Y+=h.Y;R.range&&(R.K+=h.K);R.S=h.S;R.X=h.X;h=new ju;Ie(h,this.Y);Ie(h,b.Y);R=new QN(R,h);R.G!=null&&b.G!=null&&g.Yp("dash",414627957,`merged slice emsg overridden; prev: ${R.G.s2()} next: ${b.G.s2()}`);R.G=b.G||this.G;R.X=this.X!==-1?this.X:b.X;R.V=this.V!==-1?this.V:b.V;return R}};g.PS=class{constructor(){this.count=0;this.Y=1;this.X=!1;this.offsets=new Float64Array(128);this.startTicks=new Float64Array(128)}mQ(b){return b<=this.jK()}G(b){return this.offsets[b]}getStartTime(b){return this.startTicks[b]/this.Y}Ts(b){return this.getStartTime(b)+this.getDuration(b)}hh(){return NaN}getDuration(b){b=this.U(b);return b>=0?b/this.Y:-1}U(b){return b+1=0}Aw(){return this.X?this.startTicks[this.count]/this.Y:NaN}f0(){return 0}Zp(){return this.count}K(){return""}dt(b){b=g.Yz(this.startTicks.subarray(0,this.count),b*this.Y);return b>=0?b:Math.max(0,-b-2)}isLoaded(){return this.jK()>=0}V_(b,R){if(b>=this.jK())return 0;let h=0;for(R=this.getStartTime(b)+R;bthis.getStartTime(b);b++)h=Math.max(h,OWw(this,b)/this.getDuration(b));return h}resize(b){b+=2;const R=this.offsets;this.offsets=new Float64Array(b+1);const h=this.startTicks;this.startTicks= new Float64Array(b+1);for(b=0;bthis.S3(I,N,p)}; this.index=new g.PS}D(b,R){var h=new ih(2,this,this.indexRange,"indexInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,R);const K=[new ih(1,this,this.initRange,"initInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,R),h];this.info.contentLength>0&&b&&(h=h.range.end+1,b=Math.min(b,this.info.contentLength-h),b>0&&K.push(new ih(4,this,q8(h,b),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,R)));return new TL(K)}JX(b){if(b.info.type===1){if(this.Y)return;this.Y=ae(b.Y)}else if(b.info.type=== 2){if(this.S||this.index.jK()>=0)return;if(g.wB(this.info)){var R=this.index,h=g.ei(b);b=b.info.range.start;var K=g.e9(h,0,1936286840);h=YiH(K);R.Y=h.timescale;var I=h.pO;R.offsets[0]=h.Xu+b+K.size;R.startTicks[0]=I;R.X=!0;var N=h.vz.length;for(var p=0;p0&&h===N[0].GY)for(h=0;h=R+h)break}K.length||(b=new g.A$("b189619593",`${b}`,`${R}`,`${h}`),g.X(b));return new TL(K)}pR(b){const R=this.gp(b.info),h=b.info.range.start+b.info.G,K=[];for(let I=0;I=this.index.G(h+1);)h++;return this.S3(h,R,b.Y).kZ}V(b){b.J();return this.G()?!0:b.range.end+1this.info.contentLength&&(R=new Bt(R.start,this.info.contentLength-1)),new TL([new ih(4,b.hX,R,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,b.clipId)]);b.type===4&&(b=this.gp(b),b=b[b.length-1]);let h=0;const K=b.range.start+b.G+b.Y;b.type===3&&(b.J(),h=b.Dr,K===b.range.end+1&&(h+=1));return this.S3(h,K,R)}SY(){return null}J(b,R=!1){b=this.index.dt(b);R&&(b=Math.min(this.index.jK(),b+1));return this.S3(b, this.index.G(b),0)}X(){return!0}K(){return!0}T6(){return!1}vY(){return this.indexRange.length+this.initRange.length}NJ(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1}};var LpH=class{constructor(b,R,h,K="",I="",N=""){this.displayName=b;this.vssId=R;this.languageCode=h;this.kind=K;this.xtags=I;this.id=N}};var Mvq={COLOR_PRIMARIES_BT709:"bt709",COLOR_PRIMARIES_BT2020:"bt2020",COLOR_PRIMARIES_UNKNOWN:null,COLOR_PRIMARIES_UNSPECIFIED:null},Q13={COLOR_TRANSFER_CHARACTERISTICS_BT709:"bt709",COLOR_TRANSFER_CHARACTERISTICS_BT2020_10:"bt2020",COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084:"smpte2084",COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67:"arib-std-b67",COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN:null,COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED:null};g.Ft=class{constructor(b,R,h,K=!1){this.name=b;this.id=R;this.isDefault=h;this.isAutoDubbed=K}getName(){return this.name}getId(){return this.id}getIsDefault(){return this.isDefault}getIsAutoDubbed(){return this.isAutoDubbed}toString(){return this.name}};g.Ft.prototype.getName=g.Ft.prototype.getName;g.Ft.prototype.getId=g.Ft.prototype.getId;g.Ft.prototype.getIsDefault=g.Ft.prototype.getIsDefault;g.Ft.prototype.getIsAutoDubbed=g.Ft.prototype.getIsAutoDubbed;var ZWq=/action_display_post/;g.uh=class extends g.NU{constructor(b="",R=null,h=!1){super();this.sourceUrl=b;this.isLivePlayback=h;this.NJ=this.duration=0;this.isPremiere=this.VB=this.K=this.isLiveHeadPlayable=this.isLive=this.Y=!1;this.vg=this.A9=0;this.isOtf=this.AO=!1;this.vY=(0,g.c)();this.nR=Infinity;this.G={};this.X=new Map;this.state=this.g4=0;this.D=null;this.isManifestless=!1;this.MJ=[];this.S=null;this.gp=0;this.J="";this.SY=NaN;this.Th=this.gz=this.timestampOffset=this.U=0;this.QL=this.Ja=NaN;this.bB=0;this.JX=this.C= !1;this.KR=[];this.wp={};this.fR=this.T6=NaN;this.w2={xaX:K=>{VN(this,K)}}; this.CR=R?.O9("html5_use_network_error_code_enums");iYe=!!R&&R.O9("html5_modern_vp9_mime_type");LO=!!R?.O9("html5_enable_flush_during_seek")&&g.y5();wX=!!R?.O9("html5_enable_reset_audio_decoder")&&g.y5()}isLoading(){return this.state===1}nU(){return this.state===3}pR(){return g.XH(this.G,b=>!!b.info.video&&b.info.video.qualityOrdinal>=2160)}V(){return g.XH(this.G,b=>!!b.info.contentProtection)}RH(b){var R=b.getElementsByTagName("Representation"); if(b.getElementsByTagName("SegmentList").length>0||b.getElementsByTagName("SegmentTemplate").length>0){this.AO=this.Y=!0;this.D||(this.D=new ZcK);j1D(this.D,b);this.publish("refresh");for(b=0;b=0?H=Ht(q):d=`${d}?range=${q}`}l.call(I,new JU(a.Dr,a.startSecs,a.oY,a.G,d,H,a.Y))}K=v}h.update(K,this.isLive,this.NJ)}AhH(this.D);return!0}this.duration=HWw(Wt(b,"mediaPresentationDuration"));a:{for(p=0;p{})}}resume(){KvT(this)}Ep(){if(this.isManifestless&&this.K&&sJ(this))return sJ(this); const b=this.G;let R=!1,h=NaN,K=NaN;for(const N in b){const p=b[N];var I=p.index;if(!I.isLoaded()||c5(p.info.mimeType))continue;p.nR&&(R=!0);I=I.Aw();p.info.Pr()&&(isNaN(h)||I0))return this.Ep()-b}}b=this.G;for(const R in b){const h=b[R].index;if(h.isLoaded()&&!c5(b[R].info.mimeType))return h.f0()}return 0}getStreamTimeOffset(){return this.U}hh(b){for(const R in this.G){const h= this.G[R].index;if(h.isLoaded()){const K=h.dt(b),I=h.hh(K);if(I)return I+b-h.getStartTime(K)}}return NaN}PH(){for(const b in this.G)this.G.hasOwnProperty(b)&&(this.G[b].Y=null,this.G[b].G6=!1)}};g.uh.prototype.xZ=RK(4);var iYe,LO,wX,Ba=null,Ha=!!navigator.mediaCapabilities?.decodingInfo,HYT={commentary:1,alternate:2,dub:3,main:4};var fB=new Set,qz=new Map;var U0e=class{constructor(b){this.uv=b;this.FM=this.GE=this.gp=this.S=this.V=this.Ab=this.NJ=this.G6=!1;this.D=this.J=0;this.xZ=!1;this.C=!0;this.pR=!1;this.X4=0;this.JX=this.vY=this.LM=this.MJ=!1;this.Y={};this.fR=this.CR=this.Sn=this.disableAv1=this.nR=this.jn=this.KR=this.wp=this.G=this.K=!1;this.T6=0;this.m_=this.uv.N("html5_disable_aac_preference");this.Zl=Infinity;this.V7=0;this.Ty=this.uv.zy();this.RH=this.uv.experiments.O9("html5_enable_vp9_fairplay");this.hc=this.uv.N("html5_force_av1_for_testing"); this.SK=this.uv.Mj().G.WY(Its);this.Zr=g.fg(this.uv.experiments,"html5_av1_ordinal_cap");this.Ys=this.uv.N("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.pz=this.uv.N("html5_account_onesie_format_selection_during_format_filter");this.nz=g.fg(this.uv.experiments,"html5_max_byterate");this.PH=this.uv.N("html5_enable_iamf_audio");this.SY=this.uv.experiments.O9("html5_allow_capability_merge");this.EW=this.uv.N("html5_enable_encrypted_av1")}};var Qr=class{constructor(b,R,h,K){this.flavor=b;this.keySystem=R;this.X=h;this.experiments=K;this.Y={};this.Oz=this.keySystemAccess=null;this.pB=this.cX=-1;this.zM=null;this.V=!!K&&K.O9("edge_nonprefixed_eme");K&&K.O9("html5_enable_vp9_fairplay")}clone(b){return new Qr(this.flavor,b,this.X,this.experiments)}G(){return this.keySystem==="com.youtube.fairplay.sbdl"}RT(){return{flavor:this.flavor,keySystem:this.keySystem}}getInfo(){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}}},Y2={playready:["com.youtube.playready","com.microsoft.playready"],widevine:["com.youtube.widevine.l3","com.widevine.alpha"]},SJe={widevine:"DRM_SYSTEM_WIDEVINE",fairplay:"DRM_SYSTEM_FAIRPLAY",playready:"DRM_SYSTEM_PLAYREADY"},XUq={widevine:1,fairplay:2,playready:3};var SDq=class extends g.N3{constructor(b,R,h,K=!1,I){super();this.uv=R;this.useCobaltWidevine=K;this.YZ=I;this.Y=[];this.X={};this.G={};this.callback=null;this.S=!1;this.V=[];this.initialize(b,!h)}initialize(b,R){for(const K of Object.keys(b)){var h=K;for(const I of b[h])if(I.contentProtection)for(const N of Object.keys(I.contentProtection)){h=N;let p=Y2[N];!p&&this.N("html5_enable_vp9_fairplay")&&h==="fairplay"&&(p=["com.youtube.fairplay.sbdl"]);if(p)for(const l of p)this.X[l]=this.X[l]||new Qr(h, l,I.contentProtection[h],this.uv.experiments),this.G[h]=this.G[h]||{},this.G[h][I.mimeType]=!0}}tN()&&(this.X["com.youtube.fairplay"]=new Qr("fairplay","com.youtube.fairplay","",this.uv.experiments),this.N("html5_enable_vp9_fairplay")||(this.G.fairplay=this.G.fairplay||{},this.G.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.G.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.Y=SCx(R,this.useCobaltWidevine,this.N("html5_enable_safari_fairplay")&&!0,this.N("html5_enable_vp9_fairplay")).filter(K=> !!this.X[K])}N(b){return this.uv.experiments.O9(b)}},e4;var VEB={"":"LIVE_STREAM_MODE_UNKNOWN",dvr:"LIVE_STREAM_MODE_DVR",lp:"LIVE_STREAM_MODE_LP",post:"LIVE_STREAM_MODE_POST",window:"LIVE_STREAM_MODE_WINDOW",live:"LIVE_STREAM_MODE_LIVE"};var C0T={OFF:"0",ON:"1",Iu:"2",Ux:"3"};var ME3={RED:"red",Nie:"white"};var rGB=class{constructor(b){b=tQ(b.serializedClientExperimentFlags??"","&");this.flags=new Map(Object.entries(b).map(([R,h])=>typeof h==="string"?[R,h]:[R,h[0]]))}WY(b){if(b.lL!==3)throw Error("WpccFlagRetriever only supports WPCC flags"); return QDq(this,b)}O9(b){return this.flags.get(`${b}`)==="true"}};var Loq=class{constructor(b,R,h){this.G=void 0;this.experimentIds=b?b.split(","):[];this.flags=tQ(R||"","&");b={};for(const K of this.experimentIds)b[K]=!0;this.experiments=b;h=new rGB(h);this.X=new UXe(h);this.Y=new zVs(h)}Mj(){return this.X}V8(){return this.Y}O9(b){b=this.WY(b);JSON.stringify(b);return b==="true"}WY(b){return this.flags[b]}};var wU2=Promise.resolve(),FoT=b=>wU2.then(b),uVK=window.queueMicrotask?window.queueMicrotask.bind(window):FoT;var R6T=class{constructor(b,R,h=!1){this.experiments=b;this.nR=R;this.T6=h;this.K=!!g.YB("cast.receiver.platform.canDisplayType");this.D={};this.U=!1;this.X=new Map;this.J=!0;this.G=this.Y=!1;this.G6=0;this.C=this.experiments.O9("html5_disable_vp9_encrypted");this.V=this.experiments.O9("html5_enable_encrypted_av1");b=g.YB("cast.receiver.platform.getValue");this.S=!this.K&&b&&b("max-video-resolution-vpx")||null;ZYK(this);this.Y=!!(tN()&&qj()>=21)}canPlayType(b,R){b=b.canPlayType?b.canPlayType(R):!1; Nr?b=b||oVB[R]:OR===2.2?b=b||DVs[R]:fX()&&(b=b||bFH[R]);return!!b}isTypeSupported(b){return this.K?window.cast.receiver.platform.canDisplayType(b):ND(b)}},DVs={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},bFH={"application/x-mpegURL":"maybe"},oVB={"application/x-mpegURL":"maybe"};var h6T=class extends g.NU{constructor(){super();this.items={}}add(b,R){if(!this.items[b]&&(R.k6||R.KlX||R.A6)){var h=this.items;let K=R;Object.isFrozen&&!Object.isFrozen(R)&&(K=Object.create(R),Object.freeze(K));h[b]=K;this.publish("vast_info_card_add",b)}}remove(b){const R=this.get(b);delete this.items[b];return R}get(b){return this.items[b]||null}isEmpty(){return g.RT(this.items)}};var KEP=class{constructor(b,R){this.G=b;this.cipher=this.G.exports.AES128CTRCipher_create(R.byteOffset)}encrypt(b){this.G.exports.AES128CTRCipher_encrypt(this.cipher,b.byteOffset,b.byteLength);return b}HY(){return this.cipher===0}dispose(){this.G.exports.AES128CTRCipher_release(this.cipher);this.cipher=0}};var rJT=class{constructor(){this.Y=this.Mu=0;this.G=Array.from({length:Zb.length}).fill(0)}Sh(b,R=1){this.Mu+=R;this.Y+=b;b/=R;for(let h=0;hN.apply(l,[B].concat(p)))}}}}e_(){return new $Oe}lO(b,R,h=1){R instanceof $Oe&&(Lv2(this,b,(0,g.c)()-R.startTimeMs,h),R.G=!0)}M1(b,R){const h=(0,g.c)(); R=R();Ma3(this,R,b,h)}Gw(){const b={};for(const h in this.G){if(!this.G.hasOwnProperty(h))continue;a:{var R=this.G[h];if(R.Mu===0){R=null;break a}let K=Math.ceil(R.Mu).toFixed(0)+"."+R.Y.toFixed(0);for(let I=0;I0)K+="."+Zb[I].toFixed(0)+"_"+R.G[I].toFixed(0);else break;R=K}R&&(b[h]=R)}this.G=new s9K;return b}toString(){return""}};var cS=new class{isActive(){return!1}uZ(){}e_(){}lO(){}M1(b,R){R()}Gw(){return{}}toString(){return""}},NQD=!!+vg("html5_enable_profiler"),pBT=!!+vg("html5_onesie_enable_profiler"),ut=NQD||pBT?new IKB:cS,hbH=NQD?ut:cS,ca=pBT?ut:cS;var lKK=class{emscripten_notify_memory_growth(){}},aKx=class{constructor(){this.proc_exit=()=>{}; this.fd_write=(b,R,h)=>{if(!this.exports)return 1;b=new Uint32Array(this.exports.memory.buffer,R,h*2);R=[];for(let I=0;II+N.length,0)}}},D0K=class{constructor(){this.env=new lKK; this.wasi_snapshot_preview1=new aKx}};var Xo=class{constructor(b,R,h){this.instance=b;this.G=h;this.exports=this.instance.exports;R.wasi_snapshot_preview1.exports=this.exports;b=Math.floor(Math.random()*256);R=Math.floor(Math.random()*256);h=0;try{h=this.exports.malloc(16);(new Uint8Array(this.exports.memory.buffer,h,16)).fill(b);if(this.exports.sentinel(h,16,R)!==R*16%256)throw"wasm.wm.vi";const K=new Uint8Array(this.exports.memory.buffer,h,16);for(let I=0;I<16;I++)if(K[I]!==(b+R)%256)throw`wasm.wm.vi${I}`;}finally{h!==0&&this.exports.free(h)}}malloc(b){return this.exports.malloc(b)}free(b){this.exports.free(b)}realloc(b, R){return this.exports.realloc(b,R)}Xq(b){var R=this.malloc(b.byteLength);R=new Uint8Array(this.exports.memory.buffer,R,b.byteLength);R.set(b);return R}lk(b){const R=b.slice();b.buffer===this.exports.memory.buffer&&this.free(b.byteOffset);return R}},hRH=new class{constructor(){this.G="WebAssembly"in window}},ug="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly);ca.uZ(Xo,{Xq:b=>({profile:"copyj2w",Mu:b===void 0?0:Math.ceil(b.byteLength/16)}), lk:b=>({profile:"copyw2j",Mu:b===void 0?0:Math.ceil(b.byteLength/16)})});var vfw=class{constructor(b,R,h){this.G=b;this.V=!1;R=this.G.Xq(R);this.Y=new KEP(b,R);this.G.free(R.byteOffset);h&&(this.X=this.G.Xq(h))}encrypt(b,R){return srB(this,b,R,!1).lf}HY(){return this.V}dispose(){this.HY()||(g.$l(this.Y),this.X&&this.G.free(this.X.byteOffset),this.V=!0)}};var BQ3=class{constructor(b,R,h){this.G=new vfw(b,R,h)}encrypt(b,R){try{return this.G.encrypt(b,R)}catch(h){Qp(h,"wasm ocwce"),g.kJ(h)}}Y(b,R){try{const h=srB(this.G,b,R,!0);return{lf:h.lf,signature:h.signature}}catch(h){Qp(h,"wasm ocwceas"),g.kJ(h)}}HY(){return this.G.HY()}dispose(){this.G.dispose()}};var HFe=class extends g.N3{constructor(b,R,h){super();this.encryptedClientKey=R;this.D=h;this.Y=new Uint8Array(b.buffer,0,16);this.X=new Uint8Array(b.buffer,16)}J(b){this.G=new BQ3(b,this.Y,this.X);g.n(this,this.G)}};var qpK=class extends g.N3{constructor(b,R){super();if(!R&&b)try{R=JSON.parse(b)}catch{}if(R){b=R.clientKey?CB(R.clientKey):null;var h=R.encryptedClientKey?CB(R.encryptedClientKey):null,K=R.keyExpiresInSeconds?Number(R.keyExpiresInSeconds)*1E3+(0,g.c)():null;b&&h&&K&&(this.G=new HFe(b,h,K),g.n(this,this.G));R.onesieUstreamerConfig&&(this.onesieUstreamerConfig=CB(R.onesieUstreamerConfig)||void 0);this.baseUrl=R.baseUrl}}};var dOH=class extends g.N3{constructor(){super();this.values={};this.rl={};this.Y={};this.X=this.G=0;this.V=new g.bI(()=>{IdB(this)},1E4); g.n(this,this.V)}};var fKs="blogger discover-ads ads-preview ads-fe gac books docs duo flix google-live google-one play play-ads shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),ldT={O3:"caoe",fp:"capsv",v0:"cbrand",VR:"cbr",SQ:"cbrver",Zu:"cchip",s6:"ccappver",KI:"ccrv",cU:"cfrmver",Hl:"c",ZN:"cver",DN:"ctheme",aJ:"cplayer",EY:"cmodel",Ru:"cnetwork",l4:"cos",OS_VERSION:"cosver",a4:"cplatform",JXe:"crqyear"},yZP=class extends g.N3{constructor(b,R,h,K){super();this.webPlayerContextConfig=R; this.c$=K;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.LN=this.fR=this.hc=this.BI=this.userDisplayName=this.userDisplayImage=this.yu="";this.G={};this.RH={};this.controlsType="0";this.Zk=NaN;this.xZ=!1;this.vD=(0,g.c)();this.U8=this.CR=0;this.b6=this.sE=!1;this.TG=!0;this.preferGapless=this.xI=this.wi=this.X=this.K0=!1;this.Tv=[];this.K5=!1;this.Te=0;b=b?g.$T(b):{};R&&R.csiPageType&&(this.csiPageType=R.csiPageType);R&&R.csiServiceName&&(this.csiServiceName=R.csiServiceName);R&&R.preferGapless&& (this.preferGapless=R.preferGapless);this.experiments=new Loq(R?R.serializedExperimentIds:b.fexp,R?R.serializedExperimentFlags:b.fflags,R??{});this.forcedExperiments=R?R.serializedForcedExperimentIds:kE("",b.forced_experiments)||void 0;this.cspNonce=R?.cspNonce?R.cspNonce:kE("",b.csp_nonce);this.N("web_player_deprecated_uvr_killswitch");try{var I=document.location.toString()}catch(q){I=""}this.HR=I;this.ancestorOrigins=(K=window.location.ancestorOrigins)?Array.from(K):[];this.V=E7(!1,R?R.isEmbed: b.is_embed);if(R&&R.device){if(K=R.device,K.androidOsExperience&&(this.G.caoe=`${K.androidOsExperience}`),K.androidPlayServicesVersion&&(this.G.capsv=`${K.androidPlayServicesVersion}`),K.brand&&(this.G.cbrand=K.brand),K.browser&&(this.G.cbr=K.browser),K.browserVersion&&(this.G.cbrver=K.browserVersion),K.cobaltReleaseVehicle&&(this.G.ccrv=`${K.cobaltReleaseVehicle}`),this.G.c=K.interfaceName||"WEB",this.G.cver=K.interfaceVersion||"html5",K.interfaceTheme&&(this.G.ctheme=K.interfaceTheme),this.G.cplayer= K.interfacePlayerType||"UNIPLAYER",K.model&&(this.G.cmodel=K.model),K.network&&(this.G.cnetwork=K.network),K.os&&(this.G.cos=K.os),K.osVersion&&(this.G.cosver=K.osVersion),K.platform&&(this.G.cplatform=K.platform),I=my(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),I==="all"||I==="once")K.chipset&&(this.RH.cchip=K.chipset),K.cobaltAppVersion&&(this.RH.ccappver=K.cobaltAppVersion),K.firmwareVersion&&(this.RH.cfrmver=K.firmwareVersion),K.deviceYear&&(this.RH.crqyear=K.deviceYear)}else this.G.c= b.c||"web",this.G.cver=b.cver||"html5",this.G.cplayer="UNIPLAYER";this.loaderUrl=R?this.V||N5K(this)&&R.loaderUrl?R.loaderUrl||"":this.HR:this.V||N5K(this)&&b.loaderUrl?kE("",b.loaderUrl):this.HR;this.V&&g.kB("yt.embedded_player.embed_url",this.loaderUrl);this.JX=GJ()||Wu();this.K=v8(this.loaderUrl,wZK)||!1;K=this.loaderUrl;this.mK=ad(v8(K,Ljx),K,!1,"Trusted Ad Domain URL");this.Zl=E7(!1,b.privembed);this.protocol=this.HR.indexOf("http:")===0?"http":"https";this.y0=bT3((R?R.customBaseYoutubeUrl:b.BASE_YT_URL)|| "")||bT3(this.HR)||`${this.protocol}://www.youtube.com/`;K=R?R.eventLabel:b.el;I="detailpage";K==="adunit"?I=this.V?"embedded":"detailpage":K==="embedded"||this.K?I=TJ(I,K,eEs):K&&(I="embedded");this.nR=I;Pde();K=null;I=R?R.playerStyle:b.ps;const N=g.iR(fKs,I);!I||N&&!this.K||(K=I);this.playerStyle=K;this.J=g.iR(fKs,this.playerStyle);this.houseBrandUserStatus=R?.houseBrandUserStatus;this.C=this.J&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard";this.dK=!this.C;this.vY=E7(!1,b.disableplaybackui); this.disablePaidContentOverlay=E7(!1,R?.disablePaidContentOverlay);this.disableSeek=E7(!1,R?.disableSeek);this.enableSpeedOptions=R?.enableSpeedOptions||(sD().defaultPlaybackRate?eq||g.gj||j4?g.yr&&Jc("20")||g.I5&&Jc("4")||g.HG&&Jc("11")||iG():!(g.HG&&!g.dj("chrome")||eq||g.dj("android")||g.dj("silk")):!1);this.jH=E7(!1,b.enable_faster_speeds);this.supportsVarispeedExtendedFeatures=R?.supportsVarispeedExtendedFeatures??!1;this.Y=E7(this.playerStyle==="blazer",b.is_html5_mobile_device||R&&R.isMobileDevice); this.jU=this.N("mweb_allow_background_playback")?!1:this.Y&&!this.J;this.gp=la();this.R$=g.B3;this.KZ=!!R?.embedsHostFlags?.optOutApiDeprecation;var p;R?R.hideInfo!==void 0&&(p=!R.hideInfo):p=b.showinfo;this.Z5=g.Fo(this)&&!this.KZ||E7(!wv(this)&&!op(this)&&!this.J,p);this.LZ=R?!!R.mobileIphoneSupportsInlinePlayback:E7(!1,b.playsinline);p=this.Y&&d6&&OR!=null&&OR>0&&OR<=2.3;K=R?R.useNativeControls:b.use_native_controls;this.D=g.Fo(this)&&this.Y;I=this.Y&&!this.D;K=g.rv(this)||!p&&E7(I,K)?"3":"1"; this.disableOrganicUi=!!R?.disableOrganicUi;I=R?R.controlsType:b.controls;this.controlsType=this.disableOrganicUi||I==="0"||I===0?"0":K;this.er=this.Y;this.controlsType==="1"&&(this.er||TJ("2",R?R.autohide:b.autohide,C0T));this.color=TJ("red",R?R.progressBarColor:b.color,ME3);this.KY=this.controlsType==="3";this.Ty=!this.V;this.Pq=(K=!this.Ty&&!op(this)&&!this.C&&!this.J&&!wv(this))&&!this.KY&&this.controlsType==="1";this.jn=g.LB(this)&&K&&this.controlsType==="0"&&!this.Pq&&!R?.embedsEnableEmc3ds; this.xQ=this.U$=p;this.FM=(this.controlsType==="3"||this.Y||E7(!1,b.use_media_volume))&&!this.D;this.nX=zJ&&!g.ZN(601)?!1:!0;this.oy=this.V||!1;this.gB=op(this)?"":(this.loaderUrl||b.post_message_origin||"").substring(0,128);this.widgetReferrer=kE("",R?R.widgetReferrer:b.widget_referrer);var l;R?R.disableCastApi&&(l=!1):l=b.enablecastapi;l=!this.K||E7(!0,l);p=!0;R&&R.disableMdxCast&&(p=!1);this.CN=this.N("enable_cast_for_web_unplugged")&&g.Mz(this)&&p||g.LW(this)&&p||l&&p&&this.controlsType==="1"&& !this.Y&&(op(this)||g.LB(this)||g.D4(this));this.qc=!!window.document.pictureInPictureEnabled||p4();l=R?!!R.supportsAutoplayOverride:E7(!1,b.autoplayoverride);this.x4=!(this.Y&&!g.Fo(this))&&!g.dj("nintendo wiiu")||l;this.cO=(R?!!R.enableMutedAutoplay:E7(!1,b.mutedautoplay))&&!1;l=(op(this)||wv(this))&&this.playerStyle==="blazer";this.OV=R?!!R.disableFullscreen:!E7(!0,b.fs);p=g.xE(g.bv(this))&&g.Fo(this);this.wp=!this.OV&&(l||g.XO())&&!p;this.O$=this.N("html5_picture_in_picture_logging_onresize"); this.Wk=g.fg(this.experiments,"html5_picture_in_picture_logging_onresize_ratio")??.33;this.jx=this.N("html5_picture_in_picture_blocking_onresize");this.dh=this.N("html5_picture_in_picture_blocking_ontimeupdate");this.m5=this.N("html5_picture_in_picture_blocking_document_fullscreen");this.E_=this.N("html5_picture_in_picture_blocking_standard_api");l=fX()&&Jc(58)&&!Wu();p=Nr||typeof MediaSource==="undefined";this.SK=this.N("uniplayer_block_pip")&&(l||p)||this.jx||this.dh||this.E_;l=g.Fo(this)&&!this.KZ; var a;R?R.disableRelatedVideos!==void 0&&(a=!R.disableRelatedVideos):a=b.rel;this.pz=l||E7(!this.J,a);this.oQ=E7(!1,R?R.enableContentOwnerRelatedVideos:b.co_rel);this.U=Wu()&&OR>0&&OR<=4.4?"_top":"_blank";this.vO=g.D4(this);this.Kj=E7(this.playerStyle==="blazer",R?R.enableCsiLogging:b.enablecsi);switch(this.playerStyle){case "blogger":a="bl";break;case "discover-ads":a="dd";break;case "gmail":a="gm";break;case "gac":a="ga";break;case "ads-preview":a="ap";break;case "ads-fe":a="adfe";break;case "books":a= "gb";break;case "docs":case "flix":a="gd";break;case "duo":a="gu";break;case "google-live":a="gl";break;case "google-one":a="go";break;case "play":case "play-ads":a="gp";break;case "chat":a="hc";break;case "hangouts-meet":a="hm";break;case "photos-edu":case "picasaweb":a="pw";break;default:a="yt"}this.G6=a;this.T6=kE("",R?R.authorizedUserIndex:b.authuser);this.PH=g.Fo(this)&&(this.Zl||!Skw()||this.JX);var v;R?R.disableWatchLater!==void 0&&(v=!R.disableWatchLater):v=b.showwatchlater;this.EW=((a=!this.PH)|| !!this.T6&&a)&&E7(!this.C,this.K?v:void 0);this.ri=R?R.isMobileDevice||!!R.disableKeyboardControls:E7(!1,b.disablekb);this.loop=E7(!1,b.loop);this.pageId=kE("",R?R.initialDelegatedSessionId:b.pageid);this.ZW=E7(!0,b.canplaylive);this.M2=this.experiments.O9("html5_lr_overwrite_default_audio_quality_setting")?1:2;this.YH=E7(!1,b.livemonitor);this.disableSharing=E7(this.J,R?R.disableSharing:b.ss);(v=R&&this.N("fill_video_container_size_override_from_wpcc")?R.videoContainerOverride:b.video_container_override)? (a=v.split("x"),a.length!==2?v=null:(v=Number(a[0]),a=Number(a[1]),v=isNaN(v)||isNaN(a)||v*a<=0?null:new g.ru(v,a))):v=null;this.Ge=v;this.mute=R?!!R.startMuted:E7(!1,b.mute);this.storeUserVolume=!this.mute&&E7(this.controlsType!=="0",R?R.storeUserVolume:b.store_user_volume);v=R?R.annotationsLoadPolicy:b.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:TJ(void 0,v,lt);this.captionsLanguagePreference=R?R.captionsLanguagePreference||"":kE("",b.cc_lang_pref);v=TJ(2,R?R.captionsLanguageLoadPolicy: b.cc_load_policy,lt);this.controlsType==="3"&&v===2&&(v=3);this.jJ=v;this.m_=R?R.hl||"en_US":kE("en_US",b.hl);this.region=R?R.contentRegion||"US":kE("US",b.cr);this.hostLanguage=R?R.hostLanguage||"en":kE("en",b.host_language);this.iN=!this.Zl&&Math.random()'}supportsGaplessAudio(){return g.I5&& !Nr&&Hu()>=74||g.yr&&g.ZN(68)?!0:!1}supportsGaplessShorts(){return!this.N("html5_enable_short_gapless")||this.JX||g.x9?!1:!0}getPlayerType(){return this.G.cplayer}zy(){return this.wi}OA(){return this.V&&this.N("embeds_enable_innertube_store")}},qTq=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],pFD=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"], B5q=[19];var tm2={["140"]:{numChannels:2},["141"]:{numChannels:2},["251"]:{audioSampleRate:48E3,numChannels:2},["774"]:{audioSampleRate:48E3,numChannels:2},["380"]:{numChannels:6},["328"]:{numChannels:6},["773"]:{}},fdT={["1"]:'video/mp4; codecs="av01.0.08M.08"',["1h"]:'video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',["1e"]:'video/mp4; codecs="av01.0.08M.08"',["9"]:'video/webm; codecs="vp9"',["("]:'video/webm; codecs="vp9"',["9h"]:'video/webm; codecs="vp09.02.51.10.01.09.16.09.00"',h:'video/mp4; codecs="avc1.64001e"', H:'video/mp4; codecs="avc1.64001e"',o:'audio/webm; codecs="opus"',a:'audio/mp4; codecs="mp4a.40.2"',ah:'audio/mp4; codecs="mp4a.40.2"',mac3:'audio/mp4; codecs="ac-3"; channels=6',meac3:'audio/mp4; codecs="ec-3"; channels=6',i:'audio/mp4; codecs="iamf.001.001.Opus"'},yjH={["337"]:{width:3840,height:2160,bitrate:3E7,fps:30},["336"]:{width:2560,height:1440,bitrate:15E6,fps:30},["335"]:{width:1920,height:1080,bitrate:75E5,fps:30},["702"]:{width:7680,height:4320,bitrate:4E7,fps:60},["701"]:{width:3840, height:2160,bitrate:2E7,fps:60},["700"]:{width:2560,height:1440,bitrate:1E7,fps:60},["412"]:{width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},["359"]:{width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},["411"]:{width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},["410"]:{width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"},["409"]:{width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"}, ["360"]:{width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},["358"]:{width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},["357"]:{width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},["274"]:{width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},["315"]:{width:3840,height:2160,bitrate:2E7,fps:60},["308"]:{width:2560,height:1440,bitrate:1E7,fps:60},["303"]:{width:1920,height:1080,bitrate:5E6,fps:60},["302"]:{width:1280, height:720,bitrate:25E5,fps:60},["299"]:{width:1920,height:1080,bitrate:75E5,fps:60},["298"]:{width:1280,height:720,bitrate:35E5,fps:60},["571"]:{width:7680,height:4320,bitrate:3E7,fps:60},["401"]:{width:3840,height:2160,bitrate:15E6,fps:60},["400"]:{width:2560,height:1440,bitrate:75E5,fps:60},["399"]:{width:1920,height:1080,bitrate:2E6,fps:60},["398"]:{width:1280,height:720,bitrate:1E6,fps:60},["397"]:{width:854,height:480,bitrate:4E5,fps:30},["396"]:{width:640,height:360,bitrate:25E4,fps:30},["787"]:{width:1080, height:608,bitrate:2E5,fps:30},["788"]:{width:1080,height:608,bitrate:4E5,fps:30},["572"]:{width:7680,height:4320,bitrate:3E7,fps:60},["555"]:{width:3840,height:2160,bitrate:15E6,fps:60},["554"]:{width:2560,height:1440,bitrate:75E5,fps:60},["553"]:{width:1920,height:1080,bitrate:2E6,fps:60},["552"]:{width:1280,height:720,bitrate:1E6,fps:60},["551"]:{width:854,height:480,bitrate:4E5,fps:30},["550"]:{width:640,height:360,bitrate:25E4,fps:30},["313"]:{width:3840,height:2160,bitrate:8E6,fps:30},["271"]:{width:2560, height:1440,bitrate:4E6,fps:30},["248"]:{width:1920,height:1080,bitrate:2E6,fps:30},["247"]:{width:1280,height:720,bitrate:15E5,fps:30},["244"]:{width:854,height:480,bitrate:52E4,fps:30},["243"]:{width:640,height:360,bitrate:28E4,fps:30},["137"]:{width:1920,height:1080,bitrate:4E6,fps:30},["136"]:{width:1280,height:720,bitrate:3E6,fps:30},["135"]:{width:854,height:480,bitrate:1E6,fps:30},["385"]:{width:1920,height:1080,bitrate:6503313,fps:60},["376"]:{width:1280,height:720,bitrate:5706960,fps:60}, ["384"]:{width:1280,height:720,bitrate:3660979,fps:60},["225"]:{width:1280,height:720,bitrate:5805E3,fps:30},["224"]:{width:1280,height:720,bitrate:453E4,fps:30},["145"]:{width:1280,height:720,bitrate:2682052,fps:30}};var X$=class{constructor(b){this.G=b}getInfo(){return this.G}Y(){return null}S(){var b=this.Y();return b?(b=g.zE(b.yV),Number(b.expire)):NaN}V(){}getHeight(){return this.G.video.height}};var Aj2=class{constructor(b){this.itag=b.itag;this.url=b.url;this.codecs=b.codecs;this.width=b.width;this.height=b.height;this.fps=b.fps;this.bitrate=b.bitrate;this.Y=b.audioItag?.split(",")||[];this.qM=b.qM;this.contentProtection=b.contentProtection||"";this.Nj=b.Nj;this.audioChannels=b.audioChannels;this.G=""}};var JjB=class{constructor(b,R,h,K,I){this.X=b;this.Y=R;this.S=h;this.cpn=K;this.J=I;this.V=0;this.G=""}build(){UhH(this);const b=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],R={};a:if(this.G)var h=this.G;else{h="";for(var K of this.X)if(K.Nj){if(K.Nj.getIsDefault()){h=K.Nj.getId();break a}h||(h=K.Nj.getId())}}for(var I of this.X)if(this.J||!I.Nj||I.Nj.getId()===h)R[I.itag]||(R[I.itag]=[]),R[I.itag].push(I);for(var N of this.Y)if(I=R[N.G])for(var p of I){I=b;h=I.push;K="#EXT-X-MEDIA:TYPE=AUDIO,";let B= "YES";var l="audio";if(p.Nj){l=p.Nj;var a=l.getId().split(".")[0];a&&(K+=`LANGUAGE="${a}",`);(this.G?this.G===l.getId():l.getIsDefault())||(B="NO");l=l.getName()}a="";N!==null&&(a=N.itag.toString());a=zz(this,p.url,a);K=K+`NAME="${l}",DEFAULT=${B},AUTOSELECT=YES,`+`GROUP-ID="${GMw(p,N)}",URI="${a}"`;h.call(I,K)}for(var v of this.S)N=tQD,N=(p=v.Nj)?'#EXT-X-MEDIA:URI="'+zz(this,v.url)+'",TYPE=SUBTITLES,GROUP-ID="'+N+'",LANGUAGE="'+p.getId()+'",NAME="'+p.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0, N&&b.push(N);v=this.S.length>0?tQD:void 0;for(const B of this.Y)p=R[B.G],p?.length>0&&(N=B,p=p[0],p=`#EXT-X-STREAM-INF:BANDWIDTH=${N.bitrate+p.bitrate},CODECS="${N.codecs},${p.codecs}",RESOLUTION=${N.width}x${N.height},AUDIO="${GMw(p,N)}",`+(v?'SUBTITLES="'+v+'",':"")+"CLOSED-CAPTIONS=NONE",N.fps>1&&(p+=`,FRAME-RATE=${N.fps}`),N.qM&&(p+=`,VIDEO-RANGE=${N.qM}`),b.push(p),b.push(zz(this,B.url,"")));return b.join("\n")}},tQD="text";var kM2=class extends X${constructor(b,R,h){super(b);this.X=R;this.expiration=h;this.yV=null}S(){return this.expiration}Y(){if(!this.yV||this.yV.HY()){var b=this.X.build();b="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(b);this.yV=new sR(b)}return this.yV}};var F5D=class extends X${constructor(b,R){super(b);this.X=R}Y(){return new sR(this.X.xj())}V(){this.X=PC(this.X)}};var YTx=class extends X${constructor(b,R){super(b);this.X=R}Y(){return new sR(this.X)}};var QrP={PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM:"mrm.blocked",PLAYABILITY_ERROR_CODE_PERMISSION_DENIED:"auth",PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED:"embedder.identity.denied",PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_MISSING_REFERRER:"embedder.identity.missing.referrer"};var Pnx=class{constructor(b){if(b=b.commonConfig)this.url=b.url,this.urlQueryOverride=b.urlQueryOverride,b.ustreamerConfig&&(this.Ho=CB(b.ustreamerConfig)||void 0)}};g.Jn=class{constructor(b={}){this.languageCode=b.languageCode||"";this.languageName=b.languageName||null;this.kind=b.kind||"";this.name=b.name===void 0?null:b.name;this.displayName=b.displayName||null;this.id=b.id||null;this.G=b.is_servable||!1;this.isTranslateable=b.is_translateable||!1;this.url=b.url||null;this.vssId=b.vss_id||"";this.isDefault=b.is_default||!1;this.translationLanguage=b.translationLanguage||null;this.xtags=b.xtags||"";this.captionId=b.captionId||""}getId(){return this.id}getName(){return this.name}isServable(){return this.G}xj(){return this.url}getXtags(){return this.xtags}toString(){return this.languageCode+ ": "+g.Gz(this)+" - "+this.vssId+" - "+(this.captionId||"")}equals(b){return b?this.toString()===b.toString():!1}Jh(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)}};var uIP={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},XFw={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},Vmw=/^(\d*)_((\d*)_?(\d*))$/;var MmK={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},rjH={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var wFe={ALWAYS:1,BY_REQUEST:3,UNKNOWN:void 0},GcK={MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN:"UNKNOWN",MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL:"NORMAL",MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW:"LOW",MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW:"ULTRALOW"};var SZ3; SZ3=function(b){const R=Object.keys(b),h={};for(let N=0;N{const h={};R=[g.Dm(R.objectStore("index"),{},K=>{h[K.cursor.key]=K.getValue();return g.by(K)}), xZH(R.objectStore("media")),xZH(R.objectStore("captions"))];return g.cL.all(R).then(([,K,I])=>({index:h,media:PUD(K||[]),captions:I}))})});var j9K=class extends g.NU{constructor(){super();this.G=null;this.X=new TFK;this.G=null;this.J=new Set;this.crossOrigin=""}X5(){this.G&&(this.G=this.G.onload=null);super.X5()}};g.Vs=class{constructor(b,R,h,K){this.level=b;this.G6=R;this.loaded=new Set;this.level=b;this.G6=R;b=h.split("#");this.width=Math.floor(Number(b[0]));this.height=Math.floor(Number(b[1]));this.frameCount=Math.floor(Number(b[2]));this.columns=Math.floor(Number(b[3]));this.rows=Math.floor(Number(b[4]));this.G=Math.floor(Number(b[5]));this.K=b[6];this.signature=b[7];this.videoLength=K}getHeight(){return this.height}S(){return this.frameCount}isDefault(){return this.K.indexOf("default")!==-1}isLoaded(b){return this.loaded.has(b)}xj(b){let R= this.G6;R=R.replace("$N",this.K);R=R.replace("$L",this.level.toString());R=R.replace("$M",b.toString());this.signature&&(R=g.z9(R,{sigh:this.signature}));return q1(R)}V(b){const R=this.S()-1;return g.ui(this.G===0?Math.round(b*this.frameCount/this.videoLength):Math.round(b*1E3/this.G),0,R)}Y(){return this.frameCount-1}J(){return this.frameCount?0:-1}D(){}};g.Vs.prototype.U=RK(5);var Ce=class extends j9K{constructor(b,R,h=!1,K=!1){super();this.isLive=h;this.D=!!K;this.levels=this.Y(b,R);this.V=new Map;this.levels.length>1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}Y(b,R){const h=[];b=b.split("|");const K=b[0];for(let I=1;IK-R?-1:b}Y(){return this.X.jK()}J(){return this.X.cZ()}D(b){this.X=b}};var iFx=class extends Ce{constructor(b,R,h,K=!1){super(b,0,R,!!K);for(b=0;b{this.setData(h)}, oe:()=>{this.oe()}, QU:h=>{this.QU(h)}}; this.RH=this.N("web_new_autonav_countdown");this.wB=this.N("web_new_big_thumbnail_endscreen");this.uv.dk&&(this.C=this.uv.dk);this.setData(R);this.BI=new xVD;g.n(this,this.BI)}setData(b){b=b||{};var R=b.errordetail;R!=null&&(this.errorDetail=R);R=b.errorcode;R!=null?this.errorCode=R:b.status==="fail"&&(this.errorCode="auth");R=b.reason;R!=null&&(this.errorReason=R);R=b.subreason;R!=null&&(this.oo=R);this.clientPlaybackNonce||(this.clientPlaybackNonce=b.cpn??(this.uv.zy()?"r"+g.yM(15):g.yM(16)),this.E_?.clear()); this.YH=E7(this.uv.YH,b.livemonitor);hCT(this,b);if(R=b.raw_player_response)this.SV=R;else{var h=b.player_response;h&&(R=JSON.parse(h))}R&&(this.playerResponse=R);if(this.playerResponse){(R=this.playerResponse.annotations)&&FDT(this,R);(R=this.playerResponse.attestation)&&ovw(this,R);if(R=this.playerResponse.cotn)this.cotn=R;(R=this.playerResponse.heartbeatParams)&&hrB(this,R);(R=this.playerResponse.messages)&&IuK(this,R);(R=this.playerResponse.overlay)&&vmD(this,R);if(R=this.playerResponse.playabilityStatus)Bts(this, R),(h=R.errorScreen)&&U1s(this,h);(h=this.playerResponse.playbackTracking)&&qvK(this,h,b);var K=this.playerResponse.playerCueRanges;K&&K.length>0&&(this.cueRanges=K);(K=this.playerResponse.playerCueRangeSet)&&g.Ka(this,K);K=qDq(this.playerResponse.adPlacements);h&&h.promotedPlaybackTracking&&K&&g.kJ(new g.A$("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));if(K||pgK(this.playerResponse.adSlots))this.al=!0;(h=this.playerResponse.playerAds)&&d1B(this,h,b);(h=this.playerResponse.playerConfig)&& yBH(this,h);(K=this.playerResponse.streamingData)&&tzw(this,K,h||null);if(K=this.playerResponse.trackingParams)this.C=K;if(K=this.playerResponse.videoDetails)ABT(this,K,b),gmB(this,K,h||null,b),h=K.isPrivate,h!==void 0&&(this.isPrivate=E7(this.isPrivate,h));R&&RrD(this,R,K||null);(R=this.playerResponse.interstitialPods)&&$1K(this,R);this.OE&&this.eventId&&(this.OE=go(this.OE,{ei:this.eventId}));(R=this.playerResponse.captions)&&R.playerCaptionsTracklistRenderer&&bMK(this,R.playerCaptionsTracklistRenderer); (this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.Ke=Number(this.clipConfig.startTimeMs)*.001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&Nt2(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);this.compositeLiveIngestionOffsetToken=this.playerResponse.playbackTracking?.compositeLiveIngestionOffsetToken; this.compositeLiveStatusToken=this.playerResponse.playbackTracking?.compositeLiveStatusToken;this.N("html5_fill_default_mosaic_audio_track_id")&&this.U8()&&(this.uv.pR=dDT(this));R=this.playerResponse.playerConfig?.granularVariableSpeedConfig?.minimumPlaybackRate;h=this.playerResponse.playerConfig?.granularVariableSpeedConfig?.maximumPlaybackRate;R&&h&&(this.KW=R/100,this.iz=h/100);this.N("html5_web_po_on_demand_init")&&this.playerResponse.onResponseReceivedActions&&this.playerResponse.onResponseReceivedActions.forEach(I=> {g.Z(I,g.kr)?.signal==="INIT_ATT_SERVICE"&&(this.C3=!0)})}pa(this,b); lAw(this,b);b.queue_info&&(this.queueInfo=b.queue_info);R=b.hlsdvr;R!=null&&(this.allowLiveDvr=Number(R)===1?Pa()?!0:U7&&Yr<5?!1:!0:!1);this.adQueryId=b.ad_query_id||null;this.DF||(this.DF=b.encoded_ad_safety_reason||null);this.OU=E7(this.OU,b.infringe||b.muted);this.OG=b.authkey;this.I7=b.authuser;this.mutedAutoplay=E7(this.mutedAutoplay,b&&b.playmuted);this.mutedAutoplayDurationMode=JN(this.mutedAutoplayDurationMode,b&&b.muted_autoplay_duration_mode);this.ZX=E7(this.ZX,b&&b.mutedautoplay);if(R= b.length_seconds)this.lengthSeconds=typeof R==="string"?gu(R):R;this.isAd()||this.er||!g.xE(g.bv(this.uv))?this.endSeconds=JN(this.endSeconds,this.KQ||b.end||b.endSeconds):fAw(this,g.bv(this.uv),this.lengthSeconds);this.C=kE(this.C,b.itct);this.qc=E7(this.qc,b.is_live_destination);this.isLivePlayback=E7(this.isLivePlayback,b.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.AO();b.isUpcoming&&(this.isUpcoming=E7(this.isUpcoming,b.isUpcoming));this.VB=E7(this.VB,b.post_live_playback); this.pm&&(this.VB=!1);this.isMdxPlayback=E7(this.isMdxPlayback,b.mdx);if(R=b.mdx_control_mode)this.mdxControlMode=typeof R==="number"?R:gu(R);this.isInlinePlaybackNoAd=E7(this.isInlinePlaybackNoAd,b.is_inline_playback_no_ad);this.pR=JN(this.pR,b.reload_count);this.reloadReason=kE(this.reloadReason,b.reload_reason);this.gU=E7(this.gU,b.show_content_thumbnail);this.cycToken=b.cyc||null;R=Ss(b);Object.keys(R).length>0&&(this.xT=R);this.nR=kE(this.nR,b.vvt);this.mdxEnvironment=kE(this.mdxEnvironment, b.mdx_environment);b.source_container_playlist_id&&(this.sourceContainerPlaylistId=b.source_container_playlist_id);b.serialized_mdx_metadata&&(this.serializedMdxMetadata=b.serialized_mdx_metadata);this.Yi=b.osig;this.eventId||(this.eventId=b.eventid);this.osid||(this.osid=b.osid);this.playlistId=kE(this.playlistId,b.list);b.index&&(this.playlistIndex=this.playlistIndex===void 0?JN(0,b.index):JN(this.playlistIndex,b.index));this.GO=b.pyv_view_beacon_url;this.Ir=b.pyv_quartile25_beacon_url;this.XW= b.pyv_quartile50_beacon_url;this.M_=b.pyv_quartile75_beacon_url;this.TO=b.pyv_quartile100_beacon_url;R=b.session_data;!this.yz&&R&&(this.yz=tQ(R,"&").feature);this.isFling=JN(this.isFling?1:0,b.is_fling)===1;this.vnd=JN(this.vnd,b.vnd);this.forceAdsUrl=kE(this.forceAdsUrl,b.force_ads_url);this.wR=kE(this.wR,b.ctrl);this.Nf=kE(this.Nf,b.ytr);this.F8=b.ytrcc;this.h_=b.ytrexp;this.aS=b.ytrext;this.CR=kE(this.CR,b.adformat);this.EF=kE(this.EF,b.attrib);this.slotPosition=JN(this.slotPosition,b.slot_pos); this.breakType=b.break_type;this.i7=E7(this.i7,b.ssrt);this.videoId=O7(b)||this.videoId;this.g3=kE(this.g3,b.vss_credentials_token);this.SR=kE(this.SR,b.vss_credentials_token_type);this.wQ=E7(this.wQ,b.audio_only);this.Ab=E7(this.Ab,b.aac_high);this.Te=E7(this.Te,b.prefer_low_quality_audio);this.cQ=E7(this.cQ,b.uncap_inline_quality);this.N("html5_enable_qoe_cat_list")?b.qoe_cat&&(this.kt=this.kt.concat(b.qoe_cat.split(","))):this.Tv=kE(this.Tv,b.qoe_cat);this.qf=E7(this.qf,b.download_media);this.D= yzT(this,b.prefer_gapless);IwT(this.playerResponse)&&this.Ha.push("ad");if(R=b.adaptive_fmts)this.adaptiveFormats=R,this.YZ("adpfmts",{},!0);if(R=b.allow_embed)this.allowEmbed=Number(R)===1;if(R=b.backgroundable)this.backgroundable=Number(R)===1;if(R=b.autonav)this.isAutonav=Number(R)===1;if(R=b.autoplay)this.xV=this.qn=Number(R)===1;if(R=b.iv_load_policy)this.annotationsLoadPolicy=TJ(this.annotationsLoadPolicy,R,lt);if(R=b.cc_lang_pref)this.captionsLanguagePreference=kE(R,this.captionsLanguagePreference); if(R=b.cc_load_policy)this.Pq=TJ(this.Pq,R,lt);this.deviceCaptionsOn=b.device_captions_on??void 0;this.vV=b.device_captions_lang_pref??"";this.sU=b.viewer_selected_caption_langs??[];if(R=b.cached_load)this.X0=E7(this.X0,R);if(b.dash==="0"||b.dash===0||b.dash===!1)this.jU=!0;if(R=b.dashmpd)this.uT=g.z9(R,{cpn:this.clientPlaybackNonce});if(R=b.delay)this.eb=gu(R);R=this.KQ||b.end;if(this.xZ?R!=null:R!=void 0)this.clipEnd=JN(this.clipEnd,R);if(R=b.fmt_list)this.eW=R;b.heartbeat_preroll&&this.Ha.push("heartbeat"); z63&&(this.Ge=-Math.floor(Math.random()*10),this.YM=-Math.floor(Math.random()*40));if(R=b.is_listed)this.isListed=E7(this.isListed,R);if(R=b.is_private)this.isPrivate=E7(this.isPrivate,R);if(R=b.is_dni)this.C0=E7(this.C0,R);if(R=b.dni_color)this.wW=kE(this.wW,R);if(R=b.pipable)this.pipable=E7(this.pipable,R);this.KB=(this.tj=this.pipable&&this.uv.qc)&&!this.uv.showMiniplayerButton;if(R=b.paid_content_overlay_duration_ms)this.paidContentOverlayDurationMs=gu(R);if(R=b.paid_content_overlay_text)this.paidContentOverlayText= R;if(R=b.url_encoded_fmt_stream_map)this.E$=R;if(R=b.hls_formats)this.hlsFormats=R;if(R=b.hlsvp)this.hlsvp=R;if(R=b.live_start_walltime)this.Gi=typeof R==="number"?R:gu(R);if(R=b.live_manifest_duration)this.pZ=typeof R==="number"?R:gu(R);if(R=b.player_params)this.playerParams=R;if(R=b.partnerid)this.partnerId=JN(this.partnerId,R);if(R=b.probe_url)this.probeUrl=q1(g.z9(R,{cpn:this.clientPlaybackNonce}));(R=b.pyv_billable_url)&&s_B(R)&&(this.Fs=R);(R=b.pyv_conv_url)&&s_B(R)&&(this.Y6=R);vbD(this,b); this.startSeconds>0?this.N("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.Ke||this.Ul||b.start||b.startSeconds)&&this.YZ("lss",{css:this.startSeconds,pcss:this.Ke,iss:this.Ul,ps:b.start||void 0,pss:b.startSeconds||void 0}):(this.startSeconds=JN(this.startSeconds,this.Ke||this.Ul||b.start||b.startSeconds),this.N("html5_log_start_seconds_inconsistency")&&this.startSeconds>0&&this.YZ("lsss",{css:this.startSeconds,pcss:this.Ke,iss:this.Ul,ps:b.start||void 0,pss:b.startSeconds||void 0}), this.Zr=this.startSeconds);this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0||(R=b.live_utc_start,R!=null?this.liveUtcStartSeconds=Number(R):tbe(this.startSeconds)&&(this.liveUtcStartSeconds=this.startSeconds));this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0||!(R=b.utc_start_millis)||(this.liveUtcStartSeconds=Number(R)*.001);if(R=b.stream_time_start_millis)this.Nc=Number(R)*.001;R=this.Ul||b.start;(this.xZ?R==null||Number(b.resume)===1:R==void 0||b.resume=="1")||this.isLivePlayback||(this.clipStart= JN(this.clipStart,R));if(R=b.url_encoded_third_party_media)this.cO=i1(R);if(R=b.ypc_offer_button_formatted_text)h=JSON.parse(R),this.Wz=h!=null?h:null,this.HA=R;if(R=b.ypc_offer_button_text)this.UF=R;if(R=b.ypc_offer_description)this.xw=R;if(R=b.ypc_offer_headline)this.Co=R;if(R=b.ypc_full_video_message)this.ol=R;if(R=b.ypc_offer_id)this.pG=R;if(R=b.ypc_buy_url)this.ww=R;if(R=b.ypc_item_thumbnail)this.OF=R;if(R=b.ypc_item_title)this.qr=R;if(R=b.ypc_item_url)this.Wf=R;if(R=b.ypc_vid)this.pW=R;b.ypc_overlay_timeout&& (this.zZ=Number(b.ypc_overlay_timeout));if(R=b.ypc_trailer_player_vars)this.cB=AQ(R);if(R=b.ypc_original_itct)this.um=R;this.zI=kE(this.zI,b.ucid);this.LZ=b.storyboard_spec||null;this.c$=b.live_storyboard_spec||null;this.KG=b.iv_endscreen_url||null;this.Sd=E7(this.Sd,b.iv3_module);this.gM=E7(this.gM,b.ypc_module);this.CY=E7(this.CY,b.ypc_clickwrap_module);this.gM&&this.Ha.push("ypc");this.CY&&this.Ha.push("ypcRentalActivation");this.mX={video_id:b.video_id,eventid:b.eventid,cbrand:b.cbrand,cbr:b.cbr, cbrver:b.cbrver,c:b.c,cver:b.cver,ctheme:b.ctheme,cplayer:b.cplayer,cmodel:b.cmodel,cnetwork:b.cnetwork,cos:b.cos,cosver:b.cosver,cplatform:b.cplatform,user_age:b.user_age,user_display_image:b.user_display_image,user_display_name:b.user_display_name,user_gender:b.user_gender,csi_page_type:b.csi_page_type,csi_service_name:b.csi_service_name,enablecsi:b.enablecsi,enabled_engage_types:b.enabled_engage_types};BBw(this,b);if(R=b.cotn)this.cotn=R;j5s(this)?v0(this)&&(this.isLivePlayback&&this.uT&&(this.Ys= !0),this.Oz&&(this.CN=!0)):EbB(this)?this.Ys=!0:kuT(this)?this.enableServerStitchedDai=this.enableServerStitchedDai&&zT(this):this.uT&&(this.uv.G6==="yt"&&this.AO()&&this.N("drm_manifestless_unplugged")&&this.N("html5_deprecate_manifestful_fallback")?this.YZ("deprecateMflFallback",{}):this.Ys=!0);if(R=b.adpings)this.jJ=R?AQ(R):null;if(R=b.feature)this.Mh=R;if(R=b.referrer)this.referrer=R;this.clientScreenNonce=kE(this.clientScreenNonce,b.csn);this.FZ=JN(this.FZ,b.root_ve_type);this.VP=JN(this.VP, b.kids_age_up_mode);this.xZ||b.kids_app_info==void 0||(this.kidsAppInfo=b.kids_app_info);this.xZ&&b.kids_app_info!=null&&(this.kidsAppInfo=b.kids_app_info);this.bD=E7(this.bD,b.upg_content_filter_mode);this.unpluggedFilterModeType=JN(this.unpluggedFilterModeType,b.unplugged_filter_mode_type);if(R=b.unplugged_location_info)this.PH=R;if(R=b.unplugged_partner_opt_out)this.sE=kE("",R);this.MY=E7(this.MY,b.disable_watch_next);this.ZW=kE(this.ZW,b.internal_ip_override);this.bz=!!b.is_yto_interstitial;this.interstitials.length&& this.Ha.push("playableSequences");if(R=b.YJ)this.YJ=R;this.G6=kE(this.G6,b.csi_timer);b.watchUrl&&(this.watchUrl=b.watchUrl);R=b.watch_endpoint;this.N("html5_attach_watch_endpoint_ustreamer_config")&&R&&Z9q(this,R);R?.ustreamerConfig&&(this.Ho=CB(R.ustreamerConfig));if(R=R?.loggingContext?.qoeLoggingContext?.serializedContextData)this.yE=R;g.Fo(this.uv)&&this.uv.xI&&(this.embedsRct=kE(this.embedsRct,b.rct),this.embedsRctn=kE(this.embedsRctn,b.rctn));b.embed_config&&(this.xI=b.embed_config);this.FM= this.FM||!!b.pause_at_start;b.default_active_source_video_id&&(this.defaultActiveSourceVideoId=b.default_active_source_video_id);this.SK=this.SK||!!b.live_preload}O$(){return this.autoplaySwitchButtonRenderer?.enabled!==void 0}L(){return this.uv}N(b){return this.uv.N(b)}Hr(){return!this.isLivePlayback||this.allowLiveDvr}hasSupportedAudio51Tracks(){return!!this.KR?.KR}getUserAudio51Preference(){let b=1;a4(this.uv)&&this.N("html5_ytv_surround_toggle_default_off")?b=0:pt(this.uv)&&this.isLivePlayback&& this.OD()&&(b=0);return g.NC("yt-player-audio51")??b}Hs(){return this.playerResponse?.playerConfig?.compositeVideoConfig?.sourceConfigs??[]}EH(){this.HY()||(this.G.Y||this.G.unsubscribe("refresh",this.EH,this),this.fn(-1))}fn(b){if(!this.isLivePlayback||!this.S||this.S.flavor!=="fairplay"){var R=this.G.Zr(this.lD);if(R.length>0){for(const h of R)h.startSecs=Math.max(h.startSecs,this.f0()),this.N("html5_cuepoint_identifier_logging")&&h.event==="start"&&this.YZ("cuepoint",{pubCue:h.identifier,segNum:b}); this.publish("cuepointupdated",R,b);this.lD+=R.length;if(zT(this)&&this.uv.zy())for(const h of R)this.YZ("cuepoint",{segNum:b,event:h.event,startSecs:h.startSecs,id:h.identifier.slice(-16)}),h.event==="start"&&(R=h.startSecs,this.iN.start=this.Ty,this.iN.end=R+3)}}}oe(){this.HY()||(this.loading=!1,this.publish("dataloaded"))}OD(){return this.ow!==void 0?this.ow:this.ow=!!this.contentProtection||!!this.G&&this.G.V()}mI(b){if(this.HY())return KX();this.fR=this.gp=this.X=null;gK(this,"html5_high_res_logging_always")&& (this.uv.wi=!0);return O4K(this,b).then(void 0,()=>xDe(this,b)).then(void 0,()=>mDP(this)).then(void 0,()=>Z4T(this))}QU(b){this.X=b; Q5K(this,this.X.getAvailableAudioTracks());if(this.X)for(var R of this.X.videoInfos)b=R.containerType,b!==0&&(this.d_[b]=R.id);R=this.getAvailableAudioTracks();R=R.concat(this.vD);for(b=0;b0)return this.X.getAvailableAudioTracks();if(this.hc)return this.hc;if(this.U$)return this.U$}return[]}getAudioTrack(){if(this.V&&!this.V.X()){var b=g.jc(this.getAvailableAudioTracks(),R=>R.id===this.V.id); if(!b&&this.V.Nj?.id){const R=this.V.Nj.id;b=g.jc(this.getAvailableAudioTracks(),h=>h.Nj.id===R)}return b||this.vD}if(this.hc){if(!this.GG)for(b of this.hc)if(b.Nj.getIsDefault()){this.GG=b; break}return this.GG||this.vD}return this.vD}getPlayerResponse(){return this.playerResponse}getWatchNextResponse(){return this.T6}getReelItemWatchResponse(){return this.reelItemWatchResponse}getHeartbeatResponse(){return this.Wk}Ba(){return this.watchUrl?this.watchUrl:this.uv.getVideoUrl(this.videoId)}Rv(){return!!this.G&&($0T(this.G)||lCx(this.G)||aCH(this.G))}UG(){const b=g.tw(this),R=this.L().S,h=iv("243");return h?HC(b,h,R,!0)===!0:!1}vO(){return this.N("enable_wn_infocards")}LN(){return(this.vO()? this.T6?.cards?.cardCollectionRenderer:this.playerResponse?.cards?.cardCollectionRenderer)||null}getEmbeddedPlayerResponse(){return this.XI}mY(){return(this.eventLabel||this.uv.nR)==="shortspage"}isAd(){return this.bJ||!!this.adFormat}J(){return this.oauthToken||this.uv.LN}isDaiEnabled(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}eK(){return this.isDaiEnabled()&&this.enableServerStitchedDai&& !!this.playerResponse?.playerConfig?.daiConfig?.ssaEnabledPlayback}U8(){return!!this.playerResponse?.compositePlayabilityStatus}xQ(){return!this.U8()}DX(){return this.dS}b7(){return this.gM||this.wi}Sn(){if(!this.G||!this.Y||!this.V)return!1;var b=this.G.G;const R=!!b[this.Y.id]&&Zu(78,b[this.Y.id].yV.G);b=!!b[this.V.id]&&Zu(76,b[this.V.id].yV.G);return(this.Y.itag==="0"||R)&&b}bd(){return this.fetchType==="onesie"}LM(){return gK(this,"html5_samsung_vp9_live")}YZ(b,R,h){this.publish("ctmp",b,R,h)}yJ(b, R,h){this.publish("ctmpstr",b,R,h)}hasProgressBarBoundaries(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}MJ(){return!(!this.isLivePlayback||!this.hasProgressBarBoundaries())}U(){return this.dk||this.suggestions?.[0]||null}getGetAdBreakContext(b=NaN,R=NaN){const h={isSabr:ve(this)};var K=this.getHeartbeatResponse()?.adBreakHeartbeatParams;K&&(h.adBreakHeartbeatParams=K);if(this.N("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.G&&!isNaN(b)&&!isNaN(R)){R= b-R;for(var I in this.G.G){K=this.G.G[I];if(!K.info.fT()&&!K.info.Pr())continue;K=K.index;if(!K.isLoaded())continue;I=K.dt(R);K=K.hh(I)+R-K.getStartTime(I);this.YZ("gabc",{t:b.toFixed(3),mt:R.toFixed(3),sg:I,igt:K.toFixed(3)});h.livePlaybackPosition={utcTimeMillis:""+(K*1E3).toFixed(0)};break}}return h}isEmbedsShortsMode(b,R){return!g.Fo(this.uv)||(this.uv.MJ||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||R?!1:this.N("embeds_enable_shorts")?!!this.embeddedPlayerConfig?.embeddedPlayerFlags?.isShortsExperienceEligible: !!(this.embeddedPlayerConfig?.embeddedPlayerFlags?.isShortsExperienceEligible&&b.width<=b.height)}uG(){return this.D||this.N("web_player_media_session_infinity")&&this.isLivePlayback}X5(){super.X5();this.jJ=null;delete this.wA;delete this.accountLinkingConfig;delete this.G;this.X=this.Wk=this.playerResponse=this.T6=null;this.E$=this.adaptiveFormats="";delete this.botguardData;this.SY=this.suggestions=this.dk=null;this.sabrContextUpdates.clear()}};z63=!0;var PDs={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},ZGe={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},xJT={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},b6e={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"},hmq={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},RmH={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"},mJT={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"};var UOD=class extends g.N3{constructor(b,R){super();this.app=b;this.state=R}handleExternalCall(b,R,h){const K=this.state.S[b],I=this.state.J[b];let N=K;if(I)if(h&&v8(h,FjH))N=I;else if(!K)throw Error(`API call from an untrusted origin: "${h}"`);this.logApiCall(b,h);if(N){a:{for(const p of R)if(String(p).includes("javascript:")){h=!0;break a}h=!1}h&&g.kJ(Error(`Dangerous call to "${b}" with [${R}].`));return N.apply(this,R)}throw Error(`Unknown API method: "${b}".`);}logApiCall(b,R,h){const K=this.app.L(); K.iN&&!this.state.U.has(b)&&(this.state.U.add(b),g.yp("webPlayerApiCalled",{callerUrl:K.loaderUrl,methodName:b,origin:R||void 0,playerStyle:K.playerStyle||void 0,embeddedPlayerMode:K.MJ,errorCode:h}))}publish(b,...R){this.state.X.publish(b,...R);if(b==="videodatachange"||b==="resize"||b==="cardstatechange")this.state.Y.publish(b,...R),this.state.V.publish(b,...R)}N(b){return this.app.L().N(b)}X5(){if(this.state.element){var b=this.state.element,R;for(R in this.state.G)this.state.G.hasOwnProperty(R)&& (b[R]=null);this.state.element=null}super.X5()}};var MY=class extends g.kd{constructor(){super();this.S=new Map}publish(b,...R){if(this.S.has(b))return this.S.get(b).push(R),!0;let h=!1;try{for(R=[R],this.S.set(b,R);R.length;)h=super.publish(b,...R.shift())}finally{this.S.delete(b)}return h}};var GBT=class extends g.N3{constructor(){super(...arguments);this.element=null;this.D=new Set;this.S={};this.J={};this.G={};this.U=new Set;this.X=new MY;this.Y=new MY;this.V=new MY;this.K=new MY}X5(){this.K.dispose();this.V.dispose();this.Y.dispose();this.X.dispose();this.U=this.G=this.J=this.S=this.D=void 0}};var pzP=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));var gfe=class extends UOD{getApiInterface(){return Array.from(this.state.D)}G6(b,R){this.state.K.subscribe(b,R)}K5(b,R){this.state.K.unsubscribe(b,R)}getPlayerState(b){return Qx2(this.app,b)}CR(){return Qx2(this.app)}x4(b,R,h){sz(this)&&(OG(this.app,!0,1),QW(this.app,b,R,h,1))}getCurrentTime(b,R,h){b=typeof b==="number"?{playerType:b,eh:R,cpn:h}:b||{};R=b.playerType;h=this.getPlayerState(R);return this.app.getAppState()===2&&h===5?this.app.getVideoData()?.startSeconds||0:this.N("web_player_max_seekable_on_ended")&& h===0?P1(this.app,R):this.app.getCurrentTime(b)}JX(){return this.app.getCurrentTime({playerType:1})}xZ(){const b=this.app.hh(1);return isNaN(b)?this.getCurrentTime(1):b}Zr(){return this.app.getDuration(1)}Yn(b,R){b=g.ui(Math.floor(b),0,100);isFinite(b)&&uE(this.app,{volume:b,muted:this.isMuted()},R)}LN(b){this.Yn(b,!1)}BA(b){uE(this.app,{muted:!0,volume:this.getVolume()},b)}hc(){this.BA(!1)}Z7(b){uE(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},b)}CN(){Kz(this.app)||this.Z7(!1)}getPlayerMode(){const b= {};this.app.getVideoData().C0&&(b.pfp={enableIma:this.app.PD().allowImaMonetization,autoplay:P0(this.app.PD()),mutedAutoplay:this.app.PD().mutedAutoplay});return b}OR(){const b=this.app.getPresentingPlayerType();if(b===2&&!this.app.w3()){var R=GX(this.app.VV());if(!(nPx(R)||g.Fo(this.app.L())&&this.app.E9().getPlayerState().G(1024))||KH(R))return}(R=this.app.Nz().Qk)?R.playVideo():this.app.playVideo(b)}HR(){OG(this.app,!0,1);this.OR()}pauseVideo(b){const R=this.app.getPresentingPlayerType();if(R!== 2||this.app.w3()||nPx(GX(this.app.VV()))){var h=this.app.Nz().Qk;h?h.pauseVideo():this.app.pauseVideo(R,b)}}U8(){var b=this.app;let R=!1;b.QX.Ty&&(b.qJ.publish("pageTransition"),R=!0);b.stopVideo(R)}clearVideo(){}getAvailablePlaybackRates(){var b=this.app.L();if(b.enableSpeedOptions){if(["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(b.V?b.ancestorOrigins[0]:window.location.origin)||b.jH)return i3e;b=this.app.getVideoData();const R=b.KW,h=b.iz; return zxq.filter(K=>K>=R&&K<=h)}return[1]}getPlaybackQuality(b){return(b=RL(this.app,{playerType:b}))?b.getPlaybackQuality():"unknown"}BI(){}getAvailableQualityLevels(b){return(b=RL(this.app,{playerType:b}))?(b=g.an(b.xJ(),R=>R.quality),b.length&&(b[0]==="auto"&&b.shift(),b=b.concat(["auto"])),b):[]}SY(){return this.getAvailableQualityLevels(1)}PH(){return this.V()}Ty(){return 1}getVideoLoadedFraction(b){return this.app.getVideoLoadedFraction(b)}V(){return this.getVideoLoadedFraction()}Sn(){return 0}getSize(){const b= this.app.tX().getPlayerSize(); return{width:b.width,height:b.height}}setSize(){this.app.tX().resize()}loadVideoById(b,R,h,K){if(!b)return!1;b=bb(b,R,h);return this.app.loadVideoByPlayerVars(b,K)}jn(b,R,h){b=this.loadVideoById(b,R,h,1);OG(this.app,b,1)}cueVideoById(b,R,h,K){b=bb(b,R,h);this.app.cueVideoByPlayerVars(b,K)}C(b,R,h){this.cueVideoById(b,R,h,1)}loadVideoByUrl(b,R,h,K){b=NVx(b,R,h);return this.app.loadVideoByPlayerVars(b,K)}Ys(b,R,h){b=this.loadVideoByUrl(b,R,h,1);OG(this.app,b,1)}cueVideoByUrl(b,R,h,K){b=NVx(b,R,h);this.app.cueVideoByPlayerVars(b, K)}T6(b,R,h){this.cueVideoByUrl(b,R,h,1)}FM(){const b=this.app.L();if(b.C)return"";const R=this.app.PD();let h=void 0;R.isLivePlayback||(h=Math.floor(this.app.getCurrentTime({playerType:1})));return b.getVideoUrl(R.videoId,this.getPlaylistId()||void 0,h)}NJ(){return this.app.getDebugText()}getVideoEmbedCode(){const b=this.app.L();if(b.C)return"";const R=this.app.PD();return b.getVideoEmbedCode(R.isPrivate?"":R.title,this.app.PD().videoId,this.app.tX().getPlayerSize(),this.getPlaylistId()||void 0)}K(b, R,h){return Xf(this.app,b,R,h)}removeCueRange(b){return this.app.Xa(b)}loadPlaylist(b,R,h,K){this.app.loadPlaylist(b,R,h,K)}pz(b,R,h,K){this.loadPlaylist(b,R,h,K);OG(this.app,!0,1)}cuePlaylist(b,R,h,K){this.app.cuePlaylist(b,R,h,K)}nextVideo(b,R){this.app.nextVideo(b,R)}SK(){this.nextVideo();OG(this.app,!0,1)}previousVideo(b){this.app.previousVideo(b)}gB(){this.previousVideo();OG(this.app,!0,1)}playVideoAt(b){this.app.playVideoAt(b)}ri(b){this.playVideoAt(b);OG(this.app,!0,1)}setShuffle(b){const R= this.app.getPlaylist();R&&R.setShuffle(b)}setLoop(b){const R=this.app.getPlaylist();R&&(R.loop=b)}RH(){const b=this.app.getPlaylist();if(!b)return null;const R=[];for(let h=0;h{g.kJ(h)}; var R=this.app.L();if(R.externalFullscreen){if(!g.BG(R))return this.isFullscreen()?CX(window.document.documentElement):uG(window.document.documentElement).catch(b)}else if(g.XO()||R.D)return this.isFullscreen()?CX(V5()):R.controlsType!=="3"&&g.XO()?uG(this.app.tX().element).catch(b):(R=this.app.di().hO())?uG(R).catch(b):Promise.reject(Error("Media element missing"));g.Dr(this,"onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)}isFullscreen(){return this.app.isFullscreen()}XG(){return this.app.XG()}cancelPlayback(){var b= GX(this.app.VV());b&&b.created&&b.destroy();this.app.E9().stopVideo();(b=this.app.VV().X$.get("endscreen"))&&b.YK()&&g.lb(this.app.qJ,!0)}getProgressState(b){if(this.X()===3)return vr(this.app.VV()).getProgressState();const R=this.app.getVideoData();var h=RL(this.app,{playerType:b})||this.app.E9(),K=h.getPlayerType();a:{var I=this.app.getVideoData();if(I.progressBarStartPosition?.utcTimeMillis&&(I=Number(I.progressBarStartPosition.utcTimeMillis)/1E3,!isNaN(I))){I=this.sj(I,b);break a}I=0}a:{var N= this.app.getVideoData();if(N.progressBarEndPosition?.utcTimeMillis&&(N=Number(N.progressBarEndPosition.utcTimeMillis)/1E3,!isNaN(N))){N=this.sj(N,b);break a}N=0}const p=this.getCurrentTime(b);b=this.getDuration(b);const l=this.app.hh(K),a=this.app.isAtLiveHead(K),v=this.app.U_();var B=this.app;var H=g.eF(B,{playerType:K});H=xG(B,H);B=mZ(B,H.SU(),H);H=P1(this.app,K);h=h.Kz();const q=this.app.getVideoData().ey;K=!q||isNaN(q)?0:this.sj(q,K);return{airingStart:I,airingEnd:N,allowSeeking:this.app.Hr(), clipEnd:R.clipEnd,clipStart:R.clipStart,current:p,displayedStart:-1,duration:b,ingestionTime:l,isAtLiveHead:a,loaded:v,seekableStart:B,seekableEnd:H,offset:h,viewerLivestreamJoinMediaTime:K}}sj(b,R){const h=this.app.hh(R);if(!h)return 0;R=h-this.app.getCurrentTime({playerType:R});return b-R}isInline(){return this.app.isInline()}setInline(b){this.app.setInline(b)}Hy(){return this.app.YO().RT(!0)}toggleSubtitles(){const b=g.gh(this.app.VV());b&&b.JL()}getPlayerSize(){const b=this.app.tX().getPlayerSize(); return{width:b.width,height:b.height}}setCenterCrop(b){this.app.tX().setCenterCrop(b)}getLoopVideo(){return this.app.getLoopVideo()}setLoopVideo(b){this.app.setLoopVideo(b)}},qK3="BASE_URL BASE_YT_URL adformat adaptive_fmts allow_embed audio_only authuser autoplay cc_load_policy cpn dash dashmpd disable_native_context_menu disablekb docid el enable_faster_speeds enablecastapi end eventid external_fullscreen fmt_list hl hlsdvr hlsvp iurl iurlhq iurlmq length_seconds live_playback osig override_hl partnerid pause_at_start pipable player_response playsinline plid post_live_playback postid ps public qoe_cat raw_player_response rel show_loop_video_toggle start startSeconds status suggestedQuality timestamp title token ttsurl use_native_controls url_encoded_fmt_stream_map video_id videoId".split(" "), f33="adformat allow_embed authuser autohide autonav autoplay c cbr cbrver cc_load_policy controls cos cosver cr csi_page_type cver cyc dash dashmpd disablekb el enablecastapi enablecsi end external_fullscreen external_list fs hl host_language innertube_api_key innertube_api_version innertube_context_client_version iurl iurlhq iurlmq iv_load_policy jsapicallback length_seconds live_playback live_storyboard_spec loaderUrl osig override_hl pageid partnerid pipable player_params player_wide playsinline plid postid profile_picture ps rel show_miniplayer_button showinfo showwatchlater start startSeconds status storyboard_spec suggestedQuality timestamp title tkn token transparent_background ucid url_encoded_fmt_stream_map use_miniplayer_ui use_native_controls videoId video_id vss_host watermark".split(" ");var ykK={["api.invalidparam"]:2,auth:150,["drm.auth"]:150,["heartbeat.net"]:150,["heartbeat.servererror"]:150,["heartbeat.stop"]:150,["html5.unsupportedads"]:5,["fmt.noneavailable"]:5,["fmt.decode"]:5,["fmt.unplayable"]:5,["html5.missingapi"]:5,["html5.unsupportedlive"]:5,["drm.unavailable"]:5,["mrm.blocked"]:151,["embedder.identity.denied"]:152,["embedder.identity.missing.referrer"]:153};g.rU=class extends WEs{isExternalMethodAvailable(b,R){return this.state.S[b]?!0:!!(this.state.J[b]&&R&&v8(R,FjH))}getBandwidthEstimate(){return ZR(this.app.g2)}reportPlaybackIssue(b=""){const R=this.app.E9();b={gpu:(0,g.ky)(),d:b};R.handleError(new g.hz("feedback",b))}getInternalApi(){return{...this.state.G}}getTrustedApi(){return{...this.state.S,...this.state.J}}getInternalApiInterface(){return g.Lr(this.state.G)}queueNextVideo(b,R,h=NaN,K="",I=""){this.app.queueNextVideo(b,R,h,K,I)}fR(b){b=this.app.getPlayerStateObject(b); return{isBuffering:b.G(1),isCued:b.isCued(),isDomPaused:b.G(1024),isEnded:b.G(2),isError:b.G(128),isOrWillBePlaying:b.isOrWillBePlaying(),isPaused:b.isPaused(),isPlaying:b.isPlaying(),isSeeking:b.G(16),isUiSeeking:b.G(32),isUnstarted:b.G(64)}}createSubtitlesModuleIfNeeded(){return this.app.createSubtitlesModuleIfNeeded()}startSeekCsiAction(){this.app.vI().V.G=(0,g.c)()}vY(b=1,R,h){return this.getCurrentTime(b,R,h)}seekToStreamTime(b,R,h,K){mkP(this.app,b,R,h,K)}getStreamTimeOffset(){return this.app.YO().getStreamTimeOffset()}seekToLiveHead(b, R){const h=this.app.YO().getVideoData();h&&h.isLivePlayback&&QW(this.app,Infinity,b,R,1)}requestSeekToWallTimeSeconds(b,R,h){this.app.YO().yZ(b,R,h)}vO(b,R,h,K=1,I){this.seekTo(b,R,h,K,I)}wB(b,R,h,K){this.seekBy(b,R,h,K,1)}prefetchKeyPlay(b,R){this.app.YO().prefetchKeyPlay(b,R)}setVolume(b,R=!0){this.Yn(b,R)}mute(b=!0){this.BA(b)}unMute(b=!0){this.Z7(b)}syncVolume(){const b=P3x(this.app);uE(this.app,{volume:b.volume,muted:b.muted},!1)}getAvailableQualityLabels(){return g.an(this.app.YO().xJ(),b=> b.qualityLabel)}channelSubscribed(){g.rw(this,"SUBSCRIBE",this.app.PD().zI)}channelUnsubscribed(){g.rw(this,"UNSUBSCRIBE",this.app.PD().zI)}setScreenLayer(b){this.app.setScreenLayer(b)}getCurrentPlaylistSequence(){return this.app.E9().getPlaylistSequenceForTime(this.app.getCurrentTime())}getPlaylistSequenceForTime(b){return this.app.E9().getPlaylistSequenceForTime(b)}shouldSendVisibilityState(){return!0}confirmYpcRental(){this.app.YO().QA("ypcRentalActivation")}setHomeGroupInfo(b){this.app.L().homeGroupInfo= b}setConnectedRemoteApps(b){this.app.L().Kb=b}setLivingRoomAppMode(b){this.app.L().livingRoomAppMode=TJ("LIVING_ROOM_APP_MODE_UNSPECIFIED",b,cCq)}setEnablePrivacyFilter(b=!1){this.app.L().enablePrivacyFilter=b}togglePictureInPicture(){this.app.togglePictureInPicture()}addUtcCueRange(b,R,h,K,I){return Z1H(this.app,b,R,h,K,I)}Zl(b=1){const R=this.rS(b); if(b=RL(this.app,{playerType:b}))b=b.getVideoData(),R.hasProgressBarBoundaries=b.hasProgressBarBoundaries(),R.isPremiere=b.isPremiere,R.itct=b.C,R.playerResponseCpn=b.playerResponseCpn,R.progressBarStartPositionUtcTimeMillis=b.hasProgressBarBoundaries()&&b.progressBarStartPosition?.utcTimeMillis?gu(b.progressBarStartPosition.utcTimeMillis):null,R.progressBarEndPositionUtcTimeMillis=b.hasProgressBarBoundaries()&&b.progressBarEndPosition?.utcTimeMillis?gu(b.progressBarEndPosition.utcTimeMillis):null, R.ypcOriginalItct=b.um,R.ypcPreview=b.ypcPreview,R.paidContentOverlayText=uJK(b),R.paidContentOverlayDurationMs=X5P(b),b.G&&vC(b.G)&&(R.usingLocalMedia="true"),R.transitionEndpointAtEndOfStream=b.transitionEndpointAtEndOfStream,R.isSeekable=b.isSeekable;return R}getAdState(){return this.app.getAdState()}isNotServable(b){if(b!==this.app.J5.video_id)return!1;const R=(b=this.app.YO().getPlayerState())?b.gt:null;return!!(b&&R&&b.G(128)&&trK(R.errorCode)===5)}supportsGaplessAudio(){return this.app.L().supportsGaplessAudio()}supportsGaplessShorts(){return this.app.L().supportsGaplessShorts()}enqueueVideoByPlayerVars(b, R,h=Infinity,K=""){this.app.enqueueVideoByPlayerVars(b,R,h,K)}clearQueue(){this.app.clearQueue()}gk(){return g.hT(this)}sendAbandonmentPing(){this.app.E9().sendAbandonmentPing()}setAutonavState(b,R=!1){if(this.N("web_player_autonav_use_server_provided_state")&&!R&&(R=this.app.PD(),R?.O$()))if(b===3)R.autonavState!==3&&(R.Kb=R.autonavState);else if(R.Kb!==void 0)b=R.Kb,R.Kb=void 0;else return;cAx(this.app,b)}setAutonav(b,R=!1){this.setAutonavState(b?2:1,R)}setLoopRange(b){this.app.setLoopRange(b)}getLoopRange(){return this.app.getLoopRange()}hasSupportedAudio51Tracks(){return this.app.YO().hasSupportedAudio51Tracks()}setUserAudio51Preference(b, R=!1){this.app.YO().setUserAudio51Preference(b,R)}getUserAudio51Preference(){return this.app.YO().getUserAudio51Preference()}setProximaLatencyPreference(b){this.app.YO().setProximaLatencyPreference(b)}getProximaLatencyPreference(){return this.app.YO().getProximaLatencyPreference()}isProximaLatencyEligible(){return this.app.YO().isProximaLatencyEligible()}getAppState(){return this.app.getAppState()}updateLastActiveTime(){tF()}setBlackout(b){this.app.setBlackout(b)}setUserEngagement(b){this.app.L().b6!== b&&(this.app.L().b6=b,this.app.YO().Oh())}updateSubtitlesUserSettings(b,R=!0){g.gh(this.app.VV()).i8(b,R)}getCaptionWindowContainerId(){const b=g.gh(this.app.VV());return b?b.getCaptionWindowContainerId():""}toggleSubtitlesOn(){const b=g.gh(this.app.VV());b&&b.VQ()}isSubtitlesOn(){const b=g.gh(this.app.VV());return b?b.isSubtitlesOn():!1}getPlayerResponse(b){return(b=RL(this.app,{playerType:b}))?b.getVideoData().getPlayerResponse():null}wp(){return this.getPlayerResponse(1)}getEmbeddedPlayerResponse(){return this.app.YO().getVideoData().getEmbeddedPlayerResponse()}getWatchNextResponse(b){return(b= RL(this.app,{playerType:b}))?b.getVideoData().getWatchNextResponse():null}EW(){return this.getWatchNextResponse(1)}getHeartbeatResponse(b){return(b=RL(this.app,{playerType:b}))?b.getVideoData().getHeartbeatResponse():null}pR(){return this.getHeartbeatResponse(1)}getStoryboardFrame(b,R){const h=this.app.hW();if(!h)return null;R=h.levels[R];return R?(b=g.Lt(R,b))?{column:b.column,columns:b.columns,height:b.Xc,row:b.row,rows:b.rows,url:b.url,width:b.BV}:null:null}getStoryboardFrameIndex(b,R){const h= this.app.hW();if(!h)return-1;R=h.levels[R];if(!R)return-1;b-=this.Kz();return R.V(b)}getStoryboardLevel(b){var R=this.app.hW();return R?(R=R.levels[b])?{index:b,intervalMs:R.G,maxFrameIndex:R.Y(),minFrameIndex:R.J()}:null:null}getNumberOfStoryboardLevels(){const b=this.app.hW();return b?b.levels.length:0}qy(b){return this.app.E9().qy(b)}Lh(){this.app.E9().Lh();this.publish("onFilterAudioFeatures")}MJ(){return this.getAudioTrack(1)}getAudioTrack(b){return(b=RL(this.app,{playerType:b}))?b.getAudioTrack(): this.app.getVideoData().vD}B3(){const b=RL(this.app,{playerType:void 0});return b?b.B3():null}setAudioTrack(b,R,h){const K=this.app.Nz().Qk;K&&K.Xz(b);h=RL(this.app,{playerType:h});if(!h)return!1;(b=h.Xz(b,R))&&this.Lh();return b}er(b,R){return this.setAudioTrack(b,R,1)}gp(){return this.getAvailableAudioTracks(1)}getAvailableAudioTracks(b){return RL(this.app,{playerType:b}).getAvailableAudioTracks()}getMaxPlaybackQuality(){const b=this.app.YO();return b.getVideoData().Y?a8(b.n3()):"unknown"}getUserPlaybackQualityPreference(){return this.app.YO().getUserPlaybackQualityPreference()}getSubtitlesUserSettings(){const b= g.gh(this.app.VV());return b?b.NZ():null}resetSubtitlesUserSettings(){g.gh(this.app.VV()).Zi()}setMinimized(b){this.app.setMinimized(b)}setOverlayVisibility(b){this.publish("overlayvisibilitychange",b)}setInlinePreview(b){this.app.setInlinePreview(b)}setSqueezeback(b){this.app.setSqueezeback(b)}setGlobalCrop(b){this.app.tX().setGlobalCrop(b)}setAppFullscreen(b){this.app.J8(b?4:0)}SS(){return this.app.SS()}getVisibilityState(){return this.SS().getVisibilityState(this.R0(),this.XG()||g.rv(this.app.L()), this.isMinimized(),this.isInline(),this.app.ut(),this.app.tC(),this.app.TK(),this.app.gR())}isMutedByMutedAutoplay(){return this.app.JI}isMutedByEmbedsMutedAutoplay(){return Kz(this.app)}setInternalSize(b,R){this.app.tX().setInternalSize(new g.ru(b,R))}Kz(b){return(b=RL(this.app,{playerType:b}))?b.Kz():0}isMinimized(){return this.app.isMinimized()}ut(){return this.app.ut()}R0(){return this.app.E9().R0()}isOrchestrationLeader(){return this.app.isOrchestrationLeader()}setSafetyMode(b){this.app.L().enableSafetyMode= b}canPlayType(b){return this.app.canPlayType(b)}updatePlaylist(b){if(b){var R=this.getPlaylistId(),h=!1;R&&R!==b.list&&(h=!0);b.external_list!==void 0&&(this.app.us=E7(!1,b.external_list));const K=b.video;(R=this.app.getPlaylist())&&!h?this.isFullscreen()&&((h=K[R.index])&&h.encrypted_id!==g.fE(R).videoId||(b.index=R.index)):VW(this.app,{list:b.list,index:b.index,playlist_length:K.length});s6B(this.app.getPlaylist(),b);g.oj(this,"onPlaylistUpdate")}else this.app.updatePlaylist()}updateVideoData(b, R){g.lP(this.app.YO().getVideoData(),b,R)}updateEnvironmentData(b){R4(this.app.L(),b,!1)}cO(b){this.app.sendVideoStatsEngageEvent(b,1)}productsInVideoVisibilityUpdated(b){this.publish("changeProductsInVideoVisibility",b)}isAtLiveHead(b,R=!0){return this.app.isAtLiveHead(b,R)}getVideoAspectRatio(){return this.app.tX().getVideoAspectRatio()}getPreferredQuality(){return this.app.E9().getPreferredQuality()}getPlaybackQualityLabel(b){return(b=RL(this.app,{playerType:b}))?b.getVideoData().Y?.D()?.qualityLabel|| "":""}setPlaybackQualityRange(b,R,h,K){(K=RL(this.app,{playerType:K}))&&K.zl(g.I8(b,R||b,!0,"m"),!0,h)}Jq(b,R,h){this.setPlaybackQualityRange(b,R,h,1)}onAdUxClicked(b,R){this.publish("aduxclicked",b,R)}showAirplayPicker(){this.app.showAirplayPicker()}dispatchReduxAction(b){g.NF.dispatch(b)}highlightSettingsMenuItem(b){this.publish("highlightSettingsMenu",b)}openSettingsMenuItem(b){this.publish("openSettingsMenuItem",b)}U(b,R){this.state.Y.subscribe(b,R)}vD(b,R){this.state.Y.unsubscribe(b,R)}nR(b, R=1){this.cueVideoByPlayerVars(b,R)}m_(b,R,h=1,K){this.loadVideoByPlayerVars(b,R,h,K)}wi(b,R=1,h,K){this.preloadVideoByPlayerVars(b,R,h,K)}getFeedbackProductData(){return this.app.getFeedbackProductData()}tU(){return g.hT(this).tU()}DP(){return g.hT(this).DP()}Gh(){return g.hT(this).Gh()}qb(){return this.gk().qb()}dT(...b){this.qb().dT(...b)}d4(){this.qb().d4()}mC(){this.qb().mC()}S(){this.qb().hide()}yU(b,R,h,K,I,N,p,l){this.qb().yU(b,R,h,K,I,N,p,l)}j_(b,R){this.qb().j_(b,R)}qA(b,R,h,K,I){this.gk().qA(b, R,h,K,I)}xE(b){this.qb().setEnabled(b)}eV(b,R){this.gk().eV(b,R)}Ea(b,R){this.gk().Ea(b,R)}gm(b,R){this.gk().gm(b,R)}Vg(){this.gk().Vg()}e1(b,R){this.gk().e1(b,R)}renderChapterSeekingAnimation(b,R,h){this.gk().renderChapterSeekingAnimation(b,R,h)}H2(){this.gk().H2()}getWebPlayerContextConfig(){return this.app.L().getWebPlayerContextConfig()}notifyShortsAdSwipeEvent(){this.publish("shortsadswipe")}KC(){return this.app.E9().KC()}Yk(b,R,h=!1){this.gk()?.Yk(b,R,h)}};g.rU.prototype.TM=RK(7);g.Le=class extends g.rU{constructor(b,R){super(b,R);jcD(this);ww(this,"addEventListener",this.p_);ww(this,"removeEventListener",this.N7);ww(this,"cueVideoByPlayerVars",this.BG);ww(this,"loadVideoByPlayerVars",this.qB);ww(this,"preloadVideoByPlayerVars",this.G$);ww(this,"loadVideoById",this.Kl);ww(this,"loadVideoByUrl",this.jL);ww(this,"playVideo",this.OR);ww(this,"loadPlaylist",this.loadPlaylist);ww(this,"nextVideo",this.nextVideo);ww(this,"previousVideo",this.previousVideo);ww(this,"playVideoAt", this.playVideoAt);ww(this,"getVideoData",this.rS);ww(this,"seekBy",this.ES);ww(this,"seekTo",this.ma);ww(this,"showControls",this.showControls);ww(this,"hideControls",this.hideControls);ww(this,"cancelPlayback",this.cancelPlayback);ww(this,"getProgressState",this.getProgressState);ww(this,"isInline",this.isInline);ww(this,"setInline",this.setInline);ww(this,"setLoopVideo",this.setLoopVideo);ww(this,"getLoopVideo",this.getLoopVideo);ww(this,"getVideoContentRect",this.getVideoContentRect);ww(this,"getVideoStats", this.Hy);ww(this,"getCurrentTime",this.vy);ww(this,"getDuration",this.gS);ww(this,"getPlayerState",this.Ae);ww(this,"getVideoLoadedFraction",this.rI);ww(this,"mute",this.BA);ww(this,"unMute",this.Z7);ww(this,"setVolume",this.Yn);ww(this,"loadModule",this.loadModule);ww(this,"unloadModule",this.unloadModule);ww(this,"getOption",this.FB);ww(this,"getOptions",this.getOptions);ww(this,"setOption",this.setOption);ww(this,"addCueRange",this.addCueRange);ww(this,"getDebugText",this.getDebugText);ww(this, "getStoryboardFormat",this.getStoryboardFormat);ww(this,"toggleFullscreen",this.toggleFullscreen);ww(this,"isFullscreen",this.isFullscreen);ww(this,"getPlayerSize",this.getPlayerSize);ww(this,"toggleSubtitles",this.toggleSubtitles);ww(this,"setCenterCrop",this.setCenterCrop);ww(this,"setFauxFullscreen",this.setFauxFullscreen);ww(this,"setSizeStyle",this.setSizeStyle);ww(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);ww(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);vSw(this)}BZ(b,R,h,K,I, N,p){return this.app.BZ(b,R,h,K,I,N,p)}tD(){return this.app.tD()}VV(){return this.app.VV()}Ik(){const b=this.VV().X$.get("endscreen");return!!b&&b.Ik()}getRootNode(){return this.tX().element}L(){return this.app.L()}xg(){return this.app.Qi()}MF(b){return this.app.MF(b)}yA(){return g.hT(this)?.yA()||null}getSourceConfigForActiveAudioTrack(){const b=this.getVideoData()?.Hs();if(b){const R=this.getAudioTrack().getLanguageInfo().getId();for(const h of b)for(const K of h.audioTracks??[])if(K.id===R)return h}}zW(){return this.app.E9().zW()}getStartTime(b){return RL(this.app, b)?.getStartTime()}getPlayerStateObject(b){return this.app.getPlayerStateObject(b)}tX(){return this.app.tX()}getPlaylist(){return this.app.getPlaylist()}getVideoData(b={}){var R=RL(this.app,b);if(!R)return null;R=R.getVideoData();b.eh===!1?b=R:R.enableServerStitchedDai&&b.playerType===2?(b=this.app,b=b.bj?b.DK.G?.getVideoData()||b.getVideoData():b.getVideoData()):b=R;return b}Np(){return this.app.E9().Np()}hW(b){return this.app.hW(b)}gR(){return this.app.gR()}isHdr(){return this.app.E9().isHdr()}h0(){return this.app.h0()}isEmbedsShortsMode(){var b= g.hT(this);const R=this.getVideoData();b=b?b.F_:this.getPlayerSize();const h=!!this.getPlaylist();return!(!R||!R.isEmbedsShortsMode(new g.ru(b.width,b.height),h))}IL(b,R){this.app.IL(b,1,R)}ij(b,R,h,K,I){this.app.zz(b,R,h,K,I)}playVideo(b,R){try{const h=this.app.Nz().Qk;if(h){h.playVideo();return}if(!b&&this.getPresentingPlayerType()===2){const K=GX(this.app.VV());if(K&&KH(K))return}}catch(h){g.X(h)}this.app.playVideo(b,R)}stopVideo(b){RL(this.app,{playerType:b}).stopVideo()}Jb(b){RL(this.app,{playerType:b}).Jb()}addEventListener(b, R){this.state.X.subscribe(b,R)}removeEventListener(b,R){this.state.X.unsubscribe(b,R)}CA(b){this.app.CA(b)}setPlaybackQuality(b,R){this.setPlaybackQualityRange(b,b,R)}xJ(){const b={},R=this.app.E9().xJ();for(const h of R)b[h.quality]=h;return b}SD(){return this.app.E9().SD()}bQ(b){this.app.bQ(b);b&&cAx(this.app,b)}getVideoUrl(b,R,h,K){let I=this.getPresentingPlayerType(),N=I===2;if(K&&N||I===3)N=!1,I=1;K=this.getVideoData({playerType:I});if(!K)return"";let p;b||K.isLivePlayback||(p=Math.floor(this.getCurrentTime({playerType:I}))); b=N?void 0:this.getPlaylistId()||void 0;R&&b==="WL"&&(b=void 0);return this.app.getVideoUrl(K.videoId,b,p,R,h)}aU(b){this.app.E9().aU(b)}hI(b,R){this.VV().hI(b,R)}Lj(){const b=g.Ws(this.VV());return!!b&&b.Lj()}sA(){const b=g.Ws(this.VV());return!!b&&b.sA()}GM(b,R,h){const K=g.Ws(this.VV());K&&K.GM(b,R,h)}DW(){this.app.E9().B2()}RE(b){g.oj(this,"onVideoAreaChange");g.oj(this,b?"onShowControls":"onHideControls")}tb(b,R){const h=g.hT(this);if(h)return h.tb(b,R);b=this.app.tX().P$();return new g.Xb(0, 0,b.width,b.height)}Ln(){const b=this.VV().X$.get("heartbeat");return!!b&&b.Ln()}Hr(){var b=this.L();if(b.vY||b.disableSeek)return!1;const R=this.app.E9(),h=R.getVideoData();if(!h.Jh()||g.Jw(h)||this.getPresentingPlayerType()===2&&!this.app.w3()&&!h.isSeekable||h.eK()&&this.getPresentingPlayerType(!0)===2||R.PM()&&this.getPresentingPlayerType()!==3)return!1;b=g.bv(b);return g.xE(b)&&!h.er||Kz(this.app)?!1:!0}rg(){return this.app.E9().O5()}isLifaAdPlaying(){const b=this.getVideoData()?.eK();return b? this.getPresentingPlayerType(b)===2:!1}gW(){this.app.E9().gW()}sendVideoStatsEngageEvent(b,R,h){this.app.sendVideoStatsEngageEvent(b,h,R)}f5(b,R,h){this.app.w_(b,R,h)}ZU(b,R){this.app.L6(b,R)}lj(b,R){MG(this.app,b,R)}by(b){return this.app.by(b)}QA(b,R){RL(this.app,{playerType:R})?.QA(b)}PM(){const b=RL(this.app,{playerType:void 0});return b?b.PM():!0}bY(){const b=this.getVideoData();return!!b&&(b.bY()||!!b.hlsFormats||!!b.uT)}getPlaybackRate(){return this.app.YO().getPlaybackRate()}setPlaybackRate(b, R){this.app.setPlaybackRate(b,R)}di(){return this.app.di()}vI(){return this.app.vI()}fh(b){return this.app.fh(b)}createClientVe(b,R,h,K=!1){this.L().NJ&&this.app.oR.createClientVe(b,R,h,K)}createServerVe(b,R,h=!1){this.L().NJ&&this.app.oR.createServerVe(b,R,h)}setTrackingParams(b,R){this.L().NJ&&this.app.oR.setTrackingParams(b,R)}logClick(b,R){this.L().NJ&&(this.app.oR.click(b,R),this.publish("veClickLogged",b))}logVisibility(b,R,h){this.L().NJ&&this.app.oR.sW(b,R,h)}hasVe(b){return this.L().NJ?this.app.oR.hasVe(b): !1}destroyVe(b){this.L().NJ&&this.app.oR.destroyVe(b)}getPresentingPlayerType(b){return this.app.getPresentingPlayerType(b)}getPlayerType(b){return RL(this.app,{cpn:b})?.getPlayerType()}eP(){this.app.eP()}xY(b){this.app.xY(b)}gH(){this.app.gH()}addPlayerResponseForAssociation(){}finishSegmentByCpn(b,R,h){return this.app.finishSegmentByCpn(b,R,h)}Yp(b,R,h,K,I,N,p,l){return this.app.Yp(b,R,h,K,I,N,p,l)}Kn(b,R,h,K,I,N,p,l){this.app.Kn(b,R,h,K,I,N,p,l)}zX(){return this.app.zX()}G9(b){this.app.G9(b)}kA(b= -1,R=Infinity){this.app.kA(b,R)}qI(b){g.gh(this.VV())?.qI(b)}y7(b,R,h){this.app.y7(b,R,h)}PK(){return this.app.PK()}rP(b,R,h=0){this.app.rP(b,R,h)}F9(){return this.app.F9()}w3(){return this.app.w3()}eU(b,R,h){return this.app.eU(b,R,h)}YZ(b,R,h=!1,K){RL(this.app,{playerType:K})?.YZ(b,R,h)}Y2(b,R){this.publish("aduxmouseover",b,R)}Gt(b,R){this.publish("aduxmouseout",b,R)}Jp(b,R){this.publish("muteadaccepted",b,R)}GK(){return this.app.tX().GK()}zU(b){this.app.tX().zU(b)}u3(b){return b?this.app.Yc(): this.app.E9().u3()}L$(b){this.app.L$(b)}Ji(){this.app.E9().Ji()}PX(){this.app.PX()}getGetAdBreakContext(){const b=this.app.YO();return b.getVideoData().getGetAdBreakContext(b.getCurrentTime(),b.Kz())}hd(b,R){this.app.E9().hd(b,R)}PP(){return this.app.E9().PP()}CZ(b){return RL(this.app,{playerType:b})?.CZ()||0}};g.W=g.Le.prototype;g.W.y5=RK(46);g.W.qh=RK(44);g.W.aX=RK(42);g.W.TU=RK(40);g.W.nG=RK(36);g.W.oB=RK(35);g.W.IB=RK(29);g.W.Km=RK(23);g.W.v7=RK(17);g.W.n8=RK(15);g.W.p8=RK(11);g.W.v_=RK(9);var Ghs=class extends vL{constructor(){super(...arguments);this.requestHeaders={}}RX(b,R){return{...super.RX(b,R),...this.requestHeaders}}},yK;var SpH=class{constructor(b){this.experiments=b;this.G=2048;this.V=0;this.G6=(this.D=this.N("html5_streaming_resilience"))?.5:.25;this.X=g.fg(this.experiments,"html5_media_time_weight_prop")||0;this.U=(this.S=this.experiments.O9("html5_consider_end_stall"))&&F2;this.Y=this.experiments.O9("html5_measure_max_progress_handling");this.K=this.N("html5_treat_requests_pre_elbow_as_metadata");this.J=this.N("html5_media_time_weight")||!!this.X;this.N("html5_sabr_live_audio_early_return_fix")&&F2&&(this.G= 65536)}N(b){return this.experiments.O9(b)}};g.K7=class extends g.N3{constructor(b){super();this.PY=b;this.w2={rJ:()=>this.PY}}X5(){this.V(); super.X5()}V(){this.PY.dispose()}addCueRange(b){this.PY.addCueRange(b)}w_(b,R){this.PY.w_(b,R)}Vh(){this.PY.Vh()}uY(){return this.PY.uY()}Jg(b){return this.PY===b}B2(){this.PY.DW()}VO(b,R){this.PY.VO(b,R)}Wo(b,R){return this.PY.Wo(b,R)}SB(b){this.PY.SB(b)}Lh(){this.PY.Lh()}qy(b){return this.PY.qy(b)}getAudioTrack(){return this.PY.getAudioTrack()}B3(){return this.PY.B3()}getAvailableAudioTracks(){return this.PY.getAvailableAudioTracks()}xJ(){return this.PY.xJ()}SD(){return this.PY.SD()}m7(){return this.getVideoData().clientPlaybackNonce}Vk(){return this.PY.Vk()}JC(){return this.PY.JC()}mH(){return this.PY.mH()}getCurrentTime(){return this.PY.getCurrentTime()}Ng(){return this.PY.Ng()}kG(){return this.PY.kG()}RT(b){return this.PY.RT(b)}getDuration(b){return this.PY.getDuration(b)}va(){return this.PY.va()}hh(){return this.PY.hh()}O5(){return this.PY.O5()}PK(){return this.PY.PK()}U_(){return this.PY.U_()}xg(){return this.PY.xg()}CZ(){return this.PY.CZ()}b3(){return this.PY.b3()}QK(b){return this.PY.QK(b)}di(){return this.PY.di()}Uz(){return this.PY.Uz()}f0(){return this.PY.f0()}SU(){return this.PY.SU()}lR(b, R,h){return this.PY.lR(b,R,h)}getPlaybackQuality(){return this.PY.getPlaybackQuality()}getPlaybackRate(){return this.PY.getPlaybackRate()}getPlayerState(){return this.PY.getPlayerState()}getPlayerType(){return this.PY.getPlayerType()}getPlaylistSequenceForTime(b){return this.PY.getPlaylistSequenceForTime(b)}fh(b){return this.PY.fh(b)}KC(){return this.PY.KC()}getPreferredQuality(){return this.PY.getPreferredQuality()}FO(){return this.PY.FO()}getProximaLatencyPreference(){return this.PY.getProximaLatencyPreference()}n3(){return this.PY.n3()}getStartTime(){return 0}hW(){return this.getVideoData().hW()}getStoryboardFormat(){return this.getVideoData().getStoryboardFormat()}getStreamTimeOffset(){return this.PY.getStreamTimeOffset()}GU(){return this.PY.GU()}Kz(){return this.PY.Kz()}zW(){return this.PY.zW()}getUserAudio51Preference(){return this.PY.getUserAudio51Preference()}getUserPlaybackQualityPreference(){return this.PY.getUserPlaybackQualityPreference()}getVideoData(){return this.PY.getVideoData()}Np(){return this.PY.Np()}Vn(){return this.PY.Vn()}getVideoLoadedFraction(){if(this.getVideoData().Sn())return 1; const b=this.PY.di();return b?b.oK():0}rJ(){return this.PY}rK(b){this.PY.rK(b)}handleError(b){this.PY.handleError(b)}z2(b){this.PY.z2(b)}M9(b){this.PY.M9(b)}PM(){return this.PY.PM()}hasSupportedAudio51Tracks(){return this.PY.hasSupportedAudio51Tracks()}isAd(){return this.getVideoData().isAd()}Oj(){return this.PY.Oj()}R0(){return this.PY.R0()}isAtLiveHead(b,R){return this.PY.isAtLiveHead(b,R)}ez(){return this.PY.ez()}isGapless(){return this.PY.isGapless()}GI(){return this.PY.GI()}isHdr(){return this.PY.isHdr()}bW(){return this.PY.bW()}Qa(){return this.PY.Qa()}PP(){return this.PY.PP()}isProximaLatencyEligible(){return this.PY.isProximaLatencyEligible()}F9(){return this.PY.F9()}Y5(b){return!!this.PY.loader?.Y5(b)}C2(){return this.PY.C2()}kd(){this.PY.kd()}IZ(b){this.PY.IZ(b)}NL(){this.PY.NL()}kR(){this.PY.kR()}Jz(){this.PY.Jz()}r0(){this.PY.r0()}qL(b){this.PY.qL(b)}e0(){this.PY.e0()}pauseVideo(b){this.PY.pauseVideo(b)}prefetchKeyPlay(b, R){this.PY.prefetchKeyPlay(b,R)}MM(b){this.PY.MM(b)}Xb(b){this.PY.Xb(b)}playVideo(b,R){return this.PY.playVideo(b,R)}Mc(b,R,h,K,I){this.PY.Mc(b,R,h,K,I)}Gl(b,R,h,K,I){this.PY.Gl(b,R,h,K,I)}YZ(b,R,h){this.PY.YZ(b,R,h)}aU(b){this.PY.aU(b)}hd(b,R){this.PY.bl.hd(b,R)}uy(b,R,h){this.PY.uy(b,R,h)}n5(b){this.PY.n5(b)}Z$(b){this.PY.Z$(b)}oE(b,R){this.PY.oE(b,R)}XZ(b,R,h,K,I,N,p,l){this.PY.XZ(b,R,h,K,I,N,p,l)}Iz(){WM(this.PY.bl)}qX(b){this.PY.qX(b)}Jb(b,R){this.PY.Jb(b,R)}removeCueRange(b){this.PY.removeCueRange(b)}L6(b){this.PY.L6(b)}lj(b){return this.PY.Ei.lj(b)}HK(b){this.PY.HK(b)}RB(b, R,h){this.PY.RB(b,R,h)}WP(){this.PY.WP()}vC(){this.PY.Ei.reset()}K7(){this.PY.K7()}yZ(b,R,h){this.PY.yZ(b,R,h)}seekTo(b,R){this.PY.seekTo(b,R)}sendAbandonmentPing(){this.PY.sendAbandonmentPing()}sendVideoStatsEngageEvent(b,R){this.PY.sendVideoStatsEngageEvent(b,R)}Ad(b,R,h){this.PY.Ad(b,R,h)}setLoop(b){this.PY.setLoop(b)}tA(){this.PY.tA()}setMediaElement(b){this.PY.setMediaElement(b)}Yf(b,R,h,K){this.PY.Yf(b,R,h,K)}setPlaybackRate(b){this.PY.setPlaybackRate(b)}ij(b,R,h,K,I,N){this.PY.ij(b,R,h,K,I, N)}Jd(b,R){this.PY.Jd(b,R)}QA(b){this.PY.QA(b)}setProximaLatencyPreference(b){this.PY.setProximaLatencyPreference(b)}cK(b,R,h){this.PY.cK(b,R,h)}Vb(b){this.PY.Vb(b)}hj(){this.PY.hj()}GP(b){this.PY.GP(b)}setUserAudio51Preference(b,R){this.PY.setUserAudio51Preference(b,R)}zl(b,R,h){this.PY.zl(b,R,h)}yk(){return this.PY.yk()}gW(){this.PY.gW()}u3(){return this.PY.u3()}J1(b){this.PY.J1(b)}S8(){this.PY.S8()}BB(b){this.PY.BB(b)}stopVideo(){this.PY.stopVideo()}subscribe(b,R,h){return this.PY.subscribe(b, R,h)}vZ(b,R){this.PY.vZ(b,R)}togglePictureInPicture(){this.PY.togglePictureInPicture()}by(b){return this.PY.Ei.by(b)}u7(b){this.PY.Ei.u7(b)}unsubscribe(b,R,h){return this.PY.unsubscribe(b,R,h)}jG(b,R){this.PY.jG(b,R)}Xz(b,R){return this.PY.Xz(b,R)}Oh(){this.PY.Oh()}zP(b){this.PY.zP(b)}Ji(){this.PY.Ji()}};g.W=g.K7.prototype;g.W.uC=RK(51);g.W.TU=RK(39);g.W.oB=RK(34);g.W.IB=RK(28);g.W.Km=RK(22);g.W.n8=RK(14);var nfT=class{constructor(){this.licenseRequest=this.mediaKeys=this.G=this.certificate=null;this.Y=!1}dispose(){this.certificate=null;this.G?.dispose();this.licenseRequest=this.G=null;this.mediaKeys?.dispose();this.mediaKeys=null;this.Y=!0}HY(){return this.Y}};var JA=class extends g.PH{constructor(b,R,h,K=!1){super(R);this.A=b;this.gp=K;this.S=new g.Ke(this);this.fade=new g.Sg(this,h,!0,void 0,void 0,()=>{this.U()}); g.n(this,this.S);g.n(this,this.fade)}show(){const b=this.nZ();super.show();this.gp&&(this.S.j(window,"blur",this.aT),this.S.j(AT(this),"click",this.MJ));b||this.publish("show",!0)}hide(){const b=this.nZ();super.hide();gS3(this);b&&this.publish("show",!1)}zD(b,R){this.sourceElement=b;this.fade.show();R?(this.J||(this.J=this.S.j(this.A,"appresize",this.K)),this.K()):this.J&&(this.S.Ac(this.J),this.J=void 0)}U(){this.sourceElement&&this.element&&(this.sourceElement.getAttribute("aria-haspopup"),this.sourceElement.setAttribute("aria-expanded", "true"),this.focus())}K(){const b=g.hT(this.A);this.sourceElement&&b.qA(this.element,this.sourceElement)}aT(){const b=this.nZ();gS3(this);this.fade.hide();b&&this.publish("show",!1)}MJ(b){const R=h$(b);R&&(g.gM(this.element,R)||this.sourceElement&&g.gM(this.sourceElement,R)||!g.MU(b))||this.aT()}nZ(){return this.XM&&this.fade.state!==4}};var Ef3=class extends JA{constructor(b,R,h,K){K=new g.w({B:"div",F5:["ytp-linked-account-popup-button"],IH:K,O:{role:"button",tabindex:"0"}});R=new g.w({B:"div",Z:"ytp-linked-account-popup",O:{role:"dialog","aria-modal":"true",tabindex:"-1"},W:[{B:"div",Z:"ytp-linked-account-popup-title",IH:R},{B:"div",Z:"ytp-linked-account-popup-description",IH:h},{B:"div",Z:"ytp-linked-account-popup-buttons",W:[K]}]});super(b,{B:"div",Z:"ytp-linked-account-popup-container",W:[R]},100);this.dialog=R;g.n(this,this.dialog); K.listen("click",()=>{this.aT()}); g.n(this,K);g.dL(this.A,this.element,4);this.hide()}zD(){super.zD();this.dialog.focus()}};g.PO=class extends g.PH{constructor(b,R,h,K){super(b);this.priority=R;h&&g.Uz(this,h);K&&this.setContent(K)}setIcon(b){this.updateValue("icon",b)}updateValue(b,R){super.updateValue(b,R);this.publish("size-change")}};g.wU={dC:18,ZJ:17,DI:16,lrZ:15,ORY:14,fF:13,hv:12,XY:11,gC:10,Qs:9,AUDIO:8,SUBTITLES:7,SLEEP_TIMER:6,aW:5,TB:4,n_:3,Ms:2,REMOTE:1,LI:0,18:"LOOP",17:"STABLE_VOLUME",16:"VOICE_BOOST",15:"REMOTE_SELECT",14:"SIZE",13:"MINIPLAYER",12:"THREED",11:"AUTONAV",10:"CINEMATIC",9:"ANNOTATIONS",8:"AUDIO",7:"SUBTITLES",6:"SLEEP_TIMER",5:"SPEED",4:"AUDIO_SETTINGS",3:"QUALITY",2:"LINKEDACCOUNT",1:"REMOTE",0:"CONTEXTMENU"};var TQ2=class extends g.PO{constructor(b){super(g.zq({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);this.A=b;this.Y=this.G=!1;this.Gy=b.yA();b.createServerVe(this.element,this,!0);this.j(this.A,"settingsMenuVisibilityChanged",R=>{this.Qp(R)}); this.j(this.A,"videodatachange",this.V);this.listen("click",this.onClick);this.V()}Qp(b){this.Y&&this.A.logVisibility(this.element,this.G&&b)}V(){var b=this.A.getVideoData()?.accountLinkingConfig?.linked;b&&!this.G?(b=this.A.getVideoData()?.accountLinkingConfig,this.setIcon(Ah()),g.Uz(this,Gq(b?.menuData?.connectedMenuLabel)),this.X=new Ef3(this.A,Gq(b?.menuData?.connectedDialogTitle),Gq(b?.menuData?.connectedDialogMessage),Gq(b?.menuData?.confirmButtonText)),g.n(this,this.X),b=b?.menuData?.trackingParams|| null,(this.Y=!!b)&&this.A.setTrackingParams(this.element,b),this.Gy.WH(this),this.G=!0):!b&&this.G&&(this.Gy.yn(this),this.G=!1)}onClick(){this.Y&&this.A.logClick(this.element);this.Gy.aT();this.X&&this.X.zD()}};var oV=class extends g.N3{constructor(b){super();this.api=b}N(b){return this.api.N(b)}};var JZK=class extends oV{constructor(b){super(b);L(b,"setAccountLinkState",R=>{this.setAccountLinkState(R)}); L(b,"updateAccountLinkingConfig",R=>{this.updateAccountLinkingConfig(R)}); b.addEventListener("videodatachange",(R,h)=>{this.onVideoDataChange(h)}); b.addEventListener("settingsMenuInitialized",()=>{this.menuItem=new TQ2(this.api);g.n(this,this.menuItem)})}onVideoDataChange(b){if(!b.accountLinkingConfig){var R=b.getPlayerResponse()?.accountLinkingConfig; b.accountLinkingConfig=R}if(R=b.accountLinkingConfig?.alsParam)b.WB=R}setAccountLinkState(b){this.api.getVideoData().WB=b;this.api.DW()}updateAccountLinkingConfig(b){const R=this.api.getVideoData(),h=R.accountLinkingConfig;h&&(h.linked=b);this.api.publish("videodatachange","dataupdated",R,this.api.getPresentingPlayerType())}};var kBP=class extends oV{constructor(b){super(b);this.G=null;this.events=new g.Ke(b);g.n(this,this.events);this.events.j(b,"applicationvideodatachange",()=>{this.Tt()})}Tt(){const b=this.api.getPlaybackRate(); var R=this.api.getVideoData();if(R){var h=R.adFormat==="17_8";var K=R.pK?.Y()===8;h=R.isAd()&&(h||K)}else h=!1;h||((R=this.api.getVideoData())?(h=R.adFormat==="15_6",K=R.pK?.Y()===7,h=R.isAd()&&(h||K)):h=!1);h?(b!==1&&(this.G=b),this.api.setPlaybackRate(1)):this.G!==null&&(this.api.setPlaybackRate(this.G),this.G=null)}};var Yp3=class{constructor(b){this.api=b;this.G={}}};var e6s=class extends oV{constructor(b){super(b);this.events=new g.Ke(this);g.n(this,this.events);this.G=new Yp3(this.api);this.events.j(this.api,"legacyadtrackingpingreset",()=>{this.G.G={}}); this.events.j(this.api,"legacyadtrackingpingchange",R=>{var h=this.G;Wr(h,"part2viewed",1,0x8000000000000);Wr(h,"engagedview",Math.max(1,R.eb*1E3),0x8000000000000);if(!R.isLivePlayback){var K=R.lengthSeconds*1E3;GT(R)&&h.api.N("html5_shorts_gapless_ads_duration_fix")&&(K=h.api.getProgressState().seekableEnd*1E3-R.Vz);Wr(h,"videoplaytime25",K*.25,K);Wr(h,"videoplaytime50",K*.5,K);Wr(h,"videoplaytime75",K*.75,K);Wr(h,"videoplaytime100",K,0x8000000000000);Wr(h,"conversionview",K,0x8000000000000);Wr(h, "videoplaybackstart",1,K);Wr(h,"videoplayback2s",2E3,K);Wr(h,"videoplayback10s",1E4,K)}}); this.events.j(this.api,g.fM("appad"),this.Y);this.events.j(this.api,g.yf("appad"),this.Y)}Y(b){var R=b.getId();const h=this.api.getVideoData({playerType:1}),K=!this.api.isInline();if(!h.inlineMetricEnabled||K){if(R==="part2viewed"){if(h.GO&&g.Co(h.GO),h.Au&&Sp(this,h.Au),h.AA){var I={CPN:this.api.getVideoData().clientPlaybackNonce};for(var N of h.AA)Sp(this,g.eB(N,I))}}else R==="engagedview"&&h.Fs&&(I={CPN:this.api.getVideoData().clientPlaybackNonce},g.Co(g.eB(h.Fs,I)));h.Y6&&(I=h.Y6,N=b.getId(), I=GE(I,{label:N}),g.Co(I));switch(R){case "videoplaytime25":h.Qz&&Sp(this,h.Qz);h.Gx&&nz(this,h.Gx);h.Ir&&g.Co(h.Ir);break;case "videoplaytime50":h.Pm&&Sp(this,h.Pm);h.Ym&&nz(this,h.Ym);h.XW&&g.Co(h.XW);break;case "videoplaytime75":h.nx&&Sp(this,h.nx);h.Tx&&nz(this,h.Tx);h.M_&&g.Co(h.M_);break;case "videoplaytime100":h.tS&&Sp(this,h.tS),h.n$&&nz(this,h.n$),h.TO&&g.Co(h.TO)}(I=this.api.getVideoData().jJ)&&TVP(this,I,b.getId())&&TVP(this,I,`${b.getId()}gaia`)}if(h.inlineMetricEnabled&&!K)switch(R){case "videoplaybackstart":(R= h.jx?.G)&&Sp(this,R);break;case "videoplayback2s":(R=h.jx?.X)&&Sp(this,R);break;case "videoplayback10s":(R=h.jx?.Y)&&Sp(this,R)}this.api.ZU([b],1)}};var OFK=class extends oV{constructor(b){super(b);this.events=new g.Ke(b);g.n(this,this.events);this.events.j(b,"videoready",R=>{b.getPresentingPlayerType()===1&&(R={playerDebugData:{pmlSignal:!!R.getPlayerResponse()?.adPlacements?.some(h=>h?.adPlacementRenderer?.renderer), contentCpn:R.clientPlaybackNonce}},g.yp("adsClientStateChange",R))})}};var Db=class extends g.PO{constructor(b,R){super(g.zq({role:"menuitemcheckbox","aria-checked":"false"}),R,b,{B:"div",Z:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}onClick(){this.enabled&&(this.G(!this.checked),this.publish("select",this.checked))}getValue(){return this.checked}G(b){this.checked=b;this.element.setAttribute("aria-checked",String(this.checked))}setEnabled(b){(this.enabled=b)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled", "true")}};var Q9T={Y$:2,DI:1,ZJ:0,2:"AUDIO_TRACK",1:"VOICE_BOOST",0:"STABLE_VOLUME"};var JT=["en-CA","en","es-MX","fr-CA"];var xOD=class extends Db{constructor(b,R){super(b.N("web_fix_annotations")?"Superposiciones con anotaciones":"Anotaciones",g.wU.Qs);this.A=b;this.Gy=R;this.Y=!1;b.N("web_settings_menu_icons")&&(R=b.N("delhi_modern_web_player_icons")?{B:"svg",O:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{B:"path",O:{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"}}]}:{B:"svg",O:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{B:"path",O:{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(R));this.j(b,"videodatachange",this.bv);this.j(b,"onApiChange",this.bv);this.subscribe("select",this.onSelect,this);this.bv()}isLoaded(){const b=g.Ws(this.A.VV());return b!==void 0&&b.loaded}bv(){!this.A.N("web_fix_annotations")&&g.Ws(this.A.VV())===void 0||this.A.getPresentingPlayerType()===3?this.Y&&(this.Gy.yn(this),this.Y=!1):this.Y||(this.Gy.WH(this),this.Y=!0);this.A.N("web_fix_annotations")?this.G(this.A.N("web_fix_annotations")&&!!this.A.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.isAnnotationsEnabled): this.G(this.isLoaded())}onSelect(b){this.A.N("web_fix_annotations")||this.isLoaded();b?this.A.loadModule("annotations_module"):this.A.unloadModule("annotations_module");this.A.publish("annotationvisibility",b)}X5(){this.Y&&this.Gy.yn(this);super.X5()}};var mOw=class extends oV{constructor(b){super(b);this.events=new g.Ke(b);g.n(this,this.events);b.addEventListener("settingsMenuInitialized",()=>{const R=new xOD(this.api,this.api.yA());g.n(this,R)})}};var PBq={[0]:b=>ckH(b,R=>R.Nj?.id), [2]:b=>mV(b,ep), [3]:b=>mV(b,Oz), [4]:b=>mV(b,xu), [1]:b=>mV(b,QK)},rwK=class{constructor(b){this.G={}; this.X={};this.w2={qg9:()=>this.G}; this.videoData=b;const R=b.X?.X;R&&R.length>0?this.Y=R:(b=b.getAvailableAudioTracks(),this.Y=b.length>0?QcT(b):[]);for(const h of b_)this.G[h]=PBq[h](this.Y);this.Lh()}qy(b){return this.X[b]}Lh(){let b=this.Y;const R={};for(const h of b_)if(this.G[h]){b=RC[h].Oa(b,this.videoData);for(const K of b_)R[K]!==void 0||dx(b,RC[K].Sv)||(R[K]=RC[h].sB);R[h]===void 0&&(R[h]=0)}else R[h]=1;this.X=R}},b_=[0,1,2,3,4],RC={[0]:{sB:2,Sv:Z6H,Oa:emq},[2]:{sB:4,Sv:ep,Oa:O6T},[3]:{sB:5,Sv:Oz,Oa:xSx},[1]:{sB:3,Sv:QK, Oa:mSs},[4]:{sB:6,Sv:xu,Oa:PCB}};var ZFw=class extends oV{constructor(b){super(b);this.events=new g.Ke(b);g.n(this,this.events);const R=this.api.N("html5_enable_audio_quality_setting_feature");L(this.api,"getUserAudioQualitySetting",()=>R?this.getUserAudioQualitySetting():2); L(this.api,"setUserAudioQualitySetting",h=>{R&&this.setUserAudioQualitySetting(h)}); L(this.api,"hasHqaAudioTrack",()=>R?this.hasHqaAudioTrack():!1); L(this.api,"getAudioQualitySettingState",()=>R?this.api.qy(4):1); this.M2=rFw();this.updateEnvironmentData()}getUserAudioQualitySetting(){return this.M2}setUserAudioQualitySetting(b){this.api.YZ("aqs_set",{setting:b});g.Iz("yt-player-audio-quality-setting",b,3122064E3);b!==this.M2&&(this.M2=b,this.updateEnvironmentData(),this.hasHqaAudioTrack()&&this.api.Ji(),this.api.Lh())}hasHqaAudioTrack(){const b=this.api.getVideoData()?.X?.Y;return b?dx(b,R=>xu(R)):!1}updateEnvironmentData(){this.api.L().M2=this.M2}};var cZq=class extends oV{constructor(b){super(b);L(this.api,"getAudioTrackState",()=>this.api.qy(0))}};var usq=class extends g.w{constructor(b){super({B:"button",F5:["ytp-button","ytp-autonav-toggle"],O:{title:b.N("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"},W:[{B:"div",Z:"ytp-autonav-toggle-button-container",W:[{B:"div",Z:"ytp-autonav-toggle-button",O:{"aria-checked":"true"}}]}]});this.A=b;this.X=[];this.G=!1;this.isChecked=!0;b.createClientVe(this.element, this,113681);this.j(b,"presentingplayerstatechange",this.Y);this.listen("click",this.onClick);this.X.push(this.j(this.A,"videodatachange",this.Y));this.X.push(this.j(this.A,"videoplayerreset",this.Y));this.X.push(this.j(this.A,"onPlaylistUpdate",this.Y));this.X.push(this.j(this.A,"autonavchange",this.V));b.N("delhi_fast_follow_autonav_toggle")&&this.element.classList.add("delhi-fast-follow-autonav-toggle");Ny(b,this.element,this);this.Y()}Y(){var b;if(b=this.A.getPresentingPlayerType()!==3&&g.fz(this.A)&& this.A.tX().getPlayerSize().width>=400)b=this.PD(),b=this.A.L().N("client_respect_autoplay_switch_button_renderer")?!!b.autoplaySwitchButtonRenderer:!!b.getWatchNextResponse()?.contents?.twoColumnWatchNextResults?.autoplay?.autoplay!==!1;b?this.G||(this.G=!0,this.sW(this.G),b=this.PD(),this.V(b.autonavState),this.A.logVisibility(this.element,this.G)):(this.G=!1,this.sW(this.G))}V(b){uuT(this)?this.isChecked=b!==1:((b=b!==1)||(b=g.HL(),b=g.cg("web_autonav_allow_off_by_default")&&!b.WY(141)&&g.x("AUTONAV_OFF_BY_DEFAULT")? !1:!b.WY(140)),this.isChecked=b);XzP(this)}onClick(){this.isChecked=!this.isChecked;this.A.bQ(this.isChecked?2:1);XzP(this);if(uuT(this)){const b=this.PD().autoplaySwitchButtonRenderer;this.isChecked&&b?.onEnabledCommand?g.rw(this.A,"innertubeCommand",b.onEnabledCommand):!this.isChecked&&b?.onDisabledCommand&&g.rw(this.A,"innertubeCommand",b.onDisabledCommand)}this.A.logClick(this.element)}getValue(){return this.isChecked}PD(){return this.A.getVideoData({playerType:1})}};var XB3=class extends oV{constructor(b){super(b);this.events=new g.Ke(b);g.n(this,this.events);this.events.j(b,"standardControlsInitialized",()=>{const R=new usq(b);g.n(this,R);b.eV(R,"RIGHT_CONTROLS_LEFT")})}};var Vrq=class extends Db{constructor(b){super(b.N("web_player_use_cinematic_label_2")?"Modo Ambiente":"Iluminaci\u00f3n cinem\u00e1tica",g.wU.gC);this.A=b;this.Y=!1;this.X=new g.bI(()=>{g.lI(this.element,"ytp-menuitem-highlighted")},0); this.Gy=b.yA();b=b.N("delhi_modern_web_player_icons")?{B:"svg",O:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{B:"path",O:{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"}}]}:{B:"svg",O:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{B:"path",O:{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(b);this.subscribe("select",this.V,this);this.listen(Tx,this.S);g.n(this,this.X)}bv(b){b?this.Y||(this.Gy.WH(this),this.Y=!0):this.Y&&(this.Gy.yn(this), this.Y=!1);this.Y&&this.G(EUq())}S(){g.lI(this.element,"ytp-menuitem-highlight-transition-enabled")}V(b){var R=EUq();b!==R&&(R=g.HL(),d8(190,b),d8(192,!0),R.save(),g.rw(this.A,"cinematicSettingsToggleChange",b))}X5(){this.Y&&this.Gy.yn(this);super.X5()}};var VQe=class extends oV{constructor(b){super(b);this.G=!1;b.addEventListener("settingsMenuInitialized",()=>{CC2(this)}); b.addEventListener("highlightSettingsMenu",R=>{CC2(this);var h=this.menuItem;R==="menu_item_cinematic_lighting"&&(g.Nv(h.element,"ytp-menuitem-highlighted"),g.Nv(h.element,"ytp-menuitem-highlight-transition-enabled"),h.X.start())}); L(b,"updateCinematicSettings",R=>{this.updateCinematicSettings(R)})}updateCinematicSettings(b){this.G=b; this.menuItem?.bv(b);this.api.publish("onCinematicSettingsVisibilityChange",b)}};var CBq=class extends oV{constructor(b){super(b);this.events=new g.Ke(b);g.n(this,this.events);this.events.j(b,"applicationvideodatachange",(R,h)=>{h=h.clipConfig;R==="dataloaded"&&h&&h.startTimeMs!=null&&h.endTimeMs!=null&&this.api.setLoopRange({startTimeMs:Math.floor(Number(h.startTimeMs)),endTimeMs:Math.floor(Number(h.endTimeMs)),postId:h.postId,type:"clips"})})}};var MQ3=class extends oV{constructor(b){super(b);this.events=new g.Ke(b);g.n(this,this.events);L(b,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));L(b,"setCreatorEndscreenHideButton",this.G.bind(this));this.N("web_fix_annotations")&&this.events.j(b,"annotationvisibility",R=>{this.setCreatorEndscreenVisibility(!R);this.hideButton&&g.aR(this.hideButton,R)})}setCreatorEndscreenVisibility(b){SR(this.api.VV())?.sW(b)}G(b){this.hideButton=b; b=R=>{R==="creatorendscreen"&&(R=SR(this.api.VV()))&&R.Lc(this.hideButton)}; this.events.j(this.api,"modulecreated",b);b("creatorendscreen")}};var rZP=class extends oV{constructor(b){super(b);this.events=new g.Ke(b);g.n(this,this.events);this.events.j(b,"videodatachange",()=>{var R=this.api.getRootNode();const h=this.api.L();g.Nv(R,"ytp-delhi-modern");h.N("delhi_modern_web_player_icons")&&g.Nv(R,"ytp-delhi-modern-icons");h.N("delhi_modern_web_player_horizontal_volume_controls")&&g.Nv(R,"ytp-delhi-horizontal-volume-controls");h.N("delhi_modern_web_player_compact_controls")&&g.Nv(R,"ytp-delhi-modern-compact-controls");h.N("delhi_modern_web_player_big_mode_consistent_pill_height")&& g.Nv(R,"ytp-big-mode-consistent-pill-height");switch(my(h.experiments,"delhi_modern_web_player_blending_mode")){case "luminosity":g.Nv(R,"ytp-delhi-modern-with-luminosity");break;case "difference":g.Nv(R,"ytp-delhi-modern-with-difference");break;case "exclusion":g.Nv(R,"ytp-delhi-modern-with-exclusion")}R=this.api.isHdr()||this.api.N("delhi_modern_web_player_disable_frosted_glass")?"none":"initial";this.api.getRootNode().style.setProperty("--yt-frosted-glass-backdrop-filter-override",R);Mrs(this)}); this.events.j(b,"resize",()=>{Mrs(this)})}};var LEK=class extends Db{constructor(b,R,h,K,I){const N=b.N("html5_enable_new_audio_settings_menu");super("Volumen estable",N?Q9T.ZJ:g.wU.ZJ);this.A=b;this.S=R;this.X=h;this.hasDrcAudioTrack=K;this.getDrcState=I;this.V=this.enableNewAudioSettingsMenu=this.Y=!1;g.Nv(this.element,"ytp-drc-menu-item");this.Gy=(this.enableNewAudioSettingsMenu=N)?b.yA().Kx:b.yA();b.N("html5_enable_voice_boost")?(this.V=!0,this.j(b,"onFilterAudioFeatures",this.ZQ)):b.addEventListener("videodatachange",this.ZQ.bind(this)); b.N("mta_drc_mutual_exclusion_removal")&&this.j(b,"onPlaybackAudioChange",this.ZQ);b.createClientVe(this.element,this,273317);this.listen("click",this.D);R=this.X()===1&&this.hasDrcAudioTrack();this.enableNewAudioSettingsMenu||(b=b.N("delhi_modern_web_player_icons")?{B:"svg",O:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{B:"path",O:{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"}}]}:{B:"svg",O:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{B:"path",O:{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(b));this.subscribe("select",this.J,this);this.enableNewAudioSettingsMenu||this.V?this.ZQ():(this.setEnabled(this.hasDrcAudioTrack()),this.G(R),this.Gy.WH(this))}J(b){this.S(b?1:0)}ZQ(){if(this.enableNewAudioSettingsMenu|| this.V){var b=this.A.getPresentingPlayerType();b===2||b===3?this.Y&&(this.Y=!1,this.Gy.yn(this)):(b=this.getDrcState(),b!==1?(b===0?(this.G(this.X()===1),this.setEnabled(!0)):(this.G(!1),this.setEnabled(!1)),this.Y||(this.Gy.WH(this),this.Y=!0)):this.Y&&(this.Gy.yn(this),this.Y=!1))}else{b=this.hasDrcAudioTrack();const R=this.X()===1&&b;this.G(R);this.setEnabled(b)}}X5(){this.Gy.yn(this);super.X5()}D(){this.A.logClick(this.element)}};var wBT=class extends oV{constructor(b){super(b);this.events=new g.Ke(b);g.n(this,this.events);b.N("html5_show_drc_toggle")&&b.addEventListener("settingsMenuInitialized",()=>{this.menuItem||(this.menuItem=new LEK(this.api,this.setDrcUserPreference.bind(this),this.getDrcUserPreference.bind(this),this.Y.bind(this),this.getDrcState.bind(this)),g.n(this,this.menuItem))}); L(this.api,"setDrcUserPreference",R=>{this.setDrcUserPreference(R)}); L(this.api,"getDrcUserPreference",()=>this.getDrcUserPreference()); L(this.api,"hasDrcAudioTrack",()=>this.Y()); L(this.api,"getDrcState",()=>this.getDrcState()); this.G=g.NC("yt-player-drc-pref")??1;this.updateEnvironmentData()}getDrcUserPreference(){return this.G}setDrcUserPreference(b){this.api.YZ("drc_set",{pref:b});g.Iz("yt-player-drc-pref",b,31536E3);b!==this.G&&(this.G=b,this.updateEnvironmentData(),this.Y()&&this.api.Ji(),this.api.Lh())}updateEnvironmentData(){this.api.L().K5=this.G===1}Y(){const b=this.api.getVideoData()?.X?.Y;if(!b)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.N("mta_drc_mutual_exclusion_removal")){const R=this.api.B3()?.Nj?.id; return dx(b,h=>h.audio.G&&h.Nj?.id===R)}return dx(b,R=>R.audio?.G===!0)}getDrcState(){return this.api.qy(3)}};var FEe=class extends oV{constructor(b){super(b);this.G={};this.events=new g.Ke(b);g.n(this,this.events);this.events.j(b,"videodatachange",()=>{this.onVideoDataChange()}); this.events.j(b,g.fM("embargo"),R=>{this.api.aU(!0);var h=this.G[R.id]??[];for(const K of h)this.api.hideControls(),this.api.ij("auth",2,"This video isn't available in your current playback area",ba({embargoed:1,id:R.id,idx:R.Y,start:R.start})),(h=K.embargo?.onTrigger)&&g.rw(this.api,"innertubeCommand",h)})}onVideoDataChange(){const b=this.api.getVideoData(); this.api.lj("embargo",1);const R=b?.dh.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");R?.length?rkH(this,R.filter(h=>h.onEnter?.some(this.Y))):b?.cueRanges&&rkH(this,b.cueRanges.filter(h=>h.onEnter?.some(this.Y)))}Y(b){return b.embargo!==void 0}X5(){super.X5(); this.G={}}};var ofq=class extends oV{constructor(b){super(b);this.G=[];this.events=new g.Ke(b);g.n(this,this.events);L(b,"addEmbedsConversionTrackingParams",R=>{this.addEmbedsConversionTrackingParams(R)}); this.events.j(b,"veClickLogged",R=>{this.api.hasVe(R)&&(R=R.visualElement.getAsJspb(),R=g.vv(R,2),this.G.push(R))})}addEmbedsConversionTrackingParams(b){var R=this.api.L(); const h=R.widgetReferrer,K=R.gB,I=this.G;let N="";const p=R.getWebPlayerContextConfig();p&&(N=p.embedsIframeOriginParam||"");h.length>0&&(b.embeds_widget_referrer=h);K.length>0&&(b.embeds_referring_euri=K);R.V&&N.length>0&&(b.embeds_referring_origin=N);p&&p.embedsFeature&&(b.feature=p.embedsFeature);I.length>0&&(R.N("embeds_web_enable_lite_experiment_control_arm_logging")?I.unshift(28572):g.xE(g.bv(R))&&I.unshift(159628),R=I.join(","),R=g.y5()?R:g.co(R,4),b.source_ve_path=R);this.G.length=0}};var DOs=class extends oV{constructor(b){super(b);L(b,"isEmbedsShortsMode",()=>b.isEmbedsShortsMode()); L(b,"getReelItemWatchResponse",()=>b.getVideoData({playerType:1})?.getReelItemWatchResponse()??null)}};var bvH=class extends oV{constructor(b){super(b);this.events=new g.Ke(b);g.n(this,this.events);this.events.j(b,"initialvideodatacreated",R=>{mF(xI(),16623);this.G=g.Ui();var h=b.L().x4&&!R.pz;P0(R)&&h?(mF(xI(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),R.getWatchNextResponse()&&(h=R.getWatchNextResponse()?.trackingParams)&&uD(h),R.getPlayerResponse()&&(R=R.getPlayerResponse()?.trackingParams)&&uD(R)):(mF(xI(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}), R.getEmbeddedPlayerResponse()&&(R=R.getEmbeddedPlayerResponse()?.trackingParams)&&uD(R))}); this.events.j(b,"loadvideo",()=>{mF(xI(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:this.G})}); this.events.j(b,"cuevideo",R=>{R===1&&mF(xI(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:this.G})}); this.events.j(b,"largeplaybuttonclicked",R=>{mF(xI(),27240,R.visualElement)}); this.events.j(b,"playlistnextbuttonclicked",R=>{mF(xI(),27240,R.visualElement)}); this.events.j(b,"playlistprevbuttonclicked",R=>{mF(xI(),27240,R.visualElement)}); this.events.j(b,"playlistautonextvideo",()=>{mF(xI(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}};var Lxs=class extends g.N3{constructor(b,R){super();this.G=null;this.X=R;R=[];for(let h=0;h<=100;h++)R.push(h/100);R={threshold:R,trackVisibility:!0,delay:1E3};(this.Y=window.IntersectionObserver?new IntersectionObserver(h=>{h=h[h.length-1];let K=null;typeof h.isVisible==="undefined"?document.visibilityState==="visible"&&h.isIntersecting&&h.intersectionRatio>0?K=h.intersectionRatio:document.visibilityState==="hidden"?K=0:K=null:K=h.isVisible?h.intersectionRatio:0;K!=null&&(K=Math.max(K,0),K=Math.min(K, 1));this.G=K;typeof this.X==="function"&&this.X(this.G)},R):null)&&this.Y.observe(b)}X5(){super.X5(); this.G=null;this.Y&&this.Y.disconnect()}};var RTP=class extends oV{constructor(b){super(b);this.events=new g.Ke(b);g.n(this,this.events);this.events.j(b,"applicationInitialized",()=>{wzK(this)})}};var hTq=class extends oV{constructor(b){super(b);L(this.api,"dismissFeaturedProductOverlay",()=>{this.dismissFeaturedProductOverlay()})}dismissFeaturedProductOverlay(){this.api.publish("featuredproductdismissed")}};var KGw=class extends g.w{constructor(b){super({B:"div",F5:["ytp-player-content","ytp-iv-player-content"],W:[{B:"div",Z:"ytp-free-preview-countdown-timer",W:[{B:"span",IH:"{{label}}"},{B:"span",Z:"ytp-free-preview-countdown-timer-separator",IH:"\u2022"},{B:"span",IH:"{{duration}}"}]}]});this.api=b;this.G=null;this.X=this.Y=0;this.j(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}show(){super.show();this.api.logVisibility(this.element,!0)}stopTimer(){this.G&& (this.G.dispose(),this.G=null)}onVideoDataChange(b){var R=this.api.getVideoData()?.getPlayerResponse()?.playabilityStatus;R&&(R=Fxx(R),this.api.getPlayerStateObject().G(128)||b==="dataloaderror"||!R?(this.Y=0,this.stopTimer(),this.hide()):(b=(R.remainingTimeSecs||0)*1E3,b>0&&(this.show(),this.updateValue("label",kI(R.label)),DSs(this,b))))}X5(){this.stopTimer();super.X5()}};var sO2=class extends oV{constructor(b){super(b);this.events=new g.Ke(b);g.n(this,this.events);this.events.j(b,"basechromeinitialized",()=>{this.G=new KGw(b);g.n(this,this.G);g.dL(b,this.G.element,4);this.G.hide()})}};var $iT=class extends g.w{constructor(b){super({B:"button",F5:["ytp-fullerscreen-edu-button","ytp-button"],W:[{B:"div",F5:["ytp-fullerscreen-edu-text"],IH:"Desliza hacia abajo para ver m\u00e1s detalles"},{B:"div",F5:["ytp-fullerscreen-edu-chevron"],W:[caw()]}],O:{"data-priority":"2"}});this.qJ=b;this.fade=new g.Sg(this,250,void 0,100);this.Y=this.G=!1;b.createClientVe(this.element,this,61214);g.n(this,this.fade);this.j(b,"fullscreentoggled",this.bv);this.j(b,"presentingplayerstatechange",this.bv); this.listen("click",this.onClick);this.bv()}V(b){g.k(this.element,"ytp-fullerscreen-edu-button-subtle",b);b&&!this.Y&&(this.qJ.N("player_tooltip_data_title_killswitch")?this.element.setAttribute("title","Desliza hacia abajo para ver m\u00e1s detalles"):this.element.setAttribute("data-tooltip-title","Desliza hacia abajo para ver m\u00e1s detalles"),Ny(this.qJ,this.element,this),this.Y=!0)}onClick(){this.qJ.logClick(this.element);g.rw(this.qJ,"onFullerscreenEduClicked")}X(b){this.G=b;this.bv()}bv(){this.qJ.isFullscreen()? this.G?this.fade.hide():this.fade.show():this.hide();this.qJ.logVisibility(this.element,this.qJ.isFullscreen()&&!this.G)}};var IJx=class extends oV{constructor(b){super(b);this.events=new g.Ke(b);g.n(this,this.events);L(this.api,"updateFullerscreenEduButtonSubtleModeState",h=>{this.updateFullerscreenEduButtonSubtleModeState(h)}); L(this.api,"updateFullerscreenEduButtonVisibility",h=>{this.updateFullerscreenEduButtonVisibility(h)}); const R=b.L();b.N("external_fullscreen_with_edu")&&R.externalFullscreen&&I4(R)&&R.controlsType==="1"&&this.events.j(b,"standardControlsInitialized",()=>{this.G=new $iT(b);g.n(this,this.G);b.eV(this.G)})}updateFullerscreenEduButtonSubtleModeState(b){this.G?.V(b)}updateFullerscreenEduButtonVisibility(b){this.G?.X(b)}};var NrP=class extends g.w{constructor(b){super({B:"div",Z:"ytp-gated-actions-overlay",W:[{B:"div",Z:"ytp-gated-actions-overlay-background",W:[{B:"div",Z:"ytp-gated-actions-overlay-background-overlay"}]},{B:"button",F5:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],O:{"aria-label":"Cerrar"},W:[g.y7()]},{B:"div",Z:"ytp-gated-actions-overlay-bar",W:[{B:"div",Z:"ytp-gated-actions-overlay-text-container",W:[{B:"div",Z:"ytp-gated-actions-overlay-title",IH:"{{title}}"},{B:"div",Z:"ytp-gated-actions-overlay-subtitle", IH:"{{subtitle}}"}]},{B:"div",Z:"ytp-gated-actions-overlay-button-container"}]}]});this.api=b;this.background=this.yX("ytp-gated-actions-overlay-background");this.Y=this.yX("ytp-gated-actions-overlay-button-container");this.G=[];this.j(this.yX("ytp-gated-actions-overlay-miniplayer-close-button"),"click",()=>{g.rw(this.api,"onCloseMiniplayer")}); this.hide()}};var pTP=class extends oV{constructor(b){super(b);this.events=new g.Ke(b);g.n(this,this.events);this.G=new NrP(this.api);g.n(this,this.G);this.events.j(b,"videodatachange",()=>{const R=this.api.getVideoData()?.zq;var h=this.G;if(R){h.update({title:R.title?.content||"",subtitle:R.subtitle?.content||""});var K=R.thumbnail;let I="none";if(K?.sources){let N=0;for(const p of K.sources)p.width&&p.url&&p.width>N&&(N=p.width,I=`url(${p.url})`)}h.background.style.backgroundImage=I;RI2(h,R.actionButtons||[]); h.show()}else h.hide()}); g.dL(this.api,this.G.element,4)}};var lJB=class extends oV{constructor(b){super(b);ww(this.api,"getSphericalProperties",()=>this.getSphericalProperties()); ww(this.api,"setSphericalProperties",(...R)=>{this.setSphericalProperties(...R)}); La(this.api,"getSphericalProperties",()=>this.api.getPresentingPlayerType()===2?{}:this.getSphericalProperties()); La(this.api,"setSphericalProperties",(...R)=>{this.api.getPresentingPlayerType()!==2&&this.setSphericalProperties(...R)})}getSphericalProperties(){const b=g.qy(this.api.VV()); return b?b.getSphericalProperties():{}}setSphericalProperties(b){if(b){var R=g.qy(this.api.VV());R&&R.setSphericalProperties(b,!0)}}};var aJ3=class extends oV{constructor(b){super(b);L(b,"createClientVe",this.createClientVe.bind(this));L(b,"createServerVe",this.createServerVe.bind(this));L(b,"destroyVe",this.destroyVe.bind(this));L(b,"hasVe",this.hasVe.bind(this));L(b,"logClick",this.logClick.bind(this));L(b,"logVisibility",this.logVisibility.bind(this));L(b,"setTrackingParams",this.setTrackingParams.bind(this))}createClientVe(b,R,h,K=!1){this.api.createClientVe(b,R,h,K)}createServerVe(b,R,h=!1){this.api.createServerVe(b,R,h)}setTrackingParams(b, R){this.api.setTrackingParams(b,R)}logClick(b,R){this.api.logClick(b,R)}logVisibility(b,R,h){this.api.logVisibility(b,R,h)}hasVe(b){return this.api.hasVe(b)}destroyVe(b){this.api.destroyVe(b)}};var vDx=class{constructor(b,R){this.g2=b;this.policy=R;this.playbackRate=1}setPlaybackRate(b){this.playbackRate=Math.max(1,b)}getPlaybackRate(){return this.playbackRate}};var BrP=class{constructor(b,R,h,K){this.SY=b;this.oH=R;this.policy=h;this.logger=K;this.XQ=[];this.Ic=[];this.G=-1;this.il=null;this.U=this.timestampOffset=0;this.Y=10;this.S=new Set;this.w2={h3:I=>this.h3(I)}; this.V=R.AO?0:1;h.qH>0&&(this.Y=h.qH)}MJ(b){this.S.add(b.info.Dr);this.G=N1T(this,this.Ic,this.XQ,b,this.G);this.X=b;this.U=(0,g.c)()}D(){if(this.Ic.length===0||this.policy.jx&&this.G<0)return null;var b=this.Ic[this.G]?this.Ic[this.G].formatId:null;return b?(b=this.oH.X.get(am(b)))?b.info:null:null}G6(b){pmP(this,this.Ic,"og");lnw(this,b);pmP(this,this.Ic,"trim");const {Ic:R,XQ:h}=ans(this);b=[];for(let K=0;K0){const v=bC(l,N);v>=0&&(a=(l.end(v)-N+.1)*1E3)}b.push({formatId:g.o5(I.info.hX.info,this.oH.AO),oU:I.info.oU,sequenceNumber:I.info.Dr+this.V,s5:p,x8:I.info.Y,UL:a})}return{Ic:R,vM:b}}nR(b,R){R?.RK||(this.XQ=[]);this.policy.jx?(b=g.Yz(this.Ic,{startTimeMs:b*1E3},(h,K)=>h.startTimeMs-K.startTimeMs),this.G!==b&&(this.G=-1,this.X=void 0)):(lnw(this,!0), this.G=$LK(this.Ic,b*1E3))}T6(b){this.il=b}gp(){return this.X?.info}h3(b){const R=g.o5(b.info.hX.info,this.oH.AO),h=b.info.Dr+this.V; var K=b.info.startTime*1E3;if(this.policy.pR)try{K=this.policy.pR?g.xp(b)*1E3:b.info.startTime*1E3}catch(p){Math.random()>.99&&this.logger&&(K=ae(b.Y).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:b.info.vR(),encodedDataView:g.Zc(K,4)})),K=b.info.startTime*1E3}const I=b.info.clipId;let N=this.policy.pR?g.JhK(b)*1E3:b.info.duration*1E3;this.policy.pR&&(K<0||N<0)&&(this.logger&&(this.logger({missingSegInfo:b.info.vR(),startTimeMs:K,durationMs:N}),this.policy.Ge||(K<0&&(K=b.info.startTime* 1E3),N<0&&(N=b.info.duration*1E3))),this.policy.Ge&&(K<0&&(K=b.info.startTime*1E3),N<0&&(N=b.info.duration*1E3)));return{formatId:R,Dr:h,startTimeMs:K,clipId:I,zm:N}}J(){this.Ic=[];this.XQ=[];this.S.clear();this.G=-1;this.X=void 0}K(){this.X=void 0}yj(b){this.timestampOffset=b}C(b){return this.S.has(b)}};var Hvx=class{constructor(b,R,h,K,I){this.loader=b;this.oH=R;this.videoTrack=h;this.audioTrack=K;this.policy=I;this.seekCount=this.targetTime=0;this.V=!1;this.X=null;this.Y=0;this.G=this.oH.isManifestless&&!this.oH.VB}seek(b,R){b!==this.targetTime&&(this.seekCount=0);this.targetTime=b;const h=this.videoTrack.G,K=this.audioTrack.G,I=this.audioTrack.il,N=HAw(this,this.videoTrack,b,this.videoTrack.il,R);R=HAw(this,this.audioTrack,this.policy.CR?b:N,I,R);b=Math.max(b,N,R);this.V=!0;this.oH.isManifestless&& (q1x(this,this.videoTrack,h),q1x(this,this.audioTrack,K));return b}isSeeking(){return this.V}wX(b){this.Y=b}},B1B=2/24;var qcx=0;var hW,sG=class{constructor(){this.data=new Uint8Array(2048);this.pos=0;hW||(hW=tX("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}add(b){if(this.pos+20>this.data.length){const R=new Uint8Array(this.data.length*2);R.set(this.data);this.data=R}for(;b>31;)this.data[this.pos++]=hW[(b&31)+32],b>>=5;this.data[this.pos++]=hW[b|0]}MU(){return g.dn(this.data.subarray(0,this.pos))}reset(){this.pos=0}};var dix=class{constructor(b,R){this.z6=b;this.requestNumber=++qcx;this.G=this.now();this.U=this.G6=NaN;this.D=this.G;this.X=this.ri=this.S=0;this.J=this.G;this.PH=this.MJ=this.JX=this.wi=this.s8=this.SY=this.Y=this.V=0;this.C=this.isActive=!1;this.m_=this.Sn=0;this.w2={t6H:()=>this.r9}; this.g2=R.g2;this.snapshot=bE(this.g2);this.policy=this.g2.Y;this.Lt=!!R.Lt;this.vk=R.vk;this.h8=R.h8||0;this.YV=R.YV||0;R.BX&&(this.vY=new sG);this.r9=R.r9??!1;this.Lt||ThD(this.g2)}I$(){this.G6=this.now();jse(this.g2,this.G6);this.z6.I$()}kM(b,R){const h=this.policy.Y?(0,g.c)():0;Kx(this,b,R);b-this.J<10&&this.Y>0||this.T6(b,R);this.z6.kM(b,R);this.policy.Y&&(b=(0,g.c)()-h,this.m_+=b,this.Sn=Math.max(b,this.Sn))}T6(b,R){const h=(b-this.J)/1E3,K=R-this.X;this.Lt||(Rb(this.g2,h,K),this.vk(h,K));this.J= b;this.X=R}Po(){this.SY&&Auq(this);this.z6.Po()}CX(b){this.SY||(this.SY=this.S-this.ri+b,this.s8=this.S,this.wi=this.D)}nR(b=this.D,R=this.S){this.Y>0||(this.U=b,this.Y=R,this.C=this.isActive=!0)}fR(){return this.YV||2}HR(){}K(){const b={rn:this.requestNumber,rt:(this.D-this.G).toFixed(),lb:this.S,stall:(1E3*this.V).toFixed(),ht:(this.G6-this.G).toFixed(),elt:(this.U-this.G).toFixed(),elb:this.Y,d:this.vY?.MU()};this.url&&hIT(b,this.url);this.policy.Y&&(b.mph=this.Sn.toFixed(),b.tph=this.m_.toFixed()); b.ulb=this.JX;b.ult=this.MJ;return b}now(){return(0,g.c)()}deactivate(){this.isActive&&(this.isActive=!1)}};var Km=class extends dix{constructor(b,R){super(b,R);this.EW=this.Ys=!1;this.NJ=this.gp=Infinity;this.Zr=NaN;this.jn=!1;this.RH=NaN;this.K0=this.pR=this.xZ=0;this.VC=R.VC||1;this.jE=R.jE||this.VC;this.Mm=R.Mm;this.Dr=R.Dr;this.Wr=R.Wr;zIs(this);this.pz(this.G);this.Kh=(this.RH-this.G)/1E3}K(){const b=super.K();b.pb=this.VC;b.pt=(1E3*this.Kh).toFixed();b.se=this.K0;return b}Ct(){const b=this.z6;this.KR||(this.KR=b.Ct?b.Ct():1);return this.KR}uu(){return this.Mm?this.Ct()!==1:!1}FM(b,R,h){if(!this.Ys){this.Ys= !0;if(!this.Lt){Kx(this,b,R);this.T6(b,R);var K=this.Ct();this.K0=h;if(!this.Lt)if(K===2){K=b-this.U0)||$C(this,K,R),this.Y>0&&h6(this.g2,R,this.V));b=(b-this.G)/1E3||.01;this.policy.K&&!(this.Y>0)||Ks(this.g2, b,this.X,ULB(this),this.r9)}this.deactivate()}}gT(b,R,h){h&&(this.KR=2);b<0&&this.YV&&(b=this.YV);R?this.xZ+=b:this.pR+=b}fR(){return this.pR||this.xZ||super.fR()}T6(b,R){const h=(b-this.J)/1E3,K=R-this.X,I=this.Ct();this.isActive?I===1&&((K>0||this.policy.S)&&(h>.2||K<1024)?(this.V+=h,K>0&&h>.2&&$C(this,this.h8?h:.05,K),this.EW=!0):K>0&&($C(this,h,K),this.EW=!0)):R&&R>=this.policy.G&&this.nR(b,R);super.T6(b,R)}CR(b){if(!this.Lt){Kx(this,b,this.S);var R=(b-this.G)/1E3;this.Ct()!==2&&this.Y>0&&(this.V+= (b-this.J)/1E3,h6(this.g2,this.X,this.V));Ks(this.g2,R,this.X,ULB(this),this.r9,!0);b=(b-this.J)/1E3;Rb(this.g2,b,0);this.vk(b,0)}}nR(b=this.D,R=this.S){if(!(this.Y>0)&&(super.nR(b,R),this.Ct()===1)){R=(this.G6-this.G)/1E3;var h=(b-this.G6)/1E3;this.Mm&&It(this,this.now());this.jn||this.Lt||(this.YV&&(h=Math.max(0,h-this.YV)),b=this.g2,b.K.a8(1,R),b.MJ.a8(1,h))}}hc(){this.Mm&&It(this,this.now());return this.Zr}O2(){var b;if(b=this.X>this.jE)b=(b=this.X)?b>=this.policy.G:!1;return b}Ty(){return this.RH}pz(b= this.now()){let R;if(this.Mm){It(this,b);if(this.KR?this.uu():this.gp!==this.NJ){if(R=this.NJ,b0?h+b:h+Math.max(b,R)}wp(){return this.now()-this.U}Zl(){return(this.X-this.Y)*1E3/this.wp()||0}SK(){return this.U}};var sX=class{constructor(b){this.z6=b;this.G=new ju}feed(b){Ie(this.G,b);this.NC()}NC(){if(this.V){if(!this.G.totalLength)return;const {xr:R,ZH:h}=this.G.split(this.X-this.Y);if(!this.z6.CX(this.V,R,this.Y,this.X))return;this.Y+=R.totalLength;this.G=h;this.Y===this.X&&(this.V=this.X=this.Y=void 0)}for(;;){var b=0;let R,h;[R,b]=S12(this.G,b);[h,b]=S12(this.G,b);if(R<0||h<0)break;if(!(b+h<=this.G.totalLength)){if(!(this.z6.CX&&b+1<=this.G.totalLength))break;({ZH:b}=this.G.split(b));this.z6.CX(R,b,0, h)&&(this.V=R,this.Y=b.totalLength,this.X=h,this.G=new ju([]));break}const {xr:K,ZH:I}=this.G.split(b).ZH.split(h);this.z6.x5(R,K);this.G=I}}dispose(){this.G=new ju}};var fJx=class{constructor(b,R){this.info=b;this.callback=R;this.state=1;this.bc=this.KJ=!1;this.CT=null}tM(){return 0}GS(){return null}vW(){return null}KP(){return this.state>=1}isComplete(){return this.state>=3}nU(){return this.state===5}onStateChange(){}Na(b){const R=this.state;this.state=b;this.onStateChange(R);this.callback&&this.callback(this,R)}rH(b){b&&this.state{b+= `${R.vR()}.`}); return b.slice(0,-1)}dispose(){this.HY()||(this.info.kZ[0].hX.G6=!1,this.Na(-1))}B8(){return 0}};var JuT=class{constructor(b,R,h,K={}){this.policy=R;this.z6=h;this.status=0;this.G=new ju;this.Y=0;this.HY=this.V=this.X=!1;this.xhr=new XMLHttpRequest;this.xhr.open(K.method||"GET",b);if(K.headers){b=K.headers;for(const I of Object.keys(b))this.xhr.setRequestHeader(I,b[I])}this.xhr.withCredentials=!0;this.xhr.onreadystatechange=()=>this.qk(); this.xhr.onload=()=>this.onDone(); this.xhr.onerror=()=>this.onError(); this.xhr.fetch(I=>{this.G.append(I);this.Y+=I.length;I=(0,g.c)();this.z6.kM(I,this.Y)},()=>{},K.body||null)}qk(){this.xhr.status&&(this.status=this.xhr.status); this.xhr.readyState===this.xhr.HEADERS_RECEIVED&&this.z6.I$()}onError(){this.X=!0;this.onDone()}onDone(){this.HY||(this.V=!0,this.z6.Po())}Z9(){return this.xhr.readyState>=this.xhr.HEADERS_RECEIVED}getResponseHeader(b){try{return this.xhr.getResponseHeader(b)}catch{return""}}kp(){return+this.getResponseHeader("content-length")}CU(){return this.Y}p6(){return this.status>=200&&this.status<300&&!!this.Y}q2(){return this.G.totalLength>0}tB(){const b=this.G;this.G=new ju;return b}GL(){return this.G}abort(){this.HY= !0;this.xhr.abort()}o$(){return!0}aE(){return this.X}e6(){return""}};var yvq=class{constructor(b,R){this.Y=(new TextEncoder).encode(b);this.G=(new TextEncoder).encode(R)}};var T1e=class{constructor(b,R){this.G=b;this.z6=R;this.loaded=this.status=0;this.error="";b=Ht(this.G.get("range")||"");if(!b)throw Error("bad range");this.range=b;this.Y=new ju;this.run().then(()=>{this.z6.Po()},h=>{this.error=`${h}`||"unknown_err"; this.z6.Po()})}async run(){this.status=200; const b=this.G.get("docid"),R=ii(this.G.get("fmtid")||""),h=this.G.get("lmt")||"0",K=+(this.G.get("csz")||0);if(!b||!R||!K)throw Error("Invalid local URL");let I;this.G.get("ck")&&this.G.get("civ")&&(I=new yvq(this.G.get("ck"),this.G.get("civ")));const N=this.range;var p=Math.floor(N.start/K);const l=Math.floor(N.end/K);for(;p<=l;p++){var a=await x1x(b,R,h,p,I);if(a===void 0)throw Error("invariant: data is undefined");var v=p*K;const B=Math.max(0,N.start-v);v=Math.min(N.end+1,(p+1)*K)-(B+v);a=new Uint8Array(a.buffer, B,v);this.Y.append(a);this.loaded+=v;this.loaded{if(I)if(this.status=I.status,I.ok&&I.body&&this.status!==204)this.status=this.status||242,this.X=I.body.getReader(),this.HY()?this.X.cancel().catch(()=>{}):(this.responseHeaders=I.headers,this.z6.I$(),EAK(this)); else this.onDone();else this.onError(Error("null_response"))}; this.D=I=>{const N=(0,g.c)();this.HY()||(I.done?(this.X=void 0,this.onDone()):(I=I.value,this.Y+=I.length,this.G.append(I),EAK(this),this.z6.kM(N,this.Y)))}; this.onError=I=>{this.errorMessage=String(I);this.S=!0;this.onDone()}; this.G=new ju;this.V=window.AbortController?new AbortController:void 0;this.start(b)}start(b){const R={credentials:"include",cache:"no-store"};Object.assign(R,this.J);this.V&&(R.signal=this.V.signal);b=new Request(b,R);fetch(b).then(this.K,this.onError).then(void 0,J2)}onDone(){this.HY()||this.z6.Po()}getResponseHeader(b){return this.responseHeaders?this.responseHeaders.get(b):null}Z9(){return!!this.responseHeaders}CU(){return this.Y}kp(){return+this.getResponseHeader("content-length")}p6(){return this.status>= 200&&this.status<300&&!!this.Y}q2(){return!!this.G.totalLength}tB(){const b=this.G;this.G=new ju;return b}GL(){return this.G}HY(){return this.aborted}abort(){this.X&&this.X.cancel().catch(()=>{}); this.V&&this.V.abort();this.aborted=!0}o$(){return!0}aE(){return this.S}e6(){return this.errorMessage}};var Y1x=class{constructor(b,R,h={}){this.z6=R;this.Y=this.status=0;this.HY=this.G=!1;this.xhr=new XMLHttpRequest;this.xhr.open(h.method||"GET",b);if(h.headers){b=h.headers;for(var K of Object.keys(b))this.xhr.setRequestHeader(K,b[K])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=I=>{this.qk(I)}; K=YI(I=>{this.onDone(I)}); this.xhr.addEventListener("load",K,!1);this.xhr.addEventListener("error",K,!1);h.body?this.xhr.send(h.body):this.xhr.send();this.xhr.addEventListener("progress",YI(I=>{this.onProgress(I)}),!1)}onDone(){if(!this.HY){this.status=this.xhr.status; try{this.response=this.xhr.response,this.Y=this.response.byteLength}catch{}this.G=!0;this.z6.Po()}}qk(){this.xhr.readyState===2&&this.z6.I$()}onProgress(b){this.HY||(this.status=this.xhr.status,this.G||(this.Y=b.loaded),this.z6.kM((0,g.c)(),b.loaded))}Z9(){return this.xhr.readyState>=2}getResponseHeader(b){try{return this.xhr.getResponseHeader(b)}catch{return g.kJ(Error(`Could not read XHR header ${b}`)),""}}kp(){return+this.getResponseHeader("content-length")}CU(){return this.Y}p6(){return this.status>= 200&&this.status<300&&this.G&&!!this.Y}q2(){return this.G&&!!this.response&&!!this.response.byteLength}tB(){const b=this.response;this.response=void 0;return new ju([new Uint8Array(b)])}GL(){return new ju([new Uint8Array(this.response)])}abort(){this.HY=!0;this.xhr.abort()}o$(){return!1}aE(){return!1}e6(){return""}};var tK2=class extends g.N3{constructor(b,R){super();this.policy=b;this.kZ=R;this.Y=0;this.G=null;this.HO=[];this.X=null;this.w2={jR:()=>this.kZ}; this.kZ.length===1||g.fr(this.kZ,h=>!!h.range)}Nm(){if(!this.HO.length)return[]; const b=this.HO;this.HO=[];this.X=g.Ng(b).info;return b}Ed(){return this.HO}X5(){super.X5();this.G=null;this.HO.length=0;this.kZ.length=0;this.X=null}};var t3K=class extends g.N3{constructor(b,R,h,K,I,N,p,l,a=!1){super();this.z6=b;this.policy=R;this.SX=h;this.yV=K;this.timing=I;this.logger=N;this.V=p;this.zK=l;this.J=a;this.lastError=null;this.G=0;this.S=!1;this.X=0;this.Y=new g.bI(this.D,this.policy.wi,this)}D(){if(!this.HY()){var b=(0,g.c)(),R=!1;if(this.policy.gB){var h=this.timing.Y>0?this.timing.U:this.timing.G;this.policy.I7&&this.X&&(h=this.X);b=b-h-(this.policy.E_?this.policy.Kb:this.timing.fR()*1E3);h=sP(lz(this),!1);b>=2E3*h?R=!0:b>=this.policy.qc* h&&(this.G=this.policy.dk)}else if(this.timing.Y>0){if(this.J){this.policy.FM&&(this.G=0);return}b=this.timing.Ty();this.timing.pz();this.timing.Ty()-b>=this.policy.wi*.8?(this.G++,R=this.G>=5):this.G=0}else R=b-this.timing.hc(),this.policy.dk&&R>0&&(this.G+=1),b=sP(lz(this),!1)*this.policy.Gi,R=R>b*1E3;this.G>0&&this.z6.c8();R?this.s$():this.Y.start()}}s$(){this.S=!0;this.z6.KM();this.lastError="net.timeout";at(this)}canRetry(b){const R=lz(this);b=b?this.policy.Dw:this.policy.Cm;return R.timedOut< this.policy.s0&&R.G{this.Na(J)}, r9e:()=>this.CT, Y8Z:J=>{this.CT=J}, GfY:J=>{this.g4=J}, nT9:J=>{this.l5.lastError=J}, H8:()=>this.xhr}; this.timing=new Km(this,h);this.VU=p;this.qU=H;this.Bg=q;this.SX=g.gX(this.info,this.policy,K);this.SX.set("rn",this.SJ().toString());this.SX.set("rbuf",(l*1E3).toFixed().toString());this.VU&&this.SX.set("smb","1");this.policy.YM&&a&&this.SX.set("pot",a);B&&this.SX.set("bbs",B);this.policy.useUmp&&!Zu(94,this.SX.DL)&&(this.xH=new sX(this),this.SX.set("ump","1"),this.SX.set("srfvp","1"));if(b=this.policy.Uh?this.policy.Ft&&!isNaN(this.info.Wr)&&this.info.Wr>this.policy.Yi?!1:!0:!1)R=null,this.policy.C3&& this.policy.fZ?R=[1]:d&&(R=[]),R!=null&&(this.policy.u$&&R.push(2),this.SX.set("defsel",R.join(",")));this.l5=new t3K(this,this.policy,this.SX,this.info.yV,this.timing,this.logger,K,v);this.Yy=N||null;this.bc=IF3(this);eIw(this.l5);K=void 0;if(this.policy.yw||this.xH||this.policy.SY)K={method:"POST"},N=(0,g.oM)([120,0]),v={},S&&(S=yL(void 0,S),v.WL=S),this.policy.n4&&this.Bg&&(v.videoPlaybackUstreamerConfig=this.Bg),this.policy.SY&&(S=this.info.V)&&Object.assign(v,S),Object.keys(v).length>0?K.body= g.gn(v,g.n4):K.body=N;this.qU&&this.Bg&&(this.SX.set("iwts","1"),K={method:"POST"},S=g.gn({O7:{hZ:this.qU*1E3},H$:this.info.V?.H$||void 0,videoPlaybackUstreamerConfig:this.Bg},g.n4),K.body=S);try{this.xhr=Nn(this.SX,this.policy.D,this.timing,b,K),this.l5.Y.start(),t&&(this.CP=new g.bI(this.Ue,t,this),this.CP.start(t+(this.timing.g2.K.JU()||0)*1E3)),g.Mq(()=>{})}catch(J){NOB(this,J,!0)}}SJ(){return this.timing.requestNumber}xj(){return this.SX.xj()}QG(){const b=xLw(this.l5); if(this.xH){var R=this.xH,h=R.G.totalLength;b.ulen=h;h>0&&(R=vJ(R.G,0),b.ubyte=R,h===1&&R===0&&(b.b248180278=!0))}this.g4&&(b.rc=this.policy.Z5?this.g4:this.g4.toString());this.policy.jn&&this.u8&&(b.tr=this.u8);b.itag=this.info.kZ[0].hX.info.itag;b.ml=`${+this.info.kZ[0].hX.G()}`;b.sq=`${this.info.kZ[0].Dr}`;this.SX&&(b.ifi=`${+uU(22,this.info.yV.Y)}`);this.g4!==410&&this.g4!==500&&this.g4!==503||(b.fmt_unav="true");(h=this.errorMessage||this.xhr?.e6())&&(b.msg=h);this.VU&&(b.smb="1");this.info.isDecorated()&& (b.sdai="1");return b}uF(){return G5P(this.timing)}e6(){return this.xhr.e6()||""}O2(){return this.isComplete()||this.timing.O2()}kM(){!this.HY()&&this.xhr&&(this.g4=this.xhr.status,this.policy.aS&&this.CT&&this.t8(!1),this.yS()?this.rH(2):!this.mf&&this.O2()&&(this.rH(),this.mf=!0))}I$(){if(!this.HY()&&this.xhr){if(!this.GW&&this.xhr.Z9()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var b=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.GW=((0,g.c)()-b)/1E3}this.xhr.Z9()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&& this.policy.Lk&&!C$3()&&g.Iz("yt-player-headers-readable",!0,2592E3);b=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var R=Number(this.xhr.getResponseHeader("X-Head-Time-Millis"));this.CP?.stop();this.IP=b||this.IP;this.QS=R||this.QS}}Po(){var b=this.xhr;!this.HY()&&b&&(this.g4=b.status,b=this.i9(b),this.policy.jn&&this.CP?.stop(),b===5?at(this.l5):this.Na(b),this.l5.Y.stop())}i9(b){p4D(this);if(vb(this.l5,this.xhr.status,this.Iy?this.timing.C||this.D7:this.xhr.p6(),!1,this.W2))return 5;var R= "";Bb(this.l5,this.xhr)&&(R=Qsq(this.l5,this.xhr));if(R)return KO(lz(this.l5)),this.info.kH(this.SX,R),3;R=b.CU();if(this.xH){this.t8(!0);p4D(this);if(vb(this.l5,this.xhr.status,this.timing.C||this.D7,!1,this.W2))return 5;if(!this.ot){if(this.D7)return KO(lz(this.l5)),3;this.l5.lastError="net.closed";return 5}}else{if(vb(this.l5,this.xhr.status,this.xhr.p6(),!1,this.W2))return 5;var h=this.info.X;if(h&&h!==R||b.aE())return this.l5.lastError="net.closed",5;this.t8(!0)}h=nAT(this)?b.getResponseHeader("X-Bandwidth-Est"): 0;if(b=nAT(this)?b.getResponseHeader("X-Bandwidth-Est3"):0)this.Za=!0,this.policy.TR&&(h=b);OAH(this.l5,R,h?Number(h):0,this.info.kZ[0].type===5);return 4}canRetry(){this.HY();const b=this.info.isDecorated();return this.l5.canRetry(b)}onStateChange(){this.isComplete()&&(this.policy.R$?this.KM():this.timing.deactivate())}s$(){this.l5.s$()}c8(){this.callback&&this.callback(this,this.state)}FR(){return this.l5.FR()}dispose(){super.dispose();this.l5.dispose();this.CP?.dispose();this.policy.R$||this.KM()}KM(){this.xhr&& this.xhr.abort();this.timing.deactivate()}Nm(){if(!this.Ed().length)return[];this.KJ=!0;return this.CT.Nm()}yS(){return this.state<1?!1:this.CT&&this.CT.HO.length||this.xhr?.q2()?!0:!1}Ed(){this.t8(!1);return this.CT?this.CT.Ed():[]}t8(b){try{if(b||this.xhr.Z9()&&this.xhr.q2()&&!Bb(this.l5,this.xhr)&&!this.bc)this.CT||(this.CT=new tK2(this.policy,this.info.kZ)),this.xhr.q2()&&(this.xH?this.xH.feed(this.xhr.tB()):px(this.CT,this.xhr.tB(),b&&!this.xhr.q2()))}catch(R){this.xH?NOB(this,R):g.kJ(R)}}x5(b, R){switch(b){case 21:({ZH:b}=R.split(1));lFH(this,b);break;case 22:this.ot=!0;px(this.CT,new ju([]),!0);break;case 43:({redirectUrl:b}={redirectUrl:jb(new AX(R),1)});b&&(this.info.kH(this.SX,b),this.D7=!0);break;case 45:const {L7:h,zx:K}=Qh(new AX(R));h&&K&&(this.O1=h/K);break;case 44:this.k5=jf3(new AX(R));!this.timing.C&&this.k5?.action===4&&this.k5?.Fa?.Iy&&(this.Iy=this.k5.Fa.Iy);break;case 53:this.policy.jn&&({wx:b}=fP2(new AX(R)),b&&(this.CP||(this.wx=b,this.CP=new g.bI(this.Ue,b,this)),this.CP.start())); break;case 60:this.Mk=kb(new AX(R));break;case 58:if(b=EOP(new AX(R)))this.iB=b,b.iB===3&&(this.W2=!0)}}CX(b,R,h,K){h||this.timing.CX(K);if(b!==21)return!1;if(b=this.policy.aS)if(b*=this.info.kZ[0].hX.info.nz,R.totalLength+h!==K&&R.totalLength0)return!1;if(!this.xhr.Z9())return!0; if(this.xH)var b=!this.info.X;else this.xhr.kp()?b=!1:(b=this.xhr.getResponseHeader("content-type"),b=b==="audio/mp4"||b==="video/mp4"||b==="video/webm");if(!b)return!1;if(isNaN(this.info.Wr)){b=this.xhr.getResponseHeader("x-head-seqnum");const R=this.timing.policy.D?1:0;if(b&&Number(b)>this.info.kZ[0].Dr+R)return!1}return!0}B8(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}GS(){this.xhr&&(this.IP=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.IP}vW(){this.xhr&&(this.QS= Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.QS}Oi(){return this.l5.Oi()}Ue(){if(!this.HY()&&this.xhr){this.u8="heartbeat";var b=this.l5;b.G+=2;this.c8()}}};var $R=class extends dix{constructor(b,R){super(b,R);this.NJ=!0;this.gp=!1;this.pR=this.Zr=0;this.xZ=NaN}T6(b,R){const h=(b-this.J)/1E3,K=R-this.X;this.Y>0?K>0&&(this.gp&&(h>.2||K<1024?(this.V+=h,h>.2&&aFT(this,.05,K)):aFT(this,h,K)),this.NJ&&(this.Zr+=K,this.pR+=h)):R>this.policy.G&&this.nR(b,R);super.T6(b,R)}FM(b,R){Kx(this,b,R);this.T6(b,R);this.gp&&(R=this.X*this.snapshot.stall+this.X/this.snapshot.byterate,this.Y>0&&h6(this.g2,this.Zr,this.V),b=(b-this.G)/1E3||.01,this.policy.K&&!(this.Y>0)|| Ks(this.g2,b,this.X,R,!1))}CR(b){Kx(this,b,this.S);var R=(b-this.J)/1E3;Rb(this.g2,R,0);this.vk(R,0);!this.gp&&this.Y>0||(R=this.X*this.snapshot.stall+this.X/this.snapshot.byterate,this.Y>0&&(this.V+=(b-this.J)/1E3,h6(this.g2,this.Zr,this.V)),Ks(this.g2,(b-this.G)/1E3||.01,this.X,R,!1,!0))}bA(b){b=b.UM||2147483647;(b&2)!==2&&(this.NJ=!1);(b&1)===1&&(this.gp=!0)}HV(b){b=b.UM||2147483647;(b&2)===2&&(this.NJ=!1);(b&1)===1&&(this.gp=!1)}SK(){return this.U}wp(){const b=this.NJ?this.now()-this.J:0;return Math.max(this.pR* 1E3+b,1)}Zl(){return this.Zr*1E3/this.wp()}nR(b=this.D,R=this.S){this.Y>0||(super.nR(b,R),R=this.g2,b=(b-this.G6)/1E3,R.K.a8(1,(this.G6-this.G)/1E3),R.MJ.a8(1,b))}HR(b){this.xZ=b}K(){const b=super.K();b.rbw=this.Zl();b.rbe=+this.NJ;b.gbe=+this.gp;b.ackt=(this.xZ-this.G).toFixed();return b}pz(){}Ty(){return NaN}hc(){return this.G+this.snapshot.delay*1E3}};var jOD=class{constructor(b,R){this.z6=R;this.Y={};this.logger=new g.kp(b)}x5(b,R){switch(b){case 20:b=new AX(R);b={eR:tz(b,1),videoId:jb(b,2),itag:tz(b,3),lmt:tz(b,4),xtags:jb(b,5),PB:tz(b,6),fC:Yb(b,8),tq:tz(b,9),kDJ:tz(b,10),startMs:tz(b,11),durationMs:tz(b,12),uN:tz(b,14),timeRange:ED(b,15,ia),oU:tz(b,16),aq:tz(b,17),cG:tz(b,20),Ig:ED(b,21,VBH),clipId:jb(b,1E3)};this.D(b);break;case 21:this.J(R,!1);break;case 22:this.Sa(R);break;case 31:b=iD(R,wPx);this.z6.Ks(b);break;case 52:b=iD(R,ycB);this.z6.DB(b); break;case 69:b={Dg:eb(new AX(R),1,clH)};this.z6.Wq(b);break;case 65:b=iD(R,nO2);this.z6.d8(b);break;default:this.S(b,R)}}D(){}S(){}};var AvH=new Set([53,49,50]),ivx=class extends jOD{constructor(b){super("sabr",b);this.z6=b;this.G=[]}S(b,R){iJK(this.z6)&&!AvH.has(b)?this.G.push({id:b,data:R}):v4T(this,b,R)}pA(b){b=new AX(b);b={Ohp:eb(b,1,Az),wre:eb(b,2,Az)};this.z6.pA(b)}ZT(b){var R=new AX(b);b=Jz(R,1);var h=Jz(R,2);R=Jz(R,3);this.z6.ZT(b,h,R)}FG(b){b=Qh(new AX(b));this.z6.FG(b)}xt(b){b=iD(b,DWT);this.z6.xt(b)}gV(b){b=new AX(b);b={videoId:jb(b,1),formatId:ED(b,2,Az),endTimeMs:tz(b,3),TBv:tz(b,4),mimeType:jb(b,5),Tn:ED(b,6,u7w), indexRange:ED(b,7,u7w),Of:ED(b,8,XPD)};this.z6.gV(b)}NA(b){b=new AX(b);b={type:tz(b,1),scope:tz(b,2),value:W5(b,3),sendByDefault:Yb(b,4),writePolicy:tz(b,5)};this.z6.NA(b)}DT(){this.z6.DT()}BK(b){b=FzK(new AX(b));this.z6.BK(b)}Dn(b){b=fP2(new AX(b));this.z6.Dn(b)}qP(b){b=jf3(new AX(b));this.z6.qP(b)}oI(b){b={redirectUrl:jb(new AX(b),1)};this.z6.oI(b)}J(b){const R=vJ(b,0);if(b.totalLength!==1){({ZH:b}=b.split(1));var h=this.Y[R]||null;h&&this.z6.j6.G(R,h,b)}}Sa(b){b=vJ(b,0);const R=this.Y[b]||null; R&&this.z6.Sa(b,R)}D(b){const R=b.eR,h=b.fC,K=b.PB,I=b.aq,N=b.oU,p=b.tq,l=b.startMs,a=b.durationMs,v=b.timeRange,B=b.uN,H=b.cG,q=b.clipId,d=b.Ig,t=am(b);b=CkT.has(rX[`${b.itag}`]);this.Y[R]=t;let S=-1;l&&H&&v?.timescale&&(S=l/1E3+H/v.timescale);this.z6.gT(t,b,S,{eR:R,fC:!!h,PB:K??-1,tq:p??-1,startMs:l??-1,durationMs:a??-1,uN:B,aq:I,oU:N,clipId:q,timeRange:v,Ig:d})}bA(b){b={UM:tz(new AX(b),1)};this.z6.bA(b)}HV(b){b={UM:tz(new AX(b),1)};this.z6.HV(b)}Yh(b){b=EOP(new AX(b));this.z6.Yh(b)}RR(b){b={EB:ED(new AX(b), 1,hPH)};this.z6.RR(b)}onSnackbarMessage(b){b=tz(new AX(b),1);this.z6.onSnackbarMessage(b)}ag(b){b=new AX(b);b={reloadPlaybackParams:ED(b,1,Sjx),jO:Yb(b,2)};this.z6.ag(b)}tp(){for(const {id:b,data:R}of this.G)v4T(this,b,R);this.G=[]}};var zTH=class extends g.N3{constructor(b){super();this.J=b;this.logger=new g.kp("onesie");this.L0=new Map;this.V=this.X=!1;this.Nb=this.oH=null;this.S=!1}VD(){return Array.from(this.L0.keys())}ud(b){return this.L0.has(b)}x3(b){this.L0.get(b).A_=!0}K(){let b=0;const R=this.VD();for(let h=0;h0||!h[0].range&&B.wE)I=void 0,h=h[0],N=B.Lx,K=B.data,h.range||(I=B.wE),I=new QN(Nmw(h,h.G+N,K.totalLength,I),K),B.Lx+=I.info.Y,R.SI.push(I);R.AE.get(v).data=new ju;B.wE&&R.AE.delete(v)}b=this.L0.get(b);if(!b)return[];R=b.SI;b.SI=[];for(var p of R)b.RS+=p.info.Y;return R||[]}p=this.L0.get(b)?.CT;if(!p)return[];this.t8(b,p);return p.Nm()}yS(b){return tH?iz(this,b):!!this.L0.get(b)?.CT?.Ed()?.length||iz(this,b)}t8(b,R){for(;iz(this,b);){var h=this.SH(b); var K=b;K=this.L0.get(K).r4&&!AH(this,K);px(R,h,K&&fFs(this,b))}}D(){return this.S?!1:this.S=!0}U(){this.X=!0}X5(){super.X5();for(const b of this.L0.keys())this.Y(b);if(this.Nb?.xI)for(const b of this.L0.values())b.AE.clear(),b.Er.clear(),b.SI.length=0,b.kZ.length=0,b.s4.length=0,b.V4.length=0;this.L0.clear()}},tH=!1;var Ui3=new Set([2]),Um=class extends g.N3{constructor(b,R,h,K,I,N,p){super();this.policy=b;this.info=R;this.oH=h;this.z6=I;this.logger=new g.kp("sabr");this.xH=new sX(this);this.xm=new ivx(this);this.j6=new zTH(this);this.state=1;this.SG=!1;this.Be=0;this.clipId="";this.BM=-1;this.yx=0;this.Z0=-1;this.Yl=this.mx=this.W2=this.m2=!1;this.policy.M_?this.Rc=new $R(this,N):this.Rc=new Km(this,N);this.SX=this.policy.PH?R.f7:z0s(R,this.policy,K);this.SX.set("rn",`${this.SJ()}`);this.SX.set("alr","yes"); Afq(this.j6,h,b);this.l5=new t3K(this,this.policy,this.SX,R.yV,this.Rc,this.logger,K,p,this.policy.enableServerDrivenRequestCancellation);eIw(this.l5);this.policy?.xI&&(g.n(this,this.j6),g.n(this,this.l5));b=R.Y;R={method:"POST",body:b};b&&(this.yx=b.length);try{this.xhr=Nn(this.SX,this.policy.D,this.Rc,F2,R),this.l5.Y.start()}catch(l){g.kJ(l)}}kM(){!this.HY()&&this.xhr&&(this.t8(!1),aM(this.z6,this))}I$(){}Po(){if(!this.HY()&&this.xhr){var b=this.i9();b===5?(this.Oi()==="net.badstatus"&&this.z6.NV(), at(this.l5)):(this.z6.Fn(),this.Na(b));this.l5.Y.stop();this.l7?.stop()}}i9(){let b="";Bb(this.l5,this.xhr)&&(b=Qsq(this.l5,this.xhr));if(b)return this.info.yV.kH(this.SX,b),3;this.t8(!0);if(vb(this.l5,this.xhr.status,this.xhr.p6(),this.info.cq(),this.W2))return 5;if(this.SG)return 3;OAH(this.l5,this.xhr.CU(),0,this.cq());this.policy.EW&&iCK(this.z6);return 4}t8(b){const R=this.xhr;!b&&Bb(this.l5,this.xhr)||!R.q2()||(b=R.tB(),this.xH.feed(b))}x5(b,R){this.xhr.o$()&&b===21&&zMB(this);this.xm.x5(b, R)}CX(b,R,h,K){h||(this.Rc.CX(K),this.policy.Rg&&b===21&&zMB(this));if(b!==21)return!1;this.Rc.C=!0;b=R.totalLength;h||(this.Z0=vJ(R,0),R=R.split(1).ZH);var I=this.policy.Ib;const N=this.xm.Y[this.Z0],p=this.oH.X.get(N);if(I&&p&&(I*=p.info.nz,b+h!==K&&b0)){this.policy.gB&&this.l5.Y.stop();var b=this.Rc.wp(),R=this.Rc.Zl(),h=UIe(this,b);R>h.hk||h.Ra>0&&this.info.Gs()>h.Ra||(this.Be=(0,g.c)(),this.l7?.stop(),this.policy.EW&&(h=this.z6,b={IK:Math.round(R*b/1E3),YA:b},h.policy.EW&&(h.vY=b,h.D8++)),this.s$())}}s$(){this.l5.s$()}qP(b){this.z6.qP(b,this.SJ())}oI(b){this.SG=!0;this.info.yV.kH(this.SX,b.redirectUrl)}bA(b){this.Rc instanceof $R&&this.Rc.bA(b)}HV(b){this.Rc instanceof $R&&this.Rc.HV(b)}gV(b){var R=b.formatId;const h=new Bt(b.Tn?.first|| 0,b.Tn?.BE||0),K=new Bt(b.indexRange?.first||0,b.indexRange?.BE||0);if(!this.oH.X.get(am({itag:R.itag,lmt:R.lmt,xtags:R.xtags}))){var I=b.Of||{};I.mimeType=b.mimeType;I.itag=R.itag;I.lastModified=`${R.lmt||0}`;I.xtags=R.xtags;b=this.oH;R=GC("");I=Xt(I,null);VN(b,new CO(R,I,h,K))}}FG(b){this.z6.FG(b,this.SJ())}onSnackbarMessage(b){if(this.policy.yz)this.z6.onSnackbarMessage(b)}Wq(b){this.policy.S&&this.z6.Wq(b,this.SJ())}Ks(b){this.EZ=b;this.l5.X=(0,g.c)();this.z6.Ks(b)}rG(b){this.z6.rG(b)}ZT(b,R, h){this.z6.ZT(b,R,h)}NA(b){b.scope===2&&(this.q1=b);this.z6.NA(b)}DT(){this.m2=!0;this.z6.DT()}pA(b){this.policy.LN&&this.z6.pA(b)}xt(b){this.z6.xt(b,this.SJ())}Yh(b){b.iB===3&&(this.W2=!0);this.z6.Yh(b)}RR(b){this.z6.RR(b)}ag(b){this.z6.ag(b)}d8(b){this.z6.d8(b)}canRetry(){this.HY();return this.l5.canRetry(!1)}dispose(){this.HY()||(super.dispose(),this.l5.dispose(),this.l7?.dispose(),this.Na(-1),this.KM())}Na(b){this.state=b;aM(this.z6,this)}cq(){return this.info.cq()}P5(){return this.m2}l9(){return this.q1}gT(b, R,h,K){h>=0&&this.z6.T0(h);K.clipId&&(this.clipId=K.clipId);this.policy.Y&&!R&&(this.BM=K.tq);this.info.isDecorated()&&(h=this.info,h=h.data?.H$?.VL?h.data.H$.VL:-1,h>=0&&h>K.tq&&this.z6.loader.YZ("sdai",{skpsqmismatch:"1",stsq:h,rcvsq:K.tq,a:R}));this.j6.gT(b,R,K);this.policy.pZ&&this.EZ&&this.Rc instanceof Km&&(h=this.EZ.qE,this.Rc.gT(K.durationMs/1E3,R,h>0&&K.tq+1>=h));this.j6.x3(b);this.z6.gT(K)}Sa(b,R){this.j6.Sa(b,R)}DB(b){this.requestIdentifier=b}Nm(b){return this.j6.Nm(b)}jR(b){return this.j6.jR(b)}yS(b){return this.j6.yS(b)}VD(){return this.j6.VD()}Ct(){return 1}SJ(){return this.Rc.requestNumber}gJ(){return this.requestIdentifier}xj(){return this.SX.xj()}VY(){this.KM()}KM(){this.Rc.deactivate(); this.xhr?.abort()}isComplete(){return this.state>=3}ye(){return this.state===3}nU(){return this.state===5}SL(){return this.state===4}wS(){return this.isComplete()}KP(){return this.state>=1}FR(){return this.policy.FM?this.l5.FR():0}c8(){this.policy.FM&&aM(this.z6,this)}Ni(){return this.info.G?.O7?.Od||0}tp(){this.Tr()&&!this.Yl&&(this.Yl=!0,this.xm.tp())}Tr(){const b=this.info.G?.O7?.B$;return!!b&&Ui3.has(b)}v8(){return"SABR"}Oi(){return this.l5.Oi()}QG(){const b=xLw(this.l5);Object.assign(b,UJs(this.info)); b.req="sabr";b.rn=this.SJ();this.xhr?.status&&(b.rc=this.policy.Z5?this.xhr.status:this.xhr.status.toString());var R=this.xhr?.e6();R&&(b.msg=R);this.Be&&(R=UIe(this,this.Be-this.Rc.SK()),b.letm=R.FP,b.mrbps=R.hk,b.mram=R.Ra);return b}};var G8P=class{constructor(b){this.G=b;this.U=this.vY=this.D=this.gp=this.V=this.S=this.G6=this.J=this.MJ=this.K=this.SY=this.nR=this.T6=this.C=0;this.ticks={}}tick(b,R){this.ticks[b]=R?window.performance.timing.navigationStart+R:(0,g.c)()}};var gDT=class extends g.NU{constructor(b,R,h,K,I,N){super();this.loader=b;this.oH=R;this.policy=h;this.videoTrack=K;this.audioTrack=I;this.U=this.G=null;this.S=this.J=NaN;this.D=0;this.K=NaN;this.xO=null;this.T6=this.nR=NaN;this.MJ=new Map;this.C=this.X=this.V=NaN;this.w2={qDe:()=>this.Y}; this.Y=N?1:0}j0(b,R,h,K){var I=!1;this.policy.Y&&(I=h?this.T6===b.Dr:this.nR===b.Dr);if(this.xO&&K&&!I){K=[];I=[];let N=[],p=void 0,l=0;R&&(K=R.G,I=R.Y,N=R.V,p=R.X,l=R.Pn,this.YZ("sdai",{sq:b.Dr,ssvicpns:K.join("."),ssvid:I.join(".")}));this.policy.Y&&(h?this.T6=b.Dr:this.nR=b.Dr);this.xO.zt(b.Dr,b.startTime,K,I,N,h,l,p)}this.policy.Y?h&&(this.Y===1&&G_(this,5,"noad"),b.Dr!==this.G?.Dr&&(n4w(this,b,R,h),isNaN(b.startTime)||JfT(this,b.Dr,SH(this,b.startTime,b.Dr),!!R,this.xO))):h&&n4w(this,b,R)}Ap(b, R,h){const K=this.videoTrack.hX.index.jK()<=R;this.G={Yj:b,Dr:R,s2:h};K&&gE(this,b,R)}Zt(){this.xO&&this.xO.Zt()}gp(b,R){if(this.Y!==0&&R&&b.kZ[0].fT()){var h=b.kZ[0].Dr,K=b.kZ[0].V;b=b.isDecorated();JfT(this,h,K,b,R)}}G6(b,R){if(this.policy.T6?0:this.Y===1||this.Y===2)return!1;if(this.Y!==0&&b===this.audioTrack){if(this.policy.Y)return Ppx(this.videoTrack,R)||Ppx(this.videoTrack,R+1);b=dl(this.videoTrack);if(R>(b?b.Dr:-1))return!1}return!0}YZ(b,R,h=!1){(b!=="sdai"||this.policy.Wk||h)&&this.loader.YZ(b, R)}u3(b,R){const h=this.videoTrack.hX.index.dt(b);if(h>=0){var K=R.x0(h,2)?.Am||"";if(this.policy.Y||K)return R.rQ(b,h),Wb(this.loader,b,b,h),this.YZ("sdai",{cmskpad:1,t:b.toFixed(3),sq:h}),!0}this.YZ("sdai",{cmskpad:0,t:b.toFixed(3),sq:h});return!1}};var WGD=class{constructor(b,R,h,K){this.policy=b;this.YZ=R;this.D=h;this.G=K;this.V=void 0;this.Y=new Set;this.J=-1;this.X=0;this.S=!1;this.w2={EjY:()=>this.Y}}cK(b,R,h){let K=this.policy.c$&&b.tileContext?`${b.LU};${b.tileContext}`:b.LU; K||(K=Em(this,this.V));this.YZ("clsdai",{setadcfg:b.LU||"misscid",cid:K,acpn:h,acfglen:R?.length||0});this.G.has(K)||(this.YZ("clsdai",{setadcfg:"noentry",cid:K}),this.G.set(K,{event:"unknown",startTimeSecs:0,oY:0,q_:[],YC:Date.now(),nA:-1,rR:6,Ht:b}));(b=this.G.get(K))?R?(b.rR=6,b.q_.push(h),b.N_=R):b.rR=2:this.YZ("clsdai",{setadcfg:"notfound",cid:K})}Vb(b){const R=b||Em(this,this.V);this.YZ("clsdai",{rmvadcfg:b||"misscid",lastcid:Em(this,this.V)});(b=this.G.get(R))?(b.N_="",b.rR=4):this.YZ("clsdai", {rmadcfg:"notfound",cid:R})}Wq(b,R,h,K,I){this.J=R;if(!((b.Dg?.length||0)<=0))if(K){if(this.X=K,this.YZ("clsdai",{oncldisabled:K,rn:R}),this.X===3&&I)for(var N of b.Dg)N.Yj&&N.trackType===2&&jDB(I,Y6B(this,N),N.tq||0,!0)}else for(const p of b.Dg){if(b=p.Yj)a:{let l;b=Y6B(this,p);K=R;I=p.tq||0;N=h;if(!this.policy.Pm&&b.event==="prefetch"){b=!1;break a}const a=Em(this,b);this.G.has(a)?(l=this.G.get(a),I>l.nA&&(l.startTimeSecs=b.startSecs,l.oY=b.oY,l.event==="predictStart"&&l.rR===5&&b.event!=="predictStart"&& (l.YC=Date.now()),l.event=b.event)):(l={event:b.event,startTimeSecs:b.startSecs,oY:b.oY,q_:[],nA:I,rR:0,Ht:{LU:b.identifier,tileContext:b.tileContext}},this.G.set(a,l),this.policy.S&&this.YZ("clsdai",{newcid:1,cid:b.identifier,tc:b.tileContext,evt:b.event,sn:I,rn:K,st:OJB(l.rR)}));let v=!1;l.rR===0&&(N?.Pk(b)?l.rR=5:(l.rR=N?11:3,l.N_="",v=!0),l.YC=Date.now(),l.nA=I,this.policy.S&&this.YZ("clsdai",{onqpnt:1,cid:b.identifier,tc:b.tileContext,evt:b.event,sn:I,rn:K,st:OJB(l.rR)}));I>l.nA&&(N?.Pk(b),l.nA= I);this.V=b;this.policy.S&&this.Y.add(a);b=v}b&&(this.S=!0)}}G6(){this.Y.clear();this.X=0;this.S=!1}K(){return this.S}U(b,R){if(this.X!==0){this.YZ("clsdai",{gssinfodisabled:this.X});R=7;switch(this.X){case 1:R=7;break;case 2:R=9;break;case 3:R=10;break;default:this.YZ("clsdai",{unknowndisr:this.X})}return[{rR:R}]}const h=[];if(!isNaN(b)){var K=QNK(this,b),I=this.J+1;if(K.length>0){this.YZ("clsdai",{updcids:1,mt:b.toFixed(3),cid:K.join(","),rn:I});this.Y.clear();for(const N of K)this.Y.add(N)}else this.D&& (this.YZ("clsdai",{updcids:0,mt:b.toFixed(3),rn:I}),this.Y.clear())}for(const N of this.Y)I=N,b=R,I?(K=this.G.get(I),I={cuepointId:K?.Ht?.LU||I.split(";")[0]},K?.N_&&(I.adsConfig=CB(K.N_)||void 0),K?.q_&&(I.oG=K.q_),K?.dn&&(I.VL=K.dn),b&&(I.eO=gu(b.split(";")[0]),I.Lu=b.split(";")[1]||""),I.rR=K?.rR||0,b=I):b=void 0,b&&h.push(b);return h}rQ(b,R,h){var K=b;this.policy.S&&(K+=h);let I,N="";K=QNK(this,K);K.length>0&&(N=K[0])&&(I=this.G.get(N));if(!I||I.dn)return this.YZ("clsdai",{skipadfail:1,cid:N, sn:R,mt:b.toFixed(3),of:h.toFixed(3),skipsq:I?.dn||-1}),!1;this.YZ("clsdai",{skipadsuc:1,cid:N,sn:R,mt:b.toFixed(3),of:h.toFixed(3)});I.dn=R;this.Y.clear();this.Y.add(N);return!0}N1(){this.YZ("clsdai",{rstskipad:1});for(const b of this.G.values())b.dn=NaN}C(){let b=!1;for(const [,R]of this.G.entries()){const h=R;h.event!=="predictStart"&&h.event!=="prefetch"&&h.rR===5&&(h?.YC&&Date.now()-h?.YC>1E4?h.rR=1:b=!0)}return b}};var Om=class{constructor(b,R,h){this.audio=b;this.video=R;this.reason=h}},Z0=class{constructor(b,R,h,K){this.G=b;this.reason=R;this.source=h;this.token=K}};var Scw=class extends g.N3{constructor(b,R,h){super();this.policy=b;this.V=R;this.YZ=h;this.X=new Map;this.S=0;this.J=!1;this.G="";this.Y=!1}A1(){return this.J&&T_(this).size>0}F1(b,R=!1,h={}){this.policy.X4=gv(b,h,this.V,R)}};var IC=class{constructor(b){this.G=this.Y=0;this.alpha=Math.exp(Math.log(.5)/b)}a8(b,R){const h=this.alpha**b;this.G=R*(1-h)+h*this.G;this.Y+=b}JU(){return this.G/(1-this.alpha**this.Y)}};var nDH=class{constructor(b,R,h,K,I,N=[]){this.loader=b;this.nR=R;this.policy=h;this.oH=K;this.J=I;this.SY=N;this.logger=new g.kp("dash/abr");this.G=vM;this.X=this.D=null;this.U=-1;this.vY=!1;this.nextVideo=this.Y=null;this.V=[];this.NJ=new Set;this.gp={};this.xZ=new IC(1);this.K=0;this.Zr=this.C=this.G6=!1;this.T6=0;this.pR=!1;this.MJ=new Set;this.JX=!1;this.w2={N4:()=>{kC(this)}}; this.S=new Scw(this.policy,I,(p,l)=>{this.loader.YZ(p,l)})}cA(b){if(this.policy.XW){var R=new Set(b); R.size===this.MJ.size&&[...R].every(h=>this.MJ.has(h))||(this.loader.YZ("lwnmow",{itagDenylist:[...b].join()}),this.loader.wG(!!R.size),this.U=-1,this.MJ=R,eH(this,this.G),this.JX=!0)}}F1(b,R=!1,h={}){const K=this.policy.X4; this.S.F1(b,R,h);K!==this.policy.X4&&(eH(this,this.G),QL(this),K>this.policy.X4&&this.X?.info.G()&&!this.nextVideo?.info.G()&&(this.G6=!0))}};var NX={rU:-1,q9:!1,B$:0},EDH=class extends g.N3{constructor(b){super();this.GD=b;this.G=null;this.Y=NX;this.GD("ismp_i")}X(b=!0){b&&KSx(this);this.G=null}X5(){this.Y=NX;this.X();super.X5()}};var Tr3=class{constructor(b){this.track=b;this.buffered=[];this.X=this.V=0;this.J={};this.S=0;this.G=new sG}yj(b){this.timestampOffset=b;this.flush()}U(b,R){this.flush();this.Y=R;Zs(this,3,b)}K(b,R,h,K){!this.Y||s1K(this.Y,b)&&this.Y.Dr===b.Dr||this.flush();this.V+=h;this.X+=K;h=1;!this.Y&&b.G&&(h=2);Zs(this,h,R);R=Math.ceil(b.G/1024);h===2&&this.G.add(R);this.G.add(Math.ceil((b.G+b.Y)/1024)-R);this.Y=b}G6(){Zs(this,0)}D(){Zs(this,4);this.flush()}flush(){if(this.G.pos>0){var b={a:this.track.Pr(), u:this.G.MU(),pd:Math.round(this.V),ad:Math.round(this.X)},R=this.Y;if(R){const h=R.hX.info;b.itag=h.itag;h.Y&&(b.xtags=h.Y);b.sq=R.Dr;b.st=R.startTime;b.sd=R.duration;this.track.policy.OG&&(b.si=R.vR());R.X&&(b.esl=R.G+R.Y);R.J()&&(b.eos=1)}isNaN(this.timestampOffset)||(b.to=this.timestampOffset);if(R=this.track.il?.RT({})){for(const h in R)this.J[h]!==R[h]&&(b["sb_"+h]=R[h]);this.J=R}this.track.YZ("sbu",b);this.G.reset();this.buffered=[];this.S=this.X=this.V=0;this.timestampOffset=this.Y=void 0}}};var Jve=class{constructor(b,R,h){this.policy=b;this.G=R;this.T6=h;this.V=this.Y=0;this.KT=null;this.G6=new Set;this.U=[];this.indexRange=this.initRange=null;this.K=new tn;this.C=this.nR=!1;this.w2={SDe:()=>this.X, i55:()=>this.chunkSize, DbX:()=>this.D, aqZ:()=>this.J}; (R=$6P(this))?(this.chunkSize=R.csz,this.X=Math.floor(R.clen/R.csz),this.D=R.ck,this.J=R.civ):(this.chunkSize=b.TO,this.X=0,this.D=g.yM(16),this.J=g.yM(16));this.S=new Uint8Array(this.chunkSize);this.D&&this.J&&(this.crypto=new yvq(this.D,this.J))}dispose(){this.C=!0}HY(){return this.C}},XT=class extends Error{constructor(b){super(b)}};var Q0q=class{constructor(b,R,h,K,I,N){this.ids=b;this.G=R;this.Y=h;this.V=K;this.X=I;this.Pn=N}};var Ds=class{constructor(b,R,h){this.initData=b;this.contentType=R;this.isPrefetch=h;this.G=this.cryptoPeriodIndex=NaN;this.X=[];this.Qn=!1;this.Y=null;if(R?.toLowerCase()==="webm"||b.length===16)this.Qn=!0}};var jf=class{constructor(b,R,{CH:h=!1,videoDuration:K=0,BF:I,OJ:N=!1}={}){this.videoId=b;this.status=R;this.CH=h;this.videoDuration=K;this.BF=I;this.OJ=N}},k8s=class{constructor(b,R,h,K,I){this.videoId=b;this.Of=R;this.Y=h;this.bytesDownloaded=K;this.G=I}};var yMq=class{constructor(b){this.Y=b;this.offset=0}skip(b){this.offset+=b}G(){return this.offset}};var Ycx=class{constructor(b,R,h){this.loader=b;this.policy=R;this.hX=h;this.logger=new g.kp("dash");this.Y=[];this.G=null;this.C=-1;this.K=0;this.T6=NaN;this.U=0;this.X=NaN;this.D=this.gp=0;this.NJ=-1;this.MJ=this.V=this.S=this.nR=null;this.Zr=this.JX=NaN;this.J=this.G6=this.vY=this.pR=null;this.xZ=!1;this.SY=this.timestampOffset=0;this.w2={Jn:()=>this.Y}; if(this.policy.V){const K=this.hX,I=this.policy.V;this.policy.xZ&&b.YZ("atv",{ap:this.policy.xZ});this.J=new Jve(this.policy,K,(N,p,l)=>{b.PY.JB(new jf(this.policy.V,2,{BF:new k8s(I,N,K.info,p,l)}))}); this.J.K.promise.then(N=>{this.J=null;N===1?b.PY.JB(new jf(this.policy.V,N)):this.loader.YZ("offlineerr",{status:N.toString()})},N=>{const p=(N.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); N instanceof XT?(this.loader.YZ("offlinenwerr",{em:p}),Lx(this),b.PY.JB(new jf(this.policy.V,4))):(this.loader.YZ("dldbwerr",{em:p}),Lx(this),b.PY.JB(new jf(this.policy.V,4,{OJ:!0})))})}}Jn(){return this.Y}Jl(){return this.Y.length?this.Y[this.Y.length-1]:null}o8(){this.Y=[]; FT(this);Lx(this)}SH(b){this.vY=this.Y.shift().info;b.info.equals(this.vY)}jR(){return g.an(this.Y,b=>b.info)}Pr(){return!!this.hX.info.audio}isDrm(){return!!this.hX.info.contentProtection}getDuration(){return this.hX.index.Aw()}};var My=class extends fJx{constructor(b,R,h,K,I){super(h,I);this.policy=b;this.formatId=R;this.j6=K;this.lastError=null;this.onProgress=()=>{this.HY()||(this.j6.ud(this.formatId)?(this.isComplete()||this.G.start(),iz(this.j6,this.formatId)&&this.rH(2),this.j6.r4(this.formatId)&&(fFs(this.j6,this.formatId)?this.Na(4):(this.lastError="net.closed",this.Na(5)))):(this.lastError="player.exception",this.Na(5)))}; this.G=new g.bI(()=>{this.isComplete()||(this.lastError="net.timeout",this.Na(5))},1E3); this.G.start();HJe(this.j6,this.formatId,this.onProgress);g.Mq(this.onProgress)}onStateChange(){this.HY()&&(jH(this.j6,this.formatId),this.G.dispose())}QG(){return{expected:dIT(this.j6,this.formatId),received:this.j6.L0.get(this.formatId)?.bytesReceived||0,bytesShifted:this.j6.L0.get(this.formatId)?.RS||0,sliceLength:AH(this.j6,this.formatId),isAnyMediaEndReceived:this.j6.E2(this.formatId)}}uF(){return 0}O2(){return!0}Nm(){return this.j6.Nm(this.formatId)}Ed(){return[]}yS(){return this.j6.yS(this.formatId)}Oi(){return this.lastError}FR(){return 0}};var eTP=class extends g.N3{constructor(b,R,h,K){super();this.loader=b;this.policy=R;this.hX=h;this.timing=K;this.logger=new g.kp("dash");this.Y=[];this.nR=[];this.G=this.il=null;this.vY=!1;this.gp=this.SY=0;this.S=-1;this.C=!1;this.T6=-1;this.MJ=null;this.G6=NaN;this.U=[];this.w2={yr:()=>this.X, v4v:()=>this.Y, zZX:()=>this.D}; this.X=new Ycx(b,R,h);this.policy.G&&(this.D=new BrP(this.X,this.loader.getManifest(),this.policy,I=>{this.policy.xQ&&this.YZ("buftl",I)})); this.policy.Ty&&(this.K=new Tr3(this));this.nz=h.info.nz;this.J=this.policy.nR?!1:h.T6();this.isManifestless=h.T6();this.V=this.J;g.n(this,this.MJ)}Pr(){return!!this.hX.info.audio}Jl(){return this.X.Jl()}SH(b){this.X.SH(b);this.D?.MJ(b);this.nz=Math.max(this.nz,b.info.hX.info.nz||0)}getDuration(){return this.hX.index.Aw()}o8(){Lz(this);this.X.o8()}yr(){return this.X}ze(b){return this.il?Rc(this.il.RY(),b):!0}isRequestPending(b){return this.Y.length?b===this.Y[this.Y.length-1].info.kZ[0].Dr:!1}yj(b){this.D?.yj(b); this.K?.yj(b)}YZ(b,R){this.loader.YZ(b,R)}CZ(){return this.loader.CZ()}dispose(){this.K?.flush();super.dispose()}};var bGK=class{constructor(){this.pj=!1}};g.hDx=class{constructor(b){this.uv=b;this.D=new bGK;this.cQ=this.pM=!1;this.BQ=2;this.vY=20971520;this.wp=8388608;this.MJ=120;this.o3=this.Te=this.KG=2;this.gB=this.d_=!1;this.qc=1E3;this.RH=15;this.Jq=1;this.K=1.15;this.C=1.05;this.sE=1;this.Yb=this.x4=!1;this.Kj=6;this.X=!1;this.s0=100;this.Cm=10;this.hN=6;this.CN=!1;this.VP=1;this.fZ=this.s8=!1;this.dk=2;this.bC=this.TZ=this.cO=!1;this.fR=!0;this.hc=this.mK=this.Ab=this.m_=!1;this.MY=!0;this.fn=!1;this.V="";this.wB=[];this.iN=this.Ty=!1;this.X4= 0;this.OV="";this.m1=this.bz=this.xQ=this.yh=this.vO=this.LN=this.J=this.U0=this.U8=this.G=this.xZ=this.gp=this.W7=this.dh=this.U=this.K5=this.Hs=!1;this.Kh=!0;this.iD=this.U$=this.s7=this.oy=this.xA=this.Y=this.pR=!1;this.Zr=!0;this.E_=this.RL=this.SK=this.FM=this.CG=this.kf=this.O$=this.iJ=this.Ys=this.RC=this.nR=this.er=this.KR=this.G6=!1;this.Kb=0;this.BI=this.S=this.m5=this.HR=this.Wk=this.tj=!1;this.latencyClass="UNKNOWN";this.sU=!1;this.vV=0;this.DX=g.fg(this.uv.experiments,"html5_min_readbehind_secs"); this.Xj=g.fg(this.uv.experiments,"html5_min_readbehind_cap_secs");this.jJ=this.uv.N("html5_offline_reset_media_stream_on_unresumable_slices");this.nz=NaN;this.ow=i8(this,"html5_request_size_min_kb",64)*1024;this.JX=2097152;this.mX=i8(this,"html5_bypass_contention_secs");this.Lg=1048576;this.wi=i8(this,"html5_repredict_interval_ms",1800);this.Gi=i8(this,"html5_head_miss_secs",5);this.yE=i8(this,"html5_min_upgrade_health_secs",10);this.MR=i8(this,"html5_min_seconds_between_format_selections",8);this.UG= i8(this,"html5_max_buffer_health_for_downgrade_secs",15);this.Uh=F2;this.TG=g.fg(this.uv.experiments,"html5_min_startup_buffered_media_duration_secs");this.bD=g.fg(this.uv.experiments,"html5_post_interrupt_readahead");this.nx=this.uv.N("html5_disable_classic_alr");this.WB=g.fg(this.uv.experiments,"html5_probe_primary_delay_base_ms")||5E3;this.Dw=i8(this,"html5_ssdai_failure_retry_limit",3);this.jH=this.uv.experiments.O9("html5_clone_original_for_fallback_location");this.pz=g.fg(this.uv.experiments, "html5_subsegment_readahead_target_buffer_health_secs");this.KZ=g.fg(this.uv.experiments,"html5_subsegment_readahead_timeout_secs");this.BN=g.fg(this.uv.experiments,"html5_subsegment_readahead_min_buffer_health_secs");this.b6=g.fg(this.uv.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");this.rZ=g.fg(this.uv.experiments,"html5_subsegment_readahead_min_load_speed");this.bJ=g.fg(this.uv.experiments,"html5_subsegment_readahead_load_speed_check_interval");this.Pm=this.uv.Mj().G.WY(LNK); this.On=g.fg(this.uv.experiments,"html5_subsegment_readahead_seek_latency_fudge");this.GG=i8(this,"html5_hopeless_secs",15);this.Ft=this.uv.N("html5_restrict_streaming_xhr_on_sqless_requests");this.Yi=g.fg(this.uv.experiments,"html5_max_headm_for_streaming_xhr");this.CF=this.uv.N("html5_pipeline_manifestless_allow_nonstreaming");this.TR=this.uv.N("html5_prefer_server_bwe3");this.Eu=this.uv.N("html5_last_slice_transition");this.Lk=this.uv.N("html5_store_xhr_headers_readable");this.SV=g.fg(this.uv.experiments, "html5_max_drift_per_track_secs");this.ZX=this.uv.N("html5_no_placeholder_rollbacks");this.VM=this.uv.N("html5_subsegment_readahead_enable_mffa");this.CR=this.uv.N("html5_allow_video_keyframe_without_audio");this.bC=g.hB(this.uv)&&!g.y5()&&this.uv.N("html5_adjust_media_time_for_non_cobalt_tv");this.Ex=this.uv.N("html5_enable_vp9_fairplay");this.TO=1048576;this.Ir=this.uv.N("html5_woffle_resume");this.nX=this.uv.N("html5_abs_buffer_health");this.KB=this.uv.N("html5_interruption_resets_seeked_time"); this.Ti=g.fg(this.uv.experiments,"html5_max_live_dvr_window_plus_margin_secs")||46800;this.zq=this.uv.N("html5_report_captions_ctmp_qoe");this.R$=this.uv.N("html5_explicitly_dispose_xhr");this.EH=!this.uv.N("html5_encourage_array_coalescing");this.uv.N("html5_limit_media_merge_size")?F2?qj()<21?this.K0=786432:this.K0=8388608:this.K0=262144:this.K0=0;this.uG=this.uv.N("html5_filter_non_efficient_formats_for_safari");this.uv.N("html5_format_hybridization");this.iz=this.uv.N("html5_abort_before_separate_init"); this.Jv=iG();this.Nl=this.uv.N("html5_serialize_server_stitched_ad_request");this.YM=this.uv.N("html5_attach_po_token_to_bandaid");this.Au=g.fg(this.uv.experiments,"html5_max_redirect_response_length")||8192;this.qf=this.uv.N("html5_rewrite_timestamps_for_webm");this.Zl=this.uv.N("html5_only_media_duration_for_discontinuities");this.Av=g.fg(this.uv.experiments,"html5_resource_bad_status_delay_scaling")||1;this.uv.N("html5_onesie_live");this.Hx=g.fg(this.uv.experiments,"html5_onesie_live_ttl_secs")|| 8;this.oS=g.fg(this.uv.experiments,"html5_attach_num_random_bytes_to_bandaid");this.CS=this.uv.N("html5_update_container_type_on_codec_family_change");this.PH=this.uv.N("html5_enable_sabr_host_fallback");this.ge=this.uv.supportsGaplessShorts();this.wY=this.uv.N("html5_shorts_stop_request_when_buffer_to_end");this.Kc=this.uv.N("html5_vod_stop_request_when_buffer_to_end");this.SY=this.uv.N("html5_ssdai_use_post_for_media")&&this.uv.N("gab_return_sabr_ssdai_config");this.yw=this.uv.N("html5_use_post_for_media"); this.jn=this.uv.N("html5_use_live_ump_heartbeat");this.useUmp=this.uv.N("html5_use_ump");this.GR=this.uv.K5;this.Bc=this.uv.N("html5_reset_primary_stats_on_redirector_failure");this.Ml=this.uv.N("html5_remap_to_original_host_when_redirected");this.Z5=this.uv.N("html5_use_network_error_code_enums");this.enableServerDrivenRequestCancellation=this.uv.N("html5_enable_server_driven_request_cancellation");this.M_=this.uv.N("html5_enable_sabr_request_timing");this.XW=this.uv.N("html5_enable_lawnmower"); this.yu=this.uv.zy()?g.fg(this.uv.experiments,"html5_continuous_goodput_probe_interval_ms"):0;this.dg=g.fg(this.uv.experiments,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN;this.HA=this.uv.N("html5_live_defrag_only_h264_playbacks");this.C3=this.uv.N("html5_live_defrag_only_h264_formats");this.jU=g.fg(this.uv.experiments,"html5_drm_byterate_soft_cap");this.dK=g.fg(this.uv.experiments,"html5_drm_live_byterate_soft_cap");this.ri=this.uv.N("html5_sabr_log_request_creation");this.vD=this.uv.N("html5_use_buffer_timeline_for_sabr_request_creation"); this.EW=this.uv.N("html5_sabr_report_request_cancellation_info");this.al=this.uv.N("html5_spoof_4k");this.aS=i8(this,"html5_min_media_duration_for_cabr_slice");this.Ib=i8(this,"html5_sabr_min_media_bytes_factor_to_append_for_stream")||.01;this.u$=this.uv.N("html5_remove_defrag_without_frame_level_streaming");this.Rl=this.uv.N("html5_consume_all_buffered_bytes_one_poll");this.Y6=this.uv.N("html5_disable_urgent_adaptation");this.KW=this.uv.N("html5_apply_constraints_in_client_for_sabr");this.n4=this.uv.N("html5_send_video_playback_ustreamer_config"); this.lD=i8(this,"html5_max_discontinuity_rewrite_count");this.ZW=i8(this,"html5_fixed_media_duration_for_request");this.Ge=this.uv.N("html5_apply_fix_for_missing_seg_info_without_logger");this.mK=this.uv.N("html5_enable_audio_quality_setting");this.uv.N("html5_enable_audio_quality_setting_feature");this.Pq=i8(this,"html5_sabr_request_limit_per_period");this.xI=this.uv.N("html5_sabr_dispose_media_objects");this.Pa=this.uv.N("html5_fix_hbr_reselection_qoe_restart_for_sabr");this.uv.N("html5_high_res_seek_logging"); this.P_=this.uv.N("html5_disable_chunk_synchronization_sabr_seek");this.qH=g.fg(this.uv.experiments,"html5_override_micro_discontinuities_threshold_ms");this.oQ=this.uv.N("html5_byterate_constraints");this.Vz=this.uv.N("html5_refactor_sabr_audio_format_selection_logging");this.yz=this.uv.N("enable_sabr_snackbar_message");this.uv.N("html5_reinit_source_buffer_by_new_element");this.lG=this.uv.N("html5_refactor_sabr_video_format_selection_logging");this.OG=this.uv.N("html5_log_slice_info_in_sbu");this.Sn= i8(this,"html5_paced_poll_ms");this.jc=i8(this,"html5_paced_poll_min_health_ms");this.GO=this.uv.N("html5_disable_sabr_fallback");this.jx=this.uv.N("html5_track_current_buffered_range_at_sync");this.HG=g.hB(this.uv)?500:2E3;this.pZ=this.uv.N("html5_sabr_live_timing");this.tS=this.uv.N("html5_count_updating_slice_for_buffer_health");this.VW=this.uv.N("html5_report_max_buffer_bytes_limit_to_sabr");this.Rg=this.uv.N("html5_sabr_live_audio_early_return_fix");this.kS=g.fg(this.uv.experiments,"html5_platform_max_buffer_health_oversend_duration_secs"); this.Qz=this.uv.N("html5_cuepoint_identifier_logging");this.wA=this.uv.N("html5_sabr_log_server_xtag_selection_onesie_mismatch");this.tv=this.uv.N("html5_skip_client_drm_license_constraint");this.Hs=this.uv.N("html5_pseudogapless_shorts_skip_abort_on_transition");this.O$=this.uv.N("html5_sabr_request_on_constraint");this.I7=this.uv.N("html5_live_metadata_resets_timeout");this.m5=this.uv.N("html5_sabr_log_invalid_sabr_current_time");this.LZ=this.uv.N("html5_ssdai_new_decoration_logic");this.h_=this.uv.N("html5_enable_smooth_audio_offset"); this.sH=this.uv.N("html5_cuepoint_list_clear_on_seek");this.KY=this.uv.Mj().G.WY(ek);this.T6=this.uv.Mj().G.WY(AWP);this.ZZ=this.uv.N("html5_ssdai_clear_backoff_on_cuepoint_list_resolved");this.c$=this.uv.Mj().G.WY(Cfx);this.vV=g.fg(this.uv.experiments,"html5_sabr_unused_bloat_size_bytes");this.um=this.uv.Mj().G.WY(BFw)}NJ(){return this.G&&this.LN}};var l$x=class{constructor({fZ:b,pj:R,YV:h,jK:K,DS:I}={}){this.fZ=b;this.pj=R;this.YV=h;this.jK=K;this.DS=I}};var QOT=class extends g.N3{constructor(b,R,h){super();this.loader=b;this.policy=R;this.g2=h;this.X=0;this.Y=!1;this.delay=new g.bI(this.V,this.policy.yu,this);g.n(this,this.delay)}G(b){Zu(93,b.G)||(this.yV=b,this.X=0,this.delay.qa())}V(){this.X++>15||(this.Y=!this.Y,new OvH(this.loader,this.policy,this.g2,this.yV,this.Y),this.delay.start())}},OvH=class{constructor(b,R,h,K,I){this.loader=b;this.policy=R;this.g2=h;this.yV=K;this.zG=I;this.done=!1;this.onTimeout=()=>{this.done||(this.done=!0,this.onError("net.timeout"))}; this.size=Math.ceil(Math.min(1E5,.1*ZR(this.g2)));this.timing=new Km(this,{g2:this.g2,VC:this.size,Lt:!0,vk:()=>{}, BX:this.policy.X});b=pO(this.yV,this.zG,this.policy).DL.clone();tR(26,b);b["path"]!=="/videogoodput"&&(b["path"]="/videogoodput",b["url"]="");this.location=new N8(b);this.location.set("rn",`${this.timing.requestNumber}`);this.location.set("range",`0-${this.size-1}`);this.xhr=Nn(this.location,this.policy.D,this.timing,this.policy.Uh,{});setTimeout(this.onTimeout,1E4)}I$(){}kM(){}Po(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.CU()===this.size)this.loader.YZ("rqs",this.getInfo()); else{var b="net.connect";this.xhr.status>200?b="net.badstatus":this.xhr.Z9()&&(b="net.closed");this.onError(b)}}onError(b){this.loader.handleError(b,this.getInfo());Pr(`https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn=${this.timing.requestNumber}`,"gp",R=>{this.loader.YZ("pathprobe",R)},R=>{this.loader.handleError(R.errorCode,R.details)})}getInfo(){const b=this.timing.K(); b.shost=$p(10,this.location.DL);b.pb=this.size;return b}};var xi2=class extends g.N3{constructor(b,R,h,K,I,N,p,l,a,v,B,H,q,d=null){super();this.loader=b;this.policy=R;this.videoTrack=h;this.audioTrack=K;this.X=I;this.G=N;this.timing=p;this.V=l;this.schedule=a;this.oH=v;this.Y=B;this.U=H;this.lw=q;this.Bg=d;this.G6=!1;this.HF="";this.Mm=null;this.Wr=NaN;this.C=!1;this.xO=null;this.qU=this.K=NaN;this.wx=this.S=0;this.logger=new g.kp("dash");this.w2={Mq:(t,S)=>this.Mq(t,S)}; this.policy.oS>0&&(this.HF=g.yM(this.policy.oS));this.policy.yu&&(this.D=new QOT(this.loader,this.policy,this.schedule),g.n(this,this.D))}J(b,R){if(b.J){this.oH.isLive?(b=this.oH.A9&&this.oH.K?b.hX.S(this.oH.A9,!1):b.hX.J(Infinity),b.Wr=this.Wr):b=b.hX.S(0,!1);if(this.U){var h=this.U;b.Wr===0&&(b.S=h.K)}else b.S=this.K;return b}var K=b.G;if(!K.hX.G())return K.hX.X()?(h=XY(this.V,b.hX.info.nz,R.hX.info.nz,0),h=K.hX.C(K,h)):h=K.hX.SY(K),h;var I=K.S-this.loader.getCurrentTime(),N=!K.range||K.Y===0&& K.G===0?0:K.range.length-(K.G+K.Y),p=K.hX;this.Mq(b,I)&&N===0&&(this.oH.isManifestless?p=b.hX:(p=K.startTime+w2,K.Y&&(p+=K.duration),oL(b,p),K=b.G,p=K.hX));p.X()?(N=this.Y,R=XY(this.V,p.info.nz,R.hX.info.nz,I,N.V.length>0&&N.K===0&&this.loader.bT),I=tO(b),b=K.hX.C(K,R),(R=b.X)&&b.kZ.length>1&&(I||b.yV.X||b.kZ[0].hX!==K.hX?b=K.hX.C(K,b.kZ[0].Y):(I=b.kZ[b.kZ.length-1],p=I.Y/R,!I.X&&p<.4&&(b=K.hX.C(K,R-I.Y))))):(K.Dr<0&&(R=AU(K),R.pr=`${b.Y.length}`,this.loader.isSeeking()&&(R.sk="1"),R.snss=K.D,this.loader.YZ("nosq", R)),b=p.SY(K));if(this.policy.gp)for(h of b.kZ)h.type=6;return b}Mq(b,R){if(!tO(b)||!b.hX.G())return!1;var h;(h=this.Y.JX)||(h=tO(b)&&b.hX.G()&&b.G.hX.info.nz{this.loader.YZ(a,v)}); this.isAudioOnly&&vIT(this,this.oH.G["0"])}zF(b,R,h,K){this.loader.zF(new Z0(b,this.Y?.reason==="m"?"m":this.Y?.reason==="s"?"s":this.Y&&dJx(this,this.Y)?this.Y.reason:"a",h,K));WA(this.loader,R,b,!0)}N4(b,R){for(const h of this.MJ)if(h.id===b)return this.S=this.oH.G[b],this.Nb.NJ()&&(this.C=!0),b=new Z0(this.S,R?"t":"m"),R&&(this.D=!0),b;this.X=[];return null}F1(b,R=!1,h={}){this.G.F1(b,R,h)}A1(){return this.G.A1()}};var j8B=class{constructor(b,R,h){this.requestType=b;this.yV=R;this.z6=h;this.Y=null;this.w2={B$:()=>this.data?.B$, Ud:()=>this.data?.Ud, hZ:()=>this.data?.hZ}}setData(b,R,h={}){R?.PH&&(this.f7=z0s(this,R,h),b.y9=this.yV.y9()); if(this.cq())return!0;this.data=b;this.G=AXT(b,(K,I)=>{this.z6?.BH(K,I)},R?.X,R?.S); if(!this.G)return!1;this.Y=g.gn(this.G,k4B);return!0}cq(){return this.requestType===1}Gs(){return this.z6?.Gs()||0}isDecorated(){return!(!this.data?.H$&&!this.data?.Bk?.length)}};var P73=class{constructor(b){this.G=b;this.iv=(0,g.oM)(fQ(16))}encrypt(b){(0,g.c)();return this.G.G?mc(this,b,this.iv):(new g.xh(this.G.Y)).encrypt(b,this.iv)}decrypt(b,R){(0,g.c)();return this.G.G?mc(this,b,R):(new g.xh(this.G.Y)).decrypt(b,R)}};var cvP=class extends g.N3{constructor(b){super();this.QX=b;this.G=new Map;this.X=[];this.Y=!hX();this.U=g.fg(this.QX.experiments,"html5_onesie_prewarm_interval_ms");this.K=new g.bI(this.D,this.U,this);this.J=-1;this.w2={Qk6:()=>this.G, IQr:()=>this.S, Pnr:()=>ZvP}; g.n(this,this.K);kCT(this,g.NC("yt-player-bandaid-host"));this.S=this.load();this.U&&this.S.then(()=>{this.D()})}G6(b){if(!((0,g.c)()=b||(b=this.G.get(0))&&Qes(this,b)}V(){const b=this.X;this.X=[];return b}},ZvP={i4:0,zO9:1,vZO:2,pYY:3,t7:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"},Y0x=class{constructor(b,R){this.location=b;this.Y=R}G(){return $p(16,this.location)}};var u0w=class{constructor(b){this.Io=b;this.Y=!1;this.G=[]}async decrypt(b){if(!this.G.length||this.G[0].isEncrypted){this.Y=!0;this.Io.GD("omd_s");var R=new Uint8Array(16),h,K;for(hX()?h=new g.Vr(b):K=new g.xh(b);this.G.length&&this.G[0].isEncrypted;){var I=this.G.shift(),N=h?await h.decrypt(lD(I.buffer),R):K.decrypt(lD(I.buffer),R);for(b=0;b{if(!this.isComplete()){const K=IM(this);this.fail(new g.hz("net.timeout",K))}},1E3); this.oO=new g.bI(this.KS,2E3,this);this.El=this.PY.ov();this.BL=this.N("html5_onesie_wait_for_media_availability");g.n(this.videoData,this);g.n(this,this.XN);g.n(this,this.KA);g.n(this,this.oO);b=Pa();F2&&b&&(this.L5=new Map);this.XB=new Map;this.yY=new Map;this.hQ=new Map;this.wf=new Map}VD(b){return this.L5?.get(b)?.VD()||[]}yS(b,R){return!!this.L5?.get(R)?.yS(b)}Nm(b,R){return this.L5?.get(R)?.Nm(b)||[]}jR(b,R){return this.L5?.get(R)?.jR(b)||[]}Na(b){this.state=b;this.notifySubscribers()}cq(){return!1}P5(){return!1}l9(){}GD(b){this.PY.GD(b)}bP(b){return this.PY.bP(b)}CX(b, R,h,K){h||this.Rc.CX(K);return!1}x5(b,R){this.Io.x5(b,R)}hp(){this.GD("orfb");this.Z4=!0;if(qxP(this)&&this.xhr){var b={rc:this.xhr.status,lb:this.xhr.CU(),rt:(1E3*G5P(this.Rc)).toFixed(),shost:g.B6(this.sR),trigger:"o1"};this.YZ("pathprobe",ba(b))}}H6(){this.GD("opr_r");this.Eq=!0}gT(b,R,h,K){this.Lv.push(K);if(this.L5){if(!this.L5.has(b)){const I=new zTH(this);this.L5.set(b,I);g.n(this,I)}this.L5.get(b)?.gT(R,h,K);sa(this);h||(this.BM=K.tq)}else sa(this)}By(){return this.Lv}Vx(){this.Lv=[]}Ks(b){this.iZ= b;b.Rh!=null&&this.PY.K6(b.Rh)}lx(b){this.Mk=b}BK(b){b.videoId&&this.yY.set(b.videoId,b)}d8(b){if(b.url)for(const R of b.url)Pr(R,"ump_prewarm")}B6(){if(this.L5)for(const b of this.L5.keys())this.L5.get(b)?.rH()}FG(b){this.xP=b}RR(b){if(b?.EB&&(b=b.EB.I6))for(const R of b)R.videoId&&this.wf.set(R.videoId,R)}Wq(b){this.yO.push(b)}YZ(b,R,h=!1){this.PY.YZ(b,R,h)}Sa(b,R,h){this.L5?.get(b)?.Sa(R,h)}DB(b){this.hQ.set(b.videoId,b)}async fetch(){this.hS?this.XN.start():this.KA.start();this.GD("or_i");const b= this.QX.experiments.O9("html5_onesie_verbose_timing")||this.QX.Mj().G.WY(qXq)?this.GD.bind(this):()=>{}; b("oloc_ss");var R=$Aw(this.videoData,this.El);R||(b("oloc_sa"),R=g.fg(this.QX.experiments,"html5_onesie_redirector_timeout_ms"),R=await I8H(this.videoData,this.El,R));if(!R)return this.fail(new g.hz("onesie.unavailable.hotconfig",{url:"0"})),this.Eh;this.f7=$p(8,R);b("oloc_e");var h=g.js(this.QX,this.videoData.J()),K=!!h.G;h=K?await h.G:h.getValue();this.N("html5_log_onesie_empty_oauth")&&!h&&this.YZ("no_token",{async:K});K=pCT(this.playerRequest,this.QX,this.videoData,h,cA(this.f7));var I;try{if(!this.QX.KR|| this.QX.KR?.G||K?.PQ||(b("orqb_w"),(I=vaB(K,this.iA,this.QX,this.PY,this.g2,this.MK.onesieUstreamerConfig,this.videoData.Ok?.Ho,this.N("onesie_cdm_mosaic_send_audio_tracks_from_client")?this.playerRequest.playbackContext?.contentPlaybackContext?.compositeVideoContext?.defaultActiveSourceVideoId:void 0))&&this.YZ("orpqenc",{i:"w"})),!I){var N=B9T(this,K),p=this.QX.Mj().G.WY(Hmq);if(N){b("orqb_a");let l=a8B(K,this.iA,this.QX,this.PY,this.g2,this.MK.onesieUstreamerConfig,this.videoData.Ok?.Ho,this.N("onesie_cdm_mosaic_send_audio_tracks_from_client")? this.playerRequest.playbackContext?.contentPlaybackContext?.compositeVideoContext?.defaultActiveSourceVideoId:void 0);if(p){const a=new Promise((v,B)=>{setTimeout(()=>void B("timeout 10s"),1E4)}); l=Promise.race([l,a]).catch(v=>{this.YZ("orpqenc",{i:"a",e:`${v}`});b("orqb_f")})}I=await l; !I&&p||this.YZ("orpqenc",{i:"a"})}if(!N||p&&!I)b("orqb_s"),I=l8w(K,this.iA,this.QX,this.PY,this.g2,this.MK.onesieUstreamerConfig,this.videoData.Ok?.Ho,this.N("onesie_cdm_mosaic_send_audio_tracks_from_client")?this.playerRequest.playbackContext?.contentPlaybackContext?.compositeVideoContext?.defaultActiveSourceVideoId:void 0),this.YZ("orpqenc",{i:"j"})}}catch(l){return this.fail(l),this.Eh}b("orqb_e");this.enableCompression=I.innertubeRequest.jo;this.gb=I?.O7?.Od||0;this.GD("osor");N=R0s();I={method:"POST", body:g.gn(I,pPH),headers:{"Content-Type":"text/plain",Referer:location.origin}};p=this.N("html5_onesie_media_capabilities");N9K(R,this.videoData,f8K(this),p);this.Q$&&this.YZ("ombrs","1");this.Rc=new Km(this,{g2:this.g2,BX:this.Q$,vk:(l,a)=>{this.PY.IC(l,a)}, r9:!0});R.set("rn",`${this.Rc.requestNumber}`);this.sR=R.xj();iA3(this.Rc,this.sR);this.GD("or_p");this.xhr=Nn(new N8(R),N,this.Rc,F2,I);this.oO.start();this.PY.onPlayerRequestSent(this.videoData.videoId);return this.Eh}Ct(){return 2}I$(){this.GD("orh_r")}kM(){!this.Z4&&this.xhr.CU()&&this.hp();this.Ci&&!this.hS&&this.w8?.start();this.t8()}Po(b=!1){this.t8();if(!(this.HY()||this.state>=4)){var R=IM(this),h=this.xhr;R.rc=h.status;b&&(R.ab=!0);if(h.e6()){var K="onesie.net";R.msg=h.e6()}else h.status>= 400?K="onesie.net.badstatus":h.p6()?this.Eq||(K="onesie.response.noplayerresponse"):K=h.status===204?"onesie.net.nocontent":"onesie.net.connect";K?this.fail(new g.hz(K,R)):(this.GD("or_fs"),this.Rc.FM((0,g.c)(),h.CU(),0),this.Na(4),this.Q$&&this.YZ("rqs",R));this.Q$&&this.YZ("ombre",`ok.${+!K}`);this.BL=!1;sa(this);Ku(this.Io);this.hS||(this.KA.stop(),this.w8?.stop());if(b=this.El?.V())for(K=0;K1E3){this.Rc?.CR((0,g.c)());const R=IM(this);if(this.QX.zy()&& this.xhr instanceof JuT){var b=this.xhr;R.xrs=b.xhr.readyState;R.xpb=b.G.totalLength;R.xdc=b.V}this.fail(new g.hz("net.timeout",R))}}else(this.Rc||!this.QX.Mj().G.WY(Hmq))&&(0,g.c)()-this.Rc.G>1E4&&(this.Rc?.CR((0,g.c)()),this.sJ());this.isComplete()||this.XN.start()}}sJ(){this.BL=!1;if(!sa(this)){var b=IM(this);b.timeout="1";this.fail(new g.hz("onesie.request",b))}}fail(b){b=K4(b);this.Ci?this.PY.n5(b):(this.Eh.reject(b),this.Ci=!0);Ku(this.Io);this.hS||this.KA.stop();this.GD("or_fe");this.El?.V()?.forEach(R=> {this.YZ("pathprobe",R)}); this.Na(5);this.dispose()}isComplete(){return this.state>=3}SL(){return this.state===4}wS(b){return this.isComplete()||!!this.L5?.get(b)?.X}ye(){return!1}nU(){return this.state===5}notifySubscribers(b){for(let R=0;R102400&&!this.gj&&(this.GD("or100k"), this.gj=!0);if(b.q2()){const R=b.tB(),h=R.totalLength;this.Q$&&this.YZ("ombrss",`len.${h}`);this.xH.feed(R)}if(this.L5)for(const R of this.L5.keys())this.L5.get(R)?.rH(),this.notifySubscribers(R)}catch(b){this.fail(b)}}Hc(b){return!!this.L5?.get(b)?.D()}SJ(){return this.Rc.requestNumber}gJ(b){return this.hQ.get(b)}Tr(){return!1}v8(){return"ONESIE"}};var V3H=class extends g.N3{constructor(b,R,h,K,I,N,p,l,a,v,B,H){super();this.PY=b;this.loader=R;this.policy=h;this.audioTrack=K;this.videoTrack=I;this.oH=N;this.g2=p;this.fR=l;this.Y=a;this.timing=v;this.nR=B;this.K=H;this.G=[];this.V={};this.NJ=this.wp=!1;this.xZ=this.D8=0;this.oh=!0;this.SG=!1;this.G6=0;this.C={o9:0,IG:0};this.KR={o9:0,IG:0};this.xO=null;this.MJ={Ic:[],vM:[]};this.gp={Ic:[],vM:[]};this.J=null;this.S=[];this.SY=0;this.Zr=!1;this.w2={N3H:()=>this.G, mbO:()=>this.V, daR:()=>{this.G.length=0}, GJJ:()=>this.videoData.vY, kjO:()=>this.G6, QBp:q=>{this.G6=q}, TtX:q=>{this.C.IG=q}, oz:q=>{this.J=q}, dX:q=>{this.S=q}, Rb:()=>this.Rb()}; this.videoData=this.PY.getVideoData();this.U=this.videoData.latencyClass==="LOW"?50:this.videoData.latencyClass==="ULTRALOW"?100:this.policy.Pq;this.policy.yu&&(this.T6=new QOT(this.loader,this.policy,this.g2),g.n(this,this.T6))}Rb(b){var R=mO(this.loader)&&b&&b.rU!==void 0&&!b.q9?b.rU*1E3+(this.loader.Kz()||0):Bx(this);if(this.policy.vD){var h=this.MJ;var K=this.gp}else h=qa(this,this.audioTrack),K=qa(this,this.videoTrack);var I=[...h.Ic,...K.Ic];fu(this)&&I.push(...this.S);var N=[...h.vM,...K.vM]; const p=this.loader.kC();if(this.policy.m5&&!this.videoData.isLivePlayback){var l=this.videoData.lengthSeconds*1E3;R>=l&&this.loader.YZ("invalidSabrCmt",{cmt:R,vd:l})}l=this.g2;var a=this.PY,v=this.oH,B=this.X,H=this.videoData.vY,q=this.policy,d=this.loader.Zb,t=pJT(this.loader)*1E3,S=this.vY?.IK,J=this.vY?.YA,e=this.D8,Y=Number(this.Y.V?.info.itag)||0,Q=Number(this.Y.S?.info.itag)||0,P=this.PY.Qr();var $B=b?.B$?b.B$:this.loader.isSuspended?4:void 0;R={g2:l,PY:a,oH:v,Ic:I,vM:N,h2:R,nextRequestPolicy:B, fJ:H,Nb:q,f3:d,hB:t,IK:S,YA:J,D8:e,W1:Y,wg:Q,LA:p,vG:P,B$:$B,oh:this.oh,SG:this.SG};I=this.loader.KC();N=CB(I);I&&(R.Ud=N);if(b=mO(this.loader)&&b?.q9?b.rU:this.PY.B_())R.hZ=b*1E3;b=this.Y;I=b.C;if(b.Nb?.NJ()&&!I)for(IK of b.X)if(IK.Nj){I=!0;break}var IK=b.Nb.NJ()&&!I?[]:HGw(b,b.X);R.HL=IK;IK=this.Y;IK.Nb.NJ()&&!IK.nR?IK=[]:(b=BnB(IK),b.length===0&&(b=IK.J),IK=HGw(IK,b));R.DR=IK;R.aC=fu(this)?[this.J]:void 0;R.gA=Array.from(T_(this.Y.G).keys(),Number);R.A1=this.Y.A1();this.policy.VW&&(R.MP=eAe(this.loader, this.audioTrack),R.uA=eAe(this.loader,this.videoTrack));IK=this.loader.getCurrentTime();h=Hx(this,h.Ic,IK);K=Hx(this,K.Ic,IK);this.SY=K=Math.min(h,K);this.policy.Y&&(fu(this)&&(h=Hx(this,this.S,IK),this.PY.zy()&&h0&&this.G[0].P5()&&(R.At=this.G[0].l9());return R}oP(b,R){this.D=void 0;iCK(this);JP2(this,b,R)}Ia(b){if(this.G.length===0)return!1;const R=this.G[0];return R instanceof lo?b===this.loader.getCurrentTime()*1E3:!(R instanceof Um&&R.info.G?.O7?.hZ)&&Math.abs(R.Ni()-b)<50}BK(b,R){this.X=b;this.policy.Y&&!b.playbackCookie&&this.loader.YZ("sbrnocookie",{rn:R??-1});this.policy.ZZ&&this.K?.K()?this.loader.YZ("clsdai",{ignbckoff:R??-1,backoff:b.backoffTimeMs??-1}):this.D=(0,g.c)()+ (b.backoffTimeMs||0)}qP(b,R){if(b.action===void 0)b=this.PY.B_(),b!==void 0&&this.loader.wK(b);else if(b.action!==0||!this.NJ)if(b.action===0&&this.policy.GO&&(b.action=2),b.JA==="sabr.malformed_config"&&this.xZ++<3)this.loader.handleError("sabr.malformed_config",{action:b.action,rn:R,retry:this.xZ},0);else{var h={};h.reason=b.JA;h.action=b.action;h.rn=R;switch(b.action){case 1:this.policy.Y&&this.xO&&Eg(this.xO,void 0,void 0,h);break;case 0:this.NJ=!0;this.videoData.eK()&&this.policy.Y&&this.xO&& Eg(this.xO,void 0,void 0,h,!1);this.loader.pL(h);break;case 2:mh3(b.JA)!=="sabr.config"&&delete h.reason;this.loader.handleError(mh3(b.JA),h,1);break;case 3:this.policy.PH&&(this.oH.G6?.nR(),this.loader.handleError("sabr.hostfallback",h))}}}d8(b){if(b.url)for(const R of b.url)Pr(R,"ump_prewarm")}NA(b){b&&(this.loader.YZ("sabrctxt",{onsbrctxt:b.type,scp:b.scope,dflt:b.sendByDefault}),b.type&&b.sendByDefault&&this.videoData.vY.add(b.type),b.scope!==2&&(b.type&&this.videoData.sabrContextUpdates.set(b.type, b),this.PY.NA(b)))}DT(){}FG(b,R){if(this.loader.iT)this.loader.YZ("sdai",{ignSabrSeek:1,smt:b?.L7,rn:R});else if(b.L7!==void 0&&b.zx){const h=b.L7/b.zx;this.audioTrack.J=!1;this.videoTrack.J=!1;if(this.policy.nR||this.policy.er||this.policy.P_)this.loader.I0.G=!1;this.PY.getCurrentTime()!==h&&(R={ZK:"sabr_seek",RK:!0,Ka:!0},b.seekSource&&(R.seekSource=b.seekSource),hH(this.loader,h+.1,R))}}onSnackbarMessage(b){this.PY.publish("onSnackbarMessage",b)}Wq(b,R){this.policy.S&&this.loader.Wq(b,R)}Ks(b){b.qE&& b.Ki&&ap(this.oH,b.qE,b.Ki);this.policy.xA&&(b.QY&&b.Pj&&(this.oH.Ja=b.QY/b.Pj),b.wj&&b.Oe&&(this.oH.QL=b.wj/b.Oe));kK(this.videoData)&&!this.videoData.pm&&b.Ki&&this.loader.IR(b.Ki,1E3);b.Rh!=null&&this.PY.K6(b.Rh);b.eN&&(b=((0,g.c)()-b.eN)/1E3,this.loader.AD.a8(1,b))}rG(b){this.loader.rG(b)}gT(b){this.loader.gT(b)}Yh(b){this.loader.Yh(b)}Y5(b){return this.videoData.vY.has(b)}ZT(b,R,h){this.policy.X&&this.loader.YZ("sabrctxtplc",{start:b?b.join("_"):"",stop:R?R.join("_"):"",discard:h?h.join("_"): ""});if(b)for(const K of b)this.videoData.vY.add(K);if(R)for(const K of R)this.videoData.vY.has(K)&&this.videoData.vY.delete(K);if(h)for(const K of h)if(this.videoData.sabrContextUpdates.has(K)&&this.videoData.sabrContextUpdates.delete(K),this.policy.U&&this.G.length)for(const I of this.G)I instanceof lo||I.q1?.type!==K||(I.q1=void 0)}pA(){}oz(b){this.J=b}dX(b){this.S=b}xt(b,R){zb(this.policy,b,4,R)}RR(b){if(b?.EB&&(b=b.EB.I6))for(const R of b)R.formatId&&(b=this.oH.X.get(am(R.formatId)))&&b.info&& (b.info.debugInfo=R.debugInfo)}ag(b){this.Zr=!0;this.PY.publish("reloadplayer",b)}Vn(){return this.PY.Vn()||""}Gs(){const {jC:b,dw:R}=Eaw(this);return Math.min(b,R)}BH(b,R){this.loader.YZ(b,R)}Dv(b){cx(this.loader,w4K(this.fR,b))}CR(){return{requestNumber:this.JX?.SJ()||-1,isDecorated:this.JX?.info.isDecorated()}}T0(b){this.PY.T0(b)}Fn(){this.loader.Fn()}NV(){this.loader.NV()}X5(){super.X5();this.X=void 0;JP2(this,!0,"i");this.G=[]}};var C72=class{constructor(b){this.PY=b;this.G=new Map;this.delay=null}getCurrentTime(){return this.PY.getCurrentTime()-this.PY.Kz()}},M3T=class{constructor(b,R,h){this.V=b;this.cpn=R;this.PY=h;this.G=new Map;this.X=new Map;this.J=NaN;this.Y=this.mZ="";this.isSeeking=!1;this.S=new C72(h);this.Ei=h.Ei;this.PY.subscribe("statechange",this.K,this);this.PY.subscribe("SEEK_TO",()=>{this.z_()}); this.PY.subscribe("SEEK_COMPLETE",()=>{xAD(this)}); this.mZ=this.Y=this.cpn}K(b){y3(b.state)&&t0(this.S)}clear(){var b=this.S;b.delay?.dispose();b.G.clear();this.X.clear();this.G.clear();this.J=NaN}D(b,R,h=0){if(b!==this.J||this.G.get(b)?.X!==R?.X)if(R?this.G.set(b,R):this.G.delete(b),!this.isSeeking){var K=this.V.getStartTime(b);this.J=b;P9x(this,b);if(R){let I=K;R.G.forEach((N,p)=>{I=2&&!b.nU()&&b.info.Wr===0&&(this.V=b,this.D=h,this.Y=R.info,this.J=this.startTimeSecs=Date.now()/1E3,this.S=this.Y.startTime)}return NaN}clear(){this.Y=this.D=this.V=null;this.G=this.S=this.J= this.startTimeSecs=NaN;this.X=!1}};var rvP=class extends g.N3{constructor(){super();try{this.X=LXK(b=>{this.Y=b.at(-1)}),this.S=this.X?.observe("cpu",{sampleInterval:2E3}).catch(b=>{b instanceof DOMException&&(this.G=b)})}catch(b){b instanceof DOMException&&(this.G=b)}}V(){const b={},R=window.h5vcc; b.hwConcurrency=navigator.hardwareConcurrency;this.G&&(b.cpe=this.G.message);this.Y&&(b.cpt=this.Y.time,b.cps=this.Y.state);R?.cVal&&(b.cb2s=R.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),b.cb5s=R.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),b.cb30s=R.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30"));return b}X5(){wCD(this);super.X5()}};var FXB=/[?&]cpn=/;var LGx=class extends g.N3{constructor(){super();this.maxBufferSize=this.sampleInterval=100;this.S=bOK;this.G=[];this.X=0;hAs(this)}flush(){const b={};this.Y&&(b.pe=this.Y);this.G.length>0&&(b.pt=this.G.join("."));this.G=[];return b}async stop(){try{const b=await this.V?.stop();b&&this.logTrace(b)}catch(b){this.Y=RAq(b.message)}}logTrace(b){const R=[],h=[],K=[],I=[];let N=0;for(const p of b.resources)R.push({id:N,url:p}),N++;N=0;for(const {name:p,resourceId:l,line:a,column:v}of b.frames)h.push({id:N, name:p,resourceId:l,line:a,column:v}),N++;N=0;for(const {frameId:p,parentId:l}of b.stacks)I.push({id:N,frameId:p,parentId:l}),N++;N=0;for(const {timestamp:p,stackId:l}of b.samples)K.push({id:N,timestampMs:p,stackId:l}),N++;b=g.Zc(g.gn({resources:R,frames:h,samples:K,stacks:I},SBB),4);this.X+=b.length;this.X<1E7&&this.G.push(b)}X5(){this.stop();super.X5()}};(0,g.oM)([112,12,216,9,235,17,82,221]);var yUT=[2,5,30];g.ky=Qg(()=>{let b="";try{const R=g.jO("CANVAS").getContext("webgl");R&&(R.getExtension("WEBGL_debug_renderer_info"),b=R.getParameter(37446),b=b.replace(/[ :]/g,"_"))}catch(R){}return b});g.pm=class extends g.N3{constructor(b){super();this.provider=b;this.logger=new g.kp("qoe");this.G=new Map;this.sequenceNumber=1;this.C=NaN;this.p5="N";this.K=this.eI=this.mJ=this.G6=this.X=0;this.PH=this.SY=this.J=this.JX="";this.Zl=this.vY=NaN;this.Ty=0;this.FM=-1;this.Sn=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.KR=this.isEmbargoed=this.MJ=this.isOffline=this.isBuffering=!1;this.pz=[];this.U=null;this.xZ=this.S=this.T6=this.D=!1;this.V=-1;this.Zr=!1;this.EW=new g.bI(this.hc,750,this);this.dM= this.adCpn="";this.Q5=this.G0=this.EU=this.jV=this.adFormat=void 0;this.ri=0;this.Ys=new Set("cl fexp drm drm_system drm_product ns adformat live cat shbpslc".split(" "));this.SK=new Set(["gd","pw","gp","gm","dd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.wp=!1;this.RH=NaN;this.gp=0;this.fR=!1;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.CR=!1;this.jn=new Set;this.w2={YE:h=>{this.YE(h)}, T35:()=>this.Y, reportStats:()=>{this.reportStats()}, chX:()=>this.G.get("cat")||[], RF:h=>this.G.get(h)||[], c9O:()=>this.G, NB5:()=>({adCpn:this.adCpn,dM:this.dM,adFormat:this.adFormat}), Jhp:()=>({jV:this.jV,EU:this.EU,G0:this.G0,Q5:this.Q5})}; this.nR=this.provider.QX.N("html5_qoe_relaxed_reporting");var R=g.fg(this.provider.QX.experiments,"html5_qoe_proto_mock_length");R&&!J0.length&&(J0=DAx(R));g.n(this,this.EW);try{navigator.getBattery?.().then(h=>{this.U=h})}catch{}g.Gl(this,0,"vps",["N"]); b.QX.zy()&&(this.gp=(0,g.c)(),this.RH=g.x_(()=>{const h=(0,g.c)(),K=h-this.gp;K>500&&this.YZ("vmlock",{diff:K.toFixed()});this.gp=h},250)); this.provider.videoData.wR&&(this.remoteControlMode=OcT[this.provider.videoData.wR]||0);this.provider.videoData.Nf&&(R=RLw(this.provider.videoData.Nf),R?.length&&(this.remoteConnectedDevices=R));b.QX.zy()&&(this.pR=new rvP,g.n(this,this.pR));b.QX.webPlayerContextConfig?.enableSelfProfilingLogging&&(this.NJ=new LGx,g.n(this,this.NJ))}hc(){const b=g.Sk(this.provider);g2(this,b)}I3(){return this.Ie}FO(){return{mJ:this.mJ,eI:this.eI}}Jd(b,R){this.mJ=b;this.eI=R}K6(b){if(!this.CR){this.CR=!0;var R=""; switch(b){case 1:R="proximaui";break;case 2:R=this.provider.videoData.uv.getWebPlayerContextConfig()?.enableProximaLowLatency?"proximawpcc":this.provider.videoData.N("html5_enable_proxima")||this.provider.videoData.N("html5_sabr_force_proxima")?"proximaexp":"proximaclient";break;case 3:R="proximaauto"}R!==""&&Tl(this,R)}}gQ(b,R,h,K){if(!this.jn.has(b)){this.jn.add(b);var I=g.Sk(this.provider);g.Gl(this,I,"lse",[b,R,h,K.toFixed(3)])}}Tl(b){Ua(this,"lwc",[b.A9?b.A9.toFixed():"",b.vg?b.vg.toFixed(): "",b.Th?(b.Th*1E3).toFixed():"",b.gz?(b.gz*1E3).toFixed():"",b.bB?(b.bB*1E3).toFixed():""].join(":"))}reportStats(b=NaN){if(!this.HY()&&(b=b>=0?b:g.Sk(this.provider),this.nR?wTT.has(this.p5)&&(this.G.size||(this.p5==="PL"?b>=this.X+30:b<=this.G6+30||b>=this.X+1200&&b<=this.G6+86400))&&(g.Gl(this,b,"vps",[this.p5]),this.X=b):["PL","B","S"].indexOf(this.p5)>-1&&(this.G.size||b>=this.X+30)&&(g.Gl(this,b,"vps",[this.p5]),this.X=b),this.G.size)){this.sequenceNumber===7E3&&g.kJ(Error("Sent over 7000 pings")); if(!(this.sequenceNumber>=7E3)){nu(this,b);var R=this.provider.PY.CL();for(const {key:a,value:v}of R)this.YZ(a,v);R=b;var h=this.provider.PY.J3(),K=h.droppedVideoFrames||0;const N=h.totalVideoFrames||0,p=K-this.mJ,l=N&&!this.eI;K>h.totalVideoFrames||p>5E3?U8e(this,"html5.badframedropcount",`df.${K};tf.${h.totalVideoFrames}`):(p>0||l)&&g.Gl(this,R,"df",[p]);this.mJ=K;this.eI=N;this.K>0&&(g.Gl(this,b,"glf",[this.K]),this.K=0);ut.isActive()&&(b=ut.Gw(),Object.keys(b).length>0&&this.YZ("profile",b)); this.fR&&Tl(this,"lwnmow");b={};this.provider.videoData.Y&&(b.fmt=this.provider.videoData.Y.itag,(R=this.provider.videoData.V)&&R.itag!==b.fmt&&(b.afmt=R.itag));b.cpn=this.provider.videoData.clientPlaybackNonce;this.jV?.length?b.adcpn=this.jV.join(","):this.adCpn&&(b.adcpn=this.adCpn);this.EU?.length?b.addocid=this.EU.join(","):this.dM.length&&(b.addocid=this.dM);h=this.provider.videoData;R=h.eK();h=h.latencyClass;(this.provider.QX.Mj().G.WY(DYK)&&R&&h==="NORMAL"||this.provider.QX.Mj().G.WY(o$x)&& R&&h==="LOW"||this.provider.QX.Mj().G.WY(FNT)&&this.provider.videoData.isDaiEnabled()&&yy(this.provider.videoData))&&(b.adc=1);this.provider.videoData.cotn&&(b.cotn=this.provider.videoData.cotn);b.el=xK(this.provider.videoData);b.content_v=w6(this.provider.videoData);b.ns=this.provider.QX.G6;b.fexp=m02(this.provider.QX.experiments).toString();b.cl=(868418280).toString();R=this.provider.videoData.adFormat||this.adFormat;this.G0?.length?b.adformat=this.G0.join(","):R&&(b.adformat=R);(R=EN(this.provider.videoData))&& (b.live=R);this.provider.videoData.OD()&&(b.drm=1,this.provider.videoData.S&&(b.drm_system=XUq[this.provider.videoData.S.flavor]||0),this.provider.videoData.drmProduct&&(b.drm_product=this.provider.videoData.drmProduct));R_()&&this.provider.videoData.g3&&(b.ctt=this.provider.videoData.g3,b.cttype=this.provider.videoData.SR,this.provider.videoData.mdxEnvironment&&(b.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(b.dai=this.provider.videoData.enableServerStitchedDai? "ss":"cs",this.provider.videoData.oQ&&(b.dai_fallback="1"),yy(this.provider.videoData)&&(b.dai="mv")):this.provider.videoData.BD?b.dai="cs":this.provider.videoData.H1&&(b.dai="disabled");b.seq=this.sequenceNumber++;if(this.provider.videoData.nf){if(R=this.provider.videoData.nf,b&&R){R.ns==="3pp"&&(b.ns="3pp");this.SK.has(R.ns)&&Tl(this,"hbps");R.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=R.shbpslc);for(var I of Object.keys(R))this.Ys.has(I)||(b[I]=R[I])}}else b.event="streamingstats", b.docid=this.provider.videoData.videoId,b.ei=this.provider.videoData.eventId;this.isEmbargoed&&(b.embargoed="1");Object.assign(b,this.provider.QX.G);(I=b.seq)&&!this.provider.QX.experiments.Mj().G.WY(NFx)&&(R=gp3(this,+I),R=g.gn(R,PLK),R=g.Zc(R,4),this.G.set("qclc",[R]));b=g.z9("//"+this.provider.QX.YM+"/api/stats/qoe",b);h=R="";for(const [a,v]of this.G.entries()){K=v;if(!K?.join)continue;K=`&${a}=${K.join(",")}`;K.length>100?h+=K:R+=K}this.provider.QX.experiments.Mj().G.WY(NFx)&&(I=gp3(this,+(I|| 0)),I.qoePingUrl=b+R+h,g.yp("qoeClientLoggingContext",I),R+="&dl=1");Wex(this,b+R,h.replace(/ /g,"%20"))}this.G.clear()}}wG(b){this.fR=b}m_(){if(this.provider.videoData.S){var b=this.provider.videoData.S;Tl(this,`eme-${b.keySystemAccess?"final":nB(b)?"ms":JE(b)?"ytfp":Tw(b)?"safarifp":"nonfinal"}`)}}aU(b){this.isEmbargoed=b}onPlaybackRateChange(b){const R=g.Sk(this.provider);b&&b!==this.Sn&&(g.Gl(this,R,"rate",[b]),this.Sn=b);this.nR||this.reportStats(R)}getPlayerState(b){if(b.G(128))return"ER";if(b.G(2048))return"B"; if(b.G(512))return"SU";if(b.G(16)||b.G(32))return"S";if(b.isOrWillBePlaying()&&b.G(64))return"B";let R=FGT[gV(b)];g.hB(this.provider.QX)&&R==="B"&&this.provider.PY.getVisibilityState()===3&&(R="SU");R==="B"&&b.G(4)&&(R="PB");return R}jP(b,R){const h=g.Sk(this.provider);g.Gl(this,h,"vfi",[b==="A"?"":`${R??0}`,b])}X5(){super.X5();g.Pg(this.C);g.Pg(this.RH)}YE(b){this.isOffline=b;g.Gl(this,g.Sk(this.provider),"is_offline",[this.isOffline?"1":"0"])}YZ(b,R,h){const K=this.pz.indexOf(b)!==-1;K||this.pz.push(b); if(!h||!K){R=typeof R!=="string"?ba(R):R;R=npB(R);if(!h&&!/^t[.]/.test(R)){var I=g.Sk(this.provider)*1E3;R=`t.${I.toFixed()};${R}`}Ua(this,"ctmp",`${b}:${R}`);Ea(this);return I}}uy(b,R,h){this.Y={jf:Number(this.YZ("glrem",{nst:b.toFixed(),rem:R.toFixed(),ca:+h})),h$:b,JP:R,isAd:h}}Mc(b,R,h){g.Gl(this,g.Sk(this.provider),"ad_playback",[b,R,h])}hd(b,R){const h=g.Sk(this.provider)*1E3;Ua(this,"daism",`t.${h.toFixed(0)};smw.${(b*1E3).toFixed(0)};smo.${(R*1E3).toFixed(0)}`)}resume(){isNaN(this.C)?SP2(this): this.C=g.x_(()=>{this.reportStats()},1E4)}}; g.pm.prototype.uC=RK(50);g.pm.prototype.oB=RK(33);g.pm.prototype.IB=RK(27);g.pm.prototype.Km=RK(21);var FGT={[5]:"N",[-1]:"N",[3]:"B",[0]:"EN",[2]:"PA",[1]:"PL",[-1E3]:"ER",[1E3]:"N"},wTT=new Set(["PL","B","S"]),J0=[];var $yq=class extends g.N3{constructor(b,R,h,K,I,N,p,l=!1,a,v){super();this.PY=b;this.schedule=R;this.policy=h;this.oH=K;this.G6=a;this.HR=v;this.LC=this.cY=null;this.vY=this.JX=this.SY=this.C=0;this.bT=this.vX=this.isSuspended=!1;this.xZ="";this.wi={};this.PH=NaN;this.RH=this.Ty=this.a$=0;this.xO=null;this.Zl=this.NJ=!1;this.Zb=0;this.wp=!1;this.gp=this.fR=0;this.EW=null;this.iT=!1;this.CZ=()=>this.PY.CZ(); this.timing=new G8P(this.HR);this.U=new vDx(this.schedule,this.policy);this.FM=new g.bI(this.NC,0,this);this.Sn=new g.bI(this.NC,this.policy.Sn,this);this.uc=new g.bI(this.NC,1E3,this);this.hc=new g.bI(this.NC,void 0,this);this.pR=new g.bI(()=>{this.isSuspended||this.NC()},1E4,this); this.m_=new g.bI(this.wB,250,this);this.D=this.currentTime=NaN;this.AD=new IC(5);this.MJ=this.timestampOffset=NaN;this.logger=new g.kp("dash");this.Ys=Infinity;this.w2={sYY:()=>this.I0, dbe:()=>this.X, getAudioTrack:()=>this.audioTrack, iTv:()=>this.videoTrack, L7X:()=>this.nR, getManifest:()=>this.oH, DC5:()=>this.Y, NC:()=>{this.NC()}, dH:()=>{this.C=0;this.dH()}, xzp:B=>uo(this,this.videoTrack,this.cY.Y,B)}; b=a&&a.VD();a&&(Afq(a,this.oH,this.policy),this.MJ=Date.now());this.G=new nDH(this,this.U,h,this.oH,I,b);h=MKH(this.G,N,p&&p.id);this.audioTrack=new eTP(this,this.policy,h.audio,this.timing);this.videoTrack=new eTP(this,this.policy,h.video,this.timing);this.videoTrack.X.nR=this.audioTrack.yr();this.Zr={updateend:this.gB,error:this.vD};g.n(this,this.FM);g.n(this,this.Sn);g.n(this,this.uc);g.n(this,this.hc);g.n(this,this.pR);h=this.policy.HA&&this.policy.fZ?!T4B(this.videoTrack.hX.info):!1;this.pz= s0K({pj:this.policy.D.pj||h,fZ:this.policy.fZ&&!h,Uh:this.policy.Uh});this.K=u1K(this,this.policy,this.pz,this.schedule,this.AD,(B,H)=>OOw(this,B,H)); this.X=new gDT(this,this.oH,this.policy,this.videoTrack,this.audioTrack,l);this.policy.S&&(l=this.PY.getVideoData(),this.YZ("clsdai",{initld:1,admapsz:l.E_?.size}),l.E_||(l.E_=new Map),this.nR=new WGD(this.policy,(B,H)=>{this.YZ(B,H)},this.policy.sH,l.E_)); this.I0=new Hvx(this,this.oH,this.videoTrack,this.audioTrack,this.policy);l=this.policy.n4?this.PY.getVideoData().Bg:null;this.J=new xi2(this,this.policy,this.videoTrack,this.audioTrack,this.wi,this.X,this.timing,this.U,this.schedule,this.oH,this.G,this.K,h,l);g.n(this,this.J);this.S=new mix(this,this.policy,this.videoTrack,this.audioTrack,this.oH,I,dw(this.PY.getVideoData()),p?.id);g.n(this,this.S);yX2(this.S,N);this.Y=new V3H(this.PY,this,this.policy,this.audioTrack,this.videoTrack,this.oH,this.schedule, this.G,this.S,this.timing,this.X,this.nR);g.n(this,this.Y);this.V=this.PY.ac.W_.rE;this.policy.J||Qm2(this);this.policy.HR&&(this.SK=new M3T(this.videoTrack.hX.index,this.PY.getVideoData().clientPlaybackNonce??"",this.PY))}initialize(b,R,h){b=b||0;this.policy.G||(R=o4q(this.G),Px(this.PY,new Z0(R.video,R.reason)),this.PY.Fc(new Z0(R.audio,R.reason)));this.policy.G&&Yh(this);this.oH.isManifestless&&a$s(this.J);this.K&&XCq(this.K,this.videoTrack.hX);R=isNaN(this.getCurrentTime())?0:this.getCurrentTime(); let K=!this.oH.isManifestless;this.policy.iD&&(K=K||this.oH.VB);if(!this.policy.G6||this.policy.KR)this.currentTime=K?b:R;this.policy.nR&&this.seek(this.getCurrentTime(),{}).xb(()=>{}); this.policy.G?this.V?.Hc(this.Vn()||"")&&x8H(this)&&XQ(this,this.videoTrack)&&XQ(this,this.audioTrack)&&(kf3(this.Y,this.V),this.policy.J&&Qm2(this)):this.G6&&(m8w(this,this.videoTrack),m8w(this,this.audioTrack),q6T(this.G6),delete this.G6);h?(this.T6(!1),this.uc.qa()):(b=this.getCurrentTime()===0,gl(this.J,this.videoTrack,this.videoTrack.hX,b),gl(this.J,this.audioTrack,this.audioTrack.hX,b),this.policy.G&&Sxs(this.Y,{B$:1}),this.policy.nR||this.seek(this.getCurrentTime(),{}).xb(()=>{}),this.timing.tick("gv")); (this.oH.A9||this.oH.vg||this.oH.Th||this.oH.gz||this.oH.bB)&&this.PY.Tl(this.oH)}T6(b){this.vX=b||this.PY.L().N("html5_allow_multiview_tile_preload")&&this.PY.getVideoData().SK;this.policy.gp||(this.isSuspended=!0,this.policy.bz&&(this.uc.stop(),this.Sn.stop(),this.FM.stop()),this.pR.stop())}resume(){if(this.isSuspended||this.bT){this.vX=this.bT=this.isSuspended=!1;try{this.NC()}catch(b){g.X(b)}}}ez(){return!this.policy.hc}CR(b=!1){return Math.min(sg(this.audioTrack,b),sg(this.videoTrack,b))}hC(b= !1,R=!1){cUT(this);this.PY.yk()&&(this.D=NaN);b?(this.policy.SY&&this.YZ("loader",{setsmb:1}),this.policy.gp=!0,this.o8()):(this.T6(!1),R||this.o8())}setAudioTrack(b,R,h=!1){if(!this.HY()){var K=!isNaN(R);h&&K&&(this.audioTrack.G6=Date.now(),this.policy.Kh&&(this.wp=!0));h=this.PY.yk()&&!this.PY.getVideoData().K;if(this.policy.G){var I=this.S.N4(b.id,K);this.PY.Fc(I)}else I=this.G,I.Y=I.oH.G[b.id],I.D=I.Y,I=new Om(I.D,I.X,K?"t":"m"),this.PY.Fc(new Z0(I.audio,I.reason));K?(this.PH=Date.now(),K=this.audioTrack.hX.index.dt(R), this.YZ("setAudio",{id:b.id,cmt:R,sq:K}),K>=0&&(b=this.policy.h_?K+1:K,this.policy.G&&this.oP(!0,"mosaic"),qd(this.audioTrack,b,NaN,NaN),!this.policy.SK&&this.oH.isLive&&lg(this.oH,b,!1))):h||this.PY.X1()}}setPlaybackRate(b){b!==this.U.getPlaybackRate()&&this.U.setPlaybackRate(b)}MM(b){const R=this.Y.J;this.Y.oz(b);this.YZ("scfidc",{curr:am(R),"new":am(b)});b&&am(b)!==am(R)&&(this.oP(!0,"caption change"),this.nt())}Xb(b){this.Y.dX(b)}zF(b){b.G.info.Pr()?this.PY.Fc(b):Px(this.PY,b)}Dv(b){tU(b.kZ[b.kZ.length- 1])&&cx(this,w4K(this.G,b.kZ[0].hX))}KC(){return this.PY.KC()}kC(){return this.PY.kC()}Yh(b){this.PY.L().zy()&&this.YZ("sps",{status:b.iB||""});if(b.iB===1)this.a$=0;else if(b.iB===2||b.iB===3){let R=!1;b.iB===3&&(this.Ys=b.Fd??Infinity,this.a$+=1,(R=ny(this))&&this.IZ(!0));this.PY.pQ(!0,R)}}ov(){return this.PY.ov()}Vk(){return this.PY.Vk()}bx(b){this.PY.bx(b)}nt(){this.NC()}wB(){const b=this.PY.di()?.getCurrentTime();b?this.PY.YZ("rms",{cta:b}):this.m_.qa()}NC(){Cu(this);if(this.cY&&lC(this.cY)&& !this.cY.TI()&&(!this.policy.G6||isFinite(this.getCurrentTime()))){var b=hO(this.videoTrack);b=this.policy.Eu&&b&&b.J();this.oH.isManifestless&&this.oH.K&&sJ(this.oH)?(this.D=sJ(this.oH),this.cY.Fr(this.D)):va(this.oH)&&!b?(b=this.getCurrentTime(),this.policy.G6&&this.policy.KR&&this.YZ("ssrDuration",{ld:this.KR(),lct:this.currentTime,vpd:this.getCurrentTime()},!0),isNaN(this.D)?(this.D=b+3600,this.cY.Fr(this.D)):this.D<=b+1800&&(this.D=Math.max(this.D+1800,b+3600),this.cY.Fr(this.D))):this.cY.isView|| (b=Math.max(this.audioTrack.getDuration(),this.videoTrack.getDuration()),(!isFinite(this.D)||this.D!==b)&&b>0&&(this.cY.Fr(b),this.D=b))}if(!this.HY())if(KB(this.oH)&&this.oH.nU()){var R=this.oH;this.handleError("manifest.net.retryexhausted",R.CR?{rc:R.g4}:{rc:R.g4.toString()},1)}else if(this.policy.G)a:{try{if(mO(this)&&this.LC){R=this.Y;var h=this.LC;const t=h.G;if(t){var K=R.PY.B_(),I=!0;K||(K=R.loader.getCurrentTime(),I=!1);{var N=t,p=K;const S=I?R.PY.sj(p):p;if(R.loader.ze(S))var l=!1;else{var a= {t:p.toFixed(3),isUtc:I};c:{const J=R.PY.Vn();if(J){for(const e of[R.audioTrack,R.videoTrack]){const Y=vt(e.hX,R.oH.AO);K=N?.jR(Y,J)||[];if(K.length===0||!BmH(new TL(K),S)){var v=!1;break c}}v=!0}else v=!1}v?(R.loader.YZ("prebuffer",Object.assign(a,{inrange:1})),l=!0):(N.info.G?.O7?.hZ?I&&(N.info.G?.O7?.hZ||0)===p*1E3:!I&&(N.info.G?.O7?.Od||0)===p*1E3)?(R.loader.YZ("prebuffer",Object.assign(a,{match:1})),l=!0):l=!1}}l&&(R.PY.GD("ismp_c"),R.G.push(t),R.T6?.G(t.info.yV),t.tp(),h.X(!1))}}pu(this.Y); this.oH.isManifestless&&this.policy.J&&Rt(this.I0);this.cY?.J()&&this.dH();Sxs(this.Y);if(mO(this)&&this.LC){var B=this.Y,H=this.LC;const t=H.Y.rU;if(t!==void 0&&t>=0){B.PY.GD("ismp_a");var q=H.Y;if(YxK(B,q)){var d=WXP(B,q);B.policy.Pq>0&&B.KR.IG++;d&&(H.G!==d&&(KSx(H),H.G=d,H.Y=NX),B.PY.GD("ismp_rc"))}}}}catch(t){g.kJ(t);if(t.message.includes("changeType")){this.YZ("ctype",{exp:t.name,msg:t.message,s:t.stack});break a}this.handleError("fmt.unplayable",{exp:t.name,msg:t.message,s:t.stack,trg:"sabrslicerqt"}, 1)}Chx(this);this.pR.qa()}else if(!this.oH.Y||!LSx(this.videoTrack)&&!LSx(this.audioTrack)||(this.videoTrack.V||this.audioTrack.V)&&this.policy.fR?R=!1:(this.o8(),this.PY.seekTo(Infinity,{ZK:"checkLoaderTracksSync",IR:!0}),R=!0),!R){Cu(this);this.oH.isManifestless&&(wqT(this.videoTrack),wqT(this.audioTrack),Rt(this.I0),(R=DR(this.videoTrack))&&R.G&&(R=R.G.V&&!this.policy.fZ,this.YZ(R===this.policy.D.pj?"strm":"strmbug",{strm:R,sfmp4:this.policy.D.pj,dfs:this.policy.fZ},!0)));if(this.cY)this.dH(); else if(this.policy.V){R=!1;if(this.policy.Rl)for(I of[this.videoTrack,this.audioTrack]){for(h=DR(I);h&&I.Jl()!==hO(I);h=DR(I))I.SH(h);R=R||!!h}else(N=DR(this.videoTrack))&&this.videoTrack.SH(N),(p=DR(this.audioTrack))&&this.audioTrack.SH(p);py(this.videoTrack)&&py(this.audioTrack)||(N||p||R)&&Na(this)}V$(this);gl(this.J,this.videoTrack,this.videoTrack.hX,!1);gl(this.J,this.audioTrack,this.audioTrack.hX,!1);if(!this.policy.Y6&&(R=this.videoTrack,a=this.audioTrack,(!this.cY||lC(this.cY)&&!this.policy.d_)&& !this.I0.isSeeking()&&(this.policy.G||tO(R)&&R.hX.G()&&this.G.G6)))a:{if(h=this.getCurrentTime(),l=this.U,v=XY(l,R.hX.info.nz,a.hX.info.nz,0),a=ub(l.g2)+v/ZR(l.g2),h+=Math.max(a,a+l.policy.yE-v/R.hX.info.nz),R.Y.length){if(R.Y[0].info.kZ[0].startTime<=h)break a;Lz(R)}l=R.X;for(a=l.Y.length-1;a>=0;a--)l.Y[a].info.startTime>h&&l.Y.pop();XqB(R);R.G&&h 5&&b.U.shift(),R=R.Dr,this.PY.getVideoData()?.enableServerStitchedDai&&(h=D6T(this.audioTrack,R),b=D6T(this.videoTrack,R),h!==0&&b!==0&&h!==b&&this.handleError("ssdai.avsync",{sq:R,a:h,v:b},0)))}}Ap(b,R,h,K){b.info.video&&this.X.Ap(R,h,K)}cA(b){this.G.cA(b)}Qi(){return this.xO}wl(){return this.videoTrack.J||this.audioTrack.J}seek(b,R){if(this.HY())return Vb();if(this.wl())return Vb("seeking to head");if(this.policy.nR&&!isFinite(b))return fnH(this.I0),g.Xp(Infinity);Cu(this);h4H(this,b,!1,R.seekSource); Yh(this);this.policy.G||V$(this,b);this.cY&&this.cY.G&&this.cY.Y&&!this.PY.getVideoData().kf&&(this.cY.G.isLocked()||this.cY.Y.isLocked())&&this.PY.X1({reattachOnLockedBuffer:1,vsb:`${this.cY.Y.isLocked()}`,asb:`${this.cY.G.isLocked()}`});const h=this.getCurrentTime(),K=this.I0.seek(b,R);if(!this.policy.G6||this.policy.KR)this.currentTime=K;nx(this.X,b,h,this.policy.RC&&!R.RK);Na(this);return g.Xp(K)}Ia(b){return this.policy.G&&this.Y.Ia(b)}Y5(b){return this.Y.Y5(b)}oP(b,R){this.Y.oP(b,R)}getCurrentTime(){if(this.policy.G6){const b= this.Kz()||0;return this.PY.getCurrentTime(!0)-b}return this.currentTime}KR(){return this.currentTime+this.timestampOffset}P8(){return this.audioTrack.hX.info}kG(){return this.videoTrack.hX.info}JC(){return this.audioTrack.hX.info.U9}Ng(){return this.videoTrack.hX.info.U9}X5(){try{this.hC(),Lz(this.audioTrack),Lz(this.videoTrack),je(this.audioTrack),je(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),super.X5()}catch(b){g.X(b)}}handleError(b,R,h=0){const K=R5(h);b==="fmt.unplayable"&& this.oH.isLive&&(this.policy.Uh=!1,pB(this.oH));R=new g.hz(b,R,h);g.VH(this);ba(R.details);this.PY.handleError(R);b!=="html5.invalidstate"&&R.errorCode!=="fmt.unplayable"&&b!=="fmt.unparseable"&&K&&this.dispose()}RT(){var b=hO(this.audioTrack),R=hO(this.videoTrack);b={lct:this.getCurrentTime().toFixed(3),lsk:this.I0.isSeeking(),lmf:this.G.G.isLocked(),lbw:D7(this.schedule).toFixed(3),lhd:ub(this.schedule).toFixed(3),lst:((this.schedule.D.JU()||0)*1E9).toFixed(3),laa:b?b.vR():"",lva:R?R.vR():"",lar:this.audioTrack.G? this.audioTrack.G.vR():"",lvr:this.videoTrack.G?this.videoTrack.G.vR():"",laq:`${HA(this.audioTrack)}`,lvq:`${HA(this.videoTrack)}`};this.cY&&!this.cY.r4()&&this.cY.G&&this.cY.Y&&(b.lab=pw(this.cY.G.RY()),b.lvb=pw(this.cY.Y.RY()));this.C&&(b.lapt=((0,g.c)()-this.C).toFixed(0),b.lapr=Lex(this));this.SY&&(b.lapmabht=((0,g.c)()-this.SY).toFixed(0),b.lapmabh=FY(this,this.audioTrack).toFixed(0));(R=this.Y.pR)&&(b.reqBlocked=R);(R=this.Y.RH)&&(b.lsrt=((0,g.c)()-R).toFixed(0));this.JX&&(b.lapmvbht=((0,g.c)()- this.JX).toFixed(0),b.lapmvbh=FY(this,this.videoTrack).toFixed(0));this.vY&&(b.lapsdai=((0,g.c)()-this.vY).toFixed(0));return b}K0(){return this.G.G}o8(){try{this.policy.G&&this.Y.oP(!1,"pending"),this.audioTrack.o8(),this.videoTrack.o8()}catch(b){g.X(b)}this.policy.V=""}ze(b){return this.videoTrack&&this.audioTrack?this.videoTrack.ze(b)&&this.audioTrack.ze(b):!0}R9(){return cr(this.U)}YZ(b,R,h=!1){this.PY.YZ(b,R,h)}Vn(){return this.PY.Vn()}IR(b,R){b/=R;isNaN(this.timestampOffset)&&FQ(this,b-Math.min(b, this.policy.Ti));return(b-this.timestampOffset)*R}Kz(){return this.timestampOffset}isSeeking(){return this.I0.isSeeking()}Zt(){this.X.Zt()}F1(b,R=!1,h={}){this.policy.G?this.S.F1(b,R,h):this.G.F1(b,R,h)}K5(){this.policy.Y&&this.iT&&(this.YZ("sdai",{skipAdSked:"1"}),this.iT=!1)}u3(b,R){if(this.policy.Y&&(this.iT||this.isSeeking()))return this.YZ("sdai",{ignoreSkip:"1",isSkip:this.iT,isSeek:this.isSeeking(),t:b.toFixed(3)}),!1;const h=this.policy.Y&&(this.policy.S||this.policy.LZ),K=this.videoTrack.hX.index.dt(b); let I=!1;if(h){if(I=!!this.nR?.rQ(b,K,this.timestampOffset))Wb(this,b,b,K),this.xO&&this.xO?.rQ(b,K)}else this.xO&&(I=!!this.X.u3(b,this.xO));if(!I)return this.handleError("ad.skipfailed",{dec:!!this.xO,t:b.toFixed(3),sq:K}),!1;this.policy.Y&&(this.YZ("sdai",{skipAdStd:"1"}),this.iT=!0);this.policy.HR&&this.SK?.clear();FQ(this,this.timestampOffset-R);Na(this);this.policy.Y&&(pB(this.oH),je(this.audioTrack),je(this.videoTrack),this.o8());return!0}cO(){FQ(this,this.timestampOffset-1E3);var b=this.oH; const R=new Set;for(const K in b.G){const I=b.G[K].index;var h=I.DS();h&&!R.has(h)&&(h.startTime+=1E3,h.endTime=h.startTime+h.duration,R.add(h));I.segments.length&&(h=I.segments[I.segments.length-1],I.segments=[],I.segments.push(h))}this.xO&&this.xO.N1();this.policy.LZ&&this.policy.Y&&this.nR?.N1();nx(this.X,0,0,!0);this.iT=!1}getManifest(){return this.oH}isOffline(){return!!this.PY.getVideoData().cotn}IC(b,R){this.PY.IC(b,R)}yZ(b,R){if(this.policy.G)h4H(this,b,!0,R),this.Y.oP(!0,"utc"),this.nt(); else if(R=this.PY.getVideoData().Bg){var h=this.J;h.qU=b;h.Bg=R;Tb(this)}}wK(b){this.videoTrack.J=!1;this.audioTrack.J=!1;this.I0.G=!1;this.PY.wK(b)}wX(b){this.I0.wX(b-this.Kz())}Bn(){this.PY.Bn()}IZ(b){b!==this.policy.vO&&((this.policy.vO=b)||this.NC())}X1(b){this.PY.X1(b)}wG(b){this.PY.wG(b)}cK(b,R,h){this.nR?.cK(b,R,h);this.policy.S&&(this.Y.D=void 0,this.NC())}Vb(b){this.nR?.Vb(b)}gT(b){this.policy.T6&&this.PY.getVideoData().AO()&&!b.Ig&&(this.YZ("liveUmpMissing",{segmentNum:b.tq,headerId:b.eR, startMs:b.startMs,durationMs:b.durationMs}),this.policy.T6=!1)}Wq(b,R){if(this.policy.S){const h=b.Dg?.[0],K=DDe(this.PY.getVideoData());this.nR?.Wq(b,R,this.xO||void 0,K,this.policy.BI?this.oH:void 0);this.YZ("clidai",{onqlst:1,len:b.Dg?.length||0,rn:R,evt:ki3(h?.Yj?.event),cid:h?.Yj?.identifier||"null",sq:h?.tq||-1,trk:h?.trackType||"null",disr:K})}}rG(b){this.policy.T6&&this.xO?.rG(b)}prefetchKeyPlay(b,R){mO(this)&&(this.LC||(this.LC=new EDH(h=>{this.PY.GD(h)}),g.n(this,this.LC)),hpq(this.LC,{rU:b, q9:R,B$:2}),this.NC())}NV(){this.Ty++}Fn(){this.Ty=0}ri(){return this.PY.getVideoData().K?(0,g.c)()-this.schedule.vY>3E5&&this.Ty>=3:!this.schedule.vY}x4(){this.Y.C.IG=0}vO(){this.Y.D=void 0}};var oDT=class extends g.NU{};var DiT=class extends oDT{constructor(b,R,h,K){super();this.X=-1;this.G={};this.V=new g.bI(this.S,0,this);g.n(this,this.V);this.Y=new g.bI(()=>{this.HY()||(this.V.start(Math.random()*h),this.Y.start(R))},b,this); g.n(this,this.Y);K.subscribe("fairplay_next_need_key_info",this.J,this)}J(b,R){if(b&&R){var h=Number(W6(b,"cpi"))*1+1;isNaN(h)||h<=0||hthis.X&&(this.X=h,g.RT(this.G)||(this.G={},this.V.stop(),this.Y.stop())),this.G[R]=b,this.Y.qa())}}S(){for(const I of Object.keys(this.G)){var b=this.publish,R=this.X,h=g.ai(this.G[I]),K=h[6];const N=[];for(const p of K.split("&"))p.indexOf("cpi=")===0?N.push("cpi="+R.toString()):p.indexOf("ek=")===0?N.push("ek="+ g.A1(I)):N.push(p);h[6]="?"+N.join("&");R="skd://"+h.slice(2).join("");K=R.length*2;h=new Uint8Array(K+4);h[0]=K%256;h[1]=(K-h[0])/256;for(K=0;K{this.publish("log_qoe",{wvagt:"timer",reqlen:this.G?this.G.length:-1});if(this.G){if(this.G.length>0){var h=this.G.shift();I4q(this,h.info)}this.G.length>0&&(h=this.G[0].time-(0,g.c)(),this.Y.start(Math.max(0,h)))}},0); g.n(this,this.Y);R.subscribe("widevine_set_need_key_info",this.V,this)}V(b){var R;a:{if((R=b.cryptoPeriodIndex)&&this.G.length>0)for(var h of this.G)if(R===h.info.cryptoPeriodIndex){R=!0;break a}R=!1}if(!R){R=(0,g.c)();a:{h=b.cryptoPeriodIndex;if(!isNaN(h))for(K of this.X.values())if(Math.abs(K.cryptoPeriodIndex-h)<=1){var K=!0;break a}K=!1}K?(K=b.G,K=Math.max(0,Math.random()*((isNaN(K)?120:K)-30))*1E3):K=0;this.publish("log_qoe",{wvagt:`delay.${K}`,cpi:b.cryptoPeriodIndex,reqlen:this.G.length}); K<=0?I4q(this,b):(this.G.push({time:R+K,info:b}),this.Y.qa(K))}}X5(){this.G=[];super.X5()}};var Gwx=class{constructor(){({url:h,interval:R,retries:b}={});var b,R,h;this.url=h;this.interval=R;this.retries=b}};var pa2=class{constructor(b,R){this.statusCode=b;this.message=R;this.X=this.heartbeatParams=this.errorMessage=null;this.Y=[];this.G={};this.nextFairplayKeyId=null}},l4H={DRM_TRACK_TYPE_AUDIO:"AUDIO",DRM_TRACK_TYPE_SD:"SD",DRM_TRACK_TYPE_HD:"HD",DRM_TRACK_TYPE_UHD1:"UHD1"};var jpD=class extends g.N3{constructor(b,R,h="",K=!1){super();this.message=b;this.requestNumber=R;this.timer=h;this.Y=K;this.onError=this.onSuccess=null;this.G=new g.KU(5E3,2E4,.2)}};var RWK=class extends g.NU{constructor(b,R,h,K,I){super();this.videoData=b;this.QX=R;this.K=h;this.sessionId=K;this.dB=I;this.S={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.C=this.nR=!1;this.X=null;this.T6=[];this.V=[];this.authorizedFormats=[];this.U=[];this.D=!1;this.G={};this.status="";this.J=NaN;this.Y=b.S;this.cryptoPeriodIndex=h.cryptoPeriodIndex;b={};Object.assign(b,this.QX.G);b.cpn=this.videoData.clientPlaybackNonce;this.videoData.nR&&(b.vvt=this.videoData.nR,this.videoData.mdxEnvironment&& (b.mdx_environment=this.videoData.mdxEnvironment));this.QX.T6&&(b.authuser=this.QX.T6);this.QX.pageId&&(b.pageid=this.QX.pageId);isNaN(this.cryptoPeriodIndex)||(b.cpi=this.cryptoPeriodIndex.toString());I=(I=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.zK()))?I[1]:"";I==="ATV"&&(b.cdt=I);this.S=b;this.S.session_id=K;this.G6=!0;this.Y.flavor==="widevine"&&(this.S.hdr="1");this.Y.flavor==="playready"&&(R=Number(my(R.experiments,"playready_first_play_expiration")),!isNaN(R)&&R>=0&&(this.S.mfpe=`${R}`),this.G6= !1);R="";g.k2(this.Y)?this.Y.G()?(K=h.Y)&&(R="https://www.youtube.com/api/drm/fps?ek="+qtT(K)):(R=h.initData.subarray(4),R=new Uint16Array(R.buffer,R.byteOffset,R.byteLength/2),R=String.fromCharCode.apply(null,R).replace("skd://","https://")):R=this.Y.X;this.baseUrl=R;this.fairplayKeyId=W6(this.baseUrl,"ek")||"";if(R=W6(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(R);this.T6=h.Qn?[g.Zc(h.initData,4)]:h.X;D0(this,{sessioninit:h.cryptoPeriodIndex});this.status="in"}lB(b){if(!(this.HY()||b.size<= 0)){var R={};b.forEach((h,K)=>{const I=EJ(this.Y)?K:h;K=new Uint8Array(EJ(this.Y)?h:K);EJ(this.Y)&&kw3(K);h=g.Zc(K,4);kw3(K);K=g.Zc(K,4);this.G[h]?this.G[h].status=I:this.G[K]?this.G[K].status=I:this.G[h]={type:"",status:I};E2x(this,this.G[h].type,R)}); TvT(this,",");D0(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}}error(b,R,h,K){this.HY()||(this.publish("licenseerror",b,R,h,K),b==="drm.provision"&&(b=(Date.now()-this.J)/1E3,this.J=NaN,this.publish("ctmp","provf",{et:b.toFixed(3)})));R5(R)&&this.dispose();this.dB&&(this.dB.dispose(),this.dB=void 0)}shouldRetry(b,R){return!b&&this.requestNumber===R.requestNumber}X5(){this.G={};super.X5()}RT(){const b={ctype:this.K.contentType||"",length:this.K.initData.length, requestedKeyIds:this.T6,cryptoPeriodIndex:this.cryptoPeriodIndex};this.X&&(b.keyStatuses=this.G);return b}getInfo(){let b=this.V.join();if(Ro(this)){const R=new Set;for(const h in this.G)this.G[h].status!=="usable"&&R.add(this.G[h].type);b+=`/UKS.${Array.from(R)}`}return b+=`/${this.cryptoPeriodIndex}`}xj(){return this.url}};var s8=class extends g.N3{constructor(b,R,h,K,I,N=!1){super();this.element=b;this.K=R;this.initData=h;this.G=K;this.Y=I;this.nR=N;this.sessionId="";this.D=this.J=this.X=this.S=null;this.V=new g.Ke(this);g.n(this,this.V);YJT(this)}T6(b){if(this.S){var R=b.messageType||"license-request";this.S(new Uint8Array(b.message),R)}}lB(){this.D&&this.D(this.G.keyStatuses)}onClosed(){this.HY()||g.dj("xboxone")&&this.X&&this.X("closedShouldNotRetry")}C(b){this.S&&this.S(b.message,"license-request")}G6(b){if(this.X){if(this.Y){var R= this.Y.error.code;b=this.Y.error.systemCode}else R=b.errorCode,b=b.systemCode;this.X(`t.prefixedKeyError;c.${R};sc.${b}`,R,b)}}U(){this.J&&this.J()}update(b){if(this.G)return this.G.update(b).then(null,YI(R=>{e43(this,"t.update",R)})); this.Y?this.Y.update(b):this.element.addKey?this.element.addKey(this.K.keySystem,b,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.K.keySystem,b,this.initData,this.sessionId);return s7()}X5(){this.G&&(this.nR?this.G.close().catch(g.kJ):this.G.close());this.element=null;super.X5()}};var l_=class extends g.N3{constructor(b,R,h=!1){super();this.element=b;this.G=R;this.J=h;this.S={};this.X=null;this.V=new g.Ke(this);this.Y=this.mediaKeys=null;this.D=Promise.resolve();g.n(this,this.V)}setServerCertificate(){return this.mediaKeys.setServerCertificate?this.G.flavor==="widevine"&&this.G.zM?this.mediaKeys.setServerCertificate(this.G.zM):this.G.G()&&this.G.Oz?this.mediaKeys.setServerCertificate(this.G.Oz):null:null}createSession(b,R){let h=b.initData;if(this.G.keySystemAccess){R&&R("createsession"); const K=this.mediaKeys.createSession();JE(this.G)?h=mzT(h,this.G.Oz):this.G.G()&&(h=$zB(h)||new Uint8Array(0));R&&R("genreq");b=K.generateRequest(b.contentType,h);const I=new s8(null,null,null,K,null,this.J);b.then(()=>{R&&R("genreqsuccess")},YI(N=>{e43(I,"t.generateRequest",N)})); return I}if(nB(this.G))return xzK(this,h);if(Tw(this.G))return PgT(this,h);this.element?.generateKeyRequest?this.element.generateKeyRequest(this.G.keySystem,h):this.element?.webkitGenerateKeyRequest(this.G.keySystem,h);return this.X=new s8(this.element,this.G,h,null,null,this.J)}G6(b){const R=$i(this,b);R&&R.C(b)}U(b){const R=$i(this,b);R&&R.G6(b)}K(b){const R=$i(this,b);R&&R.U(b)}getMetrics(){let b=null;if(this.mediaKeys&&this.mediaKeys.getMetrics)try{b=this.mediaKeys.getMetrics()}catch{}return b}X5(){this.Y= this.mediaKeys=null;this.X?.dispose();for(const b of Object.values(this.S))b.dispose();this.S={};super.X5();delete this.element}};var aC=class{constructor(){this.keys=[];this.values=[]}get(b){b=this.findIndex(b);return b!==-1?this.values[b]:null}remove(b){b=this.findIndex(b);b!==-1&&(this.keys.splice(b,1),this.values.splice(b,1))}removeAll(){this.keys=[];this.values=[]}set(b,R){const h=this.findIndex(b);h!==-1?this.values[h]=R:(this.keys.push(b),this.values.push(R))}findIndex(b){return g.A3(this.keys,R=>g.Qz(b,R))}};var RDH=class extends g.NU{constructor(b,R,h,K=null,I){super();this.element=b;this.videoData=R;this.QX=h;this.mediaElement=K;this.dB=I;this.V=[];this.JX=2;this.wp=this.SY=!1;this.heartbeatParams=null;this.T6=this.G6=!1;this.S=null;this.vY=!1;this.G=this.videoData.S;this.drmSessionId=this.videoData.drmSessionId||g.xus();this.X=new Map;this.J=new aC;this.D=new aC;this.nR=new g.Ke(this);this.K=this.QX.N("html5_eme_ignore_teardown_errors");(b=this.element)&&(b.addKey||b.webkitAddKey)||Wa()||S4(h.experiments); this.QX.N("html5_enable_vp9_fairplay")&&this.G.G()?h=Qs:(h=this.videoData.Jm,h=this.G.flavor==="fairplay"||h?vM:Qs);this.U=h;this.QX.Mj().G.WY(CtH)&&this.dB?(this.dB.mediaKeys||(this.dB.mediaKeys=new l_(this.element,this.G,this.K)),this.mediaKeys=this.dB.mediaKeys):(this.mediaKeys=new l_(this.element,this.G,this.K),g.n(this,this.mediaKeys));nB(this.G)&&(this.C=new l_(this.element,this.G,this.K),g.n(this,this.C));g.n(this,this.nR);h=this.element;this.G.keySystemAccess?this.nR.j(h,"encrypted",this.CR): sO(this.nR,h,nB(this.G)?["msneedkey"]:["needkey","webkitneedkey"],this.RH);cEK(this);a:switch(b=this.G,h=this.X,b.flavor){case "fairplay":qj()>19.2999?(h=b.cX,b=b.pB,b>=h&&(b=h*.75),R=(h-b)*.5,h=new DiT(R,h,h-R-b,this)):h=null;break a;case "widevine":h=new b$K(h,this);break a;default:h=null}if(this.S=h)g.n(this,this.S),this.S.subscribe("rotated_need_key_info_ready",this.gp,this),this.S.subscribe("log_qoe",this.Y,this);S4(this.QX.experiments);this.Y({cks:this.G.getInfo()})}CR(b){this.Y({onecpt:1}); b.initData&&Xaq(this,new Uint8Array(b.initData),b.initDataType)}RH(b){this.Y({onndky:1});Xaq(this,b.initData,b.contentType)}nY(b){this.Y({onneedkeyinfo:1});this.QX.N("html5_eme_loader_sync")&&(this.D.get(b.initData)||this.D.set(b.initData,b));uoe(this,b)}gp(b){this.V.push(b);Nw(this)}createSession(b){var R=V4s(this)?qFs(b):g.Zc(b.initData);this.X.get(R);this.T6=!0;b=new RWK(this.videoData,this.QX,b,this.drmSessionId,this.dB);this.X.set(R,b);b.subscribe("ctmp",this.NJ,this);b.subscribe("keystatuseschange", this.lB,this);b.subscribe("licenseerror",this.bk,this);b.subscribe("newlicense",this.pR,this);b.subscribe("newsession",this.xZ,this);b.subscribe("sessionready",this.KR,this);b.subscribe("fairplay_next_need_key_info",this.Zr,this);this.QX.N("html5_enable_vp9_fairplay")&&b.subscribe("qualitychange",this.MJ,this);b.subscribe("sabrlicenseconstraint",this.PH,this);R=this.mediaKeys;D0(b,{createkeysession:1});b.status="gr";mv("drm_gk_s",void 0,b.videoData.G6);b.url=HB3(b);b.QX.Mj().G.WY(g2H)&&b.dB?.G&&b.dB?.licenseRequest? (b.X=b.dB.G,f4B(b,b.dB.G,b.dB,b.dB.certificate),bW(b,b.dB.licenseRequest,"license-request")):(b.X=UzT(b,R,b.dB?.certificate),g.n(b,b.X))}pR(b){this.HY()||(this.Y({onnelcswhb:1}),b&&!this.heartbeatParams&&(this.heartbeatParams=b,this.publish("heartbeatparams",b)))}xZ(){this.HY()||(this.Y({newlcssn:1}),this.V.shift(),this.T6=!1,Nw(this))}KR(){if(nB(this.G)&&(this.Y({onsnrdy:1}),this.JX--,this.JX===0)){var b=this.C;b.element?.msSetMediaKeys?.(b.Y)}}lB(b){if(!this.HY()){this.vY||(this.vY=!0,this.QX.zy()&& Cgw(this));this.Y({onksch:1});var R=this.MJ;if(!Ro(b)&&g.po&&b.Y.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var h="large";else{h=[];var K=!0;if(Ro(b))for(const N of Object.keys(b.G))b.G[N].status==="usable"&&h.push(b.G[N].type),b.G[N].status!=="unknown"&&(K=!1);if(!Ro(b)||K)h=b.V;h=WyH(h)}R.call(this,h);if(b.QX.N("html5_enable_vp9_fairplay")&&b.Y.G())var I=b.U;else{if(!Ro(b)){R={};for(I of b.V)E2x(b,I,R)}I=b.authorizedFormats}this.videoData.authorizedFormats=I;this.publish("keystatuseschange", b)}}NJ(b,R){this.HY()||this.publish("ctmp",b,R)}Zr(b,R){this.HY()||this.publish("fairplay_next_need_key_info",b,R)}bk(b,R,h,K){this.HY()||(this.videoData.N("html5_log_drm_metrics_on_error")&&Cgw(this),this.publish("licenseerror",b,R,h,K))}ZS(){return this.U}MJ(b){const R=g.I8("auto",b,!1,"l");if(this.videoData.Jm){if(this.U.equals(R))return}else if(hLe(this.U,b))return;this.U=R;this.publish("qualitychange");this.Y({updtlq:b})}PH(b){this.videoData.sabrLicenseConstraint=b}X5(){this.G.keySystemAccess&& this.element&&!this.mediaElement?.z6?.yk()&&(this.K?this.element.setMediaKeys(null).catch(g.kJ):this.element.setMediaKeys(null));this.element=null;this.V=[];for(const b of this.X.values())b.unsubscribe("ctmp",this.NJ,this),b.unsubscribe("keystatuseschange",this.lB,this),b.unsubscribe("licenseerror",this.bk,this),b.unsubscribe("newlicense",this.pR,this),b.unsubscribe("newsession",this.xZ,this),b.unsubscribe("sessionready",this.KR,this),b.unsubscribe("fairplay_next_need_key_info",this.Zr,this),this.QX.N("html5_enable_vp9_fairplay")&& b.unsubscribe("qualitychange",this.MJ,this),b.dispose();this.X.clear();this.J.removeAll();this.D.removeAll();this.heartbeatParams=null;super.X5()}RT(){const b={systemInfo:this.G.RT(),sessions:[]};for(const R of this.X.values())b.sessions.push(R.RT());return b}getInfo(){return this.X.size<=0?"no session":`${this.X.values().next().value.getInfo()}${this.S?"/KR":""}`}Y(b,R=!1){this.HY()||(ba(b),(this.QX.zy()||R)&&this.publish("ctmp","drmlog",b))}fR(){let b=void 0,R=void 0;for(const h of this.X.values())b|| (b=JET(h,"SD")),R||(R=JET(h,"AUDIO"));this.Y({sd:b,audio:R});return b==="output-restricted"||R==="output-restricted"}};var hWT=class extends g.N3{constructor(b){super();this.PY=b;this.Q4=0;this.Y=this.S=!1;this.V=0;this.uv=this.PY.L();this.videoData=this.PY.getVideoData();this.X=g.fg(this.uv.experiments,"html5_delayed_retry_count");this.G=new g.bI(()=>{this.PY.lR()},g.fg(this.uv.experiments,"html5_delayed_retry_delay_ms")); g.n(this,this.G)}FU(){return!!this.Q4}C2(){return this.Y}handleError(b){o2H(this,b);if((b.errorCode!=="html5.invalidstate"&&b.errorCode!=="fmt.unplayable"&&b.errorCode!=="fmt.unparseable"||!p_(this,b.errorCode,b.details))&&!RJK(this,b)&&!hJw(this)){if(this.uv.G6!=="yt"&&btq(this,b)&&this.videoData.K0&&(0,g.c)()/1E3>this.videoData.K0&&B0(this.videoData)){var R=Object.assign({e:b.errorCode},b.details);R.stalesigexp="1";R.expire=Math.round(this.videoData.K0*1E3);R.init=Math.round(this.videoData.Ti); R.now=Math.round((0,g.c)());b=new g.hz(b.errorCode,R,2);this.PY.ij(b.errorCode,2,"SIGNATURE_EXPIRED",ba(b.details))}if(R5(b.severity)){R=this.PY.loader?.K0();let K;if(this.uv.N("html5_use_network_error_code_enums"))if(Dzx(b)&&R&&R.isLocked())var h="FORMAT_UNAVAILABLE";else this.uv.J||b.errorCode!=="auth"||b.details.rc!==429?b.errorCode==="ump.spsrejectfailure"&&(h="HTML5_SPS_UMP_STATUS_REJECTED"):(h="TOO_MANY_REQUESTS",K="6");else Dzx(b)&&R&&R.isLocked()?h="FORMAT_UNAVAILABLE":this.uv.J||b.errorCode!== "auth"||b.details.rc!=="429"?b.errorCode==="ump.spsrejectfailure"&&(h="HTML5_SPS_UMP_STATUS_REJECTED"):(h="TOO_MANY_REQUESTS",K="6");this.PY.ij(b.errorCode,b.severity,h,ba(b.details),K)}else this.PY.publish("nonfatalerror",b),h=/^pp/.test(this.videoData.clientPlaybackNonce),this.n5(b.errorCode,b.details),h&&b.errorCode==="manifest.net.connect"&&(b=`https://www.youtube.com/generate_204?cpn=${this.videoData.clientPlaybackNonce}&t=${(0,g.c)()}`,Pr(b,"manifest",K=>{this.YZ("pathprobe",K)},K=>{this.n5(K.errorCode, K.details)}))}}YZ(b,R){this.PY.bl.YZ(b,R)}n5(b,R){R=ba(R); this.PY.bl.n5(b,R)}};var iH=class{constructor(b,R,h,K,I){this.G=b;this.reason=R;this.Y=h;this.source=K;this.token=I}};var Kmx=class{constructor(b,R,h,K){this.QX=b;this.vB=R;this.PY=h;this.g2=K;this.K=this.J=this.G=this.V=this.D=this.Y=0;this.S=!1;this.U=g.fg(this.QX.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.X=new Map}Uf(b){const R=KgT(this);if(!b)return{jg:vM,zC:vM,Ey:vM,OI:vM,Lf:vM,wb:vM,tQ:R};let h=vM;if(pC(R)||this.N("html5_perf_cap_override_sticky"))h=qw(this,b);return{jg:h,zC:ILs(this,b),Ey:s4w(this,b),OI:BM(this,b.videoData),Lf:HM(this,b.videoData,b),wb:f_(this,b),tQ:R}}NE(b){if(g.hB(this.QX)&& j9(this.QX.S,FJ.HEIGHT))var R=b.G.videoInfos[0].video.qualityOrdinal;else{var h=this.E5(b.G.G());dw(b.videoData)||Zr(b.videoData);b=b.G.videoInfos;if(b.length){var K=.85,I=b[0].video;I.projectionType!=="MESH"&&I.projectionType!=="EQUIRECTANGULAR"&&I.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||d6||(K=.45);I=g.fg(this.QX.experiments,"html5_viewport_undersend_maximum");for(let N=0;N{this.Z2()}}; this.Z2=()=>{this.jsErrorCount++}; g.n(this,this.delay);window.addEventListener("error",this.Z2);window.addEventListener("unhandledrejection",this.Z2)}Al(){const b=g.Sk(this.provider);this.G<0&&(this.G=b,this.delay.start());this.V=this.Y=b}onError(b){if(b!=="player.fatalexception"||this.provider.N("html5_exception_to_health"))b==="sabr.fallback"&&(this.encounteredSabrFallback=!0),b.match(s3w)?this.networkErrorCount++:this.nonNetworkErrorCount++}send(){if(!(this.X||this.G<0)){dHH(this);var b=g.Sk(this.provider)-this.G,R="PLAYER_PLAYBACK_STATE_UNKNOWN", h=this.playerState.gt;this.playerState.isError()?R=h&&h.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":this.playerState.G(2)?R="PLAYER_PLAYBACK_STATE_ENDED":this.playerState.G(64)?R="PLAYER_PLAYBACK_STATE_UNSTARTED":this.playerState.G(16)||this.playerState.G(32)?R="PLAYER_PLAYBACK_STATE_SEEKING":this.playerState.G(1)&&this.playerState.G(4)?R="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":this.playerState.G(1)?R="PLAYER_PLAYBACK_STATE_BUFFERING":this.playerState.G(4)?R= "PLAYER_PLAYBACK_STATE_PAUSED":this.playerState.G(8)&&(R="PLAYER_PLAYBACK_STATE_PLAYING");h=VEB[EN(this.provider.videoData)];a:switch(this.provider.QX.playerCanaryState){case "canary":var K="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":K="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:K="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var I=Htx(this.provider),N=this.Y<0?b:this.Y-this.G;b=this.provider.QX.vD+36E5<(0,g.c)();R={started:this.Y>=0,stateAtSend:R,joinLatencySecs:N,jsErrorCount:this.jsErrorCount, playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:K,playerCanaryStage:I,isAd:this.provider.videoData.isAd(),liveMode:h,hasDrm:!!g.SJ(this.provider.videoData),isGapless:this.provider.videoData.D,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai,encounteredSabrFallback:this.encounteredSabrFallback,isSabr:ve(this.provider.videoData)}; b||g.yp("html5PlayerHealthEvent",R);this.X=!0;this.dispose()}}X5(){this.X||this.send();window.removeEventListener("error",this.Z2);window.removeEventListener("unhandledrejection",this.Z2);super.X5()}},s3w=/\bnet\b/;var Ihq=class{constructor(b){this.provider=b;this.K=!1;this.Y=0;this.V=-1;this.yG=NaN;this.X=0;this.segments=[];this.D=this.J=0;this.previouslyEnded=!1;this.S=0;this.A8=this.fm=void 0;this.w2={ZTY:()=>this.fm, o4e:()=>this.A8}; this.G6=this.provider.PY.getVolume();this.U=this.provider.PY.isMuted()?1:0;this.G=ts(this.provider)}update(){if(this.K){var b=this.mH()||0,R=g.Sk(this.provider);b>=this.provider.PY.getDuration()-.1&&(this.previouslyEnded=!0);if(b!==this.Y||j4e(this,b,R)){var h;if(!(h=bR-this.yG+2||j4e(this,b,R))){{h=this.provider.PY.getVolume();const K=h!==this.G6,I=this.provider.PY.isMuted()?1:0;I!==this.U?(this.U=I,h=!0):(!K||this.V>=0||(this.G6=h,this.V=R),h=R-this.V,this.V>=0&&h>2?(this.V=-1, h=!0):h=!1)}}h&&(jh(this),this.X=b);this.yG=R;this.Y=b}}}mH(){const b=this.provider.PY.mH();return yy(this.provider.videoData)?b+this.provider.PY.Kz():b}};var grK=class{constructor(b,R,h,K){this.QX=R;this.Zl=h;this.segments=[];this.experimentIds=[];this.Zr=this.Ty=this.isFinal=this.delayThresholdMet=this.CR=this.pz=this.autoplay=this.autonav=!1;this.Sn="yt";this.J=[];this.D=this.U=null;this.PH=this.sendVisitorIdHeader=this.pR=!1;this.K=this.pageId="";this.m_=!1;this.S=h==="watchtime";this.X=h==="playback";this.T6=h==="atr";this.wi=h==="engage";this.sendVisitorIdHeader=!1;this.uri=this.T6?`/api/stats/${h}`:"//"+R.YM+"/api/stats/"+h;K&&(this.Ty=K.fs, K.rtn&&(this.D=K.rtn),this.S?(this.playerState=K.state,K.rti>0&&(this.U=K.rti)):(this.gB=K.mos,this.vO=K.volume,K.at&&(this.adType=K.at)),K.autonav&&(this.autonav=K.autonav),K.inview!=null&&(this.EW=K.inview),K.size&&(this.FM=K.size),K.playerwidth&&(this.K0=K.playerwidth),K.playerheight&&(this.HR=K.playerheight));this.SK=g.$T(R.G);this.K=my(R.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.K==="all"||this.K==="once")this.RH=g.$T(R.RH);this.s8=R.gB;this.experimentIds=m02(R.experiments); this.NJ=R.m_;this.Sn=R.G6;this.region=R.region;this.userAge=R.userAge;this.KR=R.BI;this.Ys=i$();this.sendVisitorIdHeader=R.sendVisitorIdHeader;this.MJ=R.N("vss_pings_using_networkless")||R.N("kevlar_woffle");this.vD=R.N("vss_final_ping_send_and_write");this.gp=R.N("vss_use_send_and_write");this.pageId=R.pageId;this.K5=R.N("vss_playback_use_send_and_write");R.livingRoomAppMode&&(this.livingRoomAppMode=R.livingRoomAppMode);g.Fo(R)&&(this.vY=R.MJ);g.xE(g.bv(R))&&this.J.push(1);this.accessToken=b.J(); b.e$[this.Zl]?this.V=b.e$[this.Zl]:b.e$.playback&&(this.V=b.e$.playback);this.adFormat=b.adFormat;this.adQueryId=b.adQueryId;this.autoplay=Mbx(b);this.X&&(this.pz=b.qn&&xK(b)==="adunit"?!0:!1);this.autonav=b.isAutonav||this.autonav;this.contentVideoId=w6(b);this.clientPlaybackNonce=b.clientPlaybackNonce;this.CR=b.C0;b.g3&&(this.C=b.g3,this.fR=b.SR);b.mdxEnvironment&&(this.mdxEnvironment=b.mdxEnvironment);this.G=b.Ty;this.eb=b.eb;b.Y&&(this.hc=b.Y.itag,b.V&&b.V.itag!==this.hc&&(this.wp=b.V.itag)); b.G&&vC(b.G)&&(this.offlineDownloadUserChoice="1");this.eventLabel=xK(b);this.Zr=b.pz?!1:b.jn;this.Kh=b.Ge;if(R=EN(b))this.wB=R;this.ri=b.YM;this.partnerId=b.partnerId;this.eventId=b.eventId;this.playlistId=b.dg||b.playlistId;this.zL=b.zL;this.wR=b.wR;this.Nf=b.Nf;this.i7=b.i7;this.subscribed=b.subscribed;this.videoId=b.videoId;this.videoMetadata=b.videoMetadata;this.visitorData=b.visitorData;this.osid=b.osid;this.ER=b.ER;this.referrer=b.referrer;this.Mh=b.yz||b.Mh;this.xZ=b.sE;this.oN=b.oN;this.userGenderAge= b.userGenderAge;this.Bm=b.Bm;this.embedsRct=b.embedsRct;this.embedsRctn=b.embedsRctn;g.Fo(this.QX)&&b.mutedAutoplay&&(b.mutedAutoplayDurationMode===2&&b.limitedPlaybackDurationInSeconds===0&&b.endSeconds===0?this.J.push(7):this.J.push(2));b.isEmbedsShortsMode(new g.ru(this.K0,this.HR),!!this.playlistId)&&this.J.push(3);g.X8(b)&&this.J.push(4);this.JX=b.U0;b.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=b.compositeLiveIngestionOffsetToken);this.heartbeatLoggingToken=b.heartbeatLoggingToken; b=b.getPlayerResponse();this.m_=this.QX.N("html5_switch_vss_to_post")||!!b?.playerConfig?.vssClientConfig?.vssUsePostRequest}send(b){if(!this.pR){var R=hy(this),h=g.z9(this.uri,R);this.QX.N("vss_through_gel_double")&&AnH(h);this.T6&&!this.QX.N("html5_simplify_pings")?itT(this,h):As(this,b).then(K=>{if(this.m_){K=K||{};K.method="POST";const I=zJT(this);I&&(K.postParams={form_data:I})}this.T6&&(K=K||{},K.method="POST",K.postParams={atr:this.attestationResponse});io(h,K,{token:this.C,Fw:this.fR,mdxEnvironment:this.mdxEnvironment}, this.QX,b,this.MJ,this.isFinal&&this.vD||this.gp||this.X&&this.K5)}); this.pR=!0}}Y(b){b===void 0&&(b=NaN);return Number(b.toFixed(3)).toString()}},tOe={LIVING_ROOM_APP_MODE_UNSPECIFIED:0,LIVING_ROOM_APP_MODE_MAIN:1,LIVING_ROOM_APP_MODE_KIDS:2,LIVING_ROOM_APP_MODE_MUSIC:3,LIVING_ROOM_APP_MODE_UNPLUGGED:4,LIVING_ROOM_APP_MODE_GAMING:5},yxP={EMBEDDED_PLAYER_MODE_UNKNOWN:0,EMBEDDED_PLAYER_MODE_DEFAULT:1,EMBEDDED_PLAYER_MODE_PFP:2,EMBEDDED_PLAYER_MODE_PFL:3};var Ots=class extends g.N3{constructor(b){super();this.provider=b;this.U="paused";this.S=NaN;this.T6=[10,10,10,40];this.MJ=this.G6=0;this.SY=this.JX=this.vY=this.gp=this.V=!1;this.X=this.Y=NaN;this.logger=new g.kp("vss");this.w2={lQ5:()=>this.G}; this.G=new Ihq(b)}Al(){if(!this.V){this.provider.videoData.FZ===16623&&g.kJ(Error("Playback for EmbedPage"));var b=iW(this,"playback");this.T6=WgB(this);ts2(this.G);b.D=zV(this);this.X>0&&(b.G-=this.X);b.send();if(this.provider.videoData.Qd){b=this.provider.QX;var R=this.provider.videoData;const h={html5:"1",video_id:R.videoId,cpn:R.clientPlaybackNonce,ei:R.eventId,ptk:R.Qd,oid:R.sK,ptchn:R.cj,pltype:R.KD,content_v:w6(R)};R.J2&&Object.assign(h,{m:R.J2});b=g.z9(b.y0+"ptracking",h);U8(this,b)}this.provider.videoData.eb|| (ErD(this),T6x(this));this.V=!0;b=this.G;b.Y=b.mH();b.yG=g.Sk(b.provider);!(b.X===0&&b.Y<5)&&b.Y-b.X>2&&(b.X=b.Y);b.K=!0}}J(){g.m8(this.S);this.S=NaN}D(){jh(this.G)}C(){this.G.update();var b=this.G;b.segments.length&&b.Y===b.X||jh(b);const R=b.segments;b.segments=[];b.S=0;return R}pR(b){var R=this.G,h=b.A8;R.fm=b.fm;R.A8=h}K(b,R=!1){const h=SwP(this,this.C());!isNaN(this.Y)&&b&&(h.U=this.Y);R&&(h.PH=!0);return h}onProgress(){this.G.update();nrK(this)&&(ErD(this),T6x(this))}nR(b){if(!this.HY())if(b.state.G(2)|| b.state.G(512)){if(this.U="paused",b.Up(2)||b.Up(512))b.Up(2)&&(this.G.previouslyEnded=!0),this.V&&(this.J(),GV(this).send(),this.Y=NaN)}else if(b.state.G(8)){this.U="playing";const R=this.V&&isNaN(this.S)?zV(this):NaN;if(!isNaN(R)&&(X3(b,64)<0||X3(b,512)<0)){const h=this.K(!1);h.D=R;h.send()}b.Up(16)&&b.state.seekSource===58&&(this.G.previouslyEnded=!0)}else this.U="paused"}X5(){super.X5();this.J();ynK(this.G)}RT(){return hy(iW(this,"playback"))}fh(b){const R=iW(this,"engage");R.nR=b;return UH2(R, kzD(this.provider))}NJ(){const b=this.G.S,R=this.provider.QX.Mj().G.WY(atw)||4E3;b>R&&this.K(!isNaN(this.Y)).send()}Zr(){this.G6=0}};var eJP=class{constructor(){this.endTime=this.startTime=-1;this.X="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.volume=this.connectionType=this.Y=0;this.muted=!1;this.G=this.clipId="-";this.previouslyEnded=!1}isEmpty(){return this.endTime===this.startTime}};var Q4K=class{constructor(b,R,h){this.videoData=b;this.QX=R;this.PY=h;this.G=void 0}N(b){return this.QX.N(b)}getCurrentTime(){return this.PY.getCurrentTime()}mH(){return this.PY.mH()}},Yws={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.vK=class extends g.N3{constructor(b){super();this.provider=b;this.X=new Map;this.p5=new g.tk;this.w2={B3v:()=>this.qoe, KHe:()=>this.G, tXY:()=>this.Y}; this.provider.videoData.Jh()&&!this.provider.videoData.cO&&(this.G=new Ots(this.provider),this.G.X=0,g.n(this,this.G),this.qoe=new g.pm(this.provider),g.n(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.mZ=this.provider.videoData.clientPlaybackNonce)&&this.X.set(this.mZ,this.G));if(b.QX.playerCanaryState==="canary"||b.QX.playerCanaryState==="holdback")this.Y=new $7s(this.provider),g.n(this,this.Y)}Al(){this.G&&this.G.Al();this.Y&&this.Y.Al()}onProgress(){if(this.provider.videoData.enableServerStitchedDai&& this.mZ)this.X.get(this.mZ)?.onProgress();else if(this.G)this.G.onProgress()}aU(b){this.qoe&&this.qoe.aU(b)}hd(b,R){this.qoe&&this.qoe.hd(b,R)}B2(){this.provider.videoData.enableServerStitchedDai&&this.mZ?this.X.get(this.mZ)?.D():this.G&&this.G.D()}n5(b,R){this.qoe&&U8e(this.qoe,b,R);if(this.Y)this.Y.onError(b)}jP(b,R){switch(b){case "M":this.qoe?.jP(b,R);break;case "A":this.qoe?.jP(b)}}onPlaybackRateChange(b){if(this.qoe)this.qoe.onPlaybackRateChange(b);this.G&&this.G.D()}YZ(b,R,h){this.qoe&&this.qoe.YZ(b, R,h)}uy(b,R,h){this.qoe&&this.qoe.uy(b,R,h)}K6(b){this.qoe?.K6(b)}Tl(b){this.qoe?.Tl(b)}gQ(b,R,h,K){this.qoe?.gQ(b,R,h,K)}wG(b){this.qoe&&this.qoe.wG(b)}Mc(b,R,h){this.qoe&&this.qoe.Mc(b,R,h)}I3(){if(this.qoe)return this.qoe.I3()}RT(){return this.provider.videoData.enableServerStitchedDai&&this.mZ?this.X.get(this.mZ)?.RT()??{}:this.G?this.G.RT():{}}FO(){return this.qoe?.FO()}Jd(b,R){this.qoe?.Jd(b,R)}fh(b){return this.G?this.G.fh(b):()=>{}}getVideoData(){return this.provider.videoData}resume(){this.qoe&& this.qoe.resume()}}; g.vK.prototype.uC=RK(49);g.vK.prototype.oB=RK(32);g.vK.prototype.IB=RK(26);g.vK.prototype.Km=RK(20);var NN3=class{constructor(){this.UU=0;this.V=this.X=this.pY=this.aQ=this.Y=NaN;this.G={};this.bandwidthEstimate=NaN}};var phw=class{constructor(){this.G=g.dt;this.array=[]}};g.BK=class extends g.N3{constructor(b,R){super();this.PY=b;this.D=R;this.X=NaN;this.S=this.J=this.started=!1;this.Y=[];this.K=new g.bI(this.sync,250,this);g.n(this,this.K);this.V=new g.bI(this.sync,0,this);g.n(this,this.V);this.G=new phw}f5(b,R){this.sync();R&&this.G.array.length>=2E3&&this.Wo("captions",1E4);R=this.G;if(b.length>1&&b.length>R.array.length)R.array=R.array.concat(b),R.array.sort(R.G);else for(const h of b)!R.array.length||R.G(h,R.array[R.array.length-1])>0?R.array.push(h):g.xz(R.array, h,R.G);this.X=NaN;this.sync()}ZU(b){b.length>1E4&&g.kJ(new g.A$("Over 10k cueRanges removal occurs with a sample: ",b[0]));if(!this.HY()){var R=new Set(b);this.Y=this.Y.filter(h=>!R.has(h)); CvT(this.G,R);this.sync()}}Xa(b){if(!this.HY()){var R=this.Vk().find(h=>h.id===void 0&&h.namespace===b); R&&this.ZU([R])}}Wo(b,R){const h=(isNaN(this.X)?MsK(this):this.X)-R;R=this.Vk().filter(K=>K.namespace===b&&K.endh.namespace===b); this.ZU(R);return R}by(b){let R=[];var h=Sh(this.G,0x7ffffffffffff);const K=[];for(const I of h)I.active&&b===I.associatedClipId&&K.push(I);R=R.concat(n_(this,K));E8(this,R);R=[];h=[];for(const I of this.Y)I.active&&I.associatedClipId===b&&I.start===0x7ffffffffffff&&h.push(I);R=R.concat(TV(this,h));E8(this,R);return K.length}u7(b){const R=Sh(this.G,0x7ffffffffffff),h=[];for(const K of R)K.active&&b===K.associatedClipId&&h.push(K);this.ZU(h)}sync(){this.S=!0;if(!this.J){for(var b=3;this.S&&b;)this.S= !1,this.J=!0,rn3(this),this.J=!1,b--;this.PY.getPlayerState().isPlaying()&&(b=VsK(this.G,this.X),!isNaN(b)&&b<0x7ffffffffffff&&(b=(b-this.X)/this.PY.getPlaybackRate(),this.V.start(b)))}}isEnded(b,R){R=this.PY.QK()*1E3-R;R=this.PY.pX()&&b.G(1)&&R<500;return b.G(2)||this.PY.L().N("html5_pseudogapless_shorts")&&R}X5(){this.Y=[];this.G.array=[];super.X5()}};g.BK.prototype.TU=RK(38);var lhK=class{constructor(b){this.QX=b;this.X=this.Y=this.mediaTime=NaN;this.V=this.G=!1;this.S=.001;g.hB(b)&&(this.S=.01)}};var Lg3=class{constructor(b,R){this.videoData=b;this.G=R}};var ahB=class{constructor(b){this.data=window.Float32Array?new Float32Array(b):Array(b);this.Y=this.G=b-1}add(b){this.G=(this.G+1)%this.data.length;this.data[this.G]=b}X(){return this.data[this.G]||0}forEach(b){for(var R=this.G+1;Rthis.G,I=R.G(8)&&R.G(16),N=this.PY.SS().isBackground()||R.isSuspended();mY(this,this.Zr,I&&!N,K,"qoe.slowseek",()=>{},"timeout"); var p=isFinite(this.G);p=I&&p&&wX2(b,this.G);var l=!h||Math.abs(h-this.G)>10,a=this.QX.N("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),v=h===0&&this.Y&&[11,10].includes(this.Y);mY(this,this.pR,p&&l&&!N&&(!a||!v),K,"qoe.slowseek",()=>{b.seekTo(this.G)},"set_cmt"); l=p&&Rc(b.w4(),this.G);var B=this.PY.loader;p=!B||B.ez();var H=()=>{b.seekTo(this.G+.001)}; mY(this,this.gp,l&&p&&!N,K,"qoe.slowseek",H,"jiggle_cmt");p=()=>this.PY.lR(); mY(this,this.vY,l&&!N,K,"qoe.slowseek",p,"new_elem");var q=y3(R);v=R.isBuffering();var d=b.w4(),t=bC(d,h),S=t>=0&&d.end(t)>h+5;l=q&&v&&S;a=this.PY.getVideoData();mY(this,this.SY,h<.002&&this.G<.002&&I&&g.hB(this.QX)&&g.ma(a)&&!N,K,"qoe.slowseek",p,"slow_seek_shorts");mY(this,this.U,a.mY()&&I&&!N&&!a.K,K,"qoe.slowseek",p,"slow_seek_gapless_shorts");mY(this,this.G6,l&&!N,q&&!v,"qoe.longrebuffer",H,"jiggle_cmt");mY(this,this.C,l&&!N,q&&!v,"qoe.longrebuffer",p,"new_elem_nnr");if(B){const Y=B.getCurrentTime(); I=b.S();I=xvx(I,Y);I=!B.isSeeking()&&h===I;mY(this,this.RH,q&&v&&I&&!N,q&&!v&&!I,"qoe.longrebuffer",()=>{b.seekTo(Y)},"seek_to_loader")}I={}; H=bC(d,Math.max(h-3.5,0));var J=H>=0&&h>d.end(H)-1.1,e=H>=0&&H+1=0&&J&&e<11;I.close2edge=J;I.gapsize=e;I.buflen=d.length;this.Y&&(I.seekSour=this.Y);mY(this,this.nR,q&&v&&!N,q&&!v,"qoe.longrebuffer",()=>{},"timeout",I); I=R.isSuspended();I=this.PY.Oj()&&!I;mY(this,this.D,I,!I,"qoe.start15s",()=>{this.PY.QA("ad")},"ads_preroll_timeout"); I=this.QX.experiments.O9("html5_use_playback_rate_in_skip_slow_ad")?this.PY.getPlaybackRate()*1E3:1E3;t=h-this.V{var Y=this.PY;const Q=Y.ac.getVideoData();(!Q||!Y.videoData.isAd()||Q.BD!==Y.getVideoData().BD)&&Y.videoData.w3||Y.ij("ad.rebuftimeout",2,"RETRYABLE_ERROR",`skipslad.vid.${Y.videoData.videoId}`)}; mY(this,this.wp,J,!J,"ad.rebuftimeout",I,"skip_slow_ad");t=H&&v&&Rc(b.w4(),h+5)&&t;mY(this,this.fR,t&&!N,!t,"ad.rebuftimeout",I,"skip_slow_ad_buf");I=R.isOrWillBePlaying()&&R.G(64)&&!N;mY(this,this.CR,I,K,"qoe.start15s",()=>{},"timeout"); B=!!B&&!B.cY&&R.isOrWillBePlaying();mY(this,this.T6,B,K,"qoe.start15s",p,"newElemMse");B=$S(d,0);d=R.G(16)||R.G(32);B=!N&&R.isOrWillBePlaying()&&v&&!d&&(R.G(64)||h===0)&&B>5;mY(this,this.NJ,B,q&&!v,"qoe.longrebuffer",()=>{this.PY.X1()},"reset_media_source"); mY(this,this.JX,B,q&&!v,"qoe.longrebuffer",p,"reset_media_element");this.V===0&&(this.J=h);B=v&&this.G===0&&h>1&&h===this.J;mY(this,this.MJ,g.ma(a)&&B,q&&!v,"qoe.slowseek",()=>{b.seekTo(0)},"reseek_after_time_jump"); N=R.isOrWillBePlaying()&&!N;S=this.PY.QK()-h<6&&!S&&this.PY.pX();mY(this,this.K,a.mY()&&N&&v&&S,q&&!v,"qoe.longrebuffer",()=>{this.PY.lR(!1,!0)},"handoff_end_long_buffer_reload"); N=this.Y===104||this.PY.Ca;R=GT(a)&&a.isAd()&&!a.K&&N&&(v||R.G(8)&&R.G(16));mY(this,this.xZ,R,K,"qoe.start15s",p,"gapless_ad_slow_start");R=GT(a)&&!a.K&&N&&l;mY(this,this.KR,R,K,"qoe.longrebuffer",p,"gapless_slow_start");this.V=h;this.S.start()}}n5(b,R,h){R=this.RT(R);R.wn=h;R.wdup=this.X[b]?"1":"0";this.PY.n5(new g.hz(b,R));this.X[b]=!0}RT(b){b=Object.assign(this.PY.RT(!0),b.RT());this.G&&(b.stt=this.G.toFixed(3));this.PY.getVideoData().isLivePlayback&&(b.ct=this.PY.getCurrentTime().toFixed(3),b.to= this.PY.Kz().toFixed(3));delete b.uga;delete b.euri;delete b.referrer;delete b.fexp;delete b.vm;return b}},QZ=class{constructor(b,R=!1){this.J=R;this.G=this.Y=this.X=this.startTimestamp=0;this.V=!1;this.S=Math.ceil(b/1E3)}reset(){this.G=this.Y=this.X=this.startTimestamp=0;this.V=!1}test(b){if(!this.S||this.Y)return!1;if(!b)return this.reset(),!1;b=(0,g.c)();if(!this.startTimestamp)this.startTimestamp=b,this.X=0;else if(this.X>=this.S)return this.Y=b,!0;this.X+=1;return!1}RT(){const b={},R=(0,g.c)(); this.startTimestamp&&(b.wsd=(R-this.startTimestamp).toFixed());this.Y&&(b.wtd=(R-this.Y).toFixed());this.G&&(b.wssd=(R-this.G).toFixed());return b}};var qS3=class extends g.N3{constructor(b){super();this.PY=b;this.K=this.G=this.loader=this.mediaElement=this.playbackData=null;this.X=0;this.S=this.nR=this.V=null;this.MJ=!1;this.RH=0;this.C=!1;this.timestampOffset=0;this.U=!0;this.NJ=0;this.pR=this.Ty=!1;this.D=0;this.KR=!1;this.vY=this.T6=0;this.QX=this.PY.L();this.videoData=this.PY.getVideoData();this.policy=new H$P;this.G6=new BNT(this.PY);this.fR=this.JX=this.SY=this.J=this.Y=NaN;this.gp=new g.bI(()=>{hu3(this,!1)},2E3); this.PH=new g.bI(()=>{ZB(this)}); this.Zr=new g.bI(()=>{IrT(this,{})}); this.CR=NaN;this.wp=new g.bI(()=>{var R=this.QX.pZ;R.G+=1E4/36E5;R.G-R.X>1/6&&(IdB(R),R.X=R.G);this.wp.start()},1E4); g.n(this,this.G6);g.n(this,this.gp);g.n(this,this.Zr);g.n(this,this.PH);g.n(this,this.wp)}setMediaElement(b){(this.mediaElement=b)?(this.mediaElement&&(this.S||this.X||!this.mediaElement.Ty()||this.seekTo(.01,{ZK:"seektimeline_setupMediaElement"})),ZB(this)):VZ(this)}getCurrentTime(b=!1){if(uW(this.PY)){if(this.N("html5_use_centralized_player_time")&&!b&&!isNaN(this.J))return this.J;if(!isNaN(this.Y))return this.Y}else{if(this.N("html5_use_centralized_player_time")&&!b&&!isNaN(this.J)&&isFinite(this.J))return this.J; if(!isNaN(this.Y)&&isFinite(this.Y))return this.Y}b=this.N("html5_use_centralized_player_time")&&this.N("html5_seek_refactor_finite_cmt");return this.mediaElement&&KaB(this)?b&&!isFinite(this.mediaElement.getCurrentTime())&&this.videoData.isLivePlayback?this.Ep():this.mediaElement.getCurrentTime()+this.timestampOffset:b&&!isFinite(this.X)&&this.videoData.isLivePlayback?this.Ep():this.X||0}B_(){return this.xZ}mH(){return this.getCurrentTime()-this.Kz()}va(){return this.G?this.G.va():Infinity}isAtLiveHead(b){if(!this.G)return!1; b===void 0&&(b=this.getCurrentTime());return O8(this.G,b)}Mn(){return!!this.G&&this.G.Mn()}seekTo(b,{Il:R=!1,Z1:h=0,eB:K=!1,l8:I=0,ZK:N="",seekSource:p,IR:l=!1,RK:a=!1,Ka:v=!1}={}){l&&(b+=this.Kz());ve(this.videoData)&&p===29&&(this.xZ=void 0);l=b=this.Ep())||!g.Jw(this.videoData),H||(B={st:B,mst:this.Ep()},this.G&&this.N("html5_high_res_seek_logging")&&(B.ht=this.G.va(),B.adft=eh(this.G)),this.PY.YZ("seeknotallowed",B)),B=H)}}if(!B)return this.V&&(this.V=null,L_(this)),g.Xp(this.getCurrentTime());B=.005;a&&this.N("html5_sabr_seek_no_shift_tolerance")&&(B=0);if(Math.abs(b- this.Y)<=B&&this.MJ)return this.S;this.N("html5_reset_rate_limiter_on_user_seek")&&this.loader?.x4();this.N("html5_reset_backoff_on_user_seek")&&this.loader?.vO();N&&(B=b,this.QX.zy()&&(N={reason:N,tgt:B},this.N("html5_sabr_csdai_seek_log")&&(N.source=p),this.PY.YZ("seekreason",N)));p&&(this.G6.Y=p);this.MJ&&VZ(this);this.S||(this.S=new tn);b&&!isFinite(b)&&XM(this,!1);(v=v||l)||(v=b,v=!(this.videoData.isLivePlayback&&this.videoData.X&&!this.videoData.X.G()&&!(this.mediaElement&&this.mediaElement.X()> 0&&Hz(this.mediaElement)>0)||zT(this.videoData)&&this.f0()===this.Ep(!1)?0:isFinite(v)||!zT(this.videoData)));v||(b=PM(this,b,K));b&&!isFinite(b)&&XM(this,!1);this.N("html5_use_centralized_player_time")?this.J=b:this.Y=this.X=b;this.NJ=I;this.D=0;this.G&&baq(this.G,b,!1);K=this.PY;I=b;v={Il:R,seekSource:p};K.Vp.X=I;N=K.uf;N.mediaTime=I;N.G=!0;v.Il&&K.BB(v);v=I>K.videoData.endSeconds&&I>K.videoData.limitedPlaybackDurationInSeconds;K.gx&&v&&isFinite(I)&&$n(K);I0&&bR.start&&$n(this.PY);return this.S}Ep(b){return this.videoData.isLivePlayback?this.videoData.MJ()&&this.mediaElement?.isPaused()&&this.videoData.G?(b=this.getCurrentTime(),w5q(this.hh(b)*1E3)+b):this.N("html5_sabr_parse_live_metadata_playback_boundaries")&&ve(this.videoData)&&this.videoData.G?b?this.videoData.G.T6||0:this.videoData.G.QL|| 0:zT(this.videoData)&&this.videoData.pm&&this.videoData.G?this.videoData.G.Ep()+this.timestampOffset:this.videoData.X&&this.videoData.X.G()?!b&&this.G?this.G.va():this.PY.videoData.Ep()+this.timestampOffset:this.mediaElement?tN()?w5q(this.mediaElement.vY().getTime()):Hz(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset:this.PY.videoData.Ep()}f0(){if(this.N("html5_sabr_parse_live_metadata_playback_boundaries")&&ve(this.videoData))return this.videoData.G?.Ja||0;const b= this.videoData?this.videoData.f0()+this.timestampOffset:this.timestampOffset;if(this.videoData.MJ()&&this.videoData.G){var R=Number(this.videoData.progressBarStartPosition?.utcTimeMillis)/1E3;if(!isNaN(R)&&(R=this.sj(R),!isNaN(R)))return Math.max(b,R)}return b}LL(){this.S||this.seekTo(this.X,{ZK:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}wl(){return this.MJ&&!isFinite(this.Y)}X5(){C_(this,null);this.G6.dispose();super.X5()}RT(){const b={};this.loader&&Object.assign(b, this.loader.RT());this.mediaElement&&Object.assign(b,this.mediaElement.RT());return b}c6(b){this.timestampOffset=b}getStreamTimeOffset(){return zT(this.videoData)?0:this.videoData.G?this.videoData.G.getStreamTimeOffset():0}Kz(){return this.timestampOffset}hh(b){return this.videoData&&this.videoData.G?this.videoData.G.hh(b-this.timestampOffset):NaN}oK(){if(!this.mediaElement)return 0;if(kK(this.videoData)){var b=this.mediaElement,R=b.w4();b=(sK(R)&&b.getDuration()?R.end(R.length-1):0)+this.timestampOffset- this.f0();R=this.Ep()-this.f0();return Math.max(0,Math.min(1,b/R))}return this.mediaElement.oK()}Fc(b){this.K&&(this.K.G=b)}yZ(b,R,h){this.PY.YZ("requestUtcSeek",{time:b});ve(this.videoData)&&(this.xZ=b);this.loader?.yZ(b,h);R&&(this.T6=R)}wK(b){ve(this.videoData)&&(this.xZ=void 0);this.T6?(this.PY.YZ("utcSeekingFallback",{source:"streamTime",timeSeconds:this.T6}),this.PY.seekTo(this.T6,{ZK:"utcSeekingFallback_streamTime"}),this.T6=0):(b=this.sj(b),isNaN(b)||(this.PY.YZ("utcSeekingFallback",{source:"estimate", timeSeconds:b}),this.PY.seekTo(b,{ZK:"utcSeekingFallback_estimate"})))}Bn(){this.T6=0}T0(b){this.vY=b}sj(b){const R=this.getCurrentTime();if(isNaN(R))return NaN;const h=this.hh(R);return isNaN(h)?NaN:b-(h-R)}N(b){return this.QX&&this.QX.N(b)}},H$P=class{};var ydT=class extends g.N3{constructor(b){super();this.X=b;this.G=new Map;this.Y=new g.bI(this.sample,250,this);g.n(this,this.Y);this.start()}start(){this.Y.start()}stop(){this.Y.stop()}clear(){for(const b of this.G.values())b.clear()}sample(){for(const [b,R]of this.X){const h=b,K=R;this.G.has(h)||this.G.set(h,new d7T(fhe.has(h)));this.G.get(h).update(K())}this.Y.start()}},fhe=new Set(["networkactivity"]),d7T=class{constructor(b){this.Y=b;this.G=NaN;this.buffer=new ahB(100)}update(b){this.Y?(this.buffer.add(b- this.G||0),this.G=b):this.buffer.add(b)}clear(){this.buffer.clear();this.G=0}};var tNH=class{constructor(){this.finished=this.started=!1}KP(){return this.started}start(){this.started=!0}reset(){this.finished=this.started=!1}};var gKw=!1;var PPx=!1,hL=!1;g.lY=class extends g.NU{constructor(b,R,h,K,I,N,p,l,a,v=new g.dh(b),B=!0,H){super();this.QX=b;this.playerType=R;this.vH=h;this.vB=K;this.getVisibilityState=N;this.visibility=p;this.ac=l;this.g2=a;this.videoData=v;this.C_=B;this.dB=H;this.logger=new g.kp("VideoPlayer");this.Eg=null;this.sN=new aC;this.gx=null;this.zw=!0;this.cY=this.loader=null;this.Pd=[];this.Gv=new tNH;this.nT=this.d0=null;this.YQ=new tNH;this.TL=null;this.Lq=this.sC=!1;this.IE=NaN;this.m4=!1;this.playerState=new g.tk;this.MX=[]; this.AS=new g.Ke;this.mediaElement=null;this.p$=this.Jk=!1;this.zo=NaN;this.s1=!1;this.ws=0;this.rg=!1;this.L3=NaN;this.Q4=0;this.loop=!1;this.playbackRate=1;this.Hh=0;this.RW=!1;this.Xs=[];this.Nq=this.eg=0;this.a7=this.b8=!1;this.pY=this.aQ=0;this.Ca=!1;this.IX=this.Ko=this.iG=this.xO=null;this.MC=()=>{var q=this.bl;q.provider.QX.K0||q.provider.PY.getVisibilityState()===3||(q.provider.QX.K0=!0);q.B2();if(q.Y){var d=q.Y;d.S&&d.G<0&&d.provider.PY.getVisibilityState()!==3&&qww(d)}q.qoe&&(q=q.qoe,q.Zr&& q.V<0&&q.provider.QX.K0&&kLK(q),q.S&&nu(q));this.loader&&pZ(this);a7(this)}; this.w2={lB:q=>{this.lB(q)}, kzX:q=>{this.Eg=q}, XO6:()=>this.bl, Uz:()=>this.cY, Z5H:()=>this.OM, oj9:()=>this.fd, B4Y:()=>{}, L:()=>this.QX, di:()=>this.mediaElement, AUZ:q=>{this.ZB(q)}, xCv:()=>this.vB}; this.W$=new hWT(this);this.Ya=new g.bI(this.AT,15E3,this);this.MN=new ydT(new Map([["bufferhealth",()=>Mw(this.Vp)], ["bandwidth",()=>this.R9()], ["networkactivity",()=>this.g2.nR], ["livelatency",()=>this.isAtLiveHead()&&this.isPlaying()?vO(this):NaN], ["rawlivelatency",()=>vO(this)]])); this.Vp=new qS3(this);this.xi=new g.bI(this.zH,0,this);this.kK=[this.AS,this.xi,this.Ya,this.MN];this.uf=new lhK(this.QX);this.EV=new Kmx(this.QX,this.vB,this,this.g2);this.Ei=new g.BK(this,(q,d)=>{q!==g.fM("endcr")||this.playerState.G(32)||this.Ad();I(q,d,this.playerType)}); g.n(this,this.Ei);g.n(this,this.Vp);VJs(this,v);this.videoData.subscribe("dataupdated",this.jZ,this);this.videoData.subscribe("dataloaded",this.MQ,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.YZ,this);this.videoData.subscribe("ctmpstr",this.yJ,this);!this.bl||this.bl.HY();this.bl=new g.vK(new Q4K(this.videoData,this.QX,this));xFT(this.MC);this.visibility.subscribe("visibilitystatechange",this.MC);this.OM=new g.bI(this.WF,g.fg(this.QX.experiments, "html5_player_att_initial_delay_ms")||4500,this);this.fd=new g.bI(this.WF,g.fg(this.QX.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.N3=new g.RP(this.I2,350,this);g.n(this,this.N3)}X5(){g.Pg(this.IE);mFK(this.MC);this.visibility.unsubscribe("visibilitystatechange",this.MC);mHx(this.bl);g.$l(this.bl);BO(this);g.X7.wk(this.zo);this.RB();this.nT=null;g.$l(this.videoData);g.$l(this.W$);g.$l(this.OM);g.$l(this.fd);g.IZ(this.kK);this.gx=null;super.X5()}Mc(b,R,h,K,I){if(this.QX.N("html5_log_ad_playback_docid")){var N= this.bl;if(N.qoe){N=N.qoe;var p=this.QX.G6||"yt";g.Gl(N,g.Sk(N.provider),"ad_playback",[b,R,h,I,p])}}else this.bl.Mc(b,R,h);this.N("html5_log_media_perf_info")&&this.YZ("adloudness",{ld:K.toFixed(3),cpn:b})}JC(){return this.loader?.JC()}Ng(){return this.loader?.Ng()}kG(){return this.loader?.kG()}P8(){return this.loader?.P8()}OD(){return this.videoData.OD()}yk(){return this.N("html5_not_reset_media_source")&&this.videoData.isLivePlayback||this.N("html5_not_reset_media_source_non_drm_vod")&&!this.videoData.isLivePlayback&& !this.videoData.OD()&&!this.videoData.mY()}hj(){this.videoData.D&&(this.videoData.Kj=this.videoData.Kj||this.ac.E9().JC(),this.videoData.TG=this.videoData.TG||this.ac.E9().Ng());if(b4w(this.videoData)||!uP(this.videoData)){const b=this.videoData.errorDetail;this.ij(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),b,b,this.videoData.oo||void 0)}this.N("html5_generate_content_po_token")&&this.MH();this.Mr()}getVideoData(){return this.videoData}L(){return this.QX}Uf(){return this.EV.Uf(this.nT)}SS(){return this.visibility}Np(){return this.mediaElement&& this.mediaElement.J()?this.mediaElement.hO():null}di(){return this.mediaElement}uY(){if(this.videoData.errorCode)return!1;this.L().J&&this.L().houseBrandUserStatus&&this.YZ("hbut",{status:this.L().houseBrandUserStatus},!0);if(this.videoData.Jh())return!0;this.ij("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}J1(b=!1){b||WM(this.bl);this.sC=b;!this.uY()||this.Gv.KP()?fZ(this)&&this.Gv.KP()&&!this.Gv.finished&&!this.sC&&this.MQ():(this.Gv.start(),b=this.bl,g.Sk(b.provider),b.qoe&&SP2(b.qoe), b.provider.QX.Mj().G.WY(ltT)&&g.dj("cobalt")&&g.dj("android")&&(b=b.provider.videoData.clientPlaybackNonce)&&AUB(b),this.MQ())}MQ(){if(this.videoData.isLoaded()){var b=this.W$;g.fg(b.uv.experiments,"html5_player_min_build_cl")>0&&g.fg(b.uv.experiments,"html5_player_min_build_cl")>868418280&&lW(b,"oldplayer",!0);LaT(this)}else this.videoData.Ys||this.videoData.CN?this.sC&&fZ(this)||(this.videoData.Ys?eCx(this.videoData):(b=this.bl,b.qoe&&(b=b.qoe,Tl(b,"protected"),b.provider.videoData.S?b.m_():b.provider.videoData.subscribe("dataloaded", b.m_,b)),nbT(this.videoData))):!this.videoData.loading&&this.C_&&w0T(this)}GP(b){this.xO=b;this.loader&&(bBT(this.loader,b),this.YZ("sdai",{sdsstm:1}))}cK(b,R,h){this.loader?.cK(b,R,h)}Vb(b){this.loader?.Vb(b)}xg(){return this.loader?.Qi()||null}isFullscreen(){return this.visibility.isFullscreen()}isBackground(){return this.visibility.isBackground()}Ji(){HO(this).then(()=>lH(this)); this.playerState.isOrWillBePlaying()&&this.playVideo()}S8(){this.mediaElement&&this.mediaElement.activate();this.J1();this.uY()&&!this.playerState.G(128)&&(this.YQ.KP()||(this.YQ.start(),this.videoData.FM?this.n0(iC(this.playerState,4)):this.n0(iC(iC(this.playerState,8),1))),dY(this))}Qa(){return this.Gv.finished}sendAbandonmentPing(){this.getPlayerState().G(128)||(this.publish("internalAbandon"),this.WF(!0),mHx(this.bl),g.$l(this.bl),g.X7.wk(this.zo))}Ad(b=!0,R=!0,h){R&&this.mediaElement&&this.mediaElement.pause(); b&&h&&this.loader&&zT(this.videoData)&&this.loader.gQ(h);this.n0(b?new g.tk(14):new g.tk)}DW(){this.bl.B2()}ij(b,R,h,K,I,N){let p,l;g.FH(etB,h)?p=h:h?l=h:p="GENERIC_WITHOUT_LINK";K=(K||"")+`;a6s.${BF()}`;if(b==="auth"||b==="drm.auth"||b==="heartbeat.stop")h&&(K+=`;r.${h.replaceAll(" ","_")}`),N&&(K+=`sr.${N.replaceAll(" ","_")}`);R={errorCode:b,errorDetail:I,errorMessage:l||g.ZS[p]||"",iL:p,oo:N||"",ra:K,Zc:R,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=b;qb(this,"dataloaderror"); this.n0(jr(this.playerState,128,R));g.X7.wk(this.zo);BO(this);this.Jb()}QA(b){this.Pd=this.Pd.filter(R=>b!==R); this.YQ.KP()&&dY(this)}PM(){var b;(b=!!this.Pd.length)||(b=this.Ei.G.array[0],b=!!b&&b.start<=-0x8000000000000);return b}Mn(){return this.Vp.Mn()}isPlaying(){return this.playerState.isPlaying()}bW(){return this.playerState.bW()&&this.videoData.FM}getPlayerState(){return this.playerState}MM(b){this.loader?.MM(b)}Xb(b){this.loader?.Xb(b)}getPlayerType(){return this.playerType}getPreferredQuality(){if(this.nT){var b=this.nT;b=b.videoData.bC.compose(b.videoData.o3);b=a8(b)}else b="auto";return b}isGapless(){return!!this.mediaElement&& this.mediaElement.isView()}GI(){return this.ac.GI()}setMediaElement(b){if(this.mediaElement&&b.hO()===this.mediaElement.hO()&&(b.isView()||this.mediaElement.isView())){if(b.isView()||!this.mediaElement.isView())this.WP(),this.mediaElement=b,this.mediaElement.z6=this,IRx(this),this.Vp.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.RB();if(!this.playerState.isError()){let R=zh(this.playerState,512);R.G(8)&&!R.G(2)&&(R=iC(R,1));b.isView()&&(R=zh(R,64));this.n0(R)}this.mediaElement=b; this.mediaElement.z6=this;!g.hB(this.QX)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);IRx(this);this.Vp.setMediaElement(this.mediaElement);this.N("html5_prewarm_media_source")&&!this.W$.FU()&&MIT(this.mediaElement)}}RB(b=!1,R=!1,h=!1){if(this.mediaElement){var K=this.getCurrentTime();K>0&&(this.Vp.X=K);this.Vp.setMediaElement(null);!b&&this.yk()?CP3(this):this.HK(h);this.loader&&(Na(this.loader),this.loader?.T6(R));this.Ya.stop();if(this.mediaElement&& (!this.YQ.KP()&&!this.Oj()||this.playerState.isError()||this.playerState.G(2)||this.n0(iC(this.playerState,512)),this.mediaElement)){this.WP();if(b||!this.mediaElement.isView())this.vH.z9("mesv_s"),this.mediaElement.stopVideo(),sA(this);this.mediaElement=this.mediaElement.z6=null}}}async playVideo(b=!1,R=!1){var h=window.google_image_requests;h&&h.length>10&&(window.google_image_requests=h.slice(-10));if(!this.playerState.G(128))if(this.W$.C2())this.publish("signatureexpired");else if(this.mediaElement&& WM(this.bl),this.S8(),(this.playerState.G(64)||b)&&this.n0(iC(this.playerState,8)),this.YQ.finished&&this.mediaElement){if(!this.nT&&this.d0&&(await this.d0,this.playerState.G(128)))return;if(this.videoData.X){if(this.R0()&&this.videoData.X.G())return HO(this);if(uW(this))b=this.Vp,Aw(b.videoData)&&!b.isAtLiveHead(b.getCurrentTime())&&b.Mn()&&b.PY.seekTo(Infinity,{ZK:"seektimeline_peggedToLive",seekSource:34});else if(Aw(this.videoData)){b=this.getCurrentTime()h.video)?.sort((h,K)=>(K.X??0)-(h.X??0)); this.bl.jP("M",R?.[0]?.X??(EdD(b.G)?b.G:0))}}zl(b,R,h){this.jP(b);this.videoData.bC=b;if(this.nT&&R){R=this.EV;var K=this.nT;if(K.G.G()){var I=g.fg(R.QX.experiments,"html5_max_quality_sel_upgrade"),N=I?b.G:g.m6[a8(b)],p=K.G.videoInfos[0].video.qualityOrdinal,l=p!==0&&b.G===p;p=wn()>p;l&&p||(I&&l&&(N=Math.max(N,I)),I=d7(R,K.G?.videoInfos),l=R.PY.getPlaybackRate(),l>1&&I&&(I=cJe(R.QX.S,K.G.videoInfos,l),b.G!==0&&I=480,R.N("html5_perf_cap_override_sticky")&&zFD(R.X,R.N("html5_perserve_av1_perf_cap")))}}this.loader&&(b=this.loader,h=h||"",b.policy.G?JH(b.S.G,h):JH(b.G.S,h));this.Oh()}getUserPlaybackQualityPreference(){return this.videoData.X&&!this.videoData.X.G()?a8(this.videoData.bC):l9[wn()]}hasSupportedAudio51Tracks(){return this.videoData.hasSupportedAudio51Tracks()}setUserAudio51Preference(b,R){this.getUserAudio51Preference()!==b&&(this.YZ("toggle51",{pref:b}),g.Iz("yt-player-audio51", b,R?31536E3:2592E3),this.Ji())}getUserAudio51Preference(){return this.videoData.getUserAudio51Preference()}setProximaLatencyPreference(b){const R=this.getProximaLatencyPreference();this.YZ("proxima",{pref:b});g.Iz("yt-player-proxima-pref",b,31536E3);R!==b&&(b=this.Vp,b.KR=!0,b.PY.seekTo(Infinity,{ZK:"seektimeline_proximaSeekToHead",seekSource:34}))}getProximaLatencyPreference(){return FW()??0}isProximaLatencyEligible(){return this.videoData.isProximaLatencyEligible}MH(){this.videoData.videoId?this.ac.MH(this.videoData): this.YZ("povid",{})}Mr(){this.videoData.videoId?this.ac.Mr(this.videoData):this.YZ("piavid",{})}Oh(){if(!this.HY()&&!this.playerState.G(128)&&this.videoData.X){if(this.videoData.X.G())pZ(this);else{const K=Nb(this);var b=this.videoData;a:{var R=K;var h=this.videoData.fR;if(R.G){for(const I of h){const N=I.getInfo(),p=g.m6[N.video.quality];if((!R.X||N.video.quality!=="auto")&&p<=R.G){R=I;break a}}R=h[h.length-1]}else R=h[0]}b.gp=R;KZ(this,K.reason,lRK(this,this.videoData.gp))}if(this.N("html5_check_unstarted")? this.playerState.isOrWillBePlaying():this.isPlaying())this.Vp.U=!1,this.playVideo()}}Xz(b,R){if(this.HY()||this.playerState.G(128))return!1;var h=!!this.videoData.X?.G(),K=h&&R?this.getCurrentTime()-this.Kz():NaN;if(b.Nj&&b.Nj.id){var I=this.bl;if(I.qoe){I=I.qoe;const p=[b.Nj.id,isNaN(K)?"m":"t"];g.Gl(I,g.Sk(I.provider),"afi",p)}}if(h){if(R){var N=Mw(this.Vp);this.YZ("aswh",{id:b.id,xtags:b.xtags,bh:N.toFixed(3)})}this.loader.setAudioTrack(b,K,R);return!0}if(vu2(this)){a:{N=this.mediaElement.audioTracks(); R=!1;for(K=0;K{try{yTB(this,I,R,h)}catch(N){g.kJ(N),this.handleError(new g.hz("fmt.unplayable",{msi:"1",ename:N&&typeof N==="object"&&"name"in N?String(N.name):void 0,trg:"setmediasrc"},1))}}; this.yk()&&this.cY.X()==="open"?b(this.cY):PIK(this.cY,b)}nY(b){this.sN.set(b.initData,b);this.Eg&&(this.Eg.nY(b),this.N("html5_eme_loader_sync")||this.sN.remove(b.initData))}bx(b){this.videoData.Z5=g.I8("auto",b,!1,"u");pZ(this)}Fc(b){var R=b.reason,h=b.G.info,K=b.source,I=b.token,N=this.bl;const p=this.videoData;if(h!==p.V){var l=!p.V;p.V=h;var a=R==="m"||R==="t";a||(R=l?"i":"a");this.QX.experiments.O9("html5_refactor_sabr_audio_format_selection_logging")?this.iG=new iH(h,R,"",K,I):(R=new iH(h, R,"",K,I),N.qoe&&(N=N.qoe,h=g.Sk(N.provider),JU2(N,h,R)));this.publish("internalaudioformatchange",p,!l&&a)}this.Lh();this.Vp.Fc(b.G.index)}JB(b){this.publish("localmediachange",b)}F1(b={}){this.loader?.F1(this.QX,fa(this.videoData),b)}C2(){return this.W$.C2()}qX(b){this.n5(new g.hz("staleconfig",{reason:b}))}handleError(b){this.W$.handleError(b)}FU(){return this.W$.FU()}wK(b){this.Vp.wK(b)}async lR(b=!1,R=!1){this.loader&&this.loader.Zt();this.loader&&this.loader.HY()&&BO(this);this.N("html5_enable_vp9_fairplay")&& this.OD()&&this.videoData.G?.PH();this.n0(iC(this.playerState,2048));this.publish("newelementrequired");b&&await HO(this);this.videoData.AO()&&this.loader?.MJ&&!uW(this)&&(this.isAtLiveHead()&&Aw(this.videoData)?this.seekTo(Infinity,{ZK:"videoPlayer_getNewElement"}):this.videoData.VB&&this.loader&&(b=this.loader,b.oH.AO&&(b.oH.VB||b.oH.K||b.oH.isPremiere?(b.seek(0,{ZK:"loader_resetSqless"}),b.videoTrack.J=!0,b.audioTrack.J=!0,b.videoTrack.V=!0,b.audioTrack.V=!0):va(b.oH)&&Tb(b))));R&&this.seekTo(0, {seekSource:105});this.playerState.G(8)&&this.playVideo()}z2(b){this.YZ("hgte",{ne:+b});this.videoData.D=!1;b&&this.lR();this.loader&&ZOx(this.loader)}M9(b){this.YZ("newelem",{r:b});this.lR()}pauseVideo(b=!1){if((this.playerState.G(64)||this.playerState.G(2))&&!b)if(this.playerState.G(8))this.n0(UK(this.playerState,4,8));else if(this.bW())lH(this);else return;this.playerState.G(128)||(b?this.n0(iC(this.playerState,256)):this.n0(UK(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause(); g.Jw(this.videoData)&&this.loader&&this.loader?.T6(!1)}stopVideo(){this.pauseVideo();this.loader&&(this.loader?.T6(!1),this.loader.o8())}Jb(b=!1,R=!1){this.yk()&&R?this.mediaElement?.Jb():this.mediaElement?.stopVideo();sA(this);BO(this);this.playerState.G(128)||(b?this.n0(zh(zh(iC(this.playerState,4),8),16)):this.n0(jr(this.playerState)));this.videoData.videoId&&this.QX.SY.remove(this.videoData.videoId)}seekTo(b,R={}){this.playerState.G(2)&&lH(this);R.IPZ&&this.n0(iC(this.playerState,2048));if((R.seekSource=== 58||R.seekSource===60)&&this.N("html5_update_vss_during_gapless_seeking")){var h=this.bl;h.G&&(h=h.G,R.seekSource===58?h.G.update():h.V&&(h.J(),GV(h).send(),h.Y=NaN))}this.Vp.seekTo(b,R);this.Ei.sync()}BB(b){this.vH.V.Y=(0,g.c)();this.playerState.G(32)||(this.n0(iC(this.playerState,32,b?.seekSource)),this.playerState.G(8)&&this.pauseVideo(!0),this.publish("beginseeking"));this.FX()}SB(b){b=b?.seekSource;this.playerState.G(32)?(this.n0(UK(this.playerState,16,32,b)),this.publish("endseeking")):this.playerState.G(2)|| this.n0(iC(this.playerState,16,b));b=this.vH.V;var R=this.videoData,h=this.playerState.isPaused();if(R.clientPlaybackNonce&&!isNaN(b.G)){if(Math.random()<.01){h=h?"pbp":"pbs";const K={startTime:b.G};R.g3&&(K.cttAuthInfo={token:R.g3,videoId:R.videoId});ZC("seek",K);g.PI({clientPlaybackNonce:R.clientPlaybackNonce},"seek");isNaN(b.Y)||mv("pl_ss",b.Y,"seek");mv(h,(0,g.c)(),"seek")}b.reset()}}z_(b){this.SB(b)}qV(){this.publish("SEEK_COMPLETE")}NA(b){var R=this.ac,h=this.videoData.clientPlaybackNonce,K= this.playerType;if(b.scope===4){var I=b.type;if(I){var N=R.YO(),p=N.getVideoData().clientPlaybackNonce;K===1&&(p=h);if(K=jyT(R,p)){if(h=K.getVideoData())b.writePolicy===2&&h.sabrContextUpdates.has(I)||(b.sendByDefault&&h.vY.add(I),h.sabrContextUpdates.set(I,b)),R.N("html5_enable_t1_enf_on_sabr")&&(b=I===5,I=IwT(h.playerResponse),b?(b=I?1:0,cY(b,"m.p_",{}),aA("MBSTAT",b)):b=1,b===0&&g.rw(R.qJ,"onAbnormalityDetected"))}else N.YZ("scuset",{ncpf:"1",ccpn:p,crcpn:h})}else g.kJ(Error("b/380308491: contextUpdateType is undefined"))}}Qr(){if(this.playerType=== 2)return this.ac.Qr("")}getCurrentTime(b=!1){return this.Vp.getCurrentTime(b)}B_(){return this.Vp.B_()}mH(){return this.Vp.mH()}nJ(){return this.mH()}va(){return this.Vp.va()}getPlaylistSequenceForTime(b){return this.videoData.getPlaylistSequenceForTime(b-this.Kz())}U_(){let b=NaN;this.mediaElement&&(b=this.mediaElement.U_());return b>=0?b:this.getCurrentTime()}hh(){if(this.videoData.G?.hh)return this.videoData.G.hh(this.getCurrentTime()-this.Kz());if(this.mediaElement){var b=this.mediaElement.vY(); if(b&&(b=b.getTime(),!isNaN(b)))return b/1E3+this.getCurrentTime()}return NaN}getDuration(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.Kz():this.Ep()?this.Ep():0}B7(){const b=new NN3;if(this.loader){J5T(this.g2,b,this.QX.zy());var R=this.loader;if(R.cY&&R.cY.S&&!R.cY.r4()&&(b.UU=sg(R.videoTrack),b.Y=sg(R.audioTrack),R.policy.X)){const h=HA(R.videoTrack),K=HA(R.audioTrack),I=pw(R.cY.Y.RY(),"_",5),N=pw(R.cY.G.RY(),"_",5);Object.assign(b.G,{lvq:h,laq:K,lvb:I,lab:N})}b.bandwidthEstimate= cr(R.U);R.audioTrack.K?.flush();R.videoTrack.K?.flush()}else this.mediaElement&&(b.UU=qS(this.mediaElement));b.aQ=this.aQ;b.pY=this.pY;b.X=this.isAtLiveHead()&&this.isPlaying()?vO(this):NaN;R=this.Vp;R=R.G?eh(R.G):0;b.V=R;return b}IC(b,R){this.pY+=b;this.aQ+=R}oK(){return this.mediaElement?g.Jw(this.videoData)?1:kK(this.videoData)?this.isAtLiveHead()||this.Mn()?1:this.Vp.oK():this.mediaElement.oK():0}zW(){var b=this.MN;const R=oo(b,"bandwidth"),h=oo(b,"bufferhealth"),K=oo(b,"livelatency"),I=oo(b, "networkactivity"),N=FM(b,"bandwidth"),p=FM(b,"bufferhealth"),l=FM(b,"livelatency");b=FM(b,"networkactivity");var a=this.J3();const v=a.droppedVideoFrames;a=a.totalVideoFrames;var B=this.getCurrentTime();if(this.Eg){var H="IT/"+(this.Eg.G.getInfo()+"/"+a8(this.ZS()));H+="/"+this.Eg.getInfo()}else H="";var q=this.isGapless(),d=this.GI(),t=this.F9(),S=this.I3(),J=g.AL(this),e=this.getPlayerState().state.toString(16),Y=this.getPlaylistSequenceForTime(this.getCurrentTime());a:{var Q=0;var P="";if(this.xO){if(this.xO.De){P= "D,";break a}Q=this.xO.lY;P=this.xO.jS.substring(0,4)}Q>0?(Q=`AD${Q}, `,P&&(Q+=`${P}, `),P=Q):P=""}return{Pt:N,CM:p,currentTime:B,Kg:H,droppedVideoFrames:v,isGapless:q,GI:d,F9:t,Ie:S,a5:R,Do:h,o5:K,qd:I,bZ:l,XA:b,z8:J,fD:e,UK:Y,h6:P,totalVideoFrames:a}}RT(b=!1){const R={};if(b){Object.assign(R,this.bl.RT());this.mediaElement&&(Object.assign(R,this.mediaElement.RT()),b=this.J3(),R.dvf=b.droppedVideoFrames,R.tvf=b.totalVideoFrames);this.loader&&Object.assign(R,this.loader.RT());this.Eg&&(R.drm=JSON.stringify(this.Eg.RT())); R.state=this.playerState.state.toString(16);this.playerState.G(128)&&(R.debug_error=JSON.stringify(this.playerState.gt));this.PM()&&(R.prerolls=this.Pd.join(","));this.videoData.Zk&&(R.ismb=this.videoData.Zk);this.videoData.latencyClass!=="UNKNOWN"&&(R.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(R.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)R.is_mosaic= 1;this.videoData.cotn&&(R.is_offline=1,R.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(R.playerResponseCpn=this.videoData.playerResponseCpn);this.ac.isOrchestrationLeader()&&(R.leader=1);this.videoData.isLivePlayback&&(this.videoData.G&&Ip(this.videoData.G)&&(R.segduration=Ip(this.videoData.G)),b=this.Vp,R.lat=b.K?b.K.V.X():0,R.liveutcstart=this.videoData.liveUtcStartSeconds);R.relative_loudness=this.videoData.dG.toFixed(3);if(b=g.AL(this))R.optimal_format=b.video.qualityLabel;R.user_qual= wn();R.release_version="youtube.player.web_20260210_11_RC00"}R.debug_videoId=this.videoData.videoId;return R}addCueRange(b){this.w_([b])}removeCueRange(b){this.Ei.ZU([b])}r0(){var b=this.Ei;if(b.PY.L().N("html5_sort_cueranges_on_update")&&!(b.Vk().length<=0||b.HY())){var R=b.G;R.array.sort(R.G)}b.sync()}Wo(b,R){return this.Ei.Wo(b,R)}w_(b,R){this.Ei.f5(b,R)}L6(b){this.Ei.ZU(b)}Vk(){return this.Ei.Vk()||[]}O5(){return this.rg}R0(){return this.visibility.R0()}gW(){this.mediaElement&&this.mediaElement.gW()}jZ(){qb(this)}togglePictureInPicture(){this.mediaElement&& this.mediaElement.togglePictureInPicture()}WP(){this.AS.Y()}I2(){this.FX();this.publish("onLoadProgress",this.oK())}ZB(b){var R=b.target.E8();if(this.mediaElement&&this.mediaElement.E8()&&this.mediaElement.E8()===R){tpT(this,b.type);switch(b.type){case "error":var h=f6(this.mediaElement)||"",K=this.mediaElement.e6();if(h==="capability.changed"){this.N("html5_restart_on_capability_change")?(this.YZ("capchg",{msg:K}),this.lR(!0)):HO(this);return}if(this.mediaElement.hasError()&&p_(this.W$,h,{msg:K, trg:"elementevt"}))return;if(this.isBackground()&&this.mediaElement.Oi()===4){this.Jb();ya(this,"unplayable");return}break;case "durationchange":h=this.mediaElement.getDuration();isFinite(h)&&(!this.cY||h>0)&&h!==1&&this.Fr(h);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());h=this.Ei;h.started=!0;h.sync();this.bl.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":(this.Mj().G.WY(bN)||this.N("html5_prevent_mobile_background_play_on_event_shared"))&& a7(this,!1);jLH(this);this.publish("onLoadedMetadata");ATe(this);h=this.hh();this.videoData.ey&&(this.videoData.ey=h);break;case "loadstart":ATe(this);break;case "progress":case "suspend":this.N3.V();break;case "seeked":this.loader?.K5();break;case "playing":(this.Mj().G.WY(bN)||this.N("html5_prevent_mobile_background_play_on_event_shared"))&&a7(this,!1);this.vH.z9("plev");this.p$&&!uW(this)&&(this.p$=!1,this.isAtLiveHead()||this.seekTo(Infinity,{ZK:"videoplayer_onPlaying"}));break;case "timeupdate":(this.Mj().G.WY(bN)|| this.N("html5_prevent_mobile_background_play_on_event_shared"))&&a7(this,!1);h=this.mediaElement&&!this.mediaElement.getCurrentTime();K=this.mediaElement&&this.mediaElement.X()===0;if(h&&(!this.Jk||K))return;this.Jk=this.Jk||!!this.mediaElement.getCurrentTime();Gj(this);this.FX();if(!this.mediaElement||this.mediaElement.E8()!==R)return;this.publish("onVideoProgress",this.getCurrentTime());break;case "waiting":if(this.mediaElement.S().length>0&&this.mediaElement.w4().length===0&&this.mediaElement.getCurrentTime()> 0&&this.mediaElement.getCurrentTime()<5&&this.loader)return;break;case "resize":jLH(this);this.videoData.Y&&this.videoData.Y.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.RW&&this.playerState.G(8)&&!this.playerState.G(1024)&&this.getCurrentTime()===0&&g.x9){ya(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.E8()===R){tJq(this.Vp,b);this.publish("videoelementevent",b);R=this.playerState;K=this.uf;var I= this.mediaElement;h=this.videoData.clientPlaybackNonce;if(!R.G(128)){var N=R.state;I=I?I:b.target;var p=I.getCurrentTime();if(!R.G(64)||b.type!=="ended"&&b.type!=="pause"){var l=I.getDuration();l=I.isEnded()||p>1&&Math.abs(p-l)<1.1;var a=b.type==="pause"&&I.isEnded();p=b.type==="ended"||b.type==="waiting"||b.type==="timeupdate"&&!R.G(4)&&!Js(K,p);if(a||l&&p)I.NJ()>0&&I.E8()&&(N=14);else switch(b.type){case "error":f6(I)&&(N|=128);break;case "pause":R.G(256)?(N^=256)||(N=64):R.G(32)||R.G(2)||R.G(4)|| (N=4,R.G(1)&&R.G(8)&&(N|=1));break;case "playing":l=N;N=(N|8)&-1093;l&4?(N|=1,Ak(K,I,!0)):Js(K,I.getCurrentTime())&&(N&=-2);R.G(1)&&Ak(K,I)&&(N|=1);break;case "seeking":N|=16;R.G(8)&&(N|=1);N&=-3;break;case "seeked":N&=-17;Ak(K,I,!0);break;case "waiting":R.G(2)||(N|=1);Ak(K,I);break;case "timeupdate":l=R.G(16),a=R.G(4),(R.G(8)||l)&&!a&&Js(K,I.getCurrentTime())&&(N=8),Ak(K,I)&&(N|=1)}}K=N;N=null;K&128&&(N=b.target,a=f6(N),p=1,a?(a==="capability.changed"&&(p=2),I="GENERIC_WITHOUT_LINK",l=N.RT(),l.mediaElem= "1",l.trg="melem",/AUDIO_RENDERER/.test(N.e6())&&(I="HTML5_AUDIO_RENDERER_ERROR"),N={errorCode:a,errorMessage:g.ZS[I]||"",iL:I,ra:ba(l),Zc:p,cpn:R.gt?R.gt.cpn:""}):N=null,N&&(N.cpn=h));R=jr(R,K,N)}!this.playerState.G(1)&&R.G(1)&&gY(this,"evt"+b.type);this.n0(R)}}}QI(b){b=b.G.availability==="available";b!==this.rg&&(this.rg=b,this.publish("airplayavailabilitychange"))}PJ(){var b=(0,g.c)();const R=this.mediaElement.R0();this.YZ("airplay",{ia:R});!R&&!isNaN(this.L3)&&b-this.L3<2E3||(this.L3=b,R!==this.R0()&& (b=this.visibility,b.G!==R&&(b.G=R,b.MC()),this.YZ("airplay",{rbld:R}),this.Ji()),this.publish("airplayactivechange"))}rK(b){if(this.loader){var R=this.loader,h=R.X,K=R.getCurrentTime();const I=Date.now()-h.K;h.K=NaN;h.YZ("sdai",{adfetchdone:b,d:I});b&&!isNaN(h.J)&&h.Y!==3&&Wb(h.loader,K,h.J,h.S);h.policy.Y?h.X=NaN:h.V=NaN;G_(h,4,h.Y===3?"adfps":"adf");Na(R)}}Jz(){g.Pg(this.IE);this.Ya.stop();this.videoData.K=!0;this.QX.sE=!0;this.QX.CR=0;var b=this.W$;if(b.videoData.Y){var R=b.uv.S,h=b.videoData.Y.U9; R.X.has(h)&&(R.X.delete(h),R.G=!0)}b.G.stop();b.uv.U8=0;this.Vh();this.playerState.G(8)&&this.n0(zh(this.playerState,65));this.sC=!1;this.bl.Al();this.OM.qa();this.publish("playbackstarted");(b=g.YB("yt.scheduler.instance.clearPriorityThreshold"))?b():WL(0)}Vh(){var b=this.ac.PD(),R={};const h={};!cI("pbs",this.vH.timerName)&&gC.measure&&gC.getEntriesByName&&(gC.getEntriesByName("mark_nr")[0]?VGP("mark_nr"):VGP());b.videoId&&(R.videoId=b.videoId);b.clientPlaybackNonce&&!this.N("web_player_early_cpn")&& (R.clientPlaybackNonce=b.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(h.isPausedOnLoad=!0);h.itag=b.Y?Number(b.Y.itag):-1;b.ri&&(h.preloadType=String(this.Lq?2:1));R.liveStreamMode=VEB[EN(b)];R.playerInfo=h;this.vH.infoGel(R);if(this.loader){b=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(b.X&&(R=window.performance.getEntriesByName(b.X),R.length&&(R=R[0],b.tick("vri",R.fetchStart),b.tick("vdns",R.domainLookupEnd),b.tick("vreq",R.requestStart), b.tick("vrc",R.responseEnd))),b.Y&&(R=window.performance.getEntriesByName(b.Y),R.length&&(R=R[0],b.tick("ari",R.fetchStart),b.tick("adns",R.domainLookupEnd),b.tick("areq",R.requestStart),b.tick("arc",R.responseEnd))));b=b.ticks;for(const K in b)b.hasOwnProperty(K)&&this.vH.tick(K,b[K])}}FX(b=!1){if(this.mediaElement&&this.videoData){vKT(this.Vp,this.isPlaying());var R=this.getCurrentTime();this.loader&&(this.playerState.G(4)&&g.Jw(this.videoData)||this.playerState.G(32)&&ve(this.videoData)||R4s(this.loader, R),this.N("html5_log_centralized_player_time")&&Math.abs(this.getCurrentTime()-this.loader.KR())>10&&this.YZ("sabrSeekRefactorCmt",{cmt:this.getCurrentTime(),loaderCmt:this.loader?.KR(),bh:this.loader?.CR()},!0));R>5&&(this.Vp.X=R);var h=g.g8();h?g.X7.wk(this.zo):g.m8(this.zo);var K=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!K||this.videoData.MJ())&&!this.playerState.G(128)){const I=()=>{if(this.mediaElement&&!this.playerState.G(128)){this.QX.zy()&&tpT(this,"pfx");var N=this.getCurrentTime(); this.N("html5_buffer_underrun_transition_fix")&&(N-=this.Kz());var p=qS(this.mediaElement),l=this.playerState.G(8),a=Js(this.uf,N),v=ode(this.uf,N,(0,g.c)(),p);l&&a?this.n0(zh(this.playerState,1)):l&&v?(l=this.getDuration(),a=Aw(this.videoData),l&&Math.abs(l-N)<1.1?(this.YZ("setended",{ct:N,bh:p,dur:l,live:a}),this.mediaElement.b3()?this.seekTo(0,{ZK:"videoplayer_loop",seekSource:37}):this.Ad()):(this.playerState.isBuffering()||gY(this,"progress_fix"),this.n0(iC(this.playerState,1)))):(l&&!a&&!v&& N>0&&(l=(Date.now()-this.Q4)/1E3,a=this.getDuration(),N>a-1&&this.YZ("misspg",{t:N.toFixed(2),d:a.toFixed(2),r:l.toFixed(2),bh:p.toFixed(2)})),this.playerState.isPaused()&&this.playerState.isBuffering()&&qS(this.mediaElement)>5&&this.n0(zh(this.playerState,1)));this.FX()}}; this.mediaElement.S().length===0?this.zo=h?g.X7.Hg(I,100):g.QB(I,100):this.zo=h?g.X7.Hg(I,500):g.QB(I,500)}this.videoData.Ty=R;!b&&this.isPlaying()&&izq(this);vrq(this.EV,this.nT,this.di(),this.isBackground())&&pZ(this);this.publish("progresssync",b);K&&this.videoData.MJ()&&this.publish("onVideoProgress",this.getCurrentTime())}}zH(){this.ij("ad.rebuftimeout",2,"RETRYABLE_ERROR",`vps.${this.playerState.state.toString(16)}`)}I3(){return this.bl.I3()}R9(){return this.loader?this.loader.R9():ZR(this.g2, !0)}n0(b){if(!g.Gh(this.playerState,b)){var R=new g.n6(b,this.playerState);this.playerState=b;zDe(this);var h=!this.MX.length;this.MX.push(R);var K=this.mediaElement&&this.mediaElement.isSeeking();R.Up(1)&&this.loader&&YP2(this.loader);K=R.oldState.Y()&&!K;if(R.Up(1)&&K&&this.playerState.G(8)&&!this.playerState.G(64)&&this.loader&&(K=this.loader,K.bT=!0,K.policy.Ty&&K.cY&&K.YZ("lr_rb",{c:K.getCurrentTime(),s:K.isSeeking(),ab:pw(K.cY.G.RY()),ala:hO(K.audioTrack)?.vR(),alr:K.audioTrack.G?.vR(),vb:pw(K.cY.Y.RY()), vla:hO(K.videoTrack)?.vR(),vlr:K.videoTrack.G?.vR()}),K.a$!==0&&K.YZ("sps_rebuffer",{c:K.getCurrentTime()}),this.mediaElement&&qS(this.mediaElement)>=5)){K=this.EV;var I=this.nT;!I.videoData.Y||K.N("html5_disable_performance_downgrade")?K=!1:(Date.now()-K.D>6E4&&(K.Y=0),K.Y++,K.D=Date.now(),K.Y!==4?K=!1:(lLP(K,I.videoData.Y),K=!0));K&&pZ(this)}(K=g.fg(this.QX.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&b.G(1)&&(b.G(8)||b.G(16))?this.xi.start(K):this.xi.stop();(X3(R,8)<0||R.Up(1024))&& this.Ya.stop();!R.Up(8)||this.videoData.K||R.state.G(1024)||this.Ya.start();R.state.G(8)&&X3(R,16)<0&&!R.state.G(32)&&!R.state.G(2)&&this.playVideo();R.state.G(2)&&kK(this.videoData)&&(this.Fr(this.getCurrentTime()),this.FX(!0));R.Up(2)&&(this.WF(!0),this.QX.zy()&&this.N("html5_sabr_parse_live_metadata_playback_boundaries")&&ve(this.videoData)&&this.videoData.G&&(b={minst:`${this.videoData.G.Ja}`,cminst:`${this.videoData.G.f0()+this.Kz()}`,maxst:`${this.videoData.G.QL}`,hts:`${this.videoData.G.T6}`, cmaxst:`${this.videoData.G.Ep()+this.Kz()}`},this.YZ("sabrSeekableBoundaries",b)));R.Up(128)&&this.Jb();this.videoData.G&&this.videoData.isLivePlayback&&!this.b8&&(X3(R,8)<0?(b=this.videoData.G,b.S&&b.S.stop()):R.Up(8)&&this.videoData.G.resume());b=this.Vp;b.G6.S.qa();if(b.mediaElement)if(R.oldState.Y()&&y3(R.state)&&R.state.isBuffering()){K=b.mediaElement.getCurrentTime();I=b.mediaElement.w4();var N=b.N("manifestless_post_live_ufph")||b.N("manifestless_post_live")?bC(I,Math.max(K-3.5,0)):bC(I,K- 3.5);N>=0&&K>I.end(N)-1.1&&N+10?(I7(b.PY,b.getCurrentTime()+b.videoData.limitedPlaybackDurationInSeconds),b.pR=!0):b.videoData.isLivePlayback&&b.videoData.endSeconds>0&&(I7(b.PY,b.getCurrentTime()+b.videoData.endSeconds),b.pR=!0));b=this.bl;if(R.Up(1024)|| R.Up(512)||R.Up(4))b.Y&&(K=b.Y,K.Y>=0||(K.G=-1,K.delay.stop())),b.qoe&&(K=b.qoe,K.D||(K.V=-1));b.provider.videoData.enableServerStitchedDai&&b.mZ?b.X.get(b.mZ)?.nR(R):b.G&&b.G.nR(R);if(b.qoe){K=b.qoe;I=R.state;N=g.Sk(K.provider);var p=K.getPlayerState(I),l=N,a=I.seekSource||void 0;if(p!==K.p5){K.nR||l=10&&K.playTimeSecs<=180&&(K.G.set("qoealert",["1"]),K.KR=!0)), p!=="B"||K.p5!=="PL"&&K.p5!=="PB"||(K.isBuffering=!0),K.X=l);K.p5==="PL"&&(p==="B"||p==="S")||K.provider.QX.zy()?nu(K,l):(K.wp||p!=="PL"||(K.wp=!0,Wx(K,l,K.provider.PY.B7())),g2(K,l));p==="PL"&&K.EW.qa();var v=[p];p==="S"&&a&&v.push(`${"ss"}.${a}`);g.Gl(K,l,"vps",v);K.p5=p;K.G6=l;K.X=l;K.S=!0}l=I.gt;I.G(128)&&l&&(l.ra=l.ra||"",zAB(K,N,l.errorCode,l.Zc,l.ra));(I.G(2)||I.G(128))&&K.reportStats(N);I.isPlaying()&&!K.D&&(K.V>=0&&K.G.set("user_intent",[K.V.toString()]),K.D=!0);Ea(K)}b.Y&&(b=b.Y,dHH(b), b.playerState=R.state,b.Y>=0&&R.Up(16)&&b.seekCount++,R.state.isError()&&b.send());if(h&&!this.HY())try{for(const H of this.MX){var B=this.Ei;if(B.started&&(B.sync(),H.oldState.G(16))){R=B;const q=VsK(R.G,Math.max(R.X-2E3,0));!isNaN(q)&&q<0x7ffffffffffff&&R.V.start()}this.publish("statechange",H)}}finally{this.MX.length=0}}}Zn(){this.vH.tick("qoes")}LL(){this.Vp.LL()}bk(b,R,h,K="LICENSE"){a:{var I=this.W$;h=h.substring(0,256);let N=R5(R);b==="drm.keyerror"&&this.Eg&&this.Eg.X.keys.length>1&&I.V<96&& (b="drm.sessionlimitexhausted",N=!1);const p=I.uv.experiments.O9("html5_retry_on_drm_unavailable"),l=I.uv.experiments.O9("html5_retry_on_drm_key_error"),a=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(p&&b==="drm.unavailable"||l&&b==="drm.keyerror"&&!h.match(a))I.n5("qoe.restart",{retryOnDrmError:1,e:b,detail:h}),I.PY.lR(!0);else{if(N)if(I.videoData.Y&&I.videoData.Y.video.isHdr())ao(I,b);else{if(I.PY.ij(b,R,K,h),M4q(I,{detail:h}))break a}else I.n5(b,{detail:h});b==="drm.sessionlimitexhausted"&& (I.YZ("retrydrm",{sessionLimitExhausted:1}),I.V++,X0w(I.PY))}}}BJ(){var b=g.fg(this.QX.experiments,"html5_license_constraint_delay");const R=SP();b&&R?(b=new g.bI(()=>{this.Oh();qb(this)},b),g.n(this,b),b.start()):(this.Oh(),qb(this))}v6(b){this.publish("heartbeatparams",b)}lB(b){this.YZ("keystatuses",K_(b)); var R="auto",h=!1;this.videoData.Y&&(R=this.videoData.Y.video.quality,h=this.videoData.Y.video.isHdr());a:{switch(R){case "highres":case "hd2880":R="UHD2";break;case "hd2160":case "hd1440":R="UHD1";break;case "hd1080":case "hd720":R="HD";break;case "large":case "medium":case "small":case "light":case "tiny":R="SD";break;default:R="";break a}h&&(R+="HDR")}R=Ro(b)?hs(b,R):b.V.includes(R);if(this.N("html5_enable_vp9_fairplay")){if(h){if(!b.D){this.videoData.dK||(this.videoData.dK=!0,this.YZ("drm",{dphdr:1}), this.lR(!0));return}if(this.Eg?.G.G()?this.Eg?.fR():!R){this.YZ("drm",{dshdr:1});ao(this.W$);return}}if(this.Eg?.G.G())return}else{const K=b.D&&R;if(h&&!K){ao(this.W$);return}}if(h=!R)h=!(hs(b,"AUDIO")&&hs(b,"SD"));h&&(b=K_(b),this.a7?(this.publish("drmoutputrestricted"),this.N("html5_report_fatal_drm_restricted_error_killswitch")||this.ij("drm.keyerror",2,void 0,`info.${b}`)):(this.a7=!0,this.n5(new g.hz("qoe.restart",{retrydrm:1,...b})),pZ(this),X0w(this)))}AT(){if(!this.videoData.K&&this.mediaElement&& !this.isBackground()){var b="0";this.mediaElement.X()>0&&qS(this.mediaElement)>=5&&this.videoData.X&&this.videoData.X.G()&&(this.n0(iC(this.playerState,1)),gY(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),b="1");zDe(this);var R=this.videoData.X;b={restartmsg:b,mfmt:!qF(this.videoData),mdrm:!(!(R&&R.videoInfos&&R.videoInfos.length&&R.videoInfos[0].contentProtection)||this.Eg),mfmtinfo:!this.videoData.Y,prerolls:this.PM()?this.Pd.join(","):"0"};if(this.Eg){R=this.Eg;if(R.X.size<= 0){let h="ns;";R.G6||(h+="nr;");R=h+=`ql.${R.V.length}`}else R=K_(R.X.values().next().value),R=ba(R);b.drmp=R}Object.assign(b,this.loader?.RT()||{});Object.assign(b,this.mediaElement?.RT()||{});this.bl.n5("qoe.start15s",ba(b));this.publish("loadsofttimeout")}}Fr(b){this.videoData.lengthSeconds!==b&&(this.videoData.lengthSeconds=b,qb(this))}WF(b=!1,R){if(!this.s1)if(cI("att_s","player_att")||XV("att_s",void 0,"player_att"),this.N("use_rta_for_player"))(async()=>{if(!b||await g.upB())try{const K=Zte(this.bl); if(!K)throw Error();const I=await g.cYs({cpn:this.videoData.clientPlaybackNonce,encryptedVideoId:this.videoData.videoId||""},g.fg(this.QX.experiments,"html5_att_playback_timeout_ms")||3E4);if(this.s1)throw Error();if(!I.challenge)throw g.kJ(Error(`Not sending atr ping; missing challenge string${I.error?`; error: ${I.error}`:""}`)),Error();this.s1=!0;const N=[I.challenge];if(I.error){const p=xXK(),l=SIe(p).get(I.error)||0;N.push(`${"r1c"}=${l}`)}else I.webResponse&&N.push(`${"r1a"}=${I.webResponse}`); I.adblockReporting?.reportingStatus!==void 0&&N.push(`${"r6a"}=${I.adblockReporting.reportingStatus}`);I.adblockReporting?.broadSpectrumDetectionResult!==void 0&&N.push(`${"r6b"}=${I.adblockReporting.broadSpectrumDetectionResult}`);K(N.join("&"));XV("att_f",void 0,"player_att")}catch(K){XV("att_e",void 0,"player_att")}})().then(()=>{R?.()}); else{var h=new g.YZx(this.videoData);if("c1a"in h.Ny&&!g.CG.isInitialized()){XV("att_wb",void 0,"player_att");this.ws===2&&Math.random()<.01&&g.kJ(Error("Botguard not available after 2 attempts"));if(b)return;if(this.ws<5){this.fd.qa();this.ws++;return}}(h=g.OQK(h))?(XV("att_f",void 0,"player_att"),Pv2(this.bl,h),this.s1=!0):XV("att_e",void 0,"player_att")}}QK(b=!1){return Aw(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.Mn()||g.Jw(this.videoData))?this.getCurrentTime(): this.Ep(b)}SU(){return this.f0()}Ep(b=!1){return this.Vp.Ep(b)}f0(){return this.Vp.f0()}Kz(){return this.Vp?this.Vp.Kz():0}getStreamTimeOffset(){return this.Vp?this.Vp.getStreamTimeOffset():0}GU(){return this.getStreamTimeOffset()===0?this.Kz():this.getStreamTimeOffset()}setPlaybackRate(b){this.playbackRate!==b&&d7(this.EV,this.videoData.X?.videoInfos)&&(this.playbackRate=b,pZ(this));this.playbackRate=b;this.mediaElement&&this.mediaElement.setPlaybackRate(b)}getPlaybackRate(){return this.playbackRate}getPlaybackQuality(){let b= "unknown";if(this.videoData.Y&&(b=this.videoData.Y.video.quality,b==="auto"&&this.mediaElement)){const R=this.Np();R&&R.videoHeight>0&&(b=P5(R.videoWidth,R.videoHeight))}return b}isHdr(){return!!(this.videoData.Y&&this.videoData.Y.video&&this.videoData.Y.video.isHdr())}sendVideoStatsEngageEvent(b,R){var h=this.bl;h.G?(h=iW(h.G,"engage"),h.nR=b,h.send(R)):R&&R()}fh(b){return this.bl.fh(b)}isAtLiveHead(b,R=!1){return Aw(this.videoData)&&(this.zw||R)?this.Vp.isAtLiveHead(b):!1}PK(){const b=this.Ep(), R=this.getCurrentTime();var h;(h=!Aw(this.videoData))||(h=this.Vp,h=!(h.G&&h.G.X));return h||this.Mn()||isNaN(b)||isNaN(R)?0:Math.max(0,b-R)}zP(b){(this.zw=b)||this.Ya.stop();if(this.videoData.G)if(b)this.videoData.G.resume();else{var R=this.videoData.G;R.S&&R.S.stop()}this.loader&&(R=this.videoData.N("html5_disable_preload_for_ssdai_with_preroll")&&this.Oj()&&this.videoData.isLivePlayback,b&&!R?this.loader.resume():this.loader?.T6(!0));this.playerState.G(2)||b?this.playerState.G(512)&&b&&this.n0(zh(this.playerState, 512)):this.n0(iC(this.playerState,512));R=this.bl;R.qoe&&(R=R.qoe,g.Gl(R,g.Sk(R.provider),"stream",[b?"A":"I"]))}qL(b){this.bl.n5("player.exception",ba({n:b.name,m:b.message}))}aU(b){this.bl.aU(b)}K6(b){this.bl.K6(b)}wG(b){this.bl.wG(b)}Tl(b){this.bl.Tl(b)}gQ(b,R,h,K){this.bl.gQ(b,R,h,K)}kd(){this.YZ("hidden",{},!0)}J3(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}ez(){return this.loader?this.loader.ez():!0}setLoop(b){this.loop=b;this.mediaElement&&!g.hB(this.QX)&&this.mediaElement.setLoop(b)}b3(){return this.mediaElement&& !g.hB(this.QX)?this.mediaElement.b3():this.loop}c6(b){this.YZ("timestamp",{o:b.toString()});this.Vp.c6(b)}GD(b){this.vH.tick(b)}bP(b){return this.vH.bP(b)}z9(b){this.vH.z9(b)}YZ(b,R,h=!1){this.bl.YZ(b,R,h)}yJ(b,R,h=!1){this.bl.YZ(b,R,h)}n5(b){this.bl.n5(b.errorCode,ba(b.details));b=b.errorCode;if(this.videoData.isLivePlayback&&(b==="qoe.longrebuffer"||b==="qoe.slowseek")||b==="qoe.restart")b=this.loader?Zg2(this.loader.videoTrack):{},this.YZ("lasoe",Object.assign(this.loader?Zg2(this.loader.audioTrack): {},this.cY?.G?.WX())),this.YZ("lvsoe",Object.assign(b,this.cY?.Y?.WX()));this.N("html5_log_centralized_player_time")&&this.YZ("sabrSeekRefactorCmt",{cmt:this.getCurrentTime(),loaderCmt:this.loader?.KR(),bh:this.loader?.CR()})}uy(b,R,h){this.bl.uy(b,R,h)}XZ(b,R,h,K,I,N,p,l){if(this.videoData.G?.isLive){var a=R.playerType===2?R:b,v=b.videoData.videoId,B=R.videoData.videoId;if(v&&B){var H=this.bl;if(l?.Gp){if(H.qoe){v=H.qoe;B=l.Gp;v.reportStats();var q=v.provider.videoData.clientPlaybackNonce,d=v.provider.videoData.videoId|| "",t=v.jV?.join(".")||q,S=v.EU?.join(".")||d;Q$(v,N?4:I?2:0,B.oG.join(".")||q,B.b2.join(".")||d,K);v.reportStats();v.jV=B.oG;v.EU=B.b2;v.G0=B.adFormats;v.Q5=B.serializedQoeContextData;Q$(v,N?5:I?3:1,t,S,h);v.reportStats()}}else if(H.qoe){q=H.qoe;d=b.cpn;t=R.cpn;S=a.videoData.CR;var J=q.provider.videoData.clientPlaybackNonce;const e=q.provider.videoData.videoId,Y=t!==J&&B!==e;J=d!==J&&v!==e;q.reportStats();q.adCpn&&q.adCpn!==d||(q.adCpn=J?d:"",q.dM=J?v:"",q.adFormat=J?S:void 0,Q$(q,N?4:I?2:0,t,B,K), q.reportStats(),q.adCpn=Y?t:"",q.dM=Y?B:"",q.adFormat=Y?S:void 0,Q$(q,N?5:I?3:1,d,v,h),q.reportStats())}l?.fu?(H.G?.NJ(),H.G?.D(),H.G?.pR(l.fu),H.G?.D(),H.G?.K(!0,!0).send(),H.G?.Zr()):(h=H,I=b.cpn,h.X.has(I)?(N=h.X.get(I),GV(N,!0).send(),N.J(),I!==h.provider.videoData.clientPlaybackNonce&&(g7(N),h.G?.C(),h.X.delete(I))):(h.mZ=h.provider.videoData.clientPlaybackNonce,h.mZ&&h.G&&(h.X.set(h.mZ,h.G),GV(h.G).send(),h.G.J())),h=R.cpn,a=a.videoData,K-=this.GU(),H.X.has(h)?(a=H.X.get(h),K=a.V&&isNaN(a.S)? zV(a):NaN,a=a.K(!1),isNaN(K)||(a.D=K),a.send()):(K=xH2(H,H.provider,a,K),H.X.set(h,K),K.nR(new g.n6(iC(new g.tk,8),new g.tk)),K.Al(),H.G?.J()),H.mZ=h);this.N("html5_unify_csi_server_stitched_transition_logging")?(K=this.vH,H=b.cpn,b=R.cpn,h=this.videoData.clientPlaybackNonce,a=R.videoData,R=(0,g.c)(),h=`${H===h?"video":"ad"}_to_${b===h?"video":"ad"}`,h!=="video_to_ad"&&(I=h==="ad_to_video"?void 0:a,H=I?.Hx,N={},a?.g3&&(N.cttAuthInfo={token:a.g3,videoId:a.videoId}),p&&(N.startTime=p),ZC(h,N),p={targetVideoId:a?.videoId?? "empty_video",targetCpn:b,adVideoId:I?.videoId??"empty_video",adClientPlaybackNonce:H?.cpn??I?.clientPlaybackNonce},H&&(p.adBreakType=H.adBreakType,p.adType=H.adType),g.PI(p,h),Bs(K,R,h))):(K=this.vH,h=this.videoData.clientPlaybackNonce,a=(0,g.c)(),H=R.videoData,b=`${b.cpn===h?"video":"ad"}_to_${R.cpn===h?"video":"ad"}`,h={},H.g3&&(h.cttAuthInfo={token:H.g3,videoId:H.videoId}),p&&(h.startTime=p),ZC(b,h),g.PI({targetVideoId:H.videoId,targetCpn:R.cpn,isSsdai:!0},b),p||Bs(K,a,b))}}else g.Yp(this.logger, 360717806,"SSTEvent for nonSS")}CL(){var b=this.ac;const R=b.K$;b.K$=[];return R}pL(b){this.videoData.TZ=!0;this.n5(new g.hz("sabr.fallback",b));this.lR(!0)}VO(b,R=!0){this.videoData.oQ=!0;R&&(this.n5(new g.hz("qoe.restart",b)),this.lR(!0))}Z$(b){this.YZ("sdai",{aftimeout:b});this.n5(new g.hz("ad.fetchtimeout",{timeout:b}))}oE(b,R){this.YZ("timelineerror",b);b=new g.hz("dai.timelineerror",b);R?this.ij("dai.timelineerror",1,"RETRYABLE_ERROR",ba(b.details)):this.n5(b)}CZ(){return g.Sk(this.bl.provider)}getPlayerSize(){return this.vB.getPlayerSize()}P$(){return this.vB.P$()}vI(){return this.vH}Jw(){return this.ac.Jw()}getVolume(){return this.ac.getVolume()}XG(){return this.ac.XG()}isMuted(){return this.ac.isMuted()}Fq(){return this.ac.Fq()}tA(){this.b8= !0}N(b){return this.QX.N(b)}Mj(){return this.QX.Mj()}Gl(b,R,h,K,I){this.YZ("xvt",{m:b,g:R?1:0,tt:h?1:0,np:K?1:0,c:I})}K7(){this.loader?.resume()}Oj(){return g.iR(this.Pd,"ad")}u3(){const b=this.getCurrentTime(),R=b-this.Kz();var h=this.mediaElement?K6(this.mediaElement.w4()):0;h=Math.floor(Math.max(h-R,0))+100;return this.loader?.u3(R,h)?(this.YZ("sdai",{skipad:1,ct:R.toFixed(3),adj:h.toFixed(3)}),ve(this.videoData)&&this.loader.seek(R+h,{seekSource:89,ZK:"videoplayer_skipServerStitchedAd"}),jjT(this.Vp, b),!0):!1}zy(){return this.QX.zy()}KC(){if(this.N("html5_generate_content_po_token"))return this.videoData.W7||"";this.ac.jN();return this.QX.wB||""}kC(){if(this.videoData.videoId)return this.videoData.m1}Vn(){return this.videoData.videoId}ov(){return this.ac.zK}PP(){return this.sC}pX(){return this.ac.pX()}yZ(b,R,h){this.n0(iC(this.playerState,16,h));this.Vp.yZ(b,R,h)}prefetchKeyPlay(b,R){this.loader?.prefetchKeyPlay(b,R)}sj(b){return this.Vp.sj(b)}Bn(){this.Vp.Bn()}pQ(b,R){const h=this.N("html5_generate_content_po_token")? this.videoData:void 0;this.ac.pQ(b,R,h)}US(){return this.N("html5_remove_ios_7_hack_force_play")}Jd(b,R){this.bl.Jd(b,R)}FO(){return this.bl.FO()}F9(){return this.ac.F9()}X2(){return this.ac.X2(this)}e0(){this.Ca=!0}IZ(b){this.loader?.IZ(b)}T0(b){this.Vp.T0(b)}};g.W=g.lY.prototype;g.W.uC=RK(48);g.W.oB=RK(31);g.W.IB=RK(25);g.W.Km=RK(19);g.W.n8=RK(13);var UA={primary:"Primary",secondary:"Secondary"};var j3K=class extends oV{constructor(b){super(b);this.events=new g.Ke(b);g.n(this,this.events);L(this.api,"isLifaAdPlaying",()=>this.api.isLifaAdPlaying()); this.events.j(b,kO(b.L().Mj())?"playbackChange":"serverstitchedvideochange",()=>{this.api.getVideoData()?.eK()&&(this.api.isLifaAdPlaying()?(this.playbackRate=this.api.getPlaybackRate(),this.api.setPlaybackRate(1)):this.api.setPlaybackRate(this.playbackRate))}); this.playbackRate=1}};var Adx=class extends Db{constructor(b){super("Bucle",g.wU.dC);this.A=b;const R=b.N("delhi_modern_web_player_icons")?{B:"svg",O:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{B:"path",O:{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"}}]}:lQP();this.setIcon(R);this.subscribe("select",this.X,this);b.createClientVe(this.element,this,28661);this.j(b,"settingsMenuVisibilityChanged",this.Y);this.listen("click",this.logClick);this.j(b,"onLoopChange",this.onLoopChange);this.G(b.getLoopVideo());b.yA().WH(this)}Y(b){b&&this.G(this.A.getLoopVideo());this.A.logVisibility(this.element,b)}logClick(){this.A.logClick(this.element)}onLoopChange(b){this.G(b)}X(b){this.A.setLoopVideo(b)}};var i$q=class extends oV{constructor(b){super(b);b.addEventListener("settingsMenuInitialized",()=>{this.menuItem||(this.menuItem=new Adx(this.api),g.n(this,this.menuItem))}); b.addEventListener("videodatachange",(R,h)=>{R=this.api.getPresentingPlayerType()===2;this.menuItem?.sW(!h.isLivePlayback&&!R)})}};var zWx=class extends oV{constructor(b){super(b);this.events=new g.Ke(b);g.n(this,this.events);L(this.api,"seekToChapterWithAnimation",R=>{this.seekToChapterWithAnimation(R)}); L(this.api,"seekToTimeWithAnimation",(R,h)=>{this.seekToTimeWithAnimation(R,h)}); L(this.api,"renderChapterSeekingAnimation",(R,h,K)=>{this.api.renderChapterSeekingAnimation(R,h,K)}); L(this.api,"setMacroMarkers",R=>{this.setMacroMarkers(b,R)}); L(this.api,"changeMarkerVisibility",(R,h,K)=>{this.changeMarkerVisibility(R,h,K)}); L(this.api,"isSameMarkerTypeVisible",R=>this.isSameMarkerTypeVisible(R))}seekToChapterWithAnimation(b){if(g.hT(this.api)&&!(b<0)){var R=this.api.getVideoData(),h=R.m_; if(h&&b{I===b&&WO(this,K.timeRangeStartMillis,K.title)})}}seekToTimeWithAnimation(b,R){g.hT(this.api)&&WO(this,b,R)}setMacroMarkers(b,R){R={playerOverlays:{playerOverlayRenderer:{decoratedPlayerBarRenderer:{decoratedPlayerBarRenderer:{playerBar:{multiMarkersPlayerBarRenderer:R}}}}}}; b=b.getVideoData();b.getWatchNextResponse();b&&b.getWatchNextResponse()==null&&(pa(b,{raw_watch_next_response:R}),b.publish("dataupdated"))}changeMarkerVisibility(b,R,h){const K=this.api.getVideoData();if(K){var I=!1;if(b)for(const N of R){if((b=K.SY)&&!b.includes(N))switch(h){case "CHANGE_MARKERS_VISIBILITY_RESTRICTION_MODE_NOT_OVERWRITE_SAME_TYPE":UyT(N,K)||(I=!0,K.SY?.push(N));break;case "CHANGE_MARKERS_VISIBILITY_RESTRICTION_MODE_NOT_OVERWRITE_ANY_TYPE":b.length===0&&(I=!0,K.SY?.push(N));break; default:I=!0,K.SY?.push(N)}}else for(const N of R)K.visibleOnLoadKeys.includes(N)||g.G3(K.SY,N)&&(I=!0);I&&this.api.publish("updatemarkervisibility")}}isSameMarkerTypeVisible(b){const R=this.api.getVideoData();return R?UyT(b,R):!1}};var U7q=class extends oV{constructor(b){super(b);this.events=new g.Ke(b);g.n(this,this.events);this.events.j(b,"videodatachange",()=>{this.updateMetadata()}); this.events.j(b,"presentingplayerstatechange",()=>{Gq2(this)}); this.events.j(b,"SEEK_COMPLETE",()=>{guK(this)})}updateMetadata(){var b=this.api.getVideoData(); if(b?.Jh()){var R=this.api.L(),h=[],K="";if(!R.C){const I=this.api.getVideoData().getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.browserMediaSession?.browserMediaSessionRenderer;g.LW(R)&&I?(h=WVK(I.thumbnailDetails),I.album&&(K=kI(I.album))):h=[{src:b.hU("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}this.api.getVideoData()?.uG()&&guK(this);Gq2(this);Sz2(this);navigator.mediaSession.metadata=new MediaMetadata({title:b.title,artist:b.author,artwork:h,album:K});R=b=null;g.Br(this.api)&& (b=()=>{this.api.nextVideo()},R=()=>{this.api.previousVideo()}); Sf("nexttrack",b);Sf("previoustrack",R)}}X5(){navigator.mediaSession.playbackState="none";navigator.mediaSession.metadata=null;const b="nexttrack previoustrack play pause seekbackward seekforward seekto".split(" ");for(const R of b)Sf(R,null);this.api.getVideoData()?.uG()&&navigator.mediaSession.setPositionState&&navigator.mediaSession.setPositionState({});super.X5()}};var Gyw=class extends oV{constructor(b){super(b);this.Y=new Map;this.S=this.G=void 0;this.compositeVideoState=null;this.X=void 0;this.events=new g.Ke(b);g.n(this,this.events);this.events.j(b,"modulecreated",R=>{a:{var h=this.api.getVideoData()?.getPlayerResponse()?.overlay?.playerControlsOverlayRenderer;if(h&&(h=g.Z(h.compositeVideoOverlay,egx),h?.sources?.length))for(K of h?.sources)if(K.isActive)break a;var K=void 0}R==="captions"&&K?.topLeftCornerX!==void 0&&K?.topLeftCornerY!==void 0&&K?.width!== void 0&&K?.height!==void 0&&this.api.qI({top:K.topLeftCornerY,right:1-K.topLeftCornerX-K.width,bottom:1-K.topLeftCornerY-K.height,left:K.topLeftCornerX})}); this.events.j(b,"videodatachange",R=>{const h=this.api.getVideoData();this.G=void 0;this.Y.clear();this.api.lj("compositeembargo",1);const K=h?.dh.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");K?.length?nux(this,K.filter(I=>I.onEnter?.some(this.V))):h?.cueRanges&&nux(this,h.cueRanges.filter(I=>I.onEnter?.some(this.V))); R==="dataupdated"&&h?.compositeLiveStatusToken!==this.S&&(this.S=h?.compositeLiveStatusToken,this.api.DW())}); this.events.j(b,g.fM("compositeembargo"),R=>{if(this.G?.id!==R.id&&(this.api.aU(!0),this.Y.has(R.id))){var h=this.Y.get(R.id),K=this.api.getVideoData();for(const I of h)h=I.compositeEmbargo?.embargoStatusToken,K.nX!==h&&(K.nX=h,this.api.DW()),Euw(this,R)}}); this.events.j(b,g.yf("compositeembargo"),R=>{if(this.G?.id===R.id&&(this.api.aU(!1),this.Y.has(R.id))){if(R=this.api.getVideoData())R.nX=void 0;this.api.DW();Euw(this)}}); this.events.j(b,"heartbeatRequest",R=>{this.compositeVideoState!==null&&(R.playbackState||(R.playbackState={}),R.playbackState.compositeVideoState=this.compositeVideoState)}); this.events.j(b,"internalaudioformatchange",(R,h)=>{const K=this.api.getVideoData({eh:!1});K?.YZ("atrkchg",{id:R,m:h});if(K&&!K.xQ()){h=this.api.getAvailableAudioTracks();for(const I of h)if(I.getLanguageInfo().getId()===R){this.api.L().pR=R;break}}}); this.events.j(b,"onPlaybackAudioChange",()=>{this.api.DW();if(b.getVideoData()?.L().N("html5_preload_on_mosaic_audio_track_change")){const R=this.api.getSourceConfigForActiveAudioTrack();R&&b.preloadVideoByPlayerVars({videoId:R.videoId,live_preload:!0},1)}}); L(b,"setCompositeParam",R=>{this.compositeVideoState=R}); this.api.N("web_watch_enable_multiview_manager")&&L(b,"setCompositeVideoOverlayRendererComponent",R=>{this.setCompositeVideoOverlayRendererComponent(R)})}setCompositeVideoOverlayRendererComponent(b){this.X&&(this.X.remove(),g.lI(this.X,"ytp-composite-video-overlay-renderer"),this.X=void 0); b&&(g.Nv(b,"ytp-composite-video-overlay-renderer"),g.dL(this.api,b,4),this.X=b)}V(b){return b.compositeEmbargo!==void 0}X5(){super.X5();this.Y.clear()}};var gLe=class extends oV{constructor(b){super(b);this.events=new g.Ke;g.n(this,this.events);this.events.j(b,"applicationInitialized",()=>{({handleError:R=J2,logEvent:h=g.yp}={});var R;for(T6=new EVT(R,h);J$.length>0;){var h=J$.shift();switch(h.type){case "ERROR":T6.cg(h.payload);break;case "EVENT":T6.logEvent(h.eventType,h.payload)}}}); L(this.api,"queueOfflineAction",this.queueOfflineAction.bind(this));L(this.api,"updateDownloadState",this.updateDownloadState.bind(this));L(this.api,"pauseVideoDownload",this.pauseVideoDownload.bind(this));L(this.api,"resumeVideoDownload",this.resumeVideoDownload.bind(this));L(this.api,"isOrchestrationLeader",this.isOrchestrationLeader.bind(this));L(this.api,"refreshAllStaleEntities",this.refreshAllStaleEntities.bind(this));L(this.api,"setUpPositionSyncInterval",this.setUpPositionSyncInterval.bind(this))}async queueOfflineAction(b, R,h,K){const I=Ef(this.api.VV());return I&&(b=await I.Y_([b],R,h,K),b.length)?b[0]:Promise.reject()}updateDownloadState(b,R){const h=Ef(this.api.VV());return h?h.updateDownloadState(b,R):Promise.reject()}pauseVideoDownload(b){const R=Ef(this.api.VV());R&&R.LQ(b)}async resumeVideoDownload(b){const R=Ef(this.api.VV());return R?R.Aa(b):Promise.reject()}isOrchestrationLeader(){return this.api.isOrchestrationLeader()}refreshAllStaleEntities(b){b===void 0&&(b=14400);const R=Ef(this.api.VV());return R?R.refreshAllStaleEntities(b): Promise.reject()}setUpPositionSyncInterval(b){const R=Ef(this.api.VV());R&&R.setUpPositionSyncInterval(b)}};var Wmq=class extends oV{constructor(b){super(b);this.loaded=!1;this.overlay=null;this.events=new g.Ke(b);g.n(this,this.events);this.G=new g.Ke(b);g.n(this,this.G);this.events.j(b,"modulesCreated",()=>{this.rT()&&this.load()}); this.events.j(b,"modulesDestroyed",R=>{let h=!0;switch(R){case 2:case 3:h=!1;break;case 4:h=this.api.getPresentingPlayerType()===1}h&&this.unload()})}rT(){var b=this.api.getVideoData(); return b.CY&&!b.bz}load(){this.loaded||g.Mz(this.api.L())||(this.overlay=new g.w({B:"div",F5:["ytp-ypc-clickwrap-overlay","ytp-player-content"],W:[{B:"h2",Z:"ytp-ypc-clickwrap-header",IH:"\u00bfQuieres iniciar este alquiler?"},{B:"div",Z:"ytp-ypc-clickwrap-description",IH:this.api.getVideoData().Zw},{B:"button",F5:["ytp-ypc-clickwrap-confirm","ytp-button"],IH:"Iniciar periodo de alquiler"}]}),g.n(this,this.overlay),g.dL(this.api,this.overlay.element,4),this.overlay.j(this.overlay.yX("ytp-ypc-clickwrap-confirm"), "click",()=>{this.onConfirm()}),this.loaded=!0)}onConfirm(){this.overlay&&this.overlay.hide(); this.G.j(this.api,"videodatachange",()=>{this.api.QA("ypcRentalActivation")}); this.api.QA("ypcRentalActivation")}unload(){this.loaded&&(this.overlay&&(this.overlay.dispose(),this.overlay=null),this.G.Y(),this.loaded=!1)}X5(){this.unload();super.X5()}};var SSP=class extends oV{constructor(b){super(b);L(b,"getAvailableQualityData",()=>this.getAvailableQualityData()); L(b,"getAvailableQualityDataAndMessaging",()=>this.getAvailableQualityDataAndMessaging()); L(b,"getPaygatedAudioQualityData",()=>this.getPaygatedAudioQualityData())}getAvailableQualityDataAndMessaging(){return{qualityData:this.getAvailableQualityData(), qualityMessagingFormattedString:void 0}}getAvailableQualityData(){var b=this.api.getVideoData();if(!b)return[];var R=[],h=b.getPlayerResponse()?.playabilityStatus?.paygatedQualitiesMetadata,K=TL3(h),I=h?.restrictedAdaptiveFormats;if(I){h=[];for(var N of I){if(N.mimeType?.includes("audio")&&this.api.N("enable_lr_upsell_for_premium_high_quality_audio"))continue;I=rj(N.mimeType,N.quality,N.itag.toString(),N.width.toString(),N.height.toString(),N.qualityLabel,N.qualityOrdinal&&rh2[N.qualityOrdinal]); h.push(I)}b=g.tw(b);fC(h);N=[];for(var p of h)HC(b,p,this.api.L().S)===!0&&N.push(p);R=R.concat(JTT(N,!1,K))}p=this.api.SD();R=R.concat(JTT(p,!0,K));K=[];if(this.api.N("web_player_enable_premium_hbr_in_h5_api")){p=R;R=new Set;K=new Map;var l={};for(var a of p)p=a.quality,h=a.isPlayable,(b=a.qualityLabel)&&p&&(h&&K.has(p)&&K.get(p)!==b?R.add(p):h&&K.set(p,b),l[b]||(l[b]=a));a=[];for(var v of Object.values(l))l=v.quality,K=v,l&&!R.has(l)&&(K.formatId=void 0),a.push(K);v=R=a;a=0;for(l=0;lthis.X}; this.events=new g.Ke(b);g.n(this,this.events);this.events.j(b,"d6de4videobindingchange",R=>{this.Mr(R)}); this.events.j(b,"csiinitialized",()=>{Yzs(this)})}Mr(b){if(EA())if(!this.Y&&this.G){b.m1={coldStartInfo:{clientState:this.X}}; try{this.G.then(()=>{eDT(this,b)},R=>{Tj(R,"player_update"); this.handleError(R,b)})}catch(R){Tj(R,"player_update_catch"),this.handleError(R,b)}}else this.Y?eDT(this,b):this.api.YZ("pf",{m:this.Y?1:0, p:this.G?1:0})}handleError(b,R){g.kJ(b);let h=0;b.mediaIntegrityErrorName?h||(h=nLD[b.mediaIntegrityErrorName]):b.code&&(h=b.code());R.m1={OP:{code:h}}}};var TNK=class extends g.w{constructor(b){super({B:"button",F5:["ytp-pip-button","ytp-button"],O:{title:b.N("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{data-tooltip-title}}","data-priority":"8","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-pip-button"},W:[Un()]});this.api=b;this.listen("click",this.onClick);const R=this.api.SS(),h=R.subscribe("visibilitystatechange",()=>{this.bv(R.ut())}); this.addOnDisposeCallback(()=>{R.pN(h)}); Ny(b,this.element,this);this.bv(R.ut())}bv(b){b=b?"Salir de la funci\u00f3n Imagen en imagen":"Imagen en imagen";this.api.L().N("player_tooltip_data_title_killswitch")?this.update({title:b,"data-title-no-tooltip":b}):this.update({"data-tooltip-title":b,"data-title-no-tooltip":b});this.api.d4()}onClick(){this.api.togglePictureInPicture()}};var JdT=class extends oV{constructor(b){super(b);this.events=new g.Ke(b);g.n(this,this.events);this.events.j(b,"standardControlsInitialized",()=>{this.createButton()}); g.lv(this.api.L())&&(this.N("web_watch_pip")||this.N("web_shorts_pip"))&&L(this.api,"setDocumentPictureInPicture",R=>{this.setDocumentPictureInPicture(R)})}createButton(){this.button=new TNK(this.api); g.n(this,this.button);this.api.eV(this.button);this.events.j(this.api,"videodatachange",()=>{OzD(this)}); OzD(this)}setDocumentPictureInPicture(b){this.api.SS().F3(b);b=this.api.ut();const R=Hyx(this.api.VV());R&&(b?R.load():R.unload());this.api.publish("documentpictureinpicturechange")}};var kyx=class extends oV{constructor(b){super(b);this.loaded=!1;this.K=0;this.G=!1;this.D={};this.X=[];this.V=0;this.J=!1;this.events=new g.Ke(b);g.n(this,this.events);this.Y=new g.Ke(b);g.n(this,this.Y);this.events.j(b,"modulesCreated",()=>{this.rT()&&this.load()}); this.events.j(b,"modulesDestroyed",R=>{const h=this.api.getPresentingPlayerType();switch(R){case 2:case 3:R=h!==1&&!(h===5||h===6||h===7);break;case 4:R=!this.G;break;default:R=!0}R&&this.unload()})}rT(){return this.api.getVideoData().Ha.includes("playableSequences")}load(){if(!this.loaded){this.S||(this.S=new g.w({B:"div", F5:["ytp-player-content","ytp-yto-overlay"],W:[{B:"div",F5:["ytp-yto-preroll-message"],IH:"El v\u00eddeo empezar\u00e1 en breve"}]}),g.n(this,this.S),QLD(this,!1),g.dL(this.api,this.S.element,4));var b=this.api.getPresentingPlayerType();this.Y.j(this.api,"playbackChange",()=>{var R=this.api.getPresentingPlayerType()===5;g.k(this.api.getRootNode(),"ytp-yto-preroll",R);QLD(this,R)}); this.Y.j(this.api,"presentingplayerstatechange",R=>{this.onStateChange(R)}); this.Y.j(this.api,g.fM("yto"),(R,h)=>{this.onCueRangeEnter(R,h)}); this.Y.j(this.api,"ytoprerollinternstitialnext",()=>{my2(this)}); Pbx(this);this.loaded=!0;this.api.QA("playableSequences",b)}}onCueRangeEnter(b){b=b.getId();if(!this.G){if(this.api.getPlayerStateObject(1).G(2)){if(this.J)return}else this.J=!1;this.X.includes(b)||this.X.push(b);this.api.getPresentingPlayerType()===1&&xyK(this)}}onStateChange(b){var R=this.api.getPresentingPlayerType();b=b.state;this.G||R!==5&&R!==6&&R!==7||b.G(1)||b.G(16)||b.G(32)||(R=b.G(128),(b.G(2)||R)&&my2(this))}unload(){this.loaded&&(this.K=0,this.J=this.G=!1,this.D={},this.V=0,this.X.length= 0,this.Y.Y(),this.loaded=!1)}X5(){this.unload();super.X5()}};var YST=class extends oV{constructor(b){super(b);this.events=new g.Ke(b);g.n(this,this.events);L(this.api,"musicDisableUi",()=>{g.Nv(this.api.getRootNode(),"ytp-player-in-bar-disable-ui")}); L(this.api,"musicEnableUi",()=>{g.lI(this.api.getRootNode(),"ytp-player-in-bar-disable-ui")})}};var HK=class extends g.w{constructor(b,R=!0,h=!1){super({B:"div",Z:"ytp-suggested-action"});this.A=b;this.SK=this.gp=this.SY=this.MJ=this.X=this.nR=this.expanded=this.enabled=this.Sn=!1;this.jn=new g.bI(()=>{this.badge.element.style.width=""},200,this); this.CR=new g.bI(()=>{JL(this);kn(this)},200,this); this.RH=this.A.N("delhi_modern_web_player")?40:34;this.dismissButton=new g.w({B:"button",F5:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.n(this,this.dismissButton);this.S=new g.w({B:"div",Z:"ytp-suggested-action-badge-expanded-content-container",W:[{B:"label",Z:"ytp-suggested-action-badge-title",IH:"{{badgeLabel}}"},this.dismissButton]});g.n(this,this.S);this.KR=new g.w({B:"div",Z:"ytp-suggested-action-badge-icon-container",W:[R?{B:"div",Z:"ytp-suggested-action-badge-icon"}: ""]});g.n(this,this.KR);this.badge=new g.w({B:h?"div":"button",F5:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],W:[this.KR,this.S]});g.n(this,this.badge);this.badge.AX(this.element);this.T6=new g.Sg(this.badge,250,!1,100,()=>{this.A.N("web_player_overlay_positioned_layout")&&this.hide()}); g.n(this,this.T6);b.N("web_player_overlay_positioned_layout")&&this.hide();this.pz=new g.Sg(this.S,250,!1,100);g.n(this,this.pz);this.m_=new g.F7(this.vO,null,this);g.n(this,this.m_);this.EW=new g.F7(this.gB,null,this);g.n(this,this.EW);g.n(this,this.jn);g.n(this,this.CR);this.A.createServerVe(this.badge.element,this.badge,!0);this.A.createServerVe(this.dismissButton.element,this.dismissButton,!0);this.j(this.A,"onHideControls",()=>{this.pR(!1)}); this.j(this.A,"onShowControls",()=>{this.pR(!0)}); this.j(this.badge.element,"click",this.vY);this.j(this.dismissButton.element,"click",this.D);this.j(this.A,"pageTransition",this.hc);this.j(this.A,"appresize",this.Y);this.j(this.A,"fullscreentoggled",this.K5);this.j(this.A,"cardstatechange",this.vD);this.j(this.A,"annotationvisibility",this.cO,this);this.j(this.A,"offlineslatestatechange",this.yu,this)}vY(){}D(){}K(){return!0}vO(){let b;this.expanded?(this.pz.show(),b=this.S.element.scrollWidth):(b=this.S.element.scrollWidth,this.pz.hide());this.HR= this.RH+b;g.k(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=`${this.expanded?this.RH:this.HR}px`;this.EW.start()}gB(){this.badge.element.style.width=`${this.expanded?this.HR:this.RH}px`;this.jn.start()}Zr(){this.X&&this.A.logVisibility(this.badge.element,this.K());this.MJ&&this.A.logVisibility(this.dismissButton.element,this.K()&&this.wp())}pR(b){this.SY=b;kn(this);JL(this);this.Y()}yu(){g.k(this.badge.element,"ytp-suggested-action-badge-with-offline-slate", !0)}wp(){return this.gp||this.SY||!this.nR}Y(){this.K()?(this.show(),this.T6.show()):this.T6.hide();this.Zr()}hc(){this.enabled=!1;this.Y()}J(b){b?this.MJ&&this.A.logClick(this.dismissButton.element):this.X&&this.A.logClick(this.badge.element)}cO(){this.Y()}vD(b){this.SK=b===1;this.Y();g.k(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)}K5(){g.k(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.A.isFullscreen());this.Y()}};var qX=class extends g.PH{constructor(b,R,h,K,I,N){const p={B:"div",Z:"ytp-panel"};let l,a,v;if(h){l="ytp-panel-back-button";a="ytp-panel-title";const B={B:"div",Z:"ytp-panel-header",W:[{B:"div",F5:["ytp-panel-back-button-container"],W:[{O:{"aria-label":"Volver al men\u00fa anterior"},B:"button",F5:["ytp-button",l]}]},{B:"span",F5:[a],O:{role:"heading","aria-level":"2"},W:[h]}]};I&&(v="ytp-panel-options",B.W.push({B:"button",F5:["ytp-button",v],W:[K]}));p.W=[B]}K=!1;N&&(N={B:"div",Z:"ytp-panel-footer", W:[N]},K=!0,p.W?p.W.push(N):p.W=[N]);super(p);this.content=R;K&&p.W?R.AX(this.element,p.W.length-1):R.AX(this.element);this.Kq=!1;this.iF=K;h&&(this.backButton=this.yX(l),h=this.yX(a),this.j(this.backButton,"click",this.Sg),this.j(h,"click",this.Sg),this.Kq=!0,I&&this.j(this.yX(v),"click",I));R.subscribe("size-change",this.Bj,this);this.j(b,"fullscreentoggled",this.Bj);this.A=b}Bj(){this.publish("size-change")}Yu(){return ef(this)}Tw(){return ef(this)}focus(){this.content.focus()}Sg(){this.publish("back")}};g.dF=class extends qX{constructor(b,R=null,h,K,I,N){const p={role:"menu"};R&&(p.id=R);R=new g.PH({B:"div",Z:"ytp-panel-menu",O:p});super(b,R,h,K,I,N);this.menuItems=R;this.items=[];g.n(this,this.menuItems)}WH(b,R=!1){if(R)this.items.push(b),this.menuItems.element.appendChild(b.element);else{R=g.Yz(this.items,b,cTB);if(R>=0)return;R=~R;g.T3(this.items,R,0,b);UU(this.menuItems.element,b.element,R)}b.subscribe("size-change",this.FK,this);this.menuItems.publish("size-change")}Yu(){ef(this)||this.items[0].focus(); return!0}Tw(){this.items[this.items.length-1].focus();return!0}yn(b){b.unsubscribe("size-change",this.FK,this);this.HY()||(g.G3(this.items,b),this.menuItems.element.removeChild(b.element),this.menuItems.publish("size-change"))}FK(){this.menuItems.publish("size-change")}focus(){let b=0;for(let R=0;R1&&g.xn(this)}Dz(){XrK(this);this.XM&&(uYT(this),g.pK(this.element,this.size))}e5(){const b=this.G.pop();Qa(this,b,this.G[this.G.length-1],!0)}VA(b){if(!b.defaultPrevented)switch(b.keyCode){case 27:this.aT();b.preventDefault();break;case 37:this.G.length>1&&this.e5();b.preventDefault();break;case 39:b.preventDefault()}}focus(){this.G.length&&this.G[this.G.length- 1].focus()}X5(){super.X5();this.X&&this.X.dispose();this.V&&this.V.dispose()}};var eW3=class extends g.fm{constructor(b){super(b,"ytp-shopping-product-menu");this.WD=new g.dF(this.A);g.n(this,this.WD);this.hide();g.mP(this,this.WD);g.dL(this.A,this.element,4)}open(b,R){this.initialize(b.items)&&this.zD(R,!!R)}initialize(b){g.OA(this.WD);if(b===void 0||b.length===0)return!1;let R=b.length;for(const h of b)this.WH(h,R--);return!0}WH(b,R){b.menuNavigationItemRenderer?MpK(this,b.menuNavigationItemRenderer,R):b.menuServiceItemRenderer&&rTH(this,b.menuServiceItemRenderer,R)}};var O$s=class extends HK{constructor(b){super(b,!1,!0);this.isCounterfactual=this.V=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.nR=!0;this.overflowButton=new g.w({B:"button",F5:["ytp-featured-product-overflow-icon","ytp-button"],O:{"aria-haspopup":"true"}});this.overflowButton.hide();g.n(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.w({B:"img",Z:"ytp-suggested-action-badge-img", O:{src:"{{url}}"}});this.thumbnailImage.hide();g.n(this,this.thumbnailImage);this.thumbnailIcon=new g.w({B:"div",Z:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.n(this,this.thumbnailIcon);this.banner=new g.w({B:"a",Z:"ytp-suggested-action-container",W:[this.thumbnailImage,this.thumbnailIcon,{B:"div",Z:"ytp-suggested-action-details",W:[{B:"text",Z:"ytp-suggested-action-title",IH:"{{title}}"},{B:"text",Z:"ytp-suggested-action-subtitle",IH:"{{subtitle}}"},{B:"text",Z:"ytp-suggested-action-metadata-text", IH:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.n(this,this.banner);this.banner.AX(this.S.element);this.j(this.A,"videodatachange",this.onVideoDataChange);this.j(this.A,g.fM("suggested_action_view_model"),this.fR);this.j(this.A,g.yf("suggested_action_view_model"),this.PH);this.j(this.overflowButton.element,"click",this.xZ);this.j(b,"featuredproductdismissed",this.D);this.A.createServerVe(this.banner.element,this.banner,!0)}vY(b){b.target!==this.dismissButton.element&&b.target!==this.overflowButton.element&& (this.J(),this.onClickCommand&&g.rw(this.A,"innertubeCommand",this.onClickCommand))}D(){this.enabled=!1;this.T6.hide()}K(){return!!this.G&&this.enabled}onVideoDataChange(b,R){this.JX(R);if(this.G){this.NJ();a:if(!this.isCounterfactual){this.banner.update({title:this.G?.title,subtitle:this.G?.subtitle,metadata:this.G?.metadataText});this.onClickCommand=g.Z(this.G?.onTap,xJ);if(b=g.Z(this.G?.onOverflow,xJ))this.C=g.Z(b,Wb2);if(this.G?.thumbnailImage){b=this.G?.thumbnailImage?.sources||[];if(b.length=== 0)break a;this.thumbnailImage.update({url:b[0].url})}else this.G?.thumbnailIconName&&this.thumbnailIcon.update({icon:this.G?.thumbnailIconName});this.shouldShowOverflowButton=!!this.G?.shouldShowOverflowButton;this.shouldHideDismissButton=!!this.G?.shouldHideDismissButton}this.banner.element.setAttribute("aria-label",this.G?.a11yLabel||"");this.Ty=this.G?.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;Z9(this)}}fR(){this.isVisible=!0;Z9(this)}PH(){this.isVisible= !1;Z9(this)}Zr(){super.Zr();this.V&&this.A.logVisibility(this.banner.element,this.isVisible)}J(){super.J(!1);this.V&&this.A.logClick(this.banner.element)}xZ(b){this.U||(this.U=new eW3(this.A),g.n(this,this.U));this.C?.menu?.menuRenderer&&(this.U.open(this.C.menu.menuRenderer,b.target),b.preventDefault())}JX(){}NJ(){}X5(){this.A.lj("suggested_action_view_model");super.X5()}};var Q3x=class extends O$s{JX(b){this.productUpsellSuggestedActionViewModel=g.Z(b.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.suggestedActionViewModel,ukP);this.productUpsellSuggestedActionViewModel?.content&&(this.G=g.Z(this.productUpsellSuggestedActionViewModel?.content,Upe));(this.V=!!this.productUpsellSuggestedActionViewModel?.loggingDirectives?.trackingParams)&&this.A.setTrackingParams(this.banner.element,this.productUpsellSuggestedActionViewModel?.loggingDirectives?.trackingParams|| null);this.isCounterfactual=!!this.productUpsellSuggestedActionViewModel?.isCounterfactualServing}NJ(){const b=[];for(const R of this.productUpsellSuggestedActionViewModel?.ranges||[]){if(!R)continue;const h=Number(R.startTimeMilliseconds),K=Number(R.endTimeMilliseconds);isNaN(h)||isNaN(K)||b.push(new g.gL(h,K,{id:"product_upsell",namespace:"suggested_action_view_model"}))}this.A.f5(b)}};var x7w=class extends oV{constructor(b){super(b);this.G=new Q3x(this.api);g.n(this,this.G);g.dL(this.api,this.G.element,4)}};var m7K=class extends oV{constructor(b){super(b);this.G=!0;const R=new g.Ke(b);g.n(this,R);R.j(b,"internalaudioformatchange",(h,K)=>{bxq(this,h,K)}); R.j(b,"annotationvisibility",h=>{this.api.N("web_fix_annotations")&&DyD(this,(294).toString(),{boolValue:h})}); R.j(b,"videoplayerreset",()=>{uH(this)}); R.j(b,"videodatachange",(h,K)=>{this.onVideoDataChange(h,K)})}onVideoDataChange(b,R){R.xQ()&&(b==="newdata"&&uH(this),this.G&&b==="dataloaded"&&(this.G=!1,X4(cq(An(this.api.L(),this.api.getVideoData()?.J()),h=>{hUs(this,h)}),()=>{this.G=!0})))}MF(){if(g.hB(this.api.L())){const b=g.js(this.api.L(),this.api.getVideoData()?.J()); return cq(mS(b),R=>{const h=tT();jp(h,R);return this.api.MF(h)})}return mS(this.api.MF())}};var stT=class{constructor(){this.label="Dobladas autom\u00e1ticamente"}};g.y9=class extends g.PO{constructor(b,R,h,K,I,N,p){super(g.zq({"aria-haspopup":"true"}),R,b);this.Gy=K;this.gp=!1;this.K=null;this.options={};this.Jc=new g.dF(h,void 0,b,I,N,p);g.n(this,this.Jc);this.listen("keydown",this.VA);this.listen("click",this.open)}open(){g.mP(this.Gy,this.Jc)}Y(b){Kf2(this);const R=this.options[b];R&&(R.element.setAttribute("aria-checked","true"),this.setContent(this.X(b)),this.K=b)}V(b){g.OA(this.Jc);const R={};let h=!1;for(let K=0;K{this.SY(b)}); return R}enable(b){this.gp?b||(this.gp=!1,this.D(!1)):b&&(this.gp=!0,this.D(!0))}D(b){b?this.Gy.WH(this):this.Gy.yn(this)}G(b){this.publish("select",b)}SY(b){this.G(b)}X(b){return b.toString()}VA(b){b.defaultPrevented||b.keyCode!==39||(this.open(),b.preventDefault())}X5(){this.gp&&this.Gy.yn(this);super.X5();for(const b of Object.keys(this.options))this.options[b].dispose()}};var PcK=class extends g.y9{constructor(b,R){super("Temporizador de suspensi\u00f3n",g.wU.SLEEP_TIMER,b,R);this.A=b;this.vY={};this.nR=this.S("Off");this.T6=this.J="";b.N("web_settings_menu_icons")&&(R=b.N("delhi_modern_web_player_icons")?{B:"svg",O:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{B:"path",O:{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"}}]}:{B:"svg",O:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{B:"path",O:{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(R)); this.C=new g.w({B:"div",F5:["ytp-menuitem-label-wrapper"],W:[{B:"div",IH:"Final del v\u00eddeo"},{B:"div",F5:["ytp-menuitem-sublabel"],IH:"{{content}}"}]});g.n(this,this.C);this.listen("click",this.onClick);this.j(b,"videodatachange",this.onVideoDataChange);this.j(b,"presentingplayerstatechange",this.bv);this.j(b,"settingsMenuVisibilityChanged",this.JX);b.createClientVe(this.element,this,218889);this.bv();g.rw(this.A,"onSleepTimerFeatureAvailable")}bv(){const b=this.S("Off");this.A.getPresentingPlayerType()!== 2?(NEK(this),this.Y(this.nR),this.J&&(this.nR===b?this.J="":this.setSleepTimerTimeLeft(this.J)),this.T6&&this.setVideoTimeLeft(this.T6),this.enable(!0)):(this.V([]),this.enable(!1))}G(b){this.MJ(b);this.Gy.e5()}S(b){switch(b){case "Off":return"No";case "End of video":return"Final del v\u00eddeo";case "End of playlist":return"Final de la lista de reproducci\u00f3n";default:return`${b.toString()} ${"Minutos"}`.toLowerCase()}}MJ(b){const R=this.vY[b],h=R==="End of video"||R==="End of playlist";R==="Off"&& (this.J="");this.A.getPlayerState()!==0&&this.A.getPlayerState()!==5||!h?(this.nR=b,super.G(b),this.Y(b),g.rw(this.A,"onSleepTimerSettingsChanged",R)):g.rw(this.A,"innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"El v\u00eddeo ya ha acabado"}}}}})}onVideoDataChange(b){b==="dataloaded"&&NEK(this)}JX(b){this.A.logVisibility(this.element,b)}onClick(){this.A.logClick(this.element)}resetSleepTimerMenuSettings(){this.MJ(this.S("Off"))}setSleepTimerTimeLeft(b){this.J= b;this.setContent(b)}setVideoTimeLeft(b){this.T6=b;this.C.setContent(b)}};var Z$D=class extends oV{constructor(b){super(b);b.addEventListener("settingsMenuInitialized",()=>{this.menuItem||(this.menuItem=new PcK(this.api,this.api.yA()),g.n(this,this.menuItem))}); b.addEventListener("openSettingsMenuItem",R=>{R==="menu_item_sleep_timer"&&(this.menuItem||this.api.yA()?.zD(),this.menuItem.open())}); L(b,"resetSleepTimerMenuSettings",()=>{this.resetSleepTimerMenuSettings()}); L(b,"setSleepTimerTimeLeft",R=>{this.setSleepTimerTimeLeft(R)}); L(b,"setVideoTimeLeft",R=>{this.setVideoTimeLeft(R)})}resetSleepTimerMenuSettings(){this.menuItem&&this.menuItem.resetSleepTimerMenuSettings()}setSleepTimerTimeLeft(b){this.menuItem&&this.menuItem.setSleepTimerTimeLeft(b)}setVideoTimeLeft(b){this.menuItem&&this.menuItem.setVideoTimeLeft(b)}};var cdT=class extends oV{constructor(b){super(b);this.events=new g.Ke(b);g.n(this,this.events);this.events.j(b,"onSnackbarMessage",R=>{switch(R){case 1:this.api.getPlayerStateObject().isBuffering()&&g.rw(this.api,"innertubeCommand",{openPopupAction:{popup:{notificationActionRenderer:{responseText:{runs:[{text:"\u00bfEl v\u00eddeo se interrumpe?"}]},actionButton:{buttonRenderer:{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:{runs:[{text:"Saber por qu\u00e9"}]},navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers", webPageType:"WEB_PAGE_TYPE_UNKNOWN"}},urlEndpoint:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers",target:"TARGET_NEW_WINDOW"}},loggingDirectives:{clientVeSpec:{uiType:232471}}}},loggingDirectives:{clientVeSpec:{uiType:232470}}}},durationHintMs:5E3,popupType:"TOAST"}})}})}};var pb2; g.Nm=class extends g.NU{constructor(b,R=!1,h,K=!1,I=!1){super();this.MJ=I;this.C=!1;this.V=new vi(this);this.S=this.D=null;this.X=this.Y=!1;g.n(this,this.V);this.target=b;this.G=R;this.nR=h||b;this.C=K;R&&(g.qN&&this.target.setAttribute("draggable","true"),I||(this.target.style.touchAction="none"));Va(this)}j(b,R){this.V.j(this.nR,b,R,void 0,!this.G)}cancel(){this.X&&(this.X=!1,this.publish("dragend",0,0,null));this.Y&&(this.Y=!1,this.publish("hoverend",0,0,null),CZ(this),Va(this))}MA(b){CZ(this);this.j(XK("move"), this.U);this.j(XK("out"),this.FV);this.j("touchstart",this.K);this.G&&this.j(XK("down"),this.J);const R=b.target;b=new g.CP(b.pageX,b.pageY);this.Y=!0;this.publish("hoverstart",b.x,b.y,R);this.publish("hovermove",b.x,b.y,R)}U(b){const R=b.target;b=new g.CP(b.pageX,b.pageY);if(this.S){const h=this.S;this.S=null;if(h.relatedTarget===R&&ME(new g.CP(h.pageX,h.pageY),b))return}this.publish("hovermove",b.x,b.y,R)}FV(b){const R=new g.CP(b.pageX,b.pageY),h=b.relatedTarget;try{if(h&&g.gM(this.target,h)){this.S= b;this.publish("hovermove",R.x,R.y,h);return}}catch(K){}CZ(this);Va(this);this.Y=!1;this.publish("hoverend",R.x,R.y,h)}vY(b){this.MA(b);this.J(b)}J(b){if(typeof b.button!=="number"||b.button===0){CZ(this);this.V.j(Mb(b.target),XK("move"),this.SY);this.V.j(Mb(b.target),XK("up"),this.T6);var R=b.target;if(g.qN)this.j("dragstart",this.gp);else if(b.preventDefault(),(g.qH||L0)&&R)a:{let h=R;for(;h;){if(n0(h)||h.getAttribute("tabindex")==="-1"){h.focus();break a}h=h.parentElement}Mb(R).activeElement.blur()}this.X= !0;b=new g.CP(b.pageX,b.pageY);this.publish("dragstart",b.x,b.y,R);this.publish("dragmove",b.x,b.y,R)}}gp(b){b.preventDefault()}SY(b){let R=b.target;R===Mb(b.target)&&(R=null);b=new g.CP(b.pageX,b.pageY);this.publish("hovermove",b.x,b.y,R);this.publish("dragmove",b.x,b.y,R)}T6(b){CZ(this);this.X=!1;const R=h$(b),h=b.target;b=new g.CP(b.pageX,b.pageY);R&&g.gM(this.target,R)?(this.j(XK("move"),this.U),this.j(XK("out"),this.FV),this.j(XK("down"),this.J),this.j("touchstart",this.K),this.publish("dragend", b.x,b.y,h)):(Va(this),this.Y=!1,this.publish("dragend",b.x,b.y,h),this.publish("hoverend",b.x,b.y,h))}K(b){const R=b.changedTouches[0];R&&(CZ(this),this.MJ||(this.j("touchmove",this.JX),this.j("touchend",this.G6),this.j("touchcancel",this.G6),this.D=R.identifier,b=b.target,this.Y||(this.Y=!0,this.publish("hoverstart",R.pageX,R.pageY,b)),this.publish("hovermove",R.pageX,R.pageY,b),this.G&&(this.X=!0,this.publish("dragstart",R.pageX,R.pageY,b),this.publish("dragmove",R.pageX,R.pageY,b))))}JX(b){const R= lsw(this,b);R&&(this.G&&b.preventDefault(),b=b.target,this.publish("hovermove",R.pageX,R.pageY,b),this.G&&this.publish("dragmove",R.pageX,R.pageY,b))}G6(b){const R=lsw(this,b);if(R){CZ(this);Va(this);this.Y=!1;const h=b.target;this.G&&(this.C||b.preventDefault(),this.X=!1,this.publish("dragend",R.pageX,R.pageY,h));this.publish("hoverend",R.pageX,R.pageY,h)}}X5(){this.G&&(g.qN&&this.target.removeAttribute("draggable"),this.target.style.touchAction="");CZ(this);super.X5()}};pb2=!1;var umw=class extends g.w{constructor(b,R){super({B:"div",F5:["ytp-overlay","ytp-speedmaster-overlay"],W:[{B:"div",Z:"ytp-speedmaster-user-edu",W:[{B:"div",Z:"ytp-speedmaster-label",IH:R},{B:"div",Z:"ytp-speedmaster-icon",IH:"{{icon}}"}]}]});this.A=b;this.G=this.yX("ytp-speedmaster-user-edu");this.updateValue("icon",rax());g.Nv(this.G,"ytp-speedmaster-has-icon");this.A.createClientVe(this.G,this,173040,!0);this.S()}S(){g.MN(this.element,"display","none");this.A.logVisibility(this.G,!1)}};var Xhq=class extends oV{constructor(b){super(b);this.V=this.X=!1;this.Y=new g.Ke(b);g.n(this,this.Y);this.U="2x";this.speedmasterUserEdu=new umw(b,this.U);g.n(this,this.speedmasterUserEdu);g.dL(this.api,this.speedmasterUserEdu.element,4);this.G=new g.Nm(this.api.tX().v2,!0,null,!1,!0);g.n(this,this.G);this.delay=new g.bI(this.T6,500,this);g.n(this,this.delay);this.Y.j(b,"videodatachange",()=>{LZ(this)},this); this.Y.j(b,"presentingplayerstatechange",()=>{LZ(this)},this); this.Y.j(b,"autonavvisibility",()=>{LZ(this)},this); this.api.SS().subscribe("visibilitystatechange",()=>{LZ(this)}); this.Y.j(b,"rootnodemousedown",R=>{this.D=R}); this.N("web_speedmaster_spacebar_control")&&(this.Y.j(b,"keyboardserviceglobalkeydown",(R,h)=>{this.G6=h;BET(this,R,h.A0,!0)},this),this.Y.j(b,"keyboardserviceglobalkeyup",R=>{BET(this,R,!1,!1)},this))}C(b,R){this.HY()||(this.K=[b, R],this.G.subscribe("dragmove",this.J,this),this.G.subscribe("dragend",this.S,this),this.X||this.delay.qa())}T6(){if(this.V){this.X=!0;this.nR=this.api.getPlaybackRate();this.MJ=this.api.getPlayerStateObject().isPaused();var b=this.speedmasterUserEdu;g.MN(b.element,"display","");b.A.logVisibility(b.G,!0);this.api.setPlaybackRate(2);this.api.hideControls();this.api.playVideo();this.D&&(this.D.mq=!0);this.G6&&(this.G6.pn=!0);this.N("enable_smart_skip_speedmaster_on_web")&&this.api.publish("speedmasterchanged", !0)}}J(b,R){if(!this.X){b=[b,R];var h=this.K;h&&b&&h.length===2&&b.length===2?(R=Math.abs(h[0]-b[0]),h=Math.abs(h[1]-b[1]),R=Math.sqrt(R*R+h*h)):R=-1;R<10?this.K=b:rY(this)}}S(){rY(this)}};var VNe=class extends oV{constructor(b){super(b);this.Y=new Set;this.G={};this.events=new g.Ke(b);g.n(this,this.events);this.events.j(b,"videodatachange",R=>{R==="newdata"&&(this.api.lj("stationsEmbargo"),this.api.lj("stationsMetadataUpdate"),this.G={},this.Y.clear());R=this.api.getVideoData().dh;const h=R.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_STATION_AIRING_EMBARGO");h&&HxK(this,h,"stationsEmbargo");(R=R.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_STATION_METADATA_UPDATE"))&&HxK(this,R,"stationsMetadataUpdate")}); this.events.j(b,g.fM("stationsEmbargo"),R=>{this.api.aU(!0);var h=this.G[R.id]??[];for(const K of h){h=K.embargo;if(!h)continue;this.api.hideControls();this.api.ij("auth",2,kI(h.errorRenderer.reason),ba({embargoed:1,id:R.id,idx:R.Y,start:R.start}));(h=h.onTrigger)&&g.rw(this.api,"innertubeCommand",h)}}); this.events.j(b,g.fM("stationsMetadataUpdate"),R=>{R=this.G[R.id]??[];for(const h of R)(R=h.command)&&g.rw(this.api,"innertubeCommand",R)})}};var CcP=class extends g.av{constructor(b,R,h){super(R,b);this.G=h}preventDefault(){super.preventDefault();this.G&&this.G.preventDefault()}stopPropagation(){super.stopPropagation();this.G&&this.G.stopPropagation()}};g.QE=class extends r4B{constructor(b){super();this.G=b;this.Zr={};this.listener=R=>{this.dispatchEvent(new CcP(this,R.type,R))}}J(){return!0}isView(){return!1}Ty(){return!1}hO(){return this.G}E8(){return this.G.src}xZ(b){const R=this.getPlaybackRate(); this.G.src=b;this.setPlaybackRate(R)}pR(){this.G.removeAttribute("src")}getPlaybackRate(){try{return this.G.playbackRate>=0?this.G.playbackRate:1}catch{return 1}}setPlaybackRate(b){this.getPlaybackRate()!==b&&(this.G.playbackRate=b);return b}b3(){return this.G.loop}setLoop(b){this.G.loop=b}canPlayType(b,R){return this.G.canPlayType(b,R)}isPaused(){return this.G.paused}isSeeking(){return this.G.seeking}isEnded(){return this.G.ended}JX(){return this.G.muted}U(b){la();this.G.muted=b}S(){return this.G.played|| DA([],[])}w4(){let b;try{b=this.G.buffered}catch{}return b||DA([],[])}K(){return this.G.seekable||DA([],[])}vY(){const b=this.G;return b.getStartDate?b.getStartDate():null}getCurrentTime(){return this.G.currentTime}setCurrentTime(b){this.G.currentTime=b}getDuration(){return this.G.duration}load(){const b=this.G.playbackRate;try{this.G.load()}catch{}this.G.playbackRate=b}pause(){this.G.pause()}play(){const b=this.G.play();if(!b||!b.then)return null;b.then(void 0,()=>{}); return b}X(){return this.G.readyState}NJ(){return this.G.networkState}Oi(){return this.G.error?this.G.error.code:null}e6(){return this.G.error?this.G.error.message:""}getVideoPlaybackQuality(){if(window.HTMLVideoElement&&this.G instanceof window.HTMLVideoElement&&this.G.getVideoPlaybackQuality)return this.G.getVideoPlaybackQuality();if(this.G){var b=this.G;const R=b.webkitDroppedFrameCount;if(b=b.webkitDecodedFrameCount)return{droppedVideoFrames:R||0,totalVideoFrames:b}}return{}}R0(){return!!this.G.webkitCurrentPlaybackTargetIsWireless}gW(){return!!this.G.webkitShowPlaybackTargetPicker()}togglePictureInPicture(){const b= this.G,R=window.document;window.document.pictureInPictureEnabled?this.G!==R.pictureInPictureElement?b.requestPictureInPicture():R.exitPictureInPicture():p4()&&b.webkitSetPresentationMode(b.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}Ay(){var b=this.G;return new g.CP(b.offsetLeft,b.offsetTop)}getSize(){return g.lu(this.G)}setSize(b){g.pK(this.G,b)}getVolume(){return this.G.volume}setVolume(b){la();this.G.volume=b}CR(b){this.Zr[b]||(this.G.addEventListener(b,this.listener), this.Zr[b]=this.listener)}setAttribute(b,R){this.G.setAttribute(b,R)}removeAttribute(b){this.G.removeAttribute(b)}hasAttribute(b){return this.G.hasAttribute(b)}C(){return CX(this.G)}Lb(b){g.Nv(this.G,b)}nR(b){return g.wM(this.G,b)}RH(){return g.gM(document.body,this.G)}audioTracks(){const b=this.G;if("audioTracks"in b)return b.audioTracks}X5(){for(const b of Object.keys(this.Zr))this.G.removeEventListener(b,this.Zr[b]);super.X5()}Zl(b){this.G.disableRemotePlayback=b}};g.QE.prototype.D=RK(59); g.QE.prototype.MJ=RK(57);g.QE.prototype.T6=RK(55);g.QE.prototype.G6=RK(53);var tW=class extends g.w{constructor(b,R){super({B:"div",Z:"ytp-horizonchart"});this.sampleCount=150;this.V=b;this.S=R;this.index=0;this.heightPx=-1;this.X=this.Y=null;this.G=2;this.element.style.width=`${this.G*this.sampleCount}px`;this.element.style.height="1em"}};var qmH=class extends g.w{constructor(b){var R=null;R={B:"button",F5:["ytp-sfn-close","html5-video-info-panel-close","ytp-button"],O:{title:"close"},IH:"[X]"};super({B:"div",F5:["html5-video-info-panel","ytp-sfn"],W:[R,{B:"div",F5:["html5-video-info-panel-content","ytp-sfn-content"],W:[{B:"div",W:[{B:"div",IH:"Video ID / sCPN"},{B:"span",IH:"{{video_id_and_cpn}}",Z:"ytp-sfn-cpn"}]},{B:"div",W:[{B:"div",IH:"Viewport / Frames"},{B:"span",IH:"{{dims_and_frames}}"}]},{B:"div",W:[{B:"div",IH:"Current / Optimal Res"}, {B:"span",IH:"{{resolution}}"}]},{B:"div",W:[{B:"div",IH:"Volume / Normalized"},{B:"span",IH:"{{volume}}"}]},{B:"div",W:[{B:"div",IH:"Codecs"},{B:"span",IH:"{{codecs}}"}]},{B:"div",O:{style:"{{shader_info_style}}"},W:[{B:"div",IH:"Shader Info"},{B:"span",IH:"{{shader_info}}"}]},{B:"div",O:{style:"{{color_style}}"},W:[{B:"div",IH:"Color"},{B:"span",IH:"{{color}}"}]},{B:"div",O:{style:"{{drm_style}}"},W:[{B:"div",IH:"Protected"},{B:"span",IH:"{{drm}}"}]},{B:"div",O:{style:"{{bandwidth_style}}"},W:[{B:"div", IH:"Connection Speed"},{B:"span",W:[{B:"span",IH:"{{bandwidth_chart}}"},{B:"span",IH:"{{bandwidth_kbps}}"}]}]},{B:"div",O:{style:"{{network_activity_style}}"},W:[{B:"div",IH:"Network Activity"},{B:"span",W:[{B:"span",IH:"{{network_activity_chart}}"},{B:"span",IH:"{{network_activity_bytes}}"}]}]},{B:"div",W:[{B:"div",IH:"Buffer Health"},{B:"span",W:[{B:"span",IH:"{{buffer_health_chart}}"},{B:"span",IH:"{{buffer_health_seconds}}"}]}]},{B:"div",O:{style:"{{live_latency_style}}"},W:[{B:"div",IH:"Live Latency"}, {B:"span",W:[{B:"span",IH:"{{live_latency_chart}}"},{B:"span",IH:"{{live_latency_secs}}"}]}]},{B:"div",O:{style:"{{live_mode_style}}"},W:[{B:"div",IH:"Live Mode"},{B:"span",IH:"{{live_mode}}"}]},{B:"div",O:{style:"{{playback_categories_style}}"},W:[{B:"div",IH:"Playback Categories"},{B:"span",IH:"{{playback_categories}}"}]},{B:"div",O:{style:"{{fmt_debug_info_style}}"},W:[{B:"div",IH:"Format Debug Info"},{B:"span",IH:"{{fmt_debug_info}}"}]},{B:"div",W:[{B:"div",IH:"Mystery Text"},{B:"span",IH:"{{debug_info}}"}]}, {B:"div",O:{style:"{{extra_debug_info_style}}"},W:[{B:"div",IH:""},{B:"span",W:[{B:"span",IH:"{{extra_debug_info}}"}]}]},{B:"div",W:[{B:"div",IH:"Date"},{B:"span",IH:"{{date}}"}]},{B:"div",O:{style:"{{cotn_and_local_media_style}}"},W:[{B:"div",IH:"COTN / Local Media"},{B:"span",IH:"{{cotn_and_local_media}}"}]},{B:"div",O:{style:"{{release_style}}"},W:[{B:"div",IH:"Player Release"},{B:"span",IH:"{{release_name}}"}]}]}]});this.qJ=b;this.position=0;this.S=!0;R?this.j(this.yX("ytp-sfn-close"),"click", this.hide):this.j(this.element,"click",this.hide);b=[0,18750,37500,81250,128E3,256E3,512E3,2048E3,8192E3,32768E3,131072E3];R="#000 #d53e4f #f46d43 #fdae61 #fee08b #e6f598 #abdda4 #66c2a5 #3288bd #124588 #fff".split(" ");const h=b.map(K=>K/4); this.D={};this.G=new tW(b,R);g.n(this,this.G);this.updateValue("bandwidth_chart",this.G);this.X=new tW([0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.n(this,this.X);this.updateValue("live_latency_chart",this.X);this.Y=new tW([0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.n(this,this.Y);this.updateValue("buffer_health_chart",this.Y);this.J=new tW(h,R);g.n(this,this.J);this.updateValue("network_activity_chart",this.J);this.delay= new g.bI(this.bv,500,this);g.n(this,this.delay);this.V=new g.bI(this.K,2E4,this);g.n(this,this.V)}show(){super.show();this.bv()}hide(){super.hide();this.delay.stop();this.V.stop()}bv(){var b=(0,g.c)(),R=We(this.qJ);wY(this.G,R.bandwidth_samples);wY(this.J,R.network_activity_samples);wY(this.X,R.live_latency_samples);wY(this.Y,R.buffer_health_samples);const h={};for(const [K,I]of Object.entries(R)){R=K;const N=I;this.D[R]!==N&&(h[R]=" "+String(N));this.D[R]=N}this.update(h);b=(0,g.c)()-b>25?5E3:500; this.delay.start(b)}K(){this.S?(this.position+=1,this.position>15&&(this.S=!1)):(--this.position,this.position<=0&&(this.S=!0));this.element.style.left=`${this.position}%`;this.element.style.top=`${this.position}%`;this.V.start(2E4)}};var MNs=class extends oV{constructor(b){super(b);L(b,"getStatsForNerds",()=>We(this.api)); La(b,"showVideoInfo",()=>{dnq(this,!0)}); La(b,"hideVideoInfo",()=>{dnq(this,!1)}); La(b,"isVideoInfoVisible",()=>!!this.Jc?.Cm())}};var jV=class extends g.N3{constructor(){super();this.Y=null;this.startTime=this.duration=0;this.delay=new g.F7(this.G,null,this);g.n(this,this.delay)}G(){var b=(0,g.c)()-this.startTime;b=b{this.button=new Lm2(b);g.n(this,this.button);b.eV(this.button,"RIGHT_CONTROLS_RIGHT")})}};var Fmq=class extends oV{constructor(b){super(b);this.MJ={TIMELY_ACTION_TRIGGER_TYPE_UNSPECIFIED:()=>!1, TIMELY_ACTION_TRIGGER_TYPE_KEYBOARD_SEEK:R=>ixK(this,R), TIMELY_ACTION_TRIGGER_TYPE_PROGRESS_BAR_SEEK:R=>ixK(this,R), TIMELY_ACTION_TRIGGER_TYPE_PLAYER_CONTROLS_SHOWN:()=>this.api.L().experiments.O9("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")?this.J&&this.U:this.J&&this.K, TIMELY_ACTION_TRIGGER_TYPE_SPEEDMASTER:()=>this.T6}; this.T6=this.U=this.K=this.J=!1;this.S={};this.events=new g.Ke(b);g.n(this,this.events);this.D=new g.Nm(this.api.tX().v2);g.n(this,this.D);if(this.api.N("enable_smart_skip_web_player_bar_hover_length_threshold")&&g.fg(this.api.L().experiments,"smart_skip_web_player_bar_min_hover_length_milliseconds")){const R=g.fg(this.api.L().experiments,"smart_skip_web_player_bar_min_hover_length_milliseconds");this.C=new g.bI(this.V,R,this);g.n(this,this.C)}this.events.j(b,"videodatachange",(R,h)=>{if(R!=="dataupdated"|| h.videoId!==this.videoId||!aq(this.timelyActions,Sm2(h)))this.onVideoDataChange(h)}); this.events.j(b,"presentingplayerstatechange",R=>{this.dR(R)}); b.N("enable_smart_skip_player_controls_shown_on_web")&&(this.events.j(b,"onShowControls",()=>{this.J=!0;this.V()}),this.events.j(b,"onHideControls",()=>{this.J=!1}),this.D.subscribe("hoverstart",()=>{this.K=!0; this.V()},this),this.D.subscribe("hoverend",()=>{this.K=!1},this),b.N("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&(this.events.j(b,"progressBarHoverStart",()=>{this.U=!0; this.api.N("enable_smart_skip_web_player_bar_hover_length_threshold")?this.C?.qa():this.V()}),this.events.j(b,"progressBarHoverEnd",()=>{this.U=!1; this.api.N("enable_smart_skip_web_player_bar_hover_length_threshold")&&this.C?.stop()}))); b.N("enable_smart_skip_speedmaster_on_web")&&this.events.j(b,"speedmasterchanged",R=>{(this.T6=R)&&this.V()}); this.events.j(b,g.fM("timelyAction"),R=>{this.onCueRangeEnter(R.getId())}); this.events.j(b,g.yf("timelyAction"),R=>{this.onCueRangeExit(R.getId())}); b.N("web_enable_keyboard_shortcut_for_timely_actions")&&this.events.j(b,"keyboardserviceglobalkeydown",(R,h)=>{(mf?R.altKey:R.ctrlKey)&&R.keyCode===39&&this.G6&&this.G&&(R=g.Z(D9(this,this.G)?.rendererContext,NZD),R=P7(R?.onTap))&&(g.rw(this.api,"innertubeCommand",R),h&&(h.pn=!0),h=xI(),(R=AFe(h))&&iQB(h,R))},this); this.Y=new g.w({B:"div",F5:["ytp-player-content","ytp-timely-actions-content"]});this.Y.hide();L(b,"insertTimelyActionUi",R=>{this.Y.element.children.length>0&&g.zF(this.Y.element);R.classList.add("ytp-timely-actions-overlay");this.Y.element.appendChild(R)}); g.n(this,this.Y);this.N("web_player_overlay_positioned_layout")?this.events.j(b,"basechromeinitialized",()=>{this.api.Yk(this.Y.element,4,!0);this.Y.element.setAttribute("data-overlay-order","10")}):g.dL(this.api,this.Y.element,4)}onVideoDataChange(b){this.ZU(); this.videoId=b.videoId;this.X=this.G=void 0;this.timelyActions=Sm2(b);zUP(this);o7(this);this.f5()}dR(b){const R=b.oldState,h=b.state,K=h.seekSource;!R.G(16)&&h.G(16)?this.z_(K??void 0):R.G(16)&&!h.G(16)&&this.qV();b=b.state;b=!b.isCued()&&!b.G(1024);this.Y.sW(b)}f5(){const b=this.Vk();b&&this.api.f5(b)}ZU(){this.api.lj("timelyAction",1);if(this.G!==void 0)this.onCueRangeExit(this.G)}Vk(){if(this.timelyActions){var b=[];for(const h of this.timelyActions){var R=h.startTimeMilliseconds!=null&&h.endTimeMilliseconds!= null&&h.cueRangeId!=null?new g.gL(Number(h.startTimeMilliseconds),Number(h.endTimeMilliseconds),{id:h.cueRangeId,namespace:"timelyAction"}):void 0;R&&b.push(R)}return b}}onCueRangeEnter(b){const R=D9(this,b);R&&this.S[b]!==void 0&&(R.maxShowCount===void 0||R?.maxShowCount>this.S[b])&&(this.G=b,this.V())}onCueRangeExit(b){const R=UnP(this,b);R&&this.G===b&&g.rw(this.api,"innertubeCommand",R);o7(this);this.G=void 0}z_(b){this.X=b}qV(){this.V();this.X=void 0}V(){if(this.G!==void 0){var b=(b=D9(this, this.G))&&b.onCueRangeEnter?P7(b.onCueRangeEnter):void 0;var R=D9(this,this.G);a:if(R&&R.additionalTrigger){for(h of R.additionalTrigger)if(h.type&&(0,this.MJ[h.type])?.(h.args??{})){var h=!0;break a}h=!1}else h=!0;b&&h&&(g.rw(this.api,"innertubeCommand",b),G_K(this,R),this.S[this.G]!==void 0&&this.S[this.G]++,this.G6=!0)}}X5(){this.timelyActions=this.X=this.G=this.videoId=void 0;this.S={};this.ZU();o7(this);super.X5()}};var oLK=class extends oV{constructor(b){super(b);b=window;var R=this.api.L().Mj();R.G.WY(yW2)?(R=[],b.ytPlayerArraySizeExperimentLength=R.length,b.ytPlayerArraySizeExperimentValue=R[0]):R.G.WY(fte)?(R="6LPTkck/iK3Q7HMwz7Zyg71LBC0 buD oK+f O5w1 a ns4dbB O sCTaU5B4GI / ebOXx/5DGOwDMt1CEaJxccW+OaQtE zYkklE D4Kspm WDky G s0Vj4uvrd eLSfss l B1D/tiB9kUaZ+S SUWnD oGfGji rRpkB Jg O1 czi9 R Wl4 D94+hDF KOX stfyToM l8v9IJ KZi G A/2wZ 0Qfq 3kv3QDUZOWRK erN3h3b i j tdYdy kl u FBFdIp72yKKL/T rO ym cJYXYi8 yz+ ycc6jftJvwlWp ac s7m+LzqFtVOrgm7z0Z5Q/8Npyo19C B MFZkvXTvZR59/ IKgbLr56eq4Gs JiTE6RRv2HmCWEy Jb+OG u7Ui9+Uy 2FhggtkS7H+rbrOWFb565UNsslsXF i 1CLXS6 bW 6wRdeNJzE gvPRbDS3yqGyk+DHWJU+8pCy8FiGbRXFr2m 3 5GOYU7DuLxi5tbaWKEUSnPYd0ZdsaJY 5 wy9W8enoXtF70HcJfDja0FFaVcIlv Krj7JRMtiVWxQiqDYJqQf8d+Yhvqo WX eAqMs9UttnWTxsaY gcOb/6JXqGHdb5A7TVlpS9kTPq prg 3nD M7c rxwkg2JVkNqS4PtC2P+YzOfoYOdLc i gHNfRWcg3TaR CEKsZBM VfI V1VupF9DkyxK/ k7iWF+tWtW+RaVdPk6H3X 0GcnAiuJXyd7nC/ORmzb/HGrnvBms 6k NmQ2 aGB3blYR9pxhHrY Sk0Y/7tBGJ9EaTbTwoJGWt6 ijhACaixJX vh kwC00l 5QSqhiYiieEvBUYd7S SSRtsEjUFle/8v os".split(" "), b.ytPlayerArraySizeExperimentLength=R.length,b.ytPlayerArraySizeExperimentValue=R[Math.floor(Math.random()*R.length)]):R.G.WY(dX2)&&(R="a Y1bKqzJ s0Vj4uvrd x+ G stfyToM 7W xsHJ KZi 5 H2+ buD / 3 15 76VyLn4q6B SUWnD XF Ml D9/q oK+f K+ eLSfss B rlJLVN wy9W8enoXtF70HcJfDja0FFaVcIlv yLwl WDky asfV3x j KOX /I M FL czi9 b qfSz0ipS DQ m68 u7Ui9+Uy 61 K5xdXVLZb 1e sm BzwWNM gjQS0e hJ l3 zUJAT rRpkB I0j5 DPZ/ gcOb/6JXqGHdb5A7TVlpS9kTPq Hn 7m WwesQPUzST n51 B1D/tiB9kUaZ+S TKXw0mTsQ imMcmOcJbtBm2iiT gvPRbDS3yqGyk+DHWJU+8pCy8FiGbRXFr2m V2 ac s7 D4Kspm j 7I Z4U+fzdVIKP99m 8l 72 Nh5 ab XgH8Lzvf/8e92nICvOm8 gZ O OVRfzTvv99f6a Ng G oGfGji Xr O0 +y uM a6 mb ImnAv LKuVPy OlPbi N483sfs uP A7 71DqBndyU3GS6bIzA zS fts2 ky A/2wZ 0Qfq Zfvd5Pn4776zeP5oPc aI vTeKTkO bhbbE sd os zYkklE CEKsZBM V1VupF9DkyxK/ ebOXx/5DGOwDMt1CEaJxccW+OaQtE tdYdy rO iy34HMOZpoG 2P Jb+OG 7V6 U6 D94+hDF RN RjTb6s9dI1z3sbX2Z n5Jc3 u8 sCTaU5B4GI kEvjgcbIMe a be5m6OlQPwiJOhQ t5 SKU/ XKCZgrGIc3wy+ RX JgMLCGK hTtIGwjH1fcQWLu 30 Pt Mk8cYLj6WiDpDJN zO0ox JD ygD8z hp TtR HX+B89Khozs4 G MxY0 CdMDbBR bQ47h 7N i B90/Ls3uwfIR+zJE pM iAtM6ngY20Xjova0ANGS+MWXtw WF JMLr8w 8W 07 Lq9jaVTdvqKUcBE+lcgF7T3+rj8eLe/W9Gx6pMjv+q Av l lEIzH+OY FqDusHkb z7 pr8bo8c/VS pMPt A6 rxwkg2JVkNqS4PtC2P+YzOfoYOdLc Ca cX Iw2D fp5 erN3h3b FOM 6k 6W/+L21S0BgHkyXSeXgiZEFNnD bW UNvcj1zvh8 I3TZF5 Jg xw vG Ia9v 5QSqhiYiieEvBUYd7S tA nY LJ ym Krj7JRMtiVWxQiqDYJqQf8d+Yhvqo LQhs6cZhK2 0wDpZFkrDy K9nzX D99+akDyTHqVZ5oc vh o+H0k SG s7m+LzqFtVOrgm7z0Z5Q/8Npyo19C XT Ba R Q4 X k7iWF+tWtW+RaVdPk6H3X kwC00l R+km6jn4lEte 6c O/E2WbIgQZp1fX6M15U6V4Cn2VEhA/o1gqaZrT W35r8t FM Sk0Y/7tBGJ9EaTbTwoJGWt6 59N5n p2 dc/6x6Ue8NTkG8Eq 3kv3QDUZOWRK bEp8Cdrszr5 7/ YF 0EGSTB RQ MFZkvXTvZR59/ sU aQ ++ kl u FM8tJsLmwDZGwNxLT3UB8U+Oqq M7c cJYXYi8 Joavny ul O1 Yo PzjTAnVHpDMOOfHYH7PRH5cM ns4dbB jz 0MqMKs EC 5i /PSB9 FSr5qF2R kXioSwTShtq5feiVSbNLRWdm8JtU ses mL J84d RA eAqMs9UttnWTxsaY YqL+09b l8v9IJ VfI Un5oe aghMX806dvo tfkKluaA tWZ0RiNdY ha /++SfI 78y wMv/BMy w4igDN5fJhU/ ijhACaixJX 9s+4w/ i f7 g33AqPrwozIBbUR 2W I5xT3pY5tk3rrjxU4XaqE3JsSS1Y+LA0zCg IKgbLr56eq4Gs WX 2U 3EX5fOxmA pD V8eT3N6k ShiYcW72d5b NmQ2 Mx yz+ ycc6jftJvwlWp aGB3blYR9pxhHrY bWti1J FBFdIp72yKKL/T 2FhggtkS7H+rbrOWFb565UNsslsXF ePmsAY5V ca rZ prg 5 5GOYU7DuLxi5tbaWKEUSnPYd0ZdsaJY ec8TP 6wRdeNJzE BV NrX25+/J8LYtUk O5w1 0GcnAiuJXyd7nC/ORmzb/HGrnvBms hGs6kinOmHXn QoQ Wl4 +S1B mv Jo 671 QGZ 5ru JiTE6RRv2HmCWEy v5vpHQ5jXX5RZgSVfA7P9Keq/9 ngi k3cqFr12egl66d89FwnoKFk dF+d5SEX0slenHxkb+cmSyeQohfO i R gHNfRWcg3TaR EwPA 5banN SSRtsEjUFle/8v szO04kG7irS7lBIpOjUf 51 8Vh6p 3nD ii6 QDM3wl8PVhEf5fF".split(" "), b.ytPlayerArraySizeExperimentLength=R.length,b.ytPlayerArraySizeExperimentValue=R[Math.floor(Math.random()*R.length)])}};var D7s=class extends oV{constructor(b){super(b);La(this.api,"getPlaybackRate",()=>this.api.getPlaybackRate()); La(this.api,"setPlaybackRate",R=>{typeof R==="number"&&this.api.setPlaybackRate(R)})}};var nC3=class extends Db{constructor(b,R,h,K){super("Mejora de voz",g.wU.DI);this.A=b;this.V=R;this.X=h;this.getVoiceBoostState=K;this.Y=!1;this.Gy=this.A.N("html5_enable_new_audio_settings_menu")?b.yA().Kx:b.yA();this.j(b,"onFilterAudioFeatures",this.ZQ);this.setIcon({B:"svg",O:{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{B:"path",O:{d:"M11.48 2.14 3.91 6.68A6 6 0 0 0 1 11.83v.33a6 6 0 0 0 2.91 5.14l7.57 4.54A1 1 0 0 0 13 21V3a1.00 1.00 0 0 0-1.51-.85Zm6.88 2.07a1 1 0 0 0-.00 1.41 9 9 0 0 1 0 12.72 1 1 0 0 0 1.41 1.41 11 11 0 0 0 0-15.55 1 1 0 0 0-1.41 0ZM4.94 8.40l.00-.00L11 4.76v14.46l-6.05-3.63A4 4 0 0 1 3 12.16v-.33a4 4 0 0 1 1.94-3.42ZM15.53 7.05a1 1 0 0 0 0 1.41 5 5 0 0 1 0 7.07 1 1 0 0 0 1.41 1.41 6.99 6.99 0 0 0 0-9.9 1 1 0 0 0-1.41 0Z"}}]}); this.subscribe("select",this.S,this);this.ZQ()}S(b){this.V(b?2:1)}ZQ(){var b=this.A.getPresentingPlayerType();b===2||b===3?this.Y&&(this.Y=!1,this.Gy.yn(this)):(b=this.getVoiceBoostState(),b!==1?(b===0?(this.G(this.X()===2),this.setEnabled(!0)):(this.G(!1),this.setEnabled(!1)),this.Y||(this.Gy.WH(this),this.Y=!0)):this.Y&&(this.Gy.yn(this),this.Y=!1))}X5(){this.Gy.yn(this);super.X5()}};var bbe=class extends oV{constructor(b){super(b);this.events=new g.Ke(b);g.n(this,this.events);const R=this.api.N("html5_enable_voice_boost");R&&this.events.j(b,"settingsMenuInitialized",()=>{ECT(this)}); L(this.api,"getVoiceBoostUserPreference",()=>R?this.getVoiceBoostUserPreference():0); L(this.api,"setVoiceBoostUserPreference",h=>{R&&this.setVoiceBoostUserPreference(h)}); L(this.api,"getVoiceBoostState",()=>R?this.getVoiceBoostState():1); this.G=M$e()??0;this.updateEnvironmentData()}getVoiceBoostUserPreference(){return this.G}setVoiceBoostUserPreference(b){this.api.YZ("vb_set",{pref:b});g.Iz("yt-player-voice-boost",b,31536E4);b!==this.G&&(this.G=b,this.updateEnvironmentData(),this.getVoiceBoostState()!==1&&this.api.Ji(),this.api.Lh())}getVoiceBoostState(){return this.api.qy(1)}updateEnvironmentData(){this.api.L().Te=this.G}};var Rix=class extends oV{constructor(b){super(b);this.useLivingRoomPoToken=!1;this.S=new g.d$;this.G=!1;this.vH=null;this.D=!1;this.V=null;this.J=!1;const R=b.L().getWebPlayerContextConfig();this.events=new g.Ke(b);g.n(this,this.events);this.events.j(b,"spsumpreject",(h,K,I)=>{this.J=K;h&&this.D&&!this.V&&(this.N("html5_generate_content_po_token")&&I?this.MH(I):this.N("html5_generate_session_po_token")&&QtT(this));this.V||this.api.YZ("stp",{s:+this.D,b:+this.J})}); this.events.j(b,"poTokenVideoBindingChange",h=>{this.MH(h)}); if(this.N("html5_web_po_on_demand_init")){const h=this.events.j(b,"videodatachange",(K,I)=>{I.C3&&!this.D&&(mnP(this),this.events.Ac(h))}) }this.useLivingRoomPoToken=!!R?.useLivingRoomPoToken;b.addEventListener("csiinitialized",()=>{this.vH=b.vI();this.N("html5_web_po_on_demand_init")?this.X=Qm():mnP(this)}); b.addEventListener("trackListLoaded",this.fN.bind(this));b.L$(this)}X5(){this.K&&(g.Pg(this.K),this.K=void 0);super.X5()}jN(){(this.Y?!this.G:this.X)&&RB(this)}fN(b,R,h){if(JHK(b)){var K=h||"";if(this.G)R=$7(this,K),k_D(b,R);else{var I=new g.d$;R.push(I.promise);this.S.promise.then(()=>{const N=$7(this,K);k_D(b,N);I.resolve()})}}}MH(b){if(this.Y||this.X)b.W7=$7(this,b.videoId),this.G||(this.V=new tn,this.S.promise.then(()=>{this.vH.bP("pot_if"); b.W7=$7(this,b.videoId)}))}};var oCB=class extends g.w{constructor(b){super({B:"div",F5:["ytp-more-videos-button","ytp-button"],O:{title:"{{title}}",role:"button",tabindex:"0","aria-hidden":"true"},W:[{B:"div",Z:"ytp-more-videos-button-thumbnail"},{B:"span",Z:"ytp-more-videos-button-title",IH:"{{title}}"}]});this.A=b;this.X=this.yX("ytp-more-videos-button-thumbnail");this.V=this.yX("ytp-more-videos-button-title");this.Y=new g.Ke(this);g.n(this,this.Y);this.Y.j(this.A,"videodatachange",this.G);this.G();this.listen("click",this.onClick); VHT(this,0);this.hide()}G(){var b=this.A.getVideoData({playerType:1});b=(b?.suggestions?.length?b.suggestions:b?.U()?[b.U()]:[])[0]?.hU("mqdefault.jpg");this.X&&b&&g.MN(this.X,"background-image",b?`url("${b}")`:"")}onClick(){this.A.logClick(this.element)}Na(b){this.sW([1,2].includes(b));VHT(this,b)}sW(b){super.sW(b);this.element.setAttribute("aria-hidden",String(!b));b&&this.G()}X5(){super.X5()}};g.hiK=class extends g.w{constructor(b){const R=b.L(),h=g.I5||g.HG?{style:"will-change: opacity"}:void 0,K=R.V,I=["ytp-modern-videowall-still"];R.Y&&I.push("ytp-videowall-show-text");super({B:"a",F5:I,O:{href:"{{url}}",target:K?R.U:"","aria-label":"{{aria_label}}","data-is-live":"{{is_live}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},W:[{B:"div",Z:"ytp-modern-videowall-still-image",O:{style:"{{background}}"},W:[{B:"span",Z:"ytp-modern-videowall-still-info-duration",IH:"{{duration}}"}]}, {B:"span",Z:"ytp-modern-videowall-still-info",O:{"aria-hidden":"true"},W:[{B:"span",Z:"ytp-modern-videowall-still-info-bg",W:[{B:"span",Z:"ytp-modern-videowall-still-info-content",O:h,W:[{B:"span",Z:"ytp-modern-videowall-still-info-title",IH:"{{title}}"},{B:"span",Z:"ytp-modern-videowall-still-info-author",IH:"{{author}}"},{B:"span",Z:"ytp-modern-videowall-still-view-count-and-date-info",IH:"{{views_and_publish_time}}"},{B:"span",Z:"ytp-modern-videowall-still-info-live",IH:"En directo"}]}]}]},{B:"span", F5:["ytp-modern-videowall-still-listlabel-regular","ytp-modern-videowall-still-listlabel"],O:{"aria-hidden":"true"},W:[{B:"span",Z:"ytp-modern-videowall-still-listlabel-icon"},"Lista de reproducci\u00f3n",{B:"span",Z:"ytp-modern-videowall-still-listlabel-length",W:[" (",{B:"span",IH:"{{playlist_length}}"},")"]}]},{B:"span",F5:["ytp-modern-videowall-still-listlabel-mix","ytp-modern-videowall-still-listlabel"],O:{"aria-hidden":"true"},W:[{B:"span",Z:"ytp-modern-videowall-still-listlabel-mix-icon"}, "Mix",{B:"span",Z:"ytp-modern-videowall-still-listlabel-length",IH:" (50+)"}]}]});this.suggestion=null;this.Y=K;this.api=b;this.G=new g.Ke(this);g.n(this,this.G);this.listen("click",this.onClick);this.listen("keypress",this.onKeyPress);this.G.j(b,"videodatachange",this.onVideoDataChange);b.createServerVe(this.element,this);this.onVideoDataChange()}select(){this.api.BZ(this.suggestion.videoId,this.suggestion.sessionData,this.suggestion.playlistId,void 0,void 0,this.suggestion.v3||void 0)&&this.api.logClick(this.element)}onClick(b){if(g.Fo(this.api.L())&& this.api.N("web_player_log_click_before_generating_ve_conversion_params")){this.api.logClick(this.element);let R=this.suggestion.Ba();const h={};g.Hr(this.api,h);R=g.z9(R,h);g.Tq(R,this.api,b)}else g.Ez(b,this.api,this.Y,this.suggestion.sessionData||void 0)&&this.select()}onKeyPress(b){switch(b.keyCode){case 13:case 32:b.defaultPrevented||(this.select(),b.preventDefault())}}onVideoDataChange(){const b=this.api.getVideoData(),R=this.api.L();this.Y=b.C0?!1:R.V}};var FfK=class extends g.w{constructor(b,R){const h=b.N("web_player_use_more_videos_button");super({B:"div",F5:["ytp-fullscreen-grid"],W:[{B:"div",Z:"ytp-fullscreen-grid-hover-overlay",O:{"aria-keyshortcuts":"v","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-fullscreen-grid-expand-button","data-tooltip-offset-y":"-70"}},{B:"div",Z:"ytp-fullscreen-grid-buttons-container",W:h?[]:[{B:"button",F5:["ytp-fullscreen-grid-expand-button","ytp-button"],O:{"aria-keyshortcuts":"v", "data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-fullscreen-grid-expand-button","data-tooltip-offset-y":"-10"},W:["{{icon}}"]}]},{B:"div",Z:"ytp-fullscreen-grid-main-content",W:[{B:"div",Z:"ytp-fullscreen-grid-stills-container"}]}]});this.player=b;this.stills=[];this.videoData=null;this.currentState=0;this.J=h;this.nR=this.player.N("web_player_use_external_grid_component");(this.MJ=this.player.N("web_player_enable_horizontal_endscreen_shelf"))&&g.Nv(this.player.getRootNode(), "ytp-enable-horizontal-endscreen-shelf");this.V=this.yX("ytp-fullscreen-grid-main-content");this.C=this.yX("ytp-fullscreen-grid-stills-container");this.K=this.yX("ytp-fullscreen-grid-buttons-container");this.J&&(this.S=new oCB(this.player),this.K.appendChild(this.S.element),g.n(this,this.S),this.j(this.S.element,"click",this.U));this.nR&&(this.C.style.display="none");this.D=new g.Ke(this);g.n(this,this.D);this.T6=R;if(this.V&&this.C){if(b=this.yX("ytp-fullscreen-grid-hover-overlay"))this.j(b,"click", this.U),Ny(this.player,b,this);!this.J&&(b=this.yX("ytp-fullscreen-grid-expand-button"))&&(this.j(b,"click",this.U),Ny(this.player,b,this));if(b=this.player.getVideoData({playerType:1}))this.videoData=b;this.player.createClientVe(this.V,this,223051);this.D.j(this.player,"videodatachange",this.onVideoDataChange)}}X5(){this.hide();this.D.Y();g.IZ(this.stills);this.stills.length=0;this.X&&(this.X.remove(),this.X=void 0);this.G&&(this.G.remove(),this.G=void 0);this.Y&&(this.Y.remove(),this.Y=void 0); super.X5()}setCommentsButton(b){b!==this.G&&(this.G&&this.G.remove(),this.G=b)&&(g.Nv(this.G,"ytp-fullscreen-grid-action-button"),this.K.appendChild(this.G))}setDescriptionButton(b){b!==this.Y&&(this.Y&&this.Y.remove(),this.Y=b)&&(g.Nv(this.Y,"ytp-fullscreen-grid-action-button"),UU(this.K,this.Y,0))}U(b){this.T6&&this.T6(b)}onVideoDataChange(){if(!this.nR){this.videoData=this.player.getVideoData({playerType:1});var b=(this.videoData?.suggestions?.length?this.videoData?.suggestions:this.videoData?.U()? [this.videoData?.U()]:[]).slice(0,18),R=this.C;if(R&&this.V)if(g.zF(R),b.length){this.stills.length>b.length&&g.IZ(this.stills.splice(b.length));this.stills.length=b.length;for(let h=0;h{lf(this)}); R.j(b,"videodatachange",()=>{if(this.V){var h=this.api.getVideoData({playerType:1});this.videoData!==h&&this.X===2&&(g.lI(this.api.getRootNode(),"ytp-grid-scrolling"),vs(this,1,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"));this.videoData=h}},this); R.j(b,"sizestylechange",()=>{this.V&&lf(this)}); L(this.api,"setFullscreenQuickActions",h=>{this.setFullscreenQuickActions(h)}); L(this.api,"setPlayerOverlayVideoDetailsRenderer",h=>{this.setPlayerOverlayVideoDetailsRenderer(h)}); this.MJ&&L(this.api,"setFullscreenGrid",h=>{this.setFullscreenGrid(h)}); L(this.api,"setCommentsButton",h=>{this.setCommentsButton(h)}); L(this.api,"setDescriptionButton",h=>{this.setDescriptionButton(h)}); this.V&&bye(this,R,b)}JX(){this.V&&this.X!==0&&this.C("INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK")}C(b){this.V&&(b==="INTERACTION_LOGGING_GESTURE_TYPE_SCROLL_BEGAN_DRAGGING"&&(this.G6&&clearTimeout(this.G6),this.G6=window.setTimeout(()=>{this.G6=null},1E3)),this.X===1?vs(this,2,b):vs(this,1,b))}setFullscreenGrid(b){if(this.MJ&&this.Y){var R=this.Y; R.nR&&b!==R.X&&(R.X&&R.X.remove(),R.X=b,R.X&&R.V.appendChild(R.X))}}setCommentsButton(b){this.Y&&this.Y.setCommentsButton(b)}setDescriptionButton(b){this.Y&&this.Y.setDescriptionButton(b)}setFullscreenQuickActions(b){this.nR&&this.nR.remove();b?(g.Nv(b,"ytp-fullscreen-quick-actions"),this.N("web_player_overlay_positioned_layout")?(b.setAttribute("data-overlay-order","13"),this.api.Yk(b,4)):(g.Nv(this.api.getRootNode(),"ytp-has-fullscreen-quick-actions"),g.dL(this.api,b,4))):g.lI(this.api.getRootNode(), "ytp-has-fullscreen-quick-actions");this.nR=b;lf(this)}setPlayerOverlayVideoDetailsRenderer(b){this.playerOverlayVideoDetailsRenderer&&this.playerOverlayVideoDetailsRenderer.remove();if(b){g.Nv(b,"ytp-fullscreen-metadata");g.Nv(this.api.getRootNode(),"ytp-hide-fullscreen-title");b.setAttribute("data-overlay-order","1");var R=this.api.N("delhi_modern_web_player_fullscreen_metadata_bottom");const h=R?3:1;R=R?"ytp-fullscreen-metadata-bottom":"ytp-fullscreen-metadata-top";g.Nv(this.api.getRootNode(), R);this.N("web_player_overlay_positioned_layout")?this.api.Yk(b,h):g.dL(this.api,b,4)}else g.lI(this.api.getRootNode(),"ytp-hide-fullscreen-title"),g.lI(this.api.getRootNode(),"ytp-fullscreen-metadata-bottom"),g.lI(this.api.getRootNode(),"ytp-fullscreen-metadata-top");this.playerOverlayVideoDetailsRenderer=b;lf(this)}};var sWT=class extends oV{constructor(b){super(b);this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.Ke(b);g.n(this,this.events);this.events.j(b,"heartbeatRequest",R=>{if(this.freePreviewUsageDetails.length||this.freePreviewWatchedDuration!==null)R.heartbeatRequestParams||(R.heartbeatRequestParams={}),R.heartbeatRequestParams.unpluggedParams||(R.heartbeatRequestParams.unpluggedParams={}),this.freePreviewUsageDetails.length>0?R.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= this.freePreviewUsageDetails:R.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:`${this.freePreviewWatchedDuration}`}}); L(b,"setFreePreviewWatchedDuration",R=>{this.freePreviewWatchedDuration=R}); L(b,"setFreePreviewUsageDetails",R=>{this.freePreviewUsageDetails=R})}};var $ow=class extends g.N3{constructor(b){super();this.features=[];var R=new aJ3(b),h=new JZK(b),K=new SSP(b),I=new Rix(b);var N=g.bU(b.L())?void 0:new FEe(b);var p=new Gyw(b),l=new MNs(b),a=new D7s(b),v=new lJB(b);var B=g.bU(b.L())?new sWT(b):void 0;var H=b.L().getWebPlayerContextConfig()?.cinematicSettingsAvailable?new VQe(b):void 0;var q=new IJx(b);var d=b.N("enable_courses_player_overlay_purchase")?new pTP(b):void 0;var t=g.lv(b.L())?new sO2(b):void 0;var S=new ofq(b);var J=b.L().V?new bvH(b): void 0;var e=g.Fo(b.L())?new DOs(b):void 0;var Y=b.N("web_player_move_autonav_toggle")&&b.L().Ys?new XB3(b):void 0;var Q=g.lv(b.L())?new zWx(b):void 0;var P=b.N("web_enable_speedmaster")&&g.lv(b.L())?new Xhq(b):void 0;var $B=b.L().Cm?void 0:new whx(b);var IK=b.N("report_pml_debug_signal")?new OFK(b):void 0;var Pe=new gLe(b),U3=new JdT(b);var Zx=g.LW(b.L())?new YST(b):void 0;var Cw=navigator.mediaSession&&window.MediaMetadata&&b.L().d_?new U7q(b):void 0;var Ee=b.N("html5_enable_drc")&&!b.L().J?new wBT(b): void 0;var ce=new e6s(b);var WE=g.lv(b.L())?new x7w(b):void 0;var cE=new ELP(b);var G$=g.lv(b.L())&&b.N("web_sleep_timer")?new Z$D(b):void 0;var Vm=g.Fo(b.L())?new RTP(b):void 0;b.N("mweb_debug_sticky_settings");var Bg=new m7K(b);var Dp=new CBq(b),bg=new j3K(b);var Rp=b.N("enable_sabr_snackbar_message")?new cdT(b):void 0;var G=b.N("web_enable_timely_actions")?new Fmq(b):void 0;var Hp=new MQ3(b);var WI=b.L()?.getWebPlayerContextConfig()?.enableFullscreenComponentsFeature?new K0K(b):void 0;var SZ=new bbe(b); var F=b.N("web_player_loop_settings_menu")&&b.L().TG?new i$q(b):void 0;var cy=g.bU(b.L())?void 0:new kBP(b);var A=new kyx(b),u=new ZFw(b),Sa=new Wmq(b),nY=new cZq(b);var T2=g.lv(b.L())&&b.L().N("delhi_modern_web_player")?new rZP(b):void 0;var PN=b.L().X?void 0:new mOw(b);var bs=new VNe(b),eP=new hTq(b);{const nR=b.L().Mj();b=nR.G.WY(yW2)||nR.G.WY(fte)||nR.G.WY(dX2)?new oLK(b):void 0}R=[R,h,K,I,N,p,l,a,v,B,H,q,d,t,S,J,e,Y,Q,P,$B,IK,Pe,U3,Zx,void 0,Cw,Ee,ce,void 0,WE,cE,G$,Vm,void 0,Bg,Dp,bg,void 0, Rp,G,Hp,WI,SZ,void 0,F,void 0,cy,A,u,Sa,nY,T2,PN,bs,eP,b,void 0];for(const nR of R)nR&&this.features.push(nR)}X5(){for(let b=this.features.length-1;b>=0;b--)this.features[b].dispose();this.features.length=0;super.X5()}};var IDP=class{constructor(){this.Y=this.G=NaN}reset(){this.G=this.Y=NaN}};var $mx=class{constructor(b,R){this.QX=b;this.timerName="";this.X=!1;this.Y=NaN;this.V=new IDP;this.G=R||null;this.X=!1}reset(){OC(this.timerName)}tick(b,R){mv(b,R,this.timerName)}bP(b){return uM(b,void 0,this.timerName)}z9(b){g.Th(b,void 0,this.timerName)}infoGel(b){g.PI(b,this.timerName)}};var u5w=class extends g.NU{constructor(b,R){super();this.uv=b;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.G=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.xT={};this.Y=0;if(b=R.session_data)this.sessionData=tQ(b,"&");this.index=Math.max(0,Number(R.index)||0);this.loop=!!R.loop;this.startSeconds=Number(R.startSeconds)||0;this.title=R.playlist_title||"";this.description=R.playlist_description|| "";this.author=R.author||R.playlist_author||"";R.video_id&&(this.items[this.index]=R);if(b=R.api)typeof b==="string"&&b.length===16?R.list="PL"+b:R.playlist=b;if(b=R.list)switch(R.listType){case "user_uploads":this.listId=new es("UU",`PLAYER_${b}`);break;default:var h=R.playlist_length;h&&(this.length=Number(h)||0);this.listId=Ow(b);if(h=R.video)this.items=h.slice(0),this.loaded=!0}else if(R.playlist){b=R.playlist.toString().split(",");this.index>0&&(this.items=[]);for(h of b)h&&this.items.push({video_id:h}); this.length=this.items.length;if(h=R.video)this.items=h.slice(0),this.loaded=!0}this.setShuffle(!!R.shuffle);if(h=R.suggestedQuality)this.quality=h;this.xT=Ss(R,"playlist_");this.X=(R=R.thumbnail_ids)?R.split(","):[]}hasNext(b){return this.loop||!!b||this.index+1=0}setShuffle(b){this.shuffle=b;b=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var R=0;R{}),this.D=R,Promise.all(h).then(R.resolve,R.reject).finally(()=> {this.D=null})):b.fN()}else b.fN()}X5(){this.D&&(this.D.reject(),this.D=null); this.X();super.X5()}};g.i_.prototype.C=RK(63);g.i_.prototype.V=RK(62);g.zv=class extends g.i_{constructor(b,R,h){super(b);this.videoData=R;this.audioTrack=h;this.Y=null;this.K=!1;this.U=R.t_;this.T6=R.YX;this.K=g.ma(R)}S(b){if(this.audioTrack){for(const R of this.audioTrack.captionTracks)g.A5(this.G,R);this.audioTrack.G&&g.A5(this.MJ,this.audioTrack.G)}this.fN(b,this.videoData.videoId)}J(b,R){const h=b.xj(),K={fmt:R};if(R==="srv3"||R==="3"||R==="json3")g.y5()?Object.assign(K,{xorb:2,xobt:1,xovt:1}):Object.assign(K,{xorb:2,xobt:3,xovt:3});b.translationLanguage&&(K.tlang= g.WG(b));this.K&&(K.xosf="1");Object.assign(K,this.qJ.L().G);return GE(h,K)}X(){this.Y&&this.Y.abort()}};g.zv.prototype.V=RK(61);g.pfK=new Map;g.UX=class extends g.i_{constructor(b,R,h,K,I,N){super(b);this.videoId=h;this.Gn=I;this.eventId=N;this.G6={};this.Y=null;b=K||g.zE(R).hl||"";b=b.split("_").join("-");this.K=GE(R,{hl:b})}S(b){let R=this.K;const h={type:"list",tlangs:1,v:this.videoId,vssids:1};this.Gn&&(h.asrs=1);R=GE(R,h);this.X();this.Y=g.LD(R,{format:"RAW",onSuccess:K=>{this.Y=null;if((K=K.responseXML)&&K.firstChild){var I=K.getElementsByTagName("track");for(var N=0;Nthis.D, pDX:()=>this.V}; this.G6=this.A.N("web_player_defer_modules");this.X$=new Map;g.n(this,this.K);this.K.j(b,"videodatachange",this.onVideoDataChange)}createSubtitlesModuleIfNeeded(){ddq(this)&&TX(this,"captions");return!!g.gh(this)}b7(){return this.A.getVideoData().b7()}DX(){return this.A.getVideoData().DX()}U(){const b=this.X$.get("heartbeat");TX(this,"heartbeat",!1,!0,this.U);!b&&this.X$.has("heartbeat")&&this.A.publish("offlineslatestatechange")}G(){TX(this,"annotations_module",!0,void 0,this.G);const b=this.X$.get("annotations_module"); if(b)for(const R in this.X){if(!this.X.hasOwnProperty(R))continue;const h=R;b.subscribe(h,this.X[h])}}S(){if(!this.X$.get("ad"))try{k7(this)?TX(this,"ad",!1,!0,this.S):J5(this,"ad")}catch(b){J5(this,"ad"),g.X(b)}}vI(){return this.Y}Jw(){const b={},R=g.gh(this);R&&Object.assign(b,R.Jw());return b}hI(b,R){Object.assign(this.Y,b||null);Object.assign(this.XU,R||null)}TX(){if(g.Mz(this.A.L()))return this.X$.get("unplugged")}onVideoDataChange(){const b=this.A.getVideoData();this.A.N("enable_wn_infocards")&& b.LN()&&!g.Ws(this)&&this.G()}X5(){super.X5();x7(this,1,!0);for(const [b,R]of Object.entries(GbD)){const h=b;this.J.has(R)&&t5.delete(h)}this.J.clear()}},GbD={ad:"ad.js",annotations_module:"annotations_module.js",asmjs:"asmjs.js",creatorendscreen:"annotations_module.js",embed:"embed.js",endscreen:"endscreen.js",heartbeat:"heartbeat.js",kids:"kids.js",remote:"remote.js",miniplayer:"miniplayer.js",offline:"offline.js",captions:"captions.js",unplugged:"unplugged.js",ux:"ux.js",webgl:"webgl.js",ypc:"ypc.js"}, zYD={ad:["ad"],annotations_module:[],asmjs:[],creatorendscreen:[],embed:[],endscreen:[],heartbeat:["heartbeat"],kids:[],remote:["mdx"],miniplayer:[],offline:[],captions:[],unplugged:[],ux:[],webgl:["webgl"],ypc:[]},Eh2="ad annotations_module asmjs creatorendscreen embed endscreen heartbeat kids remote miniplayer offline captions webgl ypc unplugged ux".split(" ");var lDT=class extends g.NU{constructor(b,R,h,K){super();this.target=b;this.api=R;this.Cx=h;this.Y=0;this.J=!1;this.V=new g.CP(NaN,NaN);this.G=new g.Ke(this);this.MJ=this.X=this.D=null;g.n(this,this.G);R=K?g.fg(this.api.L().experiments,"web_player_touch_idle_wait_time_ms",4E3):g.fg(this.api.L().experiments,"web_player_mouse_idle_wait_time_ms",3E3);this.U=new g.bI(()=>{Ps(this,1,!1)},R,this); g.n(this,this.U);this.G6=new g.bI(()=>{Ps(this,2,!1)},R,this); g.n(this,this.G6);this.C=new g.bI(()=>{Ps(this,2048,!1)},R,this); g.n(this,this.C);this.nR=new g.bI(()=>{Ps(this,512,!1)},R,this); g.n(this,this.nR);this.SY=3E3;K||(this.X=this.G.j(b,"mouseover",this.MA),this.G.j(b,"mousemove",this.vY),this.G.j(b,"mouseleave",this.xZ));this.api.N("web_player_enable_fullscreen_grid_components")&&this.G.j(b,"wheel",this.KR,this,!0);L0?this.G.j(b,"keypress",this.pR):this.G.j(b,"focusin",this.Zr);this.S=this.G.j(b,"mousedown",this.T6);this.K=this.G.j(b,"touchstart",this.gp,void 0,!0);Ps(this,640,!0)}vY(b){b=new g.CP(b.pageX,b.pageY);if(!ME(b,this.V)){let R=2;this.J&&(R|=8);this.V=b;Ps(this,R,!0)}}KR(){Ps(this, 2048,!0)}xZ(b){this.J&&Ps(this,8,!0);if(this.api.N("allow_autohide_on_paused_videos")){b=b.relatedTarget;var R=this.target instanceof HTMLElement?this.target:this.target.element;if(b instanceof Element&&(R=R.getBoundingClientRect(),b=b.getBoundingClientRect(),b.top>=R.top&&b.right<=R.right&&b.bottom<=R.bottom&&b.left>=R.left))return}Ps(this,2,!1)}MA(b){const R=new g.CP(b.pageX,b.pageY);ME(R,this.V)||(this.V=R,(b=b.target)&&this.Cx(b)&&(Ps(this,4,!0),this.G.Ac(this.X),this.X=this.G.j(this.target,"mouseover", this.FV),this.D=this.G.j(this.target,"mouseout",this.FV)))}FV(b){b=b.relatedTarget;b&&this.Cx(b)||(this.V=new g.CP(NaN,NaN),JO3(this))}pR(){Ps(this,1,!0)}Zr(b){b=b.target;b instanceof Element&&!(b.tabIndex>0)||Ps(this,1,!0)}T6(){this.J=!0;this.G.Ac(this.S);this.S=this.G.j(document,"mouseup",this.JX)}JX(){this.J=!1;Ps(this,8,!1);this.G.Ac(this.S);this.S=this.G.j(this.target,"mousedown",this.T6)}gp(b){if(b=(b=b.changedTouches)&&b[0])this.MJ=b.identifier,this.G.Ac(this.K),this.K=this.G.j(this.target, "touchend",this.NJ,void 0,!0),Ps(this,1024,!0)}NJ(b){let R;if(b=b.changedTouches)for(let h=0;h{this.G.qa()}),this.Y.j(this.api,"videoplayerreset",()=>{this.G.qa()})); super.show()}hide(){this.Y&&this.Y.Y();super.hide()}fz(){this.G.qa()}onStateChange(){this.G.qa()}V(){this.G.qa()}onReset(){this.fade.stop();this.hide();this.G.qa()}bv(){const b=this.api.getPlayerStateObject();if(this.api.getPresentingPlayerType()===3&&(b.isPlaying()||b.isPaused()))var R=!0;else(R=this.api.VV().X$.get("ypc"))&&R.Cs?R=!0:(R=this.api.L(),R=b.G(2)&&g.aL(this.api)&&R.vO?!0:!1);R?(R=!0,this.X.hide()):(this.X.show(),R=b.isCued()&&this.api.getPresentingPlayerType()!==2||b.G(2)&&!g.aL(this.api)&& !this.api.tD()||b.G(1024)?!0:!1);const h=this.api.getVideoData();R&&!h.CG?(this.fade.show(),kbw(this,this.api.getPlaylist(),h)):(this.fade.hide(),b.G(1)||this.fade.stop())}};var eYs; g.BfB=class extends g.w{constructor(b){super({B:"div",F5:["ytp-error"],O:{role:"alert"},W:[{B:"div",Z:"ytp-error-content",W:[{B:"div",Z:"ytp-error-icon-container",W:[{B:"svg",O:{fill:"#fff",viewBox:"0 0 48 48"},W:[{B:"path",O:{d:"M0 0h48v48H0V0z",fill:"none"}},{B:"path",O:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z","fill-opacity":"0.7"}}]}]},{B:"div",Z:"ytp-error-content-wrap",W:[{B:"div", Z:"ytp-error-content-wrap-reason",IH:"{{content}}"},{B:"div",Z:"ytp-error-content-wrap-subreason",IH:"{{subreason}}"}]}]}]});this.api=b;this.keys=[];this.X=!1;b.createClientVe(this.element,this,216103);this.api.logVisibility(this.element,this.XM)}resize(){}Y(b){this.X=!1;YgH(this);var R=b.iL,h=this.api.L();R!=="GENERIC_WITHOUT_LINK"||h.J?R==="TOO_MANY_REQUESTS"?(h=this.api.getVideoData(),this.setContent(cs(this,"TOO_MANY_REQUESTS_WITH_LINK",h.Ba(),void 0,void 0,void 0,!1))):R!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"|| h.J?this.api.L().N("html5_enable_bandaid_error_screen")&&R==="HTML5_SPS_UMP_STATUS_REJECTED"&&!h.J?(h=h.hostLanguage,b="//support.google.com/youtube?p=videoError",h&&(b=g.z9(b,{hl:h})),this.setContent(cs(this,"HTML5_SPS_UMP_STATUS_REJECTED",b))):this.api.L().N("enable_adb_handling_in_sabr")&&R==="BROWSER_OR_EXTENSION_ERROR"&&!h.J?(h=h.hostLanguage,b="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",h&&(b=g.z9(b,{hl:h})),this.setContent(cs(this,"BROWSER_OR_EXTENSION_ERROR", b))):this.setContent(g.uf(b.errorMessage)):this.setContent(cs(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(b=h.hostLanguage,R="//support.google.com/youtube/?p=player_error1",b&&(R=g.z9(R,{hl:b})),this.setContent(cs(this,"GENERIC_WITH_LINK_AND_CPN",R,!0)),h.Ty&&!h.V&&Oye(this,K=>{if(g.Ez(K,this.api,!I4(this.api.L()))){const I={as3:!1,html5:!0,player:!0,cpn:this.api.getVideoData().clientPlaybackNonce};K=this.api;g.oj(K,"onFeedbackArticleRequest", {articleId:3037019,helpContext:"player_error",productData:I});K.isFullscreen()&&K.toggleFullscreen()}})); if(this.X){const K=this.yX("ytp-error-link");K&&(this.api.createClientVe(K,this,216104),this.api.logVisibility(K,!0),Oye(this,()=>{this.api.logClick(K)}))}}}; eYs=/([^<>]+)<\/a>/;var Hbq=class extends g.w{constructor(b){super({B:"div",F5:["ytp-overlays-container"],W:[{B:"div",Z:"ytp-overlay-top-left"},{B:"div",Z:"ytp-overlay-top-right"},{B:"div",Z:"ytp-overlay-bottom-left"},{B:"div",Z:"ytp-overlay-bottom-right"}]});this.X=this.yX("ytp-overlay-top-left");this.V=this.yX("ytp-overlay-top-right");this.G=this.yX("ytp-overlay-bottom-left");this.Y=this.yX("ytp-overlay-bottom-right");g.dL(b,this.element,4)}Yk(b,R,h=!1){switch(R){case 1:XF(this,b,this.X,h);break;case 2:XF(this,b,this.V, h);break;case 3:XF(this,b,this.G,h);break;case 4:XF(this,b,this.Y,h)}}};var q_B=class extends g.w{constructor(b){super({B:"div",Z:"ytp-paid-content-overlay",O:{"aria-live":"assertive","aria-atomic":"true",["data-overlay-order"]:"5"}});this.A=b;this.videoId=null;this.V=!1;this.innertubeCommand=this.p5=this.G=null;const R=b.L();R.experiments.Mj().G.WY(wSx)?(this.Y=new g.bI(()=>{this.zD()},5E3,this),g.n(this,this.Y)):this.Y=null; b.N("enable_new_paid_product_placement")&&!g.BG(R)?(this.X=new g.w({B:"a",Z:"ytp-paid-content-overlay-link",O:{href:"{{href}}",target:"_blank"},W:[{B:"div",Z:"ytp-paid-content-overlay-indicator"},{B:"div",Z:"ytp-paid-content-overlay-icon",IH:"{{icon}}"},{B:"div",Z:"ytp-paid-content-overlay-text",IH:"{{text}}"},{B:"div",Z:"ytp-paid-content-overlay-chevron",IH:"{{chevron}}"}]}),this.j(this.X.element,"click",this.onClick)):this.X=new g.w({B:"div",F5:["ytp-button","ytp-paid-content-overlay-text"],IH:"{{text}}"}); this.fade=new g.Sg(this.X,250,!1,100);g.n(this,this.X);this.X.AX(this.element);g.n(this,this.fade);this.A.createServerVe(this.element,this);this.j(b,"videodatachange",this.onVideoDataChange);this.j(b,"presentingplayerstatechange",this.S)}onClick(b){this.innertubeCommand?(g.rw(this.A,"innertubeCommand",this.innertubeCommand),b.preventDefault()):g.Ez(b,this.A,!0);this.A.logClick(this.element)}onVideoDataChange(b,R){this.Y&&b==="newdata"&&this.Y.stop();xdP(this,R);this.p5&&md3(this,this.p5)}S(b){const R= this.A.getVideoData();this.videoId!==R.videoId&&xdP(this,R);this.G&&md3(this,b.state);this.p5=b.state}zD(){this.fade.show();this.G?.start();this.A.publish("paidcontentoverlayvisibilitychange",!0);this.A.logVisibility(this.element,!0)}aT(){this.fade.hide();this.A.publish("paidcontentoverlayvisibilitychange",!1);this.A.logVisibility(this.element,!1)}};var doT=class extends g.w{constructor(b){super({B:"div",Z:"ytp-spinner",W:[ku(),{B:"div",Z:"ytp-spinner-message",IH:"Si la reproducci\u00f3n no empieza en breve, prueba a reiniciar el dispositivo."}]});this.api=b;this.message=this.yX("ytp-spinner-message");this.G=new g.bI(this.show,500,this);g.n(this,this.G);this.j(b,"presentingplayerstatechange",this.onStateChange);this.j(b,"playbackstalledatstart",this.Y);this.Na(b.getPlayerStateObject())}hide(){this.G.stop();this.message.style.display="none";super.hide()}onStateChange(b){this.Na(b.state)}Na(b){(b.G(128)|| this.api.PP()||this.api.N("web_watch_enable_multiview_manager")&&this.api.getVideoData()?.U8()?0:b.G(16)||b.G(1))?this.G.start():this.hide()}Y(){this.message.style.display="block"}};var fD3=class extends JA{constructor(b){const R=[{B:"div",F5:["ytp-unmute-icon"],W:[b.L().experiments.O9("delhi_modern_web_player_icons")?{B:"svg",O:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{B:"path",Z:"ytp-svg-fill",O:{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"}}]}: {B:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{B:"path",XX:!0,Z:"ytp-svg-fill",O:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}]}, {B:"div",F5:["ytp-unmute-text"],IH:"Activar el sonido"}];R.push({B:"div",F5:["ytp-unmute-box"],W:[]});super(b,{B:"button",F5:["ytp-unmute","ytp-popup","ytp-button","ytp-unmute-animated","ytp-unmute-shrink"],W:[{B:"div",Z:"ytp-unmute-inner",W:R}]},100);this.G=this.clicked=!1;this.api=b;this.api.createClientVe(this.element,this,51663);this.j(b,"onMutedAutoplayChange",this.onMutedAutoplayChange,this);this.j(b,"presentingplayerstatechange",this.dR);this.listen("click",this.onClick,this);b=b.isMutedByMutedAutoplay()&& !g.Fo(this.api.L());this.sW(b);b&&P83(this);this.Y=b}onMutedAutoplayChange(b){this.Y&&(b?(P83(this),this.zD()):(this.G&&this.logClick(),this.aT()))}dR(b){this.api.isMutedByMutedAutoplay()&&b.Up(2)&&this.aT()}onClick(){this.api.unMute();this.logClick()}logClick(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))}};g.qe=class extends g.Ke{constructor(b){super();this.api=b;this.Oc=!1;this.w9=null;this.AM=!1;this.Mz=null;this.FN=this.Hf=!1;this.ZD=this.on=null;this.Nd=NaN;this.DD=this.bf=!1;this.NP=0;this.qR=[];this.dV=!1;this.F_={height:0,width:0};this.jj=480;this.QT=["ytp-player-content","html5-endscreen","ytp-overlay"];this.VH={mq:!1};this.rk=null;const R=b.L(),h=b.tX();this.F_=b.getPlayerSize();this.Um=new g.bI(this.II,0,this);g.n(this,this.Um);R.disableOrganicUi||(this.HZ=new g.ves(b),g.n(this,this.HZ),g.dL(b, this.HZ.element,4));this.api.N("web_player_overlay_positioned_layout")&&(this.rk=new Hbq(this.api),g.n(this,this.rk));if(Zyq(this)){var K=new doT(b);g.n(this,K);K=K.element;g.dL(b,K,4)}var I=b.getVideoData();this.qC=new lDT(h,b,N=>this.Cx(N),R.er); g.n(this,this.qC);this.qC.subscribe("autohideupdate",this.D2,this);mC(this.qC);if(!R.disablePaidContentOverlay){const N=new q_B(b);g.n(this,N);this.rk?this.rk.Yk(N.element,g.BG(R)?3:1):g.dL(b,N.element,4)}this.py=new fD3(b);g.n(this,this.py);g.dL(this.api,this.py.element,2);this.dJ=this.api.isMutedByMutedAutoplay();this.j(b,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.Fh=new g.bI(this.Hd,200,this);g.n(this,this.Fh);this.R3=I.videoId;this.lI=new g.bI(()=>{this.NP=0},350); g.n(this,this.lI);this.lK=new g.bI(()=>{this.DD||MR(this)},350,this); g.n(this,this.lK);I=b.getRootNode();I.setAttribute("aria-label","Reproductor de v\u00eddeo de YouTube");switch(R.color){case "white":g.Nv(I,"ytp-color-white")}this.j(b,"appresize",this.fz);this.j(b,"presentingplayerstatechange",this.dR);this.j(b,"videodatachange",this.onVideoDataChange);this.j(b,"videoplayerreset",this.Z_);this.j(b,"autonavvisibility",()=>{this.f8()}); this.j(b,"sizestylechange",()=>{this.f8()}); this.j(h,"click",this.B4,this);this.j(h,"dblclick",this.AV,this);this.j(h,"mousedown",this.N$,this);R.wp&&(this.j(h,"gesturechange",this.FJ,this),this.j(h,"gestureend",this.JV,this));this.F6=[h.v2];this.HZ&&this.F6.push(this.HZ.element);K&&this.F6.push(K);this.api.N("web_player_fullscreen_double_click_ve")&&(this.api.createClientVe(h.element,this,247482),this.api.logVisibility(h.element,!0))}init(){const b=this.api,R=b.getPlayerStateObject();this.F_=b.getPlayerSize();this.n0(R);this.f8();this.fz(); this.api.publish("basechromeinitialized",this);this.F7()&&this.api.publish("standardControlsInitialized")}onVideoDataChange(b,R){var h=this.R3!==R.videoId;if(h||b==="newdata")b=this.api,b.isFullscreen()||(this.F_=b.getPlayerSize());h&&(this.R3=R.videoId,h=this.qC,h.SY=3E3,Ps(h,512,!0),this.f8());this.api.N("web_render_jump_buttons")&&R.showSeekingControls&&(this.jj=572)}Z_(){this.onVideoDataChange("newdata",this.api.getVideoData())}uJ(){const b=this.api.Lj()&&this.api.sA(),R=this.api.zX();return this.AM|| b||this.dJ||R}dQ(){const b=!this.uJ();g.k(this.api.getRootNode(),"ytp-menu-shown",!b)}Cx(b){try{if(!g.gM(this.api.getRootNode(),b))return!1}catch(R){return!1}for(;b&&!n0(b);)b=b===this.api.getRootNode()?null:b.parentElement||null;return!!b}D2(b){const R=this.api.getRootNode();g.k(R,"ytp-autohide",b);g.k(R,"ytp-autohide-active",!0);this.Um.start(b?250:100);b&&(this.Hf=!1,g.lI(R,"ytp-touch-mode"));this.FN=!b;this.api.RE(!b);this.api.N("web_player_enable_fullscreen_grid_components")&&this.api.publish("autohideupdate", b)}II(){const b=this.api.getRootNode();g.k(b,"ytp-autohide-active",!1)}H4(){this.DD=!0}rd(b){if(this.api.L().N("player_doubletap_to_seek")||this.api.L().D)this.DD=!1,this.ZD&&this.Ac(this.ZD),this.NP===0&&rh(this,b)?(this.EJ(),this.lK.start(),this.ZD=this.j(this.api.tX(),"touchmove",this.H4,void 0,!0)):this.lK.stop();ude(this)&&rh(this,b)&&!this.api.L().D&&MR(this,b);var R=this.py.nZ();if(!g.Fo(this.api.L())&&eq&&LE(this,b))R&&b.preventDefault();else if(this.Hf=!0,g.Nv(this.api.getRootNode(),"ytp-touch-mode"), this.qC.ea(),this.api.L().N("player_doubletap_to_seek")||this.api.L().D)if(R=this.api.getPlayerStateObject(),!(!this.api.Hr()||R.G(2)&&g.aL(this.api)||R.G(64))){R=Date.now()-this.Nd;this.NP+=1;if(R<=350){if(CE(this,b))return;this.bf=!0;R=this.api.getPlayerSize().width/3;var h=this.api.getRootNode().getBoundingClientRect();const K=b.targetTouches[0].clientX-h.left;h=b.targetTouches[0].clientY-h.top;const I=(this.NP-1)*10;K>0&&KR*2&&K=650,K=b.width<528;this.qC.resize();if(this.api.N("web_player_use_screen_width_for_big_mode")){const I=b.width>=(g.fg(this.api.L().experiments,"web_player_big_mode_screen_width_cutoff")??2E3);g.k(R,"ytp-big-mode",I)}g.k(R,"ytp-fullscreen",this.api.isFullscreen());g.k(R,"ytp-large-width-mode",h);this.api.N("delhi_modern_web_player")?g.k(R, "ytp-xsmall-width-mode",K):g.k(R,"ytp-small-mode",this.DP());g.k(R,"ytp-tiny-mode",this.K3());g.k(R,"ytp-big-mode",this.tU());this.Mz&&this.Mz.resize(b)}dR(b){this.n0(b.state);this.f8()}Mv(){var b=!!this.R3&&!this.api.Ik()&&!this.dV,R=this.api.getPresentingPlayerType()===2,h=this.api.L();if(R)return h=GX(this.api.VV()),b&&(h&&h.player?b=(b=h.player.getVideoData({playerType:2}))?b.isListed&&!g.bU(h.player.L()):!1:(u2("showInfoBarDuringAd: this is null"),b=!1)),b;R=h.N("web_player_imax_theater_mode")&& this.api.gR()&&!this.api.isInline();return b&&(h.Z5||R||this.api.isFullscreen()||h.Cm)}f8(){const b=this.Mv();this.w9!==b&&(this.w9=b,g.k(this.api.getRootNode(),"ytp-hide-info-bar",!b))}n0(b){const R=b.isCued()||this.api.PM()&&this.api.getPresentingPlayerType()!==3;R!==this.isCued&&(this.isCued=R,this.on&&this.Ac(this.on),this.on=this.j(this.api.tX(),"touchstart",this.rd,void 0,R));var h=this.qC,K=b.isPlaying()&&!b.G(32)||this.api.Ln();Ps(h,128,!K);h=this.qC;K=this.api.getPresentingPlayerType()=== 3;Ps(h,256,K);h=this.api.getRootNode();b.G(2)?K=[$$.ENDED]:(K=[],b.G(8)?K.push($$.PLAYING):b.G(4)&&K.push($$.PAUSED),b.G(1)&&!b.G(32)&&K.push($$.BUFFERING),b.G(32)&&K.push($$.SEEKING),b.G(64)&&K.push($$.UNSTARTED));g.Qz(this.qR,K)||(g.af(h,this.qR),this.qR=K,g.p5(h,K));K=this.api.L();const I=b.G(2);a:{var N=this.api.L();const p=N.controlsType;switch(p){case "2":case "0":N=!1;break a}N=p==="3"&&!b.G(2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:KH(GX(this.api.VV())))||this.api.zX()||g.Fo(N)&& this.api.getPresentingPlayerType()===2?!1:!0}g.k(h,"ytp-hide-controls",!N);g.k(h,"ytp-native-controls",K.controlsType==="3"&&!R&&!I&&!this.dJ);b.G(128)&&!g.Fo(K)?(this.Mz||(this.Mz=new g.BfB(this.api),g.n(this,this.Mz),g.dL(this.api,this.Mz.element,4)),this.Mz.Y(b.gt),this.Mz.show()):this.Mz&&(this.Mz.dispose(),this.Mz=null)}Vg(){return this.api.Lj()&&this.api.sA()?(this.api.GM(!1,!1),!0):this.api.Ik()?(g.lb(this.api,!0),!0):!1}onMutedAutoplayChange(b){this.dJ=b;this.dQ()}tU(){return!1}DP(){return!this.tU()&& (this.api.getPlayerSize().width{this.element.style.margin="0"},250); this.onClickCommand=this.Y=null;g.n(this,this.fade);g.n(this,this.D);g.n(this,this.J);g.n(this,this.nR);b.L().N("player_new_info_card_format")?(g.Nv(b.getRootNode(),"ytp-cards-teaser-dismissible"),this.j(this.yX("ytp-cards-teaser-close-button"),"click",this.MJ),this.j(this.yX("ytp-cards-teaser-info-icon"),"click",this.K),this.j(this.yX("ytp-cards-teaser-label"),"click",this.K)):this.listen("click",this.K);this.j(R.element,"mouseover",this.C);this.j(R.element,"mouseout",this.U);this.j(b,"cardsteasershow", this.NJ);this.j(b,"cardsteaserhide",this.aT);this.j(b,"cardstatechange",this.T6);this.j(b,"presentingplayerstatechange",this.T6);this.j(b,"appresize",this.S);this.j(b,"onShowControls",this.S);this.j(b,"onHideControls",this.SY);this.listen("mouseenter",this.gp)}T6(){this.A.Lj()&&this.A.sA()&&this.nZ()&&this.aT()}K(){this.aT();!this.A.Lj()&&this.A.L().N("enable_error_corrections_infocards_icon_web")&&this.Fy.aT();g.pQ("iv-teaser-clicked",this.G!=null);this.onClickCommand?g.rw(this.A,"innertubeCommand", this.onClickCommand):this.A.getVideoData()?.vO()||this.A.GM(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")}gp(){g.pQ("iv-teaser-mouseover");this.G&&this.G.stop()}NJ(b){this.A.L().N("player_new_info_card_format")&&!g.Fo(this.A.L())?this.Fy.aT():this.A.L().N("enable_error_corrections_infocards_icon_web")&&this.Fy.zD();this.G||!b||this.A.sA()||this.X&&this.X.isActive()||(this.zD(b),g.pQ("iv-teaser-shown"))}zD(b){this.onClickCommand=b.onClickCommand;this.updateValue("text",b.teaserText);this.element.setAttribute("dir", g.Ac(b.teaserText));this.fade.show();if(this.A.L().N("player_new_info_card_format")){const R=this.yX("ytp-cards-teaser-info-icon"),h=this.yX("ytp-cards-teaser-channel-avatar");h&&b.kE&&g.H8(b.kE)&&(h.src=b.kE,h.style.display="block",R.style.display="none")}this.X=new g.bI(function(){g.Nv(this.A.getRootNode(),"ytp-cards-teaser-shown");this.A.N("player_new_info_card_format")&&!g.Fo(this.A.L())&&this.Fy.aT();this.S()},0,this); this.X.start();this.Fy.xE(!1);this.G=new g.bI(this.aT,580+b.durationMs,this);this.G.start();this.V.push(this.listen("mouseover",this.C,this));this.V.push(this.listen("mouseout",this.U,this))}S(){if(!this.A.L().N("player_new_info_card_format")&&g.Fo(this.A.L())&&this.XM){const b=this.Fy.element.offsetLeft,R=g.p0("ytp-cards-button-icon"),h=this.A.isFullscreen()?54:36;if(R){const K=b+R.offsetLeft;this.element.style.marginRight=this.Fy.element.offsetParent.offsetWidth-b-R.offsetLeft-h+"px";this.element.style.marginLeft= K+"px"}}}SY(){g.Fo(this.A.L())&&this.A.DP()&&this.XM&&this.nR.start()}C(){this.J.stop();this.G&&this.G.isActive()&&this.D.start()}U(){this.D.stop();this.G&&!this.G.isActive()&&this.J.start()}JX(){this.G&&this.G.stop()}vY(){this.aT()}MJ(){this.aT()}aT(){!this.G||this.Y&&this.Y.isActive()||(g.pQ("iv-teaser-hidden"),this.fade.hide(),g.lI(this.A.getRootNode(),"ytp-cards-teaser-shown"),this.Y=new g.bI(function(){for(const b of this.V)this.Ac(b);this.V=[];this.G&&(this.G.dispose(),this.G=null);this.Fy.xE(!0); !this.A.Lj()&&this.A.L().N("enable_error_corrections_infocards_icon_web")&&this.Fy.aT()},330,this),this.Y.start())}nZ(){return this.XM&&this.fade.state!==4}X5(){const b=this.A.getRootNode(); b&&g.lI(b,"ytp-cards-teaser-shown");g.IZ(this.X,this.Y,this.G);super.X5()}};var oB={BUTTON:"ytp-button",TITLE_NOTIFICATIONS:"ytp-title-notifications",TITLE_NOTIFICATIONS_ON:"ytp-title-notifications-on",TITLE_NOTIFICATIONS_OFF:"ytp-title-notifications-off",NOTIFICATIONS_ENABLED:"ytp-notifications-enabled"},Rz3=class extends g.w{constructor(b){super({B:"button",F5:[oB.BUTTON,oB.TITLE_NOTIFICATIONS],O:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},W:[{B:"div",Z:oB.TITLE_NOTIFICATIONS_ON,O:{title:"Dejar de recibir notificaciones cada vez que haya un v\u00eddeo nuevo", "aria-label":"Notificaciones de suscripciones activadas"},W:[g.RQx()]},{B:"div",Z:oB.TITLE_NOTIFICATIONS_OFF,O:{title:"Recibir una notificaci\u00f3n cada vez que haya un v\u00eddeo nuevo","aria-label":"Notificaciones de suscripciones activadas"},W:[{B:"svg",O:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},W:[{B:"path",O:{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=b;this.G=!1;b.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Recibir una notificaci\u00f3n cada vez que haya un v\u00eddeo nuevo")}onClick(){this.api.logClick(this.element);const b=!this.G;this.updateValue("label",b?"Dejar de recibir notificaciones cada vez que haya un v\u00eddeo nuevo":"Recibir una notificaci\u00f3n cada vez que haya un v\u00eddeo nuevo");this.updateValue("pressed",b);rOP(this,b)}};g.kB("yt.pubsub.publish",g.pQ);g.Rx=class extends g.w{constructor(b,R,h,K,I,N,p,l,a,v,B,H){b=b.charAt(0)+b.substring(1).toLowerCase();h=h.charAt(0)+h.substring(1).toLowerCase();if(R==="0"||R==="-1")R=null;if(K==="0"||K==="-1")K=null;const q=B.L(),d=q.userDisplayName&&g.LB(q);super({B:"div",F5:["ytp-button","ytp-sb"],W:[{B:"div",Z:"ytp-sb-subscribe",O:d?{title:B.L().N("player_tooltip_data_title_killswitch")?g.zc("Suscribirse como $USER_NAME",{USER_NAME:q.userDisplayName}):"","data-tooltip-title":g.zc("Suscribirse como $USER_NAME", {USER_NAME:q.userDisplayName}),"aria-label":"Suscribirse al canal","data-tooltip-image":ft(q),"data-tooltip-opaque":String(g.Fo(q)),tabindex:"0",role:"button"}:{"aria-label":"Suscribirse al canal"},W:[{B:"div",Z:"ytp-sb-text",W:[{B:"div",Z:"ytp-sb-icon"},b]},R?{B:"div",Z:"ytp-sb-count",IH:R}:""]},{B:"div",Z:"ytp-sb-unsubscribe",O:d?{title:B.N("player_tooltip_data_title_killswitch")?g.zc("Te has suscrito como $USER_NAME",{USER_NAME:q.userDisplayName}):"","data-tooltip-title":g.zc("Te has suscrito como $USER_NAME", {USER_NAME:q.userDisplayName}),"aria-label":"Anular suscripci\u00f3n al canal","data-tooltip-image":ft(q),"data-tooltip-opaque":String(g.Fo(q)),tabindex:"0",role:"button"}:{"aria-label":"Anular suscripci\u00f3n al canal"},W:[{B:"div",Z:"ytp-sb-text",W:[{B:"div",Z:"ytp-sb-icon"},h]},K?{B:"div",Z:"ytp-sb-count",IH:K}:""]}],O:{"aria-live":"polite"}});this.channelId=p;this.A=B;this.X=H;const t=this.yX("ytp-sb-subscribe"),S=this.yX("ytp-sb-unsubscribe");N&&g.Nv(this.element,"ytp-sb-classic");if(I){l?this.G(): this.Y();var J=()=>{if(q.T6){var Y=this.channelId;if(a||v){var Q={c:Y};var P;g.CG.isInitialized()&&(P=kRq(Q));Q=P||"";if(P=B.getVideoData())if(P=P.subscribeCommand){var $B=B.MF();$B?(DC($B,P,{botguardResponse:Q,feature:a}),g.rw(B,"SUBSCRIBE",Y)):g.X(Error("No innertube service available when updating subscriptions."))}else g.X(Error("No subscribe command in videoData."));else g.X(Error("No video data available when updating subscription."))}S.focus();S.removeAttribute("aria-hidden");t.setAttribute("aria-hidden", "true")}else DS(g.Kt(this.A.L()),"sb_button",this.V)},e=()=>{var Y=this.channelId; if(a||v){var Q=B.getVideoData();DC(B.MF(),Q.unsubscribeCommand,{feature:a});g.rw(B,"UNSUBSCRIBE",Y)}t.focus();t.removeAttribute("aria-hidden");S.setAttribute("aria-hidden","true")}; this.j(t,"click",J);this.j(S,"click",e);this.j(t,"keypress",Y=>{Y.keyCode===13&&J(Y)}); this.j(S,"keypress",Y=>{Y.keyCode===13&&e(Y)}); this.j(B,"SUBSCRIBE",this.G);this.j(B,"UNSUBSCRIBE",this.Y);this.X&&d&&(Ak2(B),Ny(B,t,this),Ny(B,S,this))}else g.Nv(t,"ytp-sb-disabled"),g.Nv(S,"ytp-sb-disabled")}V(){window.location.reload()}G(){g.Nv(this.element,"ytp-sb-subscribed")}Y(){g.lI(this.element,"ytp-sb-subscribed")}};var AI2=class extends g.w{constructor(b){super({B:"div",Z:"ytp-title-channel",W:[{B:"div",Z:"ytp-title-beacon"},{B:"a",Z:"ytp-title-channel-logo",O:{href:"{{channelLink}}",target:b.L().U,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{B:"div",Z:"ytp-title-expanded-overlay",O:{"aria-hidden":"{{flyoutUnfocusable}}"},W:[{B:"div",Z:"ytp-title-expanded-heading",W:[{B:"div",Z:"ytp-title-expanded-title",W:[{B:"a",IH:"{{expandedTitle}}",O:{href:"{{channelTitleLink}}",target:b.L().U,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{B:"div",Z:"ytp-title-expanded-subtitle",IH:"{{expandedSubtitle}}",O:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});this.api=b;this.channel=this.yX("ytp-title-channel");this.Y=this.yX("ytp-title-channel-logo");this.channelName=this.yX("ytp-title-expanded-title");this.K=this.yX("ytp-title-expanded-overlay");this.X=this.G=this.subscribeButton=null;this.V=!1;b.createClientVe(this.Y,this,36925);b.createClientVe(this.channelName,this,37220);g.Fo(this.api.L())&& Ddq(this);this.j(b,"videodatachange",this.bv);this.j(b,"videoplayerreset",this.bv);this.j(this.channelName,"click",R=>{this.api.logClick(this.channelName);g.$w(window,b3(this));R.preventDefault()}); this.j(this.Y,"click",this.C);this.bv()}C(b){this.api.logClick(this.Y);const R=this.api.L();R.Y||R.JX?buH(this)&&(this.isExpanded()?this.S():this.J()):g.$w(window,b3(this));b.preventDefault()}D(){ohT(this);this.channel.classList.remove("ytp-title-expanded")}isExpanded(){return this.channel.classList.contains("ytp-title-expanded")}J(){if(buH(this)&&!this.isExpanded()){this.updateValue("flyoutUnfocusable","false");this.updateValue("channelTitleFocusable","0");this.updateValue("shouldHideExpandedTitleForA11y", "false");this.updateValue("shouldHideExpandedSubtitleForA11y","false");this.X&&this.X.stop();this.api.logVisibility(this.channelName,!0);this.subscribeButton&&(this.subscribeButton.show(),this.api.logVisibility(this.subscribeButton.element,!0));const b=this.api.getVideoData();this.G&&b.x4&&b.subscribed&&(this.G.show(),this.api.logVisibility(this.G.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}}S(){this.updateValue("flyoutUnfocusable", "true");this.updateValue("channelTitleFocusable","-1");this.updateValue("shouldHideExpandedTitleForA11y","true");this.updateValue("shouldHideExpandedSubtitleForA11y","true");this.X&&this.X.start()}bv(){const b=this.api.L();this.sW(!this.api.isEmbedsShortsMode());const R=this.api.getVideoData(),h=this.api.L(),K=this.api.getVideoData();this.V=!1;const I=!!K.videoId&&!!K.JX&&!!K.profilePicture;this.api.getPresentingPlayerType()===2?this.V=I&&!!K.isListed&&!!K.author:g.Fo(h)&&(this.V=I&&!K.C0&&!h.X&& !(h.D&&this.api.getPlayerSize().width<200));hzH(this,R.profilePicture,g.Fo(b)?R.expandedTitle:R.author);this.subscribeButton&&(this.subscribeButton.channelId=R.zI);this.updateValue("expandedTitle",R.expandedTitle);this.updateValue("expandedSubtitle",R.expandedSubtitle)}Qp(b){super.Qp(b);this.api.logVisibility(this.Y,this.V&&b)}};var Gv=class extends g.PO{constructor(b){super(g.zq({"aria-haspopup":"true"}),b);this.listen("keydown",this.VA)}VA(b){b.defaultPrevented||b.keyCode!==39||(this.element.click(),b.preventDefault())}};var ibx=class extends g.w{show(){super.show();this.element.tabIndex=0;this.element.focus();this.updateValue("userInfoFocusable","0");this.updateValue("userInfoFocusable2","0")}hide(){super.hide();this.updateValue("userInfoFocusable","-1");this.updateValue("userInfoFocusable2","-1")}constructor(b,R){super({B:"div",Z:"ytp-user-info-panel",O:{"aria-label":"Informaci\u00f3n del usuario"},W:b.L().T6?[{B:"div",Z:"ytp-user-info-panel-icon",IH:"{{icon}}"},{B:"div",Z:"ytp-user-info-panel-content",W:[{B:"div", Z:"ytp-user-info-panel-info",O:{tabIndex:"{{userInfoFocusable}}",role:"text"},IH:"{{watchingAsUsername}}"},{B:"div",Z:"ytp-user-info-panel-info",O:{tabIndex:"{{userInfoFocusable2}}",role:"text"},IH:"{{watchingAsEmail}}"}]}]:[{B:"div",Z:"ytp-user-info-panel-icon",IH:"{{icon}}"},{B:"div",Z:"ytp-user-info-panel-content",W:[{B:"div",W:[{B:"text",O:{tabIndex:"{{userInfoFocusable}}"},IH:"Sesi\u00f3n cerrada"}]},{B:"div",Z:"ytp-user-info-panel-login",W:[{B:"a",O:{tabIndex:"{{userInfoFocusable2}}",role:"button"}, IH:b.L().PH?"":"Inicia sesi\u00f3n en YouTube"}]}]}]});this.qJ=b;this.sourceElement=R;b.L().T6||b.L().PH||this.j(this.yX("ytp-user-info-panel-login"),"click",this.Y);this.closeButton=new g.w({B:"button",F5:["ytp-collapse","ytp-button"],O:{title:"Cerrar"},W:[g.nW()]});this.closeButton.AX(this.element);g.n(this,this.closeButton);this.j(window,"blur",this.hide);this.j(document,"click",this.G);this.bv()}G(b){const R=h$(b),h=g.gM(this.closeButton.element,R),K=g.gM(this.element,R);b=this.sourceElement&& g.gM(this.sourceElement,R)&&g.MU(b);R&&(K||b)&&!h||this.hide()}Y(){DS(g.Kt(this.qJ.L()),"user_info_panel",()=>{window.location.reload()})}bv(){const b=this.qJ.L(),R={USER_NAME:b.userDisplayName, USER_EMAIL:b.yu};this.updateValue("icon",$5K());this.updateValue("watchingAsUsername",g.zc("Has iniciado sesi\u00f3n como $USER_NAME",R));b.yu?this.updateValue("watchingAsEmail",g.zc("($USER_EMAIL)",R)):this.updateValue("watchingAsEmail","")}};var ziK=class extends g.dF{constructor(b,R,h){super(b);this.Gy=R;this.Ah=h;this.getVideoUrl=new Gv(6);this.d9=new Gv(5);this.pC=new Gv(4);this.RT=new Gv(3);this.V5=new g.PO(g.zq({href:"{{href}}",target:this.A.L().U},void 0,!0),2,"Solucionar un problema de reproducci\u00f3n");this.showVideoInfo=new g.PO(g.zq(),1,"Estad\u00edsticas avanzadas");this.Mg=new g.PH({B:"div",F5:["ytp-copytext","ytp-no-contextmenu"],O:{draggable:"false",tabindex:"1"},IH:"{{text}}"});this.N6=new qX(this.A,this.Mg);this.lz= this.xR=null;g.Fo(this.A.L())&&(this.closeButton=new g.w({B:"button",F5:["ytp-collapse","ytp-button"],O:{title:"Cerrar"},W:[g.nW()]}),g.n(this,this.closeButton),this.closeButton.AX(this.element),this.closeButton.listen("click",this.Yv,this));g.Fo(this.A.L())&&(this.HM=new g.PO(g.zq(),10,"Cuenta"),g.n(this,this.HM),this.WH(this.HM,!0),this.HM.listen("click",this.xe,this),b.createClientVe(this.HM.element,this.HM,137682));this.A.L().TG&&(this.Xr=new Db("Bucle",9),g.n(this,this.Xr),this.WH(this.Xr,!0), this.Xr.listen("click",this.FD,this),b.createClientVe(this.Xr.element,this.Xr,28661));this.A.N("web_player_miniplayer_in_context_menu")&&(this.LX=new g.PO(g.zq(),8,"Minirreproductor"),g.n(this,this.LX),this.WH(this.LX,!0),this.LX.listen("click",this.rD,this),b.createClientVe(this.LX.element,this.LX,62946));this.A.N("web_watch_pip_context_menu_button")&&this.A.L().showMiniplayerButton&&(this.DG=new g.PO(g.zq(),7,"Imagen en imagen"),g.n(this,this.DG),this.WH(this.DG,!0),this.DG.listen("click",this.aj, this),b.createClientVe(this.DG.element,this.DG,194442));g.n(this,this.getVideoUrl);this.WH(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.VI,this);b.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.n(this,this.d9);this.WH(this.d9,!0);this.d9.listen("click",this.SA,this);b.createClientVe(this.d9.element,this.d9,28660);g.n(this,this.pC);this.WH(this.pC,!0);this.pC.listen("click",this.vJ,this);b.createClientVe(this.pC.element,this.pC,28658);g.n(this,this.RT);this.WH(this.RT, !0);this.RT.listen("click",this.gD,this);g.n(this,this.V5);this.WH(this.V5,!0);this.V5.listen("click",this.v4,this);g.n(this,this.showVideoInfo);this.WH(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.zd,this);g.n(this,this.Mg);this.Mg.listen("click",this.hT,this);g.n(this,this.N6);KOe()&&(this.xR=new g.w({B:"textarea",Z:"ytp-html5-clipboard",O:{readonly:"",tabindex:"-1"}}),g.n(this,this.xR),this.xR.AX(this.element));this.HM?.setIcon($5K());this.Xr?.setIcon(lQP());this.LX?.setIcon(this.A.N("delhi_modern_web_player_icons")? D3x():Un());this.DG?.setIcon(Un());this.RT.setIcon({B:"svg",O:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{B:"path",O:{"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.V5.setIcon(jv());this.showVideoInfo.setIcon(LRB());this.j(b,"onLoopChange",this.onLoopChange);this.j(b,"videodatachange",this.onVideoDataChange);this.j(b,"fullscreentoggled",()=>{K1(this)}); this.j(b,"minimized",()=>{K1(this);this.DG?.sW(!this.A.isMinimized()&&this.A.L().showMiniplayerButton)}); sMB(this);$aK(this,this.A.getVideoData())}Yv(){this.Gy.aT()}hT(){Yu(this.Mg.element)}gD(){sY(this,this.A.getDebugText(!0))&&wh(this.Ah,qU())}vJ(){sY(this,this.A.getVideoEmbedCode())&&wh(this.Ah,C43());this.A.logClick(this.pC.element)}VI(){sY(this,this.A.getVideoUrl(!0,!0))&&wh(this.Ah,Ah());this.A.logClick(this.getVideoUrl.element)}SA(){sY(this,this.A.getVideoUrl(!1,!0))&&wh(this.Ah,Ah());this.A.logClick(this.d9.element)}onLoopChange(b){this.Xr?.G(b)}FD(){this.A.setLoopVideo(this.Xr.getValue());this.Gy.aT(); this.A.logClick(this.Xr.element)}rD(){g.rw(this.A,"onCollapseMiniplayer");this.Gy.aT()}aj(){g.rw(this.A,"onCollapseMiniplayer",!0);this.Gy.aT()}v4(b){this.A.reportPlaybackIssue();if(g.Ez(b,this.A,!I4(this.A.L()))){b=this.A;const R=b.app.getFeedbackProductData();g.oj(b,"onFeedbackStartRequest",R);b.isFullscreen()&&b.toggleFullscreen()}this.Gy.aT()}zd(){g.F8(this.A,"isVideoInfoVisible",[])?g.F8(this.A,"hideVideoInfo",[]):g.F8(this.A,"showVideoInfo",[]);this.Gy.aT()}xe(){this.HM&&(this.lz||(this.lz= new ibx(this.A,this.HM.element),g.n(this,this.lz),g.dL(this.A,this.lz.element,4)),this.lz.show(),this.Gy.aT(),this.A.logClick(this.HM.element))}onVideoDataChange(b,R){$aK(this,R)}Qp(b){super.Qp(b);this.A.logVisibility(this.pC.element,b);this.A.logVisibility(this.getVideoUrl.element,b);this.A.logVisibility(this.d9.element,b);this.Xr&&this.A.logVisibility(this.Xr.element,b);this.HM&&this.A.logVisibility(this.HM.element,b);this.LX&&this.A.logVisibility(this.LX.element,b)}};var Uos=class extends g.fm{constructor(b,R){super(b);this.Ah=R;this.Y=new g.Ke(this);this.D=new g.bI(this.Zr,1E3,this);this.nR=this.Jc=null;g.n(this,this.Y);g.n(this,this.D);R=this.A.L();b.createClientVe(this.element,this,28656);g.Nv(this.element,"ytp-contextmenu");this.A.L().experiments.O9("delhi_modern_web_player")&&g.lv(R)&&g.Nv(this.element,"ytp-delhi-modern-contextmenu");N2q(this);this.hide()}onTouchStart(b){const R=h$(b);R&&(TF(R,"a")||TF(R,null,"ytp-no-contextmenu"))||this.XM||(this.nR=(b= b.touches?.item(0))?new g.CP(b.clientX,b.clientY):new g.CP(0,0),this.D.start())}C(){this.D.stop()}Zr(){this.open(this.nR)}U(){if(this.Jc&&I0x(this.Jc)){const b=I0x(this.Jc).element;b.tabIndex=-1;b.focus()}else this.element.tabIndex=-1,this.element.focus()}show(){this.Jc||(this.Jc=new ziK(this.A,this,this.Ah),g.n(this,this.Jc),g.mP(this,this.Jc));this.Jc.onLoopChange(this.A.getLoopVideo());super.show();this.A.logVisibility(this.element,!0);this.Jc.Qp(!0)}hide(){N2q(this);super.hide();this.A.logVisibility(this.element, !1);this.Jc&&this.Jc.Qp(!1)}SY(b){const R=h$(b);this.XM||R&&(TF(R,"a")||TF(R,null,"ytp-no-contextmenu"))||(b.preventDefault(),this.open(new g.CP(b.pageX,b.pageY)))}zD(b){if(b){const R=b.getBoundingClientRect();this.open(new g.CP(R.x,R.y))}super.zD(b)}open(b){pxs(this);var R=this.A.getVideoData();g.k(this.element,"ytp-dni",R.C0);this.element.style.left="";this.element.style.top="";b.x++;b.y++;super.zD();var h=AT(this).body;R=new P_(0,Infinity,Infinity,0);var K=K0(h);for(var I=K.G.body,N=K.G.documentElement, p=B_(K.G);h=Fq2(h);)if((!g.qN||h.clientHeight!=0||h!=I)&&h!=I&&h!=N&&oF(h,"overflow")!="visible"){const l=g.hR(h),a=new g.CP(h.clientLeft,h.clientTop);l.x+=a.x;l.y+=a.y;R.top=Math.max(R.top,l.y);R.right=Math.min(R.right,l.x+h.clientWidth);R.bottom=Math.min(R.bottom,l.y+h.clientHeight);R.left=Math.max(R.left,l.x)}I=p.scrollLeft;p=p.scrollTop;R.left=Math.max(R.left,I);R.top=Math.max(R.top,p);K=v_(K.G.defaultView||window);R.right=Math.min(R.right,I+K.width);R.bottom=Math.min(R.bottom,p+K.height);K=R.top>= 0&&R.left>=0&&R.bottom>R.top&&R.right>R.left?R:null;R=this.size;b=b.clone();R=R.clone();K&&(p=R,I=5,(I&65)==65&&(b.x=K.right)&&(I&=-2),(I&132)==132&&(b.y=K.bottom)&&(I&=-5),b.xK.right&&(p.width=Math.min(K.right-b.x,N+p.width-K.left),p.width=Math.max(p.width,0))),b.x+p.width>K.right&&I&1&&(b.x=Math.max(K.right-p.width,K.left)),b.y K.bottom&&(p.height=Math.min(K.bottom-b.y,N+p.height-K.top),p.height=Math.max(p.height,0))),b.y+p.height>K.bottom&&I&4&&(b.y=Math.max(K.bottom-p.height,K.top)));K=new g.Xb(0,0,0,0);K.left=b.x;K.top=b.y;K.width=R.width;K.height=R.height;g.bu(this.element,new g.CP(K.left,K.top));this.Y.Y();this.Y.j(AT(this),"contextmenu",this.vY);this.Y.j(this.A,"fullscreentoggled",this.onFullscreenToggled);this.Y.j(this.A,"pageTransition",this.T6)}vY(b){if(!b.defaultPrevented){const R=h$(b);g.gM(this.element,R)||this.aT(); this.A.L().disableNativeContextMenu&&b.preventDefault()}}onFullscreenToggled(){this.aT();pxs(this)}T6(){this.aT()}};var G7x=class extends g.w{constructor(b,R){super({B:"button",F5:["ytp-button","ytp-copylink-button"],O:{title:b.N("player_tooltip_data_title_killswitch")?"{{title-attr}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-opaque":String(g.Fo(b.L()))},W:[{B:"div",Z:"ytp-copylink-icon",IH:"{{icon}}"},{B:"div",Z:"ytp-copylink-title",IH:"Copiar enlace",O:{"aria-hidden":"true"}}]});this.api=b;this.G=R;this.visible=!1;this.tooltip=this.G.qb();R=b.L();this.tooltip.element.setAttribute("aria-live", "polite");g.k(this.element,"ytp-show-copylink-title",g.Fo(R));b.createClientVe(this.element,this,86570);this.listen("click",this.onClick);this.j(b,"videodatachange",this.bv);this.j(b,"videoplayerreset",this.bv);this.j(b,"appresize",this.bv);this.bv();this.addOnDisposeCallback(g.IL(this.tooltip,this.element))}async onClick(){var b=this.api.L();const R=this.api.getVideoData(),h=this.api.getPlaylistId();b=b.getVideoUrl(R.videoId,h,void 0,!0);await l0P(this,b)&&a03(this);this.api.logClick(this.element)}bv(){this.updateValue("icon", {B:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{B:"path",XX:!0,Z:"ytp-svg-fill",O:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3 c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.updateValue("title-attr","Copiar enlace");this.updateValue("tooltip-title","Copiar enlace");this.visible=vy2(this);g.k(this.element,"ytp-copylink-button-visible", this.visible);this.sW(this.visible);this.tooltip.d4();this.api.logVisibility(this.element,this.visible&&this.G6)}Qp(b){super.Qp(b);this.api.logVisibility(this.element,this.visible&&b)}X5(){super.X5();g.lI(this.element,"ytp-copylink-button-visible")}};var geP=class extends g.w{constructor(b){super({B:"div",Z:"ytp-doubletap-ui-legacy",W:[{B:"div",Z:"ytp-doubletap-fast-forward-ve"},{B:"div",Z:"ytp-doubletap-rewind-ve"},{B:"div",Z:"ytp-doubletap-static-circle",W:[{B:"div",Z:"ytp-doubletap-ripple"}]},{B:"div",Z:"ytp-doubletap-overlay-a11y"},{B:"div",Z:"ytp-doubletap-seek-info-container",W:[{B:"div",Z:"ytp-doubletap-arrows-container",W:[{B:"span",Z:"ytp-doubletap-base-arrow"},{B:"span",Z:"ytp-doubletap-base-arrow"},{B:"span",Z:"ytp-doubletap-base-arrow"}]}, {B:"div",Z:"ytp-doubletap-tooltip",W:[{B:"div",Z:"ytp-seek-icon-text-container",W:[{B:"div",Z:"ytp-seek-icon",IH:"{{seekIcon}}"},{B:"div",Z:"ytp-chapter-seek-text-legacy",IH:"{{seekText}}"}]},{B:"div",Z:"ytp-doubletap-tooltip-label",IH:"{{seekTime}}"}]}]}]});this.A=b;this.V=new g.bI(this.show,10,this);this.Y=new g.bI(this.hide,700,this);this.J=this.X=0;this.U=this.S=!1;this.G=this.yX("ytp-doubletap-static-circle");g.n(this,this.V);g.n(this,this.Y);this.hide();this.D=this.yX("ytp-doubletap-fast-forward-ve"); this.K=this.yX("ytp-doubletap-rewind-ve");this.A.createClientVe(this.D,this,28240);this.A.createClientVe(this.K,this,28239);this.A.logVisibility(this.D,!0);this.A.logVisibility(this.K,!0);this.S=b.N("web_show_cumulative_seek_time");this.U=b.N("web_center_static_circles")}show(){super.show();this.Y.qa()}hide(){this.V.stop();this.X=0;this.yX("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.lI(this.element,"ytp-chapter-seek");g.lI(this.element,"ytp-time-seeking");super.hide()}UN(b, R,h,K){this.X=b===this.J?this.X+K:K;this.J=b;var I=b===-1?this.K:this.D;I&&this.A.logClick(I);this.S?this.Y.stop():this.Y.i6();this.V.start();this.element.setAttribute("data-side",b===-1?"back":"forward");var N=3*this.A.tX().getPlayerSize().height;I=this.A.tX().getPlayerSize();I=I.width/3-3*I.height;this.G.style.width=`${N}px`;this.G.style.height=`${N}px`;b===1?(this.G.style.left="",this.G.style.right=`${I}px`):b===-1&&(this.G.style.right="",this.G.style.left=`${I}px`);const p=N*2.5;N=p/2;const l= this.yX("ytp-doubletap-ripple");l.style.width=`${p}px`;l.style.height=`${p}px`;b===1?(b=this.A.tX().getPlayerSize().width-R+Math.abs(I),l.style.left="",l.style.right=`${b-N}px`):b===-1&&(b=Math.abs(I)+R,l.style.right="",l.style.left=`${b-N}px`);l.style.top=`calc((33% + ${Math.round(h)}px) - ${N}px)`;if(h=this.yX("ytp-doubletap-ripple"))h.classList.remove("ytp-doubletap-ripple"),h.classList.add("ytp-doubletap-ripple");B2H(this,this.S?this.X:K)}aP(b,R,h=null){if(h){var K=b===-1?this.K.visualElement: this.D.visualElement;h={seekData:h};const I=g.Ui();I&&$8(I,K,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",h)}this.X=b===this.J?this.X+R:R;this.J=b;K=this.A.tX().getPlayerSize();this.S?this.Y.stop():this.Y.i6();this.V.start();this.element.setAttribute("data-side",b===-1?"back":"forward");g.Nv(this.element,"ytp-time-seeking");this.G.style.width="110px";this.G.style.height="110px";h=K.width*.1-15;b===1?this.U?(this.G.style.right=`${h}px`,this.G.style.left=""):(this.G.style.right="",this.G.style.left= `${K.width*.8-30}px`):b===-1&&(this.U?(this.G.style.right="",this.G.style.left=`${h}px`):(this.G.style.right="",this.G.style.left=`${K.width*.1-15}px`));this.G.style.top=`${K.height*.5+15}px`;B2H(this,this.S?this.X:R)}vL(b,R,h=null){this.Y.i6();this.V.start();switch(b){case -1:b="back";break;case 1:b="forward";break;default:b=""}this.element.setAttribute("data-side",b);this.G.style.width="0";this.G.style.height="0";g.Nv(this.element,"ytp-chapter-seek");this.updateValue("seekText",R);this.updateValue("seekTime", "");R=this.yX("ytp-seek-icon");if(h){a:if(h){switch(h){case "PREMIUM_STANDALONE":h=IQx();break a;case "PREMIUM_STANDALONE_CAIRO":h=NpH();break a}h=void 0}else h=null;this.updateValue("seekIcon",h);R.style.display="inline-block"}else R.style.display="none"}};var W0x=class extends HK{constructor(b){super(b,!1,!0);this.NJ=[];this.FM=[];this.element.setAttribute("data-overlay-order","9");HuT(this,this.A.getVideoData());this.nR=!0;this.badge.element.classList.add("ytp-featured-product");this.xZ=new g.w({B:"div",Z:"ytp-featured-product-open-in-new"});g.n(this,this.xZ);this.countdownTimer=new g.w({B:"text",Z:"ytp-featured-product-countdown",IH:"{{content}}"});this.countdownTimer.hide();g.n(this,this.countdownTimer);this.V=new g.w({B:"div",Z:"ytp-featured-product-trending", W:[{B:"div",Z:"ytp-featured-product-trending-icon"},{B:"text",Z:"ytp-featured-product-trending-text",IH:"{{trendingOffer}}"}]});this.V.hide();g.n(this,this.V);this.overflowButton=new g.w({B:"button",F5:["ytp-featured-product-overflow-icon","ytp-button"],O:{"aria-haspopup":"true"}});this.overflowButton.hide();g.n(this,this.overflowButton);this.C=new g.w({B:"text",Z:"ytp-featured-product-exclusive-countdown",IH:"{{content}}",O:{id:"exclusiveCountdown","aria-hidden":"true"}});this.C.hide();g.n(this, this.C);this.U=new g.w({B:"div",Z:"ytp-featured-product-exclusive-container",O:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},W:[{B:"div",Z:"ytp-featured-product-exclusive-badge-container",W:[{B:"div",Z:"ytp-featured-product-exclusive-badge",W:[{B:"text",Z:"ytp-featured-product-exclusive-badge-text",IH:"{{exclusive}}",O:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.C]});this.U.hide();g.n(this,this.U);this.banner=new g.w({B:"a",Z:"ytp-featured-product-container",W:[{B:"div",Z:"ytp-featured-product-thumbnail", W:[{B:"img",O:{src:"{{thumbnail}}"}},this.xZ]},{B:"div",Z:"ytp-featured-product-details",W:[{B:"text",Z:"ytp-featured-product-title",IH:"{{title}}"},this.A.N("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{B:"div",Z:"ytp-featured-product-price-container",O:{"aria-label":"{{priceA11yText}}"},W:[{B:"text",Z:"ytp-featured-product-price-when-promotion-text-enabled",IH:"{{price}}",O:{"aria-hidden":"true"}},{B:"text",Z:"ytp-featured-product-promotion-text",IH:"{{promotionText}}", O:{"aria-hidden":"true"}}]}:{B:"div",O:{"aria-label":"{{priceA11yText}}"},W:[{B:"text",Z:"ytp-featured-product-price",IH:"{{price}}",O:{"aria-hidden":"true"}},{B:"text",Z:"ytp-featured-product-sales-original-price",IH:"{{salesOriginalPrice}}",O:{"aria-hidden":"true"}},{B:"text",Z:"ytp-featured-product-price-drop-reference-price",IH:"{{priceDropReferencePrice}}",O:{"aria-hidden":"true"}}]},this.A.N("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{B:"div",Z:"ytp-featured-product-when-promotion-text-enabled", W:[{B:"text",Z:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",IH:"{{affiliateDisclaimer}}"},this.V,{B:"text",Z:"ytp-featured-product-vendor-when-promotion-text-enabled",IH:"{{vendor}}"}]}:{B:"div",W:[{B:"text",Z:"ytp-featured-product-affiliate-disclaimer",IH:"{{affiliateDisclaimer}}"},this.A.N("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.U:null,this.V,{B:"text",Z:"ytp-featured-product-vendor",IH:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]}); g.n(this,this.banner);this.banner.AX(this.S.element);this.j(this.A,g.fM("featured_product"),this.wB);this.j(this.A,g.yf("featured_product"),this.JX);this.j(this.A,"videodatachange",this.onVideoDataChange);this.j(this.overflowButton.element,"click",this.wi);this.j(b,"featuredproductdismissed",this.D)}wi(b){this.fR||(this.fR=new eW3(this.A),g.n(this,this.fR));this.Ys?.menu?.menuRenderer&&(this.fR.open(this.Ys.menu.menuRenderer,b.target),b.preventDefault())}K(){return!!this.G}wp(){return!!this.G}vY(b){b.target=== this.overflowButton.element?b.preventDefault():(this.K0&&g.rw(this.A,"innertubeCommand",this.K0),this.J(!1))}D(){this.J(!0);if(this.G?.bannerData?.dismissedStatusKey){if(this.FM.includes(this.G.bannerData.dismissedStatusKey))return;this.FM.push(this.G.bannerData.dismissedStatusKey)}this.JX();if(this.A.N("web_enable_shopping_timely_shelf_client")){const b={};g.Zq(b,iLT,{overlayId:"player_overlay_timely_shelf"});g.rw(this.A,"innertubeCommand",b)}}hc(){this.JX();Ix(this)}wB(b){if(b.id!==this.G?.identifier){this.JX(); for(const R of this.NJ){const h=R?.bannerData?.itemData;if(!h||R.identifier!==b.id)continue;if(this.FM.includes(R?.bannerData?.dismissedStatusKey||""))return;this.G=R;this.banner.element.setAttribute("aria-label",h.accessibilityLabel||"");h.trackingParams&&(this.X=!0,this.A.setTrackingParams(this.badge.element,h.trackingParams));this.show();this.T6.show();kn(this);this.xZ.sW(!h.stayInApp);this.PH?.stop();this.countdownTimer.hide();p1(this);Nk(this);this.K0=g.Z(h.onTapCommand,xJ);const K=g.Z(h.menuOnTap, xJ);K&&(this.Ys=g.Z(K,Wb2));this.banner.update({thumbnail:(h.thumbnailSources||[])[0]?.url,title:h.productTitle,price:h.priceReplacementText?h.priceReplacementText:h.price,salesOriginalPrice:qax(this),priceDropReferencePrice:daw(this),promotionText:f02(this),priceA11yText:y0P(this),affiliateDisclaimer:h.affiliateDisclaimer,vendor:ax(this)});h?.hiddenProductOptions?.showDropCountdown&&h?.hiddenProductOptions?.dropTimestampMs&&(this.PH=new g.bI(()=>{tkx(this)},1E3),this.xZ.hide(),this.countdownTimer.show(), tkx(this)); this.A.N("web_player_enable_featured_product_banner_exclusives_on_desktop")&&jMP(this)&&(this.ri=new g.bI(()=>{A0H(this)},1E3),A0H(this))}this.A.getRootNode()&&g.Nv(this.A.getRootNode(),"ytp-featured-product-shown")}}JX(){this.G&&(this.G=void 0,this.Y(),this.A.getRootNode()&&g.lI(this.A.getRootNode(),"ytp-featured-product-shown"))}onVideoDataChange(b,R){HuT(this,R); b==="dataloaded"&&Ix(this);b=g.Z(R.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.productsInVideoOverlayRenderer,GNP);this.overflowButton.show();this.dismissButton.hide();const h=b?.featuredProductsEntityKey;this.trendingOfferEntityKey=b?.trendingOfferEntityKey;this.NJ.length||(zzD(this,h),Nk(this));this.x4?.();this.x4=g.NF.subscribe(()=>{zzD(this,h);Nk(this)})}X5(){Ix(this); this.PH?.stop();this.countdownTimer.hide();p1(this);super.X5()}};var S_e=class extends g.w{constructor(b,R,h){super({B:"div",F5:["ytp-info-panel-action-item"],W:[{B:"div",Z:"ytp-info-panel-action-item-disclaimer",IH:"{{disclaimer}}"},{B:"a",F5:["ytp-info-panel-action-item-button","ytp-button"],O:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},W:[{B:"div",Z:"ytp-info-panel-action-item-icon",IH:"{{icon}}"},{B:"div",Z:"ytp-info-panel-action-item-label",IH:"{{label}}"}]}]});this.A=b;this.Y=h;this.disclaimer=this.yX("ytp-info-panel-action-item-disclaimer"); this.button=this.yX("ytp-info-panel-action-item-button");this.Jh=!1;this.A.createServerVe(this.element,this,!0);this.listen("click",this.onClick);b="";var K=g.Z(R?.onTap,xJ);h=g.Z(K,g.Y8);this.Jh=!1;h?(b=h.url||"",b.startsWith("//")&&(b="https:"+b),this.Jh=!0,g.bi(this.button,g.Fr(b))):(h=g.Z(K,nZP))&&!this.Y?((b=h.phoneNumbers)&&b.length>0?(b="sms:"+b[0],h.messageText&&(b+="?&body="+encodeURI(h.messageText))):b="",this.Jh=!0,g.bi(this.button,g.Fr(b,[M1T]))):(h=g.Z(K,SyK))&&!this.Y&&(b=h.phoneNumber? "tel:"+h.phoneNumber:"",this.Jh=!0,g.bi(this.button,g.Fr(b,[CYD])));!b&&(h=g.Z(R?.onTap,xJ),K=g.Z(h,NM))&&(this.Jh=!0,this.G=h,this.feedbackToken=K.feedbackToken);(h=R.disclaimerText?.content)?(this.button.style.borderBottom="1px solid white",this.button.style.paddingBottom="16px",this.update({label:R.bodyText?.content,icon:UaP(R.icon?.iconType),disclaimer:h})):(this.disclaimer.style.display="none",this.update({label:R.bodyText?.content,icon:UaP(R.icon?.iconType)}));this.A.setTrackingParams(this.element, R.trackingParams||null);this.Jh&&(this.X={externalLinkData:{url:b}})}onClick(){this.A.logClick(this.element,this.X);if(this.G&&this.feedbackToken){const b=this.A.MF();b?.Oq(this.G)&&(DC(b,this.G,{feedbackTokens:[this.feedbackToken]}),this.A.publish("infopaneldetaildismissed"))}}};var neq=class extends JA{constructor(b,R){const h=pW();super(b,{B:"div",Z:"ytp-info-panel-detail-skrim",W:[{B:"div",Z:"ytp-info-panel-detail",O:{role:"dialog",id:h},W:[{B:"div",Z:"ytp-info-panel-detail-header",W:[{B:"div",Z:"ytp-info-panel-detail-title",IH:"{{title}}"},{B:"button",F5:["ytp-info-panel-detail-close","ytp-button"],O:{"aria-label":"Cerrar"},W:[g.y7()]}]},{B:"div",Z:"ytp-info-panel-detail-body",IH:"{{body}}"},{B:"div",Z:"ytp-info-panel-detail-items"}]}]},250);this.G=R;this.items=this.yX("ytp-info-panel-detail-items"); this.Y=new g.Ke(this);this.itemData=[];this.X=h;this.j(this.yX("ytp-info-panel-detail-close"),"click",this.aT);this.j(this.yX("ytp-info-panel-detail-skrim"),"click",this.aT);this.j(this.yX("ytp-info-panel-detail"),"click",K=>{K.stopPropagation()}); this.j(this.A,"infopaneldetaildismissed",()=>{this.aT()}); g.n(this,this.Y);this.A.createServerVe(this.element,this,!0);this.j(b,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",b.getVideoData());this.hide()}show(){super.show();this.A.publish("infopaneldetailvisibilitychange",!0);this.A.logVisibility(this.element,!0);for(const b of this.itemData)b.A.logVisibility(b.element,!0)}hide(){super.hide();this.A.publish("infopaneldetailvisibilitychange",!1);this.A.logVisibility(this.element,!1);for(const b of this.itemData)b.A.logVisibility(b.element, !1)}getId(){return this.X}fU(){return this.itemData.length}onVideoDataChange(b,R){if(R){this.update({title:R.K5?.title?.content||"",body:R.K5?.bodyText?.content||""});this.A.setTrackingParams(this.element,R.K5?.trackingParams||null);for(const h of this.itemData)h.dispose();this.itemData=[];if(R.K5?.ctaButtons)for(const h of R.K5.ctaButtons)if(b=g.Z(h,foD))b=new S_e(this.A,b,this.G),b.Jh&&(this.itemData.push(b),b.AX(this.items))}}X5(){this.hide();super.X5()}};var EeD=class extends g.w{constructor(b,R){super({B:"button",Z:"ytp-info-panel-preview",O:{"aria-live":"assertive","aria-atomic":"true","aria-owns":R.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.Fo(b.L()))},W:[{B:"div",Z:"ytp-info-panel-preview-text",IH:"{{text}}"},{B:"div",Z:"ytp-info-panel-preview-chevron",IH:"{{chevron}}"}]});this.A=b;this.p5=this.G=this.videoId=null;this.isDismissed=this.X=this.showControls=this.Y=!1;this.j(this.element,"click",()=>{b.logClick(this.element);b.Vg(); ib(R)}); this.fade=new g.Sg(this,250,!1,100);g.n(this,this.fade);this.A.createServerVe(this.element,this,!0);this.j(b,"videodatachange",this.onVideoDataChange);this.j(b,"presentingplayerstatechange",this.D);this.j(this.A,"paidcontentoverlayvisibilitychange",this.V);this.j(this.A,"infopaneldetailvisibilitychange",this.V);const h=b.getVideoData()||{};(h.NJ?.title?.content||h.NJ?.bodyText?.content)&&vw(this,h);this.j(b,"onShowControls",this.J);this.j(b,"onHideControls",this.S);this.j(this.A,"infopaneldetaildismissed", ()=>{this.isDismissed=!0;this.hide()})}onVideoDataChange(b,R){vw(this,R); this.p5&&gyx(this,this.p5)}D(b){const R=this.A.getVideoData();this.videoId!==R.videoId&&vw(this,R);gyx(this,b.state);this.p5=b.state}V(b){(this.X=b)?this.hide():this.G&&!this.isDismissed&&this.show()}J(){this.Y||this.zD();this.showControls=!0}S(){this.Y||this.aT();this.showControls=!1}zD(){if(!this.isDismissed){var b=this.A?.getPlayerSize(),R=b.width<380;b=b.height<(this.A?.isEmbedsShortsMode()?400:280);(this.A?.getPlayerStateObject().isCued()||this.A?.getPlayerStateObject().G(1024))&&R&&b||!this.G|| this.X||(this.fade.show(),this.A.publish("infopanelpreviewvisibilitychange",!0),this.A.logVisibility(this.element,!0))}}aT(){this.G&&!this.X&&(this.fade.hide(),this.A.publish("infopanelpreviewvisibilitychange",!1),this.A.logVisibility(this.element,!1))}K(){this.Y=!1;this.showControls||this.aT()}};var TfK={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(TfK).reduce((b,R)=>{b[TfK[R]]=R;return b},{}); var JIT={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(JIT).reduce((b,R)=>{b[JIT[R]]=R;return b},{}); var k7K={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(k7K).reduce((b,R)=>{b[k7K[R]]=R;return b},{});var gF,Y_K;gF=[{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"}];Y_K=[{option:0,text:Bw(0)},{option:.25,text:Bw(.25)},{option:.5,text:Bw(.5)},{option:.75,text:Bw(.75)},{option:1,text:Bw(1)}]; g.f1=[{option:"fontFamily",text:"Conjunto de fuentes",options:[{option:1,text:"Serif monoespaciada"},{option:2,text:"Serif proporcional"},{option:3,text:"Sans-Serif monoespaciada"},{option:4,text:"Sans-Serif proporcional"},{option:5,text:"Casual"},{option:6,text:"Cursiva"},{option:7,text:"Versalitas"}]},{option:"color",text:"Color de fuente",options:gF},{option:"fontSizeIncrement",text:"Tama\u00f1o de fuente",options:[{option:-2,text:Bw(.5)},{option:-1,text:Bw(.75)},{option:0,text:Bw(1)},{option:1, text:Bw(1.5)},{option:2,text:Bw(2)},{option:3,text:Bw(3)},{option:4,text:Bw(4)}]},{option:"background",text:"Color de fondo",options:gF},{option:"backgroundOpacity",text:"Opacidad del fondo",options:Y_K},{option:"windowColor",text:"Color de la ventana",options:gF},{option:"windowOpacity",text:"Opacidad de la ventana",options:Y_K},{option:"charEdgeStyle",text:"Estilo del borde de los caracteres",options:[{option:0,text:"Ninguno"},{option:4,text:"Sombra paralela"},{option:1,text:"Relieve"},{option:2, text:"Hundido"},{option:3,text:"Contorno"}]},{option:"textOpacity",text:"Opacidad de la fuente",options:[{option:.25,text:Bw(.25)},{option:.5,text:Bw(.5)},{option:.75,text:Bw(.75)},{option:1,text:Bw(1)}]}];var eiw=[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],Obx=class extends g.Ke{constructor(b,R,h,K,I,N,p,l){super();this.api=b;this.U=R;this.contextMenu=h;this.qC=K;this.Ah=I;this.G=N;this.G6=p;this.progressBar=l;this.S=new g.bI(()=>{T2K(this,!1)},1E3); this.X="";this.V={pn:!1,A0:!1,JY:!1};g.n(this,this.S);this.j(R,"mousedown",()=>{qk(this,!1)}); this.j(h.element,"mousedown",()=>{qk(this,!1)}); this.j(R,"keydown",this.J);this.j(h.element,"keydown",this.J);this.j(R,"keyup",this.K);this.j(h.element,"keyup",this.K)}J(b){b.repeat||(this.V.pn=!1);let R=!1;const h=b.keyCode;var K=h$(b);let I=!b.altKey&&!b.ctrlKey&&!b.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||eiw.includes(h));var N=!1;let p=!1;const l=this.api.L();b.defaultPrevented?(I=!1,p=!0):l.ri&&!this.api.isMutedByEmbedsMutedAutoplay()&&(I=!1);if(h===9)R=!0;else{if(K)switch(h){case 32:case 13:if(K.tagName==="BUTTON"||K.tagName=== "A"||K.tagName==="INPUT")R=!0,I=!1;else if(I){var a=K.getAttribute("role");!a||a!=="option"&&a!=="button"&&a.indexOf("menuitem")!==0||(R=!0,K.click(),N=!0)}break;case 37:case 39:case 36:case 35:R=K.getAttribute("role")==="slider";break;case 38:case 40:a=K.getAttribute("role"),K=h===38?K.previousSibling:K.nextSibling,a==="slider"?R=!0:I&&(a==="option"?(K&&K.getAttribute("role")==="option"&&K.focus(),N=R=!0):a&&a.indexOf("menuitem")===0&&(K&&K.hasAttribute("role")&&K.getAttribute("role").indexOf("menuitem")=== 0&&K.focus(),N=R=!0))}if(I&&!N)switch(h){case 38:N=Math.min(this.api.getVolume()+5,100);FF(this.Ah,N,!1);this.api.setVolume(N);p=N=!0;break;case 40:N=Math.max(this.api.getVolume()-5,0);FF(this.Ah,N,!0);this.api.setVolume(N);p=N=!0;break;case 36:this.api.Hr()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),p=N=!0);break;case 35:this.api.Hr()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),p=N=!0)}}R&&qk(this,!0);(R||p)&&this.qC.ea();(N|| I&&this.handleGlobalKeyDown(h,b.shiftKey,b.ctrlKey,b.altKey,b.metaKey,b.key,b.code,b.repeat))&&b.preventDefault();l.K&&(b={keyCode:b.keyCode,altKey:b.altKey,ctrlKey:b.ctrlKey,metaKey:b.metaKey,shiftKey:b.shiftKey,handled:b.defaultPrevented,fullscreen:this.api.isFullscreen()},g.Dr(this.api,"onKeyPress",b))}K(b){const R=b.keyCode;!this.V.A0&&this.handleGlobalKeyUp(R,b.shiftKey,b.ctrlKey,b.altKey,b.metaKey,b.key,b.code)&&b.preventDefault()}handleGlobalKeyUp(b,R,h,K,I,N,p){this.api.publish("keyboardserviceglobalkeyup", {keyCode:b,shiftKey:R,ctrlKey:h,altKey:K,metaKey:I,key:N,code:p});R=!1;if(this.V.pn)return R;(N=g.qy(this.api.VV()))&&(N=N.Fe)&&N.XM&&(N.o6(b),R=!0);switch(b){case 9:qk(this,!0);R=!0;break;case 32:this.api.N("web_speedmaster_spacebar_control")&&(this.api.L().ri||(R=this.Hd(this.progressBar?.CN()?.isEnabled)));break;case 39:(this.api.N("web_player_chapter_seeking_keyboard_shortcut_killswitch")||!(I||h&&K))&&(mf?K:h)&&this.api.Hr()&&this.api.N("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(), b=(b=this.api.getVideoData())?b.m_:[],h=Sa2(b,this.api.getCurrentTime()*1E3),h!==-1&&this.G!=null&&(this.G.vL(1,b[h].title),this.api.seekTo(b[h].startTime/1E3,void 0,void 0,void 0,52),R=!0))}return R}handleGlobalKeyDown(b,R,h,K,I,N,p,l){l||(this.V.pn=!1);var a=!1,v=this.api.L();if(v.ri&&!this.api.isMutedByEmbedsMutedAutoplay())return a;var B=g.qy(this.api.VV());if(B&&(B=B.Fe)&&B.XM)switch(b){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:a=B.Zv(b)}v.J||a||(a=N||String.fromCharCode(b).toLowerCase(), this.X+=a,"awesome".indexOf(this.X)===0||this.api.N("web_player_rtr_ctrls")&&"bday".indexOf(this.X)===0?(a=!0,4===this.X.length&&this.X==="bday"&&this.api.N("web_player_rtr_ctrls")&&(W9e(this.U),this.qC.ea()),7===this.X.length&&this.X==="awesome"&&vX(this.api.getRootNode(),"ytp-color-party")):(this.X=a,a="awesome".indexOf(this.X)===0||"bday".indexOf(this.X)===0));if(!a&&(!this.api.isMutedByEmbedsMutedAutoplay()||eiw.includes(b))){B=this.api.getVideoData();var H=this.progressBar?.CN()?.isEnabled;B= B?B.m_:[];const q=mf?K:h;switch(b){case 80:R&&!v.vY&&(wh(this.Ah,pyw(),"Anterior"),this.api.previousVideo(),a=!0);break;case 78:R&&!v.vY&&(wh(this.Ah,i2(),"Siguiente"),this.api.nextVideo(),a=!0);break;case 74:this.api.Hr()&&(this.api.startSeekCsiAction(),this.G?this.api.N("enable_key_press_seek_logging")?(a=dG(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.G.aP(-1,10,a)):this.G.aP(-1,10):wh(this.Ah,{B:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"}, W:[{B:"path",XX:!0,Z:"ytp-svg-fill",O:{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),a=!0);break;case 76:this.api.Hr()&&(this.api.startSeekCsiAction(),this.G?this.api.N("enable_key_press_seek_logging")?(a=dG(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.G.aP(1,10,a)):this.G.aP(1,10):wh(this.Ah,{B:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{B:"path",XX:!0,Z:"ytp-svg-fill",O:{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),a=!0);break;case 37:if(this.api.Hr())if(this.api.startSeekCsiAction(),q){if(this.api.N("web_player_chapter_seeking_keyboard_shortcut_killswitch")||!(I||h&&K))H=ny3(B,this.api.getCurrentTime()*1E3),H!==-1&&this.G!=null&&(this.G.vL(-1,B[H].title),this.api.seekTo(B[H].startTime/1E3,void 0,void 0,void 0,53),a=!0)}else this.G?this.api.N("enable_key_press_seek_logging")?(a=dG(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"), this.G.aP(-1,5,a)):this.G.aP(-1,5):wh(this.Ah,{B:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{B:"path",XX:!0,Z:"ytp-svg-fill",O:{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),a=!0;break;case 39:this.api.Hr()&&(this.api.startSeekCsiAction(),q?this.api.N("web_enable_keyboard_shortcut_for_timely_actions")||!this.api.N("web_player_chapter_seeking_keyboard_shortcut_killswitch")&&(I||h&&K)||(H=Sa2(B,this.api.getCurrentTime()*1E3),H!==-1&&this.G!=null&&(this.G.vL(1,B[H].title),this.api.seekTo(B[H].startTime/1E3,void 0,void 0,void 0,52),a=!0)):(this.G!=null?this.api.N("enable_key_press_seek_logging")?(a=dG(this,5* this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.G.aP(1,5,a)):this.G.aP(1,5):wh(this.Ah,{B:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{B:"path",XX:!0,Z:"ytp-svg-fill",O:{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),a=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),FF(this.Ah,this.api.getVolume(),!1)):(this.api.mute(),FF(this.Ah,0,!0));a=!0;break;case 32:a=this.api.N("web_speedmaster_spacebar_control")?!this.api.L().vY:this.Hd(H);break;case 75:a=this.Hd(H);break;case 190:R?v.enableSpeedOptions&&klT(this)&&(a=this.api.getPlaybackRate(),this.api.setPlaybackRate(a+.25,!0),C8T(this.Ah,!1),a=!0):this.api.Hr()&&(this.step(1),a=!0);break;case 188:R? v.enableSpeedOptions&&klT(this)&&(a=this.api.getPlaybackRate(),this.api.setPlaybackRate(a-.25,!0),C8T(this.Ah,!0),a=!0):this.api.Hr()&&(this.step(-1),a=!0);break;case 70:JkK(this.api)&&(this.api.toggleFullscreen().catch(()=>{}),a=!0); break;case 27:H?(this.progressBar.H2(),a=!0):this.G6()&&(a=!0)}if(v.controlsType!=="3")switch(b){case 67:g.gh(this.api.VV())&&(v=this.api.getOption("captions","track"),this.api.toggleSubtitles(),Mex(this.Ah,!v||v&&!v.displayName),a=!0);break;case 79:tA(this,"textOpacity");break;case 87:tA(this,"windowOpacity");break;case 187:case 61:tA(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:tA(this,"fontSizeIncrement",!0,!0)}let d;R||h||K||(b>=48&&b<=57?d=b-48:b>=96&&b<=105&&(d=b-96));d!=null&&this.api.Hr()&& !this.api.N("web_player_disable_keyboard_seek_percent")&&(this.api.startSeekCsiAction(),v=this.api.getProgressState(),this.api.seekTo(d/10*(v.seekableEnd-v.seekableStart)+v.seekableStart,void 0,void 0,void 0,81),a=!0);a&&this.qC.ea()}this.V.JY=!1;this.api.publish("keyboardserviceglobalkeydown",{keyCode:b,shiftKey:R,ctrlKey:h,altKey:K,metaKey:I,key:N,code:p,repeat:l},this.V);this.V.JY&&(a=!0,this.qC.ea());return a}step(b){this.api.Hr();if(this.api.getPlayerStateObject().isPaused()){var R=this.api.getVideoData().Y; R&&(R=R.video)&&this.api.seekBy(b/(R.fps||30),void 0,void 0,b>0?77:78)}}Hd(b){if(!this.api.L().vY){const R=this.api.getVideoData()?.getPlayerResponse()?.playabilityStatus;R&&g.Z(R.miniplayer,OLw)?.playbackMode==="PLAYBACK_MODE_PAUSED_ONLY"&&g.rw(this.api,"onExpandMiniplayer");b?this.progressBar.wi():(b=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.Ah.K4(b),b?this.api.playVideo():this.api.pauseVideo());return!0}return!1}X5(){this.S.i6();super.X5()}};var QW2=class extends g.w{constructor(b,R){super({B:"button",F5:["ytp-button","ytp-overflow-button"],O:{title:b.N("player_tooltip_data_title_killswitch")?"M\u00e1s":"","data-tooltip-title":"M\u00e1s","aria-haspopup":"true","aria-owns":R.element.id},W:[{B:"div",Z:"ytp-overflow-icon",W:[{B:"svg",O:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},W:[{B:"path",O:{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z", fill:"#fff"}}]}]}]});this.A=b;this.WI=R;this.visible=!1;b.createClientVe(this.element,this,16499);this.j(b,"videoplayerreset",this.bv);this.j(b,"appresize",this.bv);this.j(b,"fullscreentoggled",this.bv);this.j(b,"presentingplayerstatechange",this.bv);this.bv();Ny(b,this.element,this);this.listen("click",()=>{b.logClick(this.element);ib(R,this.element,!1)}); this.j(R.closeButton,"click",()=>{this.focus()})}bv(){var b=this.A.L(); const R=b.X||this.A.N("web_player_hide_overflow_button_if_empty_menu")&&this.WI.isEmpty();b=g.Fo(b)&&g.Br(this.A)&&this.A.getPlayerStateObject().G(128);const h=this.A.getPlayerSize();this.visible=this.A.DP()&&!b&&h.width>=240&&!this.A.getVideoData().C0&&!R&&!this.A.isEmbedsShortsMode();g.k(this.element,"ytp-overflow-button-visible",this.visible);this.sW(this.visible);this.visible&&this.A.d4();this.A.logVisibility(this.element,this.visible&&this.G6)}Qp(b){super.Qp(b);this.A.logVisibility(this.element, this.visible&&b)}X5(){super.X5();g.lI(this.element,"ytp-overflow-button-visible")}};var xoq=class extends JA{constructor(b){super(b,{B:"div",Z:"ytp-overflow-panel",O:{id:pW(),role:"dialog"},W:[{B:"div",Z:"ytp-overflow-panel-content",W:[{B:"div",Z:"ytp-overflow-panel-action-buttons",IH:"{{buttons}}"}]},{B:"button",F5:["ytp-overflow-panel-close","ytp-button"],O:{"data-tooltip-title":"Cerrar",title:b.L().N("player_tooltip_data_title_killswitch")?"Cerrar":""},W:[g.y7()]}]},250);this.actionButtons=[];this.G=this.yX("ytp-overflow-panel-content");this.closeButton=this.yX("ytp-overflow-panel-close"); this.j(this.closeButton,"click",this.aT);Ny(b,this.closeButton,this);this.listen("click",this.Y);this.j(b,"videoplayerreset",this.hide);this.j(b,"fullscreentoggled",this.onFullscreenToggled);this.hide()}Y(b){b=h$(b);g.gM(this.element,b)&&(g.gM(this.G,b)||g.gM(this.closeButton,b)||ib(this))}aT(){super.aT();this.A.dT(this.element)}show(){this.XM&&this.A.publish("OVERFLOW_PANEL_OPENED");super.show();this.element.setAttribute("aria-modal","true");for(const b of this.actionButtons)b.Qp(!0)}hide(){super.hide(); this.element.removeAttribute("aria-modal");for(const b of this.actionButtons)b.Qp(!1)}onFullscreenToggled(b){!b&&this.nZ()&&ib(this)}isEmpty(){return this.actionButtons.length===0}focus(){for(const b of this.actionButtons)if(b.XM){b.focus();break}}};var moK=class extends g.w{constructor(b,R,h){const K=g.fE(R,h),I=K.hU("default.jpg");super({B:"a",F5:["ytp-video-menu-item","ytp-button"],O:{role:"menuitemradio","aria-label":K.title,href:b.L().getVideoUrl(K.videoId,R.listId?R.listId.toString():null)},W:[{B:"div",Z:"ytp-video-menu-item-index",IH:String(h+1)},{B:"div",Z:"ytp-video-menu-item-now-playing",IH:"\u25b6"},{B:"div",Z:"ytp-video-menu-item-thumbnail",O:{style:I?`background-image: url(${I});`:void 0}},{B:"div",Z:"ytp-video-menu-item-title", IH:K.title},{B:"div",Z:"ytp-video-menu-item-author",IH:K.author}]});this.api=b;this.index=h;this.listen("click",this.onClick)}onClick(b){g.Ez(b,this.api)&&this.api.playVideoAt(this.index)}};var Pe2=class extends JA{constructor(b){super(b,{B:"div",Z:"ytp-playlist-menu",O:{role:"dialog",id:pW()},W:[{B:"div",Z:"ytp-playlist-menu-header",W:[{B:"div",Z:"ytp-playlist-menu-title",W:[b.L().X?{B:"span",Z:"ytp-playlist-menu-title-name",IH:"{{title}}"}:{B:"a",Z:"ytp-playlist-menu-title-name",O:{href:"{{playlisturl}}"},IH:"{{title}}"},{B:"button",F5:["ytp-playlist-menu-close","ytp-button"],O:{"aria-label":"Cerrar"},W:[g.y7()]}]},{B:"div",Z:"ytp-playlist-menu-subtitle",IH:"{{subtitle}}"}]},{B:"div", Z:"ytp-playlist-menu-items",O:{role:"menu"}}]},250);this.api=b;this.X=this.selected=this.D=this.playlist=null;this.items=this.yX("ytp-playlist-menu-items");this.G=new g.Ke(this);this.playlistData=[];this.j(this.yX("ytp-playlist-menu-close"),"click",this.aT);const R=this.yX("ytp-playlist-menu-title-name");b.L().X||(this.X=this.j(R,"click",this.C));g.n(this,this.G);this.hide()}show(){super.show();this.G.j(this.api,"videodatachange",this.V);this.G.j(this.api,"onPlaylistUpdate",this.V);this.V()}hide(){super.hide(); this.G.Y();this.updatePlaylist(null)}V(){this.updatePlaylist(this.api.getPlaylist());this.api.L().X&&(this.yX("ytp-playlist-menu-title-name").removeAttribute("href"),this.X&&(this.Ac(this.X),this.X=null))}Y(){const b=this.playlist;var R=b.author,h=R?"de $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",K={CURRENT_POSITION:String(b.index+1),PLAYLIST_LENGTH:String(b.length)};R&&(K.AUTHOR=R);this.update({title:b.title,subtitle:g.zc(h,K),playlisturl:this.api.getVideoUrl(!0)}); R=b.Y;if(R===this.D)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[b.index];else{for(var I of this.playlistData)I.dispose();I=b.length;this.playlistData=[];for(h=0;h{b.logClick(this.element); b.N("delhi_web_player_use_external_playlist_panel")?g.rw(b,"onToggleExternalPlaylistPanel"):ib(R,this.element,!1)})}hide(){super.hide(); this.Qp(!1);this.api.d4()}bv(){const b=g.Fo(this.api.L());g.k(this.element,"ytp-playlist-menu-button-tiny",this.api.tX().getPlayerSize().width<400&&!b);this.api.isEmbedsShortsMode()?this.hide():this.playlist&&this.api.getPresentingPlayerType()!==2?(this.update({text:g.zc("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.length)}),title:g.zc("Lista de reproducci\u00f3n: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title}),"tooltip-title":g.zc("Lista de reproducci\u00f3n: $PLAYLIST_NAME", {PLAYLIST_NAME:this.playlist.title})}),this.api.N("delhi_modern_web_player")&&this.update({playlistTitle:g.zc("Lista de reproducci\u00f3n: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.XM||(this.show(),this.api.d4()),this.visible=!0,this.Qp(!0)):this.XM&&this.hide()}Qp(b){super.Qp(b);this.api.logVisibility(this.element,this.visible&&b)}G(){this.playlist&&this.playlist.unsubscribe("shuffle",this.bv,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.bv, this);this.bv()}};var VfD=class extends g.w{constructor(b,R){super({B:"div",Z:"ytp-promotooltip-wrapper",W:[{B:"div",Z:"ytp-promotooltip-container",W:[{B:"div",Z:"ytp-promotooltip-content",W:[{B:"div",Z:"ytp-promotooltip-title",IH:"{{title}}"},{B:"div",Z:"ytp-promotooltip-details",IH:"{{details}}"}]},{B:"div",Z:"ytp-promotooltip-buttons",W:[{B:"div",Z:"ytp-promotooltip-dismiss-button",IH:"{{dismissButtonText}}",O:{tabindex:"0"}},{B:"div",Z:"ytp-promotooltip-accept-button",IH:"{{acceptButtonText}}",O:{tabindex:"0", "aria-haspopup":"true"}}]}]},{B:"div",Z:"ytp-promotooltip-pointer"}]});this.tooltipRenderer=b;this.A=R;this.G=this.sourceElement=null;this.title=this.yX("ytp-promotooltip-title");this.details=this.yX("ytp-promotooltip-details");this.acceptButton=this.yX("ytp-promotooltip-accept-button");this.dismissButton=this.yX("ytp-promotooltip-dismiss-button");this.Y=this.V=!1;this.X=!0;this.U=this.J=this.K=this.D=!1;this.w2={ZR:h=>{this.ZR(h)}}; this.sW(!1);b=this.tooltipRenderer.trackingParams||null;if(this.Y=!!b)this.A.createServerVe(this.element,this,!0),this.A.setTrackingParams(this.element,b);this.j(R,"onShowControls",this.nR);this.j(R,"onHideControls",this.C);this.j(R,"resize",this.fz);this.j(this.acceptButton,"click",this.MJ);this.j(this.dismissButton,"click",this.gp);this.j(document,"click",this.T6)}S(b,R){if(!this.V){if(b){this.tooltipRenderer=b;b=this.tooltipRenderer.text;var h=!1;b?.runs?.length&&b.runs[0].text&&(this.update({title:b.runs[0].text.toString()}), h=!0);g.aR(this.title,h);h=this.tooltipRenderer.detailsText;b=!1;if(h?.runs?.length&&h.runs[0].text){{var K=h.runs[0].text.toString();const a=K.indexOf("$TARGET_ICON");if(a>-1)if(this.tooltipRenderer.targetId){h=[];K=K.split("$TARGET_ICON");var I=new g.Ag({B:"span",Z:"ytp-promotooltip-details-icon",W:[cIH[this.tooltipRenderer.targetId]]});g.n(this,I);var N=[];for(p of K){const v=new g.Ag({B:"span",Z:"ytp-promotooltip-details-component",IH:p});g.n(this,v);N.push(v)}K.length===2?(h.push(N[0].element), h.push(I.element),h.push(N[1].element)):K.length===1&&(a===0?(h.push(I.element),h.push(N[0].element)):(h.push(N[0].element),h.push(I.element)));var p=h.length?h:null}else p=null;else p=K}if(p){if(typeof p!=="string"){g.zF(this.details);for(var l of p)this.details.appendChild(l)}else this.update({details:p});b=!0}}g.aR(this.details,b);l=this.tooltipRenderer.acceptButton;p=!1;g.Z(l,N6)?.text?.runs?.length&&g.Z(l,N6).text.runs[0].text&&(this.update({acceptButtonText:g.Z(l,N6).text.runs[0].text.toString()}), p=!0);g.aR(this.acceptButton,p);l=this.tooltipRenderer.dismissButton;p=!1;g.Z(l,N6)?.text?.runs?.length&&g.Z(l,N6).text.runs[0].text&&(this.update({dismissButtonText:g.Z(l,N6).text.runs[0].text.toString()}),p=!0);g.aR(this.dismissButton,p)}R&&(this.sourceElement=R);this.G=Yax(this);this.J=!1;this.A.L().N("web_player_hide_nitrate_promo_tooltip")||this.sW(!0);AA(this);this.XM&&!this.U&&(this.U=!0,this.w2.ZR(0));this.Y&&this.A.logVisibility(this.element,this.XM)}}nR(){this.X?this.S():AA(this)}C(){this.X? (i3(this),this.J=!0):AA(this)}MJ(){this.V=!0;this.ZR(1);this.A.publish("promotooltipacceptbuttonclicked",this.acceptButton);i3(this);this.Y&&this.A.logClick(this.acceptButton)}gp(){this.V=!0;this.ZR(2);i3(this);this.Y&&this.A.logClick(this.dismissButton)}T6(b){if(this.A.getPresentingPlayerType()===1||this.A.getPresentingPlayerType()===2&&this.D){var R=!0,h=g.p0("ytp-ad-overlay-ad-info-dialog-container"),K=g.p0("ytp-ad-player-overlay-layout"),I=h$(b);if(this.sourceElement&&I&&g.gM(this.sourceElement, I))this.sourceElement=null;else{this.A.getPresentingPlayerType()===1&&I&&Array.from(I.classList).forEach(p=>{if(p.startsWith("ytp-ad")||p.startsWith("ytp-skip-ad"))R=!1}); var N=ez3(this.tooltipRenderer);this.tooltipRenderer.dismissStrategy?.type==="TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE"?N&&(R=R&&!g.gM(this.element,I)):this.tooltipRenderer.dismissStrategy?.type==="TOOLTIP_DISMISS_TYPE_TAP_INTERNAL"&&(R=N?!1:R&&g.gM(this.element,I));this.G&&this.XM&&!h&&!K&&(!I||R&&g.MU(b))&&(this.V=!0,i3(this))}}}ZR(b){var R=this.tooltipRenderer.promoConfig;if(R){let h;switch(b){case 0:R.impressionEndpoints?.length&&(h=R.impressionEndpoints[0]);break;case 1:h=R.acceptCommand;break;case 2:h= R.dismissCommand}b=g.Z(h,NM)?.feedbackToken;h&&b&&(b={feedbackTokens:[b]},R=this.A.MF(),R?.Oq(h)&&DC(R,h,b))}}fz(){this.J||(this.G||(this.G=Yax(this)),this.S())}},cIH={"ytp-settings-button":g.Sv()};var ueK=class extends g.w{constructor(b){super({B:"button",F5:["ytp-replay-button","ytp-button"],O:{title:b.N("player_tooltip_data_title_killswitch")?"Ver de nuevo":"","data-tooltip-title":"Ver de nuevo"},W:[g.WY()]});this.A=b;this.j(b,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.Na(b.getPlayerStateObject());Ny(this.A,this.element,this)}onStateChange(b){this.Na(b.state)}Na(b){this.sW(b.G(2))}onClick(){this.A.getPlayerStateObject().isOrWillBePlaying(); this.A.playVideo()}};var Xfq=class extends g.w{constructor(b){super({B:"button",F5:["ytp-button","ytp-search-button"],O:{title:b.N("player_tooltip_data_title_killswitch")?"Buscar":"","data-tooltip-title":"Buscar","data-tooltip-opaque":String(g.Fo(b.L()))},W:[{B:"div",Z:"ytp-search-icon",IH:"{{icon}}"},{B:"div",Z:"ytp-search-title",IH:"Buscar"}]});this.api=b;this.visible=!1;this.updateValue("icon",{B:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},W:[{B:"path",Z:"ytp-svg-fill",O:{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"}}]}); b.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.G();this.j(b,"appresize",this.G);this.j(b,"videodatachange",this.G);Ny(b,this.element,this)}onClick(b){this.api.logClick(this.element);var R=g.z9(this.api.L().y0,{focusSearch:"true"}),h={};g.F8(this.api,"addEmbedsConversionTrackingParams",[h]);R=g.z9(R,h);(h=this.api.getVideoData().MR?.params)&&(R=g.z9(R,{bp:h}));g.$w(window,R);b.preventDefault()}G(){if(this.api.N("embeds_web_enable_search_button")){var b=this.api.L(); var R=this.api.getVideoData(),h=this.api.tX().getPlayerSize().width;b=g.Fo(b)&&h>=240&&!b.X&&!R.isAd()&&!this.api.isEmbedsShortsMode()}else b=!1;this.visible=b;this.sW(this.visible);g.k(this.element,"ytp-search-button-visible",this.visible);g.k(this.element,"ytp-show-search-title",!this.api.DP());this.api.logVisibility(this.element,this.visible&&this.G6)}Qp(b){super.Qp(b);this.api.logVisibility(this.element,this.visible&&b)}};var Vjw=class extends g.w{constructor(b){super({B:"div",Z:"ytp-seek-overlay",W:[{B:"div",F5:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-back"],W:[{B:"div",F5:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],W:[{B:"svg",O:{viewBox:"0 0 22 32",width:"22",height:"24"},W:[{B:"path",O:{d:"M 18 4 L 6 16 L 18 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]},{B:"div",Z:"ytp-seek-overlay-duration",IH:"{{durationBack}}"}]},{B:"div",F5:["ytp-seek-overlay-animation", "ytp-seek-overlay-animation-forward"],W:[{B:"div",Z:"ytp-seek-overlay-duration",IH:"{{durationForward}}"},{B:"div",F5:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],W:[{B:"svg",O:{viewBox:"0 0 22 32",width:"22",height:"24"},W:[{B:"path",O:{d:"M 4 4 L 16 16 L 4 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]}]},{B:"div",Z:"ytp-seek-overlay-message",W:[{B:"div",Z:"ytp-seek-overlay-message-icon",IH:"{{icon}}"},{B:"div",Z:"ytp-seek-overlay-message-text", IH:"{{text}}"}]}]});this.A=b;this.S=0;this.G="hidden";this.D=this.yX("ytp-seek-overlay-animation-back");this.K=this.yX("ytp-seek-overlay-animation-forward");this.U=this.yX("ytp-seek-overlay-message");this.J=new g.bI(()=>{QMx(this)},g.fg(this.A.L().experiments,"web_player_seek_overlay_linger_duration")||1E3); g.n(this,this.J);this.A.createClientVe(this.K,this,28240);this.A.createClientVe(this.D,this,28239);this.A.logVisibility(this.K,!0);this.A.logVisibility(this.D,!0);this.hide()}trigger(b,R,h,K){this.show();if(this.Y&&b!==this.Y){let I=1;this.X&&(I=Zuw(this));QMx(this,I,!1);OuK(this)}this.Y=b;this.V=this.Y===-1?this.D:this.K;b="";R?(this.Y===-1&&this.A.getCurrentTime()<=R?this.S=R:this.S+=R,b=`${this.Y===-1?"\u2212":"+"} ${this.S}`):this.S=0;this.updateValue(this.Y===-1?"durationBack":"durationForward", b);if(this.G==="hidden"||this.G==="fading-out")R=0,this.G==="fading-out"&&(R=Zuw(this),PoP(this)),xaD(this,R),this.G!=="fading-out"&&max(this,this.V.querySelector(".ytp-seek-overlay-arrow-persistent")),this.G="fading-in";else if(this.G==="fading-in"||this.G==="lingering")R=this.V.querySelector(".ytp-seek-overlay-duration"),b=g.fg(this.A.L().experiments,"web_player_seek_overlay_duration_bump_scale")||.9,R.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(${b})`},{offset:1,transform:"scale(1)"}],{duration:184}),PoP(this),this.G==="lingering"&&(this.J.stop(),this.J.start());h&&c0T(this,h,K)}UN(b,R,h,K){this.trigger(b,K)}aP(b,R,h){this.trigger(b,R);h&&(b=b===-1?this.K.visualElement:this.D.visualElement,h={seekData:h},(R=g.Ui())&&$8(R,b,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",h))}vL(b,R,h){this.trigger(b,void 0,R,h)}};var Cex=class extends g.w{constructor(b,R,h){super({B:"button",F5:["ytp-button","ytp-share-button"],O:{title:b.N("player_tooltip_data_title_killswitch")?"Compartir":"","data-tooltip-title":"Compartir","aria-haspopup":"true","aria-owns":h.element.id,"data-tooltip-opaque":String(g.Fo(b.L()))},W:[{B:"div",Z:"ytp-share-icon",IH:"{{icon}}"},{B:"div",Z:"ytp-share-title",IH:"Compartir"}]});this.api=b;this.G=R;this.Y=h;this.visible=!1;this.tooltip=this.G.qb();b.createClientVe(this.element,this,28664);this.listen("click", this.onClick);this.j(b,"videodatachange",this.bv);this.j(b,"videoplayerreset",this.bv);this.j(b,"appresize",this.bv);this.j(b,"presentingplayerstatechange",this.bv);this.bv();this.addOnDisposeCallback(g.IL(this.tooltip,this.element))}onClick(){var b=this.api.L();const R=this.api.getVideoData({playerType:this.api.getPresentingPlayerType()}),h=this.api.getPlaylistId();b=this.api.N("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):b.getVideoUrl(R.videoId,h,void 0,!0);if(navigator.share)try{const K= navigator.share({title:R.title,url:b});K instanceof Promise&&K.catch(I=>{uQP(this,I)})}catch(K){K instanceof Error&&uQP(this,K)}else this.G.Vg(),ib(this.Y,this.element,!1); this.api.logClick(this.element)}bv(){var b=this.api.L();const R=this.api.isEmbedsShortsMode();g.k(this.element,"ytp-show-share-title",g.Fo(b)&&!R);this.G.tU()&&R?(b=(this.api.tX().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.MN(this.element,"right",`${b}px`)):R&&g.MN(this.element,"right","0px");this.updateValue("icon",{B:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{B:"path",XX:!0,Z:"ytp-svg-fill",O:{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=ze(this);g.k(this.element,"ytp-share-button-visible",this.visible);this.sW(this.visible);this.tooltip.d4();this.api.logVisibility(this.element,ze(this)&&this.G6)}Qp(b){super.Qp(b);this.api.logVisibility(this.element,this.visible&&b)}X5(){super.X5();g.lI(this.element,"ytp-share-button-visible")}};var Mje=class extends JA{constructor(b,R){var h=pW();const K=b.L();h={B:"div",Z:"ytp-share-panel",O:{id:pW(),role:"dialog","aria-labelledby":h},W:[{B:"div",Z:"ytp-share-panel-inner-content",W:[{B:"div",Z:"ytp-share-panel-title",O:{id:h},IH:"Compartir"},{B:"a",F5:["ytp-share-panel-link","ytp-no-contextmenu"],O:{href:"{{link}}",target:K.U,title:"Enlace de v\u00eddeo compartido","aria-label":"{{shareLinkWithUrl}}"},IH:"{{linkText}}"},{B:"label",Z:"ytp-share-panel-include-playlist",W:[{B:"input",Z:"ytp-share-panel-include-playlist-checkbox", O:{type:"checkbox",checked:"true"}},"Incluir lista de reproducci\u00f3n"]},{B:"div",Z:"ytp-share-panel-loading-spinner",W:[ku()]},{B:"div",Z:"ytp-share-panel-service-buttons",IH:"{{buttons}}"},{B:"div",Z:"ytp-share-panel-error",IH:"Se ha producido un error al recuperar la informaci\u00f3n de uso compartido. Vuelve a intentarlo m\u00e1s tarde."}]},{B:"button",F5:["ytp-share-panel-close","ytp-button"],O:{title:"Cerrar"},W:[g.y7()]}]};super(b,h,250);this.moreButton=null;this.api=b;this.tooltip=R.qb(); this.Y=[];this.V=this.yX("ytp-share-panel-inner-content");this.closeButton=this.yX("ytp-share-panel-close");this.j(this.closeButton,"click",this.aT);this.addOnDisposeCallback(g.IL(this.tooltip,this.closeButton));this.X=this.yX("ytp-share-panel-include-playlist-checkbox");this.j(this.X,"click",this.bv);this.G=this.yX("ytp-share-panel-link");this.addOnDisposeCallback(g.IL(this.tooltip,this.G));this.api.createClientVe(this.G,this,164503);this.j(this.G,"click",I=>{I.preventDefault();this.api.logClick(this.G); var N=this.api.getVideoUrl(!0,!0,!1,!1);N=CoD(this,N);g.Tq(N,this.api,I)&&g.rw(this.api,"SHARE_CLICKED")}); this.listen("click",this.D);this.j(b,"videoplayerreset",this.hide);this.j(b,"fullscreentoggled",this.onFullscreenToggled);this.j(b,"onLoopRangeChange",this.C);this.hide()}D(b){b=h$(b);g.gM(this.V,b)||g.gM(this.closeButton,b)||ib(this)}aT(){super.aT();this.tooltip.dT(this.element);this.api.logVisibility(this.G,!1);for(const b of this.Y)this.api.hasVe(b.element)&&this.api.logVisibility(b.element,!1)}show(){const b=this.XM;super.show();this.bv();b||g.rw(this.api,"onSharePanelOpened")}C(){this.XM&&this.bv()}bv(){g.Nv(this.element, "ytp-share-panel-loading");g.lI(this.element,"ytp-share-panel-fail");var b=this.api.getVideoData();const R=this.api.getPlaylistId()&&this.X.checked;b.getSharePanelCommand&&DC(this.api.MF(),b.getSharePanelCommand,{includeListId:R}).then(h=>{this.HY()||(g.lI(this.element,"ytp-share-panel-loading"),Mk2(this,h))}); b=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",b);this.updateValue("linkText",b);this.updateValue("shareLinkWithUrl",g.zc("Compartir enlace: $URL",{URL:b}));Yu(this.G);this.api.logVisibility(this.G,!0)}onFullscreenToggled(b){!b&&this.nZ()&&ib(this)}focus(){this.G.focus()}X5(){super.X5();Xxw(this)}};var rIx=class extends HK{constructor(b){super(b);this.V=this.G=this.isContentForward=this.C=!1;this.element.setAttribute("data-overlay-order","8");oyP(this);this.j(this.A,"changeProductsInVideoVisibility",this.JX);this.j(this.A,"videodatachange",this.onVideoDataChange)}X5(){gG(this);super.X5()}vY(b){b.target!==this.dismissButton.element&&(this.J(!1),g.rw(this.A,"innertubeCommand",this.onClickCommand))}D(){this.Sn=!0;this.J(!0);this.Y()}JX(b){this.C=b;this.Y()}onVideoDataChange(b,R){if(b=!!R.videoId&& this.videoId!==R.videoId)this.videoId=R.videoId,this.Sn=!1,this.SY=!0,this.nR=this.gp=!1,gG(this),r0B(this,!1),this.V=this.G=!1,Ww(this),LOx(this);if(b||!R.videoId)this.MJ=this.X=!1;if(R?.getPlayerResponse()?.videoDetails?.isLiveContent)this.MC(!1);else{R=g.Z(R.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.productsInVideoOverlayRenderer,GNP);this.C=this.enabled=!1;if(R){if(b=R?.featuredProductsEntityKey){var h=g.NF.getState().entities;if(E0(h,"featuredProductsEntity",b)?.productsData){this.MC(!1); return}}if(!R.text||!R.onClickCommand||!R.timing){this.MC(!1);return}this.enabled=!0;this.X||(b=R.badgeInteractionLogging?.trackingParams,(this.X=!!b)&&this.A.setTrackingParams(this.badge.element,b||null));this.MJ||(this.MJ=!!R.dismissButton?.trackingParams)&&this.A.setTrackingParams(this.dismissButton.element,R.dismissButton?.trackingParams||null);if(R.isContentForward){b=R.productsData;r0B(this,!0);LOx(this);b=FOw(this,b);h=[];b.length>0&&h.push(b[0]);if(b.length>1){const K=new g.w({B:"div",Z:"ytp-suggested-action-more-products-icon"}); g.n(this,K);h.push(K);h.push(...b.slice(1))}this.U=new g.w({B:"div",W:h,Z:"ytp-suggested-action-content-forward-container"});g.n(this,this.U);this.KR.element.append(this.U.element)}this.text=g.BY(R.text);if(b=R.dismissButton?.a11yLabel)this.Ty=g.BY(b);this.onClickCommand=R.onClickCommand;this.timing=R.timing;this.f5()}Yn(this);kn(this);this.Y()}}K(){return!this.C&&this.enabled&&!this.Sn&&!this.A.DP()&&!this.SK&&(this.nR||this.SY)}pR(b){super.pR(b);if(this.G||this.V)this.timing&&UY(this.timing.preview)&& (this.G=!1,Ww(this),this.V=!1,Ww(this),this.A.lj("shopping_overlay_preview_collapsed"),this.A.lj("shopping_overlay_preview_expanded"),b=S0(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),UY(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.A.lj("shopping_overlay_expanded"),b.end=this.timing.expanded.endSec*1E3),this.A.f5([b])),this.gp=!0,kn(this);Ww(this)}MC(b){(this.nR=b)?(JL(this),kn(this,!1)):(gG(this),this.CR.start()); this.Y()}f5(b=0){var R=this.timing;b+=this.A.getCurrentTime();const h=[];var K=R.visible;const I=R.preview;R=R.expanded;UY(K)&&(Ge(K,b),h.push(S0(K.startSec,K.endSec,"shopping_overlay_visible")));UY(I)&&(Ge(I,b),K=I.startSec+1,h.push(S0(I.startSec,K,"shopping_overlay_preview_collapsed")),h.push(S0(K,I.endSec,"shopping_overlay_preview_expanded")));UY(R)&&(Ge(R,b),h.push(S0(R.startSec,R.endSec,"shopping_overlay_expanded")));this.A.f5(h)}Y(){super.Y();this.A.getRootNode()&&g.k(this.A.getRootNode(),"ytp-shopping-pill-shown", this.K())}};var L0D=class extends g.w{constructor(b){super({B:"div",Z:"ytp-shorts-title-channel",W:[{B:"a",Z:"ytp-shorts-title-channel-logo",O:{href:"{{channelLink}}",target:b.L().U,"aria-label":"{{channelLogoLabel}}"}},{B:"div",Z:"ytp-shorts-title-expanded-heading",W:[{B:"div",Z:"ytp-shorts-title-expanded-title",W:[{B:"a",IH:"{{expandedTitle}}",O:{href:"{{channelTitleLink}}",target:b.L().U,tabIndex:"0"}}]}]}]});this.api=b;this.G=this.yX("ytp-shorts-title-channel-logo");this.channelName=this.yX("ytp-shorts-title-expanded-title"); this.subscribeButton=null;b.createClientVe(this.G,this,36925);this.j(this.G,"click",R=>{this.api.logClick(this.G);g.$w(window,DaK(this));R.preventDefault()}); b.createClientVe(this.channelName,this,37220);this.j(this.channelName,"click",R=>{this.api.logClick(this.channelName);g.$w(window,DaK(this));R.preventDefault()}); b_K(this);this.j(b,"videodatachange",this.bv);this.j(b,"videoplayerreset",this.bv);this.bv()}bv(){const b=this.api.L();this.sW(g.Fo(b)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.XM);const R=this.api.getVideoData();let h=!1;this.api.getPresentingPlayerType()===2?h=!!R.videoId&&!!R.isListed&&!!R.author&&!!R.JX&&!!R.profilePicture:g.Fo(b)&&(h=!!R.videoId&&!!R.JX&&!!R.profilePicture&&!R.C0&&!b.X&&!(b.D&&this.api.getPlayerSize().width< 200));RK3(this,h,R.profilePicture,g.Fo(b)?R.expandedTitle:R.author);this.subscribeButton&&(this.subscribeButton.channelId=R.zI);this.updateValue("expandedTitle",R.expandedTitle)}};var wfB=class extends JA{constructor(b){super(b,{B:"button",F5:["ytp-skip-intro-button","ytp-popup","ytp-button"],W:[{B:"div",Z:"ytp-skip-intro-button-text",IH:"Saltar introducci\u00f3n"}]},100);this.Y=!1;this.G=new g.bI(()=>{this.hide()},5E3); this.pP=this.dE=NaN;g.n(this,this.G);this.D=()=>{this.show()}; this.V=()=>{this.hide()}; this.X=()=>{const R=this.A.getCurrentTime();R>this.dE/1E3&&R{this.kI(R,h)}); this.j(this.element,"click",()=>{this.A.seekTo(this.pP/1E3)}); this.hide()}show(){super.show();this.G.start()}hide(){super.hide();this.G.stop()}kI(b,R){b==="dataloaded"&&((this.dE=R.dE,this.pP=R.pP,isNaN(this.dE)||isNaN(this.pP))?this.Y&&(this.A.lj("intro"),this.A.removeEventListener(g.fM("intro"),this.D),this.A.removeEventListener(g.yf("intro"),this.V),this.A.removeEventListener("onShowControls",this.X),this.hide(),this.Y=!1):(this.A.addEventListener(g.fM("intro"),this.D),this.A.addEventListener(g.yf("intro"),this.V),this.A.addEventListener("onShowControls", this.X),b=new g.gL(this.dE,this.pP,{priority:9,namespace:"intro"}),this.A.f5([b]),this.Y=!0))}};var F02=class extends g.w{constructor(b){super({B:"button",F5:["ytp-airplay-button","ytp-button"],O:{title:b.N("player_tooltip_data_title_killswitch")?"AirPlay":"","data-tooltip-title":"AirPlay","data-priority":"11"},IH:"{{icon}}"});this.A=b;this.listen("click",this.onClick);this.j(b,"airplayactivechange",this.bv);this.j(b,"airplayavailabilitychange",this.bv);this.bv();Ny(b,this.element,this)}onClick(){this.A.gW()}bv(){var b=!0;g.Fo(this.A.L())&&(b=b&&this.A.tX().getPlayerSize().width>=480);this.sW(b); b=this.updateValue;var R=this.A.N("delhi_modern_web_player_icons");const h=R?{B:"svg",O:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{B:"path",O:{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"}}]}:{B:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{B:"path",XX:!0,O:{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"}}]};R=R?{B:"svg",O:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{B:"path",O:{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"}}]}:{B:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{B:"path",XX:!0,Z:"ytp-svg-fill",O:{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"}}]};b.call(this,"icon",this.A.R0()?h:R)}};var oew=class extends g.w{constructor(b){super({B:"div",Z:"ytp-gradient-bottom"});this.Y=g.jO("CANVAS");this.G=this.Y.getContext("2d",{willReadFrequently:!0});this.X=NaN;this.Y.width=1;hKK(this,b.tX().getPlayerSize().height)}X5(){this.G=null;super.X5()}};var DoB=class extends g.w{constructor(b,R,h,K){super({B:"div",Z:"ytp-chapter-container",W:[{B:"button",F5:["ytp-chapter-title","ytp-button"],W:[{B:"span",O:{"aria-hidden":"true"},Z:"ytp-chapter-title-prefix",IH:"\u2022"},{B:"div",Z:"ytp-chapter-title-content",IH:"{{chapterTitle}}",O:{"aria-label":"{{ariaLabel}}","aria-live":"polite",title:b.N("player_tooltip_data_title_killswitch")?K:"","data-tooltip-title":K}},{B:"div",Z:"ytp-chapter-title-chevron",W:[{B:"svg",O:{height:"100%",viewBox:"0 0 24 24", width:"100%"},W:[{B:"path",O:{d:"M9.71 18.71l-1.42-1.42 5.3-5.29-5.3-5.29 1.42-1.42 6.7 6.71z",fill:"#fff"}}]}]}]}]});this.A=b;this.V=R;this.J="";this.currentIndex=0;this.Y=void 0;this.X=!0;this.U=this.yX("ytp-chapter-container");this.G=this.yX("ytp-chapter-title");this.S=this.yX("ytp-chapter-title-content");this.K();this.updateVideoData("newdata",this.A.getVideoData());this.j(b,"videodatachange",this.updateVideoData);this.j(b,"resize",this.K);this.j(this.U,"click",this.onClick);this.j(b,g.fM(h), this.FX);this.j(b,"onLoopRangeChange",this.FX);this.j(b,"innertubeCommand",this.onClickCommand);(b=g.D4(this.A.L()))&&g.k(this.G,"ytp-profile-page",!0);g.Fo(this.A.L())||b||Ny(this.A,this.S,this)}onClick(){g.rw(this.A,"innertubeCommand",this.Y)}K(){if(this.A.N("delhi_modern_web_player")){var b=this.A.getPlayerSize();b.width&&(this.element.style.maxWidth=`${b.width*.25}px`)}}};var bwn=class extends DoB{constructor(b,R){super(b,R,"chapterCueRange","Ver cap\u00edtulo");this.D=""}onClickCommand(b){g.Z(b,Ij)&&this.FX()}updateVideoData(b,R){b=g.Z(R.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.decoratedPlayerBarRenderer,xr);b=g.Z(b?.playerBarActionButton,N6);this.A.N("web_player_updated_entrypoint")&&(this.D=kI(b?.text),this.S.setAttribute("title",b?.tooltip??"Ver cap\u00edtulo"));this.Y=b?.command;soT(this)}FX(){var b=this.D;const R=this.V.G;var h=this.A.getLoopRange()?.type=== "clips";if(R.length>1&&!h){b=this.A.getProgressState().current*1E3;h=Hw(R,b);b=R[h].title||"Cap\u00edtulos";if(h!==this.currentIndex||this.X)g.rw(this.A,"innertubeCommand",R[h].onActiveCommand),this.currentIndex=h;this.X=!1}else this.X=!0;KYT(this,b)}};var R2t=class extends g.PH{constructor(b){super({B:"button",F5:["ytp-expand-right-bottom-section-button","ytp-button"],O:{title:"{{title}}","aria-pressed":"{{pressed}}","data-priority":"1","data-title-no-tooltip":"{{data-title-no-tooltip}}"},W:[g.fW()]});this.G=!1;this.listen("click",this.Y);b.createClientVe(this.element,this,276954)}Y(){this.element.parentElement?.classList.contains("ytp-right-controls-left");(this.G=!this.G)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")}isExpanded(){return this.G}};var h2U=class extends g.w{constructor(b,R){super({B:"div",Z:"ytp-storyboard-framepreview",W:[{B:"div",Z:"ytp-storyboard-framepreview-timestamp",IH:"{{timestamp}}"},{B:"div",Z:"ytp-storyboard-framepreview-img"}]});this.api=b;this.Y=this.yX("ytp-storyboard-framepreview-img");this.G=null;this.frameIndex=NaN;this.events=new g.Ke(this);this.fade=new g.Sg(this,100);g.n(this,this.events);g.n(this,this.fade);this.j(this.api,"presentingplayerstatechange",this.X);R&&this.j(this.element,"click",()=>{R.H2()})}X(b){b.state.G(32)? n1(this,this.api.hW()):this.XM&&(b.state.G(16)||b.state.G(1))||this.fade.hide()}onProgress(){const b=this.api.getPlayerStateObject(); (b.G(32)||b.G(16))&&EY(this)}V(){this.frameIndex=NaN;EY(this)}hide(){this.G&&n1(this,null);super.hide()}};var Kqx=class extends g.w{constructor(b,R){super({B:"button",F5:["ytp-fullscreen-button","ytp-button"],O:{title:b.N("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-label":"{{aria-label}}","aria-keyshortcuts":"f","data-priority":"12","data-title-no-tooltip":"{{data-title-no-tooltip}}"},IH:"{{icon}}"});this.A=b;this.Y=R;this.message=null;this.G=g.IL(this.Y.qb(),this.element);this.X=new g.bI(this.S,2E3,this);g.n(this,this.X);this.j(b,"fullscreentoggled", this.J8);this.j(b,"presentingplayerstatechange",this.bv);this.j(b,"resize",this.bv);this.listen("click",this.onClick);g.XO()&&(R=this.A.tX(),this.j(R,w$T(),this.V),this.j(R,L5q(document),this.AB));b.L().wp||b.L().D||this.disable();b.createClientVe(this.element,this,139117);this.bv();this.J8(b.isFullscreen())}onClick(){if(this.A.L().wp||this.A.L().D){this.A.logClick(this.element);try{this.A.toggleFullscreen().catch(b=>{this.Dt(b)})}catch(b){this.Dt(b)}}else ib(this.message,this.element,!0)}Dt(b){String(b).includes("fullscreen error")? g.kJ(b):g.X(b); this.V()}V(){this.disable();this.message.zD(this.element,!0)}AB(){V5()===this.A.getRootNode()?this.X.start():(this.X.stop(),this.message&&this.message.hide())}S(){if(window.screen&&window.outerWidth&&window.outerHeight){const b=window.screen.width*.9,R=window.screen.height*.9;let h=Math.max(window.outerWidth,window.innerWidth),K=Math.max(window.outerHeight,window.innerHeight);if(h>K!==b>R){const I=h;h=K;K=I}b>h&&R>K&&this.V()}}disable(){if(!this.message){var b=(cu(["requestFullscreen","webkitRequestFullscreen", "mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"La pantalla completa no est\u00e1 disponible. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK":"Tu navegador no es compatible con la pantalla completa. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new JA(this.A,{B:"div",F5:["ytp-popup","ytp-generic-popup"],O:{role:"alert",tabindex:"0"},W:[b[0],{B:"a",O:{href:"https://support.google.com/youtube/answer/6276924",target:this.A.L().U},IH:b[2]}, b[4]]},100,!0);this.message.hide();g.n(this,this.message);this.message.subscribe("show",R=>{this.Y.Ea(this.message,R)}); g.dL(this.A,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.G)();this.G=null}}bv(){const b=JkK(this.A),R=this.A.L().D&&this.A.getPlayerSize().width<250;this.sW(b&&!R);this.A.logVisibility(this.element,this.XM)}J8(b){let R;b?(R=g.pz(this.A,"Salir del modo de pantalla completa","f"),this.update({"data-title-no-tooltip":"Salir del modo de pantalla completa"}),document.activeElement===this.element&&this.A.getRootNode().focus(), document.pictureInPictureElement&&document.exitPictureInPicture().catch(h=>{g.kJ(h)})):(R=g.pz(this.A,"Pantalla completa","f"),this.update({"data-title-no-tooltip":"Pantalla completa"})); b=IBs(this,b);R=this.message?null:R;this.A.L().N("player_tooltip_data_title_killswitch")?this.update({title:R,icon:b}):this.update({"tooltip-title":R,"aria-label":R,icon:b});this.Y.qb().d4()}X5(){this.message||((0,this.G)(),this.G=null);super.X5()}Qp(b){super.Qp(b)}};var sK3=class extends g.w{constructor(b,R){super({B:"button",F5:["ytp-button","ytp-jump-button"],O:{title:b.N("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"{{aria-keyshortcuts}}","data-title-no-tooltip":"{{data-title-no-tooltip}}"},W:[R>0?{B:"svg",O:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},W:[{B:"path",F5:["ytp-circle-arrow","ytp-svg-fill"],O:{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"}}, {B:"text",F5:["ytp-jump-button-text","ytp-svg-fill"],O:{x:"7.05",y:"15.05"}}]}:{B:"svg",O:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},W:[{B:"path",F5:["ytp-circle-arrow","ytp-svg-fill"],O:{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"}}, {B:"text",F5:["ytp-jump-button-text","ytp-svg-fill"],O:{x:"6.5",y:"15"}}]}]});this.A=b;this.G=R;this.Y=new g.bI(()=>{this.X?(this.X=!1,this.Y.start()):this.element.classList.remove("ytp-jump-spin","backwards")},250); this.X=!1;(R=R>0)?this.A.createClientVe(this.element,this,36843):this.A.createClientVe(this.element,this,36844);const h=g.zc(R?"Avanzar $SECONDS segundos. (\u2192)":"Retroceder $SECONDS segundos. (\u2190)",{SECONDS:Math.abs(this.G).toString()});this.A.N("player_tooltip_data_title_killswitch")?this.update({title:h,"data-title-no-tooltip":h,"aria-keyshortcuts":R?"\u2192":"\u2190"}):this.update({"tooltip-title":h,"data-title-no-tooltip":h,"aria-keyshortcuts":R?"\u2192":"\u2190"});this.V=this.element.querySelector(".ytp-jump-button-text"); this.V.textContent=Math.abs(this.G).toString();this.listen("click",this.onClick,this);Ny(b,this.element,this)}onClick(){this.A.logClick(this.element);this.A.seekBy(this.G,!0);var b=this.G>0?1:-1,R=Math.abs(this.G);const h=this.A.gk().nP;h&&h.aP(b,R);this.Y.isActive()?this.X=!0:(b=["ytp-jump-spin"],this.G<0&&b.push("backwards"),this.element.classList.add(...b),this.Y.qa())}};var $sn=class extends DoB{constructor(b,R){super(b,R,"timedMarkerCueRange","Ver momentos clave");this.j(b,g.yf("timedMarkerCueRange"),this.FX);this.j(b,"updatemarkervisibility",this.updateVideoData)}onClickCommand(b){g.Z(b,zgB)&&this.FX()}updateVideoData(){this.Y=pMT(this)?.onTap?.innertubeCommand;soT(this)}FX(){var b="";const R=this.V.K;var h=pMT(this)?.headerTitle;h=h?g.BY(h):"";var K=this.A.getLoopRange()?.type==="clips";R.length>1&&!K&&(b=this.A.getProgressState().current*1E3,K=WO2(R,b),b=K!= null?R[K].title:h,K!=null&&K!==this.currentIndex&&(g.rw(this.A,"innertubeCommand",R[K].onActiveCommand),this.currentIndex=K));KYT(this,b)}};var Ixz=class extends g.w{constructor(b){super({B:"button",F5:["ytp-miniplayer-button","ytp-button"],O:{title:b.N("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"},W:["{{icon}}"]});this.A=b;this.visible=!1;this.listen("click",this.onClick);this.j(b,"fullscreentoggled",this.bv);this.A.N("player_tooltip_data_title_killswitch")? this.update({title:g.pz(b,"Minirreproductor","i"),"data-title-no-tooltip":"Minirreproductor",icon:lBK(this)}):this.update({"tooltip-title":g.pz(b,"Minirreproductor","i"),"data-title-no-tooltip":"Minirreproductor",icon:lBK(this)});Ny(b,this.element,this);b.createClientVe(this.element,this,62946);this.bv()}onClick(){g.rw(this.A,"onCollapseMiniplayer");this.A.logClick(this.element)}bv(){this.visible=!this.A.isFullscreen();this.sW(this.visible);this.A.logVisibility(this.element,this.visible&&this.G6)}Qp(b){super.Qp(b); this.A.logVisibility(this.element,this.visible&&b)}};var H_x=new g4(0,0,.05,0,0,1,1,1),NKR=class extends g.w{constructor(b,R,h,K,I,N=!1){const p={B:"div",F5:["ytp-input-slider-section"],W:[{B:"input",Z:"ytp-input-slider",O:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}","aria-valuemin":"{{ariaMinValue}}","aria-valuemax":"{{ariaMaxValue}}","aria-valuenow":"{{ariaValueNow}}","aria-valuetext":"{{ariaValueText}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};I&&p.W.unshift(I);N&&p.F5.push("ytp-vertical-slider");super(p); this.X=b;this.J=R;this.K=h;this.initialValue=K;this.header=I;this.V=0;this.Y=this.yX("ytp-input-slider");this.G=K?K:b;this.init();this.j(this.Y,"input",this.S);this.j(this.Y,"keydown",this.D)}init(){this.update({minvalue:this.X,maxvalue:this.J,stepvalue:this.K,slidervalue:this.G,ariaValueNow:this.G,ariaMinValue:this.X,ariaMaxValue:this.J,ariaValueText:`${this.G.toFixed(2)}`});aBq(this,this.G)}S(){Te(this,Number(this.Y.value));this.Y.focus()}D(b){if(!b.defaultPrevented){switch(b.code){case "ArrowDown":b= -this.K;break;case "ArrowUp":b=this.K;break;default:return}Te(this,Math.min(this.J,Math.max(Number((this.G+b).toFixed(2)),this.X)))}}};var pec=class extends NKR{constructor(b){super(0,100,1,b.isMuted()?0:b.getVolume(),void 0,!0);this.A=b;this.C=mM(this.T6,10,this);this.U=!1;this.j(b,"onVolumeChange",this.onVolumeChange);this.j(this.element,"wheel",this.nR)}onVolumeChange(b){if(this.U)this.U=!1;else{var R=b.volume;R===0||b.muted?Te(this,0):Te(this,R)}}S(){super.S();this.C(this.G)}nR(b){var R=-b.deltaY;R=b.deltaMode===WheelEvent.DOM_DELTA_LINE||b.deltaMode===WheelEvent.DOM_DELTA_PAGE?g.ui(this.G+R,0,100):g.ui(this.G+g.ui(R/10,-10, 10),0,100);R===0?Te(this,0):Te(this,R);this.C(R);b.preventDefault();b.stopPropagation()}T6(b,R){this.U=!0;b===0||R?this.A.mute():(this.A.isMuted()&&this.A.unMute(),this.A.setVolume(b))}};var lxz=class extends g.w{constructor(b,R){super({B:"div",O:{tabindex:"0",title:b.N("player_tooltip_data_title_killswitch")?"Volumen":"","data-tooltip-title":"Volumen","data-tooltip-offset-y":"-120"},F5:["ytp-volume-popover"]});this.isVisible=!1;this.tooltip=R.qb();this.V=new pec(b);g.n(this,this.V);this.V.AX(this.element);this.G=new g.bI(()=>{q8K(this,!1)},300); this.listen("mouseenter",()=>{this.G.stop()}); this.listen("mouseleave",()=>{this.X()}); this.listen("focus",()=>{this.G.stop()}); this.j(this.V.Y,"focus",()=>{this.G.stop()}); this.listen("focusout",()=>{this.X();this.element.dispatchEvent(new Event("blur"))}); this.addOnDisposeCallback(g.IL(R.qb(),this.element));g.n(this,this.G)}Y(){q8K(this,!0)}X(){this.G.start()}J(){this.G.stop()}S(){return this.isVisible}};var WK=class extends g.w{constructor(b,R){var h=b.L().gp?{"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:b.N("player_tooltip_data_title_killswitch")?"{{title}}":""}:{"aria-disabled":"true","aria-haspopup":"true"};super(b.N("delhi_modern_web_player")?{B:"div",Z:"ytp-mute-button",W:[{B:"button",O:h,F5:["ytp-volume-icon", "ytp-button"],IH:"{{icon}}"}]}:{B:"button",F5:["ytp-mute-button","ytp-button"],O:h,W:[{B:"div",Z:"ytp-volume-icon",IH:"{{icon}}"}]});this.A=b;this.Y=null;this.J=this.SY=this.U=this.K=NaN;this.JX=this.C=null;this.S=[];this.V=[];this.visible=!1;this.X=this.G=this.nR=null;b.N("delhi_modern_web_player")&&this.update({"data-priority":4});h=this.A.L();this.updateValue("icon",En());this.tooltip=R.qb();this.updateValue("dataTooltipOffsetY",0);this.X=g.p0("ytp-volume-icon",this.element);const K=this.A.N("delhi_modern_web_player_icons")? {B:"svg",O:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{B:"path",F5:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],O:{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"}},{B:"path",Z:"ytp-svg-volume-animation-small-ripple",O:{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"}},{B:"path",Z:"ytp-svg-volume-animation-big-ripple",O:{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"}}]}:{B:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{B:"defs",W:[{B:"clipPath",O:{id:"ytp-svg-volume-animation-mask"},W:[{B:"path",O:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{B:"path",O:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{B:"path",Z:"ytp-svg-volume-animation-mover",O:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{B:"clipPath",O:{id:"ytp-svg-volume-animation-slash-mask"},W:[{B:"path",Z:"ytp-svg-volume-animation-mover", O:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{B:"path",XX:!0,F5:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],O:{"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"}},{B:"path",XX:!0,F5:["ytp-svg-fill","ytp-svg-volume-animation-hider"],O:{"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.Y=new g.Ag(K);g.n(this,this.Y);this.C=this.Y.yX("ytp-svg-volume-animation-speaker");this.JX=this.C.getAttribute("d");this.S=g.IF("ytp-svg-volume-animation-mover",this.Y.element);this.A.N("delhi_modern_web_player_icons");this.V=g.IF("ytp-svg-volume-animation-hider",this.Y.element);this.A.N("delhi_modern_web_player_icons");this.NJ=new jV;g.n(this,this.NJ);this.vY=new jV;g.n(this,this.vY);this.j(b,"appresize",this.MJ);this.j(b,"onVolumeChange",this.onVolumeChange);b.N("delhi_modern_web_player")? this.listen("click",this.Zr):this.listen("click",this.D);h.gp?(b.N("delhi_modern_web_player")&&!b.N("delhi_modern_web_player_horizontal_volume_controls")&&(this.G=new lxz(b,R),this.G.AX(this.element),g.n(this,this.G),this.j(this.X,"mouseover",this.T6),this.j(this.X,"focus",this.T6),this.j(this.X,"mouseout",this.gp),this.j(this.X,"blur",this.gp)),h=b.N("delhi_modern_web_player")?this.X:this.element,this.addOnDisposeCallback(g.IL(R.qb(),h))):dww(this);this.message=null;b.createClientVe(this.element, this,28662);this.MJ(b.tX().getPlayerSize());this.setVolume(b.getVolume(),b.isMuted())}T6(){this.A.Gh()||(this.updateValue("dataTooltipOffsetY",-120),this.G?.Y(),this.G?.J())}gp(){this.G?.X()}MJ(b){this.visible=b.width>=300||!1;this.sW(this.visible);this.A.logVisibility(this.element,this.visible&&this.G6)}D(){this.A.L().gp?this.A.isMuted()?this.A.unMute():this.A.mute():ib(this.message,this.element,!0);this.A.logClick(this.element)}Zr(b){this.A.L().gp&&this.G?b.target===this.X?this.A.Gh()&&!this.G?.S()? this.G?.Y():this.D():this.G?.Y():this.D()}onVolumeChange(b){this.setVolume(b.volume,b.muted)}setVolume(b,R){var h=R?0:b/100;b=h===0?1:b>50?1:0;if(this.U!==b){const K=this.K;isNaN(K)?th2(this,b):FK(this.NJ,I=>{th2(this,K+(this.U-K)*I)},250); this.U=b}h=h===0?1:0;if(this.J!==h){const K=this.SY;isNaN(K)?i_T(this,h):FK(this.vY,I=>{i_T(this,K+(this.J-K)*I)},250); this.J=h}zKT(this,R)}Qp(b){super.Qp(b);this.A.logVisibility(this.element,this.visible&&b)}},fBx=["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"],ysT=["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"],joD=18,Asx=12,kj=22,Yj=12;g.axz=class extends g.w{constructor(b,R){super({B:"button",F5:["ytp-play-button","ytp-button"],O:{title:b.N("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"k","data-title-no-tooltip":"{{data-title-no-tooltip}}"},IH:"{{icon}}"});this.A=b;this.G=null;this.transition=new jV;this.tooltip=R.qb();g.n(this,this.transition);b.createClientVe(this.element,this,36842);b.logVisibility(this.element,!0);this.j(b,"fullscreentoggled",this.onVideoDataChange); this.j(b,"presentingplayerstatechange",this.onStateChange);this.j(b,"videodatachange",this.onVideoDataChange);this.Na(b.getPlayerStateObject());this.listen("click",this.Hd,this);this.addOnDisposeCallback(g.IL(R.qb(),this.element))}onStateChange(b){this.Na(b.state)}Na(b){var R=g.Jw(this.A.getVideoData());let h=!1;b.isOrWillBePlaying()?b=R?4:2:b.G(2)?(b=3,h=R):b=1;this.element.disabled=h;if(this.G!==b){R=null;switch(b){case 2:R=g.pz(this.A,"Pausa","k");this.update({"data-title-no-tooltip":"Pausa"}); break;case 3:R="Ver de nuevo";this.update({"data-title-no-tooltip":"Ver de nuevo"});break;case 1:R=g.pz(this.A,"Bot\u00f3n de reproducci\u00f3n","k");this.update({"data-title-no-tooltip":"Bot\u00f3n de reproducci\u00f3n"});break;case 4:R="Detener reproducci\u00f3n",this.update({"data-title-no-tooltip":"Detener reproducci\u00f3n"})}b===3?this.A.L().N("player_tooltip_data_title_killswitch")?this.update({title:R,icon:e0(this,b)}):this.update({"tooltip-title":R,icon:e0(this,b)}):(this.A.N("player_tooltip_data_title_killswitch")? this.update({title:R}):this.update({"tooltip-title":R}),(R=e0(this,b))&&this.G&&this.G!==3?AHq(this.transition,this.element,R):this.updateValue("icon",R));this.tooltip.d4();this.G=b}}onVideoDataChange(){g.k(this.element,"ytp-play-button-playlist",g.Br(this.A))}Hd(b){this.A.logClick(this.element);if(this.A.getPlayerStateObject().isOrWillBePlaying())this.A.pauseVideo();else{if(this.A.isMinimized()&&this.A.getPlayerStateObject().isCued()){const R={};this.A.getVideoData()?.g3&&(R.cttAuthInfo={token:this.A.getVideoData().g3, videoId:this.A.getVideoData().videoId});ZC("direct_playback",R);this.A.vI().timerName="direct_playback"}this.A.playVideo()}this.A.isMinimized()&&b?.type==="click"&&this.element.blur()}Qp(b){super.Qp(b)}};g.SV=class extends g.w{constructor(b,R,h){super({B:"a",F5:[h?"ytp-next-button":"ytp-prev-button","ytp-button"],O:{role:"button",title:"{{title}}","data-tooltip-title":"{{tooltip-title}}",href:"{{url}}","data-preview":"{{preview}}","data-tooltip-text":"{{text}}","data-duration":"{{duration}}","aria-disabled":"{{disabled}}","data-next":"{{next}}","data-prev":"{{prev}}","data-title-no-tooltip":"{{data-title-no-tooltip}}","aria-keyshortcuts":"{{aria-keyshortcuts}}",tabindex:"0"},W:[WYP(h,b.N("delhi_modern_web_player_icons"))]}); this.A=b;this.G=h;this.playlist=this.videoData=null;this.D=!1;this.V=this.S=this.Y=null;this.X=!1;this.tooltip=R.qb();h?b.createClientVe(this.element,this,6193):b.createClientVe(this.element,this,6194);this.j(b,"fullscreentoggled",this.onVideoDataChange);this.j(b,"videodatachange",this.onVideoDataChange);this.j(b,"onPlaylistUpdate",this.onVideoDataChange);this.j(b,"onLoopRangeChange",this.onVideoDataChange);this.G||this.j(b,"appresize",this.J);this.j(b,"mdxpreviousnextchange",()=>{OY(this);this.J()}); this.onVideoDataChange()}onVideoDataChange(){GVs(this);this.V&&(this.Ac(this.V),this.V=null);this.videoData=this.A.getVideoData({playerType:1});if(this.playlist=this.A.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.V=this.j(this.A,"progresssync",this.K);this.X=giw(this);OY(this);this.J(this.A.tX().getPlayerSize())}J(b=this.A.tX().getPlayerSize()){var R=this.A.getLoopRange()?.type==="clips";const h=g.Br(this.A)||this.G&&g.fz(this.A)&&!this.A.N("web_hide_next_button")|| UwT(this),K=!this.G&&b.width<400;b=this.A.N("delhi_modern_web_player_horizontal_volume_controls")&&b.width<640;R=h&&!R&&!K&&!b;this.sW(R);this.A.logVisibility(this.element,R)}onClick(b){this.A.logClick(this.element);let R=!0;this.D?R=g.Ez(b,this.A):b.preventDefault();R&&(this.G&&this.A.getPresentingPlayerType()===5?this.A.publish("ytoprerollinternstitialnext"):this.G?(Hs(this.A.vI()),this.A.publish("playlistnextbuttonclicked",this.element),this.A.nextVideo(!0)):this.X?this.A.seekTo(0):(Hs(this.A.vI()), this.A.publish("playlistprevbuttonclicked",this.element),this.A.previousVideo(!0)))}K(){const b=giw(this);b!==this.X&&(this.X=b,OY(this))}X5(){this.Y&&(this.Y(),this.Y=null);GVs(this);super.X5()}};var vBz=class extends g.w{constructor(b,R){super({B:"div",Z:"ytp-fine-scrubbing",W:[{B:"div",Z:"ytp-fine-scrubbing-draggable",W:[{B:"div",Z:"ytp-fine-scrubbing-thumbnails",O:{tabindex:"0",role:"slider",type:"range","aria-label":"Haz clic o despl\u00e1zate por el panel para hacer b\u00fasquedas precisas.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{B:"div",O:{"aria-hidden":"true"},Z:"ytp-fine-scrubbing-cursor"},{B:"div", Z:"ytp-fine-scrubbing-seek-time",O:{"aria-hidden":"true"},IH:"{{seekTime}}"},{B:"div",Z:"ytp-fine-scrubbing-play",W:[b.N("delhi_modern_web_player_icons")?gm():Gr()],O:{title:"Reproducir desde esta posici\u00f3n",role:"button"}},{B:"div",Z:"ytp-fine-scrubbing-dismiss",W:[g.y7()],O:{title:"Salir de la b\u00fasqueda precisa",role:"button"}}]});this.api=b;this.S=this.yX("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.yX("ytp-fine-scrubbing-dismiss");this.nR=this.yX("ytp-fine-scrubbing-draggable"); this.playButton=this.yX("ytp-fine-scrubbing-play");this.thumbnails=[];this.Y=[];this.JX=this.G=0;this.gp=void 0;this.U=NaN;this.NJ=this.K=this.X=this.D=0;this.V=[];this.interval=this.frameCount=0;this.J=160;this.scale=1;this.Zr=0;this.isEnabled=this.MJ=!1;Qt(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.IL(R,this.dismissButton));this.addOnDisposeCallback(g.IL(R,this.playButton));this.T6=new g.Nm(this.nR,!0);this.T6.subscribe("dragstart",this.vY,this);this.T6.subscribe("dragmove",this.SY, this);this.T6.subscribe("dragend",this.pR,this);this.j(b,"SEEK_COMPLETE",this.KR);b.N("web_fix_fine_scrubbing_false_play")&&this.j(b,"rootnodemousedown",h=>{this.C=h}); this.S.addEventListener("keydown",()=>{}); g.n(this,this.T6);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.S,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}xZ(b){this.vY(b.pageX);this.SY(b.pageX+b.deltaX);xj(this)}vY(b){this.U=b-this.JX}SY(b){b-=this.JX;!isNaN(this.U)&&this.thumbnails.length>0&&(this.K=b-this.U,this.thumbnails.length>0&&this.K!==0&&(this.X=this.D+this.K,b=niw(this,this.X),this.X<=this.G/2&&this.X>=S8s(this)?(this.api.seekTo(b, !1,void 0,void 0,25),g.MN(this.nR,"transform",`translateX(${this.X-this.G/2}px)`),Qt(this,b)):this.X=this.D))}pR(){this.C&&(this.C.mq=!0);var b=(0,g.c)()-this.Zr<300;if(Math.abs(this.K)<5&&!b){this.Zr=(0,g.c)();b=this.U+this.K;const R=this.G/2-b;this.vY(b);this.SY(b+R);xj(this);this.api.logClick(this.S)}xj(this)}KR(){m9(this,this.api.getCurrentTime())}play(b){this.api.seekTo(niw(this,this.X),void 0,void 0,void 0,26);this.api.playVideo();b&&this.api.logClick(this.playButton)}onExit(b){this.api.seekTo(this.NJ, void 0,void 0,void 0,63);this.api.playVideo();b&&this.api.logClick(this.dismissButton)}fz(b,R){this.JX=b;this.G=R;m9(this,this.api.getCurrentTime())}wp(b){this.scale=b?1.5:1}enable(){this.isEnabled||(this.isEnabled=!0,this.NJ=this.api.getCurrentTime(),Qt(this,this.NJ),g.k(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.gp=this.j(this.element,"wheel",this.xZ),this.logVisibility(this.isEnabled))}disable(){this.isEnabled=!1;this.hide();g.k(this.api.getRootNode(),"ytp-fine-scrubbing-enable", this.isEnabled);this.gp&&this.Ac(this.gp);this.logVisibility(this.isEnabled)}reset(){this.disable();this.V=[];this.MJ=!1}logVisibility(b){this.api.logVisibility(this.element,b);this.api.logVisibility(this.S,b);this.api.logVisibility(this.dismissButton,b);this.api.logVisibility(this.playButton,b)}X5(){for(;this.Y.length;)this.Y.pop()?.dispose();super.X5()}},Eie=class extends g.w{constructor(){super({B:"div",Z:"ytp-fine-scrubbing-thumbnail"})}},T7T=class extends g.w{constructor(){super({B:"div",Z:"ytp-fine-scrubbing-chapter-title", W:[{B:"div",Z:"ytp-fine-scrubbing-chapter-title-content",IH:"{{chapterTitle}}"}]})}};var xwB=class extends g.w{constructor(b){super({B:"div",Z:"ytp-heat-map-chapter",W:[{B:"svg",Z:"ytp-heat-map-svg",O:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},W:[{B:"defs",W:[{B:"clipPath",O:{id:"{{id}}"},W:[{B:"path",Z:"ytp-heat-map-path",O:{d:"",fill:"white"}}]},{B:"linearGradient",O:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},W:[{B:"stop",O:{offset:"0%","stop-color":"white","stop-opacity":"1"}}, {B:"stop",O:{offset:"100%","stop-color":"white","stop-opacity":"0"}}]}]},{B:"rect",Z:"ytp-heat-map-graph",O:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{B:"rect",Z:"ytp-heat-map-hover",O:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{B:"rect",Z:"ytp-heat-map-play",O:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{B:"path",Z:"ytp-modern-heat-map",O:{d:"",fill:"url(#ytp-heat-map-gradient-def)", height:"100%",stroke:"white","stroke-opacity":"1","stroke-width":"2px",width:"100%",x:"0",y:"0"}}]}]});this.api=b;this.D=this.yX("ytp-heat-map-svg");this.S=this.yX("ytp-heat-map-path");this.V=this.yX("ytp-heat-map-graph");this.J=this.yX("ytp-heat-map-play");this.G=this.yX("ytp-heat-map-hover");this.X=this.yX("ytp-modern-heat-map");this.Jh=!1;this.Y=60;b=`${g.VH(this)}`;this.update({id:b});b=`url(#${b})`;this.V.setAttribute("clip-path",b);this.J.setAttribute("clip-path",b);this.G.setAttribute("clip-path", b)}U(b){this.J.setAttribute("width",`${(b*100).toFixed(2)}%`)}K(b){this.G.setAttribute("width",`${(b*100).toFixed(2)}%`)}};var O_K=class extends g.w{constructor(){super({B:"div",Z:"ytp-chapter-hover-container",W:[{B:"div",Z:"ytp-progress-bar-padding"},{B:"div",Z:"ytp-progress-list",W:[{B:"div",F5:["ytp-play-progress","ytp-swatch-background-color"]},{B:"div",Z:"ytp-progress-linear-live-buffer"},{B:"div",Z:"ytp-load-progress"},{B:"div",Z:"ytp-hover-progress"},{B:"div",Z:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.Y=this.yX("ytp-progress-list");this.S=this.yX("ytp-progress-linear-live-buffer"); this.V=this.yX("ytp-ad-progress-list");this.J=this.yX("ytp-load-progress");this.D=this.yX("ytp-play-progress");this.X=this.yX("ytp-hover-progress");this.G=this.yX("ytp-chapter-hover-container")}hO(b){return b==="PLAY_PROGRESS"?this.D:b==="LOAD_PROGRESS"?this.J:b==="LIVE_BUFFER"?this.S:this.X}};var BKn=class{constructor(){this.Y=this.position=this.X=this.G=this.V=this.width=NaN}update(b,R,h=0,K=0){this.width=R;this.V=h;this.G=R-h-K;this.position=g.ui(b,h,h+this.G);this.X=this.position-h;this.Y=this.X/this.G}};var Vhx=class extends g.w{constructor(){super({B:"div",Z:"ytp-timed-marker"});this.G=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}};g.Hw3=class extends g.PH{constructor(b,R){super({B:"div",Z:"ytp-progress-bar-container",O:{"aria-disabled":"true"},W:[{B:"div",F5:["ytp-heat-map-container"],W:[{B:"div",Z:"ytp-heat-map-edu"}]},{B:"div",F5:["ytp-progress-bar"],O:{tabindex:"0",role:"slider","aria-label":"Control deslizante","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},W:[{B:"div",Z:"ytp-chapters-container"},{B:"div",Z:"ytp-timed-markers-container"},{B:"div", Z:"ytp-clip-start-exclude"},{B:"div",Z:"ytp-clip-end-exclude"},{B:"div",Z:"ytp-scrubber-container",W:[{B:"div",F5:["ytp-scrubber-button","ytp-swatch-background-color"],W:[{B:"div",Z:"ytp-scrubber-pull-indicator"},{B:"img",F5:["ytp-decorated-scrubber-button"]}]}]}]},{B:"div",F5:["ytp-fine-scrubbing-container"],W:[{B:"div",Z:"ytp-fine-scrubbing-edu"}]},{B:"div",Z:"ytp-bound-time-left",IH:"{{boundTimeLeft}}"},{B:"div",Z:"ytp-bound-time-right",IH:"{{boundTimeRight}}"},{B:"div",Z:"ytp-clip-start",O:{title:"{{clipstarttitle}}"}, IH:"{{clipstarticon}}"},{B:"div",Z:"ytp-clip-end",O:{title:"{{clipendtitle}}"},IH:"{{clipendicon}}"}]});this.api=b;this.Jq=!1;this.vO=this.TG=this.xZ=this.T6=this.D=this.Kj=0;this.x4=null;this.wB=!1;this.Zr={};this.EW={};this.clipEnd=Infinity;this.Sn=this.yX("ytp-clip-end");this.SK=new g.Nm(this.Sn,!0);this.hc=this.yX("ytp-clip-end-exclude");this.ri=this.yX("ytp-clip-start-exclude");this.clipStart=0;this.FM=this.yX("ytp-clip-start");this.HR=new g.Nm(this.FM,!0);this.C=this.CR=0;this.progressBar=this.yX("ytp-progress-bar"); this.PH={};this.pR={};this.KR=this.yX("ytp-chapters-container");this.GG=this.yX("ytp-timed-markers-container");this.G=[];this.K=[];this.yu={};this.U8=null;this.SY=-1;this.RH=this.vY=0;this.vD=this.U=null;this.cO=this.yX("ytp-scrubber-button");this.MJ=this.yX("ytp-decorated-scrubber-button");this.jJ=this.yX("ytp-scrubber-container");this.fR=new g.CP;this.Ys=0;this.OV=new BKn;this.X=new br(0,0);this.ll=null;this.J=this.BI=!1;this.Pa=null;this.nR=this.yX("ytp-heat-map-container");this.gB=this.yX("ytp-heat-map-edu"); this.V=[];this.heatMarkersDecorations=[];this.wp=this.yX("ytp-fine-scrubbing-container");this.K0=this.yX("ytp-fine-scrubbing-edu");this.Y=void 0;this.JX=this.K5=this.NJ=!1;this.tooltip=R.qb();this.addOnDisposeCallback(g.IL(this.tooltip,this.Sn));g.n(this,this.SK);this.SK.subscribe("hoverstart",this.s7,this);this.SK.subscribe("hoverend",this.Yb,this);this.j(this.Sn,"click",this.m_);this.addOnDisposeCallback(g.IL(this.tooltip,this.FM));g.n(this,this.HR);this.HR.subscribe("hoverstart",this.s7,this); this.HR.subscribe("hoverend",this.Yb,this);this.j(this.FM,"click",this.m_);Qo2(this);this.j(b,"resize",this.fz);this.j(b,"presentingplayerstatechange",this.pJ);this.j(b,"videodatachange",this.kI);this.j(b,"videoplayerreset",this.ow);this.j(b,"cuerangesadded",this.LZ);this.j(b,"cuerangesremoved",this.E_);this.j(b,"onLoopRangeChange",this.LN);this.j(b,"innertubeCommand",this.onClickCommand);this.j(b,"onRetroModeChanged",this.jx);this.j(b,g.fM("timedMarkerCueRange"),this.dh);this.j(b,"updatemarkervisibility", this.dk);this.j(b,kO(b.L().Mj())?"playbackChange":"serverstitchedvideochange",this.bC);this.updateVideoData(b.getVideoData(),!0);this.LN(b.getLoopRange());cw(this)&&!this.Y&&(this.Y=new vBz(this.api,this.tooltip),b=g.hR(this.element).x||0,this.Y.fz(b,this.D),this.Y.AX(this.wp),g.n(this,this.Y),this.j(this.Y.dismissButton,"click",this.H2),this.j(this.Y.playButton,"click",this.wi),this.j(this.Y.element,"dblclick",this.wi));this.api.createClientVe(this.nR,this,139609,!0);this.api.createClientVe(this.gB, this,140127,!0);this.api.createClientVe(this.K0,this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)}dk(){var b=!1;const R=this.api.getVideoData();if(!R)return b;this.api.lj("timedMarkerCueRange");u3(this);for(const v of R.SY){var h=this.pR[v]?.markerType,K=this.pR[v]?.markers;if(!K)break;if(h==="MARKER_TYPE_TIMESTAMPS"){for(const B of K)b=new Vhx,h=B,b.title=h.title?.simpleText||"",b.timeRangeStartMillis=Number(h.startMillis),b.G=Number(h.durationMillis),b.onActiveCommand=h.onActive?.innertubeCommand?? void 0,MhK(this,b);C1(this,this.K);b=this.K;h=this.yu;var I=[],N=null;for(var p=0;pl&&(N.end=l);l=EyB(l,l+a);I.push(l);N=l;h[l.id]=b[p].onActiveCommand}}this.api.f5(I);a:{for(const B of K)if(B.sourceType==="SOURCE_TYPE_SMART_SKIP"){b=!1;break a}b=!0}b&&(this.U8=this.pR[v]);b=!0}else if(h==="MARKER_TYPE_HEATMAP"){if((K=this.pR[v])&&K.markers){h=K.markersMetadata?.heatmapMetadata?.minHeightDp?? 0;I=K.markersMetadata?.heatmapMetadata?.maxHeightDp??60;N=this.G.length;p=null;for(l=0;l=a&&d<=B&&H.push(q)}I>0&&(this.nR.style.height=`${I}px`);eK2(this.V[l],H,h,I,l===0);H.length>0&&(p=H[H.length-1])}g.X5(this)}h=[];if(K=K.markersDecoration?.timedMarkerDecorations)for(const B of K)h.push({visibleTimeRangeStartMillis:B.visibleTimeRangeStartMillis?? -1,visibleTimeRangeEndMillis:B.visibleTimeRangeEndMillis??-1,decorationTimeMillis:B.decorationTimeMillis??NaN,label:B.label?g.BY(B.label):""});K=h;this.heatMarkersDecorations=K}}R.RL=this.K;g.k(this.element,"ytp-timed-markers-enabled",b);return b}fz(){g.X5(this);Vt(this);C1(this,this.K);if(this.Y){const b=g.hR(this.element).x||0;this.Y.fz(b,this.D)}}jx(){const b=this.api.getVideoData();b&&bZ3(this,b)}onClickCommand(b){if(b=g.Z(b,Ij)){const R=b.key;b.isVisible&&R&&Mk(this,R)}}dh(b){g.rw(this.api,"innertubeCommand", this.yu[b.id])}FX(){Vt(this);const b=this.api.getCurrentTime();(bthis.clipEnd)&&this.m_()}VA(b){if(!b.defaultPrevented){let R=!1;switch(b.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);R=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);R=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);R=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);R=!0;break;case 38:this.api.N("enable_key_press_seek_logging")&&Iy(this,this.api.getCurrentTime(),this.api.getCurrentTime()+ 5,"SEEK_SOURCE_SEEK_FORWARD_5S","INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS");this.api.seekBy(5,void 0,void 0,72);R=!0;break;case 40:this.api.N("enable_key_press_seek_logging")&&Iy(this,this.api.getCurrentTime(),this.api.getCurrentTime()-5,"SEEK_SOURCE_SEEK_BACKWARD_5S","INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"),this.api.seekBy(-5,void 0,void 0,71),R=!0}R&&b.preventDefault()}}kI(b,R){this.updateVideoData(R,b==="newdata")}ow(){this.kI("newdata",this.api.getVideoData())}updateVideoData(b,R=!1){var h= !!b&&b.Jh();h&&(b.MJ()||DE(this)?this.BI=!1:(this.api.L().Mj().G.WY($Xx),this.BI=b.allowLiveDvr),g.k(this.api.getRootNode(),"ytp-enable-live-buffer",!!b?.MJ()),bZ3(this,b));pn(this,this.api.Hr());if(R){if(h){R=b.clipEnd;this.clipStart=b.clipStart;this.clipEnd=R;sQ(this);for(wG(this,this.C,this.CR);this.V.length>0;)this.V.pop().dispose();this.heatMarkersDecorations=[];this.PH={};this.Y?.reset();lr(this);g.k(this.api.getRootNode(),"ytp-fine-scrubbing-exp",cw(this))}else this.m_();this.S()}if(b){R=this.ll?.type=== "clips";if(h=!b.isLivePlayback){h=this.api.getVideoData();var K=g.mg(h);const p=Z_K(h);h=K!=null||p!=null&&p.length>0||h.b6?.length>0}if(h&&!R){R=this.api.getVideoData();K=g.mg(R);h=!1;if(K?.markersMap){h=this.api.getVideoData();h.oy=K.visibleOnLoad?.key||h.oy;K=K.markersMap;for(var I of K)I.key&&I.value&&(this.PH[I.key]=I.value,I.value.onChapterRepeat&&(h.Xj=I.value.onChapterRepeat));h.oy!=null&&Mk(this,h.oy);h=!0}if(R.b6?.length>0){I=g.NF.getState().entities;for(var N of R.b6)if(K=QP(I,N)?.markersList, K?.markerType==="MARKER_TYPE_TIMESTAMPS"||K?.markerType==="MARKER_TYPE_HEATMAP")this.pR[N]=K;h=this.dk()||h}!h&&(N=Z_K(R))&&(uMe(this,N),R.m_=this.G,XMD(this));KP3(this,null);b.sH&&this.V.length===0&&(b=b.sH,N=b.key,b.isVisible&&N&&Mk(this,N))}else Qo2(this),u3(this)}Vt(this)}pJ(b){this.U&&!b.state.G(32)&&this.api.getPresentingPlayerType()!==3&&this.U.cancel();this.Y?.isEnabled&&b.state.G(8)&&this.api.pauseVideo();b=this.api.getPresentingPlayerType()===2||!this.api.Hr()||this.api.getPlayerState()=== -1&&this.api.getCurrentTime()===0;g.k(this.cO,"ytp-hide-scrubber-button",b)}LN(b){const R=!!this.ll!==!!b,h=this.ll;this.ll=b;KP3(this,h);b?.type!=="clips"&&b||(b?(this.updateValue("clipstarticon",ol3()),this.updateValue("clipendicon",ol3()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",VD2()),this.updateValue("clipendicon",XkT()),this.updateValue("clipstarttitle","Ver v\u00eddeo completo"),this.updateValue("clipendtitle","Ver v\u00eddeo completo")), R&&(this.updateVideoData(this.api.getVideoData(),!0),g.X5(this)),sQ(this));wG(this,this.C,this.CR)}xI(){this.api.publish("progressBarHoverStart")}c$(b,R,h){var K=g.hR(this.element),I=ox(this).G;const N=h?h.getAttribute("data-tooltip"):void 0;var p=h?h.getAttribute("data-position"):void 0,l=h?h.getAttribute("data-offset-y"):void 0;l=l?Number(l):0;p&&(b=rm(this.X,Number(h.getAttribute("data-position")),0)*I+g.hR(this.progressBar).x);this.fR.x=b-K.x;this.fR.y=R-K.y;b=ox(this);K=ay(this,b);R=0;this.api.getVideoData()?.MJ()&& ((R=this.api.getProgressState().seekableEnd)&&K>R&&(K=R,b.position=rm(this.X,R)*ox(this).G),R=this.X.Y);DE(this)&&(R=this.X.Y);R=N||g.CW(this.BI?K-this.X.G:K-R);h=b.position+this.Kj;K-=this.api.Kz();if(!this.Y?.isEnabled)if(this.api.hW()){if(this.G.length>1){I=$1(this,this.fR.x,!0);if(!this.ll)for(p=0;p1)for(p=0;p0){I=this.fR.x; for(var a of this.K)p=F5(this,a.timeRangeStartMillis/(this.X.G*1E3),ox(this)),g.k(a.element,"ytp-timed-marker-hover",p<=I&&p+6>=I)}I=this.tooltip.scale;a=this.api.N("delhi_modern_web_player")?67:45;l=(isNaN(l)?0:l)-a*I;this.api.N("web_key_moments_markers")?this.U8?(a=WO2(this.K,K*1E3),a=a!=null?this.K[a].title:""):(a=Hw(this.G,K*1E3),a=this.G[a].title):(a=Hw(this.G,K*1E3),a=this.G[a].title);a||(l+=16*I);this.tooltip.scale===.6&&(g.lv(this.api.L())?(l=this.api.tX().getPlayerSize().height-225,I=this.api.N("delhi_modern_web_player")? 70:110,l=a?l+I:l+I+16):l=a?110:126);I=Hw(this.G,K*1E3);this.SY=I9B(this,K,I)?I:I9B(this,K,I+1)?I+1:-1;g.k(this.api.getRootNode(),"ytp-progress-bar-snap",this.SY!==-1&&this.G.length>1);I=!1;for(var v of this.heatMarkersDecorations)p=K*1E3,p>=v.visibleTimeRangeStartMillis&&p<=v.visibleTimeRangeEndMillis&&(a=v.label,R=g.CW(ay(this,b)),I=!0);this.K5!==I&&(this.K5=I,this.api.logVisibility(this.gB,this.K5));g.k(this.api.getRootNode(),"ytp-progress-bar-decoration",I);v=160*this.tooltip.scale*2;I=a.length* (this.J?8.55:5.7);I=I<=v?I:v;p=I<160*this.tooltip.scale;v=3;!p&&I/2>b.position&&(v=1);!p&&I/2>this.D-b.position&&(v=2);this.api.L().D&&(l-=10);this.V.length&&this.V[0].Jh&&(l-=14*(this.J?2:1),this.NJ||(this.NJ=!0,this.api.logVisibility(this.nR,this.NJ)));cw(this)&&(this.Y?.isEnabled||this.xZ>0)&&(l-=this.Y?.isEnabled?(this.J?135:90)-this.T6:this.xZ);b=void 0;cw(this)&&!this.api.N("web_player_hide_fine_scrubbing_edu")&&(b="Arrastra hacia arriba para b\u00fasquedas m\u00e1s precisas",this.JX||(this.JX= !0,this.api.logVisibility(this.K0,this.JX)));this.tooltip.yU(h,K,R,!!N,l,a,v,b)}else this.tooltip.yU(h,K,R,!!N,l);g.Nv(this.api.getRootNode(),"ytp-progress-bar-hover");oiT(this)}pZ(){this.S();g.lI(this.api.getRootNode(),"ytp-progress-bar-hover");this.NJ&&(this.NJ=!1,this.api.logVisibility(this.nR,this.NJ));this.JX&&(this.JX=!1,this.api.logVisibility(this.K0,this.JX));this.api.N("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&this.api.publish("progressBarHoverEnd")}qf(b, R){const h=g.hR(this.element);this.Ys=b-h.x;cw(this)&&this.Y&&(this.Y.MJ?m9(this.Y,this.api.getCurrentTime()):JsH(this.Y),this.Y.show(),g.k(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.Y.isEnabled));this.x4&&(this.x4.dispose(),this.x4=null);this.TG=R;this.vO=this.api.getCurrentTime();this.G.length>1&&this.SY!==-1?this.api.seekTo(this.G[this.SY].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(ay(this,ox(this)),!1,void 0,void 0,7);g.Nv(this.element,"ytp-drag");(this.Jq=this.api.getPlayerStateObject().isOrWillBePlaying())&& this.api.pauseVideo()}b6(){if(cw(this)&&this.Y){var b=(this.J?135:90)-this.T6;this.xZ>=b*.5?(this.Y.enable(),m9(this.Y,this.api.getCurrentTime()),$be(this,b)):lr(this)}if(this.api.getPlayerStateObject().G(32)||this.api.getPresentingPlayerType()===3)if(this.Y?.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.G.length>1&&this.SY!==-1)this.api.N("html5_enable_progress_bar_slide_seek_logging")&&Iy(this,this.vO,this.G[this.SY].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.G[this.SY].startTime/1E3,void 0,void 0,void 0,7);else{b=ay(this,ox(this));this.api.N("html5_enable_progress_bar_slide_seek_logging")&&Iy(this,this.vO,b,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(b,void 0,void 0,void 0,7);for(const R of this.heatMarkersDecorations)b*1E3>=R.visibleTimeRangeStartMillis&&b*1E3<=R.visibleTimeRangeEndMillis&&this.api.logClick(this.gB)}g.lI(this.element, "ytp-drag");this.gp&&(this.MJ.src=this.gp);this.Jq&&!this.api.getPlayerStateObject().G(2)&&this.api.playVideo()}}KZ(b,R){const h=ox(this),K=ay(this,h);this.api.tX().Mt||(h.position>this.Ys+2?this.pz&&(this.MJ.src=this.pz):h.position{const I=g.hR(this.element).x||0;this.Ys=b-I},150)); this.api.seekTo(K,!1,void 0,void 0,7);cw(this)&&this.Y?.MJ&&(m9(this.Y,K),this.Y.isEnabled||(this.xZ=g.ui(this.TG-R-10,0,(this.J?135:90)-this.T6),$be(this,this.xZ)))}S(){this.tooltip.mC()}s7(){this.ll||(this.updateValue("clipstarticon",uCq()),this.updateValue("clipendicon",uCq()),g.Nv(this.element,"ytp-clip-hover"))}Yb(){this.ll||(this.updateValue("clipstarticon",VD2()),this.updateValue("clipendicon",XkT()),g.lI(this.element,"ytp-clip-hover"))}m_(){this.clipStart=0;this.clipEnd=Infinity;sQ(this); wG(this,this.C,this.CR)}LZ(b){for(const R of b)if(R.visible){if(b=R.getId(),!this.Zr[b]){const h=g.jO("DIV");R.tooltip&&h.setAttribute("data-tooltip",R.tooltip);this.Zr[b]=R;this.EW[b]=h;g.$d(h,R.style);ReP(this,b);this.api.L().N("disable_ad_markers_on_content_progress_bar")||this.G[0].V.appendChild(h)}}else BYs(this,R)}E_(b){for(const R of b)BYs(this,R)}H2(b){this.Y&&(this.Y.onExit(b!=null),lr(this))}wi(b){this.Y&&(this.Y.play(b!=null),lr(this))}bC(){pn(this,this.api.Hr())}X5(){pn(this,!1);super.X5()}CN(){return this.Y}};var q3p=class extends g.w{constructor(b,R){super({B:"button",F5:["ytp-remote-button","ytp-button"],O:{title:b.N("player_tooltip_data_title_killswitch")?"Ver en la televisi\u00f3n":"","data-tooltip-title":"Ver en la televisi\u00f3n","aria-haspopup":"true","data-priority":"10"},IH:"{{icon}}"});this.A=b;this.Gy=R;this.G=null;this.j(b,"onMdxReceiversChange",this.bv);this.j(b,"presentingplayerstatechange",this.bv);this.j(b,"appresize",this.bv);b.createClientVe(this.element,this,139118);this.bv();this.listen("click", this.Y,this);Ny(b,this.element,this)}isActive(){return!!this.A.getOption("remote","casting")}bv(){var b=!1;this.A.getOptions().includes("remote")&&(b=this.A.getOption("remote","receivers").length>1);this.sW(b&&this.A.tX().getPlayerSize().width>=400);this.A.logVisibility(this.element,this.XM);let R=1;b&&this.isActive()&&(R=2);if(this.G!==R){this.G=R;b=this.A.N("delhi_modern_web_player_icons");switch(R){case 1:this.updateValue("icon",b?{B:"svg",O:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"}, W:[{B:"path",O:{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"}}]}:{B:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{B:"path",XX:!0,O:{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", b?{B:"svg",O:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{B:"path",O:{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.Zf3())}g.k(this.element,"ytp-remote-button-active",this.isActive())}}Y(){if(this.A.getOption("remote","quickCast"))this.A.setOption("remote","quickCast",!0);else{var b=this.Gy,R=this.element;if(b.nZ())b.aT();else{b.initialize();a:{for(h of b.WD.items)if(h.priority===1)break a;var h=null}h&&(h.open(),b.zD(R));b.zD(R)}}this.A.logClick(this.element)}};var dsz=class extends g.w{constructor(b,R){super({B:"button",F5:["ytp-button","ytp-settings-button"],O:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":pW(),title:b.N("player_tooltip_data_title_killswitch")?"Configuraci\u00f3n":"","data-tooltip-title":"Configuraci\u00f3n","data-tooltip-target-id":"ytp-settings-button"},W:[b.N("delhi_modern_web_player_icons")?{B:"svg",O:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{B:"path",O:{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.Sv()]});this.A=b;this.Gy=R;this.Y=!0;this.listen("click",this.X);this.j(b,"onPlaybackQualityChange",this.updateBadge);this.j(b,"videodatachange",this.updateBadge);this.j(b,"webglsettingschanged",this.updateBadge);this.j(b,"appresize",this.G);Ny(b,this.element,this);this.A.createClientVe(this.element,this,28663);this.updateBadge();this.G(b.tX().getPlayerSize())}G(b){const R=this.A.L();let h=400;R.J?h=300:R.D&&(h=200);b=this.Y&&b.width>=h;this.sW(b);this.A.logVisibility(this.element, b)}X(){if(this.Gy.XM)this.Gy.aT();else{const b=g.gh(this.A.VV());b&&!b.loaded&&(b.iR("tracklist",{includeAsr:!0}).length||b.load());this.A.logClick(this.element);this.Gy.zD(this.element)}}updateBadge(){const b=this.A.isHdr();var R=this.A.getPresentingPlayerType(),h=R!==2&&R!==3,K=g.tD(this.A),I=h&&!!g.qy(this.A.VV());R=I&&K.displayMode===1;K=I&&K.displayMode===2;h=(I=R||K)||!h?null:this.A.getPlaybackQuality();g.k(this.element,"ytp-hdr-quality-badge",b);g.k(this.element,"ytp-hd-quality-badge",!b&& (h==="hd1080"||h==="hd1440"));g.k(this.element,"ytp-4k-quality-badge",!b&&h==="hd2160");g.k(this.element,"ytp-5k-quality-badge",!b&&h==="hd2880");g.k(this.element,"ytp-8k-quality-badge",!b&&h==="highres");g.k(this.element,"ytp-3d-badge-grey",!b&&I&&R);g.k(this.element,"ytp-3d-badge",!b&&I&&K)}};var fxH=class extends g.y9{constructor(b,R,h){if(b.N("web_add_footer_template_to_audio_track")){var K="Edita tus $BEGIN_LINKidiomas preferidos$END_LINK en los ajustes".split(/\$(BEGIN|END)_LINK/);K={B:"div",Z:"ytp-panel-footer-content",W:[K[0],{B:"a",Z:"ytp-panel-footer-content-link",O:{href:"/account_playback"},IH:K[2]},K[4]]}}super("Pista de audio",g.wU.AUDIO,b,R,void 0,void 0,K);this.A=b;this.S=h;this.tracks={};g.Nv(this.element,"ytp-audio-menu-item");this.countLabel=new g.w({B:"div",W:[{B:"span", IH:"Pista de audio"},{B:"span",Z:"ytp-menuitem-label-count",IH:"{{content}}"}]});b.N("web_settings_menu_icons")&&!this.A.N("html5_enable_new_audio_settings_menu")&&(R=b.N("delhi_modern_web_player_icons")?{B:"svg",O:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{B:"path",O:{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"}}]}:{B:"svg",O:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{B:"path",O:{d:"M11.72,11.93C13.58,11.59,15,9.96,15,8c0-2.21-1.79-4-4-4C8.79,4,7,5.79,7,8c0,1.96,1.42,3.59,3.28,3.93 C4.77,12.21,2,15.76,2,20h18C20,15.76,17.23,12.21,11.72,11.93z M8,8c0-1.65,1.35-3,3-3s3,1.35,3,3s-1.35,3-3,3S8,9.65,8,8z M11,12.9c5.33,0,7.56,2.99,7.94,6.1H3.06C3.44,15.89,5.67,12.9,11,12.9z M16.68,11.44l-0.48-0.88C17.31,9.95,18,8.77,18,7.5 c0-1.27-0.69-2.45-1.81-3.06l0.49-0.88C18.11,4.36,19,5.87,19,7.5C19,9.14,18.11,10.64,16.68,11.44z M18.75,13.13l-0.5-0.87 C19.95,11.28,21,9.46,21,7.5s-1.05-3.78-2.75-4.76l0.5-0.87C20.75,3.03,22,5.19,22,7.5S20.76,11.97,18.75,13.13z", fill:"white"}}]},this.setIcon(R));g.n(this,this.countLabel);g.Uz(this,this.countLabel);b.createClientVe(this.element,this,273318);this.listen("click",this.onClick);this.j(b,"videodatachange",this.bv);this.j(b,"onPlaybackAudioChange",this.bv);this.bv()}bv(){var b=this.A.getAvailableAudioTracks();if(b.length>1){const R=b.filter(K=>K.isAutoDubbed()),h=b.filter(K=>!K.isAutoDubbed()).map(this.J); R.length>0&&(this.A.YZ("ad_grp",{ad_c:R.length,t_c:b.length}),h.push(new stT),h.push(...R.map(this.J)));$nT(this,h);this.tracks=g.Pp(b,this.J,this);this.countLabel.setContent(b.length?` (${b.length})`:"");this.publish("size-change");b=this.J(this.A.getAudioTrack());this.Y(b);this.A.N("html5_enable_new_audio_settings_menu")&&this.S?.x_(b.toString());this.enable(!0)}else this.A.N("html5_enable_new_audio_settings_menu")&&this.S?.x_(""),this.enable(!1)}G(b){super.G(b);b=this.tracks[b];this.A.setAudioTrack(b); this.Gy.e5();this.A.YZ("ad_sel",{lang:b.Nj.id})}J(b){return b.toString()}D(b){this.A.N("html5_enable_new_audio_settings_menu")?this.S&&(b?this.S.WH(this):this.S.yn(this)):super.D(b)}onClick(){this.A.logClick(this.element)}};var yDr=class extends g.PO{constructor(b,R){super(g.zq({"aria-haspopup":"true"},["ytp-audio-settings-menu-item"]),g.wU.TB);this.A=b;this.Gy=R;g.Nv(this.element,"ytp-audio-settings-menu-item");this.Jc=new g.dF(b,void 0,"Audio");this.countLabel=new g.w({B:"div",W:[{B:"span",IH:"Audio"},{B:"span",Z:"ytp-menuitem-label-count",IH:"{{content}}"}]});b.N("web_settings_menu_icons")&&this.setIcon({B:"svg",O:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{B:"path",O:{d:"M17.5,12c0,2.14-1.5,3.92-3.5,4.38v-1.04c1.44-0.43,2.5-1.76,2.5-3.34c0-1.58-1.06-2.9-2.5-3.34V7.62 C16,8.08,17.5,9.86,17.5,12z M12,4.07v15.86L6.16,15H3V9h3.16L12,4.07z M11,6.22L6.52,10H4v4h2.52L11,17.78V6.22z M21,12 c0,4.08-3.05,7.44-7,7.93v-1.01c3.39-0.49,6-3.4,6-6.92s-2.61-6.43-6-6.92V4.07C17.95,4.56,21,7.92,21,12z", fill:"white"}}]});this.dY=new fxH(b,this.Gy,this);g.n(this,this.dY);this.j(b,"settingsMenuInitialized",this.ZQ.bind(this));this.j(b,"videodatachange",this.ZQ.bind(this));g.n(this,this.countLabel);g.Uz(this,this.countLabel);this.Gy.WH(this);this.j(b,"onPlaybackAudioChange",this.Lh);this.listen("keydown",this.VA);this.listen("click",this.open)}Lh(){this.A.Lh()}open(){this.Jc.fU()>0&&g.mP(this.Gy,this.Jc)}ZQ(){this.Jc.fU()>0&&this.A.getPresentingPlayerType()!==2&&this.A.getPresentingPlayerType()!==3? this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")}VA(b){b.defaultPrevented||(this.open(),b.preventDefault())}WH(b){this.Jc.WH(b)}yn(b){this.Jc.yn(b)}x_(b){this.setContent(b)}};var txz=class extends Db{constructor(b,R){super("Reproducci\u00f3n autom\u00e1tica",g.wU.XY);this.A=b;this.Gy=R;this.Y=!1;this.X=[];this.j(b,"presentingplayerstatechange",this.ZQ);this.subscribe("select",this.onSelect,this);b.createClientVe(this.element,this,113682);this.ZQ()}ZQ(){var b=this.A.getPresentingPlayerType();if(b!==2&&b!==3&&g.fz(this.A))this.Y||(this.Gy.WH(this),this.Y=!0,this.X.push(this.j(this.A,"videodatachange",this.ZQ)),this.X.push(this.j(this.A,"videoplayerreset",this.ZQ)),this.X.push(this.j(this.A, "onPlaylistUpdate",this.ZQ)),this.X.push(this.j(this.A,"autonavchange",this.V)),b=this.A.getVideoData(),this.V(b.autonavState),this.A.logVisibility(this.element,this.Y));else if(this.Y){this.Gy.yn(this);this.Y=!1;for(const R of this.X)this.Ac(R)}}V(b){this.G(b!==1)}onSelect(b){this.A.bQ(b?2:1);this.Y&&(this.A.logVisibility(this.element,this.Y),this.A.logClick(this.element))}X5(){this.Y&&this.Gy.yn(this);super.X5()}};var jK2=class extends g.PO{constructor(b,R){super(g.zq({"aria-haspopup":"false"}),0,"M\u00e1s opciones");this.A=b;this.Gy=R;this.j(this.element,"click",this.onClick);this.Gy.WH(this)}onClick(b){b.preventDefault();g.hT(this.A)?.yA()?.aT();g.hT(this.A)?.hn()?.zD(b.target)}};var ADn=class extends g.y9{constructor(b,R){let h;g.lv(b.L())&&(h={B:"div",Z:"ytp-panel-footer-content",W:[{B:"span",IH:"Ajusta la calidad de descarga desde tu "},{B:"a",Z:"ytp-panel-footer-content-link",IH:"Configuraci\u00f3n",O:{href:"/account_downloads"}}]});super("Calidad",g.wU.n_,b,R,void 0,void 0,h);this.A=b;this.NJ={};this.T6={};this.J={};this.Zr=new Set;this.S=this.C=!1;this.nR="unknown";this.MJ="";this.vY=new g.Hi;g.n(this,this.vY);this.C=this.A.N("web_player_use_new_api_for_quality_pullback"); this.S=this.A.N("web_player_enable_premium_hbr_playback_cap");b.N("web_settings_menu_icons")&&(R=b.N("delhi_modern_web_player_icons")?{B:"svg",O:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{B:"path",O:{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"}}]}:{B:"svg",O:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{B:"path",O:{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(R));g.Nv(this.Jc.element,"ytp-quality-menu");this.j(b,"videodatachange",this.ZQ);this.j(b,"videoplayerreset",this.ZQ);this.j(b,"onPlaybackQualityChange",this.JX);this.ZQ();b.createClientVe(this.element,this,137721)}ZQ(){var b= this.A.getPresentingPlayerType();if(b!==2&&b!==3){this.NJ=this.A.xJ();b=this.A.getAvailableQualityLevels();if(this.S){this.J={};var R=g.F8(this.A,"getAvailableQualityData",[]);for(var h of R)this.J[h.qualityLabel]=h;R=Object.keys(this.J);b[b.length-1]==="auto"&&R.push("auto");this.Zr=new Set(b)}else if(this.C){h=g.F8(this.A,"getAvailableQualityData",[]);var K=[];for(R of h)this.T6[R.quality]=R,R.quality&&K.push(R.quality);b[b.length-1]==="auto"&&K.push("auto");R=K}else R=b;g.i6P(this.A)&&this.A.bY()&& R.unshift("missing-qualities");{K=this.A.app.E9();const I=K.getVideoData();!I.Y||!I.Y.video||I.Y.video.qualityOrdinal<1080||I.Dw?b=!1:(b=/^qsa/.test(I.clientPlaybackNonce),h="r",I.Y.id.indexOf(";")>=0&&(b=/^[a-p]/.test(I.clientPlaybackNonce),h="x"),b?(K.YZ("iqss",{trigger:h},!0),b=!0):b=!1)}b&&R.unshift("inline-survey");this.V(R);b=this.A.getVideoData().cotn?!0:!1;h=this.vY.kV();IsK(this,vvD(this.A.L(),b,h));if(R.length){this.JX();this.enable(!0);return}}this.enable(!1)}JX(){if(this.S){var b=this.A.getPreferredQuality(); this.Zr.has(b)&&(this.nR=this.A.getPlaybackQuality(),this.MJ=this.A.getPlaybackQualityLabel(),b==="auto"?(this.Y(b),this.setContent(this.X(b))):this.Y(this.MJ))}else b=this.A.getPreferredQuality(),this.options[b]&&(this.nR=this.A.getPlaybackQuality(),this.Y(b),b==="auto"&&this.setContent(this.X(b)))}G(b){if(b!=="missing-qualities"){super.G(b);var R=this.S?this.J[b]:this.T6[b];var h=R?.quality,K=R?.formatId;R=R?.paygatedQualityDetails;var I=R?.endpoint;R&&this.A.logClick(this.options[b]?.element); if(this.S){if(g.Z(I,HL3)?.popup?.notificationActionRenderer)g.rw(this.A,"innertubeCommand",I);else if(I){g.rw(this.A,"innertubeCommand",I);return}K?this.A.setPlaybackQuality(h,K):this.A.setPlaybackQuality(h)}else{if(this.C)if(g.Z(I,HL3)?.popup?.notificationActionRenderer)g.rw(this.A,"innertubeCommand",I);else if(I){g.rw(this.A,"innertubeCommand",I);return}this.A.setPlaybackQuality(b)}this.Gy.aT();this.ZQ()}}open(){for(const b of Object.values(this.options))this.A.hasVe(b?.element)&&this.A.logVisibility(b?.element, !0);super.open();this.A.logClick(this.element)}U(b,R,h){if(b==="missing-qualities")return new g.PO({B:"a",F5:["ytp-menuitem"],O:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.A.L().U,tabindex:"0",role:"menuitemradio"},W:[{B:"div",F5:["ytp-menuitem-label"],IH:"{{label}}"}]},R,this.X(b));if(b!=="inline-survey"){var K=(this.S?this.J[b]:this.T6[b])?.paygatedQualityDetails,I=K?.veType;K=K?.trackingParams;R=super.U(b,R,h);K?(this.A.createServerVe(R.element,this,!0),this.A.setTrackingParams(R.element, K)):I&&this.A.createClientVe(R.element,this,I,!0);return R}I=[{B:"span",IH:"\u00bfSe ve bien?"}];for(const N of[!0,!1])b=new g.w({B:"span",Z:"ytp-menuitem-inline-survey-response",W:[N?FRs():MDH()],O:{tabindex:"0",role:"button"}}),b.listen("click",()=>{const p=this.A.app.E9();p.YZ("iqsr",{tu:N});p.getVideoData().Dw=!0;this.Gy.aT();this.ZQ()}),I.push(b); return new g.PO({B:"div",Z:"ytp-menuitem",O:{"aria-disabled":"true"},W:[{B:"div",F5:["ytp-menuitem-label"],W:I}]},R)}X(b,R=!1){if(b==="missing-qualities")return{B:"div",IH:"\u00bfFalta alguna opci\u00f3n?"};if(b==="inline-survey")return"";this.S||g.FH(g.M6x,b);let h;h=this.C||this.S?[HR(this,b,R,!1)]:[qAw(this,b)];const K=this.A.getPreferredQuality();R||K!=="auto"||b!=="auto"||(h.push(" "),this.S?h.push(HR(this,this.MJ,R,!0,["ytp-menu-label-secondary"])):this.C?h.push(HR(this,this.nR,R,!0,["ytp-menu-label-secondary"])): h.push(qAw(this,this.nR,["ytp-menu-label-secondary"])));return{B:"div",W:h}}};var nm=class extends NKR{constructor(b){super(b.getAvailablePlaybackRates()[0],b.getAvailablePlaybackRates()[b.getAvailablePlaybackRates().length-1],.05,b.getPlaybackRate(),{B:"div",Z:"ytp-speedslider-indicator-container",W:[{B:"div",Z:"ytp-speedslider-badge"},{B:"p",Z:"ytp-speedslider-text"}]});this.A=b;this.C=mM(this.T6,50,this);g.Nv(this.Y,"ytp-speedslider");this.U=this.yX("ytp-speedslider-text");this.nR=this.yX("ytp-speedslider-badge");this.A.N("web_enable_varispeed_panel")&&g.Nv(this.Y,"ytp-varispeed-input-slider"); this.WK();this.j(this.Y,"change",this.MJ)}S(){super.S();this.U&&this.WK()}MJ(){this.A.N("enable_web_premium_varispeed")&&Te(this,Math.round(this.G/.05)*.05);this.C()}T6(){this.A.setPlaybackRate(this.G,!0)}WK(){this.U.textContent=`${this.G.toFixed(2)}x`;const b=this.G>2&&this.A.N("enable_web_premium_varispeed");this.nR.classList.toggle("ytp-speedslider-premium-badge",b);this.nR.setAttribute("aria-label",b?"Premium":"")}D(b){super.D(b);this.C();this.WK();this.A.N("web_enable_varispeed_panel")?(b.code=== "ArrowUp"||b.code==="ArrowDown")&&b.preventDefault():b.preventDefault()}};var iwU=class extends g.w{constructor(b,R,h){super({B:"div",Z:"ytp-slider-section",O:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},W:[{B:"div",Z:"ytp-slider",W:[{B:"div",Z:"ytp-slider-handle"}]}]});this.K=.05;this.X=b;this.V=R;this.range=this.V-this.X;this.SY=this.yX("ytp-slider-section");this.S=this.yX("ytp-slider");this.T6=this.yX("ytp-slider-handle");this.D=new g.Nm(this.S,!0);this.Y=h? h:b;g.n(this,this.D);this.D.subscribe("dragmove",this.C,this);this.j(this.element,"keydown",this.nR);this.j(this.element,"wheel",this.U);this.init()}init(){this.G(this.Y);this.updateValue("minvalue",this.X);this.updateValue("maxvalue",this.V)}nR(b){if(!b.defaultPrevented){switch(b.keyCode){case 37:case 40:var R=-this.K;break;case 39:case 38:R=this.K;break;default:return}this.G(this.Y+R);b.preventDefault()}}U(b){let R=this.Y;R+=(b.deltaX||-b.deltaY)<0?-.05:.05;this.G(R);b.preventDefault()}C(b){b=(b- g.hR(this.S).x)/150*this.range+this.X;this.G(b)}G(b,R=""){b=g.ui(b,this.X,this.V);R===""&&(R=b.toString());this.updateValue("valuenow",b);this.updateValue("valuetext",R);this.T6.style.left=`${(b-this.X)/this.range*130}px`;this.Y=b}focus(){this.SY.focus()}};var z2n=class extends iwU{constructor(b){super(b.getAvailablePlaybackRates()[0],b.getAvailablePlaybackRates()[b.getAvailablePlaybackRates().length-1],b.getPlaybackRate());this.A=b;this.J=g.jO("P");this.gp=mM(this.MJ,50,this);g.Nv(this.S,"ytp-speedslider");g.Nv(this.J,"ytp-speedslider-text");b=this.J;var R=this.S;R.parentNode&&R.parentNode.insertBefore(b,R.nextSibling);this.WK();this.j(this.A,"onPlaybackRateChange",this.updateValues)}MJ(){this.A.setPlaybackRate(this.Y,!0)}WK(){this.J.textContent=`${qm(this, this.Y)}x`}G(b){super.G(b,qm(this,b).toString());this.J&&(this.WK(),this.gp())}updateValues(){const b=this.A.getPlaybackRate();qm(this,this.Y)!==b&&(this.G(b),this.WK())}};var UsU=class extends g.PH{constructor(b){super({B:"div",Z:"ytp-speedslider-component"});b.N("web_settings_use_input_slider")?this.G=new nm(b):this.G=new z2n(b);g.n(this,this.G);this.element.appendChild(this.G.element)}focus(){this.G.focus()}};var GTU=class extends qX{constructor(b){const R=new UsU(b);super(b,R,"Personalizada");g.n(this,R)}};var gBx=class extends g.y9{constructor(b,R){const h=new GTU(b);super("Velocidad de reproducci\u00f3n",g.wU.aW,b,R,fn(b)?void 0:"Personalizada",fn(b)?void 0:()=>{g.mP(R,h)}); this.MJ=new g.w({B:"div",Z:"ytp-menuitem-premium-badge",O:{"aria-label":"Premium"}});this.nR=!1;this.w2={bT9:()=>this.C}; g.n(this,h);this.g9=new nm(b);g.n(this,this.g9);if(b.N("web_settings_menu_icons")){const K=b.N("delhi_modern_web_player_icons")?hQT():{B:"svg",O:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{B:"path",O:{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.A=b;this.nR=!1;this.vY=null;fn(b)?(this.S=g.zc("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.A.getPlaybackRate().toString()}),this.T6=this.A.getPlaybackRate()):this.T6=this.S=null;g.n(this,this.MJ);this.JX=this.A.getVideoData()?.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.showPlaybackRateUpsellPanelCommand;j7H(b,this.JX)?(this.J=db(4),this.A.createClientVe(this.MJ.element,this,273508)):this.J=null;this.A.N("enable_web_premium_varispeed_upsell")&& this.A.createClientVe(this.element,this,278479);this.C=this.A.getAvailablePlaybackRates();this.j(b,"presentingplayerstatechange",this.bv);this.A.getVideoData()?.eK()&&this.j(b,kO(b.L().Mj())?"playbackChange":"serverstitchedvideochange",this.bv);this.j(b,"videodatachange",this.onVideoDataChange);this.j(this.g9.Y,"change",()=>{this.nR=!0;this.bv()}); this.bv()}onVideoDataChange(b){b==="dataloaded"&&(b=this.A.getAvailablePlaybackRates(),g.Qz(this.C,b)||(this.C=b,this.g9.dispose(),this.g9=new nm(this.A)),this.bv())}X(b){return b==="1"?"Normal":b.toLocaleString()}bv(){var b=this.A.getVideoData()?.eK();b=this.A.getPresentingPlayerType(b);this.enable(b!==2&&b!==3);yLx(this)}V(b){super.V(b);this.g9&&this.g9.Y.focus()}D(b){super.D(b);b?(this.vY=this.j(this.A,"onPlaybackRateChange",this.onPlaybackRateChange),yLx(this),dbq(this,this.A.getPlaybackRate()), this.A.N("enable_web_premium_varispeed_upsell")&&(this.A.logVisibility(this.element,!0),this.J&&this.A.logVisibility(this.MJ.element,!0))):(this.Ac(this.vY),this.vY=null)}onPlaybackRateChange(b){const R=this.A.getPlaybackRate();!this.nR&&this.C.includes(R)||f9D(this,R);dbq(this,b)}U(b,R,h){return b===this.S&&yE(this.A)?super.U(b,R,h,{B:"div",Z:"ytp-speed-slider-menu-footer",W:[this.g9]}):b===this.J&&j7H(this.A,this.JX)?tfs(this,b,R,h):super.U(b,R,h)}G(b){super.G(b);b===this.J?(this.A.logClick(this.MJ.element), g.rw(this.A,"innertubeCommand",this.JX)):b===this.S?this.A.setPlaybackRate(this.T6,!0):this.A.setPlaybackRate(Number(b),!0);(!yE(this.A)||b!==this.S&&b!==this.J)&&this.Gy.e5()}SY(b){const R=b===this.S;this.nR=!1;R&&fn(this.A)&&!yE(this.A)?(b=new GTU(this.A),g.mP(this.Gy,b)):super.SY(b)}};var WqR=class extends g.y9{constructor(b,R,h,K){const I=new g.dF(R,void 0,"Anulaci\u00f3n de v\u00eddeo");super(K.text||"",b,R,h,"Anulaci\u00f3n de v\u00eddeo",()=>{g.mP(h,I)}); g.Nv(this.element,"ytp-subtitles-options-menu-item");this.setting=K.option.toString();b=K.options;this.settings=g.Pp(b,this.nR,this);this.C=I;g.n(this,this.C);R=new g.PO({B:"div",Z:"ytp-menuitemtitle",IH:"Permite un estilo de subt\u00edtulos diferente al del especificado en el v\u00eddeo."},0);g.n(this,R);this.C.WH(R,!0);this.J=new g.PO({B:"div",Z:"ytp-menuitem",O:{role:"menuitemradio",tabindex:"0"},W:[{B:"div",Z:"ytp-menuitem-label",IH:"Activado"}]},-1);g.n(this,this.J);this.C.WH(this.J,!0);this.j(this.J.element, "click",()=>{ALK(this,!0)}); this.S=new g.PO({B:"div",Z:"ytp-menuitem",O:{role:"menuitemradio",tabindex:"0"},W:[{B:"div",Z:"ytp-menuitem-label",IH:"No"}]},-2);g.n(this,this.S);this.C.WH(this.S,!0);this.j(this.S.element,"click",()=>{ALK(this,!1)}); this.V(g.an(b,this.nR))}Y(b){super.Y(b)}nR(b){return b.option.toString()}getOption(b){return this.settings[b]}X(b){return this.getOption(b).text||""}G(b){super.G(b);this.publish("settingChange",this.setting,this.settings[b].option)}};var S32=class extends g.dF{constructor(b,R){super(b,void 0,"Opciones");this.UC={};for(let h=0;h{this.u6("reset",!0)}); this.WH(b,!0)}Pg(b){for(const R of Object.keys(b)){const h=this.UC[R];if(h){const K=b[R].toString(),I=!!b[`${R}Override`];h.options[K]&&(h.Y(K),h.J.element.setAttribute("aria-checked",String(!I)),h.S.element.setAttribute("aria-checked",String(I)))}}}u6(b,R){this.publish("settingChange",b,R)}};var nBn=class extends g.y9{constructor(b,R){super("Traducir autom\u00e1ticamente",0,b,R);this.A=b;this.languages={};b.createClientVe(this.element,this,127301);b.logVisibility(this.element,!0)}S(b){return b.languageCode}X(b){return this.languages[b].languageName||""}G(b){this.publish("select",b);this.A.logClick(this.element);g.xn(this.Gy)}};var EBn=class extends g.y9{constructor(b,R){const h=new S32(b,R),K=["Este ajuste solo afecta al v\u00eddeo que est\u00e1s viendo. Para cambiar la visualizaci\u00f3n de los subt\u00edtulos en todos los v\u00eddeos, ve a ","."];let I;g.lv(b.L())&&(I={B:"div",Z:"ytp-panel-footer-content",W:[{B:"span",IH:K[0]},{B:"a",Z:"ytp-panel-footer-content-link",IH:"Configuraci\u00f3n",O:{href:"/account_playback"}},{B:"span",IH:K[1]}]});super("Subt\u00edtulos",g.wU.SUBTITLES,b,R,"Opciones",()=>{g.mP(R,h)},I); this.A=b;this.Gy=R;this.tracks={};this.T6=new g.bI(()=>{zeT(this,!1)},3E3); g.n(this,this.T6);this.countLabel=new g.w({B:"div",W:[{B:"span",IH:"Subt\u00edtulos"},{B:"span",Z:"ytp-menuitem-label-count",IH:"{{content}}"}]});g.n(this,this.countLabel);g.Uz(this,this.countLabel);b.N("web_settings_menu_icons")&&this.setIcon(YKH(b.N("delhi_modern_web_player_icons")));this.S=new nBn(b,R);g.n(this,this.S);this.S.subscribe("select",this.MJ,this);this.nR=h;g.n(this,this.nR);this.nR.subscribe("settingChange",this.u6,this);R.subscribe("show",this.vY,this);this.j(b,"videodatachange",this.bv); this.j(b,"onApiChange",this.bv);this.j(b,"onCaptionsTrackListChanged",this.bv);this.j(b,"captionschanged",this.bv);b.createClientVe(this.element,this,127300);this.bv()}J(b){return g.RT(b)?"__off__":b.displayName}X(b){return b==="__off__"?"Desactivados":b==="__translate__"?"Traducir autom\u00e1ticamente":b==="__contribute__"?"A\u00f1adir subt\u00edtulos":b==="__correction__"?"Sugerir correcciones en los subt\u00edtulos":(b==="__off__"?{}:this.tracks[b]).displayName}G(b){b==="__translate__"?this.S.open(): b==="__contribute__"?(this.A.pauseVideo(),this.A.isFullscreen()&&this.A.toggleFullscreen(),b=g.rn(this.A.L(),this.A.getVideoData()),g.hJ(b)):b==="__correction__"?(this.A.pauseVideo(),this.A.isFullscreen()&&this.A.toggleFullscreen(),b=tb(this),jq(this,b),super.G(this.J(b)),b=this.A.getVideoData().getPlayerResponse()?.captions?.playerCaptionsTracklistRenderer?.openTranscriptCommand,g.rw(this.A,"innertubeCommand",b),this.Gy.e5(),this.C&&this.A.logClick(this.C)):(b==="__correction__"?(this.A.pauseVideo(), this.A.isFullscreen()&&this.A.toggleFullscreen(),b=tb(this),jq(this,b),super.G(this.J(b)),b=this.A.getVideoData().getPlayerResponse()?.captions?.playerCaptionsTracklistRenderer?.openTranscriptCommand,g.rw(this.A,"innertubeCommand",b)):(this.A.logClick(this.element),jq(this,b==="__off__"?{}:this.tracks[b]),super.G(b)),this.Gy.e5())}bv(){var b=this.A.getOptions();b=b&&b.indexOf("captions")!==-1;var R=this.A.getVideoData();const h=R&&R.Rr;var K=!!this.A.getVideoData()?.Sn();let I,N={};if(b||h){if(b){I= this.A.getOption("captions","track");N=this.A.getOption("captions","tracklist",{includeAsr:!0});var p=K?[]:this.A.getOption("captions","translationLanguages");this.tracks=g.Pp(N,this.J,this);K=g.an(N,this.J);tb(this)&&R.getPlayerResponse()?.captions?.playerCaptionsTracklistRenderer?.openTranscriptCommand&&K.push("__correction__");if(p.length&&!g.RT(I)){if((R=I.translationLanguage)&&R.languageName){const l=R.languageName;R=p.findIndex(a=>a.languageName===l); q3e(p,R)}iZT(this.S,p);K.push("__translate__")}p=this.J(I)}else this.tracks={},K=[],p="__off__";K.unshift("__off__");this.tracks.__off__={};h&&K.unshift("__contribute__");this.tracks[p]||(this.tracks[p]=I,K.push(p));this.V(K);this.Y(p);I&&I.translationLanguage?this.S.Y(this.S.S(I.translationLanguage)):Kf2(this.S);b&&this.nR.Pg(this.A.getSubtitlesUserSettings());this.countLabel.setContent(N&&N.length?` (${N.length})`:"");this.publish("size-change");this.A.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}MJ(b){var R= this.A.getOption("captions","track");R=g.$T(R);R.translationLanguage=this.S.languages[b];jq(this,R)}u6(b,R){if(b==="reset")this.A.resetSubtitlesUserSettings();else{const h={};h[b]=R;this.A.updateSubtitlesUserSettings(h)}zeT(this,!0);this.T6.start();this.nR.Pg(this.A.getSubtitlesUserSettings())}vY(b){b||this.T6.i6()}X5(){this.T6.i6();super.X5()}open(){super.open();this.options.__correction__&&!this.C&&(this.C=this.options.__correction__.element,this.A.createClientVe(this.C,this,167341),this.A.logVisibility(this.C, !0))}};var TKt=class extends qX{constructor(b){const R=new nm(b),h=new g.w({B:"div",Z:"ytp-variable-speed-panel-chips"}),K=new g.w({B:"button",F5:["ytp-button","ytp-variable-speed-panel-button","ytp-variable-speed-panel-increment-button"],O:{"aria-label":"Reducir la velocidad de reproducci\u00f3n 0.05"},W:[{B:"span",IH:"-"}]});K.listen("click",()=>{this.A.setPlaybackRate(Number((this.A.getPlaybackRate()-.05).toFixed(2)));b.logClick(K.element)}); const I=new g.w({B:"button",F5:["ytp-button","ytp-variable-speed-panel-button","ytp-variable-speed-panel-increment-button"],O:{"aria-label":"Aumentar la velocidad de reproducci\u00f3n 0.05"},W:[{B:"span",IH:"+"}]});I.listen("click",()=>{this.A.setPlaybackRate(Number((this.A.getPlaybackRate()+.05).toFixed(2)));b.logClick(I.element)}); var N=new g.w({B:"div",Z:"ytp-variable-speed-panel-slider-container",W:[K,R,I]}),p=new g.w({B:"div",Z:"ytp-variable-speed-panel-premium-badge",O:{tabindex:"-1"},W:[{B:"div",Z:"ytp-variable-speed-panel-badge"}]}),l=new g.w({B:"span"});const a=new g.w({B:"div",Z:"ytp-variable-speed-panel-display",W:[p,l],O:{"aria-live":"polite"}}),v=new g.w({B:"div",Z:"ytp-speed-display-container",W:[a]}),B=new g.PH({B:"div",Z:"ytp-variable-speed-panel-content",O:{tabindex:"0"},W:[v,N,h]});super(b,B,"Velocidad de reproducci\u00f3n"); R.listen("click",()=>{b.logClick(R.Y)}); this.A.createClientVe(K.element,this,258237);this.A.logVisibility(K.element,!0);this.A.createClientVe(I.element,this,258236);this.A.logVisibility(I.element,!0);this.A.createClientVe(B.element,this,225845);this.A.logVisibility(B.element,!0);this.A.createClientVe(R.Y,this,258235);this.A.logVisibility(R.Y,!0);this.A.createClientVe(h.element,this,258234);this.A.logVisibility(h.element,!0);g.n(this,a);this.Oy=l;g.n(this,this.Oy);this.t$=p;g.n(this,this.t$);this.g9=R;g.n(this,this.g9);g.n(this,K);g.n(this, I);g.n(this,h);g.n(this,N);g.n(this,v);g.n(this,B);N=mM(this.sI,50,this);p=b.getVideoData();const H=p?.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.showPlaybackRateUpsellPanelCommand;if((p=p?.getPlayerResponse()?.playerConfig?.granularVariableSpeedConfig?.defaultPlaybackRateOptions)&&p.length>0)for(const q of p){const d=H&&q.isPremiumUpsell,t=new g.w({B:"button",F5:["ytp-button","ytp-variable-speed-panel-preset-button","ytp-variable-speed-panel-button"],W:d?[{B:"div",Z:"ytp-variable-speed-panel-premium-upsell-icon"}, {B:"span",IH:`${q.label}`}]:[{B:"span",IH:`${q.label}`}]});d&&(this.A.createClientVe(t.element,this,273508),this.A.logVisibility(t.element,!0));g.n(this,t);h.element.appendChild(t.element);t.listen("click",()=>{d?(g.rw(this.A,"innertubeCommand",H),b.logClick(t.element)):q.value&&this.A.setPlaybackRate(q.value/100);b.logClick(h.element)}); p=new g.w({B:"div",Z:"ytp-variable-speed-panel-preset-button-wrapper",O:{"data-priority":`${q.priority??0}`},W:[t]});g.n(this,p);q.value===100&&(l=new g.w({B:"div",Z:"ytp-variable-speed-panel-preset-button-label-text",IH:"Normal"}),g.n(this,l),p.element.appendChild(l.element));h.element.appendChild(p.element)}this.j(this.g9.Y,"input",()=>{this.WK(this.g9.G)}); this.j(b,"onPlaybackRateChange",this.onPlaybackRateChange);this.j(b,"resize",N);this.onPlaybackRateChange(b.getPlaybackRate());this.sI()}onPlaybackRateChange(b){Te(this.g9,b,!0);this.WK(b)}WK(b){b=Math.round(b*20)/20;this.Oy.element.textContent=`${b.toFixed(2)}x`;this.t$.element.classList.toggle("ytp-variable-speed-panel-premium-badge-visible",b>2)}sI(){const b=this.A.getPlayerSize().width;var R=this.element.getElementsByClassName("ytp-variable-speed-panel-preset-button-wrapper");for(const h of R){R= h;const K=Number(R.dataset.priority??0);let I=!0;b<680?I=K>1:b<1900&&(I=K>0);g.aR(R,I);R.setAttribute("aria-hidden",I?"false":"true")}}};var JDc=class extends g.y9{constructor(b,R){super("Velocidad de reproducci\u00f3n",g.wU.aW,b,R);this.A=b;b.N("web_settings_menu_icons")&&this.setIcon(hQT());this.J(b.getPlaybackRate());this.j(b,"onPlaybackRateChange",this.J);this.j(b,"presentingplayerstatechange",this.S);this.A.getVideoData()?.eK()&&this.j(b,kO(b.L().Mj())?"playbackChange":"serverstitchedvideochange",this.S);this.S()}S(){var b=this.A.getVideoData()?.eK();b=this.A.getPresentingPlayerType(b);this.enable(b!==2&&b!==3)}J(b){this.setContent(b=== 1?"Normal":b.toString())}open(){g.mP(this.Gy,new TKt(this.A))}};var kT3=class extends g.fm{constructor(b){super(b,"ytp-settings-menu");this.WD=new g.dF(this.A);this.Kx=this.Xn=this.settingsButton=null;this.isInitialized=this.Rq=!1;g.n(this,this.WD);this.hide();g.mP(this,this.WD);b.createClientVe(this.element,this,108341,!0);this.subscribe("show",R=>{this.MC(R)}); this.j(b,"highlightSettingsMenu",()=>{this.Rq=!0;this.zD()}); this.j(b,"openSettingsMenuItem",R=>{R&&(this.Rq=!0,this.zD(),R==="menu_item_video_quality_advanced"&&this.Xn?.open())}); b.N("html5_enable_voice_boost")&&(this.j(b,"onPlaybackAudioChange",this.Lh),this.j(b,"videodatachange",this.Lh));this.A.L()?.getWebPlayerContextConfig()?.enableFullscreenComponentsFeature&&this.j(this.element,"wheel",R=>{R.stopPropagation()})}initialize(){if(!this.isInitialized){var b=this.A.L(); this.isInitialized=!0;try{this.Xn=new ADn(this.A,this)}catch(h){g.kJ(Error("QualityMenuItem creation failed"))}g.n(this,this.Xn);var R=new EBn(this.A,this);g.n(this,R);b.enableSpeedOptions&&(b.N("web_enable_varispeed_panel")?(R=new JDc(this.A,this),g.n(this,R)):(R=new gBx(this.A,this),g.n(this,R)));(g.Fo(b)||b.J)&&(b.Y||b.JX)&&(R=new jK2(this.A,this),g.n(this,R));b.Ys&&!b.N("web_player_move_autonav_toggle")&&(R=new txz(this.A,this),g.n(this,R));b.N("html5_enable_new_audio_settings_menu")?(this.Kx= new yDr(this.A,this),g.n(this,this.Kx)):(b=new fxH(this.A,this),g.n(this,b));this.A.publish("settingsMenuInitialized");BR(this.settingsButton,this.WD.fU())}}WH(b){this.initialize();this.WD.WH(b);BR(this.settingsButton,this.WD.fU())}yn(b){this.HY()||(this.XM&&this.WD.fU()<=1&&this.hide(),this.WD.yn(b),BR(this.settingsButton,this.WD.fU()))}zD(b){this.initialize();this.WD.fU()>0&&super.zD(b)}aT(){this.Rq?this.Rq=!1:super.aT()}show(){super.show();g.Nv(this.A.getRootNode(),"ytp-settings-shown")}hide(){super.hide(); g.lI(this.A.getRootNode(),"ytp-settings-shown")}MC(b){this.A.logVisibility(this.element,b);this.A.publish("settingsMenuVisibilityChanged",b)}Lh(){this.A.Lh()}};var Y3n=class extends g.w{constructor(b,R){super({B:"button",F5:["ytp-subtitles-button","ytp-button"],O:{"aria-keyshortcuts":"c","aria-pressed":"{{pressed}}","data-priority":"5","data-tooltip-title":"{{tooltip-title}}",title:b.N("player_tooltip_data_title_killswitch")?"{{title}}":"","data-title-no-tooltip":"{{data-title-no-tooltip}}"},W:[b.N("delhi_modern_web_player_icons")?{B:"div",Z:"ytp-subtitles-button-icon",IH:"{{icon}}"}:khq(b)]});this.A=b;this.tooltip=R.qb();b.N("delhi_modern_web_player_icons")&& this.updateValue("icon",Gjx(this));this.j(b,"videodatachange",this.bv);this.j(b,"appresize",this.bv);this.j(b,"promotooltipacceptbuttonclicked",this.G);this.j(b,"onApiChange",this.bv);this.j(b,"onCaptionsTrackListChanged",this.bv);this.j(b,"captionschanged",this.bv);this.A.createClientVe(this.element,this,127299);this.bv();this.listen("click",this.onClick);this.addOnDisposeCallback(g.IL(R.qb(),this.element))}onClick(){if(Ab(this)&&(this.A.toggleSubtitles(),this.A.logClick(this.element),!this.isEnabled())){let b= !1;const R=g.HL().WY(65);g.lv(this.A.L())&&R!=null&&(b=!R);b&&this.A.L().N("web_player_nitrate_promo_tooltip")&&this.A.publish("showpromotooltip",this.element)}}G(b){g.hT(this.A)?.yA()?.zD(b)}isEnabled(){const b=this.A.getOption("captions","track");return!(!b||!b.displayName)}bv(){const b=Ab(this);let R=300;this.A.L().D&&(R=480);this.A.N("delhi_modern_web_player_icons")&&this.updateValue("icon",Gjx(this));var h=this.A.L();(h.N("html5_hide_unavailable_subtitles_button")?0:!h.J)?(b?(this.yX("ytp-subtitles-button-icon")?.setAttribute("fill-opacity", "1"),this.A.L().N("player_tooltip_data_title_killswitch")?this.updateValue("title",g.pz(this.A,"Subt\u00edtulos","c")):this.update({"tooltip-title":g.pz(this.A,"Subt\u00edtulos","c")}),this.update({"data-title-no-tooltip":"Subt\u00edtulos"})):(this.A.N("delhi_modern_web_player_icons")?this.yX("ytp-subtitles-button-icon")?.getElementsByTagName("svg")[0].setAttribute("fill-opacity","0.3"):this.yX("ytp-subtitles-button-icon")?.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"})),h=this.A.N("player_disable_caption_button_if_captions_not_available")&&this.A.N("delhi_modern_web_player")?b:!0):(this.updateValue("title",g.pz(this.A,"Subt\u00edtulos","c")),this.update({"tooltip-title":g.pz(this.A,"Subt\u00edtulos","c")}),this.update({"data-title-no-tooltip":"Subt\u00edtulos"}),h=b);this.tooltip.d4();h=h&&this.A.tX().getPlayerSize().width>=R;this.sW(h); this.A.logVisibility(this.element,h);b?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}Qp(b){super.Qp(b)}};g.e2R=class extends g.w{constructor(b,R,h=350){super({B:"div",F5:["ytp-time-display","notranslate"],W:[{B:"div",Z:"ytp-time-wrapper",W:[{B:"div",Z:"ytp-time-contents",O:b.N("delhi_modern_web_player")?{"aria-label":"{{timeDisplayAriaLabel}}",role:"button",tabindex:"0"}:{"aria-label":"{{timeDisplayAriaLabel}}"},W:[{B:"span",Z:"ytp-time-clip-icon",IH:"{{clipicon}}",O:{"aria-label":"Recortar"}},{B:"span",Z:"ytp-time-current",IH:"{{currenttime}}"},{B:"span",Z:"ytp-time-separator",IH:" / "},{B:"span",Z:"ytp-time-duration", IH:"{{duration}}"}]}]},{B:"span",Z:"ytp-clip-watch-full-video-button-separator",IH:"\u2022"},{B:"span",Z:"ytp-clip-watch-full-video-button",IH:"{{watchfullvideo}}"}]});this.api=b;this.U=h;this.liveBadge=new g.w({B:"button",F5:["ytp-live-badge","ytp-button"],O:{disabled:"true"},IH:"{{content}}"});this.G=null;this.e3=this.Y=!1;this.K=this.D=this.J=null;this.isPremiere=!1;this.S=this.V=null;this.X=!1;this.ll=this.liveIndicatorText=null;this.T6=this.yX("ytp-clip-watch-full-video-button");this.liveBadge.setContent("En directo"); g.n(this,this.liveBadge);this.api.N("web_player_updated_entrypoint")||this.api.N("delhi_modern_web_player")?this.liveBadge.AX(this.yX("ytp-time-wrapper")):this.liveBadge.AX(this.element);this.tooltip=R.qb();this.liveBadge.listen("click",this.onClick.bind(this));this.api.N("delhi_modern_web_player")&&(R=this.yX("ytp-time-wrapper"),this.j(R,"click",this.C),R.classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown()));this.j(this.T6,"click",this.nR);this.j(this.api,kO(this.api.L().Mj())?"playbackChange": "serverstitchedvideochange",()=>{gne(this,this.api.getProgressState().isAtLiveHead)}); this.j(b,"presentingplayerstatechange",this.FX);this.j(b,"appresize",this.FX);this.j(b,"onLoopRangeChange",this.onLoopRangeChange);this.j(b,"videodatachange",this.onVideoDataChange);(R=b.getVideoData())&&this.updateVideoData(R);this.FX();WPK(this,b.getLoopRange())}canShowCountdown(){return!UQ(this)&&!ir(this)}FX(){var b=this.api.tX().getPlayerSize().width,R=this.U;this.api.L().D&&(R=400);R=b>=R&&(!ir(this)||!this.api.getPlayerStateObject().G(64));this.sW(R);g.k(this.element,"ytp-time-display-allow-autohide", R&&b<400);b=this.api.getProgressState();if(R){var h=this.api.getPresentingPlayerType();R=this.api.getCurrentTime(h,!1);this.Y&&(R-=b.airingStart);UQ(this)&&(R-=this.ll.startTimeMs/1E3);this.canShowCountdown()&&this.X&&(R-=this.api.getDuration(h,!1));var K=g.CW(R);this.V!==K&&(this.updateValue("currenttime",K),this.V=K);h=UQ(this)?(this.ll.endTimeMs-this.ll.startTimeMs)/1E3:this.api.getDuration(h,!1);K=g.CW(h);this.S!==K&&(this.updateValue("duration",K),this.S=K);R=g.zc("$PLAY_PROGRESS de $DURATION", {PLAY_PROGRESS:g.CW(R,!0),DURATION:g.CW(h,!0)});this.updateValue("timeDisplayAriaLabel",R)}gne(this,b.isAtLiveHead);WPK(this,this.api.getLoopRange())}onLoopRangeChange(b){const R=this.ll!==b;this.ll=b;R&&(this.FX(),zO(this))}nR(){this.api.setLoopRange(null)}C(){this.X=!this.X;this.FX()}onVideoDataChange(b,R,h){this.updateVideoData((this.api.L().N("enable_topsoil_wta_for_halftime")||this.api.L().N("enable_topsoil_wta_for_halftime_live_infra"))&&h===2?this.api.getVideoData({playerType:1}):R);this.FX(); zO(this)}updateVideoData(b){this.e3=b.isLivePlayback&&!b.YH;this.Y=b.MJ();this.isPremiere=b.isPremiere;this.liveIndicatorText=(b=b.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.liveIndicatorText)?kI(b):null;g.k(this.element,"ytp-live",ir(this));this.api.N("delhi_modern_web_player")&&this.yX("ytp-time-wrapper").classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown())}onClick(b){b.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}X5(){this.G&& this.G();super.X5()}};var Owx=class extends g.w{constructor(b,R){super({B:"div",Z:"ytp-volume-panel",O:{title:b.N("player_tooltip_data_title_killswitch")?"Volumen":"","data-tooltip-title":"Volumen",role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},W:[{B:"div",Z:"ytp-volume-slider",W:[{B:"div",Z:"ytp-volume-slider-handle"}]}]});this.api=b;this.J=R;this.Gh=!1;this.nR=this.volume=0;this.S=null;this.Y=this.G=this.isDragging=!1;this.J=R;this.X= b.tU();this.C=b.N("web_player_use_screen_width_for_big_mode");this.K=this.yX("ytp-volume-slider");this.SY=this.yX("ytp-volume-slider-handle");this.V=new g.Nm(this.K,!0);g.n(this,this.V);this.V.subscribe("dragstart",this.NJ,this);this.V.subscribe("dragmove",this.MJ,this);this.V.subscribe("dragend",this.JX,this);this.j(b,"onVolumeChange",this.onVolumeChange);this.j(b,"appresize",this.vY);this.j(b,"fullscreentoggled",this.AB);this.j(b,"onShowControls",this.U);this.j(b,"onHideControls",this.U);this.j(this.element, "keydown",this.gp);this.j(this.element,"focus",()=>{gb(this,this.G,this.isDragging,!0,this.api.Gh())}); this.j(this.element,"blur",()=>{gb(this,this.G,this.isDragging,!1,this.api.Gh())}); SAx(this,b.tX().getPlayerSize());GO(this,b.getVolume(),b.isMuted());Ny(b,this.element,this)}AB(){nnx(this)}vY(b){SAx(this,b);this.C&&nnx(this)}gp(b){if(!b.defaultPrevented){const R=b.keyCode;let h=null;R===37?h=this.volume-5:R===39?h=this.volume+5:R===36?h=0:R===35&&(h=100);h!==null&&(h=g.ui(h,0,100),h===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(h)),b.preventDefault())}}T6(b){const R=b.deltaX||-b.deltaY;b.deltaMode?this.api.setVolume(this.volume+(R<0?-10:10)):this.api.setVolume(this.volume+ g.ui(R/10,-10,10));b.preventDefault();this.api.L()?.getWebPlayerContextConfig()?.enableFullscreenComponentsFeature&&b.stopPropagation()}NJ(){gb(this,this.G,!0,this.Y,this.api.Gh());this.nR=this.volume;this.api.isMuted()&&this.api.unMute()}MJ(b){var R=this.X?78:52,h=this.X?18:12;b-=g.hR(this.K).x;h=g.ui((b-h/2)/(R-h),0,1);this.C&&(h=g.ui(b/R,0,1));R=h;R=this.api.N("web_player_non_linear_volume_controls")?R<=.25?R/.25*.1:.1+(R-.25)/.75*.9:R;this.api.setVolume(R*100)}JX(){gb(this,this.G,!1,this.Y,this.api.Gh()); this.volume===0&&(this.api.mute(),this.api.setVolume(this.nR))}onVolumeChange(b){GO(this,b.volume,b.muted)}U(){gb(this,this.G,this.isDragging,this.Y,this.api.Gh())}D(b){g.k(this.element,"ytp-volume-control-hover",b);gb(this,b,this.isDragging,this.Y,this.api.Gh())}X5(){super.X5();g.lI(this.J,"ytp-volume-slider-active")}};var QKR=class extends g.w{constructor(b,R){const h=b.L(),K=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];h.X&&K.push("no-link");const I={title:b.N("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}",target:h.U,"data-priority":"6","data-sessionlink":"feature=player-button"};h.X||(I.href="{{url}}");super({B:"a",F5:K,O:I,IH:"{{logoSvg}}"});this.G=null;this.api=b;this.visible=!1;h.X||(this.G=this.listen("click",this.onClick));this.j(b,"videodatachange", this.onVideoDataChange);this.j(b,"videoplayerreset",this.onVideoDataChange);this.j(b,"onLoopRangeChange",this.onVideoDataChange);this.j(b,"appresize",this.fz);this.onVideoDataChange();h.X||this.addOnDisposeCallback(g.IL(R.qb(),this.element));this.fz()}onVideoDataChange(){var b=this.api.L();this.fz();this.visible=!!this.api.getVideoData().videoId&&!this.api.getVideoData({playerType:1}).C0;this.sW(this.visible);this.api.logVisibility(this.element,this.visible&&this.G6);if(this.visible){var R=this.api.getVideoUrl(!0, !1,!1,!0);this.updateValue("url",R)}b.X&&(this.G&&(this.Ac(this.G),this.G=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.Nv(this.element,"no-link"));R=this.api.L();b=this.api.getVideoData();let h="";R.X||(R=g.Kt(R),R.indexOf("www.")===0&&(R=R.substring(4)),h=g.X8(b)?"Ver en YouTube Music":R==="youtube.com"?"Ver en YouTube":g.zc("Ver en $WEBSITE",{WEBSITE:R}));this.api.N("player_tooltip_data_title_killswitch")?this.updateValue("title", h):this.updateValue("tooltip-title",h)}onClick(b){this.api.N("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);const R=this.api.L();let h=this.api.getVideoUrl(!g.MU(b),!1,!0,!0);if(g.Fo(R)){const K={};g.Fo(R)&&g.F8(this.api,"addEmbedsConversionTrackingParams",[K]);h=g.z9(h,K)}g.Tq(h,this.api,b);this.api.N("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}fz(){let b={B:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 67 36", width:"100%"},W:[{B:"path",XX:!0,Z:"ytp-svg-fill",O:{d:"M 45.09 10 L 45.09 25.82 L 47.16 25.82 L 47.41 24.76 L 47.47 24.76 C 47.66 25.14 47.94 25.44 48.33 25.66 C 48.72 25.88 49.16 25.99 49.63 25.99 C 50.48 25.99 51.1 25.60 51.5 24.82 C 51.9 24.04 52.09 22.82 52.09 21.16 L 52.09 19.40 C 52.12 18.13 52.05 17.15 51.90 16.44 C 51.75 15.74 51.50 15.23 51.16 14.91 C 50.82 14.59 50.34 14.44 49.75 14.44 C 49.29 14.44 48.87 14.57 48.47 14.83 C 48.27 14.96 48.09 15.11 47.93 15.29 C 47.78 15.46 47.64 15.65 47.53 15.86 L 47.51 15.86 L 47.51 10 L 45.09 10 z M 8.10 10.56 L 10.96 20.86 L 10.96 25.82 L 13.42 25.82 L 13.42 20.86 L 16.32 10.56 L 13.83 10.56 L 12.78 15.25 C 12.49 16.62 12.31 17.59 12.23 18.17 L 12.16 18.17 C 12.04 17.35 11.84 16.38 11.59 15.23 L 10.59 10.56 L 8.10 10.56 z M 30.10 10.56 L 30.10 12.58 L 32.59 12.58 L 32.59 25.82 L 35.06 25.82 L 35.06 12.58 L 37.55 12.58 L 37.55 10.56 L 30.10 10.56 z M 19.21 14.46 C 18.37 14.46 17.69 14.63 17.17 14.96 C 16.65 15.29 16.27 15.82 16.03 16.55 C 15.79 17.28 15.67 18.23 15.67 19.43 L 15.67 21.06 C 15.67 22.24 15.79 23.19 16 23.91 C 16.21 24.62 16.57 25.15 17.07 25.49 C 17.58 25.83 18.27 26 19.15 26 C 20.02 26 20.69 25.83 21.19 25.5 C 21.69 25.17 22.06 24.63 22.28 23.91 C 22.51 23.19 22.63 22.25 22.63 21.06 L 22.63 19.43 C 22.63 18.23 22.50 17.28 22.27 16.56 C 22.04 15.84 21.68 15.31 21.18 14.97 C 20.68 14.63 20.03 14.46 19.21 14.46 z M 56.64 14.47 C 55.39 14.47 54.51 14.84 53.99 15.61 C 53.48 16.38 53.22 17.60 53.22 19.27 L 53.22 21.23 C 53.22 22.85 53.47 24.05 53.97 24.83 C 54.34 25.40 54.92 25.77 55.71 25.91 C 55.97 25.96 56.26 25.99 56.57 25.99 C 57.60 25.99 58.40 25.74 58.96 25.23 C 59.53 24.72 59.81 23.94 59.81 22.91 C 59.81 22.74 59.79 22.61 59.78 22.51 L 57.63 22.39 C 57.62 23.06 57.54 23.54 57.40 23.83 C 57.26 24.12 57.01 24.27 56.63 24.27 C 56.35 24.27 56.13 24.18 56.00 24.02 C 55.87 23.86 55.79 23.61 55.75 23.25 C 55.71 22.89 55.68 22.36 55.68 21.64 L 55.68 21.08 L 59.86 21.08 L 59.86 19.16 C 59.86 17.99 59.77 17.08 59.58 16.41 C 59.39 15.75 59.07 15.25 58.61 14.93 C 58.15 14.62 57.50 14.47 56.64 14.47 z M 23.92 14.67 L 23.92 23.00 C 23.92 24.03 24.11 24.79 24.46 25.27 C 24.82 25.76 25.35 26.00 26.09 26.00 C 27.16 26.00 27.97 25.49 28.5 24.46 L 28.55 24.46 L 28.76 25.82 L 30.73 25.82 L 30.73 14.67 L 28.23 14.67 L 28.23 23.52 C 28.13 23.73 27.97 23.90 27.77 24.03 C 27.57 24.16 27.37 24.24 27.15 24.24 C 26.89 24.24 26.70 24.12 26.59 23.91 C 26.48 23.70 26.43 23.35 26.43 22.85 L 26.43 14.67 L 23.92 14.67 z M 36.80 14.67 L 36.80 23.00 C 36.80 24.03 36.98 24.79 37.33 25.27 C 37.60 25.64 37.97 25.87 38.45 25.96 C 38.61 25.99 38.78 26.00 38.97 26.00 C 40.04 26.00 40.83 25.49 41.36 24.46 L 41.41 24.46 L 41.64 25.82 L 43.59 25.82 L 43.59 14.67 L 41.09 14.67 L 41.09 23.52 C 40.99 23.73 40.85 23.90 40.65 24.03 C 40.45 24.16 40.23 24.24 40.01 24.24 C 39.75 24.24 39.58 24.12 39.47 23.91 C 39.36 23.70 39.31 23.35 39.31 22.85 L 39.31 14.67 L 36.80 14.67 z M 56.61 16.15 C 56.88 16.15 57.08 16.23 57.21 16.38 C 57.33 16.53 57.42 16.79 57.47 17.16 C 57.52 17.53 57.53 18.06 57.53 18.78 L 57.53 19.58 L 55.69 19.58 L 55.69 18.78 C 55.69 18.05 55.71 17.52 55.75 17.16 C 55.79 16.81 55.87 16.55 56.00 16.39 C 56.13 16.23 56.32 16.15 56.61 16.15 z M 19.15 16.19 C 19.50 16.19 19.75 16.38 19.89 16.75 C 20.03 17.12 20.09 17.7 20.09 18.5 L 20.09 21.97 C 20.09 22.79 20.03 23.39 19.89 23.75 C 19.75 24.11 19.51 24.29 19.15 24.30 C 18.80 24.30 18.54 24.11 18.41 23.75 C 18.28 23.39 18.22 22.79 18.22 21.97 L 18.22 18.5 C 18.22 17.7 18.28 17.12 18.42 16.75 C 18.56 16.38 18.81 16.19 19.15 16.19 z M 48.63 16.22 C 48.88 16.22 49.08 16.31 49.22 16.51 C 49.36 16.71 49.45 17.05 49.50 17.52 C 49.55 17.99 49.58 18.68 49.58 19.55 L 49.58 21 L 49.59 21 C 49.59 21.81 49.57 22.45 49.5 22.91 C 49.43 23.37 49.32 23.70 49.16 23.89 C 49.00 24.08 48.78 24.17 48.51 24.17 C 48.30 24.17 48.11 24.12 47.94 24.02 C 47.76 23.92 47.62 23.78 47.51 23.58 L 47.51 17.25 C 47.59 16.95 47.75 16.70 47.96 16.50 C 48.17 16.31 48.39 16.22 48.63 16.22 z "}}]}, R=28666;const h=this.api.getVideoData();this.api.isEmbedsShortsMode()?b={B:"svg",O:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},W:[{B:"path",O:{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.X8(h)&&(b={B:"svg",O:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},W:[{B:"path",O:{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"}},{B:"path",O:{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"}},{B:"path",O:{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"}},{B:"path",O:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{B:"path",O:{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"}},{B:"path",O:{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"}},{B:"path",O:{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"}},{B:"path",O:{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"}},{B:"path",O:{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"}},{B:"path",O:{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"}},{B:"path",O:{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"}},{B:"path",O:{d:"M135.41 21.06C136.67 21.06 137.38 20.91 137.95 20.37C138.80 19.63 139.15 18.48 139.09 16.54L136.78 16.42C136.78 18.54 136.44 19.34 135.45 19.34C134.36 19.34 134.18 18.15 134.18 15.99V13.43C134.18 11.07 134.41 9.95 135.47 9.95C136.35 9.95 136.70 10.69 136.70 13.05L138.99 12.89C139.15 11.20 138.98 9.82 138.18 9.05C137.58 8.49 136.69 8.27 135.51 8.27C132.48 8.27 131.54 10.19 131.54 13.84V15.53C131.54 19.18 132.25 21.06 135.41 21.06Z", fill:"white"}}]},R=216163);g.X8(h)?g.Nv(this.element,"ytp-youtube-music-button"):g.lI(this.element,"ytp-youtube-music-button");b.O={...b.O,"aria-hidden":"true"};this.updateValue("logoSvg",b);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,R,!0)}Qp(b){super.Qp(b);this.api.logVisibility(this.element,this.visible&&b)}};var xsH=class extends g.Ke{constructor(b,R,h){super();this.A=b;this.T6=R;this.qC=h;this.fR=NaN;this.nR=this.Zr=this.playButton=this.S=this.J=this.JX=this.SY=this.C=this.G6=this.muteButton=this.K=this.pR=this.PV=this.wp=null;this.X=new kT3(this.A);this.progressBar=new g.Hw3(this.A,this.T6);this.r_=new g.e2R(this.A,this.T6);this.xZ=new Kqx(this.A,this.T6);this.U=new g.F7(this.PH,null,this);h=b.L();this.qC.subscribe("autohideupdate",this.D2,this);var K=!b.getPlayerStateObject().isCued(),I;(this.RH=!b.N("delhi_modern_web_player")&& b.L().N("html5_player_dynamic_bottom_gradient"))?this.pR=I=new oew(b):I=new g.w({B:"div",Z:"ytp-gradient-bottom"});g.n(this,I);g.dL(b,I.element,9);this.gp=new g.Sg(I,250,K,100);g.n(this,this.gp);this.G=new g.w({B:"div",Z:"ytp-chrome-bottom",W:[{B:"div",Z:"ytp-chrome-controls"}]});g.n(this,this.G);g.dL(b,this.G.element,9);b.N("frosted_glass_controls_opacity_animation")&&this.G.element.classList.add("ytp-frosted-glass-opacity-animation");this.MJ=new g.Sg(this.G,250,K,100);g.n(this,this.MJ);this.vY= this.G.element.children[0];g.n(this,this.X);g.dL(b,this.X.element,6);this.X.subscribe("show",N=>{this.A.xE(!N);b.e1(this.X,N)}); g.n(this,this.progressBar);WR(this,this.progressBar,this.G.element,void 0,0);K=new h2U(b,R);g.n(this,K);g.dL(b,K.element,4);K=new g.Ag({B:"div",Z:"ytp-left-controls"});g.n(this,K);K.AX(this.vY);b.N("delhi_modern_web_player")||(I=new g.SV(b,R,!1),g.n(this,I),WR(this,I,K.element));b.N("web_render_jump_buttons")&&(this.G6=new sK3(b,-10),g.n(this,this.G6),WR(this,this.G6,K.element));h.vY||(this.playButton=new g.axz(b,R),g.n(this,this.playButton),WR(this,this.playButton,K.element));b.N("web_render_jump_buttons")&& (this.C=new sK3(b,10),g.n(this,this.C),WR(this,this.C,K.element));b.N("delhi_modern_web_player")&&(I=new g.SV(b,R,!1),g.n(this,I),WR(this,I,K.element));I=new g.SV(b,R,!0);g.n(this,I);WR(this,I,K.element);if(!b.N("delhi_modern_web_player")||b.N("delhi_modern_web_player_horizontal_volume_controls"))if(I=new g.w({B:"span",Z:"ytp-volume-area"}),g.n(this,I),WR(this,I,K.element),!h.FM&&(this.muteButton=new WK(b,R),g.n(this,this.muteButton),this.muteButton.AX(I.element),h.gp&&!h.D)){const N=new Owx(b,this.G.element); this.Zr=N;g.n(this,N);N.AX(I.element);I=new g.Nm(I.element);g.n(this,I);I.subscribe("hoverstart",()=>{this.Zr?.D(!0)}); I=new g.Nm(K.element);g.n(this,I);I.subscribe("hoverend",()=>{this.Zr?.D(!1)})}b.N("delhi_modern_web_player_lhs_volume_controls")&&!b.N("delhi_modern_web_player_horizontal_volume_controls")&&(K.element.classList.add("ytp-left-controls-with-volume"),this.muteButton=new WK(b,R),g.n(this,this.muteButton),this.muteButton.AX(K.element),this.muteButton.element.classList.add("ytp-standalone-mute-button")); g.n(this,this.r_);WR(this,this.r_,K.element,"ytp-time-wrapper");this.SY=new bwn(b,this.progressBar);g.n(this,this.SY);WR(this,this.SY,K.element,"ytp-chapter-title");h.N("web_key_moments_markers")&&(this.JX=new $sn(b,this.progressBar),g.n(this,this.JX),WR(this,this.JX,K.element,"ytp-chapter-title"));b.N("delhi_modern_web_player")?this.V=new g.Ag({B:"div",Z:"ytp-right-controls",W:[{B:"div",Z:Sq.RIGHT_CONTROLS_LEFT},{B:"div",Z:Sq.RIGHT_CONTROLS_RIGHT}]}):this.V=new g.Ag({B:"div",Z:"ytp-right-controls"}); g.n(this,this.V);WR(this,this.V,this.vY);b.N("delhi_modern_web_player")&&(this.K=new R2t(b),g.n(this,this.K),this.K.AX(this.V.yX(Sq.RIGHT_CONTROLS_LEFT)),b.N("delhi_modern_web_player_lhs_volume_controls")||b.N("delhi_modern_web_player_horizontal_volume_controls")||(this.muteButton=new WK(b,R),g.n(this,this.muteButton),this.muteButton.AX(this.V.yX(Sq.RIGHT_CONTROLS_LEFT))));this.CR=new Y3n(b,R);g.n(this,this.CR);nn(this,this.CR,"RIGHT_CONTROLS_LEFT");this.settingsButton=new dsz(b,this.X);g.n(this, this.settingsButton);Ubq(this.X,this.settingsButton);nn(this,this.settingsButton,"RIGHT_CONTROLS_LEFT");K=b.getVideoData();if(h.Pq||K.C0&&h.controlsType==="1")this.J=new QKR(b,R),g.n(this,this.J),this.J.AX(this.V.element);h.showMiniplayerButton&&!b.N("web_player_miniplayer_in_context_menu")&&(this.S=new Ixz(b),g.n(this,this.S),nn(this,this.S,"RIGHT_CONTROLS_RIGHT"));h.showMiniplayerButton&&this.j(b,"minimized",()=>{this.X.hide()}); h.CN&&(R=new q3p(b,this.X),g.n(this,R),nn(this,R,"RIGHT_CONTROLS_RIGHT"));h.bC&&(R=new F02(b),g.n(this,R),nn(this,R,"RIGHT_CONTROLS_RIGHT"));g.n(this,this.xZ);nn(this,this.xZ,"RIGHT_CONTROLS_RIGHT");g.n(this,this.U);this.j(b,"appresize",this.fz);this.j(b,"fullscreentoggled",this.fz);this.K?.subscribe("small-mode-expand-right-bottom-controls",()=>{EnB(this)}); this.K?.subscribe("small-mode-collapse-right-bottom-controls",()=>{EnB(this)}); this.j(b,"presentingplayerstatechange",this.NJ);this.j(b,"videodatachange",this.onVideoDataChange);this.fz()}onProgress(){if(this.A.N("web_player_max_seekable_on_ended")||!this.A.getPlayerStateObject().G(2))mC(this.qC),this.progressBar.FX(),this.r_.FX()}D2(){this.NJ();if(mC(this.qC))this.progressBar.S();else this.onProgress()}PH(){this.onProgress();this.U.start()}NJ(){var b;if(b=!this.A.L().Y){b=this.progressBar;const h=2*g.yH()*b.D;var R=b.X;b=(R.G-R.Y)*1E3/b.api.getPlaybackRate()/h<300}b=b&&this.A.getPlayerStateObject().isPlaying()&& !!window.requestAnimationFrame;R=!b;mC(this.qC)&&(b=R=!1);R?this.nR||(this.nR=this.j(this.A,"progresssync",this.onProgress)):this.nR&&(this.Ac(this.nR),this.nR=null);b?this.U.isActive()||this.U.start():this.U.stop()}Sn(){return this.playButton?(this.playButton.focus(),!0):!1}fz(){var b=this.A.tU();const R=this.A.tX().getPlayerSize();var h=this.A.tX().Mt;const K=EQ(this),I=JL3(this);var N=Math.max(R.width-K*2,100);if(this.fR!==R.width||this.wp!==b||this.A.N("web_player_rtr_ctrls")&&this.PV!==h)this.fR= R.width,this.wp=b,this.PV=h,this.G.element.style.width=`${I}px`,this.G.element.style.left=`${K}px`,g.vn2(this.progressBar,K,I,b),this.A.qb().Cy=I;h=this.X;N=Math.min(570*(b?1.5:1),N);b=Math.min(413*(b?1.5:1),Math.round((R.height-TO(this))*.82));h.maxWidth=N;h.maxHeight=b;h.Dz();this.NJ();this.RH&&hKK(this.pR,R.height)}onVideoDataChange(){const b=this.A.getVideoData();this.vY.style.background=b.C0?b.wW:"";this.C&&N7q(this.C,b.showSeekingControls);this.G6&&N7q(this.G6,b.showSeekingControls)}hO(){return this.G.element}KR(){return this.progressBar}Zl(b, R){const h=Number(b.element.getAttribute("data-priority"))||0;let K=0,I=this.V.element;R&&this.A.N("delhi_modern_web_player")&&(I=this.V.yX(Sq[R]));for(const N of I.children){if(h<(Number(N.getAttribute("data-priority"))||0))break;K++}b.AX(I,K)}};var msp=class extends HK{constructor(b){super(b,!1);this.suggestedActions={};this.G=null;this.V=!1;this.element.setAttribute("data-overlay-order","7");this.j(this.A,"videodatachange",this.onVideoDataChange);this.j(this.A,g.fM("suggested_action_button_visible"),R=>{this.text=R=R.id;Yn(this);this.onClickCommand=this.suggestedActions[R]?.tapCommand;this.enabled=!0;this.MC()}); this.j(this.A,g.yf("suggested_action_button_visible"),R=>{this.enabled=!1;this.MC();this.A.removeCueRange(R.id)}); this.j(b,"presentingplayerstatechange",this.onStateChange)}vY(b){b.target===this.dismissButton.element?this.G&&iQB(xI(),this.G):(this.onClickCommand&&(this.J(!1),g.rw(this.A,"innertubeCommand",this.onClickCommand)),this.D())}D(){this.enabled=!1;this.T6.hide()}onVideoDataChange(b,R){b==="dataloaded"&&kj2(this);b=[];if(R=g.Z(R.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.suggestedActionsRenderer,XnK)?.suggestedActions)for(var h of R)(R=g.Z(h,Voq))&&g.Z(R.trigger,lN)&&b.push(R);if(b.length!== 0){h=[];for(const K of b){b=g.Z(K.trigger,lN);if(!b)continue;R=(R=K.title)?g.BY(R):"View Chapters";const I=b.timeRangeStartMillis,N=b.timeRangeEndMillis;b=b.onlyTriggersOnPlayerPause;K.tapCommand&&(I!=null&&N!=null&&h.push(new g.gL(I,N,{priority:9,namespace:"suggested_action_button_visible",id:R})),I!=null&&N!=null||b)&&(this.suggestedActions[R]=K,K.rendererContext&&!this.X&&(b=g.Z(K.rendererContext,ACx))&&(b=b.loggingDirectives?.trackingParams)&&(this.A.setTrackingParams(this.badge.element,b),this.X= !0),K.dismissButtonClientVeSpec?.uiType&&!this.G&&(this.G=A2(K.dismissButtonClientVeSpec.uiType),PJ(xI(),this.G)))}this.A.f5(h)}}K(){return this.enabled}MC(){this.enabled?this.CR.start():JL(this);this.Y()}onStateChange(b){for(const R of Object.keys(this.suggestedActions))if(g.Z(this.suggestedActions[R].trigger,lN)?.onlyTriggersOnPlayerPause){b.state.isPaused()&&!this.V?(this.text=R,Yn(this),this.onClickCommand=this.suggestedActions[R]?.tapCommand,this.enabled=!0,this.MC(),this.V=!0):b.oldState.isPaused()&& (this.enabled=!1,this.MC());break}}X5(){kj2(this);super.X5()}};var EX={CHANNEL_NAME:"ytp-title-channel-name",FULLERSCREEN_LINK:"ytp-title-fullerscreen-link",LINK:"ytp-title-link",SESSIONLINK:"yt-uix-sessionlink",SUBTEXT:"ytp-title-subtext",TEXT:"ytp-title-text",TITLE:"ytp-title"},PTR=class extends g.w{constructor(b){super({B:"div",Z:EX.TITLE,W:[{B:"div",F5:[EX.TEXT,b.N("enable_larger_title_line_height")?"ytp-title-text-larger-line-height":""],W:[{B:"a",F5:[EX.LINK,EX.SESSIONLINK],O:{target:b.L().U,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"}, IH:"{{title}}"},{B:"div",Z:EX.SUBTEXT,W:["{{subtextElement}}"]}]}]});this.api=b;this.G=null;this.link=this.yX(EX.LINK);b.createClientVe(this.element,this,23851);this.j(b,"videodatachange",this.bv);this.j(b,"videoplayerreset",this.bv);this.bv()}onClick(b){this.api.logClick(this.element);var R=this.api.L();let h=this.api.getVideoUrl(!g.MU(b),!1,!0);g.Fo(R)&&(R={},g.F8(this.api,"addEmbedsConversionTrackingParams",[R]),h=g.z9(h,R));g.Tq(h,this.api,b)}bv(){const b=this.api.getVideoData(),R=this.api.L(); this.updateValue("title",b.title);var h={B:"a",Z:EX.CHANNEL_NAME,O:{href:"{{channelLink}}",target:"_blank"},IH:"{{channelName}}"};this.api.L().X?h={B:"span",Z:EX.CHANNEL_NAME,IH:"{{channelName}}",O:{tabIndex:"{{channelSubtextFocusable}}"}}:b.oS&&(h={B:"span",Z:EX.SUBTEXT,IH:b.oS});this.updateValue("subtextElement",h);YAx(this);this.api.getPresentingPlayerType()===2&&(h=this.api.getVideoData(),h.videoId&&h.isListed&&h.author&&h.JX&&h.profilePicture?(this.updateValue("channelLink",h.JX),this.updateValue("channelName", h.author),this.updateValue("channelTitleFocusable","0")):YAx(this));h=R.externalFullscreen||!this.api.isFullscreen()&&R.Cm;g.k(this.link,EX.FULLERSCREEN_LINK,h);R.C||!b.videoId||h||b.C0||R.X?this.G&&(this.updateValue("url",null),this.Ac(this.G),this.G=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.G||(this.G=this.j(this.link,"click",this.onClick)));R.X&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.Fo(R)?b.expandedTitle:b.author),this.updateValue("channelTitleFocusable", "0"),this.updateValue("channelSubtextFocusable","0"))}};g.Zw3=class extends g.w{constructor(b,R){const h={B:"div",Z:"ytp-tooltip-progress-bar-pill",W:[{B:"div",Z:"ytp-tooltip-progress-bar-pill-time-stamp",IH:"{{pillTimeStamp}}"},{B:"div",Z:"ytp-tooltip-progress-bar-pill-title",IH:"{{pillTitle}}"}]};super({B:"div",W:[{B:"div",Z:"ytp-tooltip-text-wrapper",O:{"aria-hidden":"{{ariaHidden}}"},W:[{B:"div",Z:"ytp-tooltip-edu",W:[{B:"svg",O:{height:"100%",viewBox:"0 0 36 36",width:"100%"},W:[{B:"path",O:{d:"M14.1 36.75 12 34.65 24 22.65 36 34.65 33.9 36.75 24 26.85ZM14.1 24.1 12 22 24 10 36 22 33.9 24.1 24 14.2Z"}}]}, {B:"span",IH:"{{eduText}}"}]},{B:"div",Z:"ytp-tooltip-image"},{B:"div",Z:"ytp-tooltip-title",W:[{B:"span",IH:"{{title}}"},{B:"div",Z:"ytp-tooltip-keyboard-shortcut",IH:"{{keyBoardShortcutTitle}}"}]},{B:"div",Z:"ytp-tooltip-bottom-text",W:[{B:"span",Z:"ytp-tooltip-text",IH:"{{text}}"},{B:"div",Z:"ytp-tooltip-keyboard-shortcut",IH:"{{keyBoardShortcut}}"}]},b.N("frosted_glass_controls_opacity_animation")?null:h]},{B:"div",Z:"ytp-tooltip-bg",W:[{B:"div",Z:"ytp-tooltip-duration",IH:"{{duration}}"}]},b.N("frosted_glass_controls_opacity_animation")? h:null]});this.api=b;this.JX=R;this.U=K=>{(K=K.relatedTarget)&&g.gM(this.G,K)||this.S()}; this.J=K=>{this.type===3&&this.S();(K=K.currentTarget)&&K.nodeType===1&&!this.type&&(K.removeEventListener("mouseover",this.J),K.addEventListener("mouseout",this.U),K.removeEventListener("focus",this.J),K.addEventListener("blur",this.U),xbH(this,K,2))}; this.C=()=>{this.S()}; this.type=this.G=null;this.K=!1;this.Y=null;this.X="";this.D=!0;this.scale=1;this.env=this.api.L();this.MJ=this.env.Y;this.wrapper=this.yX("ytp-tooltip-text-wrapper");this.bg=this.yX("ytp-tooltip-bg");this.gp=this.yX("ytp-tooltip-edu");this.image=this.yX("ytp-tooltip-image");this.text=this.yX("ytp-tooltip-text");this.bottomText=this.yX("ytp-tooltip-bottom-text");this.title=this.yX("ytp-tooltip-title");this.fade=new g.Sg(this,100);this.V=NaN;this.Cy=this.api.tX().getPlayerSize().width;this.nR=new g.bI(this.vY, 250,this);this.T6=new g.bI(this.S,5E3,this);g.n(this,this.fade);g.n(this,this.nR);g.n(this,this.T6);eq&&(b=this.yX("ytp-tooltip-text"),b.setAttribute("role","text"),b.setAttribute("aria-live","polite"));if(this.api.N("frosted_glass_controls_opacity_animation"))for(const K of this.element.children)g.Nv(K,"ytp-frosted-glass-fade-transition")}setEnabled(b){if(this.type!=null)if(b)switch(this.type){case 3:case 2:Jb(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.D=b}yU(b, R,h,K,I,N,p,l){if(!this.MJ||this.env.D){this.type===3&&this.S();this.type!==1&&(g.$d(this.element,"ytp-tooltip ytp-bottom"),this.api.N("frosted_glass_controls_opacity_animation")&&g.Nv(this.element,"ytp-frosted-glass-fade-transition"),this.type=1,this.D&&this.fade.show(),this.Y&&this.Y.dispose(),(this.Y=this.api.hW())&&this.Y.subscribe("l",this.SY,this));if(l){const a=g.lu(this.bg).height||141;this.gp.style.bottom=`${a+2}px`}else this.gp.style.display="none";this.env.N("delhi_modern_web_player")? (this.update({pillTimeStamp:h,pillTitle:N??"",eduText:l??""}),g.Nv(this.element,"ytp-tooltip-progress-bar-style")):(this.update({text:h,title:N??"",eduText:l??""}),g.k(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!N));this.api.isInline()&&g.Nv(this.bottomText,"ytp-modern-tooltip-text");g.k(this.element,"ytp-text-detail",!!K);h=-1;this.Y&&(h=MH(this.Y,243*this.scale),this.env.N("web_l3_storyboard")&&this.Y.levels.length===4&&(h=this.Y.levels.length-1),h=Vzq(this.Y,h,R));Q7B(this,h);if(p)switch(R= g.lu(this.element).width,p){case 1:this.title.style.right="0";this.title.style.textAlign="left";break;case 2:this.title.style.right=`${R}px`;this.title.style.textAlign="right";break;case 3:this.title.style.right=`${R/2}px`,this.title.style.textAlign="center"}OZH(this,!!K,b,I)}}mC(){this.type===1&&this.S()}j_(b,R){if(this.type)if(this.type===3)this.S();else return;xbH(this,b,3,R)}d4(){this.G&&!this.K&&(this.env.N("player_tooltip_data_title_killswitch")?this.G.hasAttribute("title")&&(this.X=this.G.getAttribute("title")|| "",this.G.removeAttribute("title"),this.D&&Jb(this)):this.G.hasAttribute("data-tooltip-title")&&(this.X=this.G.getAttribute("data-tooltip-title")||"",this.G.removeAttribute("data-tooltip-title"),this.D&&Jb(this)))}SY(b,R){b<=this.V&&this.V<=R&&(b=this.V,this.V=NaN,Q7B(this,b))}vY(){X8B(this.Y,this.V,243*this.scale)}S(){switch(this.type){case 2:const b=this.G;b.removeEventListener("mouseout",this.U);b.addEventListener("mouseover",this.J);b.removeEventListener("blur",this.U);b.addEventListener("focus", this.J);mb2(this);break;case 3:mb2(this);break;case 1:this.Y&&(this.Y.unsubscribe("l",this.SY,this),this.Y=null),this.api.removeEventListener("videoready",this.C),this.nR.stop()}this.type=null;this.D&&this.fade.hide()}dT(...b){if(this.G)for(b=0;b{this.gm(K,N)}); this.Yw.push(K);this.oZ=new ZbP(this.api,K);g.n(this,this.oZ);!this.xM&&(this.rk&&this.api.N("delhi_modern_web_player")?this.rk.Yk(this.oZ.element,2):this.oZ.AX(this.Gk.element));g.n(this,this.channelAvatar);this.channelAvatar.AX(this.Gk.element);g.n(this,this.title);this.title.AX(this.Gk.element);this.xM&&(h=new L0D(this.api),g.n(this,h),h.AX(this.Gk.element));g.n(this,this.Tz);this.rk?(this.Tz.element.setAttribute("data-overlay-order","2"),this.rk.Yk(this.Tz.element,2)):this.Tz.AX(this.Gk.element); const I=new Mje(this.api,this);g.n(this,I);g.dL(this.api,I.element,5);I.subscribe("show",N=>{this.gm(I,N)}); this.Yw.push(I);this.searchButton=new Xfq(this.api);g.n(this,this.searchButton);this.searchButton.AX(this.Tz.element);h=this.api.L().getWebPlayerContextConfig();this.aG=new cDt(this.api);g.n(this,this.aG);h?.hideTopWatchNextButton||this.aG.AX(this.Tz.element);this.shareButton=new Cex(this.api,this,I);g.n(this,this.shareButton);h?.hideTopShareButton||this.shareButton.AX(this.Tz.element);this.copyLinkButton=new G7x(this.api,this);g.n(this,this.copyLinkButton);this.copyLinkButton.AX(this.Tz.element); this.xM&&this.oZ.AX(this.Tz.element);g.n(this,this.Fy);this.Fy.AX(this.Tz.element);R.P_&&(h=new wfB(this.api),g.n(this,h),g.dL(this.api,h.element,4));R.X||(h=new jWq(this.api,this.Fy),g.n(this,h),h.AX(this.Tz.element));this.WI=new xoq(this.api);g.n(this,this.WI);g.dL(this.api,this.WI.element,5);this.WI.subscribe("show",()=>{this.gm(this.WI,this.WI.nZ())}); this.Yw.push(this.WI);this.overflowButton=new QW2(this.api,this.WI);g.n(this,this.overflowButton);this.overflowButton.AX(this.Tz.element);this.Vu&&g.n(this,this.Vu);R.controlsType==="3"&&(h=new ueK(this.api),g.n(this,h),g.dL(this.api,h.element,9));g.n(this,this.contextMenu);this.contextMenu.subscribe("show",this.Ku,this);this.Ua.listen("focus",this.MZ,this);g.n(this,this.Ua);this.Wn.listen("focus",this.y3,this);g.n(this,this.Wn);(this.Qf=R.er?null:new Obx(this.api,b,this.contextMenu,this.qC,this.Ah, this.nP,()=>this.Vg(),this.Vu?.KR()))&&g.n(this,this.Qf); this.xM||(this.jW=new W0x(this.api),g.n(this,this.jW),this.rk?this.rk.Yk(this.jW.element,3):g.dL(this.api,this.jW.element,4),this.f$=new rIx(this.api),g.n(this,this.f$),this.rk?this.rk.Yk(this.f$.element,3):g.dL(this.api,this.f$.element,4));this.Vc=new msp(this.api);g.n(this,this.Vc);this.rk?this.rk.Yk(this.Vc.element,3):g.dL(this.api,this.Vc.element,4);if(this.xM){const N=new neq(this.api,this.api.L().JX);g.n(this,N);g.dL(this.api,N.element,5);N.subscribe("show",p=>{this.gm(N,p)}); b=new EeD(this.api,N);g.n(this,b);g.dL(this.api,b.element,4)}this.F6.push(this.Ah.element);this.j(this.api,"fullscreentoggled",this.AB);this.j(this.api,"offlineslatestatechange",()=>{this.api.Ln()&&Ps(this.qC,128,!1)}); this.j(this.api,"cardstatechange",()=>{this.dQ()}); this.j(this.api,"resize",this.yI);this.j(this.api,"videoplayerreset",this.onReset);this.j(this.api,"showpromotooltip",this.JT);super.init()}qb(){return this.tooltip}F7(){return this.Vu}gm(b,R){R?this.Zg=b:this.Zg=null;this.dQ()}Ea(b,R){if(R)this.Ry.push(b);else for(R=this.Ry.length;R>=0;R--)if(this.Ry[R]===b){this.Ry.splice(R,1);break}Ps(this.qC,64,this.Ry.length>0)}uJ(){this.api.Lj()&&this.api.sA();return!!this.Zg||XOT(this)||super.uJ()}dQ(){const b=!this.uJ(),R=b&&this.api.Lj()&&!this.api.getPlayerStateObject().G(2)&& !this.api.getVideoData().C0&&!this.api.L().X&&!this.api.isEmbedsShortsMode(),h=this.xM&&g.Br(this.api)&&this.api.getPlayerStateObject().G(128);b||h?(this.Jo.show(),this.NI.show()):(this.Jo.hide(),this.NI.hide(),this.api.dT(this.Gk.element));R?this.Fy.zD():this.Fy.aT();this.Vu&&TYD(this.Vu,this.EP||!b);this.api.N("web_player_hide_overflow_button_if_empty_menu")&&k1(this);super.dQ()}qA(b,R,h,K,I){b.style.left="";b.style.top="";b.style.bottom="";var N=g.lu(b),p=K||this.Vu&&g.gM(this.Vu.hO(),R),l=K=null; h!=null&&p||(K=g.lu(R),l=g.NB(R,this.api.getRootNode()),h==null&&(h=l.x+K.width/2));h-=N.width/2;p?(R=this.Vu,K=EQ(R),l=JL3(R),p=this.api.tX().getPlayerSize().height,h=g.ui(h,K,K+l-N.width),N=p-TO(R)-N.height):g.gM(this.Gk.element,R)?(R=this.api.tX().getPlayerSize().width,h=g.ui(h,12,R-N.width-12),N=this.tU()?this.hM:this.yN,this.api.L().playerStyle==="gvn"&&(N+=20),this.xM&&(N-=this.tU()?26:18)):(R=this.api.tX().getPlayerSize(),h=g.ui(h,12,R.width-N.width-12),N=l.y>(R.height-K.height)/2?l.y-N.height- 12:l.y+K.height+12);b.style.top=`${N+(I||0)}px`;b.style.left=`${h}px`}D2(b){b&&(this.api.dT(this.Gk.element),this.Vu&&this.api.dT(this.Vu.hO()));this.D4&&(g.k(this.contextMenu.element,"ytp-autohide",b),g.k(this.contextMenu.element,"ytp-autohide-active",!0));super.D2(b)}II(){super.II();this.D4&&(g.k(this.contextMenu.element,"ytp-autohide-active",!1),this.D4&&(this.contextMenu.hide(),this.WI&&this.WI.hide()))}tb(b,R){var h=this.api.tX().getPlayerSize();h=new g.Xb(0,0,h.width,h.height);if(b||!mC(this.qC)&& !this.uJ()){if(this.api.L().Z5||R)b=this.tU()?this.hM:this.yN,h.top+=b,h.height-=b;this.Vu&&(h.height-=TO(this.Vu))}return h}AB(b){const R=this.api.getRootNode();b?R.parentElement?(R.setAttribute("aria-label","Reproductor de v\u00eddeo de YouTube a pantalla completa"),this.api.L().externalFullscreen||(R.parentElement.insertBefore(this.Ua.element,R),R.parentElement.insertBefore(this.Wn.element,R.nextSibling))):g.X(Error("Player not in DOM.")):(R.setAttribute("aria-label","Reproductor de v\u00eddeo de YouTube"), this.Ua.detach(),this.Wn.detach());this.fz();this.f8()}tU(){if(this.api.N("web_player_use_screen_width_for_big_mode"))return this.api.tX().getPlayerSize().width>=(g.fg(this.api.L().experiments,"web_player_big_mode_screen_width_cutoff")??2E3);const b=this.api.L();return this.api.isFullscreen()&&!b.D||!1}showControls(b){this.AM=!b;this.dQ()}fz(){var b=this.tU();this.tooltip.scale=b?1.5:1;this.contextMenu&&g.k(this.contextMenu.element,"ytp-big-mode",b);this.dQ();this.api.N("web_player_hide_overflow_button_if_empty_menu")|| k1(this);this.f8();const R=this.api.isEmbedsShortsMode();R&&b?(b=(this.api.tX().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.MN(this.Gk.element,"padding-left",`${b}px`),g.MN(this.Gk.element,"padding-right",`${b}px`)):R&&(g.MN(this.Gk.element,"padding-left",""),g.MN(this.Gk.element,"padding-right",""));super.fz()}Mv(){if(XOT(this)&&!g.Br(this.api))return!1;var b=this.api.getVideoData();return!g.Fo(this.api.L())||this.api.getPresentingPlayerType()===2||!this.XI||((b=this.XI||b.XI)? (b=b.embedPreview)?(b=b.thumbnailPreviewRenderer,b=b.videoDetails&&g.Z(b.videoDetails,rBK)||null):b=null:b=null,b&&b.collapsedRenderer&&b.expandedRenderer)?super.Mv():!1}f8(){super.f8();this.api.logVisibility(this.title.element,!!this.w9);this.oZ&&this.oZ.Qp(!!this.w9);this.channelAvatar.Qp(!!this.w9);this.overflowButton&&this.overflowButton.Qp(this.DP()&&!!this.w9);this.shareButton&&this.shareButton.Qp(!this.DP()&&!!this.w9);this.aG&&this.aG.Qp(!this.DP()&&!!this.w9);this.searchButton&&this.searchButton.Qp(!this.DP()&& !!this.w9);this.copyLinkButton&&this.copyLinkButton.Qp(!this.DP()&&!!this.w9);if(!this.w9){this.api.dT(this.Gk.element);for(let b=0;b5&&R.YZ("glrs",{cmt:h});R.seekTo(0,{seekSource:58});R.YZ("glrre",{cmt:h})}}X5(){this.G=null;super.X5()}};var wOe=class{constructor(){this.G=this.D=this.X=this.Y=this.U=this.J=this.G6=this.K=this.S=this.V=!1}};g.PR=class extends r4B{constructor(b,R,h,K=!1){super();this.mediaElement=b;this.start=R;this.end=h;this.G=K}isView(){return!0}Ty(){const b=this.mediaElement.getCurrentTime();if(b{}); this.timeout=new g.bI(()=>{this.zz("timeout")},1E4); g.n(this,this.timeout);this.MJ=isFinite(K)||this.ac.L().experiments.O9("html5_pseudogapless_shorts")&>(R.getVideoData());this.status={status:0,error:null}}GI(){return this.status.status===5}getStatus(){return this.status}X(){var b=this.G.getVideoData(),R=this.Y.getVideoData(),h;if((h=b.X)&&!(h=!b.G)){h=b.G;var K=!1;let v=!1;for(var I of Object.values(h.G))I.info.audio&&I.index.isLoaded()&&(K=!0),I.info.video&&I.index.isLoaded()&&(v=!0);h.G["0"]&&(v=!0);h=K&&v}if(h)if(this.G.di()){I=x1(this.policy, this.G,this.Y,this.VS);var {Z6:N,Fp:p,D6:l,M3:a}=this.K();this.nR||(h=this.Y.mH()*1E3,K=this.G.mH(),K=(l-N-K)*1E3,I&&I.msg==="in-the-past"&&(K=0),b=b.isAd(),this.Y.uy(h,K,b),this.nR=!0);I?(R=`cannot_apply${I.msg}`,delete I.msg,this.zz(R,I)):this.status.status===2?RbT(this):(b=this.G.Uz())&&b.J()&&(!lC(b)&&g.y5()?this.zz("mse_closed"):R.G&&R.G.V()&&b.Y&&!b.Y.fB()?this.zz("encr_upgrade"):(R=this.G.di(),R.isEnded()?this.zz("elem_ended"):p<0?this.zz("next_player_future"):(this.U=l,this.currentVideoDuration= l-N,this.V=VIH(b,N,l,!0),this.S=VIH(b,p,a,!1),b=this.Y.getVideoData().clientPlaybackNonce,this.G.YZ("gaplessPrep",{cpn:b}),this.G.Yf(this.V,!1,this.J===1&&ve(this.G.getVideoData()),this.ac.L().N("html5_shorts_gapless_keep_pending_requests")&>(this.G.getVideoData())),this.G.setMediaElement(onK(R,N,l,!this.G.getVideoData().isAd())),m1(this,2),RbT(this))))}else this.zz("no-elem")}D(b){var {O4:R}=Z7(this),h=b===R;R=h?this.V.G:this.V.Y;h=h?this.S.G:this.S.Y;if(R.isActive&&!h.isActive){var K=this.U,I= this.ac.L().N("html5_gapless_disable_on_discontinuous_buffer")&&this.J!==0&&R.RY().length>1;Rc(b.RY(),K-.01)&&!I&&(m1(this,4),R.isActive=!1,R.rr=R.rr||R.isActive,(this.J===1?this.G:this.Y).YZ("sbh",{}),h.isActive=!0,h.rr=h.rr||h.isActive,this.J!==0&&(this.G.getVideoData().kf=!0));b=this.S.Y;this.S.G.isActive&&b.isActive&&(m1(this,5),this.J!==0&&(b=this.Y.kG(),R=this.G.kG(),this.G.YZ("sbs",{citag:R?.itag,nitag:b?.itag}),this.Y.YZ("gitags",{pitag:R?.itag,citag:b?.itag}),this.Y?.NL()))}}T6(){this.pX()&& this.zz("player-reload-after-handoff")}zz(b,R={}){if(!this.HY()&&this.status.status!==6){var h=this.status.status>=4&&b!=="player-reload-after-handoff";this.status={status:Infinity,error:b};if(this.G&&this.Y){const K=this.Y.getVideoData().clientPlaybackNonce;this.G.n5(new g.hz("dai.transitionfailure",Object.assign(R,{cpn:K,transitionTimeMs:this.VS,msg:b})));this.G.z2(h)}this.Eh.reject(b);this.dispose()}}gp(){if(this.getStatus().status!==5)return"niss";if(x1(this.policy,this.G,this.Y,this.VS)!=null)return"pge"; const {O4:b,zp:R}=Z7(this),h=g.fg(this.ac.L().experiments,"html5_shorts_gapless_next_buffer_in_seconds");var K=this.U+h;this.ac.L().experiments.O9("html5_pseudogapless_shorts")&&(K=this.K().Fp+h);const I=Rc(R.RY(),K);K=Rc(b.RY(),K);return!(h>0)||I&&K?null:"neb"}G6(){return this.currentVideoDuration}pX(){return this.status.status>=4&&this.status.status<6}X5(){bEx(this);this.G.unsubscribe("newelementrequired",this.T6,this);if(this.V){const b=this.V.Y;this.V.G.QB.unsubscribe("updateend",this.D,this); b.QB.unsubscribe("updateend",this.D,this)}super.X5()}K(){var b=this.G.di();b=b.isView()?b.start:0;var R=this.G.getVideoData().isLivePlayback?Infinity:this.G.QK(!0);R=Math.min(this.VS/1E3,R)+b;var h=this.MJ?100:0;h=R-this.Y.mH()+h;return{Z6:b,Fp:h,D6:R,M3:Infinity}}C(b){b.Up(128)&&this.zz("player-error-event")}};var CTt=class extends g.N3{constructor(b){super();this.app=b;this.D=this.Y=this.G=null;this.G6=!1;this.U=this.J=this.X=this.V=null;this.S=FPe(this.app.L());this.K=()=>{g.Mq(()=>{KCx(this)})}}clearQueue(b=!1,R=!1){ur(this); this.V&&this.V.reject("Queue cleared");this.app.L().N("html5_gapless_fallback_on_qoe_restart_v2")||R&&this.Y&&this.Y.z2(!1);cR(this,b)}F9(){return!this.G}pX(){return this.X?.pX()||!1}GI(){return this.X?.GI()||!1}X5(){ur(this);cR(this);super.X5()}};var MxU=class extends g.NU{constructor(){super();this.fullscreen=0;this.V=this.X=this.pictureInPicture=this.G=this.Y=this.inline=!1;this.S=()=>{this.MC()}; xFT(this.S);this.J=this.getVisibilityState(this.R0(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.ut(),this.tC(),this.TK(),this.gR())}getVisibilityState(b,R,h,K,I,N,p,l){return b?4:I&&hL?7:PPx&&!(R7()||document.hasFocus&&document.hasFocus())||R7()?3:R?2:h?1:K?5:I&&!hL?7:N?8:p?9:l?10:0}J8(b){this.fullscreen!==b&&(this.fullscreen=b,this.MC())}setMinimized(b){this.Y!==b&&(this.Y=b,this.MC())}setInline(b){this.inline!==b&&(this.inline=b,this.MC())}F3(b){this.pictureInPicture!==b&&(this.pictureInPicture= b,this.MC())}setSqueezeback(b){this.X!==b&&(this.X=b,this.MC())}yL(b){this.V!==b&&(this.V=b,this.MC())}R0(){return this.G}XG(){return this.fullscreen!==0}isFullscreen(){return this.fullscreen!==0&&this.fullscreen!==4}P7(){return this.fullscreen}isMinimized(){return this.Y}isInline(){return this.inline}isBackground(){return R7()}ut(){return this.pictureInPicture}tC(){return!1}TK(){return this.X}gR(){return this.V}MC(){this.publish("visibilitychange");const b=this.getVisibilityState(this.R0(),this.isFullscreen(), this.isMinimized(),this.isInline(),this.ut(),this.tC(),this.TK(),this.gR());b!==this.J&&this.publish("visibilitystatechange");this.J=b}X5(){mFK(this.S);super.X5()}};g.Tv=class extends g.N3{constructor(b){super();this.QX=b;this.videoData=this.playerState=null}X5(){this.videoData=this.playerState=null;super.X5()}addCueRange(){}w_(){}Vh(){}uY(){return!1}Jg(){return!1}B2(){}VO(){}Wo(){return[]}Lh(){}SB(){}qy(){return 1}getAudioTrack(){return this.getVideoData().vD}B3(){return null}getAvailableAudioTracks(){return[]}xJ(){return[]}SD(){return[]}m7(){return this.QX.N("web_player_misc_bugfix_b")?this.getVideoData().clientPlaybackNonce:""}Vk(){return[]}JC(){}mH(){return 0}getCurrentTime(){return 0}Ng(){}kG(){}RT(){return{}}getDuration(){return 0}va(){return 0}hh(){return 0}O5(){return!1}PK(){return 0}U_(){return 0}xg(){return null}CZ(){return 0}b3(){return!1}QK(){return 0}di(){return null}Uz(){return null}f0(){return 0}SU(){return 0}async lR(){}getPlaybackQuality(){return"auto"}getPlaybackRate(){return 1}getPlayerState(){this.playerState|| (this.playerState=new g.tk);return this.playerState}getPlayerType(){return 0}getPlaylistSequenceForTime(){return null}fh(){return()=>{}}KC(){return""}getPreferredQuality(){return"unknown"}FO(){}getProximaLatencyPreference(){return 0}n3(){return vM}getStartTime(){return NaN}hW(){return null}getStoryboardFormat(){return null}getStreamTimeOffset(){return 0}GU(){return 0}Kz(){return 0}zW(){return{Pt:[], CM:[],currentTime:0,Kg:"",droppedVideoFrames:0,isGapless:!1,GI:!1,F9:!0,Ie:0,a5:0,Do:0,o5:0,qd:0,bZ:[],XA:[],z8:null,fD:"0",UK:null,h6:"",totalVideoFrames:0}}getUserAudio51Preference(){return 0}getUserPlaybackQualityPreference(){return""}getVideoData(){this.videoData||(this.videoData=new g.dh(this.QX),g.n(this,this.videoData));return this.videoData}rJ(){return null}Np(){return null}Vn(){}getVideoLoadedFraction(){return 0}rK(){}handleError(){}z2(){}M9(){}PM(){return!1}hasSupportedAudio51Tracks(){return!1}isAd(){return!1}Oj(){return!1}R0(){return!1}isAtLiveHead(){return!1}ez(){return!0}isGapless(){return!1}GI(){return!1}isHdr(){return!1}bW(){return!1}Qa(){return!1}PP(){return!1}isProximaLatencyEligible(){return!1}F9(){return!0}Y5(){return!1}C2(){return!1}kd(){}IZ(){}NL(){}kR(){}Jz(){}r0(){}qL(){}e0(){}pauseVideo(){}prefetchKeyPlay(){}async playVideo(){}Mc(){}Gl(){}YZ(){}aU(){}hd(){}uy(){}n5(){}Z$(){}oE(){}XZ(){}Iz(){}qX(){}Jb(){}removeCueRange(){}L6(){}lj(){return[]}HK(){}RB(){}WP(){}Vb(){}vC(){}K7(){}yZ(){}seekTo(){}sendAbandonmentPing(){}sendVideoStatsEngageEvent(){}Ad(){}setLoop(){}tA(){}setMediaElement(){}Yf(){}setPlaybackRate(){}ij(){}Jd(){}QA(){}setProximaLatencyPreference(){}Xb(){}MM(){}cK(){}hj(){}GP(){}setUserAudio51Preference(){}zl(){}yk(){return!1}gW(){}u3(){return!1}J1(){}S8(){}BB(){}stopVideo(){}subscribe(){return NaN}vZ(){}togglePictureInPicture(){}by(){return 0}u7(){}unsubscribe(){return!1}jG(){}Xz(){return!1}Oh(){}zP(){}Ji(){}}; g.W=g.Tv.prototype;g.W.uC=RK(47);g.W.TU=RK(37);g.W.oB=RK(30);g.W.IB=RK(24);g.W.Km=RK(18);g.W.n8=RK(12);var JW=class extends g.N3{constructor(b,R){super();this.data=[];this.X=b||NaN;this.Y=R||null;this.G=new g.bI(()=>{VE(this);Cn(this)}); g.n(this,this.G)}get(b){VE(this);const R=this.data.find(h=>h.key===b); return R?R.value:null}set(b,R,h){this.remove(b,!0);VE(this);b={key:b,value:R,expire:Infinity};h&&isFinite(h)&&(h*=1E3,b.expire=(0,g.c)()+h);for(this.data.push(b);this.data.length>this.X;)(h=this.data.shift())&&XS(this,h,!0);Cn(this)}remove(b,R=!1){const h=this.data.find(K=>K.key===b); h&&(XS(this,h,R),g.gx(this.data,K=>K.key===b),Cn(this))}removeAll(b=!1){if(b)for(const R of this.data)XS(this,R,b); this.data=[];Cn(this)}X5(){super.X5();this.data.forEach(b=>{XS(this,b,!0)}); this.data=[]}};g.kR=class extends g.N3{constructor(b,R){super();this.api=b;this.X={};this.S={};this.Qk=null;this.V={};this.G=null;this.U=new Map;this.K=null;R=new JW(R,h=>{h!==this.Qu({playerType:h.getPlayerType()})&&h.dispose()}); g.n(this,R);this.Y=this.G6=this.D=new g.Tv(b.L());this.J=R}X5(){for(const b of Object.values(this.X))b.dispose();v7x(this);this.D.dispose();super.X5()}u9(b){return b?b===1?this.G6:this.Y.getVideoData().enableServerStitchedDai&&b===2?this.Y.getVideoData().A2?this.X[2]||this.Y:this.Y:this.X[b]||null:this.Y}Qu(b){var R=b.cpn;const h=b.Uv;b=b.playerType;if(R)a:if(kO(this.api.L().Mj()))R=this.S[R]||null;else{for(const K of Object.values(this.X))if(K.m7()===R){R=K;break a}R=this.V[R]||null}else R=h&&this.Qk? this.Qk:b?this.u9(b):this.Y;return R}YO(){return this.G6}C7(b){this.G6=b}E9(){return this.Y}lN(b){const R=[b],h=[this.Y];this.Y=b;Mm(this,R,h)}};g.kR.prototype.y5=RK(45);g.kR.prototype.qh=RK(43);var rDp=class{constructor(){this.values=new Float64Array(176);this.G=new Float64Array(11);this.Y=new Float64Array(16)}a8(b,R){for(var h=0;h<10;h++){var K=this.G[h],I=K+(h===0?b:0),N=1*Math.pow(2,h);if(I<=N)break;K=Math.min(1,(I-N*.5)/K);for(I=0;I<16;I++)N=this.values[h*16+I]*K,this.values[(h+1)*16+I]+=N,this.G[h+1]+=N,this.values[h*16+I]-=N,this.G[h]-=N}K=h=0;I=8192;R>8192&&(h=Math.ceil(Math.log(R/8192)/Math.log(2)),K=8192*Math.pow(2,h-1),I=K*2);h+2>16?this.values[15]+=b:(R=(R-K)/(I-K),this.values[h]+= b*(1-R),this.values[h+1]+=b*R);this.G[0]+=b}JU(){const b=this.Y;for(var R=0;R<16;R++)b[R]=this.values[R];R=this.G[0];for(var h=1;h<11;h++){var K=this.G[h];if(K===0)break;var I=Math.min(1,(17-R)/K);for(var N=0;N<16;N++)b[N]+=this.values[h*16+N]*I;R+=K*I;if(I<1)break}h=I=0;for(K=0;K<16;K++){N=I+b[K]/R;h+=Math.max(0,Math.min(N,.98)-Math.max(I,.02))*(K>0?8192*Math.pow(2,K-1):0);if(N>.98)break;I=N}return h/.96}};var YR=class{constructor(b,R,h=.5,K=0){this.resolution=R;this.Y=0;this.S=!1;this.uO=!0;this.G=Math.round(b*this.resolution);this.values=Array(this.G);for(b=0;b=this.G&&(this.S=!0);for(;b--;)this.values[this.Y]=R,this.Y=(this.Y+1)%this.G;this.uO=!0}percentile(b){if(!this.S&&this.Y===0)return 0;this.uO&&(g.Ot(this.J, (R,h)=>this.values[R]-this.values[h]),this.uO=!1); return this.values[this.J[Math.round(b*((this.S?this.G:this.Y)-1))]]||0}JU(){return this.V?(this.percentile(this.X-this.V)+this.percentile(this.X)+this.percentile(this.X+this.V))/3:this.percentile(this.X)}};var Lqn=class extends g.N3{constructor(b,R,h){super();this.policy=b;this.Y=R;this.pR=h;this.nR=this.NJ=0;this.C=-1;this.T6=this.S=0;this.G6=!1;this.interruptions=[];this.X=[{stamp:0,net:0,max:0}];this.vY=0;this.SY=this.J=(0,g.c)();this.K=new YR(4,1,.6,.4);this.MJ=new YR(4,1,.6,.4);this.D=new YR(20,1,.5,.4);b.G6?this.V=new rDp:b.X?this.V=new IC(17):this.V=new YR(17,20,.5,.4);this.gp=new YR(5,1,.25);this.U=new YR(30,1,.5);b=g.NC("yt-player-bandwidth")||{};R=this.policy.G;b.byterate>0?(R=b.byterate, this.G6=!0):(h=(navigator.connection?.downlink||0)*64*1024,h>0&&(R=h,this.G6=!0));this.V.a8(this.policy.S,R);b.delay>0&&this.K.a8(1,Math.min(b.delay,2));b.stall>0&&this.D.a8(1,b.stall);b.init>0&&(this.SY=Math.min(b.init,this.SY));b.interruptions&&(this.X=this.X.concat(b.interruptions),this.X.length>16&&this.X.pop());this.C=(0,g.c)();this.policy.J>0&&(this.JX=new g.bI(this.Zr,this.policy.J,this),g.n(this,this.JX),this.JX.start())}Zr(){this.JX?.start();Ug(this)&&this.policy.D&&this.pR()}};var kXe=class{constructor(b){this.experiments=b;this.G=13E4;this.S=.5;this.Y=this.X=!1;this.G6=this.N("html5_use_histogram_for_bandwidth");this.V=g.fg(this.experiments,"html5_auxiliary_estimate_weight");this.U=g.fg(this.experiments,"html5_stall_factor")||1;this.J=g.fg(this.experiments,"html5_check_for_idle_network_interval_ms");this.D=this.experiments.O9("html5_trigger_loader_when_idle_network");this.K=this.experiments.O9("html5_sabr_fetch_on_idle_network_preloaded_players")}N(b){return this.experiments.O9(b)}};var r5T=class extends g.K7{constructor(b,R,h=0){super(R.rJ());this.videoData=b;this.duration=h;this.G=this.startTimeSecs=0;this.Y=this.X=!0}V(){}m7(){return this.videoData.clientPlaybackNonce}getVideoData(){return this.videoData}getCurrentTime(b){let R=super.getCurrentTime();this.G===0?b||(R-=this.startTimeSecs,super.getVideoData().N("html5_ssdai_log_missed_ad_impressions")&&this.Y&&this.X&&R>1&&this.YZ("sdai-admiss",{cpn:this.m7(),ct:R.toFixed(3),pfs:this.X}),this.Y=!1):b&&(R=this.G);return R}getDuration(){return this.duration}getPlayerType(){return 2}getStartTime(){return this.startTimeSecs}Fr(b){this.duration= b}};var $kT,wec;$kT=class{constructor(b){this.end=this.start=b}};g.eV=class{constructor(){this.G=new Map;this.X=new Map;this.Y=new Map}x0(b,R){if(R===1)return this.G.get(b);if(R===2)return this.X.get(b);if(R===3)return this.Y.get(b)}zt(b,R,h,K){h={Am:K,Pn:h};R?this.X.set(b,h):this.G.set(b,h)}clearAll(){this.G.clear();this.X.clear();this.Y.clear()}};g.eV.prototype.Xx=RK(65);wec=class{constructor(b){this.QX=b;this.Y=[];this.X=new Map;this.V=new Map;this.G=new Map;this.w2={y_:()=>this.X, H5v:()=>this.V, Mi:()=>this.Y}}clear(){this.Y=[]; this.X.clear();this.V.clear();this.G.clear()}Qu(b){return this.X.get(b)}};g.OX=class extends g.N3{constructor(b,R,h,K){super();this.api=b;this.QX=R;this.playback=h;this.app=K;this.G6=new g.eV;this.Y=new Map;this.Sn=new Map;this.nR=new Map;this.gp=null;this.Ty=NaN;this.fR=this.PH=null;this.CR=new g.bI(()=>{Xss(this,this.Ty,this.PH||void 0)}); this.events=new g.Ke(this);this.xZ=15E3;this.J=new g.bI(()=>{this.D=!0;this.playback.Z$(this.xZ);v1(this);this.playback.getVideoData().eK()&&this.BH({togab:this.S?.identifier});this.rK(!1)},this.xZ); this.D=!1;this.ao=new Map;this.Zr=[];this.S=null;this.ri=new Set;this.K=[];this.vY=[];this.Ys=[];this.jn=[];this.JX=new Set;this.T6=0;this.U=!1;this.m_=new Set;this.SK=new Set;this.hc=new Set;this.wp=new Set;this.pz=this.lY=0;this.De=this.EW=!1;this.jS=this.X="";this.C=null;this.logger=new g.kp("dai");this.gB="";this.NJ=!0;this.SY=new Map;this.Zl=new Map;this.w2={F7J:()=>this.Y, y_:()=>this.G.w2.y_(), pOJ:()=>this.X, XDJ:I=>{this.onCueRangeEnter(this.Y.get(I))}, vj9:I=>{this.onCueRangeExit(this.Y.get(I))}, WZO:(I,N)=>{this.Y.set(I,N)}, CP9:I=>{this.jS=I}, zT:()=>this.zT(), rhO:I=>this.G.G.get(I), zBR:()=>this.C, Mi:()=>this.G.w2.Mi(), Al:(I,N)=>{this.Al(I,N)}, jYr:()=>this.Sn, bG:I=>{this.bG(I)}}; this.playback.getPlayerType();this.G=new wec(this.QX);this.playback.GP(this);this.pR=this.QX.zy();g.n(this,this.CR);g.n(this,this.events);g.n(this,this.J);this.vD=this.QX.N("html5_use_new_ssdai_transition_detector");this.KR=this.QX.Mj().G.WY(fL2);b=this.playback.getVideoData();b.eK()&&b.latencyClass==="NORMAL"&&(this.KR=this.QX.Mj().G.WY(rm2));this.FM=this.QX.Mj().G.WY(MA2);this.wi=this.playback.getVideoData().lJ;this.vD?this.playback.subscribe("playbackstarted",this.Al,this):(this.events.j(this.api, g.fM("serverstitchedcuerange"),this.onCueRangeEnter),this.events.j(this.api,g.yf("serverstitchedcuerange"),this.onCueRangeExit));this.HR=this.QX.N("html5_ssdai_report_stitch_error_after_skip_ad");rb(this.app.Nz(),this.playback,!1)}K0(b,R,h,K,I,N,p,l){var a=VRH(this,I,I+K);this.D&&this.BH({adaftto:1});R||this.BH({missadcon:1,enter:I,len:K,aid:p});this.V&&!this.V.FW&&(this.V.FW=p);this.De&&this.BH({adfbk:1,enter:I,len:K,aid:p});var v=this.playback;I>N&&B1(this,{reason:"enterTime_greater_than_return", yp:I,uj:N});var B=v.f0()*1E3;Iv&&B1(this,{reason:"parent_return_greater_than_content_duration",uj:N,rUv:v});(v=PfB(this.G,I))&&v.uj>I&&B1(this,{reason:"overlapping_playbacks",lPH:b.video_id||"",yp:I,uj:N,MXe:v.cpn,gjr:v.videoData?.videoId||"",yhX:v.durationMs,hZp:v.yp,uHO:v.uj});if(a&&v)for(B=0;BH===p)&&(this.BH({rejectAdBreakAttl:p},!0),this.jn.push(p)); $G(this);return}b.cpn||(b.cpn=g.yM(16));a=b.cpn;b=new g.dh(this.QX,b);b.bJ=!0;b.BD=b.clientPlaybackNonce;v=p?p:v?v.E7:a;R={playerType:h,durationMs:K,yp:I,uj:N,cpn:a,videoData:b,errorCount:0,ssdaiAdsConfig:R,E7:v};h=b.getPlayerResponse()?.playbackTracking;this.FM&&(R.serializedQoeContextData=h?.serializedQoeContextData);this.KR&&(h=tX(h?.serializedPlaybackPingContextData??""),R.fm=g.gn({clientPlaybackNonce:a,serializedPlaybackPingContextData:h},e9w));xRq(this.G,R);(l=MRw(this,l))&&this.wi&&this.Sn.set(v, l);LC3(this,b,K);this.BH({attlDone:N-I,acpn:a,et:I,prt:N});this.J.isActive()&&(this.D=!1,this.J.stop(),v1(this),this.rK(!0));p&&this.vD&&(this.SY.has(p)?this.SY.get(p).add(a):this.SY.set(p,new Set([a])),this.Zl.set(a,p));return b}Wo(){const b=this.playback.Wo("serverstitchedcuerange",36E5);for(const R of b)this.Y.delete(R.getId())}onCueRangeEnter(b){const R=b.getId();this.BH({oncueEnter:1,cpn:R,start:b.start,end:b.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.mH()||0).toFixed(3)}); var h=this.G.Qu(R);this.BH({enterAdCueRange:1});var K=this.jS||this.zT().cpn;const I=this.G.Qu(K)??this.zT();h&&(K=this.playback.getCurrentTime(),h.startTimeSecs=b.start/1E3,h={qK:I,aF:h,Dc:K},qG(this,R,b.start/1E3,K),fs(this,h));this.NJ=!1}Al(b,R,h){if(b&&R&&b!==this.app.Nz().G?.m7())if((this.app.Nz().V[b]||null)===null)this.BH({nocpn:b,active:this.app.Nz().G?.m7()});else{this.NJ=h??!1;h=this.app.Nz().G?.m7()||this.playback.m7();var K=this.G.Qu(h)??this.zT(),I=this.G.Qu(b)??this.zT();I.startTimeSecs= R;I.playerType===2&&(I.iC=I.iC!=null?Math.min(I.iC,R):R);var N=this.playback.getCurrentTime();qG(this,h,R,N);fs(this,{qK:K,aF:I,Dc:N});if(this.playback.getVideoData().eK()&&b===this.playback.m7())if(R=this.Zl.get(h)){for(const p of this.SY.get(R)??[]){b=this.app.Nz();if(h=b.V[p])b.G===h&&(b.G=null),b.K===h&&(b.K=null),p===b.U.get("")?.m7()&&b.U.delete(""),delete b.V[p],delete b.S[p];this.nR.delete(p);this.Zl.delete(p)}this.SY.delete(R)}else this.BH({no_abid:b})}}D9(b,R){if(b===this.playback.m7())rb(this.app.Nz(), this.playback,!1);else{const h=this.nR.get(b);h?(ebK(h,R,!this.NJ),rb(this.app.Nz(),h,!0)):this.BH({nop_s:b})}}onCueRangeExit(b){var R=this.playback.getCurrentTime()*1E3,h=b.getId();this.BH({oncueExit:1,cpn:h,start:b.start,end:b.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.mH()||0).toFixed(3)});for(var K of this.Y.values())if(K.getId()!==h&&R>=K.start&&R<=K.end)return;if(R=this.G.Qu(h))h=this.playback.getPlayerState(),this.playback.getVideoData().eK()&&h.G(2)||(h=this.playback.getCurrentTime(), K=this.zT(),K.startTimeSecs=b.end/1E3,R={qK:R,aF:K,Dc:h},qG(this,this.playback.m7(),b.end/1E3,h),fs(this,R))}zT(){return{cpn:this.playback.m7(),durationMs:0,yp:0,playerType:1,uj:0,videoData:this.playback.getVideoData(),errorCount:0,E7:""}}RH(){if(this.De)return!1;let b=void 0;this.jS&&(b=this.G.Qu(this.jS));return this.playback.getVideoData().eK()?!!b&&!b.lZ:!!b}seekTo(b=0,R={},h=!1,K=null){d_(this,this.jS);if(this.playback.getVideoData().eK()&&b<=this.T6)this.playback.pauseVideo(),this.T6=0,ROx(this, b);else if(this.NJ=this.U=!0,h)Xss(this,b,R);else{h=this.app.E9();const I=h===this.gp?this.fR:null;ab(this,!1);this.Ty=b;this.PH=R;K!=null&&this.CR.start(K);h&&(this.fR=I||h.getPlayerState(),h.BB(R),this.gp=h)}}X5(){ab(this,!1);t6(this);sxK(this);super.X5()}kH(b,R,h){if(h&&R){var K=this.ao.get(b);if(K){K.locations||(K.locations=new Map);var I=Number(R.split(";")[0]);h=new g.Mj(h);this.BH({hdlredir:1,itag:R,seg:b,hostport:$p(10,h)});K.locations.set(I,h)}}}Fu(b){a:{if(!this.De){var R=jF(this,b);if(!this.playback.getVideoData().eK()|| !R?.lZ)break a}R=void 0}var h=R;if(!h)return this.BH({gvprp:"ncp",mt:b}),null;R=h.E7;var K=uFB(this,h.ssdaiAdsConfig);h=h.Vj&&h.Tq&&b>=h.Tq?h.Vj:void 0;K={oG:R?ps(this,R):[],adsConfig:K,VL:h};this.BH({gvprpro:"v",mt:b.toFixed(3),acpns:K.oG?.join("_")||"none",abid:R});return K}e9(b,R,h,K,I,N){const p=Number(h.split(";")[0]);var l=K===3;b=c5e(this,b,R,K,h,N);this.BH({gdu:1,seg:R,itag:p,pb:`${!!b}`});if(!b)return Ib(this,R,l),null;b.locations||(b.locations=new Map);if(!b.locations.has(p)){N=b.videoData.getPlayerResponse()?.streamingData?.adaptiveFormats; if(!N)return this.BH({gdu:"noadpfmts",seg:R,itag:p}),Ib(this,R,l),null;var a=N.find(B=>B.itag===p); if(!a||!a.url){b=b.videoData.videoId;K=[];for(var v of N)K.push(v.itag);this.BH({gdu:"nofmt",seg:R,vid:b,itag:p,fullitag:h,itags:K.join(",")});Ib(this,R,l);return null}b.locations.set(p,new g.Mj(a.url,!0))}v=b.locations.get(p);if(!v)return this.BH({gdu:"nourl",seg:R,itag:p}),Ib(this,R,l),null;v=new N8(v);this.EW&&(v.get("dvc")?this.BH({dvc:v.get("dvc")||""}):v.set("dvc","webm"));(K=this.x0(R-1,K,I)?.Am)&&v.set("daistate",K);b.Vj&&R>=b.Vj&&v.set("skipsq",`${b.Vj}`);(K=this.playback.getVideoData().clientPlaybackNonce)&& v.set("cpn",K);K=[];b.E7&&(K=ps(this,b.E7),K.length>0&&v.set("acpns",K.join(",")));l||this.ao.set(R,b);l=null;l=v.get("aids");I=v.xj();I?.length>2048&&this.BH({urltoolong:1,sq:R,itag:p,len:I.length});this.pR&&(I&&(N=b.cpn,v=b.E7,IE2(this,N,v),v&&!this.hc.has(v)&&(N=NG3(this,N,v),a=pwK(this,v),this.BH({iofa:N}),this.BH({noawnzd:a-N}),this.BH({acpns:K.join("."),aids:l?.replace(/,/g,".")}),this.hc.add(v))),this.BH({gdu:"v",seg:R,itag:h,ast:b.yp.toFixed(3),alen:b.durationMs.toFixed(3),acpn:b.cpn,avid:b.videoData.videoId})); return I}rQ(b,R,h=!1){const K=lE(this,b,R);if(K){this.HR&&(this.MJ=K);var I=void 0,N=K.E7;if(N){this.BH({skipadonsq:R,sts:h,abid:N,acpn:K.cpn,avid:K.videoData.videoId});h=this.G.G.get(N);if(!h)return;for(const p of h)p.Vj=R,p.Tq=b,p.yp>K.yp&&(I=p)}d_(this,this.jS);this.X=K.cpn;lET(this);this.api.N("html5_ssdai_enable_media_end_cue_range")&&this.playback.u7(this.X);b=this.playback.getCurrentTime();FCs(this,K,I,b,b,!1,!0);b1T(this)}}N1(){var b=this.G;for(const R of b.Y)R.Vj=NaN,R.Tq=NaN;lET(this);this.BH({rsac:"resetSkipAd", sac:this.X});this.wp.delete(this.X);this.X="";this.HR&&(this.MJ=void 0)}x0(b,R,h){return this.G6.x0(b,R,h)}rG(b){const R=b.trackType;for(const a of b.metadata??[])for(const v of a.ke??[]){var h=v.MW,K=v.Gm;b=v.cpn;var I=v.loggingMetadata,N=v.Ub,p=v.Is;if(!b||b===this.playback.getVideoData().clientPlaybackNonce)continue;var l=this.G.Qu(b);if(R===2){if(h&&h.startTicks!==void 0&&h.YR!==void 0&&h.timescale!==void 0&&K&&K.startTicks!==void 0&&K.YR!==void 0&&K.timescale!==void 0&&N!==void 0){const B=h.startTicks/ h.timescale;h=K.startTicks/K.timescale;K=K.YR/K.timescale;l&&(l.iC=l.iC!==void 0?Math.min(l.iC,B):B,I&&(l.Da=I));I=(B-h)*1E3;l=(h+K)*1E3;N=I+(p?l:Math.max(l+1E3,N));(p=this.Y.get(b))?(p.start=I,p.end=N,this.playback.r0()):(p=wsD(I,N,b),this.Y.set(b,p),this.playback.addCueRange(p))}this.Wo()}else R===1&&l&&I&&(l.HC=I)}}zt(b,R,h,K,I,N,p,l){h.length>0&&this.BH({onssinfo:1,sq:b,start:R.toFixed(3),cpns:h.join(","),ds:K.join(","),isVideo:N?1:0});if(this.HR&&this.MJ&&this.MJ.Vj&&h.length>0)for(var a of h)if(a=== this.MJ.cpn){this.gB!==a&&(this.BH({skiperror:1,sq:b,acpn:this.MJ.cpn,skipsq:this.MJ.Vj||0}),this.gB=a);break}l&&this.G6.zt(b,N,p,l);if(N){if(h.length&&K.length)for(this.wp.has(h[0])&&this.BH({skipfail:1,sq:b,acpn:h[0]}),b=R+this.GU(),N=0;Nthis.V.J_+1){this.BH({cueStChg:b.identifier,oldSt:this.V.J_.toFixed(3),newSt:b.startSecs.toFixed(3),abid:this.V.FW});if(this.V.FW){const h=b.startSecs-this.V.J_,K=this.G.G.get(this.V.FW);if(K)for(const I of K)I.yp>=0&&(I.yp+=h*1E3,this.BH({newApEt:I.yp,newApPrt:I.uj,acpn:I.cpn}))}this.V.J_=b.startSecs}R?this.JX.add(b.identifier):this.JX.has(b.identifier)&&this.JX.delete(b.identifier);return R}Je(b){let R="";b?b.event==="unknown"?R="unknown":this.JX.has(b.identifier)? this.V&&this.V.rf===b.identifier?this.V.rf===b.identifier?R=dx(this.vY,h=>h.identifier===b.identifier)?"shortad":"pending":dx(this.vY,h=>h.identifier===b.identifier)||(R="noAdsAdded"):R="wrongAdBreakInfo":R="unscheduled":R="noCuepoint"; return R}o1(b){return this.De?!1:!!jF(this,b)}Yc(b){if(this.QX.N("html5_lifa_ignore_multiple_skips")&&this.C)return this.BH({ufs_ad:this.X,ufs_cur:this.jS,ufs_cont:this.zT().cpn}),!1;d_(this,this.jS);this.playback.pauseVideo();const R=this.playback.getCurrentTime(),h=this.G.Qu(this.jS);if(!h)return this.BH({skipFail:R}),!1;this.X=this.jS;this.U=!1;this.api.N("html5_ssdai_enable_media_end_cue_range")&&this.playback.u7(this.X);this.bG(h.E7);vj3(this,h,this.zT(),b);ROx(this,R,{seekSource:89,ZK:"lifa_skip"}); this.C||(this.C=this.events.j(this.api,"progresssync",()=>{Bs(this.api.vI(),(0,g.c)(),"ad_to_video");this.C&&(this.events.Ac(this.C),this.C=null)})); return!0}bG(b){if(this.playback.getVideoData().eK()){var R=this.G.G.get(b);if(R){for(var h of R)R=this.Y.get(h.cpn),this.Y.delete(h.cpn),R&&this.playback.removeCueRange(R),ZEx(this.G,h);this.ao.clear();h=this.G;R=h.G.get(b)??[];for(const K of R)ZEx(h,K);h.G.delete(b);(b=this.Sn.get(b))&&this.wi&&this.playback.Vb(b)}}}BH(b,R=!1){(R||this.pR)&&this.playback.YZ("sdai",b)}};g.OX.prototype.Xx=RK(64);var Fqn=class extends g.N3{constructor(b,R,h,K){super();this.api=b;this.QX=R;this.G=h;this.app=K;this.S=new Map;this.Y=[];this.X=this.D=null;this.G6=NaN;this.J=this.V=this.U=null;this.K=new g.bI(()=>{H1K(this,this.G6,this.U||void 0)}); this.C=[];this.nR=new g.bI(()=>{var I=this.C.pop();if(I){const N=I.BD,p=I.playerVars;I=I.playerType;p&&(p.prefer_gapless=!0,this.api.preloadVideoByPlayerVars(p,I,NaN,"",N),this.C.length&&this.nR.qa(4500))}}); this.events=new g.Ke(this);this.w2={b5R:()=>this.Y}; this.G.getPlayerType();g.n(this,this.K);g.n(this,this.nR);g.n(this,this.events);this.events.j(this.api,g.fM("childplayback"),this.onCueRangeEnter);this.events.j(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.j(this.api,"presentingplayerstatechange",this.dR)}onCueRangeEnter(b){if(this.G===this.app.E9()){var R=this.S.get(b);R?t0q(this,R.target,R.VS,b):this.n5("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:b.toString()})}else if(R=this.Y.find(K=>K.XO.qF===b)){var h= R.XO; const K=h.target;h=h.VS;K?t0q(this,K,h,b):jxq(this,R.uj,h,b)}}onQueuedVideoLoaded(){const b=this.D;UG(this);b&&(zx(this,b)||this.n5("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:this.app.E9()?.getVideoData().clientPlaybackNonce,ccpn:`${b.playerVars.cpn}`}),this.app.E9().addCueRange(b.XO.qF))}seekTo(b=0,R={},h=!1,K=null){if(h)H1K(this,b,R);else{h=this.app.E9()||null;const I=h===this.V?this.J:null;A6(this,!1);this.G6=b;this.U=R;K!=null&&this.K.start(K);h&&(this.J=I||h.getPlayerState(), h.BB(),this.V=h)}}dR(b){b.Up(128)&&i1D(this)}isManifestless(){return zT(this.G.getVideoData())}X5(){A6(this,!1);SF(this);super.X5()}n5(b,R){this.G.n5(new g.hz(b,R))}},fEq=0;var UkK="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_FOR_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_APPS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_MUSIC_INTEGRATIONS WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");var oBx=class extends g.N3{constructor(){super();this.G=new JW(5,null);g.n(this,this.G);this.Y=new JW(15,null);g.n(this,this.Y)}wP(b){if(b)return this.Y.get(b)}X5(){this.G.removeAll();this.Y.removeAll();super.X5()}};g.Dsz=Qg(()=>{const b=window.AudioContext||window.webkitAudioContext;try{return new b}catch(R){return R.name}});var brn=class extends g.w{constructor(b){super({B:"div",F5:["html5-video-player"],O:{tabindex:b.L().disableOrganicUi?"":"-1",id:b.webPlayerContextConfig.rootElementId},W:[{B:"div",Z:g.hP.VIDEO_CONTAINER,O:{"data-layer":"0"}}]});this.app=b;this.v2=this.yX(g.hP.VIDEO_CONTAINER);this.EN=new g.Xb(0,0,0,0);this.tO=null;this.Vd=new g.Xb(0,0,0,0);this.aD=this.Uc=this.Wh=NaN;this.Si=this.yd=this.CQ=this.gL=!1;this.SW=NaN;this.Ve=!1;this.X6=null;this.eF=new g.bI(()=>{this.app.L().N("web_enable_smart_zoom")&& this.app.qJ.getInternalApi().isAutocropEnabled()||this.resize()},100); this.ux=()=>{this.element.focus({preventScroll:!0})}; this.Ls=()=>{this.app.qJ.publish("playerUnderlayVisibilityChange","visible");this.tO.classList.remove(g.hP.VIDEO_CONTAINER_TRANSITIONING);this.tO.removeEventListener(Tx,this.Ls);this.tO.removeEventListener("transitioncancel",this.Ls)}; this.rX=this.Mt=!1;const R=this.element.addEventListener,h=this.element.removeEventListener;this.addEventListener=(I,N,p)=>{R.apply(this.element,[I,N,p])}; this.removeEventListener=(I,N,p)=>{h.apply(this.element,[I,N,p])}; const K=b.L();K.transparentBackground&&this.Lb("ytp-transparent");K.controlsType==="0"&&this.Lb("ytp-hide-controls");g.Nv(this.element,"ytp-exp-bottom-control-flexbox");g.Nv(this.element,"ytp-modern-caption");K.N("enable_new_paid_product_placement")&&!g.BG(K)&&g.Nv(this.element,"ytp-exp-ppp-update");g.Nv(this.element,"ytp-livebadge-color");gjx(this.element,Xwx(b));this.cC=!1;this.fg=new g.ru(NaN,NaN);SY3(this);this.j(b.qJ,"onMutedAutoplayChange",this.onMutedAutoplayChange);g.n(this,this.eF)}Lb(...b){g.p5(this.element, b)}RB(){this.tO&&(this.tO.removeEventListener("focus",this.ux),g.GF(this.tO),this.tO=null)}xX(){this.HY();const b=this.app.L();b.nX||this.Lb("tag-pool-enabled");b.J&&this.Lb(g.hP.HOUSE_BRAND);b.playerStyle==="gvn"&&(this.Lb("ytp-gvn"),this.element.style.backgroundColor="transparent");b.Ty&&(this.SW=g.Iq("yt-dom-content-change",this.resize,this));this.j(window,"orientationchange",this.resize,this);this.j(window,"resize",this.resize,this)}RE(b){g.rv(this.app.L());this.Si=!b;ns(this)}resize(){if(this.tO){var b= this.P$();if(!b.isEmpty()){this.app.qJ.isFullscreen()&&fX()&&this.eF.start();var R=!g.LP(b,this.EN.getSize()),h=TGP(this);R&&(this.EN.width=b.width,this.EN.height=b.height);b=this.app.L();(h||R||this.rX||b.Ty)&&this.app.qJ.publish("resize",this.getPlayerSize())}}}kI(b,R){this.updateVideoData(R)}updateVideoData(b){if(this.tO){var R=this.app.L();Nr&&(this.tO.setAttribute("x-webkit-airplay","allow"),b.title?this.tO.setAttribute("title",b.title):this.tO.removeAttribute("title"));this.tO.setAttribute("controlslist", "nodownload");R.xQ&&b.videoId?this.tO.poster=b.hU("default.jpg"):Wu()&&(OR??0)>=10&&(this.tO.poster="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}R=g.Ts(b,"yt:bgcolor");this.v2.style.backgroundColor=R?R:"";this.Wh=YE(g.Ts(b,"yt:stretch"));this.Uc=YE(g.Ts(b,"yt:crop"),!0);g.k(this.element,"ytp-dni",b.C0);this.resize()}setGlobalCrop(b){this.aD=YE(b,!0);this.resize()}setCenterCrop(b){this.gL=b;this.resize()}J8(){}getPlayerSize(){var b=this.app.L();const R=this.app.qJ.isFullscreen(); var h=b.externalFullscreen&&g.Fo(b);if(R&&fX()&&!h)return new g.ru(window.outerWidth,window.outerHeight);h=!isNaN(this.fg.width)&&!isNaN(this.fg.height);const K=this.app.L().N("kevlar_player_enable_squeezeback_fullscreen_sizing")||this.app.L().N("web_watch_enable_fs_squeezeback_panels");if(R&&!h&&K)return new g.ru(this.element.clientWidth,this.element.clientHeight);if(R||b.oy){let I;window.matchMedia&&(b="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)",this.X6&&this.X6.media=== b||(this.X6=window.matchMedia(b)),I=this.X6&&this.X6.matches);if(I)return new g.ru(window.innerWidth,window.innerHeight)}else if(h)return this.fg.clone();return new g.ru(this.element.clientWidth,this.element.clientHeight)}P$(){var b=this.app.L().N("enable_desktop_player_underlay");const R=this.getPlayerSize(),h=g.fg(this.app.L().experiments,"player_underlay_min_player_width");return b&&this.CQ&&R.width>h?(b=g.fg(this.app.L().experiments,"player_underlay_video_width_fraction"),new g.ru(Math.min(R.height* this.getVideoAspectRatio(),R.width*b),Math.min(R.height,R.width*b/this.getVideoAspectRatio()))):R}getVideoAspectRatio(){return isNaN(this.Wh)?Eje(this):this.Wh}getVideoContentRect(b){const R=this.P$();b=njx(this,R,this.getVideoAspectRatio(),b);return new g.Xb((R.width-b.width)/2,(R.height-b.height)/2,b.width,b.height)}zU(b){this.CQ=b;this.resize()}GK(){return this.yd}onMutedAutoplayChange(){ns(this)}setInternalSize(b){g.LP(this.fg,b)||(this.fg=b,this.resize())}X5(){this.SW&&g.Nt(this.SW);this.RB(); super.X5()}};var Rn3=class{constructor(){this.csn=g.Ui();this.clientPlaybackNonce=null;this.elements=new Set;this.X=new Set;this.G=new Set;this.Y=new Set}click(b,R){this.elements.has(b);this.G.has(b);const h=g.Ui();h&&b.visualElement&&g.sn(h,b.visualElement,R)}createClientVe(b,R,h,K=!1){this.elements.has(b);this.elements.add(b);h=A2(h);b.visualElement=h;const I=g.Ui(),N=g.zn();I&&N&&(g.cg("combine_ve_grafts")?PJ(xI(),h,N):g.dK(g.Mx)(void 0,I,N,h));R.addOnDisposeCallback(()=>{this.elements.has(b)&&this.destroyVe(b)}); K&&this.Y.add(b)}createServerVe(b,R,h=!1){this.elements.has(b);this.elements.add(b);R.addOnDisposeCallback(()=>{this.destroyVe(b)}); h&&this.Y.add(b)}destroyVe(b){this.elements.has(b);this.elements.delete(b);this.X.delete(b);this.G.delete(b);this.Y.delete(b)}nR(b,R){this.clientPlaybackNonce!==R&&(this.clientPlaybackNonce=R,mF(xI(),b),JA3(this))}setTrackingParams(b,R){this.elements.has(b);R&&(b.visualElement=g.jU(R))}sW(b,R,h){this.elements.has(b);R?this.G.add(b):this.G.delete(b);const K=g.Ui(),I=b.visualElement;this.Y.has(b)?K&&I&&(R?g.hh(K,[I]):g.KW(K,[I])):R&&!this.X.has(b)&&(K&&I&&g.R1(K,I,void 0,h),this.X.add(b))}hasVe(b){return this.elements.has(b)}};var hnc=class extends g.N3{constructor(b,R,h,K,I,N,p){super();this.C=b;this.YZ=R;this.U=h;this.J=K;this.K=I;this.intervalMs=N;this.S=p;this.nR=jl;this.D=0;this.V=this.X=!1;this.G6=Math.floor(Math.random()*256)}sendRequest(){var b=[0,1,2,3];this.S&&(b.push(4),this.V&&b.push(5));switch(b[Math.floor(Math.random()*b.length)]){case 0:eOK(this,this.J);break;case 1:this.Br&&(b={[0]:1,[1]:performance.now()},this.request(b));break;case 2:b=this.K;this.Br&&(b={[0]:2,[1]:performance.now(),[3]:b},this.request(b)); break;case 3:this.Br&&(b={[0]:3,[1]:performance.now()},this.request(b));break;case 4:this.S&&(b={[0]:4,[1]:performance.now(),[4]:this.S},this.request(b));break;case 5:var R=this.J;b=this.G6;this.Br&&(R=YYK(this,R),b={[0]:5,[1]:performance.now(),[2]:R,[5]:b},this.request(b))}}request(b){this.Br&&this.Br.postMessage(b)}receive(b){if(!(this.D>=5E3)){var R=b.timeStamp,h=performance.now();b=b.data;b[0]===5&&(this.V=!0);var K=b[1];this.YZ("worker",{type:b[0],t1:(b[2]-performance.timeOrigin-K).toFixed(3), t2:(b[3]-performance.timeOrigin-K).toFixed(3),t3:(R-K).toFixed(3),t4:(h-K).toFixed(3)});this.D++}}X5(){this.Y!==void 0&&(clearInterval(this.Y),this.Y=void 0);this.Br?.terminate();this.G=this.Br=void 0;this.V=!1;this.YZ("workerDtor",{});super.X5()}};g.xR=class extends g.N3{constructor(b,R,h,K){super();this.logger=new g.kp("App");this.JI=this.us=!1;this.Sk={};this.tI=[];this.I5=!1;this.kB=null;this.intentionalPlayback=!1;this.f2=!0;this.We=!1;this.PV=this.rj=this.Db=null;this.dj=!0;this.mediaElement=this.ll=null;this.P6=NaN;this.j$=!1;this.Dq=this.xf=this.bj=this.screenLayer=this.playlist=null;this.K$=[];this.jd=0;this.dB=new nfT;this.AR=[];this.w2={Nz:()=>this.DK, Qi:()=>this.bj}; if(!h)throw Error("b/179532961");this.J5=R?.args||{};this.webPlayerContextConfig=h;R=this.J5;this.QX=new yZP(R,h,h.canaryState,K);g.n(this,this.QX);qfq(this.QX);K=E7K(this.QX);this.QX.zy()&&cq(K,p=>{this.gX("h5vcc",p)}); this.QX.experiments.O9("jspb_serialize_with_worker")&&siK();this.QX.experiments.O9("gzip_gel_with_worker")&&Xv2();this.QX.Y&&rL3();this.N("html5_onesie")&&(this.zK=new cvP(this.QX),g.n(this,this.zK));this.g2=new Lqn(YfD(g.hB(this.QX),this.QX.Zk,this.QX.experiments),new SpH(this.QX.experiments),()=>void this.kR()); g.n(this,this.g2);this.iI=E7(op(this.QX)&&!0,R.enablesizebutton);this.gq=E7(!1,R.player_wide);this.visibility=new MxU;g.n(this,this.visibility);this.N("web_log_theater_mode_visibility")&&this.yL(E7(!1,R.player_wide));this.us=E7(!1,R.external_list);this.events=new g.Ke(this);g.n(this,this.events);this.N("start_client_gcf")&&(GR(nQ(),{YG:dI,gr:BHP()}),this.Tm=nQ().resolve(dI),tZ2(this.Tm));this.Id=new MY;g.n(this,this.Id);this.oR=new Rn3;K=new GBT;this.qJ=new g.Le(this,K);g.n(this,this.qJ);this.template= new brn(this);g.n(this,this.template);this.appState=1;this.JW=P3x(this);g.n(this,K);this.Ld={internalvideodatachange:this.Tt,playbackready:this.Y9,playbackstarted:this.Tb,statechange:this.Ij};this.GH=new $ow(this.qJ);this.cD=C3K(this);K=this.QX.J;!1!==K&&this.gX("badps",{hbp:K,hostname:window.location.hostname,ps:this.QX.playerStyle});this.vH=new $mx(this.QX,this.cD);this.qJ.publish("csiinitialized");(this.webPlayerContextConfig.wasmModuleUrl||Y7(this.cD))&&M0x(this);K=10;g.hB(this.QX)&&(K=3);a4(this.QX)&& (K=g.fg(this.QX.experiments,"tvhtml5_unplugged_preload_cache_size"));this.DK=new g.kR(this.qJ,K);K=rAT(this);this.DK.C7(K);wwq(this);this.kP={airplayactivechange:this.x9,airplayavailabilitychange:this.zb,beginseeking:this.sQ,sabrCaptionsDataLoaded:this.UQ,endseeking:this.K9,internalAbandon:this.dD,internalaudioformatchange:this.p9,internalvideodatachange:this.P4,internalvideoformatchange:this.Gd,liveviewshift:this.EQ,playbackstalledatstart:this.Qt,progresssync:this.f9,onAbnormalityDetected:this.qo, onSnackbarMessage:this.k9,onLoadProgress:this.mP,SEEK_COMPLETE:this.C9,SEEK_TO:this.Rj,onVideoProgress:this.Ye,onLoadedMetadata:this.eA,onAutoplayBlocked:this.cJ,onPlaybackPauseAtStart:this.wD,playbackready:this.OQ,statechange:this.J$,newelementrequired:this.FA,heartbeatparams:this.jA,videoelementevent:this.nH,drmoutputrestricted:this.ih,signatureexpired:this.tT,nonfatalerror:this.L9,reloadplayer:this.WJ};this.fP=new g.Ke(this);g.n(this,this.fP);this.W_=new oBx;g.n(this,this.W_);this.KL=this.zY=-1; this.iQ=new g.bI(this.template.resize,16,this.template);g.n(this,this.iQ);this.xO=new Fqn(this.qJ,this.QX,this.YO(),this);this.FI=new CTt(this);g.n(this,this.FI);this.jy=new Vx3(this);g.n(this,this.jy);GeB(this.QX.G.c);this.events.j(this.qJ,g.fM("appapi"),this.n9);this.events.j(this.qJ,g.yf("appapi"),this.Gb);this.events.j(this.qJ,g.fM("appprogressboundary"),this.Td);this.events.j(this.qJ,g.yf("applooprange"),this.OZ);this.events.j(this.qJ,"presentingplayerstatechange",this.dR);this.events.j(this.qJ, "resize",this.Vt);this.template.AX(sU(document,b));this.events.j(this.qJ,"offlineslatestatechange",this.HJ);this.events.j(this.qJ,"sabrCaptionsTrackChanged",this.ZA);this.events.j(this.qJ,"sabrCaptionsBufferedRangesUpdated",this.DA);this.cD.A.L().Jq&&TX(this.cD,"offline");this.QX.Zr&&g.jR("ux",g.Xez);b=g.fg(this.QX.experiments,"html5_defer_fetch_att_ms");this.wv=new g.bI(this.Sf,b,this);g.n(this,this.wv);this.PD().Jh()&&(g.lQ()&&this.PD().Ha.push("mdx"),$P(this));this.vH.tick("fs");oj3(this);this.QX.Zr&& TX(this.cD,"ux",!0);g.Fo(this.cD.A.L())&&TX(this.cD,"embed");this.N("web_player_sentinel_is_uniplayer")||g.kJ(new g.A$("Player experiment flags missing","web_player_sentinel_is_uniplayer"));b=this.N("web_player_sentinel_yt_experiments_sync");K=g.cg("web_player_sentinel_yt_experiments_sync");b!==K&&g.kJ(new g.A$("b/195699950",{yt:b,player:K}));this.xq=Dke(this);if(b=g.fg(this.QX.experiments,"html5_block_pip_safari_delay"))this.fL=new g.bI(this.Ii,b,this),g.n(this,this.fL);h=KD(h?.trustedEchoWorkerUrl?? null);b=this.QX.Mj().G.WY(K4D);K=this.QX.Mj().G.WY(sCP);R=this.QX.Mj().G.WY(hVK);const I=this.QX.Mj().G.WY(RVq),N=this.webPlayerContextConfig.echoWorkerWasmModuleUrl??"";h&&b>0&&K>0&&R>0&&I>0&&(this.Kf=new hnc(h,(p,l)=>{this.YO().YZ(p,l)},R,K,I,b,N),g.n(this,this.Kf),O1D(this.Kf)); g.n(this,this.dB);$E=this.QX.Zl;this.qJ.publish("applicationInitialized")}static create(b,R,h,K){try{const I=typeof b==="string"?b:`player${g.VH(b)}`,N=Q9[I];if(N){try{N.dispose()}catch(l){g.X(l)}Q9[I]=null}const p=new g.xR(b,R,h,K);p.addOnDisposeCallback(()=>{Q9[I]=null;p.xq&&p.xq()}); return Q9[I]=p}catch(I){throw g.X(I),(I&&I instanceof Error?I:Error(String(I))).stack;}}SS(){return this.visibility}C7(b){const R=this.YO();if(b!==R){b.getVideoData().autonavState=R.getVideoData().autonavState;R.jG(this.Ld,this);var h=R.getPlaybackRate();R.dispose();this.DK.C7(b);b.setPlaybackRate(h);b.vZ(this.Ld,this);$P(this)}}MF(){this.kB||(this.kB=g.Nh(tT(),Ut2(),{OA:this.QX.OA(),clientInterface:x2(this.QX)}));return this.kB}RB(b){if(this.mediaElement){this.xf&&(this.events.Ac(this.xf),this.xf= null);this.fP.Y();this.E9().RB(!0,!1,b);this.template.RB();try{this.N("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.pR()}catch(R){g.kJ(R)}this.mediaElement=null}}lN(b,R,h=!1){if(b!==this.E9()){var K=null;h||(h=this.E9(),K=h.getPlayerState(),x7(this.cD,3),Cs(this,"cuerangesremoved",h.Vk()),this.FI&&!b.isGapless()&&h.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),h=b.yk()&&h.yk(),this.vH.z9("iv_s"),hkB(this,h));b.getPlayerType()===1&&this.C7(b);h=b.getPlayerType(); var I=this.DK.X[h]||null;b!==this.YO()&&b!==I&&(I?.dispose(),I=this.DK,I.X[h]=b,I.S[b.m7()]=b);this.DK.lN(b);this.mediaElement&&b.setMediaElement(this.mediaElement);b.vZ(this.kP,this);b.C2()?Ne(this,"setPresenting",!1):(this.kI("newdata",b,b.getVideoData()),K&&!g.Gh(K,b.getPlayerState())&&this.J$(new g.n6(b.getPlayerState(),K)),R=R&&b.getPlayerType()===1,b.Qa()&&!R&&this.kI("dataloaded",b,b.getVideoData()),(R=(R=b.getVideoData().Y)&&R.video)&&g.Dr(this.qJ,"onPlaybackQualityChange",R.quality),Cs(this, "cuerangesadded",b.Vk()),R=b.getPlayerState(),R.G(2)?syK(this):R.G(8)?b.playVideo():b.bW()&&b.pauseVideo(),R=this.YO(),b.getPlayerType()===2&&(b.getVideoData().U0=R.getVideoData().clientPlaybackNonce),b.getPlayerType()!==2||this.w3()||(b=b.getVideoData(),R.Mc(b.clientPlaybackNonce,b.CR||"",b.breakType||0,b.dG,b.videoId||"")))}}eP(){this.YO()!==this.E9()&&this.lN(this.YO())}Nz(){return this.DK}Qu(b){return this.DK.Qu(b)}u9(b){return this.DK.u9(b)}YO(){return this.DK.YO()}E9(){return this.DK.E9()}Y9(){vH(this)|| this.xY(5)}OQ(){if(!vH(this)){c1(this);var b=this.E9(),R=b.getVideoData();this.QX.N("html5_allow_multiview_tile_preload")&&R.SK&&b.seekTo(Infinity);R=b.getPlayerState();b.bW()?this.pauseVideo():R.isOrWillBePlaying()&&this.playVideo()}}canPlayType(b){return $b(b)}L(){return this.QX}getVideoData(){return this.E9().getVideoData()}Qi(){return this.E9().xg()}PD(){return this.YO().getVideoData()}getVideoLoadedFraction(b){return g.eF(this,{playerType:b}).getVideoLoadedFraction()}tX(){return this.template}VV(){return this.cD}vI(){return this.vH}IL(b, R=1,h){g.eF(this,{playerType:R}).Ad(b,void 0,h)}Jw(){const b=this.cD.Jw();this.qJ.publish("videoStatsPingCreated",b);return b}getVolume(){return Math.round(this.qJ.getVolume())}isMuted(){return this.qJ.isMuted()}Fq(){if(this.YO()===this.E9()&&this.ll)return this.ll.postId}Sf(){this.N("use_rta_for_player")||(g.hB(this.QX)?g.js(this.QX,this.getVideoData().J()).then(b=>{jp(tT(),b);I3K(this.getVideoData(),this.QX,this.MF())}):I3K(this.getVideoData(),this.QX,this.MF()))}MH(b){this.qJ.publish("poTokenVideoBindingChange", b)}Mr(b){this.qJ.publish("d6de4videobindingchange",b)}jN(){this.CD&&this.CD.jN()}L$(b){this.CD=b}CA(b){if(b===1){this.vH.tick("vr"); var R=this.E9();R.Vh();hYe(this.vH,R.getVideoData(),pRw(this));Of(this.cD)}R=this.QX;(NH(R)&&R.K||g.Mz(R))&&(this.E9().getVideoData()?.enableServerStitchedDai||!this.w3())&&g.Dr(this.qJ,"onAdStateChange",b)}setLoopVideo(b){const R=this.E9();R===this.YO()&&R.b3()!==b&&(R.setLoop(b),g.rw(this.qJ,"onLoopChange",b))}getLoopVideo(){return this.E9().b3()}setLoopRange(b){var R=!1;!!this.ll!==!!b?R=!0:this.ll&&b&&(R=this.ll.startTimeMs!==b.startTimeMs||this.ll.endTimeMs!==b.endTimeMs||this.ll.postId!==b.postId|| this.ll.type!==b.type);if(R){R=this.E9();GT(R.getVideoData())&&R.YZ("slr",{et:b?.endTimeMs||-1});R=this.YO();R.lj("applooprange");if(b){var h=new g.gL(b.startTimeMs,b.endTimeMs,{id:"looprange",namespace:"applooprange"});R.addCueRange(h)}else this.PD().clipConfig=void 0,this.ll?.type!=="repeatChapter"||isNaN(Number(this.ll?.loopCount))||(h={loopCount:String(this.ll.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.yp("repeatChapterLoopEvent",h));this.ll=b;g.rw(this.qJ,"onLoopRangeChange",b|| void 0);this.YO()===this.E9()&&(this.OZ(),R.B2())}}getLoopRange(){return this.ll}OZ(){let b="";const R=this.YO();this.ll?R!==this.E9()?b="pnea":xkw(this,R.getCurrentTime())&&(this.ll.loopCount=0,b="ilr"):b="nlr";const h=this.E9();GT(h.getVideoData())&&(this.N("html5_gapless_log_loop_range_info")?h.YZ("slrre",{rej:b,ct:R.getCurrentTime(),lst:this.ll?.startTimeMs,let:this.ll?.endTimeMs}):h.YZ("slrre",{}));b||a7w(this)}setPlaybackRate(b,R){if(!isNaN(b)){b=L9T(this,b);var h=this.YO();h.getPlaybackRate()!== b&&(h.setPlaybackRate(b),R&&!this.QX.V&&g.Iz("yt-player-playback-rate",b),g.Dr(this.qJ,"onPlaybackRateChange",b))}}getCurrentTime(b={}){const {playerType:R,eh:h=!0}=b;var K=this.DK.Qk;if(K)return K.getCurrentTime();b=(K=R===2&&this.getVideoData().enableServerStitchedDai)?this.E9():g.eF(this,b);return K&&this.bj?(K=this.DK.K)?K.getCurrentTime(h):b.getCurrentTime():h?(b=al(this,b),mZ(this,b.getCurrentTime(),b)):b.getCurrentTime()}U_(){var b=g.eF(this,{playerType:void 0});b=al(this,b);return mZ(this, b.U_(),b)}getDuration(b,R=!0){var h=this.DK.Qk;if(h)return h.getDuration();h=this.getVideoData();const K=b===2&&h.enableServerStitchedDai;let I;I=K?this.E9():g.eF(this,{playerType:b});if(h.hasProgressBarBoundaries()&&!K){const N=Number(h.progressBarStartPosition?.utcTimeMillis),p=Number(h.progressBarEndPosition?.utcTimeMillis);if(!isNaN(N)&&!isNaN(p))return(p-N)/1E3}if(GT(h)&&!h.isLivePlayback)return P1(this,b);if(R)return b=xG(this,I),mZ(this,b.getDuration(),b);K&&this.bj?(b=this.DK,b=b.G===b.K? b.G:null,b=(b==null?void 0:b.getDuration())||0):b=I.getDuration();return b}hh(b){var R=g.eF(this,{playerType:b});return this.w3(R)?(R=xG(this,R),R.hh()-R.getCurrentTime()+this.getCurrentTime({playerType:b})):R.hh()}finishSegmentByCpn(){return[]}xX(){this.template.xX();var b=this.qJ;b.state.element=this.template.element;const R=b.state.element;let h;for(h in b.state.G)b.state.G.hasOwnProperty(h)&&(R[h]=b.state.G[h]);(b=L5q(this.template.element))&&this.events.j(this.template,b,this.onFullscreenChange)}getDebugText(b){var R= this.YO().RT(b),h=this.E9();if(h!==this.YO()){h=h.RT(b);for(var K of Object.keys(h))R["ad"+K]=h[K];if(b){K=R;h={};var I=sU(document,"movie_player");I&&(h.bounds=I.getBoundingClientRect(),h["class"]=I.className);I={};var N=g.p0("video-ads");N?(tqw(N,I),I.html=N.outerHTML):I.missing=1;N={};const p=g.p0("videoAdUiSkipContainer"),l=g.p0("ytp-ad-skip-button-container"),a=g.p0("ytp-skip-ad-button"),v=p||l||a;v?(tqw(v,N),N.ima=p?1:0,N.bulleit=l?1:0,N.component=a?1:0):N.missing=1;h=JSON.stringify({player:h, videoAds:I,skipButton:N});K.ad_skipBtnDbgInfo=h}}b&&this.mediaElement&&(R["0sz"]=`${+wu(this.mediaElement.getSize())===0}`,R.op=this.mediaElement.nR("opacity"),K=this.mediaElement.Ay().y+this.mediaElement.getSize().height,R.yof=`${+K<=0}`,R.dis=this.mediaElement.nR("display"));b&&((b=(0,g.ky)())&&(R.gpu=b),(b=this.QX.playerStyle)&&(R.ps=b),this.QX.JX&&(R.webview=1),(b=this.webPlayerContextConfig.jsUrl)&&(R.js=b));R.debug_playbackQuality=this.qJ.getPlaybackQuality(1);R.debug_date=(new Date).toString(); R.origin=window.origin;R.timestamp=Date.now();delete R.uga;delete R.q;return JSON.stringify(R,null,2)}getFeedbackProductData(){const b={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.L().experiments.experimentIds.join(", "),player_release:"youtube.player.web_20260210_11_RC00"},R=this.getPlayerStateObject().gt;R&&(b.player_error_code=R.errorCode,b.player_error_details=JSON.stringify(R.errorDetail));return b}getPresentingPlayerType(b){return this.appState===1?1:vH(this)?3:(b&&this.QX.Mj().G.WY(YG)? this.DK.G?.isAd()??!1:this.bj?.RH(this.getCurrentTime()))?2:this.E9().getPlayerType()}zX(){return!1}getPlayerStateObject(b){let R;if(this.N("web_player_misc_bugfix_a"))R=!0;else{const h=this.DK.Qk;if(h)return h.getPlayerState()}return g.eF(this,{Uv:R,playerType:b}).getPlayerState()}getAppState(){return this.appState}nH(b){switch(b.type){case "loadedmetadata":this.iQ.start();for(var R of this.tI)Z1H(this,R.id,R.Lw,R.mU,void 0,!1);this.tI=[];break;case "loadstart":this.vH.z9("gv");break;case "progress":case "timeupdate":K6(b.target.w4())>= 2&&this.vH.z9("l2s");break;case "playing":g.qH&&this.iQ.start();if(g.hB(this.QX))b=!1;else{R=g.qy(this.VV());b=this.mediaElement.nR("display")==="none"||wu(this.mediaElement.getSize())===0;var h=EG(this.template),K=this.E9().getVideoData(),I=g.LW(this.QX);K=dw(K);R=!h||R||I||K||this.QX.xZ;b=b&&!R}b&&(b=this.E9(),b.kd(),this.getVideoData().pR||(this.getVideoData().pR=1,this.FA(),b.playVideo()))}}mP(b){g.oj(this.qJ,"onLoadProgress",b)}Qt(){this.qJ.publish("playbackstalledatstart")}UQ(b,R){this.qJ.publish("sabrCaptionsDataLoaded", b,R)}ZA(b){this.E9().MM(b)}DA(b){this.E9().Xb(b)}Ye(b){b=al(this,this.E9());b=mZ(this,b.getCurrentTime(),b);g.Dr(this.qJ,"onVideoProgress",b);this.QX.dh&&this.visibility.ut()&&this.QX.SK&&!this.getVideoData()?.backgroundable&&this.pauseVideo()}cJ(){g.Dr(this.qJ,"onAutoplayBlocked");var b=this.E9().getVideoData();b&&(b.yh=!0);g.Fo(this.QX)&&(b={autoplayBrowserPolicy:KC(),autoplayIntended:sx(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback}, g.yp("embedsAutoplayStatusChanged",b))}f9(){this.qJ.publish("progresssync")}wD(){g.oj(this.qJ,"onPlaybackPauseAtStart")}Ij(b){if(this.getPresentingPlayerType()===1){b.Up(1)&&!b.state.G(64)&&this.PD().isLivePlayback&&this.YO().isAtLiveHead()&&this.qJ.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(b.Up(2)){if(this.ll&&this.ll.endTimeMs>=(this.getDuration()-1)*1E3){a7w(this);return}syK(this)}if(b.state.G(128)){var R=b.state;this.cancelPlayback(5);R=R.gt;JSON.stringify({errorData:R,debugInfo:this.getDebugText(!0)}); g.Dr(this.qJ,"onError",trK(R.errorCode));g.oj(this.qJ,"onDetailedError",{errorCode:R.errorCode,errorDetail:R.errorDetail,message:R.errorMessage,messageKey:R.iL,cpn:R.cpn});(0,g.c)()-this.QX.vD>6048E5&&g.oj(this.qJ,"onReloadRequired")}R={};if(b.state.isPlaying()&&!b.state.isBuffering()&&!cI("pbresume","ad_to_video")&&cI("_start","ad_to_video")){const h=this.getVideoData();R.clientPlaybackNonce=h.clientPlaybackNonce;h.videoId&&(R.videoId=h.videoId);g.PI(R,"ad_to_video");mv("pbresume",void 0,"ad_to_video"); Of(this.cD)}this.qJ.publish("applicationplayerstatechange",b)}}J$(b){this.DK.Qk||this.qJ.publish("presentingplayerstatechange",b)}dR(b){p7(this,gV(b.state));b.state.G(1024)&&this.qJ.isMutedByMutedAutoplay()&&(uE(this,{muted:!1,volume:this.JW.volume},!1),Zj(this,!1))}onPlayerRequestSent(b){g.rw(this.qJ,"onPlayerRequestSent",b)}Tt(b,R){b==="newdata"&&$P(this);this.qJ.publish("applicationvideodatachange",b,R)}p9(b,R){c1(this);g.oj(this.qJ,"onPlaybackAudioChange",this.qJ.getAudioTrack().Nj.name);this.qJ.publish("internalaudioformatchange", this.qJ.getAudioTrack().Nj.id,R)}Gd(b){const R=this.E9().getVideoData();b===R&&g.Dr(this.qJ,"onPlaybackQualityChange",b.Y.video.quality)}PX(){var b=this.DK.X[2]||null;if(b){b=b.getVideoData();this.E9().YZ("ssdai",{cleanaply:1,acpn:b?.clientPlaybackNonce,avid:b.videoId,isDai:this.PD().enableServerStitchedDai?1:0});b=this.DK;const R=b.X[2];R&&(delete b.S[R.m7()],delete b.X[2])}}P4(b,R){this.kI(b,this.E9(),R)}kI(b,R,h){this.QX.zy()&&R.YZ("vdc",{type:b,vid:h.videoId||"",cpn:h.clientPlaybackNonce||""}); R===this.YO()&&(this.QX.LN=h.oauthToken);R===this.YO()&&(this.getVideoData().enableServerStitchedDai&&!this.bj?(this.YO().YZ("sdai",{initSstm:1}),this.bj=new g.OX(this.qJ,this.QX,this.YO(),this)):!this.getVideoData().enableServerStitchedDai&&this.bj&&(this.bj.dispose(),this.bj=null));if(b==="newdata")x7(this.cD,2),this.qJ.publish("videoplayerreset",R);else{if(!this.mediaElement)return;if(b==="dataloaded")if(this.YO()===this.E9()){if(R4(h.uv,h.mX),!this.YO().getPlayerState().isError()){var K=vH(this); this.PD().isLoaded();K&&this.xY(6);NbT(this);eR(this.cD)||Il(this)}}else NbT(this);if(R.getPlayerType()===1&&(this.QX.gp&&v1q(this),this.getVideoData().isLivePlayback&&!this.QX.ZW&&this.zz("html5.unsupportedlive",2,"DEVICE_FALLBACK"),h.isLoaded()&&((W6w(h)||this.getVideoData().jJ)&&this.qJ.publish("legacyadtrackingpingchange",this.getVideoData()),h.hasProgressBarBoundaries()&&(K=Number(this.getVideoData().progressBarEndPosition?.utcTimeMillis)/1E3,!isNaN(K))))){var I=this.hh();I&&(I-=this.getCurrentTime(), K=(K-I)*1E3,I=this.Sk.progressEndBoundary,I?.start!==K&&(I&&this.L6([I]),K=new g.gL(K,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),this.YO().addCueRange(K),this.Sk.progressEndBoundary=K))}this.qJ.publish("videodatachange",b,h,R.getPlayerType())}g.Dr(this.qJ,"onVideoDataChange",{type:b,playertype:R.getPlayerType()});this.OZ();(b=h.FZ)?this.oR.nR(b,h.clientPlaybackNonce):JA3(this.oR)}uL(){VW(this,null);g.oj(this.qJ,"onPlaylistUpdate")}Td(b){delete this.Sk[b.getId()];this.YO().removeCueRange(b); a:{b=this.getVideoData();var R=b.T6?.contents?.singleColumnWatchNextResults?.autoplay?.autoplay?.sets||b.T6?.contents?.twoColumnWatchNextResults?.autoplay?.autoplay?.sets;if(R)for(h of R){R=h.autoplayVideo||h.autoplayVideoRenderer?.autoplayEndpointRenderer?.endpoint;const K=g.Z(R,g.hw);if(R!=null&&K?.videoId===b.videoId&&K?.continuePlayback){var h=R;break a}}h=null}(b=g.Z(h,g.hw))&&g.rw(this.qJ,"onPlayVideo",{sessionData:{autonav:"1",itct:h?.clickTrackingParams},videoId:b.videoId,watchEndpoint:b})}xY(b){b!== this.appState&&(b===2&&this.getPresentingPlayerType()===1&&(p7(this,-1),p7(this,5)),this.appState=b,this.qJ.publish("appstatechange",b))}zz(b,R,h,K,I){this.YO().ij(b,R,h,K,I)}isAtLiveHead(b,R=!1){var h=g.eF(this,{playerType:b});b=xG(this,h);h=al(this,h);return b!==h?b.isAtLiveHead(mZ(this,h.getCurrentTime(),h),!0):b.isAtLiveHead(void 0,R)}PK(){const b=g.eF(this,{playerType:void 0});return xG(this,b).PK()}seekTo(b,R,h,K,I,N){R=R!==!1;K=g.eF(this,{playerType:K});this.appState===2&&Rl(this);this.w3(K)? de(this)?this.bj.seekTo(b,{seekSource:I},R,h):this.xO.seekTo(b,{seekSource:I},R,h):(this.N("html5_sabr_csdai_seek_log")||(N=""),K.seekTo(b,{Il:!R,Z1:h,ZK:"application"+(N??""),seekSource:I}))}seekBy(b,R,h,K){this.seekTo(this.getCurrentTime()+b,R,h,K,void 0,"_by")}C9(){g.Dr(this.qJ,"SEEK_COMPLETE")}qo(){g.rw(this.qJ,"onAbnormalityDetected")}k9(b){g.rw(this.qJ,"onSnackbarMessage",b)}Rj(b){const R=this.E9(),h=R.getVideoData();if(this.appState===1||this.appState===2)h.startSeconds=b;this.appState===2? R.getPlayerState().G(512)||Rl(this):g.Dr(this.qJ,"SEEK_TO",b)}x9(){this.qJ.publish("airplayactivechange")}zb(){this.qJ.publish("airplayavailabilitychange")}showAirplayPicker(){this.E9().gW()}sQ(){this.qJ.publish("beginseeking")}K9(){this.qJ.publish("endseeking")}getStoryboardFormat(b){b=g.eF(this,{playerType:b});return xG(this,b).getStoryboardFormat()}hW(b){b=g.eF(this,{playerType:b});return xG(this,b).getVideoData().hW()}w3(b){b=(b||this.E9()).getVideoData();if(de(this))var R=b===this.bj.playback.getVideoData(); else a:{var h=this.xO;if(b===h.G.getVideoData()&&h.Y.length)R=!0;else{for(R of h.Y)if(b.BD===R.BD){R=!0;break a}R=!1}}return R}Yp(b,R,h,K,I,N,p,l){const a=de(this);this.E9().YZ("appattl",{sstm:this.bj?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:a});a?(h=this.bj.K0(b,R,h,K,I,N,p,l),b=h?.clientPlaybackNonce||"",(this.N("html5_ssdai_new_decoration_logic")||this.YO().getVideoData().lJ)&&this.YO().cK(l||{LU:""},R,h?.clientPlaybackNonce||"")):b=yAx(this.xO,b,h,K,I,N);return b}Kn(b,R, h,K,I,N,p,l){de(this)&&(b=this.bj?.K0(b,R,h,K,I,N,p,l),this.YO().getVideoData().lJ&&this.YO().cK(l||{LU:""},R,b?.clientPlaybackNonce||""))}G9(b){(this.N("html5_ssdai_new_decoration_logic")||this.YO().getVideoData().lJ)&&this.YO().cK(b,"","");this.bj?.G9(b.LU||"")}kA(b=-1,R=Infinity){de(this)||SF(this.xO,b,R)}y7(b,R,h){if(de(this)){var K=this.bj,I=h;(h=K.G.Qu(b))?(I===void 0&&(I=h.uj),K9K(K,h,R,I)):K.cg(`Invalid_cpn_${b}_specified`)}else{K=this.xO;let N=null;for(I of K.Y)if(I.BD===b){N=I;break}N?(h=== void 0&&(h=N.uj),zO3(K,N,R,h)):g_(K,"InvalidTimelinePlaybackId timelinePlaybackId="+b)}}enqueueVideoByPlayerVars(b,R,h=Infinity,K=""){this.w3();b=new g.dh(this.QX,b);K&&(b.BD=K);w_(this,b,R,h)}queueNextVideo(b,R=1,h=NaN,K="",I=""){b=this.preloadVideoByPlayerVars(b,R,h,K,I);R=this.E9();b&&(this.N("html5_check_queue_on_data_loaded")?this.L().supportsGaplessShorts()&&R.getVideoData().D&&(h=this.jy,K=this.FI.S,h.V!==b&&(h.Y=R,h.V=b,h.X=1,h.G=b.getVideoData(),h.S=K,h.G.isLoaded()?h.J():h.G.subscribe("dataloaded", h.J,h))):(h=LPe(R,b,this.FI.S),h!=null?(R.YZ("sgap",h),R.getVideoData().D&&R.z2(!1)):(b=b.getVideoData(),R=this.jy,R.G!==b&&(R.G=b,R.X=1,b.isLoaded()?R.D():R.G.subscribe("dataloaded",R.D,R)))))}rP(b,R,h=0,K=0){xG(this,this.E9()).tA();ISB(this.FI,b,R,h,K).then(()=>{g.oj(this.qJ,"onQueuedVideoLoaded")},()=>{})}F9(){return this.FI.F9()}X2(b){const R=this.FI.G; return R?R.Jg(b):!1}clearQueue(b=!1,R=!1){this.FI.clearQueue(b,R)}loadVideoByPlayerVars(b,R=1,h,K,I,N){var p=this.YO();if(R===2&&this.PD().enableServerStitchedDai&&p&&!p.Oj())return p.YZ("lvonss",{vid:b?.videoId||"",ptype:R}),!1;var l=!1;p=new g.dh(this.QX,b);p.Pa=N;g.BG(this.QX)&&!p.xV&&Hs(this.vH);this.vH.timerName=p.G6??"";this.vH.bP("pl_i");this.N("web_player_early_cpn")&&p.clientPlaybackNonce&&this.vH.infoGel({clientPlaybackNonce:p.clientPlaybackNonce});Kxx(p).supportsVp9Encoding===!1&&this.E9().YZ("noVp9enc", {});if(this.L().supportsGaplessShorts()){N=aS2(this.FI,p,R);if(N==null){p7(this,-1);this.FI.G?.getVideoData().isAd()||s$(this);b=this.FI;b.app.L().N("html5_gapless_new_slr")?MG(b.app,"gaplessshortslooprange"):b.app.setLoopRange(null);b.app.getVideoData().mK=!0;b.G?.K7();b.G?.Iz();h={ZK:"gapless_to_next_video",seekSource:60,Ka:b.S.G};K=b.X?.G6()||-1;if(b.S.G){const {Z6:H,Fp:q}=b.X?.K()||{};q!=null&&H!=null&&(K=q-H+.001)}b.app.E9()?.seekTo(K,h);b.app.getPlayerStateObject(R).isPlaying()||b.app.E9()?.playVideo(!0); lSD(b,K);b.app.E9()?.WP();b.K();return!0}const v=this.N("html5_shorts_gapless_preload_fallback"),B=this.FI.G;if(v&&B&&!B.HY()){var a=B.getVideoData();a=HH(this,R,a);this.DK.J.set(a,B,3600)}this.FI.clearQueue(v);this.E9().YZ("sgap",{f:N})}if(I){for(;p.YJ.length&&p.YJ[0].isExpired();)p.YJ.shift();l=p.YJ.length-1;l=l>0&&I.Y(p.YJ[l])&&I.Y(p.YJ[l-1]);p.YJ.push(I)}h||(b&&qR(b)?(I4(this.QX)&&!this.us&&(b.fetch=0),VW(this,b)):this.playlist&&VW(this,null),b&&(this.us=E7(!1,b.external_list)));this.qJ.publish("loadvideo"); R=this.eU(p,R,K);l&&this.zz("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",`loadvideo.1;emsg.${p.YJ.join()}`.replace(/[;:,]/g,"_"));return R}preloadVideoByPlayerVars(b,R=1,h=NaN,K,I=""){K=O7(b);K=BbP(this,R,K,I,b.autonav==="1"||b.autonav===!0,b.autoplay==="1"||b.autoplay===!0||b.autoplay===1);if(K=this.DK.J.get(K)||null)return K;b=new g.dh(this.QX,b);I&&(b.BD=I);{I=HH(this,R,b);K=this.E9();const N=HH(this,K.getPlayerType(),K.getVideoData());I===N?(K.J1(!0),b.dispose(),R=null):(b.ri=!0,K=Ls(this, R,b,!0),(R!==1||!a4(this.QX)||this.QX.N("html5_allow_multiview_tile_preload")&&b.SK)&&K.J1(!0),this.DK.J.set(I,K,h||3600),R=K)}return R}setMinimized(b){this.visibility.setMinimized(b);(b=Hyx(this.cD))&&(this.isMinimized()?b.load():b.unload());this.qJ.publish("minimized")}setInline(b){this.visibility.setInline(b)}setInlinePreview(b){this.visibility.setInline(b)}F3(b){qQH(this,b)||this.visibility.F3(b)}setSqueezeback(b){this.visibility.setSqueezeback(b)}Ii(){const b=this.mediaElement?.hO();b&&(this.QX.m5&& X4(ZH(()=>document.exitFullscreen()),()=>{}),X4(ZH(()=>CX(b)),()=>{}))}o2(){this.mediaElement.hO(); this.mediaElement.hO().webkitPresentationMode==="picture-in-picture"?this.F3(!0):this.F3(!1)}togglePictureInPicture(){this.E9().togglePictureInPicture()}eU(b,R=1,h){cI("_start",this.vH.timerName)||g.dK(YY)(void 0,this.vH.timerName);let K=!1,I=r_(this,R,b,!1);I?(K=!0,b.dispose(),I.getVideoData().SK&&I.YZ("app_lv",{pdl:I.Qa()}),this.Mj().G.WY(tV2)&&(I.getVideoData().FM=b.FM)):(I=Ls(this,R,b,!0,h),(this.N("html5_onesie")||this.N("html5_load_before_stop"))&&I.uY()&&I.J1(),this.iQ.stop(),R===1&&R!==this.getPresentingPlayerType()&& this.cancelPlayback(4),this.cancelPlayback(4,R),this.lN(I));b.videoId&&this.AR.includes(b.videoId)&&I.YZ("mvt",{});I===this.YO()&&(this.QX.LN=b.oauthToken);if(!I.uY())return!1;if(I===this.YO())return this.xY(1),b=Rl(this),K&&I.getPlayerType()===1&&I.Qa()&&this.kI("dataloaded",I,I.getVideoData()),b;I.S8();return!0}cueVideoByPlayerVars(b,R=1){var h=this.YO();if(this.PD().enableServerStitchedDai&&h&&!h.Oj()&&b&&Object.keys(b).length>0)h.YZ("qvonss",{vid:b?.videoId||"",ptype:R});else if(b&&qR(b))if(this.f2= !0,VW(this,b),(b=g.fE(this.playlist))&&b.Jh())BH(this,b,R);else this.playlist.onReady(()=>{Dj(this)}); else{R||(R=this.getPresentingPlayerType());R===1&&this.uL();h=new g.dh(this.QX,b);const K=g.Fo(this.QX)&&!this.QX.C&&R===1&&!h.isAd()&&!h.CR;this.qJ.publish("cuevideo",R);K?(this.E9().getVideoData().loading=!0,lyB(h,b?b:{}).then(I=>{BH(this,I,R)}),h.dispose()):BH(this,h,R)}}BZ(b,R,h,K,I,N,p){if(!b&&!h)throw Error("Playback source is invalid"); if(op(this.QX)||g.bU(this.QX))return R=R||{},R.lact=i$(),R.vis=this.qJ.getVisibilityState(),g.rw(this.qJ,"onPlayVideo",{videoId:b,watchEndpoint:N,sessionData:R,listId:h}),!1;KcP(this.vH);this.vH.reset();b={video_id:b};K&&(b.autoplay="1");K&&(b.autonav="1");N&&(b.player_params=N.playerParams);p&&(b.oauth_token=p);h?(b.list=h,this.loadPlaylist(b)):this.loadVideoByPlayerVars(b,1);return!0}cuePlaylist(b,R,h,K){this.f2=!0;dmP(this,b,R,h,K)}loadPlaylist(b,R,h,K){this.f2=!1;dmP(this,b,R,h,K)}tD(){return this.qJ.isMutedByMutedAutoplay()? !1:this.DK.Qk?!0:!(!this.playlist||!this.playlist.hasNext())}nextVideo(b,R){var h=this.YO().getVideoData().U();g.fz(this.qJ)&&h?this.BZ(h.videoId,R?h.eq:h.sessionData,h.playlistId,R,void 0,h.CK||void 0):this.us?g.oj(this.qJ,"onPlaylistNext"):this.getPresentingPlayerType()===3?vr(this.cD).nextVideo():!this.playlist||I4(this.QX)&&!this.qJ.isFullscreen()||(this.playlist.hasNext(b)&&yu(this.playlist,$dB(this.playlist)),this.playlist.loaded?(b=R&&this.QX.N("html5_player_autonav_logging"),R&&this.qJ.publish("playlistautonextvideo"), this.eU(g.fE(this.playlist,void 0,R,b),1)):this.f2=!1)}previousVideo(b){this.us?g.oj(this.qJ,"onPlaylistPrevious"):this.getPresentingPlayerType()===3?vr(this.cD).vF():!this.playlist||I4(this.QX)&&!this.qJ.isFullscreen()||(this.playlist.hasPrevious(b)&&yu(this.playlist,Iy3(this.playlist)),this.playlist.loaded?this.eU(g.fE(this.playlist),1):this.f2=!1)}playVideoAt(b){this.us?g.oj(this.qJ,"onPlaylistIndex",b):this.playlist&&(this.playlist.loaded?this.eU(g.fE(this.playlist,b),1):this.f2=!1,yu(this.playlist, b))}getPlaylist(){return this.playlist}Xa(b){this.tI=g.lR(this.tI,K=>K.id!==b); const R=this.YO(),h=R.Vk();for(let K=0;K{hp(this)}):hp(this); this.OZ();l7K(this);g.Fo(this.QX)&&(b={autoplayBrowserPolicy:KC(),autoplayIntended:sx(this.getVideoData()),autoplayStatus:w2B(this.getVideoData(),1),cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.yp("embedsAutoplayStatusChanged",b))}}Kv(b){if(this.QX.N("mweb_client_log_screen_associated"),!hn(this.QX)){var R=this.screenLayer||(this.isMinimized()?3:0);if((R=g.Ui(R))&&R!=="UNDEFINED_CSN"){var h=this.QX.N("web_player_attach_player_response_ve");const K=this.QX.N("web_playback_associated_ve"); b={cpn:b,csn:R};this.getVideoData().C&&(h||K)&&(h=g.jU(this.getVideoData().C),g.R1(R,h),K&&(b.playbackVe=h.getAsJson()));this.getVideoData().queueInfo&&(b.queueInfo=this.getVideoData().queueInfo);R={};this.getVideoData().g3&&(R.cttAuthInfo={token:this.getVideoData().g3,videoId:this.getVideoData().videoId});g.yp("playbackAssociated",b,R)}else g.kJ(new g.A$("CSN Missing or undefined during playback association"))}}dD(){this.qJ.publish("internalAbandon");s$(this)}onApiChange(){const b=this.E9();this.QX.K? g.Dr(this.qJ,"onApiChange",b.getPlayerType()):g.Dr(this.qJ,"onApiChange")}No(){var b=this.mediaElement;b={volume:g.ui(Math.floor(b.getVolume()*100),0,100),muted:b.JX()};b.muted||Zj(this,!1);this.JW=g.$T(b);g.Dr(this.qJ,"onVolumeChange",b)}mutedAutoplay(b){const R=this.getVideoData().videoId;isNaN(this.P6)&&(this.P6=this.getVideoData().startSeconds);if(b?.videoId||R)this.loadVideoByPlayerVars({video_id:b?.videoId?b?.videoId:R,playmuted:!0,start:this.P6,muted_autoplay_duration_mode:b?.durationMode}), g.oj(this.qJ,"onMutedAutoplayStarts")}onFullscreenChange(){const b=f7(this);this.J8(b?1:0);yb3(this,!!b)}J8(b){var R=!!b;const h=!!this.P7()!==R;this.visibility.J8(b);this.template.J8(R);this.N("html5_media_fullscreen")&&!R&&this.mediaElement&&f7(this)===this.mediaElement.hO()&&this.mediaElement.C();this.template.resize();h&&this.vH.tick("fsc");h&&(this.qJ.publish("fullscreentoggled",R),b=this.PD(),R={fullscreen:R,videoId:b.iD||b.videoId,time:this.getCurrentTime()},this.qJ.getPlaylistId()&&(R.listId= this.qJ.getPlaylistId()),g.Dr(this.qJ,"onFullscreenChange",R))}XG(){return this.visibility.XG()}isFullscreen(){return this.visibility.isFullscreen()}P7(){return this.visibility.P7()}SZ(){var b=this.P7();b!==0&&b!==1||this.J8(f7(this)?1:0);b=window.screen.width*window.screen.height;const R=window.outerHeight*window.outerWidth;this.QX.O$?(this.jd=Math.max(this.jd,b,R),b=R/this.jdK.videoId??"").filter(K=> !!K)))}sendVideoStatsEngageEvent(b,R,h){R=g.eF(this,{playerType:R}); H9K(this.QX,b)?R.sendVideoStatsEngageEvent(b,h):h&&h()}fh(b){const R=g.eF(this,{playerType:void 0});return H9K(this.QX,b)?R.fh(b):null}updatePlaylist(){!I4(this.QX)&&g.Fo(this.QX)&&ob(this);g.oj(this.qJ,"onPlaylistUpdate")}setSizeStyle(b,R){this.iI=b;this.N("web_log_theater_mode_visibility")?this.yL(R):this.gq=R;this.qJ.publish("sizestylechange",b,R);this.template.resize()}yL(b){this.visibility.yL(b)}gR(){return this.N("web_log_theater_mode_visibility")?this.visibility.gR():this.gq}isMinimized(){return this.visibility.isMinimized()}isInline(){return this.visibility.isInline()}ut(){return this.visibility.ut()}tC(){return this.visibility.tC()}TK(){return this.visibility.TK()}h0(){return this.iI}getAdState(){if(this.getPresentingPlayerType()=== 3)return vr(this.cD).getAdState();if(!this.w3()){const b=GX(this.VV());if(b)return b.getAdState()}return-1}Vt(b){var R=this.template.getVideoContentRect();Vg(this.rj,R)||(this.rj=R,this.E9().Oh(),(R=this.YO())&&R===this.E9()&&R.Oh(),this.P7()===1&&this.j$&&yb3(this,!0));R=this.tX().Mt!==this.PV;this.PV=this.tX().Mt;this.Db&&g.LP(this.Db,b)&&!R||(this.qJ.publish("appresize",b),this.Db=b)}Hr(){return this.qJ.Hr()}tT(){this.getPresentingPlayerType()===2&&this.xO.isManifestless()?i1D(this.xO):(this.bj&& (t6(this.bj),s$(this)),this.g2.vY=(0,g.c)(),Ne(this,"signature"))}WJ(b){b&&Ne(this,"reloadPlayerEvent",void 0,b)}FA(b){this.RB(b);Ff(this)}L9(b){if(b.errorCode==="manifest.net.badstatus"){const R=this.QX.experiments.O9("html5_use_network_error_code_enums")?401:"401";b.details.rc===R&&g.rw(this.qJ,"onPlayerRequestAuthFailed")}}jA(b){this.qJ.publish("heartbeatparams",b)}bQ(b){g.rw(this.qJ,"onAutonavChangeRequest",b!==1)}di(){return this.mediaElement}setBlackout(b){if(this.QX.xZ!==b){this.QX.xZ=b;var R= this.E9();R.B2();this.QX.gp&&v1q(this);R.aU(b)}}HJ(){const b=this.E9(),R=!this.qJ.Ln();b.zP(R)}eA(){g.oj(this.qJ,"onLoadedMetadata")}ih(){g.oj(this.qJ,"onDrmOutputRestricted")}gH(){this.intentionalPlayback=!0}X5(){this.cD.dispose();this.GH.dispose();this.xO.dispose();this.bj&&this.bj.dispose();this.YO().dispose();this.RB();this.DK.dispose();g.IZ(this.playlist);super.X5()}N(b){return this.QX.N(b)}Mj(){return this.QX.Mj()}V8(){return this.QX.V8()}setScreenLayer(b){this.screenLayer=b}getInternalApi(){return this.qJ.getInternalApi()}createSubtitlesModuleIfNeeded(){return this.cD.createSubtitlesModuleIfNeeded()}isOrchestrationLeader(){const b= Ef(this.cD);return b?b.isOrchestrationLeader():!1}getVideoUrl(b,R,h,K,I){if(this.ll&&this.ll.postId)return b=this.QX.getVideoUrl(b),b=SX(b,"v"),b.replace("/watch",`/clip/${this.ll.postId}`);const N=this.qJ.isEmbedsShortsMode()||this.QX.nR==="shortspage",p=g.X8(this.getVideoData());return this.QX.getVideoUrl(b,R,h,K,I,N,p)}pX(){return this.FI.pX()}GI(){return this.FI.GI()}pQ(b,R,h){this.qJ.publish("spsumpreject",b,R,h)}kR(){try{for(const b of Object.values(this.DK.X))b.HY()||b.kR();if(this.N("html5_sabr_fetch_on_idle_network_preloaded_players"))for(const b of zmK(this.DK.J))b.HY()|| b.kR();this.YO().kR()}catch(b){g.kJ(b)}}Yc(){if(this.bj){const b=(0,g.c)();return this.bj.Yc(b)}return!1}Qr(b){let R=this.YO();b&&(R=jyT(this,b));if(R){var h=R.getVideoData();b=new Map;for(const [K,I]of h.sabrContextUpdates){h=K;const N=I;N.scope===4&&R?.Y5(h)&&b.set(h,N)}return b}this.YO().YZ("scuget",{ncpf:"1",ccpn:b})}gX(b,R){this.K$.push({key:b,value:R})}};g.xR.prototype.aX=RK(41);g.xR.prototype.v7=RK(16);g.xR.prototype.p8=RK(10);g.xR.prototype.v_=RK(8);var Q9={};var KUn={m3:[{vK:/Unable to load player module/,weight:20},{vK:/Failed to fetch/,weight:500},{vK:/XHR API fetch failed/,weight:10},{vK:/JSON parsing failed after XHR fetch/,weight:10},{vK:/Retrying OnePlatform request/,weight:10},{vK:/CSN Missing or undefined during playback association/,weight:100},{vK:/Non-recoverable error. Do not retry./,weight:0},{vK:/Internal Error. Retry with an exponential backoff./,weight:0},{vK:/API disabled by application./,weight:0},{vK:/Unexpected end of JSON input/, weight:0}],hw:[{callback:Abq,weight:500}]};var $vx=/[&\?]action_proxy=1/,sfB=/[&\?]token=([\w-]*)/,IPB=/[&\?]video_id=([\w-]*)/,N4P=/[&\?]index=([\d-]*)/,pXK=/[&\?]m_pos_ms=([\d-]*)/,qBD=/[&\?]vvt=([\w-]*)/,g1x="ca_type dt el flash u_tz u_his u_h u_w u_ah u_aw u_cd u_nplug u_nmime frm u_java bc bih biw brdim vis wgl".split(" "),B4x="www.youtube-nocookie.com youtube-nocookie.com www.youtube-nocookie.com:443 youtube.googleapis.com www.youtubeedu.com www.youtubeeducation.com video.google.com redirector.gvt1.com".split(" "),W1D={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"},SQ2={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},H5T={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141},snn=class{constructor(b){this.player=b;this.Y=this.G=1}hI(b){this.player.vI().tick(b)}fetch(b,R){if(!b.match(/\[BISCOTTI_ID\]/g))return yD(this, b,R);const h=this.G===1;h&&this.hI("a_bid_s");var K=zkx();if(K!==null)return h&&this.hI("a_bid_f"),yD(this,b,R,K);K=UmT();h&&g.Fp(K,()=>{this.hI("a_bid_f")}); return K.then(I=>yD(this,b,R,I))}reset(){this.Y=this.G=1}};var $gn={AXv:"replaceUrlMacros",hf:"onAboutThisAdPopupClosed",x7:"executeCommand"};var E1H=class{constructor(b){this.aH=b}Bq(){return"adPingingEndpoint"}H_(b,R,h){vGx(this.aH.get(),b,R,h)}};var Tbs=class{constructor(b){this.A=b}Bq(){return"changeEngagementPanelVisibilityAction"}H_(b){g.rw(this.A,"changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:b})}};var JbT=class{constructor(b){this.aH=b}Bq(){return"loggingUrls"}H_(b,R,h){for(const K of b)vGx(this.aH.get(),K.baseUrl,R,h,K.attributionSrcMode)}};var I2p=class extends g.N3{constructor(b){super();this.G=b;this.Y=xmB(this)}};var mmx=class{constructor(b,R){this.V$=b;this.VX=R}BH(b,R){R={...R,cc:this.V$.kX()};this.V$.A.YZ(b,R)}};var m4=class extends g.N3{constructor(b,R,h,K,I){super();this.Y=R;this.BY=h;this.s9=K;this.Zq=I;this.listeners=[];const N=new vi(this);g.n(this,N);N.j(b,"internalAbandon",this.X);this.addOnDisposeCallback(()=>{N.Y()})}addListener(b){this.listeners.push(b)}removeListener(b){this.listeners=this.listeners.filter(R=>R!==b)}JE(b,R,h,K,I,N,p,l){if(b==="")u2("Received empty content video CPN in DefaultContentPlaybackLifecycleApi"); else if(b!==this.G||h){this.G=b;this.BY.get().JE(b,R,h,K,I,N,p,l);this.s9.get().JE(b,R,h,K,I,N,p,l);this.Zq?.get().JE(b,R,h,K,I,N,p,l);this.Y.JE(b,R,h,K,I,N,p,l);for(const a of this.listeners)a.JE(b,R,h,K,I,N,p,l)}else u2("Duplicate content video loaded signal")}X(){this.G&&this.TT(this.G)}TT(b){this.G=void 0;for(const R of this.listeners)R.TT(b)}};var PK=class{constructor(b){this.A=b;this.adVideoId=this.G=this.videoId=this.adCpn=this.contentCpn=null;this.S=!0;this.Y=this.X=!1;this.adFormat=null;this.V="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}E1(b,R,h,K,I){XRq(this);this.S=!R&&h===0;const N=this.A.getVideoData({playerType:1}),p=this.A.getVideoData({playerType:2});N&&(this.contentCpn=N.clientPlaybackNonce,this.videoId=N.videoId,this.G=N.g3);p&&(this.adCpn=p.clientPlaybackNonce,this.adVideoId= p.videoId,this.adFormat=p.adFormat);this.V=b;K<=0?(XRq(this),this.S=!R&&h===0):(this.actionType=this.S?R?"unknown_type":"video_to_ad":R?"ad_to_video":"ad_to_ad",this.videoStreamType=I?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&&(this.X=!0,cI("_start",this.actionType)&&Zns(this)))}reset(){return new PK(this.A)}};var Zt=class extends g.N3{constructor(b){super();this.A=b;this.G=new Map;this.Y=new vi(this);g.n(this,this.Y);this.Y.j(this.A,g.fM("ad"),this.onCueRangeEnter,this);this.Y.j(this.A,g.yf("ad"),this.onCueRangeExit,this)}addCueRange(b,R,h,K,I,N=3,p=1,l,a){this.G.has(b)?u2("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:b}):(b=new NxR(b,R,h,K,N,l,a),this.G.set(b.id,{qF:b,listener:I,rW:p}),this.A.f5([b],p))}removeCueRange(b){const R=this.G.get(b);R?(this.A.ZU([R.qF],R.rW),this.G.delete(R.qF.id)): u2("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:b})}onCueRangeEnter(b){if(this.G.has(b.id))this.G.get(b.id).listener.onCueRangeEnter(b.id)}onCueRangeExit(b){if(this.G.has(b.id))this.G.get(b.id).listener.onCueRangeExit(b.id)}},NxR=class extends g.gL{constructor(b,R,h,K,I,N,p){super(R,h,{id:b,namespace:"ad",priority:I,visible:K,associatedClipId:N,markerPositionMs:p})}};var cK=class{constructor(b){this.A=b}addPlayerResponseForAssociation(b){this.A.addPlayerResponseForAssociation(b)}};var u_=class{constructor(b){this.A=b}CA(b){this.A.CA(b)}};var Xn=class{constructor(b){this.A=b}};var zQ=null,o1H=class extends g.NU{constructor(){super();this.G={};this.addOnDisposeCallback(()=>{for(const b of Object.keys(this.G))delete this.G[b]})}ID(b){return this.G.hasOwnProperty(b)?this.G[b].ID():{}}}; g.kB("ytads.bulleit.getVideoMetadata",function(b){return U$().ID(b)}); g.kB("ytads.bulleit.triggerExternalActivityEvent",function(b,R,h){var K=U$();h=F13(h);h!==null&&K.publish(h,{queryId:b,viewabilityString:R})});var V9=class{constructor(b,R,h){this.BY=b;this.A=R;this.VX=h;this.Y=new Set;this.G=new Map;U$().subscribe("adactiveviewmeasurable",this.le,this);U$().subscribe("adfullyviewableaudiblehalfdurationimpression",this.Vf,this);U$().subscribe("adviewableimpression",this.SP,this);U$().subscribe("adaudioaudible",this.gG,this);U$().subscribe("adaudiomeasurable",this.v9,this)}zf(b,R){if(!this.G.has(b))return{};if(R==="seek")return(b=kg(B9).U(b,{}))&&Qd(b),{};R=RBT(R);if(R===null)return{};var h=this.A.Np();if(!h)return{}; const K=this.A.getPresentingPlayerType(!0);if(!this.A.getVideoData({playerType:K})?.isAd())return{};h={opt_adElement:h,opt_fullscreen:this.BY.get().isFullscreen()};return H9(R,b,h)}D(b,R,h,K,I){this.G.has(b)&&(K<=0||I<=0||kg(B9).D(b,R,h,K,I))}le({queryId:b}){this.G.get(b)?.le()}Vf({queryId:b}){this.G.get(b)?.Vf()}SP({queryId:b}){this.G.get(b)?.SP()}gG({queryId:b}){this.G.get(b)?.gG()}v9({queryId:b}){this.G.get(b)?.v9()}};var ppU=class{send(b,R,h,K=!1){try{ljP(this,b,R,h,K)}catch(I){}}};var l2z=class extends ppU{constructor(b,R,h,K,I){super();this.V=b;this.S=R;this.G=h;this.Y=K;this.X=I}};var a2z=class{constructor(b,R){this.G=b;this.VX=R}send(b,R,h,K){let I=!1;try{if(K==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||K==="ATTRIBUTION_SRC_MODE_XHR_OPTION")I=!0,b=jHD(b);K=I;var N=g.ai(b);if(N[1]==="https")var p=b;else N[1]="https",p=ll("https",N[2],N[3],N[4],N[5],N[6],N[7]);const l=iKx(p);N=[];const a=Eb(p)&&this.VX.get().A.L().experiments.O9("add_auth_headers_to_remarketing_google_dot_com_ping");if(nD(p)||a)N.push({headerType:"USER_AUTH"}),N.push({headerType:"PLUS_PAGE_ID"}),N.push({headerType:"VISITOR_ID"}), N.push({headerType:"EOM_VISITOR_ID"}),N.push({headerType:"AUTH_USER"}),N.push({headerType:"DATASYNC_ID"});this.G.send({baseUrl:p,scrubReferrer:l,headers:N},R,h,K)}catch(l){}}};var Cm=class{constructor(b,R,h,K,I,N,p=new l2z(()=>{const l=b.L(),a=b.getVideoData({playerType:1});return g.js(l,a?a.J():"")},()=>b.L().pageId,()=>b.L().T6,()=>b.L().datasyncId??"",()=>b.L().experiments)){this.A=b; this.Y=R;this.Dl=h;this.s9=K;this.cH=I;this.VX=N;this.V=p;this.lS=null;this.G=new Map;this.X=new a2z(p,this.VX)}fh(){return this.A.fh(1)}};var MX=class extends g.N3{constructor(b,R,h){super();this.A=b;this.Bo=R;this.VX=h;this.listeners=[];this.Uu=null;this.ZF=new Map;R=new g.Ke(this);g.n(this,R);R.j(b,"videodatachange",this.KH);kO(b.L().Mj())?R.j(b,"playbackChange",this.D_):R.j(b,"serverstitchedvideochange",this.q$);this.Sz=od(this)}kX(){return this.A.getVideoData({playerType:1}).clientPlaybackNonce}addListener(b){this.listeners.push(b)}removeListener(b){this.listeners=this.listeners.filter(R=>R!==b)}JE(){this.ZF.clear(); this.Uu=null;this.Bo.get().clear()}TT(){}KH(b,R,h){R.videoId==="nPpU29QrbiU"&&this.A.YZ("ads_ssm_vdc_s",{pt:h,dvt:b});dT(this.VX.get())&&b!=="dataloaded"||Jp(this,R,h)}D_(b){if(this.A.getVideoData({playerType:1}).enableServerStitchedDai)for(const R of b.started){b=this.A.getStartTime({cpn:R.cpn});const h=this.A.getVideoData({cpn:R.cpn}),K=this.A.getPlayerType(R.cpn);let I=null;K===2&&(this.Uu=R.cpn,b===void 0?u2("Expected ad video start time on SS video changed"):this.ZF.set(R.cpn,b),I=OF(this.Bo.get(), R.cpn));this.A.getVideoData({playerType:1}).YZ("ads_ssvc",{pt:K,cpn:h?.clientPlaybackNonce,crtt:this.A.getCurrentTime({playerType:K,eh:!1}),atlh:this.A.isAtLiveHead(),adstt:b,pid:R.cpn,slid:I?.layoutId});h&&K?Jp(this,h,K):u2("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.A.getVideoData({playerType:1}).clientPlaybackNonce,timelinePlaybackId:R.cpn})}}q$(b,R){b!==void 0&&(this.Uu=b,R===void 0||isNaN(R)?u2("Expected ad video start time on SS video changed"):this.ZF.set(b, R));const h=this.A.getPresentingPlayerType(!0),K=this.A.getVideoData({playerType:h}),I=b===void 0?null:OF(this.Bo.get(),b);this.A.getVideoData({playerType:1}).YZ("ads_ssvc",{pt:h,cpn:K?.clientPlaybackNonce,crtt:this.A.getCurrentTime({playerType:1,eh:!1}),atlh:this.A.isAtLiveHead(),adstt:R,pid:b,slid:I?.layoutId});K?Jp(this,K,h):u2("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.A.getVideoData({playerType:1}).clientPlaybackNonce,timelinePlaybackId:b})}mI(b,R){const h= b.author,K=b.clientPlaybackNonce,I=b.isListed;var N=b.BD;const p=b.title,l=b.wR,a=b.Nf,v=b.isMdxPlayback,B=b.SR,H=b.mdxEnvironment,q=b.isAutonav,d=b.qn,t=b.xV,S=b.X0,J=b.videoId||"",e=b.profilePicture||"",Y=b.zI||"",Q=b.mY()||!1,P=b.eK()||!1;b=b.F8||void 0;N=OF(this.Bo.get(),N)||{layoutId:null,slotId:null};var $B=this.A.getVideoData({playerType:1});const IK=$B.AO();$B=$B.getPlayerResponse();R=1E3*this.A.getDuration(R);const Pe=1E3*this.A.getDuration(1);return{...N,videoId:J,author:h,clientPlaybackNonce:K, EK:R,I8:Pe,daiEnabled:$B?.playerConfig?.daiConfig?.enableDai||!1,q6:$B?.playerConfig?.daiConfig?.enablePreroll||!1,isListed:I,AO:IK,profilePicture:e,title:p,zI:Y,wR:l,Nf:a,F8:b,isMdxPlayback:v,SR:B,mdxEnvironment:H,isAutonav:q,qn:d,xV:t,X0:S,mY:Q,eK:P}}X5(){this.listeners.length=0;this.Sz=null;super.X5()}};var rF=class extends g.N3{constructor(b,R){super();this.A=b;this.s9=R;this.listeners=[];this.Hn=[];this.cn=()=>{u2("Called 'doUnlockPreroll' before it's initialized.")}; R=new vi(this);const h=new g.Ke(this);g.n(this,h);g.n(this,R);R.j(b,"progresssync",this.Y);R.j(b,"presentingplayerstatechange",this.G);R.j(b,"fullscreentoggled",this.onFullscreenToggled);R.j(b,"onVolumeChange",this.onVolumeChange);R.j(b,"minimized",this.O8);R.j(b,"overlayvisibilitychange",this.yK);R.j(b,"shortsadswipe",this.gh);R.j(b,"resize",this.fz);h.j(b,g.fM("appad"),this.Xf)}JE(){this.cn=xs(()=>{this.A.HY()||this.A.QA("ad",1)})}TT(){}addListener(b){this.listeners.push(b)}removeListener(b){this.listeners= this.listeners.filter(R=>R!==b)}XK(){}playVideo(){this.A.playVideo()}pauseVideo(){this.A.pauseVideo()}resumeVideo(b){this.WZ(b)&&this.A.playVideo()}WZ(b){return this.A.getPlayerState(b)===2}getCurrentTimeSec(b,R){const h=this.s9.get().Uu; return b!==2||R||h===null?this.A.getCurrentTime({playerType:b,eh:R}):QD(this,h)}getVolume(){return this.A.getVolume()}isMuted(){return this.A.isMuted()}getPresentingPlayerType(){return this.A.getPresentingPlayerType(!0)}getPlayerState(b){return this.A.getPlayerState(b)}getGetAdBreakContext(){return this.A.getGetAdBreakContext()}isFullscreen(){return this.A.isFullscreen()}isAtLiveHead(){return this.A.isAtLiveHead()}zU(b){this.A.zU(b)}Y(){const b=this.A.getPresentingPlayerType(!0),R=this.getCurrentTimeSec(b, !1);if(b===2)for(const h of this.listeners)h.F4(R);else if(b===1)for(const h of this.Hn)h.XK(R)}G(b){for(const R of this.listeners)R.j5(b,this.getPresentingPlayerType())}onFullscreenToggled(b){for(const R of this.listeners)R.onFullscreenToggled(b)}onVolumeChange(){for(const b of this.listeners)b.onVolumeChange()}O8(){const b=this.A.isMinimized();for(const R of this.listeners)R.O8(b)}yK(b){for(const R of this.listeners)R.yK(b)}fz(){const b=this.A.tX().P$();for(const R of this.listeners)R.Iw(b)}Xf(b){for(const R of this.listeners)R.Xf(b)}gh(){for(const b of this.listeners)b.gh()}};var kxP=class extends g.N3{constructor(b,R,h,K){super();const I=r(()=>new ne(this.VX)); g.n(this,I);const N=r(()=>new ER(I)); g.n(this,N);const p=r(()=>new fe); g.n(this,p);const l=r(()=>new qY(b)); g.n(this,l);const a=r(()=>new Jm(I,N,this.VX)); g.n(this,a);const v=r(()=>new k$); g.n(this,v);this.JO=r(()=>new Ch(K)); g.n(this,this.JO);this.BR=r(()=>new PK(R)); g.n(this,this.BR);this.Ma=r(()=>new Zt(R)); g.n(this,this.Ma);this.xs=r(()=>new cK(R)); g.n(this,this.xs);this.Op=r(()=>new u_(R)); g.n(this,this.Op);this.VX=r(()=>new Xn(R)); g.n(this,this.VX);const B=r(()=>new V1(this.VX)); g.n(this,B);const H=r(()=>new aV(I,a,N,this.VX,B,null,null,null,null)); g.n(this,H);this.s9=r(()=>new MX(R,v,this.VX)); g.n(this,this.s9);const {cH:q,context:d}=tp({s9:this.s9,VX:this.VX,Og:B});this.cH=q;this.BY=r(()=>new rF(R,this.s9)); g.n(this,this.BY);this.Dl=r(()=>new V9(this.BY,R,this.VX)); g.n(this,this.Dl);this.aH=r(()=>new Cm(R,p,this.Dl,this.s9,this.cH,this.VX)); g.n(this,this.aH);this.XH=new HS(l,H,h,b,this.s9,this.BY,this.BR);g.n(this,this.XH);const t=new m4(R,this.XH,this.BY,this.s9);this.Xy=r(()=>t); this.B9=t;this.lP=new dU(l,a,this.Ma,this.Xy,d);g.n(this,this.lP);this.Mb=new pe(this.VX,l,H,this.s9,this.lP,h,this.xs);g.n(this,this.Mb);this.X9={cP:new Map,gK:new Map,l3:new Map,Hk:new Map,EC:new Map};this.listeners=[];this.ya={Mb:this.Mb,xk:this.VX.get(),eY:this.JO.get(),jI:this.BY.get(),XH:this.XH,iY:I.get(),G_:null,kJ:{zs(){}},Im:p.get(),V$:this.s9.get()}}};var vzR=class extends g.N3{constructor(b){super();this.Ro=b;this.Ro.get().addListener(this)}X5(){this.Ro.HY()||this.Ro.get().removeListener(this);super.X5()}};var Lm=class{constructor(b){this.G=b}fetch(b){const {dA:R,a9:h,H5:K,cueProcessedMs:I=0}=b;return this.G.fetch(R,{H5:K,qF:h,cueProcessedMs:I}).then(N=>jbB(N,h))}};var wF=class extends g.N3{constructor(b){super();this.A=b;this.listeners=[];this.G=new vi(this);g.n(this,this.G);this.G.j(this.A,"aduxclicked",this.onAdUxClicked);this.G.j(this.A,"aduxmouseover",this.Y2);this.G.j(this.A,"aduxmouseout",this.Gt);this.G.j(this.A,"muteadaccepted",this.Y)}addListener(b){this.listeners.push(b)}removeListener(b){this.listeners=this.listeners.filter(R=>R!==b)}MI(b){ise(this,b,1)}onAdUxClicked(b,R){xP(this,h=>{h.LT(b,R)})}Y2(b){xP(this,R=>{R.qv(b)})}Gt(b){xP(this,R=>{R.Z3(b)})}Y(b){xP(this, R=>{R.X_(b)})}};var Bxc=class{constructor(b,R=!1){this.Y=b;this.X=R;this.G={}}reduce(b){switch(b.event){case "unknown":return}var R=b.identifier;var h=this.G[R];h?R=h:(h={oX:null,Zo:-Infinity},R=this.G[R]=h);h=b.startSecs+b.G/1E3;if(!(hR!==b)}Pk(b){gGK(this,b); if(this.A.L().experiments.Mj().G.WY(pKK)&&this.A.getVideoData({playerType:1})?.eK()&&(b.event==="continue"||b.event==="stop")||wR2(this.VX.get())&&this.A.getCurrentTime({playerType:1})===0&&this.A.getVideoData({playerType:1}).eK())return!1;this.S.reduce(b);b=this.V;this.V=!1;return b}J(b){const R=this.A.getVideoData({playerType:1}).isDaiEnabled();if(R||!g.bU(this.A.L()))for(const h of b)gGK(this,h),yU(this.VX.get())&&this.A.getCurrentTime({playerType:1})===0&&h.event==="start"&&cz(this.aH.get(),"ocuz", `cpi.${h.identifier};cpe.${h.event};cps.${h.startSecs};cpd.${h.oY}`),R?wR2(this.VX.get())&&this.A.getCurrentTime({playerType:1})===0&&this.A.getVideoData({playerType:1}).eK()||this.S.reduce(h):this.A.getCurrentTime({playerType:1})!==0&&h.event==="start"&&(this.VX.get().A.L().experiments.O9("ignore_overlapping_cue_points_on_endemic_live_html5")&&(this.G==null||this.VX.get().A.L().experiments.O9("enable_only_drop_overlapping_cuepoints_with_same_identifier")&&this.G.identifier!==h.identifier?0:h.startSecs+ h.oY>=this.G.startSecs&&h.startSecs<=this.G.startSecs+this.G.oY)?(yU(this.VX.get())&&h.identifier!==this.G?.identifier&&cz(this.aH.get(),"ocud",`ccpi.${h.identifier};ccpe.${h.event};ccps.${h.startSecs}; ccpd.${h.oY};pcpi.${this.G?.identifier};pcpe.${this.G?.event}; pcps.${this.G?.startSecs};pcpd.${this.G?.oY};`),h.identifier!==this.G?.identifier&&u2("Latest Endemic Live Web cue point overlaps with previous cue point")):(this.G=h,UGK(this,h)))}X5(){this.Y!=null&&(this.Y.unsubscribe("cuepointupdated",this.J,this),this.Y=null);this.listeners.length=0;this.HB.length=0;super.X5()}};var oC=class{constructor(b){this.A=b}};var Dt=class{constructor(b){this.A=b}Yp(b,R,h,K,I,N,p,l){return this.A.Yp(b,R,h,K,I,N,p,l!==void 0?{LU:l}:void 0)}kA(b,R){this.A.kA(b,R)}y7(b,R,h){this.A.y7(b,R,h)}G9(b){this.A.G9({LU:b})}Kn(b,R,h,K,I,N,p,l){this.A.Kn(b,R,h,K,I,N,p,l!==void 0?{LU:l}:void 0)}u3(b){return this.A.u3(b)}finishSegmentByCpn(b,R,h){h=WZ2(h);this.A.finishSegmentByCpn(b,R,h)}};var bx=class extends g.N3{constructor(){super(...arguments);this.UP=new Map}};var qt3=class{constructor(b){this.A=b}};var SGx=class extends g.N3{constructor(b,R,h,K,I){super();const N=r(()=>new ne(this.VX)); g.n(this,N);const p=r(()=>new ER(N)); g.n(this,p);const l=r(()=>new fe); g.n(this,l);const a=r(()=>new qY(b)); g.n(this,a);const v=r(()=>new Jm(N,p,this.VX)); g.n(this,v);const B=r(()=>new k$); g.n(this,B);this.TD=r(()=>new wF(R)); g.n(this,this.TD);this.JO=r(()=>new Ch(I)); g.n(this,this.JO);this.BR=r(()=>new PK(R)); g.n(this,this.BR);this.Ma=r(()=>new Zt(R)); g.n(this,this.Ma);this.xs=r(()=>new cK(R)); g.n(this,this.xs);this.Op=r(()=>new u_(R)); g.n(this,this.Op);this.VX=r(()=>new Xn(R)); g.n(this,this.VX);const H=r(()=>new Lm(K)); g.n(this,H);const q=r(()=>new V1(this.VX)); g.n(this,q);this.vr=r(()=>new oC(R)); g.n(this,this.vr);this.Ro=r(()=>new M2q); g.n(this,this.Ro);this.s9=r(()=>new MX(R,B,this.VX)); g.n(this,this.s9);const {cH:d,context:t}=tp({s9:this.s9,VX:this.VX,Og:q});this.cH=d;this.Zq=r(()=>new Fn(R,this.VX,this.aH)); g.n(this,this.Zq);this.b5=r(()=>new Dt(R)); g.n(this,this.b5);this.BY=r(()=>new rF(R,this.s9)); g.n(this,this.BY);this.Gz=r(()=>new bx); g.n(this,this.Gz);const S=r(()=>new aV(N,v,p,this.VX,q,"SLOT_TYPE_ABOVE_FEED",this.BY,this.uR,this.r3)); g.n(this,S);this.DQ=r(()=>new MM(this.VX)); this.Dl=r(()=>new V9(this.BY,R,this.VX)); g.n(this,this.Dl);this.aH=r(()=>new Cm(R,l,this.Dl,this.s9,this.cH,this.VX)); g.n(this,this.aH);this.l6=new BS(jt,(e,Y,Q,P)=>k4(p.get(),e,Y,Q,P),a,v,p,q,this.VX,this.s9); g.n(this,this.l6);this.XH=new HS(a,S,h,b,this.s9,this.BY,this.BR);g.n(this,this.XH);const J=new m4(R,this.XH,this.BY,this.s9,this.Zq);this.Xy=r(()=>J); this.B9=J;this.uR=new vS(a,v,this.Xy,this.Zq,this.BY,this.VX,this.aH,this.b5);g.n(this,this.uR);this.lP=new dU(a,v,this.Ma,this.Xy,t);g.n(this,this.lP);this.Mb=new pe(this.VX,a,S,this.s9,this.lP,h,this.xs);g.n(this,this.Mb);this.eJ=r(()=>new rc(H,p,q,this.VX,this.aH,this.BY,this.b5)); g.n(this,this.eJ);this.Y4=r(()=>new Lh); g.n(this,this.Y4);this.jr=new jA(b,this.TD,this.VX);g.n(this,this.jr);this.Lz=new Am(b);g.n(this,this.Lz);this.gE=new AGP(b);g.n(this,this.gE);this.hq=new z2(b,this.Xy,t);g.n(this,this.hq);this.zJ=new UR(b,this.Ma,this.BY,this.s9);g.n(this,this.zJ);this.Go=new icK(b,this.s9);g.n(this,this.Go);this.r3=new WS(b,this.Zq,this.BY,this.aH,this.Xy,this.uR);g.n(this,this.r3);this.WO=new G2(b);g.n(this,this.WO);this.un=new SA;g.n(this,this.un);this.v$=new gU(b);g.n(this,this.v$);this.Ta=new zET(b);g.n(this, this.Ta);this.un=new SA;g.n(this,this.un);this.C5=r(()=>new ys); g.n(this,this.C5);this.Sx=r(()=>new tm(this.BY)); g.n(this,this.Sx);this.qD=r(()=>new GAq(this.TD,this.aH,b,l,this.Dl)); g.n(this,this.qD);this.md=r(()=>new Dl(this.Mb,a,N)); g.n(this,this.md);this.RU=r(()=>new bt(this.VX,this.aH,this.WO,this.Dl)); g.n(this,this.RU);this.VK=r(()=>new bcq(b,this.un,this.WO,this.s9,this.b5,this.BY,this.Gz,this.aH,B,this.Zq,this.Dl,this.DQ,this.xs,this.Ma,this.BR,this.Op,this.JO,this.vr,this.VX,l,t)); g.n(this,this.VK);this.fQ=r(()=>new YLH(this.BY,this.aH,this.JO,this.VX,this.Dl,this.s9)); g.n(this,this.fQ);this.z7=r(()=>new pUH(this.TD,this.BY,this.aH,l,this.Dl,this.gE,this.Ta,this.JO,this.VX,h)); g.n(this,this.z7);this.zQ=r(()=>new gxw(this.TD,this.aH,l)); g.n(this,this.zQ);this.zi=new vzR(this.Ro);g.n(this,this.zi);this.X9={cP:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Mb],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.uR],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.l6],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.XH],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.lP]]),gK:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.eJ],["SLOT_TYPE_ABOVE_FEED",this.Y4],["SLOT_TYPE_FORECASTING",this.Y4], ["SLOT_TYPE_IN_PLAYER",this.Y4],["SLOT_TYPE_PLAYER_BYTES",this.Y4],["SLOT_TYPE_PLAYER_UNDERLAY",this.Y4],["SLOT_TYPE_PLAYBACK_TRACKING",this.Y4],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Y4]]),l3:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.jr],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.jr],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Lz],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Lz],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Lz],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Lz],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.Lz],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Lz],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Lz],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Lz],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Lz],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.Lz],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Lz],["TRIGGER_TYPE_CLOSE_REQUESTED",this.gE],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.hq],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.zJ],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.zJ],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.zJ],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.zJ],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.zJ],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.zJ],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.zJ],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Go],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Go],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.WO],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.hq],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.v$],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Ta],["TRIGGER_TYPE_AD_BREAK_STARTED",this.un],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.r3],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.r3],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.r3],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.r3],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.r3]]),Hk:new Map([["SLOT_TYPE_ABOVE_FEED",this.C5], ["SLOT_TYPE_AD_BREAK_REQUEST",this.C5],["SLOT_TYPE_FORECASTING",this.C5],["SLOT_TYPE_IN_PLAYER",this.C5],["SLOT_TYPE_PLAYER_BYTES",this.Sx],["SLOT_TYPE_PLAYER_UNDERLAY",this.C5],["SLOT_TYPE_PLAYBACK_TRACKING",this.C5],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.C5]]),EC:new Map([["SLOT_TYPE_ABOVE_FEED",this.qD],["SLOT_TYPE_AD_BREAK_REQUEST",this.md],["SLOT_TYPE_FORECASTING",this.RU],["SLOT_TYPE_PLAYER_BYTES",this.VK],["SLOT_TYPE_PLAYBACK_TRACKING",this.fQ],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.fQ],["SLOT_TYPE_IN_PLAYER",this.z7],["SLOT_TYPE_PLAYER_UNDERLAY",this.zQ]])};this.listeners=[l.get()];this.ya={Mb:this.Mb,xk:this.VX.get(),eY:this.JO.get(),jI:this.BY.get(),XH:this.XH,iY:N.get(),G_:this.Ro.get(),kJ:this.jr,Im:l.get(),V$:this.s9.get()}}};var nGq=class extends g.N3{constructor(b,R,h,K,I){super();const N=r(()=>new ne(this.VX)); g.n(this,N);const p=r(()=>new ER(N)); g.n(this,p);const l=r(()=>new fe); g.n(this,l);const a=r(()=>new qY(b)); g.n(this,a);const v=r(()=>new Jm(N,p,this.VX)); g.n(this,v);const B=r(()=>new k$); g.n(this,B);this.TD=r(()=>new wF(R)); g.n(this,this.TD);this.JO=r(()=>new Ch(I)); g.n(this,this.JO);this.BR=r(()=>new PK(R)); g.n(this,this.BR);this.Ma=r(()=>new Zt(R)); g.n(this,this.Ma);this.xs=r(()=>new cK(R)); g.n(this,this.xs);this.Op=r(()=>new u_(R)); g.n(this,this.Op);this.VX=r(()=>new Xn(R)); g.n(this,this.VX);const H=r(()=>new Lm(K)); g.n(this,H);const q=r(()=>new V1(this.VX)); g.n(this,q);const d=r(()=>new aV(N,v,p,this.VX,q,null,null,this.uR,this.r3)); g.n(this,d);this.vr=r(()=>new oC(R)); g.n(this,this.vr);this.Ro=r(()=>new M2q); g.n(this,this.Ro);this.s9=r(()=>new MX(R,B,this.VX)); g.n(this,this.s9);const {cH:t,context:S}=tp({s9:this.s9,VX:this.VX,Og:q});this.cH=t;this.Zq=r(()=>new Fn(R,this.VX,this.aH)); this.BY=r(()=>new rF(R,this.s9)); g.n(this,this.BY);this.Gz=r(()=>new bx); g.n(this,this.Gz);this.Dl=r(()=>new V9(this.BY,R,this.VX)); g.n(this,this.Dl);this.aH=r(()=>new Cm(R,l,this.Dl,this.s9,this.cH,this.VX)); g.n(this,this.aH);this.DQ=r(()=>new MM(this.VX)); g.n(this,this.DQ);this.l6=new BS(jt,(e,Y,Q,P)=>k4(p.get(),e,Y,Q,P),a,v,p,q,this.VX,this.s9); g.n(this,this.l6);this.XH=new HS(a,d,h,b,this.s9,this.BY,this.BR);g.n(this,this.XH);const J=new m4(R,this.XH,this.BY,this.s9,this.Zq);this.Xy=r(()=>J); this.B9=J;this.uR=new vS(a,v,this.Xy,this.Zq,this.BY,this.VX,this.aH);g.n(this,this.uR);this.lP=new dU(a,v,this.Ma,this.Xy,S);g.n(this,this.lP);this.Mb=new pe(this.VX,a,d,this.s9,this.lP,h,this.xs);g.n(this,this.Mb);this.eJ=r(()=>new rc(H,p,q,this.VX,this.aH,this.BY)); g.n(this,this.eJ);this.Y4=r(()=>new Lh); g.n(this,this.Y4);this.jr=new jA(b,this.TD,this.VX);g.n(this,this.jr);this.Lz=new Am(b);g.n(this,this.Lz);this.gE=new AGP(b);g.n(this,this.gE);this.hq=new z2(b,this.Xy,S);g.n(this,this.hq);this.zJ=new UR(b,this.Ma,this.BY,this.s9);g.n(this,this.zJ);this.WO=new G2(b);g.n(this,this.WO);this.v$=new gU(b);g.n(this,this.v$);this.Ta=new zET(b);g.n(this,this.Ta);this.b5=r(()=>new Dt(R)); g.n(this,this.b5);this.un=new SA;g.n(this,this.un);this.r3=new WS(b,this.Zq,this.BY,this.aH,this.Xy,this.uR);g.n(this,this.r3);this.C5=r(()=>new ys); g.n(this,this.C5);this.Sx=r(()=>new tm(this.BY)); g.n(this,this.Sx);this.md=r(()=>new Dl(this.Mb,a,N)); g.n(this,this.md);this.RU=r(()=>new bt(this.VX,this.aH,this.WO,this.Dl)); g.n(this,this.RU);this.z7=r(()=>new l1B(this.TD,this.BY,this.aH,l,this.Dl,this.gE,this.Ta,this.JO,this.VX,h)); g.n(this,this.z7);this.VK=r(()=>new IV(b,this.un,this.WO,this.aH,this.Dl,this.DQ,this.xs,this.s9,this.BY,this.Gz,this.Ma,this.BR,this.Op,this.JO,this.vr,this.VX,this.b5,S)); g.n(this,this.VK);this.zi=new vzR(this.Ro);g.n(this,this.zi);this.X9={cP:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Mb],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.uR],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.l6],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.XH],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.lP]]),gK:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.eJ],["SLOT_TYPE_FORECASTING",this.Y4],["SLOT_TYPE_IN_PLAYER",this.Y4], ["SLOT_TYPE_PLAYER_BYTES",this.Y4]]),l3:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.jr],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Lz],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Lz],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Lz],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Lz],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Lz],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Lz],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Lz],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Lz],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Lz], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Lz],["TRIGGER_TYPE_CLOSE_REQUESTED",this.gE],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.hq],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.zJ],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.zJ],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.zJ],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.WO],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.hq],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.v$],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.Ta],["TRIGGER_TYPE_AD_BREAK_STARTED",this.un],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.r3],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.r3],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.r3],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.r3],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.r3]]),Hk:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.C5],["SLOT_TYPE_FORECASTING",this.C5],["SLOT_TYPE_IN_PLAYER",this.C5],["SLOT_TYPE_PLAYER_BYTES",this.Sx]]), EC:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.md],["SLOT_TYPE_FORECASTING",this.RU],["SLOT_TYPE_IN_PLAYER",this.z7],["SLOT_TYPE_PLAYER_BYTES",this.VK]])};this.listeners=[l.get()];this.ya={Mb:this.Mb,xk:this.VX.get(),eY:this.JO.get(),jI:this.BY.get(),XH:this.XH,iY:N.get(),G_:this.Ro.get(),kJ:this.jr,Im:l.get(),V$:this.s9.get()}}};var EGK=class extends g.N3{constructor(b,R,h,K,I){super();const N=r(()=>new ne(this.VX)); g.n(this,N);const p=r(()=>new ER(N)); g.n(this,p);const l=r(()=>new fe); g.n(this,l);const a=r(()=>new qY(b)); g.n(this,a);const v=r(()=>new Jm(N,p,this.VX)); g.n(this,v);const B=r(()=>new k$); g.n(this,B);this.TD=r(()=>new wF(R)); g.n(this,this.TD);this.JO=r(()=>new Ch(I)); g.n(this,this.JO);this.BR=r(()=>new PK(R)); g.n(this,this.BR);this.Ma=r(()=>new Zt(R)); g.n(this,this.Ma);this.xs=r(()=>new cK(R)); g.n(this,this.xs);this.Op=r(()=>new u_(R)); g.n(this,this.Op);this.VX=r(()=>new Xn(R)); g.n(this,this.VX);const H=r(()=>new Lm(K)); g.n(this,H);const q=r(()=>new V1(this.VX)); g.n(this,q);const d=r(()=>new aV(N,v,p,this.VX,q,null,null,null,null)); g.n(this,d);this.vr=r(()=>new oC(R)); g.n(this,this.vr);this.s9=r(()=>new MX(R,B,this.VX)); g.n(this,this.s9);const {cH:t,context:S}=tp({s9:this.s9,VX:this.VX,Og:q});this.cH=t;this.BY=r(()=>new rF(R,this.s9)); g.n(this,this.BY);this.Gz=r(()=>new bx); g.n(this,this.Gz);this.Dl=r(()=>new V9(this.BY,R,this.VX)); g.n(this,this.Dl);this.aH=r(()=>new Cm(R,l,this.Dl,this.s9,this.cH,this.VX)); g.n(this,this.aH);this.DQ=r(()=>new MM(this.VX)); g.n(this,this.DQ);this.l6=new BS(jt,(e,Y,Q,P)=>k4(p.get(),e,Y,Q,P),a,v,p,q,this.VX,this.s9); g.n(this,this.l6);this.XH=new HS(a,d,h,b,this.s9,this.BY,this.BR);g.n(this,this.XH);const J=new m4(R,this.XH,this.BY,this.s9);this.Xy=r(()=>J); this.B9=J;this.lP=new dU(a,v,this.Ma,this.Xy,S);g.n(this,this.lP);this.Mb=new pe(this.VX,a,d,this.s9,this.lP,h,this.xs);g.n(this,this.Mb);this.eJ=r(()=>new rc(H,p,q,this.VX,this.aH,this.BY)); g.n(this,this.eJ);this.Y4=r(()=>new Lh); g.n(this,this.Y4);this.jr=new jA(b,this.TD,this.VX);g.n(this,this.jr);this.Lz=new Am(b);g.n(this,this.Lz);this.hq=new z2(b,this.Xy,S);g.n(this,this.hq);this.zJ=new UR(b,this.Ma,this.BY,this.s9);g.n(this,this.zJ);this.WO=new G2(b);g.n(this,this.WO);this.v$=new gU(b);g.n(this,this.v$);this.b5=r(()=>new Dt(R)); g.n(this,this.b5);this.un=new SA;g.n(this,this.un);this.C5=r(()=>new ys); g.n(this,this.C5);this.Sx=r(()=>new tm(this.BY)); g.n(this,this.Sx);this.md=r(()=>new Dl(this.Mb,a,N)); g.n(this,this.md);this.RU=r(()=>new bt(this.VX,this.aH,this.WO,this.Dl)); g.n(this,this.RU);this.pD=r(()=>new J4K(this.TD,this.BY,this.aH,l,h,this.VX)); g.n(this,this.pD);this.VK=r(()=>new IV(b,this.un,this.WO,this.aH,this.Dl,this.DQ,this.xs,this.s9,this.BY,this.Gz,this.Ma,this.BR,this.Op,this.JO,this.vr,this.VX,this.b5,S)); g.n(this,this.VK);this.X9={cP:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Mb],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.l6],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.XH],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.lP]]),gK:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.eJ],["SLOT_TYPE_FORECASTING",this.Y4],["SLOT_TYPE_IN_PLAYER",this.Y4],["SLOT_TYPE_PLAYER_BYTES",this.Y4]]),l3:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.jr],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.Lz],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Lz],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Lz],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Lz],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Lz],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Lz],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Lz],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Lz],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Lz],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.hq],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.zJ],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.zJ],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.WO],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.hq],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.v$],["TRIGGER_TYPE_AD_BREAK_STARTED",this.un]]),Hk:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.C5],["SLOT_TYPE_ABOVE_FEED",this.C5],["SLOT_TYPE_FORECASTING",this.C5],["SLOT_TYPE_IN_PLAYER",this.C5],["SLOT_TYPE_PLAYER_BYTES",this.Sx]]),EC:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.md],["SLOT_TYPE_FORECASTING",this.RU],["SLOT_TYPE_IN_PLAYER", this.pD],["SLOT_TYPE_PLAYER_BYTES",this.VK]])};this.listeners=[l.get()];this.ya={Mb:this.Mb,xk:this.VX.get(),eY:this.JO.get(),jI:this.BY.get(),XH:this.XH,iY:N.get(),G_:null,kJ:this.jr,Im:l.get(),V$:this.s9.get()}}};var T_K=class extends g.N3{constructor(b,R,h,K,I){super();const N=r(()=>new ne(this.VX)); g.n(this,N);const p=r(()=>new ER(N)); g.n(this,p);const l=r(()=>new fe); g.n(this,l);const a=r(()=>new qY(b)); g.n(this,a);const v=r(()=>new Jm(N,p,this.VX)); g.n(this,v);const B=r(()=>new k$); g.n(this,B);this.AZ=r(()=>new qt3(R)); g.n(this,this.AZ);this.TD=r(()=>new wF(R)); g.n(this,this.TD);this.JO=r(()=>new Ch(I)); g.n(this,this.JO);this.BR=r(()=>new PK(R)); g.n(this,this.BR);this.Ma=r(()=>new Zt(R)); g.n(this,this.Ma);this.xs=r(()=>new cK(R)); g.n(this,this.xs);this.Op=r(()=>new u_(R)); g.n(this,this.Op);this.VX=r(()=>new Xn(R)); g.n(this,this.VX);const H=r(()=>new Lm(K)); g.n(this,H);const q=r(()=>new V1(this.VX)); g.n(this,q);const d=r(()=>new aV(N,v,p,this.VX,q,null,null,null,null)); g.n(this,d);this.vr=r(()=>new oC(R)); g.n(this,this.vr);this.s9=r(()=>new MX(R,B,this.VX)); g.n(this,this.s9);const {cH:t,context:S}=tp({s9:this.s9,VX:this.VX,Og:q});this.cH=t;this.BY=r(()=>new rF(R,this.s9)); g.n(this,this.BY);this.Gz=r(()=>new bx); g.n(this,this.Gz);this.Dl=r(()=>new V9(this.BY,R,this.VX)); g.n(this,this.Dl);this.aH=r(()=>new Cm(R,l,this.Dl,this.s9,this.cH,this.VX)); g.n(this,this.aH);this.DQ=r(()=>new MM(this.VX)); g.n(this,this.DQ);this.l6=new BS(XLq,(e,Y,Q,P)=>qoB(p.get(),e,Y,Q,P),a,v,p,q,this.VX,this.s9); g.n(this,this.l6);this.XH=new HS(a,d,h,b,this.s9,this.BY,this.BR);g.n(this,this.XH);const J=new m4(R,this.XH,this.BY,this.s9);this.Xy=r(()=>J); this.B9=J;this.lP=new dU(a,v,this.Ma,this.Xy,S);g.n(this,this.lP);this.Mb=new pe(this.VX,a,d,this.s9,this.lP,h,this.xs);g.n(this,this.Mb);this.eJ=r(()=>new rc(H,p,q,this.VX,this.aH,this.BY)); g.n(this,this.eJ);this.Y4=r(()=>new Lh); g.n(this,this.Y4);this.jr=new jA(b,this.TD,this.VX);g.n(this,this.jr);this.Lz=new Am(b);g.n(this,this.Lz);this.hq=new z2(b,this.Xy,S);g.n(this,this.hq);this.zJ=new UR(b,this.Ma,this.BY,this.s9);g.n(this,this.zJ);this.WO=new G2(b);g.n(this,this.WO);this.v$=new gU(b);g.n(this,this.v$);this.b5=r(()=>new Dt(R)); g.n(this,this.b5);this.un=new SA;g.n(this,this.un);this.C5=r(()=>new ys); g.n(this,this.C5);this.Sx=r(()=>new tm(this.BY)); g.n(this,this.Sx);this.md=r(()=>new Dl(this.Mb,a,N)); g.n(this,this.md);this.RU=r(()=>new bt(this.VX,this.aH,this.WO,this.Dl)); g.n(this,this.RU);this.VK=r(()=>new IV(b,this.un,this.WO,this.aH,this.Dl,this.DQ,this.xs,this.s9,this.BY,this.Gz,this.Ma,this.BR,this.Op,this.JO,this.vr,this.VX,this.b5,S)); g.n(this,this.VK);this.UI=r(()=>new vVB(this.TD,this.BY,this.aH,l,this.AZ,h,this.s9)); g.n(this,this.UI);this.X9={cP:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Mb],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.l6],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.XH],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.lP]]),gK:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.eJ],["SLOT_TYPE_FORECASTING",this.Y4],["SLOT_TYPE_IN_PLAYER",this.Y4],["SLOT_TYPE_PLAYER_BYTES",this.Y4]]),l3:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.jr],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.Lz],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Lz],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Lz],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Lz],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Lz],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Lz],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Lz],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Lz],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Lz],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.hq],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.zJ],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.zJ],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.WO],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.hq],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.v$],["TRIGGER_TYPE_AD_BREAK_STARTED",this.un]]),Hk:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.C5],["SLOT_TYPE_FORECASTING",this.C5],["SLOT_TYPE_IN_PLAYER",this.C5],["SLOT_TYPE_PLAYER_BYTES",this.Sx]]),EC:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.md],["SLOT_TYPE_FORECASTING",this.RU],["SLOT_TYPE_IN_PLAYER",this.UI],["SLOT_TYPE_PLAYER_BYTES", this.VK]])};this.listeners=[l.get()];this.ya={Mb:this.Mb,xk:this.VX.get(),eY:this.JO.get(),jI:this.BY.get(),XH:this.XH,iY:N.get(),G_:null,kJ:this.jr,Im:l.get(),V$:this.s9.get()}}};var J6K=class extends g.N3{constructor(b,R,h,K,I){super();const N=r(()=>new ne(this.VX)); g.n(this,N);const p=r(()=>new ER(N)); g.n(this,p);const l=r(()=>new fe); g.n(this,l);const a=r(()=>new qY(b)); g.n(this,a);const v=r(()=>new Jm(N,p,this.VX)); g.n(this,v);const B=r(()=>new k$); g.n(this,B);this.AZ=r(()=>new qt3(R)); g.n(this,this.AZ);this.TD=r(()=>new wF(R)); g.n(this,this.TD);this.JO=r(()=>new Ch(I)); g.n(this,this.JO);this.BR=r(()=>new PK(R)); g.n(this,this.BR);this.Ma=r(()=>new Zt(R)); g.n(this,this.Ma);this.xs=r(()=>new cK(R)); g.n(this,this.xs);this.Op=r(()=>new u_(R)); g.n(this,this.Op);this.VX=r(()=>new Xn(R)); g.n(this,this.VX);const H=r(()=>new Lm(K)); g.n(this,H);const q=r(()=>new V1(this.VX)); g.n(this,q);this.vr=r(()=>new oC(R)); g.n(this,this.vr);this.s9=r(()=>new MX(R,B,this.VX)); g.n(this,this.s9);const {cH:d,context:t}=tp({s9:this.s9,VX:this.VX,Og:q});this.cH=d;this.Zq=r(()=>new Fn(R,this.VX,this.aH)); g.n(this,this.Zq);this.b5=r(()=>new Dt(R)); g.n(this,this.b5);this.BY=r(()=>new rF(R,this.s9)); g.n(this,this.BY);this.Gz=r(()=>new bx); g.n(this,this.Gz);const S=r(()=>new aV(N,v,p,this.VX,q,null,this.BY,this.uR,this.r3,3)); g.n(this,S);this.DQ=r(()=>new MM(this.VX)); this.Dl=r(()=>new V9(this.BY,R,this.VX)); g.n(this,this.Dl);this.aH=r(()=>new Cm(R,l,this.Dl,this.s9,this.cH,this.VX)); g.n(this,this.aH);this.XH=new HS(a,S,h,b,this.s9,this.BY,this.BR);g.n(this,this.XH);const J=new m4(R,this.XH,this.BY,this.s9,this.Zq);this.Xy=r(()=>J); this.B9=J;this.l6=new BS(V5P,(e,Y,Q,P)=>qoB(p.get(),e,Y,Q,P),a,v,p,q,this.VX,this.s9); g.n(this,this.l6);this.uR=new vS(a,v,this.Xy,this.Zq,this.BY,this.VX,this.aH,this.b5);g.n(this,this.uR);this.lP=new dU(a,v,this.Ma,this.Xy,t);g.n(this,this.lP);this.Mb=new pe(this.VX,a,S,this.s9,this.lP,h,this.xs);g.n(this,this.Mb);this.eJ=r(()=>new rc(H,p,q,this.VX,this.aH,this.BY,this.b5)); g.n(this,this.eJ);this.Y4=r(()=>new Lh); g.n(this,this.Y4);this.jr=new jA(b,this.TD,this.VX);g.n(this,this.jr);this.Lz=new Am(b);g.n(this,this.Lz);this.hq=new z2(b,this.Xy,t);g.n(this,this.hq);this.zJ=new UR(b,this.Ma,this.BY,this.s9);g.n(this,this.zJ);this.Go=new icK(b,this.s9);g.n(this,this.Go);this.r3=new WS(b,this.Zq,this.BY,this.aH,this.Xy,this.uR);g.n(this,this.r3);this.WO=new G2(b);g.n(this,this.WO);this.v$=new gU(b);g.n(this,this.v$);this.un=new SA;g.n(this,this.un);this.C5=r(()=>new ys); g.n(this,this.C5);this.Sx=r(()=>new tm(this.BY)); g.n(this,this.Sx);this.md=r(()=>new Dl(this.Mb,a,N)); g.n(this,this.md);this.RU=r(()=>new bt(this.VX,this.aH,this.WO,this.Dl)); g.n(this,this.RU);this.VK=r(()=>new bcq(b,this.un,this.WO,this.s9,this.b5,this.BY,this.Gz,this.aH,B,this.Zq,this.Dl,this.DQ,this.xs,this.Ma,this.BR,this.Op,this.JO,this.vr,this.VX,l,t)); g.n(this,this.VK);this.z7=r(()=>new BJw(this.TD,this.BY,this.aH,l,this.AZ,h,this.VX,this.s9)); g.n(this,this.z7);this.X9={cP:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Mb],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.uR],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.l6],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.XH],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.lP]]),gK:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.eJ],["SLOT_TYPE_FORECASTING",this.Y4],["SLOT_TYPE_IN_PLAYER",this.Y4],["SLOT_TYPE_PLAYER_BYTES",this.Y4]]),l3:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.jr],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Lz],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Lz],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Lz],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Lz],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Lz],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Lz],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Lz],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Lz],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Lz],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.hq],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.zJ],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.zJ],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Go],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Go],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.WO],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.hq],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.v$],["TRIGGER_TYPE_AD_BREAK_STARTED",this.un],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.r3],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.r3],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.r3],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.r3],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.r3]]),Hk:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.C5],["SLOT_TYPE_FORECASTING",this.C5],["SLOT_TYPE_IN_PLAYER",this.C5],["SLOT_TYPE_PLAYER_BYTES",this.Sx]]),EC:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.md],["SLOT_TYPE_FORECASTING",this.RU],["SLOT_TYPE_PLAYER_BYTES",this.VK],["SLOT_TYPE_IN_PLAYER",this.z7]])};this.listeners=[l.get()]; this.ya={Mb:this.Mb,xk:this.VX.get(),eY:this.JO.get(),jI:this.BY.get(),XH:this.XH,iY:N.get(),G_:null,kJ:this.jr,Im:l.get(),V$:this.s9.get()}}};var dgt=class extends g.N3{constructor(b,R,h,K){super();const I=()=>this.Y; b.L().experiments.O9("html5_dispose_of_manager_before_dependency")?(this.G=YGB(I,b,R,h,K),this.Y=(new CZP(this.G)).X(),g.n(this,this.Y),g.n(this,this.G)):(this.G=YGB(I,b,R,h,K),g.n(this,this.G),this.Y=(new CZP(this.G)).X(),g.n(this,this.Y))}X(){return this.Y}};var f2z=class extends Wje{V(b){var R=b.content;if(R.componentType==="shopping-companion")switch(b.actionType){case 1:case 2:b=this.G.getVideoData({playerType:1});g.rw(this.G,"updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId,shoppingCompanionCarouselRenderer:R.renderer,layoutId:R.layoutId,macros:R.macros,onLayoutVisibleCallback:R.G,interactionLoggingClientData:R.interactionLoggingClientData});break;case 3:g.rw(this.G,"updateKevlarOrC3Companion",{})}else if(R.componentType==="action-companion")switch(b.actionType){case 1:case 2:b= this.G.getVideoData({playerType:1});g.rw(this.G,"updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId,actionCompanionAdRenderer:R.renderer,layoutId:R.layoutId,macros:R.macros,onLayoutVisibleCallback:R.G,interactionLoggingClientData:R.interactionLoggingClientData});break;case 3:R.renderer&&(R=this.G.getVideoData({playerType:1}),g.rw(this.G,"updateKevlarOrC3Companion",{contentVideoId:R&&R.videoId})),g.rw(this.G,"updateKevlarOrC3Companion",{})}else if(R.componentType==="image-companion")switch(b.actionType){case 1:case 2:b= this.G.getVideoData({playerType:1});g.rw(this.G,"updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId,imageCompanionAdRenderer:R.renderer,layoutId:R.layoutId,macros:R.macros,onLayoutVisibleCallback:R.G,interactionLoggingClientData:R.interactionLoggingClientData});break;case 3:R=this.G.getVideoData({playerType:1}),g.rw(this.G,"updateKevlarOrC3Companion",{contentVideoId:R&&R.videoId}),g.rw(this.G,"updateKevlarOrC3Companion",{})}else if(R.componentType==="top-banner-image-text-icon-buttoned")switch(b.actionType){case 1:case 2:b= this.G.getVideoData({playerType:1});g.rw(this.G,"updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId,topBannerImageTextIconButtonedLayoutViewModel:R.renderer,layoutId:R.layoutId,macros:R.macros,onLayoutVisibleCallback:R.G,interactionLoggingClientData:R.interactionLoggingClientData});break;case 3:R.renderer&&(R=this.G.getVideoData({playerType:1}),g.rw(this.G,"updateKevlarOrC3Companion",{contentVideoId:R&&R.videoId})),g.rw(this.G,"updateKevlarOrC3Companion",{})}else if(R.componentType==="banner-image")switch(b.actionType){case 1:case 2:b= this.G.getVideoData({playerType:1});g.rw(this.G,"updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId,bannerImageLayoutViewModel:R.renderer,layoutId:R.layoutId,macros:R.macros,onLayoutVisibleCallback:R.G,interactionLoggingClientData:R.interactionLoggingClientData});break;case 3:R=this.G.getVideoData({playerType:1}),g.rw(this.G,"updateKevlarOrC3Companion",{contentVideoId:R&&R.videoId}),g.rw(this.G,"updateKevlarOrC3Companion",{})}else if(R.componentType==="ads-engagement-panel")switch(R=R.renderer, b.actionType){case 1:case 2:g.rw(this.G,"updateEngagementPanelAction",R.addAction);g.rw(this.G,"changeEngagementPanelVisibility",R.expandAction);break;case 3:g.rw(this.G,"changeEngagementPanelVisibility",R.hideAction),g.rw(this.G,"updateEngagementPanelAction",R.removeAction)}else if(R.componentType==="ads-engagement-panel-layout"){const h=R.renderer;switch(b.actionType){case 1:case 2:g.rw(this.G,"updateEngagementPanelAction",{action:P7(h.addAction),layoutId:R.layoutId,onLayoutVisibleCallback:R.G, interactionLoggingClientData:R.interactionLoggingClientData});g.rw(this.G,"changeEngagementPanelVisibility",P7(h.expandAction));break;case 3:g.rw(this.G,"changeEngagementPanelVisibility",P7(h.hideAction)),g.rw(this.G,"updateEngagementPanelAction",{action:P7(h.removeAction)})}}}};var y3x=class extends Wi{constructor(b,R,h,K,I){super(b,{B:"div",Z:"ytp-ad-timed-pie-countdown-container",W:[{B:"svg",Z:"ytp-ad-timed-pie-countdown",O:{viewBox:"0 0 20 20"},W:[{B:"circle",Z:"ytp-ad-timed-pie-countdown-background",O:{r:"10",cx:"10",cy:"10"}},{B:"circle",Z:"ytp-ad-timed-pie-countdown-inner",O:{r:"5",cx:"10",cy:"10"}},{B:"circle",Z:"ytp-ad-timed-pie-countdown-outer",O:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",R,h,K,I);this.J=this.yX("ytp-ad-timed-pie-countdown-container"); this.V=this.yX("ytp-ad-timed-pie-countdown-inner");this.D=this.yX("ytp-ad-timed-pie-countdown-outer");this.Y=Math.ceil(2*Math.PI*5);this.hide()}init(b,R,h){super.init(b,R,h);g.MN(this.V,"stroke-dasharray",`0 ${this.Y}`);this.V.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.D.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.J.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}clear(){this.hide()}hide(){PY(this);super.hide()}show(){mp(this);super.show()}S(){this.hide()}X(){if(this.G){var b= this.G.getProgressState();b!=null&&b.current!=null&&g.MN(this.V,"stroke-dasharray",`${b.current/b.seekableEnd*this.Y} ${this.Y}`)}}};var t1x=class extends iN{constructor(b,R,h,K,I,N){super(b,{B:"div",Z:"ytp-ad-action-interstitial",O:{tabindex:"0"},W:[{B:"div",Z:"ytp-ad-action-interstitial-background-container"},{B:"div",Z:"ytp-ad-action-interstitial-slot",W:[{B:"div",Z:"ytp-ad-action-interstitial-instream-info"},{B:"div",Z:"ytp-ad-action-interstitial-card",W:[{B:"div",Z:"ytp-ad-action-interstitial-image-container"},{B:"div",Z:"ytp-ad-action-interstitial-headline-container"},{B:"div",Z:"ytp-ad-action-interstitial-description-container"}, {B:"div",Z:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",R,h,K);this.C$=I;this.IN=N;this.navigationEndpoint=this.G=this.skipButton=this.Y=this.actionButton=null;this.vY=this.yX("ytp-ad-action-interstitial-instream-info");this.T6=this.yX("ytp-ad-action-interstitial-image-container");this.J=new z0(this.api,this.layoutId,this.interactionLoggingClientData,this.eY,"ytp-ad-action-interstitial-image");g.n(this,this.J);this.J.AX(this.T6);this.C=this.yX("ytp-ad-action-interstitial-headline-container"); this.S=new G0(this.api,this.layoutId,this.interactionLoggingClientData,this.eY,"ytp-ad-action-interstitial-headline");g.n(this,this.S);this.S.AX(this.C);this.D=this.yX("ytp-ad-action-interstitial-description-container");this.X=new G0(this.api,this.layoutId,this.interactionLoggingClientData,this.eY,"ytp-ad-action-interstitial-description");g.n(this,this.X);this.X.AX(this.D);this.KR=this.yX("ytp-ad-action-interstitial-background-container");this.NJ=new z0(this.api,this.layoutId,this.interactionLoggingClientData, this.eY,"ytp-ad-action-interstitial-background",!0);g.n(this,this.NJ);this.NJ.AX(this.KR);this.xZ=this.yX("ytp-ad-action-interstitial-action-button-container");this.slot=this.yX("ytp-ad-action-interstitial-slot");this.BO=this.yX("ytp-ad-action-interstitial-card");this.V=new vi;g.n(this,this.V);this.hide()}init(b,R,h){super.init(b,R,h);if(R.image&&R.image.thumbnail)if(R.headline)if(R.description)if(R.backgroundImage&&R.backgroundImage.thumbnail)if(R.actionButton&&g.Z(R.actionButton,N6))if(b=R.durationMilliseconds|| 0,typeof b!=="number"||b<=0)g.X(Error("durationMilliseconds was specified incorrectly in "+`AdActionInterstitialRenderer with a value of: ${b}`));else if(R.navigationEndpoint){var K=this.api.getVideoData({playerType:2});if(K!=null){var I=R.image.thumbnail.thumbnails;I!=null&&I.length>0&&g.fj(g.U5(I[0].url))&&(I[0].url=K.profilePicture,g.fj(g.U5(K.profilePicture))&&UUT(6,"VideoPlayer",239976093,"Expected non-empty profile picture."));I=R.backgroundImage.thumbnail.thumbnails;I!=null&&I.length>0&&g.fj(g.U5(I[0].url))&& (I[0].url=K.hU());I=R.headline;I!=null&&g.fj(g.U5(I.text))&&(I.text=K.author)}this.J.init(I1("ad-image"),R.image,h);this.S.init(I1("ad-text"),R.headline,h);this.X.init(I1("ad-text"),R.description,h);this.NJ.init(I1("ad-image"),R.backgroundImage,h);K=["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.S.element.classList.add("ytp-ad-action-interstitial-headline-light");this.X.element.classList.add("ytp-ad-action-interstitial-description-light"); this.api.L().N("enable_default_mono_cta_migration_web_client")?K.push("ytp-ad-action-interstitial-action-button-mono-dark"):K.push("ytp-ad-action-interstitial-action-button-dark");this.api.L().Y&&(K.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),this.api.L().N("enable_default_mono_cta_migration_web_client")?K.push("ytp-ad-action-interstitial-action-button-mono-dark"):K.push("ytp-ad-action-interstitial-action-button-dark"));this.api.L().N("enable_unified_action_endcap_on_web")&& !this.api.L().Y&&(this.api.L().N("enable_default_mono_cta_migration_web_client")?K.push("ytp-ad-action-interstitial-action-button-unified-mono"):K.push("ytp-ad-action-interstitial-action-button-unified"),this.xZ.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.J.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.KR.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.BO.classList.add("ytp-ad-action-interstitial-card-unified"), this.D.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.X.element.classList.add("ytp-ad-action-interstitial-description-unified"),this.C.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.S.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.T6.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.vY.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified")); this.actionButton=new Q7(this.api,this.layoutId,this.interactionLoggingClientData,this.eY,K);g.n(this,this.actionButton);this.actionButton.AX(this.xZ);this.actionButton.init(I1("button"),g.Z(R.actionButton,N6),h);MW(this.actionButton.element);K=w0(this.actionButton.element);Ll(this.actionButton.element,K+" This link opens in new tab");this.navigationEndpoint=R.navigationEndpoint;this.V.j(this.T6,"click",this.Zr,this);this.V.j(this.D,"click",this.Zr,this);this.api.L().Y||this.V.j(this.C,"click",this.Zr, this);this.G=this.C$?new L7(this.api,b):new YF(b);g.n(this,this.G);if(R.skipButton){(b=g.Z(R.skipButton,C_x))&&this.G&&(this.skipButton=new TiB(this.api,this.layoutId,this.interactionLoggingClientData,this.eY,this.G,this.IN),g.n(this,this.skipButton),this.skipButton.AX(this.element),this.skipButton.init(I1("skip-button"),b,h));if(h=R.adBadgeRenderer)if(h=g.Z(h,VVP))b=new Jg(this.api,this.layoutId,this.interactionLoggingClientData,this.eY,!0),b.AX(this.vY),b.init(I1("simple-ad-badge"),h,this.macros), g.n(this,b);if(h=R.adInfoRenderer)if(h=g.Z(h,nA))b=new uY(this.api,this.layoutId,this.interactionLoggingClientData,this.eY,this.element,void 0,!0),b.AX(this.vY),b.init(I1("ad-info-hover-text-button"),h,this.macros),g.n(this,b)}else R.nonskippableOverlayRenderer&&(b=g.Z(R.nonskippableOverlayRenderer,E1))&&this.G&&(this.Y=new nh(this.api,this.layoutId,this.interactionLoggingClientData,this.eY,this.G,!1),g.n(this,this.Y),this.Y.AX(this.element),this.Y.init(I1("ad-preview"),b,h));R.countdownRenderer&& (R=R.countdownRenderer,g.Z(R,MVP)&&this.G&&(h=new y3x(this.api,this.layoutId,this.interactionLoggingClientData,this.eY,this.G),g.n(this,h),h.AX(this.element),h.init(I1("timed-pie-countdown"),g.Z(R,MVP),this.macros)));this.show();this.element.focus()}else g.X(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.X(Error("AdActionInterstitialRenderer has no button."));else g.X(Error("AdActionInterstitialRenderer has no background AdImage."));else g.X(Error("AdActionInterstitialRenderer has no description AdText.")); else g.X(Error("AdActionInterstitialRenderer has no headline AdText."));else g.X(Error("AdActionInterstitialRenderer has no image."))}clear(){this.V.Y();this.hide()}show(){OsD(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.Y&&this.Y.show();super.show()}hide(){OsD(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.Y&&this.Y.hide();super.hide()}Zr(){this.navigationEndpoint&&(this.layoutId?this.eY.executeCommand(this.navigationEndpoint, this.layoutId):g.X(Error("Missing layoutId for ad action interstitial.")))}};var Zv={iconType:"CLOSE"},C7=new g.ru(320,63),q$B=class extends iN{constructor(b,R,h,K){super(b,{B:"div",Z:"ytp-ad-overlay-slot",W:[{B:"div",Z:"ytp-ad-overlay-container"}]},"invideo-overlay",R,h,K);this.J=[];this.KR=this.C=this.V=this.xZ=this.NJ=null;this.Zr=!1;this.S=null;this.D=0;b=this.yX("ytp-ad-overlay-container");this.T6=new E9(b,45E3,6E3,.3,.4);g.n(this,this.T6);this.X=Qb3(this);g.n(this,this.X);this.X.AX(b);this.Y=xGH(this);g.n(this,this.Y);this.Y.AX(b);this.G=mGe(this);g.n(this,this.G);this.G.AX(b); this.hide()}init(b,R,h){super.init(b,R,h);this.V=R;this.J=g.Sc(this.V.onClickCommands||[]);this.NJ=this.V.onErrorCommand||null;if(b=this.V.contentSupportedRenderer)b=this.V.contentSupportedRenderer,R=this.V.adInfoRenderer||null,g.Z(b,cWH)?(this.S=g.p0("ytp-ad-overlay-ad-info-button-container",this.X.element),Xc(this,R),b=ZsK(this,g.Z(b,cWH))):g.Z(b,unx)?(this.S=g.p0("ytp-ad-overlay-ad-info-button-container",this.Y.element),Xc(this,R),b=c6e(this,g.Z(b,unx))):g.Z(b,XKB)?(this.S=g.p0("ytp-ad-overlay-ad-info-button-container", this.G.element),Xc(this,R),b=uf2(this,g.Z(b,XKB))):(g.X(Error("InvideoOverlayAdRenderer content could not be initialized.")),b=!1);b&&(this.show(),PEw(this,!0))}clear(){PEw(this,!1);this.T6.reset();this.D=0;this.X.hide();this.logVisibility(this.X.element,!1);this.Y.hide();this.logVisibility(this.Y.element,!1);this.G.hide();this.logVisibility(this.G.element,!1);this.hide();this.dispose()}FM(){this.xZ&&(this.layoutId?this.eY.executeCommand(this.xZ,this.layoutId):g.X(Error("Missing layoutId for invideo_overlay_ad."))); this.api.pauseVideo()}vY(){for(const b of X1s(this))this.layoutId?this.eY.executeCommand(b,this.layoutId):g.X(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}RH(){this.Zr||this.api.getPlayerState(1)!==2||this.api.playVideo()}Jp(){this.Zr||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.Jp("invideo-overlay")}Sn(b){b.target===this.S&&g.p0("ytp-ad-button",this.KR.element).click()}};var i7K=class extends Wi{constructor(b,R,h,K,I){super(b,{B:"div",Z:"ytp-ad-message-overlay",W:[{B:"div",Z:"ytp-ad-message-slot"}]},"ad-message",R,h,K,I);this.D=-1;this.V=0;this.T6=!1;this.vY=this.yX("ytp-ad-message-slot");this.Y=new g.PH({B:"span",Z:"ytp-ad-message-container"});this.Y.AX(this.vY);g.n(this,this.Y);this.messageText=new G0(this.api,this.layoutId,this.interactionLoggingClientData,K,"ytp-ad-message-text");g.n(this,this.messageText);this.messageText.AX(this.Y.element);this.J=new g.Sg(this.Y, 400,!1,100,()=>{this.hide()}); g.n(this,this.J);this.hide()}init(b,R,h){super.init(b,R,h);b=R.durationMs;this.V=b==null||b===0?0:b+this.G.getProgressState().current*1E3;let K;R.text?K=R.text.templatedAdText:R.staticMessage&&(K=R.staticMessage);this.messageText.init(I1("ad-text"),K,h);this.messageText.AX(this.Y.element);this.J.show(100);this.show()}clear(){this.hide()}hide(){VFq(this,!1);super.hide();this.Y.hide();this.messageText.hide();PY(this)}show(){VFq(this,!0);super.show();mp(this);this.Y.show();this.messageText.show()}S(){this.hide()}X(){if(this.G!= null){var b=this.G.getProgressState();b!=null&&b.current!=null&&(b=1E3*b.current,!this.T6&&b>=this.V?(this.J.hide(),this.T6=!0):this.messageText&&this.messageText.isTemplated()&&(b=Math.max(0,Math.ceil((this.V-b)/1E3)),b!==this.D&&(x8(this.messageText,{TIME_REMAINING:String(b)}),this.D=b)))}}};var zaD=class extends iN{constructor(b,R,h,K){super(b,{B:"div",Z:"ytp-ad-underlay-companion",W:[{B:"div",Z:"ytp-ad-underlay-side-container",W:[{B:"div",Z:"ytp-ad-underlay-image-container"},{B:"div",Z:"ytp-ad-underlay-description-container"},{B:"div",Z:"ytp-ad-underlay-headline-container"},{B:"div",Z:"ytp-ad-underlay-action-button-container"}]}]},"player-underlay",R,h,K);this.actionButton=null;this.vY=this.yX("ytp-ad-underlay-image-container");this.X=new z0(this.api,this.layoutId,this.interactionLoggingClientData, this.eY,"ytp-ad-underlay-image");g.n(this,this.X);this.X.AX(this.vY);this.T6=this.yX("ytp-ad-underlay-headline-container");this.Y=new G0(this.api,this.layoutId,this.interactionLoggingClientData,this.eY,"ytp-ad-underlay-headline");g.n(this,this.Y);this.Y.AX(this.T6);this.C=this.yX("ytp-ad-underlay-description-container");this.V=new G0(this.api,this.layoutId,this.interactionLoggingClientData,this.eY,"ytp-ad-underlay-description");g.n(this,this.V);this.V.AX(this.C);this.D=this.yX("ytp-ad-underlay-action-button-container"); this.G=this.yX("ytp-ad-underlay-side-container");this.hide()}init(b,R,h){super.init(b,R,{});R.image&&R.image.thumbnail?R.headline?R.description?R.actionButton&&g.Z(R.actionButton,N6)?(this.X.init(I1("ad-image"),R.image,h),this.Y.init(I1("ad-text"),R.headline,h),this.V.init(I1("ad-text"),R.description,h),this.actionButton=new Q7(this.api,this.layoutId,this.interactionLoggingClientData,this.eY,["ytp-ad-underlay-action-button"]),R.backgroundColor&&g.MN(this.element,"background-color",g.wm(R.backgroundColor)), g.n(this,this.actionButton),this.actionButton.AX(this.D),this.actionButton.init(I1("button"),g.Z(R.actionButton,N6),h),b=g.fg(this.api.L().experiments,"player_underlay_video_width_fraction"),this.api.L().N("place_shrunken_video_on_left_of_player")?(R=this.G,g.lI(R,"ytp-ad-underlay-left-container"),g.Nv(R,"ytp-ad-underlay-right-container"),g.MN(this.G,"margin-left",`${Math.round((b+.02)*100)}%`)):(R=this.G,g.lI(R,"ytp-ad-underlay-right-container"),g.Nv(R,"ytp-ad-underlay-left-container")),g.MN(this.G, "width",`${Math.round((1-b-.04)*100)}%`),this.api.GK()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.J.bind(this)),this.api.addEventListener("resize",this.S.bind(this))):g.X(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.X(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.X(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.X(Error("InstreamAdPlayerUnderlayRenderer has no image."))}show(){CE2(!0);this.actionButton&& this.actionButton.show();super.show()}hide(){CE2(!1);this.actionButton&&this.actionButton.hide();super.hide()}clear(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.J.bind(this));this.api.removeEventListener("resize",this.S.bind(this));this.hide()}onClick(b){super.onClick(b);this.actionButton&&g.gM(this.actionButton.element,b.target)&&this.api.pauseVideo()}J(b){b==="transitioning"?(this.G.classList.remove("ytp-ad-underlay-clickable"),this.show()):b==="visible"?this.G.classList.add("ytp-ad-underlay-clickable"): b==="hidden"&&(this.hide(),this.G.classList.remove("ytp-ad-underlay-clickable"))}S(b){b.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):b.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.MN(this.Y.element,"font-size",`${b.width/40}px`)}};var LZT=class extends iN{constructor(b,R,h,K,I,N=()=>{}){super(b,{B:"div", Z:"ytp-ad-survey-answer"},"survey-answer",R,h,K);this.index=I;this.onSelected=N;this.G=null;this.toggledLoggingParams="";this.answer=this.yX("ytp-ad-survey-answer");this.hide()}init(b,R,h){super.init(b,R,h);R.toggledLoggingParams&&(this.toggledLoggingParams=R.toggledLoggingParams);R.answer&&g.Z(R.answer,N6)?(b=new Q7(this.api,this.layoutId,this.interactionLoggingClientData,this.eY,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),b.AX(this.answer),b.init(I1("ytp-ad-survey-answer-button"), g.Z(R.answer,N6),h),b.show()):R.answer&&g.Z(R.answer,ph)&&(this.G=new U9(this.api,this.layoutId,this.interactionLoggingClientData,this.eY,["ytp-ad-survey-answer-toggle-button"]),this.G.AX(this.answer),g.n(this,this.G),this.G.init(I1("survey-answer-button"),g.Z(R.answer,ph),h));this.show()}MJ(b){this.layoutId?N1(this.eY,b,this.layoutId,this.macros):(b=new g.A$("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.X(b))}onClick(b){super.onClick(b);if(this.api.L().N("supports_multi_step_on_desktop")&& this.index!==null)this.onSelected(this.index)}clear(){this.hide()}};var b7s=class extends iN{constructor(b,R,h,K){super(b,{B:"div",Z:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",R,h,K);this.button=null;this.G=this.yX("ytp-ad-survey-none-of-the-above");this.hide()}init(b,R,h){super.init(b,R,h);R.answer&&g.Z(R.answer,ph)&&(this.button=new U9(this.api,this.layoutId,this.interactionLoggingClientData,this.eY,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.AX(this.G),this.button.init(I1("survey-none-of-the-above-button"), g.Z(R.answer,ph),h));this.show()}};var tc3=class extends Q7{constructor(b,R,h,K){const I=["ytp-ad-survey-submit-button"];I.push("ytp-ad-survey-submit-button-rounded");super(b,R,h,K,I,"survey-submit")}init(b,R,h){super.init(b,R,h);b=!1;R.text&&(R=g.BY(R.text),b=!g.fj(R));b||g.kJ(Error("No submit text was present in the renderer."))}onClick(b){this.publish("l");super.onClick(b)}};var oG3=class extends iN{constructor(b,R,h,K,I){super(b,{B:"div",Z:"ytp-ad-survey-player-overlay",W:[{B:"div",Z:"ytp-ad-survey-player-overlay-instream-info"},{B:"div",Z:"ytp-ad-survey-player-overlay-skip-preview-submit",W:[{B:"div",Z:"ytp-ad-survey-player-overlay-skip-or-preview"},{B:"div",Z:"ytp-ad-survey-player-overlay-submit"}]},{B:"div",Z:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay",R,h,K);this.V=I;this.Y=this.G=null;this.X=this.yX("ytp-ad-survey-player-overlay-instream-info"); this.skipOrPreview=this.yX("ytp-ad-survey-player-overlay-skip-or-preview");this.submitButton=this.yX("ytp-ad-survey-player-overlay-submit");g.n(this,this.V);this.hide()}init(b,R,h){super.init(b,R,h);if(b=R.skipOrPreviewRenderer)g.Z(b,C6)?(b=g.Z(b,C6),h=new Me(this.api,this.layoutId,this.interactionLoggingClientData,this.eY,this.V,!0),h.AX(this.skipOrPreview),h.init(I1("skip-button"),b,this.macros),g.n(this,h),this.G=h):g.Z(b,E1)&&(b=g.Z(b,E1),h=new nh(this.api,this.layoutId,this.interactionLoggingClientData, this.eY,this.V,!1),h.AX(this.skipOrPreview),h.init(I1("ad-preview"),b,this.macros),h.T6.show(100),h.show(),g.n(this,h),this.G=h);this.G==null&&(b=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly."+`ISAPOR: ${JSON.stringify(R)}`),g.X(b));R.submitButton&&(b=R.submitButton,g.Z(b,N6)&&(b=g.Z(b,N6),h=new tc3(this.api,this.layoutId,this.interactionLoggingClientData,this.eY),h.AX(this.submitButton),h.init(I1("survey-submit"),b,this.macros),g.n(this,h),this.Y=h));if(b=R.adBadgeRenderer)b= g.Z(b,VVP),h=new Jg(this.api,this.layoutId,this.interactionLoggingClientData,this.eY,!0,!0),h.AX(this.X),h.init(I1("simple-ad-badge"),b,this.macros),this.adBadge=h.element,g.n(this,h);if(b=R.adDurationRemaining)b=g.Z(b,mXT),h=new eg(this.api,this.layoutId,this.interactionLoggingClientData,this.eY,this.V,void 0,!0),h.AX(this.X),h.init(I1("ad-duration-remaining"),b,this.macros),g.n(this,h);(R=R.adInfoRenderer)&&g.Z(R,nA)&&(b=new uY(this.api,this.layoutId,this.interactionLoggingClientData,this.eY,this.element, void 0,!0),g.n(this,b),this.adBadge!==void 0?this.X.insertBefore(b.element,this.adBadge.nextSibling):b.AX(this.X),b.init(I1("ad-info-hover-text-button"),g.Z(R,nA),this.macros));this.show()}clear(){this.hide()}};var jnx=class extends iN{constructor(b,R,h,K,I,N=()=>{}){super(b,{B:"div", Z:"ytp-ad-survey-question",W:[{B:"div",F5:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{B:"div",F5:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{B:"div",F5:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{B:"div",Z:"ytp-ad-survey-question-background"}]},I,R,h,K);this.T6=N;this.X=null;this.Y=[];this.G=null;this.J=this.api.L().experiments.O9("a11y_h5_associate_survey_question");this.question=this.yX("ytp-ad-survey-question");this.NJ= this.yX("ytp-ad-survey-question-background");this.questionText=this.yX("ytp-ad-survey-question-text");this.answers=this.yX("ytp-ad-survey-answers");this.playerOverlay=this.yX("ytp-ad-survey-question-player-overlay");this.V=Date.now()}init(b,R,h){super.init(b,R,h);MFT(this)}show(){this.V=Date.now();super.show()}D(){}};var NeB=class extends jnx{constructor(b,R,h,K,I){super(b,R,h,K,"survey-question-multi-select");this.C=I;this.noneOfTheAbove=null;this.submitEndpoints=[];this.S=null;this.hide()}init(b,R,h){super.init(b,R,h);R.questionText&&r63(this,R.questionText);R.answers&&R.answers.forEach((K,I)=>{g.Z(K,$F)&&w1q(this,g.Z(K,$F),h,I)}); this.S=new Set(this.Y.map(K=>K.G.G)); (b=R.noneOfTheAbove)&&(b=g.Z(b,ZmP))&&Raq(this,b,h);R.surveyAdQuestionCommon&&DGq(this,R.surveyAdQuestionCommon);R.submitEndpoints&&(this.submitEndpoints=R.submitEndpoints);this.j(this.element,"change",this.onChange);this.show()}D(){re(this.X,Fc(this),!1);this.X.Y.subscribe("l",this.vY,this)}onChange(b){b.target===this.noneOfTheAbove.button.G?ha3(this):this.S.has(b.target)&&(this.noneOfTheAbove.button.toggleButton(!1),re(this.X,Fc(this),!0))}vY(){const b=[],R=this.Y.reduce((K,I,N)=>{const p=I.toggledLoggingParams; I.G&&I.G.isToggled()&&p&&(K.push(p),b.push(N));return K},[]).join("&"),h=this.submitEndpoints.map(K=>{if(!K.loggingUrls)return K; K=g.IT(K);K.loggingUrls=K.loggingUrls.map(I=>{I.baseUrl&&(I.baseUrl=Us(I.baseUrl,R));return I}); return K}); if(h)for(const K of h)this.layoutId?N1(this.eY,K,this.layoutId,this.macros):g.X(Error("Missing layoutId for multi_select_question."));this.api.L().N("supports_multi_step_on_desktop")&&this.C(b)}clear(){this.api.L().N("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()}};var IvP=class extends jnx{constructor(b,R,h,K,I){super(b,R,h,K,"survey-question-single-select",N=>{this.api.L().N("supports_multi_step_on_desktop")&&I([N])}); this.hide()}init(b,R,h){super.init(b,R,h);R.questionText&&r63(this,R.questionText);R.answers&&R.answers.forEach((K,I)=>{g.Z(K,$F)&&w1q(this,g.Z(K,$F),h,I)}); R.surveyAdQuestionCommon?DGq(this,R.surveyAdQuestionCommon):J2(Error("SurveyAdQuestionCommon was not sent."+`SingleSelectQuestionRenderer: ${JSON.stringify(R)}`));this.show()}clear(){this.api.L().N("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()}};var ypT=class extends iN{constructor(b,R,h,K){super(b,{B:"div",Z:"ytp-ad-survey",W:[{B:"div",Z:"ytp-ad-survey-questions"}]},"survey",R,h,K);this.questions=[];this.Y=[];this.conditioningRules=[];this.G=0;this.S=this.yX("ytp-ad-survey-questions");this.api.L().N("fix_survey_color_contrast_on_destop")&&this.yX("ytp-ad-survey").classList.add("color-contrast-fix");this.api.L().N("web_enable_speedmaster")&&this.yX("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}init(b,R,h){super.init(b, R,h);this.api.L().N("supports_multi_step_on_desktop")?(this.conditioningRules=R.conditioningRules??[],this.Y=R.questions??[],R.questions?.length&&$ex(this,0)):(R.questions||[]).forEach(K=>{g.Z(K,Wm)?KiH(this,g.Z(K,Wm),h):g.Z(K,g1)&&slB(this,g.Z(K,g1),h)}); this.show()}clear(){this.api.L().N("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}V(b){if(this.api.L().N("supports_multi_step_on_desktop"))if(this.conditioningRules?.length){let R;if(b.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(h=>h.questionIndex===this.G)==null)g.X(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(h=>{if(h.questionIndex===this.G)switch(h.condition){case "CONDITION_ALL_OF":h.answerIndices?.every(K=>b.includes(K))&&(R=h.nextQuestionIndex); break;case "CONDITION_ANY_OF":h.answerIndices?.some(K=>b.includes(K))&&(R=h.nextQuestionIndex); break;default:g.X(Error("Expected specified condition in survey conditioning rules."))}}),R!=null)$ex(this,R); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.X(Error("No conditioning rules, yet survey is multi step. Expected questions.length to be 1.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}};var ApH=class extends iN{constructor(b,R,h,K){super(b,{B:"div",Z:"ytp-ad-survey-interstitial",W:[{B:"div",Z:"ytp-ad-survey-interstitial-contents",W:[{B:"div",Z:"ytp-ad-survey-interstitial-logo",W:[{B:"div",Z:"ytp-ad-survey-interstitial-logo-image"}]},{B:"div",Z:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",R,h,K);this.G=this.actionButton=null;this.interstitial=this.yX("ytp-ad-survey-interstitial");this.Y=this.yX("ytp-ad-survey-interstitial-contents");this.text=this.yX("ytp-ad-survey-interstitial-text"); this.logoImage=this.yX("ytp-ad-survey-interstitial-logo-image");this.transition=new g.Sg(this,500,!1,300);g.n(this,this.transition)}init(b,R,h){super.init(b,R,h);b=R.timeoutSeconds||0;if(typeof b!=="number"||b<0)g.X(Error("timeoutSeconds was specified incorrectly in "+`SurveyTextInterstitialRenderer with a value of: ${b}`));else if(R.timeoutCommands)if(R.text)if(R.ctaButton&&g.Z(R.ctaButton,N6))if(R.brandImage)if(R.backgroundImage&&g.Z(R.backgroundImage,pg)&&g.Z(R.backgroundImage,pg).landscape){this.layoutId|| g.X(Error("Missing layoutId for survey interstitial."));pHK(this.interstitial,g.Z(R.backgroundImage,pg).landscape);pHK(this.logoImage,R.brandImage);g.W_(this.text,g.BY(R.text));var K=["ytp-ad-survey-interstitial-action-button"];K.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new Q7(this.api,this.layoutId,this.interactionLoggingClientData,this.eY,K);g.n(this,this.actionButton);this.actionButton.AX(this.Y);this.actionButton.init(I1("button"),g.Z(R.ctaButton,N6),h);this.actionButton.show(); this.G=new L7(this.api,b*1E3);this.G.subscribe("g",()=>{this.transition.hide()}); g.n(this,this.G);this.j(this.element,"click",I=>{const N=I.target===this.interstitial;I=this.actionButton.element.contains(I.target);if(N||I)if(this.transition.hide(),N)this.api.onAdUxClicked(this.componentType,this.layoutId)}); this.transition.show(100)}else g.X(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.X(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.X(Error("SurveyTextInterstitialRenderer has no button."));else g.X(Error("SurveyTextInterstitialRenderer has no text."));else g.X(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}clear(){this.hide()}show(){lv3(!0);super.show()}hide(){lv3(!1);super.hide()}};var A3z=class extends Wi{constructor(b,R,h,K,I,N=0){super(b,{B:"div",Z:"ytp-preview-ad",W:[{B:"div",Z:"ytp-preview-ad__text"}]},"preview-ad",R,h,K,I);this.NJ=N;this.Y=0;this.T6=-1;this.V=this.yX("ytp-preview-ad__text");switch(this.NJ){case 1:this.V.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.Sg(this,400,!1,100,()=>{this.hide()}); g.n(this,this.transition);this.hide()}init(b,R){super.init(b,R,{});if(R.durationMilliseconds){if(R.durationMilliseconds<0){g.X(Error("DurationMilliseconds was specified incorrectly in "+`AdPreview with a value of: ${R.durationMilliseconds}`));return}this.Y=R.durationMilliseconds}else this.Y=this.G.LB();!R.previewText?.text||g.fj(R.previewText.text)?g.X(Error("No text is returned for AdPreview.")):(this.vY=R.previewText,R.previewText.isTemplated||g.W_(this.V,R.previewText.text),this.api.getVideoData({playerType:1})?.gU&& R.previewImage?(b=tj(R.previewImage?.sources||[],52,!1)?.url||"")&&b.length?(this.previewImage=new g.PH({B:"img",Z:"ytp-preview-ad__image",O:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",b),g.n(this,this.previewImage),this.previewImage.AX(this.element)):g.X(Error("Failed to get imageUrl in AdPreview.")):this.V.classList.add("ytp-preview-ad__text--padding--wide"))}clear(){this.hide()}hide(){PY(this);super.hide()}show(){mp(this);super.show()}S(){this.hide()}X(){if(this.G){var b=this.G.getProgressState(); if(b?.current)if(b=1E3*b.current,b>=this.Y)this.J();else if(this.vY?.isTemplated&&(b=Math.max(0,Math.ceil((this.Y-b)/1E3)),b!==this.T6)){const R=this.vY?.text?.replace("{TIME_REMAINING}",String(b));R&&g.W_(this.V,R);this.T6=b}}}J(){this.transition.hide()}D(){this.transition.show(100);this.show()}};var RX=class extends iN{constructor(b,R,h,K){super(b,{B:"img",Z:"ytp-ad-avatar"},"ad-avatar",R,h,K);this.hide()}init(b,R){super.init(b,R,{});var h=tj(R.image?.sources||[],ave(R),!0)?.url||"";if(h&&h.length){b=this.yX("ytp-ad-avatar");b.src=h;if(h=R.interaction?.accessibility?.label)b.alt=h;switch(R.size){case "AD_AVATAR_SIZE_XXS":this.element.classList.add("ytp-ad-avatar--size-xxs");break;case "AD_AVATAR_SIZE_XS":this.element.classList.add("ytp-ad-avatar--size-xs");break;case "AD_AVATAR_SIZE_S":this.element.classList.add("ytp-ad-avatar--size-s"); break;case "AD_AVATAR_SIZE_M":this.element.classList.add("ytp-ad-avatar--size-m");break;case "AD_AVATAR_SIZE_L":this.element.classList.add("ytp-ad-avatar--size-l");break;case "AD_AVATAR_SIZE_XL":this.element.classList.add("ytp-ad-avatar--size-xl");break;case "AD_AVATAR_SIZE_RESPONSIVE":this.element.classList.add("ytp-ad-avatar--size-responsive");break;default:this.element.classList.add("ytp-ad-avatar--size-m")}switch(R.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":this.element.classList.add("ytp-ad-avatar--rounded-corner"); break;default:this.element.classList.add("ytp-ad-avatar--circular")}}else g.X(Error("Failed to get imageUrl in AdAvatar."))}clear(){this.hide()}onClick(b){super.onClick(b)}};var hC=class extends iN{constructor(b,R,h,K,I=!1){super(b,{B:"button",Z:"ytp-ad-button-vm"},"ad-button",R,h,K);this.buttonText=this.buttonIcon=null;this.hide();this.forceDarkTheme=I}init(b,R){super.init(b,R,{});var h=R.label?.content;if((b=h!=null&&!g.fj(h))||R.iconImage){b&&(this.buttonText=new g.PH({B:"span",Z:"ytp-ad-button-vm__text",IH:h}),g.n(this,this.buttonText),this.buttonText.AX(this.element));(h=R.interaction?.accessibility?.label||b?h:"")&&Ll(this.element,`${h} ${"This link opens in new tab"}`); MW(this.element);if(R.iconImage){h=void 0;if(R.iconImage){a:{var K=R.iconImage;if(K.sources)for(I of K.sources)if(I.clientResource?.imageName||I.customImageSource&&g.Z(I.customImageSource,dpH)?.clientResource?.icon)break a;var I=void 0}I&&(h={iconType:I.clientResource?.imageName})}I=Tr(h,!1,!1);I!=null&&(this.buttonIcon=new g.PH({B:"span",Z:"ytp-ad-button-vm__icon",W:[I]}),g.n(this,this.buttonIcon),R.iconLeading?(UU(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")): b?(this.buttonIcon.AX(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")):(this.buttonIcon.AX(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(R.style){case "AD_BUTTON_STYLE_TRANSPARENT":this.element.classList.add("ytp-ad-button-vm--style-transparent");break;case "AD_BUTTON_STYLE_FILLED_WHITE":this.element.classList.add("ytp-ad-button-vm--style-filled-white");break;case "AD_BUTTON_STYLE_MONO_FILLED":this.element.classList.add("ytp-ad-button-vm--style-mono-filled"); break;case "AD_BUTTON_STYLE_FILLED":this.api.N("delhi_modern_web_player")?this.element.classList.add("ytp-ad-button-vm--style-filled-white"):this.element.classList.add(this.forceDarkTheme?"ytp-ad-button-vm--style-filled-dark":"ytp-ad-button-vm--style-filled");break;default:this.element.classList.add("ytp-ad-button-vm--style-filled")}switch(R.size){case "AD_BUTTON_SIZE_COMPACT":this.element.classList.add("ytp-ad-button-vm--size-compact");break;case "AD_BUTTON_SIZE_LARGE":this.element.classList.add("ytp-ad-button-vm--size-large"); break;default:this.element.classList.add("ytp-ad-button-vm--size-default")}}else g.kJ(Error("AdButton does not have label or an icon."))}clear(){this.hide()}onClick(b){super.onClick(b)}};var irc=class extends Wi{constructor(b,R,h,K,I){super(b,{B:"div",F5:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],W:[{B:"div",Z:"ytp-ad-avatar-lockup-card__avatar_and_text_container",W:[{B:"div",Z:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",R,h,K,I);this.startMilliseconds=0;this.adAvatar=new RX(this.api,this.layoutId,this.interactionLoggingClientData,this.eY);g.n(this,this.adAvatar);UU(this.element,this.adAvatar.element,0);this.headline=new Q1(this.api, this.layoutId,this.interactionLoggingClientData,this.eY);g.n(this,this.headline);this.headline.AX(this.yX("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new Q1(this.api,this.layoutId,this.interactionLoggingClientData,this.eY);g.n(this,this.description);this.description.AX(this.yX("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton= new hC(this.api,this.layoutId,this.interactionLoggingClientData,this.eY);g.n(this,this.adButton);this.adButton.AX(this.element);this.hide()}init(b,R){super.init(b,R,{});if(b=g.Z(R.avatar,ol)){var h=R.headline;if(h){var K=R.description;if(K){var I=g.Z(R.button,bF);I?(this.adAvatar.init(I1("ad-avatar"),b),this.headline.init(I1("ad-simple-attributed-string"),new O9(h)),this.description.init(I1("ad-simple-attributed-string"),new O9(K)),h.content&&h.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"), this.adButton.init(I1("ad-button"),I),this.startMilliseconds=R.startMs||0,this.api.GK()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.Y.bind(this)),mp(this)):g.X(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.X(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.X(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.X(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}X(){if(this.G){var b= this.G.getProgressState();b&&b.current&&1E3*b.current>=this.startMilliseconds&&(PY(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}S(){this.clear()}onClick(b){this.api.pauseVideo();super.onClick(b)}clear(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.Y.bind(this))}show(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();super.show()}hide(){this.adAvatar.hide();this.headline.hide();this.description.hide(); this.adButton.hide();super.hide()}Y(b){b==="hidden"?this.show():this.hide()}};var znr=class extends iN{constructor(b,R,h,K){super(b,{B:"button",Z:"ytp-skip-ad-button",W:[{B:"div",Z:"ytp-skip-ad-button__text"}]},"skip-button",R,h,K);this.Y=!1;this.S=this.yX("ytp-skip-ad-button__text");this.transition=new g.Sg(this,500,!1,100,()=>{this.hide()}); g.n(this,this.transition);this.G=new E9(this.element,15E3,5E3,.5,.5,!0);g.n(this,this.G);this.hide()}init(b,R){super.init(b,R,{});if(!R.label||g.fj(R.label))g.X(Error("No label is returned for SkipAdButton."));else if(g.W_(this.S,R.label),b=Tr({iconType:"SKIP_NEXT_NEW"},!1,!1,this.api.N("delhi_modern_web_player_icons")),b==null)g.X(Error("Unable to retrieve icon for SkipAdButton"));else if(this.X=new g.PH({B:"span",Z:"ytp-skip-ad-button__icon",W:[b]}),g.n(this,this.X),this.X.AX(this.element),this.api.L().experiments.O9("enable_skip_to_next_messaging")&& (R=g.U5(R.targetId)))this.Y=!0,this.element.setAttribute("data-tooltip-target-id",R),this.element.setAttribute("data-tooltip-target-fixed","")}onClick(b){b&&b.preventDefault();x5K(b,{contentCpn:this.api.getVideoData({playerType:1})?.clientPlaybackNonce??""})===0?g.rw(this.api,"onAbnormalityDetected"):(super.onClick(b),g.rw(this.api,"onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}clear(){this.G.reset();this.hide()}hide(){super.hide()}show(){this.G.start();super.show();this.Y&& this.api.L().experiments.O9("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)}V(){this.transition.show();this.show()}};var Ugz=class extends Wi{constructor(b,R,h,K,I){super(b,{B:"div",Z:"ytp-skip-ad"},"skip-ad",R,h,K,I);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.V=new znr(this.api,this.layoutId,this.interactionLoggingClientData,this.eY);g.n(this,this.V);this.V.AX(this.element);this.hide()}init(b,R){super.init(b,R,{});b=g.Z(R.preskipState,bLq);if(this.api.getVideoData()?.isDaiEnabled()){if(!b){g.X(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.Y=new A3z(this.api,this.layoutId, this.interactionLoggingClientData,this.eY,this.G);g.n(this,this.Y);this.Y.AX(this.element);this.Y?.init(I1("preview-ad"),b);this.Y?.D()}(b=g.Z(R.skippableState,hgq))?(R.skipOffsetMilliseconds!=null?this.skipOffsetMilliseconds=R.skipOffsetMilliseconds:(g.kJ(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.V.init(I1("skip-button"),b),this.show()):g.X(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}show(){mp(this);super.show()}hide(){!this.isSkippable&& this.Y?this.Y.hide():this.V&&this.V.hide();PY(this);super.hide()}clear(){this.Y?.clear();this.V&&this.V.clear();PY(this);super.hide()}S(){this.hide()}X(){1E3*this.G.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable&&(this.isSkippable=!0,this.Y?.J(),this.V?.V())}};var G3n=class extends iN{constructor(b,R,h,K){super(b,{B:"div",Z:"ytp-visit-advertiser-link"},"visit-advertiser-link",R,h,K);this.hide()}init(b,R){super.init(b,R,{});R.label?(R.label?.content&&!g.fj(R.label.content)&&(this.linkText=new g.PH({B:"span",Z:"ytp-visit-advertiser-link__text",IH:R.label.content}),g.n(this,this.linkText),this.linkText.AX(this.element)),R.interaction?.accessibility?.label?Ll(this.element,`${R.interaction.accessibility.label} ${"This link opens in new tab"}`):R.label?.content&& !g.fj(R.label.content)&&Ll(this.element,`${R.label.content} ${"This link opens in new tab"}`),MW(this.element),this.element.setAttribute("tabindex","0"),this.show()):g.X(Error("No label found in VisitAdvertiserLink."))}onClick(b){super.onClick(b);this.api.onAdUxClicked(this.componentType,this.layoutId)}clear(){this.hide()}};var fvD=class extends iN{constructor(b,R,h,K,I){super(b,{B:"div",Z:"ytp-ad-player-overlay-layout",W:[{B:"div",Z:"ytp-ad-player-overlay-layout__player-card-container"},{B:"div",Z:"ytp-ad-player-overlay-layout__ad-info-container"},{B:"div",Z:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{B:"div",Z:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",R,h,K);this.Y=I;this.C=this.yX("ytp-ad-player-overlay-layout__player-card-container");this.G=this.yX("ytp-ad-player-overlay-layout__ad-info-container"); this.J=this.yX("ytp-ad-player-overlay-layout__skip-or-preview-container");this.D=this.yX("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}init(b,R,h,K){super.init(b,R,{});let I;R.skipOrPreview&&(h=R.skipOrPreview,b=g.Z(h,Kb3),h=g.Z(h,bLq),b?(this.rQ=new Ugz(this.api,this.layoutId,this.interactionLoggingClientData,this.eY,this.Y),g.n(this,this.rQ),this.rQ.AX(this.J),this.rQ.init(I1("skip-ad"),b)):h&&this.api.getVideoData()?.isDaiEnabled()&&(this.V=new A3z(this.api,this.layoutId, this.interactionLoggingClientData,this.eY,this.Y,1),g.n(this,this.V),this.V.AX(this.J),this.V.init(I1("ad-preview"),h),this.V.D()),b=g.Z(R.skipOrPreview,Kb3))&&(I=b.skipOffsetMilliseconds);R.playerAdCard&&(b=g.Z(R.playerAdCard,Rgx))&&(this.playerAdCard=new irc(this.api,this.layoutId,this.interactionLoggingClientData,this.eY,this.Y),g.n(this,this.playerAdCard),this.playerAdCard.AX(this.C),this.playerAdCard.init(I1("ad-avatar-lockup-card"),b));R.adBadgeRenderer&&((b=g.Z(R.adBadgeRenderer,Dv))?(this.X= new xF(this.api,this.layoutId,this.interactionLoggingClientData,this.eY,!0),g.n(this,this.X),this.X.AX(this.G),this.X.init(I1("ad-badge"),b)):g.X(Error("AdBadgeViewModel is not found in player overlay layout.")));R.adPodIndex&&(b=g.Z(R.adPodIndex,wKH))&&(this.adPodIndex=new Y2q(this.api,this.layoutId,this.interactionLoggingClientData,this.eY),g.n(this,this.adPodIndex),this.adPodIndex.AX(this.G),this.adPodIndex.init(I1("ad-pod-index"),b));R.adInfoRenderer&&((b=g.Z(R.adInfoRenderer,nA))?(this.adInfoButton= new uY(this.api,this.layoutId,this.interactionLoggingClientData,this.eY,this.element,void 0,!0),g.n(this,this.adInfoButton),this.X!==void 0?this.G.insertBefore(this.adInfoButton.element,this.X.element.nextSibling):this.adInfoButton.AX(this.G),this.adInfoButton.init(I1("ad-info-hover-text-button"),b,this.macros)):g.kJ(Error("AdInfoRenderer is not found in player overlay layout.")));b=this.api.getVideoData()?.isDaiEnabled();R.adDurationRemaining&&b&&(b=g.Z(R.adDurationRemaining,mXT))&&(this.adDurationRemaining= new eg(this.api,this.layoutId,this.interactionLoggingClientData,this.eY,this.Y,K.videoAdDurationSeconds,!0),g.n(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.G.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.AX(this.G),this.adDurationRemaining.init(I1("ad-duration-remaining"),b,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));R.visitAdvertiserLink&&(K=g.Z(R.visitAdvertiserLink, $pT))&&(this.visitAdvertiserLink=new G3n(this.api,this.layoutId,this.interactionLoggingClientData,this.eY),g.n(this,this.visitAdvertiserLink),this.visitAdvertiserLink.AX(this.G),this.visitAdvertiserLink.init(I1("visit-advertiser-link"),K));R.adDisclosureBanner&&(R=g.Z(R.adDisclosureBanner,L4e))&&(this.adDisclosureBanner=new exT(this.api,this.layoutId,this.interactionLoggingClientData,this.eY),g.n(this,this.adDisclosureBanner),this.adDisclosureBanner.AX(this.D),this.adDisclosureBanner.init(I1("ad-disclosure-banner"), R));this.S=new we(this.api,this.Y,I,!0);g.n(this,this.S);g.dL(this.api,this.S.element,4);this.show()}clear(){this.hide()}};var gzn=class extends iN{constructor(b,R,h,K){super(b,{B:"div",Z:"ytp-ad-grid-card-text",W:[{B:"div",Z:"ytp-ad-grid-card-text__metadata",W:[{B:"div",Z:"ytp-ad-grid-card-text__metadata__headline"},{B:"div",Z:"ytp-ad-grid-card-text__metadata__description",W:[{B:"div",Z:"ytp-ad-grid-card-text__metadata__description__line"},{B:"div",Z:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{B:"div",Z:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",R,h,K);this.headline=new Q1(this.api,this.layoutId, this.interactionLoggingClientData,this.eY);g.n(this,this.headline);this.headline.AX(this.yX("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new hC(this.api,this.layoutId,this.interactionLoggingClientData,this.eY,!0);g.n(this,this.moreInfoButton);this.moreInfoButton.AX(this.yX("ytp-ad-grid-card-text__button"))}init(b,R){super.init(b,R,{});if(R?.title)if(b=R.title)if(this.headline.init(I1("ad-simple-attributed-string"),new O9(b)),b=g.Z(R.moreInfoButton,bF)){if(this.moreInfoButton.init(I1("ad-button"), b),R.descriptions)R.descriptions.length>0&&(b=R.descriptions[0])&&(this.G=new Q1(this.api,this.layoutId,this.interactionLoggingClientData,this.eY),g.n(this,this.G),this.G.AX(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.G.init(I1("ad-simple-attributed-string"),new O9(b))),R.descriptions.length>1&&(R=R.descriptions[1])&&(this.Y=new Q1(this.api,this.layoutId,this.interactionLoggingClientData,this.eY),g.n(this,this.Y),this.Y.AX(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]), this.Y.init(I1("ad-simple-attributed-string"),new O9(R)))}else g.X(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.X(Error("No headline found in AdGridCardText."));else g.X(Error("No headline found in AdGridCardText."))}onClick(b){super.onClick(b);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}clear(){this.hide();this.headline.clear();this.moreInfoButton.clear();this.G?.clear();this.Y?.clear()}hide(){this.headline.hide();this.moreInfoButton.hide(); this.G?.hide();this.Y?.hide();super.hide()}show(){super.show();this.headline.show();this.moreInfoButton.show();this.G?.show();this.Y?.show()}};var WUp=class extends iN{constructor(b,R,h,K){super(b,{B:"div",Z:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",R,h,K);this.G=[]}init(b,R){super.init(b,R,{});if(R?.gridCards)if(R.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.X(Error("Only single column style is currently supported in AdGridCardCollection."));else for(const h of R.gridCards){if(R=g.Z(h,DXB))b=new gzn(this.api,this.layoutId,this.interactionLoggingClientData,this.eY),g.n(this,b),b.AX(this.element),b.init(I1("ad-grid-card-text"), R),this.G.push(b)}else g.X(Error("No grid cards found in AdGridCardCollection."))}show(){for(const b of this.G)b.show();super.show()}clear(){this.hide();for(const b of this.G)b.clear()}hide(){for(const b of this.G)b.hide();super.hide()}};var Stn=class extends Wi{constructor(b,R,h,K,I){super(b,{B:"div",Z:"ytp-display-underlay-text-grid-cards",W:[{B:"div",Z:"ytp-display-underlay-text-grid-cards__content_container",W:[{B:"div",Z:"ytp-display-underlay-text-grid-cards__content_container__header",W:[{B:"div",Z:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{B:"div",Z:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{B:"div",Z:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {B:"div",Z:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards",R,h,K,I);this.playerProgressOffsetMs=0;this.Y=!1}init(b,R,h,K,I=0){super.init(b,R,h,K);this.playerProgressOffsetMs=I;mp(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.D.bind(this));this.api.addEventListener("resize",this.J.bind(this));this.api.GK()?(this.Y=!0,this.api.zU(!0),this.show()):this.hide()}X(){if(this.G){var b=this.G.getProgressState();b&&b.current&& !this.Y&&1E3*b.current>=this.playerProgressOffsetMs&&(this.Y=!0,this.api.zU(!0),this.show())}}S(){this.Y&&this.api.zU(!1);this.hide()}clear(){this.api.zU(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.D.bind(this));this.api.removeEventListener("resize",this.J.bind(this));PY(this);this.hide()}hide(){vPH(!1);super.hide()}show(){vPH(!0);super.show()}};var UeH=class extends Stn{constructor(b,R,h,K,I){super(b,R,h,K,I);this.adGridCardCollection=new WUp(this.api,this.layoutId,this.interactionLoggingClientData,this.eY);g.n(this,this.adGridCardCollection);this.adGridCardCollection.AX(this.yX("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new hC(this.api,this.layoutId,this.interactionLoggingClientData,this.eY);g.n(this,this.adButton);this.adButton.AX(this.yX("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.V=this.yX("ytp-display-underlay-text-grid-cards__content_container");this.T6=this.yX("ytp-display-underlay-text-grid-cards__content_container__header")}init(b,R,h,K){if(R?.adGridCardCollection)if(R?.adButton){var I=Number(R.playerProgressOffsetMs||"0");isNaN(I)?super.init(b,R,h,K):super.init(b,R,h,K,I);b=R.headline;h=g.Z(R.adAvatar,ol);b&&h?(this.headline=new Q1(this.api,this.layoutId,this.interactionLoggingClientData,this.eY),g.n(this,this.headline),this.headline.AX(this.yX("ytp-display-underlay-text-grid-cards__content_container__header__headline")), this.headline.init(I1("ad-simple-attributed-string"),new O9(b)),this.adAvatar=new RX(this.api,this.layoutId,this.interactionLoggingClientData,this.eY),g.n(this,this.adAvatar),this.adAvatar.AX(this.yX("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(I1("ad-avatar"),h)):this.T6.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");b=g.Z(R.adGridCardCollection,oRw);this.adGridCardCollection.init(I1("ad-grid-card-collection"), b);R=g.Z(R.adButton,bF);this.adButton.init(I1("ad-button"),R);this.hide()}else g.X(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.X(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}onClick(b){(this.adButton&&g.gM(this.adButton.element,b.target)||this.adAvatar&&g.gM(this.adAvatar.element,b.target))&&this.api.pauseVideo();super.onClick(b);this.api.onAdUxClicked(this.componentType,this.layoutId)}J(){}clear(){this.hide();this.headline?.clear();this.adAvatar?.clear(); this.adGridCardCollection.clear();this.adButton.clear();super.clear()}show(){this.headline?.show();this.adAvatar?.show();this.adGridCardCollection.show();this.adButton.show();super.show()}hide(){this.headline?.hide();this.adAvatar?.hide();this.adGridCardCollection.hide();this.adButton.hide();super.hide()}D(b){b==="transitioning"?(this.V.classList.remove("ytp-ad-underlay-clickable"),this.show()):b==="visible"?this.V.classList.add("ytp-ad-underlay-clickable"):b==="hidden"&&(this.hide(),this.V.classList.remove("ytp-ad-underlay-clickable"))}};var nz3=class extends iN{constructor(b,R,h,K){super(b,{B:"div",Z:"ytp-ad-details-line"},"ad-details-line",R,h,K);this.G=[];this.hide()}init(b,R){super.init(b,R,{});if(R.attributes===void 0)g.X(Error("No attributes found in AdDetailsLineViewModel."));else if(R.style===void 0)g.X(Error("No style found in AdDetailsLineViewModel."));else{for(const K of R.attributes)if(K.text!==void 0){b=K.text;var h=R.style;const I=new Q1(this.api,this.layoutId,this.interactionLoggingClientData,this.eY);g.n(this,I);I.AX(this.element); a:switch(h){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":h="ytp-ad-details-line__text--style-responsive";break a;default:h="ytp-ad-details-line__text--style-standard"}I.element.classList.add(h);I.init(I1("ad-simple-attributed-string"),new O9(b));this.G.push(I)}this.show()}}show(){this.G.forEach(b=>{b.show()}); super.show()}clear(){this.hide()}hide(){this.G.forEach(b=>{b.hide()}); super.hide()}};var Ez3=class extends iN{constructor(b,R,h,K){super(b,{B:"div",Z:"ytp-image-background",W:[{B:"img",Z:"ytp-image-background-image"}]},"image-background",R,h,K);this.hide()}init(b,R){super.init(b,R,{});if((b=tj(R.image?.sources||[])?.url||"")&&b.length){var h=this.yX("ytp-image-background-image");g.MN(h,"backgroundImage",`url(${b})`);R.blurLevel!==void 0&&g.MN(h,"filter",`blur(${R.blurLevel}px)`);R.gradient!==void 0&&(R=new g.w({B:"div",F5:["ytp-image-background--gradient-vertical"]}),g.n(this,R), R.AX(this.element));this.show()}else g.X(Error("Failed to get imageUrl in ImageBackground."))}clear(){this.hide()}};var Txr=class extends Wi{constructor(b,R,h,K,I){super(b,{B:"svg",Z:"ytp-timed-pie-countdown",O:{viewBox:"0 0 20 20"},W:[{B:"circle",Z:"ytp-timed-pie-countdown__background",O:{r:"10",cx:"10",cy:"10"}},{B:"circle",Z:"ytp-timed-pie-countdown__inner",O:{r:"5",cx:"10",cy:"10"}},{B:"circle",Z:"ytp-timed-pie-countdown__outer",O:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",R,h,K,I);this.V=this.yX("ytp-timed-pie-countdown__inner");this.Y=Math.ceil(2*Math.PI*5);this.hide()}init(b,R){super.init(b,R,{}); g.MN(this.V,"stroke-dasharray",`0 ${this.Y}`);this.show()}clear(){this.hide()}hide(){PY(this);super.hide()}show(){mp(this);super.show()}S(){this.hide()}X(){if(this.G){var b=this.G.getProgressState();b!=null&&b.current!=null&&g.MN(this.V,"stroke-dasharray",`${b.current/b.seekableEnd*this.Y} ${this.Y}`)}}};var jlw=class extends iN{constructor(b,R,h,K){super(b,{B:"div",Z:"ytp-video-interstitial-buttoned-centered-layout",O:{tabindex:"0"},W:[{B:"div",Z:"ytp-video-interstitial-buttoned-centered-layout__content",W:[{B:"div",Z:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{B:"div",Z:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",W:[{B:"div",Z:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{B:"div",Z:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {B:"div",Z:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{B:"div",Z:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{B:"div",Z:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",R,h,K);this.Y=null;this.V=this.yX("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.X=new vi;g.n(this,this.X);this.hide()}init(b, R){super.init(b,R,{});if(H7H(R)){this.adAvatar=new RX(this.api,this.layoutId,this.interactionLoggingClientData,this.eY);g.n(this,this.adAvatar);this.adAvatar.AX(this.yX("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(I1("ad-avatar"),g.Z(R.adAvatar,ol));this.headline=new Q1(this.api,this.layoutId,this.interactionLoggingClientData,this.eY);g.n(this,this.headline);this.headline.AX(this.yX("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(I1("ad-simple-attributed-string"),new O9(R.headline));if(b=g.Z(R.adDetailsLine,rWq))this.detailsLine=new nz3(this.api,this.layoutId,this.interactionLoggingClientData,this.eY),g.n(this,this.detailsLine),this.detailsLine.AX(this.yX("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(I1("ad-details-line"),b); this.adButton=new hC(this.api,this.layoutId,this.interactionLoggingClientData,this.eY,!0);g.n(this,this.adButton);this.adButton.AX(this.yX("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(I1("ad-button"),g.Z(R.adButton,bF));this.adBadge=new xF(this.api,this.layoutId,this.interactionLoggingClientData,this.eY,!0);g.n(this,this.adBadge);this.adBadge.AX(this.V);this.adBadge.init(I1("ad-badge"),g.Z(R.adBadge,Dv));this.adInfoButton=new uY(this.api, this.layoutId,this.interactionLoggingClientData,this.eY,this.element,void 0,!0);g.n(this,this.adInfoButton);this.adInfoButton.AX(this.V);this.adInfoButton.init(I1("ad-info-hover-text-button"),g.Z(R.adInfoRenderer,nA),this.macros);if(b=g.Z(R.skipAdButton,hgq))this.skipAdButton=new znr(this.api,this.layoutId,this.interactionLoggingClientData,this.eY),g.n(this,this.skipAdButton),this.skipAdButton.AX(this.element),this.skipAdButton.init(I1("skip-button"),b);this.Y=new YF(R.durationMilliseconds);g.n(this, this.Y);if(b=g.Z(R.countdownViewModel,sX3))this.G=new Txr(this.api,this.layoutId,this.interactionLoggingClientData,this.eY,this.Y),g.n(this,this.G),this.G.AX(this.yX("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.G.init(I1("timed-pie-countdown"),b);if(R=g.Z(R.imageBackground,F4T))this.imageBackground=new Ez3(this.api,this.layoutId,this.interactionLoggingClientData,this.eY),g.n(this,this.imageBackground),this.imageBackground.AX(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"), this.imageBackground.init(I1("image-background"),R);this.show();this.element.focus()}}clear(){this.X.Y();this.hide()}show(){Beq(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();super.show()}hide(){Beq(!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.G&&this.G.hide();this.imageBackground&&this.imageBackground.hide();super.hide()}};var RQ=class extends g.NU{constructor(b,R=2){super();this.api=b;this.G=null;this.handler=new vi(this);g.n(this,this.handler);this.Y=S2T;this.handler.j(this.api,"presentingplayerstatechange",this.X);this.G=this.handler.j(this.api,"progresssync",this.FX);this.rW=R;this.rW===1&&this.FX()}LB(){return 1E3*this.api.getDuration(this.rW,!1)}stop(){this.G&&this.handler.Ac(this.G)}FX(){const b=this.api.getProgressState(this.rW);this.Y={seekableStart:b.seekableStart,seekableEnd:b.seekableEnd,current:this.api.getCurrentTime({playerType:this.rW, eh:!1})};this.publish("h")}getProgressState(){return this.Y}X(b){b.Up(2)&&this.publish("g")}};var J33="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(" ")),k3x=class extends Wje{constructor(b,R,h){super(b);this.api=b;this.eY=R;this.components={};b=new g.w({B:"div",F5:["video-ads","ytp-ad-module"]});g.n(this,b);j4&&g.Nv(b.element,"ytp-ads-tiny-mode");this.S=new dc(b.element); g.n(this,this.S);g.dL(this.api,b.element,4);Y4(h)&&(h=new g.w({B:"div",F5:["ytp-ad-underlay"]}),g.n(this,h),this.X=new dc(h.element),g.n(this,this.X),g.dL(this.api,h.element,0));g.n(this,d53())}V(b){var R=b.id,h=b.content;const K=h.componentType;if(!J33.includes(K))switch(b.actionType){case 1:b=GQT(K,this.api,this.eY,h.layoutId,h.interactionLoggingClientData,h instanceof oP?h.C$:!1,h instanceof oP||h instanceof kF?h.IN:!1);if(!b){g.kJ(Error("No UI component returned from ComponentFactory for type: "+ K));break}g.wx(this.components,R)?g.kJ(Error("Ad UI component already registered: "+R)):this.components[R]=b;b.bind(h);h instanceof juq?this.X?this.X.append(b.ZY):g.kJ(Error("Underlay view was not created but UnderlayRenderer was created")):this.S.append(b.ZY);break;case 2:R=gPT(this,b);if(R==null)break;R.bind(h);break;case 3:h=gPT(this,b),h!=null&&(g.$l(h),g.wx(this.components,R)?(h=this.components,R in h&&delete h[R]):g.kJ(Error("Ad UI component does not exist: "+R)))}}X5(){g.IZ(Object.values(this.components)); this.components={};super.X5()}};var Ytx=class extends g.AW{constructor(b){super(b);this.Y=null;this.created=!1;this.X=new snn(this.player);this.V=()=>this.Y!=null?this.Y:this.Y=(new I2p({kJ:mi(this.G).kJ,V$:mi(this.G).V$,A:this.player,xk:mi(this.G).xk,aH:this.G.G.aH,Im:mi(this.G).Im,Op:this.G.G.Op})).Y; this.G=new dgt(this.player,this,this.X,this.V);g.n(this,this.G);const R=b.L();!Rd(R)||g.Mz(R)||hn(R)||(g.n(this,new k3x(b,mi(this.G).eY,mi(this.G).xk)),g.n(this,new f2z(b)))}create(){try{EPK(this),this.load(),this.created=!0,EPK(this)}catch(b){u2(b instanceof Error?b:String(b))}}load(){this.S()}S(){super.load();var b=mi(this.G).xk;try{this.player.getRootNode().classList.add("ad-created")}catch(p){u2(p instanceof Error?p:String(p))}var R=this.player.getVideoData({playerType:1});const h=R&&R.videoId|| "";var K=R&&R.getPlayerResponse()||{},I=(K&&K.adPlacements||[]).map(p=>p.adPlacementRenderer),N=(K?.adSlots||[]).map(p=>g.Z(p,G5)); K=K.playerConfig&&K.playerConfig.daiConfig&&K.playerConfig.daiConfig.enableDai||!1;R&&R.AO();b=Wie(I,N,b,mi(this.G).iY);I=R&&R.clientPlaybackNonce||"";R=R&&R.X0||!1;N=1E3*this.player.getDuration(1);this.player.getVideoData({playerType:1})?.X0||eBw(this.player)&&RfK(this.player.getInternalApi());this.G.G.B9.JE(I,N,R,b.kU,b.Em,b.kU,K,h)}destroy(){const b=this.player.getVideoData({playerType:1});this.G.G.B9.TT(b&&b.clientPlaybackNonce||"");this.unload();this.created=!1}unload(){super.unload();try{this.player.getRootNode().classList.remove("ad-created")}catch(b){u2(b instanceof Error?b:String(b))}if(this.Y!=null){const b=this.Y;this.Y=null;b.dispose()}this.X.reset()}Bd(){return!1}getAdState(){return-1}getOptions(){return Object.values($gn)}iR(b,R={}){switch(b){case "replaceUrlMacros":return R.url?(b=$Gx(this.player),Object.assign(b,R.zJ6),R=g.eB(R.url,b)):R=null,R;case "onAboutThisAdPopupClosed":this.VG(R);break;case "executeCommand":R.command&&R.layoutId&&this.executeCommand(R);break;default:return null}}Pk(b){return!!this.G.G.Zq?.get().Pk(b)}VG(b){b.isMuted&&v5s(mi(this.G).Im, mi(this.G).kJ,b.layoutId);this.EE&&this.EE.VG()}executeCommand(b){mi(this.G).eY.executeCommand(b.command,b.layoutId)}};g.kB("yt.player.Application.create",g.xR.create);g.kB("yt.player.Application.createAlternate",g.xR.create);pkP(SU(),KUn);var en3=g.YB("ytcsi.tick");en3&&en3("pe");g.jR("ad",Ytx);g.OrR=class extends g.N3{constructor(b){super();this.callback=b;this.G=new g4(0,0,.4,0,.2,1,1,1);this.delay=new g.F7(this.next,window,this);g.n(this,this.delay)}start(b,R,h){this.config={from:b,to:R,duration:h,startTime:(0,g.c)()};this.next()}stop(){this.delay.stop();this.config=void 0}next(){if(this.config){var b=this.config.from,R=this.config.to,h=this.config.duration,K=this.config.startTime;K=(0,g.c)()-K;var I=this.G;h=g.ui(SI(I,n5(I,K/h)),0,1);this.callback(b+(R-b)*h);h<1&&this.delay.start()}}};g.QnH=class extends g.w{constructor(b){super({B:"div",Z:"ytp-more-videos-view",O:{tabIndex:"-1"}});this.api=b;this.Y=!0;this.X=new g.Ke(this);this.G=[];this.suggestionData=[];this.columns=this.containerWidth=this.D=this.V=this.scrollPosition=0;this.title=new g.w({B:"h2",Z:"ytp-related-title",IH:"{{title}}"});this.previous=new g.w({B:"button",F5:["ytp-button","ytp-previous"],O:{"aria-label":"Mostrar v\u00eddeos sugeridos previamente"},W:[g.dm()]});this.J=new g.OrR(R=>{this.suggestions.element.scrollLeft= -R}); this.next=new g.w({B:"button",F5:["ytp-button","ytp-next"],O:{"aria-label":"Mostrar m\u00e1s v\u00eddeos sugeridos"},W:[g.fW()]});g.n(this,this.X);this.S=b.L().V;g.n(this,this.title);this.title.AX(this.element);this.suggestions=new g.w({B:"div",Z:"ytp-suggestions"});g.n(this,this.suggestions);this.suggestions.AX(this.element);g.n(this,this.previous);this.previous.AX(this.element);this.previous.listen("click",this.U,this);g.n(this,this.J);Jpx(this);g.n(this,this.next);this.next.AX(this.element);this.next.listen("click", this.K,this);this.X.j(this.api,"appresize",this.fz);this.X.j(this.api,"fullscreentoggled",this.AB);this.X.j(this.api,"videodatachange",this.onVideoDataChange);this.fz(this.api.tX().getPlayerSize());this.onVideoDataChange()}hasSuggestions(){return this.suggestionData.length>0}K(){this.Y&&this.scrollTo(this.scrollPosition-this.containerWidth)}show(){super.show();kQ3(this)}U(){this.Y&&this.scrollTo(this.scrollPosition+this.containerWidth)}AB(){this.fz(this.api.tX().getPlayerSize())}fz(b){var R=this.api.isEmbedsShortsMode()? .5625:16/9,h=this.api.tU();b=b.width-(h?112:58);h=Math.ceil(b/(h?320:192));const K=(b-h*8)/h;R=Math.floor(K/R);for(const I of this.G){const N=I.yX("ytp-suggestion-image");N.style.width=`${K}px`;N.style.height=`${R}px`}this.suggestions.element.style.height=`${R}px`;this.V=K;this.D=R;this.containerWidth=b;this.columns=h;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.$t(this)}onVideoDataChange(){const b=this.api.L(),R=this.api.getVideoData();this.S=R.C0?!1:b.V;this.suggestionData=R.suggestions? g.lR(R.suggestions,h=>h&&!h.playlistId):[]; O7x(this);R.C0?this.title.update({title:g.zc("M\u00e1s v\u00eddeos de $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:R.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"M\u00e1s Shorts":"M\u00e1s v\u00eddeos"})}scrollTo(b){b=g.ui(b,this.containerWidth-this.suggestionData.length*(this.V+8),0);this.J.start(this.scrollPosition,b,1E3);this.scrollPosition=b;g.$t(this);kQ3(this)}};})(_yt_player);