var _yt_player={};(function(g){var window=this;/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Google LLC SPDX-License-Identifier: Apache-2.0 */ /* Copyright Google LLC All Rights Reserved. Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.dev/license */ /* (The MIT License) Copyright (C) 2014 by Vitaly Puzrin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ----------------------------------------------------------------------------- Ported from zlib, which is under the following license https://github.com/madler/zlib/blob/master/zlib.h zlib.h -- interface of the 'zlib' general purpose compression library version 1.2.8, April 28th, 2013 Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. Jean-loup Gailly Mark Adler jloup@gzip.org madler@alumni.caltech.edu The data format used by the zlib library is described by RFCs (Request for Comments) 1950 to 1952 in the files http://tools.ietf.org/html/rfc1950 (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format). */ /* The MIT License (MIT) Copyright (c) 2015-present Dan Abramov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ 'use strict';var r="fallback_count;length;qjF8xQa;;rr?[1-9].*\\.c\\.youtube\\.com$;scheme;join;startsWith;rr;splice;push;X;indexOf;youtube.player.web_20250708_14_RC00;/videoplayback;/file/index.m3u8;s;match;reverse;fromCharCode;prototype;pop;https://local;set;get;slice;path;1;n;Wd;Z;,;cd;url;/initplayback;\\.a1\\.googlevideo\\.com$;K;:;local;index.m3u8;signatureCipher;split;cmo=td;=;f3;G;1970-01-01T01:06:25.000+01:00;Uk;/;toString;/api/manifest;1970-01-01T03:30:47.000+03:30;fvip;sp;%3D;Pr;cmo=;www.youtube.com;cmo=pf;replace;1969-12-31T22:00:37.000-02:00;---;mn;forEach;assign;unshift;d4m8LoKJOzgtp4ByeH-_w8_;Untrusted URL;?;1969-12-31T20:15:50.000-03:45;a1.googlevideo.com;cmo;1970-01-01T01:01:18.000+01:00;://;undefined;&;clone;file;1969-12-31T17:46:23.000-06:15;http://local;//;redirector.googlevideo.com;1970-01-01T06:31:29.000+06:30;1969-12-31T22:00:40.000-02:00;r;Wr;\\.googlevideo\\.com$;\\,,],;playerfallback".split(";"), BM,Lfn,cJM,qM,IRR,xMv,WM,onc,MM,S$x,zc,s$,vM,f6,rJc,hTf,ZR,p6,RTx,jv,uxH,ln,Qr,tvJ,U$,E$,Xx,K6,Yn,O6n,n6,xN,q$n,Wff,Mvf,qg,zTr,sHx,WU,vnT,fRn,s9,FfH,b6M,yM,i6x,PU,GcH,gnM,HU,kcx,DMc,wMf,JJR,eR,B2,Vv6,CnM,ru,Oo,aRf,v2,fe,A_,FW,bw,iw,yJf,GG,gu,kL,Z6r,$Mc,wu,jHJ,Ce,NQ,lw,P2,du,Uo,H66,lRH,Eo,Ke,XW,PnR,QHx,dM6,UM$,XMJ,e5,Lo,ca,Ig,Ba,og,rz,eeH,Rg,t0,O3,q9,Ty,M9,zy,LNH,s3,va,Fj,IJv,BMM,xgM,bv,Gy,gz,wz,J0,Co,ag,OZr,q9R,TMH,WNv,N9,Mev,mj,yK,Z5,zen,po,sLc,fJv,lv,QK,E3,Ko,YC,bZ$,FNn,DgH,gNc,JwM,IF,Bz,hj,aJ$, mgx,NMv,u3,O_,ywf,tj,z$,cz,pUr,ZZc,G$,i3,no,$gH,gF,D1,kr,jLr,Jj,HZx,CU,aF,Nl,mR,yD,Z1,pU,jf,Hz,dF,U_,KU,P7$,dg$,QLJ,Ugn,ENn,In,BA,xT,KN6,on,Y9f,S_,Rn,uD,eVv,LOv,Bur,c_M,xQ$,hVH,th,r_r,oLH,Od,qt,RVf,TM,uWc,WA,OeM,tRc,qon,TuR,vA,fH,WOT,MR6,zVM,Ah,Fo,ssH,FO6,bD,bec,ieM,w2n,kT,DQT,GGn,VRr,NuH,wR,VO,an,CH,mQf,Nt,ms,yO,$T,j_,HA,PA,Hev,QO,ltc,Ud,Xo,UQM,cy,By,oQ,ELx,xQ,X2c,KOM,Sd,IQ,rI,hT,YoH,RQ,tT,e7c,OX,q6,TK,I5n,AT,BzJ,x9r,oCn,S3R,ft,vy,zK,Ljv,c0c,r0n,R7v,ujn,t5M,i5,GK,gI,OoH,wI,VT,Ct,aQ,q3M,WjM,ZK,M5M, jd,$Q,A0r,l5,Hy,Fjr,ioT,dI,Py,Gy6,UX,EX,XJ,QT,YQ,Kt,er,nt,xs,gCJ,LA,I7,o7,kyv,Sr,D9$,re,ha,Or,q4,TJ,R7,ta,u6,M4,waf,zJ,J0H,sr,Cvn,b6,a5c,i6,Bt,GJ,ge,ks,m9n,D2,we,Vj,CA,a7,N4,m3,y0x,yj,Zox,Z2,pA,$s,Ht,jr,l6,Pt,Qj,de,Ur,paT,jgx,Xe,Hof,l5v,PvT,Ys,rD,uk,d96,tY,ECn,OD,KjM,qT,Tm,Wd,Y3H,MT,nC$,zm,erR,LRn,sD,cjn,vd,fK,AY,I1J,bk,ik,xlT,kO,rjr,BF6,Di,JY,VR,utn,hrn,mL,Hd,tfM,q_n,TFc,lk,Pd,dD,UD,ED,Xi,KK,zrx,sFT,vrf,AjT,FRM,nK,eW,bUv,LW,iU6,G$r,k$c,VfJ,cO,C3c,a1v,NFv,mlM,yjr,xW,ZUc,SW,$lr,RX,uT,HUJ,tp,OO,q3, l1n,P3R,M3,zE,fW,Ap,dlM,UlH,ErJ,kW,gj,GE,Xzx,KRH,Y_c,Dn,wj,Jp,egR,m_,yy,chJ,Ixn,cTn,Zn,pW,IKn,BIr,$W,x6$,oQn,SX$,rTr,PO,HO,Qy,dj,UO,hN6,RNc,uJc,EO,XY,tdr,KW,OtM,qXf,TIx,YW,Wvc,nW,ez,Mdr,zNc,sQT,vQH,fKM,ATM,IS,Bs,x6,Sz,itn,rq,hy,GK6,btf,oS,gQ$,RS,ug,ty,M_,Ws,kKn,D6n,wyx,zV,Vd6,s6,aKv,NIr,m6$,yTn,ZtM,py6,$6x,jQc,Ay,Fc,bg,lKc,Htv,P5n,QQJ,GV,d6c,gq,U6H,EQT,k6,wq,Jy,Xyv,VS,C0,Kvn,aS,N_,m8,yS,Zl,p0,$6,jz,YXT,nQ$,ej$,L3n,Hs,ca6,Bef,I2M,Ps,QS,osJ,x4r,hj6,trH,ueH,dq,OAr,qr$,Tec,MrM,W3M,zjR,U6,s7c,vsr,Xc,f2r, Aan,F3c,bAH,K0,iA$,Y6,GJM,n0,eO,kJM,LS,D4J,c9,Ij,wtc,JaJ,B9,oj,C6v,SO,Vrf,a2n,Nen,m4M,ZAx,rQ,ptn,um,tv,j7r,HA6,Q7n,d4x,OB,qz,TQ,W9,Mz,zQ,sB,v9,fS,Av,Fy,bm,im,K3v,Xtv,Yrc,elr,nsc,cYM,EsM,LLn,U4n,GQ,gQ,BDr,xTc,oOn,mV,yZ,ZH,kM,rYc,pS,Iic,RlJ,uir,hlJ,$M,jO,H9,lm,tNr,SDf,OK6,P9,qDf,TDR,WLc,MNM,zlc,fin,AYn,FLv,bKM,QZ,dQ,iKv,Gmr,DTn,wdR,UB,Xy,VNM,KS,EB,aiT,Ckn,NDf,mTH,yYR,nS,ey,pd$,$Tc,jJM,HKJ,liM,PkH,QJ$,dTn,UT$,EOx,ck,Im,Bk,x7,om,Sy,Xdn,nOT,eMc,L_M,InH,cp6,Bjv,Rm,ub,x3c,oWn,SOn,tx,Op,q1,TT,Wk,M1,zT,sp, rp6,fM,RMc,FC,uYn,tW$,bb,ib,GT,k7,gU,OW6,TjH,DT,YO,f1f,am,W_H,MW$,N1,zMn,CM,vWR,sX$,Ve,mI,ye,fnr,Apr,F_v,bWM,ZT,iWf,pM,YDM,KLM,$7,jy,lb,Pk,kEJ,Qe,dU,Ep,D3R,wOM,XC,Nj6,o$,VWn,anM,I$,Y7,R$,uq,m3$,qq,ypc,T4,Wo,ZWf,$3n,HW6,G4,kA,d3r,U36,EWM,DS,nWn,bq,PTn,L8n,YOn,XOc,K_n,cyM,e0H,Ji,a$,Bqc,x_H,o6$,S6v,ryH,mc,h0M,ZS,R0M,O0J,q6n,pc,W8c,z0M,MzJ,sS$,jA,Po,Ea,Kc,YA,nc,e1,La,AyM,F8v,b0n,c0,Id,X2,B0,xd,od,YM,S1,i0c,hU,kVx,Rd,ur,wsJ,D_$,JyM,Vzf,Cg6,tU,aln,NqH,m_J,OA,qk,Z0$,jSM,H0J,Ta,d_T,QSn,U_n,E6J,XsM,W0,K8$, llc,Mk,Y6n,n6x,za,LVx,cvx,IHJ,BQ$,xzc,v0,oMx,SBn,rvx,hZc,tOM,RZx,fa,AU,F_,br,ir,Ga,gk,kd,qBJ,wk,DX,TQT,Vi,zZr,JU,sjf,vMf,iSJ,fHc,Avr,FVv,bSf,Ca,ad,Nk,GQc,ma,yi,ZX,pa,$d,j1,JvM,gMn,Qi,w9r,dk,DzR,P0,H0,kQ$,lr,EA,CmM,Ka,X_,aHv,NQJ,mzc,cT,Ib,x4,p9n,BT,rG,$zn,hS,yvf,lHx,Pmv,QjM,tS,O1,qA,dzJ,Tf,WT,MA,zf,Uzn,s1,vT,fs,EMT,X9v,AS,KVr,$_T,nM$,e$n,LIH,cxT,BUc,YBM,x1v,rxn,bB,Gf,R$H,uCf,tyn,OMr,TUv,D$,k4,WIT,qpH,v7v,smn,Axv,JS,FIR,wG,Cs,bMc,ab,mn,yw,iMn,GTf,dG,g7n,E1,kTc,D16,BY,wk6,Vyv,x2,Cb6,aTn,pkx,NUv,hL,RA, uA,Om,qZ,Pbv,Tl,WY,MZ,d1n,vY,U1M,E7H,f1,KIR,FZ,bA,iA,Gl,Yp$,gp,DW,wp,JL,V5,n7f,epM,Lc6,aA,NZ,me,y5,ZW,p1,civ,ISn,BT6,xqJ,oA6,SaT,$2,ric,Um,hpf,Rpv,u2M,Em,K1,Y2,n1,cu,I6,Bu,Occ,SM,rW,hG,qav,TTc,R6,Wcc,MAT,tG,icc,G4f,gAM,Oe,k4n,DqH,VAf,Tw,aST,Cqx,NT6,yi6,Zcc,zw,se,poM,vu,fT,AG,F$,bd,id,Gw,gW,kJ,Du,wW,JG,VJ,CT,$qv,j$n,Hc6,yJ,pT,lSJ,ld,Pu,QJ,dW,Ue,X$,KT,UqJ,YJ,nT,eG,Xoc,EAH,Pqx,IC,c3,eLx,B3,ON,RC,qL,TZ,cUc,ML,odM,Bk$,xk6,rUn,Oa6,hLM,u_6,t1v,Lan,sN,zZ,Tk$,fQ,AF,F1,Wa$,wa,M1c,JF,V2,CQ,NL,zLM,y2,ZM,sdJ, pQ,$a,fXn,lL,Q2,da,UN,EN,X1,KQ,Ya,nQ,eL,FaT,Lv,BI,IG,iac,DkM,gd6,kaJ,w0c,JUT,Crc,aXH,V1v,mkx,SL,rs,uS,yUc,Zac,RG,t7,$kc,jdn,Qdf,PrJ,WI,Mx,zx,sR,vI,Ukc,EdJ,k5,D8,X06,Kan,YAR,aG,Nx,mP,ndT,eDc,cSn,BGT,$5,xAJ,lS,jL,ds,UR,XF,o4f,IM,BK,xi,oM,rm,hg,uE,uVc,t9x,OL,OsJ,q1v,TI,TGx,Wn$,WK,MO,M9c,zDM,v4n,f$,ASn,FnM,sL,bs6,isM,g4r,Gfv,iE,f$c,DAR,wTn,Jg,DQ,JSc,V9J,Va,C$,CBf,a$M,md,NG$,mAf,ySx,Zsc,jt,pTx,$A6,jbn,Hsx,l$v,PBf,Qb$,dAx,lE,UAx,Qa,XTn,Kn6,Y1v,n46,eQr,dm,n$,cLM,xZr,e4,o2r,rL$,Lev,hQn,RQv,uZc,IWR,Bp6,UL, EL,Yi,SmT,K$,X9,tZT,O1J,qmr,Tpc,WeR,MZR,ALH,zQf,xR,of,rO,i1J,klc,g2r,S4,uM,DZH,qK,wYM,VZJ,sx,JL$,jAf,CAc,$ZT,Fk,H1H,QAv,bM,AH,lW6,PAT,dZR,GW,E2v,XYx,KeH,YmH,n2$,eav,LHc,UZH,IuH,BWr,xN6,SeR,oJv,ha$,wO,Raf,JH,Vo,CF,u$c,tMx,m7,yo,qeM,OTc,ZZ,TWn,MMc,s6n,zaJ,vJH,FH$,fun,Xk,Ip,cL,bT$,LG,BL,xv,op,Sl,iTn,h$,gJR,t$,ux,qc,Tr,WL,Mc,kw$,zr,fG,DNR,Fg,ix,Gr,wun,JGn,VMn,Cdr,gi,D0,auv,wi,J$,VY,mNc,CG,ap,yGH,m9,pG,Z0,yY,$v,jl,$Nr,dNx,EJT,Q6f,PdM,UNx,PL,Uu,nJJ,Xur,KHf,YeJ,pur,rF6,BJ,SNn,u1c,oa6,lx,xg,Yv,cJ,hIn,Xg, HTM,j6n,luR,di,xL6,h9,MGf,Ro,sCx,van,fMR,t9,AFM,F2M,bQM,GZn,gan,Th,DLc,WJ,w3M,JFM,CLM,aMv,Nac,zh,mLn,ZQ6,sI,p3T,vJ,fE,nv,QCM,K2v,go,nar,c7c,Da,Bs6,xxr,o5$,jB,$g,SR6,Za,Gl6,m1,pE,yU,wo,KE,X7,nE,LN,hvc,c7,B7,xu,RvM,uFn,rJ,Ovr,qRc,Ts6,tm,WPH,MLc,zvn,sGJ,v5M,f8H,A7n,On,FPM,qw,W7,bvr,ivR,Gx6,g5x,kxx,Mw,z1,Dxf,wIR,J7M,VLT,CSr,a8n,Nsc,Am,FO,bX,mxr,iX,y7J,gJ,pIn,Zvx,Dy,wJ,Jm,VI,$xx,CN,a9,jGM,HvR,Nw,mD,dxM,l86,QGM,PSn,yI,Zy,pN,Uxr,E5v,XIM,$u,YR$,Ldn,edf,jH,H7,lX,P7,QI,Un,En,XO,KN,Yu,nN,cgx,IQR,Bmr,eF,Lq,cZ, Ir,xw,SF,SLr,oin,hW,rgv,Rr,u1,tW,Os,q2,M2,ze,vZ,fq,AW,Fn,b1,i1,u9v,Ge,g9,kw,tt$,qL$,VL,Tmc,Cq,ar,zdv,sMn,vic,AgH,b$H,$w,i$f,HZ,jF,kI6,DOM,wKr,PZ,QL,VtM,Us,Es,Xn,Kq,aQf,Yw,nq,ei,Nm6,Li,CET,cE,IN,yg$,mO6,BE,xE,oN,Si,hD,pKc,$OM,ue,tD,qv,Tp,jMx,Ov,PE6,QMv,dOr,UOJ,EiM,XKn,Kdn,Mv,WE,lQx,eqR,zp,cHr,IZc,be,BOc,fi,AD,xKR,ie,SxM,hqx,Gp,g_,Rqn,kE,t4T,De,zq$,W7v,OFH,TO$,qxx,JD,V_,Ci,aN,Nv,mQ,y_,pi,vR$,F7M,HE,JYc,le,bFr,GWc,Q_,XT,d_,Ev,Uv,DKr,kWR,gRc,w4c,Ki,JHc,NOn,YE,ej,yHc,L5,cl,I8,Bl,ZF6,p4J,xj,o8,Sj,$Kn,jf$, hP,OK,qR,TA,Wl,MR,zA,sK,vl,f5,AP,FP,bG,iG,HFM,lZJ,m$,yB,ZG,p5,jj,Hl,PMr,QfR,lG,UK,ERf,X4M,EK,XP,cC,Yxc,xm,nR6,e2n,rf,L9n,I0v,c$6,Bic,xcc,ov6,Sun,r$n,h2f,ugT,R2$,tlR,Tin,Mlx,qur,z2T,spv,f0T,Rz,uI,F9v,A$M,tA,OQ,q7,iGr,Td,WC,M7,gv$,krM,zd,GrR,sQ,J$v,vC,fu,AA,Fr,bI,iI,Gd,gf,km,DU,wf,JA,V8,Cu,az,N7,my,y8,ZU,pu,$m,j3,HC,lI,PC,Q8,df,UQ,EQ,Xr,Ku,Ym,nu,ep,LR,cv,IW,Bv,xK,oW,Sp,ry,hl,RW,uN,tl,OE,qj,T9,Wv,Mj,z9,sE,vv,fR,Al,F3,bN,iN,G9,gy,kK,Dw,wy,Jl,V0,CR,aW,Nj,mu,Zw,pR,CxT,$K,K,jp,y0,Hv,lN,Pv,Nif,dy,y$r,Q0, ZGM,EE,pLr,KR,UE,YK,nR,eh,cq,jpJ,HG6,l0x,Pxf,uh,tz,Sh,OZ,dc6,UcJ,EvH,XLf,$cn,K9c,LC,Yux,nvn,Tu,vq,Wq,Bq,eCv,I2,qd,Md,fC,c9T,xH,o2,sZ,zu,Ian,Az,F5,bh,ih,Bo6,Gu,gw,kH,DV,ww,xyH,ogn,r9f,hCn,CC,a2,u76,Nd,ToJ,MB$,soc,vg$,yq,A9f,F1$,lh,bER,Pq,Qq,dw,UZ,EZ,X5,iEH,ggR,khf,GhM,DyJ,wJn,ec,Lz,I0,xf,o0,Sc,J9c,r4,VBr,hE,R0,cx,Ot,qi,TH,Wx,CFM,tE,NoH,Mi,myT,y96,zH,ZER,vx,fz,pJc,$yf,AE,joJ,HEr,FQ,laf,PFx,QoT,dyM,bi,ii,Uyc,Egc,GH,g4,kf,XJJ,D4,w4,JE,V1,K1v,Cz,a0,YIR,Ni,ngx,m5,esr,LDM,cmc,Iy$,BJ6,xwn,y1,oun,Snr,rmT, Z4,hs$,pz,Rsn,$f,uOn,jc,tHx,ONv,Hx,Ut,qnJ,Et,XQ,Kz,Yf,TJc,nz,e0,Ln,WDH,MHM,IK,B1,s9H,xl,vuT,fyv,zsR,Am6,FDc,bNv,S0,iNn,rr,RK,uy,G1f,tQ,O7,Tn,guH,W1,M8,k1J,s7,AQ,v1,Gn,gr,Dwv,kl,w7c,wr,JQ,Vd,Jmn,aK,VHn,yd,Zh,pn,by,$l,j0,H1,CXx,ly,P1,Qd,ayM,dr,U7,E7,XG,Kn,Yl,eg,Lx,cX,Ii,NJJ,mwc,ymM,Sg,BX,r1,hf,ZNv,p7n,$wr,Ri,uc,tf,j9H,HNM,oi,lyn,PX$,OP,Q9c,qp,Tk,Mp,zk,sP,vX,fx,FI,bc,Gk,g1,k_,DD,ic,Eu6,X7f,Jf,Vv,Cx,KDR,Np,nuR,ml,yv,eOc,ZD,$_,HX,LZc,jg,lc,PX,Qv,cWr,EP,B9c,x2$,owr,Kx,XI,SsM,rWf,hO6,Y_,unv,ai,ROR,tFn,nx, Oqn,es,qsv,LL,T9$,WZT,MFn,zO$,srn,cw,fFM,vwT,IT,oT,AWx,Ss,FZR,rh,bqv,iq6,ht,Gen,gwv,ken,D2M,RT,wZH,uP,VFf,OJ,qm,aFc,C1M,N9H,m2M,yWT,Ww,Mm,z5,Zqf,pZ$,$2J,jrn,Hqx,lFr,P1n,Qrx,d2x,U2M,vw,fL,Ewc,XZn,At,Fa,KZ$,bP,iP,gh,YsT,k9,DO,wh,nwc,Jt,e_$,VX,LQn,CL,cD$,Ie$,aT,B_H,xvv,oEJ,Nm,mp,yX,ZO,pL,SvM,rDM,$9,js,Hw,h_n,lP,Pw,QX,dh,UJ,R_T,uTJ,EJ,Xa,tif,KL,Y9,nL,em,SIM,Oin,qvH,LP,T_H,WQR,MiM,cf,IV,Bf,xP,oV,Sm,TU,Wf,Mb,zU,s5,z_6,sNM,GU,gK,fec,kP,Nb,wK,ZC,gE$,Vic,kpM,Cev,N_x,mvr,aex,yD6,Zin,pEH,KP,Hi$,QNH,PeT,Uvn, EEM,XEc,Lh,cF,Yv6,nE$,IG$,Iu,BLM,eyr,BF,xz,ou,S2,oj$,hyJ,SKH,tjv,s8c,zyR,O56,vj$,hI,TL$,qK$,F$n,GAf,i5x,wlT,gjR,Ru,uV,NL6,qS,mRc,lG$,H5n,j8n,$RJ,Z5H,dRr,Q8n,plM,YKr,K$r,njR,sy,cAv,eEM,LyJ,yPr,IU$,Bfn,TY,MS,EjM,URM,Xl$,x76,WF,PGn,SQT,hEf,urr,Ouc,Wyr,M3n,szf,vmJ,AAf,fUc,gmn,bur,Fyx,kdv,JA$,V3r,CIM,aUT,w2,nP,yAR,NfJ,Ch,mM,yF,jzM,Huc,$7M,ZL,lUc,ph,$z,KC,j2,jNr,HF,lV,PF,PIH,QzR,QF,d7n,U7f,Emn,d2,Uy,Ey,Xm,Kh,Yz,nh,eX,Lb,XCf,Kyc,c$,YQr,Ih,x9,B$,xB,LuR,nmx,oh,clr,Iwn,ByJ,SX,e96,r8,xjr,hR,oKM,SE$,dvM,pCc, rln,Rh,YH,Vq,vF,h9n,R96,tR,aGR,tI,u3n,JI,VF,AI,fh,r2,bV,qQr,zEc,Fm,JPT,D7M,tpc,fGf,W$r,OT,Zu6,e2,qEn,ORv,xRf,TfH,Ty$,wCJ,kz,Vj6,CGc,b56,t3H,REJ,uPc,rPx,cPc,L$n,KQn,omT,MjM,iuc,kAc,DRM,GY,g2,iV,GdM,rAc,MpH,WuM,q5,TR,W$,M5,zR,sT,z9x,AR,Fd,bs,GR,g8,sWc,is,kB,Dj,vKc,w8,JR,Vg,ah,AlM,FuT,N5,mg,yg,Zj,pb,$B,jX,H$,gK6,P$,k9J,ls,Djn,iRM,G9$,wvx,Qg,d8,JlH,VpH,UT,CNn,Y5,NyR,awf,ylJ,pvM,$jM,ZRn,lwM,PNv,Uj$,XvT,Kur,EKH,cB,BB,Iy,YEr,nKM,LFM,ehM,eC,czn,IV$,BwH,xdx,LX,hhc,RhT,u56,rz$,SZ$,oHM,thT,OCT,QWT,qZ6,djc,TwM, WFf,vHc,MhH,zhJ,s2$,FFM,fVT,Azf,bCM,iCc,oy,kun,GuM,Ddf,gH6,wqn,JzH,Vhv,ChR,aVT,Nwr,md$,yzc,ZC$,pq6,$dn,j2M,SC,lV$,Phr,Q2J,HCn,ddf,EHx,rV,he,Xqn,KFc,Ry,uJ,YZR,nHn,e8$,L5f,Og,cEc,Tv,WB,B4v,xiT,off,h8T,zv,fX,FL,R8H,bJ,iJ,Gv,qtc,W5R,T4n,z8n,gfM,vf6,ay,k0,McH,OzJ,tcJ,uQx,CX,DA,Vp,pX,$0,wxM,jC,HB,ZA,a4r,JEc,VcR,N4x,lJ,PB,yEn,dV,Ug,Eg,XL,KX,Y0,nX,ZzM,pxM,eJ,Lw,I5,j0n,HzJ,cm,l4r,div,Ui$,Bm,Ef$,SJ,Xx6,r3,R5,K5v,hN,u$,Ytc,OH,ePM,LrR,T7,Wm,fw,Ihf,z7,AN,b$,Brx,G7,vm,Fw,x8r,g3,ol$,kc,S7r,MJ,sH,cQx,i$,DE,rQv,hPr, w3,RPJ,JN,VC,Cw,a5,uGc,mo,NJ,yC,ZE,t0f,On6,pw,$c,jJ,Hm,l$,q7c,Pm,QC,Tr$,Wrx,d3,UH,EH,zPv,M0R,Xw,sKJ,vlc,fhM,Kw,AQJ,FrT,bnn,in$,Gn$,Yc,nw,e6,Lk,glx,knc,IZ,D8n,B6,xZ,w1f,JQR,oZ,V0v,CyM,yQR,ZnM,ahn,Nrx,m86,rE,hB,RZ,u2,p1M,$8n,jKR,Hnc,OY,QKn,qh,U8M,X1M,ElJ,sY,z6,Y7M,nlR,e4$,Lln,v6,cfH,AB,FN,IDx,xp$,o_x,i2,DN,R4M,izf,wV,tgx,Oxc,qPM,T1M,Wl6,gV,G6,Vt,Ck,sic,v_R,fD$,aZ,ixc,Aff,Fln,g_x,kk$,Nh,Dpc,GkM,wXT,mA,ZN,pk,Jfc,VgM,$Z,j6,Ccx,H6,aDv,l2,wE,UY,N1c,GH6,s0c,EY,XN,YZ,nk,e8,Ll,cr,Kk,ol,yf6,r$,pXc,Rl,jiv,$pn, Zxr,Hxc,lDn,Pcc,qX,Qin,dpr,E_v,To,Din,Wr,KlJ,n_r,NB,eJx,Lpr,Je,f4n,F5J,bz6,XXx,zo,sh,fl,ctM,IO$,Bhx,xmn,o9r,SJM,rtv,uav,tsT,RJH,OL6,qJn,ThJ,Wpn,Ab,MsH,iC,zJc,sTc,v9n,Go,fOn,ky,Dz,w$,Jb,VG,AtT,Cl,al,Fpx,bLf,NX,mX,yG,Zz,pl,$y,G5x,iLn,j8,g9J,DmH,Hr,wwf,k5M,rb,oD,ho,uj,to,tb,Jtr,ZLc,hz,Sb,Wn,HL$,PPR,XB,f8,Eh,Ao,ij,dmx,xY,G3,KpJ,gb,kY,YJc,n9$,eKT,LGR,Dk,c8f,ICx,wb,BKH,hKc,r86,xbr,S5n,oPr,Jo,RK$,Vm,u6f,tmT,q5R,TK$,WGJ,MmH,A8v,ym,Zk,iPf,p8,$Y,GUR,Dbr,wfn,J8r,Vm6,jb,Hn,lj,Pn,CHx,NKn,mbT,eI,QVx,$bM,jVR,Ubf, Lf,EPH,KG6,Xff,Y5M,II,oI,nPv,cN,SI,r7,eoR,cIr,xSv,t1,WN,ff,b8,zov,suH,DI,k$,J1,VE,vzn,FM$,AIT,bhR,aI,Cf,ihH,gzT,kYr,wFM,yE,DSM,JIc,V2n,pf,$$,aLf,u8,mT,Rof,LM$,qyr,d7,w7,GYR,L2,A1,IR,BS,dS6,EzJ,USx,FU,i8,XF6,oR,SD,YyM,r5,hq,nzc,GN,RR,fLT,tq,pFJ,Oq,Syc,ozT,ILM,qU,Lg$,WS,RUJ,hUM,tXv,ObR,sq,f2,Aq,vS,bf,GC,qTf,g5,Wgn,kb,zUx,Jq,MXf,V4,C2,ART,aR,ibv,GRH,y4,gBc,w$c,Xl,Yb,n2,c8,JRR,Iv,B8,rd,hk,Rv,u_,VXn,tk,O4,m5r,qo,T2,yRR,Zbx,W8,p$v,$5c,jhT,Hbf,Mo,z2,ljx,PsT,Qh$,Ak,F4,G2,gd,d5$,U5M,kq,D9,wd,Jk,EBH,X$n,V3, Kgn,YTv,Cr,enJ,nBH,LJT,av,IAx,cec,BVv,No,y3,xBx,Sgn,ref,Z9,pr,$q,hnv,uLn,jS,tCx,l_,OXn,qg$,H8,P8,Q3,dd,MCc,syc,TVx,zn6,v0R,WJf,fA6,Ae6,U4,FJ$,iXf,kvT,wBn,DBM,cD,LB,xk,VCn,oc,SE,rC,aA$,h6,NVR,CJJ,Rc,ZXx,uZ,t6,pBn,OS,$BJ,pfH,PHr,HXn,jyc,PJT,lA6,Qyv,qV,TF,WD,MV,dBx,XB$,vD,fB,A6,Ygr,KJn,zF,n0n,eAM,Lof,IET,F0,tJf,s5v,kk,vcf,X4,ANH,Fon,bwH,iwf,G7v,wC,gc6,J6,VV,CB,k7c,mU,DJ$,wmc,yV,Zd,JNn,VJM,C$$,aE$,N3H,pB,NV,mJc,yNv,$k,pmx,$JJ,j5M,jE,Hwc,lEc,P$H,Q5c,dJv,UJM,EcT,Xm6,Kov,YHM,HD,ecr,lZ,cBM,LAM,BEc,INf,oZx, US,ncr,PD,ES,SY$,X0,KB,Yk,nB,en,rBc,LJ,hcc,IY,qYf,M6v,zcT,sZn,vZT,oY,fNn,WAc,Okv,ABc,Bi,FA$,ikM,ci,xD,uNc,t6H,Sn,G6n,gZc,TEn,RcJ,k6$,hu,Dhn,RY,uz,w66,tu,C2R,JB6,V6c,Oi,aNM,qf,Tj,Wi,Mf,NEc,mh$,yBr,zj,p6T,$hx,si,jZr,vi,fJ,HkH,lNn,P26,QZx,dhM,Uhr,nZx,X6T,Gvv,FK,LXc,cbM,KAM,YYc,EZr,Gj,Shv,iz,bz,e1H,h1n,oyx,xXH,B$n,Izc,kD,R1M,E4,Dc,wH,Ju,uBJ,Vb,t8x,CJ,OlT,BD,qhf,aY,Yq,eE,bX6,yb,pJ,M8$,z16,$D,Hi,Zc,mm,lz,Nf,T$c,WXx,Pi,sln,vyT,dC,xhc,Kr,Qb,fzH,jn,Abf,FXn,blM,ilJ,dH,Ui,GoT,gyR,koc,DXn,wrf,bkJ,gC,XK,KJ,Ei, V8f,mBc,yeJ,YD,CCT,azH,N$$,mXc,nJ,yb$,ex,ZlJ,$XR,LI,jl6,HlH,B5,lzc,Ia,hr,Ql$,PCn,Eyn,UXM,XrH,KXM,dXT,Ra,YhM,D6,ny$,LSR,etn,wP,Zwc,coM,Ikn,Bbx,xuM,Jr,oYT,Sjv,roc,V9,E0x,CI,uMM,aa,Rtx,NY,tbM,UBc,sS,O8T,mq,Z6,Mbv,WSH,Q9,Uw,dP,fk$,Ao6,FSn,b8c,i8v,G3H,gYM,k3c,Dux,wnn,JoR,Vbx,Cjn,KI,y9,Nbc,muH,Ew,Z8R,akc,Xs,pnn,$ux,lkn,dun,Pjv,nI,Uux,ek,jDn,Yo,LO,H8c,I1,KSR,nYH,YjM,ebc,XnH,LTc,c1H,IIc,B7c,xDM,SFR,r1c,o$v,Rbn,tI6,uUM,WTx,qFM,hbr,Of6,MIn,T7c,zbc,sIT,v$x,FT6,A1R,fI6,BH,bfn,ifH,GNx,g$f,kNr,wNn,VIr,C8c,aIM, N7f,mDx,xV,y1x,o1,pN6,$DR,R1,Hfn,t5,P8$,QIf,dDc,UDn,XNJ,E$T,n$T,ez$,LC$,Of,cqn,KTM,YFv,B5f,xUr,obn,SqT,rqM,hzr,QV,Rz$,ulH,tDT,qqM,O26,T5r,MDr,zzJ,WCR,cH,xo,vbJ,fb$,AqR,DUJ,i2x,GCn,gbv,wSv,VDT,rbM,TP,b2J,FCM,JqM,Ic,kCn,Au,nr,QDf,piM,ZJM,$fJ,jYR,lcc,Pzf,Ib6,rP,oa,abf,QYT,yuJ,dfn,c5,UfM,prv,EYR,CfR,Sx,zP,sf,XiJ,vH,KmR,Yir,nDr,exn,LqH,I6M,BPf,rrM,xYc,Swx,hx$,A5,OIr,usf,txr,Wqn,Mxf,zxf,Fb,saJ,fO,vor,TPv,Rxr,bp,f6x,oon,Arc,ip,bIv,FqT,G0r,gox,k0r,iI6,GP,Jr$,w5f,a6$,CWJ,Vxc,NPn,mY$,gx,yrx,ZIM,$Yr,jaR,p5$, HIf,UYx,PWR,Qan,dYT,EoM,X5x,Kqc,noc,YwM,efJ,LEc,kV,IpH,Bxv,oVn,x0H,Sfr,c5M,r5n,RfH,ubJ,OO6,Tx6,tkR,WEM,MkT,zfJ,hfH,s1c,qff,wx,vVn,fpJ,A5n,FEM,Vn,iOR,bOH,GPT,gVx,kPc,J5c,D0c,apn,CO,wHH,Nxn,a1,$0c,m0T,mE,yn,j1J,N0,HOc,Zp,Q1$,PpR,ZOR,pHc,d0c,U0M,EVc,y56,XH$,pO,KEx,lpn,lIc,J5,nVc,eRM,L4M,c2v,I7n,BB6,xE$,o1r,SUH,r2n,RRc,uDn,toM,hRr,OpM,qUn,TBn,W4v,MoT,zRn,f7n,v1f,sqv,A2c,HH,Uwc,F4c,bpT,lp,ipc,GOc,Qn,DEn,wcH,dx,Vof,CQH,J2$,kOM,Uf,PH,g1R,KO,Ef,a76,YV,Xb,Zp6,jqM,l7c,PQc,dEn,mE$,HpJ,UE$,y2c,E1r,XcT,K4J,Iq, nO,eSr,LKv,YUr,Lp,IPn,B0r,$E6,pcc,cKT,xr6,QqT,n1M,NBx,Bc,x1,oq,oe6,So,tPv,hSR,Omn,RSH,rKc,qVM,SVR,MP$,T0v,rB,zSn,veM,AKc,FKH,GbJ,t2,gex,bmx,cc,wQc,JKr,ME,yo6,h2,VPv,Cav,N0f,aPJ,mrr,DrM,qE,yKH,Zmx,pQr,jxf,$rT,sRv,OU,Hmf,Pan,lPH,drT,QxT,fPT,EeJ,Ur$,TO,Rq,XQn,sU,KK6,YVf,nef,eFv,LkH,zO,imc,EDr,eo,cnn,vc,Ifv,BNc,x$M,o8n,SGR,fp,A2,RFT,uzn,twT,rn$,hFr,FD,Wk6,qGv,TNH,Mwx,bQ,zFJ,s36,v8M,iQ,ffv,Fkr,bgM,ig6,GO,Anr,gB,k1,GiT,g8v,J2,D7,wB,ki$,VP,D$c,wPR,Jnf,CoJ,VwT,Z7,NN$,m$f,af6,ync,pp,ZgT,$1,pPr,jo,$$n,j3c, Pox,U$v,HgM,Q3R,Hc,lfn,d$f,E8c,XPJ,KkJ,YGn,Pc,n8n,UU,QP,eun,EU,XD,c4v,IBM,Y1,np,BZx,Kp,xGr,eP,SWx,oXx,cQ,Ix,BQ,Ru6,r4n,hu$,xe,uRc,TZr,O_c,tYJ,qWv,ox,MYT,fBv,A4n,SP,FWM,zun,b_H,r0,sUf,gXv,hK,Rx,kXM,DGf,wev,J4c,VYn,OV,NZJ,mGM,y4n,qr,aBf,$GR,tK,Tb,WQ,CUn,sV,AK,H_v,PUJ,dG6,lBc,Fq,vQ,ia,fm,QUM,ba,UGH,Gb,EXx,Xer,KWv,g0,ke,YWH,nXH,ew6,L6T,cMR,I3c,BYM,Sk6,xPn,rMR,hw$,taH,OyM,vFT,pm,F6x,GgT,iyM,byM,zwT,sk$,qkc,W66,f3$,$e,jP,kgc,HS,shM,DPR,la,Qk,wbf,JMn,TYJ,AMn,CKv,a3$,NYn,d0,ew,yMf,Zyf,pbT,Lg,$Pc,Hyv,jkx, l3n,cP,I3,PKn,UPM,EFc,o3,dPn,Xbx,K6x,Qkc,hn,Ykf,nFf,rN,emf,LYn,c3x,IYJ,xIM,BlR,r3M,hmf,ohc,uA6,tQJ,SlT,tn,OG,OYr,WYx,q$,TlJ,qlx,MQ$,sBn,zmc,vhc,Ti,fYx,A3r,FYH,bYc,iYM,Gzx,ghM,DIR,kzJ,wGR,J3J,VQM,CYJ,aYn,mIc,M$,WP,zi,y3c,ZYH,Nlx,lYx,PYv,QBc,EhT,UIM,dIn,XGv,KYn,sG,vP,Yl$,nhv,e5H,L0J,I_$,BSR,An,xec,fg,bo,cO$,io,oxx,SzT,rOx,h5r,R5r,Gi,u8c,tuR,TS$,gN,W0R,qzx,k8,Df,wN,z5n,s_n,vxn,MuH,AOT,f_n,F0T,Jn,b46,i4v,gx6,wjT,G8x,k8M,Vf,JO$,ClR,a_r,mev,yOM,Cg,a3,Z4n,Vuc,j_v,$ev,pjM,N$,mk,l_M,H46,yf,Zf,pg,Plc,$8,Q_R, den,Uer,ExJ,jw,Xjn,HP,K0c,lo,PP,Qf,YzM,dN,nxM,UG,EG,Lt$,Bv6,xFn,e3c,oIn,h3r,R3c,uuc,rcn,Sc6,O7R,tKT,qcv,MKr,Y8,sPn,z36,Tvn,Wtc,vIc,foJ,ng,eY,AcM,Ftx,b7M,i7H,GDc,gIn,DFn,w_T,Z7v,CRJ,aov,Jcc,$Fn,oU,rZ,QPf,dFr,uU,t4,UFx,jPH,xX,TX,qG,h4,X_f,Ktn,We,nIv,Lh6,e6M,MG,RU,Be,YcR,OW,H7r,EI$,ImM,L_,zX,BAv,xsx,SY,lor,sW,ve,opv,f_,A4,FR,SCv,rV$,R6n,uvT,h6n,bU,tT$,iU,GX,OjJ,qCc,TAR,WhM,MTn,z6$,vpr,swM,kX,gZ,fmn,FhM,AVc,DB,wZ,bjc,GBc,gp$,J4,ijH,kBx,Dsr,JV$,VA,wRT,VTH,COr,amc,aU,NG,msM,NAn,yV6,mW,yA,pR6,Zjx,$sH,HjJ, jwr,lmv,p_,PO6,QwM,jY,dsr,EpT,Usf,XRf,Khn,YC$,npn,LwM,cXH,Iqr,eYM,B6x,xaJ,oUr,S0$,rXH,hYM,RY$,uE$,t7f,QA,O9r,q0c,T6R,M76,fq$,sEM,WwR,EW,zYJ,UW,vUR,K_,Fwv,AXn,YX,i9n,Gsv,gUc,l6H,cb,D5v,ea,Ik,Ly,xF,ksM,ok,C9n,aqn,N6$,mav,yXT,Z9f,pVT,$ac,jE6,EUf,XVR,Uax,Kw$,nU$,Liv,csc,uK,eHx,Y0v,H9H,tM,Bnn,xHT,IgR,rs$,SMf,hHf,RHJ,ufT,tVT,Ok,OdR,QE$,hM,qMT,TnM,WiM,MVx,lq6,P9v,Rk,s46,vS6,fgM,Asv,zHJ,qP,bdr,ktv,Wb,DH6,wgT,GtM,zg,Jsr,VVx,Fir,C4$,gS$,agn,sk,MP,NnJ,ysn,mHR,Tg,pgH,vb,kb6,$H6,lgc,Hdn,Q4c,dHr,P4T,AM,fy,ESr, Xgx,Kir,YMn,S8M,Irc,BX6,LxM,eW$,iK,uXc,hWc,tUx,OVn,bK,gY,kF,MUM,Wxx,TXT,wY,o3c,ak,stn,Cy,D3,frH,Adv,FxR,rdc,yh,py,bVM,xnr,zWR,JM,iVn,Gg,GS$,g3v,kSr,lK,v3J,DnT,wpR,Pb,Qh,Jdc,Vh,RWc,VUf,Cu$,Z3,arn,NP,NXx,m6,w5,mnx,ZVJ,dY,Uk,ppf,$nc,jtM,Hb,$F,HVn,j4M,lrn,cdn,PuH,Qtc,dnf,Unx,Ek,XH,Kxv,eGn,cCf,Xpx,RGv,upn,tq6,ODn,qbH,TtJ,Wzc,zGM,MqT,Ky,YF,ny,seR,vGv,fvJ,Bw,ACv,eQ,Fzc,LY,bDH,cG,IB,iDf,oK,BG,Jz,GqT,au,m7H,gGc,Oy,kqT,d1,UP,DCx,us,wWr,JCx,NS,lef,VqT,C0n,avM,xh,mCM,yCx,oB,rl,h3,ZDT,jen,HDx,RB,lv$,pWT,QeM,$CJ, P06,dCH,UC6,EGH,XWr,uY,Ybn,aan,Bx,tt,nGf,eXM,T5,KzH,ui,LBv,cZf,Isc,t3,w1,xWM,ot6,Ol,qI,S2c,Tz,WG,SQ,rZx,hX$,IF$,MI,zz,RXc,sl,vG,uS6,fY,t$c,A3,FA,O3T,q2H,JWM,bY,TgJ,M$M,WBr,iY,Gz,zXx,gl,sOT,vtH,fs$,AZM,FBv,b3T,G_c,DY,i3M,gtr,k_J,DWc,whv,asM,JZc,V$r,Ctr,mWr,Z3J,ph6,$WR,yZx,wl,jOJ,H3H,ls6,Ptf,QOn,V6,dWT,CY,aB,NI,UWx,Etr,KBT,Y2f,ntn,eTh,cJU,Lf7,IRJ,mY,y6,onM,BcJ,xMe,ZY,S$h,rJL,pY,$h,hTN,jQ,RTh,HG,uxL,lY,PG,tvw,Q6,dl,O67,q$N,Ul,El,Tcw,XA,WfN,MvN,eu,L4,zTM,sHh,vne,FfL,AJw,cj,b6U,i6h,GcL,$vR,fRN,kch,DMM, JJJ,eTx,un;BM=function(e){return function(){return eTx[e].apply(this,arguments)}}; g.xn=function(e,L){return eTx[e]=L}; Lfn=function(e){var L=0;return function(){return L=this.length))return this[e]}; Yn=function(e){return e?e:K6}; O6n=function(e,L,c){e instanceof String&&(e=String(e));for(var I=e.length-1;I>=0;I--){var B=e[I];if(L.call(c,B,I,e))return{E7:I,tW:B}}return{E7:-1,tW:void 0}}; n6=function(e){return e?e:function(L,c){return O6n(this,L,c).E7}}; g.IL=function(e,L,c){e=e.split(".");c=c||g.LZ;for(var I;e.length&&(I=e.shift());)e.length||L===void 0?c[I]&&c[I]!==Object.prototype[I]?c=c[I]:c=c[I]={}:c[I]=L}; xN=function(e,L){var c=g.BU("CLOSURE_FLAGS");e=c&&c[e];return e!=null?e:L}; g.BU=function(e,L){e=e.split(".");L=L||g.LZ;for(var c=0;c2){var I=Array.prototype.slice.call(arguments,2);return function(){var B=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(B,I);return e.apply(L,B)}}return function(){return e.apply(L,arguments)}}; g.RL=function(e,L,c){g.RL=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?Wff:Mvf;return g.RL.apply(null,arguments)}; g.u7=function(e,L){var c=Array.prototype.slice.call(arguments,1);return function(){var I=c.slice();I.push.apply(I,arguments);return e.apply(this,I)}}; g.O9=function(){return Date.now()}; qg=function(e){return e}; g.TL=function(e,L){function c(){} c.prototype=L.prototype;e.hj=L.prototype;e.prototype=new c;e.prototype.constructor=e;e.HU=function(I,B,x){for(var S=Array(arguments.length-2),h=2;h=0;--c)c in I&&L.call(void 0,I[c],c,e)}; g.vU=function(e,L,c){L=s9(e,L,c);return L<0?null:typeof e==="string"?e.charAt(L):e[L]}; s9=function(e,L,c){for(var I=e.length,B=typeof e==="string"?e.split(""):e,x=0;x=0;I--)if(I in B&&L.call(c,B[I],I,e))return I;return-1}; g.Fh=function(e,L){return AJJ(e,L)>=0}; FfH=function(e){if(!Array.isArray(e))for(var L=e.length-1;L>=0;L--)delete e[L];e.length=0}; g.i7=function(e,L){L=AJJ(e,L);var c;(c=L>=0)&&g.b7(e,L);return c}; g.b7=function(e,L){return Array.prototype.splice.call(e,L,1).length==1}; g.DJ=function(e,L){L=s9(e,L);L>=0&&g.b7(e,L)}; b6M=function(e,L){var c=0;fRn(e,function(I,B){L.call(void 0,I,B,e)&&g.b7(e,B)&&c++})}; g.Jw=function(e){return Array.prototype.concat.apply([],arguments)}; g.VM=function(e){var L=e.length;if(L>0){for(var c=Array(L),I=0;I>>1),R=void 0;c?R=L.call(void 0,e[h],h,e):R=L(I,e[h]);R>0?B=h+1:(x=h,S=!R)}return S?B:-B-1}; g.U9=function(e,L){e.sort(L||HU)}; gnM=function(e,L){var c=HU;g.U9(e,function(I,B){return c(L(I),L(B))})}; g.E9=function(e,L,c){if(!g.oL(e)||!g.oL(L)||e.length!=L.length)return!1;var I=e.length;c=c||kcx;for(var B=0;BL?1:e0&&(L[B]=I)},e); return L}; Z6r=function(e){e=kL(e);var L=[];g.Le(e,function(c,I){I in Object.prototype||typeof c!="undefined"&&L.push([I,":",c].join(""))}); return L}; $Mc=function(e){iw(e,"od",pMn);iw(e,"opac",Dt).X=!0;iw(e,"sbeos",Dt).X=!0;iw(e,"prf",Dt).X=!0;iw(e,"mwt",Dt).X=!0;iw(e,"iogeo",Dt)}; wu=function(e,L){return e.lastIndexOf(L,0)==0}; jHJ=function(e,L){var c=e.length-L.length;return c>=0&&e.indexOf(L,c)==c}; g.J_=function(e){return/^[\s\xa0]*$/.test(e)}; g.Vc=function(e,L){return e.indexOf(L)!=-1}; Ce=function(e,L){return g.Vc(e.toLowerCase(),L.toLowerCase())}; g.mO=function(e,L){var c=0;e=as(String(e)).split(".");L=as(String(L)).split(".");for(var I=Math.max(e.length,L.length),B=0;c==0&&BL?1:0}; g.yc=function(){var e=g.LZ.navigator;return e&&(e=e.userAgent)?e:""}; lw=function(e){if(!$L&&!jR||!H2)return!1;for(var L=0;L0:!1}; Uo=function(){return du()?!1:P2("Opera")}; H66=function(){return du()?!1:P2("Trident")||P2("MSIE")}; lRH=function(){return du()?lw("Microsoft Edge"):P2("Edg/")}; Eo=function(){return P2("Firefox")||P2("FxiOS")}; Ke=function(){return P2("Safari")&&!(XW()||(du()?0:P2("Coast"))||Uo()||(du()?0:P2("Edge"))||lRH()||(du()?lw("Opera"):P2("OPR"))||Eo()||P2("Silk")||P2("Android"))}; XW=function(){return du()?lw("Chromium"):(P2("Chrome")||P2("CriOS"))&&!(du()?0:P2("Edge"))||P2("Silk")}; PnR=function(){return P2("Android")&&!(XW()||Eo()||Uo()||P2("Silk"))}; QHx=function(e){var L={};e.forEach(function(c){L[c[0]]=c[1]}); return function(c){return L[c.find(function(I){return I in L})]||""}}; dM6=function(e){var L=g.yc();if(e==="Internet Explorer"){if(H66())if((e=/rv: *([\d\.]*)/.exec(L))&&e[1])L=e[1];else{e="";var c=/MSIE +([\d\.]+)/.exec(L);if(c&&c[1])if(L=/Trident\/(\d.\d)/.exec(L),c[1]=="7.0")if(L&&L[1])switch(L[1]){case "4.0":e="8.0";break;case "5.0":e="9.0";break;case "6.0":e="10.0";break;case "7.0":e="11.0"}else e="7.0";else e=c[1];L=e}else L="";return L}var I=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");c=[];for(var B;B=I.exec(L);)c.push([B[1],B[2],B[3]||void 0]); L=QHx(c);switch(e){case "Opera":if(Uo())return L(["Version","Opera"]);if(du()?lw("Opera"):P2("OPR"))return L(["OPR"]);break;case "Microsoft Edge":if(du()?0:P2("Edge"))return L(["Edge"]);if(lRH())return L(["Edg"]);break;case "Chromium":if(XW())return L(["Chrome","CriOS","HeadlessChrome"])}return e==="Firefox"&&Eo()||e==="Safari"&&Ke()||e==="Android Browser"&&PnR()||e==="Silk"&&P2("Silk")?(L=c[2])&&L[1]||"":""}; UM$=function(e){if(du()&&e!=="Silk"){var L=H2.brands.find(function(c){return c.brand===e}); if(!L||!L.version)return NaN;L=L.version.split(".")}else{L=dM6(e);if(L==="")return NaN;L=L.split(".")}return L.length===0?NaN:Number(L[0])}; XMJ=function(){var e=null;if(!Enn)return e;try{var L=function(c){return c}; e=Enn.createPolicy("goog#html",{createHTML:L,createScript:L,createScriptURL:L})}catch(c){}return e}; e5=function(){YL===void 0&&(YL=XMJ());return YL}; Lo=function(e){this.X=e}; ca=function(e){var L=e5();e=L?L.createScriptURL(e):e;return new Lo(e)}; Ig=function(e){if(e instanceof Lo)return e.X;throw Error("");}; Ba=function(e){this.X=e}; g.xC=function(e){if(e instanceof Ba)return e.X;throw Error("");}; og=function(e){this.Hd=e}; rz=function(e){return new og(function(L){return L.substr(0,e.length+1).toLowerCase()===e+":"})}; g.h0=function(e,L){L=L===void 0?KfT:L;a:if(L=L===void 0?KfT:L,!(e instanceof Ba)){for(var c=0;c4);B++)L[Gy(e[B])]||(c+="\nInner error "+I++ +": ",e[B].stack&&e[B].stack.indexOf(e[B].toString())==0||(c+=typeof e[B]==="string"?e[B]:e[B].message+"\n"),c+=bv(e[B],L));B")!=-1&&(e=e.replace(heH,">")),e.indexOf('"')!=-1&&(e=e.replace(Rex,""")),e.indexOf("'")!=-1&&(e=e.replace(uhx,"'")),e.indexOf("\x00")!=-1&&(e=e.replace(teM,"�")));return e}; g.VK=function(e){return e==null?"":String(e)}; Co=function(e){for(var L=0,c=0;c>>0;return L}; ag=function(e){var L=Number(e);return L==0&&g.J_(e)?NaN:L}; OZr=function(e){return String(e).replace(/\-([a-z])/g,function(L,c){return c.toUpperCase()})}; q9R=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; TMH=function(e){return e.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(L,c,I){return c+I.toUpperCase()})}; WNv=function(e){var L=1;e=e.split(":");for(var c=[];L>0&&e.length;)c.push(e.shift()),L--;e.length&&c.push(e.join(":"));return c}; N9=function(){return $L||jR?!!H2&&!!H2.platform:!1}; Mev=function(){return N9()?H2.platform==="Android":P2("Android")}; mj=function(){return P2("iPhone")&&!P2("iPod")&&!P2("iPad")}; yK=function(){return mj()||P2("iPad")||P2("iPod")}; Z5=function(){return N9()?H2.platform==="macOS":P2("Macintosh")}; zen=function(){return N9()?H2.platform==="Windows":P2("Windows")}; po=function(e){po[" "](e);return e}; sLc=function(e,L){try{return po(e[L]),!0}catch(c){}return!1}; fJv=function(e,L){var c=vN6;return Object.prototype.hasOwnProperty.call(c,e)?c[e]:c[e]=L(e)}; g.$C=function(e){return fJv(e,function(){return g.mO(Awv,e)>=0})}; g.j5=function(e,L,c){return Math.min(Math.max(e,L),c)}; g.Ha=function(e,L){e%=L;return e*L<0?e+L:e}; lv=function(e,L,c){return e+c*(L-e)}; g.Pa=function(e,L){this.x=e!==void 0?e:0;this.y=L!==void 0?L:0}; QK=function(e,L){return e==L?!0:e&&L?e.x==L.x&&e.y==L.y:!1}; g.dz=function(e,L){this.width=e;this.height=L}; g.U3=function(e,L){return e==L?!0:e&&L?e.width==L.width&&e.height==L.height:!1}; E3=function(e){return e.width*e.height}; Ko=function(e,L){this.X=e===Xj&&L||""}; YC=function(e){if(e instanceof O3)return e;e=String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");return q9(e)}; bZ$=function(e){return FNn(e)}; FNn=function(e){var L=YC("");return q9(e.map(function(c){return Ty(YC(c))}).join(Ty(L).toString()))}; DgH=function(e){var L;if(!iZn.test("div"))throw Error("");if(GL6.indexOf("DIV")!==-1)throw Error("");var c="":(e=bZ$(L.map(function(I){return I instanceof O3?I:YC(String(I))})),c+=">"+e.toString()+""); return q9(c)}; gNc=function(e){for(var L="",c=Object.keys(e),I=0;I2&&ywf(B,S,I,2);return S}; ywf=function(e,L,c,I){function B(h){h&&L.appendChild(typeof h==="string"?e.createTextNode(h):h)} for(;I0)B(x);else{a:{if(x&&typeof x.length=="number"){if(g.Se(x)){var S=typeof x.item=="function"||typeof x.item=="string";break a}if(typeof x==="function"){S=typeof x.item=="function";break a}}S=!1}g.KZ(S?g.VM(x):x,B)}}}; g.ql=function(e){return tj(document,e)}; tj=function(e,L){L=String(L);e.contentType==="application/xhtml+xml"&&(L=L.toLowerCase());return e.createElement(L)}; g.T$=function(e){return document.createTextNode(String(e))}; g.Wz=function(e,L){e.appendChild(L)}; g.Ml=function(e){for(var L;L=e.firstChild;)e.removeChild(L)}; z$=function(e,L,c){e.insertBefore(L,e.childNodes[c]||null)}; g.s_=function(e){return e&&e.parentNode?e.parentNode.removeChild(e):null}; g.vz=function(e,L){if(!e||!L)return!1;if(e.contains&&L.nodeType==1)return e==L||e.contains(L);if(typeof e.compareDocumentPosition!="undefined")return e==L||!!(e.compareDocumentPosition(L)&16);for(;L&&e!=L;)L=L.parentNode;return L==e}; cz=function(e){return e.nodeType==9?e:e.ownerDocument||e.document}; g.fU=function(e,L){if("textContent"in e)e.textContent=L;else if(e.nodeType==3)e.data=String(L);else if(e.firstChild&&e.firstChild.nodeType==3){for(;e.lastChild!=e.firstChild;)e.removeChild(e.lastChild);e.firstChild.data=String(L)}else g.Ml(e),e.appendChild(cz(e).createTextNode(String(L)))}; pUr=function(e){return e.tagName=="A"&&e.hasAttribute("href")||e.tagName=="INPUT"||e.tagName=="TEXTAREA"||e.tagName=="SELECT"||e.tagName=="BUTTON"?!e.disabled&&(!e.hasAttribute("tabindex")||ZZc(e)):e.hasAttribute("tabindex")&&ZZc(e)}; ZZc=function(e){e=e.tabIndex;return typeof e==="number"&&e>=0&&e<32768}; G$=function(e,L,c){if(!L&&!c)return null;var I=L?String(L).toUpperCase():null;return i3(e,function(B){return(!I||B.nodeName==I)&&(!c||typeof B.className==="string"&&g.Fh(B.className.split(/\s+/),c))},!0)}; i3=function(e,L,c){e&&!c&&(e=e.parentNode);for(c=0;e;){if(L(e))return e;e=e.parentNode;c++}return null}; no=function(e){this.X=e||g.LZ.document||document}; $gH=function(){this.X=this.xW=null}; gF=function(){}; D1=function(){if(!kr())throw Error();}; kr=function(){return!(!wF||!wF.performance)}; jLr=function(e){return g.RF?"webkit"+e:e.toLowerCase()}; Jj=function(e){return function(){return e}}; g.VD=function(){}; HZx=function(e){var L=L||0;return function(){return e.apply(this,Array.prototype.slice.call(arguments,0,L))}}; CU=function(e){var L=!1,c;return function(){L||(c=e(),L=!0);return c}}; aF=function(e){var L=e;return function(){if(L){var c=L;L=null;c()}}}; Nl=function(e,L,c){var I=0;return function(B){g.LZ.clearTimeout(I);var x=arguments;I=g.LZ.setTimeout(function(){e.apply(c,x)},L)}}; mR=function(e,L,c,I){this.top=e;this.right=L;this.bottom=c;this.left=I}; yD=function(e){return e.right-e.left}; Z1=function(e,L){return e==L?!0:e&&L?e.top==L.top&&e.right==L.right&&e.bottom==L.bottom&&e.left==L.left:!1}; pU=function(e,L,c){L instanceof g.Pa?(e.left+=L.x,e.right+=L.x,e.top+=L.y,e.bottom+=L.y):(e.left+=L,e.right+=L,typeof c==="number"&&(e.top+=c,e.bottom+=c));return e}; g.$r=function(e,L,c,I){this.left=e;this.top=L;this.width=c;this.height=I}; jf=function(e,L){return e==L?!0:e&&L?e.left==L.left&&e.width==L.width&&e.top==L.top&&e.height==L.height:!1}; g.l3=function(e,L,c){if(typeof L==="string")(L=Hz(e,L))&&(e.style[L]=c);else for(var I in L){c=e;var B=L[I],x=Hz(c,I);x&&(c.style[x]=B)}}; Hz=function(e,L){var c=lJn[L];if(!c){var I=OZr(L);c=I;e.style[I]===void 0&&(I=(g.RF?"Webkit":Pz?"Moz":null)+TMH(I),e.style[I]!==void 0&&(c=I));lJn[L]=c}return c}; g.QD=function(e,L){var c=e.style[OZr(L)];return typeof c!=="undefined"?c:e.style[Hz(e,L)]||""}; dF=function(e,L){var c=cz(e);return c.defaultView&&c.defaultView.getComputedStyle&&(e=c.defaultView.getComputedStyle(e,null))?e[L]||e.getPropertyValue(L)||"":""}; U_=function(e,L){return dF(e,L)||(e.currentStyle?e.currentStyle[L]:null)||e.style&&e.style[L]}; g.Xt=function(e,L,c){if(L instanceof g.Pa){var I=L.x;L=L.y}else I=L,L=c;e.style.left=g.E_(I,!1);e.style.top=g.E_(L,!1)}; KU=function(e){try{return e.getBoundingClientRect()}catch(L){return{left:0,top:0,right:0,bottom:0}}}; P7$=function(e){var L=cz(e),c=U_(e,"position"),I=c=="fixed"||c=="absolute";for(e=e.parentNode;e&&e!=L;e=e.parentNode)if(e.nodeType==11&&e.host&&(e=e.host),c=U_(e,"position"),I=I&&c=="static"&&e!=L.documentElement&&e!=L.body,!I&&(e.scrollWidth>e.clientWidth||e.scrollHeight>e.clientHeight||c=="fixed"||c=="absolute"||c=="relative"))return e;return null}; g.Yr=function(e){var L=cz(e),c=new g.Pa(0,0);if(e==(L?cz(L):document).documentElement)return c;e=KU(e);L=IF(L);L=mgx(L.X);c.x=e.left+L.x;c.y=e.top+L.y;return c}; dg$=function(e,L){var c=new g.Pa(0,0),I=u3(cz(e));if(!sLc(I,"parent"))return c;do{var B=I==L?g.Yr(e):QLJ(e);c.x+=B.x;c.y+=B.y}while(I&&I!=L&&I!=I.parent&&(e=I.frameElement)&&(I=I.parent));return c}; g.nU=function(e,L){e=Ugn(e);L=Ugn(L);return new g.Pa(e.x-L.x,e.y-L.y)}; QLJ=function(e){e=KU(e);return new g.Pa(e.left,e.top)}; Ugn=function(e){if(e.nodeType==1)return QLJ(e);e=e.changedTouches?e.changedTouches[0]:e;return new g.Pa(e.clientX,e.clientY)}; g.e_=function(e,L,c){if(L instanceof g.dz)c=L.height,L=L.width;else if(c==void 0)throw Error("missing height argument");e.style.width=g.E_(L,!0);e.style.height=g.E_(c,!0)}; g.E_=function(e,L){typeof e=="number"&&(e=(L?Math.round(e):e)+"px");return e}; g.LH=function(e){var L=ENn;if(U_(e,"display")!="none")return L(e);var c=e.style,I=c.display,B=c.visibility,x=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";e=L(e);c.display=I;c.position=x;c.visibility=B;return e}; ENn=function(e){var L=e.offsetWidth,c=e.offsetHeight,I=g.RF&&!L&&!c;return(L===void 0||I)&&e.getBoundingClientRect?(e=KU(e),new g.dz(e.right-e.left,e.bottom-e.top)):new g.dz(L,c)}; g.cA=function(e,L){e.style.display=L?"":"none"}; In=function(e){return e?e.passive&&XUf()?e:e.capture||!1:!1}; BA=function(e,L,c,I){return typeof e.addEventListener==="function"?(e.addEventListener(L,c,In(I)),!0):!1}; xT=function(e){if(e.prerendering)return 3;var L;return(L={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[e.visibilityState||e.webkitVisibilityState||e.mozVisibilityState||""])!=null?L:0}; KN6=function(){}; on=function(e){e.W4l=!0;return e}; Y9f=function(){return($L||jR)&&H2?H2.mobile:!S_()&&(P2("iPod")||P2("iPhone")||P2("Android")||P2("IEMobile"))}; S_=function(){return($L||jR)&&H2?!H2.mobile&&(P2("iPad")||P2("Android")||P2("Silk")):P2("iPad")||P2("Android")&&!P2("Mobile")||P2("Silk")}; Rn=function(e){try{return!!e&&e.location.href!=null&&sLc(e,"foo")}catch(L){return!1}}; uD=function(e,L){if(e)for(var c in e)Object.prototype.hasOwnProperty.call(e,c)&&L(e[c],c,e)}; eVv=function(){var e=[];uD(nNn,function(L){e.push(L)}); return e}; LOv=function(e){var L,c;return(c=(L=/https?:\/\/[^\/]+/.exec(e))==null?void 0:L[0])!=null?c:""}; Bur=function(){var e=c_M("IFRAME"),L={};g.KZ(ItM(),function(c){e.sandbox&&e.sandbox.supports&&e.sandbox.supports(c)&&(L[c]=!0)}); return L}; c_M=function(e,L){L=L===void 0?document:L;return L.createElement(String(e).toLowerCase())}; xQ$=function(e){for(var L=e;e&&e!=e.parent;)e=e.parent,Rn(e)&&(L=e);return L}; hVH=function(e){e=e||th();for(var L=new oLH(g.LZ.location.href,!1),c=null,I=e.length-1,B=I;B>=0;--B){var x=e[B];!c&&Sof.test(x.url)&&(c=x);if(x.url&&!x.X){L=x;break}}B=null;x=e.length&&e[I].url;L.depth!==0&&x&&(B=e[I]);return new r_r(L,B,c)}; th=function(){var e=g.LZ,L=[],c=null;do{var I=e;if(Rn(I)){var B=I.location.href;c=I.document&&I.document.referrer||null}else B=c,c=null;L.push(new oLH(B||""));try{e=I.parent}catch(x){e=null}}while(e&&I!==e);I=0;for(e=L.length-1;I<=e;++I)L[I].depth=e-I;I=g.LZ;if(I.location&&I.location.ancestorOrigins&&I.location.ancestorOrigins.length===L.length-1)for(e=1;eL&&(L=c.length);return 3997-L-e.Z.length-1}; WA=function(e,L){this.X=e;this.depth=L}; OeM=function(){function e(h,R){return h==null?R:h} var L=th(),c=Math.max(L.length-1,0),I=hVH(L);L=I.X;var B=I.K,x=I.Z,S=[];x&&S.push(new WA([x.url,x.X?2:0],e(x.depth,1)));B&&B!=x&&S.push(new WA([B.url,2],0));L.url&&L!=x&&S.push(new WA([L.url,0],e(L.depth,c)));I=g.Mt(S,function(h,R){return S.slice(0,S.length-R)}); !L.url||(x||B)&&L!=x||(B=LOv(L.url))&&I.push([new WA([B,1],e(L.depth,c))]);I.push([]);return g.Mt(I,function(h){return tRc(c,h)})}; tRc=function(e,L){g.zM(L,function(B){return B.depth>=0}); var c=sd(L,function(B,x){return Math.max(B,x.depth)},-1),I=DMc(c+2); I[0]=e;g.KZ(L,function(B){return I[B.depth+1]=B.X}); return I}; qon=function(){var e=e===void 0?OeM():e;return e.map(function(L){return TM(L)})}; TuR=function(e){var L=!1;L=L===void 0?!1:L;wF.google_image_requests||(wF.google_image_requests=[]);var c=c_M("IMG",wF.document);L&&(c.attributionSrc="");c.src=e;wF.google_image_requests.push(c)}; vA=function(e){var L="R9";if(e.R9&&e.hasOwnProperty(L))return e.R9;var c=new e;e.R9=c;e.hasOwnProperty(L);return c}; fH=function(){this.K=new KN6;this.X=kr()?new D1:new gF}; WOT=function(){Ah();var e=wF.document;return!!(e&&e.body&&e.body.getBoundingClientRect&&typeof wF.setInterval==="function"&&typeof wF.clearInterval==="function"&&typeof wF.setTimeout==="function"&&typeof wF.clearTimeout==="function")}; MR6=function(){Ah();return qon()}; zVM=function(){}; Ah=function(){var e=vA(zVM);if(!e.X){if(!wF)throw Error("Context has not been set and window is undefined.");e.X=vA(fH)}return e.X}; Fo=function(){throw Error("Invalid UTF8");}; ssH=function(e,L){L=String.fromCharCode.apply(null,L);return e==null?L:e+L}; FO6=function(e){var L=!1;L=L===void 0?!1:L;if(vLf){if(L&&(ftM?!e.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(e)))throw Error("Found an unpaired surrogate");e=(A_c||(A_c=new TextEncoder)).encode(e)}else{for(var c=0,I=new Uint8Array(3*e.length),B=0;B>6|192;else{if(x>=55296&&x<=57343){if(x<=56319&&B=56320&&S<=57343){x=(x-55296)*1024+ S-56320+65536;I[c++]=x>>18|240;I[c++]=x>>12&63|128;I[c++]=x>>6&63|128;I[c++]=x&63|128;continue}else B--}if(L)throw Error("Found an unpaired surrogate");x=65533}I[c++]=x>>12|224;I[c++]=x>>6&63|128}I[c++]=x&63|128}}e=c===I.length?I:I.subarray(0,c)}return e}; bD=function(e){g.LZ.setTimeout(function(){throw e;},0)}; bec=function(e){return Array.prototype.map.call(e,function(L){L=L.toString(16);return L.length>1?L:"0"+L}).join("")}; ieM=function(e){for(var L=[],c=0;c>6|192:((B&64512)==55296&&I+1>18|240,L[c++]=B>>12&63|128):L[c++]=B>>12|224,L[c++]=B>>6&63|128),L[c++]=B&63|128)}return L}; g.GM=function(e,L){L===void 0&&(L=0);GGn();L=gLM[L];for(var c=Array(Math.floor(e.length/3)),I=L[64]||"",B=0,x=0;B>2];S=L[(S&3)<<4|h>>4];h=L[(h&15)<<2|R>>6];R=L[R&63];c[x++]=""+u+S+h+R}u=0;R=I;switch(e.length-B){case 2:u=e[B+1],R=L[(u&15)<<2]||I;case 1:e=e[B],c[x]=""+L[e>>2]+L[(e&3)<<4|u>>4]+R+I}return c.join("")}; g.gR=function(e,L){if(kGx&&!L)e=g.LZ.btoa(e);else{for(var c=[],I=0,B=0;B255&&(c[I++]=x&255,x>>=8);c[I++]=x}e=g.GM(c,L)}return e}; w2n=function(e){var L=[];DQT(e,function(c){L.push(c)}); return L}; kT=function(e){var L=e.length,c=L*3/4;c%3?c=Math.floor(c):g.Vc("=.",e[L-1])&&(c=g.Vc("=.",e[L-2])?c-2:c-1);var I=new Uint8Array(c),B=0;DQT(e,function(x){I[B++]=x}); return B!==c?I.subarray(0,B):I}; DQT=function(e,L){function c(R){for(;I>4);S!=64&&(L(x<<4&240|S>>2),h!=64&&L(S<<6&192|h))}}; GGn=function(){if(!Dx){Dx={};for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),L=["+/=","+/","-_=","-_.","-_"],c=0;c<5;c++){var I=e.concat(L[c].split(""));gLM[c]=I;for(var B=0;B=L||(I[e]=c+1,e=Error(),BMM(e,"incident"),bD(e))}}; yO=function(e,L,c){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(c===void 0?0:c)&&Symbol.for&&e?Symbol.for(e):e!=null?Symbol(e):Symbol():L}; $T=function(e,L){Zx||pH in e||$Qn(e,jsM);e[pH]|=L}; j_=function(e,L){Zx||pH in e||$Qn(e,jsM);e[pH]=L}; HA=function(){return typeof BigInt==="function"}; PA=function(e,L){return L===void 0?e.X!==lD&&!!(2&(e.XF[pH]|0)):!!(2&L)&&e.X!==lD}; Hev=function(e,L){if(e!=null)if(typeof e==="string")e=e?new wR(e,Jh):VO();else if(e.constructor!==wR)if(Ze$&&e!=null&&e instanceof Uint8Array)e=e.length?new wR(new Uint8Array(e),Jh):VO();else{if(!L)throw Error();e=void 0}return e}; QO=function(e,L){if(typeof L!=="number"||L<0||L>=e.length)throw Error();}; ltc=function(e,L,c){var I=L&128?0:-1,B=e.length,x;if(x=!!B)x=e[B-1],x=x!=null&&typeof x==="object"&&x.constructor===Object;var S=B+(x?-1:0);for(L=L&128?1:0;LL.length)return!1;if(e.lengthB)return!1;if(I>>0;ed=L;Lt=(e-L)/4294967296>>>0}; By=function(e){if(e<0){cy(0-e);var L=g.f(IQ(ed,Lt));e=L.next().value;L=L.next().value;ed=e>>>0;Lt=L>>>0}else cy(e)}; oQ=function(e,L){var c=L*4294967296+(e>>>0);return Number.isSafeInteger(c)?c:xQ(e,L)}; ELx=function(e,L){var c=L&2147483648;c&&(e=~e+1>>>0,L=~L>>>0,e==0&&(L=L+1>>>0));e=oQ(e,L);return typeof e==="number"?c?-e:e:c?"-"+e:e}; xQ=function(e,L){L>>>=0;e>>>=0;if(L<=2097151)var c=""+(4294967296*L+e);else HA()?c=""+(BigInt(L)<>>24|L<<8)&16777215,L=L>>16&65535,e=(e&16777215)+c*6777216+L*6710656,c+=L*8147497,L*=2,e>=1E7&&(c+=e/1E7>>>0,e%=1E7),c>=1E7&&(L+=c/1E7>>>0,c%=1E7),c=L+X2c(c)+X2c(e));return c}; X2c=function(e){e=String(e);return"0000000".slice(e.length)+e}; KOM=function(){var e=ed,L=Lt;L&2147483648?HA()?e=""+(BigInt(L|0)<>>0)):(L=g.f(IQ(e,L)),e=L.next().value,L=L.next().value,e="-"+xQ(e,L)):e=xQ(e,L);return e}; Sd=function(e){if(e.length<16)By(Number(e));else if(HA())e=BigInt(e),ed=Number(e&BigInt(4294967295))>>>0,Lt=Number(e>>BigInt(32)&BigInt(4294967295));else{var L=+(e[0]==="-");Lt=ed=0;for(var c=e.length,I=0+L,B=(c-L)%6+L;B<=c;I=B,B+=6)I=Number(e.slice(I,B)),Lt*=1E6,ed=ed*1E6+I,ed>=4294967296&&(Lt+=Math.trunc(ed/4294967296),Lt>>>=0,ed>>>=0);L&&(L=g.f(IQ(ed,Lt)),e=L.next().value,L=L.next().value,ed=e,Lt=L)}}; IQ=function(e,L){L=~L;e?e=~e+1:L+=1;return[e,L]}; rI=function(e){return Array.prototype.slice.call(e)}; hT=function(e){if(e!=null&&typeof e!=="number")throw Error("Value of float/double field must be a number, found "+typeof e+": "+e);return e}; YoH=function(e){return e.displayName||e.name||"unknown type name"}; RQ=function(e){if(e!=null&&typeof e!=="boolean")throw Error("Expected boolean but got "+q$n(e)+": "+e);return e}; tT=function(e){switch(typeof e){case "bigint":return!0;case "number":return u5(e);case "string":return nLJ.test(e);default:return!1}}; e7c=function(e){if(typeof e!=="number")throw Nt("int32");if(!u5(e))throw Nt("int32");return e|0}; OX=function(e){return e==null?e:e7c(e)}; q6=function(e){if(e==null)return e;if(typeof e==="string"&&e)e=+e;else if(typeof e!=="number")return;return u5(e)?e|0:void 0}; TK=function(e){if(e==null)return e;if(typeof e==="string"&&e)e=+e;else if(typeof e!=="number")return;return u5(e)?e>>>0:void 0}; I5n=function(e){var L=0;L=L===void 0?0:L;if(!tT(e))throw Nt("int64");var c=typeof e;switch(L){case 512:switch(c){case "string":return zK(e);case "bigint":return String(sX(64,e));default:return vy(e)}case 1024:switch(c){case "string":return Ljv(e);case "bigint":return Xo(sX(64,e));default:return c0c(e)}case 0:switch(c){case "string":return zK(e);case "bigint":return Xo(sX(64,e));default:return ft(e)}default:return t0(L,"Unknown format requested type for int64")}}; AT=function(e){return e==null?e:I5n(e)}; BzJ=function(e){if(e[0]==="-")return!1;var L=e.length;return L<20?!0:L===20&&Number(e.substring(0,6))<184467}; x9r=function(e){var L=e.length;return e[0]==="-"?L<20?!0:L===20&&Number(e.substring(0,7))>-922337:L<19?!0:L===19&&Number(e.substring(0,6))<922337}; oCn=function(e){if(e<0){By(e);var L=xQ(ed,Lt);e=Number(L);return FJ(e)?e:L}L=String(e);if(BzJ(L))return L;By(e);return oQ(ed,Lt)}; S3R=function(e){if(x9r(e))return e;Sd(e);return KOM()}; ft=function(e){tT(e);e=b5(e);FJ(e)||(By(e),e=ELx(ed,Lt));return e}; vy=function(e){tT(e);e=b5(e);if(FJ(e))e=String(e);else{var L=String(e);x9r(L)?e=L:(By(e),e=KOM())}return e}; zK=function(e){tT(e);var L=b5(Number(e));if(FJ(L))return String(L);L=e.indexOf(".");L!==-1&&(e=e.substring(0,L));return S3R(e)}; Ljv=function(e){var L=b5(Number(e));if(FJ(L))return Xo(L);L=e.indexOf(".");L!==-1&&(e=e.substring(0,L));return HA()?Xo(sX(64,BigInt(e))):Xo(S3R(e))}; c0c=function(e){return FJ(e)?Xo(ft(e)):Xo(vy(e))}; r0n=function(e){if(e==null)return e;var L=typeof e;if(L==="bigint")return String(sX(64,e));if(tT(e)){if(L==="string")return zK(e);if(L==="number")return ft(e)}}; R7v=function(e){if(e==null)return e;var L=typeof e;if(L==="bigint")return String(h7n(64,e));if(tT(e)){if(L==="string")return tT(e),L=b5(Number(e)),FJ(L)&&L>=0?e=String(L):(L=e.indexOf("."),L!==-1&&(e=e.substring(0,L)),BzJ(e)||(Sd(e),e=xQ(ed,Lt))),e;if(L==="number")return tT(e),e=b5(e),e>=0&&FJ(e)?e:oCn(e)}}; ujn=function(e){if(e==null||typeof e=="string"||e instanceof wR)return e}; t5M=function(e){if(typeof e!=="string")throw Error();return e}; i5=function(e){if(e!=null&&typeof e!=="string")throw Error();return e}; GK=function(e){return e==null||typeof e==="string"?e:void 0}; gI=function(e,L){if(!(e instanceof L))throw Error("Expected instanceof "+YoH(L)+" but got "+(e&&YoH(e.constructor)));return e}; OoH=function(e,L,c){if(e!=null&&e[kQ]===DK)return e;if(Array.isArray(e)){var I=e[pH]|0;c=I|c&32|c&2;c!==I&&j_(e,c);return new L(e)}}; wI=function(e){return e}; VT=function(e){var L=qg(JT);return L?e[L]:void 0}; Ct=function(){}; aQ=function(e,L){for(var c in e)!isNaN(c)&&L(e,+c,e[c])}; q3M=function(e){var L=new Ct;aQ(e,function(c,I,B){L[I]=rI(B)}); L.DL=e.DL;return L}; WjM=function(e,L){L<100||ms(Tzc,1)}; ZK=function(e,L,c,I){var B=I!==void 0;I=!!I;var x=qg(JT),S;!B&&Zx&&x&&(S=e[x])&&aQ(S,WjM);x=[];var h=e.length;S=4294967295;var R=!1,u=!!(L&64),t=u?L&128?0:-1:void 0;if(!(L&1)){var O=h&&e[h-1];O!=null&&typeof O==="object"&&O.constructor===Object?(h--,S=h):O=void 0;if(u&&!(L&128)&&!B){R=!0;var q;S=((q=N6)!=null?q:wI)(S-t,t,e,O,void 0)+t}}L=void 0;for(q=0;q=S){var W=q-t,A=void 0;((A=L)!=null?A:L={})[W]=T}else x[q]=T}if(O)for(var b in O)h=O[b],h!= null&&(h=c(h,I))!=null&&(q=+b,T=void 0,u&&!Number.isNaN(q)&&(T=q+t)0?void 0:e===0?f5n||(f5n=[0,void 0]):[-e,void 0];case "string":return[0,e];case "object":return e}}; l5=function(e,L,c){return e=Hy(e,L[0],L[1],c?1:2)}; Hy=function(e,L,c,I){I=I===void 0?0:I;if(e==null){var B=32;c?(e=[c],B|=128):e=[];L&&(B=B&-8380417|(L&1023)<<13)}else{if(!Array.isArray(e))throw Error("narr");B=e[pH]|0;2048&B&&!(2&B)&&Fjr();if(B&256)throw Error("farr");if(B&64)return I!==0||B&2048||j_(e,B|2048),e;if(c&&(B|=128,c!==e[0]))throw Error("mid");a:{c=e;B|=64;var x=c.length;if(x){var S=x-1,h=c[S];if(h!=null&&typeof h==="object"&&h.constructor===Object){L=B&128?0:-1;S-=L;if(S>=1024)throw Error("pvtlmt");for(var R in h)x=+R,x1024)throw Error("spvt");B=B&-8380417|(R&1023)<<13}}}B|=64;I===0&&(B|=2048);j_(e,B);return e}; Fjr=function(){ms(box,5)}; ioT=function(e,L){if(typeof e!=="object")return e;if(Array.isArray(e)){var c=e[pH]|0;e.length===0&&c&1?e=void 0:c&2||(!L||4096&c||16&c?e=Py(e,c,!1,L&&!(c&16)):($T(e,34),c&4&&Object.freeze(e)));return e}if(e!=null&&e[kQ]===DK)return L=e.XF,c=L[pH]|0,PA(e,c)?e:QT(e,L,c)?dI(e,L):Py(L,c);if(e instanceof wR)return e}; dI=function(e,L,c){e=new e.constructor(L);c&&(e.X=lD);e.K=lD;return e}; Py=function(e,L,c,I){I!=null||(I=!!(34&L));e=ZK(e,L,ioT,I);I=32;c&&(I|=2);L=L&8380609|I;j_(e,L);return e}; Gy6=function(e){var L=e.XF,c=L[pH]|0;return PA(e,c)?QT(e,L,c)?dI(e,L,!0):new e.constructor(Py(L,c,!1)):e}; UX=function(e){if(e.X!==lD)return!1;var L=e.XF;L=Py(L,L[pH]|0);$T(L,2048);e.XF=L;e.X=void 0;e.K=void 0;return!0}; EX=function(e){if(!UX(e)&&PA(e,e.XF[pH]|0))throw Error();}; XJ=function(e,L){L===void 0&&(L=e[pH]|0);L&32&&!(L&4096)&&j_(e,L|4096)}; QT=function(e,L,c){return c&2?!0:c&32&&!(c&4096)?(j_(L,c|2),e.X=lD,!0):!1}; YQ=function(e,L,c,I,B){Object.isExtensible(e);L=Kt(e.XF,L,c,B);if(L!==null||I&&e.K!==lD)return L}; Kt=function(e,L,c,I){if(L===-1)return null;var B=L+(c?0:-1),x=e.length-1;if(!(x<1+(c?0:-1))){if(B>=x){var S=e[x];if(S!=null&&typeof S==="object"&&S.constructor===Object){c=S[L];var h=!0}else if(B===x)c=S;else return}else c=e[B];if(I&&c!=null){I=I(c);if(I==null)return I;if(!Object.is(I,c))return h?S[L]=I:e[B]=I,I}return c}}; er=function(e,L,c,I){EX(e);var B=e.XF;nt(B,B[pH]|0,L,c,I);return e}; nt=function(e,L,c,I,B){var x=c+(B?0:-1),S=e.length-1;if(S>=1+(B?0:-1)&&x>=S){var h=e[S];if(h!=null&&typeof h==="object"&&h.constructor===Object)return h[c]=I,L}if(x<=S)return e[x]=I,L;if(I!==void 0){var R;S=((R=L)!=null?R:L=e[pH]|0)>>13&1023||536870912;c>=S?I!=null&&(x={},e[S+(B?0:-1)]=(x[c]=I,x)):e[x]=I}return L}; xs=function(e,L,c,I,B){var x=e.XF,S=x[pH]|0;I=PA(e,S)?1:I;B=!!B||I===3;I===2&&UX(e)&&(x=e.XF,S=x[pH]|0);e=LA(x,L);var h=e===ct?7:e[pH]|0,R=I7(h,S);var u=4&R?!1:!0;if(u){4&R&&(e=rI(e),h=0,R=Bt(R,S),S=nt(x,S,L,e));for(var t=0,O=0;t "+e)}; Z2=function(e,L,c){this.buffer=e;if(c&&!L)throw Error();this.X=L}; pA=function(e,L){if(typeof e==="string")return new Z2(NuH(e),L);if(Array.isArray(e))return new Z2(new Uint8Array(e),L);if(e.constructor===Uint8Array)return new Z2(e,!1);if(e.constructor===ArrayBuffer)return e=new Uint8Array(e),new Z2(e,!1);if(e.constructor===wR)return L=CH(e)||new Uint8Array(0),new Z2(L,!0,e);if(e instanceof Uint8Array)return e=e.constructor===Uint8Array?e:new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Z2(e,!1);throw Error();}; $s=function(e,L,c,I){this.K=null;this.B=!1;this.X=this.Z=this.G=0;this.init(e,L,c,I)}; Ht=function(e){var L=0,c=0,I=0,B=e.K,x=e.X;do{var S=B[x++];L|=(S&127)<32&&(c|=(S&127)>>4);for(I=3;I<32&&S&128;I+=7)S=B[x++],c|=(S&127)<>>0,c>>>0);throw yj();}; jr=function(e,L){e.X=L;if(L>e.Z)throw Zox(e.Z,L);}; l6=function(e){var L=e.K,c=e.X,I=L[c++],B=I&127;if(I&128&&(I=L[c++],B|=(I&127)<<7,I&128&&(I=L[c++],B|=(I&127)<<14,I&128&&(I=L[c++],B|=(I&127)<<21,I&128&&(I=L[c++],B|=I<<28,I&128&&L[c++]&128&&L[c++]&128&&L[c++]&128&&L[c++]&128&&L[c++]&128)))))throw yj();jr(e,c);return B}; Pt=function(e){var L=e.K,c=e.X,I=L[c+0],B=L[c+1],x=L[c+2];L=L[c+3];jr(e,e.X+4);return(I<<0|B<<8|x<<16|L<<24)>>>0}; Qj=function(e){var L=Pt(e);e=Pt(e);return oQ(L,e)}; de=function(e){var L=Pt(e),c=Pt(e);e=(c>>31)*2+1;var I=c>>>20&2047;L=4294967296*(c&1048575)+L;return I==2047?L?NaN:e*Infinity:I==0?e*4.9E-324*L:e*Math.pow(2,I-1075)*(L+4503599627370496)}; Ur=function(e){for(var L=0,c=e.X,I=c+10,B=e.K;ce.Z)throw Zox(L,e.Z-c);e.X=I;return c}; jgx=function(e,L){if(L==0)return VO();var c=paT(e,L);e.Pu&&e.B?c=e.K.subarray(c,c+L):(e=e.K,L=c+L,c=c===L?new Uint8Array(0):$9r?e.slice(c,L):new Uint8Array(e.subarray(c,L)));return c.length==0?VO():new wR(c,Jh)}; Xe=function(e,L,c,I){if(Er.length){var B=Er.pop();B.init(e,L,c,I);e=B}else e=new $s(e,L,c,I);this.X=e;this.Z=this.X.X;this.K=this.G=-1;Hof(this,I)}; Hof=function(e,L){L=L===void 0?{}:L;e.nT=L.nT===void 0?!1:L.nT}; l5v=function(e,L,c,I){if(KA.length){var B=KA.pop();Hof(B,I);B.X.init(e,L,c,I);return B}return new Xe(e,L,c,I)}; PvT=function(e){var L=e.X;if(L.X==L.Z)return!1;e.Z=e.X.X;var c=l6(e.X)>>>0;L=c>>>3;c&=7;if(!(c>=0&&c<=5))throw y0x(c,e.Z);if(L<1)throw Error("Invalid field number: "+L+" (at position "+e.Z+")");e.G=L;e.K=c;return!0}; Ys=function(e){switch(e.K){case 0:e.K!=0?Ys(e):Ur(e.X);break;case 1:e=e.X;jr(e,e.X+8);break;case 2:if(e.K!=2)Ys(e);else{var L=l6(e.X)>>>0;e=e.X;jr(e,e.X+L)}break;case 5:e=e.X;jr(e,e.X+4);break;case 3:L=e.G;do{if(!PvT(e))throw Error("Unmatched start-group tag: stream EOF");if(e.K==4){if(e.G!=L)throw Error("Unmatched end-group tag");break}Ys(e)}while(1);break;default:throw y0x(e.K,e.Z);}}; rD=function(e,L,c){var I=e.X.Z,B=l6(e.X)>>>0,x=e.X.X+B,S=x-I;S<=0&&(e.X.Z=x,c(L,e,void 0,void 0,void 0),S=x-e.X.X);if(S)throw Error("Message parsing ended unexpectedly. Expected to read "+(B+" bytes, instead read "+(B-S)+" bytes, either the data ended unexpectedly or the message misreported its own length"));e.X.X=x;e.X.Z=I}; uk=function(e){var L=l6(e.X)>>>0;e=e.X;var c=paT(e,L);e=e.K;if(QgM){var I=e,B;(B=hY)||(B=hY=new TextDecoder("utf-8",{fatal:!0}));L=c+L;I=c===0&&L===I.length?I:I.subarray(c,L);try{var x=B.decode(I)}catch(u){if(RJ===void 0){try{B.decode(new Uint8Array([128]))}catch(t){}try{B.decode(new Uint8Array([97])),RJ=!0}catch(t){RJ=!1}}!RJ&&(hY=void 0);throw u;}}else{x=c;L=x+L;c=[];for(var S=null,h,R;x=L?Fo():(R=e[x++],h<194||(R&192)!==128?(x--,Fo()):c.push((h&31)<<6|R&63)): h<240?x>=L-1?Fo():(R=e[x++],(R&192)!==128||h===224&&R<160||h===237&&R>=160||((B=e[x++])&192)!==128?(x--,Fo()):c.push((h&15)<<12|(R&63)<<6|B&63)):h<=244?x>=L-2?Fo():(R=e[x++],(R&192)!==128||(h<<28)+(R-144)>>30!==0||((B=e[x++])&192)!==128||((I=e[x++])&192)!==128?(x--,Fo()):(h=(h&7)<<18|(R&63)<<12|(B&63)<<6|I&63,h-=65536,c.push((h>>10&1023)+55296,(h&1023)+56320))):Fo(),c.length>=8192&&(S=ssH(S,c),c.length=0);x=ssH(S,c)}return x}; d96=function(e){var L=l6(e.X)>>>0;return jgx(e.X,L)}; tY=function(e,L){this.K=e>>>0;this.X=L>>>0}; ECn=function(e){if(!e)return U9f||(U9f=new tY(0,0));if(!/^\d+$/.test(e))return null;Sd(e);return new tY(ed,Lt)}; OD=function(e,L){this.K=e>>>0;this.X=L>>>0}; KjM=function(e){if(!e)return Xaf||(Xaf=new OD(0,0));if(!/^-?\d+$/.test(e))return null;Sd(e);return new OD(ed,Lt)}; qT=function(){this.X=[]}; Tm=function(e,L,c){for(;c>0||L>127;)e.X.push(L&127|128),L=(L>>>7|c<<25)>>>0,c>>>=7;e.X.push(L)}; Wd=function(e,L){for(;L>127;)e.X.push(L&127|128),L>>>=7;e.X.push(L)}; Y3H=function(e,L){if(L>=0)Wd(e,L);else{for(var c=0;c<9;c++)e.X.push(L&127|128),L>>=7;e.X.push(1)}}; MT=function(e,L){e.X.push(L>>>0&255);e.X.push(L>>>8&255);e.X.push(L>>>16&255);e.X.push(L>>>24&255)}; nC$=function(){this.Z=[];this.K=0;this.X=new qT}; zm=function(e,L){L.length!==0&&(e.Z.push(L),e.K+=L.length)}; erR=function(e,L){sD(e,L,2);L=e.X.end();zm(e,L);L.push(e.K);return L}; LRn=function(e,L){var c=L.pop();for(c=e.K+e.X.length()-c;c>127;)L.push(c&127|128),c>>>=7,e.K++;L.push(c);e.K++}; sD=function(e,L,c){Wd(e.X,L*8+c)}; cjn=function(e,L,c){if(c!=null){switch(typeof c){case "string":ECn(c)}sD(e,L,1);switch(typeof c){case "number":e=e.X;cy(c);MT(e,ed);MT(e,Lt);break;case "bigint":c=BigInt.asUintN(64,c);c=new tY(Number(c&BigInt(4294967295)),Number(c>>BigInt(32)));e=e.X;L=c.X;MT(e,c.K);MT(e,L);break;default:c=ECn(c),e=e.X,L=c.X,MT(e,c.K),MT(e,L)}}}; vd=function(e,L,c){sD(e,L,2);Wd(e.X,c.length);zm(e,e.X.end());zm(e,c)}; fK=function(){function e(){throw Error();} Object.setPrototypeOf(e,e.prototype);return e}; AY=function(e,L,c){this.XF=Hy(e,L,c)}; I1J=function(e,L){if(L==null||L=="")return new e;L=JSON.parse(L);if(!Array.isArray(L))throw Error("dnarr");$T(L,32);return new e(L)}; bk=function(e,L,c){this.OZ=e;this.Fe=L;e=qg(Fi);this.X=!!e&&c===e||!1}; ik=function(e,L){var c=c===void 0?Fi:c;return new bk(e,L,c)}; xlT=function(e,L,c,I,B){L=BF6(L,I);L!=null&&(c=erR(e,c),B(L,e),LRn(e,c))}; kO=function(e,L,c,I){var B=I[e];if(B)return B;B={};B.Pn=I;B.BJ=A0r(I[0]);var x=I[1],S=1;x&&x.constructor===Object&&(B.extensions=x,x=I[++S],typeof x==="function"&&(B.m3=!0,Gm!=null||(Gm=x),gD!=null||(gD=I[S+1]),x=I[S+=2]));for(var h={};x&&Array.isArray(x)&&x.length&&typeof x[0]==="number"&&x[0]>0;){for(var R=0;R>BigInt(32)));Tm(e.X,c.K,c.X);break;default:c=KjM(L),Tm(e.X,c.K,c.X)}}}; KK=function(e,L,c){L=q6(L);L!=null&&L!=null&&(sD(e,c,0),Y3H(e.X,L))}; zrx=function(e,L,c){L=L==null||typeof L==="boolean"?L:typeof L==="number"?!!L:void 0;L!=null&&(sD(e,c,0),e.X.X.push(L?1:0))}; sFT=function(e,L,c){L=GK(L);L!=null&&vd(e,c,FO6(L))}; vrf=function(e,L,c,I,B){L=BF6(L,I);L!=null&&(c=erR(e,c),B(L,e),LRn(e,c))}; AjT=function(){var e=YO;this.X=f1f;this.isRepeated=0;this.K=zJ;this.defaultValue=void 0;this.Z=e.messageId!=null?dR:void 0}; FRM=function(e){return function(){var L=new nC$;q_n(this.XF,L,kO(jN,mL,Hd,e));zm(L,L.X.end());for(var c=new Uint8Array(L.K),I=L.Z,B=I.length,x=0,S=0;S-1)return L.apply(null,g.V(c));try{return e.X=e.Z.X.now(),L.apply(null,g.V(c))}finally{e.G+=e.Z.X.now()-e.X,e.X=-1,e.K+=1}}}; iU6=function(e,L){this.K=e;this.Z=L;this.X=new bUv(e)}; G$r=function(){this.X={}}; k$c=function(){var e=cO().flags,L=grH;e=e.X[L.key];if(L.valueType==="proto"){try{var c=JSON.parse(e);if(Array.isArray(c))return c}catch(I){}return L.defaultValue}return typeof e===typeof L.defaultValue?e:L.defaultValue}; VfJ=function(){this.Z=void 0;this.K=this.j=0;this.B=-1;this.II=new bw;iw(this.II,"mv",Dlv).X=!0;iw(this.II,"omid",Dt);iw(this.II,"epoh",Dt).X=!0;iw(this.II,"epph",Dt).X=!0;iw(this.II,"umt",Dt).X=!0;iw(this.II,"phel",Dt).X=!0;iw(this.II,"phell",Dt).X=!0;iw(this.II,"oseid",wzc).X=!0;var e=this.II;e.X.sloi||(e.X.sloi=new A_);e.X.sloi.X=!0;iw(this.II,"mm",IX);iw(this.II,"ovms",Jjn).X=!0;iw(this.II,"xdi",Dt).X=!0;iw(this.II,"amp",Dt).X=!0;iw(this.II,"prf",Dt).X=!0;iw(this.II,"gtx",Dt).X=!0;iw(this.II, "mvp_lv",Dt).X=!0;iw(this.II,"ssmol",Dt).X=!0;iw(this.II,"fmd",Dt).X=!0;iw(this.II,"gen204simple",Dt);this.X=new iU6(Ah(),this.II);this.G=!1;this.flags=new G$r}; cO=function(){return vA(VfJ)}; C3c=function(e,L,c,I){if(Math.random()<(I||e.X))try{if(c instanceof Od)var B=c;else B=new Od,uD(c,function(S,h){var R=B,u=R.G++;S=qt(h,S);R.X.push(u);R.K[u]=S}); var x=B.Wd(e.K,"pagead2.googlesyndication.com","/pagead/gen_204?id="+L+"&");x&&(Ah(),TuR(x))}catch(S){}}; a1v=function(e,L,c){c=c===void 0?{}:c;this.error=e;this.meta=c;this.context=L.context;this.msg=L.message||"";this.id=L.id||"jserror"}; NFv=function(){var e=e===void 0?g.LZ:e;return(e=e.performance)&&e.now&&e.timing?Math.floor(e.now()+e.timing.navigationStart):g.O9()}; mlM=function(){var e=e===void 0?g.LZ:e;return(e=e.performance)&&e.now?e.now():null}; yjr=function(e,L,c){this.label=e;this.type=L;this.value=c;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; xW=function(){var e=window;this.events=[];this.K=e||g.LZ;var L=null;e&&(e.google_js_reporting_queue=e.google_js_reporting_queue||[],this.events=e.google_js_reporting_queue,L=e.google_measure_js_timing);this.X=BO()||(L!=null?L:Math.random()<1)}; ZUc=function(e){e&&oX&&BO()&&(oX.clearMarks("goog_"+e.label+"_"+e.uniqueId+"_start"),oX.clearMarks("goog_"+e.label+"_"+e.uniqueId+"_end"))}; SW=function(e,L,c,I,B,x,S){var h="";e&&(h+=e+":");c&&(h+="//",L&&(h+=L+"@"),h+=c,I&&(h+=":"+I));B&&(h+=B);x&&(h+="?"+x);S&&(h+="#"+S);return h}; g.rj=function(e){return e.match(pzx)}; $lr=function(e){return e?decodeURI(e):e}; g.hp=function(e){return $lr(g.rj(e)[3]||null)}; RX=function(e){return $lr(g.rj(e)[5]||null)}; g.jFT=function(e){e=g.rj(e);return SW(e[1],e[2],e[3],e[4])}; uT=function(e){e=g.rj(e);return SW(null,null,null,null,e[5],e[6],e[7])}; HUJ=function(e){var L=e.indexOf("#");return L<0?e:e.slice(0,L)}; tp=function(e,L){if(e){e=e.split("&");for(var c=0;c=0){var x=e[c].substring(0,I);B=e[c].substring(I+1)}else x=e[c];L(x,B?wz(B):"")}}}; OO=function(e,L){if(!L)return e;var c=e.indexOf("#");c<0&&(c=e.length);var I=e.indexOf("?");if(I<0||I>c){I=c;var B=""}else B=e.substring(I+1,c);e=[e.slice(0,I),B,e.slice(c)];c=e[1];e[1]=L?c?c+"&"+L:L:c;return e[0]+(e[1]?"?"+e[1]:"")+e[2]}; q3=function(e,L,c){if(Array.isArray(L))for(var I=0;I=0&&Lc)B=c;I+=L.length+1;return wz(e.slice(I,B!==-1?B:0))}; Ap=function(e,L){for(var c=e.search(vO),I=0,B,x=[];(B=zE(e,I,L,c))>=0;)x.push(e.substring(I,B)),I=Math.min(e.indexOf("&",B)+1||c,c);x.push(e.slice(I));return x.join("").replace(QF$,"$1")}; dlM=function(e,L,c){return M3(Ap(e,L),L,c)}; UlH=function(){var e=FY;this.X=bT;this.GQ="jserror";this.Jy=!0;this.Q8=null;this.K=this.aH;this.Jw=e===void 0?null:e}; ErJ=function(e,L,c){var I=iT;return LW(cO().X.X,function(){try{if(I.Jw&&I.Jw.X){var B=I.Jw.start(e.toString(),3);var x=L();I.Jw.end(B)}else x=L()}catch(h){var S=I.Jy;try{ZUc(B),S=I.K(e,new GE(gj(h)),void 0,c)}catch(R){I.aH(217,R)}if(!S)throw h;}return x})()}; kW=function(e,L,c,I){return LW(cO().X.X,function(){var B=g.HM.apply(0,arguments);return ErJ(e,function(){return L.apply(c,B)},I)})}; gj=function(e){var L=e.toString();e.name&&L.indexOf(e.name)==-1&&(L+=": "+e.name);e.message&&L.indexOf(e.message)==-1&&(L+=": "+e.message);if(e.stack)a:{e=e.stack;var c=L;try{e.indexOf(c)==-1&&(e=c+"\n"+e);for(var I;e!=I;)I=e,e=e.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");L=e.replace(/\n */g,"\n");break a}catch(B){L=c;break a}L=void 0}return L}; GE=function(e){a1v.call(this,Error(e),{message:e})}; Xzx=function(){wF&&typeof wF.google_measure_js_timing!="undefined"&&(wF.google_measure_js_timing||FY.disable())}; KRH=function(e){iT.Q8=function(L){g.KZ(e,function(c){c(L)})}}; Y_c=function(e,L){return ErJ(e,L)}; Dn=function(e,L){return kW(e,L)}; wj=function(e,L,c,I){iT.aH(e,L,c,I)}; Jp=function(){return Date.now()-nrH}; egR=function(){var e=cO().Z,L=Vy>=0?Jp()-Vy:-1,c=CW?Jp()-aX:-1,I=N3>=0?Jp()-N3:-1;if(e==947190542)return 100;if(e==79463069)return 200;e=[2E3,4E3];var B=[250,500,1E3];wj(637,Error(),.001);var x=L;c!=-1&&c1500&&I<4E3?500:S}; m_=function(e,L,c){var I=new mR(0,0,0,0);this.time=e;this.volume=null;this.Z=L;this.X=I;this.K=c}; yy=function(e,L,c,I,B,x,S,h){this.G=e;this.T=L;this.Z=c;this.j=I;this.X=B;this.B=x;this.K=S;this.J=h}; chJ=function(e){var L=e!==e.top,c=e.top===xQ$(e),I=-1,B=0;if(L&&c&&e.top.mraid){I=3;var x=e.top.mraid}else I=(x=e.mraid)?L?c?2:1:0:-1;x&&(x.IS_GMA_SDK||(B=2),Vv6(Lsx,function(S){return typeof x[S]==="function"})||(B=1)); return{xV:x,compatibility:B,mve:I}}; Ixn=function(){var e=window.document;return e&&typeof e.elementFromPoint==="function"}; cTn=function(e,L,c){if(e&&L!==null&&L!=L.top){if(!L.top)return new g.dz(-12245933,-12245933);L=L.top}try{return(c===void 0?0:c)?(new g.dz(L.innerWidth,L.innerHeight)).round():aJ$(L||window).round()}catch(I){return new g.dz(-12245933,-12245933)}}; Zn=function(e,L,c){try{if(e){if(!L.top)return new mR(-12245933,-12245933,-12245933,-12245933);L=L.top}var I=cTn(e,L,c),B=I.height,x=I.width;if(x===-12245933)return new mR(x,x,x,x);var S=IF(L.document);var h=mgx(S.X);var R=h.x,u=h.y;return new mR(u,R+x,u+B,R)}catch(t){return new mR(-12245933,-12245933,-12245933,-12245933)}}; pW=function(e,L){L=Math.pow(10,L);return Math.floor(e*L)/L}; IKn=function(e){return new mR(e.top,e.right,e.bottom,e.left)}; BIr=function(e){var L=e.top||0,c=e.left||0;return new mR(L,c+(e.width||0),L+(e.height||0),c)}; $W=function(e){return e!=null&&e>=0&&e<=1}; x6$=function(){var e=g.yc();return e?jW("AmazonWebAppPlatform;Android TV;Apple TV;AppleTV;BRAVIA;BeyondTV;Freebox;GoogleTV;HbbTV;LongTV;MiBOX;MiTV;NetCast.TV;Netcast;Opera TV;PANASONIC;POV_TV;SMART-TV;SMART_TV;SWTV;Smart TV;SmartTV;TV Store;UnionTV;WebOS".split(";"),function(L){return Ce(e,L)})||Ce(e,"OMI/")&&!Ce(e,"XiaoMi/")?!0:Ce(e,"Presto")&&Ce(e,"Linux")&&!Ce(e,"X11")&&!Ce(e,"Android")&&!Ce(e,"Mobi"):!1}; oQn=function(){this.Z=!Rn(wF.top);this.isMobileDevice=S_()||Y9f();var e=th();this.domain=e.length>0&&e[e.length-1]!=null&&e[e.length-1].url!=null?g.hp(e[e.length-1].url)||"":"";this.X=new mR(0,0,0,0);this.G=new g.dz(0,0);this.B=new g.dz(0,0);this.T=new mR(0,0,0,0);this.frameOffset=new g.Pa(0,0);this.j=0;this.J=!1;this.K=!(!wF||!chJ(wF).xV);this.update(wF)}; SX$=function(e,L){L&&L.screen&&(e.G=new g.dz(L.screen.width,L.screen.height))}; rTr=function(e,L){a:{var c=e.X?new g.dz(yD(e.X),e.X.getHeight()):new g.dz(0,0);L=L===void 0?wF:L;L!==null&&L!=L.top&&(L=L.top);var I=0,B=0;try{var x=L.document,S=x.body,h=x.documentElement;if(x.compatMode=="CSS1Compat"&&h.scrollHeight)I=h.scrollHeight!=c.height?h.scrollHeight:h.offsetHeight,B=h.scrollWidth!=c.width?h.scrollWidth:h.offsetWidth;else{var R=h.scrollHeight,u=h.scrollWidth,t=h.offsetHeight,O=h.offsetWidth;h.clientHeight!=t&&(R=S.scrollHeight,u=S.scrollWidth,t=S.offsetHeight,O=S.offsetWidth); R>c.height?R>t?(I=R,B=u):(I=t,B=O):R0||e.J)return!0;e=Ah().K.isVisible();var L=xT(lT)===0;return e||L}; HO=function(){return vA(oQn)}; Qy=function(e){this.Z=e;this.K=0;this.X=null}; dj=function(e,L,c){this.Z=e;this.t7=c===void 0?"na":c;this.B=[];this.isInitialized=!1;this.G=new m_(-1,!0,this);this.X=this;this.J=L;this.pS=this.D=!1;this.Ve="uk";this.k9=!1;this.j=!0}; UO=function(e,L){g.Fh(e.B,L)||(e.B.push(L),L.N6(e.X),L.P3(e.G),L.C8()&&(e.D=!0))}; hN6=function(e){e=e.X;e.dE();e.vS();var L=HO();L.T=Zn(!1,e.Z,L.isMobileDevice);rTr(HO(),e.Z);e.G.X=e.bU()}; RNc=function(e){e.D=e.B.length?jW(e.B,function(L){return L.C8()}):!1}; uJc=function(e){var L=g.VM(e.B);g.KZ(L,function(c){c.P3(e.G)})}; EO=function(e){var L=g.VM(e.B);g.KZ(L,function(c){c.N6(e.X)}); e.X!=e||uJc(e)}; XY=function(e,L,c,I){this.element=e;this.X=new mR(0,0,0,0);this.Z=null;this.j=new mR(0,0,0,0);this.K=L;this.II=c;this.k9=I;this.Gm=!1;this.timestamp=-1;this.D=new yy(L.G,this.element,this.X,new mR(0,0,0,0),0,0,Jp(),0);this.B=void 0}; tdr=function(e,L){return e.B?new mR(Math.max(L.top+e.B.top,L.top),Math.min(L.left+e.B.right,L.right),Math.min(L.top+e.B.bottom,L.bottom),Math.max(L.left+e.B.left,L.left)):L.clone()}; KW=function(e){this.B=!1;this.X=e;this.G=function(){}}; OtM=function(e,L,c){this.Z=c===void 0?0:c;this.K=e;this.X=L==null?"":L}; qXf=function(e){switch(Math.trunc(e.Z)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; TIx=function(e,L){return e.ZL.Z?!1:e.KL.K?!1:typeof e.Xtypeof L.X?!1:e.X0?I[c]-I[c-1]:I[c]})}; RS=function(){this.K=new Bs;this.t7=this.Y9=0;this.He=new IS;this.h7=this.T=-1;this.Sl=1E3;this.x9=new Bs([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.Ve=this.Gm=-1}; ug=function(e,L){return itn(e.K,L===void 0?!0:L)}; ty=function(e,L,c,I){var B=B===void 0?!1:B;c=kW(I,c);BA(e,L,c,{capture:B})}; M_=function(e,L){L=Ws(L);return L===0?0:Ws(e)/L}; Ws=function(e){return Math.max(e.bottom-e.top,0)*Math.max(e.right-e.left,0)}; kKn=function(e,L){if(!e||!L)return!1;for(var c=0;e!==null&&c++<100;){if(e===L)return!0;try{if(e=e.parentElement||e){var I=cz(e),B=I&&u3(I),x=B&&B.frameElement;x&&(e=x)}}catch(S){break}}return!1}; D6n=function(e,L,c){if(!e||!L)return!1;L=pU(e.clone(),-L.left,-L.top);e=(L.left+L.right)/2;L=(L.top+L.bottom)/2;Rn(window.top)&&window.top&&window.top.document&&(window=window.top);if(!Ixn())return!1;e=window.document.elementFromPoint(e,L);if(!e)return!1;L=(L=(L=cz(c))&&L.defaultView&&L.defaultView.frameElement)&&kKn(L,e);var I=e===c;e=!I&&e&&i3(e,function(B){return B===c}); return!(L||I||e)}; wyx=function(e,L,c,I){return HO().Z?!1:yD(e)<=0||e.getHeight()<=0?!0:c&&I?Y_c(208,function(){return D6n(e,L,c)}):!1}; zV=function(e,L,c){g.p.call(this);this.position=JTn.clone();this.Zo=this.Df();this.DK=-2;this.timeCreated=Date.now();this.vE=-1;this.GA=L;this.bA=null;this.SS=!1;this.Md=null;this.opacity=-1;this.requestSource=c;this.YKe=!1;this.Ki=function(){}; this.GE=function(){}; this.I8=new $gH;this.I8.xW=e;this.I8.X=e;this.AI=!1;this.KO={BT:null,jx:null};this.zW=!0;this.Xb=null;this.pJ=this.q8=!1;cO().j++;this.RF=this.Oi();this.C7=-1;this.Pd=null;this.hasCompleted=this.KE=!1;this.II=new bw;$Mc(this.II);Vd6(this);this.requestSource==1?GG(this.II,"od",1):GG(this.II,"od",0)}; Vd6=function(e){e=e.I8.xW;var L;if(L=e&&e.getAttribute)L=/-[a-z]/.test("googleAvInapp")?!1:C5c&&e.dataset?"googleAvInapp"in e.dataset:e.hasAttribute?e.hasAttribute("data-"+q9R()):!!e.getAttribute("data-"+q9R());L&&(HO().K=!0)}; s6=function(e,L){L!=e.pJ&&(e.pJ=L,e=HO(),L?e.j++:e.j>0&&e.j--)}; aKv=function(e,L){if(e.Pd){if(L.getName()===e.Pd.getName())return;e.Pd.dispose();e.Pd=null}L=L.create(e.I8.X,e.II,e.C8());if(L=L!=null&&L.observe()?L:null)e.Pd=L}; NIr=function(e,L,c){if(!e.bA||e.GA==-1||L.K===-1||e.bA.K===-1)return 0;e=L.K-e.bA.K;return e>c?0:e}; m6$=function(e,L,c){if(e.Pd){e.Pd.ra();var I=e.Pd.D,B=I.G,x=B.X;if(I.j!=null){var S=I.Z;e.Md=new g.Pa(S.left-x.left,S.top-x.top)}x=e.Xe()?Math.max(I.X,I.B):I.X;S={};B.volume!==null&&(S.volume=B.volume);B=e.AF(I);e.bA=I;e.OW(x,L,c,!1,S,B,I.J)}}; yTn=function(e){if(e.SS&&e.Xb){var L=gu(e.II,"od")==1,c=HO().X,I=e.Xb,B=e.Pd?e.Pd.getName():"ns",x=e.Md,S=new g.dz(yD(c),c.getHeight());c=e.Xe();e={XR$:B,Md:x,Ne9:S,Xe:c,oU:e.RF.oU,n4S:L};if(L=I.K){L.ra();B=L.D;x=B.G.X;var h=S=null;B.j!=null&&x&&(S=B.Z,S=new g.Pa(S.left-x.left,S.top-x.top),h=new g.dz(x.right-x.left,x.bottom-x.top));B=c?Math.max(B.X,B.B):B.X;c={XR$:L.getName(),Md:S,Ne9:h,Xe:c,n4S:!1,oU:B}}else c=null;c&&ATM(I,e,c)}}; ZtM=function(e,L,c){L&&(e.Ki=L);c&&(e.GE=c)}; g.vs=function(){}; g.f0=function(e){return{value:e,done:!1}}; py6=function(){this.G=this.X=this.Z=this.K=this.B=0}; $6x=function(e){var L={};var c=g.O9()-e.B;L=(L.ptlt=c,L);(c=e.K)&&(L.pnk=c);(c=e.Z)&&(L.pnc=c);(c=e.G)&&(L.pnmm=c);(e=e.X)&&(L.pns=e);return L}; jQc=function(){eR.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; Ay=function(e){return $W(e.volume)&&e.volume>0}; Fc=function(e,L,c,I){c=c===void 0?!0:c;I=I===void 0?function(){return!0}:I; return function(B){var x=B[e];if(Array.isArray(x)&&I(B))return Htv(x,L,c)}}; bg=function(e,L){return function(c){return L(c)?c[e]:void 0}}; lKc=function(e){return function(L){for(var c=0;c0?x[B-1]+1:0,I+1).reduce(function(S,h){return S+h},0)})}; P5n=function(){this.K=this.X=""}; QQJ=function(){}; GV=function(e,L){var c={};if(e!==void 0)if(L!=null)for(var I in L){var B=L[I];I in Object.prototype||B!=null&&(c[I]=typeof B==="function"?B(e):e[B])}else g.so(c,e);return ez(nW(new YW,c))}; d6c=function(){var e={};this.K=(e.vs=[1,0],e.vw=[0,1],e.am=[2,2],e.a=[4,4],e.f=[8,8],e.bm=[16,16],e.b=[32,32],e.avw=[0,64],e.avs=[64,0],e.pv=[256,256],e.gdr=[0,512],e.p=[0,1024],e.r=[0,2048],e.m=[0,4096],e.um=[0,8192],e.ef=[0,16384],e.s=[0,32768],e.pmx=[0,16777216],e.mut=[33554432,33554432],e.umutb=[67108864,67108864],e.tvoff=[134217728,134217728],e);this.X={};for(var L in this.K)this.K[L][1]>0&&(this.X[L]=0);this.Z=0}; gq=function(e,L){var c=e.K[L],I=c[1];e.Z+=c[0];I>0&&e.X[L]==0&&(e.X[L]=1)}; U6H=function(e){var L=g.Rs(e.K),c=0,I;for(I in e.X)g.Fh(L,I)&&e.X[I]==1&&(c+=e.K[I][1],e.X[I]=2);return c}; EQT=function(e){var L=0,c;for(c in e.X){var I=e.X[c];if(I==1||I==2)L+=e.K[c][1]}return L}; k6=function(){this.X=this.K=0}; wq=function(){RS.call(this);this.Z=new IS;this.Pe=this.D=this.k9=0;this.J=-1;this.DY=new IS;this.B=new IS;this.X=new Bs;this.j=this.G=-1;this.pS=new IS;this.Sl=2E3;this.ye=new k6;this.d_=new k6;this.m$=new k6}; Jy=function(e,L,c){var I=e.Pe;CW||c||e.J==-1||(I+=L-e.J);return I}; Xyv=function(){this.Z=!1}; VS=function(e,L){this.Z=!1;this.G=e;this.D=L;this.B=0}; C0=function(e,L){VS.call(this,e,L);this.T=[]}; Kvn=function(){}; aS=function(){}; N_=function(e,L,c,I){XY.call(this,e,L,c,I)}; m8=function(e,L,c){XY.call(this,null,e,L,c);this.J=e.isActive();this.T=0}; yS=function(e){return[e.top,e.left,e.bottom,e.right]}; Zl=function(e,L,c,I,B,x){x=x===void 0?new aS:x;zV.call(this,L,c,I);this.yG=B;this.vx=0;this.WU={};this.Sk=new d6c;this.Wf={};this.h_="";this.m$=null;this.Kf=!1;this.X=[];this.Na=x.K();this.j=x.Z();this.G=null;this.Z=-1;this.t7=this.D=void 0;this.h7=this.pS=0;this.Ve=-1;this.Sl=this.d_=!1;this.k9=this.J=this.K=this.Nf=this.sY=0;new Bs;this.ye=this.Pe=0;this.He=-1;this.OE=0;this.T=g.VD;this.Gm=[this.Df()];this.gT=2;this.P4={};this.P4.pause="p";this.P4.resume="r";this.P4.skip="s";this.P4.mute="m";this.P4.unmute= "um";this.P4.exitfullscreen="ef";this.B=null;this.x9=this.DY=!1;this.RT=Math.floor(Date.now()/1E3-1704067200);this.Y9=0}; p0=function(e){e.hasCompleted=!0;e.OE!=0&&(e.OE=3)}; $6=function(e){return e===void 0?e:Number(e)?pW(e,3):0}; jz=function(e,L){return e.Gm[L!=null&&LMath.max(1E4,e.Z/3)?0:L);var c=e.T(e)||{};c=c.currentTime!==void 0?c.currentTime:e.pS;var I=c-e.pS,B=0;I>=0?(e.h7+=L,e.ye+=Math.max(L-I,0),B=Math.min(I,e.h7)):e.Pe+=Math.abs(I);I!=0&&(e.h7=0);e.He==-1&&I>0&&(e.He=N3>=0?Jp()-N3:-1);e.pS=c;return B}; ej$=function(e,L){jW(e.j,function(c){return c.G==L.G})||e.j.push(L)}; L3n=function(e){var L=Sz(e.oh().X,1);return Hs(e,L)}; Hs=function(e,L,c){return L>=15E3?!0:e.d_?(c===void 0?0:c)?!0:e.Z>0?L>=e.Z/2:e.Ve>0?L>=e.Ve:!1:!1}; ca6=function(e){var L=pW(e.RF.oU,2),c=e.Sk.Z,I=e.RF,B=jz(e),x=$6(B.G),S=$6(B.j),h=$6(I.volume),R=pW(B.T,2),u=pW(B.h7,2),t=pW(I.oU,2),O=pW(B.Gm,2),q=pW(B.Ve,2);I=pW(I.b2,2);var T=e.YW().clone().round();e=e.Pd&&e.Pd.Z?(e.Pd?e.Pd.Z:null).clone().round():null;B=ug(B,!1);return{fjM:L,dl:c,US:x,hQ:S,kq:h,I5:R,sS:u,oU:t,k$:O,a5:q,b2:I,position:T,gR:e,BX:B}}; Bef=function(e,L){I2M(e.X,L,function(){return{fjM:0,dl:void 0,US:-1,hQ:-1,kq:-1,I5:-1,sS:-1,oU:-1,k$:-1,a5:-1,b2:-1,position:void 0,gR:void 0,BX:[]}}); e.X[L]=ca6(e)}; I2M=function(e,L,c){for(var I=e.length;I0?1:0;O.atos= x6(u.X);O.ssb=x6(u.x9,!1);O.amtos=itn(u.X,!1);O.uac=e.sY;O.vpt=u.Z.X;t=="nio"&&(O.nio=1,O.avms="nio");O.gmm="4";O.gdr=Hs(e,u.Z.X,!0)?1:0;O.efpf=e.gT;if(t=="gsv"||t=="nis")t=e.Pd,t.T>0&&(O.nnut=t.T);O.tcm=YXT(e);O.nmt=e.Pe;O.bt=e.ye;O.pst=e.He;O.vpaid=e.D;O.dur=e.Z;O.vmtime=e.pS;O.is=e.Sk.Z;e.X.length>=1&&(O.i0=e.X[0].dl,O.a0=[e.X[0].kq],O.c0=[e.X[0].oU],O.ss0=[e.X[0].b2],t=e.X[0].position,x=e.X[0].gR,O.p0=t?yS(t):void 0,t&&x&&!Z1(x,t)&&(O.cp0=yS(x)));e.X.length>=2&&(O.i1=e.X[1].dl,O.a1=QS(e.X[1].US, e.X[1].kq,e.X[1].hQ),O.c1=QS(e.X[1].I5,e.X[1].oU,e.X[1].sS),O.ss1=QS(e.X[1].k$,e.X[1].b2,e.X[1].a5),t=e.X[1].position,x=e.X[1].gR,O.p1=t?yS(t):void 0,t&&x&&!Z1(x,t)&&(O.cp1=yS(x)),O.mtos1=e.X[1].BX);e.X.length>=3&&(O.i2=e.X[2].dl,O.a2=QS(e.X[2].US,e.X[2].kq,e.X[2].hQ),O.c2=QS(e.X[2].I5,e.X[2].oU,e.X[2].sS),O.ss2=QS(e.X[2].k$,e.X[2].b2,e.X[2].a5),t=e.X[2].position,x=e.X[2].gR,O.p2=t?yS(t):void 0,t&&x&&!Z1(x,t)&&(O.cp2=yS(x)),O.mtos2=e.X[2].BX);e.X.length>=4&&(O.i3=e.X[3].dl,O.a3=QS(e.X[3].US,e.X[3].kq, e.X[3].hQ),O.c3=QS(e.X[3].I5,e.X[3].oU,e.X[3].sS),O.ss3=QS(e.X[3].k$,e.X[3].b2,e.X[3].a5),t=e.X[3].position,x=e.X[3].gR,O.p3=t?yS(t):void 0,t&&x&&!Z1(x,t)&&(O.cp3=yS(x)),O.mtos3=e.X[3].BX);O.cs=EQT(e.Sk);L&&(O.ic=U6H(e.Sk),O.dvpt=u.Z.K,O.dvs=hy(u.K,.5),O.dfvs=hy(u.K,1),O.davs=hy(u.X,.5),O.dafvs=hy(u.X,1),c&&(u.Z.K=0,GK6(u.K),GK6(u.X)),e.H1()&&(O.dtos=u.k9,O.dav=u.D,O.dtoss=e.vx+1,c&&(u.k9=0,u.D=0,e.vx++)),O.dat=u.B.K,O.dft=u.pS.K,c&&(u.B.K=0,u.pS.K=0));O.ps=[h.B.width,h.B.height];O.bs=[yD(h.X),h.X.getHeight()]; O.scs=[h.G.width,h.G.height];O.dom=h.domain;e.Nf&&(O.vds=e.Nf);if(e.j.length>0||e.Na)L=g.VM(e.j),e.Na&&L.push(e.Na),O.pings=g.Mt(L,function(q){return q.toString()}); L=g.Mt(g.ig(e.j,function(q){return q.j()}),function(q){return q.getId()}); i6x(L);O.ces=L;e.K&&(O.vmer=e.K);e.J&&(O.vmmk=e.J);e.k9&&(O.vmiec=e.k9);O.avms=e.Pd?e.Pd.getName():"ns";e.Pd&&g.so(O,e.Pd.R4());I?(O.c=pW(e.RF.oU,2),O.ss=pW(e.RF.b2,2)):O.tth=Jp()-rav;O.mc=pW(u.h7,2);O.nc=pW(u.T,2);O.mv=$6(u.j);O.nv=$6(u.G);O.lte=pW(e.DK,2);I=jz(e,B);ug(u);O.qmtos=ug(I);O.qnc=pW(I.T,2);O.qmv=$6(I.j);O.qnv=$6(I.G);O.qas=I.G>0?1:0;O.qi=e.h_;O.avms||(O.avms="geo");O.psm=u.ye.X;O.psv=u.ye.getValue();O.psfv=u.d_.getValue();O.psa=u.m$.getValue();R=Z6r(R.II);R.length&&(O.veid=R);e.B&&g.so(O, $6x(e.B));O.avas=e.Jd();O.vs=e.EN();O.co=hj6(e);O.tm=u.Y9;O.tu=u.t7;return O}; x4r=function(e,L){if(g.Fh(Rjv,L))return!0;var c=e.WU[L];return c!==void 0?(e.WU[L]=!0,!c):!1}; hj6=function(e){var L=e.Y9.toString(10).padStart(2,"0");L=""+e.RT+L;e.Y9<99&&e.Y9++;return L}; trH=function(){this.X={};var e=u3();dq(this,e,document);var L=ueH();try{if("1"==L){for(var c=e.parent;c!=e.top;c=c.parent)dq(this,c,c.document);dq(this,e.top,e.top.document)}}catch(I){}}; ueH=function(){var e=document.documentElement;try{if(!Rn(u3().top))return"2";var L=[],c=u3(e.ownerDocument);for(e=c;e!=c.top;e=e.parent)if(e.frameElement)L.push(e.frameElement);else break;return L&&L.length!=0?"1":"0"}catch(I){return"2"}}; dq=function(e,L,c){ty(c,"mousedown",function(){return OAr(e)},301); ty(L,"scroll",function(){return qr$(e)},302); ty(c,"touchmove",function(){return Tec(e)},303); ty(c,"mousemove",function(){return W3M(e)},304); ty(c,"keydown",function(){return MrM(e)},305)}; OAr=function(e){g.Le(e.X,function(L){L.Z>1E5||++L.Z})}; qr$=function(e){g.Le(e.X,function(L){L.X>1E5||++L.X})}; Tec=function(e){g.Le(e.X,function(L){L.X>1E5||++L.X})}; MrM=function(e){g.Le(e.X,function(L){L.K>1E5||++L.K})}; W3M=function(e){g.Le(e.X,function(L){L.G>1E5||++L.G})}; zjR=function(){this.X=[];this.K=[]}; U6=function(e,L){return g.vU(e.X,function(c){return c.h_==L})}; s7c=function(e,L){return L?g.vU(e.X,function(c){return c.I8.xW==L}):null}; vsr=function(e,L){return g.vU(e.K,function(c){return c.i9()==2&&c.h_==L})}; Xc=function(){var e=E6;return e.X.length==0?e.K:e.K.length==0?e.X:g.Jw(e.K,e.X)}; f2r=function(e,L){e=L.i9()==1?e.X:e.K;var c=s9(e,function(I){return I==L}); return c!=-1?(e.splice(c,1),L.Pd&&L.Pd.unobserve(),L.dispose(),!0):!1}; Aan=function(e){var L=E6;if(f2r(L,e)){switch(e.i9()){case 0:var c=function(){return null}; case 2:c=function(){return vsr(L,e.h_)}; break;case 1:c=function(){return U6(L,e.h_)}}for(var I=c();I;I=c())f2r(L,I)}}; F3c=function(e){var L=E6;e=g.ig(e,function(c){return!s7c(L,c.I8.xW)}); L.X.push.apply(L.X,g.V(e))}; bAH=function(e){var L=[];g.KZ(e,function(c){jW(E6.X,function(I){return I.I8.xW===c.I8.xW&&I.h_===c.h_})||(E6.X.push(c),L.push(c))})}; K0=function(){this.X=this.K=null}; iA$=function(e,L){function c(I,B){L(I,B)} if(e.K==null)return!1;e.X=g.vU(e.K,function(I){return I!=null&&I.HS()}); e.X&&(e.X.init(c)?hN6(e.X.X):L(e.X.X.g8(),e.X));return e.X!=null}; Y6=function(e){e=GJM(e);KW.call(this,e.length?e[e.length-1]:new dj(wF,0));this.Z=e;this.K=null}; GJM=function(e){if(!e.length)return[];e=(0,g.ig)(e,function(c){return c!=null&&c.gf()}); for(var L=1;Lc.time?L:c},e[0])}; c9=function(e){e=e===void 0?wF:e;KW.call(this,new dj(e,2))}; Ij=function(){var e=wtc();dj.call(this,wF.top,e,"geo")}; wtc=function(){cO();var e=HO();return e.Z||e.K?0:2}; JaJ=function(){}; B9=function(){this.done=!1;this.X={qh:0,iP:0,Tad:0,zQ:0,TM:-1,Kg:0,pg:0,ZZ:0,rmw:0};this.B=null;this.j=!1;this.Z=null;this.T=0;this.K=new Qy(this)}; oj=function(){var e=xM;e.j||(e.j=!0,Vrf(e,function(){return e.G.apply(e,g.V(g.HM.apply(0,arguments)))}),e.G())}; C6v=function(){vA(JaJ);var e=vA(K0);e.X!=null&&e.X.X?hN6(e.X.X):HO().update(wF)}; SO=function(e,L,c){if(!e.done&&(e.K.cancel(),L.length!=0)){e.Z=null;try{C6v();var I=Jp();cO().B=I;if(vA(K0).X!=null)for(var B=0;B=0?Jp()-Vy:-1,h=Jp();B.X.TM==-1&&(S=h);var R=HO(),u=cO(),t=kL(u.II),O=Xc();try{if(O.length>0){var q=R.X;q&&(t.bs=[yD(q),q.getHeight()]);var T=R.B;T&&(t.ps=[T.width,T.height]);wF.screen&&(t.scs=[wF.screen.width,wF.screen.height])}else t.url=encodeURIComponent(wF.location.href.substring(0,512)),x.referrer&&(t.referrer=encodeURIComponent(x.referrer.substring(0,512))); t.tt=S;t.pt=Vy;t.bin=u.K;wF.google_osd_load_pub_page_exp!==void 0&&(t.olpp=wF.google_osd_load_pub_page_exp);t.deb=[1,B.X.qh,B.X.iP,B.X.zQ,B.X.TM,0,B.K.K,B.X.Kg,B.X.pg,B.X.ZZ,B.X.rmw,-1].join(";");t.tvt=Nen(B,h);R.K&&(t.inapp=1);if(wF!==null&&wF!=wF.top){O.length>0&&(t.iframe_loc=encodeURIComponent(wF.location.href.substring(0,512)));var W=R.T;t.is=[yD(W),W.getHeight()]}}catch(A){t.error=1}xM.Z=t}q=g.MQ(xM.Z);T=cO().X;gu(T.Z,"prf")==1?(W=new eW,B=T.X,x=0,B.X>-1&&(x=B.Z.X.now()-B.X),W=re(W,1,hT(B.G+ x),0),B=T.X,W=re(W,5,OX(B.X>-1?B.K+1:B.K),0),W=re(W,2,AT(T.K.X.Z()),"0"),W=re(W,3,AT(T.K.X.K()),"0"),T=re(W,4,AT(T.K.X.X()),"0"),W={},T=(W.pf=g.GM(T.Z()),W)):T={};g.so(q,T);g.so(L,I,c,q,e())}])}; ZAx=function(){var e=yar||wF;if(!e)return"";var L=[];if(!e.location||!e.location.href)return"";L.push("url="+encodeURIComponent(e.location.href.substring(0,512)));e.document&&e.document.referrer&&L.push("referrer="+encodeURIComponent(e.document.referrer.substring(0,512)));return L.join("&")}; rQ=function(){var e="youtube.player.web_20250708_14_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250708_14_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250708_14_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250708_14_RC00".match(/_(\d{8})_\d+_RC\d+$/),L;if(((L=e)==null?void 0:L.length)==2)return e[1];e="youtube.player.web_20250708_14_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var c;return((c=e)==null?void 0:c.length)==3?"20"+e[1]+e[2]:null}; ptn=function(){return"av.default_js".includes("ima_html5_sdk")?{FI:"ima",AO:null}:"av.default_js".includes("ima_native_sdk")?{FI:"nima",AO:null}:"av.default_js".includes("admob-native-video-javascript")?{FI:"an",AO:null}:"youtube.player.web_20250708_14_RC00".includes("cast_js_sdk")?{FI:"cast",AO:rQ()}:"youtube.player.web_20250708_14_RC00".includes("youtube.player.web")?{FI:"yw",AO:rQ()}:"youtube.player.web_20250708_14_RC00".includes("outstream_web_client")?{FI:"out",AO:rQ()}:"youtube.player.web_20250708_14_RC00".includes("drx_rewarded_web")? {FI:"r",AO:rQ()}:"youtube.player.web_20250708_14_RC00".includes("gam_native_web_video")?{FI:"n",AO:rQ()}:"youtube.player.web_20250708_14_RC00".includes("admob_interstitial_video")?{FI:"int",AO:rQ()}:{FI:"j",AO:null}}; um=function(e,L){var c={sv:"967"};hv!==null&&(c.v=hv);c.cb=$4M;c.nas=E6.X.length;c.msg=e;L!==void 0&&(e=j7r(L))&&(c.e=Rj[e]);return c}; tv=function(e){return wu(e,"custom_metric_viewable")}; j7r=function(e){var L=tv(e)?"custom_metric_viewable":e.toLowerCase();return Oo(lg,function(c){return c==L})}; HA6=function(){this.X=void 0;this.K=!1;this.Z=0;this.G=-1;this.B="tos"}; Q7n=function(e){try{var L=e.split(",");return L.length>g.Rs(l2r).length?null:sd(L,function(c,I){I=I.toLowerCase().split("=");if(I.length!=2||P6f[I[0]]===void 0||!P6f[I[0]](I[1]))throw Error("Entry ("+I[0]+", "+I[1]+") is invalid.");c[I[0]]=I[1];return c},{})}catch(c){return null}}; d4x=function(e,L){if(e.X==void 0)return 0;switch(e.B){case "mtos":return e.K?rq(L.X,e.X):rq(L.K,e.X);case "tos":return e.K?Sz(L.X,e.X):Sz(L.K,e.X)}return 0}; OB=function(e,L,c,I){VS.call(this,L,I);this.T=e;this.J=c}; qz=function(){}; TQ=function(e){VS.call(this,"fully_viewable_audible_half_duration_impression",e)}; W9=function(e){this.X=e}; Mz=function(e,L){VS.call(this,e,L)}; zQ=function(e){C0.call(this,"measurable_impression",e)}; sB=function(){W9.apply(this,arguments)}; v9=function(e,L,c){m8.call(this,e,L,c)}; fS=function(e){e=e===void 0?wF:e;KW.call(this,new dj(e,2))}; Av=function(e,L,c){m8.call(this,e,L,c)}; Fy=function(e){e=e===void 0?wF:e;KW.call(this,new dj(e,2))}; bm=function(){dj.call(this,wF,2,"mraid");this.ye=0;this.h7=this.Gm=!1;this.T=null;this.K=chJ(this.Z);this.G.X=new mR(0,0,0,0);this.Y9=!1}; im=function(e,L,c){e.Cq("addEventListener",L,c)}; K3v=function(e){cO().G=!!e.Cq("isViewable");im(e,"viewableChange",U4n);e.Cq("getState")==="loading"?im(e,"ready",EsM):Xtv(e)}; Xtv=function(e){typeof e.K.xV.AFMA_LIDAR==="string"?(e.Gm=!0,Yrc(e)):(e.K.compatibility=3,e.T="nc",e.fail("w"))}; Yrc=function(e){e.h7=!1;var L=gu(cO().II,"rmmt")==1,c=!!e.Cq("isViewable");(L?!c:1)&&Ah().setTimeout(Dn(524,function(){e.h7||(nsc(e),wj(540,Error()),e.T="mt",e.fail("w"))}),500); elr(e);im(e,e.K.xV.AFMA_LIDAR,LLn)}; elr=function(e){var L=gu(cO().II,"sneio")==1,c=e.K.xV.AFMA_LIDAR_EXP_1!==void 0,I=e.K.xV.AFMA_LIDAR_EXP_2!==void 0;(L=L&&I)&&(e.K.xV.AFMA_LIDAR_EXP_2=!0);c&&(e.K.xV.AFMA_LIDAR_EXP_1=!L)}; nsc=function(e){e.Cq("removeEventListener",e.K.xV.AFMA_LIDAR,LLn);e.Gm=!1}; cYM=function(e,L){if(e.Cq("getState")==="loading")return new g.dz(-1,-1);L=e.Cq(L);if(!L)return new g.dz(-1,-1);e=parseInt(L.width,10);L=parseInt(L.height,10);return isNaN(e)||isNaN(L)?new g.dz(-1,-1):new g.dz(e,L)}; EsM=function(){try{var e=vA(bm);e.Cq("removeEventListener","ready",EsM);Xtv(e)}catch(L){wj(541,L)}}; LLn=function(e,L){try{var c=vA(bm);c.h7=!0;var I=e?new mR(e.y,e.x+e.width,e.y+e.height,e.x):new mR(0,0,0,0);var B=Jp(),x=PO();var S=new m_(B,x,c);S.X=I;S.volume=L;c.P3(S)}catch(h){wj(542,h)}}; U4n=function(e){var L=cO(),c=vA(bm);e&&!L.G&&(L.G=!0,c.Y9=!0,c.T&&c.fail("w",!0))}; GQ=function(){this.isInitialized=!1;this.X=this.K=null;var e={};this.T=(e.start=this.FT,e.firstquartile=this.Mt,e.midpoint=this.CH,e.thirdquartile=this.J2,e.complete=this.t2,e.error=this.wx,e.pause=this.Tg,e.resume=this.Mi,e.skip=this.gx,e.viewable_impression=this.Ew,e.mute=this.lj,e.unmute=this.lj,e.fullscreen=this.PC,e.exitfullscreen=this.oE,e.fully_viewable_audible_half_duration_impression=this.Ew,e.measurable_impression=this.Ew,e.abandon=this.Tg,e.engagedview=this.Ew,e.impression=this.Ew,e.creativeview= this.Ew,e.progress=this.lj,e.custom_metric_viewable=this.Ew,e.bufferstart=this.Tg,e.bufferfinish=this.Mi,e.audio_measurable=this.Ew,e.audio_audible=this.Ew,e);e={};this.J=(e.overlay_resize=this.Od,e.abandon=this.ZK,e.close=this.ZK,e.collapse=this.ZK,e.overlay_unmeasurable_impression=function(L){return Ps(L,"overlay_unmeasurable_impression",PO())},e.overlay_viewable_immediate_impression=function(L){return Ps(L,"overlay_viewable_immediate_impression",PO())},e.overlay_unviewable_impression=function(L){return Ps(L, "overlay_unviewable_impression",PO())},e.overlay_viewable_end_of_session_impression=function(L){return Ps(L,"overlay_viewable_end_of_session_impression",PO())},e); cO().K=3;Iic(this);this.Z=null}; gQ=function(e,L,c,I){e=e.V1(null,I,!0,L);e.G=c;F3c([e]);return e}; BDr=function(e,L,c){JJR(L);var I=e.X;g.KZ(L,function(B){var x=g.Mt(B.criteria,function(S){var h=Q7n(S);if(h==null)S=null;else if(S=new HA6,h.visible!=null&&(S.X=h.visible/100),h.audible!=null&&(S.K=h.audible==1),h.time!=null){var R=h.timetype=="mtos"?"mtos":"tos",u=jHJ(h.time,"%")?"%":"ms";h=parseInt(h.time,10);u=="%"&&(h/=100);S.setTime(h,u,R)}return S}); jW(x,function(S){return S==null})||ej$(c,new OB(B.id,B.event,x,I))})}; xTc=function(){var e=[],L=cO();e.push(vA(Ij));gu(L.II,"mvp_lv")&&e.push(vA(bm));L=[new fS,new Fy];L.push(new Y6(e));L.push(new c9(wF));return L}; oOn=function(e){if(!e.isInitialized){e.isInitialized=!0;try{var L=Jp(),c=cO(),I=HO();Vy=L;c.Z=79463069;e.K!=="o"&&(yar=xQ$(wF));if(WOT()){xM.X.iP=0;xM.X.TM=Jp()-L;var B=xTc(),x=vA(K0);x.K=B;iA$(x,function(){kM()})?xM.done||(a2n(),UO(x.X.X,e),oj()):I.Z?kM():oj()}else aj=!0}catch(S){throw E6.reset(),S; }}}; mV=function(e){xM.K.cancel();Nz=e;xM.done=!0}; yZ=function(e){if(e.K)return e.K;var L=vA(K0).X;if(L)switch(L.getName()){case "nis":e.K="n";break;case "gsv":e.K="m"}e.K||(e.K="h");return e.K}; ZH=function(e,L,c){if(e.X==null)return L.Nf|=4,!1;e=SDf(e.X,c,L);L.Nf|=e;return e==0}; kM=function(){var e=[new c9(wF)],L=vA(K0);L.K=e;iA$(L,function(){mV("i")})?xM.done||(a2n(),oj()):mV("i")}; rYc=function(e,L){if(!e.Kf){var c=Ps(e,"start",PO());c=e.yG.X(c).X;var I={id:"lidarv"};I.r=L;I.sv="967";hv!==null&&(I.v=hv);tp(c,function(B,x){return I[B]=B=="mtos"||B=="tos"?x:encodeURIComponent(x)}); L=ZAx();tp(L,function(B,x){return I[B]=encodeURIComponent(x)}); L="//pagead2.googlesyndication.com/pagead/gen_204?"+ez(nW(new YW,I));vQH(L);e.Kf=!0}}; pS=function(e,L,c){SO(xM,[e],!PO());Bef(e,c);c!=4&&I2M(e.Gm,c,e.Df);return Ps(e,L,PO())}; Iic=function(e){m4M(function(){var L=hlJ();e.K!=null&&(L.sdk=e.K);var c=vA(K0);c.X!=null&&(L.avms=c.X.getName());return L})}; RlJ=function(e,L,c,I){var B=s7c(E6,c);B!==null&&B.h_!==L&&(e.VP(B),B=null);B||(L=e.V1(c,Jp(),!1,L),E6.K.length==0&&(cO().Z=79463069),bAH([L]),B=L,B.G=yZ(e),I&&(B.m$=I));return B}; uir=function(e,L){var c=e[L];c!==void 0&&c>0&&(e[L]=Math.floor(c*1E3))}; hlJ=function(){var e=HO(),L={},c={},I={};return Object.assign({},(L.sv="967",L),hv!==null&&(c.v=hv,c),(I["if"]=e.Z?"1":"0",I.nas=String(E6.X.length),I))}; $M=function(e){VS.call(this,"audio_audible",e)}; jO=function(e){C0.call(this,"audio_measurable",e)}; H9=function(){W9.apply(this,arguments)}; lm=function(){}; tNr=function(e){this.X=e}; SDf=function(e,L,c){e=e.K();if(typeof e==="function"){var I={};var B={};I=Object.assign({},hv!==null&&(I.v=hv,I),(B.sv="967",B.cb=$4M,B.e=OK6(L),B));B=Ps(c,L,PO());g.so(I,B);c.Wf[L]=B;I=c.i9()==2?sQT(I).join("&"):c.yG.X(I).X;try{return e(c.h_,I,L),0}catch(x){return 2}}else return 1}; OK6=function(e){var L=tv(e)?"custom_metric_viewable":e;e=Oo(lg,function(c){return c==L}); return Rj[e]}; P9=function(){GQ.call(this);this.j=null;this.B=!1;this.G="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; qDf=function(e,L,c){c=c.opt_configurable_tracking_events;e.X!=null&&Array.isArray(c)&&BDr(e,c,L)}; TDR=function(e,L,c){var I=U6(E6,L);I||(I=c.opt_nativeTime||-1,I=gQ(e,L,yZ(e),I),c.opt_osdId&&(I.m$=c.opt_osdId));return I}; WLc=function(e,L,c){var I=U6(E6,L);I||(I=gQ(e,L,"n",c.opt_nativeTime||-1));return I}; MNM=function(e,L){var c=U6(E6,L);c||(c=gQ(e,L,"h",-1));return c}; zlc=function(e){cO();switch(yZ(e)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; fin=function(e,L,c,I){c=c===void 0?{}:c;var B={};g.so(B,{opt_adElement:void 0,opt_fullscreen:void 0},c);var x=e.GD(L,c);c=x?x.yG:e.Px();if(B.opt_bounds)return c.X(um("ol",I));if(I!==void 0)if(j7r(I)!==void 0)if(aj)e=um("ue",I);else if(oOn(e),Nz=="i")e=um("i",I),e["if"]=0;else if(L=e.GD(L,B)){b:{Nz=="i"&&(L.AI=!0);x=B.opt_fullscreen;x!==void 0&&s6(L,!!x);var S;if(x=!HO().K)(x=Ce(g.yc(),"CrKey")&&!(Ce(g.yc(),"CrKey")&&Ce(g.yc(),"SmartSpeaker"))||Ce(g.yc(),"PlayStation")||Ce(g.yc(),"Roku")||x6$()||Ce(g.yc(), "Xbox"))||(x=g.yc(),x=Ce(x,"AppleTV")||Ce(x,"Apple TV")||Ce(x,"CFNetwork")||Ce(x,"tvOS")),x||(x=g.yc(),x=Ce(x,"sdk_google_atv_x86")||Ce(x,"Android TV")),x=!x;x&&(Ah(),x=xT(lT)===0);if(S=x){switch(L.i9()){case 1:rYc(L,"pv");break;case 2:e.nk(L)}mV("pv")}x=I.toLowerCase();if(S=!S)S=gu(cO().II,"ssmol")&&x==="loaded"?!1:g.Fh(sJx,x);if(S&&L.OE==0){Nz!="i"&&(xM.done=!1);S=B!==void 0?B.opt_nativeTime:void 0;N3=S=typeof S==="number"?S:Jp();L.SS=!0;var h=PO();L.OE=1;L.WU={};L.WU.start=!1;L.WU.firstquartile= !1;L.WU.midpoint=!1;L.WU.thirdquartile=!1;L.WU.complete=!1;L.WU.resume=!1;L.WU.pause=!1;L.WU.skip=!1;L.WU.mute=!1;L.WU.unmute=!1;L.WU.viewable_impression=!1;L.WU.measurable_impression=!1;L.WU.fully_viewable_audible_half_duration_impression=!1;L.WU.fullscreen=!1;L.WU.exitfullscreen=!1;L.vx=0;h||(L.oh().J=S);SO(xM,[L],!h)}(S=L.P4[x])&&gq(L.Sk,S);gu(cO().II,"fmd")||g.Fh(vOn,x)&&L.Na&&L.Na.K(L,null);switch(L.i9()){case 1:var R=tv(x)?e.T.custom_metric_viewable:e.T[x];break;case 2:R=e.J[x]}if(R&&(I=R.call(e, L,B,I),gu(cO().II,"fmd")&&g.Fh(vOn,x)&&L.Na&&L.Na.K(L,null),I!==void 0)){B=um(void 0,x);g.so(B,I);I=B;break b}I=void 0}L.OE==3&&e.VP(L);e=I}else e=um("nf",I);else e=void 0;else aj?e=um("ue"):x?(e=um(),g.so(e,osJ(x,!0,!1,!1))):e=um("nf");return typeof e==="string"?c.X():c.X(e)}; AYn=function(e,L){L&&(e.G=L)}; FLv=function(e){var L={};return L.viewability=e.X,L.googleViewability=e.K,L}; bKM=function(e,L,c){c=c===void 0?{}:c;e=fin(vA(P9),L,c,e);return FLv(e)}; QZ=function(e){var L=g.HM.apply(1,arguments).filter(Boolean).join("&");if(!L)return e;var c=e.match(/[?&]adurl=/);return c?e.slice(0,c.index+1)+L+"&"+e.slice(c.index+1):e+(e.indexOf("?")<0?"?":"&")+L}; dQ=function(e,L){return L?"&"+e+"="+encodeURIComponent(L):""}; iKv=function(e){var L=e.url;e=e.ro_;this.K=L;this.G=e;this.Z=(new Date).getTime()-17040672E5;this.X={};for(var c=/[?&]([^&=]+)=([^&]*)/g;e=c.exec(L);)this.X[e[1]]=e[2]}; Gmr=function(e){e=e.G;if(!e)return"";var L=dQ("uap",e.platform)+dQ("uapv",e.platformVersion)+dQ("uafv",e.uaFullVersion)+dQ("uaa",e.architecture)+dQ("uam",e.model)+dQ("uab",e.bitness);e.fullVersionList&&(L+="&uafvl="+encodeURIComponent(e.fullVersionList.map(function(c){return encodeURIComponent(c.brand)+";"+encodeURIComponent(c.version)}).join("|"))); e.wow64!=null&&(L+="&uaw="+Number(e.wow64));return L.slice(1)}; DTn=function(e,L,c,I,B){var x=window;var S=S===void 0?!1:S;var h;c?h=(S===void 0?0:S)?"//ep1.adtrafficquality.google/bg/"+J0(c)+".js":"//pagead2.googlesyndication.com/bg/"+J0(c)+".js":h="";S=S===void 0?!1:S;c=x.document;var R={};L&&(R._scs_=L);R._bgu_=h;R._bgp_=I;R._li_="v_h.3.0.0.0";B&&(R._upb_=B);(L=x.GoogleTyFxhY)&&typeof L.push=="function"||(L=x.GoogleTyFxhY=[]);L.push(R);L=IF(c).createElement("SCRIPT");L.type="text/javascript";L.async=!0;e=(S===void 0?0:S)?JwM(gOH,J0(e)+".js"):JwM(kmr,J0(e)+ ".js");g.fo(L,e);(x=(x.GoogleTyFxhYEET||{})[L.src])?x():c.getElementsByTagName("head")[0].appendChild(L)}; wdR=function(){try{var e,L;return!!((e=window)==null?0:(L=e.top)==null?0:L.location.href)&&!1}catch(c){return!0}}; UB=function(e,L,c){c=c===void 0?Error():c;var I=Error.call(this);this.message=I.message;"stack"in I&&(this.stack=I.stack);this.code=e;L+=":";c instanceof Error?(this.message=L+c.message,this.stack=c.stack||""):(this.message=L+String(c),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)}; Xy=function(){var e=JYc();e=e===void 0?"bevasrsg":e;return new Promise(function(L){var c=window===window.top?window:wdR()?window:window.top,I=c[e],B;((B=I)==null?0:B.bevasrs)?L(new EB(I.bevasrs)):(I||(I={},I=(I.nqfbel=[],I),c[e]=I),I.nqfbel.push(function(x){L(new EB(x))}))})}; VNM=function(e){var L={c:e.JO,e:e.fT,mc:e.dG,me:e.lx};e.xt&&(L.co={c:e.xt.EQ,a:e.xt.hZ,s:e.xt.RX});return L}; KS=function(e){g.p.call(this);this.wpc=e}; EB=function(e){g.p.call(this);var L=this;this.zk=e;this.Z="keydown keypress keyup input focusin focusout select copy cut paste change click dblclick auxclick pointerover pointerdown pointerup pointermove pointerout dragenter dragleave drag dragend mouseover mousedown mouseup mousemove mouseout touchstart touchend touchmove wheel".split(" ");this.K=void 0;this.NJ=this.zk.p;this.G=this.zi.bind(this);this.addOnDisposeCallback(function(){return void Ckn(L)})}; aiT=function(e){var L;return g.Z(function(c){if(c.K==1){if(!e.zk.wpc)throw new UB(30,"NWA");return e.X?c.return(e.X):g.a(c,e.zk.wpc(),2)}L=c.X;e.X=new KS(L);return c.return(e.X)})}; Ckn=function(e){e.K!==void 0&&(e.Z.forEach(function(L){var c;(c=e.K)==null||c.removeEventListener(L,e.G)}),e.K=void 0)}; NDf=function(e){var L=L===void 0?49:L;var c=[];sr(e,YM,6).forEach(function(I){ge(I,2)<=L&&c.push(ge(I,1))}); return c}; mTH=function(e){var L=L===void 0?49:L;var c=[];sr(e,YM,6).forEach(function(I){ge(I,2)>L&&c.push(ge(I,1))}); return c}; yYR=function(e){e.then(function(){},function(){})}; nS=function(){g.p.apply(this,arguments);this.K=1;this[ZKM]=this.dispose}; ey=function(e){return{fieldType:2,fieldName:e}}; g.LM=function(e){return{fieldType:3,fieldName:e}}; pd$=function(e){this.X=e;e.JH("/client_streamz/bg/frs",g.LM("mk"))}; $Tc=function(e){this.X=e;e.JH("/client_streamz/bg/wrl",g.LM("mn"),ey("ac"),ey("sc"),g.LM("rk"),g.LM("mk"))}; jJM=function(e){this.X=e;e.Io("/client_streamz/bg/ec",g.LM("en"),g.LM("mk"))}; HKJ=function(e){this.X=e;e.JH("/client_streamz/bg/el",g.LM("en"),g.LM("mk"))}; liM=function(e){this.X=e;e.Io("/client_streamz/bg/cec",ey("ec"),g.LM("mk"))}; PkH=function(e){this.X=e;e.Io("/client_streamz/bg/po/csc",ey("cs"),g.LM("mk"))}; QJ$=function(e){this.X=e;e.Io("/client_streamz/bg/po/ctav",g.LM("av"),g.LM("mk"))}; dTn=function(e){this.X=e;e.Io("/client_streamz/bg/po/cwsc",g.LM("su"),g.LM("mk"))}; UT$=function(e){this.XF=Hy(e)}; EOx=function(e,L){return D9$(e,L,e7c)}; ck=function(e){this.XF=Hy(e)}; Im=function(e){this.XF=Hy(e)}; Bk=function(e){this.XF=Hy(e)}; x7=function(e){this.XF=Hy(e)}; om=function(e){this.XF=Hy(e)}; Sy=function(e){this.XF=Hy(e)}; Xdn=function(e){this.XF=Hy(e)}; nOT=function(e){var L=new Sy;L=a7(L,1,e.K);var c=KLM(e);L=D9$(L,c,t5M);c=[];for(var I=[],B=g.f(e.X.keys()),x=B.next();!x.done;x=B.next())I.push(x.value.split(","));for(B=0;B>>31)&4294967295;O=B[0];var W=B[1],A=B[2],b=B[3],J=B[4];for(T=0;T<80;T++){if(T<40)if(T<20){var w=b^W&(A^b);var C=1518500249}else w=W^A^b,C=1859775393;else T<60?(w=W&A|b&(W|A),C=2400959708):(w=W^A^b,C=3395469782);w=((O<<5|O>>>27)&4294967295)+w+J+C+q[T]&4294967295;J=b;b=A;A=(W<<30|W>>>2)&4294967295;W=O;O=w}B[0]=B[0]+O&4294967295;B[1]=B[1]+W&4294967295;B[2]= B[2]+A&4294967295;B[3]=B[3]+b&4294967295;B[4]=B[4]+J&4294967295} function c(O,q){if(typeof O==="string"){O=unescape(encodeURIComponent(O));for(var T=[],W=0,A=O.length;W=56;T--)x[T]=q&255,q>>>=8;L(x);for(T=q=0;T<5;T++)for(var W=24;W>=0;W-=8)O[q++]=B[T]>>W&255;return O} for(var B=[],x=[],S=[],h=[128],R=1;R<64;++R)h[R]=0;var u,t;e();return{reset:e,update:c,digest:I,Wb:function(){for(var O=I(),q="",T=0;T1)));S=S.next)B||(x=S);B&&(c.X==0&&I==1?EWM(c,L):(x?(I=x,I.next==c.G&&(c.G=I),I.next=I.next.next):XOc(c),K_n(c,B,3,L)))}e.Z=null}else bq(e,3,L)}; DS=function(e,L){e.K||e.X!=2&&e.X!=3||YOn(e);e.G?e.G.next=L:e.K=L;e.G=L}; nWn=function(e,L,c,I){var B=G4(null,null,null);B.X=new g.iq(function(x,S){B.Z=L?function(h){try{var R=L.call(I,h);x(R)}catch(u){S(u)}}:x; B.K=c?function(h){try{var R=c.call(I,h);R===void 0&&h instanceof Ji?S(h):x(R)}catch(u){S(u)}}:S}); B.X.Z=e;DS(e,B);return B.X}; bq=function(e,L,c){e.X==0&&(e===c&&(L=3,c=new TypeError("Promise cannot resolve to itself")),e.X=1,PTn(c,e.tkY,e.wRw,e)||(e.T=c,e.X=L,e.Z=null,YOn(e),L!=3||c instanceof Ji||e0H(e,c)))}; PTn=function(e,L,c,I){if(e instanceof g.iq)return U36(e,L,c,I),!0;if(e)try{var B=!!e.$goog_Thenable}catch(S){B=!1}else B=!1;if(B)return e.then(L,c,I),!0;if(g.Se(e))try{var x=e.then;if(typeof x==="function")return L8n(e,x,L,c,I),!0}catch(S){return c.call(I,S),!0}return!1}; L8n=function(e,L,c,I,B){function x(R){h||(h=!0,I.call(B,R))} function S(R){h||(h=!0,c.call(B,R))} var h=!1;try{L.call(e,S,x)}catch(R){x(R)}}; YOn=function(e){e.j||(e.j=!0,g.F2(e.Xl,e))}; XOc=function(e){var L=null;e.K&&(L=e.K,e.K=L.next,L.next=null);e.K||(e.G=null);return L}; K_n=function(e,L,c,I){if(c==3&&L.K&&!L.G)for(;e&&e.B;e=e.Z)e.B=!1;if(L.X)L.X.Z=null,cyM(L,c,I);else try{L.G?L.Z.call(L.context):cyM(L,c,I)}catch(B){Ilr.call(null,B)}m3$(ln6,L)}; cyM=function(e,L,c){L==2?e.Z.call(e.context,c):e.K&&e.K.call(e.context,c)}; e0H=function(e,L){e.B=!0;g.F2(function(){e.B&&Ilr.call(null,L)})}; Ji=function(e){WU.call(this,e)}; g.VH=function(e,L){g.hi.call(this);this.Lp=e||1;this.U4=L||g.LZ;this.B0=(0,g.RL)(this.Ulq,this);this.ph=g.O9()}; g.Cc=function(e,L,c){if(typeof e==="function")c&&(e=(0,g.RL)(e,c));else if(e&&typeof e.handleEvent=="function")e=(0,g.RL)(e.handleEvent,e);else throw Error("Invalid listener argument");return Number(L)>2147483647?-1:g.LZ.setTimeout(e,L||0)}; a$=function(e,L){var c=null;return(new g.iq(function(I,B){c=g.Cc(function(){I(L)},e); c==-1&&B(Error("Failed to schedule timer."))})).XR(function(I){g.LZ.clearTimeout(c); throw I;})}; g.Nq=function(e){g.p.call(this);this.T=e;this.G=0;this.Z=100;this.B=!1;this.K=new Map;this.j=new Set;this.flushInterval=3E4;this.X=new g.VH(this.flushInterval);this.X.listen("tick",this.sZ,!1,this);g.l(this,this.X)}; Bqc=function(e){e.X.enabled||e.X.start();e.G++;e.G>=e.Z&&e.sZ()}; x_H=function(e,L){return e.j.has(L)?void 0:e.K.get(L)}; o6$=function(e){for(var L=0;L2?e.X.statusText:""}catch(c){L=""}e.G=L+" ["+e.getStatus()+"]";MzJ(e)}}finally{jA(e)}}}; jA=function(e,L){if(e.X){e.j&&(clearTimeout(e.j),e.j=null);var c=e.X;e.X=null;L||e.dispatchEvent("ready");try{c.onreadystatechange=null}catch(I){}}}; Po=function(e){var L=e.getStatus();a:switch(L){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var c=!0;break a;default:c=!1}if(!c){if(L=L===0)e=g.rj(String(e.J))[1]||null,!e&&g.LZ.self&&g.LZ.self.location&&(e=g.LZ.self.location.protocol.slice(0,-1)),L=!v6f.test(e?e.toLowerCase():"");c=L}return c}; g.lq=function(e){return e.X?e.X.readyState:0}; g.QH=function(e){try{return e.X?e.X.responseText:""}catch(L){return""}}; g.dT=function(e){try{if(!e.X)return null;if("response"in e.X)return e.X.response;switch(e.k9){case "":case "text":return e.X.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in e.X)return e.X.mozResponseArrayBuffer}return null}catch(L){return null}}; g.flr=function(e){var L={};e=(e.X&&g.lq(e)>=2?e.X.getAllResponseHeaders()||"":"").split("\r\n");for(var c=0;c>1,L),za(e,e.length>>1)]}; cvx=function(e){var L=g.f(LVx(e,sA));e=L.next().value;L=L.next().value;return e.toString(16)+L.toString(16)}; IHJ=function(e,L){var c=LVx(L);e=new Uint32Array(e.buffer);L=e[0];var I=g.f(c);c=I.next().value;I=I.next().value;for(var B=1;B>>8|S<<24,S+=x|0,S^=h+38293,x=x<<3|x>>>29,x^=S,R=R>>>8|R<<24,R+=h|0,R^=u+38293,h=h<<3|h>>>29,h^=R;x=[x,S];e[B]^=x[0];B+1=c?(globalThis.sessionStorage.removeItem(e),["e"]):["a",new Uint8Array(I.buffer,L+4)]}; v0=function(e,L,c){c=c===void 0?[]:c;this.maxItems=e;this.X=L===void 0?0:L;this.K=c}; oMx=function(e){var L=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!L)return new v0(e);var c=L.split(",");if(c.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new v0(e);L=c.slice(1);L.length===1&&L[0]===""&&(L=[]);c=Number(c[0]);return isNaN(c)||c<0||c>L.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new v0(e)):new v0(e,c,L)}; SBn=function(e,L){this.logger=L;try{var c=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(I){c=!1}c&&(this.index=oMx(e))}; rvx=function(e,L,c,I,B){var x=e.index?nc(e.logger,function(){return BQ$(e.index,cvx(L),c,I,B)},"W"):"u"; e.logger.Xf(x)}; hZc=function(e,L,c){var I=g.f(e.index?nc(e.logger,function(){return xzc(cvx(L),c)},"R"):["u"]),B=I.next().value; I=I.next().value;e.logger.xu(B);return I}; tOM=function(e){function L(){c-=I;c-=B;c^=B>>>13;I-=B;I-=c;I^=c<<8;B-=c;B-=I;B^=I>>>13;c-=I;c-=B;c^=B>>>12;I-=B;I-=c;I^=c<<16;B-=c;B-=I;B^=I>>>5;c-=I;c-=B;c^=B>>>3;I-=B;I-=c;I^=c<<10;B-=c;B-=I;B^=I>>>15} e=RZx(e);for(var c=2654435769,I=2654435769,B=314159265,x=e.length,S=x,h=0;S>=12;S-=12,h+=12)c+=fa(e,h),I+=fa(e,h+4),B+=fa(e,h+8),L();B+=x;switch(S){case 11:B+=e[h+10]<<24;case 10:B+=e[h+9]<<16;case 9:B+=e[h+8]<<8;case 8:I+=e[h+7]<<24;case 7:I+=e[h+6]<<16;case 6:I+=e[h+5]<<8;case 5:I+=e[h+4];case 4:c+=e[h+3]<<24;case 3:c+=e[h+2]<<16;case 2:c+=e[h+1]<<8;case 1:c+=e[h+0]}L();return uyM.toString(B)}; RZx=function(e){for(var L=[],c=0;c>7,e.error.code]);I.set(c,4);return I}; wk=function(e,L,c){AU.call(this,e);this.G=L;this.clientState=c;this.X="S";this.K="q"}; DX=function(e){return globalThis.TextEncoder?(new TextEncoder).encode(e):g.iD(e)}; TQT=function(e,L,c){return e instanceof qk?jSM(e,c,L,1):e.zd(c)}; Vi=function(e){g.p.call(this);var L=this;this.Z=new g.rk;this.G=0;this.K=void 0;this.state=2;this.zk=e.zk;this.Bm=e.Bm;this.IY=Object.assign({},WVc,e.IY||{});this.logger=e.zk.xM();var c;this.onError=(c=e.onError)!=null?c:function(){}; this.A6=e.A6||!1;if(MOM(e)){var I=this.zk;this.B=function(){return d_T(I).catch(function(S){S=L.reportError(new UB(L.X?20:32,"TRG:Disposed",S));L.K=S;var h;(h=L.X)==null||h.dispose();L.X=void 0;L.Z.reject(S)})}; U_n(I,function(){return void JU(L)}); I.J===2&&JU(this)}else this.B=e.zJm,JU(this);var B=this.logger.share();B.I1("o");var x=new Kc(B,"o");this.Z.promise.then(function(){x.done();B.GR();B.dispose()},function(){return void B.dispose()}); this.addOnDisposeCallback(function(){L.X?(L.X.dispose(),L.X=void 0):L.K?L.logger.GR():(L.K=L.reportError(new UB(32,"TNP:Disposed")),L.logger.GR(),L.Z.reject(L.K))}); g.l(this,this.logger)}; zZr=function(e,L){if(!(L instanceof UB))if(L instanceof mc){var c=Error(L.toString());c.stack=L.stack;L=new UB(11,"EBH:Error",c)}else L=new UB(12,"BSO:Unknown",L);return e.reportError(L)}; JU=function(e){var L,c,I,B,x,S,h,R,u,t,O,q,T,W,A;return g.Z(function(b){switch(b.K){case 1:L=void 0;e.G++;c=new g.rk;e.zk instanceof Ta&&e.zk.G.push(c.promise);if(!e.A6){b.Iq(2);break}I=new g.rk;setTimeout(function(){return void I.resolve()}); return g.a(b,I.promise,2);case 2:return B=e.logger.share(),g.bn(b,4,5),e.state=5,x={},S=[],g.a(b,Mk(e.zk.snapshot({JO:x,Ms:S}),e.IY.SFY,function(){return Promise.reject(new UB(15,"MDA:Timeout"))}),7); case 7:h=b.X;if(e.We())throw new UB(e.X?20:32,"MDA:Disposed");R=S[0];e.state=6;return g.a(b,Mk(TQT(e.Bm,B,h),e.IY.GL,function(){return Promise.reject(new UB(10,"BWB:Timeout"))}),8); case 8:u=b.X;if(e.We())throw new UB(e.X?20:32,"BWB:Disposed");e.state=7;L=nc(B,function(){var w=sjf(e,u,c,R);w.Z.promise.then(function(){return void e.B()}); return w},"i"); case 5:g.NM(b);B.dispose();g.mf(b,6);break;case 4:t=g.wc(b);(O=L)==null||O.dispose();if(!e.K){q=zZr(e,t);c.resolve();var J;if(J=e.zk instanceof Ta&&e.G<2)a:if(t instanceof UB)J=t.code!==32&&t.code!==20&&t.code!==10;else{if(t instanceof mc)switch(t.code){case 2:case 13:case 14:case 4:break;default:J=!1;break a}J=!0}if(J)return T=(1+Math.random()*.25)*(e.X?6E4:1E3),W=setTimeout(function(){return void e.B()},T),e.addOnDisposeCallback(function(){return void clearTimeout(W)}),b.return(); e.K=q}B.C6(e.X?13:14);e.Z.reject(e.K);return b.return();case 6:e.state=8,e.G=0,(A=e.X)==null||A.dispose(),e.X=L,e.Z.resolve(),g.AJ(b)}})}; sjf=function(e,L,c,I){var B=ks(L,2)*1E3;if(B<=0)throw new UB(31,"TTM:Invalid");if(D2(L,4))return new gk(e.logger,D2(L,4),B);if(!ks(L,3))return new Ga(e.logger,an(Sr(L,1)),B);if(!I)throw new UB(4,"PMD:Undefined");I=I(an(Sr(L,1)));if(!(I instanceof Function))throw new UB(16,"APF:Failed");e.j=Math.floor((Date.now()+B)/1E3);e=new ir(e.logger,I,ks(L,3),B);e.addOnDisposeCallback(function(){return void c.resolve()}); return e}; vMf=function(e,L){L=L instanceof UB?L:new UB(5,"TVD:error",L);return e.reportError(L)}; iSJ=function(e,L,c){try{if(e.We())throw new UB(21,"BNT:disposed");if(!e.X&&e.K)throw e.K;var I,B;return(B=(I=fHc(e,L,c))!=null?I:Avr(e,L,c))!=null?B:FVv(e,L,c)}catch(x){if(!L.lx)throw vMf(e,x);return bSf(e,c,x)}}; fHc=function(e,L,c){var I;return(I=e.X)==null?void 0:br(I,function(){return Ca(e,L)},c,function(B){var x; if(e.X instanceof ir&&((x=L.xt)==null?0:x.RX))try{var S;(S=e.cache)==null||rvx(S,Ca(e,L),B,L.xt.EQ,e.j-120)}catch(h){e.reportError(new UB(24,"ELX:write",h))}})}; Avr=function(e,L,c){var I;if((I=L.xt)!=null&&I.hZ)try{var B,x=(B=e.cache)==null?void 0:hZc(B,Ca(e,L),L.xt.EQ);return x?c?nc(e.logger,function(){return g.GM(x,2)},"a"):x:void 0}catch(S){e.reportError(new UB(23,"RXO:read",S))}}; FVv=function(e,L,c){var I={stack:[],error:void 0,hasError:!1};try{if(!L.dG)throw new UB(29,"SDF:notready");return br(zTr(I,new wk(e.logger,0,e.state)),function(){return Ca(e,L)},c)}catch(B){I.error=B,I.hasError=!0}finally{sHx(I)}}; bSf=function(e,L,c){var I={stack:[],error:void 0,hasError:!1};try{var B=vMf(e,c);return br(zTr(I,new kd(e.logger,B)),function(){return[]},L)}catch(x){I.error=x,I.hasError=!0}finally{sHx(I)}}; Ca=function(e,L){return L.fT?L.fT:L.JO?nc(e.logger,function(){return L.fT=DX(L.JO)},"c"):[]}; ad=function(){var e=0,L;return function(c){L||(L=new e1);var I=new wk(L,e,1),B=br(I,function(){return DX(c)},!0); I.dispose();e++;return B}}; Nk=function(e){this.XF=Hy(e)}; GQc=function(e,L,c){this.c6=e;this.JN=L;this.metadata=c}; ma=function(e,L){L=L===void 0?{}:L;this.KF_=e;this.metadata=L;this.status=null}; yi=function(e,L,c,I,B){this.name=e;this.methodType="unary";this.requestType=L;this.responseType=c;this.X=I;this.K=B}; ZX=function(e){this.XF=Hy(e)}; pa=function(e){this.XF=Hy(e)}; $d=function(e){this.XF=Hy(e)}; j1=function(e,L){this.T=e.sql;this.J=L;this.X=e.xhr;this.Z=[];this.B=[];this.j=[];this.G=[];this.K=[];this.T&&gMn(this)}; JvM=function(e,L){var c=new kQ$;g.KM(e.X,"complete",function(){if(Po(e.X)){var I=g.QH(e.X);if(L&&e.X.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");I=atob(I)}try{var B=e.J(I)}catch(h){H0(e,lr(new mc(13,"Error when deserializing response data; error: "+h+(", response: "+I)),c));return}I=S6v(e.X.getStatus());P0(e,Qi(e));I==0?DzR(e,B):H0(e,lr(new mc(I,"Xhr succeeded but the status code is not 200"),c))}else{I=g.QH(e.X);B=Qi(e);if(I){var x=w9r(e, I);I=x.code;var S=x.details;x=x.metadata}else I=2,S="Rpc failed due to xhr error. uri: "+String(e.X.J)+", error code: "+e.X.K+", error: "+e.X.getLastError(),x=B;P0(e,B);H0(e,lr(new mc(I,S,x),c))}})}; gMn=function(e){e.T.EP("data",function(L){if("1"in L){var c=L["1"];try{var I=e.J(c)}catch(B){H0(e,new mc(13,"Error when deserializing response data; error: "+B+(", response: "+c)))}I&&DzR(e,I)}if("2"in L)for(L=w9r(e,L["2"]),c=0;c-1&&e.splice(L,1)}; DzR=function(e,L){for(var c=0;c>4&15).toString(16)+(e&15).toString(16)}; BT=function(e,L){this.K=this.X=null;this.Z=e||null;this.G=!!L}; rG=function(e){e.X||(e.X=new Map,e.K=0,e.Z&&tp(e.Z,function(L,c){e.add(wz(L),c)}))}; $zn=function(e,L){rG(e);L=hS(e,L);return e.X.has(L)}; g.jjn=function(e,L,c){e.remove(L);c.length>0&&(e.Z=null,e.X.set(hS(e,L),g.VM(c)),e.K=e.K+c.length)}; hS=function(e,L){L=String(L);e.G&&(L=L.toLowerCase());return L}; yvf=function(e,L){L&&!e.G&&(rG(e),e.Z=null,e.X.forEach(function(c,I){var B=I.toLowerCase();I!=B&&(this.remove(I),g.jjn(this,B,c))},e)); e.G=L}; g.HSH=function(e){var L="";g.Le(e,function(c,I){L+=I;L+=":";L+=c;L+="\r\n"}); return L}; g.Rb=function(e,L,c){if(g.qQ(c))return e;c=g.HSH(c);if(typeof e==="string")return M3(e,g.kC(L),c);g.ob(e,L,c);return e}; g.uB=function(e){g.p.call(this);this.K=e;this.X={}}; lHx=function(e,L,c,I,B,x){if(Array.isArray(c))for(var S=0;S=0)return!0;try{var L=new g.Yd(e)}catch(c){return g.vU(o7x,function(I){return e.search(I)>0})!=null}return L.j.match(Spr)?!0:g.vU(o7x,function(c){return e.match(c)!=null})!=null}; g.FV=function(e,L){return e.replace(h$f,function(c,I){try{var B=g.TG(L,I);if(B==null||B.toString()==null)return c;B=B.toString();if(B==""||!g.J_(g.VK(B)))return encodeURIComponent(B).replace(/%2C/g,",")}catch(x){}return c})}; bB=function(e,L){return Object.is(e,L)}; Gf=function(e){var L=iB;iB=e;return L}; R$H=function(e){if(e.Pq!==void 0){var L=gG;gG=!0;try{for(var c=g.f(e.Pq),I=c.next();!I.done;I=c.next()){var B=I.value;B.UP||(e=void 0,B.UP=!0,R$H(B),(e=B.Qz)==null||e.call(B,B))}}finally{gG=L}}}; uCf=function(){var e;return((e=iB)==null?void 0:e.JZ)!==!1}; tyn=function(e){e&&(e.u8=0);return Gf(e)}; OMr=function(e,L){Gf(L);if(e&&e.cU!==void 0&&e.t8!==void 0&&e.xD!==void 0){if(k4(e))for(L=e.u8;Le.u8;)e.cU.pop(),e.xD.pop(),e.t8.pop()}}; TUv=function(e,L,c){qpH(e);if(e.Pq.length===0&&e.cU!==void 0)for(var I=0;I0}; WIT=function(e){e.cU!=null||(e.cU=[]);e.t8!=null||(e.t8=[]);e.xD!=null||(e.xD=[])}; qpH=function(e){e.Pq!=null||(e.Pq=[]);e.KA!=null||(e.KA=[])}; v7v=function(e){function L(){if(gG)throw Error("");if(iB!==null){var I=iB.u8++;WIT(iB);I0?" "+L:L))}}; g.ns=function(e,L){if(e.classList)Array.prototype.forEach.call(L,function(B){g.Y4(e,B)}); else{var c={};Array.prototype.forEach.call(E1(e),function(B){c[B]=!0}); Array.prototype.forEach.call(L,function(B){c[B]=!0}); L="";for(var I in c)L+=L.length>0?" "+I:I;g.XV(e,L)}}; g.eZ=function(e,L){e.classList?e.classList.remove(L):g.Ks(e,L)&&g.XV(e,Array.prototype.filter.call(E1(e),function(c){return c!=L}).join(" "))}; g.L1=function(e,L){e.classList?Array.prototype.forEach.call(L,function(c){g.eZ(e,c)}):g.XV(e,Array.prototype.filter.call(E1(e),function(c){return!g.Fh(L,c)}).join(" "))}; g.cY=function(e,L,c){c?g.Y4(e,L):g.eZ(e,L)}; kTc=function(e,L){var c=!g.Ks(e,L);g.cY(e,L,c)}; g.IA=function(){g.hi.call(this);this.X=0;this.endTime=this.startTime=null}; D16=function(e,L){Array.isArray(L)||(L=[L]);L=L.map(function(c){return typeof c==="string"?c:c.property+" "+c.duration+"s "+c.timing+" "+c.delay+"s"}); g.l3(e,"transition",L.join(","))}; BY=function(e,L,c,I,B){g.IA.call(this);this.K=e;this.B=L;this.j=c;this.G=I;this.T=Array.isArray(B)?B:[B]}; wk6=function(e,L,c,I){return new BY(e,L,{opacity:c},{opacity:I},{property:"opacity",duration:L,timing:"ease-in",delay:0})}; Vyv=function(e){e=as(e);if(e=="")return null;var L=String(e.slice(0,4)).toLowerCase();if(("url("1||e&&e.split(")"),null;if(e.indexOf("(")>0){if(/"|'/.test(e))return null;L=/([\-\w]+)\(/g;for(var c;c=L.exec(e);)if(!(c[1].toLowerCase()in Jxc))return null}return e}; x2=function(e,L){e=g.LZ[e];return e&&e.prototype?(L=Object.getOwnPropertyDescriptor(e.prototype,L))&&L.get||null:null}; Cb6=function(e){var L=g.LZ.CSSStyleDeclaration;return L&&L.prototype&&L.prototype[e]||null}; aTn=function(e,L,c,I){if(e)return e.apply(L,I);if(g.oA&&document.documentMode<10){if(!L[c].call)throw Error("IE Clobbering detected");}else if(typeof L[c]!="function")throw Error("Clobbering detected");return L[c].apply(L,I)}; pkx=function(e){if(!e)return"";var L=document.createElement("div").style;NUv(e).forEach(function(c){var I=g.RF&&c in m1v?c:c.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");wu(I,"--")||wu(I,"var")||(c=aTn(yxx,e,e.getPropertyValue?"getPropertyValue":"getAttribute",[c])||"",c=Vyv(c),c!=null&&aTn(ZMr,L,L.setProperty?"setProperty":"setAttribute",[I,c]))}); return L.cssText||""}; NUv=function(e){g.oL(e)?e=g.VM(e):(e=g.Rs(e),g.i7(e,"cssText"));return e}; g.rp=function(e){var L,c=L=0,I=!1;e=e.split($1H);for(var B=0;B.4?-1:1;return(L==0?null:L)==-1?"rtl":"ltr"}; g.tL=function(e){if(e instanceof hL||e instanceof RA||e instanceof uA)return e;if(typeof e.next=="function")return new hL(function(){return e}); if(typeof e[Symbol.iterator]=="function")return new hL(function(){return e[Symbol.iterator]()}); if(typeof e.qZ=="function")return new hL(function(){return e.qZ()}); throw Error("Not an iterator or iterable.");}; hL=function(e){this.K=e}; RA=function(e){this.K=e}; uA=function(e){hL.call(this,function(){return e}); this.Z=e}; Om=function(e,L,c,I,B,x,S,h){this.X=e;this.T=L;this.Z=c;this.B=I;this.G=B;this.j=x;this.K=S;this.J=h}; qZ=function(e,L){if(L==0)return e.X;if(L==1)return e.K;var c=lv(e.X,e.Z,L),I=lv(e.Z,e.G,L);e=lv(e.G,e.K,L);c=lv(c,I,L);I=lv(I,e,L);return lv(c,I,L)}; Pbv=function(e,L){var c=(L-e.X)/(e.K-e.X);if(c<=0)return 0;if(c>=1)return 1;for(var I=0,B=1,x=0,S=0;S<8;S++){x=qZ(e,c);var h=(qZ(e,c+1E-6)-x)/1E-6;if(Math.abs(x-L)<1E-6)return c;if(Math.abs(h)<1E-6)break;else x1E-6&&S<8;S++)x=0}; g.zl=function(e){g.p.call(this);this.j=1;this.Z=[];this.G=0;this.X=[];this.K={};this.T=!!e}; d1n=function(e,L,c){g.F2(function(){e.apply(L,c)})}; g.sm=function(e){this.X=e}; vY=function(e){this.X=e}; U1M=function(e){this.data=e}; E7H=function(e){return e===void 0||e instanceof U1M?e:new U1M(e)}; f1=function(e){this.X=e}; g.Xkc=function(e){var L=e.creation;e=e.expiration;return!!e&&eg.O9()}; g.AL=function(e){this.X=e}; KIR=function(){}; FZ=function(){}; bA=function(e){this.X=e;this.K=null}; iA=function(e){if(e.X==null)throw Error("Storage mechanism: Storage unavailable");e.isAvailable()||bD(Error("Storage mechanism: Storage unavailable"))}; Gl=function(){var e=null;try{e=g.LZ.localStorage||null}catch(L){}bA.call(this,e)}; Yp$=function(){var e=null;try{e=g.LZ.sessionStorage||null}catch(L){}bA.call(this,e)}; gp=function(e,L){this.K=e;this.X=L+"::"}; g.k2=function(e){var L=new Gl;return L.isAvailable()?e?new gp(L,e):L:null}; DW=function(e,L){this.X=e;this.K=L}; wp=function(e){this.X=[];if(e)a:{if(e instanceof wp){var L=e.N4();e=e.w7();if(this.X.length<=0){for(var c=this.X,I=0;I>>6:(x<65536?h[c++]=224|x>>>12:(h[c++]=240|x>>>18,h[c++]=128|x>>>12&63),h[c++]=128|x>>> 6&63),h[c++]=128|x&63);return h}; aA=function(e){for(var L=e.length;--L>=0;)e[L]=0}; NZ=function(e,L,c,I,B){this.kU=e;this.s_=L;this.hn=c;this.Al=I;this.nE=B;this.c8=e&&e.length}; me=function(e,L){this.hF=e;this.Mn=0;this.Ho=L}; y5=function(e,L){e.Tr[e.pending++]=L&255;e.Tr[e.pending++]=L>>>8&255}; ZW=function(e,L,c){e.Cp>16-c?(e.TN|=L<>16-e.Cp,e.Cp+=c-16):(e.TN|=L<>>=1,c<<=1;while(--L>0);return c>>>1}; ISn=function(e,L,c){var I=Array(16),B=0,x;for(x=1;x<=15;x++)I[x]=B=B+c[x-1]<<1;for(c=0;c<=L;c++)B=e[c*2+1],B!==0&&(e[c*2]=civ(I[B]++,B))}; BT6=function(e){var L;for(L=0;L<286;L++)e.kz[L*2]=0;for(L=0;L<30;L++)e.Vl[L*2]=0;for(L=0;L<19;L++)e.mK[L*2]=0;e.kz[512]=1;e.zR=e.g1=0;e.Fo=e.matches=0}; xqJ=function(e){e.Cp>8?y5(e,e.TN):e.Cp>0&&(e.Tr[e.pending++]=e.TN);e.TN=0;e.Cp=0}; oA6=function(e,L,c){xqJ(e);y5(e,c);y5(e,~c);C1.E3(e.Tr,e.window,L,c,e.pending);e.pending+=c}; SaT=function(e,L,c,I){var B=L*2,x=c*2;return e[B]>>7)];p1(e,S,c);h=Q5[S];h!==0&&(B-=dp[S],ZW(e,B,h))}}while(I>1;S>=1;S--)$2(e,c,S);R=x;do S=e.PR[1],e.PR[1]=e.PR[e.CG--],$2(e,c,1),I=e.PR[1],e.PR[--e.La]=S,e.PR[--e.La]=I,c[R*2]=c[S*2]+c[I*2],e.depth[R]=(e.depth[S]>=e.depth[I]?e.depth[S]:e.depth[I])+1,c[S*2+1]=c[I*2+1]=R,e.PR[1]=R++,$2(e,c,1);while(e.CG>= 2);e.PR[--e.La]=e.PR[1];S=L.hF;R=L.Mn;I=L.Ho.kU;B=L.Ho.c8;x=L.Ho.s_;var u=L.Ho.hn,t=L.Ho.nE,O,q=0;for(O=0;O<=15;O++)e.Gw[O]=0;S[e.PR[e.La]*2+1]=0;for(L=e.La+1;L<573;L++){var T=e.PR[L];O=S[S[T*2+1]*2+1]+1;O>t&&(O=t,q++);S[T*2+1]=O;if(!(T>R)){e.Gw[O]++;var W=0;T>=u&&(W=x[T-u]);var A=S[T*2];e.zR+=A*(O+W);B&&(e.g1+=A*(I[T*2+1]+W))}}if(q!==0){do{for(O=t-1;e.Gw[O]===0;)O--;e.Gw[O]--;e.Gw[O+1]+=2;e.Gw[t]--;q-=2}while(q>0);for(O=t;O!==0;O--)for(T=e.Gw[O];T!==0;)I=e.PR[--L],I>R||(S[I*2+1]!==O&&(e.zR+=(O-S[I* 2+1])*S[I*2],S[I*2+1]=O),T--)}ISn(c,h,e.Gw)}; hpf=function(e,L,c){var I,B=-1,x=L[1],S=0,h=7,R=4;x===0&&(h=138,R=3);L[(c+1)*2+1]=65535;for(I=0;I<=c;I++){var u=x;x=L[(I+1)*2+1];++S>>=1)if(L&1&&e.kz[c*2]!==0)return 0;if(e.kz[18]!==0||e.kz[20]!==0||e.kz[26]!==0)return 1;for(c=32;c<256;c++)if(e.kz[c*2]!==0)return 1;return 0}; Em=function(e,L,c){e.Tr[e.vr+e.Fo*2]=L>>>8&255;e.Tr[e.vr+e.Fo*2+1]=L&255;e.Tr[e.m0+e.Fo]=c&255;e.Fo++;L===0?e.kz[c*2]++:(e.matches++,L--,e.kz[(jZ[c]+256+1)*2]++,e.Vl[(L<256?PY[L]:PY[256+(L>>>7)])*2]++);return e.Fo===e.Zw-1}; K1=function(e,L){e.msg=XZ[L];return L}; Y2=function(e){for(var L=e.length;--L>=0;)e[L]=0}; n1=function(e){var L=e.state,c=L.pending;c>e.ER&&(c=e.ER);c!==0&&(C1.E3(e.output,L.Tr,L.bL,c,e.JS),e.JS+=c,L.bL+=c,e.pM+=c,e.ER-=c,L.pending-=c,L.pending===0&&(L.bL=0))}; cu=function(e,L){var c=e.Rp>=0?e.Rp:-1,I=e.kT-e.Rp,B=0;if(e.level>0){e.OR.AU===2&&(e.OR.AU=u2M(e));Um(e,e.NF);Um(e,e.Uy);hpf(e,e.kz,e.NF.Mn);hpf(e,e.Vl,e.Uy.Mn);Um(e,e.jP);for(B=18;B>=3&&e.mK[tAH[B]*2+1]===0;B--);e.zR+=3*(B+1)+5+5+4;var x=e.zR+3+7>>>3;var S=e.g1+3+7>>>3;S<=x&&(x=S)}else x=S=I+5;if(I+4<=x&&c!==-1)ZW(e,L?1:0,3),oA6(e,c,I);else if(e.strategy===4||S===x)ZW(e,2+(L?1:0),3),ric(e,eM,LT);else{ZW(e,4+(L?1:0),3);c=e.NF.Mn+1;I=e.Uy.Mn+1;B+=1;ZW(e,c-257,5);ZW(e,I-1,5);ZW(e,B-4,4);for(x=0;x>>8&255;e.Tr[e.pending++]=L&255}; Occ=function(e,L){var c=e.wG,I=e.kT,B=e.ND,x=e.Sy,S=e.kT>e.Vy-262?e.kT-(e.Vy-262):0,h=e.window,R=e.py,u=e.WD,t=e.kT+258,O=h[I+B-1],q=h[I+B];e.ND>=e.xm&&(c>>=2);x>e.nf&&(x=e.nf);do{var T=L;if(h[T+B]===q&&h[T+B-1]===O&&h[T]===h[I]&&h[++T]===h[I+1]){I+=2;for(T++;h[++I]===h[++T]&&h[++I]===h[++T]&&h[++I]===h[++T]&&h[++I]===h[++T]&&h[++I]===h[++T]&&h[++I]===h[++T]&&h[++I]===h[++T]&&h[++I]===h[++T]&&IB){e.w6=L;B=T;if(T>=x)break;O=h[I+B-1];q=h[I+B]}}}while((L=u[L&R])>S&&--c!== 0);return B<=e.nf?B:e.nf}; SM=function(e){var L=e.Vy,c;do{var I=e.O6-e.nf-e.kT;if(e.kT>=L+(L-262)){C1.E3(e.window,e.window,L,L,0);e.w6-=L;e.kT-=L;e.Rp-=L;var B=c=e.uA;do{var x=e.head[--B];e.head[B]=x>=L?x-L:0}while(--c);B=c=L;do x=e.WD[--B],e.WD[B]=x>=L?x-L:0;while(--c);I+=L}if(e.OR.uo===0)break;B=e.OR;c=e.window;x=e.kT+e.nf;var S=B.uo;S>I&&(S=I);S===0?c=0:(B.uo-=S,C1.E3(c,B.input,B.yY,S,x),B.state.wrap===1?B.k0=xJ(B.k0,c,S,x):B.state.wrap===2&&(B.k0=o6(B.k0,c,S,x)),B.yY+=S,B.W4+=S,c=S);e.nf+=c;if(e.nf+e.Hg>=3)for(I=e.kT-e.Hg, e.Qi=e.window[I],e.Qi=(e.Qi<=3&&(e.Qi=(e.Qi<=3)if(c=Em(e,e.kT-e.w6,e.qv-3),e.nf-=e.qv,e.qv<=e.sX&&e.nf>=3){e.qv--;do e.kT++,e.Qi=(e.Qi<=3&&(e.Qi=(e.Qi<4096)&&(e.qv=2));if(e.ND>=3&&e.qv<=e.ND){I=e.kT+e.nf-3;c=Em(e,e.kT-1-e.hE,e.ND-3);e.nf-=e.ND-1;e.ND-=2;do++e.kT<=I&&(e.Qi=(e.Qi<=3&&e.kT>0&&(I=e.kT-1,c=x[I],c===x[++I]&&c===x[++I]&&c===x[++I])){for(B=e.kT+258;c===x[++I]&&c===x[++I]&&c===x[++I]&&c===x[++I]&&c===x[++I]&&c===x[++I]&&c===x[++I]&&c===x[++I]&&Ie.nf&&(e.qv=e.nf)}e.qv>=3?(c=Em(e,1,e.qv-3),e.nf-=e.qv,e.kT+=e.qv,e.qv=0):(c=Em(e,0,e.window[e.kT]),e.nf--,e.kT++);if(c&&(cu(e,!1),e.OR.ER===0))return 1}e.Hg=0;return L=== 4?(cu(e,!0),e.OR.ER===0?3:4):e.Fo&&(cu(e,!1),e.OR.ER===0)?1:2}; TTc=function(e,L){for(var c;;){if(e.nf===0&&(SM(e),e.nf===0)){if(L===0)return 1;break}e.qv=0;c=Em(e,0,e.window[e.kT]);e.nf--;e.kT++;if(c&&(cu(e,!1),e.OR.ER===0))return 1}e.Hg=0;return L===4?(cu(e,!0),e.OR.ER===0?3:4):e.Fo&&(cu(e,!1),e.OR.ER===0)?1:2}; R6=function(e,L,c,I,B){this.z4=e;this.lM=L;this.hwW=c;this.dk=I;this.func=B}; Wcc=function(){this.OR=null;this.status=0;this.Tr=null;this.wrap=this.pending=this.bL=this.d7=0;this.eW=null;this.ll=0;this.method=8;this.YK=-1;this.py=this.ws=this.Vy=0;this.window=null;this.O6=0;this.head=this.WD=null;this.Sy=this.xm=this.strategy=this.level=this.sX=this.wG=this.ND=this.nf=this.w6=this.kT=this.UB=this.hE=this.qv=this.Rp=this.P1=this.Ma=this.q9=this.uA=this.Qi=0;this.kz=new C1.xj(1146);this.Vl=new C1.xj(122);this.mK=new C1.xj(78);Y2(this.kz);Y2(this.Vl);Y2(this.mK);this.jP=this.Uy= this.NF=null;this.Gw=new C1.xj(16);this.PR=new C1.xj(573);Y2(this.PR);this.La=this.CG=0;this.depth=new C1.xj(573);Y2(this.depth);this.Cp=this.TN=this.Hg=this.matches=this.g1=this.zR=this.vr=this.Fo=this.Zw=this.m0=0}; MAT=function(e,L){if(!e||!e.state||L>5||L<0)return e?K1(e,-2):-2;var c=e.state;if(!e.output||!e.input&&e.uo!==0||c.status===666&&L!==4)return K1(e,e.ER===0?-5:-2);c.OR=e;var I=c.YK;c.YK=L;if(c.status===42)if(c.wrap===2)e.k0=0,I6(c,31),I6(c,139),I6(c,8),c.eW?(I6(c,(c.eW.text?1:0)+(c.eW.gy?2:0)+(c.eW.extra?4:0)+(c.eW.name?8:0)+(c.eW.comment?16:0)),I6(c,c.eW.time&255),I6(c,c.eW.time>>8&255),I6(c,c.eW.time>>16&255),I6(c,c.eW.time>>24&255),I6(c,c.level===9?2:c.strategy>=2||c.level<2?4:0),I6(c,c.eW.os& 255),c.eW.extra&&c.eW.extra.length&&(I6(c,c.eW.extra.length&255),I6(c,c.eW.extra.length>>8&255)),c.eW.gy&&(e.k0=o6(e.k0,c.Tr,c.pending,0)),c.ll=0,c.status=69):(I6(c,0),I6(c,0),I6(c,0),I6(c,0),I6(c,0),I6(c,c.level===9?2:c.strategy>=2||c.level<2?4:0),I6(c,3),c.status=113);else{var B=8+(c.ws-8<<4)<<8;B|=(c.strategy>=2||c.level<2?0:c.level<6?1:c.level===6?2:3)<<6;c.kT!==0&&(B|=32);c.status=113;Bu(c,B+(31-B%31));c.kT!==0&&(Bu(c,e.k0>>>16),Bu(c,e.k0&65535));e.k0=1}if(c.status===69)if(c.eW.extra){for(B= c.pending;c.ll<(c.eW.extra.length&65535)&&(c.pending!==c.d7||(c.eW.gy&&c.pending>B&&(e.k0=o6(e.k0,c.Tr,c.pending-B,B)),n1(e),B=c.pending,c.pending!==c.d7));)I6(c,c.eW.extra[c.ll]&255),c.ll++;c.eW.gy&&c.pending>B&&(e.k0=o6(e.k0,c.Tr,c.pending-B,B));c.ll===c.eW.extra.length&&(c.ll=0,c.status=73)}else c.status=73;if(c.status===73)if(c.eW.name){B=c.pending;do{if(c.pending===c.d7&&(c.eW.gy&&c.pending>B&&(e.k0=o6(e.k0,c.Tr,c.pending-B,B)),n1(e),B=c.pending,c.pending===c.d7)){var x=1;break}x=c.llB&&(e.k0=o6(e.k0,c.Tr,c.pending-B,B));x===0&&(c.ll=0,c.status=91)}else c.status=91;if(c.status===91)if(c.eW.comment){B=c.pending;do{if(c.pending===c.d7&&(c.eW.gy&&c.pending>B&&(e.k0=o6(e.k0,c.Tr,c.pending-B,B)),n1(e),B=c.pending,c.pending===c.d7)){x=1;break}x=c.llB&&(e.k0=o6(e.k0,c.Tr,c.pending-B,B));x===0&&(c.status=103)}else c.status= 103;c.status===103&&(c.eW.gy?(c.pending+2>c.d7&&n1(e),c.pending+2<=c.d7&&(I6(c,e.k0&255),I6(c,e.k0>>8&255),e.k0=0,c.status=113)):c.status=113);if(c.pending!==0){if(n1(e),e.ER===0)return c.YK=-1,0}else if(e.uo===0&&(L<<1)-(L>4?9:0)<=(I<<1)-(I>4?9:0)&&L!==4)return K1(e,-5);if(c.status===666&&e.uo!==0)return K1(e,-5);if(e.uo!==0||c.nf!==0||L!==0&&c.status!==666){I=c.strategy===2?TTc(c,L):c.strategy===3?qav(c,L):ud[c.level].func(c,L);if(I===3||I===4)c.status=666;if(I===1||I===3)return e.ER===0&&(c.YK= -1),0;if(I===2&&(L===1?(ZW(c,2,3),p1(c,256,eM),c.Cp===16?(y5(c,c.TN),c.TN=0,c.Cp=0):c.Cp>=8&&(c.Tr[c.pending++]=c.TN&255,c.TN>>=8,c.Cp-=8)):L!==5&&(ZW(c,0,3),oA6(c,0,0),L===3&&(Y2(c.head),c.nf===0&&(c.kT=0,c.Rp=0,c.Hg=0))),n1(e),e.ER===0))return c.YK=-1,0}if(L!==4)return 0;if(c.wrap<=0)return 1;c.wrap===2?(I6(c,e.k0&255),I6(c,e.k0>>8&255),I6(c,e.k0>>16&255),I6(c,e.k0>>24&255),I6(c,e.W4&255),I6(c,e.W4>>8&255),I6(c,e.W4>>16&255),I6(c,e.W4>>24&255)):(Bu(c,e.k0>>>16),Bu(c,e.k0&65535));n1(e);c.wrap>0&& (c.wrap=-c.wrap);return c.pending!==0?0:1}; tG=function(e){if(!(this instanceof tG))return new tG(e);e=this.options=C1.assign({level:-1,method:8,chunkSize:16384,h$:15,Su:8,strategy:0,to:""},e||{});e.raw&&e.h$>0?e.h$=-e.h$:e.pH&&e.h$>0&&e.h$<16&&(e.h$+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.OR=new zpJ;this.OR.ER=0;var L=this.OR;var c=e.level,I=e.method,B=e.h$,x=e.Su,S=e.strategy;if(L){var h=1;c===-1&&(c=6);B<0?(h=0,B=-B):B>15&&(h=2,B-=16);if(x<1||x>9||I!==8||B<8||B>15||c<0||c>9||S<0||S>4)L=K1(L,-2);else{B===8&&(B=9);var R= new Wcc;L.state=R;R.OR=L;R.wrap=h;R.eW=null;R.ws=B;R.Vy=1<>=7;x<30;x++)for(dp[x]=S<<7,B=0;B<1<=u.Vy&&(L===0&&(Y2(u.head),u.kT=0,u.Rp=0,u.Hg=0),c=new C1.gS(u.Vy),C1.E3(c,x,S-u.Vy,u.Vy,0),x=c,S=u.Vy);c=e.uo;I=e.yY;B=e.input;e.uo=S;e.yY=0;e.input=x;for(SM(u);u.nf>=3;){x=u.kT;S=u.nf-2;do u.Qi=(u.Qi<=-3&&(0,c[50])(c[58],c[77])}catch(I){(0,c[84])(c[40],c[8])}try{c[15]>=3?(0,c[2])(c[40],c[67]):(0,c[34])(c[73],c[43]),(c[85]==-2||(((0,c[70])(((0,c[79])(c[new Date(r[51])/1E3],c[40]),((0,c[79])(c[9],c[40]),c[34])(c[41],c[39]),c[52])(c[8-64%(new Date(r[46])/1E3)+134],c[41]),c[84],(0,c[34])(c[41],c[29]),c[40],c[28]),c[59])((0,c[32])(c[40]),c[34],c[77],c[83]),0))&&(((((((0,c[65])(c[6],c[40],(0,c[86])()),c[79])(c[49],c[40]),c[59])((0,c[2])(c[3], c[1]),c[34],c[64],c[81]),c[65])(c[16],c[40],(0,c[23])()),c[79])(c[74],c[64]),c[2])(c[3],c[new Date(r[60])/1E3]),c[65])(c[16],c[new Date(r[83])/1E3],(0,c[86])()),c[25]!=7&&(0,c[79])(c[80],c[77]),c[21]===8?((0,c[35])(((0,c[10])(c[49],c[21]),c[10])(c[67],c[29]),c[8],c[49]),c[35])((0,c[55])(c[22],c[67]),c[66],c[49],c[68]):(((((0,c[28])(c[39],c[53]),c[86])(c[17]),c[28])(c[7],c[53]),c[86])(c[40]),c[59])(c[2],c[20]),c[58]!=-8&&(c[78]<=0||((0,c[49])(((0,c[52])((0,c[79])(c[34]),c[21],c[20],c[36]),((0,c[27])(c[20], c[84]),c[1])(c[34]),(0,c[21])(c[20],c[43]),c[21])(c[71],c[87]),(0,c[21])(c[47],c[56]),c[52],(0,c[46])(c[7],c[71],(0,c[9])()),c[21],c[70],c[26]),r[3]))&&((((0,c[52])((0,c[77])(c[16],c[23]),c[77],c[71],c[10]),c[27])(c[34],c[5]),c[42])(c[28],c[55]),c[10])(c[57],c[21])&(0,c[3])((((0,c[66])(c[21],c[24]),c[42])(c[84],c[73]),c[60])(c[22],c[27]),c[28],c[73],c[2]),c[24]!=-8&&(0,c[88])(c[86],c[new Date(r[72])/1E3])}catch(I){(0,c[3])((((0,c[28])(c[0],c[22]),((0,c[60])(c[0],c[45]),c[30])(c[86]),c[66])(c[21], c[52]),(0,c[60])(c[55],c[8])),c[30],c[0])}try{c[58]<8&&((0,c[85])(c[46],c[0],(0,c[6])()),c[40])(c[0]),c[58]<8&&(c[67]!=8||(((0,c[60])(c[0],c[29]),c[10])(c[81],c[55]),0))&&(0,c[3])((0,c[42])(c[11],c[86]),c[71],c[32],c[86]),c[18]>=2?(0,c[63])((0,c[54])(c[25],c[81],(0,c[65])()),c[35],c[60],c[46]):(0,c[63])((0,c[29])(c[81],c[78]),c[29],c[60],c[8]),c[50]!==0&&(c[1]>=-6||((0,c[63])((0,c[63])((0,c[90])(c[60]),c[29],c[55],c[5]),c[54],c[15],c[28],(0,c[65])()),0))&&(0,c[49])((0,c[35])(c[42],c[80]),c[72],(0,c[3])(c[6], c[85]),c[79],c[32])}catch(I){((((0,c[8])(c[41],c[19]),c[58])(c[57],c[2]),c[38])(c[19]),c[58])(c[84],c[48])}try{c[33]!=-3&&(c[36]==-9||((0,c[1])((0,c[26])(c[53],c[35]),c[64],c[19],c[45]),0))&&(0,c[1])((0,c[83])(c[54],c[19],(0,c[46])()),c[new Date(r[78])/1E3],c[54],c[19],(0,c[46])()),c[17]>-9&&((0,c[38])(c[new Date(r[82])/1E3]),1)||(0,c[69])(c[88],c[84]),c[34]<-5&&(c[79]==-10||(((0,c[64])(c[57],c[12]),c[64])(c[71],c[87]),0))&&(0,c[32])((0,c[59])(c[new Date(r[69])/1E3]),c[89],c[88],c[12])}catch(I){(0,c[32])((0,c[89])(c[88], c[6]),c[69],c[29]),(0,c[23])(c[85],c[50],(0,c[77])())}}catch(I){return r[66]+e}return L[r[6]](r[3])}; g.MN=function(e){this.name=e}; Zcc=function(e){this.XF=Hy(e)}; zw=function(e){this.XF=Hy(e)}; se=function(e){this.XF=Hy(e)}; poM=function(e){this.XF=Hy(e)}; vu=function(e){this.XF=Hy(e)}; fT=function(e){this.XF=Hy(e)}; AG=function(e){this.XF=Hy(e)}; F$=function(e){this.XF=Hy(e)}; bd=function(e){this.XF=Hy(e)}; id=function(e){this.XF=Hy(e)}; Gw=function(e){this.XF=Hy(e)}; gW=function(e){this.XF=Hy(e)}; kJ=function(e){this.XF=Hy(e)}; Du=function(e){this.XF=Hy(e)}; wW=function(e){this.XF=Hy(e)}; JG=function(e){this.XF=Hy(e,500)}; VJ=function(e){this.XF=Hy(e)}; CT=function(e){this.XF=Hy(e)}; $qv=function(e){this.XF=Hy(e)}; j$n=function(){return g.BU("yt.ads.biscotti.lastId_")||""}; Hc6=function(e){g.IL("yt.ads.biscotti.lastId_",e)}; yJ=function(){var e=arguments,L=a6;e.length>1?L[e[0]]=e[1]:e.length===1&&Object.assign(L,e[0])}; g.Zu=function(e,L){return e in a6?a6[e]:L}; pT=function(e){var L=a6.EXPERIMENT_FLAGS;return L?L[e]:void 0}; lSJ=function(e){$J.forEach(function(L){return L(e)})}; g.Hu=function(e){return e&&window.yterr?function(){try{return e.apply(this,arguments)}catch(L){g.jM(L)}}:e}; g.jM=function(e){var L=g.BU("yt.logging.errors.log");L?L(e,"ERROR",void 0,void 0,void 0,void 0,void 0):(L=g.Zu("ERRORS",[]),L.push([e,"ERROR",void 0,void 0,void 0,void 0,void 0]),yJ("ERRORS",L));lSJ(e)}; ld=function(e,L,c,I,B){var x=g.BU("yt.logging.errors.log");x?x(e,"WARNING",L,c,I,void 0,B):(x=g.Zu("ERRORS",[]),x.push([e,"WARNING",L,c,I,void 0,B]),yJ("ERRORS",x))}; Pu=function(e,L){L=e.split(L);for(var c={},I=0,B=L.length;I1?e[1]:e[0])):{}}; X$=function(e,L){return UqJ(e,L||{},!0)}; KT=function(e,L){return UqJ(e,L||{},!1)}; UqJ=function(e,L,c){var I=e.split("#",2);e=I[0];I=I.length>1?"#"+I[1]:"";var B=e.split("?",2);e=B[0];B=dW(B[1]||"");for(var x in L)if(c||!g.uw(B,x))B[x]=L[x];return g.WO(e,B)+I}; YJ=function(e){if(!L)var L=window.location.href;var c=g.rj(e)[1]||null,I=g.hp(e);c&&I?(e=g.rj(e),L=g.rj(L),e=e[3]==L[3]&&e[1]==L[1]&&e[4]==L[4]):e=I?g.hp(L)===I&&(Number(g.rj(L)[4]||null)||null)===(Number(g.rj(e)[4]||null)||null):!0;return e}; nT=function(e){e||(e=document.location.href);e=g.rj(e)[1]||null;return e!==null&&e==="https"}; eG=function(e){e=EAH(e);return e===null?!1:e[0]==="com"&&e[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; Xoc=function(e){e=EAH(e);return e===null?!1:e[1]==="google"?!0:e[2]==="google"?e[0]==="au"&&e[1]==="com"?!0:e[0]==="uk"&&e[1]==="co"?!0:!1:!1}; EAH=function(e){e=g.hp(e);return e!==null?e.split(".").reverse():null}; Pqx=function(e){return e&&e.match(Kcx)?e:wz(e)}; IC=function(e){var L=LQ;e=e===void 0?j$n():e;var c=Object,I=c.assign,B=c3(L);var x=L.X;try{var S=x.screenX;var h=x.screenY}catch(J){}try{var R=x.outerWidth;var u=x.outerHeight}catch(J){}try{var t=x.innerWidth;var O=x.innerHeight}catch(J){}try{var q=x.screenLeft;var T=x.screenTop}catch(J){}try{t=x.innerWidth,O=x.innerHeight}catch(J){}try{var W=x.screen.availWidth;var A=x.screen.availTop}catch(J){}x=[q,T,S,h,W,A,R,u,t,O];S=cTn(!1,L.X.top);h={};var b=b===void 0?g.LZ:b;R=new Cs;"SVGElement"in b&&"createElementNS"in b.document&&R.set(0);u=Bur();u["allow-top-navigation-by-user-activation"]&&R.set(1);u["allow-popups-to-escape-sandbox"]&&R.set(2);b.crypto&&b.crypto.subtle&&R.set(3);"TextDecoder"in b&&"TextEncoder"in b&&R.set(4);b=bMc(R);L=(h.bc=b,h.bih=S.height,h.biw=S.width,h.brdim=x.join(),h.vis=xT(L.K),h.wgl=!!wF.WebGLRenderingContext,h);c=I.call(c,B,L);c.ca_type="image";e&&(c.bid=e);return c}; c3=function(e){var L={};L.dt=Yav;L.flash="0";a:{try{var c=e.X.top.location.href}catch(t){e=2;break a}e=c?c===e.K.location.href?0:1:2}L=(L.frm=e,L);try{L.u_tz=-(new Date).getTimezoneOffset();var I=I===void 0?wF:I;try{var B=I.history.length}catch(t){B=0}L.u_his=B;var x;L.u_h=(x=wF.screen)==null?void 0:x.height;var S;L.u_w=(S=wF.screen)==null?void 0:S.width;var h;L.u_ah=(h=wF.screen)==null?void 0:h.availHeight;var R;L.u_aw=(R=wF.screen)==null?void 0:R.availWidth;var u;L.u_cd=(u=wF.screen)==null?void 0: u.colorDepth}catch(t){}return L}; eLx=function(){if(!nAn)return null;var e=nAn();return"open"in e?e:null}; g.xa=function(e){switch(B3(e)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; B3=function(e){return e&&"status"in e?e.status:-1}; g.oC=function(e,L){typeof e==="function"&&(e=g.Hu(e));return window.setTimeout(e,L)}; g.SG=function(e,L){typeof e==="function"&&(e=g.Hu(e));return window.setInterval(e,L)}; g.ra=function(e){window.clearTimeout(e)}; g.hF=function(e){window.clearInterval(e)}; g.uL=function(e){e=RC(e);return typeof e==="string"&&e==="false"?!1:!!e}; g.tF=function(e,L){e=RC(e);return e===void 0&&L!==void 0?L:Number(e||0)}; ON=function(){return g.Zu("EXPERIMENTS_TOKEN","")}; RC=function(e){return g.Zu("EXPERIMENT_FLAGS",{})[e]}; qL=function(){for(var e=[],L=g.Zu("EXPERIMENTS_FORCED_FLAGS",{}),c=g.f(Object.keys(L)),I=c.next();!I.done;I=c.next())I=I.value,e.push({key:I,value:String(L[I])});c=g.Zu("EXPERIMENT_FLAGS",{});I=g.f(Object.keys(c));for(var B=I.next();!B.done;B=I.next())B=B.value,B.startsWith("force_")&&L[B]===void 0&&e.push({key:B,value:String(c[B])});return e}; TZ=function(e,L,c,I,B,x,S,h){function R(){(u&&"readyState"in u?u.readyState:0)===4&&L&&g.Hu(L)(u)} c=c===void 0?"GET":c;I=I===void 0?"":I;h=h===void 0?!1:h;var u=eLx();if(!u)return null;"onloadend"in u?u.addEventListener("loadend",R,!1):u.onreadystatechange=R;g.uL("debug_forward_web_query_parameters")&&(e=Lan(e));u.open(c,e,!0);x&&(u.responseType=x);S&&(u.withCredentials=!0);c=c==="POST"&&(window.FormData===void 0||!(I instanceof FormData));if(B=cUc(e,B))for(var t in B)u.setRequestHeader(t,B[t]),"content-type"===t.toLowerCase()&&(c=!1);c&&u.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); if(h&&"setAttributionReporting"in XMLHttpRequest.prototype){e={eventSourceEligible:!0,triggerEligible:!1};try{u.setAttributionReporting(e)}catch(O){ld(O)}}u.send(I);return u}; cUc=function(e,L){L=L===void 0?{}:L;var c=YJ(e),I=g.Zu("INNERTUBE_CLIENT_NAME"),B=g.uL("web_ajax_ignore_global_headers_if_set"),x;for(x in IXR){var S=g.Zu(IXR[x]),h=x==="X-Goog-AuthUser"||x==="X-Goog-PageId";x!=="X-Goog-Visitor-Id"||S||(S=g.Zu("VISITOR_DATA"));var R;if(!(R=!S)){if(!(R=c||(g.hp(e)?!1:!0))){R=e;var u;if(u=g.uL("add_auth_headers_to_remarketing_google_dot_com_ping")&&x==="Authorization"&&(I==="TVHTML5"||I==="TVHTML5_UNPLUGGED"||I==="TVHTML5_SIMPLY")&&Xoc(R))R=RX(R)||"",R=R.split("/"), R="/"+(R.length>1?R[1]:""),u=R==="/pagead";R=u?!0:!1}R=!R}R||B&&L[x]!==void 0||I==="TVHTML5_UNPLUGGED"&&h||(L[x]=S)}"X-Goog-EOM-Visitor-Id"in L&&"X-Goog-Visitor-Id"in L&&delete L["X-Goog-Visitor-Id"];if(c||!g.hp(e))L["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(c||!g.hp(e)){try{var t=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(O){}t&&(L["X-YouTube-Time-Zone"]=t)}document.location.hostname.endsWith("youtubeeducation.com")||!c&&g.hp(e)||(L["X-YouTube-Ad-Signals"]= QJ(IC()));return L}; ML=function(e,L){L.method="POST";L.postParams||(L.postParams={});return g.W3(e,L)}; odM=function(e,L){if(window.fetch&&L.format!=="XML"){var c={method:L.method||"GET",credentials:"same-origin"};L.headers&&(c.headers=L.headers);L.priority&&(c.priority=L.priority);e=Bk$(e,L);var I=xk6(e,L);I&&(c.body=I);L.withCredentials&&(c.credentials="include");var B=L.context||g.LZ,x=!1,S;fetch(e,c).then(function(h){if(!x){x=!0;S&&g.ra(S);var R=h.ok,u=function(t){t=t||{};R?L.onSuccess&&L.onSuccess.call(B,t,h):L.onError&&L.onError.call(B,t,h);L.onFinish&&L.onFinish.call(B,t,h)}; (L.format||"JSON")==="JSON"&&(R||h.status>=400&&h.status<500)?h.json().then(u,function(){u(null)}):u(null)}}).catch(function(){L.onError&&L.onError.call(B,{},{})}); e=L.timeout||0;L.onFetchTimeout&&e>0&&(S=g.oC(function(){x||(x=!0,g.ra(S),L.onFetchTimeout.call(L.context||g.LZ))},e))}else g.W3(e,L)}; g.W3=function(e,L){var c=L.format||"JSON";e=Bk$(e,L);var I=xk6(e,L),B=!1,x=SAR(e,function(R){if(!B){B=!0;h&&g.ra(h);var u=g.xa(R),t=null,O=400<=R.status&&R.status<500,q=500<=R.status&&R.status<600;if(u||O||q)t=rUn(e,c,R,L.convertToSafeHtml);u&&(u=hLM(c,R,t));t=t||{};O=L.context||g.LZ;u?L.onSuccess&&L.onSuccess.call(O,R,t):L.onError&&L.onError.call(O,R,t);L.onFinish&&L.onFinish.call(O,R,t)}},L.method,I,L.headers,L.responseType,L.withCredentials); I=L.timeout||0;if(L.onTimeout&&I>0){var S=L.onTimeout;var h=g.oC(function(){B||(B=!0,x.abort(),g.ra(h),S.call(L.context||g.LZ,x))},I)}return x}; Bk$=function(e,L){L.includeDomain&&(e=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+e);var c=g.Zu("XSRF_FIELD_NAME");if(L=L.urlParams)L[c]&&delete L[c],e=X$(e,L);return e}; xk6=function(e,L){var c=g.Zu("XSRF_FIELD_NAME"),I=g.Zu("XSRF_TOKEN"),B=L.postBody||"",x=L.postParams,S=g.Zu("XSRF_FIELD_NAME"),h;L.headers&&(h=L.headers["Content-Type"]);L.excludeXsrf||g.hp(e)&&!L.withCredentials&&g.hp(e)!==document.location.hostname||L.method!=="POST"||h&&h!=="application/x-www-form-urlencoded"||L.postParams&&L.postParams[S]||(x||(x={}),x[c]=I);(g.uL("ajax_parse_query_data_only_when_filled")&&x&&Object.keys(x).length>0||x)&&typeof B==="string"&&(B=dW(B),g.so(B,x),B=L.postBodyFormat&& L.postBodyFormat==="JSON"?JSON.stringify(B):g.TE(B));x=B||x&&!g.qQ(x);!RL6&&x&&L.method!=="POST"&&(RL6=!0,g.jM(Error("AJAX request with postData should use POST")));return B}; rUn=function(e,L,c,I){var B=null;switch(L){case "JSON":try{var x=c.responseText}catch(S){throw I=Error("Error reading responseText"),I.params=e,ld(I),S;}e=c.getResponseHeader("Content-Type")||"";x&&e.indexOf("json")>=0&&(x.substring(0,5)===")]}'\n"&&(x=x.substring(5)),B=JSON.parse(x));break;case "XML":if(e=(e=c.responseXML)?u_6(e):null)B={},g.KZ(e.getElementsByTagName("*"),function(S){B[S.tagName]=t1v(S)})}I&&Oa6(B); return B}; Oa6=function(e){if(g.Se(e))for(var L in e)L==="html_content"||jHJ(L,"_html")?e[L]=q9(e[L]):Oa6(e[L])}; hLM=function(e,L,c){if(L&&L.status===204)return!0;switch(e){case "JSON":return!!c;case "XML":return Number(c&&c.return_code)===0;case "RAW":return!0;default:return!!c}}; u_6=function(e){return e?(e=("responseXML"in e?e.responseXML:e).getElementsByTagName("root"))&&e.length>0?e[0]:null:null}; t1v=function(e){var L="";g.KZ(e.childNodes,function(c){L+=c.nodeValue}); return L}; Lan=function(e){var L=window.location.search,c=g.hp(e);g.uL("debug_handle_relative_url_for_query_forward_killswitch")||!c&&YJ(e)&&(c=document.location.hostname);var I=RX(e);I=(c=c&&(c.endsWith("youtube.com")||c.endsWith("youtube-nocookie.com")))&&I&&I.startsWith("/api/");if(!c||I)return e;var B=dW(L),x={};g.KZ(qA6,function(S){B[S]&&(x[S]=B[S])}); return KT(e,x)}; sN=function(e,L){var c=g.MQ(L),I;return(new g.iq(function(B,x){c.onSuccess=function(S){g.xa(S)?B(new Tk$(S)):x(new zZ("Request failed, status="+B3(S),"net.badstatus",S))}; c.onError=function(S){x(new zZ("Unknown request error","net.unknown",S))}; c.onTimeout=function(S){x(new zZ("Request timed out","net.timeout",S))}; I=g.W3(e,c)})).XR(function(B){if(B instanceof Ji){var x; (x=I)==null||x.abort()}return kA(B)})}; g.v3=function(e,L,c,I,B,x){function S(R,u,t){return R.XR(function(O){if(u<=0||B3(O.xhr)===403)return kA(new zZ("Request retried too many times","net.retryexhausted",O.xhr,O));var q=Math.pow(2,c-u+1)*t,T=B>0?Math.min(B,q):q;return h(t).then(function(){x&&x(O,u-1);return S(sN(e,L),u-1,T)})})} function h(R){return new g.iq(function(u){setTimeout(u,R)})} B=B===void 0?-1:B;return S(sN(e,L),c-1,I)}; zZ=function(e,L,c){WU.call(this,e+", errorCode="+L);this.errorCode=L;this.xhr=c;this.name="PromiseAjaxError"}; Tk$=function(e){this.xhr=e}; fQ=function(e){this.X=e===void 0?null:e;this.Z=0;this.K=null}; AF=function(e){var L=new fQ;e=e===void 0?null:e;L.Z=2;L.K=e===void 0?null:e;return L}; F1=function(e){var L=new fQ;e=e===void 0?null:e;L.Z=1;L.K=e===void 0?null:e;return L}; g.GZ=function(e,L,c,I,B){bL||iL.set(""+e,L,{IN:c,path:"/",domain:I===void 0?"youtube.com":I,secure:B===void 0?!1:B})}; g.ka=function(e,L){if(!bL)return iL.get(""+e,L)}; g.DM=function(e,L,c){bL||iL.remove(""+e,L===void 0?"/":L,c===void 0?"youtube.com":c)}; Wa$=function(){if(g.uL("embeds_web_enable_cookie_detection_fix")){if(!g.LZ.navigator.cookieEnabled)return!1}else if(!iL.isEnabled())return!1;if(!iL.isEmpty())return!0;g.uL("embeds_web_enable_cookie_detection_fix")?iL.set("TESTCOOKIESENABLED","1",{IN:60,kkW:"none",secure:!0}):iL.set("TESTCOOKIESENABLED","1",{IN:60});if(iL.get("TESTCOOKIESENABLED")!=="1")return!1;iL.remove("TESTCOOKIESENABLED");return!0}; g.Q=function(e,L){if(e)return e[L.name]}; wa=function(e){var L=g.Zu("INNERTUBE_HOST_OVERRIDE");L&&(e=String(L)+String(uT(e)));return e}; M1c=function(e){var L={};g.uL("json_condensed_response")&&(L.prettyPrint="false");return e=KT(e,L)}; JF=function(e,L){var c=c===void 0?{}:c;e={method:L===void 0?"POST":L,mode:YJ(e)?"same-origin":"cors",credentials:YJ(e)?"same-origin":"include"};L={};for(var I=g.f(Object.keys(c)),B=I.next();!B.done;B=I.next())B=B.value,c[B]&&(L[B]=c[B]);Object.keys(L).length>0&&(e.headers=L);return e}; V2=function(){var e=/Chrome\/(\d+)/.exec(g.yc());return e?parseFloat(e[1]):NaN}; CQ=function(){var e=/\sCobalt\/(\S+)\s/.exec(g.yc());if(!e)return NaN;var L=[];e=g.f(e[1].split("."));for(var c=e.next();!c.done;c=e.next())c=parseInt(c.value,10),c>=0&&L.push(c);return parseFloat(L.join("."))}; NL=function(){return g.aC("android")&&g.aC("chrome")&&!(g.aC("trident/")||g.aC("edge/"))&&!g.aC("cobalt")}; zLM=function(){return g.aC("armv7")||g.aC("aarch64")||g.aC("android")}; g.m2=function(){return g.aC("cobalt")}; y2=function(){return g.aC("cobalt")&&g.aC("appletv")}; ZM=function(){return g.aC("(ps3; leanback shell)")||g.aC("ps3")&&g.m2()}; sdJ=function(){return g.aC("(ps4; leanback shell)")||g.aC("ps4")&&g.m2()}; g.vdc=function(){return g.m2()&&(g.aC("ps4 vr")||g.aC("ps4 pro vr"))}; pQ=function(){var e=/WebKit\/([0-9]+)/.exec(g.yc());return!!(e&&parseInt(e[1],10)>=600)}; $a=function(){var e=/WebKit\/([0-9]+)/.exec(g.yc());return!!(e&&parseInt(e[1],10)>=602)}; fXn=function(){return g.aC("iemobile")||g.aC("windows phone")&&g.aC("edge")}; lL=function(){return(jG||H3)&&g.aC("applewebkit")&&!g.aC("version")&&(!g.aC("safari")||g.aC("gsa/"))}; Q2=function(){return g.P3&&g.aC("version/")}; da=function(){return g.aC("smart-tv")&&g.aC("samsung")}; g.aC=function(e){var L=g.yc();return L?L.toLowerCase().indexOf(e)>=0:!1}; UN=function(){return x3c()||lL()||Q2()?!0:g.Zu("EOM_VISITOR_DATA")?!1:!0}; EN=function(e,L){return L===void 0||L===null?e:L==="1"||L===!0||L===1||L==="True"?!0:!1}; X1=function(e,L,c){for(var I in c)if(c[I]==L)return c[I];return e}; KQ=function(e,L){return L===void 0||L===null?e:Number(L)}; Ya=function(e,L){return L===void 0||L===null?e:L.toString()}; nQ=function(e,L){if(L){if(e==="fullwidth")return Infinity;if(e==="fullheight")return 0}return e&&(L=e.match(AUn))&&(e=Number(L[2]),L=Number(L[1]),!isNaN(e)&&!isNaN(L)&&e>0)?L/e:NaN}; eL=function(e){var L=e.docid||e.video_id||e.videoId||e.id;if(L)return L;L=e.raw_player_response;L||(e=e.player_response)&&(L=JSON.parse(e));return L&&L.videoDetails&&L.videoDetails.videoId||null}; FaT=function(e){return Lv(e,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.cI=function(e){return e==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||e==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; Lv=function(e,L){L=(L===void 0?0:L)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(L="EMBEDDED_PLAYER_MODE_PFL");var c=e.raw_embedded_player_response;if(!c&&(e=e.embedded_player_response))try{c=JSON.parse(e)}catch(I){return L}return c?X1(L,c.embeddedPlayerMode,baf):L}; BI=function(e){WU.call(this,e.message||e.description||e.name);this.isMissing=e instanceof IG;this.isTimeout=e instanceof zZ&&e.errorCode=="net.timeout";this.isCanceled=e instanceof Ji}; IG=function(){WU.call(this,"Biscotti ID is missing from server")}; iac=function(){if(g.uL("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!UN())return Error("User has not consented - not fetching biscotti id.");var e=g.Zu("PLAYER_VARS",{});if(g.TG(e,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(FaT(e))return Error("Biscotti id fetching has been disabled for pfl.")}; DkM=function(){var e=iac();if(e!==void 0)return kA(e);x5||(x5=sN("//googleads.g.doubleclick.net/pagead/id",Gav).then(gd6).XR(function(L){return kaJ(2,L)})); return x5}; gd6=function(e){e=e.xhr.responseText;if(!wu(e,")]}'"))throw new IG;e=JSON.parse(e.substr(4));if((e.type||1)>1)throw new IG;e=e.id;Hc6(e);x5=F1(e);w0c(18E5,2);return e}; kaJ=function(e,L){L=new BI(L);Hc6("");x5=AF(L);e>0&&w0c(12E4,e-1);throw L;}; w0c=function(e,L){g.oC(function(){sN("//googleads.g.doubleclick.net/pagead/id",Gav).then(gd6,function(c){return kaJ(L,c)}).XR(g.VD)},e)}; JUT=function(){try{var e=g.BU("yt.ads.biscotti.getId_");return e?e():DkM()}catch(L){return kA(L)}}; Crc=function(e){e&&(e.dataset?e.dataset[V1v()]="true":IJv(e))}; aXH=function(e){return e?e.dataset?e.dataset[V1v()]:e.getAttribute("data-loaded"):null}; V1v=function(){return Nkf.loaded||(Nkf.loaded="loaded".replace(/\-([a-z])/g,function(e,L){return L.toUpperCase()}))}; mkx=function(){var e=document;if("visibilityState"in e)return e.visibilityState;var L=oG+"VisibilityState";if(L in e)return e[L]}; SL=function(e,L){var c;jW(e,function(I){c=L[I];return!!c}); return c}; rs=function(e){if(e.requestFullscreen)e=e.requestFullscreen(void 0);else if(e.webkitRequestFullscreen)e=e.webkitRequestFullscreen();else if(e.mozRequestFullScreen)e=e.mozRequestFullScreen();else if(e.msRequestFullscreen)e=e.msRequestFullscreen();else if(e.webkitEnterFullscreen)e=e.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return e instanceof Promise?e:Promise.resolve()}; uS=function(e){var L;g.h7()?RG()==e&&(L=document):L=e;return L&&(e=SL(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],L))?(L=e.call(L),L instanceof Promise?L:Promise.resolve()):Promise.resolve()}; yUc=function(e){return g.vU(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(L){return"on"+L.toLowerCase()in e})}; Zac=function(){var e=document;return g.vU(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(L){return"on"+L.toLowerCase()in e})}; g.h7=function(){return!!SL(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; RG=function(e){e=e===void 0?!1:e;var L=SL(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(e)for(;L&&L.shadowRoot;)L=L.shadowRoot.fullscreenElement;return L?L:null}; t7=function(e){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(e=e||window.event){this.event=e;for(var L in e)L in p0c||(this[L]=e[L]);this.scale=e.scale;this.rotation=e.rotation;var c=e.target||e.srcElement;c&&c.nodeType==3&&(c=c.parentNode);this.target=c;var I=e.relatedTarget; if(I)try{I=I.nodeName?I:null}catch(B){I=null}else this.type=="mouseover"?I=e.fromElement:this.type=="mouseout"&&(I=e.toElement);this.relatedTarget=I;this.clientX=e.clientX!=void 0?e.clientX:e.pageX;this.clientY=e.clientY!=void 0?e.clientY:e.pageY;this.keyCode=e.keyCode?e.keyCode:e.which;this.charCode=e.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=e.altKey;this.ctrlKey=e.ctrlKey;this.shiftKey=e.shiftKey;this.metaKey=e.metaKey;this.X=e.pageX;this.K=e.pageY}}catch(B){}}; $kc=function(e){if(document.body&&document.documentElement){var L=document.body.scrollTop+document.documentElement.scrollTop;e.X=e.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);e.K=e.clientY+L}}; jdn=function(e,L,c,I){I=I===void 0?{}:I;e.addEventListener&&(L!="mouseenter"||"onmouseenter"in document?L!="mouseleave"||"onmouseenter"in document?L=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(L="MozMousePixelScroll"):L="mouseout":L="mouseover");return Oo(OR,function(B){var x=typeof B[4]==="boolean"&&B[4]==!!I,S=g.Se(B[4])&&g.Se(I)&&g.W2(B[4],I);return!!B.length&&B[0]==e&&B[1]==L&&B[2]==c&&(x||S)})}; g.qx=function(e,L,c,I){I=I===void 0?{}:I;if(!e||!e.addEventListener&&!e.attachEvent)return"";var B=jdn(e,L,c,I);if(B)return B;B=++Han.count+"";var x=!(L!="mouseenter"&&L!="mouseleave"||!e.addEventListener||"onmouseenter"in document);var S=x?function(h){h=new t7(h);if(!i3(h.relatedTarget,function(R){return R==e},!0))return h.currentTarget=e,h.type=L,c.call(e,h)}:function(h){h=new t7(h); h.currentTarget=e;return c.call(e,h)}; S=g.Hu(S);e.addEventListener?(L=="mouseenter"&&x?L="mouseover":L=="mouseleave"&&x?L="mouseout":L=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(L="MozMousePixelScroll"),lXc()||typeof I==="boolean"?e.addEventListener(L,S,I):e.addEventListener(L,S,!!I.capture)):e.attachEvent("on"+L,S);OR[B]=[e,L,c,S,I];return B}; Qdf=function(e){return PrJ(e,function(L){return g.Ks(L,"ytp-ad-has-logging-urls")})}; PrJ=function(e,L){var c=document.body||document;return g.qx(c,"click",function(I){var B=i3(I.target,function(x){return x===c||L(x)},!0); B&&B!==c&&!B.disabled&&(I.currentTarget=B,e.call(B,I))})}; g.Tx=function(e){e&&(typeof e=="string"&&(e=[e]),g.KZ(e,function(L){if(L in OR){var c=OR[L],I=c[0],B=c[1],x=c[3];c=c[4];I.removeEventListener?lXc()||typeof c==="boolean"?I.removeEventListener(B,x,c):I.removeEventListener(B,x,!!c.capture):I.detachEvent&&I.detachEvent("on"+B,x);delete OR[L]}}))}; WI=function(e){for(var L in OR)OR[L][0]==e&&g.Tx(L)}; Mx=function(e){e=e||window.event;var L;e.composedPath&&typeof e.composedPath==="function"?L=e.composedPath():L=e.path;L&&L.length?e=L[0]:(e=e||window.event,e=e.target||e.srcElement,e.nodeType==3&&(e=e.parentNode));return e}; zx=function(e){this.T=e;this.X=null;this.G=0;this.j=null;this.B=0;this.K=[];for(e=0;e<4;e++)this.K.push(0);this.Z=0;this.h7=g.qx(window,"mousemove",(0,g.RL)(this.D,this));this.J=g.SG((0,g.RL)(this.pS,this),25)}; sR=function(e){g.p.call(this);this.T=[];this.Kf=e||this}; vI=function(e,L,c,I){for(var B=0;B0?c:0;c=I?Date.now()+I*1E3:0;if((I=I?(0,g.A7)():FF())&&window.JSON){typeof L!=="string"&&(L=JSON.stringify(L,void 0));try{I.set(e,L,c)}catch(B){I.remove(e)}}}; g.iS=function(e){var L=FF(),c=(0,g.A7)();if(!L&&!c||!window.JSON)return null;try{var I=L.get(e)}catch(B){}if(typeof I!=="string")try{I=c.get(e)}catch(B){}if(typeof I!=="string")return null;try{I=JSON.parse(I,void 0)}catch(B){}return I}; Ukc=function(){var e=(0,g.A7)();if(e&&(e=e.K("yt-player-quality")))return e.creation}; g.Gx=function(e){try{var L=FF(),c=(0,g.A7)();L&&L.remove(e);c&&c.remove(e)}catch(I){}}; g.gs=function(){return g.iS("yt-remote-session-screen-id")}; EdJ=function(e){var L=this;this.K=void 0;this.X=!1;e.addEventListener("beforeinstallprompt",function(c){c.preventDefault();L.K=c}); e.addEventListener("appinstalled",function(){L.X=!0},{once:!0})}; k5=function(){if(!g.LZ.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.LZ.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.LZ.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.LZ.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.LZ.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(e){return"WEB_DISPLAY_MODE_UNKNOWN"}}; D8=function(){this.yI=!0}; X06=function(){D8.instance||(D8.instance=new D8);return D8.instance}; Kan=function(e){switch(e){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}}; YAR=function(){this.X=g.Zu("ALT_PREF_COOKIE_NAME","PREF");this.K=g.Zu("ALT_PREF_COOKIE_DOMAIN","youtube.com");var e=g.ka(this.X);e&&this.parse(e)}; g.J7=function(){ws||(ws=new YAR);return ws}; g.Vu=function(e,L){return!!((ndT("f"+(Math.floor(L/31)+1))||0)&1<0;)switch(e=L$.shift(),e.type){case "ERROR":Kv.C6(e.payload);break;case "EVENT":Kv.logEvent(e.eventType,e.payload)}}; IM=function(e){cK||(Kv?Kv.C6(e):(L$.push({type:"ERROR",payload:e}),L$.length>10&&L$.shift()))}; BK=function(e,L){cK||(Kv?Kv.logEvent(e,L):(L$.push({type:"EVENT",eventType:e,payload:L}),L$.length>10&&L$.shift()))}; xi=function(e){if(e.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; oM=function(e){return e.substr(0,e.indexOf(":"))||e}; g.St=function(e,L,c,I,B){L=L===void 0?{}:L;c=c===void 0?S1T[e]:c;I=I===void 0?rSx[e]:I;B=B===void 0?hDR[e]:B;g.yu.call(this,c,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:e},L));this.type=e;this.message=c;this.level=I;this.X=B;Object.setPrototypeOf(this,g.St.prototype)}; rm=function(e,L){g.St.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:L,foundObjectStores:e},S1T.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,rm.prototype)}; hg=function(e,L){var c=Error.call(this);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.index=e;this.objectStore=L;Object.setPrototypeOf(this,hg.prototype)}; uE=function(e,L,c,I){L=oM(L);var B=e instanceof Error?e:Error("Unexpected error: "+e);if(B instanceof g.St)return B;e={objectStoreNames:c,dbName:L,dbVersion:I};if(B.name==="QuotaExceededError")return new g.St("QUOTA_EXCEEDED",e);if(g.RM&&B.name==="UnknownError")return new g.St("QUOTA_MAYBE_EXCEEDED",e);if(B instanceof hg)return new g.St("MISSING_INDEX",Object.assign({},e,{objectStore:B.objectStore,index:B.index}));if(B.name==="InvalidStateError"&&RDr.some(function(x){return B.message.includes(x)}))return new g.St("EXECUTE_TRANSACTION_ON_CLOSED_DB", e); if(B.name==="AbortError")return new g.St("UNKNOWN_ABORT",e,B.message);B.args=[Object.assign({},e,{name:"IdbError",ES:B.name})];B.level="WARNING";return B}; g.tg=function(e,L,c){var I=XF();return new g.St("IDB_NOT_SUPPORTED",{context:{caller:e,publicName:L,version:c,hasSucceededOnce:I==null?void 0:I.hasSucceededOnce}})}; uVc=function(e){if(!e)throw Error();throw e;}; t9x=function(e){return e}; OL=function(e){this.X=e}; g.qO=function(e){function L(B){if(I.state.status==="PENDING"){I.state={status:"REJECTED",reason:B};B=g.f(I.K);for(var x=B.next();!x.done;x=B.next())x=x.value,x()}} function c(B){if(I.state.status==="PENDING"){I.state={status:"FULFILLED",value:B};B=g.f(I.X);for(var x=B.next();!x.done;x=B.next())x=x.value,x()}} var I=this;this.state={status:"PENDING"};this.X=[];this.K=[];e=e.X;try{e(c,L)}catch(B){L(B)}}; OsJ=function(e,L,c,I,B){try{if(e.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var x=c(e.state.value);x instanceof g.qO?TI(e,L,x,I,B):I(x)}catch(S){B(S)}}; q1v=function(e,L,c,I,B){try{if(e.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var x=c(e.state.reason);x instanceof g.qO?TI(e,L,x,I,B):I(x)}catch(S){B(S)}}; TI=function(e,L,c,I,B){L===c?B(new TypeError("Circular promise chain detected.")):c.then(function(x){x instanceof g.qO?TI(e,L,x,I,B):I(x)},function(x){B(x)})}; TGx=function(e,L,c){function I(){c(e.error);x()} function B(){L(e.result);x()} function x(){try{e.removeEventListener("success",B),e.removeEventListener("error",I)}catch(S){}} e.addEventListener("success",B);e.addEventListener("error",I)}; Wn$=function(e){return new Promise(function(L,c){TGx(e,L,c)})}; WK=function(e){return new g.qO(new OL(function(L,c){TGx(e,L,c)}))}; MO=function(e,L){return new g.qO(new OL(function(c,I){function B(){var x=e?L(e):null;x?x.then(function(S){e=S;B()},I):c()} B()}))}; M9c=function(e,L){this.request=e;this.cursor=L}; zDM=function(e){return WK(e).then(function(L){return L?new M9c(e,L):null})}; g.sbc=function(e){e.cursor.continue(void 0);return zDM(e.request)}; v4n=function(e,L){this.X=e;this.options=L;this.transactionCount=0;this.Z=Math.round((0,g.zI)());this.K=!1}; g.vK=function(e,L,c){e=e.X.createObjectStore(L,c);return new sL(e)}; f$=function(e,L){e.X.objectStoreNames.contains(L)&&e.X.deleteObjectStore(L)}; g.bE=function(e,L,c){return g.Ag(e,[L],{mode:"readwrite",tK:!0},function(I){return g.F9(I.objectStore(L),c)})}; g.Ag=function(e,L,c,I){var B,x,S,h,R,u,t,O,q,T,W,A;return g.Z(function(b){switch(b.K){case 1:var J={mode:"readonly",tK:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof c==="string"?J.mode=c:Object.assign(J,c);B=J;e.transactionCount++;x=B.tK?3:1;S=0;case 2:if(h){b.Iq(4);break}S++;R=Math.round((0,g.zI)());g.bn(b,5);u=e.X.transaction(L,B.mode);J=new iE(u);J=f$c(J,I);return g.a(b,J,7);case 7:return t=b.X,O=Math.round((0,g.zI)()),ASn(e,R,O,S,void 0,L.join(),B),b.return(t);case 5:q=g.wc(b);T=Math.round((0,g.zI)()); W=uE(q,e.X.name,L.join(),e.X.version);if((A=W instanceof g.St&&!W.X)||S>=x)ASn(e,R,T,S,W,L.join(),B),h=W;b.Iq(2);break;case 4:return b.return(Promise.reject(h))}})}; ASn=function(e,L,c,I,B,x,S){L=c-L;B?(B instanceof g.St&&(B.type==="QUOTA_EXCEEDED"||B.type==="QUOTA_MAYBE_EXCEEDED")&&BK("QUOTA_EXCEEDED",{dbName:oM(e.X.name),objectStoreNames:x,transactionCount:e.transactionCount,transactionMode:S.mode}),B instanceof g.St&&B.type==="UNKNOWN_ABORT"&&(c-=e.Z,c<0&&c>=2147483648&&(c=0),BK("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:x,transactionDuration:L,transactionCount:e.transactionCount,dbDuration:c}),e.K=!0),FnM(e,!1,I,x,L,S.tag),IM(B)):FnM(e,!0,I,x,L, S.tag)}; FnM=function(e,L,c,I,B,x){BK("TRANSACTION_ENDED",{objectStoreNames:I,connectionHasUnknownAbortedTransaction:e.K,duration:B,isSuccessful:L,tryCount:c,tag:x===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":x})}; sL=function(e){this.X=e}; g.GI=function(e,L,c){e.X.createIndex(L,c,{unique:!1})}; bs6=function(e,L){return g.gm(e,{query:L},function(c){return c.delete().then(function(){return g.ki(c)})}).then(function(){})}; isM=function(e,L,c){var I=[];return g.gm(e,{query:L},function(B){if(!(c!==void 0&&I.length>=c))return I.push(B.getValue()),g.ki(B)}).then(function(){return I})}; g4r=function(e){return"getAllKeys"in IDBObjectStore.prototype?WK(e.X.getAllKeys(void 0,void 0)):Gfv(e)}; Gfv=function(e){var L=[];return g.kf$(e,{query:void 0},function(c){L.push(c.cursor.primaryKey);return g.sbc(c)}).then(function(){return L})}; g.F9=function(e,L,c){return WK(e.X.put(L,c))}; g.gm=function(e,L,c){e=e.X.openCursor(L.query,L.direction);return DQ(e).then(function(I){return MO(I,c)})}; g.kf$=function(e,L,c){var I=L.query;L=L.direction;e="openKeyCursor"in IDBObjectStore.prototype?e.X.openKeyCursor(I,L):e.X.openCursor(I,L);return zDM(e).then(function(B){return MO(B,c)})}; iE=function(e){var L=this;this.X=e;this.Z=new Map;this.K=!1;this.done=new Promise(function(c,I){L.X.addEventListener("complete",function(){c()}); L.X.addEventListener("error",function(B){B.currentTarget===B.target&&I(L.X.error)}); L.X.addEventListener("abort",function(){var B=L.X.error;if(B)I(B);else if(!L.K){B=g.St;for(var x=L.X.objectStoreNames,S=[],h=0;h=c))return I.push(B.getValue()),g.ki(B)}).then(function(){return I})}; g.wm=function(e,L,c){e=e.X.openCursor(L.query===void 0?null:L.query,L.direction===void 0?"next":L.direction);return DQ(e).then(function(I){return MO(I,c)})}; Jg=function(e,L){this.request=e;this.cursor=L}; DQ=function(e){return WK(e).then(function(L){return L?new Jg(e,L):null})}; g.ki=function(e){e.cursor.continue(void 0);return DQ(e.request)}; JSc=function(e,L,c){return new Promise(function(I,B){function x(){q||(q=new v4n(S.result,{closed:O}));return q} var S=L!==void 0?self.indexedDB.open(e,L):self.indexedDB.open(e);var h=c.blocked,R=c.blocking,u=c.eM_,t=c.upgrade,O=c.closed,q;S.addEventListener("upgradeneeded",function(T){try{if(T.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(S.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");T.dataLoss&&T.dataLoss!=="none"&&BK("IDB_DATA_CORRUPTED",{reason:T.dataLossMessage||"unknown reason",dbName:oM(e)});var W=x(),A=new iE(S.transaction); t&&t(W,function(b){return T.oldVersion=b},A); A.done.catch(function(b){B(b)})}catch(b){B(b)}}); S.addEventListener("success",function(){var T=S.result;R&&T.addEventListener("versionchange",function(){R(x())}); T.addEventListener("close",function(){BK("IDB_UNEXPECTEDLY_CLOSED",{dbName:oM(e),dbVersion:T.version});u&&u()}); I(x())}); S.addEventListener("error",function(){B(S.error)}); h&&S.addEventListener("blocked",function(){h()})})}; V9J=function(e,L,c){c=c===void 0?{}:c;return JSc(e,L,c)}; Va=function(e,L){L=L===void 0?{}:L;var c,I,B,x;return g.Z(function(S){if(S.K==1)return g.bn(S,2),c=self.indexedDB.deleteDatabase(e),I=L,(B=I.blocked)&&c.addEventListener("blocked",function(){B()}),g.a(S,Wn$(c),4); if(S.K!=2)return g.DR(S,0);x=g.wc(S);throw uE(x,e,"",-1);})}; C$=function(e,L){this.name=e;this.options=L;this.Z=!0;this.B=this.G=0}; CBf=function(e,L){return new g.St("INCOMPATIBLE_DB_VERSION",{dbName:e.name,oldVersion:e.options.version,newVersion:L})}; g.aM=function(e,L){if(!L)throw g.tg("openWithToken",oM(e.name));return e.open()}; a$M=function(e,L){var c;return g.Z(function(I){if(I.K==1)return g.a(I,g.aM(NO,L),2);c=I.X;return I.return(g.Ag(c,["databases"],{tK:!0,mode:"readwrite"},function(B){var x=B.objectStore("databases");return x.get(e.actualName).then(function(S){if(S?e.actualName!==S.actualName||e.publicName!==S.publicName||e.userIdentifier!==S.userIdentifier:1)return g.F9(x,e).then(function(){})})}))})}; md=function(e,L){var c;return g.Z(function(I){if(I.K==1)return e?g.a(I,g.aM(NO,L),2):I.return();c=I.X;return I.return(c.delete("databases",e))})}; NG$=function(e,L){var c,I;return g.Z(function(B){return B.K==1?(c=[],g.a(B,g.aM(NO,L),2)):B.K!=3?(I=B.X,g.a(B,g.Ag(I,["databases"],{tK:!0,mode:"readonly"},function(x){c.length=0;return g.gm(x.objectStore("databases"),{},function(S){e(S.getValue())&&c.push(S.getValue());return g.ki(S)})}),3)):B.return(c)})}; mAf=function(e,L){return NG$(function(c){return c.publicName===e&&c.userIdentifier!==void 0},L)}; ySx=function(){var e,L,c,I;return g.Z(function(B){switch(B.K){case 1:e=XF();if((L=e)==null?0:L.hasSucceededOnce)return B.return(!0);if(ya&&pQ()&&!$a()||g.ZQ)return B.return(!1);try{if(c=self,!(c.indexedDB&&c.IDBIndex&&c.IDBKeyRange&&c.IDBObjectStore))return B.return(!1)}catch(x){return B.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return B.return(!1);g.bn(B,2);I={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.a(B,a$M(I,p$),4);case 4:return g.a(B,md("yt-idb-test-do-not-use",p$),5);case 5:return B.return(!0);case 2:return g.wc(B),B.return(!1)}})}; Zsc=function(){if($i!==void 0)return $i;cK=!0;return $i=ySx().then(function(e){cK=!1;var L;if((L=ER())!=null&&L.X){var c;L={hasSucceededOnce:((c=XF())==null?void 0:c.hasSucceededOnce)||e};var I;(I=ER())==null||I.set("LAST_RESULT_ENTRY_KEY",L,2592E3,!0)}return e})}; jt=function(){return g.BU("ytglobal.idbToken_")||void 0}; g.HK=function(){var e=jt();return e?Promise.resolve(e):Zsc().then(function(L){(L=L?p$:void 0)&&g.IL("ytglobal.idbToken_",L);return L})}; pTx=function(e){if(!g.pv())throw e=new g.St("AUTH_INVALID",{dbName:e}),IM(e),e;var L=g.Z8();return{actualName:e+":"+L,publicName:e,userIdentifier:L}}; $A6=function(e,L,c,I){var B,x,S,h,R,u;return g.Z(function(t){switch(t.K){case 1:return x=(B=Error().stack)!=null?B:"",g.a(t,g.HK(),2);case 2:S=t.X;if(!S)throw h=g.tg("openDbImpl",e,L),g.uL("ytidb_async_stack_killswitch")||(h.stack=h.stack+"\n"+x.substring(x.indexOf("\n")+1)),IM(h),h;xi(e);R=c?{actualName:e,publicName:e,userIdentifier:void 0}:pTx(e);g.bn(t,3);return g.a(t,a$M(R,S),5);case 5:return g.a(t,V9J(R.actualName,L,I),6);case 6:return t.return(t.X);case 3:return u=g.wc(t),g.bn(t,7),g.a(t,md(R.actualName, S),9);case 9:g.DR(t,8);break;case 7:g.wc(t);case 8:throw u;}})}; jbn=function(e,L,c){c=c===void 0?{}:c;return $A6(e,L,!1,c)}; Hsx=function(e,L,c){c=c===void 0?{}:c;return $A6(e,L,!0,c)}; l$v=function(e,L){L=L===void 0?{}:L;var c,I;return g.Z(function(B){if(B.K==1)return g.a(B,g.HK(),2);if(B.K!=3){c=B.X;if(!c)return B.return();xi(e);I=pTx(e);return g.a(B,Va(I.actualName,L),3)}return g.a(B,md(I.actualName,c),0)})}; PBf=function(e,L,c){e=e.map(function(I){return g.Z(function(B){return B.K==1?g.a(B,Va(I.actualName,L),2):g.a(B,md(I.actualName,c),0)})}); return Promise.all(e).then(function(){})}; Qb$=function(e){var L=L===void 0?{}:L;var c,I;return g.Z(function(B){if(B.K==1)return g.a(B,g.HK(),2);if(B.K!=3){c=B.X;if(!c)return B.return();xi(e);return g.a(B,mAf(e,c),3)}I=B.X;return g.a(B,PBf(I,L,c),0)})}; dAx=function(e,L){L=L===void 0?{}:L;var c;return g.Z(function(I){if(I.K==1)return g.a(I,g.HK(),2);if(I.K!=3){c=I.X;if(!c)return I.return();xi(e);return g.a(I,Va(e,L),3)}return g.a(I,md(e,c),0)})}; lE=function(e,L){C$.call(this,e,L);this.options=L;xi(e)}; UAx=function(e,L){var c;return function(){c||(c=new lE(e,L));return c}}; g.PK=function(e,L){return UAx(e,L)}; Qa=function(e){return g.aM(E4c(),e)}; XTn=function(e,L,c,I){var B,x,S;return g.Z(function(h){switch(h.K){case 1:return B={config:e,hashData:L,timestamp:I!==void 0?I:(0,g.zI)()},g.a(h,Qa(c),2);case 2:return x=h.X,g.a(h,x.clear("hotConfigStore"),3);case 3:return g.a(h,g.bE(x,"hotConfigStore",B),4);case 4:return S=h.X,h.return(S)}})}; Kn6=function(e,L,c,I,B){var x,S,h;return g.Z(function(R){switch(R.K){case 1:return x={config:e,hashData:L,configData:c,timestamp:B!==void 0?B:(0,g.zI)()},g.a(R,Qa(I),2);case 2:return S=R.X,g.a(R,S.clear("coldConfigStore"),3);case 3:return g.a(R,g.bE(S,"coldConfigStore",x),4);case 4:return h=R.X,R.return(h)}})}; Y1v=function(e){var L,c;return g.Z(function(I){return I.K==1?g.a(I,Qa(e),2):I.K!=3?(L=I.X,c=void 0,g.a(I,g.Ag(L,["coldConfigStore"],{mode:"readwrite",tK:!0},function(B){return g.wm(B.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(x){c=x.getValue()})}),3)):I.return(c)})}; n46=function(e){var L,c;return g.Z(function(I){return I.K==1?g.a(I,Qa(e),2):I.K!=3?(L=I.X,c=void 0,g.a(I,g.Ag(L,["hotConfigStore"],{mode:"readwrite",tK:!0},function(B){return g.wm(B.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(x){c=x.getValue()})}),3)):I.return(c)})}; eQr=function(){return g.Z(function(e){return g.a(e,Qb$("ytGcfConfig"),0)})}; dm=function(){g.p.call(this);this.K=[];this.X=[];var e=g.BU("yt.gcf.config.hotUpdateCallbacks");e?(this.K=[].concat(g.V(e)),this.X=e):(this.X=[],g.IL("yt.gcf.config.hotUpdateCallbacks",this.X))}; n$=function(){var e=this;this.B=!1;this.Z=this.G=0;this.j=new dm;this.kx={uy0:function(){e.B=!0}, Rq9:function(){return e.X}, gte:function(L){UL(e,L)}, jq:function(L){e.jq(L)}, wHq:function(L){EL(e,L)}, wL:function(){return e.coldHashData}, Fl:function(){return e.hotHashData}, F57:function(){return e.K}, tjl:function(){return X9()}, ojW:function(){return K$()}, wD0:function(){return g.BU("yt.gcf.config.coldHashData")}, Mje:function(){return g.BU("yt.gcf.config.hotHashData")}, Ete:function(){Lev(e)}, RJq:function(){e.jq(void 0);Yi(e);delete n$.instance}, P3Y:function(L){e.Z=L}, c8$:function(){return e.Z}}}; cLM=function(){if(!n$.instance){var e=new n$;n$.instance=e}return n$.instance}; xZr=function(e){var L;g.Z(function(c){if(c.K==1)return g.uL("start_client_gcf")||g.uL("delete_gcf_config_db")?g.uL("start_client_gcf")?g.a(c,g.HK(),3):c.Iq(2):c.return();c.K!=2&&((L=c.X)&&g.pv()&&!g.uL("delete_gcf_config_db")?(e.B=!0,Lev(e)):(IWR(e),Bp6(e)));return g.uL("delete_gcf_config_db")?g.a(c,eQr(),0):c.Iq(0)})}; e4=function(){var e;return(e=K$())!=null?e:g.Zu("RAW_HOT_CONFIG_GROUP")}; o2r=function(e){var L,c,I,B,x,S;return g.Z(function(h){switch(h.K){case 1:if(e.K)return h.return(K$());if(!e.B)return L=g.tg("getHotConfig IDB not initialized"),ld(L),h.return(Promise.reject(L));c=jt();I=g.Zu("TIME_CREATED_MS");if(!c){B=g.tg("getHotConfig token error");ld(B);h.Iq(2);break}return g.a(h,n46(c),3);case 3:if((x=h.X)&&x.timestamp>I)return UL(e,x.config),e.jq(x.hashData),h.return(K$());case 2:Bp6(e);if(!(c&&e.K&&e.hotHashData)){h.Iq(4);break}return g.a(h,XTn(e.K,e.hotHashData,c,I),4);case 4:return e.K? h.return(K$()):(S=new g.yu("Config not available in ytConfig"),ld(S),h.return(Promise.reject(S)))}})}; rL$=function(e){var L,c,I,B,x,S;return g.Z(function(h){switch(h.K){case 1:if(e.X)return h.return(X9());if(!e.B)return L=g.tg("getColdConfig IDB not initialized"),ld(L),h.return(Promise.reject(L));c=jt();I=g.Zu("TIME_CREATED_MS");if(!c){B=g.tg("getColdConfig");ld(B);h.Iq(2);break}return g.a(h,Y1v(c),3);case 3:if((x=h.X)&&x.timestamp>I)return EL(e,x.config),SmT(e,x.configData),Yi(e,x.hashData),h.return(X9());case 2:IWR(e);if(!(c&&e.X&&e.coldHashData&&e.configData)){h.Iq(4);break}return g.a(h,Kn6(e.X, e.coldHashData,e.configData,c,I),4);case 4:return e.X?h.return(X9()):(S=new g.yu("Config not available in ytConfig"),ld(S),h.return(Promise.reject(S)))}})}; Lev=function(e){if(!e.K||!e.X){if(!jt()){var L=g.tg("scheduleGetConfigs");ld(L)}e.G||(e.G=g.Vw.dg(function(){return g.Z(function(c){switch(c.K){case 1:return g.bn(c,2),g.a(c,o2r(e),4);case 4:g.DR(c,3);break;case 2:g.wc(c);case 3:return g.bn(c,5),g.a(c,rL$(e),7);case 7:g.DR(c,6);break;case 5:g.wc(c);case 6:e.G&&(e.G=0),g.AJ(c)}})},100))}}; hQn=function(e,L,c){var I,B,x;return g.Z(function(S){switch(S.K){case 1:if(!g.uL("start_client_gcf")){S.Iq(0);break}c&&UL(e,c);e.jq(L);I=jt();if(!I){S.Iq(3);break}if(c){S.Iq(4);break}return g.a(S,n46(I),5);case 5:B=S.X,c=(x=B)==null?void 0:x.config;case 4:return g.a(S,XTn(c,L,I),3);case 3:if(c)for(var h=c,R=g.f(e.j.X),u=R.next();!u.done;u=R.next())u=u.value,u(h);g.AJ(S)}})}; RQv=function(e,L,c){var I,B,x,S;return g.Z(function(h){if(h.K==1){if(!g.uL("start_client_gcf"))return h.Iq(0);Yi(e,L);return(I=jt())?c?h.Iq(4):g.a(h,Y1v(I),5):h.Iq(0)}h.K!=4&&(B=h.X,c=(x=B)==null?void 0:x.config);if(!c)return h.Iq(0);S=c.configData;return g.a(h,Kn6(c,L,S,I),0)})}; uZc=function(){var e=cLM(),L=(0,g.zI)()-e.Z;if(!(e.Z!==0&&L0&&(L.request={internalExperimentFlags:c});O1J(e,void 0,L);qmr(void 0,L);Tpc(void 0,L);WeR(e,void 0,L);MZR(void 0,L);g.uL("start_client_gcf")&&zQf(void 0,L);g.Zu("DELEGATED_SESSION_ID")&& !g.uL("pageid_as_header_web")&&(L.user={onBehalfOfUser:g.Zu("DELEGATED_SESSION_ID")});!g.uL("fill_delegate_context_in_gel_killswitch")&&(e=g.Zu("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(L.user=Object.assign({},L.user,{serializedDelegationContext:e}));e=g.Zu("INNERTUBE_CONTEXT");var I;if(g.uL("enable_persistent_device_token")&&(e==null?0:(I=e.client)==null?0:I.rolloutToken)){var B;L.client.rolloutToken=e==null?void 0:(B=e.client)==null?void 0:B.rolloutToken}I=Object;B=I.assign;e=L.client; c={};for(var x=g.f(Object.entries(dW(g.Zu("DEVICE","")))),S=x.next();!S.done;S=x.next()){var h=g.f(S.value);S=h.next().value;h=h.next().value;S==="cbrand"?c.deviceMake=h:S==="cmodel"?c.deviceModel=h:S==="cbr"?c.browserName=h:S==="cbrver"?c.browserVersion=h:S==="cos"?c.osName=h:S==="cosver"?c.osVersion=h:S==="cplatform"&&(c.platform=h)}L.client=B.call(I,e,c);return L}; O1J=function(e,L,c){e=e.cW;if(e==="WEB"||e==="MWEB"||e===1||e===2)if(L){c=zJ(L,se,96)||new se;var I=k5();I=Object.keys(sAR).indexOf(I);I=I===-1?null:I;I!==null&&m3(c,3,I);b6(L,se,96,c)}else c&&(c.client.mainAppWebInfo=(I=c.client.mainAppWebInfo)!=null?I:{},c.client.mainAppWebInfo.webDisplayMode=k5())}; qmr=function(e,L){var c=g.BU("yt.embedded_player.embed_url");c&&(e?(L=zJ(e,bd,7)||new bd,a7(L,4,c),b6(e,bd,7,L)):L&&(L.thirdParty={embedUrl:c}))}; Tpc=function(e,L){var c;if(g.uL("web_log_memory_total_kbytes")&&((c=g.LZ.navigator)==null?0:c.deviceMemory)){var I;c=(I=g.LZ.navigator)==null?void 0:I.deviceMemory;e?er(e,95,AT(c*1E6)):L&&(L.client.memoryTotalKbytes=""+c*1E6)}}; WeR=function(e,L,c){if(e.appInstallData)if(L){var I;c=(I=zJ(L,zw,62))!=null?I:new zw;a7(c,6,e.appInstallData);b6(L,zw,62,c)}else c&&(c.client.configInfo=c.client.configInfo||{},c.client.configInfo.appInstallData=e.appInstallData)}; MZR=function(e,L){var c=cSn();c&&(e?m3(e,61,v2H[c]):L&&(L.client.connectionType=c));g.uL("web_log_effective_connection_type")&&(c=BGT())&&(e?m3(e,94,fWT[c]):L&&(L.client.effectiveConnectionType=c))}; ALH=function(e,L,c){c=c===void 0?{}:c;var I={};g.Zu("EOM_VISITOR_DATA")?I={"X-Goog-EOM-Visitor-Id":g.Zu("EOM_VISITOR_DATA")}:I={"X-Goog-Visitor-Id":c.visitorData||g.Zu("VISITOR_DATA","")};if(L&&L.includes("www.youtube-nocookie.com"))return I;L=c.aV||g.Zu("AUTHORIZATION");L||(e?L="Bearer "+g.BU("gapi.auth.getToken")().access_token:(e=X06().ZE(B4),g.uL("pageid_as_header_web")||delete e["X-Goog-PageId"],I=Object.assign({},I,e)));L&&(I.Authorization=L);return I}; zQf=function(e,L){var c=uZc();if(c){var I=c.coldConfigData,B=c.coldHashData;c=c.hotHashData;if(e){var x;L=(x=zJ(e,zw,62))!=null?x:new zw;I=a7(L,1,I);a7(I,3,B).jq(c);b6(e,zw,62,L)}else L&&(L.client.configInfo=L.client.configInfo||{},I&&(L.client.configInfo.coldConfigData=I),B&&(L.client.configInfo.coldHashData=B),c&&(L.client.configInfo.hotHashData=c))}}; xR=function(e,L){this.version=e;this.args=L}; of=function(e,L){this.topic=e;this.X=L}; rO=function(e,L){var c=S4();c&&c.publish.call(c,e.toString(),e,L)}; i1J=function(e){var L=Fen,c=S4();if(!c)return 0;var I=c.subscribe(L.toString(),function(B,x){var S=g.BU("ytPubsub2Pubsub2SkipSubKey");S&&S==I||(S=function(){if(hH[I])try{if(x&&L instanceof of&&L!=B)try{var h=L.X,R=x;if(!R.args||!R.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!h.zf){var u=new h;h.zf=u.version}var t=h.zf}catch(O){}if(!t||R.version!=t)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{x=Reflect.construct(h, g.VM(R.args))}catch(O){throw O.message="yt.pubsub2.Data.deserialize(): "+O.message,O;}}catch(O){throw O.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+L.toString()+": "+O.message,O;}e.call(window,x)}catch(O){g.jM(O)}},b1c[L.toString()]?g.Qu()?g.Vw.dg(S):g.oC(S,0):S())}); hH[I]=!0;Rf[L.toString()]||(Rf[L.toString()]=[]);Rf[L.toString()].push(I);return I}; klc=function(){var e=Gl6,L=i1J(function(c){e.apply(void 0,arguments);g2r(L)}); return L}; g2r=function(e){var L=S4();L&&(typeof e==="number"&&(e=[e]),g.KZ(e,function(c){L.unsubscribeByKey(c);delete hH[c]}))}; S4=function(){return g.BU("ytPubsub2Pubsub2Instance")}; uM=function(e,L,c){c=c===void 0?{sampleRate:.1}:c;Math.random()aWc||S=Z1r&&(fF++,g.uL("abandon_compression_after_N_slow_zips")?v4===g.tF("compression_disable_point")&&fF>pYM&&(MK=!1):MK=!1);$ZT(L);I.headers||(I.headers={});I.headers["Content-Encoding"]="gzip";I.postBody=e;I.postParams=void 0;B(c,I)}; jAf=function(e){var L=L===void 0?!1:L;var c=c===void 0?!1:c;var I=(0,g.zI)(),B={startTime:I,ticks:{},infos:{}},x=L?g.BU("yt.logging.gzipForFetch",!1):!0;if(MK&&x){if(!e.body)return e;try{var S=c?e.body:typeof e.body==="string"?e.body:JSON.stringify(e.body);x=S;if(!c&&typeof S==="string"){var h=CAc(S);if(h!=null&&(h>aWc||h=Z1r)if(fF++,g.uL("abandon_compression_after_N_slow_zips")||g.uL("abandon_compression_after_N_slow_zips_lr")){L=fF/v4;var u=pYM/g.tF("compression_disable_point");v4>0&&v4%g.tF("compression_disable_point")===0&&L>=u&&(MK=!1)}else MK=!1;$ZT(B)}}e.headers=Object.assign({},{"Content-Encoding":"gzip"},e.headers||{});e.body=x;return e}catch(t){return ld(t),e}}else return e}; CAc=function(e){try{return(new Blob(e.split(""))).size}catch(L){return ld(L),null}}; $ZT=function(e){g.uL("gel_compression_csi_killswitch")||!g.uL("log_gel_compression_latency")&&!g.uL("log_gel_compression_latency_lr")||uM("gel_compression",e,{sampleRate:.1})}; Fk=function(e){var L=this;this.Hu=this.X=!1;this.potentialEsfErrorCounter=this.K=0;this.handleError=function(){}; this.Sg=function(){}; this.now=Date.now;this.nY=!1;this.kx={Mqw:function(t){L.b0=t}, xLS:function(){L.AY()}, Jc:function(){L.zH()}, Qr:function(t){return g.Z(function(O){return g.a(O,L.Qr(t),0)})}, Co:function(t,O){return L.Co(t,O)}, Jf:function(){L.Jf()}}; var c;this.My=(c=e.My)!=null?c:100;var I;this.OG=(I=e.OG)!=null?I:1;var B;this.Rd=(B=e.Rd)!=null?B:2592E6;var x;this.UG=(x=e.UG)!=null?x:12E4;var S;this.CF=(S=e.CF)!=null?S:5E3;var h;this.b0=(h=e.b0)!=null?h:void 0;this.un=!!e.un;var R;this.XV=(R=e.XV)!=null?R:.1;var u;this.Ua=(u=e.Ua)!=null?u:10;e.handleError&&(this.handleError=e.handleError);e.Sg&&(this.Sg=e.Sg);e.nY&&(this.nY=e.nY);e.Hu&&(this.Hu=e.Hu);this.N0=e.N0;this.LX=e.LX;this.f1=e.f1;this.Wg=e.Wg;this.sendFn=e.sendFn;this.kA=e.kA;this.Tz= e.Tz;AH(this)&&(!this.N0||this.N0("networkless_logging"))&&H1H(this)}; H1H=function(e){AH(e)&&!e.nY&&(e.X=!0,e.un&&Math.random()<=e.XV&&e.f1.Nh(e.b0),e.Jf(),e.Wg.y9()&&e.AY(),e.Wg.listen(e.kA,e.AY.bind(e)),e.Wg.listen(e.Tz,e.zH.bind(e)))}; QAv=function(e,L){if(!AH(e))throw Error("IndexedDB is not supported: updateRequestHandlers");var c=L.options.onError?L.options.onError:function(){}; L.options.onError=function(B,x){var S,h,R,u;return g.Z(function(t){switch(t.K){case 1:S=lW6(x);(h=PAT(x))&&e.N0&&e.N0("web_enable_error_204")&&e.handleError(Error("Request failed due to compression"),L.url,x);if(!(e.N0&&e.N0("nwl_consider_error_code")&&S||e.N0&&!e.N0("nwl_consider_error_code")&&e.potentialEsfErrorCounter<=e.Ua)){t.Iq(2);break}if(!e.Wg.lT){t.Iq(3);break}return g.a(t,e.Wg.lT(),3);case 3:if(e.Wg.y9()){t.Iq(2);break}c(B,x);if(!e.N0||!e.N0("nwl_consider_error_code")||((R=L)==null?void 0: R.id)===void 0){t.Iq(6);break}return g.a(t,e.f1.iI(L.id,e.b0,!1),6);case 6:return t.return();case 2:if(e.N0&&e.N0("nwl_consider_error_code")&&!S&&e.potentialEsfErrorCounter>e.Ua)return t.return();e.potentialEsfErrorCounter++;if(((u=L)==null?void 0:u.id)===void 0){t.Iq(8);break}return L.sendCount=400&&e<=599?!1:!0}; PAT=function(e){var L;e=e==null?void 0:(L=e.error)==null?void 0:L.code;return!(e!==400&&e!==415)}; dZR=function(){if(iM)return iM();var e={};iM=g.PK("LogsDatabaseV2",{ib:(e.LogsRequestsStore={YV:2},e),shared:!1,upgrade:function(L,c,I){c(2)&&g.vK(L,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(I=I.objectStore("LogsRequestsStore"),I.X.indexNames.contains("newRequest")&&I.X.deleteIndex("newRequest"),g.GI(I,"newRequestV2",["status","interface","timestamp"]));c(7)&&f$(L,"sapisid");c(9)&&f$(L,"SWHealthLog")}, version:9});return iM()}; GW=function(e){return g.aM(dZR(),e)}; E2v=function(e,L){var c,I,B,x;return g.Z(function(S){if(S.K==1)return c={startTime:(0,g.zI)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.a(S,GW(L),2);if(S.K!=3)return I=S.X,B=Object.assign({},e,{options:JSON.parse(JSON.stringify(e.options)),interface:g.Zu("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.a(S,g.bE(I,"LogsRequestsStore",B),3);x=S.X;c.ticks.tc=(0,g.zI)();UZH(c);return S.return(x)})}; XYx=function(e,L){var c,I,B,x,S,h,R,u;return g.Z(function(t){if(t.K==1)return c={startTime:(0,g.zI)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.a(t,GW(L),2);if(t.K!=3)return I=t.X,B=g.Zu("INNERTUBE_CONTEXT_CLIENT_NAME",0),x=[e,B,0],S=[e,B,(0,g.zI)()],h=IDBKeyRange.bound(x,S),R="prev",g.uL("use_fifo_for_networkless")&&(R="next"),u=void 0,g.a(t,g.Ag(I,["LogsRequestsStore"],{mode:"readwrite",tK:!0},function(O){return g.wm(O.objectStore("LogsRequestsStore").index("newRequestV2"), {query:h,direction:R},function(q){q.getValue()&&(u=q.getValue(),e==="NEW"&&(u.status="QUEUED",q.update(u)))})}),3); c.ticks.tc=(0,g.zI)();UZH(c);return t.return(u)})}; KeH=function(e,L){var c;return g.Z(function(I){if(I.K==1)return g.a(I,GW(L),2);c=I.X;return I.return(g.Ag(c,["LogsRequestsStore"],{mode:"readwrite",tK:!0},function(B){var x=B.objectStore("LogsRequestsStore");return x.get(e).then(function(S){if(S)return S.status="QUEUED",g.F9(x,S).then(function(){return S})})}))})}; YmH=function(e,L,c,I){c=c===void 0?!0:c;var B;return g.Z(function(x){if(x.K==1)return g.a(x,GW(L),2);B=x.X;return x.return(g.Ag(B,["LogsRequestsStore"],{mode:"readwrite",tK:!0},function(S){var h=S.objectStore("LogsRequestsStore");return h.get(e).then(function(R){return R?(R.status="NEW",c&&(R.sendCount+=1),I!==void 0&&(R.options.compress=I),g.F9(h,R).then(function(){return R})):g.qO.resolve(void 0)})}))})}; n2$=function(e,L){var c;return g.Z(function(I){if(I.K==1)return g.a(I,GW(L),2);c=I.X;return I.return(c.delete("LogsRequestsStore",e))})}; eav=function(e){var L,c;return g.Z(function(I){if(I.K==1)return g.a(I,GW(e),2);L=I.X;c=(0,g.zI)()-2592E6;return g.a(I,g.Ag(L,["LogsRequestsStore"],{mode:"readwrite",tK:!0},function(B){return g.gm(B.objectStore("LogsRequestsStore"),{},function(x){if(x.getValue().timestamp<=c)return x.delete().then(function(){return g.ki(x)})})}),0)})}; LHc=function(){g.Z(function(e){return g.a(e,Qb$("LogsDatabaseV2"),0)})}; UZH=function(e){g.uL("nwl_csi_killswitch")||uM("networkless_performance",e,{sampleRate:1})}; IuH=function(e){return g.aM(cGT(),e)}; BWr=function(e){var L,c;g.Z(function(I){if(I.K==1)return g.a(I,IuH(e),2);L=I.X;c=(0,g.zI)()-2592E6;return g.a(I,g.Ag(L,["SWHealthLog"],{mode:"readwrite",tK:!0},function(B){return g.gm(B.objectStore("SWHealthLog"),{},function(x){if(x.getValue().timestamp<=c)return x.delete().then(function(){return g.ki(x)})})}),0)})}; xN6=function(e){var L;return g.Z(function(c){if(c.K==1)return g.a(c,IuH(e),2);L=c.X;return g.a(c,L.clear("SWHealthLog"),0)})}; g.gO=function(e,L,c,I,B,x,S){B=B===void 0?"":B;x=x===void 0?!1:x;S=S===void 0?!1:S;if(e)if(c&&!g.m2())ld(new g.yu("Legacy referrer-scrubbed ping detected")),e&&oJv(e,void 0,{scrubReferrer:!0});else if(B)TZ(e,L,"POST",B,I);else if(g.Zu("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||I||S)TZ(e,L,"GET","",I,void 0,x,S);else{b:{try{c:{var h=new iKv({url:e});if(h.X.dsh==="1")var R=null;else{var u=h.X.ae;if(u==="1"){var t=h.X.adurl;if(t)try{R={version:3,wN:decodeURIComponent(t),Wn:QZ(h.K,"act=1","ri=1",Gmr(h))}; break c}catch(T){}}R=u==="2"?{version:4,wN:QZ(h.K,"dct=1","suid="+h.Z,""),Wn:QZ(h.K,"act=1","ri=1","suid="+h.Z)}:null}}if(R){var O=RX(e);var q=!(!O||!O.endsWith("/aclk")||fW(e,"ri")!=="1");break b}}catch(T){}q=!1}q?SeR(e)?(L&&L(),c=!0):c=!1:c=!1;c||oJv(e,L)}}; SeR=function(e,L){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(e,L===void 0?"":L))return!0}catch(c){}return!1}; oJv=function(e,L,c){c=c===void 0?{}:c;var I=new Image,B=""+rGn++;kR[B]=I;I.onload=I.onerror=function(){L&&kR[B]&&L();delete kR[B]}; c.scrubReferrer&&(I.referrerPolicy="no-referrer");I.src=e}; ha$=function(e){var L;return((L=document.featurePolicy)==null?0:L.allowedFeatures().includes("attribution-reporting"))?e+"&nis=6":e+"&nis=5"}; wO=function(){DZ||(DZ=new UR("yt.offline"));return DZ}; Raf=function(e){if(g.uL("offline_error_handling")){var L=wO().get("errors",!0)||{};L[e.message]={name:e.name,stack:e.stack};e.level&&(L[e.message].level=e.level);wO().set("errors",L,2592E3,!0)}}; JH=function(){this.X=new Map;this.K=!1}; Vo=function(){if(!JH.instance){var e=g.BU("yt.networkRequestMonitor.instance")||new JH;g.IL("yt.networkRequestMonitor.instance",e);JH.instance=e}return JH.instance}; CF=function(){g.hi.call(this);var e=this;this.K=!1;this.X=FIR();this.X.listen("networkstatus-online",function(){if(e.K&&g.uL("offline_error_handling")){var L=wO().get("errors",!0);if(L){for(var c in L)if(L[c]){var I=new g.yu(c,"sent via offline_errors");I.name=L[c].name;I.stack=L[c].stack;I.level=L[c].level;g.jM(I)}wO().set("errors",{},2592E3,!0)}}})}; u$c=function(){if(!CF.instance){var e=g.BU("yt.networkStatusManager.instance")||new CF;g.IL("yt.networkStatusManager.instance",e);CF.instance=e}return CF.instance}; g.af=function(e){e=e===void 0?{}:e;g.hi.call(this);var L=this;this.X=this.G=0;this.K=u$c();var c=g.BU("yt.networkStatusManager.instance.listen").bind(this.K);c&&(e.rateLimit?(this.rateLimit=e.rateLimit,c("networkstatus-online",function(){tMx(L,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){tMx(L,"publicytnetworkstatus-offline")})):(c("networkstatus-online",function(){L.dispatchEvent("publicytnetworkstatus-online")}),c("networkstatus-offline",function(){L.dispatchEvent("publicytnetworkstatus-offline")})))}; tMx=function(e,L){e.rateLimit?e.X?(g.Vw.qe(e.G),e.G=g.Vw.dg(function(){e.Z!==L&&(e.dispatchEvent(L),e.Z=L,e.X=(0,g.zI)())},e.rateLimit-((0,g.zI)()-e.X))):(e.dispatchEvent(L),e.Z=L,e.X=(0,g.zI)()):e.dispatchEvent(L)}; m7=function(){var e=Fk.call;NK||(NK=new g.af({daS:!0,vYe:!0}));e.call(Fk,this,{f1:{Nh:eav,VO:n2$,Q_:XYx,AD:KeH,iI:YmH,set:E2v},Wg:NK,handleError:function(L,c,I){var B,x=I==null?void 0:(B=I.error)==null?void 0:B.code;if(x===400||x===415){var S;L=new g.yu(L.message,c,I==null?void 0:(S=I.error)==null?void 0:S.code);ld(L,void 0,void 0,void 0,!0)}else g.jM(L)}, Sg:ld,sendFn:OTc,now:g.zI,gA:Raf,LX:g.PI(),kA:"publicytnetworkstatus-online",Tz:"publicytnetworkstatus-offline",un:!0,XV:.1,Ua:g.tF("potential_esf_error_limit",10),N0:g.uL,nY:!(g.pv()&&g.hp(document.location.toString())!=="www.youtube-nocookie.com")});this.Z=new g.rk;g.uL("networkless_immediately_drop_all_requests")&&LHc();dAx("LogsDatabaseV2")}; yo=function(){var e=g.BU("yt.networklessRequestController.instance");e||(e=new m7,g.IL("yt.networklessRequestController.instance",e),g.uL("networkless_logging")&&g.HK().then(function(L){e.b0=L;H1H(e);e.Z.resolve();e.un&&Math.random()<=e.XV&&e.b0&&BWr(e.b0);g.uL("networkless_immediately_drop_sw_health_store")&&qeM(e)})); return e}; qeM=function(e){var L;g.Z(function(c){if(!e.b0)throw L=g.tg("clearSWHealthLogsDb"),L;return c.return(xN6(e.b0).catch(function(I){e.handleError(I)}))})}; OTc=function(e,L,c,I){I=I===void 0?!1:I;L=g.uL("web_fp_via_jspb")?Object.assign({},L):L;g.uL("use_cfr_monitor")&&TWn(e,L);if(g.uL("use_request_time_ms_header"))L.headers&&YJ(e)&&(L.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.zI)())));else{var B;if((B=L.postParams)==null?0:B.requestTimeMs)L.postParams.requestTimeMs=Math.round((0,g.zI)())}c&&Object.keys(L).length===0?g.gO(e):L.compress?L.postBody?(typeof L.postBody!=="string"&&(L.postBody=JSON.stringify(L.postBody)),sx(e,L.postBody, L,g.W3,I)):sx(e,JSON.stringify(L.postParams),L,ML,I):g.W3(e,L)}; ZZ=function(e,L){g.uL("use_event_time_ms_header")&&YJ(e)&&(L.headers||(L.headers={}),L.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.zI)())));return L}; TWn=function(e,L){var c=L.onError?L.onError:function(){}; L.onError=function(B,x){Vo().requestComplete(e,!1);c(B,x)}; var I=L.onSuccess?L.onSuccess:function(){}; L.onSuccess=function(B,x){Vo().requestComplete(e,!0);I(B,x)}}; g.pF=function(e){this.config_=null;e?this.config_=e:tZT()&&(this.config_=g.LF())}; g.$R=function(e,L,c,I){function B(u){try{if((u===void 0?0:u)&&I.retry&&!I.networklessOptions.bypassNetworkless)x.method="POST",I.networklessOptions.writeThenSend?yo().writeThenSend(R,x):yo().sendAndWrite(R,x);else if(I.compress){var t=!I.networklessOptions.writeThenSend;if(x.postBody){var O=x.postBody;typeof O!=="string"&&(O=JSON.stringify(x.postBody));sx(R,O,x,g.W3,t)}else sx(R,JSON.stringify(x.postParams),x,ML,t)}else g.uL("web_all_payloads_via_jspb")?g.W3(R,x):ML(R,x)}catch(q){if(q.name==="InvalidAccessError")ld(Error("An extension is blocking network request.")); else throw q;}} !g.Zu("VISITOR_DATA")&&L!=="visitor_id"&&Math.random()<.01&&ld(new g.yu("Missing VISITOR_DATA when sending innertube request.",L,c,I));if(!e.isReady())throw e=new g.yu("innertube xhrclient not ready",L,c,I),g.jM(e),e;var x={headers:I.headers||{},method:"POST",postParams:c,postBody:I.postBody,postBodyFormat:I.postBodyFormat||"JSON",onTimeout:function(){I.onTimeout()}, onFetchTimeout:I.onTimeout,onSuccess:function(u,t){if(I.onSuccess)I.onSuccess(t)}, onFetchSuccess:function(u){if(I.onSuccess)I.onSuccess(u)}, onError:function(u,t){if(I.onError)I.onError(t)}, onFetchError:function(u){if(I.onError)I.onError(u)}, timeout:I.timeout,withCredentials:!0,compress:I.compress};x.headers["Content-Type"]||(x.headers["Content-Type"]="application/json");c="";var S=e.config_.A3;S&&(c=S);S=e.config_.QL||!1;var h=ALH(S,c,I);Object.assign(x.headers,h);x.headers.Authorization&&!c&&S&&(x.headers["x-origin"]=window.location.origin);var R=X$(""+c+("/youtubei/"+e.config_.innertubeApiVersion+"/"+L),{alt:"json"});g.BU("ytNetworklessLoggingInitializationOptions")&&WHf.isNwlInitialized?Zsc().then(function(u){B(u)}):B(!1)}; g.Qo=function(e,L,c){var I=g.j4();if(I&&L){var B=I.subscribe(e,function(){function x(){H4[B]&&L.apply&&typeof L.apply=="function"&&L.apply(c||window,S)} var S=arguments;try{g.lM[e]?x():g.oC(x,0)}catch(h){g.jM(h)}},c); H4[B]=!0;P4[e]||(P4[e]=[]);P4[e].push(B);return B}return 0}; MMc=function(e){var L=g.Qo("LOGGED_IN",function(c){e.apply(void 0,arguments);g.dO(L)})}; g.dO=function(e){var L=g.j4();L&&(typeof e==="number"?e=[e]:typeof e==="string"&&(e=[parseInt(e,10)]),g.KZ(e,function(c){L.unsubscribeByKey(c);delete H4[c]}))}; g.Ux=function(e,L){var c=g.j4();return c?c.publish.apply(c,arguments):!1}; s6n=function(e){var L=g.j4();if(L)if(L.clear(e),e)zaJ(e);else for(var c in P4)zaJ(c)}; g.j4=function(){return g.LZ.ytPubsubPubsubInstance}; zaJ=function(e){P4[e]&&(e=P4[e],g.KZ(e,function(L){H4[L]&&delete H4[L]}),e.length=0)}; g.Ex=function(e,L,c){vJH(e,L,c===void 0?null:c)}; vJH=function(e,L,c){c=c===void 0?null:c;var I=fun(e),B=document.getElementById(I),x=B&&aXH(B),S=B&&!x;x?L&&L():(L&&(x=g.Qo(I,L),L=""+g.hw(L),AGx[L]=x),S||(B=FH$(e,I,function(){aXH(B)||(Crc(B),g.Ux(I),g.oC(function(){s6n(I)},0))},c)))}; FH$=function(e,L,c,I){I=I===void 0?null:I;var B=g.ql("SCRIPT");B.id=L;B.onload=function(){c&&setTimeout(c,0)}; B.onreadystatechange=function(){switch(B.readyState){case "loaded":case "complete":B.onload()}}; I&&B.setAttribute("nonce",I);g.fo(B,g.Wu(e));e=document.getElementsByTagName("head")[0]||document.body;e.insertBefore(B,e.firstChild);return B}; fun=function(e){var L=document.createElement("a");g.uv(L,e);e=L.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Co(e)}; Xk=function(e,L){if(e===L)e=!0;else if(Array.isArray(e)&&Array.isArray(L))e=g.E9(e,L,Xk);else if(g.Se(e)&&g.Se(L))a:if(g.Rs(e).length!=g.Rs(L).length)e=!1;else{for(var c in e)if(!Xk(e[c],L[c])){e=!1;break a}e=!0}else e=!1;return e}; Ip=function(e){var L=g.HM.apply(1,arguments);if(!LG(e)||L.some(function(I){return!LG(I)}))throw Error("Only objects may be merged."); L=g.f(L);for(var c=L.next();!c.done;c=L.next())cL(e,c.value)}; cL=function(e,L){for(var c in L)if(LG(L[c])){if(c in e&&!LG(e[c]))throw Error("Cannot merge an object into a non-object.");c in e||(e[c]={});cL(e[c],L[c])}else if(BL(L[c])){if(c in e&&!BL(e[c]))throw Error("Cannot merge an array into a non-array.");c in e||(e[c]=[]);bT$(e[c],L[c])}else e[c]=L[c];return e}; bT$=function(e,L){L=g.f(L);for(var c=L.next();!c.done;c=L.next())c=c.value,LG(c)?e.push(cL({},c)):BL(c)?e.push(bT$([],c)):e.push(c);return e}; LG=function(e){return typeof e==="object"&&!Array.isArray(e)}; BL=function(e){return typeof e==="object"&&Array.isArray(e)}; xv=function(e){g.p.call(this);this.K=e}; op=function(e){xv.call(this,!0);this.X=e}; Sl=function(e,L){g.p.call(this);var c=this;this.Z=[];this.T=!1;this.K=0;this.B=this.j=this.G=!1;this.pS=null;var I=(0,g.RL)(e,L);this.X=new g.j9(function(){return I(c.pS)},300); g.l(this,this.X);this.D=this.J=Infinity}; iTn=function(e,L){if(!L)return!1;for(var c=0;c-1)throw Error("Deps cycle for: "+L);if(e.K.has(L))return e.K.get(L);if(!e.X.has(L)){if(I)return;throw Error("No provider for: "+L);}I=e.X.get(L);c.push(L);if(I.TC!==void 0)var B=I.TC;else if(I.dle)B=I[vL]?DNR(e,I[vL],c):[],B=I.dle.apply(I,g.V(B));else if(I.uR){B=I.uR;var x=B[vL]?DNR(e,B[vL],c):[];B=new (Function.prototype.bind.apply(B,[null].concat(g.V(x))))}else throw Error("Could not resolve providers for: "+L);c.pop();I.Nam||e.K.set(L,B); return B}; DNR=function(e,L,c){return L?L.map(function(I){return I instanceof WL?fG(e,I.key,c,!0):fG(e,I,c)}):[]}; Fg=function(){A$||(A$=new kw$);return A$}; ix=function(){var e,L;return"h5vcc"in bx&&((e=bx.h5vcc.traceEvent)==null?0:e.traceBegin)&&((L=bx.h5vcc.traceEvent)==null?0:L.traceEnd)?1:"performance"in bx&&bx.performance.mark&&bx.performance.measure?2:0}; Gr=function(e){var L=ix();switch(L){case 1:bx.h5vcc.traceEvent.traceBegin("YTLR",e);break;case 2:bx.performance.mark(e+"-start");break;case 0:break;default:t0(L,"unknown trace type")}}; wun=function(e){var L=ix();switch(L){case 1:bx.h5vcc.traceEvent.traceEnd("YTLR",e);break;case 2:L=e+"-start";var c=e+"-end";bx.performance.mark(c);bx.performance.measure(e,L,c);break;case 0:break;default:t0(L,"unknown trace type")}}; JGn=function(e){var L,c;(c=(L=window).onerror)==null||c.call(L,e.message,"",0,0,e)}; VMn=function(e){var L=this;var c=c===void 0?0:c;var I=I===void 0?g.PI():I;this.Z=c;this.scheduler=I;this.K=new g.rk;this.X=e;for(e={Jk:0};e.Jk=1E3?B():I>=e?KG||(KG=Yv(function(){B();KG=void 0},0)):x-h>=10&&(Xur(L,c.tier),S.G=x)}; PdM=function(e,L){if(e.endpoint==="log_event"){g.uL("more_accurate_gel_parser")&&jl().storePayload({isJspb:!1},e.payload);lx(e);var c=PL(e),I=new Map;I.set(c,[e.payload]);var B=j6n(e.payload)||"";L&&(Eu=new L);return new g.iq(function(x,S){Eu&&Eu.isReady()?KHf(I,Eu,x,S,{bypassNetworkless:!0},!0,di(B)):x()})}}; UNx=function(e,L,c){if(L.endpoint==="log_event"){lx(void 0,L);var I=PL(L,!0),B=new Map;B.set(I,[jd(L.payload)]);c&&(Eu=new c);return new g.iq(function(x){Eu&&Eu.isReady()?YeJ(B,Eu,x,{bypassNetworkless:!0},!0,di(e)):x()})}}; PL=function(e,L){var c="";if(e.dangerousLogToVisitorSession)c="visitorOnlyApprovedKey";else if(e.cttAuthInfo){if(L===void 0?0:L){L=e.cttAuthInfo.token;c=e.cttAuthInfo;var I=new CT;c.videoId?I.setVideoId(c.videoId):c.playlistId&&Or(I,2,nG,i5(c.playlistId));eB[L]=I}else L=e.cttAuthInfo,c={},L.videoId?c.videoId=L.videoId:L.playlistId&&(c.playlistId=L.playlistId),LE[e.cttAuthInfo.token]=c;c=e.cttAuthInfo.token}return c}; Uu=function(e,L,c){e=e===void 0?{}:e;L=L===void 0?!1:L;new g.iq(function(I,B){var x=Xg(L,c),S=x.Z;x.Z=!1;cJ(x.K);cJ(x.X);x.X=0;Eu&&Eu.isReady()?c===void 0&&g.uL("enable_web_tiered_gel")?nJJ(I,B,e,L,300,S):nJJ(I,B,e,L,c,S):(Xur(L,c),I())})}; nJJ=function(e,L,c,I,B,x){var S=Eu;c=c===void 0?{}:c;I=I===void 0?!1:I;B=B===void 0?200:B;x=x===void 0?!1:x;var h=new Map,R=new Map,u={isJspb:I,cttAuthInfo:void 0,tier:B},t={isJspb:I,cttAuthInfo:void 0};if(I){L=g.f(Object.keys(QY));for(B=L.next();!B.done;B=L.next())B=B.value,R=g.uL("enable_web_tiered_gel")?jl().smartExtractMatchingEntries({keys:[u,t],sizeLimit:1E3}):jl().extractMatchingEntries({isJspb:!0,cttAuthInfo:B}),R.length>0&&h.set(B,R),(g.uL("web_fp_via_jspb_and_json")&&c.writeThenSend||!g.uL("web_fp_via_jspb_and_json"))&& delete QY[B];YeJ(h,S,e,c,!1,x)}else{h=g.f(Object.keys(QY));for(u=h.next();!u.done;u=h.next())u=u.value,t=g.uL("enable_web_tiered_gel")?jl().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:u,tier:B},{isJspb:!1,cttAuthInfo:u}],sizeLimit:1E3}):jl().extractMatchingEntries({isJspb:!1,cttAuthInfo:u}),t.length>0&&R.set(u,t),(g.uL("web_fp_via_jspb_and_json")&&c.writeThenSend||!g.uL("web_fp_via_jspb_and_json"))&&delete QY[u];KHf(R,S,e,L,c,!1,x)}}; Xur=function(e,L){function c(){Uu({writeThenSend:!0},e,L)} e=e===void 0?!1:e;L=L===void 0?200:L;var I=Xg(e,L),B=I===eI6||I===L2T?5E3:cFM;g.uL("web_gel_timeout_cap")&&!I.X&&(B=Yv(function(){c()},B),I.X=B); cJ(I.K);B=g.Zu("LOGGING_BATCH_TIMEOUT",g.tF("web_gel_debounce_ms",1E4));g.uL("shorten_initial_gel_batch_timeout")&&Io&&(B=IMn);B=Yv(function(){g.tF("gel_min_batch_size")>0?jl().getSequenceCount({cttAuthInfo:void 0,isJspb:e,tier:L})>=BaM&&c():c()},B); I.K=B}; KHf=function(e,L,c,I,B,x,S){B=B===void 0?{}:B;var h=Math.round((0,g.zI)()),R=e.size,u=xL6(S);e=g.f(e);var t=e.next();for(S={};!t.done;S={YF:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,Gg:void 0,g2:void 0},t=e.next()){var O=g.f(t.value);t=O.next().value;O=O.next().value;S.batchRequest=g.zG({context:g.c4(L.config_||g.LF())});if(!g.oL(O)&&!g.uL("throw_err_when_logevent_malformed_killswitch")){I();break}S.batchRequest.events=O;(O=LE[t])&&oa6(S.batchRequest,t,O);delete LE[t];S.dangerousLogToVisitorSession= t==="visitorOnlyApprovedKey";SNn(S.batchRequest,h,S.dangerousLogToVisitorSession);rF6(B);S.Gg=function(q){g.uL("start_client_gcf")&&g.Vw.dg(function(){return g.Z(function(T){return g.a(T,hIn(q),0)})}); R--;R||c()}; S.YF=0;S.g2=function(q){return function(){q.YF++;if(B.bypassNetworkless&&q.YF===1)try{g.$R(L,u,q.batchRequest,BJ({writeThenSend:!0},q.dangerousLogToVisitorSession,q.Gg,q.g2,x)),Io=!1}catch(T){g.jM(T),I()}R--;R||c()}}(S); try{g.$R(L,u,S.batchRequest,BJ(B,S.dangerousLogToVisitorSession,S.Gg,S.g2,x)),Io=!1}catch(q){g.jM(q),I()}}}; YeJ=function(e,L,c,I,B,x){I=I===void 0?{}:I;var S=Math.round((0,g.zI)()),h={value:e.size},R=new Map([].concat(g.V(e)));R=g.f(R);for(var u=R.next();!u.done;u=R.next()){var t=g.f(u.value).next().value,O=e.get(t);u=new $qv;var q=L.config_||g.LF(),T=new gW,W=new vu;a7(W,1,q.WW);a7(W,2,q.y$);m3(W,16,q.J3);a7(W,17,q.innertubeContextClientVersion);if(q.O$){var A=q.O$,b=new zw;A.coldConfigData&&a7(b,1,A.coldConfigData);A.appInstallData&&a7(b,6,A.appInstallData);A.coldHashData&&a7(b,3,A.coldHashData);A.hotHashData&& b.jq(A.hotHashData);b6(W,zw,62,b)}(A=g.LZ.devicePixelRatio)&&A!=1&&er(W,65,hT(A));A=ON();A!==""&&a7(W,54,A);A=qL();if(A.length>0){b=new F$;for(var J=0;J65535&&(e=1);yJ("BATCH_CLIENT_COUNTER",e);return e}; oa6=function(e,L,c){if(c.videoId)var I="VIDEO";else if(c.playlistId)I="PLAYLIST";else return;e.credentialTransferTokenTargetId=c;e.context=e.context||{};e.context.user=e.context.user||{};e.context.user.credentialTransferTokens=[{token:L,scope:I}]}; lx=function(e,L){var c=g.BU("yt.logging.transport.enableScrapingForTest"),I=RC("il_payload_scraping");I=(I!==void 0?String(I):"")==="enable_il_payload_scraping";if(!c)if(I)SB=[],g.IL("yt.logging.transport.enableScrapingForTest",!0),g.IL("yt.logging.transport.scrapedPayloadsForTesting",SB),g.IL("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.IL("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.IL("yt.logging.transport.scrapeClientEvent",!0);else return;c=g.BU("yt.logging.transport.scrapedPayloadsForTesting");I=g.BU("yt.logging.transport.payloadToScrape");L&&(L=L.payload,(L=g.BU("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(L)())&&c.push(L));L=g.BU("yt.logging.transport.scrapeClientEvent");if(I&&I.length>=1)for(var B=0;B0&&w3M(e,L,x)}else w3M(e,L)}; w3M=function(e,L,c){e=JFM(e);L=L?g.TE(L):"";c=c||5;UN()&&g.GZ(e,L,c)}; JFM=function(e){for(var L=g.f(VGx),c=L.next();!c.done;c=L.next())e=Ap(e,c.value);return"ST-"+Co(e).toString(36)}; CLM=function(e){if(e.name==="JavaException")return!0;e=e.stack;return e.includes("chrome://")||e.includes("-extension://")||e.includes("webkit-masked-url://")}; aMv=function(e){if(!e.stack)return!0;var L=!e.stack.includes("\n");return L&&e.stack.includes("ErrorType: ")||L&&e.stack.includes("Anonymous function (Unknown script")||e.stack.toLowerCase()==="not available"||e.fileName==="user-script"||e.fileName.startsWith("user-script:")?!0:!1}; Nac=function(){this.qa=[];this.bb=[]}; zh=function(){if(!My){var e=My=new Nac;e.bb.length=0;e.qa.length=0;mLn(e,yFM)}return My}; mLn=function(e,L){L.bb&&e.bb.push.apply(e.bb,L.bb);L.qa&&e.qa.push.apply(e.qa,L.qa)}; ZQ6=function(e){function L(){return e.charCodeAt(I++)} var c=e.length,I=0;do{var B=sI(L);if(B===Infinity)break;var x=B>>3;switch(B&7){case 0:B=sI(L);if(x===2)return B;break;case 1:if(x===2)return;I+=8;break;case 2:B=sI(L);if(x===2)return e.substr(I,B);I+=B;break;case 5:if(x===2)return;I+=4;break;default:return}}while(I500));I++);I=B}else if(typeof e==="object")for(B in e){if(e[B]){var x=B;var S=e[B],h=L,R=c;x=typeof S!=="string"||x!=="clickTrackingParams"&&x!=="trackingParams"?0:(S=ZQ6(atob(S.replace(/-/g,"+").replace(/_/g,"/"))))?vJ(x+".ve",S,h,R):0;I+=x;I+=vJ(B,e[B],L,c);if(I>500)break}}else c[L]=fE(e),I+=c[L].length;else c[L]=fE(e),I+=c[L].length;return I}; vJ=function(e,L,c,I){c+="."+e;e=fE(L);I[c]=e;return c.length+e.length}; fE=function(e){try{return(typeof e==="string"?e:String(JSON.stringify(e))).substr(0,500)}catch(L){return"unable to serialize "+typeof e+" ("+L.message+")"}}; nv=function(e){g.A9(e)}; g.F7=function(e){g.A9(e,"WARNING")}; g.A9=function(e,L){var c=c===void 0?{}:c;c.name=g.Zu("INNERTUBE_CONTEXT_CLIENT_NAME",1);c.version=g.Zu("INNERTUBE_CONTEXT_CLIENT_VERSION");L=L===void 0?"ERROR":L;var I=!1;L=L===void 0?"ERROR":L;I=I===void 0?!1:I;if(e){e.hasOwnProperty("level")&&e.level&&(L=e.level);if(g.uL("console_log_js_exceptions")){var B=[];B.push("Name: "+e.name);B.push("Message: "+e.message);e.hasOwnProperty("params")&&B.push("Error Params: "+JSON.stringify(e.params));e.hasOwnProperty("args")&&B.push("Error args: "+JSON.stringify(e.args)); B.push("File name: "+e.fileName);B.push("Stacktrace: "+e.stack);window.console.log(B.join("\n"),e)}if(!($LH>=5)){B=[];for(var x=g.f(jCx),S=x.next();!S.done;S=x.next()){S=S.value;try{S()&&B.push(S())}catch(A){}}B=[].concat(g.V(HQ$),g.V(B));var h=xgM(e);x=h.message||"Unknown Error";S=h.name||"UnknownError";var R=h.stack||e.K||"Not available";if(R.startsWith(S+": "+x)){var u=R.split("\n");u.shift();R=u.join("\n")}u=h.lineNumber||"Not available";h=h.fileName||"Not available";var t=0;if(e.hasOwnProperty("args")&& e.args&&e.args.length)for(var O=0;O=500);O++);else if(e.hasOwnProperty("params")&&e.params){var q=e.params;if(typeof e.params==="object")for(O in q){if(q[O]){var T="params."+O,W=fE(q[O]);c[T]=W;t+=T.length+W.length;if(t>500)break}}else c.params=fE(q)}if(B.length)for(O=0;O=500);O++);navigator.vendor&&!c.hasOwnProperty("vendor")&&(c["device.vendor"]=navigator.vendor);c={message:x,name:S,lineNumber:u, fileName:h,stack:R,params:c,sampleWeight:1};O=Number(e.columnNumber);isNaN(O)||(c.lineNumber=c.lineNumber+":"+O);if(e.level==="IGNORED")e=0;else a:{e=zh();O=g.f(e.bb);for(B=O.next();!B.done;B=O.next())if(B=B.value,c.message&&c.message.match(B.Sr)){e=B.weight;break a}e=g.f(e.qa);for(O=e.next();!O.done;O=e.next())if(O=O.value,O.callback(c)){e=O.weight;break a}e=1}c.sampleWeight=e;e=g.f(lMv);for(O=e.next();!O.done;O=e.next())if(O=O.value,O.po[c.name])for(x=g.f(O.po[c.name]),B=x.next();!B.done;B=x.next())if(S= B.value,B=c.message.match(S.f2)){c.params["params.error.original"]=B[0];x=S.groups;S={};for(u=0;u1E3&&g.F7(new g.yu("IL Attach cache exceeded limit"))}h= m1(c,L);J9.has(h)?yU(c,L):CE.set(h,!0)}}I=I.filter(function(t){t.csn!==L?(t.csn=L,t=!0):t=!1;return t}); c={csn:L,parentVe:c.getAsJson(),childVes:g.Mt(I,function(t){return t.getAsJson()})}; L==="UNDEFINED_CSN"?Za("visualElementAttached",x,c):e?h9("visualElementAttached",c,e,x):g.et("visualElementAttached",c,x)}; xxr=function(e,L,c,I,B){pE(c,L);I=wo({cttAuthInfo:Th(L)||void 0},L);c={csn:L,ve:c.getAsJson(),eventType:1};B&&(c.clientData=B);L==="UNDEFINED_CSN"?Za("visualElementShown",I,c):e?h9("visualElementShown",c,e,I):g.et("visualElementShown",c,I)}; o5$=function(e,L,c,I){var B=(I=I===void 0?!1:I)?16:8;I=wo({cttAuthInfo:Th(L)||void 0,endOfSequence:I},L);c={csn:L,ve:c.getAsJson(),eventType:B};L==="UNDEFINED_CSN"?Za("visualElementHidden",I,c):e?h9("visualElementHidden",c,e,I):g.et("visualElementHidden",c,I)}; jB=function(e,L,c,I,B){$g(e,L,c,void 0,I,B)}; $g=function(e,L,c,I,B){pE(c,L);I=I||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var x=wo({cttAuthInfo:Th(L)||void 0},L);c={csn:L,ve:c.getAsJson(),gestureType:I};B&&(c.clientData=B);L==="UNDEFINED_CSN"?Za("visualElementGestured",x,c):e?h9("visualElementGestured",c,e,x):g.et("visualElementGestured",c,x)}; SR6=function(){var e=h$(16);for(var L=[],c=0;c0&&c.push(g.ql("BR"));c.push(g.T$(x))}):c.push(g.T$(I))}return c}; c7=function(e,L,c,I){if(c==="child"){g.Ml(L);var B;I===void 0?B=void 0:B=!Array.isArray(I)||I&&typeof I.U==="string"?[I]:I;c=hvc(e,B);c=g.f(c);for(e=c.next();!e.done;e=c.next())L.appendChild(e.value)}else c==="style"?g.l3(L,"cssText",I?I:""):I===null||I===void 0?L.removeAttribute(c):(e=I.toString(),c==="href"&&(e=g.xC(g.h0(e))),L.setAttribute(c,e))}; g.U=function(e){g.eH.call(this,e);this.z_=!0;this.B=!1;this.listeners=[]}; g.I9=function(e){g.U.call(this,e);this.m$=new g.Yg;g.l(this,this.m$)}; B7=function(e,L,c,I,B,x,S){S=S===void 0?null:S;g.I9.call(this,L);this.api=e;this.macros={};this.componentType=c;this.T=this.J=null;this.DY=S;this.layoutId=I;this.interactionLoggingClientData=B;this.A7=x;this.He=null;this.Xa=new op(this.element);g.l(this,this.Xa);this.x9=this.C(this.element,"click",this.onClick);this.k9=[];this.Gm=new Sl(this.onClick,this);g.l(this,this.Gm);this.sY=!1;this.ye=this.pS=null}; xu=function(e,L){e=e===void 0?null:e;L=L===void 0?null:L;if(e==null)return g.F7(Error("Got null or undefined adText object")),"";var c=g.VK(e.text);if(!e.isTemplated)return c;if(L==null)return g.F7(Error("Missing required parameters for a templated message")),c;e=g.f(Object.entries(L));for(L=e.next();!L.done;L=e.next()){var I=g.f(L.value);L=I.next().value;I=I.next().value;c=c.replace("{"+L+"}",I)}return c}; RvM=function(e){e=e===void 0?null:e;return e!=null&&(e=e.thumbnail,e!=null&&e.thumbnails!=null&&e.thumbnails.length!=0&&e.thumbnails[0].url!=null)?g.VK(e.thumbnails[0].url):""}; uFn=function(e){e=e===void 0?null:e;return e!=null&&(e=e.thumbnail,e!=null&&e.thumbnails!=null&&e.thumbnails.length!=0&&e.thumbnails[0].width!=null&&e.thumbnails[0].height!=null)?new g.dz(e.thumbnails[0].width||0,e.thumbnails[0].height||0):new g.dz(0,0)}; g.o9=function(e){if(e.simpleText)return e.simpleText;if(e.runs){var L=[];e=g.f(e.runs);for(var c=e.next();!c.done;c=e.next())c=c.value,c.text&&L.push(c.text);return L.join("")}return""}; g.SH=function(e){if(e.simpleText)return e=document.createTextNode(e.simpleText),e;var L=[];if(e.runs)for(var c=0;c1){for(var L=[e[0]],c=1;c0&&(this.X=new g.j9(this.Zk,L,this),g.l(this,this.X));this.B=new g.j9(this.Zk,c,this);g.l(this,this.B);this.J=wk6(this.K,B,1,I);g.l(this,this.J);this.T=wk6(this.K,0,I,1);g.l(this,this.T);this.G=new sR;g.l(this,this.G)}; nN=function(e,L,c){this.K=e;this.isAsync=L;this.X=c}; cgx=function(e){switch(e){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:t0(e,"unknown result type")}}; IQR=function(e,L){var c=1;e.isTrusted===!1&&(c=0);yJ("ISDSTAT",c);eF(c,"i.s_",{triggerContext:"sk",metadata:L});return c}; Bmr=function(e,L){var c=[];L?L.isTrusted===!0?c.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):L.isTrusted===!1?c.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):c.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):c.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");eF(0,"a.s_",{metadata:e,states:c});yJ("ASDSTAT",0)}; eF=function(e,L,c){L=xOJ[L];var I,B,x={detected:e===0,source:""+L.K+((I=c.triggerContext)!=null?I:"")+((B=c.Vs)!=null?B:""),detectionStates:c.states,durationMs:c.IZ};c.metadata&&(x.contentCpn=c.metadata.contentCpn,x.adCpn=c.metadata.adCpn);g.et("biscottiBasedDetection",x);L.X!==void 0&&(c=Number(g.Zu("CATSTAT",0)),L.X!==void 0?(L=L.X,e=cgx(e),e=c&~(3<0}; SF=function(e,L,c,I,B,x){lX.call(this,e,{U:"div",W:"ytp-ad-skip-button-slot"},"skip-button",L,c,I,B);var S=this;this.h7=null;this.Ve=!1;this.Pe=x;this.j=this.api.S().experiments.N0("enable_modern_skip_button_on_web");this.d_=!1;this.G=new g.I9({U:"span",Rq:["ytp-ad-skip-button-container"]});this.j&&this.G.element.classList.add("ytp-ad-skip-button-container-detached");g.l(this,this.G);this.G.jl(this.element);this.K=this.Z=null;this.Sl=new g.dJ(this.G,500,!1,100,function(){return S.hide()}); g.l(this,this.Sl);this.Y9=new Yu(this.G.element,15E3,5E3,.5,.5,this.j);g.l(this,this.Y9);this.hide()}; SLr=function(e){e=e.h7&&e.h7.adRendererCommands;return(e&&e.clickCommand&&g.Q(e.clickCommand,g.r9)&&g.Q(e.clickCommand,g.r9).commands||[]).some(function(L){return L.adLifecycleCommand?oin(L.adLifecycleCommand):!1})}; oin=function(e){return e.action==="END_LINEAR_AD"||e.action==="END_LINEAR_AD_PLACEMENT"}; hW=function(e,L,c,I,B,x){lX.call(this,e,{U:"div",W:"ytp-ad-skip-ad-slot"},"skip-ad",L,c,I,B);this.h7=x;this.G=!1;this.j=0;this.Z=this.K=null;this.hide()}; rgv=function(e,L){e.G||(e.G=!0,e.K&&(L?e.K.h7.hide():e.K.hide()),L?(e=e.Z,e.Sl.show(),e.show()):e.Z.show())}; Rr=function(e,L,c,I){bX.call(this,e,L,c,I,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; u1=function(e,L,c,I,B,x,S){x=x===void 0?!1:x;S=S===void 0?!1:S;B7.call(this,e,{U:"span",W:"ytp-ad-simple-ad-badge"},"simple-ad-badge",L,c,I);this.Z=B;this.X=this.q0("ytp-ad-simple-ad-badge");(this.K=x)&&this.X.classList.add("ytp-ad-simple-ad-badge--clean-player");S&&this.X.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; tW=function(e,L,c,I,B){B=B===void 0?!1:B;KE.call(this,"player-overlay",e,{},L,I);this.videoAdDurationSeconds=c;this.interactionLoggingClientData=I;this.rh=B}; Os=function(e,L){g.Yg.call(this);this.api=e;this.durationMs=L;this.X=null;this.Eq=new sR(this);g.l(this,this.Eq);this.K=hdR;this.Eq.C(this.api,"presentingplayerstatechange",this.CD);this.X=this.Eq.C(this.api,"onAdPlaybackProgress",this.Ty)}; q2=function(e){g.Yg.call(this);this.X=!1;this.GN=0;this.Eq=new sR(this);g.l(this,this.Eq);this.durationMs=e;this.timer=new g.VH(100);g.l(this,this.timer);this.Eq.C(this.timer,"tick",this.Ty);this.K={seekableStart:0,seekableEnd:e/1E3,current:0};this.start()}; g.Te=function(e,L){var c=Math.abs(Math.floor(e)),I=Math.floor(c/86400),B=Math.floor(c%86400/3600),x=Math.floor(c%3600/60);c=Math.floor(c%60);if(L){L="";I>0&&(L+=" "+I+" Days");if(I>0||B>0)L+=" "+B+" Hours";L+=" "+x+" Minutes";L+=" "+c+" Seconds";I=L.trim()}else{L="";I>0&&(L+=I+":",B<10&&(L+="0"));if(I>0||B>0)L+=B+":",x<10&&(L+="0");L+=x+":";c<10&&(L+="0");I=L+c}return e>=0?I:"-"+I}; g.WZ=function(e){return(!("button"in e)||typeof e.button!=="number"||e.button===0)&&!("shiftKey"in e&&e.shiftKey)&&!("altKey"in e&&e.altKey)&&!("metaKey"in e&&e.metaKey)&&!("ctrlKey"in e&&e.ctrlKey)}; M2=function(e,L,c,I,B,x,S){lX.call(this,e,{U:"span",W:S?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",L,c,I,B);this.videoAdDurationSeconds=x;this.K=null;S&&this.api.S().K&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),ya&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()}; ze=function(e,L,c,I){jH.call(this,e,L,c,I,"ytp-video-ad-top-bar-title","ad-title")}; vZ=function(e){this.content=e.content;if(e.commandRuns){e=g.f(e.commandRuns);for(var L=e.next();!L.done;L=e.next())L=L.value,this.loggingDirectives=g.Q(L,Rdc),L.onTap&&(this.interaction={onTap:L.onTap})}}; fq=function(e,L,c,I){B7.call(this,e,{U:"div",W:"ad-simple-attributed-string"},"ad-simple-attributed-string",L,c,I);this.hide()}; AW=function(e,L,c,I,B){B7.call(this,e,{U:"span",W:B?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",L,c,I);this.K=B;this.adBadgeText=new fq(this.api,this.layoutId,this.interactionLoggingClientData,this.A7);this.adBadgeText.jl(this.element);g.l(this,this.adBadgeText);B?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),ya&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; Fn=function(e,L,c,I){B7.call(this,e,{U:"span",W:"ytp-ad-pod-index"},"ad-pod-index",L,c,I);this.api.S().K&&(this.element.classList.add("ytp-ad-pod-index--mweb"),ya&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()}; b1=function(e,L,c,I){B7.call(this,e,{U:"div",W:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",L,c,I);this.hide()}; i1=function(e,L){this.K=e;this.X=L}; u9v=function(e,L){return e.K+L*(e.X-e.K)}; Ge=function(e,L,c){return e.X-e.K?g.j5((L-e.K)/(e.X-e.K),0,1):c!=null?c:Infinity}; g9=function(e,L,c,I){I=I===void 0?!1:I;g.I9.call(this,{U:"div",W:"ytp-ad-persistent-progress-bar-container",L:[{U:"div",W:"ytp-ad-persistent-progress-bar"}]});this.api=e;this.K=L;this.Z=c;I&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.l(this,this.K);this.progressBar=this.q0("ytp-ad-persistent-progress-bar");this.X=-1;this.C(e,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; kw=function(e,L,c,I,B,x){B7.call(this,e,{U:"div",W:"ytp-ad-player-overlay",L:[{U:"div",W:"ytp-ad-player-overlay-flyout-cta"},{U:"div",W:"ytp-ad-player-overlay-instream-info"},{U:"div",W:"ytp-ad-player-overlay-skip-or-preview"},{U:"div",W:"ytp-ad-player-overlay-progress-bar"},{U:"div",W:"ytp-ad-player-overlay-instream-user-sentiment"},{U:"div",W:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",L,c,I);this.D=x;this.j=this.q0("ytp-ad-player-overlay-flyout-cta");this.j.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.X=this.q0("ytp-ad-player-overlay-instream-info");this.G=null;tt$(this)&&(e=O_("div"),g.Y4(e,"ytp-ad-player-overlay-top-bar-gradients"),L=this.X,L.parentNode&&L.parentNode.insertBefore(e,L),(L=this.api.getVideoData(2))&&L.isListed&&L.title&&(c=new ze(this.api,this.layoutId,this.interactionLoggingClientData,this.A7),c.jl(e),c.init(X7("ad-title"),{text:L.title},this.macros),g.l(this,c)),this.G=e);this.Z=null;this.t7=this.q0("ytp-ad-player-overlay-skip-or-preview");this.Y9=this.q0("ytp-ad-player-overlay-progress-bar"); this.Ve=this.q0("ytp-ad-player-overlay-instream-user-sentiment");this.h7=this.q0("ytp-ad-player-overlay-ad-disclosure-banner");this.K=B;g.l(this,this.K);this.hide()}; tt$=function(e){e=e.api.S();return g.DF(e)&&e.K}; g.w9=function(e){e&=16777215;var L=[(e&16711680)>>16,(e&65280)>>8,e&255];e=L[0];var c=L[1];L=L[2];e=Number(e);c=Number(c);L=Number(L);if(e!=(e&255)||c!=(c&255)||L!=(L&255))throw Error('"('+e+","+c+","+L+'") is not a valid RGB color');c=e<<16|c<<8|L;return e<16?"#"+(16777216|c).toString(16).slice(1):"#"+c.toString(16)}; g.JW=function(){}; qL$=function(e){var L=new om;var c=new x7;c=a7(c,1,"botguard");e=a7(c,2,e);this.X=a5c(L,x7,1,O$M,e)}; VL=function(e){this.X=new f1(e)}; Tmc=function(){var e=!1;try{e=!!window.sessionStorage.getItem("session_logininfo")}catch(L){e=!0}return(g.Zu("INNERTUBE_CLIENT_NAME")==="WEB"||g.Zu("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&e}; Cq=function(){var e=e===void 0?!0:e;try{window.sessionStorage.removeItem("stickiness_reload");window.sessionStorage.removeItem("session_logininfo");yJ("LOGIN_INFO","");e&&window.sessionStorage.setItem("from_switch_account","1");e=!0;e=e===void 0?!1:e;var L,c=WdJ;c||(c=document.querySelector("#persist_identity"));if(L=c){var I=L.src?(new URL(L.src)).origin:"*";if(e){var B;(B=L.contentWindow)==null||B.postMessage({action:"clear"},I)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>= 2)){var x=window.sessionStorage.getItem("session_logininfo");if(x){var S;(S=L.contentWindow)==null||S.postMessage({loginInfo:x},I)}}}}catch(h){}}; ar=function(e){e&&(e.startsWith("https://accounts.google.com/AddSession")?Cq():e.startsWith("https://accounts.google.com/ServiceLogin")?Cq():e.startsWith("https://myaccount.google.com")&&g.S9(e).K.endsWith("/youtubeoptions")&&Cq());if(g.Zu("LOGGED_IN",!0)&&Tmc()){var L=g.Zu("VALID_SESSION_TEMPDATA_DOMAINS",[]);var c=g.hp(window.location.href);c&&L.push(c);c=g.hp(e);g.Fh(L,c)||!c&&wu(e,"/")?(L=uT(e),(L=HUJ(L))?(L=JFM(L),L=(L=g.ka(L)||null)?dW(L):{}):L=null):L=null;L==null&&(L={});c=L;var I=void 0; Tmc()?(I||(I=g.Zu("LOGIN_INFO")),I?(c.session_logininfo=I,c=!0):c=!1):c=!1;c&&WJ(e,L)}}; g.MtR=function(e){var L=L===void 0?{}:L;var c=c===void 0?"":c;var I=I===void 0?window:I;e=g.WO(e,L);ar(e);c=g.h0(e+c);I=I.location;c=Rg(c);c!==void 0&&(I.href=c)}; g.N2=function(e,L,c){L=L===void 0?{}:L;c=c===void 0?!1:c;var I=g.Zu("EVENT_ID");I&&(L.ei||(L.ei=I));L&&WJ(e,L);c||(ar(e),g.MtR(e))}; g.mZ=function(e,L,c,I,B){B=B===void 0?!1:B;c&&WJ(e,c);c=g.h0(e);var x=g.xC(c);e!=x&&ld(Error("Unsafe window.open URL: "+e));e=x;L=L||Co(e).toString(36);try{if(B)return B=e,B=ha$(B),ar(B),g.Wa(window,B,L,"attributionsrc")}catch(S){g.jM(S)}ar(e);return g.Wa(window,c,L,I)}; zdv=function(e){yL=e}; sMn=function(e){ZF=e}; vic=function(e){pq=e}; AgH=function(){fQx=pq=ZF=yL=null}; b$H=function(){var e=e===void 0?window.location.href:e;if(g.uL("kevlar_disable_theme_param"))return null;var L=RX(e);if(g.uL("enable_dark_theme_only_on_shorts")&&L!=null&&L.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var c=g.Ee(e).theme;return FdM.get(c)||null}catch(I){}return null}; $w=function(){this.X={};if(this.K=Wa$()){var e=g.ka("CONSISTENCY");e&&i$f(this,{encryptedTokenJarContents:e})}}; i$f=function(e,L){if(L.encryptedTokenJarContents&&(e.X[L.encryptedTokenJarContents]=L,typeof L.expirationSeconds==="string")){var c=Number(L.expirationSeconds);setTimeout(function(){delete e.X[L.encryptedTokenJarContents]},c*1E3); e.K&&g.GZ("CONSISTENCY",L.encryptedTokenJarContents,c,void 0,!0)}}; HZ=function(){this.K=-1;var e=g.Zu("LOCATION_PLAYABILITY_TOKEN");g.Zu("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=jF(this))&&(e=this.localStorage.get("yt-location-playability-token"));e&&(this.locationPlayabilityToken=e,this.X=void 0)}; jF=function(e){return e.localStorage===void 0?new UR("yt-client-location"):e.localStorage}; g.l1=function(e,L,c){L=L===void 0?!1:L;c=c===void 0?!1:c;var I=g.Zu("INNERTUBE_CONTEXT");if(!I)return g.A9(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};I=g.zG(I);g.uL("web_no_tracking_params_in_shell_killswitch")||delete I.clickTracking;I.client||(I.client={});var B=I.client;B.clientName==="MWEB"&&B.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(B.clientFormFactor=g.Zu("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");B.screenWidthPoints=window.innerWidth;B.screenHeightPoints= window.innerHeight;B.screenPixelDensity=Math.round(window.devicePixelRatio||1);B.screenDensityFloat=window.devicePixelRatio||1;B.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var x=x===void 0?!1:x;g.J7();var S="USER_INTERFACE_THEME_LIGHT";g.Vu(0,165)?S="USER_INTERFACE_THEME_DARK":g.Vu(0,174)?S="USER_INTERFACE_THEME_LIGHT":!g.uL("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (S="USER_INTERFACE_THEME_DARK");x=x?S:b$H()||S;B.userInterfaceTheme=x;if(!L){if(x=cSn())B.connectionType=x;g.uL("web_log_effective_connection_type")&&(x=BGT())&&(I.client.effectiveConnectionType=x)}var h;if(g.uL("web_log_memory_total_kbytes")&&((h=g.LZ.navigator)==null?0:h.deviceMemory)){var R;h=(R=g.LZ.navigator)==null?void 0:R.deviceMemory;I.client.memoryTotalKbytes=""+h*1E6}g.uL("web_gcf_hashes_innertube")&&(x=uZc())&&(R=x.coldConfigData,h=x.coldHashData,x=x.hotHashData,I.client.configInfo=I.client.configInfo|| {},R&&(I.client.configInfo.coldConfigData=R),h&&(I.client.configInfo.coldHashData=h),x&&(I.client.configInfo.hotHashData=x));R=g.Ee(g.LZ.location.href);!g.uL("web_populate_internal_geo_killswitch")&&R.internalcountrycode&&(B.internalGeo=R.internalcountrycode);B.clientName==="MWEB"||B.clientName==="WEB"?(B.mainAppWebInfo||(B.mainAppWebInfo={}),B.mainAppWebInfo.graftUrl=g.LZ.location.href,g.uL("kevlar_woffle")&&EdJ.instance&&(R=EdJ.instance,B.mainAppWebInfo.pwaInstallabilityStatus=!R.X&&R.K?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),B.mainAppWebInfo.webDisplayMode=k5(),B.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):B.clientName==="TVHTML5"&&(!g.uL("web_lr_app_quality_killswitch")&&(R=g.Zu("LIVING_ROOM_APP_QUALITY"))&&(B.tvAppInfo=Object.assign(B.tvAppInfo||{},{appQuality:R})),R=g.Zu("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(B.tvAppInfo=Object.assign(B.tvAppInfo||{},{certificationScope:R}));if(!g.uL("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var u=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(y){}u=void 0}u&&(B.timeZone=u)}(u=ON())?B.experimentsToken=u:delete B.experimentsToken;u=qL();$w.instance||($w.instance=new $w);I.request=Object.assign({},I.request,{internalExperimentFlags:u,consistencyTokenJars:ru($w.instance.X)});!g.uL("web_prequest_context_killswitch")&&(u=g.Zu("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(I.request.externalPrequestContext=u);B=g.J7();u=g.Vu(0,58);B=B.get("gsml","");I.user=Object.assign({}, I.user);u&&(I.user.enableSafetyMode=u);B&&(I.user.lockedSafetyMode=!0);g.uL("warm_op_csn_cleanup")?c&&(L=g.qy())&&(I.clientScreenNonce=L):!L&&(L=g.qy())&&(I.clientScreenNonce=L);e&&(I.clickTracking={clickTrackingParams:e});if(e=g.BU("yt.mdx.remote.remoteClient_"))I.remoteClient=e;HZ.getInstance().setLocationOnInnerTubeContext(I);try{var t=IC(),O=t.bid;delete t.bid;I.adSignalsInfo={params:[],bid:O};for(var q=g.f(Object.entries(t)),T=q.next();!T.done;T=q.next()){var W=g.f(T.value),A=W.next().value, b=W.next().value;t=A;O=b;e=void 0;(e=I.adSignalsInfo.params)==null||e.push({key:t,value:""+O})}var J,w;if(((J=I.client)==null?void 0:J.clientName)==="TVHTML5"||((w=I.client)==null?void 0:w.clientName)==="TVHTML5_UNPLUGGED"){var C=g.Zu("INNERTUBE_CONTEXT");C.adSignalsInfo&&(I.adSignalsInfo.advertisingId=C.adSignalsInfo.advertisingId,I.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",I.adSignalsInfo.limitAdTracking=C.adSignalsInfo.limitAdTracking)}}catch(y){g.A9(y)}return I}; kI6=function(e,L){if(!e)return!1;var c,I=(c=g.Q(e,GIH))==null?void 0:c.signal;if(I&&L.B4)return!!L.B4[I];var B;if((c=(B=g.Q(e,gi6))==null?void 0:B.request)&&L.yn)return!!L.yn[c];for(var x in e)if(L.Bx[x])return!0;return!1}; DOM=function(e){var L={"Content-Type":"application/json"};g.Zu("EOM_VISITOR_DATA")?L["X-Goog-EOM-Visitor-Id"]=g.Zu("EOM_VISITOR_DATA"):g.Zu("VISITOR_DATA")&&(L["X-Goog-Visitor-Id"]=g.Zu("VISITOR_DATA"));L["X-Youtube-Bootstrap-Logged-In"]=g.Zu("LOGGED_IN",!1);g.Zu("DEBUG_SETTINGS_METADATA")&&(L["X-Debug-Settings-Metadata"]=g.Zu("DEBUG_SETTINGS_METADATA"));e!=="cors"&&((e=g.Zu("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(L["X-Youtube-Client-Name"]=e),(e=g.Zu("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(L["X-Youtube-Client-Version"]= e),(e=g.Zu("CHROME_CONNECTED_HEADER"))&&(L["X-Youtube-Chrome-Connected"]=e),(e=g.Zu("DOMAIN_ADMIN_STATE"))&&(L["X-Youtube-Domain-Admin-State"]=e),g.Zu("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(e=g.Zu("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(L["X-YouTube-Lava-Device-Context"]=e));return L}; wKr=function(){this.X={}}; PZ=function(){this.mappings=new wKr}; QL=function(e){return function(){return new e}}; VtM=function(e){var L=L===void 0?"UNKNOWN_INTERFACE":L;if(e.length===1)return e[0];var c=Jg$[L];if(c){c=new RegExp(c);for(var I=g.f(e),B=I.next();!B.done;B=I.next())if(B=B.value,c.exec(B))return B}var x=[];Object.entries(Jg$).forEach(function(S){var h=g.f(S);S=h.next().value;h=h.next().value;L!==S&&x.push(h)}); c=new RegExp(x.join("|"));e.sort(function(S,h){return S.length-h.length}); I=g.f(e);for(B=I.next();!B.done;B=I.next())if(B=B.value,!c.exec(B))return B;return e[0]}; g.d9=function(e){return"/youtubei/v1/"+VtM(e)}; Us=function(){}; Es=function(){}; Xn=function(){}; Kq=function(e){return g.BU("ytcsi."+(e||"")+"data_")||CET(e)}; aQf=function(){var e=Kq();e.info||(e.info={});return e.info}; Yw=function(e){e=Kq(e);e.metadata||(e.metadata={});return e.metadata}; nq=function(e){e=Kq(e);e.tick||(e.tick={});return e.tick}; ei=function(e){e=Kq(e);if(e.gel){var L=e.gel;L.gelInfos||(L.gelInfos={});L.gelTicks||(L.gelTicks={})}else e.gel={gelTicks:{},gelInfos:{}};return e.gel}; Nm6=function(e){e=ei(e);e.gelInfos||(e.gelInfos={});return e.gelInfos}; Li=function(e){var L=Kq(e).nonce;L||(L=g.Rp(16),Kq(e).nonce=L);return L}; CET=function(e){var L={tick:{},info:{}};g.IL("ytcsi."+(e||"")+"data_",L);return L}; cE=function(){var e=g.BU("ytcsi.debug");e||(e=[],g.IL("ytcsi.debug",e),g.IL("ytcsi.reference",{}));return e}; IN=function(e){e=e||"";var L=mO6();if(L[e])return L[e];var c=cE(),I={timerName:e,info:{},tick:{},span:{},jspbInfo:[]};c.push(I);return L[e]=I}; yg$=function(e){e=e||"";var L=mO6();L[e]&&delete L[e];var c=cE(),I={timerName:e,info:{},tick:{},span:{},jspbInfo:[]};c.push(I);L[e]=I}; mO6=function(){var e=g.BU("ytcsi.reference");if(e)return e;cE();return g.BU("ytcsi.reference")}; BE=function(e){return Z$J[e]||"LATENCY_ACTION_UNKNOWN"}; xE=function(e,L){xR.call(this,1,arguments);this.timer=L}; oN=function(){this.X=0}; Si=function(){oN.instance||(oN.instance=new oN);return oN.instance}; hD=function(e,L){r_[L]=r_[L]||{count:0};var c=r_[L];c.count++;c.time=(0,g.zI)();e.X||(e.X=g.HI(0,function(){var I=(0,g.zI)(),B;for(B in r_)r_[B]&&I-r_[B].time>6E4&&delete r_[B];e&&(e.X=0)},5E3)); return c.count>5?(c.count===6&&Math.random()*1E5<1&&(c=new g.yu("CSI data exceeded logging limit with key",L.split("_")),L.indexOf("plev")>=0||g.F7(c)),!0):!1}; pKc=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; $OM=function(){var e;if(g.uL("csi_use_performance_navigation_timing")){var L,c,I,B=RN==null?void 0:(e=RN.getEntriesByType)==null?void 0:(L=e.call(RN,"navigation"))==null?void 0:(c=L[0])==null?void 0:(I=c.toJSON)==null?void 0:I.call(c);B?(B.requestStart=ue(B.requestStart),B.responseEnd=ue(B.responseEnd),B.redirectStart=ue(B.redirectStart),B.redirectEnd=ue(B.redirectEnd),B.domainLookupEnd=ue(B.domainLookupEnd),B.connectStart=ue(B.connectStart),B.connectEnd=ue(B.connectEnd),B.responseStart=ue(B.responseStart), B.secureConnectionStart=ue(B.secureConnectionStart),B.domainLookupStart=ue(B.domainLookupStart),B.isPerformanceNavigationTiming=!0,e=B):e=RN.timing}else e=g.uL("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(RN.timing)):RN.timing;return e}; ue=function(e){return Math.round(tD()+e)}; tD=function(){return(g.uL("csi_use_time_origin")||g.uL("csi_use_time_origin_tvhtml5"))&&RN.timeOrigin?Math.floor(RN.timeOrigin):RN.timing.navigationStart}; qv=function(e,L){Ov("_start",e,L)}; Tp=function(e,L){if(!g.uL("web_csi_action_sampling_enabled")||!Kq(L).actionDisabled){var c=IN(L||"");Ip(c.info,e);e.loadType&&(c=e.loadType,Yw(L).loadType=c);Ip(Nm6(L),e);c=Li(L);L=Kq(L).cttAuthInfo;Si().info(e,c,L)}}; jMx=function(){var e,L,c,I;return((I=Fg().resolve(Mc(n$))==null?void 0:(e=e4())==null?void 0:(L=e.loggingHotConfig)==null?void 0:(c=L.csiConfig)==null?void 0:c.debugTicks)!=null?I:[]).map(function(B){return Object.values(B)[0]})}; Ov=function(e,L,c){if(!g.uL("web_csi_action_sampling_enabled")||!Kq(c).actionDisabled){var I=Li(c),B;if(B=g.uL("web_csi_debug_sample_enabled")&&I){(Fg().resolve(Mc(n$))==null?0:e4())&&!H$x&&(H$x=!0,Ov("gcfl",(0,g.zI)(),c));var x,S,h;B=(Fg().resolve(Mc(n$))==null?void 0:(x=e4())==null?void 0:(S=x.loggingHotConfig)==null?void 0:(h=S.csiConfig)==null?void 0:h.debugSampleWeight)||0;if(x=B!==0)b:{x=jMx();if(x.length>0)for(S=0;Sc.duration?I:c},{duration:0}))&&L.startTime>0&&L.responseEnd>0&&(Ov("wffs",ue(L.startTime)),Ov("wffe",ue(L.responseEnd)))}; XKn=function(e,L,c){RN&&RN.measure&&(e.startsWith("measure_")||(e="measure_"+e),c?RN.measure(e,L,c):L?RN.measure(e,L):RN.measure(e))}; Kdn=function(e){var L=WE("aft",e);if(L)return L;L=g.Zu((e||"")+"TIMING_AFT_KEYS",["ol"]);for(var c=L.length,I=0;I0&&Tp(L);L={isNavigation:!0,actionType:BE(g.Zu("TIMING_ACTION"))};var c=g.Zu("PREVIOUS_ACTION");c&&(L.previousAction=BE(c));if(c=g.Zu("CLIENT_PROTOCOL"))L.httpProtocol=c;if(c=g.Zu("CLIENT_TRANSPORT"))L.transportProtocol=c;(c=g.qy())&&c!=="UNDEFINED_CSN"&&(L.clientScreenNonce=c);c=QMv();if(c===1||c===-1)L.isVisible= !0;c=Yw().loadType==="cold";var I=aQf();c||(c=I.yt_lt==="cold");if(c){L.loadType="cold";c=aQf();I=$OM();var B=tD(),x=g.Zu("CSI_START_TIMESTAMP_MILLIS",0);x>0&&!g.uL("embeds_web_enable_csi_start_override_killswitch")&&(B=x);B&&(Ov("srt",I.responseStart),c.prerender!==1&&qv(B));c=eqR();c>0&&Ov("fpt",c);c=$OM();c.isPerformanceNavigationTiming&&Tp({performanceNavigationTiming:!0},void 0);Ov("nreqs",c.requestStart,void 0);Ov("nress",c.responseStart,void 0);Ov("nrese",c.responseEnd,void 0);c.redirectEnd- c.redirectStart>0&&(Ov("nrs",c.redirectStart,void 0),Ov("nre",c.redirectEnd,void 0));c.domainLookupEnd-c.domainLookupStart>0&&(Ov("ndnss",c.domainLookupStart,void 0),Ov("ndnse",c.domainLookupEnd,void 0));c.connectEnd-c.connectStart>0&&(Ov("ntcps",c.connectStart,void 0),Ov("ntcpe",c.connectEnd,void 0));c.secureConnectionStart>=tD()&&c.connectEnd-c.secureConnectionStart>0&&(Ov("nstcps",c.secureConnectionStart,void 0),Ov("ntcpe",c.connectEnd,void 0));RN&&"getEntriesByType"in RN&&EiM();c=[];if(document.querySelector&& RN&&RN.getEntriesByName)for(var S in vE)vE.hasOwnProperty(S)&&(I=vE[S],UOJ(S,I)&&c.push(I));if(c.length>0)for(L.resourceInfo=[],S=g.f(c),c=S.next();!c.done;c=S.next())L.resourceInfo.push({resourceCache:c.value})}Tp(L);L=ei();L.preLoggedGelInfos||(L.preLoggedGelInfos=[]);S=L.preLoggedGelInfos;L=Nm6();c=void 0;for(I=0;I-1&&(delete JJ["@type"],X=JJ);A&&e.K.has(A)&&e.K.delete(A);((cU=L.config)==null?0:cU.ZjM)&&AD(L.config.ZjM);if(X||($N=e.Z)==null||!$N.B9m(L.input,L.h8)){$n.Iq(15);break}return g.a($n,e.Z.Jbd(L.input,L.h8),16);case 16:X=$n.X;case 15:return zq$(e, X,L),((fZ=L.config)==null?0:fZ.lgm)&&AD(L.config.lgm),I(),$n.return(X||void 0)}})}; OFH=function(e,L){a:{e=e.Nz;var c,I=(c=g.Q(L,GIH))==null?void 0:c.signal;if(I&&e.B4&&(c=e.B4[I])){var B=c();break a}var x;if((c=(x=g.Q(L,gi6))==null?void 0:x.request)&&e.yn&&(x=e.yn[c])){B=x();break a}for(B in L)if(e.Bx[B]&&(L=e.Bx[B])){B=L();break a}B=void 0}if(B!==void 0)return Promise.resolve(B)}; TO$=function(e,L,c){var I,B,x,S,h,R,u;return g.Z(function(t){if(t.K==1){x=((I=L)==null?void 0:(B=I.le)==null?void 0:B.identity)||B4;R=(S=L)==null?void 0:(h=S.le)==null?void 0:h.sessionIndex;var O=g.gT(e.X.ZE(x,{sessionIndex:R}));return g.a(t,O,2)}u=t.X;return t.return(Promise.resolve(Object.assign({},DOM(c),u)))})}; qxx=function(e,L,c){var I,B=(L==null?void 0:(I=L.le)==null?void 0:I.identity)||B4,x;L=L==null?void 0:(x=L.le)==null?void 0:x.sessionIndex;e=e.X.ZE(B,{sessionIndex:L});return Object.assign({},DOM(c),e)}; JD=function(){}; V_=function(){}; Ci=function(e){this.j=e}; aN=function(){}; Nv=function(){}; mQ=function(){}; y_=function(){}; g.Ze=function(e,L){var c=g.HM.apply(2,arguments);e=e===void 0?0:e;g.yu.call(this,L,c);this.errorType=e;Object.setPrototypeOf(this,this.constructor.prototype)}; pi=function(e,L,c,I){this.X=e;this.K=L;this.Z=c;this.G=I}; vR$=function(e,L,c){if(e.X){var I=RX(Ap(L,"key"))||"/UNKNOWN_PATH";e.X.start(I)}I=c;g.uL("wug_networking_gzip_request")&&(I=jAf(c));var B;return new ((B=e.G)!=null?B:window.Request)(L,I)}; g.ji=function(e,L){if(!$E){var c=Fg();zr(c,{X9:fZc,uR:pi});var I={Bx:{feedbackEndpoint:QL(aN),modifyChannelNotificationPreferenceEndpoint:QL(Nv),playlistEditEndpoint:QL(mQ),shareEntityEndpoint:QL(Ci),subscribeEndpoint:QL(JD),unsubscribeEndpoint:QL(V_),webPlayerShareEntityServiceEndpoint:QL(y_)}},B=HZ.getInstance(),x={};B&&(x.client_location=B);e===void 0&&(e=X06());L===void 0&&(L=c.resolve(fZc));t4T(I,L,e,x);zr(c,{X9:AHf,TC:kE.instance});$E=c.resolve(AHf)}return $E}; F7M=function(e){var L=new od;if(e.interpreterJavascript){var c=VAf(e.interpreterJavascript);c=s3(c).toString();var I=new B0;a7(I,6,c);b6(L,B0,1,I,dR)}else e.interpreterUrl&&(c=Tw(e.interpreterUrl),c=Ig(c).toString(),I=new xd,a7(I,4,c),b6(L,xd,2,I,dR));e.interpreterHash&&N4(L,3,e.interpreterHash,dR);e.program&&N4(L,4,e.program,dR);e.globalName&&N4(L,5,e.globalName,dR);e.clientExperimentsStateBlob&&N4(L,7,e.clientExperimentsStateBlob,dR);return L}; HE=function(e){var L={};e=e.split("&");e=g.f(e);for(var c=e.next();!c.done;c=e.next())c=c.value.split("="),c.length===2&&(L[c[0]]=c[1]);return L}; JYc=function(){if(g.uL("bg_st_hr"))return"havuokmhhs-0";var e,L=((e=performance)==null?void 0:e.timeOrigin)||0;return"havuokmhhs-"+Math.floor(L)}; le=function(e){this.X=e}; bFr=function(){return new Promise(function(e){var L=window.top;L.ntpevasrs!==void 0?e(new le(L.ntpevasrs)):(L.ntpqfbel===void 0&&(L.ntpqfbel=[]),L.ntpqfbel.push(function(c){e(new le(c))}))})}; GWc=function(){if(UN()){var e=g.Zu("PLAYER_VARS",{});if(g.TG(e,"privembed",!1)!="1"&&!FaT(e)){var L=function(){PE=!0;"google_ad_status"in window?yJ("DCLKSTAT",1):yJ("DCLKSTAT",2)}; try{g.Ex("//static.doubleclick.net/instream/ad_status.js",L)}catch(c){}iFv.push(g.Vw.dg(function(){if(!(PE||"google_ad_status"in window)){try{if(L){var c=""+g.hw(L),I=AGx[c];I&&g.dO(I)}}catch(B){}PE=!0;yJ("DCLKSTAT",3)}},5E3))}}}; Q_=function(){var e=Number(g.Zu("DCLKSTAT",0));return isNaN(e)?0:e}; XT=function(e,L,c){var I=this;this.network=e;this.options=L;this.K=c;this.X=null;if(L.DLm){var B=new g.rk;this.X=B.promise;g.LZ.ytAtRC&&jL(function(){var x,S;return g.Z(function(h){if(h.K==1){if(!g.LZ.ytAtRC)return h.return();x=d_(null);return g.a(h,Uv(I,x),2)}S=h.X;g.LZ.ytAtRC&&g.LZ.ytAtRC(JSON.stringify(S));g.AJ(h)})},2); bFr().then(function(x){var S,h,R,u;return g.Z(function(t){if(t.K==1)return x.bindInnertubeChallengeFetcher(function(O){return Uv(I,d_(O))}),g.a(t,Xy(),2); S=t.X;h=x.getLatestChallengeResponse();R=h.challenge;if(!R)throw Error("BGE_MACIL");u={challenge:R,Ro:HE(R),zk:S,bgChallenge:new od};B.resolve(u);x.registerChallengeFetchedCallback(function(O){O=O.challenge;if(!O)throw Error("BGE_MACR");O={challenge:O,Ro:HE(O),zk:S,bgChallenge:new od};I.X=Promise.resolve(O)}); g.AJ(t)})})}else L.preload&&gRc(this,new Promise(function(x){g.HI(0,function(){x(Ev(I))},0)}))}; d_=function(e){var L={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};e&&(L.interpreterHash=e);return L}; Ev=function(e,L){L=L===void 0?0:L;var c,I,B,x,S,h,R,u,t,O,q,T;return g.Z(function(W){switch(W.K){case 1:c=d_(ur().X);if(g.uL("att_fet_ks"))return g.bn(W,7),g.a(W,Uv(e,c),9);g.bn(W,4);return g.a(W,kWR(e,c),6);case 6:S=W.X;B=S.VWd;x=S.kIS;I=S;g.DR(W,3);break;case 4:return g.wc(W),g.F7(Error("Failed to fetch attestation challenge after "+(L+" attempts; not retrying for 24h."))),Ki(e,864E5),W.return({challenge:"",Ro:{},zk:void 0,bgChallenge:void 0});case 9:I=W.X;if(!I)throw Error("Fetching Attestation challenge returned falsy"); if(!I.challenge)throw Error("Missing Attestation challenge");B=I.challenge;x=HE(B);if("c1a"in x&&(!I.bgChallenge||!I.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.DR(W,3);break;case 7:h=g.wc(W);g.F7(h);L++;if(L>=5)return g.F7(Error("Failed to fetch attestation challenge after "+(L+" attempts; not retrying for 24h."))),Ki(e,864E5),W.return({challenge:"",Ro:{},zk:void 0,bgChallenge:void 0});R=1E3*Math.pow(2,L-1)+Math.random()*1E3;return W.return(new Promise(function(A){g.HI(0, function(){A(Ev(e,L))},R)})); case 3:u=Number(x.t)||7200;Ki(e,u*1E3);t=void 0;if(!("c1a"in x&&I.bgChallenge)){W.Iq(10);break}O=F7M(I.bgChallenge);g.bn(W,11);return g.a(W,wsJ(ur(),O),13);case 13:g.DR(W,12);break;case 11:return q=g.wc(W),g.F7(q),W.return({challenge:B,Ro:x,zk:t,bgChallenge:O});case 12:return g.bn(W,14),t=new hU({challenge:O,CJ:{EU:"aGIf"}}),g.a(W,t.NJ,16);case 16:g.DR(W,10);break;case 14:T=g.wc(W),g.F7(T),t=void 0;case 10:return W.return({challenge:B,Ro:x,zk:t,bgChallenge:O})}})}; Uv=function(e,L){var c;return g.Z(function(I){c=e.K;if(!c||c.y9())return I.return(Uv(e.network,L));g_("att_pna",void 0,"attestation_challenge_fetch");return I.return(new Promise(function(B){c.KW("publicytnetworkstatus-online",function(){Uv(e.network,L).then(B)})}))})}; DKr=function(e){if(!e)throw Error("Fetching Attestation challenge returned falsy");if(!e.challenge)throw Error("Missing Attestation challenge");var L=e.challenge,c=HE(L);if("c1a"in c&&(!e.bgChallenge||!e.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},e,{VWd:L,kIS:c})}; kWR=function(e,L){var c,I,B,x,S;return g.Z(function(h){switch(h.K){case 1:c=void 0,I=0,B={};case 2:if(!(I<5)){h.Iq(4);break}if(!(I>0)){h.Iq(5);break}B.Vz=1E3*Math.pow(2,I-1)+Math.random()*1E3;return g.a(h,new Promise(function(R){return function(u){g.HI(0,function(){u(void 0)},R.Vz)}}(B)),5); case 5:return g.bn(h,7),g.a(h,Uv(e,L),9);case 9:return x=h.X,h.return(DKr(x));case 7:c=S=g.wc(h),S instanceof Error&&g.F7(S);case 8:I++;B={Vz:void 0};h.Iq(2);break;case 4:throw c;}})}; gRc=function(e,L){e.X=L}; w4c=function(e){var L,c,I;return g.Z(function(B){if(B.K==1)return g.a(B,Promise.race([e.X,null]),2);L=B.X;var x=Ev(e);e.X=x;(c=L)==null||(I=c.zk)==null||I.dispose();g.AJ(B)})}; Ki=function(e,L){function c(){var B;return g.Z(function(x){B=I-Date.now();return B<1E3?g.a(x,w4c(e),0):(jL(c,0,Math.min(B,6E4)),x.Iq(0))})} var I=Date.now()+L;c()}; JHc=function(e,L){return new Promise(function(c){g.HI(0,function(){c(L())},e)})}; g.V4M=function(e,L){var c;return g.Z(function(I){var B=g.BU("yt.aba.att");return(c=B?B:XT.instance!==void 0?XT.instance.Z.bind(XT.instance):null)?I.return(c("ENGAGEMENT_TYPE_PLAYBACK",e,L)):I.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.CMn=function(){var e;return(e=(e=g.BU("yt.aba.att2"))?e:XT.instance!==void 0?XT.instance.G.bind(XT.instance):null)?e():Promise.resolve(!1)}; NOn=function(e,L){var c=g.BU("ytDebugData.callbacks");c||(c={},g.IL("ytDebugData.callbacks",c));if(g.uL("web_dd_iu")||aZn.includes(e))c[e]=L}; YE=function(){var e=mKT;var L=L===void 0?[]:L;var c=c===void 0?[]:c;L=G4f.apply(null,[gAM.apply(null,g.V(L))].concat(g.V(c)));this.store=DqH(e,void 0,L)}; g.ni=function(e,L,c){for(var I=Object.assign({},e),B=g.f(Object.keys(L)),x=B.next();!x.done;x=B.next()){x=x.value;var S=e[x],h=L[x];if(h===void 0)delete I[x];else if(S===void 0)I[x]=h;else if(Array.isArray(h)&&Array.isArray(S))I[x]=c?[].concat(g.V(S),g.V(h)):h;else if(!Array.isArray(h)&&g.Se(h)&&!Array.isArray(S)&&g.Se(S))I[x]=g.ni(S,h,c);else if(typeof h===typeof S)I[x]=h;else return L=new g.yu("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:x,hJS:S,updateValue:h}),g.A9(L), e}return I}; ej=function(e){var L=this;e=e===void 0?[]:e;this.X=[];this.Z=this.K=0;this.G=void 0;this.totalLength=0;e.forEach(function(c){L.append(c)})}; yHc=function(e,L){return e.X.length===0?!1:(e=e.X[e.X.length-1])&&e.buffer===L.buffer&&e.byteOffset+e.length===L.byteOffset}; L5=function(e,L){L=g.f(L.X);for(var c=L.next();!c.done;c=L.next())e.append(c.value)}; cl=function(e,L,c){return e.split(L).Xo.split(c).TD}; I8=function(e){e.G=void 0;e.K=0;e.Z=0}; Bl=function(e,L,c){e.isFocused(L);return L-e.Z+c<=e.X[e.K].length}; ZF6=function(e){if(!e.G){var L=e.X[e.K];e.G=new DataView(L.buffer,L.byteOffset,L.length)}return e.G}; p4J=function(e,L,c){L=L===void 0?0:L;c=c===void 0?-1:c;if(!e.totalLength||!c)return new DataView(new ArrayBuffer(0));c<0&&(c=e.totalLength-L);e.focus(L);if(!Bl(e,L,c)){var I=e.K,B=e.Z;e.focus(L+c-1);B=new Uint8Array(e.Z+e.X[e.K].length-B);for(var x=0,S=I;S<=e.K;S++)B.set(e.X[S],x),x+=e.X[S].length;e.X.splice(I,e.K-I+1,B);I8(e);e.focus(L)}I=e.X[e.K];return new DataView(I.buffer,I.byteOffset+L-e.Z,c)}; xj=function(e,L,c){e=p4J(e,L===void 0?0:L,c===void 0?-1:c);return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}; o8=function(e,L,c){e=xj(e,L===void 0?0:L,c===void 0?-1:c);L=new Uint8Array(e.length);try{L.set(e)}catch(I){for(c=0;c>10;x=56320|x&1023}R8[B++]=x}}x=String.fromCharCode.apply(String,R8); B<1024&&(x=x.substring(0,B));c.push(x)}return c.join("")}; OK=function(e,L){var c;if((c=tP)==null?0:c.encodeInto)return L=tP.encodeInto(e,L),L.read>6|192:((B&64512)===55296&&I+1>18|240,L[c++]=B>>12&63|128):L[c++]=B>>12|224,L[c++]=B>>6&63|128),L[c++]=B&63|128)}return c}; qR=function(e){if(tP)return tP.encode(e);var L=new Uint8Array(Math.ceil(e.length*1.2)),c=OK(e,L);L.lengthc&&(L=L.subarray(0,c));return L}; TA=function(e){this.X=e;this.pos=0;this.K=-1}; Wl=function(e){var L=Sj(e.X,e.pos);++e.pos;if(L<128)return L;for(var c=L&127,I=1;L>=128;)L=Sj(e.X,e.pos),++e.pos,I*=128,c+=(L&127)*I;return c}; MR=function(e,L){var c=e.K;for(e.K=-1;e.pos+1<=e.X.totalLength;){c<0&&(c=Wl(e));var I=c>>3,B=c&7;if(I===L)return!0;if(I>L){e.K=c;break}c=-1;switch(B){case 0:Wl(e);break;case 1:e.pos+=8;break;case 2:I=Wl(e);e.pos+=I;break;case 5:e.pos+=4}}return!1}; zA=function(e,L){if(MR(e,L))return Wl(e)}; sK=function(e,L){if(MR(e,L))return!!Wl(e)}; vl=function(e,L){if(MR(e,L)){L=Wl(e);var c=xj(e.X,e.pos,L);e.pos+=L;return c}}; f5=function(e,L){if(e=vl(e,L))return g.uG(e)}; AP=function(e,L,c){if(e=vl(e,L))return c(new TA(new ej([e])))}; FP=function(e,L){for(var c=[];MR(e,L);)c.push(Wl(e));return c.length?c:void 0}; bG=function(e,L,c){for(var I=[],B;B=vl(e,L);)I.push(c(new TA(new ej([B]))));return I.length?I:void 0}; iG=function(e,L){e=e instanceof Uint8Array?new ej([e]):e;return L(new TA(e))}; HFM=function(e,L){e=new Uint8Array(e);L&&e.set(L);return e}; lZJ=function(e){this.pos=0;this.K=[];this.X=HFM(e===void 0?4096:e);this.view=new DataView(this.X.buffer,this.X.byteOffset,this.X.byteLength)}; m$=function(e,L){L=e.pos+L;if(!(e.X.length>=L)){for(var c=e.X.length*2;c268435455){m$(e,4);for(var c=L&1073741823,I=0;I<4;I++)e.view.setUint8(e.pos,c&127|128),c>>=7,e.pos+=1;L=Math.floor(L/268435456)}for(m$(e,4);L>127;)e.view.setUint8(e.pos,L&127|128),L>>=7,e.pos+=1;e.view.setUint8(e.pos,L);e.pos+=1}; ZG=function(e,L,c){c!==void 0&&(yB(e,L*8),yB(e,c))}; p5=function(e,L,c){c!==void 0&&ZG(e,L,c?1:0)}; jj=function(e,L,c){c!==void 0&&(yB(e,L*8+2),L=c.length,yB(e,L),m$(e,L),e.X.set(c,e.pos),e.pos+=L)}; Hl=function(e,L,c){c!==void 0&&(PMr(e,L,Math.ceil(Math.log2(c.length*4+2)/7)),m$(e,c.length*1.2),L=OK(c,e.X.subarray(e.pos)),e.pos+L>e.X.length&&(m$(e,L),L=OK(c,e.X.subarray(e.pos))),e.pos+=L,QfR(e))}; PMr=function(e,L,c){c=c===void 0?2:c;yB(e,L*8+2);e.K.push(e.pos);e.K.push(c);e.pos+=c}; QfR=function(e){for(var L=e.K.pop(),c=e.K.pop(),I=e.pos-c-L;L--;){var B=L?128:0;e.view.setUint8(c++,I&127|B);I>>=7}}; lG=function(e,L,c,I,B){c&&(PMr(e,L,B===void 0?3:B),I(e,c),QfR(e))}; g.Pl=function(e,L){var c=new lZJ(4096);L(c,e);return new Uint8Array(c.X.buffer,c.X.byteOffset,c.pos)}; g.QB=function(e){var L=new TA(new ej([kT(decodeURIComponent(e))]));e=f5(L,2);L=zA(L,4);var c=dKc[L];if(typeof c==="undefined")throw e=new g.yu("Failed to recognize field number",{name:"EntityKeyHelperError",rOM:L}),g.A9(e),e;return{bY:L,entityType:c,entityId:e}}; g.dL=function(e,L){var c=c===void 0?0:c;var I=new lZJ;jj(I,2,qR(e));e=UKn[L];if(typeof e==="undefined")throw c=new g.yu("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:L}),g.A9(c),c;ZG(I,4,e);ZG(I,5,1);L=new Uint8Array(I.X.buffer,I.X.byteOffset,I.pos);return encodeURIComponent(g.GM(L,c))}; UK=function(e,L,c,I){if(I===void 0)return I=Object.assign({},e[L]||{}),c=(delete I[c],I),I={},Object.assign({},e,(I[L]=c,I));var B={},x={};return Object.assign({},e,(x[L]=Object.assign({},e[L],(B[c]=I,B)),x))}; ERf=function(e,L,c,I,B){var x=e[L];if(x==null||!x[c])return e;I=g.ni(x[c],I,B==="REPEATED_FIELDS_MERGE_OPTION_APPEND");B={};x={};return Object.assign({},e,(x[L]=Object.assign({},e[L],(B[c]=I,B)),x))}; X4M=function(e,L){e=e===void 0?{}:e;switch(L.type){case "ENTITY_LOADED":return L.payload.reduce(function(I,B){var x,S=(x=B.options)==null?void 0:x.persistenceOption;if(S&&S!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&S!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return I;if(!B.entityKey)return g.A9(Error("Missing entity key")),I;if(B.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!B.payload)return B=new g.yu("REPLACE entity mutation is missing a payload",{entityKey:B.entityKey}),g.A9(B),I;var h=g.SR(B.payload); return UK(I,h,B.entityKey,B.payload[h])}if(B.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{B=B.entityKey;try{var R=g.QB(B).entityType;h=UK(I,R,B);break a}catch(O){if(O instanceof Error){B=new g.yu("Failed to deserialize entity key",{entityKey:B,originalMessage:O.message});g.A9(B);h=I;break a}throw O;}h=void 0}return h}if(B.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!B.payload)return B=new g.yu("UPDATE entity mutation is missing a payload",{entityKey:B.entityKey}),g.A9(B),I;h=g.SR(B.payload);var u,t;return ERf(I, h,B.entityKey,B.payload[h],(u=B.fieldMask)==null?void 0:(t=u.mergeOptions)==null?void 0:t.repeatedFieldsMergeOption)}return I},e); case "REPLACE_ENTITY":var c=L.payload;return UK(e,c.entityType,c.key,c.Sz);case "REPLACE_ENTITIES":return Object.keys(L.payload).reduce(function(I,B){var x=L.payload[B];return Object.keys(x).reduce(function(S,h){return UK(S,B,h,x[h])},I)},e); case "UPDATE_ENTITY":return c=L.payload,ERf(e,c.entityType,c.key,c.Sz,c.mal);default:return e}}; EK=function(e,L,c){return e[L]?e[L][c]||null:null}; XP=function(e){return window.Int32Array?new Int32Array(e):Array(e)}; cC=function(e){g.p.call(this);this.counter=[0,0,0,0];this.K=new Uint8Array(16);this.X=16;if(!K7M){var L,c=new Uint8Array(256),I=new Uint8Array(256);var B=1;for(L=0;L<256;L++)c[B]=L,I[L]=B,B^=B<<1^(B>>7&&283);K5=new Uint8Array(256);Yj=XP(256);n5=XP(256);e3=XP(256);Lu=XP(256);for(var x=0;x<256;x++){B=x?I[255^c[x]]:0;B^=B<<1^B<<2^B<<3^B<<4;B=B&255^B>>>8^99;K5[x]=B;L=B<<1^(B>>7&&283);var S=L^B;Yj[x]=L<<24|B<<16|B<<8|S;n5[x]=S<<24|Yj[x]>>>8;e3[x]=B<<24|n5[x]>>>8;Lu[x]=B<<24|e3[x]>>>8}K7M=!0}B=XP(44);for(c= 0;c<4;c++)B[c]=e[4*c]<<24|e[4*c+1]<<16|e[4*c+2]<<8|e[4*c+3];for(I=1;c<44;c++)e=B[c-1],c%4||(e=(K5[e>>16&255]^I)<<24|K5[e>>8&255]<<16|K5[e&255]<<8|K5[e>>>24],I=I<<1^(I>>7&&283)),B[c]=B[c-4]^e;this.key=B}; Yxc=function(e){for(var L=e.key,c=e.counter[0]^L[0],I=e.counter[1]^L[1],B=e.counter[2]^L[2],x=e.counter[3]^L[3],S=3;S>=0&&!(e.counter[S]=-~e.counter[S]);S--);for(var h,R,u=4;u<40;)S=Yj[c>>>24]^n5[I>>16&255]^e3[B>>8&255]^Lu[x&255]^L[u++],h=Yj[I>>>24]^n5[B>>16&255]^e3[x>>8&255]^Lu[c&255]^L[u++],R=Yj[B>>>24]^n5[x>>16&255]^e3[c>>8&255]^Lu[I&255]^L[u++],x=Yj[x>>>24]^n5[c>>16&255]^e3[I>>8&255]^Lu[B&255]^L[u++],c=S,I=h,B=R;e=e.K;S=L[40];e[0]=K5[c>>>24]^S>>>24;e[1]=K5[I>>16&255]^S>>16&255;e[2]=K5[B>>8&255]^ S>>8&255;e[3]=K5[x&255]^S&255;S=L[41];e[4]=K5[I>>>24]^S>>>24;e[5]=K5[B>>16&255]^S>>16&255;e[6]=K5[x>>8&255]^S>>8&255;e[7]=K5[c&255]^S&255;S=L[42];e[8]=K5[B>>>24]^S>>>24;e[9]=K5[x>>16&255]^S>>16&255;e[10]=K5[c>>8&255]^S>>8&255;e[11]=K5[I&255]^S&255;S=L[43];e[12]=K5[x>>>24]^S>>>24;e[13]=K5[c>>16&255]^S>>16&255;e[14]=K5[I>>8&255]^S>>8&255;e[15]=K5[B&255]^S&255}; xm=function(){if(!Iz&&!g.ZQ){if(BC)return BC;var e;BC=(e=window.crypto)==null?void 0:e.subtle;var L,c,I;if(((L=BC)==null?0:L.importKey)&&((c=BC)==null?0:c.sign)&&((I=BC)==null?0:I.encrypt))return BC;BC=void 0}}; g.S3=function(e){var L=xm();L&&(this.X=new nR6(e,L));this.K=new g.oz(e)}; nR6=function(e,L){this.K=e;this.subtleCrypto=L}; e2n=function(e,L,c){var I,B;return g.Z(function(x){switch(x.K){case 1:if(e.X){x.Iq(2);break}return g.a(x,e.subtleCrypto.importKey("raw",e.K,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:e.X=x.X;case 2:return I={name:"AES-CTR",counter:c,length:128},g.a(x,e.subtleCrypto.encrypt(I,e.X,L),4);case 4:return B=x.X,x.return(new Uint8Array(B))}})}; g.oz=function(e){this.K=e}; rf=function(e){this.B=new Uint8Array(64);this.Z=new Uint8Array(64);this.G=0;this.j=new Uint8Array(64);this.K=0;this.B.set(e);this.Z.set(e);for(e=0;e<64;e++)this.B[e]^=92,this.Z[e]^=54;this.reset()}; L9n=function(e,L,c){for(var I=e.T,B=e.X[0],x=e.X[1],S=e.X[2],h=e.X[3],R=e.X[4],u=e.X[5],t=e.X[6],O=e.X[7],q,T,W,A=0;A<64;)A<16?(I[A]=W=L[c]<<24|L[c+1]<<16|L[c+2]<<8|L[c+3],c+=4):(q=I[A-2],T=I[A-15],W=I[A-7]+I[A-16]+((q>>>17|q<<15)^(q>>>19|q<<13)^q>>>10)+((T>>>7|T<<25)^(T>>>18|T<<14)^T>>>3),I[A]=W),q=O+hA[A]+W+((R>>>6|R<<26)^(R>>>11|R<<21)^(R>>>25|R<<7))+(R&u^~R&t),T=((B>>>2|B<<30)^(B>>>13|B<<19)^(B>>>22|B<<10))+(B&x^B&S^x&S),O=q+T,h+=q,A++,A<16?(I[A]=W=L[c]<<24|L[c+1]<<16|L[c+2]<<8|L[c+3],c+=4):(q= I[A-2],T=I[A-15],W=I[A-7]+I[A-16]+((q>>>17|q<<15)^(q>>>19|q<<13)^q>>>10)+((T>>>7|T<<25)^(T>>>18|T<<14)^T>>>3),I[A]=W),q=t+hA[A]+W+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&R^~h&u),T=((O>>>2|O<<30)^(O>>>13|O<<19)^(O>>>22|O<<10))+(O&B^O&x^B&x),t=q+T,S+=q,A++,A<16?(I[A]=W=L[c]<<24|L[c+1]<<16|L[c+2]<<8|L[c+3],c+=4):(q=I[A-2],T=I[A-15],W=I[A-7]+I[A-16]+((q>>>17|q<<15)^(q>>>19|q<<13)^q>>>10)+((T>>>7|T<<25)^(T>>>18|T<<14)^T>>>3),I[A]=W),q=u+hA[A]+W+((S>>>6|S<<26)^(S>>>11|S<<21)^(S>>>25|S<<7))+(S&h^ ~S&R),T=((t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10))+(t&O^t&B^O&B),u=q+T,x+=q,A++,A<16?(I[A]=W=L[c]<<24|L[c+1]<<16|L[c+2]<<8|L[c+3],c+=4):(q=I[A-2],T=I[A-15],W=I[A-7]+I[A-16]+((q>>>17|q<<15)^(q>>>19|q<<13)^q>>>10)+((T>>>7|T<<25)^(T>>>18|T<<14)^T>>>3),I[A]=W),q=R+hA[A]+W+((x>>>6|x<<26)^(x>>>11|x<<21)^(x>>>25|x<<7))+(x&S^~x&h),T=((u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10))+(u&t^u&O^t&O),W=O,O=h,h=W,W=t,t=S,S=W,W=u,u=x,x=W,R=B+q,B=q+T,A++;e.X[0]=B+e.X[0]|0;e.X[1]=x+e.X[1]|0;e.X[2]=S+e.X[2]|0;e.X[3]= h+e.X[3]|0;e.X[4]=R+e.X[4]|0;e.X[5]=u+e.X[5]|0;e.X[6]=t+e.X[6]|0;e.X[7]=O+e.X[7]|0}; I0v=function(e){var L=new Uint8Array(32),c=64-e.K;e.K>55&&(c+=64);var I=new Uint8Array(c);I[0]=128;for(var B=e.G*8,x=1;x<9;x++){var S=B%256;I[c-x]=S;B=(B-S)/256}e.update(I);for(c=0;c<8;c++)L[c*4]=e.X[c]>>>24,L[c*4+1]=e.X[c]>>>16&255,L[c*4+2]=e.X[c]>>>8&255,L[c*4+3]=e.X[c]&255;c$6(e);return L}; c$6=function(e){e.X=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];e.T=[];e.T.length=64;e.G=0;e.K=0}; Bic=function(e){this.X=e}; xcc=function(e,L,c){e=new rf(e.X);e.update(L);e.update(c);L=I0v(e);e.update(e.B);e.update(L);L=I0v(e);e.reset();return L}; ov6=function(e){this.K=e}; Sun=function(e,L,c,I){var B,x,S;return g.Z(function(h){switch(h.K){case 1:if(e.X){h.Iq(2);break}return g.a(h,I.importKey("raw",e.K,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:e.X=h.X;case 2:return B=new Uint8Array(L.length+c.length),B.set(L),B.set(c,L.length),x={name:"HMAC",hash:"SHA-256"},g.a(h,I.sign(x,e.X,B),4);case 4:return S=h.X,h.return(new Uint8Array(S))}})}; r$n=function(e,L,c){e.Z||(e.Z=new Bic(e.K));return xcc(e.Z,L,c)}; h2f=function(e,L,c){var I,B;return g.Z(function(x){if(x.K==1){I=xm();if(!I)return x.return(r$n(e,L,c));g.bn(x,3);return g.a(x,Sun(e,L,c,I),5)}if(x.K!=3)return x.return(x.X);B=g.wc(x);g.F7(B);Iz=!0;return x.return(r$n(e,L,c))})}; ugT=function(e){for(var L="",c=0;c=0||zE(e,0,"gad_source",e.search(vO))>=0}; spv=function(){this.X=new Map}; f0T=function(e,L){var c=Fg().resolve(vvJ);if(z2T(L)){var I=fW(L,"gclid");L={handleEvent:function(h){e&&!e.closed&&typeof e.postMessage==="function"&&h&&h.origin&&h.source===e&&h.data&&h.data.action==="gcl_setup"&&e.postMessage(Object.assign({},{action:"gcl_transfer"},I&&{gclid:I},{gadSource:2}),h.origin)}}; for(var B=g.f(c.X),x=B.next();!x.done;x=B.next()){var S=g.f(x.value);x=S.next().value;S=S.next().value;if(x.closed)try{window.removeEventListener("message",S),c.X.delete(x)}catch(h){g.A9(h)}}e&&c.X.size<15&&(c.X.set(e,L),window.addEventListener("message",L))}}; Rz=function(e,L,c){if(!L)return e.length>=1?e[e.length-1]:null;for(var I=g.f(e),B=I.next();!B.done;B=I.next())if(B=B.value,B.width&&B.height&&(c&&B.width>=L||!c&&B.height>=L))return B;for(L=e.length-1;L>=0;L--)if(c&&e[L].width||!c&&e[L].height)return e[L];return e[0]}; uI=function(){this.state=1;this.zk=null;this.PU=void 0}; F9v=function(e,L,c,I,B,x){var S=S===void 0?"trayride":S;c?(e.Oq(2),g.Ex(c,function(){if(window[S])A$M(e,I,S,B);else{e.Oq(3);var h=fun(c),R=document.getElementById(h);R&&(s6n(h),R.parentNode.removeChild(R));g.F7(new g.yu("BL:ULB",""+c))}},x)):L?(x=g.ql("SCRIPT"),L instanceof zy?(x.textContent=s3(L),va(x)):x.textContent=L,x.nonce=M9(document),document.head.appendChild(x),document.head.removeChild(x),window[S]?A$M(e,I,S,B):(e.Oq(4),g.F7(new g.yu("BL:ULBJ")))):g.F7(new g.yu("BL:ULV"))}; A$M=function(e,L,c,I){e.Oq(5);var B=!!e.PU&&bGH.includes(g.hp(e.PU)||"");try{var x=new hU({program:L,globalName:c,CJ:{disable:!g.uL("att_web_record_metrics")||!g.uL("att_skip_metrics_for_cookieless_domains_ks")&&B,EU:"aGIf"}});x.NJ.then(function(){e.Oq(6);I&&I(L)}); e.yN(x)}catch(S){e.Oq(7),S instanceof Error&&g.F7(S)}}; tA=function(){var e=g.BU("yt.abuse.playerAttLoader");return e&&["bgvma","bgvmb","bgvmc"].every(function(L){return L in e})?e:null}; OQ=function(){uI.apply(this,arguments)}; q7=function(){}; iGr=function(e,L,c){for(var I=!1,B=g.f(e.ZJ.entries()),x=B.next();!x.done;x=B.next())x=g.f(x.value).next().value,x.slotType==="SLOT_TYPE_PLAYER_BYTES"&&x.J7==="core"&&(I=!0);if(I){a:if(!c){e=g.f(e.ZJ.entries());for(c=e.next();!c.done;c=e.next())if(I=g.f(c.value),c=I.next().value,I=I.next().value,c.slotType==="SLOT_TYPE_IN_PLAYER"&&c.J7==="core"){c=I.layoutId;break a}c=void 0}c?L.zM(c):Ir("No triggering layout ID available when attempting to mute.")}}; Td=function(e,L){this.Q2=e;this.rQ=L}; WC=function(){}; M7=function(){}; gv$=function(e){g.p.call(this);var L=this;this.l4=e;this.X=new Map;zd(this,"commandExecutorCommand",function(c,I,B){GrR(L,c.commands,I,B)}); zd(this,"clickTrackingParams",function(){})}; krM=function(e,L){zd(e,L.Yo(),function(c,I,B){L.MP(c,I,B)})}; zd=function(e,L,c){e.We();e.X.get(L)&&g.A9(Error("Extension name "+L+" already registered"));e.X.set(L,c)}; GrR=function(e,L,c,I){L=L===void 0?[]:L;e.We();var B=[],x=[];L=g.f(L);for(var S=L.next();!S.done;S=L.next())S=S.value,g.Q(S,DcR)||g.Q(S,wLv)?B.push(S):x.push(S);B=g.f(B);for(L=B.next();!L.done;L=B.next())sQ(e,L.value,c,I);x=g.f(x);for(B=x.next();!B.done;B=x.next())sQ(e,B.value,c,I)}; sQ=function(e,L,c,I){e.We();L.loggingUrls&&J$v(e,"loggingUrls",L.loggingUrls,c,I);L=g.f(Object.entries(L));for(var B=L.next();!B.done;B=L.next()){var x=g.f(B.value);B=x.next().value;x=x.next().value;B==="openPopupAction"?e.l4.get().uG("innertubeCommand",{openPopupAction:x}):B==="confirmDialogEndpoint"?e.l4.get().uG("innertubeCommand",{confirmDialogEndpoint:x}):Vlv.hasOwnProperty(B)||J$v(e,B,x,c,I)}}; J$v=function(e,L,c,I,B){if((e=e.X.get(L))&&typeof e==="function")try{e(c,I,B)}catch(x){g.A9(x)}else L=new g.yu("Unhandled field",L),g.F7(L)}; vC=function(e,L,c){this.zr=e;this.X=L;this.Tm=c;zr(Fg(),{X9:vvJ,uR:spv})}; fu=function(e){this.value=e}; AA=function(e){this.value=e}; Fr=function(e){this.value=e}; bI=function(e){this.value=e}; iI=function(e){this.value=e}; Gd=function(e){this.value=e}; gf=function(e){this.value=e}; km=function(){fu.apply(this,arguments)}; DU=function(e){this.value=e}; wf=function(e){this.value=e}; JA=function(e){this.value=e}; V8=function(e){this.value=e}; Cu=function(e){this.value=e}; az=function(e){this.value=e}; N7=function(e){this.value=e}; my=function(e){this.value=e}; y8=function(e){this.value=e}; ZU=function(e){this.value=e}; pu=function(){fu.apply(this,arguments)}; $m=function(e){this.value=e}; j3=function(e){this.value=e}; HC=function(e){this.value=e}; lI=function(e){this.value=e}; PC=function(e){this.value=e}; Q8=function(e){this.value=e}; df=function(e){this.value=e}; UQ=function(e){this.value=e}; EQ=function(e){this.value=e}; Xr=function(e){this.value=e}; Ku=function(e){this.value=e}; Ym=function(e){this.value=e}; nu=function(e){this.value=e}; ep=function(e){this.value=e}; LR=function(e){this.value=e}; cv=function(e){this.value=e}; IW=function(e){this.value=e}; Bv=function(e){this.value=e}; xK=function(e){this.value=e}; oW=function(e){this.value=e}; Sp=function(e){this.value=e}; ry=function(e){this.value=e}; hl=function(e){this.value=e}; RW=function(e){this.value=e}; uN=function(e){this.value=e}; tl=function(e){this.value=e}; OE=function(e){this.value=e}; qj=function(e){this.value=e}; T9=function(e){this.value=e}; Wv=function(e){this.value=e}; Mj=function(e){this.value=e}; z9=function(e){this.value=e}; sE=function(e){this.value=e}; vv=function(e){this.value=e}; fR=function(e){this.value=e}; Al=function(e){this.value=e}; F3=function(e){this.value=e}; bN=function(e){this.value=e}; iN=function(){fu.apply(this,arguments)}; G9=function(e){this.value=e}; gy=function(){fu.apply(this,arguments)}; kK=function(){fu.apply(this,arguments)}; Dw=function(){fu.apply(this,arguments)}; wy=function(){fu.apply(this,arguments)}; Jl=function(){fu.apply(this,arguments)}; V0=function(e){this.value=e}; CR=function(e){this.value=e}; aW=function(e){this.value=e}; Nj=function(e){this.value=e}; mu=function(e){this.value=e}; Zw=function(e,L,c){if(c&&!c.includes(e.layoutType))return!1;L=g.f(L);for(c=L.next();!c.done;c=L.next())if(!y0(e.clientMetadata,c.value))return!1;return!0}; pR=function(){return""}; CxT=function(e,L){switch(e){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 L(e),8}}; $K=function(e,L,c,I){I=I===void 0?!1:I;WU.call(this,e);this.Bc=c;this.vK=I;this.args=[];L&&this.args.push(L)}; K=function(e,L,c,I){I=I===void 0?!1:I;WU.call(this,e);this.Bc=c;this.vK=I;this.args=[];L&&this.args.push(L)}; jp=function(e){var L=new Map;e.forEach(function(c){L.set(c.X(),c)}); this.X=L}; y0=function(e,L){return e.X.has(L)}; Hv=function(e,L){e=e.X.get(L);if(e!==void 0)return e.get()}; lN=function(e){return Array.from(e.X.keys())}; Pv=function(e,L,c){if(c&&c!==e.slotType)return!1;L=g.f(L);for(c=L.next();!c.done;c=L.next())if(!y0(e.clientMetadata,c.value))return!1;return!0}; Nif=function(e){var L;return((L=a0$.get(e))==null?void 0:L.Y_)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; dy=function(e,L){var c={type:L.slotType,controlFlowManagerLayer:mcc.get(L.J7)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};L.slotEntryTrigger&&(c.entryTriggerType=L.slotEntryTrigger.triggerType);L.slotPhysicalPosition!==1&&(c.slotPhysicalPosition=L.slotPhysicalPosition);if(e){c.debugData={slotId:L.slotId};if(e=L.slotEntryTrigger)c.debugData.slotEntryTriggerData=Q0(e);e=L.slotFulfillmentTriggers;c.debugData.fulfillmentTriggerData=[];e=g.f(e);for(var I=e.next();!I.done;I=e.next())c.debugData.fulfillmentTriggerData.push(Q0(I.value)); L=L.slotExpirationTriggers;c.debugData.expirationTriggerData=[];L=g.f(L);for(e=L.next();!e.done;e=L.next())c.debugData.expirationTriggerData.push(Q0(e.value))}return c}; y$r=function(e,L){var c={type:L.layoutType,controlFlowManagerLayer:mcc.get(L.J7)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};e&&(c.debugData={layoutId:L.layoutId});return c}; Q0=function(e,L){var c={type:e.triggerType};L!=null&&(c.category=L);e.triggeringSlotId!=null&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedSlotId=e.triggeringSlotId);e.triggeringLayoutId!=null&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedLayoutId=e.triggeringLayoutId);return c}; ZGM=function(e,L,c,I){L={opportunityType:L};e&&(I||c)&&(I=g.Mt(I||[],function(B){return dy(e,B)}),L.debugData=Object.assign({},c&&c.length>0?{associatedSlotId:c}:{},I.length>0?{slots:I}:{})); return L}; EE=function(e,L){return function(c){return pLr(UE(e),L.slotId,L.slotType,L.slotPhysicalPosition,L.J7,L.slotEntryTrigger,L.slotFulfillmentTriggers,L.slotExpirationTriggers,c.layoutId,c.layoutType,c.J7)}}; pLr=function(e,L,c,I,B,x,S,h,R,u,t){return{adClientDataEntry:{slotData:dy(e,{slotId:L,slotType:c,slotPhysicalPosition:I,J7:B,slotEntryTrigger:x,slotFulfillmentTriggers:S,slotExpirationTriggers:h,clientMetadata:new jp([])}),layoutData:y$r(e,{layoutId:R,layoutType:u,J7:t,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Mw:[],hK:new Map,clientMetadata:new jp([]),wT:{}})}}}; KR=function(e){this.ZY=e;e=Math.random();var L=this.ZY.get();L=g.X3(L.V.S().experiments,"html5_debug_data_log_probability");L=Number.isFinite(L)&&L>=0&&L<=1?L:0;this.X=e1){g.F7(new g.yu("Exit already started",{current:e.currentState}));var c=!1}else c=!0;if(!c)return!1;e.currentState=2;e.X=L;return!0}; Ln=function(e){if(e.currentState!==2)return!1;e.currentState=3;return!0}; WDH=function(e,L){var c=new Map;e=g.f(e);for(var I=e.next();!I.done;I=e.next()){I=I.value;if(I.layoutType==="LAYOUT_TYPE_MEDIA")var B="v";else I.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(B=Hv(I.clientMetadata,"metadata_type_linked_in_player_layout_type"),B=B==="LAYOUT_TYPE_ENDCAP"||B==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":B==="LAYOUT_TYPE_SURVEY"?"s":B==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):B="u";c.set(I.layoutId,B);if(B==="u"){var x={};B=L;I=(x.c=I.layoutId,x);B.V.sW("uct",I)}}e= L.Wc();c1={contentCpn:e,wR:c};I={};c=(I.ct=c.size,I.c=e,I);L.V.sW("acc",c)}; MHM=function(){c1={contentCpn:"",wR:new Map}}; IK=function(e){var L;return(L=c1.wR.get(e))!=null?L:"u"}; B1=function(e,L,c){e.V.sW(L,c);zsR(e)}; s9H=function(e){var L=e.layoutId,c=e.nG;if(e.Se){var I={};B1(e.zr,"slso",(I.ec=L,I.is=c,I.ctp=IK(L),I))}}; xl=function(e){var L=e.layoutId,c=e.nG;if(e.Se){var I={};B1(e.zr,"slse",(I.ec=L,I.is=c,I.ctp=IK(L),I))}}; vuT=function(e){var L=e.layoutId,c=e.nG,I=e.zr;e.Se&&(e={},B1(I,"sleo",(e.xc=L,e.is=c,e.ctp=IK(L),e)),zsR(I))}; fyv=function(e){var L=e.cpn,c=e.zr;e=e.nG;var I=c.Wc(),B={};B1(c,"ce",(B.ec=L,B.ia=L!==I,B.r=c1.wR.has(L),B.is=e,B.ctp=IK(L),B))}; zsR=function(e){if(e.Wc()!==c1.contentCpn){var L={};L=(L.c=c1.contentCpn,L);e.V.sW("ccm",L)}}; Am6=function(e){var L=e.cpn,c=e.zr;e=e.nG;var I=c.Wc(),B={};B1(c,"cx",(B.xc=L,B.ia=L!==I,B.r=c1.wR.has(L),B.is=e,B.ctp=IK(L),B))}; FDc=function(e){this.params=e;this.X=new Set}; bNv=function(e,L,c){if(!e.X.has(L)){e.X.add(L);var I={};e.params.SG.Z6(L,Object.assign({},c,(I.p_ac=e.params.adCpn,I.p_isv=e.params.Uc&&e.params.vM,I)))}}; S0=function(e,L,c){if(oK(e.params.SG.ZY.get(),!0)){var I=c.flush,B={};bNv(e,L,(B.cts=c.currentTimeSec,B.f=I,B))}}; iNn=function(e,L){this.zr=e;this.ZY=L}; rr=function(e){var L=[];if(e){e=g.f(Object.entries(e));for(var c=e.next();!c.done;c=e.next()){var I=g.f(c.value);c=I.next().value;I=I.next().value;I!==void 0&&(I=typeof I==="boolean"?""+ +I:(""+I).replace(/[:,=]/g,"_"),L.push(c+"."+I))}}return L.join(";")}; g.hQ=function(e,L,c){L=L===void 0?{}:L;this.errorCode=e;this.details=L;this.severity=c===void 0?0:c}; RK=function(e){return e===1||e===2}; uy=function(e,L){L=L===void 0?0:L;if(e instanceof g.hQ)return e;e=e&&e instanceof Error?e:Error(""+e);RK(L)?g.A9(e):g.F7(e);return new g.hQ(L===1?"player.fatalexception":"player.exception",{name:""+e.name,message:""+e.message},L)}; G1f=function(e,L){function c(){var I=g.HM.apply(0,arguments);e.removeEventListener("playing",c);L.apply(null,g.V(I))} e.addEventListener("playing",c)}; tQ=function(){var e=g.BU("yt.player.utils.videoElement_");e||(e=g.ql("VIDEO"),g.IL("yt.player.utils.videoElement_",e));return e}; O7=function(e){var L=tQ();return!!(L&&L.canPlayType&&L.canPlayType(e))}; Tn=function(e){if(/opus/.test(e)&&g.q8&&!MZ("38")&&!g.m2())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(e);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(e);if(/webm/.test(e)&&!sdJ())return!1;e==='audio/mp4; codecs="mp4a.40.2"'&&(e='video/mp4; codecs="avc1.4d401f"');return!!O7(e)}; guH=function(e){try{var L=Tn('video/mp4; codecs="avc1.42001E"')||Tn('video/webm; codecs="vp9"');return(Tn('audio/mp4; codecs="mp4a.40.2"')||Tn('audio/webm; codecs="opus"'))&&(L||!e)||O7('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(c){return"html5.missingapi"}}; W1=function(){var e=tQ();return!(!e.webkitSupportsPresentationMode||typeof e.webkitSetPresentationMode!=="function")}; M8=function(){var e=tQ();try{var L=e.muted;e.muted=!L;return e.muted!==L}catch(c){}return!1}; k1J=function(){var e;return((e=navigator.connection)==null?void 0:e.type)||""}; g.zn=function(){sR.apply(this,arguments)}; s7=function(e,L,c,I,B,x,S,h){this.sampleRate=e===void 0?0:e;this.numChannels=L===void 0?0:L;this.spatialAudioType=c===void 0?"SPATIAL_AUDIO_TYPE_NONE":c;this.X=I===void 0?!1:I;this.Z=B;this.G=x;this.audioQuality=S===void 0?"AUDIO_QUALITY_UNKNOWN":S;this.K=h===void 0?!1:h}; AQ=function(e,L,c,I,B,x,S,h,R){this.width=e;this.height=L;this.quality=x||v1(e,L);this.qualityOrdinal=g.fn[this.quality];this.fps=c||0;this.stereoLayout=!B||I!=null&&I!=="UNKNOWN"&&I!=="RECTANGULAR"?0:B;this.projectionType=I?I==="EQUIRECTANGULAR"&&B===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":I:"UNKNOWN";(e=S)||(e=g.fn[this.quality],e===0?e="Auto":(L=this.fps,c=this.projectionType,e=e.toString()+(c==="EQUIRECTANGULAR"||c==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||c==="MESH"?"s":"p")+(L>55?"60":L>49?"50": L>39?"48":"")));this.qualityLabel=e;this.X=h||"";this.primaries=R||""}; v1=function(e,L){var c=Math.max(e,L);e=Math.min(e,L);L=FG[0];for(var I=0;I=Math.floor(x*16/9)*1.3||e>=x*1.3)return L;L=B}return"tiny"}; Gn=function(e,L,c){c=c===void 0?{}:c;this.id=e;this.mimeType=L;c.r_>0||(c.r_=16E3);Object.assign(this,c);e=g.f(this.id.split(";"));this.itag=e.next().value;this.X=e.next().value;this.containerType=by(L);this.EW=iy[this.itag]||""}; gr=function(e){return e.EW==="9"||e.EW==="("||e.EW==="9h"||e.EW==="(h"}; Dwv=function(e){return e.EW==="H"||e.EW==="h"}; kl=function(e){return e.EW==="9h"||e.EW==="(h"}; w7c=function(e){return!!e.TI&&!!e.TI.fairplay&&(e.EW==="("||e.EW==="(h"||e.EW==="A"||e.EW==="MEAC3")||Dh&&!!e.TI&&e.EW==="1e"}; wr=function(e){return e.EW==="1"||e.EW==="1h"||Dh&&e.EW==="1e"}; JQ=function(e){return e.EW==="mac3"||e.EW==="meac3"||e.EW==="m"||e.EW==="i"}; Vd=function(e){return e.EW==="MAC3"||e.EW==="MEAC3"||e.EW==="M"||e.EW==="I"}; g.Cn=function(e){return e.containerType===1}; Jmn=function(e){return e.EW==="("||e.EW==="(h"||e.EW==="H"||Dh&&e.EW==="1e"}; aK=function(e){return e.mimeType==="application/x-mpegURL"}; g.mr=function(e,L){return{itag:+e.itag,lmt:L?0:e.lastModified,xtags:e.X||""}}; VHn=function(e){var L=navigator.mediaCapabilities;if(L==null||!L.decodingInfo||e.EW==="f")return Promise.resolve();var c={type:e.audio&&e.video?"file":"media-source"};e.video&&(c.video={contentType:e.mimeType,width:e.video.width||640,height:e.video.height||360,bitrate:e.r_*8||1E6,framerate:e.video.fps||30});e.audio&&(c.audio={contentType:e.mimeType,channels:""+(e.audio.numChannels||2),bitrate:e.r_*8||128E3,samplerate:e.audio.sampleRate||44100});return L.decodingInfo(c).then(function(I){e.K=I})}; yd=function(e){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(e)}; Zh=function(e){return/(vp9|vp09|vp8|avc1|av01)/.test(e)}; pn=function(e){return e.includes("vtt")||e.includes("text/mp4")}; by=function(e){return e.indexOf("/mp4")>=0?1:e.indexOf("/webm")>=0?2:e.indexOf("/x-flv")>=0?3:e.indexOf("/vtt")>=0?4:0}; $l=function(e,L,c,I,B,x){var S=new s7;L in g.fn||(L="small");L==="light"&&(L="tiny");I&&B?(B=Number(B),I=Number(I)):(B=g.fn[L],I=Math.round(B*16/9));x=new AQ(I,B,0,null,void 0,L,x);e=unescape(e.replace(/"/g,'"'));return new Gn(c,e,{audio:S,video:x})}; j0=function(e){var L="id="+e.id;e.video&&(L+=", res="+e.video.qualityLabel);var c,I;return L+", byterate=("+((c=e.mQ)==null?void 0:c.toFixed(0))+", "+((I=e.r_)==null?void 0:I.toFixed(0))+")"}; H1=function(e,L){return{start:function(c){return e[c]}, end:function(c){return L[c]}, length:e.length}}; CXx=function(e,L,c){for(var I=[],B=[],x=0;x=L)return c}catch(I){}return-1}; Qd=function(e,L){return P1(e,L)>=0}; ayM=function(e,L){if(!e)return NaN;L=P1(e,L);return L>=0?e.start(L):NaN}; dr=function(e,L){if(!e)return NaN;L=P1(e,L);return L>=0?e.end(L):NaN}; U7=function(e){return e&&e.length?e.end(e.length-1):NaN}; E7=function(e){return U7(e)>0}; XG=function(e,L){e=dr(e,L);return e>=0?e-L:0}; Kn=function(e,L,c){for(var I=[],B=[],x=0;xc||(I.push(Math.max(L,e.start(x))-L),B.push(Math.min(c,e.end(x))-L));return H1(I,B)}; Yl=function(e,L,c,I){g.Yg.call(this);var B=this;this.Dp=e;this.start=L;this.end=c;this.isActive=I;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.GU={error:function(){!B.We()&&B.isActive&&B.publish("error",B)}, updateend:function(){!B.We()&&B.isActive&&B.publish("updateend",B)}}; this.Dp.xw(this.GU);this.Pz=this.isActive}; eg=function(e,L,c,I,B,x){g.Yg.call(this);var S=this;this.Py=e;this.C1=L;this.id=c;this.containerType=I;this.EW=B;this.vM=x;this.Sa=this.rl=this.rZ=null;this.sy=!1;this.appendWindowStart=this.timestampOffset=0;this.xd=H1([],[]);this.TG=!1;this.xR=[];this.Ue=nn?[]:void 0;this.Eq=function(R){return S.publish(R.type,S)}; var h;if((h=this.Py)==null?0:h.addEventListener)this.Py.addEventListener("updateend",this.Eq),this.Py.addEventListener("error",this.Eq)}; Lx=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; cX=function(e,L){this.V5=e;this.X=L===void 0?!1:L;this.K=!1}; Ii=function(e,L,c){c=c===void 0?!1:c;g.p.call(this);this.mediaElement=e;this.g_=L;this.isView=c;this.j=0;this.G=!1;this.B=!0;this.D=0;this.callback=null;this.J=!1;this.g_||(this.C1=this.mediaElement.IT());this.events=new g.zn(this);g.l(this,this.events);this.Z=new cX(this.g_?window.URL.createObjectURL(this.g_):this.C1.webkitMediaSourceURL,!0);e=this.g_||this.C1;vI(this.events,e,["sourceopen","webkitsourceopen"],this.N0$);vI(this.events,e,["sourceclose","webkitsourceclose"],this.fp7);this.T={updateend:this.Ot}}; NJJ=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; mwc=function(e,L){BX(e)?g.F2(function(){L(e)}):e.callback=L}; ymM=function(e,L,c){if(x_){var I;oi(e.mediaElement,{l:"mswssb",sr:(I=e.mediaElement.zm)==null?void 0:I.K2()},!1);L.xw(e.T,e);c.xw(e.T,e)}e.X=L;e.K=c;g.l(e,L);g.l(e,c)}; Sg=function(e){return!!e.X||!!e.K}; BX=function(e){try{return r1(e)==="open"}catch(L){return!1}}; r1=function(e){if(e.g_)return e.g_.readyState;switch(e.C1.webkitSourceState){case e.C1.SOURCE_OPEN:return"open";case e.C1.SOURCE_ENDED:return"ended";default:return"closed"}}; hf=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; ZNv=function(e){BX(e)&&(e.g_?e.g_.endOfStream():e.C1.webkitSourceEndOfStream(e.C1.EOS_NO_ERROR))}; p7n=function(e,L,c,I){if(!e.X||!e.K)return null;var B=e.X.isView()?e.X.Dp:e.X,x=e.K.isView()?e.K.Dp:e.K,S=new Ii(e.mediaElement,e.g_,!0);S.Z=e.Z;ymM(S,new Yl(B,L,c,I),new Yl(x,L,c,I));BX(e)||e.X.ZB(e.X.FF());return S}; $wr=function(e){var L;(L=e.X)==null||L.hs();var c;(c=e.K)==null||c.hs();e.B=!1}; Ri=function(){var e=this;this.lI=this.qo=vnT;this.promise=new g.iq(function(L,c){e.qo=L;e.lI=c})}; uc=function(){g.p.call(this);this.ov=!1;this.V5=null;this.T=this.j=!1;this.G=new g.hi;this.zm=null;g.l(this,this.G)}; tf=function(e){e=e.d8();return e.length<1?NaN:e.end(e.length-1)}; j9H=function(e){!e.K&&NJJ()&&(e.Z?e.Z.then(function(){return j9H(e)}):e.qS()||(e.K=e.y0()))}; HNM=function(e){e.K&&(e.K.dispose(),e.K=void 0)}; oi=function(e,L,c){var I;((I=e.zm)==null?0:I.oT())&&e.zm.sW("rms",L,c===void 0?!1:c)}; lyn=function(e,L,c){e.isPaused()||e.getCurrentTime()>L||c>10||(e.play(),g.oC(function(){lyn(e,e.getCurrentTime(),c+1)},500))}; PX$=function(e,L){e.V5&&e.V5.equals(L)||(e.V5&&e.V5.dispose(),e.V5=L)}; OP=function(e){return XG(e.im(),e.getCurrentTime())}; Q9c=function(e,L){if(e.qD()===0||e.hasError())return!1;var c=e.getCurrentTime()>0;return L>=0&&(e=e.d8(),e.length||!c)?Qd(e,L):c}; qp=function(e){e.qS()&&(e.zm&&e.zm.SL("rs_s"),ya&&e.getCurrentTime()>0&&e.seekTo(0),e.oD(),e.load(),PX$(e,null));delete e.Z}; Tk=function(e){switch(e.n1()){case 2:return"progressive.net.retryexhausted";case 3:return e=e.Ku(),(e==null?0:e.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||dw6&&(e==null?0:e.includes("audio_output_change"))?"capability.changed":"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}}; g.WX=function(e,L,c){this.lz=L===void 0?null:L;this.seekSource=c===void 0?null:c;this.state=e||64}; Mp=function(e,L,c){c=c===void 0?!1:c;return Uwc(e,L.getCurrentTime(),(0,g.zI)(),OP(L),c)}; zk=function(e,L,c,I){if(!(L===e.state&&c===e.lz&&I===e.seekSource||L!==void 0&&(L&128&&!c||L&2&&L&16))){var B;if(B=L)B=L||e.state,B=!!(B&16||B&32);e=new g.WX(L,c,B?I?I:e.seekSource:null)}return e}; sP=function(e,L,c){return zk(e,e.state|L,null,c===void 0?null:c)}; vX=function(e,L){return zk(e,e.state&~L,null,null)}; fx=function(e,L,c,I){return zk(e,(e.state|L)&~c,null,I===void 0?null:I)}; g.E=function(e,L){return!!(e.state&L)}; g.Af=function(e,L){return L.state===e.state&&L.lz===e.lz}; FI=function(e){return e.isPlaying()&&!g.E(e,16)&&!g.E(e,32)}; bc=function(e){return g.E(e,128)?-1:g.E(e,2)?0:g.E(e,2048)?3:g.E(e,64)?-1:g.E(e,1)&&!g.E(e,32)?3:g.E(e,8)?1:g.E(e,4)?2:-1}; Gk=function(e,L,c,I,B,x,S,h,R,u,t,O,q,T,W,A,b){g.p.call(this);var J=this;this.Uw=e;this.slot=L;this.layout=c;this.Tm=I;this.e5=B;this.M0=x;this.Be=S;this.Uq=h;this.T_=R;this.H_=u;this.position=O;this.j=q;this.ZY=T;this.H3=W;this.NO=A;this.context=b;this.x4=!0;this.B=!1;this.S5="not_rendering";this.K=!1;this.Z=new nz;e=Hv(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.nS=new hE(c.hK,this.Tm,e,c.layoutId);var w;e=((w=ic(this))==null?void 0:w.progressCommands)||[];this.G=new dyM(R, e,c.layoutId,function(){return J.Js()}); this.X=new FDc({adCpn:this.layout.layoutId,SG:b.SG,Uc:this.H3,vM:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; g1=function(e){return{layoutId:e.As(),nG:e.H3,zr:e.M0.get(),Se:e.Ry()}}; k_=function(e,L){return L.layoutId!==e.layout.layoutId?(e.Uw.Xc(e.slot,L,new $K("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+e.layout.layoutId+("and LayoutType: "+e.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; DD=function(e){e.S5="rendering_start_requested";e.H_(-1)}; ic=function(e){return Hv(e.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; Eu6=function(e){Ir("Received layout exit signal when not in layout exit flow.",e.slot,e.layout)}; X7f=function(e){var L;return((L=w1(e.M0.get(),2))==null?void 0:L.clientPlaybackNonce)||""}; Jf=function(e,L){switch(L){case "normal":e.AK("complete");break;case "skipped":e.AK("skip");break;case "abandoned":TH(e.nS,"impression")&&e.AK("abandon")}}; Vv=function(e,L){e.B||(L=new g.BZ(L.state,new g.WX),e.B=!0);return L}; Cx=function(e,L){Et(L)?e.H_(1):g.or(L,4)&&!g.or(L,2)&&e.L7();xw(L,4)<0&&!(xw(L,2)<0)&&e.E1()}; KDR=function(e){e.position===0&&(e.Uq.get(),e=Hv(e.layout.clientMetadata,"metadata_type_ad_placement_config").kind,e={adBreakType:ai(e)},AD("ad_bl"),g.FT(e))}; Np=function(e,L){Ot(e.nS,L,!e.K)}; nuR=function(e){var L;return(((L=ic(e))==null?void 0:L.progressCommands)||[]).findIndex(function(c){return!!g.Q(c==null?void 0:c.command,YnT)})!==-1}; ml=function(e,L){var c=Hv(e.clientMetadata,"metadata_type_eligible_for_ssap");return c===void 0?(Ir("Expected SSAP eligibility in PlayerBytes factory",e),!1):L.Ry(c)}; yv=function(e,L){if(!Jz(L.get(),"html5_ssap_pass_transition_reason"))return 3;switch(e){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return Ir("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return Ir("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:e}),3;default:t0(e,"unknown layoutExitReason")}}; eOc=function(e){Ir("getExitReason: unexpected reason",void 0,void 0,{reason:e})}; ZD=function(e,L){if(Jz(L.get(),"html5_ssap_pass_transition_reason"))switch(e){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return eOc(e),"abandoned";case 3:case 1:return eOc(e),"error";default:t0(e,"unexpected transition reason")}else switch(e){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return Ir("getExitReason: unexpected reason",void 0,void 0,{reason:e}),"error";default:t0(e,"unexpected transition reason")}}; g.px=function(e,L,c){ie(e,c)||g_(e,L,c);ie(e,"video_to_ad")||g_(e,L,"video_to_ad");ie(e,"ad_to_video")||g_(e,L,"ad_to_video");ie(e,"ad_to_ad")||g_(e,L,"ad_to_ad")}; $_=function(e,L,c,I,B,x,S,h,R,u,t,O,q,T,W,A,b,J){Gk.call(this,e,L,c,I,B,x,S,h,u,t,O,q,T,W,A,b,J);var w=this;this.l4=R;this.p8=O;this.Qm=!0;this.Es=this.GN=0;this.Zf=aF(function(){s9H(g1(w));w.Uw.Hy(w.slot,w.layout)}); this.OI=aF(function(){vuT(g1(w));w.S5!=="rendering_stop_requested"&&w.p8(w);w.layoutExitReason?w.Uw.Gy(w.slot,w.layout,w.layoutExitReason):Eu6(w)}); this.timer=new g.VH(200);this.timer.listen("tick",function(){w.Ty()}); g.l(this,this.timer)}; HX=function(e){e.Es=Date.now();jg(e,e.GN);e.timer.start()}; LZc=function(e){e.GN=e.Js();e.tX(e.GN/1E3,!0);jg(e,e.GN)}; jg=function(e,L){L={current:L/1E3,duration:e.Js()/1E3};e.l4.get().uG("onAdPlaybackProgress",L)}; lc=function(e){$_.call(this,e.Uw,e.slot,e.yZ,e.Tm,e.e5,e.M0,e.Be,e.Uq,e.l4,e.T_,e.H_,e.p8,e.iC,e.kB,e.ZY,e.H3,e.NO,e.context)}; PX=function(e){$_.call(this,e.Uw,e.slot,e.yZ,e.Tm,e.e5,e.M0,e.Be,e.Uq,e.l4,e.T_,e.H_,e.p8,e.iC,e.kB,e.ZY,e.H3,e.NO,e.context)}; Qv=function(){PX.apply(this,arguments)}; cWr=function(e){return ml(e.slot,e.ZY.get())?new Qv(e):new lc(e)}; EP=function(e){Gk.call(this,e.callback,e.slot,e.yZ,e.Tm,e.e5,e.M0,e.Be,e.Uq,e.T_,e.H_,e.p8,e.iC,e.kB,e.ZY,e.H3,e.NO,e.context);var L=this;this.adCpn="";this.xa=this.rK=0;this.Zf=aF(function(){s9H(g1(L));L.Uw.Hy(L.slot,L.layout)}); this.OI=aF(function(){vuT(g1(L));L.S5!=="rendering_stop_requested"&&L.p8(L);L.layoutExitReason?L.Uw.Gy(L.slot,L.layout,L.layoutExitReason):Eu6(L)}); this.mF=e.mF;this.Zp=e.Zp;this.K9=e.K9;this.l4=e.l4;this.Jj=e.Jj;this.p8=e.p8;if(!this.Ry()){Jz(this.ZY.get(),"html5_disable_media_load_timeout")||(this.G2=new g.j9(function(){L.tQ("load_timeout",new $K("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); e=d1(this.ZY.get());var c=UP(this.ZY.get());e&&c&&(this.PF=new g.j9(function(){var I=Hv(L.layout.clientMetadata,"metadata_type_preload_player_vars");I&&L.Zp.get().V.preloadVideoByPlayerVars(I,2,300)}))}}; B9c=function(e,L){var c=Hv(L.clientMetadata,"metadata_type_ad_video_id"),I=Hv(L.clientMetadata,"metadata_type_legacy_info_card_vast_extension");c&&I&&e.Jj.get().V.S().Y9.add(c,{rB:I});(L=Hv(L.clientMetadata,"metadata_type_sodar_extension_data"))&&xyH(e.mF.get(),L);IF$(e.Be.get(),!1)}; x2$=function(e){IF$(e.Be.get(),!0);var L;((L=e.shrunkenPlayerBytesConfig)==null?0:L.shouldRequestShrunkenPlayerBytes)&&e.Be.get().FO(!1)}; owr=function(e){return new XI(e)}; Kx=function(){EP.apply(this,arguments)}; XI=function(){Kx.apply(this,arguments)}; SsM=function(e){return cWr(Object.assign({},e,{Uw:e.callback,H_:function(){}}))}; rWf=function(e){return new EP(Object.assign({},e,{H_:function(L){e.l4.get().uG("onAdIntroStateChange",L)}}))}; hO6=function(e){function L(c){e.l4.get().hM(c)} return ml(e.slot,e.ZY.get())?owr(Object.assign({},e,{H_:L})):new EP(Object.assign({},e,{H_:L}))}; Y_=function(e){for(var L=e.yZ,c=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],I=g.f(R0()),B=I.next();!B.done;B=I.next())c.push(B.value);if(Cz(L,{zI:c,fb:["LAYOUT_TYPE_MEDIA_BREAK"]}))return SsM(e);L=e.yZ;c=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];I=g.f(R0());for(B=I.next();!B.done;B=I.next())c.push(B.value);if(Cz(L,{zI:c,fb:["LAYOUT_TYPE_MEDIA"]}))return y0(e.yZ.clientMetadata,"metadata_type_ad_intro")?rWf(e):hO6(e)}; unv=function(e){var L=Hv(e.clientMetadata,"metadata_type_ad_placement_config").kind,c=Hv(e.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:e.layoutId,adType:ROR(c),adBreakType:ai(L)}}; ai=function(e){switch(e){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"}}; ROR=function(e){switch(e){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; tFn=function(e){try{return new nx(e.o$,e.slot,e.layout,e.Y0,e.jt,e.M0,e.aI,e.Zp,e.EY,e.Be,e.zM9,e)}catch(L){}}; nx=function(e,L,c,I,B,x,S,h,R,u,t,O){g.p.call(this);this.o$=e;this.slot=L;this.layout=c;this.Y0=I;this.jt=B;this.M0=x;this.aI=S;this.Zp=h;this.EY=R;this.Be=u;this.params=O;this.x4=!0;e=Y_(t);if(!e)throw Error("Invalid params for sublayout");this.Qo=e}; Oqn=function(){this.X=1;this.K=new nz}; es=function(e,L,c,I,B,x,S,h,R,u,t,O,q,T){g.p.call(this);this.callback=e;this.M0=L;this.aI=c;this.Zp=I;this.Be=B;this.cR=x;this.Uq=S;this.q4=h;this.slot=R;this.layout=u;this.Y0=t;this.Ja=O;this.EY=q;this.ZY=T;this.x4=!0;this.lW=!1;this.L1=[];this.UI=-1;this.wi=!1;this.z0=new Oqn}; qsv=function(e){var L;return(L=e.layout.EA)!=null?L:Hv(e.layout.clientMetadata,"metadata_type_sub_layouts")}; LL=function(e){return{zr:e.M0.get(),nG:!1,Se:e.Ry()}}; T9$=function(e,L,c){if(e.T6()===e.L1.length-1){var I,B;Ir("Unexpected skip requested during the last sublayout",(I=e.Lj())==null?void 0:I.JK(),(B=e.Lj())==null?void 0:B.FM(),{requestingSlot:L,requestingLayout:c})}}; WZT=function(e,L,c){return c.layoutId!==cw(e,L,c)?(Ir("onSkipRequested for a PlayerBytes layout that is not currently active",e.JK(),e.FM()),!1):!0}; MFn=function(e){e.T6()===e.L1.length-1&&Ir("Unexpected skip with target requested during the last sublayout")}; zO$=function(e,L,c){return c.renderingContent===void 0&&c.layoutId!==cw(e,L,c)?(Ir("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",e.JK(),e.FM(),{requestingSlot:L,requestingLayout:c}),!1):!0}; srn=function(e,L,c,I){var B=Hv(L.FM().clientMetadata,"metadata_type_ad_pod_skip_target");if(B&&B>0&&B0)){Ir("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",e.slot,e.layout,{indexToPlay:L,layoutId:e.layout.layoutId});break a}e.UI=L;L=e.Lj();if(e.T6()>0&&!e.Ry()){var c=e.Uq.get();c.K=!1;var I={};c.X&&c.videoId&&(I.cttAuthInfo={token:c.X,videoId:c.videoId});be("ad_to_ad",I)}e.mX(L)}}; oT=function(e){es.call(this,e.o$,e.M0,e.aI,e.Zp,e.Be,e.cR,e.Uq,e.q4,e.slot,e.layout,e.Y0,e.Ja,e.EY,e.ZY)}; AWx=function(e){(e=e.Lj())&&e.m7()}; Ss=function(e){es.call(this,e.o$,e.M0,e.aI,e.Zp,e.Be,e.cR,e.Uq,e.q4,e.slot,e.layout,e.Y0,e.Ja,e.EY,e.ZY);this.Tk=void 0}; FZR=function(e,L){e.Ji()&&!Ln(e.z0.K)||e.callback.Gy(e.slot,e.layout,L)}; rh=function(e){return Jz(e.ZY.get(),"html5_ssap_pass_transition_reason")}; bqv=function(e,L,c){L.Fd().currentState<2&&(c=ZD(c,e.ZY),L.L9(L.FM(),c));c=L.Fd().X;e.u_(e.slot,L.FM(),c)}; iq6=function(e,L){if(e.z0.K.currentState<2){var c=ZD(L,e.ZY);c==="error"?e.callback.Xc(e.slot,e.layout,new $K("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:L},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):x9(e.Ja,e.layout,c)}}; ht=function(e,L,c){L.Fd().currentState>=2||(L.L9(L.FM(),c),Ln(L.Fd())&&(tz(e.q4,e.slot,L.FM(),c),e.Tk=void 0))}; Gen=function(e,L){e.z0.X===2&&L!==e.Wc()&&Ir("onClipEntered: unknown cpn",e.slot,e.layout,{cpn:L})}; gwv=function(e,L){var c=e.Lj();if(c){var I=c.FM().layoutId,B=e.T6()+1;e.Ji()?ht(e,c,L):c.L9(c.FM(),L);B>=0&&BB&&S.RY(t,B-I);return t}; m2M=function(e,L,c){var I=Hv(L.clientMetadata,"metadata_type_sodar_extension_data");if(I)try{xyH(c,I)}catch(B){Ir("Unexpected error when loading Sodar",e,L,{error:B})}}; yWT=function(e,L,c,I,B,x,S){Ww(e,L,new g.BZ(c,new g.WX),I,B,S,!1,x)}; Ww=function(e,L,c,I,B,x,S,h){S=S===void 0?!0:S;Et(c)&&XQ(B,0,null)&&(!TH(e,"impression")&&h&&h(),e.AK("impression"));TH(e,"impression")&&(g.or(c,4)&&!g.or(c,2)&&e.iz("pause"),xw(c,4)<0&&!(xw(c,2)<0)&&e.iz("resume"),g.or(c,16)&&B>=.5&&e.iz("seek"),S&&g.or(c,2)&&Mm(e,c.state,L,I,B,x))}; Mm=function(e,L,c,I,B,x,S,h,R){TH(e,"impression")&&(x?(x=B-I,x=x>=-1&&x<=2):x=Math.abs(I-B)<=1,z5(e,L,x?I:B,c,I,S,h&&x),x&&!R&&e.AK("complete"))}; z5=function(e,L,c,I,B,x,S){qi(e,c*1E3,S);B<=0||c<=0||(L==null?0:g.E(L,16))||(L==null?0:g.E(L,32))||(XQ(c,B*.25,I)&&(x&&!TH(e,"first_quartile")&&x("first"),e.AK("first_quartile")),XQ(c,B*.5,I)&&(x&&!TH(e,"midpoint")&&x("second"),e.AK("midpoint")),XQ(c,B*.75,I)&&(x&&!TH(e,"third_quartile")&&x("third"),e.AK("third_quartile")))}; Zqf=function(e,L){TH(e,"impression")&&e.iz(L?"fullscreen":"end_fullscreen")}; pZ$=function(e){TH(e,"impression")&&e.iz("clickthrough")}; $2J=function(e){e.iz("active_view_measurable")}; jrn=function(e){TH(e,"impression")&&!TH(e,"seek")&&e.iz("active_view_fully_viewable_audible_half_duration")}; Hqx=function(e){TH(e,"impression")&&!TH(e,"seek")&&e.iz("active_view_viewable")}; lFr=function(e){TH(e,"impression")&&!TH(e,"seek")&&e.iz("audio_audible")}; P1n=function(e){TH(e,"impression")&&!TH(e,"seek")&&e.iz("audio_measurable")}; Qrx=function(e,L,c,I,B,x,S,h,R,u,t,O,q){this.callback=e;this.slot=L;this.layout=c;this.aI=I;this.nS=B;this.Be=x;this.dX=S;this.e5=h;this.mF=R;this.ZY=u;this.Tm=t;this.M0=O;this.K9=q;this.Qm=!0;this.d0=this.S5=null;this.adCpn=void 0;this.X=!1}; d2x=function(e,L,c){var I;T5(e.Tm.get(),"ads_qua","cpn."+Hv(e.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((I=w1(e.M0.get(),2))==null?void 0:I.clientPlaybackNonce)+";qt."+L+";clr."+c)}; U2M=function(e,L){var c,I;T5(e.Tm.get(),"ads_imp","cpn."+Hv(e.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((c=w1(e.M0.get(),2))==null?void 0:c.clientPlaybackNonce)+";clr."+L+";skp."+!!g.Q((I=Hv(e.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:I.skipOrPreviewRenderer,sJ))}; vw=function(e){return{enterMs:Hv(e.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:Hv(e.clientMetadata,"metadata_type_layout_exit_ms")}}; fL=function(e,L,c,I,B,x,S,h,R,u,t,O,q,T){uP.call(this,e,L,c,I,B,S,h,R,u,O);this.dX=x;this.mF=t;this.e5=q;this.ZY=T;this.d0=this.S5=null}; Ewc=function(e,L){var c;T5(e.Tm.get(),"ads_imp","acpn."+((c=w1(e.M0.get(),2))==null?void 0:c.clientPlaybackNonce)+";clr."+L)}; XZn=function(e,L,c){var I;T5(e.Tm.get(),"ads_qua","cpn."+Hv(e.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((I=w1(e.M0.get(),2))==null?void 0:I.clientPlaybackNonce)+";qt."+L+";clr."+c)}; At=function(e,L,c,I,B,x,S,h,R,u,t,O,q,T,W,A,b,J,w,C,y,P){this.EY=e;this.Y0=L;this.Ja=c;this.M0=I;this.aI=B;this.Be=x;this.cR=S;this.Tm=h;this.dX=R;this.Jq=u;this.e5=t;this.mF=O;this.Zp=q;this.K9=T;this.Uq=W;this.l4=A;this.T_=b;this.Jj=J;this.ZY=w;this.X=C;this.context=y;this.NO=P}; Fa=function(e,L,c,I,B,x,S,h,R,u,t,O,q,T,W,A,b,J,w){this.EY=e;this.Y0=L;this.Ja=c;this.Tm=I;this.e5=B;this.mF=x;this.Zp=S;this.M0=h;this.Be=R;this.cR=u;this.K9=t;this.Uq=O;this.l4=q;this.T_=T;this.Jj=W;this.ZY=A;this.aI=b;this.context=J;this.NO=w}; KZ$=function(e,L,c,I){KE.call(this,"survey-interstitial",e,L,c,I)}; bP=function(e,L,c,I,B){Lz.call(this,c,e,L,I);this.Tm=B;e=Hv(L.clientMetadata,"metadata_type_ad_placement_config");this.nS=new hE(L.hK,B,e,L.layoutId)}; iP=function(e){return Math.round(e.width)+"x"+Math.round(e.height)}; gh=function(e,L,c){c=c===void 0?G5:c;c.widthe.width*e.height*.2)return{CZ:3,yp:501,errorMessage:"ad("+iP(c)+") to container("+iP(e)+") ratio exceeds limit."};if(c.height>e.height/3-L)return{CZ:3,yp:501,errorMessage:"ad("+iP(c)+") covers container("+iP(e)+") center."}}; YsT=function(e,L){var c=Hv(e.clientMetadata,"metadata_type_ad_placement_config");return new hE(e.hK,L,c,e.layoutId)}; k9=function(e){return Hv(e.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; DO=function(e,L,c,I){KE.call(this,"invideo-overlay",e,L,c,I);this.interactionLoggingClientData=I}; wh=function(e,L,c,I,B,x,S,h,R,u,t,O){Lz.call(this,x,e,L,B);this.Tm=c;this.G=S;this.Be=h;this.T_=R;this.ZY=u;this.j=t;this.B=O;this.nS=YsT(L,c)}; nwc=function(){var e=["metadata_type_invideo_overlay_ad_renderer"];R0().forEach(function(L){e.push(L)}); return{zI:e,fb:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; Jt=function(e,L,c,I,B,x,S,h,R,u,t,O,q){Lz.call(this,x,e,L,B);this.Tm=c;this.G=S;this.J=h;this.Be=R;this.T_=u;this.ZY=t;this.j=O;this.B=q;this.nS=YsT(L,c)}; e_$=function(){for(var e=["metadata_type_invideo_overlay_ad_renderer"],L=g.f(R0()),c=L.next();!c.done;c=L.next())e.push(c.value);return{zI:e,fb:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; VX=function(e){this.Be=e;this.X=!1}; LQn=function(e,L,c){KE.call(this,"survey",e,{},L,c)}; CL=function(e,L,c,I,B,x,S){Lz.call(this,c,e,L,I);this.G=B;this.Be=x;this.ZY=S}; cD$=function(e,L,c,I,B,x,S,h,R,u){this.D6=e;this.Be=L;this.Tm=c;this.G=I;this.e5=B;this.K=x;this.Z=S;this.T_=h;this.ZY=R;this.X=u}; Ie$=function(e,L,c,I,B,x,S,h,R,u){this.D6=e;this.Be=L;this.Tm=c;this.G=I;this.e5=B;this.K=x;this.Z=S;this.T_=h;this.ZY=R;this.X=u}; aT=function(e,L,c,I,B,x,S,h,R,u){pz.call(this,e,L,c,I,B,x,S,R);this.Bt=h;this.M0=u}; B_H=function(){var e=Rsn();e.zI.push("metadata_type_ad_info_ad_metadata");return e}; xvv=function(e,L,c,I,B,x,S){this.D6=e;this.Be=L;this.Tm=c;this.K=I;this.Bt=B;this.X=x;this.M0=S}; oEJ=function(e,L,c,I,B,x,S,h){this.D6=e;this.Be=L;this.Tm=c;this.K=I;this.Bt=B;this.X=x;this.ZY=S;this.M0=h}; Nm=function(e,L){this.slotId=L;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=e(this.triggerType)}; mp=function(e,L){this.adPodIndex=e;this.X=L.length;this.adBreakLengthSeconds=L.reduce(function(I,B){return I+B},0); var c=0;for(e+=1;e0}; GU=function(e){return!!(e.XY&&e.slot&&e.layout)}; gK=function(e){var L,c=(L=e.config)==null?void 0:L.adPlacementConfig;e=e.renderer;return!(!c||c.kind==null||!e)}; fec=function(e){if(!s5(e.adLayoutMetadata))return!1;e=e.renderingContent;return g.Q(e,Q1)||g.Q(e,d4)||g.Q(e,vEx)||g.Q(e,li)||g.Q(e,Px)?!0:!1}; kP=function(e){return e.playerVars!==void 0&&e.pings!==void 0&&e.externalVideoId!==void 0}; Nb=function(e){if(!s5(e.adLayoutMetadata))return!1;e=e.renderingContent;var L=g.Q(e,DC);return L?wK(L):(L=g.Q(e,J8))?kP(L):(L=g.Q(e,VN))?L.playerVars!==void 0:(L=g.Q(e,Q1))?L.durationMilliseconds!==void 0:g.Q(e,CP)||g.Q(e,aV)?!0:!1}; wK=function(e){e=(e.sequentialLayouts||[]).map(function(L){return g.Q(L,mG)}); return e.length>0&&e.every(Nb)}; ZC=function(e){return s5(e.adLayoutMetadata)?(e=g.Q(e.renderingContent,yN))&&e.pings?!0:!1:!1}; gE$=function(e){if(!s5(e.adLayoutMetadata))return!1;if(g.Q(e.renderingContent,ADH)||g.Q(e.renderingContent,FQc))return!0;var L=g.Q(e.renderingContent,pP);return g.Q(e.renderingContent,$P)||g.Q(L==null?void 0:L.sidePanel,biv)||g.Q(L==null?void 0:L.sidePanel,iin)||g.Q(L==null?void 0:L.sidePanel,Gpc)?!0:!1}; Vic=function(e){var L;(L=!e)||(L=e.adSlotMetadata,L=!((L==null?void 0:L.slotId)!==void 0&&(L==null?void 0:L.slotType)!==void 0));if(L||!(kpM(e)||e.slotEntryTrigger&&e.slotFulfillmentTriggers&&e.slotExpirationTriggers))return!1;var c;e=(c=e.fulfillmentContent)==null?void 0:c.fulfilledLayout;return(c=g.Q(e,mG))?Nb(c):(c=g.Q(e,jm))?gE$(c):(c=g.Q(e,DvJ))?fec(c):(c=g.Q(e,wET))?z_6(c):(c=g.Q(e,JDv))?s5(c.adLayoutMetadata)?g.Q(c.renderingContent,vf)?!0:!1:!1:(e=g.Q(e,Hf))?ZC(e):!1}; kpM=function(e){var L;e=g.Q((L=e.fulfillmentContent)==null?void 0:L.fulfilledLayout,jm);var c;return e&&((c=e.adLayoutMetadata)==null?void 0:c.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&e.layoutExitNormalTriggers===void 0}; Cev=function(e){var L;return(e==null?void 0:(L=e.adSlotMetadata)==null?void 0:L.slotType)==="SLOT_TYPE_IN_PLAYER"}; N_x=function(e,L){var c;if((c=e.questions)==null||!c.length||!e.playbackCommands||(L===void 0||!L)&&e.questions.length!==1)return!1;e=g.f(e.questions);for(L=e.next();!L.done;L=e.next()){L=L.value;var I=c=void 0,B=((c=g.Q(L,lH))==null?void 0:c.surveyAdQuestionCommon)||((I=g.Q(L,Pf))==null?void 0:I.surveyAdQuestionCommon);if(!aex(B))return!1}return!0}; mvr=function(e){e=((e==null?void 0:e.playerOverlay)||{}).instreamSurveyAdRenderer;var L;if(e)if(e.playbackCommands&&e.questions&&e.questions.length===1){var c,I=((L=g.Q(e.questions[0],lH))==null?void 0:L.surveyAdQuestionCommon)||((c=g.Q(e.questions[0],Pf))==null?void 0:c.surveyAdQuestionCommon);L=aex(I)}else L=!1;else L=!1;return L}; aex=function(e){if(!e)return!1;e=g.Q(e.instreamAdPlayerOverlay,QN);var L=g.Q(e==null?void 0:e.skipOrPreviewRenderer,sJ),c=g.Q(e==null?void 0:e.adInfoRenderer,dK);return(g.Q(e==null?void 0:e.skipOrPreviewRenderer,U5)||L)&&c?!0:!1}; yD6=function(e){return e.linearAds!=null&&s5(e.adLayoutMetadata)}; Zin=function(e){return e.linearAd!=null&&e.adVideoStart!=null}; pEH=function(e){if(isNaN(Number(e.timeoutSeconds))||!e.text||!e.ctaButton||!g.Q(e.ctaButton,g.E5)||!e.brandImage)return!1;var L;return e.backgroundImage&&g.Q(e.backgroundImage,X6)&&((L=g.Q(e.backgroundImage,X6))==null?0:L.landscape)?!0:!1}; KP=function(e,L,c,I,B,x,S,h){g.p.call(this);this.ZY=e;this.X=L;this.K=I;this.M0=B;this.G=x;this.Z=S;this.Zp=h}; Hi$=function(e,L,c){var I,B=((I=c.adSlots)!=null?I:[]).map(function(h){return g.Q(h,YP)}); if(c.JY)if(Hv(L.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))KC(e.X.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},L.slotId); else{if(e.ZY.get().V.S().Y("h5_check_forecasting_renderer_for_throttled_midroll")){var x=c.QR.filter(function(h){var R;return((R=h.renderer)==null?void 0:R.clientForecastingAdRenderer)!=null}); x.length!==0?$vR(e.Z,x,B,L.slotId,c.ssdaiAdsConfig):KC(e.X.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},L.slotId)}else KC(e.X.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},L.slotId); jNr(e.G,L)}else{var S;I={Zz:Math.round(((x=Hv(L.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:x.Zz)||0),Kw:(S=Hv(L.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:S.Kw};$vR(e.Z,c.QR,B,L.slotId,c.ssdaiAdsConfig,I)}}; QNH=function(e,L,c,I,B,x,S){var h=w1(e.M0.get(),1);if(lef(e.ZY.get())){var R=nP(e.K.get(),c,I,B,h.clientPlaybackNonce,h.NS,h.daiEnabled,h,x,S);PeT(e,R);KC(e.X.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return R},L)}else KC(e.X.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return nP(e.K.get(),c,I,B,h.clientPlaybackNonce,h.NS,h.daiEnabled,h,x,S)},L)}; PeT=function(e,L){L=g.f(L);for(var c=L.next();!c.done;c=L.next()){var I=c.value;if(I.slotType==="SLOT_TYPE_PLAYER_BYTES"&&I.fulfilledLayout)if(c=void 0,I.fulfilledLayout.renderingContent)c=Hv(I.fulfilledLayout.clientMetadata,"metadata_type_player_vars");else{if(I.fulfilledLayout.EA){I=g.f(I.fulfilledLayout.EA);for(var B=I.next();!B.done&&(B=B.value,!B.renderingContent||!(c=Hv(B.clientMetadata,"metadata_type_player_vars")));B=I.next());}}else c=void 0;if(c){e.Zp.get().V.preloadVideoByPlayerVars(c, 2,300);break}}}; Uvn=function(e,L,c,I,B,x,S){L=dvM(L,x,Number(I.prefetchMilliseconds)||0,S);e=L instanceof K?L:e2(e,I,B,L,c);return e instanceof K?e:[e]}; EEM=function(e,L,c,I,B){var x=YH(e.K.get(),"SLOT_TYPE_AD_BREAK_REQUEST");I=[new vv({getAdBreakUrl:I.getAdBreakUrl,Zz:0,Kw:0}),new aW(!0)];e=L.pauseDurationMs?L.lactThresholdMs?{slotId:x,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new Sm(e.X,x),slotFulfillmentTriggers:[new rDM(e.X)],slotExpirationTriggers:[new em(e.X,B),new Bf(e.X,x)],J7:"core",clientMetadata:new jp(I),adSlotLoggingData:c}:new K("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new K("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return e instanceof K?e:[e]}; XEc=function(e){var L,c;return((L=e.renderer)==null?void 0:(c=L.adBreakServiceRenderer)==null?void 0:c.getAdBreakUrl)!==void 0}; Lh=function(e,L,c){if(e.beforeContentVideoIdStartedTrigger)e=e.beforeContentVideoIdStartedTrigger?new yX(pR,L,e.id):new K("Not able to create BeforeContentVideoIdStartedTrigger");else{if(e.layoutIdExitedTrigger){var I;L=(I=e.layoutIdExitedTrigger)!=null&&I.triggeringLayoutId?new lP(pR,e.layoutIdExitedTrigger.triggeringLayoutId,e.id):new K("Not able to create LayoutIdExitedTrigger")}else{if(e.layoutExitedForReasonTrigger){var B,x;((B=e.layoutExitedForReasonTrigger)==null?0:B.triggeringLayoutId)&&((x= e.layoutExitedForReasonTrigger)==null?0:x.layoutExitReason)?(L=h_n(e.layoutExitedForReasonTrigger.layoutExitReason),e=L instanceof K?L:new Hw(pR,e.layoutExitedForReasonTrigger.triggeringLayoutId,[L],e.id)):e=new K("Not able to create LayoutIdExitedForReasonTrigger")}else{if(e.onLayoutSelfExitRequestedTrigger){var S;L=(S=e.onLayoutSelfExitRequestedTrigger)!=null&&S.triggeringLayoutId?new nL(pR,e.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,e.id):new K("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(e.onNewPlaybackAfterContentVideoIdTrigger)e= e.onNewPlaybackAfterContentVideoIdTrigger?new em(pR,L,e.id):new K("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(e.skipRequestedTrigger){var h;L=(h=e.skipRequestedTrigger)!=null&&h.triggeringLayoutId?new cf(pR,e.skipRequestedTrigger.triggeringLayoutId,e.id):new K("Not able to create SkipRequestedTrigger")}else if(e.slotIdEnteredTrigger){var R;L=(R=e.slotIdEnteredTrigger)!=null&&R.triggeringSlotId?new IV(pR,e.slotIdEnteredTrigger.triggeringSlotId,e.id):new K("Not able to create SlotIdEnteredTrigger")}else if(e.slotIdExitedTrigger){var u; L=(u=e.slotIdExitedTrigger)!=null&&u.triggeringSlotId?new Bf(pR,e.slotIdExitedTrigger.triggeringSlotId,e.id):new K("Not able to create SkipRequestedTrigger")}else if(e.surveySubmittedTrigger){var t;L=(t=e.surveySubmittedTrigger)!=null&&t.triggeringLayoutId?new Wf(pR,e.surveySubmittedTrigger.triggeringLayoutId,e.id):new K("Not able to create SurveySubmittedTrigger")}else{if(e.mediaResumedTrigger)e=e.mediaResumedTrigger&&e.id?new R_T(e.id):new K("Not able to create MediaResumedTrigger");else{if(e.closeRequestedTrigger){var O; L=(O=e.closeRequestedTrigger)!=null&&O.triggeringLayoutId?new ZO(pR,e.closeRequestedTrigger.triggeringLayoutId,e.id):new K("Not able to create CloseRequestedTrigger")}else if(e.slotIdScheduledTrigger){var q;L=(q=e.slotIdScheduledTrigger)!=null&&q.triggeringSlotId?new Sm(pR,e.slotIdScheduledTrigger.triggeringSlotId,e.id):new K("Not able to create SlotIdScheduledTrigger")}else{if(e.mediaTimeRangeTrigger){var T;I=Number((T=e.mediaTimeRangeTrigger)==null?void 0:T.offsetStartMilliseconds);var W;S=Number((W= e.mediaTimeRangeTrigger)==null?void 0:W.offsetEndMilliseconds);isFinite(I)&&isFinite(S)?(W=S,W===-1&&(W=c),c=I>W?new K("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:I,offsetEndMs:W},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",W===c&&I-500<=W):new Tl(I,W),e=c instanceof K?c:new EJ(pR,L,c,!1,e.id)):e=new K("Not able to create MediaTimeRangeTrigger")}else if(e.contentVideoIdEndedTrigger)e=e.contentVideoIdEndedTrigger?new pL(pR,L,!1,e.id):new K("Not able to create ContentVideoIdEndedTrigger"); else{if(e.layoutIdEnteredTrigger){var A;L=(A=e.layoutIdEnteredTrigger)!=null&&A.triggeringLayoutId?new js(pR,e.layoutIdEnteredTrigger.triggeringLayoutId,e.id):new K("Not able to create LayoutIdEnteredTrigger")}else if(e.timeRelativeToLayoutEnterTrigger){var b;L=(b=e.timeRelativeToLayoutEnterTrigger)!=null&&b.triggeringLayoutId?new Mb(pR,Number(e.timeRelativeToLayoutEnterTrigger.durationMs),e.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,e.id):new K("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(e.onDifferentLayoutIdEnteredTrigger){var J; L=(J=e.onDifferentLayoutIdEnteredTrigger)!=null&&J.triggeringLayoutId&&e.onDifferentLayoutIdEnteredTrigger.slotType&&e.onDifferentLayoutIdEnteredTrigger.layoutType?new KL(pR,e.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,e.onDifferentLayoutIdEnteredTrigger.slotType,e.onDifferentLayoutIdEnteredTrigger.layoutType,e.id):new K("Not able to create CloseRequestedTrigger")}else{if(e.liveStreamBreakStartedTrigger)e=e.liveStreamBreakStartedTrigger&&e.id?new UJ(pR,e.id):new K("Not able to create LiveStreamBreakStartedTrigger"); else if(e.liveStreamBreakEndedTrigger)e=e.liveStreamBreakEndedTrigger&&e.id?new Pw(pR,e.id):new K("Not able to create LiveStreamBreakEndedTrigger");else{if(e.liveStreamBreakScheduledDurationMatchedTrigger){var w;L=(w=e.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&w.breakDurationMs?new QX(Number(e.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,e.id):new K("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(e.liveStreamBreakScheduledDurationNotMatchedTrigger){var C; L=(C=e.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&C.breakDurationMs?new dh(Number(e.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,e.id):new K("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(e.newSlotScheduledWithBreakDurationTrigger){var y;L=(y=e.newSlotScheduledWithBreakDurationTrigger)!=null&&y.breakDurationMs?new Xa(Number(e.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,e.id):new K("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else L= e.prefetchCacheExpiredTrigger?new LP(pR,e.id):new K("Not able to convert an AdsControlflowTrigger.");e=L}L=e}e=L}L=e}e=L}L=e}e=L}L=e}e=L}L=e}e=L}return e}; cF=function(e,L){L.X>=2&&(e.slot_pos=L.adPodIndex);e.autoplay="1"}; Yv6=function(e,L,c,I,B,x,S,h){return L===null?new K("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:L,ActionCompanionAdRenderer:I}):[KQn(e,L,S,x,function(R){var u=R.slotId;R=h(R);var t=I.adLayoutLoggingData,O=new jp([new AA(I),new az(B)]);u=Vq(c.K.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",u);var q={layoutId:u,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",J7:"core"};return{layoutId:u,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",hK:new Map, layoutExitNormalTriggers:[new em(c.X,S)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Mw:[],J7:"core",clientMetadata:O,wT:R(q),adLayoutLoggingData:t}})]}; nE$=function(e,L,c,I,B,x,S,h){return L===null?new K("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:L,TopBannerImageTextIconButtonedLayoutViewModel:I}):[KQn(e,L,S,x,function(R){var u=R.slotId;R=h(R);var t=I.adLayoutLoggingData,O=new jp([new Fr(I),new az(B)]);u=Vq(c.K.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",u);var q={layoutId:u,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",J7:"core"};return{layoutId:u,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", hK:new Map,layoutExitNormalTriggers:[new em(c.X,S)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Mw:[],J7:"core",clientMetadata:O,wT:R(q),adLayoutLoggingData:t}})]}; IG$=function(e,L,c,I,B,x){if(!x)for(L=g.f(L),x=L.next();!x.done;x=L.next())x=x.value,Iu(e,x.renderer,x.config.adPlacementConfig.kind);e=Array.from(e.values()).filter(function(t){return eyr(t)}); L=[];x=g.f(e);for(var S=x.next(),h={};!S.done;h={DU:void 0},S=x.next()){h.DU=S.value;S=g.f(h.DU.OQ);for(var R=S.next(),u={};!R.done;u={Rl:void 0},R=S.next())u.Rl=R.value,R=function(t,O){return function(q){return t.Rl.Mz(q,O.DU.instreamVideoAdRenderer.elementId,t.Rl.C0)}}(u,h),u.Rl.isContentVideoCompanion?L.push(L$n(c,I,B,h.DU.instreamVideoAdRenderer.elementId,u.Rl.associatedCompositePlayerBytesLayoutId,u.Rl.adSlotLoggingData,R)):e.length>1?L.push(cPc(c,I,B,h.DU.instreamVideoAdRenderer.elementId,u.Rl.adSlotLoggingData, function(t,O){return function(q){return t.Rl.Mz(q,O.DU.instreamVideoAdRenderer.elementId,t.Rl.C0,t.Rl.associatedCompositePlayerBytesLayoutId)}}(u,h))):L.push(cPc(c,I,B,h.DU.instreamVideoAdRenderer.elementId,u.Rl.adSlotLoggingData,R))}return L}; Iu=function(e,L,c){if(L=BLM(L)){L=g.f(L);for(var I=L.next();!I.done;I=L.next())if((I=I.value)&&I.externalVideoId){var B=BF(e,I.externalVideoId);B.instreamVideoAdRenderer||(B.instreamVideoAdRenderer=I,B.lS=c)}else Ir("InstreamVideoAdRenderer without externalVideoId")}}; BLM=function(e){var L=[],c=e.sandwichedLinearAdRenderer&&e.sandwichedLinearAdRenderer.linearAd&&g.Q(e.sandwichedLinearAdRenderer.linearAd,J8);if(c)return L.push(c),L;if(e.instreamVideoAdRenderer)return L.push(e.instreamVideoAdRenderer),L;if(e.linearAdSequenceRenderer&&e.linearAdSequenceRenderer.linearAds){e=g.f(e.linearAdSequenceRenderer.linearAds);for(c=e.next();!c.done;c=e.next())c=c.value,g.Q(c,J8)&&L.push(g.Q(c,J8));return L}return null}; eyr=function(e){if(e.instreamVideoAdRenderer===void 0)return Ir("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var L=g.f(e.OQ),c=L.next();!c.done;c=L.next()){c=c.value;if(c.Mz===void 0)return!1;if(c.C0===void 0)return Ir("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(e.lS===void 0||c.wB===void 0||e.lS!==c.wB&&c.wB!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(e.instreamVideoAdRenderer.elementId===void 0)return Ir("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:e.lS,"matching APSR kind":c.wB}),!1}return!0}; BF=function(e,L){e.has(L)||e.set(L,{instreamVideoAdRenderer:void 0,lS:void 0,adVideoId:L,OQ:[]});return e.get(L)}; xz=function(e,L,c,I,B,x,S,h,R){B?BF(e,B).OQ.push({ZRd:L,wB:c,isContentVideoCompanion:I,C0:S,associatedCompositePlayerBytesLayoutId:x,adSlotLoggingData:h,Mz:R}):Ir("Companion AdPlacementSupportedRenderer without adVideoId")}; ou=function(e){var L=0;e=g.f(e.questions);for(var c=e.next();!c.done;c=e.next())if(c=c.value,c=g.Q(c,lH)||g.Q(c,Pf)){var I=void 0;L+=((I=c.surveyAdQuestionCommon)==null?void 0:I.durationMilliseconds)||0}return L}; S2=function(e){var L,c,I,B,x=((c=g.Q((L=e.questions)==null?void 0:L[0],lH))==null?void 0:c.surveyAdQuestionCommon)||((B=g.Q((I=e.questions)==null?void 0:I[0],Pf))==null?void 0:B.surveyAdQuestionCommon),S;L=[].concat(g.V(((S=e.playbackCommands)==null?void 0:S.instreamAdCompleteCommands)||[]),g.V((x==null?void 0:x.timeoutCommands)||[]));var h,R,u,t,O,q,T,W,A,b,J,w,C,y,P,ev,X,oH,rc,Sv;return{impressionCommands:(h=e.playbackCommands)==null?void 0:h.impressionCommands,errorCommands:(R=e.playbackCommands)== null?void 0:R.errorCommands,muteCommands:(u=e.playbackCommands)==null?void 0:u.muteCommands,unmuteCommands:(t=e.playbackCommands)==null?void 0:t.unmuteCommands,pauseCommands:(O=e.playbackCommands)==null?void 0:O.pauseCommands,rewindCommands:(q=e.playbackCommands)==null?void 0:q.rewindCommands,resumeCommands:(T=e.playbackCommands)==null?void 0:T.resumeCommands,skipCommands:(W=e.playbackCommands)==null?void 0:W.skipCommands,progressCommands:(A=e.playbackCommands)==null?void 0:A.progressCommands,T9W:(b= e.playbackCommands)==null?void 0:b.clickthroughCommands,fullscreenCommands:(J=e.playbackCommands)==null?void 0:J.fullscreenCommands,activeViewViewableCommands:(w=e.playbackCommands)==null?void 0:w.activeViewViewableCommands,activeViewMeasurableCommands:(C=e.playbackCommands)==null?void 0:C.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(y=e.playbackCommands)==null?void 0:y.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(P=e.playbackCommands)== null?void 0:(ev=P.activeViewTracking)==null?void 0:ev.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(X=e.playbackCommands)==null?void 0:(oH=X.activeViewTracking)==null?void 0:oH.activeViewAudioMeasurableCommands,endFullscreenCommands:(rc=e.playbackCommands)==null?void 0:rc.endFullscreenCommands,abandonCommands:(Sv=e.playbackCommands)==null?void 0:Sv.abandonCommands,completeCommands:L}}; oj$=function(e,L,c,I,B,x,S){return function(h,R){return xRf(e,R.slotId,h,x,function(u,t){var O=R.layoutId;u=S(u);return r2(L,O,t,B,u,"LAYOUT_TYPE_SURVEY",[new Ku(c),I],c.adLayoutLoggingData)})}}; hyJ=function(e,L,c,I,B,x,S){if(!SKH(e))return new K("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:e});var h=e.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[rPx(x,L,c,I,function(R){var u=R.slotId;R=S(R);u=Vq(B.K.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",u);var t={layoutId:u,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",J7:"core"},O=new lP(B.X,I);return{layoutId:u,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",hK:new Map,layoutExitNormalTriggers:[O], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Mw:[],J7:"core",clientMetadata:new jp([new Ym(h)]),wT:R(t)}})]}; SKH=function(e){e=g.Q(e==null?void 0:e.additionalPlayerOverlay,RyJ);if(!e)return!1;var L=e.slidingMessages;return e.title&&L&&L.length!==0?!0:!1}; tjv=function(e,L,c,I,B){var x;if((x=e.playerOverlay)==null||!x.instreamSurveyAdRenderer)return function(){return[]}; if(!mvr(e))return function(){return new K("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:e})}; var S=e.playerOverlay.instreamSurveyAdRenderer,h=ou(S);return h<=0?function(){return new K("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:S})}:function(R,u){var t=uPc(R,c,I,function(O){var q=O.slotId; O=u(O);var T=S2(S);q=Vq(B.K.get(),"LAYOUT_TYPE_SURVEY",q);var W={layoutId:q,layoutType:"LAYOUT_TYPE_SURVEY",J7:"core"},A=new lP(B.X,I),b=new cf(B.X,q),J=new Wf(B.X,q),w=new qvH(B.X);return{layoutId:q,layoutType:"LAYOUT_TYPE_SURVEY",hK:new Map,layoutExitNormalTriggers:[A,w],layoutExitSkipTriggers:[b],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[J],Mw:[],J7:"core",clientMetadata:new jp([new Xr(S),new az(L),new F3(h/1E3),new gy(T)]),wT:O(W),adLayoutLoggingData:S.adLayoutLoggingData}}); R=hyJ(e,c,t.slotId,I,B,R,u);return R instanceof K?R:[t].concat(g.V(R))}}; s8c=function(e,L,c,I,B,x,S){S=S===void 0?!1:S;var h=[];try{var R=[];if(c.renderer.linearAdSequenceRenderer)var u=function(A){A=O56(A.slotId,c,L,B(A),I,x,S);R=A.ajw;return A.Y3}; else if(c.renderer.instreamVideoAdRenderer)u=function(A){var b=A.slotId;A=B(A);var J=S,w=c.config.adPlacementConfig,C=qK$(w),y=C.eC,P=C.I_;C=c.renderer.instreamVideoAdRenderer;var ev;if(C==null?0:(ev=C.playerOverlay)==null?0:ev.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var X=hI(C,J);ev=Math.min(y+X.videoLengthSeconds*1E3,P);J=new mp(0,[X.videoLengthSeconds]);P=X.videoLengthSeconds;var oH=X.playerVars,rc=X.instreamAdPlayerOverlayRenderer,Sv=X.playerOverlayLayoutRenderer, tJ=X.adVideoId,cM=TL$(c),JJ=X.hK;X=X.NL;var yr=C==null?void 0:C.adLayoutLoggingData;C=C==null?void 0:C.sodarExtensionData;b=Vq(L.K.get(),"LAYOUT_TYPE_MEDIA",b);var cU={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",J7:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",hK:JJ,layoutExitNormalTriggers:[new Pw(L.X)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Mw:[],J7:"core",clientMetadata:new jp([new $m(I),new ry(P),new hl(oH),new tl(y),new OE(ev),rc&& new j3(rc),Sv&&new HC(Sv),new az(w),new pu(tJ),new N7(J),new z9(cM),C&&new uN(C),new Bv({current:null}),new T9({}),new wy(X)].filter(W$r)),wT:A(cU),adLayoutLoggingData:yr}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var t=MjM(e,I,c.adSlotLoggingData,u);h.push(t);for(var O=g.f(R),q=O.next();!q.done;q=O.next()){var T=q.value,W=T(e,B);if(W instanceof K)return W;h.push.apply(h,g.V(W))}}catch(A){return new K(A,{errorMessage:A.message,AdPlacementRenderer:c,numberOfSurveyRenderers:zyR(c)})}return h}; zyR=function(e){e=(e.renderer.linearAdSequenceRenderer||{}).linearAds;return e!=null&&e.length?e.filter(function(L){var c,I;return((c=g.Q(L,J8))==null?void 0:(I=c.playerOverlay)==null?void 0:I.instreamSurveyAdRenderer)!=null}).length:0}; O56=function(e,L,c,I,B,x,S){var h=L.config.adPlacementConfig,R=qK$(h),u=R.eC,t=R.I_;R=(L.renderer.linearAdSequenceRenderer||{}).linearAds;if(R==null||!R.length)throw new TypeError("Expected linear ads");var O=[],q={hg:u,iC:0,pRS:O};R=R.map(function(W){return vj$(e,W,q,c,I,h,B,t,S)}).map(function(W,A){A=new mp(A,O); return W(A)}); var T=R.map(function(W){return W.uY}); return{Y3:fGf(c,e,u,T,h,TL$(L),I,t,x),ajw:R.map(function(W){return W.sOw})}}; vj$=function(e,L,c,I,B,x,S,h,R){var u=hI(g.Q(L,J8),R),t=c.hg,O=c.iC,q=Math.min(t+u.videoLengthSeconds*1E3,h);c.hg=q;c.iC++;c.pRS.push(u.videoLengthSeconds);var T,W,A=(T=g.Q(L,J8))==null?void 0:(W=T.playerOverlay)==null?void 0:W.instreamSurveyAdRenderer;if(u.adVideoId==="nPpU29QrbiU"&&A==null)throw new TypeError("Survey slate media has no survey overlay");return function(b){cF(u.playerVars,b);var J,w,C=u.videoLengthSeconds,y=u.playerVars,P=u.hK,ev=u.NL,X=u.instreamAdPlayerOverlayRenderer,oH=u.playerOverlayLayoutRenderer, rc=u.adVideoId,Sv=(J=g.Q(L,J8))==null?void 0:J.adLayoutLoggingData;J=(w=g.Q(L,J8))==null?void 0:w.sodarExtensionData;w=Vq(I.K.get(),"LAYOUT_TYPE_MEDIA",e);var tJ={layoutId:w,layoutType:"LAYOUT_TYPE_MEDIA",J7:"adapter"};b={layoutId:w,layoutType:"LAYOUT_TYPE_MEDIA",hK:P,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Mw:[],J7:"adapter",clientMetadata:new jp([new $m(S),new ry(C),new hl(y),new tl(t),new OE(q),new qj(O),new Bv({current:null}), X&&new j3(X),oH&&new HC(oH),new az(x),new pu(rc),new N7(b),J&&new uN(J),A&&new Dw(A),new T9({}),new wy(ev)].filter(W$r)),wT:B(tJ),adLayoutLoggingData:Sv};C=tjv(g.Q(L,J8),x,S,b.layoutId,I);return{uY:b,sOw:C}}}; hI=function(e,L){if(!e)throw new TypeError("Expected instream video ad renderer");if(!e.playerVars)throw new TypeError("Expected player vars in url encoded string");var c=dW(e.playerVars),I=Number(c.length_seconds);if(isNaN(I))throw new TypeError("Expected valid length seconds in player vars");var B=Number(e.trimmedMaxNonSkippableAdDurationMs);I=isNaN(B)?I:Math.min(I,B/1E3);B=e.playerOverlay||{};B=B.instreamAdPlayerOverlayRenderer===void 0?null:B.instreamAdPlayerOverlayRenderer;var x=e.playerOverlay|| {};x=x.playerOverlayLayoutRenderer===void 0?null:x.playerOverlayLayoutRenderer;var S=c.video_id;S||(S=(S=e.externalVideoId)?S:void 0);if(!S)throw new TypeError("Expected valid video id in IVAR");if(L&&I===0){var h;L=(h=APn[S])!=null?h:I}else L=I;return{playerVars:c,videoLengthSeconds:L,instreamAdPlayerOverlayRenderer:B,playerOverlayLayoutRenderer:x,adVideoId:S,hK:e.pings?r4(e.pings):new Map,NL:Sc(e.pings)}}; TL$=function(e){e=Number(e.driftRecoveryMs);return isNaN(e)||e<=0?null:e}; qK$=function(e){var L=e.adTimeOffset||{};e=L.offsetEndMilliseconds;L=Number(L.offsetStartMilliseconds);if(isNaN(L))throw new TypeError("Expected valid start offset");e=Number(e);if(isNaN(e))throw new TypeError("Expected valid end offset");return{eC:L,I_:e}}; F$n=function(e){var L,c=(L=Hv(e.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:L.current;if(!c)return null;L=Hv(e.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var I=e.layoutId,B=Hv(e.clientMetadata,"metadata_type_content_cpn"),x=Hv(e.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),S=Hv(e.clientMetadata,"metadata_type_player_underlay_renderer"),h=Hv(e.clientMetadata,"metadata_type_ad_placement_config"),R=Hv(e.clientMetadata,"metadata_type_video_length_seconds"); var u=y0(e.clientMetadata,"metadata_type_layout_enter_ms")&&y0(e.clientMetadata,"metadata_type_layout_exit_ms")?(Hv(e.clientMetadata,"metadata_type_layout_exit_ms")-Hv(e.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{n8:I,contentCpn:B,ou:c,gV:L,instreamAdPlayerOverlayRenderer:x,instreamAdPlayerUnderlayRenderer:S,adPlacementConfig:h,videoLengthSeconds:R,e3:u,inPlayerLayoutId:Hv(e.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Hv(e.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; GAf=function(e,L,c,I,B,x,S,h,R,u,t,O,q,T,W){I=YH(I,"SLOT_TYPE_PLAYER_BYTES");e=b56(B,e,S,c,I,R,u);if(e instanceof K)return e;var A;u=(A=Hv(e.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:A.layoutId;if(!u)return new K("Invalid adNotify layout");L=i5x(u,B,x,c,h,L,R,t,O,q,T,W,S);return L instanceof K?L:[e].concat(g.V(L))}; i5x=function(e,L,c,I,B,x,S,h,R,u,t,O,q){c=gjR(L,c,I,x,S,h,R,u,t,O,q);if(c instanceof K)return c;e=kAc(L,e,S,B,c);return e instanceof K?e:[].concat(g.V(e.wZ),[e.fA])}; wlT=function(e,L,c,I,B,x,S,h,R,u,t,O,q,T){L=gjR(e,L,c,B,x,h,R,u,t,O,q,T);if(L instanceof K)return L;e=DRM(e,c,x,S,I,h.Wy,L);return e instanceof K?e:e.wZ.concat(e.fA)}; gjR=function(e,L,c,I,B,x,S,h,R,u,t,O){var q=Ru(I,c,u);return q instanceof $K?new K(q):u.V.S().experiments.N0("html5_refactor_in_player_slot_generation")?function(T){var W=new mp(0,[q.M4]);T=JPT(L,q.layoutId,q.jT,c,uV(q.playerVars,q.hY,x,R,W),q.M4,B,W,S(T),h.get(q.jT.externalVideoId),O);W=[];if(q.jT.playerOverlay.instreamAdPlayerOverlayRenderer){var A=F$n(T);if(!A)return Ir("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,T),{layout:T,wZ:[]}; W=[Vj6(e,A.contentCpn,A.n8,function(J){return tI(L,J.slotId,"core",A,EE(t,J))},A.inPlayerSlotId)].concat(g.V(W)); if(A.instreamAdPlayerUnderlayRenderer&&Oy(u)){var b=A.instreamAdPlayerUnderlayRenderer;W=[CGc(e,A.contentCpn,A.n8,function(J){return aGR(L,J.slotId,b,A.adPlacementConfig,A.n8,EE(t,J))})].concat(g.V(W))}}return{layout:T, wZ:W}}:function(T){var W=new mp(0,[q.M4]); return{layout:JPT(L,q.layoutId,q.jT,c,uV(q.playerVars,q.hY,x,R,W),q.M4,B,W,S(T),h.get(q.jT.externalVideoId),O),wZ:[]}}}; Ru=function(e,L,c){if(!e.playerVars)return new $K("No playerVars available in InstreamVideoAdRenderer.");var I,B;if(e.elementId==null||e.playerVars==null||e.playerOverlay==null||((I=e.playerOverlay)==null?void 0:I.instreamAdPlayerOverlayRenderer)==null&&((B=e.playerOverlay)==null?void 0:B.playerOverlayLayoutRenderer)==null||e.pings==null||e.externalVideoId==null)return new $K("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:e});I=dW(e.playerVars);B=Number(I.length_seconds); isNaN(B)&&(B=0,Ir("Expected valid length seconds in player vars but got NaN"));if(c.Ry(L.kind==="AD_PLACEMENT_KIND_START")){if(e.layoutId===void 0)return new $K("Expected server generated layout ID in instreamVideoAdRenderer");L=e.layoutId}else L=e.elementId;return{layoutId:L,jT:e,playerVars:I,hY:e.playerVars,M4:B}}; uV=function(e,L,c,I,B){e.iv_load_policy=I;L=dW(L);if(L.cta_conversion_urls)try{e.cta_conversion_urls=JSON.parse(L.cta_conversion_urls)}catch(x){Ir(x)}c.s9&&(e.ctrl=c.s9);c.Ne&&(e.ytr=c.Ne);c.CY&&(e.ytrcc=c.CY);c.isMdxPlayback&&(e.mdx="1");e.vvt&&(e.vss_credentials_token=e.vvt,c.Xd&&(e.vss_credentials_token_type=c.Xd),c.mdxEnvironment&&(e.mdx_environment=c.mdxEnvironment));cF(e,B);return e}; NL6=function(e){var L=new Map;e=g.f(e);for(var c=e.next();!c.done;c=e.next())(c=c.value.renderer.remoteSlotsRenderer)&&c.hostElementId&&L.set(c.hostElementId,c);return L}; qS=function(e){return e.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; mRc=function(e){return e!=null}; lG$=function(e,L,c,I,B,x,S,h,R,u,t,O,q,T){for(var W=[],A=g.f(e),b=A.next();!b.done;b=A.next())if(b=b.value,!kpM(b)&&!Cev(b)){var J=qS(b)&&!!b.slotEntryTrigger.beforeContentVideoIdStartedTrigger,w=R.Ry(J),C=yPr(b,u,I,c.NS,w);if(C instanceof K)return C;var y=void 0,P={slotId:b.adSlotMetadata.slotId,slotType:b.adSlotMetadata.slotType,slotPhysicalPosition:(y=b.adSlotMetadata.slotPhysicalPosition)!=null?y:1,J7:"core",slotEntryTrigger:C.slotEntryTrigger,slotFulfillmentTriggers:C.slotFulfillmentTriggers, slotExpirationTriggers:C.slotExpirationTriggers},ev=g.Q(b.fulfillmentContent.fulfilledLayout,mG);if(ev){if(!Nb(ev))return new K("Invalid PlayerBytesAdLayoutRenderer");y=O&&!(qS(b)&&b.slotEntryTrigger.beforeContentVideoIdStartedTrigger);C=C.slotFulfillmentTriggers.some(function(X){return X instanceof QX}); w=y?Z5H(P,b.adSlotMetadata.triggerEvent,ev,c,I,x,u,e,w,q,C,T):plM(P,b.adSlotMetadata.triggerEvent,ev,L,c,I,B,x,S,h,R,u,e,t,w,b.adSlotMetadata.triggeringSourceLayoutId);if(w instanceof K)return w;C=[];qS(b)&&C.push(new Nj({lw:qS(b)&&!!b.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));y&&C.push(new T9({}));c.Wy&&C.push(new kK({}));C.push(new CR(J));b=Object.assign({},P,{clientMetadata:new jp(C),fulfilledLayout:w.layout,adSlotLoggingData:b.adSlotMetadata.adSlotLoggingData});W.push.apply(W,g.V(w.wZ)); W.push(b)}else if(J=g.Q(b.fulfillmentContent.fulfilledLayout,jm)){if(!gE$(J))return new K("Invalid PlayerUnderlayAdLayoutRenderer");J=$RJ(J,I,c.NS,x,P,b.adSlotMetadata.triggerEvent,b.adSlotMetadata.triggeringSourceLayoutId);if(J instanceof K)return J;b=Object.assign({},P,{clientMetadata:new jp([]),fulfilledLayout:J,adSlotLoggingData:b.adSlotMetadata.adSlotLoggingData});W.push(b)}else if(J=g.Q(b.fulfillmentContent.fulfilledLayout,wET)){if(!z_6(J))return new K("Invalid AboveFeedAdLayoutRenderer");J= j8n(J,I,c.NS,x,P,b.adSlotMetadata.triggerEvent,b.adSlotMetadata.triggeringSourceLayoutId);if(J instanceof K)return J;b=Object.assign({},P,{clientMetadata:new jp([]),fulfilledLayout:J,adSlotLoggingData:b.adSlotMetadata.adSlotLoggingData});W.push(b)}else if(J=g.Q(b.fulfillmentContent.fulfilledLayout,JDv)){if(!s5(J.adLayoutMetadata)||!g.Q(J.renderingContent,vf))return new K("Invalid BelowPlayerAdLayoutRenderer");J=j8n(J,I,c.NS,x,P,b.adSlotMetadata.triggerEvent,b.adSlotMetadata.triggeringSourceLayoutId); if(J instanceof K)return J;b=Object.assign({},P,{clientMetadata:new jp([]),fulfilledLayout:J,adSlotLoggingData:b.adSlotMetadata.adSlotLoggingData});W.push(b)}else if(J=g.Q(b.fulfillmentContent.fulfilledLayout,Hf)){if(!ZC(J))return new K("Invalid PlayerBytesSequenceItemAdLayoutRenderer");J=H5n(J,I,c.NS,x,P,b.adSlotMetadata.triggerEvent);if(J instanceof K)return J;b=Object.assign({},P,{clientMetadata:new jp([]),fulfilledLayout:J,adSlotLoggingData:b.adSlotMetadata.adSlotLoggingData});W.push(b)}else return new K("Unable to retrieve a client slot ["+ P.slotType+"] from a given AdSlotRenderer")}return W}; H5n=function(e,L,c,I,B,x){var S={layoutId:e.adLayoutMetadata.layoutId,layoutType:e.adLayoutMetadata.layoutType,J7:"core"};L=TY(e,L,c);return L instanceof K?L:(c=g.Q(e.renderingContent,yN))&&c.pings?Object.assign({},S,{renderingContent:e.renderingContent,hK:r4(c.pings)},L,{wT:EE(I,B)(S),clientMetadata:new jp([new az(WF(x))]),adLayoutLoggingData:e.adLayoutMetadata.adLayoutLoggingData}):new K("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")}; j8n=function(e,L,c,I,B,x,S){var h={layoutId:e.adLayoutMetadata.layoutId,layoutType:e.adLayoutMetadata.layoutType,J7:"core"};L=TY(e,L,c);if(L instanceof K)return L;c=[];c.push(new az(WF(x)));x==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&S!==void 0&&c.push(new nu(S));return Object.assign({},h,{renderingContent:e.renderingContent,hK:new Map([["impression",PGn(e)]])},L,{wT:EE(I,B)(h),clientMetadata:new jp(c),adLayoutLoggingData:e.adLayoutMetadata.adLayoutLoggingData})}; $RJ=function(e,L,c,I,B,x,S){if(e.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(S=g.Q(e.renderingContent,pP))if(S=g.Q(S.sidePanel,iin)){var h={layoutId:e.adLayoutMetadata.layoutId,layoutType:e.adLayoutMetadata.layoutType,J7:"core"};L=TY(e,L,c);e=L instanceof K?L:Object.assign({},h,{renderingContent:e.renderingContent,hK:new Map([["impression",S.impressionPings||[]],["resume",S.resumePings||[]]])},L,{wT:EE(I,B)(h),clientMetadata:new jp([new az(WF(x))]),adLayoutLoggingData:e.adLayoutMetadata.adLayoutLoggingData})}else e= new K("DismissablePanelTextPortraitImageRenderer is missing");else e=new K("SqueezebackPlayerSidePanelRenderer is missing");else e.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.Q(e.renderingContent,ADH)?(S={layoutId:e.adLayoutMetadata.layoutId,layoutType:e.adLayoutMetadata.layoutType,J7:"core"},L=TY(e,L,c),e=L instanceof K?L:Object.assign({},S,{renderingContent:e.renderingContent,hK:new Map},L,{wT:EE(I,B)(S),clientMetadata:new jp([new az(WF(x))]),adLayoutLoggingData:e.adLayoutMetadata.adLayoutLoggingData})): e=new K("CounterfactualRenderer is missing"):e.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?e=new K("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):e.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?e=new K("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):e.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.Q(e.renderingContent,$P)?(x={layoutId:e.adLayoutMetadata.layoutId,layoutType:e.adLayoutMetadata.layoutType, J7:"core"},L=TY(e,L,c),e=L instanceof K?L:S?Object.assign({},x,{renderingContent:e.renderingContent,hK:new Map},L,{wT:EE(I,B)(x),clientMetadata:new jp([new nu(S)]),adLayoutLoggingData:e.adLayoutMetadata.adLayoutLoggingData}):new K("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):e=new K("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):e.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.Q(e.renderingContent,FQc)? (x={layoutId:e.adLayoutMetadata.layoutId,layoutType:e.adLayoutMetadata.layoutType,J7:"core"},L=TY(e,L,c),e=L instanceof K?L:Object.assign({},x,{renderingContent:e.renderingContent,hK:new Map([])},L,{wT:EE(I,B)(x),adLayoutLoggingData:e.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new jp([])})):e=new K("AdsEngagementPanelSectionListViewModel is missing"):e=new K("LayoutType ["+e.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return e}; Z5H=function(e,L,c,I,B,x,S,h,R,u,t,O){if((O==null?void 0:O.Zz)===void 0||(O==null?void 0:O.Kw)===void 0)return new K("Cached ad break range from cue point is missing");var q=TY(c,B,I.NS);if(q instanceof K)return q;q={layoutExitMuteTriggers:[],layoutExitNormalTriggers:q.layoutExitNormalTriggers,layoutExitSkipTriggers:[],Mw:[],layoutExitUserInputSubmittedTriggers:[]};if(g.Q(c.renderingContent,J8))return e=Q8n(e,L,c,q,B,x,h,R,I.NS,S,O.Zz,O.Kw),e instanceof K?e:e.Cb===void 0?new K("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:e.layout,wZ:[e.Cb]};var T=g.Q(c.renderingContent,DC);if(T){if(!s5(c.adLayoutMetadata))return new K("Invalid ad layout metadata");if(!wK(T))return new K("Invalid sequential layout");T=T.sequentialLayouts.map(function(W){return W.playerBytesAdLayoutRenderer}); e=dRr(e,L,c,q,T,B,I,x,S,R,h,u,O.Zz,O.Kw,t);return e instanceof K?e:{layout:e.Rb,wZ:e.wZ}}return new K("Not able to convert a sequential layout")}; dRr=function(e,L,c,I,B,x,S,h,R,u,t,O,q,T,W){var A=URM(B,q,T);if(A instanceof K)return A;var b=[],J=[];A=g.f(A);for(var w=A.next();!w.done;w=A.next()){var C=w.value;w=e;var y=B[C.iC],P=C,ev=L;C=x;var X=S,oH=h,rc=R,Sv=u,tJ=t,cM=MS(y);if(cM instanceof K)w=cM;else{var JJ={layoutId:y.adLayoutMetadata.layoutId,layoutType:y.adLayoutMetadata.layoutType,J7:"adapter"};P=EjM(ev,y,P,C);P instanceof K?w=P:(w=Object.assign({},JJ,zY,{hK:cM,renderingContent:y.renderingContent,clientMetadata:new jp(P),wT:EE(oH,w)(JJ), adLayoutLoggingData:y.adLayoutMetadata.adLayoutLoggingData}),w=(y=sy(tJ,w,C,X.NS,oH,rc,Sv,void 0,!0))?y instanceof K?y:{layout:w,Cb:y}:new K("Expecting associatedInPlayerSlot"))}if(w instanceof K)return w;b.push(w.layout);J.push(w.Cb)}B={layoutId:c.adLayoutMetadata.layoutId,layoutType:c.adLayoutMetadata.layoutType,J7:"core"};L=[new z9(Number(c.driftRecoveryMs)),new tl(q),new OE(T),new az(WF(L)),new V0(O),new T9({})];W&&L.push(new mu({}));return{Rb:Object.assign({},B,I,{EA:b,hK:new Map,clientMetadata:new jp(L), wT:EE(h,e)(B)}),wZ:J}}; Q8n=function(e,L,c,I,B,x,S,h,R,u,t,O){if(!Nb(c))return new K("Invalid PlayerBytesAdLayoutRenderer");var q=MS(c);if(q instanceof K)return q;var T={layoutId:c.adLayoutMetadata.layoutId,layoutType:c.adLayoutMetadata.layoutType,J7:"core"},W=g.Q(c.renderingContent,J8);if(!W)return new K("Invalid rendering content for DAI media layout");W=hI(W,!1);t={IG:W,iC:0,hg:t,TW:Math.min(t+W.videoLengthSeconds*1E3,O),o2:new mp(0,[W.videoLengthSeconds])};var A;O=(A=Number(c.driftRecoveryMs))!=null?A:void 0;L=EjM(L, c,t,B,O);if(L instanceof K)return L;e=Object.assign({},T,I,{hK:q,renderingContent:c.renderingContent,clientMetadata:new jp(L),wT:EE(x,e)(T),adLayoutLoggingData:c.adLayoutMetadata.adLayoutLoggingData});return(B=sy(S,e,B,R,x,u,h,void 0,!0))?B instanceof K?B:{layout:e,Cb:B}:new K("Expecting associatedInPlayerSlot")}; plM=function(e,L,c,I,B,x,S,h,R,u,t,O,q,T,W,A){var b=TY(c,x,B.NS);if(b instanceof K)return b;if(g.Q(c.renderingContent,J8)){R=Xl$([c],B,R);if(R instanceof K)return R;if(R.length!==1)return new K("Only expected one media layout.");e=K$r(e,L,c,b,R[0],void 0,"core",I,x,S,h,u,q,T,W,B.NS,O,void 0,A);return e instanceof K?e:{layout:e.layout,wZ:e.Cb?[e.Cb]:[]}}var J=g.Q(c.renderingContent,DC);if(J){if(!s5(c.adLayoutMetadata))return new K("Invalid ad layout metadata");if(!wK(J))return new K("Invalid sequential layout"); J=J.sequentialLayouts.map(function(w){return w.playerBytesAdLayoutRenderer}); e=YKr(e,L,c.adLayoutMetadata,b,J,I,x,B,R,S,h,u,t,O,W,q,T,A);return e instanceof K?e:{layout:e.Rb,wZ:e.wZ}}return new K("Not able to convert a sequential layout")}; YKr=function(e,L,c,I,B,x,S,h,R,u,t,O,q,T,W,A,b,J){var w=new ZU({current:null}),C=Xl$(B,h,R);if(C instanceof K)return C;R=[];for(var y=[],P=void 0,ev=0;ev0&&(ev.push(J),ev.push(new y8(P.adPodSkipTarget)));(x=u.get(P.externalVideoId))&&ev.push(new Al(x));x=ev}else x= new K("Invalid vod media renderer")}if(x instanceof K)return x;e=Object.assign({},S,I,{hK:C,renderingContent:c.renderingContent,clientMetadata:new jp(x),wT:EE(t,e)(S),adLayoutLoggingData:c.adLayoutMetadata.adLayoutLoggingData});c=g.Q(c.renderingContent,J8);if(!c||!kP(c))return new K("Invalid meida renderer");O=BF(O,c.externalVideoId);O.instreamVideoAdRenderer=c;O.lS="AD_PLACEMENT_KIND_START";return T?(R=sy(q,e,R,A,t,b,W,J,!1),R instanceof K?R:LyJ(e.layoutId,q)&&R?{layout:Object.assign({},e,{clientMetadata:new jp(x.concat(new Q8(R)))})}: {layout:e,Cb:R}):{layout:e}}; njR=function(e,L,c,I,B){if(!Nb(L))return new K("Invalid PlayerBytesAdLayoutRenderer");var x=g.Q(L.renderingContent,Q1);if(!x||x.durationMilliseconds===void 0)return new K("Invalid endcap renderer");var S={layoutId:L.adLayoutMetadata.layoutId,layoutType:L.adLayoutMetadata.layoutType,J7:"adapter"};I=[new bN(x.durationMilliseconds),new gy({impressionCommands:void 0,abandonCommands:x.abandonCommands?[{commandExecutorCommand:x.abandonCommands}]:void 0,completeCommands:x.completionCommands}),new az(I), new LR("LAYOUT_TYPE_ENDCAP")];if(B){I.push(new my(B.o2.adPodIndex-1));I.push(new qj(B.o2.adPodIndex));var h;I.push(new y8((h=B.adPodSkipTarget)!=null?h:-1))}return Object.assign({},S,zY,{renderingContent:L.renderingContent,clientMetadata:new jp(I),hK:x.skipPings?new Map([["skip",x.skipPings]]):new Map,wT:EE(c,e)(S),adLayoutLoggingData:L.adLayoutMetadata.adLayoutLoggingData})}; sy=function(e,L,c,I,B,x,S,h,R){e=e.filter(function(O){return O.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&O.adSlotMetadata.triggeringSourceLayoutId===L.layoutId}); if(e.length!==0){if(e.length!==1)return new K("Invalid InPlayer slot association for the given PlayerBytes layout");e=e[0];S=yPr(e,x,c,I,S);if(S instanceof K)return S;var u;x={slotId:e.adSlotMetadata.slotId,slotType:e.adSlotMetadata.slotType,slotPhysicalPosition:(u=e.adSlotMetadata.slotPhysicalPosition)!=null?u:1,J7:"core",slotEntryTrigger:S.slotEntryTrigger,slotFulfillmentTriggers:S.slotFulfillmentTriggers,slotExpirationTriggers:S.slotExpirationTriggers};u=g.Q(e.fulfillmentContent.fulfilledLayout, DvJ);if(!u||!fec(u))return new K("Invalid InPlayerAdLayoutRenderer");S={layoutId:u.adLayoutMetadata.layoutId,layoutType:u.adLayoutMetadata.layoutType,J7:"core"};c=TY(u,c,I);if(c instanceof K)return c;I=[];var t=u.adLayoutMetadata.layoutType;R&&I.push(new T9({}));if(t==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")I.push.apply(I,g.V(cAv(e.adSlotMetadata.triggerEvent,L)));else if(t==="LAYOUT_TYPE_ENDCAP"||t==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED"){I.push(new az(WF(e.adSlotMetadata.triggerEvent))); if(t==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED")return new K("Cannot parse endcap layout since AdUxReadyApi is not provided");h&&I.push(h)}else return new K("Not able to parse an SDF InPlayer layout");B=Object.assign({},S,c,{renderingContent:u.renderingContent,hK:new Map,wT:EE(B,x)(S),clientMetadata:new jp(I),adLayoutLoggingData:u.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},x,{fulfilledLayout:B,clientMetadata:new jp([])})}}; cAv=function(e,L){var c=[];c.push(new az(WF(e)));c.push(new nu(L.layoutId));(e=Hv(L.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&c.push(new Bv(e));(e=Hv(L.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&c.push(new ZU(e));(e=Hv(L.clientMetadata,"metadata_type_remote_slots_data"))&&c.push(new Al(e));(e=Hv(L.clientMetadata,"metadata_type_ad_next_params"))&&c.push(new Gd(e));(e=Hv(L.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&c.push(new gf(e));(e= Hv(L.clientMetadata,"metadata_type_ad_pod_info"))&&c.push(new N7(e));(L=Hv(L.clientMetadata,"metadata_type_ad_video_id"))&&c.push(new pu(L));return c}; eEM=function(e,L,c,I,B,x){function S(u){return vF(L,u)} var h=I.yP.inPlayerSlotId,R={layoutId:I.yP.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",J7:"core"};c={slotId:h,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,J7:"core",slotEntryTrigger:new js(S,e),slotFulfillmentTriggers:[new IV(S,h)],slotExpirationTriggers:[new Bf(S,h),new em(S,c)]};e=Object.assign({},R,{layoutExitNormalTriggers:[new lP(S,e)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Mw:[],hK:new Map,clientMetadata:new jp([new UQ(I.yP), new az(I.adPlacementConfig),B]),wT:EE(x,c)(R),adLayoutLoggingData:I.yP.adLayoutLoggingData});return Object.assign({},c,{clientMetadata:new jp([new sE(e)])})}; LyJ=function(e,L){L=g.f(L);for(var c=L.next();!c.done;c=L.next())if(c=c.value,c.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var I=g.Q(c.fulfillmentContent.fulfilledLayout,jm);if(I&&(I=g.Q(I.renderingContent,pP))&&I.associatedPlayerBytesLayoutId===e)return c}}; yPr=function(e,L,c,I,B){var x=IU$(Lh(e.slotEntryTrigger,c,I),B,e,L);if(x instanceof K)return x;for(var S=[],h=g.f(e.slotFulfillmentTriggers),R=h.next();!R.done;R=h.next()){R=Lh(R.value,c,I);if(R instanceof K)return R;S.push(R)}S=Bfn(S,B,e,L);L=[];e=g.f(e.slotExpirationTriggers);for(B=e.next();!B.done;B=e.next()){B=Lh(B.value,c,I);if(B instanceof K)return B;L.push(B)}return{slotEntryTrigger:x,slotFulfillmentTriggers:S,slotExpirationTriggers:L}}; IU$=function(e,L,c,I){return L&&c.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&e instanceof yX?new Nm(function(B){return vF(I,B)},c.adSlotMetadata.slotId):e}; Bfn=function(e,L,c,I){return L&&c.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?e.map(function(B){return B instanceof IV?new Sm(function(x){return vF(I,x)},c.adSlotMetadata.slotId):B}):e}; TY=function(e,L,c){for(var I=[],B=g.f(e.layoutExitNormalTriggers||[]),x=B.next();!x.done;x=B.next()){x=Lh(x.value,L,c);if(x instanceof K)return x;I.push(x)}B=[];x=g.f(e.layoutExitSkipTriggers||[]);for(var S=x.next();!S.done;S=x.next()){S=Lh(S.value,L,c);if(S instanceof K)return S;B.push(S)}x=[];S=g.f(e.layoutExitMuteTriggers||[]);for(var h=S.next();!h.done;h=S.next()){h=Lh(h.value,L,c);if(h instanceof K)return h;x.push(h)}S=[];e=g.f(e.layoutExitUserInputSubmittedTriggers||[]);for(h=e.next();!h.done;h= e.next()){h=Lh(h.value,L,c);if(h instanceof K)return h;S.push(h)}return{layoutExitNormalTriggers:I,layoutExitSkipTriggers:B,layoutExitMuteTriggers:x,layoutExitUserInputSubmittedTriggers:S,Mw:[]}}; MS=function(e){var L=g.Q(e.renderingContent,J8);if(L==null?0:L.pings)return r4(L.pings);e=g.Q(e.renderingContent,Q1);return(e==null?0:e.skipPings)?new Map([["skip",e.skipPings]]):new Map}; EjM=function(e,L,c,I,B){L=g.Q(L.renderingContent,J8);if(!L)return new K("Invalid rendering content for DAI media layout");e=[new $m(I),new ry(c.IG.videoLengthSeconds),new hl(c.IG.playerVars),new tl(c.hg),new OE(c.TW),new qj(c.iC),new az(WF(e)),new pu(c.IG.adVideoId),new N7(c.o2),L.sodarExtensionData&&new uN(L.sodarExtensionData),new Bv({current:null}),new T9({}),new wy(Sc(L.pings))].filter(mRc);B!==void 0&&e.push(new z9(B));return e}; URM=function(e,L,c){e=e.map(function(R){return hI(g.Q(R.renderingContent,J8),!1)}); var I=e.map(function(R){return R.videoLengthSeconds}),B=I.map(function(R,u){return new mp(u,I)}),x=L,S=c,h=[]; e.forEach(function(R,u){S=Math.min(x+R.videoLengthSeconds*1E3,c);cF(R.playerVars,B[u]);h.push({IG:R,hg:x,TW:S,iC:u,o2:B[u]});x=S}); return h}; Xl$=function(e,L,c){for(var I=[],B=g.f(e),x=B.next();!x.done;x=B.next())if(x=g.Q(x.value.renderingContent,J8)){if(!kP(x))return new K("Invalid vod media renderer");I.push(x76(x))}B=I.map(function(O){return O.M4}); x=[];for(var S=0,h=0;h0?Sv:-1;else if(JJ= g.Q(cM,Q1)){cM=Wyr(e,L,c,JJ,x,A,h,X,Sv);if(cM instanceof K){T=cM;break a}cM=cM(q);b.push(cM.yZ);J=[].concat(g.V(cM.uC),g.V(J));w=[].concat(g.V(cM.UE),g.V(w));cM.Cb&&(rc=[cM.Cb].concat(g.V(rc)))}else if(JJ=g.Q(cM,CP)){if(T===void 0){T=new K("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:JJ});break a}cM=szf(e,L,c,x,JJ,ev,h,T,A,Jz(t,"supports_multi_step_on_desktop"));if(cM instanceof K){T=cM;break a}cM=cM(q);b.push(cM.yZ);cM.Cb&&rc.push(cM.Cb); J=[].concat(g.V(cM.uC),g.V(J));w=[].concat(g.V(cM.UE),g.V(w));C=[].concat(g.V(cM.GB),g.V(C));y=[].concat(g.V(cM.eg),g.V(y));P=[ev].concat(g.V(P))}else if(cM=g.Q(cM,aV)){cM=vmJ(e,L,c,x,cM,ev,h,A);if(cM instanceof K){T=cM;break a}cM=cM(q);b.push(cM.yZ);cM.Cb&&rc.push(cM.Cb);w=[].concat(g.V(cM.UE),g.V(w))}else{T=new K("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}T={EA:b,layoutExitSkipTriggers:J,layoutExitUserInputSubmittedTriggers:C,Mw:y,layoutExitMuteTriggers:w,Ka:P,wZ:rc}}}else a:if(A= kdv(I,c,t),A instanceof K)T=A;else{b=0;J=[];w=[];C=[];y=[];P=[];ev=[];X=new xK({current:null});oH=new ZU({current:null});rc=!1;tJ=[];Sv=-1;W=g.f(I);for(cM=W.next();!cM.done;cM=W.next())if(cM=cM.value,g.Q(cM,VN)){cM=M3n(L,c,g.Q(cM,VN),h);if(cM instanceof K){T=cM;break a}cM=cM(q);J.push(cM.yZ);w=[].concat(g.V(cM.uC),g.V(w));C=[].concat(g.V(cM.UE),g.V(C));cM.Cb&&(tJ=[cM.Cb].concat(g.V(tJ)))}else if(g.Q(cM,J8)){Sv=Ru(g.Q(cM,J8),c,t);if(Sv instanceof $K){T=new K(Sv);break a}cM=new mp(b,A);cM=D7M(L,Sv.layoutId, Sv.jT,c,uV(Sv.playerVars,Sv.hY,S,u,cM),Sv.M4,x,cM,h(q),oH,R.get(Sv.jT.externalVideoId),void 0,O);b++;J.push(cM.yZ);w=[].concat(g.V(cM.uC),g.V(w));C=[].concat(g.V(cM.UE),g.V(C));rc||(ev.push(oH),rc=!0);Sv=(Sv=Sv.jT.adPodSkipTarget)&&Sv>0?Sv:-1}else if(g.Q(cM,Q1)){cM=Wyr(e,L,c,g.Q(cM,Q1),x,b,h,oH,Sv);if(cM instanceof K){T=cM;break a}cM=cM(q);J.push(cM.yZ);w=[].concat(g.V(cM.uC),g.V(w));C=[].concat(g.V(cM.UE),g.V(C));cM.Cb&&(tJ=[cM.Cb].concat(g.V(tJ)))}else if(g.Q(cM,CP)){if(T===void 0){T=new K("Composite Survey must already have a Survey Bundle with required metadata.", {instreamSurveyAdRenderer:g.Q(cM,CP)});break a}cM=szf(e,L,c,x,g.Q(cM,CP),X,h,T,b,Jz(t,"supports_multi_step_on_desktop"));if(cM instanceof K){T=cM;break a}cM=cM(q);J.push(cM.yZ);cM.Cb&&tJ.push(cM.Cb);w=[].concat(g.V(cM.uC),g.V(w));C=[].concat(g.V(cM.UE),g.V(C));y=[].concat(g.V(cM.GB),g.V(y));P=[].concat(g.V(cM.eg),g.V(P));ev=[X].concat(g.V(ev))}else if(g.Q(cM,aV)){cM=vmJ(e,L,c,x,g.Q(cM,aV),X,h,b);if(cM instanceof K){T=cM;break a}cM=cM(q);J.push(cM.yZ);cM.Cb&&tJ.push(cM.Cb);C=[].concat(g.V(cM.UE),g.V(C))}else{T= new K("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}T={EA:J,layoutExitSkipTriggers:w,layoutExitUserInputSubmittedTriggers:y,Mw:P,layoutExitMuteTriggers:C,Ka:ev,wZ:tJ}}T instanceof K?q=T:(P=q.slotId,A=T.EA,b=T.layoutExitSkipTriggers,J=T.layoutExitMuteTriggers,w=T.layoutExitUserInputSubmittedTriggers,C=T.Ka,q=h(q),y=B?B.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",P=B?B.layoutId:Vq(L.K.get(),y,P),ev={layoutId:P,layoutType:y,J7:"core"},q={layout:{layoutId:P,layoutType:y,hK:new Map, layoutExitNormalTriggers:[new nL(L.X,P)],layoutExitSkipTriggers:b,layoutExitMuteTriggers:J,layoutExitUserInputSubmittedTriggers:w,Mw:[],J7:"core",clientMetadata:new jp([new oW(A)].concat(g.V(C))),wT:q(ev)},wZ:T.wZ});return q}}; kdv=function(e,L,c){var I=[];e=g.f(e);for(var B=e.next();!B.done;B=e.next())if(B=B.value,g.Q(B,J8)){B=Ru(g.Q(B,J8),L,c);if(B instanceof $K)return new K(B);I.push(B.M4)}return I}; JA$=function(e,L,c,I,B,x,S,h){if(!N_x(c,h===void 0?!1:h))return new K("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:c});var R=ou(c);if(R<=0)return new K("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c});var u=new xK({current:null}),t=oj$(e,L,c,u,I,x,S);return wCJ(e,I,x,R,B,function(O,q){var T=O.slotId,W=S2(c);O=S(O);var A,b=(A=bV(L,I,c.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?A: Vq(L.K.get(),"LAYOUT_TYPE_MEDIA_BREAK",T);T={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",J7:"core"};A=t(b,q);var J=Hv(A.clientMetadata,"metadata_type_fulfilled_layout");J||Ir("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");W=[new az(I),new bN(R),new gy(W),u];J&&W.push(new LR(J.layoutType));return{fE:{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",hK:new Map,layoutExitNormalTriggers:[new nL(L.X,b)],layoutExitSkipTriggers:[new cf(L.X, q.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new Wf(L.X,q.layoutId)],Mw:[],J7:"core",clientMetadata:new jp(W),wT:O(T)},mp:A}})}; V3r=function(e){if(!Zin(e))return!1;var L=g.Q(e.adVideoStart,DL);return L?g.Q(e.linearAd,J8)&&GU(L)?!0:(Ir("Invalid Sandwich with notify"),!1):!1}; CIM=function(e){if(e.linearAds==null)return!1;e=g.Q(e.adStart,DL);return e?GU(e)?!0:(Ir("Invalid LASR with notify"),!1):!1}; aUT=function(e){if(!yD6(e))return!1;e=g.Q(e.adStart,DL);return e?GU(e)?!0:(Ir("Invalid LASR with notify"),!1):!1}; w2=function(e,L,c,I,B,x,S,h,R,u){this.G=e;this.K=L;this.X=c;this.ZY=I;this.hm=B;this.Z=x;this.Be=S;this.vg=h;this.nj=R;this.loadPolicy=u===void 0?1:u}; nP=function(e,L,c,I,B,x,S,h,R,u){var t=[];if(L.length===0&&I.length===0&&c.length===0)return t;L=L.filter(gK);var O=c.filter(Vic),q=I.filter(gK),T=new Map,W=NL6(L),A=c.some(function(yr){var cU;return(yr==null?void 0:(cU=yr.adSlotMetadata)==null?void 0:cU.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),b=c.some(function(yr){var cU; return(yr==null?void 0:(cU=yr.adSlotMetadata)==null?void 0:cU.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),J=c.some(function(yr){var cU; return(yr==null?void 0:(cU=yr.adSlotMetadata)==null?void 0:cU.slotType)==="SLOT_TYPE_IN_PLAYER"}),w=c.some(function(yr){var cU,$N; return(yr==null?void 0:(cU=yr.adSlotMetadata)==null?void 0:cU.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(yr==null?void 0:($N=yr.adSlotMetadata)==null?void 0:$N.slotType)==="SLOT_TYPE_ABOVE_FEED"}); c=c.some(function(yr){var cU;return(yr==null?void 0:(cU=yr.adSlotMetadata)==null?void 0:cU.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); if(A||b||J||w||c)u=lG$(O,L,h,B,W,e.hm.get(),e.loadPolicy,T,e.ZY.get(),e.G.get(),J,S,R,u),u instanceof K?Ir(u,void 0,void 0,{contentCpn:B}):t.push.apply(t,g.V(u));u=g.f(L);for(c=u.next();!c.done;c=u.next())c=c.value,b=NfJ(e,T,c,B,x,S,A,h,W,R,O),b instanceof K?Ir(b,void 0,void 0,{renderer:c.renderer,config:c.config.adPlacementConfig,kind:c.config.adPlacementConfig.kind,contentCpn:B,daiEnabled:S}):t.push.apply(t,g.V(b));m7H(e.ZY.get())||(x=yAR(e,q,B,h,W,T),t.push.apply(t,g.V(x)));if(e.Z===null||S&&!h.LN){var C, y,P;e=h.Wy&&L.length===1&&((C=L[0].config)==null?void 0:(y=C.adPlacementConfig)==null?void 0:y.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((P=L[0].renderer)==null?void 0:P.adBreakServiceRenderer);if(!t.length&&!e){var ev,X,oH,rc;Ir("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":L.length,contentCpn:B,"first APR kind":(ev=L[0])==null?void 0:(X=ev.config)==null?void 0:(oH=X.adPlacementConfig)==null?void 0:oH.kind,renderer:(rc=L[0])==null?void 0: rc.renderer})}return t}C=I.filter(gK);t.push.apply(t,g.V(IG$(T,C,e.K.get(),e.Z,B,A)));if(!t.length){var Sv,tJ,cM,JJ;Ir("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":L.length,contentCpn:B,daiEnabled:S.toString(),"first APR kind":(Sv=L[0])==null?void 0:(tJ=Sv.config)==null?void 0:(cM=tJ.adPlacementConfig)==null?void 0:cM.kind,renderer:(JJ=L[0])==null?void 0:JJ.renderer})}return t}; yAR=function(e,L,c,I,B,x){function S(q){return EE(e.hm.get(),q)} var h=[];L=g.f(L);for(var R=L.next();!R.done;R=L.next()){R=R.value;var u=R.renderer,t=u.sandwichedLinearAdRenderer,O=u.linearAdSequenceRenderer;t&&V3r(t)?(Ir("Found AdNotify with SandwichedLinearAdRenderer"),O=g.Q(t.adVideoStart,DL),t=g.Q(t.linearAd,J8),Iu(x,u,R.config.adPlacementConfig.kind),u=void 0,O=i5x((u=O)==null?void 0:u.layout.layoutId,e.K.get(),e.X.get(),R.config.adPlacementConfig,R.adSlotLoggingData,t,c,I,S,B,e.loadPolicy,e.ZY.get(),e.hm.get()),O instanceof K?Ir(O):h.push.apply(h,g.V(O))): O&&(!O.adLayoutMetadata&&CIM(O)||O.adLayoutMetadata&&aUT(O))&&(Ir("Found AdNotify with LinearAdSequenceRenderer"),Iu(x,u,R.config.adPlacementConfig.kind),u=void 0,t=fUc((u=g.Q(O.adStart,DL))==null?void 0:u.layout.layoutId,e.K.get(),e.X.get(),R.config.adPlacementConfig,R.adSlotLoggingData,O.linearAds,s5(O.adLayoutMetadata)?O.adLayoutMetadata:void 0,c,I,S,B,e.loadPolicy,e.ZY.get()),t instanceof K?Ir(t):h.push.apply(h,g.V(t)))}return h}; NfJ=function(e,L,c,I,B,x,S,h,R,u,t){function O(J){return EE(e.hm.get(),J)} var q=c.renderer,T=c.config.adPlacementConfig,W=T.kind,A=c.adSlotLoggingData,b=h.LN&&W==="AD_PLACEMENT_KIND_START";b=x&&!b;if(q.adsEngagementPanelRenderer!=null)return xz(L,c.elementId,W,q.adsEngagementPanelRenderer.isContentVideoEngagementPanel,q.adsEngagementPanelRenderer.adVideoId,q.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,T,A,function(J,w,C,y){var P=e.X.get(),ev=J.slotId,X=q.adsEngagementPanelRenderer;J=EE(e.hm.get(),J);return JI(P,ev,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new bI(X),w,C,X.impressionPings,J,q.adsEngagementPanelRenderer.adLayoutLoggingData,y)}),[]; if(q.adsEngagementPanelLayoutViewModel)return xz(L,c.elementId,W,q.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,q.adsEngagementPanelLayoutViewModel.adVideoId,q.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,T,A,function(J,w,C,y){var P=e.X.get(),ev=J.slotId,X=q.adsEngagementPanelLayoutViewModel;J=EE(e.hm.get(),J);return VF(P,ev,"LAYOUT_TYPE_PANEL",new iI(X),w,C,J,q.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,y)}),[]; if(q.actionCompanionAdRenderer!=null){if(q.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return Yv6(e.K.get(),e.Z,e.X.get(),q.actionCompanionAdRenderer,T,A,I,O);xz(L,c.elementId,W,q.actionCompanionAdRenderer.isContentVideoCompanion,q.actionCompanionAdRenderer.adVideoId,q.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,T,A,function(J,w,C,y){var P=e.X.get(),ev=J.slotId,X=q.actionCompanionAdRenderer;J=EE(e.hm.get(),J);return JI(P,ev,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new AA(X),w,C,X.impressionPings,J,q.actionCompanionAdRenderer.adLayoutLoggingData,y)})}else if(q.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(q.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return nE$(e.K.get(),e.Z,e.X.get(),q.topBannerImageTextIconButtonedLayoutViewModel,T,A,I,O); xz(L,c.elementId,W,q.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,q.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,q.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,T,A,function(J,w,C,y){var P=e.X.get(),ev=J.slotId,X=q.topBannerImageTextIconButtonedLayoutViewModel;J=EE(e.hm.get(),J);return VF(P,ev,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new Fr(X),w,C,J,q.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,y)})}else if(q.imageCompanionAdRenderer)xz(L, c.elementId,W,q.imageCompanionAdRenderer.isContentVideoCompanion,q.imageCompanionAdRenderer.adVideoId,q.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,T,A,function(J,w,C,y){var P=e.X.get(),ev=J.slotId,X=q.imageCompanionAdRenderer; J=EE(e.hm.get(),J);return JI(P,ev,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new DU(X),w,C,X.impressionPings,J,q.imageCompanionAdRenderer.adLayoutLoggingData,y)}); else if(q.bannerImageLayoutViewModel)xz(L,c.elementId,W,q.bannerImageLayoutViewModel.isContentVideoCompanion,q.bannerImageLayoutViewModel.adVideoId,q.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,T,A,function(J,w,C,y){var P=e.X.get(),ev=J.slotId,X=q.bannerImageLayoutViewModel;J=EE(e.hm.get(),J);return VF(P,ev,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new wf(X),w,C,J,q.bannerImageLayoutViewModel.adLayoutLoggingData,y)}); else if(q.shoppingCompanionCarouselRenderer)xz(L,c.elementId,W,q.shoppingCompanionCarouselRenderer.isContentVideoCompanion,q.shoppingCompanionCarouselRenderer.adVideoId,q.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,T,A,function(J,w,C,y){var P=e.X.get(),ev=J.slotId,X=q.shoppingCompanionCarouselRenderer;J=EE(e.hm.get(),J);return JI(P,ev,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new JA(X),w,C,X.impressionPings,J,q.shoppingCompanionCarouselRenderer.adLayoutLoggingData,y)}); else if(q.adBreakServiceRenderer){if(!XEc(c))return[];if(W==="AD_PLACEMENT_KIND_PAUSE")return EEM(e.K.get(),T,A,c.renderer.adBreakServiceRenderer,I);if(W!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&W!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return Uvn(e.K.get(),T,A,c.renderer.adBreakServiceRenderer,I,B,x);h.Wy||Ir("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:W,adPlacementConfig:T,daiEnabledForContentVideo:String(x),isServedFromLiveInfra:String(h.Wy),clientPlaybackNonce:h.clientPlaybackNonce}); if(W==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!e.Be)return new K("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!e.nj)return new K("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");e.nj.Jt({adPlacementRenderer:c,contentCpn:I,NS:B});B=e.Be.get().getCurrentTimeSec(1,!1);return Zu6(e.K.get(),c.renderer.adBreakServiceRenderer,T,B,I,A,x)}if(!e.vg)return new K("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); e.vg.Jt({adPlacementRenderer:c,contentCpn:I,NS:B})}else{if(q.clientForecastingAdRenderer)return hEf(e.K.get(),e.X.get(),T,A,q.clientForecastingAdRenderer,I,B,O);if(q.invideoOverlayAdRenderer)return Ouc(e.K.get(),e.X.get(),T,A,q.invideoOverlayAdRenderer,I,B,O);if(q.instreamAdPlayerOverlayRenderer)return urr(e.K.get(),e.X.get(),T,A,q.instreamAdPlayerOverlayRenderer,I,O);if((q.linearAdSequenceRenderer||q.instreamVideoAdRenderer)&&b)return s8c(e.K.get(),e.X.get(),c,I,O,u,!e.ZY.get().V.S().Y("html5_override_ad_video_length_killswitch")); if(q.linearAdSequenceRenderer&&!b){if(S)return[];Iu(L,q,W);if(q.linearAdSequenceRenderer.adLayoutMetadata){if(!yD6(q.linearAdSequenceRenderer))return new K("Received invalid LinearAdSequenceRenderer.")}else if(q.linearAdSequenceRenderer.linearAds==null)return new K("Received invalid LinearAdSequenceRenderer.");if(g.Q(q.linearAdSequenceRenderer.adStart,DL)){Ir("Found AdNotify in LinearAdSequenceRenderer");c=g.Q(q.linearAdSequenceRenderer.adStart,DL);if(!sNM(c))return new K("Invalid AdMessageRenderer."); x=q.linearAdSequenceRenderer.linearAds;return AAf(e.G.get(),e.K.get(),e.X.get(),e.hm.get(),T,A,c,s5(q.linearAdSequenceRenderer.adLayoutMetadata)?q.linearAdSequenceRenderer.adLayoutMetadata:void 0,x,I,B,h,O,R,e.loadPolicy,e.ZY.get())}return gmn(e.K.get(),e.X.get(),T,A,q.linearAdSequenceRenderer.linearAds,s5(q.linearAdSequenceRenderer.adLayoutMetadata)?q.linearAdSequenceRenderer.adLayoutMetadata:void 0,I,B,h,O,R,e.loadPolicy,e.ZY.get(),t)}if(!q.remoteSlotsRenderer||x){if(q.instreamVideoAdRenderer&& !b){if(S)return[];Iu(L,q,W);return wlT(e.K.get(),e.X.get(),T,A,q.instreamVideoAdRenderer,I,B,h,O,R,e.loadPolicy,e.ZY.get(),e.hm.get(),t)}if(q.instreamSurveyAdRenderer)return JA$(e.K.get(),e.X.get(),q.instreamSurveyAdRenderer,T,A,I,O,Jz(e.ZY.get(),"supports_multi_step_on_desktop"));if(q.sandwichedLinearAdRenderer!=null)return Zin(q.sandwichedLinearAdRenderer)?g.Q(q.sandwichedLinearAdRenderer.adVideoStart,DL)?(Ir("Found AdNotify in SandwichedLinearAdRenderer"),c=g.Q(q.sandwichedLinearAdRenderer.adVideoStart, DL),sNM(c)?(x=g.Q(q.sandwichedLinearAdRenderer.linearAd,J8))?GAf(c,x,T,e.G.get(),e.K.get(),e.X.get(),e.hm.get(),A,I,B,h,O,R,e.loadPolicy,e.ZY.get()):new K("Missing IVAR from Sandwich"):new K("Invalid AdMessageRenderer.")):gmn(e.K.get(),e.X.get(),T,A,[q.sandwichedLinearAdRenderer.adVideoStart,q.sandwichedLinearAdRenderer.linearAd],void 0,I,B,h,O,R,e.loadPolicy,e.ZY.get()):new K("Received invalid SandwichedLinearAdRenderer.");if(q.videoAdTrackingRenderer!=null)return SQT(e.K.get(),e.X.get(),q.videoAdTrackingRenderer, T,A,I,B,h.O9,O)}}return[]}; Ch=function(e,L,c,I,B,x,S,h){g.p.call(this);var R=this;this.K=e;this.Z=L;this.Jq=I;this.Be=B;this.ZY=x;this.Tm=S;this.aI=h;this.X=null;c.get().addListener(this);this.addOnDisposeCallback(function(){c.We()||c.get().removeListener(R)}); I.get().addListener(this);this.addOnDisposeCallback(function(){I.We()||I.get().removeListener(R)})}; mM=function(e,L,c){var I=e.Be.get().getCurrentTimeSec(1,!1);e.ZY.get().V.S().oT()&&T5(e.Tm.get(),"sdai","onopp.1;evt."+c.event+";start."+c.startSecs.toFixed(3)+";d."+c.jW.toFixed(3));KC(e.K.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var B=e.Z.get(),x=L.adPlacementRenderer.renderer.adBreakServiceRenderer,S=L.contentCpn,h=L.adPlacementRenderer.adSlotLoggingData,R=au(e.ZY.get()),u=e.Tm;if(B.ZY.get().V.S().experiments.N0("enable_smearing_expansion_dai")){var t=B.ZY.get();t=g.X3(t.V.S().experiments, "max_prefetch_window_sec_for_livestream_optimization");R=B.ZY.get();var O=g.X3(R.V.S().experiments,"min_prefetch_offset_sec_for_livestream_optimization");R={mf:pCc(c),zn:!1,cueProcessedMs:I*1E3};var q=c.startSecs+c.jW;if(I===0)R.Mk=new Tl(0,q*1E3);else{O=c.startSecs-O;var T=O-I;R.Mk=T<=0?new Tl(O*1E3,q*1E3):new Tl(Math.floor(I+Math.random()*Math.min(T,t))*1E3,q*1E3)}t=R}else t={mf:pCc(c),zn:!1},q=c.startSecs+c.jW,c.startSecs<=I?R=new Tl((c.startSecs-4)*1E3,q*1E3):(O=Math.max(0,c.startSecs-I-10),R= new Tl(Math.floor(I+Math.random()*(R?I===0?0:Math.min(O,5):O))*1E3,q*1E3)),t.Mk=R;x=e2(B,x,S,t,h,[new Sp(c)]);NS(B.ZY.get())&&T5(u.get(),"abrsm","cpi."+c.identifier+";cps."+c.startSecs+";cpd."+c.jW+";cts."+I+";rbf."+t.Mk.start);u.get().V.Wo(c.startSecs-I,t.Mk.start/1E3-I);return[x]})}; yF=function(e){var L,c=(L=Hv(e.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:L.current;if(!c)return null;L=Hv(e.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var I=e.layoutId,B=Hv(e.clientMetadata,"metadata_type_content_cpn"),x=Hv(e.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),S=Hv(e.clientMetadata,"metadata_type_player_overlay_layout_renderer"),h=Hv(e.clientMetadata,"metadata_type_player_underlay_renderer"),R=Hv(e.clientMetadata, "metadata_type_ad_placement_config"),u=Hv(e.clientMetadata,"metadata_type_video_length_seconds");var t=y0(e.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?Hv(e.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):y0(e.clientMetadata,"metadata_type_layout_enter_ms")&&y0(e.clientMetadata,"metadata_type_layout_exit_ms")?(Hv(e.clientMetadata,"metadata_type_layout_exit_ms")-Hv(e.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{n8:I,contentCpn:B,ou:c,gV:L,instreamAdPlayerOverlayRenderer:x, playerOverlayLayoutRenderer:S,instreamAdPlayerUnderlayRenderer:h,adPlacementConfig:R,videoLengthSeconds:u,e3:t,inPlayerLayoutId:Hv(e.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Hv(e.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; jzM=function(e,L){return $7M(e,L)}; Huc=function(e,L){L=$7M(e,L);if(!L)return null;var c;L.e3=(c=Hv(e.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:c.adBreakRemainingLengthSeconds;return L}; $7M=function(e,L){var c,I=(c=Hv(e.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:c.current;if(!I)return null;c=Snr(e,L);return{Uu:oun(e,L),adPlacementConfig:Hv(e.clientMetadata,"metadata_type_ad_placement_config"),kE:c,contentCpn:Hv(e.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:Hv(e.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Hv(e.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:Hv(e.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,e3:void 0,ou:I,n8:e.layoutId,videoLengthSeconds:Hv(e.clientMetadata,"metadata_type_video_length_seconds")}}; ZL=function(e,L,c,I,B,x,S,h,R){g.p.call(this);this.G=e;this.j=L;this.B=c;this.Z=I;this.X=B;this.K=x;this.hm=S;this.ZY=h;this.M0=R;this.x4=!0}; lUc=function(e,L,c){return CGc(e.X.get(),L.contentCpn,L.n8,function(I){return aGR(e.K.get(),I.slotId,c,L.adPlacementConfig,L.n8,EE(e.hm.get(),I))})}; ph=function(e,L,c,I,B,x,S,h){g.p.call(this);this.K=e;this.X=L;this.Z=c;this.ZY=I;this.G=B;this.M0=x;this.Be=S;this.Uq=h}; $z=function(e){g.p.call(this);this.X=e}; KC=function(e,L,c,I){e.X().Aj(L,I);c=c();e=e.X();e.Mx.E4("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",L,I,c);L=g.f(c);for(c=L.next();!c.done;c=L.next())a:{I=e;c=c.value;I.Mx.K6("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",c);I.Mx.K6("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var B=I.X;if(g.J_(c.slotId))throw new K("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(Bq(B,c))throw new K("Duplicate registration for slot.",{slotId:c.slotId,slotEntryTriggerType:c.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!B.OV.I4.has(c.slotType))throw new K("No fulfillment adapter factory registered for slot of type: "+c.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!B.OV.d4.has(c.slotType))throw new K("No SlotAdapterFactory registered for slot of type: "+c.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");fC(B,"TRIGGER_CATEGORY_SLOT_ENTRY",c.slotEntryTrigger?[c.slotEntryTrigger]:[]);fC(B,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", c.slotFulfillmentTriggers);fC(B,"TRIGGER_CATEGORY_SLOT_EXPIRATION",c.slotExpirationTriggers);var x=I.X,S=c.slotType+"_"+c.slotPhysicalPosition,h=Wq(x,S);if(Bq(x,c))throw new K("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");h.set(c.slotId,new nvn(c));x.X.set(S,h)}catch(oH){oH instanceof K&&oH.Bc?(I.Mx.eF("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",oH.Bc,c),Ir(oH,c,void 0,void 0,oH.vK)):(I.Mx.eF("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", c),Ir(oH,c));break a}Bq(I.X,c).j=!0;try{var R=I.X,u=Bq(R,c),t=c.slotEntryTrigger,O=R.OV.De.get(t.triggerType);O&&(O.mA("TRIGGER_CATEGORY_SLOT_ENTRY",t,c,null),u.Gm.set(t.triggerId,O));for(var q=g.f(c.slotFulfillmentTriggers),T=q.next();!T.done;T=q.next()){var W=T.value,A=R.OV.De.get(W.triggerType);A&&(A.mA("TRIGGER_CATEGORY_SLOT_FULFILLMENT",W,c,null),u.pS.set(W.triggerId,A))}for(var b=g.f(c.slotExpirationTriggers),J=b.next();!J.done;J=b.next()){var w=J.value,C=R.OV.De.get(w.triggerType);C&&(C.mA("TRIGGER_CATEGORY_SLOT_EXPIRATION", w,c,null),u.D.set(w.triggerId,C))}var y=R.OV.I4.get(c.slotType).get().build(R.Z,c);u.T=y;var P=R.OV.d4.get(c.slotType).get().build(R.B,c);P.init();u.K=P}catch(oH){oH instanceof K&&oH.Bc?(I.Mx.eF("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",oH.Bc,c),Ir(oH,c,void 0,void 0,oH.vK)):(I.Mx.eF("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",c),Ir(oH,c));LC(I,c,!0);break a}I.Mx.K6("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);I.X.lm(c);for(var ev=g.f(I.K),X=ev.next();!X.done;X= ev.next())X.value.lm(c);Sh(I,c)}}; j2=function(e,L,c,I,B){g.p.call(this);var x=this;this.K=e;this.Z=L;this.K9=c;this.context=B;this.X=new Map;I.get().addListener(this);this.addOnDisposeCallback(function(){I.We()||I.get().removeListener(x)})}; jNr=function(e,L){var c=0x8000000000000;var I=0;for(var B=g.f(L.slotFulfillmentTriggers),x=B.next();!x.done;x=B.next())x=x.value,x instanceof EJ?(c=Math.min(c,x.X.start),I=Math.max(I,x.X.end)):Ir("Found unexpected fulfillment trigger for throttled slot.",L,null,{fulfillmentTrigger:x});I=new Tl(c,I);c="throttledadcuerange:"+L.slotId;e.X.set(c,L);e.K9.get().addCueRange(c,I.start,I.end,!1,e);oK(e.context.ZY.get())&&(L=I.start,I=I.end,B={},e.context.SG.Z6("tcrr",(B.cid=c,B.sm=L,B.em=I,B)))}; HF=function(){g.p.apply(this,arguments);this.x4=!0;this.ZJ=new Map;this.X=new Map}; lV=function(e,L){e=g.f(e.ZJ.values());for(var c=e.next();!c.done;c=e.next())if(c.value.layoutId===L)return!0;return!1}; PF=function(e,L){e=g.f(e.X.values());for(var c=e.next();!c.done;c=e.next()){c=g.f(c.value);for(var I=c.next();!I.done;I=c.next())if(I=I.value,I.layoutId===L)return I}Ir("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.J_(L)),layoutId:L})}; PIH=function(){this.X=new Map}; QzR=function(e,L){this.callback=e;this.slot=L}; QF=function(){}; d7n=function(e,L,c){this.callback=e;this.slot=L;this.Be=c}; U7f=function(e,L,c){this.callback=e;this.slot=L;this.Be=c;this.K=!1;this.X=0}; Emn=function(e,L,c){this.callback=e;this.slot=L;this.Be=c}; d2=function(e){this.Be=e}; Uy=function(e){g.p.call(this);this.e$=e;this.u5=new Map}; Ey=function(e,L){for(var c=[],I=g.f(e.u5.values()),B=I.next();!B.done;B=I.next()){B=B.value;var x=B.trigger;x instanceof Wf&&x.triggeringLayoutId===L&&c.push(B)}c.length?OZ(e.e$(),c):Ir("Survey is submitted but no registered triggers can be activated.")}; Xm=function(e,L,c){Uy.call(this,e);var I=this;this.ZY=c;L.get().addListener(this);this.addOnDisposeCallback(function(){L.We()||L.get().removeListener(I)})}; Kh=function(e){g.p.call(this);this.X=e;this.x4=!0;this.u5=new Map;this.B=new Set;this.Z=new Set;this.G=new Set;this.j=new Set;this.K=new Set}; Yz=function(e){g.p.call(this);this.X=e;this.u5=new Map}; nh=function(e,L){for(var c=[],I=g.f(e.u5.values()),B=I.next();!B.done;B=I.next())B=B.value,B.trigger.X===L.layoutId&&c.push(B);c.length&&OZ(e.X(),c)}; eX=function(e,L,c){g.p.call(this);var I=this;this.X=e;this.context=c;this.u5=new Map;L.get().addListener(this);this.addOnDisposeCallback(function(){L.We()||L.get().removeListener(I)})}; Lb=function(e,L,c,I,B){g.p.call(this);var x=this;this.K=e;this.K9=L;this.Be=c;this.M0=I;this.context=B;this.x4=!0;this.u5=new Map;this.X=new Set;c.get().addListener(this);this.addOnDisposeCallback(function(){c.We()||c.get().removeListener(x)})}; XCf=function(e,L,c,I,B,x,S,h,R,u){if(w1(e.M0.get(),1).clientPlaybackNonce!==R)throw new K("Cannot register CueRange-based trigger for different content CPN",{trigger:c});e.u5.set(c.triggerId,{Yq:new zU(L,c,I,B),cueRangeId:x});e.K9.get().addCueRange(x,S,h,u,e);oK(e.context.ZY.get())&&(R={},e.context.SG.Z6("crr",(R.ca=L,R.tt=c.triggerType,R.st=I.slotType,R.lt=B==null?void 0:B.layoutType,R.cid=x,R.sm=S,R.em=h,R)))}; Kyc=function(e,L){e=g.f(e.u5.entries());for(var c=e.next();!c.done;c=e.next()){var I=g.f(c.value);c=I.next().value;I=I.next().value;if(L===I.cueRangeId)return c}return""}; c$=function(e,L){g.p.call(this);var c=this;this.G=e;this.K=new Map;this.Z=new Map;this.X=null;L.get().addListener(this);this.addOnDisposeCallback(function(){L.We()||L.get().removeListener(c)}); var I;this.X=((I=L.get().qR)==null?void 0:I.slotId)||null}; YQr=function(e,L){var c=[];e=g.f(e.values());for(var I=e.next();!I.done;I=e.next())I=I.value,I.slot.slotId===L&&c.push(I);return c}; Ih=function(e){g.p.call(this);this.X=e;this.x4=!0;this.u5=new Map}; x9=function(e,L,c){L=L.layoutId;for(var I=[],B=g.f(e.u5.values()),x=B.next();!x.done;x=B.next())if(x=x.value,x.trigger instanceof nL){var S;if(S=x.trigger.layoutId===L){S=c;var h=Qpv.get(x.category);S=h?h===S:!1}S&&I.push(x)}I.length&&OZ(e.X(),I)}; B$=function(e){g.p.call(this);this.X=e;this.x4=!0;this.u5=new Map}; xB=function(e,L,c,I,B,x){g.p.call(this);var S=this;this.j=e;this.Jq=L;this.Be=c;this.Tm=I;this.vg=x;this.X=null;this.G=!1;this.x4=!0;this.u5=new Map;L.get().addListener(this);this.addOnDisposeCallback(function(){L.We()||L.get().removeListener(S)}); B.get().addListener(this);this.addOnDisposeCallback(function(){B.We()||B.get().removeListener(S)})}; LuR=function(e){e.X&&(e.G=!0,e.K&&(e.K.stop(),e.K.start()),nmx(e,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"),T5(e.Tm.get(),"ads_ce","bdc."+e96(e).length))}; nmx=function(e,L){for(var c=[],I=g.f(e.u5.values()),B=I.next();!B.done;B=I.next())B=B.value,B.trigger.triggerType===L&&c.push(B);c.length>0&&OZ(e.j(),c)}; oh=function(e,L,c,I,B){for(var x=[],S=g.f(e.u5.values()),h=S.next();!h.done;h=S.next()){var R=h=h.value,u=R.trigger;R=R.slot;if(u.triggerType===L){if(u instanceof QX||u instanceof dh||u instanceof Xa){if(B&&u.breakDurationMs!==c)continue;if(!B&&u.breakDurationMs===c)continue;if(I.has(R.slotId))continue}x.push(h)}}x.length>0&&OZ(e.j(),x)}; clr=function(e,L){L=(L.jW+1)*1E3;var c=void 0;e=g.f(e.u5.values());for(var I=e.next();!I.done;I=e.next()){var B=I.value;I=B.trigger;B=B.slot;I instanceof QX&&I.breakDurationMs<=L&&(!c||I.breakDurationMs>c.trigger.breakDurationMs)&&(c={slot:B,trigger:I})}return c}; Iwn=function(e){e=e.adPlacementRenderer.config.adPlacementConfig;if(!e.prefetchModeConfig||!e.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;e=Number(e.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(e)||e<=0?0:Math.floor(Math.random()*e)}; ByJ=function(e){e=e.adPlacementRenderer.config.adPlacementConfig;if(e.prefetchModeConfig&&e.prefetchModeConfig.cacheFetchRefreshDurationMs&&(e=Number(e.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(e)||e<=0)))return e}; SX=function(e){e.X=null;e.u5.clear();e.K&&e.K.stop();e.B&&e.B.stop();var L;(L=e.Z)==null||L.stop();delete e.Z}; e96=function(e){var L=[];e=g.f(e.u5.values());for(var c=e.next();!c.done;c=e.next())c=c.value.trigger,c instanceof QX&&L.push(c.breakDurationMs);return L}; r8=function(e){g.p.call(this);this.Z=e;this.x4=!0;this.u5=new Map;this.X=new Map;this.K=new Map}; xjr=function(e,L){var c=[];if(L=e.X.get(L.layoutId)){L=g.f(L);for(var I=L.next();!I.done;I=L.next())(I=e.K.get(I.value.triggerId))&&c.push(I)}return c}; hR=function(e){g.p.call(this);this.X=e;this.u5=new Map}; oKM=function(e,L){for(var c=[],I=g.f(e.u5.values()),B=I.next();!B.done;B=I.next())B=B.value,B.trigger instanceof Nm&&B.trigger.slotId===L&&c.push(B);c.length>=1&&OZ(e.X(),c)}; SE$=function(e,L){var c={slotId:YH(L,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],J7:"surface",clientMetadata:new jp([])},I=Object,B=I.assign;L=Vq(L,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",c.slotId);L={layoutId:L,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",hK:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Mw:[],J7:"surface", clientMetadata:new jp([]),wT:pLr(!1,c.slotId,c.slotType,c.slotPhysicalPosition,c.J7,c.slotEntryTrigger,c.slotFulfillmentTriggers,c.slotExpirationTriggers,L,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return B.call(I,{},e,{XY:!0,slot:c,layout:L})}; dvM=function(e,L,c,I){var B=e.kind;I=I?!1:!e.hideCueRangeMarker;switch(B){case "AD_PLACEMENT_KIND_START":return I={mf:new Tl(-0x8000000000000,-0x8000000000000),zn:I},c!=null&&(I.Mk=new Tl(-0x8000000000000,-0x8000000000000)),I;case "AD_PLACEMENT_KIND_END":return I={mf:new Tl(0x7ffffffffffff,0x8000000000000),zn:I},c!=null&&(I.Mk=new Tl(Math.max(0,L-c),0x8000000000000)),I;case "AD_PLACEMENT_KIND_MILLISECONDS":B=e.adTimeOffset;B.offsetStartMilliseconds||Ir("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); B.offsetEndMilliseconds||Ir("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");e=Number(B.offsetStartMilliseconds);B=Number(B.offsetEndMilliseconds);B===-1&&(B=L);if(Number.isNaN(e)||Number.isNaN(B)||e>B)return new K("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:e,offsetEndMs:B},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",B===L&&e-500<=B);I={mf:new Tl(e,B),zn:I};if(c!=null){e=Math.max(0,e-c);if(e===B)return I;I.Mk=new Tl(e,B)}return I; default:return new K("AdPlacementKind not supported in convertToRange.",{kind:B,adPlacementConfig:e})}}; pCc=function(e){var L=e.startSecs*1E3;return new Tl(L,L+e.jW*1E3)}; rln=function(e){if(!e||!e.adPlacements&&!e.adSlots)return!1;for(var L=g.f(e.adPlacements||[]),c=L.next();!c.done;c=L.next())if(c=c.value)if(c=c.adPlacementRenderer,c!=null&&(c.config&&c.config.adPlacementConfig&&c.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;e=g.f(e.adSlots||[]);for(L=e.next();!L.done;L=e.next()){var I=c=void 0;if(((c=g.Q(L.value,YP))==null?void 0:(I=c.adSlotMetadata)==null?void 0:I.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; Rh=function(e){this.ZY=e;this.K=new Map;this.X=new Map;this.Z=new Map}; YH=function(e,L){if(us(e.ZY.get())){var c=e.K.get(L)||0;c++;e.K.set(L,c);return L+"_"+c}return g.Rp(16)}; Vq=function(e,L,c){if(us(e.ZY.get())){var I=e.X.get(L)||0;I++;e.X.set(L,I);return c+"_"+L+"_"+I}return g.Rp(16)}; vF=function(e,L){if(us(e.ZY.get())){var c=e.Z.get(L)||0;c++;e.Z.set(L,c);return L+"_"+c}return g.Rp(16)}; h9n=function(e){var L=[new nu(e.n8),new IW(e.ou),new az(e.adPlacementConfig),new ry(e.videoLengthSeconds),new F3(e.e3)];e.instreamAdPlayerOverlayRenderer&&L.push(new j3(e.instreamAdPlayerOverlayRenderer));e.playerOverlayLayoutRenderer&&L.push(new HC(e.playerOverlayLayoutRenderer));e.gV&&L.push(new ZU(e.gV));return L}; R96=function(e,L,c,I,B,x){e=c.inPlayerLayoutId?c.inPlayerLayoutId:Vq(x,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",e);var S,h,R=c.instreamAdPlayerOverlayRenderer?(S=c.instreamAdPlayerOverlayRenderer)==null?void 0:S.adLayoutLoggingData:(h=c.playerOverlayLayoutRenderer)==null?void 0:h.adLayoutLoggingData;S={layoutId:e,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",J7:L};return{layoutId:e,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",hK:new Map,layoutExitNormalTriggers:[new lP(function(u){return vF(x, u)},c.n8)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Mw:[],J7:L,clientMetadata:I,wT:B(S),adLayoutLoggingData:R}}; tR=function(e,L){var c=this;this.K=e;this.ZY=L;this.X=function(I){return vF(c.K.get(),I)}}; aGR=function(e,L,c,I,B,x){c=new jp([new lI(c),new az(I)]);L=Vq(e.K.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",L);I={layoutId:L,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",J7:"core"};return{layoutId:L,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",hK:new Map,layoutExitNormalTriggers:[new lP(function(S){return vF(e.K.get(),S)},B)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Mw:[],J7:"core",clientMetadata:c,wT:x(I),adLayoutLoggingData:void 0}}; tI=function(e,L,c,I,B){var x=h9n(I);return R96(L,c,I,new jp(x),B,e.K.get())}; u3n=function(e,L,c,I,B){var x=h9n(I);x.push(new V8(I.Uu));x.push(new Cu(I.kE));return R96(L,c,I,new jp(x),B,e.K.get())}; JI=function(e,L,c,I,B,x,S,h,R,u){L=Vq(e.K.get(),c,L);var t={layoutId:L,layoutType:c,J7:"core"},O=new Map;S&&O.set("impression",S);S=[new KL(e.X,B,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];u&&S.push(new Hw(e.X,u,["normal"]));return{layoutId:L,layoutType:c,hK:O,layoutExitNormalTriggers:S,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Mw:[],J7:"core",clientMetadata:new jp([I,new az(x),new nu(B)]),wT:h(t),adLayoutLoggingData:R}}; VF=function(e,L,c,I,B,x,S,h,R){L=Vq(e.K.get(),c,L);var u={layoutId:L,layoutType:c,J7:"core"},t=[new KL(e.X,B,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];R&&t.push(new Hw(e.X,R,["normal"]));return{layoutId:L,layoutType:c,hK:new Map,layoutExitNormalTriggers:t,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Mw:[],J7:"core",clientMetadata:new jp([I,new az(x),new nu(B)]),wT:S(u),adLayoutLoggingData:h}}; AI=function(e,L,c){var I=[];I.push(new Y9(e.X,c));L&&I.push(L);return I}; fh=function(e,L,c,I,B,x,S){var h={layoutId:L,layoutType:c,J7:"core"};return{layoutId:L,layoutType:c,hK:new Map,layoutExitNormalTriggers:S,layoutExitSkipTriggers:[new ZO(e.X,L)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Mw:[],J7:"core",clientMetadata:new jp([new km(I),new az(B)]),wT:x(h),adLayoutLoggingData:I.adLayoutLoggingData}}; r2=function(e,L,c,I,B,x,S,h){var R={layoutId:L,layoutType:x,J7:"core"};return{layoutId:L,layoutType:x,hK:new Map,layoutExitNormalTriggers:[new lP(e.X,c)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Mw:[],J7:"core",clientMetadata:new jp([new az(I)].concat(g.V(S))),wT:B(R),adLayoutLoggingData:h}}; bV=function(e,L,c,I){if(e.ZY.get().Ry(L.kind==="AD_PLACEMENT_KIND_START"))if(c===void 0)Ir("Expected SSAP layout ID in renderer",void 0,void 0,{caller:I});else return c}; qQr=function(e,L,c,I,B,x,S,h,R,u,t,O,q){e=Fm(e,L,c,B,x,S,h,R,O,bV(e,c,I.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),q);L=e.Ka;c=new ep(e.x$);I=e.layoutExitSkipTriggers;u>0&&(L.push(c),L.push(new y8(u)),I=[]);L.push(new my(t));return{yZ:{layoutId:e.layoutId,layoutType:e.layoutType,hK:e.hK,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Mw:[],J7:e.J7,clientMetadata:new jp(L),wT:e.wT,adLayoutLoggingData:e.adLayoutLoggingData}, uC:I,UE:e.layoutExitMuteTriggers,GB:e.layoutExitUserInputSubmittedTriggers,eg:e.Mw,Cb:e.Cb}}; zEc=function(e,L,c,I,B,x,S,h,R,u){L=Fm(e,L,c,I,x,new Map,S,function(t){return h(t,R)},void 0,bV(e,c,B.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); e=new Wf(e.X,L.x$);c=new ep(L.x$);u=new my(u);return{yZ:{layoutId:L.layoutId,layoutType:L.layoutType,hK:L.hK,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Mw:[],J7:L.J7,clientMetadata:new jp([].concat(g.V(L.Ka),[c,u])),wT:L.wT,adLayoutLoggingData:L.adLayoutLoggingData},uC:L.layoutExitSkipTriggers,UE:L.layoutExitMuteTriggers,GB:[].concat(g.V(L.layoutExitUserInputSubmittedTriggers),[e]),eg:L.Mw,Cb:L.Cb}}; Fm=function(e,L,c,I,B,x,S,h,R,u,t){L=u!=null?u:Vq(e.K.get(),"LAYOUT_TYPE_MEDIA_BREAK",L);u={layoutId:L,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",J7:"adapter"};h=h(L);var O=Hv(h.clientMetadata,"metadata_type_fulfilled_layout");O||Ir("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var q=O?O.layoutId:"";c=[new az(c),new bN(I),new gy(B)];O&&c.push(new LR(O.layoutType));t&&c.push(new qj(t));return{layoutId:L,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", hK:x,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new cf(e.X,q)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Mw:[],J7:"adapter",Ka:c,wT:S(u),adLayoutLoggingData:R,Cb:h,x$:q}}; JPT=function(e,L,c,I,B,x,S,h,R,u,t){e=tpc(e,L,"core",c,I,B,x,S,h,R,u,void 0,t);return{layoutId:e.layoutId,layoutType:e.layoutType,hK:e.hK,layoutExitNormalTriggers:e.layoutExitNormalTriggers,layoutExitSkipTriggers:e.layoutExitSkipTriggers,layoutExitMuteTriggers:e.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:e.layoutExitUserInputSubmittedTriggers,Mw:e.Mw,J7:e.J7,clientMetadata:new jp(e.P0),wT:e.wT,adLayoutLoggingData:e.adLayoutLoggingData}}; D7M=function(e,L,c,I,B,x,S,h,R,u,t,O,q){L=tpc(e,L,"adapter",c,I,B,x,S,h,R,t,O,q);I=L.layoutExitSkipTriggers;B=L.P0;c.adPodSkipTarget&&c.adPodSkipTarget>0&&(B.push(u),B.push(new y8(c.adPodSkipTarget)),I=[]);B.push(new my(h.adPodIndex));c.isCritical&&(I=[new Hw(e.X,L.layoutId,["error"])].concat(g.V(I)));return{yZ:{layoutId:L.layoutId,layoutType:L.layoutType,hK:L.hK,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Mw:[],J7:L.J7,clientMetadata:new jp(B), wT:L.wT,adLayoutLoggingData:L.adLayoutLoggingData},uC:I,UE:L.layoutExitMuteTriggers,GB:L.layoutExitUserInputSubmittedTriggers,eg:L.Mw}}; tpc=function(e,L,c,I,B,x,S,h,R,u,t,O,q){var T={layoutId:L,layoutType:"LAYOUT_TYPE_MEDIA",J7:c};B=[new az(B),new N7(R),new pu(I.externalVideoId),new $m(h),new gy({impressionCommands:I.impressionCommands,abandonCommands:I.onAbandonCommands,completeCommands:I.completeCommands,progressCommands:I.adVideoProgressCommands}),new hl(x),new Bv({current:null}),new ry(S)];(x=I.playerOverlay.instreamAdPlayerOverlayRenderer)&&B.push(new j3(x));(S=I.playerOverlay.playerOverlayLayoutRenderer)&&B.push(new HC(S)); O&&B.push(new RW(O));(O=I.playerUnderlay)&&B.push(new lI(O));h=YH(e.K.get(),"SLOT_TYPE_IN_PLAYER");O=(O=x?x.elementId:S==null?void 0:S.layoutId)?O:Vq(e.K.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",h);B.push(new ep(O));B.push(new cv(h));B.push(new qj(R.adPodIndex));I.adNextParams&&B.push(new Gd(I.adNextParams));I.shrunkenPlayerBytesConfig&&B.push(new df(I.shrunkenPlayerBytesConfig));I.clickthroughEndpoint&&B.push(new gf(I.clickthroughEndpoint));I.legacyInfoCardVastExtension&&B.push(new iN(I.legacyInfoCardVastExtension)); I.sodarExtensionData&&B.push(new uN(I.sodarExtensionData));t&&B.push(new Al(t));B.push(new wy(Sc(I.pings)));R=r4(I.pings);if(q){a:{q=g.f(q);for(t=q.next();!t.done;t=q.next())if(t=t.value,t.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(x=g.Q(t.fulfillmentContent.fulfilledLayout,jm))&&(x=g.Q(x.renderingContent,pP))&&x.associatedPlayerBytesLayoutId===L){q=t;break a}q=void 0}q&&B.push(new PC(q))}return{layoutId:L,layoutType:"LAYOUT_TYPE_MEDIA",hK:R,layoutExitNormalTriggers:[new nL(e.X,L)],layoutExitSkipTriggers:I.skipOffsetMilliseconds? [new cf(e.X,O)]:[],layoutExitMuteTriggers:[new cf(e.X,O)],layoutExitUserInputSubmittedTriggers:[],Mw:[],J7:c,P0:B,wT:u(T),adLayoutLoggingData:I.adLayoutLoggingData}}; fGf=function(e,L,c,I,B,x,S,h,R){I.every(function(t){return Zw(t,[],["LAYOUT_TYPE_MEDIA"])})||Ir("Unexpect subLayout type for DAI composite layout"); L=Vq(e.K.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",L);var u={layoutId:L,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",J7:"core"};return{layoutId:L,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",hK:new Map,layoutExitNormalTriggers:[new Pw(e.X)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Mw:[],J7:"core",clientMetadata:new jp([new tl(c),new OE(h),new oW(I),new az(B),new z9(x),new T9({}),new V0(R)]),wT:S(u)}}; W$r=function(e){return e!=null}; OT=function(e,L,c){var I=this;this.K=e;this.Z=L;this.ZY=c;this.X=function(B){return vF(I.K.get(),B)}}; Zu6=function(e,L,c,I,B,x,S){if(!c.prefetchModeConfig)return new K("AdPlacementConfig for Live Prefetch is missing prefetch_config");c=c.prefetchModeConfig;I*=1E3;var h=[];if(!c.breakLengthMs)return new K("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var R=g.f(c.breakLengthMs),u=R.next();!u.done;u=R.next())if(u=u.value,Number(u)>0){var t=I+Number(c.startTimeOffsetMs),O=t+Number(c.cacheFetchSmearingDurationMs);u={mf:new Tl(O,O+Number(u)),zn:!1,Mk:new Tl(Math.floor(t+Math.random()* Number(c.cacheFetchSmearingDurationMs)),O),cueProcessedMs:I?I:t};t=[];t.push(new mu({}));O=[];O.push(new LP(e.X));O.push(new SvM(e.X));S&&t.push(new T9({}));h.push(e2(e,L,B,u,x,t,O))}return h}; e2=function(e,L,c,I,B,x,S){x=x===void 0?[]:x;var h=YH(e.K.get(),"SLOT_TYPE_AD_BREAK_REQUEST");S||(S=[],I.Mk&&I.Mk.start!==I.mf.start&&S.push(new EJ(e.X,c,new Tl(I.Mk.start,I.mf.start),!1)),S.push(new EJ(e.X,c,new Tl(I.mf.start,I.mf.end),I.zn)));I={getAdBreakUrl:L.getAdBreakUrl,Zz:I.mf.start,Kw:I.mf.end,cueProcessedMs:I.cueProcessedMs};L=new oV(e.X,h);x=[new vv(I)].concat(g.V(x));return{slotId:h,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:L,slotFulfillmentTriggers:S, slotExpirationTriggers:[new em(e.X,c),new Bf(e.X,h),new xP(e.X,h)],J7:"core",clientMetadata:new jp(x),adSlotLoggingData:B}}; qEn=function(e,L,c){var I=[];c=g.f(c);for(var B=c.next();!B.done;B=c.next())I.push(ORv(e,L,B.value));return I}; ORv=function(e,L,c){return c.triggeringSlotId!=null&&c.triggeringSlotId===e?c.clone(L):c}; xRf=function(e,L,c,I,B){return Ty$(e,L,c,I,B)}; TfH=function(e,L,c,I){var B=YH(e.K.get(),"SLOT_TYPE_IN_PLAYER");return Ty$(e,B,L,c,I)}; Ty$=function(e,L,c,I,B){var x=new js(e.X,c),S=[new IV(e.X,L)];e=[new Bf(e.X,L),new em(e.X,I)];return{slotId:L,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:x,slotFulfillmentTriggers:S,slotExpirationTriggers:e,J7:"core",clientMetadata:new jp([new sE(B({slotId:L,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,J7:"core",slotEntryTrigger:x,slotFulfillmentTriggers:S,slotExpirationTriggers:e},c))]),adSlotLoggingData:void 0}}; wCJ=function(e,L,c,I,B,x){var S=YH(e.K.get(),"SLOT_TYPE_PLAYER_BYTES"),h=YH(e.K.get(),"SLOT_TYPE_IN_PLAYER"),R=Vq(e.K.get(),"LAYOUT_TYPE_SURVEY",h);I=q5(e,L,c,I);var u=[new IV(e.X,S)];c=[new Bf(e.X,S),new em(e.X,c),new ZO(e.X,R)];if(I instanceof K)return I;h=x({slotId:S,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,J7:"core",slotEntryTrigger:I,slotFulfillmentTriggers:u,slotExpirationTriggers:c},{slotId:h,layoutId:R});x=h.fE;h=h.mp;return[{slotId:S,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:GY(e,L,S,I),slotFulfillmentTriggers:g2(e,L,S,u),slotExpirationTriggers:c,J7:"core",clientMetadata:new jp([new sE(x),new CR(kz(L)),new Nj({lw:e.lw(L)})]),adSlotLoggingData:B},h]}; kz=function(e){return e.kind==="AD_PLACEMENT_KIND_START"}; Vj6=function(e,L,c,I,B){B=B?B:YH(e.K.get(),"SLOT_TYPE_IN_PLAYER");c=new js(e.X,c);var x=[new IV(e.X,B)];e=[new em(e.X,L),new Bf(e.X,B)];return{slotId:B,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:x,slotExpirationTriggers:e,J7:"core",clientMetadata:new jp([new sE(I({slotId:B,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,J7:"core",slotEntryTrigger:c,slotFulfillmentTriggers:x,slotExpirationTriggers:e}))])}}; CGc=function(e,L,c,I){var B=YH(e.K.get(),"SLOT_TYPE_PLAYER_UNDERLAY");c=new js(e.X,c);var x=[new IV(e.X,B)];e=[new em(e.X,L),new Bf(e.X,B)];return{slotId:B,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:x,slotExpirationTriggers:e,J7:"core",clientMetadata:new jp([new sE(I({slotId:B,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,J7:"core",slotEntryTrigger:c,slotFulfillmentTriggers:x,slotExpirationTriggers:e}))])}}; b56=function(e,L,c,I,B,x,S){var h=YH(e.K.get(),"SLOT_TYPE_IN_PLAYER"),R=Vq(e.K.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",h);I=WuM(e,I,x,S,R);if(I instanceof K)return I;S=[new IV(e.X,h)];B=[new em(e.X,x),new IV(e.X,B),new TU(e.X,B)];c=EE(c,{slotId:h,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,J7:"core",slotEntryTrigger:I,slotFulfillmentTriggers:S,slotExpirationTriggers:B});e=e.Z.get();x={layoutId:R,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",J7:"core"};L={layoutId:R,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", hK:new Map,layoutExitNormalTriggers:[new T_H(e.X,R,L.durationMs)],layoutExitSkipTriggers:[new MiM(e.X,R,L.durationMs)],Mw:[new WQR(e.X,R)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],J7:"core",clientMetadata:new jp([new G9(L)]),wT:c(x)};return{slotId:h,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,J7:"core",slotEntryTrigger:I,slotFulfillmentTriggers:S,slotExpirationTriggers:B,clientMetadata:new jp([new sE(L)])}}; t3H=function(e,L,c,I,B,x){L=q5(e,L,c,I);if(L instanceof K)return L;var S=L instanceof EJ?new tif(e.X,c,L.X):null;I=YH(e.K.get(),"SLOT_TYPE_IN_PLAYER");var h=[new IV(e.X,I)];e=[new em(e.X,c),new Bf(e.X,I)];x=x({slotId:I,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,J7:"core",slotEntryTrigger:L,slotFulfillmentTriggers:h,slotExpirationTriggers:e},S);return x instanceof $K?new K(x):{slotId:I,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:L,slotFulfillmentTriggers:h,slotExpirationTriggers:e, J7:"core",clientMetadata:new jp([new sE(x)]),adSlotLoggingData:B}}; REJ=function(e,L,c,I){var B=YH(e.K.get(),"SLOT_TYPE_IN_PLAYER"),x=new yX(e.X,L),S=[new Sm(e.X,B)];e=[new em(e.X,L),new Bf(e.X,B)];return{slotId:B,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:x,slotFulfillmentTriggers:S,slotExpirationTriggers:e,J7:"core",clientMetadata:new jp([new sE(I({slotId:B,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,J7:"core",slotEntryTrigger:x,slotFulfillmentTriggers:S,slotExpirationTriggers:e}))]),adSlotLoggingData:c}}; uPc=function(e,L,c,I){var B=YH(e.K.get(),"SLOT_TYPE_IN_PLAYER");c=new js(e.X,c);var x=[new IV(e.X,B)],S=[new Bf(e.X,B),new em(e.X,L)];x={slotId:B,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,J7:"core",slotEntryTrigger:c,slotFulfillmentTriggers:x,slotExpirationTriggers:S};return{slotId:B,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:[new IV(e.X,B)],slotExpirationTriggers:[new em(e.X,L),new Bf(e.X,B)],J7:"core",clientMetadata:new jp([new sE(I(x))])}}; rPx=function(e,L,c,I,B){var x=YH(e.K.get(),"SLOT_TYPE_IN_PLAYER");c=new $9(e.X,I,c);I=[new IV(e.X,x)];e=[new em(e.X,L)];return{slotId:x,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:I,slotExpirationTriggers:e,J7:"core",clientMetadata:new jp([new sE(B({slotId:x,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,J7:"core",slotEntryTrigger:c,slotFulfillmentTriggers:I,slotExpirationTriggers:e}))])}}; cPc=function(e,L,c,I,B,x){var S=YH(e.K.get(),L);return TR(e,S,L,new js(e.X,I),[new em(e.X,c),new Bf(e.X,S),new Hw(e.X,I,["error"])],B,x)}; L$n=function(e,L,c,I,B,x,S){var h=YH(e.K.get(),L);return TR(e,h,L,new Hw(e.X,B,["normal"]),[new em(e.X,c),new Bf(e.X,h),new Hw(e.X,I,["error"])],x,S)}; KQn=function(e,L,c,I,B){var x=YH(e.K.get(),L);return TR(e,x,L,new yX(e.X,c),[new em(e.X,c),new Bf(e.X,x)],I,B)}; omT=function(e,L,c,I,B){c=c?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var x=YH(e.K.get(),c);L=new yX(e.X,L);var S=[new IV(e.X,x)];e=[new Bf(e.X,x)];return{slotId:x,slotType:c,slotPhysicalPosition:1,slotEntryTrigger:L,slotFulfillmentTriggers:S,slotExpirationTriggers:e,J7:"core",clientMetadata:new jp([new sE(B({slotId:x,slotType:c,slotPhysicalPosition:1,J7:"core",slotEntryTrigger:L,slotFulfillmentTriggers:S,slotExpirationTriggers:e}))]),adSlotLoggingData:I}}; MjM=function(e,L,c,I){var B=YH(e.K.get(),"SLOT_TYPE_PLAYER_BYTES"),x=new UJ(e.X),S=[new Sm(e.X,B)];e=[new em(e.X,L)];return{slotId:B,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:x,slotFulfillmentTriggers:S,slotExpirationTriggers:e,J7:"core",clientMetadata:new jp([new sE(I({slotId:B,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,J7:"core",slotEntryTrigger:x,slotFulfillmentTriggers:S,slotExpirationTriggers:e})),new T9({})]),adSlotLoggingData:c}}; iuc=function(e,L){return m7H(e.ZY.get())?new Hw(e.X,L,["normal","error","skipped"]):new Hw(e.X,L,["normal"])}; kAc=function(e,L,c,I,B){L=iuc(e,L);e=iV(e,L,c);B=B({slotId:e.slotId,slotType:e.slotType,slotPhysicalPosition:e.slotPhysicalPosition,slotEntryTrigger:e.slotEntryTrigger,slotFulfillmentTriggers:e.slotFulfillmentTriggers,slotExpirationTriggers:e.slotExpirationTriggers,J7:e.J7});return B instanceof K?B:{fA:Object.assign({},e,{clientMetadata:new jp([new sE(B.layout)]),adSlotLoggingData:I}),wZ:B.wZ}}; DRM=function(e,L,c,I,B,x,S){c=GdM(e,L,c,I);if(c instanceof K)return c;S=S({slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,slotEntryTrigger:c.slotEntryTrigger,slotFulfillmentTriggers:c.slotFulfillmentTriggers,slotExpirationTriggers:c.slotExpirationTriggers,J7:c.J7});if(S instanceof K)return S;I=[new CR(kz(L)),new sE(S.layout),new Nj({lw:e.lw(L)})];x&&I.push(new kK({}));return{fA:{slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,slotEntryTrigger:GY(e, L,c.slotId,c.slotEntryTrigger),slotFulfillmentTriggers:g2(e,L,c.slotId,c.slotFulfillmentTriggers),slotExpirationTriggers:c.slotExpirationTriggers,J7:c.J7,clientMetadata:new jp(I),adSlotLoggingData:B},wZ:S.wZ}}; GY=function(e,L,c,I){return e.ZY.get().Ry(kz(L))?new Nm(e.X,c):I}; g2=function(e,L,c,I){return e.ZY.get().Ry(kz(L))?[new Sm(e.X,c)]:I}; iV=function(e,L,c){var I=YH(e.K.get(),"SLOT_TYPE_PLAYER_BYTES"),B=[new IV(e.X,I)];e=[new Bf(e.X,I),new em(e.X,c)];return{slotId:I,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:L,slotFulfillmentTriggers:B,slotExpirationTriggers:e,J7:"core"}}; GdM=function(e,L,c,I){L=q5(e,L,c,I);return L instanceof K?L:iV(e,L,c)}; rAc=function(e,L,c,I,B,x){var S=YH(e.K.get(),"SLOT_TYPE_FORECASTING");L=q5(e,L,c,I);if(L instanceof K)return L;I=[new IV(e.X,S)];e=[new Bf(e.X,S),new em(e.X,c)];return{slotId:S,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:L,slotFulfillmentTriggers:I,slotExpirationTriggers:e,J7:"core",clientMetadata:new jp([new sE(x({slotId:S,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,J7:"core",slotEntryTrigger:L,slotFulfillmentTriggers:I,slotExpirationTriggers:e}))]),adSlotLoggingData:B}}; MpH=function(e,L,c,I,B){var x=!L.hideCueRangeMarker;switch(L.kind){case "AD_PLACEMENT_KIND_START":return new yX(e.X,c);case "AD_PLACEMENT_KIND_MILLISECONDS":return e=dvM(L,I),e instanceof K?e:B(e.mf,x);case "AD_PLACEMENT_KIND_END":return new pL(e.X,c,x);default:return new K("Cannot construct entry trigger",{kind:L.kind})}}; WuM=function(e,L,c,I,B){return MpH(e,L,c,I,function(x,S){return new uTJ(e.X,c,x,S,B)})}; q5=function(e,L,c,I){return MpH(e,L,c,I,function(B,x){return new EJ(e.X,c,B,x)})}; TR=function(e,L,c,I,B,x,S){e=[new Sm(e.X,L)];return{slotId:L,slotType:c,slotPhysicalPosition:1,slotEntryTrigger:I,slotFulfillmentTriggers:e,slotExpirationTriggers:B,J7:"core",clientMetadata:new jp([new sE(S({slotId:L,slotType:c,slotPhysicalPosition:1,J7:"core",slotEntryTrigger:I,slotFulfillmentTriggers:e,slotExpirationTriggers:B}))]),adSlotLoggingData:x}}; W$=function(e,L){g.p.call(this);this.ZY=e;this.X=L;this.eventCount=0}; M5=function(e,L,c,I){W$.call(this,e,L);this.ZY=e;this.M0=c;this.context=I}; zR=function(){this.X=new Map}; sT=function(e){this.X="pending";this.K=[];this.Z=[];try{e(this.G.bind(this),this.reject.bind(this))}catch(L){this.reject(L)}}; z9x=function(){var e,L;return{gF:new sT(function(c,I){e=c;L=I}), resolve:e,reject:L}}; AR=function(e){return v$(e)?e:fb(e)?new sT(function(L,c){e.then(L,c)}):new sT(function(L){L(e)})}; Fd=function(e){return new sT(function(L,c){c(e)})}; bs=function(e){try{return AR(e())}catch(L){return Fd(L)}}; GR=function(e,L,c){var I=z9x(),B=I.gF,x=I.resolve,S=I.reject;e.K.push(function(h){if(L)try{var R=L(h);x(R)}catch(u){S(u)}else x(h)}); e.Z.push(function(h){if(c)try{var R=c(h);x(R)}catch(u){S(u)}else S(h)}); is(e);return B}; g8=function(e,L){return GR(e,void 0,L)}; sWc=function(e,L){GR(e,function(c){return GR(AR(L()),function(){return c})},function(c){return GR(AR(L()),function(){return Fd(c)})})}; is=function(e){if(e.X==="fulfilled"){var L=e.K;e.K=[];e.Z=[];L=g.f(L);for(var c=L.next();!c.done;c=L.next())c=c.value,c(e.result)}else if(e.X==="rejected")for(L=e.Z,e.K=[],e.Z=[],L=g.f(L),c=L.next();!c.done;c=L.next())c=c.value,c(e.error)}; kB=function(e,L){return vKc(L.call(e))}; Dj=function(e){return function c(){return jv(c,function(I){if(I.K==1)return g.Gc(I,2),g.a(I,{gF:AR(e)},4);if(I.K!=2)return I.return(I.X);g.NM(I);return g.mf(I,0)})}()}; vKc=function(e){return bs(function(){return w8(e,e.next())})}; w8=function(e,L){return L.done?AR(L.value):g8(GR(L.value.gF,function(c){return w8(e,e.next(c))}),function(c){return w8(e,e.throw(c))})}; JR=function(e,L){if(e.length===0)return AR(NaN);var c=z9x(),I=c.gF,B=c.resolve,x=e.length;e=g.f(e.entries());var S=e.next();for(c={};!S.done;c={Rm:void 0},S=e.next()){var h=g.f(S.value);S=h.next().value;h=h.next().value;c.Rm=S;sWc(h,function(R){return function(){I.X==="pending"&&(fwr(L)&&L(R.Rm)&&I.X==="pending"?B(R.Rm):(--x,x===0&&B(NaN)))}}(c))}return I}; Vg=function(e){return e.map(function(L){return AR(L)})}; ah=function(e){var L=e.hours||0;var c=e.minutes||0,I=e.seconds||0;L=I+c*60+L*3600+(e.days||0)*86400+(e.weeks||0)*604800+(e.months||0)*2629800+(e.years||0)*31557600;L<=0?L={hours:0,minutes:0,seconds:0}:(e=L,L=Math.floor(e/3600),e%=3600,c=Math.floor(e/60),I=Math.floor(e%60),L={hours:L,minutes:c,seconds:I});var B=L.hours===void 0?0:L.hours;c=L.minutes===void 0?0:L.minutes;e=L.seconds===void 0?0:L.seconds;I=B>0;L=[];if(I){B=(new Intl.NumberFormat("en-u-nu-latn")).format(B);var x=["fr"],S="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(Cb)?B.replace(",","\u00a0"):x.includes(Cb)?B.replace(",","\u202f"):S.includes(Cb)?B.replace(",","."):B;L.push(B)}I=I===void 0?!1:I;c=(["af","be","lt"].includes(Cb)||I)&&c<10?AlM().format(c):(new Intl.NumberFormat("en-u-nu-latn")).format(c);L.push(c);c=AlM().format(e);L.push(c);c=":";"da fi id si sr sr-Latn".split(" ").includes(Cb)&&(c=".");return L.join(c)}; AlM=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; FuT=function(e,L){var c,I;e=((c=e.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(I=c.videoAuthorizationToken)==null?void 0:I.credentialTransferTokens)||[];for(c=0;cL;e=c}else e=!1;return e}; g.Kb=function(e,L){return e.PU+"timedtext_video?ref=player&v="+L.videoId}; g.jWf=function(e){var L=this;this.videoData=e;e={};this.X=(e.c1a=function(){var c=[];if(g.ET.isInitialized()){var I="";L.videoData&&L.videoData.er&&(I=L.videoData.er+("&r1b="+L.videoData.clientPlaybackNonce));var B={};I=(B.atr_challenge=I,B);g_("bg_v",void 0,"player_att");(I=$jM(I))?(g_("bg_s",void 0,"player_att"),c.push("r1a="+I)):(g_("bg_e",void 0,"player_att"),c.push("r1c=2"))}else g_("bg_e",void 0,"player_att"),window.trayride||window.botguard?c.push("r1c=1"):c.push("r1c=4");c.push("r1d="+g.ET.getState()); return c.join("&")},e.c6a=function(c){return"r6a="+(Number(c.c)^Q_())},e.c6b=function(c){return"r6b="+(Number(c.c)^Number(g.Zu("CATSTAT",0)))},e); this.videoData&&this.videoData.er?this.Ro=dW(this.videoData.er):this.Ro={}}; g.HRc=function(e){if(e.videoData&&e.videoData.er){for(var L=[e.videoData.er],c=g.f(Object.keys(e.X)),I=c.next();!I.done;I=c.next())I=I.value,e.Ro[I]&&e.X[I]&&(I=e.X[I](e.Ro))&&L.push(I);return L.join("&")}return null}; g.YB=function(e,L){pvM(e,{bbe:g.X3(L.experiments,"bg_vm_reinit_threshold"),cspNonce:L.cspNonce,PU:L.PU||""})}; lwM=function(){var e=XMLHttpRequest.prototype.fetch;return!!e&&e.length===3}; PNv=function(e){e=e[r[41]](r[3]);nb[r[32]](e,18);nb[r[44]](e,3);nb[r[32]](e,44);nb[r[44]](e,2);nb[r[32]](e,31);nb[r[55]](e,14);nb[r[32]](e,32);nb[r[55]](e,64);nb[r[44]](e,2);return e[r[6]](r[3])}; Uj$=function(e,L){lG(e,2,L.Dz,eC,3);lG(e,3,L.innertubeRequest,QWT,3);jj(e,4,L.onesieUstreamerConfig);jj(e,9,L.L8);lG(e,10,L.z7,LX,3);lG(e,15,L.reloadPlaybackParams,djc,3)}; XvT=function(e,L){lG(e,1,L.formatId,cB,3);ZG(e,2,L.startTimeMs);ZG(e,3,L.durationMs);ZG(e,4,L.E9);ZG(e,5,L.aO);lG(e,9,L.U4d,EKH,3);lG(e,11,L.Zwm,Iy,1);lG(e,12,L.YA,Iy,1)}; Kur=function(e,L){Hl(e,1,L.videoId);ZG(e,2,L.lmt)}; EKH=function(e,L){if(L.EH)for(var c=0;c>31));ZG(e,16,L.Yg);ZG(e,17,L.detailedNetworkType);ZG(e,18,L.iN);ZG(e,19,L.Le);ZG(e,21,L.EfW);ZG(e,23,L.Mh);ZG(e,28,L.Pa);ZG(e,29,L.VkW);ZG(e,34,L.visibility);c=L.playbackRate;if(c!==void 0){var I=new ArrayBuffer(4);(new Float32Array(I))[0]=c;c=(new Uint32Array(I))[0];if(c!==void 0)for(yB(e,285),m$(e,4),I=0;I<4;)e.view.setUint8(e.pos,c&255),c>>=8,e.pos+=1,I+=1}ZG(e,36,L.Jl); lG(e,38,L.mediaCapabilities,czn,3);ZG(e,39,L.Ij7);ZG(e,40,L.iB);ZG(e,44,L.playerState);p5(e,46,L.Cg);ZG(e,48,L.IL);ZG(e,50,L.Ef);ZG(e,51,L.T$);ZG(e,54,L.PD);if(L.KN)for(c=0;c>31));Hl(e,2,L.message)}; u56=function(e,L){ZG(e,1,L.clientState);lG(e,2,L.bGq,hhc,1)}; rz$=function(e,L){jj(e,1,L.cqd);lG(e,2,L.Tqe,RhT,3);lG(e,3,L.coldStartInfo,u56,3)}; SZ$=function(e,L){ZG(e,1,L.type);jj(e,2,L.value)}; oHM=function(e,L){Hl(e,1,L.hl);Hl(e,12,L.deviceMake);Hl(e,13,L.deviceModel);ZG(e,16,L.clientName);Hl(e,17,L.clientVersion);Hl(e,18,L.osName);Hl(e,19,L.osVersion)}; thT=function(e,L){Hl(e,1,L.name);Hl(e,2,L.value)}; OCT=function(e,L){Hl(e,1,L.url);if(L.kH)for(var c=0;c0&&!(Ukc()>(0,g.zI)()-e*1E3))return 0;e=g.iS("yt-player-quality");if(typeof e==="string"){if(e=g.fn[e],e>0)return e}else if(e instanceof Object)return e.quality;return 0}; he=function(){var e=g.iS("yt-player-proxima-pref");return e==null?null:e}; Xqn=function(){var e=g.iS("yt-player-quality");if(e instanceof Object&&e.quality&&e.previousQuality){if(e.quality>e.previousQuality)return 1;if(e.quality0&&L[0]?e.getAutoplayPolicy(L[0]):e.getAutoplayPolicy("mediaelement");if(I4f[c])return I4f[c]}}catch(I){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; WB=function(e){return e.tj||e.h9||e.mutedAutoplay}; B4v=function(e,L){return WB(e)?L!==1&&L!==2&&L!==0?"AUTOPLAY_STATUS_UNAVAILABLE":e.Uj?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; xiT=function(e,L,c){var I=L.S();e.thirdParty||(e.thirdParty={});I.ancestorOrigins&&(e.thirdParty.embeddedPlayerContext=Object.assign({},e.thirdParty.embeddedPlayerContext,{ancestorOrigins:I.ancestorOrigins}));I.Y("embeds_enable_autoplay_and_visibility_signals")&&(I.KB!=null&&(e.thirdParty.embeddedPlayerContext=Object.assign({},e.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(I.KB)})),I.Z2&&(e.thirdParty.embeddedPlayerContext=Object.assign({},e.thirdParty.embeddedPlayerContext,{visibilityFractionSource:I.Z2})), e.thirdParty.embeddedPlayerContext=Object.assign({},e.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:Tv(),autoplayIntended:WB(L),autoplayStatus:B4v(L,c)}))}; off=function(e){var L=[];e=g.f(e.split(","));for(var c=e.next();!c.done;c=e.next()){var I=c.value;I&&((c=I.startsWith("!"))&&(I=I.substring(1)),I=I.split("-"),I.length<3||L.push({ZW:I[0],platform:I[1],deviceVersion:I[2],MY:c}))}return L}; h8T=function(e){return off(e).map(function(L){return{deviceInterface:StT[rEf[L.ZW]]||0,deviceVersion:L.deviceVersion||"",isSleeping:L.MY}})}; g.MB=function(e,L){this.id=e;this.l5=L;this.captionTracks=[];this.Z=this.G=null;this.xtags="";this.B=!1;this.X=null;this.K="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";e=this.l5.id.split(".");e.length>1&&(this.B=e[1]==="2")}; zv=function(e,L,c,I,B){this.K=e;this.X=L;this.Z=c;this.reason=I;this.r_=B===void 0?0:B}; g.sg=function(e,L,c,I){return new zv(g.fn[e]||0,g.fn[L]||0,c,I)}; fX=function(e){if(vB&&e.r_)return!1;var L=g.fn.auto;return e.K===L&&e.X===L}; FL=function(e){return Ae[e.X||e.K]||"auto"}; R8H=function(e,L){L=g.fn[L];return e.K<=L&&(!e.X||e.X>=L)}; bJ=function(e){return"["+e.K+"-"+e.X+", override: "+(e.Z+", reason: "+e.reason+"]")}; iJ=function(e,L,c){this.videoInfos=e;this.X=L;this.audioTracks=[];if(this.X){e=new Set;c==null||c({ainfolen:this.X.length});L=g.f(this.X);for(var I=L.next();!I.done;I=L.next())if(I=I.value,!I.l5||e.has(I.l5.id)){var B=void 0,x=void 0,S=void 0;(S=c)==null||S({atkerr:!!I.l5,itag:I.itag,xtag:I.X,lang:((B=I.l5)==null?void 0:B.name)||"",langid:((x=I.l5)==null?void 0:x.id)||""})}else B=new g.MB(I.id,I.l5),e.add(I.l5.id),this.audioTracks.push(B);c==null||c({atklen:this.audioTracks.length})}}; Gv=function(){g.p.apply(this,arguments);this.X=null}; qtc=function(e,L,c,I,B,x,S){if(e.X)return e.X;var h={},R=new Set,u={};if(gV(I)){for(var t in I.X)I.X.hasOwnProperty(t)&&(e=I.X[t],u[e.info.EW]=[e.info]);return u}t=uQx(L,I,h);x&&B({aftsrt:k0(t)});for(var O={},q=g.f(Object.keys(t)),T=q.next();!T.done;T=q.next()){T=T.value;for(var W=g.f(t[T]),A=W.next();!A.done;A=W.next()){A=A.value;var b=A.itag,J=void 0,w=T+"_"+(((J=A.video)==null?void 0:J.fps)||0);O.hasOwnProperty(w)?O[w]===!0?u[T].push(A):h[b]=O[w]:(J=DA(L,A,c,I.isLive,R),J!==!0?(S.add(T),h[b]=J, J==="disablevp9hfr"&&(O[w]="disablevp9hfr")):(u[T]=u[T]||[],u[T].push(A),O[w]=!0))}}x&&B({bfflt:k0(u)});for(var C in u)u.hasOwnProperty(C)&&(I=C,u[I]&&u[I][0].vM()&&(u[I]=u[I],u[I]=tcJ(L,u[I],h),u[I]=OzJ(u[I],h)));x&&Object.keys(h).length>0&&B({rjr:rr(h)});L=g.f(R.values());for(I=L.next();!I.done;I=L.next())(I=c.G.get(I.value))&&--I.P6;x&&B({aftflt:k0(u)});e.X=g.c2(u,function(y){return!!y.length}); return e.X}; W5R=function(e,L,c,I,B,x,S,h){h=h===void 0?!1:h;if(L.m1&&S&&S.length>1&&!(L.Yy>0||L.J)){for(var R=L.K||!!B,u=R&&L.Cf?x:void 0,t=uQx(L,I),O=[],q=[],T={},W=0;W0&&q&&B&&(t=[S,c],C=B.concat(q).filter(function(y){return y})); if(C.length&&!L.zS){Vp(C,t);if(R){R=[];L=g.f(C);for(I=L.next();!I.done;I=L.next())R.push(I.value.itag);x({hbdfmt:R.join(".")})}return F1(new iJ(C,e,u))}C=GH6(L);C=g.vU(C,h);if(!C){if(O[S])return x=O[S],Vp(x),F1(new iJ(x,e,u));R&&x({novideo:1});return AF()}L.RI&&(C==="1"||C==="1h")&&O[c]&&(S=CX(O[C]),t=CX(O[c]),t>S?C=c:t===S&&gfM(O[c])&&(C=c));C==="9"&&O.h&&CX(O.h)>CX(O["9"])&&(C="h");L.DY&&I.isLive&&C==="("&&O.H&&CX(O["("])<1440&&(C="H");R&&x({vfmly:ay(C)});L=O[C];if(!L.length)return R&&x({novfmly:ay(C)}), AF();Vp(L);return F1(new iJ(L,e,u))}; z8n=function(e,L){var c=!(!e.m&&!e.M),I=!(!e.mac3&&!e.MAC3),B=!(!e.meac3&&!e.MEAC3);e=!(!e.i&&!e.I);L.XD=e;return c||I||B||e}; gfM=function(e){e=g.f(e);for(var L=e.next();!L.done;L=e.next())if(L=L.value,L.itag&&kHc.has(L.itag))return!0;return!1}; vf6=function(e){e=g.f(e);for(var L=e.next();!L.done;L=e.next())if(L.value.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1}; ay=function(e){switch(e){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return e}}; k0=function(e){var L=[],c;for(c in e)if(e.hasOwnProperty(c)){var I=c;L.push(ay(I));I=g.f(e[I]);for(var B=I.next();!B.done;B=I.next())L.push(B.value.itag)}return L.join(".")}; McH=function(e,L,c,I,B,x){var S={},h={};g.Le(L,function(R,u){R=R.filter(function(t){var O=t.itag;if(!t.TI)return h[O]="noenc",!1;if(x.RT&&t.EW==="(h"&&x.x9)return h[O]="lichdr",!1;if(!e.B&&t.EW==="1e")return h[O]="noav1enc",!1;if(t.EW==="("||t.EW==="(h"){if(e.Z&&c&&c.flavor==="widevine"){var q=t.mimeType+"; experimental=allowed";(q=!!t.TI[c.flavor]&&!!c.X[q])||(h[O]=t.TI[c.flavor]?"unspt":"noflv");return q}if(!NB(e,mJ.CRYPTOBLOCKFORMAT)&&!e.Ve||e.Gm)return h[O]=e.Gm?"disvp":"vpsub",!1}return c&&t.TI[c.flavor]&& c.X[t.mimeType]?!0:(h[O]=c?t.TI[c.flavor]?"unspt":"noflv":"nosys",!1)}); R.length&&(S[u]=R)}); I&&Object.entries(h).length&&B({rjr:rr(h)});return S}; OzJ=function(e,L){var c=sd(e,function(I,B){return B.video.fps>32?Math.min(I,B.video.width):I},Infinity); c32||I.video.widthe.j)return"max"+e.j;if(e.d_&&L.EW==="h"&&L.video&&L.video.qualityOrdinal>1080)return"blkhigh264";if(L.EW==="(h"&&!c.T)return"enchdr";if((I===void 0?0:I)&&Vd(L)&&!e.ye)return"blk51live";if((L.EW==="MAC3"||L.EW==="mac3")&&!e.G)return"blkac3";if((L.EW==="MEAC3"||L.EW==="meac3")&&!e.B)return"blkeac3";if(L.EW==="M"||L.EW==="m")return"blkaac51"; if((L.EW==="so"||L.EW==="sa")&&!e.pS)return"blkamb";if(!e.RT&&w7c(L)&&(!c.B||L.EW!=="1e"))return"cbc";if(!c.B&&w7c(L)&&L.EW==="1e")return"cbcav1";if((L.EW==="i"||L.EW==="I")&&!e.gT)return"blkiamf";var x;if(e.Kf&&((x=L.audio)==null?void 0:x.K)===!0)return"blkvbcabr";var S,h;if(e.Pe&&(L.EW==="1"||L.EW==="1h"||c.B&&L.EW==="1e")&&((S=L.video)==null?0:S.qualityOrdinal)&&((h=L.video)==null?void 0:h.qualityOrdinal)>e.Pe)return"av1cap";I=c.G.get(L.EW);if(!e.sY&&I&&I.P6>0)return B.add(L.EW),"byerr";var R; if((R=L.video)==null?0:R.fps>32){if(!c.k9&&!NB(c,mJ.FRAMERATE))return"capHfr";if(e.m$&&L.video.qualityOrdinal>=4320)return"blk8khfr";if(gr(L)&&e.FD&&L.TI&&L.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(e.r_&&L.r_>e.r_)return"ratecap";e=Din(c,L);return e!==!0?e:!0}; Vp=function(e,L){L=L===void 0?[]:L;g.U9(e,function(c,I){var B=I.r_-c.r_;if(!c.vM()||!I.vM())return B;var x=I.video.height*I.video.width-c.video.height*c.video.width;!x&&L&&L.length>0&&(c=L.indexOf(c.EW)+1,I=L.indexOf(I.EW)+1,x=c===0||I===0?I||-1:c-I);x||(x=B);return x})}; g.yp=function(e,L){this[r[36]]=e;this[r[45]]=L===void 0?!1:L;this[r[30]]=this[r[26]]=this[r[5]]=r[3];this[r[11]]={};this[r[33]]=r[3]}; pX=function(e){ZA(e);return e[r[30]]}; $0=function(e){return e[r[36]]?e[r[36]][r[7]](r[38]):e[r[5]]===r[38]}; wxM=function(e){ZA(e);return g.xL(e[r[11]],function(L){return L!==null})}; jC=function(e){ZA(e);var L=decodeURIComponent(e[r[24]](r[62])||r[3])[r[41]](r[31]);return e[r[26]]===r[14]&&L[r[1]]>1&&!!L[1]}; HB=function(e,L){L=L===void 0?!1:L;ZA(e);if(e[r[26]]!==r[14]){var c=e[r[76]]();c[r[23]](r[88],r[27]);return c}var I=e[r[29]]();c=new g.Yd(I);var B=e[r[24]](r[52]),x=decodeURIComponent(e[r[24]](r[62])||r[3])[r[41]](r[31]);if(B&&x&&x[r[1]]>1&&x[1])return I=c.X,e=I[r[59]](/^[^.]*/,r[3]),g.e9(c,(I[r[12]](r[8])===0?r[8]:r[84])+B+r[61]+x[1]+e),c=new g.yp(c[r[49]]()),c[r[23]](r[0],r[27]),c;if(L)return c=e[r[76]](),c[r[23]](r[0],r[27]),c;B=c.X[r[17]](r[35]);c.X[r[17]](r[86])?(g.e9(c,r[81]),I=c[r[49]]()): c.X[r[17]](r[4])?(g.e9(c,r[57]),I=c[r[49]]()):(c=vg$(I),Nd(c)&&(I=c));c=new g.yp(I);c[r[23]](r[58],r[27]);B&&c[r[23]](r[42],r[70]);return c}; ZA=function(e){if(e[r[36]]){if(!(Nd(e[r[36]])||e[r[36]][r[7]](r[38])||e[r[36]][r[7]](r[22])||e[r[36]][r[7]](r[79])))throw new g.yu(r[67],e[r[36]]);var L=g.S9(e[r[36]]);e[r[5]]=L.B;e[r[30]]=L.X+(L.Z!=null?r[37]+L.Z:r[3]);var c=L.K;if(c[r[7]](r[14]))e[r[26]]=r[14],c=c[r[25]](14);else if(c[r[7]](r[34]))e[r[26]]=r[34],c=c[r[25]](13);else if(c[r[7]](r[50])){var I=c[r[12]](r[48],12),B=c[r[12]](r[48],I+1);I>0&&B>0?(e[r[26]]=c[r[25]](0,B),c=c[r[25]](B+1)):(e[r[26]]=c,c=r[3])}else e[r[26]]=c,c=r[3];I=e[r[11]]; e[r[11]]=JEc(c);Object[r[64]](e[r[11]],VcR(L.G.toString()));Object[r[64]](e[r[11]],I);e[r[11]][r[77]]===r[39]&&(delete e[r[11]][r[77]],e[r[26]]+=r[15]);e[r[36]]=r[3];e[r[33]]=r[3];e[r[45]]&&(ZA(e),L=e[r[11]][r[28]]||null)&&(L=Cic[0](L),e[r[23]](r[28],L))}}; a4r=function(e){ZA(e);var L=e[r[5]]+(e[r[5]]?r[73]:r[80])+e[r[30]]+e[r[26]];if(wxM(e)){var c=[];g.Le(e[r[11]],function(I,B){I!==null&&c[r[10]](B+r[43]+I)}); L+=r[68]+c[r[6]](r[75])}return L}; JEc=function(e){e=e[r[41]](r[48]);var L=0;e[0]||L++;for(var c={};L0?N4x(L,I[r[25]](0,B),I[r[25]](B+1)):I&&(L[I]=r[3])}return L}; N4x=function(e,L,c){if(L===r[71]){var I;(I=c[r[12]](r[43]))>=0?(L=r[56]+c[r[25]](0,I),c=c[r[25]](I+1)):(I=c[r[12]](r[54]))>=0&&(L=r[56]+c[r[25]](0,I),c=c[r[25]](I+3))}e[L]=c}; lJ=function(e){var L=g.Q(e,miR)||e[r[40]];e={Uk:!1,Wr:r[3],rr:r[3],s:r[3]};if(!L)return e;L=dW(L);e[r[47]]=!0;e[r[85]]=L[r[33]];e[r[8]]=L[r[53]];e[r[16]]=L[r[16]];return e}; PB=function(e,L,c,I,B,x,S,h,R){this.ud=e;this.startTime=L;this.duration=c;this.ingestionTime=I;this.sourceURL=B;this.u0=R;this.endTime=L+c;this.X=S||0;this.range=x||null;this.pending=h||!1;this.u0=R||null}; g.Qp=function(){this.segments=[];this.X=null;this.K=!0;this.Z=""}; yEn=function(e,L){if(L>e.Aw())e.segments=[];else{var c=s9(e.segments,function(I){return I.ud>=L},e); c>0&&e.segments.splice(0,c)}}; dV=function(e,L,c,I,B){B=B===void 0?!1:B;this.data=e;this.offset=L;this.size=c;this.type=I;this.X=(this.K=B)?0:8;this.dataOffset=this.offset+this.X}; Ug=function(e){var L=e.data.getUint8(e.offset+e.X);e.X+=1;return L}; Eg=function(e){var L=e.data.getUint16(e.offset+e.X);e.X+=2;return L}; XL=function(e){var L=e.data.getInt32(e.offset+e.X);e.X+=4;return L}; KX=function(e){var L=e.data.getUint32(e.offset+e.X);e.X+=4;return L}; Y0=function(e){var L=e.data;var c=e.offset+e.X;L=L.getUint32(c)*4294967296+L.getUint32(c+4);e.X+=8;return L}; nX=function(e,L){L=L===void 0?NaN:L;if(isNaN(L))var c=e.size;else for(c=e.X;c1?Math.ceil(B*L):Math.floor(B*L))}e.skip(1);c=Ug(e)<<16|Eg(e);if(c&256){I=c&1;B=c&4;var x=c&512,S=c&1024,h=c&2048;c=KX(e);I&&e.skip(4);B&&e.skip(4);I=(x?4:0)+(S?4:0)+(h?4:0);for(B=0;B1?Math.ceil(S*L):Math.floor(S*L)),e.skip(I)}}}; SJ=function(e){e=new DataView(e.buffer,e.byteOffset,e.byteLength);return(e=g.xc(e,0,1836476516))?g.o5(e):NaN}; Xx6=function(e){var L=g.xc(e,0,1937011556);if(!L)return null;L=r3(e,L.dataOffset+8,1635148593)||r3(e,L.dataOffset+8,1635135537);if(!L)return null;var c=r3(e,L.dataOffset+78,1936995172),I=r3(e,L.dataOffset+78,1937126244);if(!I)return null;L=null;if(c)switch(c.skip(4),Ug(c)){default:L=0;break;case 1:L=2;break;case 2:L=1;break;case 3:L=255}var B=c=null,x=null;if(I=r3(e,I.dataOffset,1886547818)){var S=r3(e,I.dataOffset,1886546020),h=r3(e,I.dataOffset,2037673328);if(!h&&(h=r3(e,I.dataOffset,1836279920), !h))return null;S&&(S.skip(4),c=XL(S)/65536,x=XL(S)/65536,B=XL(S)/65536);e=ZzM(h);e=new DataView(e.buffer,e.byteOffset+8,e.byteLength-8);return new Ui$(L,c,x,B,e)}return null}; r3=function(e,L,c){for(;hN(e,L);){var I=R5(e,L);if(I.type===c)return I;L+=I.size}return null}; g.xc=function(e,L,c){for(;hN(e,L);){var I=R5(e,L);if(I.type===c)return I;L=u$(I.type)?L+8:L+I.size}return null}; g.tN=function(e){if(e.data.getUint8(e.dataOffset)){var L=e.data;e=e.dataOffset+4;L=L.getUint32(e)*4294967296+L.getUint32(e+4)}else L=e.data.getUint32(e.dataOffset+4);return L}; R5=function(e,L){var c=e.getUint32(L),I=e.getUint32(L+4);return new dV(e,L,c,I)}; g.o5=function(e){var L=e.data.getUint8(e.dataOffset)?20:12;return e.data.getUint32(e.dataOffset+L)}; K5v=function(e){e=new dV(e.data,e.offset,e.size,e.type,e.K);var L=Ug(e);e.skip(7);var c=KX(e);if(L===0){L=KX(e);var I=KX(e)}else L=Y0(e),I=Y0(e);e.skip(2);for(var B=Eg(e),x=[],S=[],h=0;h122)return!1}return!0}; u$=function(e){return e===1701082227||e===1836019558||e===1836019574||e===1835297121||e===1835626086||e===1937007212||e===1953653094||e===1953653099||e===1836475768}; Ytc=function(e){e.skip(4);return{jym:nX(e,0),value:nX(e,0),timescale:KX(e),kR$:KX(e),eventDuration:KX(e),id:KX(e),gG:nX(e),offset:e.offset}}; g.nfn=function(e){var L=r3(e,0,1701671783);if(!L)return null;var c=Ytc(L),I=c.jym;c=Bm(c.gG);if(e=r3(e,L.offset+L.size,1701671783))if(e=Ytc(e),e=Bm(e.gG),c&&e){L=g.f(Object.keys(e));for(var B=L.next();!B.done;B=L.next())B=B.value,c[B]=e[B]}return c?new I5(c,I):null}; OH=function(e,L){for(var c=r3(e,0,L);c;){var I=c;I.type=1936419184;I.data.setUint32(I.offset+4,1936419184);c=r3(e,c.offset+c.size,L)}}; g.qJ=function(e,L){for(var c=0,I=[];hN(e,c);){var B=R5(e,c);B.type===L&&I.push(B);c=u$(B.type)?c+8:c+B.size}return I}; ePM=function(e,L){var c=g.xc(e,0,1937011556),I=g.xc(e,0,1953654136);if(!c||!I||e.getUint32(c.offset+12)>=2)return null;var B=new DataView(L.buffer,L.byteOffset,L.length),x=g.xc(B,0,1937011556);if(!x)return null;L=B.getUint32(x.dataOffset+8);I=B.getUint32(x.dataOffset+12);if(I!==1701733217&&I!==1701733238)return null;I=new pxM(e.byteLength+L);eJ(I,e,0,c.offset+12);I.data.setInt32(I.offset,2);I.offset+=4;eJ(I,e,c.offset+16,c.size-16);eJ(I,B,B.byteOffset+x.dataOffset+8,L);eJ(I,e,c.offset+c.size,e.byteLength- (c.offset+c.size));c=g.f([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(B=c.next();!B.done;B=c.next())B=g.xc(e,0,B.value),I.data.setUint32(B.offset,B.size+L);e=g.xc(I.data,0,1953654136);I.data.setUint32(e.offset+16,2);return I.data}; LrR=function(e){var L=g.xc(e,0,1937011556);if(!L)return null;var c=e.getUint32(L.dataOffset+12);if(c!==1701733217&&c!==1701733238)return null;L=r3(e,L.offset+24+(c===1701733217?28:78),1936289382);if(!L)return null;c=r3(e,L.offset+8,1935894637);if(!c||e.getUint32(c.offset+12)!==1667392371)return null;L=r3(e,L.offset+8,1935894633);if(!L)return null;L=r3(e,L.offset+8,1952804451);if(!L)return null;c=new Uint8Array(16);for(var I=0;I<16;I++)c[I]=e.getInt8(L.offset+16+I);return c}; T7=function(e,L){this.X=e;this.pos=0;this.start=L||0}; Wm=function(e){return e.pos>=e.X.byteLength}; fw=function(e,L,c){var I=new T7(c);if(!MJ(I,e))return!1;I=z7(I);if(!sH(I,L))return!1;for(e=0;L;)L>>>=8,e++;L=I.start+I.pos;var B=vm(I,!0);I=e+(I.start+I.pos-L)+B;I=I>9?cQx(I-9,8):cQx(I-2,1);e=L-e;c.setUint8(e++,236);for(L=0;Lc;B++)c=c*256+G7(e),I*=128;return L?c-I:c}; Fw=function(e){var L=vm(e,!0);e.pos+=L}; x8r=function(e){if(!sH(e,440786851,!0))return null;var L=e.pos;vm(e,!1);var c=vm(e,!0)+e.pos-L;e.pos=L+c;if(!sH(e,408125543,!1))return null;vm(e,!0);if(!sH(e,357149030,!0))return null;var I=e.pos;vm(e,!1);var B=vm(e,!0)+e.pos-I;e.pos=I+B;if(!sH(e,374648427,!0))return null;var x=e.pos;vm(e,!1);var S=vm(e,!0)+e.pos-x,h=new Uint8Array(c+12+B+S),R=new DataView(h.buffer);h.set(new Uint8Array(e.X.buffer,e.X.byteOffset+L,c));R.setUint32(c,408125543);R.setUint32(c+4,33554431);R.setUint32(c+8,4294967295); h.set(new Uint8Array(e.X.buffer,e.X.byteOffset+I,B),c+12);h.set(new Uint8Array(e.X.buffer,e.X.byteOffset+x,S),c+12+B);return h}; g3=function(e){var L=e.pos;e.pos=0;var c=1E6;MJ(e,[408125543,357149030,2807729])&&(c=AN(e));e.pos=L;return c}; ol$=function(e,L){var c=e.pos;e.pos=0;if(e.X.getUint8(e.pos)!==160&&!kc(e)||!sH(e,160))return e.pos=c,NaN;vm(e,!0);var I=e.pos;if(!sH(e,161))return e.pos=c,NaN;vm(e,!0);G7(e);var B=G7(e)<<8|G7(e);e.pos=I;if(!sH(e,155))return e.pos=c,NaN;I=AN(e);e.pos=c;return(B+I)*L/1E9}; kc=function(e){if(!S7r(e)||!sH(e,524531317))return!1;vm(e,!0);return!0}; S7r=function(e){if(e.Nk()){if(!sH(e,408125543))return!1;vm(e,!0)}return!0}; MJ=function(e,L){for(var c=0;c0){var I=VcR(L.substring(c+1));g.Le(I,function(B,x){this.set(x,B)},e); L=L.substring(0,c)}L=JEc(L);g.Le(L,function(B,x){this.set(x,B)},e)}; hPr=function(e){var L=e.HU.Wd(),c=[];g.Le(e.X,function(B,x){c.push(x+"="+B)}); if(!c.length)return L;var I=c.join("&");e=wxM(e.HU)?"&":"?";return L+e+I}; w3=function(e,L){var c=new g.yp(L);(L=c.get("req_id"))&&e.set("req_id",L);g.Le(e.X,function(I,B){c["set"](B,null)}); return c}; RPJ=function(){this.G=this.Z=this.X=this.timedOut=this.started=this.B=this.K=0}; JN=function(e){e.B=(0,g.zI)();e.started=0;e.timedOut=0;e.X=0}; VC=function(e,L){var c=e.started+e.X*4;L&&(c+=e.Z);c=Math.max(0,c-3);return Math.pow(1.6,c)}; Cw=function(e,L){e[L]||(e[L]=new RPJ);return e[L]}; a5=function(e){this.D=this.T=this.B=this.Z=0;this.J=this.j=!1;this.X=e;this.K=e.clone()}; uGc=function(e,L,c){if($0(e.X))return!1;var I=Cw(c,pX(e.X));if(I.timedOut<1&&I.X<1)return!1;I=I.timedOut+I.X;e=NJ(e,L);c=Cw(c,pX(e));return c.timedOut+c.X+01?L=L.Dd:(c=Cw(c,yC(e,e.p6(L,c),L)),L=Math.max(e.B,c.timedOut)+L.jo*(e.Z-e.B)+.25*e.T,L=L>3?1E3*Math.pow(1.6,L-3):0);return L===0?!0:e.D+L<(0,g.zI)()}; t0f=function(e,L,c){e.X.set(L,c);e.K.set(L,c);e.G&&e.G.set(L,c)}; On6=function(e,L,c,I,B){++e.Z;L&&++e.B;pX(c.HU).startsWith("redirector.")&&(e.X=e.K.clone(),delete e.G,I.VM&&delete B[pX(e.X)])}; pw=function(e){return e?(e.itag||"")+";"+(e.lmt||0)+";"+(e.xtags||""):""}; $c=function(e,L,c,I){this.initRange=c;this.indexRange=I;this.X=null;this.Z=!1;this.j=0;this.G=this.fY=this.K=null;this.info=L;this.V5=new a5(e)}; jJ=function(e,L){this.start=e;this.end=L;this.length=L-e+1}; Hm=function(e){e=e.split("-");var L=Number(e[0]),c=Number(e[1]);if(!isNaN(L)&&!isNaN(c)&&e.length===2&&(e=new jJ(L,c),!isNaN(e.start)&&!isNaN(e.end)&&!isNaN(e.length)&&e.length>0))return e}; l$=function(e,L){return new jJ(e,e+L-1)}; q7c=function(e){return e.end==null?{start:String(e.start)}:{start:String(e.start),end:String(e.end)}}; Pm=function(e){if(!e)return new jJ(0,0);var L=Number(e.start);e=Number(e.end);if(!isNaN(L)&&!isNaN(e)&&(L=new jJ(L,e),L.length>0))return L}; QC=function(e,L,c,I,B,x,S,h,R,u,t,O){I=I===void 0?"":I;this.type=e;this.X=L;this.range=c;this.source=I;this.L2=t;this.clipId=O===void 0?"":O;this.D=[];this.T="";this.ud=-1;this.pS=this.h7=0;this.T=I;this.ud=B>=0?B:-1;this.startTime=x||0;this.duration=S||0;this.K=h||0;this.Z=R>=0?R:this.range?this.range.length:NaN;this.B=this.range?this.K+this.Z===this.range.length:u===void 0?!!this.Z:u;this.range?(this.G=this.startTime+this.duration*this.K/this.range.length,this.J=this.duration*this.Z/this.range.length, this.j=this.G+this.J):Tr$(this)}; Tr$=function(e){e.G=e.startTime;e.J=e.duration;e.j=e.G+e.J}; Wrx=function(e,L,c){var I=!(!L||L.X!==e.X||L.type!==e.type||L.ud!==e.ud);return c?I&&!!L&&(e.range&&L.range?L.range.end===e.range.end:L.range===e.range)&&L.K+L.Z===e.K+e.Z:I}; d3=function(e){return e.type===1||e.type===2}; UH=function(e){return e.type===3||e.type===6}; EH=function(e,L){return e.X===L.X?e.range&&L.range?e.range.start+e.K+e.Z===L.range.start+L.K:e.ud===L.ud?e.K+e.Z===L.K:e.ud+1===L.ud&&L.K===0&&e.B:!1}; zPv=function(e,L){return e.ud!==L.ud&&L.ud!==e.ud+1||e.type!==L.type?!1:EH(e,L)?!0:Math.abs(e.G-L.G)<=1E-6&&e.ud===L.ud?!1:M0R(e,L)}; M0R=function(e,L){return EH(e,L)||Math.abs(e.j-L.G)<=1E-6||e.ud+1===L.ud&&L.K===0&&e.B?!0:!1}; Xw=function(e){return e.ud+(e.B?1:0)}; sKJ=function(e){e.length===1||g.zM(e,function(c){return!!c.range}); for(var L=1;L=L.range.start+L.K&&e.range.start+e.K+e.Z<=L.range.start+L.K+L.Z:e.ud===L.ud&&e.K>=L.K&&(e.K+e.Z<=L.K+L.Z||L.B)}; Gn$=function(e,L){return e.X!==L.X?!1:e.type===4&&L.type===3&&e.X.Y4()?(e=e.X.qf(e),jW(e,function(c){return Gn$(c,L)})):e.ud===L.ud&&!!L.Z&&L.K+L.Z>e.K&&L.K+L.Z<=e.K+e.Z}; Yc=function(e,L){var c=L.ud;e.T="updateWithSegmentInfo";e.ud=c;if(e.startTime!==L.startTime||e.duration!==L.duration)e.startTime=L.startTime+e.h7,e.duration=L.duration,Tr$(e)}; nw=function(e,L){var c=this;this.bd=e;this.G=this.X=null;this.B=this.Bg=NaN;this.p6=this.requestId=null;this.kx={Eje:function(){return c.range}}; this.V5=e[0].X.V5;this.K=L||"";this.bd[0].range&&this.bd[0].Z>0&&(vlc(e)?(this.range=sKJ(e),this.Z=this.range.length):(this.range=this.bd[this.bd.length-1].range,this.Z=fhM(e)))}; e6=function(e){return!d3(e.bd[e.bd.length-1])}; Lk=function(e){return e.bd[e.bd.length-1].type===4}; g.c6=function(e,L,c){c=e.p6===null?e.V5.p6(L,c,e.bd[0].type):e.p6;if(e.X){L=c?HB(e.X,L.qk):e.X;var I=new DE(L);I.get("alr")||I.set("alr","yes");e.K&&rQv(I,e.K)}else/http[s]?:\/\//.test(e.K)?I=new DE(new g.yp(e.K)):(I=mo(e.V5,c,L),e.K&&rQv(I,e.K));(L=e.range)?I.set("range",L.toString()):e.bd[0].X.Sw()&&e.bd.length===1&&e.bd[0].K&&I.set("range",e.bd[0].K+"-");e.requestId&&I.set("req_id",e.requestId);isNaN(e.Bg)||I.set("headm",e.Bg.toString());isNaN(e.B)||I.set("mffa",e.B+"ms");e.urlParams&&g.Le(e.urlParams, function(B,x){I.set(x,B)}); return I}; glx=function(e){if(e.range)return e.Z;e=e.bd[0];return Math.round(e.J*e.X.info.r_)}; knc=function(e,L){return Math.max(0,e.bd[0].G-L)}; IZ=function(e,L,c,I,B,x){x=x===void 0?0:x;$c.call(this,e,L,I,void 0);this.B=c;this.rP=x;this.index=B||new g.Qp}; D8n=function(e,L,c,I,B){this.ud=e;this.startSecs=L;this.jW=c;this.X=I||NaN;this.K=B||NaN}; B6=function(e,L,c){for(;e;e=e.parentNode)if(e.attributes&&(!c||e.nodeName===c)){var I=e.getAttribute(L);if(I)return I}return""}; xZ=function(e,L){for(;e;e=e.parentNode){var c=e.getElementsByTagName(L);if(c.length>0)return c[0]}return null}; w1f=function(e){if(!e)return 0;var L=e.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return L?(Number(L[2])|0)*3600+(Number(L[4])|0)*60+(Number(L[6])|0):Number(e)|0}; JQR=function(e){return e.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?e+"Z":e}; oZ=function(){this.X=[];this.K=null;this.j=0;this.Z=[];this.B=!1;this.T="";this.G=-1}; V0v=function(e){var L=e.Z;e.Z=[];return L}; CyM=function(){this.G=[];this.X=null;this.K={};this.Z={}}; yQR=function(e,L){var c=[];L=Array.from(L.getElementsByTagName("SegmentTimeline"));L=g.f(L);for(var I=L.next();!I.done;I=L.next()){I=I.value;var B=I.parentNode.parentNode,x=null;B.nodeName==="Period"?x=ahn(e):B.nodeName==="AdaptationSet"?(B=B.getAttribute("id")||B.getAttribute("mimetype")||"",x=Nrx(e,B)):B.nodeName==="Representation"&&(B=B.getAttribute("id")||"",x=m86(e,B));if(x==null)return;x.update(I);g.mN(c,V0v(x))}g.mN(e.G,c);gnM(e.G,function(S){return S.startSecs*1E3+S.X})}; ZnM=function(e){e.X&&(e.X.X=[]);g.Le(e.K,function(L){L.X=[]}); g.Le(e.Z,function(L){L.X=[]})}; ahn=function(e){e.X||(e.X=new oZ);return e.X}; Nrx=function(e,L){e.K[L]||(e.K[L]=new oZ);return e.K[L]}; m86=function(e,L){e.Z[L]||(e.Z[L]=new oZ);return e.Z[L]}; rE=function(e){var L=e===void 0?{}:e;e=L.rP===void 0?0:L.rP;var c=L.ul===void 0?!1:L.ul;var I=L.Ig===void 0?0:L.Ig;var B=L.kf===void 0?0:L.kf;var x=L.YN===void 0?Infinity:L.YN;var S=L.o3===void 0?0:L.o3;var h=L.tq===void 0?!1:L.tq;L=L.T7===void 0?!1:L.T7;g.Qp.call(this);this.P_=this.XO=-1;this.WR=e;this.Ig=I;this.ul=c;this.kf=B;this.YN=x;this.o3=S;((this.tq=h)||isFinite(x)&&this.YN>0)&&c&&S6&&(this.K=!1,this.Z="postLive");this.T7=L}; hB=function(e,L){return PU(e.segments,function(c){return L-c.ud})}; RZ=function(e,L,c){c=c===void 0?{}:c;IZ.call(this,e,L,"",void 0,void 0,c.rP||0);this.index=new rE(c)}; u2=function(e,L,c){$c.call(this,e,L);this.B=c;e=this.index=new g.Qp;e.K=!1;e.Z="d"}; p1M=function(e,L,c){var I=e.index.hV(L),B=e.index.getStartTime(L),x=e.index.getDuration(L);c?x=c=0:c=e.info.r_*x;return new nw([new QC(3,e,void 0,"otfCreateRequestInfoForSegment",L,B,x,0,c)],I)}; $8n=function(e,L){if(!e.index.isLoaded()){var c=[],I=L.G;L=L.B.split(",").filter(function(t){return t.length>0}); for(var B=0,x=0,S=0,h=/^(\d+)/,R=/r=(\d+)/,u=0;u0&&(B.X=Math.min(B.X+S,10),B.K=x);B.X>0?(B.X--,B=!0):B=!1;if(B)typeof I==="function"&&(I=I()),console.log("plyr."+L,I);else{var h;I=((h=d8J.get(L))!=null?h:0)+1;d8J.set(L,I);I%100===1&&console.warn("plyr","plyr."+L+" is chatty, dropping logs.")}}}; QKn=function(){this.X=10;this.K=Date.now()}; qh=function(e,L){this.info=e;this.K=L;this.X=null;this.G=this.Z=-1;this.timestampOffset=0;this.isLocked=this.j=!1;this.B=this.info.X.jN()&&!this.info.K}; g.T6=function(e){return p4J(e.K)}; U8M=function(e,L){L=Math.min(L,e.info.Z);var c=e.K.split(L),I=c.Xo;c=new qh(new QC(e.info.type,e.info.X,e.info.range,e.info.T,e.info.ud,e.info.startTime,e.info.duration,e.info.K,L,!1,e.info.L2,e.info.clipId),c.TD);c.G=e.G;c.Z=e.Z;L=new qh(new QC(e.info.type,e.info.X,e.info.range,e.info.T,e.info.ud,e.info.startTime,e.info.duration,e.info.K+L,e.info.Z-L,e.info.B,e.info.L2,e.info.clipId),I);L.G=e.G;L.Z=e.Z;return[c,L]}; g.W6=function(e,L,c,I){c=c===void 0?!1:c;I=I===void 0?0:I;if(e.isLocked||L.isLocked||!EH(e.info,L.info)||e.info.B)return null;if(I){if(e.K.totalLength+L.K.totalLength>I)return null}else if(c&&(c=e.K,I=L.K,c=!(I.X.length?yHc(c,I.X[0]):1)),c)return null;c=new QC(e.info.type,e.info.X,e.info.range,e.info.T,e.info.ud,e.info.startTime,e.info.duration,e.info.K,e.info.Z,e.info.B,e.info.L2,e.info.clipId);I=L.info;c.Z+=I.Z;c.range&&(c.J+=I.J);c.j=I.j;c.B=I.B;I=new ej;L5(I,e.K);L5(I,L.K);c=new qh(c,I);c.X!= null&&L.X!=null&&(new g.tB("dash")).X(414627957,"merged slice emsg overridden; prev: "+c.X.OD()+" next: "+L.X.OD());c.X=L.X||e.X;c.Z=e.Z!==-1?e.Z:L.Z;c.G=e.G!==-1?e.G:L.G;return c}; g.Mh=function(e){g.Cn(e.info.X.info)||e.info.X.info.Gk();if(e.Z!==-1)return e.Z;if(e.X&&HzJ(e.X))return e.Z=HzJ(e.X),e.Z;if(g.Cn(e.info.X.info)){var L=g.T6(e);for(var c=e.info.X.X,I=NaN,B=NaN,x=0;hN(L,x);){var S=R5(L,x);S.type===1936286840?B=S.data.getUint32(S.dataOffset+8):S.type===1836476516?B=g.o5(S):S.type===1952867444&&isNaN(I)&&(I=g.tN(S));x=u$(S.type)?x+8:x+S.size}!B&&c&&(B=SJ(c));L=I/B}else L=new T7(g.T6(e)),c=e.B?L:new T7(new DataView(e.info.X.X.buffer)),I=g3(c),c=L.pos,L.pos=0,kc(L)?sH(L, 231)?(I=AN(L)*I/1E9,L.pos=c,L=I):(L.pos=c,L=NaN):(L.pos=c,L=NaN);e.Z=L||e.info.G;return e.Z}; X1M=function(e,L){e.timestampOffset>0&&(L-=e.timestampOffset);var c=g.Mh(e)+L;ElJ(e,c);e.timestampOffset=L}; ElJ=function(e,L){g.Cn(e.info.X.info)||e.info.X.info.Gk();e.Z=L;if(g.Cn(e.info.X.info)){var c=g.T6(e);e=e.info.X.X;for(var I=NaN,B=NaN,x=0;hN(c,x);){var S=R5(c,x);isNaN(I)&&(S.type===1936286840?I=S.data.getUint32(S.dataOffset+8):S.type===1836476516&&(I=g.o5(S)));if(S.type===1952867444){!I&&e&&(I=SJ(e));var h=g.tN(S);isNaN(B)&&(B=Math.round(L*I)-h);var R=S;h+=B;if(R.data.getUint8(R.dataOffset)){var u=R.data;R=R.dataOffset+4;u.setUint32(R,Math.floor(h/4294967296));u.setUint32(R+4,h&4294967295)}else R.data.setUint32(R.dataOffset+ 4,h)}x=u$(S.type)?x+8:x+S.size}return!0}c=new T7(g.T6(e));e=e.B?c:new T7(new DataView(e.info.X.X.buffer));I=g3(e);e=c.pos;c.pos=0;if(kc(c)&&sH(c,231))if(B=vm(c,!0),L=Math.floor(L*1E9/I),Math.ceil(Math.log(L)/Math.log(2)/8)>B)L=!1;else{for(I=B-1;I>=0;I--)c.X.setUint8(c.pos+I,L&255),L>>>=8;c.pos=e;L=!0}else L=!1;return L}; sY=function(e,L){L=L===void 0?!1:L;var c=z6(e);e=L?0:e.info.J;return c||e}; z6=function(e){g.Cn(e.info.X.info)||e.info.X.info.Gk();if(e.X&&e.info.type===6)return e.X.rP;if(g.Cn(e.info.X.info)){var L=g.T6(e);var c=0;L=g.qJ(L,1936286840);L=g.f(L);for(var I=L.next();!I.done;I=L.next())I=K5v(I.value),c+=I.SU[0]/I.timescale;c=c||NaN;if(!(c>=0))a:{c=g.T6(e);L=e.info.X.X;for(var B=I=0,x=0;hN(c,I);){var S=R5(c,I);if(S.type===1836476516)B=g.o5(S);else if(S.type===1836019558){!B&&L&&(B=SJ(L));if(!B){c=NaN;break a}var h=r3(S.data,S.dataOffset,1953653094),R=h;h=B;var u=r3(R.data,R.dataOffset, 1952868452);R=r3(R.data,R.dataOffset,1953658222);var t=XL(u);XL(u);t&2&&XL(u);u=t&8?XL(u):0;var O=XL(R),q=O&1;t=O&4;var T=O&256,W=O&512,A=O&1024;O&=2048;var b=KX(R);q&&XL(R);t&&XL(R);for(var J=q=0;J2048?"":L.indexOf("https://")===0?L:""}; i2=function(e,L,c){L.match(rfn);return e(L,c).then(function(I){var B=g.SPT(I.xhr);return B?i2(e,B,c):I.xhr})}; DN=function(e,L,c){e=e===void 0?"":e;L=L===void 0?null:L;c=c===void 0?!1:c;g.Yg.call(this);var I=this;this.sourceUrl=e;this.isLivePlayback=c;this.Pe=this.duration=0;this.isPremiere=this.tq=this.G=this.isLiveHeadPlayable=this.isLive=this.K=!1;this.YN=this.kf=0;this.isOtf=this.Wy=!1;this.Y9=(0,g.zI)();this.pS=Infinity;this.X={};this.Z=new Map;this.state=this.Fc=0;this.timeline=null;this.isManifestless=!1;this.Gm=[];this.j=null;this.Ve=0;this.B="";this.ye=NaN;this.k9=this.RT=this.timestampOffset=this.T= 0;this.pB=this.u9=NaN;this.Cf=0;this.t7=this.D=!1;this.He=[];this.m$={};this.h7=NaN;this.kx={GSW:function(h){G6(I,h)}}; var B;this.d_=(B=L)==null?void 0:B.N0("html5_use_network_error_code_enums");h4r=!!L&&L.N0("html5_modern_vp9_mime_type");var x;gE=!((x=L)==null||!x.N0("html5_enable_flush_during_seek"))&&g.m2();var S;kZ=!((S=L)==null||!S.N0("html5_enable_reset_audio_decoder"))&&g.m2()}; R4M=function(e){return g.xL(e.X,function(L){return!!L.info.video&&L.info.video.qualityOrdinal>=2160})}; izf=function(e){return g.xL(e.X,function(L){return!!L.info.video&&L.info.video.isHdr()})}; wV=function(e){return g.xL(e.X,function(L){return!!L.info.TI})}; g.uIx=function(e){return g.xL(e.X,function(L){return pn(L.info.mimeType)})}; tgx=function(e){return g.xL(e.X,function(L){return L.info.video?L.info.video.projectionType==="EQUIRECTANGULAR":!1})}; Oxc=function(e){return g.xL(e.X,function(L){return L.info.video?L.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; qPM=function(e){return g.xL(e.X,function(L){return L.info.video?L.info.video.projectionType==="MESH":!1})}; T1M=function(e){return g.xL(e.X,function(L){return L.info.video?L.info.video.stereoLayout===1:!1})}; Wl6=function(e){return Vv6(e.X,function(L){return L.info.video?L.Wa():!0})}; gV=function(e){return g.xL(e.X,function(L){return $0(L.V5.X)})}; G6=function(e,L){e.X[L.info.id]=L;e.Z.set(pw(g.mr(L.info,e.Wy)),L)}; Vt=function(e,L,c){c=c===void 0?0:c;var I=e.mimeType||"",B=e.itag;var x=e.xtags;B=B?B.toString():"";x&&(B+=";"+x);x=B;if(Zh(I)){var S=e.width||640;B=e.height||360;var h=e.fps,R=e.qualityLabel,u=e.colorInfo,t=e.projectionType,O;e.stereoLayout&&(O=MgT[e.stereoLayout]);var q=xp$(e)||void 0;if(u==null?0:u.primaries)var T=z4$[u.primaries]||void 0;S=new AQ(S,B,h,t,O,void 0,R,q,T);I=wE(I,S,iy[e.itag||""]);gE&&(I+="; enableflushduringseek=true");kZ&&(I+="; enableresetaudiodecoder=true")}var W;if(yd(I)){var A= e.audioSampleRate;O=e.audioTrack;A=new s7(A?+A:void 0,e.audioChannels,e.spatialAudioType,e.isDrc,e.loudnessDb,e.trackAbsoluteLoudnessLkfs,e.audioQuality||"AUDIO_QUALITY_UNKNOWN",e.isVb);O&&(T=O.displayName,B=O.id,O=O.audioIsDefault,T&&(W=new g.b2(T,B||"",!!O)))}var b;e.captionTrack&&(R=e.captionTrack,O=R.displayName,T=R.vssId,B=R.languageCode,h=R.kind,R=R.id,O&&T&&B&&(b=new IDx(O,T,B,h,e.xtags,R)));O=Number(e.bitrate)/8;T=Number(e.contentLength);B=Number(e.lastModified);R=e.drmFamilies;h=e.type;c= c&&T?T/c:0;e=Number(e.approxDurationMs);if(L&&R){var J={};R=g.f(R);for(u=R.next();!u.done;u=R.next())(u=JB[u.value])&&(J[u]=L[u])}return new Gn(x,I,{audio:A,video:S,l5:W,TI:J,r_:O,mQ:c,contentLength:T,lastModified:B,captionTrack:b,streamType:h,approxDurationMs:e})}; Ck=function(e,L,c){c=c===void 0?0:c;var I=e.type;var B=e.itag;var x=e.xtags;x&&(B=e.itag+";"+x);if(Zh(I)){var S=(e.size||"640x360").split("x");S=new AQ(+S[0],+S[1],+e.fps,e.projection_type,+e.stereo_layout,void 0,e.quality_label,e.eotf,e.primaries);I=wE(I,S,iy[e.itag]);gE&&(I+="; enableflushduringseek=true");kZ&&(I+="; enableresetaudiodecoder=true")}var h;if(yd(I)){var R=new s7(+e.audio_sample_rate||void 0,+e.audio_channels||0,e.spatial_audio_type,!!e.drc);e.name&&(h=new g.b2(e.name,e.audio_track_id, e.isDefault==="1"))}var u;e.caption_display_name&&e.caption_vss_id&&e.caption_language_code&&(u=new IDx(e.caption_display_name,e.caption_vss_id,e.caption_language_code,e.caption_kind,e.xtags,e.caption_id));x=Number(e.bitrate)/8;var t=Number(e.clen),O=Number(e.lmt);c=c&&t?t/c:0;if(L&&e.drm_families){var q={};for(var T=g.f(e.drm_families.split(",")),W=T.next();!W.done;W=T.next())W=W.value,q[W]=L[W]}return new Gn(B,I,{audio:R,video:S,l5:h,TI:q,r_:x,mQ:c,contentLength:t,lastModified:O,captionTrack:u, streamType:e.stream_type,approxDurationMs:Number(e.approx_duration_ms)})}; sic=function(e){return jW(e,function(L){return"FORMAT_STREAM_TYPE_OTF"===L.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; v_R=function(e){return jW(e,function(L){return"FORMAT_STREAM_TYPE_OTF"===L.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; fD$=function(e,L){return e.timeline?yM(e.timeline.G,L):e.Gm.length?yM(e.Gm,L):[]}; aZ=function(e,L,c){L=L===void 0?"":L;c=c===void 0?"":c;e=new g.yp(e,!0);e.set("alr","yes");c&&(c=PNv(decodeURIComponent(c)),e[r[23]](L,encodeURIComponent(c)));return e}; ixc=function(e,L){var c=B6(L,"id");c=c.replace(":",";");var I=B6(L,"mimeType"),B=B6(L,"codecs");I=B?I+'; codecs="'+B+'"':I;B=Number(B6(L,"bandwidth"))/8;var x=Number(xZ(L,"BaseURL").getAttribute(e.B+":contentLength")),S=e.duration&&x?x/e.duration:0;if(Zh(I)){var h=Number(B6(L,"width"));var R=Number(B6(L,"height")),u=Number(B6(L,"frameRate")),t=Aff(B6(L,e.B+":projectionType"));a:switch(B6(L,e.B+":stereoLayout")){case "layout_left_right":var O=1;break a;case "layout_top_bottom":O=2;break a;default:O= 0}h=new AQ(h,R,u,t,O)}if(yd(I)){var q=Number(B6(L,"audioSamplingRate"));var T=Number(B6(L.getElementsByTagName("AudioChannelConfiguration")[0],"value"));R=Fln(B6(L,e.B+":spatialAudioType"));q=new s7(q,T,R);a:{T=B6(L,"lang")||"und";if(R=xZ(L,"Role"))if(t=B6(R,"value")||"",g.uw(bxf,t)){R=T+"."+bxf[t];u=t==="main";e=B6(L,e.B+":langName")||T+" - "+t;T=new g.b2(e,R,u);break a}T=void 0}}if(L=xZ(L,"ContentProtection"))if(L.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var W={};for(L= L.firstChild;L!=null;L=L.nextSibling)L instanceof Element&&/SystemURL/.test(L.nodeName)&&(e=L.getAttribute("type"),R=L.textContent,e&&R&&(W[e]=R.trim()))}else W=void 0;return new Gn(c,I,{audio:q,video:h,l5:T,TI:W,r_:B,mQ:S,contentLength:x})}; Aff=function(e){switch(e){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"}}; Fln=function(e){switch(e){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"}}; g_x=function(e,L){L=L===void 0?"":L;e.state=1;e.Y9=(0,g.zI)();return o_x(L||e.sourceUrl).then(function(c){if(!e.We()){e.Fc=c.status;c=c.responseText;var I=new DOMParser;c=gz(I,aST(c),"text/xml").getElementsByTagName("MPD")[0];e.pS=w1f(B6(c,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(c.attributes){I=g.f(c.attributes);for(var B=I.next();!B.done;B=I.next())if(B=B.value,B.value==="http://youtube.com/yt/2012/10/10"){I=B.name.split(":")[1];break b}}I=""}e.B=I;e.isLive=e.pS=e.pS}; Dpc=function(e){e.j&&e.j.stop()}; GkM=function(e){var L=e.pS;isFinite(L)&&(Nh(e)?e.refresh():(L=Math.max(0,e.Y9+L-(0,g.zI)()),e.j||(e.j=new g.j9(e.refresh,L,e),g.l(e,e.j)),e.j.start(L)))}; wXT=function(e){e=e.X;for(var L in e){var c=e[L].index;if(c.isLoaded())return c.Aw()+1}return 0}; mA=function(e){return e.RT?e.RT-(e.T||e.timestampOffset):0}; ZN=function(e){return e.k9?e.k9-(e.T||e.timestampOffset):0}; pk=function(e){if(!isNaN(e.ye))return e.ye;var L=e.X,c;for(c in L){var I=L[c].index;if(I.isLoaded()&&!pn(L[c].info.mimeType)){L=0;for(c=I.JB();c<=I.Aw();c++)L+=I.getDuration(c);L/=I.QO();L=Math.round(L/.5)*.5;I.QO()>10&&(e.ye=L);return L}if(e.isLive&&(I=L[c],I.rP))return I.rP}return NaN}; Jfc=function(e,L){e=aRf(e.X,function(I){return I.index.isLoaded()}); if(!e)return NaN;e=e.index;var c=e.kI(L);return e.getStartTime(c)===L?L:c=0&&B.segments.splice(x,1)}}}; Ccx=function(e){for(var L in e.X)pn(e.X[L].info.mimeType)||yEn(e.X[L].index,Infinity)}; H6=function(e,L,c){for(var I in e.X){var B=e.X[I].index,x=L,S=c;B.ul&&(x&&(B.XO=Math.max(B.XO,x)),S&&(B.P_=Math.max(B.P_||0,S)))}c&&(e.h7=c/1E3)}; aDv=function(e){e.k9=0;e.RT=0;e.Cf=0}; l2=function(e){return e.t7&&e.isManifestless?e.isLiveHeadPlayable:e.isLive}; wE=function(e,L,c){P6===null&&(P6=window.MediaSource&&MediaSource.isTypeSupported&&MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.16.09.00"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.99.99.00"'));if(h4r&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return P6||c!=="9"&&c!=="("?P6||c!=="9h"&&c!=="(h"||(e='video/webm; codecs="vp9.2"'):e='video/webm; codecs="vp9"',e;if(!P6&&!Qt||e!=='video/webm; codecs="vp9"'&&e!=='video/webm; codecs="vp9.2"')return e; c="00";var I="08",B="01",x="01",S="01";e==='video/webm; codecs="vp9.2"'&&(c="02",I="10",L.primaries==="bt2020"&&(S=B="09"),L.X==="smpte2084"&&(x="16"),L.X==="arib-std-b67"&&(x="18"));return'video/webm; codecs="'+["vp09",c,"51",I,"01",B,x,S,"00"].join(".")+'"'}; UY=function(e,L,c){e=""+e+(L>49?"p60":L>32?"p48":"");L=Ry()[e];if(L!=null&&L>0)return L;L=dE.get(e);if(L!=null&&L>0)return L;c=c==null?void 0:c.get(e);return c!=null&&c>0?c:8192}; N1c=function(e){this.UW=e;this.Bw=this.zS=this.Ve=this.B=this.G=this.He=this.t7=this.pS=!1;this.T=this.j=0;this.d_=!1;this.h7=!0;this.m$=!1;this.Yy=0;this.Cv=this.Gm=!1;this.RI=!0;this.Y9=this.ye=!1;this.X={};this.sY=this.Kf=this.xT=this.disableAv1=this.x9=this.XD=this.Sl=this.DY=this.K=this.J=!1;this.IU=this.UW.Y("html5_disable_aac_preference");this.Q5=Infinity;this.k9=0;this.Cf=this.UW.oT();this.RT=this.UW.experiments.N0("html5_enable_vp9_fairplay");this.pj=this.UW.Y("html5_force_av1_for_testing"); this.Pe=g.X3(this.UW.experiments,"html5_av1_ordinal_cap");this.FD=this.UW.Y("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.m1=this.UW.Y("html5_account_onesie_format_selection_during_format_filter");this.r_=g.X3(this.UW.experiments,"html5_max_byterate");this.gT=this.UW.Y("html5_enable_iamf_audio");this.f9=this.UW.experiments.N0("html5_allow_capability_merge");this.g0=this.UW.Y("html5_enable_encrypted_av1")}; GH6=function(e){if(e.t7)return["f"];if(g.aC("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var L=["9h","9","h","8"];e.g0&&L.push("1e");L=L.concat(["(h","(","H","*"]);e.Gm&&(L.unshift("1"),L.unshift("1h"));e.zS&&L.unshift("h");e.D&&(L=(mpr[e.D]||[e.D]).concat(L));return L}; s0c=function(e){var L=["o","a","A"];e.k9===1&&(e.G&&(L=["mac3","MAC3"].concat(L)),e.B&&(L=["meac3","MEAC3"].concat(L)),e.gT&&(L=["i","I"].concat(L)));e.pS&&(L=["so","sa"].concat(L));!e.Bw||e.Ve||e.Z||e.IU||L.unshift("a");e.Z&&(L=(mpr[e.Z]||[e.Z]).concat(L));return L}; EY=function(e,L,c,I){L=L===void 0?{}:L;if(I===void 0?0:I)return L.disabled=1,0;if(NB(e.B,mJ.AV1_CODECS)&&NB(e.B,mJ.HEIGHT)&&NB(e.B,mJ.BITRATE))return L.isCapabilityUsable=1,8192;try{var B=L5f();if(B&&!e.Y("disable_av1_setting"))return L.localPref=B}catch(h){}I=1080;B=navigator.hardwareConcurrency;B<=2&&(I=480);L.coreCount=B;if(B=g.X3(e.experiments,"html5_default_av1_threshold"))I=L["default"]=B;!e.Y("html5_disable_av1_arm_check")&&zLM()&&(L.isArm=1,I=240);if(e=e.B.h7)L.mcap=e,I=Math.max(I,e);if(c){var x, S;if(e=(x=c.videoInfos.find(function(h){return wr(h)}))==null?void 0:(S=x.K)==null?void 0:S.powerEfficient)I=8192,L.isEfficient=1; c=c.videoInfos[0].video;x=Math.min(UY("1",c.fps),UY("1",30));L.perfCap=x;I=Math.min(I,x);c.isHdr()&&!e&&(L.hdr=1,I*=.75)}else c=UY("1",30),L.perfCap30=c,I=Math.min(I,c),c=UY("1",60),L.perfCap60=c,I=Math.min(I,c);return L.av1Threshold=I}; XN=function(e,L,c,I){this.flavor=e;this.keySystem=L;this.K=c;this.experiments=I;this.X={};this.Pe=this.keySystemAccess=null;this.yR=this.WK=-1;this.eA=null;this.Z=!!I&&I.N0("edge_nonprefixed_eme");I&&I.N0("html5_enable_vp9_fairplay")}; YZ=function(e){return e.Z?!1:!e.keySystemAccess&&!!Kk()&&e.keySystem==="com.microsoft.playready"}; nk=function(e){return e.keySystem==="com.microsoft.playready"}; e8=function(e){return!e.keySystemAccess&&!!Kk()&&e.keySystem==="com.apple.fps.1_0"}; Ll=function(e){return e.keySystem==="com.youtube.fairplay"}; cr=function(e){return e.keySystem==="com.youtube.fairplay.sbdl"}; g.Il=function(e){return e.flavor==="fairplay"}; Kk=function(){var e=window,L=e.MSMediaKeys;pQ()&&!L&&(L=e.WebKitMediaKeys);return L&&L.isTypeSupported?L:null}; ol=function(e){return navigator.requestMediaKeySystemAccess?g.q8&&!g.m2()?MZ("45"):g.ZQ||g.oA?e.N0("edge_nonprefixed_eme"):g.Br?MZ("47"):g.RM&&e.N0("html5_enable_safari_fairplay")?!1:!0:!1}; yf6=function(e,L,c,I){var B=y2(),x=(c=B||c&&pQ())?["com.youtube.fairplay"]:["com.widevine.alpha"];L&&x.unshift("com.youtube.widevine.l3");B&&I&&x.unshift("com.youtube.fairplay.sbdl");return c?x:e?[].concat(g.V(x),g.V(S8.playready)):[].concat(g.V(S8.playready),g.V(x))}; r$=function(e,L,c,I,B){I=I===void 0?!1:I;g.p.call(this);this.UW=L;this.useCobaltWidevine=I;this.sW=B;this.K=[];this.Z={};this.X={};this.callback=null;this.B=!1;this.G=[];this.initialize(e,!c)}; pXc=function(e,L){e.callback=L;e.G=[];ol(e.UW.experiments)?Rl(e):Zxr(e)}; Rl=function(e){if(!e.We())if(e.K.length===0)e.callback(e.G);else{var L=e.K[0],c=e.Z[L],I=$pn(e,c);if(uC&&uC.keySystem===L&&uC.sy_===JSON.stringify(I))e.sW("remksa",{re:!0}),jiv(e,c,uC.keySystemAccess);else{var B,x;e.sW("remksa",{re:!1,ok:(x=(B=uC)==null?void 0:B.keySystem)!=null?x:""});uC=void 0;navigator.requestMediaKeySystemAccess(L,I).then(mg(function(S){jiv(e,c,S,I)}),mg(function(){e.B=!e.B&&e.Z[e.K[0]].flavor==="widevine"; e.B||e.K.shift();Rl(e)}))}}}; jiv=function(e,L,c,I){if(!e.We()){I&&(uC={keySystem:L.keySystem,keySystemAccess:c,sy_:JSON.stringify(I)});L.keySystemAccess=c;if(nk(L)){c=tQ();I=g.f(Object.keys(e.X[L.flavor]));for(var B=I.next();!B.done;B=I.next())B=B.value,L.X[B]=!!c.canPlayType(B)}else{c=L.keySystemAccess.getConfiguration();if(c.audioCapabilities)for(I=g.f(c.audioCapabilities),B=I.next();!B.done;B=I.next())L.X[B.value.contentType]=!0;if(c.videoCapabilities)for(c=g.f(c.videoCapabilities),I=c.next();!I.done;I=c.next())L.X[I.value.contentType]= !0}e.G.push(L);e.useCobaltWidevine||e.Y("html5_enable_vp9_fairplay")&&cr(L)?(e.K.shift(),Rl(e)):e.callback(e.G)}}; $pn=function(e,L){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(e.Y("html5_enable_vp9_fairplay")&&Ll(L))return c.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),c.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[c];nk(L)&&(c.initDataTypes=["keyids","cenc"]);for(var I=g.f(Object.keys(e.X[L.flavor])),B=I.next();!B.done;B=I.next()){B=B.value;var x=B.indexOf("audio/")===0,S=x?c.audioCapabilities:c.videoCapabilities;L.flavor!== "widevine"||e.B?S.push({contentType:B}):x?S.push({contentType:B,robustness:"SW_SECURE_CRYPTO"}):(g.q8&&g.aC("windows nt")&&!e.Y("html5_drm_enable_moho")||S.push({contentType:B,robustness:"HW_SECURE_ALL"}),x=B,e.UW.B.Z&&B.includes("vp09")&&(x=B+"; experimental=allowed"),S.push({contentType:x,robustness:"SW_SECURE_DECODE"}),tb(e.UW)==="MWEB"&&(Q2()||NL())&&(e.sW("swcrypto",{}),S.push({contentType:B,robustness:"SW_SECURE_CRYPTO"})))}return[c]}; Zxr=function(e){if(Kk()&&(g.RM||jG))e.G.push(new XN("fairplay","com.apple.fps.1_0","",e.UW.experiments));else{var L=Hxc(),c=g.vU(e.K,function(I){var B=e.Z[I],x=!1,S=!1,h;for(h in e.X[B.flavor])L(h,I)&&(B.X[h]=!0,x=x||h.indexOf("audio/")===0,S=S||h.indexOf("video/")===0);return x&&S}); c&&e.G.push(e.Z[c]);e.K=[]}e.callback(e.G)}; Hxc=function(){var e=Kk();if(e){var L=e.isTypeSupported;return function(I,B){return L(B,I)}}var c=tQ(); return c&&(c.addKey||c.webkitAddKey)?function(I,B){return!!c.canPlayType(I,B)}:function(){return!1}}; lDn=function(e){this.experiments=e;this.X=2048;this.G=0;this.pS=(this.T=this.Y("html5_streaming_resilience"))?.5:.25;var L=L===void 0?0:L;this.Z=g.X3(this.experiments,"html5_media_time_weight_prop")||L;this.D=(this.B=this.experiments.N0("html5_consider_end_stall"))&&Oh;this.K=this.experiments.N0("html5_measure_max_progress_handling");this.J=this.Y("html5_treat_requests_pre_elbow_as_metadata");this.j=this.Y("html5_media_time_weight")||!!this.Z;this.Y("html5_sabr_live_audio_early_return_fix")&&Oh&& (this.X=65536)}; Pcc=function(e,L){this.X=void 0;this.experimentIds=e?e.split(","):[];this.flags=Pu(L||"","&");e={};L=g.f(this.experimentIds);for(var c=L.next();!c.done;c=L.next())e[c.value]=!0;this.experiments=e}; g.X3=function(e,L){e=e.flags[L];JSON.stringify(e);return Number(e)||0}; qX=function(e,L){return(e=e.flags[L])?e.toString():""}; Qin=function(e){if(e=e.flags.html5_web_po_experiment_ids)if(e=e.replace(/\[ *(.*?) *\]/,"$1"))return e.split(",").map(Number);return[]}; dpr=function(e){if(e.X)return e.X;if(e.experimentIds.length<=1)return e.X=e.experimentIds,e.X;var L=[].concat(g.V(e.experimentIds)).map(function(I){return Number(I)}); L.sort();for(var c=L.length-1;c>0;--c)L[c]-=L[c-1];e.X=L.map(function(I){return I.toString()}); e.X.unshift("v1");return e.X}; E_v=function(e){return UpM.then(e)}; To=function(e,L,c){this.experiments=e;this.k9=L;this.Ve=c===void 0?!1:c;this.D=!!g.BU("cast.receiver.platform.canDisplayType");this.J={};this.pS=!1;this.G=new Map;this.T=!0;this.K=this.Z=!1;this.X=new Map;this.h7=0;this.Gm=this.experiments.N0("html5_disable_vp9_encrypted");this.B=this.experiments.N0("html5_enable_encrypted_av1");e=g.BU("cast.receiver.platform.getValue");this.j=!this.D&&e&&e("max-video-resolution-vpx")||null;XXx(this);this.Z=!!(y2()&&CQ()>=21)}; Din=function(e,L,c){c=c===void 0?1:c;var I=L.itag;if(I==="0")return!0;var B=L.mimeType;if(L.EW==="1e"&&!e.B)return"dav1enc";if(wr(L)&&e.pS)return"dav1";if(L.video&&(L.video.isHdr()||L.video.primaries==="bt2020")&&!(NB(e,mJ.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(I==="338"&&!(g.q8?MZ(53):g.Br&&MZ(64)))return"dopus";var x=c;x=x===void 0?1: x;c={};L.video&&(L.video.width&&(c[mJ.WIDTH.name]=L.video.width),L.video.height&&(c[mJ.HEIGHT.name]=L.video.height),L.video.fps&&(c[mJ.FRAMERATE.name]=L.video.fps*x),L.video.X&&(c[mJ.EOTF.name]=L.video.X),L.r_&&(c[mJ.BITRATE.name]=L.r_*8*x),L.EW==="("&&(c[mJ.CRYPTOBLOCKFORMAT.name]="subsample"),L.video.projectionType==="EQUIRECTANGULAR"||L.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||L.video.projectionType==="MESH")&&(c[mJ.DECODETOTEXTURE.name]="true");L.audio&&L.audio.numChannels&& (c[mJ.CHANNELS.name]=L.audio.numChannels);e.Z&&gr(L)&&(c[mJ.EXPERIMENTAL.name]="allowed");x=g.f(Object.keys(mJ));for(var S=x.next();!S.done;S=x.next()){S=mJ[S.value];var h;if(h=c[S.name])if(h=!(S===mJ.EOTF&&L.mimeType.indexOf("vp09.02")>0)){h=S;var R=L;h=!(e.experiments.N0("html5_ignore_h264_framerate_cap")&&h===mJ.FRAMERATE&&Dwv(R))}if(h)if(NB(e,S))if(e.j){if(e.j[S.name] 1080&&L.TI&&(B+="; hdcp=2.2");return I==="227"?"hqcenc":I!=="585"&&I!=="588"&&I!=="583"&&I!=="586"&&I!=="584"&&I!=="587"&&I!=="591"&&I!=="592"||e.experiments.N0("html5_enable_new_hvc_enc")?y2()&&CQ()>=21&&g.aC("appletv5")&&(I==="410"||I==="845")?!0:e.isTypeSupported(B)?!0:"tpus":"newhvc"}; Wr=function(){var e=NL()&&!MZ(29),L=g.aC("google tv")&&g.aC("chrome")&&!MZ(30);return e||L?!1:NJJ()}; KlJ=function(e,L,c){var I=480;L=g.f(L);for(var B=L.next();!B.done;B=L.next()){B=B.value;var x=B.video.qualityOrdinal;x<=1080&&x>I&&Din(e,B,c)===!0&&(I=x)}return I}; g.MX=function(e,L){L=L===void 0?!1:L;return Wr()&&e.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!L&&e.canPlayType(tQ(),"application/x-mpegURL")?!0:!1}; n_r=function(e){YPT(function(){for(var L=g.f(Object.keys(mJ)),c=L.next();!c.done;c=L.next())NB(e,mJ[c.value])})}; NB=function(e,L){L.name in e.J||(e.J[L.name]=eJx(e,L));return e.J[L.name]}; eJx=function(e,L){if(e.j)return!!e.j[L.name];if(L===mJ.BITRATE&&e.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!e.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(L===mJ.AV1_CODECS)return e.isTypeSupported("video/mp4; codecs="+L.valid)&&!e.isTypeSupported("video/mp4; codecs="+L.CV);if(L.video){var c='video/webm; codecs="vp9"';e.isTypeSupported(c)||(c='video/mp4; codecs="avc1.4d401e"')}else c='audio/webm; codecs="opus"', e.isTypeSupported(c)||(c='audio/mp4; codecs="mp4a.40.2"');return e.isTypeSupported(c+"; "+L.name+"="+L.valid)&&!e.isTypeSupported(c+"; "+L.name+"="+L.CV)}; Lpr=function(e,L){var c=0;e.G.has(L)&&(c=e.G.get(L).aK);e.G.set(L,{aK:c+1,P6:Math.pow(2,c+1)});e.K=!0}; Je=function(e){for(var L=[],c=g.f(e.X.keys()),I=c.next();!I.done;I=c.next()){I=I.value;var B=e.X.get(I);L.push(I+"_"+B.maxWidth+"_"+B.maxHeight)}return L.join(".")}; f4n=function(e,L){for(var c=new Map,I=g.f(e.X.keys()),B=I.next();!B.done;B=I.next()){B=B.value;var x=B.split("_")[0];L.has(x)||c.set(B,e.X.get(B))}e.X=c}; F5J=function(e,L,c){var I,B=((I=c.video)==null?void 0:I.fps)||0;I=L+"_"+B;var x=!!c.audio,S={itag:c.itag,EW:L,Cu:x};if(x)S.numChannels=c.audio.numChannels;else{var h=c.video;S.maxWidth=h==null?void 0:h.width;S.maxHeight=h==null?void 0:h.height;S.maxFramerate=B;NB(e,mJ.BITRATE)&&(S.maxBitrateBps=c.r_*8);S.HY=h==null?void 0:h.isHdr()}h=e.X.get(I);h?x||(c=Math.max(h.maxWidth||0,h.maxHeight||0)>Math.max(S.maxWidth||0,S.maxHeight||0)?h:S,L={itag:c.itag,EW:L,Cu:x,maxWidth:Math.max(h.maxWidth||0,S.maxWidth|| 0),maxHeight:Math.max(h.maxHeight||0,S.maxHeight||0),maxFramerate:B,HY:c.HY},NB(e,mJ.BITRATE)&&(L.maxBitrateBps=c.maxBitrateBps),e.X.set(I,L)):e.X.set(I,S)}; bz6=function(e,L,c){var I,B=((I=c.video)==null?void 0:I.fps)||0;I=L+"_"+B;var x=!!c.audio,S=e.X.get(I);a:{var h=e.X.get(I),R=!!c.audio;if(h){if(R){var u=!1;break a}var t;if(!R&&((u=c.video)==null?0:u.height)&&h.maxHeight&&h.maxHeight>=((t=c.video)==null?void 0:t.height)){u=!1;break a}}u=!0}u&&(u=c.itag,L=S?S:{itag:u,EW:L,Cu:x},x?L.numChannels=c.audio.numChannels:(x=c.video,L.maxWidth=x==null?void 0:x.width,L.maxHeight=x==null?void 0:x.height,L.maxFramerate=B,NB(e,mJ.BITRATE)&&(L.maxBitrateBps=c.r_* 8),L.HY=x==null?void 0:x.isHdr()),e.X.set(I,L))}; XXx=function(e){var L;(L=navigator.mediaCapabilities)!=null&&L.decodingInfo&&navigator.mediaCapabilities.decodingInfo({type:"media-source",video:{contentType:'video/mp4; codecs="av01.0.12M.08"',width:3840,height:2160,bitrate:32E6,framerate:60}}).then(function(c){c.smooth&&c.powerEfficient&&(e.h7=2160)})}; zo=function(){g.Yg.call(this);this.items={}}; sh=function(e,L){this.X=e;this.cipher=this.X.exports.AES128CTRCipher_create(L.byteOffset)}; fl=function(){this.K=this.xv=0;this.X=Array.from({length:vr.length}).fill(0)}; ctM=function(){}; IO$=function(){this.startTimeMs=(0,g.zI)();this.X=!1}; Bhx=function(){this.X=new ctM}; xmn=function(e,L,c,I){I=I===void 0?1:I;c>=0&&(L in e.X||(e.X[L]=new fl),e.X[L].LB(c,I))}; o9r=function(e,L,c,I,B){var x=(0,g.zI)(),S=B?B(L):void 0,h;B=(h=S==null?void 0:S.xv)!=null?h:1;if(B!==0){var R;h=(R=S==null?void 0:S.profile)!=null?R:c;xmn(e,h,x-I,B)}return L}; SJM=function(e,L,c,I,B){if(L&&typeof L==="object"){var x=function(S){return o9r(e,S,c,I,B)}; if(fb(L))return L.then(x);if(v$(L))return GR(L,x)}return o9r(e,L,c,I,B)}; rtv=function(){}; uav=function(e,L){return kB(hJ6,function(){var c=this;return function B(){var x,S,h;return jv(B,function(R){switch(R.K){case 1:g.Gc(R,2);if(!c.G)throw"wasm.ps.ns";x=e;S=ln;return f6(R,Dj(RJH(c,L)),4);case 4:h=S(R.X);if(!h)throw"wasm.ps.um";try{return R.return(new WebAssembly.Instance(h,x))}catch(u){}return f6(R,Dj(WebAssembly.instantiate(h,x)),5);case 5:return R.return(R.X);case 2:g.NM(R),g.mf(R,0)}})}()})}; tsT=function(e,L){e.X||(e.X=GR(bs(function(){return fetch(L)}),function(c){return c.arrayBuffer()}),g8(e.X,function(c){e.X=void 0; throw"wasm.ps.f: "+c;}))}; RJH=function(e,L){if(e.K)return e.K;e.K=OL6(e,L);g8(e.K,function(c){e.K=void 0;throw"wasm.ps.c: "+c;}); return e.K}; OL6=function(e,L){return kB(e,function(){var c=this;return function B(){var x,S,h,R,u,t,O,q,T,W,A,b,J,w;return jv(B,function(C){switch(C.K){case 1:g.Gc(C,2);x=[];S=window.ywc;if(!S){C.Iq(4);break}h=S[L];if(!h){C.Iq(4);break}if(h.mod)return C.return(h.mod);if(!h.modP){C.Iq(6);break}g.bn(C,7);R=ln;return f6(C,Dj(h.modP),9);case 9:return C.return(R(C.X));case 7:g.wc(C),x.unshift("pcm");case 6:if(h.bin){c.X=AR(h.bin);C.Iq(4);break}if(!h.binP){C.Iq(4);break}g.bn(C,12);u=sT;t=AR;O=ln;return f6(C,Dj(h.binP), 14);case 14:c.X=t.call(u,O(C.X));g.DR(C,4);break;case 12:g.wc(C),c.X=void 0,x.unshift("pfb");case 4:if(!c.X){C.Iq(15);break}g.bn(C,16);q=ln;return f6(C,Dj(c.X),18);case 18:T=q(C.X);if(c.Z)try{return C.return(new WebAssembly.Module(T))}catch(y){c.Z=!1,x.unshift("f0cs")}W=ln;return f6(C,Dj(WebAssembly.compile(T)),19);case 19:return C.return(W(C.X));case 16:g.wc(C),c.X=void 0,x.unshift("f0ca");case 15:return g.bn(C,20),tsT(c,L),A=ln,f6(C,Dj(c.X),22);case 22:b=A(C.X);if(c.Z)try{return C.return(new WebAssembly.Module(b))}catch(y){c.Z= !1,x.unshift("f1cs")}J=ln;return f6(C,Dj(WebAssembly.compile(b)),23);case 23:return C.return(J(C.X));case 20:w=g.wc(C),c.X=void 0,c.G=!1,x.unshift("f1ca: "+w);case 21:throw"["+x.map(function(y){return'"'+y+'"'}).join(", ")+"]"; case 2:g.NM(C),g.mf(C,0)}})}()})}; qJn=function(){}; ThJ=function(){var e=this;this.proc_exit=function(){}; this.fd_write=function(L,c,I){if(!e.exports)return 1;L=new Uint32Array(e.exports.memory.buffer,c,I*2);c=[];for(var B=0;B0)L=e.byterate,this.pS=!0;else{var I; c=(((I=navigator.connection)==null?void 0:I.downlink)||0)*64*1024;c>0&&(L=c,this.pS=!0)}this.Z.lE(this.policy.j,L);e.delay>0&&this.J.lE(1,Math.min(e.delay,2));e.stall>0&&this.T.lE(1,e.stall);e.init>0&&(this.Y9=Math.min(e.init,this.Y9));e.interruptions&&(this.G=this.G.concat(e.interruptions),this.G.length>16&&this.G.pop());this.h7=(0,g.zI)();this.policy.T>0&&(this.t7=new g.j9(this.He,this.policy.T,this),g.l(this,this.t7),this.t7.start())}; al=function(e,L,c,I){e.Z.lE(I===void 0?L:I,c/L);e.j=(0,g.zI)()}; Fpx=function(e){e.B||(e.B=(0,g.zI)());e.policy.D&&(e.j=(0,g.zI)())}; bLf=function(e,L){if(e.B){var c=L-e.B;if(c<6E4){if(c>1E3){var I=e.interruptions;I.push(Math.ceil(c));I.sort(function(B,x){return x-B}); I.length>16&&I.pop()}e.k9+=c}}e.B=L}; NX=function(e,L,c,I,B,x){x=x===void 0?!1:x;e.ye.lE(L,c/L);e.j=(0,g.zI)();B||e.D.lE(1,L-I);x||(e.B=0);e.h7>-1&&(0,g.zI)()-e.h7>3E4&&iLn(e)}; mX=function(e,L,c){L=Math.max(L,e.K.X);e.T.lE(1,c/L)}; yG=function(e){e=e.J.EK()+e.Ve.EK()||0;e=isNaN(e)?.5:e;return e=Math.min(e,5)}; Zz=function(e,L,c){isNaN(c)||(e.Gm+=c);isNaN(L)||(e.Pe+=L)}; pl=function(e){e=e.Z.EK();return e>0?e:1}; $y=function(e,L,c){L=L===void 0?!1:L;c=c===void 0?1048576:c;var I=pl(e);I=1/((e.T.EK()||0)*e.policy.pS+1/I);var B=e.ye.EK();B=B>0?B:1;var x=Math.max(I,B);e.policy.B>0&&B=4E3}; g9J=function(e){this.experiments=e;this.X=17;this.Z=13E4;this.j=.5;this.G=this.K=!1;this.h7=this.Y("html5_use_histogram_for_bandwidth");this.B=g.X3(this.experiments,"html5_auxiliary_estimate_weight");this.pS=g.X3(this.experiments,"html5_stall_factor")||1;this.T=g.X3(this.experiments,"html5_check_for_idle_network_interval_ms");this.J=this.experiments.N0("html5_trigger_loader_when_idle_network");this.D=this.experiments.N0("html5_sabr_fetch_on_idle_network_preloaded_players")}; DmH=function(e,L){e=e===void 0?{}:e;L=L===void 0?{}:L;g.p.call(this);var c=this;this.values=e;this.wz=L;this.K={};this.Z=this.X=0;this.G=new g.j9(function(){k5M(c)},1E4); g.l(this,this.G)}; Hr=function(e,L){wwf(e,L);return e.values[L]&&e.wz[L]?e.values[L]/Math.pow(2,e.X/e.wz[L]):0}; wwf=function(e,L){e.values[L]||(L=KFc(),e.values=L.values||{},e.wz=L.halfLives||{},e.K=L.values?Object.assign({},L.values):{})}; k5M=function(e){var L=KFc();if(L.values){L=L.values;for(var c={},I=g.f(Object.keys(e.values)),B=I.next();!B.done;B=I.next())B=B.value,L[B]&&e.K[B]&&(e.values[B]+=L[B]-e.K[B]),c[B]=Hr(e,B);e.K=c}L=e.wz;c={};c.values=e.K;c.halfLives=L;g.bS("yt-player-memory",c,2592E3)}; rb=function(e,L,c,I,B){g.p.call(this);this.webPlayerContextConfig=L;this.V2=I;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.kN=this.sY=this.FD=this.aF=this.userDisplayName=this.userDisplayImage=this.J9="";this.X={};this.RT={};this.controlsType="0";this.Bw=NaN;this.Sl=!1;this.OF=(0,g.zI)();this.Kf=0;this.Gc=this.u9=!1;this.sE=!0;this.preferGapless=this.eA=this.Cj=this.Z=this.PM=!1;this.FR=[];this.gZ=!1;this.je=0;e=e?g.MQ(e):{};L&&L.csiPageType&&(this.csiPageType=L.csiPageType);L&&L.csiServiceName&& (this.csiServiceName=L.csiServiceName);L&&L.preferGapless&&(this.preferGapless=L.preferGapless);this.experiments=new Pcc(L?L.serializedExperimentIds:e.fexp,L?L.serializedExperimentFlags:e.fflags);this.forcedExperiments=L?L.serializedForcedExperimentIds:Ya("",e.forced_experiments)||void 0;this.cspNonce=(L==null?0:L.cspNonce)?L.cspNonce:Ya("",e.csp_nonce);this.Y("web_player_deprecated_uvr_killswitch");try{var x=document.location.toString()}catch(X){x=""}this.Yf=x;this.ancestorOrigins=(I=window.location.ancestorOrigins)? Array.from(I):[];this.G=EN(!1,L?L.isEmbed:e.is_embed);if(L&&L.device){if(I=L.device,I.androidOsExperience&&(this.X.caoe=""+I.androidOsExperience),I.androidPlayServicesVersion&&(this.X.capsv=""+I.androidPlayServicesVersion),I.brand&&(this.X.cbrand=I.brand),I.browser&&(this.X.cbr=I.browser),I.browserVersion&&(this.X.cbrver=I.browserVersion),I.cobaltReleaseVehicle&&(this.X.ccrv=""+I.cobaltReleaseVehicle),this.X.c=I.interfaceName||"WEB",this.X.cver=I.interfaceVersion||"html5",I.interfaceTheme&&(this.X.ctheme= I.interfaceTheme),this.X.cplayer=I.interfacePlayerType||"UNIPLAYER",I.model&&(this.X.cmodel=I.model),I.network&&(this.X.cnetwork=I.network),I.os&&(this.X.cos=I.os),I.osVersion&&(this.X.cosver=I.osVersion),I.platform&&(this.X.cplatform=I.platform),x=qX(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),x==="all"||x==="once")I.chipset&&(this.RT.cchip=I.chipset),I.cobaltAppVersion&&(this.RT.ccappver=I.cobaltAppVersion),I.firmwareVersion&&(this.RT.cfrmver=I.firmwareVersion),I.deviceYear&&(this.RT.crqyear= I.deviceYear)}else this.X.c=e.c||"web",this.X.cver=e.cver||"html5",this.X.cplayer="UNIPLAYER";this.loaderUrl=L?this.G||Jtr(this)&&L.loaderUrl?L.loaderUrl||"":this.Yf:this.G||Jtr(this)&&e.loaderUrl?Ya("",e.loaderUrl):this.Yf;this.G&&g.IL("yt.embedded_player.embed_url",this.loaderUrl);this.J=a2(this.loaderUrl,VsH);I=this.loaderUrl;var S=S===void 0?!1:S;this.wX=CC(a2(I,CP$),I,S,"Trusted Ad Domain URL");this.Q5=EN(!1,e.privembed);this.protocol=this.Yf.indexOf("http:")===0?"http":"https";this.PU=u76((L? L.customBaseYoutubeUrl:e.BASE_YT_URL)||"")||u76(this.Yf)||this.protocol+"://www.youtube.com/";S=L?L.eventLabel:e.el;I="detailpage";S==="adunit"?I=this.G?"embedded":"detailpage":S==="embedded"||this.J?I=X1(I,S,aOR):S&&(I="embedded");this.Ve=I;gJR();S=null;I=L?L.playerStyle:e.ps;x=g.Fh(NhR,I);!I||x&&!this.J||(S=I);this.playerStyle=S;this.j=g.Fh(NhR,this.playerStyle);this.houseBrandUserStatus=L==null?void 0:L.houseBrandUserStatus;this.h7=this.j&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard"; this.q2=!this.h7;this.t7=EN(!1,e.disableplaybackui);this.disablePaidContentOverlay=EN(!1,L==null?void 0:L.disablePaidContentOverlay);this.disableSeek=EN(!1,L==null?void 0:L.disableSeek);this.enableSpeedOptions=(L==null?void 0:L.enableSpeedOptions)||(tQ().defaultPlaybackRate?lC||g.P3||Pr?g.Br&&MZ("20")||g.q8&&MZ("4")||g.QG&&MZ("11")||$a():!(g.QG&&!g.aC("chrome")||lC||g.aC("android")||g.aC("silk")):!1);this.tO=EN(!1,e.enable_faster_speeds);var h;this.supportsVarispeedExtendedFeatures=(h=L==null?void 0: L.supportsVarispeedExtendedFeatures)!=null?h:!1;this.K=EN(this.playerStyle==="blazer",e.is_html5_mobile_device||L&&L.isMobileDevice);this.Pe=lL()||Q2();this.ej=this.Y("mweb_allow_background_playback")?!1:this.K&&!this.j;this.ye=M8();this.E5=g.d$;var R;this.pX=!!(L==null?0:(R=L.embedsHostFlags)==null?0:R.optOutApiDeprecation);this.DB=this.Y("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var u;L?L.hideInfo!==void 0&&(u=!L.hideInfo):u=e.showinfo;this.qk=g.Uh(this)&&!this.pX||EN(!Eh(this)&& !XB(this)&&!this.j,u);this.Z0=L?!!L.mobileIphoneSupportsInlinePlayback:EN(!1,e.playsinline);h=this.K&&Kl&&Yy!=null&&Yy>0&&Yy<=2.3;R=L?L.useNativeControls:e.use_native_controls;this.T=g.Uh(this)&&this.K;u=this.K&&!this.T;R=g.nl(this)||!h&&EN(u,R)?"3":"1";this.disableOrganicUi=!(L==null||!L.disableOrganicUi);u=L?L.controlsType:e.controls;this.controlsType=this.disableOrganicUi||u==="0"||u===0?"0":R;this.a8=this.K;this.color=X1("red",L?L.progressBarColor:e.color,mmv);this.Cw=this.controlsType==="3"; this.Cf=!this.G;this.Uh=(R=!this.Cf&&!XB(this)&&!this.h7&&!this.j&&!Eh(this))&&!this.Cw&&this.controlsType==="1";this.f9=g.eb(this)&&R&&this.controlsType==="0"&&!this.Uh&&!(L==null?0:L.embedsEnableEmc3ds);this.zw=this.iZ=h;this.g0=(this.controlsType==="3"||this.K||EN(!1,e.use_media_volume))&&!this.T;this.Il=jG&&!g.$C(601)?!1:!0;this.Zl=this.G||!1;this.xT=XB(this)?"":(this.loaderUrl||e.post_message_origin||"").substring(0,128);this.widgetReferrer=Ya("",L?L.widgetReferrer:e.widget_referrer);var t;L? L.disableCastApi&&(t=!1):t=e.enablecastapi;t=!this.J||EN(!0,t);h=!0;L&&L.disableMdxCast&&(h=!1);this.Hv=this.Y("enable_cast_for_web_unplugged")&&g.L8(this)&&h||g.DF(this)&&h||t&&h&&this.controlsType==="1"&&!this.K&&(XB(this)||g.eb(this)||g.cn(this));this.Xy=!!window.document.pictureInPictureEnabled||W1();t=L?!!L.supportsAutoplayOverride:EN(!1,e.autoplayoverride);this.tj=!(this.K&&!g.Uh(this))&&!g.aC("nintendo wiiu")||t;this.Fk=(L?!!L.enableMutedAutoplay:EN(!1,e.mutedautoplay))&&!1;t=(XB(this)||Eh(this))&& this.playerStyle==="blazer";this.mR=L?!!L.disableFullscreen:!EN(!0,e.fs);h=g.cI(g.ID(this))&&g.Uh(this);this.DY=!this.mR&&(t||g.h7())&&!h;this.Jo=this.Y("html5_picture_in_picture_logging_onresize");var O;this.Ao=(O=g.X3(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?O:.33;this.hB=this.Y("html5_picture_in_picture_blocking_onresize");this.al=this.Y("html5_picture_in_picture_blocking_ontimeupdate");this.Fz=this.Y("html5_picture_in_picture_blocking_document_fullscreen");this.KX= this.Y("html5_picture_in_picture_blocking_standard_api");O=NL()&&MZ(58)&&!Q2();t=ya||typeof MediaSource==="undefined";this.h1=this.Y("uniplayer_block_pip")&&(O||t)||this.hB||this.al||this.KX;O=g.Uh(this)&&!this.pX;var q;L?L.disableRelatedVideos!==void 0&&(q=!L.disableRelatedVideos):q=e.rel;this.m1=O||EN(!this.j,q);this.Dl=EN(!1,L?L.enableContentOwnerRelatedVideos:e.co_rel);this.D=Q2()&&Yy>0&&Yy<=4.4?"_top":"_blank";this.sK=g.cn(this);this.XK=EN(this.playerStyle==="blazer",L?L.enableCsiLogging:e.enablecsi); switch(this.playerStyle){case "blogger":q="bl";break;case "gmail":q="gm";break;case "gac":q="ga";break;case "ads-preview":q="ap";break;case "books":q="gb";break;case "docs":case "flix":q="gd";break;case "duo":q="gu";break;case "google-live":q="gl";break;case "google-one":q="go";break;case "play":case "play-ads":q="gp";break;case "chat":q="hc";break;case "hangouts-meet":q="hm";break;case "photos-edu":case "picasaweb":q="pw";break;default:q="yt"}this.pS=q;this.Gm=Ya("",L?L.authorizedUserIndex:e.authuser); this.gT=g.Uh(this)&&(this.Q5||!Wa$()||this.Pe);var T;L?L.disableWatchLater!==void 0&&(T=!L.disableWatchLater):T=e.showwatchlater;this.Nl=((q=!this.gT)||!!this.Gm&&q)&&EN(!this.h7,this.J?T:void 0);this.pj=L?L.isMobileDevice||!!L.disableKeyboardControls:EN(!1,e.disablekb);this.loop=EN(!1,e.loop);this.pageId=Ya("",L?L.initialDelegatedSessionId:e.pageid);this.rX=EN(!0,e.canplaylive);this.x9=EN(!1,e.livemonitor);this.disableSharing=EN(this.j,L?L.disableSharing:e.ss);(T=L&&this.Y("fill_video_container_size_override_from_wpcc")? L.videoContainerOverride:e.video_container_override)?(q=T.split("x"),q.length!==2?T=null:(T=Number(q[0]),q=Number(q[1]),T=isNaN(T)||isNaN(q)||T*q<=0?null:new g.dz(T,q))):T=null;this.V6=T;this.mute=L?!!L.startMuted:EN(!1,e.mute);this.storeUserVolume=!this.mute&&EN(this.controlsType!=="0",L?L.storeUserVolume:e.store_user_volume);T=L?L.annotationsLoadPolicy:e.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:X1(void 0,T,Bn);this.captionsLanguagePreference=L?L.captionsLanguagePreference|| "":Ya("",e.cc_lang_pref);T=X1(2,L?L.captionsLanguageLoadPolicy:e.cc_load_policy,Bn);this.controlsType==="3"&&T===2&&(T=3);this.z6=T;this.XD=L?L.hl||"en_US":Ya("en_US",e.hl);this.region=L?L.contentRegion||"US":Ya("US",e.cr);this.hostLanguage=L?L.hostLanguage||"en":Ya("en",e.host_language);this.Wh=!this.Q5&&Math.random()=480;this.schedule=new Cl(t,new lDn(this.experiments),B);g.l(this,this.schedule);var W;this.enableSafetyMode=(W=L==null?void 0:L.initialEnableSafetyMode)!=null?W:EN(!1,e.enable_safety_mode);B=this.t7?!1:XB(this)&&this.playerStyle!== "blazer";var A;L?L.disableAutonav!=null&&(A=!L.disableAutonav):A=e.allow_autonav;this.IU=EN(B,!this.h7&&A);this.sendVisitorIdHeader=L?!!L.sendVisitorIdHeader:EN(!1,e.send_visitor_id_header);var b;this.playerStyle==="docs"&&(L?b=L.disableNativeContextMenu:b=e.disable_native_context_menu);this.disableNativeContextMenu=EN(!1,b);this.Qt=hz(this)&&this.Y("enable_skip_intro_button");this.embedConfig=Ya("",L?L.serializedEmbedConfig:e.embed_config);this.k9=Lv(e,g.Uh(this));this.Z=this.k9==="EMBEDDED_PLAYER_MODE_PFL"; this.embedsErrorLinks=!(L==null||!L.embedsErrorLinks);this.Sn=EN(!1,e.full_window);var J;this.m$=!((J=this.webPlayerContextConfig)==null?0:J.chromeless);var w;this.livingRoomAppMode=X1("LIVING_ROOM_APP_MODE_UNSPECIFIED",e.living_room_app_mode||(L==null?void 0:(w=L.device)==null?void 0:w.livingRoomAppMode),pwH);var C;A=KQ(NaN,L==null?void 0:(C=L.device)==null?void 0:C.deviceYear);isNaN(A)||(this.deviceYear=A);this.transparentBackground=L?!!L.transparentBackground:EN(!1,e.transparent_background);this.showMiniplayerButton= L?!!L.showMiniplayerButton:EN(!1,e.show_miniplayer_button);var y;g.Uh(this)&&!(L==null?0:(y=L.embedsHostFlags)==null?0:y.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=L?!!L.externalFullscreen:EN(!1,e.external_fullscreen);this.showMiniplayerUiWhenMinimized=L?!!L.showMiniplayerUiWhenMinimized:EN(!1,e.use_miniplayer_ui);var P;this.sE=(P=e.show_loop_video_toggle)!=null?P:!0;this.HD=Math.random()<1E-4;if(e.onesie_hot_config||(L==null?0:L.onesieHotConfig))this.RI=new fOn(e.onesie_hot_config, L==null?void 0:L.onesieHotConfig),g.l(this,this.RI);this.isTectonic=L?!!L.isTectonic:!!e.isTectonic;this.playerCanaryState=c;this.playerCanaryStage=L==null?void 0:L.canaryStage;this.Mv=new DmH;g.l(this,this.Mv);this.datasyncId=(L==null?void 0:L.datasyncId)||g.Zu("DATASYNC_ID");this.xz=g.Zu("LOGGED_IN",!1);this.Kp=(L==null?void 0:L.allowWoffleManagement)||!1;this.rp=Infinity;this.DO=NaN;this.livingRoomPoTokenId=L==null?void 0:L.livingRoomPoTokenId;this.Y("html5_high_res_logging_always")?this.Cj=!0: this.Cj=Math.random()*100=0&&e<$mR.length?$mR[e]:"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN"}; oD=function(e,L,c){c=c===void 0?!1:c;e.sY=Ya(e.sY,L.video_id);e.FD=Ya(e.FD,L.eventid);e.FD&&(ri=e.FD);for(var I=[],B=g.f(Object.keys(jTf)),x=B.next();!x.done;x=B.next()){x=jTf[x.value];var S=L[x];S!=null&&(S!==e.X[x]&&I.push(x),e.X[x]=S)}!c&&I.length>0&&e.HD&&(I.sort(),g.F7(new g.yu("Player client parameters changed after startup",I)));e.userAge=KQ(e.userAge,L.user_age);e.J9=Ya(e.J9,L.user_display_email);e.userDisplayImage=Ya(e.userDisplayImage,L.user_display_image);g.mF(e.userDisplayImage)||(e.userDisplayImage= "");e.userDisplayName=Ya(e.userDisplayName,L.user_display_name);e.aF=Ya(e.aF,L.user_gender);e.csiPageType=Ya(e.csiPageType,L.csi_page_type);e.csiServiceName=Ya(e.csiServiceName,L.csi_service_name);e.XK=EN(e.XK,L.enablecsi);e.pageId=Ya(e.pageId,L.pageid);if(c=L.enabled_engage_types)e.enabledEngageTypes=new Set(c.split(","));L.living_room_session_po_token&&(e.Ft=L.living_room_session_po_token.toString())}; ho=function(e,L){return!e.j&&NL()&&MZ(55)&&e.controlsType==="3"&&!L}; g.RD=function(e){e=xY(e.PU);return e==="www.youtube-nocookie.com"?"www.youtube.com":e}; uj=function(e,L,c){return e.protocol+"://i1.ytimg.com/vi/"+L+"/"+(c||"hqdefault.jpg")}; to=function(e){return XB(e)&&!g.L8(e)}; g.nl=function(e){return e.Y("html5_local_playsinline")?jG&&!g.$C(602)&&!("playsInline"in tQ()):jG&&!e.Z0||g.aC("nintendo wiiu")?!0:!1}; tb=function(e){return e.X.c}; g.R2=function(e){return/^TVHTML5/.test(tb(e))}; g.Oj=function(e){return tb(e)==="TVHTML5"}; Jtr=function(e){return tb(e)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; ZLc=function(e){return e.X.cmodel==="CHROMECAST ULTRA/STEAK"||e.X.cmodel==="CHROMECAST/STEAK"}; g.qu=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; hz=function(e){return/web/i.test(tb(e))}; g.T3=function(e){return tb(e).toUpperCase()==="WEB"}; Sb=function(e){return tb(e)==="WEB_KIDS"}; g.L8=function(e){return tb(e)==="WEB_UNPLUGGED"}; Wn=function(e){return tb(e)==="TVHTML5_UNPLUGGED"}; g.rw=function(e){return g.L8(e)||tb(e)==="TV_UNPLUGGED_CAST"||Wn(e)}; g.DF=function(e){return tb(e)==="WEB_REMIX"}; g.Mu=function(e){return tb(e)==="WEB_MUSIC_INTEGRATIONS"}; g.z3=function(e){return tb(e)==="WEB_EMBEDDED_PLAYER"}; g.vn=function(e){return(e.deviceIsAudioOnly||!g.q8||ya||e.controlsType==="3"?!1:g.P3?e.G&&g.$C(51):!0)||(e.deviceIsAudioOnly||!g.Br||ya||e.controlsType==="3"?!1:g.P3?e.G&&g.$C(48):g.$C(38))||(e.deviceIsAudioOnly||!g.QG||ya||e.controlsType==="3"?!1:g.P3?e.G&&g.$C(37):g.$C(27))||!e.deviceIsAudioOnly&&g.sj&&!fXn()&&g.$C(11)||!e.deviceIsAudioOnly&&g.RM&&g.$C("604.4")}; HL$=function(e){if(g.eb(e)&&Kl)return!1;if(g.Br){if(!g.$C(47)||!g.$C(52)&&g.$C(51))return!1}else if(g.RM)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; PPR=function(e,L){return e.enabledEngageTypes.has(L.toString())||lOT.includes(L)}; XB=function(e){return e.Ve==="detailpage"}; g.eb=function(e){return e.Ve==="embedded"}; f8=function(e){return e.Ve==="leanback"}; Eh=function(e){return e.Ve==="adunit"||e.playerStyle==="gvn"}; g.cn=function(e){return e.Ve==="profilepage"}; g.Uh=function(e){return e.G&&g.eb(e)&&!Eh(e)&&!e.j}; Ao=function(e){if(!e.userDisplayImage)return"";var L=e.userDisplayImage.split("/");if(L.length===5)return e=L[L.length-1].split("="),e[1]="s20-c",L[L.length-1]=e.join("="),L.join("/");if(L.length===8)return L.splice(7,0,"s20-c"),L.join("/");if(L.length===9)return L[7]+="-s20-c",L.join("/");g.F7(new g.yu("Profile image not a FIFE URL.",e.userDisplayImage));return e.userDisplayImage}; g.FM=function(e){var L=g.RD(e);QTx.includes(L)&&(L="www.youtube.com");return e.protocol+"://"+L}; g.bj=function(e,L){L=L===void 0?"":L;if(e.V2){var c=new Ri,I,B=e.V2();B.signedOut?I="":B.token?I=B.token:B.pendingResult.then(function(x){B.signedOut?c.resolve(""):c.resolve(x.token)},function(x){g.F7(new g.yu("b189348328_oauth_callback_failed",{error:x})); c.resolve(L)}); return I!==void 0?F1(I):new fQ(c)}return F1(L)}; ij=function(e,L){L=L===void 0?"":L;return e.xz?AR(!0):g8(GR(AR(g.bj(e,L)),function(c){return AR(!!c)}),function(){return AR(!1)})}; dmx=function(e,L){L==null||GR(L,function(c){e.pB=c;var I,B;(I=e.RI)!=null&&(B=I.X)!=null&&(B.B=new iC(c,B.X,B.K),g.l(B,B.B))})}; xY=function(e){var L=g.hp(e);return(e=Number(g.rj(e)[4]||null)||null)?L+":"+e:L}; G3=function(e,L){L=L===void 0?!1:L;var c=iy[e],I=Umn[c],B=E9c[e];if(!B||!I)return null;L=new AQ(L?B.height:B.width,L?B.width:B.height,B.fps);I=wE(I,L,c);return new Gn(e,I,{video:L,r_:B.bitrate/8})}; KpJ=function(e){var L=Umn[iy[e]],c=Xwv[e];return c&&L?new Gn(e,L,{audio:new s7(c.audioSampleRate,c.numChannels)}):null}; gb=function(e){this.X=e}; kY=function(e,L,c,I){if(c)return AF();c={};var B=tQ();L=g.f(L);for(var x=L.next();!x.done;x=L.next())if(x=x.value,e.canPlayType(B,x.getInfo().mimeType)||I){var S=x.X.video.quality;if(!c[S]||c[S].getInfo().Gk())c[S]=x}e=[];c.auto&&e.push(c.auto);I=g.f(FG);for(B=I.next();!B.done;B=I.next())(B=c[B.value])&&e.push(B);return e.length?F1(e):AF()}; YJc=function(e){this.itag=e.itag;this.url=e.url;this.codecs=e.codecs;this.width=e.width;this.height=e.height;this.fps=e.fps;this.bitrate=e.bitrate;var L;this.K=((L=e.audioItag)==null?void 0:L.split(","))||[];this.SQ=e.SQ;this.TI=e.TI||"";this.l5=e.l5;this.audioChannels=e.audioChannels;this.X=""}; n9$=function(e,L,c,I){L=L===void 0?!1:L;c=c===void 0?!0:c;I=I===void 0?{}:I;var B={};e=g.f(e);for(var x=e.next();!x.done;x=e.next()){x=x.value;if(L&&MediaSource&&MediaSource.isTypeSupported){var S=x.type;x.audio_channels&&(S=S+"; channels="+x.audio_channels);if(!MediaSource.isTypeSupported(S)){I[x.itag]="tpus";continue}}if(c||!x.drm_families||x.eotf!=="smpte2084"&&x.eotf!=="arib-std-b67"){S=void 0;var h={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},R=x.type.match(/codecs="([^"]*)"/); R=R?R[1]:"";x.audio_track_id&&(S=new g.b2(x.name,x.audio_track_id,!!x.is_default));var u=x.eotf;x=new YJc({itag:x.itag,url:x.url,codecs:R,width:Number(x.width),height:Number(x.height),fps:Number(x.fps),bitrate:Number(x.bitrate),audioItag:x.audio_itag,SQ:u?h[u]:void 0,TI:x.drm_families,l5:S,audioChannels:Number(x.audio_channels)});B[x.itag]=B[x.itag]||[];B[x.itag].push(x)}else I[x.itag]="enchdr"}return B}; eKT=function(e,L,c,I,B){this.Z=e;this.K=L;this.B=c;this.cpn=I;this.j=B;this.G=0;this.X=""}; LGR=function(e,L){e.Z.some(function(c){var I;return((I=c.l5)==null?void 0:I.getId())===L}); e.X=L}; Dk=function(e,L,c){e.cpn&&(L=g.WO(L,{cpn:e.cpn}));c&&(L=g.WO(L,{paired:c}));return L}; c8f=function(e,L){e=e.itag.toString();L!==null&&(e+=L.itag.toString());return e}; ICx=function(e){for(var L=[],c=[],I=g.f(e.K),B=I.next();!B.done;B=I.next())B=B.value,B.bitrate<=e.G?L.push(B):c.push(B);L.sort(function(x,S){return S.bitrate-x.bitrate}); c.sort(function(x,S){return x.bitrate-S.bitrate}); e.K=L.concat(c)}; wb=function(e,L,c){this.X=e;this.K=L;this.expiration=c;this.V5=null}; BKH=function(e,L){if(!(ya||pQ()||y2()))return null;e=n9$(L,e.Y("html5_filter_fmp4_in_hls"));if(!e)return null;L=[];for(var c={},I=g.f(Object.keys(e)),B=I.next();!B.done;B=I.next()){B=g.f(e[B.value]);for(var x=B.next();!x.done;x=B.next()){var S=x.value;S.l5&&(x=S.l5.getId(),c[x]||(S=new g.MB(x,S.l5),c[x]=S,L.push(S)))}}return L.length>0?L:null}; hKc=function(e,L,c,I,B,x,S){if(!(ya||pQ()||y2()))return AF();var h={},R=xbr(c),u=n9$(c,e.Y("html5_filter_fmp4_in_hls"),e.B.T,h);if(!u)return S({noplst:1}),AF();oPr(u);c={};var t=(c.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",c),O;c=[];var q=[],T=[],W=null,A="";I=I&&I.match(/hls_timedtext_playlist/)?new YJc({itag:"0",url:I,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,l5:new g.b2("English","en",!1)}):null;for(var b=g.f(Object.keys(u)),J=b.next();!J.done;J=b.next())if(J=J.value,!e.Y("html5_disable_drm_hfr_1080")|| J!=="383"&&J!=="373"){J=g.f(u[J]);for(var w=J.next();!w.done;w=J.next())if(w=w.value,w.width){for(var C=g.f(w.K),y=C.next();!y.done;y=C.next())if(y=y.value,u[y]){w.X=y;break}w.X||(w.X=S5n(u,w));if(C=u[w.X])if(c.push(w),w.TI==="fairplay"&&(O=t),y="",w.SQ==="PQ"?y="smpte2084":w.SQ==="HLG"&&(y="arib-std-b67"),y&&(A=y),T.push(r86(C,[w],I,x,w.itag,w.width,w.height,w.fps,R,void 0,void 0,O,y)),!W||w.width*w.height*w.fps>W.width*W.height*W.fps)W=w}else q.push(w)}else h[J]="disdrmhfr";T.reduce(function(P, ev){return ev.getInfo().isEncrypted()&&P},!0)&&(O=t); B=Math.max(B,0);t=W||{};u=t.fps===void 0?0:t.fps;W=t.width===void 0?0:t.width;t=t.height===void 0?0:t.height;b=e.Y("html5_native_audio_track_switching");T.push(r86(q,c,I,x,"93",W,t,u,R,"auto",B,O,A,b));Object.entries(h).length&&S(h);return kY(e.B,T,ho(e,L),!1)}; r86=function(e,L,c,I,B,x,S,h,R,u,t,O,q,T){for(var W=0,A="",b=g.f(e),J=b.next();!J.done;J=b.next())J=J.value,A||(A=J.itag),J.audioChannels&&J.audioChannels>W&&(W=J.audioChannels,A=J.itag);B=new Gn(B,"application/x-mpegURL",{audio:new s7(0,W),video:new AQ(x,S,h,null,void 0,u,void 0,q),TI:O,Y$:A});e=new eKT(e,L,c?[c]:[],I,!!T);e.G=t?t:1369843;return new wb(B,e,R)}; xbr=function(e){e=g.f(e);for(var L=e.next();!L.done;L=e.next())if(L=L.value,L.url&&(L=L.url.split("expire/"),!(L.length<=1)))return+L[1].split("/")[0];return NaN}; S5n=function(e,L){for(var c=g.f(Object.keys(e)),I=c.next();!I.done;I=c.next()){I=I.value;var B=e[I][0];if(!B.width&&B.TI===L.TI&&!B.audioChannels)return I}return""}; oPr=function(e){for(var L=new Set,c=g.f(Object.values(e)),I=c.next();!I.done;I=c.next())I=I.value,I.length&&(I=I[0],I.height&&I.codecs.startsWith("vp09")&&L.add(I.height));c=[];if(L.size){I=g.f(Object.keys(e));for(var B=I.next();!B.done;B=I.next())if(B=B.value,e[B].length){var x=e[B][0];x.height&&L.has(x.height)&&!x.codecs.startsWith("vp09")&&c.push(B)}}L=g.f(c);for(c=L.next();!c.done;c=L.next())delete e[c.value]}; Jo=function(e,L){this.X=e;this.K=L}; RK$=function(e,L,c,I){var B=[];c=g.f(c);for(var x=c.next();!x.done;x=c.next()){var S=x.value;if(S.url){x=new g.yp(S.url,!0);if(S.s){var h=x,R=S.sp,u=PNv(decodeURIComponent(S.s));h[r[23]](R,encodeURIComponent(u))}h=g.f(Object.keys(I));for(R=h.next();!R.done;R=h.next())R=R.value,x.set(R,I[R]);S=$l(S.type,S.quality,S.itag,S.width,S.height);B.push(new Jo(S,x))}}return kY(e.B,B,ho(e,L),!1)}; Vm=function(e,L){this.X=e;this.K=L}; u6f=function(e,L,c){var I=[];c=g.f(c);for(var B=c.next();!B.done;B=c.next())if((B=B.value)&&B.url){var x=$l(B.type,"medium","0");I.push(new Vm(x,B.url))}return kY(e.B,I,ho(e,L),!1)}; tmT=function(e,L){var c=[],I=$l(L.type,"auto",L.itag);c.push(new Vm(I,L.url));return kY(e.B,c,!1,!0)}; q5R=function(e){return e&&OPn[e]?OPn[e]:null}; TK$=function(e){switch(e){case "multiview.ustreamer_disabled":case "sabr.live_no_max_sq":case "sabr.malformed_config":case "sabr.media_serving_enforcement_id_error":case "sabr.metadata_fetcher_error":case "sabr.no_audio_selected":case "sabr.no_available_formats":case "sabr.no_redirect_url":case "sabr.no_video_selected":case "sabr.too_many_chunk_reader_error_retries":return e;default:return"sabr.config"}}; WGJ=function(e){if(e=e.commonConfig)this.url=e.url,this.urlQueryOverride=e.urlQueryOverride,e.ustreamerConfig&&(this.L8=Go(e.ustreamerConfig)||void 0)}; MmH=function(e,L){var c;if(L=L==null?void 0:(c=L.watchEndpointSupportedOnesieConfig)==null?void 0:c.html5PlaybackOnesieConfig)e.Iu=new WGJ(L)}; g.C8=function(e){e=e===void 0?{}:e;this.languageCode=e.languageCode||"";this.languageName=e.languageName||null;this.kind=e.kind||"";this.name=e.name===void 0?null:e.name;this.displayName=e.displayName||null;this.id=e.id||null;this.X=e.is_servable||!1;this.isTranslateable=e.is_translateable||!1;this.url=e.url||null;this.vssId=e.vss_id||"";this.isDefault=e.is_default||!1;this.translationLanguage=e.translationLanguage||null;this.xtags=e.xtags||"";this.captionId=e.captionId||""}; g.Nu=function(e){var L={languageCode:e.languageCode,languageName:e.languageName,displayName:g.aD(e),kind:e.kind,name:e.name,id:e.id,is_servable:e.X,is_default:e.isDefault,is_translateable:e.isTranslateable,vss_id:e.vssId};e.xtags&&(L.xtags=e.xtags);e.captionId&&(L.captionId=e.captionId);e.translationLanguage&&(L.translationLanguage=e.translationLanguage);return L}; g.mS=function(e){return e.translationLanguage?e.translationLanguage.languageCode:e.languageCode}; g.zKc=function(e){var L=e.vssId;e.translationLanguage&&L&&(L="t"+L+"."+g.mS(e));return L}; g.aD=function(e){var L=[];if(e.displayName)L.push(e.displayName);else{var c=e.languageName||"";L.push(c);e.kind==="asr"&&c.indexOf("(")===-1&&L.push(" (Automatic Captions)");e.name&&L.push(" - "+e.name)}e.translationLanguage&&L.push(" >> "+e.translationLanguage.languageName);return L.join("")}; A8v=function(e,L,c,I){e||(e=L&&sVM.hasOwnProperty(L)&&vPr.hasOwnProperty(L)?vPr[L]+"_"+sVM[L]:void 0);L=e;if(!L)return null;e=L.match(fC$);if(!e||e.length!==5)return null;if(e=L.match(fC$)){var B=Number(e[3]),x=[7,8,10,5,6];e=!(Number(e[1])===1&&B===8)&&x.indexOf(B)>=0}else e=!1;return c||I||e?L:null}; ym=function(e,L){for(var c={},I=g.f(Object.keys(FGn)),B=I.next();!B.done;B=I.next()){B=B.value;var x=L?L+B:B;x=e[x+"_webp"]||e[x];g.mF(x)&&(c[FGn[B]]=x)}return c}; Zk=function(e){var L={};if(!e||!e.thumbnails)return L;e=e.thumbnails.filter(function(h){return!!h.url}); e.sort(function(h,R){return h.width-R.width||h.height-R.height}); for(var c=g.f(Object.keys(bPf)),I=c.next();!I.done;I=c.next()){var B=Number(I.value);I=bPf[B];for(var x=g.f(e),S=x.next();!S.done;S=x.next())if(S=S.value,S.width>=B){B=iPf(S.url);g.mF(B)&&(L[I]=B);break}}(e=e.pop())&&e.width>=1280&&(e=iPf(e.url),g.mF(e)&&(L["maxresdefault.jpg"]=e));return L}; iPf=function(e){return e.startsWith("//")?"https:"+e:e}; p8=function(e){return e&&e.baseUrl||""}; $Y=function(e){e=g.Ee(e);for(var L=g.f(Object.keys(e)),c=L.next();!c.done;c=L.next()){c=c.value;var I=e[c];e[c]=Array.isArray(I)?I[0]:I}return e}; GUR=function(e,L){e.botguardData=L.playerAttestationRenderer.botguardData;L=L.playerAttestationRenderer.challenge;L!=null&&(e.er=L)}; Dbr=function(e,L){L=g.f(L);for(var c=L.next();!c.done;c=L.next()){c=c.value;var I=c.interstitials.map(function(S){var h=g.Q(S,gPn);if(h)return{is_yto_interstitial:!0,raw_player_response:h};if(S=g.Q(S,kUJ))return Object.assign({is_yto_interstitial:!0},dW(S))}); I=g.f(I);for(var B=I.next();!B.done;B=I.next())switch(B=B.value,c.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":e.interstitials=e.interstitials.concat({time:0,playerVars:B,Bh:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":e.interstitials=e.interstitials.concat({time:0x7ffffffffffff,playerVars:B,Bh:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var x=Number(c.podConfig.timeToInsertAtMillis);e.interstitials=e.interstitials.concat({time:x,playerVars:B, Bh:x===0?5:7})}}}; wfn=function(e,L){if(L=L.find(function(c){return!(!c||!c.tooltipRenderer)}))e.tooltipRenderer=L.tooltipRenderer}; J8r=function(e,L){L.subscribeCommand&&(e.subscribeCommand=L.subscribeCommand);L.unsubscribeCommand&&(e.unsubscribeCommand=L.unsubscribeCommand);L.addToWatchLaterCommand&&(e.addToWatchLaterCommand=L.addToWatchLaterCommand);L.removeFromWatchLaterCommand&&(e.removeFromWatchLaterCommand=L.removeFromWatchLaterCommand);L.getSharePanelCommand&&(e.getSharePanelCommand=L.getSharePanelCommand)}; Vm6=function(e,L){L!=null?(e.l9=L,e.xx=!0):(e.l9="",e.xx=!1)}; jb=function(e,L){this.type=e||"";this.id=L||""}; Hn=function(e){return new jb(e.substring(0,2),e.substring(2))}; lj=function(e,L){this.UW=e;this.author="";this.xq=null;this.playlistLength=0;this.X=this.sessionData=null;this.J={};this.title="";if(L){this.author=L.author||L.playlist_author||"";this.title=L.playlist_title||"";if(e=L.session_data)this.sessionData=Pu(e,"&");var c;this.X=((c=L.thumbnail_ids)==null?void 0:c.split(",")[0])||null;this.J=ym(L,"playlist_");this.videoId=L.video_id||void 0;if(c=L.list)switch(L.listType){case "user_uploads":this.playlistId=(new jb("UU","PLAYER_"+c)).toString();break;default:if(e= L.playlist_length)this.playlistLength=Number(e)||0;this.playlistId=Hn(c).toString();if(L=L.video)this.videoId=(L[0]||null).video_id||void 0}else L.playlist&&(this.playlistLength=L.playlist.toString().split(",").length)}}; Pn=function(e,L){this.UW=e;this.Lw=this.author="";this.xq=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.hJ=this.lengthText="";this.sessionData=null;this.J={};this.title="";if(L){this.ariaLabel=L.aria_label||void 0;this.author=L.author||"";this.Lw=L.Lw||"";if(e=L.endscreen_autoplay_session_data)this.xq=Pu(e,"&");this.Yp=L.Yp;this.isLivePlayback=L.live_playback==="1";this.isUpcoming=!!L.isUpcoming;if(e=L.length_seconds)this.lengthSeconds=typeof e==="string"?Number(e):e;this.lengthText= L.lengthText||"";this.hJ=L.hJ||"";this.publishedTimeText=L.publishedTimeText||void 0;if(e=L.session_data)this.sessionData=Pu(e,"&");this.shortViewCount=L.short_view_count_text||void 0;this.J=ym(L);this.title=L.title||"";this.videoId=L.docid||L.video_id||L.videoId||L.id||void 0;this.watchUrl=L.watchUrl||void 0}}; CHx=function(e){var L,c,I=(L=e.getWatchNextResponse())==null?void 0:(c=L.contents)==null?void 0:c.twoColumnWatchNextResults,B,x,S,h,R;e=(B=e.getWatchNextResponse())==null?void 0:(x=B.playerOverlays)==null?void 0:(S=x.playerOverlayRenderer)==null?void 0:(h=S.endScreen)==null?void 0:(R=h.watchNextEndScreenRenderer)==null?void 0:R.results;if(!e){var u,t;e=I==null?void 0:(u=I.endScreen)==null?void 0:(t=u.endScreen)==null?void 0:t.results}return e}; g.db=function(e){var L,c,I;e=g.Q((L=e.getWatchNextResponse())==null?void 0:(c=L.playerOverlays)==null?void 0:(I=c.playerOverlayRenderer)==null?void 0:I.decoratedPlayerBarRenderer,Qm);return g.Q(e==null?void 0:e.playerBar,aCr)}; NKn=function(e){this.X=e.playback_progress_0s_url;this.Z=e.playback_progress_2s_url;this.K=e.playback_progress_10s_url}; mbT=function(){if(Uj===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(L){}a:{try{var e=!!self.localStorage}catch(L){e=!1}if(e&&(e=g.k2(g.Z8()+"::yt-player"))){Uj=new VL(e);break a}Uj=void 0}}return Uj}; g.Ej=function(){var e=mbT();if(!e)return{};try{var L=e.get("yt-player-lv");return JSON.parse(L||"{}")}catch(c){return{}}}; g.y8$=function(e){var L=mbT();L&&(e=JSON.stringify(e),L.set("yt-player-lv",e))}; g.XM=function(e){return g.Ej()[e]||0}; g.K8=function(e,L){var c=g.Ej();L!==c[e]&&(L!==0?c[e]=L:delete c[e],g.y8$(c))}; g.YY=function(e){return g.Z(function(L){return L.return(g.aM(ZPr(),e))})}; eI=function(e,L,c,I,B,x,S,h){var R,u,t,O,q,T;return g.Z(function(W){switch(W.K){case 1:return R=g.XM(e),R===4?W.return(4):g.a(W,g.HK(),2);case 2:u=W.X;if(!u)throw g.tg("wiac");if(!h||S===void 0){W.Iq(3);break}return g.a(W,pfH(h,S),4);case 4:S=W.X;case 3:return t=c.lastModified||"0",g.a(W,g.YY(u),5);case 5:return O=W.X,g.bn(W,6),n8++,g.a(W,g.Ag(O,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",tK:!0},function(A){if(x!==void 0&&S!==void 0){var b=""+e+"|"+L.id+"|"+t+"|"+String(x).padStart(10, "0");b=g.F9(A.objectStore("media"),S,b)}else b=g.qO.resolve(void 0);var J=$bM(e,L.vM()),w=$bM(e,!L.vM()),C={fmts:jVR(I),format:c||{}};J=g.F9(A.objectStore("index"),C,J);var y=I.downloadedEndTime===-1;C=y?A.objectStore("index").get(w):g.qO.resolve(void 0);var P={fmts:"music",format:{}};A=y&&B&&!L.vM()?g.F9(A.objectStore("index"),P,w):g.qO.resolve(void 0);return g.qO.all([A,C,b,J]).then(function(ev){ev=g.f(ev);ev.next();ev=ev.next().value;n8--;var X=g.XM(e);if(X!==4&&y&&B||ev!==void 0&&g.HPc(ev.fmts))X= 1,g.K8(e,X);return X})}),8); case 8:return W.return(W.X);case 6:q=g.wc(W);n8--;T=g.XM(e);if(T===4)return W.return(T);g.K8(e,4);throw q;}})}; g.lCv=function(e){var L,c;return g.Z(function(I){if(I.K==1)return g.a(I,g.HK(),2);if(I.K!=3){L=I.X;if(!L)throw g.tg("ri");return g.a(I,g.YY(L),3)}c=I.X;return I.return(g.Ag(c,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(B){var x=IDBKeyRange.bound(e+"|",e+"~");return B.objectStore("index").getAll(x).then(function(S){return S.map(function(h){return h?h.format:{}})})}))})}; QVx=function(e,L,c,I,B){var x,S,h;return g.Z(function(R){if(R.K==1)return g.a(R,g.HK(),2);if(R.K!=3){x=R.X;if(!x)throw g.tg("rc");return g.a(R,g.YY(x),3)}S=R.X;h=g.Ag(S,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(u){var t=""+e+"|"+L+"|"+c+"|"+String(I).padStart(10,"0");return u.objectStore("media").get(t)}); return B?R.return(h.then(function(u){if(u===void 0)throw Error("No data from indexDb");return PHr(B,u)}).catch(function(u){throw new g.yu("Error while reading chunk: "+u.name+", "+u.message); })):R.return(h)})}; g.HPc=function(e){return e?e==="music"?!0:e.includes("dlt=-1")||!e.includes("dlt="):!1}; $bM=function(e,L){return""+e+"|"+(L?"v":"a")}; jVR=function(e){var L={};return QJ((L.dlt=e.downloadedEndTime.toString(),L.mket=e.maxKnownEndTime.toString(),L.avbr=e.averageByteRate.toString(),L))}; Ubf=function(e){var L={},c={};e=g.f(e);for(var I=e.next();!I.done;I=e.next()){var B=I.value,x=B.split("|");B.match(g.dbf)?(I=Number(x.pop()),isNaN(I)?c[B]="?":(x=x.join("|"),(B=L[x])?(x=B[B.length-1],I===x.end+1?x.end=I:B.push({start:I,end:I})):L[x]=[{start:I,end:I}])):c[B]="?"}e=g.f(Object.keys(L));for(I=e.next();!I.done;I=e.next())I=I.value,c[I]=L[I].map(function(S){return S.start+"-"+S.end}).join(","); return c}; Lf=function(e){g.Yg.call(this);this.X=null;this.Z=new JL;this.X=null;this.j=new Set;this.crossOrigin=e||""}; EPH=function(e,L,c){for(c=cN(e,c);c>=0;){var I=e.levels[c];if(I.isLoaded(II(I,L))&&(I=g.BN(I,L)))return I;c--}return g.BN(e.levels[0],L)}; KG6=function(e,L,c){c=cN(e,c);for(var I,B;c>=0;c--)if(I=e.levels[c],B=II(I,L),!I.isLoaded(B)){I=e;var x=c,S=x+"-"+B;I.j.has(S)||(I.j.add(S),I.Z.enqueue(x,{GX:x,nh:B}))}Xff(e)}; Xff=function(e){if(!e.X&&!e.Z.isEmpty()){var L=e.Z.remove();e.X=Y5M(e,L)}}; Y5M=function(e,L){var c=document.createElement("img");e.crossOrigin&&(c.crossOrigin=e.crossOrigin);c.src=e.levels[L.GX].Wd(L.nh);c.onload=function(){var I=L.GX,B=L.nh;e.X!==null&&(e.X.onload=null,e.X=null);I=e.levels[I];I.loaded.add(B);Xff(e);var x=I.columns*I.rows;B*=x;I=Math.min(B+x-1,I.HL()-1);B=[B,I];e.publish("l",B[0],B[1])}; return c}; g.x$=function(e,L,c,I){this.level=e;this.G=L;this.loaded=new Set;this.level=e;this.G=L;e=c.split("#");this.width=Math.floor(Number(e[0]));this.height=Math.floor(Number(e[1]));this.frameCount=Math.floor(Number(e[2]));this.columns=Math.floor(Number(e[3]));this.rows=Math.floor(Number(e[4]));this.X=Math.floor(Number(e[5]));this.Z=e[6];this.signature=e[7];this.videoLength=I}; II=function(e,L){return Math.floor(L/(e.columns*e.rows))}; g.BN=function(e,L){L>=e.qW()&&e.n$();var c=II(e,L),I=e.columns*e.rows,B=L%I;L=B%e.columns;B=Math.floor(B/e.columns);var x=e.n$()+1-I*c;if(x1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; nPv=function(e,L,c){return(e=e.levels[L])?e.r5(c):-1}; cN=function(e,L){var c=e.G.get(L);if(c)return c;c=e.levels.length;for(var I=0;I=L)return e.G.set(L,I),I;e.G.set(L,c-1);return c-1}; SI=function(e,L,c,I){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.x$.call(this,e,L,c,0);this.K=null;this.B=I?2:0}; r7=function(e,L,c,I){oI.call(this,e,0,void 0,L,!(I===void 0||!I));for(e=0;e50&&(L=rIR.shift())&&qD.delete(L),L=I),I!==L&&e.Ks("ssei","dcpn_"+I+"_"+L+"_"+e.clientPlaybackNonce),L)}; t1=function(e,L){var c=L.raw_watch_next_response;if(!c){var I=L.watch_next_response;I&&(c=JSON.parse(I))}if(c){e.ye=c;var B=e.ye.playerCueRangeSet;B&&g.TN(e,B);var x=e.ye.playerOverlays;if(x){var S=x.playerOverlayRenderer;if(S){var h=S.autonavToggle;h&&(e.autoplaySwitchButtonRenderer=g.Q(h,hoc),e.Y("web_player_autonav_use_server_provided_state")&&WN(e)&&(e.autonavState=e.autoplaySwitchButtonRenderer.enabled?2:1));var R=S.videoDetails;if(R){var u=R.embeddedPlayerOverlayVideoDetailsRenderer;var t=R.playerOverlayVideoDetailsRenderer; t&&(t.title&&(L.title=g.o9(t.title)),t.subtitle&&(L.subtitle=g.o9(t.subtitle)))}g.eb(e.UW)&&(e.Nl=!!S.addToMenu);Rof(e,S.shareButton);S.startPosition&&S.endPosition&&(e.progressBarStartPosition=S.startPosition,e.progressBarEndPosition=S.endPosition);var O=S.gatedActionsOverlayRenderer;O&&(e.TP=g.Q(O,um6));var q,T,W,A=g.Q((q=e.getWatchNextResponse())==null?void 0:(T=q.playerOverlays)==null?void 0:(W=T.playerOverlayRenderer)==null?void 0:W.infoPanel,t2x);if(A){e.DM=Number(A==null?void 0:A.durationMs)|| NaN;if(A==null?0:A.infoPanelOverviewViewModel)e.Mv=A==null?void 0:A.infoPanelOverviewViewModel;if(A==null?0:A.infoPanelDetailsViewModel)e.sE=A==null?void 0:A.infoPanelDetailsViewModel}e.showSeekingControls=!!S.showSeekingControls}}var b,J,w=(b=e.getWatchNextResponse())==null?void 0:(J=b.contents)==null?void 0:J.twoColumnWatchNextResults;if(w){var C=w.desktopOverlay&&g.Q(w.desktopOverlay,Ohc);C&&(C.suppressShareButton&&(e.showShareButton=!1),C.suppressWatchLaterButton&&(e.Nl=!1))}u&&qyr(e,L,u);var y= KQ(0,L.autoplay_count),P=e.getWatchNextResponse(),ev,X=(ev=P.contents)==null?void 0:ev.twoColumnWatchNextResults,oH,rc,Sv,tJ=(oH=P.playerOverlays)==null?void 0:(rc=oH.playerOverlayRenderer)==null?void 0:(Sv=rc.autoplay)==null?void 0:Sv.playerOverlayAutoplayRenderer,cM=CHx(e),JJ,yr=(JJ=P.contents)==null?void 0:JJ.singleColumnWatchNextResults;if(yr){var cU;if(((cU=yr.autoplay)==null?0:cU.autoplay)&&!yr.playlist){var $N=yr.autoplay.autoplay.sets,fZ={},$n=new Pn(e.S()),nZ=null,Mg;if($N){for(var QM=g.f($N), Is=QM.next();!Is.done;Is=QM.next()){var D=Is.value.autoplayVideoRenderer;if(D&&D.compactVideoRenderer){nZ=D.compactVideoRenderer;break}}if(Mg=$N[0].autoplayVideo){var Zt=Mg.clickTrackingParams;Zt&&(fZ.itct=Zt);fZ.autonav="1";fZ.playnext=String(y)}}else fZ.feature="related-auto";var CZ=g.Q(Mg,g.MD);if(nZ){$n.videoId=nZ.videoId;var IH=nZ.shortBylineText;IH&&($n.author=g.o9(IH));var wM=nZ.title;wM&&($n.title=g.o9(wM))}else CZ!=null&&CZ.videoId&&($n.videoId=CZ.videoId);$n.xq=fZ;e.suggestions=[];e.Xy= $n}}if(cM){for(var F=[],L6=g.f(cM),Qc=L6.next();!Qc.done;Qc=L6.next()){var S5=Qc.value,je=void 0,dc=null;if(S5.endScreenVideoRenderer){var ee=S5.endScreenVideoRenderer,ne=ee.title;dc=new Pn(e.S());dc.videoId=ee.videoId;dc.lengthSeconds=ee.lengthInSeconds||0;var pe=ee.publishedTimeText;pe&&(dc.publishedTimeText=g.o9(pe));var G=ee.shortBylineText;G&&(dc.author=g.o9(G));var v=ee.shortViewCountText;v&&(dc.shortViewCount=g.o9(v));if(ne){dc.title=g.o9(ne);var k=ne.accessibility;if(k){var N=k.accessibilityData; N&&N.label&&(dc.ariaLabel=N.label)}}var H=ee.navigationEndpoint;if(H){je=H.clickTrackingParams;var O$=g.Q(H,g.MD),d=g.Q(H,g.ku);O$?dc.Yp=O$:d!=null&&(dc.watchUrl=d.url)}var Y=ee.thumbnailOverlays;if(Y)for(var m=g.f(Y),aH=m.next();!aH.done;aH=m.next()){var PM=aH.value.thumbnailOverlayTimeStatusRenderer;if(PM)if(PM.style==="LIVE"){dc.isLivePlayback=!0;break}else if(PM.style==="UPCOMING"){dc.isUpcoming=!0;break}}dc.J=Zk(ee.thumbnail)}else if(S5.endScreenPlaylistRenderer){var hJ=S5.endScreenPlaylistRenderer, tw=hJ.navigationEndpoint;if(!tw)continue;var Vr=g.Q(tw,g.MD);if(!Vr)continue;var Fx=Vr.videoId;dc=new lj(e.S());dc.playlistId=hJ.playlistId;dc.playlistLength=Number(hJ.videoCount)||0;dc.X=Fx||null;dc.videoId=Fx;var ef=hJ.title;ef&&(dc.title=g.o9(ef));var GL=hJ.shortBylineText;GL&&(dc.author=g.o9(GL));je=tw.clickTrackingParams;dc.J=Zk(hJ.thumbnail)}dc&&(je&&(dc.sessionData={itct:je}),F.push(dc))}e.suggestions=F}if(tJ){e.Fs=!!tJ.preferImmediateRedirect;e.f9=e.f9||!!tJ.webShowNewAutonavCountdown;e.sC= e.sC||!!tJ.webShowBigThumbnailEndscreen;if(e.f9||e.sC){var ZJ=X||null,kn=new Pn(e.S());kn.videoId=tJ.videoId;var Aj=tJ.videoTitle;if(Aj){kn.title=g.o9(Aj);var C6=Aj.accessibility;if(C6){var aL=C6.accessibilityData;aL&&aL.label&&(kn.ariaLabel=aL.label)}}var gM=tJ.byline;gM&&(kn.author=g.o9(gM));var h_=tJ.publishedTimeText;h_&&(kn.publishedTimeText=g.o9(h_));var kN=tJ.shortViewCountText;kN&&(kn.shortViewCount=g.o9(kN));var nA=tJ.thumbnailOverlays;if(nA)for(var os=g.f(nA),dM=os.next();!dM.done;dM=os.next()){var Ng= dM.value.thumbnailOverlayTimeStatusRenderer;if(Ng)if(Ng.style==="LIVE"){kn.isLivePlayback=!0;break}else if(Ng.style==="UPCOMING"){kn.isUpcoming=!0;break}else if(Ng.style==="DEFAULT"&&Ng.text){kn.lengthText=g.o9(Ng.text);var D5=Ng.text.accessibility;if(D5){var KH=D5.accessibilityData;KH&&KH.label&&(kn.hJ=KH.label||"")}break}}kn.J=Zk(tJ.background);var Wy=tJ.nextButton;if(Wy){var mv=Wy.buttonRenderer;if(mv){var eN=mv.navigationEndpoint;if(eN){var LK=g.Q(eN,g.MD);LK&&(kn.Yp=LK)}}}if(tJ.topBadges){var rR= tJ.topBadges[0];if(rR){var Ft=g.Q(rR,T2c);Ft&&Ft.style==="BADGE_STYLE_TYPE_PREMIUM"&&(kn.lml=!0)}}var aJ=tJ.alternativeTitle;aJ&&(kn.Lw=g.o9(aJ));var nH={autonav:"1",playnext:String(y)};kn.playlistId&&(nH.autoplay="1");if(ZJ){var NT,LU,M6,yT,vt=(NT=ZJ.autoplay)==null?void 0:(LU=NT.autoplay)==null?void 0:(M6=LU.sets)==null?void 0:(yT=M6[0])==null?void 0:yT.autoplayVideo;if(vt){var cd=vt.clickTrackingParams;cd&&(nH.itct=cd);var fA=g.Q(vt,g.MD);fA&&(kn.Ge=fA)}}else if(tJ){var IJ,Bd,xO,oJ=(IJ=tJ.nextButton)== null?void 0:(Bd=IJ.buttonRenderer)==null?void 0:(xO=Bd.navigationEndpoint)==null?void 0:xO.clickTrackingParams;oJ&&(nH.itct=oJ)}nH.itct||(nH.feature="related-auto");kn.xq=nH;e.suggestions||(e.suggestions=[]);e.Xy=kn}tJ.countDownSecs!=null&&(e.Ix=tJ.countDownSecs*1E3);tJ.countDownSecsForFullscreen!=null&&(e.q3=tJ.countDownSecsForFullscreen>=0?tJ.countDownSecsForFullscreen*1E3:-1);e.Y("web_autonav_color_transition")&&tJ.watchToWatchTransitionRenderer&&(e.watchToWatchTransitionRenderer=g.Q(tJ.watchToWatchTransitionRenderer, WMM))}var Aa=CHx(e);if(Aa){var hh,SN,O6,q_=Aa==null?void 0:(hh=Aa[0])==null?void 0:(SN=hh.endScreenVideoRenderer)==null?void 0:(O6=SN.navigationEndpoint)==null?void 0:O6.clickTrackingParams,DH=g.zN(e);q_&&DH&&(DH.sessionData={itct:q_})}e.ye.currentVideoThumbnail&&(e.J=Zk(e.ye.currentVideoThumbnail));var yR,Zi,pK,nM,wQ,sO=(yR=e.ye)==null?void 0:(Zi=yR.contents)==null?void 0:(pK=Zi.twoColumnWatchNextResults)==null?void 0:(nM=pK.results)==null?void 0:(wQ=nM.results)==null?void 0:wQ.contents;if(sO&&sO[1]){var Jv, eA,$O,b3,Fe=(Jv=sO[1].videoSecondaryInfoRenderer)==null?void 0:(eA=Jv.owner)==null?void 0:($O=eA.videoOwnerRenderer)==null?void 0:(b3=$O.thumbnail)==null?void 0:b3.thumbnails;Fe&&Fe.length&&(e.profilePicture=Fe[Fe.length-1].url)}var NN=eL(L),Lc,TV=(Lc=e.getWatchNextResponse())==null?void 0:Lc.onResponseReceivedEndpoints;if(TV)for(var co=g.f(TV),VZ=co.next();!VZ.done;VZ=co.next()){var CS=VZ.value;g.Q(CS,sF)&&(e.Fj=g.Q(CS,sF));var If=g.Q(CS,M2f),N8=void 0;if((N8=If)==null?0:N8.entityKeys)e.ME=If.entityKeys|| [],If.visibleOnLoadKeys&&(e.visibleOnLoadKeys=If.visibleOnLoadKeys)}if(e.Y("web_key_moments_markers")){var eD=g.vN.getState().entities,Bo=g.dL("visibility_override","markersVisibilityOverrideEntity");var mH=EK(eD,"markersVisibilityOverrideEntity",Bo);e.d_=(mH==null?void 0:mH.videoId)===(e.videoId||NN)&&(mH==null?0:mH.visibilityOverrideMarkersKey)?mH.visibilityOverrideMarkersKey:e.visibleOnLoadKeys;e.visibleOnLoadKeys=[].concat(g.V(e.d_))}}}; WN=function(e){var L;return((L=e.autoplaySwitchButtonRenderer)==null?void 0:L.enabled)!==void 0}; ff=function(e){return!!(e.Z&&e.Z.videoInfos&&e.Z.videoInfos.length)}; g.g7=function(e){var L=e.T;e.Y("html5_gapless_unlimit_format_selection")&&A1(e)&&(L=!1);var c=!!e.X&&e.X.Wy,I=e.UW,B=e.Cn(),x=FU(e),S=e.He,h=L,R=e.isOtf();L=e.Cv();var u=e.x9,t=e.getUserAudio51Preference(),O=b8(e),q=i8(e),T=new N1c(I);if(I.oT()||I.Y("html5_logging_format_selection"))T.K=!0;T.t7=x;T.He=S&&I.J;T.k9=t;g.aC("windows nt 5.1")&&!g.Br&&(T.zS=!0);if(x=B)x=g.vn(I)?HL$(I):!1;x&&(T.pS=!0);h&&(T.zS=!0,T.Bw=!0);R&&!I.Y("html5_otf_prefer_vp9")&&(T.zS=!0);I.playerStyle==="picasaweb"&&(R&&(T.zS= !1),T.h7=!1);u&&(T.zS=!0);NB(I.B,mJ.CHANNELS)&&(I.Y("html5_enable_ac3")&&(T.G=!0),I.Y("html5_enable_eac3")&&(T.B=!0),I.Y("html5_enable_ac3_gapless")&&(T.Ve=!0));I.Y("html5_block_8k_hfr")&&(T.m$=!0);T.j=g.X3(I.experiments,"html5_max_selectable_quality_ordinal");T.T=g.X3(I.experiments,"html5_min_selectable_quality_ordinal");Pr&&(T.Q5=480);if(c||B)T.h7=!1;T.d_=!1;T.disableAv1=O;c=EY(I,T.X,void 0,T.disableAv1);c>0&&c<2160&&(Lx()||I.Y("html5_format_hybridization"))&&(T.X.supportsChangeType=+Lx(),T.Yy= c);c>=2160&&(T.Gm=!0);L5f()&&!I.Y("disable_av1_setting")&&(T.X.serveVp9OverAv1IfHigherRes=0,T.RI=!1);T.Cv=L;T.Y9=g.ZQ||da()&&!L?!1:!0;T.J=I.Y("html5_format_hybridization");T.DY=I.Y("html5_disable_encrypted_vp9_live_non_2k_4k");T.sY=q;GN(e)&&(T.xT=e.Y("html5_prefer_language_over_codec"));y2()&&e.playerResponse&&e.playerResponse.playerConfig&&e.playerResponse.playerConfig.webPlayerConfig&&e.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(T.G=!0,T.B=!0);e.T&&e.isAd()&&(e.Ao&& (T.D=e.Ao),e.Jo&&(T.Z=e.Jo));T.ye=e.isLivePlayback&&e.cg()&&e.UW.Y("html5_drm_live_audio_51");T.x9=e.N3;T.Kf=!GN(e);return e.Yf=T}; b8=function(e){return e.UW.Y("html5_disable_av1")||e.Y("html5_gapless_shorts_disable_av1")&&A1(e)?!0:!1}; zov=function(e){AD("drm_pb_s",void 0,e.D);e.Pe||e.X&&wV(e.X);var L={};e.X&&(L=qtc(e.Yv,g.g7(e),e.UW.B,e.X,function(c){return e.publish("ctmp","fmtflt",c)},!0,new Set)); L=new r$(L,e.UW,e.lP,e.useCobaltWidevine?y2()?k$(e):!1:!1,function(c,I){e.sW(c,I)}); g.l(e,L);e.Z0=!1;e.loading=!0;pXc(L,function(c){AD("drm_pb_f",void 0,e.D);for(var I=g.f(c),B=I.next();!B.done;B=I.next())switch(B=B.value,B.flavor){case "fairplay":B.Pe=e.Pe;B.WK=e.WK;B.yR=e.yR;break;case "widevine":B.eA=e.eA}e.Il=c;if(e.Il.length>0&&(e.B=e.Il[0],e.UW.oT())){c={};I=g.f(Object.entries(e.B.X));for(B=I.next();!B.done;B=I.next()){var x=g.f(B.value);B=x.next().value;x=x.next().value;var S="unk";(B=B.match(/(.*)codecs="(.*)"/))&&(S=B[2]);c[S]=x}e.sW("drmProbe",c)}e.d6()})}; suH=function(e,L){if(L.length===0||DI(e))return null;e.UW.B.Z&&(Qt=!0);var c=e.TI;var I=e.lengthSeconds,B=e.isLivePlayback,x=e.tq,S=e.UW,h=v_R(L);if(B||x){S=S.experiments;I=new DN("",S,!0);I.K=!x;I.Wy=!0;I.isManifestless=!0;I.isLive=!x;I.tq=x;L=g.f(L);for(B=L.next();!B.done;B=L.next()){var R=B.value;B=Vt(R,c);h=lJ(R);h=aZ(h.Wr||R.url||"",h.rr,h.s);var u=h.get("id");u&&u.includes("%7E")&&(I.D=!0);var t=void 0;u=(t=S)==null?void 0:t.N0("html5_max_known_end_time_rebase");t=Number(R.targetDurationSec|| 5);R=Number(R.maxDvrDurationSec||14400);var O=Number(h.get("mindsq")||h.get("min_sq")||"0"),q=Number(h.get("maxdsq")||h.get("max_sq")||"0")||Infinity;I.kf=I.kf||O;I.YN=I.YN||q;var T=!pn(B.mimeType);h&&G6(I,new RZ(h,B,{rP:t,ul:T,Ig:R,kf:O,YN:q,o3:300,tq:x,T7:u}))}c=I}else if(h==="FORMAT_STREAM_TYPE_OTF"){I=I===void 0?0:I;x=new DN("",S.experiments,!1);x.duration=I||0;S=g.f(L);for(I=S.next();!I.done;I=S.next())I=I.value,L=Vt(I,c,x.duration),B=lJ(I),(B=aZ(B.Wr||I.url||"",B.rr,B.s))&&(L.streamType==="FORMAT_STREAM_TYPE_OTF"? G6(x,new u2(B,L,"sq/0")):G6(x,new FN(B,L,Pm(I.initRange),Pm(I.indexRange))));x.isOtf=!0;c=x}else{I=I===void 0?0:I;x=new DN("",S.experiments,!1);x.duration=I||0;S=g.f(L);for(I=S.next();!I.done;I=S.next())h=I.value,I=Vt(h,c,x.duration),L=Pm(h.initRange),B=Pm(h.indexRange),u=lJ(h),(h=aZ(u.Wr||h.url||"",u.rr,u.s))&&G6(x,new FN(h,I,L,B));c=x}x=e.isLivePlayback&&!e.tq&&!e.pS&&!e.isPremiere;e.Y("html5_live_head_playable")&&(!w7(e)&&x&&e.sW("missingLiveHeadPlayable",{}),e.UW.pS==="yt"&&(c.t7=!0));return c}; DI=function(e){return y2()?!k$(e):pQ()?!(!e.Pe||!e.Y("html5_enable_safari_fairplay")&&Wr()):!1}; k$=function(e){return e.Y("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.TN=function(e,L){L=g.f(L);for(var c=L.next();!c.done;c=L.next())if(c=c.value,c.cueRangeSetIdentifier){var I=void 0;e.g5.set(c.cueRangeSetIdentifier,(I=c.playerCueRanges)!=null?I:[])}}; J1=function(e){return!(!e.X||!e.X.isManifestless)}; VE=function(e){return e.Q5?e.isLowLatencyLiveStream&&e.X!=null&&pk(e.X)>=5:e.isLowLatencyLiveStream&&e.X!=void 0&&pk(e.X)>=5}; vzn=function(e){return y2()&&k$(e)?!1:DI(e)&&(g.rw(e.UW)?!e.isLivePlayback:e.hlsvp)||!Wr()||e.Hk?!0:!1}; FM$=function(e){e.loading=!0;e.J9=!1;if(fLT(e))g.lCv(e.videoId).then(function(I){AIT(e,I)}).then(function(){e.d6()}); else{Nd(e.xT)||g.F7(new g.yu("DASH MPD Origin invalid: ",e.xT));var L=e.xT,c=g.X3(e.UW.experiments,"dash_manifest_version")||4;L=g.WO(L,{mpd_version:c});e.isLowLatencyLiveStream&&e.latencyClass!=="NORMAL"||(L=g.WO(L,{pacing:0}));kk$(L,e.UW.experiments,e.isLivePlayback).then(function(I){e.We()||(Cf(e,I,!0),AD("mrc",void 0,e.D),e.d6())},function(I){e.We()||(e.loading=!1,e.publish("dataloaderror",new g.hQ("manifest.net.retryexhausted",{backend:"manifest", rc:I.status},1)))}); AD("mrs",void 0,e.D)}}; AIT=function(e,L){var c=L.map(function(R){return R.itag}),I; if((I=e.playerResponse)!=null&&I.streamingData){I=[];if(e.Y("html5_offline_always_use_local_formats")){c=0;for(var B=g.f(L),x=B.next();!x.done;x=B.next()){x=x.value;var S=Object.assign({},x);S.signatureCipher="";I.push(S);S=g.f(e.playerResponse.streamingData.adaptiveFormats);for(var h=S.next();!h.done;h=S.next())if(h=h.value,x.itag===h.itag&&x.xtags===h.xtags){c+=1;break}}ct&&(t=T.getInfo().audio.numChannels)}t>2&&e.sW("hlschl",{mn:t});var b;((b=e.Yf)==null?0:b.K)&&e.sW("hlsfmtaf",{itags:O.join(".")});var J;if(e.Y("html5_enable_vp9_fairplay")&&((J=e.B)==null?0:cr(J)))for(e.sW("drm",{sbdlfbk:1}),t=g.f(e.Il),O=t.next();!O.done;O=t.next())if(O=O.value,Ll(O)){e.B=O;break}yE(e,u)})}return AF()}; kYr=function(e){if(e.isExternallyHostedPodcast&&e.OF){var L=mT(e.OF);if(!L[0])return AF();e.Hb$=L[0];return tmT(e.UW,L[0]).then(function(c){yE(e,c)})}return e.Z2&&e.zE?u6f(e.UW,e.isAd(),e.Z2).then(function(c){yE(e,c)}):AF()}; wFM=function(e){if(e.isExternallyHostedPodcast)return AF();var L=mT(e.OF,e.xC);if(e.hlsvp){var c=eoR(e.hlsvp,e.clientPlaybackNonce,e.Bw);L.push(c)}return RK$(e.UW,e.isAd(),L,DSM(e)).then(function(I){yE(e,I)})}; yE=function(e,L){e.g0=L;e.SB(new iJ(g.Mt(e.g0,function(c){return c.getInfo()})))}; DSM=function(e){var L={cpn:e.clientPlaybackNonce,c:e.UW.X.c,cver:e.UW.X.cver};e.PK&&(L.ptk=e.PK,L.oid=e.PA,L.ptchn=e.Qj,L.pltype=e.CM,e.cK&&(L.m=e.cK));return L}; g.ZI=function(e){return DI(e)&&e.Pe?(e={},e.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",e):e.K&&e.K.TI||null}; JIc=function(e){var L=pf(e);return L&&L.text?g.o9(L.text):e.paidContentOverlayText}; V2n=function(e){var L=pf(e);return L&&L.durationMs?ag(L.durationMs):e.paidContentOverlayDurationMs}; pf=function(e){var L,c,I;return e.playerResponse&&e.playerResponse.paidContentOverlay&&e.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.Q((L=e.ye)==null?void 0:(c=L.playerOverlays)==null?void 0:(I=c.playerOverlayRenderer)==null?void 0:I.playerDisclosure,CVM)||null}; $$=function(e){var L="";if(e.Zq)return e.Zq;e.isLivePlayback&&(L=e.allowLiveDvr?"dvr":e.isPremiere?"lp":e.pS?"window":"live");e.tq&&(L="post");return L}; g.jI=function(e,L){return typeof e.keywords[L]!=="string"?null:e.keywords[L]}; aLf=function(e){return!!e.FS||!!e.pW||!!e.Of||!!e.gb||e.ym}; g.HN=function(e){return!!(e.xT||e.OF||e.Z2||e.hlsvp||e.gw())}; u8=function(e){if(e.Y("html5_onesie")&&e.errorCode)return!1;var L=g.Fh(e.h7,"ypc");e.ypcPreview&&(L=!1);return e.Hd()&&!e.loading&&(g.HN(e)||g.Fh(e.h7,"heartbeat")||L)}; mT=function(e,L){e=Ue(e);var c={};if(L){L=g.f(L.split(","));for(var I=L.next();!I.done;I=L.next())(I=I.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(c[I[1]]={width:I[2],height:I[3]})}L=g.f(e);for(I=L.next();!I.done;I=L.next()){I=I.value;var B=c[I.itag];B&&(I.width=B.width,I.height=B.height)}return e}; Rof=function(e,L){e.showShareButton=!!L;var c,I,B=((c=g.Q(L,g.E5))==null?void 0:c.navigationEndpoint)||((I=g.Q(L,g.E5))==null?void 0:I.command);B&&(e.w9=!!g.Q(B,N2f))}; LM$=function(e,L){var c=L.raw_embedded_player_response;if(!c){var I=L.embedded_player_response;I&&(c=JSON.parse(I))}c&&(e.OU=c);if(e.OU){e.embeddedPlayerConfig=e.OU.embeddedPlayerConfig||null;if(c=e.OU.videoFlags)c.playableInEmbed&&(e.allowEmbed=!0),c.isPrivate&&(e.isPrivate=!0),c.userDisplayName&&(L.user_display_name=c.userDisplayName),c.userDisplayImage&&(L.user_display_image=c.userDisplayImage);if(c=e.OU.embedPreview){c=c.thumbnailPreviewRenderer;Vm6(e,c.controlBgHtml);if(I=c.defaultThumbnail)e.J= Zk(I);e.Y("embeds_web_enable_search_button")&&c.searchButton&&(I=g.Q(c.searchButton,g.E5))&&(e.Ia=g.Q(I.navigationEndpoint,g.l8));(I=g.Q(c==null?void 0:c.videoDetails,mSM))&&qyr(e,L,I);I=g.Q(c==null?void 0:c.videoDetails,yIc);e.Nl=!!c.addToWatchLaterButton;Rof(e,c.shareButton);if(I==null?0:I.musicVideoType)e.musicVideoType=I.musicVideoType;var B,x,S,h,R;if(I=g.Q((B=e.getEmbeddedPlayerResponse())==null?void 0:(x=B.embedPreview)==null?void 0:(S=x.thumbnailPreviewRenderer)==null?void 0:(h=S.playButton)== null?void 0:(R=h.buttonRenderer)==null?void 0:R.navigationEndpoint,g.MD))MmH(e,I),e.videoId=I.videoId||e.videoId;c.videoDurationSeconds&&(e.lengthSeconds=ag(c.videoDurationSeconds));c.webPlayerActionsPorting&&J8r(e,c.webPlayerActionsPorting);if(B=g.Q(c==null?void 0:c.playlist,Zh6)){e.pX=!0;x=[];S=Number(B.currentIndex);if(B.contents)for(h=0,R=B.contents.length;h0:e.Ft?!1:e.UW.tj||e.UW.Fk||!g.Uh(e.UW)?!0:!1:(e.Ft?0:e.tj)&&g.Uh(e.UW)?!0:!1;e.Y("html5_log_detailpage_autoplay")&&L2(e)==="detailpage"&&e.sW("autoplay_info",{autoplay:e.h9,autonav:e.isAutonav,wasDompaused:e.Ft,result:L});return L}; g.xb=function(e){return e.oauthToken||e.UW.kN}; EzJ=function(e){if(e.Y("html5_stateful_audio_normalization")){var L=1,c=g.X3(e.UW.experiments,"html5_default_ad_gain");c&&e.isAd()&&(L=c);var I,B;c=(B=(I=e.G)==null?void 0:I.audio.G)!=null?B:e.kO;if(c==null||isNaN(c))e=USx(e);else{I=(0,g.zI)();e.GF=2;B=I-e.UW.DO<=e.maxStatefulTimeThresholdSec*1E3;e.applyStatefulNormalization&&B?e.GF=4:B||(e.UW.rp=Infinity,e.UW.DO=NaN);B=(e.GF===4?g.j5(e.UW.rp,e.minimumLoudnessTargetLkfs,e.loudnessTargetLkfs):e.loudnessTargetLkfs)-c;if(e.GF!==4){var x,S,h,R,u=((x= e.playerResponse)==null?void 0:(S=x.playerConfig)==null?void 0:(h=S.audioConfig)==null?void 0:(R=h.loudnessNormalizationConfig)==null?void 0:R.statelessLoudnessAdjustmentGain)||0;B+=u}B=Math.min(B,0);e.preserveStatefulLoudnessTarget&&(e.UW.rp=c+B,e.UW.DO=I);e=Math.min(1,Math.pow(10,B/20))||L}}else e=USx(e);return e}; USx=function(e){var L=1,c=g.X3(e.UW.experiments,"html5_default_ad_gain");c&&e.isAd()&&(L=c);if(e.UW.experiments.N0("html5_audio_gain_null_coalescing")){var I,B;c=(B=(I=e.G)==null?void 0:I.audio.Z)!=null?B:e.m1;c==0&&e.sW("db0fix",{rldb:e.m1},!0)}else{var x;c=((x=e.G)==null?void 0:x.audio.Z)||e.m1}isNaN(c)||(e.GF=1);return Math.min(1,Math.pow(10,-c/20))||L}; FU=function(e){var L=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],c=tb(e.UW)==="TVHTML5_SIMPLY"&&e.UW.X.ctheme==="MUSIC";!e.gZ&&(g.DF(e.UW)||g.Mu(e.UW)||c)&&(L.includes(e.musicVideoType)||e.isExternallyHostedPodcast)&&(e.gZ=!0);if(L=g.m2())L=/Starboard\/([0-9]+)/.exec(g.yc()),L=(L?parseInt(L[1],10):NaN)<10;c=e.UW;c=(tb(c)==="TVHTML5_CAST"||tb(c)==="TVHTML5"&&(c.X.cver.startsWith("6.20130725")||c.X.cver.startsWith("6.20130726")))&&e.UW.X.ctheme==="MUSIC";var I;if(I=!e.gZ)c||(c= e.UW,c=tb(c)==="TVHTML5"&&c.X.cver.startsWith("7")),I=c;I&&!L&&(L=e.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",c=(e.Y("cast_prefer_audio_only_for_atv_and_uploads")||e.Y("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&e.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",L||c||e.isExternallyHostedPodcast)&&(e.gZ=!0);return e.UW.deviceIsAudioOnly||e.gZ&&e.UW.J}; i8=function(e){var L,c,I;return((L=e.playerResponse)==null?void 0:(c=L.playerConfig)==null?void 0:(I=c.compositeVideoConfig)==null?void 0:I.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}; XF6=function(e){var L,c,I,B=(L=e.playerResponse)==null?void 0:(c=L.playerConfig)==null?void 0:(I=c.compositeVideoConfig)==null?void 0:I.sourceConfigs,x,S,h;e=(x=e.playerResponse)==null?void 0:(S=x.playerConfig)==null?void 0:(h=S.compositeVideoConfig)==null?void 0:h.defaultActiveSourceVideoId;if(!B||!e)return"";B=g.f(B);for(x=B.next();!x.done;x=B.next())if(x=x.value,x.videoId===e&&x.audioTracks)for(x=g.f(x.audioTracks),S=x.next();!S.done;S=x.next())if(S=S.value,S.isDefaultForSource)return S.id||""; return""}; g.KM$=function(e){return e.Y("html5_enable_sabr_live_captions")&&e.Wy()&&GN(e)||i8(e)}; oR=function(e){var L,c,I;return!!((L=e.playerResponse)==null?0:(c=L.playerConfig)==null?0:(I=c.mediaCommonConfig)==null?0:I.splitScreenEligible)}; SD=function(e){var L;return!((L=e.playerResponse)==null||!L.compositePlayabilityStatus)}; YyM=function(e){return isNaN(e)?0:Math.max((Date.now()-e)/1E3-30,0)}; r5=function(e){return!(!e.ue||!e.UW.J)&&e.gw()}; hq=function(e){return e.Tf&&e.enableServerStitchedDai}; nzc=function(e){return e.mR&&!e.Hv}; GN=function(e){var L=e.Y("html5_enable_sabr_on_drive")&&e.UW.pS==="gd";if(e.Iv)return e.mR&&e.sW("fds",{fds:!0},!0),!1;if(e.UW.pS!=="yt"&&!L)return e.mR&&e.sW("dsvn",{ns:e.UW.pS},!0),!1;if(e.cotn||!e.X||e.X.isOtf&&!e.Y("html5_enable_sabr_otf_in_client")||e.Z&&!e.Z.X||e.gj&&!e.Y("html5_enable_sabr_csdai"))return!1;if(e.Y("html5_use_sabr_requests_for_debugging"))return!0;e.mR&&e.sW("esfw",{usbc:e.mR,hsu:!!e.Hv},!0);if(e.mR&&e.Hv)return!0;if(e.Y("html5_remove_client_sabr_determination"))return!1;var c= !e.X.Wy&&!e.cg();L=c&&Oh&&e.Y("html5_enable_sabr_vod_streaming_xhr");c=c&&!Oh&&e.Y("html5_enable_sabr_vod_non_streaming_xhr");var I=RR(e),B=e.Y("html5_enable_sabr_drm_vod_streaming_xhr")&&Oh&&e.cg()&&!e.X.Wy&&(e.drmProduct==="1"?!1:!0);(L=L||c||I||B)&&!e.Hv&&e.sW("sabr",{loc:"m"},!0);return L&&!!e.Hv}; RR=function(e){var L;if(!(L=Oh&&e.Wy()&&e.cg()&&(e.drmProduct==="1"?!1:!0)&&e.Y("html5_sabr_live_drm_streaming_xhr"))){L=e.Wy()&&!e.cg()&&Oh;var c=e.Wy()&&e.latencyClass!=="ULTRALOW"&&!e.isLowLatencyLiveStream&&e.Y("html5_sabr_live_normal_latency_streaming_xhr"),I=e.isLowLatencyLiveStream&&e.Y("html5_sabr_live_low_latency_streaming_xhr"),B=e.latencyClass==="ULTRALOW"&&e.Y("html5_sabr_live_ultra_low_latency_streaming_xhr");L=L&&(c||I||B)}c=L;L=e.enableServerStitchedDai&&c&&e.Y("html5_enable_sabr_ssdai_streaming_xhr"); c=!e.enableServerStitchedDai&&c;I=e.Wy()&&!Oh&&e.Y("html5_enable_sabr_live_non_streaming_xhr");e=Oh&&(e.GI()||oR(e)&&e.Y("html5_enable_sabr_for_lifa_eligible_streams"));return L||c||I||e}; fLT=function(e){var L;if(L=!!e.cotn)L=e.videoId,L=!!L&&g.XM(L)===1;return L&&!e.ue}; g.uf=function(e){if(!e.X||!e.K||!e.G)return!1;var L=e.X.X,c=!!L[e.K.id]&&$0(L[e.K.id].V5.X);L=!!L[e.G.id]&&$0(L[e.G.id].V5.X);return(e.K.itag==="0"||c)&&L}; tq=function(e){return e.Cy?["OK","LIVE_STREAM_OFFLINE"].includes(e.Cy.status):!0}; pFJ=function(e){return(e=e.al)&&e.showError?e.showError:!1}; Oq=function(e,L){return e.Y(L)?!0:(e.fflags||"").includes(L+"=true")}; Syc=function(e,L){L.inlineMetricEnabled&&(e.inlineMetricEnabled=!0);L.playback_progress_0s_url&&(e.gb=new NKn(L));if(L=L.video_masthead_ad_quartile_urls)e.pW=L.quartile_0_url,e.nM=L.quartile_25_url,e.HA=L.quartile_50_url,e.fM=L.quartile_75_url,e.lR=L.quartile_100_url,e.Of=L.quartile_0_urls,e.aJ=L.quartile_25_urls,e.jI=L.quartile_50_urls,e.CL=L.quartile_75_urls,e.t0=L.quartile_100_urls}; ozT=function(e){var L={};e=g.f(e);for(var c=e.next();!c.done;c=e.next()){c=c.value;var I=c.split("=");I.length===2?L[I[0]]=I[1]:L[c]=!0}return L}; ILM=function(e){if(e){if(soc(e))return e;e=vg$(e);if(soc(e,!0))return e}return""}; g.eUv=function(e){return e.captionsLanguagePreference||e.UW.captionsLanguagePreference||g.jI(e,"yt:cc_default_lang")||e.UW.XD}; qU=function(e){return!(!e.isLivePlayback||!e.hasProgressBarBoundaries())}; g.zN=function(e){var L;return e.Xy||((L=e.suggestions)==null?void 0:L[0])||null}; g.TC=function(e){var L,c;return!!((L=e.embeddedPlayerConfig)==null?0:(c=L.embeddedPlayerFlags)==null?0:c.enableMusicUx)}; Lg$=function(e){return e.T||e.Y("web_player_media_session_infinity")&&e.isLivePlayback}; WS=function(e){return e.UW.G&&e.isPrivate}; g.zC=function(e){var L=e.S(),c=g.MU(L),I=L.xT;(L.Y("embeds_web_enable_iframe_api_send_full_embed_url")||L.Y("embeds_web_enable_rcat_validation_in_havs")||L.Y("embeds_enable_autoplay_and_visibility_signals"))&&g.eb(L)&&(I&&(c.thirdParty=Object.assign({},c.thirdParty,{embedUrl:I})),xiT(c,e));if(I=e.Y9)c.clickTracking={clickTrackingParams:I};else if(g.eb(e.S())&&g.Zu("EVENT_ID"))c.clickTracking={clickTrackingParams:g.Zu("EVENT_ID")};else if(L.Y("html5_log_missing_itct")){var B;I=new g.yu("Missing ITCT in InnerTubeContext", {isAd:e.isAd(),tTW:(B=L.getWebPlayerContextConfig())==null?void 0:B.contextId});g.A9(I)}B=c.client||{};I="EMBED";var x=L2(e);x==="leanback"?I="WATCH":L.Y("gvi_channel_client_screen")&&x==="profilepage"?I="CHANNEL":e.x9?I="LIVE_MONITOR":x==="detailpage"?I="WATCH_FULL_SCREEN":x==="adunit"?I="ADUNIT":x==="sponsorshipsoffer"&&(I="UNKNOWN");B.clientScreen=I;if(L=e.kidsAppInfo)B.kidsAppInfo=JSON.parse(L);(I=e.aR)&&!L&&(B.kidsAppInfo={contentSettings:{ageUpMode:cRc[I]}});if(L=e.RC)B.unpluggedAppInfo={enableFilterMode:!0}; (I=e.unpluggedFilterModeType)&&!L&&(B.unpluggedAppInfo={filterModeType:IjJ[I]});if(L=e.IU)B.unpluggedLocationInfo=L;c.client=B;B=c.request||{};e.kN&&(B.isPrefetch=!0);if(L=e.mdxEnvironment)B.mdxEnvironment=L;if(L=e.mdxControlMode)B.mdxControlMode=B8M[L];c.request=B;B=c.user||{};if(L=e.Ve)B.credentialTransferTokens=[{token:L,scope:"VIDEO"}];if(L=e.RI)B.delegatePurchases={oauthToken:L},B.kidsParent={oauthToken:L};c.user=B;if(B=e.contextParams)c.activePlayers=[{playerContextParams:B}];if(e=e.clientScreenNonce)c.clientScreenNonce= e;return c}; g.MU=function(e){var L=g.l1(),c=L.client||{};if(e.forcedExperiments){var I=e.forcedExperiments.split(","),B=[];I=g.f(I);for(var x=I.next();!x.done;x=I.next())B.push(Number(x.value));c.experimentIds=B}if(B=e.homeGroupInfo)c.homeGroupInfo=JSON.parse(B);if(B=e.getPlayerType())c.playerType=B;if(B=e.X.ctheme)c.theme=B;if(B=e.livingRoomAppMode)c.tvAppInfo=Object.assign({},c.tvAppInfo,{livingRoomAppMode:B});B=e.deviceYear;e.Y("html5_propagate_device_year")&&B&&(c.tvAppInfo=Object.assign({},c.tvAppInfo,{deviceYear:B})); if(B=e.livingRoomPoTokenId)c.tvAppInfo=Object.assign({},c.tvAppInfo,{livingRoomPoTokenId:B});L.client=c;c=L.user||{};e.enableSafetyMode&&(c=Object.assign({},c,{enableSafetyMode:!0}));e.pageId&&(c=Object.assign({},c,{onBehalfOfUser:e.pageId}));L.user=c;c=e.xT;e.Y("embeds_web_enable_iframe_api_send_full_embed_url")||e.Y("embeds_web_enable_rcat_validation_in_havs")||e.Y("embeds_enable_autoplay_and_visibility_signals")||!c||(L.thirdParty={embedUrl:c});return L}; RUJ=function(e,L,c){var I=e.videoId,B=g.zC(e),x=e.S(),S={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(qc()),referer:document.location.toString(),signatureTimestamp:20278};g.J7();e.isAutonav&&(S.autonav=!0);g.Vu(0,141)&&(S.autonavState=g.Vu(0,140)?"STATE_OFF":"STATE_ON");S.autoCaptionsDefaultOn=g.Vu(0,66);dS6(e)&&(S.autoplay=!0);x.J&&e.cycToken&&(S.cycToken=e.cycToken);x.enablePrivacyFilter&&(S.enablePrivacyFilter=!0);e.isFling&&(S.fling=!0);var h=e.forceAdsUrl;if(h){var R={},u=[];h= h.split(",");h=g.f(h);for(var t=h.next();!t.done;t=h.next()){t=t.value;var O=t.split("|");O.length!==3||t.includes("=")||(O[0]="breaktype="+O[0],O[1]="offset="+O[1],O[2]="url="+O[2]);t={adtype:"video_ad"};O=g.f(O);for(var q=O.next();!q.done;q=O.next()){var T=g.f(q.value.split("="));q=T.next().value;T=xMv(T);t[q]=T.join("=")}O=t.url;q=t.presetad;T=t.viralresponseurl;var W=Number(t.campaignid);if(t.adtype==="in_display_ad")O&&(R.url=O),q&&(R.presetAd=q),T&&(R.viralAdResponseUrl=T),W&&(R.viralCampaignId= String(W));else if(t.adtype==="video_ad"){var A={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(t.offset)||0)}};if(t=x5c[t.breaktype])A.breakType=t;O&&(A.url=O);q&&(A.presetAd=q);T&&(A.viralAdResponseUrl=T);W&&(A.viralCampaignId=String(W));u.push(A)}}S.forceAdParameters={videoAds:u,inDisplayAd:R}}e.isInlinePlaybackNoAd&&(S.isInlinePlaybackNoAd=!0);e.isLivingRoomDeeplink&&(S.isLivingRoomDeeplink=!0);R=e.F6;if(R!=null){R={startWalltime:String(R)};if(u=e.wb)R.manifestDuration=String(u||14400); S.liveContext=R}if(e.mutedAutoplay){S.mutedAutoplay=!0;R=x.getWebPlayerContextConfig();var b,J;(R==null?0:(b=R.embedsHostFlags)==null?0:b.allowMutedAutoplayDurationMode)&&(R==null?0:(J=R.embedsHostFlags)==null?0:J.allowMutedAutoplayDurationMode.includes(oBc[e.mutedAutoplayDurationMode]))&&(S.mutedAutoplayDurationMode=oBc[e.mutedAutoplayDurationMode])}if(e.Ft?0:e.tj)S.splay=!0;b=e.vnd;b===5&&(S.vnd=b);b={};if(J=e.isMdxPlayback)b.triggeredByMdx=J;if(J=e.CY)b.skippableAdsSupported=J.split(",").includes("ska"); if(u=e.Ne){J=e.O4;R=[];u=g.f(off(u));for(h=u.next();!h.done;h=u.next()){h=h.value;t=h.platform;h={applicationState:h.MY?"INACTIVE":"ACTIVE",clientFormFactor:STc[t]||"UNKNOWN_FORM_FACTOR",clientName:rEf[h.ZW]||"UNKNOWN_INTERFACE",clientVersion:h.deviceVersion||"",platform:rRJ[t]||"UNKNOWN_PLATFORM"};t={};if(J){O=void 0;try{O=JSON.parse(J)}catch(C){g.F7(C)}O&&(t={params:[{key:"ms",value:O.ms}]},O.advertising_id&&(t.advertisingId=O.advertising_id),O.limit_ad_tracking!==void 0&&O.limit_ad_tracking!== null&&(t.limitAdTracking=O.limit_ad_tracking),h.osName=O.os_name,h.userAgent=O.user_agent,h.windowHeightPoints=O.window_height_points,h.windowWidthPoints=O.window_width_points)}R.push({adSignalsInfo:t,remoteClient:h})}b.remoteContexts=R}J=e.sourceContainerPlaylistId;R=e.serializedMdxMetadata;if(J||R)u={},J&&(u.mdxPlaybackContainerInfo={sourceContainerPlaylistId:J}),R&&(u.serializedMdxMetadata=R),b.mdxPlaybackSourceContext=u;S.mdxContext=b;b=L.width;b>0&&(S.playerWidthPixels=Math.round(b));if(L=L.height)S.playerHeightPixels= Math.round(L);c!==0&&(S.vis=c);if(c=x.widgetReferrer)S.widgetReferrer=c.substring(0,128);g.Uh(x)&&S&&(S.ancestorOrigins=x.ancestorOrigins);e.defaultActiveSourceVideoId&&(S.compositeVideoContext={defaultActiveSourceVideoId:e.defaultActiveSourceVideoId});if(x=x.getWebPlayerContextConfig())S.encryptedHostFlags=x.encryptedHostFlags;I={videoId:I,context:B,playbackContext:{contentPlaybackContext:S}};if(e.je){var w;I.playbackContext.reloadPlaybackContext={reloadPlaybackParams:(w=e.je)==null?void 0:w.reloadPlaybackParams}}e.contentCheckOk&& (I.contentCheckOk=!0);if(w=e.clientPlaybackNonce)I.cpn=w;if(w=e.playerParams)I.params=w;if(w=e.playlistId)I.playlistId=w;e.racyCheckOk&&(I.racyCheckOk=!0);w=e.S();if(B=w.embedConfig)I.serializedThirdPartyEmbedConfig=B;I.captionParams={};B=g.Vu(g.J7(),65);e.deviceCaptionsOn!=null?I.captionParams.deviceCaptionsOn=e.deviceCaptionsOn:g.T3(w)&&(I.captionParams.deviceCaptionsOn=B!=null?!B:!1);e.Yn&&(I.captionParams.deviceCaptionsLangPref=e.Yn);e.u7.length?I.captionParams.viewerSelectedCaptionLangs=e.u7: g.T3(w)&&(B=g.te(),B==null?0:B.length)&&(I.captionParams.viewerSelectedCaptionLangs=B);B=e.fetchType==="onesie"&&e.Y("html5_onesie_attach_po_token");S=e.fetchType!=="onesie"&&e.Y("html5_non_onesie_attach_po_token");if(B||S)B=e.S(),B.Ft&&(I.serviceIntegrityDimensions={},I.serviceIntegrityDimensions.poToken=B.Ft);w.Y("fetch_att_independently")&&(I.attestationRequest={omitBotguardData:!0});I.playbackContext||(I.playbackContext={});I.playbackContext.devicePlaybackCapabilities=hUM(e);I.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding=== !1&&e.sW("noVp9",{});return I}; hUM=function(e){var L=!(e==null?0:e.Cv())&&(e==null?void 0:e.Wy())&&da(),c;if(!(c=e==null)){c=g.g7(e);e=e.S().B;var I=G3("243");c=!(I&&DA(c,I,e,!0)===!0)}return{supportsVp9Encoding:!(c||L),supportXhr:Oh}}; tXv=function(e,L){var c,I,B;return g.Z(function(x){if(x.K==1)return c={context:g.MU(e.S()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:e.videoId,cpn:e.clientPlaybackNonce}}]},I=g.d9(udM),g.a(x,g.w_(L,c,I),2);B=x.X;return x.return(B)})}; ObR=function(e,L,c){var I=g.X3(L.experiments,"bg_vm_reinit_threshold");(!Xd||(0,g.zI)()-Xd>I)&&tXv(e,c).then(function(B){B&&(B=B.botguardData)&&g.YB(B,L)},function(B){e.We()||(B=uy(B),e.sW("attf",B.details))})}; sq=function(e,L){g.p.call(this);this.app=e;this.state=L}; f2=function(e,L,c){e.state.X.hasOwnProperty(L)||vS(e,L,c);e.state.T[L]=function(){return c.apply(e,g.HM.apply(0,arguments))}; e.state.j.add(L)}; Aq=function(e,L,c){e.state.X.hasOwnProperty(L)||vS(e,L,c);e.app.S().J&&(e.state.J[L]=function(){return c.apply(e,g.HM.apply(0,arguments))},e.state.j.add(L))}; vS=function(e,L,c){e.state.X[L]=function(){return c.apply(e,g.HM.apply(0,arguments))}}; g.Fl=function(e,L,c){return e.state.X[L].apply(e.state.X,g.V(c))}; bf=function(){g.zl.call(this);this.B=new Map}; GC=function(){g.p.apply(this,arguments);this.element=null;this.j=new Set;this.T={};this.J={};this.X={};this.D=new Set;this.Z=new bf;this.K=new bf;this.G=new bf;this.B=new bf}; qTf=function(e,L,c){typeof e==="string"&&(e={mediaContentUrl:e,startSeconds:L,suggestedQuality:c});a:{if((L=e.mediaContentUrl)&&(L=/\/([ve]|embed)\/([^#?]+)/.exec(L))&&L[2]){L=L[2];break a}L=null}e.videoId=L;return g5(e)}; g5=function(e,L,c){if(typeof e==="string")return{videoId:e,startSeconds:L,suggestedQuality:c};L={};c=g.f(T8x);for(var I=c.next();!I.done;I=c.next())I=I.value,e[I]&&(L[I]=e[I]);return L}; Wgn=function(e,L,c,I){if(g.Se(e)&&!Array.isArray(e)){L="playlist list listType index startSeconds suggestedQuality".split(" ");c={};for(I=0;I32&&I.push("hfr");L.isHdr()&&I.push("hdr");L.primaries==="bt2020"&&I.push("wcg");c.video_quality_features=I}}if(e=e.getPlaylistId())c.list=e;return c}; V4=function(){kb.apply(this,arguments)}; C2=function(e,L){var c={};if(e.app.S().h7){e=g.f(vBn);for(var I=e.next();!I.done;I=e.next())I=I.value,L.hasOwnProperty(I)&&(c[I]=L[I]);if(L=c.qoe_cat)e="",typeof L==="string"&&L.length>0&&(e=L.split(",").filter(function(B){return fjx.includes(B)}).join(",")),c.qoe_cat=e; ART(c)}else for(e=g.f(Fgc),I=e.next();!I.done;I=e.next())I=I.value,L.hasOwnProperty(I)&&(c[I]=L[I]);return c}; ART=function(e){var L=e.raw_player_response;if(!L){var c=e.player_response;c&&(L=JSON.parse(c))}delete e.player_response;delete e.raw_player_response;if(L){e.raw_player_response={streamingData:L.streamingData,playerConfig:L.playerConfig};var I;if((I=L.playbackTracking)==null?0:I.qoeUrl)e.raw_player_response=Object.assign({},e.raw_player_response,{playbackTracking:{qoeUrl:L.playbackTracking.qoeUrl}});L.videoDetails&&(L.videoDetails.videoId||L.videoDetails.lengthSeconds)&&(c={},L.videoDetails.videoId&& (c.videoId=L.videoDetails.videoId),L.videoDetails.lengthSeconds&&(c.lengthSeconds=L.videoDetails.lengthSeconds),e.raw_player_response=Object.assign({},e.raw_player_response,{videoDetails:c}))}}; aR=function(e,L,c){var I=e.app.sR(c);if(!I)return 0;e=I-e.app.getCurrentTime(c);return L-e}; ibv=function(e){var L=L===void 0?5:L;return e?bbM[e]||L:L}; g.NU=function(){V4.apply(this,arguments)}; GRH=function(e){vS(e,"getInternalApiInterface",e.getInternalApiInterface);vS(e,"addEventListener",e.RZ);vS(e,"removeEventListener",e.E0M);vS(e,"cueVideoByPlayerVars",e.jz);vS(e,"loadVideoByPlayerVars",e.M8);vS(e,"preloadVideoByPlayerVars",e.g0M);vS(e,"getAdState",e.getAdState);vS(e,"sendAbandonmentPing",e.sendAbandonmentPing);vS(e,"setLoopRange",e.setLoopRange);vS(e,"getLoopRange",e.getLoopRange);vS(e,"setAutonavState",e.setAutonavState);vS(e,"seekTo",e.YFl);vS(e,"seekBy",e.BZM);vS(e,"seekToLiveHead", e.seekToLiveHead);vS(e,"requestSeekToWallTimeSeconds",e.requestSeekToWallTimeSeconds);vS(e,"seekToStreamTime",e.seekToStreamTime);vS(e,"prefetchKeyPlay",e.prefetchKeyPlay);vS(e,"startSeekCsiAction",e.startSeekCsiAction);vS(e,"getStreamTimeOffset",e.getStreamTimeOffset);vS(e,"getVideoData",e.bQ);vS(e,"setInlinePreview",e.setInlinePreview);vS(e,"getAppState",e.getAppState);vS(e,"updateLastActiveTime",e.updateLastActiveTime);vS(e,"setBlackout",e.setBlackout);vS(e,"setUserEngagement",e.setUserEngagement); vS(e,"updateSubtitlesUserSettings",e.updateSubtitlesUserSettings);vS(e,"getPresentingPlayerType",e.m2);vS(e,"canPlayType",e.canPlayType);vS(e,"updatePlaylist",e.updatePlaylist);vS(e,"updateVideoData",e.updateVideoData);vS(e,"updateEnvironmentData",e.updateEnvironmentData);vS(e,"sendVideoStatsEngageEvent",e.ym0);vS(e,"productsInVideoVisibilityUpdated",e.productsInVideoVisibilityUpdated);vS(e,"setSafetyMode",e.setSafetyMode);vS(e,"isAtLiveHead",function(L){return e.isAtLiveHead(void 0,L)}); vS(e,"getVideoAspectRatio",e.getVideoAspectRatio);vS(e,"getPreferredQuality",e.getPreferredQuality);vS(e,"getPlaybackQualityLabel",e.getPlaybackQualityLabel);vS(e,"setPlaybackQualityRange",e.gfe);vS(e,"onAdUxClicked",e.onAdUxClicked);vS(e,"getFeedbackProductData",e.getFeedbackProductData);vS(e,"getStoryboardFrame",e.getStoryboardFrame);vS(e,"getStoryboardFrameIndex",e.getStoryboardFrameIndex);vS(e,"getStoryboardLevel",e.getStoryboardLevel);vS(e,"getNumberOfStoryboardLevels",e.getNumberOfStoryboardLevels); vS(e,"getCaptionWindowContainerId",e.getCaptionWindowContainerId);vS(e,"getAvailableQualityLabels",e.getAvailableQualityLabels);vS(e,"addCueRange",e.addCueRange);vS(e,"addUtcCueRange",e.addUtcCueRange);vS(e,"showAirplayPicker",e.showAirplayPicker);vS(e,"dispatchReduxAction",e.dispatchReduxAction);vS(e,"getPlayerResponse",e.vN);vS(e,"getWatchNextResponse",e.rL);vS(e,"getHeartbeatResponse",e.gL);vS(e,"getCurrentTime",e.oK);vS(e,"getDuration",e.tF);vS(e,"getPlayerState",e.getPlayerState);vS(e,"getPlayerStateObject", e.dL);vS(e,"getVideoLoadedFraction",e.getVideoLoadedFraction);vS(e,"getProgressState",e.getProgressState);vS(e,"getVolume",e.getVolume);vS(e,"setVolume",e.Ea);vS(e,"isMuted",e.isMuted);vS(e,"mute",e.R5);vS(e,"unMute",e.Ri);vS(e,"loadModule",e.loadModule);vS(e,"unloadModule",e.unloadModule);vS(e,"getOption",e.dH);vS(e,"getOptions",e.getOptions);vS(e,"setOption",e.setOption);vS(e,"loadVideoById",e.jy);vS(e,"loadVideoByUrl",e.BZ);vS(e,"playVideo",e.tA);vS(e,"loadPlaylist",e.loadPlaylist);vS(e,"nextVideo", e.nextVideo);vS(e,"previousVideo",e.previousVideo);vS(e,"playVideoAt",e.playVideoAt);vS(e,"getDebugText",e.getDebugText);vS(e,"getWebPlayerContextConfig",e.getWebPlayerContextConfig);vS(e,"notifyShortsAdSwipeEvent",e.notifyShortsAdSwipeEvent);vS(e,"getVideoContentRect",e.getVideoContentRect);vS(e,"setSqueezeback",e.setSqueezeback);vS(e,"toggleSubtitlesOn",e.toggleSubtitlesOn);vS(e,"isSubtitlesOn",e.isSubtitlesOn);vS(e,"reportPlaybackIssue",e.reportPlaybackIssue);vS(e,"setAutonav",e.setAutonav);vS(e, "isNotServable",e.isNotServable);vS(e,"channelSubscribed",e.channelSubscribed);vS(e,"channelUnsubscribed",e.channelUnsubscribed);vS(e,"togglePictureInPicture",e.togglePictureInPicture);vS(e,"supportsGaplessAudio",e.supportsGaplessAudio);vS(e,"supportsGaplessShorts",e.supportsGaplessShorts);vS(e,"enqueueVideoByPlayerVars",function(L){return void e.enqueueVideoByPlayerVars(L)}); vS(e,"clearQueue",e.clearQueue);vS(e,"getAudioTrack",e.Ys);vS(e,"setAudioTrack",e.ttW);vS(e,"getAvailableAudioTracks",e.cN);vS(e,"getMaxPlaybackQuality",e.getMaxPlaybackQuality);vS(e,"getUserPlaybackQualityPreference",e.getUserPlaybackQualityPreference);vS(e,"getSubtitlesUserSettings",e.getSubtitlesUserSettings);vS(e,"resetSubtitlesUserSettings",e.resetSubtitlesUserSettings);vS(e,"setMinimized",e.setMinimized);vS(e,"setOverlayVisibility",e.setOverlayVisibility);vS(e,"confirmYpcRental",e.confirmYpcRental); vS(e,"queueNextVideo",e.queueNextVideo);vS(e,"handleExternalCall",e.handleExternalCall);vS(e,"logApiCall",e.logApiCall);vS(e,"isExternalMethodAvailable",e.isExternalMethodAvailable);vS(e,"setScreenLayer",e.setScreenLayer);vS(e,"getCurrentPlaylistSequence",e.getCurrentPlaylistSequence);vS(e,"getPlaylistSequenceForTime",e.getPlaylistSequenceForTime);vS(e,"shouldSendVisibilityState",e.shouldSendVisibilityState);vS(e,"syncVolume",e.syncVolume);vS(e,"highlightSettingsMenuItem",e.highlightSettingsMenuItem); vS(e,"openSettingsMenuItem",e.openSettingsMenuItem);vS(e,"getEmbeddedPlayerResponse",e.getEmbeddedPlayerResponse);vS(e,"getVisibilityState",e.getVisibilityState);vS(e,"isMutedByMutedAutoplay",e.isMutedByMutedAutoplay);vS(e,"isMutedByEmbedsMutedAutoplay",e.isMutedByEmbedsMutedAutoplay);vS(e,"setGlobalCrop",e.setGlobalCrop);vS(e,"setInternalSize",e.setInternalSize);vS(e,"setFauxFullscreen",e.setFauxFullscreen);vS(e,"setAppFullscreen",e.setAppFullscreen)}; y4=function(e,L,c){e=g.mC(e.Aq(),L);return c?(c.addOnDisposeCallback(e),null):e}; g.Zb=function(e,L,c){return e.app.S().pj?L:g.nC("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:L,SHORTCUT:c})}; gBc=function(e){e.Aq().element.setAttribute("aria-live","polite")}; g.p2=function(e,L){g.NU.call(this,e,L);GRH(this);Aq(this,"addEventListener",this.uN);Aq(this,"removeEventListener",this.rqe);Aq(this,"cueVideoByPlayerVars",this.Bb);Aq(this,"loadVideoByPlayerVars",this.Pp);Aq(this,"preloadVideoByPlayerVars",this.FZY);Aq(this,"loadVideoById",this.jy);Aq(this,"loadVideoByUrl",this.BZ);Aq(this,"playVideo",this.tA);Aq(this,"loadPlaylist",this.loadPlaylist);Aq(this,"nextVideo",this.nextVideo);Aq(this,"previousVideo",this.previousVideo);Aq(this,"playVideoAt",this.playVideoAt); Aq(this,"getVideoData",this.Lm);Aq(this,"seekBy",this.RCl);Aq(this,"seekTo",this.TZe);Aq(this,"showControls",this.showControls);Aq(this,"hideControls",this.hideControls);Aq(this,"cancelPlayback",this.cancelPlayback);Aq(this,"getProgressState",this.getProgressState);Aq(this,"isInline",this.isInline);Aq(this,"setInline",this.setInline);Aq(this,"setLoopVideo",this.setLoopVideo);Aq(this,"getLoopVideo",this.getLoopVideo);Aq(this,"getVideoContentRect",this.getVideoContentRect);Aq(this,"getVideoStats",this.E_); Aq(this,"getCurrentTime",this.PN);Aq(this,"getDuration",this.tF);Aq(this,"getPlayerState",this.n4);Aq(this,"getVideoLoadedFraction",this.L4);Aq(this,"mute",this.R5);Aq(this,"unMute",this.Ri);Aq(this,"setVolume",this.Ea);Aq(this,"loadModule",this.loadModule);Aq(this,"unloadModule",this.unloadModule);Aq(this,"getOption",this.dH);Aq(this,"getOptions",this.getOptions);Aq(this,"setOption",this.setOption);Aq(this,"addCueRange",this.addCueRange);Aq(this,"getDebugText",this.getDebugText);Aq(this,"getStoryboardFormat", this.getStoryboardFormat);Aq(this,"toggleFullscreen",this.toggleFullscreen);Aq(this,"isFullscreen",this.isFullscreen);Aq(this,"getPlayerSize",this.getPlayerSize);Aq(this,"toggleSubtitles",this.toggleSubtitles);Aq(this,"setCenterCrop",this.setCenterCrop);Aq(this,"setFauxFullscreen",this.setFauxFullscreen);Aq(this,"setSizeStyle",this.setSizeStyle);Aq(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);Aq(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);zUx(this)}; g.$b=function(e){e=e.qx();var L=e.Xt.get("endscreen");return L&&L.Ai()?!0:e.bD()}; g.jD=function(e,L){e.getPresentingPlayerType()===3?e.publish("mdxautoplaycancel"):e.fS("onAutonavCancelled",L)}; g.lf=function(e){var L=HS(e.qx());return e.app.yy&&!e.isFullscreen()||e.getPresentingPlayerType()===3&&L&&L.g$()&&L.r9()||!!e.getPlaylist()}; g.PS=function(e,L){g.Fl(e,"addEmbedsConversionTrackingParams",[L])}; g.d5=function(e){return(e=g.Q4(e.qx()))?e.s$():{}}; g.kRf=function(e){e=(e=e.getVideoData())&&e.K;return!!e&&!(!e.audio||!e.video)&&e.mimeType!=="application/x-mpegURL"}; g.Uq=function(e,L,c){e=e.LS().element;var I=PU(e.children,function(B){B=Number(B.getAttribute("data-layer"));return c-B||1}); I<0&&(I=-(I+1));z$(e,L,I);L.setAttribute("data-layer",String(c))}; g.Eq=function(e){var L=e.S();if(!L.IU)return!1;var c=e.getVideoData();if(!c||e.getPresentingPlayerType()===3)return!1;var I=(!c.isLiveDefaultBroadcast||L.Y("allow_poltergust_autoplay"))&&!qU(c);I=c.isLivePlayback&&(!L.Y("allow_live_autoplay")||!I);var B=c.isLivePlayback&&L.Y("allow_live_autoplay_on_mweb");e=e.getPlaylist();e=!!e&&e.g$();var x=c.ye&&c.ye.playerOverlays||null;x=!!(x&&x.playerOverlayRenderer&&x.playerOverlayRenderer.autoplay);x=c.xx&&x;return!c.ypcPreview&&(!I||B)&&!g.Fh(c.h7,"ypc")&& !e&&(!g.Uh(L)||x)}; w$c=function(e,L){e=D5v(e.app.MM().B);e=g.f(e);for(var c=e.next();!c.done;c=e.next()){c=c.value;var I=c.getAvailableAudioTracks(),B=null;I=g.f(I);for(var x=I.next();!x.done;x=I.next())if(x=x.value,x.getLanguageInfo().getId()===L){B=x;break}B&&c.oL(B,!0)}}; Xl=function(){D8.apply(this,arguments);this.requestHeaders={}}; Yb=function(){K2||(K2=new Xl);return K2}; n2=function(e,L){L?e.requestHeaders.Authorization="Bearer "+L:delete e.requestHeaders.Authorization}; g.eS=function(e){g.p.call(this);var L=this;this.zm=e;this.kx={bK:function(){return L.zm}}}; g.Lr=function(e,L,c,I){I=I===void 0?!1:I;g.I9.call(this,L);var B=this;this.V=e;this.Gm=I;this.J=new g.zn(this);this.fade=new g.dJ(this,c,!0,void 0,void 0,function(){B.Ym()}); g.l(this,this.J);g.l(this,this.fade)}; c8=function(e){var L=e.V.getRootNode();return e.V.Y("web_watch_pip")||e.V.Y("web_shorts_pip")?cz(L):document}; JRR=function(e){e.K&&(document.activeElement&&g.vz(e.element,document.activeElement)&&e.K.focus(),e.K.setAttribute("aria-expanded","false"),e.K=void 0);g.fv(e.J);e.D=void 0}; Iv=function(e,L,c){e.Wq()?e.y5():e.Fp(L,c)}; B8=function(e,L,c,I){I=new g.U({U:"div",Rq:["ytp-linked-account-popup-button"],aq:I,N:{role:"button",tabindex:"0"}});L=new g.U({U:"div",W:"ytp-linked-account-popup",N:{role:"dialog","aria-modal":"true",tabindex:"-1"},L:[{U:"div",W:"ytp-linked-account-popup-title",aq:L},{U:"div",W:"ytp-linked-account-popup-description",aq:c},{U:"div",W:"ytp-linked-account-popup-buttons",L:[I]}]});g.Lr.call(this,e,{U:"div",W:"ytp-linked-account-popup-container",L:[L]},100);var B=this;this.dialog=L;g.l(this,this.dialog); I.listen("click",function(){B.y5()}); g.l(this,I);g.Uq(this.V,this.element,4);this.hide()}; g.ov=function(e,L,c,I){g.I9.call(this,e);this.priority=L;c&&g.xq(this,c);I&&this.Hw(I)}; g.SS=function(e,L,c,I){e=e===void 0?{}:e;L=L===void 0?[]:L;c=c===void 0?!1:c;I=I===void 0?!1:I;L.push("ytp-menuitem");var B=e;"role"in B||(B.role="menuitem");c||(B=e,"tabindex"in B||(B.tabindex="0"));e={U:c?"a":"div",Rq:L,N:e,L:[{U:"div",W:"ytp-menuitem-icon",aq:"{{icon}}"},{U:"div",W:"ytp-menuitem-label",aq:"{{label}}"},{U:"div",W:"ytp-menuitem-content",aq:"{{content}}"}]};I&&e.L.push({U:"div",W:"ytp-menuitem-secondary-icon",aq:"{{secondaryIcon}}"});return e}; g.xq=function(e,L){e.updateValue("label",L)}; rd=function(e){g.ov.call(this,g.SS({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var L=this;this.V=e;this.K=this.X=!1;this.G_=e.T8();e.createServerVe(this.element,this,!0);this.C(this.V,"settingsMenuVisibilityChanged",function(c){L.vy(c)}); this.C(this.V,"videodatachange",this.G);this.listen("click",this.onClick);this.G()}; hk=function(e){return e?g.o9(e):""}; Rv=function(e){g.p.call(this);this.api=e}; u_=function(e){Rv.call(this,e);var L=this;vS(e,"setAccountLinkState",function(c){L.setAccountLinkState(c)}); vS(e,"updateAccountLinkingConfig",function(c){L.updateAccountLinkingConfig(c)}); e.addEventListener("videodatachange",function(c,I){L.onVideoDataChange(I)}); e.addEventListener("settingsMenuInitialized",function(){L.menuItem=new rd(L.api);g.l(L,L.menuItem)})}; VXn=function(e){this.api=e;this.X={}}; tk=function(e,L,c,I){L in e.X||(c=new g.pC(c,I,{id:L,priority:2,namespace:"appad"}),e.api.Lb([c],1),e.X[L]=c)}; O4=function(e){Rv.call(this,e);var L=this;this.events=new g.zn(this);g.l(this,this.events);this.X=new VXn(this.api);this.events.C(this.api,"legacyadtrackingpingreset",function(){L.X.X={}}); this.events.C(this.api,"legacyadtrackingpingchange",function(c){var I=L.X;tk(I,"part2viewed",1,0x8000000000000);tk(I,"engagedview",Math.max(1,c.sY*1E3),0x8000000000000);if(!c.isLivePlayback){var B=c.lengthSeconds*1E3;A1(c)&&I.api.Y("html5_shorts_gapless_ads_duration_fix")&&(B=I.api.getProgressState().seekableEnd*1E3-c.Jh);tk(I,"videoplaytime25",B*.25,B);tk(I,"videoplaytime50",B*.5,B);tk(I,"videoplaytime75",B*.75,B);tk(I,"videoplaytime100",B,0x8000000000000);tk(I,"conversionview",B,0x8000000000000); tk(I,"videoplaybackstart",1,B);tk(I,"videoplayback2s",2E3,B);tk(I,"videoplayback10s",1E4,B)}}); this.events.C(this.api,g.jh("appad"),this.K);this.events.C(this.api,g.Hq("appad"),this.K)}; m5r=function(e,L,c){if(!(c in L))return!1;L=L[c];Array.isArray(L)||(L=[L]);L=g.f(L);for(c=L.next();!c.done;c=L.next()){c=c.value;var I={CPN:e.api.getVideoData().clientPlaybackNonce};c=g.FV(c,I);I=void 0;I=I===void 0?!1:I;(I=CC(a2(c,CsH),c,I,"Active View 3rd Party Integration URL"))||(I=void 0,I=I===void 0?!1:I,I=CC(a2(c,ajT),c,I,"Google/YouTube Brand Lift URL"));I||(I=void 0,I=I===void 0?!1:I,I=CC(a2(c,N8M),c,I,"Nielsen OCR URL"));g.gO(c,void 0,I)}return!0}; qo=function(e,L){yRR(e,L).then(function(c){g.gO(L,void 0,void 0,c)})}; T2=function(e,L){L.forEach(function(c){qo(e,c)})}; yRR=function(e,L){return g.R2(e.api.S())&&eG(L)&&nT(L)?g.bj(e.api.S(),g.xb(e.api.getVideoData())).then(function(c){var I;c&&(I={Authorization:"Bearer "+c});return I},void 0):F1()}; Zbx=function(e){Rv.call(this,e);this.events=new g.zn(e);g.l(this,this.events);this.events.C(e,"videoready",function(L){if(e.getPresentingPlayerType()===1){var c,I,B={playerDebugData:{pmlSignal:!!((c=L.getPlayerResponse())==null?0:(I=c.adPlacements)==null?0:I.some(function(x){var S;return x==null?void 0:(S=x.adPlacementRenderer)==null?void 0:S.renderer})), contentCpn:L.clientPlaybackNonce}};g.et("adsClientStateChange",B)}})}; W8=function(e){g.U.call(this,{U:"button",Rq:["ytp-button","ytp-autonav-toggle"],N:{title:"{{title}}","aria-label":"{{label}}","data-priority":"3","data-tooltip-target-id":"ytp-autonav-toggle-button"},L:[{U:"div",W:"ytp-autonav-toggle-button-container",L:[{U:"div",W:"ytp-autonav-toggle-button",N:{"aria-checked":"true"}}]}]});this.V=e;this.K=[];this.X=!1;this.isChecked=!0;e.createClientVe(this.element,this,113681);this.C(e,"presentingplayerstatechange",this.vk);this.listen("click",this.onClick);this.V.S().Y("web_player_autonav_toggle_always_listen")&& p$v(this);y4(e,this.element,this);this.vk()}; p$v=function(e){e.K.push(e.C(e.V,"videodatachange",e.vk));e.K.push(e.C(e.V,"videoplayerreset",e.vk));e.K.push(e.C(e.V,"onPlaylistUpdate",e.vk));e.K.push(e.C(e.V,"autonavchange",e.pC))}; $5c=function(e){e.isChecked=e.isChecked;e.q0("ytp-autonav-toggle-button").setAttribute("aria-checked",String(e.isChecked));var L=e.isChecked?"Autoplay is on":"Autoplay is off";e.updateValue("title",L);e.updateValue("label",L);e.V.A9()}; jhT=function(e){return e.V.S().Y("web_player_autonav_use_server_provided_state")&&WN(e.hq())}; Hbf=function(e){Rv.call(this,e);var L=this;this.events=new g.zn(e);g.l(this,this.events);this.events.C(e,"standardControlsInitialized",function(){var c=new W8(e);g.l(L,c);e.iV(c,"RIGHT_CONTROLS_LEFT")})}; Mo=function(e,L){g.ov.call(this,g.SS({role:"menuitemcheckbox","aria-checked":"false"}),L,e,{U:"div",W:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; z2=function(e,L){e.checked=L;e.element.setAttribute("aria-checked",String(e.checked))}; ljx=function(e){var L=!e.S().mR&&e.getPresentingPlayerType()!==3;return e.isFullscreen()||L}; g.s4=function(e,L,c,I){var B=e.currentTarget;if((c===void 0||!c)&&g.WZ(e))return e.preventDefault(),!0;L.pauseVideo();e=B.getAttribute("href");g.N2(e,I,!0);return!1}; g.v8=function(e,L,c){if(to(L.S())&&L.getPresentingPlayerType()!==2){if(g.WZ(c))return L.isFullscreen()&&!L.S().externalFullscreen&&L.toggleFullscreen(),c.preventDefault(),!0}else{var I=g.WZ(c);I&&L.pauseVideo();g.N2(e,void 0,!0);I&&(g.mZ(e),c.preventDefault())}return!1}; PsT=function(e){e=fr.includes("en")?e.Y("delhi_modern_web_player_icons")?tm():{U:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{U:"path",zy:!0,N:{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"}}]}:e.Y("delhi_modern_web_player_icons")?Nsc():{U:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{U:"path",zy:!0,N:{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"}}]};e.W="ytp-subtitles-button-icon"; return e}; Qh$=function(e){return fr.includes("en")?e?tm():{U:"svg",N:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{U:"path",N:{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"}}]}:e?{U:"svg",N:{fill:"none",height:"24",viewBox:"0 0 24 24", width:"24"},L:[{U:"path",N:{d:"M21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V19L1.01 19.20C1.05 19.66 1.26 20.08 1.58 20.41C1.91 20.73 2.33 20.94 2.79 20.99L3 21H21L21.20 20.98C21.66 20.94 22.08 20.73 22.41 20.41C22.73 20.08 22.94 19.66 22.99 19.20L23 19V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01ZM3 19V5H21V19H3ZM8 11H6C5.73 11 5.48 11.10 5.29 11.29C5.10 11.48 5 11.73 5 12C5 12.26 5.10 12.51 5.29 12.70C5.48 12.89 5.73 13 6 13H8C8.26 13 8.51 12.89 8.70 12.70C8.89 12.51 9 12.26 9 12C9 11.73 8.89 11.48 8.70 11.29C8.51 11.10 8.26 11 8 11ZM18 11H12C11.73 11 11.48 11.10 11.29 11.29C11.10 11.48 11 11.73 11 12C11 12.26 11.10 12.51 11.29 12.70C11.48 12.89 11.73 13 12 13H18C18.26 13 18.51 12.89 18.70 12.70C18.89 12.51 19 12.26 19 12C19 11.73 18.89 11.48 18.70 11.29C18.51 11.10 18.26 11 18 11ZM18 15H16C15.73 15 15.48 15.10 15.29 15.29C15.10 15.48 15 15.73 15 16C15 16.26 15.10 16.51 15.29 16.70C15.48 16.89 15.73 17 16 17H18C18.26 17 18.51 16.89 18.70 16.70C18.89 16.51 19 16.26 19 16C19 15.73 18.89 15.48 18.70 15.29C18.51 15.10 18.26 15 18 15ZM12 15H6C5.73 15 5.48 15.10 5.29 15.29C5.10 15.48 5 15.73 5 16C5 16.26 5.10 16.51 5.29 16.70C5.48 16.89 5.73 17 6 17H12C12.26 17 12.51 16.89 12.70 16.70C12.89 16.51 13 16.26 13 16C13 15.73 12.89 15.48 12.70 15.29C12.51 15.10 12.26 15 12 15Z", fill:"white"}}]}:{U:"svg",N:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{U:"path",N:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]}}; Ak=function(){return{U:"div",W:"ytp-spinner-container",L:[{U:"div",W:"ytp-spinner-rotator",L:[{U:"div",W:"ytp-spinner-left",L:[{U:"div",W:"ytp-spinner-circle"}]},{U:"div",W:"ytp-spinner-right",L:[{U:"div",W:"ytp-spinner-circle"}]}]}]}}; F4=function(e){if(document.createRange){var L=document.createRange();L&&(L.selectNodeContents(e),e=window.getSelection())&&(e.removeAllRanges(),e.addRange(L))}}; G2=function(e){var L=e.Y("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";Mo.call(this,L,g.b_.Xx);var c=this;this.V=e;this.X=!1;this.K=new g.j9(function(){g.eZ(c.element,"ytp-menuitem-highlighted")},0); this.G_=e.T8();e=e.Y("delhi_modern_web_player_icons")?{U:"svg",N:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{U:"path",N:{d:"M12 .5C11.73 .5 11.48 .60 11.29 .79C11.10 .98 11 1.23 11 1.5V3.5C11 3.76 11.10 4.01 11.29 4.20C11.48 4.39 11.73 4.5 12 4.5C12.26 4.5 12.51 4.39 12.70 4.20C12.89 4.01 13 3.76 13 3.5V1.5C13 1.23 12.89 .98 12.70 .79C12.51 .60 12.26 .5 12 .5ZM3.79 1.29C3.61 1.46 3.51 1.70 3.50 1.94C3.48 2.19 3.56 2.43 3.72 2.63L3.79 2.70L5.29 4.20L5.37 4.27C5.56 4.42 5.80 4.50 6.04 4.49C6.29 4.47 6.52 4.37 6.70 4.20C6.87 4.02 6.97 3.79 6.99 3.54C7.00 3.30 6.92 3.06 6.77 2.86L6.70 2.79L5.20 1.29L5.13 1.22C4.93 1.06 4.69 .98 4.44 1.00C4.20 1.01 3.96 1.11 3.79 1.29ZM18.86 1.22L18.79 1.29L17.29 2.79L17.22 2.86C17.07 3.06 16.99 3.30 17.00 3.54C17.01 3.79 17.12 4.02 17.29 4.20C17.47 4.37 17.70 4.48 17.95 4.49C18.19 4.50 18.43 4.42 18.63 4.27L18.70 4.20L20.20 2.70L20.27 2.63C20.42 2.43 20.50 2.19 20.49 1.95C20.48 1.70 20.37 1.47 20.20 1.29C20.02 1.12 19.79 1.01 19.54 1.00C19.30 .99 19.06 1.07 18.86 1.22ZM19.20 6.01L19 6H5L4.79 6.01C4.30 6.06 3.84 6.29 3.51 6.65C3.18 7.02 2.99 7.50 3 8V16L3.01 16.20C3.05 16.66 3.26 17.08 3.58 17.41C3.91 17.73 4.33 17.94 4.79 17.99L5 18H19L19.20 17.98C19.66 17.94 20.08 17.73 20.41 17.41C20.73 17.08 20.94 16.66 20.99 16.20L21 16V8C20.99 7.50 20.81 7.02 20.48 6.66C20.15 6.29 19.69 6.06 19.20 6.01ZM5 16V8H19V16H5ZM17.29 19.79C17.11 19.96 17.01 20.20 17.00 20.44C16.98 20.69 17.06 20.93 17.22 21.13L17.29 21.20L18.79 22.70L18.86 22.77C19.06 22.92 19.30 23.00 19.54 22.99C19.79 22.98 20.02 22.87 20.20 22.70C20.37 22.52 20.48 22.29 20.49 22.04C20.50 21.80 20.42 21.56 20.27 21.36L20.20 21.29L18.70 19.79L18.63 19.72C18.43 19.56 18.19 19.48 17.94 19.50C17.70 19.51 17.46 19.61 17.29 19.79ZM5.37 19.72L5.29 19.79L3.79 21.29L3.72 21.36C3.57 21.56 3.49 21.80 3.50 22.04C3.51 22.29 3.62 22.52 3.79 22.70C3.97 22.87 4.20 22.98 4.45 22.99C4.69 23.00 4.93 22.92 5.13 22.77L5.20 22.70L6.70 21.20L6.77 21.13C6.92 20.93 7.00 20.69 6.99 20.45C6.97 20.20 6.87 19.97 6.70 19.79C6.52 19.62 6.29 19.52 6.04 19.50C5.80 19.49 5.56 19.57 5.37 19.72ZM12 19.5C11.73 19.5 11.48 19.60 11.29 19.79C11.10 19.98 11 20.23 11 20.5V22.5C11 22.76 11.10 23.01 11.29 23.20C11.48 23.39 11.73 23.5 12 23.5C12.26 23.5 12.51 23.39 12.70 23.20C12.89 23.01 13 22.76 13 22.5V20.5C13 20.23 12.89 19.98 12.70 19.79C12.51 19.60 12.26 19.5 12 19.5Z", fill:"white"}}]}:{U:"svg",N:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{U:"path",N:{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(e);this.subscribe("select",this.Z,this);this.listen(i_,this.G);g.l(this,this.K)}; gd=function(e){Rv.call(this,e);var L=this;this.X=!1;e.addEventListener("settingsMenuInitialized",function(){d5$(L)}); e.addEventListener("highlightSettingsMenu",function(c){d5$(L);var I=L.menuItem;c==="menu_item_cinematic_lighting"&&(g.Y4(I.element,"ytp-menuitem-highlighted"),g.Y4(I.element,"ytp-menuitem-highlight-transition-enabled"),I.K.start())}); vS(e,"updateCinematicSettings",function(c){L.updateCinematicSettings(c)})}; d5$=function(e){e.menuItem||(e.menuItem=new G2(e.api),g.l(e,e.menuItem),e.menuItem.OW(e.X))}; U5M=function(e){Rv.call(this,e);var L=this;this.events=new g.zn(e);g.l(this,this.events);this.events.C(e,"applicationvideodatachange",function(c,I){I=I.clipConfig;c==="dataloaded"&&I&&I.startTimeMs!=null&&I.endTimeMs!=null&&L.api.setLoopRange({startTimeMs:Math.floor(Number(I.startTimeMs)),endTimeMs:Math.floor(Number(I.endTimeMs)),postId:I.postId,type:"clips"})})}; kq=function(e){Rv.call(this,e);this.events=new g.zn(e);g.l(this,this.events);vS(e,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));vS(e,"setCreatorEndscreenHideButton",this.X.bind(this))}; D9=function(e,L,c,I){Mo.call(this,"Stable Volume",g.b_.by);g.Y4(this.element,"ytp-drc-menu-item");this.G_=e.T8();this.Z=L;this.X=c;this.hasDrcAudioTrack=I;e.addEventListener("videodatachange",this.K.bind(this));e.Y("mta_drc_mutual_exclusion_removal")&&this.C(e,"onPlaybackAudioChange",this.K);L=this.X()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());e=e.Y("delhi_modern_web_player_icons")?{U:"svg",N:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{U:"path",N:{d:"M12 .99C5.92 .99 1 5.92 1 11.99C1 18.07 5.92 22.99 12 22.99C18.07 22.99 23 18.07 23 11.99C23 5.92 18.07 .99 12 .99ZM12 2.99C14.38 2.99 16.67 3.94 18.36 5.63C20.05 7.32 21 9.61 21 11.99C21 14.38 20.05 16.67 18.36 18.36C16.67 20.05 14.38 20.99 12 20.99C9.61 20.99 7.32 20.05 5.63 18.36C3.94 16.67 3 14.38 3 11.99C3 9.61 3.94 7.32 5.63 5.63C7.32 3.94 9.61 2.99 12 2.99ZM14 6.00C13.73 6.00 13.48 6.10 13.29 6.29C13.10 6.48 13 6.73 13 7.00V17.00C13 17.26 13.10 17.52 13.29 17.70C13.48 17.89 13.73 18.00 14 18.00C14.26 18.00 14.51 17.89 14.70 17.70C14.89 17.52 15 17.26 15 17.00V7.00C15 6.73 14.89 6.48 14.70 6.29C14.51 6.10 14.26 6.00 14 6.00ZM10 8.00C9.73 8.00 9.48 8.10 9.29 8.29C9.10 8.48 9 8.73 9 9.00V15.00C9 15.26 9.10 15.52 9.29 15.70C9.48 15.89 9.73 16.00 10 16.00C10.26 16.00 10.51 15.89 10.70 15.70C10.89 15.52 11 15.26 11 15.00V9.00C11 8.73 10.89 8.48 10.70 8.29C10.51 8.10 10.26 8.00 10 8.00ZM18 9.00C17.73 9.00 17.48 9.10 17.29 9.29C17.10 9.48 17 9.73 17 10.00V14.00C17 14.26 17.10 14.52 17.29 14.70C17.48 14.89 17.73 15.00 18 15.00C18.26 15.00 18.51 14.89 18.70 14.70C18.89 14.52 19 14.26 19 14.00V10.00C19 9.73 18.89 9.48 18.70 9.29C18.51 9.10 18.26 9.00 18 9.00ZM6 10.00C5.73 10.00 5.48 10.10 5.29 10.29C5.10 10.48 5 10.73 5 11.00V13.00C5 13.26 5.10 13.52 5.29 13.70C5.48 13.89 5.73 14.00 6 14.00C6.26 14.00 6.51 13.89 6.70 13.70C6.89 13.52 7 13.26 7 13.00V11.00C7 10.73 6.89 10.48 6.70 10.29C6.51 10.10 6.26 10.00 6 10.00Z", fill:"white"}}]}:{U:"svg",N:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{U:"path",N:{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(e);this.subscribe("select",this.G,this);z2(this,L);this.G_.Yx(this)}; wd=function(e){Rv.call(this,e);var L=this;this.events=new g.zn(e);g.l(this,this.events);e.Y("html5_show_drc_toggle")&&e.addEventListener("settingsMenuInitialized",function(){L.menuItem||(L.menuItem=new D9(L.api,L.setDrcUserPreference.bind(L),L.getDrcUserPreference.bind(L),L.K.bind(L)),g.l(L,L.menuItem))}); vS(this.api,"setDrcUserPreference",function(I){L.setDrcUserPreference(I)}); vS(this.api,"getDrcUserPreference",function(){return L.getDrcUserPreference()}); vS(this.api,"hasDrcAudioTrack",function(){return L.K()}); var c;this.X=(c=g.iS("yt-player-drc-pref"))!=null?c:1;this.updateEnvironmentData()}; Jk=function(e){Rv.call(this,e);var L=this;this.X={};this.events=new g.zn(e);g.l(this,this.events);this.events.C(e,"videodatachange",function(){L.onVideoDataChange()}); this.events.C(e,g.jh("embargo"),function(c){L.api.Hq(!0);var I,B=(I=L.X[c.id])!=null?I:[];I=g.f(B);for(B=I.next();!B.done;B=I.next()){var x=B.value;L.api.hideControls();L.api.BM("auth",2,"This video isn't available in your current playback area",rr({embargoed:1,id:c.id,idx:c.K,start:c.start}));B=void 0;(x=(B=x.embargo)==null?void 0:B.onTrigger)&&L.api.fS("innertubeCommand",x)}})}; EBH=function(e,L){var c;return(c=L.onEnter)==null?void 0:c.some(e.K)}; X$n=function(e,L){L=g.f(L);for(var c=L.next();!c.done;c=L.next()){c=c.value;var I=void 0,B=Number((I=c.playbackPosition)==null?void 0:I.utcTimeMillis)/1E3,x=void 0;I=B+Number((x=c.duration)==null?void 0:x.seconds);x="embargo_"+B;e.api.addUtcCueRange(x,B,I,"embargo",!1);c.onEnter&&(e.X[x]=c.onEnter.filter(e.K))}}; V3=function(e){Rv.call(this,e);var L=this;this.X=[];this.events=new g.zn(e);g.l(this,this.events);vS(e,"addEmbedsConversionTrackingParams",function(c){L.api.S().DB&&L.addEmbedsConversionTrackingParams(c)}); this.events.C(e,"veClickLogged",function(c){L.api.hasVe(c)&&(c=c.visualElement.getAsJspb(),c=ge(c,2),L.X.push(c))})}; Kgn=function(e){Rv.call(this,e);vS(e,"isEmbedsShortsMode",function(){return e.isEmbedsShortsMode()})}; YTv=function(e){Rv.call(this,e);var L=this;this.events=new g.zn(e);g.l(this,this.events);this.events.C(e,"initialvideodatacreated",function(c){H$(jX(),16623);L.X=g.qy();var I=e.S().tj&&!c.Ft;if(BS(c)&&I){H$(jX(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(c.getWatchNextResponse()){var B,x=(B=c.getWatchNextResponse())==null?void 0:B.trackingParams;x&&P$(x)}if(c.getPlayerResponse()){var S;(c=(S=c.getPlayerResponse())==null?void 0:S.trackingParams)&&P$(c)}}else H$(jX(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),c.getEmbeddedPlayerResponse()&&(S=(x=c.getEmbeddedPlayerResponse())==null?void 0:x.trackingParams)&&P$(S)}); this.events.C(e,"loadvideo",function(){H$(jX(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:L.X})}); this.events.C(e,"cuevideo",function(){H$(jX(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:L.X})}); this.events.C(e,"largeplaybuttonclicked",function(c){H$(jX(),27240,c.visualElement)}); this.events.C(e,"playlistnextbuttonclicked",function(c){H$(jX(),27240,c.visualElement)}); this.events.C(e,"playlistprevbuttonclicked",function(c){H$(jX(),27240,c.visualElement)}); this.events.C(e,"playlistautonextvideo",function(){H$(jX(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; Cr=function(e,L){g.p.call(this);var c=this;this.X=null;this.Z=L;L=[];for(var I=0;I<=100;I++)L.push(I/100);L={threshold:L,trackVisibility:!0,delay:1E3};(this.K=window.IntersectionObserver?new IntersectionObserver(function(B){B=B[B.length-1];var x=null;typeof B.isVisible==="undefined"?document.visibilityState==="visible"&&B.isIntersecting&&B.intersectionRatio>0?x=B.intersectionRatio:document.visibilityState==="hidden"?x=0:x=null:x=B.isVisible?B.intersectionRatio:0;x!=null&&(x=Math.max(x,0),x=Math.min(x, 1));c.X=x;typeof c.Z==="function"&&c.Z(c.X)},L):null)&&this.K.observe(e)}; enJ=function(e){Rv.call(this,e);var L=this;this.events=new g.zn(e);g.l(this,this.events);this.events.C(e,"applicationInitialized",function(){nBH(L)})}; nBH=function(e){var L=e.api.getRootNode(),c,I=e.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((c=L.parentElement)==null?void 0:c.parentElement)||L:L;e.X=new Cr(I,function(B){B!=null&&(e.api.S().KB=B,e.api.S().Z2="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.l(e,e.X);e.events.C(e.api,"videoStatsPingCreated",function(B){var x=e.X;x=x.X==null?null:Math.round(x.X*100)/100;B.inview=x!=null?x:void 0;x=e.api.getPlayerSize();if(x.height>0&&x.width>0){x=[Math.round(x.width),Math.round(x.height)];var S=g.qu();S>1&&x.push(S);x=x.join(":")}else x=void 0;B.size=x})}; LJT=function(e){var L;return((L=((e==null?void 0:e.messageRenderers)||[]).find(function(c){return!!c.timeCounterRenderer}))==null?void 0:L.timeCounterRenderer)||null}; av=function(e){g.U.call(this,{U:"div",Rq:["ytp-player-content","ytp-iv-player-content"],L:[{U:"div",W:"ytp-free-preview-countdown-timer",L:[{U:"span",aq:"{{label}}"},{U:"span",W:"ytp-free-preview-countdown-timer-separator",aq:"\u2022"},{U:"span",aq:"{{duration}}"}]}]});this.api=e;this.X=null;this.Z=this.K=0;this.C(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; IAx=function(e,L){e.X||(e.K=L,e.Z=(0,g.zI)(),e.X=new g.$4(function(){cec(e)},null),cec(e))}; cec=function(e){var L=Math,c=L.round,I=Math.min((0,g.zI)()-e.Z,e.K);L=c.call(L,(e.K-I)/1E3);e.updateValue("duration",ah({seconds:L}));L<=0&&e.X?e.stopTimer():e.X&&e.X.start()}; BVv=function(e){Rv.call(this,e);var L=this;this.events=new g.zn(e);g.l(this,this.events);this.events.C(e,"basechromeinitialized",function(){L.X=new av(e);g.l(L,L.X);g.Uq(e,L.X.element,4);L.X.hide()})}; No=function(e){g.U.call(this,{U:"button",Rq:["ytp-fullerscreen-edu-button","ytp-button"],L:[{U:"div",Rq:["ytp-fullerscreen-edu-text"],aq:"Scroll for details"},{U:"div",Rq:["ytp-fullerscreen-edu-chevron"],L:[{U:"svg",N:{height:"100%",viewBox:"0 0 24 24",width:"100%"},L:[{U:"path",N:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],N:{"data-priority":"2"}});this.CS=e;this.fade=new g.dJ(this,250,void 0,100);this.K=this.X=!1;e.createClientVe(this.element,this,61214);g.l(this, this.fade);this.C(e,"fullscreentoggled",this.OW);this.C(e,"presentingplayerstatechange",this.OW);this.listen("click",this.onClick);this.OW()}; y3=function(e){Rv.call(this,e);var L=this;this.events=new g.zn(e);g.l(this,this.events);vS(this.api,"updateFullerscreenEduButtonSubtleModeState",function(I){L.updateFullerscreenEduButtonSubtleModeState(I)}); vS(this.api,"updateFullerscreenEduButtonVisibility",function(I){L.updateFullerscreenEduButtonVisibility(I)}); var c=e.S();e.Y("external_fullscreen_with_edu")&&c.externalFullscreen&&to(c)&&c.controlsType==="1"&&this.events.C(e,"standardControlsInitialized",function(){L.X=new No(e);g.l(L,L.X);e.iV(L.X)})}; xBx=function(e){g.U.call(this,{U:"div",W:"ytp-gated-actions-overlay",L:[{U:"div",W:"ytp-gated-actions-overlay-background",L:[{U:"div",W:"ytp-gated-actions-overlay-background-overlay"}]},{U:"button",Rq:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],N:{"aria-label":"Close"},L:[g.uX()]},{U:"div",W:"ytp-gated-actions-overlay-bar",L:[{U:"div",W:"ytp-gated-actions-overlay-text-container",L:[{U:"div",W:"ytp-gated-actions-overlay-title",aq:"{{title}}"},{U:"div",W:"ytp-gated-actions-overlay-subtitle", aq:"{{subtitle}}"}]},{U:"div",W:"ytp-gated-actions-overlay-button-container"}]}]});var L=this;this.api=e;this.background=this.q0("ytp-gated-actions-overlay-background");this.K=this.q0("ytp-gated-actions-overlay-button-container");this.X=[];this.C(this.q0("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){L.api.fS("onCloseMiniplayer")}); this.hide()}; Sgn=function(e,L){var c=0;c=0;for(var I={};c B&&(B=h.width,x="url("+h.url+")")}c.background.style.backgroundImage=x;Sgn(c,I.actionButtons||[]);c.show()}else c.hide()}); g.Uq(this.api,this.X.element,4)}; Z9=function(e){Rv.call(this,e);var L=this;Aq(this.api,"getSphericalProperties",function(){return L.getSphericalProperties()}); Aq(this.api,"setSphericalProperties",function(){L.setSphericalProperties.apply(L,g.V(g.HM.apply(0,arguments)))}); f2(this.api,"getSphericalProperties",function(){return L.api.getPresentingPlayerType()===2?{}:L.getSphericalProperties()}); f2(this.api,"setSphericalProperties",function(){var c=g.HM.apply(0,arguments);L.api.getPresentingPlayerType()!==2&&L.setSphericalProperties.apply(L,g.V(c))})}; pr=function(e){Rv.call(this,e);vS(e,"createClientVe",this.createClientVe.bind(this));vS(e,"createServerVe",this.createServerVe.bind(this));vS(e,"destroyVe",this.destroyVe.bind(this));vS(e,"hasVe",this.hasVe.bind(this));vS(e,"logClick",this.logClick.bind(this));vS(e,"logVisibility",this.logVisibility.bind(this));vS(e,"setTrackingParams",this.setTrackingParams.bind(this))}; $q=function(e,L,c,I){function B(S){var h=!(S.status!==204&&S.status!==200&&!S.response),R;S={succ:""+ +h,rc:S.status,lb:((R=S.response)==null?void 0:R.byteLength)||0,rt:((0,g.zI)()-x).toFixed(),shost:g.hp(e),trigger:L};hnv(S,e);c&&c(S);I&&!h&&I(new g.hQ("pathprobe.net",S))} var x=(0,g.zI)();g.W3(e,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:B,onTimeout:B})}; hnv=function(e,L){var c;((c=window.performance)==null?0:c.getEntriesByName)&&(L=performance.getEntriesByName(L))&&L.length&&(L=L[0],e.pedns=(L.domainLookupEnd-L.startTime).toFixed(),e.pecon=(L.connectEnd-L.domainLookupEnd).toFixed(),e.perqs=(L.requestStart-L.connectEnd).toFixed(),RnJ&&(e.perqsa=L.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; uLn=function(e){RnJ=e}; jS=function(e,L){this.qw=e;this.policy=L;this.playbackRate=1}; tCx=function(e,L){var c=Math.min(2.5,yG(e.qw));e=H8(e);return L-c*e}; l_=function(e,L,c,I,B){B=B===void 0?!1:B;if(e.policy.Cw)return Math.ceil(e.policy.Cw*L);e.policy.pX&&(I=Math.abs(I));I/=e.playbackRate;var x=1/$y(e.qw);c=Math.max(.9*(I-3),yG(e.qw)+e.qw.K.X*x)/x*.8/(L+c);c=Math.min(c,I);e.policy.Sn>0&&B&&(c=Math.max(c,e.policy.Sn));return OXn(e,c,L)}; OXn=function(e,L,c){return Math.ceil(Math.max(Math.max(e.policy.sE,e.policy.J$*c),Math.min(Math.min(e.policy.t7,31*c),Math.ceil(L*c))))||e.policy.sE}; qg$=function(e,L,c){c=l_(e,L.X.info.r_,c.X.info.r_,0);var I=yG(e.qw)+c/$y(e.qw);return Math.max(I,I+e.policy.Uz-c/L.X.info.r_)}; H8=function(e){return $y(e.qw,!e.policy.vD,e.policy.FS)}; P8=function(e){return H8(e)/e.playbackRate}; Q3=function(e,L,c){var I=e.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],B=e.policy.playbackStartPolicy.startMinReadaheadPolicy||[];e=Infinity;L=g.f(L&&I.length>0?I:B);for(I=L.next();!I.done;I=L.next())I=I.value,B=I.minReadaheadMs||0,c<(I.minBandwidthBytesPerSec||0)||e>B&&(e=B);return e0&&(this.K=c.Yv)}; MCc=function(e,L,c,I,B){if(!I.info.B){if(c.length===0)c.push(I);else{var x;(e=(x=c.pop())==null?void 0:g.W6(x,I))?c.push(e):c.push(I)}return B}var S;(c=(S=c.pop())==null?void 0:g.W6(S,I))||(c=I);if(c.info.K)return e.logger&&e.logger({incompleteSegment:c.info.e6()}),B;I=e.YR(c);B=I.ud;I={clipId:I.clipId,formatId:I.formatId,startTimeMs:I.startTimeMs,durationMs:I.Ov,E9:B,aO:B};B=TVx(L,I.startTimeMs);if(x=c=B>=0?L[B]:null){x=I;var h=B;S=c.startTimeMs+c.durationMs;var R=x.startTimeMs+x.durationMs;if(x.startTimeMs- S>e.K)x=!1;else if(WJf(e,c.formatId,x.formatId))c.durationMs=Math.max(S,R)-c.startTimeMs,c.aO=Math.max(c.aO,x.aO),x=!0;else if(Math.abs(c.startTimeMs-x.startTimeMs)<=e.K)if(c.durationMs>x.durationMs+e.K){var u=c.formatId,t=c.E9;h=c.aO;c.formatId=x.formatId;c.durationMs=x.durationMs;c.E9=x.E9;c.aO=x.aO;x.formatId=u;x.startTimeMs=R;x.durationMs=S-R;x.E9=t;x.aO=h;x=!1}else c.formatId=x.formatId,x=!0;else S>x.startTimeMs&&(S>R&&(L.splice(h+1,0,{formatId:c.formatId,startTimeMs:R,durationMs:S-R,E9:x.aO+ 1,aO:c.aO}),e.logger&&e.logger({splitOldStart:(u=c.startTimeMs)==null?void 0:u.toFixed(3),splitOldEnd:S==null?void 0:S.toFixed(3),splitNewStart:(t=x.startTimeMs)==null?void 0:t.toFixed(3),splitNewEnd:R==null?void 0:R.toFixed(3)})),c.durationMs=x.startTimeMs-c.startTimeMs,c.aO=x.E9-1),x=!1}x?I=c:(B+=1,L.splice(B,0,I));u=0;for(t=B+1;t=R+c.K?c=!0:h+c.K=0?e:-e-2}; zn6=function(e,L){if(e.Py){var c=e.Py.rq();if(c.length!==0){if(e.Z&&L){var I=e.Z,B=I.info.G;!Qd(c,B)&&I.info.J>0&&(0,g.zI)()-e.j<5E3&&(e.logger&&e.logger({dend:I.info.e6()}),c=CXx(c,B,B+.01))}e.policy.eA&&e.logger&&e.logger({cbri:""+e.X});I=[];for(var x=B=0;B=S){var t=Object.assign({},e.p9[x]),O=e.w_.Z.get(pw(e.p9[x].formatId)),q=Math.max(R,S);S=O.index.kI(q+e.K/ 1E3);R=O.index.getStartTime(S);var T=S+ +(Math.abs(R-q)>e.K/1E3);q=T+e.G;T=O.index.getStartTime(T)*1E3;x!==e.X||L?(t.E9=q,t.startTimeMs=T):(e.logger&&e.logger({pEvict:"1",og:t.startTimeMs,adj:R*1E3}),t.E9=S+e.G,t.startTimeMs=R*1E3);S=void 0;R=((S=e.Z)==null?void 0:S.info.duration)||11;x===e.X&&he.K/1E3);S=R+e.G;O=O.index.yu(R)*1E3;t.aO=S;t.durationMs=O-t.startTimeMs;t.E9<=t.aO&&I.push(t)}u=0&&Yq(e.audioTrack,e.targetTime)>=0&&x?((e.videoTrack.B||e.audioTrack.B)&&e.loader.sW("iterativeSeeking",{status:"done",count:e.seekCount}),e.videoTrack.B=!1,e.audioTrack.B=!1):I&&g.F2(function(){if(e.X||!e.policy.sY)LB(e);else{var S=L.startTime,h=L.duration;if(!e.policy.B){var R=c?e.videoTrack.B:e.audioTrack.B,u=e.videoTrack.j!==-1&&e.audioTrack.j!==-1,t=e.targetTime>=S&&e.targetTime432E3&&aDv(e.w_);e.K&&(B=e.K,e.K=0);g.F2(function(){e.policy.B||cD(e,B,102)}); e.loader.sW("initManifestlessSync",{st:B,ost:B+e.loader.FF(),a:e.audioTrack.j,v:e.videoTrack.j});e.Z&&(e.Z.resolve(B+.1),e.Z=null);e.policy.B&&cD(e,B,102)}}}; xk=function(e,L){var c=this;this.UY=e;this.requestNumber=++JeR;this.X=this.now();this.J=this.D=NaN;this.T=this.X;this.Z=this.Cf=this.B=0;this.j=this.X;this.Sl=this.h7=this.ye=this.Bw=this.xT=this.k9=this.K=this.G=0;this.pS=this.isActive=!1;this.RT=this.x9=0;this.kx={Mr0:function(){return c.Wt}}; this.qw=L.qw;this.snapshot=G5x(this.qw);this.policy=this.qw.K;this.d9=!!L.d9;this.M$=L.M$;this.nB=L.nB||0;this.WR=L.WR||0;L.Th&&(this.Ve=new ky);var I;this.Wt=(I=L.Wt)!=null?I:!1;this.d9||Fpx(this.qw)}; VCn=function(e){e.ye=Math.max(e.ye,e.B-e.xT);e.h7=Math.max(e.h7,e.T-e.Bw);e.k9=0}; oc=function(e,L,c){bLf(e.qw,L);e.Ve&&(e.Ve.add(Math.ceil(L)-Math.ceil(e.T)),e.Ve.add(Math.max(0,Math.ceil(c/1024)-Math.ceil(e.B/1024))));var I=L-e.T,B=c-e.B;e.Cf=B;e.Sl=Math.max(e.Sl,B/(I+.01)*1E3);e.T=L;e.B=c;e.k9&&c>e.k9&&VCn(e)}; SE=function(e,L){e.url=L;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; rC=function(e,L){xk.call(this,e,L);this.sY=this.gT=!1;this.Y9=this.Gm=Infinity;this.t7=NaN;this.Kf=!1;this.d_=NaN;this.Q5=this.Pe=this.He=0;this.uq=L.uq||1;this.j8=L.j8||this.uq;this.d$=L.d$;this.ud=L.ud;this.Bg=L.Bg;CJJ(this);this.Ha(this.X);this.DY=(this.d_-this.X)/1E3}; aA$=function(e){var L=e.Pe||e.He;return L?e.snapshot.delay+Math.min(e.WR,(e.J-e.D)/1E3)+L:e.DY}; h6=function(e,L,c){if(!e.d9){L=Math.max(L,.01);var I=e.nB?Math.max(L,c/e.nB):L,B=e.qw.K.Z;B&&(I=L,e.nB&&(I=Math.max(L,c/e.nB*B)));al(e.qw,L,c,I)}}; NVR=function(e){return(e.j-e.X)/1E3}; CJJ=function(e){e.t7=e.X+e.snapshot.delay*1E3;e.Kf=!1}; Rc=function(e,L){if(e.d$&&e.ud!==void 0&&e.Bg!==void 0){var c=Math,I=c.min,B=e.Gm;var x=e.d$;var S=e.X;if(mBc(x,e.ud))x=L;else{var h=0;x.U9&&(h=.2);x=S+(x.WR+h)*1E3}e.Gm=I.call(c,B,x);c=Math;I=c.min;B=e.Y9;x=e.d$;S=e.X;h=yeJ(x,e.ud,e.Bg);h!==2&&(L=h?L:S+x.WR*1E3,x.U9&&(L+=x.WR*1E3));e.Y9=I.call(c,B,L);e.Gm<=e.X?CJJ(e):(e.t7=e.Gm,e.Kf=!0)}}; ZXx=function(e,L){if(L+1<=e.totalLength){var c=Sj(e,L);c=c<128?1:c<192?2:c<224?3:c<240?4:5}else c=0;if(c<1||!(L+c<=e.totalLength))return[-1,L];if(c===1)e=Sj(e,L++);else if(c===2)c=Sj(e,L++),e=Sj(e,L++),e=(c&63)+64*e;else if(c===3){c=Sj(e,L++);var I=Sj(e,L++);e=Sj(e,L++);e=(c&31)+32*(I+256*e)}else if(c===4){c=Sj(e,L++);I=Sj(e,L++);var B=Sj(e,L++);e=Sj(e,L++);e=(c&15)+16*(I+256*(B+256*e))}else c=L+1,e.focus(c),Bl(e,c,4)?e=ZF6(e).getUint32(c-e.Z,!0):(I=Sj(e,c+2)+256*Sj(e,c+3),e=Sj(e,c)+256*(Sj(e,c+1)+ 256*I)),L+=5;return[e,L]}; uZ=function(e){this.UY=e;this.X=new ej}; t6=function(e,L){this.info=e;this.callback=L;this.state=1;this.Nn=this.GM=!1;this.ql=null}; pBn=function(e){return g.zM(e.info.bd,function(L){return L.type===3})}; OS=function(e,L,c,I){var B=this;I=I===void 0?{}:I;this.policy=L;this.UY=c;this.status=0;this.X=new ej;this.K=0;this.We=this.G=this.Z=!1;this.xhr=new XMLHttpRequest;this.xhr.open(I.method||"GET",e);if(I.headers)for(e=I.headers,L=g.f(Object.keys(e)),c=L.next();!c.done;c=L.next())c=c.value,this.xhr.setRequestHeader(c,e[c]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return B.lJ()}; this.xhr.onload=function(){return B.onDone()}; this.xhr.onerror=function(){return B.onError()}; this.xhr.fetch(function(x){B.X.append(x);B.K+=x.length;x=(0,g.zI)();B.UY.Xz(x,B.K)},function(){},I.body||null)}; $BJ=function(e,L){this.K=(new TextEncoder).encode(e);this.X=(new TextEncoder).encode(L)}; pfH=function(e,L){var c;return g.Z(function(I){if(!L)return I.return(L);c=new g.S3(e.K);return I.return(c.encrypt(L,e.X))})}; PHr=function(e,L){var c;return g.Z(function(I){if(I.K==1){if(!L)return I.return(L);c=new g.S3(e.K);return g.a(I,c.decrypt(L,e.X),2)}return I.return(I.X)})}; HXn=function(e,L){var c=this;this.X=e;this.UY=L;this.loaded=this.status=0;this.error="";e=Hm(this.X.get("range")||"");if(!e)throw Error("bad range");this.range=e;this.K=new ej;jyc(this).then(function(){c.UY.XI()},function(I){c.error=""+I||"unknown_err"; c.UY.XI()})}; jyc=function(e){var L,c,I,B,x,S,h,R,u,t,O,q,T,W,A;return g.Z(function(b){if(b.K==1){e.status=200;L=e.X.get("docid");c=wz(e.X.get("fmtid")||"");I=e.X.get("lmt")||"0";B=+(e.X.get("csz")||0);if(!L||!c||!B)throw Error("Invalid local URL");e.X.get("ck")&&e.X.get("civ")&&(x=new $BJ(e.X.get("ck"),e.X.get("civ")));S=e.range;h=Math.floor(S.start/B);R=Math.floor(S.end/B);u=h}if(b.K!=5)return u<=R?g.a(b,QVx(L,c,I,u,x),5):b.Iq(0);t=b.X;if(t===void 0)throw Error("invariant: data is undefined");O=u*B;q=(u+1)*B; T=Math.max(0,S.start-O);W=Math.min(S.end+1,q)-(T+O);A=new Uint8Array(t.buffer,T,W);e.K.append(A);e.loaded+=W;e.loaded=400?(e.lastError="net.badstatus",!0):(B===void 0?0:B)?(e.lastError="ump.spsrejectfailure",!0):c||I!==void 0&&I?!1:(e.lastError=L===204?"net.nocontent":"net.connect",!0)}; A6=function(e,L){if(e.policy.Hk)return!1;var c=L.getResponseHeader("content-type"),I=L.G1();e=!I||I<=e.policy.zw;return(!L.fq()||!c||c.indexOf("text/plain")!==-1)&&e}; Ygr=function(e,L){var c="";L=L.aD();L.totalLength<=e.policy.zw&&(c=KJn(e,xj(L)));return c}; KJn=function(e,L){var c=hP(L);return Nd(c)?(e.logger.debug(function(){return"Redirecting to "+c}),c):""}; zF=function(e){return Cw(e.Z,pX(e.UR.HU))}; n0n=function(e){var L=e.timing.ZS();L.shost=pX(e.UR.HU);return L}; eAM=function(e,L){return(e==null?void 0:e.maxWidth)>(L==null?void 0:L.maxWidth)||(e==null?void 0:e.maxHeight)>(L==null?void 0:L.maxHeight)}; Lof=function(e,L){for(var c=g.f(L.keys()),I=c.next();!I.done;I=c.next())if(I=L.get(I.value),I.length!==0){g.U9(I,function(h,R){return R.maxFramerate-h.maxFramerate}); for(var B=[I[0]],x=0,S=1;Se.X||c.push(I)}return c}; F0=function(e,L,c){var I=B3n[e]||[];c.Y("html5_shorts_onesie_mismatched_fix")&&(I=xJc[e]||[]);L.push.apply(L,g.V(I));c.Y("html5_early_media_for_drm")&&L.push.apply(L,g.V(ocv[e]||[]))}; tJf=function(e,L){var c=g.g7(e),I=e.S(),B=I.B;I=I.Y("html5_shorts_onesie_mismatched_fix");var x=e.O9();if(I){if(!B.K){if(x&&bZ)return bZ;if(iZ)return iZ}}else if(iZ&&!B.K)return iZ;var S=[],h=[],R={},u=GF.concat(SHM);I&&(u=GF.concat(rNn));e.Y("html5_early_media_for_drm")&&(u=u.concat(hAM),e.Y("allow_vp9_1080p_mq_enc")&&u.push(RAf));var t=[].concat(g.V(uwT));e.Y("html5_iamf_audio_onesie_fmt")&&t.push(["773"]);u=g.f(u);for(var O=u.next();!O.done;O=u.next()){var q=!1;O=g.f(O.value);for(var T=O.next();!T.done;T= O.next()){T=T.value;var W=G3(T,x&&I);if(W&&W.video&&!(wr(W)&&!c.Gm&&W.video.qualityOrdinal>c.Yy)){var A=g.X3(e.S().experiments,"html5_drm_byterate_soft_cap");A>0&&Jmn(W)&&W.r_>A||(q?(S.push(T),F0(T,S,e)):(W=DA(c,W,B),W===!0?(q=!0,S.push(T),F0(T,S,e)):R[T]=W))}}}t=g.f(t);for(u=t.next();!u.done;u=t.next())for(u=g.f(u.value),q=u.next();!q.done;q=u.next())if(q=q.value,(O=KpJ(q))&&O.audio&&(e.Y("html5_onesie_51_audio")||!JQ(O)&&!Vd(O)))if(O=DA(c,O,B),O===!0){h.push(q);F0(q,h,e);break}else R[q]=O;if(!e.Y("html5_enable_audio_quality_setting"))for(e= g.f(["141","774"]),t=e.next();!t.done;t=e.next())t=t.value,h.includes(t)&&(g.i7(h,t),R[t]="blkhqa");c.K&&L("orfmts",R);if(I)return B.K&&(B.K=!1,bZ=iZ=void 0),x?bZ={video:S,audio:h}:iZ={video:S,audio:h};iZ={video:S,audio:h};B.K=!1;return iZ}; g.T3x=function(e,L,c){var I=c.B,B=[],x=[],S=c.Y("html5_shorts_onesie_mismatched_fix");e=e.O9();var h=GF.concat(SHM);S&&(h=GF.concat(rNn));c.Y("html5_early_media_for_drm")&&(h=h.concat(hAM),c.Y("allow_vp9_1080p_mq_enc")&&h.push(RAf));var R=[].concat(g.V(uwT));c.Y("html5_iamf_audio_onesie_fmt")&&R.push(["773"]);h=g.f(h);for(var u=h.next();!u.done;u=h.next()){u=g.f(u.value);for(var t=u.next();!t.done;t=u.next()){t=t.value;var O=G3(t,e&&S);if(O&&O.video){var q=g.X3(c.experiments,"html5_drm_byterate_soft_cap"); if(!(q>0&&Jmn(O)&&O.r_>q)&&DA(L,O,I)===!0){B.push({videoCodec:Owc[iy[t]],maxWidth:O.video.width,maxHeight:O.video.height,maxFramerate:O.video.fps});break}}}}S=g.f(R);for(e=S.next();!e.done;e=S.next())for(e=g.f(e.value),R=e.next();!R.done;R=e.next())if(R=R.value,(h=KpJ(R))&&h.audio&&(c.Y("html5_onesie_51_audio")||!JQ(h)&&!Vd(h))&&DA(L,h,I)===!0){x.push({audioCodec:qHR[iy[R]],numChannels:h.audio.numChannels});break}return{videoFormatCapabilities:B,audioFormatCapabilities:x}}; s5v=function(e){var L,c={},I=e.zm,B=e.UW,x=I.getVideoData(),S=rV(0),h=I.getVisibilityState();if(B.Y("html5_enable_audio_quality_setting")){var R=g.X3(B.experiments,"html5_default_audio_quality_setting_lr"),u;c.wW=(u=Wox[R])!=null?u:0}S&&(c.Yg=S,c.lastManualDirection=Xqn(),S=Ukc()||0,S>0&&(S=(B.Y("html5_use_date_now_for_local_storage")?Date.now():(0,g.zI)())-S,B.Y("html5_use_date_now_for_local_storage")?S>0&&(c.timeSinceLastManualFormatSelectionMs=S):c.timeSinceLastManualFormatSelectionMs=S));S=B.Y("html5_use_streamer_bandwidth_for_low_latency_live")&& x.isLowLatencyLiveStream;if(B.schedule.pS&&!S){var t;S=B.Y("html5_disable_bandwidth_cofactors_for_sabr_live")?!((t=e.Dg)==null||!t.vD):!1;c.Mh=$y(B.schedule,!S)}t=g.fn.medium;S=Math.floor(t*16/9);(R=x.O9())||(x.X&&x.Z&&x.Z.videoInfos.length!==0?(R=x.Z.videoInfos[0],R=!!R.video&&R.video.width0?{authorizedFormats:e.authorizedFormats}:{authorizedFormats:L};e.sabrLicenseConstraint&&(c.qm.sabrLicenseConstraint=e.sabrLicenseConstraint);if(B.Y("html5_onesie_media_capabilities")||B.Y("html5_enable_server_format_filter"))c.iB= 3;B.Y("html5_onesie_audio_only_playback")&&FU(x)&&(c.iB=1);var J;((J=e.Dg)==null?0:J.f9)&&e.pE&&(c.iB=c.iB===void 0?7:c.iB|4);J=x.Yf?x.Yf:g.g7(x);B.Y("html5_onesie_media_capabilities")&&(c.mediaCapabilities=g.T3x(x,J,B));var w;if((w=e.Dg)==null?0:gC(w)){O=B.B;w=[];L=[];q=new Map;T=Array.from(O.X.values());T=g.f(T);for(W=T.next();!W.done;W=T.next())A=W.value,A.Cu?L.push({audioCodec:qHR[A.EW],numChannels:A.numChannels,spatialCapabilityBitmask:MJM[A.EW]}):(b=Owc[A.EW],W={videoCodec:b,maxWidth:A.maxWidth|| 0,maxHeight:A.maxHeight||0,maxFramerate:A.maxFramerate||0,is10BitSupported:A.HY||!1},A.maxBitrateBps&&(W.maxBitrateBps=A.maxBitrateBps,h=G3(A.itag),t=void 0,((t=h)==null?0:t.video)&&DA(J,h,O)===!0&&(h=h.r_*8,h>W.maxBitrateBps&&(W.maxBitrateBps=h))),A=b+"_"+A.HY,b=q.get(A)||[],b.push(W),q.set(A,b));w=Lof(w,q);O={};B.Y("html5_ssff_denylist_opus_low")&&(O={itagDenylist:[249,350]});c.mediaCapabilities={videoFormatCapabilities:w,audioFormatCapabilities:L,hdrModeBitmask:3,perPlaybackAttributes:O}}var C; if((C=e.Dg)==null?0:C.X){c.zS=J.zS;var y;c.Yy=(y=e.Dg)==null?void 0:y.Yy}B.gZ&&(c.Cg=B.gZ);c.Pa=e.qA;c.VW=e.VW;c.kD=e.kD;c.IL=e.IL;e.LP&&(c.VkW=(0,g.zI)()-e.LP);e.isPrefetch&&B.Y("html5_report_prefetch_requests")&&(c.isPrefetch=!0);Oh||(c.xg=!0);C=yG(B.schedule)*1E3;C>0&&(c.X6=C);var P;((P=e.Dg)==null?0:P.gb)&&e.cG&&e.cG0?ev:B.schedule.interruptions[0]||0;var X;if((X=e.Dg)==null?0:X.RT)c.rb=e.rb;B.d_&&(c.audioTrackId=B.d_);SD(x)&&!c.audioTrackId&&(B.Y("html5_fill_default_mosaic_audio_track_id")||(e=XF6(x),c.audioTrackId=e),x==null||x.sW("misstrkchg",{"default":c.audioTrackId}));if(x=k1J())c.detailedNetworkType=zAn[x]||zAn.other;B.Y("html5_enable_voice_boost")&&(c.SKq=B.je);return c}; kk=function(e,L,c,I,B,x,S){var h={};L&&(h.bJ=L);if(!e)return h;h.playbackCookie=c==null?void 0:c.playbackCookie;B&&(h.Xq=B);h.d1=[];h.U3=[];if(S==null?0:S.size)for(L=g.f(S.values()),c=L.next();!c.done;c=L.next())h.U3.push(c.value);if(e.sabrContextUpdates.size>0)for(L=g.f(e.sabrContextUpdates.values()),c=L.next();!c.done;c=L.next())vcf(h,c.value,I);GN(e)&&x&&vcf(h,x,I);e.pI&&(h.Hj7=e.pI);I=e.S().X;h.clientInfo={clientName:fEf[I.c.toUpperCase()]||0};I.cbrand&&(h.clientInfo.deviceMake=I.cbrand);I.cmodel&& (h.clientInfo.deviceModel=I.cmodel);I.cver&&(h.clientInfo.clientVersion=I.cver);I.cos&&(h.clientInfo.osName=I.cos);I.cosver&&(h.clientInfo.osVersion=I.cosver);I=e.S();I.Y("html5_sabr_enable_server_xtag_selection")&&I.XD&&(h.clientInfo.hl=I.XD);e.L8&&(h.L8=e.L8);return h}; vcf=function(e,L,c){var I=L.type||0;(c==null?0:c.has(I))?e.U3.push(L):e.d1.push(I)}; X4=function(e,L,c,I,B,x){var S=x===void 0?{}:x;var h=S.LW===void 0?[]:S.LW;var R=S.pL===void 0?!1:S.pL;var u=S.Ly===void 0?0:S.Ly;var t=S.poToken===void 0?"":S.poToken;var O=S.nA===void 0?void 0:S.nA;var q=S.Za===void 0?"":S.Za;var T=S.gM===void 0?0:S.gM;var W=S.MS===void 0?new Uint8Array(0):S.MS;var A=S.KZ===void 0?!1:S.KZ;x=S.VT===void 0?0:S.VT;S=S.bJ===void 0?void 0:S.bJ;t6.call(this,L,B);var b=this;this.policy=e;this.logger=new g.tB("dash/request");this.Z3=this.Fc=0;this.nF=!1;this.P_=this.XO= null;this.Rs=!1;this.MS=this.gM=null;this.B2=this.p_=!1;this.fv=null;this.VT=this.ev=0;this.iW=!1;this.kx={Oq:function(w){b.Oq(w)}, D2e:function(){return b.ql}, AoS:function(w){b.ql=w}, JoY:function(w){b.Fc=w}, FDm:function(w){b.u4.lastError=w}, LQ:function(){return b.xhr}}; this.timing=new rC(this,c);this.pL=R;this.gM=T;this.MS=W;this.UR=g.c6(this.info,this.policy,I);this.UR.set("rn",this.MD().toString());this.UR.set("rbuf",(u*1E3).toFixed().toString());this.pL&&this.UR.set("smb","1");this.policy.al&&t&&this.UR.set("pot",t);q&&this.UR.set("bbs",q);this.policy.useUmp&&!$0(this.UR.HU)&&(this.pV=new uZ(this),this.UR.set("ump","1"),this.UR.set("srfvp","1"));if(e=this.policy.Sj?this.policy.Bu&&!isNaN(this.info.Bg)&&this.info.Bg>this.policy.g5?!1:!0:!1)L=null,this.policy.iS&& this.policy.VB?L=[1]:A&&(L=[]),L!=null&&(this.policy.Gb&&L.push(2),this.UR.set("defsel",L.join(",")));this.u4=new MV(this,this.policy,this.UR,this.info.V5,this.timing,this.logger,I,O);this.LW=h||null;this.Nn=ANH(this);dBx(this.u4);I=void 0;if(this.policy.cX||this.pV||this.policy.ye)I={method:"POST"},h=(0,g.Dd)([120,0]),O={},this.policy.rf&&S&&(S=kk(void 0,S),O.z7=S),this.policy.Dv&&this.MS&&(O.videoPlaybackUstreamerConfig=this.MS),this.policy.ye&&(S=this.info.G)&&Object.assign(O,S),Object.keys(O).length> 0?I.body=g.Pl(O,g.x0):I.body=h;if(this.gM&&this.MS){this.UR.set("iwts","1");I={method:"POST"};S={IL:this.gM*1E3};var J;h=(J=this.info.G)==null?void 0:J.fV;J=g.Pl({Dz:S,fV:h||void 0,videoPlaybackUstreamerConfig:this.MS},g.x0);I.body=J}try{this.xhr=qV(this.UR,this.policy.T,this.timing,e,I),this.u4.K.start(),x&&(this.Kq=new g.j9(this.Mm,x,this),this.Kq.start(x+(this.timing.qw.J.EK()||0)*1E3)),this.policy.o0&&SE(this.timing,this.Wd()),this.logger.debug(function(){return"Sent, itag="+b.UR.get("itag")+ " seg="+b.info.bd[0].ud+" range="+b.UR.get("range")+" time="+Math.round(b.info.bd[0].G)+"-"+Math.round(g.zL(b.info.bd).j)+" rtp="+(b.timing.pP()-Date.now()).toFixed(0)}),g.F2(function(){})}catch(w){Fon(this,w,!0)}}; ANH=function(e){if(!(Lk(e.info)&&e.info.Wt()&&e.policy.Cj&&e.LW)||e.info.V5.Z>=2||rV()>0||!e8$())return!1;var L=e.UR.get("aitags");if(!L)return!1;L=wz(L).split(",");for(var c=[],I=g.f(e.LW),B=I.next();!B.done;B=I.next())B=B.value,g.Fh(L,B)&&c.push(B);if(!c.length)return!1;e.UR.set("altitags",g.kC(c.join(",")));return!0}; Fon=function(e,L,c){c=c===void 0?!1:c;g.A9(L);e.u4.lastError="player.exception";e.errorMessage=L.name+"_"+L.message;c?g.F2(function(){vD(e.u4)}):vD(e.u4)}; bwH=function(e,L){e.timing.pS=!0;e.xhr.fq()&&e.timing.y7();if(e.policy.g0){var c;(c=e.Kq)==null||c.stop()}WD(e.ql,L,!1)}; iwf=function(e,L){e.info=L;if(e.ql){var c=e.ql;L=L.bd;(L.length!==c.bd.length||L.length0){L=g.f(L.bd);for(var c=L.next();!c.done;c=L.next()){var I=void 0;e+=((I=c.value.range)==null?void 0:I.length)||0}return e}if(L.jR.length>0)for(c=g.f(L.jR),I=c.next();!I.done;I=c.next())e+=I.value.kt||0;return e+L.Ok}; yV=function(e,L){if(ac){var c=0;e=e.C9.get(L);if(e==null||!e.F7)return 0;e=g.f(e.F7.values());for(L=e.next();!L.done;L=e.next())c+=L.value.data.totalLength;return c}return((c=e.C9.get(L))==null?void 0:c.HM.totalLength)||0}; Zd=function(e,L){e=e.C9.get(L);if(ac){if(e==null||!e.qT)return!1;L=e.F7.size>0;return e.BG.length>0||L}return!(e==null||!e.qT)&&!(e==null||!e.HM.totalLength)}; JNn=function(e,L){var c=e.C9.get(L),I=wmc(e,L),B=!I&&!!c.bytesReceived;if(ac){var x;if((x=e.w_)==null?0:x.Wy){e=g.f(c.F7.values());for(L=e.next();!L.done;L=e.next())if(!L.value.NR)return!1;return B}}else if(x=e.nO(L),B&&e.X&&x!==void 0)return x;return(B||c.bytesReceived===I)&&c.XJ+yV(e,L)===c.bytesReceived}; VJM=function(e,L,c){e.C9.set(L,{HM:new ej,XJ:0,bytesReceived:0,Ok:0,FL:!1,Dj:!1,nO:!1,Cu:c,ZR:[],bd:[],jR:[],qT:!1,F7:new Map,xi:new Map,BG:[]});e.logger.debug(function(){return"[initStream] formatId: "+L})}; C$$=function(e,L,c,I){c.bd.push.apply(c.bd,g.V(I));if(ac){c.xi.has(L)||c.xi.set(L,[]);var B;(B=c.xi.get(L)).push.apply(B,g.V(I))}else if(c.ql)for(e=g.f(I),L=e.next();!L.done;L=e.next())c.ql.bd.push(L.value);else{c.ql=new TF(e.Dg,[].concat(g.V(c.bd)));var x;((x=e.Dg)==null?0:x.z6)&&g.l(e,c.ql)}}; aE$=function(e,L,c){var I,B=(I=e.w_)==null?void 0:I.Z.get(L);if(!B)return[];if(c.Nk){var x;return((x=B.Wm(0,c.clipId))==null?void 0:x.bd)||[]}if(B.g7()){var S=c.startMs,h=c.durationMs;I=1E3;var R;if(((R=e.Dg)==null?0:R.X)&&c.timeRange){var u;S=(u=c.timeRange.startTicks)!=null?u:-1;var t;h=(t=c.timeRange.NT)!=null?t:-1;var O;I=(O=c.timeRange.timescale)!=null?O:-1}if(c.kQ<0||c.KR<0||h<0||S<0||c.kt<0||I<0)return mU(e,L),[];e=l$(c.kQ,c.kt);L=c.o5||0;return[new QC(3,B,e,"makeSliceInfosMediaBytes",c.KR- 1,S/I,h/I,L,e.length-L,void 0,c.L2,c.clipId)]}if(c.KR<0)return mU(e,L),[];var q;return((q=e.w_)==null?0:q.Wy)?(L=B.rP,R=L*B.info.r_,u=c.o5,((h=e.Dg)==null?0:h.ij)&&c.timeRange&&!u&&(S=c.timeRange.startTicks/c.timeRange.timescale),[new QC(3,B,void 0,"makeSliceInfosMediaBytes",c.KR,S,L,u,R,!0,c.L2,c.clipId)]):[]}; N3H=function(e,L,c){e.w_=L;e.Dg=c;L=g.f(e.C9);for(c=L.next();!c.done;c=L.next()){var I=g.f(c.value);c=I.next().value;I=I.next().value;for(var B=g.f(I.ZR),x=B.next();!x.done;x=B.next()){x=x.value;var S=aE$(e,c,x);C$$(e,x.zA,I,S)}}}; pB=function(e,L,c,I){e.logger.debug(function(){return"[addStreamData] formatId: "+c+",headerId: "+L+" bytes: "+I.totalLength}); (e=e.C9.get(c))&&!e.Dj&&(ac?(e.F7.has(L)||e.F7.set(L,{data:new ej,mj:0,NR:!1}),L5(e.F7.get(L).data,I)):L5(e.HM,I),e.bytesReceived+=I.totalLength,e.FL=!0)}; NV=function(e,L){e.logger.debug(function(){return"[closeStream] formatId: "+L}); var c=e.C9.get(L);c&&!c.Dj&&(c.Dj=!0,c.vR&&c.vR(),mJc(e)&&e.G.Lh())}; mJc=function(e){e=g.f(e.C9.values());for(var L=e.next();!L.done;L=e.next())if(!L.value.Dj)return!1;return!0}; yNv=function(e){ac=e}; $k=function(e,L,c,I,B,x,S){g.p.call(this);this.policy=e;this.info=L;this.w_=c;this.UY=B;this.logger=new g.tB("sabr");this.pV=new uZ(this);this.AE=new VV(this);this.Dm=new CB(this);this.state=1;this.JE=!1;this.fk=0;this.clipId="";this.EC=-1;this.Yc=0;this.JU=-1;this.iW=this.pN=!1;this.eV=0;this.a_=!1;this.policy.X8?this.r0=new wC(this,x):this.r0=new rC(this,x);this.UR=this.policy.RT?L.vl:Zwc(L,this.policy,I);this.UR.set("rn",""+this.MD());this.UR.set("alr","yes");N3H(this.Dm,c,e);this.u4=new MV(this, this.policy,this.UR,L.V5,this.r0,this.logger,I,S,this.policy.enableServerDrivenRequestCancellation);dBx(this.u4);var h;if((h=this.policy)==null?0:h.z6)g.l(this,this.Dm),g.l(this,this.u4);e=L.K;L={method:"POST",body:e};e&&(this.Yc=e.length);try{this.xhr=qV(this.UR,this.policy.T,this.r0,Oh,L),this.policy.o0&&SE(this.r0,this.Wd()),this.u4.K.start()}catch(R){g.F7(R)}}; pmx=function(e){e.policy.F5&&e.Af&&!e.a_?e.a_=!0:e.r0.y7()}; $JJ=function(e,L){var c=-1,I=-1,B=-1,x;if((x=e.mq)==null?0:x.items)for(e=g.f(e.mq.items),x=e.next();!x.done;x=e.next())x=x.value,L=h,R=e.w_.isManifestless&&e.policy.wb,S){var u;if(((u=e.X)==null?void 0:u.u0.event)==="predictStart"&&e.X.ude.j&&(e.j=NaN,e.T=NaN);e.X&&e.X.ud===L?INf(e,L,c,e.X,B):e.K===1&&PD(e,5,"noad")}; BEc=function(e,L,c,I,B){I.OD?PD(e,4,"cue"):(e.j=L,e.T=c,e.sW("sdai",{joinad:e.K,sg:e.j,st:e.T.toFixed(3)}),e.D=Date.now(),PD(e,2,e.K===3?"staftpred":"join"),B.Vm(I.u0))}; INf=function(e,L,c,I,B){if(B&&I){var x=I.u0,S=B.U0(x);x.event==="predictStart"&&(e.h7=L);e.sW("sdai",{onqevt:x.event,sq:L,mt:c,gab:S,cst:x.startSecs,cueid:e.policy.YC&&(S||x.event==="start")?x.identifier:void 0},!0);if(S)x.event!=="predictStart"?(x.event==="start"&&e.h7===L-1&&e.sW("sdai",{gabonstart:L}),BEc(e,L,c,I,B)):e.policy.gZ?PD(e,3,"predict"):(L+=Math.max(Math.ceil(-x.X/5E3),1),x=Math.floor(c-x.X/1E3),e.policy.K?e.B=x:e.G=L,e.sW("sdai",{onpred:c,estsq:L,estmt:x.toFixed(3)}),QV(e.loader,x,x, L),e.D=Date.now(),PD(e,3,"predict"),B.Vm(I.u0));else if(e.K===1){var h;((h=e.Z)==null?0:h.Hx(c))?(QV(e.loader,c,c,L),PD(e,4,"sk2head")):PD(e,5,"nogab")}else x.event==="predictStart"?e.policy.K&&e.B>0?(c=Math.floor(c-x.X/1E3),e.B!==c&&e.sW("sdai",{updateSt:c,old:e.B}),e.B=c):e.G>0&&(c=L+Math.max(Math.ceil(-x.X/5E3),1),e.G!==c&&(e.sW("sdai",{updateSt:c,old:e.G}),e.G=c)):e.policy.gZ&&e.K===3&&BEc(e,L,c,I,B)}else e.sW("sdai",{nulldec:1,sq:L,mt:c.toFixed(3),evt:(I==null?void 0:(x=I.u0)==null?void 0:x.event)|| "none"})}; oZx=function(e,L,c){if(e.policy.Qt&&e.policy.K)return!(e.K===1||e.K===2||!e.policy.gZ&&e.K===3&&c>=e.G);if(e.K===1||e.K===2)return!1;if(e.K!==0&&L===e.audioTrack){if(e.policy.K)return xhc(e.videoTrack,c)||xhc(e.videoTrack,c+1);e=dC(e.videoTrack);if(c>(e?e.ud:-1))return!1}return!0}; US=function(e,L,c){return(c<0||c===e.j)&&!isNaN(e.T)?e.T:L}; ncr=function(e,L){if(e.X){var c=e.X.u0.jW-(L.startTime+e.J-e.X.u0.startSecs);c<=0||(c=new Lw(e.X.u0.startSecs-(isNaN(e.J)?0:e.J),c,e.X.u0.context,e.X.u0.identifier,"stop",e.X.u0.X+L.duration*1E3),e.sW("cuepointdiscontinuity",{segNum:L.ud}),lZ(e,c,L.ud))}}; PD=function(e,L,c){e.K!==L&&(e.sW("sdai",{setsst:L,old:e.K,r:c}),e.K=L)}; ES=function(e,L,c,I){(I===void 0?0:I)?PD(e,1,"seek"):L>0&&Math.abs(L-c)>=5&&e.K===4&&PD(e,5,"sk2t")}; SY$=function(e){this.sW=e;this.X="";this.K=new Map}; X0=function(e,L,c){this.audio=e;this.video=L;this.reason=c}; KB=function(e,L,c){this.X=e;this.reason=L;this.token=c;this.videoId=void 0}; Yk=function(e,L,c){g.p.call(this);this.policy=e;this.G=L;this.sW=c;this.Z=new Map;this.B=0;this.j=!1;this.X="";this.K=!1}; nB=function(e,L,c){if(c===void 0?0:c)e.j=!0;++e.B;c=6E4*Math.pow(2,e.B);c=(0,g.zI)()+c;e.Z.set(L.info.id,c)}; en=function(e){for(var L=g.f(e.Z.entries()),c=L.next();!c.done;c=L.next()){var I=g.f(c.value);c=I.next().value;I=I.next().value;I<(0,g.zI)()&&e.Z.delete(c)}return e.Z}; rBc=function(e){return e.j&&en(e).size>0}; LJ=function(e,L){e.X!==L&&(e.X=L,e.K=!0)}; hcc=function(e,L){var c;L&&(c=g.vU(e.G.X,function(B){return B.id===L})); if(!c&&(c=g.vU(e.G.X,function(B){var x;return!((x=B.l5)==null||!x.isDefault)}),L)){var I; e.sW("iaf",{id:L,sid:(I=c)==null?void 0:I.id})}return c}; IY=function(e,L,c,I,B,x){var S=this;x=x===void 0?[]:x;this.loader=e;this.Gm=L;this.policy=c;this.w_=I;this.j=B;this.Sl=x;this.logger=new g.tB("dash/abr");this.X=h1;this.Z=this.T=null;this.D=-1;this.Y9=!1;this.nextVideo=this.K=null;this.G=[];this.Pe=new Set;this.ye={};this.d_=new w$(1);this.J=0;this.He=this.h7=this.pS=!1;this.k9=0;this.m$=!1;this.Ve=new Set;this.t7=!1;this.kx={v6:function(){ci(S)}}; this.B=new Yk(this.policy,B,function(h,R){S.loader.sW(h,R)})}; qYf=function(e,L,c){Bi(e,L);L=hcc(e.B,c);c||L||(L=RcJ(e));L=L||e.j.X[0];e.K=e.w_.X[L.id];ci(e);e.T=e.K;uNc(e);t6H(e);e.Z=e.nextVideo;e.T=e.K;return Okv(e)}; M6v=function(e,L){if(TEn(e,L))return null;if(L.reason==="m"&&L.isLocked())return e.logger.debug(function(){return"User sets constraint to: "+bJ(L)}),Bi(e,L),e.J=e.G.length-1,ci(e),xD(e),e.h7=e.h7||e.Z!==e.nextVideo,e.Z=e.nextVideo,new X0(e.K,e.Z,L.reason); L.reason==="r"&&(e.D=-1);Bi(e,L);xD(e);if(L.reason==="r"&&e.nextVideo===e.Z)return new X0(e.K,e.nextVideo,L.reason);WAc(e);return null}; zcT=function(e,L,c){e.K=e.w_.X[L];e.T=e.K;return new X0(e.T,e.Z,c?"t":"m")}; sZn=function(e,L){if(L.info.video){if(e.Z!==L)return e.Z=L,Okv(e)}else e.He=e.T!==L,e.T=L;return null}; vZT=function(e,L){if(L.X.info.video&&L.B){var c=(L.K+L.Z)/L.duration,I=L.X.info.r_;c&&I&&(e.d_.lE(1,c/I),e.policy.Z&&c/I>1.5&&e.loader.sW("overshoot",{sq:L.ud,br:c,max:I}))}}; oY=function(e,L,c){nB(e.B,L,c===void 0?!1:c);e.D=-1;Bi(e,e.X)}; fNn=function(e,L){return new X0(e.T,e.Z,L||e.X.reason)}; WAc=function(e){if(e.Z&&e.nextVideo&&Sn(e,e.Z.info)e.policy.Yy,h=B<=e.policy.Yy?wr(I):gr(I);if(!x||S||h)c[B]=I}return c}; Bi=function(e,L){e.X=L;var c=e.j.videoInfos;if(!e.X.isLocked()){var I=(0,g.zI)();c=g.ig(c,function(h){if(h.r_>this.policy.r_)return!1;var R=this.w_.X[h.id];return en(this.B).get(h.id)>I?!1:R.V5.Z>4||R.j>4?(this.logger.debug(function(){return"Remove "+j0(h)+"; 4 load failures"}),!1):this.Ve.has(+h.itag)?!1:!0},e); rBc(e.B)&&(c=g.ig(c,function(h){return h.video.width<=854&&h.video.height<=480}))}c.length||(c=e.j.videoInfos); var B=c;e.policy.Fz&&(B=FA$(e,B,L));B=g.ig(B,L.G,L);if(e.X.isLocked()&&e.B.X){var x=g.vU(c,function(h){return h.id===e.B.X}); x?B=[x]:LJ(e.B,"")}e.policy.Fz||(B=FA$(e,B,L));B.length||(B=[c[0]]);B.sort(function(h,R){return Sn(e,h)-Sn(e,R)}); L={};for(c=1;cL.S$.video.width?(g.b7(B,c),c--):Sn(e,L.W5)*e.policy.J>Sn(e,L.S$)&&(g.b7(B,c-1),c--);var S=B[B.length-1];e.m$=!!e.Z&&!!e.Z.info&&e.Z.info.EW!==S.EW;e.logger.debug(function(){return"Constraint: "+bJ(e.X)+", "+B.length+" fmts selectable, max selectable fmt: "+j0(S)}); e.G=B;e.Pe.clear();L=!1;for(c=0;c=1080&&(L=!0);bkJ(e.policy,S,e.w_.Wy)}; FA$=function(e,L,c){var I=c.reason==="m"||c.reason==="s";e.policy.sI&&rH&&g.RM&&(!I||c.X<1080)&&(L=L.filter(function(u){return u.video&&(!u.K||u.K.powerEfficient)})); if(L.length>0)if(Lx()){var B=ABc(e,L);L=L.filter(function(u){return!!u&&!!u.video&&u.EW===B[u.video.qualityOrdinal].EW})}else{var x,S,h=(x=L[0])==null?void 0:(S=x.video)==null?void 0:S.qualityOrdinal; if(h){c=L.filter(function(u){return!!u&&!!u.video&&u.video.qualityOrdinal===h}); var R=ABc(e,c)[h].EW;L=L.filter(function(u){return!!u&&!!u.video&&u.EW===R})}}return L}; ikM=function(e,L){for(var c=0;c+1I}; ci=function(e){if(!e.K||!e.policy.G&&!e.K.info.l5){var L=e.j.X;e.K&&(L=L.filter(function(I){return I.audio.X===e.K.info.audio.X}),L.length||(L=e.j.X)); e.K=e.w_.X[L[0].id];if(L.length>1&&!e.policy.He){if(!e.policy.tO){var c=g.vU(L,function(I){return I.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); c&&(e.K=e.w_.X[c.id])}c=!1;if(c=e.policy.m1?!0:e.X.isLocked()?e.X.X<240:ikM(e,e.K))e.K=e.w_.X[g.zL(L).id]}}}; xD=function(e){if(!e.nextVideo||!e.policy.G)if(e.X.isLocked())e.nextVideo=e.X.X<=360?e.w_.X[e.G[0].id]:e.w_.X[g.zL(e.G).id],e.logger.debug(function(){return"Select max fmt: "+j0(e.nextVideo.info)}); else{for(var L=Math.min(e.J,e.G.length-1),c=P8(e.Gm),I=Sn(e,e.K.info),B=c/e.policy.pS-I;L>0&&!(Sn(e,e.G[L])<=B);L--);for(var x=c/e.policy.J-I;L=x);L++);e.nextVideo=e.w_.X[e.G[L].id];e.J!==L&&e.logger.info(function(){return"Adapt to: "+j0(e.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", bandwidth to downgrade: "+B.toFixed(0)+", bandwidth to upgrade: "+x.toFixed(0)+", constraint: "+bJ(e.X)}); e.J=L}}; uNc=function(e){var L=e.policy.pS,c=P8(e.Gm),I=c/L-Sn(e,e.K.info);L=g.Aw(e.G,function(B){return Sn(this,B)x?B=0:I[S]>e.buffered[S]&&(S===x-1?B=2:S===x-2&&I[S+1]>e.buffered[S+1]&&(B=3))}e.X.add(L<<3|(c&&4)|B);L=Math.ceil(e.track.w$()*1E3);e.X.add(L-e.B);e.B=L;if(B===1)for(e.X.add(x),S=L=0;S=2&&e.X.add(I[x- 1]-e.buffered[x-1]);c&&e.X.add(c);e.buffered=I}; uz=function(e,L,c){var I=this;this.policy=e;this.X=L;this.k9=c;this.G=this.K=0;this.rZ=null;this.pS=new Set;this.D=[];this.indexRange=this.initRange=null;this.J=new Ri;this.h7=this.Gm=!1;this.kx={b8m:function(){return I.Z}, BXS:function(){return I.chunkSize}, GA$:function(){return I.T}, eqY:function(){return I.j}}; (L=w66(this))?(this.chunkSize=L.csz,this.Z=Math.floor(L.clen/L.csz),this.T=L.ck,this.j=L.civ):(this.chunkSize=e.i7,this.Z=0,this.T=g.Rp(16),this.j=g.Rp(16));this.B=new Uint8Array(this.chunkSize);this.T&&this.j&&(this.crypto=new $BJ(this.T,this.j))}; w66=function(e){if(e.policy.tj&&e.policy.Ez)for(var L=g.f(e.policy.tj),c=L.next(),I={};!c.done;I={kZ:void 0,Om:void 0},c=L.next())if(c=g.Ee(c.value),I.kZ=+c.clen,I.Om=+c.csz,I.kZ>0&&I.Om>0&&e.policy.G===c.docid&&e.X.info.id===c.fmtid&&e.X.info.lastModified===+c.lmt)return e={},e.clen=I.kZ,e.csz=I.Om,e.ck=c.ck,e.civ=c.civ,e}; tu=function(e){return!!e.rZ&&e.rZ.C2()}; C2R=function(e,L){if(!tu(e)&&!e.We()){if(!(e.Gm||(e.Gm=!0,e.Z>0))){var c=Oi(e);c=eI(e.policy.G,e.X.info,qf(e),c,e.policy.d_);Tj(e,c)}if(L.info.type===1){if(e.rZ){Wi(e,Error("Woffle: Expect INIT slices to always start us off"));return}e.initRange=l$(0,L.K.totalLength)}else if(L.info.type===2)e.rZ&&e.rZ.type===1||Wi(e,Error("Woffle: Index before init")),e.indexRange=l$(e.initRange.end+1,L.K.totalLength);else if(L.info.type===3){if(!e.rZ){Wi(e,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(e.rZ.type===3&&!EH(e.rZ,L.info)&&(e.D=[],L.info.ud!==Xw(e.rZ)||L.info.K!==0))return;if(L.info.B){c=g.f(e.D);for(var I=c.next();!I.done;I=c.next())JB6(e,I.value);e.D=[]}else{e.D.push(L);e.rZ=L.info;return}}else{Wi(e,Error("Woffle: Unexpected slice type"));return}e.rZ=L.info;JB6(e,L);V6c(e)}}; JB6=function(e,L){var c=0,I=xj(L.K);if(e.G=I.length)return;if(c<0)throw Error("Missing data");e.G=e.Z;e.K=0}for(B={};c0){var S=I.getUint32(c+28);x+=S*16+4}var h=I.getUint32(c+x-4);try{var R=Zkc(L.subarray(c+x,c+x+h));if(R!==null){var u=R;break a}}catch(t){}}c+=B}u=null;break a}catch(t){u=null;break a}u=void 0}if(u!=null)for(L=TK(YQ(u,7,void 0,Ja)),L==null||e.Gk||(e.cryptoPeriodIndex=L),L=TK(YQ(u,10,void 0,Ja)),L!=null&&L>0&& !e.Gk&&(e.X=L),u=xs(u,2,kyv,void 0===V5x?2:4),u=g.f(u),I=u.next();!I.done;I=u.next())L=e.Z,c=L.push,I=an(I.value),I=g.GM(I,4),c.call(L,I)}; $hx=function(e){return isNaN(e.cryptoPeriodIndex)?g.GM(e.initData):""+e.cryptoPeriodIndex}; si=function(e,L,c){var I=c===void 0?{}:c;c=I.videoDuration===void 0?0:I.videoDuration;var B=I.r3===void 0?void 0:I.r3;I=I.wm===void 0?!1:I.wm;this.videoId=e;this.status=L;this.videoDuration=c;this.r3=B;this.wm=I}; jZr=function(e,L,c,I,B){this.videoId=e;this.Zh=L;this.K=c;this.bytesDownloaded=I;this.X=B}; vi=function(e){this.X=e;this.offset=0}; fJ=function(e){if(e.offset>=e.X.totalLength)throw Error();return Sj(e.X,e.offset++)}; HkH=function(e,L){L=L===void 0?!1:L;var c=fJ(e);if(c===1){L=-1;for(c=0;c<7;c++){var I=fJ(e);L===-1&&I!==255&&(L=0);L>-1&&(L=L*256+I)}return L}I=128;for(var B=0;B<6&&I>c;B++)c=c*256+fJ(e),I*=128;return L?c:c-I}; lNn=function(e){try{var L=HkH(e,!0),c=HkH(e,!1);return{id:L,size:c}}catch(I){return{id:-1,size:-1}}}; P26=function(e){for(var L=new vi(e),c=-1,I=0,B=0;!I||!B;){var x=lNn(L),S=x.id;x=x.size;if(S<0)return;if(S===176){if(x!==2)return;I=L.tR()}else if(S===186){if(x!==2)return;B=L.tR()}S===374648427?c=L.tR()+x:S!==408125543&&S!==174&&S!==224&&L.skip(x)}L=o8(e,0,c);c=new DataView(L.buffer);c.setUint16(I,3840);c.setUint16(B,2160);I=new ej([L]);L5(I,e);return I}; QZx=function(e,L,c){var I=this;this.loader=e;this.policy=L;this.B=c;this.logger=new g.tB("dash");this.K=[];this.X=null;this.Gm=-1;this.D=0;this.Ve=NaN;this.pS=0;this.Z=NaN;this.J=this.Y9=0;this.m$=-1;this.ye=this.G=this.j=this.k9=null;this.d_=this.He=NaN;this.T=this.h7=this.Pe=this.Sl=null;this.x9=!1;this.t7=this.timestampOffset=0;this.kx={nm:function(){return I.K}}; if(this.policy.G){var B=this.B,x=this.policy.G;this.policy.d_&&e.sW("atv",{ap:this.policy.d_});this.T=new uz(this.policy,B,function(S,h,R){Au(e,new si(I.policy.G,2,{r3:new jZr(x,S,B.info,h,R)}))}); this.T.J.promise.then(function(S){I.T=null;S===1?Au(e,new si(I.policy.G,S)):I.loader.sW("offlineerr",{status:S.toString()})},function(S){var h=(S.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); S instanceof Mf&&!S.X?(I.logger.info(function(){return"Assertion failed: "+h}),I.loader.sW("offlinenwerr",{em:h}),FK(I),Au(e,new si(I.policy.G,4))):(I.logger.info(function(){return"Failed to write to disk: "+h}),I.loader.sW("dldbwerr",{em:h}),FK(I),Au(e,new si(I.policy.G,4,{wm:!0})))})}}; dhM=function(e){return e.K.length?e.K[0]:null}; Uhr=function(e,L){return e.K.some(function(c){return c.info.ud===L})}; nZx=function(e,L,c,I){I=I===void 0?0:I;if(e.G){var B=e.G.K+e.G.Z;if(c.info.K>0)if(c.info.ud===e.G.ud&&c.info.K=0&&e.G.ud>=0&&!EH(e.G,c.info))throw new g.yu("improper_continuation",e.G.e6(),c.info.e6());zPv(e.G,c.info)||bz(e,"d")}else if(c.info.K>0)throw new g.yu("continuation_of_null",c.info.e6());e.G=c.info;e.B=c.info.X;if(c.info.K===0){if(e.X)if(!e.loader.isOffline()||e.policy.DO)e.loader.sW("slice_not_fully_processed", {buffered:e.X.info.e6(),push:c.info.e6()});else throw new g.yu("slice_not_fully_processed",e.X.info.e6(),c.info.e6());iz(e);e.Y9=I}else{if(e.Y9&&I&&e.Y9!==I)throw e=new g.yu("lmt_mismatch",c.info.ud,e.Y9,I),e.level="WARNING",e;!c.info.X.g7()&&e.j&&(I=c.info,B=e.j.EC,I.T="updateWithEmsg",I.ud=B)}if(e.X){I=g.W6(e.X,c);if(!I)throw new g.yu("failed_to_merge",e.X.info.e6(),c.info.e6());e.X=I}else e.X=c;a:{c=g.Cn(e.X.info.X.info);if(e.X.info.type!==3){if(!e.X.info.B)break a;e.X.info.type===6?EZr(e,L,e.X): X6T(e,e.X);e.X=null}for(;e.X;){I=e.X.K.totalLength;if(e.Gm<=0&&e.D===0){var x=e.X.K,S=-1;B=-1;if(c){for(var h=0;h+80))break;if(O!==408125543)if(O===524531317)h=!0,t>=0&&(B=x.tR()+t,R=!0);else{if(h&&(O===160||O===163)&&(S<0&&(S=u),R))break;O===163&&(S=Math.max(0,S),B=x.tR()+t);if(O===160){S<0&&(B=S=x.tR()+ t);break}x.skip(t)}}S<0&&(B=-1)}if(S<0)break;e.Gm=S;e.D=B-S}if(e.Gm>I)break;e.Gm?(I=KAM(e,e.Gm),I.B&&YYc(e,I),EZr(e,L,I),Gj(e,I),e.Gm=0):e.D&&(I=KAM(e,e.D<0?Infinity:e.D),e.D-=I.K.totalLength,Gj(e,I))}}e.X&&e.X.info.B&&(Gj(e,e.X),e.X=null)}; X6T=function(e,L){!L.info.X.g7()&&L.info.K===0&&(g.Cn(L.info.X.info)||L.info.X.info.Gk())&&e4$(L);if(L.info.type===1)try{YYc(e,L),e1H(e,L)}catch(B){g.A9(B);var c=Kw(L.info);c.hms="1";e.loader.handleError("fmt.unparseable",c||{},1)}c=L.info.X;c.XB(L);e.T&&C2R(e.T,L);if(c.Y4()&&e.policy.X)a:{e=e.loader.w_;L=L.info.clipId;c=g.mr(c.info,e.Wy);if(L){var I=pw({itag:c.itag,lmt:e.Wy?0:c.lmt||0,xtags:c.xtags});if(e.m$[I])break a;e.m$[I]=L}e.He.push(c)}}; Gvv=function(e,L,c){if(e.K.length!==0&&(c||e.K.some(function(x){return x.info.G=kD(S)+h):L=e.getDuration()>=S.getDuration(),L=!L;L&&Izc(c)&&(L=e.k9,gH?(h=Y7M(c),S=1/h,h=kD(e,h),L=kD(L)+S-h):L=L.getDuration()- e.getDuration(),L=1+L/c.info.duration,Ef$(g.T6(c),L))}else{S=!1;e.j||(e4$(c),c.X&&(e.j=c.X,S=!0,B=c.info,x=c.X.EC,B.T="updateWithEmsg",B.ud=x,B=c.X,B.C2&&(x=e.B.index,x.K=!B.C2,x.Z="emsg"),B=c.info.X.info,x=g.T6(c),g.Cn(B)?OH(x,1701671783):B.Gk()&&fw([408125543],307544935,x)));a:if((B=sY(c,e.policy.Cf))&&nlR(c))h=B$n(e,c),e.J+=h,B-=h,e.pS+=B,e.Z=e.policy.a8?e.Z+B:NaN;else{if(e.policy.jE){if(x=R=e.loader.y6(g.Mh(c),1),e.Z>=0&&c.info.type!==6){if(e.policy.a8&&isNaN(e.He)){g.F7(new g.yu("Missing duration while processing previous chunk", c.info.e6()));e.loader.isOffline()&&!e.policy.DO||xXH(e,c,x);bz(e,"m");break a}I=R-e.Z;var u=I-e.J,t=c.info.ud,O=e.ye?e.ye.ud:-1,q=e.d_,T=e.He,W=e.policy.Dl&&I>e.policy.Dl,A=Math.abs(u)>10,b=Math.abs(e.Z-x)<1E-7;if(Math.abs(u)>1E-4){e.t7+=1;var J=(h=e.j)==null?void 0:l4r(h);h={audio:""+ +e.Cu(),sq:t.toFixed(),sliceStart:R,lastSq:O.toFixed(),lastSliceStart:q,lastSliceDuration:T,totalDrift:(I*1E3).toFixed(),segDrift:(u*1E3).toFixed(),skipRewrite:""+ +(W||A)};if(J==null?0:J.length)h.adCpn=J[0];e.loader.handleError("qoe.avsync", h);e.m$=t}W||A||b||(x=e.Z);h=B$n(e,c,R);B-=h;e.J=I+h}}else x=isNaN(e.Z)?c.info.startTime:e.Z;xXH(e,c,x)&&(e.pS+=B,e.Z=x+B,e.policy.rX&&e.t7>=e.policy.rX&&(e.t7=0,e.loader.pR({resetForRewrites:"count"})))}e.ye=c.info;e.He=z6(c);c.Z>=0&&(e.d_=c.Z);if(S&&e.j){S=oyx(e,!0);Yc(c.info,S);e.X&&Yc(e.X.info,S);L=g.f(L);for(h=L.next();!h.done;h=L.next())h=h.value,B=void 0,e.policy.B&&h.ud!==((B=e.j)==null?void 0:B.EC)||Yc(h,S);(c.info.B||e.X&&e.X.info.B)&&c.info.type!==6||(e.h7=S,e.policy.K?(L=Shv(e.j),e.loader.l8(e.B, S,L)):(L=e.loader,L.w_.isManifestless&&rbM(L,S,null,!!e.B.info.video)),e.policy.sK||h1n(e))}}e1H(e,c);e.timestampOffset&&X1M(c,e.timestampOffset)}; Gj=function(e,L){if(L.info.B){e.Sl=L.info;if(e.j){var c=e.j,I=oyx(e,!1);c=Shv(c);e.loader.l8(e.B,I,c);e.h7||e.policy.sK||h1n(e);e.h7=null}iz(e)}e.T&&C2R(e.T,L);if(I=e.cD())if(I=g.W6(I,L,e.policy.KI,e.policy.PM)){e.K.pop();e.K.push(I);return}e.K.push(L)}; Shv=function(e){if(e.OD()){var L=e.data["Stitched-Video-Id"]?e.data["Stitched-Video-Id"].split(",").slice(0,-1):[],c=l4r(e),I=[];if(e.data["Stitched-Video-Duration-Us"])for(var B=g.f(e.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),x=B.next();!x.done;x=B.next())I.push((Number(x.value)||0)/1E6);B=[];if(e.data["Stitched-Video-Start-Frame-Index"]){x=g.f(e.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var S=x.next();!S.done;S=x.next())B.push(Number(S.value)||0)}B=[]; if(e.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(x=g.f(e.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),S=x.next();!S.done;S=x.next())B.push((Number(S.value)||0)/1E6);e=new yBr(L,c,I,B,g.PiR(e),g.Q0f(e))}else e=null;return e}; iz=function(e){e.X=null;e.Gm=-1;e.D=0;e.j=null;e.Ve=NaN;e.pS=0;e.h7=null}; bz=function(e,L){L={rst4disc:L,cd:e.J.toFixed(3),sq:e.ye?e.ye.ud:-1};e.Z=NaN;e.J=0;e.m$=-1;e.ye=null;e.d_=NaN;e.He=NaN;e.Pe=null;e.loader.sW("mdstm",L)}; e1H=function(e,L){if(e.isDrm()){if(L.info.X.info.Gk()){var c=new T7(g.T6(L));if(MJ(c,[408125543,374648427,174,28032,25152,20533,18402])){var I=vm(c,!0);c=I!==16?null:i$(c,I)}else c=null;I="webm"}else L.info.D=NEc(g.T6(L)),c=mh$(L.info.D),I="cenc";c&&c.length&&(c=new zj(c,I),e.policy.u7&&g.Cn(L.info.X.info)&&(I=LrR(g.T6(L)))&&(c.K=I),c.Gk=L.info.X.info.Gk(),L.X&&L.X.cryptoPeriodIndex&&(c.cryptoPeriodIndex=L.X.cryptoPeriodIndex),L.X&&L.X.K&&(c.X=L.X.K),e.loader.JJ(c))}}; h1n=function(e){var L=e.j,c=j0n(L);c&&(c.startSecs+=e.Ve,e.loader.EX(e.B,c,L.EC,L.OD()))}; oyx=function(e,L){var c,I=e.j;if(c=j0n(I))c.startSecs+=e.Ve;return new PB(I.EC,e.Ve,L?I.rP:e.pS,I.ingestionTime,"sq/"+I.EC,void 0,void 0,L,c)}; xXH=function(e,L,c){if(!ElJ(L,c))return L=Kw(L.info),L.smst="1",e.loader.handleError("fmt.unparseable",L||{},1),!1;isNaN(e.Ve)&&(e.Ve=c);return!0}; B$n=function(e,L,c){var I=0;if(L.info.X.info.Gk()&&!nlR(L))return 0;if(e.k9&&!e.Cu()){var B=0;c&&g.Cn(L.info.X.info)?B=c-e.Z:L.info.X.info.Gk()&&(B=e.J);var x=L.info.ud;c=sY(L,e.policy.Cf);var S=e.k9;var h=S.m$;S=S.J;var R=Math.abs(S-B)>.02;if((x===h||x>h&&x>e.m$)&&R){I=Math.max(.95,Math.min(1.05,(c-(S-B))/c));if(g.Cn(L.info.X.info))Ef$(g.T6(L),I);else if(L.info.X.info.Gk()&&(x=B-S,!g.Cn(L.info.X.info)&&(L.info.X.info.Gk(),I=new T7(g.T6(L)),h=L.B?I:new T7(new DataView(L.info.X.X.buffer)),sY(L,!0)))){var u= x*1E3,t=g3(h);h=I.pos;I.pos=0;if(I.X.getUint8(I.pos)===160||kc(I))if(sH(I,160))if(vm(I,!0),sH(I,155)){if(x=I.pos,R=vm(I,!0),I.pos=x,u=u*1E9/t,t=AN(I),u=t+Math.max(-t*.7,Math.min(t,u)),u=Math.sign(u)*Math.floor(Math.abs(u)),!(Math.ceil(Math.log(u)/Math.log(2)/8)>R)){I.pos=x+1;for(x=R-1;x>=0;x--)I.X.setUint8(I.pos+x,u&255),u>>>=8;I.pos=h}}else I.pos=h;else I.pos=h;else I.pos=h}I=sY(L,e.policy.Cf);I=c-I}I&&L.info.X.info.Gk()&&e.loader.sW("webmDurationAdjustment",{durationAdjustment:I,videoDrift:B+I, audioDrift:S})}return I}; Izc=function(e){return e.info.X.g7()&&e.info.ud===e.info.X.index.Aw()}; kD=function(e,L){L=(L=L===void 0?0:L)?Math.round(e.timestampOffset*L)/L:e.timestampOffset;e.B.G&&L&&(L+=e.B.G.X);return L+e.getDuration()}; R1M=function(e,L){L<0||(e.K.forEach(function(c){X1M(c,L)}),e.timestampOffset=L)}; E4=function(e,L,c,I,B){t6.call(this,c,B);var x=this;this.policy=e;this.formatId=L;this.Dm=I;this.lastError=null;this.vR=function(){x.We()||(x.Dm.C9.has(x.formatId)?(x.isComplete()||x.X.start(),Zd(x.Dm,x.formatId)&&x.AS(2),x.Dm.Dj(x.formatId)&&(JNn(x.Dm,x.formatId)?x.Oq(4):(x.lastError="net.closed",x.Oq(5)))):(x.lastError="player.exception",x.Oq(5)))}; this.X=new g.j9(function(){x.isComplete()||(x.lastError="net.timeout",x.Oq(5))},1E3); this.X.start();k7c(this.Dm,this.formatId,this.vR);g.F2(this.vR)}; Dc=function(e,L,c,I){g.p.call(this);var B=this;this.loader=e;this.policy=L;this.X=c;this.timing=I;this.logger=new g.tB("dash");this.Z=[];this.k9=[];this.K=this.Py=null;this.Pe=!1;this.Y9=this.t7=0;this.j=-1;this.Gm=!1;this.Ve=-1;this.ye=null;this.h7=NaN;this.pS=[];this.kx={PO:function(){return B.G}, NXM:function(){return B.Z}, VjS:function(){return B.J}}; this.G=new QZx(e,L,c);this.policy.X&&(this.J=new dd(this.G,this.loader.getManifest(),this.policy,function(x){B.policy.iZ&&B.sW("buftl",x)})); this.policy.gT&&(this.D=new hu(this));this.r_=c.info.r_;this.T=this.policy.h7?!1:c.qn();this.isManifestless=c.qn();this.B=this.T;g.l(this,this.ye)}; wH=function(e,L,c){c=c===void 0?!1:c;L&&gH&&R1M(e.G,L.NG());if(!c){var I;(I=e.J)==null||Ae6(I)}e.Py=L;(L=e.J)!=null&&(L.Py=e.Py)}; Ju=function(e){var L=e.Py&&e.Py.Ll();if(e.policy.V2){if((e=e.J)==null)e=void 0;else{var c;e=(c=e.Z)==null?void 0:c.info}return e||null}return L}; uBJ=function(e){for(var L={},c=0;c4&&e.k9.shift()}; t8x=function(e,L){if(L.lC()){var c=L.r$();c=g.f(c);for(var I=c.next();!I.done;I=c.next())I=I.value,e.policy.Z&&L instanceof E4&&e.sW("omblss",{s:I.info.e6()}),CJ(e,L.info.bd,I,L.lK())}}; CJ=function(e,L,c,I){I=I===void 0?0:I;isNaN(e.h7)||(e.sW("aswm",{sq:L[0].ud,id:L[0].X.info.itag,xtag:L[0].X.info.X,ep:Date.now()-e.h7}),e.h7=NaN);switch(c.info.type){case 1:case 2:OlT(e,c);break;case 4:var B=c.info.X,x=B.XU(c),S;((S=e.K)==null?0:S.type===4)&&in$(c.info,e.K)&&(e.K=B.qf(e.K).pop());c=g.f(x);for(B=c.next();!B.done;B=c.next())CJ(e,L,B.value,I);break;case 3:c.info.X.info.video?(B=e.timing,B.Ve||(B.Ve=(0,g.zI)(),g.px("fvb_r",B.Ve,B.X))):(B=e.timing,B.j||(B.j=(0,g.zI)(),g.px("fab_r",B.j, B.X)));nZx(e.G,L,c,I);e.policy.X&&qhf(e);break;case 6:nZx(e.G,L,c,I),e.K=c.info}}; OlT=function(e,L){if(L.info.type===1)if(L.info.X.info.video){var c=e.timing;c.Y9||(c.Y9=(0,g.zI)(),g.px("vis_r",c.Y9,c.X))}else c=e.timing,c.J||(c.J=(0,g.zI)(),g.px("ais_r",c.J,c.X));X6T(e.G,L);e=e.loader;e.videoTrack.X.Y4()&&e.audioTrack.X.Y4()&&e.policy.X&&!e.w_.Wy&&(L=e.audioTrack.getDuration(),c=e.videoTrack.getDuration(),Math.abs(L-c)>1&&e.sW("trBug",{af:""+g.mr(e.audioTrack.X.info,!1),vf:""+g.mr(e.videoTrack.X.info,!1),a:""+L,v:""+c}))}; BD=function(e){return dhM(e.G)}; qhf=function(e){e.Z.length?e.K=g.zL(g.zL(e.Z).info.bd):e.G.K.length?e.K=e.G.cD().info:e.K=Ju(e)}; aY=function(e,L){var c={p9:[],fB:[]},I;if((e=e.J)==null)e=void 0;else{fA6(e,e.p9,"og");zn6(e,L);fA6(e,e.p9,"trim");var B=v0R(e);L=B.p9;B=B.v_;for(var x=[],S=0;S0){var q=P1(O,R);q>=0&&(t=(O.end(q)-R+.1)*1E3)}x.push({formatId:g.mr(h.info.X.info,e.w_.Wy), L2:h.info.L2,sequenceNumber:h.info.ud+e.G,Oy:u,ey:h.info.Z,qH:t})}e={p9:L,fB:x}}return(I=e)!=null?I:c}; Yq=function(e,L,c){c=c===void 0?!1:c;if(e.Py){var I=e.Py.rq(),B=dr(I,L),x=NaN,S=Ju(e);S&&(x=dr(I,S.X.index.getStartTime(S.ud)));if(B===x&&e.K&&e.K.Z&&T$c(Nf(e),0))return L}e=WXx(e,L,c);return e>=0?e:NaN}; eE=function(e,L,c){e.X.Y4();var I=WXx(e,L);if(I>=0)return I;var B;(B=e.J)==null||syc(B,L,c);I=Math;B=I.min;var x=e.G;if(x.T)if(x=x.T,x.rZ&&x.rZ.type===3)x=x.rZ.startTime;else if(x.Z>0){var S=x.X.index;S=g.l7(S.offsets.subarray(0,S.count),x.Z*x.chunkSize);x=x.X.index.getStartTime(S>=0?S:Math.max(0,-S-2))}else x=0;else x=Infinity;L=B.call(I,L,x);e.K=e.policy.h7?null:e.X.yE(L).bd[0];mm(e)&&(e.policy.xX&&(c==null?void 0:c.seekSource)===60||e.Py&&e.Py.abort(),e.policy.jw&&(c=e.J)!=null&&(c.Z=void 0)); e.Y9=0;return e.K?e.K.startTime:L}; bX6=function(e){e.T=!0;e.B=!0;e.j=-1;eE(e,Infinity)}; yb=function(e){for(var L=0,c=g.f(e.Z),I=c.next();!I.done;I=c.next())L+=glx(I.value.info);return L+=LXc(e.G)}; pJ=function(e,L){L=L===void 0?!1:L;var c=e.loader.getCurrentTime(),I=e.G.cD(),B=(I==null?void 0:I.info.j)||0;if((I==null?0:I.info.X.qn())&&!I.info.B)if(e.policy.L6)B=I.info.G;else if(e.policy.wX){var x=I.info;B=x.range?x.j:Math.min(x.startTime+Math.min(x.duration*x.K/x.X.info.r_,x.duration)+(x.range?x.J:Math.min(x.duration,x.duration*x.Z/x.X.info.r_)),x.startTime+x.duration)}if(!e.Py)return e.policy.X&&L&&!isNaN(c)&&I?B-c:0;if((x=Ju(e))&&Zc(x))return x.j;var S=e.Py.rq(!0);if(L&&I)return x=0,e.policy.X&& (x=XG(S,B+.02)),x+B-c;L=XG(S,c);e.policy.Bk&&x&&(I=P1(S,c),S=P1(S,x.G-.02),I===S&&(c=x.j-c,e.policy.Z&&c>L+.02&&e.sW("abh",{bh:L,bhtls:c}),L=Math.max(L,c)));return L}; M8$=function(e){var L=Ju(e);return L?L.j-e.loader.getCurrentTime():0}; z16=function(e,L){if(e.Z.length){if(e.Z[0].info.bd[0].startTime<=L)return;Kr(e)}for(var c=e.G,I=c.K.length-1;I>=0;I--)c.K[I].info.startTime>L&&c.K.pop();qhf(e);e.K&&L=0;S--){var h=B.K[S];h.info.ud>=L&&(B.K.pop(),B.Z-=sY(h,B.policy.Cf),x=h.info)}x&&(B.G=B.K.length>0?B.K[B.K.length-1].info:B.Pe,B.K.length!==0||B.G||bz(B,"r"));B.loader.sW("mdstm",{rollbk:1,itag:x?x.X.info.itag:"",popped:x?x.ud:-1,sq:L,lastslc:B.G?B.G.ud:-1,lastfraget:B.Z.toFixed(3)});if(e.policy.X)return e.K=null,!0;I>c?eE(e,I):e.K=e.X.HH(L-1,!1).bd[0]}catch(R){return L=uy(R),L.details.reason="rollbkerr", e.loader.handleError(L.errorCode,L.details,L.severity),!1}return!0}; Hi=function(e,L){var c;for(c=0;c0?c||L.ud>=e.Ve:c}; lz=function(e){var L;return mm(e)||Zc((L=e.G.cD())==null?void 0:L.info)}; Nf=function(e){var L=[],c=Ju(e);c&&L.push(c);L=g.Jw(L,e.G.b9());c=g.f(e.Z);for(var I=c.next();!I.done;I=c.next()){I=I.value;for(var B=g.f(I.info.bd),x=B.next(),S={};!x.done;S={WP:void 0},x=B.next())S.WP=x.value,I.GM&&(L=g.ig(L,function(h){return function(R){return!in$(R,h.WP)}}(S))),(UH(S.WP)||S.WP.type===4)&&L.push(S.WP)}e.K&&!Wrx(e.K,g.zL(L),e.K.X.g7())&&L.push(e.K); return L}; T$c=function(e,L){if(!e.length)return!1;for(L+=1;L=L){L=x;break a}}L=B}return L<0?NaN:T$c(e,c?L:0)?e[L].startTime:NaN}; Pi=function(e){return!(!e.K||e.K.X===e.X)}; sln=function(e){return Pi(e)&&e.X.Y4()&&e.K.X.info.r_L&&e.j1080&&!e.Tf&&(e.Y9=36700160,e.Sl=5242880,e.t7=Math.max(4194304,e.t7),e.Tf=!0);L.video.qualityOrdinal>2160&&!e.cK&&(e.Y9=104857600,e.r_=13107200,e.cK=!0);g.X3(e.UW.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?L.isEncrypted()&&g.m2()&&g.aC("samsung")&&(g.aC("kant")||g.aC("muse"))&&(e.r_=g.X3(e.UW.experiments,"html5_samsung_kant_limit_max_bitrate")):L.isEncrypted()&&g.m2()&&g.aC("kant")&&(e.r_=1310720);e.u9!==0&&L.isEncrypted()&& (e.r_=e.u9);e.Wh!==0&&L.isEncrypted()&&c&&(e.r_=e.Wh);L.r_&&(e.FS=Math.max(e.sE,Math.min(e.t7,5*L.r_)))}; gC=function(e){return e.X&&e.ej}; XK=function(e){return e.X&&e.kN&&e.playbackStartPolicy}; KJ=function(e,L,c,I){e.kN&&(e.playbackStartPolicy=L,e.Xn=c,e.D5=I)}; Ei=function(e,L,c){c=c===void 0?0:c;return g.X3(e.UW.experiments,L)||c}; V8f=function(e){var L=e===void 0?{}:e;e=L.VB;var c=L.U9;var I=L.WR;var B=L.Aw;L=L.uW;this.VB=e;this.U9=c;this.WR=I;this.Aw=B;this.uW=L}; mBc=function(e,L){if(L<0)return!0;var c=e.Aw();return L0)return 2;if(L<0)return 1;c=e.Aw();return L(0,g.zI)()?0:1}; nJ=function(e,L,c,I,B,x,S,h,R,u,t,O,q,T){T=T===void 0?null:T;g.p.call(this);var W=this;this.loader=e;this.policy=L;this.videoTrack=c;this.audioTrack=I;this.G=B;this.X=x;this.timing=S;this.B=h;this.schedule=R;this.w_=u;this.Z=t;this.pS=O;this.KZ=q;this.MS=T;this.h7=!1;this.Za="";this.d$=null;this.Bg=NaN;this.Gm=!1;this.K=null;this.gM=this.D=NaN;this.VT=this.j=0;this.logger=new g.tB("dash");this.kx={JC:function(A,b){return W.JC(A,b)}}; this.policy.R0>0&&(this.Za=g.Rp(this.policy.R0));this.policy.Kp&&(this.J=new YD(this.loader,this.policy,this.schedule),g.l(this,this.J))}; yb$=function(e,L,c){var I=L.K?L.K.X.V5:L.X.V5;var B=e.G,x;(x=!e.policy.Kv)||(x=pX(I.X)===pX(I.K));x?I=!1:(B=Cw(B,pX(I.K)),x=6E4*Math.pow(B.G,1.6),(0,g.zI)()=B.G?(B.sW("sdai",{haltrq:x+1,est:B.G}),I=!1):I=B.K!==2;if(!I||!ZE(L.K?L.K.X.V5:L.X.V5,e.policy,e.G,e.loader.W3())||e.loader.isSuspended&&(!j8(e.schedule)||e.loader.j_))return!1;if(e.policy.G&&n8>=5)return g.HT(e.loader.WF),!1;if(e.w_.isManifestless){if(L.Z.length>0&&L.K&&L.K.ud===-1||L.Z.length>=e.policy.E5||!e.policy.fI&&L.Z.length>0&&!e.policy.T.U9)return!1;if(L.T)return!e.w_.isLive|| !isNaN(e.Bg)}if(blM(L))return e.logger.debug("Pending request with server-selectable format found"),!1;if(!L.K){if(!L.X.Y4())return!1;eE(L,e.loader.getCurrentTime())}if(BD(L)&&(L.cD()!==BD(L)||e.loader.isSuspended))return!1;B=(I=e.policy.q3)&&!L.Z.length&&pJ(L,!0)=e.policy.Xy)return!1;I=L.K;if(!I)return!0;I.type===4&&I.X.Y4()&&(L.K=g.zL(I.X.qf(I)),I= L.K);if(!I.C2()&&!I.X.nw(I))return!1;x=e.w_.tq||e.w_.G;if(e.w_.isManifestless&&x){x=L.X.index.Aw();var S=c.X.index.Aw();x=Math.min(x,S);if(L.X.index.kR()>0&&x>0&&I.ud>=x)return L.Ve=x,c.Ve=x,!1}if(I.X.info.audio&&I.type===4||I.C2())return!1;x=!L.B&&!c.B;if(B=!B)B=I.j,B=!!(c.K&&!Zc(c.K)&&c.K.jZlJ(e,L)?(ZlJ(e,L),!1):(e=L.Py)&&e.isLocked()?!1:!0}; ZlJ=function(e,L){var c=e.X;c=c.X?c.X.u0:null;if(e.policy.k9&&c)return c.startSecs+c.jW+15;L=nr(e.loader,L);e.policy.Kf>0&&(c=((0,g.zI)()-e.loader.Ln)/1E3,L=Math.min(L,e.policy.Kf+e.policy.CX*c));L=e.loader.getCurrentTime()+L;return e.policy.yR&&(c=prv(e.loader)+e.policy.yR,c=0||L.V5.Xv("defrag")==="1"||L.V5.Xv("otf")==="1"){L=null;break a}B=l$(0,4096)}B=new nw([new QC(5,I.X,B,"createProbeRequestInfo"+I.T,I.ud)],L.K);B.p6=c;B.X=L.X;L=B}L&&LI(e,L)}}; LI=function(e,L){e.loader.DI(L);var c=glx(L),I=e.loader.zD();c={qw:e.schedule,uq:c,j8:tCx(e.B,c),Wt:d3(L.bd[0]),d9:$0(L.V5.X),Th:e.policy.Z,M$:function(S,h){e.loader.Ur(S,h)}}; if(e.schedule.K.j){var B,x;c.nB=(((B=e.videoTrack.X)==null?void 0:B.info.r_)||0)+(((x=e.audioTrack.X)==null?void 0:x.info.r_)||0)}e.d$&&(c.ud=L.bd[0].ud,c.Bg=L.Bg,c.d$=e.d$);I={Ly:knc(L,e.loader.getCurrentTime()),LW:e.policy.Cj&&Lk(L)&&L.bd[0].X.info.video?gZc(e.Z):void 0,pL:e.policy.k9,poToken:e.loader.vt(),nA:e.loader.vj(),Za:e.Za,gM:isNaN(e.gM)?null:e.gM,MS:e.MS,KZ:e.KZ,VT:e.VT,bJ:I};return new X4(e.policy,L,c,e.G,function(S,h){try{a:{var R=S.info.bd[0].X,u=R.info.video?e.videoTrack:e.audioTrack; if(!(S.state>=2)||S.isComplete()||S.yg()||!(!e.loader.g_||e.loader.isSuspended||pJ(u)>3)){var t=N$$(S,e.policy,e.G);t===1&&(e.Gm=!0);$XR(e,S,t);if(S.isComplete()||S.We()&&h<3){if(e.policy.Z){var O=S.timing.ZS();O.rst=S.state;O.strm=S.xhr.fq();O.cncl=S.xhr&&S.u4.G?1:0;e.loader.sW("rqs",O)}S.nF&&e.loader.sW("sbwe3",{},!0)}if(!e.We()&&S.state>=2){Kov(e.timing,S,R);var q=e.loader;e.gM&&S.fv&&q&&(e.gM=NaN,e.loader.cV(S.fv),e.loader.t4(),e.loader.sW("cabrUtcSeek",{mediaTimeSeconds:S.fv}));S.VK&&e.gM&&S.VK&& !S.VK.action&&(e.loader.Dy(e.gM),e.gM=NaN,e.loader.sW("cabrUtcSeekFallback",{targetUtcTimeSeconds:e.gM}));S.A8&&e.loader.jL(S.A8);e.policy.g0&&(e.VT=S.VT);if(S.state===3){Hi(u,S);Lk(S.info)&&Ia(e,u,R,!0);if(e.K){var T=S.info.Ca();T&&e.K.yB(S.info.bd[0].ud,R.info.id,T)}e.loader.Bd()}else if(S.isComplete()&&S.info.bd[0].type===5){if(S.state!==4)S.J1()&&e.loader.handleError(S.n1(),S.mL());else{var W=(S.info.bd[0].X.info.video?e.videoTrack:e.audioTrack).Z[0]||null;W&&W instanceof X4&&W.yg()&&W.iG()}S.dispose()}else{S.J1()|| jl6(e,S);var A;((A=S.Tj)==null?0:A.itagDenylist)&&e.loader.QJ(S.Tj.itagDenylist);if(S.state===4)B5(e,S),e.X&&cBM(e.X,S.info,e.K);else if(e.policy.Sj&&S.lC()&&!S.isComplete()&&!B5(e,S)&&!S.J1())break a;S.J1()&&(HlH(e,S),isNaN(e.gM)||(e.loader.Dy(e.gM),e.gM=NaN));e.policy.Q5&&!S.isComplete()?xo(e.loader):e.loader.Bd();var b=mXc(S,e.policy,e.G);$XR(e,S,b)}}}}}catch(J){h=e.h7?1:0,e.h7=!0,S=RK(h),h=uy(J,h),e.loader.handleError(h.errorCode,h.details,h.severity),S||e.loader.fp()}},I)}; jl6=function(e,L){if(L.Nn&&L.state>=2&&L.state!==3){var c=L.xhr.getResponseHeader("X-Response-Itag");if(c){e.logger.debug(function(){return"Applying streamer-selected format "+c}); var I=G6n(e.Z,c),B=L.info.Z;B&&(B-=I.CQ(),I.Z=!0,L.info.bd[0].X.Z=!1,iwf(L,I.Wm(B)),oa(e.loader,e.videoTrack,I),ilJ(e.videoTrack,I),e.loader.UL(I.info.video.quality),(B=L.lK())&&I.info.lastModified&&I.info.lastModified!==+B&&Hi(e.videoTrack,L))}else L.Nn=!1}}; HlH=function(e,L){var c=L.info.bd[0].X,I=L.n1();if($0(c.V5.X)){var B=g.gR(L.Ku(),3);e.loader.sW("dldbrerr",{em:B||"none"})}B=L.info.bd[0].ud;var x=US(e.X,L.info.bd[0].G,B);I==="net.badstatus"&&(e.j+=1);if(L.canRetry()&&Sx(e.loader)){if(!(L.info.V5.Z>=e.policy.uV&&e.K&&L.info.isDecorated()&&I==="net.badstatus"&&e.K.jg(x,B))){B=(c.info.video&&c.V5.Z>1||L.Fc===410||L.Fc===500||L.Fc===503)&&!(en(e.Z.B).size>0)&&!$0(c.V5.X);x=L.mL();var S=c.info.video?e.videoTrack:e.audioTrack;B&&(x.stun="1");e.loader.handleError(I, x);e.We()||(B&&(e.logger.debug(function(){return"Stunning format "+c.info.id}),oY(e.Z,c)),Hi(S,L),e.loader.Bd())}}else S=1,e.K&&L.info.isDecorated()&&I==="net.badstatus"&&e.K.jg(x,B)&&(S=0),e.w_.isLive&&L.n1()==="net.badstatus"&&e.j<=e.policy.Hv*2?(Ccx(e.w_),e.w_.tq||e.w_.isPremiere?Ic(e.loader,0,{Ww:"badStatusWorkaround"}):e.w_.G?Ic(e.loader,e.w_.k9,{Ww:"badStatusWorkaround", y6:!0}):rP(e.loader)):e.loader.handleError(I,L.mL(),S)}; B5=function(e,L){if(e.policy.useUmp&&L.We())return!1;try{var c=L.info.bd[0].X,I=c.info.video?e.videoTrack:e.audioTrack;if(e.w_.isManifestless&&I){e.j=0;I.T&&(L.We(),L.isComplete()||L.lC(),I.T=!1);L.BO()&&e.loader.oR.lE(1,L.BO());var B=L.kR(),x=L.P9();H6(e.w_,B,x)}if(L.info.Wt()&&!e6(L.info))for(var S=g.f(L.r$()),h=S.next();!h.done;h=S.next())OlT(I,h.value);for(e.loader.getCurrentTime();I.Z.length&&I.Z[0].state===4;){var R=I.Z.shift();t8x(I,R);I.t7=R.y_()}I.Z.length&&t8x(I,I.Z[0]);var u=!!BD(I);u&& L instanceof E4&&(c.info.Cu()?lEc(e.timing):Hwc(e.timing));return u}catch(t){L=L.mL();L.origin="hrhs";a:{e=e.loader;c=t;if(c instanceof Error){L.msg||(L.msg=""+c.message);L.name||(L.name=""+c.name);if(c instanceof g.yu&&c.args)for(I=g.f(Object.entries(c.args)),B=I.next();!B.done;B=I.next())x=g.f(B.value),B=x.next().value,x=x.next().value,L["arg"+B]=""+x;g.F7(c);if(c.level==="WARNING"){e.zm.pR(L);break a}}e.handleError("fmt.unplayable",L,1)}return!1}}; lzc=function(e){var L=e.videoTrack.X.index;e.d$=new V8f({VB:e.policy.VB,U9:e.policy.T.U9,WR:L.wl(),Aw:function(){return L.Aw()}, uW:function(){return L.uW()}})}; Ia=function(e,L,c,I){if(!(c.Y4()||c.jN()||c.Z||!ZE(c.V5,e.policy,e.G,e.loader.W3())||c.info.EW==="f"||e.policy.X)){if(I){I=e.B;var B=c.info;I=OXn(I,B.video?I.policy.O3:I.policy.KX,B.r_)}else I=0;I=c.Wm(I);e=LI(e,I);e6(I)&&Vb(L,e);c.Z=!0}}; hr=function(e,L,c,I,B,x,S,h){g.p.call(this);var R=this;this.loader=e;this.Dg=L;this.videoTrack=c;this.audioTrack=I;this.w_=B;this.D=x;this.isAudioOnly=S;this.J=h;this.K=h1;this.Gm=!1;this.logger=new g.tB("sabr");this.T=this.h7=this.pS=!1;this.videoInfos=this.j=this.D.videoInfos;this.Z=this.k9=this.D.X;this.X=new Yk(L,x,function(u,t){R.loader.sW(u,t)}); this.isAudioOnly&&PCn(this,this.w_.X["0"])}; Ql$=function(e,L){var c=[];L=g.f(L);for(var I=L.next();!I.done;I=L.next())c.push(g.mr(I.value,e.w_.Wy));return c}; PCn=function(e,L,c){L!==e.G&&(e.G&&(e.Gm=!0),e.G=L,e.AQ(L,e.videoTrack,c))}; Eyn=function(e,L){e.logger.debug("setConstraint: "+bJ(L));gC(e.Dg)&&(e.h7=L.reason==="m"||L.reason==="l"?!0:!1);L.reason==="m"?L.isLocked()&&dXT(e,L.X):UXM(e,L)?Ra(e,L.K,L.X):e.videoInfos=e.j;e.K=L}; UXM=function(e,L){return e.Dg.DM&&L.reason==="b"||e.Dg.Au&&L.reason==="l"||e.Dg.Zd?!1:e.Dg.sz?!0:L.reason==="l"||L.reason==="b"||L.reason==="o"}; XrH=function(e,L){return L.isLocked()&&e.X.K||e.K===void 0?!1:L.equals(e.K)}; KXM=function(e,L){var c,I=(c=e.G)==null?void 0:c.info.video.qualityOrdinal;return e.Gm?!0:e.G?L!==I?!0:!e.X.K||e.Dg.mR&&e.X.X===e.G.info.itag?!1:!0:!1}; dXT=function(e,L){var c=e.X.X;if(c){e.videoInfos=e.j;var I=g.vU(e.videoInfos,function(B){return B.id===c}); I&&I.video.qualityOrdinal===L?e.videoInfos=[I]:(I=e.videoInfos.map(function(B){return B.id}),e.loader.sW("sabrpf",{pfid:""+c, vfids:""+I.join(".")}),Ra(e,L,L),LJ(e.X,""))}else Ra(e,L,L)}; Ra=function(e,L,c){e.videoInfos=e.j;e.videoInfos=g.ig(e.videoInfos,function(I){return I.video.qualityOrdinal>=L&&I.video.qualityOrdinal<=c})}; YhM=function(e,L,c){if(e.J){var I=g.ig(e.Z,function(B){return B.id===e.J}); return D6(I,c).includes(L)}I=g.ig(e.Z,function(B){var x;return!((x=B.l5)==null||!x.isDefault)}); return I.length>0?D6(I,c).includes(L):D6(e.Z,c).includes(L)}; D6=function(e,L){return e.map(function(c){return pw(g.mr(c,L))})}; ny$=function(e){var L;if((L=e.K)==null?0:L.isLocked())return e.videoInfos;var c=en(e.X);L=g.ig(e.videoInfos,function(I){return I.r_>e.Dg.r_?!1:!c.has(I.id)}); rBc(e.X)&&(L=g.ig(L,function(I){return I.video.width<=854&&I.video.height<=480})); return L}; LSR=function(e,L,c){var I=e.w_,B=e.zm.getVideoData(),x=e.Fq,S=s5v({UW:B.S(),zm:e.zm,qA:e.qA,Dg:e.Dg,LP:e.LP,cG:e.cG,Ef:e.Ef,T$:e.T$,PD:e.PD,isPrefetch:e.isPrefetch,CN:e.CN,sabrLicenseConstraint:B.sabrLicenseConstraint,IL:e.IL,rb:e.rb,VW:e.VW,kD:e.kD,pE:!!x,authorizedFormats:B.authorizedFormats}),h=kk(B,e.bJ,e.nextRequestPolicy,e.YH,e.Xq,e.NN,e.ez);c&&L&&(c=h.U3?h.U3.map(function(O){return O.type}):[],L("sabr",{stmctxt:c.join("_"), unsntctxt:h.d1?h.d1.join("_"):""}));L=e.gr;c=e.JM;if(c===void 0&&L===void 0){var R;c=etn(I.Wy,(R=e.Ou)==null?void 0:R.video);var u;L=etn(I.Wy,(u=e.Ou)==null?void 0:u.audio)}if(B.MS)var t=B.MS;B={Dz:S,fB:e.fB,gr:L,JM:c,Fq:x,videoPlaybackUstreamerConfig:t,z7:h};e.fV&&(B.fV=e.fV);B.p9=e.p9;B.KJ=I.He;return B}; etn=function(e,L){return L?[g.mr(L.info,e)]:[]}; wP=function(e,L,c){var I=this;this.requestType=e;this.V5=L;this.UY=c;this.K=null;this.kx={ood:function(){var B;return(B=I.data)==null?void 0:B.isPrefetch}, Xq:function(){var B;return(B=I.data)==null?void 0:B.Xq}}}; Zwc=function(e,L,c){L=mo(e.V5,coM(e,L,c),L);e.Ab()&&L.set("probe","1");return L}; coM=function(e,L,c){e.p6===void 0&&(e.p6=e.V5.p6(L,c));return e.p6}; Ikn=function(e){var L,c;return((L=e.X)==null?void 0:(c=L.Dz)==null?void 0:c.Pa)||0}; Bbx=function(e){var L,c;return!!((L=e.X)==null?0:(c=L.Dz)==null?0:c.IL)}; xuM=function(e){var L={},c=[],I=[];if(!e.data)return L;for(var B=0;B0;R--)c.push(h)}c.length!==S?L.error=!0:(x=c.slice(-x),c.length=B,Mbv(L,c,x));break;case 1:Mbv(L,pI,$o);break;case 0:Uw(L, L.X&7);c=Q9(L,16);B=Q9(L,16);(c^B)!==65535&&(L.error=!0);L.output.set(L.data.subarray(L.K,L.K+c),L.Z);L.K+=c;L.Z+=c;break;default:L.error=!0}e.Z>e.output.length&&(e.output=new Uint8Array(e.Z*2),e.Z=0,e.K=0,e.G=!1,e.X=0,e.register=0)}e.output.length!==e.Z&&(e.output=e.output.subarray(0,e.Z));return e.error?new Uint8Array(0):e.output}; Mbv=function(e,L,c){L=dP(L);c=dP(c);for(var I=e.data,B=e.output,x=e.Z,S=e.register,h=e.X,R=e.K;;){if(h<15){if(R>I.length){e.error=!0;break}S|=(I[R+1]<<8)+I[R]<>=7;u<0;)u=L[(S&1)-u],S>>=1;else S>>=u&15;h-=u&15;u>>=4;if(u<256)B[x++]=u;else if(e.register=S,e.X=h,e.K=R,u>256){S=H5[u];S+=Q9(e,jx[u]);R=WSH(e,c);h=P5[R];h+=Q9(e,lW[R]);if(sDJ&&Sc.length&&(e.error=!0);e.register|=(c[I+1]<<8)+c[I]<=0)return Uw(e,c&15),c>>4;for(Uw(e,7);c<0;)c=L[Q9(e,1)-c];return c>>4}; Q9=function(e,L){for(;e.X=e.data.length)return e.error=!0,0;e.register|=e.data[e.K++]<>=L;e.X-=L;return c}; Uw=function(e,L){e.X-=L;e.register>>=L}; dP=function(e){for(var L=[],c=g.f(e),I=c.next();!I.done;I=c.next())I=I.value,L[I]||(L[I]=0),L[I]++;var B=L[0]=0;c=[];var x=0;I=0;for(var S=1;S7&&(x+=L[S]);for(B=1;B>R&1;h=x<<4|S;if(S<=7)for(R=1<<7-S;R--;)I[R<>=7;S--;){I[R]||(I[R]=-L,L+=2);var u=B&1;B>>=1;R=u-I[R]}I[R]=h}}return I}; fk$=function(e){var L,c,I,B,x,S,h,R,u;return g.Z(function(t){switch(t.K){case 1:if(!vYr)throw Error("DecompressionStream is not supported");L=FB.Da();c=new DecompressionStream("gzip");I=c.writable.getWriter();I.write(e);I.close();B=c.readable.getReader();x=new ej([]);case 2:return g.a(t,B.read(),5);case 5:S=t.X;h=S.value;if(R=S.done){t.Iq(4);break}x.append(h);t.Iq(2);break;case 4:return u=xj(x),FB.cj("gznb",L,Math.ceil(u.byteLength/16)),t.return(u)}})}; Ao6=function(e){J6.call(this,"onesie");this.oI=e;this.X={};this.G=!0;this.Z=null;this.queue=new mq(this);this.B={}}; FSn=function(e){var L=e.queue;L.X.length&&L.X[0].isEncrypted&&!L.K&&(L.X.length=0);L=g.f(Object.keys(e.X));for(var c=L.next();!c.done;c=L.next()){c=c.value;var I=e.X[c];if(!I.Is){var B=e.queue;B.X.push({videoId:I.videoId,formatId:c,isEncrypted:!1});B.K||Z6(B)}}}; b8c=function(e,L){var c=L.totalLength,I=!1;switch(e.Z){case 0:e.pk(L,e.G).then(function(B){var x=e.oI;x.n9("oprr");x.playerResponse=B;x.Zs||(x.wr=!1);Ew(x)},function(B){e.oI.fail(B)}); break;case 2:e.n9("ormk");L=xj(L);e.queue.decrypt(L);break;default:I=!0}e.oI.MZ&&e.oI.sW("ombup","id.11;pt."+e.Z+";len."+c+(I?";ignored.1":""));e.Z=null}; i8v=function(e,L){var c,I,B,x,S;return g.Z(function(h){switch(h.K){case 1:e.oI.n9("oprgz_s");if(!vYr){h.Iq(2);break}g.bn(h,3);return g.a(h,fk$(L),5);case 5:return c=h.X,e.oI.n9("oprgz_n"),h.return(c);case 3:I=g.wc(h),e.oI.sW("gzerr",{impl:"native",err:""+I});case 2:if(B=e.oI.S().pB)try{var R=FB.Da(),u=B.Zv(L),t=B,O=u!=null?u:L,q=O.byteOffset,T=O.byteLength,W=t.exports.getInflatedSize(q,T);if(W===0)throw Error("wasm_gz: bad input");var A=t.malloc(W),b=t.exports.inflateGzip(q,T,A);if(b)throw t.free(A), Error("wasm_gz: fail"+b);var J=new Uint8Array(t.exports.memory.buffer,A,W);u&&B.free(u.byteOffset);var w=B.uL(J);FB.cj("gzwb",R,Math.ceil(w.byteLength/16));x=w;e.oI.n9("oprgz_w");return h.return(x)}catch(C){e.oI.sW("gzerr",{impl:"wasm",err:""+C})}R=FB.Da();u=g.ztn(new g.qjx(L));FB.cj("gzjb",R,Math.ceil(u.byteLength/16));S=u;e.oI.n9("oprgz_p");return h.return(S)}})}; G3H=function(e){return new Promise(function(L){setTimeout(L,e)})}; gYM=function(e,L){var c=e.S();c=e.kN&&c.Y("html5_onesie_preload_use_content_owner");var I=e.Iu,B=qX(L.XM.experiments,"debug_bandaid_hostname");if(B)L=CI(L,B);else if((c===void 0?0:c)&&(I==null?0:I.url)&&!L.K){var x=pX(new g.yp(I.url));L=CI(L,x)}else L=(x=L.X.get(0))==null?void 0:x.location.clone();if(L&&e.videoId){x=Go(e.videoId);e=[];if(x)for(x=g.f(x),c=x.next();!c.done;c=x.next())e.push(c.value.toString(16).padStart(2,"0"));L.set("id",e.join(""));return L}}; k3c=function(e,L,c){c=c===void 0?0:c;var I,B;return g.Z(function(x){if(x.K==1)return I=[],I.push(L.load()),c>0&&I.push(G3H(c)),g.a(x,Promise.race(I),2);B=gYM(e,L);return x.return(B)})}; Dux=function(e,L,c,I){I=I===void 0?!1:I;e.set("cpn",L.clientPlaybackNonce);e.set("opr","1");var B=L.S();e.set("por","1");xm()||e.set("onem","1");L.startSeconds>0&&e.set("osts",""+L.startSeconds);I||(B.Y("html5_onesie_disable_partial_segments")&&e.set("oses","1"),L=B.Y("html5_gapless_onesie_no_media_bytes")&&A1(L)&&L.kN,c&&!L?(L=c.audio,e.set("pvi",c.video.join(",")),B.Y("html5_onesie_disable_audio_bytes")||e.set("pai",L.join(",")),Oh||e.set("osh","1")):(e.set("oad","0"),e.set("ovd","0"),e.set("oaad", "0"),e.set("oavd","0")))}; wnn=function(e,L,c,I,B){B=B===void 0?!1:B;var x="https://youtubei.googleapis.com/youtubei/"+L.L6.innertubeApiVersion+"/player",S=[{name:"Content-Type",value:"application/json"}];I&&S.push({name:"Authorization",value:"Bearer "+I});S.push({name:"User-Agent",value:g.yc()});g.Zu("EOM_VISITOR_DATA")?S.push({name:"X-Goog-EOM-Visitor-Id",value:g.Zu("EOM_VISITOR_DATA")}):(c=c.visitorData||g.Zu("VISITOR_DATA"))&&S.push({name:"X-Goog-Visitor-Id",value:c});(c=g.Zu("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&S.push({name:"X-YouTube-Lava-Device-Context", value:c});(L=qX(L.experiments,"debug_sherlog_username"))&&S.push({name:"X-Youtube-Sherlog-Username",value:L});e=qR(JSON.stringify(e));return{url:x,kH:S,postBody:e,n0d:B,Er:B}}; JoR=function(e,L,c,I,B,x,S){var h=e.Km,R=e.tV;e=e.Mkw;var u=h!==void 0&&R!==void 0,t=I.getVideoData(),O,q=L.X.encryptedClientKey;L=u?L.iv:void 0;u=$y(c.schedule,!0);B=B||!!xm()&&u>1572864;return{innertubeRequest:{o4$:e,mC:h,tV:R,encryptedClientKey:q,iv:L,WF$:!0,QC:!0,sN:"DecompressionStream"in window||!B,ljM:c.experiments.N0("html5_use_jsonformatter_to_parse_player_response")},Dz:s5v({UW:c,zm:I,qA:t.startSeconds*1E3}),onesieUstreamerConfig:x,L8:S,z7:kk(t),reloadPlaybackParams:(O=t.je)==null?void 0: O.reloadPlaybackParams}}; Vbx=function(e,L,c,I,B,x){var S=g.Pl(e,OCT),h;if(!e.Er){(0,g.zI)();if((h=L.X.B)==null)var R=void 0;else a:{var u=L.iv;try{var t=zJc(h,S,u),O=h.X.Zv(u),q=h.X,T=h.G,W=new Uint8Array(q.exports.memory.buffer,q.malloc(32),32);q.exports.Sha256Hmac(T.byteOffset,T.byteLength,O.byteOffset,O.byteLength,t.byteOffset,t.byteLength,W.byteOffset);h.X.free(O.byteOffset);R={Hn:h.X.uL(t),signature:h.X.uL(W)};break a}catch(A){g.F7(Error("ocwceas: wasm encryptAndSign failed: "+A))}R=void 0}R?(h=R.Hn,u=R.signature):(R= h=L.encrypt(S),(0,g.zI)(),u=xcc(new Bic(L.X.K),R,L.iv))}return JoR(h&&u?{Km:h,tV:u}:{Mkw:S},L,c,I,!!e.Er,B,x)}; Cjn=function(e,L,c,I,B,x){var S,h,R;return g.Z(function(u){if(u.K==1)return S=g.Pl(e,OCT),g.a(u,oYT(L,S),2);if(u.K!=3)return h=u.X,g.a(u,Sjv(L,h),3);R=u.X;return u.return(JoR({Km:h,tV:R},L,c,I,!!e.Er,B,x))})}; KI=function(e,L){g.p.call(this);var c=this;this.zm=e;this.playerRequest=L;this.logger=new g.tB("onesie");this.xhr=null;this.state=1;this.QT=new Ri;this.B8=!1;this.playerResponse="";this.pV=new uZ(this);this.Q0=new Ao6(this);this.YG="";this.AV=this.dJ=!1;this.VG="";this.enableCompression=this.Zs=this.eN=!1;this.s4=[];this.EC=-1;this.yH=0;this.XM=this.zm.S();this.videoData=this.zm.getVideoData();this.MZ=this.XM.oT();this.gU=this.XM.RI;this.L5=new Jr(this.gU.X);this.u$=this.XM.Y("html5_onesie_check_timeout"); this.Z7=new g.j9(this.lN,500,this);this.md=new g.j9(this.Kn,1E4,this);this.i8=new g.j9(function(){if(!c.isComplete()){var I=Xs(c);c.fail(new g.hQ("net.timeout",I))}},1E3); this.Qq=new g.j9(this.Hp,2E3,this);this.iq=this.zm.vj();this.wr=this.Y("html5_onesie_wait_for_media_availability");g.l(this.videoData,this);g.l(this,this.Z7);g.l(this,this.md);g.l(this,this.Qq);e=Wr();Oh&&e&&(this.ek=new Map);this.TQ=new Map;this.fh=new Map;this.Tu=new Map;this.KQ=new Map}; y9=function(e,L){var c;return(c=e.ek)==null?void 0:c.get(L)}; Nbc=function(e,L,c){var I;return g.Z(function(B){if(B.K==1)return e.n9("oprd_s"),akc(e)?g.a(B,roc(e.L5,L,c),3):(I=e.L5.decrypt(L,c),B.Iq(2));B.K!=2&&(I=B.X);e.n9("oprd_c");return B.return(I)})}; muH=function(e){return e.Y("html5_onesie_host_probing")||e.MZ?Oh:!1}; Ew=function(e){if(!e.playerResponse)return!1;if(e.eN)return!0;var L=e.videoData.Y("html5_onesie_audio_only_playback")&&FU(e.videoData);if(e.ek&&e.wr){if(!e.ek.has(e.YG))return!1;var c=e.ek.get(e.YG),I;if(I=c){I=!1;for(var B=g.f(c.C9.keys()),x=B.next();!x.done;x=B.next())if(x=c.C9.get(x.value))for(var S=g.f(x.jR),h=S.next();!h.done;h=S.next())h.value.kt>0&&(x.Cu?I=!0:L=!0);I=!(L&&I)}if(I)return!1}e.n9("ofr");e.QT.resolve(e.playerResponse);if(!e.u$){var R;(R=e.i8)==null||R.start();e.md.start()}return e.eN= !0}; Z8R=function(e){if(e.ek&&!e.Y("html5_onesie_media_capabilities")){e.n9("ogsf_s");var L=tJf(e.zm.getVideoData(),function(I,B){e.sW(I,B)}),c=yo6(e.zm); L.video=IET(c,L.video);e.n9("ogsf_c");if(L.video.length)return L;e.sW("ombspf","l."+c.K+";u."+c.X+";o."+c.Z+";r."+c.reason)}}; akc=function(e,L){return e.Y("html5_onesie_sync_request_encryption")||(L==null?0:L.Er)||g.z3(e.XM)&&e.Y("html5_embed_onesie_use_sync_encryption")?!1:!!xm()}; Xs=function(e){if(!e.r0)return{};var L=e.r0.ZS(),c;L.d=(c=e.r0.Ve)==null?void 0:c.sV();L.shost=e.vl;L.ty="o";return L}; pnn=function(e,L){var c,I;(I=(e=(c=e.ek)==null?void 0:c.get(L))==null)||(L=e.Z?!1:e.Z=!0,I=!L);return!I}; $ux=function(e,L,c,I,B,x,S,h,R,u,t){g.p.call(this);var O=this;this.zm=e;this.loader=L;this.policy=c;this.audioTrack=I;this.videoTrack=B;this.w_=x;this.qw=S;this.d_=h;this.Z=R;this.timing=u;this.pS=t;this.X=[];this.B={};this.Pe=this.m$=!1;this.G=this.t7=this.D=this.He=this.PD=0;this.J=null;this.Gm={p9:[],fB:[]};this.k9={p9:[],fB:[]};this.T=null;this.j=[];this.kx={r8S:function(){return O.X}, uO9:function(){return O.B}, uIM:function(){O.X.length=0}, J8e:function(){return O.videoData.Sl}, CZM:function(){return O.D}, Ow_:function(q){O.D=q}, Q$9:function(q){O.G=q}, LF:function(q){O.T=q}, I6:function(q){O.j=q}}; this.videoData=this.zm.getVideoData();this.policy.Kp&&(this.ye=new YD(this.loader,this.policy,this.qw),g.l(this,this.ye))}; lkn=function(e,L){L=L===void 0?!1:L;if(jDn(e)){e.policy.j&&e.loader.sW("sabrcrq",{create:1});var c=new wP(0,e.w_.J,e);e.policy.OF>0&&e.G++;L=H8c(e,c,L);e.X.push(L);var I;(I=e.ye)==null||CCT(I,e.w_.J)}}; dun=function(e,L){var c=Pjv(e);if(e.policy.Ft){var I=e.Gm;var B=e.k9}else I=Yo(e,e.audioTrack),B=Yo(e,e.videoTrack);var x=[].concat(g.V(I.p9),g.V(B.p9));nI(e)&&x.push.apply(x,g.V(e.j));var S=[].concat(g.V(I.fB),g.V(B.fB)),h=e.loader.zD();if(e.policy.Zl&&!e.videoData.isLivePlayback){var R=e.videoData.lengthSeconds*1E3;c>=R&&e.loader.sW("invalidSabrCmt",{cmt:c,vd:R})}var u,t;R=e.zm;var O=e.w_,q=e.K,T=e.videoData.Sl,W=e.policy,A=e.loader.Ln,b=prv(e.loader)*1E3,J=(u=e.Ve)==null?void 0:u.Ef;u=(t=e.Ve)== null?void 0:t.T$;var w;t=Number((w=e.Z.G)==null?void 0:w.info.itag)||0;var C;w=Number((C=e.Z.B)==null?void 0:C.info.itag)||0;L={zm:R,w_:O,p9:x,fB:S,qA:c,nextRequestPolicy:q,YH:T,Dg:W,LP:A,cG:b,Ef:J,T$:u,PD:e.PD,isPrefetch:L||e.loader.isSuspended,uM:t,Ra:w,bJ:h,ez:e.zm.RB()};c=e.loader.vt();x=Go(c);c&&(L.Xq=x);if(c=e.zm.ww())L.IL=c*1E3;var y;c=e.Z;x=c.pS;if(((y=c.Dg)==null?0:gC(y))&&!x)for(y=g.f(c.Z),S=y.next();!S.done;S=y.next())if(S.value.l5){x=!0;break}y=gC(c.Dg)&&!x?[]:Ql$(c,c.Z);L.gr=y;y=e.Z; gC(y.Dg)&&!y.h7?y=[]:(c=ny$(y),c.length===0&&(c=y.j),y=Ql$(y,c));L.JM=y;L.Fq=nI(e)?[e.T]:void 0;e.policy.Ix&&(L.VW=QDf(e.loader,e.audioTrack),L.kD=QDf(e.loader,e.videoTrack));if(e.policy.K){y=e.loader.getCurrentTime();I=ek(e,I.p9,y);B=ek(e,B.p9,y);B=Math.min(I,B);nI(e)&&(I=ek(e,e.j,y),e.zm.oT()&&I0&&e.X[0].D_()&&(L.NN=e.X[0].Qu());return L}; Pjv=function(e){var L,c=e.policy.B&&((L=e.loader)==null?void 0:L.Sb());L=e.loader.getCurrentTime()||0;L=Uux(e,L);var I=e.loader.FF()||0;L+=I;I=d7(e.videoData)||g.QE(e.videoData);var B=0;c?(I&&(B=Number.MAX_SAFE_INTEGER),e.videoData.pS&&(B=Math.ceil(e.videoData.k9*1E3))):B=Math.ceil(L*1E3);return Math.min(Number.MAX_SAFE_INTEGER,B)}; nI=function(e){return e.policy.f9&&!!e.T}; Uux=function(e,L){if(e.loader.isSeeking())return L;var c=e.zm.Nw();if(!c)return L;c=c.im();if(c.length===0||Qd(c,L))return L;if(!dH(e.videoTrack,L)&&!dH(e.audioTrack,L))return e.loader.sW("sundrn",{b:0,lt:L}),L;for(var I=L,B=Infinity,x=0;xL)){var S=L-c.end(x);S=20)?(e.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),L):I}; ek=function(e,L,c){e=e.loader.FF()||0;return LO(L,(c+e)*1E3)/1E3+c}; jDn=function(e){if(e.policy.OF>0){var L=Math.floor((0,g.zI)()/1E4);if(L===e.t7){if(e.G>=e.policy.OF){if(e.G===e.policy.OF){var c={reason:"toomanyrequests"};c.limit=e.G;e.loader.handleError("player.exception",c);e.G+=1}return!1}}else e.t7=L,e.G=0}if(e.loader.isSuspended&&e.loader.j_)return!1;if(e.h7&&(0,g.zI)()0&&(!e.policy.D||e.X.length!==1||!e.X[0].D_()))return!1;var I;if(!(L=(I=e.w_.J)==null||!ZE(I,e.policy,e.B,e.loader.W3())||lz(e.audioTrack)&&lz(e.videoTrack))){if(I= e.policy.K){I=!1;if(e.pS.K===2)I=!0;else if(e.pS.K===3){Pjv(e);e.loader.FF();var B=aY(e.audioTrack,e.loader.isSeeking()).p9;L=aY(e.videoTrack,e.loader.isSeeking()).p9;var x=e.loader.getCurrentTime()||0;B=ek(e,B,x);L=ek(e,L,x);L=Math.min(B,L);x=e.pS;L>=x.B?(x.sW("sdai",{haltrq:L,est:x.B}),L=!0):L=!1;L&&(I=!0)}I&&e.policy.j&&e.loader.sW("sabrcrq",{waitad:1})}L=I}if(L)return!1;e.policy.Ft&&(e.Gm=Yo(e,e.audioTrack),e.k9=Yo(e,e.videoTrack));if(!e.K)return e.policy.j&&e.loader.sW("sabrcrq",{nopolicy:1}), !0;if(e.zm.ww())return e.policy.j&&e.loader.sW("sabrcrq",{utc:1}),!0;if(e.Z.T)return e.policy.j&&e.loader.sW("sabrcrq",{audio:1}),!0;if(!e.K.targetAudioReadaheadMs||!e.K.targetVideoReadaheadMs)return e.policy.j&&e.loader.sW("sabrcrq",{noreadahead:1}),!0;if(e.policy.B&&e.loader.Sb())return e.policy.j&&e.loader.sW("sabrcrq",{seekToHead:1}),!0;I=Math.min(nr(e.loader,e.audioTrack)*1E3,e.K.targetAudioReadaheadMs);L=Math.min(nr(e.loader,e.videoTrack)*1E3,e.K.targetVideoReadaheadMs);var S=Math.min(I,L); x=pJ(e.audioTrack,!0)*1E3;B=pJ(e.videoTrack,!0)*1E3;var h=e.zm.getCurrentTime()*1E3;if(e.policy.Ft){var R=LO(e.Gm.p9,h);var u=LO(e.k9.p9,h)}else R=x,u=B;var t=RL||I>=0&&B.E9>I+1)break;c=Math.max(c,B.startTimeMs+B.durationMs);I=Math.max(I,B.aO)}return Math.max(0,c-L)}; H8c=function(e,L,c){var I={qw:e.qw,M$:function(R,u){e.zm.Ur(R,u)}, Wt:e.policy.je,Th:e.policy.Z};e.qw.K.j&&(I.nB=(e.videoTrack.X.info.r_||0)+(e.audioTrack.X.info.r_||0));e.policy.pB&&(I.WR=e.audioTrack.X.index.wl(),I.Wt=!1);var B=coM(L,e.policy,e.B)?2:1;B!==e.D&&(e.D=B,XnH(e));c=dun(e,c);if(e.policy.D&&e.policy.Z&&c.YH){for(var x=B="",S=g.f(c.YH),h=S.next();!h.done;h=S.next())h=h.value,e.videoData.sabrContextUpdates.has(h)||e.policy.D&&c.NN&&c.NN.type===h?B+="_"+h:x+="_"+h;e.loader.sW("sabrbldrqs",{ctxts:B,misctxts:x})}!L.setData(c,e.policy,e.B)&&e.policy.D&&e.loader.handleError("player.exception", {reason:"buildsabrrequestdatafailed"},1);I=new $k(e.policy,L,e.w_,e.B,e,I,e.loader.vj());jE(e.timing);e.policy.j&&e.loader.sW("sabrcrq",{rn:I.MD(),probe:L.Ab()});return I}; I1=function(e,L){if(L.We()||e.We())e.policy.V6||(e.policy.B?cH(e.loader):e.loader.Bd());else{if(e.policy.Z&&L.isComplete()&&L instanceof $k){var c=e.loader,I=c.sW,B,x,S=Object.assign(L.r0.ZS(),{rst:L.state,strm:L.xhr.fq(),d:(B=L.r0.Ve)==null?void 0:B.sV(),cncl:L.xhr&&L.u4.G?1:0,rqb:L.Yc,cwt:L.eV,swt:(x=L.Af)==null?void 0:x.oA});B=Object.assign(xuM(L.info),S);I.call(c,"rqs",B)}if(L.isComplete()&&L.Ab()&&L instanceof $k)e.policy.xT?L.ir()?(L.dispose(),e.X.length===0?e.loader.Bd():(e=e.X[0],e instanceof $k&&e.yg()&&e.iG())):L.J1()&&e.loader.handleError(L.n1(),L.mL()):(L.dispose(),e.loader.Bd());else{if(L.SH())L instanceof $k&&Kov(e.timing,L),XnH(e),KSR(e);else if(L.J1())c=e.zm.ww(),L instanceof $k&&Bbx(L.info)&&c&&e.loader.Dy(c),L instanceof KI?e.X.pop():(c=1,L.canRetry()&&Sx(e.loader)&&(YjM(e,L),c=0),e.loader.handleError(L.n1(),L.mL(),c));else{if(e.loader.isSuspended&&!L.isComplete())return;KSR(e)}L.We()||L instanceof KI||(L.isComplete()?c=mXc(L,e.policy,e.B):(c=N$$(L,e.policy,e.B),c===1&&(e.m$= !0)),c!==0&&(I=new wP(1,L.info.V5),I.p6=c===2,H8c(e,I)));e.policy.Q5&&!L.isComplete()?xo(e.loader):e.loader.Bd()}}}; KSR=function(e){for(;e.X.length&&e.X[0].TU(e.Am());){var L=e.X.shift();nYH(e,L)}e.X.length&&nYH(e,e.X[0])}; nYH=function(e,L){L instanceof $k&&(e.Y9=L);var c=new Set(L.kW(e.Am()));c=g.f(c);for(var I=c.next();!I.done;I=c.next()){var B=I.value;if(!(I=!(L instanceof KI))){I=e.Z;var x=I.w_.Wy,S=D6(I.videoInfos,x);x=YhM(I,B,x);var h=S.includes(B);!I.Dg.aJ||x||h||I.loader.sW("sabrcpf",{fid:""+B,vfids:""+S.join("."),said:I.J||""});I=x||S.includes(B)}if(I&&(I=L.b9(B,e.Am()),S=e.policy.f9&&pn(I[0].X.info.mimeType),L.lC(B,e.Am())))for(B=L.r$(B,e.Am()),B=g.f(B),x=B.next();!x.done;x=B.next())if(x=x.value,e.policy.Z&& L instanceof KI&&e.loader.sW("omblss",{s:x.info.e6()}),S)h=e.timing,h.pS||(h.pS=(0,g.zI)(),g.px("fcb_r",h.pS,h.X)),h=e,h.videoData.Wy()&&h.T&&pw(h.T)===pw(g.mr(x.info.X.info,h.w_.Wy))&&h.zm.publish("sabrCaptionsDataLoaded",x,h.I6.bind(h));else{h=x.info.X.info.Cu();var R=x.info.X;if(h){var u=void 0;var t=e.Z,O=(u=L.JT(e.Am()))==null?void 0:u.token;t.T&&R!==t.B?u=!0:(t.T=!1,R!==t.B&&(t.B=R,t.AQ(R,t.audioTrack,O)),u=!1);if(u)continue}else u=void 0,PCn(e.Z,R,(u=L.JT(e.Am()))==null?void 0:u.token);u=h? e.audioTrack:e.videoTrack;L instanceof KI&&(u.T=!1,L instanceof KI&&(h?lEc(e.timing):Hwc(e.timing)));try{CJ(u,I,x)}catch(q){x=uy(q),e.loader.handleError(x.errorCode,x.details,x.severity),u.fp(),e.Ux(!1,"pushSlice"),cH(e.loader)}}}}; YjM=function(e,L){e.policy.D?e.X.splice(e.X.indexOf(L)).forEach(function(c){c.dispose()}):(e.X.pop(),L==null||L.dispose())}; ebc=function(e,L,c){for(var I=[],B=0;B0)for(var L=g.f(e.videoData.sabrContextUpdates.keys()),c=L.next();!c.done;c=L.next()){c=c.value;var I=void 0;((I=e.videoData.sabrContextUpdates.get(c))==null?0:I.sendByDefault)&&e.videoData.Sl.add(c)}if(e.policy.D&&e.X.length)for(L=g.f(e.X),c=L.next();!c.done;c=L.next())(c=c.value.Qu())&&c.type&&c.sendByDefault&&e.videoData.Sl.add(c.type)}; LTc=function(e){e.policy.Bw&&(e.Ve=void 0,e.PD=0)}; c1H=function(e,L){if(L.J1()||L.We()){var c=e.loader,I=c.sW,B=L.state;e=e.Am();var x,S;if((L=(x=L.ek)==null?void 0:x.get(e))==null)L=void 0;else{x=0;e=L.kW();for(var h=0;h=L.mediaTime&&g.E(e.zm.getPlayerState(),8)?(L.resolve([L.mediaTime,L.id]),e.X.delete(L.id)):(L.delay.dispose(),L.delay=new g.j9(function(){o$v(e,L)},(L.mediaTime-c)*1E3/e.zm.getPlaybackRate()),L.delay.start())}; Rbn=function(e,L,c,I){var B=this;this.Z=e;this.cpn=L;this.zm=c;this.X=I;this.K=new Map;this.B=new Map;this.T=this.J=NaN;this.j=!1;this.sU="";this.isSeeking=!1;this.D=0;this.G=new B7c(c);this.BR=c.BR;this.zm.subscribe("SEEK_TO",function(){B.d3()}); this.zm.subscribe("SEEK_COMPLETE",function(){hbr(B)})}; tI6=function(e,L){if(!e.isSeeking&&e.D!==L&&!isNaN(e.J)){e.D=L;var c=e.j?e.T:e.Z.kI(L);(c!==e.T||e.j)&&uUM(e,c,L)}}; uUM=function(e,L,c){var I=e.K.get(L),B=e.Z.getStartTime(L),x=e.Z.getDuration(L);e.j=!1;e.T=L;var S=B,h;((h=I==null?void 0:I.X)!=null?h:[e.cpn]).forEach(function(R,u){var t;u=(t=I==null?void 0:I.K[u])!=null?t:x;c>=S&&cB?WTx(e,x,e.K.get(x)):x===B&&WTx(e,x,e.K.get(x),I-e.Z.getStartTime(x))})}; Of6=function(e,L,c,I){L!==e.sU&&(e.zm.sW("ssevt",{tag:e.X===0?"sstd-cr":e.X===1?"sstd-tm":e.X===2?"sstd-poll":e.X===3?"sstd-poll100":"sstd-unknown",ad:e.cpn!==L,cpn:L,st:c.toFixed(3),late:Math.round(e.isSeeking?0:(I-c)*1E3)}),e.sU=L)}; MIn=function(e){var L=g.f(e.split("."));e=L.next().value;L=L.next().value;return[Number(e),L]}; T7c=function(e,L,c,I){c=L+"."+c;e.B.has(L)?e.B.get(L).push(c):e.B.set(L,[c]);e.X===1&&SFR(e.G,I,c).then(function(B){var x=g.f(B);B=x.next().value;x=x.next().value;x=g.f(MIn(x));x.next();x=x.next().value;Of6(e,x,B,xDM(e.G))}); e.X===0&&(e.BR.jD("transitiondetector",c),L=(I+e.zm.FF())*1E3,e.BR.Lb([new g.pC(L,L+5E3,{id:c,namespace:"transitiondetector",priority:9})]))}; zbc=function(e,L,c,I,B){this.loader=e;this.policy=L;this.schedule=c;this.Z3=I;this.D=B;this.pS=NaN;this.K=this.T=this.G=null;this.X=this.B=this.j=this.startTimeSecs=NaN;this.Z=!1;this.J=NaN}; sIT=function(e,L,c,I,B,x){return L.BU&&L.IU&&c===3?new zbc(e,L,I,B,x):null}; v$x=function(e,L){if(e.policy.Iv){var c=L.info.r_,I=$y(e.schedule);L=L.index.wl();c=Math.max(1,I/c);e.J=Math.round(Math.max(((c-1)*L+e.policy.RI)/c,L-e.policy.Z2)*1E3)}}; FT6=function(e,L){var c=Date.now()/1E3,I=c-e.startTimeSecs,B=c-e.j,x=B>=e.policy.C$,S=!1;if(x){var h=0;!isNaN(L)&&L>e.B&&(h=L-e.B,e.B=L);h/B=e.policy.Z2&&!e.Z;if(!x&&!c&&fI6(e,L))return NaN;c&&(e.Z=!0);a:{I=S;c=(0,g.zI)()/1E3-(e.Z3.EK()||0)-e.T.X-e.policy.RI;x=e.K.startTime;c=x+c;if(I){if(isNaN(L)){BH(e,NaN,"n",L);x=NaN;break a}I=L-e.policy.KB;I0&&(h.headers=R);x&&(h.onFinish=x);return Object.keys(h).length>1? h:null}; C8c=function(e,L,c,I,B,x,S,h){nT()&&c.token&&(e=X$(e,{ctt:c.token,cttype:c.DR,mdx_environment:c.mdxEnvironment}));I.Y("net_pings_low_priority")&&(L||(L={}),L.priority="low");x||h&&I.Y("nwl_skip_retry")?(L==null?L={}:wNn(e,I.Y("html5_assert_cpn_with_regex")),S?yo().sendAndWrite(e,L):yo().sendThenWrite(e,L,h)):L?(wNn(e,I.Y("html5_assert_cpn_with_regex")),odM(e,L)):g.gO(e,B)}; aIM=function(e){for(var L=[],c=0;c0&&c>0&&!e.K&&e.Z<1E7)try{e.G=e.B({sampleInterval:L,maxBufferSize:c});var I;(I=e.G)==null||I.addEventListener("samplebufferfull",function(){return g.Z(function(B){if(B.K==1)return g.a(B,e.stop(),2);y1x(e);g.AJ(B)})})}catch(B){e.K=mDx(B.message)}}; o1=function(e,L){var c,I;return!!((c=window.h5vcc)==null?0:(I=c.settings)==null?0:I.set(e,L))}; pN6=function(){var e,L,c,I=(e=window.h5vcc)==null?void 0:(L=e.settings)==null?void 0:(c=L.getPersistentSettingAsString)==null?void 0:c.call(L,"cpu_usage_tracker_intervals");if(I!=null){var B;e=(B=JSON.parse(I))!=null?B:[];B=e.filter(function(u){return u.type==="total"}).map(function(u){return u.seconds}); L=g.f(Zf$);for(c=L.next();!c.done;c=L.next())c=c.value,B.indexOf(c)===-1&&e.push({type:"total",seconds:c});var x,S;(x=window.h5vcc)==null||(S=x.settings)==null||S.set("cpu_usage_tracker_intervals_enabled",1);var h,R;(h=window.h5vcc)==null||(R=h.settings)==null||R.set("cpu_usage_tracker_intervals",JSON.stringify(e))}}; $DR=function(){var e=window.H5vccPlatformService,L="";if(e&&e.has("dev.cobalt.coat.clientloginfo")&&(e=e.open("dev.cobalt.coat.clientloginfo",function(){}))){var c=e.send(new ArrayBuffer(0)); c&&(L=String.fromCharCode.apply(String,g.V(new Uint8Array(c))));e.close()}return L}; g.h5=function(e){g.p.call(this);var L=this;this.provider=e;this.logger=new g.tB("qoe");this.X=new Map;this.sequenceNumber=1;this.h7=NaN;this.mZ="N";this.J=this.r6=this.xK=this.pS=this.K=0;this.Q5=this.Y9=this.j=this.Pe="";this.Bw=this.t7=NaN;this.xT=0;this.g0=-1;this.RI=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.sY=this.isEmbargoed=this.Ve=this.isOffline=this.isBuffering=!1;this.f9=[];this.D=null;this.DY=this.G=this.x9=this.T=!1;this.Z=-1;this.m$=!1;this.m1=new g.j9(this.RE,750,this);this.bV= this.adCpn=this.k9=this.contentCpn="";this.adFormat=void 0;this.FD=0;this.Sl=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.IU=new Set(["gd","pw"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.Kf=!1;this.Cf=NaN;this.ye=0;this.RT=!1;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.gT=!1;this.XD=new Set;this.kx={Ga:function(I){L.Ga(I)}, Q1W:function(){return L.B}, Wc:function(){return L.contentCpn}, Y5e:function(){return L.k9}, reportStats:function(){L.reportStats()}, kA_:function(){return L.X.get("cat")||[]}, Xv:function(I){return L.X.get(I)||[]}, e0q:function(){return L.X}, IS9:function(){return 0}, hqM:function(){return{adCpn:L.adCpn,bV:L.bV,adFormat:L.adFormat}}}; this.Gm=this.provider.XM.Y("html5_qoe_relaxed_reporting");var c=g.X3(this.provider.XM.experiments,"html5_qoe_proto_mock_length");c&&!Sk.length&&(Sk=aIM(c));g.l(this,this.m1);try{navigator.getBattery().then(function(I){L.D=I})}catch(I){}g.rx(this,0,"vps",["N"]); e.XM.oT()&&(this.ye=(0,g.zI)(),this.Cf=g.SG(function(){var I=(0,g.zI)(),B=I-L.ye;B>500&&L.sW("vmlock",{diff:B.toFixed()});L.ye=I},250)); this.provider.videoData.s9&&(this.remoteControlMode=jIr[this.provider.videoData.s9]||0);this.provider.videoData.Ne&&(c=h8T(this.provider.videoData.Ne),c==null?0:c.length)&&(this.remoteConnectedDevices=c);e.XM.oT()&&(this.d_=new GNx,g.l(this,this.d_));c=g.X3(e.XM.experiments,"html5_js_self_profiler_sample_interval_ms");e=g.X3(e.XM.experiments,"html5_js_self_profiler_max_samples");c>0&&e>0&&(this.He=new xV(c,e),g.l(this,this.He))}; R1=function(e,L,c){var I=e.X.get(L);I?I.push(c):e.X.set(L,[c])}; g.rx=function(e,L,c,I){R1(e,c,L.toFixed(3)+":"+I.join(":"))}; Hfn=function(e,L){var c=e.adCpn||e.provider.videoData.clientPlaybackNonce,I=e.provider.getCurrentTime(c);g.rx(e,L,"cmt",[I.toFixed(3)]);c=I=e.provider.RO(c);if((!e.B||e.provider.XM.Y("html5_shorts_gapless_no_gllat")&&A1(e.provider.videoData)?0:c*1E3>e.B.Nm+100)&&e.B){var B=e.B;c=B.isAd;I=I*1E3-B.Nm;e.R3=L*1E3-B.Im0-I-B.ibl;B=(0,g.zI)()-I;L=e.R3;I=e.provider.videoData;var x=I.isAd();if(c||x){x=(c?"ad":"video")+"_to_"+(x?"ad":"video");var S={};I.j&&(S.cttAuthInfo={token:I.j,videoId:I.videoId});S.startTime= B-L;be(x,S);g.FT({targetVideoId:I.videoId,targetCpn:I.clientPlaybackNonce},x);AD("pbs",B,x)}else B=e.provider.zm.ZV(),B.j!==I.clientPlaybackNonce?(B.B=I.clientPlaybackNonce,B.K=L):I.O9()||g.F7(new g.yu("CSI timing logged before gllat",{cpn:I.clientPlaybackNonce}));e.sW("gllat",{l:e.R3.toFixed(),prev_ad:+c});delete e.B}}; t5=function(e,L){L=L===void 0?NaN:L;L=L>=0?L:g.up(e.provider);var c=e.provider.zm.WY(),I=c.PH-(e.t7||0);I>0&&g.rx(e,L,"bwm",[I,(c.bG-(e.Bw||0)).toFixed(3)]);isNaN(e.t7)&&c.PH&&e.isOffline&&e.Ga(!1);e.t7=c.PH;e.Bw=c.bG;isNaN(c.bandwidthEstimate)||g.rx(e,L,"bwe",[c.bandwidthEstimate.toFixed(0)]);e.provider.XM.oT()&&Object.keys(c.X).length!==0&&e.sW("bwinfo",c.X);if(e.provider.XM.oT()||e.provider.XM.Y("html5_log_meminfo"))I=bfn(),Object.values(I).some(function(x){return x!==void 0})&&e.sW("meminfo", I); if(e.provider.XM.oT()){var B;(I=(B=e.d_)==null?void 0:g$f(B))&&Object.values(I).some(function(x){return x!=null})&&e.sW("cpuinfo",I)}e.He&&e.sW("jsprof",e.He.flush()); e.D&&g.rx(e,L,"bat",[e.D.level,e.D.charging?"1":"0"]);B=e.provider.zm.getVisibilityState();e.g0!==B&&(g.rx(e,L,"vis",[B]),e.g0=B);Hfn(e,L);(B=lIc(e.provider))&&B!==e.xT&&(g.rx(e,L,"conn",[B]),e.xT=B);P8$(e,L,c)}; P8$=function(e,L,c){if(!isNaN(c.Ly)){var I=c.Ly;c.K96E3&&(new g.j9(e.reportStats,0,e)).start()}}; UDn=function(e){e.provider.videoData.kN&&Of(e,"prefetch");e.provider.videoData.gT&&e.sW("reload",{r:e.provider.videoData.reloadReason,ct:e.provider.videoData.gT});e.provider.videoData.x9&&Of(e,"monitor");e.provider.videoData.isLivePlayback&&Of(e,"live");Oh&&Of(e,"streaming");e.provider.videoData.s9&&e.sW("ctrl",{mode:e.provider.videoData.s9},!0);if(e.provider.videoData.Ne){var L=e.provider.videoData.Ne.replace(/,/g,"_");e.sW("ytp",{type:L},!0)}e.provider.videoData.gK&&(L=e.provider.videoData.gK.replace(/,/g, "."),e.sW("ytrexp",{ids:L},!0));L=e.provider.videoData;var c=e.provider.XM.Y("enable_white_noise")||e.provider.XM.Y("enable_webgl_noop"),I=g.ND(L)||g.UF(L)||g.EF(L)||g.XU(L);(c||I)&&(c=(0,g.q0)())&&e.X.set("gpu",[c]);r5(e.provider.videoData)&&g.rx(e,g.up(e.provider),"dt",["1"]);e.provider.Y("html5_record_is_offline_on_playback_attempt_start")&&L.cotn&&!r5(L)&&e.Ga(!0);e.provider.XM.oT()&&(L=(0,g.zI)()-e.provider.XM.OF,e.sW("playerage",{secs:Math.pow(1.6,Math.round(Math.log(L/1E3)/Math.log(1.6))).toFixed()})); e.G=!0;e.h7=g.SG(function(){e.reportStats()},1E4)}; XNJ=function(e,L,c){var I=g.up(e.provider);E$T(e,I,L,0,c);t5(e,I);dDc(e)}; E$T=function(e,L,c,I,B){var x=e.provider.XM.X.cbrver;e.provider.XM.X.cbr==="Chrome"&&/^96[.]/.test(x)&&c==="net.badstatus"&&/rc\.500/.test(B)&&KTM(e,3);e.provider.XM.Y("html5_use_ump")&&/b248180278/.test(B)&&KTM(e,4);x=e.provider.getCurrentTime(e.adCpn||e.provider.videoData.clientPlaybackNonce);I=I===1?"fatal":"";c=[c,I,x.toFixed(3)];I&&(B+=";a6s."+Q_());B&&c.push(YFv(B));g.rx(e,L,"error",c);e.G=!0}; n$T=function(e,L){var c=g.up(e.provider);if(!e.provider.XM.experiments.N0("html5_refactor_sabr_video_format_selection_logging")||L.X.id!==e.Pe){var I=[L.X.id,L.K,e.Pe,L.reason];L.token&&I.push(L.token);g.rx(e,c,"vfs",I);e.Pe=L.X.id;I=e.provider.zm.getPlayerSize();if(I.width>0&&I.height>0){I=[Math.round(I.width),Math.round(I.height)];var B=g.qu();B>1&&I.push(B);g.rx(e,c,"view",I)}e.x9||(e.provider.XM.oT()&&Of(e,"rqs2"),e.provider.videoData.X&&gV(e.provider.videoData.X)&&e.X.set("preload",["1"]));e.x9= !0;e.G=!0}L.reason==="m"&&++e.FD===100&&KTM(e,2);g.rx(e,c,"vps",[e.mZ]);e.Gm||e.reportStats(c)}; ez$=function(e){e.Z>=0||(e.provider.XM.PM||e.provider.zm.getVisibilityState()!==3?e.Z=g.up(e.provider):e.m$=!0)}; LC$=function(e,L,c){if(e.provider.XM.experiments.N0("html5_refactor_sabr_audio_format_selection_logging")){L=c.X;var I=[L.audio&&L.video?L.Y$?L.Y$:"":L.id];L.l5&&L.l5.id&&I.push(L.l5.id);L=I.join(";");L!==e.j&&(I=[L,e.j,c.reason],c.token&&I.push(c.token),g.rx(e,g.up(e.provider),"afs",I),e.j=L)}else c.X.id!==e.j&&(I=[c.X.id,e.j,c.reason],c.token&&I.push(c.token),g.rx(e,L,"afs",I),e.j=c.X.id)}; Of=function(e,L){R1(e,"cat",L)}; cqn=function(e,L,c,I,B){var x=g.up(e.provider);L!==1&&L!==3&&L!==5||g.rx(e,x,"vps",[e.mZ]);R1(e,"xvt","t."+x.toFixed(3)+";m."+B.toFixed(3)+";g.2;tt."+L+";np.0;c."+c+";d."+I)}; KTM=function(e,L){e.DY||(R1(e,"fcnz",""+L),e.DY=!0)}; YFv=function(e){/[^a-zA-Z0-9;.!_-]/.test(e)&&(e=e.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return e}; g.WH=function(e,L,c,I,B,x,S,h,R,u){h=h===void 0?!1:h;g.p.call(this);var t=this;this.zm=e;this.schedule=L;this.policy=c;this.w_=I;this.Gm=R;this.XD=u;this.g_=null;this.t7=this.Pe=this.Y9=this.h7=0;this.Qg=this.j_=this.isSuspended=!1;this.Sl="";this.IU={};this.RT=NaN;this.Kf=0;this.pS=null;this.Cf=this.He=!1;this.Ln=0;this.x9=!1;this.ye=this.DY=0;this.Bw=null;this.w$=function(){return t.zm.w$()}; this.timing=new j5M(this.XD);this.J=new jS(this.schedule,this.policy);this.xT=new g.j9(this.Bd,0,this);this.Q5=new g.j9(this.Bd,this.policy.Q5,this);this.WF=new g.j9(this.Bd,1E3,this);this.f9=new g.j9(this.Bd,void 0,this);this.d_=new g.j9(function(){t.isSuspended||t.Bd()},1E4,this); this.g0=new g.j9(this.MWW,250,this);this.j=this.currentTime=NaN;this.oR=new w$(5);this.k9=this.timestampOffset=NaN;this.logger=new g.tB("dash");this.m1=Infinity;this.kx={getAudioTrack:function(){return t.audioTrack}, qP0:function(){return t.videoTrack}, getManifest:function(){return t.w_}, p10:function(){return t.K}, Bd:function(){t.Bd()}, iJ:function(){t.h7=0;t.iJ()}, Vqw:function(q){return TP(t,t.videoTrack,t.g_.K,q)}}; e=R&&R.kW();R&&(N3H(R,this.w_,this.policy),this.k9=Date.now());this.X=new IY(this,this.J,c,this.w_,B,e);c=qYf(this.X,x,S&&S.id);this.audioTrack=new Dc(this,this.policy,c.audio,this.timing);this.videoTrack=new Dc(this,this.policy,c.video,this.timing);this.videoTrack.G.k9=this.audioTrack.PO();this.m$={updateend:this.Jv,error:this.kme};g.l(this,this.xT);g.l(this,this.Q5);g.l(this,this.WF);g.l(this,this.f9);g.l(this,this.d_);c=this.policy.pW&&this.policy.VB?!Dwv(this.videoTrack.X.info):!1;this.RI=k6$({U9:this.policy.T.U9|| c,VB:this.policy.VB&&!c,Sj:this.policy.Sj});this.T=sIT(this,this.policy,this.RI,this.schedule,this.oR,function(q,T){return Ib6(t,q,T)}); this.Z=new HD(this,this.w_,this.policy,this.videoTrack,this.audioTrack,h);this.policy.DY&&this.policy.K&&(this.Ve=new SY$(function(q,T){t.sW(q,T)})); this.Lu=new U4(this,this.w_,this.videoTrack,this.audioTrack,this.policy);h=this.policy.Dv?this.zm.getVideoData().MS:null;this.B=new nJ(this,this.policy,this.videoTrack,this.audioTrack,this.IU,this.Z,this.timing,this.J,this.schedule,this.w_,this.X,this.T,c,h);g.l(this,this.B);this.G=new hr(this,this.policy,this.videoTrack,this.audioTrack,this.w_,B,FU(this.zm.getVideoData()),S==null?void 0:S.id);g.l(this,this.G);Eyn(this.G,x);this.K=new $ux(this.zm,this,this.policy,this.audioTrack,this.videoTrack,this.w_, this.schedule,this.X,this.G,this.timing,this.Z);g.l(this,this.K);this.D=this.zm.cw.zx.Bm;this.policy.B||B5f(this);if(this.policy.Mv){var O;this.sY=new Rbn(this.videoTrack.X.index,(O=this.zm.getVideoData().clientPlaybackNonce)!=null?O:"",this.zm,this.policy.x9);this.policy.x9===3&&(this.gT=new g.j9(this.vn,200,this),this.gT.start(),g.l(this,this.gT))}this.logger.debug("Created")}; B5f=function(e){var L,c;if((L=e.D)==null?0:(c=L.Tj)==null?0:c.itagDenylist){var I;e.QJ((I=e.D)==null?void 0:I.Tj.itagDenylist)}var B;if((B=e.D)==null?0:B.playbackStartPolicy){var x,S;KJ(e.policy,(x=e.D)==null?void 0:x.playbackStartPolicy,3,(S=e.D)==null?void 0:S.MD())}if(e.policy.Il){L=e.Am();var h;(c=L?(h=e.D)==null?void 0:h.fh.get(L):void 0)&&e.K.Yj(c)}if(!e.w_.D){var R;h=(R=e.D)==null?void 0:R.IW;(h==null?0:h.JP)&&(h==null?0:h.bq)&&e.w_.Wy&&H6(e.w_,h.JP,h.bq)}var u;((u=e.D)==null?0:u.KQ)&&(R=e.D.KQ.get(e.Am()|| ""))&&e.w_&&R.formatId&&(e=e.w_.Z.get(pw(R.formatId)))&&(e.info.debugInfo=R.debugInfo)}; xUr=function(e,L){var c=pw(g.mr(L.X.info,e.w_.Wy)),I,B=((I=e.Gm)==null?void 0:I.b9(c))||[];if(B.length===0)return e.sW("ombmsi",{}),!1;B=new nw(B);if(I=!e.policy.h7||isFinite(e.getCurrentTime())||e.zm.ww()){a:{I=e.getCurrentTime();B=g.f(B.bd);for(var x=B.next();!x.done;x=B.next())if(x=x.value,x.type===3&&I>=x.G&&I<=x.j){I=!0;break a}I=!1}I=!I}if(I)return e.sW("ostmf",{ct:e.getCurrentTime(),a:L.X.info.Cu()}),!1;(e=e.Gm)!=null&&(e.C9.get(c).qT=!0);return!0}; obn=function(e){if(!e.w_.Wy)return!0;var L=e.zm.getVideoData();if(e.zm.fX())return e.sW("ombpa",{}),!1;var c,I;if(!!((c=e.D)==null?0:(I=c.IW)==null?0:I.Pad)!==e.w_.tq)return e.sW("ombplmm",{}),!1;c=L.Kf||L.liveUtcStartSeconds||L.XD;if(e.w_.tq&&c)return e.sW("ombplst",{}),!1;if(e.w_.D)return e.sW("ombab",{}),!1;c=Date.now();return l2(e.w_)&&!isNaN(e.k9)&&c-e.k9>e.policy.ji*1E3?(e.sW("ombttl",{}),!1):e.w_.kf&&e.w_.G||!e.policy.iA&&e.w_.isPremiere||aI(L)!==0&&!e.policy.X||L.Y("html5_disable_onesie_media_for_mosaic")&& SD(L)||L.GI()&&!L.Y("html5_enable_onesie_media_for_lifa")&&L.isDaiEnabled()&&L.enableServerStitchedDai||L.Y("html5_disable_onesie_media_for_lifa_eligible")&&oR(L)?!1:!0}; SqT=function(e,L){var c=L.X,I=e.w_.Wy;if(obn(e))if(e.Gm&&e.Gm.C9.has(pw(g.mr(c.info,I)))){if(I=pw(g.mr(c.info,I)),xUr(e,L)){var B=new nw(e.Gm.b9(I)),x=function(S){try{if(S.J1())e.handleError(S.n1(),S.mL()),Hi(L,S),Lk(S.info)&&Ia(e.B,L,c,!0),e.Bd();else if(B5(e.B,S)){var h;(h=e.Z)==null||cBM(h,S.info,e.pS);e.Bd()}}catch(R){S=uy(R),e.handleError(S.errorCode,S.details,S.severity),e.fp()}}; c.Z=!0;e6(B)&&(Vb(L,new E4(e.policy,I,B,e.Gm,x)),jE(e.timing))}}else e.sW("ombfmt",{})}; rqM=function(e,L){L=L||e.videoTrack&&e.videoTrack.K&&e.videoTrack.K.startTime||e.getCurrentTime();var c=oa,I=e.videoTrack,B=e.X;L=B.nextVideo&&B.nextVideo.index.kI(L)||0;B.k9!==L&&(B.ye={},B.k9=L,Bi(B,B.X));L=!B.X.isLocked()&&B.D>-1&&(0,g.zI)()-B.DL.X&&L.reason==="b";I||B||c?(e.zm.pR({reattachOnConstraint:I?"u":B?"drm":"perf",lo:L.K,up:L.X}),e.policy.mR||(e.G.X.K=!1)):(e.policy.mR&&(e.G.X.K=!1),cH(e))}}else if(!TEn(e.X,L)&&e.videoTrack){e.logger.debug(function(){return"Setting constraint: r="+L.reason+" u="+L.X}); c=e.X.X;WCR(e,M6v(e.X,L));rqM(e);I=L.isLocked()&&L.reason==="m"&&e.X.h7;B=e.policy.J9&&L.reason==="l"&&Pi(e.videoTrack);c=c.X>L.X&&L.reason==="b";var x=e.X.m$&&!Lx();I||B||c||x?e.zm.pR({reattachOnConstraint:I?"u":B?"drm":x?"codec":"perf"}):cH(e)}}; zzJ=function(e,L,c){if((!e.g_||BX(e.g_)&&!e.policy.Uh)&&!e.Lu.isSeeking()&&(e.policy.X||Pi(L)&&L.X.Y4()&&e.X.pS)){var I=e.getCurrentTime()+qg$(e.J,L,c);e.logger.debug(function(){return"Clearing back to "+I.toFixed(3)}); z16(L,I)}}; WCR=function(e,L){L&&(e.logger.debug(function(){return"Logging new format: "+j0(L.video.info)}),sRv(e.zm,new KB(L.video,L.reason))); if(e.X.He){var c=fNn(e.X,"a");e.zm.FE(new KB(c.audio,c.reason))}}; cH=function(e){g.HT(e.xT)}; xo=function(e){e.policy.Q5&&e.policy.Sj&&Math.min(M8$(e.videoTrack),M8$(e.audioTrack))*1E3>e.policy.RC?g.HT(e.Q5):e.Bd()}; vbJ=function(e,L){var c=(0,g.zI)()-L,I=pJ(e.audioTrack,!0)*1E3,B=pJ(e.videoTrack,!0)*1E3;e.logger.debug(function(){return"Appends paused for "+c}); if(e.policy.Z&&(e.sW("apdpe",{dur:c.toFixed(),abuf:I.toFixed(),vbuf:B.toFixed()}),XK(e.policy))){var x=P8(e.J);e.sW("sdps",{ct:L,ah:I.toFixed(),vh:B.toFixed(),mr:Q3(e.J,e.Qg,x),bw:x.toFixed(),js:e.isSeeking(),re:+e.Qg,ps:(e.policy.Xn||"").toString(),rn:(e.policy.D5||"").toString()})}}; fb$=function(e){if(blM(e.videoTrack))return e.logger.debug("Pausing appends for server-selectable format"),"ssf";if(e.policy.Pe&&Ui(e.videoTrack)&&Ui(e.audioTrack))return"updateEnd";if(lz(e.audioTrack)||lz(e.videoTrack)&&e.videoTrack.X.info.EW!=="f")return"";if(e.Lu.isSeeking()){var L=e.J;var c=e.videoTrack;var I=e.audioTrack;if(L.policy.X){var B=L.policy.rp;XK(L.policy)&&(B=Q3(L,!1,P8(L)));L=B;c=pJ(I,!0)>=L&&pJ(c,!0)>=L}else c.Z.length||I.Z.length?(B=c.X.info.r_+I.X.info.r_,B=10*(1-P8(L)/B),L=Math.max(B, L.policy.rp),c=pJ(I,!0)>=L&&pJ(c,!0)>=L):c=!0;if(!c)return"abr";c=e.videoTrack;if(c.Z.length>0&&c.G.K.length===1&&dhM(c.G).info.J360);I=XK(e.policy)&&e.policy.kV;if(!e.Qg||!I&&c)return"";c=e.policy.xz;XK(e.policy)&&(c=Q3(e.J,e.Qg,P8(e.J)));c=vyT(e.videoTrack,e.getCurrentTime(),c)||vyT(e.audioTrack,e.getCurrentTime(), c);return XK(e.policy)?c?"mbnm":"":(e.videoTrack.Z.length>0||e.audioTrack.Z.length>0||ex(e.B,e.videoTrack,e.audioTrack)||ex(e.B,e.audioTrack,e.videoTrack))&&c?"nord":""}; AqR=function(e){if(e.T){var L=e.T.Bd(e.audioTrack,U7(e.g_.K.rq()));L&&e.zm.seekTo(L,{dw:!0,Ww:"pollSubsegmentReadahead",y6:!0})}}; DUJ=function(e,L,c){if(e.policy.Pe&&Ui(L))return!1;if(c.M9())return!0;if(!c.Ej())return!1;var I=BD(L);if(!I||I.info.type===6)return!1;var B;if(e.policy.ME||((B=e.Z)==null?0:oZx(B,L,I.info.ud)))e.t7=0;else return e.Lu.isSeeking()&&cH(e),e.t7=e.t7||(0,g.zI)(),!1;if(!TP(e,L,c,I.info))return!1;if(e.w_.K&&I.info.K===0){if(B=FCM(L,c,I)){var x=Ju(L);e.sW("initchg",{it:I.info.X.info.id,sr:!!x&&x.X===I.info.X,ty:I.info.type,seg:I.info.ud})}x=g.Cn(I.info.X.info);e.policy.FD&&x&&!B&&Lln(I)}x=e.T&&!!e.T.G&&L.X.info.audio; B=e.w_.isManifestless||I.B;if(!(e.w_.K&&I.info.K!==0||B&&!x)&&b2J(e,L,c,I))return!0;if(x)return!1;x=nr(e,L);x=e.getCurrentTime()+x;if(I.info.G>x)return e.policy.X&&i2x(e,L),e.policy.Cy&&Gvv(L.G,x,!1),!1;GCn(e,L);var S;e.policy.Yf&&c===((S=e.g_)==null?void 0:S.X)&&e.x9&&(c.U$()===0?(e.x9=!1,e.policy.Yf=!1):e.DY=c.U$());if(!gbv(e,c,I,L))return!1;e.policy.Pe&&I.info.C2()?(e.zm.S().oT()&&e.sW("eosl",{ls:I.info.e6()}),I.isLocked=!0):(L.u3(I),vZT(e.X,I.info),e.logger.debug(function(){return"Appended "+ I.info.e6()+", buffered: "+ly(c.rq())})); B&&kCn(e,I.info.X.fY);return!0}; i2x=function(e,L){L===e.videoTrack?e.Pe=e.Pe||(0,g.zI)():e.Y9=e.Y9||(0,g.zI)()}; GCn=function(e,L){L===e.videoTrack?e.Pe=0:e.Y9=0}; gbv=function(e,L,c,I){var B=e.policy.gT?(0,g.zI)():0,x=c.B&&c.info.X.X||void 0,S=c.K;c.B&&(S=wSv(e,c,S)||S);var h=xj(S);S=e.policy.gT?(0,g.zI)():0;L=JqM(e,L,h,c.info,x);(I=I.D)!=null&&(x=c.info,B=S-B,S=(0,g.zI)()-S,!I.K||zPv(I.K,x)&&I.K.ud===x.ud||I.flush(),I.G+=B,I.Z+=S,B=1,!I.K&&x.K&&(B=2),RY(I,B,L),S=Math.ceil(x.K/1024),B===2&&I.X.add(S),I.X.add(Math.ceil((x.K+x.Z)/1024)-S),I.K=x);e.ye=0;if(L===0)return e.He&&(e.logger.debug("Retry succeed, back to normal append logic."),e.He=!1,e.Cf=!1),e.Kf= 0,!0;if(L===2||L===5)return VDT(e,"checked",L,c.info),!1;if(L===1){if(!e.He)return e.logger.debug("QuotaExceeded, retrying."),e.He=!0,!1;if(!e.Cf)return e.Cf=!0,e.zm.seekTo(e.getCurrentTime(),{Ww:"quotaExceeded",y6:!0}),!1;c.info.vM()?(B=e.policy,B.Y9=Math.floor(B.Y9*.8),B.Gm=Math.floor(B.Gm*.8)):(B=e.policy,B.Sl=Math.floor(B.Sl*.8),B.Gm=Math.floor(B.Gm*.8));e.policy.X?nB(e.G.X,c.info.X,!1):oY(e.X,c.info.X)}e.zm.pR({reattachOnAppend:L});return!1}; wSv=function(e,L,c){var I;if(I=e.policy.Dt&&e.g_&&!e.g_.J&&!e.zm.cL())L=L.info.X.info,I=L.Gk()&&gr(L)&&L.video&&L.video.width<3840&&L.video.width>L.video.height;if(I&&(e.g_.J=!0,Tn('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return c=P26(c),e.policy.Z&&e.sW("sp4k",{s:!!c}),c}; VDT=function(e,L,c,I){var B="fmt.unplayable",x=1;c===5||c===3?(B="fmt.unparseable",e.policy.X?!I.X.info.video||en(e.G.X).size>0||nB(e.G.X,I.X,!1):!I.X.info.video||en(e.X.B).size>0||oY(e.X,I.X)):c===2&&(e.Kf<15?(e.Kf++,B="html5.invalidstate",x=0):B="fmt.unplayable");I=Kw(I);var S;I.mrs=(S=e.g_)==null?void 0:r1(S);I.origin=L;I.reason=c;e.policy.Ao&&(I.trg="appenderr");e.handleError(B,I,x)}; rbM=function(e,L,c,I,B){var x=e.w_;var S=e.policy.X,h=!1,R=-1;for(T in x.X){var u=pn(x.X[T].info.mimeType)||x.X[T].info.vM();if(I===u)if(u=x.X[T].index,u.nX(L.ud)){h=u;var t=L,O=h.Pt(t.ud);O&&O.startTime!==t.startTime?(h.segments=[],h.xB(t),h=!0):h=!1;h?R=L.ud:!L.pending&&S&&(t=u.getDuration(L.ud),t!==L.duration&&(x.publish("clienttemp","mfldurUpdate",{itag:x.X[T].info.itag,seg:L.ud,od:t,nd:L.duration},!1),u.xB(L),h=!0))}else u.xB(L),h=!0}R>=0&&(S={},x.publish("clienttemp","resetMflIndex",(S[I?"v": "a"]=R,S),!1));x=h;wBn(e.Lu,L,I,x);if(e.policy.DY&&e.policy.K&&(R=L.u0||null)){var q;S=(q=e.K)==null?void 0:IIc(q).requestNumber;if((q=e.Ve)!=null){if(q.K.has(R.identifier)){var T=q.K.get(R.identifier);T.event=R.event;T.startTimeSecs=R.startSecs;T.jW=R.jW}else q.K.set(R.identifier,{event:R.event,startTimeSecs:R.startSecs,jW:R.jW,Mu:[]});q.Z&&S>-1&&SZN(e.w_)&&(e.w_.k9=L.startTime+(isNaN(e.timestampOffset)? 0:e.timestampOffset),e.Lu.isSeeking()&&e.Lu.targetTime5)return e.ye= 0,e.zm.pR({initSegStuck:1,as:I.info.e6()}),!0}else e.ye=0,e.Bw=I;e.policy.zT&&(c.abort(),(S=L.D)!=null&&(RY(S,4),S.flush()));B=JqM(e,c,x,R,B);var u;(u=L.D)==null||Dhn(u,B,R);if(B!==0)return CfR(e,B,I),!0;I.info.vM()?dJv(e.timing):UJM(e.timing);e.logger.debug(function(){return"Appended init for "+I.info.X.info.id}); kCn(e,I.info.X.fY);return c.A1()}; FCM=function(e,L,c){if(L.YP()==null){e=Ju(e);if(!(L=!e||e.X!==c.info.X)){a:if(e=e.D,c=c.info.D,e.length!==c.length)c=!1;else{for(L=0;L1)return 6;S.ye=new g.j9(function(){var h=BD(S);e.We()||h==null||!h.isLocked?e.zm.S().oT()&&e.sW("eosl",{delayA:h==null?void 0:h.info.e6()}):abf(S)?(e.zm.S().oT()&&e.sW("eosl",{dunlock:h==null?void 0:h.info.e6()}),yuJ(e,S===e.audioTrack)):(e.sW("nue",{ls:h.info.e6()}),h.info.pS+=1,e.g_&&e.iJ())},1E4,e); e.zm.S().oT()&&e.sW("eosl",{delayS:I.e6()});S.ye.start()}e.policy.Ee&&(I==null?void 0:I.X)instanceof IZ&&I.C2()&&e.sW("poseos",{itag:I.X.info.itag,seg:I.ud,lseg:I.X.index.Aw(),es:I.X.index.Z});L.appendBuffer(c,I,B)}catch(h){if(h instanceof DOMException){if(h.code===11)return 2;if(h.code===12)return 5;if(h.code===22||h.message.indexOf("Not enough storage")===0)return L=Object.assign({name:"QuotaExceededError",buffered:ly(L.rq()).replace(/,/g,"_"),vheap:yb(e.videoTrack),aheap:yb(e.audioTrack),message:g.gR(h.message, 3),track:e.g_?L===e.g_.K?"v":"a":"u"},bfn()),e.handleError("player.exception",L),1;g.A9(h)}return 4}return e.g_.Dj()?3:0}; Ic=function(e,L,c){Rz$(e,c.Ww||"unknown");e.zm.seekTo(L,c)}; kCn=function(e,L){L&&e.zm.JJ(new zj(L.key,L.type))}; Au=function(e,L){e.zm.dD(L)}; nr=function(e,L){if(e.He&&!e.Qg)return 3;if(e.isSuspended)return 1;var c;if((c=e.g_)==null?0:c.g_&&c.g_.streaming===!1)return 4;c=(L.X.info.audio?e.policy.Sl:e.policy.Y9)/(L.r_*e.policy.Z0);if(e.policy.Ky>0&&e.g_&&BX(e.g_)&&(L=L.X.info.video?e.g_.K:e.g_.X)&&!L.A1()){L=L.rq();var I=P1(L,e.getCurrentTime());I>=0&&(L=e.getCurrentTime()-L.start(I),c+=Math.max(0,Math.min(L-e.policy.Ky,e.policy.aC)))}e.policy.Gm>0&&(c=Math.min(c,e.policy.Gm));return c}; QDf=function(e,L){return(nr(e,L)+e.policy.Si)*L.r_}; piM=function(e){e.Sl&&!e.isSuspended&&j8(e.schedule)&&(ZJM(e,e.Sl),e.Sl="")}; ZJM=function(e,L){$q(L,"cms",function(c){e.policy.Z&&e.sW("pathprobe",c)},function(c){e.zm.handleError(c)})}; $fJ=function(e,L){if(e.g_&&e.g_.G&&!e.g_.Dj()&&(L.Ly=pJ(e.videoTrack),L.K=pJ(e.audioTrack),e.policy.Z)){var c=yb(e.videoTrack),I=yb(e.audioTrack),B=ly(e.g_.K.rq(),"_",5),x=ly(e.g_.X.rq(),"_",5);Object.assign(L.X,{lvq:c,laq:I,lvb:B,lab:x})}L.bandwidthEstimate=H8(e.J);var S;(S=e.audioTrack.D)==null||S.flush();var h;(h=e.videoTrack.D)==null||h.flush();e.logger.debug(function(){return rr(L.X)})}; jYR=function(e,L){e.pS=L;e.Z&&(e.Z.Z=L);e.pS.WV(e.videoTrack.X.info.Gk());e.B.K=e.pS;e.policy.K&&(e.K.J=e.pS)}; lcc=function(e,L){if(e.g_&&e.g_.K){if(e.policy.KY){var c=gyR(e.audioTrack);if(c&&c.Cu()){var I=e.zm;if(I.Ju&&(I.Ju.X=c,c=I.OY,c.qoe)){c=c.qoe;I=I.Ju;var B=g.up(c.provider);LC$(c,B,I)}}}e.policy.Zq&&(c=gyR(e.videoTrack))&&c.vM()&&(I=e.zm,I.oi&&(I.oi.X=c,c=I.OY,c.qoe&&n$T(c.qoe,I.oi)));L-=isNaN(e.timestampOffset)?0:e.timestampOffset;e.getCurrentTime()!==L&&e.resume();e.Lu.isSeeking()&&e.g_&&!e.g_.Dj()&&(I=e.getCurrentTime()<=L&&L=L&&Ib6(e,I.startTime,!1)}); return c&&c.startTimee.getCurrentTime())return c.start/1E3;return Infinity}; EYR=function(e){if(e.zm.getVideoData().isLivePlayback)return!1;var L=e.zm.Nw();if(!L)return!1;L=L.getDuration();if(e.g_&&e.g_.X&&e.g_.K){var c=e.getCurrentTime(),I=e.g_.X.rq();e=e.g_.K.rq();I=I?dr(I,c):c;c=e?dr(e,c):c;c=Math.min(I,c);L=isNaN(c)?!1:c>=L-.01}else L=!1;return L}; CfR=function(e,L,c){e.policy.aR&&A1(e.zm.getVideoData())?(e.zm.FB()||VDT(e,"sepInit",L,c.info),EDr(e.zm,"sie")):VDT(e,"sepInit",L,c.info)}; Sx=function(e){return e.zm.W3()0){var I=c.X.shift();KmR(c,I.info)}c.X.length>0&&(I=c.X[0].time-(0,g.zI)(),c.K.start(Math.max(0,I)))}},0); g.l(this,this.K);L.subscribe("widevine_set_need_key_info",this.G,this)}; KmR=function(e,L){a:{var c=L.cryptoPeriodIndex;if(isNaN(c)&&e.Z.size>0)c=!0;else{for(var I=g.f(e.Z.values()),B=I.next();!B.done;B=I.next())if(B.value.cryptoPeriodIndex===c){c=!0;break a}c=!1}}e.publish("log_qoe",{wvagt:"reqnews",canskip:c});c||e.publish("rotated_need_key_info_ready",L)}; Yir=function(){var e={};var L=e.url;var c=e.interval;e=e.retries;this.url=L;this.interval=c;this.retries=e}; nDr=function(e,L){this.statusCode=e;this.message=L;this.K=this.heartbeatParams=this.errorMessage=null;this.X={};this.nextFairplayKeyId=null}; exn=function(e,L,c){c=c===void 0?"":c;g.p.call(this);this.message=e;this.requestNumber=L;this.timer=c;this.onError=this.onSuccess=null;this.X=new g.wU(5E3,2E4,.2)}; LqH=function(e,L,c){e.onSuccess=L;e.onError=c}; I6M=function(e,L,c,I){var B={timeout:3E4,onSuccess:function(x){if(!e.We()){AD("drm_net_r",void 0,e.timer);var S=x.status==="LICENSE_STATUS_OK"?0:9999,h=null;if(x.license)try{h=kT(x.license)}catch(W){g.A9(W)}if(S!==0||h){h=new nDr(S,h);S!==0&&x.reason&&(h.errorMessage=x.reason);if(x.authorizedFormats){S={};for(var R=[],u={},t=g.f(x.authorizedFormats),O=t.next();!O.done;O=t.next())if(O=O.value,O.trackType&&O.keyId){var q=crx[O.trackType];if(q){q==="HD"&&x.isHd720&&(q="HD720");O.isHdr&&(q+="HDR");S[q]|| (R.push(q),S[q]=!0);var T=null;try{T=kT(O.keyId)}catch(W){g.A9(W)}T&&(u[g.GM(T,4)]=q)}}h.K=R;h.X=u}x.nextFairplayKeyId&&(h.nextFairplayKeyId=x.nextFairplayKeyId);x.sabrLicenseConstraint&&(h.sabrLicenseConstraint=kT(x.sabrLicenseConstraint));x=h}else x=null;if(x)e.onSuccess(x,e.requestNumber);else e.onError(e,"drm.net","t.p;p.i")}}, onError:function(x){if(!e.We())if(x&&x.error)x=x.error,e.onError(e,"drm.net.badstatus","t.r;p.i;c."+x.code+";s."+x.status,x.code);else e.onError(e,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){e.onError(e,"drm.net","rt.req."+e.requestNumber)}}; I&&(B.aV="Bearer "+I);g.$R(c,"player/get_drm_license",L,B)}; BPf=function(e,L,c,I){g.Yg.call(this);this.videoData=e;this.XM=L;this.J=c;this.sessionId=I;this.B={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.pS=this.h7=!1;this.Z=null;this.Gm=[];this.G=[];this.authorizedFormats=[];this.T=!1;this.X={};this.status="";this.j=NaN;this.K=e.B;this.cryptoPeriodIndex=c.cryptoPeriodIndex;e={};Object.assign(e,this.XM.X);e.cpn=this.videoData.clientPlaybackNonce;this.videoData.Ve&&(e.vvt=this.videoData.Ve,this.videoData.mdxEnvironment&&(e.mdx_environment= this.videoData.mdxEnvironment));this.XM.Gm&&(e.authuser=this.XM.Gm);this.XM.pageId&&(e.pageid=this.XM.pageId);isNaN(this.cryptoPeriodIndex)||(e.cpi=this.cryptoPeriodIndex.toString());var B=(B=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.yc()))?B[1]:"";B==="ATV"&&(e.cdt=B);this.B=e;this.B.session_id=I;this.D=!0;this.K.flavor==="widevine"&&(this.B.hdr="1");this.K.flavor==="playready"&&(L=Number(qX(L.experiments,"playready_first_play_expiration")),!isNaN(L)&&L>=0&&(this.B.mfpe=""+L),this.D=!1);L="";g.Il(this.K)? cr(this.K)?(I=c.K)&&(L="https://www.youtube.com/api/drm/fps?ek="+bec(I)):(L=c.initData.subarray(4),L=new Uint16Array(L.buffer,L.byteOffset,L.byteLength/2),L=String.fromCharCode.apply(null,L).replace("skd://","https://")):L=this.K.K;this.baseUrl=L;this.fairplayKeyId=fW(this.baseUrl,"ek")||"";if(L=fW(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(L);this.Gm=c.Gk?[g.GM(c.initData,4)]:c.Z;fO(this,{sessioninit:c.cryptoPeriodIndex});this.status="in"}; rrM=function(e,L){fO(e,{createkeysession:1});e.status="gr";AD("drm_gk_s",void 0,e.videoData.D);e.url=xYc(e);try{e.Z=L.createSession(e.J,function(c){fO(e,{m:c})})}catch(c){L="t.g"; c instanceof DOMException&&(L+=";c."+c.code);e.publish("licenseerror","drm.unavailable",1,L,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}e.Z&&(oon(e.Z,function(c,I){Swx(e,c,I)},function(c,I,B){if(!e.We()){I=void 0; var x=1;g.Il(e.K)&&g.L8(e.XM)&&e.XM.Y("html5_enable_safari_fairplay")&&B===1212433232&&(I="ERROR_HDCP",x=e.XM.Y("html5_safari_fairplay_ignore_hdcp")?0:x);e.error("drm.keyerror",x,c,I)}},function(){e.We()||(fO(e,{onkyadd:1}),e.pS||(e.publish("sessionready"),e.pS=!0))},function(c){e.BD(c)}),g.l(e,e.Z))}; xYc=function(e){var L=e.baseUrl;MB$(L)||e.error("drm.net",2,"t.x");if(!fW(L,"fexp")){var c=["23898307","23914062","23916106","23883098"].filter(function(B){return e.XM.experiments.experiments[B]}); c.length>0&&(e.B.fexp=c.join())}c=g.f(Object.keys(e.B));for(var I=c.next();!I.done;I=c.next())I=I.value,L=dlM(L,I,e.B[I]);return L}; Swx=function(e,L,c){if(!e.We())if(L){fO(e,{onkmtyp:c});e.status="km";switch(c){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":hx$(e,L);return;default:e.publish("ctmp","message_type",{t:c,l:L.byteLength})}e.h7||(AD("drm_gk_f",void 0,e.videoData.D),e.h7=!0,e.publish("newsession",e));if(nk(e.K)&&(L=Rxr(L),!L))return;L=new exn(L,++e.requestNumber,e.videoData.D);LqH(L,function(I){usf(e,I)},function(I,B,x){if(!e.We()){var S=0; I.X.K>=3&&(S=1,B="drm.net.retryexhausted");fO(e,{onlcsrqerr:B,info:x});e.error(B,S,x);e.shouldRetry(RK(S),I)&&txr(e,I)}}); g.l(e,L);OIr(e,L)}else e.error("drm.unavailable",1,"km.empty")}; hx$=function(e,L){fO(e,{sdpvrq:1});e.j=Date.now();if(e.K.flavor!=="widevine")e.error("drm.provision",1,"e.flavor;f."+e.K.flavor+";l."+L.byteLength);else{var c={cpn:e.videoData.clientPlaybackNonce};Object.assign(c,e.XM.X);c=g.WO("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",c);L={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, L)}),responseType:"arraybuffer"};g.v3(c,L,3,500).then(mg(function(I){I=I.xhr;if(!e.We()){I=new Uint8Array(I.response);var B=String.fromCharCode.apply(null,I);try{var x=JSON.parse(B)}catch(S){}x&&x.signedResponse?(e.publish("ctmp","drminfo",{provisioning:1}),x=(Date.now()-e.j)/1E3,e.j=NaN,e.publish("ctmp","provs",{et:x.toFixed(3)}),e.Z&&e.Z.update(I)):(x=x&&x.error&&x.error.message,I="e.parse",x&&(I+=";m."+x),e.error("drm.provision",1,I))}}),mg(function(I){e.We()||e.error("drm.provision",1,"e."+I.errorCode+ ";c."+(I.xhr&&I.xhr.status))}))}}; A5=function(e){var L;if(L=e.D&&e.Z!=null)e=e.Z,L=!(!e.X||!e.X.keyStatuses);return L}; OIr=function(e,L){e.status="km";AD("drm_net_s",void 0,e.videoData.D);var c=new g.pF(e.XM.L6),I={context:g.c4(c.config_||g.LF())};I.drmSystem=qw6[e.K.flavor];I.videoId=e.videoData.videoId;I.cpn=e.videoData.clientPlaybackNonce;I.sessionId=e.sessionId;I.licenseRequest=g.GM(L.message);I.drmParams=e.videoData.drmParams;isNaN(e.cryptoPeriodIndex)||(I.isKeyRotated=!0,I.cryptoPeriodIndex=e.cryptoPeriodIndex);var B,x,S=!!((B=e.videoData.K)==null?0:(x=B.video)==null?0:x.isHdr());I.drmVideoFeature=S?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";if(I.context&&I.context.client){if(B=e.XM.X)I.context.client.deviceMake=B.cbrand,I.context.client.deviceModel=B.cmodel,I.context.client.browserName=B.cbr,I.context.client.browserVersion=B.cbrver,I.context.client.osName=B.cos,I.context.client.osVersion=B.cosver;I.context.user=I.context.user||{};I.context.request=I.context.request||{};e.videoData.Ve&&(I.context.user.credentialTransferTokens=[{token:e.videoData.Ve,scope:"VIDEO"}]);I.context.request.mdxEnvironment=e.videoData.mdxEnvironment|| I.context.request.mdxEnvironment;e.videoData.RI&&(I.context.user.kidsParent={oauthToken:e.videoData.RI});g.Il(e.K)&&(I.fairplayKeyId=g.GM(ieM(e.fairplayKeyId)));g.bj(e.XM,g.xb(e.videoData)).then(function(h){I6M(L,I,c,h);e.status="rs"})}else e.error("drm.net",2,"t.r;ic.0")}; usf=function(e,L){if(!e.We())if(fO(e,{onlcsrsp:1}),e.status="rr",L.statusCode!==0)e.error("drm.auth",1,"t.f;c."+L.statusCode,L.errorMessage||void 0);else{AD("drm_kr_s",void 0,e.videoData.D);if(L.heartbeatParams&&L.heartbeatParams.url&&e.videoData.Y("outertube_streaming_data_always_use_staging_license_service")){var c=e.K.K.match(/(.*)youtube.com/g);c&&(L.heartbeatParams.url=c[0]+L.heartbeatParams.url)}L.heartbeatParams&&e.publish("newlicense",L.heartbeatParams);L.K&&(e.G=L.K,e.videoData.Ez||e.publish("newlicense", new Yir),e.videoData.Ez=!0,e.T=jW(e.G,function(I){return I.includes("HDR")})); L.X&&(e.XM.Y("html5_enable_vp9_fairplay")&&cr(e.K)?(c=g.GM(ieM(e.fairplayKeyId),4),e.X[c]={type:L.X[c],status:"unknown"}):e.X=B2(L.X,function(I){return{type:I,status:"unknown"}})); Ll(e.K)&&(L.message=jf$(g.GM(L.message)));e.Z&&(fO(e,{updtks:1}),e.status="ku",e.Z.update(L.message).then(function(){AD("drm_kr_f",void 0,e.videoData.D);A5(e)||(fO(e,{ksApiUnsup:1}),e.publish("keystatuseschange",e))},function(I){I="msuf.req."+e.requestNumber+";msg."+g.gR(I.message,3); e.error("drm.keyerror",1,I)})); g.Il(e.K)&&e.publish("fairplay_next_need_key_info",e.baseUrl,L.nextFairplayKeyId);e.XM.Y("html5_enable_vp9_fairplay")&&cr(e.K)&&e.publish("qualitychange",TPv(e.G));L.sabrLicenseConstraint&&e.publish("sabrlicenseconstraint",L.sabrLicenseConstraint)}}; txr=function(e,L){var c=L.X.getValue();c=new g.j9(function(){OIr(e,L)},c); g.l(e,c);c.start();g.Jx(L.X);fO(e,{rtyrq:1})}; Wqn=function(e,L){for(var c=[],I=g.f(Object.keys(e.X)),B=I.next();!B.done;B=I.next())B=B.value,c.push(B+"_"+e.X[B].type+"_"+e.X[B].status);return c.join(L)}; Mxf=function(e){var L={};L[e.status]=A5(e)?Wqn(e,"."):e.G.join(".");return L}; zxf=function(e,L,c){var I={};I.isHdr=L.includes("HDR");switch(L.replace("HDR","").replace("720","")){case "AUDIO":I.trackType=1;break;case "SD":I.trackType=2;break;case "HD":I.trackType=3;break;case "UHD1":I.trackType=4;break;case "UHD2":I.trackType=5;break;default:I.trackType=0}!I.trackType||c[L]||A5(e)&&!Fb(e,L)||(e.authorizedFormats.push(I),c[L]=!0)}; Fb=function(e,L){for(var c in e.X)if(e.X[c].status==="usable"&&e.X[c].type===L)return!0;return!1}; saJ=function(e,L){for(var c in e.X)if(e.X[c].type===L)return e.X[c].status}; fO=function(e,L){var c=c===void 0?!1:c;rr(L);(c||e.XM.oT())&&e.publish("ctmp","drmlog",L)}; vor=function(e){var L=e[0];e[0]=e[3];e[3]=L;L=e[1];e[1]=e[2];e[2]=L;L=e[4];e[4]=e[5];e[5]=L;L=e[6];e[6]=e[7];e[7]=L}; TPv=function(e){return g.Fh(e,"UHD2")||g.Fh(e,"UHD2HDR")?"highres":g.Fh(e,"UHD1")||g.Fh(e,"UHD1HDR")?"hd2160":g.Fh(e,"HD")||g.Fh(e,"HDHDR")?"hd1080":g.Fh(e,"HD720")||g.Fh(e,"HD720HDR")?"hd720":"large"}; Rxr=function(e){for(var L="",c=0;c'.charCodeAt(I);e=e.Z.createSession("video/mp4",L,c);return new bp(null,null,null,null,e)}; k0r=function(e,L){var c=e.j[L.sessionId];!c&&e.G&&(c=e.G,e.G=null,c.sessionId=L.sessionId,e.j[L.sessionId]=c);return c}; iI6=function(e,L){var c=e.subarray(4);c=new Uint16Array(c.buffer,c.byteOffset,c.byteLength/2);c=String.fromCharCode.apply(null,c).match(/ek=([0-9a-f]+)/)[1];for(var I="",B=0;B19.2999?(e=c.WK,c=c.yR,c>=e&&(c=e* .75),L=(e-c)*.5,c=new sf(L,e,e-L-c,this)):c=null;break a;case "widevine":c=new vH(L,this,e);break a;default:c=null}if(this.B=c)g.l(this,this.B),this.B.subscribe("rotated_need_key_info_ready",this.Xi,this),this.B.subscribe("log_qoe",this.Bv,this);ol(this.XM.experiments);this.Bv({cks:this.X.getInfo()})}; w5f=function(e){var L=bIv(e.G);L?L.then(mg(function(){Vxc(e)}),mg(function(c){if(!e.We()){g.A9(c); var I="t.a";c instanceof DOMException&&(I+=";n."+c.name+";m."+c.message);e.publish("licenseerror","drm.unavailable",1,I,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(e.Bv({mdkrdy:1}),e.D=!0); e.pS&&(L=bIv(e.pS))}; a6$=function(e,L,c){e.t7=!0;c=new zj(L,c);e.XM.Y("html5_eme_loader_sync")&&(e.j.get(L)||e.j.set(L,c));CWJ(e,c)}; CWJ=function(e,L){if(!e.We()){e.Bv({onInitData:1});if(e.XM.Y("html5_eme_loader_sync")&&e.videoData.Z&&e.videoData.Z.X){var c=e.T.get(L.initData);L=e.j.get(L.initData);if(!c||!L)return;L=c;c=L.initData;e.j.remove(c);e.T.remove(c)}e.Bv({initd:L.initData.length,ct:L.contentType});if(e.X.flavor==="widevine")if(e.Ve&&!e.videoData.isLivePlayback)gx(e);else{if(!(e.XM.Y("vp9_drm_live")&&e.videoData.isLivePlayback&&L.Gk)){e.Ve=!0;c=L.cryptoPeriodIndex;var I=L.X;p6T(L);L.Gk||(I&&L.X!==I?e.publish("ctmp","cpsmm", {emsg:I,pssh:L.X}):c&&L.cryptoPeriodIndex!==c&&e.publish("ctmp","cpimm",{emsg:c,pssh:L.cryptoPeriodIndex}));e.publish("widevine_set_need_key_info",L)}}else e.Xi(L)}}; Vxc=function(e){if(!e.We())if(e.XM.Y("html5_drm_set_server_cert")||cr(e.X)){var L=e.G.setServerCertificate();L?L.then(mg(function(c){e.XM.oT()&&e.publish("ctmp","ssc",{success:c})}),mg(function(c){e.publish("ctmp","ssce",{n:c.name, m:c.message})})).then(mg(function(){NPn(e)})):NPn(e)}else NPn(e)}; NPn=function(e){e.We()||(e.D=!0,e.Bv({onmdkrdy:1}),gx(e))}; mY$=function(e){return e.X.flavor==="widevine"&&e.videoData.Y("html5_drm_cpi_license_key")}; gx=function(e){if(e.t7&&e.D&&!e.k9){for(;e.Z.length;){var L=e.Z[0],c=mY$(e)?$hx(L):g.GM(L.initData);if(cr(e.X)&&!L.K)e.Z.shift();else{if(e.K.get(c))if(e.X.flavor!=="fairplay"||cr(e.X)){e.Z.shift();continue}else e.K.delete(c);p6T(L);break}}e.Z.length&&e.createSession(e.Z[0])}}; yrx=function(e){var L;if(L=g.m2()){var c;L=!((c=e.G.K)==null||!c.getMetrics)}L&&(L=e.G.getMetrics())&&(L=g.uG(L),e.publish("ctmp","drm",{metrics:L}))}; ZIM=function(){var e=mkx();return!(!e||e==="visible")}; $Yr=function(e){var L=p5$();L&&document.addEventListener(L,e,!1)}; jaR=function(e){var L=p5$();L&&document.removeEventListener(L,e,!1)}; p5$=function(){if(document.visibilityState)var e="visibilitychange";else{if(!document[oG+"VisibilityState"])return"";e=oG+"visibilitychange"}return e}; HIf=function(e){g.p.call(this);var L=this;this.zm=e;this.Xg=0;this.j=this.K=this.B=!1;this.G=0;this.UW=this.zm.S();this.videoData=this.zm.getVideoData();this.Z=g.X3(this.UW.experiments,"html5_delayed_retry_count");this.X=new g.j9(function(){L.zm.GY()},g.X3(this.UW.experiments,"html5_delayed_retry_delay_ms")); g.l(this,this.X)}; UYx=function(e,L,c){var I=e.videoData.K,B=e.videoData.G,x=e.UW.Y("html5_disable_codec_fallback_for_drm")&&e.videoData.cg();A1(e.zm.getVideoData())&&e.UW.Y("html5_gapless_fallback_on_qoe_restart")&&EDr(e.zm,"pe");if((L==="progressive.net.retryexhausted"||L==="fmt.unplayable"||L==="fmt.decode")&&!e.zm.n2.B&&I&&I.itag==="22")return e.zm.n2.B=!0,e.Zg("qoe.restart",{reason:"fmt.unplayable.22"}),e.zm.m5(),!0;var S=!1;if(e.videoData.isExternallyHostedPodcast){if(S=e.videoData.Hb$)c.mimeType=S.type,e.sW("3pp", {url:S.url});c.ns="3pp";e.zm.BM(L,1,"VIDEO_UNAVAILABLE",rr((new g.hQ(L,c,1)).details));return!0}var h=e.Xg+3E4<(0,g.zI)()||e.X.isActive();if(e.UW.Y("html5_empty_src")&&e.videoData.isAd()&&L==="fmt.unplayable"&&/Empty src/.test(""+c.msg))return c.origin="emptysrc",e.Zg("auth",c),!0;h||l6H(e.zm.cq())||(c.nonfg="paused",h=!0,e.zm.pauseVideo());(L==="fmt.decode"||L==="fmt.unplayable")&&(B==null?0:JQ(B)||Vd(B))&&(Lpr(e.UW.B,B.EW),c.acfallexp=B.EW,S=h=!0);!h&&e.Z>0&&(e.X.start(),h=!0,c.delayed="1",--e.Z); B=e.zm.loader;h||!((I==null?0:wr(I))||(I==null?0:gr(I)))||x||(Lpr(e.UW.B,I.EW),S=h=!0,c.cfallexp=I.EW);if(!h)return PWR(e,c);x=!1;e.B?e.Xg=(0,g.zI)():x=e.B=!0;h=e.videoData;if(h.m$){h=h.m$.wH();var R=Date.now()/1E3+1800;h=h6048E5&&YwM(e,"signature");return!1}; YwM=function(e,L){try{L={detail:"pr."+L},g.Oj(e.UW)&&e.UW.Y("html5_reload_by_kabuki_app")?e.zm.BM("qoe.restart",1,void 0,rr(L),"7"):(e.Zg("qoe.restart",L),window.location.reload())}catch(c){}}; efJ=function(e,L){var c=e.UW.B;c.T=!1;c.K=!0;e.Zg("qoe.restart",{e:L===void 0?"fmt.noneavailable":L,detail:"hdr"});e.zm.GY(!0)}; LEc=function(e,L,c,I,B,x){this.videoData=e;this.X=L;this.reason=c;this.K=I;this.token=B;this.videoId=x}; kV=function(e,L,c){this.XM=e;this.PB=L;this.zm=c;this.J=this.j=this.X=this.G=this.T=this.K=0;this.B=!1;this.D=g.X3(this.XM.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.Z=new Map}; IpH=function(e,L,c){!e.XM.Y("html5_tv_ignore_capable_constraint")&&g.R2(e.XM)&&(c=c.compose(c5M(e,L)));return c}; Bxv=function(e){if(e.zm.cq().isInline())return h1;var L;e.Y("html5_exponential_memory_for_sticky")?L=Hr(e.XM.Mv,"sticky-lifetime")<.5?"auto":Ae[rV()]:L=Ae[rV()];return g.sg("auto",L,!1,"s")}; oVn=function(e,L){var c,I=x0H(e,(c=L.X)==null?void 0:c.videoInfos);c=e.zm.getPlaybackRate();return c>1&&I?(e=KlJ(e.XM.B,L.X.videoInfos,c),new zv(0,e,!0,"o")):new zv(0,0,!1,"o")}; x0H=function(e,L){return L&&g.R2(e.XM)?L.some(function(c){return c.video.fps>32}):!1}; Sfr=function(e,L){if(e.Y("html5_disable_ustreamer_constraint_for_sabr")&&GN(L.videoData))return h1;var c=e.zm.dF();e.Y("html5_use_video_quality_cap_for_ustreamer_constraint")&&c&&c.WA>0&&fX(L.videoData.Dv)&&(e=c.WA,L.videoData.Dv=new zv(0,e,!1,"u"));return L.videoData.Dv}; c5M=function(e,L){if(g.R2(e.XM)&&NB(e.XM.B,mJ.HEIGHT))var c=L.X.videoInfos[0].video.qualityOrdinal;else{var I=e.Ad(!!L.X.X);FU(L.videoData)||r5(L.videoData);L=L.X.videoInfos;if(L.length){var B=g.X3(e.XM.experiments,"html5_override_oversend_fraction")||.85,x=L[0].video;x.projectionType!=="MESH"&&x.projectionType!=="EQUIRECTANGULAR"&&x.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||Kl||(B=.45);e=g.X3(e.XM.experiments,"html5_viewport_undersend_maximum");for(x=0;x0&&(c=Math.min(c,I));if(I=g.X3(e.XM.experiments,"html5_max_vertical_resolution")){e=4320;for(B=0;BI&&(e=Math.min(e,x.video.qualityOrdinal));if(e<4320){for(B=I=0;B32){B=!0;break a}}B=!1}B&&(c=Math.min(c,I));(I=g.X3(e.XM.experiments,"html5_live_quality_cap"))&&L.videoData.isLivePlayback&&(c=Math.min(c,I));c=hfH(e,L,c);e=g.X3(e.XM.experiments,"html5_byterate_soft_cap");return new zv(0,c===4320?0:c,!1,"d",e)}; ubJ=function(e){var L,c,I,B;return g.Z(function(x){switch(x.K){case 1:return e.X.X&&typeof((L=navigator.mediaCapabilities)==null?void 0:L.decodingInfo)==="function"?g.a(x,Promise.resolve(),2):x.return(Promise.resolve());case 2:c=g.f(e.X.videoInfos),I=c.next();case 3:if(I.done){x.Iq(0);break}B=I.value;return g.a(x,VHn(B),4);case 4:I=c.next(),x.Iq(3)}})}; OO6=function(e,L){if(!L.videoData.K||e.Y("html5_disable_performance_downgrade"))return!1;Date.now()-e.T>6E4&&(e.K=0);e.K++;e.T=Date.now();if(e.K!==4)return!1;tkR(e,L.videoData.K);return!0}; Tx6=function(e,L,c,I){if(!L||!c||!L.videoData.K)return!1;var B=g.X3(e.XM.experiments,"html5_df_downgrade_thresh"),x=e.Y("html5_log_media_perf_info");if(!((0,g.zI)()-e.G<5E3?0:x||B>0))return!1;var S=((0,g.zI)()-e.G)/1E3;e.G=(0,g.zI)();c=c.getVideoPlaybackQuality();if(!c)return!1;var h=c.droppedVideoFrames-e.j,R=c.totalVideoFrames-e.J;e.j=c.droppedVideoFrames;e.J=c.totalVideoFrames;var u=c.displayCompositedVideoFrames===0?0:c.displayCompositedVideoFrames||-1;x&&e.XM.oT()&&e.zm.sW("ddf",{dr:c.droppedVideoFrames, de:c.totalVideoFrames,comp:u});if(I)return e.X=0,!1;if((R-h)/S>e.D||!B||g.R2(e.XM))return!1;e.X=(R>60?h/R:0)>B?e.X+1:0;if(e.X!==3)return!1;tkR(e,L.videoData.K);e.zm.sW("dfd",Object.assign({dr:c.droppedVideoFrames,de:c.totalVideoFrames},qff()));return!0}; tkR=function(e,L){var c=L.EW,I=L.video.fps,B=L.video.qualityOrdinal-1,x=e.Z;L=""+c+(I>49?"p60":I>32?"p48":"");c=UY(c,I,x);B>0&&(c=Math.min(c,B));if(!Dp.has(L)&&uJ().includes(L)){var S=c;c=Ry();+c[L]>0&&(S=Math.min(+c[L],S));c[L]!==S&&(c[L]=S,g.bS("yt-player-performance-cap",c,2592E3))}else if(Dp.has(L)||x==null){a:{S=S===void 0?!0:S;I=uJ().slice();if(S){if(I.includes(L))break a;I.push(L)}else{if(!I.includes(L))break a;I.splice(I.indexOf(L),1)}g.bS("yt-player-performance-cap-active-set",I,2592E3)}dE.set(L, c)}else Dp.add(L),x==null||x.set(L,c);e.zm.kY()}; WEM=function(e,L){if(!L.X.X)return e.B?new zv(0,360,!1,"b"):h1;for(var c=!1,I=!1,B=g.f(L.X.videoInfos),x=B.next();!x.done;x=B.next())wr(x.value)?c=!0:I=!0;c=c&&I;I=0;B=g.X3(e.XM.experiments,"html5_performance_cap_floor");B=e.XM.K?240:B;L=g.f(L.X.videoInfos);for(x=L.next();!x.done;x=L.next()){var S=x.value;if(!c||!wr(S))if(x=UY(S.EW,S.video.fps,e.Z),S=S.video.qualityOrdinal,Math.max(x,B)>=S){I=S;break}}return new zv(0,I,!1,"b")}; MkT=function(e,L){var c=e.zm.cq();return c.isInline()&&!L.ji?new zv(0,480,!1,"v"):GN(L)?h1:c.isBackground()&&qc()/1E3>60&&!g.R2(e.XM)?new zv(0,360,!1,"v"):h1}; zfJ=function(e,L,c){if(e.XM.experiments.N0("html5_disable_client_autonav_cap_for_onesie")&&L.fetchType==="onesie"||g.R2(e.XM)&&(rV(-1)>=1080||L.osid))return h1;var I=g.X3(e.XM.experiments,"html5_autonav_quality_cap"),B=g.X3(e.XM.experiments,"html5_autonav_cap_idle_secs");return I&&L.isAutonav&&qc()/1E3>B?(c&&(I=hfH(e,c,I)),new zv(0,I,!1,"e")):h1}; hfH=function(e,L,c){if(e.Y("html5_optimality_defaults_chooses_next_higher")&&c)for(e=L.X.videoInfos,L=1;L=0||(e.provider.zm.getVisibilityState()===3?e.B=!0:(e.X=g.up(e.provider),e.delay.start()))}; fpJ=function(e){if(!(e.K<0)){var L=g.up(e.provider),c=L-e.G;e.G=L;e.playerState.state===8?e.playTimeSecs+=c:e.playerState.isBuffering()&&!g.E(e.playerState,16)&&(e.rebufferTimeSecs+=c)}}; A5n=function(e){var L;switch((L=e.XM.playerCanaryStage)==null?void 0:L.toLowerCase()){case "xsmall":return"HTML5_PLAYER_CANARY_STAGE_XSMALL";case "small":return"HTML5_PLAYER_CANARY_STAGE_SMALL";case "medium":return"HTML5_PLAYER_CANARY_STAGE_MEDIUM";case "large":return"HTML5_PLAYER_CANARY_STAGE_LARGE";default:return"HTML5_PLAYER_CANARY_STAGE_UNSPECIFIED"}}; FEM=function(e){this.provider=e;this.T=!1;this.X=0;this.G=-1;this.GA=NaN;this.Z=0;this.segments=[];this.j=this.B=0;this.previouslyEnded=!1;this.D=this.provider.zm.getVolume();this.J=this.provider.zm.isMuted()?1:0;this.K=J5(this.provider)}; Vn=function(e){e.K.startTime=e.Z;e.K.endTime=e.X;var L=!1;e.segments.length&&g.zL(e.segments).isEmpty()?(e.segments[e.segments.length-1].previouslyEnded&&(e.K.previouslyEnded=!0),e.segments[e.segments.length-1]=e.K,L=!0):e.segments.length&&e.K.isEmpty()||(e.segments.push(e.K),L=!0);L?e.K.endTime===0&&(e.previouslyEnded=!1):e.K.previouslyEnded&&(e.previouslyEnded=!0);e.B+=e.X-e.Z;e.K=J5(e.provider);e.K.previouslyEnded=e.previouslyEnded;e.previouslyEnded=!1;e.Z=e.X}; iOR=function(e){bOH(e);e.j=g.SG(function(){e.update()},100); e.GA=g.up(e.provider);e.K=J5(e.provider)}; bOH=function(e){g.hF(e.j);e.j=NaN}; GPT=function(e,L,c){c-=e.GA;return L===e.X&&c>.5}; gVx=function(e,L,c,I){this.XM=L;this.Q5=c;this.segments=[];this.experimentIds=[];this.m$=this.Cf=this.isFinal=this.delayThresholdMet=this.RT=this.g0=this.autoplay=this.autonav=!1;this.xT="yt";this.j=[];this.T=this.D=null;this.sendVisitorIdHeader=this.d_=!1;this.J=this.pageId="";this.B=c==="watchtime";this.Z=c==="playback";this.k9=c==="atr";this.Nl=c==="engage";this.sendVisitorIdHeader=!1;this.uri=this.k9?"/api/stats/"+c:"//"+L.kV+"/api/stats/"+c;I&&(this.Cf=I.fs,I.rtn&&(this.T=I.rtn),this.B?(this.playerState= I.state,I.rti>0&&(this.D=I.rti)):(this.OF=I.mos,this.tj=I.volume,I.at&&(this.adType=I.at)),I.autonav&&(this.autonav=I.autonav),I.inview!=null&&(this.RI=I.inview),I.size&&(this.Bw=I.size),I.playerwidth&&(this.Mv=I.playerwidth),I.playerheight&&(this.Yf=I.playerheight));this.IU=g.MQ(L.X);this.J=qX(L.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.J==="all"||this.J==="once")this.gT=g.MQ(L.RT);this.Cj=L.xT;this.experimentIds=dpr(L.experiments);this.He=L.XD;this.xT=L.pS;this.region=L.region; this.userAge=L.userAge;this.x9=L.aF;this.f9=qc();this.sendVisitorIdHeader=L.sendVisitorIdHeader;this.Ve=L.Y("vss_pings_using_networkless")||L.Y("kevlar_woffle");this.gZ=L.Y("vss_final_ping_send_and_write");this.ye=L.Y("vss_use_send_and_write");this.pageId=L.pageId;this.Ft=L.Y("vss_playback_use_send_and_write");L.livingRoomAppMode&&(this.livingRoomAppMode=L.livingRoomAppMode);this.PM=L.G&&L.Y("embeds_append_synth_ch_headers");g.Uh(L)&&(this.t7=L.k9);g.cI(g.ID(L))&&this.j.push(1);this.accessToken=g.xb(e); e.qk[this.Q5]?this.G=e.qk[this.Q5]:e.qk.playback&&(this.G=e.qk.playback);this.adFormat=e.adFormat;this.adQueryId=e.adQueryId;this.autoplay=dS6(e);this.Z&&(this.g0=e.O5&&L2(e)==="adunit"?!0:!1);this.autonav=e.isAutonav||this.autonav;this.contentVideoId=IR(e);this.clientPlaybackNonce=e.clientPlaybackNonce;this.RT=e.xx;e.j&&(this.h7=e.j,this.Kf=e.Xd);e.mdxEnvironment&&(this.mdxEnvironment=e.mdxEnvironment);this.X=e.FD;this.sY=e.sY;e.K&&(this.XD=e.K.itag,e.G&&e.G.itag!==this.XD&&(this.DY=e.G.itag));e.X&& gV(e.X)&&(this.offlineDownloadUserChoice="1");this.eventLabel=L2(e);this.m$=e.Ft?!1:e.tj;this.FD=e.ij;if(L=$$(e))this.sK=L;this.pj=e.Ee;this.partnerId=e.partnerId;this.eventId=e.eventId;this.playlistId=e.H7||e.playlistId;this.J$=e.J$;this.s9=e.s9;this.Ne=e.Ne;this.tO=e.tO;this.subscribed=e.subscribed;this.videoId=e.videoId;this.videoMetadata=e.videoMetadata;this.visitorData=e.visitorData;this.osid=e.osid;this.iS=e.iS;this.referrer=e.referrer;this.kV=e.OH||e.kV;this.Sl=e.zT;this.jw=e.jw;this.userGenderAge= e.userGenderAge;this.iZ=e.iZ;this.embedsRct=e.embedsRct;this.embedsRctn=e.embedsRctn;g.Uh(this.XM)&&e.mutedAutoplay&&(e.mutedAutoplayDurationMode===2&&e.limitedPlaybackDurationInSeconds===0&&e.endSeconds===0?this.j.push(7):this.j.push(2));e.isEmbedsShortsMode(new g.dz(this.Mv,this.Yf),!!this.playlistId)&&this.j.push(3);g.TC(e)&&this.j.push(4);this.Pe=e.Xn;e.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=e.compositeLiveIngestionOffsetToken)}; kPc=function(e,L){var c=e.sendVisitorIdHeader?e.visitorData:void 0;return g.bj(e.XM,e.accessToken).then(function(I){return VIr(e.uri,e.XM,e.pageId,c,I,L,e.PM)})}; J5c=function(e,L){return function(){e.XM.Y("html5_simplify_pings")?(e.X=e.Y9,e.m1=L(),e.f9=0,e.send()):kPc(e).then(function(c){var I=D0c(e);I.cmt=I.len;I.lact="0";var B=L().toFixed(3);I.rt=Number(B).toString();I=g.WO(e.uri,I);e.XM.Y("vss_through_gel_double")&&wHH(I);e.Ve?(c==null&&(c={}),e.ye?yo().sendAndWrite(I,c):yo().sendThenWrite(I,c)):c?g.W3(I,c):g.gO(I)})}}; D0c=function(e){var L={ns:e.xT,el:e.eventLabel,cpn:e.clientPlaybackNonce,ver:2,cmt:e.K(e.X),fmt:e.XD,fs:e.Cf?"1":"0",rt:e.K(e.m1),adformat:e.adFormat,content_v:e.contentVideoId,euri:e.Cj,lact:e.f9,live:e.sK,cl:(780767961).toString(),mos:e.OF,state:e.playerState,volume:e.tj};e.subscribed&&(L.subscribed="1");Object.assign(L,e.IU);e.J==="all"?Object.assign(L,e.gT):e.J==="once"&&e.Z&&Object.assign(L,e.gT);e.autoplay&&(L.autoplay="1");e.g0&&(L.sautoplay="1");e.RT&&(L.dni="1");!e.B&&e.t7&&(L.epm=Vk$[e.t7]); e.isFinal&&(L["final"]="1");e.m$&&(L.splay="1");e.sY&&(L.delay=e.sY);e.He&&(L.hl=e.He);e.region&&(L.cr=e.region);e.userGenderAge&&(L.uga=e.userGenderAge);e.userAge!==void 0&&e.x9&&(L.uga=e.x9+e.userAge);e.Y9!==void 0&&(L.len=e.K(e.Y9));!e.B&&e.experimentIds.length>0&&(L.fexp=e.experimentIds.toString());e.T!==null&&(L.rtn=e.K(e.T));e.kV&&(L.feature=e.kV);e.s9&&(L.ctrl=e.s9);e.Ne&&(L.ytr=e.Ne);e.DY&&(L.afmt=e.DY);e.offlineDownloadUserChoice&&(L.ODUC=e.offlineDownloadUserChoice);e.pS&&(L.lio=e.K(e.pS)); e.B?(L.idpj=e.FD,L.ldpj=e.pj,e.delayThresholdMet&&(L.dtm="1"),e.D!=null&&(L.rti=e.K(e.D)),e.iZ&&(L.ald=e.iZ),e.compositeLiveIngestionOffsetToken&&(L.clio=e.compositeLiveIngestionOffsetToken)):e.adType!==void 0&&(L.at=e.adType);e.Bw&&(e.Z||e.B)&&(L.size=e.Bw);e.Z&&e.j.length&&(L.pbstyle=e.j.join(","));e.RI!=null&&(e.Z||e.B)&&(L.inview=e.K(e.RI));e.B&&(L.volume=CO(e,g.Mt(e.segments,function(I){return I.volume})),L.st=CO(e,g.Mt(e.segments,function(I){return I.startTime})),L.et=CO(e,g.Mt(e.segments,function(I){return I.endTime})), jW(e.segments,function(I){return I.playbackRate!==1})&&(L.rate=CO(e,g.Mt(e.segments,function(I){return I.playbackRate}))),jW(e.segments,function(I){return I.X!=="-"})&&(L.als=g.Mt(e.segments,function(I){return I.X}).join(",")),jW(e.segments,function(I){return I.previouslyEnded})&&(L.pe=g.Mt(e.segments,function(I){return""+ +I.previouslyEnded}).join(","))); L.muted=CO(e,g.Mt(e.segments,function(I){return I.muted?1:0})); jW(e.segments,function(I){return I.visibilityState!==0})&&(L.vis=CO(e,g.Mt(e.segments,function(I){return I.visibilityState}))); jW(e.segments,function(I){return I.connectionType!==0})&&(L.conn=CO(e,g.Mt(e.segments,function(I){return I.connectionType}))); jW(e.segments,function(I){return I.K!==0})&&(L.blo=CO(e,g.Mt(e.segments,function(I){return I.K}))); jW(e.segments,function(I){return!!I.Z})&&(L.blo=g.Mt(e.segments,function(I){return I.Z}).join(",")); jW(e.segments,function(I){return!!I.compositeLiveStatusToken})&&(L.cbs=g.Mt(e.segments,function(I){return I.compositeLiveStatusToken}).join(",")); jW(e.segments,function(I){return I.G!=="-"})&&(L.cc=g.Mt(e.segments,function(I){return I.G}).join(",")); jW(e.segments,function(I){return I.clipId!=="-"})&&(L.clipid=g.Mt(e.segments,function(I){return I.clipId}).join(",")); if(jW(e.segments,function(I){return!!I.audioId})){var c="au"; e.Z&&(c="au_d");L[c]=g.Mt(e.segments,function(I){return I.audioId}).join(",")}nT()&&e.h7&&(L.ctt=e.h7,L.cttype=e.Kf,L.mdx_environment=e.mdxEnvironment); e.Nl&&(L.etype=e.Gm!==void 0?e.Gm:0);e.Sl&&(L.uoo=e.Sl);e.livingRoomAppMode&&e.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(L.clram=CpT[e.livingRoomAppMode]||e.livingRoomAppMode);e.G?apn(e,L):(L.docid=e.videoId,L.referrer=e.referrer,L.ei=e.eventId,L.of=e.iS,L.osid=e.osid,L.vm=e.videoMetadata,e.adQueryId&&(L.aqi=e.adQueryId),e.autonav&&(L.autonav="1"),e.playlistId&&(L.list=e.playlistId),e.tO&&(L.ssrt="1"),e.jw&&(L.upt=e.jw));e.Z&&(e.embedsRct&&(L.rct=e.embedsRct),e.embedsRctn&&(L.rctn= e.embedsRctn),e.compositeLiveIngestionOffsetToken&&(L.clio=e.compositeLiveIngestionOffsetToken));e.Pe&&(L.host_cpn=e.Pe);return L}; apn=function(e,L){if(L&&e.G){var c=new Set(["q","feature","mos"]),I=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),B=new Set(["aqi","autonav","list","ssrt","upt"]);e.G.ns==="3pp"&&(L.ns="3pp");for(var x=g.f(Object.keys(e.G)),S=x.next();!S.done;S=x.next())S=S.value,I.has(S)||c.has(S)||B.has(S)&&!e.G[S]||(L[S]=e.G[S])}}; CO=function(e,L){return g.Mt(L,e.K).join(",")}; wHH=function(e){e.indexOf("watchtime")!==-1&&g.et("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:e}})}; Nxn=function(e,L){e.attestationResponse&&kPc(e).then(function(c){c=c||{};c.method="POST";c.postParams={atr:e.attestationResponse};e.Ve?e.ye?yo().sendAndWrite(L,c):yo().sendThenWrite(L,c):g.W3(L,c)})}; a1=function(e){g.p.call(this);this.provider=e;this.j="paused";this.B=NaN;this.T=[10,10,10,40];this.D=this.J=0;this.h7=this.k9=this.Gm=this.pS=this.Z=!1;this.K=this.G=NaN;this.logger=new g.tB("vss");this.X=new FEM(e)}; $0c=function(e){if(!e.Z){e.provider.videoData.PP===16623&&g.F7(Error("Playback for EmbedPage"));var L=N0(e,"playback");e.T=m0T(e);iOR(e.X);L.T=mE(e);e.K>0&&(L.X-=e.K);L.send();if(e.provider.videoData.PK){L=e.provider.XM;var c=e.provider.videoData,I={html5:"1",video_id:c.videoId,cpn:c.clientPlaybackNonce,ei:c.eventId,ptk:c.PK,oid:c.PA,ptchn:c.Qj,pltype:c.CM,content_v:IR(c)};c.cK&&Object.assign(I,{m:c.cK});L=g.WO(L.PU+"ptracking",I);y56(e,L)}e.provider.videoData.sY||(ZOR(e),pHc(e));e.Z=!0;e=e.X;e.X= e.RO();e.GA=g.up(e.provider);!(e.Z===0&&e.X<5)&&e.X-e.Z>2&&(e.Z=e.X);e.T=!0}}; m0T=function(e){var L=e.provider.videoData.ij,c=e.provider.videoData.Ee,I=[10+L,10,10,40+c-L,40],B,x=(B=e.provider.videoData.getPlayerResponse())==null?void 0:B.playbackTracking,S=x==null?void 0:x.videostatsScheduledFlushWalltimeSeconds;B=x==null?void 0:x.videostatsDefaultFlushIntervalSeconds;if(!(S&&S.length>0&&B))return e.logger.info("Missing valid scheduled pings config "+S+" "+B),I;L=[S[0]+L].concat(g.V(S.slice(1).map(function(h,R){return h-S[R]})),[B+c-L, B]);return L.some(function(h){return h<0})?(e.logger.X(347111855,"Neg vss scheduled pings "+S+" "+B),I):L}; mE=function(e,L){L=L===void 0?NaN:L;var c=g.up(e.provider);L=isNaN(L)?c:L;L=Math.ceil(L);var I=e.T[e.J];e.J+11E3;!(x.length>1)&&x[0].isEmpty()||h||(S.T=mE(e,B));S.send();e.D++}},(B-c)*1E3); return e.G=B}; yn=function(e){g.ra(e.B);e.B=NaN}; j1J=function(e){e.X.update();e=e.X;e.segments.length&&e.X===e.Z||Vn(e);var L=e.segments;e.segments=[];return L}; N0=function(e,L){var c=lpn(e.provider);Object.assign(c,{state:e.j});L=new gVx(e.provider.videoData,e.provider.XM,L,c);L.X=e.provider.zm.RO();c=e.provider.videoData.clientPlaybackNonce;L.X=e.provider.zm.uK(c);e.provider.videoData.isLivePlayback||(L.Y9=e.provider.zm.getDuration(c));e.provider.videoData.X&&(c=e.provider.videoData.X.sR(L.X))&&(L.pS=c-L.X,e.provider.XM.Y("html5_disable_live_dvr_shrink_for_cdm_vss")&&i8(e.provider.videoData)&&(L.X+=e.provider.zm.FF(),L.pS-=e.provider.zm.FF()));L.m1=g.up(e.provider); L.segments=[J5(e.provider)];return L}; HOc=function(e,L){var c=N0(e,"watchtime");PpR(e)&&(c.delayThresholdMet=!0,e.Gm=!0);if(e.K>0){for(var I=g.f(L),B=I.next();!B.done;B=I.next())B=B.value,B.startTime-=e.K,B.endTime-=e.K;c.X-=e.K}else c.X=e.X.X;c.segments=L;return c}; Zp=function(e,L){var c=Q1$(e,!isNaN(e.G));L&&(e.G=NaN);return c}; Q1$=function(e,L){var c=HOc(e,j1J(e));!isNaN(e.G)&&L&&(c.D=e.G);return c}; PpR=function(e){var L;if(L=e.provider.videoData.isLoaded()&&e.provider.videoData.sY&&e.Z&&!e.Gm)L=e.X,L=L.B+L.RO()-L.Z>=e.provider.videoData.sY;return!!L}; ZOR=function(e){e.provider.videoData.youtubeRemarketingUrl&&!e.k9&&(y56(e,e.provider.videoData.youtubeRemarketingUrl),e.k9=!0)}; pHc=function(e){e.provider.videoData.googleRemarketingUrl&&!e.h7&&(y56(e,e.provider.videoData.googleRemarketingUrl),e.h7=!0)}; d0c=function(e){if(!e.We()&&e.Z){e.j="paused";var L=Zp(e);L.isFinal=!0;L.send();e.dispose()}}; U0M=function(e,L){if(!e.We())if(g.E(L.state,2)||g.E(L.state,512)){if(e.j="paused",g.or(L,2)||g.or(L,512))g.or(L,2)&&(e.X.previouslyEnded=!0),e.Z&&(yn(e),Zp(e).send(),e.G=NaN)}else if(g.E(L.state,8)){e.j="playing";var c=e.Z&&isNaN(e.B)?mE(e):NaN;if(!isNaN(c)&&(xw(L,64)<0||xw(L,512)<0)){var I=Q1$(e,!1);I.T=c;I.send()}g.or(L,16)&&L.state.seekSource===58&&(e.X.previouslyEnded=!0)}else e.j="paused"}; EVc=function(e,L,c){if(!e.pS){c||(c=N0(e,"atr"));c.attestationResponse=L;try{c.send()}catch(I){if(I.message!=="Unknown Error")throw I;}e.pS=!0}}; y56=function(e,L){var c=e.provider.XM;g.bj(e.provider.XM,g.xb(e.provider.videoData)).then(function(I){var B=e.provider.XM.pageId,x=e.provider.XM.sendVisitorIdHeader?e.provider.videoData.visitorData:void 0,S=e.provider.XM.Y("vss_pings_using_networkless")||e.provider.XM.Y("kevlar_woffle"),h=e.provider.XM.Y("allow_skip_networkless");I=VIr(L,c,B,x,I);C8c(L,I,{token:e.provider.videoData.j,DR:e.provider.videoData.Xd,mdxEnvironment:e.provider.videoData.mdxEnvironment},c,void 0,S&&!h,!1,!0)})}; XH$=function(){this.endTime=this.startTime=-1;this.G="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.K=0;this.compositeLiveStatusToken=this.Z=void 0;this.volume=this.connectionType=0;this.muted=!1;this.X=this.clipId="-";this.previouslyEnded=!1}; pO=function(e,L,c){this.videoData=e;this.XM=L;this.zm=c;this.X=void 0}; g.up=function(e){return KEx(e)()}; KEx=function(e){if(!e.X){var L=g.u7(function(I){var B=(0,g.zI)();I&&B<=631152E6&&(e.zm.sW("ytnerror",{issue:28799967,value:""+B}),B=(new Date).getTime()+2);return B},e.XM.Y("html5_validate_yt_now")),c=L(); e.X=function(){return Math.round(L()-c)/1E3}; e.zm.au()}return e.X}; lpn=function(e){var L=e.zm.W1()||{};L.fs=e.zm.s5();L.volume=e.zm.getVolume();L.muted=e.zm.isMuted()?1:0;L.mos=L.muted;L.clipid=e.zm.ow();var c;L.playerheight=((c=e.zm.getPlayerSize())==null?void 0:c.height)||0;var I;L.playerwidth=((I=e.zm.getPlayerSize())==null?void 0:I.width)||0;e=e.videoData;c={};e.K&&(c.fmt=e.K.itag,e.G&&(e.Q5?e.G.itag!==e.K.itag:e.G.itag!=e.K.itag)&&(c.afmt=e.G.itag));c.ei=e.eventId;c.list=e.playlistId;c.cpn=e.clientPlaybackNonce;e.videoId&&(c.v=e.videoId);e.rp&&(c.infringe=1); (e.Ft?0:e.tj)&&(c.splay=1);(I=$$(e))&&(c.live=I);e.O5&&(c.sautoplay=1);e.h9&&(c.autoplay=1);e.J$&&(c.sdetail=e.J$);e.partnerId&&(c.partnerid=e.partnerId);e.osid&&(c.osid=e.osid);e.YC&&(c.cc=g.zKc(e.YC));return Object.assign(L,c)}; lIc=function(e){var L=k1J();if(L)return YfJ[L]||YfJ.other;if(g.R2(e.XM)){e=navigator.userAgent;if(/[Ww]ireless[)]/.test(e))return 3;if(/[Ww]ired[)]/.test(e))return 30}return 0}; J5=function(e){var L=new XH$,c;L.G=((c=lpn(e).cc)==null?void 0:c.toString())||"-";L.playbackRate=e.zm.getPlaybackRate();c=e.zm.getVisibilityState();c!==0&&(L.visibilityState=c);e.XM.Sl&&(L.K=1);L.Z=e.videoData.Cw;L.compositeLiveStatusToken=e.videoData.compositeLiveStatusToken;c=e.zm.getAudioTrack();c.l5&&c.l5.id&&c.l5.id!=="und"&&(L.audioId=c.l5.id);L.connectionType=lIc(e);L.volume=e.zm.getVolume();L.muted=e.zm.isMuted();L.clipId=e.zm.ow()||"-";L.X=e.videoData.D5||"-";return L}; g.$V=function(e,L){g.p.call(this);var c=this;this.provider=e;this.Z=new Map;this.mZ=new g.WX;this.kx={L5$:function(){return c.qoe}, UaM:function(){return c.X}, PZM:function(){return c.K}}; this.provider.videoData.Hd()&&!this.provider.videoData.Z2&&(this.X=new a1(this.provider),this.X.K=0,g.l(this,this.X),this.qoe=new g.h5(this.provider,L),g.l(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.sU=this.provider.videoData.clientPlaybackNonce)&&this.Z.set(this.sU,this.X));if(e.XM.playerCanaryState==="canary"||e.XM.playerCanaryState==="holdback")this.K=new wx(this.provider),g.l(this,this.K)}; nVc=function(e){e.K&&vVn(e.K);e.qoe&&ez$(e.qoe)}; eRM=function(e){if(e.qoe){e=e.qoe;for(var L=e.provider.videoData,c=e.provider.XM,I=g.f(c.FR),B=I.next();!B.done;B=I.next())Of(e,B.value);if(e.provider.Y("html5_enable_qoe_cat_list"))for(I=g.f(L.V6),B=I.next();!B.done;B=I.next())Of(e,B.value);else L.FR&&Of(e,e.provider.videoData.FR);L.Wy()&&(I=L.X,J1(L)&&Of(e,"manifestless"),I&&pk(I)&&Of(e,"live-segment-"+pk(I).toFixed(1)));GN(L)?Of(e,"sabr"):e.p$(aI(L));if(oR(L)||L.GI())L.GI()&&Of(e,"ssa"),Of(e,"lifa");i8(L)&&Of(e,"cdm");L.gatewayExperimentGroup&& (I=L.gatewayExperimentGroup,I==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?I="spkadtrt":I==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(I="spkadctrl"),Of(e,I));c.pS!=="yt"&&e.X.set("len",[L.lengthSeconds.toFixed(2)]);L.cotn&&!r5(L)&&e.Ga(!0);c.oT()&&(L=$DR())&&e.sW("cblt",{m:L});if(c.Y("html5_log_screen_diagonal")){c=e.sW;var x;L=((x=window.H5vccScreen)==null?0:x.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;c.call(e,"cbltdiag",{v:L})}}}; L4M=function(e,L){e.X&&(e=e.X,L===58?e.X.update():e.Z&&(yn(e),Zp(e).send(),e.G=NaN))}; c2v=function(e,L){if(g.or(L,1024)||g.or(L,512)||g.or(L,4)){if(e.K){var c=e.K;c.K>=0||(c.X=-1,c.delay.stop())}e.qoe&&(c=e.qoe,c.T||(c.Z=-1))}if(e.provider.videoData.enableServerStitchedDai&&e.sU){var I;(I=e.Z.get(e.sU))==null||U0M(I,L)}else e.X&&U0M(e.X,L);if(e.qoe){I=e.qoe;c=L.state;var B=g.up(I.provider),x=I.getPlayerState(c),S=c.seekSource||void 0;if(x!==I.mZ){I.Gm||B= 10&&I.playTimeSecs<=180&&(I.X.set("qoealert",["1"]),I.sY=!0)),x!=="B"||I.mZ!=="PL"&&I.mZ!=="PB"||(I.isBuffering=!0),I.K=B);I.mZ==="PL"&&(x==="B"||x==="S")||I.provider.XM.oT()?t5(I,B):(I.Kf||x!=="PL"||(I.Kf=!0,P8$(I,B,I.provider.zm.WY())),Hfn(I,B));x==="PL"&&g.HT(I.m1);var h=[x];x==="S"&&S&&h.push("ss."+S);g.rx(I,B,"vps",h);I.mZ=x;I.pS=B;I.K=B;I.G=!0}x=c.lz;g.E(c,128)&&x&&(x.RD=x.RD||"",E$T(I,B,x.errorCode,x.wF,x.RD));(g.E(c,2)||g.E(c,128))&&I.reportStats(B);c.isPlaying()&&!I.T&&(I.Z>=0&&I.X.set("user_intent", [I.Z.toString()]),I.T=!0);dDc(I)}e.K&&(e=e.K,fpJ(e),e.playerState=L.state,e.K>=0&&g.or(L,16)&&e.seekCount++,L.state.isError()&&e.send())}; I7n=function(e){e.K&&e.K.send();if(e.qoe){var L=e.qoe;if(L.G){L.mZ==="PL"&&(L.mZ="N");var c=g.up(L.provider);g.rx(L,c,"vps",[L.mZ]);L.T||(L.Z>=0&&L.X.set("user_intent",[L.Z.toString()]),L.T=!0);L.provider.XM.oT()&&L.sW("finalized",{});L.Ve=!0;L.reportStats(c)}}if(e.provider.videoData.enableServerStitchedDai)for(L=g.f(e.Z.values()),c=L.next();!c.done;c=L.next())d0c(c.value);else e.X&&d0c(e.X);e.dispose()}; BB6=function(e,L){e.X&&EVc(e.X,L)}; xE$=function(e){if(!e.X)return null;var L=N0(e.X,"atr");return function(c){e.X&&EVc(e.X,c,L)}}; o1r=function(e,L,c,I){c.adFormat=c.Cj;var B=L.zm;L=new a1(new pO(c,L.XM,{getDuration:function(){return c.lengthSeconds}, getCurrentTime:function(){return B.getCurrentTime()}, RO:function(){return B.RO()}, uK:function(){return B.uK()}, WY:function(){return B.WY()}, getPlayerSize:function(){return B.getPlayerSize()}, getAudioTrack:function(){return c.getAudioTrack()}, getPlaybackRate:function(){return B.getPlaybackRate()}, PY:function(){return B.PY()}, getVisibilityState:function(){return B.getVisibilityState()}, ZV:function(){return B.ZV()}, W1:function(){return B.W1()}, getVolume:function(){return B.getVolume()}, isMuted:function(){return B.isMuted()}, s5:function(){return B.s5()}, ow:function(){return B.ow()}, getProximaLatencyPreference:function(){return B.getProximaLatencyPreference()}, au:function(){B.au()}, sW:function(x,S){B.sW(x,S)}, Vu:function(){return B.Vu()}, FF:function(){return B.FF()}})); L.K=I;g.l(e,L);return L}; SUH=function(){this.Ly=0;this.Z=this.bG=this.PH=this.K=NaN;this.X={};this.bandwidthEstimate=NaN}; r2n=function(){this.X=g.$H;this.array=[]}; RRc=function(e,L,c){var I=[];for(L=hRr(e,L);Lc)break}return I}; uDn=function(e,L){var c=[];e=g.f(e.array);for(var I=e.next();!I.done&&!(I=I.value,I.contains(L)&&c.push(I),I.start>L);I=e.next());return c}; toM=function(e){return e.array.slice(hRr(e,0x7ffffffffffff),e.array.length)}; hRr=function(e,L){e=PU(e.array,function(c){return L-c.start||1}); return e<0?-(e+1):e}; OpM=function(e,L){var c=NaN;e=g.f(e.array);for(var I=e.next();!I.done;I=e.next())if(I=I.value,I.contains(L)&&(isNaN(c)||I.endL&&(isNaN(c)||I.starte.mediaTime+e.B&&L1)e.G=!0;if((B===void 0?0:B)||isNaN(e.K))e.K=L;if(e.X)L!==e.mediaTime&&(e.X=!1);else if(L>0&&e.mediaTime===L){B=1500;if(e.XM.Y("html5_buffer_underrun_transition_fix")){B=g.X3(e.XM.experiments,"html5_min_playback_advance_for_steady_state_secs");var x=g.X3(e.XM.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");B=B>0&&x>0&&Math.abs(L-e.K)(I||!e.G?B:400)}e.mediaTime=L;e.Z=c;return!1}; F4c=function(e,L){this.videoData=e;this.X=L}; bpT=function(e,L,c){return L.vu(c).then(function(){return F1(new F4c(L,L.Z))},function(I){I instanceof Error&&g.F7(I); var B=O7('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),x=Tn('audio/mp4; codecs="mp4a.40.2"'),S=B||x,h=L.isLivePlayback&&!g.MX(e.B,!0);I="fmt.noneavailable";h?I="html5.unsupportedlive":S||(I="html5.missingapi");S=h||!S?2:1;B={buildRej:"1",a:L.gw(),d:!!L.xT,drm:L.cg(),f18:L.OF.indexOf("itag=18")>=0,c18:B};L.X&&(L.cg()?(B.f142=!!L.X.X["142"],B.f149=!!L.X.X["149"],B.f279=!!L.X.X["279"]):(B.f133=!!L.X.X["133"],B.f140=!!L.X.X["140"],B.f242=!!L.X.X["242"]),B.cAAC=x,B.cAVC=Tn('video/mp4; codecs="avc1.42001E"'), B.cVP9=Tn('video/webm; codecs="vp9"'));L.B&&(B.drmsys=L.B.keySystem,x=0,L.B.X&&(x=Object.keys(L.B.X).length),B.drmst=x);return new g.hQ(I,B,S)})}; lp=function(e){this.data=window.Float32Array?new Float32Array(e):Array(e);this.K=this.X=e-1}; ipc=function(e){return e.data[e.X]||0}; GOc=function(e){this.B=e;this.Z=this.K=0;this.G=new lp(50)}; Qn=function(e,L,c){g.Yg.call(this);this.videoData=e;this.experiments=L;this.B=c;this.K=[];this.rS=0;this.Z=!0;this.G=!1;this.j=0;c=new g1R;e.latencyClass==="ULTRALOW"&&(c.j=!1);e.x9?c.Z=3:g.QE(e)&&(c.Z=2);e.latencyClass==="NORMAL"&&(c.B=!0);c.pS=GN(e)&&L.N0("html5_refactor_decouple_liveness");g.X3(L,"html5_low_latency_adaptive_liveness_adjustment_segments")===0&&g.X3(L,"html5_low_latency_max_allowable_liveness_drift_chunks")===0||e.latencyClass!=="LOW"&&e.latencyClass!=="ULTRALOW"||(c.B=!0);var I= g.X3(L,"html5_liveness_drift_proxima_override");if(aI(e)!==0&&I){c.X=I;var B;((B=e.X)==null?0:R4M(B))&&c.X--}GN(e)&&L.N0("html5_sabr_parse_live_metadata_playback_boundaries")&&(c.h7=!0);if(g.aC("trident/")||g.aC("edge/"))B=g.X3(L,"html5_platform_minimum_readahead_seconds")||3,c.G=Math.max(c.G,B);g.X3(L,"html5_minimum_readahead_seconds")&&(c.G=g.X3(L,"html5_minimum_readahead_seconds"));g.X3(L,"html5_maximum_readahead_seconds")&&(c.D=g.X3(L,"html5_maximum_readahead_seconds"));L.N0("html5_force_adaptive_readahead")&& (c.j=!0);if(B=g.X3(L,"html5_liveness_drift_chunk_override"))c.X=B;VE(e)&&(c.X=(c.X+1)/5,e.latencyClass==="LOW"&&(c.X*=2));!GN(e)||e.latencyClass!=="ULTRALOW"&&e.latencyClass!=="LOW"||(c.J=g.X3(L,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,c.T=g.X3(L,"html5_low_latency_max_allowable_liveness_drift_chunks")||10);this.policy=c;this.T=this.policy.Z!==1;this.X=PH(this,kOM(this,isNaN(e.liveChunkReadahead)?3:e.liveChunkReadahead,e))}; DEn=function(e,L){if(L)return L=e.videoData,L=kOM(e,isNaN(L.liveChunkReadahead)?3:L.liveChunkReadahead,L),PH(e,L);if(e.K.length){if(Math.min.apply(null,e.K)>1)return PH(e,e.X-1);if(e.policy.j)return PH(e,e.X+1)}return e.X}; wcH=function(e,L){if(!e.K.length)return!1;var c=e.X;e.X=DEn(e,L===void 0?!1:L);if(L=c!==e.X)e.K=[],e.rS=0;return L}; dx=function(e,L){return L>=e.t_()-J2$(e)}; Vof=function(e,L,c){L=dx(e,L);c||L?L&&(e.Z=!0):e.Z=!1;e.T=e.policy.Z===2||e.policy.Z===3&&e.Z}; CQH=function(e,L){L=dx(e,L);e.G!==L&&e.publish("livestatusshift",L);e.G=L}; J2$=function(e){var L=e.policy.X;e.G||(L=Math.max(L-1,0));return L*Uf(e)}; kOM=function(e,L,c){c.x9&&L--;VE(c)&&(L=1);if(aI(c)!==0&&(e=g.X3(e.experiments,"html5_live_chunk_readahead_proxima_override"))){L=e;var I;((I=c.X)==null?0:R4M(I))&&L++}return L}; Uf=function(e){return e.videoData.X?pk(e.videoData.X)||5:5}; PH=function(e,L){L=Math.max(Math.max(1,Math.ceil(e.policy.G/Uf(e))),L);return Math.min(Math.min(8,Math.floor(e.policy.D/Uf(e))),L)}; g1R=function(){this.G=0;this.D=Infinity;this.j=!0;this.K=this.X=2;this.Z=1;this.B=!1;this.T=10;this.h7=!1;this.J=1;this.pS=!1}; KO=function(e){g.p.call(this);this.zm=e;this.X=0;this.K=null;this.j=this.G=0;this.Z={};this.XM=this.zm.S();this.B=new g.j9(this.Bd,1E3,this);this.m$=Ef(this,"html5_seek_timeout_delay_ms");this.Gm=Ef(this,"html5_long_rebuffer_threshold_ms");this.d_=Ef(this,"html5_seek_set_cmt_delay_ms","html5_seek_set_cmt_cfl");this.ye=Ef(this,"html5_seek_jiggle_cmt_delay_ms","html5_seek_jiggle_cmt_cfl");this.t7=Ef(this,"html5_seek_new_elem_delay_ms","html5_seek_new_elem_cfl");this.Kf=Ef(this,"html5_unreported_seek_reseek_delay_ms", "html5_unreported_seek_reseek_cfl");this.pS=Ef(this,"html5_long_rebuffer_jiggle_cmt_delay_ms","html5_long_rebuffer_jiggle_cmt_cfl");this.h7=new Xb(2E4);this.Y9=Ef(this,"html5_seek_new_elem_shorts_delay_ms","html5_seek_new_elem_shorts_cfl");this.He=Ef(this,"html5_seek_new_media_source_shorts_reuse_delay_ms","html5_seek_new_media_source_shorts_reuse_cfl");this.Pe=Ef(this,"html5_seek_new_media_element_shorts_reuse_delay_ms","html5_seek_new_media_element_shorts_reuse_cfl");this.Ve=Ef(this,"html5_reseek_after_time_jump_delay_ms", "html5_reseek_after_time_jump_cfl");this.J=Ef(this,"html5_gapless_handoff_close_end_long_rebuffer_delay_ms","html5_gapless_handoff_close_end_long_rebuffer_cfl");this.D=Ef(this,"html5_gapless_slow_seek_delay_ms","html5_gapless_slow_seek_cfl");this.Sl=Ef(this,"html5_shorts_gapless_ad_slow_start_delay_ms","html5_shorts_gapless_ad_slow_start_cfl");this.T=Ef(this,"html5_ads_preroll_lock_timeout_delay_ms","html5_ads_preroll_lock_timeout_cfl");this.x9=new Xb(g.X3(this.XM.experiments,"html5_skip_slow_ad_delay_ms")|| 5E3,!this.XM.Y("html5_report_slow_ads_as_error"));this.DY=new Xb(g.X3(this.XM.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.XM.Y("html5_skip_slow_buffering_ad"));this.sY=Ef(this,"html5_slow_start_timeout_delay_ms");this.k9=Ef(this,"html5_slow_start_no_media_source_delay_ms","html5_slow_start_no_media_source_cfl");g.l(this,this.B)}; Ef=function(e,L,c){c=c===void 0?null:c;var I=I===void 0?0:I;return new Xb(g.X3(e.XM.experiments,L)||I,c?e.XM.Y(c):!1)}; a76=function(e,L){e.X=L}; YV=function(e,L,c,I,B,x,S,h){L.test(c)?(e.Zg(B,L,S),L.j||x()):(!L.K||L.G?c=!1:(c=(0,g.zI)(),I?L.X||(L.X=c):L.X=0,x=!I&&c-L.K>3E4,c=L.X&&c-L.X>1E3||x?L.G=!0:!1),c&&(h=Object.assign({},e.b5(L),h),h.wn=S,h.we=B,h.wsuc=I,e.zm.sW("workaroundReport",h),I&&(L.reset(),e.Z[B]=!1)))}; Xb=function(e,L){this.j=L===void 0?!1:L;this.X=this.K=this.Z=this.startTimestamp=0;this.G=!1;this.B=Math.ceil(e/1E3)}; Zp6=function(e){g.p.call(this);var L=this;this.zm=e;this.J=this.X=this.loader=this.mediaElement=this.playbackData=null;this.Z=0;this.B=this.Gm=this.G=null;this.Ve=!1;this.Kf=0;this.h7=!1;this.timestampOffset=0;this.D=!0;this.He=0;this.d_=this.gT=!1;this.T=0;this.x9=!1;this.k9=0;this.XM=this.zm.S();this.videoData=this.zm.getVideoData();this.policy=new NBx;this.pS=new KO(this.zm);this.DY=this.Pe=this.t7=this.j=this.K=NaN;this.Y9=new g.j9(function(){mE$(L,!1)},2E3); this.RT=new g.j9(function(){nO(L)}); this.m$=new g.j9(function(){y2c(L,{})}); this.sY=NaN;this.ye=new g.j9(function(){var c=L.XM.Mv;c.X+=1E4/36E5;c.X-c.Z>1/6&&(k5M(c),c.Z=c.X);L.ye.start()},1E4); g.l(this,this.pS);g.l(this,this.Y9);g.l(this,this.m$);g.l(this,this.RT);g.l(this,this.ye)}; jqM=function(e,L){e.playbackData=L;e.videoData.isLivePlayback&&(e.J=new GOc(function(){a:{if(e.playbackData&&e.playbackData.X.X){if(J1(e.videoData)&&e.loader){var I=e.loader.oR.EK()||0;break a}if(e.videoData.X){I=e.videoData.X.Ve;break a}}I=0}return I}),e.X=new Qn(e.videoData,e.XM.experiments,function(){return e.i4(!0)})); if(eo(e.zm)){var c;(c=e.videoData.je)!=null&&c.TE||(L=pcc(e),L.W2?(GN(e.videoData)&&e.qL(L.W2,L.startSeconds),e.Z=L.startSeconds):L.startSeconds>0&&e.seekTo(L.startSeconds,{Ww:"seektimeline_startPlayback",seekSource:15}));e.D=!1}else $E6(e)||(e.Z=e.Z||e.videoData.startSeconds||0,e.Y("html5_sabr_vod_invalid_start_time_fallback")&&!e.videoData.isLivePlayback&&(L=e.zm.videoData.i4(),e.Z>L&&(e.Y("html5_sabr_log_invalid_sabr_current_time")&&e.zm.sW("invalidSabrCmtStart",{rt:e.Z,mst:L}),e.Z=0)))}; l7c=function(e,L){(e.loader=L)?HpJ(e,!0):Lp(e)}; PQc=function(e,L){g.HT(e.pS.B);e.Y("html5_exponential_memory_for_sticky")&&(L.state.isPlaying()?g.HT(e.ye):e.ye.stop());if(e.mediaElement)if(L.oldState.state===8&&FI(L.state)&&L.state.isBuffering()){L=e.mediaElement.getCurrentTime();var c=e.mediaElement.im();var I=e.Y("manifestless_post_live_ufph")||e.Y("manifestless_post_live")?P1(c,Math.max(L-3.5,0)):P1(c,L-3.5);if(I>=0&&L>c.end(I)-1.1&&I+10?(cc(e.zm,e.getCurrentTime()+e.videoData.limitedPlaybackDurationInSeconds),e.d_=!0):e.videoData.isLivePlayback&&e.videoData.endSeconds>0&&(cc(e.zm,e.getCurrentTime()+e.videoData.endSeconds),e.d_=!0))}; dEn=function(e,L){var c=e.getCurrentTime(),I=e.isAtLiveHead(c);if(e.J&&I){var B=e.J;if(B.X&&!(c>=B.K&&c50&&B.K.shift())),B=e.X,Vof(B,c,L===void 0?!0:L),CQH(B,c),L&&mE$(e,!0));I!==e.gT&&(L=e.getCurrentTime()-e.DY<=500,c=e.Kf>=1E3,L||c||(L=e.zm.OY,L.qoe&&(L=L.qoe,c=g.up(L.provider), g.rx(L,c,"lh",[I?"1":"0"])),e.gT=I,e.Kf++,e.DY=e.getCurrentTime()))}; mE$=function(e,L){if(e.X){var c=e.X;var I=e.getCurrentTime(),B=c.t_();var x=c.policy.K;c.G||(x=Math.max(x-1,0));x*=Uf(c);I>=B-x||!c.K8()?c=Ic+1&&L0&&tf(e.mediaElement)>0&&(e.K=Iq(e,e.K,!1)),L=e.Y("html5_pseudogapless_shorts_seek_to_next_start")&&(L==null?void 0:L.seekSource)===60,!e.mediaElement||!eSr(e,L))e.RT.start(750);else if(!isNaN(e.K)&&isFinite(e.K)&&(L=e.Pe-(e.K-e.timestampOffset),!(L===0||Math.abs(L)<.005)))if(L=e.mediaElement.getCurrentTime()-e.K,Math.abs(L)<=e.He||Math.abs(L)<.005)LKv(e);else{if(e.videoData.b7)e.videoData.b7= !1;else if(!w7(e.videoData)&&e.K>=e.i4()-.1){e.K=e.i4();e.G.resolve(e.i4());e.XM.oT()&&e.zm.sW("setEndedInSeek",{tgt:""+e.K,maxst:""+e.i4()});e.zm.O0();return}try{var c=e.K-e.timestampOffset;e.mediaElement.seekTo(c);e.pS.X=c;e.Pe=c;e.Z=e.K;e.h7=!1}catch(I){}}}; eSr=function(e,L){L=L===void 0?!1:L;if(!e.mediaElement||e.mediaElement.qD()===0||e.mediaElement.hasError())return!1;var c=e.mediaElement.getCurrentTime()>0;return e.videoData.Z&&e.videoData.Z.X||e.videoData.isLivePlayback||!e.videoData.cg()?e.K>=0&&!L&&(L=e.mediaElement.d8(),L.length||!c)?Qd(L,e.K-e.timestampOffset):c:c}; LKv=function(e){e.G&&(e.G.resolve(e.mediaElement.getCurrentTime()),e.pS.K=null)}; YUr=function(e,L){e.B&&(e.B.resolve(L),e.zm.ZL(),e.XM.oT()||n1M(e))&&(L=e.b5(),L["native"]=""+ +e.h7,L.otgt=""+(e.K+e.timestampOffset),e.zm.sW("seekEnd",L));Lp(e)}; Lp=function(e){e.K=NaN;e.j=NaN;e.Pe=NaN;e.G=null;e.Gm=null;e.B=null;e.Ve=!1;e.h7=!1;e.He=0;e.Y9.stop();e.m$.stop()}; IPn=function(e,L){var c=e.mediaElement,I=L.type;switch(I){case "seeking":var B=c.getCurrentTime()+e.timestampOffset;if(!e.G||e.h7&&B!==e.K){e.G=new Ri;e.G.then(function(S){YUr(e,S)},function(){Lp(e)}); if(e.videoData.isAd()){var x;Bmr({adCpn:e.videoData.clientPlaybackNonce,contentCpn:(x=e.videoData.Xn)!=null?x:""},L.X)}e.Pe=B;a76(e.pS,c.getCurrentTime());e.seekTo(B,{seekSource:104,Ww:"seektimeline_mediaElementEvent"});e.h7=!0}break;case "seeked":LKv(e);break;case "loadedmetadata":eo(e.zm)||cKT(e);nO(e);break;case "progress":nO(e);break;case "pause":e.T=e.getCurrentTime()}e.T&&((I==="play"||I==="playing"||I==="timeupdate"||I==="progress")&&e.getCurrentTime()-e.T>10&&(e.Y("html5_sky_skip_pause_jump")? e.zm.sW("skipPauseJump",{evt:I,cmt:e.getCurrentTime(),lpt:e.T}):e.seekTo(e.T,{Ww:"pauseJump"})),I!=="pause"&&I!=="play"&&I!=="playing"&&I!=="progress"&&(e.T=0))}; B0r=function(e){return(d7(e.videoData)||!!e.videoData.liveUtcStartSeconds)&&(!!e.videoData.liveUtcStartSeconds||$E6(e))&&!!e.videoData.X}; $E6=function(e){return!!e.videoData.startSeconds&&isFinite(e.videoData.startSeconds)&&e.videoData.startSeconds>1E9}; pcc=function(e){var L=0,c=NaN,I="";if(!e.D)return{startSeconds:L,W2:c,source:I};e.videoData.pS?L=e.videoData.k9:w7(e.videoData)&&(L=Infinity);if(g.QE(e.videoData))return{startSeconds:L,W2:c,source:I};e.videoData.startSeconds?(I="ss",L=e.videoData.startSeconds):e.videoData.XD&&(I="stss",L=e.videoData.XD);e.videoData.liveUtcStartSeconds&&(c=e.videoData.liveUtcStartSeconds);if(isFinite(L)&&(L>e.i4()||Le.i4()||c 0?(I.onesie="0",e.handleError(new g.hQ("html5.missingapi",I)),!1):!0}; Omn=function(e){var L=Yb();n2(L,e);return g.ji(L,JlH())}; RSH=function(e,L){var c,I,B,x,S,h,R,u,t,O,q,T,W,A,b,J,w,C,y,P,ev,X,oH,rc,Sv,tJ;return g.Z(function(cM){if(cM.K==1)return L.fetchType="onesie",c=RUJ(L,e.getPlayerSize(),e.getVisibilityState()),I=new KI(e,c),g.a(cM,I.fetch(),2);B=cM.X;x={player_response:B};L.loading=!1;S=e.cw.zx;if(I.ek){h=g.f(I.ek.entries());for(R=h.next();!R.done;R=h.next())u=R.value,t=g.f(u),O=t.next().value,q=t.next().value,T=O,W=q,S.X.set(T,W,180),T===L.videoId&&(A=W.kW(),L.s8=A);S.Bm=I}b=g.f(I.TQ.entries());for(J=b.next();!J.done;J= b.next())w=J.value,C=g.f(w),y=C.next().value,P=C.next().value,ev=y,X=P,S.K.set(ev,X,180);g.OF(L,x,!0);if(L.loading||u8(L))return cM.return(Promise.resolve());S.X.removeAll();S.K.removeAll();L.s8=[];oH={};rc="onesie.response";Sv=0;L.errorCode?(rc="auth",oH.ec=L.errorCode,oH.ed=L.errorDetail,oH.es=L.ol||"",Sv=2):(oH.successButUnplayable="1",oH.disposed=""+ +L.We(),oH.afmts=""+ +/adaptiveFormats/.test(B),oH.cpn=L.clientPlaybackNonce);tJ=new g.hQ(rc,oH,Sv);return cM.return(Promise.reject(tJ))})}; rKc=function(e,L){var c,I,B,x,S,h,R,u,t,O,q;return g.Z(function(T){switch(T.K){case 1:c=L.isAd(),I=!c,B=c?1:3,x=0;case 2:if(!(x0)){T.Iq(5);break}return g.a(T,a$(5E3),6);case 6:S=new g.yu("Retrying OnePlatform request",{attempt:x}),g.F7(S);case 5:return g.bn(T,7),g.a(T,qVM(e,L),9);case 9:return T.return();case 7:h=g.wc(T);R=uy(h);u=R.errorCode;t=e.S();O=t.Y("html5_use_network_error_code_enums")?401:"401";I&&u==="manifest.net.badstatus"&&R.details.rc===O&&(I=!1,x===B-1&&(B+= 1));if(x===B-1)return q=T0v(c,R.details),q.details.backend="op",q.details.originec=u,T.return(Promise.reject(q));if(u==="auth"||u==="manifest.net.retryexhausted")return T.return(Promise.reject(R));e.handleError(R);if(RK(R.severity)){T.Iq(4);break}case 3:x++;T.Iq(2);break;case 4:return T.return(Promise.reject(T0v(c,{backend:"op"})))}})}; qVM=function(e,L){function c(rc){rc.readyState===2&&e.n9("ps_c")} var I,B,x,S,h,R,u,t,O,q,T,W,A,b,J,w,C,y,P,ev,X,oH;return g.Z(function(rc){switch(rc.K){case 1:L.fetchType="gp";I=e.S();B=g.bj(I,g.xb(L));if(!B.X){x=B.getValue();rc.Iq(2);break}return g.a(rc,B.X,3);case 3:x=rc.X;case 2:return S=x,h=Omn(S),R=RUJ(L,e.getPlayerSize(),e.getVisibilityState()),u=g.d9(WK$),t=g.xb(L),O=(0,g.zI)(),q=!1,T="empty",W=0,e.n9("psns"),A={lJ:c},g.a(rc,g.w_(h,R,u,void 0,A),4);case 4:b=rc.X;e.n9("psnr");if(L.We())return rc.return();b?"error"in b&&b.error?(q=!0,T="esf:"+b.error.message, W=b.error.code):b.errorMetadata&&(q=!0,T="its",W=b.errorMetadata.status):q=!0;if(q)return J=0,w=((0,g.zI)()-O).toFixed(),C={},C=I.Y("html5_use_network_error_code_enums")?{backend:"op",rc:W,rt:w,reason:T,has_kpt:L.RI?"1":"0",has_mdx_env:L.mdxEnvironment?"1":"0",has_omit_key_flag:g.Zu("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:I.pageId?"1":"0",has_token:t?"1":"0",has_vvt:L.Ve?"1":"0",is_mdx:L.isMdxPlayback?"1":"0",mdx_ctrl:L.s9||"",token_eq:t===g.xb(L)?"1":"0"}:{backend:"op", rc:""+W,rt:w,reason:T,has_kpt:L.RI?"1":"0",has_mdx_env:L.mdxEnvironment?"1":"0",has_omit_key_flag:g.Zu("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:I.pageId?"1":"0",has_token:t?"1":"0",has_vvt:L.Ve?"1":"0",is_mdx:L.isMdxPlayback?"1":"0",mdx_ctrl:L.s9||"",token_eq:t===g.xb(L)?"1":"0"},y="manifest.net.connect",W===429?(y="auth",J=2):W>200&&(y="manifest.net.badstatus",W===400&&(J=2)),rc.return(Promise.reject(new g.hQ(y,C,J)));L.loading=!1;g.OF(L,{raw_player_response:b},!0); P=b;g.eb(L.S())&&P&&P.trackingParams&&P$(P.trackingParams);if(L.errorCode)return ev={ec:L.errorCode,ed:L.errorDetail,es:L.ol||""},rc.return(Promise.reject(new g.hQ("auth",ev,2)));if(!L.loading&&!u8(L))return X=L.isAd()?"auth":"manifest.net.retryexhausted",oH=L.isAd()?2:1,rc.return(Promise.reject(new g.hQ(X,{successButUnplayable:"1",hasMedia:g.HN(L)?"1":"0"},oH)));g.AJ(rc)}})}; SVR=function(e,L,c){function I(W){W=uy(W);if(RK(W.severity))return Promise.reject(W);e.handleError(W);return!1} function B(){return!0} var x,S,h,R,u,t,O,q,T;return g.Z(function(W){switch(W.K){case 1:var A=e.S();e.getPlayerSize();e.getVisibilityState();e.isFullscreen();if(L.partnerId===38&&A.playerStyle==="books")A=L.videoId.indexOf(":"),A=g.WO("//play.google.com/books/volumes/"+L.videoId.slice(0,A)+"/content/media",{aid:L.videoId.slice(A+1),sig:L.qq});else if(L.partnerId===30&&A.playerStyle==="docs")A=g.WO("https://docs.google.com/get_video_info",{docid:L.videoId,authuser:L.aZ,authkey:L.yC,eurl:A.xT});else if(L.partnerId===33&&A.playerStyle=== "google-live")A=g.WO("//google-liveplayer.appspot.com/get_video_info",{key:L.videoId});else throw Error("getVideoInfoUrl for invalid namespace: "+A.pS);x=A;h=(S=L.isAd())?1:3;R=0;case 2:if(!(R0)){W.Iq(5);break}return g.a(W,a$(5E3),6);case 6:t={playerretry:R,playerretrysrc:c},S||(t.recover="embedded"),u=KT(x,t);case 5:return g.a(W,MP$(L,u).then(B,I),7);case 7:if(O=W.X)return W.return();R++;W.Iq(2);break;case 4:q=S?"auth":"manifest.net.retryexhausted";T=S?2:1;if(!S&&Math.random()< 1E-4)try{g.F7(new g.yu("b/152131571",btoa(x)))}catch(b){}return W.return(Promise.reject(new g.hQ(q,{backend:"gvi"},T)))}})}; MP$=function(e,L){function c(b){return I(b.xhr)} function I(b){if(!e.We()){b=b?b.status:-1;var J=0,w=((0,g.zI)()-t).toFixed();w=B.Y("html5_use_network_error_code_enums")?{backend:"gvi",rc:b,rt:w}:{backend:"gvi",rc:""+b,rt:w};var C="manifest.net.connect";b===429?(C="auth",J=2):b>200&&(C="manifest.net.badstatus",b===400&&(J=2));return Promise.reject(new g.hQ(C,w,J))}} var B,x,S,h,R,u,t,O,q,T,W,A;return g.Z(function(b){if(b.K==1){e.fetchType="gvi";B=e.S();var J={};e.O4&&(J.ytrext=e.O4);(h=g.qQ(J)?void 0:J)?(x={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:h},S=KT(L,{action_display_post:1})):(x={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},S=L);R={};B.sendVisitorIdHeader&&e.visitorData&&(R["X-Goog-Visitor-Id"]=e.visitorData);(u=qX(B.experiments,"debug_sherlog_username"))&&(R["X-Youtube-Sherlog-Username"]=u);Object.keys(R).length> 0&&(x.headers=R);t=(0,g.zI)();return g.a(b,i2(sN,S,x).then(void 0,c),2)}O=b.X;if(!O||!O.responseText)return b.return(I(O));e.loading=!1;q=dW(O.responseText);g.OF(e,q,!0);if(e.errorCode)return T={ec:e.errorCode,ed:e.errorDetail,es:e.ol||""},b.return(Promise.reject(new g.hQ("auth",T,2)));if(!e.loading&&!u8(e))return W=e.isAd()?"auth":"manifest.net.retryexhausted",A=e.isAd()?2:1,b.return(Promise.reject(new g.hQ(W,{successButUnplayable:"1"},A)));g.AJ(b)})}; T0v=function(e,L){return new g.hQ(e?"auth":"manifest.net.retryexhausted",L,e?2:1)}; rB=function(e,L,c){c=c===void 0?!1:c;var I,B,x,S;g.Z(function(h){if(h.K==1){I=e.S();if(c&&(!g.z3(I)||L2(L)!=="embedded")||L.LI||L2(L)!=="adunit"&&(g.R2(I)||Sb(I)||g.DF(I)||g.Mu(I)||g.L8(I)||tb(I)==="WEB_CREATOR"))return h.return();B=g.bj(I,g.xb(L));return B.X?g.a(h,B.X,3):(x=B.getValue(),h.Iq(2))}h.K!=2&&(x=h.X);S=x;return h.return(zSn(e,L,S))})}; zSn=function(e,L,c){var I,B,x,S,h;return g.Z(function(R){if(R.K==1){g.bn(R,2);I=Omn(c);var u=L.S();g.J7();var t={context:g.zC(L),videoId:L.videoId,racyCheckOk:L.racyCheckOk,contentCheckOk:L.contentCheckOk,autonavState:"STATE_NONE"};L2(L)==="adunit"&&(t.isAdPlayback=!0);u.embedConfig&&(t.serializedThirdPartyEmbedConfig=u.embedConfig);u.Dl&&(t.showContentOwnerOnly=!0);L.dK&&(t.showShortsOnly=!0);g.Vu(0,141)&&(t.autonavState=g.Vu(0,140)?"STATE_OFF":"STATE_ON");if(g.T3(u)){var O=g.Vu(0,65);O=O!=null? !O:!1;var q=!!g.iS("yt-player-sticky-caption");t.captionsRequested=O&&q}var T;if(u=(T=u.getWebPlayerContextConfig())==null?void 0:T.encryptedHostFlags)t.playbackContext={encryptedHostFlags:u};B=t;x=g.d9(sxc);e.n9("wn_s");return g.a(R,g.w_(I,B,x),4)}if(R.K!=2)return S=R.X,e.n9("wn_r"),!S||"error"in S&&S.error||(h=S,g.eb(L.S())&&h.trackingParams&&P$(h.trackingParams),g.OF(L,{raw_watch_next_response:S},!1)),g.DR(R,0);g.wc(R);g.AJ(R)})}; veM=function(e){e.n9("vir");e.n9("ps_s");g_("vir",void 0,"video_to_ad");var L=tPv(e);L.then(function(){e.n9("virc");g_("virc",void 0,"video_to_ad");e.n9("ps_r");g_("ps_r",void 0,"video_to_ad")},function(){e.n9("virc"); g_("virc",void 0,"video_to_ad")}); return L}; g.uQ=function(e,L,c,I,B,x,S,h,R,u){R=R===void 0?new g.RI(e):R;u=u===void 0?!0:u;g.Yg.call(this);var t=this;this.XM=e;this.playerType=L;this.j5=c;this.PB=I;this.getVisibilityState=x;this.visibility=S;this.cw=h;this.videoData=R;this.F4=u;this.logger=new g.tB("VideoPlayer");this.x0=null;this.SN=new GP;this.Vg=null;this.qY=!0;this.g_=this.loader=null;this.yT=[];this.sx=new So;this.l0=this.Nj=null;this.a$=new So;this.Ko=null;this.Ya=this.v3=!1;this.ZH=NaN;this.SV=!1;this.playerState=new g.WX;this.Gi=[]; this.Wz=new g.zn;this.Yk=new HIf(this);this.mediaElement=null;this.eE=new g.j9(this.pyS,15E3,this);this.Kz=this.yJ=!1;this.EB=NaN;this.Fn=!1;this.H5=0;this.Fv=!1;this.SJ=NaN;this.fz=new Bc(new Map([["bufferhealth",function(){return QqT(t.w0)}], ["bandwidth",function(){return t.kL()}], ["networkactivity",function(){return t.XM.schedule.Gm}], ["livelatency",function(){return t.isAtLiveHead()&&t.isPlaying()?fPT(t):NaN}], ["rawlivelatency",function(){return fPT(t)}]])); this.Xg=0;this.loop=!1;this.playbackRate=1;this.rJ=0;this.w0=new Zp6(this);this.q5=!1;this.eB=[];this.N9=this.b6=0;this.rI=this.jp=!1;this.bG=this.PH=0;this.oM=new g.j9(this.h2,0,this);this.VI=!1;this.Pw=null;this.aYd=[this.Wz,this.oM,this.eE,this.fz];this.oi=this.Ju=null;this.dZ=function(){var O=t.OY;O.provider.XM.PM||O.provider.zm.getVisibilityState()===3||(O.provider.XM.PM=!0);O.Ug();if(O.K){var q=O.K;q.B&&q.X<0&&q.provider.zm.getVisibilityState()!==3&&vVn(q)}O.qoe&&(O=O.qoe,O.m$&&O.Z<0&&O.provider.XM.PM&& ez$(O),O.G&&t5(O));t.loader&&h2(t);t.XM.ej&&!t.videoData.backgroundable&&t.mediaElement&&!t.YI()&&(t.isBackground()&&t.mediaElement.LL()?(t.sW("bgmobile",{suspend:1}),t.f6(!0,!0)):t.isBackground()||Rq(t)&&t.sW("bgmobile",{resume:1}))}; this.kx={BD:function(O){t.BD(O)}, C3_:function(O){t.x0=O}, d2M:function(){return t.OY}, y0:function(){return t.g_}, q5Y:function(){return t.mE}, U20:function(){return t.f0}, Da_:function(){}, S:function(){return t.XM}, Nw:function(){return t.mediaElement}, XHW:function(O){t.AL(O)}, aSw:function(){return t.PB}}; this.logger.debug(function(){return"creating, type "+L}); this.RR=new A2c(this.XM);this.n2=new kV(this.XM,this.PB,this);this.BR=new g.jk(this,function(O,q){O!==g.jh("endcr")||g.E(t.playerState,32)||t.O0();B(O,q,t.playerType);if(O===g.jh("transitiondetector")&&(O=t.loader)!=null&&(O=O.sY)!=null){var T=g.f(MIn(q.id));T.next();T=T.next().value;Of6(O,T,q.start/1E3-O.zm.FF(),xDM(O.G))}}); g.l(this,this.BR);g.l(this,this.w0);AKc(this,R);this.videoData.subscribe("dataupdated",this.sU$,this);this.videoData.subscribe("dataloaded",this.GH,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.sW,this);this.videoData.subscribe("ctmpstr",this.Ks,this);!this.OY||this.OY.We();this.OY=new g.$V(new pO(this.videoData,this.XM,this));$Yr(this.dZ);this.visibility.subscribe("visibilitystatechange",this.dZ);this.mE=new g.j9(this.dh,g.X3(this.XM.experiments, "html5_player_att_initial_delay_ms")||4500,this);this.f0=new g.j9(this.dh,g.X3(this.XM.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.u6=new g.Qw(this.Z9$,350,this);g.l(this,this.u6)}; AKc=function(e,L){if(e.playerType===2||e.XM.wX)L.zE=!0;var c=A8v(L.Cj,L.XE,e.XM.G,e.XM.J);c&&(L.adFormat=c);e.playerType===2&&(L.h9=!0);if(e.isFullscreen()||e.XM.G)c=g.iS("yt-player-autonavstate"),L.autonavState=c||(e.XM.G?2:e.videoData.autonavState);L.endSeconds&&L.endSeconds>L.startSeconds&&cc(e,L.endSeconds)}; FKH=function(e){var L=e.videoData;veM(e).then(void 0,function(c){e.videoData!==L||L.We()||(c=uy(c),c.errorCode==="auth"&&e.videoData.errorDetail?e.BM(c.errorCode,2,unescape(e.videoData.errorReason),rr(c.details),e.videoData.errorDetail,e.videoData.ol||void 0):e.handleError(c))})}; GbJ=function(e){if(!g.E(e.playerState,128))if(e.videoData.isLoaded(),e.logger.debug("finished loading playback data"),e.yT=g.VM(e.videoData.h7),g.HN(e.videoData)){e.j5.tick("bpd_s");t2(e).then(function(){e.j5.tick("bpd_c");if(!e.We()){e.v3&&(e.Xp(sP(sP(e.playerState,512),1)),Rq(e));var I=e.videoData;I.endSeconds&&I.endSeconds>I.startSeconds&&cc(e,I.endSeconds);e.sx.finished=!0;OU(e,"dataloaded");e.a$.nU()&&bmx(e);s1c(e.n2,e.l0)}}); e.Y("html5_log_media_perf_info")&&e.sW("loudness",{v:e.videoData.m1.toFixed(3)},!0);var L,c=(L=e.mediaElement)==null?void 0:L.IT();if(c&&"disablePictureInPicture"in c&&e.XM.KX)try{c.disablePictureInPicture=e.XM.h1&&!e.videoData.backgroundable}catch(I){g.F7(I)}imc(e)}else OU(e,"dataloaded")}; t2=function(e){qE(e);e.l0=null;var L=bpT(e.XM,e.videoData,e.YI());e.Nj=L;e.Nj.then(function(c){gex(e,c)},function(c){e.We()||(c=uy(c),e.visibility.isBackground()?(TO(e,"vp_none_avail"),e.Nj=null,e.sx.reset()):(e.sx.finished=!0,e.BM(c.errorCode,c.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",rr(c.details))))}); return L}; gex=function(e,L){if(!e.We()&&!L.videoData.We()){e.logger.debug("finished building playback data");e.l0=L;jqM(e.w0,e.l0);if(e.videoData.isLivePlayback){var c=kb6(e.cw.zx,e.videoData.videoId)||e.loader&&!isNaN(e.loader.k9);c=e.Y("html5_onesie_live")&&c;eo(e)||e.videoData.Kf>0&&!J1(e.videoData)||c||e.seekTo(e.i4(),{Ww:"videoplayer_playbackData",seekSource:18})}if(e.videoData.Z.X){if(nzc(e.videoData)){e.Y("html5_sabr_report_missing_url_as_error_terminal")?e.BM("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR", rr({missabrurl:1})):e.handleError(new g.hQ("fmt.missing",{missabrurl:"1"},2));return}e.loader?g.F7(Error("Duplicated Loader")):(c=g.X3(e.XM.experiments,"html5_onesie_defer_content_loader_ms"))&&e.fX()&&kb6(e.cw.zx,e.videoData.XT)?g.oC(function(){e.We()||e.loader||DrM(e)},c):DrM(e)}else!e.videoData.Z.X&&r5(e.videoData)&&e.dD(new si(e.videoData.videoId||"",4)); e.f8();ubJ(L).then(function(){var I={};e.kY(I);e.XM.oT()&&e.Y("html5_log_media_perf_info")&&e.sW("av1Info",I);h2(e)})}}; bmx=function(e){e.We();e.logger.debug("try finish readying playback");if(e.a$.finished)e.logger.debug("already finished readying");else if(e.sx.finished)if(g.E(e.playerState,128))e.logger.debug("cannot finish readying because of error");else if(e.yT.length)e.logger.debug(function(){return"cannot finish readying because of pending preroll: "+e.yT}); else if(e.BR.started||TBn(e.BR),e.FK())e.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{e.loader&&(e.Ya=YHM(e.loader.timing));e.a$.finished||(e.a$.finished=!0);var L=e.Y("html5_onesie_live")&&e.loader&&!isNaN(e.loader.k9);!e.videoData.isLivePlayback||e.videoData.Kf>0&&!J1(e.videoData)||L||eo(e)||(e.logger.debug("seek to head for live"),e.seekTo(Infinity,{Ww:"videoplayer_readying",seekSource:18}),e.isBackground()&&(e.Kz=!0));eRM(e.OY);e.logger.debug("finished readying playback"); e.publish("playbackready");ie("pl_c",e.j5.timerName)||(e.j5.tick("pl_c"),g_("pl_c",void 0,"video_to_ad"));ie("pbr",e.j5.timerName)||(e.j5.tick("pbr"),g_("pbr",void 0,"video_to_ad"))}else e.logger.debug("playback data not loaded")}; cc=function(e,L){e.Vg&&wQc(e);e.Vg=new g.pC(L*1E3,0x7ffffffffffff);e.Vg.namespace="endcr";e.addCueRange(e.Vg)}; wQc=function(e){e.removeCueRange(e.Vg);e.Vg=null}; JKr=function(e,L,c,I,B){var x=e.OY,S=e.videoData;S.K=c;var h=g.Wc(e);c=new LEc(S,c,L,h?h.itag:"",I);e.XM.experiments.N0("html5_refactor_sabr_video_format_selection_logging")?(c.videoId=B,e.oi=c):x.qoe&&n$T(x.qoe,c);B=e.n2;B.K=0;B.X=0;e.publish("internalvideoformatchange",S,L==="m")}; g.Wc=function(e){var L=ME(e);return fX(L)||!e.l0?null:g.vU(e.l0.X.videoInfos,function(c){return L.G(c)})}; ME=function(e){if(e.l0){var L=e.n2;var c=e.l0;e=e.To();var I=Bxv(L);if(fX(I)){if(I=c5M(L,c).compose(r5n(L,c)).compose(RfH(L,c)).compose(MkT(L,c.videoData)).compose(zfJ(L,c.videoData,c)).compose(WEM(L,c)).compose(oVn(L,c)),fX(e)||L.Y("html5_apply_pbr_cap_for_drm"))I=I.compose(Sfr(L,c))}else L.Y("html5_perf_cap_override_sticky")&&(I=I.compose(WEM(L,c))),L.Y("html5_ustreamer_cap_override_sticky")&&(I=I.compose(Sfr(L,c)));I=I.compose(oVn(L,c));L=c.videoData.F5.compose(I).compose(c.videoData.jo).compose(e)}else L= h1;return L}; yo6=function(e){var L=e.n2;e=e.videoData;var c=MkT(L,e);L.Y("html5_disable_client_autonav_cap_for_onesie")||c.compose(zfJ(L,e));return c}; h2=function(e){if(e.videoData.Z&&e.videoData.Z.X){var L=ME(e);e.loader&&MDr(e.loader,L)}}; VPv=function(e){var L;return!!(e.Y("html5_native_audio_track_switching")&&g.RM&&((L=e.videoData.K)==null?0:aK(L)))}; Cav=function(e){if(!VPv(e))return!1;var L;e=(L=e.mediaElement)==null?void 0:L.audioTracks();return!!(e&&e.length>1)}; N0f=function(e){var L=aPJ(e);if(L)return e.videoData.getAvailableAudioTracks().find(function(c){return c.l5.getName()===L})}; aPJ=function(e){var L;if(e=(L=e.mediaElement)==null?void 0:L.audioTracks())for(L=0;L0&&(L.tj=c.Fz));L.J9=c.aF;L.Yy=EY(I,{},c.Z||void 0,b8(c));L.d_=FU(c)&&(g.DF(I)||g.Mu(I));GN(c)&&(L.B=!0,L.wX=I.Y("html5_estimate_live_partial_slice_duration"),L.IU=!0,I.Y("html5_sabr_report_partial_segment_estimated_duration")&& (L.Of=!0),L.X=!0,L.DB=I.Y("html5_sabr_enable_live_clock_offset"),L.kV=I.Y("html5_disable_client_resume_policy_for_sabr"),L.wS=I.Y("html5_trigger_loader_when_idle_network"),L.ue=I.Y("html5_sabr_parse_live_metadata_playback_boundaries"),L.Il=I.Y("html5_consume_onesie_next_request_policy_for_sabr"),L.gb=I.Y("html5_sabr_report_next_ad_break_time"),L.iZ=I.Y("html5_log_high_res_buffer_timeline")&&I.oT(),L.Cy=I.Y("html5_remove_stuck_slices_beyond_max_buffer_limits"),L.V2=I.Y("html5_gapless_sabr_btl_last_slice")&& A1(c),L.jw=I.Y("html5_reset_last_appended_slice_on_seek")&&A1(c),J1(c)?(L.PK=!0,L.je=I.Y("html5_disable_variability_tracker_for_live"),L.m$=!0,I.Y("html5_simplified_backup_timeout_sabr_live")&&(L.sC=!0,L.Nl=L.Jo)):L.xT=I.Y("html5_probe_request_on_sabr_request_progress"),L.WK=I.Y("html5_serve_start_seconds_seek_for_post_live_sabr"),L.pj=I.Y("html5_flush_index_on_updated_timestamp_offset"),L.D=GN(c),L.L6=I.Y("html5_ignore_partial_segment_from_live_readahead"),I.Y("html5_include_partial_segment_for_jumbo_ll")&& VE(c)&&(L.L6=!1),L.Ee=I.Y("html5_use_non_active_broadcast_for_post_live"),L.Ve=I.Y("html5_use_centralized_player_time"),L.aF=I.Y("html5_consume_onesie_sabr_seek"),L.h7=I.Y("html5_enable_sabr_seek_loader_refactor"),L.ij=I.Y("html5_update_segment_start_time_from_media_header"),c.enableServerStitchedDai&&(L.K=!0,L.XE=I.Y("html5_reset_server_stitch_state_for_non_sabr_seek"),L.ME=I.Y("html5_remove_ssdai_append_pause")&&!c.GI(),L.Mv=I.Y("html5_ssdai_log_ssevt_in_loader")||I.Y("html5_ssdai_log_ssevt_in_loader_200ms")|| I.Y("html5_ssdai_log_ssevt_in_loader_timers")||I.Y("html5_ssdai_log_ssevt_in_loader_cuerange"),I.Y("html5_ssdai_log_ssevt_in_loader_timers")?L.x9=1:I.Y("html5_ssdai_log_ssevt_in_loader_200ms")?L.x9=3:I.Y("html5_ssdai_log_ssevt_in_loader_cuerange")&&(L.x9=0)),L.q2=I.oT()||c.GI());L.f9=g.KM$(c);NB(I.B,mJ.BITRATE)&&(L.r_=NaN);if(h=g.X3(I.experiments,"html5_request_size_max_kb"))L.t7=h*1024;I.B.Z?L.FR="; "+mJ.EXPERIMENTAL.name+"=allowed":I.Y("html5_enable_cobalt_tunnel_mode")&&g.m2()&&(h=mJ.TUNNELMODE, L.FR="; "+h.name+"="+h.valid);c=c.serverPlaybackStartConfig;(c==null?0:c.enable)&&(c==null?0:c.playbackStartPolicy)&&(L.kN=!0,KJ(L,c.playbackStartPolicy,2));c=mrr(e);e.SN.removeAll();a:{h=e.cw.zx;if(I=e.videoData.videoId)if(B=h.X.get(I)){h.X.remove(I);h=B;break a}h=void 0}e.loader=new g.WH(e,e.XM.schedule,L,e.videoData.X,e.videoData.Z,ME(e),c,e.videoData.enableServerStitchedDai,h,e.videoData.D);L=e.videoData.Y("html5_disable_preload_for_ssdai_with_preroll")&&e.videoData.isLivePlayback&&e.fX()?!0: e.v3&&g.R2(e.XM)&&e.videoData.isLivePlayback;e.loader.initialize(e.getCurrentTime(),ME(e),L);e.videoData.probeUrl&&(e.loader.Sl=e.videoData.probeUrl);if(e.yT.length||e.v3)e.videoData.cotn||zO(e,!1);l7c(e.w0,e.loader);e.Pw&&(jYR(e.loader,new g.M0(e.Pw)),e.sW("sdai",{sdl:1}));g.uf(e.videoData)&&(e=e.loader,e.policy.Hv=e.policy.Vw)}; qE=function(e){e.loader&&(e.loader.dispose(),e.loader=null,l7c(e.w0,null));e.K2()?yKH(e):e.o1()}; yKH=function(e){if(e.g_)if(e.logger.debug("release media source"),e.kp(),e.g_.B)try{e.XM.oT()&&e.sW("rms",{l:"vprms",sr:e.K2(),rs:r1(e.g_)});e.g_.clear();var L;(L=e.mediaElement)!=null&&(L.K=e.g_);e.g_=null}catch(c){L=new g.yu("Error while clearing Media Source in VideoPlayer: "+c.name+", "+c.message),L=uy(L),e.handleError(L),e.o1()}else e.o1()}; Zmx=function(e,L){L=L===void 0?!1:L;if(e.g_)return e.g_.Z;e.logger.debug("update media source");a:{L=L===void 0?!1:L;try{g.m2()&&e.videoData.Cn()&&HNM(e.mediaElement);var c=e.mediaElement.y0(e.Hh(),e.YL())}catch(B){if(UYx(e.Yk,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",B);e.BM("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}e.Rf(c,!1,!1,L)}var I;return((I=e.y0())==null?void 0:I.Z)||null}; pQr=function(e,L){L=L===void 0?!1:L;if(e.loader){e.videoData.enableServerStitchedDai&&UfM(e.loader);var c=e.getCurrentTime()-e.FF();e.loader.seek(c,{mU:L}).XR(function(){})}else DrM(e)}; jxf=function(e,L,c,I){c=c===void 0?!1:c;I=I===void 0?!1:I;if(e.g_&&(!L||e.g_===L)){e.logger.debug("media source opened");var B=e.getDuration();!B&&J1(e.videoData)&&(B=25200);if(e.g_.isView){var x=B;e.logger.debug(function(){return"Set media source duration to "+x+", video duration "+B}); x>e.g_.getDuration()&&$rT(e,x)}else $rT(e,B);qqM(e.loader,e.g_,c,I);e.publish("mediasourceattached")}}; $rT=function(e,L){if(e.g_){e.g_.SF(L);var c;(c=e.loader)!=null&&c.policy.Ve&&(c.j=L)}}; sRv=function(e,L){JKr(e,L.reason,L.X.info,L.token,L.videoId)}; OU=function(e,L){e.publish("internalvideodatachange",L===void 0?"dataupdated":L,e.videoData)}; Hmf=function(e){for(var L=g.f("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),c=L.next();!c.done;c=L.next())e.Wz.C(e.mediaElement,c.value,e.AL,e);e.XM.GF&&e.mediaElement.jZ()&&(e.Wz.C(e.mediaElement,"webkitplaybacktargetavailabilitychanged",e.qWl,e),e.Wz.C(e.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",e.U0e,e))}; Pan=function(e){g.hF(e.ZH);lPH(e)||(e.ZH=g.SG(function(){return lPH(e)},100))}; lPH=function(e){var L=e.mediaElement;L&&e.yJ&&!e.videoData.Gm&&!ie("vfp",e.j5.timerName)&&L.qD()>=2&&!L.isEnded()&&E7(L.im())&&e.j5.tick("vfp");return(L=e.mediaElement)&&!e.videoData.Gm&&L.getDuration()>0&&(L.isPaused()&&L.qD()>=2&&E7(L.im())&&(ie("pbp",e.j5.timerName)||e.j5.tick("pbp"),!e.videoData.a8||e.SV||L.isSeeking()||(e.SV=!0,e.publish("onPlaybackPauseAtStart"))),L=L.getCurrentTime(),HH(e.RR,L))?(e.yW(),!0):!1}; drT=function(e){e.OY.vR();if(w7(e.videoData)&&Date.now()>e.rJ+6283){if(!(!e.isAtLiveHead()||e.videoData.X&&Nh(e.videoData.X))){var L=e.OY;if(L.qoe){L=L.qoe;var c=L.provider.zm.WY(),I=g.up(L.provider);P8$(L,I,c);c=c.Z;isNaN(c)||g.rx(L,I,"e2el",[c.toFixed(3)])}}e.Y("html5_alc_live_log_rawlat")?(L=e.videoData,L=g.rw(L.S())?!0:g.Oj(L.S())?L.drmProduct==="6":!1):L=g.rw(e.XM);I=e.Y("html5_always_log_rawlat");(L||I)&&e.sW("rawlat",{l:oq(e.fz,"rawlivelatency").toFixed(3)});e.rJ=Date.now()}e.videoData.K&& aK(e.videoData.K)&&(L=e.wy())&&L.videoHeight!==e.N9&&(e.N9=L.videoHeight,JKr(e,"a",QxT(e,e.videoData.m$)))}; QxT=function(e,L){if(L.X.video.quality==="auto"&&aK(L.getInfo())&&e.videoData.g0)for(var c=g.f(e.videoData.g0),I=c.next();!I.done;I=c.next())if(I=I.value,I.getHeight()===e.N9&&I.X.video.quality!=="auto")return I.getInfo();return L.getInfo()}; fPT=function(e){if(!w7(e.videoData))return NaN;var L=0;e.loader&&e.videoData.X&&(L=J1(e.videoData)?e.loader.oR.EK()||0:e.videoData.X.Ve);return(0,g.zI)()/1E3-e.sR()-L}; EeJ=function(e){e.mediaElement&&e.mediaElement.YI()&&(e.SJ=(0,g.zI)());e.XM.E5?g.oC(function(){Ur$(e)},0):Ur$(e)}; Ur$=function(e){var L;if((L=e.g_)==null||!L.OA()){if(e.mediaElement)try{e.Ko=e.mediaElement.playVideo()}catch(I){TO(e,"err."+I)}if(e.Ko){var c=e.Ko;c.then(void 0,function(I){e.logger.debug(function(){return"playMediaElement failed: "+I}); if(!g.E(e.playerState,4)&&!g.E(e.playerState,256)&&e.Ko===c)if(I&&I.name==="AbortError"&&I.message&&I.message.includes("load"))e.logger.debug(function(){return"ignore play media element failure: "+I.message}); else{var B="promise";I&&I.name&&(B+=";m."+I.name);TO(e,B);e.q5=!0;e.videoData.Ft=!0}})}}}; TO=function(e,L){g.E(e.playerState,128)||(e.Xp(fx(e.playerState,1028,9)),e.sW("dompaused",{r:L}),e.publish("onAutoplayBlocked"))}; Rq=function(e,L){L=L===void 0?!1:L;if(!e.mediaElement||!e.videoData.Z)return!1;var c=L;c=c===void 0?!1:c;var I=null;var B;if((B=e.videoData.Z)==null?0:B.X){I=Zmx(e,c);var x;(x=e.loader)==null||x.resume()}else qE(e),e.videoData.m$&&(I=e.videoData.m$.Qw());B=e.mediaElement.LL();c=!1;B&&B.equals(I)||(XQn(e,I),c=!0);g.E(e.playerState,2)||(I=e.w0,L=L===void 0?!1:L,I.B||!(I.Z>0)||I.mediaElement&&I.mediaElement.getCurrentTime()>0||(L={Ww:"seektimeline_resumeTime",mU:L},I.videoData.Gm||(L.seekSource=15), I.seekTo(I.Z,L)));a:{L=c;if(GN(e.videoData)){if(!e.videoData.cg())break a}else if(!g.ZI(e.videoData))break a;if(e.mediaElement)if((I=e.videoData.B)&&e.mediaElement.jZ()){B=e.mediaElement.IT();if(e.x0)if(B!==e.x0.element)sU(e);else if(L&&I.flavor==="fairplay"&&!y2())sU(e);else break a;if(e.Y("html5_report_error_for_unsupported_tvos_widevine")&&y2()&&I.flavor==="widevine")L=e.Y("html5_log_fmt_unplaybable_trigger")?"trg.unspttvoswidevine":"drm.unspttvoswidevine",e.BM("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK", L);else{e.x0=new Jr$(B,e.videoData,e.XM);e.x0.subscribe("licenseerror",e.vX,e);e.x0.subscribe("qualitychange",e.z$$,e);e.x0.subscribe("heartbeatparams",e.lO,e);e.x0.subscribe("keystatuseschange",e.BD,e);e.x0.subscribe("ctmp",e.sW,e);L=g.f(e.SN.keys);for(I=L.next();!I.done;I=L.next())I=e.SN.get(I.value),e.x0.JJ(I);e.Y("html5_eme_loader_sync")||e.SN.removeAll()}}else L=e.Y("html5_log_fmt_unplaybable_trigger")?"trg.updatedrm":"drm.1",e.BM("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",L)}return c}; XQn=function(e,L){e.j5.tick("vta");g_("vta",void 0,"video_to_ad");e.getCurrentTime()>0&&UE$(e.w0,e.getCurrentTime());e.mediaElement.activate(L);e.g_&&ds(4);!e.videoData.Gm&&e.playerState.isOrWillBePlaying()&&e.eE.start();if(VPv(e)){var c;if(L=(c=e.mediaElement)==null?void 0:c.audioTracks())L.onchange=function(){e.publish("internalaudioformatchange",e.videoData,!0)}}}; sU=function(e){e.x0&&(e.x0.dispose(),e.x0=null)}; KK6=function(e){var L=L===void 0?!1:L;e.logger.debug("reattachVideoSource");e.mediaElement&&(e.g_?(sU(e),e.o1(),Zmx(e,L)):(e.videoData.m$&&e.videoData.m$.G3(),e.mediaElement.stopVideo()),e.playVideo())}; YVf=function(e,L){e.XM.Y("html5_log_rebuffer_reason")&&(L={r:L,lact:qc()},e.mediaElement&&(L.bh=OP(e.mediaElement)),e.sW("bufreason",L))}; nef=function(e,L){if(e.XM.oT()&&e.mediaElement){var c=e.mediaElement.b5();c.omt=(e.mediaElement.getCurrentTime()+e.FF()).toFixed(3);c.ps=e.playerState.state.toString(16);c.rt=(g.up(e.OY.provider)*1E3).toFixed();c.e=L;e.eB[e.b6++%5]=c}try{if(L==="timeupdate"||L==="progress")return}catch(I){}e.logger.debug(function(){return"video element event "+L})}; eFv=function(e){if(e.XM.oT()){e.eB.sort(function(I,B){return+I.rt-+B.rt}); for(var L=g.f(e.eB),c=L.next();!c.done;c=L.next())c=c.value,e.sW("vpe",Object.assign({t:c.rt},c));e.eB=[];e.b6=0}}; LkH=function(e){if(g.aC("cobalt")&&g.aC("nintendo switch")){var L=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;e.sW("nxdock",{d:L})}}; zO=function(e,L){var c;(c=e.loader)==null||hzr(c,L)}; imc=function(e){Oq(e.videoData,"html5_set_debugging_opt_in")&&(e=g.J7(),g.Vu(0,183)||(aG(183,!0),e.save()))}; EDr=function(e,L){e.cw.jG()||(e.sW("sgap",{f:L}),e.cw.clearQueue(!1,L==="pe"))}; eo=function(e){return e.Y("html5_disable_video_player_initiated_seeks")&&GN(e.videoData)}; cnn=function(e){Rv.call(this,e);var L=this;this.events=new g.zn(e);g.l(this,this.events);vS(this.api,"isLifaAdPlaying",function(){return L.api.isLifaAdPlaying()}); this.events.C(e,"serverstitchedvideochange",function(){var c;(c=L.api.getVideoData())!=null&&c.GI()&&(L.api.isLifaAdPlaying()?(L.playbackRate=L.api.getPlaybackRate(),L.api.setPlaybackRate(1)):L.api.setPlaybackRate(L.playbackRate))}); this.playbackRate=1}; vc=function(e){Mo.call(this,"Loop",g.b_.Mp);this.V=e;var L=e.Y("delhi_modern_web_player_icons")?{U:"svg",N:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{U:"path",N:{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"}}]}:VLT();this.setIcon(L);this.subscribe("select",this.K,this);e.createClientVe(this.element,this,28661);this.C(e,"settingsMenuVisibilityChanged",this.X);this.listen("click",this.logClick);this.C(e,"onLoopChange",this.onLoopChange);z2(this,e.getLoopVideo());e.T8().Yx(this)}; Ifv=function(e){Rv.call(this,e);var L=this;e.addEventListener("settingsMenuInitialized",function(){L.menuItem||(L.menuItem=new vc(L.api),g.l(L,L.menuItem))}); e.addEventListener("videodatachange",function(c,I){c=L.api.getPresentingPlayerType()===2;var B;(B=L.menuItem)==null||B.i5(!I.isLivePlayback&&!c)})}; BNc=function(e){Rv.call(this,e);var L=this;this.events=new g.zn(e);g.l(this,this.events);vS(this.api,"seekToChapterWithAnimation",function(c){L.seekToChapterWithAnimation(c)}); vS(this.api,"seekToTimeWithAnimation",function(c,I){L.seekToTimeWithAnimation(c,I)}); vS(this.api,"renderChapterSeekingAnimation",function(c,I,B){L.api.renderChapterSeekingAnimation(c,I,B)}); vS(this.api,"setMacroMarkers",function(c){L.setMacroMarkers(e,c)}); vS(this.api,"changeMarkerVisibility",function(c,I,B){L.changeMarkerVisibility(c,I,B)}); vS(this.api,"isSameMarkerTypeVisible",function(c){return L.isSameMarkerTypeVisible(c)})}; x$M=function(e,L,c){var I=e.api.getCurrentTime()*1E30&&B>0&&(c.width+=B,g.l3(L.element,"width",c.width+"px")));e.size=c}}; g.m4=function(e,L){var c=e.X[e.X.length-1];c!==L&&(e.X.push(L),Jnf(e,c,L))}; g.yP=function(e){if(!(e.X.length<=1)){var L=e.X.pop(),c=e.X[0];e.X=[c];Jnf(e,L,c,!0)}}; Jnf=function(e,L,c,I){VwT(e);L&&(L.unsubscribe("size-change",e.mJ,e),L.unsubscribe("back",e.zN,e));c.subscribe("size-change",e.mJ,e);c.subscribe("back",e.zN,e);if(e.z_){g.Y4(c.element,I?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.jl(e.element);c.focus();e.element.scrollLeft=0;e.element.scrollTop=0;var B=e.size;wPR(e);g.e_(e.element,B);e.j=new g.j9(function(){CoJ(e,L,c,I)},20,e); e.j.start()}else c.jl(e.element),L&&L.detach()}; CoJ=function(e,L,c,I){e.j.dispose();e.j=null;g.Y4(e.element,"ytp-popup-animating");I?(g.Y4(L.element,"ytp-panel-animate-forward"),g.eZ(c.element,"ytp-panel-animate-back")):(g.Y4(L.element,"ytp-panel-animate-back"),g.eZ(c.element,"ytp-panel-animate-forward"));g.e_(e.element,e.size);e.T=new g.j9(function(){g.eZ(e.element,"ytp-popup-animating");L.detach();g.L1(L.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);e.T.dispose();e.T=null},250,e); e.T.start()}; VwT=function(e){e.j&&g.lB(e.j);e.T&&g.lB(e.T)}; Z7=function(e){g.NE.call(this,e,"ytp-shopping-product-menu");this.sF=new g.Cp(this.V);g.l(this,this.sF);this.hide();g.m4(this,this.sF);g.Uq(this.V,this.element,4)}; NN$=function(e,L,c){var I,B=L==null?void 0:(I=L.text)==null?void 0:I.simpleText;B&&(c=af6(e,c,B,L==null?void 0:L.icon,L==null?void 0:L.secondaryIcon),L.navigationEndpoint&&c.listen("click",function(){e.V.fS("innertubeCommand",L.navigationEndpoint);e.hide()},e))}; m$f=function(e,L,c){var I,B=L==null?void 0:(I=L.text)==null?void 0:I.simpleText;B&&af6(e,c,B,L==null?void 0:L.icon).listen("click",function(){var x;(L==null?void 0:(x=L.icon)==null?void 0:x.iconType)==="HIDE"?e.V.publish("featuredproductdismissed"):L.serviceEndpoint&&e.V.fS("innertubeCommand",L.serviceEndpoint);e.hide()},e)}; af6=function(e,L,c,I,B){L=new g.ov(g.SS({},[],!1,!!B),L,c);B&&L.updateValue("secondaryIcon",ync(B));L.setIcon(ync(I));g.l(e,L);e.sF.Yx(L,!0);return L}; ync=function(e){if(!e)return null;switch(e.iconType){case "ACCOUNT_CIRCLE":return{U:"svg",N:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{U:"path",N:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 1c4.96 0 9 4.04 9 9 0 1.42-.34 2.76-.93 3.96-1.53-1.72-3.98-2.89-7.38-3.03A3.99 3.99 0 0016 9c0-2.21-1.79-4-4-4S8 6.79 8 9c0 1.97 1.43 3.6 3.31 3.93-3.4.14-5.85 1.31-7.38 3.03C3.34 14.76 3 13.42 3 12c0-4.96 4.04-9 9-9zM9 9c0-1.65 1.35-3 3-3s3 1.35 3 3-1.35 3-3 3-3-1.35-3-3zm3 12c-3.16 0-5.94-1.64-7.55-4.12C6.01 14.93 8.61 13.9 12 13.9c3.39 0 5.99 1.03 7.55 2.98C17.94 19.36 15.16 21 12 21z", fill:"#fff"}}]};case "FLAG":return{U:"svg",N:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{U:"path",N:{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 sGJ();case "HIDE":return{U:"svg",N:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{U:"g",L:[{U:"path",N:{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 W7()}}; pp=function(e){J2.call(this,e,!1,!0);this.isCounterfactual=this.K=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.J=!0;this.overflowButton=new g.U({U:"button",Rq:["ytp-featured-product-overflow-icon","ytp-button"],N:{"aria-haspopup":"true"}});this.overflowButton.hide();g.l(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.U({U:"img",W:"ytp-suggested-action-badge-img",N:{src:"{{url}}"}}); this.thumbnailImage.hide();g.l(this,this.thumbnailImage);this.thumbnailIcon=new g.U({U:"div",W:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.l(this,this.thumbnailIcon);this.banner=new g.U({U:"a",W:"ytp-suggested-action-container",L:[this.thumbnailImage,this.thumbnailIcon,{U:"div",W:"ytp-suggested-action-details",L:[{U:"text",W:"ytp-suggested-action-title",aq:"{{title}}"},{U:"text",W:"ytp-suggested-action-subtitle",aq:"{{subtitle}}"},{U:"text",W:"ytp-suggested-action-metadata-text", aq:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.l(this,this.banner);this.banner.jl(this.Z.element);this.C(this.V,"videodatachange",this.onVideoDataChange);this.C(this.V,g.jh("suggested_action_view_model"),this.N_M);this.C(this.V,g.Hq("suggested_action_view_model"),this.bS$);this.C(this.overflowButton.element,"click",this.nD);this.C(e,"featuredproductdismissed",this.q$);this.V.createServerVe(this.banner.element,this.banner,!0)}; ZgT=function(e){e.isInitialized&&(e.enabled=e.isVisible,e.h7=e.isVisible,wB(e),e.z8(),e.thumbnailImage.i5(e.isVisible),e.shouldHideDismissButton||e.dismissButton.i5(e.isVisible),e.shouldShowOverflowButton&&e.overflowButton.i5(e.isVisible))}; $1=function(){pp.apply(this,arguments)}; pPr=function(e){Rv.call(this,e);this.X=new $1(this.api);g.l(this,this.X);g.Uq(this.api,this.X.element,4)}; jo=function(e){Rv.call(this,e);var L=this;this.X=!0;var c=new g.zn(e);g.l(this,c);c.C(e,"internalaudioformatchange",function(I,B){$$n(L,I,B)}); c.C(e,"videoplayerreset",function(){j3c(L)}); c.C(e,"videodatachange",function(I,B){L.onVideoDataChange(I,B)})}; $$n=function(e,L,c){if(c){var I="";HgM(e,L)&&(I=L,e.api.S().d_=L);if(I&&lfn(e,I)){w$c(e.api,I);var B;GR(ij(e.api.S(),(B=e.api.getVideoData())==null?void 0:g.xb(B)),function(x){Pox(e,I,x)})}}}; j3c=function(e){var L;if((L=Og())==null?0:L.size){var c;GR(ij(e.api.S(),(c=e.api.getVideoData())==null?void 0:g.xb(c)),function(I){(I=Q3R(I))&&lfn(e,I)&&(e.api.S().d_=I)})}}; Pox=function(e,L,c){Q3R(c)!==L&&(d$f([{settingItemId:Hc(c),settingOptionValue:{stringValue:L}}]),GR(e.gg(),function(I){Mlx(I,Hc(c),{stringValue:L})}))}; U$v=function(e,L){g8(GR(GR(e.gg(),function(c){return Tin(c,[Hc(L)])}),function(c){if(c){c=g.f(c); for(var I=c.next();!I.done;I=c.next()){var B=I.value;I=B.key;B=B.value;I&&B&&(d$f([{settingItemId:I,settingOptionValue:B}]),j3c(e))}}}),function(){e.X=!0})}; HgM=function(e,L){e=e.api.getAvailableAudioTracks();e=g.f(e);for(var c=e.next();!c.done;c=e.next())if(c=c.value,c.getLanguageInfo().getId()===L)return c;return null}; Q3R=function(e){e=Hc(e);var L=Og();e=L?L.get(e):void 0;return e&&e.stringValue?e.stringValue:""}; Hc=function(e){var L=(484).toString();e&&(L=(483).toString());return L}; lfn=function(e,L){var c;return L.split(".")[0]!==""&&((c=e.api.getVideoData())==null?void 0:!SD(c))}; d$f=function(e){var L=Og();L||(L=new Map);e=g.f(e);for(var c=e.next();!c.done;c=e.next())c=c.value,L.set(c.settingItemId,c.settingOptionValue);L=JSON.stringify(Object.fromEntries(L));g.bS("yt-player-user-settings",L,2592E3)}; g.lQ=function(e,L,c,I,B,x,S){g.ov.call(this,g.SS({"aria-haspopup":"true"}),L,e);this.G_=I;this.J=!1;this.Z=null;this.options={};this.K=new g.Cp(c,void 0,e,B,x,S);g.l(this,this.K);this.listen("keydown",this.HI);this.listen("click",this.open)}; E8c=function(e){if(e.Z){var L=e.options[e.Z];L.element.getAttribute("aria-checked");L.element.setAttribute("aria-checked","false");e.Z=null}}; XPJ=function(e,L){g.lQ.call(this,"Sleep timer",g.b_.SLEEP_TIMER,e,L);this.V=e;this.D={};this.j=this.FJ("Off");this.T=this.X="";e.Y("web_settings_menu_icons")&&(L=e.Y("delhi_modern_web_player_icons")?{U:"svg",N:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{U:"path",N:{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"}}]}:{U:"svg",N:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{U:"path",N:{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(L)); this.G=new g.U({U:"div",Rq:["ytp-menuitem-label-wrapper"],L:[{U:"div",aq:"End of video"},{U:"div",Rq:["ytp-menuitem-sublabel"],aq:"{{content}}"}]});g.l(this,this.G);this.listen("click",this.onClick);this.C(e,"videodatachange",this.onVideoDataChange);this.C(e,"presentingplayerstatechange",this.OW);this.C(e,"settingsMenuVisibilityChanged",this.mP);e.createClientVe(this.element,this,218889);this.OW();this.V.fS("onSleepTimerFeatureAvailable")}; KkJ=function(e){var L="Off 10 15 20 30 45 60".split(" "),c;((c=e.V.getVideoData())==null?0:c.isLivePlayback)||L.push("End of video");c=e.V.getPlaylist();var I;c&&((I=c.listId)==null?void 0:I.type)!=="RD"&&L.push("End of playlist");e.Ip(g.Mt(L,e.FJ));e.D=g.YN(L,e.FJ,e);L=e.FJ("End of video");e.options[L]&&g.xq(e.options[L],e.G)}; YGn=function(e,L){var c=e.D[L],I=c==="End of video"||c==="End of playlist";c==="Off"&&(e.X="");e.V.getPlayerState()!==0&&e.V.getPlayerState()!==5||!I?(e.j=L,g.lQ.prototype.GV.call(e,L),e.XC(L),e.V.fS("onSleepTimerSettingsChanged",c)):e.V.fS("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"Video has already ended"}}}}})}; Pc=function(e){Rv.call(this,e);var L=this;e.addEventListener("settingsMenuInitialized",function(){L.menuItem||(L.menuItem=new XPJ(L.api,L.api.T8()),g.l(L,L.menuItem))}); e.addEventListener("openSettingsMenuItem",function(c){if(c==="menu_item_sleep_timer"){if(!L.menuItem){var I;(I=L.api.T8())==null||I.Fp()}L.menuItem.open()}}); vS(e,"resetSleepTimerMenuSettings",function(){L.resetSleepTimerMenuSettings()}); vS(e,"setSleepTimerTimeLeft",function(c){L.setSleepTimerTimeLeft(c)}); vS(e,"setVideoTimeLeft",function(c){L.setVideoTimeLeft(c)})}; n8n=function(e){Rv.call(this,e);var L=this;this.events=new g.zn(e);g.l(this,this.events);this.events.C(e,"onSnackbarMessage",function(c){switch(c){case 1:c=L.api.getPlayerStateObject(),c.isBuffering()&&(L.api.Y("html5_disable_snackbar_message_checking_on_seeking_to_play")||g.E(c,8)&&g.E(c,16))&&L.api.fS("innertubeCommand",{openPopupAction:{popup:{notificationActionRenderer:{responseText:{runs:[{text:"Experiencing interruptions?"}]},actionButton:{buttonRenderer:{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT", text:{runs:[{text:"Find out why"}]},navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers",webPageType:"WEB_PAGE_TYPE_UNKNOWN"}},urlEndpoint:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers",target:"TARGET_NEW_WINDOW"}},loggingDirectives:{clientVeSpec:{uiType:232471}}}},loggingDirectives:{clientVeSpec:{uiType:232470}}}}, durationHintMs:5E3,popupType:"TOAST"}})}})}; g.dB=function(e,L,c,I,B){L=L===void 0?!1:L;I=I===void 0?!1:I;B=B===void 0?!1:B;g.Yg.call(this);this.D=B;this.T=!1;this.G=new sR(this);this.B=this.j=null;this.Z=this.K=!1;g.l(this,this.G);this.target=e;this.X=L;this.J=c||e;this.T=I;L&&(g.RF&&this.target.setAttribute("draggable","true"),B||(this.target.style.touchAction="none"));QP(this)}; UU=function(e){g.fv(e.G,!e.X)}; QP=function(e){e.B=null;e.j=null;e.C(EU("over"),e.YX);e.C("touchstart",e.V8);e.X&&e.C(EU("down"),e.DG)}; eun=function(e,L){for(var c=0;ct.start&&c>=5;A+=J}B=A.substr(0,4)+" "+A.substr(4,4)+" "+A.substr(8,4)+" "+(A.substr(12,4)+" "+A.substr(16,4))}else B="";S={video_id_and_cpn:String(L.videoId)+" / "+B,codecs:"",dims_and_frames:"",bandwidth_kbps:S.toFixed(0)+" Kbps",buffer_health_seconds:R.toFixed(2)+ " s",date:""+(new Date).toString(),drm_style:u?"":"display:none",drm:u,debug_info:c,extra_debug_info:"",bandwidth_style:q,network_activity_style:q,network_activity_bytes:h.toFixed(0)+" KB",shader_info:O,shader_info_style:O?"":"display:none",playback_categories:""};h=I.clientWidth+"x"+I.clientHeight+(t>1?"*"+t.toFixed(2):"");R="-";x.totalVideoFrames&&(R=(x.droppedVideoFrames||0)+" dropped of "+x.totalVideoFrames);S.dims_and_frames=h+" / "+R;e=e.getVolume();h=EzJ(L);var C;if((C=L.G)==null?0:C.audio.K)C= "VB";else{var y;C=((y=L.G)==null?0:y.audio.X)?"DRC":Math.round(e*h)+"%"}y=Math.round(e)+"% / "+C;C=L.m1.toFixed(1);isFinite(Number(C))&&(y+=" (content loudness "+C+"dB)");S.volume=y;S.resolution=I.videoWidth+"x"+I.videoHeight;if(I=L.K){if(y=I.video)C=y.fps,C>1&&(S.resolution+="@"+C),(C=x.l6)&&C.video&&(S.resolution+=" / "+C.video.width+"x"+C.video.height,C.video.fps>1&&(S.resolution+="@"+C.video.fps)),S.codecs=oXx(I),!L.G||I.audio&&I.video?I.Y$&&(S.codecs+=" / "+I.Y$+"A"):S.codecs+=" / "+oXx(L.G), y.X||y.primaries?(C=y.X||"unknown",C==="smpte2084"?C+=" (PQ)":C==="arib-std-b67"&&(C+=" (HLG)"),S.color=C+" / "+(y.primaries||"unknown"),S.color_style=""):S.color_style="display:none";if(I.debugInfo)for(S.fmt_debug_info="",I=g.f(I.debugInfo),y=I.next();!y.done;y=I.next())y=y.value,S.fmt_debug_info+=y.label+":"+y.text+" ";S.fmt_debug_info_style=S.fmt_debug_info&&S.fmt_debug_info.length>0?"":"display:none"}I=L.isLivePlayback;y=L.tq;S.live_mode_style=I||y?"":"display:none";S.live_latency_style=I?"": "display:none";if(y)S.live_mode="Post-Live"+(J1(L)?" Manifestless":"");else if(I){y=x.Kh;S.live_latency_secs=y.toFixed(2)+"s";I=J1(L)?"Manifestless, ":"";L.pS&&(I+="Windowed, ");C="Uncertain";if(y>=0&&y<120)if(L.latencyClass&&L.latencyClass!=="UNKNOWN")switch(L.latencyClass){case "NORMAL":C="Optimized for Normal Latency";break;case "LOW":C="Optimized for Low Latency";break;case "ULTRALOW":C="Optimized for Ultra Low Latency";break;default:C="Unknown Latency Setting"}else C=L.isLowLatencyLiveStream? "Optimized for Low Latency":"Optimized for Smooth Streaming";I+=C;(y=x.i6)&&(I+=", seq "+y.sequence);S.live_mode=I}!x.isGapless||A1(L)&&x.jG||(S.playback_categories+="Gapless ");S.playback_categories_style=S.playback_categories?"":"display:none";S.bandwidth_samples=x.ke;S.network_activity_samples=x.HZ;S.live_latency_samples=x.UJ;S.buffer_health_samples=x.rS;x=g.uf(L);if(L.cotn||x)S.cotn_and_local_media=(L.cotn?L.cotn:"null")+" / "+x;S.cotn_and_local_media_style=S.cotn_and_local_media?"":"display:none"; Oq(L,"web_player_release_debug")?(S.release_name=r[13],S.release_style=""):S.release_style="display:none";S.debug_info&&T.length>0&&S.debug_info.length+T.length<=60?S.debug_info+=" "+T:S.extra_debug_info=T;S.extra_debug_info_style=S.extra_debug_info&&S.extra_debug_info.length>0?"":"display:none";return S}; oXx=function(e){var L=/codecs="([^"]*)"/.exec(e.mimeType);return L&&L[1]?L[1]+" ("+e.itag+")":e.itag}; cQ=function(e,L,c,I,B){g.U.call(this,{U:"div",W:"ytp-horizonchart"});this.T=L;this.sampleCount=c;this.G=I;this.j=B;this.index=0;this.heightPx=-1;this.Z=this.K=null;this.X=Math.round(e/c);this.element.style.width=this.X*this.sampleCount+"px";this.element.style.height=this.T+"em"}; Ix=function(e,L){if(e.heightPx===-1){var c=null;try{c=g.ql("CANVAS"),e.K=c.getContext("2d")}catch(h){}if(e.K){var I=e.X*e.sampleCount;e.Z=c;e.Z.width=I;e.Z.style.width=I+"px";e.element.appendChild(e.Z)}else for(e.sampleCount=Math.floor(e.sampleCount/4),e.X*=4,c=0;c1?2:1,e.Z.height=e.heightPx*c,e.Z.style.height= e.heightPx+"px",e.K.scale(1,c)));L=g.f(L);for(I=L.next();!I.done;I=L.next()){c=e;var B=e.index,x=I.value;for(I=0;I+20&&g.Ml(L.K.element);I.classList.add("ytp-timely-actions-overlay");L.K.element.appendChild(I)}); g.l(this,this.K);this.Y("web_player_overlay_positioned_layout")?this.events.C(e,"basechromeinitialized",function(){L.api.Rh(L.K.element,4,!0);L.K.element.setAttribute("data-overlay-order","10")}):g.Uq(this.api,this.K.element,4)}; A4n=function(e){e.timelyActions&&(e.G=e.timelyActions.reduce(function(L,c){if(c.cueRangeId===void 0)return L;L[c.cueRangeId]=0;return L},{}))}; SP=function(e,L){if(e.timelyActions){e=g.f(e.timelyActions);for(var c=e.next();!c.done;c=e.next())if(c=c.value,c.cueRangeId===L)return c}}; FWM=function(e,L){if((e=SP(e,L))&&e.onCueRangeExit)return go(e.onCueRangeExit)}; zun=function(e,L){return e.Z===void 0?!1:L.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(L.seekLengthMilliseconds)===5E3?e.Z===72:L.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(L.seekLengthMilliseconds)===1E4?e.Z===74:L.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(L.seekLengthMilliseconds)===5E3?e.Z===71:L.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(L.seekLengthMilliseconds)===1E4?e.Z===73:!1}; b_H=function(e,L){var c=Number(L==null?void 0:L.maxVisibleDurationMilliseconds);c&&(r0(e),e.h7=setTimeout(function(){if(e.X!==void 0&&(L==null?void 0:L.cueRangeId)===e.X){e.D=!1;var I=FWM(e,e.X);I&&e.api.fS("innertubeCommand",I)}},c))}; r0=function(e){e.h7&&clearTimeout(e.h7);e.h7=void 0;e.D=!1}; sUf=function(e){if(e=e.getWatchNextResponse()){var L,c;e=(L=e.playerOverlays)==null?void 0:(c=L.playerOverlayRenderer)==null?void 0:c.timelyActionsOverlayViewModel;L=g.Q(e,i_c);if(L!=null&&L.timelyActions)return L==null?void 0:L.timelyActions.map(function(I){return g.Q(I,GXv)}).filter(function(I){return!!I})}}; gXv=function(e){Rv.call(this,e);var L=this;f2(this.api,"getPlaybackRate",function(){return L.api.getPlaybackRate()}); f2(this.api,"setPlaybackRate",function(c){typeof c==="number"&&L.api.setPlaybackRate(c)})}; hK=function(e,L,c,I){Mo.call(this,"VOICE_BOOST",g.b_.hc);this.X=!1;this.V=e;this.G_=e.T8();this.G=L;this.Z=c;this.hasVoiceBoostAudioTrack=I;this.C(e,"videodatachange",this.K);this.setIcon(g5x());this.subscribe("select",this.j,this);this.K()}; Rx=function(e){Rv.call(this,e);var L=this;this.events=new g.zn(e);g.l(this,this.events);this.events.C(e,"settingsMenuInitialized",function(){kXM(L)}); vS(this.api,"getVoiceBoostUserPreference",function(){return L.getVoiceBoostUserPreference()}); vS(this.api,"setVoiceBoostUserPreference",function(I){L.setVoiceBoostUserPreference(I)}); vS(this.api,"hasVoiceBoostAudioTrack",function(){return L.hasVoiceBoostAudioTrack()}); var c;this.X=(c=cEc())!=null?c:0;this.updateEnvironmentData()}; kXM=function(e){e.menuItem||(e.menuItem=new hK(e.api,function(L){e.setVoiceBoostUserPreference(L)},function(){return e.getVoiceBoostUserPreference()},function(){return e.hasVoiceBoostAudioTrack()}),g.l(e,e.menuItem))}; DGf=function(e){e=e.Wd();if(!e)return!1;e=g.Ee(e).exp||"";return e.includes("xpv")||e.includes("xpe")}; wev=function(e){e=g.f(g.ua(e,!0));for(var L=e.next();!L.done;L=e.next())if(DGf(L.value))return!0;return!1}; J4c=function(e,L){e=g.f(g.ua(e,!0));for(var c=e.next();!c.done;c=e.next())if(c=c.value,DGf(c)){var I={potc:"1",pot:L};c.url&&(c.url=X$(c.url,I))}}; VYn=function(e){return g.Z(function(L){if(L.K==1)return g.bn(L,2),g.a(L,e,4);if(L.K!=2)return g.DR(L,0);g.wc(L);g.AJ(L)})}; OV=function(e){Rv.call(this,e);var L=this;this.useLivingRoomPoToken=!1;this.B=new g.rk;this.X=!1;this.j5=null;this.J=!1;this.G=null;this.j=!1;var c=e.S().getWebPlayerContextConfig();this.events=new g.zn(e);g.l(this,this.events);this.events.C(e,"spsumpreject",function(I,B,x){L.j=B;I&&L.J&&!L.G&&(L.Y("html5_generate_content_po_token")&&x?L.HB(x):L.Y("html5_generate_session_po_token")&&CUn(L));L.G||L.api.sW("stp",{s:+L.J,b:+L.j})}); this.events.C(e,"poTokenVideoBindingChange",function(I){L.HB(I)}); this.useLivingRoomPoToken=!(c==null||!c.useLivingRoomPoToken);e.addEventListener("csiinitialized",function(){L.j5=e.ZV();var I=(L.Y("html5_generate_session_po_token")||L.Y("html5_generate_content_po_token"))&&!L.useLivingRoomPoToken;try{if(L.Y("html5_use_shared_owl_instance"))aBf(L);else if(I){L.j5.K1("pot_isc");var B=g.X3(L.api.S().experiments,"html5_webpo_kaios_defer_timeout_ms");B?(L.Z=ad(),g.oC(function(){tK(L)},B)):L.Y("html5_webpo_idle_priority_job")?(L.Z=ad(),g.HI(g.PI(),function(){tK(L)})): tK(L)}}catch(x){x instanceof Error&&g.F7(x)}}); e.addEventListener("trackListLoaded",this.Aa.bind(this));e.uH(this)}; NZJ=function(e){var L=qX(e.experiments,"html5_web_po_request_key");return L?L:g.R2(e)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; mGM=function(e){var L=new x1v,c={},I=(c["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",c);return new qk(L,e,function(){return I})}; y4n=function(e){return new Ta(e)}; qr=function(e,L){e.Y("html5_webpo_bge_ctmp")&&e.api.sW(L,{hwpo:!!e.K,hwpor:e.X})}; aBf=function(e){var L,c;g.Z(function(I){if(I.K==1)return qr(e,"swpo_i"),e.Z=ad(),Tb(e),g.a(I,Xy(),2);if(I.K!=3)return L=I.X,qr(e,"swpo_co"),g.a(I,aiT(L),3);c=I.X;e.Y("html5_web_po_token_disable_caching")||c.ob(150);e.K=c;qr(e,"swpo_cc");VYn(c.hT()).then(function(){e.X=!0;e.B.resolve();qr(e,"swpo_re")}); g.oC(function(){tK(e);qr(e,"swpo_si")},0); g.AJ(I)})}; $GR=function(e){var L=e.api.S(),c=mGM(NZJ(L)),I=c.zd.bind(c);c.zd=function(h){var R;return g.Z(function(u){if(u.K==1)return g.a(u,I(h),2);R=u.X;e.api.sW("itr",{});return u.return(R)})}; try{var B=y4n({Bm:c,IY:{maxAttempts:5},CJ:{EU:"CLEn",disable:L.experiments.N0("html5_web_po_disable_remote_logging")||Z_H.includes(g.hp(L.PU)||""),zL:Qin(L.experiments),F9:L.experiments.N0("wpo_gel_strz")?function(h){var R=pev.get(h);R||(R=new qL$(h),R=new g.Nq(R),pev.set(h,R));return R}:void 0, Ec:e.Y("wpo_dis_lfdms")?0:1E3},SWM:g.F7});var x=new Vi({zk:B,Bm:c,onError:g.F7});VYn(x.hT()).then(function(){e.X=!0;e.B.resolve()}); e.Y("html5_web_po_token_disable_caching")||x.ob(150);g.l(e,B);g.l(e,x);e.K=x}catch(h){g.F7(h);var S;(S=B)==null||S.dispose()}}; tK=function(e){var L=e.api.S();e.j5.K1("pot_ist");e.K||$GR(e);e.Y("html5_bandaid_attach_content_po_token")||(e.Y("html5_generate_session_po_token")&&(Tb(e),CUn(e)),L=g.X3(L.experiments,"html5_session_po_token_interval_time_ms")||0,L>0&&(e.T=g.SG(function(){Tb(e)},L)),e.J=!0)}; Tb=function(e){var L,c,I,B;g.Z(function(x){if(!e.Y("html5_generate_session_po_token")||e.useLivingRoomPoToken)return x.return();L=e.api.S();c=g.Zu("EOM_VISITOR_DATA")||g.Zu("VISITOR_DATA");I=L.xz?L.datasyncId:c;B=qX(L.experiments,"html5_mock_content_binding_for_session_token")||L.livingRoomPoTokenId||I;L.Ft=WQ(e,B);g.AJ(x)})}; WQ=function(e,L){if(!e.K){if(e.Z)try{return e.Z(L)}catch(x){g.F7(x)}return""}try{e.j5.K1(e.X?"pot_cms":"pot_csms");var c={dG:!0,lx:!0,JO:L};e.Y("html5_web_po_token_disable_caching")||(c.xt={EQ:L,hZ:!0,RX:!0});var I=e.K.RN(c);e.j5.K1(e.X?"pot_cmf":"pot_csmf");if(e.X){var B;(B=e.G)==null||B.resolve();e.G=null;e.j&&(e.j=!1,e.api.app.Qe().In(!1))}return I}catch(x){return g.F7(x),""}}; CUn=function(e){e.K&&(e.G=new Ri,e.B.promise.then(function(){e.j5.K1("pot_if");Tb(e)}))}; g.Mr=function(e,L,c){g.cY(e.element,"ytp-suggestion-set",!!L.videoId);var I=L.playlistId;c=L.j9(c?c:"mqdefault.jpg");var B=null,x=null;L instanceof Pn&&(L.lengthText?(B=L.lengthText||null,x=L.hJ||null):L.lengthSeconds&&(B=g.Te(L.lengthSeconds),x=g.Te(L.lengthSeconds,!0)));var S=!!I;I=S&&Hn(I).type==="RD";var h=L instanceof Pn?L.isLivePlayback:null,R=L instanceof Pn?L.isUpcoming:null,u=L.author,t=L.shortViewCount,O=L.publishedTimeText,q=[],T=[];u&&q.push(u);t&&(q.push(t),T.push(t));O&&T.push(O);c= {title:L.title,author:u,author_and_views:q.join(" \u2022 "),aria_label:L.ariaLabel||g.nC("Watch $TITLE",{TITLE:L.title}),duration:B,timestamp:x,url:L.Pv(),is_live:h,is_upcoming:R,is_list:S,is_mix:I,background:c?"background-image: url("+c+")":"",views_and_publish_time:T.join(" \u2022 "),autoplayAlternativeHeader:L.Lw};L instanceof lj&&(c.playlist_length=L.playlistLength);e.update(c)}; g.zb=function(e){var L=e.S(),c=g.q8||g.QG?{style:"will-change: opacity"}:void 0,I=L.G,B=["ytp-modern-videowall-still"];L.K&&B.push("ytp-videowall-show-text");g.U.call(this,{U:"a",Rq:B,N:{href:"{{url}}",target:I?L.D:"","aria-label":"{{aria_label}}","data-is-live":"{{is_live}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},L:[{U:"div",W:"ytp-modern-videowall-still-image",N:{style:"{{background}}"},L:[{U:"span",W:"ytp-modern-videowall-still-info-duration",aq:"{{duration}}"}]},{U:"span",W:"ytp-modern-videowall-still-info", N:{"aria-hidden":"true"},L:[{U:"span",W:"ytp-modern-videowall-still-info-bg",L:[{U:"span",W:"ytp-modern-videowall-still-info-content",N:c,L:[{U:"span",W:"ytp-modern-videowall-still-info-title",aq:"{{title}}"},{U:"span",W:"ytp-modern-videowall-still-info-author",aq:"{{author_and_views}}"},{U:"span",W:"ytp-modern-videowall-still-info-live",aq:"Live"}]}]}]},{U:"span",Rq:["ytp-modern-videowall-still-listlabel-regular","ytp-modern-videowall-still-listlabel"],N:{"aria-hidden":"true"},L:[{U:"span",W:"ytp-modern-videowall-still-listlabel-icon"}, "Playlist",{U:"span",W:"ytp-modern-videowall-still-listlabel-length",L:[" (",{U:"span",aq:"{{playlist_length}}"},")"]}]},{U:"span",Rq:["ytp-modern-videowall-still-listlabel-mix","ytp-modern-videowall-still-listlabel"],N:{"aria-hidden":"true"},L:[{U:"span",W:"ytp-modern-videowall-still-listlabel-mix-icon"},"Mix",{U:"span",W:"ytp-modern-videowall-still-listlabel-length",aq:" (50+)"}]}]});this.suggestion=null;this.K=I;this.api=e;this.X=new g.zn(this);g.l(this,this.X);this.listen("click",this.onClick); this.listen("keypress",this.onKeyPress);this.X.C(e,"videodatachange",this.onVideoDataChange);e.createServerVe(this.element,this);this.onVideoDataChange()}; g.jUv=function(e,L){if(e.suggestion!==L){e.suggestion=L;var c=e.api.S();g.Mr(e,L,"hqdefault.jpg");if(g.Uh(c)&&!e.api.Y("web_player_log_click_before_generating_ve_conversion_params")){c=L.Pv();var I={};g.Fl(e.api,"addEmbedsConversionTrackingParams",[I]);c=g.WO(c,I);e.updateValue("url",c)}(L=(L=L.sessionData)&&L.itct)&&e.api.setTrackingParams(e.element,L)}}; sV=function(e,L){g.U.call(this,{U:"div",Rq:["ytp-fullscreen-grid"],L:[{U:"div",W:"ytp-fullscreen-grid-hover-overlay",N:{title:"{{title}}","aria-keyshortcuts":"v","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-fullscreen-grid","data-tooltip-offset-y":"-20"},L:[{U:"div",W:"ytp-fullscreen-grid-hover-overlay-chevron",L:[{U:"svg",N:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{U:"g",N:{filter:"url(#filter0_d_3104_799356)"},L:[{U:"path",N:{d:"M5.29 15.20C4.92 14.84 4.90 14.26 5.22 13.86L5.29 13.79L11.99 7.08L18.70 13.79C19.09 14.18 19.09 14.81 18.70 15.20C18.31 15.59 17.68 15.59 17.29 15.20L11.99 9.91L6.70 15.20L6.63 15.27C6.23 15.59 5.65 15.57 5.29 15.20Z", fill:"white"}}]},{U:"defs",L:[{U:"filter",N:{"color-interpolation-filters":"sRGB",filterUnits:"userSpaceOnUse",height:"26",width:"26",x:"-1",y:"-1"},L:[{U:"feFlood",N:{"flood-opacity":"0",result:"BackgroundImageFix"}},{U:"feColorMatrix",N:{"in":"SourceAlpha",result:"hardAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}},{U:"feOffset"},{U:"feGaussianBlur",N:{stdDeviation:"0.5"}},{U:"feComposite",N:{in2:"hardAlpha",operator:"out"}},{U:"feColorMatrix",N:{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.8 0"}}, {U:"feBlend",N:{in2:"BackgroundImageFix",mode:"normal",result:"effect1_dropShadow_3104_799356"}},{U:"feBlend",N:{"in":"SourceGraphic",in2:"effect1_dropShadow_3104_799356",mode:"normal",result:"shape"}}]}]}]}]}]},{U:"div",W:"ytp-fullscreen-grid-main-content",L:[{U:"div",W:"ytp-fullscreen-grid-header",L:[{U:"button",W:"ytp-fullscreen-grid-header-button",N:{"aria-label":"{{ariaLabel}}"}},{U:"button",Rq:["ytp-grid-menu-close","ytp-button"],N:{"aria-label":"Close"},L:[g.uX()]}]},{U:"div",W:"ytp-fullscreen-grid-stills-container"}]}]}); this.player=e;this.stills=[];this.videoData=null;this.currentState=0;this.T=this.element.querySelector(".ytp-fullscreen-grid-main-content");this.j=this.element.querySelector(".ytp-fullscreen-grid-main-content .ytp-fullscreen-grid-header");this.Z=this.element.querySelector(".ytp-grid-menu-close");this.X=this.element.querySelector(".ytp-fullscreen-grid-header-button");this.D=this.element.querySelector(".ytp-fullscreen-grid-main-content .ytp-fullscreen-grid-stills-container");this.G=new g.zn(this);g.l(this, this.G);this.J=L;if(this.j&&this.T&&this.D&&this.X&&this.Z){if(e=this.element.querySelector(".ytp-fullscreen-grid-hover-overlay"))this.C(e,"click",this.K),y4(this.player,e,this);this.X&&this.C(this.X,"click",this.K);this.Z&&this.C(this.Z,"click",this.K);if(e=this.player.getVideoData(1))this.videoData=e;this.G.C(this.player,"videodatachange",this.onVideoDataChange)}}; AK=function(e){Rv.call(this,e);var L=this;this.X=this.K=0;this.j=null;this.G=0;this.isEnded=!1;this.T=null;var c=new g.zn(e);g.l(this,c);this.pS=this.api.Y("web_player_imax_theater_mode");this.Z=this.api.Y("web_player_enable_fullscreen_grid_components");c.C(e,"fullscreentoggled",function(){vQ(L)}); c.C(e,"autohideupdate",function(I){I&&L.K===2&&fm(L,1)}); c.C(e,"videodatachange",function(){if(L.Z){var I=L.api.getVideoData(1);L.videoData!==I&&L.K===2&&fm(L,1);L.videoData=I}},this); c.C(e,"sizestylechange",function(){L.Z&&vQ(L)}); vS(this.api,"setFullscreenQuickActions",function(I){L.setFullscreenQuickActions(I)}); vS(this.api,"setPlayerOverlayVideoDetailsRenderer",function(I){L.setPlayerOverlayVideoDetailsRenderer(I)}); this.Z&&H_v(this,c,e)}; H_v=function(e,L,c){L.C(c,"keyboardserviceglobalkeydown",function(I,B){e.Z&&I.keyCode===86&&!I.repeat&&e.K!==0&&(B&&(B.zC=!0),lBc(e))}); L.C(e.api.getRootNode(),"wheel",function(I){if(!e.T){var B;if(e.Z&&(B=e.B)!=null&&B.element&&e.K!==0)if(Fq(e)||I.stopPropagation(),g.Y4(e.api.getRootNode(),"ytp-grid-scrolling"),e.G===0&&(e.G=window.innerHeight),e.K===1)e.G!==0&&(e.X+=I.deltaY/e.G,e.X=Math.min(Math.max(e.X,0),.85),ba(e),PUJ(e,Math.abs(e.X)>=.85));else if(e.K===2){B=I.deltaY<0;var x,S=((x=e.B)==null?void 0:x.element.scrollTop)===0;B&&S?e.G!==0&&(e.X+=I.deltaY/e.G,ba(e),PUJ(e,Math.abs(e.X)>=.85)):e.X!==0&&(e.X=0,ba(e))}}},{passive:!0}); L.C(c,"standardControlsInitialized",function(){if(!e.B){e.B=new sV(e.api,e.D.bind(e));g.l(e,e.B);var I=e.api.getRootNode().querySelector(".ytp-chrome-bottom");I&&I.parentNode&&I.parentNode.insertBefore(e.B.element,I.nextSibling)}}); L.C(c,"presentingplayerstatechange",function(){ia(e)}); L.C(c,"autonavvisibility",function(){ia(e)}); e.api.cq().subscribe("visibilitystatechange",function(){ia(e)}); QUM(e,e.K)}; PUJ=function(e,L){e.j&&clearTimeout(e.j);L?dG6(e):e.j=window.setTimeout(function(){dG6(e)},150)}; dG6=function(e){e.j&&(clearTimeout(e.j),e.j=null);e.G=0;e.Z&&e.K!==0&&(Math.abs(e.X)>=.15&&lBc(e,!0),e.X=0,ba(e),g.eZ(e.api.getRootNode(),"ytp-grid-scrolling"))}; lBc=function(e,L){e.Z&&(L!==void 0&&L||(e.T&&clearTimeout(e.T),e.T=window.setTimeout(function(){e.T=null},1E3)),e.K===1?fm(e,2):fm(e,1))}; Fq=function(e){return e.api.isFullscreen()||e.pS&&e.api.gP()}; vQ=function(e){var L=Fq(e);e.J&&g.cA(e.J,L);e.playerOverlayVideoDetailsRenderer&&g.cA(e.playerOverlayVideoDetailsRenderer,L);e.Z&&ia(e)}; ia=function(e){if(e.Z){var L;if(e.api.getPresentingPlayerType()===2||e.api.Va()||((L=g.Db(e.api))==null?0:L.ge())||e.api.isMinimized())fm(e,0);else{if(L=g.E(e.api.getPlayerStateObject(),2))fm(e,2);else if(e.isEnded&&!L){var c=Fq(e)?1:0;e.isEnded=L;fm(e,c)}else Fq(e)?e.K!==2&&fm(e,1):fm(e,0);e.isEnded=L}}}; fm=function(e,L){e.K=L;var c;(c=e.B)==null||c.Oq(L);e.X=0;ba(e);QUM(e,L)}; QUM=function(e,L){e=e.api.getRootNode();g.cY(e,"ytp-fullscreen-grid-peaking",L===1);g.cY(e,"ytp-fullscreen-grid-active",L===2)}; ba=function(e){e.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",""+e.X.toString())}; UGH=function(e){Rv.call(this,e);var L=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.zn(e);g.l(this,this.events);this.events.C(e,"heartbeatRequest",function(c){if(L.freePreviewUsageDetails.length||L.freePreviewWatchedDuration!==null)c.heartbeatRequestParams||(c.heartbeatRequestParams={}),c.heartbeatRequestParams.unpluggedParams||(c.heartbeatRequestParams.unpluggedParams={}),L.freePreviewUsageDetails.length>0?c.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= L.freePreviewUsageDetails:c.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+L.freePreviewWatchedDuration}}); vS(e,"setFreePreviewWatchedDuration",function(c){L.freePreviewWatchedDuration=c}); vS(e,"setFreePreviewUsageDetails",function(c){L.freePreviewUsageDetails=c})}; Gb=function(e){g.p.call(this);this.features=[];var L=this.X,c=new pr(e),I=new u_(e),B=new bQ(e),x=new OV(e);var S=g.rw(e.S())?void 0:new Jk(e);var h=new FD(e),R=new Ru6(e),u=new gXv(e),t=new Z9(e);var O=g.rw(e.S())?new UGH(e):void 0;var q=e.Y("html5_enable_ssap")?new xGr(e):void 0;var T;var W=(T=e.S().getWebPlayerContextConfig())!=null&&T.cinematicSettingsAvailable?new gd(e):void 0;T=new y3(e);var A=e.Y("enable_courses_player_overlay_purchase")?new ref(e):void 0;var b=g.T3(e.S())?new BVv(e):void 0; var J=new V3(e);var w=e.S().G?new YTv(e):void 0;var C=g.Uh(e.S())?new Kgn(e):void 0;var y=e.Y("web_player_move_autonav_toggle")&&e.S().IU?new Hbf(e):void 0;var P=g.T3(e.S())?new BNc(e):void 0;var ev=e.Y("web_enable_speedmaster")&&g.T3(e.S())?new Y1(e):void 0;var X=e.S().Sn?void 0:new MYT(e);var oH=e.Y("report_pml_debug_signal")?new Zbx(e):void 0;var rc=new Mwx(e),Sv=new k1(e);var tJ=g.DF(e.S())?new g8v(e):void 0;var cM=navigator.mediaSession&&window.MediaMetadata&&e.S().w9?new fp(e):void 0;var JJ= e.Y("html5_enable_drc")&&!e.S().j?new wd(e):void 0;var yr=new O4(e);var cU=g.T3(e.S())?new pPr(e):void 0;var $N=e.Y("html5_enable_d6de4")?new iQ(e):void 0;var fZ=g.T3(e.S())&&e.Y("web_sleep_timer")?new Pc(e):void 0;var $n=g.Uh(e.S())?new enJ(e):void 0;var nZ=new jo(e),Mg=new U5M(e),QM=new cnn(e);var Is=e.Y("enable_sabr_snackbar_message")?new n8n(e):void 0;var D=e.Y("web_enable_timely_actions")?new fBv(e):void 0;var Zt=new kq(e);var CZ=g.T3(e.S())?new AK(e):void 0;var IH=e.Y("html5_enable_voice_boost")? new Rx(e):void 0;e=e.Y("web_player_loop_settings_menu")&&e.S().sE?new Ifv(e):void 0;L.call(this,c,I,B,x,S,h,R,u,t,O,q,W,T,A,b,J,w,C,y,P,ev,X,oH,rc,Sv,tJ,void 0,cM,JJ,yr,void 0,cU,$N,fZ,$n,void 0,nZ,Mg,QM,void 0,Is,D,Zt,CZ,IH,void 0,e,void 0)}; EXx=function(){this.K=this.X=NaN}; Xer=function(e,L){this.XM=e;this.timerName="";this.Z=!1;this.K=NaN;this.G=new EXx;this.X=L||null;this.Z=!1}; KWv=function(e,L,c){var I=g.eb(L.UW)&&!L.UW.j;if(L.UW.XK&&(XB(L.UW)||L.UW.Ve==="shortspage"||f8(L.UW)||I)&&!e.Z){e.Z=!0;e.j=L.clientPlaybackNonce;g.Zu("TIMING_ACTION")||yJ("TIMING_ACTION",e.XM.csiPageType);e.XM.csiServiceName&&yJ("CSI_SERVICE_NAME",e.XM.csiServiceName);if(e.X){I=e.X.ZV();for(var B=g.f(Object.keys(I)),x=B.next();!x.done;x=B.next())x=x.value,AD(x,I[x],e.timerName);I=g.Hu(dOr)(e.X.Gh);g.FT(I,e.timerName);I=e.X;I.X={};I.Gh={}}g.FT({playerInfo:{visibilityState:g.Hu(QMv)()},playerType:"LATENCY_PLAYER_HTML5"}, e.timerName);e.B!==L.clientPlaybackNonce||Number.isNaN(e.K)||(ie("_start",e.timerName)?c=g.Hu(WE)("_start",e.timerName)+e.K:g.F7(new g.yu("attempted to log gapless pbs before CSI timeline started",{cpn:L.clientPlaybackNonce})));c&&!ie("pbs",e.timerName)&&g0(e,c)}}; g0=function(e,L,c){AD("pbs",L!=null?L:(0,g.zI)(),c!=null?c:e.timerName)}; ke=function(e){IZc();cHr();e.timerName=""}; YWH=function(e){if(e.X){var L=e.X;L.X={};L.Gh={}}e.Z=!1;e.B=void 0;e.K=NaN}; nXH=function(e,L){g.Yg.call(this);this.UW=e;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.X=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.J={};this.K=0;if(e=L.session_data)this.sessionData=Pu(e,"&");this.index=Math.max(0,Number(L.index)||0);this.loop=!!L.loop;this.startSeconds=Number(L.startSeconds)||0;this.title=L.playlist_title||"";this.description=L.playlist_description||"";this.author= L.author||L.playlist_author||"";L.video_id&&(this.items[this.index]=L);if(e=L.api)typeof e==="string"&&e.length===16?L.list="PL"+e:L.playlist=e;if(e=L.list)switch(L.listType){case "user_uploads":this.listId=new jb("UU","PLAYER_"+e);break;default:var c=L.playlist_length;c&&(this.length=Number(c)||0);this.listId=Hn(e);if(e=L.video)this.items=e.slice(0),this.loaded=!0}else if(L.playlist){e=L.playlist.toString().split(",");this.index>0&&(this.items=[]);e=g.f(e);for(c=e.next();!c.done;c=e.next())(c=c.value)&& this.items.push({video_id:c});this.length=this.items.length;if(e=L.video)this.items=e.slice(0),this.loaded=!0}this.setShuffle(!!L.shuffle);if(e=L.suggestedQuality)this.quality=e;this.J=ym(L,"playlist_");this.Z=(L=L.thumbnail_ids)?L.split(","):[]}; ew6=function(e){return!!(e.playlist||e.list||e.api)}; L6T=function(e){var L=e.index+1;return L>=e.length?0:L}; cMR=function(e){var L=e.index-1;return L<0?e.length-1:L}; g.DP=function(e,L,c,I){L=L!==void 0?L:e.index;L=e.items&&L in e.items?e.items[e.order[L]]:null;var B=null;L&&(c&&(L.autoplay="1"),I&&(L.autonav="1"),B=new g.RI(e.UW,L),g.l(e,B),B.pX=!0,B.startSeconds=e.startSeconds||B.clipStart||0,e.listId&&(B.playlistId=e.listId.toString()));return B}; I3c=function(e,L){e.index=g.j5(L,0,e.length-1);e.startSeconds=0}; BYM=function(e,L){if(L.video&&L.video.length){e.title=L.title||"";e.description=L.description;e.views=L.views;e.likes=L.likes;e.dislikes=L.dislikes;e.author=L.author||"";var c=L.loop;c&&(e.loop=c);c=g.DP(e);e.items=[];for(var I=g.f(L.video),B=I.next();!B.done;B=I.next())if(B=B.value)B.video_id=B.encrypted_id,e.items.push(B);e.length=e.items.length;(L=L.index)?e.index=L:e.findIndex(c);e.setShuffle(!1);e.loaded=!0;e.K++;e.X&&e.X()}}; Sk6=function(e,L){var c,I,B,x,S,h,R;return g.Z(function(u){if(u.K==1){c=g.ji();var t=e.S(),O={context:g.zC(e),playbackContext:{contentPlaybackContext:{ancestorOrigins:t.ancestorOrigins}}},q=t.getWebPlayerContextConfig();if(q==null?0:q.encryptedHostFlags)O.playbackContext.contentPlaybackContext.encryptedHostFlags=q.encryptedHostFlags;if(q==null?0:q.hideInfo)O.playerParams={showinfo:!1};t=t.embedConfig;q=L.docid||L.video_id||L.videoId||L.id;if(!q){q=L.raw_embedded_player_response;if(!q){var T=L.embedded_player_response; T&&(q=JSON.parse(T))}if(q){var W,A,b,J,w,C;q=((C=g.Q((W=q)==null?void 0:(A=W.embedPreview)==null?void 0:(b=A.thumbnailPreviewRenderer)==null?void 0:(J=b.playButton)==null?void 0:(w=J.buttonRenderer)==null?void 0:w.navigationEndpoint,g.MD))==null?void 0:C.videoId)||null}else q=null}W=(W=q)?W:void 0;A=e.playlistId?e.playlistId:L.list;b=L.listType;if(A){var y;b==="user_uploads"?y={username:A}:y={playlistId:A};xPn(t,W,L,y);O.playlistRequest=y}else L.playlist?(y={templistVideoIds:L.playlist.toString().split(",")}, xPn(t,W,L,y),O.playlistRequest=y):W&&(y={videoId:W},t&&(y.serializedThirdPartyEmbedConfig=t),O.singleVideoRequest=y);I=O;B=g.d9(oFM);g.bn(u,2);return g.a(u,g.w_(c,I,B),4)}if(u.K!=2)return x=u.X,S=e.S(),L.raw_embedded_player_response=x,S.k9=Lv(L,g.Uh(S)),S.Z=S.k9==="EMBEDDED_PLAYER_MODE_PFL",x&&(h=x,h.trackingParams&&P$(h.trackingParams)),u.return(new g.RI(S,L));R=g.wc(u);R instanceof Error||(R=Error("b259802748"));g.A9(R);return u.return(e)})}; xPn=function(e,L,c,I){c.index&&(I.playlistIndex=String(Number(c.index)+1));I.videoId=L?L:"";e&&(I.serializedThirdPartyEmbedConfig=e)}; g.JK=function(e,L){w0.get(e);w0.set(e,L)}; g.Vk=function(e){g.Yg.call(this);this.loaded=!1;this.player=e}; rMR=function(){this.K=[];this.X=[]}; g.ua=function(e,L){return L?e.X.concat(e.K):e.X}; g.Cm=function(e,L){switch(L.kind){case "asr":hw$(L,e.K);break;default:hw$(L,e.X)}}; hw$=function(e,L){g.vU(L,function(c){return e.equals(c)})||L.push(e)}; g.ax=function(e){g.p.call(this);this.CS=e;this.K=new rMR;this.G=null;this.B=[];this.J=[]}; g.Nr=function(e,L,c){g.ax.call(this,e);this.videoData=L;this.audioTrack=c;this.X=null;this.Z=!1;this.B=L.Ky;this.J=L.kC;this.Z=g.cS(L)}; g.RwM=function(e,L){var c;return e.S().Y("safari_live_drm_captions_fix")&&((c=e.getVideoData())==null?0:c.cg())?!1:g.rw(e.S())&&!L.isManifestless}; g.mK=function(e,L){return pn(e.info.mimeType)?L?e.info.itag===L:!0:!1}; g.uHT=function(e,L){if(e.X!=null&&g.RwM(L,e.X)&&e.X.X.rawcc!=null)return!0;if(!e.Wy())return!1;L=!!e.X&&e.X.isManifestless&&Object.values(e.X.X).some(function(c){return g.mK(c,"386")}); e=!!e.X&&!e.X.isManifestless&&g.uIx(e.X);return L||e}; g.yk=function(e,L,c,I,B,x){g.ax.call(this,e);this.videoId=c;this.P8=B;this.eventId=x;this.j={};this.X=null;e=I||g.Ee(L).hl||"";e=e.split("_").join("-");this.Z=X$(L,{hl:e})}; taH=function(e,L){g.p.call(this);var c=this;this.V=e;this.G=L;this.Gh={};this.X={};this.K=null;this.Z=new Set;this.B=new g.zn(this);this.kx={z00:function(){return c.G}}; this.j=this.V.Y("web_player_defer_modules");this.Xt=new Map;g.l(this,this.B);this.B.C(e,"videodatachange",this.onVideoDataChange)}; OyM=function(e,L){e.K=L}; g.ZP=function(e){return e.Xt.get("captions")}; vFT=function(e,L){switch(L){case "ad":return qkc(e);case "annotations_module":return e.V.isEmbedsShortsMode()?e=!1:(L=e.V,e=L.S(),L=L.getVideoData(),e=e.Z||L.oX||e.controlsType==="3"?!1:e.Y9.isEmpty()&&e.playerStyle!=="annotation-editor"&&e.playerStyle!=="live-dashboard"?!!L.t7||!!g.Y$(L)||!!g.nf(L):!0),e;case "asmjs":return TYJ(e);case "creatorendscreen":return W66(e);case "embed":return g.Uh(e.V.S());case "endscreen":return g.Ma$(e);case "heartbeat":return e.Mb();case "kids":return Sb(e.V.S()); case "remote":return e.V.S().Hv;case "miniplayer":return e.V.S().showMiniplayerUiWhenMinimized;case "offline":return e.V.S().Kp;case "captions":return zwT(e);case "unplugged":return g.L8(e.V.S());case "ux":return e.V.S().m$;case "webgl":return sk$(e);case "ypc":return e.bD();case "ypc_clickwrap":return e=e.V.getVideoData(),e.sK&&!e.pY;case "yto":return!!e.V.getVideoData().h7.includes("yto");default:return g.A9(Error("Module descriptor "+L+" does not match")),!1}}; pm=function(e,L,c,I,B){var x;c=c===void 0?!1:c;I=I===void 0?!1:I;var S=e.Xt.get(L);if(!S||I)if(B||(B=function(){pm(e,L,c,I)}),x||(x=function(){e.V.pu(L)}),S=S||f3$(e,L,vFT(e,L),B,x))e.Xt.set(L,S),S.create(),e.V.publish("modulecreated",L),c&&e.V.oy("onApiChange")}; F6x=function(e){var L=L===void 0?!1:L;var c,I,B,x,S;return g.Z(function(h){if(h.K==1)return(c=e.Xt.get("asmjs"))&&!L?h.return(c):(I=w0.get("asmjs"))!=null?(B=I,h.Iq(2)):g.a(h,new Promise(function(R,u){AMn(e,"asmjs",function(){var t=w0.get("asmjs");t?R(t):u("cannot load module asmjs")},u)}),3); h.K!=2&&(B=h.X);x=B;if(!x)return h.return(Promise.reject("cannot load module asmjs"));S=new x(e.V);e.Xt.set("asmjs",S);S.create();return h.return(S)})}; GgT=function(e){byM(e)&&e.wU();iyM(e)&&(pm(e,"captions",!0),pm(e,"endscreen"),e.e_(),pm(e,"creatorendscreen",!0))}; iyM=function(e){var L=e.V.getVideoData(),c=e.j&&!L.isInlinePlaybackNoAd;e.V.Y("html5_defer_modules_on_ads_only")&&!L.isAd()&&(c=!1);return c}; byM=function(e){e=e.V.getVideoData();var L;if(L=e.Y("web_player_defer_ad")){if(g.Fh(e.h7,"ad")||aLf(e)||e.enableServerStitchedDai)e=!1;else{L=e.playerResponse;e=e.startSeconds;var c=L==null?void 0:L.adPlacements;if(L=c){L=Number.MAX_VALUE;c=g.f(c);for(var I=c.next();!I.done;I=c.next())if(I=I.value.adPlacementRenderer){var B=void 0,x=(B=I.config)==null?void 0:B.adPlacementConfig;B=void 0;if(((B=x)==null?void 0:B.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var S=B=void 0;x=Number((B=x)==null?void 0:(S= B.adTimeOffset)==null?void 0:S.offsetStartMilliseconds)||0;S=B=void 0;I=Number(((B=I.renderer)==null?void 0:(S=B.adBreakServiceRenderer)==null?void 0:S.prefetchMilliseconds)||0);I=x-I;I=11;e=e.api.S().T&&UV;return!(!L&&!e)}; o3=function(e,L){return!e.api.isInline()&&!UPM(e,Mx(L))&&g.WZ(L)}; dPn=function(e){e.jk.lZ();if(e.Ii&&e.tU)e.tU=!1;else if(!e.api.S().t7&&!e.jr()){var L=e.api.getPlayerStateObject();g.E(L,2)&&g.$b(e.api)||e.Ld(L);!e.api.S().DY||L.isCued()||g.E(L,1024)?e.ML():e.G9.isActive()?(e.Im(),e.G9.stop()):e.G9.start()}}; Xbx=function(e,L){var c;if((c=e.api.getVideoData())==null?0:c.mutedAutoplay){var I,B;if((I=L.target)==null?0:(B=I.className)==null?0:B.includes("ytp-info-panel"))return!1}return g.WZ(L)&&e.api.isMutedByMutedAutoplay()?(e.api.unMute(),e.api.getPresentingPlayerType()===2&&e.api.playVideo(),L=e.api.getPlayerStateObject(),!g.E(L,4)||g.E(L,8)||g.E(L,2)||e.ML(),!0):!1}; K6x=function(e,L,c){e.api.isFullscreen()?c<1-L&&e.api.toggleFullscreen():c>1+L&&e.api.toggleFullscreen()}; Qkc=function(e){var L=NL()&&V2()>=67&&!e.api.S().T;e=e.api.S().disableOrganicUi;return!g.aC("tizen")&&!Pr&&!L&&!e}; g.Sw=function(e){g.U.call(this,{U:"div",L:[{U:"div",W:"ytp-bezel-text-wrapper",L:[{U:"div",W:"ytp-bezel-text",aq:"{{title}}"}]},{U:"div",W:"ytp-bezel",N:{role:"status","aria-label":"{{label}}"},L:[{U:"div",W:"ytp-bezel-icon",aq:"{{icon}}"}]}]});this.V=e;this.K=new g.j9(this.show,10,this);e=this.V.Y("delhi_modern_web_player")?1E3:500;this.X=new g.j9(this.hide,e,this);g.l(this,this.K);g.l(this,this.X);this.hide()}; hn=function(e,L,c){if(L<=0){c=Am();L="muted";var I=0}else c=c?{U:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{U:"path",zy:!0,N:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{U:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{U:"path",zy:!0,N:{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"}}]},I=Math.floor(L),L=I+"volume";rN(e,c,L,I+"%")}; Ykf=function(e,L){L=L?{U:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{U:"path",zy:!0,W:"ytp-svg-fill",N:{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"}}]}:zvn();var c=e.V.getPlaybackRate(),I=g.nC("Speed is $RATE",{RATE:String(c)});rN(e,L,I,c+"x")}; nFf=function(e,L){L=L?"Subtitles/closed captions on":"Subtitles/closed captions off";rN(e,PsT(e.V),L)}; rN=function(e,L,c,I){I=I===void 0?"":I;e.updateValue("label",c===void 0?"":c);e.updateValue("icon",L);g.PT(e.X);e.K.start();e.updateValue("title",I);g.cY(e.element,"ytp-bezel-text-hide",!I)}; emf=function(e,L){g.U.call(this,{U:"button",Rq:["ytp-button","ytp-cards-button"],N:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.Uh(e.S()))},L:[{U:"span",W:"ytp-cards-button-icon-default",L:[{U:"div",W:"ytp-cards-button-icon",L:[e.S().Y("player_new_info_card_format")?f8H():{U:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{U:"path",zy:!0,W:"ytp-svg-fill",N:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]}, {U:"div",W:"ytp-cards-button-title",aq:"Info"}]},{U:"span",W:"ytp-cards-button-icon-shopping",L:[{U:"div",W:"ytp-cards-button-icon",L:[{U:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{U:"path",W:"ytp-svg-shadow",N:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{U:"path",W:"ytp-svg-fill",N:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z", "fill-opacity":"1"}},{U:"path",W:"ytp-svg-shadow-fill",N:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{U:"div", W:"ytp-cards-button-title",aq:"Shopping"}]}]});this.V=e;this.K=L;this.X=null;this.fade=new g.dJ(this,250,!0,100);g.l(this,this.fade);g.cY(this.K,"ytp-show-cards-title",g.Uh(e.S()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.HP(!0)}; LYn=function(e,L){g.U.call(this,{U:"div",W:"ytp-cards-teaser",L:[{U:"div",W:"ytp-cards-teaser-box"},{U:"div",W:"ytp-cards-teaser-text",L:e.S().Y("player_new_info_card_format")?[{U:"button",W:"ytp-cards-teaser-info-icon",N:{"aria-label":"Show cards","aria-haspopup":"true"},L:[f8H()]},{U:"img",W:"ytp-cards-teaser-channel-avatar",N:{alt:"","aria-hidden":"true"}},{U:"span",W:"ytp-cards-teaser-label",aq:"{{text}}"},{U:"button",W:"ytp-cards-teaser-close-button",N:{"aria-label":"Close"},L:[g.uX()]}]:[{U:"span", W:"ytp-cards-teaser-label",aq:"{{text}}"}]}]});var c=this;this.V=e;this.UV=L;this.fade=new g.dJ(this,250,!1,250);this.X=null;this.T=new g.j9(this.Uxe,300,this);this.j=new g.j9(this.qY$,2E3,this);this.G=[];this.K=null;this.J=new g.j9(function(){c.element.style.margin="0"},250); this.onClickCommand=this.Z=null;g.l(this,this.fade);g.l(this,this.T);g.l(this,this.j);g.l(this,this.J);e.S().Y("player_new_info_card_format")?(g.Y4(e.getRootNode(),"ytp-cards-teaser-dismissible"),this.C(this.q0("ytp-cards-teaser-close-button"),"click",this.iF),this.C(this.q0("ytp-cards-teaser-info-icon"),"click",this.Lz),this.C(this.q0("ytp-cards-teaser-label"),"click",this.Lz)):this.listen("click",this.Lz);this.C(L.element,"mouseover",this.q_);this.C(L.element,"mouseout",this.Gp);this.C(e,"cardsteasershow", this.L1m);this.C(e,"cardsteaserhide",this.y5);this.C(e,"cardstatechange",this.U6);this.C(e,"presentingplayerstatechange",this.U6);this.C(e,"appresize",this.kd);this.C(e,"onShowControls",this.kd);this.C(e,"onHideControls",this.bN);this.listen("mouseenter",this.Et)}; c3x=function(e){g.U.call(this,{U:"button",Rq:[R3.BUTTON,R3.TITLE_NOTIFICATIONS],N:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},L:[{U:"div",W:R3.TITLE_NOTIFICATIONS_ON,N:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},L:[g.T1()]},{U:"div",W:R3.TITLE_NOTIFICATIONS_OFF,N:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},L:[{U:"svg",N:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},L:[{U:"path",N:{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=e;this.X=!1;e.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Get notified about every new video")}; IYJ=function(e,L){e.X=L;e.element.classList.toggle(R3.NOTIFICATIONS_ENABLED,e.X);var c=e.api.getVideoData();c?(L=L?c.Vw:c.Uz)?(e=e.api.gg())?De(e,L):g.A9(Error("No innertube service available when updating notification preferences.")):g.A9(Error("No update preferences command available.")):g.A9(Error("No video data when updating notification preferences."))}; xIM=function(e,L,c){var I=I===void 0?800:I;var B=B===void 0?600:B;var x=document.location.protocol;e=P3R(x+"//"+e+"/signin?context=popup","feature",L,"next",x+"//"+location.hostname+"/post_login");BlR(e,c,I,B)}; BlR=function(e,L,c,I){c=c===void 0?800:c;I=I===void 0?600:I;if(e=g.Wa(window,e,"loginPopup","width="+c+",height="+I+",resizable=yes,scrollbars=yes"))MMc(function(){L()}),e.moveTo((screen.width-c)/2,(screen.height-I)/2)}; g.uo=function(e,L,c,I,B,x,S,h,R,u,t,O){e=e.charAt(0)+e.substring(1).toLowerCase();c=c.charAt(0)+c.substring(1).toLowerCase();if(L==="0"||L==="-1")L=null;if(I==="0"||I==="-1")I=null;var q=t.S(),T=q.userDisplayName&&g.eb(q);g.U.call(this,{U:"div",Rq:["ytp-button","ytp-sb"],L:[{U:"div",W:"ytp-sb-subscribe",N:T?{title:g.nC("Subscribe as $USER_NAME",{USER_NAME:q.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":Ao(q),"data-tooltip-opaque":String(g.Uh(q)),tabindex:"0",role:"button"}: {"aria-label":"Subscribe to channel"},L:[{U:"div",W:"ytp-sb-text",L:[{U:"div",W:"ytp-sb-icon"},e]},L?{U:"div",W:"ytp-sb-count",aq:L}:""]},{U:"div",W:"ytp-sb-unsubscribe",N:T?{title:g.nC("Subscribed as $USER_NAME",{USER_NAME:q.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":Ao(q),"data-tooltip-opaque":String(g.Uh(q)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},L:[{U:"div",W:"ytp-sb-text",L:[{U:"div",W:"ytp-sb-icon"},c]},I?{U:"div",W:"ytp-sb-count", aq:I}:""]}],N:{"aria-live":"polite"}});var W=this;this.channelId=S;this.V=t;this.Z=O;var A=this.q0("ytp-sb-subscribe"),b=this.q0("ytp-sb-unsubscribe");x&&g.Y4(this.element,"ytp-sb-classic");if(B){h?this.X():this.K();var J=function(){if(q.Gm){var C=W.channelId;if(R||u){var y={c:C};var P;g.ET.isInitialized()&&(P=$jM(y));y=P||"";if(P=t.getVideoData())if(P=P.subscribeCommand){var ev=t.gg();ev?(De(ev,P,{botguardResponse:y,feature:R}),t.fS("SUBSCRIBE",C)):g.A9(Error("No innertube service available when updating subscriptions."))}else g.A9(Error("No subscribe command in videoData.")); else g.A9(Error("No video data available when updating subscription."))}b.focus();b.removeAttribute("aria-hidden");A.setAttribute("aria-hidden","true")}else xIM(g.RD(W.V.S()),"sb_button",W.G)},w=function(){var C=W.channelId; if(R||u){var y=t.getVideoData();De(t.gg(),y.unsubscribeCommand,{feature:R});t.fS("UNSUBSCRIBE",C)}A.focus();A.removeAttribute("aria-hidden");b.setAttribute("aria-hidden","true")}; this.C(A,"click",J);this.C(b,"click",w);this.C(A,"keypress",function(C){C.keyCode===13&&J(C)}); this.C(b,"keypress",function(C){C.keyCode===13&&w(C)}); this.C(t,"SUBSCRIBE",this.X);this.C(t,"UNSUBSCRIBE",this.K);this.Z&&T&&(gBc(t),y4(t,A,this),y4(t,b,this))}else g.Y4(A,"ytp-sb-disabled"),g.Y4(b,"ytp-sb-disabled")}; r3M=function(e){g.U.call(this,{U:"div",W:"ytp-title-channel",L:[{U:"div",W:"ytp-title-beacon"},{U:"a",W:"ytp-title-channel-logo",N:{href:"{{channelLink}}",target:e.S().D,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{U:"div",W:"ytp-title-expanded-overlay",N:{"aria-hidden":"{{flyoutUnfocusable}}"},L:[{U:"div",W:"ytp-title-expanded-heading",L:[{U:"div",W:"ytp-title-expanded-title",L:[{U:"a",aq:"{{expandedTitle}}",N:{href:"{{channelTitleLink}}",target:e.S().D,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{U:"div",W:"ytp-title-expanded-subtitle",aq:"{{expandedSubtitle}}",N:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var L=this;this.api=e;this.channel=this.q0("ytp-title-channel");this.K=this.q0("ytp-title-channel-logo");this.channelName=this.q0("ytp-title-expanded-title");this.j=this.q0("ytp-title-expanded-overlay");this.Z=this.X=this.subscribeButton=null;this.G=!1;e.createClientVe(this.K,this,36925);e.createClientVe(this.channelName,this, 37220);g.Uh(this.api.S())&&ohc(this);this.C(e,"videodatachange",this.OW);this.C(e,"videoplayerreset",this.OW);this.C(this.channelName,"click",function(c){L.api.logClick(L.channelName);g.Wa(window,SlT(L));c.preventDefault()}); this.C(this.K,"click",this.MlM);this.OW()}; hmf=function(e){if(!e.api.S().gT){var L=e.api.getVideoData(),c=new g.uo("Subscribe",null,"Subscribed",null,!0,!1,L.hR,L.subscribed,"channel_avatar",null,e.api,!0);e.api.createServerVe(c.element,e);var I;e.api.setTrackingParams(c.element,((I=L.subscribeButtonRenderer)==null?void 0:I.trackingParams)||null);e.C(c.element,"click",function(){e.api.logClick(c.element)}); e.subscribeButton=c;g.l(e,e.subscribeButton);e.subscribeButton.jl(e.j);e.subscribeButton.hide();var B=new c3x(e.api);e.X=B;g.l(e,B);B.jl(e.j);B.hide();e.C(e.api,"SUBSCRIBE",function(){L.KB&&(B.show(),e.api.logVisibility(B.element,!0))}); e.C(e.api,"UNSUBSCRIBE",function(){L.KB&&(B.hide(),e.api.logVisibility(B.element,!1),IYJ(B,!1))})}}; ohc=function(e){var L=e.api.S();hmf(e);e.updateValue("flyoutUnfocusable","true");e.updateValue("channelTitleFocusable","-1");e.updateValue("shouldHideExpandedTitleForA11y","true");e.updateValue("shouldHideExpandedSubtitleForA11y","true");L.K||L.Pe||(e.C(e.channel,"mouseenter",e.rU),e.C(e.channel,"mouseleave",e.jf),e.C(e.channel,"focusin",e.rU),e.C(e.channel,"focusout",function(c){e.channel.contains(c.relatedTarget)||e.jf()})); e.Z=new g.j9(function(){e.isExpanded()&&(e.api.logVisibility(e.channelName,!1),e.subscribeButton&&(e.subscribeButton.hide(),e.api.logVisibility(e.subscribeButton.element,!1)),e.X&&(e.X.hide(),e.api.logVisibility(e.X.element,!1)),e.channel.classList.remove("ytp-title-expanded"),e.channel.classList.add("ytp-title-show-collapsed"))},500); g.l(e,e.Z);e.C(e.channel,Rmr,function(){uA6(e)}); e.C(e.api,"onHideControls",e.Lk);e.C(e.api,"appresize",e.Lk);e.C(e.api,"fullscreentoggled",e.Lk)}; uA6=function(e){e.channel.classList.remove("ytp-title-show-collapsed");e.channel.classList.remove("ytp-title-show-expanded")}; tQJ=function(e){var L=e.api.getPlayerSize();return g.Uh(e.api.S())&&L.width>=524}; SlT=function(e){var L=e.api.S(),c=e.api.getVideoData(),I=g.FM(L)+c.DY;g.TC(c)&&(I="https://music.youtube.com"+c.DY);if(!g.Uh(L))return I;L={};g.Fl(e.api,"addEmbedsConversionTrackingParams",[L]);return g.WO(I,L)}; tn=function(e){var L=g.SS({"aria-haspopup":"true"});g.ov.call(this,L,e);this.listen("keydown",this.X)}; OG=function(e,L){e.element.setAttribute("aria-haspopup",String(L))}; OYr=function(e,L){g.U.call(this,{U:"div",W:"ytp-user-info-panel",N:{"aria-label":"User info"},L:e.S().Gm&&!e.Y("embeds_web_always_enable_signed_out_state")?[{U:"div",W:"ytp-user-info-panel-icon",aq:"{{icon}}"},{U:"div",W:"ytp-user-info-panel-content",L:[{U:"div",W:"ytp-user-info-panel-info",N:{tabIndex:"{{userInfoFocusable}}",role:"text"},aq:"{{watchingAsUsername}}"},{U:"div",W:"ytp-user-info-panel-info",N:{tabIndex:"{{userInfoFocusable2}}",role:"text"},aq:"{{watchingAsEmail}}"}]}]:[{U:"div",W:"ytp-user-info-panel-icon", aq:"{{icon}}"},{U:"div",W:"ytp-user-info-panel-content",L:[{U:"div",L:[{U:"text",N:{tabIndex:"{{userInfoFocusable}}"},aq:"Signed out"}]},{U:"div",W:"ytp-user-info-panel-login",L:[{U:"a",N:{tabIndex:"{{userInfoFocusable2}}",role:"button"},aq:e.S().gT?"":"Sign in on YouTube"}]}]}]});this.CS=e;this.X=L;e.S().Gm||e.S().gT||this.C(this.q0("ytp-user-info-panel-login"),"click",this.Dc);this.closeButton=new g.U({U:"button",Rq:["ytp-collapse","ytp-button"],N:{title:"Close"},L:[g.fN()]});this.closeButton.jl(this.element); g.l(this,this.closeButton);this.C(window,"blur",this.hide);this.C(document,"click",this.xS);this.OW()}; WYx=function(e,L,c){g.Cp.call(this,e);this.G_=L;this.wq=c;this.getVideoUrl=new tn(6);this.dQ=new tn(5);this.gQ=new tn(4);this.b5=new tn(3);this.uD=new g.ov(g.SS({href:"{{href}}",target:this.V.S().D},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.ov(g.SS(),1,"Stats for nerds");this.U7=new g.I9({U:"div",Rq:["ytp-copytext","ytp-no-contextmenu"],N:{draggable:"false",tabindex:"1"},aq:"{{text}}"});this.dC=new VP(this.V,this.U7);this.cz=this.F$=null;g.Uh(this.V.S())&&(this.closeButton= new g.U({U:"button",Rq:["ytp-collapse","ytp-button"],N:{title:"Close"},L:[g.fN()]}),g.l(this,this.closeButton),this.closeButton.jl(this.element),this.closeButton.listen("click",this.Eu,this));g.Uh(this.V.S())&&(this.D2=new g.ov(g.SS(),8,"Account"),g.l(this,this.D2),this.Yx(this.D2,!0),this.D2.listen("click",this.lp9,this),e.createClientVe(this.D2.element,this.D2,137682));this.V.S().sE&&(this.vc=new Mo("Loop",7),g.l(this,this.vc),this.Yx(this.vc,!0),this.vc.listen("click",this.sTm,this),e.createClientVe(this.vc.element, this.vc,28661));g.l(this,this.getVideoUrl);this.Yx(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.x0q,this);e.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.l(this,this.dQ);this.Yx(this.dQ,!0);this.dQ.listen("click",this.r7M,this);e.createClientVe(this.dQ.element,this.dQ,28660);g.l(this,this.gQ);this.Yx(this.gQ,!0);this.gQ.listen("click",this.E9m,this);e.createClientVe(this.gQ.element,this.gQ,28658);g.l(this,this.b5);this.Yx(this.b5,!0);this.b5.listen("click",this.iS7, this);g.l(this,this.uD);this.Yx(this.uD,!0);this.uD.listen("click",this.Yqe,this);g.l(this,this.showVideoInfo);this.Yx(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.nx0,this);g.l(this,this.U7);this.U7.listen("click",this.F$d,this);g.l(this,this.dC);L=document.queryCommandSupported&&document.queryCommandSupported("copy");UM$("Chromium")>=43&&(L=!0);UM$("Firefox")<=40&&(L=!1);L&&(this.F$=new g.U({U:"textarea",W:"ytp-html5-clipboard",N:{readonly:"",tabindex:"-1"}}),g.l(this,this.F$), this.F$.jl(this.element));var I;(I=this.D2)==null||I.setIcon(Gx6());var B;(B=this.vc)==null||B.setIcon(VLT());this.b5.setIcon({U:"svg",N:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{U:"path",N:{"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.uD.setIcon(sGJ());this.showVideoInfo.setIcon(v5M());this.C(e,"onLoopChange",this.onLoopChange);this.C(e,"videodatachange",this.onVideoDataChange);qlx(this);TlJ(this,this.V.getVideoData())}; q$=function(e,L){var c=!1;if(e.F$){var I=e.F$.element;I.value=L;I.select();try{c=document.execCommand("copy")}catch(B){}}c?e.G_.y5():(e.U7.Hw(L,"text"),g.m4(e.G_,e.dC),F4(e.U7.element),e.F$&&(e.F$=null,qlx(e)));return c}; TlJ=function(e,L){var c=e.V.S(),I=e.V.getPresentingPlayerType()===2,B=!I||L.isListed;B=!c.h7&&!!L.videoId&&B;c.playerStyle!=="play"?c="https://support.google.com/youtube/?p=report_playback":(c={contact_type:"playbackissue",html5:1,ei:L.eventId,v:L.videoId,p:"movies_playback"},L.K&&(c.fmt=L.K.itag),L.clientPlaybackNonce&&(c.cpn=L.clientPlaybackNonce),L.partnerId&&(c.partnerid=L.partnerId),c=g.WO("//support.google.com/googleplay/",c));e.gQ.i5(B&&L.allowEmbed);e.getVideoUrl.i5(B);e.dQ.i5(B&&!L.isLivePlayback); e.uD.Hw(c,"href");var x;(x=e.vc)==null||x.i5(!L.isLivePlayback&&!I);var S;(S=e.D2)==null||S.i5(!I)}; qlx=function(e){var L=!!e.F$;g.xq(e.b5,L?"Copy debug info":"Get debug info");OG(e.b5,!L);g.xq(e.gQ,L?"Copy embed code":"Get embed code");OG(e.gQ,!L);g.xq(e.getVideoUrl,L?"Copy video URL":"Get video URL");OG(e.getVideoUrl,!L);g.xq(e.dQ,L?"Copy video URL at current time":"Get video URL at current time");OG(e.dQ,!L);e.gQ.setIcon(L?WPH():null);e.getVideoUrl.setIcon(L?On():null);e.dQ.setIcon(L?On():null)}; MQ$=function(e){return g.Uh(e.V.S())?e.D2:e.vc}; sBn=function(e,L){g.NE.call(this,e);this.wq=L;this.G=new g.zn(this);this.pS=new g.j9(this.Xd9,1E3,this);this.h7=this.Z=null;g.l(this,this.G);g.l(this,this.pS);L=this.V.S();e.createClientVe(this.element,this,28656);g.Y4(this.element,"ytp-contextmenu");this.V.S().experiments.N0("delhi_modern_web_player")&&g.T3(L)&&g.Y4(this.element,"ytp-delhi-modern-contextmenu");zmc(this);this.hide()}; zmc=function(e){g.fv(e.G);var L=e.V.S();L.playerStyle==="gvn"||L.K||L.Pe||(L=e.V.LS(),e.G.C(L,"contextmenu",e.OSW),e.G.C(L,"touchstart",e.onTouchStart,null,!0),e.G.C(L,"touchmove",e.FQ,null,!0),e.G.C(L,"touchend",e.FQ,null,!0))}; vhc=function(e){e.V.isFullscreen()?g.Uq(e.V,e.element,10):e.jl(c8(e).body)}; Ti=function(e,L,c){c=c===void 0?240:c;g.U.call(this,{U:"button",Rq:["ytp-button","ytp-copylink-button"],N:{title:"{{title-attr}}","data-tooltip-opaque":String(g.Uh(e.S()))},L:[{U:"div",W:"ytp-copylink-icon",aq:"{{icon}}"},{U:"div",W:"ytp-copylink-title",aq:"Copy link",N:{"aria-hidden":"true"}}]});this.api=e;this.X=L;this.K=c;this.visible=!1;this.tooltip=this.X.Aq();L=e.S();this.tooltip.element.setAttribute("aria-live","polite");g.cY(this.element,"ytp-show-copylink-title",g.Uh(L));e.createClientVe(this.element, this,86570);this.listen("click",this.onClick);this.C(e,"videodatachange",this.OW);this.C(e,"videoplayerreset",this.OW);this.C(e,"appresize",this.OW);this.OW();this.addOnDisposeCallback(g.mC(this.tooltip,this.element))}; fYx=function(e){var L=e.api.S(),c=e.api.getVideoData(),I=e.api.LS().getPlayerSize().width;L=L.Z;return!!c.videoId&&I>=e.K&&c.w9&&!c.xx&&!e.api.isEmbedsShortsMode()&&!L}; A3r=function(e){e.updateValue("icon",rJ());if(e.api.S().K)e.tooltip.iD(e.element,"Link copied to clipboard");else{e.updateValue("title-attr","Link copied to clipboard");e.tooltip.A9();e.tooltip.iD(e.element);var L=e.listen("mouseleave",function(){e.j6(L);e.OW();e.tooltip.B_()})}}; FYH=function(e,L){return g.Z(function(c){if(c.K==1)return g.bn(c,2),g.a(c,navigator.clipboard.writeText(L),4);if(c.K!=2)return c.return(!0);g.wc(c);var I=c.return,B=!1,x=g.ql("TEXTAREA");x.value=L;x.setAttribute("readonly","");var S=e.api.getRootNode();S.appendChild(x);if(ya){var h=window.getSelection();h.removeAllRanges();var R=document.createRange();R.selectNodeContents(x);h.addRange(R);x.setSelectionRange(0,L.length)}else x.select();try{B=document.execCommand("copy")}catch(u){}S.removeChild(x); return I.call(c,B)})}; bYc=function(e){g.U.call(this,{U:"div",W:"ytp-doubletap-ui-legacy",L:[{U:"div",W:"ytp-doubletap-fast-forward-ve"},{U:"div",W:"ytp-doubletap-rewind-ve"},{U:"div",W:"ytp-doubletap-static-circle",L:[{U:"div",W:"ytp-doubletap-ripple"}]},{U:"div",W:"ytp-doubletap-overlay-a11y"},{U:"div",W:"ytp-doubletap-seek-info-container",L:[{U:"div",W:"ytp-doubletap-arrows-container",L:[{U:"span",W:"ytp-doubletap-base-arrow"},{U:"span",W:"ytp-doubletap-base-arrow"},{U:"span",W:"ytp-doubletap-base-arrow"}]},{U:"div", W:"ytp-doubletap-tooltip",L:[{U:"div",W:"ytp-seek-icon-text-container",L:[{U:"div",W:"ytp-seek-icon",aq:"{{seekIcon}}"},{U:"div",W:"ytp-chapter-seek-text-legacy",aq:"{{seekText}}"}]},{U:"div",W:"ytp-doubletap-tooltip-label",aq:"{{seekTime}}"}]}]}]});this.V=e;this.G=new g.j9(this.show,10,this);this.K=new g.j9(this.hide,700,this);this.T=this.Z=0;this.pS=this.j=!1;this.X=this.q0("ytp-doubletap-static-circle");g.l(this,this.G);g.l(this,this.K);this.hide();this.J=this.q0("ytp-doubletap-fast-forward-ve"); this.D=this.q0("ytp-doubletap-rewind-ve");this.V.createClientVe(this.J,this,28240);this.V.createClientVe(this.D,this,28239);this.V.logVisibility(this.J,!0);this.V.logVisibility(this.D,!0);this.j=e.Y("web_show_cumulative_seek_time");this.pS=e.Y("web_center_static_circles")}; iYM=function(e,L){L=g.nC("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:L.toString()});e.updateValue("seekTime",L)}; Gzx=function(e){J2.call(this,e,!1,!0);this.k9=[];this.Cf=[];this.element.setAttribute("data-overlay-order","9");this.J=!0;this.badge.element.classList.add("ytp-featured-product");this.Ve=new g.U({U:"div",W:"ytp-featured-product-open-in-new"});g.l(this,this.Ve);this.countdownTimer=new g.U({U:"text",W:"ytp-featured-product-countdown",aq:"{{content}}"});this.countdownTimer.hide();g.l(this,this.countdownTimer);this.K=new g.U({U:"div",W:"ytp-featured-product-trending",L:[{U:"div",W:"ytp-featured-product-trending-icon"}, {U:"text",W:"ytp-featured-product-trending-text",aq:"{{trendingOffer}}"}]});this.K.hide();g.l(this,this.K);this.overflowButton=new g.U({U:"button",Rq:["ytp-featured-product-overflow-icon","ytp-button"],N:{"aria-haspopup":"true"}});this.overflowButton.hide();g.l(this,this.overflowButton);this.T=new g.U({U:"text",W:"ytp-featured-product-exclusive-countdown",aq:"{{content}}",N:{id:"exclusiveCountdown","aria-hidden":"true"}});this.T.hide();g.l(this,this.T);this.j=new g.U({U:"div",W:"ytp-featured-product-exclusive-container", N:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},L:[{U:"div",W:"ytp-featured-product-exclusive-badge-container",L:[{U:"div",W:"ytp-featured-product-exclusive-badge",L:[{U:"text",W:"ytp-featured-product-exclusive-badge-text",aq:"{{exclusive}}",N:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.T]});this.j.hide();g.l(this,this.j);this.banner=new g.U({U:"a",W:"ytp-featured-product-container",L:[{U:"div",W:"ytp-featured-product-thumbnail",L:[{U:"img",N:{src:"{{thumbnail}}"}},this.Ve]},{U:"div", W:"ytp-featured-product-details",L:[{U:"text",W:"ytp-featured-product-title",aq:"{{title}}"},this.V.Y("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{U:"div",W:"ytp-featured-product-price-container",N:{"aria-label":"{{priceA11yText}}"},L:[{U:"text",W:"ytp-featured-product-price-when-promotion-text-enabled",aq:"{{price}}",N:{"aria-hidden":"true"}},{U:"text",W:"ytp-featured-product-promotion-text",aq:"{{promotionText}}",N:{"aria-hidden":"true"}}]}:{U:"div",N:{"aria-label":"{{priceA11yText}}"}, L:[{U:"text",W:"ytp-featured-product-price",aq:"{{price}}",N:{"aria-hidden":"true"}},{U:"text",W:"ytp-featured-product-sales-original-price",aq:"{{salesOriginalPrice}}",N:{"aria-hidden":"true"}},{U:"text",W:"ytp-featured-product-price-drop-reference-price",aq:"{{priceDropReferencePrice}}",N:{"aria-hidden":"true"}}]},this.V.Y("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{U:"div",W:"ytp-featured-product-when-promotion-text-enabled",L:[{U:"text",W:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled", aq:"{{affiliateDisclaimer}}"},this.K,{U:"text",W:"ytp-featured-product-vendor-when-promotion-text-enabled",aq:"{{vendor}}"}]}:{U:"div",L:[{U:"text",W:"ytp-featured-product-affiliate-disclaimer",aq:"{{affiliateDisclaimer}}"},this.V.Y("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.j:null,this.K,{U:"text",W:"ytp-featured-product-vendor",aq:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.l(this,this.banner);this.banner.jl(this.Z.element);this.C(this.V,g.jh("featured_product"), this.MtY);this.C(this.V,g.Hq("featured_product"),this.BP);this.C(this.V,"videodatachange",this.onVideoDataChange);this.C(this.overflowButton.element,"click",this.zs);this.C(e,"featuredproductdismissed",this.q$)}; ghM=function(e){var L,c;e=(L=e.X)==null?void 0:(c=L.bannerData)==null?void 0:c.itemData;var I,B,x;return(e==null||!e.affiliateDisclaimer)&&(e==null?0:(I=e.exclusivesData)==null?0:I.exclusiveOfferLabelText)&&(e==null?0:(B=e.exclusivesData)==null?0:B.expirationTimestampMs)&&(e==null?0:(x=e.exclusivesData)==null?0:x.exclusiveOfferCountdownText)?!0:!1}; DIR=function(e){var L,c,I,B,x=(L=e.X)==null?void 0:(c=L.bannerData)==null?void 0:(I=c.itemData)==null?void 0:(B=I.exclusivesData)==null?void 0:B.expirationTimestampMs;L=(Number(x)-Date.now())/1E3;if(L>0){if(L<604800){var S,h,R,u;c=(S=e.X)==null?void 0:(h=S.bannerData)==null?void 0:(R=h.itemData)==null?void 0:(u=R.exclusivesData)==null?void 0:u.exclusiveOfferCountdownText;if(c!==void 0)for(S=Date.now(),h=g.f(c),R=h.next();!R.done;R=h.next())if(R=R.value,R!==void 0&&R.text!==void 0&&(u=Number(R.textDisplayStartTimestampMs), !isNaN(u)&&S>=u)){R.insertCountdown?(L=R.text.replace(/\$0/,String(ah({seconds:L}))),e.T.Hw(L)):e.T.Hw(R.text);e.T.show();break}}var t,O,q,T;e.j.update({exclusive:(t=e.X)==null?void 0:(O=t.bannerData)==null?void 0:(q=O.itemData)==null?void 0:(T=q.exclusivesData)==null?void 0:T.exclusiveOfferLabelText});e.j.show();WP(e);var W;(W=e.Q5)==null||W.start()}else kzJ(e)}; kzJ=function(e){var L;(L=e.Q5)==null||L.stop();e.T.hide();e.j.hide();M$(e)}; wGR=function(e){var L,c,I=(L=e.X)==null?void 0:(c=L.bannerData)==null?void 0:c.itemData;return e.V.Y("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(I==null||!I.priceReplacementText)&&(I==null?0:I.promotionText)?I==null?void 0:I.promotionText.content:null}; J3J=function(e){var L,c,I=(L=e.X)==null?void 0:(c=L.bannerData)==null?void 0:c.itemData,B,x;if(!(I!=null&&I.priceReplacementText||e.V.Y("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(I==null?0:(B=I.dealsData)==null?0:(x=B.sales)==null?0:x.originalPrice)){var S,h;return I==null?void 0:(S=I.dealsData)==null?void 0:(h=S.sales)==null?void 0:h.originalPrice}return null}; VQM=function(e){var L,c,I=(L=e.X)==null?void 0:(c=L.bannerData)==null?void 0:c.itemData,B,x,S,h;if(!((I==null?0:I.priceReplacementText)||e.V.Y("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(I==null?0:(B=I.dealsData)==null?0:(x=B.sales)==null?0:x.originalPrice))&&(I==null?0:(S=I.dealsData)==null?0:(h=S.priceDrop)==null?0:h.referencePrice)){var R,u;return I==null?void 0:(R=I.dealsData)==null?void 0:(u=R.priceDrop)==null?void 0:u.referencePrice}return null}; CYJ=function(e){var L,c,I=(L=e.X)==null?void 0:(c=L.bannerData)==null?void 0:c.itemData;if(I==null?0:I.priceReplacementText)return I==null?void 0:I.priceReplacementText;if((I==null?0:I.promotionText)&&e.V.Y("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var B;return(I==null?void 0:I.price)+" "+(I==null?void 0:(B=I.promotionText)==null?void 0:B.content)}var x,S;if(I==null?0:(x=I.dealsData)==null?0:(S=x.sales)==null?0:S.originalPrice){var h,R;return I==null?void 0:(h=I.dealsData)== null?void 0:(R=h.sales)==null?void 0:R.salesPriceAccessibilityLabel}var u,t;if(I==null?0:(u=I.dealsData)==null?0:(t=u.priceDrop)==null?0:t.referencePrice){var O,q;return(I==null?void 0:I.price)+" "+(I==null?void 0:(O=I.dealsData)==null?void 0:(q=O.priceDrop)==null?void 0:q.referencePrice)}return I==null?void 0:I.price}; aYn=function(e){if(e.V.Y("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var L,c,I;return e.K.z_?null:(L=e.X)==null?void 0:(c=L.bannerData)==null?void 0:(I=c.itemData)==null?void 0:I.vendorName}var B,x,S,h,R,u;return e.K.z_||e.j.z_||((B=e.X)==null?0:(x=B.bannerData)==null?0:(S=x.itemData)==null?0:S.affiliateDisclaimer)?null:(h=e.X)==null?void 0:(R=h.bannerData)==null?void 0:(u=R.itemData)==null?void 0:u.vendorName}; mIc=function(e,L){zi(e);if(L){var c=g.vN.getState().entities;c=EK(c,"featuredProductsEntity",L);if(c!=null&&c.productsData){L=[];c=g.f(c.productsData);for(var I=c.next();!I.done;I=c.next()){I=I.value;var B=void 0;if((B=I)!=null&&B.identifier&&I.featuredSegments){e.k9.push(I);var x=void 0;B=g.f((x=I)==null?void 0:x.featuredSegments);for(x=B.next();!x.done;x=B.next()){var S=x.value;x=Nlx(S.startTimeSec);x!==void 0&&(S=Nlx(S.endTimeSec),L.push(new g.pC(x*1E3,S===void 0?0x7ffffffffffff:S*1E3,{id:I.identifier, namespace:"featured_product"})))}}}e.V.Lb(L)}}}; M$=function(e){if(e.trendingOfferEntityKey){var L=g.vN.getState().entities;if(L=EK(L,"trendingOfferEntity",e.trendingOfferEntityKey)){var c,I,B;L.encodedSkuId!==((c=e.X)==null?void 0:(I=c.bannerData)==null?void 0:(B=I.itemData)==null?void 0:B.encodedOfferSkuId)?WP(e):(e.K.update({trendingOffer:L.shortLabel+" \u2022 "+L.countLabel}),e.K.show(),e.banner.update({vendor:aYn(e)}))}else WP(e)}else WP(e)}; WP=function(e){e.K.hide();e.banner.update({vendor:aYn(e)})}; zi=function(e){e.k9=[];e.BP();e.V.RU("featured_product")}; y3c=function(e){var L,c,I,B,x=(L=e.X)==null?void 0:(c=L.bannerData)==null?void 0:(I=c.itemData)==null?void 0:(B=I.hiddenProductOptions)==null?void 0:B.dropTimestampMs;L=(Number(x)-Date.now())/1E3;e.countdownTimer.Hw(ah({seconds:L}));if(L>0){var S;(S=e.RT)==null||S.start()}}; ZYH=function(e){var L;(L=e.RT)==null||L.stop();e.countdownTimer.hide()}; Nlx=function(e){if(e!==void 0&&e.trim()!==""&&(e=Math.trunc(Number(e.trim())),!(isNaN(e)||e<0)))return e}; lYx=function(e,L,c){g.U.call(this,{U:"div",Rq:["ytp-info-panel-action-item"],L:[{U:"div",W:"ytp-info-panel-action-item-disclaimer",aq:"{{disclaimer}}"},{U:"a",Rq:["ytp-info-panel-action-item-button","ytp-button"],N:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},L:[{U:"div",W:"ytp-info-panel-action-item-icon",aq:"{{icon}}"},{U:"div",W:"ytp-info-panel-action-item-label",aq:"{{label}}"}]}]});this.V=e;this.X=c;this.disclaimer=this.q0("ytp-info-panel-action-item-disclaimer");this.button= this.q0("ytp-info-panel-action-item-button");this.Hd=!1;this.V.createServerVe(this.element,this,!0);this.listen("click",this.onClick);e="";c=g.Q(L==null?void 0:L.onTap,iF);var I=g.Q(c,g.ku);this.Hd=!1;I?(e=I.url||"",e.startsWith("//")&&(e="https:"+e),this.Hd=!0,g.uv(this.button,g.h0(e))):(I=g.Q(c,pGR))&&!this.X?((e=I.phoneNumbers)&&e.length>0?(e="sms:"+e[0],I.messageText&&(e+="?&body="+encodeURI(I.messageText))):e="",this.Hd=!0,g.uv(this.button,g.h0(e,[$IT]))):(c=g.Q(c,jBJ))&&!this.X&&(e=c.phoneNumber? "tel:"+c.phoneNumber:"",this.Hd=!0,g.uv(this.button,g.h0(e,[HYn])));var B;if(c=(B=L.disclaimerText)==null?void 0:B.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var x;this.update({label:(x=L.bodyText)==null?void 0:x.content,icon:W7(),disclaimer:c})}else{this.disclaimer.style.display="none";var S;this.update({label:(S=L.bodyText)==null?void 0:S.content,icon:W7()})}this.V.setTrackingParams(this.element,L.trackingParams||null);this.Hd&&(this.K={externalLinkData:{url:e}})}; PYv=function(e,L){var c=nE();g.Lr.call(this,e,{U:"div",W:"ytp-info-panel-detail-skrim",L:[{U:"div",W:"ytp-info-panel-detail",N:{role:"dialog",id:c},L:[{U:"div",W:"ytp-info-panel-detail-header",L:[{U:"div",W:"ytp-info-panel-detail-title",aq:"{{title}}"},{U:"button",Rq:["ytp-info-panel-detail-close","ytp-button"],N:{"aria-label":"Close"},L:[g.uX()]}]},{U:"div",W:"ytp-info-panel-detail-body",aq:"{{body}}"},{U:"div",W:"ytp-info-panel-detail-items"}]}]},250);this.X=L;this.items=this.q0("ytp-info-panel-detail-items"); this.Z=new g.zn(this);this.itemData=[];this.G=c;this.C(this.q0("ytp-info-panel-detail-close"),"click",this.y5);this.C(this.q0("ytp-info-panel-detail-skrim"),"click",this.y5);this.C(this.q0("ytp-info-panel-detail"),"click",function(I){I.stopPropagation()}); g.l(this,this.Z);this.V.createServerVe(this.element,this,!0);this.C(e,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",e.getVideoData());this.hide()}; QBc=function(e,L){e=g.f(e.itemData);for(var c=e.next();!c.done;c=e.next())c=c.value,c.V.logVisibility(c.element,L)}; EhT=function(e,L){g.U.call(this,{U:"div",W:"ytp-info-panel-preview",N:{"aria-live":"assertive","aria-atomic":"true","aria-owns":L.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.Uh(e.S()))},L:[{U:"div",W:"ytp-info-panel-preview-text",aq:"{{text}}"},{U:"div",W:"ytp-info-panel-preview-chevron",aq:"{{chevron}}"}]});var c=this;this.V=e;this.mZ=this.X=this.videoId=null;this.Z=this.showControls=this.K=!1;this.C(this.element,"click",function(){e.logClick(c.element);e.jr();Iv(L)}); this.fade=new g.dJ(this,250,!1,100);g.l(this,this.fade);this.V.createServerVe(this.element,this,!0);this.C(e,"videodatachange",this.onVideoDataChange);this.C(e,"presentingplayerstatechange",this.Kx);this.C(this.V,"paidcontentoverlayvisibilitychange",this.hL);this.C(this.V,"infopaneldetailvisibilitychange",this.hL);var I=e.getVideoData()||{};dIn(I)&&UIM(this,I);this.C(e,"onShowControls",this.aS);this.C(e,"onHideControls",this.h5)}; UIM=function(e,L){if(!L.sK||!e.V.FK()){var c=L.DM||1E4,I=dIn(L);e.X?L.videoId&&L.videoId!==e.videoId&&(g.PT(e.X),e.videoId=L.videoId,I?(XGv(e,c,L),e.Fp()):(e.y5(),e.X.dispose(),e.X=null)):I&&(L.videoId&&(e.videoId=L.videoId),XGv(e,c,L),e.Fp())}}; dIn=function(e){var L,c,I,B;return!!((L=e.Mv)==null?0:(c=L.title)==null?0:c.content)||!!((I=e.Mv)==null?0:(B=I.bodyText)==null?0:B.content)}; XGv=function(e,L,c){e.X&&e.X.dispose();e.X=new g.j9(e.Jmd,L,e);g.l(e,e.X);var I;L=((I=c.Mv)==null?void 0:I.trackingParams)||null;e.V.setTrackingParams(e.element,L);var B;var x,S;if(c==null?0:(x=c.Mv)==null?0:(S=x.title)==null?0:S.content){var h;I=(B=c.Mv)==null?void 0:(h=B.title)==null?void 0:h.content;var R,u;if((R=c.Mv)==null?0:(u=R.bodyText)==null?0:u.content)I+=" \u2022 ";B=I}else B="";var t,O;c=((t=c.Mv)==null?void 0:(O=t.bodyText)==null?void 0:O.content)||"";e.update({text:B+c,chevron:g.R9()})}; KYn=function(e,L){e.X&&(g.E(L,8)?(e.K=!0,e.Fp(),e.X.start()):(g.E(L,2)||g.E(L,64))&&e.videoId&&(e.videoId=null))}; sG=function(e){var L=null;try{L=e.toLocaleString("en",{style:"percent"})}catch(c){L=e.toLocaleString(void 0,{style:"percent"})}return L}; vP=function(e,L){var c=0;e=g.f(e);for(var I=e.next();!(I.done||I.value.startTime>L);I=e.next())c++;return c===0?c:c-1}; Yl$=function(e,L){for(var c=0,I=g.f(e),B=I.next();!B.done;B=I.next()){B=B.value;if(L=B.timeRangeStartMillis&&L0?L[0]:null;var c=g.rF("ytp-chrome-bottom"),I=g.rF("ytp-ad-module");e.G=!(c==null||!c.contains(L));e.J=!(I==null||!I.contains(L));e.D=!(L==null||!L.hasAttribute("data-tooltip-target-fixed"));return L}; TS$=function(e,L,c){if(!e.j){if(L){e.tooltipRenderer=L;L=e.tooltipRenderer.text;var I=!1,B;(L==null?0:(B=L.runs)==null?0:B.length)&&L.runs[0].text&&(e.update({title:L.runs[0].text.toString()}),I=!0);g.cA(e.title,I);L=e.tooltipRenderer.detailsText;B=!1;var x;if((L==null?0:(x=L.runs)==null?0:x.length)&&L.runs[0].text){I=L.runs[0].text.toString();x=I.indexOf("$TARGET_ICON");if(x>-1)if(e.tooltipRenderer.targetId){L=[];I=I.split("$TARGET_ICON");var S=new g.eH({U:"span",W:"ytp-promotooltip-details-icon", L:[O4H[e.tooltipRenderer.targetId]]});g.l(e,S);for(var h=[],R=g.f(I),u=R.next();!u.done;u=R.next())u=new g.eH({U:"span",W:"ytp-promotooltip-details-component",aq:u.value}),g.l(e,u),h.push(u);I.length===2?(L.push(h[0].element),L.push(S.element),L.push(h[1].element)):I.length===1&&(x===0?(L.push(S.element),L.push(h[0].element)):(L.push(h[0].element),L.push(S.element)));x=L.length?L:null}else x=null;else x=I;if(x){if(typeof x!=="string")for(g.Ml(e.details),B=g.f(x),x=B.next();!x.done;x=B.next())e.details.appendChild(x.value); else e.update({details:x});B=!0}}g.cA(e.details,B);B=e.tooltipRenderer.acceptButton;x=!1;var t,O,q;((t=g.Q(B,g.E5))==null?0:(O=t.text)==null?0:(q=O.runs)==null?0:q.length)&&g.Q(B,g.E5).text.runs[0].text&&(e.update({acceptButtonText:g.Q(B,g.E5).text.runs[0].text.toString()}),x=!0);g.cA(e.acceptButton,x);t=e.tooltipRenderer.dismissButton;O=!1;var T,W,A;((T=g.Q(t,g.E5))==null?0:(W=T.text)==null?0:(A=W.runs)==null?0:A.length)&&g.Q(t,g.E5).text.runs[0].text&&(e.update({dismissButtonText:g.Q(t,g.E5).text.runs[0].text.toString()}), O=!0);g.cA(e.dismissButton,O)}c&&(e.Z=c);e.X=tuR(e);e.T=!1;e.V.S().Y("web_player_hide_nitrate_promo_tooltip")||e.i5(!0);qzx(e);e.z_&&!e.pS&&(e.pS=!0,e.kx.AM(0));e.K&&e.V.logVisibility(e.element,e.z_)}}; gN=function(e){e.i5(!1);e.K&&e.V.logVisibility(e.element,e.z_)}; W0R=function(e){var L,c,I,B=((L=g.Q(e.acceptButton,g.E5))==null?void 0:(c=L.text)==null?void 0:(I=c.runs)==null?void 0:I.length)&&!!g.Q(e.acceptButton,g.E5).text.runs[0].text,x,S,h;L=((x=g.Q(e.dismissButton,g.E5))==null?void 0:(S=x.text)==null?void 0:(h=S.runs)==null?void 0:h.length)&&!!g.Q(e.dismissButton,g.E5).text.runs[0].text;return B||L}; qzx=function(e){var L;if(!(L=!e.X)){L=e.X;var c=window.getComputedStyle(L);L=c.display==="none"||c.visibility==="hidden"||L.getAttribute("aria-hidden")==="true"}if(L||e.V.isMinimized())e.i5(!1);else if(L=g.LH(e.X),L.width&&L.height){e.V.SE(e.element,e.X);var I=e.V.LS().getPlayerSize().height;c=g.LH(e.q0("ytp-promotooltip-container")).height;e.G?e.element.style.top=I-c-L.height-12+"px":e.D||(I=e.V.CB().height-c-L.height-12,e.element.style.top=I+"px");I=e.q0("ytp-promotooltip-pointer");var B=g.nU(e.X, e.V.getRootNode()),x=Number(e.element.style.left.replace(/[^\d\.]/g,""));e=e.V.isFullscreen()?18:12;I.style.left=B.x-x+L.width/2-e+"px";I.style.top=c+"px"}else e.i5(!1)}; k8=function(e){g.U.call(this,{U:"button",Rq:["ytp-replay-button","ytp-button"],N:{title:"Replay"},L:[g.sn()]});this.V=e;this.C(e,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.Oq(e.getPlayerStateObject());y4(this.V,this.element,this)}; Df=function(e,L){L=L===void 0?240:L;g.U.call(this,{U:"button",Rq:["ytp-button","ytp-search-button"],N:{title:"Search","data-tooltip-opaque":String(g.Uh(e.S()))},L:[{U:"div",W:"ytp-search-icon",aq:"{{icon}}"},{U:"div",W:"ytp-search-title",aq:"Search"}]});this.api=e;this.K=L;this.visible=!1;this.updateValue("icon",{U:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},L:[{U:"path",W:"ytp-svg-fill",N:{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"}}]}); e.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.X();this.C(e,"appresize",this.X);this.C(e,"videodatachange",this.X);y4(e,this.element,this)}; wN=function(e){g.U.call(this,{U:"div",W:"ytp-seek-overlay",L:[{U:"div",Rq:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-back"],L:[{U:"div",Rq:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],L:[{U:"svg",N:{viewBox:"0 0 22 32",width:"22",height:"32"},L:[{U:"path",N:{d:"M 18 4 L 6 16 L 18 28",stroke:"white","stroke-width":"4",fill:"none"}}]}]},{U:"div",W:"ytp-seek-overlay-duration",aq:"{{durationBack}}"}]},{U:"div",Rq:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-forward"], L:[{U:"div",W:"ytp-seek-overlay-duration",aq:"{{durationForward}}"},{U:"div",Rq:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],L:[{U:"svg",N:{viewBox:"0 0 22 32",width:"22",height:"32"},L:[{U:"path",N:{d:"M 4 4 L 16 16 L 4 28",stroke:"white","stroke-width":"4",fill:"none"}}]}]}]},{U:"div",W:"ytp-seek-overlay-message",L:[{U:"div",W:"ytp-seek-overlay-message-icon",aq:"{{icon}}"},{U:"div",W:"ytp-seek-overlay-message-text",aq:"{{text}}"}]}]});var L=this;this.V=e;this.T=0;this.X="hidden"; this.pS=0;this.J=this.q0("ytp-seek-overlay-animation-back");this.D=this.q0("ytp-seek-overlay-animation-forward");this.h7=this.q0("ytp-seek-overlay-message");this.j=new g.j9(function(){MuH(L)},g.X3(this.V.S().experiments,"web_player_seek_overlay_linger_duration")||1E3); g.l(this,this.j);this.V.createClientVe(this.D,this,28240);this.V.createClientVe(this.J,this,28239);this.V.logVisibility(this.D,!0);this.V.logVisibility(this.J,!0);this.hide()}; z5n=function(e,L){e.K=e.Z.animate([{offset:0,opacity:L,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:1}],{duration:200,fill:"forwards"});e.K.addEventListener("finish",function(){e.K=void 0;e.j.start();e.X="lingering"})}; s_n=function(e,L,c){c=c===void 0?!1:c;var I=[];I.push({offset:0,transform:"translateX("+(e.G===-1?30:-30)+"px)",opacity:c?"0":"1"});c&&I.push({offset:.5,opacity:"1"});I.push({offset:1,transform:"translateX(0)"});c=L.animate(I,{duration:400,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});L.querySelector("path").animate([{offset:0,d:e.G===-1?'path("M 18 4 L 18 16 L 18 28")':'path("M 4 4 L 4 16 L 4 28")'},{offset:1,d:e.G===-1?'path("M 18 4 L 6 16 L 18 28")':'path("M 4 4 L 16 16 L 4 28")'}],{duration:333, easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});return c}; vxn=function(e){if((0,g.zI)()-e.pS>=(g.X3(e.V.S().experiments,"web_player_seek_overlay_additional_arrow_threshold")||200)){var L=e.Z.querySelector(".ytp-seek-overlay-arrow-persistent").cloneNode(!0);L.classList.add("ytp-seek-overlay-arrow-additional");L.classList.remove("ytp-seek-overlay-arrow-persistent");e.Z.appendChild(L);s_n(e,L,!0).addEventListener("finish",function(){L.remove()})}}; MuH=function(e,L,c){c=c===void 0?!0:c;e.K=e.Z.animate([{offset:0,opacity:L===void 0?1:L},{offset:1,opacity:0}],{duration:200,fill:"forwards",easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"});c&&(e.K.addEventListener("finish",function(){e.K=void 0;f_n(e);e.hide()}),e.X="fading-out")}; AOT=function(e){var L=Number(getComputedStyle(e.Z).opacity),c;(c=e.K)==null||c.cancel();e.K=void 0;return L}; f_n=function(e){e.T=0;e.X="hidden";e.G=void 0;e.Z=void 0;e.pS=0;e.j.stop();e.K=void 0}; F0T=function(e,L,c){e.updateValue("text",L);if(c){a:{switch(c){case "PREMIUM_STANDALONE":L=Dxf();break a;case "PREMIUM_STANDALONE_CAIRO":L=wIR();break a}L=void 0}e.updateValue("icon",L)}L=g.f(e.h7.getAnimations());for(c=L.next();!c.done;c=L.next())c.value.cancel();e.h7.animate([{opacity:0,offset:0},{offset:.3,opacity:1},{offset:.7,opacity:1},{offset:1,opacity:0}],{duration:1400}).addEventListener("finish",function(){e.updateValue("text","");e.updateValue("icon","")})}; Jn=function(e,L,c,I){I=I===void 0?240:I;g.U.call(this,{U:"button",Rq:["ytp-button","ytp-share-button"],N:{title:"Share","aria-haspopup":"true","aria-owns":c.element.id,"data-tooltip-opaque":String(g.Uh(e.S()))},L:[{U:"div",W:"ytp-share-icon",aq:"{{icon}}"},{U:"div",W:"ytp-share-title",aq:"Share"}]});this.api=e;this.X=L;this.K=c;this.Z=I;this.visible=!1;this.tooltip=this.X.Aq();e.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.C(e,"videodatachange",this.OW);this.C(e, "videoplayerreset",this.OW);this.C(e,"appresize",this.OW);this.C(e,"presentingplayerstatechange",this.OW);this.OW();this.addOnDisposeCallback(g.mC(this.tooltip,this.element))}; b46=function(e){var L=e.api.S(),c=e.api.getVideoData(),I=g.Uh(L)&&g.lf(e.api)&&g.E(e.api.getPlayerStateObject(),128);L=L.Z||L.disableSharing&&e.api.getPresentingPlayerType()!==2||!c.showShareButton||c.w9||I||c.xx||!1;I=e.api.LS().getPlayerSize().width;return!!c.videoId&&I>=e.Z&&!L}; i4v=function(e,L){L.name!=="InvalidStateError"&&L.name!=="AbortError"&&(L.name==="NotAllowedError"?(e.X.jr(),Iv(e.K,e.element,!1)):g.A9(L))}; gx6=function(e,L){var c=nE(),I=e.S();c={U:"div",W:"ytp-share-panel",N:{id:nE(),role:"dialog","aria-labelledby":c},L:[{U:"div",W:"ytp-share-panel-inner-content",L:[{U:"div",W:"ytp-share-panel-title",N:{id:c},aq:"Share"},{U:"a",Rq:["ytp-share-panel-link","ytp-no-contextmenu"],N:{href:"{{link}}",target:I.D,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},aq:"{{linkText}}"},{U:"label",W:"ytp-share-panel-include-playlist",L:[{U:"input",W:"ytp-share-panel-include-playlist-checkbox",N:{type:"checkbox", checked:"true"}},"Include playlist"]},{U:"div",W:"ytp-share-panel-loading-spinner",L:[Ak()]},{U:"div",W:"ytp-share-panel-service-buttons",aq:"{{buttons}}"},{U:"div",W:"ytp-share-panel-error",aq:"An error occurred while retrieving sharing information. Please try again later."}]},{U:"button",Rq:["ytp-share-panel-close","ytp-button"],N:{title:"Close"},L:[g.uX()]}]};g.Lr.call(this,e,c,250);var B=this;this.moreButton=null;this.api=e;this.tooltip=L.Aq();this.Z=[];this.j=this.q0("ytp-share-panel-inner-content"); this.closeButton=this.q0("ytp-share-panel-close");this.C(this.closeButton,"click",this.y5);this.addOnDisposeCallback(g.mC(this.tooltip,this.closeButton));this.G=this.q0("ytp-share-panel-include-playlist-checkbox");this.C(this.G,"click",this.OW);this.X=this.q0("ytp-share-panel-link");this.addOnDisposeCallback(g.mC(this.tooltip,this.X));this.api.createClientVe(this.X,this,164503);this.C(this.X,"click",function(x){x.preventDefault();B.api.logClick(B.X);var S=B.api.getVideoUrl(!0,!0,!1,!1);S=G8x(B,S); g.v8(S,B.api,x)&&B.api.fS("SHARE_CLICKED")}); this.listen("click",this.Uo);this.C(e,"videoplayerreset",this.hide);this.C(e,"fullscreentoggled",this.onFullscreenToggled);this.C(e,"onLoopRangeChange",this.JD);this.hide()}; wjT=function(e,L){k8M(e);for(var c=L.links||L.shareTargets,I=0,B={},x=0;x0&&!ev&&!y?(C.length===2&&(C=["noreferrer"]),g.Wa(T,A,q,C[0]),T=epM()):(b=w.join(","),yK()&&T.navigator&&T.navigator.standalone&&q&&q!="_self"?(b=g.ql("A"),g.uv(b,A),b.target=q,J&&(b.rel="noreferrer"),((W=W.attributionsrc)||W==="")&&b.setAttribute("attributionsrc",W),W=document.createEvent("MouseEvent"), W.initMouseEvent("click",!0,!0,T,1),b.dispatchEvent(W),T=epM()):J?(T=g.Wa(T,"",q,b),W=g.xC(A),T&&(T.opener=null,W===""&&(W="javascript:''"),W='',W=q9(W),(A=T.document)&&A.write&&(A.write(Ty(W)),A.close()))):((T=g.Wa(T,A,q,b))&&W.noopener&&(T.opener=null),T&&W.noreferrer&&(T.opener=null)));T&&(T.opener||(T.opener=window),T.focus());O.preventDefault()}}}(B)); B.NZ.addOnDisposeCallback(g.mC(e.tooltip,B.NZ.element));h==="Facebook"?e.api.createClientVe(B.NZ.element,B.NZ,164504):h==="Twitter"&&e.api.createClientVe(B.NZ.element,B.NZ,164505);e.C(B.NZ.element,"click",function(t){return function(){e.api.logClick(t.NZ.element)}}(B)); e.api.logVisibility(B.NZ.element,!0);e.Z.push(B.NZ);I++}}var R=L.more||L.moreLink,u=new g.U({U:"a",Rq:["ytp-share-panel-service-button","ytp-button"],L:[{U:"span",W:"ytp-share-panel-service-button-more",L:[{U:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},L:[{U:"rect",N:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{U:"path",N:{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"}}]}]}],N:{href:R,target:"_blank",title:"More"}});u.listen("click",function(t){var O=R;e.api.logClick(e.moreButton.element);O=G8x(e,O);g.v8(O,e.api,t)&&e.api.fS("SHARE_CLICKED")}); u.addOnDisposeCallback(g.mC(e.tooltip,u.element));e.api.createClientVe(u.element,u,164506);e.C(u.element,"click",function(){e.api.logClick(u.element)}); e.api.logVisibility(u.element,!0);e.Z.push(u);e.moreButton=u;e.updateValue("buttons",e.Z)}; G8x=function(e,L){var c={};g.Uh(e.api.S())&&(g.Fl(e.api,"addEmbedsConversionTrackingParams",[c]),L=g.WO(L,c));return L}; k8M=function(e){for(var L=g.f(e.Z),c=L.next();!c.done;c=L.next())c=c.value,c.detach(),g.L0(c);e.Z=[]}; Vf=function(e){return e===void 0||e.startSec===void 0||e.endSec===void 0?!1:!0}; JO$=function(e,L){e.startSec+=L;e.endSec+=L}; ClR=function(e){J2.call(this,e);this.K=this.X=this.isContentForward=this.T=!1;this.element.setAttribute("data-overlay-order","8");Vuc(this);this.C(this.V,"changeProductsInVideoVisibility",this.Dx$);this.C(this.V,"videodatachange",this.onVideoDataChange)}; a_r=function(e){e.j&&e.ye.element.removeChild(e.j.element);e.j=void 0}; mev=function(e,L){return L.map(function(c){var I,B;if((c=(I=g.Q(c,NST))==null?void 0:(B=I.thumbnail)==null?void 0:B.thumbnails)&&c.length!==0)return c[0].url}).filter(function(c){return c!==void 0}).map(function(c){c=new g.U({U:"img", W:"ytp-suggested-action-product-thumbnail",N:{alt:"",src:c}});g.l(e,c);return c})}; yOM=function(e,L){e.isContentForward=L;g.cY(e.badge.element,"ytp-suggested-action-badge-content-forward",L)}; Cg=function(e){var L=e.isContentForward&&!e.DH();g.cY(e.badge.element,"ytp-suggested-action-badge-preview-collapsed",L&&e.X);g.cY(e.badge.element,"ytp-suggested-action-badge-preview-expanded",L&&e.K)}; a3=function(e,L,c){return new g.pC(e*1E3,L*1E3,{priority:9,namespace:c})}; Z4n=function(e){e.V.RU("shopping_overlay_visible");e.V.RU("shopping_overlay_preview_collapsed");e.V.RU("shopping_overlay_preview_expanded");e.V.RU("shopping_overlay_expanded")}; Vuc=function(e){e.C(e.V,g.jh("shopping_overlay_visible"),function(){e.dZ(!0)}); e.C(e.V,g.Hq("shopping_overlay_visible"),function(){e.dZ(!1)}); e.C(e.V,g.jh("shopping_overlay_expanded"),function(){e.h7=!0;wB(e)}); e.C(e.V,g.Hq("shopping_overlay_expanded"),function(){e.h7=!1;wB(e)}); e.C(e.V,g.jh("shopping_overlay_preview_collapsed"),function(){e.X=!0;Cg(e)}); e.C(e.V,g.Hq("shopping_overlay_preview_collapsed"),function(){e.X=!1;Cg(e)}); e.C(e.V,g.jh("shopping_overlay_preview_expanded"),function(){e.K=!0;Cg(e)}); e.C(e.V,g.Hq("shopping_overlay_preview_expanded"),function(){e.K=!1;Cg(e)})}; j_v=function(e){g.U.call(this,{U:"div",W:"ytp-shorts-title-channel",L:[{U:"a",W:"ytp-shorts-title-channel-logo",N:{href:"{{channelLink}}",target:e.S().D,"aria-label":"{{channelLogoLabel}}"}},{U:"div",W:"ytp-shorts-title-expanded-heading",L:[{U:"div",W:"ytp-shorts-title-expanded-title",L:[{U:"a",aq:"{{expandedTitle}}",N:{href:"{{channelTitleLink}}",target:e.S().D,tabIndex:"0"}}]}]}]});var L=this;this.api=e;this.X=this.q0("ytp-shorts-title-channel-logo");this.channelName=this.q0("ytp-shorts-title-expanded-title"); this.subscribeButton=null;e.createClientVe(this.X,this,36925);this.C(this.X,"click",function(c){L.api.logClick(L.X);g.Wa(window,pjM(L));c.preventDefault()}); e.createClientVe(this.channelName,this,37220);this.C(this.channelName,"click",function(c){L.api.logClick(L.channelName);g.Wa(window,pjM(L));c.preventDefault()}); $ev(this);this.C(e,"videodatachange",this.OW);this.C(e,"videoplayerreset",this.OW);this.OW()}; $ev=function(e){if(!e.api.S().gT){var L=e.api.getVideoData(),c=new g.uo("Subscribe",null,"Subscribed",null,!0,!1,L.hR,L.subscribed,"channel_avatar",null,e.api,!0);e.api.createServerVe(c.element,e);var I;e.api.setTrackingParams(c.element,((I=L.subscribeButtonRenderer)==null?void 0:I.trackingParams)||null);e.C(c.element,"click",function(){e.api.logClick(c.element)}); e.subscribeButton=c;g.l(e,e.subscribeButton);e.subscribeButton.jl(e.element)}}; pjM=function(e){var L=e.api.S(),c=e.api.getVideoData();c=g.FM(L)+c.DY;if(!g.Uh(L))return c;L={};g.Fl(e.api,"addEmbedsConversionTrackingParams",[L]);return g.WO(c,L)}; N$=function(e){g.Lr.call(this,e,{U:"button",Rq:["ytp-skip-intro-button","ytp-popup","ytp-button"],L:[{U:"div",W:"ytp-skip-intro-button-text",aq:"Skip Intro"}]},100);var L=this;this.Z=!1;this.X=new g.j9(function(){L.hide()},5E3); this.PM=this.Kp=NaN;g.l(this,this.X);this.T=function(){L.show()}; this.j=function(){L.hide()}; this.G=function(){var c=L.V.getCurrentTime();c>L.Kp/1E3&&c0?{U:"svg",N:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},L:[{U:"path",Rq:["ytp-circle-arrow","ytp-svg-fill"],N:{d:"m19,12c0,2.1 -0.93,4.07 -2.55,5.4c-1.62,1.34 -3.76,1.87 -5.86,1.46c-2.73,-0.53 -4.92,-2.72 -5.45,-5.45c-0.41,-2.1 .12,-4.24 1.46,-5.86c1.33,-1.62 3.3,-2.55 5.4,-2.55l1.27,0l-0.85,.85l1.41,1.41l3.35,-3.35l-3.35,-3.35l-1.41,1.41l1.01,1.03l-1.43,0c-2.7,0 -5.23,1.19 -6.95,3.28c-1.72,2.08 -2.4,4.82 -1.88,7.52c0.68,3.52 3.51,6.35 7.03,7.03c0.6,.11 1.19,.17 1.78,.17c2.09,0 4.11,-0.71 5.74,-2.05c2.09,-1.72 3.28,-4.25 3.28,-6.95l-2,0z"}}, {U:"text",Rq:["ytp-jump-button-text","ytp-svg-fill"],N:{x:"7.05",y:"15.05"}}]}:{U:"svg",N:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},L:[{U:"path",Rq:["ytp-circle-arrow","ytp-svg-fill"],N:{d:"m18.95,6.28c-1.72,-2.09 -4.25,-3.28 -6.95,-3.28l-1.43,0l1.02,-1.02l-1.41,-1.41l-3.36,3.35l3.35,3.35l1.41,-1.41l-0.85,-0.86l1.27,0c2.1,0 4.07,.93 5.4,2.55c1.34,1.62 1.87,3.76 1.46,5.86c-0.53,2.73 -2.72,4.92 -5.45,5.45c-2.11,.41 -4.24,-0.12 -5.86,-1.46c-1.62,-1.33 -2.55,-3.3 -2.55,-5.4l-2,0c0,2.7 1.19,5.23 3.28,6.95c1.62,1.34 3.65,2.05 5.74,2.05c0.59,0 1.19,-0.06 1.78,-0.17c3.52,-0.68 6.35,-3.51 7.03,-7.03c0.52,-2.7 -0.17,-5.44 -1.88,-7.52z"}}, {U:"text",Rq:["ytp-jump-button-text","ytp-svg-fill"],N:{x:"6.5",y:"15"}}]}]});var c=this;this.V=e;this.X=L;this.K=new g.j9(function(){c.Z?(c.Z=!1,c.K.start()):c.element.classList.remove("ytp-jump-spin","backwards")},250); this.Z=!1;(L=L>0)?this.V.createClientVe(this.element,this,36843):this.V.createClientVe(this.element,this,36844);var I=g.nC(L?"Seek forward $SECONDS seconds. (\u2192)":"Seek backwards $SECONDS seconds. (\u2190)",{SECONDS:Math.abs(this.X).toString()});this.update({title:I,"data-title-no-tooltip":I,"aria-keyshortcuts":L?"\u2192":"\u2190"});this.G=this.element.querySelector(".ytp-jump-button-text");this.G.textContent=Math.abs(this.X).toString();this.listen("click",this.onClick,this);y4(e,this.element, this)}; Xjn=function(e,L){L?e.element.classList.add("ytp-jump-button-enabled"):e.element.classList.remove("ytp-jump-button-enabled");e.V.logVisibility(e.element,L);e.V.A9()}; HP=function(e,L){yf.call(this,e,L,"timedMarkerCueRange","View key moments");this.C(e,g.Hq("timedMarkerCueRange"),this.Ty);this.C(e,"updatemarkervisibility",this.updateVideoData)}; K0c=function(e){var L,c=(L=e.V.getVideoData())==null?void 0:L.d_;if(c)for(e=e.G.He,c=g.f(c),L=c.next();!L.done;L=c.next())if(L=e[L.value]){var I=void 0,B=void 0,x=void 0;if(((I=L.onTap)==null?void 0:(B=I.innertubeCommand)==null?void 0:(x=B.changeEngagementPanelVisibilityAction)==null?void 0:x.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return L}}; lo=function(e){var L=e.Y("web_enable_pip_on_miniplayer");g.U.call(this,{U:"button",Rq:["ytp-miniplayer-button","ytp-button"],N:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},L:["{{icon}}"]});this.V=e;this.visible=!1;this.listen("click",this.onClick);this.C(e,"fullscreentoggled",this.OW);this.updateValue("title",g.Zb(e,"Miniplayer","i"));this.update({"data-title-no-tooltip":"Miniplayer", icon:this.V.Y("delhi_modern_web_player_icons")?{U:"svg",N:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{U:"path",N:{d:"M21.20 3.01C21.66 3.05 22.08 3.26 22.41 3.58C22.73 3.91 22.94 4.33 22.98 4.79L23 5V19C23.00 19.49 22.81 19.97 22.48 20.34C22.15 20.70 21.69 20.93 21.20 20.99L21 21H3L2.79 20.99C2.30 20.93 1.84 20.70 1.51 20.34C1.18 19.97 .99 19.49 1 19V13H3V19H21V5H11V3H21L21.20 3.01ZM1.29 3.29C1.10 3.48 1.00 3.73 1.00 4C1.00 4.26 1.10 4.51 1.29 4.70L5.58 9H3C2.73 9 2.48 9.10 2.29 9.29C2.10 9.48 2 9.73 2 10C2 10.26 2.10 10.51 2.29 10.70C2.48 10.89 2.73 11 3 11H9V5C9 4.73 8.89 4.48 8.70 4.29C8.51 4.10 8.26 4 8 4C7.73 4 7.48 4.10 7.29 4.29C7.10 4.48 7 4.73 7 5V7.58L2.70 3.29C2.51 3.10 2.26 3.00 2 3.00C1.73 3.00 1.48 3.10 1.29 3.29ZM19.10 11.00L19 11H12L11.89 11.00C11.66 11.02 11.45 11.13 11.29 11.29C11.13 11.45 11.02 11.66 11.00 11.89L11 12V17C10.99 17.24 11.09 17.48 11.25 17.67C11.42 17.85 11.65 17.96 11.89 17.99L12 18H19L19.10 17.99C19.34 17.96 19.57 17.85 19.74 17.67C19.90 17.48 20.00 17.24 20 17V12L19.99 11.89C19.97 11.66 19.87 11.45 19.70 11.29C19.54 11.13 19.33 11.02 19.10 11.00ZM13 16V13H18V16H13Z", fill:"white"}}]}:L?{U:"svg",N:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},L:[{U:"g",N:{transform:"translate(96, -96) scale(0.8)"},L:[{U:"path",zy:!0,N:{d:"M96-480v-72h165L71-743l50-50 191 190v-165h72v288H96Zm72 288q-29.7 0-50.85-21.15Q96-234.3 96-264v-144h72v144h336v72H168Zm624-264v-240H456v-72h336q29.7 0 50.85 21.15Q864-725.7 864-696v240h-72ZM576-192v-192h288v192H576Z"}}]}]}:kxx()});y4(e,this.element,this);e.createClientVe(this.element,this,62946);this.OW()}; PP=function(e,L,c,I,B,x){x=x===void 0?!1:x;var S={U:"div",Rq:["ytp-input-slider-section"],L:[{U:"input",W:"ytp-input-slider",N:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};B&&S.L.unshift(B);x&&S.Rq.push("ytp-vertical-slider");g.U.call(this,S);this.G=e;this.j=L;this.J=c;this.initialValue=I;this.header=B;this.K=this.q0("ytp-input-slider");this.X=I?I:e;this.init();this.C(this.K,"input",this.Z);this.C(this.K,"keydown", this.T)}; Qf=function(e,L){e.X=L;e.updateValue("slidervalue",e.X);e.K.valueAsNumber=e.X;YzM(e,L)}; YzM=function(e,L){e.K.style.setProperty("--yt-slider-shape-gradient-percent",(L-e.G)/(e.j-e.G)*100+"%")}; dN=function(e){var L=e.isMuted()?0:e.getVolume();PP.call(this,0,100,1,L,void 0,!0);this.V=e;this.pS=Nl(this.Gm,10,this);this.D=!1;this.C(e,"onVolumeChange",this.onVolumeChange);this.C(this.element,"wheel",this.h7)}; nxM=function(e,L){g.U.call(this,{U:"div",N:{tabindex:"0",title:"Volume","data-tooltip-offset-y":"-120"},Rq:["ytp-volume-popover"]});var c=this;this.isVisible=!1;this.tooltip=L.Aq();this.K=new dN(e);g.l(this,this.K);this.K.jl(this.element);this.X=new g.j9(function(){UG(c,!1)},300); this.listen("mouseenter",function(){c.X.stop()}); this.listen("mouseleave",function(){c.X.start()}); this.listen("focus",function(){c.X.stop()}); this.C(this.K.K,"focus",function(){c.X.stop()}); this.listen("focusout",function(){c.X.start();c.element.dispatchEvent(new Event("blur"))}); this.addOnDisposeCallback(g.mC(L.Aq(),this.element));g.l(this,this.X)}; UG=function(e,L){e.element.classList.toggle("ytp-volume-popover-hovering",L);e.isVisible=L;(e=e.element.closest(".ytp-chrome-bottom"))&&e.classList.toggle("ytp-volume-popover-showing",L)}; EG=function(e,L,c){c=c===void 0?!1:c;var I=e.S().ye?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}","data-tooltip-offset-y":"{{dataTooltipOffsetY}}"}:{"aria-disabled":"true","aria-haspopup":"true"};I=e.Y("delhi_modern_web_player")?{U:"div",W:"ytp-mute-button",L:[{U:"button",N:I,Rq:["ytp-volume-icon","ytp-button"],aq:"{{icon}}"}]}:{U:"button",Rq:["ytp-mute-button","ytp-button"],N:I,L:[{U:"div",W:"ytp-volume-icon",aq:"{{icon}}"}]}; g.U.call(this,I);this.V=e;this.Y9=c;this.K=null;this.T=this.Gm=this.D=this.J=NaN;this.Ve=this.pS=null;this.j=[];this.G=[];this.visible=!1;this.Z=this.X=this.h7=null;e.Y("delhi_modern_web_player")&&this.update({"data-priority":4});c=this.V.S();this.updateValue("icon",Am());this.tooltip=L.Aq();this.updateValue("dataTooltipOffsetY",0);this.Z=g.rF("ytp-volume-icon",this.element);I=this.V.Y("delhi_modern_web_player_icons")?{U:"svg",N:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{U:"path",Rq:["ytp-svg-fill", "ytp-svg-volume-animation-speaker"],N:{d:"M 11.60 2.08 L 11.48 2.14 L 3.91 6.68 C 3.02 7.21 2.28 7.97 1.77 8.87 C 1.26 9.77 1.00 10.79 1 11.83 V 12.16 L 1.01 12.56 C 1.07 13.52 1.37 14.46 1.87 15.29 C 2.38 16.12 3.08 16.81 3.91 17.31 L 11.48 21.85 C 11.63 21.94 11.80 21.99 11.98 21.99 C 12.16 22.00 12.33 21.95 12.49 21.87 C 12.64 21.78 12.77 21.65 12.86 21.50 C 12.95 21.35 13 21.17 13 21 V 3 C 12.99 2.83 12.95 2.67 12.87 2.52 C 12.80 2.37 12.68 2.25 12.54 2.16 C 12.41 2.07 12.25 2.01 12.08 2.00 C 11.92 1.98 11.75 2.01 11.60 2.08 Z", fill:"#fff"}},{U:"path",W:"ytp-svg-volume-animation-small-ripple",N:{d:" M 15.53 7.05 C 15.35 7.22 15.25 7.45 15.24 7.70 C 15.23 7.95 15.31 8.19 15.46 8.38 L 15.53 8.46 L 15.70 8.64 C 16.09 9.06 16.39 9.55 16.61 10.08 L 16.70 10.31 C 16.90 10.85 17 11.42 17 12 L 16.99 12.24 C 16.96 12.73 16.87 13.22 16.70 13.68 L 16.61 13.91 C 16.36 14.51 15.99 15.07 15.53 15.53 C 15.35 15.72 15.25 15.97 15.26 16.23 C 15.26 16.49 15.37 16.74 15.55 16.92 C 15.73 17.11 15.98 17.21 16.24 17.22 C 16.50 17.22 16.76 17.12 16.95 16.95 C 17.6 16.29 18.11 15.52 18.46 14.67 L 18.59 14.35 C 18.82 13.71 18.95 13.03 18.99 12.34 L 19 12 C 18.99 11.19 18.86 10.39 18.59 9.64 L 18.46 9.32 C 18.15 8.57 17.72 7.89 17.18 7.3 L 16.95 7.05 L 16.87 6.98 C 16.68 6.82 16.43 6.74 16.19 6.75 C 15.94 6.77 15.71 6.87 15.53 7.05", fill:"#fff"}},{U:"path",W:"ytp-svg-volume-animation-big-ripple",N:{d:"M18.36 4.22C18.18 4.39 18.08 4.62 18.07 4.87C18.05 5.12 18.13 5.36 18.29 5.56L18.36 5.63L18.66 5.95C19.36 6.72 19.91 7.60 20.31 8.55L20.47 8.96C20.82 9.94 21 10.96 21 11.99L20.98 12.44C20.94 13.32 20.77 14.19 20.47 15.03L20.31 15.44C19.86 16.53 19.19 17.52 18.36 18.36C18.17 18.55 18.07 18.80 18.07 19.07C18.07 19.33 18.17 19.59 18.36 19.77C18.55 19.96 18.80 20.07 19.07 20.07C19.33 20.07 19.59 19.96 19.77 19.77C20.79 18.75 21.61 17.54 22.16 16.20L22.35 15.70C22.72 14.68 22.93 13.62 22.98 12.54L23 12C22.99 10.73 22.78 9.48 22.35 8.29L22.16 7.79C21.67 6.62 20.99 5.54 20.15 4.61L19.77 4.22L19.70 4.15C19.51 3.99 19.26 3.91 19.02 3.93C18.77 3.94 18.53 4.04 18.36 4.22 Z", fill:"#fff"}}]}:{U:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{U:"defs",L:[{U:"clipPath",N:{id:"ytp-svg-volume-animation-mask"},L:[{U:"path",N:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{U:"path",N:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{U:"path",W:"ytp-svg-volume-animation-mover",N:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{U:"clipPath",N:{id:"ytp-svg-volume-animation-slash-mask"},L:[{U:"path",W:"ytp-svg-volume-animation-mover", N:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{U:"path",zy:!0,Rq:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],N:{"clip-path":"url(#ytp-svg-volume-animation-mask)",d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{U:"path",zy:!0,Rq:["ytp-svg-fill","ytp-svg-volume-animation-hider"],N:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)",d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z", fill:"#fff"}}]};this.K=new g.eH(I);g.l(this,this.K);this.pS=this.K.q0("ytp-svg-volume-animation-speaker");this.Ve=this.pS.getAttribute("d");this.j=g.oF("ytp-svg-volume-animation-mover",this.K.element);this.V.Y("delhi_modern_web_player_icons");this.G=g.oF("ytp-svg-volume-animation-hider",this.K.element);this.V.Y("delhi_modern_web_player_icons");this.ye=new xe;g.l(this,this.ye);this.k9=new xe;g.l(this,this.k9);this.C(e,"appresize",this.IP);this.C(e,"onVolumeChange",this.onVolumeChange);e.Y("delhi_modern_web_player")? this.listen("click",this.ag9):this.listen("click",this.XL);c.ye?(e.Y("delhi_modern_web_player")&&(this.X=new nxM(e,L),this.X.jl(this.element),g.l(this,this.X),this.C(this.Z,"mouseover",this.UH),this.C(this.Z,"focus",this.UH),this.C(this.Z,"mouseout",this.yL),this.C(this.Z,"blur",this.yL)),c=e.Y("delhi_modern_web_player")?this.Z:this.element,this.addOnDisposeCallback(g.mC(L.Aq(),c))):e3c(this);this.message=null;e.createClientVe(this.element,this,28662);this.IP(e.LS().getPlayerSize());this.setVolume(e.getVolume(), e.isMuted())}; Lt$=function(e,L){if(e.V.S().ye){var c=g.Zb(e.V,"Mute","m"),I=g.Zb(e.V,"Unmute","m");e.updateValue("title",L?I:c);e.update({"data-title-no-tooltip":L?"Unmute":"Mute"});e.tooltip.A9()}}; Bv6=function(e,L){e.J=L;var c=e.Ve;e.V.Y("delhi_modern_web_player_icons")?e.K.q0("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(L+") translate(-22,-12)")):L&&(c+=qWv(ccM,Ioc,L));e.pS.setAttribute("d",c)}; xFn=function(e,L){var c;L===1?c=e.V.Y("delhi_modern_web_player_icons")?{U:"svg",N:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{U:"path",N:{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"}}]}:Am():c=e.K;e.Gm=L;if(e.V.Y("delhi_modern_web_player_icons"))e.K.q0("ytp-svg-volume-animation-small-ripple").setAttribute("transform","translate(18, 12) scale("+(1-L+") translate(-18,-12)")),e.K.q0("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(e.J-L+") translate(-22, -12)"));else{for(var I=20*L,B=0;B=3&&e.V.getPresentingPlayerType()!==2}; uuc=function(e){var L=HS(e.V.qx());return L?e.X?L.g$():L.r9():!1}; rcn=function(e){var L={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},c=e.playlist!=null&&e.playlist.g$();c=g.lf(e.V)&&(!e.X||c);var I=e.X&&g.Eq(e.V),B=uuc(e),x=e.X&&e.V.getPresentingPlayerType()===5,S=g.Zb(e.V,"Next","SHIFT+n"),h=g.Zb(e.V,"Previous","SHIFT+p");if(x)L.title="Start video";else if(e.Z)L.title="Replay";else if(c){var R=null;e.playlist&&(R=g.DP(e.playlist,e.X?L6T(e.playlist):cMR(e.playlist)));if(R){if(R.videoId){var u=e.playlist.listId; L.url=e.V.S().getVideoUrl(R.videoId,u?u.toString():void 0)}L.text=R.title;L.duration=R.lengthText?R.lengthText:R.lengthSeconds?g.Te(R.lengthSeconds):null;L.preview=R.j9("mqdefault.jpg")}e.X?(L.title=S,L["data-title-no-tooltip"]="Next",L["aria-keyshortcuts"]="SHIFT+n"):(L.title=h,L["data-title-no-tooltip"]="Previous",L["aria-keyshortcuts"]="SHIFT+p")}else if(I){if(h=(R=e.videoData)==null?void 0:g.zN(R))L.url=h.Pv(),L.text=h.title,L.duration=h.lengthText?h.lengthText:h.lengthSeconds?g.Te(h.lengthSeconds): null,L.preview=h.j9("mqdefault.jpg");L.title=S;L["data-title-no-tooltip"]="Next";L["aria-keyshortcuts"]="SHIFT+n"}L.disabled=!I&&!c&&!B&&!x;e.update(L);e.T=!!L.url;I||c||e.Z||B||x?e.K||(e.K=g.mC(e.tooltip,e.element),e.j=e.listen("click",e.onClick,e)):e.K&&(e.K(),e.K=null,e.j6(e.j),e.j=null);e.tooltip.A9();g.cY(e.element,"ytp-playlist-ui",e.X&&(c||e.V.Y("web_hide_next_button")))}; Sc6=function(e,L){return e?L?{U:"svg",N:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{U:"path",N:{d:"M20 20C20.26 20 20.51 19.89 20.70 19.70C20.89 19.51 21 19.26 21 19V5C21 4.73 20.89 4.48 20.70 4.29C20.51 4.10 20.26 4 20 4C19.73 4 19.48 4.10 19.29 4.29C19.10 4.48 19 4.73 19 5V19C19 19.26 19.10 19.51 19.29 19.70C19.48 19.89 19.73 20 20 20ZM5.04 19.77L18 12L5.04 4.22C4.84 4.10 4.60 4.03 4.36 4.03C4.12 4.03 3.89 4.09 3.68 4.21C3.47 4.32 3.30 4.49 3.18 4.70C3.06 4.91 2.99 5.14 3 5.38V18.61C2.99 18.85 3.06 19.08 3.18 19.29C3.30 19.50 3.47 19.67 3.68 19.79C3.89 19.90 4.12 19.96 4.36 19.96C4.60 19.96 4.84 19.89 5.04 19.77Z", fill:"white"}}]}:qw():L?{U:"svg",N:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{U:"path",N:{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"}}]}:J7M()}; O7R=function(e,L){g.U.call(this,{U:"div",W:"ytp-fine-scrubbing",L:[{U:"div",W:"ytp-fine-scrubbing-draggable",L:[{U:"div",W:"ytp-fine-scrubbing-thumbnails",N:{tabindex:"0",role:"slider",type:"range","aria-label":"Click or scroll the panel for the precise seeking.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{U:"div",N:{"aria-hidden":"true"},W:"ytp-fine-scrubbing-cursor"},{U:"div",W:"ytp-fine-scrubbing-seek-time",N:{"aria-hidden":"true"}, aq:"{{seekTime}}"},{U:"div",W:"ytp-fine-scrubbing-play",L:[e.Y("delhi_modern_web_player_icons")?z1():Mw()],N:{title:"Play from this position",role:"button"}},{U:"div",W:"ytp-fine-scrubbing-dismiss",L:[g.uX()],N:{title:"Exit precise seeking",role:"button"}}]});var c=this;this.api=e;this.j=this.q0("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.q0("ytp-fine-scrubbing-dismiss");this.Gm=this.q0("ytp-fine-scrubbing-draggable");this.playButton=this.q0("ytp-fine-scrubbing-play");this.thumbnails= [];this.K=[];this.Y9=this.X=0;this.ye=void 0;this.pS=NaN;this.t7=this.D=this.Z=this.J=0;this.G=[];this.interval=this.frameCount=0;this.T=160;this.scale=1;this.Pe=0;this.isEnabled=this.Ve=!1;tKT(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.mC(L,this.dismissButton));this.addOnDisposeCallback(g.mC(L,this.playButton));this.k9=new g.dB(this.Gm,!0);this.k9.subscribe("dragstart",this.Yd,this);this.k9.subscribe("dragmove",this.RM,this);this.k9.subscribe("dragend",this.V3,this);this.C(e,"SEEK_COMPLETE", this.jO);e.Y("web_fix_fine_scrubbing_false_play")&&this.C(e,"rootnodemousedown",function(I){c.h7=I}); this.j.addEventListener("keydown",function(){}); g.l(this,this.k9);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.j,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; tKT=function(e,L){var c=g.Te(L),I=g.nC("Seek to $PROGRESS",{PROGRESS:g.Te(L,!0)});e.update({ariamin:0,ariamax:Math.floor(e.api.getDuration()),arianow:Math.floor(L),arianowtext:I,seekTime:c})}; qcv=function(e){e.pS=NaN;e.D=0;e.J=e.Z}; MKr=function(e){var L=e.api.UU();if(L){var c=90*e.scale,I=cN(L,160*e.scale);if(L=L.levels[I]){e.T=L.width;if(!e.G.length){I=[];for(var B=II(L,L.n$()),x=L.columns*L.rows,S=L.frameCount,h=0;h<=B;h++)for(var R=Se.G.length;)I= void 0,(I=e.thumbnails.pop())==null||I.dispose();for(;e.thumbnails.lengthc.length;)I=void 0,(I=e.K.pop())==null||I.dispose(); for(;e.K.length-c?-L/c*e.interval*.5:-(L+c/2)/c*e.interval}; z36=function(e){return-((e.j.offsetWidth||(e.frameCount-1)*e.T*e.scale)-e.X/2)}; Tvn=function(){g.U.call(this,{U:"div",W:"ytp-fine-scrubbing-thumbnail"})}; Wtc=function(){g.U.call(this,{U:"div",W:"ytp-fine-scrubbing-chapter-title",L:[{U:"div",W:"ytp-fine-scrubbing-chapter-title-content",aq:"{{chapterTitle}}"}]})}; vIc=function(e){g.U.call(this,{U:"div",W:"ytp-heat-map-chapter",L:[{U:"svg",W:"ytp-heat-map-svg",N:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},L:[{U:"defs",L:[{U:"clipPath",N:{id:"{{id}}"},L:[{U:"path",W:"ytp-heat-map-path",N:{d:"",fill:"white"}}]},{U:"linearGradient",N:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},L:[{U:"stop",N:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{U:"stop",N:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{U:"rect",W:"ytp-heat-map-graph",N:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{U:"rect",W:"ytp-heat-map-hover",N:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{U:"rect",W:"ytp-heat-map-play",N:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{U:"path",W:"ytp-modern-heat-map",N:{d:"",fill:"url(#ytp-heat-map-gradient-def)",height:"100%", stroke:"white","stroke-opacity":"0.7","stroke-width":"2px",style:"display: none;",width:"100%",x:"0",y:"0"}}]}]});this.api=e;this.J=this.q0("ytp-heat-map-svg");this.j=this.q0("ytp-heat-map-path");this.G=this.q0("ytp-heat-map-graph");this.T=this.q0("ytp-heat-map-play");this.X=this.q0("ytp-heat-map-hover");this.Z=this.q0("ytp-modern-heat-map");this.Hd=!1;this.K=60;e=""+g.hw(this);this.update({id:e});e="url(#"+e+")";this.G.setAttribute("clip-path",e);this.T.setAttribute("clip-path",e);this.X.setAttribute("clip-path", e)}; foJ=function(e,L){L>0&&(e.K=L,e.J.style.height=e.K+"px")}; ng=function(){g.U.call(this,{U:"div",W:"ytp-chapter-hover-container",L:[{U:"div",W:"ytp-progress-bar-padding"},{U:"div",W:"ytp-progress-list",L:[{U:"div",Rq:["ytp-play-progress","ytp-swatch-background-color"]},{U:"div",W:"ytp-progress-linear-live-buffer"},{U:"div",W:"ytp-load-progress"},{U:"div",W:"ytp-hover-progress"},{U:"div",W:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.K=this.q0("ytp-progress-list");this.j=this.q0("ytp-progress-linear-live-buffer"); this.G=this.q0("ytp-ad-progress-list");this.T=this.q0("ytp-load-progress");this.J=this.q0("ytp-play-progress");this.Z=this.q0("ytp-hover-progress");this.X=this.q0("ytp-chapter-hover-container")}; eY=function(e,L){g.l3(e.X,"width",L)}; AcM=function(e,L){g.l3(e.X,"margin-right",L+"px")}; Ftx=function(){this.K=this.position=this.Z=this.X=this.G=this.width=NaN}; b7M=function(){g.U.call(this,{U:"div",W:"ytp-timed-marker"});this.X=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.ce=function(e,L){g.I9.call(this,{U:"div",W:"ytp-progress-bar-container",N:{"aria-disabled":"true"},L:[{U:"div",Rq:["ytp-heat-map-container"],L:[{U:"div",W:"ytp-heat-map-edu"}]},{U:"div",Rq:["ytp-progress-bar"],N:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},L:[{U:"div",W:"ytp-chapters-container"},{U:"div",W:"ytp-timed-markers-container"},{U:"div",W:"ytp-clip-start-exclude"}, {U:"div",W:"ytp-clip-end-exclude"},{U:"div",W:"ytp-scrubber-container",L:[{U:"div",Rq:["ytp-scrubber-button","ytp-swatch-background-color"],L:[{U:"div",W:"ytp-scrubber-pull-indicator"},{U:"img",Rq:["ytp-decorated-scrubber-button"]}]}]}]},{U:"div",Rq:["ytp-fine-scrubbing-container"],L:[{U:"div",W:"ytp-fine-scrubbing-edu"}]},{U:"div",W:"ytp-bound-time-left",aq:"{{boundTimeLeft}}"},{U:"div",W:"ytp-bound-time-right",aq:"{{boundTimeRight}}"},{U:"div",W:"ytp-clip-start",N:{title:"{{clipstarttitle}}"},aq:"{{clipstarticon}}"}, {U:"div",W:"ytp-clip-end",N:{title:"{{clipendtitle}}"},aq:"{{clipendicon}}"}]});this.api=e;this.tj=!1;this.Cj=this.BU=this.d_=this.j=this.kN=0;this.Nl=null;this.PM=!1;this.Pe={};this.xT={};this.clipEnd=Infinity;this.Cf=this.q0("ytp-clip-end");this.f9=new g.dB(this.Cf,!0);this.m1=this.q0("ytp-clip-end-exclude");this.XD=this.q0("ytp-clip-start-exclude");this.clipStart=0;this.Q5=this.q0("ytp-clip-start");this.IU=new g.dB(this.Q5,!0);this.pS=this.sY=0;this.progressBar=this.q0("ytp-progress-bar");this.RT= {};this.He={};this.Sl=this.q0("ytp-chapters-container");this.Kp=this.q0("ytp-timed-markers-container");this.X=[];this.T=[];this.Ft={};this.Fk=null;this.Ve=-1;this.Kf=this.ye=0;this.Yf=this.J=null;this.OF=this.q0("ytp-scrubber-button");this.Gm=this.q0("ytp-decorated-scrubber-button");this.FR=this.q0("ytp-scrubber-container");this.DY=new g.Pa;this.g0=0;this.J9=new Ftx;this.Z=new i1(0,0);this.By=null;this.D=this.sK=!1;this.aF=null;this.h7=this.q0("ytp-heat-map-container");this.pj=this.q0("ytp-heat-map-edu"); this.G=[];this.heatMarkersDecorations=[];this.x9=this.q0("ytp-fine-scrubbing-container");this.FD=this.q0("ytp-fine-scrubbing-edu");this.K=void 0;this.Y9=this.Mv=this.t7=!1;this.tooltip=L.Aq();this.addOnDisposeCallback(g.mC(this.tooltip,this.Cf));g.l(this,this.f9);this.f9.subscribe("hoverstart",this.D1,this);this.f9.subscribe("hoverend",this.rG,this);this.C(this.Cf,"click",this.wh);this.addOnDisposeCallback(g.mC(this.tooltip,this.Q5));g.l(this,this.IU);this.IU.subscribe("hoverstart",this.D1,this); this.IU.subscribe("hoverend",this.rG,this);this.C(this.Q5,"click",this.wh);i7H(this);this.C(e,"resize",this.Nx);this.C(e,"presentingplayerstatechange",this.jY);this.C(e,"videodatachange",this.OC);this.C(e,"videoplayerreset",this.VU);this.C(e,"cuerangesadded",this.Jj9);this.C(e,"cuerangesremoved",this.DU7);this.C(e,"onLoopRangeChange",this.VQ);this.C(e,"innertubeCommand",this.onClickCommand);this.C(e,"onRetroModeChanged",this.cwe);this.C(e,g.jh("timedMarkerCueRange"),this.xw9);this.C(e,"updatemarkervisibility", this.Vj);this.C(e,"serverstitchedvideochange",this.Ajw);this.updateVideoData(e.getVideoData(),!0);this.VQ(e.getLoopRange());L_(this)&&!this.K&&(this.K=new O7R(this.api,this.tooltip),e=g.Yr(this.element).x||0,this.K.Nx(e,this.j),this.K.jl(this.x9),g.l(this,this.K),this.C(this.K.dismissButton,"click",this.Rk),this.C(this.K.playButton,"click",this.pQ),this.C(this.K.element,"dblclick",this.pQ));this.api.createClientVe(this.h7,this,139609,!0);this.api.createClientVe(this.pj,this,140127,!0);this.api.createClientVe(this.FD, this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)}; i7H=function(e){if(e.X.length===0){var L=new ng;e.X.push(L);g.l(e,L);L.jl(e.Sl,0)}for(;e.X.length>1;)e.X.pop().dispose();eY(e.X[0],"100%");e.X[0].startTime=0;e.X[0].title=""}; GDc=function(e){var L=L===void 0?NaN:L;var c=new vIc(e.api);e.G.push(c);g.l(e,c);c.jl(e.h7);L>=0&&(c.element.style.width=L+"px")}; gIn=function(e){for(;e.T.length;)e.T.pop().dispose()}; DFn=function(e){var L,c,I,B,x;return(x=g.Q((B=g.Q((L=e.getWatchNextResponse())==null?void 0:(c=L.playerOverlays)==null?void 0:(I=c.playerOverlayRenderer)==null?void 0:I.decoratedPlayerBarRenderer,Qm))==null?void 0:B.playerBar,kDM))==null?void 0:x.chapters}; w_T=function(e){for(var L=e.X,c=[],I=0;I=S&&A<=t&&x.push(q)}R>0&&(e.h7.style.height=R+"px");S=e.G[I];t=x;q=B;W=R;A=I===0;A=A===void 0?!1:A;foJ(S,W);O=t;T=S.K;A=A===void 0?!1:A;var b=1E3/O.length,J=[];J.push({x:0,y:100});for(var w=0;w0&&(c=x[x.length-1])}g.IU(e);h=[];L=g.f(L.heatMarkersDecorations||[]);for(B=L.next();!B.done;B=L.next())if(B=g.Q(B.value,ycn))R=B.label,I=c=u=void 0,h.push({visibleTimeRangeStartMillis:(u=B.visibleTimeRangeStartMillis)!=null?u:-1,visibleTimeRangeEndMillis:(c=B.visibleTimeRangeEndMillis)!=null?c:-1,decorationTimeMillis:(I=B.decorationTimeMillis)!=null?I:NaN,label:R?g.o9(R):""});e.heatMarkersDecorations=h}}; CRJ=function(e,L){e.T.push(L);g.l(e,L);L.jl(e.Kp,e.Kp.children.length)}; aov=function(e,L){L=g.f(L);for(var c=L.next();!c.done;c=L.next()){c=c.value;var I=Be(e,c.timeRangeStartMillis/(e.Z.X*1E3),xX(e)),B=e.api.Y("delhi_modern_web_player")?.667:.6;g.l3(c.element,"transform","translateX("+I+"px) scaleX("+B+")")}}; Jcc=function(e,L){var c=0,I=!1;L=g.f(L);for(var B=L.next();!B.done;B=L.next()){B=B.value;if(g.Q(B,p_c)){B=g.Q(B,p_c);var x={startTime:NaN,title:null,onActiveCommand:void 0},S=B.title;x.title=S?g.o9(S):"";S=B.timeRangeStartMillis;S!=null&&(x.startTime=S);x.onActiveCommand=B.onActiveCommand;B=x;c===0&&B.startTime!==0&&(e.X[c].startTime=0,e.X[c].title="",e.X[c].onActiveCommand=B.onActiveCommand,c++,I=!0);e.X.length<=c&&(x=new ng,e.X.push(x),g.l(e,x),x.jl(e.Sl,e.Sl.children.length));e.X[c].startTime= B.startTime;e.X[c].title=B.title?B.title:"";e.X[c].onActiveCommand=B.onActiveCommand;e.X[c].index=I?c-1:c}c++}for(;c=0;I--)if(e.X[I].width>0){AcM(e.X[I],0);var B=Math.floor(e.X[I].width);e.X[I].width=B;eY(e.X[I],B+"px");break}e.X[c].width=0;eY(e.X[c],"0")}else c===e.X.length-1?(I=Math.floor(e.X[c].width+L),e.X[c].width=I,eY(e.X[c],I+"px")):(L=e.X[c].width+L,I=Math.round(L),L-=I,e.X[c].width=I,eY(e.X[c],I+"px"));c=0;if(e.G.length===e.X.length)for(L=0;L< e.G.length;L++)I=e.X[L].width,e.G[L].element.style.width=I+"px",e.G[L].element.style.left=c+"px",c+=I+SY(e);e.api.Y("delhi_modern_web_player")&&(e.X.length===1?e.X[0].K.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(e.X[0].K.classList.remove("ytp-progress-bar-end"),e.X[0].K.classList.add("ytp-progress-bar-start"),e.X[e.X.length-1].K.classList.add("ytp-progress-bar-end")))}; $Fn=function(e,L){var c=0,I=!1,B=e.X.length,x=e.Z.X*1E3;x===0&&(x=e.api.getProgressState().seekableEnd*1E3);if(x>0&&e.j>0){for(var S=e.j-SY(e)*e.ye,h=e.Kf===0?3:S*e.Kf,R=g.f(e.X),u=R.next();!u.done;u=R.next())u.value.width=0;for(;c1);u=(x===0?0:R/x*S)+e.X[c].width;if(u>h)e.X[c].width=u;else{e.X[c].width=0;var t=e,O=c,q=t.X[O-1];q!==void 0&&q.width>0? q.width+=u:Oe.Kf&&(e.Kf=R/x),I=!0)}c++}}return I}; oU=function(e){if(e.j){var L=e.api.getProgressState(),c=e.api.getVideoData();if(!(c&&c.enableServerStitchedDai&&c.Tf)||isFinite(L.current)){var I;if(((I=e.api.getVideoData())==null?0:qU(I))&&L.airingStart&&L.airingEnd)var B=rZ(e,L.airingStart,L.airingEnd);else if(e.api.getPresentingPlayerType()===2){var x,S,h;B=(c=(B=e.api.getVideoData())==null?void 0:(x=B.getPlayerResponse())==null?void 0:(S=x.playerConfig)==null?void 0:(h=S.webPlayerConfig)==null?void 0:h.skippableAdProgressBarDuration)?rZ(e,L.seekableStart, c/1E3):rZ(e,L.seekableStart,L.seekableEnd)}else B=rZ(e,L.seekableStart,L.seekableEnd);x=Ge(B,L.loaded,0);L=Ge(B,L.current,0);S=e.Z.K!==B.K||e.Z.X!==B.X;e.Z=B;h4(e,L,x);S&&jPH(e);H7r(e)}}}; rZ=function(e,L,c){return lor(e)?new i1(Math.max(L,e.By.startTimeMs/1E3),Math.min(c,e.By.endTimeMs/1E3)):new i1(L,c)}; QPf=function(e,L){var c,I,B;L=g.Q((c=L.getWatchNextResponse())==null?void 0:(I=c.playerOverlays)==null?void 0:(B=I.playerOverlayRenderer)==null?void 0:B.decoratedPlayerBarRenderer,Qm);if(L==null?0:L.progressColor)for(c=0;c1){c=RU(e,L.Z,!0);for(var I=0,B=0;B0&&(I+=e.X[B].width,I+=SY(e));c=(e.X[c].startTime+(L.Z-I)/e.X[c].width*((c===e.X.length-1?e.Z.X*1E3:e.X[c+1].startTime)-e.X[c].startTime))/1E3||0}return c}; t4=function(e,L,c,I,B){L=L<0?0:Math.floor(Math.min(L,e.api.getDuration())*1E3);c=c<0?0:Math.floor(Math.min(c,e.api.getDuration())*1E3);e=e.progressBar.visualElement;I={seekData:{startMediaTimeMs:L,endMediaTimeMs:c,seekSource:I}};(L=g.qy())&&g.Hu($g)(void 0,L,e,B,I,void 0)}; UFx=function(e,L,c){if(c>=e.X.length)return!1;var I=e.j-SY(e)*e.ye;return Math.abs(L-e.X[c].startTime/1E3)/e.Z.X*I<4}; jPH=function(e){e.OF.style.removeProperty("height");for(var L=g.f(Object.keys(e.Pe)),c=L.next();!c.done;c=L.next())EI$(e,c.value);OW(e);h4(e,e.pS,e.sY)}; xX=function(e){var L=e.DY.x;L=g.j5(L,0,e.j);e.J9.update(L,e.j);return e.J9}; TX=function(e){return(e.D?135:90)-qG(e)}; qG=function(e){var L=48,c=e.api.S();e.api.Y("delhi_modern_web_player")?L=e.api.getPlayerSize().width<=528?64:e.D?96:72:e.D?L=54:g.Uh(c)&&!c.K&&(L=40);return L}; h4=function(e,L,c){e.pS=L;e.sY=c;var I=xX(e),B=e.Z.X,x=u9v(e.Z,e.pS),S=g.nC("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.Te(x,!0),DURATION:g.Te(B,!0)}),h=vP(e.X,x*1E3);h=e.X[h].title;e.update({ariamin:Math.floor(e.Z.K),ariamax:Math.floor(B),arianow:Math.floor(x),arianowtext:h?h+" "+S:S});B=e.clipStart;x=e.clipEnd;e.By&&e.api.getPresentingPlayerType()!==2&&(B=e.By.startTimeMs/1E3,x=e.By.endTimeMs/1E3);B=Ge(e.Z,B,0);h=Ge(e.Z,x,1);S=e.api.getVideoData();x=g.j5(L,B,h);c=(S==null?0:g.uf(S))?1:g.j5(c, B,h);L=Be(e,L,I);g.l3(e.FR,"transform","translateX("+L+"px)");e.api.Y("delhi_modern_web_player")&&e.api.Y("delhi_modern_web_player_cutout")&&X_f(e,L);We(e,I,B,x,"PLAY_PROGRESS");(S==null?0:qU(S))?(L=e.api.getProgressState().seekableEnd)&&We(e,I,x,Ge(e.Z,L),"LIVE_BUFFER"):We(e,I,B,c,"LOAD_PROGRESS");if(e.api.Y("web_player_heat_map_played_bar")){var R;(R=e.G[0])!=null&&R.T.setAttribute("width",(x*100).toFixed(2)+"%")}}; X_f=function(e,L){e.api.getPresentingPlayerType()!==1?e.Sl.style.removeProperty("clip-path"):(L||(L=Be(e,e.pS,xX(e))),e.Sl.style.clipPath='path("'+(e.PM?Ktn(e,8,L,e.D?50:36,0,6):Ktn(e,4,L,e.D?34:24,2,3))+'")')}; Ktn=function(e,L,c,I,B,x){var S=c-I/2;c+=I/2;L+=B;return"M 0 "+B+" L 0 "+(L+" L ")+(S+" "+L+" C ")+(S+x+" "+L+" "+(S+x)+" "+B+" "+S+" "+B+" L 0 ")+(B+" M ")+(c+" "+B+" L ")+(e.j+" "+B+" L ")+(e.j+" "+L+" L ")+(c+" "+L+" C ")+(c-x+" "+L+" "+(c-x)+" "+B+" "+c+" "+B)}; We=function(e,L,c,I,B){var x=e.X.length,S=L.X-e.ye*SY(e),h=c*S;c=RU(e,h);var R=I*S;S=RU(e,R);B==="HOVER_PROGRESS"&&(S=RU(e,L.X*I,!0),R=L.X*I-YcR(e,L.X*I)*SY(e));I=Math.max(h-nIv(e,c),0);for(h=c;h=e.X.length)return e.j;for(var c=0,I=0;I0||e.m1.clientWidth>0?(x=L.clientWidth/c,e=-1*e.XD.clientWidth/c):(x/=c,e=-1*e.X[B].element.offsetLeft/c),g.l3(L,"background-size",x+"px"),g.l3(L,"background-position-x",e+"px"))}; MG=function(e,L,c,I,B){B||e.api.S().K?L.style.width=c+"px":g.l3(L,"transform","scalex("+(I?c/I:0)+")")}; RU=function(e,L,c){var I=0;(c===void 0?0:c)&&(L-=YcR(e,L)*SY(e));c=g.f(e.X);for(var B=c.next();!B.done;B=c.next()){B=B.value;if(L>B.width)L-=B.width;else break;I++}return I===e.X.length?I-1:I}; Be=function(e,L,c){var I=L*e.Z.X*1E3;for(var B=-1,x=g.f(e.X),S=x.next();!S.done;S=x.next())S=S.value,I>S.startTime&&S.width>0&&B++;I=B<0?0:B;B=c.X-SY(e)*e.ye;return L*B+SY(e)*I+c.G}; YcR=function(e,L){for(var c=e.X.length,I=0,B=g.f(e.X),x=B.next();!x.done;x=B.next())if(x=x.value,x.width!==0)if(L>x.width)L-=x.width,L-=SY(e),I++;else break;return I===c?c-1:I}; g.cVc=function(e,L,c,I){var B=e.j!==c,x=e.D!==I;e.kN=L;e.j=c;e.D=I;L_(e)&&(L=e.K)!=null&&(L.scale=I?1.5:1);jPH(e);e.X.length===1&&(e.X[0].width=c||0);B&&g.IU(e);e.K&&x&&L_(e)&&(e.K.isEnabled&&(c=e.D?135:90,I=c-qG(e),e.x9.style.height=c+"px",g.l3(e.h7,"transform","translateY("+-I+"px)"),g.l3(e.progressBar,"transform","translateY("+-I+"px)")),MKr(e.K))}; OW=function(e){var L=!!e.By&&e.api.getPresentingPlayerType()!==2,c=e.clipStart,I=e.clipEnd,B=!0,x=!0;L&&e.By?(c=e.By.startTimeMs/1E3,I=e.By.endTimeMs/1E3):(B=c>e.Z.K,x=e.Z.X>0&&Ie.pS);g.cY(e.OF,"ytp-scrubber-button-hover",c===I&&e.X.length>1);if(e.api.Y("web_player_heat_map_played_bar")){var x;(x=e.G[0])!=null&&x.X.setAttribute("width",(L.K*100).toFixed(2)+"%")}}}; EI$=function(e,L){var c=e.Pe[L];L=e.xT[L];var I=xX(e),B=Ge(e.Z,c.start/1E3,0),x=F1$(c,e.D)/I.width;var S=Ge(e.Z,c.end/1E3,1);x!==Number.POSITIVE_INFINITY&&(B=g.j5(B,0,S-x));S=Math.min(S,B+x);c.color&&(L.style.background=c.color);c=B;L.style.left=Math.max(c*I.X+I.G,0)+"px";MG(e,L,g.j5((S-c)*I.X+I.G,0,I.width),I.width,!0)}; ImM=function(e,L){var c=L.getId();e.Pe[c]===L&&(g.s_(e.xT[c]),delete e.Pe[c],delete e.xT[c])}; L_=function(e){var L=g.T3(e.api.S())&&(e.api.Y("web_shorts_pip")||e.api.Y("web_watch_pip")),c;return!((c=e.api.getVideoData())==null?0:c.isLivePlayback)&&!e.api.isMinimized()&&!e.api.isInline()&&(!e.api.iE()||!L)}; zX=function(e){e.K&&(e.K.disable(),e.d_=0,e.h7.style.removeProperty("transform"),e.progressBar.style.removeProperty("transform"),e.x9.style.removeProperty("height"),e.element.parentElement&&e.element.parentElement.style.removeProperty("height"))}; BAv=function(e,L){var c=L/TX(e)*qG(e);g.l3(e.progressBar,"transform","translateY("+-L+"px)");g.l3(e.h7,"transform","translateY("+-L+"px)");g.l3(e.x9,"transform","translateY("+c+"px)");e.x9.style.height=L+c+"px";e.element.parentElement&&(e.element.parentElement.style.height=qG(e)-c+"px")}; xsx=function(e,L){L?e.J||(e.element.removeAttribute("aria-disabled"),e.J=new g.dB(e.progressBar,!0),e.api.Y("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&e.J.subscribe("hoverstart",e.zTe,e),e.J.subscribe("hovermove",e.hT$,e),e.J.subscribe("hoverend",e.pwq,e),e.J.subscribe("dragstart",e.Xwl,e),e.J.subscribe("dragmove",e.apd,e),e.J.subscribe("dragend",e.sIw,e),e.api&&e.api.Y("delhi_modern_web_player")&&e.api.Y("delhi_modern_web_player_cutout")&&(e.Yf=new g.dB(e.progressBar, !0),e.Yf.subscribe("hoverstart",function(){e.PM=!0;X_f(e)},e),e.Yf.subscribe("hoverend",function(){e.PM=!1; X_f(e)},e)),e.aF=e.listen("keydown",e.B$)):e.J&&(e.element.setAttribute("aria-disabled","true"),e.j6(e.aF),e.J.cancel(),e.J.dispose(),e.J=null)}; SY=function(e){return e.api.Y("delhi_modern_web_player")?4:e.D?3:2}; lor=function(e){var L;return!((L=e.By)==null||!L.postId)&&e.api.getPresentingPlayerType()!==2}; sW=function(e,L){g.U.call(this,{U:"button",Rq:["ytp-remote-button","ytp-button"],N:{title:"Play on TV","aria-haspopup":"true","data-priority":"10"},aq:"{{icon}}"});this.V=e;this.G_=L;this.X=null;this.C(e,"onMdxReceiversChange",this.OW);this.C(e,"presentingplayerstatechange",this.OW);this.C(e,"appresize",this.OW);e.createClientVe(this.element,this,139118);this.OW();this.listen("click",this.K,this);y4(e,this.element,this)}; ve=function(e,L){g.U.call(this,{U:"button",Rq:["ytp-button","ytp-settings-button"],N:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":nE(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},L:[e.Y("delhi_modern_web_player_icons")?{U:"svg",N:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{U:"path",N:{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.v7()]});this.V=e;this.G_=L;this.K=!0;this.listen("click",this.Z);this.C(e,"onPlaybackQualityChange",this.updateBadge);this.C(e,"videodatachange",this.updateBadge);this.C(e,"webglsettingschanged",this.updateBadge);this.C(e,"appresize",this.X);y4(e,this.element,this);this.V.createClientVe(this.element,this,28663);this.updateBadge();this.X(e.LS().getPlayerSize())}; opv=function(e,L){e.K=!!L;e.X(e.V.LS().getPlayerSize())}; f_=function(e,L){Mo.call(this,"Annotations",g.b_.Hf);this.V=e;this.G_=L;this.X=!1;e.Y("web_settings_menu_icons")&&(L=e.Y("delhi_modern_web_player_icons")?{U:"svg",N:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{U:"path",N:{d:"M9.65 6.00L9.5 6H2.5L2.34 6.00C1.97 6.04 1.63 6.21 1.38 6.49C1.13 6.77 1.00 7.12 1 7.5V13.5L1.00 13.65C1.04 14.02 1.21 14.36 1.49 14.61C1.77 14.86 2.12 15 2.5 15H4.5L3.81 17.75C3.77 17.89 3.77 18.03 3.79 18.17C3.82 18.31 3.87 18.45 3.95 18.56C4.03 18.68 4.14 18.78 4.26 18.85C4.38 18.92 4.51 18.97 4.66 18.99L4.78 19H8.55L8.72 18.98C8.88 18.95 9.04 18.89 9.17 18.79C9.30 18.68 9.40 18.55 9.47 18.40L9.52 18.24L10.62 13.96C10.84 13.11 10.96 12.24 10.99 11.36L11 10.98V7.5C11 7.12 10.86 6.77 10.61 6.49C10.36 6.21 10.02 6.04 9.65 6.00ZM21.65 6.00L21.5 6H14.5L14.34 6.00C13.97 6.04 13.63 6.21 13.38 6.49C13.13 6.77 13 7.12 13 7.5V13.5L13.00 13.65C13.04 14.02 13.21 14.36 13.49 14.61C13.77 14.86 14.12 15 14.5 15H16.5L15.81 17.75C15.77 17.89 15.77 18.03 15.79 18.17C15.82 18.31 15.87 18.44 15.95 18.56C16.03 18.68 16.14 18.78 16.26 18.85C16.38 18.92 16.51 18.97 16.66 18.99L16.78 19H20.55L20.72 18.98C20.88 18.95 21.04 18.89 21.17 18.79C21.30 18.68 21.40 18.55 21.47 18.40L21.52 18.24L22.62 13.96C22.84 13.11 22.96 12.24 22.99 11.36L23 10.98V7.5C23 7.12 22.86 6.77 22.61 6.49C22.36 6.21 22.02 6.04 21.65 6.00ZM3 13V8H9V10.98C9.00 11.71 8.91 12.44 8.76 13.16L8.68 13.47L7.78 17H6.06L6.44 15.48L7.06 13H3ZM15 13V8H21V10.98C21 11.71 20.91 12.44 20.76 13.16L20.68 13.47L19.78 17H18.06L18.44 15.48L19.06 13H15Z", fill:"white"}}]}:{U:"svg",N:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{U:"path",N:{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(L));this.C(e,"videodatachange",this.OW);this.C(e,"onApiChange",this.OW);this.subscribe("select",this.onSelect,this);this.OW()}; A4=function(e,L){g.lQ.call(this,"Audio track",g.b_.AUDIO,e,L);this.V=e;this.tracks={};g.Y4(this.element,"ytp-audio-menu-item");this.countLabel=new g.U({U:"div",L:[{U:"span",aq:"Audio track"},{U:"span",W:"ytp-menuitem-label-count",aq:"{{content}}"}]});e.Y("web_settings_menu_icons")&&(L=e.Y("delhi_modern_web_player_icons")?{U:"svg",N:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{U:"path",N:{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"}}]}:g5x(),this.setIcon(L));g.l(this,this.countLabel);g.xq(this,this.countLabel);this.C(e,"videodatachange",this.OW);this.C(e,"onPlaybackAudioChange",this.OW);this.OW()}; FR=function(e,L){Mo.call(this,"Autoplay",g.b_.ih);this.V=e;this.G_=L;this.X=!1;this.Z=[];this.C(e,"presentingplayerstatechange",this.K);this.subscribe("select",this.onSelect,this);e.createClientVe(this.element,this,113682);this.K()}; SCv=function(e,L){g.ov.call(this,g.SS({"aria-haspopup":"false"}),0,"More options");this.V=e;this.G_=L;this.C(this.element,"click",this.onClick);this.G_.Yx(this)}; rV$=function(e,L){var c;g.T3(e.S())&&(c={U:"div",W:"ytp-panel-footer-content",L:[{U:"span",aq:"Adjust download quality from your "},{U:"a",W:"ytp-panel-footer-content-link",aq:"Settings",N:{href:"/account_downloads"}}]});g.lQ.call(this,"Quality",g.b_.H$,e,L,void 0,void 0,c);this.V=e;this.Gm={};this.D={};this.G={};this.k9=new Set;this.X=this.j=!1;this.T="unknown";this.pS="";this.h7=new g.af;g.l(this,this.h7);this.j=this.V.Y("web_player_use_new_api_for_quality_pullback");this.X=this.V.Y("web_player_enable_premium_hbr_playback_cap"); e.Y("web_settings_menu_icons")&&(L=e.Y("delhi_modern_web_player_icons")?{U:"svg",N:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{U:"path",N:{d:"M9 3C8.11 2.99 7.25 3.29 6.54 3.83C5.84 4.38 5.34 5.14 5.12 6H3C2.73 6 2.48 6.10 2.29 6.29C2.10 6.48 2 6.73 2 7C2 7.26 2.10 7.51 2.29 7.70C2.48 7.89 2.73 8 3 8H5.12C5.34 8.85 5.84 9.61 6.55 10.16C7.25 10.70 8.11 10.99 9 10.99C9.88 10.99 10.74 10.70 11.44 10.16C12.15 9.61 12.65 8.85 12.87 8H21C21.26 8 21.51 7.89 21.70 7.70C21.89 7.51 22 7.26 22 7C22 6.73 21.89 6.48 21.70 6.29C21.51 6.10 21.26 6 21 6H12.87C12.65 5.14 12.15 4.38 11.45 3.83C10.74 3.29 9.88 2.99 9 3ZM9 5C9.53 5 10.03 5.21 10.41 5.58C10.78 5.96 11 6.46 11 7C11 7.53 10.78 8.03 10.41 8.41C10.03 8.78 9.53 9 9 9C8.46 9 7.96 8.78 7.58 8.41C7.21 8.03 7 7.53 7 7C7 6.46 7.21 5.96 7.58 5.58C7.96 5.21 8.46 5 9 5ZM15 13C14.11 12.99 13.25 13.29 12.54 13.83C11.84 14.38 11.34 15.14 11.12 16H3C2.73 16 2.48 16.10 2.29 16.29C2.10 16.48 2 16.73 2 17C2 17.26 2.10 17.51 2.29 17.70C2.48 17.89 2.73 18 3 18H11.12C11.34 18.85 11.84 19.61 12.55 20.16C13.25 20.70 14.11 20.99 15 20.99C15.88 20.99 16.74 20.70 17.44 20.16C18.15 19.61 18.65 18.85 18.87 18H21C21.26 18 21.51 17.89 21.70 17.70C21.89 17.51 22 17.26 22 17C22 16.73 21.89 16.48 21.70 16.29C21.51 16.10 21.26 16 21 16H18.87C18.65 15.14 18.15 14.38 17.45 13.83C16.74 13.29 15.88 12.99 15 13ZM15 15C15.53 15 16.03 15.21 16.41 15.58C16.78 15.96 17 16.46 17 17C17 17.53 16.78 18.03 16.41 18.41C16.03 18.78 15.53 19 15 19C14.46 19 13.96 18.78 13.58 18.41C13.21 18.03 13 17.53 13 17C13 16.46 13.21 15.96 13.58 15.58C13.96 15.21 14.46 15 15 15Z", fill:"white"}}]}:{U:"svg",N:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{U:"path",N:{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(L));g.Y4(this.K.element,"ytp-quality-menu");this.C(e,"videodatachange",this.df);this.C(e,"videoplayerreset",this.df);this.C(e,"onPlaybackQualityChange",this.kh);this.df();e.createClientVe(this.element,this,137721)}; R6n=function(e,L,c){var I=e.Gm[L],B=g.fn[L];return h6n(e,I?I.qualityLabel:B?B+"p":"Auto",L,c)}; uvT=function(e,L,c,I,B){var x=(L=e.X?e.G[L]:e.D[L])&&L.quality,S=L&&L.qualityLabel;S=S?S:"Auto";I&&(S="("+S);e=h6n(e,S,x||"",B);I&&e.L.push(")");(I=(I=L&&L.paygatedQualityDetails)&&I.paygatedIndicatorText)&&c&&e.L.push({U:"div",W:"ytp-premium-label",aq:I});return e}; h6n=function(e,L,c,I){L={U:"span",Rq:I,L:[L]};var B;I="ytp-swatch-color";if(e.j||e.X)I="ytp-swatch-color-white";c==="highres"?B="8K":c==="hd2880"?B="5K":c==="hd2160"?B="4K":c.indexOf("hd")===0&&c!=="hd720"&&(B="HD");B&&(L.L.push(" "),L.L.push({U:"sup",W:I,aq:B}));return L}; bU=function(e){PP.call(this,e.getAvailablePlaybackRates()[0],e.getAvailablePlaybackRates()[e.getAvailablePlaybackRates().length-1],.05,e.getPlaybackRate(),{U:"div",W:"ytp-speedslider-indicator-container",L:[{U:"div",W:"ytp-speedslider-badge"},{U:"p",W:"ytp-speedslider-text"}]});this.V=e;this.pS=Nl(this.Gm,50,this);g.Y4(this.K,"ytp-speedslider");this.D=this.q0("ytp-speedslider-text");this.h7=this.q0("ytp-speedslider-badge");tT$(this);this.C(this.K,"change",this.k9)}; tT$=function(e){e.D.textContent=e.X.toFixed(2)+"x";var L=e.X>2&&e.V.Y("enable_web_premium_varispeed");e.h7.classList.toggle("ytp-speedslider-premium-badge",L);e.h7.setAttribute("aria-label",L?"Premium":"")}; iU=function(e,L,c,I,B,x,S){g.U.call(this,{U:"div",W:"ytp-slider-section",N:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},L:[{U:"div",W:"ytp-slider",L:[{U:"div",W:"ytp-slider-handle"}]}]});this.J=e;this.D=L;this.K=c;this.Z=I;this.pS=B;this.Ve=x;this.range=this.Z-this.K;this.ye=this.q0("ytp-slider-section");this.G=this.q0("ytp-slider");this.h7=this.q0("ytp-slider-handle");this.T=new g.dB(this.G, !0);this.X=S?S:c;g.l(this,this.T);this.T.subscribe("dragmove",this.Y8,this);this.C(this.element,"keydown",this.uy);this.C(this.element,"wheel",this.RS);this.init()}; GX=function(e){iU.call(this,.05,.05,e.getAvailablePlaybackRates()[0],e.getAvailablePlaybackRates()[e.getAvailablePlaybackRates().length-1],150,20,e.getPlaybackRate());this.V=e;this.j=g.ql("P");this.k9=Nl(this.Gm,50,this);g.Y4(this.G,"ytp-speedslider");g.Y4(this.j,"ytp-speedslider-text");e=this.j;var L=this.G;L.parentNode&&L.parentNode.insertBefore(e,L.nextSibling);OjJ(this);this.C(this.V,"onPlaybackRateChange",this.updateValues)}; OjJ=function(e){e.j.textContent=qCc(e,e.X)+"x"}; qCc=function(e,L){e=Number(g.j5(L,e.K,e.Z).toFixed(2));L=Math.floor((e+.001)*100%5+2E-15);var c=e;L!==0&&(c=e-L*.01);return Number(c.toFixed(2))}; TAR=function(e){g.I9.call(this,{U:"div",W:"ytp-speedslider-component"});e.Y("web_settings_use_input_slider")?this.X=new bU(e):this.X=new GX(e);g.l(this,this.X);this.element.appendChild(this.X.element)}; WhM=function(e){var L=new TAR(e);VP.call(this,e,L,"Custom");g.l(this,L)}; MTn=function(e,L){var c=new WhM(e);g.lQ.call(this,"Playback speed",g.b_.SO,e,L,gZ(e)?void 0:"Custom",gZ(e)?void 0:function(){g.m4(L,c)}); var I=this;this.G=!1;g.l(this,c);this.T=new bU(e);g.l(this,this.T);if(e.Y("web_settings_menu_icons")){var B=e.Y("delhi_modern_web_player_icons")?{U:"svg",N:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{U:"path",N:{d:"M9.80 1.22C8.59 1.46 7.44 1.91 6.38 2.54L5.93 2.82L5.85 2.88C5.66 3.04 5.53 3.26 5.49 3.51C5.45 3.75 5.51 4.00 5.65 4.21C5.78 4.41 5.99 4.56 6.23 4.62C6.47 4.69 6.72 4.66 6.94 4.54L7.03 4.49L7.40 4.26C8.27 3.74 9.21 3.38 10.20 3.18C10.46 3.12 10.69 2.97 10.84 2.75C10.98 2.53 11.04 2.26 10.98 2.00C10.93 1.74 10.77 1.51 10.55 1.36C10.33 1.22 10.06 1.16 9.80 1.22M13.02 2.00C12.99 2.13 12.99 2.26 13.02 2.39C13.04 2.52 13.09 2.64 13.16 2.75C13.24 2.86 13.33 2.95 13.44 3.03C13.55 3.10 13.67 3.15 13.80 3.18L14.20 1.22C14.07 1.19 13.94 1.19 13.81 1.22C13.68 1.24 13.56 1.29 13.45 1.36C13.34 1.44 13.24 1.53 13.17 1.64C13.09 1.75 13.04 1.87 13.02 2.00ZM14.20 1.22L14.00 2.20L13.80 3.18C15.77 3.58 17.54 4.63 18.85 6.15C20.15 7.68 20.90 9.60 20.99 11.61L21.00 12.00C21.00 14.07 20.28 16.08 18.96 17.69C17.65 19.30 15.82 20.40 13.79 20.82L13.99 21.8L14.19 22.78C16.59 22.29 18.77 21.01 20.36 19.14C21.96 17.27 22.88 14.93 22.99 12.47L23.00 12.00C23.00 9.46 22.12 7.00 20.52 5.04C18.91 3.08 16.68 1.73 14.20 1.22ZM2.88 5.85L2.82 5.93L2.54 6.38C1.91 7.44 1.46 8.59 1.22 9.80C1.19 9.93 1.19 10.06 1.21 10.19C1.24 10.32 1.29 10.44 1.36 10.55C1.51 10.77 1.74 10.93 2 10.98C2.25 11.04 2.53 10.98 2.75 10.84C2.97 10.69 3.12 10.46 3.18 10.20C3.38 9.21 3.74 8.27 4.26 7.40L4.49 7.03L4.54 6.95C4.65 6.73 4.68 6.47 4.62 6.23C4.56 5.99 4.41 5.78 4.20 5.65C4.00 5.51 3.75 5.46 3.50 5.49C3.26 5.53 3.03 5.66 2.88 5.85ZM17 12.00L9 7.2V16.8L17 12.00ZM2 13.01C1.87 13.04 1.74 13.09 1.64 13.16C1.53 13.23 1.43 13.33 1.36 13.44C1.29 13.55 1.24 13.67 1.21 13.80C1.19 13.93 1.19 14.06 1.22 14.19C1.46 15.40 1.91 16.55 2.54 17.61L2.82 18.06L2.88 18.14C3.03 18.33 3.26 18.46 3.50 18.50C3.75 18.53 4.00 18.48 4.20 18.34C4.41 18.21 4.56 18.00 4.62 17.76C4.68 17.52 4.65 17.27 4.54 17.05L4.49 16.96L4.26 16.59C3.74 15.72 3.38 14.78 3.18 13.79C3.15 13.66 3.10 13.54 3.02 13.43C2.95 13.32 2.86 13.23 2.75 13.15C2.64 13.08 2.51 13.03 2.39 13.01C2.26 12.98 2.12 12.98 2 13.01ZM5.65 19.79C5.51 19.99 5.46 20.24 5.49 20.49C5.53 20.73 5.66 20.95 5.85 21.11L5.93 21.17L6.38 21.45C7.44 22.08 8.59 22.53 9.80 22.77C10.06 22.83 10.33 22.77 10.55 22.63C10.77 22.48 10.93 22.25 10.98 21.99C11.03 21.73 10.98 21.46 10.84 21.24C10.69 21.02 10.46 20.87 10.20 20.81C9.21 20.61 8.27 20.25 7.40 19.73L7.03 19.50L6.94 19.45C6.72 19.34 6.47 19.31 6.23 19.37C5.99 19.43 5.78 19.58 5.65 19.79ZM14.19 22.78L13.79 20.82C13.66 20.84 13.54 20.89 13.43 20.97C13.32 21.04 13.23 21.13 13.15 21.24C13.08 21.35 13.03 21.48 13.01 21.60C12.98 21.73 12.98 21.87 13.01 22C13.04 22.12 13.09 22.25 13.16 22.35C13.23 22.46 13.33 22.56 13.44 22.63C13.55 22.70 13.67 22.75 13.80 22.78C13.93 22.80 14.06 22.80 14.19 22.78Z", fill:"white"}}]}:{U:"svg",N:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{U:"path",N:{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(B)}this.V=e;this.G=!1;this.pS=null;gZ(e)?(this.X=g.nC("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.V.getPlaybackRate().toString()}),this.j=this.V.getPlaybackRate()):this.j=this.X=null;this.D=this.V.getAvailablePlaybackRates();this.C(e,"presentingplayerstatechange",this.OW);var x;((x=this.V.getVideoData())==null?0:x.GI())&&this.C(e,"serverstitchedvideochange",this.OW);this.C(this.T.K,"change",function(){I.G=!0;I.OW()}); this.OW()}; z6$=function(e,L){var c=kX(L);e.X&&(e.G||L===e.j)?(e.XC(e.X),e.Hw(L.toString())):e.XC(c)}; vpr=function(e){e.Ip(e.D.map(kX));e.X=null;e.j=null;var L=e.V.getPlaybackRate();gZ(e.V)&&swM(e,L);!e.D.includes(L)||e.G?e.XC(e.X):e.XC(kX(L))}; swM=function(e,L){e.j=L;e.X=g.nC("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:L.toString()});L=e.D.map(kX);L.unshift(e.X);e.Ip(L)}; kX=function(e){return e.toString()}; gZ=function(e){return e.Y("web_settings_menu_surface_custom_playback")}; fmn=function(e){return e.Y("web_settings_menu_surface_custom_playback")&&e.Y("web_settings_use_input_slider")}; FhM=function(e,L,c,I){var B=new g.Cp(L,void 0,"Video Override");g.lQ.call(this,I.text||"",e,L,c,"Video Override",function(){g.m4(c,B)}); var x=this;g.Y4(this.element,"ytp-subtitles-options-menu-item");this.setting=I.option.toString();e=I.options;this.settings=g.YN(e,this.j4,this);this.j=B;g.l(this,this.j);L=new g.ov({U:"div",W:"ytp-menuitemtitle",aq:"Allow for a different caption style if specified by the video."},0);g.l(this,L);this.j.Yx(L,!0);this.G=new g.ov({U:"div",W:"ytp-menuitem",N:{role:"menuitemradio",tabindex:"0"},L:[{U:"div",W:"ytp-menuitem-label",aq:"On"}]},-1);g.l(this,this.G);this.j.Yx(this.G,!0);this.C(this.G.element, "click",function(){AVc(x,!0)}); this.X=new g.ov({U:"div",W:"ytp-menuitem",N:{role:"menuitemradio",tabindex:"0"},L:[{U:"div",W:"ytp-menuitem-label",aq:"Off"}]},-2);g.l(this,this.X);this.j.Yx(this.X,!0);this.C(this.X.element,"click",function(){AVc(x,!1)}); this.Ip(g.Mt(e,this.j4))}; AVc=function(e,L){e.publish("settingChange",e.setting+"Override",!L);e.G_.zN()}; DB=function(e,L){g.Cp.call(this,e,void 0,"Options");var c=this;this.s0={};for(var I=0;I=0);if(!(L<0||L===e.G)){e.G=L;L=243*e.scale;var c=141*e.scale,I=EPH(e.K,e.G,L);Plc(e.bg,I,L,c,!0);e.h7.start()}}; npn=function(e){var L=e.X;e.type===3&&e.Gm.stop();e.api.removeEventListener("appresize",e.pS);e.J||L.setAttribute("title",e.Z);e.Z="";e.X=null;e.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});e.wrapper.style.width=""}; LwM=function(e){g.U.call(this,{U:"button",Rq:["ytp-watch-later-button","ytp-button"],N:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.Uh(e.S()))},L:[{U:"div",W:"ytp-watch-later-icon",aq:"{{icon}}"},{U:"div",W:"ytp-watch-later-title",aq:"Watch later"}]});this.V=e;this.icon=null;this.visible=this.isRequestPending=this.X=!1;gBc(e);e.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.C(e,"videoplayerreset",this.onReset);this.C(e,"appresize", this.nI);this.C(e,"videodatachange",this.nI);this.C(e,"presentingplayerstatechange",this.nI);this.nI();e=this.V.S();var L=g.iS("yt-player-watch-later-pending");e.G&&L?(nHn(),eYM(this)):this.OW(2);g.cY(this.element,"ytp-show-watch-later-title",g.Uh(e));y4(this.V,this.element,this)}; cXH=function(e){var L=e.V.getPlayerSize(),c=e.V.S(),I=e.V.getVideoData(),B=g.Uh(c)&&g.lf(e.V)&&g.E(e.V.getPlayerStateObject(),128),x=c.Z;return c.Nl&&L.width>=240&&!I.isAd()&&I.Nl&&!B&&!I.xx&&!e.V.isEmbedsShortsMode()&&!x}; Iqr=function(e,L){xIM(g.RD(e.V.S()),"wl_button",function(){nHn({videoId:L});window.location.reload()})}; eYM=function(e){if(!e.isRequestPending){e.isRequestPending=!0;e.OW(3);var L=e.V.getVideoData();L=e.X?L.removeFromWatchLaterCommand:L.addToWatchLaterCommand;var c=e.V.gg(),I=e.X?function(){e.X=!1;e.isRequestPending=!1;e.OW(2);e.V.S().J&&e.V.fS("WATCH_LATER_VIDEO_REMOVED")}:function(){e.X=!0; e.isRequestPending=!1;e.OW(1);e.V.S().K&&e.V.iD(e.element);e.V.S().J&&e.V.fS("WATCH_LATER_VIDEO_ADDED")}; De(c,L).then(I,function(){e.isRequestPending=!1;e.OW(4,"An error occurred. Please try again later.");e.V.S().J&&e.V.fS("WATCH_LATER_ERROR","An error occurred. Please try again later.")})}}; B6x=function(e,L){if(L!==e.icon){switch(L){case 3:var c=Ak();break;case 1:c=rJ();break;case 2:c={U:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{U:"path",zy:!0,W:"ytp-svg-fill",N:{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:c={U:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{U:"path", zy:!0,N:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}e.updateValue("icon",c);e.icon=L}}; xaJ=function(){g.BP.apply(this,arguments);this.JV=(this.Fy=g.Uh(this.api.S()))&&(this.api.S().K||Q2()||lL());this.qz=48;this.Um=69;this.A4=this.OU=null;this.ZC=[];this.qc=this.oF=this.UZ=this.KU=this.wq=null;this.Vp=[];this.contextMenu=this.HR=this.overflowButton=this.TY=this.UV=this.searchButton=this.copyLinkButton=this.shareButton=this.R2=this.Zn=this.title=this.channelAvatar=this.NV=this.tooltip=null;this.NW=!1;this.Dw=this.zl=this.pK=this.hP=null;this.UUm=this.Gz=this.Wx=!1}; oUr=function(e){var L=e.api.S(),c=g.E(e.api.getPlayerStateObject(),128);return L.G&&c&&!e.api.isFullscreen()}; S0$=function(e){if(e.ge()&&!e.api.isEmbedsShortsMode()&&e.TY){var L=e.api.Y("web_player_hide_overflow_button_if_empty_menu");!e.R2||L&&!cXH(e.R2)||SzT(e.TY,e.R2);!e.shareButton||L&&!b46(e.shareButton)||SzT(e.TY,e.shareButton);!e.copyLinkButton||L&&!fYx(e.copyLinkButton)||SzT(e.TY,e.copyLinkButton)}else{L=e.api.S().getWebPlayerContextConfig();if(e.TY){for(var c=e.TY,I=g.f(c.actionButtons),B=I.next();!B.done;B=I.next())B.value.detach();c.actionButtons=[]}e.searchButton&&!g.vz(e.Zn.element,e.searchButton.element)&& e.searchButton.jl(e.Zn.element);!e.R2||(L==null?0:L.hideTopWatchNextButton)||g.vz(e.Zn.element,e.R2.element)||e.R2.jl(e.Zn.element);!e.shareButton||(L==null?0:L.hideTopShareButton)||g.vz(e.Zn.element,e.shareButton.element)||e.shareButton.jl(e.Zn.element);e.copyLinkButton&&!g.vz(e.Zn.element,e.copyLinkButton.element)&&e.copyLinkButton.jl(e.Zn.element)}}; rXH=function(e,L,c){L=c?L.lastElementChild:L.firstElementChild;for(var I=null;L;){if(dF(L,"display")!=="none"&&L.getAttribute("aria-hidden")!=="true"){var B=void 0;L.tabIndex>=0?B=L:B=rXH(e,L,c);B&&(I?c?B.tabIndex>I.tabIndex&&(I=B):B.tabIndexI/1E3+1)return{msg:"in-the-past"};if(x.isLivePlayback&&!isFinite(I))return{msg:"live-infinite"};(I=L.Nw())&&I.isView()&&(I=I.mediaElement);if(I&&I.MR().length>12&&g.ZI(B))return{msg:"played-ranges"};if(!B.Z)return null;if(!S)return{msg:"no-pvd-formats"};if(!B.Z.X||!S.X)return{msg:"non-dash"};I=S.videoInfos[0];var h=B.Z.videoInfos[0];e.pS&&A1(x)&&(I=L.Hh(), h=c.Hh());if(!I||!h)return{msg:"no-video-info"};if(e.j&&(wr(I)||wr(h)))return{msg:"av1"};L=e.G&&x.O9()&&Lx();if(h.containerType!==I.containerType)if(L)x.sW("sgap",{ierr:"container"});else return{msg:"container"};if(e.B&&!L&&(h.EW!==I.EW||h.EW===""||I.EW===""))return{msg:"codec"};if(e.T&&h.video&&I.video&&Math.abs(h.video.width/h.video.height-I.video.width/I.video.height)>.01)return{msg:"ratio"};if(g.ZI(x)&&g.ZI(B))return{msg:"content-protection"};S=S.X[0];B=B.Z.X[0];c=S.audio;var R=B.audio;if(c.sampleRate!== R.sampleRate&&!g.q8)if(L)x.sW("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:S.itag,cr:c.sampleRate,ni:B.itag,nr:R.sampleRate};return(c.numChannels||2)!==(R.numChannels||2)?{msg:"channel-count"}:e.J&&x.O9()&&I.video.fps!==h.video.fps?{msg:"fps"}:null}; t7f=function(e,L,c){var I=e.getVideoData(),B=L.getVideoData();if(!I.S().supportsGaplessShorts())return{nq:"env"};if(c.D?I.h9&&!I.isAd()||B.h9&&!B.isAd():c.K?I.h9&&!I.isAd()||B.h9:c.Z?B.h9&&!B.isAd()||I.h9:I.h9||B.h9)return{nq:"autoplay"};if(I.endSeconds>0)return{nq:"endcr"};if(!I.T)return{nq:"client"};if(!e.jG())return{nq:"no-empty"};e=uE$(c,e,L,Infinity);return e!=null?{nq:e.msg}:null}; QA=function(e){g.p.call(this);this.app=e;this.B=this.G=this.K=this.X=null;this.Z=1;this.events=new g.zn(this);this.events.C(this.app.CS,g.Hq("gaplessshortslooprange"),this.J);g.l(this,this.events)}; O9r=function(){this.X=this.T=this.Z=this.K=this.D=this.j=this.pS=this.J=this.B=this.G=!1}; q0c=function(e){var L=new O9r;L.G=e.Y("h5_gapless_support_types_diff");L.J=e.Y("h5_gapless_error_on_fps_diff");L.pS=e.Y("html5_gapless_use_format_info_fix");L.j=e.Y("html5_gapless_disable_on_av1")&&!e.Y("html5_gapless_enable_on_av1");L.B=e.Y("html5_gapless_check_codec_diff_strictly");L.D=e.Y("html5_gapless_on_ad_autoplay");L.T=e.Y("html5_gapless_disable_diff_aspect_radio");L.K=e.Y("html5_gapless_ad_autoplay_on_ad_to_video_only");L.X=e.Y("html5_pseudogapless_shorts_seek_to_next_start");L.Z=e.Y("html5_gapless_ad_autoplay_on_video_to_ad_only"); return L}; g.dZ=function(e,L,c,I){I=I===void 0?!1:I;uc.call(this);this.mediaElement=e;this.start=L;this.end=c;this.X=I}; T6R=function(e,L,c,I,B,x){x=x===void 0?0:x;g.p.call(this);var S=this;this.policy=e;this.X=L;this.K=c;this.cw=B;this.B=x;this.G=this.Z=null;this.currentVideoDuration=this.j=-1;this.T=!1;this.QT=new Ri;this.r7=I-L.FF()*1E3;this.QT.then(void 0,function(){}); this.timeout=new g.j9(function(){S.a9("timeout")},1E4); g.l(this,this.timeout);this.J=isFinite(I)||this.cw.S().experiments.N0("html5_pseudogapless_shorts")&&A1(L.getVideoData());this.status={status:0,error:null}}; M76=function(e){var L,c,I,B,x,S,h,R,u;return g.Z(function(t){if(t.K==1){if(e.We())return t.return(Promise.reject(Error(e.status.error||"disposed")));e.timeout.start();return g.a(t,e.QT,2)}L=e.X.Nw();if(L.isEnded())return e.a9("ended_in_finishTransition"),t.return(Promise.reject(Error(e.status.error||"")));if(!e.G||!BX(e.G))return e.a9("next_mse_closed"),t.return(Promise.reject(Error(e.status.error||"")));if(e.K.y0()!==e.G)return e.a9("next_mse_mismatch"),t.return(Promise.reject(Error(e.status.error|| "")));c=UW(e);I=c.T2;B=c.SP;x=c.mS;e.X.yx(!1,!0);S=WwR(L,I,x,!e.K.getVideoData().isAd());e.K.setMediaElement(S);(h=e.X.uw())&&e.K.F0(h.xK,h.r6);e.J&&(e.policy.X||e.K.seekTo(e.K.getCurrentTime()+.001,{dw:!0,Xs:3,Ww:"gapless_pseudo"}),S.play(),F1());R=L.b5();R.cpn=e.X.getVideoData().clientPlaybackNonce;R.st=""+I;R.et=""+x;e.K.sW("gapless",R);e.X.sW("gaplessTo",{cpn:e.K.getVideoData().clientPlaybackNonce});u=e.X.getPlayerType()===e.K.getPlayerType();e.X.eD(B,!0,!1,u,e.K.getVideoData().clientPlaybackNonce); e.K.eD(e.K.getCurrentTime(),!0,!0,u,e.X.getVideoData().clientPlaybackNonce);e.K.Nd();g.F2(function(){!e.K.getVideoData().Gm&&e.K.getPlayerState().isOrWillBePlaying()&&e.K.yW()}); EW(e,6);e.dispose();return t.return(Promise.resolve())})}; fq$=function(e){if(e.K.getVideoData().Z){var L=e.cw.S().Y("html5_gapless_suspend_next_loader")&&e.B===1;e.K.Rf(e.G,L,zYJ(e));EW(e,3);sEM(e);var c=vUR(e);L=c.wY;c=c.D8;L.subscribe("updateend",e.mx,e);c.subscribe("updateend",e.mx,e);e.mx(L);e.mx(c)}}; sEM=function(e){e.X.unsubscribe("internalvideodatachange",e.TF,e);e.K.unsubscribe("internalvideodatachange",e.TF,e);e.cw.S().Y("html5_gapless_use_format_info_fix")&&(e.X.unsubscribe("internalvideoformatchange",e.TF,e),e.K.unsubscribe("internalvideoformatchange",e.TF,e));e.X.unsubscribe("mediasourceattached",e.TF,e);e.K.unsubscribe("statechange",e.Yh,e)}; WwR=function(e,L,c,I){e=e.isView()?e.mediaElement:e;return new g.dZ(e,L,c,I)}; EW=function(e,L){L<=e.status.status||(e.status={status:L,error:null},L===5&&e.QT.resolve())}; zYJ=function(e){return e.cw.S().Y("html5_gapless_no_clear_buffer_timeline")&&e.B===1&&GN(e.X.getVideoData())}; UW=function(e){var L=e.X.Nw();L=L.isView()?L.start:0;var c=e.X.getVideoData().isLivePlayback?Infinity:e.X.wP(!0);c=Math.min(e.r7/1E3,c)+L;var I=e.J?100:0;e=c-e.K.RO()+I;return{b1:L,T2:e,SP:c,mS:Infinity}}; vUR=function(e){return{wY:e.Z.X.Dp,D8:e.Z.K.Dp}}; K_=function(e){g.p.call(this);var L=this;this.app=e;this.j=this.K=this.X=null;this.J=!1;this.Z=this.G=null;this.B=q0c(this.app.S());this.T=function(){g.F2(function(){AXn(L)})}}; Fwv=function(e,L,c,I,B){I=I===void 0?0:I;B=B===void 0?0:B;e.jG()||YX(e);e.G=new Ri;e.X=L;var x=c,S=B===0;S=S===void 0?!0:S;var h=e.app.Qe(),R=h.getVideoData().isLivePlayback?Infinity:h.wP(!0)*1E3;x>R&&(x=R-200,e.J=!0);S&&h.getCurrentTime()>=x/1E3?e.T():(e.K=h,S&&(S=x,x=e.K,e.app.CS.addEventListener(g.jh("vqueued"),e.T),S=isFinite(S)||S/1E3>x.getDuration()?S:0x8000000000000,e.j=new g.pC(S,0x8000000000000,{namespace:"vqueued"}),x.addCueRange(e.j)));S=I/=1E3;x=L.getVideoData().X;I&&x&&e.K&&(h=I,R=0, L.getVideoData().isLivePlayback&&(S=Math.min(c/1E3,e.K.wP(!0)),R=Math.max(0,S-e.K.getCurrentTime()),h=Math.min(I,L.wP()+R)),S=Jfc(x,h)||I,S!==I&&e.X.sW("qvaln",{st:I,at:S,rm:R,ct:h}));L=S;I=e.X;I.getVideoData().kN=!0;I.getVideoData().T=!0;I.WH(!0);x={};e.K&&(x=e.K.w$(),S=e.K.getVideoData().clientPlaybackNonce,x={crt:(x*1E3).toFixed(),cpn:S});I.sW("queued",x);L!==0&&I.seekTo(L+.01,{dw:!0,Xs:3,Ww:"videoqueuer_queued"});e.Z=new T6R(e.B,e.app.Qe(),e.X,c,e.app,B);c=e.Z;c.status.status!==Infinity&&(EW(c, 1),c.X.subscribe("internalvideodatachange",c.TF,c),c.K.subscribe("internalvideodatachange",c.TF,c),c.cw.S().Y("html5_gapless_use_format_info_fix")&&(c.X.subscribe("internalvideoformatchange",c.TF,c),c.K.subscribe("internalvideoformatchange",c.TF,c)),c.X.subscribe("mediasourceattached",c.TF,c),c.K.subscribe("statechange",c.Yh,c),c.X.subscribe("newelementrequired",c.GZ,c),c.TF());return e.G}; AXn=function(e){var L,c,I,B,x,S,h;g.Z(function(R){switch(R.K){case 1:if(e.We()||!e.G||!e.X)return R.return();e.J&&e.app.Qe().O0(!0,!1);L=null;if(!e.Z){R.Iq(2);break}g.bn(R,3);return g.a(R,M76(e.Z),5);case 5:g.DR(R,2);break;case 3:L=c=g.wc(R);case 2:if(!e.X)return R.return();b9n.QG("vqsp",function(){e.app.R$(e.X)}); if(!e.X)return R.return();I=e.X.Nw();e.app.S().Y("html5_gapless_seek_on_negative_time")&&I&&I.getCurrentTime()<-.01&&e.X.seekTo(0);b9n.QG("vqpv",function(){e.app.playVideo()}); L&&(e.X?(B=L?L.message:"forced",(x=e.K)==null||x.sW("gapfulfbk",{r:B}),e.X.Rv(B)):(S=e.K)==null||S.sW("gapsp",{}));h=e.G;YX(e);h&&h.resolve();return R.return(Promise.resolve())}})}; YX=function(e,L){L=L===void 0?!1:L;if(e.K){if(e.j){var c=e.K;e.app.CS.removeEventListener(g.jh("vqueued"),e.T);c.removeCueRange(e.j)}e.K=null;e.j=null}e.Z&&(e.Z.status.status!==6&&(c=e.Z,c.status.status!==Infinity&&c.B!==1&&c.a9("Canceled")),e.Z=null);e.G=null;e.X&&!L&&e.X!==e.app.aT()&&e.X!==e.app.Qe()&&e.X.dispose();e.X&&L&&e.X.o1();e.X=null;e.J=!1}; i9n=function(e){var L;return((L=e.Z)==null?void 0:L.currentVideoDuration)||-1}; Gsv=function(e,L,c){if(e.jG())return"qie";if(e.X==null||e.X.We()||e.X.getVideoData()==null)return"qpd";if(L.videoId!==e.X.Am())return"vinm";if(i9n(e)<=0)return"ivd";if(c!==1)return"upt";if((c=e.Z)==null)e=void 0;else if(c.getStatus().status!==5)e="niss";else if(uE$(c.policy,c.X,c.K,c.r7)!=null)e="pge";else{L=vUR(c);e=L.wY;var I=L.D8;L=g.X3(c.cw.S().experiments,"html5_shorts_gapless_next_buffer_in_seconds");var B=c.j+L;c.cw.S().experiments.N0("html5_pseudogapless_shorts")&&(B=UW(c).T2+L);c=Qd(I.rq(), B);e=Qd(e.rq(),B);e=!(L>0)||c&&e?null:"neb"}return e!=null?e:null}; gUc=function(){g.Yg.call(this);var e=this;this.fullscreen=0;this.G=this.Z=this.pictureInPicture=this.X=this.K=this.inline=!1;this.B=function(){e.dZ()}; $Yr(this.B);this.j=this.getVisibilityState(this.YI(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.iE(),this.Gj(),this.BF(),this.gP())}; l6H=function(e){return!(e.isMinimized()||e.isInline()||e.isBackground()||e.iE()||e.Gj()||e.BF()||e.gP())}; g.n_=function(e){g.p.call(this);this.XM=e;this.videoData=this.playerState=null}; cb=function(e,L){g.p.call(this);var c=this;this.data=[];this.Z=e||NaN;this.K=L||null;this.X=new g.j9(function(){ea(c);Ly(c)}); g.l(this,this.X)}; D5v=function(e){ea(e);return e.data.map(function(L){return L.value})}; ea=function(e){var L=(0,g.zI)();e.data.forEach(function(c){c.expire0));(I=g.X3(L, "html5_cobalt_audio_write_ahead_ms"))&&o1("Media.AudioWriteDurationLocal",I);(I=c("html5_cobalt_enable_decode_to_texture"))&&o1("Media.PlayerConfiguration.DecodeToTexturePreferred",I?1:0);e.oT()&&pN6();Error.stackTraceLimit=50;var B=g.X3(L,"html5_idle_rate_limit_ms");B&&Object.defineProperty(window,"requestIdleCallback",{value:function(x){return window.setTimeout(x,B)}}); n_r(e.B);yNv(c("html5_use_ump_request_slicer"));uLn(c("html5_record_now"));c("html5_disable_streaming_xhr")&&(Oh=!1);c("html5_byterate_constraints")&&(vB=!0);c("html5_use_non_active_broadcast_for_post_live")&&(S6=!0);c("html5_enable_encrypted_av1")&&(Dh=!0);EHx(g.X3(e.experiments,"html5_sticky_duration_mos"))}; aqn=function(e,L){return e.slice(L.length).replace(/_[a-z]/g,function(c){return c.toUpperCase().replace("_","")}).replace("Dot",".")}; N6$=function(e){var L={},c=Object.keys(e.experiments.flags);c=g.f(c);for(var I=c.next();!I.done;I=c.next())if(I=I.value,I.startsWith("cobalt_h5vcc"))if(I.startsWith("cobalt_h5vcc_string")){var B=aqn(I,"cobalt_h5vcc_string");I=qX(e.experiments,I);B&&I&&(L[B]=o1(B,I))}else I.startsWith("cobalt_h5vcc")&&(B=aqn(I,"cobalt_h5vcc"),I=g.X3(e.experiments,I),B&&I&&(L[B]=o1(B,I)));return L}; mav=function(e,L,c,I){I=I===void 0?0:I;g.eS.call(this,c.bK());this.Pw=e;this.videoData=L;this.duration=I;this.endTime=this.startTime=0;this.X={}}; yXT=function(e){this.end=this.start=e}; g.Sa=function(){this.X=new Map;this.Z=new Map;this.K=new Map}; Z9f=function(){this.X=[];this.Z=new Map;this.G=new Map;this.K=new Map}; pVT=function(e,L){L=g.l7(e.X,{aU:L},function(c,I){return c.aU-I.aU}); return L>=0?e.X[L]:null}; $ac=function(e,L){var c=e.X.indexOf(L);c>=0&&e.X.splice(c,1);e.Z.delete(L.cpn);L.d0&&e.G.delete(L.d0)}; jE6=function(e,L,c){var I=e.K.get(L);I?(I.push(c),g.U9(I,function(B,x){return B.hw-x.hw})):e.K.set(L,[c])}; g.rY=function(e,L,c,I){g.p.call(this);var B=this;this.api=e;this.XM=L;this.playback=c;this.app=I;this.h7=new g.Sa;this.K=new Map;this.X=new Z9f;this.Ve=new Map;this.k9=null;this.Sl=NaN;this.He=this.d_=null;this.m$=new g.j9(function(){H9H(B,B.Sl,B.d_||void 0)}); this.events=new g.zn(this);this.t7=15E3;this.T=new g.j9(function(){B.J=!0;B.playback.Ti(B.t7);lq6(B);if(B.playback.getVideoData().GI()){var x;B.Z6({togab:(x=B.j)==null?void 0:x.identifier})}B.o4(!1)},this.t7); this.J=!1;this.B=new Map;this.ye=[];this.j=null;this.Pe=new Set;this.pS=[];this.x9=[];this.gT=[];this.Kf=[];this.HG=0;this.D=!1;this.RT=new Set;this.Q5=new Set;this.Cf=new Set;this.sY=this.Go=0;this.Tc=this.DY=!1;this.St=this.Z="";this.Gm=null;this.logger=new g.tB("dai");this.kx={pDe:function(){return B.K}, Z8Y:function(){return B.X.Z}, ZGe:function(){return B.Z}, HR_:function(x){B.onCueRangeEnter(B.K.get(x))}, LL9:function(x){B.onCueRangeExit(B.K.get(x))}, tqS:function(x,S){B.K.set(x,S)}, otS:function(x){B.St=x}, Rg:function(){return B.Rg()}, K5l:function(x){return B.X.K.get(x)}, K47:function(){return B.Gm}, s1_:function(){return B.X.X}}; this.playback.getPlayerType();this.playback.iT(this);this.Y9=this.XM.oT();g.l(this,this.m$);g.l(this,this.events);g.l(this,this.T);this.events.C(this.api,g.jh("serverstitchedcuerange"),this.onCueRangeEnter);this.events.C(this.api,g.Hq("serverstitchedcuerange"),this.onCueRangeExit);ok(this.app.MM(),this.playback,!1)}; EUf=function(e,L,c,I,B,x,S,h,R){if(e.XM.Y("html5_ignore_ads_after_noadresponse")&&R&&e.Pe.has(R))hM(e,{reason:"addafternoad",cueid:R});else{var u=P9v(e,x,x+B);e.J&&e.Z6({adaftto:1});c||e.Z6({missadcon:1,enter:x,len:B,aid:h});e.G&&!e.G.yM&&(e.G.yM=h);e.Tc&&e.Z6({adfbk:1,enter:x,len:B,aid:h});R=e.playback;x===S&&!B&&e.XM.Y("html5_allow_zero_duration_ads_on_timeline")&&e.Z6({attl0d:1});x>S&&hM(e,{reason:"enterTime_greater_than_return",hw:x,aU:S});var t=R.S6()*1E3;xR&&hM(e,{reason:"parent_return_greater_than_content_duration",aU:S,s$9:R});(R=pVT(e.X,x))&&R.aU>x&&QE$(e,L.video_id||"",x,S,R);if(u&&R)for(t=0;t=0)for(var B=L*1E3,x=I;x<=I+1&&x=S.hw-c*1E3&&B<=S.aU+c*1E3)return{Yw:S,Gx:L}}return{Yw:void 0,Gx:L}}; eHx=function(e,L){var c="";(L=Y0v(e,L))&&(c=L.getId());return c?e.X.Z.get(c):void 0}; Y0v=function(e,L){if(e.St){var c=e.K.get(e.St);if(c&&c.start-200<=L&&c.end+200>=L)return c}e=g.f(e.K.values());for(c=e.next();!c.done;c=e.next())if(c=c.value,c.start<=L&&c.end>=L)return c}; H9H=function(e,L,c){var I=e.He||e.app.Qe().getPlayerState();tM(e,!0);e.playback.seekTo(L,c);e=e.app.Qe();L=e.getPlayerState();I.isOrWillBePlaying()&&!L.isOrWillBePlaying()?e.playVideo():I.isPaused()&&!L.isPaused()&&e.pauseVideo()}; tM=function(e,L){e.Sl=NaN;e.d_=null;e.m$.stop();e.k9&&L&&e.k9.yO();e.He=null;e.k9=null}; Bnn=function(e){var L=L===void 0?-1:L;var c=c===void 0?Infinity:c;for(var I=[],B=g.f(e.X.X),x=B.next();!x.done;x=B.next())x=x.value,(x.hwc)&&I.push(x);e.X.X=I;I=g.f(e.K.values());for(B=I.next();!B.done;B=I.next())B=B.value,B.start>=L&&B.end<=c&&(e.playback.removeCueRange(B),e.K.delete(B.getId()),e.Z6({rmAdCR:1}));I=uK(e,L/1E3);L=I.Yw;I=I.Gx;L&&(I=I*1E3-L.hw,IgR(e,L,I,L.hw+I),I=e.K.get(L.cpn))&&(I.start=L.hw,I.end=L.hw+L.durationMs);if(L=uK(e,c/1E3).Yw){var S;I="playback_timelinePlaybackId_"+ L.d0+"_video_id_"+((S=L.videoData)==null?void 0:S.videoId)+"_durationMs_"+L.durationMs+"_enterTimeMs_"+L.hw+"_parentReturnTimeMs_"+L.aU;e.C6("Invalid_clearEndTimeMs_"+c+"_that_falls_during_"+I+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; xHT=function(e){e.h7.clearAll();e.K.clear();e.X.clear();e.B.clear();e.ye=[];e.j=null;e.Pe.clear();e.pS=[];e.x9=[];e.gT=[];e.Kf=[];e.RT.clear();e.Q5.clear();e.Cf.clear();e.J=!1;e.HG=0;e.D=!1;e.Go=0;e.sY=0;e.DY=!1;e.Tc=!1;e.Z="";ksM(e.app.MM());ok(e.app.MM(),e.playback,!1);e.Ve.clear();e.T.isActive()&&Rk(e)}; IgR=function(e,L,c,I){L.durationMs=c;L.aU=I;(I=e.Ve.get(L.cpn))?I.SF(c/1E3):e.Z6({nop_d:L.cpn})}; rs$=function(e,L,c,I,B,x){if(!e.Tc)if(g.oSx(e,c))e.Z6({gdu:"undec",seg:c,itag:B});else if(L=SMf(e,L,c,I,x),!(e.playback.getVideoData().GI()&&(L==null?0:L.L3)))return L}; SMf=function(e,L,c,I,B){var x=e.B.get(c);if(!x){if(x=hHf(e,L))return x;L=e.lq(c-1,I!=null?I:2);if(B)return e.Z6({misscue:B,sq:c,type:I,prevsstate:L==null?void 0:L.S7,prevrecord:e.B.has(c-1)}),e.B.get(c-1);if((L==null?void 0:L.S7)===2)return e.Z6({adnf:1,sq:c,type:I,prevrecord:e.B.has(c-1)}),e.B.get(c-1)}return x}; hHf=function(e,L){L+=e.LR();if(e.playback.getVideoData().GI())a:{var c=1;c=c===void 0?0:c;var I=L*1E3;e=g.f(e.X.X);for(var B=e.next();!B.done;B=e.next()){B=B.value;var x=B.L$?B.L$*1E3:B.hw;if(I>=B.hw-c*1E3&&I<=x+B.durationMs+c*1E3){I={Yw:B,Gx:L};break a}}I={Yw:void 0,Gx:L}}else I=uK(e,L),((c=I)==null?0:c.Yw)||(I=uK(e,L,1));var S;return(S=I)==null?void 0:S.Yw}; RHJ=function(e,L){L=L===void 0?"":L;var c=Go(L)||void 0;if(!L||!c){var I;e.Z6({adcfg:(I=L)==null?void 0:I.length,dcfg:c==null?void 0:c.length})}return c}; ufT=function(e){for(var L=g.f(e.K.values()),c=L.next();!c.done;c=L.next())e.playback.removeCueRange(c.value);e.K.clear();e.h7.clearAll()}; tVT=function(e,L,c,I,B,x,S){if(L&&c){e.St=c.cpn;e.CO(c.cpn,c.hw/1E3);Kw$(e,c);var h=XVR(e,"a2a",c);e.Z6(h);e.Go++;e.playback.IJ(L,c,I||0,B||0,!!x,!!S)}else e.Z6({misspbkonadtrans:1,enter:(c==null?void 0:c.cpn)||"",exit:(L==null?void 0:L.cpn)||"",seek:x,skip:S})}; Ok=function(e,L,c){if(c===void 0||!c){c=g.f(e.ye);for(var I=c.next();!I.done;I=c.next()){I=I.value;if(L>=I.start&&L<=I.end)return;if(L===I.end+1){I.end+=1;return}}e.ye.push(new yXT(L))}}; g.oSx=function(e,L){e=g.f(e.ye);for(var c=e.next();!c.done;c=e.next())if(c=c.value,L>=c.start&&L<=c.end)return!0;return!1}; OdR=function(e,L,c){var I;if(I=e.playback.getVideoData().GI()||e.XM.Y("html5_ssdai_extent_last_unfinished_ad_cue_range"))I=(I=e.X.Z.get(L))&&I.jA?(e=e.X.K.get(I==null?void 0:I.jA))&&e.slice(-1)[0].cpn===L:!1;return I&&c===2?1E3:0}; QE$=function(e,L,c,I,B){var x;L={reason:"overlapping_playbacks",xa7:L,hw:c,aU:I,SwM:B.d0,bRW:((x=B.videoData)==null?void 0:x.videoId)||"",m4e:B.durationMs,fBl:B.hw,N9q:B.aU};hM(e,L)}; hM=function(e,L,c){e.playback.yc(L,c)}; qMT=function(e,L){var c=[];e=e.X.K.get(L);if(!e)return[];e=g.f(e);for(L=e.next();!L.done;L=e.next())L=L.value,L.cpn&&c.push(L.cpn);return c}; TnM=function(e,L,c){var I=0;e=e.X.K.get(c);if(!e)return-1;e=g.f(e);for(c=e.next();!c.done;c=e.next()){if(c.value.cpn===L)return I;I++}return-1}; WiM=function(e,L){var c=0;e=e.X.K.get(L);if(!e)return 0;e=g.f(e);for(L=e.next();!L.done;L=e.next())L=L.value,L.durationMs!==0&&L.aU!==L.hw&&c++;return c}; MVx=function(e,L,c){var I=!1;if(c&&(c=e.X.K.get(c))){c=g.f(c);for(var B=c.next();!B.done;B=c.next())B=B.value,B.durationMs!==0&&B.aU!==B.hw&&(B=B.cpn,L===B&&(I=!0),I&&!e.Q5.has(B)&&(e.Z6({decoratedAd:B}),e.Q5.add(B)))}}; lq6=function(e){e.Y9&&e.Z6({adf:"0_"+((new Date).getTime()/1E3-e.sY)+"_isTimeout_"+e.J})}; P9v=function(e,L,c){if(e.pS.length)for(var I=g.f(e.pS),B=I.next(),x={};!B.done;x={Iw:void 0},B=I.next()){x.Iw=B.value;B=x.Iw.startSecs*1E3;var S=x.Iw.jW*1E3+B;if(L>B&&LB&&c0?e:0}else e.Rg().videoData.FD=e.playback.getCurrentTime()}; bdr=function(e,L,c,I){g.p.call(this);var B=this;this.api=e;this.XM=L;this.X=c;this.app=I;this.B=new Map;this.K=[];this.Z=this.T=null;this.pS=NaN;this.j=this.G=this.D=null;this.J=new g.j9(function(){Fir(B,B.pS,B.D||void 0)}); this.h7=[];this.Gm=new g.j9(function(){var x=B.h7.pop();if(x){var S=x.d0,h=x.playerVars;x=x.playerType;h&&(h.prefer_gapless=!0,B.api.preloadVideoByPlayerVars(h,x,NaN,"",S),B.h7.length&&g.HT(B.Gm,4500))}}); this.events=new g.zn(this);this.kx={j17:function(){return B.K}}; this.X.getPlayerType();g.l(this,this.J);g.l(this,this.Gm);g.l(this,this.events);this.events.C(this.api,g.jh("childplayback"),this.onCueRangeEnter);this.events.C(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.C(this.api,"presentingplayerstatechange",this.X7)}; ktv=function(e,L,c,I,B,x){var S=L.cpn,h=L.docid||L.video_id||L.videoId||L.id,R=e.X;x=x===void 0?B+I:x;if(B>x)return Tg(e,"enterAfterReturn enterTimeMs="+B+" is greater than parentReturnTimeMs="+x.toFixed(3),S,h),"";var u=R.S6()*1E3;if(Bu)return R="returnAfterDuration parentReturnTimeMs="+x.toFixed(3)+" is greater than parentDurationMs="+u+". And timestampOffset in seconds is "+ R.FF(),Tg(e,R,S,h),"";u=null;for(var t=g.f(e.K),O=t.next();!O.done;O=t.next()){O=O.value;if(B>=O.hw&&BO.hw)return Tg(e,"overlappingReturn",S,h),"";if(x===O.hw)return Tg(e,"outOfOrder",S,h),"";B===O.aU&&(u=O)}S="cs_childplayback_"+id6++;h={dM:Wb(I,!0),r7:Infinity,target:null};var q={d0:S,playerVars:L,playerType:c,durationMs:I,hw:B,aU:x,G0:h};e.K=e.K.concat(q).sort(function(A,b){return A.hw-b.hw}); u?GtM(e,u,{dM:Wb(u.durationMs,!0),r7:u.G0.r7,target:q}):(L={dM:Wb(B,!1),r7:B,target:q},e.B.set(L.dM,L),R.addCueRange(L.dM));L=!0;if(e.X===e.app.Qe()&&(R=R.getCurrentTime()*1E3,R>=q.hw&&RL)break;if(x>L)return{Yw:I,Gx:L-B};c=x-I.aU/1E3}return{Yw:null,Gx:L-c}}; Fir=function(e,L,c){c=c===void 0?{}:c;var I=e.j||e.app.Qe().getPlayerState();sk(e,!0);L=isFinite(L)?L:e.X.t_();var B=VVx(e,L);L=B.Gx;var x=(B=B.Yw)&&!MP(e,B)||!B&&e.X!==e.app.Qe(),S=L*1E3;S=e.Z&&e.Z.start<=S&&S<=e.Z.end;!x&&S||zg(e);B?gS$(e,B,L,c,I):C4$(e,L,c,I)}; C4$=function(e,L,c,I){var B=e.X;B!==e.app.Qe()&&e.app.aL();B.seekTo(L,Object.assign({},{Ww:"application_timelinemanager"},c));agn(e,I)}; gS$=function(e,L,c,I,B){var x=MP(e,L);if(!x){L.playerVars.prefer_gapless=!0;e.XM.Y("html5_enable_ssap_entity_id")&&(L.playerVars.cached_load=!0);var S=new g.RI(e.XM,L.playerVars);S.d0=L.d0;e.api.ED(S,L.playerType)}S=e.app.Qe();x||S.addCueRange(L.G0.dM);S.seekTo(c,Object.assign({},{Ww:"application_timelinemanager"},I));agn(e,B)}; agn=function(e,L){e=e.app.Qe();var c=e.getPlayerState();L.isOrWillBePlaying()&&!c.isOrWillBePlaying()?e.playVideo():L.isPaused()&&!c.isPaused()&&e.pauseVideo()}; sk=function(e,L){e.pS=NaN;e.D=null;e.J.stop();e.G&&L&&e.G.yO();e.j=null;e.G=null}; MP=function(e,L){e=e.app.Qe();return!!e&&e.getVideoData().d0===L.d0}; NnJ=function(e){var L=e.K.find(function(B){return MP(e,B)}); if(L){var c=e.app.Qe();zg(e);var I=new g.WX(8);L=Jsr(e,L)/1E3;C4$(e,L,{},I);c.sW("forceParentTransition",{childPlayback:1});e.X.sW("forceParentTransition",{parentPlayback:1})}}; ysn=function(e,L,c){L=L===void 0?-1:L;c=c===void 0?Infinity:c;for(var I=L,B=c,x=g.f(e.B),S=x.next();!S.done;S=x.next()){var h=g.f(S.value);S=h.next().value;h=h.next().value;h.r7>=I&&h.target&&h.target.aU<=B&&(e.X.removeCueRange(S),e.B.delete(S))}I=L;B=c;x=[];S=g.f(e.K);for(h=S.next();!h.done;h=S.next())if(h=h.value,h.hw>=I&&h.aU<=B){var R=e;R.T===h&&zg(R);MP(R,h)&&R.app.aL()}else x.push(h);e.K=x;I=VVx(e,L/1E3);L=I.Yw;I=I.Gx;L&&(I*=1E3,mHR(e,L,I,L.aU===L.hw+L.durationMs?L.hw+I:L.aU));(L=VVx(e,c/1E3).Yw)&& Tg(e,"Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(L.d0+" video_id="+L.playerVars.video_id+" durationMs="+L.durationMs+" enterTimeMs="+L.hw+" parentReturnTimeMs="+L.aU+"}.Child playbacks can only have duration updated not their start."))}; mHR=function(e,L,c,I){L.durationMs=c;L.aU=I;I={dM:Wb(c,!0),r7:c,target:null};GtM(e,L,I);MP(e,L)&&e.app.Qe().getCurrentTime()*1E3>c&&(L=Jsr(e,L)/1E3,c=e.app.Qe().getPlayerState(),C4$(e,L,{},c))}; Tg=function(e,L,c,I){e.X.sW("timelineerror",{e:L,cpn:c?c:void 0,videoId:I?I:void 0})}; pgH=function(e){e&&e!=="web"&&Zdc.includes(e)}; vb=function(){g.p.call(this);this.X=new cb(5,null);g.l(this,this.X);this.K=new cb(15,null);g.l(this,this.K)}; kb6=function(e,L){return L?!!e.X.get(L):!1}; $H6=function(e,L){e.dataset.version=L}; lgc=function(e){g.U.call(this,{U:"div",Rq:["html5-video-player"],N:{tabindex:e.S().disableOrganicUi?"":"-1",id:e.webPlayerContextConfig.rootElementId},L:[{U:"div",W:g.qB.VIDEO_CONTAINER,N:{"data-layer":"0"}}]});var L=this;this.app=e;this.hk=this.q0(g.qB.VIDEO_CONTAINER);this.E2=new g.$r(0,0,0,0);this.rT=null;this.Vc=new g.$r(0,0,0,0);this.iK=this.IH=this.UX=NaN;this.Wi=this.qI=this.Ck=this.tZ=!1;this.TH=NaN;this.lX=!1;this.Ul=null;this.QD=function(){L.element.focus({preventScroll:!0})}; this.S3=function(){L.app.CS.publish("playerUnderlayVisibilityChange","visible");L.rT.classList.remove(g.qB.VIDEO_CONTAINER_TRANSITIONING);L.rT.removeEventListener(i_,L.S3);L.rT.removeEventListener("transitioncancel",L.S3)}; this.EL=this.hO=!1;var c=this.element.addEventListener,I=this.element.removeEventListener;this.addEventListener=function(x,S,h){c.apply(L.element,[x,S,h])}; this.removeEventListener=function(x,S,h){I.apply(L.element,[x,S,h])}; var B=e.S();B.transparentBackground&&this.Sq("ytp-transparent");B.controlsType==="0"&&this.Sq("ytp-hide-controls");g.Y4(this.element,"ytp-exp-bottom-control-flexbox");g.Y4(this.element,"ytp-modern-caption");B.Y("enable_new_paid_product_placement")&&!g.z3(B)&&g.Y4(this.element,"ytp-exp-ppp-update");B.Y("html5_enable_ssap")&&g.Y4(this.element,"ytp-ssap");g.Y4(this.element,"ytp-livebadge-color");if(B.Y("delhi_modern_web_player"))switch(g.Y4(this.element,"ytp-delhi-modern"),B.Y("delhi_modern_web_player_icons")&& g.Y4(this.element,"ytp-delhi-modern-icons"),qX(B.experiments,"delhi_modern_web_player_blending_mode")){case "luminosity":g.Y4(this.element,"ytp-delhi-modern-with-luminosity");break;case "difference":g.Y4(this.element,"ytp-delhi-modern-with-difference");break;case "exclusion":g.Y4(this.element,"ytp-delhi-modern-with-exclusion")}$H6(this.element,j4M(e));this.Xh=!1;this.z1=new g.dz(NaN,NaN);Hdn(this);this.C(e.CS,"onMutedAutoplayChange",this.onMutedAutoplayChange)}; Hdn=function(e){function L(){e.rT&&fy(e);AM(e)!==e.lX&&e.resize()} function c(S,h){e.OC(S,h)} function I(S){S.getVideoData()&&e.updateVideoData(S.getVideoData())} function B(){e.Vc=new g.$r(0,0,0,0);e.E2=new g.$r(0,0,0,0)} var x=e.app.CS;x.addEventListener("initializingmode",B);x.addEventListener("videoplayerreset",I);x.addEventListener("videodatachange",c);x.addEventListener("presentingplayerstatechange",L);e.addOnDisposeCallback(function(){x.removeEventListener("initializingmode",B);x.removeEventListener("videoplayerreset",I);x.removeEventListener("videodatachange",c);x.removeEventListener("presentingplayerstatechange",L)})}; Q4c=function(e){var L=e.app.Qe();if(L=L?L.getVideoData():null){if(g.UF(L)||g.EF(L)||g.XU(L))return 16/9;if(ff(L)&&L.Z.X)return e=L.Z.videoInfos[0].video,P4T(e.width,e.height)}return(e=e.rT)?P4T(e.videoWidth,e.videoHeight):16/9}; dHr=function(e,L,c,I){var B=c,x=P4T(L.width,L.height);e.tZ?B=cx?{width:L.width,height:L.width/B,aspectRatio:B}:BB?e.width=e.height*c:cR;if(AM(e)){var u=Q4c(e);var t=isNaN(u)||g.ZQ||rH&&g.RM||R;ya&&!g.$C(601)?u=B.aspectRatio:t=t||x.controlsType==="3";t?R?(t=x.Y("place_shrunken_video_on_left_of_player")?16:e.getPlayerSize().width-L.width-16,u=Math.max((e.getPlayerSize().height-L.height)/2,0),t=new g.$r(t,u,L.width, L.height),e.rT.style.setProperty("border-radius","12px")):t=new g.$r(0,0,L.width,L.height):(c=B.aspectRatio/u,t=new g.$r((L.width-B.width/c)/2,(L.height-B.height)/2,B.width/c,B.height),c===1&&g.RM&&(u=t.width-L.height*u,u>0&&(t.width+=u,t.height+=u)));g.cY(e.element,"ytp-fit-cover-video",Math.max(t.width-B.width,t.height-B.height)<1);if(h||e.Xh)e.rT.style.display="";e.lX=!0}else{t=-L.height;ya?t*=window.devicePixelRatio:g.sj&&(t-=window.screen.height);t=new g.$r(0,t,L.width,L.height);if(h||e.Xh)e.rT.style.display= "none";e.lX=!1}jf(e.Vc,t)||(e.Vc=t,g.L8(x)?(e.rT.style.setProperty("width",t.width+"px","important"),e.rT.style.setProperty("height",t.height+"px","important")):g.e_(e.rT,t.getSize()),I=new g.Pa(t.left,t.top),g.Xt(e.rT,Math.round(I.x),Math.round(I.y)),I=!0);L=new g.$r((L.width-B.width)/2,(L.height-B.height)/2,B.width,B.height);jf(e.E2,L)||(e.E2=L,I=!0);g.l3(e.rT,"transform",c===1?"":"scaleX("+c+")");S&&R!==e.qI&&(R&&(e.rT.addEventListener(i_,e.S3),e.rT.addEventListener("transitioncancel",e.S3),e.rT.classList.add(g.qB.VIDEO_CONTAINER_TRANSITIONING)), e.qI=R,e.app.CS.publish("playerUnderlayVisibilityChange",e.qI?"transitioning":"hidden"));return I}; Xgx=function(e){e.hO=!e.hO;e.EL=!0;e.element.classList.toggle("ytp-retro-player",e.hO);e.resize();e.EL=!1;e.app.CS.fS("onRetroModeChanged",e.hO)}; Kir=function(){this.csn=g.qy();this.clientPlaybackNonce=null;this.elements=new Set;this.Z=new Set;this.X=new Set;this.K=new Set}; YMn=function(e){if(e.csn!==g.qy())if(e.csn==="UNDEFINED_CSN")e.csn=g.qy();else{var L=g.qy(),c=g.OI();if(L&&c){e.csn=L;for(var I=g.f(e.elements),B=I.next();!B.done;B=I.next())(B=B.value.visualElement)&&B.isClientVe()&&L&&c&&(g.uL("combine_ve_grafts")?ls(jX(),B,c):g.Hu(g.Ny)(void 0,L,c,B))}if(L)for(e=g.f(e.X),c=e.next();!c.done;c=e.next())(c=c.value.visualElement)&&c.isClientVe()&&g.PJ(L,c)}}; g.FH=function(e,L,c,I){g.p.call(this);var B=this;this.logger=new g.tB("App");this.F3=this.yy=!1;this.jB={};this.If=[];this.FN=!1;this.tC=null;this.intentionalPlayback=!1;this.LO=!0;this.PV=!1;this.zK=this.zX=this.bX=null;this.RW=!0;this.mediaElement=this.By=null;this.RH=NaN;this.fW=!1;this.gq=this.bj=this.SW=this.screenLayer=this.playlist=null;this.qb=[];this.zz=0;this.kx={MM:function(){return B.Vo}, sgW:function(){return B.SW}, e9S:function(){}}; this.logger.debug("constructor begin");if(!c)throw Error("b/179532961");this.CP=(L==null?void 0:L.args)||{};this.webPlayerContextConfig=c;o4f();L=this.CP;this.XM=new rb(L,c,c.canaryState,I,this);g.l(this,this.XM);C9n(this.XM);c=N6$(this.XM);this.XM.oT()&&this.va("h5vcc",c);this.XM.experiments.N0("jspb_serialize_with_worker")&&$Nr();this.XM.experiments.N0("gzip_gel_with_worker")&&VZJ();this.XM.K&&!nSc&&(window.addEventListener(lC?"touchstart":"click",RY$,{capture:!0,passive:!0}),nSc=!0);this.Y("html5_onesie")&& (this.nA=new V9(this.XM),g.l(this,this.nA));this.p7=EN(XB(this.XM)&&!0,L.enablesizebutton);this.vW=EN(!1,L.player_wide);this.visibility=new gUc;g.l(this,this.visibility);this.Y("web_log_theater_mode_visibility")&&this.tY(EN(!1,L.player_wide));this.yy=EN(!1,L.external_list);this.events=new g.zn(this);g.l(this,this.events);this.Y("start_client_gcf")&&(zr(Fg(),{X9:n$,TC:cLM()}),this.DF=Fg().resolve(n$),xZr(this.DF));this.dU_=new bf;g.l(this,this.dU_);this.OP=new Kir;c=new GC;this.CS=new g.p2(this,c); g.l(this,this.CS);this.template=new lgc(this);g.l(this,this.template);this.appState=1;this.vU=eW$(this);g.l(this,c);c={};this.n0=(c.internalvideodatachange=this.YWq,c.playbackready=this.jqe,c.playbackstarted=this.B_q,c.statechange=this.Rw0,c);this.K4=new Gb(this.CS);this.NU=LxM(this);c=this.XM.j;!1!==c&&this.va("badps",{hbp:c,hostname:window.location.hostname,ps:this.XM.playerStyle});this.j5=new Xer(this.XM,this.NU);this.CS.publish("csiinitialized");(this.webPlayerContextConfig.wasmModuleUrl||TYJ(this.NU))&& cdn(this);c=10;g.R2(this.XM)&&(c=3);Wn(this.XM)&&(c=g.X3(this.XM.experiments,"tvhtml5_unplugged_preload_cache_size"));this.Vo=new g.Bb(this.CS,c);c=Irc(this);this.Vo.Hl(c);BX6(this);c={};this.XH=(c.airplayactivechange=this.yKq,c.airplayavailabilitychange=this.Wm$,c.beginseeking=this.oTe,c.sabrCaptionsDataLoaded=this.Hfd,c.endseeking=this.P5d,c.internalAbandon=this.OfS,c.internalaudioformatchange=this.t50,c.internalvideodatachange=this.ifq,c.internalvideoformatchange=this.xxe,c.liveviewshift=this.gTq, c.playbackstalledatstart=this.Lmw,c.progresssync=this.l6q,c.onAbnormalityDetected=this.cKw,c.onSnackbarMessage=this.SYW,c.onLoadProgress=this.Fm$,c.SEEK_COMPLETE=this.mxe,c.SEEK_TO=this.f6M,c.onVideoProgress=this.rK_,c.onLoadedMetadata=this.JKe,c.onAutoplayBlocked=this.wyM,c.onPlaybackPauseAtStart=this.QTM,c.playbackready=this.vTe,c.statechange=this.RQ,c.newelementrequired=this.BQ,c.heartbeatparams=this.C5_,c.videoelementevent=this.ETe,c.drmoutputrestricted=this.M50,c.signatureexpired=this.NTS,c.nonfatalerror= this.AK_,c.reloadplayer=this.nTW,c);this.X0=new g.zn(this);g.l(this,this.X0);this.zx=new vb;g.l(this,this.zx);this.D7=this.Cl=-1;this.gh=new g.j9(this.template.resize,16,this.template);g.l(this,this.gh);this.Pw=new bdr(this.CS,this.XM,this.aT(),this);this.Ih=new K_(this);g.l(this,this.Ih);this.Mc=new QA(this);g.l(this,this.Mc);pgH(this.XM.X.c);this.events.C(this.CS,g.jh("appapi"),this.IY7);this.events.C(this.CS,g.Hq("appapi"),this.Vll);this.events.C(this.CS,g.jh("appprogressboundary"),this.K1l);this.events.C(this.CS, g.Hq("applooprange"),this.Qc);this.events.C(this.CS,"presentingplayerstatechange",this.X7);this.events.C(this.CS,"resize",this.up9);this.template.jl(Bz(document,e));this.events.C(this.CS,"offlineslatestatechange",this.jT$);this.events.C(this.CS,"sabrCaptionsTrackChanged",this.O9e);this.events.C(this.CS,"sabrCaptionsBufferedRangesUpdated",this.C4W);this.NU.V.S().Kp&&pm(this.NU,"offline");this.XM.m$&&g.JK("ux",g.lU);e=g.X3(this.XM.experiments,"html5_defer_fetch_att_ms");this.sO=new g.j9(this.Nqq,e, this);g.l(this,this.sO);this.hq().Hd()&&(g.gs()&&this.hq().h7.push("remote"),xnr(this));this.j5.tick("fs");o3c(this);this.XM.m$&&pm(this.NU,"ux",!0);g.Uh(this.NU.V.S())&&pm(this.NU,"embed");this.Y("web_player_sentinel_is_uniplayer")||g.F7(new g.yu("Player experiment flags missing","web_player_sentinel_is_uniplayer"));e=this.Y("web_player_sentinel_yt_experiments_sync");c=g.uL("web_player_sentinel_yt_experiments_sync");e!==c&&g.F7(new g.yu("b/195699950",{yt:e,player:c}));this.s6=S8M(this);if(e=g.X3(this.XM.experiments, "html5_block_pip_safari_delay"))this.qG=new g.j9(this.u1,e,this),g.l(this,this.qG);bL=this.XM.Q5;this.CS.publish("applicationInitialized");this.logger.debug("constructor end")}; S8M=function(e){function L(c){c.stack&&c.stack.indexOf("player")!==-1&&e.Qe().Ff(c)} bF.subscribe("handleError",L);$J.push(L);return function(){bF.unsubscribe("handleError",L);var c=$J.indexOf(L);c!==-1&&$J.splice(c,1)}}; Irc=function(e){var L=new g.RI(e.XM,e.CP);e.CS.publish("initialvideodatacreated",L);return bK(e,1,L,!1)}; BX6=function(e){var L=e.aT();L.setPlaybackRate(e.XM.G?1:rdc(e,Number(g.iS("yt-player-playback-rate"))||1));L.xw(e.n0,e);L.w1()}; LxM=function(e){var L="",c=j4M(e);c.indexOf("//")===0&&(c=e.XM.protocol+":"+c);var I=c.lastIndexOf("/base.js");I!==-1&&(L=c.substring(0,I+1));if(c=Error().stack)if(c=c.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))c=c[1],c.includes(L)||g.F7(Error("Player module URL mismatch: "+(c+" vs "+L+".")));L=new taH(e.CS,L);c={};OyM(L,(c.destroyed=function(){e.onApiChange()},c)); return L}; eW$=function(e){if(e.XM.storeUserVolume){e=g.iS("yt-player-volume")||{};var L=e.volume;e={volume:isNaN(L)?100:g.j5(Math.floor(L),0,100),muted:!!e.muted}}else e={volume:100,muted:e.XM.mute};return e}; iK=function(e){e.mediaElement=e.XM.deviceIsAudioOnly?new g.Lm(g.ql("AUDIO")):Pe.pop()||new g.Lm(g.ql("VIDEO"));g.l(e,e.mediaElement);e.Qe().setMediaElement(e.mediaElement);try{e.XM.g0?(e.bj&&e.events.j6(e.bj),e.bj=e.events.C(e.mediaElement,"volumechange",e.G__)):(e.mediaElement.YQ(e.vU.muted),e.mediaElement.setVolume(e.vU.volume/100))}catch(B){e.a9("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(B&&typeof B==="object"&&"message"in B&&typeof B.message==="string"&&B.message.replace(/[;:,]/g, "_")));return}g.fv(e.X0);hWc(e);var L=e.template,c=e.mediaElement.IT();L.rT=c;L.Wi=!1;L.rT.parentNode||z$(L.hk,L.rT,0);L.Vc=new g.$r(0,0,0,0);ESr(L);fy(L);c=L.rT;g.Y4(c,"video-stream");g.Y4(c,g.qB.MAIN_VIDEO);var I=L.app.S();I.mR&&c.setAttribute("data-no-fullscreen","true");I.Y("html5_local_playsinline")?"playsInline"in tQ()&&(c.playsInline=!0):I.Z0&&(c.setAttribute("webkit-playsinline",""),c.setAttribute("playsinline",""));I.iZ&&L.rT&&L.C(c,"click",c.play,c);try{e.mediaElement.activate()}catch(B){e.a9("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(B&&typeof B==="object"&&"message"in B&&typeof B.message==="string"&&B.message.replace(/[;:,]/g,"_")))}}; uXc=function(e){if(!RWc(e)){var L=e.aT().Nw();L&&(L=L.Dq(),L instanceof Promise&&L.catch(function(){})); Gg(e,bc(e.getPlayerStateObject()))}}; hWc=function(e){var L=e.mediaElement;W1()?e.X0.C(L,"webkitpresentationmodechanged",e.F1W):window.document.pictureInPictureEnabled&&(e.X0.C(L,"enterpictureinpicture",function(){e.g4(!0)}),e.X0.C(L,"leavepictureinpicture",function(){e.g4(!1)})); jG&&(e.X0.C(L,"webkitbeginfullscreen",function(){e.xk(3)}),e.X0.C(L,"webkitendfullscreen",function(){e.xk(0)}))}; tUx=function(e,L){var c=L.getPlayerType(),I=e.Vo.Z[c]||null;L!==e.aT()&&L!==I&&(I==null||I.dispose(),e.Vo.Z[c]=L)}; OVn=function(e,L){L=L===void 0?!0:L;e.logger.debug("start clear presenting player");var c;if(c=e.gq){c=e.gq;var I=e.mediaElement;c=!!I&&I===c.mediaElement}c&&(e.yx(),iK(e));c=e.Qe();c.yx(!L);c.xG(e.XH,e);c.getPlayerType()!==1&&c.dispose();L=e.Vo;L.K=L.X;xF(L);e.logger.debug("finish clear presenting player")}; g.q8H=function(e,L,c,I){var B=e.j5;L===2&&(B=new Xer(e.XM));return new g.uQ(e.XM,L,B,e.template,function(x,S,h){e.CS.publish(x,S,h)},function(){return e.CS.getVisibilityState()},e.visibility,e,c,I)}; bK=function(e,L,c,I,B){e=g.q8H(e,L,c,B);e=new g.eS(e);I&&e.w1();return e}; gY=function(e,L){return e.xf(L)?e.aT():L}; kF=function(e,L){var c=e.Qe();return L===e.aT()&&e.xf(L)&&e.xf(c)?c:L}; MUM=function(e){e.logger.debug("start application playback");if(e.aT().getPlayerState().isError())e.logger.debug("start application playback done, player in error state");else{var L=D3(e);e.hq().isLoaded();L&&e.gX(6);TXT(e);byM(e.NU)||Wxx(e)}}; Wxx=function(e){if(!D3(e)){var L=jP(e.NU);L&&!L.created&&qkc(e.NU)&&(e.logger.debug("reload ad module"),L.create())}}; TXT=function(e){e.logger.debug("start presenter playback");var L=e.getVideoData(),c=e.NU;byM(c)||c.wU();!bC&&c.V.Y("html5_allow_asmjs")&&wbf(c);pm(c,"embed");pm(c,"kids");pm(c,"remote");pm(c,"miniplayer");pm(c,"offline");pm(c,"unplugged");pm(c,"ypc",!1,!0);pm(c,"ypc_clickwrap",!1,!0);pm(c,"yto",!1,!0);pm(c,"webgl",!1,!0);iyM(c)||(pm(c,"captions",!0),pm(c,"endscreen"),c.e_(),pm(c,"creatorendscreen",!0));c.l1();e.CS.publish("videoready",L)}; wY=function(e){e=e.hq();e.Hd();return BS(e)}; o3c=function(e){e.logger.debug("start prepare initial playback");e.Qn();var L=e.CP;iK(e);e.events.C(window,"resize",e.T0l);var c=e.hq();e.CS.oy("onVolumeChange",e.vU);if(L&&ew6(L)){var I=to(e.XM);I&&!e.yy&&(L.fetch=0);var B=g.Uh(e.XM);B&&!e.yy&&(L.fetch=0);JM(e,L);g.Uh(e.XM)&&e.j5.tick("ep_pr_s");if(!I||e.yy)if(B&&!e.yy)zWR(e);else if(!c.Hd())e.playlist.onReady(function(){Vh(e)})}e.R$(e.aT(),!1,!0); g.E(e.aT().getPlayerState(),128)||(L=guH(!e.XM.deviceIsAudioOnly),L==="fmt.noneavailable"?e.a9("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):L==="html5.missingapi"?e.a9(L,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):c&&c.Hd()&&wY(e)&&(e.XM.tj||e.XM.Fk)?Cy(e):c.aC?e.CS.mutedAutoplay({durationMode:c.mutedAutoplayDurationMode}):g.iS("yt-player-playback-on-reload")?(g.et("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!e.XM.Gm}),g.bS("yt-player-playback-on-reload",!1), Cy(e)):f8(e.XM)||stn(e),g.T3(e.XM)||tb(e.XM)==="MWEB"?(g.HI(g.PI(),function(){ak(e)}),g.HI(g.PI(),function(){GWc()})):(ak(e),GWc()),e.logger.debug("finish prepare initial playback"))}; ak=function(e){if(!e.Y("use_rta_for_player"))if(e.Y("fetch_att_independently"))g.HT(e.sO);else{var L=e.getVideoData().botguardData;L&&g.YB(L,e.XM,e.getVideoData().er||"")}}; stn=function(e){e.logger.debug("start initialize to CUED mode");e.CS.publish("initializingmode");e.gX(2);pm(e.NU,"remote");pm(e.NU,"miniplayer");e.logger.debug("initialized to CUED mode")}; Cy=function(e){e.logger.debug("start initialize application playback");var L=e.aT();if(g.E(L.getPlayerState(),128))return!1;L=L.getVideoData();wY(e)&&e.XM.Fk&&(Pe.length&&e.F3?(NP(e,{muted:!1,volume:e.vU.volume},!1),m6(e,!1)):Pe.length||e.vU.muted||(NP(e,{muted:!0,volume:e.vU.volume},!1),m6(e,!0)));wY(e)&&g.Uh(e.XM)&&L.mutedAutoplay&&(NP(e,{muted:!0,volume:e.vU.volume},!1),m6(e,!0));L.Gb&&NP(e,{muted:!0,volume:e.vU.volume},!1);v3J(e,1,L,!1);var c=e.aT();e.CS.publish("initializingmode");e.R$(c);e.gX(3); var I;if(!(I=!e.XM.Il)){if(I=e.gq){I=e.gq;var B=e.mediaElement;I=!!B&&B===I.mediaElement}I=I&&e.FN}I&&(e.yx(),iK(e),c.setMediaElement(e.mediaElement));c.Cs();if(g.E(c.getPlayerState(),128))return!1;L.a8||Gg(e,3);return e.FN=!0}; D3=function(e){e=HS(e.NU);return!!e&&e.loaded}; frH=function(e,L){if(!e.By)return!1;var c=e.By.startTimeMs*.001-1,I=e.By.endTimeMs*.001;e.By.type==="repeatChapter"&&I--;return Math.abs(L-c)<=1E-6||Math.abs(L-I)<=1E-6||L>=c&&L<=I}; Adv=function(e){var L=e.Qe();A1(L.getVideoData())&&!L.m9()&&(L=yh(e)*1E3-e.getVideoData().Jh,e.Y("html5_gapless_new_slr")?(e=e.Mc,Z3(e.app,"gaplessshortslooprange"),L=new g.pC(0,L,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(e=e.app.Qe())&&e.addCueRange(L)):e.setLoopRange({startTimeMs:0,endTimeMs:L,type:"shortsLoop"}))}; FxR=function(e){var L=e.aT();if(!(g.E(L.getPlayerState(),64)&&e.hq().isLivePlayback&&e.By.startTimeMs<5E3)){if(e.By.type==="repeatChapter"){var c,I=(c=shM(e.qx()))==null?void 0:c.Wv(),B;c=(B=e.getVideoData())==null?void 0:B.Fk;I instanceof g.BP&&c&&(B=c[vP(c,e.By.startTimeMs)],I.renderChapterSeekingAnimation(0,B.title));isNaN(Number(e.By.loopCount))?e.By.loopCount=0:e.By.loopCount++;e.By.loopCount===1&&e.CS.fS("innertubeCommand",e.getVideoData().A2)}I={Ww:"application_loopRangeStart"};if(e.By.type=== "clips"||e.By.type==="shortsLoop")I.seekSource=58;L.seekTo(e.By.startTimeMs*.001,I)}}; rdc=function(e,L){var c=e.CS.getAvailablePlaybackRates();L=Number(L.toFixed(2));e=c[0];c=c[c.length-1];L<=e?L=e:L>=c?L=c:(e=Math.floor(L*100+.001)%5,L=e===0?L:Math.floor((L-e*.01)*100+.001)/100);return L}; yh=function(e,L){L=e.MU({playerType:L});if(!L)return e.Vo.X.wP();L=gY(e,L);return py(e,L.wP(),L)}; py=function(e,L,c){if(e.xf(c)&&(c=c.getVideoData(),!$F(e))){e=e.Pw;for(var I=g.f(e.K),B=I.next();!B.done;B=I.next())if(B=B.value,c.d0===B.d0){L+=B.hw/1E3;break}I=L;e=g.f(e.K);for(B=e.next();!B.done;B=e.next()){B=B.value;if(c.d0===B.d0)break;var x=B.hw/1E3;if(x1&&(B=!1);if(!e.fW||B!==L){c=c.lock(B?"portrait":"landscape");if(c!=null)c["catch"](function(){}); e.fW=!0}}else e.fW&&(e.fW=!1,c.unlock())}; dY=function(e,L,c){e.CS.publish(L,c);var I=g.R2(e.XM)||g.L8(e.XM)||g.DF(e.XM);if(c&&I){switch(L){case "cuerangemarkersupdated":var B="onCueRangeMarkersUpdated";break;case "cuerangesadded":B="onCueRangesAdded";break;case "cuerangesremoved":B="onCueRangesRemoved"}B&&e.CS.fS(B,c.map(function(x){return{getId:function(){return this.id}, end:x.end,id:x.getId(),namespace:x.namespace==="ad"?"ad":"",start:x.start,style:x.style,visible:x.visible}}))}}; Uk=function(e,L,c,I,B,x){c=c===void 0?!0:c;var S=e.MU({playerType:B});if(!S||(S.getPlayerType()!==2||e.xf(S))&&!g.QE(S.getVideoData())){var h=e.Vo.uE;h?h.seekTo(L,{vB:!c,Zu:I,Ww:"application",seekSource:x}):(S&&S===e.aT()&&e.By&&!frH(e,L)&&e.setLoopRange(null),e.seekTo(L,c,I,B,x))}}; ppf=function(e,L,c,I){c&&(e.yx(),iK(e));c=e.Qe();c.Wl(L);var B=e.getVideoData(),x={};x.video_id=B.videoId;x.adformat=B.adFormat;B.isLivePlayback||(x.start=c.getCurrentTime(),x.resume="1");B.isLivePlayback&&J1(B)&&g.rw(e.XM)&&(x.live_utc_start=c.sR(),x.resume="1");B.Ve&&(x.vvt=B.Ve);B.j&&(x.vss_credentials_token=B.j,x.vss_credentials_token_type=B.Xd);B.oauthToken&&(x.oauth_token=B.oauthToken);x.autoplay=1;x.reload_count=B.gT+1;x.reload_reason=L;B.zT&&(x.unplugged_partner_opt_out=B.zT);B.L6&&(x.ypc_is_premiere_trailer= B.L6);B.playerParams&&(x.player_params=B.playerParams);e.loadVideoByPlayerVars(x,void 0,!0,void 0,void 0,I);L==="signature"&&e.SW&&Wxx(e)}; $nc=function(e,L){e.hq().autonavState=L;g.bS("yt-player-autonavstate",L);e.CS.publish("autonavchange",L)}; jtM=function(e){var L=e.getVideoData().rp,c=e.XM.Sl,I=e.isInline()&&!e.getVideoData().Au,B=e.mediaElement;L||c||I?B.dU():(B.mM(),NP(e,e.vU))}; Hb=function(e){var L=jP(e.qx());L&&L.created&&(e.logger.debug("reset ad module"),L.destroy())}; $F=function(e){return e.getVideoData().enableServerStitchedDai&&!!e.SW}; HVn=function(e,L){L.bounds=e.getBoundingClientRect();for(var c=g.f(["display","opacity","visibility","zIndex"]),I=c.next();!I.done;I=c.next())I=I.value,L[I]=dF(e,I);L.hidden=!!e.hidden}; j4M=function(e){var L=e.webPlayerContextConfig.trustedJsUrl;return L?Tw(L).toString():e.webPlayerContextConfig.jsUrl}; lrn=function(e,L){var c=e.MU({playerType:1});if(c){if(c.getVideoData().clientPlaybackNonce===L)return c;if((e=e.Ih.X)&&e.getVideoData().clientPlaybackNonce===L)return e}return null}; cdn=function(e){function L(I){return GR(JMn(e.NU),function(B){return B.SY(I)})} e.j5.tick("wasm_s");var c=MsH(e.webPlayerContextConfig.wasmModuleUrl,TYJ(e.NU)?L:void 0,e.va.bind(e));c==null||GR(c,function(I){e.j5.tick(I.X?"wasm_fa":"wasm_fw")},function(){e.j5.tick("wasm_ferr")}); dmx(e.XM,c)}; PuH=function(e){return e.name==="TypeError"&&e.stack.includes("/s/player/")&&V2()<=105}; Qtc=function(e){return e.isTimeout?"NO_BID":"ERR_BID"}; dnf=function(){var e=null;JUT().then(function(L){return e=L},function(L){return e=Qtc(L)}); return e}; Unx=function(){var e=a$(1E3,"NO_BID");return g.wT(d3r([JUT(),e]).XR(Qtc),function(){e.cancel()})}; Ek=function(e){return e.IU?g.Vu(g.J7(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; XH=function(e){this.player=e;this.Z=this.X=1}; Kxv=function(e,L,c,I,B,x){L.client||(L.client={});e.player.S().Y("h5_remove_url_for_get_ad_break")||(L.client.originalUrl=c);var S=YJ(c),h=g.hp(c)?!1:!0;(S||h)&&typeof Intl!=="undefined"&&(L.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);h=g.hp(c)?!1:!0;if(S||h||I!==""){var R={};c=QJ(IC(I)).split("&");var u=new Map;c.forEach(function(t){t=t.split("=");t.length>1&&u.set(t[0].toString(),decodeURIComponent(t[1].toString()))}); u.has("bid")&&(R.bid=u.get("bid"));R.params=[];E36.forEach(function(t){u.has(t)&&(t={key:t,value:u.get(t)},R.params.push(t))}); Xpx(e,R);L.adSignalsInfo=R}L.client.unpluggedAppInfo||(L.client.unpluggedAppInfo={});L.client.unpluggedAppInfo.enableFilterMode=!1;c=B.X.cosver;c!=null&&c!=="cosver"&&(L.client.osVersion=c);c=B.X.cplatform;c!=null&&c!=="cplatform"&&c!==""&&(L.client.platform=c);c=B.X.cmodel;c!=null&&c!=="cmodel"&&(L.client.deviceModel=c);c=B.X.cplayer;c!=null&&c!=="cplayer"&&(L.client.playerType=c);c=B.X.cbrand;c!=null&&c!=="cbrand"&&(L.client.deviceMake=c);L.user||(L.user={});L.user.lockedSafetyMode=!1;(B.Y("embeds_web_enable_iframe_api_send_full_embed_url")|| B.Y("embeds_enable_autoplay_and_visibility_signals"))&&g.eb(B)&&xiT(L,x,e.player.getPlayerState(1))}; eGn=function(e,L){var c=!1;if(L==="")return c;L.split(",").forEach(function(I){var B={},x={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},S="ACTIVE";I[0]==="!"&&(I=I.substring(1),S="INACTIVE");I=I.split("-");I.length<3||(I[0]in Y8n&&(x.clientName=Y8n[I[0]]),I[1]in n3n&&(x.platform=n3n[I[1]]),x.applicationState=S,x.clientVersion=I.length>2?I[2]:"",B.remoteClient=x,e.remoteContexts?e.remoteContexts.push(B):e.remoteContexts=[B],c=!0)}); return c}; cCf=function(e){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in LzM))return!1;e=e.split(RegExp("[:&]"));var L=LzM.FLAG_AUTO_CAPTIONS_DEFAULT_ON,c="f"+(1+Math.floor(L/31)).toString();L=1<=2?S[1]:"";var h=BtM.test(L),R=xCn.exec(L);R=R!=null&&R.length>=2?R[1]:"";var u=oG$.exec(L);u=u!=null&&u.length>=2&&!Number.isNaN(Number(u[1]))?Number(u[1]):1;var t=SbR.exec(L);t=t!=null&&t.length>=2?t[1]:"0";var O=xY(e.player.S().PU),q=e.player.getVideoData(1),T=g.l1(q.Y9,!0),W="BISCOTTI_ID"in c?c.BISCOTTI_ID:"";Kxv(e,T,L,W.toString(),e.player.S(), q);q={splay:!1,lactMilliseconds:c.LACT.toString(),playerHeightPixels:Math.trunc(c.P_H),playerWidthPixels:Math.trunc(c.P_W),vis:Math.trunc(c.VIS),signatureTimestamp:20278,autonavState:Ek(e.player.S())};I&&(I={},eGn(I,c.YT_REMOTE)&&(q.mdxContext=I));if(I=rCf.includes(O)?void 0:g.ka("PREF")){for(var A=I.split(RegExp("[:&]")),b=0,J=A.length;b1&&w[1].toUpperCase()==="TRUE"){T.user.lockedSafetyMode=!0;break}}q.autoCaptionsDefaultOn= cCf(I)}L=hG$.exec(L);(L=L!=null&&L.length>=2?L[1]:"")&&R&&(T.user.credentialTransferTokens=[{token:L,scope:"VIDEO"}]);L={contentPlaybackContext:q};S={adBlock:Math.trunc(c.AD_BLOCK),params:S,breakIndex:u,breakPositionMs:t,clientPlaybackNonce:c.CPN,topLevelDomain:O,isProxyAdTagRequest:h,context:T,adSignalsInfoString:QJ(IC(W.toString())),overridePlaybackContext:L};B!==void 0&&(S.cueProcessedMs=Math.round(B).toString());R&&(S.videoId=R);c.LIVE_TARGETING_CONTEXT&&(S.liveTargetingParams=c.LIVE_TARGETING_CONTEXT); c.AD_BREAK_LENGTH&&(S.breakLengthMs=Math.trunc(c.AD_BREAK_LENGTH*1E3).toString());x&&(S.driftFromHeadMs=x.toString());S.currentMediaTimeMs=Math.round(e.player.getCurrentTime(1)*1E3);(e=e.player.getGetAdBreakContext())&&(S.getAdBreakContext=e);return S}; upn=function(){XH.apply(this,arguments)}; tq6=function(e,L,c,I,B){var x=c.ew;var S=c.dM;var h=e.player.S().BU,R=0;c.cueProcessedMs&&S&&!x&&(c=S.end-S.start,c>0&&(R=Math.floor(c/1E3)));var u={AD_BLOCK:B,AD_BREAK_LENGTH:x?x.jW:R,AUTONAV_STATE:Ek(e.player.S()),CA_TYPE:"image",CPN:e.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:e.player.t1()*1E3,LACT:qc(),LIVE_INDEX:x?e.Z++:1,LIVE_TARGETING_CONTEXT:x&&x.context?x.context:"",MIDROLL_POS:S?Math.round(S.start/1E3):0,MIDROLL_POS_MS:S?Math.round(S.start):0,VIS:e.player.getVisibilityState(), P_H:e.player.LS().IF().height,P_W:e.player.LS().IF().width,YT_REMOTE:h?h.join(","):""},t=c3(LQ);Object.keys(t).forEach(function(O){t[O]!=null&&(u[O.toUpperCase()]=t[O].toString())}); I!==""&&(u.BISCOTTI_ID=I);I={};eG(L)&&(I.sts="20278",(e=e.player.S().forcedExperiments)&&(I.forced_experiments=e));return KT(g.FV(L,u),I)}; ODn=function(e,L){var c=e.player.S(),I,B=(I=e.player.getVideoData(1))==null?void 0:I.oauthToken;return g.bj(c,B).then(function(x){if(x&&nT()){var S=Yb();n2(S,x)}return g.w_(e.player.gg(S),L,"/youtubei/v1/player/ad_break").then(function(h){return h})})}; qbH=function(e){this.Tm=e}; TtJ=function(e){this.V=e}; Wzc=function(e){this.Tm=e}; zGM=function(e){g.p.call(this);this.X=e;this.Vf=MqT(this)}; MqT=function(e){var L=new gv$(e.X.l4);g.l(e,L);e=[new qbH(e.X.Tm),new TtJ(e.X.V),new Wzc(e.X.Tm),new Td(e.X.Q2,e.X.rQ),new M7,new vC(e.X.zr,e.X.ut,e.X.Tm),new WC,new q7];e=g.f(e);for(var c=e.next();!c.done;c=e.next())krM(L,c.value);e=g.f(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(c=e.next();!c.done;c=e.next())zd(L,c.value,function(){}); return L}; Ky=function(e){var L=e.M0,c=e.ZY;e=e.hm;var I=new PIH,B={SG:new iNn(L.get(),c),ZY:c};return{Mx:new M5(c,e,L,B),context:B,NO:I}}; YF=function(e,L,c,I,B){g.p.call(this);this.K=L;this.Be=c;this.M0=I;this.Jq=B;this.listeners=[];var x=new sR(this);g.l(this,x);x.C(e,"internalAbandon",this.D0_);this.addOnDisposeCallback(function(){g.fv(x)})}; ny=function(e){this.V=e;this.adVideoId=this.X=this.videoId=this.adCpn=this.contentCpn=null;this.B=!0;this.K=this.Z=!1;this.adFormat=null;this.G="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; seR=function(e){e.contentCpn=null;e.adCpn=null;e.videoId=null;e.adVideoId=null;e.adFormat=null;e.G="AD_PLACEMENT_KIND_UNKNOWN";e.actionType="unknown_type";e.Z=!1;e.K=!1}; vGv=function(e,L){e=g.f(L);for(L=e.next();!L.done;L=e.next())if((L=L.value.renderer)&&(L.instreamVideoAdRenderer||L.linearAdSequenceRenderer||L.sandwichedLinearAdRenderer||L.instreamSurveyAdRenderer)){AD("ad_i");g.FT({isMonetized:!0});break}}; fvJ=function(e){var L;(L=e.V.getVideoData(1))!=null&&L.Gm&&(e.K=!1,L={},e.X&&e.videoId&&(L.cttAuthInfo={token:e.X,videoId:e.videoId}),be("video_to_ad",L))}; Bw=function(e){e.K=!1;var L={};e.X&&e.videoId&&(L.cttAuthInfo={token:e.X,videoId:e.videoId});be("ad_to_video",L);ACv(e)}; ACv=function(e){if(e.Z)if(e.G==="AD_PLACEMENT_KIND_START"&&e.actionType==="video_to_ad")zp("video_to_ad");else{var L={adBreakType:ai(e.G),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:e.videoStreamType};e.actionType==="ad_to_video"?(e.contentCpn&&(L.targetCpn=e.contentCpn),e.videoId&&(L.targetVideoId=e.videoId)):(e.adCpn&&(L.targetCpn=e.adCpn),e.adVideoId&&(L.targetVideoId=e.adVideoId));e.adFormat&&(L.adType=e.adFormat);e.contentCpn&& (L.clientPlaybackNonce=e.contentCpn);e.videoId&&(L.videoId=e.videoId);e.adCpn&&(L.adClientPlaybackNonce=e.adCpn);e.adVideoId&&(L.adVideoId=e.adVideoId);g.FT(L,e.actionType);e.V.S().experiments.N0("html5_ads_csi_qoes")&&(L=e.V.w$(e.actionType==="ad_to_video"?1:2),L=(0,g.zI)()-1E3*L,Gp("qoes",L,e.actionType))}}; eQ=function(e){g.p.call(this);this.V=e;this.X=new Map;this.K=new sR(this);g.l(this,this.K);this.K.C(this.V,g.jh("ad"),this.onCueRangeEnter,this);this.K.C(this.V,g.Hq("ad"),this.onCueRangeExit,this)}; Fzc=function(e,L,c,I,B,x){g.pC.call(this,L,c,{id:e,namespace:"ad",priority:B,visible:I,associatedClipId:x})}; LY=function(e){this.V=e}; bDH=function(e,L){e.V.cueVideoByPlayerVars(L,2)}; cG=function(e){this.V=e}; IB=function(e){this.V=e;g.X3(this.V.S().experiments,"tv_pacf_logging_sample_rate")}; iDf=function(e){return Jz(e,"html5_ssap_play_cached_preroll")}; oK=function(e,L){L=L===void 0?!1:L;return e.V.S().Y("html5_ssap_force_ads_ctmp")?!0:(L||e.V.S().oT())&&e.V.S().Y("html5_ssap_pacf_qoe_ctmp")}; BG=function(e){var L;return(L=e.V.getVideoData(1)==null?void 0:!1)!=null?L:!1}; Jz=function(e,L){return e.V.S().Y(L)}; GqT=function(e){return e.V.S().Y("substitute_ad_cpn_macro_in_ssdai")}; au=function(e){var L,c,I;return((L=e.V.getVideoData(1).getPlayerResponse())==null?void 0:(c=L.playerConfig)==null?void 0:(I=c.daiConfig)==null?void 0:I.enableServerStitchedDai)||!1}; m7H=function(e){return e.V.S().Y("html5_enable_vod_slar_with_notify_pacf")}; gGc=function(e){return e.V.S().Y("html5_recognize_predict_start_cue_point")}; Oy=function(e){return e.V.S().experiments.N0("enable_desktop_player_underlay")}; kqT=function(e){return e.V.S().experiments.N0("html5_load_empty_player_in_media_break_sub_lra")}; d1=function(e){return e.V.S().experiments.N0("html5_load_ads_instead_of_cue")}; UP=function(e){return e.V.S().experiments.N0("html5_preload_ads")}; DCx=function(e){return e.V.S().experiments.N0("should_ignore_cuepoints_during_lifa_preroll")}; us=function(e){return e.V.S().experiments.N0("enable_ads_control_flow_deterministic_id_generation")}; wWr=function(e){return e.V.S().experiments.N0("enable_desktop_discovery_video_abandon_pings")||g.Oj(e.V.S())}; JCx=function(e){return e.V.S().experiments.N0("enable_progres_commands_lr_feeds")}; NS=function(e){return e.V.S().experiments.N0("html5_cuepoint_identifier_logging")}; lef=function(e){e=e.V.getVideoData(1);return!!e&&e.Y("html5_preload_first_vod_video_ad")&&!e.isDaiEnabled()&&!e.isLivePlayback}; VqT=function(e){return e.V.S().experiments.N0("html5_ssdai_enable_media_end_cue_range")}; C0n=function(e){switch(e){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}}; avM=function(){g.Yg.call(this);var e=this;this.X={};this.addOnDisposeCallback(function(){for(var L=g.f(Object.keys(e.X)),c=L.next();!c.done;c=L.next())delete e.X[c.value]})}; xh=function(){if(NtT===null){NtT=new avM;vA(P9).K="b";var e=vA(P9),L=yZ(e)=="h"||yZ(e)=="b",c=!(cO(),!1);L&&c&&(e.B=!0,e.j=new trH)}return NtT}; mCM=function(e,L,c){e.X[L]=c}; yCx=function(e){switch(e){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}}; oB=function(e,L,c){this.Be=e;this.V=L;this.ZY=c;this.K=new Set;this.X=new Map;xh().subscribe("adactiveviewmeasurable",this.MV,this);xh().subscribe("adfullyviewableaudiblehalfdurationimpression",this.wv,this);xh().subscribe("adviewableimpression",this.PG,this);xh().subscribe("adaudioaudible",this.WG,this);xh().subscribe("adaudiomeasurable",this.tJ,this)}; rl=function(e,L,c){var I=c.NL,B=c.w5,x=c.listener,S=c.e2;c=c.Se===void 0?!1:c.Se;if(e.X.has(L))Ir("Unexpected registration of layout in LidarApi");else{if(S){if(e.K.has(S))return;e.K.add(S)}e.X.set(L,x);GG(cO().II,"fmd",1);AYn(vA(P9),I);var h=c?L:void 0;mCM(xh(),L,{WO:function(){if(!B)return{};var R=e.V.getPresentingPlayerType(!0),u;return(u=e.V.getVideoData(R))!=null&&u.isAd()?{currentTime:e.Be.get().getCurrentTimeSec(R,!1,h),duration:B,isPlaying:SQ(e.Be.get(),R).isPlaying(),isVpaid:!1,isYouTube:!0, volume:e.Be.get().isMuted()?0:e.Be.get().getVolume()/100}:{}}})}}; h3=function(e,L){e.X.has(L)?(e.X.delete(L),delete xh().X[L]):Ir("Unexpected unregistration of layout in LidarApi")}; ZDT=function(e,L){if(e.V.isLifaAdPlaying()){var c=e.V.CB(!0,!0);e.XS(L,c.width*.5*1.1,c.height*.25*1.1,c.width*.5*.9,c.height*.5*.9)}}; jen=function(e,L,c){var I={};pWT(e,I,L,c);$CJ(I);I.LACT=RB(function(){return qc().toString()}); I.VIS=RB(function(){return e.getVisibilityState().toString()}); I.SDKV="h.3.0";I.VOL=RB(function(){return e.isMuted()?"0":Math.round(e.getVolume()).toString()}); I.VED="";return I}; HDx=function(e,L){var c={};if(L||!e||!e.kind)return c;if(e.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||e.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!e.adTimeOffset||!e.adTimeOffset.offsetStartMilliseconds)return g.A9(Error("malformed AdPlacementConfig")),c;c.MIDROLL_POS=RB(Jj(Math.round(ag(e.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else c.MIDROLL_POS=RB(Jj("0"));return c}; RB=function(e){return{toString:function(){return e()}}}; lv$=function(e,L,c){function I(h,R){(R=c[R])&&(x[h]=R)} function B(h,R){(R=c[R])&&(x[h]=S(R))} if(!c||g.qQ(c))return e;var x=Object.assign({},e),S=L?encodeURIComponent:function(h){return h}; B("DV_VIEWABILITY","doubleVerifyViewability");B("IAS_VIEWABILITY","integralAdsViewability");B("MOAT_INIT","moatInit");B("MOAT_VIEWABILITY","moatViewability");I("GOOGLE_VIEWABILITY","googleViewability");I("VIEWABILITY","viewability");return x}; pWT=function(e,L,c,I){L.CPN=RB(function(){var B;(B=e.getVideoData(1))?B=B.clientPlaybackNonce:(g.F7(Error("Video data is null.")),B=null);return B}); L.AD_MT=RB(function(){if(I!=null)var B=I;else{var x=c;e.S().Y("html5_ssap_use_cpn_to_get_time")||(x=void 0);if(e.S().Y("enable_h5_shorts_ad_fill_ad_mt_macro")||e.S().Y("enable_desktop_discovery_pings_ad_mt_macro")||g.Oj(e.S())){var S=e.getPresentingPlayerType(!0),h;B=((h=e.getVideoData(S))==null?0:h.isAd())?P06(e,S,x):0}else B=P06(e,2,x)}return QeM(B)}); L.MT=RB(function(){return QeM(e.getCurrentTime(1,!1))}); L.P_H=RB(function(){return e.LS().IF().height.toString()}); L.P_W=RB(function(){return e.LS().IF().width.toString()}); L.PV_H=RB(function(){return e.LS().getVideoContentRect().height.toString()}); L.PV_W=RB(function(){return e.LS().getVideoContentRect().width.toString()})}; QeM=function(e){return Math.round(Math.max(0,e*1E3)).toString()}; $CJ=function(e){e.CONN=RB(Jj("0"));e.WT=RB(function(){return Date.now().toString()})}; P06=function(e,L,c){return c!==void 0?e.getCurrentTime(L,!1,c):e.getCurrentTime(L,!1)}; dCH=function(){}; UC6=function(e,L,c,I,B){var x,S,h,R,u,t,O,q,T,W,A,b,J;g.Z(function(w){switch(w.K){case 1:x=!!L.scrubReferrer;S=g.FV(L.baseUrl,lv$(c,x,I));h={};if(!L.headers){w.Iq(2);break}R=e.G();if(!R.X){u=R.getValue();w.Iq(3);break}return g.a(w,R.X,4);case 4:u=w.X;case 3:t=u;O=g.f(L.headers);for(q=O.next();!q.done;q=O.next())switch(T=q.value,T.headerType){case "VISITOR_ID":g.Zu("VISITOR_DATA")&&(h["X-Goog-Visitor-Id"]=g.Zu("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.Zu("EOM_VISITOR_DATA")&&(h["X-Goog-EOM-Visitor-Id"]= g.Zu("EOM_VISITOR_DATA"));break;case "USER_AUTH":t&&(h.Authorization="Bearer "+t);break;case "PLUS_PAGE_ID":(W=e.B())&&(h["X-Goog-PageId"]=W);break;case "AUTH_USER":A=e.X();!t&&A&&(h["X-Goog-AuthUser"]=A);break;case "DATASYNC_ID":if(b=void 0,(b=e.Z())==null?0:b.N0("enable_datasync_id_header_in_web_vss_pings"))J=e.K(),YJ(S)&&g.Zu("LOGGED_IN")&&J&&(h["X-YouTube-DataSync-Id"]=J)}"X-Goog-EOM-Visitor-Id"in h&&"X-Goog-Visitor-Id"in h&&delete h["X-Goog-Visitor-Id"];case 2:g.gO(S,void 0,x,Object.keys(h).length!== 0?h:void 0,"",!0,B),g.AJ(w)}})}; EGH=function(e,L,c,I,B){this.G=e;this.B=L;this.X=c;this.K=I;this.Z=B}; XWr=function(e,L){this.X=e;this.ZY=L}; uY=function(e,L,c,I,B,x,S){var h=h===void 0?new EGH(function(){var R=e.S(),u=e.getVideoData(1);return g.bj(R,u?g.xb(u):"")},function(){return e.S().pageId},function(){return e.S().Gm},function(){var R; return(R=e.S().datasyncId)!=null?R:""},function(){return e.S().experiments}):h; this.V=e;this.K=L;this.e5=c;this.M0=I;this.Mx=B;this.ZY=x;this.NO=S;this.G=h;this.Z5=null;this.X=new Map;this.Z=new XWr(h,this.ZY)}; Ybn=function(e,L,c,I,B){var x=PF(e.K.get(),c);x?(c=ui(e,KzH(x),x,void 0,void 0,I),L.hasOwnProperty("baseUrl")?e.G.send(L,c):e.Z.send(L,c,{},B)):Ir("Trying to ping from an unknown layout",void 0,void 0,{layoutId:c})}; aan=function(e,L,c,I,B,x){I=I===void 0?[]:I;var S=PF(e.K.get(),L);if(S){var h=e.e5.get().iz(L,c),R=ui(e,KzH(S),S,B,x);I.forEach(function(u,t){u.baseUrl&&(e.Z.send(u.baseUrl,R,h,u.attributionSrcMode),u.serializedAdPingMetadata&&e.Mx.fG("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,S,new Oin(u,t),void 0,void 0,S.adLayoutLoggingData))})}else Ir("Trying to track from an unknown layout.",void 0,void 0,{layoutId:L, trackingType:c})}; Bx=function(e,L){e.V.sendVideoStatsEngageEvent(L,void 0,2)}; tt=function(e,L){g.et("adsClientStateChange",L)}; nGf=function(e,L){e.X.has(L.As())?Ir("Trying to register an existing AdErrorInfoSupplier."):e.X.set(L.As(),L)}; eXM=function(e,L){e.X.delete(L.As())||Ir("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; T5=function(e,L,c){typeof c==="string"?e.V.getVideoData(1).Ks(L,c):e.V.getVideoData(1).sW(L,c)}; KzH=function(e){var L=Hv(e.clientMetadata,"metadata_type_ad_placement_config");e=Hv(e.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:L,PZ:e}}; ui=function(e,L,c,I,B,x){var S=c?LBv(e):{},h=c?cZf(e,c.layoutId):{},R=Isc(e),u,t=B!=null?B:(u=w1(e.M0.get(),2))==null?void 0:u.clientPlaybackNonce;B=void 0;if(c){var O;if((O=e.NO.X.get(c.layoutId))==null?0:O.Se)B=c.layoutId}O={};e=Object.assign({},jen(e.V,B,I),HDx(L.adPlacementConfig,(c==null?void 0:c.renderingContent)!==void 0),h,S,R,(O.FINAL=RB(function(){return"1"}),O.AD_CPN=RB(function(){return t||""}),O)); (c==null?void 0:c.renderingContent)!==void 0||(e.SLOT_POS=RB(function(){return(L.PZ||0).toString()})); c={};x=Object.assign({},e,x);e=g.f(Object.values(Bgc));for(I=e.next();!I.done;I=e.next())I=I.value,S=x[I],S!=null&&S.toString()!=null&&(c[I]=S.toString());return c}; LBv=function(e){var L={},c,I=(c=e.Z5)==null?void 0:c.GN/1E3;I!=null&&(L.SURVEY_ELAPSED_MS=RB(function(){return Math.round(I*1E3).toString()})); L.SURVEY_LOCAL_TIME_EPOCH_S=RB(function(){return Math.round(Date.now()/1E3).toString()}); return L}; cZf=function(e,L){e=e.X.get(L);if(!e)return{};e=e.Ui();if(!e)return{};L={};return L.YT_ERROR_CODE=e.CZ.toString(),L.ERRORCODE=e.yp.toString(),L.ERROR_MSG=e.errorMessage,L}; Isc=function(e){var L={},c=e.V.getVideoData(1);L.ASR=RB(function(){var I;return(I=c==null?void 0:c.rX)!=null?I:null}); L.EI=RB(function(){var I;return(I=c==null?void 0:c.eventId)!=null?I:null}); return L}; t3=function(e,L,c){g.p.call(this);this.V=e;this.dX=L;this.ZY=c;this.listeners=[];this.xH=null;this.Fr=new Map;L=new g.zn(this);g.l(this,L);L.C(e,"videodatachange",this.hdY);L.C(e,"serverstitchedvideochange",this.QI$);this.qR=w1(this)}; w1=function(e,L){var c=e.V.getVideoData(L);return c?e.vu(c,L||e.V.getPresentingPlayerType(!0)):null}; xWM=function(e,L,c){var I=e.vu(L,c);e.qR=I;e.listeners.forEach(function(B){B.n5(I)})}; ot6=function(e){switch(e){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}}; Ol=function(e,L,c){g.p.call(this);this.V=e;this.M0=L;this.ZY=c;this.listeners=[];this.F8=[];this.X=function(){Ir("Called 'doUnlockPreroll' before it's initialized.")}; L=new sR(this);c=new g.zn(this);g.l(this,c);g.l(this,L);L.C(e,"progresssync",this.eTM);L.C(e,"presentingplayerstatechange",this.dx0);L.C(e,"fullscreentoggled",this.onFullscreenToggled);L.C(e,"onVolumeChange",this.onVolumeChange);L.C(e,"minimized",this.t9);L.C(e,"overlayvisibilitychange",this.Qy);L.C(e,"shortsadswipe",this.dP);L.C(e,"resize",this.Nx);c.C(e,g.jh("appad"),this.J_)}; qI=function(e){BG(e.ZY.get())||e.X()}; S2c=function(e,L){e.F8=e.F8.filter(function(c){return c!==L})}; Tz=function(e,L,c){return e.getCurrentTimeSec(L,c)}; WG=function(e,L){var c;L=(c=e.M0.get().Fr.get(L))!=null?c:null;if(L===null)return Ir("Expected ad video start time on playback timeline"),0;e=e.V.getCurrentTime(2,!0);return e0){var x=L.end.toString();B.forEach(function(S){(S=S.config&&S.config.adPlacementConfig)&&S.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&S.adTimeOffset&&S.adTimeOffset.offsetEndMilliseconds==="-1"&&S.adTimeOffset.offsetEndMilliseconds!==x&&(S.adTimeOffset.offsetEndMilliseconds=x)}); I.map(function(S){return g.Q(S,YP)}).forEach(function(S){var h; (S=S==null?void 0:(h=S.slotEntryTrigger)==null?void 0:h.mediaTimeRangeTrigger)&&S.offsetEndMilliseconds==="-1"&&(S.offsetEndMilliseconds=x)})}return{QR:B, adSlots:I,JY:!1,ssdaiAdsConfig:e.ssdaiAdsConfig}}; fY=function(e){g.p.call(this);this.V=e;this.listeners=[];this.X=new sR(this);g.l(this,this.X);this.X.C(this.V,"aduxclicked",this.onAdUxClicked);this.X.C(this.V,"aduxmouseover",this.yD);this.X.C(this.V,"aduxmouseout",this.cT);this.X.C(this.V,"muteadaccepted",this.Gme)}; t$c=function(e,L,c){L=g.Mt(L,function(I){return new HvR(I,c,I.id)}); e.V.fS("onAdUxUpdate",L)}; A3=function(e,L){e=g.f(e.listeners);for(var c=e.next();!c.done;c=e.next())L(c.value)}; FA=function(e,L){this.K=e;this.Z=L===void 0?!1:L;this.X={}}; O3T=function(e,L){var c=e.startSecs+e.jW;c=c<=0?null:c;if(c===null)return null;switch(e.event){case "start":case "continue":case "stop":break;case "predictStart":if(L)break;return null;default:return null}L=Math.max(e.startSecs,0);return{Uv:new Tl(L,c),DN:new Lw(L,c-L,e.context,e.identifier,e.event,e.X)}}; q2H=function(){this.X=[]}; JWM=function(e,L,c){var I=g.l7(e.X,L);if(I>=0)return L;L=-I-1;return L>=e.X.length||e.X[L]>c?null:e.X[L]}; bY=function(e,L,c){g.p.call(this);this.V=e;this.ZY=L;this.Tm=c;this.listeners=[];this.G=!1;this.QK=[];this.X=null;this.B=new FA(this,gGc(L.get()));this.Z=new q2H;this.K=null}; TgJ=function(e,L){e.QK.push(L);for(var c=!1,I=g.f(e.listeners),B=I.next();!B.done;B=I.next())c=B.value.zg(L)||c;e.G=c;NS(e.ZY.get())&&T5(e.Tm.get(),"onci","cpi."+L.identifier+";cpe."+L.event+";cps."+L.startSecs+";cbi."+c)}; M$M=function(e,L){tt(e.Tm.get(),{cuepointTrigger:{event:WBr(L.event),cuepointId:L.identifier,totalCueDurationMs:L.jW*1E3,playheadTimeMs:L.X,cueStartTimeMs:L.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:e.V.getVideoData(1).clientPlaybackNonce}})}; WBr=function(e){switch(e){case "unknown":return"CUEPOINT_EVENT_UNKNOWN";case "start":return"CUEPOINT_EVENT_START";case "continue":return"CUEPOINT_EVENT_CONTINUE";case "stop":return"CUEPOINT_EVENT_STOP";case "predictStart":return"CUEPOINT_EVENT_PREDICT_START";default:return t0(e,"Unexpected cuepoint event")}}; iY=function(e){this.V=e}; Gz=function(e){this.V=e}; zXx=function(e){switch(e){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:t0(e,"unknown transitionReason")}}; gl=function(){g.p.apply(this,arguments)}; sOT=function(e){this.V=e}; vtH=function(e,L,c,I,B){g.p.call(this);var x=this,S=bh(function(){return new Rh(x.ZY)}); g.l(this,S);var h=bh(function(){return new tR(S,x.ZY)}); g.l(this,h);var R=bh(function(){return new HF}); g.l(this,R);var u=bh(function(){return new $z(e)}); g.l(this,u);var t=bh(function(){return new OT(S,h,x.ZY)}); g.l(this,t);var O=bh(function(){return new zR}); g.l(this,O);this.D6=bh(function(){return new fY(L)}); g.l(this,this.D6);this.T_=bh(function(){return new Gu(B)}); g.l(this,this.T_);this.Uq=bh(function(){return new ny(L)}); g.l(this,this.Uq);this.K9=bh(function(){return new eQ(L)}); g.l(this,this.K9);this.Zp=bh(function(){return new LY(L)}); g.l(this,this.Zp);this.l4=bh(function(){return new cG(L)}); g.l(this,this.l4);this.ZY=bh(function(){return new IB(L)}); g.l(this,this.ZY);var q=bh(function(){return new vG(I)}); g.l(this,q);var T=bh(function(){return new KR(x.ZY)}); g.l(this,T);this.Jj=bh(function(){return new iY(L)}); g.l(this,this.Jj);this.Eh=bh(function(){return new DV}); g.l(this,this.Eh);this.M0=bh(function(){return new t3(L,O,x.ZY)}); g.l(this,this.M0);var W=Ky({M0:this.M0,ZY:this.ZY,hm:T}),A=W.context,b=W.NO;this.Mx=W.Mx;this.Jq=bh(function(){return new bY(L,x.ZY,x.Tm)}); g.l(this,this.Jq);this.aI=bh(function(){return new Gz(L)}); g.l(this,this.aI);this.Be=bh(function(){return new Ol(L,x.M0,x.ZY)}); g.l(this,this.Be);this.cR=bh(function(){return new gl}); g.l(this,this.cR);W=bh(function(){return new w2(S,t,h,x.ZY,T,"SLOT_TYPE_ABOVE_FEED",x.Be,x.vg,x.nj)}); g.l(this,W);this.mF=bh(function(){return new ww(x.ZY)}); this.e5=bh(function(){return new oB(x.Be,L,x.ZY)}); g.l(this,this.e5);this.Tm=bh(function(){return new uY(L,R,x.e5,x.M0,x.Mx,x.ZY,b)}); g.l(this,this.Tm);this.l2=new ZL(yF,kh,function(w,C,y,P){return tI(h.get(),w,C,y,P)},u,t,h,T,this.ZY,this.M0); g.l(this,this.l2);this.qU=new ph(u,W,c,this.ZY,e,this.M0,this.Be,this.Uq);g.l(this,this.qU);var J=new YF(L,this.qU,this.Be,this.M0,this.Jq);this.oO=bh(function(){return J}); this.CA=J;this.vg=new Ch(u,t,this.oO,this.Jq,this.Be,this.ZY,this.Tm,this.aI);g.l(this,this.vg);this.mI=new j2(u,t,this.K9,this.oO,A);g.l(this,this.mI);this.Vi=new KP(this.ZY,u,t,W,this.M0,this.mI,c,this.Zp);g.l(this,this.Vi);this.eX=bh(function(){return new EZ(q,h,T,x.ZY,x.Tm,x.Be,x.aI)}); g.l(this,this.eX);this.UF=bh(function(){return new X5}); g.l(this,this.UF);this.qO=new Xm(e,this.D6,this.ZY);g.l(this,this.qO);this.dT=new Kh(e);g.l(this,this.dT);this.pO=new Yz(e);g.l(this,this.pO);this.Q9=new eX(e,this.oO,A);g.l(this,this.Q9);this.Nv=new Lb(e,this.K9,this.Be,this.M0,A);g.l(this,this.Nv);this.Zt=new c$(e,this.M0);g.l(this,this.Zt);this.nj=new xB(e,this.Jq,this.Be,this.Tm,this.oO,this.vg);g.l(this,this.nj);this.jt=new Ih(e);g.l(this,this.jt);this.Y0=new hR(e);g.l(this,this.Y0);this.Ae=new B$(e);g.l(this,this.Ae);this.yF=new r8(e);g.l(this, this.yF);this.Y0=new hR(e);g.l(this,this.Y0);this.Zm=bh(function(){return new QF}); g.l(this,this.Zm);this.n6=bh(function(){return new d2(x.Be)}); g.l(this,this.n6);this.LC=bh(function(){return new LDM(x.D6,x.Tm,e,R,x.e5)}); g.l(this,this.LC);this.ZO=bh(function(){return new a0(x.Vi,u,S)}); g.l(this,this.ZO);this.jX=bh(function(){return new y1(x.ZY,x.Tm,x.jt,x.e5)}); g.l(this,this.jX);this.QB=bh(function(){return new At(e,x.Y0,x.jt,x.M0,x.aI,x.Be,x.cR,x.Tm,O,x.Jq,x.e5,x.mF,x.Zp,x.K9,x.Uq,x.l4,x.T_,x.Jj,x.ZY,R,A,b)}); g.l(this,this.QB);this.wI=bh(function(){return new TJc(x.Be,x.Tm,x.T_,x.ZY,x.e5,x.M0)}); g.l(this,this.wI);this.JI=bh(function(){return new cD$(x.D6,x.Be,x.Tm,R,x.e5,x.pO,x.yF,x.T_,x.ZY,c)}); g.l(this,this.JI);this.K_=bh(function(){return new cmc(x.D6,x.Tm,R)}); g.l(this,this.K_);this.P5=new sl(e,this.Eh,S);g.l(this,this.P5);this.OV={fJ:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Vi],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.vg],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.l2],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.qU],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.mI]]),I4:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.eX],["SLOT_TYPE_ABOVE_FEED",this.UF],["SLOT_TYPE_FORECASTING",this.UF], ["SLOT_TYPE_IN_PLAYER",this.UF],["SLOT_TYPE_PLAYER_BYTES",this.UF],["SLOT_TYPE_PLAYER_UNDERLAY",this.UF],["SLOT_TYPE_PLAYBACK_TRACKING",this.UF],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.UF]]),De:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.qO],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.qO],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.dT],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.dT],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.dT],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.dT],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.dT],["TRIGGER_TYPE_SLOT_ID_EXITED",this.dT],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.dT],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.dT],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.dT],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.dT],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.dT],["TRIGGER_TYPE_CLOSE_REQUESTED",this.pO],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Q9],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.Nv],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.Nv],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.Nv],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Nv],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Nv],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.Nv],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Nv],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Zt],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Zt],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.jt],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.Q9],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Ae],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.yF],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Y0],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.nj],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.nj],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.nj],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.nj],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.nj]]),d4:new Map([["SLOT_TYPE_ABOVE_FEED",this.Zm], ["SLOT_TYPE_AD_BREAK_REQUEST",this.Zm],["SLOT_TYPE_FORECASTING",this.Zm],["SLOT_TYPE_IN_PLAYER",this.Zm],["SLOT_TYPE_PLAYER_BYTES",this.n6],["SLOT_TYPE_PLAYER_UNDERLAY",this.Zm],["SLOT_TYPE_PLAYBACK_TRACKING",this.Zm],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Zm]]),Sv:new Map([["SLOT_TYPE_ABOVE_FEED",this.LC],["SLOT_TYPE_AD_BREAK_REQUEST",this.ZO],["SLOT_TYPE_FORECASTING",this.jX],["SLOT_TYPE_PLAYER_BYTES",this.QB],["SLOT_TYPE_PLAYBACK_TRACKING",this.wI],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.wI],["SLOT_TYPE_IN_PLAYER",this.JI],["SLOT_TYPE_PLAYER_UNDERLAY",this.K_]])};this.listeners=[R.get()];this.cF={Vi:this.Vi,ut:this.ZY.get(),A7:this.T_.get(),LJ:this.Be.get(),qU:this.qU,Ql:S.get(),h0:this.Eh.get(),rQ:this.qO,Q2:R.get(),zr:this.M0.get()}}; fs$=function(e,L,c,I,B){g.p.call(this);var x=this,S=bh(function(){return new Rh(x.ZY)}); g.l(this,S);var h=bh(function(){return new tR(S,x.ZY)}); g.l(this,h);var R=bh(function(){return new HF}); g.l(this,R);var u=bh(function(){return new $z(e)}); g.l(this,u);var t=bh(function(){return new OT(S,h,x.ZY)}); g.l(this,t);var O=bh(function(){return new zR}); g.l(this,O);this.D6=bh(function(){return new fY(L)}); g.l(this,this.D6);this.T_=bh(function(){return new Gu(B)}); g.l(this,this.T_);this.Uq=bh(function(){return new ny(L)}); g.l(this,this.Uq);this.K9=bh(function(){return new eQ(L)}); g.l(this,this.K9);this.Zp=bh(function(){return new LY(L)}); g.l(this,this.Zp);this.l4=bh(function(){return new cG(L)}); g.l(this,this.l4);this.ZY=bh(function(){return new IB(L)}); g.l(this,this.ZY);var q=bh(function(){return new vG(I)}); g.l(this,q);var T=bh(function(){return new KR(x.ZY)}); g.l(this,T);var W=bh(function(){return new w2(S,t,h,x.ZY,T,null,null,x.vg,x.nj)}); g.l(this,W);this.Jj=bh(function(){return new iY(L)}); g.l(this,this.Jj);this.Eh=bh(function(){return new DV}); g.l(this,this.Eh);this.M0=bh(function(){return new t3(L,O,x.ZY)}); g.l(this,this.M0);var A=Ky({M0:this.M0,ZY:this.ZY,hm:T}),b=A.context,J=A.NO;this.Mx=A.Mx;this.Jq=bh(function(){return new bY(L,x.ZY,x.Tm)}); this.Be=bh(function(){return new Ol(L,x.M0,x.ZY)}); g.l(this,this.Be);this.cR=bh(function(){return new gl}); g.l(this,this.cR);this.e5=bh(function(){return new oB(x.Be,L,x.ZY)}); g.l(this,this.e5);this.Tm=bh(function(){return new uY(L,R,x.e5,x.M0,x.Mx,x.ZY,J)}); g.l(this,this.Tm);this.mF=bh(function(){return new ww(x.ZY)}); g.l(this,this.mF);this.l2=new ZL(yF,kh,function(C,y,P,ev){return tI(h.get(),C,y,P,ev)},u,t,h,T,this.ZY,this.M0); g.l(this,this.l2);this.qU=new ph(u,W,c,this.ZY,e,this.M0,this.Be,this.Uq);g.l(this,this.qU);var w=new YF(L,this.qU,this.Be,this.M0,this.Jq);this.oO=bh(function(){return w}); this.CA=w;this.vg=new Ch(u,t,this.oO,this.Jq,this.Be,this.ZY,this.Tm);g.l(this,this.vg);this.mI=new j2(u,t,this.K9,this.oO,b);g.l(this,this.mI);this.Vi=new KP(this.ZY,u,t,W,this.M0,this.mI,c,this.Zp);g.l(this,this.Vi);this.eX=bh(function(){return new EZ(q,h,T,x.ZY,x.Tm,x.Be)}); g.l(this,this.eX);this.UF=bh(function(){return new X5}); g.l(this,this.UF);this.qO=new Xm(e,this.D6,this.ZY);g.l(this,this.qO);this.dT=new Kh(e);g.l(this,this.dT);this.pO=new Yz(e);g.l(this,this.pO);this.Q9=new eX(e,this.oO,b);g.l(this,this.Q9);this.Nv=new Lb(e,this.K9,this.Be,this.M0,b);g.l(this,this.Nv);this.jt=new Ih(e);g.l(this,this.jt);this.Ae=new B$(e);g.l(this,this.Ae);this.yF=new r8(e);g.l(this,this.yF);this.aI=bh(function(){return new Gz(L)}); g.l(this,this.aI);this.Y0=new hR(e);g.l(this,this.Y0);this.nj=new xB(e,this.Jq,this.Be,this.Tm,this.oO,this.vg);g.l(this,this.nj);this.Zm=bh(function(){return new QF}); g.l(this,this.Zm);this.n6=bh(function(){return new d2(x.Be)}); g.l(this,this.n6);this.ZO=bh(function(){return new a0(x.Vi,u,S)}); g.l(this,this.ZO);this.jX=bh(function(){return new y1(x.ZY,x.Tm,x.jt,x.e5)}); g.l(this,this.jX);this.JI=bh(function(){return new Ie$(x.D6,x.Be,x.Tm,R,x.e5,x.pO,x.yF,x.T_,x.ZY,c)}); g.l(this,this.JI);this.QB=bh(function(){return new Fa(e,x.Y0,x.jt,x.Tm,x.e5,x.mF,x.Zp,x.M0,x.Be,x.cR,x.K9,x.Uq,x.l4,x.T_,x.Jj,x.ZY,x.aI,b,J)}); g.l(this,this.QB);this.P5=new sl(e,this.Eh,S);g.l(this,this.P5);this.OV={fJ:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Vi],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.vg],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.l2],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.qU],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.mI]]),I4:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.eX],["SLOT_TYPE_FORECASTING",this.UF],["SLOT_TYPE_IN_PLAYER",this.UF], ["SLOT_TYPE_PLAYER_BYTES",this.UF]]),De:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.qO],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.dT],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.dT],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.dT],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.dT],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.dT],["TRIGGER_TYPE_SLOT_ID_EXITED",this.dT],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.dT],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.dT],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.dT], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.dT],["TRIGGER_TYPE_CLOSE_REQUESTED",this.pO],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Q9],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Nv],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Nv],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Nv],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.jt],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Q9],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Ae],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.yF],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Y0],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.nj],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.nj],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.nj],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.nj],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.nj]]),d4:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Zm],["SLOT_TYPE_FORECASTING",this.Zm],["SLOT_TYPE_IN_PLAYER",this.Zm],["SLOT_TYPE_PLAYER_BYTES",this.n6]]), Sv:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ZO],["SLOT_TYPE_FORECASTING",this.jX],["SLOT_TYPE_IN_PLAYER",this.JI],["SLOT_TYPE_PLAYER_BYTES",this.QB]])};this.listeners=[R.get()];this.cF={Vi:this.Vi,ut:this.ZY.get(),A7:this.T_.get(),LJ:this.Be.get(),qU:this.qU,Ql:S.get(),h0:this.Eh.get(),rQ:this.qO,Q2:R.get(),zr:this.M0.get()}}; AZM=function(e,L,c,I,B){g.p.call(this);var x=this,S=bh(function(){return new Rh(x.ZY)}); g.l(this,S);var h=bh(function(){return new tR(S,x.ZY)}); g.l(this,h);var R=bh(function(){return new HF}); g.l(this,R);var u=bh(function(){return new $z(e)}); g.l(this,u);var t=bh(function(){return new OT(S,h,x.ZY)}); g.l(this,t);var O=bh(function(){return new zR}); g.l(this,O);this.D6=bh(function(){return new fY(L)}); g.l(this,this.D6);this.T_=bh(function(){return new Gu(B)}); g.l(this,this.T_);this.Uq=bh(function(){return new ny(L)}); g.l(this,this.Uq);this.K9=bh(function(){return new eQ(L)}); g.l(this,this.K9);this.Zp=bh(function(){return new LY(L)}); g.l(this,this.Zp);this.l4=bh(function(){return new cG(L)}); g.l(this,this.l4);this.ZY=bh(function(){return new IB(L)}); g.l(this,this.ZY);var q=bh(function(){return new vG(I)}); g.l(this,q);var T=bh(function(){return new KR(x.ZY)}); g.l(this,T);var W=bh(function(){return new w2(S,t,h,x.ZY,T,null,null,null,null)}); g.l(this,W);this.Jj=bh(function(){return new iY(L)}); g.l(this,this.Jj);this.M0=bh(function(){return new t3(L,O,x.ZY)}); g.l(this,this.M0);var A=Ky({M0:this.M0,ZY:this.ZY,hm:T}),b=A.context,J=A.NO;this.Mx=A.Mx;this.Be=bh(function(){return new Ol(L,x.M0,x.ZY)}); g.l(this,this.Be);this.cR=bh(function(){return new gl}); g.l(this,this.cR);this.e5=bh(function(){return new oB(x.Be,L,x.ZY)}); g.l(this,this.e5);this.Tm=bh(function(){return new uY(L,R,x.e5,x.M0,x.Mx,x.ZY,J)}); g.l(this,this.Tm);this.mF=bh(function(){return new ww(x.ZY)}); g.l(this,this.mF);this.l2=new ZL(yF,kh,function(C,y,P,ev){return tI(h.get(),C,y,P,ev)},u,t,h,T,this.ZY,this.M0); g.l(this,this.l2);this.qU=new ph(u,W,c,this.ZY,e,this.M0,this.Be,this.Uq);g.l(this,this.qU);var w=new YF(L,this.qU,this.Be,this.M0);this.oO=bh(function(){return w}); this.CA=w;this.mI=new j2(u,t,this.K9,this.oO,b);g.l(this,this.mI);this.Vi=new KP(this.ZY,u,t,W,this.M0,this.mI,c,this.Zp);g.l(this,this.Vi);this.eX=bh(function(){return new EZ(q,h,T,x.ZY,x.Tm,x.Be)}); g.l(this,this.eX);this.UF=bh(function(){return new X5}); g.l(this,this.UF);this.qO=new Xm(e,this.D6,this.ZY);g.l(this,this.qO);this.dT=new Kh(e);g.l(this,this.dT);this.Q9=new eX(e,this.oO,b);g.l(this,this.Q9);this.Nv=new Lb(e,this.K9,this.Be,this.M0,b);g.l(this,this.Nv);this.jt=new Ih(e);g.l(this,this.jt);this.Ae=new B$(e);g.l(this,this.Ae);this.aI=bh(function(){return new Gz(L)}); g.l(this,this.aI);this.Y0=new hR(e);g.l(this,this.Y0);this.Zm=bh(function(){return new QF}); g.l(this,this.Zm);this.n6=bh(function(){return new d2(x.Be)}); g.l(this,this.n6);this.ZO=bh(function(){return new a0(x.Vi,u,S)}); g.l(this,this.ZO);this.jX=bh(function(){return new y1(x.ZY,x.Tm,x.jt,x.e5)}); g.l(this,this.jX);this.HQ=bh(function(){return new qnJ(x.D6,x.Be,x.Tm,R,c,x.ZY)}); g.l(this,this.HQ);this.QB=bh(function(){return new Fa(e,x.Y0,x.jt,x.Tm,x.e5,x.mF,x.Zp,x.M0,x.Be,x.cR,x.K9,x.Uq,x.l4,x.T_,x.Jj,x.ZY,x.aI,b,J)}); g.l(this,this.QB);this.OV={fJ:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Vi],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.l2],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.qU],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.mI]]),I4:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.eX],["SLOT_TYPE_FORECASTING",this.UF],["SLOT_TYPE_IN_PLAYER",this.UF],["SLOT_TYPE_PLAYER_BYTES",this.UF]]),De:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.qO],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.dT],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.dT],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.dT],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.dT],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.dT],["TRIGGER_TYPE_SLOT_ID_EXITED",this.dT],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.dT],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.dT],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.dT],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Q9],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Nv],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.Nv],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.jt],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Q9],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Ae],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Y0]]),d4:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Zm],["SLOT_TYPE_ABOVE_FEED",this.Zm],["SLOT_TYPE_FORECASTING",this.Zm],["SLOT_TYPE_IN_PLAYER",this.Zm],["SLOT_TYPE_PLAYER_BYTES",this.n6]]),Sv:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ZO],["SLOT_TYPE_FORECASTING",this.jX],["SLOT_TYPE_IN_PLAYER", this.HQ],["SLOT_TYPE_PLAYER_BYTES",this.QB]])};this.listeners=[R.get()];this.cF={Vi:this.Vi,ut:this.ZY.get(),A7:this.T_.get(),LJ:this.Be.get(),qU:this.qU,Ql:S.get(),h0:null,rQ:this.qO,Q2:R.get(),zr:this.M0.get()}}; FBv=function(e,L,c,I,B){g.p.call(this);var x=this,S=bh(function(){return new Rh(x.ZY)}); g.l(this,S);var h=bh(function(){return new tR(S,x.ZY)}); g.l(this,h);var R=bh(function(){return new HF}); g.l(this,R);var u=bh(function(){return new $z(e)}); g.l(this,u);var t=bh(function(){return new OT(S,h,x.ZY)}); g.l(this,t);var O=bh(function(){return new zR}); g.l(this,O);this.Bt=bh(function(){return new sOT(L)}); g.l(this,this.Bt);this.D6=bh(function(){return new fY(L)}); g.l(this,this.D6);this.T_=bh(function(){return new Gu(B)}); g.l(this,this.T_);this.Uq=bh(function(){return new ny(L)}); g.l(this,this.Uq);this.K9=bh(function(){return new eQ(L)}); g.l(this,this.K9);this.Zp=bh(function(){return new LY(L)}); g.l(this,this.Zp);this.l4=bh(function(){return new cG(L)}); g.l(this,this.l4);this.ZY=bh(function(){return new IB(L)}); g.l(this,this.ZY);var q=bh(function(){return new vG(I)}); g.l(this,q);var T=bh(function(){return new KR(x.ZY)}); g.l(this,T);var W=bh(function(){return new w2(S,t,h,x.ZY,T,null,null,null,null)}); g.l(this,W);this.Jj=bh(function(){return new iY(L)}); g.l(this,this.Jj);this.M0=bh(function(){return new t3(L,O,x.ZY)}); g.l(this,this.M0);var A=Ky({M0:this.M0,ZY:this.ZY,hm:T}),b=A.context,J=A.NO;this.Mx=A.Mx;this.Be=bh(function(){return new Ol(L,x.M0,x.ZY)}); g.l(this,this.Be);this.cR=bh(function(){return new gl}); g.l(this,this.cR);this.e5=bh(function(){return new oB(x.Be,L,x.ZY)}); g.l(this,this.e5);this.Tm=bh(function(){return new uY(L,R,x.e5,x.M0,x.Mx,x.ZY,J)}); g.l(this,this.Tm);this.mF=bh(function(){return new ww(x.ZY)}); g.l(this,this.mF);this.l2=new ZL(jzM,kh,function(C,y,P,ev){return u3n(h.get(),C,y,P,ev)},u,t,h,T,this.ZY,this.M0); g.l(this,this.l2);this.qU=new ph(u,W,c,this.ZY,e,this.M0,this.Be,this.Uq);g.l(this,this.qU);var w=new YF(L,this.qU,this.Be,this.M0);this.oO=bh(function(){return w}); this.CA=w;this.mI=new j2(u,t,this.K9,this.oO,b);g.l(this,this.mI);this.Vi=new KP(this.ZY,u,t,W,this.M0,this.mI,c,this.Zp);g.l(this,this.Vi);this.eX=bh(function(){return new EZ(q,h,T,x.ZY,x.Tm,x.Be)}); g.l(this,this.eX);this.UF=bh(function(){return new X5}); g.l(this,this.UF);this.qO=new Xm(e,this.D6,this.ZY);g.l(this,this.qO);this.dT=new Kh(e);g.l(this,this.dT);this.Q9=new eX(e,this.oO,b);g.l(this,this.Q9);this.Nv=new Lb(e,this.K9,this.Be,this.M0,b);g.l(this,this.Nv);this.jt=new Ih(e);g.l(this,this.jt);this.Ae=new B$(e);g.l(this,this.Ae);this.aI=bh(function(){return new Gz(L)}); g.l(this,this.aI);this.Y0=new hR(e);g.l(this,this.Y0);this.Zm=bh(function(){return new QF}); g.l(this,this.Zm);this.n6=bh(function(){return new d2(x.Be)}); g.l(this,this.n6);this.ZO=bh(function(){return new a0(x.Vi,u,S)}); g.l(this,this.ZO);this.jX=bh(function(){return new y1(x.ZY,x.Tm,x.jt,x.e5)}); g.l(this,this.jX);this.QB=bh(function(){return new Fa(e,x.Y0,x.jt,x.Tm,x.e5,x.mF,x.Zp,x.M0,x.Be,x.cR,x.K9,x.Uq,x.l4,x.T_,x.Jj,x.ZY,x.aI,b,J)}); g.l(this,this.QB);this.Pf=bh(function(){return new xvv(x.D6,x.Be,x.Tm,R,x.Bt,c,x.M0)}); g.l(this,this.Pf);this.OV={fJ:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Vi],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.l2],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.qU],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.mI]]),I4:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.eX],["SLOT_TYPE_FORECASTING",this.UF],["SLOT_TYPE_IN_PLAYER",this.UF],["SLOT_TYPE_PLAYER_BYTES",this.UF]]),De:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.qO],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.dT],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.dT],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.dT],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.dT],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.dT],["TRIGGER_TYPE_SLOT_ID_EXITED",this.dT],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.dT],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.dT],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.dT],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Q9],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Nv],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.Nv],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.jt],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Q9],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Ae],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Y0]]),d4:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Zm],["SLOT_TYPE_FORECASTING",this.Zm],["SLOT_TYPE_IN_PLAYER",this.Zm],["SLOT_TYPE_PLAYER_BYTES",this.n6]]),Sv:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ZO],["SLOT_TYPE_FORECASTING",this.jX],["SLOT_TYPE_IN_PLAYER",this.Pf],["SLOT_TYPE_PLAYER_BYTES", this.QB]])};this.listeners=[R.get()];this.cF={Vi:this.Vi,ut:this.ZY.get(),A7:this.T_.get(),LJ:this.Be.get(),qU:this.qU,Ql:S.get(),h0:null,rQ:this.qO,Q2:R.get(),zr:this.M0.get()}}; b3T=function(e,L,c,I,B){g.p.call(this);var x=this,S=bh(function(){return new Rh(x.ZY)}); g.l(this,S);var h=bh(function(){return new tR(S,x.ZY)}); g.l(this,h);var R=bh(function(){return new HF}); g.l(this,R);var u=bh(function(){return new $z(e)}); g.l(this,u);var t=bh(function(){return new OT(S,h,x.ZY)}); g.l(this,t);var O=bh(function(){return new zR}); g.l(this,O);this.Bt=bh(function(){return new sOT(L)}); g.l(this,this.Bt);this.D6=bh(function(){return new fY(L)}); g.l(this,this.D6);this.T_=bh(function(){return new Gu(B)}); g.l(this,this.T_);this.Uq=bh(function(){return new ny(L)}); g.l(this,this.Uq);this.K9=bh(function(){return new eQ(L)}); g.l(this,this.K9);this.Zp=bh(function(){return new LY(L)}); g.l(this,this.Zp);this.l4=bh(function(){return new cG(L)}); g.l(this,this.l4);this.ZY=bh(function(){return new IB(L)}); g.l(this,this.ZY);var q=bh(function(){return new vG(I)}); g.l(this,q);var T=bh(function(){return new KR(x.ZY)}); g.l(this,T);this.Jj=bh(function(){return new iY(L)}); g.l(this,this.Jj);this.M0=bh(function(){return new t3(L,O,x.ZY)}); g.l(this,this.M0);var W=Ky({M0:this.M0,ZY:this.ZY,hm:T}),A=W.context,b=W.NO;this.Mx=W.Mx;this.Jq=bh(function(){return new bY(L,x.ZY,x.Tm)}); g.l(this,this.Jq);this.aI=bh(function(){return new Gz(L)}); g.l(this,this.aI);this.Be=bh(function(){return new Ol(L,x.M0,x.ZY)}); g.l(this,this.Be);this.cR=bh(function(){return new gl}); g.l(this,this.cR);W=bh(function(){return new w2(S,t,h,x.ZY,T,null,x.Be,x.vg,x.nj,3)}); g.l(this,W);this.mF=bh(function(){return new ww(x.ZY)}); this.e5=bh(function(){return new oB(x.Be,L,x.ZY)}); g.l(this,this.e5);this.Tm=bh(function(){return new uY(L,R,x.e5,x.M0,x.Mx,x.ZY,b)}); g.l(this,this.Tm);this.qU=new ph(u,W,c,this.ZY,e,this.M0,this.Be,this.Uq);g.l(this,this.qU);var J=new YF(L,this.qU,this.Be,this.M0,this.Jq);this.oO=bh(function(){return J}); this.CA=J;this.l2=new ZL(Huc,kh,function(w,C,y,P){return u3n(h.get(),w,C,y,P)},u,t,h,T,this.ZY,this.M0); g.l(this,this.l2);this.vg=new Ch(u,t,this.oO,this.Jq,this.Be,this.ZY,this.Tm,this.aI);g.l(this,this.vg);this.mI=new j2(u,t,this.K9,this.oO,A);g.l(this,this.mI);this.Vi=new KP(this.ZY,u,t,W,this.M0,this.mI,c,this.Zp);g.l(this,this.Vi);this.eX=bh(function(){return new EZ(q,h,T,x.ZY,x.Tm,x.Be,x.aI)}); g.l(this,this.eX);this.UF=bh(function(){return new X5}); g.l(this,this.UF);this.qO=new Xm(e,this.D6,this.ZY);g.l(this,this.qO);this.dT=new Kh(e);g.l(this,this.dT);this.Q9=new eX(e,this.oO,A);g.l(this,this.Q9);this.Nv=new Lb(e,this.K9,this.Be,this.M0,A);g.l(this,this.Nv);this.Zt=new c$(e,this.M0);g.l(this,this.Zt);this.nj=new xB(e,this.Jq,this.Be,this.Tm,this.oO,this.vg);g.l(this,this.nj);this.jt=new Ih(e);g.l(this,this.jt);this.Ae=new B$(e);g.l(this,this.Ae);this.Y0=new hR(e);g.l(this,this.Y0);this.Zm=bh(function(){return new QF}); g.l(this,this.Zm);this.n6=bh(function(){return new d2(x.Be)}); g.l(this,this.n6);this.ZO=bh(function(){return new a0(x.Vi,u,S)}); g.l(this,this.ZO);this.jX=bh(function(){return new y1(x.ZY,x.Tm,x.jt,x.e5)}); g.l(this,this.jX);this.QB=bh(function(){return new At(e,x.Y0,x.jt,x.M0,x.aI,x.Be,x.cR,x.Tm,O,x.Jq,x.e5,x.mF,x.Zp,x.K9,x.Uq,x.l4,x.T_,x.Jj,x.ZY,R,A,b)}); g.l(this,this.QB);this.JI=bh(function(){return new oEJ(x.D6,x.Be,x.Tm,R,x.Bt,c,x.ZY,x.M0)}); g.l(this,this.JI);this.OV={fJ:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Vi],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.vg],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.l2],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.qU],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.mI]]),I4:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.eX],["SLOT_TYPE_FORECASTING",this.UF],["SLOT_TYPE_IN_PLAYER",this.UF],["SLOT_TYPE_PLAYER_BYTES",this.UF]]),De:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.qO],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.dT],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.dT],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.dT],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.dT],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.dT],["TRIGGER_TYPE_SLOT_ID_EXITED",this.dT],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.dT],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.dT],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.dT],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Q9],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.Nv],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Nv],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Zt],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Zt],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.jt],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Q9],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Ae],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Y0],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.nj],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.nj],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.nj],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.nj],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.nj]]),d4:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Zm],["SLOT_TYPE_FORECASTING",this.Zm],["SLOT_TYPE_IN_PLAYER",this.Zm],["SLOT_TYPE_PLAYER_BYTES",this.n6]]),Sv:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ZO],["SLOT_TYPE_FORECASTING",this.jX],["SLOT_TYPE_PLAYER_BYTES",this.QB],["SLOT_TYPE_IN_PLAYER",this.JI]])};this.listeners=[R.get()]; this.cF={Vi:this.Vi,ut:this.ZY.get(),A7:this.T_.get(),LJ:this.Be.get(),qU:this.qU,Ql:S.get(),h0:null,rQ:this.qO,Q2:R.get(),zr:this.M0.get()}}; G_c=function(e,L,c,I){function B(){return x.K} g.p.call(this);var x=this;e.S().experiments.N0("html5_dispose_of_manager_before_dependency")?(this.X=i3M(B,e,L,c,I),this.K=(new ih(this.X)).Z(),g.l(this,this.K),g.l(this,this.X)):(this.X=i3M(B,e,L,c,I),g.l(this,this.X),this.K=(new ih(this.X)).Z(),g.l(this,this.K))}; DY=function(e){return e.X.cF}; i3M=function(e,L,c,I,B){try{var x=L.S();if(g.T3(x))var S=new vtH(e,L,c,I,B);else if(g.z3(x))S=new fs$(e,L,c,I,B);else if(Sb(x))S=new AZM(e,L,c,I,B);else if(g.DF(x))S=new FBv(e,L,c,I,B);else if(g.L8(x))S=new b3T(e,L,c,I,B);else throw new TypeError("Unknown web interface");return S}catch(h){return S=L.S(),Ir("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:S.X.cplatform,interface:S.X.c,ybW:S.X.cver,cbe:S.X.ctheme,Tz_:S.X.cplayer,UL9:S.playerStyle}),new RXc(e,L,c,I,B)}}; gtr=function(e){Nw.call(this,e)}; k_J=function(e,L,c,I,B){lX.call(this,e,{U:"div",W:"ytp-ad-timed-pie-countdown-container",L:[{U:"svg",W:"ytp-ad-timed-pie-countdown",N:{viewBox:"0 0 20 20"},L:[{U:"circle",W:"ytp-ad-timed-pie-countdown-background",N:{r:"10",cx:"10",cy:"10"}},{U:"circle",W:"ytp-ad-timed-pie-countdown-inner",N:{r:"5",cx:"10",cy:"10"}},{U:"circle",W:"ytp-ad-timed-pie-countdown-outer",N:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",L,c,I,B);this.G=this.q0("ytp-ad-timed-pie-countdown-container");this.Z=this.q0("ytp-ad-timed-pie-countdown-inner"); this.j=this.q0("ytp-ad-timed-pie-countdown-outer");this.K=Math.ceil(2*Math.PI*5);this.hide()}; DWc=function(e,L,c,I,B,x){B7.call(this,e,{U:"div",W:"ytp-ad-action-interstitial",N:{tabindex:"0"},L:[{U:"div",W:"ytp-ad-action-interstitial-background-container"},{U:"div",W:"ytp-ad-action-interstitial-slot",L:[{U:"div",W:"ytp-ad-action-interstitial-instream-info"},{U:"div",W:"ytp-ad-action-interstitial-card",L:[{U:"div",W:"ytp-ad-action-interstitial-image-container"},{U:"div",W:"ytp-ad-action-interstitial-headline-container"},{U:"div",W:"ytp-ad-action-interstitial-description-container"},{U:"div", W:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",L,c,I);this.OM=B;this.rh=x;this.navigationEndpoint=this.X=this.skipButton=this.K=this.actionButton=null;this.t7=this.q0("ytp-ad-action-interstitial-instream-info");this.Y9=this.q0("ytp-ad-action-interstitial-image-container");this.D=new Jm(this.api,this.layoutId,this.interactionLoggingClientData,this.A7,"ytp-ad-action-interstitial-image");g.l(this,this.D);this.D.jl(this.Y9);this.Ve=this.q0("ytp-ad-action-interstitial-headline-container"); this.j=new jH(this.api,this.layoutId,this.interactionLoggingClientData,this.A7,"ytp-ad-action-interstitial-headline");g.l(this,this.j);this.j.jl(this.Ve);this.h7=this.q0("ytp-ad-action-interstitial-description-container");this.Z=new jH(this.api,this.layoutId,this.interactionLoggingClientData,this.A7,"ytp-ad-action-interstitial-description");g.l(this,this.Z);this.Z.jl(this.h7);this.Sl=this.q0("ytp-ad-action-interstitial-background-container");this.Pe=new Jm(this.api,this.layoutId,this.interactionLoggingClientData, this.A7,"ytp-ad-action-interstitial-background",!0);g.l(this,this.Pe);this.Pe.jl(this.Sl);this.d_=this.q0("ytp-ad-action-interstitial-action-button-container");this.slot=this.q0("ytp-ad-action-interstitial-slot");this.Jm=this.q0("ytp-ad-action-interstitial-card");this.G=new sR;g.l(this,this.G);this.hide()}; whv=function(e){var L=g.rF("html5-video-player");L&&g.cY(L,"ytp-ad-display-override",e)}; asM=function(e,L,c,I){B7.call(this,e,{U:"div",W:"ytp-ad-overlay-slot",L:[{U:"div",W:"ytp-ad-overlay-container"}]},"invideo-overlay",L,c,I);this.D=[];this.Sl=this.Ve=this.G=this.d_=this.t7=null;this.Pe=!1;this.j=null;this.h7=0;e=this.q0("ytp-ad-overlay-container");this.Y9=new Yu(e,45E3,6E3,.3,.4);g.l(this,this.Y9);this.Z=JZc(this);g.l(this,this.Z);this.Z.jl(e);this.K=V$r(this);g.l(this,this.K);this.K.jl(e);this.X=Ctr(this);g.l(this,this.X);this.X.jl(e);this.hide()}; JZc=function(e){var L=new g.I9({U:"div",W:"ytp-ad-text-overlay",L:[{U:"div",W:"ytp-ad-overlay-ad-info-button-container"},{U:"div",W:"ytp-ad-overlay-close-container",L:[{U:"button",W:"ytp-ad-overlay-close-button",L:[FO(Ng$)]}]},{U:"div",W:"ytp-ad-overlay-title",aq:"{{title}}"},{U:"div",W:"ytp-ad-overlay-desc",aq:"{{description}}"},{U:"div",Rq:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],aq:"{{displayUrl}}"}]});e.C(L.q0("ytp-ad-overlay-title"),"click",function(c){wl(e,L.element,c)}); e.C(L.q0("ytp-ad-overlay-link"),"click",function(c){wl(e,L.element,c)}); e.C(L.q0("ytp-ad-overlay-close-container"),"click",e.JW);L.hide();return L}; V$r=function(e){var L=new g.I9({U:"div",Rq:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],L:[{U:"div",W:"ytp-ad-overlay-ad-info-button-container"},{U:"div",W:"ytp-ad-overlay-close-container",L:[{U:"button",W:"ytp-ad-overlay-close-button",L:[FO(Ng$)]}]},{U:"div",W:"ytp-ad-overlay-text-image",L:[{U:"img",N:{src:"{{imageUrl}}"}}]},{U:"div",W:"ytp-ad-overlay-title",aq:"{{title}}"},{U:"div",W:"ytp-ad-overlay-desc",aq:"{{description}}"},{U:"div",Rq:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], aq:"{{displayUrl}}"}]});e.C(L.q0("ytp-ad-overlay-title"),"click",function(c){wl(e,L.element,c)}); e.C(L.q0("ytp-ad-overlay-link"),"click",function(c){wl(e,L.element,c)}); e.C(L.q0("ytp-ad-overlay-close-container"),"click",e.JW);e.C(L.q0("ytp-ad-overlay-text-image"),"click",e.i9d);L.hide();return L}; Ctr=function(e){var L=new g.I9({U:"div",W:"ytp-ad-image-overlay",L:[{U:"div",W:"ytp-ad-overlay-ad-info-button-container"},{U:"div",W:"ytp-ad-overlay-close-container",L:[{U:"button",W:"ytp-ad-overlay-close-button",L:[FO(Ng$)]}]},{U:"div",W:"ytp-ad-overlay-image",L:[{U:"img",N:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});e.C(L.q0("ytp-ad-overlay-image"),"click",function(c){wl(e,L.element,c)}); e.C(L.q0("ytp-ad-overlay-close-container"),"click",e.JW);L.hide();return L}; mWr=function(e,L){if(L){var c=g.Q(L,dK)||null;c==null?g.A9(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(L=g.rF("video-ads ytp-ad-module")||null,L==null?g.A9(Error("Could not locate the root ads container element to attach the ad info dialog.")):(e.Ve=new g.I9({U:"div",W:"ytp-ad-overlay-ad-info-dialog-container"}),g.l(e,e.Ve),e.Ve.jl(L),L=new $u(e.api,e.layoutId,e.interactionLoggingClientData,e.A7,e.Ve.element,!1),g.l(e,L),L.init(X7("ad-info-hover-text-button"),c,e.macros), e.j?(L.jl(e.j,0),L.subscribe("f",e.ZSm,e),L.subscribe("e",e.Ds,e),e.C(e.j,"click",e.ewS),e.C(g.rF("ytp-ad-button",L.element),"click",function(){var I;if(g.Q((I=g.Q(c.button,g.E5))==null?void 0:I.serviceEndpoint,n5r))e.Pe=e.api.getPlayerState(1)===2,e.api.pauseVideo();else e.api.onAdUxClicked("ad-info-hover-text-button",e.layoutId)}),e.Sl=L):g.A9(Error("Ad info button container within overlay ad was not present."))))}else g.F7(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; Z3J=function(e,L){if(yZx(e,J3)||e.api.isMinimized())return!1;var c=xu(L.title),I=xu(L.description);if(g.J_(c)||g.J_(I))return!1;e.createServerVe(e.Z.element,L.trackingParams||null);e.Z.updateValue("title",xu(L.title));e.Z.updateValue("description",xu(L.description));e.Z.updateValue("displayUrl",xu(L.displayUrl));L.navigationEndpoint&&g.mN(e.D,L.navigationEndpoint);e.Z.show();e.Y9.start();e.logVisibility(e.Z.element,!0);e.C(e.Z.element,"mouseover",function(){e.h7++}); return!0}; ph6=function(e,L){if(yZx(e,J3)||e.api.isMinimized())return!1;var c=xu(L.title),I=xu(L.description);if(g.J_(c)||g.J_(I))return!1;e.createServerVe(e.K.element,L.trackingParams||null);e.K.updateValue("title",xu(L.title));e.K.updateValue("description",xu(L.description));e.K.updateValue("displayUrl",xu(L.displayUrl));e.K.updateValue("imageUrl",RvM(L.image));L.navigationEndpoint&&g.mN(e.D,L.navigationEndpoint);e.d_=L.imageNavigationEndpoint||null;e.K.show();e.Y9.start();e.logVisibility(e.K.element,!0); e.C(e.K.element,"mouseover",function(){e.h7++}); return!0}; $WR=function(e,L){if(e.api.isMinimized())return!1;var c=uFn(L.image),I=c;c.width0?(L=new g9(e.api,e.X), L.jl(e.playerOverlay),g.l(e,L)):(e=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(L)),g.A9(e))}}else g.A9(Error("addCommonComponents() needs to be called before starting countdown."))}; Y2f=function(e){function L(c){return{toString:function(){return c()}}} e.macros.SURVEY_LOCAL_TIME_EPOCH_S=L(function(){var c=new Date;return(Math.round(c.valueOf()/1E3)+-1*c.getTimezoneOffset()*60).toString()}); e.macros.SURVEY_ELAPSED_MS=L(function(){return(Date.now()-e.Z).toString()})}; ntn=function(e,L,c,I,B){NI.call(this,e,L,c,I,"survey-question-multi-select");this.h7=B;this.noneOfTheAbove=null;this.submitEndpoints=[];this.j=null;this.hide()}; eTh=function(e,L,c){e.noneOfTheAbove=new dWT(e.api,e.layoutId,e.interactionLoggingClientData,e.A7);e.noneOfTheAbove.jl(e.answers);e.noneOfTheAbove.init(X7("survey-none-of-the-above"),L,c)}; cJU=function(e){e.K.forEach(function(L){L.X.toggleButton(!1)}); Lf7(e,!0)}; Lf7=function(e,L){var c=e.G;e=IRJ(e);L=L===void 0?!1:L;c.X&&(e?c.X.hide():c.X.show(),L&&c.X instanceof hW&&!c.X.G&&rgv(c.X,!1));c.K&&(e?c.K.show():c.K.hide())}; IRJ=function(e){return e.K.some(function(L){return L.X.isToggled()})||e.noneOfTheAbove.button.isToggled()}; mY=function(e,L,c,I,B){NI.call(this,e,L,c,I,"survey-question-single-select",function(S){x.api.S().Y("supports_multi_step_on_desktop")&&B([S])}); var x=this;this.hide()}; y6=function(e,L,c,I){B7.call(this,e,{U:"div",W:"ytp-ad-survey",L:[{U:"div",W:"ytp-ad-survey-questions"}]},"survey",L,c,I);this.questions=[];this.K=[];this.conditioningRules=[];this.X=0;this.j=this.q0("ytp-ad-survey-questions");this.api.S().Y("fix_survey_color_contrast_on_destop")&&this.q0("ytp-ad-survey").classList.add("color-contrast-fix");this.api.S().Y("web_enable_speedmaster")&&this.q0("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; onM=function(e,L){var c=e.K[L],I;(I=e.Z)==null||I.dispose();g.Q(c,Pf)?BcJ(e,g.Q(c,Pf),e.macros):g.Q(c,lH)&&xMe(e,g.Q(c,lH),e.macros);e.X=L}; BcJ=function(e,L,c){var I=new mY(e.api,e.layoutId,e.interactionLoggingClientData,e.A7,e.G.bind(e));I.jl(e.j);I.init(X7("survey-question-single-select"),L,c);e.api.S().Y("supports_multi_step_on_desktop")?e.Z=I:e.questions.push(I);g.l(e,I)}; xMe=function(e,L,c){var I=new ntn(e.api,e.layoutId,e.interactionLoggingClientData,e.A7,e.G.bind(e));I.jl(e.j);I.init(X7("survey-question-multi-select"),L,c);e.api.S().Y("supports_multi_step_on_desktop")?e.Z=I:e.questions.push(I);g.l(e,I)}; ZY=function(e,L,c,I){B7.call(this,e,{U:"div",W:"ytp-ad-survey-interstitial",L:[{U:"div",W:"ytp-ad-survey-interstitial-contents",L:[{U:"div",W:"ytp-ad-survey-interstitial-logo",L:[{U:"div",W:"ytp-ad-survey-interstitial-logo-image"}]},{U:"div",W:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",L,c,I);this.X=this.actionButton=null;this.interstitial=this.q0("ytp-ad-survey-interstitial");this.K=this.q0("ytp-ad-survey-interstitial-contents");this.text=this.q0("ytp-ad-survey-interstitial-text"); this.logoImage=this.q0("ytp-ad-survey-interstitial-logo-image");this.transition=new g.dJ(this,500,!1,300);g.l(this,this.transition)}; S$h=function(e,L){L=L&&wJ(L)||"";if(g.J_(L))g.F7(Error("Found ThumbnailDetails without valid image URL"));else{var c=e.style;e=e.style.cssText;var I=document.implementation.createHTMLDocument("").createElement("DIV");I.style.cssText=e;e=pkx(I.style);c.cssText=[e,'background-image:url("'+L+'");'].join("")}}; rJL=function(e){var L=g.rF("html5-video-player");L&&g.cY(L,"ytp-ad-display-override",e)}; pY=function(e,L,c,I,B,x){x=x===void 0?0:x;lX.call(this,e,{U:"div",W:"ytp-preview-ad",L:[{U:"div",W:"ytp-preview-ad__text"}]},"preview-ad",L,c,I,B);var S=this;this.h7=x;this.K=0;this.G=-1;this.Z=this.q0("ytp-preview-ad__text");switch(this.h7){case 1:this.Z.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.dJ(this,400,!1,100,function(){S.hide()}); g.l(this,this.transition);this.hide()}; $h=function(e,L,c,I){B7.call(this,e,{U:"img",W:"ytp-ad-avatar"},"ad-avatar",L,c,I);this.hide()}; hTN=function(e){switch(e.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}}; jQ=function(e,L,c,I,B,x){B=B===void 0?!1:B;x=x===void 0?!1:x;B7.call(this,e,{U:"button",W:"ytp-ad-button-vm"},"ad-button",L,c,I);this.buttonText=this.buttonIcon=null;this.hide();this.X=B;this.K=x}; RTh=function(e,L,c,I,B){lX.call(this,e,{U:"div",Rq:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],L:[{U:"div",W:"ytp-ad-avatar-lockup-card__avatar_and_text_container",L:[{U:"div",W:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",L,c,I,B);this.startMilliseconds=0;this.adAvatar=new $h(this.api,this.layoutId,this.interactionLoggingClientData,this.A7);g.l(this,this.adAvatar);z$(this.element,this.adAvatar.element,0);this.headline=new fq(this.api,this.layoutId, this.interactionLoggingClientData,this.A7);g.l(this,this.headline);this.headline.jl(this.q0("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new fq(this.api,this.layoutId,this.interactionLoggingClientData,this.A7);g.l(this,this.description);this.description.jl(this.q0("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new jQ(this.api, this.layoutId,this.interactionLoggingClientData,this.A7);g.l(this,this.adButton);this.adButton.jl(this.element);this.hide()}; HG=function(e,L,c,I){B7.call(this,e,{U:"button",W:"ytp-skip-ad-button",L:[{U:"div",W:"ytp-skip-ad-button__text"}]},"skip-button",L,c,I);var B=this;this.K=!1;this.G=this.q0("ytp-skip-ad-button__text");this.transition=new g.dJ(this,500,!1,100,function(){B.hide()}); g.l(this,this.transition);this.X=new Yu(this.element,15E3,5E3,.5,.5,!0);g.l(this,this.X);this.hide()}; uxL=function(e,L,c,I,B){lX.call(this,e,{U:"div",W:"ytp-skip-ad"},"skip-ad",L,c,I,B);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.Z=new HG(this.api,this.layoutId,this.interactionLoggingClientData,this.A7);g.l(this,this.Z);this.Z.jl(this.element);this.hide()}; lY=function(e,L,c,I){B7.call(this,e,{U:"div",W:"ytp-visit-advertiser-link"},"visit-advertiser-link",L,c,I);this.hide()}; PG=function(e,L,c,I,B){B7.call(this,e,{U:"div",W:"ytp-ad-player-overlay-layout",L:[{U:"div",W:"ytp-ad-player-overlay-layout__player-card-container"},{U:"div",W:"ytp-ad-player-overlay-layout__ad-info-container"},{U:"div",W:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{U:"div",W:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",L,c,I);this.K=B;this.Ve=this.q0("ytp-ad-player-overlay-layout__player-card-container");this.X=this.q0("ytp-ad-player-overlay-layout__ad-info-container"); this.D=this.q0("ytp-ad-player-overlay-layout__skip-or-preview-container");this.h7=this.q0("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; tvw=function(e,L,c,I){B7.call(this,e,{U:"div",W:"ytp-ad-grid-card-text",L:[{U:"div",W:"ytp-ad-grid-card-text__metadata",L:[{U:"div",W:"ytp-ad-grid-card-text__metadata__headline"},{U:"div",W:"ytp-ad-grid-card-text__metadata__description",L:[{U:"div",W:"ytp-ad-grid-card-text__metadata__description__line"},{U:"div",W:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{U:"div",W:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",L,c,I);this.headline=new fq(this.api,this.layoutId,this.interactionLoggingClientData, this.A7);g.l(this,this.headline);this.headline.jl(this.q0("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new jQ(this.api,this.layoutId,this.interactionLoggingClientData,this.A7,!0);g.l(this,this.moreInfoButton);this.moreInfoButton.jl(this.q0("ytp-ad-grid-card-text__button"))}; Q6=function(e,L,c,I){B7.call(this,e,{U:"div",W:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",L,c,I);this.X=[]}; dl=function(e,L,c,I,B,x,S){lX.call(this,e,x,S,L,c,I,B);this.playerProgressOffsetMs=0;this.K=!1}; O67=function(e){var L=g.rF("html5-video-player");L&&g.cY(L,"ytp-ad-display-override",e)}; q$N=function(e,L,c,I,B){dl.call(this,e,L,c,I,B,{U:"div",W:"ytp-display-underlay-text-grid-cards",L:[{U:"div",W:"ytp-display-underlay-text-grid-cards__content_container",L:[{U:"div",W:"ytp-display-underlay-text-grid-cards__content_container__header",L:[{U:"div",W:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{U:"div",W:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{U:"div",W:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {U:"div",W:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new Q6(this.api,this.layoutId,this.interactionLoggingClientData,this.A7);g.l(this,this.adGridCardCollection);this.adGridCardCollection.jl(this.q0("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new jQ(this.api,this.layoutId,this.interactionLoggingClientData,this.A7);g.l(this,this.adButton);this.adButton.jl(this.q0("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.Z=this.q0("ytp-display-underlay-text-grid-cards__content_container");this.G=this.q0("ytp-display-underlay-text-grid-cards__content_container__header")}; Ul=function(e,L,c,I){B7.call(this,e,{U:"div",W:"ytp-ad-details-line"},"ad-details-line",L,c,I);this.X=[];this.hide()}; El=function(e,L,c,I){B7.call(this,e,{U:"div",W:"ytp-image-background",L:[{U:"img",W:"ytp-image-background-image"}]},"image-background",L,c,I);this.hide()}; Tcw=function(e,L,c,I,B){lX.call(this,e,{U:"svg",W:"ytp-timed-pie-countdown",N:{viewBox:"0 0 20 20"},L:[{U:"circle",W:"ytp-timed-pie-countdown__background",N:{r:"10",cx:"10",cy:"10"}},{U:"circle",W:"ytp-timed-pie-countdown__inner",N:{r:"5",cx:"10",cy:"10"}},{U:"circle",W:"ytp-timed-pie-countdown__outer",N:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",L,c,I,B);this.Z=this.q0("ytp-timed-pie-countdown__inner");this.K=Math.ceil(2*Math.PI*5);this.hide()}; XA=function(e,L,c,I){B7.call(this,e,{U:"div",W:"ytp-video-interstitial-buttoned-centered-layout",N:{tabindex:"0"},L:[{U:"div",W:"ytp-video-interstitial-buttoned-centered-layout__content",L:[{U:"div",W:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{U:"div",W:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",L:[{U:"div",W:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{U:"div",W:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {U:"div",W:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{U:"div",W:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{U:"div",W:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",L,c,I);this.K=null;this.G=this.q0("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.Z=new sR;g.l(this,this.Z);this.hide()}; WfN=function(e){var L=g.rF("html5-video-player");L&&g.cY(L,"ytp-ad-display-override",e)}; MvN=function(e){if(!e.adAvatar||!g.Q(e.adAvatar,KY))return g.A9(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!e.headline)return g.A9(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!e.adBadge||!g.Q(e.adBadge,Yh))return g.A9(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!e.adButton||!g.Q(e.adButton,nY))return g.A9(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!e.adInfoRenderer|| !g.Q(e.adInfoRenderer,dK))return g.A9(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;e=e.durationMilliseconds||0;return typeof e!=="number"||e<=0?(g.A9(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+e)),!1):!0}; eu=function(e,L){L=L===void 0?2:L;g.Yg.call(this);this.api=e;this.X=null;this.Eq=new sR(this);g.l(this,this.Eq);this.K=hdR;this.Eq.C(this.api,"presentingplayerstatechange",this.kJ);this.X=this.Eq.C(this.api,"progresssync",this.Ty);this.Bh=L;this.Bh===1&&this.Ty()}; L4=function(e,L,c){Nw.call(this,e);this.api=e;this.A7=L;this.components={};e=new g.U({U:"div",Rq:["video-ads","ytp-ad-module"]});g.l(this,e);Pr&&g.Y4(e.element,"ytp-ads-tiny-mode");this.G=new op(e.element);g.l(this,this.G);g.Uq(this.api,e.element,4);Oy(c)&&(c=new g.U({U:"div",Rq:["ytp-ad-underlay"]}),g.l(this,c),this.K=new op(c.element),g.l(this,this.K),g.Uq(this.api,c.element,0));g.l(this,y7J())}; zTM=function(e,L){e=g.TG(e.components,L.id,null);e==null&&g.F7(Error("Component not found for element id: "+L.id));return e||null}; sHh=function(e){g.Vk.call(this,e);var L=this;this.K=null;this.created=!1;this.Z=e.S().Y("h5_use_refactored_get_ad_break")?new upn(this.player):new XH(this.player);this.G=function(){if(L.K!=null)return L.K;var I=new zGM({rQ:DY(L.X).rQ,zr:DY(L.X).zr,V:L.player,ut:DY(L.X).ut,Tm:L.X.X.Tm,Q2:DY(L.X).Q2,l4:L.X.X.l4});L.K=I.Vf;return L.K}; this.X=new G_c(this.player,this,this.Z,this.G);g.l(this,this.X);var c=e.S();!hz(c)||g.L8(c)||Sb(c)||(g.l(this,new L4(e,DY(this.X).A7,DY(this.X).ut)),g.l(this,new gtr(e)))}; vne=function(e){e.created!==e.loaded&&Ir("Created and loaded are out of sync")}; FfL=function(e){g.Vk.prototype.load.call(e);var L=DY(e.X).ut;try{e.player.getRootNode().classList.add("ad-created")}catch(R){Ir(R instanceof Error?R:String(R))}var c=e.player.getVideoData(1),I=c&&c.videoId||"",B=c&&c.getPlayerResponse()||{},x=(B&&B.adPlacements||[]).map(function(R){return R.adPlacementRenderer}),S=((B==null?void 0:B.adSlots)||[]).map(function(R){return g.Q(R,YP)}); B=B.playerConfig&&B.playerConfig.daiConfig&&B.playerConfig.daiConfig.enableDai||!1;c&&c.Wy();x=fRN(x,S,L,DY(e.X).Ql);S=c&&c.clientPlaybackNonce||"";c=c&&c.CR||!1;if(oK(L,!0)&&c){var h;L={};(h=e.player.getVideoData())==null||h.sW("p_cpb",(L.cc=S,L))}h=1E3*e.player.getDuration(1);AJw(e);e.X.X.CA.A_(S,h,c,x.Xu,x.D4,x.Xu,B,I)}; AJw=function(e){var L,c;if(c=(L=e.player.getVideoData(1))==null||!L.CR)L=e.player.S(),c=hz(L)&&!g.rw(L)&&L.playerStyle==="desktop-polymer";c&&(e=e.player.getInternalApi(),e.addEventListener("updateKevlarOrC3Companion",zdv),e.addEventListener("updateEngagementPanelAction",sMn),e.addEventListener("changeEngagementPanelVisibility",vic),window.addEventListener("yt-navigate-start",AgH))}; cj=function(e,L){L===e.mD&&(e.mD=void 0)}; b6U=function(e){var L=DY(e.X).qU,c=L.G().vO("SLOT_TYPE_PLAYER_BYTES",1);L=w1(L.M0.get(),1).clientPlaybackNonce;var I=!1;c=g.f(c);for(var B=c.next();!B.done;B=c.next()){B=B.value;var x=B.slotType==="SLOT_TYPE_PLAYER_BYTES"&&B.slotEntryTrigger instanceof yX?B.slotEntryTrigger.E0:void 0;x&&x===L&&(I&&Ir("More than 1 preroll playerBytes slot detected",B),I=!0)}I||qI(DY(e.X).LJ)}; i6h=function(e){if(BG(DY(e.X).ut))return!0;var L="";e=g.f(DY(e.X).Q2.ZJ.keys());for(var c=e.next();!c.done;c=e.next()){c=c.value;if(c.slotType==="SLOT_TYPE_PLAYER_BYTES"&&c.J7==="core")return!0;L+=c.slotType+" "}Math.random()<.01&&Ir("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:L});return!1}; GcL=function(e){e=g.f(DY(e.X).Q2.ZJ.values());for(var L=e.next();!L.done;L=e.next())if(L.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; $vR=function(e,L,c,I,B,x){c=c===void 0?[]:c;I=I===void 0?"":I;B=B===void 0?"":B;var S=DY(e.X).ut,h=e.player.getVideoData(1);h&&h.getPlayerResponse();h&&h.Wy();c=fRN(L,c,S,DY(e.X).Ql);QNH(DY(e.X).Vi,I,c.Xu,c.D4,L,B,x)}; fRN=function(e,L,c,I){L={Xu:[],D4:L};e=g.f(e);for(var B=e.next();!B.done;B=e.next())if((B=B.value)&&B.renderer!=null){var x=B.renderer;if(!c.V.S().Y("html5_enable_vod_lasr_with_notify_pacf")){var S=void 0,h=void 0,R=void 0,u=void 0,t=I;g.Q((u=x.sandwichedLinearAdRenderer)==null?void 0:u.adVideoStart,DL)?(S=g.Q((R=x.sandwichedLinearAdRenderer)==null?void 0:R.adVideoStart,DL),S=SE$(S,t),g.kg(x.sandwichedLinearAdRenderer.adVideoStart,DL,S)):g.Q((h=x.linearAdSequenceRenderer)==null?void 0:h.adStart,DL)&& (R=g.Q((S=x.linearAdSequenceRenderer)==null?void 0:S.adStart,DL),S=SE$(R,t),g.kg(x.linearAdSequenceRenderer.adStart,DL,S))}L.Xu.push(B)}return L}; g.I_=function(e){if(typeof DOMParser!="undefined")return gz(new DOMParser,aST(e),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.Bj=function(e){g.p.call(this);this.callback=e;this.X=new Om(0,0,.4,0,.2,1,1,1);this.delay=new g.$4(this.next,window,this);g.l(this,this.delay)}; g.gnU=function(e){var L=e.S();return L.m1&&!L.Z&&g.Uh(L)?e.isEmbedsShortsMode()?(e=e.CB(),Math.min(e.width,e.height)>=315):!e.ge():!1}; g.xx=function(e){g.U.call(this,{U:"div",W:"ytp-more-videos-view",N:{tabIndex:"-1"}});var L=this;this.api=e;this.K=!0;this.Z=new g.zn(this);this.X=[];this.suggestionData=[];this.columns=this.containerWidth=this.J=this.G=this.scrollPosition=0;this.title=new g.U({U:"h2",W:"ytp-related-title",aq:"{{title}}"});this.previous=new g.U({U:"button",Rq:["ytp-button","ytp-previous"],N:{"aria-label":"Show previous suggested videos"},L:[g.hm()]});this.T=new g.Bj(function(c){L.suggestions.element.scrollLeft=-c}); this.next=new g.U({U:"button",Rq:["ytp-button","ytp-next"],N:{"aria-label":"Show more suggested videos"},L:[g.R9()]});g.l(this,this.Z);this.j=e.S().G;g.l(this,this.title);this.title.jl(this.element);this.suggestions=new g.U({U:"div",W:"ytp-suggestions"});g.l(this,this.suggestions);this.suggestions.jl(this.element);g.l(this,this.previous);this.previous.jl(this.element);this.previous.listen("click",this.Bs,this);g.l(this,this.T);kch(this);g.l(this,this.next);this.next.jl(this.element);this.next.listen("click", this.jK,this);this.Z.C(this.api,"appresize",this.Nx);this.Z.C(this.api,"fullscreentoggled",this.OB);this.Z.C(this.api,"videodatachange",this.onVideoDataChange);this.Nx(this.api.LS().getPlayerSize());this.onVideoDataChange()}; kch=function(e){for(var L={r8:0};L.r8<16;L={r8:L.r8},++L.r8){var c=new g.U({U:"a",W:"ytp-suggestion-link",N:{href:"{{link}}",target:e.api.S().D,"aria-label":"{{aria_label}}"},L:[{U:"div",W:"ytp-suggestion-image"},{U:"div",W:"ytp-suggestion-overlay",N:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},L:[{U:"div",W:"ytp-suggestion-title",aq:"{{title}}"},{U:"div",W:"ytp-suggestion-author",aq:"{{author_and_views}}"},{U:"div",N:{"data-is-live":"{{is_live}}"},W:"ytp-suggestion-duration", aq:"{{duration}}"}]}]});g.l(e,c);var I=c.q0("ytp-suggestion-link");g.l3(I,"transitionDelay",L.r8/20+"s");e.Z.C(I,"click",function(B){return function(x){var S=B.r8;if(e.K){var h=e.suggestionData[S],R=h.sessionData;e.j&&e.api.Y("web_player_log_click_before_generating_ve_conversion_params")?(e.api.logClick(e.X[S].element),S=h.Pv(),h={},g.PS(e.api,h),S=g.WO(S,h),g.v8(S,e.api,x)):g.s4(x,e.api,e.j,R||void 0)&&e.api.zF(h.videoId,R,h.playlistId)}else x.preventDefault(),document.activeElement.blur()}}(L)); c.jl(e.suggestions.element);e.X.push(c);e.api.createServerVe(c.element,c)}}; DMM=function(e){if(e.api.S().Y("web_player_log_click_before_generating_ve_conversion_params"))for(var L=Math.floor(-e.scrollPosition/(e.G+8)),c=Math.min(L+e.columns,e.suggestionData.length)-1;L<=c;L++)e.api.logVisibility(e.X[L].element,!0)}; g.o_=function(e){var L=e.api.TV()?32:16;L=e.J/2+L;e.next.element.style.bottom=L+"px";e.previous.element.style.bottom=L+"px";L=e.scrollPosition;var c=e.containerWidth-e.suggestionData.length*(e.G+8);g.cY(e.element,"ytp-scroll-min",L>=0);g.cY(e.element,"ytp-scroll-max",L<=c)}; JJJ=function(e){for(var L=e.suggestionData.length,c=0;c>>0)+"_",B=0;return L}); qM("Symbol.iterator",function(e){if(e)return e;e=Symbol("Symbol.iterator");for(var L="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c0&&c>0;)if(I[--c]!=L[--B])return!1;return B<=0}}); qM("Array.prototype.find",function(e){return e?e:function(L,c){return tvJ(this,L,c).tW}}); qM("Array.prototype.entries",function(e){return e?e:function(){return U$(this,function(L,c){return[L,c]})}}); qM("Array.prototype.keys",function(e){return e?e:function(){return U$(this,function(L){return L})}}); qM("String.prototype.startsWith",function(e){return e?e:function(L,c){var I=Qr(this,L,"startsWith");L+="";var B=I.length,x=L.length;c=Math.max(0,Math.min(c|0,I.length));for(var S=0;S=x}}); qM("Number.isFinite",function(e){return e?e:function(L){return typeof L!=="number"?!1:!isNaN(L)&&L!==Infinity&&L!==-Infinity}}); qM("String.prototype.repeat",function(e){return e?e:function(L){var c=Qr(this,null,"repeat");if(L<0||L>1342177279)throw new RangeError("Invalid count value");L|=0;for(var I="";L;)if(L&1&&(I+=c),L>>>=1)c+=c;return I}}); qM("Object.entries",function(e){return e?e:function(L){var c=[],I;for(I in L)MM(L,I)&&c.push([I,L[I]]);return c}}); qM("Array.from",function(e){return e?e:function(L,c,I){c=c!=null?c:function(h){return h}; var B=[],x=typeof Symbol!="undefined"&&Symbol.iterator&&L[Symbol.iterator];if(typeof x=="function"){L=x.call(L);for(var S=0;!(x=L.next()).done;)B.push(c.call(I,x.value,S++))}else for(x=L.length,S=0;S>>0;if(L===0)return 32;var c=0;(L&4294901760)===0&&(L<<=16,c+=16);(L&4278190080)===0&&(L<<=8,c+=8);(L&4026531840)===0&&(L<<=4,c+=4);(L&3221225472)===0&&(L<<=2,c+=2);(L&2147483648)===0&&c++;return c}}); qM("Number.isNaN",function(e){return e?e:function(L){return typeof L==="number"&&isNaN(L)}}); qM("Array.prototype.values",function(e){return e?e:function(){return U$(this,function(L,c){return c})}}); qM("Array.prototype.fill",function(e){return e?e:function(L,c,I){var B=this.length||0;c<0&&(c=Math.max(0,B+c));if(I==null||I>B)I=B;I=Number(I);I<0&&(I=Math.max(0,B+I));for(c=Number(c||0);c0&&c?c.repeat(Math.ceil(L/c.length)).substring(0,L):"")+I}}); qM("Array.prototype.findIndex",function(e){return e?e:function(L,c){return tvJ(this,L,c).E7}}); qM("Promise.prototype.finally",function(e){return e?e:function(L){return this.then(function(c){return Promise.resolve(L()).then(function(){return c})},function(c){return Promise.resolve(L()).then(function(){throw c; })})}}); qM("Math.imul",function(e){return e?e:function(L,c){L=Number(L);c=Number(c);var I=L&65535,B=c&65535;return I*B+((L>>>16&65535)*B+I*(c>>>16&65535)<<16>>>0)|0}}); qM("Math.sign",function(e){return e?e:function(L){L=Number(L);return L===0||isNaN(L)?L:L>0?1:-1}}); qM("WeakSet",function(e){function L(c){this.X=new WeakMap;if(c){c=g.f(c);for(var I;!(I=c.next()).done;)this.add(I.value)}} if(function(){if(!e||!Object.seal)return!1;try{var c=Object.seal({}),I=Object.seal({}),B=new e([c]);if(!B.has(c)||B.has(I))return!1;B.delete(c);B.add(I);return!B.has(c)&&B.has(I)}catch(x){return!1}}())return e; L.prototype.add=function(c){this.X.set(c,!0);return this}; L.prototype.has=function(c){return this.X.has(c)}; L.prototype.delete=function(c){return this.X.delete(c)}; return L}); qM("AggregateError",function(e){function L(c,I){I=Error(I);"stack"in I&&(this.stack=I.stack);this.errors=c;this.message=I.message} if(e)return e;g.z(L,Error);L.prototype.name="AggregateError";return L}); qM("Array.prototype.copyWithin",function(e){function L(c){c=Number(c);return c===Infinity||c===-Infinity?c:c|0} return e?e:function(c,I,B){var x=this.length;c=L(c);I=L(I);B=B===void 0?x:L(B);c=c<0?Math.max(x+c,0):Math.min(c,x);I=I<0?Math.max(x+I,0):Math.min(I,x);B=B<0?Math.max(x+B,0):Math.min(B,x);if(cI;)--B in this?this[--c]=this[B]:delete this[--c];return this}}); qM("Int8Array.prototype.copyWithin",Xx);qM("Uint8Array.prototype.copyWithin",Xx);qM("Uint8ClampedArray.prototype.copyWithin",Xx);qM("Int16Array.prototype.copyWithin",Xx);qM("Uint16Array.prototype.copyWithin",Xx);qM("Int32Array.prototype.copyWithin",Xx);qM("Uint32Array.prototype.copyWithin",Xx);qM("Float32Array.prototype.copyWithin",Xx);qM("Float64Array.prototype.copyWithin",Xx);qM("Array.prototype.at",function(e){return e?e:K6}); qM("Int8Array.prototype.at",Yn);qM("Uint8Array.prototype.at",Yn);qM("Uint8ClampedArray.prototype.at",Yn);qM("Int16Array.prototype.at",Yn);qM("Uint16Array.prototype.at",Yn);qM("Int32Array.prototype.at",Yn);qM("Uint32Array.prototype.at",Yn);qM("Float32Array.prototype.at",Yn);qM("Float64Array.prototype.at",Yn);qM("String.prototype.at",function(e){return e?e:K6}); qM("Array.prototype.findLastIndex",function(e){return e?e:function(L,c){return O6n(this,L,c).E7}}); qM("Int8Array.prototype.findLastIndex",n6);qM("Uint8Array.prototype.findLastIndex",n6);qM("Uint8ClampedArray.prototype.findLastIndex",n6);qM("Int16Array.prototype.findLastIndex",n6);qM("Uint16Array.prototype.findLastIndex",n6);qM("Int32Array.prototype.findLastIndex",n6);qM("Uint32Array.prototype.findLastIndex",n6);qM("Float32Array.prototype.findLastIndex",n6);qM("Float64Array.prototype.findLastIndex",n6);qM("Number.parseInt",function(e){return e||parseInt});var Ho,rM,TcJ;Ho=Ho||{};g.LZ=this||self;rM="closure_uid_"+(Math.random()*1E9>>>0);TcJ=0;g.TL(WU,Error);WU.prototype.name="CustomError";var Ve$;var AJJ,sd,jW;AJJ=Array.prototype.indexOf?function(e,L){return Array.prototype.indexOf.call(e,L,void 0)}:function(e,L){if(typeof e==="string")return typeof L!=="string"||L.length!=1?-1:e.indexOf(L,0); for(var c=0;c=0;c--)if(c in e&&e[c]===L)return c;return-1}; g.KZ=Array.prototype.forEach?function(e,L,c){Array.prototype.forEach.call(e,L,c)}:function(e,L,c){for(var I=e.length,B=typeof e==="string"?e.split(""):e,x=0;x=.3:this.oU>=.5};var Dt={PES:0,jhw:1},Dlv={NONE:0,pqS:1,y__:2};var mMJ="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");v2.prototype.getValue=function(){return this.K}; g.z(fe,v2);fe.prototype.Z=function(e){this.K===null&&g.t_(this.G,e)&&(this.K=e)}; g.z(A_,v2);A_.prototype.Z=function(e){this.K===null&&typeof e==="number"&&(this.K=e)}; g.z(FW,v2);FW.prototype.Z=function(e){this.K===null&&typeof e==="string"&&(this.K=e)};bw.prototype.disable=function(){this.K=!1}; bw.prototype.enable=function(){this.K=!0}; bw.prototype.isEnabled=function(){return this.K}; bw.prototype.reset=function(){this.X={};this.K=!0;this.Z={}};var lT=document,wF=window;var pM7=xN(1,!0),$L=xN(610401301,!1);xN(899588437,!1);var $ML=xN(772657768,!1),jHw=xN(513659523,!1),H6Z=xN(568333945,!1),Dec=xN(1331761403,!1);xN(651175828,!1);xN(722764542,!1);xN(748402145,!1);xN(748402146,!1);xN(748402147,!1);xN(333098724,!1);xN(2147483644,!1);xN(2147483645,!1);xN(2147483646,pM7);xN(2147483647,!0);var jR=!!g.BU("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var as=String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]},S9c=/&/g,rwH=//g,Rex=/"/g,uhx=/'/g,teM=/\x00/g,oNM=/[\x00&<>"']/;var H2,lRL=g.LZ.navigator;H2=lRL?lRL.userAgentData||null:null;var Enn=globalThis.trustedTypes,YL;Lo.prototype.toString=function(){return this.X+""};Ba.prototype.toString=function(){return this.X}; var Y$H=new Ba("about:invalid#zClosurez");var HYn=rz("tel"),$IT=rz("sms"),KfT=[rz("data"),rz("http"),rz("https"),rz("mailto"),rz("ftp"),new og(function(e){return/^[^:]*([/?#]|$)/.test(e)})],nnR=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;O3.prototype.toString=function(){return this.X+""};zy.prototype.toString=function(){return this.X+""};Fj.prototype.toString=function(){return this.X};var iv={};g.PnJ=String.prototype.repeat?function(e,L){return e.repeat(L)}:function(e,L){return Array(L+1).join(e)};po[" "]=function(){};var Pz,rH,ydc,QHh,dMZ,UM9,lC,Pr,EnN;g.QG=Uo();g.oA=H66();g.ZQ=P2("Edge");g.sj=g.ZQ||g.oA;Pz=P2("Gecko")&&!(Ce(g.yc(),"WebKit")&&!P2("Edge"))&&!(P2("Trident")||P2("MSIE"))&&!P2("Edge");g.RF=Ce(g.yc(),"WebKit")&&!P2("Edge");rH=Z5();ydc=zen();g.P3=Mev();QHh=mj();dMZ=P2("iPad");UM9=P2("iPod");lC=yK();Pr=Ce(g.yc(),"KaiOS"); a:{var XMw="",Kfe=function(){var e=g.yc();if(Pz)return/rv:([^\);]+)(\)|;)/.exec(e);if(g.ZQ)return/Edge\/([\d\.]+)/.exec(e);if(g.oA)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(e);if(g.RF)return/WebKit\/(\S+)/.exec(e);if(g.QG)return/(?:Version)[ \/]?(\S+)/.exec(e)}(); Kfe&&(XMw=Kfe?Kfe[1]:"");if(g.oA){var Su,Y$L=g.LZ.document;Su=Y$L?Y$L.documentMode:void 0;if(Su!=null&&Su>parseFloat(XMw)){EnN=String(Su);break a}}EnN=XMw}var Awv=EnN,vN6={};var jG,H3;g.Br=Eo();jG=mj()||P2("iPod");H3=P2("iPad");g.d$=PnR();g.q8=XW();g.RM=Ke()&&!yK();var C5c=!g.oA&&!Ke();g.M=g.Pa.prototype;g.M.clone=function(){return new g.Pa(this.x,this.y)}; g.M.equals=function(e){return e instanceof g.Pa&&QK(this,e)}; g.M.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.M.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.M.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.M.scale=function(e,L){this.x*=e;this.y*=typeof L==="number"?L:e;return this};g.M=g.dz.prototype;g.M.clone=function(){return new g.dz(this.width,this.height)}; g.M.aspectRatio=function(){return this.width/this.height}; g.M.isEmpty=function(){return!E3(this)}; g.M.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.M.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.M.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.M.scale=function(e,L){this.width*=e;this.height*=typeof L==="number"?L:e;return this};Ko.prototype.toString=function(){return this.X}; var Xj={};new Ko(Xj,"");var iZn=/^[a-z][a-z\d-]*$/i,GL6="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),kLH="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),wUT=["action","formaction","href"];var C7T={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};g.M=no.prototype;g.M.IT=function(e){return Bz(this.X,e)}; g.M.getElementsByTagName=function(e,L){return(L||this.X).getElementsByTagName(String(e))}; g.M.q0=function(e){return g.rF(e,this.X)}; g.M.setProperties=hj;g.M.createElement=function(e){return tj(this.X,e)}; g.M.appendChild=g.Wz;g.M.append=function(e,L){ywf(cz(e),e,arguments,1)}; g.M.canHaveChildren=function(e){if(e.nodeType!=1)return!1;switch(e.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0}; g.M.removeNode=g.s_;g.M.getChildren=function(e){return e.children!=void 0?e.children:Array.prototype.filter.call(e.childNodes,function(L){return L.nodeType==1})}; g.M.contains=g.vz;gF.prototype.now=function(){return 0}; gF.prototype.K=function(){return 0}; gF.prototype.Z=function(){return 0}; gF.prototype.X=function(){return 0};g.z(D1,gF);D1.prototype.now=function(){return kr()&&wF.performance.now?wF.performance.now():gF.prototype.now.call(this)}; D1.prototype.K=function(){return kr()&&wF.performance.memory?wF.performance.memory.totalJSHeapSize||0:gF.prototype.K.call(this)}; D1.prototype.Z=function(){return kr()&&wF.performance.memory?wF.performance.memory.usedJSHeapSize||0:gF.prototype.Z.call(this)}; D1.prototype.X=function(){return kr()&&wF.performance.memory?wF.performance.memory.jsHeapSizeLimit||0:gF.prototype.X.call(this)};var Jpv=function(){if(!g.LZ.addEventListener||!Object.defineProperty)return!1;var e=!1,L=Object.defineProperty({},"passive",{get:function(){e=!0}}); try{var c=function(){}; g.LZ.addEventListener("test",c,L);g.LZ.removeEventListener("test",c,L)}catch(I){}return e}();var Rmr=jLr("AnimationEnd"),i_=jLr("TransitionEnd");g.M=mR.prototype;g.M.getHeight=function(){return this.bottom-this.top}; g.M.clone=function(){return new mR(this.top,this.right,this.bottom,this.left)}; g.M.contains=function(e){return this&&e?e instanceof mR?e.left>=this.left&&e.right<=this.right&&e.top>=this.top&&e.bottom<=this.bottom:e.x>=this.left&&e.x<=this.right&&e.y>=this.top&&e.y<=this.bottom:!1}; g.M.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this}; g.M.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this}; g.M.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this}; g.M.scale=function(e,L){L=typeof L==="number"?L:e;this.left*=e;this.right*=e;this.top*=L;this.bottom*=L;return this};g.M=g.$r.prototype;g.M.clone=function(){return new g.$r(this.left,this.top,this.width,this.height)}; g.M.contains=function(e){return e instanceof g.Pa?e.x>=this.left&&e.x<=this.left+this.width&&e.y>=this.top&&e.y<=this.top+this.height:this.left<=e.left&&this.left+this.width>=e.left+e.width&&this.top<=e.top&&this.top+this.height>=e.top+e.height}; g.M.getSize=function(){return new g.dz(this.width,this.height)}; g.M.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.M.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.M.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.M.scale=function(e,L){L=typeof L==="number"?L:e;this.left*=e;this.width*=e;this.top*=L;this.height*=L;return this};var lJn={};var XUf=CU(function(){var e=!1;try{var L=Object.defineProperty({},"passive",{get:function(){e=!0}}); g.LZ.addEventListener("test",null,L)}catch(c){}return e});KN6.prototype.isVisible=function(){return xT(lT)===1};var Qsf=on(function(e){return typeof e==="number"}),Pwn=on(function(e){return typeof e==="string"}),dQM=on(function(e){return typeof e==="boolean"}),fb=on(function(e){return e!=null&&typeof e==="object"&&typeof e.then==="function"}),fwr=on(function(e){return typeof e==="function"}),nnJ=on(function(e){return!!e&&(typeof e==="object"||typeof e==="function")});var nNn={V97:"allow-forms",kVM:"allow-modals",j9q:"allow-orientation-lock",BMe:"allow-pointer-lock",RP7:"allow-popups",YV$:"allow-popups-to-escape-sandbox",ukM:"allow-presentation",TMq:"allow-same-origin",c9w:"allow-scripts",y9S:"allow-top-navigation",Wye:"allow-top-navigation-by-user-activation"},ItM=CU(function(){return eVv()});var Sof=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");Od.prototype.Wd=function(e,L,c){e=e+"//"+L+c;var I=uWc(this)-c.length;if(I<0)return"";this.X.sort(function(u,t){return u-t}); c=null;L="";for(var B=0;B=R.length){I-=R.length;e+=R;L=this.Z;break}c=c==null?x:c}}I="";c!=null&&(I=""+L+"trn="+c);return e+I};fH.prototype.setInterval=function(e,L){return wF.setInterval(e,L)}; fH.prototype.clearInterval=function(e){wF.clearInterval(e)}; fH.prototype.setTimeout=function(e,L){return wF.setTimeout(e,L)}; fH.prototype.clearTimeout=function(e){wF.clearTimeout(e)};var RJ=void 0,hY,QgM=typeof TextDecoder!=="undefined",A_c,ftM=typeof String.prototype.isWellFormed==="function",vLf=typeof TextEncoder!=="undefined";var gLM={},Dx=null,kGx=Pz||g.RF||typeof g.LZ.btoa=="function";var Ze$=typeof Uint8Array!=="undefined",Cwv=!g.oA&&typeof btoa==="function",at6=/[-_.]/g,J_n={"-":"+",_:"/",".":"="},Jh={};wR.prototype.isEmpty=function(){return this.X==null}; wR.prototype.sizeBytes=function(){var e=CH(this);return e?e.length:0}; var y_c;var p2r=void 0;var Zx=typeof Symbol==="function"&&typeof Symbol()==="symbol",eeL=yO("jas",void 0,!0),Wt=yO(void 0,"1oa"),JT=yO(void 0,Symbol()),LNL=yO(void 0,"0ub"),Tzc=yO(void 0,"0ubs"),WRn=yO(void 0,"0ubsb"),box=yO(void 0,"0actk"),kQ=yO("m_m","fSY",!0),z7v=yO(void 0,"vps"),cwU=yO();Math.max.apply(Math,g.V(Object.values({ye7:1,cem:2,Tpm:4,jp7:8,ZXM:16,ZBe:32,wUw:64,A__:128,u7S:256,ARw:512,c_e:1024,QhW:2048,eAe:4096})));var jsM={LH:{value:0,configurable:!0,writable:!0,enumerable:!1}},$Qn=Object.defineProperties,pH=Zx?eeL:"LH",ct,IJe=[];j_(IJe,7);ct=Object.freeze(IJe);var DK={},lD={},V5x=Object.freeze({}),dR={};var Ed=typeof g.LZ.BigInt==="function"&&typeof g.LZ.BigInt(0)==="bigint";var pt=on(function(e){return Ed?e>=BMU&&e<=xgU:e[0]==="-"?UQM(e,oNg):UQM(e,S9L)}),oNg=Number.MIN_SAFE_INTEGER.toString(),BMU=Ed?BigInt(Number.MIN_SAFE_INTEGER):void 0,S9L=Number.MAX_SAFE_INTEGER.toString(),xgU=Ed?BigInt(Number.MAX_SAFE_INTEGER):void 0;var $9r=typeof Uint8Array.prototype.slice==="function",ed=0,Lt=0,MfM;var sX=typeof BigInt==="function"?BigInt.asIntN:void 0,h7n=typeof BigInt==="function"?BigInt.asUintN:void 0,FJ=Number.isSafeInteger,u5=Number.isFinite,b5=Math.trunc,nLJ=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var sg$={};var rwL={eCl:!0};var N6;var vCf,f5n;var Nzc=Xo(0),Ja={};$s.prototype.init=function(e,L,c,I){var B=I===void 0?{}:I;I=B.Pu===void 0?!1:B.Pu;B=B.VV===void 0?!1:B.VV;this.Pu=I;this.VV=B;e&&(e=pA(e,this.VV),this.K=e.buffer,this.B=e.X,this.G=L||0,this.Z=c!==void 0?this.G+c:this.K.length,this.X=this.G)}; $s.prototype.free=function(){this.clear();Er.length<100&&Er.push(this)}; $s.prototype.clear=function(){this.K=null;this.B=!1;this.X=this.Z=this.G=0;this.Pu=!1}; $s.prototype.reset=function(){this.X=this.G}; var Er=[];Xe.prototype.free=function(){this.X.clear();this.K=this.G=-1;KA.length<100&&KA.push(this)}; Xe.prototype.reset=function(){this.X.reset();this.Z=this.X.X;this.K=this.G=-1}; var KA=[];var U9f,Xaf;qT.prototype.length=function(){return this.X.length}; qT.prototype.end=function(){var e=this.X;this.X=[];return e};var Fi=fK(),heL=fK(),Reh=fK(),uhh=fK(),teU=fK(),OZM=fK(),q9J=fK(),TML=fK(),WNe=fK(),Mee=fK();AY.prototype.toJSON=function(){return jd(this)}; AY.prototype.sV=function(e){return JSON.stringify(jd(this,e))}; AY.prototype.clone=function(){var e=this.XF,L=e[pH]|0;return QT(this,e,L)?dI(this,e,!0):new this.constructor(Py(e,L,!1))}; AY.prototype[kQ]=DK;AY.prototype.toString=function(){return this.XF.toString()};var orc=ik(function(e,L,c,I,B){if(e.K!==2)return!1;rD(e,M4(L,I,c),B);return!0},xlT),S_M=ik(function(e,L,c,I,B){if(e.K!==2)return!1; rD(e,M4(L,I,c),B);return!0},xlT),jN=Symbol(),wD=Symbol(),CK=Symbol(),OUx=Symbol(),RrJ=Symbol(),Gm,gD;var ze7=Pd(function(e,L,c){if(e.K!==1)return!1;UD(L,c,de(e.X));return!0},ED,TML),sLL=Pd(function(e,L,c){if(e.K!==1)return!1; e=de(e.X);UD(L,c,e===0?void 0:e);return!0},ED,TML),vNZ=Pd(function(e,L,c,I){if(e.K!==1)return!1; q4(L,c,I,de(e.X));return!0},ED,TML),fJe=Pd(function(e,L,c){if(e.K!==0)return!1; UD(L,c,Ht(e.X));return!0},Xi,OZM),Awe=Pd(function(e,L,c){if(e.K!==0)return!1; e=Ht(e.X);UD(L,c,e===0?void 0:e);return!0},Xi,OZM),FN7=Pd(function(e,L,c,I){if(e.K!==0)return!1; q4(L,c,I,Ht(e.X));return!0},Xi,OZM),bZ9=Pd(function(e,L,c){if(e.K!==0)return!1; UD(L,c,l6(e.X));return!0},KK,uhh),iZ7=Pd(function(e,L,c){if(e.K!==0)return!1; e=l6(e.X);UD(L,c,e===0?void 0:e);return!0},KK,uhh),GLZ=Pd(function(e,L,c,I){if(e.K!==0)return!1; q4(L,c,I,l6(e.X));return!0},KK,uhh),gNM=Pd(function(e,L,c){if(e.K!==1)return!1; UD(L,c,Qj(e.X));return!0},function(e,L,c){cjn(e,c,R7v(L))},q9J),kLL=dD(function(e,L,c){if(e.K!==1&&e.K!==2)return!1; L=ha(L,L[pH]|0,c);if(e.K==2)for(c=l6(e.X)>>>0,c=e.X.X+c;e.X.X>>0);return!0},function(e,L,c){L=TK(L); L!=null&&L!=null&&(sD(e,c,0),Wd(e.X,L))},teU),NMe=Pd(function(e,L,c){if(e.K!==0)return!1; UD(L,c,l6(e.X));return!0},function(e,L,c){L=q6(L); L!=null&&(L=parseInt(L,10),sD(e,c,0),Y3H(e.X,L))},Mee);AjT.prototype.register=function(){po(this)};g.z(eW,AY);eW.prototype.Z=FRM([0,sLL,Awe,-2,iZ7]);var wzc={Qpl:1,zP:2,Xcw:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};VfJ.prototype.gI=function(e){if(typeof e==="string"&&e.length!=0){var L=this.II;if(L.K){e=e.split("&");for(var c=e.length-1;c>=0;c--){var I=e[c].split("="),B=decodeURIComponent(I[0]);I.length>1?(I=decodeURIComponent(I[1]),I=/^[0-9]+$/g.exec(I)?parseInt(I,10):I):I=1;(B=L.X[B])&&B.Z(I)}}}};var Oz=null;var oX=g.LZ.performance,mgh=!!(oX&&oX.mark&&oX.measure&&oX.clearMarks),BO=CU(function(){var e;if(e=mgh){var L=L===void 0?window:L;if(Oz===null){Oz="";try{e="";try{e=L.top.location.hash}catch(I){e=L.location.hash}if(e){var c=e.match(/\bdeid=([\d,]+)/);Oz=c?c[1]:""}}catch(I){}}L=Oz;e=!!L.indexOf&&L.indexOf("1337")>=0}return e}); xW.prototype.disable=function(){this.X=!1;this.events!==this.K.google_js_reporting_queue&&(BO()&&g.KZ(this.events,ZUc),this.events.length=0)}; xW.prototype.start=function(e,L){if(!this.X)return null;var c=mlM()||NFv();e=new yjr(e,L,c);L="goog_"+e.label+"_"+e.uniqueId+"_start";oX&&BO()&&oX.mark(L);return e}; xW.prototype.end=function(e){if(this.X&&typeof e.value==="number"){var L=mlM()||NFv();e.duration=L-e.value;L="goog_"+e.label+"_"+e.uniqueId+"_end";oX&&BO()&&oX.mark(L);!this.X||this.events.length>2048||this.events.push(e)}};var pzx=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),vO=/#|$/,QF$=/[?&]($|#)/;UlH.prototype.aH=function(e,L,c,I,B){B=B||this.GQ;try{var x=new Od;x.X.push(1);x.K[1]=qt("context",e);L.error&&L.meta&&L.id||(L=new GE(gj(L)));if(L.msg){var S=L.msg.substring(0,512);x.X.push(2);x.K[2]=qt("msg",S)}var h=L.meta||{};if(this.Q8)try{this.Q8(h)}catch(T){}if(I)try{I(h)}catch(T){}I=[h];x.X.push(3);x.K[3]=I;var R=hVH();if(R.K){var u=R.K.url||"";x.X.push(4);x.K[4]=qt("top",u)}var t={url:R.X.url||""};if(R.X.url){var O=g.rj(R.X.url);var q=SW(O[1],null,O[3],O[4])}else q="";u=[t,{url:q}];x.X.push(5); x.K[5]=u;C3c(this.X,B,x,c)}catch(T){try{C3c(this.X,B,{context:"ecmserr",rctx:e,msg:gj(T),url:R&&R.X.url},c)}catch(W){}}return this.Jy}; g.z(GE,a1v);var bT,iT,FY=new xW;bT=new function(){var e="https:";wF&&wF.location&&wF.location.protocol==="http:"&&(e="http:");this.K=e;this.X=.01}; iT=new UlH;wF&&wF.document&&(wF.document.readyState=="complete"?Xzx():FY.X&&BA(wF,"load",function(){Xzx()}));var nrH=Date.now(),aX=-1,Vy=-1,rav,N3=-1,CW=!1;m_.prototype.equals=function(e,L){return!!e&&(!(L===void 0?0:L)||this.volume==e.volume)&&this.Z==e.Z&&Z1(this.X,e.X)&&!0};yy.prototype.IT=function(){return this.T}; yy.prototype.equals=function(e,L){return this.G.equals(e.G,L===void 0?!1:L)&&this.T==e.T&&Z1(this.Z,e.Z)&&Z1(this.j,e.j)&&this.X==e.X&&this.B==e.B&&this.K==e.K&&this.J==e.J};var ywN={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},lg={Lx:"start",Gt:"firstquartile",Oo:"midpoint",iy:"thirdquartile",COMPLETE:"complete",ERROR:"error",Cx:"metric",PAUSE:"pause",mO:"resume",Np:"skip",X4:"viewable_impression",J5:"mute",x8:"unmute",qg:"fullscreen",eK:"exitfullscreen",rA:"bufferstart",xl:"bufferfinish",Up:"fully_viewable_audible_half_duration_impression",P$:"measurable_impression",dA:"abandon",ZA:"engagedview",Iz:"impression",zt:"creativeview",oS:"loaded", nk_:"progress",CLOSE:"close",WKW:"collapse",c1q:"overlay_resize",y1M:"overlay_unmeasurable_impression",WV_:"overlay_unviewable_impression",wcq:"overlay_viewable_immediate_impression",tAq:"overlay_viewable_end_of_session_impression",hG:"custom_metric_viewable",Ns:"audio_audible",L_:"audio_measurable",Sp:"audio_impression"},sJx="start firstquartile midpoint thirdquartile resume loaded".split(" "),vOn=["start","firstquartile","midpoint","thirdquartile"],Rjv=["abandon"],Rj={UNKNOWN:-1,Lx:0,Gt:1,Oo:2, iy:3,COMPLETE:4,Cx:5,PAUSE:6,mO:7,Np:8,X4:9,J5:10,x8:11,qg:12,eK:13,Up:14,P$:15,dA:16,ZA:17,Iz:18,zt:19,oS:20,hG:21,rA:22,xl:23,Sp:27,L_:28,Ns:29};var Lsx={s9q:"addEventListener",tn_:"getMaxSize",wvM:"getScreenSize",oyM:"getState",MnM:"getVersion",EkS:"removeEventListener",WAm:"isViewable"};oQn.prototype.update=function(e){e&&e.document&&(this.T=Zn(!1,e,this.isMobileDevice),this.X=Zn(!0,e,this.isMobileDevice),rTr(this,e),SX$(this,e))};Qy.prototype.cancel=function(){Ah().clearTimeout(this.X);this.X=null}; Qy.prototype.schedule=function(){var e=this,L=Ah(),c=cO().X.X;this.X=L.setTimeout(LW(c,Dn(143,function(){e.K++;e.Z.sample()})),egR())};g.M=dj.prototype;g.M.gf=function(){return!1}; g.M.initialize=function(){return this.isInitialized=!0}; g.M.g8=function(){return this.X.Ve}; g.M.O8=function(){return this.X.pS}; g.M.fail=function(e,L){if(!this.pS||(L===void 0?0:L))this.pS=!0,this.Ve=e,this.J=0,this.X!=this||EO(this)}; g.M.getName=function(){return this.X.t7}; g.M.R4=function(){return this.X.Cm()}; g.M.Cm=function(){return{}}; g.M.tb=function(){return this.X.J}; g.M.vS=function(){var e=HO();e.X=Zn(!0,this.Z,e.isMobileDevice)}; g.M.dE=function(){SX$(HO(),this.Z)}; g.M.bU=function(){return this.G.X}; g.M.sample=function(){}; g.M.isActive=function(){return this.X.j}; g.M.N6=function(e){var L=this.X;this.X=e.tb()>=this.J?e:this;L!==this.X?(this.j=this.X.j,EO(this)):this.j!==this.X.j&&(this.j=this.X.j,EO(this))}; g.M.P3=function(e){if(e.K===this.X){var L=!this.G.equals(e,this.D);this.G=e;L&&uJc(this)}}; g.M.C8=function(){return this.D}; g.M.dispose=function(){this.k9=!0}; g.M.We=function(){return this.k9};g.M=XY.prototype;g.M.observe=function(){return!0}; g.M.unobserve=function(){}; g.M.XS=function(e){this.B=e}; g.M.dispose=function(){if(!this.We()){var e=this.K;g.i7(e.B,this);e.D&&this.C8()&&RNc(e);this.unobserve();this.Gm=!0}}; g.M.We=function(){return this.Gm}; g.M.R4=function(){return this.K.R4()}; g.M.tb=function(){return this.K.tb()}; g.M.g8=function(){return this.K.g8()}; g.M.O8=function(){return this.K.O8()}; g.M.N6=function(){}; g.M.P3=function(){this.ra()}; g.M.C8=function(){return this.k9};g.M=KW.prototype;g.M.tb=function(){return this.X.tb()}; g.M.g8=function(){return this.X.g8()}; g.M.O8=function(){return this.X.O8()}; g.M.create=function(e,L,c){var I=null;this.X&&(I=this.fL(e,L,c),UO(this.X,I));return I}; g.M.HS=function(){return this.F_()}; g.M.F_=function(){return!1}; g.M.init=function(e){return this.X.initialize()?(UO(this.X,this),this.G=e,!0):!1}; g.M.N6=function(e){e.tb()==0&&this.G(e.g8(),this)}; g.M.P3=function(){}; g.M.C8=function(){return!1}; g.M.dispose=function(){this.B=!0}; g.M.We=function(){return this.B}; g.M.R4=function(){return{}};YW.prototype.add=function(e,L,c){++this.Z;e=new OtM(e,L,c);this.X.push(new OtM(e.K,e.X,e.Z+this.Z/4096));this.K=!0;return this};zNc.prototype.toString=function(){var e="//pagead2.googlesyndication.com//pagead/gen_204",L=ez(this.X);L.length>0&&(e+="?"+L);return e};g.p.prototype.vD=!1;g.p.prototype.We=function(){return this.vD}; g.p.prototype.dispose=function(){this.vD||(this.vD=!0,this.KS())}; g.p.prototype[Symbol.dispose]=function(){this.dispose()}; g.p.prototype.addOnDisposeCallback=function(e,L){this.vD?L!==void 0?e.call(L):e():(this.CX||(this.CX=[]),L&&(e=e.bind(L)),this.CX.push(e))}; g.p.prototype.KS=function(){if(this.CX)for(;this.CX.length;)this.CX.shift()()};IS.prototype.update=function(e,L,c){e&&(this.X+=L,this.K+=L,this.G+=L,this.Z=Math.max(this.Z,this.G));if(c===void 0?!e:c)this.G=0};var Fvn=[1,.75,.5,.3,0];Bs.prototype.update=function(e,L,c,I,B,x){x=x===void 0?!0:x;L=B?Math.min(e,L):L;for(B=0;B0&&L>=S;S=!(e>0&&e>=S)||c;this.X[B].update(x&&h,I,!x||S)}};RS.prototype.update=function(e,L,c,I){this.T=this.T!=-1?Math.min(this.T,L.oU):L.oU;this.h7=Math.max(this.h7,L.oU);this.Gm=this.Gm!=-1?Math.min(this.Gm,L.b2):L.b2;this.Ve=Math.max(this.Ve,L.b2);this.x9.update(L.b2,c.b2,L.X,e,I);this.Y9+=e;L.oU===0&&(this.t7+=e);this.K.update(L.oU,c.oU,L.X,e,I);c=I||c.fO!=L.fO?c.isVisible()&&L.isVisible():c.isVisible();L=!L.isVisible()||L.X;this.He.update(c,e,L)}; RS.prototype.H1=function(){return this.He.Z>=this.Sl};if(lT&&lT.URL){var ZZM=lT.URL,pUM;if(pUM=!!ZZM){var $gL;a:{if(ZZM){var jLM=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var qe=jLM.exec(decodeURIComponent(ZZM));if(qe){$gL=qe[1]&&qe[1].length>1?qe[1].substring(1):"true";break a}}catch(e){}}$gL=""}pUM=$gL.length>0}iT.Jy=!pUM};var HZh=new mR(0,0,0,0);var JTn=new mR(0,0,0,0);g.z(zV,g.p);g.M=zV.prototype; g.M.KS=function(){if(this.I8.X){if(this.KO.BT){var e=this.I8.X;typeof e.removeEventListener==="function"&&e.removeEventListener("mouseover",this.KO.BT,In());this.KO.BT=null}this.KO.jx&&(e=this.I8.X,typeof e.removeEventListener==="function"&&e.removeEventListener("mouseout",this.KO.jx,In()),this.KO.jx=null)}this.Xb&&this.Xb.dispose();this.Pd&&this.Pd.dispose();delete this.Zo;delete this.Ki;delete this.GE;delete this.I8.xW;delete this.I8.X;delete this.KO;delete this.Xb;delete this.Pd;delete this.II; g.p.prototype.KS.call(this)}; g.M.YW=function(){return this.Pd?this.Pd.X:this.position}; g.M.gI=function(e){cO().gI(e)}; g.M.C8=function(){return!1}; g.M.Df=function(){return new RS}; g.M.oh=function(){return this.Zo}; g.M.AF=function(e){return NIr(this,e,1E4)}; g.M.OW=function(e,L,c,I,B,x,S){this.AI||(this.SS&&(e=this.L0(e,c,B,S),I=I&&this.RF.oU>=(this.fO()?.3:.5),this.Vd(x,e,I),this.GA=L,e.oU>0&&-1===this.C7&&(this.C7=L),this.vE==-1&&this.H1()&&(this.vE=L),this.DK==-2&&(this.DK=Ws(this.YW())?e.oU:-1),this.RF=e),this.Ki(this))}; g.M.Vd=function(e,L,c){this.oh().update(e,L,this.RF,c)}; g.M.Oi=function(){return new eR}; g.M.L0=function(e,L,c,I){c=this.Oi();c.X=L;L=Ah().K;L=xT(lT)===0?-1:L.isVisible()?0:1;c.K=L;c.oU=this.YZ(e);c.fO=this.fO();c.b2=I;return c}; g.M.YZ=function(e){return this.opacity===0&&gu(this.II,"opac")===1?0:e}; g.M.fO=function(){return!1}; g.M.Xe=function(){return this.KE||this.q8}; g.M.YX=function(){Jp()}; g.M.g6=function(){Jp()}; g.M.i9=function(){return 0}; g.M.H1=function(){return this.Zo.H1()}; g.M.EN=function(){var e=this.SS;e=(this.hasCompleted||this.We())&&!e;var L=cO().K!==2||this.YKe;return this.AI||L&&e?2:this.H1()?4:3}; g.M.Jd=function(){return 0};g.vs.prototype.next=function(){return g.T8}; g.T8={done:!0,value:void 0};g.vs.prototype.qZ=function(){return this};g.z(jQc,eR);var Wj=lKc([void 0,1,2,3,4,8,16]),Me=lKc([void 0,4,8,16]),lJN={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:bg("p0",Me),p1:bg("p1",Me),p2:bg("p2",Me),p3:bg("p3",Me),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:Fc("mtos1",[0,2,4],!1,Me),mtos2:Fc("mtos2",[0,2,4],!1,Me),mtos3:Fc("mtos3",[0,2,4],!1,Me),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:bg("a0",Me),a1:bg("a1",Me),a2:bg("a2",Me),a3:bg("a3",Me),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:bg("c0",Me),c1:bg("c1",Me),c2:bg("c2",Me),c3:bg("c3",Me),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:bg("qmtos",Wj),qnc:bg("qnc",Wj),qmv:bg("qmv",Wj),qnv:bg("qnv",Wj), 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:bg("ss0",Me),ss1:bg("ss1",Me),ss2:bg("ss2",Me),ss3:bg("ss3",Me),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"},P79=Object.assign({},lJN,{avid:Jj("audio"),avas:"avas",vs:"vs"}),QLw={atos:"atos",avt:Fc("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(e,L){return function(c){return c[e]===void 0&&L!==void 0?L:c[e]}}("ss",0), t:"t"};k6.prototype.getValue=function(){return this.K}; k6.prototype.update=function(e,L){e>=32||(this.X&1<=.5;$W(L.volume)&&(this.G=this.G!=-1?Math.min(this.G,L.volume):L.volume,this.j=Math.max(this.j,L.volume));x&&(this.k9+=e,this.D+=B?e:0);this.X.update(L.oU,c.oU,L.X,e,I,B);this.Z.update(!0,e);this.B.update(B,e);this.pS.update(c.fullscreen,e);this.DY.update(B&&!x,e);e=Math.floor(L.mediaTime/1E3);this.ye.update(e,L.isVisible());this.d_.update(e,L.oU>=1);this.m$.update(e, Ay(L))}};Xyv.prototype.K=function(e){this.Z||(this.X(e)?(e=SDf(this.D,this.G,e),this.B|=e,e=e==0):e=!1,this.Z=e)};g.z(VS,Xyv);VS.prototype.X=function(){return!0}; VS.prototype.j=function(){return!1}; VS.prototype.getId=function(){var e=this,L=Oo(lg,function(c){return c==e.G}); return Rj[L].toString()}; VS.prototype.toString=function(){var e="";this.j()&&(e+="c");this.Z&&(e+="s");this.B>0&&(e+=":"+this.B);return this.getId()+e};g.z(C0,VS);C0.prototype.K=function(e,L){L=L===void 0?null:L;L!=null&&this.T.push(L);VS.prototype.K.call(this,e)};g.z(aS,Kvn);aS.prototype.K=function(){return null}; aS.prototype.Z=function(){return[]};g.z(N_,XY);g.M=N_.prototype;g.M.rV=function(){if(this.element){var e=this.element,L=this.K.X.Z;try{try{var c=IKn(e.getBoundingClientRect())}catch(u){c=new mR(0,0,0,0)}var I=c.right-c.left,B=c.bottom-c.top,x=dg$(e,L),S=x.x,h=x.y;var R=new mR(Math.round(h),Math.round(S+I),Math.round(h+B),Math.round(S))}catch(u){R=HZh.clone()}this.Z=R;this.X=tdr(this,this.Z)}}; g.M.RV=function(){this.j=this.K.G.X}; g.M.n3=function(e){var L=gu(this.II,"od")==1;return wyx(e,this.j,this.element,L)}; g.M.Ye=function(){this.timestamp=Jp()}; g.M.ra=function(){this.Ye();this.rV();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var e=this.element;var L=new g.dz(e.videoWidth,e.videoHeight);e=this.X;var c=yD(e),I=e.getHeight(),B=L.width;L=L.height;B<=0||L<=0||c<=0||I<=0||(B/=L,L=c/I,e=e.clone(),B>L?(c/=B,I=(I-c)/2,I>0&&(I=e.top+I,e.top=Math.round(I),e.bottom=Math.round(I+c))):(I*=B,c=Math.round((c-I)/2),c>0&&(c=e.left+c,e.left=Math.round(c),e.right=Math.round(c+I))));this.X=e}this.RV(); e=this.X;c=this.j;e=e.left<=c.right&&c.left<=e.right&&e.top<=c.bottom&&c.top<=e.bottom?new mR(Math.max(e.top,c.top),Math.min(e.right,c.right),Math.min(e.bottom,c.bottom),Math.max(e.left,c.left)):new mR(0,0,0,0);c=e.top>=e.bottom||e.left>=e.right?new mR(0,0,0,0):e;e=this.K.G;L=B=I=0;if((this.X.bottom-this.X.top)*(this.X.right-this.X.left)>0)if(this.n3(c))c=new mR(0,0,0,0);else{I=HO().G;L=new mR(0,I.height,I.width,0);var x;I=M_(c,(x=this.B)!=null?x:this.X);B=M_(c,HO().X);L=M_(c,L)}x=c.top>=c.bottom|| c.left>=c.right?new mR(0,0,0,0):pU(c,-this.X.left,-this.X.top);PO()||(B=I=0);this.D=new yy(e,this.element,this.X,x,I,B,this.timestamp,L)}; g.M.getName=function(){return this.K.getName()};var dg9=new mR(0,0,0,0);g.z(m8,N_);g.M=m8.prototype;g.M.observe=function(){this.G();return!0}; g.M.P3=function(){N_.prototype.ra.call(this)}; g.M.Ye=function(){}; g.M.rV=function(){}; g.M.ra=function(){this.G();N_.prototype.ra.call(this)}; g.M.N6=function(e){e=e.isActive();e!==this.J&&(e?this.G():(HO().X=new mR(0,0,0,0),this.X=new mR(0,0,0,0),this.j=new mR(0,0,0,0),this.timestamp=-1));this.J=e};var z8={},Srf=(z8.firstquartile=0,z8.midpoint=1,z8.thirdquartile=2,z8.complete=3,z8);g.z(Zl,zV);g.M=Zl.prototype;g.M.C8=function(){return!0}; g.M.bl=function(){return this.OE==2}; g.M.AF=function(e){return NIr(this,e,Math.max(1E4,this.Z/3))}; g.M.OW=function(e,L,c,I,B,x,S){var h=this,R=this.T(this)||{};g.so(R,B);this.Z=R.duration||this.Z;this.D=R.isVpaid||this.D;this.t7=R.isYouTube||this.t7;Ah();this.x9=!1;B=nQ$(this,L);YXT(this)===1&&(x=B);zV.prototype.OW.call(this,e,L,c,I,R,x,S);this.Na&&this.Na.Z&&g.KZ(this.j,function(u){u.K(h)})}; g.M.Vd=function(e,L,c){zV.prototype.Vd.call(this,e,L,c);jz(this).update(e,L,this.RF,c);this.Sl=Ay(this.RF)&&Ay(L);this.Ve==-1&&this.d_&&(this.Ve=this.oh().Z.X);this.Sk.Z=0;e=this.H1();L.isVisible()&&gq(this.Sk,"vs");e&&gq(this.Sk,"vw");$W(L.volume)&&gq(this.Sk,"am");Ay(L)?gq(this.Sk,"a"):gq(this.Sk,"mut");this.pJ&&gq(this.Sk,"f");L.K!=-1&&(gq(this.Sk,"bm"),L.K==1&&(gq(this.Sk,"b"),Ay(L)&&gq(this.Sk,"umutb")));Ay(L)&&L.isVisible()&&gq(this.Sk,"avs");this.Sl&&e&&gq(this.Sk,"avw");L.oU>0&&gq(this.Sk, "pv");Hs(this,this.oh().Z.X,!0)&&gq(this.Sk,"gdr");rq(this.oh().K,1)>=2E3&&gq(this.Sk,"pmx");this.x9&&gq(this.Sk,"tvoff")}; g.M.Df=function(){return new wq}; g.M.oh=function(){return this.Zo}; g.M.Oi=function(){return new jQc}; g.M.L0=function(e,L,c,I){e=zV.prototype.L0.call(this,e,L,c,I===void 0?-1:I);e.fullscreen=this.pJ;e.paused=this.bl();e.volume=c.volume;$W(e.volume)||(this.sY++,L=this.RF,$W(L.volume)&&(e.volume=L.volume));c=c.currentTime;e.mediaTime=c!==void 0&&c>=0?c:-1;return e}; g.M.YZ=function(e){return HO(),this.pJ?1:zV.prototype.YZ.call(this,e)}; g.M.i9=function(){return 1}; g.M.getDuration=function(){return this.Z}; g.M.EN=function(){return this.AI?2:L3n(this)?5:this.H1()?4:3}; g.M.Jd=function(){return this.DY?this.oh().B.Z>=2E3?4:3:2}; g.M.XS=function(e){this.Pd&&this.Pd.XS(e)};var UgN=g.O9();zjR.prototype.reset=function(){this.X=[];this.K=[]}; var E6=vA(zjR);g.z(Y6,KW);g.M=Y6.prototype;g.M.getName=function(){return(this.K?this.K:this.X).getName()}; g.M.R4=function(){return(this.K?this.K:this.X).R4()}; g.M.tb=function(){return(this.K?this.K:this.X).tb()}; g.M.init=function(e){var L=!1;(0,g.KZ)(this.Z,function(c){c.initialize()&&(L=!0)}); L&&(this.G=e,UO(this.X,this));return L}; g.M.dispose=function(){(0,g.KZ)(this.Z,function(e){e.dispose()}); KW.prototype.dispose.call(this)}; g.M.HS=function(){return jW(this.Z,function(e){return e.gf()})}; g.M.F_=function(){return jW(this.Z,function(e){return e.gf()})}; g.M.fL=function(e,L,c){return new N_(e,this.X,L,c)}; g.M.P3=function(e){this.K=e.K};var gsf={threshold:[0,.3,.5,.75,1]};g.z(n0,N_);g.M=n0.prototype;g.M.observe=function(){var e=this;this.h7||(this.h7=Jp());if(Y_c(298,function(){return kJM(e)}))return!0; this.K.fail("msf");return!1}; g.M.unobserve=function(){if(this.G&&this.element)try{this.G.unobserve(this.element),this.J?(this.J.unobserve(this.element),this.J=null):this.T&&(this.T.disconnect(),this.T=null)}catch(e){}}; g.M.ra=function(){var e=eO(this);e.length>0&&LS(this,e);N_.prototype.ra.call(this)}; g.M.rV=function(){}; g.M.n3=function(){return!1}; g.M.RV=function(){}; g.M.R4=function(){var e={};return Object.assign(this.K.R4(),(e.niot_obs=this.h7,e.niot_cbk=this.pS,e))}; g.M.getName=function(){return"nio"};g.z(c9,KW);c9.prototype.getName=function(){return"nio"}; c9.prototype.F_=function(){return!HO().K&&this.X.X.Z.IntersectionObserver!=null}; c9.prototype.fL=function(e,L,c){return new n0(e,this.X,L,c)};g.z(Ij,dj);Ij.prototype.bU=function(){return HO().X}; Ij.prototype.gf=function(){var e=wtc();this.J!==e&&(this.X!=this&&e>this.X.J&&(this.X=this,EO(this)),this.J=e);return e==2};B9.prototype.sample=function(){SO(this,Xc(),!1)}; B9.prototype.G=function(){var e=PO(),L=Jp();e?(CW||(aX=L,g.KZ(E6.X,function(c){var I=c.oh();I.Pe=Jy(I,L,c.OE!=1)})),CW=!0):(this.T=Nen(this,L),CW=!1,rav=L,g.KZ(E6.X,function(c){c.SS&&(c.oh().J=L)})); SO(this,Xc(),!e)}; var xM=vA(B9);var yar=null,Nz="",aj=!1;var $4M=ptn().FI,hv=ptn().AO;var l2r={BP$:"visible",b1m:"audible",dZY:"time",le$:"timetype"},P6f={visible:function(e){return/^(100|[0-9]{1,2})$/.test(e)}, audible:function(e){return e=="0"||e=="1"}, timetype:function(e){return e=="mtos"||e=="tos"}, time:function(e){return/^(100|[0-9]{1,2})%$/.test(e)||/^([0-9])+ms$/.test(e)}}; HA6.prototype.setTime=function(e,L,c){L=="ms"?(this.Z=e,this.G=-1):(this.Z=-1,this.G=e);this.B=c===void 0?"tos":c;return this};g.z(OB,VS);OB.prototype.getId=function(){return this.T}; OB.prototype.j=function(){return!0}; OB.prototype.X=function(e){var L=e.oh(),c=e.getDuration();return jW(this.J,function(I){if(I.X!=void 0)var B=d4x(I,L);else b:{switch(I.B){case "mtos":B=I.K?L.B.Z:L.Z.X;break b;case "tos":B=I.K?L.B.X:L.Z.X;break b}B=0}B==0?I=!1:(I=I.Z!=-1?I.Z:c!==void 0&&c>0?I.G*c:-1,I=I!=-1&&B>=I);return I})};g.z(qz,QQJ);qz.prototype.X=function(e){var L=new P5n;L.X=GV(e,lJN);L.K=GV(e,QLw);return L};g.z(TQ,VS);TQ.prototype.X=function(e){return L3n(e)};g.z(W9,Kvn);g.z(Mz,VS);Mz.prototype.X=function(e){return e.oh().H1()};g.z(zQ,C0);zQ.prototype.X=function(e){var L=g.Fh(this.T,gu(cO().II,"ovms"));return!e.AI&&(e.OE!=0||L)};g.z(sB,W9);sB.prototype.K=function(){return new zQ(this.X)}; sB.prototype.Z=function(){return[new Mz("viewable_impression",this.X),new TQ(this.X)]};g.z(v9,m8);v9.prototype.G=function(){var e=g.BU("ima.admob.getViewability"),L=gu(this.II,"queryid");typeof e==="function"&&L&&e(L)}; v9.prototype.getName=function(){return"gsv"};g.z(fS,KW);fS.prototype.getName=function(){return"gsv"}; fS.prototype.F_=function(){var e=HO();cO();return e.K&&!1}; fS.prototype.fL=function(e,L,c){return new v9(this.X,L,c)};g.z(Av,m8);Av.prototype.G=function(){var e=this,L=g.BU("ima.bridge.getNativeViewability"),c=gu(this.II,"queryid");typeof L==="function"&&c&&L(c,function(I){g.qQ(I)&&e.T++;var B=I.opt_nativeViewVisibleBounds||{},x=I.opt_nativeViewHidden;e.X=BIr(I.opt_nativeViewBounds||{});var S=e.K.G;S.X=x?dg9.clone():BIr(B);e.timestamp=I.opt_nativeTime||-1;HO().X=S.X;I=I.opt_nativeVolume;I!==void 0&&(S.volume=I)})}; Av.prototype.getName=function(){return"nis"};g.z(Fy,KW);Fy.prototype.getName=function(){return"nis"}; Fy.prototype.F_=function(){var e=HO();cO();return e.K&&!1}; Fy.prototype.fL=function(e,L,c){return new Av(this.X,L,c)};g.z(bm,dj);g.M=bm.prototype;g.M.gf=function(){return this.K.xV!=null}; g.M.Cm=function(){var e={};this.ye&&(e.mraid=this.ye);this.Gm&&(e.mlc=1);e.mtop=this.K.mve;this.T&&(e.mse=this.T);this.Y9&&(e.msc=1);e.mcp=this.K.compatibility;return e}; g.M.Cq=function(e){var L=g.HM.apply(1,arguments);try{return this.K.xV[e].apply(this.K.xV,L)}catch(c){wj(538,c,.01,function(I){I.method=e})}}; g.M.initialize=function(){var e=this;if(this.isInitialized)return!this.O8();this.isInitialized=!0;if(this.K.compatibility===2)return this.T="ng",this.fail("w"),!1;if(this.K.compatibility===1)return this.T="mm",this.fail("w"),!1;HO().J=!0;this.Z.document.readyState&&this.Z.document.readyState=="complete"?K3v(this):ty(this.Z,"load",function(){Ah().setTimeout(Dn(292,function(){return K3v(e)}),100)},292); return!0}; g.M.vS=function(){var e=HO(),L=cYM(this,"getMaxSize");e.X=new mR(0,L.width,L.height,0)}; g.M.dE=function(){HO().G=cYM(this,"getScreenSize")}; g.M.dispose=function(){nsc(this);dj.prototype.dispose.call(this)};var grH=new function(e,L){this.key=e;this.defaultValue=L===void 0?!1:L;this.valueType="boolean"}("45378663");g.M=GQ.prototype;g.M.VP=function(e){s6(e,!1);Aan(e)}; g.M.GD=function(){}; g.M.V1=function(e,L,c,I){var B=this;e=new Zl(wF,e,c?L:-1,7,this.Px(),this.nN());e.h_=I;yJf(e.II);GG(e.II,"queryid",e.h_);e.gI("");ZtM(e,function(){return B.h3.apply(B,g.V(g.HM.apply(0,arguments)))},function(){return B.WC.apply(B,g.V(g.HM.apply(0,arguments)))}); (I=vA(K0).X)&&aKv(e,I);this.Z&&(e.XS(this.Z),this.Z=null);e.I8.xW&&vA(JaJ);return e}; g.M.N6=function(e){switch(e.tb()){case 0:if(e=vA(K0).X)e=e.X,g.i7(e.B,this),e.D&&this.C8()&&RNc(e);kM();break;case 2:oj()}}; g.M.P3=function(){}; g.M.C8=function(){return!1}; g.M.WC=function(e,L){e.AI=!0;switch(e.i9()){case 1:rYc(e,L);break;case 2:this.nk(e)}}; g.M.FT=function(e){var L=e.T(e);L&&(L=L.volume,e.DY=$W(L)&&L>0);Bef(e,0);return Ps(e,"start",PO())}; g.M.lj=function(e,L,c){SO(xM,[e],!PO());return this.Ew(e,L,c)}; g.M.Ew=function(e,L,c){return Ps(e,c,PO())}; g.M.Mt=function(e){return pS(e,"firstquartile",1)}; g.M.CH=function(e){e.d_=!0;return pS(e,"midpoint",2)}; g.M.J2=function(e){return pS(e,"thirdquartile",3)}; g.M.t2=function(e){var L=pS(e,"complete",4);p0(e);return L}; g.M.wx=function(e){e.OE=3;return Ps(e,"error",PO())}; g.M.Mi=function(e,L,c){L=PO();if(e.bl()&&!L){var I=e.oh(),B=Jp();I.J=B}SO(xM,[e],!L);e.bl()&&(e.OE=1);return Ps(e,c,L)}; g.M.gx=function(e,L){L=this.lj(e,L||{},"skip");p0(e);return L}; g.M.PC=function(e,L){s6(e,!0);return this.lj(e,L||{},"fullscreen")}; g.M.oE=function(e,L){s6(e,!1);return this.lj(e,L||{},"exitfullscreen")}; g.M.Tg=function(e,L,c){L=e.oh();var I=Jp();L.Pe=Jy(L,I,e.OE!=1);SO(xM,[e],!PO());e.OE==1&&(e.OE=2);return Ps(e,c,PO())}; g.M.Od=function(e){SO(xM,[e],!PO());return e.K()}; g.M.ZK=function(e){SO(xM,[e],!PO());this.B6(e);p0(e);return e.K()}; g.M.h3=function(){}; g.M.nk=function(){}; g.M.B6=function(){}; g.M.m_=function(){}; g.M.CT=function(){}; g.M.nN=function(){this.X||(this.X=this.CT());return this.X==null?new aS:new sB(this.X)}; g.M.Px=function(){return new qz};g.z($M,VS);$M.prototype.X=function(e){return e.Jd()==4};g.z(jO,C0);jO.prototype.X=function(e){e=e.Jd();return e==3||e==4};g.z(H9,W9);H9.prototype.K=function(){return new jO(this.X)}; H9.prototype.Z=function(){return[new $M(this.X)]};g.z(lm,QQJ);lm.prototype.X=function(e){e&&(e.e===28&&(e=Object.assign({},e,{avas:3})),e.vs===4||e.vs===5)&&(e=Object.assign({},e,{vs:3}));var L=new P5n;L.X=GV(e,P79);L.K=GV(e,QLw);return L};tNr.prototype.K=function(){return g.BU(this.X)};g.z(P9,GQ);g.M=P9.prototype;g.M.GD=function(e,L){var c=this,I=vA(K0);if(I.X!=null)switch(I.X.getName()){case "nis":var B=WLc(this,e,L);break;case "gsv":B=TDR(this,e,L);break;case "exc":B=MNM(this,e)}B||(L.opt_overlayAdElement?B=void 0:L.opt_adElement&&(B=RlJ(this,e,L.opt_adElement,L.opt_osdId)));B&&B.i9()==1&&(B.T==g.VD&&(B.T=function(x){return c.m_(x)}),qDf(this,B,L)); return B}; g.M.m_=function(e){e.K=0;e.k9=0;if(e.G=="h"||e.G=="n"){cO();e.m$&&(cO(),yZ(this)!="h"&&yZ(this));var L=g.BU("ima.common.getVideoMetadata");if(typeof L==="function")try{var c=L(e.h_)}catch(B){e.K|=4}else e.K|=2}else if(e.G=="b")if(L=g.BU("ytads.bulleit.getVideoMetadata"),typeof L==="function")try{c=L(e.h_)}catch(B){e.K|=4}else e.K|=2;else if(e.G=="ml")if(L=g.BU("ima.common.getVideoMetadata"),typeof L==="function")try{c=L(e.h_)}catch(B){e.K|=4}else e.K|=2;else e.K|=1;e.K||(c===void 0?e.K|=8:c===null? e.K|=16:g.qQ(c)?e.K|=32:c.errorCode!=null&&(e.k9=c.errorCode,e.K|=64));c==null&&(c={});L=c;e.J=0;for(var I in ywN)L[I]==null&&(e.J|=ywN[I]);uir(L,"currentTime");uir(L,"duration");$W(c.volume)&&$W()&&(c.volume*=NaN);return c}; g.M.CT=function(){cO();yZ(this)!="h"&&yZ(this);var e=zlc(this);return e!=null?new tNr(e):null}; g.M.nk=function(e){!e.X&&e.AI&&ZH(this,e,"overlay_unmeasurable_impression")&&(e.X=!0)}; g.M.B6=function(e){e.zW&&(e.H1()?ZH(this,e,"overlay_viewable_end_of_session_impression"):ZH(this,e,"overlay_unviewable_impression"),e.zW=!1)}; g.M.h3=function(){}; g.M.V1=function(e,L,c,I){if(k$c()){var B=gu(cO().II,"mm"),x={};(B=(x[IX.f_]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",x[IX.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",x)[B])&&AYn(this,B);this.G==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&wj(1044,Error())}e=GQ.prototype.V1.call(this,e,L,c,I);this.B&&(L=this.j,e.B==null&&(e.B=new py6),L.X[e.h_]=e.B,e.B.B=UgN);return e}; g.M.VP=function(e){e&&e.i9()==1&&this.B&&delete this.j.X[e.h_];return GQ.prototype.VP.call(this,e)}; g.M.nN=function(){this.X||(this.X=this.CT());return this.X==null?new aS:this.G==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new H9(this.X):new sB(this.X)}; g.M.Px=function(){return this.G==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new lm:new qz}; g.M.XS=function(e,L,c,I,B){L=new mR(c,L+I,c+B,L);(e=U6(E6,e))?e.XS(L):this.Z=L}; var EN7=kW(193,bKM,void 0,hlJ);g.IL("Goog_AdSense_Lidar_sendVastEvent",EN7);var XUN=Dn(194,function(e,L){L=L===void 0?{}:L;e=fin(vA(P9),e,L);return FLv(e)}); g.IL("Goog_AdSense_Lidar_getViewability",XUN);var KNZ=kW(195,function(){return MR6()}); g.IL("Goog_AdSense_Lidar_getUrlSignalsArray",KNZ);var Y9N=Dn(196,function(){return JSON.stringify(MR6())}); g.IL("Goog_AdSense_Lidar_getUrlSignalsList",Y9N);var gOH=WM(["//ep2.adtrafficquality.google/sodar/",""]),kmr=WM(["//tpc.googlesyndication.com/sodar/",""]);g.z(UB,Error);g.z(KS,g.p);KS.prototype.hT=function(){return this.wpc.f()}; KS.prototype.ob=function(e){this.wpc.c(e)}; KS.prototype.ac=function(e){return this.wpc.m(VNM(e))}; KS.prototype.RN=function(e){return this.wpc.mws(VNM(e))}; g.z(EB,g.p);EB.prototype.snapshot=function(e){return this.zk.s(Object.assign({},e.JO&&{c:e.JO},e.Fa&&{s:e.Fa},e.QN!==void 0&&{p:e.QN}))}; EB.prototype.zi=function(e){this.zk.e(e)}; EB.prototype.xM=function(){return this.zk.l()};var ZKM;g.z(nS,g.p);nS.prototype.share=function(){if(this.We())throw Error("E:AD");this.K++;return this}; nS.prototype.dispose=function(){--this.K||g.p.prototype.dispose.call(this)}; ZKM=Symbol.dispose;pd$.prototype.LB=function(e,L){this.X.LB("/client_streamz/bg/frs",e,L)}; $Tc.prototype.LB=function(e,L,c,I,B,x){this.X.LB("/client_streamz/bg/wrl",e,L,c,I,B,x)}; jJM.prototype.Qa=function(e,L){this.X.Ze("/client_streamz/bg/ec",e,L)}; HKJ.prototype.LB=function(e,L,c){this.X.LB("/client_streamz/bg/el",e,L,c)}; liM.prototype.Qa=function(e,L){this.X.Ze("/client_streamz/bg/cec",e,L)}; PkH.prototype.Qa=function(e,L){this.X.Ze("/client_streamz/bg/po/csc",e,L)}; QJ$.prototype.Qa=function(e,L){this.X.Ze("/client_streamz/bg/po/ctav",e,L)}; dTn.prototype.Qa=function(e,L){this.X.Ze("/client_streamz/bg/po/cwsc",e,L)};g.z(UT$,AY);g.z(ck,AY);var hx=[1,2,3];var nNN=[0,hx,Ve9,GLZ,wUe];var eVe=[0,hO,[0,ze7,fJe]];g.z(Im,AY);var rU=[1,2,3];var LOe=[0,rU,FN7,vNZ,ul,eVe];g.z(Bk,AY);var c_U=[0,hO,nNN,LOe];var Itg=[0,rS];g.z(x7,AY);var BuM=[0,rS,-1,DgL];var xQ9=[0,rS,-1,bZ9,DgL];g.z(om,AY);var O$M=[1,2,3];var oLL=[0,O$M,ul,BuM,ul,xQ9,ul,Itg];g.z(Sy,AY);Sy.prototype.Yo=function(){var e=xs(this,3,GK,3,!0);QO(e);return e[void 0]};Sy.prototype.Z=FRM([0,rS,oLL,Jwg,hO,c_U,gNM,kLL]);g.z(Xdn,AY);g.M=Rm.prototype;g.M.isEnabled=function(){if(!g.LZ.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{IN:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.M.set=function(e,L,c){var I=!1;if(typeof c==="object"){var B=c.kkW;I=c.secure||!1;var x=c.domain||void 0;var S=c.path||void 0;var h=c.IN}if(/[;=\s]/.test(e))throw Error('Invalid cookie name "'+e+'"');if(/[;\r\n]/.test(L))throw Error('Invalid cookie value "'+L+'"');h===void 0&&(h=-1);c=x?";domain="+x:"";S=S?";path="+S:"";I=I?";secure":"";h=h<0?"":h==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+h*1E3)).toUTCString();this.X.cookie=e+"="+L+c+S+h+I+(B!=null?";samesite="+ B:"")}; g.M.get=function(e,L){for(var c=e+"=",I=(this.X.cookie||"").split(";"),B=0,x;B=0;L--)this.remove(e[L])}; var iL=new Rm(typeof document=="undefined"?null:document);tx.prototype.compress=function(e){var L,c,I,B;return g.Z(function(x){switch(x.K){case 1:return L=new CompressionStream("gzip"),c=(new Response(L.readable)).arrayBuffer(),I=L.writable.getWriter(),g.a(x,I.write((new TextEncoder).encode(e)),2);case 2:return g.a(x,I.close(),3);case 3:return B=Uint8Array,g.a(x,c,4);case 4:return x.return(new B(x.X))}})}; tx.prototype.isSupported=function(e){return e<1024?!1:typeof CompressionStream!=="undefined"};g.z(Op,AY);q1.prototype.setInterval=function(e){this.intervalMs=e;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()}; q1.prototype.start=function(){var e=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){e.tick()},this.intervalMs),this.K=this.X())}; q1.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)}; q1.prototype.tick=function(){var e=this;if(this.enabled){var L=Math.max(this.X()-this.K,0);L0?c:void 0));c=er(c,4,OX(B>0?B:void 0));c=er(c,5,OX(x>0?x:void 0));B=c.XF;x=B[pH]|0;c=PA(c,x)?c:QT(c,B,x)?dI(c,B):new c.constructor(Py(B,x,!0));b6(S,M1,10,c)}S=this.X.clone();c=Date.now().toString();S=er(S,4,AT(c));e=i6(S,ib,3,e.slice());I&&(S=new TT,I=er(S,13,OX(I)),S=new Wk, I=b6(S,TT,2,I),S=new bb,I=b6(S,Wk,1,I),I=m3(I,2,9),b6(e,bb,18,I));L&&CA(e,14,L);return e};g.wU.prototype.K=0;g.wU.prototype.reset=function(){this.X=this.Z=this.G;this.K=0}; g.wU.prototype.getValue=function(){return this.Z};g.z(YO,AY);var SoN=nK(YO);g.z(f1f,AY);var sz;sz=new AjT;g.z(am,g.p);g.M=am.prototype;g.M.KS=function(){CM(this);this.K.stop();this.ye.stop();g.p.prototype.KS.call(this)}; g.M.dispatch=function(e){if(e instanceof ib)this.log(e);else try{var L=new ib,c=e.sV();var I=a7(L,8,c);this.log(I)}catch(B){N1(this,4,1)}}; g.M.log=function(e){N1(this,2,1);if(this.Y9){e=e.clone();var L=this.He++;e=CA(e,21,L);this.componentId&&a7(e,26,this.componentId);L=e;var c=YQ(L,1);var I=I===void 0?!1:I;var B=typeof c;I=c==null?c:B==="bigint"?String(sX(64,c)):tT(c)?B==="string"?zK(c):I?vy(c):ft(c):void 0;I==null&&(I=Date.now(),I=Number.isFinite(I)?I.toString():"0",er(L,1,AT(I)));I=YQ(L,15);I!=null&&(typeof I==="bigint"?pt(I)?I=Number(I):(I=sX(64,I),I=pt(I)?Number(I):String(I)):I=tT(I)?typeof I==="number"?ft(I):zK(I):void 0);I!=null|| CA(L,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(I=this.experimentIds.clone(),b6(L,Op,16,I));N1(this,1,1);L=this.X.length-1E3+1;L>0&&(this.X.splice(0,L),this.G+=L,N1(this,3,L));this.X.push(e);this.lB||this.K.enabled||this.K.start()}}; g.M.flush=function(e,L){var c=this;if(this.X.length===0)e&&e();else if(this.Ve&&this.pS)this.Z.K=3,vWR(this);else{var I=Date.now();if(this.Pe>I&&this.k90&&(c.k9=Date.now(),c.Pe=c.k9+q);q=qg(JT);var A;Zx&&q&&((A=T.XF[q])==null?void 0:A[175237375])!=null&&ms(LNL,3);a:{var b=b===void 0?!1:b;if(qg(cwU)&&qg(JT)&&void 0===cwU){A=T.XF;q=A[JT];if(!q)break a;if(q=q.DL)try{q(A,175237375,rwL);break a}catch(J){bD(J)}}b&&(b=T.XF, (A=qg(JT))&&A in b&&(b=b[A])&&delete b[175237375])}b=sz.X?sz.K(T,sz.X,175237375,sz.Z):sz.K(T,175237375,null,sz.Z);if(b=b===null?void 0:b)b=ge(b,1,-1),b!==-1&&(c.B=new g.wU(b<1?1:b,3E5,.1),c.K.setInterval(c.B.getValue()))}}e&&e();c.j=0},t=function(q,T){var W=sr(x,ib,3); var A=Number(m9n(x,14));g.Jx(c.B);c.K.setInterval(c.B.getValue());q===401&&S&&(c.t7=S);A&&(c.G+=A);T===void 0&&(T=c.isRetryable(q));T&&(c.X=W.concat(c.X),c.lB||c.K.enabled||c.K.start());N1(c,7,1);L&&L("net-send-failed",q);++c.j},O=function(){c.network&&c.network.send(R,u,t)}; h?h.then(function(q){N1(c,5,B);R.requestHeaders["Content-Encoding"]="gzip";R.requestHeaders["Content-Type"]="application/binary";R.body=q;R.Ce=2;O()},function(){N1(c,6,B); O()}):O()}}}}; g.M.isRetryable=function(e){return 500<=e&&e<600||e===401||e===0};mI.prototype.send=function(e,L,c){var I=this,B,x,S,h,R,u,t,O,q,T;return g.Z(function(W){switch(W.K){case 1:return x=(B=I.Ke?new AbortController:void 0)?setTimeout(function(){B.abort()},e.timeoutMillis):void 0,g.bn(W,2,3),S=Object.assign({},{method:e.requestType, headers:Object.assign({},e.requestHeaders)},e.body&&{body:e.body},e.withCredentials&&{credentials:"include"},{signal:e.timeoutMillis&&B?B.signal:null}),g.a(W,fetch(e.url,S),5);case 5:h=W.X;if(h.status!==200){(R=c)==null||R(h.status);W.Iq(3);break}if((u=L)==null){W.Iq(7);break}return g.a(W,h.text(),8);case 8:u(W.X);case 7:case 3:g.NM(W);clearTimeout(x);g.mf(W,0);break;case 2:t=g.wc(W);switch((O=t)==null?void 0:O.name){case "AbortError":(q=c)==null||q(408);break;default:(T=c)==null||T(400)}W.Iq(3)}})}; mI.prototype.eJ=function(){return 4};g.z(ye,g.p);ye.prototype.rC=function(){this.B=!0;return this}; ye.prototype.build=function(){this.network||(this.network=new mI);var e=new am({logSource:this.logSource,w8:this.w8?this.w8:SOn,sessionIndex:this.sessionIndex,v4d:this.a4,v1:this.G,lB:!1,rC:this.B,IV:this.IV,network:this.network});g.l(this,e);if(this.K){var L=this.K,c=DT(e.Z);a7(c,7,L)}e.T=new tx;this.componentId&&(e.componentId=this.componentId);this.LA&&(e.LA=this.LA);this.pageId&&(e.pageId=this.pageId);this.X&&((c=this.X)?(e.experimentIds||(e.experimentIds=new Op),L=e.experimentIds,c=c.sV(),a7(L, 4,c)):e.experimentIds&&er(e.experimentIds,4));this.Z&&(e.Ve=e.pS);TjH(e.Z);this.network.vP&&this.network.vP(this.logSource);this.network.AmS&&this.network.AmS(e);return e};g.z(ZT,g.p);ZT.prototype.flush=function(e){e=e||[];if(e.length){for(var L=new Xdn,c=[],I=0;I-1?(L=e[S],c||(L.So=!1)):(L=new kEJ(L,this.src,x,!!I,B),L.So=c,e.push(L));return L}; g.M.remove=function(e,L,c,I){e=e.toString();if(!(e in this.listeners))return!1;var B=this.listeners[e];L=Ep(B,L,c,I);return L>-1?(Qe(B[L]),g.b7(B,L),B.length==0&&(delete this.listeners[e],this.X--),!0):!1}; g.M.removeAll=function(e){e=e&&e.toString();var L=0,c;for(c in this.listeners)if(!e||c==e){for(var I=this.listeners[c],B=0;B-1?e[B]:null}; g.M.hasListener=function(e,L){var c=e!==void 0,I=c?e.toString():"",B=L!==void 0;return g.xL(this.listeners,function(x){for(var S=0;S>>0);g.TL(g.hi,g.p);g.hi.prototype[GEn]=!0;g.M=g.hi.prototype;g.M.addEventListener=function(e,L,c,I){g.KM(this,e,L,c,I)}; g.M.removeEventListener=function(e,L,c,I){Nj6(this,e,L,c,I)}; g.M.dispatchEvent=function(e){var L=this.Ru;if(L){var c=[];for(var I=1;L;L=L.Ru)c.push(L),++I}L=this.GP;I=e.type||e;if(typeof e==="string")e=new g.Hk(e,L);else if(e instanceof g.Hk)e.target=e.target||L;else{var B=e;e=new g.Hk(I,L);g.so(e,B)}B=!0;var x;if(c)for(x=c.length-1;!e.K&&x>=0;x--){var S=e.currentTarget=c[x];B=R$(S,I,!0,e)&&B}e.K||(S=e.currentTarget=L,B=R$(S,I,!0,e)&&B,e.K||(B=R$(S,I,!1,e)&&B));if(c)for(x=0;!e.K&&x0){this.K--;var e=this.X;this.X=e.next;e.next=null}else e=this.Z();return e};var Oa;T4.prototype.add=function(e,L){var c=jXH.get();c.set(e,L);this.K?this.K.next=c:this.X=c;this.K=c}; T4.prototype.remove=function(){var e=null;this.X&&(e=this.X,this.X=this.X.next,this.X||(this.K=null),e.next=null);return e}; var jXH=new uq(function(){return new Wo},function(e){return e.reset()}); Wo.prototype.set=function(e,L){this.X=e;this.scope=L;this.next=null}; Wo.prototype.reset=function(){this.next=this.scope=this.X=null};var fc,Ai=!1,pOM=new T4;HW6.prototype.reset=function(){this.context=this.K=this.Z=this.X=null;this.G=!1}; var ln6=new uq(function(){return new HW6},function(e){e.reset()}); g.iq.prototype.then=function(e,L,c){return nWn(this,ti(typeof e==="function"?e:null),ti(typeof L==="function"?L:null),c)}; g.iq.prototype.$goog_Thenable=!0;g.M=g.iq.prototype;g.M.finally=function(e){var L=this;e=ti(e);return new Promise(function(c,I){U36(L,function(B){e();c(B)},function(B){e(); I(B)})})}; g.M.XR=function(e,L){return nWn(this,null,ti(e),L)}; g.M.catch=g.iq.prototype.XR;g.M.cancel=function(e){if(this.X==0){var L=new Ji(e);g.F2(function(){EWM(this,L)},this)}}; g.M.tkY=function(e){this.X=0;bq(this,2,e)}; g.M.wRw=function(e){this.X=0;bq(this,3,e)}; g.M.Xl=function(){for(var e;e=XOc(this);)K_n(this,e,this.X,this.T);this.j=!1}; var Ilr=bD;g.TL(Ji,WU);Ji.prototype.name="cancel";g.TL(g.VH,g.hi);g.M=g.VH.prototype;g.M.enabled=!1;g.M.Jw=null;g.M.setInterval=function(e){this.Lp=e;this.Jw&&this.enabled?(this.stop(),this.start()):this.Jw&&this.stop()}; g.M.Ulq=function(){if(this.enabled){var e=g.O9()-this.ph;e>0&&e0&&(this.getStatus(),this.j=setTimeout(this.o7.bind(this), this.pS)),this.getStatus(),this.D=!0,this.X.send(e),this.D=!1}catch(S){this.getStatus(),z0M(this,S)}}; g.M.o7=function(){typeof Ho!="undefined"&&this.X&&(this.G="Timed out after "+this.pS+"ms, aborting",this.K=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.M.abort=function(e){this.X&&this.Z&&(this.getStatus(),this.Z=!1,this.B=!0,this.X.abort(),this.B=!1,this.K=e||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),jA(this))}; g.M.KS=function(){this.X&&(this.Z&&(this.Z=!1,this.B=!0,this.X.abort(),this.B=!1),jA(this,!0));g.$A.hj.KS.call(this)}; g.M.TZ=function(){this.We()||(this.Gm||this.D||this.B?sS$(this):this.Uwm())}; g.M.Uwm=function(){sS$(this)}; g.M.isActive=function(){return!!this.X}; g.M.isComplete=function(){return g.lq(this)==4}; g.M.getStatus=function(){try{return g.lq(this)>2?this.X.status:-1}catch(e){return-1}}; g.M.getResponseHeader=function(e){if(this.X&&this.isComplete())return e=this.X.getResponseHeader(e),e===null?void 0:e}; g.M.getLastError=function(){return typeof this.G==="string"?this.G:String(this.G)};Ea.prototype.send=function(e,L,c){L=L===void 0?function(){}:L; c=c===void 0?function(){}:c; W8c(e.url,function(I){I=I.target;Po(I)?L(g.QH(I)):c(I.getStatus())},e.requestType,e.body,e.requestHeaders,e.timeoutMillis,e.withCredentials)}; Ea.prototype.eJ=function(){return 1};Kc.prototype.done=function(){this.logger.qV(this.event,X2()-this.startTime)}; g.z(YA,nS);g.z(e1,YA);g.M=e1.prototype;g.M.eR=function(){}; g.M.I1=function(){}; g.M.qV=function(){}; g.M.C6=function(){}; g.M.GR=function(){}; g.M.GK=function(e,L,c,I){return I}; g.M.z2=function(){}; g.M.xu=function(){}; g.M.Xf=function(){}; g.z(La,YA);g.M=La.prototype;g.M.update=function(e){this.logger.dispose();this.logger=e}; g.M.I1=function(e){this.logger.I1(e)}; g.M.qV=function(e,L){this.logger.qV(e,L)}; g.M.C6=function(e){this.logger.C6(e)}; g.M.GR=function(){this.logger.GR()}; g.M.GK=function(e,L,c,I){return this.logger.GK(e,L,c,I)}; g.M.z2=function(e){this.logger.z2(e)}; g.M.xu=function(e){this.logger.xu(e)}; g.M.Xf=function(e){this.logger.Xf(e)}; g.M.eR=function(e){this.logger.eR(e)}; g.z(F8v,g.p);g.z(c0,YA);g.M=c0.prototype;g.M.eR=function(e){this.metrics.NZ7.LB(e,this.EU)}; g.M.I1=function(e){this.metrics.eventCount.Qa(e,this.EU)}; g.M.qV=function(e,L){this.metrics.DZ.LB(L,e,this.EU)}; g.M.C6=function(e){this.metrics.errorCount.Qa(e,this.EU)}; g.M.GK=function(e,L,c,I){function B(h){if(!x.We()){var R=X2()-S;x.metrics.bue.LB(R,e,c,h,L,x.EU)}} var x=this,S=X2();I.then(function(){return void B(0)},function(h){return void B(h instanceof mc?h.code:-1)}); return I}; g.M.z2=function(e){this.metrics.ium.Qa(e,this.EU)}; g.M.xu=function(e){this.metrics.gW.Qa(e,this.EU)}; g.M.Xf=function(e){this.metrics.LIq.Qa(e,this.EU)}; g.z(Id,c0);Id.prototype.GR=function(){b0n(this.X)};g.z(B0,AY);g.z(xd,AY);g.z(od,AY);var yyn=nK(od),GVM=function(e){return on(function(L){return L instanceof e&&!PA(L)})}(od); od.messageId="bfkj";g.z(YM,AY);g.z(S1,AY);var g6v=nK(S1);g.z(hU,g.p);hU.prototype.snapshot=function(e){if(this.We())throw Error("Already disposed");this.logger.I1("n");var L=this.logger.share();return this.Z.then(function(c){var I=c.ys;return new Promise(function(B){var x=new Kc(L,"n");I(function(S){x.done();L.eR(S.length);L.GR();L.dispose();B(S)},[e.JO, e.Fa,e.Ms,e.QN])})})}; hU.prototype.K7=function(e){var L=this;if(this.We())throw Error("Already disposed");this.logger.I1("n");var c=nc(this.logger,function(){return L.G([e.JO,e.Fa,e.Ms,e.QN])},"n"); this.logger.eR(c.length);this.logger.GR();return c}; hU.prototype.zi=function(e){this.Z.then(function(L){var c;(c=L.Bq_)==null||c(e)})}; hU.prototype.xM=function(){return this.logger.share()};g.z(tU,AY);g.z(OA,AY);qk.prototype.zd=function(e){return jSM(this,e,new e1,0)};g.z(Ta,g.p);Ta.prototype.snapshot=function(e){var L=this;return g.Z(function(c){switch(c.K){case 1:if(L.We())throw Error("Already disposed");if(L.K||L.T){c.Iq(2);break}return g.a(c,L.B.promise,2);case 2:if(!L.K){c.Iq(4);break}return g.a(c,L.K.snapshot(e),5);case 5:return c.return(c.X);case 4:throw L.T;}})}; Ta.prototype.zi=function(e){var L,c;(L=this.K)==null||(c=L.zi)==null||c.call(L,e)}; Ta.prototype.handleError=function(e){if(!this.We()){this.T=e;this.B.resolve();var L,c;(c=(L=this.options).SWM)==null||c.call(L,e)}}; Ta.prototype.xM=function(){return this.logger.share()}; var Pgn={SRS:432E5,PE:3E5,QI:10,z5:1E4,Zb:3E4,wk:3E4,dv0:6E4,Ev:1E3,iY:6E4,x3:6E5,rN:.25,Lg:2,maxAttempts:10};var RVN,eZ6=(RVN=Math.imul)!=null?RVN:function(e,L){return e*L|0},sA=[196, 200,224,18];v0.prototype.sV=function(){return String(this.X)+","+this.K.join()}; v0.prototype.Hg=function(e,L){var c=void 0;if(this.K[this.X]!==e){var I=this.K.indexOf(e);I!==-1?(this.K.splice(I,1),I0;)L[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(e%62),e=Math.floor(e/62);return L.join("")}};var OS$;g.z(AU,g.p);AU.prototype.RN=function(e,L){var c=this.ac(e);L==null||L(c);return nc(this.logger,function(){return g.GM(c,2)},this.K)}; OS$=Symbol.dispose;g.z(ir,AU);ir.prototype.ac=function(e,L){var c=this;this.logger.I1(this.X);++this.B>=this.j&&this.Z.resolve();var I=e();e=nc(this.logger,function(){return c.G(I)},"C"); if(e===void 0)throw new UB(17,"YNJ:Undefined");if(!(e instanceof Uint8Array))throw new UB(18,"ODM:Invalid");L==null||L(e);return e}; g.z(Ga,AU);Ga.prototype.ac=function(){return this.G}; g.z(gk,AU);gk.prototype.ac=function(){var e=this;return nc(this.logger,function(){return kT(e.G)},"d")}; gk.prototype.RN=function(){return this.G}; g.z(kd,AU);kd.prototype.ac=function(){if(this.G)return this.G;this.G=qBJ(this,function(e){return"_"+tOM(e)}); return qBJ(this,function(e){return e})}; g.z(wk,AU);wk.prototype.ac=function(){var e=Math.floor(Date.now()/1E3),L=[Math.random()*255,Math.random()*255],c=L.concat([this.G&255,this.clientState],[e>>24&255,e>>16&255,e>>8&255,e&255]);e=new Uint8Array(2+c.length);e[0]=34;e[1]=c.length;e.set(c,2);c=e.subarray(2);for(var I=L=L.length;I150))try{this.cache=new SBn(e,this.logger)}catch(L){this.reportError(new UB(22,"GBJ:init",L))}}; g.M.reportError=function(e){this.logger.C6(e.code);this.onError(e);return e}; var MOM=function(e){return on(function(L){if(!nnJ(L))return!1;for(var c=g.f(Object.entries(e)),I=c.next();!I.done;I=c.next()){var B=g.f(I.value);I=B.next().value;B=B.next().value;if(!(I in L)){if(B.w1$===!0)continue;return!1}if(!B(L[I]))return!1}return!0})}({zk:function(e){return on(function(L){return L instanceof e})}(Ta)},"");var Yav=(new Date).getTime();g.z(Nk,AY);var uWM=nK(Nk);GQc.prototype.getMetadata=function(){return this.metadata};ma.prototype.getMetadata=function(){return this.metadata}; ma.prototype.getStatus=function(){return this.status};yi.prototype.T=function(e,L){L=L===void 0?{}:L;return new GQc(e,this,L)}; yi.prototype.getName=function(){return this.name};var tRL=new yi("/google.internal.waa.v1.Waa/Create",tU,Nk,function(e){return e.sV()},uWM);g.z(ZX,AY);var psc=new yi("/google.internal.waa.v1.Waa/GenerateIT",OA,ZX,function(e){return e.sV()},nK(ZX));var IT6=new Set(["SAPISIDHASH","APISIDHASH"]);g.z(pa,AY);pa.prototype.getValue=function(){var e=YQ(this,2);if(Array.isArray(e)||e instanceof AY)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return Sr(this,2)};g.z($d,AY);$d.prototype.getMessage=function(){return D2(this,2)}; var VOc=nK($d);j1.prototype.EP=function(e,L){e=="data"?this.Z.push(L):e=="metadata"?this.B.push(L):e=="status"?this.j.push(L):e=="end"?this.G.push(L):e=="error"&&this.K.push(L);return this}; j1.prototype.removeListener=function(e,L){e=="data"?dk(this.Z,L):e=="metadata"?dk(this.B,L):e=="status"?dk(this.j,L):e=="end"?dk(this.G,L):e=="error"&&dk(this.K,L);return this}; j1.prototype.cancel=function(){this.X.abort()}; j1.prototype.cancel=j1.prototype.cancel;j1.prototype.removeListener=j1.prototype.removeListener;j1.prototype.on=j1.prototype.EP;g.z(kQ$,Error);g.TL(g.UA,q6n);g.UA.prototype.X=function(){var e=new EA(this.G,this.Z);this.K&&e.setCredentialsMode(this.K);return e}; g.UA.prototype.setCredentialsMode=function(e){this.K=e}; g.TL(EA,g.hi);g.M=EA.prototype;g.M.open=function(e,L){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.h7=e;this.pS=L;this.readyState=1;X_(this)}; g.M.send=function(e){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");if(this.J.signal.aborted)throw this.abort(),Error("Request was aborted.");this.X=!0;var L={headers:this.D,method:this.h7,credentials:this.B,cache:void 0,signal:this.J.signal};e&&(L.body=e);(this.Gm||g.LZ).fetch(new Request(this.pS,L)).then(this.cC.bind(this),this.Yu.bind(this))}; g.M.abort=function(){this.response=this.responseText="";this.D=new Headers;this.status=0;this.J.abort();this.Z&&this.Z.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.X&&this.readyState!=4&&(this.X=!1,Ka(this));this.readyState=0}; g.M.cC=function(e){if(this.X&&(this.G=e,this.K||(this.status=this.G.status,this.statusText=this.G.statusText,this.K=e.headers,this.readyState=2,X_(this)),this.X&&(this.readyState=3,X_(this),this.X)))if(this.responseType==="arraybuffer")e.arrayBuffer().then(this.Y1.bind(this),this.Yu.bind(this));else if(typeof g.LZ.ReadableStream!=="undefined"&&"body"in e){this.Z=e.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.T=new TextDecoder;CmM(this)}else e.text().then(this.T4.bind(this),this.Yu.bind(this))}; g.M.eY=function(e){if(this.X){if(this.j&&e.value)this.response.push(e.value);else if(!this.j){var L=e.value?e.value:new Uint8Array(0);if(L=this.T.decode(L,{stream:!e.done}))this.response=this.responseText+=L}e.done?Ka(this):X_(this);this.readyState==3&&CmM(this)}}; g.M.T4=function(e){this.X&&(this.response=this.responseText=e,Ka(this))}; g.M.Y1=function(e){this.X&&(this.response=e,Ka(this))}; g.M.Yu=function(){this.X&&Ka(this)}; g.M.setRequestHeader=function(e,L){this.D.append(e,L)}; g.M.getResponseHeader=function(e){return this.K?this.K.get(e.toLowerCase())||"":""}; g.M.getAllResponseHeaders=function(){if(!this.K)return"";for(var e=[],L=this.K.entries(),c=L.next();!c.done;)c=c.value,e.push(c[0]+": "+c[1]),c=L.next();return e.join("\r\n")}; g.M.setCredentialsMode=function(e){this.B=e}; Object.defineProperty(EA.prototype,"withCredentials",{get:function(){return this.B==="include"}, set:function(e){this.setCredentialsMode(e?"include":"same-origin")}});g.Yd.prototype.toString=function(){var e=[],L=this.B;L&&e.push(x4(L,Oeg,!0),":");var c=this.X;if(c||L=="file")e.push("//"),(L=this.J)&&e.push(x4(L,Oeg,!0),"@"),e.push(g.kC(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.Z,c!=null&&e.push(":",String(c));if(c=this.K)this.X&&c.charAt(0)!="/"&&e.push("/"),e.push(x4(c,c.charAt(0)=="/"?qoN:TuJ,!0));(c=this.G.toString())&&e.push("?",c);(c=this.j)&&e.push("#",x4(c,WOe));return e.join("")}; g.Yd.prototype.resolve=function(e){var L=this.clone(),c=!!e.B;c?g.na(L,e.B):c=!!e.J;c?L.J=e.J:c=!!e.X;c?g.e9(L,e.X):c=e.Z!=null;var I=e.K;if(c)g.Ls(L,e.Z);else if(c=!!e.K){if(I.charAt(0)!="/")if(this.X&&!this.K)I="/"+I;else{var B=L.K.lastIndexOf("/");B!=-1&&(I=L.K.slice(0,B+1)+I)}B=I;if(B==".."||B==".")I="";else if(g.Vc(B,"./")||g.Vc(B,"/.")){I=wu(B,"/");B=B.split("/");for(var x=[],S=0;S1||x.length==1&&x[0]!="")&&x.pop(), I&&S==B.length&&x.push("")):(x.push(h),I=!0)}I=x.join("/")}else I=B}c?L.K=I:c=e.G.toString()!=="";c?cT(L,e.G.clone()):c=!!e.j;c&&(L.j=e.j);return L}; g.Yd.prototype.clone=function(){return new g.Yd(this)}; var Oeg=/[#\/\?@]/g,TuJ=/[#\?:]/g,qoN=/[#\?]/g,ZSc=/[#\?@]/g,WOe=/#/g;g.M=BT.prototype;g.M.add=function(e,L){rG(this);this.Z=null;e=hS(this,e);var c=this.X.get(e);c||this.X.set(e,c=[]);c.push(L);this.K=this.K+1;return this}; g.M.remove=function(e){rG(this);e=hS(this,e);return this.X.has(e)?(this.Z=null,this.K=this.K-this.X.get(e).length,this.X.delete(e)):!1}; g.M.clear=function(){this.X=this.Z=null;this.K=0}; g.M.isEmpty=function(){rG(this);return this.K==0}; g.M.forEach=function(e,L){rG(this);this.X.forEach(function(c,I){c.forEach(function(B){e.call(L,B,I,this)},this)},this)}; g.M.N4=function(){rG(this);for(var e=Array.from(this.X.values()),L=Array.from(this.X.keys()),c=[],I=0;I0?String(e[0]):L}; g.M.toString=function(){if(this.Z)return this.Z;if(!this.X)return"";for(var e=[],L=Array.from(this.X.keys()),c=0;c>>3;x.Z!=1&&x.Z!=2&&x.Z!=15&&O1(x,S,h,"unexpected tag");x.X=1;x.K=0;x.G=0} function c(R){x.G++;x.G==5&&R&240&&O1(x,S,h,"message length too long");x.K|=(R&127)<<(x.G-1)*7;R&128||(x.X=2,x.J=0,typeof Uint8Array!=="undefined"?x.B=new Uint8Array(x.K):x.B=Array(x.K),x.K==0&&B())} function I(R){x.B[x.J++]=R;x.J==x.K&&B()} function B(){if(x.Z<15){var R={};R[x.Z]=x.B;x.T.push(R)}x.X=0} for(var x=this,S=e instanceof Array?e:new Uint8Array(e),h=0;h0?e:null};qA.prototype.isInputValid=function(){return this.X===null}; qA.prototype.Ku=function(){return this.X}; qA.prototype.Tb=function(){return!1}; qA.prototype.parse=function(e){this.X!==null&&dzJ(this,e,"stream already broken");var L=null;try{var c=this.Z;c.Z||QjM(c,e,"stream already broken");c.X+=e;var I=Math.floor(c.X.length/4);if(I==0)var B=null;else{try{var x=w2n(c.X.slice(0,I*4))}catch(S){QjM(c,c.X,S.message)}c.K+=I*4;c.X=c.X.slice(I*4);B=x}L=B===null?null:this.G.parse(B)}catch(S){dzJ(this,e,S.message)}this.K+=e.length;return L};var zVg={INIT:0,h4:1,y8:2,f$:3,Di:4,xQ:5,STRING:6,TJ:7,Tp:8,Ah:9,QQ:10,v7:11,Jp:12,Ap:13,Qd:14,vA:15,wK:16,oP:17,M_:18,v$:19,c5:20};g.M=WT.prototype;g.M.isInputValid=function(){return this.B!=3}; g.M.Ku=function(){return this.D}; g.M.done=function(){return this.B===2}; g.M.Tb=function(){return!1}; g.M.parse=function(e){function L(){for(;q0;)if(W=e[q++], x.J===4?x.J=0:x.J++,!W)break a;if(W==='"'&&!x.T){x.X=I();break}if(W==="\\"&&!x.T&&(x.T=!0,W=e[q++],!W))break;if(x.T)if(x.T=!1,W==="u"&&(x.J=1),W=e[q++])continue;else break;h.lastIndex=q;W=h.exec(e);if(!W){q=e.length+1;break}q=W.index+1;W=e[W.index];if(!W)break}x.Z+=q-A;continue;case R.Ah:if(!W)continue;W==="r"?x.X=R.QQ:MA(x,e,q);continue;case R.QQ:if(!W)continue;W==="u"?x.X=R.v7:MA(x,e,q);continue;case R.v7:if(!W)continue;W==="e"?x.X=I():MA(x,e,q);continue;case R.Jp:if(!W)continue;W==="a"?x.X=R.Ap: MA(x,e,q);continue;case R.Ap:if(!W)continue;W==="l"?x.X=R.Qd:MA(x,e,q);continue;case R.Qd:if(!W)continue;W==="s"?x.X=R.vA:MA(x,e,q);continue;case R.vA:if(!W)continue;W==="e"?x.X=I():MA(x,e,q);continue;case R.wK:if(!W)continue;W==="u"?x.X=R.oP:MA(x,e,q);continue;case R.oP:if(!W)continue;W==="l"?x.X=R.M_:MA(x,e,q);continue;case R.M_:if(!W)continue;W==="l"?x.X=I():MA(x,e,q);continue;case R.v$:W==="."?x.X=R.c5:MA(x,e,q);continue;case R.c5:if("0123456789.eE+-".indexOf(W)!==-1)continue;else q--,x.Z--,x.X= I();continue;default:MA(x,e,q)}}} function I(){var W=S.pop();return W!=null?W:R.h4} function B(W){x.K>1||(W||(W=O===-1?x.G+e.substring(t,q):e.substring(O,q)),x.pS?x.j.push(W):x.j.push(JSON.parse(W)),O=q)} for(var x=this,S=x.h7,h=x.Gm,R=zVg,u=e.length,t=0,O=-1,q=0;q0?(T=x.j,x.j=[],T):null}return null};zf.prototype.isInputValid=function(){return this.B===null}; zf.prototype.Ku=function(){return this.B}; zf.prototype.Tb=function(){return!1}; zf.prototype.parse=function(e){function L(R){x.K=6;x.B="The stream is broken @"+x.X+"/"+S+". Error: "+R+". With input:\n";throw Error(x.B);} function c(){x.Z=new WT({IB0:!0,T5:!0})} function I(R){if(R)for(var u=0;u1)&&L("extra status: "+R);x.j=!0;var u={};u[2]=R[0];x.G.push(u)}} for(var x=this,S=0;S0?(e=x.G,x.G=[],e):null};s1.prototype.LQ=function(){return this.X}; s1.prototype.getStatus=function(){return this.B}; s1.prototype.pS=function(e){e=e.target;try{if(e==this.X)a:{var L=g.lq(this.X),c=this.X.K,I=this.X.getStatus(),B=g.QH(this.X);e=[];if(g.dT(this.X)instanceof Array){var x=g.dT(this.X);x.length>0&&x[0]instanceof Uint8Array&&(this.D=!0,e=x)}if(!(L<3||L==3&&!B&&e.length==0))if(I=I==200||I==206,L==4&&(c==8?vT(this,7):c==7?vT(this,8):I||vT(this,3)),this.K||(this.K=Uzn(this.X),this.K==null&&vT(this,5)),this.B>2)fs(this);else{if(e.length>this.Z){var S=e.length;c=[];try{if(this.K.Tb())for(var h=0;hthis.Z){h=B.slice(this.Z);this.Z=B.length;try{var u=this.K.parse(h);u!=null&&this.G&&this.G(u)}catch(t){vT(this,5);fs(this);break a}}L==4?(B.length!= 0||this.D?vT(this,2):vT(this,4),fs(this)):vT(this,1)}}}catch(t){vT(this,6),fs(this)}};g.M=EMT.prototype;g.M.EP=function(e,L){var c=this.K[e];c||(c=[],this.K[e]=c);c.push(L);return this}; g.M.addListener=function(e,L){this.EP(e,L);return this}; g.M.removeListener=function(e,L){var c=this.K[e];c&&g.i7(c,L);(e=this.X[e])&&g.i7(e,L);return this}; g.M.once=function(e,L){var c=this.X[e];c||(c=[],this.X[e]=c);c.push(L);return this}; g.M.A7d=function(e){var L=this.K.data;L&&X9v(e,L);(L=this.X.data)&&X9v(e,L);this.X.data=[]}; g.M.Sqw=function(){switch(this.Z.getStatus()){case 1:AS(this,"readable");break;case 5:case 6:case 4:case 7:case 3:AS(this,"error");break;case 8:AS(this,"close");break;case 2:AS(this,"end")}};KVr.prototype.serverStreaming=function(e,L,c,I){var B=this,x=e.substring(0,e.length-I.name.length);return BUc(function(S){var h=S.JN,R=S.getMetadata(),u=e$n(B,!1);R=LIH(B,R,u,x+h.getName());var t=cxT(u,h.K,!0);S=h.X(S.c6);u.send(R,"POST",S);return t},this.uv).call(this,I.T(L,c))};x1v.prototype.create=function(e,L,c){var I=this.X,B=this.K+"/$rpc/google.internal.waa.v1.Waa/Create";L=L||{};c=c===void 0?{}:c;return $_T(I,B,e,L,tRL,c)};var o7x="://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(" "),Spr=/\bocr\b/;var h$f=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;Object.assign({},{attributes:{},handleError:function(e){throw e;}},{C9d:!0, gYe:!0,FLl:!1,JOW:jHw,AOw:H6Z,Q27:!1,VTq:!1,ORl:!0,d4M:$ML,P9l:!1,D47:!1,goM:!1});var iB=null,gG=!1,fT6=1,z$f=Symbol("SIGNAL"),vj={version:0,CbS:0,UP:!1,cU:void 0,xD:void 0,t8:void 0,u8:0,Pq:void 0,KA:void 0,JZ:!1,AZ:!1,kind:"unknown",sG:function(){return!1}, KF:function(){}, Qz:function(){}, WL_:function(){}};var f4=Symbol("UNSET"),AO=Symbol("COMPUTING"),F8=Symbol("ERRORED");Object.assign({},vj,{value:f4,UP:!0,error:null,rR:bB,kind:"computed",sG:function(e){return e.value===f4||e.value===AO}, KF:function(e){if(e.value===AO)throw Error("");var L=e.value;e.value=AO;var c=tyn(e),I=!1;try{var B=e.rW();Gf(null);I=L!==f4&&L!==F8&&B!==F8&&e.rR(L,B)}catch(x){B=F8,e.error=x}finally{OMr(e,c)}I?e.value=L:(e.value=B,e.version++)}});var Myn=Object.assign({},vj,{rR:bB,value:void 0,kind:"signal"});Object.assign({},vj,{value:f4,UP:!0,error:null,rR:bB,kind:"linkedSignal",sG:function(e){return e.value===f4||e.value===AO}, KF:function(e){if(e.value===AO)throw Error("");var L=e.value;e.value=AO;var c=tyn(e);try{var I=e.source();var B=e.rW(I,L===f4||L===F8?void 0:{source:e.bj_,value:L});e.bj_=I}catch(x){B=F8,e.error=x}finally{OMr(e,c)}L!==f4&&B!==F8&&e.rR(L,B)?e.value=L:(e.value=B,e.version++)}});Object.assign({},vj,{AZ:!0,JZ:!1,Qz:function(e){e.schedule!==null&&e.schedule(e.Ba0)}, kwW:!1,Yw0:function(){}});g.z(JS,g.hi);JS.prototype.dispose=function(){window.removeEventListener("offline",this.Z);window.removeEventListener("online",this.Z);this.LX.qe(this.B);delete JS.instance}; JS.prototype.y9=function(){return this.X}; JS.prototype.Bd=function(){var e=this;this.B=this.LX.dg(function(){var L;return g.Z(function(c){if(c.K==1)return e.X?((L=window.navigator)==null?0:L.onLine)?c.Iq(3):g.a(c,wG(e),3):g.a(c,wG(e),3);e.Bd();g.AJ(c)})},3E4)};Cs.prototype.set=function(e,L){L=L===void 0?!0:L;0<=e&&e<52&&Number.isInteger(e)&&this.data[e]!==L&&(this.data[e]=L,this.X=-1)}; Cs.prototype.get=function(e){return!!this.data[e]};var NA;g.TL(g.$4,g.p);g.M=g.$4.prototype;g.M.start=function(){this.stop();this.G=!1;var e=iMn(this),L=GTf(this);e&&!L&&this.K.mozRequestAnimationFrame?(this.X=g.KM(this.K,"MozBeforePaint",this.Z),this.K.mozRequestAnimationFrame(null),this.G=!0):this.X=e&&L?e.call(this.K,this.Z):this.K.setTimeout(HZx(this.Z),20)}; g.M.stop=function(){if(this.isActive()){var e=iMn(this),L=GTf(this);e&&!L&&this.K.mozRequestAnimationFrame?o$(this.X):e&&L?L.call(this.K,this.X):this.K.clearTimeout(this.X)}this.X=null}; g.M.isActive=function(){return this.X!=null}; g.M.MK=function(){this.G&&this.X&&o$(this.X);this.X=null;this.j.call(this.B,g.O9())}; g.M.KS=function(){this.stop();g.$4.hj.KS.call(this)};g.TL(g.j9,g.p);g.M=g.j9.prototype;g.M.Jr=0;g.M.KS=function(){g.j9.hj.KS.call(this);this.stop();delete this.X;delete this.K}; g.M.start=function(e){this.stop();this.Jr=g.Cc(this.Z,e!==void 0?e:this.Lp)}; g.M.stop=function(){this.isActive()&&g.LZ.clearTimeout(this.Jr);this.Jr=0}; g.M.isActive=function(){return this.Jr!=0}; g.M.S1=function(){this.Jr=0;this.X&&this.X.call(this.K)};g.z(g.Qw,g.p);g.M=g.Qw.prototype;g.M.SI=function(e){this.Z=arguments;this.Jw||this.K?this.X=!0:dG(this)}; g.M.stop=function(){this.Jw&&(g.LZ.clearTimeout(this.Jw),this.Jw=null,this.X=!1,this.Z=null)}; g.M.pause=function(){this.K++}; g.M.resume=function(){this.K--;this.K||!this.X||this.Jw||(this.X=!1,dG(this))}; g.M.KS=function(){g.p.prototype.KS.call(this);this.stop()};g.U1.prototype[Symbol.iterator]=function(){return this}; g.U1.prototype.next=function(){var e=this.X.next();return{value:e.done?void 0:this.K.call(void 0,e.value),done:e.done}};g.TL(g.IA,g.hi);g.M=g.IA.prototype;g.M.isPlaying=function(){return this.X==1}; g.M.isPaused=function(){return this.X==-1}; g.M.PX=function(){this.wQ("begin")}; g.M.xo=function(){this.wQ("end")}; g.M.onFinish=function(){this.wQ("finish")}; g.M.onStop=function(){this.wQ("stop")}; g.M.wQ=function(e){this.dispatchEvent(e)};var ssL=CU(function(){var e=g.ql("DIV"),L=g.RF?"-webkit":Pz?"-moz":null,c="transition:opacity 1s linear;";L&&(c+=L+"-transition:opacity 1s linear;");L=DgH({style:c});if(e.nodeType===1&&/^(script|style)$/i.test(e.tagName))throw Error("");e.innerHTML=Ty(L);return g.QD(e.firstChild,"transition")!=""});g.TL(BY,g.IA);g.M=BY.prototype;g.M.play=function(){if(this.isPlaying())return!1;this.PX();this.wQ("play");this.startTime=g.O9();this.X=1;if(ssL())return g.l3(this.K,this.j),this.Z=g.Cc(this.tWW,void 0,this),!0;this.K0(!1);return!1}; g.M.tWW=function(){g.LH(this.K);D16(this.K,this.T);g.l3(this.K,this.G);this.Z=g.Cc((0,g.RL)(this.K0,this,!1),this.B*1E3)}; g.M.stop=function(){this.isPlaying()&&this.K0(!0)}; g.M.K0=function(e){g.l3(this.K,"transition","");g.LZ.clearTimeout(this.Z);g.l3(this.K,this.G);this.endTime=g.O9();this.X=0;if(e)this.onStop();else this.onFinish();this.xo()}; g.M.KS=function(){this.stop();BY.hj.KS.call(this)}; g.M.pause=function(){};var Jxc={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};x2("Element","attributes")||x2("Node","attributes");x2("Element","innerHTML")||x2("HTMLElement","innerHTML");x2("Node","nodeName");x2("Node","nodeType");x2("Node","parentNode");x2("Node","childNodes");x2("HTMLElement","style")||x2("Element","style");x2("HTMLStyleElement","sheet");var yxx=Cb6("getPropertyValue"),ZMr=Cb6("setProperty");x2("Element","namespaceURI")||x2("Node","namespaceURI");var m1v={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var HM6,wMN,jmx,$1H,lTr;HM6=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]");wMN=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.vLN=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.SZ=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]");jmx=/^http:\/\/.*/;g.ftU=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");$1H=/\s+/;lTr=/[\d\u06f0-\u06f9]/;hL.prototype.qZ=function(){return new RA(this.K())}; hL.prototype[Symbol.iterator]=function(){return new uA(this.K())}; hL.prototype.X=function(){return new uA(this.K())}; g.z(RA,g.vs);RA.prototype.next=function(){return this.K.next()}; RA.prototype[Symbol.iterator]=function(){return new uA(this.K)}; RA.prototype.X=function(){return new uA(this.K)}; g.z(uA,hL);uA.prototype.next=function(){return this.Z.next()};Om.prototype.clone=function(){return new Om(this.X,this.T,this.Z,this.B,this.G,this.j,this.K,this.J)}; Om.prototype.equals=function(e){return this.X==e.X&&this.T==e.T&&this.Z==e.Z&&this.B==e.B&&this.G==e.G&&this.j==e.j&&this.K==e.K&&this.J==e.J};Tl.prototype.clone=function(){return new Tl(this.start,this.end)};(function(){if(ydc){var e=/Windows NT ([0-9.]+)/;return(e=e.exec(g.yc()))?e[1]:"0"}return rH?(e=/1[0|1][_.][0-9_.]+/,(e=e.exec(g.yc()))?e[0].replace(/_/g,"."):"10"):g.P3?(e=/Android\s+([^\);]+)(\)|;)/,(e=e.exec(g.yc()))?e[1]:""):QHh||dMZ||UM9?(e=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(e=e.exec(g.yc()))?e[1].replace(/_/g,"."):""):""})();var QmT=function(){if(g.Br)return WY(/Firefox\/([0-9.]+)/);if(g.oA||g.ZQ||g.QG)return Awv;if(g.q8){if(yK()||Z5()){var e=WY(/CriOS\/([0-9.]+)/);if(e)return e}return WY(/Chrome\/([0-9.]+)/)}if(g.RM&&!yK())return WY(/Version\/([0-9.]+)/);if(jG||H3){if(e=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.yc()))return e[1]+"."+e[2]}else if(g.d$)return(e=WY(/Android\s+([0-9.]+)/))?e:WY(/Version\/([0-9.]+)/);return""}();g.TL(g.zl,g.p);g.M=g.zl.prototype;g.M.subscribe=function(e,L,c){var I=this.K[e];I||(I=this.K[e]=[]);var B=this.j;this.X[B]=e;this.X[B+1]=L;this.X[B+2]=c;this.j=B+3;I.push(B);return B}; g.M.unsubscribe=function(e,L,c){if(e=this.K[e]){var I=this.X;if(e=e.find(function(B){return I[B+1]==L&&I[B+2]==c}))return this.EV(e)}return!1}; g.M.EV=function(e){var L=this.X[e];if(L){var c=this.K[L];this.G!=0?(this.Z.push(e),this.X[e+1]=function(){}):(c&&g.i7(c,e),delete this.X[e],delete this.X[e+1],delete this.X[e+2])}return!!L}; g.M.publish=function(e,L){var c=this.K[e];if(c){var I=Array(arguments.length-1),B=arguments.length,x;for(x=1;x0&&this.G==0)for(;c=this.Z.pop();)this.EV(c)}}return x!=0}return!1}; g.M.clear=function(e){if(e){var L=this.K[e];L&&(L.forEach(this.EV,this),delete this.K[e])}else this.X.length=0,this.K={}}; g.M.KS=function(){g.zl.hj.KS.call(this);this.clear();this.Z.length=0};g.sm.prototype.set=function(e,L){L===void 0?this.X.remove(e):this.X.set(e,g.yH(L))}; g.sm.prototype.get=function(e){try{var L=this.X.get(e)}catch(c){return}if(L!==null)try{return JSON.parse(L)}catch(c){throw"Storage: Invalid value was encountered";}}; g.sm.prototype.remove=function(e){this.X.remove(e)};g.TL(vY,g.sm);vY.prototype.set=function(e,L){vY.hj.set.call(this,e,E7H(L))}; vY.prototype.K=function(e){e=vY.hj.get.call(this,e);if(e===void 0||e instanceof Object)return e;throw"Storage: Invalid value was encountered";}; vY.prototype.get=function(e){if(e=this.K(e)){if(e=e.data,e===void 0)throw"Storage: Invalid value was encountered";}else e=void 0;return e};g.TL(f1,vY);f1.prototype.set=function(e,L,c){if(L=E7H(L)){if(c){if(c=c.length)return g.T8;var B=c.key(L++);if(e)return g.f0(B);B=c.getItem(B);if(typeof B!=="string")throw"Storage mechanism: Invalid value was encountered";return g.f0(B)}; return I}; g.M.clear=function(){iA(this);this.X.clear()}; g.M.key=function(e){iA(this);return this.X.key(e)};g.TL(Gl,bA);g.TL(Yp$,bA);g.TL(gp,FZ);gp.prototype.set=function(e,L){this.K.set(this.X+e,L)}; gp.prototype.get=function(e){return this.K.get(this.X+e)}; gp.prototype.remove=function(e){this.K.remove(this.X+e)}; gp.prototype.qZ=function(e){var L=this.K[Symbol.iterator](),c=this,I=new g.vs;I.next=function(){var B=L.next();if(B.done)return B;for(B=B.value;B.slice(0,c.X.length)!=c.X;){B=L.next();if(B.done)return B;B=B.value}return g.f0(e?B.slice(c.X.length):c.K.get(B))}; return I};DW.prototype.getValue=function(){return this.K}; DW.prototype.clone=function(){return new DW(this.X,this.K)};g.M=wp.prototype;g.M.Hg=function(e,L){var c=this.X;c.push(new DW(e,L));e=c.length-1;L=this.X;for(c=L[e];e>0;){var I=e-1>>1;if(L[I].X>c.X)L[e]=L[I],e=I;else break}L[e]=c}; g.M.remove=function(){var e=this.X,L=e.length,c=e[0];if(!(L<=0)){if(L==1)e.length=0;else{e[0]=e.pop();e=0;L=this.X;for(var I=L.length,B=L[e];e>1;){var x=e*2+1,S=e*2+2;x=SB.X)break;L[e]=L[x];e=x}L[e]=B}return c.getValue()}}; g.M.w7=function(){for(var e=this.X,L=[],c=e.length,I=0;I>>16&65535|0;for(var x;c!==0;){x=c>2E3?2E3:c;c-=x;do B=B+L[I++]|0,e=e+B|0;while(--x);B%=65521;e%=65521}return B|e<<16|0};for(var o6={},bl,GG7=[],il=0;il<256;il++){bl=il;for(var gLU=0;gLU<8;gLU++)bl=bl&1?3988292384^bl>>>1:bl>>>1;GG7[il]=bl}o6=function(e,L,c,I){c=I+c;for(e^=-1;I>>8^GG7[(e^L[I])&255];return e^-1};var XZ={};XZ={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 HY=[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],Q5=[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],Fcc=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],tAH=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],eM=Array(576);aA(eM);var LT=Array(60);aA(LT);var PY=Array(512);aA(PY);var jZ=Array(256);aA(jZ);var lA=Array(29);aA(lA);var dp=Array(30);aA(dp);var vAr,fSR,Aic,s$n=!1;var ud;ud=[new R6(0,0,0,0,function(e,L){var c=65535;for(c>e.d7-5&&(c=e.d7-5);;){if(e.nf<=1){SM(e);if(e.nf===0&&L===0)return 1;if(e.nf===0)break}e.kT+=e.nf;e.nf=0;var I=e.Rp+c;if(e.kT===0||e.kT>=I)if(e.nf=e.kT-I,e.kT=I,cu(e,!1),e.OR.ER===0)return 1;if(e.kT-e.Rp>=e.Vy-262&&(cu(e,!1),e.OR.ER===0))return 1}e.Hg=0;if(L===4)return cu(e,!0),e.OR.ER===0?3:4;e.kT>e.Rp&&cu(e,!1);return 1}), new R6(4,4,8,4,rW),new R6(4,5,16,8,rW),new R6(4,6,32,32,rW),new R6(4,4,16,16,hG),new R6(8,16,32,32,hG),new R6(8,16,128,128,hG),new R6(8,32,128,256,hG),new R6(32,128,258,1024,hG),new R6(32,258,258,4096,hG)];var zpJ={};zpJ=function(){this.input=null;this.W4=this.uo=this.yY=0;this.output=null;this.pM=this.ER=this.JS=0;this.msg="";this.state=null;this.AU=2;this.k0=0};var bcf=Object.prototype.toString; tG.prototype.push=function(e,L){var c=this.OR,I=this.options.chunkSize;if(this.ended)return!1;var B=L===~~L?L:L===!0?4:0;typeof e==="string"?c.input=Lc6(e):bcf.call(e)==="[object ArrayBuffer]"?c.input=new Uint8Array(e):c.input=e;c.yY=0;c.uo=c.input.length;do{c.ER===0&&(c.output=new C1.gS(I),c.JS=0,c.ER=I);e=MAT(c,B);if(e!==1&&e!==0)return this.xo(e),this.ended=!0,!1;if(c.ER===0||c.uo===0&&(B===4||B===2))if(this.options.to==="string"){var x=C1.gY(c.output,c.JS);L=x;x=x.length;if(x<65537&&(L.subarray&& ieg||!L.subarray))L=String.fromCharCode.apply(null,C1.gY(L,x));else{for(var S="",h=0;h0||c.ER===0)&&e!==1);if(B===4)return(c=this.OR)&&c.state?(I=c.state.status,I!==42&&I!==69&&I!==73&&I!==91&&I!==103&&I!==113&&I!==666?e=K1(c,-2):(c.state=null,e=I===113?K1(c,-3):0)):e=-2,this.xo(e),this.ended=!0,e===0;B===2&&(this.xo(0),c.ER=0);return!0}; tG.prototype.xo=function(e){e===0&&(this.result=this.options.to==="string"?this.chunks.join(""):C1.B9(this.chunks));this.chunks=[];this.err=e;this.msg=this.OR.msg};var qN="@@redux/INIT"+Oe(),woc="@@redux/REPLACE"+Oe();var JiM=typeof Symbol==="function"&&Symbol.observable||"@@observable";var kGh=[0,C7e,-3,tO];g.z(NT6,AY);var Zkc=function(){var e=[0,NMe,aJ9,rS,C7e,rS,-1,tO,C7e,tO,-1,NMe,tO,aJ9,hO,kGh,rS,-1,tO];return function(L,c){var I={VV:!0};c&&Object.assign(I,c);L=l5v(L,void 0,void 0,I);try{var B=new NT6,x=B.XF;VR(e)(x,L);var S=B}finally{L.free()}return S}}();var mqn=-257923588;var n5r=new g.MN("adInfoDialogEndpoint");var wLv=new g.MN("adPingingEndpoint");var YnT=new g.MN("crossDeviceProgressCommand");var vf=new g.MN("actionCompanionAdRenderer");var Q1=new g.MN("adActionInterstitialRenderer");var DQe=new g.MN("adDurationRemainingRenderer");var dK=new g.MN("adHoverTextButtonRenderer");var KP$=new g.MN("adInfoDialogRenderer");var DL=new g.MN("adMessageRenderer");var U5=new g.MN("adPreviewRenderer");var A8=new g.MN("adsEngagementPanelRenderer");var iin=new g.MN("dismissablePanelTextPortraitImageRenderer");var FQc=new g.MN("adsEngagementPanelSectionListViewModel");var w2N=new g.MN("flyoutCtaRenderer");var fP=new g.MN("imageCompanionAdRenderer");var li=new g.MN("instreamAdPlayerOverlayRenderer");var Xhf=new g.MN("instreamSurveyAdBackgroundImageRenderer");var QN=new g.MN("instreamSurveyAdPlayerOverlayRenderer");var CP=new g.MN("instreamSurveyAdRenderer"),Pf=new g.MN("instreamSurveyAdSingleSelectQuestionRenderer"),lH=new g.MN("instreamSurveyAdMultiSelectQuestionRenderer"),G8=new g.MN("instreamSurveyAdAnswerRenderer"),J_N=new g.MN("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var J8=new g.MN("instreamVideoAdRenderer");var VRM=new g.MN("textOverlayAdContentRenderer"),Cwe=new g.MN("enhancedTextOverlayAdContentRenderer"),atZ=new g.MN("imageOverlayAdContentRenderer");var Px=new g.MN("playerOverlayLayoutRenderer");var d4=new g.MN("videoInterstitialButtonedCenteredLayoutRenderer");var wET=new g.MN("aboveFeedAdLayoutRenderer");var JDv=new g.MN("belowPlayerAdLayoutRenderer");var DvJ=new g.MN("inPlayerAdLayoutRenderer");var mG=new g.MN("playerBytesAdLayoutRenderer");var Hf=new g.MN("playerBytesSequenceItemAdLayoutRenderer");var jm=new g.MN("playerUnderlayAdLayoutRenderer");var VN=new g.MN("adIntroRenderer");var DC=new g.MN("playerBytesSequentialLayoutRenderer");var RyJ=new g.MN("slidingTextPlayerOverlayRenderer");var aV=new g.MN("surveyTextInterstitialRenderer");var yN=new g.MN("videoAdTrackingRenderer");var vEx=new g.MN("videoInterstitialCenteredLayoutViewModel");var NuL=new g.MN("simpleAdBadgeRenderer");var sJ=new g.MN("skipAdRenderer"),mQN=new g.MN("skipButtonRenderer");var YP=new g.MN("adSlotRenderer");var pP=new g.MN("squeezebackPlayerSidePanelRenderer");var y_M=new g.MN("timedPieCountdownRenderer");var KY=new g.MN("adAvatarViewModel");var Yh=new g.MN("adBadgeViewModel");var nY=new g.MN("adButtonViewModel");var Ze9=new g.MN("adDetailsLineViewModel");var p2M=new g.MN("adDisclosureBannerViewModel");var $Q7=new g.MN("adPodIndexViewModel");var jsU=new g.MN("imageBackgroundViewModel");var Hee=new g.MN("adGridCardCollectionViewModel");var ltL=new g.MN("adGridCardTextViewModel");var Pw7=new g.MN("adPreviewViewModel");var QsN=new g.MN("playerAdAvatarLockupCardButtonedViewModel");var dQU=new g.MN("skipAdButtonViewModel");var UQg=new g.MN("skipAdViewModel");var ELh=new g.MN("timedPieCountdownViewModel");var X2M=new g.MN("visitAdvertiserLinkViewModel");var F6=new g.MN("bannerImageLayoutViewModel");var bH=new g.MN("topBannerImageTextIconButtonedLayoutViewModel");var iH=new g.MN("adsEngagementPanelLayoutViewModel");var $P=new g.MN("displayUnderlayTextGridCardsLayoutViewModel");g.l8=new g.MN("browseEndpoint");var KOU=new g.MN("confirmDialogEndpoint");var vXr=new g.MN("commandContext");var OQH=new g.MN("rawColdConfigGroup");var tG6=new g.MN("rawHotConfigGroup");g.r9=new g.MN("commandExecutorCommand");g.z(Zcc,AY);var ytx={eye:0,cB0:1,JBS:32,nV_:61,LtW:67,f0w:103,mkM:86,FtM:42,ABm:60,Wt_:62,l0M:73,vV9:76,NQ7:88,Shl:90,iX$:99,OX9:98,bXS:100,dkS:102,EVm:41,xkS:69,rB_:70,Dke:71,G69:2,qC_:27,ANDROID:3,oId:54,M9m:14,dOe:91,Pz$:55,Cze:24,O17:20,gI9:18,J9m:21,A9$:104,nIl:30,fne:29,NMl:28,BQW:101,SVY:34,lnS:36,FyM:38,IOS:5,s8_:15,k80:92,aOY:40,Z6e:25,evS:17,G8M:19,qEd:64,Uee:66,IOW:26,BpS:22,Rve:33,YEe:68,uR_:35,VX9:53,j89:37,KA0:39,Lfd:7,iV9:57,Ewm:43,rR7:59,xZe:93,mOS:74,DZq:75,Xtl:85,zyY:65,hy7:80,sl9:8,SAY:10, Ktd:58,a0W:63,pt9:72,H1q:23,phS:11,h99:13,Tg7:12,bV0:16,gVM:56,HX9:31,a29:77,PoM:84,QlW:87,O2S:89,Co7:94,SEW:95};g.z(zw,AY);zw.prototype.wL=function(){return D2(this,3)}; zw.prototype.Fl=function(){return D2(this,5)}; zw.prototype.jq=function(e){return a7(this,5,e)};g.z(se,AY);g.z(poM,AY);g.z(vu,AY);g.M=vu.prototype;g.M.getDeviceId=function(){return D2(this,6)}; g.M.O7=function(e){var L=xs(this,9,q6,3,!0);QO(L,e);return L[e]}; g.M.getPlayerType=function(){return we(this,36)}; g.M.setHomeGroupInfo=function(e){return b6(this,poM,81,e)}; g.M.clearLocationPlayabilityToken=function(){return er(this,89)};g.z(fT,AY);fT.prototype.getValue=function(){return D2(this,TJ(this,RIT,2))}; var RIT=[2,3,4,5,6];g.z(AG,AY);AG.prototype.setTrackingParams=function(e){return er(this,1,Hev(e,!1))};g.z(F$,AY);g.z(bd,AY);bd.prototype.O7=function(e){var L=xs(this,5,TK,3,!0);QO(L,e);return L[e]};g.z(id,AY);id.prototype.getToken=function(){return Vj(this,2)}; id.prototype.setToken=function(e){return a7(this,2,e)};g.z(Gw,AY);Gw.prototype.setSafetyMode=function(e){return m3(this,5,e)};g.z(gW,AY);gW.prototype.Q1=function(e){return b6(this,vu,1,e)};var X6=new g.MN("thumbnailLandscapePortraitRenderer");g.YoL=new g.MN("changeEngagementPanelVisibilityAction");var gi6=new g.MN("continuationCommand");g.nLw=new g.MN("openPopupAction");g.gS=new g.MN("webCommandMetadata");var T2c=new g.MN("metadataBadgeRenderer");var GIH=new g.MN("signalServiceEndpoint");var iF=new g.MN("innertubeCommand");var Rdc=new g.MN("loggingDirectives");var baf={hg$:"EMBEDDED_PLAYER_MODE_UNKNOWN",Xvw:"EMBEDDED_PLAYER_MODE_DEFAULT",pv0:"EMBEDDED_PLAYER_MODE_PFP",zg9:"EMBEDDED_PLAYER_MODE_PFL"};var juf=new g.MN("channelThumbnailEndpoint");var $SH=new g.MN("embeddedPlayerErrorMessageRenderer");var mSM=new g.MN("embeddedPlayerOverlayVideoDetailsRenderer"),Hh$=new g.MN("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),lLx=new g.MN("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var t2x=new g.MN("embedsInfoPanelRenderer");var e7L=new g.MN("feedbackEndpoint");var Lje=new g.MN("callToActionButtonViewModel");var c0L=new g.MN("interactionLoggingCommandMetadata");var sAR={ClY:"WEB_DISPLAY_MODE_UNKNOWN",wtm:"WEB_DISPLAY_MODE_BROWSER",Mel:"WEB_DISPLAY_MODE_MINIMAL_UI",Plm:"WEB_DISPLAY_MODE_STANDALONE",oV9:"WEB_DISPLAY_MODE_FULLSCREEN"};g.z(kJ,AY);kJ.prototype.getPlayerType=function(){return we(this,7)}; kJ.prototype.Am=function(){return D2(this,19)}; kJ.prototype.setVideoId=function(e){return a7(this,19,e)};g.z(Du,AY);g.z(wW,AY);g.z(JG,AY); var I5N=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353, 354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525];var Bzw=new g.MN("loggingContext");g.z(VJ,AY);g.z(CT,AY);CT.prototype.Am=function(){return Vj(this,TJ(this,nG,1))}; CT.prototype.setVideoId=function(e){return Or(this,1,nG,i5(e))}; CT.prototype.getPlaylistId=function(){return Vj(this,TJ(this,nG,2))}; var nG=[1,2];g.z($qv,AY);var sF=new g.MN("changeKeyedMarkersVisibilityCommand");var x9M=new g.MN("changeMarkersVisibilityCommand");var M2f=new g.MN("loadMarkersCommand");var oCN=new g.MN("suggestedActionDataViewModel");var GXv=new g.MN("timelyActionViewModel");var i_c=new g.MN("timelyActionsOverlayViewModel");var NST=new g.MN("productListItemRenderer");var S3J=new g.MN("shoppingOverlayRenderer");var yIc=new g.MN("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var r0N=new g.MN("adFeedbackEndpoint");var h7N=new g.MN("menuEndpoint");var jBJ=new g.MN("phoneDialerEndpoint");var pGR=new g.MN("sendSmsEndpoint");var N2f=new g.MN("copyTextEndpoint");var R7e=new g.MN("shareEndpoint"),uj7=new g.MN("shareEntityEndpoint"),t5g=new g.MN("shareEntityServiceEndpoint"),OoL=new g.MN("webPlayerShareEntityServiceEndpoint");g.ku=new g.MN("urlEndpoint");g.MD=new g.MN("watchEndpoint");var q3U=new g.MN("watchPlaylistEndpoint");g.TzM=new g.MN("offlineOrchestrationActionCommand");var Ogn=new g.MN("compositeVideoOverlayRenderer");var WjU=new g.MN("miniplayerRenderer");var CVM=new g.MN("paidContentOverlayRenderer");var M5g=new g.MN("playerMutedAutoplayOverlayRenderer"),z7e=new g.MN("playerMutedAutoplayEndScreenRenderer");var gPn=new g.MN("unserializedPlayerResponse"),sg9=new g.MN("unserializedPlayerResponse");var vCN=new g.MN("playlistEditEndpoint");var kx;g.E5=new g.MN("buttonRenderer");kx=new g.MN("toggleButtonRenderer");var ADH=new g.MN("counterfactualRenderer");var f57=new g.MN("resolveUrlCommandMetadata");var A0M=new g.MN("modifyChannelNotificationPreferenceEndpoint");var DcR=new g.MN("pingingEndpoint");var FjM=new g.MN("unsubscribeEndpoint");g.PN=new g.MN("subscribeButtonRenderer");var boh=new g.MN("subscribeEndpoint");var o0J=new g.MN("buttonViewModel");var biv=new g.MN("qrCodeRenderer");var pwH={Q8d:"LIVING_ROOM_APP_MODE_UNSPECIFIED",FAW:"LIVING_ROOM_APP_MODE_MAIN",gzw:"LIVING_ROOM_APP_MODE_KIDS",JeY:"LIVING_ROOM_APP_MODE_MUSIC",AeS:"LIVING_ROOM_APP_MODE_UNPLUGGED",O6d:"LIVING_ROOM_APP_MODE_GAMING"};var hoc=new g.MN("autoplaySwitchButtonRenderer");var Qm,kDM,aCr,p_c;Qm=new g.MN("decoratedPlayerBarRenderer");kDM=new g.MN("chapteredPlayerBarRenderer");aCr=new g.MN("multiMarkersPlayerBarRenderer");p_c=new g.MN("chapterRenderer");g.VKc=new g.MN("markerRenderer");var PRc=new g.MN("decoratedPlayheadRenderer");var Ohc=new g.MN("desktopOverlayConfigRenderer");var Gpc=new g.MN("engagementPanelSectionListRenderer");var um6=new g.MN("gatedActionsOverlayViewModel");var mFc=new g.MN("heatMarkerRenderer");var NvR=new g.MN("heatmapRenderer");var WMM=new g.MN("watchToWatchTransitionRenderer");var Zh6=new g.MN("playlistPanelRenderer");var ioe=new g.MN("productUpsellSuggestedActionViewModel");var GyZ=new g.MN("suggestedActionTimeRangeTrigger"),gCw=new g.MN("suggestedActionsRenderer"),kye=new g.MN("suggestedActionRenderer");var ycn=new g.MN("timedMarkerDecorationRenderer");var miR=new g.MN("cipher");var kUJ=new g.MN("playerVars");var D99=new g.MN("playerVars");var D_=g.LZ.window,waN,J0L,a6=(D_==null?void 0:(waN=D_.yt)==null?void 0:waN.config_)||(D_==null?void 0:(J0L=D_.ytcfg)==null?void 0:J0L.data_)||{};g.IL("yt.config_",a6);var $J=[];var Kcx=/^[\w.]*$/,dq6={q:!0,search_query:!0},Q$n=String(Pu);var LQ=new function(){var e=window.document;this.X=window;this.K=e}; g.IL("yt.ads_.signals_.getAdSignalsString",function(e){return QJ(IC(e))});g.O9();var nAn="XMLHttpRequest"in g.LZ?function(){return new XMLHttpRequest}:null;var V5h="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.V(V5h);var IXR={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"},qA6="app debugcss debugjs expflag force_ad_params force_ad_encrypted force_viral_ad_response_params forced_experiments innertube_snapshots innertube_goldens internalcountrycode internalipoverride absolute_experiments conditional_experiments sbb sr_bns_address".split(" ").concat(g.V(V5h)),RL6=!1,SAR=TZ;g.z(zZ,WU);fQ.prototype.then=function(e,L,c){return this.X?this.X.then(e,L,c):this.Z===1&&e?(e=e.call(c,this.K))&&typeof e.then==="function"?e:F1(e):this.Z===2&&L?(e=L.call(c,this.K))&&typeof e.then==="function"?e:AF(e):this}; fQ.prototype.getValue=function(){return this.K}; fQ.prototype.$goog_Thenable=!0;var bL=!1;var ya=jG||H3;var AUn=/^([0-9\.]+):([0-9\.]+)$/;g.z(BI,WU);BI.prototype.name="BiscottiError";g.z(IG,WU);IG.prototype.name="BiscottiMissingError";var Gav={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},x5=null;var cwM=WM(["data-"]),Nkf={};var Cv7=0,oG=g.RF?"webkit":Pz?"moz":g.oA?"ms":g.QG?"o":"",a5M=g.BU("ytDomDomGetNextId")||function(){return++Cv7}; g.IL("ytDomDomGetNextId",a5M);var p0c={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};t7.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; t7.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; t7.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var OR=g.LZ.ytEventsEventsListeners||{};g.IL("ytEventsEventsListeners",OR);var Han=g.LZ.ytEventsEventsCounter||{count:0};g.IL("ytEventsEventsCounter",Han);var dk6=CU(function(){var e=!1;try{var L=Object.defineProperty({},"passive",{get:function(){e=!0}}); window.addEventListener("test",null,L)}catch(c){}return e}),lXc=CU(function(){var e=!1; try{var L=Object.defineProperty({},"capture",{get:function(){e=!0}}); window.addEventListener("test",null,L)}catch(c){}return e});var wS;wS=window;g.zI=wS.ytcsi&&wS.ytcsi.now?wS.ytcsi.now:wS.performance&&wS.performance.timing&&wS.performance.now&&wS.performance.timing.navigationStart?function(){return wS.performance.timing.navigationStart+wS.performance.now()}:function(){return(new Date).getTime()};g.TL(zx,g.p);zx.prototype.D=function(e){e.X===void 0&&$kc(e);var L=e.X;e.K===void 0&&$kc(e);this.X=new g.Pa(L,e.K)}; zx.prototype.YW=function(){return this.X||new g.Pa}; zx.prototype.pS=function(){if(this.X){var e=(0,g.zI)();if(this.G!=0){var L=this.j,c=this.X,I=L.x-c.x;L=L.y-c.y;I=Math.sqrt(I*I+L*L)/(e-this.G);this.K[this.Z]=Math.abs((I-this.B)/this.B)>.5?1:0;for(c=L=0;c<4;c++)L+=this.K[c]||0;L>=3&&this.T();this.B=I}this.G=e;this.j=this.X;this.Z=(this.Z+1)%4}}; zx.prototype.KS=function(){g.hF(this.J);g.Tx(this.h7)};g.z(sR,g.p);sR.prototype.C=function(e,L,c,I,B){c=g.Hu((0,g.RL)(c,I||this.Kf));c={target:e,name:L,callback:c};var x;B&&dk6()&&(x={passive:!0});e.addEventListener(L,c.callback,x);this.T.push(c);return c}; sR.prototype.j6=function(e){for(var L=0;L=P.YV)||b.X.version>=ev||b.X.objectStoreNames.contains(y)||w.push(y)}R=w;if(R.length===0){A.Iq(5);break}u=Object.keys(c.options.ib); t=h.objectStoreNames();if(c.Bc.options.version+1)throw q.close(),c.Z=!1,CBf(c,T);return A.return(q);case 8:throw L(), O instanceof Error&&!g.uL("ytidb_async_stack_killswitch")&&(O.stack=O.stack+"\n"+S.substring(S.indexOf("\n")+1)),uE(O,c.name,"",(W=c.options.version)!=null?W:-1);}})} function L(){c.X===I&&(c.X=void 0)} var c=this;if(!this.Z)throw CBf(this);if(this.X)return this.X;var I,B={blocking:function(x){x.close()}, closed:L,eM_:L,upgrade:this.options.upgrade};return this.X=I=e()};var NO=new C$("YtIdbMeta",{ib:{databases:{YV:1}},upgrade:function(e,L){L(1)&&g.vK(e,"databases",{keyPath:"actualName"})}});var $i,p$=new function(){}(new function(){});new g.rk;g.z(lE,C$);lE.prototype.K=function(e,L,c){c=c===void 0?{}:c;return(this.options.shared?Hsx:jbn)(e,L,Object.assign({},c))}; lE.prototype.delete=function(e){e=e===void 0?{}:e;return(this.options.shared?dAx:l$v)(this.name,e)};var l5e={},E4c=g.PK("ytGcfConfig",{ib:(l5e.coldConfigStore={YV:1},l5e.hotConfigStore={YV:1},l5e),shared:!1,upgrade:function(e,L){L(1)&&(g.GI(g.vK(e,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.GI(g.vK(e,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.z(dm,g.p);dm.prototype.KS=function(){for(var e=g.f(this.K),L=e.next();!L.done;L=e.next()){var c=this.X;L=c.indexOf(L.value);L>=0&&c.splice(L,1)}this.K.length=0;g.p.prototype.KS.call(this)};n$.prototype.jq=function(e){this.hotHashData=e;g.IL("yt.gcf.config.hotHashData",this.hotHashData||null)};var Pve=typeof TextEncoder!=="undefined"?new TextEncoder:null,yLR=Pve?function(e){return Pve.encode(e)}:function(e){e=g.iD(e); for(var L=new Uint8Array(e.length),c=0;c=L?!1:!0}; g.M.Jf=function(){var e=this;if(!AH(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.f1.Q_("QUEUED",this.b0).then(function(L){L&&!e.Co(L,e.UG)?e.LX.dg(function(){return g.Z(function(c){if(c.K==1)return L.id===void 0?c.Iq(2):g.a(c,e.f1.iI(L.id,e.b0),2);e.Jf();g.AJ(c)})}):e.Wg.y9()&&e.AY()})};var iM;var W2$={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135, mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28, nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42, assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225, liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73, visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88, spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153, vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136, mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167, kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387, transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189, ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258, ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221, accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245, musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270, yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296, notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478, tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340, iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361, mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380, mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400, clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420, mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16, mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443, cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464, startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489, keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515, adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525};var d9Z={},cGT=g.PK("ServiceWorkerLogsDatabase",{ib:(d9Z.SWHealthLog={YV:1},d9Z),shared:!0,upgrade:function(e,L){L(1)&&g.GI(g.vK(e,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var kR={},rGn=0;var DZ;JH.prototype.requestComplete=function(e,L){L&&(this.K=!0);e=this.removeParams(e);this.X.get(e)||this.X.set(e,L)}; JH.prototype.isEndpointCFR=function(e){e=this.removeParams(e);return(e=this.X.get(e))?!1:e===!1&&this.K?!0:null}; JH.prototype.removeParams=function(e){return e.split("?")[0]}; JH.prototype.removeParams=JH.prototype.removeParams;JH.prototype.isEndpointCFR=JH.prototype.isEndpointCFR;JH.prototype.requestComplete=JH.prototype.requestComplete;JH.getInstance=Vo;g.z(CF,g.hi);g.M=CF.prototype;g.M.y9=function(){return this.X.y9()}; g.M.Tl=function(e){this.X.X=e}; g.M.Db=function(){var e=window.navigator.onLine;return e===void 0?!0:e}; g.M.dN=function(){this.K=!0}; g.M.listen=function(e,L){return this.X.listen(e,L)}; g.M.lT=function(e){e=wG(this.X,e);e.then(function(L){g.uL("use_cfr_monitor")&&Vo().requestComplete("generate_204",L)}); return e}; CF.prototype.sendNetworkCheckRequest=CF.prototype.lT;CF.prototype.listen=CF.prototype.listen;CF.prototype.enableErrorFlushing=CF.prototype.dN;CF.prototype.getWindowStatus=CF.prototype.Db;CF.prototype.networkStatusHint=CF.prototype.Tl;CF.prototype.isNetworkAvailable=CF.prototype.y9;CF.getInstance=u$c;g.z(g.af,g.hi);g.af.prototype.y9=function(){var e=g.BU("yt.networkStatusManager.instance.isNetworkAvailable");return e?e.bind(this.K)():!0}; g.af.prototype.Tl=function(e){var L=g.BU("yt.networkStatusManager.instance.networkStatusHint").bind(this.K);L&&L(e)}; g.af.prototype.lT=function(e){var L=this,c;return g.Z(function(I){c=g.BU("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(L.K);return g.uL("skip_network_check_if_cfr")&&Vo().isEndpointCFR("generate_204")?I.return(new Promise(function(B){var x;L.Tl(((x=window.navigator)==null?void 0:x.onLine)||!0);B(L.y9())})):c?I.return(c(e)):I.return(!0)})};var NK;g.z(m7,Fk);m7.prototype.writeThenSend=function(e,L){L||(L={});L=ZZ(e,L);g.pv()||(this.X=!1);Fk.prototype.writeThenSend.call(this,e,L)}; m7.prototype.sendThenWrite=function(e,L,c){L||(L={});L=ZZ(e,L);g.pv()||(this.X=!1);Fk.prototype.sendThenWrite.call(this,e,L,c)}; m7.prototype.sendAndWrite=function(e,L){L||(L={});L=ZZ(e,L);g.pv()||(this.X=!1);Fk.prototype.sendAndWrite.call(this,e,L)}; m7.prototype.awaitInitialization=function(){return this.Z.promise};var WHf=g.LZ.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.IL("ytNetworklessLoggingInitializationOptions",WHf);g.pF.prototype.isReady=function(){!this.config_&&tZT()&&(this.config_=g.LF());return!!this.config_};var U9N,H4,P4;U9N=g.LZ.ytPubsubPubsubInstance||new g.zl;H4=g.LZ.ytPubsubPubsubSubscribedKeys||{};P4=g.LZ.ytPubsubPubsubTopicToKeys||{};g.lM=g.LZ.ytPubsubPubsubIsSynchronous||{};g.zl.prototype.subscribe=g.zl.prototype.subscribe;g.zl.prototype.unsubscribeByKey=g.zl.prototype.EV;g.zl.prototype.publish=g.zl.prototype.publish;g.zl.prototype.clear=g.zl.prototype.clear;g.IL("ytPubsubPubsubInstance",U9N);g.IL("ytPubsubPubsubTopicToKeys",P4);g.IL("ytPubsubPubsubIsSynchronous",g.lM); g.IL("ytPubsubPubsubSubscribedKeys",H4);var AGx={};g.z(xv,g.p);xv.prototype.append=function(e){if(!this.K)throw Error("This does not support the append operation");e=e.IT();this.IT().appendChild(e)}; g.z(op,xv);op.prototype.IT=function(){return this.X};g.z(Sl,g.p);Sl.prototype.onTouchStart=function(e){this.T=!0;this.K=e.touches.length;this.X.isActive()&&(this.X.stop(),this.B=!0);e=e.touches;this.j=iTn(this,e)||e.length!=1;var L=e.item(0);this.j||!L?this.D=this.J=Infinity:(this.J=L.clientX,this.D=L.clientY);for(L=this.Z.length=0;L=0)}if(L||e&&Math.pow(e.clientX-this.J,2)+Math.pow(e.clientY-this.D,2)>25)this.G=!0}; Sl.prototype.onTouchEnd=function(e){var L=e.changedTouches;L&&this.T&&this.K==1&&!this.G&&!this.B&&!this.j&&iTn(this,L)&&(this.pS=e,this.X.start());this.K=e.touches.length;this.K===0&&(this.G=this.T=!1,this.Z.length=0);this.B=!1};var ri=Date.now().toString();var Ou={};var vL=Symbol("injectionDeps");Tr.prototype.toString=function(){return"InjectionToken("+this.name+")"}; kw$.prototype.resolve=function(e){return e instanceof WL?fG(this,e.key,[],!0):fG(this,e,[])};var A$;var bx=window;var kv=g.uL("web_enable_lifecycle_monitoring")&&ix()!==0,NWx=g.uL("web_enable_lifecycle_monitoring");VMn.prototype.cancel=function(){for(var e=g.f(this.X),L=e.next();!L.done;L=e.next())L=L.value,L.jobId===void 0||L.kM||this.scheduler.qe(L.jobId),L.kM=!0;this.K.resolve()};g.M=D0.prototype;g.M.install=function(e){this.plugins.push(e);return this}; g.M.uninstall=function(){var e=this;g.HM.apply(0,arguments).forEach(function(L){L=e.plugins.indexOf(L);L>-1&&e.plugins.splice(L,1)})}; g.M.transition=function(e,L){var c=this;kv&&wun(this.state);var I=this.transitions.find(function(x){return Array.isArray(x.from)?x.from.find(function(S){return S===c.state&&x.to===e}):x.from===c.state&&x.to===e}); if(I){this.K&&(Cdr(this.K),this.K=void 0);mNc(this,e,L);this.state=e;kv&&Gr(this.state);I=I.action.bind(this);var B=this.plugins.filter(function(x){return x[e]}).map(function(x){return x[e]}); I(auv(this,B),L)}else throw Error("no transition specified from "+this.state+" to "+e);}; g.M.Uv9=function(e){var L=g.HM.apply(1,arguments);g.PI();for(var c=g.f(e),I=c.next(),B={};!I.done;B={aN:void 0},I=c.next())B.aN=I.value,xAJ(function(x){return function(){J$(x.aN.name);CG(function(){return x.aN.callback.apply(x.aN,g.V(L))}); VY(x.aN.name)}}(B))}; g.M.qF0=function(e){var L=g.HM.apply(1,arguments),c,I,B,x;return g.Z(function(S){S.K==1&&(g.PI(),c=g.f(e),I=c.next(),B={});if(S.K!=3){if(I.done)return S.Iq(0);B.LU=I.value;B.gB=void 0;x=function(h){return function(){J$(h.LU.name);var R=CG(function(){return h.LU.callback.apply(h.LU,g.V(L))}); fb(R)?h.gB=g.uL("web_lifecycle_error_handling_killswitch")?R.then(function(){VY(h.LU.name)}):R.then(function(){VY(h.LU.name)},function(u){JGn(u); VY(h.LU.name)}):VY(h.LU.name)}}(B); xAJ(x);return B.gB?g.a(S,B.gB,3):S.Iq(3)}B={LU:void 0,gB:void 0};I=c.next();return S.Iq(2)})}; g.M.Sm=function(e){var L=g.HM.apply(1,arguments),c=this,I=e.map(function(B){return{HW:function(){J$(B.name);CG(function(){return B.callback.apply(B,g.V(L))}); VY(B.name)}, priority:wi(c,B)}}); I.length&&(this.K=new VMn(I))}; g.RH.Object.defineProperties(D0.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var Nc;g.z(ap,D0);ap.prototype.B=function(e,L){var c=this;this.X=g.HI(0,function(){c.currentState==="application_navigating"&&c.transition("none")},5E3); e(L==null?void 0:L.event)}; ap.prototype.j=function(e,L){this.X&&(g.Vw.qe(this.X),this.X=null);e(L==null?void 0:L.event)};var SB=[];g.IL("yt.logging.transport.getScrapedGelPayloads",function(){return SB});m9.prototype.storePayload=function(e,L){e=yY(e);this.store[e]?this.store[e].push(L):(this.K={},this.store[e]=[L]);this.X++;g.uL("more_accurate_gel_parser")&&(L=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(L));return e}; m9.prototype.smartExtractMatchingEntries=function(e){if(!e.keys.length)return[];for(var L=pG(this,e.keys.splice(0,1)[0]),c=[],I=0;I=0){I=!1;break a}}I=!0}I&&(L=go(L))&&this.Cd(L)}}; g.M.Z8=function(e){return e}; g.M.onTouchStart=function(e){this.Gm.onTouchStart(e)}; g.M.onTouchMove=function(e){this.Gm.onTouchMove(e)}; g.M.onTouchEnd=function(e){if(this.Gm)this.Gm.onTouchEnd(e)}; g.M.Cd=function(e){this.layoutId?this.A7.executeCommand(e,this.layoutId):(e=new g.yu("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.A9(e))}; g.M.createServerVe=function(e,L){this.api.createServerVe(e,this);this.api.setTrackingParams(e,L)}; g.M.logVisibility=function(e,L){this.api.hasVe(e)&&this.api.logVisibility(e,L,this.interactionLoggingClientData)}; g.M.KS=function(){this.clear(null);this.j6(this.x9);for(var e=g.f(this.k9),L=e.next();!L.done;L=e.next())this.j6(L.value);g.I9.prototype.KS.call(this)};g.z(bX,B7); bX.prototype.init=function(e,L,c){B7.prototype.init.call(this,e,L,c);this.X=L;if(L.text==null&&L.icon==null)g.F7(Error("ButtonRenderer did not have text or an icon set."));else{switch(L.style||null){case "STYLE_UNKNOWN":e="ytp-ad-button-link";break;default:e=null}e!=null&&g.Y4(this.element,e);L.text!=null&&(e=g.o9(L.text),g.J_(e)||(this.element.setAttribute("aria-label",e),this.Z=new g.I9({U:"span",W:"ytp-ad-button-text",aq:e}),g.l(this,this.Z),this.Z.jl(this.element)));L.accessibilityData&&L.accessibilityData.accessibilityData&& L.accessibilityData.accessibilityData.label&&!g.J_(L.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",L.accessibilityData.accessibilityData.label);L.icon!=null&&(L=FO(L.icon,this.G),L!=null&&(this.K=new g.I9({U:"span",W:"ytp-ad-button-icon",L:[L]}),g.l(this,this.K)),this.j?z$(this.element,this.K.element,0):this.K.jl(this.element))}}; bX.prototype.clear=function(){this.hide()}; bX.prototype.onClick=function(e){B7.prototype.onClick.call(this,e);e=g.f(mxr(this));for(var L=e.next();!L.done;L=e.next())L=L.value,this.layoutId?this.A7.executeCommand(L,this.layoutId):g.A9(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.z(iX,g.p);iX.prototype.KS=function(){this.K&&g.Tx(this.K);this.X.clear();G1=null;g.p.prototype.KS.call(this)}; iX.prototype.register=function(e,L){L&&this.X.set(e,L)}; var G1=null;g.z(Dy,B7); Dy.prototype.init=function(e,L,c){B7.prototype.init.call(this,e,L,c);e=L.hoverText||null;L=L.button&&g.Q(L.button,g.E5)||null;L==null?g.A9(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new bX(this.api,this.layoutId,this.interactionLoggingClientData,this.A7,void 0,void 0,void 0,void 0,this.Z),g.l(this,this.button),this.button.init(X7("button"),L,this.macros),e&&this.button.element.setAttribute("aria-label",g.o9(e)),this.button.jl(this.element),this.D&&!g.Ks(this.button.element, "ytp-ad-clickable")&&g.Y4(this.button.element,"ytp-ad-clickable"),this.Z&&g.Y4(this.button.element,"ytp-ad-hover-text-button--clean-player"),e&&(this.K=new g.I9({U:"div",W:"ytp-ad-hover-text-container"}),this.j&&(L=new g.I9({U:"div",W:"ytp-ad-hover-text-callout"}),L.jl(this.K.element),g.l(this,L)),g.l(this,this.K),this.K.jl(this.element),L=gJ(e),z$(this.K.element,L,0)),this.show())}; Dy.prototype.hide=function(){this.button&&this.button.hide();this.K&&this.K.hide();B7.prototype.hide.call(this)}; Dy.prototype.show=function(){this.button&&this.button.show();B7.prototype.show.call(this)};g.z(Jm,B7); Jm.prototype.init=function(e,L,c){B7.prototype.init.call(this,e,L,c);c=(e=L.thumbnail)&&wJ(e)||"";g.J_(c)?Math.random()<.01&&g.F7(Error("Found AdImage without valid image URL")):(this.X?g.l3(this.element,"backgroundImage","url("+c+")"):hj(this.element,{src:c}),hj(this.element,{alt:e&&e.accessibility&&e.accessibility.label||""}),L&&L.adRendererCommands&&L.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; Jm.prototype.clear=function(){this.hide()};g.z(VI,B7);g.M=VI.prototype;g.M.hide=function(){B7.prototype.hide.call(this);this.Z&&this.Z.focus()}; g.M.show=function(){this.Z=document.activeElement;B7.prototype.show.call(this);this.G.focus()}; g.M.init=function(e,L,c){B7.prototype.init.call(this,e,L,c);this.K=L;L.dialogMessages||L.title!=null?L.confirmLabel==null?g.A9(Error("ConfirmDialogRenderer.confirmLabel was not set.")):L.cancelLabel==null?g.A9(Error("ConfirmDialogRenderer.cancelLabel was not set.")):$xx(this,L):g.A9(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.M.clear=function(){g.fv(this.X);this.hide()}; g.M.oH=function(){this.hide()}; g.M.Z_=function(){var e=this.K.cancelEndpoint;e&&(this.layoutId?this.A7.executeCommand(e,this.layoutId):g.A9(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.M.M7=function(){var e=this.K.confirmNavigationEndpoint||this.K.confirmEndpoint;e&&(this.layoutId?this.A7.executeCommand(e,this.layoutId):g.A9(Error("Missing layoutId for confirm dialog.")));this.hide()};g.z(CN,B7);g.M=CN.prototype; g.M.init=function(e,L,c){B7.prototype.init.call(this,e,L,c);this.Z=L;if(L.defaultText==null&&L.defaultIcon==null)g.A9(Error("ToggleButtonRenderer must have either text or icon set."));else if(L.defaultIcon==null&&L.toggledIcon!=null)g.A9(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(L.style){switch(L.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":e="ytp-ad-toggle-button-default-style";break;default:e=null}e!=null&&g.Y4(this.G,e)}e={};L.defaultText? (c=g.o9(L.defaultText),g.J_(c)||(e.buttonText=c,this.api.S().experiments.N0("a11y_h5_associate_survey_question")||this.X.setAttribute("aria-label",c),this.api.S().experiments.N0("fix_h5_toggle_button_a11y")&&this.K.setAttribute("aria-label",c))):g.cA(this.Ve,!1);L.defaultTooltip&&(e.tooltipText=L.defaultTooltip,this.X.hasAttribute("aria-label")||this.K.setAttribute("aria-label",L.defaultTooltip));L.defaultIcon?(c=FO(L.defaultIcon),this.updateValue("untoggledIconTemplateSpec",c),L.toggledIcon?(this.h7= !0,c=FO(L.toggledIcon),this.updateValue("toggledIconTemplateSpec",c)):(g.cA(this.D,!0),g.cA(this.j,!1)),g.cA(this.X,!1)):g.cA(this.K,!1);g.qQ(e)||this.update(e);L.isToggled&&(g.Y4(this.G,"ytp-ad-toggle-button-toggled"),this.toggleButton(L.isToggled));a9(this);this.C(this.element,"change",this.bu);this.show()}}; g.M.onClick=function(e){this.k9.length>0&&(this.toggleButton(!this.isToggled()),this.bu());B7.prototype.onClick.call(this,e)}; g.M.bu=function(){g.cY(this.G,"ytp-ad-toggle-button-toggled",this.isToggled());for(var e=g.f(jGM(this,this.isToggled())),L=e.next();!L.done;L=e.next())L=L.value,this.layoutId?this.A7.executeCommand(L,this.layoutId):g.A9(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);a9(this)}; g.M.clear=function(){this.hide()}; g.M.toggleButton=function(e){g.cY(this.G,"ytp-ad-toggle-button-toggled",e);this.X.checked=e;a9(this)}; g.M.isToggled=function(){return this.X.checked};g.z(Nw,sR);Nw.prototype.B=function(e){if(Array.isArray(e)){e=g.f(e);for(var L=e.next();!L.done;L=e.next())L=L.value,L instanceof HvR&&this.Z(L)}};g.z(mD,B7);g.M=mD.prototype;g.M.init=function(e,L,c){B7.prototype.init.call(this,e,L,c);L.reasons?L.confirmLabel==null?g.A9(Error("AdFeedbackRenderer.confirmLabel was not set.")):(L.cancelLabel==null&&g.F7(Error("AdFeedbackRenderer.cancelLabel was not set.")),L.title==null&&g.F7(Error("AdFeedbackRenderer.title was not set.")),dxM(this,L)):g.A9(Error("AdFeedbackRenderer.reasons were not set."))}; g.M.clear=function(){WI(this.j);WI(this.D);this.G.length=0;this.hide()}; g.M.hide=function(){this.X&&this.X.hide();this.K&&this.K.hide();B7.prototype.hide.call(this);this.Z&&this.Z.focus()}; g.M.show=function(){this.X&&this.X.show();this.K&&this.K.show();this.Z=document.activeElement;B7.prototype.show.call(this);this.j.focus()}; g.M.XQ=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.M.pdW=function(){this.hide()}; yI.prototype.IT=function(){return this.X.element}; yI.prototype.getCommand=function(){return this.K}; yI.prototype.isChecked=function(){return this.Z.checked};g.z(Zy,VI);Zy.prototype.oH=function(e){VI.prototype.oH.call(this,e);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; Zy.prototype.Z_=function(e){VI.prototype.Z_.call(this,e);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; Zy.prototype.M7=function(e){VI.prototype.M7.call(this,e);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.z(pN,B7);g.M=pN.prototype; g.M.init=function(e,L,c){B7.prototype.init.call(this,e,L,c);this.j=L;if(L.dialogMessage==null&&L.title==null)g.A9(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{L.confirmLabel==null&&g.F7(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(e=L.closeOverlayRenderer&&g.Q(L.closeOverlayRenderer,g.E5)||null)this.X=new bX(this.api,this.layoutId,this.interactionLoggingClientData,this.A7,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.l(this,this.X),this.X.init(X7("button"),e,this.macros),this.X.jl(this.element);L.title&&(e=g.o9(L.title),this.updateValue("title",e));if(L.adReasons)for(e=L.adReasons,c=0;c=this.Y9?(this.h7.hide(),this.Pe=!0,this.publish("i")):this.Z&&this.Z.isTemplated()&&(e=Math.max(0,Math.ceil((this.Y9-e)/1E3)),e!=this.d_&&(H7(this.Z,{TIME_REMAINING:String(e)}),this.d_=e)))}};g.z(XO,lX);g.M=XO.prototype; g.M.init=function(e,L,c){lX.prototype.init.call(this,e,L,c);if(L.image&&L.image.thumbnail)if(L.headline)if(L.description)if((e=L.actionButton&&g.Q(L.actionButton,g.E5))&&e.navigationEndpoint){var I=this.api.getVideoData(2);if(I!=null)if(L.image&&L.image.thumbnail){var B=L.image.thumbnail.thumbnails;B!=null&&B.length>0&&g.J_(g.VK(B[0].url))&&(B[0].url=I.profilePicture)}else g.F7(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.Z.init(X7("ad-image"),L.image,c);this.j.init(X7("ad-text"), L.headline,c);this.G.init(X7("ad-text"),L.description,c);this.K.init(X7("button"),e,c);c=yw(this.K.element);mn(this.K.element,c+" This link opens in new tab");this.h7=e.navigationEndpoint;this.api.Vv()||this.show();this.api.S().Y("enable_larger_flyout_cta_on_desktop")&&(this.q0("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.q0("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.q0("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"), this.q0("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.q0("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.q0("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.K.element.classList.add("ytp-flyout-cta-action-button-large"),this.K.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.q0("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large")); this.api.addEventListener("playerUnderlayVisibilityChange",this.ET.bind(this));this.Ve=L.startMs||0;P7(this)}else g.A9(Error("FlyoutCtaRenderer has no valid action button."));else g.A9(Error("FlyoutCtaRenderer has no description AdText."));else g.A9(Error("FlyoutCtaRenderer has no headline AdText."));else g.F7(Error("FlyoutCtaRenderer has no image."))}; g.M.onClick=function(e){lX.prototype.onClick.call(this,e);this.api.pauseVideo();!g.vz(this.K.element,e.target)&&this.h7&&(this.layoutId?this.A7.executeCommand(this.h7,this.layoutId):g.A9(Error("Missing layoutId for flyout cta.")))}; g.M.SA=function(){if(this.X){var e=this.X.getProgressState();(e&&e.current||this.Y9)&&1E3*e.current>=this.Ve&&(QI(this),g.eZ(this.element,"ytp-flyout-cta-inactive"),this.K.element.removeAttribute("tabIndex"))}}; g.M.nV=function(){this.clear()}; g.M.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.ET.bind(this))}; g.M.show=function(){this.K&&this.K.show();lX.prototype.show.call(this)}; g.M.hide=function(){this.K&&this.K.hide();lX.prototype.hide.call(this)}; g.M.ET=function(e){e=="hidden"?this.show():this.hide()};g.z(KN,B7);g.M=KN.prototype; g.M.init=function(e,L,c){B7.prototype.init.call(this,e,L,c);this.X=L;if(this.X.rectangle)for(e=this.X.likeButton&&g.Q(this.X.likeButton,kx),L=this.X.dislikeButton&&g.Q(this.X.dislikeButton,kx),this.Z.init(X7("toggle-button"),e,c),this.K.init(X7("toggle-button"),L,c),this.C(this.element,"change",this.xb),this.G.show(100),this.show(),c=g.f(this.X&&this.X.impressionCommands||[]),e=c.next();!e.done;e=c.next())e=e.value,this.layoutId?this.A7.executeCommand(e,this.layoutId):g.A9(Error("Missing layoutId for instream user sentiment."))}; g.M.clear=function(){this.hide()}; g.M.hide=function(){this.Z.hide();this.K.hide();B7.prototype.hide.call(this)}; g.M.show=function(){this.Z.show();this.K.show();B7.prototype.show.call(this)}; g.M.xb=function(){kTc(this.element,"ytp-ad-instream-user-sentiment-selected");this.X.postMessageAction&&this.api.fS("onYtShowToast",this.X.postMessageAction);this.G.hide()}; g.M.onClick=function(e){this.k9.length>0&&this.xb();B7.prototype.onClick.call(this,e)};g.z(Yu,g.p);g.M=Yu.prototype;g.M.KS=function(){this.reset();g.p.prototype.KS.call(this)}; g.M.reset=function(){g.fv(this.G);this.j=!1;this.X&&this.X.stop();this.B.stop();this.Z&&(this.Z=!1,this.T.play())}; g.M.start=function(){this.reset();this.G.C(this.K,"mouseover",this.DP,this);this.G.C(this.K,"mouseout",this.rE,this);this.pS&&(this.G.C(this.K,"focusin",this.DP,this),this.G.C(this.K,"focusout",this.rE,this));this.X?this.X.start():(this.j=this.Z=!0,g.l3(this.K,{opacity:this.D}))}; g.M.DP=function(){this.Z&&(this.Z=!1,this.T.play());this.B.stop();this.X&&this.X.stop()}; g.M.rE=function(){this.j?this.B.start():this.X&&this.X.start()}; g.M.Zk=function(){this.Z||(this.Z=!0,this.J.play(),this.j=!0)};var xOJ=[new nN("b.f_",!1,0),new nN("j.s_",!1,2),new nN("r.s_",!1,4),new nN("e.h_",!1,6),new nN("i.s_",!0,8),new nN("s.t_",!1,10),new nN("p.h_",!1,12),new nN("s.i_",!1,14),new nN("f.i_",!1,16),new nN("a.b_",!1,18),new nN("a.o_",!1),new nN("g.o_",!1,22),new nN("p.i_",!1,24),new nN("p.m_",!1),new nN("n.k_",!0,20),new nN("i.f_",!1),new nN("a.s_",!0),new nN("m.c_",!1),new nN("n.h_",!1,26),new nN("o.p_",!1),new nN("m.p_",!0,28),new nN("o.a_",!1),new nN("d.p_",!1),new nN("e.i_",!1)].reduce(function(e,L){e[L.K]= L;return e},{});g.z(SF,lX);g.M=SF.prototype; g.M.init=function(e,L,c){lX.prototype.init.call(this,e,L,c);this.h7=L;(this.Ve=SLr(this))&&g.F7(Error("hasAdControlInClickCommands_ is true."));if(!L||g.qQ(L))g.A9(Error("SkipButtonRenderer was not specified or empty."));else if(!L.message||g.qQ(L.message))g.A9(Error("SkipButtonRenderer.message was not specified or empty."));else if(e=this.j?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"},L=FO(e),L==null?g.A9(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+e.iconType+".")): (this.api.S().Y("disable_touch_events_on_skip_button")&&(L.N=Object.assign({},L.N,{"aria-hidden":"true",XD0:"false"})),this.Z=new g.I9({U:"button",Rq:[this.j?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],L:[{U:"span",W:this.j?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",L:[L]}]}),g.l(this,this.Z),this.Z.jl(this.G.element),this.K=new jH(this.api,this.layoutId,this.interactionLoggingClientData,this.A7,"ytp-ad-skip-button-text"),this.j&&this.K.element.classList.add("ytp-ad-skip-button-text-centered"), this.K.init(X7("ad-text"),this.h7.message,c),g.l(this,this.K),z$(this.Z.element,this.K.element,0)),!this.api.S().Y("disable_touch_events_on_skip_button")){var I=I===void 0?null:I;c=this.api.S();!(this.k9.length>0)&&c.K&&(Pr?0:"ontouchstart"in document.documentElement&&(Y9f()||S_()))&&(this.j6(this.x9),I&&this.j6(I),this.k9=[this.C(this.element,"touchstart",this.onTouchStart,this),this.C(this.element,"touchmove",this.onTouchMove,this),this.C(this.element,"touchend",this.onTouchEnd,this)])}}; g.M.clear=function(){this.Y9.reset();this.hide()}; g.M.hide=function(){this.G.hide();this.K&&this.K.hide();QI(this);lX.prototype.hide.call(this)}; g.M.onClick=function(e){if(this.Z!=null){if(e){var L=e||window.event;L.returnValue=!1;L.preventDefault&&L.preventDefault()}var c;if(IQR(e,{contentCpn:((c=this.api.getVideoData(1))==null?void 0:c.clientPlaybackNonce)||""})===0)this.api.fS("onAbnormalityDetected");else if(lX.prototype.onClick.call(this,e),this.publish("j"),this.api.fS("onAdSkip"),this.Pe||!this.Ve)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.M.Z8=function(e){if(!this.Pe)return this.Ve&&Ir("SkipButton click commands not pruned while ALC exist"),e;var L,c=(L=g.Q(e,g.r9))==null?void 0:L.commands;if(!c)return e;e=[];for(L=0;L=this.j&&rgv(this,!0)};g.z(Rr,bX);Rr.prototype.init=function(e,L,c){bX.prototype.init.call(this,e,L,c);e=!1;L.text!=null&&(e=g.o9(L.text),e=!g.J_(e));e?L.navigationEndpoint==null?g.F7(Error("No visit advertiser clickthrough provided in renderer,")):L.style!=="STYLE_UNKNOWN"?g.F7(Error("Button style was not a link-style type in renderer,")):this.show():g.F7(Error("No visit advertiser text was present in the renderer."))};g.z(u1,B7); u1.prototype.init=function(e,L,c){B7.prototype.init.call(this,e,L,c);e=L.text;g.J_(xu(e))?g.F7(Error("SimpleAdBadgeRenderer has invalid or empty text")):(e&&e.text&&(L=e.text,this.Z&&!this.K&&(L=this.api.S(),L=e.text+" "+(L&&L.K?"\u2022":"\u00b7")),L={text:L,isTemplated:e.isTemplated},e.style&&(L.style=e.style),e.targetId&&(L.targetId=e.targetId),e=new jH(this.api,this.layoutId,this.interactionLoggingClientData,this.A7),e.init(X7("simple-ad-badge"),L,c),e.jl(this.element),g.l(this,e)),this.show())}; u1.prototype.clear=function(){this.hide()};g.z(tW,KE);g.z(Os,g.Yg);g.M=Os.prototype;g.M.QP=function(){return this.durationMs}; g.M.stop=function(){this.X&&this.Eq.j6(this.X)}; g.M.Ty=function(e){this.K={seekableStart:0,seekableEnd:this.durationMs/1E3,current:e.current};this.publish("h")}; g.M.getProgressState=function(){return this.K}; g.M.CD=function(e){g.or(e,2)&&this.publish("g")};g.z(q2,g.Yg);g.M=q2.prototype;g.M.QP=function(){return this.durationMs}; g.M.start=function(){this.X||(this.X=!0,this.timer.start())}; g.M.stop=function(){this.X&&(this.X=!1,this.timer.stop())}; g.M.Ty=function(){this.GN+=100;var e=!1;this.GN>this.durationMs&&(this.GN=this.durationMs,this.timer.stop(),e=!0);this.K={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.GN/1E3};this.publish("h");e&&this.publish("g")}; g.M.getProgressState=function(){return this.K};g.z(M2,lX);g.M=M2.prototype;g.M.init=function(e,L,c){lX.prototype.init.call(this,e,L,c);var I;if(L==null?0:(I=L.templatedCountdown)==null?0:I.templatedAdText){e=L.templatedCountdown.templatedAdText;if(!e.isTemplated){g.F7(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.K=new jH(this.api,this.layoutId,this.interactionLoggingClientData,this.A7);this.K.init(X7("ad-text"),e,{});this.K.jl(this.element);g.l(this,this.K)}this.show()}; g.M.clear=function(){this.hide()}; g.M.hide=function(){QI(this);lX.prototype.hide.call(this)}; g.M.nV=function(){this.hide()}; g.M.SA=function(){if(this.X!=null){var e=this.X.getProgressState();if(e!=null&&e.current!=null&&this.K){var L=this.X instanceof Os?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:e.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.X instanceof q2?e.seekableEnd:this.api.getDuration(2,!1);e=e.current;var c,I,B=((c=this.api.getVideoData())==null?0:(I=c.GI)==null?0:I.call(c))?Math.max(L-e,0):L-e;H7(this.K,{FORMATTED_AD_DURATION_REMAINING:String(g.Te(B)), TIME_REMAINING:String(Math.ceil(B))})}}}; g.M.show=function(){P7(this);lX.prototype.show.call(this)};g.z(ze,jH);ze.prototype.onClick=function(e){jH.prototype.onClick.call(this,e);this.api.onAdUxClicked(this.componentType)};g.z(fq,B7);fq.prototype.init=function(e,L){B7.prototype.init.call(this,e,L,{});if(e=L.content){g.fU(this.element,e);var c,I;L=((c=L.interaction)==null?void 0:(I=c.accessibility)==null?void 0:I.label)||e;this.element.setAttribute("aria-label",L)}else g.A9(Error("AdSimpleAttributedString does not have text content"))}; fq.prototype.clear=function(){this.hide()}; fq.prototype.onClick=function(e){B7.prototype.onClick.call(this,e)};g.z(AW,B7); AW.prototype.init=function(e,L){B7.prototype.init.call(this,e,L,{});(e=L.label)&&e.content&&!g.J_(e.content)?(this.adBadgeText.init(X7("ad-simple-attributed-string"),new vZ(e)),(L=L.adPodIndex)&&L.content&&!g.J_(L.content)&&(this.X=new fq(this.api,this.layoutId,this.interactionLoggingClientData,this.A7),this.X.jl(this.element),g.l(this,this.X),this.X.element.classList.add("ytp-ad-badge__pod-index"),this.X.init(X7("ad-simple-attributed-string"),new vZ(L))),this.element.classList.add(this.K?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.A9(Error("No label is returned in AdBadgeViewModel."))}; AW.prototype.show=function(){this.adBadgeText.show();var e;(e=this.X)==null||e.show();B7.prototype.show.call(this)}; AW.prototype.hide=function(){this.adBadgeText.hide();var e;(e=this.X)==null||e.hide();B7.prototype.hide.call(this)};g.z(Fn,B7);Fn.prototype.init=function(e,L){B7.prototype.init.call(this,e,L,{});(e=L.adPodIndex)&&e.content&&!g.J_(e.content)&&(this.X=new fq(this.api,this.layoutId,this.interactionLoggingClientData,this.A7),this.X.jl(this.element),g.l(this,this.X),this.X.init(X7("ad-simple-attributed-string"),new vZ(e)),L.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()}; Fn.prototype.show=function(){var e;(e=this.X)==null||e.show();B7.prototype.show.call(this)}; Fn.prototype.hide=function(){var e;(e=this.X)==null||e.hide();B7.prototype.hide.call(this)};g.z(b1,B7); b1.prototype.init=function(e,L){B7.prototype.init.call(this,e,L,{});if(L!=null&&L.text){var c;if(((c=L.text)==null?0:c.content)&&!g.J_(L.text.content)){this.X=new g.I9({U:"div",W:"ytp-ad-disclosure-banner__text",aq:L.text.content});g.l(this,this.X);this.X.jl(this.element);var I,B;e=((I=L.interaction)==null?void 0:(B=I.accessibility)==null?void 0:B.label)||L.text.content;this.element.setAttribute("aria-label",e);var x;if((x=L.interaction)==null?0:x.onTap)this.K=new g.I9({U:"div",W:"ytp-ad-disclosure-banner__chevron",L:[g.R9()]}), g.l(this,this.K),this.K.jl(this.element);this.show()}}else g.A9(Error("No banner text found in AdDisclosureBanner."))}; b1.prototype.clear=function(){this.hide()};g.z(g9,g.I9);g9.prototype.Ty=function(){var e=this.K.getProgressState(),L=e.seekableEnd;this.api.getPresentingPlayerType()===2&&(L=this.Z?this.Z/1E3:e.seekableEnd);this.progressBar.style.width=Ge(new i1(e.seekableStart,L),e.current,0)*100+"%"}; g9.prototype.onStateChange=function(){g.L8(this.api.S())||(this.api.getPresentingPlayerType()===2?this.X===-1&&(this.show(),this.X=this.K.subscribe("h",this.Ty,this),this.Ty()):this.X!==-1&&(this.hide(),this.K.EV(this.X),this.X=-1))};g.z(kw,B7); kw.prototype.init=function(e,L,c,I){B7.prototype.init.call(this,e,L,c);if(L.skipOrPreviewRenderer){if(e=g.Q(L.skipOrPreviewRenderer,sJ))c=new hW(this.api,this.layoutId,this.interactionLoggingClientData,this.A7,this.K,this.D),c.jl(this.t7),c.init(X7("skip-button"),e,this.macros),g.l(this,c);if(e=g.Q(L.skipOrPreviewRenderer,sJ))var B=e.skipOffsetMilliseconds}L.brandInteractionRenderer&&(e=L.brandInteractionRenderer.brandInteractionRenderer,c=new KN(this.api,this.layoutId,this.interactionLoggingClientData,this.A7), c.jl(this.Ve),c.init(X7("instream-user-sentiment"),e,this.macros),g.l(this,c));if(e=g.Q(L,w2N))if(e=g.Q(e,w2N))c=new XO(this.api,this.layoutId,this.interactionLoggingClientData,this.A7,this.K,!!L.showWithoutLinkedMediaLayout),g.l(this,c),c.jl(this.j),c.init(X7("flyout-cta"),e,this.macros);I=I&&I.videoAdDurationSeconds;L.adBadgeRenderer&&(c=L.adBadgeRenderer,e=g.Q(c,Yh),e!=null?(c=new AW(this.api,this.layoutId,this.interactionLoggingClientData,this.A7,!1),g.l(this,c),c.jl(this.X),c.init(X7("ad-badge"), e,this.macros),this.Z=c.element):(e=c.simpleAdBadgeRenderer,e==null&&(e={text:{text:"Ad",isTemplated:!1}}),c=new u1(this.api,this.layoutId,this.interactionLoggingClientData,this.A7,!0),g.l(this,c),c.jl(this.X),c.init(X7("simple-ad-badge"),e,this.macros)));L.adPodIndex&&(e=g.Q(L.adPodIndex,$Q7),e!=null&&(c=new Fn(this.api,this.layoutId,this.interactionLoggingClientData,this.A7),g.l(this,c),c.jl(this.X),c.init(X7("ad-pod-index"),e)));L.adDurationRemaining&&!L.showWithoutLinkedMediaLayout&&(e=L.adDurationRemaining.adDurationRemainingRenderer, e==null&&(e={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),I=new M2(this.api,this.layoutId,this.interactionLoggingClientData,this.A7,this.K,I,!1),g.l(this,I),I.jl(this.X),I.init(X7("ad-duration-remaining"),e,this.macros));L.adInfoRenderer&&(I=g.Q(L.adInfoRenderer,dK))&&(e=new $u(this.api,this.layoutId,this.interactionLoggingClientData,this.A7,this.element,void 0,!1),g.l(this,e),this.Z!==null?this.X.insertBefore(e.element,this.Z.nextSibling):e.jl(this.X), e.init(X7("ad-info-hover-text-button"),I,this.macros));L.visitAdvertiserRenderer&&(e=g.Q(L.visitAdvertiserRenderer,g.E5))&&(c=tt$(this)&&this.G?this.G:this.X)&&(I=new Rr(this.api,this.layoutId,this.interactionLoggingClientData,this.A7),g.l(this,I),I.jl(c),I.init(X7("visit-advertiser"),e,this.macros),ab(I.element),e=yw(I.element),mn(I.element,e+" This link opens in new tab"));!(I=this.api.S())||g.nl(I)||g.Uh(I)||I.controlsType!="3"&&!I.disableOrganicUi||(B=new g9(this.api,this.K,B,!1),B.jl(this.Y9), g.l(this,B));L.adDisclosureBannerRenderer&&(L=g.Q(L.adDisclosureBannerRenderer,p2M))&&(B=new b1(this.api,this.layoutId,this.interactionLoggingClientData,this.A7),B.jl(this.h7),B.init(X7("ad-disclosure-banner"),L),g.l(this,B));this.api.S().Y("enable_updated_html5_player_focus_style")&&g.Y4(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; kw.prototype.clear=function(){this.hide()};g.JW.prototype.flush=function(e,L){e=e===void 0?[]:e;L=L===void 0?!1:L;if(g.uL("enable_client_streamz_web")){e=g.f(e);for(var c=e.next();!c.done;c=e.next())c=nOT(c.value),this.X&&b6(c,om,2,this.X),c={serializedIncrementBatch:g.GM(c.Z())},g.et("streamzIncremented",c,{sendIsolatedPayload:L})}}; g.z(qL$,g.JW);var pev=new Map;VL.prototype.set=function(e,L,c){c=c!==void 0?Date.now()+c:void 0;this.X.set(e,L,c)}; VL.prototype.get=function(e){return this.X.get(e)}; VL.prototype.remove=function(e){this.X.remove(e)};var WdJ=null;var yL=null,ZF=null,pq=null,fQx=null;g.IL("yt.www.ads.eventcache.getLastCompanionData",function(){return yL}); g.IL("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.IL("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return ZF}); g.IL("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return pq}); g.IL("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return fQx});var FdM=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);$w.prototype.handleResponse=function(e,L){if(!L)throw Error("request needs to be passed into ConsistencyService");var c,I;L=((c=L.h8.context)==null?void 0:(I=c.request)==null?void 0:I.consistencyTokenJars)||[];var B;(e=(B=e.responseContext)==null?void 0:B.consistencyTokenJar)&&this.replace(L,e)}; $w.prototype.replace=function(e,L){e=g.f(e);for(var c=e.next();!c.done;c=e.next())delete this.X[c.value.encryptedTokenJarContents];i$f(this,L)};var nC9=window.location.hostname.split(".").slice(-2).join("."),m0;HZ.getInstance=function(){m0=g.BU("yt.clientLocationService.instance");m0||(m0=new HZ,g.IL("yt.clientLocationService.instance",m0));return m0}; g.M=HZ.prototype; g.M.setLocationOnInnerTubeContext=function(e){e.client||(e.client={});if(this.X)e.client.locationInfo||(e.client.locationInfo={}),e.client.locationInfo.latitudeE7=Math.floor(this.X.coords.latitude*1E7),e.client.locationInfo.longitudeE7=Math.floor(this.X.coords.longitude*1E7),e.client.locationInfo.horizontalAccuracyMeters=Math.round(this.X.coords.accuracy),e.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.Z||this.locationPlayabilityToken)e.client.locationPlayabilityToken=this.Z|| this.locationPlayabilityToken}; g.M.handleResponse=function(e){var L;e=(L=e.responseContext)==null?void 0:L.locationPlayabilityToken;e!==void 0&&(this.locationPlayabilityToken=e,this.X=void 0,g.Zu("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=jF(this))&&this.localStorage.set("yt-location-playability-token",e,15552E3):g.GZ("YT_CL",JSON.stringify({loctok:e}),15552E3,nC9,!0))}; g.M.clearLocationPlayabilityToken=function(e){e==="TVHTML5"?(this.localStorage=jF(this))&&this.localStorage.remove("yt-location-playability-token"):g.DM("YT_CL");this.Z=void 0;this.K!==-1&&(clearTimeout(this.K),this.K=-1)}; g.M.getCurrentPositionFromGeolocation=function(){var e=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var L=!1,c=1E4;g.Zu("INNERTUBE_CLIENT_NAME")==="MWEB"&&(L=!0,c=15E3);return new Promise(function(I,B){navigator.geolocation.getCurrentPosition(function(x){e.X=x;I(x)},function(x){B(x)},{enableHighAccuracy:L, maximumAge:0,timeout:c})})}; g.M.createUnpluggedLocationInfo=function(e){var L={};e=e.coords;if(e==null?0:e.latitude)L.latitudeE7=Math.floor(e.latitude*1E7);if(e==null?0:e.longitude)L.longitudeE7=Math.floor(e.longitude*1E7);if(e==null?0:e.accuracy)L.locationRadiusMeters=Math.round(e.accuracy);return L}; g.M.createLocationInfo=function(e){var L={};e=e.coords;if(e==null?0:e.latitude)L.latitudeE7=Math.floor(e.latitude*1E7);if(e==null?0:e.longitude)L.longitudeE7=Math.floor(e.longitude*1E7);return L};g.M=wKr.prototype;g.M.contains=function(e){return Object.prototype.hasOwnProperty.call(this.X,e)}; g.M.get=function(e){if(this.contains(e))return this.X[e]}; g.M.set=function(e,L){this.X[e]=L}; g.M.N4=function(){return Object.keys(this.X)}; g.M.remove=function(e){delete this.X[e]};PZ.prototype.getModuleId=function(e){return e.serviceId.getModuleId()}; PZ.prototype.get=function(e){a:{var L=this.mappings.get(e.toString());switch(L.type){case "mapping":e=L.value;break a;case "factory":L=L.value();this.mappings.set(e.toString(),{type:"mapping",value:L});e=L;break a;default:e=t0(L)}}return e}; PZ.prototype.registerService=function(e,L){this.mappings.set(e.toString(),{type:"mapping",value:L});return e}; new PZ;var yl={},Jg$=(yl.WEB_UNPLUGGED="^unplugged/",yl.WEB_UNPLUGGED_ONBOARDING="^unplugged/",yl.WEB_UNPLUGGED_OPS="^unplugged/",yl.WEB_UNPLUGGED_PUBLIC="^unplugged/",yl.WEB_CREATOR="^creator/",yl.WEB_KIDS="^kids/",yl.WEB_EXPERIMENTS="^experiments/",yl.WEB_MUSIC="^music/",yl.WEB_REMIX="^music/",yl.WEB_MUSIC_EMBEDDED_PLAYER="^music/",yl.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",yl);Us.prototype.B=function(e,L,c){L=L===void 0?{}:L;c=c===void 0?B4:c;var I={context:g.l1(e.clickTrackingParams,!1,this.G)};var B=this.K(e);if(B){this.X(I,B,L);var x;L=g.d9(this.Z());(B=(x=g.Q(e.commandMetadata,g.gS))==null?void 0:x.apiUrl)&&(L=B);x=M1c(wa(L));e=Object.assign({},{command:e},void 0);I={input:x,Po:JF(x),h8:I,config:e};I.config.le?I.config.le.identity=c:I.config.le={identity:c};return I}c=new g.yu("Error: Failed to create Request from Command.",e);g.A9(c)}; g.RH.Object.defineProperties(Us.prototype,{G:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.z(Es,Us);g.z(Xn,Es);Xn.prototype.B=function(){return{input:"/getDatasyncIdsEndpoint",Po:JF("/getDatasyncIdsEndpoint","GET"),h8:{}}}; Xn.prototype.Z=function(){return[]}; Xn.prototype.K=function(){}; Xn.prototype.X=function(){};var erJ={},ukx=(erJ.GET_DATASYNC_IDS=QL(Xn),erJ);var Z_={},LRN=(Z_["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",Z_["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",Z_["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",Z_["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",Z_["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",Z_["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",Z_["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", Z_["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",Z_["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",Z_["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",Z_["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",Z_["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",Z_["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",Z_["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",Z_["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", Z_["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",Z_["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",Z_["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",Z_["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",Z_["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",Z_["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",Z_["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", Z_["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",Z_.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",Z_["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",Z_["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",Z_["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",Z_["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",Z_["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",Z_["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", Z_["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",Z_["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",Z_["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",Z_["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",Z_["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",Z_["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",Z_["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",Z_["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",Z_["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",Z_["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",Z_.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",Z_["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",Z_["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",Z_["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",Z_["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",Z_["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",Z_["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",Z_["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",Z_["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",Z_["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",Z_["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",Z_["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",Z_["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",Z_["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",Z_["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",Z_["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",Z_["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",Z_["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",Z_["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",Z_["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",Z_["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",Z_["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", Z_["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",Z_["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",Z_["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",Z_["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",Z_["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",Z_["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",Z_["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",Z_["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",Z_["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", Z_["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",Z_["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",Z_["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",Z_["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",Z_["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",Z_["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",Z_["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",Z_["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", Z_),p4={},Z$J=(p4.auto_search="LATENCY_ACTION_AUTO_SEARCH",p4.ad_to_ad="LATENCY_ACTION_AD_TO_AD",p4.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",p4.app_startup="LATENCY_ACTION_APP_STARTUP",p4.browse="LATENCY_ACTION_BROWSE",p4.cast_splash="LATENCY_ACTION_CAST_SPLASH",p4.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",p4.channels="LATENCY_ACTION_CHANNELS",p4.chips="LATENCY_ACTION_CHIPS",p4.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",p4.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", p4.editor="LATENCY_ACTION_EDITOR",p4.embed="LATENCY_ACTION_EMBED",p4.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",p4.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",p4.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",p4.explore="LATENCY_ACTION_EXPLORE",p4.favorites="LATENCY_ACTION_FAVORITES",p4.home="LATENCY_ACTION_HOME",p4.inboarding="LATENCY_ACTION_INBOARDING",p4.landing="LATENCY_ACTION_LANDING",p4.library="LATENCY_ACTION_LIBRARY",p4.live= "LATENCY_ACTION_LIVE",p4.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",p4.management="LATENCY_ACTION_MANAGEMENT",p4.mini_app="LATENCY_ACTION_MINI_APP_PLAY",p4.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",p4.onboarding="LATENCY_ACTION_ONBOARDING",p4.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",p4.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",p4.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",p4.player_att="LATENCY_ACTION_PLAYER_ATTESTATION", p4.prebuffer="LATENCY_ACTION_PREBUFFER",p4.prefetch="LATENCY_ACTION_PREFETCH",p4.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",p4.profile_switcher="LATENCY_ACTION_LOGIN",p4.projects="LATENCY_ACTION_PROJECTS",p4.reel_watch="LATENCY_ACTION_REEL_WATCH",p4.results="LATENCY_ACTION_RESULTS",p4.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",p4.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",p4.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",p4.review="LATENCY_ACTION_REVIEW",p4.search_overview_answer= "LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",p4.search_ui="LATENCY_ACTION_SEARCH_UI",p4.search_suggest="LATENCY_ACTION_SUGGEST",p4.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",p4.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",p4.seek="LATENCY_ACTION_PLAYER_SEEK",p4.settings="LATENCY_ACTION_SETTINGS",p4.store="LATENCY_ACTION_STORE",p4.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",p4.tenx="LATENCY_ACTION_TENX",p4.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",p4.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD", p4.watch="LATENCY_ACTION_WATCH",p4.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",p4["watch,watch7"]="LATENCY_ACTION_WATCH",p4["watch,watch7_html5"]="LATENCY_ACTION_WATCH",p4["watch,watch7ad"]="LATENCY_ACTION_WATCH",p4["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",p4.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",p4.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",p4.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",p4.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",p4.networkless_performance= "LATENCY_ACTION_NETWORKLESS_PERFORMANCE",p4.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",p4.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",p4.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",p4);Object.assign(Z$J,LRN);g.z(xE,xR);var ni6=new of("aft-recorded",xE);var cj7=g.LZ.ytLoggingGelSequenceIdObj_||{};g.IL("ytLoggingGelSequenceIdObj_",cj7);var r_=g.LZ.ytLoggingLatencyUsageStats_||{};g.IL("ytLoggingLatencyUsageStats_",r_);oN.prototype.tick=function(e,L,c,I){hD(this,"tick_"+e+"_"+L)||g.et("latencyActionTicked",{tickName:e,clientActionNonce:L},{timestamp:c,cttAuthInfo:I})}; oN.prototype.info=function(e,L,c){var I=Object.keys(e).join("");hD(this,"info_"+I+"_"+L)||(e=Object.assign({},e),e.clientActionNonce=L,g.et("latencyActionInfo",e,{cttAuthInfo:c}))}; oN.prototype.jspbInfo=function(e,L,c){for(var I="",B=0;B=B.length?(L.append(B),e-=B.length):e?(L.append(new Uint8Array(B.buffer,B.byteOffset,e)),c.append(new Uint8Array(B.buffer,B.byteOffset+e,B.length-e)),e=0):c.append(B);return{TD:L,Xo:c}}; ej.prototype.isFocused=function(e){return e>=this.Z&&e=64&&(this.j.set(e.subarray(0,64-this.K),this.K),L=64-this.K,this.K=0,L9n(this,this.j,0));for(;L+64<=c;L+=64)L9n(this,e,L);L=this.start&&(e=2&&c.ssdaiAdsConfig&&Ir("Unexpected ad placement renderers length",e.slot,null,{length:I.length});var B;((B=c.adSlots)==null?0:B.some(function(x){var S,h;return((S=g.Q(x,YP))==null?void 0:(h=S.adSlotMetadata)==null?void 0:h.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||I.some(function(x){var S,h,R,u; return!!((S=x.renderer)==null?0:(h=S.linearAdSequenceRenderer)==null?0:(R=h.linearAds)==null?0:R.length)||!((u=x.renderer)==null||!u.instreamVideoAdRenderer)})||bER(e)})}; lh.prototype.XX=function(){hCn(this.X)};Pq.prototype.XA=function(){var e=this;r9f(this.K,function(){var L=Hv(e.slot.clientMetadata,"metadata_type_ad_break_request_data");return L.cueProcessedMs?e.X.get().fetch({Y2:L.getAdBreakUrl,FX:new g.pC(L.Zz,L.Kw),cueProcessedMs:L.cueProcessedMs}):e.X.get().fetch({Y2:L.getAdBreakUrl,FX:new g.pC(L.Zz,L.Kw)})})}; Pq.prototype.XX=function(){hCn(this.K)};Qq.prototype.XA=function(){var e=this.slot.clientMetadata,L,c=(L=this.slot.fulfilledLayout)!=null?L:Hv(e,"metadata_type_fulfilled_layout");jpJ(this.callback,this.slot,c)}; Qq.prototype.XX=function(){cq(this.callback,this.slot,new K("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")};UZ.prototype.build=function(e,L){return L.fulfilledLayout||dw(L,{zI:["metadata_type_fulfilled_layout"]})?new Qq(e,L):this.Z(e,L)};g.z(EZ,UZ); EZ.prototype.Z=function(e,L){if(dw(L,{zI:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new lh(e,L,this.X,this.K,this.hm,this.ZY,this.Tm,this.Be,this.aI);if(dw(L,{zI:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new Pq(e,L,this.X,this.K,this.hm,this.ZY);throw new K("Unsupported slot with type: "+L.slotType+" and client metadata: "+lN(L.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.z(X5,UZ);X5.prototype.Z=function(e,L){throw new K("Unsupported slot with type: "+L.slotType+" and client metadata: "+lN(L.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.M=iEH.prototype;g.M.JK=function(){return this.slot}; g.M.FM=function(){return this.layout}; g.M.init=function(){}; g.M.release=function(){}; g.M.startRendering=function(e){if(e.layoutId!==this.layout.layoutId)this.callback.Xc(this.slot,e,new $K("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 L=Hv(e.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.Hy(this.slot,e),Hi$(this.Z, this.slot,L)):Ir("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,e)}}; g.M.L9=function(e,L){e.layoutId!==this.layout.layoutId?this.callback.Xc(this.slot,e,new $K("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.Gy(this.slot,e,L),ggR(this),khf(this))};g.z(Lz,g.Yg);g.M=Lz.prototype;g.M.JK=function(){return this.K.slot}; g.M.FM=function(){return this.K.layout}; g.M.init=function(){this.Z.get().addListener(this)}; g.M.release=function(){this.Z.get().removeListener(this);this.dispose()}; g.M.zM=function(){}; g.M.Dh=function(){}; g.M.xL=function(){}; g.M.jJ=function(){}; g.M.startRendering=function(e){var L=this;ec(this.K,e,function(){return void L.z9()})}; g.M.z9=function(){this.Z.get().z9(this.X)}; g.M.L9=function(e,L){var c=this;ec(this.K,e,function(){var I=c.Z.get();t$c(I,c.X,3);c.X=[];c.callback.Gy(c.slot,e,L)})}; g.M.KS=function(){this.Z.We()||this.Z.get().removeListener(this);g.Yg.prototype.KS.call(this)}; g.RH.Object.defineProperties(Lz.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.K.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.K.layout}}});hE.prototype.iz=function(e,L){L=L===void 0?!1:L;var c=(this.Z.get(e)||[]).concat();if(L=L&&VBr(e)){var I=this.Z.get(L);I&&c.push.apply(c,g.V(I))}tE(this,e,c);this.X.add(e);L&&this.X.add(L)}; hE.prototype.AK=function(e,L){L=L===void 0?!1:L;if(!this.X.has(e)){var c=L&&VBr(e);c&&(L=!this.X.has(c));this.iz(e,L)}};g.z(NoH,KE);g.z(Mi,Lz);g.M=Mi.prototype;g.M.Zj=function(e,L){xf("ads-engagement-panel-layout",e,this.j.get().ZJ,this.Tm.get(),this.G,this.B,this.JK(),this.FM(),L)}; g.M.startRendering=function(e){I0(this.nS,this.JK(),this.FM(),g.Q(this.FM().renderingContent,iH),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(L,c,I,B,x){return new NoH(L,c,I,B,x)},this.X); Lz.prototype.startRendering.call(this,e)}; g.M.Hy=function(e,L){this.B===L.layoutId&&(this.G===null?this.G=this.Tm.get().V9():Ir("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.M.Gy=function(){}; g.M.lm=function(){}; g.M.Pg=function(){}; g.M.wM=function(){}; g.M.ya=function(){}; g.M.WM=function(){}; g.M.o9=function(){}; g.M.MO=function(){}; g.M.zV=function(){}; g.M.Gr=function(){}; g.M.Aj=function(){}; g.M.KS=function(){eh(this.EY(),this);Lz.prototype.KS.call(this)};g.z(y96,KE);g.z(zH,Lz);g.M=zH.prototype;g.M.Zj=function(e,L){xf("banner-image",e,this.j.get().ZJ,this.Tm.get(),this.G,this.B,this.JK(),this.FM(),L)}; g.M.startRendering=function(e){I0(this.nS,this.JK(),this.FM(),g.Q(this.FM().renderingContent,F6),this.callback,"metadata_type_banner_image_layout_view_model",function(L,c,I,B,x){return new y96(L,c,I,B,x)},this.X); Lz.prototype.startRendering.call(this,e)}; g.M.Hy=function(e,L){this.B===L.layoutId&&(this.G===null?this.G=this.Tm.get().V9():Ir("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.M.Gy=function(){}; g.M.lm=function(){}; g.M.Pg=function(){}; g.M.wM=function(){}; g.M.ya=function(){}; g.M.WM=function(){}; g.M.o9=function(){}; g.M.MO=function(){}; g.M.zV=function(){}; g.M.Gr=function(){}; g.M.Aj=function(){}; g.M.KS=function(){eh(this.EY(),this);Lz.prototype.KS.call(this)};g.z(vx,KE);g.z(fz,Lz);g.M=fz.prototype;g.M.Zj=function(e,L){xf("action-companion",e,this.j.get().ZJ,this.Tm.get(),this.G,this.B,this.JK(),this.FM(),L)}; g.M.startRendering=function(e){I0(this.nS,this.JK(),this.FM(),g.Q(this.FM().renderingContent,vf),this.callback,"metadata_type_action_companion_ad_renderer",function(L,c,I,B,x){return new vx(L,c,I,B,x)},this.X); Lz.prototype.startRendering.call(this,e)}; g.M.Hy=function(e,L){L.layoutId===this.layout.layoutId?this.nS.AK("impression"):this.B===L.layoutId&&(this.G===null?this.G=this.Tm.get().V9():Ir("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.M.Gy=function(){}; g.M.lm=function(){}; g.M.Pg=function(){}; g.M.wM=function(){}; g.M.ya=function(){}; g.M.WM=function(){}; g.M.o9=function(){}; g.M.MO=function(){}; g.M.zV=function(){}; g.M.Gr=function(){}; g.M.Aj=function(){}; g.M.KS=function(){eh(this.EY(),this);Lz.prototype.KS.call(this)};g.z($yf,KE);g.z(AE,Lz);g.M=AE.prototype;g.M.Zj=function(e,L){xf("image-companion",e,this.j.get().ZJ,this.Tm.get(),this.G,this.B,this.JK(),this.FM(),L)}; g.M.startRendering=function(e){I0(this.nS,this.JK(),this.FM(),g.Q(this.FM().renderingContent,fP),this.callback,"metadata_type_image_companion_ad_renderer",function(L,c,I,B,x){return new $yf(L,c,I,B,x)},this.X); Lz.prototype.startRendering.call(this,e)}; g.M.Hy=function(e,L){L.layoutId===this.layout.layoutId?this.nS.AK("impression"):this.B===L.layoutId&&(this.G===null?this.G=this.Tm.get().V9():Ir("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.M.Gy=function(){}; g.M.lm=function(){}; g.M.Pg=function(){}; g.M.wM=function(){}; g.M.ya=function(){}; g.M.WM=function(){}; g.M.o9=function(){}; g.M.MO=function(){}; g.M.zV=function(){}; g.M.Gr=function(){}; g.M.Aj=function(){}; g.M.KS=function(){eh(this.EY(),this);Lz.prototype.KS.call(this)};g.z(HEr,KE);g.z(FQ,Lz);g.M=FQ.prototype;g.M.Zj=function(e,L){xf("shopping-companion",e,this.j.get().ZJ,this.Tm.get(),this.G,this.B,this.JK(),this.FM(),L)}; g.M.startRendering=function(e){I0(this.nS,this.JK(),this.FM(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(L,c,I,B,x){return new HEr(L,c,I,B,x)},this.X); Lz.prototype.startRendering.call(this,e)}; g.M.Hy=function(e,L){L.layoutId===this.layout.layoutId?this.nS.AK("impression"):this.B===L.layoutId&&(this.G===null?this.G=this.Tm.get().V9():Ir("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.M.Gy=function(){}; g.M.lm=function(){}; g.M.Pg=function(){}; g.M.wM=function(){}; g.M.ya=function(){}; g.M.WM=function(){}; g.M.o9=function(){}; g.M.MO=function(){}; g.M.zV=function(){}; g.M.Gr=function(){}; g.M.Aj=function(){}; g.M.KS=function(){eh(this.EY(),this);Lz.prototype.KS.call(this)};g.z(ii,Lz);g.M=ii.prototype;g.M.startRendering=function(e){I0(this.nS,this.JK(),this.FM(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(L,c,I,B,x){return new vx(L,c,I,B,x)},this.X); Lz.prototype.startRendering.call(this,e)}; g.M.Hy=function(){}; g.M.Gy=function(){}; g.M.lm=function(){}; g.M.Pg=function(){}; g.M.wM=function(){}; g.M.ya=function(){}; g.M.WM=function(){}; g.M.o9=function(){}; g.M.MO=function(){}; g.M.zV=function(){}; g.M.Gr=function(){}; g.M.Aj=function(){}; g.M.KS=function(){eh(this.EY(),this);Lz.prototype.KS.call(this)}; g.M.Zj=function(){};g.M=Egc.prototype;g.M.JK=function(){return this.slot}; g.M.FM=function(){return this.layout}; g.M.init=function(){this.Be.get().addListener(this);this.Be.get().F8.push(this);var e=Hv(this.layout.clientMetadata,"metadata_type_video_length_seconds"),L=Hv(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");o0(this.layout.hK)&&rl(this.e5.get(),this.layout.layoutId,{NL:L,w5:e,listener:this})}; g.M.release=function(){this.Be.get().removeListener(this);S2c(this.Be.get(),this);o0(this.layout.hK)&&h3(this.e5.get(),this.layout.layoutId)}; g.M.startRendering=function(e){this.callback.Hy(this.slot,e)}; g.M.L9=function(e,L){wWr(this.ZY.get())&&!this.X&&(this.nS.AK("abandon"),this.X=!0);this.callback.Gy(this.slot,e,L)}; g.M.J_=function(e){switch(e.id){case "part2viewed":this.nS.AK("start");this.nS.AK("impression");break;case "videoplaytime25":this.nS.AK("first_quartile");break;case "videoplaytime50":this.nS.AK("midpoint");break;case "videoplaytime75":this.nS.AK("third_quartile");break;case "videoplaytime100":wWr(this.ZY.get())?this.X||(this.nS.AK("complete"),this.X=!0):this.nS.AK("complete");Wx(this.nS)&&qi(this.nS,Infinity,!0);JCx(this.ZY.get())&&bi(this.K,Infinity,!0);break;case "engagedview":Wx(this.nS)||this.nS.AK("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:Ir("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.M.onVolumeChange=function(){}; g.M.xN=function(){}; g.M.t9=function(){}; g.M.Qy=function(){}; g.M.onFullscreenToggled=function(){}; g.M.QZ=function(){}; g.M.FC=function(){}; g.M.PT=function(e){JCx(this.ZY.get())&&bi(this.K,e*1E3,!1);Wx(this.nS)&&qi(this.nS,e*1E3,!1)}; g.M.dP=function(){}; g.M.MV=function(){this.nS.AK("active_view_measurable")}; g.M.PG=function(){this.nS.AK("active_view_viewable")}; g.M.wv=function(){this.nS.AK("active_view_fully_viewable_audible_half_duration")}; g.M.tJ=function(){this.nS.AK("audio_measurable")}; g.M.WG=function(){this.nS.AK("audio_audible")};g.z(GH,Lz);g.M=GH.prototype;g.M.init=function(){Lz.prototype.init.call(this);var e=Hv(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),L={adsClientData:this.layout.wT};this.X.push(new tW(e,this.layout.layoutId,Hv(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),L,!0))}; g.M.jj=function(){this.G||this.Be.get().resumeVideo(1)}; g.M.startRendering=function(e){Lz.prototype.startRendering.call(this,e);MI(this.Be.get(),"ad-showing");this.callback.Hy(this.slot,e);this.B.mD=this}; g.M.L9=function(e,L){Lz.prototype.L9.call(this,e,L);zz(this.Be.get(),"ad-showing");cj(this.B,this)}; g.M.Zj=function(e){switch(e){case "ad-info-icon-button":(this.G=this.Be.get().bl(1))||this.Be.get().pauseVideo();break;case "visit-advertiser":this.Be.get().pauseVideo()}}; g.M.KS=function(){Lz.prototype.KS.call(this)};g.z(g4,KE);g.z(kf,Lz);g.M=kf.prototype;g.M.startRendering=function(e){I0(this.nS,this.JK(),this.FM(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(L,c,I,B,x){return new g4(L,c,I,B,x)},this.X); Lz.prototype.startRendering.call(this,e)}; g.M.Hy=function(){}; g.M.Gy=function(){}; g.M.lm=function(){}; g.M.Pg=function(){}; g.M.wM=function(){}; g.M.ya=function(){}; g.M.WM=function(){}; g.M.o9=function(){}; g.M.MO=function(){}; g.M.zV=function(){}; g.M.Gr=function(){}; g.M.Aj=function(){}; g.M.KS=function(){eh(this.EY(),this);Lz.prototype.KS.call(this)}; g.M.Zj=function(){};g.z(D4,KE);g.z(w4,Lz);w4.prototype.init=function(){Lz.prototype.init.call(this);this.X.push(new D4(g.Q(this.layout.renderingContent,$P),this.layout.layoutId,{adsClientData:this.layout.wT}))}; w4.prototype.Zj=function(){lV(this.G.get(),this.B)&&Bx(this.Tm.get(),3)}; w4.prototype.startRendering=function(e){Lz.prototype.startRendering.call(this,e);this.callback.Hy(this.slot,e)}; w4.prototype.KS=function(){Lz.prototype.KS.call(this)};g.z(JE,KE);g.z(V1,Lz);V1.prototype.init=function(){Lz.prototype.init.call(this);var e=g.Q(this.layout.renderingContent,Q1)||Hv(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),L=cx(this.nS);this.X.push(new JE(e,L,this.layout.layoutId,{adsClientData:this.layout.wT},!0,!0))}; V1.prototype.startRendering=function(e){Lz.prototype.startRendering.call(this,e);this.callback.Hy(this.slot,e)}; V1.prototype.Zj=function(e,L){if(L===this.layout.layoutId)switch(e){case "skip-button":var c;(e=(c=Hv(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:c.current)&&e.nW(this.JK(),this.layout)}}; V1.prototype.KS=function(){Lz.prototype.KS.call(this)};a0.prototype.build=function(e,L,c,I){if(Cz(I,{zI:["metadata_type_ad_break_response_data"],fb:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new iEH(e,c,I,this.K,this.Z,this.X);throw new $K("Unsupported layout with type: "+I.layoutType+" and client metadata: "+lN(I.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.z(YIR,KE);g.z(Ni,Lz);g.M=Ni.prototype;g.M.Zj=function(e,L){xf("ads-engagement-panel",e,this.j.get().ZJ,this.Tm.get(),this.G,this.B,this.JK(),this.FM(),L)}; g.M.startRendering=function(e){I0(this.nS,this.JK(),this.FM(),g.Q(this.FM().renderingContent,A8),this.callback,"metadata_type_ads_engagement_panel_renderer",function(L,c,I,B,x){return new YIR(L,c,I,B,x)},this.X); Lz.prototype.startRendering.call(this,e)}; g.M.Hy=function(e,L){L.layoutId===this.layout.layoutId?this.nS.AK("impression"):this.B===L.layoutId&&(this.G===null?this.G=this.Tm.get().V9():Ir("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.M.Gy=function(){}; g.M.lm=function(){}; g.M.Pg=function(){}; g.M.wM=function(){}; g.M.ya=function(){}; g.M.WM=function(){}; g.M.o9=function(){}; g.M.MO=function(){}; g.M.zV=function(){}; g.M.Gr=function(){}; g.M.Aj=function(){}; g.M.KS=function(){eh(this.EY(),this);Lz.prototype.KS.call(this)};g.z(m5,Lz);g.M=m5.prototype;g.M.Zj=function(e,L){xf("top-banner-image-text-icon-buttoned",e,this.j.get().ZJ,this.Tm.get(),this.G,this.B,this.JK(),this.FM(),L)}; g.M.startRendering=function(e){I0(this.nS,this.JK(),this.FM(),g.Q(this.FM().renderingContent,bH),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(L,c,I,B,x){return new g4(L,c,I,B,x)},this.X); Lz.prototype.startRendering.call(this,e)}; g.M.Hy=function(e,L){this.B===L.layoutId&&(this.G===null?this.G=this.Tm.get().V9():Ir("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.M.Gy=function(){}; g.M.lm=function(){}; g.M.Pg=function(){}; g.M.wM=function(){}; g.M.ya=function(){}; g.M.WM=function(){}; g.M.o9=function(){}; g.M.MO=function(){}; g.M.zV=function(){}; g.M.Gr=function(){}; g.M.Aj=function(){}; g.M.KS=function(){eh(this.EY(),this);Lz.prototype.KS.call(this)};LDM.prototype.build=function(e,L,c,I){if(Cz(I,ngx())||g.Q(I.renderingContent,A8)!==void 0)return new Ni(e,c,I,this.D6,this.Tm,this.EY,this.e5,this.X);if(Cz(I,pJc())||g.Q(I.renderingContent,vf)!==void 0)return new fz(e,c,I,this.D6,this.Tm,this.EY,this.e5,this.X);if(Cz(I,joJ())||g.Q(I.renderingContent,fP)!==void 0)return new AE(e,c,I,this.D6,this.Tm,this.EY,this.e5,this.X);if(Cz(I,laf()))return new FQ(e,c,I,this.D6,this.Tm,this.EY,this.e5,this.X);if(Cz(I,Uyc()))return new ii(e,c,I,this.D6,this.Tm,this.EY, this.e5,this.X);if(Cz(I,ZER())||g.Q(I.renderingContent,F6)!==void 0)return new zH(e,c,I,this.D6,this.Tm,this.EY,this.e5,this.X);if(Cz(I,esr())||g.Q(I.renderingContent,bH)!==void 0)return new m5(e,c,I,this.D6,this.Tm,this.EY,this.e5,this.X);if(Cz(I,XJJ()))return new kf(e,c,I,this.D6,this.Tm,this.EY,this.e5,this.X);if(Cz(I,myT())||g.Q(I.renderingContent,iH)!==void 0)return new Mi(e,c,I,this.D6,this.Tm,this.EY,this.e5,this.X);throw new $K("Unsupported layout with type: "+I.layoutType+" and client metadata: "+ lN(I.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};cmc.prototype.build=function(e,L,c,I){if(Cz(I,{zI:["metadata_type_linked_player_bytes_layout_id"],fb:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new w4(e,c,I,this.D6,this.Tm,this.X);throw new $K("Unsupported layout with type: "+I.layoutType+" and client metadata: "+lN(I.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.M=Iy$.prototype;g.M.JK=function(){return this.slot}; g.M.FM=function(){return this.layout}; g.M.init=function(){}; g.M.release=function(){}; g.M.startRendering=function(e){e.layoutId!==this.layout.layoutId?this.callback.Xc(this.slot,e,new $K("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.Hy(this.slot,e),this.nS.AK("impression"),x9(this.Ja,e,"normal"))}; g.M.L9=function(e,L){e.layoutId!==this.layout.layoutId?this.callback.Xc(this.slot,e,new $K("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.Gy(this.slot,e,L)};g.M=xwn.prototype;g.M.JK=function(){return this.slot}; g.M.FM=function(){return this.layout}; g.M.init=function(){}; g.M.release=function(){}; g.M.startRendering=function(e){e.layoutId!==this.layout.layoutId?this.callback.Xc(this.slot,e,new $K("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.Hy(this.slot,e),this.nS.AK("impression"),x9(this.Ja,e,"normal"))}; g.M.L9=function(e,L){e.layoutId!==this.layout.layoutId?this.callback.Xc(this.slot,e,new $K("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.Gy(this.slot,e,L)};y1.prototype.build=function(e,L,c,I){if(!this.ZY.get().V.S().Y("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(Cz(I,BJ6()))return new Iy$(e,c,I,this.Tm,this.Ja)}else if(Cz(I,{zI:[],fb:["LAYOUT_TYPE_FORECASTING"]}))return new xwn(e,c,I,this.Tm,this.Ja);throw new $K("Unsupported layout with type: "+I.layoutType+" and client metadata: "+lN(I.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.z(rmT,KE);g.z(Z4,Lz);g.M=Z4.prototype;g.M.init=function(){Lz.prototype.init.call(this);var e=g.Q(this.layout.renderingContent,Px)||Hv(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),L={adsClientData:this.layout.wT};this.X.push(new rmT(e,Hv(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,L))}; g.M.jj=function(){this.G||this.Be.get().resumeVideo(2)}; g.M.startRendering=function(e){Lz.prototype.startRendering.call(this,e);this.callback.Hy(this.slot,e);this.B.mD=this}; g.M.L9=function(e,L){Lz.prototype.L9.call(this,e,L);cj(this.B,this)}; g.M.Zj=function(e,L){if(!Jz(this.ZY.get(),"stop_handling_click_for_non_rendering_overlay_layout")||L===this.layout.layoutId){if(lV(this.j.get(),this.T))switch(e){case "visit-advertiser-link":Bx(this.Tm.get(),3)}switch(e){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.G||this.Be.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.G=this.Be.get().bl(2))||this.Be.get().pauseVideo();break; case "visit-advertiser-link":this.Be.get().pauseVideo();hs$(this).MI();break;case "skip-button":if(e=hs$(this),this.layout.renderingContent&&!y0(this.layout.clientMetadata,"metadata_type_dai")||!e||!e.Qm){var c;(e=(c=Hv(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:c.current)&&e.nW(this.JK(),this.layout)}else Ir("Requesting to skip by LegacyPlayerBytes when components enabled"),e.QY(this.JK(),this.layout)}}}; g.M.KS=function(){Lz.prototype.KS.call(this)};g.z(pz,Lz);g.M=pz.prototype;g.M.init=function(){Lz.prototype.init.call(this);var e=g.Q(this.layout.renderingContent,li)||Hv(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),L={adsClientData:this.layout.wT},c;(c=!!this.layout.renderingContent)||(c=$f(this),c=!(c&&c.Qm));this.X.push(new tW(e,this.layout.layoutId,Hv(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),L,c))}; g.M.jj=function(){this.G||this.Be.get().resumeVideo(2)}; g.M.startRendering=function(e){Lz.prototype.startRendering.call(this,e);this.callback.Hy(this.slot,e);this.B.mD=this}; g.M.L9=function(e,L){Lz.prototype.L9.call(this,e,L);cj(this.B,this)}; g.M.Zj=function(e,L){if(!this.ZY||!Jz(this.ZY.get(),"stop_handling_click_for_non_rendering_overlay_layout")||L===this.layout.layoutId){if(lV(this.j.get(),this.T))switch(e){case "visit-advertiser":Bx(this.Tm.get(),3)}switch(e){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.G||this.Be.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.G=this.Be.get().bl(2))||this.Be.get().pauseVideo();break; case "visit-advertiser":this.Be.get().pauseVideo();$f(this).MI();break;case "skip-button":if(e=$f(this),this.layout.renderingContent&&!y0(this.layout.clientMetadata,"metadata_type_dai")||!e||!e.Qm){var c;(e=(c=Hv(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:c.current)&&e.nW(this.JK(),this.layout)}else Ir("Requesting to skip by LegacyPlayerBytes"),e.QY(this.JK(),this.layout)}}}; g.M.KS=function(){Lz.prototype.KS.call(this)};g.z(uOn,KE);g.z(jc,Lz);g.M=jc.prototype;g.M.startRendering=function(e){var L=this;ec(this.K,e,function(){L.X.push(new uOn(Hv(L.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),e.layoutId,e.wT));L.z9();L.callback.Hy(L.slot,e);g.E(SQ(L.Be.get(),1),512)&&L.callback.Xc(L.JK(),L.FM(),new $K("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.M.FC=function(){}; g.M.QZ=function(e){if(e.state.isError()){var L;this.callback.Xc(this.JK(),this.FM(),new $K("A player error happened during adNotify",{playerErrorCode:(L=e.state.lz)==null?void 0:L.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.M.onFullscreenToggled=function(){}; g.M.t9=function(){}; g.M.Qy=function(){}; g.M.xN=function(){}; g.M.onVolumeChange=function(){}; g.M.J_=function(){}; g.M.dP=function(){}; g.M.Zj=function(){};g.z(ONv,KE);g.z(Hx,Lz);Hx.prototype.init=function(){Lz.prototype.init.call(this);var e=g.Q(this.layout.renderingContent,d4),L=cx(this.nS);this.X.push(new ONv(e,L,this.layout.layoutId,{adsClientData:this.layout.wT}))}; Hx.prototype.startRendering=function(e){Lz.prototype.startRendering.call(this,e);this.callback.Hy(this.slot,e)}; Hx.prototype.Zj=function(e,L){if(L===this.layout.layoutId)switch(e){case "skip-button":var c;(e=(c=Hv(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:c.current)&&e.nW(this.JK(),this.layout)}}; Hx.prototype.KS=function(){Lz.prototype.KS.call(this)};qnJ.prototype.build=function(e,L,c,I){if(e=Ut(e,c,I,this.D6,this.Be,this.Tm,this.K,this.X,this.ZY))return e;throw new $K("Unsupported layout with type: "+I.layoutType+" and client metadata: "+lN(I.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.M=Kz.prototype;g.M.JK=function(){return this.slot}; g.M.FM=function(){return this.layout}; g.M.init=function(){this.Be.get().addListener(this);this.Be.get().F8.push(this);if(this.layout.renderingContent){var e=this.M0.get();e=w1(e,1).NB/1E3}else e=Hv(this.layout.clientMetadata,"metadata_type_video_length_seconds");var L=g.Q(this.layout.renderingContent,yN),c=L?Sc(L.pings):Hv(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");L=L?J9c(L.pings):Hv(this.layout.clientMetadata,"metadata_type_active_view_identifier");o0(this.layout.hK)&&rl(this.e5.get(),this.layout.layoutId, {NL:c,w5:e,listener:this,e2:L})}; g.M.release=function(){this.Be.get().removeListener(this);S2c(this.Be.get(),this);o0(this.layout.hK)&&h3(this.e5.get(),this.layout.layoutId)}; g.M.startRendering=function(e){this.callback.Hy(this.slot,e)}; g.M.L9=function(e,L){Yf(this,"abandon");this.callback.Gy(this.slot,e,L)}; g.M.J_=function(e){switch(e.id){case "part2viewed":this.nS.AK("start");this.nS.AK("impression");break;case "videoplaytime25":this.nS.AK("first_quartile");break;case "videoplaytime50":this.nS.AK("midpoint");break;case "videoplaytime75":this.nS.AK("third_quartile");break;case "videoplaytime100":Yf(this,"complete");Wx(this.nS)&&qi(this.nS,Infinity,!0);break;case "engagedview":Wx(this.nS)||this.nS.AK("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:Ir("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.M.onVolumeChange=function(){}; g.M.xN=function(){}; g.M.t9=function(){}; g.M.Qy=function(){}; g.M.onFullscreenToggled=function(){}; g.M.QZ=function(e){this.X||(g.or(e,4)&&!g.or(e,2)?Ot(this.nS,"pause"):xw(e,4)<0&&!(xw(e,2)<0)&&Ot(this.nS,"resume"))}; g.M.FC=function(){}; g.M.PT=function(e){Wx(this.nS)&&qi(this.nS,e*1E3,!1)}; g.M.dP=function(){Yf(this,"swipe")}; g.M.MV=function(){this.nS.AK("active_view_measurable")}; g.M.PG=function(){this.nS.AK("active_view_viewable")}; g.M.wv=function(){this.nS.AK("active_view_fully_viewable_audible_half_duration")}; g.M.tJ=function(){this.nS.AK("audio_measurable")}; g.M.WG=function(){this.nS.AK("audio_audible")};TJc.prototype.build=function(e,L,c,I){if(c.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.Q(I.renderingContent,yN)!==void 0)return new Kz(e,c,I,this.Be,this.Tm,this.ZY,this.e5,this.M0);L=["metadata_type_ad_placement_config"];for(var B=g.f(R0()),x=B.next();!x.done;x=B.next())L.push(x.value);if(Cz(I,{zI:L,fb:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return c.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new Kz(e,c,I,this.Be,this.Tm,this.ZY,this.e5,this.M0):new Egc(e,c,I,this.Be,this.Tm, this.T_,this.ZY,this.e5);throw new $K("Unsupported layout with type: "+I.layoutType+" and client metadata: "+lN(I.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var c1={contentCpn:"",wR:new Map};iNn.prototype.Z6=function(e,L){var c={};L=Object.assign({},L,(c.cc=this.zr.Wc(),c));this.zr.V.sW(e,L)};var vrN,Pj; vrN={t9M:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",Ly7:"AUTHENTICATION_MALFORMED",i17:"AUTHENTICATION_MISSING",r9$:"BAD_REQUEST",KKS:"CAST_SESSION_DEVICE_MISMATCHED",ZpS:"CAST_SESSION_VIDEO_MISMATCHED",ese:"CAST_TOKEN_EXPIRED",GYY:"CAST_TOKEN_FAILED",qUd:"CAST_TOKEN_MALFORMED",USM:"CGI_PARAMS_MALFORMED",IVW:"CGI_PARAMS_MISSING",dSS:"DEVICE_FALLBACK",egY:"GENERIC_WITH_LINK_AND_CPN",GNM:"ERROR_HDCP",q9Y:"LICENSE",IJl:"VIDEO_UNAVAILABLE",Y9$:"FORMAT_UNAVAILABLE",WRd:"GEO_FAILURE", H2_:"HTML5_AUDIO_RENDERER_ERROR",mM7:"GENERIC_WITHOUT_LINK",fJl:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",NP9:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",S9m:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",b27:"HTML5_SPS_UMP_STATUS_REJECTED",hv_:"INVALID_DRM_MESSAGE",mDM:"PURCHASE_NOT_FOUND",f2e:"PURCHASE_REFUNDED",xDe:"RENTAL_EXPIRED",som:"RETRYABLE_ERROR",IeW:"SERVER_ERROR",yRY:"SIGNATURE_EXPIRED",CCw:"STOPPED_BY_ANOTHER_PLAYBACK",OVd:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",gwl:"STREAMING_NOT_ALLOWED", Ffq:"STREAM_LICENSE_NOT_FOUND",HVd:"TOO_MANY_REQUESTS",mZm:"TOO_MANY_REQUESTS_WITH_LINK",fem:"TOO_MANY_STREAMS_PER_ENTITLEMENT",N7$:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",VeW:"VIDEO_FORBIDDEN",kFW:"VIDEO_NOT_FOUND",hsW:"BROWSER_OR_EXTENSION_ERROR"};Pj={}; g.nm=(Pj.ALREADY_PINNED_ON_A_DEVICE="This video has already been downloaded on the maximum number of devices allowed by the copyright holder. Before you can play the video here, it needs to be unpinned on another device.",Pj.DEVICE_FALLBACK="Sorry, this video is not available on this device.",Pj.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",Pj.LICENSE="Sorry, there was an error licensing this video.",Pj.VIDEO_UNAVAILABLE= "Video unavailable",Pj.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",Pj.GEO_FAILURE="This video isn't available in your country.",Pj.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",Pj.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",Pj.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",Pj.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="Your browser does not currently recognize any of the video formats available. $BEGIN_LINKClick here to visit our frequently asked questions about HTML5 video.$END_LINK", Pj.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",Pj.HTML5_SPS_UMP_STATUS_REJECTED="Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",Pj.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",Pj.PURCHASE_NOT_FOUND="This video requires payment.",Pj.PURCHASE_REFUNDED="This video's purchase has been refunded.",Pj.RENTAL_EXPIRED="This video's rental has expired.",Pj.CAST_SESSION_DEVICE_MISMATCHED= "The device in the cast session doesn't match the requested one.",Pj.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",Pj.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",Pj.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",Pj.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",Pj.SERVER_ERROR="There was an internal server error. Please try again later.",Pj.STOPPED_BY_ANOTHER_PLAYBACK= "Your account is playing this video in another location. Please reload this page to resume watching.",Pj.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",Pj.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",Pj.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",Pj.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",Pj.TOO_MANY_REQUESTS="Please log in to watch this video.", Pj.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",Pj.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",Pj.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",Pj.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",Pj.VIDEO_FORBIDDEN="Access to this video is forbidden.",Pj.VIDEO_NOT_FOUND="This video can not be found.",Pj.BROWSER_OR_EXTENSION_ERROR= "Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",Pj);var f1N;var Aje=g.yc(),FRg=Aje.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!FRg||FRg.length<2)f1N=void 0;else{var bUe=Aje.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);f1N=bUe&&bUe.length===6?Number(bUe[5].replace("_",".")):0}var x8=f1N,UV=x8>=0;g.z(g.zn,sR);g.zn.prototype.C=function(e,L,c,I,B){return sR.prototype.C.call(this,e,L,c,I,B)};var Ql={},JB=(Ql.FAIRPLAY="fairplay",Ql.PLAYREADY="playready",Ql.WIDEVINE="widevine",Ql.CLEARKEY=null,Ql.FLASHACCESS=null,Ql.UNKNOWN=null,Ql.WIDEVINE_CLASSIC=null,Ql);s7.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var dS={},mJ=(dS.WIDTH={name:"width",video:!0,valid:640,CV:99999},dS.HEIGHT={name:"height",video:!0,valid:360,CV:99999},dS.FRAMERATE={name:"framerate",video:!0,valid:30,CV:9999},dS.BITRATE={name:"bitrate",video:!0,valid:3E5,CV:2E9},dS.EOTF={name:"eotf",video:!0,valid:"bt709",CV:"catavision"},dS.CHANNELS={name:"channels",video:!1,valid:2,CV:99},dS.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",CV:"invalidformat"},dS.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", CV:"nope"},dS.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",CV:"av99.0.05M.08"},dS.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",CV:"invalid"},dS.TUNNELMODE={name:"tunnelmode",video:!0,valid:"true",CV:"false"},dS);var iUZ=["h","H"],G$M=["9","("],grL=["9h","(h"],k$L=["8","*"],Dle=["a","A"],wzM=["o","O"],JjN=["m","M"],Vfw=["mac3","MAC3"],C3M=["meac3","MEAC3"],Uz={},mpr=(Uz.h=iUZ,Uz.H=iUZ,Uz["9"]=G$M,Uz["("]=G$M,Uz["9h"]=grL,Uz["(h"]=grL,Uz["8"]=k$L,Uz["*"]=k$L,Uz.a=Dle,Uz.A=Dle,Uz.o=wzM,Uz.O=wzM,Uz.m=JjN,Uz.M=JjN,Uz.mac3=Vfw,Uz.MAC3=Vfw,Uz.meac3=C3M,Uz.MEAC3=C3M,Uz),a1e=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),AEM=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var n={},iy=(n["0"]="f",n["160"]="h",n["133"]="h",n["134"]="h",n["135"]="h",n["136"]="h",n["137"]="h",n["264"]="h",n["266"]="h",n["138"]="h",n["298"]="h",n["299"]="h",n["304"]="h",n["305"]="h",n["214"]="h",n["216"]="h",n["374"]="h",n["375"]="h",n["140"]="a",n["141"]="a",n["327"]="sa",n["258"]="m",n["380"]="mac3",n["328"]="meac3",n["161"]="H",n["142"]="H",n["143"]="H",n["144"]="H",n["222"]="H",n["223"]="H",n["145"]="H",n["224"]="H",n["225"]="H",n["146"]="H",n["226"]="H",n["227"]="H",n["147"]="H",n["384"]= "H",n["376"]="H",n["385"]="H",n["377"]="H",n["149"]="A",n["261"]="M",n["381"]="MAC3",n["329"]="MEAC3",n["598"]="9",n["278"]="9",n["242"]="9",n["243"]="9",n["244"]="9",n["775"]="9",n["776"]="9",n["777"]="9",n["778"]="9",n["779"]="9",n["780"]="9",n["781"]="9",n["782"]="9",n["783"]="9",n["247"]="9",n["248"]="9",n["353"]="9",n["355"]="9",n["356"]="9",n["271"]="9",n["577"]="9",n["313"]="9",n["579"]="9",n["272"]="9",n["302"]="9",n["303"]="9",n["407"]="9",n["408"]="9",n["308"]="9",n["315"]="9",n["330"]= "9h",n["331"]="9h",n["332"]="9h",n["333"]="9h",n["334"]="9h",n["335"]="9h",n["336"]="9h",n["337"]="9h",n["338"]="so",n["600"]="o",n["250"]="o",n["251"]="o",n["774"]="o",n["194"]="*",n["195"]="*",n["220"]="*",n["221"]="*",n["196"]="*",n["197"]="*",n["279"]="(",n["280"]="(",n["317"]="(",n["318"]="(",n["273"]="(",n["274"]="(",n["357"]="(",n["358"]="(",n["275"]="(",n["359"]="(",n["360"]="(",n["276"]="(",n["583"]="(",n["584"]="(",n["314"]="(",n["585"]="(",n["561"]="(",n["277"]="(",n["361"]="(h",n["362"]= "(h",n["363"]="(h",n["364"]="(h",n["365"]="(h",n["366"]="(h",n["591"]="(h",n["592"]="(h",n["367"]="(h",n["586"]="(h",n["587"]="(h",n["368"]="(h",n["588"]="(h",n["562"]="(h",n["409"]="(",n["410"]="(",n["411"]="(",n["412"]="(",n["557"]="(",n["558"]="(",n["394"]="1",n["395"]="1",n["396"]="1",n["397"]="1",n["398"]="1",n["399"]="1",n["720"]="1",n["721"]="1",n["400"]="1",n["401"]="1",n["571"]="1",n["402"]="1",n["694"]="1h",n["695"]="1h",n["696"]="1h",n["697"]="1h",n["698"]="1h",n["699"]="1h",n["700"]="1h", n["701"]="1h",n["702"]="1h",n["703"]="1h",n["386"]="3",n["387"]="w",n["406"]="6",n["787"]="1",n["788"]="1",n["548"]="1e",n["549"]="1e",n["550"]="1e",n["551"]="1e",n["809"]="1e",n["810"]="1e",n["552"]="1e",n["811"]="1e",n["812"]="1e",n["553"]="1e",n["813"]="1e",n["814"]="1e",n["554"]="1e",n["815"]="1e",n["816"]="1e",n["555"]="1e",n["817"]="1e",n["818"]="1e",n["572"]="1e",n["556"]="1e",n["645"]="(",n["646"]="(",n["647"]="(",n["648"]="(",n["649"]="(",n["650"]="(",n["651"]="(",n["652"]="(",n["653"]="(", n["654"]="(",n["655"]="(",n["656"]="(",n["657"]="(",n["658"]="(",n["659"]="(",n["660"]="(",n["661"]="(",n["662"]="(",n["663"]="(",n["664"]="(",n["665"]="(",n["666"]="(",n["667"]="(",n["668"]="(",n["669"]="(",n["670"]="(",n["671"]="(",n["672"]="(",n["673"]="(",n["674"]="(h",n["675"]="(h",n["676"]="(h",n["677"]="(h",n["678"]="(h",n["679"]="(h",n["680"]="(h",n["681"]="(h",n["682"]="(h",n["683"]="(h",n["684"]="(h",n["685"]="(h",n["686"]="(h",n["687"]="(h",n["688"]="A",n["689"]="A",n["690"]="A",n["691"]= "MEAC3",n["773"]="i",n["806"]="I",n["805"]="I",n["829"]="9",n["830"]="9",n["831"]="9",n["832"]="9",n["833"]="9",n["834"]="9",n["835"]="9",n["836"]="9",n["892"]="9",n["893"]="9",n["837"]="9",n["838"]="9",n["839"]="9",n["840"]="9",n["841"]="(",n["842"]="(",n["843"]="(",n["844"]="(",n["845"]="(",n["846"]="(",n["847"]="(",n["848"]="(",n["894"]="(",n["895"]="(",n["849"]="(",n["850"]="(",n["851"]="(",n["852"]="(",n["865"]="9",n["866"]="9",n["867"]="9",n["868"]="9",n["869"]="9",n["870"]="9",n["871"]="9", n["872"]="9",n["896"]="9",n["897"]="9",n["873"]="9",n["874"]="9",n["875"]="9",n["876"]="9",n["877"]="(",n["878"]="(",n["879"]="(",n["880"]="(",n["881"]="(",n["882"]="(",n["883"]="(",n["884"]="(",n["898"]="(",n["899"]="(",n["885"]="(",n["886"]="(",n["887"]="(",n["888"]="(",n);var Ez={},MgT=(Ez.STEREO_LAYOUT_UNKNOWN=0,Ez.STEREO_LAYOUT_LEFT_RIGHT=1,Ez.STEREO_LAYOUT_TOP_BOTTOM=2,Ez);var X8,Ae;X8={};g.fn=(X8.auto=0,X8.tiny=144,X8.light=144,X8.small=240,X8.medium=360,X8.large=480,X8.hd720=720,X8.hd1080=1080,X8.hd1440=1440,X8.hd2160=2160,X8.hd2880=2880,X8.highres=4320,X8);Ae={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var FG="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");AQ.prototype.isHdr=function(){return this.X==="smpte2084"||this.X==="arib-std-b67"};Gn.prototype.Gk=function(){return this.containerType===2}; Gn.prototype.isEncrypted=function(){return!!this.TI}; Gn.prototype.Cu=function(){return!!this.audio}; Gn.prototype.vM=function(){return!!this.video}; var Dh=!1;g.z(Yl,g.Yg);g.M=Yl.prototype;g.M.appendBuffer=function(e,L,c){if(this.Dp.KK()!==this.appendWindowStart+this.start||this.Dp.FV()!==this.appendWindowEnd+this.start||this.Dp.FF()!==this.timestampOffset+this.start)this.Dp.supports(1),this.Dp.UM(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.Dp.ZB(this.timestampOffset+this.start);this.Dp.appendBuffer(e,L,c)}; g.M.abort=function(){this.Dp.abort()}; g.M.remove=function(e,L){this.Dp.remove(e+this.start,L+this.start)}; g.M.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.M.clear=function(){this.Dp.clear()}; g.M.UM=function(e,L){this.appendWindowStart=e;this.appendWindowEnd=L}; g.M.NG=function(){return this.timestampOffset+this.start}; g.M.KK=function(){return this.appendWindowStart}; g.M.FV=function(){return this.appendWindowEnd}; g.M.ZB=function(e){this.timestampOffset=e}; g.M.FF=function(){return this.timestampOffset}; g.M.rq=function(e){e=this.Dp.rq(e===void 0?!1:e);return Kn(e,this.start,this.end)}; g.M.A1=function(){return this.Dp.A1()}; g.M.U$=function(){return this.Dp.U$()}; g.M.OA=function(){return this.Dp.OA()}; g.M.M9=function(){return this.Dp.M9()}; g.M.hs=function(){this.Dp.hs()}; g.M.Eg=function(e){return this.Dp.Eg(e)}; g.M.YP=function(){return this.Dp.YP()}; g.M.NA=function(){return this.Dp.NA()}; g.M.qr=function(e,L,c){this.Dp.qr(e,L,c)}; g.M.Ub=function(e,L,c){this.Dp.Ub(e,L,c)}; g.M.tM=function(e,L){return this.Dp.tM(e,L)}; g.M.supports=function(e){return this.Dp.supports(e)}; g.M.Ll=function(){return this.Dp.Ll()}; g.M.isView=function(){return!0}; g.M.Ej=function(){return this.Dp.Ej()?this.isActive:!1}; g.M.isLocked=function(){return this.Pz&&!this.isActive}; g.M.b5=function(e){e=this.Dp.b5(e);e.vw=this.start+"-"+this.end;return e}; g.M.S_=function(){return this.Dp.S_()}; g.M.jb=function(){return this.Dp.jb()}; g.M.AT=function(){return this.Dp.AT()}; g.M.KS=function(){this.Dp.xG(this.GU);g.Yg.prototype.KS.call(this)};var gH=!1;g.z(eg,g.Yg);g.M=eg.prototype;g.M.appendBuffer=function(e,L,c){this.TG=!1;c&&(this.rl=c);if(e.length){var I;((I=this.Py)==null?0:I.appendBuffer)?this.Py.appendBuffer(e):this.Py?this.Py.append(e):this.C1&&this.C1.webkitSourceAppend(this.id,e)}L&&(L.isEncrypted()&&(this.Sa=this.rl),L.type===3&&(this.rZ=L),this.xR.push(L.e6()),this.xR.length>4&&this.xR.shift());this.Ue&&(this.Ue.length>=2||e.length>1048576?delete this.Ue:this.Ue.push(e))}; g.M.abort=function(){try{this.Py?this.Py.abort():this.C1&&this.C1.webkitSourceAbort(this.id)}catch(L){if(V7f){var e=new g.yu("Error while abort the source buffer: "+L.name+", "+L.message);g.A9(e)}}this.rl=this.rZ=null}; g.M.remove=function(e,L,c){this.TG=!1;var I;if((I=this.Py)==null?0:I.remove)c&&c({b:ly(this.rq()),s:e,e:L}),this.Py.remove(e,L)}; g.M.removeAll=function(){this.remove(this.KK(),this.FV())}; g.M.clear=function(){this.OA()||(this.abort(),this.removeAll(),this.Sa=this.rl=this.rZ=null,this.appendWindowStart=this.timestampOffset=0,this.xd=H1([],[]),this.TG=!1,this.Ue=nn?[]:void 0,this.sy=!0)}; g.M.KK=function(){if(gH&&this.vM)return this.appendWindowStart;var e;return((e=this.Py)==null?void 0:e.appendWindowStart)||0}; g.M.FV=function(){var e;return((e=this.Py)==null?void 0:e.appendWindowEnd)||0}; g.M.UM=function(e,L){this.Py&&(gH&&this.vM?(this.appendWindowStart=e,this.Py.appendWindowEnd=L):e>this.KK()?(this.Py.appendWindowEnd=L,this.Py.appendWindowStart=e):(this.Py.appendWindowStart=e,this.Py.appendWindowEnd=L))}; g.M.NG=function(){return this.timestampOffset}; g.M.ZB=function(e){gH?this.timestampOffset=e:this.supports(1)&&(this.Py.timestampOffset=e)}; g.M.FF=function(){return gH?this.timestampOffset:this.supports(1)?this.Py.timestampOffset:0}; g.M.rq=function(e){if(e===void 0?0:e)return this.TG||this.A1()||(this.xd=this.rq(!1),this.TG=!0),this.xd;try{return this.Py?this.Py.buffered:this.C1?this.C1.webkitSourceBuffered(this.id):H1([0],[Infinity])}catch(L){return H1([],[])}}; g.M.A1=function(){var e;return((e=this.Py)==null?void 0:e.updating)||!1}; g.M.OA=function(){return this.sy}; g.M.M9=function(){return!this.sy&&this.A1()}; g.M.hs=function(){this.sy=!1}; g.M.Eg=function(e){var L=e==null?void 0:e.EW;e=e==null?void 0:e.containerType;return!L&&!e||L===this.EW&&e===this.containerType}; g.M.YP=function(){return this.rl}; g.M.NA=function(){return this.Sa}; g.M.tM=function(e,L){return this.containerType!==e||this.EW!==L}; g.M.qr=function(e,L,c){if(this.containerType!==e||c&&this.tM(e,c))this.supports(4),Lx()&&this.Py.changeType(L),c&&(this.EW=c);this.containerType=e}; g.M.Ub=function(e,L,c){this.containerType&&this.tM(e,L)&&Lx()&&this.Py.changeType(c);this.containerType=e;this.EW=L}; g.M.Ll=function(){return this.rZ}; g.M.isView=function(){return!1}; g.M.supports=function(e){switch(e){case 1:var L;return((L=this.Py)==null?void 0:L.timestampOffset)!==void 0;case 0:var c;return!((c=this.Py)==null||!c.appendBuffer);case 2:var I;return!((I=this.Py)==null||!I.remove);case 3:var B,x;return!!(((B=this.Py)==null?0:B.addEventListener)&&((x=this.Py)==null?0:x.removeEventListener));case 4:return!(!this.Py||!this.Py.changeType);default:return!1}}; g.M.Ej=function(){return!this.A1()}; g.M.isLocked=function(){return!1}; g.M.b5=function(e){e.to=this.FF();e.up=this.A1();var L,c=((L=this.Py)==null?void 0:L.appendWindowStart)||0,I;L=((I=this.Py)==null?void 0:I.appendWindowEnd)||Infinity;e.aw=c.toFixed(3)+"-"+L.toFixed(3);return e}; g.M.U$=function(){var e;return((e=this.Py)==null?void 0:e.writeHead)||0}; g.M.S_=function(){for(var e={},L=0;L=7&&G1f(this,function(){g.oC(function(){lyn(e,e.getCurrentTime(),0)},500)}); return L}; g.M.seekTo=function(e){this.qD()>0&&(UV&&x8<4&&(e=Math.max(.1,e)),this.setCurrentTime(e))}; g.M.f6=function(){if(!this.K&&this.g_)if(this.g_.B)try{var e;oi(this,{l:"mer",sr:(e=this.zm)==null?void 0:e.K2(),rs:r1(this.g_)});this.g_.clear();this.K=this.g_;this.g_=void 0}catch(L){e=new g.yu("Error while clearing Media Source in MediaElement: "+L.name+", "+L.message),g.A9(e),this.stopVideo()}else this.stopVideo()}; g.M.stopVideo=function(){var e=this;if(!this.K){var L;(L=this.g_)==null||$wr(L);if(Dac){if(!this.Z){var c=new Ri;c.then(void 0,function(){}); this.Z=c;wVM&&this.pause();g.oC(function(){e.Z===c&&(qp(e),c.resolve())},200)}}else qp(this)}}; g.M.u2=function(){var e=this.im();return E7(e)&&this.getDuration()?dr(e,this.getCurrentTime()):0}; g.M.yl=function(){var e=this.getDuration();return e===Infinity?1:e?this.u2()/e:0}; g.M.b5=function(){try{var e=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:ly(this.MR(),",",3),vbu:ly(this.im()),vbs:ly(this.d8()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.qD(),vns:""+this.rF(),vec:""+this.n1(),vemsg:this.Ku(),vvol:""+this.getVolume(),vdom:""+ +this.PW(),vsrc:""+ +!!this.qS(),vw:""+e.width,vh:""+e.height}}catch(L){return{}}}; g.M.hasError=function(){return this.n1()>0}; g.M.addEventListener=function(e,L){this.G.listen(e,L,!1,this);this.Sf(e)}; g.M.removeEventListener=function(e,L){this.G.j6(e,L,!1,this)}; g.M.dispatchEvent=function(e){if(this.Z&&e.type==="pause")return!1;if(JXf){var L,c=((L=e.X)==null?void 0:L.timeStamp)||Infinity;L=c>performance.now()?c-Date.now()+performance.now():c;c=this.K||this.g_;if((c==null?0:c.OA())||L<=((c==null?void 0:c.j)||0)){var I;oi(this,{l:"mede",sr:(I=this.zm)==null?void 0:I.K2(),et:e.type});return!1}if(this.ov)return oi(this,{l:"medes",et:e.type}),c&&e.type==="seeking"&&(c.j=performance.now(),this.ov=!1),!1}return this.G.dispatchEvent(e)}; g.M.mM=function(){this.j=!1}; g.M.dU=function(){this.j=!0;this.YQ(!0)}; g.M.M5=function(){this.j&&!this.xO()&&this.YQ(!0)}; g.M.equals=function(e){return!!e&&e.IT()===this.IT()}; g.M.KS=function(){this.T&&this.removeEventListener("volumechange",this.M5);Dac&&qp(this);g.p.prototype.KS.call(this)}; var Dac=!1,wVM=!1,JXf=!1,dw6=!1;g.M=g.WX.prototype;g.M.isPaused=function(){return g.E(this,4)}; g.M.isPlaying=function(){return g.E(this,8)&&!g.E(this,512)&&!g.E(this,64)&&!g.E(this,2)}; g.M.isOrWillBePlaying=function(){return g.E(this,8)&&!g.E(this,2)&&!g.E(this,1024)}; g.M.isCued=function(){return g.E(this,64)&&!g.E(this,8)&&!g.E(this,4)}; g.M.isBuffering=function(){return g.E(this,1)&&!g.E(this,2)}; g.M.isError=function(){return g.E(this,128)}; g.M.isSuspended=function(){return g.E(this,512)}; g.M.QE=function(){return g.E(this,64)&&g.E(this,4)}; g.M.toString=function(){return"PSt."+this.state.toString(16)}; var K4={},Yx=(K4.BUFFERING="buffering-mode",K4.CUED="cued-mode",K4.ENDED="ended-mode",K4.PAUSED="paused-mode",K4.PLAYING="playing-mode",K4.SEEKING="seeking-mode",K4.UNSTARTED="unstarted-mode",K4);g.z(Gk,g.p);g.M=Gk.prototype;g.M.Fd=function(){return this.Z}; g.M.JK=function(){return this.slot}; g.M.FM=function(){return this.layout}; g.M.init=function(){var e=Hv(this.layout.clientMetadata,"metadata_type_video_length_seconds"),L=Hv(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");o0(this.layout.hK)&&rl(this.e5.get(),this.layout.layoutId,{NL:L,w5:e,listener:this,Se:this.Ry()});nGf(this.Tm.get(),this);e=this.NO;L=this.layout.layoutId;var c={Se:this.Ry()};e.X.set(L,c);this.MF()}; g.M.s2=function(){}; g.M.release=function(){o0(this.layout.hK)&&h3(this.e5.get(),this.layout.layoutId);eXM(this.Tm.get(),this);this.NO.X.delete(this.layout.layoutId);this.s3()}; g.M.pw=function(){}; g.M.I$=function(){}; g.M.startRendering=function(e){xl(g1(this));if(k_(this,e)){var L=this.X;oK(L.params.SG.ZY.get(),!0)&&bNv(L,"p_sr",{});DD(this);this.RL(e);this.Ry()||this.QM(!1)}}; g.M.Hy=function(e,L){if(L.layoutId===this.layout.layoutId){this.S5="rendering";this.K=this.Be.get().isMuted()||this.Be.get().getVolume()===0;this.AK("impression");this.AK("start");if(this.Be.get().isMuted()){Np(this,"mute");var c;e=((c=ic(this))==null?void 0:c.muteCommands)||[];gw(this.T_.get(),e,this.layout.layoutId)}if(this.Be.get().isFullscreen()){this.iz("fullscreen");var I;c=((I=ic(this))==null?void 0:I.fullscreenCommands)||[];gw(this.T_.get(),c,this.layout.layoutId)}this.Ry()||(I=this.Uq.get(), I.Z&&!I.K&&(I.B=!1,I.K=!0,I.actionType!=="ad_to_video"&&(g_("pbs",void 0,I.actionType),g.uL("finalize_all_timelines")&&BOc(I.actionType))));this.H_(1);this.N7(L);var B;L=((B=ic(this))==null?void 0:B.impressionCommands)||[];gw(this.T_.get(),L,this.layout.layoutId)}}; g.M.tQ=function(e,L,c){this.T={CZ:3,yp:e==="load_timeout"?402:400,errorMessage:L.message};this.AK("error");var I;e=((I=ic(this))==null?void 0:I.errorCommands)||[];gw(this.T_.get(),e,this.layout.layoutId);this.Ry()||this.Uw.Xc(this.slot,this.layout,L,c)}; g.M.L7=function(){if(this.S5==="rendering"){Np(this,"pause");var e,L=((e=ic(this))==null?void 0:e.pauseCommands)||[];gw(this.T_.get(),L,this.layout.layoutId);this.H_(2)}}; g.M.E1=function(){if(this.S5==="rendering"){Np(this,"resume");var e,L=((e=ic(this))==null?void 0:e.resumeCommands)||[];gw(this.T_.get(),L,this.layout.layoutId)}}; g.M.tX=function(e,L){L=L===void 0?!1:L;if(this.S5==="rendering"){var c={currentTimeSec:e,flush:L};S0(this.X,"p_ip",c);qi(this.nS,e*1E3,L);this.K||qi(this.nS,e*1E3,L===void 0?!1:L);var I=this.Js();if(I){I/=1E3;if(e>=I*.25||L)this.AK("first_quartile"),S0(this.X,"p_fq",c);if(e>=I*.5||L)this.AK("midpoint"),S0(this.X,"p_sq",c);if(e>=I*.75||L)this.AK("third_quartile"),S0(this.X,"p_tq",c);this.ZY.get().V.S().experiments.N0("enable_progress_command_flush_on_kabuki")?bi(this.G,e*1E3,L):bi(this.G,e*1E3,nuR(this)? L:!1)}}}; g.M.Wc=function(){var e;return((e=w1(this.M0.get(),1))==null?void 0:e.clientPlaybackNonce)||""}; g.M.Mo=function(e,L){e.layoutId!==this.layout.layoutId?this.Uw.Xc(this.slot,e,new $K("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"):L()}; g.M.Gy=function(e,L,c){if(L.layoutId===this.layout.layoutId)switch(this.S5="not_rendering",this.layoutExitReason=void 0,this.Ry()||(e=c!=="normal"||this.position+1===this.j)&&this.QM(e),this.bv(c),this.H_(0),c){case "abandoned":if(TH(this.nS,"impression")){var I,B=((I=ic(this))==null?void 0:I.abandonCommands)||[];gw(this.T_.get(),B,this.layout.layoutId)}break;case "normal":I=((B=ic(this))==null?void 0:B.completeCommands)||[];gw(this.T_.get(),I,this.layout.layoutId);break;case "skipped":var x;I=((x= ic(this))==null?void 0:x.skipCommands)||[];gw(this.T_.get(),I,this.layout.layoutId)}}; g.M.As=function(){return this.layout.layoutId}; g.M.Ui=function(){return this.T}; g.M.MV=function(){if(this.S5==="rendering"){this.nS.AK("active_view_measurable");var e,L=((e=ic(this))==null?void 0:e.activeViewMeasurableCommands)||[];gw(this.T_.get(),L,this.layout.layoutId)}}; g.M.wv=function(){if(this.S5==="rendering"){this.nS.AK("active_view_fully_viewable_audible_half_duration");var e,L=((e=ic(this))==null?void 0:e.activeViewFullyViewableAudibleHalfDurationCommands)||[];gw(this.T_.get(),L,this.layout.layoutId)}}; g.M.PG=function(){if(this.S5==="rendering"){this.nS.AK("active_view_viewable");var e,L=((e=ic(this))==null?void 0:e.activeViewViewableCommands)||[];gw(this.T_.get(),L,this.layout.layoutId)}}; g.M.WG=function(){if(this.S5==="rendering"){this.nS.AK("audio_audible");var e,L=((e=ic(this))==null?void 0:e.activeViewAudioAudibleCommands)||[];gw(this.T_.get(),L,this.layout.layoutId)}}; g.M.tJ=function(){if(this.S5==="rendering"){this.nS.AK("audio_measurable");var e,L=((e=ic(this))==null?void 0:e.activeViewAudioMeasurableCommands)||[];gw(this.T_.get(),L,this.layout.layoutId)}}; g.M.QM=function(e){this.Uq.get().QM(Hv(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,e,this.position,this.j,!1)}; g.M.onFullscreenToggled=function(e){if(this.S5==="rendering")if(e){this.iz("fullscreen");var L,c=((L=ic(this))==null?void 0:L.fullscreenCommands)||[];gw(this.T_.get(),c,this.layout.layoutId)}else this.iz("end_fullscreen"),L=((c=ic(this))==null?void 0:c.endFullscreenCommands)||[],gw(this.T_.get(),L,this.layout.layoutId)}; g.M.onVolumeChange=function(){if(this.S5==="rendering")if(this.Be.get().isMuted()){Np(this,"mute");var e,L=((e=ic(this))==null?void 0:e.muteCommands)||[];gw(this.T_.get(),L,this.layout.layoutId)}else Np(this,"unmute"),e=((L=ic(this))==null?void 0:L.unmuteCommands)||[],gw(this.T_.get(),e,this.layout.layoutId)}; g.M.t9=function(){}; g.M.Qy=function(){}; g.M.xN=function(){}; g.M.J_=function(){}; g.M.dP=function(){}; g.M.iz=function(e){this.nS.iz(e,!this.K)}; g.M.AK=function(e){this.nS.AK(e,!this.K)}; g.M.Ry=function(){var e=Hv(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return e===void 0?(Ir("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.ZY.get().Ry(e)};g.z($_,Gk);g.M=$_.prototype;g.M.MF=function(){}; g.M.s3=function(){var e=this.Tm.get();e.Z5===this&&(e.Z5=null);this.timer.stop()}; g.M.pw=function(){this.timer.stop();Gk.prototype.L7.call(this)}; g.M.I$=function(){HX(this);Gk.prototype.E1.call(this)}; g.M.Js=function(){return Hv(this.FM().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.M.L9=function(e,L){var c=this;this.Mo(e,function(){c.S5!=="rendering_stop_requested"&&(c.S5="rendering_stop_requested",c.layoutExitReason=L,Jf(c,L),c.timer.stop())})}; g.M.Ty=function(){var e=Date.now(),L=e-this.Es;this.Es=e;this.GN+=L;this.GN>=this.Js()?this.rH():(this.tX(this.GN/1E3),jg(this,this.GN))}; g.M.bv=function(){}; g.M.FC=function(){}; g.z(lc,$_);g.M=lc.prototype;g.M.QZ=function(e){if(this.S5!=="not_rendering"){e=Vv(this,e);var L=this.Be.get().getPresentingPlayerType()===2;this.S5==="rendering_start_requested"?L&&Et(e)&&this.Zf():L?g.or(e,2)?Ir("Receive player ended event during MediaBreak",this.JK(),this.FM()):Cx(this,e):this.m7()}}; g.M.RL=function(){KDR(this);hX$(this.Be.get());this.Tm.get().Z5=this;ie("pbp")||ie("pbs")||g_("pbp");ie("pbp","watch")||ie("pbs","watch")||g_("pbp",void 0,"watch");this.Zf()}; g.M.N7=function(e){this.Uq.get();var L=Hv(e.clientMetadata,"metadata_type_ad_placement_config").kind,c=this.position===0;e=Hv(e.clientMetadata,"metadata_type_linked_in_player_layout_type");e={adBreakType:ai(L),adType:ROR(e)};var I=void 0;c?L!=="AD_PLACEMENT_KIND_START"&&(I="video_to_ad"):I="ad_to_ad";AD("ad_mbs",void 0,I);g.FT(e,I);HX(this)}; g.M.m7=function(){this.OI()}; g.M.rH=function(){LZc(this);this.OI()}; g.z(PX,$_);g.M=PX.prototype;g.M.QZ=function(e){this.S5!=="not_rendering"&&(e=Vv(this,e),Cx(this,e))}; g.M.RL=function(){Ir("Not used in SSAP")}; g.M.N7=function(){HX(this)}; g.M.m7=function(){Ir("Not used in SSAP")}; g.M.rH=function(){LZc(this);this.Uw.Gn(this.JK(),this.FM(),"normal")}; g.z(Qv,PX);Qv.prototype.L9=function(e,L){var c=this;this.Mo(e,function(){e0(c.Z,L)&&(c.S5="rendering_stop_requested",c.layoutExitReason=L,Jf(c,L),c.timer.stop())})}; Qv.prototype.startRendering=function(e){xl(g1(this));k_(this,e)&&(DD(this),this.Tm.get().Z5=this)};g.z(EP,Gk);g.M=EP.prototype;g.M.m7=function(){this.OI()}; g.M.QZ=function(e){if(this.S5!=="not_rendering"){e=Vv(this,e);var L=this.Be.get().getPresentingPlayerType()===2;this.S5==="rendering_start_requested"?L&&Et(e)&&this.Zf():!L||g.or(e,2)?this.OI():Cx(this,e)}}; g.M.MF=function(){Hv(this.FM().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=Hv(this.FM().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.M.s3=function(){Hv(this.FM().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.I9){var e=this.context.SG,L=this.I9,c=this.FM().layoutId;if(oK(e.ZY.get(),!0)){var I={};e.Z6("mccru",(I.cid=L,I.p_ac=c,I))}this.K9.get().removeCueRange(this.I9)}this.I9=void 0;var B;(B=this.G2)==null||B.dispose();this.PF&&this.PF.dispose()}; g.M.RL=function(e){var L=d1(this.ZY.get()),c=UP(this.ZY.get());if(L&&c&&!this.Ry()){c=Hv(e.clientMetadata,"metadata_type_preload_player_vars");var I=this.ZY.get();I=g.X3(I.V.S().experiments,"html5_preload_wait_time_secs");c&&this.PF&&this.PF.start(I*1E3)}B9c(this,e);KDR(this);L?(c=this.Zp.get(),e=Hv(e.clientMetadata,"metadata_type_player_vars"),c.V.loadVideoByPlayerVars(e,!1,2)):bDH(this.Zp.get(),Hv(e.clientMetadata,"metadata_type_player_vars"));var B;(B=this.G2)==null||B.start();L||this.Zp.get().V.playVideo(2)}; g.M.N7=function(){var e;(e=this.G2)==null||e.stop();this.ri();(this.adCpn=X7f(this))||Ir("Media layout confirmed started, but ad CPN not set.");this.l4.get().uG("onAdStart",this.adCpn);this.rK=Date.now()}; g.M.Js=function(){var e;return(e=w1(this.M0.get(),2))==null?void 0:e.NB}; g.M.MI=function(){this.nS.iz("clickthrough")}; g.M.L9=function(e,L){var c=this;this.Mo(e,function(){if(c.S5!=="rendering_stop_requested"){c.S5="rendering_stop_requested";c.layoutExitReason=L;Jf(c,L);var I;(I=c.G2)==null||I.stop();c.PF&&c.PF.stop();x2$(c)}})}; g.M.onCueRangeEnter=function(e){if(e!==this.I9)Ir("Received CueRangeEnter signal for unknown layout.",this.JK(),this.FM(),{cueRangeId:e});else{var L=this.context.SG,c=this.FM().layoutId;if(oK(L.ZY.get(),!0)){var I={};L.Z6("mccre",(I.cid=e,I.p_ac=c,I))}this.K9.get().removeCueRange(this.I9);this.I9=void 0;Jz(this.context.ZY.get(),"html5_ssap_flush_at_stop_rendering")&&this.Ry()||(e=Hv(this.FM().clientMetadata,"metadata_type_video_length_seconds"),this.tX(e,!0),this.AK("complete"))}}; g.M.bv=function(e){e!=="abandoned"&&this.l4.get().uG("onAdComplete");this.l4.get().uG("onAdEnd",this.adCpn)}; g.M.ri=function(){this.I9="adcompletioncuerange:"+this.FM().layoutId;this.K9.get().addCueRange(this.I9,0x7ffffffffffff,0x8000000000000,!1,this,2,2);var e=this.context.SG,L=this.I9,c=this.FM().layoutId;if(oK(e.ZY.get(),!0)){var I={};e.Z6("mccr",(I.cid=L,I.p_ac=c,I))}}; g.M.onCueRangeExit=function(){}; g.M.FC=function(e){this.S5==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&e>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.Be.get().FO(!0),this.tX(e))}; g.M.tX=function(e,L){Gk.prototype.tX.call(this,e,L===void 0?!1:L);L=Date.now()-this.rK;var c=e*1E3,I={contentCpn:this.Wc(),adCpn:X7f(this)};if(e-this.xa>=5){var B=L=2||(this.Qo.L9(this.layout,L),e=Jz(this.params.context.ZY.get(),"html5_ssap_pass_transition_reason")&&L==="abandoned",this.gm()&&!e&&(Jz(this.params.context.ZY.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(L)||Ir("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:L})),this.aI.get().finishSegmentByCpn(this.layout.layoutId, w1(this.M0.get(),1).clientPlaybackNonce,yv(L,this.params.context.ZY))),this.Be.get().removeListener(this),this.Ji()&&Ln(this.Qo.Fd())&&this.o$.Gy(this.slot,this.layout,this.Qo.Fd().X))}; g.M.PJ=function(e,L,c){Am6({cpn:e,zr:this.M0.get(),nG:!0});this.FM().layoutId!==e||Jz(this.params.context.ZY.get(),"html5_ssap_pass_transition_reason")&&c===5||(this.Qo.Fd().currentState<2&&(e=ZD(c,this.params.context.ZY),e==="error"?this.o$.Xc(this.slot,this.layout,new $K("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:c},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):x9(this.jt, this.layout,e)),Jz(this.params.context.ZY.get(),"html5_ssap_exit_without_waiting_for_transition")||this.o$.Gy(this.slot,this.layout,this.Qo.Fd().X))};g.z(es,g.p);g.M=es.prototype;g.M.JK=function(){return this.slot}; g.M.FM=function(){return this.layout}; g.M.n5=function(){}; g.M.Lj=function(){return this.L1[this.UI]}; g.M.T6=function(){return this.UI}; g.M.pw=function(e,L){var c=this.Lj();L.layoutId!==cw(c,e,L)?Ir("pauseLayout for a PlayerBytes layout that is not currently active",e,L):c.pw()}; g.M.I$=function(e,L){var c=this.Lj();L.layoutId!==cw(c,e,L)?Ir("resumeLayout for a PlayerBytes layout that is not currently active",e,L):c.I$()}; g.M.QY=function(e,L){var c=this.Lj();T9$(this,e,L);WZT(c,e,L)&&this.MA(c.JK(),c.FM(),"skipped")}; g.M.nW=function(e,L){var c=this.Lj();MFn(this);zO$(c,e,L)&&(e=srn(this,c,e,L),e!==void 0&&(this.Ry()?Ir("Should not happen. Should delete"):fFM(this,c.JK(),c.FM(),e)))}; g.M.PQ=function(e,L){var c=Object.assign({},LL(this),{layoutId:L.layoutId}),I=c.layoutId,B=c.nG;if(c.Se){var x={};B1(c.zr,"wrse",(x.ec=I,x.is=B,x.ctp=IK(I),x))}uh(this.q4,e,L)}; g.M.Hy=function(e,L){var c;(c=this.Lj())==null||c.Hy(e,L)}; g.M.Gy=function(e,L,c){L.layoutId===this.FM().layoutId&&(this.lW=!1,eh(this.EY(),this));var I;(I=this.Lj())==null||I.Gy(e,L,c)}; g.M.FC=function(e){var L;(L=this.Lj())==null||L.FC(e)}; g.M.Bi=function(e,L,c){this.T6()===-1&&(this.callback.Hy(this.slot,this.layout),this.UI++);var I=this.Lj();I?(I.tQ(e,L,c),this.Ry()&&this.callback.Xc(this.slot,this.layout,L,c)):Ir("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.T6()),layoutId:this.FM().layoutId})}; g.M.onFullscreenToggled=function(e){var L;(L=this.Lj())==null||L.onFullscreenToggled(e)}; g.M.t9=function(e){var L;(L=this.Lj())==null||L.t9(e)}; g.M.xN=function(e){var L;(L=this.Lj())==null||L.xN(e)}; g.M.onVolumeChange=function(){var e;(e=this.Lj())==null||e.onVolumeChange()}; g.M.u_=function(e,L,c){tz(this.q4,e,L,c)}; g.M.mX=function(e){e.startRendering(e.FM())}; g.M.init=function(){var e=Hv(this.FM().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");e&&(e.current=this);if(this.L1.length<1)throw new K("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.L1.length)});if(e=Hv(this.FM().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))e.current=this;e=g.f(this.L1);for(var L=e.next();!L.done;L=e.next())L=L.value,L.init(),HG6(this.q4,this.slot,L.FM()),l0x(this.q4,this.slot,L.FM()); if(this.Ry())for(this.M0.get().addListener(this),WDH(qsv(this),this.M0.get()),e=qsv(this),e=g.f(e),L=e.next();!L.done;L=e.next())this.v5(L.value)}; g.M.v5=function(e){var L=Hv(e.clientMetadata,"metadata_type_player_vars");L?(e.layoutType!=="LAYOUT_TYPE_MEDIA"&&Ir("Non-video ad contains playerVars",this.slot,e),this.Zp.get().addPlayerResponseForAssociation({playerVars:L})):(e=unv(e),this.Zp.get().addPlayerResponseForAssociation({fN:e}))}; g.M.release=function(){var e=Hv(this.FM().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");e&&(e.current=null);if(e=Hv(this.FM().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))e.current=null;e=g.f(this.L1);for(var L=e.next();!L.done;L=e.next())L=L.value,Pxf(this.q4,this.slot,L.FM()),L.release();this.Ry()&&(this.M0.get().removeListener(this),MHM())}; g.M.Mo=function(e){return e.layoutId!==this.FM().layoutId?(this.callback.Xc(this.JK(),e,new $K("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.FM().layoutId+("and LayoutType: "+this.FM().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.M.ox=function(){this.Be.get().addListener(this);nR(this.EY(),this)}; g.M.QZ=function(e){if(e.state.isError()){var L,c;this.Bi((L=e.state.lz)==null?void 0:L.errorCode,new $K("There was a player error during this media layout.",{playerErrorCode:(c=e.state.lz)==null?void 0:c.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(L=this.Lj())&&L.QZ(e)}; g.M.Ry=function(){var e=Hv(this.JK().clientMetadata,"metadata_type_eligible_for_ssap");return e===void 0?(Ir("Expected SSAP eligibility in PlayerBytes slots",this.JK(),this.FM()),!1):this.ZY.get().Ry(e)}; g.M.Qy=function(){}; g.M.lm=function(){}; g.M.Pg=function(){}; g.M.wM=function(){}; g.M.ya=function(){}; g.M.WM=function(){}; g.M.o9=function(){}; g.M.MO=function(){}; g.M.zV=function(){}; g.M.Gr=function(){}; g.M.Aj=function(){}; g.M.J_=function(){}; g.M.dP=function(){}; g.z(oT,es);g.M=oT.prototype;g.M.On=function(e,L,c){this.MA(e,L,c)}; g.M.Ct=function(e,L){this.MA(e,L,"error")}; g.M.MA=function(e,L,c){var I=this;vwT(this,e,L,c,function(){IT(I,I.T6()+1)})}; g.M.startRendering=function(e){this.Mo(e)&&(this.ox(),fvJ(this.Uq.get()),kqT(this.ZY.get())||hX$(this.Be.get()),this.T6()===-1&&IT(this,this.T6()+1))}; g.M.L9=function(e,L){var c=this;this.lW=!0;this.T6()===this.L1.length?this.callback.Gy(this.slot,this.layout,L):(e=this.Lj(),e.L9(e.FM(),L),this.wJ=function(){c.callback.Gy(c.slot,c.layout,L)}); this.Be.get().V.aL();bDH(this.Zp.get(),{});e=SQ(this.Be.get(),1);e.isPaused()&&!g.E(e,2)&&this.Be.get().playVideo();this.Be.get().removeListener(this);this.lW&&AWx(this)}; g.M.PJ=function(){}; g.M.Mj=function(){}; g.M.Gn=function(){}; g.z(Ss,es);g.M=Ss.prototype;g.M.On=function(e,L,c){e=Object.assign({},LL(this),{layoutId:L.layoutId,layoutExitReason:c});L=e.layoutId;c=e.layoutExitReason;var I={};B1(e.zr,"prse",(I.xc=L,I.ler=c,I.ctp=IK(L),I))}; g.M.Ct=function(){Ir("onSubLayoutError in SSAP")}; g.M.MA=function(){Ir("exitSubLayoutAndPlayNext in SSAP")}; g.M.Lj=function(){return this.Tk}; g.M.T6=function(){var e=this;return this.L1.findIndex(function(L){var c;return L.FM().layoutId===((c=e.Tk)==null?void 0:c.FM().layoutId)})}; g.M.mX=function(e){cZ(this.Tk===void 0,"replacing another adapter");this.Tk=e;e.startRendering(e.FM())}; g.M.u_=function(e,L,c){tz(this.q4,e,L,c);var I;cZ(L.layoutId===((I=this.Tk)==null?void 0:I.FM().layoutId),"currentAdapter does not match exiting layout",{slot:e?"slot: "+e.slotType:"",subLayout:Lq(L)})&&(this.Tk=void 0)}; g.M.release=function(){es.prototype.release.call(this);cZ(this.Tk===void 0,"currentAdapter is still active during release");this.Tk=void 0}; g.M.gm=function(){return this.Be.get().getPresentingPlayerType()===2}; g.M.L9=function(e,L){function c(){rh(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(L)||Ir("Composite stopRendering: Unexpected layout exit reason",this.slot,e,{layoutExitReason:L}))} function I(){this.Tk&&ht(this,this.Tk,L);if(this.gm()&&(!rh(this)||L!=="abandoned")){c.call(this);var x;var S=((x=this.M0.get().V.getVideoData())==null?void 0:x.clientPlaybackNonce)||"";x=w1(this.M0.get(),1).clientPlaybackNonce;this.aI.get().finishSegmentByCpn(S,x,yv(L,this.ZY))}FZR(this,L)} function B(){if(this.Tk){var x=this.Tk;x.Fd().currentState<2&&x.L9(x.FM(),L);x=rh(this)&&L==="abandoned";this.gm()&&!x&&(c.call(this),this.aI.get().finishSegmentByCpn(this.Tk.FM().layoutId,w1(this.M0.get(),1).clientPlaybackNonce,yv(L,this.ZY)))}} cZ(e.layoutId===this.FM().layoutId,"StopRendering for wrong layout")&&e0(this.z0.K,L)&&(this.Ji()?I.call(this):B.call(this))}; g.M.Gy=function(e,L,c){es.prototype.Gy.call(this,e,L,c);L.layoutId===this.FM().layoutId&&this.Be.get().removeListener(this)}; g.M.Wc=function(){return w1(this.M0.get(),1).clientPlaybackNonce}; g.M.PJ=function(e,L,c){Am6(Object.assign({},LL(this),{cpn:e}));if(!rh(this)||c!==5)if(this.Ji()){if(this.Tk&&this.Tk.FM().layoutId!==L){var I=this.Tk.FM().layoutId;I!==e&&Ir("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:I,exitingCpn:e,enteringCpn:L});e=ZD(c,this.ZY);ht(this,this.Tk,e)}else this.Tk&&Ir("onClipExited: active layout is entering again");L===this.Wc()&&iq6(this,c)}else{if(this.Tk&&this.Tk.FM().layoutId===e)bqv(this,this.Tk,c);else{var B;Ir("Exiting cpn does not match active cpn", this.slot,(I=this.Tk)==null?void 0:I.FM(),{exitingCpn:e,transitionReason:c,activeCpn:(B=this.Tk)==null?void 0:B.FM().layoutId})}L===this.Wc()&&(this.Tk!==void 0&&(Ir("active adapter is not properly exited",this.slot,this.layout,{activeLayout:Lq(this.Tk.FM())}),bqv(this,this.Tk,c)),iq6(this,c),FZR(this,this.z0.K.X))}}; g.M.Ji=function(){return Jz(this.ZY.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.M.startRendering=function(e){this.Mo(e)&&(e=this.z0,cZ(e.X===1,"tickStartRendering: state is not initial"),e.X=2,this.ox())}; g.M.Mj=function(e){fyv(Object.assign({},LL(this),{cpn:e}));var L=this.L1.find(function(c){return c.FM().layoutId===e}); L?(this.z0.X!==2&&(oKM(this.Y0,this.slot.slotId),cZ(this.z0.X===2,"Expect started"),this.callback.Hy(this.slot,this.layout)),this.mX(L),uh(this.q4,this.slot,L.FM())):Gen(this,e)}; g.M.QY=function(e,L){T9$(this,e,L);var c=this.Lj();c?WZT(c,e,L)&&gwv(this,"skipped"):ken(this,"onSkipRequested")}; g.M.nW=function(e,L){var c;a:{if(c=this.Lj()){if(MFn(this),zO$(c,e,L)&&(e=srn(this,c,e,L),e!==void 0)){c={ZF:c,KIY:this.L1[e]};break a}}else ken(this,"SkipWithAdPodSkip");c=void 0}if(e=c)c=e.ZF,L=e.KIY,e=c.FM().layoutId,this.Ji()?ht(this,c,"skipped"):c.L9(c.FM(),"skipped"),c=L.FM().layoutId,this.aI.get().finishSegmentByCpn(e,c,yv("skipped",this.ZY))}; g.M.PQ=function(){Ir("Not used in html5_ssap_fix_layout_exit")}; g.M.QZ=function(e){var L;(L=this.Lj())==null||L.QZ(e)}; g.M.Bi=function(){Ir("Not used in html5_ssap_fix_layout_exit")}; g.M.Gn=function(e,L,c){var I;if(((I=this.Lj())==null?void 0:I.FM().layoutId)!==L.layoutId)return void Ir("requestToExitSubLayout: wrong layout");gwv(this,c)};g.z(RT,g.p);g.M=RT.prototype;g.M.JK=function(){return this.Qo.JK()}; g.M.FM=function(){return this.Qo.FM()}; g.M.init=function(){var e=Hv(this.FM().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");e&&(e.current=this);this.MF()}; g.M.MF=function(){this.Qo.init()}; g.M.release=function(){var e=Hv(this.FM().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");e&&(e.current=null);this.s3()}; g.M.s3=function(){this.Qo.release()}; g.M.pw=function(){this.Qo.pw()}; g.M.I$=function(){this.Qo.I$()}; g.M.QY=function(e,L){Ir("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.JK(),this.FM(),{requestingSlot:e,requestingLayout:L})}; g.M.startRendering=function(e){e.layoutId!==this.FM().layoutId?this.callback.Xc(this.JK(),e,new $K("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.FM().layoutId+("and LayoutType: "+this.FM().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.Be.get().addListener(this),nR(this.EY(),this),fvJ(this.Uq.get()),kqT(this.ZY.get())||hX$(this.Be.get()),this.Qo.startRendering(e))}; g.M.L9=function(e,L){this.lW=!0;this.Qo.L9(e,L);this.Be.get().V.aL();bDH(this.Zp.get(),{});e=SQ(this.Be.get(),1);e.isPaused()&&!g.E(e,2)&&this.Be.get().playVideo();this.Be.get().removeListener(this);this.lW&&this.Qo.m7()}; g.M.Hy=function(e,L){this.Qo.Hy(e,L)}; g.M.Gy=function(e,L,c){L.layoutId===this.FM().layoutId&&(this.lW=!1,eh(this.EY(),this));this.Qo.Gy(e,L,c);L.layoutId===this.FM().layoutId&&Bw(this.Uq.get())}; g.M.FC=function(e){this.Qo.FC(e)}; g.M.QZ=function(e){if(e.state.isError()){var L,c;this.Bi((L=e.state.lz)==null?void 0:L.errorCode,new $K("There was a player error during this media layout.",{playerErrorCode:(c=e.state.lz)==null?void 0:c.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.Qo.QZ(e)}; g.M.Bi=function(e,L,c){this.Qo.tQ(e,L,c)}; g.M.onFullscreenToggled=function(e){this.Qo.onFullscreenToggled(e)}; g.M.t9=function(e){this.Qo.t9(e)}; g.M.xN=function(e){this.Qo.xN(e)}; g.M.onVolumeChange=function(){this.Qo.onVolumeChange()}; g.M.Qy=function(){}; g.M.lm=function(){}; g.M.Pg=function(){}; g.M.wM=function(){}; g.M.ya=function(){}; g.M.WM=function(){}; g.M.o9=function(){}; g.M.MO=function(){}; g.M.zV=function(){}; g.M.Gr=function(){}; g.M.Aj=function(){}; g.M.J_=function(){}; g.M.dP=function(){};g.M=uP.prototype;g.M.JK=function(){return this.slot}; g.M.FM=function(){return this.layout}; g.M.init=function(){this.Jq.get().addListener(this);this.Be.get().addListener(this);var e=Hv(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var L=Hv(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.G){var c=this.Jq.get().QK.slice(-1)[0];c!==void 0&&(e=c.startSecs*1E3,L=(c.startSecs+c.jW)*1E3)}this.s2(e,L);var I;c=(I=this.M0.get().qR)==null?void 0:I.clientPlaybackNonce;I=this.layout.wT.adClientDataEntry;tt(this.Tm.get(),{daiStateTrigger:{filledAdsDurationMs:L-e,contentCpn:c, adClientData:I}});var B=this.Jq.get();B=JWM(B.Z,e,L);B!==null&&(tt(this.Tm.get(),{daiStateTrigger:{filledAdsDurationMs:B-e,contentCpn:c,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:I}}),this.aI.get().zB(B,L))}; g.M.release=function(){this.s3();this.Jq.get().removeListener(this);this.Be.get().removeListener(this)}; g.M.startRendering=function(){this.RL();this.callback.Hy(this.slot,this.layout)}; g.M.L9=function(e,L){this.BE(L);this.driftRecoveryMs!==null&&(OJ(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(VFf(this)-Hv(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.Be.get().V.t1()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.Gy(this.slot,this.layout,L)}; g.M.zg=function(){return!1}; g.M.Ci=function(e){var L=Hv(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),c=Hv(this.layout.clientMetadata,"metadata_type_layout_exit_ms");e*=1E3;if(L<=e&&e0&&OZ(this.X(),L)}; g.M.Pg=function(e){this.B.delete(e.slotId);for(var L=[],c=g.f(this.u5.values()),I=c.next();!I.done;I=c.next()){I=I.value;var B=I.trigger;B instanceof TU&&B.triggeringSlotId===e.slotId&&L.push(I)}L.length>0&&OZ(this.X(),L)}; g.M.wM=function(e){for(var L=[],c=g.f(this.u5.values()),I=c.next();!I.done;I=c.next()){I=I.value;var B=I.trigger;B instanceof Y9&&B.slotType===e.slotType&&B.X!==e.slotId&&L.push(I)}L.length>0&&OZ(this.X(),L)}; g.M.ya=function(e){this.Z.add(e.slotId);for(var L=[],c=g.f(this.u5.values()),I=c.next();!I.done;I=c.next())I=I.value,I.trigger instanceof IV&&e.slotId===I.trigger.triggeringSlotId&&L.push(I);L.length>0&&OZ(this.X(),L)}; g.M.WM=function(e){this.Z.delete(e.slotId);this.G.add(e.slotId);for(var L=[],c=g.f(this.u5.values()),I=c.next();!I.done;I=c.next())if(I=I.value,I.trigger instanceof Bf)e.slotId===I.trigger.triggeringSlotId&&L.push(I);else if(I.trigger instanceof $9){var B=I.trigger;e.slotId===B.slotId&&this.K.has(B.triggeringLayoutId)&&L.push(I)}L.length>0&&OZ(this.X(),L)}; g.M.o9=function(e){for(var L=[],c=g.f(this.u5.values()),I=c.next();!I.done;I=c.next())I=I.value,I.trigger instanceof xP&&e.slotId===I.trigger.triggeringSlotId&&L.push(I);L.length>0&&OZ(this.X(),L)}; g.M.MO=function(e){for(var L=[],c=g.f(this.u5.values()),I=c.next();!I.done;I=c.next())I=I.value,I.trigger instanceof oV&&e.slotId===I.trigger.triggeringSlotId&&L.push(I);L.length>0&&OZ(this.X(),L)}; g.M.zV=function(e,L){this.j.add(L.layoutId)}; g.M.Gr=function(e,L){this.j.delete(L.layoutId)}; g.M.Hy=function(e,L){this.K.add(L.layoutId);for(var c=[],I=g.f(this.u5.values()),B=I.next();!B.done;B=I.next())if(B=B.value,B.trigger instanceof js)L.layoutId===B.trigger.triggeringLayoutId&&c.push(B);else if(B.trigger instanceof KL){var x=B.trigger;e.slotType===x.slotType&&L.layoutType===x.layoutType&&L.layoutId!==x.X&&c.push(B)}else B.trigger instanceof $9&&(x=B.trigger,L.layoutId===x.triggeringLayoutId&&this.G.has(x.slotId)&&c.push(B));c.length>0&&OZ(this.X(),c)}; g.M.Gy=function(e,L,c){this.K.delete(L.layoutId);e=[];for(var I=g.f(this.u5.values()),B=I.next();!B.done;B=I.next())if(B=B.value,B.trigger instanceof lP&&L.layoutId===B.trigger.triggeringLayoutId&&e.push(B),B.trigger instanceof Hw){var x=B.trigger;L.layoutId===x.triggeringLayoutId&&x.X.includes(c)&&e.push(B)}e.length>0&&OZ(this.X(),e)}; g.M.Aj=function(){}; g.M.A_=function(){this.G.clear()}; g.M.AR=function(){};g.z(Yz,g.p);Yz.prototype.mA=function(e,L,c,I){if(this.u5.has(L.triggerId))throw new K("Tried to register duplicate trigger for slot.");if(!(L instanceof ZO))throw new K("Incorrect TriggerType: Tried to register trigger of type "+L.triggerType+" in CloseRequestedTriggerAdapter");this.u5.set(L.triggerId,new zU(e,L,c,I))}; Yz.prototype.EE=function(e){this.u5.delete(e.triggerId)};g.z(eX,g.p);eX.prototype.mA=function(e,L,c,I){if(this.u5.has(L.triggerId))throw new K("Tried to register duplicate trigger for slot.");if(!(L instanceof yX||L instanceof em))throw new K("Incorrect TriggerType: Tried to register trigger of type "+L.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.u5.set(L.triggerId,new zU(e,L,c,I))}; eX.prototype.EE=function(e){this.u5.delete(e.triggerId)}; eX.prototype.A_=function(e){for(var L=[],c=L.push,I=c.apply,B=[],x=g.f(this.u5.values()),S=x.next();!S.done;S=x.next())S=S.value,S.trigger instanceof yX&&S.trigger.E0===e&&B.push(S);I.call(c,L,g.V(B));c=L.push;I=c.apply;B=[];x=g.f(this.u5.values());for(S=x.next();!S.done;S=x.next())S=S.value,S.trigger instanceof em&&S.trigger.X!==e&&B.push(S);I.call(c,L,g.V(B));L.length&&OZ(this.X(),L)}; eX.prototype.AR=function(e){for(var L=[],c=L.push,I=c.apply,B=[],x=g.f(this.u5.values()),S=x.next();!S.done;S=x.next()){S=S.value;var h=S.trigger;h instanceof em&&h.X===e&&B.push(S)}I.call(c,L,g.V(B));L.length&&OZ(this.X(),L)};g.z(Lb,g.p);g.M=Lb.prototype;g.M.mA=function(e,L,c,I){if(this.u5.has(L.triggerId))throw new K("Tried to register duplicate trigger for slot.");var B="adtriggercuerange:"+L.triggerId;if(L instanceof EJ)XCf(this,e,L,c,I,B,L.X.start,L.X.end,L.E0,L.visible);else if(L instanceof pL)XCf(this,e,L,c,I,B,0x7ffffffffffff,0x8000000000000,L.E0,L.visible);else throw new K("Incorrect TriggerType: Tried to register trigger of type "+L.triggerType+" in CueRangeTriggerAdapter");}; g.M.EE=function(e){var L=this.u5.get(e.triggerId);L&&this.K9.get().removeCueRange(L.cueRangeId);this.u5.delete(e.triggerId)}; g.M.onCueRangeEnter=function(e){var L=Kyc(this,e);if(L&&(L=this.u5.get(L)))if(g.E(SQ(this.Be.get()),32))this.X.add(L.cueRangeId);else{var c=L==null?void 0:L.Yq.trigger;if(c instanceof EJ||c instanceof pL){if(oK(this.context.ZY.get())){var I=L.Yq.slot,B=L.Yq.layout,x={};this.context.SG.Z6("cre",(x.ca=L.Yq.category,x.tt=c.triggerType,x.st=I.slotType,x.lt=B==null?void 0:B.layoutType,x.cid=e,x))}OZ(this.K(),[L.Yq])}}}; g.M.onCueRangeExit=function(e){(e=Kyc(this,e))&&(e=this.u5.get(e))&&this.X.delete(e.cueRangeId)}; g.M.QZ=function(e){if(xw(e,16)<0){e=g.f(this.X);for(var L=e.next();!L.done;L=e.next())this.onCueRangeEnter(L.value,!0);this.X.clear()}}; g.M.lm=function(){}; g.M.Pg=function(){}; g.M.wM=function(){}; g.M.ya=function(){}; g.M.WM=function(){}; g.M.o9=function(){}; g.M.MO=function(){}; g.M.zV=function(){}; g.M.Gr=function(){}; g.M.Hy=function(){}; g.M.Gy=function(){}; g.M.Aj=function(){}; g.M.FC=function(){}; g.M.onFullscreenToggled=function(){}; g.M.t9=function(){}; g.M.Qy=function(){}; g.M.xN=function(){}; g.M.onVolumeChange=function(){}; g.M.J_=function(){}; g.M.dP=function(){};g.z(c$,g.p);g.M=c$.prototype; g.M.mA=function(e,L,c,I){if(this.K.has(L.triggerId)||this.Z.has(L.triggerId))throw new K("Tried to re-register the trigger.");e=new zU(e,L,c,I);if(e.trigger instanceof UJ)this.K.set(e.trigger.triggerId,e);else if(e.trigger instanceof Pw)this.Z.set(e.trigger.triggerId,e);else throw new K("Incorrect TriggerType: Tried to register trigger of type "+e.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.K.has(e.trigger.triggerId)&&e.slot.slotId===this.X&&OZ(this.G(),[e])}; g.M.EE=function(e){this.K.delete(e.triggerId);this.Z.delete(e.triggerId)}; g.M.n5=function(e){e=e.slotId;if(this.X!==e){var L=[];this.X!=null&&L.push.apply(L,g.V(YQr(this.Z,this.X)));e!=null&&L.push.apply(L,g.V(YQr(this.K,e)));this.X=e;L.length&&OZ(this.G(),L)}}; g.M.PJ=function(){}; g.M.Mj=function(){};g.z(Ih,g.p);g.M=Ih.prototype;g.M.mA=function(e,L,c,I){if(this.u5.has(L.triggerId))throw new K("Tried to register duplicate trigger for slot.");if(!(L instanceof nL))throw new K("Incorrect TriggerType: Tried to register trigger of type "+L.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.u5.set(L.triggerId,new zU(e,L,c,I))}; g.M.EE=function(e){this.u5.delete(e.triggerId)}; g.M.Hy=function(){}; g.M.Gy=function(){}; g.M.lm=function(){}; g.M.Pg=function(){}; g.M.wM=function(){}; g.M.ya=function(){}; g.M.WM=function(){}; g.M.o9=function(){}; g.M.MO=function(){}; g.M.zV=function(){}; g.M.Gr=function(){}; g.M.Aj=function(){};g.z(B$,g.p);g.M=B$.prototype;g.M.Aj=function(e,L){for(var c=[],I=g.f(this.u5.values()),B=I.next();!B.done;B=I.next()){B=B.value;var x=B.trigger;x.opportunityType===e&&(x.associatedSlotId&&x.associatedSlotId!==L||c.push(B))}c.length&&OZ(this.X(),c)}; g.M.mA=function(e,L,c,I){if(this.u5.has(L.triggerId))throw new K("Tried to register duplicate trigger for slot.");if(!(L instanceof SIM))throw new K("Incorrect TriggerType: Tried to register trigger of type "+L.triggerType+" in OpportunityEventTriggerAdapter");this.u5.set(L.triggerId,new zU(e,L,c,I))}; g.M.EE=function(e){this.u5.delete(e.triggerId)}; g.M.lm=function(){}; g.M.Pg=function(){}; g.M.wM=function(){}; g.M.ya=function(){}; g.M.WM=function(){}; g.M.o9=function(){}; g.M.MO=function(){}; g.M.zV=function(){}; g.M.Gr=function(){}; g.M.Hy=function(){}; g.M.Gy=function(){};g.z(xB,g.p);g.M=xB.prototype;g.M.mA=function(e,L,c,I){e=new zU(e,L,c,I);if(L instanceof QX||L instanceof Xa||L instanceof dh||L instanceof LP||L instanceof SvM){if(this.u5.has(L.triggerId))throw new K("Tried to register duplicate trigger for slot.");this.u5.set(L.triggerId,e)}else throw new K("Incorrect TriggerType: Tried to register trigger of type "+L.triggerType+" in PrefetchTriggerAdapter");}; g.M.EE=function(e){this.u5.delete(e.triggerId)}; g.M.lm=function(e){var L=e.slotFulfillmentTriggers.find(function(c){return c instanceof QX}); L&&(oh(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",L.breakDurationMs,new Set([e.slotId]),!0),T5(this.Tm.get(),"ads_css","sid."+e.slotId+";bd."+L.breakDurationMs))}; g.M.Pg=function(){}; g.M.wM=function(){}; g.M.ya=function(){}; g.M.WM=function(){}; g.M.o9=function(){}; g.M.MO=function(){}; g.M.zV=function(){}; g.M.Gr=function(){}; g.M.Hy=function(){}; g.M.Gy=function(){}; g.M.Aj=function(){}; g.M.zg=function(e){var L=this;if(!this.X)return Ir("Unexpected cue break before fetch instructions are available"),!1;this.K&&this.K.stop();this.B&&g.HT(this.B);var c=clr(this,e);if(!c){var I=e96(this),B=this.T!==void 0&&Date.now()<=this.T+1E4;T5(this.Tm.get(),"ads_ncfs","cid."+e.identifier+";cd."+e.jW.toFixed(3)+";ccs."+B+";cfa."+this.G+";bdc."+I.length+";"+I.slice(0,6).map(function(x){return";bd."+x}).join("")); return B?(mM(this.vg,this.X,e),!0):!1}(new g.j9(function(){var x=c.trigger,S=c.slot;oh(L,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",x.breakDurationMs,new Set,!0);oh(L,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",x.breakDurationMs,new Set,!1);for(var h=0,R=g.f(L.u5.values()),u=R.next();!u.done;u=R.next()){u=u.value;var t=u.trigger;u.slot.slotId===S.slotId&&(L.u5.delete(t.triggerId),h++)}T5(L.Tm.get(),"ads_csf","sid."+S.slotId+";bd."+x.breakDurationMs+";dt."+h)}, 10)).start(); return!0}; g.M.Ci=function(){}; g.M.A_=function(e){var L=this;this.G=!1;this.T=Date.now();if(this.X&&this.X.contentCpn!==e)Ir("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:e,fetchInstructionsCpn:this.X.contentCpn}),SX(this);else{this.Z=new g.j9(function(){if(L.G)delete L.Z;else{var I=L.Be.get().getGetAdBreakContext(),B;if(Number(I==null?void 0:(B=I.livePlaybackPosition)==null?void 0:B.utcTimeMillis)>0)delete L.Z,LuR(L);else{var x;(x=L.Z)==null||x.start()}}},200); var c;(c=this.Z)==null||c.start()}}; g.M.AR=function(e){this.X&&this.X.contentCpn!==e&&Ir("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:e,fetchInstructionsCpn:this.X.contentCpn},!0);SX(this)}; g.M.Jt=function(e){var L=this;if(this.X)Ir("Unexpected multiple fetch instructions for the current content");else{this.X=e;e=ByJ(e);this.K=new g.j9(function(){LuR(L)},e?e:6E5); this.K.start();this.B=new g.j9(function(){L.X&&(L.K&&(L.K.stop(),L.K.start()),nmx(L,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},Iwn(this.X)); e=this.Be.get().getCurrentTimeSec(1,!1);for(var c=g.f(this.Jq.get().QK),I=c.next();!I.done;I=c.next())I=I.value,T5(this.Tm.get(),"nocache","ct."+Date.now()+";cmt."+e+";d."+I.jW.toFixed(3)+";tw."+(I.startSecs-e)+";cid."+I.identifier+";")}}; g.M.KS=function(){g.p.prototype.KS.call(this);SX(this)};g.z(r8,g.p);g.M=r8.prototype;g.M.mA=function(e,L,c,I){if(this.u5.has(L.triggerId))throw new K("Tried to register duplicate trigger for slot.");if(!(L instanceof Mb))throw new K("Incorrect TriggerType: Tried to register trigger of type "+L.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.u5.set(L.triggerId,new zU(e,L,c,I));e=this.X.has(L.triggeringLayoutId)?this.X.get(L.triggeringLayoutId):new Set;e.add(L);this.X.set(L.triggeringLayoutId,e)}; g.M.EE=function(e){this.u5.delete(e.triggerId);if(!(e instanceof Mb))throw new K("Incorrect TriggerType: Tried to unregister trigger of type "+e.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var L=this.K.get(e.triggerId);L&&(L.dispose(),this.K.delete(e.triggerId));if(L=this.X.get(e.triggeringLayoutId))L.delete(e),L.size===0&&this.X.delete(e.triggeringLayoutId)}; g.M.lm=function(){}; g.M.Pg=function(){}; g.M.wM=function(){}; g.M.ya=function(){}; g.M.WM=function(){}; g.M.o9=function(){}; g.M.MO=function(){}; g.M.zV=function(){}; g.M.Gr=function(){}; g.M.Aj=function(){}; g.M.Hy=function(e,L){var c=this;if(this.X.has(L.layoutId)){e=this.X.get(L.layoutId);e=g.f(e);var I=e.next();for(L={};!I.done;L={k6:void 0},I=e.next())L.k6=I.value,I=new g.j9(function(B){return function(){var x=c.u5.get(B.k6.triggerId);OZ(c.Z(),[x])}}(L),L.k6.durationMs),I.start(),this.K.set(L.k6.triggerId,I)}}; g.M.Gy=function(){};g.z(hR,g.p);hR.prototype.mA=function(e,L,c,I){if(this.u5.has(L.triggerId))throw new K("Tried to register duplicate trigger for slot.");if(!(L instanceof Nm))throw new K("Incorrect TriggerType: Tried to register trigger of type "+L.triggerType+" in VideoTransitionTriggerAdapter.");this.u5.set(L.triggerId,new zU(e,L,c,I))}; hR.prototype.EE=function(e){this.u5.delete(e.triggerId)};OT.prototype.lw=function(e){return e.kind==="AD_PLACEMENT_KIND_START"};g.z(W$,g.p);g.M=W$.prototype;g.M.logEvent=function(e){this.fG(e)}; g.M.K6=function(e,L,c){this.fG(e,void 0,void 0,void 0,L,void 0,void 0,void 0,L.adSlotLoggingData,void 0,void 0,c)}; g.M.Dn=function(e,L,c,I){this.fG(e,void 0,void 0,void 0,L,c?c:void 0,void 0,void 0,L.adSlotLoggingData,c?c.adLayoutLoggingData:void 0,void 0,I)}; g.M.GJ=function(e,L,c,I){Jz(this.ZY.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+e,"trigger:",c,"slot:",L,"layout:",I);UE(this.X.get())&&this.fG(e,void 0,void 0,void 0,L,I?I:void 0,void 0,c,L.adSlotLoggingData,I?I.adLayoutLoggingData:void 0)}; g.M.E4=function(e,L,c,I,B){this.fG(e,L,c,I,void 0,void 0,void 0,void 0,void 0,void 0,void 0,B)}; g.M.eF=function(e,L,c,I){this.fG("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,c,I,void 0,void 0,c.adSlotLoggingData,I?I.adLayoutLoggingData:void 0,{errorType:e,errorMessage:L})}; g.M.fG=function(e,L,c,I,B,x,S,h,R,u,t,O){var q=this;O=O===void 0?0:O;Jz(this.ZY.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+e,"slot:",B,"layout:",x,"ping:",S,"Opportunity:",{opportunityType:L,associatedSlotId:c,Sx0:I,iw$:h,adSlotLoggingData:R,adLayoutLoggingData:u});try{var T=function(){if(!q.ZY.get().V.S().Y("html5_disable_client_tmp_logs")&&e!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){e||Ir("Empty PACF event type",B,x);var W=UE(q.X.get()),A={eventType:e,eventOrder:++q.eventCount},b={}; B&&(b.slotData=dy(W,B));x&&(b.layoutData=y$r(W,x));S&&(b.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:S.X.serializedAdPingMetadata,pingIndex:S.index});h&&(b.triggerData=Q0(h.trigger,h.category));L&&(b.opportunityData=ZGM(W,L,c,I));W={organicPlaybackContext:{contentCpn:w1(q.M0.get(),1).clientPlaybackNonce}};W.organicPlaybackContext.isLivePlayback=w1(q.M0.get(),1).Wy;var J;W.organicPlaybackContext.isMdxPlayback=(J=w1(q.M0.get(),1))==null?void 0:J.isMdxPlayback; var w;if((w=w1(q.M0.get(),1))==null?0:w.daiEnabled)W.organicPlaybackContext.isDaiContent=!0;var C;if(J=(C=w1(q.M0.get(),2))==null?void 0:C.clientPlaybackNonce)W.adVideoPlaybackContext={adVideoCpn:J};W&&(b.externalContext=W);A.adClientData=b;R&&(A.serializedSlotAdServingData=R.serializedSlotAdServingDataEntry);u&&(A.serializedAdServingData=u.serializedAdServingDataEntry);t&&(A.errorInfo=t);g.et("adsClientStateChange",{adsClientEvent:A})}}; O&&O>0?g.HI(g.PI(),function(){return T()},O):T()}catch(W){Jz(this.ZY.get(),"html5_log_pacf_logging_errors")&&g.HI(g.PI(),function(){Ir(W instanceof Error?W:String(W),B,x,{pacf_message:"exception during pacf logging"})})}};var mlg=new Set("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED".split(" "));g.z(M5,W$);g.M=M5.prototype; g.M.K6=function(e,L,c){W$.prototype.K6.call(this,e,L,c);oK(this.ZY.get())&&(c={},this.context.SG.Z6("pacf",(c.et=e,c.st=L.slotType,c.si=L.slotId,c)))}; g.M.Dn=function(e,L,c,I){var B=mlg.has(e);W$.prototype.Dn.call(this,e,L,c,I);oK(this.ZY.get(),B)&&(I={},this.context.SG.Z6("pacf",(I.et=e,I.st=L.slotType,I.si=L.slotId,I.lt=c==null?void 0:c.layoutType,I.li=c==null?void 0:c.layoutId,I.p_ac=c==null?void 0:c.layoutId,I)))}; g.M.E4=function(e,L,c,I,B){W$.prototype.E4.call(this,e,L,c,I,B);oK(this.ZY.get())&&(c={},this.context.SG.Z6("pacf",(c.et=e,c.ot=L,c.ss=I==null?void 0:I.length,c)))}; g.M.GJ=function(e,L,c,I){W$.prototype.GJ.call(this,e,L,c,I);if(oK(this.ZY.get())){var B={};this.context.SG.Z6("pacf",(B.et=e,B.tt=c.trigger.triggerType,B.tc=c.category,B.st=L.slotType,B.si=L.slotId,B.lt=I==null?void 0:I.layoutType,B.li=I==null?void 0:I.layoutId,B.p_ac=I==null?void 0:I.layoutId,B))}}; g.M.eF=function(e,L,c,I){W$.prototype.eF.call(this,e,L,c,I);if(oK(this.ZY.get(),!0)){var B={};this.context.SG.Z6("perror",(B.ert=e,B.erm=L,B.st=c.slotType,B.si=c.slotId,B.lt=I==null?void 0:I.layoutType,B.li=I==null?void 0:I.layoutId,B.p_ac=I==null?void 0:I.layoutId,B))}}; g.M.fG=function(e,L,c,I,B,x,S,h,R,u,t){var O=this.ZY.get();g.R2(O.V.S())?(O=this.ZY.get(),O=g.X3(O.V.S().experiments,"H5_async_logging_delay_ms")):O=void 0;W$.prototype.fG.call(this,e,L,c,I,B,x,S,h,R,u,t,O)};zR.prototype.clear=function(){this.X.clear()};sT.prototype.state=function(){return this.X==="fulfilled"?{state:"fulfilled",value:this.result}:this.X==="rejected"?{state:"rejected",reason:this.error}:{state:"pending"}}; sT.prototype.G=function(e){fb(e)||v$(e)?GR(AR(e),this.G.bind(this),this.reject.bind(this)):(this.X="fulfilled",this.result=e,is(this))}; sT.prototype.reject=function(e){this.X="rejected";this.error=e;is(this)}; var v$=on(function(e){return nnJ(e)?e instanceof sT:!1});Object.freeze({hB$:function(e){var L=Vg(e);return GR(JR(L,function(c){return L[c].X==="rejected"}),function(c){return Number.isNaN(c)?L.map(function(I){return I.state().value}):L[c]})}, s4S:function(e){var L=Vg(e);return GR(JR(L),function(){return L.map(function(c){return c.state()})})}, aye:function(e){var L=Vg(e);return GR(JR(L,function(c){return L[c].X==="fulfilled"}),function(c){return Number.isNaN(c)?Fd(new AggregateError(L.map(function(I){return I.state().reason}))):L[c].state().value})}, KUq:function(e){var L=Vg(e);return GR(JR(L,function(){return!0}),function(c){return L[c]})}});var Cb=window.aB$||"en";yg.prototype.Q1=function(e){this.client=e}; yg.prototype.X=function(){this.clear();this.csn=g.qy()}; yg.prototype.clear=function(){this.Z.clear();this.K.clear();this.G.clear();this.csn=null};pb.prototype.Q1=function(e){g.Hu(Zj().Q1).bind(Zj())(e)}; pb.prototype.clear=function(){g.Hu(Zj().clear).bind(Zj())()};g.M=$B.prototype;g.M.Q1=function(e){this.client=e}; g.M.H0=function(e,L){var c=this;L=L===void 0?{}:L;g.Hu(function(){var I,B,x,S=((I=g.Q(e==null?void 0:e.commandMetadata,g.gS))==null?void 0:I.rootVe)||((B=g.Q(e==null?void 0:e.commandMetadata,c0L))==null?void 0:(x=B.screenVisualElement)==null?void 0:x.uiType);if(S){I=g.Q(e==null?void 0:e.commandMetadata,f57);if(I==null?0:I.parentTrackingParams){var h=g.uF(I.parentTrackingParams);if(I.parentCsn)var R=I.parentCsn}else L.clickedVisualElement?h=L.clickedVisualElement:e.clickTrackingParams&&(h=g.uF(e.clickTrackingParams)); a:{I=g.Q(e,g.MD);B=g.Q(e,q3U);if(I){if(B=FuT(I,"VIDEO")){I={token:B,videoId:I.videoId};break a}}else if(B&&(I=FuT(B,"PLAYLIST"))){I={token:I,playlistId:B.playlistId};break a}I=void 0}L=Object.assign({},{cttAuthInfo:I,parentCsn:R},L);if(g.uL("expectation_logging")){var u;L.loggingExpectations=((u=g.Q(e==null?void 0:e.commandMetadata,c0L))==null?void 0:u.loggingExpectations)||void 0}H$(c,S,h,L)}else g.F7(new g.yu("Error: Trying to create a new screen without a rootVeType",e))})()}; g.M.clickCommand=function(e,L,c){e=e.clickTrackingParams;c=c===void 0?0:c;e?(c=g.qy(c===void 0?0:c))?(jB(this.client,c,g.uF(e),L),L=!0):L=!1:L=!1;return L}; g.M.stateChanged=function(e,L,c){this.visualElementStateChanged(g.uF(e),L,c===void 0?0:c)}; g.M.visualElementStateChanged=function(e,L,c){c=c===void 0?0:c;c===0&&this.K.has(c)?this.J.push([e,L]):Djn(this,e,L,c)};d8.prototype.fetch=function(e,L,c){var I=this,B=VpH(e,L,c);return new Promise(function(x,S){function h(){if(c==null?0:c.B1)try{var u=I.handleResponse(e,B.status,B.response,c);x(u)}catch(t){S(t)}else x(I.handleResponse(e,B.status,B.response,c))} B.onerror=h;B.onload=h;var R;B.send((R=L.body)!=null?R:null)})}; d8.prototype.handleResponse=function(e,L,c,I){c=c.replace(")]}'","");try{var B=JSON.parse(c)}catch(x){g.F7(new g.yu("JSON parsing failed after XHR fetch",e,L,c));if((I==null?0:I.B1)&&c)throw new g.Ze(1,"JSON parsing failed after XHR fetch");B={}}L!==200&&(g.F7(new g.yu("XHR API fetch failed",e,L,c)),B=Object.assign({},B,{errorMetadata:{status:L}}));return B};UT.getInstance=function(){var e=g.BU("ytglobal.storage_");e||(e=new UT,g.IL("ytglobal.storage_",e));return e}; UT.prototype.estimate=function(){var e,L,c;return g.Z(function(I){e=navigator;return((L=e.storage)==null?0:L.estimate)?I.return(e.storage.estimate()):((c=e.webkitTemporaryStorage)==null?0:c.queryUsageAndQuota)?I.return(CNn()):I.return()})}; g.IL("ytglobal.storageClass_",UT);Y5.prototype.C6=function(e){this.handleError(e)}; Y5.prototype.logEvent=function(e,L){switch(e){case "IDB_DATA_CORRUPTED":g.uL("idb_data_corrupted_killswitch")||this.X("idbDataCorrupted",L);break;case "IDB_UNEXPECTEDLY_CLOSED":this.X("idbUnexpectedlyClosed",L);break;case "IS_SUPPORTED_COMPLETED":g.uL("idb_is_supported_completed_killswitch")||this.X("idbIsSupportedCompleted",L);break;case "QUOTA_EXCEEDED":NyR(this,L);break;case "TRANSACTION_ENDED":this.Z&&Math.random()<=.1&&this.X("idbTransactionEnded",L);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":e= Object.assign({},L,{hasWindowUnloaded:this.K}),this.X("idbTransactionAborted",e)}};var n4={},ZPr=g.PK("yt-player-local-media",{ib:(n4.index={YV:2},n4.media={YV:2},n4.captions={YV:5},n4),shared:!1,upgrade:function(e,L){L(2)&&(g.vK(e,"index"),g.vK(e,"media"));L(5)&&g.vK(e,"captions");L(6)&&(f$(e,"metadata"),f$(e,"playerdata"))}, version:5});var yjM={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},eK;a:{var L7=g.yc();L7=L7.toLowerCase();if(g.Vc(L7,"android")){var ZUM=L7.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(ZUM){var pzh=parseFloat(ZUM[1]);if(pzh<100){eK=pzh;break a}}var $lM=L7.match("("+Object.keys(yjM).join("|")+")");eK=$lM?yjM[$lM[0]]:0}else eK=void 0}var Yy=eK,Kl=Yy>=0;var J1M=window;var mj6=CU(function(){var e,L;return(L=(e=window).matchMedia)==null?void 0:L.call(e,"(prefers-reduced-motion: reduce)").matches});var Xd;g.ET=new OQ;Xd=0;var Oh=lwM()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.ZQ?!0:!1;var nb={f3:function(e,L){e[r[9]](0,L)}, Pr:function(e,L){var c=e[0];e[0]=e[L%e[r[1]]];e[L%e[r[1]]]=c}, cd:function(e){e[r[18]]()}};var aOR={UO7:"adunit",vNS:"detailpage",xSl:"editpage",DS0:"embedded",MX$:"leanback",vkW:"previewpage",l2e:"profilepage",D9:"unplugged",J1e:"playlistoverview",PC9:"sponsorshipsoffer",YAY:"shortspage",FR0:"handlesclaiming",i2M:"immersivelivepage",FKq:"creatormusic",Ey9:"immersivelivepreviewpage",an0:"admintoolyurt",RX_:"shortsaudiopivot",oN0:"consumption"};var UdH=2592E3;var c_,jFe,ZB;c_={};g.qB=(c_.STOP_EVENT_PROPAGATION="html5-stop-propagation",c_.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",c_.IV_DRAWER_OPEN="ytp-iv-drawer-open",c_.MAIN_VIDEO="html5-main-video",c_.VIDEO_CONTAINER="html5-video-container",c_.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",c_.HOUSE_BRAND="house-brand",c_);jFe={};ZB=(jFe.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",jFe.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",jFe);var I4f={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var StT={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},rEf={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"},jIr={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var B2r={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.MB.prototype.getLanguageInfo=function(){return this.l5}; g.MB.prototype.getXtags=function(){if(!this.xtags){var e=this.id.split(";");e.length>1&&(this.xtags=e[1])}return this.xtags}; g.MB.prototype.toString=function(){return this.l5.name}; g.MB.prototype.getLanguageInfo=g.MB.prototype.getLanguageInfo;zv.prototype.equals=function(e){return this.K===e.K&&this.X===e.X&&this.Z===e.Z&&this.reason===e.reason&&(!vB||this.r_===e.r_)}; zv.prototype.isLocked=function(){return this.Z&&!!this.K&&this.K===this.X}; zv.prototype.compose=function(e){if(e.Z&&fX(e))return h1;if(e.Z||fX(this))return e;if(this.Z||fX(e))return this;var L=this.K&&e.K?Math.max(this.K,e.K):this.K||e.K,c=this.X&&e.X?Math.min(this.X,e.X):this.X||e.X;L=Math.min(L,c);var I=0;vB&&(I=this.r_!==0&&e.r_!==0?Math.min(this.r_,e.r_):this.r_===0?e.r_:this.r_);return vB&&L===this.K&&c===this.X&&I===this.r_||!vB&&L===this.K&&c===this.X?this:vB?new zv(L,c,!1,c===this.X&&I===this.r_?this.reason:e.reason,I):new zv(L,c,!1,c===this.X?this.reason:e.reason)}; zv.prototype.G=function(e){return!e.video||vB&&this.r_!==0&&this.r_=0}; g.M.ub=function(){var e=this.segments[this.segments.length-1];return e?e.endTime:NaN}; g.M.S6=function(){return this.segments[0].startTime}; g.M.QO=function(){return this.segments.length}; g.M.tR=function(){return 0}; g.M.kI=function(e){return(e=this.TB(e))?e.ud:-1}; g.M.hV=function(e){return(e=this.Pt(e))?e.sourceURL:""}; g.M.getStartTime=function(e){return(e=this.Pt(e))?e.startTime:0}; g.M.yu=function(e){return this.getStartTime(e)+this.getDuration(e)}; g.M.ZQ=BM(1);g.M.isLoaded=function(){return this.segments.length>0}; g.M.Pt=function(e){if(this.X&&this.X.ud===e)return this.X;e=g.l7(this.segments,new PB(e,0,0,0,""),function(L,c){return L.ud-c.ud}); return this.X=e>=0?this.segments[e]:null}; g.M.TB=function(e){if(this.X&&this.X.startTime<=e&&e=0?this.segments[e]:this.segments[Math.max(0,-e-2)]}; g.M.append=function(e){if(e.length)if(e=g.VM(e),this.segments.length){var L=this.segments.length?g.zL(this.segments).endTime:0,c=e[0].ud-this.Aw();c>1&&FfH(this.segments);for(c=c>0?0:-c+1;ce.ud&&this.index.JB()<=e.ud+1}; g.M.update=function(e,L,c){this.index.append(e);yEn(this.index,c);e=this.index;e.K=L;e.Z="update"}; g.M.Y4=function(){return this.jN()?!0:$c.prototype.Y4.call(this)}; g.M.HH=function(e,L){var c=this.index.hV(e),I=this.index.getStartTime(e),B=this.index.getDuration(e),x;L?B=x=0:x=this.info.r_>0?this.info.r_*B:1E3;return new nw([new QC(3,this,void 0,"liveCreateRequestInfoForSegment",e,I,B,0,x,!L)],c)}; g.M.CQ=function(){return this.jN()?0:this.initRange.length}; g.M.Wa=function(){return!1};oZ.prototype.update=function(e){var L=void 0;this.K&&(L=this.K);var c=new oZ,I=Array.from(e.getElementsByTagName("S"));if(I.length){var B=+B6(e,"timescale")||1,x=(+I[0].getAttribute("t")||0)/B,S=+B6(e,"startNumber")||0;c.G=x;var h=L?L.startSecs+L.jW:0,R=Date.parse(JQR(B6(e,"yt:segmentIngestTime")))/1E3;c.B=e.parentElement.tagName==="SegmentTemplate";c.B&&(c.T=B6(e,"media"));e=L?S-L.ud:1;c.j=e>0?0:-e+1;e=g.f(I);for(I=e.next();!I.done;I=e.next()){I=I.value;for(var u=+I.getAttribute("d")/B,t=(+I.getAttribute("yt:sid")|| 0)/B,O=+I.getAttribute("r")||0,q=0;q<=O;q++)if(L&&S<=L.ud)S++;else{var T=new D8n(S,h,u,R+t,x);c.X.push(T);var W=I;var A=B,b=T.startSecs;T=W.getAttribute("yt:cuepointTimeOffset");var J=W.getAttribute("yt:cuepointDuration");if(T&&J){T=Number(T);b=-T/A+b;A=Number(J)/A;J=W.getAttribute("yt:cuepointContext")||null;var w=W.getAttribute("yt:cuepointIdentifier")||"";W=W.getAttribute("yt:cuepointEvent")||"";W=new Lw(b,A,J,w,l1N[W]||"unknown",T)}else W=null;W&&c.Z.push(W);S++;h+=u;x+=u;R+=u+t}}c.X.length&& (c.K=g.zL(c.X))}this.j=c.j;this.K=c.K||this.K;g.mN(this.X,c.X);g.mN(this.Z,c.Z);this.B=c.B;this.T=c.T;this.G===-1&&(this.G=c.getStreamTimeOffset())}; oZ.prototype.getStreamTimeOffset=function(){return this.G===-1?0:this.G};g.z(rE,g.Qp);g.M=rE.prototype;g.M.wl=function(){return this.WR}; g.M.nX=function(e,L){e=hB(this,e);return e>=0&&(L||!this.segments[e].pending)}; g.M.JB=function(){return this.ul?this.segments.length?this.TB(this.S6()).ud:-1:g.Qp.prototype.JB.call(this)}; g.M.S6=function(){if(this.tq)return 0;if(!this.ul)return g.Qp.prototype.S6.call(this);if(!this.segments.length)return 0;var e=Math.max(g.zL(this.segments).endTime-this.Ig,0);return this.kf>0&&this.TB(e).ud0)return this.P_/1E3;if(!this.segments.length)return g.Qp.prototype.ub.call(this);var e=this.Aw();if(!this.ul||e<=this.segments[this.segments.length-1].ud)e=this.segments[this.segments.length-1];else{var L=this.segments[this.segments.length-1];e=new PB(e,Math.max(0,L.startTime-(L.ud-e)*this.WR),this.WR,0,"sq/"+e,void 0,void 0,!0)}return this.tq?Math.min(this.Ig,e.endTime):e.endTime}; g.M.QO=function(){return this.ul?this.segments.length?this.Aw()-this.JB()+1:0:g.Qp.prototype.QO.call(this)}; g.M.Aw=function(){var e=Math.min(this.YN,Math.max(g.Qp.prototype.Aw.call(this),this.XO)),L=this.Ig*1E3;L=this.P_>0&&this.P_0&&this.XO>0&&!L&&(L=this.TB(this.Ig))&&(e=Math.min(L.ud-1,e));return e}; g.M.uW=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.M.xB=function(e){var L=hB(this,e.ud);if(L>=0)this.segments[L]=e;else if(this.segments.splice(-(L+1),0,e),this.o3&&e.ud%(300/this.WR)===0){var c=this.segments[0].ud,I=Math.floor(this.o3/this.WR);e=e.ud-I;L=-(L+1)-I;L>0&&e>c&&(this.segments=this.segments.slice(L))}}; g.M.kR=function(){return this.XO}; g.M.bS=function(e){return S6?!this.K&&e>=0&&this.Aw()<=e:g.Qp.prototype.bS.call(this,e)}; g.M.TB=function(e){if(!this.ul)return g.Qp.prototype.TB.call(this,e);if(!this.segments.length)return null;var L=this.segments[this.segments.length-1];if(e=L.endTime)L=L.ud+Math.floor((e-L.endTime)/this.WR+1);else{L=PU(this.segments,function(I){return e=I.endTime?1:0}); if(L>=0)return this.segments[L];var c=-(L+1);L=this.segments[c-1];c=this.segments[c];L=Math.floor((e-L.endTime)/((c.startTime-L.endTime)/(c.ud-L.ud-1))+1)+L.ud}return this.Pt(L)}; g.M.Pt=function(e){if(!this.ul)return g.Qp.prototype.Pt.call(this,e);if(!this.segments.length)return null;var L=hB(this,e);if(L>=0)return this.segments[L];var c=-(L+1);L=this.WR;if(c===0)var I=Math.max(0,this.segments[0].startTime-(this.segments[0].ud-e)*L);else c===this.segments.length?(I=this.segments[this.segments.length-1],I=I.endTime+(e-I.ud-1)*L):(I=this.segments[c-1],L=this.segments[c],L=(L.startTime-I.endTime)/(L.ud-I.ud-1),I=I.endTime+(e-I.ud-1)*L);return new PB(e,I,L,0,"sq/"+e,void 0,void 0, !0)}; var S6=!1;g.z(RZ,IZ);g.M=RZ.prototype;g.M.qn=function(){return!0}; g.M.Y4=function(){return!0}; g.M.nw=function(e){return this.Sw()&&e.Z&&!e.B||!e.X.index.bS(e.ud)}; g.M.Wm=function(){}; g.M.yE=function(e,L){return typeof e!=="number"||isFinite(e)?IZ.prototype.yE.call(this,e,L===void 0?!1:L):new nw([new QC(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.rP,void 0,this.rP*this.info.r_)],"")}; g.M.HH=function(e,L){var c=c===void 0?!1:c;if(this.index.nX(e))return IZ.prototype.HH.call(this,e,L);var I=this.index.getStartTime(e),B=Math.round(this.rP*this.info.r_),x=this.rP;L&&(x=B=0);return new nw([new QC(c?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",e,I,x,void 0,B,!L)],e>=0?"sq/"+e:"")};g.z(u2,$c);g.M=u2.prototype;g.M.g7=function(){return!1}; g.M.Sw=function(){return!1}; g.M.qn=function(){return!1}; g.M.Wm=function(){return new nw([new QC(1,this,void 0,"otfInit")],this.B)}; g.M.lV=function(){return null}; g.M.Ar=function(e){this.nw(e);return p1M(this,Xw(e),!1)}; g.M.yE=function(e,L){L=L===void 0?!1:L;e=this.index.kI(e);L&&(e=Math.min(this.index.Aw(),e+1));return p1M(this,e,!0)}; g.M.XB=function(e){e.info.type===1&&(this.X||(this.X=o8(e.K)),e.X&&e.X.uri==="http://youtube.com/streaming/otf/durations/112015"&&$8n(this,e.X))}; g.M.nw=function(e){return e.Z===0?!0:this.index.Aw()>e.ud&&this.index.JB()<=e.ud+1}; g.M.CQ=function(){return 0}; g.M.Wa=function(){return!1};g.tB.prototype.info=function(){}; g.tB.prototype.debug=function(){}; g.tB.prototype.X=function(e){OY.apply(null,[5,this.tag,e].concat(g.V(g.HM.apply(1,arguments))))}; var lhc=new Map,d8J=new Map,PyH=new function(){var e=this;this.X=new Map;this.kx={Ile:function(){return e.X}}};g.M=g.fk.prototype;g.M.nX=function(e){return e<=this.Aw()}; g.M.tR=function(e){return this.offsets[e]}; g.M.getStartTime=function(e){return this.startTicks[e]/this.X}; g.M.yu=function(e){return this.getStartTime(e)+this.getDuration(e)}; g.M.ZQ=BM(0);g.M.sR=function(){return NaN}; g.M.getDuration=function(e){e=this.W9(e);return e>=0?e/this.X:-1}; g.M.W9=function(e){return e+1=0}; g.M.ub=function(){return this.K?this.startTicks[this.count]/this.X:NaN}; g.M.S6=function(){return 0}; g.M.QO=function(){return this.count}; g.M.hV=function(){return""}; g.M.kI=function(e){e=g.l7(this.startTicks.subarray(0,this.count),e*this.X);return e>=0?e:Math.max(0,-e-2)}; g.M.isLoaded=function(){return this.Aw()>=0}; g.M.FG=function(e,L){if(e>=this.Aw())return 0;var c=0;for(L=this.getStartTime(e)+L;ethis.getStartTime(e);e++)c=Math.max(c,cfH(this,e)/this.getDuration(e));return c}; g.M.resize=function(e){e+=2;var L=this.offsets;this.offsets=new Float64Array(e+1);var c=this.startTicks;this.startTicks=new Float64Array(e+1);for(e=0;e0&&e&&(c=c.range.end+1,e=Math.min(e,this.info.contentLength-c),e>0&&I.push(new QC(4,this,l$(c,e),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,L)));return new nw(I)}; g.M.XB=function(e){if(e.info.type===1){if(this.X)return;this.X=o8(e.K)}else if(e.info.type===2){if(this.B||this.index.Aw()>=0)return;if(g.Cn(this.info)){var L=this.index,c=g.T6(e);e=e.info.range.start;var I=g.xc(c,0,1936286840);c=K5v(I);L.X=c.timescale;var B=c.gN;L.offsets[0]=c.U_+e+I.size;L.startTicks[0]=B;L.K=!0;e=c.SU.length;for(I=0;I0&&e===x[0].Kl)for(e=0;e=L+c)break}B.length||(e=new g.yu("b189619593",""+e,""+L,""+c),g.A9(e));return new nw(B)}; g.M.XU=function(e){for(var L=this.qf(e.info),c=e.info.range.start+e.info.K,I=[],B=0;B=this.index.tR(c+1);)c++;return this.yr(c,L,e.Z).bd}; g.M.nw=function(e){e.C2();return this.Y4()?!0:e.range.end+1this.info.contentLength&&(L=new jJ(L.start,this.info.contentLength-1)),new nw([new QC(4,e.X,L,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,e.clipId)]);e.type===4&&(e=this.qf(e),e=e[e.length-1]);var c=0,I=e.range.start+e.K+e.Z;e.type===3&&(e.C2(),c=e.ud,I===e.range.end+1&&(c+=1));return this.yr(c,I,L)}; g.M.Ar=function(){return null}; g.M.yE=function(e,L){L=L===void 0?!1:L;e=this.index.kI(e);L&&(e=Math.min(this.index.Aw(),e+1));return this.yr(e,this.index.tR(e),0,void 0)}; g.M.g7=function(){return!0}; g.M.Sw=function(){return!0}; g.M.qn=function(){return!1}; g.M.CQ=function(){return this.indexRange.length+this.initRange.length}; g.M.Wa=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var B_={},z4$=(B_.COLOR_PRIMARIES_BT709="bt709",B_.COLOR_PRIMARIES_BT2020="bt2020",B_.COLOR_PRIMARIES_UNKNOWN=null,B_.COLOR_PRIMARIES_UNSPECIFIED=null,B_),xI={},B1n=(xI.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",xI.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",xI.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",xI.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",xI.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,xI.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,xI);g.b2.prototype.getName=function(){return this.name}; g.b2.prototype.getId=function(){return this.id}; g.b2.prototype.getIsDefault=function(){return this.isDefault}; g.b2.prototype.toString=function(){return this.name}; g.b2.prototype.getName=g.b2.prototype.getName;g.b2.prototype.getId=g.b2.prototype.getId;g.b2.prototype.getIsDefault=g.b2.prototype.getIsDefault;var rfn=/action_display_post/;var h4r,gE,kZ;g.z(DN,g.Yg);g.M=DN.prototype;g.M.isLoading=function(){return this.state===1}; g.M.J1=function(){return this.state===3}; g.M.IgY=function(e){var L=e.getElementsByTagName("Representation");if(e.getElementsByTagName("SegmentList").length>0||e.getElementsByTagName("SegmentTemplate").length>0){this.Wy=this.K=!0;this.timeline||(this.timeline=new CyM);yQR(this.timeline,e);this.publish("refresh");for(e=0;e=0?t=Hm(q):O=O+"?range="+q}R.call(h,new PB(u.ud,u.startSecs,u.jW,u.X,O,t,u.K))}I=B}c.update(I,this.isLive,this.Pe)}ZnM(this.timeline);return!0}this.duration=w1f(B6(e,"mediaPresentationDuration")); a:{for(e=0;e0))return this.i4()-e}}e=this.X;for(var L in e){var c=e[L].index;if(c.isLoaded()&&!pn(e[L].info.mimeType))return c.S6()}return 0}; g.M.getStreamTimeOffset=function(){return this.T}; g.M.sR=function(e){for(var L in this.X){var c=this.X[L].index;if(c.isLoaded()){var I=c.kI(e),B=c.sR(I);if(B)return B+e-c.getStartTime(I)}}return NaN}; var P6=null,P3J,Qt=!((P3J=navigator.mediaCapabilities)==null||!P3J.decodingInfo),bxf={commentary:1,alternate:2,dub:3,main:4};var Dp=new Set,dE=new Map;XN.prototype.clone=function(e){return new XN(this.flavor,e,this.K,this.experiments)}; XN.prototype.b5=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; XN.prototype.getInfo=function(){switch(this.keySystem){case "com.youtube.playready":return"PRY";case "com.microsoft.playready":return"PRM";case "com.widevine.alpha":return"WVA";case "com.youtube.widevine.l3":return"WVY";case "com.youtube.fairplay":return"FPY";case "com.youtube.fairplay.sbdl":return"FPC";case "com.apple.fps.1_0":return"FPA";default:return this.keySystem}}; var QF9={},S8=(QF9.playready=["com.youtube.playready","com.microsoft.playready"],QF9.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],QF9),oP={},qw6=(oP.widevine="DRM_SYSTEM_WIDEVINE",oP.fairplay="DRM_SYSTEM_FAIRPLAY",oP.playready="DRM_SYSTEM_PLAYREADY",oP),SK={},dlU=(SK.widevine=1,SK.fairplay=2,SK.playready=3,SK);var uC;g.z(r$,g.p); r$.prototype.initialize=function(e,L){for(var c=this,I=g.f(Object.keys(e)),B=I.next();!B.done;B=I.next()){B=g.f(e[B.value]);for(var x=B.next();!x.done;x=B.next())if(x=x.value,x.TI)for(var S=g.f(Object.keys(x.TI)),h=S.next();!h.done;h=S.next()){var R=h.value;h=R;R=S8[R];!R&&this.Y("html5_enable_vp9_fairplay")&&h==="fairplay"&&(R=["com.youtube.fairplay.sbdl"]);if(R){R=g.f(R);for(var u=R.next();!u.done;u=R.next())u=u.value,this.Z[u]=this.Z[u]||new XN(h,u,x.TI[h],this.UW.experiments),this.X[h]=this.X[h]|| {},this.X[h][x.mimeType]=!0}}}y2()&&(this.Z["com.youtube.fairplay"]=new XN("fairplay","com.youtube.fairplay","",this.UW.experiments),this.Y("html5_enable_vp9_fairplay")||(this.X.fairplay=this.X.fairplay||{},this.X.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.X.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.K=yf6(L,this.useCobaltWidevine,this.Y("html5_enable_safari_fairplay")&&!0,this.Y("html5_enable_vp9_fairplay")).filter(function(t){return!!c.Z[t]})}; r$.prototype.Y=function(e){return this.UW.experiments.N0(e)};var UlL={"":"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"};lDn.prototype.Y=function(e){return this.experiments.N0(e)};var mmv={RED:"red",Xh$:"white"};Pcc.prototype.N0=function(e){e=this.flags[e];JSON.stringify(e);return e==="true"};var UpM=Promise.resolve(),YPT=window.queueMicrotask?window.queueMicrotask.bind(window):E_v;To.prototype.canPlayType=function(e,L){e=e.canPlayType?e.canPlayType(L):!1;ya?e=e||Erw[L]:Yy===2.2?e=e||Xzh[L]:NL()&&(e=e||KRL[L]);return!!e}; To.prototype.isTypeSupported=function(e){return this.D?window.cast.receiver.platform.canDisplayType(e):Tn(e)}; var Xzh={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},KRL={"application/x-mpegURL":"maybe"},Erw={"application/x-mpegURL":"maybe"};g.z(zo,g.Yg);zo.prototype.add=function(e,L){if(!this.items[e]&&(L.rB||L.hU||L.Ny)){var c=this.items,I=L;Object.isFrozen&&!Object.isFrozen(L)&&(I=Object.create(L),Object.freeze(I));c[e]=I;this.publish("vast_info_card_add",e)}}; zo.prototype.remove=function(e){var L=this.get(e);delete this.items[e];return L}; zo.prototype.get=function(e){return this.items[e]||null}; zo.prototype.isEmpty=function(){return g.qQ(this.items)};sh.prototype.encrypt=function(e){this.X.exports.AES128CTRCipher_encrypt(this.cipher,e.byteOffset,e.byteLength);return e}; sh.prototype.We=function(){return this.cipher===0}; sh.prototype.dispose=function(){this.X.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};fl.prototype.LB=function(e,L){L=L===void 0?1:L;this.xv+=L;this.K+=e;e/=L;for(var c=0;c0)I+="."+vr[B].toFixed(0)+"_"+c.X[B].toFixed(0);else break;c=I}c&&(e[L]=c)}this.X=new ctM;return e}; g.M.toString=function(){return""};g.M=rtv.prototype;g.M.isActive=function(){return!1}; g.M.v8=function(){}; g.M.Da=function(){}; g.M.cj=function(){}; g.M.QG=function(e,L){L()}; g.M.R_=function(){return{}}; g.M.toString=function(){return""};var Y_M=new rtv,nrL=!!+pT("html5_enable_profiler"),egJ=!!+pT("html5_onesie_enable_profiler"),rv=nrL||egJ?new Bhx:Y_M,b9n=nrL?rv:Y_M,FB=egJ?rv:Y_M;qJn.prototype.emscripten_notify_memory_growth=function(){};g.M=Ab.prototype;g.M.malloc=function(e){return this.exports.malloc(e)}; g.M.free=function(e){this.exports.free(e)}; g.M.realloc=function(e,L){return this.exports.realloc(e,L)}; g.M.Zv=function(e){if(e.buffer!==this.exports.memory.buffer){var L=this.malloc(e.byteLength);L=new Uint8Array(this.exports.memory.buffer,L,e.byteLength);L.set(e);return L}}; g.M.uL=function(e){if(e.buffer===this.exports.memory.buffer){var L=e.slice();this.free(e.byteOffset);return L}}; var hJ6=new function(){this.Z=this.G="WebAssembly"in window},bC="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly); FB.v8(Ab,{Zv:function(e){return{profile:"copyj2w",xv:e===void 0?0:Math.ceil(e.byteLength/16)}}, uL:function(e){return{profile:"copyw2j",xv:e===void 0?0:Math.ceil(e.byteLength/16)}}});iC.prototype.encrypt=function(e,L){try{return this.X.uL(zJc(this,e,L))}catch(c){g.F7(Error("ocwce: wasm encrypt failed: "+c))}}; iC.prototype.We=function(){return this.Z}; iC.prototype.dispose=function(){this.We()||(g.L0(this.K),this.X.free(this.G.byteOffset),this.Z=!0)};g.z(sTc,g.p);g.z(fOn,g.p);var g$;ky.prototype.add=function(e){if(this.pos+20>this.data.length){var L=new Uint8Array(this.data.length*2);L.set(this.data);this.data=L}for(;e>31;)this.data[this.pos++]=g$[(e&31)+32],e>>=5;this.data[this.pos++]=g$[e|0]}; ky.prototype.sV=function(){return g.uG(this.data.subarray(0,this.pos))}; ky.prototype.reset=function(){this.pos=0};w$.prototype.lE=function(e,L){var c=Math.pow(this.alpha,e);this.X=L*(1-c)+c*this.X;this.K+=e}; w$.prototype.EK=function(){return this.X/(1-Math.pow(this.alpha,this.K))};Jb.prototype.lE=function(e,L){for(var c=0;c<10;c++){var I=this.X[c],B=I+(c===0?e:0),x=1*Math.pow(2,c);if(B<=x)break;I=Math.min(1,(B-x*.5)/I);for(B=0;B<16;B++)x=this.values[c*16+B]*I,this.values[(c+1)*16+B]+=x,this.X[c+1]+=x,this.values[c*16+B]-=x,this.X[c]-=x}I=c=0;B=8192;L>8192&&(c=Math.ceil(Math.log(L/8192)/Math.log(2)),I=8192*Math.pow(2,c-1),B=I*2);c+2>16?this.values[15]+=e:(L=(L-I)/(B-I),this.values[c]+=e*(1-L),this.values[c+1]+=e*L);this.X[0]+=e}; Jb.prototype.EK=function(){var e=e===void 0?this.K:e;var L=L===void 0?.02:L;var c=c===void 0?.98:c;for(var I=this.Z,B=0;B<16;B++)I[B]=this.values[B];B=this.X[0];for(var x=1;x<11;x++){var S=this.X[x];if(S===0)break;for(var h=Math.min(1,(e-B)/S),R=0;R<16;R++)I[R]+=this.values[x*16+R]*h;B+=S*h;if(h<1)break}for(x=e=S=0;x<16;x++){h=S+I[x]/B;e+=Math.max(0,Math.min(h,c)-Math.max(S,L))*(x>0?8192*Math.pow(2,x-1):0);if(h>c)break;S=h}return e/(c-L)};VG.prototype.lE=function(e,L){e=Math.min(this.X,Math.max(1,Math.round(e*this.resolution)));e+this.K>=this.X&&(this.Z=!0);for(;e--;)this.values[this.K]=L,this.K=(this.K+1)%this.X;this.UP=!0}; VG.prototype.percentile=function(e){var L=this;if(!this.Z&&this.K===0)return 0;this.UP&&(g.U9(this.B,function(c,I){return L.values[c]-L.values[I]}),this.UP=!1); return this.values[this.B[Math.round(e*((this.Z?this.X:this.K)-1))]]||0}; VG.prototype.EK=function(){return this.j?(this.percentile(this.G-this.j)+this.percentile(this.G)+this.percentile(this.G+this.j))/3:this.percentile(this.G)};g.z(Cl,g.p);Cl.prototype.He=function(){var e;(e=this.t7)==null||e.start();if(j8(this)&&this.policy.J){var L;(L=this.cw)==null||L.eL()}};g9J.prototype.Y=function(e){return this.experiments.N0(e)};g.z(DmH,g.p);var NhR="blogger ads-preview gac books docs duo flix google-live google-one play play-ads shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),jTf={Q9m:"caoe",vIm:"capsv",zsY:"cbrand",pUe:"cbr",sFw:"cbrver",kYe:"cchip",caS:"ccappver",yae:"ccrv",Rgl:"cfrmver",r_e:"c",zv9:"cver",Xq9:"ctheme",DM_:"cplayer",Dem:"cmodel",A5:"cnetwork",T$m:"cos",OS_VERSION:"cosver",Pt$:"cplatform",X_$:"crqyear"};g.z(rb,g.p);g.M=rb.prototype;g.M.Y=function(e){return this.experiments.N0(e)}; g.M.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.M.getVideoUrl=function(e,L,c,I,B,x,S){L={list:L};c&&(B?L.time_continue=c:L.t=c);c=S?"music.youtube.com":g.RD(this);B=c==="www.youtube.com";!x&&I&&B?x="https://youtu.be/"+e:g.L8(this)?(x="https://"+c+"/fire",L.v=e):(x&&B?(x=this.protocol+"://"+c+"/shorts/"+e,I&&(L.feature="share")):(x=this.protocol+"://"+c+"/watch",L.v=e),ya&&(e=j$n())&&(L.ebc=e));return g.WO(x,L)}; g.M.getVideoEmbedCode=function(e,L,c,I){L="https://"+g.RD(this)+"/embed/"+L;I&&(L=g.WO(L,{list:I}));I=c.width;c=c.height;L=J0(L);e=J0(e!=null?e:"YouTube video player");return'')}; g.M.supportsGaplessAudio=function(){return g.q8&&!ya&&V2()>=74||g.Br&&g.$C(68)?!0:!1}; g.M.supportsGaplessShorts=function(){return!this.Y("html5_enable_short_gapless")||this.Pe||g.RM?!1:!0}; g.M.getPlayerType=function(){return this.X.cplayer}; g.M.oT=function(){return this.Cj}; var QTx=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],$mR=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],lOT=[19];var hc={},Xwv=(hc["140"]={numChannels:2},hc["141"]={numChannels:2},hc["251"]={audioSampleRate:48E3,numChannels:2},hc["774"]={audioSampleRate:48E3,numChannels:2},hc["380"]={numChannels:6},hc["328"]={numChannels:6},hc["773"]={},hc),RP={},Umn=(RP["1"]='video/mp4; codecs="av01.0.08M.08"',RP["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',RP["1e"]='video/mp4; codecs="av01.0.08M.08"',RP["9"]='video/webm; codecs="vp9"',RP["("]='video/webm; codecs="vp9"',RP["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', RP.h='video/mp4; codecs="avc1.64001e"',RP.H='video/mp4; codecs="avc1.64001e"',RP.o='audio/webm; codecs="opus"',RP.a='audio/mp4; codecs="mp4a.40.2"',RP.ah='audio/mp4; codecs="mp4a.40.2"',RP.mac3='audio/mp4; codecs="ac-3"; channels=6',RP.meac3='audio/mp4; codecs="ec-3"; channels=6',RP.i='audio/mp4; codecs="iamf.001.001.Opus"',RP),uR={},E9c=(uR["337"]={width:3840,height:2160,bitrate:3E7,fps:30},uR["336"]={width:2560,height:1440,bitrate:15E6,fps:30},uR["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, uR["702"]={width:7680,height:4320,bitrate:4E7,fps:60},uR["701"]={width:3840,height:2160,bitrate:2E7,fps:60},uR["700"]={width:2560,height:1440,bitrate:1E7,fps:60},uR["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},uR["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},uR["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},uR["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, uR["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},uR["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},uR["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},uR["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},uR["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},uR["315"]={width:3840,height:2160,bitrate:2E7,fps:60},uR["308"]={width:2560, height:1440,bitrate:1E7,fps:60},uR["303"]={width:1920,height:1080,bitrate:5E6,fps:60},uR["302"]={width:1280,height:720,bitrate:25E5,fps:60},uR["299"]={width:1920,height:1080,bitrate:75E5,fps:60},uR["298"]={width:1280,height:720,bitrate:35E5,fps:60},uR["571"]={width:7680,height:4320,bitrate:3E7,fps:60},uR["401"]={width:3840,height:2160,bitrate:15E6,fps:60},uR["400"]={width:2560,height:1440,bitrate:75E5,fps:60},uR["399"]={width:1920,height:1080,bitrate:2E6,fps:60},uR["398"]={width:1280,height:720,bitrate:1E6, fps:60},uR["397"]={width:854,height:480,bitrate:4E5,fps:30},uR["396"]={width:640,height:360,bitrate:25E4,fps:30},uR["787"]={width:1080,height:608,bitrate:2E5,fps:30},uR["788"]={width:1080,height:608,bitrate:4E5,fps:30},uR["572"]={width:7680,height:4320,bitrate:3E7,fps:60},uR["555"]={width:3840,height:2160,bitrate:15E6,fps:60},uR["554"]={width:2560,height:1440,bitrate:75E5,fps:60},uR["553"]={width:1920,height:1080,bitrate:2E6,fps:60},uR["552"]={width:1280,height:720,bitrate:1E6,fps:60},uR["551"]={width:854, height:480,bitrate:4E5,fps:30},uR["550"]={width:640,height:360,bitrate:25E4,fps:30},uR["313"]={width:3840,height:2160,bitrate:8E6,fps:30},uR["271"]={width:2560,height:1440,bitrate:4E6,fps:30},uR["248"]={width:1920,height:1080,bitrate:2E6,fps:30},uR["247"]={width:1280,height:720,bitrate:15E5,fps:30},uR["244"]={width:854,height:480,bitrate:52E4,fps:30},uR["243"]={width:640,height:360,bitrate:28E4,fps:30},uR["137"]={width:1920,height:1080,bitrate:4E6,fps:30},uR["136"]={width:1280,height:720,bitrate:3E6, fps:30},uR["135"]={width:854,height:480,bitrate:1E6,fps:30},uR["385"]={width:1920,height:1080,bitrate:6503313,fps:60},uR["376"]={width:1280,height:720,bitrate:5706960,fps:60},uR["384"]={width:1280,height:720,bitrate:3660979,fps:60},uR["225"]={width:1280,height:720,bitrate:5805E3,fps:30},uR["224"]={width:1280,height:720,bitrate:453E4,fps:30},uR["145"]={width:1280,height:720,bitrate:2682052,fps:30},uR);g.M=gb.prototype;g.M.getInfo=function(){return this.X}; g.M.Qw=function(){return null}; g.M.wH=function(){var e=this.Qw();return e?(e=g.Ee(e.V5),Number(e.expire)):NaN}; g.M.G3=function(){}; g.M.getHeight=function(){return this.X.video.height};eKT.prototype.build=function(){ICx(this);var e=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],L={};a:if(this.X)var c=this.X;else{c="";for(var I=g.f(this.Z),B=I.next();!B.done;B=I.next())if(B=B.value,B.l5){if(B.l5.getIsDefault()){c=B.l5.getId();break a}c||(c=B.l5.getId())}}I=g.f(this.Z);for(B=I.next();!B.done;B=I.next())if(B=B.value,this.j||!B.l5||B.l5.getId()===c)L[B.itag]||(L[B.itag]=[]),L[B.itag].push(B);c=g.f(this.K);for(I=c.next();!I.done;I=c.next())if(I=I.value,B=L[I.X]){B=g.f(B);for(var x=B.next();!x.done;x= B.next()){var S=e,h=S.push;x=x.value;var R="#EXT-X-MEDIA:TYPE=AUDIO,",u="YES",t="audio";if(x.l5){t=x.l5;var O=t.getId().split(".")[0];O&&(R+='LANGUAGE="'+O+'",');(this.X?this.X===t.getId():t.getIsDefault())||(u="NO");t=t.getName()}O="";I!==null&&(O=I.itag.toString());O=Dk(this,x.url,O);R=R+('NAME="'+t+'",DEFAULT='+(u+',AUTOSELECT=YES,GROUP-ID="'))+(c8f(x,I)+'",URI="'+(O+'"'));h.call(S,R)}}c=g.f(this.B);for(I=c.next();!I.done;I=c.next())I=I.value,B=Lsh,I=(S=I.l5)?'#EXT-X-MEDIA:URI="'+Dk(this,I.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+B+'",LANGUAGE="'+S.getId()+'",NAME="'+S.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,I&&e.push(I);c=this.B.length>0?Lsh:void 0;I=g.f(this.K);for(B=I.next();!B.done;B=I.next())B=B.value,h=L[B.X],S=void 0,((S=h)==null?void 0:S.length)>0&&(S=B,h=h[0],h="#EXT-X-STREAM-INF:BANDWIDTH="+(S.bitrate+h.bitrate)+',CODECS="'+(S.codecs+","+h.codecs+'",RESOLUTION=')+(S.width+"x"+S.height+',AUDIO="')+(c8f(h,S)+'",')+(c?'SUBTITLES="'+c+'",':"")+"CLOSED-CAPTIONS=NONE",S.fps>1&&(h+= ",FRAME-RATE="+S.fps),S.SQ&&(h+=",VIDEO-RANGE="+S.SQ),e.push(h),e.push(Dk(this,B.url,"")));return e.join("\n")}; var Lsh="text";g.z(wb,gb);wb.prototype.wH=function(){return this.expiration}; wb.prototype.Qw=function(){if(!this.V5||this.V5.We()){var e=this.K.build();e="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(e);this.V5=new cX(e)}return this.V5};g.z(Jo,gb);Jo.prototype.Qw=function(){return new cX(this.K.Wd())}; Jo.prototype.G3=function(){this.K=HB(this.K)};g.z(Vm,gb);Vm.prototype.Qw=function(){return new cX(this.K)};var tc={},OPn=(tc.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",tc.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",tc.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",tc.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_MISSING_REFERRER="embedder.identity.missing.referrer",tc);g.M=g.C8.prototype;g.M.getId=function(){return this.id}; g.M.getName=function(){return this.name}; g.M.isServable=function(){return this.X}; g.M.Wd=function(){return this.url}; g.M.getXtags=function(){return this.xtags}; g.M.toString=function(){return this.languageCode+": "+g.aD(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.M.equals=function(e){return e?this.toString()===e.toString():!1}; g.M.Hd=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var sVM={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},vPr={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},fC$=/^(\d*)_((\d*)_?(\d*))$/;var FGn={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},bPf={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var Oc={},chw=(Oc.ALWAYS=1,Oc.BY_REQUEST=3,Oc.UNKNOWN=void 0,Oc),qF={},IxN=(qF.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",qF.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",qF.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",qF.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",qF);var mKT; mKT=function(e){for(var L=Object.keys(e),c={},I=0;II-L?-1:e}; g.M.n$=function(){return this.K.Aw()}; g.M.qW=function(){return this.K.JB()}; g.M.zp=function(e){this.K=e};g.z(r7,oI);r7.prototype.K=function(e,L){return oI.prototype.K.call(this,"$N|"+e,L)}; r7.prototype.B=function(e,L,c){return new SI(e,L,c,this.isLive)};var rIR=[],qD=new Set;g.z(g.RI,g.Yg);g.M=g.RI.prototype; g.M.setData=function(e){e=e||{};var L=e.errordetail;L!=null&&(this.errorDetail=L);var c=e.errorcode;c!=null?this.errorCode=c:e.status==="fail"&&(this.errorCode="auth");var I=e.reason;I!=null&&(this.errorReason=I);var B=e.subreason;B!=null&&(this.ol=B);this.Y("html5_enable_ssap_entity_id")||this.clientPlaybackNonce||(this.clientPlaybackNonce=e.cpn||(this.UW.oT()?"r"+g.Rp(15):g.Rp(16)));this.x9=EN(this.UW.x9,e.livemonitor);LM$(this,e);var x=e.raw_player_response;if(x)this.eS=x;else{var S=e.player_response; S&&(x=JSON.parse(S))}if(this.Y("html5_enable_ssap_entity_id")){var h=e.cached_load;h&&(this.CR=EN(this.CR,h));if(!this.clientPlaybackNonce){var R=e.cpn;R?(this.Ks("ssei","shdc"),this.clientPlaybackNonce=R):this.clientPlaybackNonce=this.UW.oT()?"r"+g.Rp(15):g.Rp(16)}}x&&(this.playerResponse=x);if(this.playerResponse){var u=this.playerResponse.annotations;if(u)for(var t=g.f(u),O=t.next();!O.done;O=t.next()){var q=O.value.playerAnnotationsUrlsRenderer;if(q){q.adsOnly&&(this.Dl=!0);var T=q.loadPolicy; T&&(this.annotationsLoadPolicy=chw[T]);var W=q.invideoUrl;W&&(this.t7=yq(W));break}}var A=this.playerResponse.attestation;A&&GUR(this,A);var b=this.playerResponse.cotn;b&&(this.cotn=b);var J=this.playerResponse.heartbeatParams;if(J){this.Hi=!0;var w=J.heartbeatToken;w&&(this.drmSessionId=J.drmSessionId||"",this.heartbeatToken=w,this.fP=Number(J.intervalMilliseconds),this.iA=Number(J.maxRetries),this.qd=!!J.softFailOnError,this.Bl=!!J.useInnertubeHeartbeatsForDrm);this.heartbeatServerData=J.heartbeatServerData; var C;this.z6=!((C=J.heartbeatAttestationConfig)==null||!C.requiresAttestation)}var y=this.playerResponse.messages;y&&wfn(this,y);var P=this.playerResponse.overlay;if(P){var ev=P.playerControlsOverlayRenderer;if(ev)if(Vm6(this,ev.controlBgHtml),ev.mutedAutoplay){var X=g.Q(ev.mutedAutoplay,M5g);if(X&&X.endScreen){var oH=g.Q(X.endScreen,z7e);oH&&oH.text&&(this.J6=g.o9(oH.text))}}else this.mutedAutoplay=!1}var rc=this.playerResponse.playabilityStatus;if(rc){var Sv=rc.backgroundability;Sv&&Sv.backgroundabilityRenderer.backgroundable&& (this.backgroundable=!0);var tJ,cM;if((tJ=rc.offlineability)==null?0:(cM=tJ.offlineabilityRenderer)==null?0:cM.offlineable)this.offlineable=!0;var JJ=rc.contextParams;JJ&&(this.contextParams=JJ);var yr=rc.pictureInPicture;yr&&yr.pictureInPictureRenderer.playableInPip&&(this.pipable=!0);rc.playableInEmbed&&(this.allowEmbed=!0);var cU=rc.ypcClickwrap;if(cU){var $N=cU.playerLegacyDesktopYpcClickwrapRenderer,fZ=cU.ypcRentalActivationRenderer;if($N)this.DB=$N.durationMessage||"",this.sK=!0;else if(fZ){var $n= fZ.durationMessage;this.DB=$n?g.o9($n):"";this.sK=!0}}var nZ=rc.errorScreen;if(nZ){if(nZ.playerLegacyDesktopYpcTrailerRenderer){var Mg=nZ.playerLegacyDesktopYpcTrailerRenderer;this.HD=Mg.trailerVideoId||"";var QM=nZ.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var Is=QM&&QM.ypcTrailerRenderer}else if(nZ.playerLegacyDesktopYpcOfferRenderer)Mg=nZ.playerLegacyDesktopYpcOfferRenderer;else if(nZ.ypcTrailerRenderer){Is=nZ.ypcTrailerRenderer;var D=Is.fullVideoMessage;this.Zl=D?g.o9(D):"";var Zt,CZ;this.HD= ((Zt=g.Q(Is,sg9))==null?void 0:(CZ=Zt.videoDetails)==null?void 0:CZ.videoId)||""}Mg&&(this.ej=Mg.itemTitle||"",Mg.itemUrl&&(this.uV=Mg.itemUrl),Mg.itemBuyUrl&&(this.xX=Mg.itemBuyUrl),this.Dt=Mg.itemThumbnail||"",this.C$=Mg.offerHeadline||"",this.q2=Mg.offerDescription||"",this.V2=Mg.offerId||"",this.wS=Mg.offerButtonText||"",this.fI=Mg.offerButtonFormattedText||null,this.wX=Mg.overlayDurationMsec||NaN,this.Zl=Mg.fullVideoMessage||"",this.Sn=!0);if(Is){var IH=g.Q(Is,sg9);if(IH)this.Gc={raw_player_response:IH}; else{var wM=g.Q(Is,D99);this.Gc=wM?dW(wM):null}this.Sn=!0}}}var F=this.playerResponse.playbackTracking;if(F){var L6=e,Qc=p8(F.googleRemarketingUrl);Qc&&(this.googleRemarketingUrl=Qc);var S5=p8(F.youtubeRemarketingUrl);S5&&(this.youtubeRemarketingUrl=S5);var je={},dc=p8(F.ptrackingUrl);if(dc){var ee=$Y(dc),ne=ee.oid;ne&&(this.PA=ne);var pe=ee.pltype;pe&&(this.CM=pe);var G=ee.ptchn;G&&(this.Qj=G);var v=ee.ptk;v&&(this.PK=encodeURIComponent(v));var k=ee.m;k&&(this.cK=k)}var N=p8(F.qoeUrl);if(N){for(var H= g.Ee(N),O$=g.f(Object.keys(H)),d=O$.next();!d.done;d=O$.next()){var Y=d.value,m=H[Y];H[Y]=Array.isArray(m)?m.join(","):m}this.VM=H;var aH=H.cat;aH&&(this.Y("html5_enable_qoe_cat_list")?this.V6=this.V6.concat(aH.split(",")):this.FR=aH);var PM=H.live;PM&&(this.Zq=PM);var hJ=H.drm_product;hJ&&(this.drmProduct=hJ)}var tw=p8(F.videostatsPlaybackUrl);if(tw){var Vr=$Y(tw),Fx=Vr.adformat;if(Fx){L6.adformat=Fx;var ef=this.S(),GL=A8v(Fx,this.XE,ef.G,ef.J);GL&&(this.adFormat=GL)}var ZJ=Vr.aqi;ZJ&&(L6.ad_query_id= ZJ);var kn=Vr.autoplay;kn&&(this.h9=kn=="1",this.O5=kn=="1");var Aj=Vr.autonav;Aj&&(this.isAutonav=Aj=="1");var C6=Vr.delay;C6&&(this.sY=ag(C6));var aL=Vr.ei;aL&&(this.eventId=aL);if(Vr.adcontext||Fx)this.h9=!0;var gM=Vr.feature;gM&&(this.kV=gM);var h_=Vr.list;h_&&(this.playlistId=h_);var kN=Vr.of;kN&&(this.iS=kN);var nA=Vr.osid;nA&&(this.osid=nA);var os=Vr.referrer;os&&(this.referrer=os);var dM=Vr.sdetail;dM&&(this.J$=dM);var Ng=Vr.ssrt;Ng&&(this.tO=Ng=="1");var D5=Vr.subscribed;D5&&(this.subscribed= D5=="1");var KH=Vr.uga;KH&&(this.userGenderAge=KH);var Wy=Vr.upt;Wy&&(this.jw=Wy);var mv=Vr.vm;mv&&(this.videoMetadata=mv);je.playback=Vr}var eN=p8(F.videostatsWatchtimeUrl);if(eN){var LK=$Y(eN),rR=LK.ald;rR&&(this.iZ=rR);je.watchtime=LK}var Ft=p8(F.atrUrl);if(Ft){var aJ=$Y(Ft);je.atr=aJ}var nH=p8(F.engageUrl);if(nH){var NT=$Y(nH);je.engage=NT}this.qk=je;if(F.promotedPlaybackTracking){var LU=F.promotedPlaybackTracking;LU.startUrls&&(this.Of=LU.startUrls);LU.firstQuartileUrls&&(this.aJ=LU.firstQuartileUrls); LU.secondQuartileUrls&&(this.jI=LU.secondQuartileUrls);LU.thirdQuartileUrls&&(this.CL=LU.thirdQuartileUrls);LU.completeUrls&&(this.t0=LU.completeUrls);LU.engagedViewUrls&&(LU.engagedViewUrls.length>1&&g.F7(new g.yu("There are more than one engaged_view_urls.")),this.FS=LU.engagedViewUrls[0])}}var M6=this.playerResponse.playerCueRanges;M6&&M6.length>0&&(this.cueRanges=M6);var yT=this.playerResponse.playerCueRangeSet;yT&&g.TN(this,yT);a:{var vt=this.playerResponse.adPlacements;if(vt)for(var cd=g.f(vt), fA=cd.next();!fA.done;fA=cd.next()){var IJ=void 0,Bd=void 0,xO=(IJ=fA.value.adPlacementRenderer)==null?void 0:(Bd=IJ.renderer)==null?void 0:Bd.videoAdTrackingRenderer;if(xO){var oJ=xO;break a}}oJ=null}var Aa=oJ;F&&F.promotedPlaybackTracking&&Aa&&g.F7(new g.yu("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));var hh;if(!(hh=Aa))a:{for(var SN=g.f(this.playerResponse.adSlots||[]),O6=SN.next();!O6.done;O6=SN.next()){var q_=g.Q(O6.value,YP);if(q_===void 0||!Vic(q_))break; var DH=void 0,yR=(DH=q_.fulfillmentContent)==null?void 0:DH.fulfilledLayout,Zi=g.Q(yR,Hf);if(Zi&&ZC(Zi)){hh=!0;break a}}hh=!1}hh&&(this.ym=!0);var pK=this.playerResponse.playerAds;if(pK)for(var nM=e,wQ=g.f(pK),sO=wQ.next();!sO.done;sO=wQ.next()){var Jv=sO.value;if(Jv){var eA=Jv.playerLegacyDesktopWatchAdsRenderer;if(eA){var $O=eA.playerAdParams;if($O){$O.autoplay=="1"&&(this.O5=this.h9=!0);this.rX=$O.encodedAdSafetyReason||null;$O.showContentThumbnail!==void 0&&(this.h1=!!$O.showContentThumbnail); nM.enabled_engage_types=$O.enabledEngageTypes;break}}}}var b3=this.playerResponse.playerConfig;if(b3){var Fe=b3.manifestlessWindowedLiveConfig;if(Fe){var NN=Number(Fe.minDvrSequence),Lc=Number(Fe.maxDvrSequence),TV=Number(Fe.minDvrMediaTimeMs),co=Number(Fe.maxDvrMediaTimeMs),VZ=Number(Fe.startWalltimeMs);NN&&(this.kf=NN);TV&&(this.k9=TV/1E3,this.Y("html5_sabr_parse_live_metadata_playback_boundaries")&&GN(this)&&(this.u9=TV/1E3));Lc&&(this.YN=Lc);co&&(this.RT=co/1E3,this.Y("html5_sabr_parse_live_metadata_playback_boundaries")&& GN(this)&&(this.pB=co/1E3));VZ&&(this.Cf=VZ/1E3);(NN||TV)&&(Lc||co)&&(this.allowLiveDvr=this.isLivePlayback=this.pS=!0,this.tq=!1)}var CS=b3.daiConfig;if(CS){if(CS.enableDai){this.xf=!0;var If=CS.enableServerStitchedDai;If&&(this.enableServerStitchedDai=If);var N8=CS.enablePreroll;N8&&(this.Tf=N8)}var eD;if(CS.daiType==="DAI_TYPE_SS_DISABLED"||((eD=CS.debugInfo)==null?0:eD.isDisabledUnpluggedChannel))this.zG=!0;CS.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.gj=!0)}var Bo=b3.audioConfig;if(Bo){var mH= Bo.loudnessDb;mH!=null&&(this.m1=mH);var N5H=Bo.trackAbsoluteLoudnessLkfs;N5H!=null&&(this.kO=N5H);var mU$=Bo.loudnessTargetLkfs;mU$!=null&&(this.loudnessTargetLkfs=mU$);Bo.audioMuted&&(this.rp=!0);Bo.muteOnStart&&(this.Gb=!0);var rK=Bo.loudnessNormalizationConfig;if(rK){rK.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);rK.preserveStatefulLoudnessTarget&&(this.preserveStatefulLoudnessTarget=!0);var yqR=rK.minimumLoudnessTargetLkfs;yqR!=null&&(this.minimumLoudnessTargetLkfs=yqR); var Z2$=rK.maxStatefulTimeThresholdSec;Z2$!=null&&(this.maxStatefulTimeThresholdSec=Z2$)}Bo.playAudioOnly&&(this.gZ=!0)}var BRM=b3.playbackEndConfig;if(BRM){var pSf=BRM.endSeconds,$UT=BRM.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(pSf&&(this.endSeconds=pSf),$UT&&(this.limitedPlaybackDurationInSeconds=$UT))}var uW=b3.fairPlayConfig;if(uW){var jRM=uW.certificate;jRM&&(this.Pe=Go(jRM));var H2c=Number(uW.keyRotationPeriodMs);H2c>0&&(this.WK=H2c);var lbf=Number(uW.keyPrefetchMarginMs);lbf>0&& (this.yR=lbf)}var GA=b3.playbackStartConfig;if(GA){this.Uh=Number(GA.startSeconds);var Pfn=GA.liveUtcStartSeconds,QRT=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0;Pfn&&!QRT&&(this.liveUtcStartSeconds=Number(Pfn));var xtT=GA.startPosition;if(xtT){var dUc=xtT.utcTimeMillis;dUc&&!QRT&&(this.liveUtcStartSeconds=Number(dUc)*.001);var UUc=xtT.streamTimeMillis;UUc&&(this.XD=Number(UUc)*.001)}this.progressBarStartPosition=GA.progressBarStartPosition;this.progressBarEndPosition=GA.progressBarEndPosition}else{var oTr= b3.skippableSegmentsConfig;if(oTr){var Ebn=oTr.introSkipDurationMs;Ebn&&(this.KX=Number(Ebn)/1E3);var XSx=oTr.outroSkipDurationMs;XSx&&(this.LK=Number(XSx)/1E3)}}var Sdc=b3.skippableIntroConfig;if(Sdc){var KCR=Number(Sdc.startMs),Yqr=Number(Sdc.endMs);isNaN(KCR)||isNaN(Yqr)||(this.Kp=KCR,this.PM=Yqr)}var nbn=b3.streamSelectionConfig;nbn&&(this.Bw=Number(nbn.maxBitrate));var ei6=b3.vrConfig;ei6&&(this.U2=ei6.partialSpherical=="1");var h8=b3.webDrmConfig;if(h8){h8.skipWidevine&&(this.lP=!0);var Lb$= h8.widevineServiceCert;Lb$&&(this.eA=Go(Lb$));h8.useCobaltWidevine&&(this.useCobaltWidevine=!0);h8.startWithNoQualityConstraint&&(this.aF=!0)}var Z$=b3.mediaCommonConfig;if(Z$){var tr=Z$.dynamicReadaheadConfig;if(tr){this.maxReadAheadMediaTimeMs=tr.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=tr.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs=tr.readAheadGrowthRateMs||NaN;var ckr,I9n=Z$==null?void 0:(ckr=Z$.mediaUstreamerRequestConfig)==null?void 0:ckr.videoPlaybackUstreamerConfig; I9n&&(this.MS=Go(I9n));var rhT=Z$==null?void 0:Z$.sabrContextUpdates;if(rhT&&rhT.length>0)for(var Bd6=g.f(rhT),hgf=Bd6.next();!hgf.done;hgf=Bd6.next()){var KF=hgf.value;if(KF.type&&KF.value){var wu7={type:KF.type,scope:KF.scope,value:Go(KF.value)||void 0,sendByDefault:KF.sendByDefault};this.sabrContextUpdates.set(KF.type,wu7)}}}var xof=Z$.serverPlaybackStartConfig;xof&&(this.serverPlaybackStartConfig=xof);Z$.useServerDrivenAbr&&(this.mR=!0);var oqR=Z$.requestPipeliningConfig;oqR&&(this.requestPipeliningConfig= oqR)}var S4H=b3.inlinePlaybackConfig;S4H&&(this.Au=!!S4H.showAudioControls);var Ow=b3.embeddedPlayerConfig;if(Ow){this.embeddedPlayerConfig=Ow;var Rgv=Ow.embeddedPlayerMode;if(Rgv){var rkr=this.S();rkr.k9=Rgv;rkr.Z=Rgv==="EMBEDDED_PLAYER_MODE_PFL"}var hic=Ow.permissions;hic&&(this.allowImaMonetization=!!hic.allowImaMonetization)}var qY=b3.webPlayerConfig;qY&&(qY.gatewayExperimentGroup&&(this.gatewayExperimentGroup=qY.gatewayExperimentGroup),qY.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var ps= this.playerResponse.streamingData;if(ps){var uoM=ps.formats;if(uoM){for(var RV=[],Riv=g.f(uoM),t_x=Riv.next();!t_x.done;t_x=Riv.next()){var OH$=t_x.value;RV.push(OH$.itag+"/"+OH$.width+"x"+OH$.height)}this.xC=RV.join(",");RV=[];for(var u4c=g.f(uoM),qdH=u4c.next();!qdH.done;qdH=u4c.next()){var uH=qdH.value,t8={itag:uH.itag,type:uH.mimeType,quality:uH.quality},tSn=uH.url;tSn&&(t8.url=tSn);var T0=lJ(uH),JG7=T0.Wr,VM7=T0.rr,CdM=T0.s;T0.Uk&&(t8.url=JG7,t8.sp=VM7,t8.s=CdM);RV.push(g.TE(t8))}this.OF=RV.join(",")}var TR6= ps.hlsFormats;if(TR6&&!this.Y("safari_live_drm_captions_fix")){var Orn=b3||null,W5={};if(Orn){var Wsf=Orn.audioPairingConfig;if(Wsf&&Wsf.pairs)for(var q4c=g.f(Wsf.pairs),M_$=q4c.next();!M_$.done;M_$=q4c.next()){var Tdr=M_$.value,zgn=Tdr.videoItag;W5[zgn]||(W5[zgn]=[]);W5[zgn].push(Tdr.audioItag)}}for(var WbT={},MST=g.f(TR6),snH=MST.next();!snH.done;snH=MST.next()){var ziH=snH.value;WbT[ziH.itag]=ziH.bitrate}for(var svn=[],vq6=g.f(TR6),vTM=vq6.next();!vTM.done;vTM=vq6.next()){var QR=vTM.value,Mq={itag:QR.itag, type:QR.mimeType,url:QR.url,bitrate:QR.bitrate,width:QR.width,height:QR.height,fps:QR.fps},MY=QR.audioTrack;if(MY){var f9J=MY.displayName;f9J&&(Mq.name=f9J,Mq.audio_track_id=MY.id,MY.audioIsDefault&&(Mq.is_default="1"))}if(QR.drmFamilies){for(var AkT=[],Fbc=g.f(QR.drmFamilies),fxx=Fbc.next();!fxx.done;fxx=Fbc.next())AkT.push(JB[fxx.value]);Mq.drm_families=AkT.join(",")}var z0=W5[QR.itag];if(z0&&z0.length){Mq.audio_itag=z0.join(",");var brT=WbT[z0[0]];brT&&(Mq.bitrate+=brT)}var irv=xp$(QR);irv&&(Mq.eotf= irv);QR.audioChannels&&(Mq.audio_channels=QR.audioChannels);svn.push(g.TE(Mq))}this.hlsFormats=svn.join(",")}var Ahr=ps.licenseInfos;if(Ahr&&Ahr.length>0){for(var G2R={},gqM=g.f(Ahr),Fsx=gqM.next();!Fsx.done;Fsx=gqM.next()){var k2$=Fsx.value,Don=k2$.drmFamily,w8H=k2$.url;Don&&w8H&&(G2R[JB[Don]]=w8H)}this.TI=G2R}var JkH=ps.drmParams;JkH&&(this.drmParams=JkH);var VSx=ps.dashManifestUrl;VSx&&(this.xT=g.WO(VSx,{cpn:this.clientPlaybackNonce}));var C_R=ps.hlsManifestUrl;C_R&&(this.hlsvp=C_R);var a9c=ps.probeUrl; a9c&&(this.probeUrl=yq(g.WO(a9c,{cpn:this.clientPlaybackNonce})));var Ndf=ps.serverAbrStreamingUrl;Ndf&&(this.Hv=new g.yp(Ndf,!0))}var moH=this.playerResponse.trackingParams;moH&&(this.Y9=moH);var A0=this.playerResponse.videoDetails;if(A0){var z4=e,bHJ=A0.videoId;bHJ&&(this.videoId=bHJ,z4.video_id||(z4.video_id=bHJ));var iHJ=A0.title;iHJ&&(this.title=iHJ,z4.title||(z4.title=iHJ));var GM6=A0.lengthSeconds;GM6&&(this.lengthSeconds=Number(GM6),z4.length_seconds||(z4.length_seconds=GM6));var ykc=A0.keywords; ykc&&(this.keywords=ozT(ykc));var gTH=A0.channelId;gTH&&(this.hR=gTH,z4.ucid||(z4.ucid=gTH));var Zrf=A0.viewCount;Zrf&&(this.rawViewCount=Number(Zrf));var kMT=A0.author;kMT&&(this.author=kMT,z4.author||(z4.author=kMT));var p8$=A0.shortDescription;p8$&&(this.shortDescription=p8$);var $o6=A0.isCrawlable;$o6&&(this.isListed=$o6);var jvT=A0.musicVideoType;jvT&&(this.musicVideoType=jvT);var DtH=A0.isLive;DtH!=null&&(this.isLivePlayback=DtH);if(DtH||A0.isUpcoming)this.isPremiere=!A0.isLiveContent;var Hrr= A0.thumbnail;Hrr&&(this.J=Zk(Hrr));var l9M=A0.isExternallyHostedPodcast;l9M&&(this.isExternallyHostedPodcast=l9M);var wAM=A0.viewerLivestreamJoinPosition;if(wAM==null?0:wAM.utcTimeMillis)this.jE=ag(wAM.utcTimeMillis);var P_J=b3||null,Jhc=e;A0.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=!0);A0.isUpcoming&&(this.isUpcoming=!0);if(A0.isPostLiveDvr){this.tq=!0;var QvJ=A0.latencyClass;QvJ&&(this.latencyClass=IxN[QvJ]||"UNKNOWN");A0.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var V_n= !1;this.x9?(this.allowLiveDvr=Wr()?!0:H3&&x8<5?!1:!0,this.isLivePlayback=!0):A0.isLive?(Jhc.livestream="1",this.allowLiveDvr=A0.isLiveDvrEnabled?Wr()?!0:H3&&x8<5?!1:!0:!1,this.partnerId=27,V_n=!0):A0.isUpcoming&&(V_n=!0);if(A0.isLive||this.x9){A0.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0);var doc=A0.latencyClass;doc&&(this.latencyClass=IxN[doc]||"UNKNOWN");var UoM=A0.liveChunkReadahead;UoM&&(this.liveChunkReadahead=UoM);var gL=P_J&&P_J.livePlayerConfig;if(gL){gL.hasSubfragmentedFmp4&& (this.hasSubfragmentedFmp4=!0);gL.hasSubfragmentedWebm&&(this.FA=!0);gL.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var Eqx=gL.liveExperimentalContentId;Eqx&&(this.liveExperimentalContentId=Number(Eqx));var X8n=gL.isLiveHeadPlayable;this.Y("html5_live_head_playable")&&X8n!=null&&(this.isLiveHeadPlayable=X8n)}}V_n&&(this.isLivePlayback=!0,Jhc.adformat&&Jhc.adformat.split("_")[1]!=="8"||this.h7.push("heartbeat"))}var Kb$=A0.isPrivate;Kb$!==void 0&&(this.isPrivate=EN(this.isPrivate, Kb$))}if(rc){var Y4H=A0||null,nqT=!1,kj=rc.errorScreen;nqT=kj&&(kj.playerLegacyDesktopYpcOfferRenderer||kj.playerLegacyDesktopYpcTrailerRenderer||kj.ypcTrailerRenderer)?!0:Y4H&&Y4H.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(rc.status);if(!nqT){this.errorCode=q5R(rc.errorCode)||"auth";var v5=kj&&kj.playerErrorMessageRenderer;if(v5){this.playerErrorMessageRenderer=v5;var ek6=v5.reason;ek6&&(this.errorReason=g.o9(ek6));var CDc=v5.subreason;CDc&&(this.ol=g.o9(CDc),this.t$=CDc)}else this.errorReason= rc.reason||null;var axr=rc.status;if(axr==="LOGIN_REQUIRED")this.errorDetail="1";else if(axr==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(axr==="AGE_CHECK_REQUIRED"){var LUc=rc.errorScreen,c6M=LUc&&LUc.playerKavRenderer;this.errorDetail=c6M&&c6M.kavUrl?"4":"3"}else this.errorDetail=rc.isBlockedInRestrictedMode?"5":"0"}}var Idn=this.playerResponse.interstitialPods;Idn&&Dbr(this,Idn);this.t7&&this.eventId&&(this.t7=KT(this.t7,{ei:this.eventId}));var NRR=this.playerResponse.captions;if(NRR&& NRR.playerCaptionsTracklistRenderer)a:{var sa=NRR.playerCaptionsTracklistRenderer;this.captionTracks=[];if(sa.captionTracks)for(var BCR=g.f(sa.captionTracks),mtn=BCR.next();!mtn.done;mtn=BCR.next()){var vo=mtn.value,xVJ=ILM(vo.baseUrl);if(!xVJ)break a;var yhJ={is_translateable:!!vo.isTranslatable,languageCode:vo.languageCode,languageName:vo.name&&g.o9(vo.name),url:xVJ,vss_id:vo.vssId,kind:vo.kind};yhJ.name=vo.trackName;yhJ.displayName=vo.name&&g.o9(vo.name);this.captionTracks.push(new g.C8(yhJ))}this.IC= sa.audioTracks||[];this.Bu=sa.defaultAudioTrackIndex||0;this.Ky=[];if(sa.translationLanguages)for(var okn=g.f(sa.translationLanguages),ZHc=okn.next();!ZHc.done;ZHc=okn.next()){var DG=ZHc.value,YR={};YR.languageCode=DG.languageCode;YR.languageName=g.o9(DG.languageName);if(DG.translationSourceTrackIndices){YR.translationSourceTrackIndices=[];for(var SSx=g.f(DG.translationSourceTrackIndices),pA6=SSx.next();!pA6.done;pA6=SSx.next())YR.translationSourceTrackIndices.push(pA6.value)}if(DG.excludeAudioTrackIndices){YR.excludeAudioTrackIndices= [];for(var r6$=g.f(DG.excludeAudioTrackIndices),$tT=r6$.next();!$tT.done;$tT=r6$.next())YR.excludeAudioTrackIndices.push($tT.value)}this.Ky.push(YR)}this.kC=[];if(sa.defaultTranslationSourceTrackIndices)for(var hkn=g.f(sa.defaultTranslationSourceTrackIndices),jnc=hkn.next();!jnc.done;jnc=hkn.next())this.kC.push(jnc.value);this.sf=!!sa.contribute&&!!sa.contribute.captionsMetadataRenderer}(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.Uh=Number(this.clipConfig.startTimeMs)* .001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&J8r(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var RkM;this.compositeLiveIngestionOffsetToken=(RkM=this.playerResponse.playbackTracking)==null?void 0:RkM.compositeLiveIngestionOffsetToken;var u06;this.compositeLiveStatusToken=(u06=this.playerResponse.playbackTracking)==null?void 0: u06.compositeLiveStatusToken;this.Y("html5_fill_default_mosaic_audio_track_id")&&SD(this)&&(this.UW.d_=XF6(this))}t1(this,e);e.queue_info&&(this.queueInfo=e.queue_info);var tEn=e.hlsdvr;tEn!=null&&(this.allowLiveDvr=Number(tEn)===1?Wr()?!0:H3&&x8<5?!1:!0:!1);this.adQueryId=e.ad_query_id||null;this.rX||(this.rX=e.encoded_ad_safety_reason||null);this.rp=EN(this.rp,e.infringe||e.muted);this.yC=e.authkey;this.aZ=e.authuser;this.mutedAutoplay=EN(this.mutedAutoplay,e&&e.playmuted);this.mutedAutoplayDurationMode= KQ(this.mutedAutoplayDurationMode,e&&e.muted_autoplay_duration_mode);this.aC=EN(this.aC,e&&e.mutedautoplay);var fI=e.length_seconds;fI&&(this.lengthSeconds=typeof fI==="string"?ag(fI):fI);if(this.isAd()||this.pX||!g.cI(g.ID(this.UW)))this.endSeconds=KQ(this.endSeconds,this.LK||e.end||e.endSeconds);else{var aue=g.ID(this.UW),Ar=this.lengthSeconds;switch(aue){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":Ar>30?this.limitedPlaybackDurationInSeconds=30:Ar<30&&Ar>10&&(this.limitedPlaybackDurationInSeconds= 10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=Ar*.2}}this.Y9=Ya(this.Y9,e.itct);this.sI=EN(this.sI,e.is_live_destination);this.isLivePlayback=EN(this.isLivePlayback,e.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.Wy();e.isUpcoming&&(this.isUpcoming=EN(this.isUpcoming,e.isUpcoming));this.tq=EN(this.tq,e.post_live_playback);this.pS&&(this.tq=!1);this.isMdxPlayback=EN(this.isMdxPlayback,e.mdx);var Fs=e.mdx_control_mode; Fs&&(this.mdxControlMode=typeof Fs==="number"?Fs:ag(Fs));this.isInlinePlaybackNoAd=EN(this.isInlinePlaybackNoAd,e.is_inline_playback_no_ad);this.gT=KQ(this.gT,e.reload_count);this.reloadReason=Ya(this.reloadReason,e.reload_reason);this.h1=EN(this.h1,e.show_content_thumbnail);this.cycToken=e.cyc||null;var OBT=ym(e);Object.keys(OBT).length>0&&(this.J=OBT);this.Ve=Ya(this.Ve,e.vvt);this.mdxEnvironment=Ya(this.mdxEnvironment,e.mdx_environment);e.source_container_playlist_id&&(this.sourceContainerPlaylistId= e.source_container_playlist_id);e.serialized_mdx_metadata&&(this.serializedMdxMetadata=e.serialized_mdx_metadata);this.qq=e.osig;this.eventId||(this.eventId=e.eventid);this.osid||(this.osid=e.osid);this.playlistId=Ya(this.playlistId,e.list);e.index&&(this.playlistIndex=this.playlistIndex===void 0?KQ(0,e.index):KQ(this.playlistIndex,e.index));this.uP=e.pyv_view_beacon_url;this.W7=e.pyv_quartile25_beacon_url;this.P7=e.pyv_quartile50_beacon_url;this.CC=e.pyv_quartile75_beacon_url;this.yQ=e.pyv_quartile100_beacon_url; var qS$=e.session_data;!this.OH&&qS$&&(this.OH=Pu(qS$,"&").feature);this.isFling=KQ(this.isFling?1:0,e.is_fling)===1;this.vnd=KQ(this.vnd,e.vnd);this.forceAdsUrl=Ya(this.forceAdsUrl,e.force_ads_url);this.s9=Ya(this.s9,e.ctrl);this.Ne=Ya(this.Ne,e.ytr);this.CY=e.ytrcc;this.gK=e.ytrexp;this.O4=e.ytrext;this.Cj=Ya(this.Cj,e.adformat);this.XE=Ya(this.XE,e.attrib);this.slotPosition=KQ(this.slotPosition,e.slot_pos);this.breakType=e.break_type;this.tO=EN(this.tO,e.ssrt);this.videoId=eL(e)||this.videoId; this.j=Ya(this.j,e.vss_credentials_token);this.Xd=Ya(this.Xd,e.vss_credentials_token_type);this.gZ=EN(this.gZ,e.audio_only);this.He=EN(this.He,e.aac_high);this.O3=EN(this.O3,e.prefer_low_quality_audio);this.ji=EN(this.ji,e.uncap_inline_quality);this.Y("html5_enable_qoe_cat_list")?e.qoe_cat&&(this.V6=this.V6.concat(e.qoe_cat.split(","))):this.FR=Ya(this.FR,e.qoe_cat);this.ue=EN(this.ue,e.download_media);var TCc=e.prefer_gapless;this.T=TCc!=null?EN(this.T,TCc):this.T?this.T:this.UW.preferGapless&&this.UW.supportsGaplessShorts(); rln(this.playerResponse)&&this.h7.push("ad");var WUM=e.adaptive_fmts;WUM&&(this.adaptiveFormats=WUM,this.sW("adpfmts",{},!0));var ME$=e.allow_embed;ME$&&(this.allowEmbed=Number(ME$)===1);var zkv=e.backgroundable;zkv&&(this.backgroundable=Number(zkv)===1);var scr=e.autonav;scr&&(this.isAutonav=Number(scr)===1);var vk$=e.autoplay;vk$&&(this.h9=this.O5=Number(vk$)===1);var fdc=e.iv_load_policy;fdc&&(this.annotationsLoadPolicy=X1(this.annotationsLoadPolicy,fdc,Bn));var A6r=e.cc_lang_pref;A6r&&(this.captionsLanguagePreference= Ya(A6r,this.captionsLanguagePreference));var FUr=e.cc_load_policy;FUr&&(this.Ls=X1(this.Ls,FUr,Bn));var bBn;this.deviceCaptionsOn=(bBn=e.device_captions_on)!=null?bBn:void 0;var iBf;this.Yn=(iBf=e.device_captions_lang_pref)!=null?iBf:"";var GFH;this.u7=(GFH=e.viewer_selected_caption_langs)!=null?GFH:[];if(!this.Y("html5_enable_ssap_entity_id")){var gkT=e.cached_load;gkT&&(this.CR=EN(this.CR,gkT))}if(e.dash==="0"||e.dash===0||e.dash===!1)this.Hk=!0;var kF$=e.dashmpd;kF$&&(this.xT=g.WO(kF$,{cpn:this.clientPlaybackNonce})); var DVM=e.delay;DVM&&(this.sY=ag(DVM));var HHc=this.LK||e.end;if(this.Q5?HHc!=null:HHc!=void 0)this.clipEnd=KQ(this.clipEnd,HHc);var wDM=e.fmt_list;wDM&&(this.xC=wDM);e.heartbeat_preroll&&this.h7.push("heartbeat");this.ij=-Math.floor(Math.random()*10);this.Ee=-Math.floor(Math.random()*40);var J6c=e.is_listed;J6c&&(this.isListed=EN(this.isListed,J6c));var VEn=e.is_private;VEn&&(this.isPrivate=EN(this.isPrivate,VEn));var CZx=e.is_dni;CZx&&(this.xx=EN(this.xx,CZx));var adR=e.dni_color;adR&&(this.l9= Ya(this.l9,adR));var NC6=e.pipable;NC6&&(this.pipable=EN(this.pipable,NC6));this.nC=(this.Kv=this.pipable&&this.UW.Xy)&&!this.UW.showMiniplayerButton;var mVf=e.paid_content_overlay_duration_ms;mVf&&(this.paidContentOverlayDurationMs=ag(mVf));var y6M=e.paid_content_overlay_text;y6M&&(this.paidContentOverlayText=y6M);var ZBr=e.url_encoded_fmt_stream_map;ZBr&&(this.OF=ZBr);var pDr=e.hls_formats;pDr&&(this.hlsFormats=pDr);var $VT=e.hlsvp;$VT&&(this.hlsvp=$VT);var bW=e.live_start_walltime;bW&&(this.F6= typeof bW==="number"?bW:ag(bW));var iW=e.live_manifest_duration;iW&&(this.wb=typeof iW==="number"?iW:ag(iW));var jcJ=e.player_params;jcJ&&(this.playerParams=jcJ);var HB$=e.partnerid;HB$&&(this.partnerId=KQ(this.partnerId,HB$));var ldc=e.probe_url;ldc&&(this.probeUrl=yq(g.WO(ldc,{cpn:this.clientPlaybackNonce})));var lxr=e.pyv_billable_url;lxr&&ToJ(lxr)&&(this.FS=lxr);var PDM=e.pyv_conv_url;PDM&&ToJ(PDM)&&(this.c7=PDM);Syc(this,e);this.startSeconds>0?this.Y("html5_log_start_seconds_inconsistency")&& this.startSeconds!==(this.Uh||this.KX||e.start||e.startSeconds)&&this.sW("lss",{css:this.startSeconds,pcss:this.Uh,iss:this.KX,ps:e.start||void 0,pss:e.startSeconds||void 0}):this.Kf=this.startSeconds=KQ(this.startSeconds,this.Uh||this.KX||e.start||e.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var PZx=e.live_utc_start;if(PZx!=null)this.liveUtcStartSeconds=Number(PZx);else{var Qnx=this.startSeconds;Qnx&&isFinite(Qnx)&&Qnx>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&& this.liveUtcStartSeconds>0)){var Qcc=e.utc_start_millis;Qcc&&(this.liveUtcStartSeconds=Number(Qcc)*.001)}var dVf=e.stream_time_start_millis;dVf&&(this.XD=Number(dVf)*.001);var dtR=this.KX||e.start;(this.Q5?dtR==null||Number(e.resume)===1:dtR==void 0||e.resume=="1")||this.isLivePlayback||(this.clipStart=KQ(this.clipStart,dtR));var UVH=e.url_encoded_third_party_media;UVH&&(this.Z2=Ue(UVH));var UtT=e.ypc_offer_button_formatted_text;if(UtT){var Ek6=JSON.parse(UtT);this.fI=Ek6!=null?Ek6:null;this.N_=UtT}var XDM= e.ypc_offer_button_text;XDM&&(this.wS=XDM);var KUH=e.ypc_offer_description;KUH&&(this.q2=KUH);var YSc=e.ypc_offer_headline;YSc&&(this.C$=YSc);var nkc=e.ypc_full_video_message;nkc&&(this.Zl=nkc);var eB6=e.ypc_offer_id;eB6&&(this.V2=eB6);var LmT=e.ypc_buy_url;LmT&&(this.xX=LmT);var cun=e.ypc_item_thumbnail;cun&&(this.Dt=cun);var IcJ=e.ypc_item_title;IcJ&&(this.ej=IcJ);var BHx=e.ypc_item_url;BHx&&(this.uV=BHx);var xff=e.ypc_vid;xff&&(this.HD=xff);e.ypc_overlay_timeout&&(this.wX=Number(e.ypc_overlay_timeout)); var oDc=e.ypc_trailer_player_vars;oDc&&(this.Gc=dW(oDc));var Six=e.ypc_original_itct;Six&&(this.Gk0=Six);this.hR=Ya(this.hR,e.ucid);this.SZ=e.storyboard_spec||null;this.o0=e.live_storyboard_spec||null;this.C_=e.iv_endscreen_url||null;this.Sn=EN(this.Sn,e.ypc_module);this.sK=EN(this.sK,e.ypc_clickwrap_module);this.Sn&&this.h7.push("ypc");this.sK&&this.h7.push("ypc_clickwrap");this.gs={video_id:e.video_id,eventid:e.eventid,cbrand:e.cbrand,cbr:e.cbr,cbrver:e.cbrver,c:e.c,cver:e.cver,ctheme:e.ctheme, cplayer:e.cplayer,cmodel:e.cmodel,cnetwork:e.cnetwork,cos:e.cos,cosver:e.cosver,cplatform:e.cplatform,user_age:e.user_age,user_display_image:e.user_display_image,user_display_name:e.user_display_name,user_gender:e.user_gender,csi_page_type:e.csi_page_type,csi_service_name:e.csi_service_name,enablecsi:e.enablecsi,enabled_engage_types:e.enabled_engage_types};cIr(this,e);var ruM=e.cotn;ruM&&(this.cotn=ruM);if(vzn(this))DI(this)&&(this.isLivePlayback&&this.xT&&(this.J9=!0),this.Pe&&(this.Z0=!0));else if(fLT(this))this.J9= !0;else{var hBf,RBc,uKJ=((hBf=this.playerResponse)==null?void 0:(RBc=hBf.streamingData)==null?void 0:RBc.adaptiveFormats)||[];if(uKJ.length>0)var O5=suH(this,uKJ);else{var tnc=this.adaptiveFormats;if(tnc&&!DI(this)){this.UW.B.Z&&(Qt=!0);var wL=mT(tnc),ETr=this.TI,OJn=this.lengthSeconds,NWh=this.isLivePlayback,qb=this.tq,JP=this.UW,mNM=sic(wL);if(NWh||qb){var qin=JP==null?void 0:JP.experiments,Dl=new DN("",qin,!0);Dl.Wy=!0;Dl.isManifestless=!0;Dl.K=!qb;Dl.isLive=!qb;Dl.tq=qb;for(var THR=g.f(wL),XAT= THR.next();!XAT.done;XAT=THR.next()){var VB=XAT.value,Wmf=Ck(VB,ETr),nF=aZ(VB.url,VB.sp,VB.s),Mnx=nF.get("id");Mnx&&Mnx.includes("%7E")&&(Dl.D=!0);var zB6=void 0,yGL=(zB6=qin)==null?void 0:zB6.N0("html5_max_known_end_time_rebase"),ZTe=Number(VB.target_duration_sec)||5,puM=Number(VB.max_dvr_duration_sec)||14400,sYv=Number(nF.get("mindsq")||nF.get("min_sq")||"0"),vDR=Number(nF.get("maxdsq")||nF.get("max_sq")||"0")||Infinity;Dl.kf=Dl.kf||sYv;Dl.YN=Dl.YN||vDR;var $NM=!pn(Wmf.mimeType);nF&&G6(Dl,new RZ(nF, Wmf,{rP:ZTe,ul:$NM,Ig:puM,kf:sYv,YN:vDR,o3:300,tq:qb,T7:yGL}))}var fc6=Dl}else{if(mNM==="FORMAT_STREAM_TYPE_OTF"){var G0=OJn;G0=G0===void 0?0:G0;var C5=new DN("",JP==null?void 0:JP.experiments,!1);C5.duration=G0||0;for(var Auf=g.f(wL),Ksc=Auf.next();!Ksc.done;Ksc=Auf.next()){var a8=Ksc.value,Yd$=Ck(a8,ETr,C5.duration),nT$=aZ(a8.url,a8.sp,a8.s);if(nT$)if(Yd$.streamType==="FORMAT_STREAM_TYPE_OTF")G6(C5,new u2(nT$,Yd$,"sq/0"));else{var j67=Hm(a8.init),HTU=Hm(a8.index);G6(C5,new FN(nT$,Yd$,j67,HTU))}}C5.isOtf= !0;var Fmf=C5}else{var gP=OJn;gP=gP===void 0?0:gP;var ko=new DN("",JP==null?void 0:JP.experiments,!1);ko.duration=gP||0;for(var bJr=g.f(wL),eN6=bJr.next();!eN6.done;eN6=bJr.next()){var NR=eN6.value,luJ=Ck(NR,ETr,ko.duration),PdU=Hm(NR.init),Q6N=Hm(NR.index),iJH=aZ(NR.url,NR.sp,NR.s);iJH&&G6(ko,new FN(iJH,luJ,PdU,Q6N))}Fmf=ko}fc6=Fmf}var GjR=fc6;if(wL.length>0){var gDn=wL[0];if(this.S().playerStyle==="hangouts-meet"&&gDn.url){var dNh=g.Ee(gDn.url);this.Qt=this.Qt||Number(dNh.expire)}}var UNh=this.isLivePlayback&& !this.tq&&!this.pS&&!this.isPremiere;this.Y("html5_live_head_playable")&&(!w7(this)&&UNh&&this.sW("missingLiveHeadPlayable",{}),this.UW.pS==="yt"&&(GjR.t7=!0));O5=GjR}else O5=null;this.sW("pafmts",{isManifestFilled:!!O5})}if(O5){Cf(this,O5);var kjT=!0}else kjT=!1;kjT?this.enableServerStitchedDai=this.enableServerStitchedDai&&J1(this):this.xT&&(this.UW.pS==="yt"&&this.Wy()&&this.Y("drm_manifestless_unplugged")&&this.Y("html5_deprecate_manifestful_fallback")?this.sW("deprecateMflFallback",{}):this.J9= !0)}var LvT=e.adpings;LvT&&(this.E5=LvT?dW(LvT):null);var Dff=e.feature;Dff&&(this.kV=Dff);var win=e.referrer;win&&(this.referrer=win);this.clientScreenNonce=Ya(this.clientScreenNonce,e.csn);this.PP=KQ(this.PP,e.root_ve_type);this.aR=KQ(this.aR,e.kids_age_up_mode);this.Q5||e.kids_app_info==void 0||(this.kidsAppInfo=e.kids_app_info);this.Q5&&e.kids_app_info!=null&&(this.kidsAppInfo=e.kids_app_info);this.RC=EN(this.RC,e.upg_content_filter_mode);this.unpluggedFilterModeType=KQ(this.unpluggedFilterModeType, e.unplugged_filter_mode_type);var Jun=e.unplugged_location_info;Jun&&(this.IU=Jun);var VnM=e.unplugged_partner_opt_out;VnM&&(this.zT=Ya("",VnM));this.LI=EN(this.LI,e.disable_watch_next);this.X8=Ya(this.X8,e.internal_ip_override);this.pY=!!e.is_yto_interstitial;(this.interstitials.length||this.pY)&&this.h7.push("yto");var CzM=e.JR;CzM&&(this.JR=CzM);this.D=Ya(this.D,e.csi_timer);e.watchUrl&&(this.watchUrl=e.watchUrl);var el=e.watch_endpoint;this.Y("html5_attach_watch_endpoint_ustreamer_config")&&el&& MmH(this,el);if(el==null?0:el.ustreamerConfig)this.L8=Go(el.ustreamerConfig);var acH,NHH,mff=el==null?void 0:(acH=el.loggingContext)==null?void 0:(NHH=acH.qoeLoggingContext)==null?void 0:NHH.serializedContextData;mff&&(this.uDd=mff);g.Uh(this.UW)&&this.UW.eA&&(this.embedsRct=Ya(this.embedsRct,e.rct),this.embedsRctn=Ya(this.embedsRctn,e.rctn));this.a8=this.a8||!!e.pause_at_start;e.default_active_source_video_id&&(this.defaultActiveSourceVideoId=e.default_active_source_video_id)}; g.M.S=function(){return this.UW}; g.M.Y=function(e){return this.UW.Y(e)}; g.M.Xk=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.M.hasSupportedAudio51Tracks=function(){var e;return!((e=this.Yf)==null||!e.Sl)}; g.M.getUserAudio51Preference=function(){var e=1;Wn(this.UW)&&this.Y("html5_ytv_surround_toggle_default_off")?e=0:g.Oj(this.UW)&&this.isLivePlayback&&this.cg()&&(e=0);var L;return(L=g.iS("yt-player-audio51"))!=null?L:e}; g.M.aQ=function(){this.We()||(this.X.K||this.X.unsubscribe("refresh",this.aQ,this),this.wC(-1))}; g.M.wC=function(e){if(!this.isLivePlayback||!this.B||this.B.flavor!=="fairplay"){var L=fD$(this.X,this.KY);if(L.length>0){for(var c=g.f(L),I=c.next();!I.done;I=c.next())I=I.value,I.startSecs=Math.max(I.startSecs,this.S6()),this.Y("html5_cuepoint_identifier_logging")&&I.event==="start"&&this.sW("cuepoint",{pubCue:I.identifier,segNum:e});this.publish("cuepointupdated",L,e);this.KY+=L.length;if(J1(this)&&this.UW.oT())for(L=g.f(L),c=L.next();!c.done;c=L.next())c=c.value,this.sW("cuepoint",{segNum:e,event:c.event, startSecs:c.startSecs,id:c.identifier.slice(-16)}),c.event==="start"&&(c=c.startSecs,this.sz.start=this.FD,this.sz.end=c+3)}}}; g.M.d6=function(){this.We()||(this.loading=!1,this.publish("dataloaded"))}; g.M.cg=function(){return this.zw!==void 0?this.zw:this.zw=!!this.TI||!!this.X&&wV(this.X)}; g.M.vu=function(e){var L=this;if(this.We())return AF();this.g0=this.m$=this.Z=null;Oq(this,"html5_high_res_logging_always")&&(this.UW.Cj=!0);return ihH(this,e).then(void 0,function(){return gzT(L,e)}).then(void 0,function(){return kYr(L)}).then(void 0,function(){return wFM(L)})}; g.M.SB=function(e){this.Z=e;GYR(this,this.Z.getAvailableAudioTracks());if(this.Z){e=g.f(this.Z.videoInfos);for(var L=e.next();!L.done;L=e.next()){L=L.value;var c=L.containerType;c!==0&&(this.ZU[c]=L.id)}}e=this.getAvailableAudioTracks();e=e.concat(this.DO);for(L=0;L0?this.Z.getAvailableAudioTracks():this.XK||[]:[]}; g.M.getAudioTrack=function(){var e=this;if(this.G&&!aK(this.G)){var L=g.vU(this.getAvailableAudioTracks(),function(B){return B.id===e.G.id}),c; if(!L&&((c=this.G.l5)==null?0:c.id)){var I=this.G.l5.id;L=g.vU(this.getAvailableAudioTracks(),function(B){return B.l5.id===I}); this.sW("nat",{id:this.G.id,track:!!L})}return L||this.DO}if(this.XK){if(!this.Wh)for(L=g.f(this.XK),c=L.next();!c.done;c=L.next())if(c=c.value,c.l5.getIsDefault()){this.Wh=c;break}return this.Wh||this.DO}return this.DO}; g.M.getPlayerResponse=function(){return this.playerResponse}; g.M.getWatchNextResponse=function(){return this.ye}; g.M.getHeartbeatResponse=function(){return this.rf}; g.M.Pv=function(){return this.watchUrl?this.watchUrl:this.UW.getVideoUrl(this.videoId)}; g.M.Cn=function(){return!!this.X&&(tgx(this.X)||Oxc(this.X)||qPM(this.X))}; g.M.getEmbeddedPlayerResponse=function(){return this.OU}; g.M.O9=function(){return(this.eventLabel||this.UW.Ve)==="shortspage"}; g.M.isAd=function(){return!!this.adFormat}; g.M.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.M.GI=function(){var e,L,c;return this.isDaiEnabled()&&this.enableServerStitchedDai&&!!((e=this.playerResponse)==null?0:(L=e.playerConfig)==null?0:(c=L.daiConfig)==null?0:c.ssaEnabledPlayback)}; g.M.Mb=function(){return this.Hi}; g.M.bD=function(){return this.Sn||this.L6}; g.M.Cv=function(){return Oq(this,"html5_samsung_vp9_live")}; g.M.sW=function(e,L,c){this.publish("ctmp",e,L,c)}; g.M.Ks=function(e,L,c){this.publish("ctmpstr",e,L,c)}; g.M.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.M.getGetAdBreakContext=function(e,L){e=e===void 0?NaN:e;L=L===void 0?NaN:L;var c={isSabr:GN(this)},I,B=(I=this.getHeartbeatResponse())==null?void 0:I.adBreakHeartbeatParams;B&&(c.adBreakHeartbeatParams=B);if(this.Y("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.X&&!isNaN(e)&&!isNaN(L)){L=e-L;for(var x in this.X.X)if(I=this.X.X[x],I.info.vM()||I.info.Cu())if(I=I.index,I.isLoaded()){x=I.kI(L);I=I.sR(x)+L-I.getStartTime(x);this.sW("gabc",{t:e.toFixed(3),mt:L.toFixed(3),sg:x,igt:I.toFixed(3)}); c.livePlaybackPosition={utcTimeMillis:""+(I*1E3).toFixed(0)};break}}return c}; g.M.isEmbedsShortsMode=function(e,L){if(!g.Uh(this.UW)||(this.UW.k9||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||L)return!1;var c,I;return!!(((c=this.embeddedPlayerConfig)==null?0:(I=c.embeddedPlayerFlags)==null?0:I.isShortsExperienceEligible)&&e.width<=e.height)}; g.M.KS=function(){g.Yg.prototype.KS.call(this);this.E5=null;delete this.Ac;delete this.accountLinkingConfig;delete this.X;this.Z=this.rf=this.playerResponse=this.ye=null;this.OF=this.adaptiveFormats="";delete this.botguardData;this.d_=this.suggestions=this.Xy=null;this.sabrContextUpdates.clear()};var STc={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},rRJ={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},x5c={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},cRc={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"},B8M={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},IjJ={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"},oBc={0:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_UNSPECIFIED",1:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_30_SECONDS",2:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_FULL"};g.z(sq,g.p);g.M=sq.prototype;g.M.handleExternalCall=function(e,L,c){var I=this.state.T[e],B=this.state.J[e],x=I;if(B)if(c&&a2(c,sFe))x=B;else if(!I)throw Error('API call from an untrusted origin: "'+c+'"');this.logApiCall(e,c);if(x){c=!1;I=g.f(L);for(B=I.next();!B.done;B=I.next())if(String(B.value).includes("javascript:")){c=!0;break}c&&g.F7(Error('Dangerous call to "'+e+'" with ['+L+"]."));return x.apply(this,L)}throw Error('Unknown API method: "'+e+'".');}; g.M.logApiCall=function(e,L,c){var I=this.app.S();I.Wh&&!this.state.D.has(e)&&(this.state.D.add(e),g.et("webPlayerApiCalled",{callerUrl:I.loaderUrl,methodName:e,origin:L||void 0,playerStyle:I.playerStyle||void 0,embeddedPlayerMode:I.k9,errorCode:c}))}; g.M.publish=function(e){var L=g.HM.apply(1,arguments);this.state.Z.publish.apply(this.state.Z,[e].concat(g.V(L)));if(e==="videodatachange"||e==="resize"||e==="cardstatechange")this.state.K.publish.apply(this.state.K,[e].concat(g.V(L))),this.state.G.publish.apply(this.state.G,[e].concat(g.V(L)))}; g.M.fS=function(e){var L=g.HM.apply(1,arguments);this.state.Z.publish.apply(this.state.Z,[e].concat(g.V(L)));this.state.K.publish.apply(this.state.K,[e].concat(g.V(L)))}; g.M.Kb=function(e){var L=g.HM.apply(1,arguments);this.state.Z.publish.apply(this.state.Z,[e].concat(g.V(L)));this.state.K.publish.apply(this.state.K,[e].concat(g.V(L)));this.state.G.publish.apply(this.state.G,[e].concat(g.V(L)))}; g.M.oy=function(e){var L=g.HM.apply(1,arguments);this.state.Z.publish.apply(this.state.Z,[e].concat(g.V(L)));this.state.K.publish.apply(this.state.K,[e].concat(g.V(L)));this.state.G.publish.apply(this.state.G,[e].concat(g.V(L)));this.state.B.publish.apply(this.state.B,[e].concat(g.V(L)))}; g.M.Y=function(e){return this.app.S().Y(e)}; g.M.KS=function(){if(this.state.element){var e=this.state.element,L;for(L in this.state.X)this.state.X.hasOwnProperty(L)&&(e[L]=null);this.state.element=null}g.p.prototype.KS.call(this)};g.z(bf,g.zl);bf.prototype.publish=function(e){var L=g.HM.apply(1,arguments);if(this.B.has(e))return this.B.get(e).push(L),!0;var c=!1;try{for(L=[L],this.B.set(e,L);L.length;)c=g.zl.prototype.publish.call.apply(g.zl.prototype.publish,[this,e].concat(g.V(L.shift())))}finally{this.B.delete(e)}return c};g.z(GC,g.p);GC.prototype.KS=function(){this.B.dispose();this.G.dispose();this.K.dispose();this.Z.dispose();this.D=this.X=this.J=this.T=this.j=void 0};var T8x=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.z(kb,sq);g.M=kb.prototype;g.M.getApiInterface=function(){return Array.from(this.state.j)}; g.M.YE=function(e,L){this.state.B.subscribe(e,L)}; g.M.xUe=function(e,L){this.state.B.unsubscribe(e,L)}; g.M.getPlayerState=function(e){return bVM(this.app,e)}; g.M.lQ=function(){return bVM(this.app)}; g.M.ut9=function(e,L,c){Jq(this)&&(Pb(this.app,!0,1),Uk(this.app,e,L,c,1))}; g.M.getCurrentTime=function(e,L,c){var I=this.getPlayerState(e);if(this.app.getAppState()===2&&I===5){var B;return((B=this.app.getVideoData())==null?void 0:B.startSeconds)||0}return this.Y("web_player_max_seekable_on_ended")&&I===0?yh(this.app,e):e?this.app.getCurrentTime(e,L,c):this.app.getCurrentTime(e)}; g.M.Mq=function(){return this.app.getCurrentTime(1)}; g.M.Jn=function(){var e=this.app.sR(1);return isNaN(e)?this.getCurrentTime(1):e}; g.M.O_=function(){return this.app.getDuration(1)}; g.M.Ea=function(e,L){e=g.j5(Math.floor(e),0,100);isFinite(e)&&NP(this.app,{volume:e,muted:this.isMuted()},L)}; g.M.vfS=function(e){this.Ea(e,!1)}; g.M.R5=function(e){NP(this.app,{muted:!0,volume:this.getVolume()},e)}; g.M.zww=function(){this.R5(!1)}; g.M.Ri=function(e){w5(this.app)&&!this.Y("embeds_enable_emc3ds_muted_autoplay")||NP(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},e)}; g.M.WIw=function(){w5(this.app)&&this.Y("embeds_enable_emc3ds_muted_autoplay")||this.Ri(!1)}; g.M.getPlayerMode=function(){var e={};this.app.getVideoData().xx&&(e.pfp={enableIma:this.app.hq().allowImaMonetization,autoplay:BS(this.app.hq()),mutedAutoplay:this.app.hq().mutedAutoplay});return e}; g.M.tA=function(){var e=this.app.getPresentingPlayerType();if(e===2&&!this.app.xf()){var L=jP(this.app.qx());if(!(i6h(L)||g.Uh(this.app.S())&&g.E(this.app.Qe().getPlayerState(),1024))||GcL(L))return}(L=this.app.MM().uE)?L.playVideo():this.app.playVideo(e)}; g.M.WZw=function(){Pb(this.app,!0,1);this.tA()}; g.M.pauseVideo=function(e){var L=this.app.getPresentingPlayerType();if(L!==2||this.app.xf()||i6h(jP(this.app.qx()))){var c=this.app.MM().uE;c?c.pauseVideo():this.app.pauseVideo(L,e)}}; g.M.Dv7=function(){var e=this.app,L=!1;e.XM.Cf&&(e.CS.publish("pageTransition"),L=!0);e.stopVideo(L)}; g.M.clearVideo=function(){}; g.M.getAvailablePlaybackRates=function(){var e=this.app.S();return e.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(e.G?e.ancestorOrigins[0]:window.location.origin)||e.tO?EC7:e.supportsVarispeedExtendedFeatures?XaN:e.Y("web_remix_allow_up_to_3x_playback_rate")&&g.DF(e)?Kjg:Ne:[1]}; g.M.getPlaybackQuality=function(e){return(e=this.app.cM(e))?e.getPlaybackQuality():"unknown"}; g.M.Oj7=function(){}; g.M.getAvailableQualityLevels=function(e){return(e=this.app.cM(e))?(e=g.Mt(e.Oh(),function(L){return L.quality}),e.length&&(e[0]==="auto"&&e.shift(),e=e.concat(["auto"])),e):[]}; g.M.yA=function(){return this.getAvailableQualityLevels(1)}; g.M.Nq=function(){return this.iU()}; g.M.Ss=function(){return 1}; g.M.getVideoLoadedFraction=function(e){return this.app.getVideoLoadedFraction(e)}; g.M.iU=function(){return this.getVideoLoadedFraction()}; g.M.iQ=function(){return 0}; g.M.getSize=function(){var e=this.app.LS().getPlayerSize();return{width:e.width,height:e.height}}; g.M.setSize=function(){this.app.LS().resize()}; g.M.loadVideoById=function(e,L,c,I){if(!e)return!1;e=g5(e,L,c);return this.app.loadVideoByPlayerVars(e,I)}; g.M.oa=function(e,L,c){e=this.loadVideoById(e,L,c,1);Pb(this.app,e,1)}; g.M.cueVideoById=function(e,L,c,I){e=g5(e,L,c);this.app.cueVideoByPlayerVars(e,I)}; g.M.VC=function(e,L,c){this.cueVideoById(e,L,c,1)}; g.M.loadVideoByUrl=function(e,L,c,I){e=qTf(e,L,c);return this.app.loadVideoByPlayerVars(e,I)}; g.M.CE=function(e,L,c){e=this.loadVideoByUrl(e,L,c,1);Pb(this.app,e,1)}; g.M.cueVideoByUrl=function(e,L,c,I){e=qTf(e,L,c);this.app.cueVideoByPlayerVars(e,I)}; g.M.Rr=function(e,L,c){this.cueVideoByUrl(e,L,c,1)}; g.M.xs=function(){var e=this.app.S();if(e.h7)return"";var L=this.app.hq(),c=void 0;L.isLivePlayback||(c=Math.floor(this.app.getCurrentTime(1)));return e.getVideoUrl(L.videoId,this.getPlaylistId()||void 0,c)}; g.M.C4=function(){return this.app.getDebugText()}; g.M.getVideoEmbedCode=function(){var e=this.app.S();if(e.h7)return"";var L=this.app.hq();return e.getVideoEmbedCode(L.isPrivate?"":L.title,this.app.hq().videoId,this.app.LS().getPlayerSize(),this.getPlaylistId()||void 0)}; g.M.Bn=function(e,L,c){return VUf(this.app,e,L,c)}; g.M.removeCueRange=function(e){return this.app.jD(e)}; g.M.loadPlaylist=function(e,L,c,I){this.app.loadPlaylist(e,L,c,I)}; g.M.tD=function(e,L,c,I){this.loadPlaylist(e,L,c,I);Pb(this.app,!0,1)}; g.M.cuePlaylist=function(e,L,c,I){this.app.cuePlaylist(e,L,c,I)}; g.M.nextVideo=function(e,L){this.app.nextVideo(e,L)}; g.M.pel=function(){this.nextVideo();Pb(this.app,!0,1)}; g.M.previousVideo=function(e){this.app.previousVideo(e)}; g.M.AqY=function(){this.previousVideo();Pb(this.app,!0,1)}; g.M.playVideoAt=function(e){this.app.playVideoAt(e)}; g.M.yqY=function(e){this.playVideoAt(e);Pb(this.app,!0,1)}; g.M.setShuffle=function(e){var L=this.app.getPlaylist();L&&L.setShuffle(e)}; g.M.setLoop=function(e){var L=this.app.getPlaylist();L&&(L.loop=e)}; g.M.HN=function(){var e=this.app.getPlaylist();if(!e)return null;for(var L=[],c=0;c=400)if(e=this.hq(),this.V.S().Y("client_respect_autoplay_switch_button_renderer"))e=!!e.autoplaySwitchButtonRenderer;else{var L,c,I,B;e=!!((L=e.getWatchNextResponse())==null?0:(c=L.contents)==null?0:(I=c.twoColumnWatchNextResults)==null?0:(B=I.autoplay)==null?0:B.autoplay)!==!1}if(e)this.X||(this.X=!0,this.i5(this.X),this.V.S().Y("web_player_autonav_toggle_always_listen")||p$v(this), L=this.hq(),this.pC(L.autonavState),this.V.logVisibility(this.element,this.X));else if(this.X=!1,this.i5(this.X),!this.V.S().Y("web_player_autonav_toggle_always_listen"))for(this.V.S().Y("web_player_autonav_toggle_always_listen"),L=g.f(this.K),c=L.next();!c.done;c=L.next())this.j6(c.value)}; g.M.pC=function(e){jhT(this)?this.isChecked=e!==1:((e=e!==1)||(g.J7(),e=g.uL("web_autonav_allow_off_by_default")&&!g.Vu(0,141)&&g.Zu("AUTONAV_OFF_BY_DEFAULT")?!1:!g.Vu(0,140)),this.isChecked=e);$5c(this)}; g.M.onClick=function(){this.isChecked=!this.isChecked;this.V.Pl(this.isChecked?2:1);$5c(this);if(jhT(this)){var e=this.hq().autoplaySwitchButtonRenderer;this.isChecked&&(e==null?0:e.onEnabledCommand)?this.V.fS("innertubeCommand",e.onEnabledCommand):!this.isChecked&&(e==null?0:e.onDisabledCommand)&&this.V.fS("innertubeCommand",e.onDisabledCommand)}this.V.logClick(this.element)}; g.M.getValue=function(){return this.isChecked}; g.M.hq=function(){return this.V.getVideoData(1)};g.z(Hbf,Rv);g.z(Mo,g.ov);Mo.prototype.onClick=function(){this.enabled&&(z2(this,!this.checked),this.publish("select",this.checked))}; Mo.prototype.getValue=function(){return this.checked}; Mo.prototype.setEnabled=function(e){(this.enabled=e)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var fr=["en-CA","en","es-MX","fr-CA"];g.z(G2,Mo);G2.prototype.OW=function(e){e?this.X||(this.G_.Yx(this),this.X=!0):this.X&&(this.G_.nu(this),this.X=!1);this.X&&z2(this,ylJ())}; G2.prototype.G=function(){g.eZ(this.element,"ytp-menuitem-highlight-transition-enabled")}; G2.prototype.Z=function(e){var L=ylJ();e!==L&&(L=g.J7(),aG(190,e),aG(192,!0),L.save(),this.V.fS("cinematicSettingsToggleChange",e))}; G2.prototype.KS=function(){this.X&&this.G_.nu(this);Mo.prototype.KS.call(this)};g.z(gd,Rv);gd.prototype.updateCinematicSettings=function(e){this.X=e;var L;(L=this.menuItem)==null||L.OW(e);this.api.publish("onCinematicSettingsVisibilityChange",e)};g.z(U5M,Rv);g.z(kq,Rv);kq.prototype.setCreatorEndscreenVisibility=function(e){var L;(L=Qk(this.api.qx()))==null||L.i5(e)}; kq.prototype.X=function(e){function L(I){I==="creatorendscreen"&&(I=Qk(c.api.qx()))&&I.P0S(c.hideButton)} var c=this;this.hideButton=e;this.events.C(this.api,"modulecreated",L);L("creatorendscreen")};g.z(D9,Mo);D9.prototype.G=function(e){this.Z(e?1:0)}; D9.prototype.K=function(){var e=this.hasDrcAudioTrack(),L=this.X()===1&&e;z2(this,L);this.setEnabled(e)}; D9.prototype.KS=function(){this.G_.nu(this);Mo.prototype.KS.call(this)};g.z(wd,Rv);wd.prototype.getDrcUserPreference=function(){return this.X}; wd.prototype.setDrcUserPreference=function(e){g.bS("yt-player-drc-pref",e,31536E3);e!==this.X&&(this.X=e,this.updateEnvironmentData(),this.K()&&this.api.m5())}; wd.prototype.updateEnvironmentData=function(){this.api.S().gZ=this.X===1}; wd.prototype.K=function(){var e,L,c=(e=this.api.getVideoData())==null?void 0:(L=e.Z)==null?void 0:L.X;if(!c)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.Y("mta_drc_mutual_exclusion_removal")){var I,B,x=(I=this.api.Wj())==null?void 0:(B=I.l5)==null?void 0:B.id;return jW(c,function(S){var h;return S.audio.X&&((h=S.l5)==null?void 0:h.id)===x})}return jW(c,function(S){var h; return((h=S.audio)==null?void 0:h.X)===!0})};g.z(Jk,Rv);Jk.prototype.onVideoDataChange=function(){var e=this,L=this.api.getVideoData();this.api.RU("embargo",1);var c=L==null?void 0:L.g5.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(c==null?0:c.length)?X$n(this,c.filter(function(I){return EBH(e,I)})):(L==null?0:L.cueRanges)&&X$n(this,L.cueRanges.filter(function(I){return EBH(e,I)}))}; Jk.prototype.K=function(e){return e.embargo!==void 0}; Jk.prototype.KS=function(){Rv.prototype.KS.call(this);this.X={}};g.z(V3,Rv); V3.prototype.addEmbedsConversionTrackingParams=function(e){var L=this.api.S(),c=L.widgetReferrer,I=L.xT,B=this.X,x="",S=L.getWebPlayerContextConfig();S&&(x=S.embedsIframeOriginParam||"");c.length>0&&(e.embeds_widget_referrer=c);I.length>0&&(e.embeds_referring_euri=I);L.G&&x.length>0&&(e.embeds_referring_origin=x);S&&S.embedsFeature&&(e.feature=S.embedsFeature);B.length>0&&(L.Y("embeds_web_enable_lite_experiment_control_arm_logging")?B.unshift(28572):g.cI(g.ID(L))&&B.unshift(159628),L=B.join(","),L= g.m2()?L:g.gR(L,4),e.source_ve_path=L);this.X.length=0};g.z(Kgn,Rv);g.z(YTv,Rv);g.z(Cr,g.p);Cr.prototype.KS=function(){g.p.prototype.KS.call(this);this.X=null;this.K&&this.K.disconnect()};g.z(enJ,Rv);g.z(av,g.U);av.prototype.show=function(){g.U.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; av.prototype.stopTimer=function(){this.X&&(this.X.dispose(),this.X=null)}; av.prototype.onVideoDataChange=function(e){var L,c,I=(L=this.api.getVideoData())==null?void 0:(c=L.getPlayerResponse())==null?void 0:c.playabilityStatus;I&&(L=LJT(I),g.E(this.api.getPlayerStateObject(),128)||e==="dataloaderror"||!L?(this.K=0,this.stopTimer(),this.hide()):(e=(L.remainingTimeSecs||0)*1E3,e>0&&(this.show(),this.updateValue("label",N5(L.label)),IAx(this,e))))}; av.prototype.KS=function(){this.stopTimer();g.U.prototype.KS.call(this)};g.z(BVv,Rv);g.z(No,g.U);No.prototype.onClick=function(){this.CS.logClick(this.element);this.CS.fS("onFullerscreenEduClicked")}; No.prototype.OW=function(){this.CS.isFullscreen()?this.X?this.fade.hide():this.fade.show():this.hide();this.CS.logVisibility(this.element,this.CS.isFullscreen()&&!this.X)};g.z(y3,Rv);y3.prototype.updateFullerscreenEduButtonSubtleModeState=function(e){var L;(L=this.X)!=null&&(g.cY(L.element,"ytp-fullerscreen-edu-button-subtle",e),e&&!L.K&&(L.element.setAttribute("title","Scroll for details"),y4(L.CS,L.element,L),L.K=!0))}; y3.prototype.updateFullerscreenEduButtonVisibility=function(e){var L;(L=this.X)!=null&&(L.X=e,L.OW())};g.z(xBx,g.U);g.z(ref,Rv);g.z(Z9,Rv);Z9.prototype.getSphericalProperties=function(){var e=g.Q4(this.api.qx());return e?e.getSphericalProperties():{}}; Z9.prototype.setSphericalProperties=function(e){if(e){var L=g.Q4(this.api.qx());L&&L.setSphericalProperties(e,!0)}};g.z(pr,Rv);g.M=pr.prototype;g.M.createClientVe=function(e,L,c,I){this.api.createClientVe(e,L,c,I===void 0?!1:I)}; g.M.createServerVe=function(e,L,c){this.api.createServerVe(e,L,c===void 0?!1:c)}; g.M.setTrackingParams=function(e,L){this.api.setTrackingParams(e,L)}; g.M.logClick=function(e,L){this.api.logClick(e,L)}; g.M.logVisibility=function(e,L,c){this.api.logVisibility(e,L,c)}; g.M.hasVe=function(e){return this.api.hasVe(e)}; g.M.destroyVe=function(e){this.api.destroyVe(e)};var RnJ=!1;jS.prototype.setPlaybackRate=function(e){this.playbackRate=Math.max(1,e)}; jS.prototype.getPlaybackRate=function(){return this.playbackRate};dd.prototype.YR=function(e){var L=g.mr(e.info.X.info,this.w_.Wy),c=e.info.ud+this.G,I=e.info.startTime*1E3;if(this.policy.m$)try{I=this.policy.m$?g.Mh(e)*1E3:e.info.startTime*1E3}catch(S){Math.random()>.99&&this.logger&&(I=o8(e.K).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:e.info.e6(),encodedDataView:g.GM(I,4)})),I=e.info.startTime*1E3}var B=e.info.clipId,x=this.policy.m$?g.Krc(e)*1E3:e.info.duration*1E3;this.policy.m$&&(I<0||x<0)&&(this.logger&&(this.logger({missingSegInfo:e.info.e6(), startTimeMs:I,durationMs:x}),this.policy.hB||(I<0&&(I=e.info.startTime*1E3),x<0&&(x=e.info.duration*1E3))),this.policy.hB&&(I<0&&(I=e.info.startTime*1E3),x<0&&(x=e.info.duration*1E3)));return{formatId:L,ud:c,startTimeMs:I,clipId:B,Ov:x}}; dd.prototype.ZB=function(e){this.timestampOffset=e};U4.prototype.seek=function(e,L){e!==this.targetTime&&(this.seekCount=0);this.targetTime=e;var c=this.videoTrack.K,I=this.audioTrack.K,B=this.audioTrack.Py,x=kvT(this,this.videoTrack,e,this.videoTrack.Py,L);L=kvT(this,this.audioTrack,this.policy.IU?e:x,B,L);e=Math.max(e,x,L);this.G=!0;this.w_.isManifestless&&(FJ$(this,this.videoTrack,c),FJ$(this,this.audioTrack,I));return e}; U4.prototype.isSeeking=function(){return this.G}; U4.prototype.cV=function(e){this.K=e}; var g0x=2/24;var JeR=0;g.M=xk.prototype;g.M.Rc=function(){this.D=this.now();bLf(this.qw,this.D);this.UY.Rc()}; g.M.Xz=function(e,L){var c=this.policy.K?(0,g.zI)():0;oc(this,e,L);e-this.j<10&&this.K>0||this.BK(e,L);this.UY.Xz(e,L);this.policy.K&&(e=(0,g.zI)()-c,this.RT+=e,this.x9=Math.max(e,this.x9))}; g.M.BK=function(e,L){var c=(e-this.j)/1E3,I=L-this.Z;this.d9||(Zz(this.qw,c,I),this.M$(c,I));this.j=e;this.Z=L}; g.M.XI=function(){this.k9&&VCn(this);this.UY.XI()}; g.M.rz=function(e){this.k9||(this.k9=this.B-this.Cf+e,this.xT=this.B,this.Bw=this.T)}; g.M.y7=function(e,L){e=e===void 0?this.T:e;L=L===void 0?this.B:L;this.K>0||(this.J=e,this.K=L,this.pS=this.isActive=!0)}; g.M.Ey=function(){return this.WR||2}; g.M.VH=function(){}; g.M.ZS=function(){var e,L={rn:this.requestNumber,rt:(this.T-this.X).toFixed(),lb:this.B,stall:(1E3*this.G).toFixed(),ht:(this.D-this.X).toFixed(),elt:(this.J-this.X).toFixed(),elb:this.K,d:(e=this.Ve)==null?void 0:e.sV()};this.url&&hnv(L,this.url);this.policy.K&&(L.mph=this.x9.toFixed(),L.tph=this.RT.toFixed());L.ulb=this.ye;L.ult=this.h7;return L}; g.M.now=function(){return(0,g.zI)()}; g.M.deactivate=function(){this.isActive&&(this.isActive=!1)};g.z(rC,xk);g.M=rC.prototype;g.M.ZS=function(){var e=xk.prototype.ZS.call(this);e.pb=this.uq;e.pt=(1E3*this.DY).toFixed();e.se=this.Q5;return e}; g.M.nR=function(){var e=this.UY;this.m$||(this.m$=e.nR?e.nR():1);return this.m$}; g.M.Q$=function(){return this.d$?this.nR()!==1:!1}; g.M.uO=function(e,L,c){if(!this.gT){this.gT=!0;if(!this.d9){oc(this,e,L);this.BK(e,L);var I=this.nR();this.Q5=c;if(!this.d9)if(I===2){I=e-this.J0)||h6(this,I,L),this.K>0&&mX(this.qw,L,this.G));e=(e-this.X)/ 1E3||.01;this.policy.J&&!(this.K>0)||NX(this.qw,e,this.Z,aA$(this),this.Wt)}this.deactivate()}}; g.M.kG=function(e,L,c){c&&(this.m$=2);e<0&&this.WR&&(e=this.WR);L?this.He+=e:this.Pe+=e}; g.M.Ey=function(){return this.Pe||this.He||xk.prototype.Ey.call(this)}; g.M.BK=function(e,L){var c=(e-this.j)/1E3,I=L-this.Z,B=this.nR();this.isActive?B===1&&((I>0||this.policy.B)&&(c>.2||I<1024)?(this.G+=c,I>0&&c>.2&&h6(this,this.nB?c:.05,I),this.sY=!0):I>0&&(h6(this,c,I),this.sY=!0)):L&&L>=this.policy.X&&this.y7(e,L);xk.prototype.BK.call(this,e,L)}; g.M.wD=function(e){if(!this.d9){oc(this,e,this.B);var L=(e-this.X)/1E3;this.nR()!==2&&this.K>0&&(this.G+=(e-this.j)/1E3,mX(this.qw,this.Z,this.G));NX(this.qw,L,this.Z,aA$(this),this.Wt,!0);e=(e-this.j)/1E3;Zz(this.qw,e,0);this.M$(e,0)}}; g.M.y7=function(e,L){e=e===void 0?this.T:e;L=L===void 0?this.B:L;if(!(this.K>0)&&(xk.prototype.y7.call(this,e,L),this.nR()===1)){L=(this.D-this.X)/1E3;var c=(e-this.D)/1E3;this.d$&&Rc(this,this.now());this.Kf||this.d9||(this.WR&&(c=Math.max(0,c-this.WR)),e=this.qw,e.J.lE(1,L),e.Ve.lE(1,c))}}; g.M.H9=function(){this.d$&&Rc(this,this.now());return this.t7}; g.M.bW=function(){var e;if(e=this.Z>this.j8)e=(e=this.Z)?e>=this.policy.X:!1;return e}; g.M.pP=function(){return this.d_}; g.M.Ha=function(e){e=e===void 0?this.now():e;if(this.d$){Rc(this,e);if(this.m$?this.Q$():this.Gm!==this.Y9){var L=this.Y9;if(e0?c+e:c+Math.max(e,L)}; g.M.vL=function(){return this.now()-this.J}; g.M.F2=function(){return(this.Z-this.K)*1E3/this.vL()||0}; g.M.fm=function(){return this.J};uZ.prototype.feed=function(e){L5(this.X,e);this.Bd()}; uZ.prototype.Bd=function(){if(this.G){if(!this.X.totalLength)return;var e=this.X.split(this.Z-this.K),L=e.TD;e=e.Xo;if(!this.UY.rz(this.G,L,this.K,this.Z))return;this.K+=L.totalLength;this.X=e;this.K===this.Z&&(this.G=this.Z=this.K=void 0)}for(;;){var c=0;e=g.f(ZXx(this.X,c));L=e.next().value;c=e.next().value;c=g.f(ZXx(this.X,c));e=c.next().value;c=c.next().value;if(L<0||e<0)break;if(!(c+e<=this.X.totalLength)){if(!(this.UY.rz&&c+1<=this.X.totalLength))break;c=this.X.split(c).Xo;this.UY.rz(L,c,0, e)&&(this.G=L,this.K=c.totalLength,this.Z=e,this.X=new ej([]));break}e=this.X.split(c).Xo.split(e);c=e.Xo;this.UY.mY(L,e.TD);this.X=c}}; uZ.prototype.dispose=function(){this.X=new ej};g.M=t6.prototype;g.M.BO=function(){return 0}; g.M.kR=function(){return null}; g.M.P9=function(){return null}; g.M.nU=function(){return this.state>=1}; g.M.isComplete=function(){return this.state>=3}; g.M.J1=function(){return this.state===5}; g.M.onStateChange=function(){}; g.M.Oq=function(e){var L=this.state;this.state=e;this.onStateChange(L);this.callback&&this.callback(this,L)}; g.M.AS=function(e){e&&this.state=this.xhr.HEADERS_RECEIVED}; g.M.getResponseHeader=function(e){try{return this.xhr.getResponseHeader(e)}catch(L){return""}}; g.M.G1=function(){return+this.getResponseHeader("content-length")}; g.M.W_=function(){return this.K}; g.M.Xw=function(){return this.status>=200&&this.status<300&&!!this.K}; g.M.gz=function(){return this.X.totalLength>0}; g.M.j7=function(){var e=this.X;this.X=new ej;return e}; g.M.aD=function(){return this.X}; g.M.abort=function(){this.We=!0;this.xhr.abort()}; g.M.fq=function(){return!0}; g.M.YM=function(){return this.Z}; g.M.Ku=function(){return""};g.M=HXn.prototype;g.M.getResponseHeader=function(e){return e==="content-type"?this.X.get("type"):""}; g.M.abort=function(){}; g.M.CU=function(){return!0}; g.M.G1=function(){return this.range.length}; g.M.W_=function(){return this.loaded}; g.M.Xw=function(){return!!this.loaded}; g.M.gz=function(){return!!this.K.totalLength}; g.M.j7=function(){var e=this.K;this.K=new ej;return e}; g.M.aD=function(){return this.K}; g.M.fq=function(){return!0}; g.M.YM=function(){return!!this.error}; g.M.Ku=function(){return this.error};g.M=PJT.prototype;g.M.start=function(e){var L={credentials:"include",cache:"no-store"};Object.assign(L,this.T);this.G&&(L.signal=this.G.signal);e=new Request(e,L);fetch(e).then(this.D,this.onError).then(void 0,nv)}; g.M.onDone=function(){this.We()||this.UY.XI()}; g.M.getResponseHeader=function(e){return this.responseHeaders?this.responseHeaders.get(e):null}; g.M.CU=function(){return!!this.responseHeaders}; g.M.W_=function(){return this.K}; g.M.G1=function(){return+this.getResponseHeader("content-length")}; g.M.Xw=function(){return this.status>=200&&this.status<300&&!!this.K}; g.M.gz=function(){return!!this.X.totalLength}; g.M.j7=function(){var e=this.X;this.X=new ej;return e}; g.M.aD=function(){return this.X}; g.M.We=function(){return this.B}; g.M.abort=function(){this.Z&&this.Z.cancel().catch(function(){}); this.G&&this.G.abort();this.B=!0}; g.M.fq=function(){return!0}; g.M.YM=function(){return this.j}; g.M.Ku=function(){return this.errorMessage};g.M=Qyv.prototype;g.M.onDone=function(){if(!this.We){this.status=this.xhr.status;try{this.response=this.xhr.response,this.K=this.response.byteLength}catch(e){}this.X=!0;this.UY.XI()}}; g.M.lJ=function(){this.xhr.readyState===2&&this.UY.Rc()}; g.M.vR=function(e){this.We||(this.status=this.xhr.status,this.X||(this.K=e.loaded),this.UY.Xz((0,g.zI)(),e.loaded))}; g.M.CU=function(){return this.xhr.readyState>=2}; g.M.getResponseHeader=function(e){try{return this.xhr.getResponseHeader(e)}catch(L){return g.F7(Error("Could not read XHR header "+e)),""}}; g.M.G1=function(){return+this.getResponseHeader("content-length")}; g.M.W_=function(){return this.K}; g.M.Xw=function(){return this.status>=200&&this.status<300&&this.X&&!!this.K}; g.M.gz=function(){return this.X&&!!this.response&&!!this.response.byteLength}; g.M.j7=function(){var e=this.response;this.response=void 0;return new ej([new Uint8Array(e)])}; g.M.aD=function(){return new ej([new Uint8Array(this.response)])}; g.M.abort=function(){this.We=!0;this.xhr.abort()}; g.M.fq=function(){return!1}; g.M.YM=function(){return!1}; g.M.Ku=function(){return""};g.z(TF,g.p);TF.prototype.r$=function(){if(!this.HM.length)return[];var e=this.HM;this.HM=[];this.Z=g.zL(e).info;return e}; TF.prototype.SR=function(){return this.HM}; TF.prototype.KS=function(){g.p.prototype.KS.call(this);this.X=null;this.HM.length=0;this.bd.length=0;this.Z=null};g.z(MV,g.p);g.M=MV.prototype; g.M.pMd=function(){if(!this.We()){var e=(0,g.zI)(),L=!1;if(this.policy.sC){e=e-(this.timing.K>0?this.timing.J:this.timing.X)-this.timing.Ey()*1E3;var c=VC(zF(this),!1);e>=2E3*c?L=!0:e>=this.policy.Jo*c&&(this.X=this.policy.XK)}else if(this.timing.K>0){if(this.B){this.policy.xT&&(this.X=0);return}var I=this.timing.pP();this.timing.Ha();var B=this.timing.pP();B-I>=this.policy.Nl*.8?(this.X++,this.logger.debug(function(){return"Mispredicted by "+(B-I).toFixed(0)}),L=this.X>=5):this.X=0}else{var x=e- this.timing.H9(); this.policy.XK&&x>0&&(this.X+=1);L=VC(zF(this),!1)*this.policy.O4;(L=x>L*1E3)&&this.logger.debug(function(){return"Elbow late by "+x.toFixed(3)})}this.X>0&&this.UY.pn(); L?this.iG():this.K.start()}}; g.M.iG=function(){this.G=!0;this.UY.No();this.lastError="net.timeout";vD(this)}; g.M.canRetry=function(e){var L=zF(this);e=e?this.policy.uV:this.policy.Hv;return L.timedOut0&&(L=Sj(L.X,0),e.ubyte=L,c===1&&L===0&&(e.b248180278=!0))}this.Fc&&(e.rc=this.policy.Gc?this.Fc:this.Fc.toString());this.policy.g0&&this.Az&&(e.tr=this.Az);e.itag=this.info.bd[0].X.info.itag;e.ml=""+ +this.info.bd[0].X.Y4();e.sq=""+this.info.bd[0].ud;this.UR&&(e.ifi=""+ +jC(this.info.V5.K));this.Fc!==410&&this.Fc!==500&&this.Fc!==503||(e.fmt_unav="true");var I;(c=this.errorMessage||((I=this.xhr)==null?void 0: I.Ku()))&&(e.msg=c);this.pL&&(e.smb="1");this.info.isDecorated()&&(e.sdai="1");return e}; g.M.y_=function(){return NVR(this.timing)}; g.M.Ku=function(){return this.xhr.Ku()||""}; g.M.bW=function(){return this.isComplete()||this.timing.bW()}; g.M.Xz=function(){!this.We()&&this.xhr&&(this.Fc=this.xhr.status,this.policy.sf&&this.ql&&this.oo(!1),this.lC()?this.AS(2):!this.Rs&&this.bW()&&(this.AS(),this.Rs=!0))}; g.M.Rc=function(){if(!this.We()&&this.xhr){if(!this.Z3&&this.xhr.CU()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var e=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.Z3=((0,g.zI)()-e)/1E3}this.xhr.CU()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.kO&&!e8$()&&g.bS("yt-player-headers-readable",!0,2592E3);e=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var L=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),c;(c=this.Kq)==null||c.stop();this.XO=e||this.XO; this.P_=L||this.P_}}; g.M.XI=function(){var e=this.xhr;if(!this.We()&&e){this.Fc=e.status;e=this.ea(e);if(this.policy.g0){var L;(L=this.Kq)==null||L.stop()}e===5?vD(this.u4):this.Oq(e);this.u4.K.stop()}}; g.M.ea=function(e){var L=this;G7v(this);if(fB(this.u4,this.xhr.status,this.ev?this.timing.pS||this.B2:this.xhr.Xw(),!1,this.iW))return 5;var c="";A6(this.u4,this.xhr)&&(c=Ygr(this.u4,this.xhr));if(c)return JN(zF(this.u4)),this.info.yB(this.UR,c),3;c=e.W_();if(this.pV){this.oo(!0);G7v(this);if(fB(this.u4,this.xhr.status,this.timing.pS||this.B2,!1,this.iW))return 5;if(!this.p_){if(this.B2)return JN(zF(this.u4)),3;this.u4.lastError="net.closed";return 5}}else{if(fB(this.u4,this.xhr.status,this.xhr.Xw(), !1,this.iW))return 5;var I=this.info.Z;if(I&&I!==c||e.YM())return this.u4.lastError="net.closed",5;this.oo(!0)}I=pBn(this)?e.getResponseHeader("X-Bandwidth-Est"):0;if(e=pBn(this)?e.getResponseHeader("X-Bandwidth-Est3"):0)this.nF=!0,this.policy.sj&&(I=e);XB$(this.u4,c,I?Number(I):0,this.info.bd[0].type===5);this.logger.debug(function(){var B=L.timing;return"Succeeded, rtpd="+(B.DY*1E3+B.X-Date.now()).toFixed(0)}); return 4}; g.M.canRetry=function(){this.We();var e=this.info.isDecorated();return this.u4.canRetry(e)}; g.M.onStateChange=function(){this.isComplete()&&(this.policy.HD?this.No():this.timing.deactivate())}; g.M.iG=function(){this.u4.iG()}; g.M.pn=function(){this.callback&&this.callback(this,this.state)}; g.M.yg=function(){return this.u4.yg()}; g.M.dispose=function(){t6.prototype.dispose.call(this);this.u4.dispose();var e;(e=this.Kq)==null||e.dispose();this.policy.HD||this.No()}; g.M.No=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.M.r$=function(){if(!this.SR().length)return[];this.GM=!0;return this.ql.r$()}; g.M.lC=function(){if(this.state<1)return!1;if(this.ql&&this.ql.HM.length)return!0;var e;return((e=this.xhr)==null?0:e.gz())?!0:!1}; g.M.SR=function(){this.oo(!1);return this.ql?this.ql.SR():[]}; g.M.oo=function(e){try{if(e||this.xhr.CU()&&this.xhr.gz()&&!A6(this.u4,this.xhr)&&!this.Nn)this.ql||(this.ql=new TF(this.policy,this.info.bd)),this.xhr.gz()&&(this.pV?this.pV.feed(this.xhr.j7()):WD(this.ql,this.xhr.j7(),e&&!this.xhr.gz()))}catch(L){this.pV?Fon(this,L):g.F7(L)}}; g.M.mY=function(e,L){switch(e){case 21:e=L.split(1).Xo;bwH(this,e);break;case 22:this.p_=!0;WD(this.ql,new ej([]),!0);break;case 43:if(e=f5(new TA(L),1))this.info.yB(this.UR,e),this.B2=!0;break;case 45:L=SC(new TA(L));e=L.sM;L=L.a6;e&&L&&(this.fv=e/L);break;case 44:this.VK=j2M(new TA(L));var c,I,B;!this.timing.pS&&((c=this.VK)==null?void 0:c.action)===4&&((I=this.VK)==null?0:(B=I.FH)==null?0:B.ev)&&(this.ev=this.VK.FH.ev);break;case 53:this.policy.g0&&(e=ZC$(new TA(L)).VT)&&(this.Kq||(this.VT=e,this.Kq= new g.j9(this.Mm,e,this)),this.Kq.start());break;case 60:this.Tj=oy(new TA(L));break;case 58:if(e=WFf(new TA(L)))this.A8=e,e.A8===3&&(this.iW=!0)}}; g.M.rz=function(e,L,c,I){c||this.timing.rz(I);if(e!==21)return!1;if(e=this.policy.sf)if(e*=this.info.bd[0].X.info.r_,L.totalLength+c!==I&&L.totalLength0)return!1;if(!this.xhr.CU())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.pV)var e=!this.info.Z;else this.xhr.G1()?e=!1:(e=this.xhr.getResponseHeader("content-type"),e=e==="audio/mp4"||e==="video/mp4"||e==="video/webm");if(!e)return!1;if(isNaN(this.info.Bg)){e=this.xhr.getResponseHeader("x-head-seqnum");var L=this.timing.policy.T?1:0;if(!e)this.logger.debug("No x-head-seqnum, cannot tell if head segment."); else if(Number(e)>this.info.bd[0].ud+L)return!1}return!0}; g.M.lK=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.M.kR=function(){this.xhr&&(this.XO=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.XO}; g.M.P9=function(){this.xhr&&(this.P_=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.P_}; g.M.n1=function(){return this.u4.n1()}; g.M.Mm=function(){if(!this.We()&&this.xhr){this.Az="heartbeat";var e=this.u4;e.X+=2;this.pn()}};g.z(wC,xk);g.M=wC.prototype;g.M.BK=function(e,L){var c=(e-this.j)/1E3,I=L-this.Z;this.K>0?I>0&&(this.Gm&&(c>.2||I<1024?(this.G+=c,c>.2&&gc6(this,.05,I)):gc6(this,c,I)),this.Y9&&(this.t7+=I,this.Pe+=c)):L>this.policy.X&&this.y7(e,L);xk.prototype.BK.call(this,e,L)}; g.M.uO=function(e,L){oc(this,e,L);this.BK(e,L);this.Gm&&(L=this.Z*this.snapshot.stall+this.Z/this.snapshot.byterate,this.K>0&&mX(this.qw,this.t7,this.G),e=(e-this.X)/1E3||.01,this.policy.J&&!(this.K>0)||NX(this.qw,e,this.Z,L,!1))}; g.M.wD=function(e){oc(this,e,this.B);var L=(e-this.j)/1E3;Zz(this.qw,L,0);this.M$(L,0);!this.Gm&&this.K>0||(L=this.Z*this.snapshot.stall+this.Z/this.snapshot.byterate,this.K>0&&(this.G+=(e-this.j)/1E3,mX(this.qw,this.t7,this.G)),NX(this.qw,(e-this.X)/1E3||.01,this.Z,L,!1,!0))}; g.M.HJ=function(e){e=e.bk||2147483647;(e&2)!==2&&(this.Y9=!1);(e&1)===1&&(this.Gm=!0)}; g.M.Ol=function(e){e=e.bk||2147483647;(e&2)===2&&(this.Y9=!1);(e&1)===1&&(this.Gm=!1)}; g.M.fm=function(){return this.J}; g.M.vL=function(){var e=this.Y9?this.now()-this.j:0;return Math.max(this.Pe*1E3+e,1)}; g.M.F2=function(){return this.t7*1E3/this.vL()}; g.M.y7=function(e,L){e=e===void 0?this.T:e;L=L===void 0?this.B:L;this.K>0||(xk.prototype.y7.call(this,e,L),L=this.qw,e=(e-this.D)/1E3,L.J.lE(1,(this.D-this.X)/1E3),L.Ve.lE(1,e))}; g.M.VH=function(e){this.He=e}; g.M.ZS=function(){var e=xk.prototype.ZS.call(this);e.rbw=this.F2();e.rbe=+this.Y9;e.gbe=+this.Gm;e.ackt=(this.He-this.X).toFixed();return e}; g.M.Ha=function(){}; g.M.pP=function(){return NaN}; g.M.H9=function(){return this.X+this.snapshot.delay*1E3};J6.prototype.mY=function(e,L){switch(e){case 20:e=new TA(L);e={zA:zA(e,1),videoId:f5(e,2),itag:zA(e,3),lmt:zA(e,4),xtags:f5(e,5),kQ:zA(e,6),Nk:sK(e,8),KR:zA(e,9),oYw:zA(e,10),startMs:zA(e,11),durationMs:zA(e,12),kt:zA(e,14),timeRange:AP(e,15,YEr),L2:zA(e,16),o5:zA(e,17),clipId:f5(e,1E3)};this.iO(e);break;case 21:this.bO(L,!1);break;case 22:this.R1(L);break;case 31:e=iG(L,wqn);this.Ic(e);break;case 52:e=iG(L,pq6);this.nJ(e);break;default:this.F1(e,L)}}; J6.prototype.iO=function(){}; J6.prototype.F1=function(){};g.z(VV,J6);g.M=VV.prototype; g.M.F1=function(e,L){switch(e){case 35:this.Yj(L);break;case 44:this.QW(L);break;case 43:this.Kk(L);break;case 53:this.hA(L);break;case 55:e=new TA(L);AP(e,1,lV$);AP(e,2,ddf);break;case 56:this.J0();break;case 57:this.AJ(L);break;case 42:this.vT(L);break;case 45:this.uZ(L);break;case 59:this.A0(L);break;case 51:this.lL(L);break;case 49:this.HJ(L);break;case 50:this.Ol(L);break;case 47:this.vJ(L);break;case 58:this.jL(L);break;case 61:this.UY.r0.VH((0,g.zI)());break;case 66:this.DS(L);break;case 46:this.g3(L); break;case 67:this.onSnackbarMessage(L)}}; g.M.lL=function(e){e=new TA(e);e={yoS:bG(e,1,BB),coe:bG(e,2,BB)};this.UY.lL(e)}; g.M.A0=function(e){var L=new TA(e);e=FP(L,1);var c=FP(L,2);L=FP(L,3);this.UY.A0(e,c,L)}; g.M.uZ=function(e){e=SC(new TA(e));this.UY.uZ(e)}; g.M.vJ=function(e){e=iG(e,ChR);this.UY.vJ(e)}; g.M.vT=function(e){e=new TA(e);e={videoId:f5(e,1),formatId:AP(e,2,BB),endTimeMs:zA(e,3),nYq:zA(e,4),mimeType:f5(e,5),gJ:AP(e,6,bCM),indexRange:AP(e,7,bCM),Zh:AP(e,8,iCc)};this.UY.vT(e)}; g.M.AJ=function(e){e=ddf(new TA(e));this.UY.AJ(e)}; g.M.J0=function(){this.UY.J0()}; g.M.Yj=function(e){e=JzH(new TA(e));this.UY.Yj(e)}; g.M.hA=function(e){e=ZC$(new TA(e));this.UY.hA(e)}; g.M.QW=function(e){e=j2M(new TA(e));this.UY.QW(e)}; g.M.Kk=function(e){e={redirectUrl:f5(new TA(e),1)};this.UY.Kk(e)}; g.M.bO=function(e){var L=Sj(e,0);if(e.totalLength!==1){e=e.split(1).Xo;var c=this.K[L]||null;c&&pB(this.UY.Dm,L,c,e)}}; g.M.R1=function(e){e=Sj(e,0);var L=this.K[e]||null;L&&this.UY.R1(e,L)}; g.M.nJ=function(e){this.UY.nJ(e)}; g.M.iO=function(e){var L=e.zA,c=e.Nk,I=e.kQ,B=e.o5,x=e.L2,S=e.KR,h=e.startMs,R=e.durationMs,u=e.timeRange,t=e.kt,O=e.clipId,q=pw(e);e=a1e.has(iy[""+e.itag]);this.K[L]=q;this.UY.kG(q,e,{zA:L,Nk:!!c,kQ:I!=null?I:-1,KR:S!=null?S:-1,startMs:h!=null?h:-1,durationMs:R!=null?R:-1,kt:t,o5:B,L2:x,clipId:O,timeRange:u})}; g.M.HJ=function(e){e={bk:zA(new TA(e),1)};this.UY.HJ(e)}; g.M.Ol=function(e){e={bk:zA(new TA(e),1)};this.UY.Ol(e)}; g.M.Ic=function(e){this.UY.Ic(e)}; g.M.jL=function(e){e=WFf(new TA(e));this.UY.jL(e)}; g.M.DS=function(e){e={nK:AP(new TA(e),1,md$)};this.UY.DS(e)}; g.M.onSnackbarMessage=function(e){e=zA(new TA(e),1);this.UY.onSnackbarMessage(e)}; g.M.g3=function(e){e=new TA(e);e={reloadPlaybackParams:AP(e,1,TwM),TE:sK(e,2)};this.UY.g3(e)};g.z(CB,g.p);g.M=CB.prototype;g.M.kW=function(){return Array.from(this.C9.keys())}; g.M.u3=function(e){e=this.C9.get(e);var L=e.HM;e.XJ+=L.totalLength;e.HM=new ej;return L}; g.M.Dj=function(e){return this.C9.get(e).Dj}; g.M.nO=function(e){return this.C9.get(e).nO}; g.M.kG=function(e,L,c,I){this.C9.get(e)||VJM(this,e,L);L=this.C9.get(e);if(this.w_){e=aE$(this,e,c);if(I)for(var B=g.f(e),x=B.next();!x.done;x=B.next()){x=x.value;var S=I;x.h7=S;x.startTime+=S;x.G+=S;x.j+=S}C$$(this,c.zA,L,e)}else c.Nk?L.Ok=c.kt:L.jR.push(c),L.ZR.push(c)}; g.M.b9=function(e){var L;return((L=this.C9.get(e))==null?void 0:L.bd)||[]}; g.M.AS=function(){for(var e=g.f(this.C9.values()),L=e.next();!L.done;L=e.next())L=L.value,L.FL&&(L.vR&&L.vR(),L.FL=!1)}; g.M.R1=function(e,L){this.logger.debug(function(){return"[onMediaEnd] formatId: "+L}); var c=this.C9.get(L);ac?c&&!c.Dj&&(c.F7.get(e)?c.F7.get(e).NR=!0:c.F7.set(e,{data:new ej,mj:0,NR:!0}),c.nO=!0):c&&!c.nO&&(c.nO=!0)}; g.M.r$=function(e){if(ac){var L=this.C9.get(e);if(L)for(var c=g.f(L.F7),I=c.next();!I.done;I=c.next()){var B=g.f(I.value);I=B.next().value;B=B.next().value;var x=L.xi.get(I);if(d3(x[0])){if(!B.NR)continue;var S=B.data,h=0,R=[];x=g.f(x);for(var u=x.next();!u.done;u=x.next()){u=u.value;var t=u.Z,O=cl(S,h,t);h+=t;R.push(new qh(u,O))}L.BG.push.apply(L.BG,g.V(R))}else if(B.data.totalLength>0||!x[0].range&&B.NR)S=void 0,h=x[0],R=B.mj,x=B.data,h.range||(S=B.NR),S=new qh(bnn(h,h.K+R,x.totalLength,S),x),B.mj+= S.info.Z,L.BG.push(S);L.F7.get(I).data=new ej;B.NR&&L.F7.delete(I)}e=this.C9.get(e);if(!e)return[];L=e.BG;e.BG=[];c=g.f(L);for(I=c.next();!I.done;I=c.next())e.XJ+=I.value.info.Z;return L||[]}c=(L=this.C9.get(e))==null?void 0:L.ql;if(!c)return[];this.oo(e,c);return c.r$()}; g.M.lC=function(e){if(ac)return Zd(this,e);var L,c,I;return!!((c=(L=this.C9.get(e))==null?void 0:L.ql)==null?0:(I=c.SR())==null?0:I.length)||Zd(this,e)}; g.M.oo=function(e,L){for(;Zd(this,e);){var c=this.u3(e);var I=e;I=this.C9.get(I).Dj&&!yV(this,I);WD(L,c,I&&JNn(this,e))}}; g.M.KS=function(){g.p.prototype.KS.call(this);for(var e=g.f(this.C9.keys()),L=e.next();!L.done;L=e.next())NV(this,L.value);var c;if((c=this.Dg)==null?0:c.z6)for(e=g.f(this.C9.values()),L=e.next();!L.done;L=e.next())L=L.value,L.F7.clear(),L.xi.clear(),L.BG.length=0,L.bd.length=0,L.ZR.length=0,L.jR.length=0;this.C9.clear()}; var ac=!1;g.z($k,g.p);g.M=$k.prototype;g.M.Xz=function(){!this.We()&&this.xhr&&(this.oo(!1),I1(this.UY,this))}; g.M.Rc=function(){}; g.M.XI=function(){if(!this.We()&&this.xhr){var e=this.ea();e===5?vD(this.u4):this.Oq(e);this.u4.K.stop();var L;(L=this.Ta)==null||L.stop()}}; g.M.ea=function(){var e="";A6(this.u4,this.xhr)&&(e=Ygr(this.u4,this.xhr));if(e)return this.info.V5.yB(this.UR,e),3;this.oo(!0);if(fB(this.u4,this.xhr.status,this.xhr.Xw(),this.info.Ab(),this.iW))return 5;if(this.JE)return 3;XB$(this.u4,this.xhr.W_(),0,this.Ab());this.policy.Bw&<c(this.UY);return 4}; g.M.oo=function(e){var L=this.xhr;if((e||!A6(this.u4,this.xhr))&&L.gz()){e=L.j7();var c=e.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+c}); this.pV.feed(e)}}; g.M.mY=function(e,L){this.xhr.fq()&&e===21&&pmx(this);this.AE.mY(e,L)}; g.M.rz=function(e,L,c,I){c||(this.r0.rz(I),this.policy.F5&&e===21&&pmx(this));if(e!==21)return!1;this.r0.pS=!0;e=L.totalLength;c||(this.JU=Sj(L,0),L=L.split(1).Xo);var B=this.policy.pI,x=this.AE.K[this.JU],S=this.w_.Z.get(x);if(B&&S&&(B*=S.info.r_,e+c!==I&&e0){this.policy.sC&&this.u4.K.stop();e=this.r0.vL();L=this.r0.F2();var c=$JJ(this,e);if(!(L>c.VJ||c.kF>0&&this.info.Td()>c.kF)){this.fk=(0,g.zI)();var I;(I=this.Ta)==null||I.stop();this.policy.Bw&&(I=this.UY,e={Ef:Math.round(L*e/1E3),T$:e},I.policy.Bw&&(I.Ve=e,I.PD++));this.iG()}}}}; g.M.iG=function(){this.u4.iG()}; g.M.QW=function(e){this.UY.QW(e,this.MD())}; g.M.Kk=function(e){this.JE=!0;this.info.V5.yB(this.UR,e.redirectUrl)}; g.M.HJ=function(e){this.r0 instanceof wC&&this.r0.HJ(e)}; g.M.Ol=function(e){this.r0 instanceof wC&&this.r0.Ol(e)}; g.M.vT=function(e){var L=e.formatId,c=pw({itag:L.itag,lmt:L.lmt,xtags:L.xtags}),I,B,x=new jJ(((I=e.gJ)==null?void 0:I.first)||0,((B=e.gJ)==null?void 0:B.Ek)||0),S,h;I=new jJ(((S=e.indexRange)==null?void 0:S.first)||0,((h=e.indexRange)==null?void 0:h.Ek)||0);this.w_.Z.get(c)||(c=e.Zh||{},c.mimeType=e.mimeType,c.itag=L.itag,c.lastModified=""+(L.lmt||0),c.xtags=L.xtags,e=this.w_,L=aZ(""),c=Vt(c,null),G6(e,new FN(L,c,x,I)))}; g.M.uZ=function(e){this.UY.uZ(e,this.MD())}; g.M.onSnackbarMessage=function(e){if(this.policy.zG)this.UY.onSnackbarMessage(e)}; g.M.Ic=function(e){this.Af=e;this.eV=(0,g.zI)();this.UY.Ic(e)}; g.M.A0=function(e,L,c){this.UY.A0(e,L,c)}; g.M.AJ=function(e){e.scope===2&&(this.pz=e);this.UY.AJ(e)}; g.M.J0=function(){this.pN=!0;this.UY.J0()}; g.M.lL=function(e){this.policy.ej&&this.UY.lL(e)}; g.M.vJ=function(e){this.UY.vJ(e,this.MD())}; g.M.jL=function(e){e.A8===3&&(this.iW=!0);this.UY.jL(e)}; g.M.DS=function(e){this.UY.DS(e)}; g.M.g3=function(e){this.UY.g3(e)}; g.M.canRetry=function(){this.We();return this.u4.canRetry(!1)}; g.M.dispose=function(){if(!this.We()){g.p.prototype.dispose.call(this);this.u4.dispose();var e;(e=this.Ta)==null||e.dispose();this.Oq(-1);this.No()}}; g.M.Oq=function(e){this.state=e;I1(this.UY,this)}; g.M.Ab=function(){return this.info.Ab()}; g.M.D_=function(){return this.pN}; g.M.Qu=function(){return this.pz}; g.M.kG=function(e,L,c){c.clipId&&(this.clipId=c.clipId);this.policy.K&&!L&&(this.EC=c.KR);this.Dm.kG(e,L,c,0);if(this.policy.pB&&this.Af&&this.r0 instanceof rC){var I=this.Af.JP;this.r0.kG(c.durationMs/1E3,L,I>0&&c.KR+1>=I)}this.Dm.C9.get(e).qT=!0}; g.M.R1=function(e,L){this.Dm.R1(e,L)}; g.M.nJ=function(e){this.requestIdentifier=e}; g.M.r$=function(e){return this.Dm.r$(e)}; g.M.b9=function(e){return this.Dm.b9(e)}; g.M.lC=function(e){return this.Dm.lC(e)}; g.M.kW=function(){return this.Dm.kW()}; g.M.nR=function(){return 1}; g.M.MD=function(){return this.r0.requestNumber}; g.M.JT=function(){return this.requestIdentifier}; g.M.Wd=function(){return this.UR.Wd()}; g.M.Lh=function(){this.No()}; g.M.No=function(){this.r0.deactivate();var e;(e=this.xhr)==null||e.abort()}; g.M.isComplete=function(){return this.state>=3}; g.M.SH=function(){return this.state===3}; g.M.J1=function(){return this.state===5}; g.M.ir=function(){return this.state===4}; g.M.TU=function(){return this.isComplete()}; g.M.nU=function(){return this.state>=1}; g.M.yg=function(){return this.policy.xT?this.u4.yg():0}; g.M.pn=function(){this.policy.xT&&I1(this.UY,this)}; g.M.NH=function(){return Ikn(this.info)}; g.M.n1=function(){return this.u4.n1()}; g.M.mL=function(){var e=n0n(this.u4);Object.assign(e,xuM(this.info));e.req="sabr";e.rn=this.MD();var L;if((L=this.xhr)==null?0:L.status)e.rc=this.policy.Gc?this.xhr.status:this.xhr.status.toString();var c;(L=(c=this.xhr)==null?void 0:c.Ku())&&(e.msg=L);this.fk&&(c=$JJ(this,this.fk-this.r0.fm()),e.letm=c.Bp,e.mrbps=c.VJ,e.mram=c.kF);return e};j5M.prototype.tick=function(e,L){this.ticks[e]=L?window.performance.timing.navigationStart+L:(0,g.zI)()};g.z(HD,g.Yg);g.M=HD.prototype; g.M.l8=function(e,L,c,I){if(this.policy.Qt&&this.policy.K){var B=e.u0||null;B?(INf(this,e.ud,US(this,e.startTime,e.ud),{u0:B,ud:e.ud,OD:!!L,vM:c},this.Z),I&&this.Z&&this.Z.HF(e.ud,e.startTime,this.K,(L==null?void 0:L.X)||[],(L==null?void 0:L.K)||[],(L==null?void 0:L.G)||[],c,(L==null?void 0:L.S7)||0,(L==null?void 0:L.Z)||void 0)):this.K===1&&PD(this,5,"noad")}else{var x=!1;this.policy.K&&(x=c?this.k9===e.ud:this.Gm===e.ud);if(this.Z&&I&&!x){I=[];x=[];var S=[],h=void 0,R=0;L&&(I=L.X,x=L.K,S=L.G,h= L.Z,R=L.S7,this.sW("sdai",{sq:e.ud,ssvicpns:I.join("."),ssvid:x.join(".")}));this.policy.K&&(c?this.k9=e.ud:this.Gm=e.ud);this.Z.HF(e.ud,e.startTime,this.K,I,x,S,c,R,h)}this.policy.K?c&&(this.K===1&&PD(this,5,"noad"),e.ud!==((B=this.X)==null?void 0:B.ud)&&(ecr(this,e,L,c),isNaN(e.startTime)||LAM(this,e.ud,US(this,e.startTime,e.ud),!!L,this.Z))):c&&ecr(this,e,L)}}; g.M.EX=function(e,L,c){var I=this.videoTrack.X.index.Aw()<=L;this.X={u0:e,ud:L,OD:c};I&&lZ(this,e,L)}; g.M.Og=function(){this.Z&&this.Z.Og()}; g.M.sW=function(e,L,c){(e!=="sdai"||this.policy.q2||(c===void 0?0:c))&&this.loader.sW(e,L)}; g.M.LV=function(e,L){var c=this.videoTrack.X.index.kI(e);if(c>=0){var I;var B=((I=L.Pw.lq(c,2))==null?void 0:I.Ik)||"";if(this.policy.K||B)return L.TR(e,c),QV(this.loader,e,e,c),this.sW("sdai",{cmskpad:1,t:e.toFixed(3),sq:c}),!0}this.sW("sdai",{cmskpad:0,t:e.toFixed(3),sq:c});return!1};g.M=SY$.prototype;g.M.Yt=function(e,L,c){e=e||this.X;if(this.K.has(e)){if(e=this.K.get(e))e.MW=L,e.Mu.push(c)}else L={MW:L,Mu:[],startTimeSecs:0,jW:0},L.Mu.push(c),this.K.set(e,L)}; g.M.nQ=function(e,L){e!==void 0&&this.YB(e);if(this.X&&(e=this.K.get(this.X),e!=null&&e.MW)){var c={A$:e.Mu,dV:Go(e.MW||"")||void 0,cuepointId:this.X};e.vV&&(c.hW=e.vV);L&&(c.cA=ag(L.split(";")[0]),c.yd=L.split(";")[1]||"");return c}}; g.M.TR=function(e,L){this.YB(e);var c=this.K.get(this.X);c?(this.sW("ssskipad",{cid:this.X,sn:L,mt:e.toFixed(3)}),c.vV=L):this.sW("ssskipadfail",{cid:this.X,sn:L,mt:e.toFixed(3)})}; g.M.oJ=function(){for(var e=g.f(this.K.values()),L=e.next();!L.done;L=e.next())L.value.vV=NaN}; g.M.YB=function(e,L){L&&(this.Z=L);if(this.X&&(L=this.K.get(this.X))&&L.startTimeSecs<=e&&e<=L.startTimeSecs+L.jW)return;this.X="";L=g.f(this.K.entries());for(var c=L.next();!c.done;c=L.next()){var I=g.f(c.value);c=I.next().value;I=I.next().value;var B=void 0,x=void 0,S=void 0;if(((B=I)==null?void 0:B.startTimeSecs)<=e&&e<=((x=I)==null?void 0:x.startTimeSecs)+((S=I)==null?void 0:S.jW)){this.X=c;break}}};g.z(Yk,g.p);Yk.prototype.kY=function(e,L,c){c=c===void 0?{}:c;this.policy.Yy=EY(e,c,this.G,L===void 0?!1:L)};IY.prototype.QJ=function(e){var L=this;if(this.policy.xC){var c=new Set(e);c.size===this.Ve.size&&[].concat(g.V(c)).every(function(I){return L.Ve.has(I)})||(this.loader.sW("lwnmow",{itagDenylist:[].concat(g.V(e)).join(",")}),this.loader.e7(!!c.size),this.D=-1,this.Ve=c,Bi(this,this.X),this.t7=!0)}}; IY.prototype.kY=function(e,L,c){c=c===void 0?{}:c;var I=this.policy.Yy;this.B.kY(e,L===void 0?!1:L,c);if(I!==this.policy.Yy){Bi(this,this.X);xD(this);var B,x;I>this.policy.Yy&&((B=this.Z)==null?0:wr(B.info))&&((x=this.nextVideo)==null||!wr(x.info))&&(this.pS=!0)}};hu.prototype.ZB=function(e){this.timestampOffset=e;this.flush()}; hu.prototype.flush=function(){if(this.X.pos>0){var e={a:this.track.Cu(),u:this.X.sV(),pd:Math.round(this.G),ad:Math.round(this.Z)},L=this.K;if(L){var c=L.X.info;e.itag=c.itag;c.X&&(e.xtags=c.X);e.sq=L.ud;e.st=L.startTime;e.sd=L.duration;this.track.policy.jI&&(e.si=L.e6());L.B&&(e.esl=L.K+L.Z);L.C2()&&(e.eos=1)}isNaN(this.timestampOffset)||(e.to=this.timestampOffset);var I;if(L=(I=this.track.Py)==null?void 0:I.b5({})){for(var B in L)this.j[B]!==L[B]&&(e["sb_"+B]=L[B]);this.j=L}this.track.sW("sbu", e);this.X.reset();this.buffered=[];this.B=this.Z=this.G=0;this.timestampOffset=this.K=void 0}};uz.prototype.dispose=function(){this.h7=!0}; uz.prototype.We=function(){return this.h7}; g.z(Mf,Error);vi.prototype.skip=function(e){this.offset+=e}; vi.prototype.tR=function(){return this.offset};g.M=QZx.prototype;g.M.nm=function(){return this.K}; g.M.cD=function(){return this.K.length?this.K[this.K.length-1]:null}; g.M.fp=function(){this.K=[];iz(this);FK(this)}; g.M.u3=function(e){this.Pe=this.K.shift().info;e.info.equals(this.Pe)}; g.M.b9=function(){return g.Mt(this.K,function(e){return e.info})}; g.M.Cu=function(){return!!this.B.info.audio}; g.M.isDrm=function(){return!!this.B.info.TI}; g.M.getDuration=function(){return this.B.index.ub()};g.z(E4,t6);g.M=E4.prototype;g.M.onStateChange=function(){this.We()&&(mU(this.Dm,this.formatId),this.X.dispose())}; g.M.mL=function(){var e=wmc(this.Dm,this.formatId),L;var c=((L=this.Dm.C9.get(this.formatId))==null?void 0:L.bytesReceived)||0;var I;L=((I=this.Dm.C9.get(this.formatId))==null?void 0:I.XJ)||0;return{expected:e,received:c,bytesShifted:L,sliceLength:yV(this.Dm,this.formatId),isAnyMediaEndReceived:this.Dm.nO(this.formatId)}}; g.M.y_=function(){return 0}; g.M.bW=function(){return!0}; g.M.r$=function(){return this.Dm.r$(this.formatId)}; g.M.SR=function(){return[]}; g.M.lC=function(){return this.Dm.lC(this.formatId)}; g.M.n1=function(){return this.lastError}; g.M.yg=function(){return 0};g.z(Dc,g.p);g.M=Dc.prototype;g.M.Cu=function(){return!!this.X.info.audio}; g.M.cD=function(){return this.G.cD()}; g.M.u3=function(e){this.G.u3(e);var L;(L=this.J)!=null&&(L.B.add(e.info.ud),L.X=MCc(L,L.p9,L.v_,e,L.X),L.Z=e,L.j=(0,g.zI)());this.r_=Math.max(this.r_,e.info.X.info.r_||0)}; g.M.getDuration=function(){return this.X.index.ub()}; g.M.fp=function(){Kr(this);this.G.fp()}; g.M.PO=function(){return this.G}; g.M.isRequestPending=function(e){return this.Z.length?e===this.Z[this.Z.length-1].info.bd[0].ud:!1}; g.M.ZB=function(e){var L;(L=this.J)==null||L.ZB(e);var c;(c=this.D)==null||c.ZB(e)}; g.M.sW=function(e,L){this.loader.sW(e,L)}; g.M.w$=function(){return this.loader.w$()}; g.M.dispose=function(){var e;(e=this.D)==null||e.flush();g.p.prototype.dispose.call(this)};g.z(YD,g.p);YD.prototype.Z=function(){this.K++>15||(this.X=!this.X,new azH(this.loader,this.policy,this.qw,this.V5,this.X),this.delay.start())}; g.M=azH.prototype;g.M.Rc=function(){}; g.M.Xz=function(){}; g.M.XI=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.W_()===this.size)this.loader.sW("rqs",this.getInfo());else{var e="net.connect";this.xhr.status>200?e="net.badstatus":this.xhr.CU()&&(e="net.closed");this.onError(e)}}; g.M.onError=function(e){var L=this;this.loader.handleError(e,this.getInfo());$q("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(c){L.loader.sW("pathprobe",c)},function(c){L.loader.handleError(c.errorCode,c.details)})}; g.M.getInfo=function(){var e=this.timing.ZS();e.shost=pX(this.location.HU);e.pb=this.size;return e};g.z(nJ,g.p); nJ.prototype.T=function(e,L){if(e.T){this.w_.isLive?(e=this.w_.kf&&this.w_.G?e.X.HH(this.w_.kf,!1):e.X.yE(Infinity),e.Bg=this.Bg):e=e.X.HH(0,!1);if(this.pS){var c=this.pS;e.Bg===0&&(e.B=c.J)}else e.B=this.D;return e}c=e.K;if(!c.X.Y4())return c.X.g7()?(e=l_(this.B,e.X.info.r_,L.X.info.r_,0),e=c.X.lV(c,e)):e=c.X.Ar(c),e;var I=c.j-this.loader.getCurrentTime(),B=!c.range||c.Z===0&&c.K===0?0:c.range.length-(c.K+c.Z),x=c.X;this.JC(e,I)&&B===0&&(this.w_.isManifestless?x=e.X:(x=c.startTime+HJM,c.Z&&(x+=c.duration), eE(e,x),c=e.K,x=c.X));x.g7()?(B=this.Z,L=l_(this.B,x.info.r_,L.X.info.r_,I,B.G.length>0&&B.J===0&&this.loader.Qg),I=Pi(e),e=c.X.lV(c,L),(L=e.Z)&&e.bd.length>1&&(I||e.V5.Z||e.bd[0].X!==c.X?e=c.X.lV(c,e.bd[0].Z):(I=e.bd[e.bd.length-1],x=I.Z/L,!I.B&&x<.4&&(e=c.X.lV(c,L-I.Z))))):(c.ud<0&&(L=Kw(c),L.pr=""+e.Z.length,this.loader.isSeeking()&&(L.sk="1"),L.snss=c.T,this.loader.sW("nosq",L)),e=x.Ar(c));if(this.policy.k9)for(c=g.f(e.bd),L=c.next();!L.done;L=c.next())L.value.type=6;return e}; nJ.prototype.JC=function(e,L){if(!Pi(e)||!e.X.Y4())return!1;var c=this.Z.t7||sln(e)||L<=this.policy.CL||this.Z.pS;this.logger.debug(function(){return"ready to adapt: "+c+", upgrade pending: "+sln(e)+", health: "+L}); return c}; nJ.prototype.KS=function(){g.p.prototype.KS.call(this)}; var HJM=2/24;g.z(hr,g.p);hr.prototype.AQ=function(e,L,c){var I;var B=((I=this.K)==null?void 0:I.reason)==="m"?"m":this.K&&UXM(this,this.K)?this.K.reason:"a";this.loader.AQ(new KB(e,B,c));oa(this.loader,L,e,!0)}; hr.prototype.v6=function(e,L){for(var c=g.f(this.k9),I=c.next();!I.done;I=c.next())if(I.value.id===e)return this.B=this.w_.X[e],gC(this.Dg)&&(this.pS=!0),e=new KB(this.B,L?"t":"m"),L&&(this.T=!0),e;this.Z=[];return null}; hr.prototype.kY=function(e,L,c){c=c===void 0?{}:c;this.X.kY(e,L===void 0?!1:L,c)};wP.prototype.setData=function(e,L,c){var I=this;c=c===void 0?{}:c;if(L==null?0:L.RT)this.vl=Zwc(this,L,c),e.rb=this.V5.rb();if(this.Ab())return!0;this.data=e;this.X=LSR(e,function(B,x){var S;(S=I.UY)==null||S.Z6(B,x)},L==null?void 0:L.Z); if(!this.X)return!1;this.K=g.Pl(this.X,vHc);return!0}; wP.prototype.Ab=function(){return this.requestType===1}; wP.prototype.Td=function(){var e;return((e=this.UY)==null?void 0:e.Td())||0}; wP.prototype.isDecorated=function(){var e;return!((e=this.data)==null||!e.fV)};Jr.prototype.encrypt=function(e){(0,g.zI)();return(new g.oz(this.X.X)).encrypt(e,this.iv)}; Jr.prototype.decrypt=function(e,L){(0,g.zI)();return(new g.oz(this.X.X)).decrypt(e,L)};g.z(V9,g.p);V9.prototype.Z=function(e,L){if(L){L=L instanceof g.yp?L:CI(this,L);var c;((c=this.X.get(e))==null?void 0:pX(c.location))!==pX(L)&&this.X.set(e,new O8T(L,e))}else this.X.delete(e)}; V9.prototype.load=function(){var e=this,L,c,I,B,x,S,h,R,u,t;return g.Z(function(O){switch(O.K){case 1:L=e.X.get(0);g.bn(O,2);var q;if(q=L&&!e.K)q=pX(L.location),q=e.K===sS(q);if(q){O.Iq(4);break}return g.a(O,NY(e,e.K?2:0),5);case 5:if(c=O.X)e.Z(0,c),jC(c)&&e.Z(1,HB(c));case 4:g.DR(O,3);break;case 2:I=g.wc(O);g.F7(I);if(!e.K){O.Iq(3);break}e.K=!1;return g.a(O,e.load(),7);case 7:return O.return();case 3:if(!e.XM.experiments.N0("html5_onesie_probe_ec_hosts")){O.Iq(0);break}g.bn(O,9);B=e;x=B.Z;S=3;return g.a(O, NY(e,1),11);case 11:return x.call(B,S,O.X),h=e,R=h.Z,u=4,g.a(O,NY(e,2),12);case 12:R.call(h,u,O.X);g.DR(O,0);break;case 9:t=g.wc(O),g.F7(t),g.AJ(O)}})}; V9.prototype.T=function(){var e=this,L,c;return g.Z(function(I){g.HT(e.J);L=g.X3(e.XM.experiments,"html5_onesie_prewarm_max_lact_ms");if(qc()>=L)return I.return();(c=e.X.get(0))&&uMM(e,c);g.AJ(I)})}; var htJ={dDm:0,qAS:1,bBd:2,UZq:3,QFW:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};mq.prototype.decrypt=function(e){var L=this,c,I,B,x,S,h;return g.Z(function(R){switch(R.K){case 1:if(L.X.length&&!L.X[0].isEncrypted)return R.return();L.K=!0;L.Q0.n9("omd_s");c=new Uint8Array(16);xm()?I=new g.S3(e):B=new g.oz(e);case 2:if(!L.X.length||!L.X[0].isEncrypted){R.Iq(4);break}x=L.X.shift();if(!I){S=B.decrypt(xj(x.buffer),c);R.Iq(5);break}return g.a(R,I.decrypt(xj(x.buffer),c),6);case 6:S=R.X;case 5:h=S;for(var u=0;u=4)){var L=Xs(this),c=this.xhr;L.rc=c.status;e&&(L.ab=!0);if(c.Ku()){var I="onesie.net";L.msg=c.Ku()}else c.status>=400?I="onesie.net.badstatus":c.Xw()?this.B8||(I="onesie.response.noplayerresponse"):I=c.status===204?"onesie.net.nocontent":"onesie.net.connect";I?this.fail(new g.hQ(I,L)):(this.n9("or_fs"),this.r0.uO((0,g.zI)(),c.W_(),0),this.Oq(4),this.MZ&&this.sW("rqs",L));this.MZ&&this.sW("ombre", "ok."+ +!I);this.wr=!1;Ew(this);FSn(this.Q0);if(!this.u$){this.md.stop();var B;(B=this.i8)==null||B.stop()}var x;if(e=(x=this.iq)==null?void 0:tbM(x))for(x=0;x1E3){var e;(e=this.r0)==null||e.wD((0,g.zI)());e=Xs(this);if(this.XM.oT()&&this.xhr instanceof OS){var L=this.xhr;e.xrs=L.xhr.readyState;e.xpb=L.X.totalLength;e.xdc=L.G}this.fail(new g.hQ("net.timeout",e))}}else(0,g.zI)()-this.r0.X>1E4&&((L=this.r0)==null||L.wD((0,g.zI)()),this.Kn());this.isComplete()||this.Z7.start()}}; g.M.Kn=function(){this.logger.info("Onesie request timed out");this.wr=!1;if(!Ew(this)){var e=Xs(this);e.timeout="1";this.fail(new g.hQ("onesie.request",e))}}; g.M.fail=function(e){var L=this;e=uy(e);this.eN?this.zm.Zg(e):(this.QT.reject(e),this.eN=!0);FSn(this.Q0);this.u$||this.md.stop();this.n9("or_fe");var c,I;(c=this.iq)==null||(I=tbM(c))==null||I.forEach(function(B){L.sW("pathprobe",B)}); this.Oq(5);this.dispose()}; g.M.isComplete=function(){return this.state>=3}; g.M.ir=function(){return this.state===4}; g.M.TU=function(e){var L,c;return this.isComplete()||!!((L=this.ek)==null?0:(c=L.get(e))==null?0:c.X)}; g.M.SH=function(){return!1}; g.M.J1=function(){return this.state===5}; g.M.notifySubscribers=function(e){for(var L=0;L102400&&!this.dJ&&(this.n9("or100k"),this.dJ=!0);if(e.gz()){var L=e.j7(),c=L.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+c}); this.MZ&&this.sW("ombrss","len."+c);this.pV.feed(L)}if(this.ek)for(var I=g.f(this.ek.keys()),B=I.next();!B.done;B=I.next()){var x=B.value;e=void 0;(e=this.ek.get(x))==null||e.AS();this.notifySubscribers(x)}}catch(S){this.fail(S)}}; g.M.MD=function(){return this.r0.requestNumber}; g.M.JT=function(e){return this.Tu.get(e)};g.z($ux,g.p);g.M=$ux.prototype;g.M.Ux=function(e,L){this.h7=void 0;LTc(this);ebc(this,e,L)}; g.M.gi=function(e){if(this.X.length===0)return!1;var L=this.X[0];return L instanceof KI?e===this.loader.getCurrentTime()*1E3:!(L instanceof $k&&Bbx(L.info))&&Math.abs(L.NH()-e)<50}; g.M.Yj=function(e){this.K=e;this.h7=(0,g.zI)()+(e.backoffTimeMs||0)}; g.M.QW=function(e,L){if(e.action===void 0){var c=this.zm.ww();c!==void 0&&this.loader.Dy(c)}else if(e.action!==0||!this.Pe)if(e.action===0&&this.policy.b7&&(e.action=2),e.Kd==="sabr.malformed_config"&&this.policy.h1>0&&this.He++0&&(e.action=2),c={},c.reason=e.Kd,c.action=e.action,c.rn=L,e.action){case 1:this.policy.K&&this.J&&this.J.jg(void 0, void 0,c);break;case 0:this.Pe=!0;this.videoData.GI()&&this.policy.K&&this.J&&this.J.jg(void 0,void 0,c,!1);this.loader.l_(c);break;case 2:TK$(e.Kd)!=="sabr.config"&&delete c.reason;this.loader.handleError(TK$(e.Kd),c,1);break;case 3:this.policy.RT&&((e=this.w_.J)!=null&&(e.J=!0),this.loader.handleError("sabr.hostfallback",c))}}; g.M.AJ=function(e){e&&(this.loader.sW("sabrctxt",{onsbrctxt:e.type,scp:e.scope,dflt:e.sendByDefault}),e.type&&e.sendByDefault&&this.videoData.Sl.add(e.type),e.scope!==2&&(e.type&&this.videoData.sabrContextUpdates.set(e.type,e),this.zm.AJ(e)))}; g.M.J0=function(){}; g.M.uZ=function(e,L){if(e.sM!==void 0&&e.a6){var c=e.sM/e.a6;this.audioTrack.T=!1;this.videoTrack.T=!1;if(this.policy.h7||this.policy.aF||this.policy.V6)this.loader.Lu.X=!1;var I=this.loader.y6(c,1);this.policy.DY&&this.policy.K&&this.loader.YB(I,L);this.zm.getCurrentTime()!==c&&(L={Ww:"sabr_seek",mU:!0,Ay:!0},e.seekSource&&(L.seekSource=e.seekSource),Ic(this.loader,c+.1,L))}}; g.M.onSnackbarMessage=function(e){this.zm.publish("onSnackbarMessage",e)}; g.M.Ic=function(e){e.JP&&e.bq&&H6(this.w_,e.JP,e.bq);this.policy.ue&&(e.QS&&e.vZ&&(this.w_.u9=e.QS/e.vZ),e.WZ&&e.tN&&(this.w_.pB=e.WZ/e.tN));d7(this.videoData)&&!this.videoData.pS&&e.bq&&this.loader.y6(e.bq,1E3);e.E$!=null&&this.zm.p$(e.E$);this.policy.DB&&e.oA&&(e=((0,g.zI)()-e.oA)/1E3,this.loader.oR.lE(1,e))}; g.M.jL=function(e){this.loader.jL(e)}; g.M.kK=function(e){return this.videoData.Sl.has(e)}; g.M.A0=function(e,L,c){this.policy.Z&&this.loader.sW("sabrctxtplc",{start:e?e.join("_"):"",stop:L?L.join("_"):"",discard:c?c.join("_"):""});if(e){e=g.f(e);for(var I=e.next();!I.done;I=e.next())this.videoData.Sl.add(I.value)}if(L)for(L=g.f(L),e=L.next();!e.done;e=L.next())e=e.value,this.videoData.Sl.has(e)&&this.videoData.Sl.delete(e);if(c)for(c=g.f(c),L=c.next();!L.done;L=c.next())if(L=L.value,this.videoData.sabrContextUpdates.has(L)&&(this.videoData.sabrContextUpdates.delete(L),L===3&&(this.videoData.pI= "")),this.policy.D&&this.X.length)for(e=g.f(this.X),I=e.next();!I.done;I=e.next())if(I=I.value,!(I instanceof KI)){var B=void 0;((B=I.pz)==null?void 0:B.type)===L&&(I.pz=void 0)}}; g.M.lL=function(){}; g.M.LF=function(e){this.T=e}; g.M.I6=function(e){this.j=e}; g.M.vJ=function(e,L){KJ(this.policy,e,4,L)}; g.M.DS=function(e){if(e==null?0:e.nK)if(e=e.nK.uU){e=g.f(e);for(var L=e.next();!L.done;L=e.next())if(L=L.value,L.formatId){var c=this.w_.Z.get(pw(L.formatId));c&&c.info&&(c.info.debugInfo=L.debugInfo)}}}; g.M.g3=function(e){this.zm.publish("reloadplayer",e)}; g.M.Am=function(){return this.zm.Am()||""}; g.M.Td=function(){var e=pJ(this.audioTrack,!0)*1E3,L=pJ(this.videoTrack,!0)*1E3;return Math.min(e,L)}; g.M.Z6=function(e,L){this.loader.sW(e,L)}; g.M.DI=function(e){WCR(this.loader,sZn(this.d_,e))}; g.M.KS=function(){g.p.prototype.KS.call(this);this.K=void 0;ebc(this,!0,"i");this.X=[]};Rbn.prototype.d3=function(){this.isSeeking=!0;this.X===1&&r1c(this.G);this.X===0&&this.BR.RU("transitiondetector");this.j=!1};zbc.prototype.Bd=function(e,L){if(this.G)return FT6(this,L);if(L=BD(e)){var c=L.X;c&&c.Z&&c.X&&(e=e.Z.length?e.Z[0]:null)&&e.state>=2&&!e.J1()&&e.info.Bg===0&&(this.G=e,this.T=c,this.K=L.info,this.j=this.startTimeSecs=Date.now()/1E3,this.B=this.K.startTime)}return NaN}; zbc.prototype.clear=function(){this.K=this.T=this.G=null;this.X=this.B=this.j=this.startTimeSecs=NaN;this.Z=!1};g.z(GNx,g.p);GNx.prototype.KS=function(){kNr(this);g.p.prototype.KS.call(this)};var DDM=/[?&]cpn=/;g.z(xV,g.p);xV.prototype.flush=function(){var e={};this.K&&(e.pe=this.K);this.X.length>0&&(e.pt=this.X.join("."));this.X=[];return e}; xV.prototype.stop=function(){var e=this,L,c,I;return g.Z(function(B){if(B.K==1)return g.bn(B,2),g.a(B,(L=e.G)==null?void 0:L.stop(),4);if(B.K!=2)return(c=B.X)&&e.logTrace(c),g.DR(B,0);I=g.wc(B);e.K=mDx(I.message);g.AJ(B)})}; xV.prototype.logTrace=function(e){this.encoder.reset();this.encoder.add(1);this.encoder.add(e.resources.length);for(var L=g.f(e.resources),c=L.next();!c.done;c=L.next()){c=c.value.replace("https://www.youtube.com/s/","");this.encoder.add(c.length);for(var I=0;I=0?e:g.up(this.provider),this.Gm?BRg.has(this.mZ)&&(this.X.size||(this.mZ==="PL"?e>=this.K+30:e<=this.pS+30||e>=this.K+1200&&e<=this.pS+86400))&&(g.rx(this,e,"vps",[this.mZ]),this.K=e):["PL","B","S"].indexOf(this.mZ)>-1&&(this.X.size||e>=this.K+30)&&(g.rx(this,e,"vps",[this.mZ]),this.K=e),this.X.size)){this.sequenceNumber===7E3&&g.F7(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){t5(this,e);var L=this.provider.zm.Vu(); L=g.f(L);for(var c=L.next();!c.done;c=L.next())c=c.value,this.sW(c.key,c.value);L=e;c=this.provider.zm.PY();var I=c.droppedVideoFrames||0,B=c.totalVideoFrames||0,x=I-this.xK,S=B&&!this.r6;I>c.totalVideoFrames||x>5E3?XNJ(this,"html5.badframedropcount","df."+I+";tf."+c.totalVideoFrames):(x>0||S)&&g.rx(this,L,"df",[x]);this.xK=I;this.r6=B;this.J>0&&(g.rx(this,e,"glf",[this.J]),this.J=0);rv.isActive()&&(e=rv.R_(),Object.keys(e).length>0&&this.sW("profile",e));this.RT&&Of(this,"lwnmow");this.provider.XM.oT()&& this.provider.Y("html5_record_now")&&this.sW("now",{wt:(0,g.zI)()});e={};this.provider.videoData.K&&(e.fmt=this.provider.videoData.K.itag,(L=this.provider.videoData.G)&&L.itag!==e.fmt&&(e.afmt=L.itag));e.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(e.adcpn=this.adCpn);this.bV&&(e.addocid=this.bV);this.contentCpn&&(e.ccpn=this.contentCpn);this.k9&&(e.cdocid=this.k9);this.provider.videoData.cotn&&(e.cotn=this.provider.videoData.cotn);e.el=L2(this.provider.videoData);e.content_v=IR(this.provider.videoData); e.ns=this.provider.XM.pS;e.fexp=dpr(this.provider.XM.experiments).toString();e.cl=(780767961).toString();(L=this.provider.videoData.adFormat||this.adFormat)&&(e.adformat=L);(L=$$(this.provider.videoData))&&(e.live=L);this.provider.videoData.cg()&&(e.drm=1,this.provider.videoData.B&&(e.drm_system=dlU[this.provider.videoData.B.flavor]||0),this.provider.videoData.drmProduct&&(e.drm_product=this.provider.videoData.drmProduct));nT()&&this.provider.videoData.j&&(e.ctt=this.provider.videoData.j,e.cttype= this.provider.videoData.Xd,this.provider.videoData.mdxEnvironment&&(e.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(e.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.rj&&(e.dai_fallback="1")):this.provider.videoData.d0?e.dai="cs":this.provider.videoData.zG&&(e.dai="disabled");e.seq=this.sequenceNumber++;if(this.provider.videoData.VM){if(L=this.provider.videoData.VM,e&&L)for(L.ns==="3pp"&&(e.ns="3pp"),this.IU.has(L.ns)&& Of(this,"hbps"),L.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=L.shbpslc),this.provider.XM.experiments.N0("html5_use_server_qoe_el_value")&&this.Sl.delete("el"),c=g.f(Object.keys(L)),I=c.next();!I.done;I=c.next())I=I.value,this.Sl.has(I)||(e[I]=L[I])}else e.event="streamingstats",e.docid=this.provider.videoData.videoId,e.ei=this.provider.videoData.eventId;this.isEmbargoed&&(e.embargoed="1");Object.assign(e,this.provider.XM.X);if(L=e.seq)L={cpn:this.provider.videoData.clientPlaybackNonce, sequenceNumber:+L,serializedWatchEndpointLoggingContext:this.provider.videoData.uDd},this.serializedHouseBrandPlayerServiceLoggingContext&&(L.serializedHouseBrandPlayerServiceLoggingContext=kT(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(L.playerResponseCpn=this.provider.videoData.playerResponseCpn),Sk.length&&(L.decoderInfo=Sk),this.remoteControlMode&&(L.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(L.remoteConnectedDevices= this.remoteConnectedDevices),L=g.Pl(L,FFM),L=g.GM(L,4),this.X.set("qclc",[L]);e=g.WO("//"+this.provider.XM.kV+"/api/stats/qoe",e);c=L="";I=g.f(this.X.entries());for(B=I.next();!B.done;B=I.next())x=g.f(B.value),B=x.next().value,x=x.next().value,S=void 0,(S=x)!=null&&S.join&&(B="&"+B+"="+x.join(","),B.length>100?c+=B:L+=B);QIf(this,e+L,c.replace(/ /g,"%20"))}this.X.clear()}}; g.M.e7=function(e){this.RT=e}; g.M.Ni=function(){if(this.provider.videoData.B){var e=this.provider.videoData.B;Of(this,"eme-"+(e.keySystemAccess?"final":YZ(e)?"ms":Ll(e)?"ytfp":e8(e)?"safarifp":"nonfinal"))}}; g.M.Hc=BM(53);g.M.Hq=function(e){this.isEmbargoed=e}; g.M.S9=BM(30);g.M.bz=BM(36);g.M.onPlaybackRateChange=function(e){var L=g.up(this.provider);e&&e!==this.RI&&(g.rx(this,L,"rate",[e]),this.RI=e);this.Gm||this.reportStats(L)}; g.M.rg=BM(24);g.M.getPlayerState=function(e){if(g.E(e,128))return"ER";if(g.E(e,2048))return"B";if(g.E(e,512))return"SU";if(g.E(e,16)||g.E(e,32))return"S";if(e.isOrWillBePlaying()&&g.E(e,64))return"B";var L=xte[bc(e)];g.R2(this.provider.XM)&&L==="B"&&this.provider.zm.getVisibilityState()===3&&(L="SU");L==="B"&&g.E(e,4)&&(L="PB");return L}; g.M.KS=function(){g.p.prototype.KS.call(this);g.hF(this.h7);g.hF(this.Cf)}; g.M.Ga=function(e){this.isOffline=e;g.rx(this,g.up(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.M.sW=function(e,L,c){var I=this.f9.indexOf(e)!==-1;I||this.f9.push(e);if(!c||!I){var B=typeof L!=="string"?rr(L):L;B=YFv(B);if(!c&&!/^t[.]/.test(B)){var x=g.up(this.provider)*1E3;B="t."+x.toFixed()+";"+B}R1(this,"ctmp",e+":"+B);this.logger.debug(function(){return"ctmp "+e+" "+B}); dDc(this);return x}}; g.M.w4=function(e,L,c){this.B={Im0:Number(this.sW("glrem",{nst:e.toFixed(),rem:L.toFixed(),ca:+c})),Nm:e,ibl:L,isAd:c}}; g.M.eq=function(e,L,c){g.rx(this,g.up(this.provider),"ad_playback",[e,L,c])}; g.M.Wo=function(e,L){var c=g.up(this.provider)*1E3;R1(this,"daism","t."+c.toFixed(0)+";smw."+(e*1E3).toFixed(0)+";smo."+(L*1E3).toFixed(0))}; g.M.resume=function(){var e=this;isNaN(this.h7)?UDn(this):this.h7=g.SG(function(){e.reportStats()},1E4)}; var Fu={},xte=(Fu[5]="N",Fu[-1]="N",Fu[3]="B",Fu[0]="EN",Fu[2]="PA",Fu[1]="PL",Fu[-1E3]="ER",Fu[1E3]="N",Fu),BRg=new Set(["PL","B","S"]),Sk=[];g.z(g.WH,g.p);g.M=g.WH.prototype;g.M.initialize=function(e,L,c){this.logger.debug(function(){return"Initialized, t="+e}); e=e||0;this.policy.X||(L=fNn(this.X),sRv(this.zm,new KB(L.video,L.reason)),this.zm.FE(new KB(L.audio,L.reason)));this.policy.X&&c5(this);this.w_.isManifestless&&lzc(this.B);this.T&&v$x(this.T,this.videoTrack.X);L=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var I=!this.w_.isManifestless;this.policy.WK&&(I=I||this.w_.tq);this.policy.Ve||(this.currentTime=I?e:L);this.policy.h7&&this.seek(this.getCurrentTime(),{}).XR(function(){}); if(this.policy.X){var B;((B=this.D)==null?0:pnn(B,this.Am()||""))&&obn(this)&&xUr(this,this.videoTrack)&&xUr(this,this.audioTrack)&&(c1H(this.K,this.D),this.policy.B&&B5f(this))}else this.Gm&&(SqT(this,this.videoTrack),SqT(this,this.audioTrack),DJ$(this.Gm),delete this.Gm);c?(hzr(this,!1),g.HT(this.WF)):(c=this.getCurrentTime()===0,Ia(this.B,this.videoTrack,this.videoTrack.X,c),Ia(this.B,this.audioTrack,this.audioTrack.X,c),this.policy.X&&lkn(this.K,!0),this.policy.h7||this.seek(this.getCurrentTime(), {}).XR(function(){}),this.timing.tick("gv")); (this.w_.kf||this.w_.YN||this.w_.k9||this.w_.RT||this.w_.Cf)&&this.zm.qJ(this.w_)}; g.M.resume=function(){if(this.isSuspended||this.Qg){this.logger.debug("Resumed.");this.j_=this.Qg=this.isSuspended=!1;try{this.Bd()}catch(e){g.A9(e)}}}; g.M.m9=function(){return!this.policy.XD}; g.M.kp=function(e,L){e=e===void 0?!1:e;L=L===void 0?!1:L;this.logger.debug("detaching media source");O26(this);this.zm.K2()&&(this.j=NaN);e?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.ye&&this.sW("loader",{setsmb:1}),this.policy.k9=!0,this.fp()):(hzr(this,!1),L||this.fp())}; g.M.setAudioTrack=function(e,L,c){c=c===void 0?!1:c;if(!this.We()){var I=!isNaN(L);c&&I&&(this.audioTrack.h7=Date.now(),this.policy.Yf&&(this.x9=!0));if(this.policy.X){var B=this.G.v6(e.id,I);this.logger.debug(function(){return"Logging new audio format: "+B.X.info.id}); this.zm.FE(B)}else{var x=zcT(this.X,e.id,I);this.logger.debug(function(){return"Logging new audio format: "+x.audio.info.id}); this.zm.FE(new KB(x.audio,x.reason))}I?(this.RT=Date.now(),c=this.audioTrack.X.index.kI(L),this.sW("setAudio",{id:e.id,cmt:L,sq:c}),c>=0&&(e=this.policy.pY?c+1:c,this.policy.X&&this.Ux(!0,"mosaic"),$D(this.audioTrack,e,NaN,NaN),!this.policy.pj&&this.w_.isLive&&j6(this.w_,e,!1))):this.zm.pR()}}; g.M.setPlaybackRate=function(e){e!==this.J.getPlaybackRate()&&this.J.setPlaybackRate(e)}; g.M.yK=function(e){var L=this.K.T;this.K.LF(e);this.sW("scfidc",{curr:pw(L),"new":pw(e)});e&&pw(e)!==pw(L)&&(this.Ux(!0,"caption change"),this.Bd())}; g.M.cB=function(e){this.K.I6(e)}; g.M.AQ=function(e){var L=e.X.info.Cu();this.logger.debug(function(){return"New "+(L?"audio":"video")+" format from SABR: "+j0(e.X.info)}); L?this.zm.FE(e):sRv(this.zm,e)}; g.M.DI=function(e){UH(e.bd[e.bd.length-1])&&WCR(this,sZn(this.X,e.bd[0].X))}; g.M.vt=function(){return this.zm.vt()}; g.M.zD=function(){return this.zm.zD()}; g.M.jL=function(e){this.zm.S().oT()&&this.sW("sps",{status:e.A8||""});if(e.A8===1)this.zm.videoData.X_=0;else if(e.A8===2||e.A8===3){var L=!1;if(e.A8===3){L=this.zm.W3();var c;this.m1=(c=e.LZm)!=null?c:Infinity;this.zm.videoData.X_=L+1;(L=Sx(this))&&this.In(!0)}this.zm.e8(!0,L)}}; g.M.vj=function(){return this.zm.vj()}; g.M.eG=function(){return this.zm.eG()}; g.M.UL=function(e){this.zm.UL(e)}; g.M.MWW=function(){var e,L=(e=this.zm.Nw())==null?void 0:e.getCurrentTime();L?this.zm.sW("rms",{cta:L}):g.HT(this.g0)}; g.M.Bd=function(){T5r(this);if(this.g_&&BX(this.g_)&&!this.g_.A1()&&(!this.policy.Ve||isFinite(this.getCurrentTime()))){var e=Ju(this.videoTrack);e=this.policy.LK&&e&&e.C2();this.w_.isManifestless&&this.w_.G&&mA(this.w_)?(this.j=mA(this.w_),this.g_.SF(this.j)):l2(this.w_)&&!e?isNaN(this.j)?(this.j=this.getCurrentTime()+3600,this.g_.SF(this.j)):this.j<=this.getCurrentTime()+1800&&(this.j=Math.max(this.j+1800,this.getCurrentTime()+3600),this.g_.SF(this.j)):this.g_.isView||(e=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.j)||this.j!==e)&&e>0&&(this.g_.SF(e),this.j=e))}if(!this.We())if(Nh(this.w_)&&this.w_.J1()){var L=this.w_;this.handleError("manifest.net.retryexhausted",L.d_?{rc:L.Fc}:{rc:L.Fc.toString()},1)}else if(this.policy.X)a:{try{KSR(this.K);this.w_.isManifestless&&this.policy.B&&LB(this.Lu);var c;((c=this.g_)==null?0:Sg(c))&&this.iJ();lkn(this.K)}catch(S){g.F7(S);L=S;if(L.message.includes("changeType")){this.sW("ctype",{exp:L.name,msg:L.message,s:L.stack});break a}this.handleError("fmt.unplayable", {exp:L.name,msg:L.message,s:L.stack},1)}piM(this);g.HT(this.d_)}else if(!this.w_.K||!Abf(this.videoTrack)&&!Abf(this.audioTrack)||(this.videoTrack.B||this.audioTrack.B)&&this.policy.sY?c=!1:(this.fp(),this.zm.seekTo(Infinity,{Ww:"checkLoaderTracksSync",y6:!0}),c=!0),!c){T5r(this);this.w_.isManifestless&&(FXn(this.videoTrack),FXn(this.audioTrack),LB(this.Lu),(c=BD(this.videoTrack))&&c.X&&(c=c.X.Z&&!this.policy.VB,this.sW(c===this.policy.T.U9?"strm":"strmbug",{strm:c,sfmp4:this.policy.T.U9,dfs:this.policy.VB}, !0)));if(this.g_)this.iJ();else if(this.policy.G){var I;c=!1;if(this.policy.kC){var B;e=g.f([this.videoTrack,this.audioTrack]);for(B=e.next();!B.done;B=e.next()){var x=B.value;for(B=BD(x);B&&x.cD()!==Ju(x);B=BD(x))x.u3(B);c=c||!!B}}else(L=BD(this.videoTrack))&&this.videoTrack.u3(L),(I=BD(this.audioTrack))&&this.audioTrack.u3(I);mm(this.videoTrack)&&mm(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(L||I||c)&&cH(this)}rqM(this);Ia(this.B,this.videoTrack,this.videoTrack.X, !1);Ia(this.B,this.audioTrack,this.audioTrack.X,!1);this.policy.LI||zzJ(this,this.videoTrack,this.audioTrack);yb$(this.B,this.videoTrack,this.audioTrack);yb$(this.B,this.audioTrack,this.videoTrack);piM(this);this.T&&(L=this.T,L.G?(I=L.j+L.policy.C$,L.Z||(I=Math.min(I,L.startTimeSecs+L.policy.Z2)),L=Math.max(0,I*1E3-Date.now())):L=NaN,isNaN(L)||g.HT(this.f9,L));g.HT(this.d_)}}; g.M.l_=function(e){this.zm.l_(e)}; g.M.iJ=function(){var e=this;if(this.g_){var L=this.g_.X,c=this.g_.K;QYT(this,this.audioTrack);QYT(this,this.videoTrack);var I=fb$(this);if(I){if(this.policy.Sj){if(!L.YP()){var B=BD(this.audioTrack);if(B){if(!TP(this,this.audioTrack,L,B.info))return;b2J(this,this.audioTrack,L,B)}}if(!c.YP()&&(B=BD(this.videoTrack))){if(!TP(this,this.videoTrack,c,B.info))return;b2J(this,this.videoTrack,c,B)}}this.h7||(this.h7=(0,g.zI)(),this.logger.debug(function(){return"Appends pause start "+e.h7+" reason "+I}), this.policy.Z&&this.sW("apdps",{r:I}))}else if(this.h7&&(vbJ(this,this.h7),this.h7=0),AqR(this),B=!1,DUJ(this,this.videoTrack,c)&&(B=!0,P$H(this.timing),EcT(this.timing)),this.g_&&!this.g_.Dj()&&(DUJ(this,this.audioTrack,L)&&(B=!0,Q5c(this.timing),Xm6(this.timing)),!this.We()&&this.g_))!this.policy.XD&&mm(this.videoTrack)&&mm(this.audioTrack)&&BX(this.g_)&&!this.g_.A1()&&(c=!1,c=Ju(this.audioTrack).X,c=c===this.w_.X[c.info.id])&&(this.logger.debug("Setting EOS"),ZNv(this.g_),iLn(this.schedule),this.hX("e")), B&&!this.g_.isAsync()&&cH(this)}}; g.M.hX=function(e){if(this.policy.Uj&&this.w_.isManifestless){var L=this.videoTrack.X;if(L){var c=L.index.Aw(),I=-1,B=-1;L.index instanceof rE&&(I=L.index.kR(),B=L.index.ub());this.zm.hX(e,c,I,B)}}}; g.M.Jv=function(e){var L,c=e===((L=this.g_)==null?void 0:L.X)?this.audioTrack:this.videoTrack,I;if((I=BD(c))==null?0:I.isLocked){if(this.zm.S().oT()){var B;this.sW("eosl",{ounlock:(B=BD(c))==null?void 0:B.info.e6()})}var x;yuJ(this,e===((x=this.g_)==null?void 0:x.X))}var S;if(this.policy.Yf&&e===((S=this.g_)==null?void 0:S.X)&&this.DY){L=this.DY-this.getCurrentTime();var h;this.zm.sW("asl",{l:L,xtag:(h=Ju(this.audioTrack))==null?void 0:h.X.info.X});this.x9=!1;this.DY=0}e.OA()&&e.rq().length===0&& (e.hs(),this.g_&&!this.g_.OA()&&(this.zm.S().oT()&&this.zm.sW("rms",{ld:"seek"}),this.g_.j=performance.now(),this.zm.aB(),this.zm.S().oT()&&g.HT(this.g0)));var R;(R=c.D)!=null&&RY(R,0);this.policy.Q5?xo(this):this.Bd()}; g.M.kme=function(e){if(this.g_){var L=Ju(e===this.g_.X?this.audioTrack:this.videoTrack);if(e=e.AT())for(var c=0;c 5&&e.pS.shift();L=L.ud;var h;if((h=this.zm.getVideoData())==null?0:h.enableServerStitchedDai)h=koc(this.audioTrack,L),c=koc(this.videoTrack,L),h!==0&&c!==0&&h!==c&&this.handleError("ssdai.avsync",{sq:L,a:h,v:c},0)}}; g.M.EX=function(e,L,c,I){e.info.video&&this.Z.EX(L,c,I)}; g.M.QJ=function(e){this.X.QJ(e)}; g.M.oe=BM(12);g.M.vn=function(){if(g.E(this.zm.getPlayerState(),8)){var e,L,c=(L=(e=this.zm.Nw())==null?void 0:e.getCurrentTime())!=null?L:this.zm.getCurrentTime(),I;(I=this.sY)==null||tI6(I,c)}var B;(B=this.gT)==null||g.HT(B)}; g.M.Sb=function(){return this.videoTrack.T||this.audioTrack.T}; g.M.seek=function(e,L){if(this.We())return kA();if(this.Sb())return kA("seeking to head");if(this.policy.h7&&!isFinite(e))return iXf(this.Lu),g.gT(Infinity);T5r(this);c5(this);this.policy.X||rqM(this,e);this.g_&&this.g_.X&&this.g_.K&&!this.zm.getVideoData().Zd&&(this.g_.X.isLocked()||this.g_.K.isLocked())&&this.zm.pR({reattachOnLockedBuffer:1,vsb:""+this.g_.K.isLocked(),asb:""+this.g_.X.isLocked()});var c=this.getCurrentTime(),I=this.Lu.seek(e,L);this.policy.Ve||(this.currentTime=I);ES(this.Z,e,c, this.policy.XE&&!L.mU);cH(this);return g.gT(I)}; g.M.gi=function(e){return this.policy.X&&this.K.gi(e)}; g.M.kK=function(e){return this.K.kK(e)}; g.M.Ux=function(e,L){this.K.Ux(e,L)}; g.M.getCurrentTime=function(){if(this.policy.Ve){var e=this.FF()||0;return this.zm.getCurrentTime(!0)-e}return this.currentTime}; g.M.YL=function(){return this.audioTrack.X.info}; g.M.Hh=function(){return this.videoTrack.X.info}; g.M.M6=function(){return this.audioTrack.X.info.EW}; g.M.Pj=function(){return this.videoTrack.X.info.EW}; g.M.KS=function(){try{this.kp(),Kr(this.audioTrack),Kr(this.videoTrack),Qb(this.audioTrack),Qb(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.p.prototype.KS.call(this)}catch(e){g.A9(e)}}; g.M.handleError=function(e,L,c){c=c===void 0?0:c;var I=RK(c);e==="fmt.unplayable"&&this.w_.isLive&&(this.policy.Sj=!1,$Z(this.w_));L=new g.hQ(e,L,c);g.hw(this);rr(L.details);this.zm.handleError(L);e!=="html5.invalidstate"&&L.errorCode!=="fmt.unplayable"&&e!=="fmt.unparseable"&&I&&this.dispose()}; g.M.b5=function(){var e=Ju(this.audioTrack),L=Ju(this.videoTrack);e={lct:this.getCurrentTime().toFixed(3),lsk:this.Lu.isSeeking(),lmf:this.X.X.isLocked(),lbw:pl(this.schedule).toFixed(3),lhd:yG(this.schedule).toFixed(3),lst:((this.schedule.T.EK()||0)*1E9).toFixed(3),laa:e?e.e6():"",lva:L?L.e6():"",lar:this.audioTrack.K?this.audioTrack.K.e6():"",lvr:this.videoTrack.K?this.videoTrack.K.e6():"",laq:""+yb(this.audioTrack),lvq:""+yb(this.videoTrack)};this.g_&&!this.g_.Dj()&&this.g_.X&&this.g_.K&&(e.lab= ly(this.g_.X.rq()),e.lvb=ly(this.g_.K.rq()));this.h7&&(e.lapt=((0,g.zI)()-this.h7).toFixed(0),e.lapr=fb$(this));this.Y9&&(e.lapmabht=((0,g.zI)()-this.Y9).toFixed(0),e.lapmabh=nr(this,this.audioTrack).toFixed(0));this.Pe&&(e.lapmvbht=((0,g.zI)()-this.Pe).toFixed(0),e.lapmvbh=nr(this,this.videoTrack).toFixed(0));this.t7&&(e.lapsdai=((0,g.zI)()-this.t7).toFixed(0));return e}; g.M.fp=function(){try{this.policy.X&&this.K.Ux(!1,"pending"),this.audioTrack.fp(),this.videoTrack.fp()}catch(e){g.A9(e)}this.policy.G=""}; g.M.kL=function(){return H8(this.J)}; g.M.sW=function(e,L,c){this.zm.sW(e,L,c===void 0?!1:c)}; g.M.Am=function(){return this.zm.Am()}; g.M.y6=function(e,L){e/=L;isNaN(this.timestampOffset)&&dfn(this,e-Math.min(e,this.policy.X_));return(e-this.timestampOffset)*L}; g.M.FF=function(){return this.timestampOffset}; g.M.isSeeking=function(){return this.Lu.isSeeking()}; g.M.Og=function(){this.Z.Og()}; g.M.kY=function(e,L,c){L=L===void 0?!1:L;c=c===void 0?{}:c;this.policy.X?this.G.kY(e,L,c):this.X.kY(e,L,c)}; g.M.LV=function(e,L){if(this.pS&&this.Z.LV(e,this.pS)){if(this.policy.DY&&this.policy.K){var c=this.videoTrack.X.index.kI(e),I;(I=this.Ve)==null||I.TR(e,c)}dfn(this,this.timestampOffset-L);cH(this);this.policy.K&&($Z(this.w_),Qb(this.audioTrack),Qb(this.videoTrack),this.fp());return!0}L=this.videoTrack.X.index.kI(e);this.handleError("ad.skipfailed",{dec:!!this.pS,t:e.toFixed(3),sq:L});return!1}; g.M.getManifest=function(){return this.w_}; g.M.isOffline=function(){return!!this.zm.getVideoData().cotn}; g.M.Ur=function(e,L){this.zm.Ur(e,L)}; g.M.qL=function(e){if(this.policy.X)this.K.Ux(!0,"utc"),this.Bd();else{var L=this.zm.getVideoData().MS;if(L){var c=this.B;c.gM=e;c.MS=L;rP(this)}}}; g.M.Dy=function(e){this.videoTrack.T=!1;this.audioTrack.T=!1;this.Lu.X=!1;this.zm.Dy(e)}; g.M.cV=function(e){this.Lu.cV(e-this.FF())}; g.M.t4=function(){this.zm.t4()}; g.M.In=function(e){e!==this.policy.Fk&&((this.policy.Fk=e)||this.Bd())}; g.M.pR=function(e){this.zm.pR(e)}; g.M.e7=function(e){this.zm.e7(e)}; g.M.Yt=function(e,L,c){var I;(I=this.Ve)==null||I.Yt(e,L,c)}; g.M.YB=function(e,L){var c;(c=this.Ve)==null||c.YB(e,L)}; g.M.nQ=function(e){var L;return(L=this.Ve)==null?void 0:L.nQ(void 0,e)}; g.M.W3=function(){return this.zm.W3()};g.M=g.M0.prototype;g.M.Ca=function(e,L,c,I,B,x){return this.Pw.Ca(e,L,c,I,B,x)}; g.M.qF=function(e,L,c,I,B,x){return this.Pw.qF(e,L,c,I,B,x)}; g.M.HO=function(e){return this.Pw.HO(e)}; g.M.Vm=function(e){this.Pw.Vm(e)}; g.M.jg=function(e,L,c,I){return this.Pw.jg(e,L,c,I)}; g.M.Og=function(){this.Pw.Og()}; g.M.TR=function(e,L){this.Pw.TR(e,L)}; g.M.oJ=function(){this.Pw.oJ()}; g.M.qQ=BM(56);g.M.yB=function(e,L,c){this.Pw.yB(e,L,c)}; g.M.r4=BM(59);g.M.HF=function(e,L,c,I,B,x,S,h,R){this.Pw.HF(e,L,c,I,B,x,S,h,R)}; g.M.WV=function(e){this.Pw.WV(e)}; g.M.U0=function(e){return this.Pw.U0(e)}; g.M.Hx=function(e){return this.Pw.Hx(e)};g.z(zP,g.Yg);g.z(sf,zP);sf.prototype.j=function(e,L){if(e&&L){var c=Number(fW(e,"cpi"))*1+1;isNaN(c)||c<=0||cthis.Z&&(this.Z=c,g.qQ(this.X)||(this.X={},this.G.stop(),this.K.stop())),this.X[L]=e,g.HT(this.K))}}; sf.prototype.B=function(){for(var e=g.f(Object.keys(this.X)),L=e.next();!L.done;L=e.next()){var c=L.value;L=this.publish;for(var I=this.Z,B=g.rj(this.X[c]),x=[],S=g.f(B[6].split("&")),h=S.next();!h.done;h=S.next())h=h.value,h.indexOf("cpi=")===0?x.push("cpi="+I.toString()):h.indexOf("ek=")===0?x.push("ek="+g.kC(c)):x.push(h);B[6]="?"+x.join("&");c="skd://"+B.slice(2).join("");B=c.length*2;I=new Uint8Array(B+4);I[0]=B%256;I[1]=(B-I[0])/256;for(B=0;B0)for(var c=g.f(this.X),I=c.next();!I.done;I=c.next())if(L===I.value.info.cryptoPeriodIndex){L=!0;break a}L=!1}if(!L){L=(0,g.zI)();a:{c=e.cryptoPeriodIndex;if(!isNaN(c)){I=g.f(this.Z.values());for(var B=I.next();!B.done;B=I.next())if(Math.abs(B.value.cryptoPeriodIndex-c)<=1){c=!0;break a}}c=!1}c?(c=e.X,c=Math.max(0,Math.random()*((isNaN(c)?120:c)-30))*1E3):c=0;this.publish("log_qoe",{wvagt:"delay."+c,cpi:e.cryptoPeriodIndex,reqlen:this.X.length}); c<=0?KmR(this,e):(this.X.push({time:L+c,info:e}),g.HT(this.K,c))}}; vH.prototype.KS=function(){this.X=[];zP.prototype.KS.call(this)};var bR={},crx=(bR.DRM_TRACK_TYPE_AUDIO="AUDIO",bR.DRM_TRACK_TYPE_SD="SD",bR.DRM_TRACK_TYPE_HD="HD",bR.DRM_TRACK_TYPE_UHD1="UHD1",bR);g.z(exn,g.p);g.z(BPf,g.Yg);g.M=BPf.prototype;g.M.BD=function(e){var L=this;if(!(this.We()||e.size<=0)){var c={};e.forEach(function(I,B){var x=nk(L.K)?B:I;B=new Uint8Array(nk(L.K)?I:B);nk(L.K)&&vor(B);I=g.GM(B,4);vor(B);B=g.GM(B,4);L.X[I]?L.X[I].status=x:L.X[B]?L.X[B].status=x:L.X[I]={type:"",status:x};zxf(L,L.X[I].type,c)}); Wqn(this,",");fO(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}}; g.M.error=function(e,L,c,I){this.We()||(this.publish("licenseerror",e,L,c,I),e==="drm.provision"&&(e=(Date.now()-this.j)/1E3,this.j=NaN,this.publish("ctmp","provf",{et:e.toFixed(3)})));RK(L)&&this.dispose()}; g.M.shouldRetry=function(e,L){return!e&&this.requestNumber===L.requestNumber}; g.M.KS=function(){this.X={};g.Yg.prototype.KS.call(this)}; g.M.b5=function(){var e={ctype:this.J.contentType||"",length:this.J.initData.length,requestedKeyIds:this.Gm,cryptoPeriodIndex:this.cryptoPeriodIndex};this.Z&&(e.keyStatuses=this.X);return e}; g.M.getInfo=function(){var e=this.G.join();if(A5(this)){var L=new Set,c;for(c in this.X)this.X[c].status!=="usable"&&L.add(this.X[c].type);e+="/UKS."+Array.from(L)}return e+="/"+this.cryptoPeriodIndex}; g.M.Wd=function(){return this.url};g.z(bp,g.p);g.M=bp.prototype;g.M.Av=function(e){if(this.B){var L=e.messageType||"license-request";this.B(new Uint8Array(e.message),L)}}; g.M.BD=function(){this.T&&this.T(this.X.keyStatuses)}; g.M.onClosed=function(){this.We()||g.aC("xboxone")&&this.Z&&this.Z("closedShouldNotRetry")}; g.M.jV=function(e){this.B&&this.B(e.message,"license-request")}; g.M.k5=function(e){if(this.Z){if(this.K){var L=this.K.error.code;e=this.K.error.systemCode}else L=e.errorCode,e=e.systemCode;this.Z("t.prefixedKeyError;c."+L+";sc."+e,L,e)}}; g.M.Vq=function(){this.j&&this.j()}; g.M.update=function(e){var L=this;if(this.X)return this.X.update(e).then(null,mg(function(c){Arc(L,"t.update",c)})); this.K?this.K.update(e):this.element.addKey?this.element.addKey(this.J.keySystem,e,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.J.keySystem,e,this.initData,this.sessionId);return F1()}; g.M.KS=function(){this.X&&(this.D?this.X.close().catch(g.F7):this.X.close());this.element=null;g.p.prototype.KS.call(this)};g.z(ip,g.p);g.M=ip.prototype;g.M.setServerCertificate=function(){return this.K.setServerCertificate?this.X.flavor==="widevine"&&this.X.eA?this.K.setServerCertificate(this.X.eA):cr(this.X)&&this.X.Pe?this.K.setServerCertificate(this.X.Pe):null:null}; g.M.createSession=function(e,L){var c=e.initData;if(this.X.keySystemAccess){L&&L("createsession");var I=this.K.createSession();Ll(this.X)?c=iI6(c,this.X.Pe):cr(this.X)&&(c=XiJ(c)||new Uint8Array(0));L&&L("genreq");e=I.generateRequest(e.contentType,c);var B=new bp(null,null,null,I,null,this.T);e.then(function(){L&&L("genreqsuccess")},mg(function(S){Arc(B,"t.generateRequest",S)})); return B}if(YZ(this.X))return gox(this,c);if(e8(this.X))return G0r(this,c);if((I=this.element)==null?0:I.generateKeyRequest)this.element.generateKeyRequest(this.X.keySystem,c);else{var x;(x=this.element)==null||x.webkitGenerateKeyRequest(this.X.keySystem,c)}return this.G=new bp(this.element,this.X,c,null,null,this.T)}; g.M.dc=function(e){var L=k0r(this,e);L&&L.jV(e)}; g.M.vI=function(e){var L=k0r(this,e);L&&L.k5(e)}; g.M.Qk=function(e){var L=k0r(this,e);L&&L.Vq(e)}; g.M.getMetrics=function(){if(this.K&&this.K.getMetrics)try{var e=this.K.getMetrics()}catch(L){}return e}; g.M.KS=function(){this.Z=this.K=null;var e;(e=this.G)==null||e.dispose();e=g.f(Object.values(this.j));for(var L=e.next();!L.done;L=e.next())L.value.dispose();this.j={};g.p.prototype.KS.call(this);delete this.element};g.M=GP.prototype;g.M.get=function(e){e=this.findIndex(e);return e!==-1?this.values[e]:null}; g.M.remove=function(e){e=this.findIndex(e);e!==-1&&(this.keys.splice(e,1),this.values.splice(e,1))}; g.M.removeAll=function(){this.keys=[];this.values=[]}; g.M.set=function(e,L){var c=this.findIndex(e);c!==-1?this.values[c]=L:(this.keys.push(e),this.values.push(L))}; g.M.findIndex=function(e){return g.Aw(this.keys,function(L){return g.E9(e,L)})};g.z(Jr$,g.Yg);g.M=Jr$.prototype;g.M.fYM=function(e){this.Bv({onecpt:1});e.initData&&a6$(this,new Uint8Array(e.initData),e.initDataType)}; g.M.V5M=function(e){this.Bv({onndky:1});a6$(this,e.initData,e.contentType)}; g.M.JJ=function(e){this.Bv({onneedkeyinfo:1});this.XM.Y("html5_eme_loader_sync")&&(this.T.get(e.initData)||this.T.set(e.initData,e));CWJ(this,e)}; g.M.Xi=function(e){this.Z.push(e);gx(this)}; g.M.createSession=function(e){var L=mY$(this)?$hx(e):g.GM(e.initData);this.K.get(L);this.k9=!0;e=new BPf(this.videoData,this.XM,e,this.drmSessionId);this.K.set(L,e);e.subscribe("ctmp",this.x7,this);e.subscribe("keystatuseschange",this.BD,this);e.subscribe("licenseerror",this.vX,this);e.subscribe("newlicense",this.qB,this);e.subscribe("newsession",this.Un,this);e.subscribe("sessionready",this.oQ,this);e.subscribe("fairplay_next_need_key_info",this.Kt,this);this.XM.Y("html5_enable_vp9_fairplay")&&e.subscribe("qualitychange", this.RA,this);e.subscribe("sabrlicenseconstraint",this.gxS,this);rrM(e,this.G)}; g.M.qB=function(e){this.We()||(this.Bv({onnelcswhb:1}),e&&!this.heartbeatParams&&(this.heartbeatParams=e,this.publish("heartbeatparams",e)))}; g.M.Un=function(){this.We()||(this.Bv({newlcssn:1}),this.Z.shift(),this.k9=!1,gx(this))}; g.M.oQ=function(){if(YZ(this.X)&&(this.Bv({onsnrdy:1}),this.Y9--,this.Y9===0)){var e=this.pS,L,c;(L=e.element)==null||(c=L.msSetMediaKeys)==null||c.call(L,e.Z)}}; g.M.BD=function(e){if(!this.We()){!this.ye&&this.videoData.Y("html5_log_drm_metrics_on_key_statuses")&&(yrx(this),this.ye=!0);this.Bv({onksch:1});var L=this.RA;if(!A5(e)&&g.ZQ&&e.K.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var c="large";else{c=[];var I=!0;if(A5(e))for(var B=g.f(Object.keys(e.X)),x=B.next();!x.done;x=B.next())x=x.value,e.X[x].status==="usable"&&c.push(e.X[x].type),e.X[x].status!=="unknown"&&(I=!1);if(!A5(e)||I)c=e.G;c=TPv(c)}L.call(this,c);if(!A5(e))for(L= {},c=g.f(e.G),I=c.next();!I.done;I=c.next())zxf(e,I.value,L);this.videoData.authorizedFormats=e.authorizedFormats;this.publish("keystatuseschange",e)}}; g.M.x7=function(e,L){this.We()||this.publish("ctmp",e,L)}; g.M.Kt=function(e,L){this.We()||this.publish("fairplay_next_need_key_info",e,L)}; g.M.vX=function(e,L,c,I){this.We()||(this.videoData.Y("html5_log_drm_metrics_on_error")&&yrx(this),this.publish("licenseerror",e,L,c,I))}; g.M.To=function(){return this.J}; g.M.RA=function(e){var L=g.sg("auto",e,!1,"l");if(this.videoData.aF){if(this.J.equals(L))return}else if(R8H(this.J,e))return;this.J=L;this.publish("qualitychange");this.Bv({updtlq:e})}; g.M.gxS=function(e){this.videoData.sabrLicenseConstraint=e}; g.M.KS=function(){this.X.keySystemAccess&&this.element&&(this.Gm?this.element.setMediaKeys(null).catch(g.F7):this.element.setMediaKeys(null));this.element=null;this.Z=[];for(var e=g.f(this.K.values()),L=e.next();!L.done;L=e.next())L=L.value,L.unsubscribe("ctmp",this.x7,this),L.unsubscribe("keystatuseschange",this.BD,this),L.unsubscribe("licenseerror",this.vX,this),L.unsubscribe("newlicense",this.qB,this),L.unsubscribe("newsession",this.Un,this),L.unsubscribe("sessionready",this.oQ,this),L.unsubscribe("fairplay_next_need_key_info", this.Kt,this),this.XM.Y("html5_enable_vp9_fairplay")&&L.unsubscribe("qualitychange",this.RA,this),L.dispose();this.K.clear();this.j.removeAll();this.T.removeAll();this.heartbeatParams=null;g.Yg.prototype.KS.call(this)}; g.M.b5=function(){for(var e={systemInfo:this.X.b5(),sessions:[]},L=g.f(this.K.values()),c=L.next();!c.done;c=L.next())e.sessions.push(c.value.b5());return e}; g.M.getInfo=function(){return this.K.size<=0?"no session":""+this.K.values().next().value.getInfo()+(this.B?"/KR":"")}; g.M.Bv=function(e,L){L=L===void 0?!1:L;this.We()||(rr(e),(this.XM.oT()||L)&&this.publish("ctmp","drmlog",e))};g.z(HIf,g.p);g.M=HIf.prototype;g.M.cL=function(){return!!this.Xg}; g.M.xP=function(){return this.K}; g.M.handleError=function(e){var L=this;EoM(this,e);if((e.errorCode!=="html5.invalidstate"&&e.errorCode!=="fmt.unplayable"&&e.errorCode!=="fmt.unparseable"||!UYx(this,e.errorCode,e.details))&&!noc(this,e)){if(this.UW.pS!=="yt"&&Kqc(this,e)&&this.videoData.Qt&&(0,g.zI)()/1E3>this.videoData.Qt&&this.UW.pS==="hm"){var c=Object.assign({e:e.errorCode},e.details);c.stalesigexp="1";c.expire=this.videoData.Qt;c.init=this.videoData.Ob/1E3;c.now=(0,g.zI)()/1E3;c.systelapsed=((0,g.zI)()-this.videoData.Ob)/1E3; e=new g.hQ(e.errorCode,c,2);this.zm.BM(e.errorCode,2,"SIGNATURE_EXPIRED",rr(e.details))}if(RK(e.severity)){var I;c=(I=this.zm.loader)==null?void 0:I.X.X;if(this.UW.Y("html5_use_network_error_code_enums"))if(X5x(e)&&c&&c.isLocked())var B="FORMAT_UNAVAILABLE";else if(this.UW.j||e.errorCode!=="auth"||e.details.rc!==429)e.errorCode==="ump.spsrejectfailure"&&(B="HTML5_SPS_UMP_STATUS_REJECTED");else{B="TOO_MANY_REQUESTS";var x="6"}else X5x(e)&&c&&c.isLocked()?B="FORMAT_UNAVAILABLE":this.UW.j||e.errorCode!== "auth"||e.details.rc!=="429"?e.errorCode==="ump.spsrejectfailure"&&(B="HTML5_SPS_UMP_STATUS_REJECTED"):(B="TOO_MANY_REQUESTS",x="6");this.zm.BM(e.errorCode,e.severity,B,rr(e.details),x)}else this.zm.publish("nonfatalerror",e),I=/^pp/.test(this.videoData.clientPlaybackNonce),this.Zg(e.errorCode,e.details),I&&e.errorCode==="manifest.net.connect"&&(e="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.zI)(),$q(e,"manifest",function(S){L.j=!0;L.sW("pathprobe",S)}, function(S){L.Zg(S.errorCode,S.details)}))}}; g.M.sW=function(e,L){this.zm.OY.sW(e,L)}; g.M.Zg=function(e,L){L=rr(L);this.zm.OY.Zg(e,L)};kV.prototype.IB=function(e){var L=Bxv(this);if(!e)return{mN:h1,xe:h1,aX:h1,t6:h1,ZI:h1,e0:h1,j0:L};var c=h1;if(fX(L)||this.Y("html5_perf_cap_override_sticky"))c=WEM(this,e);return{mN:c,xe:RfH(this,e),aX:r5n(this,e),t6:MkT(this,e.videoData),ZI:zfJ(this,e.videoData,e),e0:oVn(this,e),j0:L}}; kV.prototype.Ad=function(e){var L;g.nl(this.XM)&&(L=window.screen&&window.screen.width?new g.dz(window.screen.width,window.screen.height):null);L||(L=this.XM.V6?this.XM.V6.clone():this.PB.IF());(jG||rH||e)&&L.scale(g.qu());return L}; kV.prototype.Y=function(e){return this.XM.Y(e)};g.z(wx,g.p);wx.prototype.onError=function(e){if(e!=="player.fatalexception"||this.provider.Y("html5_exception_to_health"))e==="sabr.fallback"&&(this.encounteredSabrFallback=!0),e.match(oTM)?this.networkErrorCount++:this.nonNetworkErrorCount++}; wx.prototype.send=function(){if(!(this.Z||this.X<0)){fpJ(this);var e=g.up(this.provider)-this.X,L="PLAYER_PLAYBACK_STATE_UNKNOWN",c=this.playerState.lz;this.playerState.isError()?L=c&&c.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.E(this.playerState,2)?L="PLAYER_PLAYBACK_STATE_ENDED":g.E(this.playerState,64)?L="PLAYER_PLAYBACK_STATE_UNSTARTED":g.E(this.playerState,16)||g.E(this.playerState,32)?L="PLAYER_PLAYBACK_STATE_SEEKING":g.E(this.playerState,1)&&g.E(this.playerState, 4)?L="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.E(this.playerState,1)?L="PLAYER_PLAYBACK_STATE_BUFFERING":g.E(this.playerState,4)?L="PLAYER_PLAYBACK_STATE_PAUSED":g.E(this.playerState,8)&&(L="PLAYER_PLAYBACK_STATE_PLAYING");c=UlL[$$(this.provider.videoData)];a:switch(this.provider.XM.playerCanaryState){case "canary":var I="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":I="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:I="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var B=A5n(this.provider), x=this.K<0?e:this.K-this.X;e=this.provider.XM.OF+36E5<(0,g.zI)();L={started:this.K>=0,stateAtSend:L,joinLatencySecs:x,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:I,playerCanaryStage:B,isAd:this.provider.videoData.isAd(),liveMode:c,hasDrm:!!g.ZI(this.provider.videoData),isGapless:this.provider.videoData.T,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:GN(this.provider.videoData)};e||g.et("html5PlayerHealthEvent",L);this.Z=!0;this.dispose()}}; wx.prototype.KS=function(){this.Z||this.send();window.removeEventListener("error",this.vF);window.removeEventListener("unhandledrejection",this.vF);g.p.prototype.KS.call(this)}; var oTM=/\bnet\b/;FEM.prototype.update=function(){if(this.T){var e=this.RO()||0,L=g.up(this.provider);e>=this.provider.zm.getDuration()-.1&&(this.previouslyEnded=!0);if(e!==this.X||GPT(this,e,L)){var c;if(!(c=eL-this.GA+2||GPT(this,e,L))){c=this.provider.zm.getVolume();var I=c!==this.D,B=this.provider.zm.isMuted()?1:0;B!==this.J?(this.J=B,c=!0):(!I||this.G>=0||(this.D=c,this.G=L),c=L-this.G,this.G>=0&&c>2?(this.G=-1,c=!0):c=!1)}c&&(Vn(this),this.Z=e);this.GA=L;this.X=e}}}; FEM.prototype.RO=function(){var e=this.provider.zm.RO();return this.provider.XM.Y("html5_disable_live_dvr_shrink_for_cdm_vss")&&i8(this.provider.videoData)?e+this.provider.zm.FF():e};gVx.prototype.send=function(e){var L=this;if(!this.d_){var c=D0c(this),I=g.WO(this.uri,c);this.XM.Y("vss_through_gel_double")&&wHH(I);this.k9&&!this.XM.Y("html5_simplify_pings")?Nxn(this,I):kPc(this,e).then(function(B){L.k9&&(B=B||{},B.method="POST",B.postParams={atr:L.attestationResponse});C8c(I,B,{token:L.h7,DR:L.Kf,mdxEnvironment:L.mdxEnvironment},L.XM,e,L.Ve,L.isFinal&&L.gZ||L.ye||L.Z&&L.Ft)}); this.d_=!0}}; gVx.prototype.K=function(e){e===void 0&&(e=NaN);return Number(e.toFixed(3)).toString()}; var iR={},CpT=(iR.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,iR.LIVING_ROOM_APP_MODE_MAIN=1,iR.LIVING_ROOM_APP_MODE_KIDS=2,iR.LIVING_ROOM_APP_MODE_MUSIC=3,iR.LIVING_ROOM_APP_MODE_UNPLUGGED=4,iR.LIVING_ROOM_APP_MODE_GAMING=5,iR),GD={},Vk$=(GD.EMBEDDED_PLAYER_MODE_UNKNOWN=0,GD.EMBEDDED_PLAYER_MODE_DEFAULT=1,GD.EMBEDDED_PLAYER_MODE_PFP=2,GD.EMBEDDED_PLAYER_MODE_PFL=3,GD);g.z(a1,g.p);a1.prototype.vR=function(){this.X.update();PpR(this)&&(ZOR(this),pHc(this))}; a1.prototype.KS=function(){g.p.prototype.KS.call(this);yn(this);bOH(this.X)}; a1.prototype.b5=function(){return D0c(N0(this,"playback"))}; a1.prototype.V9=function(e){var L=N0(this,"engage");L.Gm=e;return J5c(L,KEx(this.provider))};XH$.prototype.isEmpty=function(){return this.endTime===this.startTime};pO.prototype.Y=function(e){return this.XM.Y(e)}; pO.prototype.getCurrentTime=function(){return this.zm.getCurrentTime()}; pO.prototype.RO=function(){return this.zm.RO()}; var YfJ={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.z(g.$V,g.p);g.M=g.$V.prototype;g.M.vR=function(){if(this.provider.videoData.enableServerStitchedDai&&this.sU){var e;(e=this.Z.get(this.sU))==null||e.vR()}else this.X&&this.X.vR()}; g.M.Hq=function(e){this.qoe&&this.qoe.Hq(e)}; g.M.S9=BM(29);g.M.bz=BM(35);g.M.Wo=function(e,L){this.qoe&&this.qoe.Wo(e,L)}; g.M.Ug=function(){if(this.provider.videoData.enableServerStitchedDai&&this.sU){var e;(e=this.Z.get(this.sU))!=null&&Vn(e.X)}else this.X&&Vn(this.X.X)}; g.M.Zg=function(e,L){this.qoe&&XNJ(this.qoe,e,L);if(this.K)this.K.onError(e)}; g.M.onPlaybackRateChange=function(e){if(this.qoe)this.qoe.onPlaybackRateChange(e);this.X&&Vn(this.X.X)}; g.M.Hc=BM(52);g.M.sW=function(e,L,c){this.qoe&&this.qoe.sW(e,L,c)}; g.M.w4=function(e,L,c){this.qoe&&this.qoe.w4(e,L,c)}; g.M.p$=function(e){var L;(L=this.qoe)==null||L.p$(e)}; g.M.qJ=function(e){var L;(L=this.qoe)==null||L.qJ(e)}; g.M.hX=function(e,L,c,I){var B;(B=this.qoe)==null||B.hX(e,L,c,I)}; g.M.e7=function(e){this.qoe&&this.qoe.e7(e)}; g.M.eq=function(e,L,c){this.qoe&&this.qoe.eq(e,L,c)}; g.M.rg=BM(23);g.M.BY=function(){if(this.qoe)return this.qoe.BY()}; g.M.b5=function(){if(this.provider.videoData.enableServerStitchedDai&&this.sU){var e,L;return(L=(e=this.Z.get(this.sU))==null?void 0:e.b5())!=null?L:{}}return this.X?this.X.b5():{}}; g.M.uw=function(){var e;return(e=this.qoe)==null?void 0:e.uw()}; g.M.F0=function(e,L){var c;(c=this.qoe)==null||c.F0(e,L)}; g.M.V9=function(e){return this.X?this.X.V9(e):function(){}}; g.M.getVideoData=function(){return this.provider.videoData}; g.M.resume=function(){this.qoe&&this.qoe.resume()};g.z(g.jk,g.p);g.M=g.jk.prototype;g.M.Lb=function(e,L){this.sync();L&&this.X.array.length>=2E3&&this.kP("captions",1E4);L=this.X;if(e.length>1&&e.length>L.array.length)L.array=L.array.concat(e),L.array.sort(L.X);else{e=g.f(e);for(var c=e.next();!c.done;c=e.next())c=c.value,!L.array.length||L.X(c,L.array[L.array.length-1])>0?L.array.push(c):g.Xh(L.array,c,L.X)}this.Z=NaN;this.sync()}; g.M.SX=function(e){e.length>1E4&&g.F7(new g.yu("Over 10k cueRanges removal occurs with a sample: ",e[0]));if(!this.We()){var L=new Set(e);this.K=this.K.filter(function(c){return!L.has(c)}); qUn(this.X,L);this.sync()}}; g.M.jD=function(e,L){if(!this.We()){var c=this.eG().find(function(I){return I.id===L&&I.namespace===e}); c&&this.SX([c])}}; g.M.kP=function(e,L){var c=(isNaN(this.Z)?sqv(this):this.Z)-L;L=this.eG().filter(function(I){return I.namespace===e&&I.endthis.X,x=g.E(c,8)&&g.E(c,16),S=this.zm.cq().isBackground()||c.isSuspended();YV(this,this.m$,x&&!S,B,"qoe.slowseek",function(){},"timeout"); var h=isFinite(this.X);h=x&&h&&Q9c(L,this.X);var R=!I||Math.abs(I-this.X)>10,u=this.XM.Y("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),t=I===0&&this.K&&[11,10].includes(this.K);YV(this,this.d_,h&&R&&!S&&(!u||!t),B,"qoe.slowseek",function(){L.seekTo(e.X)},"set_cmt"); R=h&&Qd(L.im(),this.X);var O=this.zm.loader;h=!O||O.m9();var q=function(){L.seekTo(e.X+.001)}; YV(this,this.ye,R&&h&&!S,B,"qoe.slowseek",q,"jiggle_cmt");h=function(){return e.zm.GY()}; YV(this,this.t7,R&&!S,B,"qoe.slowseek",h,"new_elem");t=FI(c);R=c.isBuffering();var T=L.im(),W=P1(T,I),A=W>=0&&T.end(W)>I+5,b=t&&R&&A;u=this.zm.getVideoData();YV(this,this.Y9,I<.002&&this.X<.002&&x&&g.R2(this.XM)&&g.cS(u)&&!S,B,"qoe.slowseek",h,"slow_seek_shorts");YV(this,this.D,u.O9()&&x&&!S&&!u.Gm,B,"qoe.slowseek",h,"slow_seek_gapless_shorts");YV(this,this.pS,b&&!S,t&&!R,"qoe.longrebuffer",q,"jiggle_cmt");YV(this,this.h7,b&&!S,t&&!R,"qoe.longrebuffer",h,"new_elem_nnr");if(O){var J=O.getCurrentTime(); x=L.MR();x=ayM(x,J);x=!O.isSeeking()&&I===x;YV(this,this.Kf,t&&R&&x&&!S,t&&!R&&!x,"qoe.longrebuffer",function(){L.seekTo(J)},"seek_to_loader")}x={}; q=P1(T,Math.max(I-3.5,0));b=q>=0&&I>T.end(q)-1.1;var w=q>=0&&q+1=0&&b&&w<11;x.close2edge=b;x.gapsize=w;x.buflen=T.length;this.K&&(x.seekSour=this.K);YV(this,this.Gm,t&&R&&!S,t&&!R,"qoe.longrebuffer",function(){},"timeout",x); x=c.isSuspended();x=this.zm.fX()&&!x;YV(this,this.T,x,!x,"qoe.start15s",function(){e.zm.pu("ad")},"ads_preroll_timeout"); x=this.XM.experiments.N0("html5_use_playback_rate_in_skip_slow_ad")?this.zm.getPlaybackRate()*1E3:1E3;W=I-this.G5;YV(this,this.He,g.cS(u)&&O,t&&!R,"qoe.longrebuffer",function(){e.zm.pR()},"reset_media_source"); YV(this,this.Pe,g.cS(u)&&O,t&&!R,"qoe.longrebuffer",h,"reset_media_element");this.G===0&&(this.j=I);O=R&&this.X===0&&I>1&&I===this.j;YV(this,this.Ve,g.cS(u)&&O,t&&!R,"qoe.slowseek",function(){L.seekTo(0)},"reseek_after_time_jump"); S=c.isOrWillBePlaying()&&!S;A=this.zm.wP()-I<6&&!A&&this.zm.Jb();YV(this,this.J,u.O9()&&S&&R&&A,t&&!R,"qoe.longrebuffer",function(){e.zm.GY(!1,!0)},"handoff_end_long_buffer_reload"); S=this.K===104||this.zm.VI;c=A1(u)&&u.isAd()&&!u.Gm&&S&&(R||g.E(c,8)&&g.E(c,16));YV(this,this.Sl,c,B,"qoe.start15s",h,"gapless_ad_slow_start");this.G=I;this.B.start()}}; KO.prototype.Zg=function(e,L,c){L=this.b5(L);L.wn=c;L.wdup=this.Z[e]?"1":"0";this.zm.Zg(new g.hQ(e,L));this.Z[e]=!0}; KO.prototype.b5=function(e){e=Object.assign(this.zm.b5(!0),e.b5());this.X&&(e.stt=this.X.toFixed(3));this.zm.getVideoData().isLivePlayback&&(e.ct=this.zm.getCurrentTime().toFixed(3),e.to=this.zm.FF().toFixed(3));delete e.uga;delete e.euri;delete e.referrer;delete e.fexp;delete e.vm;return e}; Xb.prototype.reset=function(){this.X=this.K=this.Z=this.startTimestamp=0;this.G=!1}; Xb.prototype.test=function(e){if(!this.B||this.K)return!1;if(!e)return this.reset(),!1;e=(0,g.zI)();if(!this.startTimestamp)this.startTimestamp=e,this.Z=0;else if(this.Z>=this.B)return this.K=e,!0;this.Z+=1;return!1}; Xb.prototype.b5=function(){var e={},L=(0,g.zI)();this.startTimestamp&&(e.wsd=(L-this.startTimestamp).toFixed());this.K&&(e.wtd=(L-this.K).toFixed());this.X&&(e.wssd=(L-this.X).toFixed());return e};g.z(Zp6,g.p);g.M=Zp6.prototype;g.M.setMediaElement=function(e){(this.mediaElement=e)?(this.mediaElement&&(this.B||this.Z||!this.mediaElement.bI()||this.seekTo(.01,{Ww:"seektimeline_setupMediaElement"})),nO(this)):Lp(this)}; g.M.getCurrentTime=function(e){e=e===void 0?!1:e;if(eo(this.zm)){if(this.Y("html5_use_centralized_player_time")&&!e&&!isNaN(this.j))return this.j;if(!isNaN(this.K))return this.K}else{if(this.Y("html5_use_centralized_player_time")&&!e&&!isNaN(this.j)&&isFinite(this.j))return this.j;if(!isNaN(this.K)&&isFinite(this.K))return this.K}return this.mediaElement&&eSr(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.Z||0}; g.M.ww=function(){return this.Sl}; g.M.RO=function(){return this.getCurrentTime()-this.FF()}; g.M.t_=function(){return this.X?this.X.t_():Infinity}; g.M.isAtLiveHead=function(e){if(!this.X)return!1;e===void 0&&(e=this.getCurrentTime());return dx(this.X,e)}; g.M.K8=function(){return!!this.X&&this.X.K8()}; g.M.seekTo=function(e,L){var c=L===void 0?{}:L;L=c.vB===void 0?!1:c.vB;var I=c.Zu===void 0?0:c.Zu;var B=c.dw===void 0?!1:c.dw;var x=c.Xs===void 0?0:c.Xs;var S=c.Ww===void 0?"":c.Ww;var h=c.seekSource===void 0?void 0:c.seekSource;var R=c.y6===void 0?!1:c.y6;var u=c.mU===void 0?!1:c.mU;c=c.Ay===void 0?!1:c.Ay;R&&(e+=this.FF());GN(this.videoData)&&h===29&&(this.Sl=void 0);R=e=this.i4())||!g.QE(this.videoData),A||(b={st:b,mst:this.i4()},this.X&&this.Y("html5_high_res_seek_logging")&&(b.ht=this.X.t_(),b.adft=J2$(this.X)),this.zm.sW("seeknotallowed",b)),b=A));if(!b)return this.G&&(this.G=null,K4J(this)),g.gT(this.getCurrentTime());b=.005;u&&this.Y("html5_sabr_seek_no_shift_tolerance")&&(b=0);if(Math.abs(e-this.K)<=b&&this.Ve)return this.B;S&&(b=e,(this.XM.oT()||this.Y("html5_log_seek_reasons"))&& this.zm.sW("seekreason",{reason:S,tgt:b}));h&&(this.pS.K=h);this.Ve&&Lp(this);this.B||(this.B=new Ri);e&&!isFinite(e)&&HpJ(this,!1);(S=c||R)||(S=e,S=!(this.videoData.isLivePlayback&&this.videoData.Z&&!this.videoData.Z.X&&!(this.mediaElement&&this.mediaElement.qD()>0&&tf(this.mediaElement)>0)||J1(this.videoData)&&this.S6()===this.i4(!1)?0:isFinite(S)||!J1(this.videoData)));S||(e=Iq(this,e,B));e&&!isFinite(e)&&HpJ(this,!1);this.Y("html5_use_centralized_player_time")?this.j=e:this.K=this.Z=e;this.He= x;this.T=0;this.X&&(B=this.X,x=e,Vof(B,x,!1),CQH(B,x));B=this.zm;x=e;S={vB:L,seekSource:h};B.w0.Z=x;c=B.RR;c.mediaTime=x;c.X=!0;S.vB&&B.Oe(S);S=x>B.videoData.endSeconds&&x>B.videoData.limitedPlaybackDurationInSeconds;B.Vg&&S&&isFinite(x)&&wQc(B);xL.start&&wQc(this.zm);return this.B}; g.M.i4=function(e){if(!this.videoData.isLivePlayback)return this.zm.videoData.i4();var L;return qU(this.videoData)&&((L=this.mediaElement)==null?0:L.isPaused())&&this.videoData.X?(e=this.getCurrentTime(),YyM(this.sR(e)*1E3)+e):this.Y("html5_sabr_parse_live_metadata_playback_boundaries")&&GN(this.videoData)&&this.videoData.X?e?this.videoData.X.h7||0:this.videoData.X.pB||0:J1(this.videoData)&&this.videoData.pS&&this.videoData.X?this.videoData.X.i4()+this.timestampOffset:this.videoData.Z&&this.videoData.Z.X? !e&&this.X?this.X.t_():this.zm.videoData.i4()+this.timestampOffset:this.mediaElement?y2()?YyM(this.mediaElement.i$().getTime()):tf(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.M.S6=function(){if(this.Y("html5_sabr_parse_live_metadata_playback_boundaries")&&GN(this.videoData)){var e;return((e=this.videoData.X)==null?void 0:e.u9)||0}e=this.videoData?this.videoData.S6()+this.timestampOffset:this.timestampOffset;if(qU(this.videoData)&&this.videoData.X){var L,c=Number((L=this.videoData.progressBarStartPosition)==null?void 0:L.utcTimeMillis)/1E3;L=this.getCurrentTime();L=this.sR(L)-L;if(!isNaN(c)&&!isNaN(L))return Math.max(e,c-L)}return e}; g.M.aB=function(){this.B||this.seekTo(this.Z,{Ww:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.M.Sb=function(){return this.Ve&&!isFinite(this.K)}; g.M.KS=function(){l7c(this,null);this.pS.dispose();g.p.prototype.KS.call(this)}; g.M.b5=function(){var e={};this.loader&&Object.assign(e,this.loader.b5());this.mediaElement&&Object.assign(e,this.mediaElement.b5());return e}; g.M.qN=function(e){this.timestampOffset=e}; g.M.getStreamTimeOffset=function(){return J1(this.videoData)?0:this.videoData.X?this.videoData.X.getStreamTimeOffset():0}; g.M.FF=function(){return this.timestampOffset}; g.M.sR=function(e){return this.videoData&&this.videoData.X?this.videoData.X.sR(e-this.timestampOffset):NaN}; g.M.yl=function(){if(!this.mediaElement)return 0;if(d7(this.videoData)){var e=this.mediaElement,L=e.im();e=(E7(L)&&e.getDuration()?L.end(L.length-1):0)+this.timestampOffset-this.S6();L=this.i4()-this.S6();return Math.max(0,Math.min(1,e/L))}return this.mediaElement.yl()}; g.M.FE=function(e){this.J&&(this.J.X=e)}; g.M.qL=function(e,L){this.zm.sW("requestUtcSeek",{time:e});GN(this.videoData)&&(this.Sl=e);var c;(c=this.loader)==null||c.qL(e);L&&(this.k9=L)}; g.M.Dy=function(e){GN(this.videoData)&&(this.Sl=void 0);if(this.k9)this.zm.sW("utcSeekingFallback",{source:"streamTime",timeSeconds:this.k9}),this.zm.seekTo(this.k9,{Ww:"utcSeekingFallback_streamTime"}),this.k9=0;else{var L=this.getCurrentTime();isNaN(L)||(e=this.sR(L)-e,L-=e,this.zm.sW("utcSeekingFallback",{source:"estimate",timeSeconds:L}),this.zm.seekTo(L,{Ww:"utcSeekingFallback_estimate"}))}}; g.M.t4=function(){this.k9=0}; g.M.Y=function(e){return this.XM&&this.XM.Y(e)};g.z(Bc,g.p);Bc.prototype.start=function(){this.K.start()}; Bc.prototype.stop=function(){this.K.stop()}; Bc.prototype.clear=function(){for(var e=g.f(this.X.values()),L=e.next();!L.done;L=e.next())L.value.clear()}; Bc.prototype.sample=function(){for(var e=g.f(this.Z),L=e.next();!L.done;L=e.next()){var c=g.f(L.value);L=c.next().value;c=c.next().value;this.X.has(L)||this.X.set(L,new oe6(SdM.has(L)));this.X.get(L).update(c())}this.K.start()}; var SdM=new Set(["networkactivity"]);oe6.prototype.update=function(e){this.K?(this.buffer.add(e-this.X||0),this.X=e):this.buffer.add(e)}; oe6.prototype.clear=function(){this.buffer.clear();this.X=0};So.prototype.nU=function(){return this.started}; So.prototype.start=function(){this.started=!0}; So.prototype.reset=function(){this.finished=this.started=!1};var uq6=!1;g.z(g.uQ,g.Yg);g.M=g.uQ.prototype;g.M.KS=function(){this.logger.debug("dispose");g.hF(this.ZH);jaR(this.dZ);this.visibility.unsubscribe("visibilitystatechange",this.dZ);I7n(this.OY);g.L0(this.OY);qE(this);g.Vw.qe(this.EB);this.yx();this.l0=null;g.L0(this.videoData);g.L0(this.Yk);g.L0(this.mE);g.L0(this.f0);g.cs(this.aYd);this.Vg=null;g.Yg.prototype.KS.call(this)}; g.M.eq=function(e,L,c,I,B){if(this.XM.Y("html5_log_ad_playback_docid")){var x=this.OY;if(x.qoe){x=x.qoe;var S=this.XM.pS||"yt";g.rx(x,g.up(x.provider),"ad_playback",[e,L,c,B,S])}}else this.OY.eq(e,L,c);this.Y("html5_log_media_perf_info")&&this.sW("adloudness",{ld:I.toFixed(3),cpn:e})}; g.M.M6=function(){var e;return(e=this.loader)==null?void 0:e.M6()}; g.M.Pj=function(){var e;return(e=this.loader)==null?void 0:e.Pj()}; g.M.Hh=function(){var e;return(e=this.loader)==null?void 0:e.Hh()}; g.M.YL=function(){var e;return(e=this.loader)==null?void 0:e.YL()}; g.M.cg=function(){return this.videoData.cg()}; g.M.K2=function(){return this.Y("html5_not_reset_media_source")&&!this.cg()&&!this.videoData.isLivePlayback&&g.cS(this.videoData)&&!this.XM.supportsGaplessShorts()}; g.M.w1=function(){this.videoData.T&&(this.videoData.Jo=this.videoData.Jo||this.cw.Qe().M6(),this.videoData.Ao=this.videoData.Ao||this.cw.Qe().Pj());if(pFJ(this.videoData)||!tq(this.videoData)){var e=this.videoData.errorDetail;this.BM(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),e,e,this.videoData.ol||void 0)}this.Y("html5_generate_content_po_token")&&this.HB();this.Y("html5_enable_d6de4")&&this.Bz()}; g.M.getVideoData=function(){return this.videoData}; g.M.S=function(){return this.XM}; g.M.IB=function(){return this.n2.IB(this.l0)}; g.M.cq=function(){return this.visibility}; g.M.wy=function(){return this.mediaElement&&this.mediaElement.jZ()?this.mediaElement.IT():null}; g.M.Nw=function(){return this.mediaElement}; g.M.zo=function(){if(this.Y("html5_check_video_data_errors_before_playback_start")&&this.videoData.errorCode)return!1;this.S().j&&this.S().houseBrandUserStatus&&this.sW("hbut",{status:this.S().houseBrandUserStatus},!0);if(this.videoData.Hd())return!0;this.BM("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.M.WH=function(e){(e=e===void 0?!1:e)||nVc(this.OY);this.v3=e;!this.zo()||this.sx.nU()?g.R2(this.XM)&&this.videoData.isLivePlayback&&this.sx.nU()&&!this.sx.finished&&!this.v3&&this.GH():(this.sx.start(),e=this.OY,g.up(e.provider),e.qoe&&UDn(e.qoe),this.GH())}; g.M.GH=function(){if(this.videoData.isLoaded()){var e=this.Yk;g.X3(e.UW.experiments,"html5_player_min_build_cl")>0&&g.X3(e.UW.experiments,"html5_player_min_build_cl")>780767961&&YwM(e,"oldplayer");GbJ(this)}else this.videoData.J9||this.videoData.Z0?this.v3&&g.R2(this.XM)&&this.videoData.isLivePlayback||(this.videoData.J9?FM$(this.videoData):(e=this.OY,e.qoe&&(e=e.qoe,Of(e,"protected"),e.provider.videoData.B?e.Ni():e.provider.videoData.subscribe("dataloaded",e.Ni,e)),zov(this.videoData))):!this.videoData.loading&& this.F4&&FKH(this)}; g.M.iT=function(e){this.Pw=e;this.loader&&(jYR(this.loader,new g.M0(e)),this.sW("sdai",{sdsstm:1}))}; g.M.Yt=function(e,L,c){var I;(I=this.loader)==null||I.Yt(e,L,c)}; g.M.AB=BM(8);g.M.isFullscreen=function(){return this.visibility.isFullscreen()}; g.M.isBackground=function(){return this.visibility.isBackground()}; g.M.m5=function(){var e=this;this.logger.debug("Updating for format change");t2(this).then(function(){return Rq(e)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.M.Cs=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.WH();this.zo()&&!g.E(this.playerState,128)&&(this.a$.nU()||(this.a$.start(),this.videoData.a8?this.Xp(sP(this.playerState,4)):this.Xp(sP(sP(this.playerState,8),1))),bmx(this))}; g.M.NQ=function(){return this.sx.finished}; g.M.sendAbandonmentPing=function(){g.E(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.dh(!0),I7n(this.OY),g.L0(this.OY),g.Vw.qe(this.EB))}; g.M.O0=function(e,L){e=e===void 0?!0:e;(L===void 0||L)&&this.mediaElement&&this.mediaElement.pause();this.Xp(e?new g.WX(14):new g.WX)}; g.M.Ox=function(){this.OY.Ug()}; g.M.BM=function(e,L,c,I,B,x){this.logger.debug(function(){return"set player error: ec="+e+", detail="+B}); var S,h;g.t_(vrN,c)?S=c:c?h=c:S="GENERIC_WITHOUT_LINK";I=(I||"")+(";a6s."+Q_());if(e==="auth"||e==="drm.auth"||e==="heartbeat.stop")c&&(I+=";r."+c.replaceAll(" ","_")),x&&(I+="sr."+x.replaceAll(" ","_"));L={errorCode:e,errorDetail:B,errorMessage:h||g.nm[S]||"",i_:S,ol:x||"",RD:I,wF:L,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=e;OU(this,"dataloaderror");this.Xp(zk(this.playerState,128,L));g.Vw.qe(this.EB);qE(this);this.f6()}; g.M.pu=function(e){this.yT=this.yT.filter(function(L){return e!==L}); this.logger.debug(function(){return"set preroll ready for "+e}); this.a$.nU()&&bmx(this)}; g.M.FK=function(){var e;(e=!!this.yT.length)||(e=this.BR.X.array[0],e=!!e&&e.start<=-0x8000000000000);return e}; g.M.K8=function(){return this.w0.K8()}; g.M.isPlaying=function(){return this.playerState.isPlaying()}; g.M.QE=function(){return this.playerState.QE()&&this.videoData.a8}; g.M.getPlayerState=function(){return this.playerState}; g.M.yK=function(e){var L;(L=this.loader)==null||L.yK(e)}; g.M.cB=function(e){var L;(L=this.loader)==null||L.cB(e)}; g.M.getPlayerType=function(){return this.playerType}; g.M.getPreferredQuality=function(){if(this.l0){var e=this.l0;e=e.videoData.F5.compose(e.videoData.jo);e=FL(e)}else e="auto";return e}; g.M.ST=BM(16);g.M.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.M.setMediaElement=function(e){this.logger.debug("set media element");if(this.mediaElement&&e.IT()===this.mediaElement.IT()&&(e.isView()||this.mediaElement.isView())){if(e.isView()||!this.mediaElement.isView())this.Zi(),this.mediaElement=e,this.mediaElement.zm=this,Hmf(this),this.w0.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.yx();if(!this.playerState.isError()){var L=vX(this.playerState,512);g.E(L,8)&&!g.E(L,2)&&(L=sP(L,1));e.isView()&&(L=vX(L,64));this.Xp(L)}this.mediaElement= e;this.mediaElement.zm=this;!g.R2(this.XM)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);Hmf(this);this.w0.setMediaElement(this.mediaElement);this.Y("html5_prewarm_media_source")&&!this.Yk.cL()&&j9H(this.mediaElement)}}; g.M.yx=function(e,L,c){e=e===void 0?!1:e;L=L===void 0?!1:L;c=c===void 0?!1:c;this.logger.debug("remove media element");if(this.mediaElement){var I=this.getCurrentTime();I>0&&(this.w0.Z=I);this.w0.setMediaElement(null);!e&&this.K2()?yKH(this):this.o1(c);this.loader&&(cH(this.loader),zO(this,L));this.eE.stop();if(this.mediaElement&&(!this.a$.nU()&&!this.fX()||this.playerState.isError()||g.E(this.playerState,2)||this.Xp(sP(this.playerState,512)),this.mediaElement)){this.Zi();if(e||!this.mediaElement.isView())this.j5.SL("mesv_s"), this.mediaElement.stopVideo(),sU(this);this.mediaElement=this.mediaElement.zm=null}}}; g.M.playVideo=function(e,L){e=e===void 0?!1:e;L=L===void 0?!1:L;var c=this,I,B,x,S,h,R,u;return g.Z(function(t){if(t.K==1){c.logger.debug("start play video");var O=window.google_image_requests;O&&O.length>10&&(window.google_image_requests=O.slice(-10));if(g.E(c.playerState,128))return t.return();if(c.Yk.xP())return c.publish("signatureexpired"),t.return();c.mediaElement&&nVc(c.OY);c.Cs();(g.E(c.playerState,64)||e)&&c.Xp(sP(c.playerState,8));return c.a$.finished&&c.mediaElement?c.l0||!c.Nj?t.Iq(2): g.a(t,c.Nj,3):t.return()}if(t.K!=2&&g.E(c.playerState,128))return t.return();if(!c.videoData.Z)return c.videoData.isLivePlayback&&!g.MX(c.XM.B,!0)?(I="html5.unsupportedlive",B=2):(I=c.videoData.cg()?"fmt.unplayable":"fmt.noneavailable",B=1),g.F7(Error("selectableFormats")),x=c.Y("html5_log_fmt_unplaybable_trigger")?"trg.selectableFormats":"selectableFormats.1",c.BM(I,B,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",x),t.return();if(c.YI()&&c.videoData.Z.X)return c.logger.debug("rebuild playbackData for airplay"), t.return(t2(c));if(eo(c))O=c.w0,w7(O.videoData)&&!O.isAtLiveHead(O.getCurrentTime())&&O.K8()&&O.zm.seekTo(Infinity,{Ww:"seektimeline_peggedToLive",seekSource:34});else if(w7(c.videoData)&&(S=c.getCurrentTime()S;if(!h||!S){x&&h&&(I=Math.max(I,x));var R;x=x0H(L,(R=B.X)==null?void 0:R.videoInfos);R=L.zm.getPlaybackRate();R>1&&x&&(R=KlJ(L.XM.B,B.X.videoInfos,R),e.X!==0&&R< e.X&&L.zm.setPlaybackRate(1));var u,t;e=((u=B.videoData.K)==null?void 0:(t=u.video)==null?void 0:t.qualityOrdinal)||0;g.bS("yt-player-quality",{quality:I,previousQuality:e},31104E3);L.XM.schedule.policy.G=rV()>=480;if(L.Y("html5_exponential_memory_for_sticky")){u=L.XM.Mv;t=1;var O=O===void 0?!1:O;wwf(u,"sticky-lifetime");u.values["sticky-lifetime"]&&u.wz["sticky-lifetime"]||(u.values["sticky-lifetime"]=0,u.wz["sticky-lifetime"]=0);O&&Hr(u,"sticky-lifetime")>.0625&&(t=u.wz["sticky-lifetime"]*2);u.values["sticky-lifetime"]+= 1*Math.pow(2,u.X/t);u.wz["sticky-lifetime"]=t;u.G.start()}if(L.Y("html5_perf_cap_override_sticky")){O=L.Z;u=L.Y("html5_perserve_av1_perf_cap");u=u===void 0?!1:u;if(u===void 0?0:u){t=Ry();e=g.f(Object.keys(t));for(L=e.next();!L.done;L=e.next())L=L.value,L.indexOf("1")!==0&&delete t[L];g.bS("yt-player-performance-cap",t,2592E3)}else g.Gx("yt-player-performance-cap");YZR(u);if(u){u=g.f(dE.keys());for(t=u.next();!t.done;t=u.next())t=t.value,t.startsWith("1")||dE.delete(t);u=g.f(Dp.values());for(t=u.next();!t.done;t= u.next())t=t.value,t.startsWith("1")||Dp.delete(t);u=g.f(O.keys());for(t=u.next();!t.done;t=u.next())t=t.value,t.startsWith("1")||O.delete(t)}else dE.clear(),Dp.clear(),O.clear()}}}this.loader&&(O=this.loader,c=c||"",O.policy.X?LJ(O.G.X,c):LJ(O.X.B,c));this.f8()}; g.M.getUserPlaybackQualityPreference=function(){return this.videoData.Z&&!this.videoData.Z.X?FL(this.videoData.F5):Ae[rV()]}; g.M.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.M.setUserAudio51Preference=function(e,L){this.getUserAudio51Preference()!==e&&(this.sW("toggle51",{pref:e}),g.bS("yt-player-audio51",e,L?31536E3:2592E3),this.m5())}; g.M.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.M.setProximaLatencyPreference=function(e){var L=this.getProximaLatencyPreference();this.sW("proxima",{pref:e});g.bS("yt-player-proxima-pref",e,31536E3);L!==e&&(e=this.w0,e.x9=!0,e.zm.seekTo(Infinity,{Ww:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.M.getProximaLatencyPreference=function(){var e;return(e=he())!=null?e:0}; g.M.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.M.HB=function(){this.videoData.videoId?this.cw.HB(this.videoData):this.sW("povid",{})}; g.M.Bz=function(){this.videoData.videoId?this.cw.Bz(this.videoData):this.sW("piavid",{})}; g.M.f8=function(){if(!this.We()&&!g.E(this.playerState,128)&&this.videoData.Z){if(this.videoData.Z.X)h2(this);else{var e=ME(this),L=this.videoData;a:{var c=this.videoData.g0;if(e.X){for(var I=g.f(c),B=I.next();!B.done;B=I.next()){B=B.value;var x=B.getInfo(),S=g.fn[x.video.quality];if((!e.Z||x.video.quality!=="auto")&&S<=e.X){c=B;break a}}c=c[c.length-1]}else c=c[0]}L.m$=c;JKr(this,e.reason,QxT(this,this.videoData.m$))}if(this.Y("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.w0.D= !1,this.playVideo()}}; g.M.oL=function(e,L){if(this.We()||g.E(this.playerState,128))return!1;var c,I=!((c=this.videoData.Z)==null||!c.X);c=I&&L?this.getCurrentTime()-this.FF():NaN;if(this.XM.experiments.N0("html5_record_audio_format_intent")){var B=this.OY;if(B.qoe){B=B.qoe;var x=[e.l5.id,isNaN(c)?"m":"t"];g.rx(B,g.up(B.provider),"afi",x)}}if(I)return L&&(I=QqT(this.w0),this.sW("aswh",{id:e.id,xtags:e.xtags,bh:I.toFixed(3)})),this.loader.setAudioTrack(e,c,L),!0;if(Cav(this)){a:{L=this.mediaElement.audioTracks();for(I=0;I< L.length;++I)if(c=L[I],c.label===e.l5.getName()){if(c.enabled){L=!1;break a}L=c.enabled=!0;break a}L=void 0}L&&this.sW("hlsaudio",{id:e.id})}else{a:if(L=this.videoData,L.G&&!aK(L.G)||e===L.Wh||!L.g0||L.g0.length<=0)L=!1;else{I=g.f(L.g0);for(c=I.next();!c.done;c=I.next()){c=c.value;if(!(c instanceof wb)){L=!1;break a}B=e.l5.getId();c.K&&(LGR(c.K,B),c.V5=null)}L.Wh=e;L=!0}L&&Rq(this)&&(this.publish("internalaudioformatchange",this.videoData,!0),this.sW("hlsaudio",{id:e.id}))}return!0}; g.M.getAvailableAudioTracks=function(){return this.videoData.getAvailableAudioTracks()}; g.M.getAudioTrack=function(){if(Cav(this)){var e=N0f(this);if(e)return e}return this.videoData.getAudioTrack()}; g.M.Wj=function(){return this.videoData.G}; g.M.eL=function(){if(this.videoData.Y("html5_trigger_loader_when_idle_network")&&!this.videoData.Wy()&&GN(this.videoData)){var e;(e=this.loader)!=null&&e.Bd()}}; g.M.WX=function(){if(A1(this.videoData)&&this.videoData.Y("html5_gapless_append_early")){var e;(e=this.loader)!=null&&e.Bd()}}; g.M.onPlayerRequestSent=function(e){this.cw.onPlayerRequestSent(e)}; g.M.kp=function(e){e=e===void 0?!1:e;if(this.loader){var L=this.loader,c=L.kp;var I=this.videoData;I=I.Y("html5_ssdai_use_post_for_media")&&I.enableServerStitchedDai?!1:J1(I)&&I.xf&&!I.isAd();c.call(L,I,e)}}; g.M.o1=function(e){e=e===void 0?!1:e;this.g_&&(this.logger.debug("remove media source"),$wr(this.g_),this.kp(e),this.g_.dispose(),this.g_=null)}; g.M.y0=function(){return this.g_}; g.M.Rf=function(e,L,c,I){function B(S){try{jxf(x,S,L,c)}catch(h){g.F7(h),S={msi:"1",ename:h&&typeof h==="object"&&"name"in h?String(h.name):void 0},x.Y("html5_log_fmt_unplaybable_trigger")&&(S.trg="setmediasrc"),x.handleError(new g.hQ("fmt.unplayable",S,1))}} var x=this;L=L===void 0?!1:L;c=c===void 0?!1:c;pQr(this,I===void 0?!1:I);this.g_=e;this.K2()&&r1(this.g_)==="open"?B(this.g_):mwc(this.g_,B)}; g.M.JJ=function(e){this.logger.debug("onNeedKeyInfo");this.SN.set(e.initData,e);this.x0&&(this.x0.JJ(e),this.Y("html5_eme_loader_sync")||this.SN.remove(e.initData))}; g.M.UL=function(e){this.videoData.Dv=g.sg("auto",e,!1,"u");h2(this)}; g.M.FE=function(e){var L=e.reason,c=e.X.info,I=e.token,B=e.videoId,x=this.OY,S=this.videoData;if(c!==S.G){var h=!S.G;S.G=c;L!=="m"&&L!=="t"&&(L=h?"i":"a");var R=L==="m"||L==="t";this.XM.experiments.N0("html5_refactor_sabr_audio_format_selection_logging")?this.Ju=new LEc(S,c,L,"",I,B):(L=new LEc(S,c,L,"",I),x.qoe&&(x=x.qoe,c=g.up(x.provider),LC$(x,c,L)));this.publish("internalaudioformatchange",S,!h&&R)}this.w0.FE(e.X.index)}; g.M.dD=function(e){this.publish("localmediachange",e)}; g.M.kY=function(e){e=e===void 0?{}:e;var L;(L=this.loader)==null||L.kY(this.XM,b8(this.videoData),e)}; g.M.xP=function(){return this.Yk.xP()}; g.M.Wl=function(e){this.Zg(new g.hQ("staleconfig",{reason:e}))}; g.M.handleError=function(e){this.Yk.handleError(e)}; g.M.cL=function(){return this.Yk.cL()}; g.M.Dy=function(e){this.w0.Dy(e)}; g.M.GY=function(e,L){e=e===void 0?!1:e;L=L===void 0?!1:L;var c=this,I,B,x;return g.Z(function(S){if(S.K==1){c.loader&&c.loader.Og();c.loader&&c.loader.We()&&qE(c);if(c.Y("html5_enable_vp9_fairplay")&&c.cg()&&(I=c.videoData.X)!=null)for(var h in I.X)I.X.hasOwnProperty(h)&&(I.X[h].X=null,I.X[h].Z=!1);c.Xp(sP(c.playerState,2048));c.publish("newelementrequired");return e?g.a(S,t2(c),2):S.Iq(2)}c.videoData.Wy()&&((B=c.loader)==null?0:B.k9)&&!eo(c)&&((x=c.isAtLiveHead())&&w7(c.videoData)?c.seekTo(Infinity, {Ww:"videoPlayer_getNewElement"}):c.videoData.tq&&c.loader&&(h=c.loader,h.w_.Wy&&(h.w_.tq||h.w_.G||h.w_.isPremiere?(h.seek(0,{Ww:"loader_resetSqless"}),h.videoTrack.T=!0,h.audioTrack.T=!0,h.videoTrack.B=!0,h.audioTrack.B=!0):l2(h.w_)&&rP(h))));L&&c.seekTo(0,{seekSource:105});g.E(c.playerState,8)&&c.playVideo();g.AJ(S)})}; g.M.Pm=function(e){this.sW("hgte",{ne:+e});this.videoData.T=!1;e&&this.GY();this.loader&&tDT(this.loader)}; g.M.Rv=function(e){this.sW("newelem",{r:e});this.GY()}; g.M.pauseVideo=function(e){e=e===void 0?!1:e;if((g.E(this.playerState,64)||g.E(this.playerState,2))&&!e)if(g.E(this.playerState,8))this.Xp(fx(this.playerState,4,8));else if(this.QE())Rq(this);else return;g.E(this.playerState,128)||(e?this.Xp(sP(this.playerState,256)):this.Xp(fx(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.QE(this.videoData)&&this.loader&&zO(this,!1)}; g.M.stopVideo=function(){this.pauseVideo();this.loader&&(zO(this,!1),this.loader.fp())}; g.M.f6=function(e,L){e=e===void 0?!1:e;L=L===void 0?!1:L;if(this.K2()&&L){var c;(c=this.mediaElement)==null||c.f6()}else{var I;(I=this.mediaElement)==null||I.stopVideo()}sU(this);qE(this);g.E(this.playerState,128)||(e?this.Xp(vX(vX(sP(this.playerState,4),8),16)):this.Xp(zk(this.playerState)));this.videoData.videoId&&this.XM.Y9.remove(this.videoData.videoId)}; g.M.seekTo=function(e,L){L=L===void 0?{}:L;this.logger.debug(function(){return"SeekTo "+e+", "+JSON.stringify(L)}); g.E(this.playerState,2)&&Rq(this);L.no_&&this.Xp(sP(this.playerState,2048));L.seekSource!==58&&L.seekSource!==60||!this.Y("html5_update_vss_during_gapless_seeking")||L4M(this.OY,L.seekSource);this.w0.seekTo(e,L);this.BR.sync()}; g.M.Oe=function(e){this.j5.G.K=(0,g.zI)();g.E(this.playerState,32)||(this.Xp(sP(this.playerState,32,e==null?void 0:e.seekSource)),g.E(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking"));this.Ty()}; g.M.yO=function(e){e=e==null?void 0:e.seekSource;g.E(this.playerState,32)?(this.Xp(fx(this.playerState,16,32,e)),this.publish("endseeking")):g.E(this.playerState,2)||this.Xp(sP(this.playerState,16,e));e=this.j5.G;var L=this.videoData,c=this.playerState.isPaused();if(L.clientPlaybackNonce&&!isNaN(e.X)){if(Math.random()<.01){c=c?"pbp":"pbs";var I={startTime:e.X};L.j&&(I.cttAuthInfo={token:L.j,videoId:L.videoId});be("seek",I);g.FT({clientPlaybackNonce:L.clientPlaybackNonce},"seek");isNaN(e.K)||AD("pl_ss", e.K,"seek");AD(c,(0,g.zI)(),"seek")}e.reset()}}; g.M.d3=function(e){this.yO(e)}; g.M.ZL=function(){this.publish("SEEK_COMPLETE")}; g.M.AJ=function(e){var L=this.cw,c=this.videoData.clientPlaybackNonce,I=this.playerType;if(e.scope===4){var B=e.type;if(B){var x=L.aT(),S=x.getVideoData().clientPlaybackNonce;I===1&&(S=c);if(I=lrn(L,S)){if(c=I.getVideoData())e.writePolicy===2&&c.sabrContextUpdates.has(B)||(e.sendByDefault&&c.Sl.add(B),c.sabrContextUpdates.set(B,e)),L.Y("html5_enable_t1_enf_on_sabr")&&(e=B===5,B=rln(c.playerResponse),e?(e=B?1:0,eF(e,"m.p_",{}),yJ("MBSTAT",e)):e=1,e===0&&L.CS.fS("onAbnormalityDetected"))}else x.sW("scuset", {ncpf:"1",ccpn:S,crcpn:c})}else g.F7(Error("b/380308491: contextUpdateType is undefined"))}}; g.M.RB=function(){if(this.playerType===2)return this.cw.RB("")}; g.M.getCurrentTime=function(e){return this.w0.getCurrentTime(e===void 0?!1:e)}; g.M.ww=function(){return this.w0.ww()}; g.M.RO=function(){return this.w0.RO()}; g.M.uK=function(){return this.RO()}; g.M.t_=function(){return this.w0.t_()}; g.M.getPlaylistSequenceForTime=function(e){return this.videoData.getPlaylistSequenceForTime(e-this.FF())}; g.M.u2=function(){var e=NaN;this.mediaElement&&(e=this.mediaElement.u2());return e>=0?e:this.getCurrentTime()}; g.M.sR=function(){var e;return((e=this.videoData.X)==null?0:e.sR)?this.videoData.X.sR(this.getCurrentTime()-this.FF()):this.mediaElement&&(e=this.mediaElement.i$())&&(e=e.getTime(),!isNaN(e))?e/1E3+this.getCurrentTime():NaN}; g.M.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.FF():this.i4()?this.i4():0}; g.M.WY=function(){var e=new SUH;if(this.loader){var L=this.XM.schedule,c=this.XM.oT();c=c===void 0?!1:c;e.PH=L.Gm;e.bG=L.Pe;e.bandwidthEstimate=$y(L);if(c){c=(L.J.EK()*1E3).toFixed();var I=(L.Ve.EK()*1E3).toFixed(),B=yG(L).toFixed(2),x=((L.T.EK()||0)*1E9).toFixed(2),S=L.Z.EK().toFixed(0),h=L.ye.EK().toFixed(0),R=L.D.percentile(.5).toFixed(2),u=L.D.percentile(.92).toFixed(2),t=L.D.percentile(.96).toFixed(2),O=L.D.percentile(.98).toFixed(2);L.X?L.X.reset():L.X=new ky;L.X.add(L.k9);L.X.add(L.interruptions.length); for(var q=0,T=L.interruptions.length-1;T>=0;T--){var W=L.interruptions[T];L.X.add(W-q);q=W}q=0;for(T=L.G.length-1;T>=0;T--){W=L.G[T];var A=W.stamp/36E5;L.X.add(A-q);q=A;L.X.add(W.net/1E3);L.X.add(W.max)}L=L.X.sV();e.X={ttr:c,ttm:I,d:B,st:x,bw:S,abw:h,v50:R,v92:u,v96:t,v98:O,"int":L}}$fJ(this.loader,e)}else this.mediaElement&&(e.Ly=OP(this.mediaElement));e.PH=this.PH;e.bG=this.bG;e.Z=this.isAtLiveHead()&&this.isPlaying()?fPT(this):NaN;return e}; g.M.Ur=function(e,L){this.bG+=e;this.PH+=L}; g.M.yl=function(){return this.mediaElement?g.QE(this.videoData)?1:d7(this.videoData)?this.isAtLiveHead()||this.K8()?1:this.w0.yl():this.mediaElement.yl():0}; g.M.Hj=function(){var e=this.fz,L=oq(e,"bandwidth"),c=oq(e,"bufferhealth"),I=oq(e,"livelatency"),B=oq(e,"networkactivity"),x=x1(e,"bandwidth"),S=x1(e,"bufferhealth"),h=x1(e,"livelatency");e=x1(e,"networkactivity");var R=this.PY(),u=R.droppedVideoFrames;R=R.totalVideoFrames;var t=this.getCurrentTime();if(this.x0){var O="IT/"+(this.x0.X.getInfo()+"/"+FL(this.To()));O+="/"+this.x0.getInfo()}else O="";var q=this.isGapless(),T=this.jG(),W=this.BY(),A=g.Wc(this),b=this.getPlayerState(),J=this.getPlaylistSequenceForTime(this.getCurrentTime()); a:{var w=0;var C="";if(this.Pw){if(this.Pw.Tc){C="D,";break a}w=this.Pw.Go;C=this.Pw.St.substring(0,4)}w>0?(w="AD"+w+", ",C&&(w+=C+", "),C=w):C=""}return{ke:x,rS:S,currentTime:t,fY:O,droppedVideoFrames:u,isGapless:q,jG:T,R3:W,hN:L,sJ:c,Kh:I,Z1:B,UJ:h,HZ:e,l6:A,playerState:b,i6:J,Jz:C,totalVideoFrames:R}}; g.M.b5=function(e){var L={};if(e===void 0?0:e){Object.assign(L,this.OY.b5());this.mediaElement&&(Object.assign(L,this.mediaElement.b5()),e=this.PY(),L.dvf=e.droppedVideoFrames,L.tvf=e.totalVideoFrames);this.loader&&Object.assign(L,this.loader.b5());this.x0&&(L.drm=JSON.stringify(this.x0.b5()));L.state=this.playerState.state.toString(16);g.E(this.playerState,128)&&(L.debug_error=JSON.stringify(this.playerState.lz));this.FK()&&(L.prerolls=this.yT.join(","));this.videoData.Bw&&(L.ismb=this.videoData.Bw); this.videoData.latencyClass!=="UNKNOWN"&&(L.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(L.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)L.is_mosaic=1;this.videoData.cotn&&(L.is_offline=1,L.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(L.playerResponseCpn=this.videoData.playerResponseCpn);this.cw.isOrchestrationLeader()&&(L.leader=1);this.videoData.isLivePlayback&& (this.videoData.X&&pk(this.videoData.X)&&(L.segduration=pk(this.videoData.X)),e=this.w0,L.lat=e.J?ipc(e.J.G):0,L.liveutcstart=this.videoData.liveUtcStartSeconds);L.relative_loudness=this.videoData.m1.toFixed(3);if(e=g.Wc(this))L.optimal_format=e.video.qualityLabel;L.user_qual=rV();L.release_version=r[13]}L.debug_videoId=this.videoData.videoId;return L}; g.M.addCueRange=function(e){this.b3([e])}; g.M.removeCueRange=function(e){this.BR.SX([e])}; g.M.gD=function(){this.BR.sync()}; g.M.kP=function(e,L){return this.BR.kP(e,L)}; g.M.b3=function(e,L){this.BR.Lb(e,L)}; g.M.Z$=function(e){this.BR.SX(e)}; g.M.eG=function(){return this.BR.eG()||[]}; g.M.fl=function(){return this.Fv}; g.M.YI=function(){return this.visibility.YI()}; g.M.eT=function(){this.mediaElement&&this.mediaElement.eT()}; g.M.sU$=function(){OU(this)}; g.M.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.M.Zi=function(){g.fv(this.Wz)}; g.M.Z9$=function(){this.Ty();this.publish("onLoadProgress",this.yl())}; g.M.AL=function(e){var L=e.target.qS();if(this.mediaElement&&this.mediaElement.qS()&&this.mediaElement.qS()===L){nef(this,e.type);switch(e.type){case "error":var c=Tk(this.mediaElement)||"",I=this.mediaElement.Ku();if(c==="capability.changed"){this.Y("html5_restart_on_capability_change")?(this.sW("capchg",{msg:I}),this.GY(!0)):t2(this);return}if(this.mediaElement.hasError()&&(I={msg:I},this.Y("html5_log_fmt_unplaybable_trigger")&&(I.trg="elementevt"),UYx(this.Yk,c,I)))return;if(this.isBackground()&& this.mediaElement.n1()===4){this.f6();TO(this,"unplayable");return}break;case "durationchange":c=this.mediaElement.getDuration();isFinite(c)&&(!this.g_||c>0)&&c!==1&&this.SF(c);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());TBn(this.BR);this.OY.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":LkH(this);this.publish("onLoadedMetadata");Pan(this);c=this.sR();this.videoData.jE&&(this.videoData.jE=c);break;case "loadstart":Pan(this); break;case "progress":case "suspend":this.u6.SI();break;case "playing":this.j5.SL("plev");this.Kz&&!eo(this)&&(this.Kz=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{Ww:"videoplayer_onPlaying"})));break;case "timeupdate":c=this.mediaElement&&!this.mediaElement.getCurrentTime();I=this.mediaElement&&this.mediaElement.qD()===0;if(c&&(!this.yJ||I))return;this.yJ=this.yJ||!!this.mediaElement.getCurrentTime();lPH(this);this.Ty();if(!this.mediaElement||this.mediaElement.qS()!== L)return;this.publish("onVideoProgress",this.getCurrentTime());break;case "waiting":if(this.mediaElement.MR().length>0&&this.mediaElement.im().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.loader)return;this.Y("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.qD()>2||!this.mediaElement.isSeeking()&&Qd(this.mediaElement.im(),this.mediaElement.getCurrentTime()))&&(c=this.mediaElement.b5(),c.bh=OP(this.mediaElement).toFixed(3), this.sW("uwe",c));break;case "resize":LkH(this);this.videoData.K&&this.videoData.K.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.q5&&g.E(this.playerState,8)&&!g.E(this.playerState,1024)&&this.getCurrentTime()===0&&g.RM){TO(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.qS()===L){IPn(this.w0,e);this.publish("videoelementevent",e);L=this.playerState;var B=this.RR,x=this.mediaElement;c=this.XM.experiments; I=this.videoData.clientPlaybackNonce;if(!g.E(L,128)){var S=L.state;x=x?x:e.target;var h=x.getCurrentTime();if(!g.E(L,64)||e.type!=="ended"&&e.type!=="pause"){var R=x.getDuration();R=x.isEnded()||h>1&&Math.abs(h-R)<1.1;var u=e.type==="pause"&&x.isEnded();h=e.type==="ended"||e.type==="waiting"||e.type==="timeupdate"&&!g.E(L,4)&&!HH(B,h);if(u||R&&h)x.rF()>0&&x.qS()&&(S=14);else switch(e.type){case "error":Tk(x)&&(S|=128);break;case "pause":g.E(L,256)?(S^=256)||(S=64):g.E(L,32)||g.E(L,2)||g.E(L,4)||(S= 4,g.E(L,1)&&g.E(L,8)&&(S|=1));break;case "playing":h=S;S=(S|8)&-1093;h&4?(S|=1,Mp(B,x,!0)):HH(B,x.getCurrentTime())&&(S&=-2);g.E(L,1)&&Mp(B,x)&&(S|=1);break;case "seeking":S|=16;g.E(L,8)&&(S|=1);S&=-3;break;case "seeked":S&=-17;Mp(B,x,!0);break;case "waiting":g.E(L,2)||(S|=1);Mp(B,x);break;case "timeupdate":h=g.E(L,16),R=g.E(L,4),(g.E(L,8)||h)&&!R&&HH(B,x.getCurrentTime())&&(S=8),Mp(B,x)&&(S|=1)}}B=S;S=null;B&128&&(S=e.target,x=Tk(S),h=1,x?(x==="capability.changed"&&(h=2),R="GENERIC_WITHOUT_LINK", u=S.b5(),u.mediaElem="1",c.N0("html5_log_fmt_unplaybable_trigger")&&(u.trg="melem"),/AUDIO_RENDERER/.test(S.Ku())&&(R="HTML5_AUDIO_RENDERER_ERROR"),S={errorCode:x,errorMessage:g.nm[R]||"",i_:R,RD:rr(u),wF:h,cpn:L.lz?L.lz.cpn:""}):S=null,S&&(S.cpn=I));L=zk(L,B,S)}!g.E(this.playerState,1)&&g.E(L,1)&&YVf(this,"evt"+e.type);this.Xp(L)}}}; g.M.qWl=function(e){e=e.X.availability==="available";e!==this.Fv&&(this.Fv=e,this.publish("airplayavailabilitychange"))}; g.M.U0e=function(){var e=(0,g.zI)(),L=this.mediaElement.YI();this.sW("airplay",{ia:L});!L&&!isNaN(this.SJ)&&e-this.SJ<2E3||(this.SJ=e,L!==this.YI()&&(e=this.visibility,e.X!==L&&(e.X=L,e.dZ()),this.sW("airplay",{rbld:L}),this.m5()),this.publish("airplayactivechange"))}; g.M.o4=function(e){if(this.loader){var L=this.loader,c=L.Z,I=L.getCurrentTime(),B=Date.now()-c.D;c.D=NaN;c.sW("sdai",{adfetchdone:e,d:B});e&&!isNaN(c.T)&&c.K!==3&&QV(c.loader,I,c.T,c.j);c.policy.K?c.B=NaN:c.G=NaN;PD(c,4,c.K===3?"adfps":"adf");cH(L)}}; g.M.yW=function(){g.hF(this.ZH);this.eE.stop();this.videoData.Gm=!0;this.XM.u9=!0;this.XM.Kf=0;var e=this.Yk;if(e.videoData.K){var L=e.UW.B,c=e.videoData.K.EW;L.G.has(c)&&(L.G.delete(c),L.K=!0)}e.X.stop();this.y4();g.E(this.playerState,8)&&this.Xp(vX(this.playerState,65));this.v3=!1;e=this.OY;e.X&&$0c(e.X);e.K&&(e=e.K,L=g.up(e.provider),e.X<0&&(e.X=L,e.delay.start()),e.K=L,e.G=L);g.HT(this.mE);this.publish("playbackstarted");(e=g.BU("yt.scheduler.instance.clearPriorityThreshold"))?e():ds(0)}; g.M.y4=function(){var e=this.cw.hq(),L={},c={};!ie("pbs",this.j5.timerName)&&RN.measure&&RN.getEntriesByName&&(RN.getEntriesByName("mark_nr")[0]?xKR("mark_nr"):xKR());e.videoId&&(L.videoId=e.videoId);e.clientPlaybackNonce&&!this.Y("web_player_early_cpn")&&(L.clientPlaybackNonce=e.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(c.isPausedOnLoad=!0);c.itag=e.K?Number(e.K.itag):-1;e.kN&&(c.preloadType=String(this.Ya?2:1));L.liveStreamMode=UlL[$$(e)];L.playerInfo=c;this.j5.infoGel(L); if(this.loader){e=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(e.Z&&(L=window.performance.getEntriesByName(e.Z),L.length&&(L=L[0],e.tick("vri",L.fetchStart),e.tick("vdns",L.domainLookupEnd),e.tick("vreq",L.requestStart),e.tick("vrc",L.responseEnd))),e.K&&(L=window.performance.getEntriesByName(e.K),L.length&&(L=L[0],e.tick("ari",L.fetchStart),e.tick("adns",L.domainLookupEnd),e.tick("areq",L.requestStart),e.tick("arc",L.responseEnd))));e=e.ticks;for(var I in e)e.hasOwnProperty(I)&& this.j5.tick(I,e[I])}}; g.M.Ty=function(e){var L=this;e=e===void 0?!1:e;if(this.mediaElement&&this.videoData){dEn(this.w0,this.isPlaying());var c=this.getCurrentTime();!this.loader||g.E(this.playerState,4)&&g.QE(this.videoData)||g.E(this.playerState,32)&&GN(this.videoData)||lcc(this.loader,c);c>5&&(this.w0.Z=c);var I=g.Qu();I?g.Vw.qe(this.EB):g.ra(this.EB);var B=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!B||qU(this.videoData))&&!g.E(this.playerState,128)){var x=function(){if(L.mediaElement&&!g.E(L.playerState, 128)){L.XM.oT()&&nef(L,"pfx");var S=L.getCurrentTime();L.Y("html5_buffer_underrun_transition_fix")&&(S-=L.FF());var h=OP(L.mediaElement),R=g.E(L.playerState,8),u=HH(L.RR,S),t=Uwc(L.RR,S,(0,g.zI)(),h);R&&u?L.Xp(vX(L.playerState,1)):R&&t?(R=L.getDuration(),u=w7(L.videoData),R&&Math.abs(R-S)<1.1?(L.sW("setended",{ct:S,bh:h,dur:R,live:u}),L.mediaElement.Q6()?(L.logger.debug("seek to 0 because of looping"),L.seekTo(0,{Ww:"videoplayer_loop",seekSource:37})):L.O0()):(L.playerState.isBuffering()||YVf(L,"progress_fix"), L.Xp(sP(L.playerState,1)))):(R&&!u&&!t&&S>0&&(R=(Date.now()-L.Xg)/1E3,u=L.getDuration(),S>u-1&&L.sW("misspg",{t:S.toFixed(2),d:u.toFixed(2),r:R.toFixed(2),bh:h.toFixed(2)})),L.playerState.isPaused()&&L.playerState.isBuffering()&&OP(L.mediaElement)>5&&L.Xp(vX(L.playerState,1)));L.Ty()}}; this.mediaElement.MR().length===0?this.EB=I?g.Vw.dg(x,100):g.oC(x,100):this.EB=I?g.Vw.dg(x,500):g.oC(x,500)}this.videoData.FD=c;!e&&this.isPlaying()&&drT(this);Tx6(this.n2,this.l0,this.Nw(),this.isBackground())&&h2(this);this.publish("progresssync",e);B&&qU(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}}; g.M.h2=function(){this.BM("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.M.BY=function(){return this.OY.BY()}; g.M.kL=function(){return this.loader?this.loader.kL():$y(this.XM.schedule,!0)}; g.M.Xp=function(e){if(!g.Af(this.playerState,e)){this.logger.debug(function(){return"Setting state "+e.toString()}); var L=new g.BZ(e,this.playerState);this.playerState=e;eFv(this);var c=!this.Gi.length;this.Gi.push(L);var I=this.mediaElement&&this.mediaElement.isSeeking();g.or(L,1)&&this.loader&&Rz$(this.loader);I=L.oldState.state===8&&!I;g.or(L,1)&&I&&g.E(this.playerState,8)&&!g.E(this.playerState,64)&&this.loader&&(ulH(this.loader),this.mediaElement&&OP(this.mediaElement)>=5&&OO6(this.n2,this.l0)&&h2(this));(I=g.X3(this.XM.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.E(e,1)&&(g.E(e,8)||g.E(e, 16))?this.oM.start(I):this.oM.stop();(xw(L,8)<0||g.or(L,1024))&&this.eE.stop();!g.or(L,8)||this.videoData.Gm||g.E(L.state,1024)||this.eE.start();g.E(L.state,8)&&xw(L,16)<0&&!g.E(L.state,32)&&!g.E(L.state,2)&&this.playVideo();g.E(L.state,2)&&d7(this.videoData)&&(this.SF(this.getCurrentTime()),this.Ty(!0));g.or(L,2)&&(this.dh(!0),this.XM.oT()&&this.Y("html5_sabr_parse_live_metadata_playback_boundaries")&&GN(this.videoData)&&this.videoData.X&&(I={minst:""+this.videoData.X.u9,cminst:""+(this.videoData.X.S6()+ this.FF()),maxst:""+this.videoData.X.pB,hts:""+this.videoData.X.h7,cmaxst:""+(this.videoData.X.i4()+this.FF())},this.sW("sabrSeekableBoundaries",I)));g.or(L,128)&&this.f6();this.videoData.X&&this.videoData.isLivePlayback&&!this.jp&&(xw(L,8)<0?Dpc(this.videoData.X):g.or(L,8)&&this.videoData.X.resume());PQc(this.w0,L);c2v(this.OY,L);if(c&&!this.We())try{for(var B=g.f(this.Gi),x=B.next();!x.done;x=B.next()){var S=x.value;W4v(this.BR,S);this.publish("statechange",S)}}finally{this.Gi.length=0}}}; g.M.au=function(){this.j5.tick("qoes")}; g.M.aB=function(){this.w0.aB()}; g.M.vX=function(e,L,c,I){a:{var B=this.Yk;I=I===void 0?"LICENSE":I;c=c.substring(0,256);var x=RK(L);e==="drm.keyerror"&&this.x0&&this.x0.K.keys.length>1&&B.G<96&&(e="drm.sessionlimitexhausted",x=!1);var S=B.UW.experiments.N0("html5_retry_on_drm_unavailable"),h=B.UW.experiments.N0("html5_retry_on_drm_key_error"),R=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(S&&e==="drm.unavailable"||h&&e==="drm.keyerror"&&!c.match(R))B.Zg("qoe.restart",{retryOnDrmError:1,e:e,detail:c}),B.zm.GY(!0);else{if(x)if(B.videoData.K&& B.videoData.K.video.isHdr())efJ(B,e);else{if(B.zm.BM(e,L,I,c),PWR(B,{detail:c}))break a}else B.Zg(e,{detail:c});e==="drm.sessionlimitexhausted"&&(B.sW("retrydrm",{sessionLimitExhausted:1}),B.G++,KK6(B.zm))}}}; g.M.z$$=function(){var e=this,L=g.X3(this.XM.experiments,"html5_license_constraint_delay"),c=da();L&&c?(L=new g.j9(function(){e.f8();OU(e)},L),g.l(this,L),L.start()):(this.f8(),OU(this))}; g.M.lO=function(e){this.publish("heartbeatparams",e)}; g.M.BD=function(e){this.sW("keystatuses",Mxf(e));var L="auto",c=!1;this.videoData.K&&(L=this.videoData.K.video.quality,c=this.videoData.K.video.isHdr());a:{switch(L){case "highres":case "hd2880":L="UHD2";break;case "hd2160":case "hd1440":L="UHD1";break;case "hd1080":case "hd720":L="HD";break;case "large":case "medium":case "small":case "light":case "tiny":L="SD";break;default:L="";break a}c&&(L+="HDR")}L=A5(e)?Fb(e,L):e.G.includes(L);if(this.Y("html5_enable_vp9_fairplay")){if(c)if(e.T){var I;if((I= this.x0)==null?0:cr(I.X))if((c=this.x0)==null)c=0;else{for(var B=I=void 0,x=g.f(c.K.values()),S=x.next();!S.done;S=x.next())S=S.value,I||(I=saJ(S,"SD")),B||(B=saJ(S,"AUDIO"));c.Bv({sd:I,audio:B});c=I==="output-restricted"||B==="output-restricted"}else c=!L;if(c){this.sW("drm",{dshdr:1});efJ(this.Yk);return}}else{this.videoData.N3||(this.videoData.N3=!0,this.sW("drm",{dphdr:1}),this.GY(!0));return}var h;if((h=this.x0)==null?0:cr(h.X))return}else if(h=e.T&&L,c&&!h){efJ(this.Yk);return}L||Fb(e,"AUDIO")&& Fb(e,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"),e=Mxf(e),this.rI?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.Y("html5_report_fatal_drm_restricted_error_killswitch")||this.BM("drm.keyerror",2,void 0,"info."+e)):(this.rI=!0,this.Zg(new g.hQ("qoe.restart",Object.assign({},{retrydrm:1},e))),h2(this),KK6(this)))}; g.M.pyS=function(){if(!this.videoData.Gm&&this.mediaElement&&!this.isBackground()){var e="0";this.mediaElement.qD()>0&&OP(this.mediaElement)>=5&&this.videoData.Z&&this.videoData.Z.X&&(this.Xp(sP(this.playerState,1)),YVf(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),e="1");eFv(this);var L=this.videoData.Z;e={restartmsg:e,mfmt:!ff(this.videoData),mdrm:!(!(L&&L.videoInfos&&L.videoInfos.length&&L.videoInfos[0].TI)||this.x0),mfmtinfo:!this.videoData.K,prerolls:this.FK()?this.yT.join(","): "0"};if(this.x0){L=this.x0;if(L.K.size<=0){var c="ns;";L.D||(c+="nr;");L=c+="ql."+L.Z.length}else L=Mxf(L.K.values().next().value),L=rr(L);e.drmp=L}var I;Object.assign(e,((I=this.loader)==null?void 0:I.b5())||{});var B;Object.assign(e,((B=this.mediaElement)==null?void 0:B.b5())||{});this.OY.Zg("qoe.start15s",rr(e));this.publish("loadsofttimeout")}}; g.M.SF=function(e){this.videoData.lengthSeconds!==e&&(this.videoData.lengthSeconds=e,OU(this))}; g.M.dh=function(e,L){var c=this;e=e===void 0?!1:e;if(!this.Fn)if(ie("att_s","player_att")||g_("att_s",void 0,"player_att"),this.Y("use_rta_for_player"))(function(){var B,x,S,h;return g.Z(function(R){switch(R.K){case 1:if(!(B=e)){R.Iq(2);break}return g.a(R,g.CMn(),3);case 3:B=!R.X;case 2:if(B)return R.return();g.bn(R,4);x=xE$(c.OY);if(!x)throw Error();S={};return g.a(R,g.V4M((S.cpn=c.videoData.clientPlaybackNonce,S.encryptedVideoId=c.videoData.videoId||"",S),3E4),6);case 6:h=R.X;if(c.Fn)throw Error(); if(!h.challenge)throw g.F7(Error("Not sending attestation ping; no attestation challenge string")),Error();c.Fn=!0;var u=[h.challenge];h.error?u.push("r1c="+h.error):h.webResponse&&u.push("r1a="+h.webResponse);var t;((t=h.adblockReporting)==null?void 0:t.reportingStatus)!==void 0&&u.push("r6a="+h.adblockReporting.reportingStatus);var O;((O=h.adblockReporting)==null?void 0:O.broadSpectrumDetectionResult)!==void 0&&u.push("r6b="+h.adblockReporting.broadSpectrumDetectionResult);x(u.join("&"));g_("att_f", void 0,"player_att");g.DR(R,0);break;case 4:g.wc(R),g_("att_e",void 0,"player_att"),g.AJ(R)}})})().then(function(){L==null||L()}); else{var I=new g.jWf(this.videoData);if("c1a"in I.Ro&&!g.ET.isInitialized()){g_("att_wb",void 0,"player_att");this.H5===2&&Math.random()<.01&&g.F7(Error("Botguard not available after 2 attempts"));if(e)return;if(this.H5<5){g.HT(this.f0);this.H5++;return}}(I=g.HRc(I))?(g_("att_f",void 0,"player_att"),BB6(this.OY,I),this.Fn=!0):g_("att_e",void 0,"player_att")}}; g.M.wP=function(e){e=e===void 0?!1:e;return w7(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.K8()||g.QE(this.videoData))?this.getCurrentTime():this.i4(e)}; g.M.Tw=function(){return this.S6()}; g.M.i4=function(e){return this.w0.i4(e===void 0?!1:e)}; g.M.S6=function(){return this.w0.S6()}; g.M.FF=function(){return this.w0?this.w0.FF():0}; g.M.getStreamTimeOffset=function(){return this.w0?this.w0.getStreamTimeOffset():0}; g.M.LR=function(){var e=0;this.XM.Y("web_player_ss_media_time_offset")&&(e=this.getStreamTimeOffset()===0?this.FF():this.getStreamTimeOffset());return e}; g.M.setPlaybackRate=function(e){var L;this.playbackRate!==e&&x0H(this.n2,(L=this.videoData.Z)==null?void 0:L.videoInfos)&&(this.playbackRate=e,h2(this));this.playbackRate=e;this.mediaElement&&this.mediaElement.setPlaybackRate(e)}; g.M.getPlaybackRate=function(){return this.playbackRate}; g.M.getPlaybackQuality=function(){var e="unknown";if(this.videoData.K&&(e=this.videoData.K.video.quality,e==="auto"&&this.mediaElement)){var L=this.wy();L&&L.videoHeight>0&&(e=v1(L.videoWidth,L.videoHeight))}return e}; g.M.isHdr=function(){return!!(this.videoData.K&&this.videoData.K.video&&this.videoData.K.video.isHdr())}; g.M.sendVideoStatsEngageEvent=function(e,L){var c=this.OY;c.X?(c=N0(c.X,"engage"),c.Gm=e,c.send(L)):L&&L()}; g.M.V9=function(e){return this.OY.V9(e)}; g.M.isAtLiveHead=function(e,L){L=L===void 0?!1:L;return w7(this.videoData)&&(this.qY||L)?this.w0.isAtLiveHead(e):!1}; g.M.t1=function(){var e=this.i4(),L=this.getCurrentTime(),c;(c=!w7(this.videoData))||(c=this.w0,c=!(c.X&&c.X.Z));return c||this.K8()||isNaN(e)||isNaN(L)?0:Math.max(0,e-L)}; g.M.T9=function(e){(this.qY=e)||this.eE.stop();this.videoData.X&&(e?this.videoData.X.resume():Dpc(this.videoData.X));if(this.loader){var L=this.videoData.Y("html5_disable_preload_for_ssdai_with_preroll")&&this.fX()&&this.videoData.isLivePlayback;e&&!L?this.loader.resume():zO(this,!0)}g.E(this.playerState,2)||e?g.E(this.playerState,512)&&e&&this.Xp(vX(this.playerState,512)):this.Xp(sP(this.playerState,512));L=this.OY;L.qoe&&(L=L.qoe,g.rx(L,g.up(L.provider),"stream",[e?"A":"I"]))}; g.M.Ff=function(e){this.OY.Zg("player.exception",rr({n:e.name,m:e.message}))}; g.M.rg=BM(22);g.M.Hc=BM(51);g.M.Hq=function(e){this.OY.Hq(e)}; g.M.p$=function(e){this.OY.p$(e)}; g.M.e7=function(e){this.OY.e7(e)}; g.M.S9=BM(28);g.M.bz=BM(34);g.M.qJ=function(e){this.OY.qJ(e)}; g.M.hX=function(e,L,c,I){this.OY.hX(e,L,c,I)}; g.M.p5=function(){this.sW("hidden",{},!0)}; g.M.PY=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.M.m9=function(){return this.loader?this.loader.m9():!0}; g.M.setLoop=function(e){this.loop=e;this.mediaElement&&!g.R2(this.XM)&&this.mediaElement.setLoop(e)}; g.M.Q6=function(){return this.mediaElement&&!g.R2(this.XM)?this.mediaElement.Q6():this.loop}; g.M.qN=function(e){this.sW("timestamp",{o:e.toString()});this.w0.qN(e)}; g.M.n9=function(e){this.j5.tick(e)}; g.M.K1=function(e){return this.j5.K1(e)}; g.M.SL=function(e){this.j5.SL(e)}; g.M.sW=function(e,L,c){this.OY.sW(e,L,c===void 0?!1:c)}; g.M.Ks=function(e,L,c){this.OY.sW(e,L,c===void 0?!1:c)}; g.M.Zg=function(e){this.OY.Zg(e.errorCode,rr(e.details));e=e.errorCode;if(this.videoData.isLivePlayback&&(e==="qoe.longrebuffer"||e==="qoe.slowseek")||e==="qoe.restart"){e=this.loader?uBJ(this.loader.videoTrack):{};var L,c;this.sW("lasoe",Object.assign(this.loader?uBJ(this.loader.audioTrack):{},(L=this.g_)==null?void 0:(c=L.X)==null?void 0:c.S_()));var I,B;this.sW("lvsoe",Object.assign(e,(I=this.g_)==null?void 0:(B=I.K)==null?void 0:B.S_()))}}; g.M.w4=function(e,L,c){this.OY.w4(e,L,c)}; g.M.IJ=function(e,L,c,I,B,x,S,h){var R;if((R=this.videoData.X)!=null&&R.isLive){var u=L.playerType===2?L:e,t=e.videoData.videoId,O=L.videoData.videoId;if(t&&O){R=this.OY;if(R.qoe){var q=R.qoe,T=e.cpn,W=L.cpn,A=u.videoData.Cj,b=q.provider.videoData.clientPlaybackNonce,J=q.provider.videoData.videoId,w=W!==b&&O!==J;b=T!==b&&t!==J;q.reportStats();q.adCpn&&q.adCpn!==T||(q.adCpn=b?T:"",q.bV=b?t:"",q.adFormat=b?A:void 0,cqn(q,x?4:B?2:0,W,O,I),q.reportStats(),q.adCpn=w?W:"",q.bV=w?O:"",q.adFormat=w?A:void 0, cqn(q,x?5:B?3:1,T,t,c),q.reportStats())}c=e.cpn;if(R.Z.has(c)){if(B=R.Z.get(c),Zp(B,!0).send(),yn(B),c!==R.provider.videoData.clientPlaybackNonce){d0c(B);var C;(C=R.X)==null||j1J(C);R.Z.delete(c)}}else R.sU=R.provider.videoData.clientPlaybackNonce,R.sU&&R.X&&(R.Z.set(R.sU,R.X),Zp(R.X).send(),yn(R.X));C=L.cpn;u=u.videoData;I-=this.LR();if(R.Z.has(C)){I=R.Z.get(C);var y=I.Z&&isNaN(I.B)?mE(I):NaN;I=Q1$(I,!1);isNaN(y)||(I.T=y);I.send()}else I=o1r(R,R.provider,u,I),R.Z.set(C,I),U0M(I,new g.BZ(sP(new g.WX, 8),new g.WX)),$0c(I),(y=R.X)==null||yn(y);R.sU=C;if(this.Y("html5_unify_csi_server_stitched_transition_logging")){if(R=this.j5,y=L.cpn,I=this.videoData.clientPlaybackNonce,L=L.videoData,e=(e.cpn===I?"video":"ad")+"_to_"+(y===I?"video":"ad"),e!=="video_to_ad"){I=e==="ad_to_video"?void 0:L;u=I==null?void 0:I.fN;C={};if(L==null?0:L.j)C.cttAuthInfo={token:L.j,videoId:L.videoId};S&&(C.startTime=S);be(e,C);var P,ev,X;S={targetVideoId:(P=L==null?void 0:L.videoId)!=null?P:"empty_video",targetCpn:y,adVideoId:(ev= I==null?void 0:I.videoId)!=null?ev:"empty_video",adClientPlaybackNonce:(X=u==null?void 0:u.cpn)!=null?X:I==null?void 0:I.clientPlaybackNonce};u&&(S.adBreakType=u.adBreakType,S.adType=u.adType);g.FT(S,e);g0(R,h,e)}}else P=this.j5,X=this.videoData.clientPlaybackNonce,ev=L.videoData,X=(e.cpn===X?"video":"ad")+"_to_"+(L.cpn===X?"video":"ad"),e={},ev.j&&(e.cttAuthInfo={token:ev.j,videoId:ev.videoId}),S&&(e.startTime=S),be(X,e),g.FT({targetVideoId:ev.videoId,targetCpn:L.cpn,isSsdai:!0},X),S||g0(P,h,X)}}else this.logger.X(360717806, "SSTEvent for nonSS")}; g.M.Vu=function(){var e=this.cw,L=e.qb;e.qb=[];return L}; g.M.l_=function(e){this.videoData.Iv=!0;this.Zg(new g.hQ("sabr.fallback",e));this.GY(!0)}; g.M.BL=function(e,L){this.videoData.rj=!0;if(L===void 0||L)this.Zg(new g.hQ("qoe.restart",e)),this.GY(!0);this.videoData.GI()&&this.Y("html5_reload_caption_on_ssdai_fallback")&&this.cw.K$()}; g.M.Ti=function(e){this.sW("sdai",{aftimeout:e});this.Zg(new g.hQ("ad.fetchtimeout",{timeout:e}))}; g.M.yc=function(e,L){this.sW("timelineerror",e);e=new g.hQ("dai.timelineerror",e);L?this.BM("dai.timelineerror",1,"RETRYABLE_ERROR",rr(e.details)):this.Zg(e)}; g.M.w$=function(){return g.up(this.OY.provider)}; g.M.getPlayerSize=function(){return this.PB.getPlayerSize()}; g.M.IF=function(){return this.PB.IF()}; g.M.ZV=function(){return this.j5}; g.M.W1=function(){return this.cw.W1()}; g.M.getVolume=function(){return this.cw.getVolume()}; g.M.s5=function(){return this.cw.s5()}; g.M.isMuted=function(){return this.cw.isMuted()}; g.M.ow=function(){return this.cw.ow()}; g.M.NI=function(){this.jp=!0}; g.M.Y=function(e){return this.XM.Y(e)}; g.M.eD=function(e,L,c,I,B){this.sW("xvt",{m:e,g:L?1:0,tt:c?1:0,np:I?1:0,c:B})}; g.M.Fu=function(){var e;(e=this.loader)==null||e.resume()}; g.M.fX=function(){return g.Fh(this.yT,"ad")}; g.M.LV=function(){var e=this.getCurrentTime(),L=e-this.FF();var c=this.mediaElement?U7(this.mediaElement.im()):0;c=Math.floor(Math.max(c-L,0))+100;var I;return((I=this.loader)==null?0:I.LV(L,c))?(this.sW("sdai",{skipad:1,ct:L.toFixed(3),adj:c.toFixed(3)}),GN(this.videoData)&&this.loader.seek(L+c,{seekSource:89,Ww:"videoplayer_skipServerStitchedAd"}),xr6(this.w0,e),!0):!1}; g.M.oT=function(){return this.XM.oT()}; g.M.vt=function(){if(this.Y("html5_generate_content_po_token"))return this.videoData.Rx||"";this.cw.jc();return this.XM.Ft||""}; g.M.zD=function(){if(this.videoData.videoId)return this.videoData.Bk}; g.M.Am=function(){return this.videoData.videoId}; g.M.vj=function(){return this.cw.nA}; g.M.I3=function(){return this.v3}; g.M.Jb=function(){return this.cw.Jb()}; g.M.qL=function(e,L,c){this.Y("html5_report_seek_source_for_utc_seeks")&&this.Xp(sP(this.playerState,16,c));this.w0.qL(e,L)}; g.M.prefetchKeyPlay=function(){}; g.M.t4=function(){this.w0.t4()}; g.M.e8=function(e,L){var c=this.Y("html5_generate_content_po_token")?this.videoData:void 0;this.cw.e8(e,L,c)}; g.M.F0=function(e,L){this.OY.F0(e,L)}; g.M.uw=function(){return this.OY.uw()}; g.M.W3=function(){return this.videoData.X_}; g.M.jG=function(){return this.cw.jG()}; g.M.FB=function(){return this.cw.FB(this)}; g.M.Nd=function(){this.VI=!0}; g.M.In=function(e){var L;(L=this.loader)==null||L.In(e)};g.z(cnn,Rv);g.z(vc,Mo);vc.prototype.X=function(e){e&&z2(this,this.V.getLoopVideo());this.V.logVisibility(this.element,e)}; vc.prototype.logClick=function(){this.V.logClick(this.element)}; vc.prototype.onLoopChange=function(e){z2(this,e)}; vc.prototype.K=function(e){this.V.setLoopVideo(e)};g.z(Ifv,Rv);g.z(BNc,Rv);g.M=BNc.prototype;g.M.seekToChapterWithAnimation=function(e){var L=this;if(g.Db(this.api)&&!(e<0)){var c=this.api.getVideoData(),I=c.Fk;if(I&&e=0)return;L=~L;g.pZ(this.items,L,0,e);z$(this.menuItems.element,e.element,L)}e.subscribe("size-change",this.xF,this);this.menuItems.publish("size-change")}; g.M.nu=function(e){e.unsubscribe("size-change",this.xF,this);this.We()||(g.i7(this.items,e),this.menuItems.element.removeChild(e.element),this.menuItems.publish("size-change"))}; g.M.xF=function(){this.menuItems.publish("size-change")}; g.M.focus=function(){for(var e=0,L=0;L1&&g.yP(this)}; g.M.mJ=function(){VwT(this);this.z_&&(wPR(this),g.e_(this.element,this.size))}; g.M.zN=function(){var e=this.X.pop();Jnf(this,e,this.X[this.X.length-1],!0)}; g.M.lF=function(e){if(!e.defaultPrevented)switch(e.keyCode){case 27:this.y5();e.preventDefault();break;case 37:this.X.length>1&&this.zN();e.preventDefault();break;case 39:e.preventDefault()}}; g.M.focus=function(){this.X.length&&this.X[this.X.length-1].focus()}; g.M.KS=function(){g.Lr.prototype.KS.call(this);this.j&&this.j.dispose();this.T&&this.T.dispose()};g.z(Z7,g.NE);Z7.prototype.open=function(e,L){this.initialize(e.items)&&this.Fp(L,!!L)}; Z7.prototype.initialize=function(e){g.aq(this.sF);if(e===void 0||e.length===0)return!1;var L=e.length;e=g.f(e);for(var c=e.next();!c.done;c=e.next())this.Yx(c.value,L--);return!0}; Z7.prototype.Yx=function(e,L){e.menuNavigationItemRenderer?NN$(this,e.menuNavigationItemRenderer,L):e.menuServiceItemRenderer&&m$f(this,e.menuServiceItemRenderer,L)};g.z(pp,J2);g.M=pp.prototype;g.M.w3=function(e){e.target!==this.dismissButton.element&&e.target!==this.overflowButton.element&&(this.kX(),this.onClickCommand&&this.V.fS("innertubeCommand",this.onClickCommand))}; g.M.q$=function(){this.enabled=!1;this.D.hide()}; g.M.Q7=function(){return!!this.X&&this.enabled}; g.M.onVideoDataChange=function(e,L){this.H6(L);if(this.X){this.fF();a:if(!this.isCounterfactual){var c,I,B;this.banner.update({title:(c=this.X)==null?void 0:c.title,subtitle:(I=this.X)==null?void 0:I.subtitle,metadata:(B=this.X)==null?void 0:B.metadataText});var x;this.onClickCommand=g.Q((x=this.X)==null?void 0:x.onTap,iF);var S;if(e=g.Q((S=this.X)==null?void 0:S.onOverflow,iF))this.T=g.Q(e,h7N);var h;if((h=this.X)==null?0:h.thumbnailImage){var R,u;S=((R=this.X)==null?void 0:(u=R.thumbnailImage)== null?void 0:u.sources)||[];if(S.length===0)break a;this.thumbnailImage.update({url:S[0].url})}else{var t;if((t=this.X)==null?0:t.thumbnailIconName){var O;this.thumbnailIcon.update({icon:(O=this.X)==null?void 0:O.thumbnailIconName})}}var q;this.shouldShowOverflowButton=!((q=this.X)==null||!q.shouldShowOverflowButton);var T;this.shouldHideDismissButton=!((T=this.X)==null||!T.shouldHideDismissButton)}var W;this.banner.element.setAttribute("aria-label",((W=this.X)==null?void 0:W.a11yLabel)||"");var A; this.He=(A=this.X)==null?void 0:A.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;ZgT(this)}}; g.M.N_M=function(){this.isVisible=!0;ZgT(this)}; g.M.bS$=function(){this.isVisible=!1;ZgT(this)}; g.M.K5=function(){J2.prototype.K5.call(this);this.K&&this.V.logVisibility(this.banner.element,this.isVisible)}; g.M.kX=function(){J2.prototype.kX.call(this,!1);this.K&&this.V.logClick(this.banner.element)}; g.M.nD=function(e){this.j||(this.j=new Z7(this.V),g.l(this,this.j));var L,c;if((L=this.T)==null?0:(c=L.menu)==null?0:c.menuRenderer)this.j.open(this.T.menu.menuRenderer,e.target),e.preventDefault()}; g.M.H6=function(){}; g.M.fF=function(){}; g.M.KS=function(){this.V.RU("suggested_action_view_model");J2.prototype.KS.call(this)};g.z($1,pp); $1.prototype.H6=function(e){var L,c,I;this.productUpsellSuggestedActionViewModel=g.Q((L=e.getWatchNextResponse())==null?void 0:(c=L.playerOverlays)==null?void 0:(I=c.playerOverlayRenderer)==null?void 0:I.suggestedActionViewModel,ioe);var B;if((B=this.productUpsellSuggestedActionViewModel)==null?0:B.content){var x;this.X=g.Q((x=this.productUpsellSuggestedActionViewModel)==null?void 0:x.content,oCN)}var S,h;if(this.K=!!((S=this.productUpsellSuggestedActionViewModel)==null?0:(h=S.loggingDirectives)==null? 0:h.trackingParams)){var R,u;this.V.setTrackingParams(this.banner.element,((R=this.productUpsellSuggestedActionViewModel)==null?void 0:(u=R.loggingDirectives)==null?void 0:u.trackingParams)||null)}var t;this.isCounterfactual=!((t=this.productUpsellSuggestedActionViewModel)==null||!t.isCounterfactualServing)}; $1.prototype.fF=function(){var e=[],L,c=g.f(((L=this.productUpsellSuggestedActionViewModel)==null?void 0:L.ranges)||[]);for(L=c.next();!L.done;L=c.next()){var I=L.value;I&&(L=Number(I.startTimeMilliseconds),I=Number(I.endTimeMilliseconds),isNaN(L)||isNaN(I)||e.push(new g.pC(L,I,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.V.Lb(e)};g.z(pPr,Rv);g.z(jo,Rv);jo.prototype.onVideoDataChange=function(e,L){var c=this;if(!SD(L)&&(e==="newdata"&&j3c(this),this.X&&e==="dataloaded")){this.X=!1;var I;g8(GR(ij(this.api.S(),(I=this.api.getVideoData())==null?void 0:g.xb(I)),function(B){U$v(c,B)}),function(){c.X=!0})}}; jo.prototype.gg=function(){var e=this;if(g.R2(this.api.S())){var L,c=g.bj(this.api.S(),(L=this.api.getVideoData())==null?void 0:g.xb(L));return GR(AR(c),function(I){var B=Yb();n2(B,I);return e.api.gg(B)})}return AR(this.api.gg())};g.z(g.lQ,g.ov);g.M=g.lQ.prototype;g.M.open=function(){g.m4(this.G_,this.K)}; g.M.XC=function(e){E8c(this);var L=this.options[e];L&&(L.element.setAttribute("aria-checked","true"),this.Hw(this.UC(e)),this.Z=e)}; g.M.Ip=function(e){g.aq(this.K);for(var L={},c=!1,I=0;I=0?this.X.playbackRate:1}catch(e){return 1}}; g.M.setPlaybackRate=function(e){this.getPlaybackRate()!==e&&(this.X.playbackRate=e);return e}; g.M.Q6=function(){return this.X.loop}; g.M.setLoop=function(e){this.X.loop=e}; g.M.canPlayType=function(e,L){return this.X.canPlayType(e,L)}; g.M.isPaused=function(){return this.X.paused}; g.M.isSeeking=function(){return this.X.seeking}; g.M.isEnded=function(){return this.X.ended}; g.M.xO=function(){return this.X.muted}; g.M.YQ=function(e){M8();this.X.muted=e}; g.M.MR=function(){return this.X.played||H1([],[])}; g.M.im=function(){try{var e=this.X.buffered}catch(L){}return e||H1([],[])}; g.M.d8=function(){return this.X.seekable||H1([],[])}; g.M.i$=function(){var e=this.X;return e.getStartDate?e.getStartDate():null}; g.M.getCurrentTime=function(){return this.X.currentTime}; g.M.setCurrentTime=function(e){this.X.currentTime=e}; g.M.getDuration=function(){return this.X.duration}; g.M.load=function(){var e=this.X.playbackRate;try{this.X.load()}catch(L){}this.X.playbackRate=e}; g.M.pause=function(){this.X.pause()}; g.M.play=function(){var e=this.X.play();if(!e||!e.then)return null;e.then(void 0,function(){}); return e}; g.M.qD=function(){return this.X.readyState}; g.M.rF=function(){return this.X.networkState}; g.M.n1=function(){return this.X.error?this.X.error.code:null}; g.M.Ku=function(){return this.X.error?this.X.error.message:""}; g.M.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.X instanceof window.HTMLVideoElement&&this.X.getVideoPlaybackQuality)return this.X.getVideoPlaybackQuality();if(this.X){var e=this.X,L=e.webkitDroppedFrameCount;if(e=e.webkitDecodedFrameCount)return{droppedVideoFrames:L||0,totalVideoFrames:e}}return{}}; g.M.YI=function(){return!!this.X.webkitCurrentPlaybackTargetIsWireless}; g.M.eT=function(){return!!this.X.webkitShowPlaybackTargetPicker()}; g.M.togglePictureInPicture=function(){var e=this.X,L=window.document;window.document.pictureInPictureEnabled?this.X!==L.pictureInPictureElement?e.requestPictureInPicture():L.exitPictureInPicture():W1()&&e.webkitSetPresentationMode(e.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.M.YW=function(){var e=this.X;return new g.Pa(e.offsetLeft,e.offsetTop)}; g.M.getSize=function(){return g.LH(this.X)}; g.M.setSize=function(e){g.e_(this.X,e)}; g.M.getVolume=function(){return this.X.volume}; g.M.setVolume=function(e){M8();this.X.volume=e}; g.M.Sf=function(e){this.B[e]||(this.X.addEventListener(e,this.listener),this.B[e]=this.listener)}; g.M.setAttribute=function(e,L){this.X.setAttribute(e,L)}; g.M.removeAttribute=function(e){this.X.removeAttribute(e)}; g.M.hasAttribute=function(e){return this.X.hasAttribute(e)}; g.M.V4=BM(61);g.M.aY=BM(63);g.M.KL=BM(65);g.M.s7=BM(67);g.M.Dq=function(){return uS(this.X)}; g.M.Sq=function(e){g.Y4(this.X,e)}; g.M.tP=function(e){return g.QD(this.X,e)}; g.M.PW=function(){return g.vz(document.body,this.X)}; g.M.audioTracks=function(){var e=this.X;if("audioTracks"in e)return e.audioTracks}; g.M.KS=function(){for(var e=g.f(Object.keys(this.B)),L=e.next();!L.done;L=e.next())L=L.value,this.X.removeEventListener(L,this.B[L]);uc.prototype.KS.call(this)}; g.M.jU=function(e){this.X.disableRemotePlayback=e};g.z(cQ,g.U);g.z(BQ,g.U);BQ.prototype.show=function(){g.U.prototype.show.call(this);this.OW();this.CS.Y("html5_enable_moving_s4n_window")&&g.R2(this.CS.S())&&this.J()}; BQ.prototype.hide=function(){g.U.prototype.hide.call(this);this.delay.stop();this.G.stop()}; BQ.prototype.OW=function(){var e=(0,g.zI)(),L=SWx(this.CS);Ix(this.X,L.bandwidth_samples);Ix(this.T,L.network_activity_samples);Ix(this.Z,L.live_latency_samples);Ix(this.K,L.buffer_health_samples);var c={};L=g.f(Object.entries(L));for(var I=L.next();!I.done;I=L.next()){var B=g.f(I.value);I=B.next().value;B=B.next().value;this.D[I]!==B&&(c[I]=" "+String(B));this.D[I]=B}this.update(c);e=(0,g.zI)()-e>25?5E3:500;this.delay.start(e)}; BQ.prototype.J=function(){this.j?(this.position+=1,this.position>15&&(this.j=!1)):(--this.position,this.position<=0&&(this.j=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.G.start(2E4)};g.z(Ru6,Rv);g.z(xe,g.p);xe.prototype.X=function(){var e=(0,g.zI)()-this.startTime;e=ethis.G[e])&&(this.X=e,this.VY())}; g.M.onCueRangeExit=function(e){var L=FWM(this,e);L&&this.X===e&&this.api.fS("innertubeCommand",L);r0(this);this.X=void 0}; g.M.d3=function(e){this.Z=e}; g.M.ZL=function(){this.VY();this.Z=void 0}; g.M.VY=function(){if(this.X!==void 0){var e=(e=SP(this,this.X))&&e.onCueRangeEnter?go(e.onCueRangeEnter):void 0;var L=SP(this,this.X);a:if(L&&L.additionalTrigger){var c=g.f(L.additionalTrigger);for(var I=c.next();!I.done;I=c.next())if(I=I.value,I.type){var B=void 0,x=void 0;if((B=this.k9[I.type])==null?0:B((x=I.args)!=null?x:{})){c=!0;break a}}c=!1}else c=!0;e&&c&&(this.api.fS("innertubeCommand",e),b_H(this,L),this.G[this.X]!==void 0&&this.G[this.X]++,this.D=!0)}}; g.M.KS=function(){this.timelyActions=this.Z=this.X=this.videoId=void 0;this.G={};this.SX();r0(this);Rv.prototype.KS.call(this)};g.z(gXv,Rv);g.z(hK,Mo);hK.prototype.j=function(e){this.G(e?2:1)}; hK.prototype.K=function(){var e=this.V.getPresentingPlayerType();e===2||e===3?(this.X=!1,this.G_.nu(this)):this.X||(e=this.hasVoiceBoostAudioTrack(),this.setEnabled(e),e=this.Z()===2&&e,z2(this,e),this.G_.Yx(this),this.X=!0)}; hK.prototype.KS=function(){this.G_.nu(this);Mo.prototype.KS.call(this)};g.z(Rx,Rv);Rx.prototype.getVoiceBoostUserPreference=function(){return this.X}; Rx.prototype.setVoiceBoostUserPreference=function(e){this.api.sW("vb_set",{pref:e});g.bS("yt-player-voice-boost",e);e!==this.X&&(this.X=e,this.updateEnvironmentData(),this.hasVoiceBoostAudioTrack()&&this.api.m5())}; Rx.prototype.hasVoiceBoostAudioTrack=function(){var e,L,c=(e=this.api.getVideoData())==null?void 0:(L=e.Z)==null?void 0:L.X;return c?jW(c,function(I){var B;return((B=I.audio)==null?void 0:B.K)===!0}):!1}; Rx.prototype.updateEnvironmentData=function(){this.api.S().je=this.X};var Z_H=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.z(OV,Rv);OV.prototype.KS=function(){this.T&&(g.hF(this.T),this.T=void 0);Rv.prototype.KS.call(this)}; OV.prototype.jc=function(){(this.K?!this.X:this.Z)&&Tb(this)}; OV.prototype.Aa=function(e,L,c){var I=this;if(wev(e)){var B=c||"";if(this.X)L=WQ(this,B),J4c(e,L);else{var x=new g.rk;L.push(x.promise);this.B.promise.then(function(){var S=WQ(I,B);J4c(e,S);x.resolve()})}}}; OV.prototype.HB=function(e){var L=this;if(this.K||this.Z)e.Rx=WQ(this,e.videoId),this.X||(this.G=new Ri,this.B.promise.then(function(){L.j5.K1("pot_if");e.Rx=WQ(L,e.videoId)}))};g.z(g.zb,g.U);g.zb.prototype.select=function(){this.api.zF(this.suggestion.videoId,this.suggestion.sessionData,this.suggestion.playlistId,void 0,void 0,this.suggestion.Yp||void 0)&&this.api.logClick(this.element)}; g.zb.prototype.onClick=function(e){if(g.Uh(this.api.S())&&this.api.Y("web_player_log_click_before_generating_ve_conversion_params")){this.api.logClick(this.element);var L=this.suggestion.Pv(),c={};g.PS(this.api,c);L=g.WO(L,c);g.v8(L,this.api,e)}else g.s4(e,this.api,this.K,this.suggestion.sessionData||void 0)&&this.select()}; g.zb.prototype.onKeyPress=function(e){switch(e.keyCode){case 13:case 32:e.defaultPrevented||(this.select(),e.preventDefault())}}; g.zb.prototype.onVideoDataChange=function(){var e=this.api.getVideoData(),L=this.api.S();this.K=e.xx?!1:L.G};g.z(sV,g.U);sV.prototype.KS=function(){this.hide();g.fv(this.G);g.cs(this.stills);this.stills.length=0;this.Z&&this.Z.removeEventListener("click",this.K);this.X&&this.X.removeEventListener("click",this.K);g.U.prototype.KS.call(this)}; sV.prototype.K=function(e){this.J&&this.J(e)}; sV.prototype.onVideoDataChange=function(){this.videoData=this.player.getVideoData(1);var e,L,c,I,B;var x=(((e=this.videoData)==null?0:(L=e.suggestions)==null?0:L.length)?(c=this.videoData)==null?void 0:c.suggestions:((I=this.videoData)==null?0:g.zN(I))?[(B=this.videoData)==null?void 0:g.zN(B)]:[]).slice(0,12);if((e=this.D)&&this.T&&this.j)if(g.Ml(e),x.length)for(this.stills.length>x.length&&g.cs(this.stills.splice(x.length)),this.stills.length=x.length,L=0;L=0;e--)this.features[e].dispose();this.features.length=0;g.p.prototype.KS.call(this)};EXx.prototype.reset=function(){this.X=this.K=NaN};g.M=Xer.prototype;g.M.reset=function(){zp(this.timerName)}; g.M.tick=function(e,L){AD(e,L,this.timerName)}; g.M.K1=function(e){return Gp(e,void 0,this.timerName)}; g.M.SL=function(e){g.px(e,void 0,this.timerName)}; g.M.infoGel=function(e){g.FT(e,this.timerName)};g.z(nXH,g.Yg);g.M=nXH.prototype;g.M.g$=function(e){return this.loop||!!e||this.index+1=0}; g.M.setShuffle=function(e){this.shuffle=e;e=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var L=0;L0)||d0(this,1,!0)}; g.M.Z4=function(){this.j=!0;this.X.j6(this.B);this.B=this.X.C(document,"mouseup",this.Sh)}; g.M.Sh=function(){this.j=!1;d0(this,8,!1);this.X.j6(this.B);this.B=this.X.C(this.target,"mousedown",this.Z4)}; g.M.e4=function(e){if(e=(e=e.changedTouches)&&e[0])this.k9=e.identifier,this.X.j6(this.J),this.J=this.X.C(this.target,"touchend",this.bF,void 0,!0),d0(this,1024,!0)}; g.M.bF=function(e){if(e=e.changedTouches)for(var L=0;L1280||B>720)if(L=I.j9("maxresdefault.jpg"))break;if(x>640||B>480)if(L=I.j9("maxresdefault.jpg"))break;if(x>320||B>180)if(L=I.j9("sddefault.jpg")||I.j9("hqdefault.jpg")||I.j9("mqdefault.jpg"))break;if(L=I.j9("default.jpg"))break}g.z3(e)&&(e=new Image,e.addEventListener("load", function(){Rqn()}),e.src=L?L:"",this.api.ZV().tick("ftr")); this.G.style.backgroundImage=L?"url("+L+")":""};g.z(g.Km,g.U);g.Km.prototype.resize=function(){}; g.Km.prototype.K=function(e){var L=this;this.Z=!1;Zyf(this);var c=e.i_,I=this.api.S();c!=="GENERIC_WITHOUT_LINK"||I.j?c==="TOO_MANY_REQUESTS"?(I=this.api.getVideoData(),this.Hw(ew(this,"TOO_MANY_REQUESTS_WITH_LINK",I.Pv(),void 0,void 0,void 0,!1))):c!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||I.j?this.api.S().Y("html5_enable_bandaid_error_screen")&&c==="HTML5_SPS_UMP_STATUS_REJECTED"&&!I.j?(I=I.hostLanguage,e="//support.google.com/youtube?p=videoError",I&&(e=g.WO(e,{hl:I})),this.Hw(ew(this,"HTML5_SPS_UMP_STATUS_REJECTED", e))):this.api.S().Y("enable_adb_handling_in_sabr")&&c==="BROWSER_OR_EXTENSION_ERROR"&&!I.j?(I=I.hostLanguage,e="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",I&&(e=g.WO(e,{hl:I})),this.Hw(ew(this,"BROWSER_OR_EXTENSION_ERROR",e))):this.Hw(g.Ye(e.errorMessage)):this.Hw(ew(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(e=I.hostLanguage,c="//support.google.com/youtube/?p=player_error1",e&&(c=g.WO(c, {hl:e})),this.Hw(ew(this,"GENERIC_WITH_LINK_AND_CPN",c,!0)),I.Cf&&!I.G&&yMf(this,function(x){if(g.s4(x,L.api,!to(L.api.S()))){x={as3:!1,html5:!0,player:!0,cpn:L.api.getVideoData().clientPlaybackNonce};var S=L.api;S.Kb("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:x});S.isFullscreen()&&S.toggleFullscreen()}})); if(this.Z){var B=this.q0("ytp-error-link");B&&(this.api.createClientVe(B,this,216104),this.api.logVisibility(B,!0),yMf(this,function(){L.api.logClick(B)}))}}; var mPn=/([^<>]+)<\/a>/;g.z(pbT,g.U);pbT.prototype.Rh=function(e,L,c){c=c===void 0?!1:c;switch(L){case 1:Lg(this,e,this.Z,c);break;case 2:Lg(this,e,this.G,c);break;case 3:Lg(this,e,this.X,c);break;case 4:Lg(this,e,this.K,c)}};g.z($Pc,g.U);g.M=$Pc.prototype;g.M.onClick=function(e){this.innertubeCommand?(this.V.fS("innertubeCommand",this.innertubeCommand),e.preventDefault()):g.s4(e,this.V,!0);this.V.logClick(this.element)}; g.M.onVideoDataChange=function(e,L){Hyv(this,L);this.mZ&&l3n(this,this.mZ)}; g.M.LD=function(e){var L=this.V.getVideoData();this.videoId!==L.videoId&&Hyv(this,L);this.X&&l3n(this,e.state);this.mZ=e.state}; g.M.Fp=function(){this.fade.show();this.V.publish("paidcontentoverlayvisibilitychange",!0);this.V.logVisibility(this.element,!0)}; g.M.y5=function(){this.fade.hide();this.V.publish("paidcontentoverlayvisibilitychange",!1);this.V.logVisibility(this.element,!1)};g.z(cP,g.U);cP.prototype.hide=function(){this.X.stop();this.message.style.display="none";g.U.prototype.hide.call(this)}; cP.prototype.onStateChange=function(e){this.Oq(e.state)}; cP.prototype.Oq=function(e){if(g.E(e,128)||this.api.I3())var L=!1;else{var c;L=this.api.Y("web_watch_enable_multiview_manager")&&((c=this.api.getVideoData())==null?0:SD(c))?!1:g.E(e,16)||g.E(e,1)?!0:!1}L?this.X.start():this.hide()}; cP.prototype.K=function(){this.message.style.display="block"};g.z(I3,g.Lr);I3.prototype.onMutedAutoplayChange=function(e){this.Z&&(e?(PKn(this),this.Fp()):(this.X&&this.logClick(),this.y5()))}; I3.prototype.X7=function(e){this.api.isMutedByMutedAutoplay()&&g.or(e,2)&&this.y5()}; I3.prototype.onClick=function(){this.api.unMute();this.logClick()}; I3.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.z(g.BP,g.zn);g.M=g.BP.prototype;g.M.init=function(){var e=this.api,L=e.getPlayerStateObject();this.Pi=e.getPlayerSize();this.Xp(L);this.N2();this.Nx();this.api.publish("basechromeinitialized",this);this.fQ()&&this.api.publish("standardControlsInitialized")}; g.M.onVideoDataChange=function(e,L){var c=this.DE!==L.videoId;if(c||e==="newdata")e=this.api,e.isFullscreen()||(this.Pi=e.getPlayerSize());c&&(this.DE=L.videoId,c=this.jk,c.Ve=3E3,d0(c,512,!0),this.N2());this.api.Y("web_render_jump_buttons")&&L.showSeekingControls&&(this.s1=572)}; g.M.TT_=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.M.Mf=function(){var e=this.api.G8()&&this.api.Ph(),L=this.api.lA();return this.Wx||e||this.Us||L}; g.M.DC=function(){var e=!this.Mf();g.cY(this.api.getRootNode(),"ytp-menu-shown",!e)}; g.M.xn=function(e){try{if(!g.vz(this.api.getRootNode(),e))return!1}catch(L){return!1}for(;e&&!pUr(e);)e=e===this.api.getRootNode()?null:e.parentElement||null;return!!e}; g.M.Qv=function(e){var L=this.api.getRootNode();g.cY(L,"ytp-autohide",e);g.cY(L,"ytp-autohide-active",!0);this.eP.start(e?250:100);e&&(this.Ii=!1,g.eZ(L,"ytp-touch-mode"));this.tU=!e;this.api.mW(!e);this.api.Y("delhi_modern_web_player")&&this.api.publish("autohideupdate",e)}; g.M.w2=function(){var e=this.api.getRootNode();g.cY(e,"ytp-autohide-active",!1)}; g.M.P4w=function(){this.hp=!0}; g.M.M6l=function(e){if(this.api.S().Y("player_doubletap_to_seek")||this.api.S().T)this.hp=!1,this.sb&&this.j6(this.sb),this.WJ===0&&o3(this,e)?(this.Im(),this.YO.start(),this.sb=this.C(this.api.LS(),"touchmove",this.P4w,void 0,!0)):this.YO.stop();EFc(this)&&o3(this,e)&&!this.api.S().T&&dPn(this);var L=this.GC.Wq();if(!g.Uh(this.api.S())&&lC&&Xbx(this,e))L&&e.preventDefault();else if(this.Ii=!0,g.Y4(this.api.getRootNode(),"ytp-touch-mode"),this.jk.lZ(),this.api.S().Y("player_doubletap_to_seek")||this.api.S().T)if(L= this.api.getPlayerStateObject(),!(!this.api.Xk()||g.E(L,2)&&g.$b(this.api)||g.E(L,64))){L=Date.now()-this.XW;this.WJ+=1;if(L<=350){this.Hr=!0;L=this.api.getPlayerSize().width/3;var c=this.api.getRootNode().getBoundingClientRect(),I=e.targetTouches[0].clientX-c.left;c=e.targetTouches[0].clientY-c.top;var B=(this.WJ-1)*10;I>0&&IL*2&&I=650,I=e.width<528;this.jk.resize();g.cY(L,"ytp-fullscreen",this.api.isFullscreen());g.cY(L,"ytp-large-width-mode",c);this.api.Y("delhi_modern_web_player")?g.cY(L,"ytp-xsmall-width-mode",I):g.cY(L,"ytp-small-mode",this.ge());g.cY(L,"ytp-tiny-mode",this.nP());g.cY(L,"ytp-big-mode",this.TV());this.Ml&&this.Ml.resize(e)}; g.M.X7=function(e){this.Xp(e.state);this.N2()}; g.M.uj=BM(3);g.M.oB=function(){var e=!!this.DE&&!this.api.Va()&&!this.Ba,L=this.api.getPresentingPlayerType()===2,c=this.api.S();return L?(L=jP(this.api.qx()),e&&(L&&L.player?e=(e=L.player.getVideoData(2))?e.isListed&&!g.rw(L.player.S()):!1:(Ir("showInfoBarDuringAd: this is null"),e=!1)),e):e&&(c.qk||this.api.isFullscreen()||c.Sn)}; g.M.N2=function(){var e=this.oB();this.Ht!==e&&(this.Ht=e,g.cY(this.api.getRootNode(),"ytp-hide-info-bar",!e))}; g.M.Xp=function(e){var L=e.isCued()||this.api.FK()&&this.api.getPresentingPlayerType()!==3;L!==this.isCued&&(this.isCued=L,this.aA&&this.j6(this.aA),this.aA=this.C(this.api.LS(),"touchstart",this.M6l,void 0,L));var c=this.jk,I=e.isPlaying()&&!g.E(e,32)||this.api.fK();d0(c,128,!I);c=this.jk;I=this.api.getPresentingPlayerType()===3;d0(c,256,I);c=this.api.getRootNode();g.E(e,2)?I=[Yx.ENDED]:(I=[],g.E(e,8)?I.push(Yx.PLAYING):g.E(e,4)&&I.push(Yx.PAUSED),g.E(e,1)&&!g.E(e,32)&&I.push(Yx.BUFFERING),g.E(e, 32)&&I.push(Yx.SEEKING),g.E(e,64)&&I.push(Yx.UNSTARTED));g.E9(this.wV,I)||(g.L1(c,this.wV),this.wV=I,g.ns(c,I));I=this.api.S();var B=g.E(e,2);a:{var x=this.api.S();var S=x.controlsType;switch(S){case "2":case "0":x=!1;break a}x=S==="3"&&!g.E(e,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:GcL(jP(this.api.qx())))||this.api.lA()||g.Uh(x)&&this.api.getPresentingPlayerType()===2?!1:!0}g.cY(c,"ytp-hide-controls",!x);g.cY(c,"ytp-native-controls",I.controlsType==="3"&&!L&&!B&&!this.Us);g.E(e, 128)&&!g.Uh(I)?(this.Ml||(this.Ml=new g.Km(this.api),g.l(this,this.Ml),g.Uq(this.api,this.Ml.element,4)),this.Ml.K(e.lz),this.Ml.show()):this.Ml&&(this.Ml.dispose(),this.Ml=null)}; g.M.jr=function(){return this.api.G8()&&this.api.Ph()?(this.api.BB(!1,!1),!0):this.api.Va()?(g.jD(this.api,!0),!0):!1}; g.M.onMutedAutoplayChange=function(e){this.Us=e;this.DC()}; g.M.TV=function(){return!1}; g.M.ge=function(){return!this.TV()&&(this.api.getPlayerSize().width=0&&L.left>=0&&L.bottom>L.top&&L.right>L.left?L:null;L=this.size;e=e.clone();L=L.clone();I&&(S=L,B=5,(B&65)==65&&(e.x=I.right)&&(B&=-2),(B&132)==132&&(e.y=I.bottom)&&(B&=-5),e.xI.right&&(S.width=Math.min(I.right-e.x,x+S.width-I.left),S.width=Math.max(S.width,0))),e.x+S.width>I.right&&B&1&&(e.x=Math.max(I.right-S.width,I.left)),e.yI.bottom&&(S.height=Math.min(I.bottom-e.y,x+S.height-I.top),S.height=Math.max(S.height,0))),e.y+S.height>I.bottom&&B&4&&(e.y=Math.max(I.bottom-S.height,I.top)));I=new g.$r(0,0,0,0);I.left=e.x;I.top=e.y;I.width= L.width;I.height=L.height;g.Xt(this.element,new g.Pa(I.left,I.top));g.fv(this.G);this.G.C(c8(this),"contextmenu",this.lYM);this.G.C(this.V,"fullscreentoggled",this.onFullscreenToggled);this.G.C(this.V,"pageTransition",this.Xm)}; g.M.lYM=function(e){if(!e.defaultPrevented){var L=Mx(e);g.vz(this.element,L)||this.y5();this.V.S().disableNativeContextMenu&&e.preventDefault()}}; g.M.onFullscreenToggled=function(){this.y5();vhc(this)}; g.M.Xm=function(){this.y5()};g.z(Ti,g.U);Ti.prototype.onClick=function(){var e=this,L,c,I,B;return g.Z(function(x){if(x.K==1)return L=e.api.S(),c=e.api.getVideoData(),I=e.api.getPlaylistId(),B=L.getVideoUrl(c.videoId,I,void 0,!0),g.a(x,FYH(e,B),2);x.X&&A3r(e);e.api.logClick(e.element);g.AJ(x)})}; Ti.prototype.OW=function(){this.updateValue("icon",{U:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{U:"path",zy:!0,W:"ytp-svg-fill",N:{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","Copy link");this.visible=fYx(this);g.cY(this.element,"ytp-copylink-button-visible",this.visible); this.i5(this.visible);this.tooltip.A9();this.api.logVisibility(this.element,this.visible&&this.B)}; Ti.prototype.vy=function(e){g.U.prototype.vy.call(this,e);this.api.logVisibility(this.element,this.visible&&e)}; Ti.prototype.KS=function(){g.U.prototype.KS.call(this);g.eZ(this.element,"ytp-copylink-button-visible")};g.z(bYc,g.U);g.M=bYc.prototype;g.M.show=function(){g.U.prototype.show.call(this);g.HT(this.K)}; g.M.hide=function(){this.G.stop();this.Z=0;this.q0("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.eZ(this.element,"ytp-chapter-seek");g.eZ(this.element,"ytp-time-seeking");g.U.prototype.hide.call(this)}; g.M.eQ=function(e,L,c,I){this.Z=e===this.T?this.Z+I:I;this.T=e;var B=e===-1?this.D:this.J;B&&this.V.logClick(B);this.j?this.K.stop():g.PT(this.K);this.G.start();this.element.setAttribute("data-side",e===-1?"back":"forward");var x=3*this.V.LS().getPlayerSize().height;B=this.V.LS().getPlayerSize();B=B.width/3-3*B.height;this.X.style.width=x+"px";this.X.style.height=x+"px";e===1?(this.X.style.left="",this.X.style.right=B+"px"):e===-1&&(this.X.style.right="",this.X.style.left=B+"px");var S=x*2.5;x=S/ 2;var h=this.q0("ytp-doubletap-ripple");h.style.width=S+"px";h.style.height=S+"px";e===1?(e=this.V.LS().getPlayerSize().width-L+Math.abs(B),h.style.left="",h.style.right=e-x+"px"):e===-1&&(e=Math.abs(B)+L,h.style.right="",h.style.left=e-x+"px");h.style.top="calc((33% + "+Math.round(c)+"px) - "+x+"px)";if(c=this.q0("ytp-doubletap-ripple"))c.classList.remove("ytp-doubletap-ripple"),c.classList.add("ytp-doubletap-ripple");iYM(this,this.j?this.Z:I)}; g.M.M2=function(e,L,c){if(c=c===void 0?null:c){var I=e===-1?this.D.visualElement:this.J.visualElement;c={seekData:c};var B=g.qy();B&&g.Hu($g)(void 0,B,I,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",c,void 0)}this.Z=e===this.T?this.Z+L:L;this.T=e;I=this.V.LS().getPlayerSize();this.j?this.K.stop():g.PT(this.K);this.G.start();this.element.setAttribute("data-side",e===-1?"back":"forward");g.Y4(this.element,"ytp-time-seeking");this.X.style.width="110px";this.X.style.height="110px";c=I.width*.1-15;e=== 1?this.pS?(this.X.style.right=c+"px",this.X.style.left=""):(this.X.style.right="",this.X.style.left=I.width*.8-30+"px"):e===-1&&(this.pS?(this.X.style.right="",this.X.style.left=c+"px"):(this.X.style.right="",this.X.style.left=I.width*.1-15+"px"));this.X.style.top=I.height*.5+15+"px";iYM(this,this.j?this.Z:L)}; g.M.Yi=function(e,L,c){c=c===void 0?null:c;g.PT(this.K);this.G.start();switch(e){case -1:e="back";break;case 1:e="forward";break;default:e=""}this.element.setAttribute("data-side",e);this.X.style.width="0";this.X.style.height="0";g.Y4(this.element,"ytp-chapter-seek");this.updateValue("seekText",L);this.updateValue("seekTime","");L=this.q0("ytp-seek-icon");if(c){a:if(c){switch(c){case "PREMIUM_STANDALONE":c=Dxf();break a;case "PREMIUM_STANDALONE_CAIRO":c=wIR();break a}c=void 0}else c=null;this.updateValue("seekIcon", c);L.style.display="inline-block"}else L.style.display="none"};g.z(Gzx,J2);g.M=Gzx.prototype;g.M.zs=function(e){this.Y9||(this.Y9=new Z7(this.V),g.l(this,this.Y9));var L,c;if((L=this.sY)==null?0:(c=L.menu)==null?0:c.menuRenderer)this.Y9.open(this.sY.menu.menuRenderer,e.target),e.preventDefault()}; g.M.Q7=function(){return!!this.X}; g.M.DH=function(){return!!this.X}; g.M.w3=function(e){e.target===this.overflowButton.element?e.preventDefault():(this.Bw&&this.V.fS("innertubeCommand",this.Bw),this.kX(!1))}; g.M.q$=function(){this.kX(!0);var e,L;((e=this.X)==null?0:(L=e.bannerData)==null?0:L.dismissedStatusKey)&&this.Cf.push(this.X.bannerData.dismissedStatusKey);this.BP()}; g.M.hh=function(){this.BP();zi(this)}; g.M.MtY=function(e){var L=this,c;if(e.id!==((c=this.X)==null?void 0:c.identifier)){this.BP();c=g.f(this.k9);for(var I=c.next();!I.done;I=c.next()){var B=I.value,x=void 0,S=void 0;if((I=(x=B)==null?void 0:(S=x.bannerData)==null?void 0:S.itemData)&&B.identifier===e.id){S=x=void 0;var h=((x=B)==null?void 0:(S=x.bannerData)==null?void 0:S.dismissedStatusKey)||"";if(this.Cf.includes(h))return;this.X=B;this.banner.element.setAttribute("aria-label",I.accessibilityLabel||"");I.trackingParams&&(this.G=!0, this.V.setTrackingParams(this.badge.element,I.trackingParams));this.show();this.D.show();wB(this);this.Ve.i5(!I.stayInApp);ZYH(this);kzJ(this);M$(this);this.Bw=g.Q(I.onTapCommand,iF);if(B=g.Q(I.menuOnTap,iF))this.sY=g.Q(B,h7N);B=void 0;this.banner.update({thumbnail:(B=(I.thumbnailSources||[])[0])==null?void 0:B.url,title:I.productTitle,price:I.priceReplacementText?I.priceReplacementText:I.price,salesOriginalPrice:J3J(this),priceDropReferencePrice:VQM(this),promotionText:wGR(this),priceA11yText:CYJ(this), affiliateDisclaimer:I.affiliateDisclaimer,vendor:aYn(this)});h=S=x=B=void 0;((B=I)==null?0:(x=B.hiddenProductOptions)==null?0:x.showDropCountdown)&&((S=I)==null?0:(h=S.hiddenProductOptions)==null?0:h.dropTimestampMs)&&(this.RT=new g.j9(function(){y3c(L)},1E3),this.Ve.hide(),this.countdownTimer.show(),y3c(this)); this.V.Y("web_player_enable_featured_product_banner_exclusives_on_desktop")&&ghM(this)&&(this.Q5=new g.j9(function(){DIR(L)},1E3),DIR(this))}}this.V.getRootNode()&&g.Y4(this.V.getRootNode(),"ytp-featured-product-shown")}}; g.M.BP=function(){this.X&&(this.X=void 0,this.z8(),this.V.getRootNode()&&g.eZ(this.V.getRootNode(),"ytp-featured-product-shown"))}; g.M.onVideoDataChange=function(e,L){var c=this;e==="dataloaded"&&zi(this);var I,B,x;e=g.Q((I=L.getWatchNextResponse())==null?void 0:(B=I.playerOverlays)==null?void 0:(x=B.playerOverlayRenderer)==null?void 0:x.productsInVideoOverlayRenderer,S3J);this.overflowButton.show();this.dismissButton.hide();var S=e==null?void 0:e.featuredProductsEntityKey;this.trendingOfferEntityKey=e==null?void 0:e.trendingOfferEntityKey;this.k9.length||(mIc(this,S),M$(this));var h;(h=this.RI)==null||h.call(this);this.RI=g.vN.subscribe(function(){mIc(c, S);M$(c)})}; g.M.KS=function(){zi(this);ZYH(this);kzJ(this);J2.prototype.KS.call(this)};g.z(lYx,g.U);lYx.prototype.onClick=function(){this.V.logClick(this.element,this.K)};g.z(PYv,g.Lr);g.M=PYv.prototype;g.M.show=function(){g.Lr.prototype.show.call(this);this.V.publish("infopaneldetailvisibilitychange",!0);this.V.logVisibility(this.element,!0);QBc(this,!0)}; g.M.hide=function(){g.Lr.prototype.hide.call(this);this.V.publish("infopaneldetailvisibilitychange",!1);this.V.logVisibility(this.element,!1);QBc(this,!1)}; g.M.getId=function(){return this.G}; g.M.fR=function(){return this.itemData.length}; g.M.onVideoDataChange=function(e,L){if(L){var c,I,B,x;this.update({title:((c=L.sE)==null?void 0:(I=c.title)==null?void 0:I.content)||"",body:((B=L.sE)==null?void 0:(x=B.bodyText)==null?void 0:x.content)||""});var S;e=((S=L.sE)==null?void 0:S.trackingParams)||null;this.V.setTrackingParams(this.element,e);S=g.f(this.itemData);for(e=S.next();!e.done;e=S.next())e.value.dispose();this.itemData=[];var h;if((h=L.sE)==null?0:h.ctaButtons)for(L=g.f(L.sE.ctaButtons),h=L.next();!h.done;h=L.next())if(h=g.Q(h.value, Lje))h=new lYx(this.V,h,this.X),h.Hd&&(this.itemData.push(h),h.jl(this.items))}}; g.M.KS=function(){this.hide();g.Lr.prototype.KS.call(this)};g.z(EhT,g.U);g.M=EhT.prototype;g.M.onVideoDataChange=function(e,L){UIM(this,L);this.mZ&&KYn(this,this.mZ)}; g.M.Kx=function(e){var L=this.V.getVideoData();this.videoId!==L.videoId&&UIM(this,L);KYn(this,e.state);this.mZ=e.state}; g.M.hL=function(e){(this.Z=e)?this.hide():this.X&&this.show()}; g.M.aS=function(){this.K||this.Fp();this.showControls=!0}; g.M.h5=function(){this.K||this.y5();this.showControls=!1}; g.M.Fp=function(){var e,L=(e=this.V)==null?void 0:e.getPlayerSize();e=L.width<380;var c;L=L.height<(((c=this.V)==null?0:c.isEmbedsShortsMode())?400:280);var I,B;(((I=this.V)==null?0:I.getPlayerStateObject().isCued())||((B=this.V)==null?0:g.E(B.getPlayerStateObject(),1024)))&&e&&L||!this.X||this.Z||(this.fade.show(),this.V.publish("infopanelpreviewvisibilitychange",!0),this.V.logVisibility(this.element,!0))}; g.M.y5=function(){this.X&&!this.Z&&(this.fade.hide(),this.V.publish("infopanelpreviewvisibilitychange",!1),this.V.logVisibility(this.element,!1))}; g.M.Jmd=function(){this.K=!1;this.showControls||this.y5()};var uoU={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(uoU).reduce(function(e,L){e[uoU[L]]=L;return e},{}); var t_h={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(t_h).reduce(function(e,L){e[t_h[L]]=L;return e},{}); var OH9={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(OH9).reduce(function(e,L){e[OH9[L]]=L;return e},{});var qdL,TRZ;qdL=[{option:"#fff",text:"White"},{option:"#ff0",text:"Yellow"},{option:"#0f0",text:"Green"},{option:"#0ff",text:"Cyan"},{option:"#00f",text:"Blue"},{option:"#f0f",text:"Magenta"},{option:"#f00",text:"Red"},{option:"#080808",text:"Black"}];TRZ=[{option:0,text:sG(0)},{option:.25,text:sG(.25)},{option:.5,text:sG(.5)},{option:.75,text:sG(.75)},{option:1,text:sG(1)}]; g.Fz=[{option:"fontFamily",text:"Font family",options:[{option:1,text:"Monospaced Serif"},{option:2,text:"Proportional Serif"},{option:3,text:"Monospaced Sans-Serif"},{option:4,text:"Proportional Sans-Serif"},{option:5,text:"Casual"},{option:6,text:"Cursive"},{option:7,text:"Small Capitals"}]},{option:"color",text:"Font color",options:qdL},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:sG(.5)},{option:-1,text:sG(.75)},{option:0,text:sG(1)},{option:1,text:sG(1.5)},{option:2, text:sG(2)},{option:3,text:sG(3)},{option:4,text:sG(4)}]},{option:"background",text:"Background color",options:qdL},{option:"backgroundOpacity",text:"Background opacity",options:TRZ},{option:"windowColor",text:"Window color",options:qdL},{option:"windowOpacity",text:"Window opacity",options:TRZ},{option:"charEdgeStyle",text:"Character edge style",options:[{option:0,text:"None"},{option:4,text:"Drop Shadow"},{option:1,text:"Raised"},{option:2,text:"Depressed"},{option:3,text:"Outline"}]},{option:"textOpacity", text:"Font opacity",options:[{option:.25,text:sG(.25)},{option:.5,text:sG(.5)},{option:.75,text:sG(.75)},{option:1,text:sG(1)}]}];var WsN=[27,9,33,34,13,32,187,61,43,189,173,95,79,87,67,80,78,75,70,65,68,87,83,107,221,109,219];g.z(I_$,g.zn);g.M=I_$.prototype; g.M.K3=function(e){e.repeat||(this.Z.AP=!1);var L=!1,c=e.keyCode,I=Mx(e),B=!e.altKey&&!e.ctrlKey&&!e.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||WsN.includes(c)),x=!1,S=!1,h=this.api.S();e.defaultPrevented?(B=!1,S=!0):h.pj&&!this.api.isMutedByEmbedsMutedAutoplay()&&(B=!1);if(c===9)L=!0;else{if(I)switch(c){case 32:case 13:if(I.tagName==="BUTTON"||I.tagName==="A"||I.tagName==="INPUT")L=!0,B=!1;else if(B){var R=I.getAttribute("role");!R||R!=="option"&&R!=="button"&&R.indexOf("menuitem")!==0|| (L=!0,I.click(),x=!0)}break;case 37:case 39:case 36:case 35:L=I.getAttribute("role")==="slider";break;case 38:case 40:R=I.getAttribute("role"),I=c===38?I.previousSibling:I.nextSibling,R==="slider"?L=!0:B&&(R==="option"?(I&&I.getAttribute("role")==="option"&&I.focus(),x=L=!0):R&&R.indexOf("menuitem")===0&&(I&&I.hasAttribute("role")&&I.getAttribute("role").indexOf("menuitem")===0&&I.focus(),x=L=!0))}if(B&&!x)switch(c){case 38:x=Math.min(this.api.getVolume()+5,100);hn(this.wq,x,!1);this.api.setVolume(x); S=x=!0;break;case 40:x=Math.max(this.api.getVolume()-5,0);hn(this.wq,x,!0);this.api.setVolume(x);S=x=!0;break;case 36:this.api.Xk()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),S=x=!0);break;case 35:this.api.Xk()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),S=x=!0)}}L&&fg(this,!0);(L||S)&&this.jk.lZ();(x||B&&this.handleGlobalKeyDown(c,e.shiftKey,e.ctrlKey,e.altKey,e.metaKey,e.key,e.code,e.repeat))&&e.preventDefault();h.J&&(e={keyCode:e.keyCode, altKey:e.altKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey,handled:e.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.oy("onKeyPress",e))}; g.M.Zr=function(e){var L=e.keyCode;(!this.api.Y("web_player_spacebar_control_bugfix")||this.api.Y("web_player_spacebar_control_bugfix")&&!this.Z.mG)&&this.handleGlobalKeyUp(L,e.shiftKey,e.ctrlKey,e.altKey,e.metaKey,e.key,e.code)&&e.preventDefault()}; g.M.handleGlobalKeyUp=function(e,L,c,I,B,x,S){this.api.publish("keyboardserviceglobalkeyup",{keyCode:e,shiftKey:L,ctrlKey:c,altKey:I,metaKey:B,key:x,code:S});L=!1;if(this.Z.AP)return L;(x=g.Q4(this.api.qx()))&&(x=x.yX)&&x.z_&&(x.zU(e),L=!0);switch(e){case 9:fg(this,!0);L=!0;break;case 32:if(this.api.Y("web_speedmaster_spacebar_control")&&(!this.api.Y("web_player_spacebar_control_bugfix")&&!this.Z.mG||this.api.Y("web_player_spacebar_control_bugfix"))&&!this.api.S().pj){var h,R;e=(h=this.progressBar)== null?void 0:(R=h.K)==null?void 0:R.isEnabled;L=this.ML(e)}break;case 39:(rH?I:c)&&!B&&this.api.Xk()&&this.api.Y("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),h=(h=this.api.getVideoData())?h.Fk:[],R=nhv(h,this.api.getCurrentTime()*1E3),R!==-1&&this.X!=null&&(this.X.Yi(1,h[R].title),this.api.seekTo(h[R].startTime/1E3,void 0,void 0,void 0,52),L=!0))}return L}; g.M.handleGlobalKeyDown=function(e,L,c,I,B,x,S,h){h||(this.Z.AP=!1);var R=!1,u=this.api.S();if(u.pj&&!this.api.isMutedByEmbedsMutedAutoplay())return R;var t=g.Q4(this.api.qx());if(t&&(t=t.yX)&&t.z_)switch(e){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:R=t.XN(e)}u.j||R||(R=x||String.fromCharCode(e).toLowerCase(),this.K+=R,"awesome".indexOf(this.K)===0||this.api.Y("web_player_rtr_ctrls")&&"bday".indexOf(this.K)===0?(R=!0,4===this.K.length&&this.K==="bday"&&this.api.Y("web_player_rtr_ctrls")&& (Xgx(this.B),this.jk.lZ()),7===this.K.length&&this.K==="awesome"&&kTc(this.api.getRootNode(),"ytp-color-party")):(this.K=R,R="awesome".indexOf(this.K)===0||"bday".indexOf(this.K)===0));if(!R&&(!this.api.isMutedByEmbedsMutedAutoplay()||WsN.includes(e))){var O=this.api.getVideoData(),q,T;t=(q=this.progressBar)==null?void 0:(T=q.K)==null?void 0:T.isEnabled;q=O?O.Fk:[];T=rH?I:c;switch(e){case 80:L&&!u.t7&&(rN(this.wq,J7M(),"Previous"),this.api.previousVideo(),R=!0);break;case 78:L&&!u.t7&&(rN(this.wq, qw(),"Next"),this.api.nextVideo(),R=!0);break;case 74:this.api.Xk()&&(this.api.startSeekCsiAction(),this.X?this.api.Y("enable_key_press_seek_logging")?(R=An(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.X.M2(-1,10,R)):this.X.M2(-1,10):rN(this.wq,{U:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{U:"path",zy:!0,W:"ytp-svg-fill",N:{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),R=!0);break;case 76:this.api.Xk()&&(this.api.startSeekCsiAction(),this.X?this.api.Y("enable_key_press_seek_logging")?(R=An(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.X.M2(1,10,R)):this.X.M2(1,10):rN(this.wq,{U:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{U:"path",zy:!0,W:"ytp-svg-fill",N:{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),R=!0);break;case 37:this.api.Xk()&&(this.api.startSeekCsiAction(),T?(T=e5H(q,this.api.getCurrentTime()*1E3),T!==-1&&this.X!=null&&(this.X.Yi(-1,q[T].title),this.api.seekTo(q[T].startTime/1E3,void 0,void 0,void 0,53),R=!0)):(this.X?this.api.Y("enable_key_press_seek_logging")?(R=An(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),this.X.M2(-1,5,R)):this.X.M2(-1,5):rN(this.wq,{U:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36", width:"100%"},L:[{U:"path",zy:!0,W:"ytp-svg-fill",N:{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),R=!0));break;case 39:this.api.Xk()&&(this.api.startSeekCsiAction(),T?this.api.Y("web_enable_keyboard_shortcut_for_timely_actions")||(T=nhv(q,this.api.getCurrentTime()*1E3),T!==-1&&this.X!=null&&(this.X.Yi(1,q[T].title),this.api.seekTo(q[T].startTime/1E3,void 0,void 0,void 0,52),R=!0)):(this.X!=null?this.api.Y("enable_key_press_seek_logging")?(R=An(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.X.M2(1,5,R)):this.X.M2(1, 5):rN(this.wq,{U:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{U:"path",zy:!0,W:"ytp-svg-fill",N:{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),R=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),hn(this.wq,this.api.getVolume(),!1)):(this.api.mute(),hn(this.wq,0,!0));R=!0;break;case 32:R=this.api.Y("web_speedmaster_spacebar_control")?!this.api.S().t7:this.ML(t);break;case 75:R=this.ML(t);break;case 190:L?u.enableSpeedOptions&&xec(this)&&(R=this.api.getPlaybackRate(),this.api.setPlaybackRate(R+.25,!0),Ykf(this.wq,!1),R=!0):this.api.Xk()&&(this.step(1),R=!0);break;case 188:L? u.enableSpeedOptions&&xec(this)&&(R=this.api.getPlaybackRate(),this.api.setPlaybackRate(R-.25,!0),Ykf(this.wq,!0),R=!0):this.api.Xk()&&(this.step(-1),R=!0);break;case 70:ljx(this.api)&&(this.api.toggleFullscreen().catch(function(){}),R=!0); break;case 27:t?(this.progressBar.Rk(),R=!0):this.j()&&(R=!0)}if(u.controlsType!=="3")switch(e){case 67:g.ZP(this.api.qx())&&(u=this.api.getOption("captions","track"),this.api.toggleSubtitles(),nFf(this.wq,!u||u&&!u.displayName),R=!0);break;case 79:bo(this,"textOpacity");break;case 87:bo(this,"windowOpacity");break;case 187:case 61:bo(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:bo(this,"fontSizeIncrement",!0,!0)}var W;L||c||I||(e>=48&&e<=57?W=e-48:e>=96&&e<=105&&(W=e-96));W!=null&&this.api.Xk()&& (this.api.startSeekCsiAction(),u=this.api.getProgressState(),this.api.seekTo(W/10*(u.seekableEnd-u.seekableStart)+u.seekableStart,void 0,void 0,void 0,81),R=!0);R&&this.jk.lZ()}this.Z.zC=!1;this.api.publish("keyboardserviceglobalkeydown",{keyCode:e,shiftKey:L,ctrlKey:c,altKey:I,metaKey:B,key:x,code:S,repeat:h},this.Z);this.Z.zC&&(R=!0,this.jk.lZ());return R}; g.M.step=function(e){this.api.Xk();if(this.api.getPlayerStateObject().isPaused()){var L=this.api.getVideoData().K;L&&(L=L.video)&&this.api.seekBy(e/(L.fps||30),void 0,void 0,e>0?77:78)}}; g.M.ML=function(e){if(!this.api.S().t7){var L;var c,I=(L=this.api.getVideoData())==null?void 0:(c=L.getPlayerResponse())==null?void 0:c.playabilityStatus;if(I){var B;L=((B=g.Q(I.miniplayer,WjU))==null?void 0:B.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else L=!1;L&&this.api.fS("onExpandMiniplayer");e?this.progressBar.pQ():(e=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.wq.Ld(e),e?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.M.KS=function(){g.PT(this.G);g.zn.prototype.KS.call(this)};g.z(io,g.U);io.prototype.OW=function(){var e=this.V.S(),L=e.Z||this.V.Y("web_player_hide_overflow_button_if_empty_menu")&&this.TY.isEmpty();e=g.Uh(e)&&g.lf(this.V)&&g.E(this.V.getPlayerStateObject(),128);var c=this.V.getPlayerSize();this.visible=this.V.ge()&&!e&&c.width>=240&&!this.V.getVideoData().xx&&!L&&!this.V.isEmbedsShortsMode();g.cY(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.V.A9();this.V.logVisibility(this.element,this.visible&&this.B)}; io.prototype.vy=function(e){g.U.prototype.vy.call(this,e);this.V.logVisibility(this.element,this.visible&&e)}; io.prototype.KS=function(){g.U.prototype.KS.call(this);g.eZ(this.element,"ytp-overflow-button-visible")};g.z(oxx,g.Lr);g.M=oxx.prototype;g.M.Z9=function(e){e=Mx(e);g.vz(this.element,e)&&(g.vz(this.X,e)||g.vz(this.closeButton,e)||Iv(this))}; g.M.y5=function(){g.Lr.prototype.y5.call(this);this.V.B_(this.element)}; g.M.show=function(){this.z_&&this.V.publish("OVERFLOW_PANEL_OPENED");g.Lr.prototype.show.call(this);this.element.setAttribute("aria-modal","true");rOx(this,!0)}; g.M.hide=function(){g.Lr.prototype.hide.call(this);this.element.removeAttribute("aria-modal");rOx(this,!1)}; g.M.onFullscreenToggled=function(e){!e&&this.Wq()&&Iv(this)}; g.M.isEmpty=function(){return this.actionButtons.length===0}; g.M.focus=function(){for(var e=g.f(this.actionButtons),L=e.next();!L.done;L=e.next())if(L=L.value,L.z_){L.focus();break}};g.z(h5r,g.U);h5r.prototype.onClick=function(e){g.s4(e,this.api)&&this.api.playVideoAt(this.index)};g.z(R5r,g.Lr);g.M=R5r.prototype;g.M.show=function(){g.Lr.prototype.show.call(this);this.X.C(this.api,"videodatachange",this.j$);this.X.C(this.api,"onPlaylistUpdate",this.j$);this.j$()}; g.M.hide=function(){g.Lr.prototype.hide.call(this);g.fv(this.X);this.updatePlaylist(null)}; g.M.j$=function(){this.updatePlaylist(this.api.getPlaylist());this.api.S().Z&&(this.q0("ytp-playlist-menu-title-name").removeAttribute("href"),this.Z&&(this.j6(this.Z),this.Z=null))}; g.M.Oa=function(){var e=this.playlist,L=e.author,c=L?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",I={CURRENT_POSITION:String(e.index+1),PLAYLIST_LENGTH:String(e.length)};L&&(I.AUTHOR=L);this.update({title:e.title,subtitle:g.nC(c,I),playlisturl:this.api.getVideoUrl(!0)});L=e.K;if(L===this.G)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[e.index];else{c=g.f(this.playlistData);for(I=c.next();!I.done;I=c.next())I.value.dispose(); c=e.length;this.playlistData=[];for(I=0;I=this.K&&!e.Z&&!L.isAd()&&!this.api.isEmbedsShortsMode()}else e=!1;this.visible=e;this.i5(this.visible);g.cY(this.element,"ytp-search-button-visible",this.visible);g.cY(this.element,"ytp-show-search-title",!this.api.ge());this.api.logVisibility(this.element,this.visible&&this.B)}; Df.prototype.vy=function(e){g.U.prototype.vy.call(this,e);this.api.logVisibility(this.element,this.visible&&e)};g.z(wN,g.U); wN.prototype.trigger=function(e,L,c,I){this.show();if(this.G&&e!==this.G){var B=1;this.K&&(B=AOT(this));MuH(this,B,!1);f_n(this)}this.G=e;this.Z=this.G===-1?this.J:this.D;e="";L?(this.T+=L,e=g.Te(this.T)):this.T=0;this.updateValue(this.G===-1?"durationBack":"durationForward",e);if(this.X==="hidden"||this.X==="fading-out")L=0,this.X==="fading-out"&&(L=AOT(this),vxn(this)),z5n(this,L),this.X!=="fading-out"&&s_n(this,this.Z.querySelector(".ytp-seek-overlay-arrow-persistent")),this.X="fading-in";else if(this.X=== "fading-in"||this.X==="lingering")L=this.Z.querySelector(".ytp-seek-overlay-duration"),e=g.X3(this.V.S().experiments,"web_player_seek_overlay_duration_bump_scale")||.95,L.animate([{offset:0,transform:"scale(1)"},{offset:.5,transform:"scale("+e+")"},{offset:1,transform:"scale(1)"}],{duration:200,easing:"cubic-bezier(0, 1, 0.1, 1)"}),vxn(this),this.X==="lingering"&&(this.j.stop(),this.j.start());this.pS=(0,g.zI)();c&&F0T(this,c,I)}; wN.prototype.eQ=function(e,L,c,I){this.trigger(e,I)}; wN.prototype.M2=function(e,L,c){this.trigger(e,L);c&&(e=e===-1?this.D.visualElement:this.J.visualElement,c={seekData:c},(L=g.qy())&&g.Hu($g)(void 0,L,e,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",c,void 0))}; wN.prototype.Yi=function(e,L,c){this.trigger(e,void 0,L,c)};g.z(Jn,g.U);Jn.prototype.onClick=function(){var e=this,L=this.api.S(),c=this.api.getVideoData(this.api.getPresentingPlayerType()),I=this.api.getPlaylistId();L=this.api.Y("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):L.getVideoUrl(c.videoId,I,void 0,!0);if(navigator.share)try{var B=navigator.share({title:c.title,url:L});B instanceof Promise&&B.catch(function(x){i4v(e,x)})}catch(x){x instanceof Error&&i4v(this,x)}else this.X.jr(),Iv(this.K,this.element,!1); this.api.logClick(this.element)}; Jn.prototype.OW=function(){var e=this.api.S(),L=this.api.isEmbedsShortsMode();g.cY(this.element,"ytp-show-share-title",g.Uh(e)&&!L);this.X.TV()&&L?(e=(this.api.LS().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.l3(this.element,"right",e+"px")):L&&g.l3(this.element,"right","0px");this.updateValue("icon",{U:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{U:"path",zy:!0,W:"ytp-svg-fill",N:{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=b46(this);g.cY(this.element,"ytp-share-button-visible",this.visible);this.i5(this.visible);this.tooltip.A9();this.api.logVisibility(this.element,b46(this)&&this.B)}; Jn.prototype.vy=function(e){g.U.prototype.vy.call(this,e);this.api.logVisibility(this.element,this.visible&&e)}; Jn.prototype.KS=function(){g.U.prototype.KS.call(this);g.eZ(this.element,"ytp-share-button-visible")};g.z(gx6,g.Lr);g.M=gx6.prototype;g.M.Uo=function(e){e=Mx(e);g.vz(this.j,e)||g.vz(this.closeButton,e)||Iv(this)}; g.M.y5=function(){g.Lr.prototype.y5.call(this);this.tooltip.B_(this.element);this.api.logVisibility(this.X,!1);for(var e=g.f(this.Z),L=e.next();!L.done;L=e.next())L=L.value,this.api.hasVe(L.element)&&this.api.logVisibility(L.element,!1)}; g.M.show=function(){var e=this.z_;g.Lr.prototype.show.call(this);this.OW();e||this.api.fS("onSharePanelOpened")}; g.M.JD=function(){this.z_&&this.OW()}; g.M.OW=function(){var e=this;g.Y4(this.element,"ytp-share-panel-loading");g.eZ(this.element,"ytp-share-panel-fail");var L=this.api.getVideoData(),c=this.api.getPlaylistId()&&this.G.checked;L.getSharePanelCommand&&De(this.api.gg(),L.getSharePanelCommand,{includeListId:c}).then(function(I){e.We()||(g.eZ(e.element,"ytp-share-panel-loading"),wjT(e,I))}); L=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",L);this.updateValue("linkText",L);this.updateValue("shareLinkWithUrl",g.nC("Share link $URL",{URL:L}));F4(this.X);this.api.logVisibility(this.X,!0)}; g.M.onFullscreenToggled=function(e){!e&&this.Wq()&&Iv(this)}; g.M.focus=function(){this.X.focus()}; g.M.KS=function(){g.Lr.prototype.KS.call(this);k8M(this)};g.z(ClR,J2);g.M=ClR.prototype;g.M.KS=function(){Z4n(this);J2.prototype.KS.call(this)}; g.M.w3=function(e){e.target!==this.dismissButton.element&&(this.kX(!1),this.V.fS("innertubeCommand",this.onClickCommand))}; g.M.q$=function(){this.m$=!0;this.kX(!0);this.z8()}; g.M.Dx$=function(e){this.T=e;this.z8()}; g.M.onVideoDataChange=function(e,L){if(e=!!L.videoId&&this.videoId!==L.videoId)this.videoId=L.videoId,this.m$=!1,this.Gm=!0,this.J=this.h7=!1,Z4n(this),yOM(this,!1),this.K=this.X=!1,Cg(this),a_r(this);if(e||!L.videoId)this.pS=this.G=!1;var c,I;if(L==null?0:(c=L.getPlayerResponse())==null?0:(I=c.videoDetails)==null?0:I.isLiveContent)this.dZ(!1);else{var B,x,S;L=g.Q((B=L.getWatchNextResponse())==null?void 0:(x=B.playerOverlays)==null?void 0:(S=x.playerOverlayRenderer)==null?void 0:S.productsInVideoOverlayRenderer, S3J);this.T=this.enabled=!1;if(L){if(B=L==null?void 0:L.featuredProductsEntityKey){x=g.vN.getState().entities;var h;if((h=EK(x,"featuredProductsEntity",B))==null?0:h.productsData){this.dZ(!1);return}}if(!L.text||!L.onClickCommand||!L.timing){this.dZ(!1);return}this.enabled=!0;if(!this.G){var R;h=(R=L.badgeInteractionLogging)==null?void 0:R.trackingParams;(this.G=!!h)&&this.V.setTrackingParams(this.badge.element,h||null)}if(!this.pS){var u;if(this.pS=!((u=L.dismissButton)==null||!u.trackingParams)){var t; this.V.setTrackingParams(this.dismissButton.element,((t=L.dismissButton)==null?void 0:t.trackingParams)||null)}}L.isContentForward&&(R=L.productsData,yOM(this,!0),a_r(this),R=mev(this,R),u=[],R.length>0&&u.push(R[0]),R.length>1&&(t=new g.U({U:"div",W:"ytp-suggested-action-more-products-icon"}),g.l(this,t),u.push(t),u.push.apply(u,g.V(R.slice(1)))),this.j=new g.U({U:"div",L:u,W:"ytp-suggested-action-content-forward-container"}),g.l(this,this.j),this.ye.element.append(this.j.element));this.text=g.o9(L.text); var O;if(R=(O=L.dismissButton)==null?void 0:O.a11yLabel)this.He=g.o9(R);this.onClickCommand=L.onClickCommand;this.timing=L.timing;this.Lb()}ki$(this);wB(this);this.z8()}}; g.M.Q7=function(){return!this.T&&this.enabled&&!this.m$&&!this.V.ge()&&!this.Kf&&(this.J||this.Gm)}; g.M.OS=function(e){J2.prototype.OS.call(this,e);if(this.X||this.K)this.timing&&Vf(this.timing.preview)&&(this.X=!1,Cg(this),this.K=!1,Cg(this),this.V.RU("shopping_overlay_preview_collapsed"),this.V.RU("shopping_overlay_preview_expanded"),e=a3(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),Vf(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.V.RU("shopping_overlay_expanded"),e.end=this.timing.expanded.endSec*1E3),this.V.Lb([e])), this.h7=!0,wB(this);Cg(this)}; g.M.dZ=function(e){(this.J=e)?(D7(this),wB(this,!1)):(Z4n(this),this.t7.start());this.z8()}; g.M.Lb=function(e){var L=this.timing;e=(e===void 0?0:e)+this.V.getCurrentTime();var c=[],I=L.visible,B=L.preview;L=L.expanded;Vf(I)&&(JO$(I,e),c.push(a3(I.startSec,I.endSec,"shopping_overlay_visible")));Vf(B)&&(JO$(B,e),I=B.startSec+1,c.push(a3(B.startSec,I,"shopping_overlay_preview_collapsed")),c.push(a3(I,B.endSec,"shopping_overlay_preview_expanded")));Vf(L)&&(JO$(L,e),c.push(a3(L.startSec,L.endSec,"shopping_overlay_expanded")));this.V.Lb(c)}; g.M.z8=function(){J2.prototype.z8.call(this);this.V.getRootNode()&&g.cY(this.V.getRootNode(),"ytp-shopping-pill-shown",this.Q7())};g.z(j_v,g.U); j_v.prototype.OW=function(){var e=this.api.S();this.i5(g.Uh(e)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.z_);var L=this.api.getVideoData(),c=!1;this.api.getPresentingPlayerType()===2?c=!!L.videoId&&!!L.isListed&&!!L.author&&!!L.DY&&!!L.profilePicture:g.Uh(e)&&(c=!!L.videoId&&!!L.DY&&!!L.profilePicture&&!L.xx&&!e.Z&&!(e.T&&this.api.getPlayerSize().width<200));var I=L.profilePicture;e=g.Uh(e)?L.expandedTitle:L.author;I=I===void 0? "":I;e=e===void 0?"":e;c?(this.K!==I&&(this.X.style.backgroundImage="url("+I+")",this.K=I),this.updateValue("channelLogoLabel",g.nC("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:e})),g.Y4(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.eZ(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.X,c&&this.B);this.api.logVisibility(this.channelName,c&&this.B);this.subscribeButton&&(this.subscribeButton.channelId=L.hR);this.updateValue("expandedTitle",L.expandedTitle)};g.z(N$,g.Lr);N$.prototype.show=function(){g.Lr.prototype.show.call(this);this.X.start()}; N$.prototype.hide=function(){g.Lr.prototype.hide.call(this);this.X.stop()}; N$.prototype.OC=function(e,L){e==="dataloaded"&&((this.Kp=L.Kp,this.PM=L.PM,isNaN(this.Kp)||isNaN(this.PM))?this.Z&&(this.V.RU("intro"),this.V.removeEventListener(g.jh("intro"),this.T),this.V.removeEventListener(g.Hq("intro"),this.j),this.V.removeEventListener("onShowControls",this.G),this.hide(),this.Z=!1):(this.V.addEventListener(g.jh("intro"),this.T),this.V.addEventListener(g.Hq("intro"),this.j),this.V.addEventListener("onShowControls",this.G),e=new g.pC(this.Kp,this.PM,{priority:9,namespace:"intro"}), this.V.Lb([e]),this.Z=!0))};g.z(mk,g.U);mk.prototype.onClick=function(){this.V.eT()}; mk.prototype.OW=function(){var e=!0;g.Uh(this.V.S())&&(e=e&&this.V.LS().getPlayerSize().width>=480);this.i5(e);e=this.updateValue;var L=this.V.Y("delhi_modern_web_player_icons"),c=L?{U:"svg",N:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{U:"path",N:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z", fill:"white"}}]}:{U:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{U:"path",zy:!0,N:{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"}}]};L=L?{U:"svg",N:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{U:"path",N:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z", fill:"white"}}]}:{U:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{U:"path",zy:!0,W:"ytp-svg-fill",N:{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"}}]};e.call(this,"icon",this.V.YI()?c:L)};g.z(l_M,g.U);l_M.prototype.KS=function(){this.X=null;g.U.prototype.KS.call(this)};g.z(yf,g.U);yf.prototype.onClick=function(){this.V.fS("innertubeCommand",this.K)}; yf.prototype.D=function(){if(this.V.Y("delhi_modern_web_player")){var e=this.V.getPlayerSize();e.width&&(this.element.style.maxWidth=e.width*.25+"px")}}; yf.prototype.h7=function(e){e!==this.T&&(this.update({title:e,ariaLabel:e}),this.T=e);e?this.show():this.hide()}; yf.prototype.pS=function(){this.X.disabled=this.K==null;g.cY(this.X,"ytp-chapter-container-disabled",this.X.disabled);this.Ty()};g.z(Zf,yf);Zf.prototype.onClickCommand=function(e){g.Q(e,sF)&&this.Ty()}; Zf.prototype.updateVideoData=function(e,L){var c,I,B;e=g.Q((c=L.getWatchNextResponse())==null?void 0:(I=c.playerOverlays)==null?void 0:(B=I.playerOverlayRenderer)==null?void 0:B.decoratedPlayerBarRenderer,Qm);c=g.Q(e==null?void 0:e.playerBarActionButton,g.E5);if(this.V.Y("web_player_updated_entrypoint")){this.J=N5(c==null?void 0:c.text);var x;I=(x=c==null?void 0:c.tooltip)!=null?x:"View chapter";this.j.setAttribute("title",I)}this.K=c==null?void 0:c.command;yf.prototype.pS.call(this)}; Zf.prototype.Ty=function(){var e=this.J,L=this.G.X,c,I=((c=this.V.getLoopRange())==null?void 0:c.type)==="clips";if(L.length>1&&!I){e=this.V.getProgressState().current*1E3;c=vP(L,e);e=L[c].title||"Chapters";if(c!==this.currentIndex||this.Z)this.V.fS("innertubeCommand",L[c].onActiveCommand),this.currentIndex=c;this.Z=!1}else this.Z=!0;yf.prototype.h7.call(this,e)};g.z(pg,g.I9);pg.prototype.K=function(){var e;(e=this.element.parentElement)==null||e.classList.contains("ytp-right-controls-left");(this.X=!this.X)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")}; pg.prototype.isExpanded=function(){return this.X};g.z($8,g.U);$8.prototype.Z=function(e){g.E(e.state,32)?Q_R(this,this.api.UU()):this.z_&&(g.E(e.state,16)||g.E(e.state,1))||this.fade.hide()}; $8.prototype.vR=function(){var e=this.api.getPlayerStateObject();(g.E(e,32)||g.E(e,16))&&den(this)}; $8.prototype.G=function(){this.frameIndex=NaN;den(this)}; $8.prototype.hide=function(){this.X&&Q_R(this,null);g.U.prototype.hide.call(this)};g.z(Uer,g.U);g.M=Uer.prototype;g.M.onClick=function(){var e=this;if(this.V.S().DY||this.V.S().T){this.V.logClick(this.element);try{this.V.toggleFullscreen().catch(function(L){e.CK(L)})}catch(L){this.CK(L)}}else Iv(this.message,this.element,!0)}; g.M.CK=function(e){String(e).includes("fullscreen error")?g.F7(e):g.A9(e);this.d2()}; g.M.d2=function(){this.disable();this.message.Fp(this.element,!0)}; g.M.OB=function(){RG()===this.V.getRootNode()?this.Z.start():(this.Z.stop(),this.message&&this.message.hide())}; g.M.dW=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var e=window.screen.width*.9,L=window.screen.height*.9,c=Math.max(window.outerWidth,window.innerWidth),I=Math.max(window.outerHeight,window.innerHeight);if(c>I!==e>L){var B=c;c=I;I=B}e>c&&L>I&&this.d2()}}; g.M.disable=function(){var e=this;if(!this.message){var L=(SL(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"Full screen is unavailable. $BEGIN_LINKLearn More$END_LINK":"Your browser doesn't support full screen. $BEGIN_LINKLearn More$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.Lr(this.V,{U:"div",Rq:["ytp-popup","ytp-generic-popup"],N:{role:"alert",tabindex:"0"},L:[L[0],{U:"a",N:{href:"https://support.google.com/youtube/answer/6276924", target:this.V.S().D},aq:L[2]},L[4]]},100,!0);this.message.hide();g.l(this,this.message);this.message.subscribe("show",function(c){e.K.LY(e.message,c)}); g.Uq(this.V,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.X)();this.X=null}}; g.M.OW=function(){var e=ljx(this.V),L=this.V.S().T&&this.V.getPlayerSize().width<250;this.i5(e&&!L);var c;((c=this.V.S())==null?0:c.Y("embeds_use_parent_visibility_in_ve_logging"))?this.V.logVisibility(this.element,this.z_&&this.B):this.V.logVisibility(this.element,this.z_)}; g.M.xk=function(e){if(e){var L=g.Zb(this.V,"Exit full screen","f");this.update({"data-title-no-tooltip":"Exit full screen"});document.activeElement===this.element&&this.V.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(c){g.F7(c)})}else L=g.Zb(this.V,"Full screen","f"),this.update({"data-title-no-tooltip":"Full screen"}); e=ExJ(this,e);L=this.message?null:L;this.update({title:L,icon:e});this.K.Aq().A9()}; g.M.KS=function(){this.message||((0,this.X)(),this.X=null);g.U.prototype.KS.call(this)}; g.M.vy=function(e){g.U.prototype.vy.call(this,e);var L;((L=this.V.S())==null?0:L.Y("embeds_use_parent_visibility_in_ve_logging"))&&this.V.logVisibility(this.element,this.z_&&e)};g.z(jw,g.U);jw.prototype.onClick=function(){this.V.logClick(this.element);this.V.seekBy(this.X,!0);var e=this.X>0?1:-1,L=Math.abs(this.X),c=this.V.Wv().KU;c&&c.M2(e,L);this.K.isActive()?this.Z=!0:(e=["ytp-jump-spin"],this.X<0&&e.push("backwards"),this.element.classList.add.apply(this.element.classList,g.V(e)),g.HT(this.K))};g.z(HP,yf);HP.prototype.onClickCommand=function(e){g.Q(e,x9M)&&this.Ty()}; HP.prototype.updateVideoData=function(){var e,L;this.K=(e=K0c(this))==null?void 0:(L=e.onTap)==null?void 0:L.innertubeCommand;yf.prototype.pS.call(this)}; HP.prototype.Ty=function(){var e="",L=this.G.T,c,I=(c=K0c(this))==null?void 0:c.headerTitle;c=I?g.o9(I):"";var B;I=((B=this.V.getLoopRange())==null?void 0:B.type)==="clips";L.length>1&&!I&&(e=this.V.getProgressState().current*1E3,B=Yl$(L,e),e=B!=null?L[B].title:c,B!=null&&B!==this.currentIndex&&(this.V.fS("innertubeCommand",L[B].onActiveCommand),this.currentIndex=B));yf.prototype.h7.call(this,e)};g.z(lo,g.U);lo.prototype.onClick=function(){this.V.fS("onCollapseMiniplayer");this.V.logClick(this.element)}; lo.prototype.OW=function(){this.visible=!this.V.isFullscreen();this.i5(this.visible);this.V.logVisibility(this.element,this.visible&&this.B)}; lo.prototype.vy=function(e){g.U.prototype.vy.call(this,e);this.V.logVisibility(this.element,this.visible&&e)};g.z(PP,g.U);PP.prototype.init=function(){this.updateValue("minvalue",this.G);this.updateValue("maxvalue",this.j);this.updateValue("stepvalue",this.J);this.updateValue("slidervalue",this.X);YzM(this,this.X)}; PP.prototype.Z=function(){Qf(this,Number(this.K.value));this.K.focus()}; PP.prototype.T=function(e){if(!e.defaultPrevented){switch(e.code){case "ArrowDown":e=-this.J;break;case "ArrowUp":e=this.J;break;default:return}Qf(this,Math.min(this.j,Math.max(Number((this.X+e).toFixed(2)),this.G)))}};g.z(dN,PP);dN.prototype.onVolumeChange=function(e){if(this.D)this.D=!1;else{var L=e.volume;L===0||e.muted?Qf(this,0):Qf(this,L)}}; dN.prototype.Z=function(){PP.prototype.Z.call(this);this.pS(this.X)}; dN.prototype.h7=function(e){var L=-e.deltaY;L=e.deltaMode===WheelEvent.DOM_DELTA_LINE||e.deltaMode===WheelEvent.DOM_DELTA_PAGE?g.j5(this.X+L,0,100):g.j5(this.X+g.j5(L/10,-10,10),0,100);L===0?Qf(this,0):Qf(this,L);this.pS(L);e.preventDefault();e.stopPropagation()}; dN.prototype.Gm=function(e,L){this.D=!0;e===0||L?this.V.mute():(this.V.isMuted()&&this.V.unMute(),this.V.setVolume(e))};g.z(nxM,g.U);g.z(EG,g.U);g.M=EG.prototype;g.M.UH=function(){if(!this.V.o8()){this.updateValue("dataTooltipOffsetY",-120);var e;(e=this.X)!=null&&UG(e,!0);var L;(L=this.X)!=null&&L.X.stop()}}; g.M.yL=function(){var e;(e=this.X)!=null&&e.X.start()}; g.M.IP=function(e){this.visible=e.width>=300||this.Y9;this.i5(this.visible);this.V.logVisibility(this.element,this.visible&&this.B)}; g.M.XL=function(){this.V.S().ye?this.V.isMuted()?this.V.unMute():this.V.mute():Iv(this.message,this.element,!0);this.V.logClick(this.element)}; g.M.ag9=function(e){if(this.V.S().ye&&this.X)if(e.target===this.Z){var L;if(!this.V.o8()||((L=this.X)==null?0:L.isVisible))this.XL();else{var c;(c=this.X)!=null&&UG(c,!0)}}else{var I;(I=this.X)!=null&&UG(I,!0)}else this.XL()}; g.M.onVolumeChange=function(e){this.setVolume(e.volume,e.muted)}; g.M.setVolume=function(e,L){var c=this,I=L?0:e/100;e=I===0?1:e>50?1:0;if(this.D!==e){var B=this.J;isNaN(B)?Bv6(this,e):O_c(this.ye,function(S){Bv6(c,B+(c.D-B)*S)},250); this.D=e}I=I===0?1:0;if(this.T!==I){var x=this.Gm;isNaN(x)?xFn(this,I):O_c(this.k9,function(S){xFn(c,x+(c.T-x)*S)},250); this.T=I}Lt$(this,L)}; g.M.vy=function(e){g.U.prototype.vy.call(this,e);this.V.logVisibility(this.element,this.visible&&e)}; var ccM=["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"],Ioc=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",26.77," C",23.01,",",25.86," ",26,",",22.28," ",26,",",18," C",26,",",13.72," ", 23.01,",",10.14," ",19,",",9.23," L",19,",",11.29," Z"];g.z(g.Xz,g.U);g.M=g.Xz.prototype;g.M.onStateChange=function(e){this.Oq(e.state);var L;((L=this.V.S())==null?0:L.Y("embeds_use_parent_visibility_in_ve_logging"))&&this.V.logVisibility(this.element,this.z_&&this.B)}; g.M.Oq=function(e){var L=g.QE(this.V.getVideoData()),c=!1;e.isOrWillBePlaying()?e=L?4:2:g.E(e,2)?(e=3,c=L):e=1;this.element.disabled=c;if(this.X!==e){L=null;switch(e){case 2:L=g.Zb(this.V,"Pause","k");this.update({"data-title-no-tooltip":"Pause"});break;case 3:L="Replay";this.update({"data-title-no-tooltip":"Replay"});break;case 1:L=g.Zb(this.V,"Play","k");this.update({"data-title-no-tooltip":"Play"});break;case 4:L="Stop live playback",this.update({"data-title-no-tooltip":"Stop live playback"})}e=== 3?this.update({title:L,icon:oIn(this,e)}):(this.update({title:L}),(L=oIn(this,e))&&this.X&&this.X!==3?TZr(this.transition,this.element,L):this.updateValue("icon",L));this.tooltip.A9();this.X=e}}; g.M.onVideoDataChange=function(){g.cY(this.element,"ytp-play-button-playlist",g.lf(this.V))}; g.M.ML=function(e){this.V.logClick(this.element);if(this.V.getPlayerStateObject().isOrWillBePlaying())this.V.pauseVideo();else{if(this.V.isMinimized()&&this.V.getPlayerStateObject().isCued()){var L={},c;if((c=this.V.getVideoData())==null?0:c.j)L.cttAuthInfo={token:this.V.getVideoData().j,videoId:this.V.getVideoData().videoId};be("direct_playback",L);this.V.ZV().timerName="direct_playback"}this.V.playVideo()}this.V.isMinimized()&&(e==null?void 0:e.type)==="click"&&this.element.blur()}; g.M.vy=function(e){g.U.prototype.vy.call(this,e);var L;((L=this.V.S())==null?0:L.Y("embeds_use_parent_visibility_in_ve_logging"))&&this.V.logVisibility(this.element,this.z_&&e)};g.z(g.Kg,g.U);g.M=g.Kg.prototype;g.M.onVideoDataChange=function(){h3r(this);this.G&&(this.j6(this.G),this.G=null);this.videoData=this.V.getVideoData(1);if(this.playlist=this.V.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.G=this.C(this.V,"progresssync",this.IS);this.Z=R3c(this);rcn(this);this.B5(this.V.LS().getPlayerSize())}; g.M.B5=function(e){e=e===void 0?this.V.LS().getPlayerSize():e;var L,c=((L=this.V.getLoopRange())==null?void 0:L.type)==="clips";e=(g.lf(this.V)||this.X&&g.Eq(this.V)&&!this.V.Y("web_hide_next_button")||uuc(this))&&!c&&(this.X||e.width>=400);this.i5(e);this.V.logVisibility(this.element,e)}; g.M.onClick=function(e){this.V.logClick(this.element);var L=!0;this.T?L=g.s4(e,this.V):e.preventDefault();L&&(this.X&&this.V.getPresentingPlayerType()===5?this.V.publish("ytoprerollinternstitialnext"):this.X?(ke(this.V.ZV()),this.V.publish("playlistnextbuttonclicked",this.element),this.V.nextVideo(!0)):this.Z?this.V.seekTo(0):(ke(this.V.ZV()),this.V.publish("playlistprevbuttonclicked",this.element),this.V.previousVideo(!0)))}; g.M.IS=function(){var e=R3c(this);e!==this.Z&&(this.Z=e,rcn(this))}; g.M.KS=function(){this.K&&(this.K(),this.K=null);h3r(this);g.U.prototype.KS.call(this)};g.z(O7R,g.U);g.M=O7R.prototype;g.M.k8=function(e){this.Yd(e.pageX);this.RM(e.pageX+e.deltaX);qcv(this)}; g.M.Yd=function(e){this.pS=e-this.Y9}; g.M.RM=function(e){e-=this.Y9;!isNaN(this.pS)&&this.thumbnails.length>0&&(this.D=e-this.pS,this.thumbnails.length>0&&this.D!==0&&(this.Z=this.J+this.D,e=sPn(this,this.Z),this.Z<=this.X/2&&this.Z>=z36(this)?(this.api.seekTo(e,!1,void 0,void 0,25),g.l3(this.Gm,"transform","translateX("+(this.Z-this.X/2)+"px)"),tKT(this,e)):this.Z=this.J))}; g.M.V3=function(){this.h7&&(this.h7.zj=!0);var e=(0,g.zI)()-this.Pe<300;if(Math.abs(this.D)<5&&!e){this.Pe=(0,g.zI)();e=this.pS+this.D;var L=this.X/2-e;this.Yd(e);this.RM(e+L);qcv(this);this.api.logClick(this.j)}qcv(this)}; g.M.jO=function(){Y8(this,this.api.getCurrentTime())}; g.M.play=function(e){this.api.seekTo(sPn(this,this.Z),void 0,void 0,void 0,26);this.api.playVideo();e&&this.api.logClick(this.playButton)}; g.M.onExit=function(e){this.api.seekTo(this.t7,void 0,void 0,void 0,63);this.api.playVideo();e&&this.api.logClick(this.dismissButton)}; g.M.Nx=function(e,L){this.Y9=e;this.X=L;Y8(this,this.api.getCurrentTime())}; g.M.enable=function(){this.isEnabled||(this.isEnabled=!0,this.t7=this.api.getCurrentTime(),tKT(this,this.t7),g.cY(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.ye=this.C(this.element,"wheel",this.k8),this.logVisibility(this.isEnabled))}; g.M.disable=function(){this.isEnabled=!1;this.hide();g.cY(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.ye&&this.j6(this.ye);this.logVisibility(this.isEnabled)}; g.M.reset=function(){this.disable();this.G=[];this.Ve=!1}; g.M.logVisibility=function(e){this.api.logVisibility(this.element,e);this.api.logVisibility(this.j,e);this.api.logVisibility(this.dismissButton,e);this.api.logVisibility(this.playButton,e)}; g.M.KS=function(){for(;this.K.length;){var e=void 0;(e=this.K.pop())==null||e.dispose()}g.U.prototype.KS.call(this)}; g.z(Tvn,g.U);g.z(Wtc,g.U);g.z(vIc,g.U);g.z(ng,g.U);ng.prototype.IT=function(e){return e==="PLAY_PROGRESS"?this.J:e==="LOAD_PROGRESS"?this.T:e==="LIVE_BUFFER"?this.j:this.Z};Ftx.prototype.update=function(e,L,c,I){c=c===void 0?0:c;this.width=L;this.G=c;this.X=L-c-(I===void 0?0:I);this.position=g.j5(e,c,c+this.X);this.Z=this.position-c;this.K=this.Z/this.X};g.z(b7M,g.U);g.z(g.ce,g.I9);g.M=g.ce.prototype; g.M.Vj=function(){var e=!1,L=this.api.getVideoData();if(!L)return e;this.api.RU("timedMarkerCueRange");gIn(this);for(var c=g.f(L.d_),I=c.next();!I.done;I=c.next()){I=I.value;var B=void 0,x=(B=this.He[I])==null?void 0:B.markerType,S=void 0;B=(S=this.He[I])==null?void 0:S.markers;if(!B)break;if(x==="MARKER_TYPE_TIMESTAMPS"){e=g.f(B);for(x=e.next();!x.done;x=e.next()){S=x.value;x=new b7M;var h=void 0;x.title=((h=S.title)==null?void 0:h.simpleText)||"";x.timeRangeStartMillis=Number(S.startMillis);x.X= Number(S.durationMillis);var R=h=void 0;x.onActiveCommand=(R=(h=S.onActive)==null?void 0:h.innertubeCommand)!=null?R:void 0;CRJ(this,x)}aov(this,this.T);e=this.T;x=this.Ft;S=[];h=null;for(R=0;Ru&&(h.end=u);u=L0J(u,u+O);S.push(u);h=u;x[u.id]=e[R].onActiveCommand}}this.api.Lb(S);a:{e=g.f(B);for(B=e.next();!B.done;B=e.next())if(B.value.sourceType==="SOURCE_TYPE_SMART_SKIP"){e= !1;break a}e=!0}e&&(this.Fk=this.He[I]);e=!0}else if(x==="MARKER_TYPE_HEATMAP"){I=this.He[I];t=u=x=R=h=S=void 0;if(I&&I.markers){B=(x=(t=I.markersMetadata)==null?void 0:(u=t.heatmapMetadata)==null?void 0:u.minHeightDp)!=null?x:0;x=(S=(R=I.markersMetadata)==null?void 0:(h=R.heatmapMetadata)==null?void 0:h.maxHeightDp)!=null?S:60;S=this.X.length;h=null;for(R=0;R=t&&W<=O&&u.push(T)}x>0&&(this.h7.style.height=x+"px");t=this.G[R];O=u;T=B;var A=x,b=R===0;b=b===void 0?!1:b;foJ(t,A);q=O;W=t.K;b=b===void 0?!1:b;var J=1E3/q.length,w=[];w.push({x:0,y:100});for(var C=0;C0&&(h=u[u.length-1])}g.IU(this)}x=void 0;B=[];if(I=(x=I.markersDecoration)==null?void 0:x.timedMarkerDecorations)for(I=g.f(I),x=I.next();!x.done;x=I.next())x=x.value,R=h=S=void 0,B.push({visibleTimeRangeStartMillis:(S=x.visibleTimeRangeStartMillis)!= null?S:-1,visibleTimeRangeEndMillis:(h=x.visibleTimeRangeEndMillis)!=null?h:-1,decorationTimeMillis:(R=x.decorationTimeMillis)!=null?R:NaN,label:x.label?g.o9(x.label):""});I=B;this.heatMarkersDecorations=I}}L.sj=this.T;g.cY(this.element,"ytp-timed-markers-enabled",e);return e}; g.M.Nx=function(){g.IU(this);oU(this);aov(this,this.T);if(this.K){var e=g.Yr(this.element).x||0;this.K.Nx(e,this.j)}}; g.M.cwe=function(){var e=this.api.getVideoData();e&&QPf(this,e)}; g.M.onClickCommand=function(e){if(e=g.Q(e,sF)){var L=e.key;e.isVisible&&L&&Z7v(this,L)}}; g.M.xw9=function(e){this.api.fS("innertubeCommand",this.Ft[e.id])}; g.M.Ty=function(){oU(this);var e=this.api.getCurrentTime();(ethis.clipEnd)&&this.wh()}; g.M.B$=function(e){if(!e.defaultPrevented){var L=!1;switch(e.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);L=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);L=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);L=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);L=!0;break;case 38:this.api.Y("enable_key_press_seek_logging")&&t4(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);L=!0;break;case 40:this.api.Y("enable_key_press_seek_logging")&&t4(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),L=!0}L&&e.preventDefault()}}; g.M.OC=function(e,L){this.updateVideoData(L,e==="newdata")}; g.M.VU=function(){this.OC("newdata",this.api.getVideoData())}; g.M.updateVideoData=function(e,L){L=L===void 0?!1:L;var c=!!e&&e.Hd();c&&(qU(e)||lor(this)?this.sK=!1:this.sK=e.allowLiveDvr,g.cY(this.api.getRootNode(),"ytp-enable-live-buffer",!(e==null||!qU(e))),QPf(this,e));xsx(this,this.api.Xk());if(L){if(c){L=e.clipEnd;this.clipStart=e.clipStart;this.clipEnd=L;OW(this);for(h4(this,this.pS,this.sY);this.G.length>0;)this.G.pop().dispose();this.heatMarkersDecorations=[];this.RT={};var I;(I=this.K)==null||I.reset();zX(this);g.cY(this.api.getRootNode(),"ytp-fine-scrubbing-exp", L_(this))}else this.wh();this.Vx()}if(e){var B;I=((B=this.By)==null?void 0:B.type)==="clips";if(B=!e.isLivePlayback){B=this.api.getVideoData();L=g.db(B);c=DFn(B);var x;B=L!=null||c!=null&&c.length>0||((x=B.ME)==null?void 0:x.length)>0}if(B&&!I){x=this.api.getVideoData();I=g.db(x);B=!1;if(I==null?0:I.markersMap){B=this.api.getVideoData();var S;B.R0=((S=I.visibleOnLoad)==null?void 0:S.key)||B.R0;S=g.f(I.markersMap);for(I=S.next();!I.done;I=S.next())I=I.value,I.key&&I.value&&(this.RT[I.key]=I.value, I.value.onChapterRepeat&&(B.A2=I.value.onChapterRepeat));B.R0!=null&&Z7v(this,B.R0);B=!0}var h;if(((h=x.ME)==null?void 0:h.length)>0){h=g.vN.getState().entities;S=g.f(x.ME);for(I=S.next();!I.done;I=S.next()){I=I.value;c=void 0;L=(c=EK(h,"macroMarkersListEntity",I))==null?void 0:c.markersList;var R=c=void 0;if(((c=L)==null?void 0:c.markerType)==="MARKER_TYPE_TIMESTAMPS"||((R=L)==null?void 0:R.markerType)==="MARKER_TYPE_HEATMAP")this.He[I]=L}B=this.Vj()||B}!B&&(h=DFn(x))&&(Jcc(this,h),x.Fk=this.X,w_T(this)); dFr(this,null);e.Fj&&this.G.length===0&&(e=e.Fj,h=e.key,e.isVisible&&h&&Z7v(this,h))}else i7H(this),gIn(this)}oU(this)}; g.M.jY=function(e){this.J&&!g.E(e.state,32)&&this.api.getPresentingPlayerType()!==3&&this.J.cancel();var L;((L=this.K)==null?0:L.isEnabled)&&g.E(e.state,8)&&this.api.pauseVideo();e=this.api.getPresentingPlayerType()===2||!this.api.Xk()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.cY(this.OF,"ytp-hide-scrubber-button",e)}; g.M.VQ=function(e){var L=!!this.By!==!!e,c=this.By;this.By=e;dFr(this,c);(e==null?void 0:e.type)!=="clips"&&e||(e?(this.updateValue("clipstarticon",FPM()),this.updateValue("clipendicon",FPM()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",Ts6()),this.updateValue("clipendicon",qRc()),this.updateValue("clipstarttitle","Watch full video"),this.updateValue("clipendtitle","Watch full video")),L&&(this.updateVideoData(this.api.getVideoData(), !0),g.IU(this)),OW(this));h4(this,this.pS,this.sY)}; g.M.zTe=function(){this.api.publish("progressBarHoverStart")}; g.M.hT$=function(e,L,c){var I=g.Yr(this.element),B=xX(this).X,x=c?c.getAttribute("data-tooltip"):void 0,S=c?c.getAttribute("data-position"):void 0,h=c?c.getAttribute("data-offset-y"):void 0;h=h?Number(h):0;S&&(e=Ge(this.Z,Number(c.getAttribute("data-position")),0)*B+g.Yr(this.progressBar).x);this.DY.x=e-I.x;this.DY.y=L-I.y;e=xX(this);c=uU(this,e);L=0;var R;if((R=this.api.getVideoData())==null?0:qU(R))(R=this.api.getProgressState().seekableEnd)&&c>R&&(c=R,e.position=Ge(this.Z,R)*xX(this).X),L=this.Z.K; lor(this)&&(L=this.Z.K);R=x||g.Te(this.sK?c-this.Z.X:c-L);L=e.position+this.kN;c-=this.api.FF();var u;if((u=this.K)==null||!u.isEnabled)if(this.api.UU()){if(this.X.length>1){u=RU(this,this.DY.x,!0);if(!this.By)for(I=0;I1)for(I=0;I0)for(u=this.DY.x,I=g.f(this.T),B=I.next();!B.done;B=I.next())B=B.value,S=Be(this,B.timeRangeStartMillis/ (this.Z.X*1E3),xX(this)),g.cY(B.element,"ytp-timed-marker-hover",S<=u&&S+6>=u);I=this.tooltip.scale;u=this.api.Y("delhi_modern_web_player")?67:45;h=(isNaN(h)?0:h)-u*I;this.api.Y("web_key_moments_markers")?this.Fk?(u=Yl$(this.T,c*1E3),u=u!=null?this.T[u].title:""):(u=vP(this.X,c*1E3),u=this.X[u].title):(u=vP(this.X,c*1E3),u=this.X[u].title);u||(h+=16*I);this.tooltip.scale===.6&&(g.T3(this.api.S())?(h=this.api.LS().getPlayerSize().height-225,I=this.api.Y("delhi_modern_web_player")?70:110,h=u?h+I:h+ I+16):h=u?110:126);I=vP(this.X,c*1E3);this.Ve=UFx(this,c,I)?I:UFx(this,c,I+1)?I+1:-1;g.cY(this.api.getRootNode(),"ytp-progress-bar-snap",this.Ve!==-1&&this.X.length>1);I=!1;B=g.f(this.heatMarkersDecorations);for(S=B.next();!S.done;S=B.next()){S=S.value;var t=c*1E3;t>=S.visibleTimeRangeStartMillis&&t<=S.visibleTimeRangeEndMillis&&(u=S.label,R=g.Te(S.decorationTimeMillis/1E3),I=!0)}this.Mv!==I&&(this.Mv=I,this.api.logVisibility(this.pj,this.Mv));g.cY(this.api.getRootNode(),"ytp-progress-bar-decoration", I);I=160*this.tooltip.scale*2;B=u.length*(this.D?8.55:5.7);B=B<=I?B:I;S=B<160*this.tooltip.scale;I=3;!S&&B/2>e.position&&(I=1);!S&&B/2>this.j-e.position&&(I=2);this.api.S().T&&(h-=10);this.G.length&&this.G[0].Hd&&(h-=14*(this.D?2:1),this.t7||(this.t7=!0,this.api.logVisibility(this.h7,this.t7)));var O;if(L_(this)&&(((O=this.K)==null?0:O.isEnabled)||this.d_>0)){var q;h-=((q=this.K)==null?0:q.isEnabled)?TX(this):this.d_}O=void 0;L_(this)&&!this.api.Y("web_player_hide_fine_scrubbing_edu")&&(O="Pull up for precise seeking", this.Y9||(this.Y9=!0,this.api.logVisibility(this.FD,this.Y9)));this.tooltip.pZ(L,c,R,!!x,h,u,I,O)}else this.tooltip.pZ(L,c,R,!!x,h);g.Y4(this.api.getRootNode(),"ytp-progress-bar-hover");H7r(this)}; g.M.pwq=function(){this.Vx();g.eZ(this.api.getRootNode(),"ytp-progress-bar-hover");this.t7&&(this.t7=!1,this.api.logVisibility(this.h7,this.t7));this.Y9&&(this.Y9=!1,this.api.logVisibility(this.FD,this.Y9));this.api.Y("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&this.api.publish("progressBarHoverEnd")}; g.M.Xwl=function(e,L){var c=g.Yr(this.element);this.g0=e-c.x;L_(this)&&this.K&&(this.K.Ve?Y8(this.K,this.api.getCurrentTime()):MKr(this.K),this.K.show(),g.cY(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.K.isEnabled));this.Nl&&(this.Nl.dispose(),this.Nl=null);this.BU=L;this.Cj=this.api.getCurrentTime();this.X.length>1&&this.Ve!==-1?this.api.seekTo(this.X[this.Ve].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(uU(this,xX(this)),!1,void 0,void 0,7);g.Y4(this.element,"ytp-drag");(this.tj= this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()}; g.M.sIw=function(){if(L_(this)&&this.K){var e=TX(this);this.d_>=e*.5?(this.K.enable(),Y8(this.K,this.api.getCurrentTime()),BAv(this,e)):zX(this)}if(g.E(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var L;if((L=this.K)==null?0:L.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.X.length>1&&this.Ve!==-1)this.api.Y("html5_enable_progress_bar_slide_seek_logging")&&t4(this,this.Cj,this.X[this.Ve].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.X[this.Ve].startTime/1E3,void 0,void 0,void 0,7);else{e=uU(this,xX(this));this.api.Y("html5_enable_progress_bar_slide_seek_logging")&&t4(this,this.Cj,e,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(e,void 0,void 0,void 0,7);L=g.f(this.heatMarkersDecorations);for(var c=L.next();!c.done;c=L.next())c=c.value,e*1E3>=c.visibleTimeRangeStartMillis&&e*1E3<=c.visibleTimeRangeEndMillis&& this.api.logClick(this.pj)}g.eZ(this.element,"ytp-drag");this.k9&&(this.Gm.src=this.k9);this.tj&&!g.E(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.M.apd=function(e,L){var c=this,I=xX(this),B=uU(this,I);this.api.LS().hO||(I.position>this.g0+2?this.Bw&&(this.Gm.src=this.Bw):I.position1);this.i5(e&&this.V.LS().getPlayerSize().width>=400);this.V.logVisibility(this.element,this.z_);var L=1;e&&this.isActive()&&(L=2);if(this.X!==L){this.X=L;e=this.V.Y("delhi_modern_web_player_icons");switch(L){case 1:this.updateValue("icon",e?{U:"svg",N:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{U:"path",N:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V8C1.68 8.00 2.34 8.05 3 8.15V5H21V19H13.84C13.94 19.65 13.99 20.31 14 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM1 10V12C2.18 12 3.35 12.23 4.44 12.68C5.53 13.13 6.52 13.80 7.36 14.63C8.19 15.47 8.86 16.46 9.31 17.55C9.76 18.64 10 19.81 10 21H12C12 18.08 10.84 15.28 8.77 13.22C6.71 11.15 3.91 10 1 10ZM1 14V16C1.65 16 2.30 16.12 2.91 16.38C3.52 16.63 4.07 17.00 4.53 17.46C4.99 17.92 5.36 18.48 5.61 19.08C5.87 19.69 6 20.34 6 21H8C8 19.14 7.26 17.36 5.94 16.05C4.63 14.73 2.85 14 1 14ZM1 18V21H4C3.99 20.20 3.68 19.44 3.12 18.87C2.55 18.31 1.79 18.00 1 18Z", fill:"white"}}]}:{U:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{U:"path",zy:!0,N:{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", e?{U:"svg",N:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{U:"path",N:{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.tLn())}g.cY(this.element,"ytp-remote-button-active",this.isActive())}}; sW.prototype.K=function(){if(this.V.getOption("remote","quickCast"))this.V.setOption("remote","quickCast",!0);else{var e=this.G_,L=this.element;if(e.Wq())e.y5();else{e.initialize();a:{var c=g.f(e.sF.items);for(var I=c.next();!I.done;I=c.next())if(I=I.value,I.priority===1){c=I;break a}c=null}c&&(c.open(),e.Fp(L));e.Fp(L)}}this.V.logClick(this.element)};g.z(ve,g.U);ve.prototype.X=function(e){var L=this.V.S(),c=400;this.V.Y("web_player_small_hbp_settings_menu")&&L.j?c=300:L.T&&(c=200);e=this.K&&e.width>=c;this.i5(e);this.V.Y("embeds_use_parent_visibility_in_ve_logging")?this.V.logVisibility(this.element,e&&this.B):this.V.logVisibility(this.element,e)}; ve.prototype.Z=function(){if(this.G_.z_)this.G_.y5();else{var e=g.ZP(this.V.qx());e&&!e.loaded&&(e.zY("tracklist",{includeAsr:!0}).length||e.load());this.V.logClick(this.element);this.G_.Fp(this.element)}}; ve.prototype.updateBadge=function(){var e=this.V.isHdr(),L=this.V.getPresentingPlayerType(),c=L!==2&&L!==3,I=g.d5(this.V),B=c&&!!g.Q4(this.V.qx());L=B&&I.displayMode===1;I=B&&I.displayMode===2;c=(B=L||I)||!c?null:this.V.getPlaybackQuality();g.cY(this.element,"ytp-hdr-quality-badge",e);g.cY(this.element,"ytp-hd-quality-badge",!e&&(c==="hd1080"||c==="hd1440"));g.cY(this.element,"ytp-4k-quality-badge",!e&&c==="hd2160");g.cY(this.element,"ytp-5k-quality-badge",!e&&c==="hd2880");g.cY(this.element,"ytp-8k-quality-badge", !e&&c==="highres");g.cY(this.element,"ytp-3d-badge-grey",!e&&B&&L);g.cY(this.element,"ytp-3d-badge",!e&&B&&I)};g.z(f_,Mo);f_.prototype.isLoaded=function(){var e=g.PQ(this.V.qx());return e!==void 0&&e.loaded}; f_.prototype.OW=function(){g.PQ(this.V.qx())!==void 0&&this.V.getPresentingPlayerType()!==3?this.X||(this.G_.Yx(this),this.X=!0):this.X&&(this.G_.nu(this),this.X=!1);z2(this,this.isLoaded())}; f_.prototype.onSelect=function(e){this.isLoaded();e?this.V.loadModule("annotations_module"):this.V.unloadModule("annotations_module");this.V.publish("annotationvisibility",e)}; f_.prototype.KS=function(){this.X&&this.G_.nu(this);Mo.prototype.KS.call(this)};g.z(A4,g.lQ);A4.prototype.OW=function(){var e=this.V.getAvailableAudioTracks();e.length>1?(this.Ip(g.Mt(e,this.X)),this.tracks=g.YN(e,this.X,this),this.countLabel.Hw(e.length?" ("+e.length+")":""),this.publish("size-change"),this.XC(this.X(this.V.getAudioTrack())),this.enable(!0)):this.enable(!1)}; A4.prototype.GV=function(e){g.lQ.prototype.GV.call(this,e);this.V.setAudioTrack(this.tracks[e]);this.G_.zN()}; A4.prototype.X=function(e){return e.toString()};g.z(FR,Mo); FR.prototype.K=function(){var e=this.V.getPresentingPlayerType();if(e!==2&&e!==3&&g.Eq(this.V))this.X||(this.G_.Yx(this),this.X=!0,this.Z.push(this.C(this.V,"videodatachange",this.K)),this.Z.push(this.C(this.V,"videoplayerreset",this.K)),this.Z.push(this.C(this.V,"onPlaylistUpdate",this.K)),this.Z.push(this.C(this.V,"autonavchange",this.G)),e=this.V.getVideoData(),this.G(e.autonavState),this.V.logVisibility(this.element,this.X));else if(this.X){this.G_.nu(this);this.X=!1;e=g.f(this.Z);for(var L=e.next();!L.done;L= e.next())this.j6(L.value)}}; FR.prototype.G=function(e){z2(this,e!==1)}; FR.prototype.onSelect=function(e){this.V.Pl(e?2:1);this.X&&(this.V.logVisibility(this.element,this.X),this.V.logClick(this.element))}; FR.prototype.KS=function(){this.X&&this.G_.nu(this);Mo.prototype.KS.call(this)};g.z(SCv,g.ov);SCv.prototype.onClick=function(e){e.preventDefault();var L,c;(L=g.Db(this.V))==null||(c=L.T8())==null||c.y5();var I,B;(I=g.Db(this.V))==null||(B=I.c9())==null||B.Fp(e.target)};g.z(rV$,g.lQ);g.M=rV$.prototype; g.M.df=function(){var e=this.V.getPresentingPlayerType();if(e!==2&&e!==3){this.Gm=this.V.Oh();var L=this.V.getAvailableQualityLevels();if(this.X){this.G={};e=g.Fl(this.V,"getAvailableQualityData",[]);e=g.f(e);for(var c=e.next();!c.done;c=e.next())c=c.value,this.G[c.qualityLabel]=c;e=Object.keys(this.G);L[L.length-1]==="auto"&&e.push("auto");this.k9=new Set(L)}else if(this.j){c=g.Fl(this.V,"getAvailableQualityData",[]);e=[];c=g.f(c);for(var I=c.next();!I.done;I=c.next())I=I.value,this.D[I.quality]= I,I.quality&&e.push(I.quality);L[L.length-1]==="auto"&&e.push("auto")}else e=L;g.kRf(this.V)&&this.V.gw()&&e.unshift("missing-qualities");L=this.V.app.Qe();c=L.getVideoData();if(!c.K||!c.K.video||c.K.video.qualityOrdinal<1080||c.cX)L=!1;else{I=/^qsa/.test(c.clientPlaybackNonce);var B="r";c.K.id.indexOf(";")>=0&&(I=/^[a-p]/.test(c.clientPlaybackNonce),B="x");I?(L.sW("iqss",{trigger:B},!0),L=!0):L=!1}L&&e.unshift("inline-survey");this.Ip(e);L=this.V.getVideoData().cotn?!0:!1;c=this.h7.y9();c=!g.T3(this.V.S())|| !(L===void 0?0:L)||!(c===void 0||c);L=this.K;c=c===void 0?!1:c;L.VL&&g.cY(L.q0("ytp-panel-footer"),"ytp-panel-hide-footer",c===void 0?!1:c);if(e.length){this.kh();this.enable(!0);return}}this.enable(!1)}; g.M.kh=function(){if(this.X){var e=this.V.getPreferredQuality();this.k9.has(e)&&(this.T=this.V.getPlaybackQuality(),this.pS=this.V.getPlaybackQualityLabel(),e==="auto"?(this.XC(e),this.Hw(this.UC(e))):this.XC(this.pS))}else e=this.V.getPreferredQuality(),this.options[e]&&(this.T=this.V.getPlaybackQuality(),this.XC(e),e==="auto"&&this.Hw(this.UC(e)))}; g.M.GV=function(e){if(e!=="missing-qualities"){g.lQ.prototype.GV.call(this,e);var L=this.X?this.G[e]:this.D[e];var c=L==null?void 0:L.quality,I=L==null?void 0:L.formatId,B=L==null?void 0:L.paygatedQualityDetails;L=B==null?void 0:B.endpoint;if(B){var x;B=(x=this.options[e])==null?void 0:x.element;this.V.logClick(B)}if(this.X){var S,h;if((S=g.Q(L,g.nLw))==null?0:(h=S.popup)==null?0:h.notificationActionRenderer)this.V.fS("innertubeCommand",L);else if(L){this.V.fS("innertubeCommand",L);return}I?this.V.setPlaybackQuality(c, I):this.V.setPlaybackQuality(c)}else{if(this.j){var R,u;if((R=g.Q(L,g.nLw))==null?0:(u=R.popup)==null?0:u.notificationActionRenderer)this.V.fS("innertubeCommand",L);else if(L){this.V.fS("innertubeCommand",L);return}}this.V.setPlaybackQuality(e)}this.G_.y5();this.df()}}; g.M.open=function(){for(var e=g.f(Object.values(this.options)),L=e.next();!L.done;L=e.next()){L=L.value;var c=void 0;this.V.hasVe((c=L)==null?void 0:c.element)&&(c=void 0,this.V.logVisibility((c=L)==null?void 0:c.element,!0))}g.lQ.prototype.open.call(this);this.V.logClick(this.element)}; g.M.D$=function(e,L,c){var I=this;if(e==="missing-qualities")return new g.ov({U:"a",Rq:["ytp-menuitem"],N:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.V.S().D,tabindex:"0",role:"menuitemradio"},L:[{U:"div",Rq:["ytp-menuitem-label"],aq:"{{label}}"}]},L,this.UC(e));if(e!=="inline-survey"){var B,x=(B=this.X?this.G[e]:this.D[e])==null?void 0:B.paygatedQualityDetails;B=x==null?void 0:x.veType;x=x==null?void 0:x.trackingParams;L=g.lQ.prototype.D$.call(this,e,L,c);x?(this.V.createServerVe(L.element, this,!0),this.V.setTrackingParams(L.element,x)):B&&this.V.createClientVe(L.element,this,B,!0);return L}e=[{U:"span",aq:"Looks good?"}];c=g.f([!0,!1]);x=c.next();for(B={};!x.done;B={BW:void 0},x=c.next())B.BW=x.value,x=new g.U({U:"span",W:"ytp-menuitem-inline-survey-response",L:[B.BW?A7n():MLc()],N:{tabindex:"0",role:"button"}}),x.listen("click",function(S){return function(){var h=I.V.app.Qe();h.sW("iqsr",{tu:S.BW});h.getVideoData().cX=!0;I.G_.y5();I.df()}}(B)),e.push(x); return new g.ov({U:"div",W:"ytp-menuitem",N:{"aria-disabled":"true"},L:[{U:"div",Rq:["ytp-menuitem-label"],L:e}]},L)}; g.M.UC=function(e,L){L=L===void 0?!1:L;if(e==="missing-qualities")return{U:"div",aq:"Missing options?"};if(e==="inline-survey")return"";var c=this.j||this.X?[uvT(this,e,L,!1)]:[R6n(this,e)];var I=this.V.getPreferredQuality();L||I!=="auto"||e!=="auto"||(c.push(" "),this.X?c.push(uvT(this,this.pS,L,!0,["ytp-menu-label-secondary"])):this.j?c.push(uvT(this,this.T,L,!0,["ytp-menu-label-secondary"])):c.push(R6n(this,this.T,["ytp-menu-label-secondary"])));return{U:"div",L:c}};g.z(bU,PP);bU.prototype.Z=function(){PP.prototype.Z.call(this);this.D&&tT$(this)}; bU.prototype.k9=function(){this.pS()}; bU.prototype.Gm=function(){this.V.setPlaybackRate(this.X,!0)}; bU.prototype.T=function(e){PP.prototype.T.call(this,e);this.pS();tT$(this);e.preventDefault()};g.z(iU,g.U);g.M=iU.prototype;g.M.init=function(){this.k_(this.X);this.updateValue("minvalue",this.K);this.updateValue("maxvalue",this.Z)}; g.M.uy=function(e){if(!e.defaultPrevented){switch(e.keyCode){case 37:case 40:var L=-this.J;break;case 39:case 38:L=this.J;break;default:return}this.k_(this.X+L);e.preventDefault()}}; g.M.RS=function(e){var L=this.X;L+=(e.deltaX||-e.deltaY)<0?-this.D:this.D;this.k_(L);e.preventDefault()}; g.M.Y8=function(e){e=(e-g.Yr(this.G).x)/this.pS*this.range+this.K;this.k_(e)}; g.M.k_=function(e,L){L=L===void 0?"":L;e=g.j5(e,this.K,this.Z);L===""&&(L=e.toString());this.updateValue("valuenow",e);this.updateValue("valuetext",L);this.h7.style.left=(e-this.K)/this.range*(this.pS-this.Ve)+"px";this.X=e}; g.M.focus=function(){this.ye.focus()};g.z(GX,iU);GX.prototype.Gm=function(){this.V.setPlaybackRate(this.X,!0)}; GX.prototype.k_=function(e){iU.prototype.k_.call(this,e,qCc(this,e).toString());this.j&&(OjJ(this),this.k9())}; GX.prototype.updateValues=function(){var e=this.V.getPlaybackRate();qCc(this,this.X)!==e&&(this.k_(e),OjJ(this))};g.z(TAR,g.I9);TAR.prototype.focus=function(){this.X.focus()};g.z(WhM,VP);g.z(MTn,g.lQ);g.M=MTn.prototype;g.M.UC=function(e){return e==="1"?"Normal":e.toLocaleString()}; g.M.OW=function(){var e,L=(e=this.V.getVideoData())==null?void 0:e.GI();e=this.V.getPresentingPlayerType(L);this.enable(e!==2&&e!==3);vpr(this)}; g.M.Ip=function(e){g.lQ.prototype.Ip.call(this,e);this.T&&this.T.K.focus()}; g.M.H4=function(e){g.lQ.prototype.H4.call(this,e);e?(this.pS=this.C(this.V,"onPlaybackRateChange",this.onPlaybackRateChange),vpr(this),z6$(this,this.V.getPlaybackRate())):(this.j6(this.pS),this.pS=null)}; g.M.onPlaybackRateChange=function(e){var L=this.V.getPlaybackRate();!this.G&&this.D.includes(L)||swM(this,L);z6$(this,e)}; g.M.D$=function(e,L,c){return e===this.X&&fmn(this.V)?g.lQ.prototype.D$.call(this,e,L,c,{U:"div",W:"ytp-speed-slider-menu-footer",L:[this.T]}):g.lQ.prototype.D$.call(this,e,L,c)}; g.M.GV=function(e){g.lQ.prototype.GV.call(this,e);e===this.X?this.V.setPlaybackRate(this.j,!0):this.V.setPlaybackRate(Number(e),!0);fmn(this.V)&&e===this.X||this.G_.zN()}; g.M.UQ=function(e){var L=e===this.X;this.G=!1;L&&gZ(this.V)&&!fmn(this.V)?(e=new WhM(this.V),g.m4(this.G_,e)):g.lQ.prototype.UQ.call(this,e)};g.z(FhM,g.lQ);g.M=FhM.prototype;g.M.XC=function(e){g.lQ.prototype.XC.call(this,e)}; g.M.j4=function(e){return e.option.toString()}; g.M.getOption=function(e){return this.settings[e]}; g.M.UC=function(e){return this.getOption(e).text||""}; g.M.GV=function(e){g.lQ.prototype.GV.call(this,e);this.publish("settingChange",this.setting,this.settings[e].option)};g.z(DB,g.Cp);DB.prototype.wg=function(e){for(var L=g.f(Object.keys(e)),c=L.next();!c.done;c=L.next()){var I=c.value;if(c=this.s0[I]){var B=e[I].toString();I=!!e[I+"Override"];c.options[B]&&(c.XC(B),c.G.element.setAttribute("aria-checked",String(!I)),c.X.element.setAttribute("aria-checked",String(I)))}}}; DB.prototype.Je=function(e,L){this.publish("settingChange",e,L)};g.z(wZ,g.lQ);wZ.prototype.X=function(e){return e.languageCode}; wZ.prototype.UC=function(e){return this.languages[e].languageName||""}; wZ.prototype.GV=function(e){this.publish("select",e);this.V.logClick(this.element);g.yP(this.G_)};g.z(GBc,g.lQ);g.M=GBc.prototype;g.M.l7=function(e){return g.qQ(e)?"__off__":e.displayName}; g.M.UC=function(e){return e==="__off__"?"Off":e==="__translate__"?"Auto-translate":e==="__contribute__"?"Add subtitles/CC":e==="__correction__"?"Suggest caption corrections":(e==="__off__"?{}:this.tracks[e]).displayName}; g.M.GV=function(e){if(e==="__translate__")this.X.open();else if(e==="__contribute__"){this.V.pauseVideo();this.V.isFullscreen()&&this.V.toggleFullscreen();var L=g.Kb(this.V.S(),this.V.getVideoData());g.mZ(L)}else if(e==="__correction__"){this.V.pauseVideo();this.V.isFullscreen()&&this.V.toggleFullscreen();var c=gp$(this);J4(this,c);g.lQ.prototype.GV.call(this,this.l7(c));var I,B;c=(L=this.V.getVideoData().getPlayerResponse())==null?void 0:(I=L.captions)==null?void 0:(B=I.playerCaptionsTracklistRenderer)== null?void 0:B.openTranscriptCommand;this.V.fS("innertubeCommand",c);this.G_.zN();this.G&&this.V.logClick(this.G)}else{if(e==="__correction__"){this.V.pauseVideo();this.V.isFullscreen()&&this.V.toggleFullscreen();L=gp$(this);J4(this,L);g.lQ.prototype.GV.call(this,this.l7(L));var x,S;L=(c=this.V.getVideoData().getPlayerResponse())==null?void 0:(x=c.captions)==null?void 0:(S=x.playerCaptionsTracklistRenderer)==null?void 0:S.openTranscriptCommand;this.V.fS("innertubeCommand",L)}else this.V.logClick(this.element), J4(this,e==="__off__"?{}:this.tracks[e]),g.lQ.prototype.GV.call(this,e);this.G_.zN()}}; g.M.OW=function(){var e=this.V.getOptions();e=e&&e.indexOf("captions")!==-1;var L=this.V.getVideoData(),c=L&&L.sf,I,B=!((I=this.V.getVideoData())==null||!g.uf(I));I={};if(e||c){var x;if(e){var S=this.V.getOption("captions","track");I=this.V.getOption("captions","tracklist",{includeAsr:!0});var h=B?[]:this.V.getOption("captions","translationLanguages");this.tracks=g.YN(I,this.l7,this);B=g.Mt(I,this.l7);var R,u;gp$(this)&&((x=L.getPlayerResponse())==null?0:(R=x.captions)==null?0:(u=R.playerCaptionsTracklistRenderer)== null?0:u.openTranscriptCommand)&&B.push("__correction__");if(h.length&&!g.qQ(S)){if((x=S.translationLanguage)&&x.languageName){var t=x.languageName;x=h.findIndex(function(O){return O.languageName===t}); wMf(h,x)}bjc(this.X,h);B.push("__translate__")}x=this.l7(S)}else this.tracks={},B=[],x="__off__";B.unshift("__off__");this.tracks.__off__={};c&&B.unshift("__contribute__");this.tracks[x]||(this.tracks[x]=S,B.push(x));this.Ip(B);this.XC(x);S&&S.translationLanguage?this.X.XC(this.X.X(S.translationLanguage)):E8c(this.X);e&&this.j.wg(this.V.getSubtitlesUserSettings());this.countLabel.Hw(I&&I.length?" ("+I.length+")":"");this.publish("size-change");this.V.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.M.Ts=function(e){var L=this.V.getOption("captions","track");L=g.MQ(L);L.translationLanguage=this.X.languages[e];J4(this,L)}; g.M.Je=function(e,L){if(e==="reset")this.V.resetSubtitlesUserSettings();else{var c={};c[e]=L;this.V.updateSubtitlesUserSettings(c)}ijH(this,!0);this.T.start();this.j.wg(this.V.getSubtitlesUserSettings())}; g.M.dwS=function(e){e||g.PT(this.T)}; g.M.KS=function(){g.PT(this.T);g.lQ.prototype.KS.call(this)}; g.M.open=function(){g.lQ.prototype.open.call(this);this.options.__correction__&&!this.G&&(this.G=this.options.__correction__.element,this.V.createClientVe(this.G,this,167341),this.V.logVisibility(this.G,!0))};g.z(kBx,g.NE);g.M=kBx.prototype; g.M.initialize=function(){if(!this.isInitialized){var e=this.V.S();this.isInitialized=!0;try{this.AA=new rV$(this.V,this)}catch(c){g.F7(Error("QualityMenuItem creation failed"))}g.l(this,this.AA);var L=new GBc(this.V,this);g.l(this,L);e.Z||(L=new f_(this.V,this),g.l(this,L));e.enableSpeedOptions&&(L=new MTn(this.V,this),g.l(this,L));(g.Uh(e)||e.j)&&(e.K||e.Pe)&&(L=new SCv(this.V,this),g.l(this,L));e.IU&&!e.Y("web_player_move_autonav_toggle")&&(e=new FR(this.V,this),g.l(this,e));e=new A4(this.V,this); g.l(this,e);this.V.publish("settingsMenuInitialized");opv(this.settingsButton,this.sF.fR())}}; g.M.Yx=function(e){this.initialize();this.sF.Yx(e);opv(this.settingsButton,this.sF.fR())}; g.M.nu=function(e){this.z_&&this.sF.fR()<=1&&this.hide();this.sF.nu(e);opv(this.settingsButton,this.sF.fR())}; g.M.Fp=function(e){this.initialize();this.sF.fR()>0&&g.NE.prototype.Fp.call(this,e)}; g.M.y5=function(){this.Do?this.Do=!1:g.NE.prototype.y5.call(this)}; g.M.show=function(){g.NE.prototype.show.call(this);g.Y4(this.V.getRootNode(),"ytp-settings-shown")}; g.M.hide=function(){g.NE.prototype.hide.call(this);g.eZ(this.V.getRootNode(),"ytp-settings-shown")}; g.M.dZ=function(e){this.V.logVisibility(this.element,e);this.V.publish("settingsMenuVisibilityChanged",e)};g.z(JV$,g.U);g.M=JV$.prototype;g.M.onClick=function(){if(VA(this)&&(this.V.toggleSubtitles(),this.V.logClick(this.element),!this.isEnabled())){var e=!1,L=g.Vu(g.J7(),65);g.T3(this.V.S())&&L!=null&&(e=!L);e&&this.V.S().Y("web_player_nitrate_promo_tooltip")&&this.V.publish("showpromotooltip",this.element)}}; g.M.Dwl=function(e){var L,c;(L=g.Db(this.V))==null||(c=L.T8())==null||c.Fp(e)}; g.M.isEnabled=function(){var e=this.V.getOption("captions","track");return!(!e||!e.displayName)}; g.M.OW=function(){var e=VA(this),L=300;this.V.S().T&&(L=480);this.V.Y("delhi_modern_web_player_icons")&&this.updateValue("icon",wRT(this));if(this.V.S().j){this.updateValue("title",g.Zb(this.V,"Subtitles/closed captions","c"));this.update({"data-title-no-tooltip":"Subtitles/closed captions"});var c=e}else{if(e)(c=this.q0("ytp-subtitles-button-icon"))==null||c.setAttribute("fill-opacity","1"),this.updateValue("title",g.Zb(this.V,"Subtitles/closed captions","c")),this.update({"data-title-no-tooltip":"Subtitles/closed captions"}); else{if(this.V.Y("delhi_modern_web_player_icons")){var I;(I=this.q0("ytp-subtitles-button-icon"))==null||I.getElementsByTagName("svg")[0].setAttribute("fill-opacity","0.3")}else{var B;(B=this.q0("ytp-subtitles-button-icon"))==null||B.setAttribute("fill-opacity","0.3")}this.updateValue("title","Subtitles/closed captions unavailable");this.update({"data-title-no-tooltip":"Subtitles/closed captions unavailable"})}c=!0}this.tooltip.A9();c=c&&this.V.LS().getPlayerSize().width>=L;this.i5(c);this.V.Y("embeds_use_parent_visibility_in_ve_logging")? this.V.logVisibility(this.element,c&&this.B):this.V.logVisibility(this.element,c);e?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; g.M.vy=function(e){g.U.prototype.vy.call(this,e);this.V.S().Y("embeds_use_parent_visibility_in_ve_logging")&&this.V.logVisibility(this.element,this.z_&&e)};g.z(g.C_,g.U);g.M=g.C_.prototype;g.M.canShowCountdown=function(){return!NG(this)&&!aU(this)}; g.M.Ty=function(){var e=this.api.LS().getPlayerSize().width,L=this.D;this.api.S().T&&(L=400);L=e>=L&&(!aU(this)||!g.E(this.api.getPlayerStateObject(),64));this.i5(L);g.cY(this.element,"ytp-time-display-allow-autohide",L&&e<400);e=this.api.getProgressState();if(L){var c=this.api.getPresentingPlayerType();L=this.api.getCurrentTime(c,!1);this.K&&(L-=e.airingStart);NG(this)&&(L-=this.By.startTimeMs/1E3);this.canShowCountdown()&&this.Z&&(L-=this.api.getDuration(c,!1));var I=g.Te(L);this.G!==I&&(this.updateValue("currenttime", I),this.G=I);c=NG(this)?(this.By.endTimeMs-this.By.startTimeMs)/1E3:this.api.getDuration(c,!1);I=g.Te(c);this.j!==I&&(this.updateValue("duration",I),this.j=I,L&&(L=g.nC("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.Te(L,!0),DURATION:g.Te(c,!0)}),this.updateValue("timeDisplayAriaLabel",L)))}VTH(this,e.isAtLiveHead);COr(this,this.api.getLoopRange())}; g.M.onLoopRangeChange=function(e){var L=this.By!==e;this.By=e;L&&(this.Ty(),amc(this))}; g.M.KZW=function(){this.api.setLoopRange(null)}; g.M.J70=function(){this.Z=!this.Z;this.Ty()}; g.M.onVideoDataChange=function(e,L,c){this.updateVideoData((this.api.S().Y("enable_topsoil_wta_for_halftime")||this.api.S().Y("enable_topsoil_wta_for_halftime_live_infra"))&&c===2?this.api.getVideoData(1):L);this.Ty();amc(this)}; g.M.updateVideoData=function(e){this.mB=e.isLivePlayback&&!e.x9;this.K=qU(e);this.isPremiere=e.isPremiere;g.cY(this.element,"ytp-live",aU(this));this.api.Y("delhi_modern_web_player")&&this.q0("ytp-time-wrapper").classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown())}; g.M.onClick=function(e){e.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.M.KS=function(){this.X&&this.X();g.U.prototype.KS.call(this)};g.z(msM,g.U);g.M=msM.prototype;g.M.OB=function(){var e=this.api.TV();this.Z!==e&&(this.Z=e,NAn(this,this.api.getVolume(),this.api.isMuted()))}; g.M.B7=function(e){this.i5(e.width>=350)}; g.M.W$=function(e){if(!e.defaultPrevented){var L=e.keyCode,c=null;L===37?c=this.volume-5:L===39?c=this.volume+5:L===36?c=0:L===35&&(c=100);c!==null&&(c=g.j5(c,0,100),c===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),e.preventDefault())}}; g.M.c$=function(e){var L=e.deltaX||-e.deltaY;e.deltaMode?this.api.setVolume(this.volume+(L<0?-10:10)):this.api.setVolume(this.volume+g.j5(L/10,-10,10));e.preventDefault()}; g.M.mw_=function(){mW(this,this.X,!0,this.K,this.api.o8());this.D=this.volume;this.api.isMuted()&&this.api.unMute()}; g.M.y3=function(e){var L=this.Z?78:52,c=this.Z?18:12;e-=g.Yr(this.J).x;this.api.setVolume(g.j5((e-c/2)/(L-c),0,1)*100)}; g.M.H9q=function(){mW(this,this.X,!1,this.K,this.api.o8());this.volume===0&&(this.api.mute(),this.api.setVolume(this.D))}; g.M.onVolumeChange=function(e){NAn(this,e.volume,e.muted)}; g.M.oV=function(){mW(this,this.X,this.isDragging,this.K,this.api.o8())}; g.M.KS=function(){g.U.prototype.KS.call(this);g.eZ(this.T,"ytp-volume-slider-active")};g.z(yA,g.U); yA.prototype.onVideoDataChange=function(){var e=this.api.S();this.Nx();this.visible=!!this.api.getVideoData().videoId&&!this.api.getVideoData(1).xx;this.i5(this.visible);this.api.logVisibility(this.element,this.visible&&this.B);if(this.visible){var L=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",L)}e.Z&&(this.X&&(this.j6(this.X),this.X=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.Y4(this.element,"no-link")); L=this.api.S();e=this.api.getVideoData();var c="";L.Z||(L=g.RD(L),L.indexOf("www.")===0&&(L=L.substring(4)),c=g.TC(e)?"Watch on YouTube Music":L==="youtube.com"?"Watch on YouTube":g.nC("Watch on $WEBSITE",{WEBSITE:L}));this.updateValue("title",c)}; yA.prototype.onClick=function(e){this.api.Y("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var L=this.api.S(),c=this.api.getVideoUrl(!g.WZ(e),!1,!0,!0);if(g.Uh(L)){var I={};g.Uh(L)&&g.Fl(this.api,"addEmbedsConversionTrackingParams",[I]);c=g.WO(c,I)}g.v8(c,this.api,e);this.api.Y("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; yA.prototype.Nx=function(){var e={U:"svg",N:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},L:[{U:"path",zy:!0,W:"ytp-svg-fill",N:{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 "}}]}, L=28666,c=this.api.getVideoData();this.api.isEmbedsShortsMode()?e={U:"svg",N:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},L:[{U:"path",N:{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.TC(c)&&(e={U:"svg",N:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},L:[{U:"path",N:{d:"M33.96 20.91V15.45L37.43 4.11H34.84L33.52 9.26C33.22 10.44 32.95 11.67 32.75 12.81H32.59C32.48 11.81 32.16 10.50 31.84 9.24L30.56 4.11H27.97L31.39 15.45V20.91H33.96Z",fill:"white"}},{U:"path",N:{d:"M40.92 8.31C37.89 8.31 36.85 10.06 36.85 13.83V15.62C36.85 19.00 37.50 21.12 40.86 21.12C44.17 21.12 44.88 19.10 44.88 15.62V13.83C44.88 10.46 44.20 8.31 40.92 8.31ZM42.21 16.73C42.21 18.37 41.92 19.40 40.87 19.40C39.84 19.40 39.55 18.36 39.55 16.73V12.69C39.55 11.29 39.75 10.04 40.87 10.04C42.05 10.04 42.21 11.36 42.21 12.69V16.73Z", fill:"white"}},{U:"path",N:{d:"M49.09 21.10C50.55 21.10 51.46 20.49 52.21 19.39H52.32L52.43 20.91H54.42V8.55H51.78V18.48C51.50 18.97 50.85 19.33 50.24 19.33C49.47 19.33 49.23 18.72 49.23 17.70V8.55H46.60V17.82C46.60 19.83 47.18 21.10 49.09 21.10Z",fill:"white"}},{U:"path",N:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{U:"path",N:{d:"M64.69 21.10C66.15 21.10 67.06 20.49 67.81 19.39H67.92L68.03 20.91H70.02V8.55H67.38V18.48C67.10 18.97 66.45 19.33 65.84 19.33C65.07 19.33 64.83 18.72 64.83 17.70V8.55H62.20V17.82C62.20 19.83 62.78 21.10 64.69 21.10Z", fill:"white"}},{U:"path",N:{d:"M77.49 8.28C76.21 8.28 75.29 8.84 74.68 9.75H74.55C74.63 8.55 74.69 7.53 74.69 6.72V3.45H72.14L72.13 14.19L72.14 20.91H74.36L74.55 19.71H74.62C75.21 20.52 76.12 21.03 77.33 21.03C79.34 21.03 80.20 19.30 80.20 15.62V13.71C80.20 10.27 79.81 8.28 77.49 8.28ZM77.58 15.62C77.58 17.92 77.24 19.29 76.17 19.29C75.67 19.29 74.98 19.05 74.67 18.60V11.25C74.94 10.55 75.54 10.04 76.21 10.04C77.29 10.04 77.58 11.35 77.58 13.74V15.62Z",fill:"white"}},{U:"path",N:{d:"M89.47 13.51C89.47 10.53 89.17 8.32 85.74 8.32C82.51 8.32 81.79 10.47 81.79 13.63V15.80C81.79 18.88 82.45 21.12 85.66 21.12C88.20 21.12 89.51 19.85 89.36 17.39L87.11 17.27C87.08 18.79 86.73 19.41 85.72 19.41C84.45 19.41 84.39 18.20 84.39 16.40V15.56H89.47V13.51ZM85.68 9.98C86.90 9.98 86.99 11.13 86.99 13.08V14.09H84.39V13.08C84.39 11.15 84.47 9.98 85.68 9.98Z", fill:"white"}},{U:"path",N:{d:"M93.18 20.86H95.50V13.57C95.50 11.53 95.46 9.36 95.30 6.46H95.56L95.99 8.24L98.73 20.86H101.09L103.78 8.24L104.25 6.46H104.49C104.37 9.03 104.30 11.35 104.30 13.57V20.86H106.63V4.06H102.67L101.25 10.27C100.65 12.85 100.22 16.05 99.97 17.68H99.78C99.60 16.02 99.15 12.83 98.56 10.29L97.10 4.06H93.18V20.86Z",fill:"white"}},{U:"path",N:{d:"M111.27 21.05C112.73 21.05 113.64 20.44 114.39 19.34H114.50L114.61 20.86H116.60V8.50H113.96V18.43C113.68 18.92 113.03 19.28 112.42 19.28C111.65 19.28 111.41 18.67 111.41 17.65V8.50H108.78V17.77C108.78 19.78 109.36 21.05 111.27 21.05Z", fill:"white"}},{U:"path",N:{d:"M121.82 21.12C124.24 21.12 125.59 20.05 125.59 17.86C125.59 15.87 124.59 15.06 122.21 13.44C121.12 12.72 120.53 12.27 120.53 11.21C120.53 10.42 121.02 10.00 121.91 10.00C122.88 10.00 123.21 10.64 123.25 12.46L125.41 12.34C125.59 9.49 124.57 8.27 121.95 8.27C119.47 8.27 118.28 9.34 118.28 11.46C118.28 13.42 119.21 14.31 120.96 15.53C122.51 16.60 123.36 17.27 123.36 18.16C123.36 18.89 122.85 19.42 121.96 19.42C120.94 19.42 120.36 18.54 120.46 17.21L118.27 17.25C117.93 19.81 119.13 21.12 121.82 21.12Z", fill:"white"}},{U:"path",N:{d:"M128.45 6.93C129.35 6.93 129.77 6.63 129.77 5.39C129.77 4.23 129.32 3.87 128.45 3.87C127.57 3.87 127.14 4.19 127.14 5.39C127.14 6.63 127.55 6.93 128.45 6.93ZM127.23 20.86H129.76V8.50H127.23V20.86Z",fill:"white"}},{U:"path",N:{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"}}]},L=216163);g.TC(c)?g.Y4(this.element,"ytp-youtube-music-button"):g.eZ(this.element,"ytp-youtube-music-button");e.N=Object.assign({},e.N,{"aria-hidden":"true"});this.updateValue("logoSvg",e);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,L,!0)}; yA.prototype.vy=function(e){g.U.prototype.vy.call(this,e);this.api.logVisibility(this.element,this.visible&&e)};g.z(pR6,g.zn);g.M=pR6.prototype;g.M.vR=function(){if(this.V.Y("web_player_max_seekable_on_ended")||!g.E(this.V.getPlayerStateObject(),2))this.progressBar.Ty(),this.ye.Ty()}; g.M.Qv=function(){this.BA();this.jk.K?this.vR():this.progressBar.Vx()}; g.M.t5=function(){this.vR();this.D.start()}; g.M.BA=function(){var e;if(e=!this.V.S().K){e=this.progressBar;var L=2*g.qu()*e.j,c=e.Z;e=(c.X-c.K)*1E3/e.api.getPlaybackRate()/L<300}e=e&&this.V.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;L=!e;this.jk.K||(e=L=!1);L?this.Gm||(this.Gm=this.C(this.V,"progresssync",this.vR)):this.Gm&&(this.j6(this.Gm),this.Gm=null);e?this.D.isActive()||this.D.start():this.D.stop()}; g.M.Nx=function(){var e=this.V.TV(),L=this.V.LS().getPlayerSize(),c=this.V.LS().hO,I=jwr(this),B=HjJ(this),x=Math.max(L.width-I*2,100);if(this.sY!==L.width||this.DY!==e||this.V.Y("web_player_rtr_ctrls")&&this.zK!==c)this.sY=L.width,this.DY=e,this.zK=c,this.K.element.style.width=B+"px",this.K.element.style.left=I+"px",g.cVc(this.progressBar,I,B,e),this.V.Aq().RP=B;c=this.G;x=Math.min(570*(e?1.5:1),x);e=Math.min(413*(e?1.5:1),Math.round((L.height-lmv(this))*.82));c.maxWidth=x;c.maxHeight=e;c.mJ();this.BA(); this.V.S().Y("html5_player_dynamic_bottom_gradient")&&H46(this.x9,L.height)}; g.M.onVideoDataChange=function(){var e=this.V.getVideoData();this.He.style.background=e.xx?e.l9:"";this.h7&&Xjn(this.h7,e.showSeekingControls);this.pS&&Xjn(this.pS,e.showSeekingControls)}; g.M.IT=function(){return this.K.element};g.z(PO6,J2);g.M=PO6.prototype;g.M.w3=function(e){e.target!==this.dismissButton.element&&(this.onClickCommand&&this.V.fS("innertubeCommand",this.onClickCommand),this.q$())}; g.M.q$=function(){this.enabled=!1;this.D.hide()}; g.M.onVideoDataChange=function(e,L){e==="dataloaded"&&QwM(this);e=[];var c,I,B,x;if(L=(x=g.Q((c=L.getWatchNextResponse())==null?void 0:(I=c.playerOverlays)==null?void 0:(B=I.playerOverlayRenderer)==null?void 0:B.suggestedActionsRenderer,gCw))==null?void 0:x.suggestedActions)for(c=g.f(L),I=c.next();!I.done;I=c.next())(I=g.Q(I.value,kye))&&g.Q(I.trigger,GyZ)&&e.push(I);if(e.length!==0){c=[];e=g.f(e);for(I=e.next();!I.done;I=e.next())if(I=I.value,B=g.Q(I.trigger,GyZ))x=(x=I.title)?g.o9(x):"View Chapters", L=B.timeRangeStartMillis,B=B.timeRangeEndMillis,L!=null&&B!=null&&I.tapCommand&&(c.push(new g.pC(L,B,{priority:9,namespace:"suggested_action_button_visible",id:x})),this.suggestedActions[x]=I.tapCommand);this.V.Lb(c)}}; g.M.Q7=function(){return this.enabled}; g.M.dZ=function(){this.enabled?this.t7.start():D7(this);this.z8()}; g.M.KS=function(){QwM(this);J2.prototype.KS.call(this)};var wv={},$X=(wv.CHANNEL_NAME="ytp-title-channel-name",wv.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",wv.LINK="ytp-title-link",wv.SESSIONLINK="yt-uix-sessionlink",wv.SUBTEXT="ytp-title-subtext",wv.TEXT="ytp-title-text",wv.TITLE="ytp-title",wv);g.z(jY,g.U);jY.prototype.onClick=function(e){this.api.logClick(this.element);var L=this.api.S(),c=this.api.getVideoUrl(!g.WZ(e),!1,!0);g.Uh(L)&&(L={},g.Fl(this.api,"addEmbedsConversionTrackingParams",[L]),c=g.WO(c,L));g.v8(c,this.api,e)}; jY.prototype.OW=function(){var e=this.api.getVideoData(),L=this.api.S();this.updateValue("title",e.title);var c={U:"a",W:$X.CHANNEL_NAME,N:{href:"{{channelLink}}",target:"_blank"},aq:"{{channelName}}"};this.api.S().Z&&(c={U:"span",W:$X.CHANNEL_NAME,aq:"{{channelName}}",N:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",c);dsr(this);this.api.getPresentingPlayerType()===2&&(c=this.api.getVideoData(),c.videoId&&c.isListed&&c.author&&c.DY&&c.profilePicture?(this.updateValue("channelLink", c.DY),this.updateValue("channelName",c.author),this.updateValue("channelTitleFocusable","0")):dsr(this));c=L.externalFullscreen||!this.api.isFullscreen()&&L.Sn;g.cY(this.link,$X.FULLERSCREEN_LINK,c);L.h7||!e.videoId||c||e.xx||L.Z?this.X&&(this.updateValue("url",null),this.j6(this.X),this.X=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.X||(this.X=this.C(this.link,"click",this.onClick)));L.Z&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.Uh(L)?e.expandedTitle: e.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.z(g.He,g.U);g.M=g.He.prototype;g.M.setEnabled=function(e){if(this.type!=null)if(e)switch(this.type){case 3:case 2:XRf(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.T=e}; g.M.pZ=function(e,L,c,I,B,x,S,h){if(!this.k9||this.env.T){this.type===3&&this.Vx();this.type!==1&&(g.XV(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.T&&this.fade.show(),this.K&&this.K.dispose(),(this.K=this.api.UU())&&this.K.subscribe("l",this.ZD,this));if(h){var R=g.LH(this.bg).height||141;this.Ve.style.bottom=R+2+"px"}else this.Ve.style.display="none";this.env.Y("delhi_modern_web_player")?(this.update({pillTimeStamp:c,pillTitle:x!=null?x:"",eduText:h!=null?h:""}),g.Y4(this.element,"ytp-tooltip-progress-bar-style")): (this.update({text:c,title:x!=null?x:"",eduText:h!=null?h:""}),g.cY(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!x));this.api.isInline()&&g.Y4(this.bottomText,"ytp-modern-tooltip-text");g.cY(this.element,"ytp-text-detail",!!I);c=-1;this.K&&(c=cN(this.K,243*this.scale),this.env.Y("web_l3_storyboard")&&this.K.levels.length===4&&(c=this.K.levels.length-1),c=nPv(this.K,c,L));YC$(this,c);if(S)switch(L=g.LH(this.element).width,S){case 1:this.title.style.right="0";this.title.style.textAlign= "left";break;case 2:this.title.style.right=L+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=L/2+"px",this.title.style.textAlign="center"}Khn(this,!!I,e,B)}}; g.M.V$=function(){this.type===1&&this.Vx()}; g.M.iD=function(e,L){if(this.type)if(this.type===3)this.Vx();else return;Usf(this,e,3,L)}; g.M.A9=function(){this.X&&!this.J&&this.X.hasAttribute("title")&&(this.Z=this.X.getAttribute("title")||"",this.X.removeAttribute("title"),this.T&&XRf(this))}; g.M.ZD=function(e,L){e<=this.G&&this.G<=L&&(e=this.G,this.G=NaN,YC$(this,e))}; g.M.Wp=function(){KG6(this.K,this.G,243*this.scale)}; g.M.Vx=function(){switch(this.type){case 2:var e=this.X;e.removeEventListener("mouseout",this.D);e.addEventListener("mouseover",this.j);e.removeEventListener("blur",this.D);e.addEventListener("focus",this.j);npn(this);break;case 3:npn(this);break;case 1:this.K&&(this.K.unsubscribe("l",this.ZD,this),this.K=null),this.api.removeEventListener("videoready",this.pS),this.h7.stop()}this.type=null;this.T&&this.fade.hide()}; g.M.B_=function(){if(this.X)for(var e=0;e=0;L--)if(this.ZC[L]===e){this.ZC.splice(L,1);break}d0(this.jk,64,this.ZC.length>0)}; g.M.Mf=function(){this.api.G8()&&this.api.Ph();return!!this.A4||oUr(this)||g.BP.prototype.Mf.call(this)}; g.M.DC=function(){var e=!this.Mf(),L=e&&this.api.G8()&&!g.E(this.api.getPlayerStateObject(),2)&&!this.api.getVideoData().xx&&!this.api.S().Z&&!this.api.isEmbedsShortsMode(),c=this.Fy&&g.lf(this.api)&&g.E(this.api.getPlayerStateObject(),128);e||c?(this.qc.show(),this.UZ.show()):(this.qc.hide(),this.UZ.hide(),this.api.B_(this.oF.element));L?this.UV.Fp():this.UV.y5();this.HR&&$sH(this.HR,this.UUm||!e);this.api.Y("web_player_hide_overflow_button_if_empty_menu")&&S0$(this);g.BP.prototype.DC.call(this)}; g.M.SE=function(e,L,c,I,B){e.style.left="";e.style.top="";e.style.bottom="";var x=g.LH(e),S=I||this.HR&&g.vz(this.HR.IT(),L),h=I=null;c!=null&&S||(I=g.LH(L),h=g.nU(L,this.api.getRootNode()),c==null&&(c=h.x+I.width/2));c-=x.width/2;S?(L=this.HR,I=jwr(L),h=HjJ(L),S=this.api.LS().getPlayerSize().height,c=g.j5(c,I,I+h-x.width),x=S-lmv(L)-x.height):g.vz(this.oF.element,L)?(L=this.api.LS().getPlayerSize().width,c=g.j5(c,12,L-x.width-12),x=this.TV()?this.Um:this.qz,this.api.S().playerStyle==="gvn"&&(x+= 20),this.Fy&&(x-=this.TV()?26:18)):(L=this.api.LS().getPlayerSize(),c=g.j5(c,12,L.width-x.width-12),x=h.y>(L.height-I.height)/2?h.y-x.height-12:h.y+I.height+12);e.style.top=x+(B||0)+"px";e.style.left=c+"px"}; g.M.Qv=function(e){e&&(this.api.B_(this.oF.element),this.HR&&this.api.B_(this.HR.IT()));this.JV&&(g.cY(this.contextMenu.element,"ytp-autohide",e),g.cY(this.contextMenu.element,"ytp-autohide-active",!0));g.BP.prototype.Qv.call(this,e)}; g.M.w2=function(){g.BP.prototype.w2.call(this);this.JV&&(g.cY(this.contextMenu.element,"ytp-autohide-active",!1),this.JV&&(this.contextMenu.hide(),this.TY&&this.TY.hide()))}; g.M.CB=function(e,L){var c=this.api.LS().getPlayerSize();c=new g.$r(0,0,c.width,c.height);if(e||this.jk.K&&!this.Mf()){if(this.api.S().qk||L)e=this.TV()?this.Um:this.qz,c.top+=e,c.height-=e;this.HR&&(c.height-=lmv(this.HR))}return c}; g.M.OB=function(e){var L=this.api.getRootNode();e?L.parentElement?(L.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.S().externalFullscreen||(L.parentElement.insertBefore(this.hP.element,L),L.parentElement.insertBefore(this.pK.element,L.nextSibling))):g.A9(Error("Player not in DOM.")):(L.setAttribute("aria-label","YouTube Video Player"),this.hP.detach(),this.pK.detach());this.Nx();this.N2()}; g.M.TV=function(){var e=this.api.S();return this.api.isFullscreen()&&!e.T||!1}; g.M.showControls=function(e){this.Wx=!e;this.DC()}; g.M.Nx=function(){var e=this.TV();this.tooltip.scale=e?1.5:1;this.contextMenu&&g.cY(this.contextMenu.element,"ytp-big-mode",e);this.DC();this.api.Y("web_player_hide_overflow_button_if_empty_menu")||S0$(this);this.N2();var L=this.api.isEmbedsShortsMode();L&&e?(e=(this.api.LS().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.l3(this.oF.element,"padding-left",e+"px"),g.l3(this.oF.element,"padding-right",e+"px")):L&&(g.l3(this.oF.element,"padding-left",""),g.l3(this.oF.element,"padding-right", ""));g.BP.prototype.Nx.call(this)}; g.M.oB=function(){if(oUr(this)&&!g.lf(this.api))return!1;var e=this.api.getVideoData();return!g.Uh(this.api.S())||this.api.getPresentingPlayerType()===2||!this.OU||((e=this.OU||e.OU)?(e=e.embedPreview)?(e=e.thumbnailPreviewRenderer,e=e.videoDetails&&g.Q(e.videoDetails,mSM)||null):e=null:e=null,e&&e.collapsedRenderer&&e.expandedRenderer)?g.BP.prototype.oB.call(this):!1}; g.M.N2=function(){g.BP.prototype.N2.call(this);this.api.logVisibility(this.title.element,!!this.Ht);this.NV&&this.NV.vy(!!this.Ht);this.channelAvatar.vy(!!this.Ht);this.overflowButton&&this.overflowButton.vy(this.ge()&&!!this.Ht);this.shareButton&&this.shareButton.vy(!this.ge()&&!!this.Ht);this.R2&&this.R2.vy(!this.ge()&&!!this.Ht);this.searchButton&&this.searchButton.vy(!this.ge()&&!!this.Ht);this.copyLinkButton&&this.copyLinkButton.vy(!this.ge()&&!!this.Ht);if(!this.Ht){this.api.B_(this.oF.element); for(var e=0;e5&&L.sW("glrs",{cmt:c});L.seekTo(0,{seekSource:58});L.sW("glrre",{cmt:c})}}; QA.prototype.KS=function(){this.X=null;g.p.prototype.KS.call(this)};g.z(g.dZ,uc);g.M=g.dZ.prototype;g.M.isView=function(){return!0}; g.M.bI=function(){var e=this.mediaElement.getCurrentTime();if(e1;Qd(e.rq(),I-.01)&&!B&&(EW(this,4),c.isActive=!1,c.Pz=c.Pz||c.isActive,(this.B===1?this.X:this.K).sW("sbh",{}),L.isActive=!0,L.Pz=L.Pz||L.isActive,this.B!==0&&(this.X.getVideoData().Zd=!0));e=this.G.K;if(this.G.X.isActive&&e.isActive&&(EW(this,5),this.B!==0)){e=this.K.Hh();c=this.X.Hh(); this.X.sW("sbs",{citag:c==null?void 0:c.itag,nitag:e==null?void 0:e.itag});this.K.sW("gitags",{pitag:c==null?void 0:c.itag,citag:e==null?void 0:e.itag});var x;(x=this.K)==null||x.WX()}}}; g.M.GZ=function(){this.Jb()&&this.a9("player-reload-after-handoff")}; g.M.a9=function(e,L){L=L===void 0?{}:L;if(!this.We()&&this.status.status!==6){var c=this.status.status>=4&&e!=="player-reload-after-handoff";this.status={status:Infinity,error:e};if(this.X&&this.K){var I=this.K.getVideoData().clientPlaybackNonce;this.X.Zg(new g.hQ("dai.transitionfailure",Object.assign(L,{cpn:I,transitionTimeMs:this.r7,msg:e})));this.X.Pm(c)}this.QT.reject(e);this.dispose()}}; g.M.Jb=function(){return this.status.status>=4&&this.status.status<6}; g.M.KS=function(){sEM(this);this.X.unsubscribe("newelementrequired",this.GZ,this);if(this.Z){var e=this.Z.K;this.Z.X.Dp.unsubscribe("updateend",this.mx,this);e.Dp.unsubscribe("updateend",this.mx,this)}g.p.prototype.KS.call(this)}; g.M.Yh=function(e){g.or(e,128)&&this.a9("player-error-event")};g.z(K_,g.p);K_.prototype.clearQueue=function(e,L){e=e===void 0?!1:e;L=L===void 0?!1:L;this.G&&this.G.reject("Queue cleared");this.app.S().Y("html5_gapless_fallback_on_qoe_restart_v2")||L&&this.K&&this.K.Pm(!1);YX(this,e)}; K_.prototype.jG=function(){return!this.X}; K_.prototype.Jb=function(){var e;return((e=this.Z)==null?void 0:e.Jb())||!1}; K_.prototype.KS=function(){YX(this);g.p.prototype.KS.call(this)};g.z(gUc,g.Yg);g.M=gUc.prototype;g.M.getVisibilityState=function(e,L,c,I,B,x,S,h){return e?4:ZIM()?3:L?2:c?1:I?5:B?7:x?8:S?9:h?10:0}; g.M.xk=function(e){this.fullscreen!==e&&(this.fullscreen=e,this.dZ())}; g.M.setMinimized=function(e){this.K!==e&&(this.K=e,this.dZ())}; g.M.setInline=function(e){this.inline!==e&&(this.inline=e,this.dZ())}; g.M.g4=function(e){this.pictureInPicture!==e&&(this.pictureInPicture=e,this.dZ())}; g.M.setSqueezeback=function(e){this.Z!==e&&(this.Z=e,this.dZ())}; g.M.tY=function(e){this.G!==e&&(this.G=e,this.dZ())}; g.M.YI=function(){return this.X}; g.M.s5=function(){return this.fullscreen!==0}; g.M.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.M.Vr=function(){return this.fullscreen}; g.M.isMinimized=function(){return this.K}; g.M.isInline=function(){return this.inline}; g.M.isBackground=function(){return ZIM()}; g.M.iE=function(){return this.pictureInPicture}; g.M.Gj=function(){return!1}; g.M.BF=function(){return this.Z}; g.M.gP=function(){return this.G}; g.M.dZ=function(){this.publish("visibilitychange");var e=this.getVisibilityState(this.YI(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.iE(),this.Gj(),this.BF(),this.gP());e!==this.j&&this.publish("visibilitystatechange");this.j=e}; g.M.KS=function(){jaR(this.B);g.Yg.prototype.KS.call(this)};g.z(g.n_,g.p);g.M=g.n_.prototype;g.M.KS=function(){this.videoData=this.playerState=null;g.p.prototype.KS.call(this)}; g.M.addCueRange=function(){}; g.M.b3=function(){}; g.M.y4=function(){}; g.M.zo=function(){return!1}; g.M.v0=function(){return!1}; g.M.Ug=function(){}; g.M.BL=function(){}; g.M.kP=function(){return[]}; g.M.yO=function(){}; g.M.getAudioTrack=function(){return this.getVideoData().DO}; g.M.Wj=function(){return null}; g.M.getAvailableAudioTracks=function(){return[]}; g.M.Oh=function(){return[]}; g.M.B3=function(){return[]}; g.M.Yz=function(){return""}; g.M.eG=function(){return[]}; g.M.M6=function(){}; g.M.RO=function(){return 0}; g.M.getCurrentTime=function(){return 0}; g.M.Pj=function(){}; g.M.Hh=function(){}; g.M.b5=function(){return{}}; g.M.getDuration=function(){return 0}; g.M.t_=function(){return 0}; g.M.sR=function(){return 0}; g.M.fl=function(){return!1}; g.M.t1=function(){return 0}; g.M.u2=function(){return 0}; g.M.AB=BM(7);g.M.w$=function(){return 0}; g.M.Q6=function(){return!1}; g.M.wP=function(){return 0}; g.M.Nw=function(){return null}; g.M.y0=function(){return null}; g.M.S6=function(){return 0}; g.M.Tw=function(){return 0}; g.M.GY=function(){return g.Z(function(e){g.AJ(e)})}; g.M.ST=BM(15);g.M.getPlaybackQuality=function(){return"auto"}; g.M.getPlaybackRate=function(){return 1}; g.M.getPlayerState=function(){this.playerState||(this.playerState=new g.WX);return this.playerState}; g.M.getPlayerType=function(){return 0}; g.M.getPlaylistSequenceForTime=function(){return null}; g.M.V9=function(){return function(){}}; g.M.vt=function(){return""}; g.M.getPreferredQuality=function(){return"unknown"}; g.M.uw=function(){}; g.M.getProximaLatencyPreference=function(){return 0}; g.M.KP=function(){return h1}; g.M.UU=function(){return null}; g.M.getStoryboardFormat=function(){return null}; g.M.getStreamTimeOffset=function(){return 0}; g.M.LR=function(){return 0}; g.M.FF=function(){return 0}; g.M.Hj=function(){return{ke:[],rS:[],currentTime:0,fY:"",droppedVideoFrames:0,isGapless:!1,jG:!0,R3:0,hN:0,sJ:0,Kh:0,Z1:0,UJ:[],HZ:[],l6:null,playerState:this.getPlayerState(),i6:null,Jz:"",totalVideoFrames:0}}; g.M.getUserAudio51Preference=function(){return 0}; g.M.getUserPlaybackQualityPreference=function(){return""}; g.M.getVideoData=function(){this.videoData||(this.videoData=new g.RI(this.XM),g.l(this,this.videoData));return this.videoData}; g.M.bK=function(){return null}; g.M.wy=function(){return null}; g.M.Am=function(){}; g.M.getVideoLoadedFraction=function(){return 0}; g.M.o4=function(){}; g.M.handleError=function(){}; g.M.Pm=function(){}; g.M.Rv=function(){}; g.M.xY=BM(40);g.M.FK=function(){return!1}; g.M.hasSupportedAudio51Tracks=function(){return!1}; g.M.fX=function(){return!1}; g.M.YI=function(){return!1}; g.M.isAtLiveHead=function(){return!1}; g.M.m9=function(){return!0}; g.M.isGapless=function(){return!1}; g.M.isHdr=function(){return!1}; g.M.QE=function(){return!1}; g.M.NQ=function(){return!1}; g.M.I3=function(){return!1}; g.M.isProximaLatencyEligible=function(){return!1}; g.M.jG=function(){return!0}; g.M.kK=function(){return!1}; g.M.xP=function(){return!1}; g.M.p5=function(){}; g.M.In=function(){}; g.M.WX=function(){}; g.M.eL=function(){}; g.M.yW=function(){}; g.M.gD=function(){}; g.M.Ff=function(){}; g.M.Hc=BM(50);g.M.rg=BM(21);g.M.Nd=function(){}; g.M.pauseVideo=function(){}; g.M.prefetchKeyPlay=function(){}; g.M.playVideo=function(){return g.Z(function(e){return e.return()})}; g.M.eq=function(){}; g.M.S9=BM(27);g.M.bz=BM(33);g.M.eD=function(){}; g.M.sW=function(){}; g.M.Hq=function(){}; g.M.Wo=function(){}; g.M.w4=function(){}; g.M.Zg=function(){}; g.M.Ti=function(){}; g.M.yc=function(){}; g.M.IJ=function(){}; g.M.kc=function(){}; g.M.Wl=function(){}; g.M.f6=function(){}; g.M.removeCueRange=function(){}; g.M.Z$=function(){}; g.M.RU=function(){return[]}; g.M.o1=function(){}; g.M.yx=function(){}; g.M.Zi=function(){}; g.M.W6=function(){}; g.M.Fu=function(){}; g.M.qL=function(){}; g.M.seekTo=function(){}; g.M.sendAbandonmentPing=function(){}; g.M.sendVideoStatsEngageEvent=function(){}; g.M.O0=function(){}; g.M.setLoop=function(){}; g.M.NI=function(){}; g.M.setMediaElement=function(){}; g.M.Rf=function(){}; g.M.setPlaybackRate=function(){}; g.M.BM=function(){}; g.M.F0=function(){}; g.M.pu=function(){}; g.M.setProximaLatencyPreference=function(){}; g.M.cB=function(){}; g.M.yK=function(){}; g.M.Yt=function(){}; g.M.w1=function(){}; g.M.iT=function(){}; g.M.setUserAudio51Preference=function(){}; g.M.fd=function(){}; g.M.K2=function(){return!1}; g.M.eT=function(){}; g.M.LV=function(){return!1}; g.M.WH=function(){}; g.M.Cs=function(){}; g.M.Oe=function(){}; g.M.stopVideo=function(){}; g.M.subscribe=function(){return NaN}; g.M.xw=function(){}; g.M.togglePictureInPicture=function(){}; g.M.Lq=function(){return 0}; g.M.unsubscribe=function(){return!1}; g.M.xG=function(){}; g.M.oL=function(){return!1}; g.M.f8=function(){}; g.M.T9=function(){}; g.M.m5=function(){};g.z(cb,g.p);g.M=cb.prototype;g.M.get=function(e){ea(this);var L=this.data.find(function(c){return c.key===e}); return L?L.value:null}; g.M.set=function(e,L,c){this.remove(e,!0);ea(this);e={key:e,value:L,expire:Infinity};c&&isFinite(c)&&(c*=1E3,e.expire=(0,g.zI)()+c);for(this.data.push(e);this.data.length>this.Z;)(c=this.data.shift())&&Ik(this,c,!0);Ly(this)}; g.M.remove=function(e,L){L=L===void 0?!1:L;var c=this.data.find(function(I){return I.key===e}); c&&(Ik(this,c,L),g.DJ(this.data,function(I){return I.key===e}),Ly(this))}; g.M.removeAll=function(e){if(e=e===void 0?!1:e)for(var L=g.f(this.data),c=L.next();!c.done;c=L.next())Ik(this,c.value,e);this.data=[];Ly(this)}; g.M.KS=function(){var e=this;g.p.prototype.KS.call(this);this.data.forEach(function(L){Ik(e,L,!0)}); this.data=[]};g.z(g.Bb,g.p);g.M=g.Bb.prototype;g.M.KS=function(){for(var e=g.f(Object.values(this.Z)),L=e.next();!L.done;L=e.next())L.value.dispose();ksM(this);this.X.dispose();g.p.prototype.KS.call(this)}; g.M.cM=function(e){return e?e===1?this.J:this.K.getVideoData().enableServerStitchedDai&&e===2?this.K.getVideoData().Tf?this.Z[2]||this.K:this.K:this.Z[e]||null:this.K}; g.M.MU=function(e){var L=e.cpn;e=e.playerType;if(L)a:{e=g.f(Object.values(this.Z));for(var c=e.next();!c.done;c=e.next())if(c=c.value,c.Yz()===L){L=c;break a}L=this.j[L]||null}else L=e?this.cM(e):this.K;return L}; g.M.aT=function(){return this.J}; g.M.Hl=function(e){this.J=e}; g.M.Qe=function(){return this.K}; g.M.R$=function(e){this.K=e;xF(this)}; g.M.lD=BM(46);g.M.RJ=BM(48);g.z(mav,g.eS);g.M=mav.prototype;g.M.pm=function(){}; g.M.Yz=function(){return this.videoData.clientPlaybackNonce}; g.M.getVideoData=function(){if(g.eS.prototype.getVideoData.call(this).Y("html5_huli_ssdai_use_playback_state")){if(!this.X.cpn){var e=csc(this.Pw,g.eS.prototype.getCurrentTime.call(this))||g.eS.prototype.getVideoData.call(this);this.videoData.clientPlaybackNonce!==e.clientPlaybackNonce&&(this.sW("huli-sdai-err",{cpn:this.videoData.clientPlaybackNonce,ref:e.clientPlaybackNonce}),this.X.cpn=!0)}return this.videoData}return csc(this.Pw,g.eS.prototype.getCurrentTime.call(this))||g.eS.prototype.getVideoData.call(this)}; g.M.getCurrentTime=function(e){var L=g.eS.prototype.getCurrentTime.call(this);if(g.eS.prototype.getVideoData.call(this).Y("html5_huli_ssdai_use_playback_state")){if(this.endTime===0?e||(L-=this.startTime):e&&(L=this.endTime-this.startTime),!this.X["time"+e]){var c=e?this.Pw.HG||L:nU$(this.Pw,L);L!==c&&(this.sW("huli-sdai-err",{time:L,ref:c,ct:e}),this.X["time"+e]=!0)}}else L=e?this.Pw.HG||L:nU$(this.Pw,L);return L}; g.M.getDuration=function(){if(g.eS.prototype.getVideoData.call(this).Y("html5_huli_ssdai_use_playback_state")){if(!this.X.duration){var e=Liv(this.Pw,g.eS.prototype.getCurrentTime.call(this));this.duration!==e&&(this.sW("huli-sdai-err",{dur:this.duration,ref:e}),this.X.duration=!0)}return this.duration}return Liv(this.Pw,g.eS.prototype.getCurrentTime.call(this))}; g.M.SF=function(e){this.duration=e};g.Sa.prototype.lq=function(e,L){if(L===1)return this.X.get(e);if(L===2)return this.Z.get(e);if(L===3)return this.K.get(e)}; g.Sa.prototype.r4=BM(58);g.Sa.prototype.HF=function(e,L,c,I){c={Ik:I,S7:c};L?this.Z.set(e,c):this.X.set(e,c)}; g.Sa.prototype.clearAll=function(){this.X.clear();this.Z.clear();this.K.clear()}; Z9f.prototype.clear=function(){this.X=[];this.Z.clear();this.G.clear();this.K.clear()}; g.z(g.rY,g.p);g.M=g.rY.prototype;g.M.onCueRangeEnter=function(e){var L=e.getId();this.Z6({oncueEnter:1,cpn:L,start:e.start,end:e.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.RO()||0).toFixed(3)});var c=this.X.Z.get(L);this.Z6({enterAdCueRange:1});var I=this.St||this.Rg().cpn,B;I=(B=this.X.Z.get(I))!=null?B:this.Rg();c&&(B=this.playback.getCurrentTime(),c={xZ:I,b_:c,LT:B},vS6(this,L,e.start/1E3,B),s46(this,c))}; g.M.CO=function(e,L){if(e===this.playback.Yz())ok(this.app.MM(),this.playback,!1);else{var c=this.Ve.get(e);c?(c.endTime=0,c.startTime=L,ok(this.app.MM(),c,!0)):this.Z6({nop_s:e})}}; g.M.onCueRangeExit=function(e){for(var L=this.playback.getCurrentTime()*1E3,c=e.getId(),I=g.f(this.K.values()),B=I.next();!B.done;B=I.next())if(B=B.value,B.getId()!==c&&L>=B.start&&L<=B.end)return;if(c=this.X.Z.get(c))L=this.playback.getCurrentTime(),c={xZ:c,b_:this.Rg(),LT:L},vS6(this,this.playback.Yz(),e.end/1E3,L),s46(this,c)}; g.M.Rg=function(){return{cpn:this.playback.Yz(),durationMs:0,hw:0,playerType:1,aU:0,videoData:this.playback.getVideoData(),errorCount:0}}; g.M.ZT=function(){if(this.Tc)return!1;var e=void 0;this.St&&(e=this.X.Z.get(this.St));return this.playback.getVideoData().GI()?!!e&&!e.L3:!!e}; g.M.seekTo=function(e,L,c,I){e=e===void 0?0:e;L=L===void 0?{}:L;c=c===void 0?!1:c;I=I===void 0?null:I;qP(this,this.St);if(this.playback.getVideoData().GI()&&e<=this.HG)this.playback.pauseVideo(),this.HG=0,fgM(this,e);else if(this.D=!0,c)H9H(this,e,L);else{c=this.app.Qe();var B=c===this.k9?this.He:null;tM(this,!1);this.Sl=e;this.d_=L;I!=null&&this.m$.start(I);c&&(this.He=B||c.getPlayerState(),c.Oe(L),this.k9=c)}}; g.M.KS=function(){tM(this,!1);Bnn(this);xHT(this);g.p.prototype.KS.call(this)}; g.M.WV=function(e){this.DY=e;this.Z6({swebm:e})}; g.M.yB=function(e,L,c){if(c&&L){var I=this.B.get(e);if(I){I.locations||(I.locations=new Map);var B=Number(L.split(";")[0]);c=new g.yp(c);this.Z6({hdlredir:1,itag:L,seg:e,hostport:pX(c)});I.locations.set(B,c)}}}; g.M.qF=function(e,L,c,I,B,x){var S=I===3,h=rs$(this,e,L,I,c,x);if(!h){Ok(this,L,S);var R=g.oSx(this,L)?"undec":"ncp";this.Z6({gvprp:R,mt:e,seg:L,tt:I,itag:c,ce:x});return null}S||this.B.set(L,h);x=h.jA;var u;I=((u=this.lq(L-1,I,B))==null?void 0:u.Ik)||"";I===""&&this.Z6({eds:1});u=RHJ(this,h.ssdaiAdsConfig);B=this.playback.getVideoData();var t;S=((t=B.K)==null?void 0:t.containerType)||0;t=B.ZU[S];h=h.cH&&L>=h.cH?h.cH:void 0;t={A$:x?qMT(this,x):[],dV:u,Ik:I,hW:h,cA:ag(t.split(";")[0]),yd:t.split(";")[1]|| ""};h={fV:t};this.Y9&&(e={gvprpro:"v",sq:L,mt:e.toFixed(3),itag:c,acpns:((R=t.A$)==null?void 0:R.join("_"))||"none",abid:x},this.Z6(e));return h}; g.M.HO=function(e){a:{if(!this.Tc){var L=hHf(this,e);if(!(this.playback.getVideoData().GI()&&(L==null?0:L.L3)))break a}L=void 0}var c=L;if(!c)return this.Z6({gvprp:"ncp",mt:e}),null;L=c.jA;var I=RHJ(this,c.ssdaiAdsConfig);c=c.cH&&c.lH&&e>=c.lH?c.cH:void 0;var B=this.playback.getVideoData(),x,S=((x=B.K)==null?void 0:x.containerType)||0;x=B.ZU[S];x={A$:L?qMT(this,L):[],dV:I,hW:c,cA:ag(x.split(";")[0]),yd:x.split(";")[1]||""};var h;e={gvprpro:"v",mt:e.toFixed(3),acpns:((h=x.A$)==null?void 0:h.join("_"))|| "none",abid:L};this.Z6(e);return x}; g.M.Ca=function(e,L,c,I,B,x){var S=Number(c.split(";")[0]),h=I===3;e=rs$(this,e,L,I,c,x);this.Z6({gdu:1,seg:L,itag:S,pb:""+!!e});if(!e)return Ok(this,L,h),null;e.locations||(e.locations=new Map);if(!e.locations.has(S)){var R,u;x=(R=e.videoData.getPlayerResponse())==null?void 0:(u=R.streamingData)==null?void 0:u.adaptiveFormats;if(!x)return this.Z6({gdu:"noadpfmts",seg:L,itag:S}),Ok(this,L,h),null;R=x.find(function(q){return q.itag===S}); if(!R||!R.url){var t=e.videoData.videoId;e=[];var O=g.f(x);for(I=O.next();!I.done;I=O.next())e.push(I.value.itag);this.Z6({gdu:"nofmt",seg:L,vid:t,itag:S,fullitag:c,itags:e.join(",")});Ok(this,L,h);return null}e.locations.set(S,new g.yp(R.url,!0))}x=e.locations.get(S);if(!x)return this.Z6({gdu:"nourl",seg:L,itag:S}),Ok(this,L,h),null;x=new DE(x);this.DY&&(x.get("dvc")?this.Z6({dvc:x.get("dvc")||""}):x.set("dvc","webm"));(I=(O=this.lq(L-1,I,B))==null?void 0:O.Ik)&&x.set("daistate",I);e.cH&&L>=e.cH&& x.set("skipsq",""+e.cH);(O=this.playback.getVideoData().clientPlaybackNonce)&&x.set("cpn",O);O=[];e.jA&&(O=qMT(this,e.jA),O.length>0&&x.set("acpns",O.join(",")));h||this.B.set(L,e);h=null;h=x.get("aids");I=x.Wd();(I==null?void 0:I.length)>2048&&this.Z6({urltoolong:1,sq:L,itag:S,len:I.length});this.Y9&&(I&&(x=e.cpn,B=e.jA,MVx(this,x,B),B&&!this.Cf.has(B)&&(x=TnM(this,x,B),R=WiM(this,B),this.Z6({iofa:x}),this.Z6({noawnzd:R-x}),this.Z6({acpns:O.join("."),aids:(t=h)==null?void 0:t.replace(/,/g,".")}), this.Cf.add(B))),this.Z6({gdu:"v",seg:L,itag:c,ast:e.hw.toFixed(3),alen:e.durationMs.toFixed(3),acpn:e.cpn,avid:e.videoData.videoId}));return I}; g.M.TR=function(e,L,c){c=c===void 0?!1:c;var I=SMf(this,e,L);if(I){var B=void 0,x=I.jA;if(x){this.Z6({skipadonsq:L,sts:c,abid:x,acpn:I.cpn,avid:I.videoData.videoId});c=this.X.K.get(x);if(!c)return;c=g.f(c);for(x=c.next();!x.done;x=c.next())x=x.value,x.cH=L,x.lH=e,x.hw>I.hw&&(B=x)}qP(this,this.St);this.Z=I.cpn;ufT(this);e=this.playback.getCurrentTime();tVT(this,I,B,e,e,!1,!0);this.Z="";this.D=!1}}; g.M.oJ=function(){for(var e=g.f(this.X.X),L=e.next();!L.done;L=e.next())L=L.value,L.cH=NaN,L.lH=NaN;ufT(this);this.Z6({rsac:"resetSkipAd",sac:this.Z});this.Z=""}; g.M.lq=function(e,L,c){return this.h7.lq(e,L,c)}; g.M.r4=BM(57); g.M.HF=function(e,L,c,I,B,x,S,h,R){I.length>0&&this.Z6({onssinfo:1,sq:e,start:L.toFixed(3),cpns:I.join(","),ds:B.join(","),isVideo:S?1:0});R&&this.h7.HF(e,S,h,R);if(S){if(I.length&&B.length)for(this.Z&&this.Z===I[0]&&this.Z6({skipfail:1,sq:e,acpn:this.Z}),e=L+this.LR(),c=0;c0&&(this.Go=0,this.St="",this.api.publish("serverstitchedvideochange"));this.playback.BL(c,I);return!0}; g.M.Og=function(){this.Z6({rstdaist:1});this.h7.clearAll()}; g.M.V7=function(e){var L;if(e!==((L=this.j)==null?void 0:L.identifier))this.Z6({ignorenoad:e});else{this.Pe.add(e);this.Z6({noadrcv:e});var c;((c=this.j)==null?void 0:c.identifier)===e&&Rk(this)}}; g.M.U0=function(e){if(this.Tc)return this.Z6({dai_disabled:e.event}),!1;if(this.playback.getVideoData().GI()&&(this.XM.Y("html5_lifa_no_gab_on_predict_start")&&e.event==="predictStart"||e.event==="continue"||e.event==="stop"))return!1;var L=jP(this.api.qx());if(L=L?L.U0(e):!1)this.G={q1:e.identifier,Wu:e.startSecs};else if(this.G&&this.G.q1===e.identifier&&e.startSecs>this.G.Wu+1){this.Z6({cueStChg:e.identifier,oldSt:this.G.Wu.toFixed(3),newSt:e.startSecs.toFixed(3),abid:this.G.yM});if(this.G.yM){var c= e.startSecs-this.G.Wu,I=this.X.K.get(this.G.yM);if(I){I=g.f(I);for(var B=I.next();!B.done;B=I.next())B=B.value,B.hw>=0&&(B.hw+=c*1E3,this.XM.Y("html5_ssdai_update_timeline_on_start_time_change")&&(B.aU+=c*1E3),this.Z6({newApEt:B.hw,newApPrt:B.aU,acpn:B.cpn}))}}this.G.Wu=e.startSecs}return L}; g.M.Hx=function(e){return this.Tc?!1:!!hHf(this,e)}; g.M.dY=function(e){var L=this;if(this.XM.Y("html5_lifa_ignore_multiple_skips")&&this.Gm)return this.Z6({ufs_ad:this.Z,ufs_cur:this.St,ufs_cont:this.Rg().cpn}),!1;qP(this,this.St);this.playback.pauseVideo();var c=this.playback.getCurrentTime(),I=this.X.Z.get(this.St);if(!I)return this.Z6({skipFail:c}),!1;this.Z=this.St;this.D=!1;zHJ(this,I.jA);Asv(this,I,this.Rg(),e);fgM(this,c,{seekSource:89,Ww:"lifa_skip"});this.Gm||(this.Gm=this.events.C(this.api,"progresssync",function(){g0(L.api.ZV(),(0,g.zI)(), "ad_to_video");L.Gm&&(L.events.j6(L.Gm),L.Gm=null)})); return!0}; g.M.Z6=function(e,L){((L===void 0?0:L)||this.Y9||this.playback.getVideoData().GI())&&this.playback.sW("sdai",e)}; var da6=0;g.z(bdr,g.p);g.M=bdr.prototype;g.M.onCueRangeEnter=function(e){if(this.X===this.app.Qe()){var L=this.B.get(e);L?wgT(this,L.target,L.r7,e):this.Zg("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:e.toString()})}else if(L=this.K.find(function(B){return B.G0.dM===e})){var c=L.G0,I=c.target; c=c.r7;I?wgT(this,I,c,e):DH6(this,L.aU,c,e)}}; g.M.onQueuedVideoLoaded=function(){var e=this.T;zg(this);if(e){if(!MP(this,e)){var L=this.app.Qe();this.Zg("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:L==null?void 0:L.getVideoData().clientPlaybackNonce,ccpn:""+e.playerVars.cpn})}this.app.Qe().addCueRange(e.G0.dM)}}; g.M.seekTo=function(e,L,c,I){e=e===void 0?0:e;L=L===void 0?{}:L;I=I===void 0?null:I;if(c===void 0?0:c)Fir(this,e,L);else{c=this.app.Qe()||null;var B=c===this.G?this.j:null;sk(this,!1);this.pS=e;this.D=L;I!=null&&this.J.start(I);c&&(this.j=B||c.getPlayerState(),c.Oe(),this.G=c)}}; g.M.X7=function(e){g.or(e,128)&&NnJ(this)}; g.M.isManifestless=function(){return J1(this.X.getVideoData())}; g.M.KS=function(){sk(this,!1);ysn(this);g.p.prototype.KS.call(this)}; g.M.Zg=function(e,L){this.X.Zg(new g.hQ(e,L))}; var id6=0;var Zdc="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_FOR_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_MUSIC_INTEGRATIONS WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.z(vb,g.p);vb.prototype.dF=function(e){if(e)return this.K.get(e)}; vb.prototype.KS=function(){this.X.removeAll();this.K.removeAll();g.p.prototype.KS.call(this)};g.M_9=CU(function(){var e=window.AudioContext||window.webkitAudioContext;try{return new e}catch(L){return L.name}});g.z(lgc,g.U);g.M=lgc.prototype;g.M.Sq=function(){g.ns(this.element,g.HM.apply(0,arguments))}; g.M.yx=function(){this.rT&&(this.rT.removeEventListener("focus",this.QD),g.s_(this.rT),this.rT=null)}; g.M.Qn=function(){this.We();var e=this.app.S();e.Il||this.Sq("tag-pool-enabled");e.j&&this.Sq(g.qB.HOUSE_BRAND);e.playerStyle==="gvn"&&(this.Sq("ytp-gvn"),this.element.style.backgroundColor="transparent");e.Cf&&(this.TH=g.Qo("yt-dom-content-change",this.resize,this));e.Y("html5_screen_orientation_resize")?window.screen&&window.screen.orientation?this.C(window.screen.orientation,"change",this.resize,this):this.C(window,"orientationchange",this.resize,this):this.C(window,"orientationchange",this.resize, this);this.C(window,"resize",this.resize,this)}; g.M.mW=function(e){g.nl(this.app.S());this.Wi=!e;fy(this)}; g.M.resize=function(){if(this.rT){var e=this.IF();if(!e.isEmpty()){var L=!g.U3(e,this.E2.getSize()),c=ESr(this);L&&(this.E2.width=e.width,this.E2.height=e.height);e=this.app.S();(c||L||this.EL||e.Cf)&&this.app.CS.publish("resize",this.getPlayerSize())}}}; g.M.OC=function(e,L){this.updateVideoData(L)}; g.M.updateVideoData=function(e){if(this.rT){var L=this.app.S();ya&&(this.rT.setAttribute("x-webkit-airplay","allow"),e.title?this.rT.setAttribute("title",e.title):this.rT.removeAttribute("title"));this.rT.setAttribute("controlslist","nodownload");L.zw&&e.videoId&&(this.rT.poster=e.j9("default.jpg"))}L=g.jI(e,"yt:bgcolor");this.hk.style.backgroundColor=L?L:"";this.UX=nQ(g.jI(e,"yt:stretch"));this.IH=nQ(g.jI(e,"yt:crop"),!0);g.cY(this.element,"ytp-dni",e.xx);this.resize()}; g.M.setGlobalCrop=function(e){this.iK=nQ(e,!0);this.resize()}; g.M.setCenterCrop=function(e){this.tZ=e;this.resize()}; g.M.xk=function(){}; g.M.getPlayerSize=function(){var e=this.app.S(),L=this.app.CS.isFullscreen(),c=e.externalFullscreen&&g.Uh(e);if(L&&NL()&&!c)return new g.dz(window.outerWidth,window.outerHeight);c=!isNaN(this.z1.width)&&!isNaN(this.z1.height);var I=this.app.S().Y("kevlar_player_enable_squeezeback_fullscreen_sizing")||this.app.S().Y("web_watch_enable_fs_squeezeback_panels");if(L&&!c&&I)return new g.dz(this.element.clientWidth,this.element.clientHeight);if(L||e.Zl){if(window.matchMedia){e="(width: "+window.innerWidth+ "px) and (height: "+window.innerHeight+"px)";this.Ul&&this.Ul.media===e||(this.Ul=window.matchMedia(e));var B=this.Ul&&this.Ul.matches}if(B)return new g.dz(window.innerWidth,window.innerHeight)}else if(c)return this.z1.clone();return new g.dz(this.element.clientWidth,this.element.clientHeight)}; g.M.IF=function(){var e=this.app.S().Y("enable_desktop_player_underlay"),L=this.getPlayerSize(),c=g.X3(this.app.S().experiments,"player_underlay_min_player_width");return e&&this.Ck&&L.width>c?(e=g.X3(this.app.S().experiments,"player_underlay_video_width_fraction"),new g.dz(Math.min(L.height*this.getVideoAspectRatio(),L.width*e),Math.min(L.height,L.width*e/this.getVideoAspectRatio()))):L}; g.M.getVideoAspectRatio=function(){return isNaN(this.UX)?Q4c(this):this.UX}; g.M.getVideoContentRect=function(e){var L=this.IF();e=dHr(this,L,this.getVideoAspectRatio(),e);return new g.$r((L.width-e.width)/2,(L.height-e.height)/2,e.width,e.height)}; g.M.FO=function(e){this.Ck=e;this.resize()}; g.M.Vv=function(){return this.qI}; g.M.onMutedAutoplayChange=function(){fy(this)}; g.M.setInternalSize=function(e){g.U3(this.z1,e)||(this.z1=e,this.resize())}; g.M.KS=function(){this.TH&&g.dO(this.TH);this.yx();g.U.prototype.KS.call(this)};g.M=Kir.prototype;g.M.click=function(e,L){this.elements.has(e);this.X.has(e);var c=g.qy();c&&e.visualElement&&g.EI(c,e.visualElement,L)}; g.M.createClientVe=function(e,L,c,I){var B=this;I=I===void 0?!1:I;this.elements.has(e);this.elements.add(e);c=sCx(c);e.visualElement=c;var x=g.qy(),S=g.OI();x&&S&&(g.uL("combine_ve_grafts")?ls(jX(),c,S):g.Hu(g.Ny)(void 0,x,S,c));L.addOnDisposeCallback(function(){B.elements.has(e)&&B.destroyVe(e)}); I&&this.K.add(e)}; g.M.createServerVe=function(e,L,c){var I=this;c=c===void 0?!1:c;this.elements.has(e);this.elements.add(e);L.addOnDisposeCallback(function(){I.destroyVe(e)}); c&&this.K.add(e)}; g.M.destroyVe=function(e){this.elements.has(e);this.elements.delete(e);this.Z.delete(e);this.X.delete(e);this.K.delete(e)}; g.M.H0=function(e,L){this.clientPlaybackNonce!==L&&(this.clientPlaybackNonce=L,H$(jX(),e),YMn(this))}; g.M.setTrackingParams=function(e,L){this.elements.has(e);L&&(e.visualElement=g.uF(L))}; g.M.i5=function(e,L,c){this.elements.has(e);L?this.X.add(e):this.X.delete(e);var I=g.qy(),B=e.visualElement;this.K.has(e)?I&&B&&(L?g.QU(I,[B]):g.UI(I,[B])):L&&!this.Z.has(e)&&(I&&B&&g.PJ(I,B,void 0,c),this.Z.add(e))}; g.M.hasVe=function(e){return this.elements.has(e)};g.z(g.FH,g.p);g.FH.create=function(e,L,c,I){try{var B=typeof e==="string"?e:"player"+g.hw(e),x=Jc[B];if(x){try{x.dispose()}catch(h){g.A9(h)}Jc[B]=null}var S=new g.FH(e,L,c,I);S.addOnDisposeCallback(function(){Jc[B]=null;S.s6&&S.s6()}); return Jc[B]=S}catch(h){throw g.A9(h),(h&&h instanceof Error?h:Error(String(h))).stack;}}; g.M=g.FH.prototype;g.M.cq=function(){return this.visibility}; g.M.Hl=function(e){var L=this.aT();if(e!==L){e.getVideoData().autonavState=L.getVideoData().autonavState;L.xG(this.n0,this);var c=L.getPlaybackRate();L.dispose();this.Vo.Hl(e);e.setPlaybackRate(c);e.xw(this.n0,this);xnr(this)}}; g.M.gg=function(){this.tC||(this.tC=g.ji(Yb(),JlH()));return this.tC}; g.M.yx=function(e){if(this.mediaElement){this.bj&&(this.events.j6(this.bj),this.bj=null);g.fv(this.X0);this.Qe().yx(!0,!1,e);this.template.yx();try{this.Y("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.oD()}catch(L){g.F7(L)}this.mediaElement=null}}; g.M.R$=function(e,L,c){c=c===void 0?!1:c;if(e!==this.Qe()){this.logger.debug(function(){return"start set presenting player, type "+e.getPlayerType()+", vid "+e.getVideoData().videoId}); var I=null;c||(c=this.Qe(),I=c.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),$e(this.NU,3),dY(this,"cuerangesremoved",c.eG()),this.Ih&&!e.isGapless()&&c.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),c=e.K2()&&c.K2(),this.j5.SL("iv_s"),OVn(this,c));e.getPlayerType()===1&&this.Hl(e);tUx(this,e);this.Vo.R$(e);this.mediaElement&&e.setMediaElement(this.mediaElement);e.xw(this.XH,this);e.xP()?ppf(this,"setPresenting",!1):(this.OC("newdata",e,e.getVideoData()), I&&!g.Af(I,e.getPlayerState())&&this.RQ(new g.BZ(e.getPlayerState(),I)),L=L&&e.getPlayerType()===1,e.NQ()&&!L&&this.OC("dataloaded",e,e.getVideoData()),(L=(L=e.getVideoData().K)&&L.video)&&this.CS.oy("onPlaybackQualityChange",L.quality),dY(this,"cuerangesadded",e.eG()),L=e.getPlayerState(),g.E(L,2)?uXc(this):g.E(L,8)?e.playVideo():e.QE()&&e.pauseVideo(),L=this.aT(),e.getPlayerType()===2&&(e.getVideoData().Xn=L.getVideoData().clientPlaybackNonce),e.getPlayerType()!==2||this.xf()||(I=e.getVideoData(), L.eq(I.clientPlaybackNonce,I.Cj||"",I.breakType||0,I.m1,I.videoId||"")),this.logger.debug("finish set presenting player"))}}; g.M.aL=function(){if(this.aT()!==this.Qe()){var e=this.Qe();this.logger.debug(function(){return"release presenting player, type "+e.getPlayerType()+", vid "+e.getVideoData().videoId}); this.R$(this.aT())}}; g.M.MM=function(){return this.Vo}; g.M.MU=function(e){return this.Vo.MU(e)}; g.M.cM=function(e){return this.Vo.cM(e)}; g.M.aT=function(){return this.Vo.aT()}; g.M.Qe=function(){return this.Vo.Qe()}; g.M.J4=BM(44);g.M.jqe=function(){D3(this)||(this.logger.debug("application playback ready"),this.gX(5))}; g.M.vTe=function(){if(!D3(this)){this.logger.debug("playback ready");NXx(this);var e=this.Qe(),L=e.getPlayerState();e.QE()?this.pauseVideo():L.isOrWillBePlaying()&&this.playVideo()}}; g.M.canPlayType=function(e){return O7(e)}; g.M.S=function(){return this.XM}; g.M.getVideoData=function(){return this.Qe().getVideoData()}; g.M.oe=BM(11);g.M.hq=function(){return this.aT().getVideoData()}; g.M.getVideoLoadedFraction=function(e){return(e=this.MU({playerType:e}))?e.getVideoLoadedFraction():this.Vo.X.getVideoLoadedFraction()}; g.M.LS=function(){return this.template}; g.M.qx=function(){return this.NU}; g.M.ZV=function(){return this.j5}; g.M.Tn=function(e){var L=this.MU({playerType:1});L&&L.O0(e)}; g.M.W1=function(){var e=this.NU.W1();this.CS.publish("videoStatsPingCreated",e);return e}; g.M.getVolume=function(){return Math.round(this.CS.getVolume())}; g.M.isMuted=function(){return this.CS.isMuted()}; g.M.ow=function(){if(this.aT()===this.Qe()&&this.By)return this.By.postId}; g.M.Nqq=function(){var e=this;this.Y("use_rta_for_player")||(g.R2(this.XM)?g.bj(this.XM,g.xb(this.getVideoData())).then(function(L){n2(Yb(),L);ObR(e.getVideoData(),e.XM,e.gg())}):ObR(this.getVideoData(),this.XM,this.gg()))}; g.M.HB=function(e){this.CS.publish("poTokenVideoBindingChange",e)}; g.M.Bz=function(e){this.CS.publish("d6de4videobindingchange",e)}; g.M.jc=function(){this.En&&this.En.jc()}; g.M.uH=function(e){this.En=e}; g.M.hM=function(e){if(e===1){this.j5.tick("vr");var L=this.Qe();L.y4();KWv(this.j5,L.getVideoData(),arn(this));GgT(this.NU)}L=this.XM;if(f8(L)&&L.J||g.L8(L)){var c;(((c=this.Qe().getVideoData())==null?0:c.enableServerStitchedDai)||!this.xf())&&this.CS.oy("onAdStateChange",e)}}; g.M.setLoopVideo=function(e){var L=this.Qe();L===this.aT()&&L.Q6()!==e&&(L.setLoop(e),this.CS.fS("onLoopChange",e))}; g.M.getLoopVideo=function(){return this.Qe().Q6()}; g.M.setLoopRange=function(e){var L=!1;!!this.By!==!!e?L=!0:this.By&&e&&(L=this.By.startTimeMs!==e.startTimeMs||this.By.endTimeMs!==e.endTimeMs||this.By.postId!==e.postId||this.By.type!==e.type);if(L){L=this.Qe();A1(L.getVideoData())&&L.sW("slr",{et:(e==null?void 0:e.endTimeMs)||-1});L=this.aT();L.RU("applooprange");if(e){var c=new g.pC(e.startTimeMs,e.endTimeMs,{id:"looprange",namespace:"applooprange"});L.addCueRange(c)}else{this.hq().clipConfig=void 0;var I;((c=this.By)==null?void 0:c.type)!=="repeatChapter"|| isNaN(Number((I=this.By)==null?void 0:I.loopCount))||(c={loopCount:String(this.By.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.et("repeatChapterLoopEvent",c))}this.By=e;this.CS.fS("onLoopRangeChange",e||void 0);this.aT()===this.Qe()&&(this.Qc(),L.Ug())}}; g.M.getLoopRange=function(){return this.By}; g.M.Qc=function(){var e="",L=this.aT();this.By?L!==this.Qe()?e="pnea":frH(this,L.getCurrentTime())&&(this.By.loopCount=0,e="ilr"):e="nlr";var c=this.Qe();if(A1(c.getVideoData()))if(this.Y("html5_gapless_log_loop_range_info")){var I,B;c.sW("slrre",{rej:e,ct:L.getCurrentTime(),lst:(I=this.By)==null?void 0:I.startTimeMs,let:(B=this.By)==null?void 0:B.endTimeMs})}else c.sW("slrre",{});e||FxR(this)}; g.M.setPlaybackRate=function(e,L){if(!isNaN(e)){e=rdc(this,e);var c=this.aT();c.getPlaybackRate()!==e&&(c.setPlaybackRate(e),L&&!this.XM.G&&g.bS("yt-player-playback-rate",e),this.CS.oy("onPlaybackRateChange",e))}}; g.M.getCurrentTime=function(e,L){L=L===void 0?!0:L;var c=this.Vo.uE;if(c)return c.getCurrentTime();var I=e===2&&this.getVideoData().enableServerStitchedDai;c=null;I?c=this.Qe():c=this.MU({playerType:e});return c?I&&this.SW?(e=this.Vo.T)?e.getCurrentTime(L):c.getCurrentTime():L?(L=kF(this,c),py(this,L.getCurrentTime(),L)):c.getCurrentTime():this.Vo.X.getCurrentTime()}; g.M.u2=function(){var e=this.MU({playerType:void 0});if(!e)return this.Vo.X.u2();e=kF(this,e);return py(this,e.u2(),e)}; g.M.getDuration=function(e,L){L=L===void 0?!0:L;var c=this.Vo.uE;if(c)return c.getDuration();c=this.getVideoData();var I=e===2&&c.enableServerStitchedDai,B=null;I?B=this.Qe():B=this.MU({playerType:e});if(!B)return this.Vo.X.getDuration();if(c.hasProgressBarBoundaries()&&!I){var x,S=Number((x=c.progressBarStartPosition)==null?void 0:x.utcTimeMillis),h;x=Number((h=c.progressBarEndPosition)==null?void 0:h.utcTimeMillis);if(!isNaN(S)&&!isNaN(x))return(x-S)/1E3}if(A1(c)&&!c.isLivePlayback)return yh(this, e);if(L)return e=gY(this,B),py(this,e.getDuration(),e);if(I&&this.SW){if(this.Y("html5_huli_ssdai_use_playback_state"))return e=this.Vo,e=e.G===e.T?e.G:null,(e==null?void 0:e.getDuration())||0;var R;return((R=this.Vo.T)==null?void 0:R.getDuration())||0}return B.getDuration()}; g.M.sR=function(e){var L=this.MU({playerType:e});return L?this.xf(L)?(L=gY(this,L),L.sR()-L.getCurrentTime()+this.getCurrentTime(e)):L.sR():this.Vo.X.sR()}; g.M.finishSegmentByCpn=function(){return[]}; g.M.Qn=function(){this.template.Qn();var e=this.CS;e.state.element=this.template.element;var L=e.state.element,c;for(c in e.state.X)e.state.X.hasOwnProperty(c)&&(L[c]=e.state.X[c]);(e=yUc(this.template.element))&&this.events.C(this.template,e,this.onFullscreenChange)}; g.M.getDebugText=function(e){var L=this.aT().b5(e),c=this.Qe();if(c!==this.aT()){c=c.b5(e);for(var I=g.f(Object.keys(c)),B=I.next();!B.done;B=I.next())B=B.value,L["ad"+B]=c[B];if(e){c=L;I={};if(B=Bz(document,"movie_player"))I.bounds=B.getBoundingClientRect(),I["class"]=B.className;B={};var x=g.rF("video-ads");x?(HVn(x,B),B.html=x.outerHTML):B.missing=1;x={};var S=g.rF("videoAdUiSkipContainer"),h=g.rF("ytp-ad-skip-button-container"),R=g.rF("ytp-skip-ad-button"),u=S||h||R;u?(HVn(u,x),x.ima=S?1:0,x.bulleit= h?1:0,x.component=R?1:0):x.missing=1;I=JSON.stringify({player:I,videoAds:B,skipButton:x});c.ad_skipBtnDbgInfo=I}}e&&this.mediaElement&&(L["0sz"]=""+(+E3(this.mediaElement.getSize())===0),L.op=this.mediaElement.tP("opacity"),c=this.mediaElement.YW().y+this.mediaElement.getSize().height,L.yof=""+(+c<=0),L.dis=this.mediaElement.tP("display"));e&&((e=(0,g.q0)())&&(L.gpu=e),(e=this.XM.playerStyle)&&(L.ps=e),this.XM.Pe&&(L.webview=1));L.debug_playbackQuality=this.CS.getPlaybackQuality(1);L.debug_date=(new Date).toString(); L.origin=window.origin;L.timestamp=Date.now();delete L.uga;delete L.q;return JSON.stringify(L,null,2)}; g.M.getFeedbackProductData=function(){var e={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.S().experiments.experimentIds.join(", "),player_release:r[13]},L=this.getPlayerStateObject().lz;L&&(e.player_error_code=L.errorCode,e.player_error_details=JSON.stringify(L.errorDetail));return e}; g.M.getPresentingPlayerType=function(e){if(this.appState===1)return 1;if(D3(this))return 3;var L;return e&&((L=this.SW)==null?0:L.ZT(this.getCurrentTime()))?2:this.Qe().getPlayerType()}; g.M.lA=function(){return!1}; g.M.getPlayerStateObject=function(e){var L=this.Vo.uE;return L?L.getPlayerState():this.MU({playerType:e}).getPlayerState()}; g.M.getAppState=function(){return this.appState}; g.M.ETe=function(e){switch(e.type){case "loadedmetadata":this.gh.start();e=g.f(this.If);for(var L=e.next();!L.done;L=e.next())L=L.value,Cu$(this,L.id,L.ml0,L.Hum,void 0,!1);this.If=[];break;case "loadstart":this.j5.SL("gv");break;case "progress":case "timeupdate":U7(e.target.im())>=2&&this.j5.SL("l2s");break;case "playing":g.sj&&this.gh.start();if(g.R2(this.XM))e=!1;else{L=g.Q4(this.qx());e=this.mediaElement.tP("display")==="none"||E3(this.mediaElement.getSize())===0;var c=AM(this.template),I=this.Qe().getVideoData(), B=g.DF(this.XM);I=FU(I);L=!c||L||B||I||this.XM.Sl;e=e&&!L}e&&(e=this.Qe(),e.p5(),this.getVideoData().gT||(this.getVideoData().gT=1,this.BQ(),e.playVideo()))}}; g.M.Fm$=function(e){this.CS.Kb("onLoadProgress",e)}; g.M.Lmw=function(){this.CS.publish("playbackstalledatstart")}; g.M.Hfd=function(e,L){this.CS.publish("sabrCaptionsDataLoaded",e,L)}; g.M.O9e=function(e){this.Qe().yK(e)}; g.M.C4W=function(e){this.Qe().cB(e)}; g.M.rK_=function(e){e=kF(this,this.Qe());e=py(this,e.getCurrentTime(),e);this.CS.oy("onVideoProgress",e);this.XM.al&&DnT(this,this.visibility.iE())&&this.pauseVideo()}; g.M.wyM=function(){this.CS.oy("onAutoplayBlocked");var e=this.Qe().getVideoData();e&&(e.Uj=!0);this.Y("embeds_enable_autoplay_and_visibility_signals")&&g.Uh(this.XM)&&(e={autoplayBrowserPolicy:Tv(),autoplayIntended:WB(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.et("embedsAutoplayStatusChanged",e))}; g.M.l6q=function(){this.CS.publish("progresssync")}; g.M.QTM=function(){this.CS.Kb("onPlaybackPauseAtStart")}; g.M.Rw0=function(e){if(this.getPresentingPlayerType()===1){g.or(e,1)&&!g.E(e.state,64)&&this.hq().isLivePlayback&&this.aT().isAtLiveHead()&&this.CS.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.or(e,2)){if(this.By&&this.By.endTimeMs>=(this.getDuration()-1)*1E3){FxR(this);return}uXc(this)}if(g.E(e.state,128)){var L=e.state;this.cancelPlayback(5);L=L.lz;JSON.stringify({errorData:L,debugInfo:this.getDebugText(!0)});this.CS.oy("onError",ibv(L.errorCode));this.CS.Kb("onDetailedError",{errorCode:L.errorCode, errorDetail:L.errorDetail,message:L.errorMessage,messageKey:L.i_,cpn:L.cpn});(0,g.zI)()-this.XM.OF>6048E5&&this.CS.Kb("onReloadRequired")}L={};if(e.state.isPlaying()&&!e.state.isBuffering()&&!ie("pbresume","ad_to_video")&&ie("_start","ad_to_video")){var c=this.getVideoData();L.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(L.videoId=c.videoId);g.FT(L,"ad_to_video");AD("pbresume",void 0,"ad_to_video");GgT(this.NU)}this.CS.publish("applicationplayerstatechange",e)}}; g.M.RQ=function(e){this.Vo.uE||this.CS.publish("presentingplayerstatechange",e)}; g.M.X7=function(e){Gg(this,bc(e.state));g.E(e.state,1024)&&this.CS.isMutedByMutedAutoplay()&&(NP(this,{muted:!1,volume:this.vU.volume},!1),m6(this,!1))}; g.M.onPlayerRequestSent=function(e){this.CS.fS("onPlayerRequestSent",e)}; g.M.YWq=function(e,L){e==="newdata"&&xnr(this);this.CS.publish("applicationvideodatachange",e,L)}; g.M.t50=function(e,L){this.Y("html5_afmt_change_update_volume")&&NXx(this);this.CS.Kb("onPlaybackAudioChange",this.CS.getAudioTrack().l5.name);this.CS.publish("internalaudioformatchange",this.CS.getAudioTrack().l5.id,L)}; g.M.xxe=function(e){var L=this.Qe().getVideoData();e===L&&this.CS.oy("onPlaybackQualityChange",e.K.video.quality)}; g.M.hd=function(){var e=this.Vo.Z[2]||null;e&&(e=e.getVideoData(),this.Qe().sW("ssdai",{cleanaply:1,acpn:e==null?void 0:e.clientPlaybackNonce,avid:e.videoId,isDai:this.hq().enableServerStitchedDai?1:0}),delete this.Vo.Z[2])}; g.M.ifq=function(e,L){this.OC(e,this.Qe(),L)}; g.M.OC=function(e,L,c){this.logger.debug(function(){return"on video data change "+e+", player type "+L.getPlayerType()+", vid "+c.videoId}); this.XM.oT()&&L.sW("vdc",{type:e,vid:c.videoId||"",cpn:c.clientPlaybackNonce||""});L===this.aT()&&(this.XM.kN=c.oauthToken);L===this.aT()&&(this.getVideoData().enableServerStitchedDai&&!this.SW?(this.aT().sW("sdai",{initSstm:1}),this.SW=new g.rY(this.CS,this.XM,this.aT(),this)):!this.getVideoData().enableServerStitchedDai&&this.SW&&(this.SW.dispose(),this.SW=null));if(e==="newdata")this.logger.debug("new video data, destroy modules"),$e(this.NU,2),this.CS.publish("videoplayerreset",L);else{if(!this.mediaElement)return; e==="dataloaded"&&(this.aT()===this.Qe()?(oD(c.UW,c.gs),MUM(this)):TXT(this));L.getPlayerType()===1&&(this.XM.ye&&jtM(this),this.getVideoData().isLivePlayback&&!this.XM.rX&&this.a9("html5.unsupportedlive",2,"DEVICE_FALLBACK"),c.isLoaded()&&((aLf(c)||this.getVideoData().E5)&&this.CS.publish("legacyadtrackingpingchange",this.getVideoData()),c.hasProgressBarBoundaries()&&iVn(this)));this.CS.publish("videodatachange",e,c,L.getPlayerType())}this.CS.oy("onVideoDataChange",{type:e,playertype:L.getPlayerType()}); this.Qc();var I=c.PP;I?this.OP.H0(I,c.clientPlaybackNonce):YMn(this.OP)}; g.M.Vn=function(){JM(this,null);this.CS.Kb("onPlaylistUpdate")}; g.M.K1l=function(e){delete this.jB[e.getId()];this.aT().removeCueRange(e);a:{e=this.getVideoData();var L,c,I,B,x,S,h,R,u,t,O=((L=e.ye)==null?void 0:(c=L.contents)==null?void 0:(I=c.singleColumnWatchNextResults)==null?void 0:(B=I.autoplay)==null?void 0:(x=B.autoplay)==null?void 0:x.sets)||((S=e.ye)==null?void 0:(h=S.contents)==null?void 0:(R=h.twoColumnWatchNextResults)==null?void 0:(u=R.autoplay)==null?void 0:(t=u.autoplay)==null?void 0:t.sets);if(O)for(L=g.f(O),c=L.next();!c.done;c=L.next())if(c= c.value,B=I=void 0,c=c.autoplayVideo||((I=c.autoplayVideoRenderer)==null?void 0:(B=I.autoplayEndpointRenderer)==null?void 0:B.endpoint),I=g.Q(c,g.MD),x=B=void 0,c!=null&&((B=I)==null?void 0:B.videoId)===e.videoId&&((x=I)==null?0:x.continuePlayback)){e=c;break a}e=null}(L=g.Q(e,g.MD))&&this.CS.fS("onPlayVideo",{sessionData:{autonav:"1",itct:e==null?void 0:e.clickTrackingParams},videoId:L.videoId,watchEndpoint:L})}; g.M.gX=function(e){var L=this;e!==this.appState&&(this.logger.debug(function(){return"app state change "+L.appState+" -> "+e}),e===2&&this.getPresentingPlayerType()===1&&(Gg(this,-1),Gg(this,5)),this.appState=e,this.CS.publish("appstatechange",e))}; g.M.a9=function(e,L,c,I,B){this.aT().BM(e,L,c,I,B)}; g.M.J8=BM(13);g.M.isAtLiveHead=function(e,L){L=L===void 0?!1:L;var c=this.MU({playerType:e});if(!c)return this.Vo.X.isAtLiveHead();e=gY(this,c);c=kF(this,c);return e!==c?e.isAtLiveHead(py(this,c.getCurrentTime(),c),!0):e.isAtLiveHead(void 0,L)}; g.M.t1=function(){var e=this.MU({playerType:void 0});return e?gY(this,e).t1():this.Vo.X.t1()}; g.M.seekTo=function(e,L,c,I,B){L=L!==!1;if(I=this.MU({playerType:I}))this.appState===2&&Cy(this),this.xf(I)?$F(this)?this.SW.seekTo(e,{seekSource:B},L,c):this.Pw.seekTo(e,{seekSource:B},L,c):I.seekTo(e,{vB:!L,Zu:c,Ww:"application",seekSource:B})}; g.M.seekBy=function(e,L,c,I){this.seekTo(this.getCurrentTime()+e,L,c,I)}; g.M.mxe=function(){this.CS.oy("SEEK_COMPLETE")}; g.M.cKw=function(){this.CS.fS("onAbnormalityDetected")}; g.M.SYW=function(e){this.CS.fS("onSnackbarMessage",e)}; g.M.f6M=function(e){var L=this.Qe(),c=L.getVideoData();if(this.appState===1||this.appState===2)c.startSeconds=e;this.appState===2?g.E(L.getPlayerState(),512)||Cy(this):this.CS.oy("SEEK_TO",e)}; g.M.yKq=function(){this.CS.publish("airplayactivechange")}; g.M.Wm$=function(){this.CS.publish("airplayavailabilitychange")}; g.M.showAirplayPicker=function(){this.Qe().eT()}; g.M.oTe=function(){this.CS.publish("beginseeking")}; g.M.P5d=function(){this.CS.publish("endseeking")}; g.M.getStoryboardFormat=function(e){return(e=this.MU({playerType:e}))?gY(this,e).getStoryboardFormat():this.Vo.X.getStoryboardFormat()}; g.M.UU=function(e){return(e=this.MU({playerType:e}))?gY(this,e).getVideoData().UU():this.Vo.X.UU()}; g.M.xf=function(e){e=(e||this.Qe()).getVideoData();if($F(this))e=e===this.SW.playback.getVideoData();else a:{var L=this.Pw;if(e===L.X.getVideoData()&&L.K.length)e=!0;else{L=g.f(L.K);for(var c=L.next();!c.done;c=L.next())if(e.d0===c.value.d0){e=!0;break a}e=!1}}return e}; g.M.IR=function(e,L,c,I,B,x,S,h){this.logger.debug(function(){return"Adding video to timeline id="+e.video_id+"\n lengthMs="+I+" enterTimeMs="+B}); var R="",u=$F(this);this.Qe().sW("appattl",{sstm:this.SW?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:u});u?(c=EUf(this.SW,e,L,c,I,B,x,S,h),R=(c==null?void 0:c.d0)||"",this.Y("html5_ssdai_new_decoration_logic")&&this.aT().Yt(h||"",L,(c==null?void 0:c.clientPlaybackNonce)||"")):R=ktv(this.Pw,e,c,I,B,x);this.logger.debug(function(){return"Video added to timeline id="+e.video_id+" timelinePlaybackId="+R}); return R}; g.M.vY=function(e,L,c,I,B,x,S,h){if($F(this)){var R=EUf(this.SW,e,L,c,I,B,x,S,h);this.logger.debug(function(){return"Remaining video added to timeline id="+e.video_id+" timelinePlaybackId="+R})}return""}; g.M.V7=function(e){this.Y("html5_ssdai_new_decoration_logic")&&this.aT().Yt(e,"","");var L;(L=this.SW)==null||L.V7(e)}; g.M.zB=function(e,L){e=e===void 0?-1:e;L=L===void 0?Infinity:L;$F(this)||ysn(this.Pw,e,L)}; g.M.RY=function(e,L,c){if($F(this)){var I=this.SW,B=I.X.G.get(e);B?(c===void 0&&(c=B.aU),IgR(I,B,L,c)):I.C6("Invalid_timelinePlaybackId_"+e+"_specified")}else{I=this.Pw;B=null;for(var x=g.f(I.K),S=x.next();!S.done;S=x.next())if(S=S.value,S.d0===e){B=S;break}B?(c===void 0&&(c=B.aU),mHR(I,B,L,c)):Tg(I,"InvalidTimelinePlaybackId timelinePlaybackId="+e)}}; g.M.enqueueVideoByPlayerVars=function(e,L,c,I){c=c===void 0?Infinity:c;I=I===void 0?"":I;this.xf();e=new g.RI(this.XM,e);I&&(e.d0=I);GS$(this,e,L,c)}; g.M.queueNextVideo=function(e,L,c,I,B){c=c===void 0?NaN:c;e=this.preloadVideoByPlayerVars(e,L===void 0?1:L,c,I===void 0?"":I,B===void 0?"":B);L=this.Qe();e&&(this.Y("html5_check_queue_on_data_loaded")?this.S().supportsGaplessShorts()&&L.getVideoData().T&&(c=this.Mc,I=this.Ih.B,c.G!==e&&(c.K=L,c.G=e,c.Z=1,c.X=e.getVideoData(),c.B=I,c.X.isLoaded()?c.j():c.X.subscribe("dataloaded",c.j,c))):(c=t7f(L,e,this.Ih.B),c!=null?(L.sW("sgap",c),L.getVideoData().T&&L.Pm(!1)):(e=e.getVideoData(),L=this.Mc,L.X!== e&&(L.X=e,L.Z=1,e.isLoaded()?L.T():L.X.subscribe("dataloaded",L.T,L)))))}; g.M.WL=function(e,L,c,I){var B=this;c=c===void 0?0:c;I=I===void 0?0:I;gY(this,this.Qe()).NI();Fwv(this.Ih,e,L,c,I).then(function(){B.CS.Kb("onQueuedVideoLoaded")},function(){})}; g.M.jG=function(){return this.Ih.jG()}; g.M.FB=function(e){var L=this.Ih.X;return L?L.v0(e):!1}; g.M.clearQueue=function(e,L){e=e===void 0?!1:e;L=L===void 0?!1:L;this.logger.debug("Clearing queue");this.Ih.clearQueue(e,L)}; g.M.loadVideoByPlayerVars=function(e,L,c,I,B,x){L=L===void 0?1:L;var S=this.aT();if(L===2&&this.hq().enableServerStitchedDai&&S&&!S.fX())return S.sW("lvonss",{vid:(e==null?void 0:e.videoId)||"",ptype:L}),!1;var h=!1;S=new g.RI(this.XM,e);S.je=x;g.z3(this.XM)&&!S.h9&&ke(this.j5);var R;x=this.j5;var u=(R=S.D)!=null?R:"";x.timerName=u;this.j5.K1("pl_i");this.Y("web_player_early_cpn")&&S.clientPlaybackNonce&&this.j5.infoGel({clientPlaybackNonce:S.clientPlaybackNonce});hUM(S).supportsVp9Encoding===!1&& this.Qe().sW("noVp9enc",{});if(this.S().supportsGaplessShorts()){R=Gsv(this.Ih,S,L);if(R==null){Gg(this,-1);var t;!this.Y("html5_shorts_gapless_reset_ad_module")||((t=this.Ih.X)==null?0:t.getVideoData().isAd())||Hb(this);e=this.Ih;e.app.S().Y("html5_gapless_new_slr")?Z3(e.app,"gaplessshortslooprange"):e.app.setLoopRange(null);e.app.S().Y("html5_gapless_remove_videoplaytime100_cuerange")&&e.app.jD("videoplaytime100");e.app.getVideoData().b7=!0;var O;(O=e.X)==null||O.Fu();var q;(q=e.X)==null||q.kc(); c={Ww:"gapless_to_next_video",seekSource:60,Ay:e.B.X};I=g.X3(e.app.S().experiments,"html5_gapless_seek_offset");B=i9n(e);if(e.B.X){var T;S=((T=e.Z)==null?void 0:UW(T))||{};T=S.b1;S=S.T2;S!=null&&T!=null&&(B=S-T+.001)}var W;(W=e.app.Qe())==null||W.seekTo(B+I,c);if(!e.app.getPlayerStateObject(L).isPlaying()){var A;(A=e.app.Qe())==null||A.playVideo(!0)}var b;(b=e.app.Qe())==null||b.Zi();e.T();return!0}W=this.Y("html5_shorts_gapless_preload_fallback");A=this.Ih.X;W&&A&&!A.We()&&(b=A.getVideoData(),this.Vo.B.set(lK(L, b),A,3600));this.Ih.clearQueue(W);this.Qe().sW("sgap",{f:R})}if(B){for(;S.JR.length&&S.JR[0].isExpired();)S.JR.shift();W=S.JR.length-1;h=W>0&&B.K(S.JR[W])&&B.K(S.JR[W-1]);S.JR.push(B)}c||(e&&ew6(e)?(to(this.XM)&&!this.yy&&(e.fetch=0),JM(this,e)):this.playlist&&JM(this,null),e&&(this.yy=EN(!1,e.external_list)));this.CS.publish("loadvideo");W=this.ED(S,L,I);h&&this.a9("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+S.JR.join()).replace(/[;:,]/g,"_"));return W}; g.M.preloadVideoByPlayerVars=function(e,L,c,I,B){L=L===void 0?1:L;c=c===void 0?NaN:c;I=I===void 0?"":I;B=B===void 0?"":B;var x=kSr(L,e,B),S=this.Vo.B.get(x)||null;if(S)return this.logger.debug(function(){return"already preloaded "+x}),this.Y("html5_return_playback_if_already_preloaded")?S:null; e=new g.RI(this.XM,e);B&&(e.d0=B);return g3v(this,e,L,c,I)}; g.M.setMinimized=function(e){this.visibility.setMinimized(e);(e=DPR(this.NU))&&(this.isMinimized()?e.load():e.unload());this.CS.publish("minimized")}; g.M.setInline=function(e){this.visibility.setInline(e)}; g.M.setInlinePreview=function(e){this.visibility.setInline(e)}; g.M.g4=function(e){wpR(this,e)||this.visibility.g4(e)}; g.M.setSqueezeback=function(e){this.visibility.setSqueezeback(e)}; g.M.u1=function(){var e,L=(e=this.mediaElement)==null?void 0:e.IT();L&&(this.XM.Fz&&g8(bs(function(){return document.exitFullscreen()}),function(){}),g8(bs(function(){return uS(L)}),function(){}))}; g.M.F1W=function(){this.mediaElement.IT();this.mediaElement.IT().webkitPresentationMode==="picture-in-picture"?this.g4(!0):this.g4(!1)}; g.M.togglePictureInPicture=function(){this.Qe().togglePictureInPicture()}; g.M.ED=function(e,L,c){L=L===void 0?1:L;this.logger.debug(function(){return"start load video, id "+e.videoId+", type "+L}); ie("_start",this.j5.timerName)||g.Hu(qv)(void 0,this.j5.timerName);var I=!1,B=v3J(this,L,e,!1);B?(I=!0,e.dispose()):(B=bK(this,L,e,!0,c),(this.Y("html5_onesie")||this.Y("html5_load_before_stop"))&&B.zo()&&B.WH(),this.gh.stop(),L===1&&L!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,L),this.R$(B));B===this.aT()&&(this.XM.kN=e.oauthToken);if(!B.zo())return!1;if(B===this.aT())return this.gX(1),c=Cy(this),I&&this.Y("html5_player_preload_ad_fix")&&B.getPlayerType()===1&& B.NQ()&&this.OC("dataloaded",B,B.getVideoData()),c;B.Cs();return!0}; g.M.cueVideoByPlayerVars=function(e,L){var c=this;L=L===void 0?1:L;var I=this.aT();if(this.hq().enableServerStitchedDai&&I&&!I.fX()&&e&&Object.keys(e).length>0)I.sW("qvonss",{vid:(e==null?void 0:e.videoId)||"",ptype:L});else if(e&&ew6(e))if(this.LO=!0,JM(this,e),(e=g.DP(this.playlist))&&e.Hd())Qh(this,e,L);else this.playlist.onReady(function(){Vh(c)}); else{L||(L=this.getPresentingPlayerType());L===1&&this.Vn();I=new g.RI(this.XM,e);var B=g.Uh(this.XM)&&!this.XM.h7&&L===1&&!I.isAd()&&!I.Cj;this.CS.publish("cuevideo");B?(this.Qe().getVideoData().loading=!0,Sk6(I,e?e:{}).then(function(x){Qh(c,x,L)}),I.dispose()):Qh(this,I,L)}}; g.M.zF=function(e,L,c,I,B,x,S){if(!e&&!c)throw Error("Playback source is invalid");if(XB(this.XM)||g.rw(this.XM))return L=L||{},L.lact=qc(),L.vis=this.CS.getVisibilityState(),this.CS.fS("onPlayVideo",{videoId:e,watchEndpoint:x,sessionData:L,listId:c}),!1;YWH(this.j5);this.j5.reset();e={video_id:e};I&&(e.autoplay="1");I&&(e.autonav="1");x&&(e.player_params=x.playerParams);S&&(e.oauth_token=S);c?(e.list=c,this.loadPlaylist(e)):this.loadVideoByPlayerVars(e,1);return!0}; g.M.cuePlaylist=function(e,L,c,I){this.LO=!0;Jdc(this,e,L,c,I)}; g.M.loadPlaylist=function(e,L,c,I){this.LO=!1;Jdc(this,e,L,c,I)}; g.M.eb=function(){return this.CS.isMutedByMutedAutoplay()?!1:this.Vo.uE?!0:!(!this.playlist||!this.playlist.g$())}; g.M.VE=BM(5); g.M.nextVideo=function(e,L){var c=g.zN(this.aT().getVideoData());g.Eq(this.CS)&&c?this.zF(c.videoId,L?c.xq:c.sessionData,c.playlistId,L,void 0,c.Ge||void 0):this.yy?this.CS.Kb("onPlaylistNext"):this.getPresentingPlayerType()===3?HS(this.NU).nextVideo():!this.playlist||to(this.XM)&&!this.CS.isFullscreen()||(this.playlist.g$(e)&&I3c(this.playlist,L6T(this.playlist)),this.playlist.loaded?(e=L&&this.XM.Y("html5_player_autonav_logging"),L&&this.CS.publish("playlistautonextvideo"),this.ED(g.DP(this.playlist,void 0, L,e),1)):this.LO=!1)}; g.M.previousVideo=function(e){this.yy?this.CS.Kb("onPlaylistPrevious"):this.getPresentingPlayerType()===3?HS(this.NU).ID():!this.playlist||to(this.XM)&&!this.CS.isFullscreen()||(this.playlist.r9(e)&&I3c(this.playlist,cMR(this.playlist)),this.playlist.loaded?this.ED(g.DP(this.playlist),1):this.LO=!1)}; g.M.playVideoAt=function(e){this.yy?this.CS.Kb("onPlaylistIndex",e):this.playlist&&(this.playlist.loaded?this.ED(g.DP(this.playlist,e),1):this.LO=!1,I3c(this.playlist,e))}; g.M.getPlaylist=function(){return this.playlist}; g.M.uS=BM(19);g.M.jD=function(e){this.If=g.ig(this.If,function(x){return x.id!==e}); for(var L=this.aT(),c=L.eG(),I=0;I0&&(R=Math.floor(u/1E3))}R=L?L.jW:R;var t={AD_BLOCK:this.X++,AD_BREAK_LENGTH:R,AUTONAV_STATE:Ek(this.player.S()),CA_TYPE:"image",CPN:h.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.t1()*1E3,LACT:qc(),LIVE_INDEX:L?this.Z++:1,LIVE_TARGETING_CONTEXT:L&&L.context?L.context:"",MIDROLL_POS:x? Math.round(x.start/1E3):0,MIDROLL_POS_MS:x?Math.round(x.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.LS().IF().height,P_W:this.player.LS().IF().width,YT_REMOTE:B?B.join(","):""},O=c3(LQ);Object.keys(O).forEach(function(T){O[T]!=null&&(t[T.toUpperCase()]=O[T].toString())}); c!==""&&(t.BISCOTTI_ID=c);c={};eG(e)&&(c.sts="20278",(L=this.player.S().forcedExperiments)&&(c.forced_experiments=L));var q=KT(g.FV(e,t),c);return q.split("?").length!==2?kA(Error("Invalid AdBreakInfo URL")):g.bj(this.player.S(),h==null?void 0:h.oauthToken).then(function(T){if(T&&nT()){var W=Yb();n2(W,T)}T=I.player.gg(W);W=RGv(I,q,t,h.isMdxPlayback,S);return g.w_(T,W,"/youtubei/v1/player/ad_break").then(function(A){return A})})}; XH.prototype.reset=function(){this.Z=this.X=1};g.z(upn,XH); upn.prototype.K=function(e,L,c){L=L===void 0?{}:L;var I=L.ew;var B=L.dM;var x=L.cueProcessedMs;c=c===void 0?"":c;L=this.X;this.X++;var S=this.player.S().Y("h5_disable_macro_substitution_in_get_ad_break")?e:tq6(this,e,{ew:I,dM:B,cueProcessedMs:x},c,L);if(S.split("?").length!==2)return Math.random()<.1&&g.F7(Error("Invalid AdBreakInfo URL")),kA(Error("Invalid AdBreakInfo URL"));var h=this.player.getVideoData(1).isMdxPlayback,R=c;c=Ivx.exec(S);c=c!=null&&c.length>=2?c[1]:"";e=BtM.test(S);var u=xCn.exec(S); u=u!=null&&u.length>=2?u[1]:"";var t=oG$.exec(S);t=t!=null&&t.length>=2&&!Number.isNaN(Number(t[1]))?Number(t[1]):1;var O=SbR.exec(S);O=O!=null&&O.length>=2?O[1]:"0";var q=xY(this.player.S().PU),T=g.l1(this.player.getVideoData(1).Y9,!0);Kxv(this,T,S,R===""?"":R,this.player.S(),this.player.getVideoData(1));R={splay:!1,lactMilliseconds:String(qc()),playerHeightPixels:Math.trunc(this.player.LS().IF().height),playerWidthPixels:Math.trunc(this.player.LS().IF().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20278,autonavState:Ek(this.player.S())};if(h){h={};var W=this.player.S().BU;eGn(h,W?W.join(","):"")&&(R.mdxContext=h)}if(h=rCf.includes(q)?void 0:g.ka("PREF")){W=h.split(RegExp("[:&]"));for(var A=0,b=W.length;A1&&J[1].toUpperCase()==="TRUE"){T.user.lockedSafetyMode=!0;break}}R.autoCaptionsDefaultOn=cCf(h)}S=hG$.exec(S);(S=S!=null&&S.length>=2?S[1]:"")&&u&&(T.user.credentialTransferTokens= [{token:S,scope:"VIDEO"}]);S={contentPlaybackContext:R};R=this.player.getVideoData(1).getGetAdBreakContext();h=this.player.getVideoData(1).clientPlaybackNonce;W=x!==void 0?Math.round(x).toString():void 0;A=(I==null?0:I.context)?I.context:void 0;b=0;x&&B&&!I&&(B=B.end-B.start,B>0&&(b=Math.floor(B/1E3)));I=(I=Math.trunc((I?I.jW:b)*1E3))?String(I):void 0;B=this.player.t1()*1E3;B=Number.isNaN(B)?0:Math.trunc(B);L={adBlock:L,params:c,breakIndex:t,breakPositionMs:O,clientPlaybackNonce:h,topLevelDomain:q, isProxyAdTagRequest:e,context:T,overridePlaybackContext:S,cueProcessedMs:W,videoId:u?u:void 0,liveTargetingParams:A,breakLengthMs:I,driftFromHeadMs:B?String(B):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:R?R:void 0};return ODn(this,L)};var snL={r1_:"replaceUrlMacros",RA$:"onAboutThisAdPopupClosed",kNe:"executeCommand"};qbH.prototype.Yo=function(){return"adPingingEndpoint"}; qbH.prototype.MP=function(e,L,c){Ybn(this.Tm.get(),e,L,c)};TtJ.prototype.Yo=function(){return"changeEngagementPanelVisibilityAction"}; TtJ.prototype.MP=function(e){this.V.fS("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:e})};Wzc.prototype.Yo=function(){return"loggingUrls"}; Wzc.prototype.MP=function(e,L,c){e=g.f(e);for(var I=e.next();!I.done;I=e.next())I=I.value,Ybn(this.Tm.get(),I.baseUrl,L,c,I.attributionSrcMode)};g.z(zGM,g.p);g.z(YF,g.p);g.M=YF.prototype;g.M.addListener=function(e){this.listeners.push(e)}; g.M.removeListener=function(e){this.listeners=this.listeners.filter(function(L){return L!==e})}; g.M.A_=function(e,L,c,I,B,x,S,h){if(e==="")Ir("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(e!==this.X||c){this.X=e;this.Be.get().A_(e,L,c,I,B,x,S,h);this.M0.get().A_(e,L,c,I,B,x,S,h);var R;(R=this.Jq)==null||R.get().A_(e,L,c,I,B,x,S,h);this.K.A_(e,L,c,I,B,x,S,h);R=g.f(this.listeners);for(var u=R.next();!u.done;u=R.next())u.value.A_(e,L,c,I,B,x,S,h)}else Ir("Duplicate content video loaded signal")}; g.M.D0_=function(){this.X&&this.AR(this.X)}; g.M.AR=function(e){this.X=void 0;for(var L=g.f(this.listeners),c=L.next();!c.done;c=L.next())c.value.AR(e)};ny.prototype.QM=function(e,L,c,I,B){seR(this);this.B=!L&&c===0;var x=this.V.getVideoData(1),S=this.V.getVideoData(2);x&&(this.contentCpn=x.clientPlaybackNonce,this.videoId=x.videoId,this.X=x.j);S&&(this.adCpn=S.clientPlaybackNonce,this.adVideoId=S.videoId,this.adFormat=S.adFormat);this.G=e;I<=0?(seR(this),this.B=!L&&c===0):(this.actionType=this.B?L?"unknown_type":"video_to_ad":L?"ad_to_video":"ad_to_ad",this.videoStreamType=B?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.Z=!0,ie("_start",this.actionType)&&ACv(this)))}; ny.prototype.reset=function(){return new ny(this.V)};g.z(eQ,g.p);eQ.prototype.addCueRange=function(e,L,c,I,B,x,S,h){x=x===void 0?3:x;S=S===void 0?1:S;this.X.has(e)?Ir("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:e}):(e=new Fzc(e,L,c,I,x,h),this.X.set(e.id,{dM:e,listener:B,Bh:S}),this.V.Lb([e],S))}; eQ.prototype.removeCueRange=function(e){var L=this.X.get(e);L?(this.V.SX([L.dM],L.Bh),this.X.delete(L.dM.id)):Ir("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:e})}; eQ.prototype.onCueRangeEnter=function(e){if(this.X.has(e.id))this.X.get(e.id).listener.onCueRangeEnter(e.id)}; eQ.prototype.onCueRangeExit=function(e){if(this.X.has(e.id))this.X.get(e.id).listener.onCueRangeExit(e.id)}; g.z(Fzc,g.pC);LY.prototype.addPlayerResponseForAssociation=function(e){this.V.addPlayerResponseForAssociation(e)};cG.prototype.hM=function(e){this.V.hM(e)}; cG.prototype.uG=function(e){var L=g.HM.apply(1,arguments);e==="onAdStart"||e==="onAdEnd"?this.V.oy.apply(this.V,[e].concat(g.V(L))):this.V.fS.apply(this.V,[e].concat(g.V(L)))};IB.prototype.Ry=function(e){return e&&BG(this)};var NtT=null;g.z(avM,g.Yg);avM.prototype.WO=function(e){return this.X.hasOwnProperty(e)?this.X[e].WO():{}}; g.IL("ytads.bulleit.getVideoMetadata",function(e){return xh().WO(e)}); g.IL("ytads.bulleit.triggerExternalActivityEvent",function(e,L,c){var I=xh();c=C0n(c);c!==null&&I.publish(c,{queryId:e,viewabilityString:L})});g.M=oB.prototype;g.M.iz=function(e,L){if(!this.X.has(e))return{};if(L==="seek"){L=!1;L=L===void 0?!1:L;var c=vA(P9).GD(e,{});c?p0(c):L&&(e=vA(P9).V1(null,Jp(),!1,e),e.OE=3,bAH([e]));return{}}L=yCx(L);if(L===null)return{};var I=this.V.wy();if(!I)return{};var B=this.V.getPresentingPlayerType(!0);if((c=this.V.getVideoData(B))==null||!c.isAd())return{};c={opt_adElement:I,opt_fullscreen:this.Be.get().isFullscreen()};return bKM(L,e,c)}; g.M.XS=function(e,L,c,I,B){this.X.has(e)&&(I<=0||B<=0||vA(P9).XS(e,L,c,I,B))}; g.M.MV=function(e){var L;(L=this.X.get(e.queryId))==null||L.MV()}; g.M.wv=function(e){var L;(L=this.X.get(e.queryId))==null||L.wv()}; g.M.PG=function(e){var L;(L=this.X.get(e.queryId))==null||L.PG()}; g.M.WG=function(e){var L;(L=this.X.get(e.queryId))==null||L.WG()}; g.M.tJ=function(e){var L;(L=this.X.get(e.queryId))==null||L.tJ()};dCH.prototype.send=function(e,L,c,I){try{UC6(this,e,L,c,I===void 0?!1:I)}catch(B){}};g.z(EGH,dCH);XWr.prototype.send=function(e,L,c,I){var B=!1;try{if(I==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||I==="ATTRIBUTION_SRC_MODE_XHR_OPTION")B=!0,e=ha$(e);I=B;var x=g.rj(e);if(x[1]==="https")var S=e;else x[1]="https",S=SW("https",x[2],x[3],x[4],x[5],x[6],x[7]);var h=rxn(S);x=[];var R=Xoc(S)&&this.ZY.get().V.S().experiments.N0("add_auth_headers_to_remarketing_google_dot_com_ping");if(eG(S)||R)x.push({headerType:"USER_AUTH"}),x.push({headerType:"PLUS_PAGE_ID"}),x.push({headerType:"VISITOR_ID"}),x.push({headerType:"EOM_VISITOR_ID"}), x.push({headerType:"AUTH_USER"}),x.push({headerType:"DATASYNC_ID"});this.X.send({baseUrl:S,scrubReferrer:h,headers:x},L,c,I)}catch(u){}};uY.prototype.V9=function(){return this.V.V9(1)};g.z(t3,g.p);g.M=t3.prototype;g.M.Wc=function(){return this.V.getVideoData(1).clientPlaybackNonce}; g.M.addListener=function(e){this.listeners.push(e)}; g.M.removeListener=function(e){this.listeners=this.listeners.filter(function(L){return L!==e})}; g.M.A_=function(){this.Fr.clear();this.xH=null;this.dX.get().clear()}; g.M.AR=function(){}; g.M.hdY=function(e,L,c,I,B){L.videoId==="nPpU29QrbiU"&&this.V.sW("ads_ssm_vdc_s",{pt:c,dvt:e});au(this.ZY.get())&&e!=="dataloaded"||xWM(this,L,c);if(BG(this.ZY.get())&&e==="newdata"&&B!==void 0){e=this.Wc();var x=L.clientPlaybackNonce,S={};B1(this,"rte",(S.ec=x,S.xc=I==null?void 0:I.clientPlaybackNonce,S.tr=B,S.pt=c,S.ia=x!==e,S.ctp=IK(x),S));L=L.clientPlaybackNonce;I=I==null?void 0:I.clientPlaybackNonce;B=ot6(B);if(B!==1)if(I!==void 0)for(c=g.f(this.listeners),e=c.next();!e.done;e=c.next())e.value.PJ(I, L,B);else Ir("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:L,transitionReason:String(B)});B=g.f(this.listeners);for(I=B.next();!I.done;I=B.next())I.value.Mj(L)}}; g.M.QI$=function(e,L){e!==void 0&&(this.xH=e,L===void 0?Ir("Expected ad video start time on SS video changed"):this.Fr.set(e,L));var c=this.V.getPresentingPlayerType(!0),I=this.V.getVideoData(c),B;e===void 0?B=null:B=this.dX.get().X.get(e)||null;this.V.getVideoData(1).sW("ads_ssvc",{pt:c,cpn:I==null?void 0:I.clientPlaybackNonce,crtt:this.V.getCurrentTime(1,!1),atlh:this.V.isAtLiveHead(),adstt:L,pid:e,slid:B==null?void 0:B.layoutId});I?xWM(this,I,c):Ir("Expected video data on server stitched video changed", void 0,void 0,{cpn:this.V.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:e})}; g.M.vu=function(e,L){var c=e.author,I=e.clientPlaybackNonce,B=e.isListed,x=e.d0,S=e.title,h=e.s9,R=e.Ne,u=e.isMdxPlayback,t=e.Xd,O=e.mdxEnvironment,q=e.isAutonav,T=e.O5,W=e.h9,A=e.CR,b=e.videoId||"",J=e.profilePicture||"",w=e.hR||"",C=e.O9()||!1,y=e.GI()||!1;e=e.CY||void 0;x=this.dX.get().X.get(x)||{layoutId:null,slotId:null};var P=this.V.getVideoData(1),ev=P.Wy();P=P.getPlayerResponse();L=1E3*this.V.getDuration(L);var X=1E3*this.V.getDuration(1),oH,rc,Sv=(P==null?void 0:(oH=P.playerConfig)==null? void 0:(rc=oH.daiConfig)==null?void 0:rc.enableDai)||!1,tJ,cM;oH=(P==null?void 0:(tJ=P.playerConfig)==null?void 0:(cM=tJ.daiConfig)==null?void 0:cM.enablePreroll)||!1;return Object.assign({},x,{videoId:b,author:c,clientPlaybackNonce:I,NB:L,NS:X,daiEnabled:Sv,LN:oH,isListed:B,Wy:ev,profilePicture:J,title:S,hR:w,s9:h,Ne:R,CY:e,isMdxPlayback:u,Xd:t,mdxEnvironment:O,isAutonav:q,O5:T,h9:W,CR:A,O9:C,GI:y})}; g.M.KS=function(){this.listeners.length=0;this.qR=null;g.p.prototype.KS.call(this)};g.z(Ol,g.p);g.M=Ol.prototype;g.M.A_=function(){var e=this;BG(this.ZY.get())||(this.X=aF(function(){e.V.We()||e.V.pu("ad",1)}))}; g.M.AR=function(){}; g.M.addListener=function(e){this.listeners.push(e)}; g.M.removeListener=function(e){this.listeners=this.listeners.filter(function(L){return L!==e})}; g.M.PT=function(){}; g.M.playVideo=function(){this.V.playVideo()}; g.M.pauseVideo=function(){this.V.pauseVideo()}; g.M.resumeVideo=function(e){this.bl(e)&&this.V.playVideo()}; g.M.bl=function(e){return this.V.getPlayerState(e)===2}; g.M.getCurrentTimeSec=function(e,L,c){var I=this.M0.get().xH;if(e===2&&!L&&I!==null)return WG(this,I);Jz(this.ZY.get(),"html5_ssap_use_cpn_to_get_time")||(c=void 0);return c!==void 0?this.V.getCurrentTime(e,L,c):this.V.getCurrentTime(e,L)}; g.M.getVolume=function(){return this.V.getVolume()}; g.M.isMuted=function(){return this.V.isMuted()}; g.M.getPresentingPlayerType=function(){return this.V.getPresentingPlayerType(!0)}; g.M.getPlayerState=function(e){return this.V.getPlayerState(e)}; g.M.getGetAdBreakContext=function(){return this.V.getGetAdBreakContext()}; g.M.isFullscreen=function(){return this.V.isFullscreen()}; g.M.isAtLiveHead=function(){return this.V.isAtLiveHead()}; g.M.FO=function(e){this.V.FO(e)}; g.M.eTM=function(){var e=this.V.getPresentingPlayerType(!0),L=this.getCurrentTimeSec(e,!1);if(e===2){e=g.f(this.listeners);for(var c=e.next();!c.done;c=e.next())c.value.FC(L)}else if(e===1)for(e=g.f(this.F8),c=e.next();!c.done;c=e.next())c.value.PT(L)}; g.M.dx0=function(e){for(var L=g.f(this.listeners),c=L.next();!c.done;c=L.next())c.value.QZ(e,this.getPresentingPlayerType())}; g.M.onFullscreenToggled=function(e){for(var L=g.f(this.listeners),c=L.next();!c.done;c=L.next())c.value.onFullscreenToggled(e)}; g.M.onVolumeChange=function(){for(var e=g.f(this.listeners),L=e.next();!L.done;L=e.next())L.value.onVolumeChange()}; g.M.t9=function(){for(var e=this.V.isMinimized(),L=g.f(this.listeners),c=L.next();!c.done;c=L.next())c.value.t9(e)}; g.M.Qy=function(e){for(var L=g.f(this.listeners),c=L.next();!c.done;c=L.next())c.value.Qy(e)}; g.M.Nx=function(){for(var e=this.V.LS().IF(),L=g.f(this.listeners),c=L.next();!c.done;c=L.next())c.value.xN(e)}; g.M.J_=function(e){for(var L=g.f(this.listeners),c=L.next();!c.done;c=L.next())c.value.J_(e)}; g.M.dP=function(){for(var e=g.f(this.listeners),L=e.next();!L.done;L=e.next())L.value.dP()};g.z(RXc,g.p);g.z(sl,g.p);sl.prototype.KS=function(){this.Eh.We()||this.Eh.get().removeListener(this);g.p.prototype.KS.call(this)};vG.prototype.fetch=function(e){var L=e.FX;return this.X.fetch(e.Y2,{ew:e.ew===void 0?void 0:e.ew,dM:L,cueProcessedMs:e.cueProcessedMs===void 0?0:e.cueProcessedMs}).then(function(c){return uS6(c,L)})};g.z(fY,g.p);g.M=fY.prototype;g.M.addListener=function(e){this.listeners.push(e)}; g.M.removeListener=function(e){this.listeners=this.listeners.filter(function(L){return L!==e})}; g.M.z9=function(e){t$c(this,e,1)}; g.M.onAdUxClicked=function(e,L){A3(this,function(c){c.Zj(e,L)})}; g.M.yD=function(e){A3(this,function(L){L.Dh(e)})}; g.M.cT=function(e){A3(this,function(L){L.xL(e)})}; g.M.Gme=function(e){A3(this,function(L){L.jJ(e)})};FA.prototype.reduce=function(e){switch(e.event){case "unknown":return}var L=e.identifier;var c=this.X[L];c?L=c:(c={Q4:null,aW:-Infinity},L=this.X[L]=c);c=e.startSecs+e.X/1E3;if(!(c=this.X.startSecs&&c.startSecs<=this.X.startSecs+this.X.jW)){var I=void 0;if(NS(this.ZY.get())&&c.identifier!==((I=this.X)==null?void 0:I.identifier)){var B=I=void 0,x=void 0,S=void 0;T5(this.Tm.get(),"ocud","ccpi."+c.identifier+";ccpe."+c.event+";ccps."+c.startSecs+";\n ccpd."+c.jW+";pcpi."+((I=this.X)==null?void 0:I.identifier)+ ";pcpe."+((B=this.X)==null?void 0:B.event)+";\n pcps."+((x=this.X)==null?void 0:x.startSecs)+";pcpd."+((S=this.X)==null?void 0:S.jW)+";")}I=void 0;c.identifier!==((I=this.X)==null?void 0:I.identifier)&&Ir("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.X=c,TgJ(this,c)}}; g.M.KS=function(){this.K!=null&&(this.K.unsubscribe("cuepointupdated",this.OX,this),this.K=null);this.listeners.length=0;this.QK.length=0;g.p.prototype.KS.call(this)};g.M=Gz.prototype;g.M.IR=function(e,L,c,I,B,x,S){return this.V.IR(e,L,c,I,B,x,S)}; g.M.zB=function(e,L){this.V.zB(e,L)}; g.M.RY=function(e,L,c){this.V.RY(e,L,c)}; g.M.V7=function(e){this.V.V7(e)}; g.M.vY=function(e,L,c,I,B,x,S){return this.V.vY(e,L,c,I,B,x,S)}; g.M.LV=function(e){return this.V.LV(e)}; g.M.finishSegmentByCpn=function(e,L,c){c=zXx(c);this.V.finishSegmentByCpn(e,L,c)};g.z(gl,g.p);g.z(vtH,g.p);g.z(fs$,g.p);g.z(AZM,g.p);g.z(FBv,g.p);g.z(b3T,g.p);g.z(G_c,g.p);G_c.prototype.Z=function(){return this.K};g.z(gtr,Nw); gtr.prototype.Z=function(e){var L=e.content;if(L.componentType==="shopping-companion")switch(e.actionType){case 1:case 2:e=this.X.getVideoData(1);this.X.fS("updateKevlarOrC3Companion",{contentVideoId:e&&e.videoId,shoppingCompanionCarouselRenderer:L.renderer,layoutId:L.layoutId,macros:L.macros,onLayoutVisibleCallback:L.X,interactionLoggingClientData:L.interactionLoggingClientData});break;case 3:this.X.fS("updateKevlarOrC3Companion",{})}else if(L.componentType==="action-companion")switch(e.actionType){case 1:case 2:e=this.X.getVideoData(1); this.X.fS("updateKevlarOrC3Companion",{contentVideoId:e&&e.videoId,actionCompanionAdRenderer:L.renderer,layoutId:L.layoutId,macros:L.macros,onLayoutVisibleCallback:L.X,interactionLoggingClientData:L.interactionLoggingClientData});break;case 3:L.renderer&&(L=this.X.getVideoData(1),this.X.fS("updateKevlarOrC3Companion",{contentVideoId:L&&L.videoId})),this.X.fS("updateKevlarOrC3Companion",{})}else if(L.componentType==="image-companion")switch(e.actionType){case 1:case 2:e=this.X.getVideoData(1);this.X.fS("updateKevlarOrC3Companion", {contentVideoId:e&&e.videoId,imageCompanionAdRenderer:L.renderer,layoutId:L.layoutId,macros:L.macros,onLayoutVisibleCallback:L.X,interactionLoggingClientData:L.interactionLoggingClientData});break;case 3:L=this.X.getVideoData(1),this.X.fS("updateKevlarOrC3Companion",{contentVideoId:L&&L.videoId}),this.X.fS("updateKevlarOrC3Companion",{})}else if(L.componentType==="top-banner-image-text-icon-buttoned")switch(e.actionType){case 1:case 2:e=this.X.getVideoData(1);this.X.fS("updateKevlarOrC3Companion", {contentVideoId:e&&e.videoId,topBannerImageTextIconButtonedLayoutViewModel:L.renderer,layoutId:L.layoutId,macros:L.macros,onLayoutVisibleCallback:L.X,interactionLoggingClientData:L.interactionLoggingClientData});break;case 3:L.renderer&&(L=this.X.getVideoData(1),this.X.fS("updateKevlarOrC3Companion",{contentVideoId:L&&L.videoId})),this.X.fS("updateKevlarOrC3Companion",{})}else if(L.componentType==="banner-image")switch(e.actionType){case 1:case 2:e=this.X.getVideoData(1);this.X.fS("updateKevlarOrC3Companion", {contentVideoId:e&&e.videoId,bannerImageLayoutViewModel:L.renderer,layoutId:L.layoutId,macros:L.macros,onLayoutVisibleCallback:L.X,interactionLoggingClientData:L.interactionLoggingClientData});break;case 3:L=this.X.getVideoData(1),this.X.fS("updateKevlarOrC3Companion",{contentVideoId:L&&L.videoId}),this.X.fS("updateKevlarOrC3Companion",{})}else if(L.componentType==="ads-engagement-panel")switch(L=L.renderer,e.actionType){case 1:case 2:this.X.fS("updateEngagementPanelAction",L.addAction);this.X.fS("changeEngagementPanelVisibility", L.expandAction);break;case 3:this.X.fS("changeEngagementPanelVisibility",L.hideAction),this.X.fS("updateEngagementPanelAction",L.removeAction)}else if(L.componentType==="ads-engagement-panel-layout"){var c=L.renderer;switch(e.actionType){case 1:case 2:this.X.fS("updateEngagementPanelAction",{action:go(c.addAction),layoutId:L.layoutId,onLayoutVisibleCallback:L.X,interactionLoggingClientData:L.interactionLoggingClientData});this.X.fS("changeEngagementPanelVisibility",go(c.expandAction));break;case 3:this.X.fS("changeEngagementPanelVisibility", go(c.hideAction)),this.X.fS("updateEngagementPanelAction",{action:go(c.removeAction)})}}};g.z(k_J,lX);g.M=k_J.prototype;g.M.init=function(e,L,c){lX.prototype.init.call(this,e,L,c);g.l3(this.Z,"stroke-dasharray","0 "+this.K);this.Z.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.j.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.G.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.M.clear=function(){this.hide()}; g.M.hide=function(){QI(this);lX.prototype.hide.call(this)}; g.M.show=function(){P7(this);lX.prototype.show.call(this)}; g.M.nV=function(){this.hide()}; g.M.SA=function(){if(this.X){var e=this.X.getProgressState();e!=null&&e.current!=null&&g.l3(this.Z,"stroke-dasharray",e.current/e.seekableEnd*this.K+" "+this.K)}};g.z(DWc,B7);g.M=DWc.prototype; g.M.init=function(e,L,c){B7.prototype.init.call(this,e,L,c);if(L.image&&L.image.thumbnail)if(L.headline)if(L.description)if(L.backgroundImage&&L.backgroundImage.thumbnail)if(L.actionButton&&g.Q(L.actionButton,g.E5))if(e=L.durationMilliseconds||0,typeof e!=="number"||e<=0)g.A9(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+e));else if(L.navigationEndpoint){var I=this.api.getVideoData(2);if(I!=null){var B=L.image.thumbnail.thumbnails;B!=null&& B.length>0&&g.J_(g.VK(B[0].url))&&(B[0].url=I.profilePicture,g.J_(g.VK(I.profilePicture))&&jKR("VideoPlayer",239976093,"Expected non-empty profile picture."));B=L.backgroundImage.thumbnail.thumbnails;B!=null&&B.length>0&&g.J_(g.VK(B[0].url))&&(B[0].url=I.j9());B=L.headline;B!=null&&g.J_(g.VK(B.text))&&(B.text=I.author)}this.D.init(X7("ad-image"),L.image,c);this.j.init(X7("ad-text"),L.headline,c);this.Z.init(X7("ad-text"),L.description,c);this.Pe.init(X7("ad-image"),L.backgroundImage,c);I=["ytp-ad-action-interstitial-action-button", "ytp-ad-action-interstitial-action-button-rounded"];this.slot.classList.add("ytp-ad-action-interstitial-slot-dark-background");this.j.element.classList.add("ytp-ad-action-interstitial-headline-light");this.Z.element.classList.add("ytp-ad-action-interstitial-description-light");I.push("ytp-ad-action-interstitial-action-button-dark");this.api.S().K&&(I.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),I.push("ytp-ad-action-interstitial-action-button-dark"));this.api.S().Y("enable_unified_action_endcap_on_web")&& !this.api.S().K&&(I.push("ytp-ad-action-interstitial-action-button-unified"),this.d_.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.D.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.Sl.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.Jm.classList.add("ytp-ad-action-interstitial-card-unified"),this.h7.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.Z.element.classList.add("ytp-ad-action-interstitial-description-unified"), this.Ve.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.j.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.Y9.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.t7.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new bX(this.api,this.layoutId,this.interactionLoggingClientData,this.A7,I);g.l(this,this.actionButton);this.actionButton.jl(this.d_); this.actionButton.init(X7("button"),g.Q(L.actionButton,g.E5),c);ab(this.actionButton.element);I=yw(this.actionButton.element);mn(this.actionButton.element,I+" This link opens in new tab");this.navigationEndpoint=L.navigationEndpoint;this.G.C(this.Y9,"click",this.Em,this);this.G.C(this.h7,"click",this.Em,this);!this.api.S().Y("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.S().K||this.G.C(this.Ve,"click",this.Em,this);this.X=this.OM?new Os(this.api,e):new q2(e);g.l(this,this.X);if(L.skipButton){(e= g.Q(L.skipButton,mQN))&&this.X&&(this.skipButton=new SF(this.api,this.layoutId,this.interactionLoggingClientData,this.A7,this.X,this.rh),g.l(this,this.skipButton),this.skipButton.jl(this.element),this.skipButton.init(X7("skip-button"),e,c));if(c=L.adBadgeRenderer)if(c=g.Q(c,NuL))e=new u1(this.api,this.layoutId,this.interactionLoggingClientData,this.A7,!0,!0),e.jl(this.t7),e.init(X7("simple-ad-badge"),c,this.macros),g.l(this,e);if(c=L.adInfoRenderer)if(c=g.Q(c,dK))e=new $u(this.api,this.layoutId,this.interactionLoggingClientData, this.A7,this.element,void 0,!0),e.jl(this.t7),e.init(X7("ad-info-hover-text-button"),c,this.macros),g.l(this,e)}else L.nonskippableOverlayRenderer&&(e=g.Q(L.nonskippableOverlayRenderer,U5))&&this.X&&(this.K=new En(this.api,this.layoutId,this.interactionLoggingClientData,this.A7,this.X,!1),g.l(this,this.K),this.K.jl(this.element),this.K.init(X7("ad-preview"),e,c));L.countdownRenderer&&(L=L.countdownRenderer,g.Q(L,y_M)&&this.X&&(c=new k_J(this.api,this.layoutId,this.interactionLoggingClientData,this.A7, this.X),g.l(this,c),c.jl(this.element),c.init(X7("timed-pie-countdown"),g.Q(L,y_M),this.macros)));this.show();this.element.focus()}else g.A9(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.A9(Error("AdActionInterstitialRenderer has no button."));else g.A9(Error("AdActionInterstitialRenderer has no background AdImage."));else g.A9(Error("AdActionInterstitialRenderer has no description AdText."));else g.A9(Error("AdActionInterstitialRenderer has no headline AdText."));else g.A9(Error("AdActionInterstitialRenderer has no image."))}; g.M.clear=function(){g.fv(this.G);this.hide()}; g.M.show=function(){whv(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.K&&this.K.show();B7.prototype.show.call(this)}; g.M.hide=function(){whv(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.K&&this.K.hide();B7.prototype.hide.call(this)}; g.M.Em=function(){this.navigationEndpoint&&(this.layoutId?this.A7.executeCommand(this.navigationEndpoint,this.layoutId):g.A9(Error("Missing layoutId for ad action interstitial.")))};var Ng$={iconType:"CLOSE"},J3=new g.dz(320,63);g.z(asM,B7);g.M=asM.prototype; g.M.init=function(e,L,c){B7.prototype.init.call(this,e,L,c);this.G=L;this.D=g.VM(this.G.onClickCommands||[]);this.t7=this.G.onErrorCommand||null;if(e=this.G.contentSupportedRenderer)e=this.G.contentSupportedRenderer,L=this.G.adInfoRenderer||null,g.Q(e,VRM)?(this.j=g.rF("ytp-ad-overlay-ad-info-button-container",this.Z.element),mWr(this,L),e=Z3J(this,g.Q(e,VRM))):g.Q(e,Cwe)?(this.j=g.rF("ytp-ad-overlay-ad-info-button-container",this.K.element),mWr(this,L),e=ph6(this,g.Q(e,Cwe))):g.Q(e,atZ)?(this.j= g.rF("ytp-ad-overlay-ad-info-button-container",this.X.element),mWr(this,L),e=$WR(this,g.Q(e,atZ))):(g.A9(Error("InvideoOverlayAdRenderer content could not be initialized.")),e=!1);e&&(this.show(),jOJ(this,!0))}; g.M.clear=function(){jOJ(this,!1);this.Y9.reset();this.h7=0;this.Z.hide();this.logVisibility(this.Z.element,!1);this.K.hide();this.logVisibility(this.K.element,!1);this.X.hide();this.logVisibility(this.X.element,!1);this.hide();this.dispose()}; g.M.i9d=function(){this.d_&&(this.layoutId?this.A7.executeCommand(this.d_,this.layoutId):g.A9(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.M.JW=function(){a:{if(this.G&&this.G.closeButton&&this.G.closeButton.buttonRenderer){var e=this.G.closeButton.buttonRenderer;if(e.serviceEndpoint){e=[e.serviceEndpoint];break a}}e=[]}e=g.f(e);for(var L=e.next();!L.done;L=e.next())L=L.value,this.layoutId?this.A7.executeCommand(L,this.layoutId):g.A9(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.M.ZSm=function(){this.Pe||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.M.Ds=function(){this.Pe||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.Ds("invideo-overlay")}; g.M.ewS=function(e){e.target===this.j&&g.rF("ytp-ad-button",this.Sl.element).click()};g.z(H3H,lX);g.M=H3H.prototype;g.M.init=function(e,L,c){lX.prototype.init.call(this,e,L,c);e=L.durationMs;this.Z=e==null||e===0?0:e+this.X.getProgressState().current*1E3;if(L.text)var I=L.text.templatedAdText;else L.staticMessage&&(I=L.staticMessage);this.messageText.init(X7("ad-text"),I,c);this.messageText.jl(this.K.element);this.G.show(100);this.show()}; g.M.clear=function(){this.hide()}; g.M.hide=function(){ls6(this,!1);lX.prototype.hide.call(this);this.K.hide();this.messageText.hide();QI(this)}; g.M.show=function(){ls6(this,!0);lX.prototype.show.call(this);P7(this);this.K.show();this.messageText.show()}; g.M.nV=function(){this.hide()}; g.M.SA=function(){if(this.X!=null){var e=this.X.getProgressState();e!=null&&e.current!=null&&(e=1E3*e.current,!this.h7&&e>=this.Z?(this.G.hide(),this.h7=!0):this.messageText&&this.messageText.isTemplated()&&(e=Math.max(0,Math.ceil((this.Z-e)/1E3)),e!==this.j&&(H7(this.messageText,{TIME_REMAINING:String(e)}),this.j=e)))}};g.z(Ptf,B7);g.M=Ptf.prototype; g.M.init=function(e,L,c){B7.prototype.init.call(this,e,L,{});L.image&&L.image.thumbnail?L.headline?L.description?L.actionButton&&g.Q(L.actionButton,g.E5)?(this.Z.init(X7("ad-image"),L.image,c),this.K.init(X7("ad-text"),L.headline,c),this.G.init(X7("ad-text"),L.description,c),this.actionButton=new bX(this.api,this.layoutId,this.interactionLoggingClientData,this.A7,["ytp-ad-underlay-action-button"]),L.backgroundColor&&g.l3(this.element,"background-color",g.w9(L.backgroundColor)),g.l(this,this.actionButton), this.actionButton.jl(this.j),this.actionButton.init(X7("button"),g.Q(L.actionButton,g.E5),c),e=g.X3(this.api.S().experiments,"player_underlay_video_width_fraction"),this.api.S().Y("place_shrunken_video_on_left_of_player")?(L=this.X,g.eZ(L,"ytp-ad-underlay-left-container"),g.Y4(L,"ytp-ad-underlay-right-container"),g.l3(this.X,"margin-left",Math.round((e+.02)*100)+"%")):(L=this.X,g.eZ(L,"ytp-ad-underlay-right-container"),g.Y4(L,"ytp-ad-underlay-left-container")),g.l3(this.X,"width",Math.round((1-e- .04)*100)+"%"),this.api.Vv()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.Sc.bind(this)),this.api.addEventListener("resize",this.Nr.bind(this))):g.A9(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.A9(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.A9(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.A9(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.M.show=function(){QOn(!0);this.actionButton&&this.actionButton.show();B7.prototype.show.call(this)}; g.M.hide=function(){QOn(!1);this.actionButton&&this.actionButton.hide();B7.prototype.hide.call(this)}; g.M.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.Sc.bind(this));this.api.removeEventListener("resize",this.Nr.bind(this));this.hide()}; g.M.onClick=function(e){B7.prototype.onClick.call(this,e);this.actionButton&&g.vz(this.actionButton.element,e.target)&&this.api.pauseVideo()}; g.M.Sc=function(e){e==="transitioning"?(this.X.classList.remove("ytp-ad-underlay-clickable"),this.show()):e==="visible"?this.X.classList.add("ytp-ad-underlay-clickable"):e==="hidden"&&(this.hide(),this.X.classList.remove("ytp-ad-underlay-clickable"))}; g.M.Nr=function(e){e.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):e.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.l3(this.K.element,"font-size",e.width/40+"px")};g.z(V6,B7); V6.prototype.init=function(e,L,c){B7.prototype.init.call(this,e,L,c);L.toggledLoggingParams&&(this.toggledLoggingParams=L.toggledLoggingParams);L.answer&&g.Q(L.answer,g.E5)?(e=new bX(this.api,this.layoutId,this.interactionLoggingClientData,this.A7,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),e.jl(this.answer),e.init(X7("ytp-ad-survey-answer-button"),g.Q(L.answer,g.E5),c),e.show()):L.answer&&g.Q(L.answer,kx)&&(this.X=new CN(this.api,this.layoutId,this.interactionLoggingClientData,this.A7, ["ytp-ad-survey-answer-toggle-button"]),this.X.jl(this.answer),g.l(this,this.X),this.X.init(X7("survey-answer-button"),g.Q(L.answer,kx),c));this.show()}; V6.prototype.Cd=function(e){this.layoutId?kH(this.A7,e,this.layoutId,this.macros):(e=new g.yu("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.A9(e))}; V6.prototype.onClick=function(e){B7.prototype.onClick.call(this,e);if(this.api.S().Y("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; V6.prototype.clear=function(){this.hide()};g.z(dWT,B7);dWT.prototype.init=function(e,L,c){B7.prototype.init.call(this,e,L,c);L.answer&&g.Q(L.answer,kx)&&(this.button=new CN(this.api,this.layoutId,this.interactionLoggingClientData,this.A7,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.jl(this.X),this.button.init(X7("survey-none-of-the-above-button"),g.Q(L.answer,kx),c));this.show()};g.z(CY,bX);CY.prototype.init=function(e,L,c){bX.prototype.init.call(this,e,L,c);e=!1;L.text&&(L=g.o9(L.text),e=!g.J_(L));e||g.F7(Error("No submit text was present in the renderer."))}; CY.prototype.onClick=function(e){this.publish("l");bX.prototype.onClick.call(this,e)};g.z(aB,B7); aB.prototype.init=function(e,L,c){B7.prototype.init.call(this,e,L,c);if(e=L.skipOrPreviewRenderer)g.Q(e,sJ)?(e=g.Q(e,sJ),c=new hW(this.api,this.layoutId,this.interactionLoggingClientData,this.A7,this.G,!0),c.jl(this.skipOrPreview),c.init(X7("skip-button"),e,this.macros),g.l(this,c),this.X=c):g.Q(e,U5)&&(e=g.Q(e,U5),c=new En(this.api,this.layoutId,this.interactionLoggingClientData,this.A7,this.G,!1),c.jl(this.skipOrPreview),c.init(X7("ad-preview"),e,this.macros),c.h7.show(100),c.show(),g.l(this,c), this.X=c);this.X==null&&(e=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(L)),g.A9(e));L.submitButton&&(e=L.submitButton,g.Q(e,g.E5)&&(e=g.Q(e,g.E5),c=new CY(this.api,this.layoutId,this.interactionLoggingClientData,this.A7),c.jl(this.submitButton),c.init(X7("survey-submit"),e,this.macros),g.l(this,c),this.K=c));if(e=L.adBadgeRenderer)e=g.Q(e,NuL),c=new u1(this.api,this.layoutId,this.interactionLoggingClientData,this.A7,!0,!0,!0),c.jl(this.Z),c.init(X7("simple-ad-badge"), e,this.macros),this.adBadge=c.element,g.l(this,c);if(e=L.adDurationRemaining)e=g.Q(e,DQe),c=new M2(this.api,this.layoutId,this.interactionLoggingClientData,this.A7,this.G,void 0,!0),c.jl(this.Z),c.init(X7("ad-duration-remaining"),e,this.macros),g.l(this,c);(L=L.adInfoRenderer)&&g.Q(L,dK)&&(e=new $u(this.api,this.layoutId,this.interactionLoggingClientData,this.A7,this.element,void 0,!0),g.l(this,e),this.adBadge!==void 0?this.Z.insertBefore(e.element,this.adBadge.nextSibling):e.jl(this.Z),e.init(X7("ad-info-hover-text-button"), g.Q(L,dK),this.macros));this.show()}; aB.prototype.clear=function(){this.hide()};g.z(NI,B7);NI.prototype.init=function(e,L,c){B7.prototype.init.call(this,e,L,c);Y2f(this)}; NI.prototype.show=function(){this.Z=Date.now();B7.prototype.show.call(this)}; NI.prototype.jm=function(){};g.z(ntn,NI);g.M=ntn.prototype;g.M.init=function(e,L,c){var I=this;NI.prototype.init.call(this,e,L,c);L.questionText&&UWx(this,L.questionText);L.answers&&L.answers.forEach(function(B,x){g.Q(B,G8)&&Etr(I,g.Q(B,G8),c,x)}); this.j=new Set(this.K.map(function(B){return B.X.X})); (e=L.noneOfTheAbove)&&(e=g.Q(e,J_N))&&eTh(this,e,c);L.surveyAdQuestionCommon&&KBT(this,L.surveyAdQuestionCommon);L.submitEndpoints&&(this.submitEndpoints=L.submitEndpoints);this.C(this.element,"change",this.onChange);this.show()}; g.M.jm=function(){Lf7(this,!1);this.G.K.subscribe("l",this.b99,this)}; g.M.onChange=function(e){e.target===this.noneOfTheAbove.button.X?cJU(this):this.j.has(e.target)&&(this.noneOfTheAbove.button.toggleButton(!1),Lf7(this,!0))}; g.M.b99=function(){var e=[],L=this.K.reduce(function(B,x,S){var h=x.toggledLoggingParams;x.X&&x.X.isToggled()&&h&&(B.push(h),e.push(S));return B},[]).join("&"),c=this.submitEndpoints.map(function(B){if(!B.loggingUrls)return B; B=g.zG(B);B.loggingUrls=B.loggingUrls.map(function(x){x.baseUrl&&(x.baseUrl=M3(x.baseUrl,L));return x}); return B}); if(c){c=g.f(c);for(var I=c.next();!I.done;I=c.next())I=I.value,this.layoutId?kH(this.A7,I,this.layoutId,this.macros):g.A9(Error("Missing layoutId for multi_select_question."))}this.api.S().Y("supports_multi_step_on_desktop")&&this.h7(e)}; g.M.clear=function(){this.api.S().Y("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.z(mY,NI);mY.prototype.init=function(e,L,c){var I=this;NI.prototype.init.call(this,e,L,c);L.questionText&&UWx(this,L.questionText);L.answers&&L.answers.forEach(function(B,x){g.Q(B,G8)&&Etr(I,g.Q(B,G8),c,x)}); L.surveyAdQuestionCommon?KBT(this,L.surveyAdQuestionCommon):nv(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(L)));this.show()}; mY.prototype.clear=function(){this.api.S().Y("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.z(y6,B7);y6.prototype.init=function(e,L,c){var I=this;B7.prototype.init.call(this,e,L,c);if(this.api.S().Y("supports_multi_step_on_desktop")){var B;this.conditioningRules=(B=L.conditioningRules)!=null?B:[];var x;this.K=(x=L.questions)!=null?x:[];var S;((S=L.questions)==null?0:S.length)&&onM(this,0)}else(L.questions||[]).forEach(function(h){g.Q(h,Pf)?BcJ(I,g.Q(h,Pf),c):g.Q(h,lH)&&xMe(I,g.Q(h,lH),c)}); this.show()}; y6.prototype.clear=function(){this.api.S().Y("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; y6.prototype.G=function(e){var L=this;if(this.api.S().Y("supports_multi_step_on_desktop")){var c;if((c=this.conditioningRules)==null?0:c.length){var I;if(e.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(B){return B.questionIndex===L.X})==null)g.A9(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(B){if(B.questionIndex===L.X)switch(B.condition){case "CONDITION_ALL_OF":var x;if((x=B.answerIndices)==null?0:x.every(function(h){return e.includes(h)}))I=B.nextQuestionIndex; break;case "CONDITION_ANY_OF":var S;if((S=B.answerIndices)==null?0:S.some(function(h){return e.includes(h)}))I=B.nextQuestionIndex; break;default:g.A9(Error("Expected specified condition in survey conditioning rules."))}}),I!=null)onM(this,I); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.A9(Error("No conditioning rules, yet survey is multi step. Expected questions.length to be 1.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}};g.z(ZY,B7); ZY.prototype.init=function(e,L,c){var I=this;B7.prototype.init.call(this,e,L,c);e=L.timeoutSeconds||0;if(typeof e!=="number"||e<0)g.A9(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+e));else if(L.timeoutCommands)if(L.text)if(L.ctaButton&&g.Q(L.ctaButton,g.E5))if(L.brandImage)if(L.backgroundImage&&g.Q(L.backgroundImage,X6)&&g.Q(L.backgroundImage,X6).landscape){this.layoutId||g.A9(Error("Missing layoutId for survey interstitial."));S$h(this.interstitial,g.Q(L.backgroundImage, X6).landscape);S$h(this.logoImage,L.brandImage);g.fU(this.text,g.o9(L.text));var B=["ytp-ad-survey-interstitial-action-button"];B.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new bX(this.api,this.layoutId,this.interactionLoggingClientData,this.A7,B);g.l(this,this.actionButton);this.actionButton.jl(this.K);this.actionButton.init(X7("button"),g.Q(L.ctaButton,g.E5),c);this.actionButton.show();this.X=new Os(this.api,e*1E3);this.X.subscribe("g",function(){I.transition.hide()}); g.l(this,this.X);this.C(this.element,"click",function(x){var S=x.target===I.interstitial;x=I.actionButton.element.contains(x.target);if(S||x)if(I.transition.hide(),S)I.api.onAdUxClicked(I.componentType,I.layoutId)}); this.transition.show(100)}else g.A9(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.A9(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.A9(Error("SurveyTextInterstitialRenderer has no button."));else g.A9(Error("SurveyTextInterstitialRenderer has no text."));else g.A9(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; ZY.prototype.clear=function(){this.hide()}; ZY.prototype.show=function(){rJL(!0);B7.prototype.show.call(this)}; ZY.prototype.hide=function(){rJL(!1);B7.prototype.hide.call(this)};g.z(pY,lX);g.M=pY.prototype; g.M.init=function(e,L){lX.prototype.init.call(this,e,L,{});if(L.durationMilliseconds){if(L.durationMilliseconds<0){g.A9(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+L.durationMilliseconds));return}this.K=L.durationMilliseconds}else this.K=this.X.QP();var c;if((c=L.previewText)==null||!c.text||g.J_(L.previewText.text))g.A9(Error("No text is returned for AdPreview."));else{this.j=L.previewText;L.previewText.isTemplated||g.fU(this.Z,L.previewText.text);var I; if(((I=this.api.getVideoData(1))==null?0:I.h1)&&L.previewImage){var B,x;(e=((x=Rz(((B=L.previewImage)==null?void 0:B.sources)||[],52,!1))==null?void 0:x.url)||"")&&e.length?(this.previewImage=new g.I9({U:"img",W:"ytp-preview-ad__image",N:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",e),g.l(this,this.previewImage),this.previewImage.jl(this.element)):g.A9(Error("Failed to get imageUrl in AdPreview."))}else this.Z.classList.add("ytp-preview-ad__text--padding--wide")}}; g.M.clear=function(){this.hide()}; g.M.hide=function(){QI(this);lX.prototype.hide.call(this)}; g.M.show=function(){P7(this);lX.prototype.show.call(this)}; g.M.nV=function(){this.hide()}; g.M.SA=function(){if(this.X){var e=this.X.getProgressState();if(e!=null&&e.current)if(e=1E3*e.current,e>=this.K)this.transition.hide();else{var L;if((L=this.j)==null?0:L.isTemplated)if(L=Math.max(0,Math.ceil((this.K-e)/1E3)),L!==this.G){var c,I;(e=(c=this.j)==null?void 0:(I=c.text)==null?void 0:I.replace("{TIME_REMAINING}",String(L)))&&g.fU(this.Z,e);this.G=L}}}};g.z($h,B7); $h.prototype.init=function(e,L){B7.prototype.init.call(this,e,L,{});var c,I;if((e=((I=Rz(((c=L.image)==null?void 0:c.sources)||[],hTN(L),!0))==null?void 0:I.url)||"")&&e.length){c=this.q0("ytp-ad-avatar");c.src=e;var B,x;if(I=(B=L.interaction)==null?void 0:(x=B.accessibility)==null?void 0:x.label)c.alt=I;switch(L.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(L.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.A9(Error("Failed to get imageUrl in AdAvatar."))}; $h.prototype.clear=function(){this.hide()}; $h.prototype.onClick=function(e){B7.prototype.onClick.call(this,e)};g.z(jQ,B7); jQ.prototype.init=function(e,L){B7.prototype.init.call(this,e,L,{});var c;e=(c=L.label)==null?void 0:c.content;if((c=e!=null&&!g.J_(e))||L.iconImage){c&&(this.buttonText=new g.I9({U:"span",W:"ytp-ad-button-vm__text",aq:e}),g.l(this,this.buttonText),this.buttonText.jl(this.element));var I,B,x=((I=L.interaction)==null?0:(B=I.accessibility)==null?0:B.label)||c?e:"";x&&mn(this.element,x+" This link opens in new tab");ab(this.element);if(L.iconImage){I=void 0;if(L.iconImage){a:{B=L.iconImage;if(B.sources)for(B= g.f(B.sources),e=B.next();!e.done;e=B.next())if(e=e.value,x=void 0,(x=e.clientResource)==null?0:x.imageName){B=e;break a}B=void 0}if(B){var S;I={iconType:(S=B.clientResource)==null?void 0:S.imageName}}}S=FO(I,!1,this.K);S!=null&&(this.buttonIcon=new g.I9({U:"span",W:"ytp-ad-button-vm__icon",L:[S]}),g.l(this,this.buttonIcon),L.iconLeading?(z$(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):c?(this.buttonIcon.jl(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.jl(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(L.style){case "AD_BUTTON_STYLE_TRANSPARENT":this.element.classList.add("ytp-ad-button-vm--style-transparent");break;case "AD_BUTTON_STYLE_FILLED_WHITE":this.element.classList.add("ytp-ad-button-vm--style-filled-white");break;case "AD_BUTTON_STYLE_FILLED":this.api.Y("delhi_modern_web_player")?this.element.classList.add("ytp-ad-button-vm--style-filled-white"):this.element.classList.add(this.X?"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(L.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.F7(Error("AdButton does not have label or an icon."))}; jQ.prototype.clear=function(){this.hide()}; jQ.prototype.onClick=function(e){B7.prototype.onClick.call(this,e)};g.z(RTh,lX);g.M=RTh.prototype; g.M.init=function(e,L){lX.prototype.init.call(this,e,L,{});this.api.S().Y("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.q0("ytp-ad-avatar-lockup-card__avatar_and_text_container").classList.add("ytp-ad-avatar-lockup-card__avatar_and_text_container--large"),this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline--large"),this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--large"),this.adButton.element.classList.add("ytp-ad-avatar-lockup-card__button--large"), this.adAvatar.element.classList.add("ytp-ad-avatar-lockup-card__ad_avatar--large"),z$(this.q0("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(e=g.Q(L.avatar,KY)){var c=L.headline;if(c){var I=L.description;if(I){var B=g.Q(L.button,nY);B?(this.adAvatar.init(X7("ad-avatar"),e),this.headline.init(X7("ad-simple-attributed-string"),new vZ(c)),this.description.init(X7("ad-simple-attributed-string"),new vZ(I)),c.content&&c.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"), this.adButton.init(X7("ad-button"),B),this.startMilliseconds=L.startMs||0,this.api.Vv()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.bR.bind(this)),P7(this)):g.A9(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.A9(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.A9(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.A9(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.M.SA=function(){if(this.X){var e=this.X.getProgressState();e&&e.current&&1E3*e.current>=this.startMilliseconds&&(QI(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.M.nV=function(){this.clear()}; g.M.onClick=function(e){this.api.pauseVideo();lX.prototype.onClick.call(this,e)}; g.M.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.bR.bind(this))}; g.M.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();lX.prototype.show.call(this)}; g.M.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();lX.prototype.hide.call(this)}; g.M.bR=function(e){e==="hidden"?this.show():this.hide()};g.z(HG,B7);g.M=HG.prototype; g.M.init=function(e,L){B7.prototype.init.call(this,e,L,{});if(!L.label||g.J_(L.label))g.A9(Error("No label is returned for SkipAdButton."));else if(g.fU(this.G,L.label),e=FO({iconType:"SKIP_NEXT_NEW"}),e==null)g.A9(Error("Unable to retrieve icon for SkipAdButton"));else if(this.Z=new g.I9({U:"span",W:"ytp-skip-ad-button__icon",L:[e]}),g.l(this,this.Z),this.Z.jl(this.element),this.api.S().experiments.N0("enable_skip_to_next_messaging")&&(L=g.VK(L.targetId)))this.K=!0,this.element.setAttribute("data-tooltip-target-id",L), this.element.setAttribute("data-tooltip-target-fixed","")}; g.M.onClick=function(e){e&&e.preventDefault();var L,c;IQR(e,{contentCpn:(c=(L=this.api.getVideoData(1))==null?void 0:L.clientPlaybackNonce)!=null?c:""})===0?this.api.fS("onAbnormalityDetected"):(B7.prototype.onClick.call(this,e),this.api.fS("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.M.clear=function(){this.X.reset();this.hide()}; g.M.hide=function(){B7.prototype.hide.call(this)}; g.M.show=function(){this.X.start();B7.prototype.show.call(this);this.K&&this.api.S().experiments.N0("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.z(uxL,lX);g.M=uxL.prototype; g.M.init=function(e,L){lX.prototype.init.call(this,e,L,{});e=g.Q(L.preskipState,Pw7);var c;if((c=this.api.getVideoData())==null?0:c.isDaiEnabled()){if(!e){g.A9(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.K=new pY(this.api,this.layoutId,this.interactionLoggingClientData,this.A7,this.X);g.l(this,this.K);this.K.jl(this.element);var I;(I=this.K)==null||I.init(X7("preview-ad"),e);(c=this.K)!=null&&(c.transition.show(100),c.show())}(c=g.Q(L.skippableState,dQU))?(L.skipOffsetMilliseconds!= null?this.skipOffsetMilliseconds=L.skipOffsetMilliseconds:(g.F7(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.Z.init(X7("skip-button"),c),this.show()):g.A9(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.M.show=function(){P7(this);lX.prototype.show.call(this)}; g.M.hide=function(){!this.isSkippable&&this.K?this.K.hide():this.Z&&this.Z.hide();QI(this);lX.prototype.hide.call(this)}; g.M.clear=function(){var e;(e=this.K)==null||e.clear();this.Z&&this.Z.clear();QI(this);lX.prototype.hide.call(this)}; g.M.nV=function(){this.hide()}; g.M.SA=function(){if(1E3*this.X.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var e;(e=this.K)!=null&&e.transition.hide();(e=this.Z)!=null&&(e.transition.show(),e.show())}};g.z(lY,B7); lY.prototype.init=function(e,L){B7.prototype.init.call(this,e,L,{});if(L.label){var c;((c=L.label)==null?0:c.content)&&!g.J_(L.label.content)&&(this.linkText=new g.I9({U:"span",W:"ytp-visit-advertiser-link__text",aq:L.label.content}),g.l(this,this.linkText),this.linkText.jl(this.element));var I,B;if((I=L.interaction)==null?0:(B=I.accessibility)==null?0:B.label)mn(this.element,L.interaction.accessibility.label+" This link opens in new tab");else{var x;((x=L.label)==null?0:x.content)&&!g.J_(L.label.content)&&mn(this.element, L.label.content+" This link opens in new tab")}ab(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.A9(Error("No label found in VisitAdvertiserLink."))}; lY.prototype.onClick=function(e){B7.prototype.onClick.call(this,e);this.api.onAdUxClicked(this.componentType,this.layoutId)}; lY.prototype.clear=function(){this.hide()};g.z(PG,B7); PG.prototype.init=function(e,L,c,I){B7.prototype.init.call(this,e,L,{});if(L.skipOrPreview){c=L.skipOrPreview;e=g.Q(c,UQg);c=g.Q(c,Pw7);if(e)this.TR=new uxL(this.api,this.layoutId,this.interactionLoggingClientData,this.A7,this.K),g.l(this,this.TR),this.TR.jl(this.D),this.TR.init(X7("skip-ad"),e);else{var B;c&&((B=this.api.getVideoData())==null?0:B.isDaiEnabled())&&(this.G=new pY(this.api,this.layoutId,this.interactionLoggingClientData,this.A7,this.K,1),g.l(this,this.G),this.G.jl(this.D),this.G.init(X7("ad-preview"), c),B=this.G,B.transition.show(100),B.show())}if(B=g.Q(L.skipOrPreview,UQg))var x=B.skipOffsetMilliseconds}L.playerAdCard&&(B=g.Q(L.playerAdCard,QsN))&&(this.playerAdCard=new RTh(this.api,this.layoutId,this.interactionLoggingClientData,this.A7,this.K),g.l(this,this.playerAdCard),this.playerAdCard.jl(this.Ve),this.playerAdCard.init(X7("ad-avatar-lockup-card"),B));L.adBadgeRenderer&&((B=g.Q(L.adBadgeRenderer,Yh))?(this.Z=new AW(this.api,this.layoutId,this.interactionLoggingClientData,this.A7,!0),g.l(this, this.Z),this.Z.jl(this.X),this.Z.init(X7("ad-badge"),B)):g.A9(Error("AdBadgeViewModel is not found in player overlay layout.")));L.adPodIndex&&(B=g.Q(L.adPodIndex,$Q7))&&(this.adPodIndex=new Fn(this.api,this.layoutId,this.interactionLoggingClientData,this.A7),g.l(this,this.adPodIndex),this.adPodIndex.jl(this.X),this.adPodIndex.init(X7("ad-pod-index"),B));L.adInfoRenderer&&((B=g.Q(L.adInfoRenderer,dK))?(this.adInfoButton=new $u(this.api,this.layoutId,this.interactionLoggingClientData,this.A7,this.element, void 0,!0),g.l(this,this.adInfoButton),this.Z!==void 0?this.X.insertBefore(this.adInfoButton.element,this.Z.element.nextSibling):this.adInfoButton.jl(this.X),this.adInfoButton.init(X7("ad-info-hover-text-button"),B,this.macros)):g.F7(Error("AdInfoRenderer is not found in player overlay layout.")));var S;B=(S=this.api.getVideoData())==null?void 0:S.isDaiEnabled();L.adDurationRemaining&&B&&(S=g.Q(L.adDurationRemaining,DQe))&&(this.adDurationRemaining=new M2(this.api,this.layoutId,this.interactionLoggingClientData, this.A7,this.K,I.videoAdDurationSeconds,!0),g.l(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.X.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.jl(this.X),this.adDurationRemaining.init(X7("ad-duration-remaining"),S,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));L.visitAdvertiserLink&&(I=g.Q(L.visitAdvertiserLink,X2M))&&(this.visitAdvertiserLink=new lY(this.api,this.layoutId, this.interactionLoggingClientData,this.A7),g.l(this,this.visitAdvertiserLink),this.visitAdvertiserLink.jl(this.X),this.visitAdvertiserLink.init(X7("visit-advertiser-link"),I));L.adDisclosureBanner&&(L=g.Q(L.adDisclosureBanner,p2M))&&(this.adDisclosureBanner=new b1(this.api,this.layoutId,this.interactionLoggingClientData,this.A7),g.l(this,this.adDisclosureBanner),this.adDisclosureBanner.jl(this.h7),this.adDisclosureBanner.init(X7("ad-disclosure-banner"),L));this.j=new g9(this.api,this.K,x,!0);g.l(this, this.j);g.Uq(this.api,this.j.element,4);this.show()}; PG.prototype.clear=function(){this.hide()};g.z(tvw,B7);g.M=tvw.prototype; g.M.init=function(e,L){B7.prototype.init.call(this,e,L,{});if(L!=null&&L.title)if(e=L.title)if(this.headline.init(X7("ad-simple-attributed-string"),new vZ(e)),e=g.Q(L.moreInfoButton,nY)){if(this.moreInfoButton.init(X7("ad-button"),e),L.descriptions)L.descriptions.length>0&&(e=L.descriptions[0])&&(this.X=new fq(this.api,this.layoutId,this.interactionLoggingClientData,this.A7),g.l(this,this.X),this.X.jl(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.X.init(X7("ad-simple-attributed-string"), new vZ(e))),L.descriptions.length>1&&(L=L.descriptions[1])&&(this.K=new fq(this.api,this.layoutId,this.interactionLoggingClientData,this.A7),g.l(this,this.K),this.K.jl(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.K.init(X7("ad-simple-attributed-string"),new vZ(L)))}else g.A9(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.A9(Error("No headline found in AdGridCardText."));else g.A9(Error("No headline found in AdGridCardText."))}; g.M.onClick=function(e){B7.prototype.onClick.call(this,e);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.M.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var e;(e=this.X)==null||e.clear();var L;(L=this.K)==null||L.clear()}; g.M.hide=function(){this.headline.hide();this.moreInfoButton.hide();var e;(e=this.X)==null||e.hide();var L;(L=this.K)==null||L.hide();B7.prototype.hide.call(this)}; g.M.show=function(){B7.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var e;(e=this.X)==null||e.show();var L;(L=this.K)==null||L.show()};g.z(Q6,B7);Q6.prototype.init=function(e,L){B7.prototype.init.call(this,e,L,{});if(L!=null&&L.gridCards)if(L.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.A9(Error("Only single column style is currently supported in AdGridCardCollection."));else for(e=g.f(L.gridCards),L=e.next();!L.done;L=e.next()){if(L=g.Q(L.value,ltL)){var c=new tvw(this.api,this.layoutId,this.interactionLoggingClientData,this.A7);g.l(this,c);c.jl(this.element);c.init(X7("ad-grid-card-text"),L);this.X.push(c)}}else g.A9(Error("No grid cards found in AdGridCardCollection."))}; Q6.prototype.show=function(){for(var e=g.f(this.X),L=e.next();!L.done;L=e.next())L.value.show();B7.prototype.show.call(this)}; Q6.prototype.clear=function(){this.hide();for(var e=g.f(this.X),L=e.next();!L.done;L=e.next())L.value.clear()}; Q6.prototype.hide=function(){for(var e=g.f(this.X),L=e.next();!L.done;L=e.next())L.value.hide();B7.prototype.hide.call(this)};g.z(dl,lX);g.M=dl.prototype;g.M.init=function(e,L,c,I,B){B=B===void 0?0:B;lX.prototype.init.call(this,e,L,c,I);this.playerProgressOffsetMs=B;P7(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.eH.bind(this));this.api.addEventListener("resize",this.LM.bind(this));this.api.Vv()?(this.K=!0,this.api.FO(!0),this.show()):this.hide()}; g.M.SA=function(){if(this.X){var e=this.X.getProgressState();e&&e.current&&!this.K&&1E3*e.current>=this.playerProgressOffsetMs&&(this.K=!0,this.api.FO(!0),this.show())}}; g.M.nV=function(){this.K&&this.api.FO(!1);this.hide()}; g.M.clear=function(){this.api.FO(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.eH.bind(this));this.api.removeEventListener("resize",this.LM.bind(this));QI(this);this.hide()}; g.M.hide=function(){O67(!1);lX.prototype.hide.call(this)}; g.M.show=function(){O67(!0);lX.prototype.show.call(this)};g.z(q$N,dl);g.M=q$N.prototype; g.M.init=function(e,L,c,I){if(L!=null&&L.adGridCardCollection)if(L!=null&&L.adButton){var B=Number(L.playerProgressOffsetMs||"0");isNaN(B)?dl.prototype.init.call(this,e,L,c,I):dl.prototype.init.call(this,e,L,c,I,B);e=L.headline;c=g.Q(L.adAvatar,KY);e&&c?(this.headline=new fq(this.api,this.layoutId,this.interactionLoggingClientData,this.A7),g.l(this,this.headline),this.headline.jl(this.q0("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(X7("ad-simple-attributed-string"),new vZ(e)), this.adAvatar=new $h(this.api,this.layoutId,this.interactionLoggingClientData,this.A7),g.l(this,this.adAvatar),this.adAvatar.jl(this.q0("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(X7("ad-avatar"),c)):this.G.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");e=g.Q(L.adGridCardCollection,Hee);this.adGridCardCollection.init(X7("ad-grid-card-collection"),e);L=g.Q(L.adButton,nY);this.adButton.init(X7("ad-button"),L); this.hide()}else g.A9(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.A9(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.M.onClick=function(e){(this.adButton&&g.vz(this.adButton.element,e.target)||this.adAvatar&&g.vz(this.adAvatar.element,e.target))&&this.api.pauseVideo();dl.prototype.onClick.call(this,e);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.M.LM=function(){}; g.M.clear=function(){this.hide();var e;(e=this.headline)==null||e.clear();var L;(L=this.adAvatar)==null||L.clear();this.adGridCardCollection.clear();this.adButton.clear();dl.prototype.clear.call(this)}; g.M.show=function(){var e;(e=this.headline)==null||e.show();var L;(L=this.adAvatar)==null||L.show();this.adGridCardCollection.show();this.adButton.show();dl.prototype.show.call(this)}; g.M.hide=function(){var e;(e=this.headline)==null||e.hide();var L;(L=this.adAvatar)==null||L.hide();this.adGridCardCollection.hide();this.adButton.hide();dl.prototype.hide.call(this)}; g.M.eH=function(e){e==="transitioning"?(this.Z.classList.remove("ytp-ad-underlay-clickable"),this.show()):e==="visible"?this.Z.classList.add("ytp-ad-underlay-clickable"):e==="hidden"&&(this.hide(),this.Z.classList.remove("ytp-ad-underlay-clickable"))};g.z(Ul,B7); Ul.prototype.init=function(e,L){B7.prototype.init.call(this,e,L,{});if(L.attributes===void 0)g.A9(Error("No attributes found in AdDetailsLineViewModel."));else if(L.style===void 0)g.A9(Error("No style found in AdDetailsLineViewModel."));else{e=g.f(L.attributes);for(var c=e.next();!c.done;c=e.next())if(c=c.value,c.text!==void 0){c=c.text;var I=L.style,B=new fq(this.api,this.layoutId,this.interactionLoggingClientData,this.A7);g.l(this,B);B.jl(this.element);a:switch(I){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":I="ytp-ad-details-line__text--style-responsive"; break a;default:I="ytp-ad-details-line__text--style-standard"}B.element.classList.add(I);B.init(X7("ad-simple-attributed-string"),new vZ(c));this.X.push(B)}this.show()}}; Ul.prototype.show=function(){this.X.forEach(function(e){e.show()}); B7.prototype.show.call(this)}; Ul.prototype.clear=function(){this.hide()}; Ul.prototype.hide=function(){this.X.forEach(function(e){e.hide()}); B7.prototype.hide.call(this)};g.z(El,B7);El.prototype.init=function(e,L){B7.prototype.init.call(this,e,L,{});var c,I;(e=((I=Rz(((c=L.image)==null?void 0:c.sources)||[]))==null?void 0:I.url)||"")&&e.length?(c=this.q0("ytp-image-background-image"),g.l3(c,"backgroundImage","url("+e+")"),L.blurLevel!==void 0&&g.l3(c,"filter","blur("+L.blurLevel+"px)"),L.gradient!==void 0&&(L=new g.U({U:"div",Rq:["ytp-image-background--gradient-vertical"]}),g.l(this,L),L.jl(this.element)),this.show()):g.A9(Error("Failed to get imageUrl in ImageBackground."))}; El.prototype.clear=function(){this.hide()};g.z(Tcw,lX);g.M=Tcw.prototype;g.M.init=function(e,L){lX.prototype.init.call(this,e,L,{});g.l3(this.Z,"stroke-dasharray","0 "+this.K);this.show()}; g.M.clear=function(){this.hide()}; g.M.hide=function(){QI(this);lX.prototype.hide.call(this)}; g.M.show=function(){P7(this);lX.prototype.show.call(this)}; g.M.nV=function(){this.hide()}; g.M.SA=function(){if(this.X){var e=this.X.getProgressState();e!=null&&e.current!=null&&g.l3(this.Z,"stroke-dasharray",e.current/e.seekableEnd*this.K+" "+this.K)}};g.z(XA,B7); XA.prototype.init=function(e,L){B7.prototype.init.call(this,e,L,{});if(MvN(L)){this.adAvatar=new $h(this.api,this.layoutId,this.interactionLoggingClientData,this.A7);g.l(this,this.adAvatar);this.adAvatar.jl(this.q0("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(X7("ad-avatar"),g.Q(L.adAvatar,KY));this.headline=new fq(this.api,this.layoutId,this.interactionLoggingClientData,this.A7);g.l(this,this.headline);this.headline.jl(this.q0("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(X7("ad-simple-attributed-string"),new vZ(L.headline));if(e=g.Q(L.adDetailsLine,Ze9))this.detailsLine=new Ul(this.api,this.layoutId,this.interactionLoggingClientData,this.A7),g.l(this,this.detailsLine),this.detailsLine.jl(this.q0("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(X7("ad-details-line"),e);this.adButton=new jQ(this.api,this.layoutId,this.interactionLoggingClientData,this.A7,!0);g.l(this,this.adButton); this.adButton.jl(this.q0("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(X7("ad-button"),g.Q(L.adButton,nY));this.adBadge=new AW(this.api,this.layoutId,this.interactionLoggingClientData,this.A7,!0);g.l(this,this.adBadge);this.adBadge.jl(this.G);this.adBadge.init(X7("ad-badge"),g.Q(L.adBadge,Yh));this.adInfoButton=new $u(this.api,this.layoutId,this.interactionLoggingClientData,this.A7,this.element,void 0,!0);g.l(this,this.adInfoButton);this.adInfoButton.jl(this.G); this.adInfoButton.init(X7("ad-info-hover-text-button"),g.Q(L.adInfoRenderer,dK),this.macros);if(e=g.Q(L.skipAdButton,dQU))this.skipAdButton=new HG(this.api,this.layoutId,this.interactionLoggingClientData,this.A7),g.l(this,this.skipAdButton),this.skipAdButton.jl(this.element),this.skipAdButton.init(X7("skip-button"),e);this.K=new q2(L.durationMilliseconds);g.l(this,this.K);if(e=g.Q(L.countdownViewModel,ELh))this.X=new Tcw(this.api,this.layoutId,this.interactionLoggingClientData,this.A7,this.K),g.l(this, this.X),this.X.jl(this.q0("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.X.init(X7("timed-pie-countdown"),e);if(L=g.Q(L.imageBackground,jsU))this.imageBackground=new El(this.api,this.layoutId,this.interactionLoggingClientData,this.A7),g.l(this,this.imageBackground),this.imageBackground.jl(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(X7("image-background"), L);this.show();this.element.focus()}}; XA.prototype.clear=function(){g.fv(this.Z);this.hide()}; XA.prototype.show=function(){WfN(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();B7.prototype.show.call(this)}; XA.prototype.hide=function(){WfN(!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.X&&this.X.hide();this.imageBackground&&this.imageBackground.hide();B7.prototype.hide.call(this)};g.z(eu,g.Yg);g.M=eu.prototype;g.M.QP=function(){return 1E3*this.api.getDuration(this.Bh,!1)}; g.M.stop=function(){this.X&&this.Eq.j6(this.X)}; g.M.Ty=function(){var e=this.api.getProgressState(this.Bh);this.K={seekableStart:e.seekableStart,seekableEnd:e.seekableEnd,current:this.api.getCurrentTime(this.Bh,!1)};this.publish("h")}; g.M.getProgressState=function(){return this.K}; g.M.kJ=function(e){g.or(e,2)&&this.publish("g")};var vTU="ad-attribution-bar ad-channel-thumbnail advertiser-name ad-preview ad-title skip-button visit-advertiser".split(" ").concat("shopping-companion action-companion image-companion ads-engagement-panel ads-engagement-panel-layout banner-image top-banner-image-text-icon-buttoned".split(" "));g.z(L4,Nw); L4.prototype.Z=function(e){var L=e.id,c=e.content,I=c.componentType;if(!vTU.includes(I))switch(e.actionType){case 1:e=this.api;var B=this.A7,x=c.layoutId,S=c.interactionLoggingClientData,h=c instanceof JE?c.OM:!1,R=c instanceof JE||c instanceof tW?c.rh:!1;S=S===void 0?{}:S;h=h===void 0?!1:h;R=R===void 0?!1:R;switch(I){case "invideo-overlay":e=new asM(e,x,S,B);break;case "player-overlay":e=new kw(e,x,S,B,new eu(e),R);break;case "player-overlay-layout":e=new PG(e,x,S,B,new eu(e));break;case "survey":e= new y6(e,x,S,B);break;case "ad-action-interstitial":e=new DWc(e,x,S,B,h,R);break;case "video-interstitial-buttoned-centered":e=new XA(e,x,S,B);break;case "survey-interstitial":e=new ZY(e,x,S,B);break;case "ad-message":e=new H3H(e,x,S,B,new eu(e,1));break;case "player-underlay":e=new Ptf(e,x,S,B);break;case "display-underlay-text-grid-cards":e=new q$N(e,x,S,B,new eu(e));break;default:e=null}if(!e){g.F7(Error("No UI component returned from ComponentFactory for type: "+I));break}g.uw(this.components, L)?g.F7(Error("Ad UI component already registered: "+L)):this.components[L]=e;e.bind(c);c instanceof D4?this.K?this.K.append(e.Xa):g.F7(Error("Underlay view was not created but UnderlayRenderer was created")):this.G.append(e.Xa);break;case 2:L=zTM(this,e);if(L==null)break;L.bind(c);break;case 3:c=zTM(this,e),c!=null&&(g.L0(c),g.uw(this.components,L)?(c=this.components,L in c&&delete c[L]):g.F7(Error("Ad UI component does not exist: "+L)))}}; L4.prototype.KS=function(){g.cs(Object.values(this.components));this.components={};Nw.prototype.KS.call(this)};g.z(sHh,g.Vk);g.M=sHh.prototype;g.M.create=function(){try{vne(this),this.load(),this.created=!0,vne(this)}catch(e){Ir(e instanceof Error?e:String(e))}}; g.M.load=function(){try{FfL(this)}finally{BG(DY(this.X).ut)&&this.player.pu("ad",1)}}; g.M.destroy=function(){var e=this.player.getVideoData(1);this.X.X.CA.AR(e&&e.clientPlaybackNonce||"");this.unload();this.created=!1}; g.M.unload=function(){g.Vk.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(L){Ir(L instanceof Error?L:String(L))}if(this.K!=null){var e=this.K;this.K=null;e.dispose()}this.Z.reset()}; g.M.bC=function(){return!1}; g.M.getAdState=function(){return-1}; g.M.getOptions=function(){return Object.values(snL)}; g.M.zY=function(e,L){L=L===void 0?{}:L;switch(e){case "replaceUrlMacros":return e=L,e.url?(L=jen(this.player),Object.assign(L,e.qwS),e=g.FV(e.url,L)):e=null,e;case "onAboutThisAdPopupClosed":this.jj(L);break;case "executeCommand":e=L;e.command&&e.layoutId&&this.executeCommand(e);break;default:return null}}; g.M.U0=function(e){var L;return!((L=this.X.X.Jq)==null||!L.get().U0(e))}; g.M.jj=function(e){e.isMuted&&iGr(DY(this.X).Q2,DY(this.X).rQ,e.layoutId);this.mD&&this.mD.jj()}; g.M.executeCommand=function(e){DY(this.X).A7.executeCommand(e.command,e.layoutId)};g.IL("yt.player.Application.create",g.FH.create);g.IL("yt.player.Application.createAlternate",g.FH.create);mLn(zh(),zgN);var fxh=g.BU("ytcsi.tick");fxh&&fxh("pe");g.JK("ad",sHh);g.z(g.Bj,g.p);g.Bj.prototype.start=function(e,L,c){this.config={from:e,to:L,duration:c,startTime:(0,g.zI)()};this.next()}; g.Bj.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.Bj.prototype.next=function(){if(this.config){var e=this.config,L=e.from,c=e.to,I=e.duration;e=e.startTime;var B=(0,g.zI)()-e;e=this.X;I=Pbv(e,B/I);if(I==0)e=e.T;else if(I==1)e=e.J;else{B=lv(e.T,e.B,I);var x=lv(e.B,e.j,I);e=lv(e.j,e.J,I);B=lv(B,x,I);x=lv(x,e,I);e=lv(B,x,I)}e=g.j5(e,0,1);this.callback(L+(c-L)*e);e<1&&this.delay.start()}};g.z(g.xx,g.U);g.M=g.xx.prototype;g.M.hasSuggestions=function(){return this.suggestionData.length>0}; g.M.jK=function(){this.K&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.M.show=function(){g.U.prototype.show.call(this);DMM(this)}; g.M.Bs=function(){this.K&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.M.OB=function(){this.Nx(this.api.LS().getPlayerSize())}; g.M.Nx=function(e){var L=this.api.isEmbedsShortsMode()?.5625:16/9,c=this.api.TV();e=e.width-(c?112:58);c=Math.ceil(e/(c?320:192));var I=(e-c*8)/c;L=Math.floor(I/L);for(var B=g.f(this.X),x=B.next();!x.done;x=B.next())x=x.value.q0("ytp-suggestion-image"),x.style.width=I+"px",x.style.height=L+"px";this.suggestions.element.style.height=L+"px";this.G=I;this.J=L;this.containerWidth=e;this.columns=c;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.o_(this)}; g.M.onVideoDataChange=function(){var e=this.api.S(),L=this.api.getVideoData();this.j=L.xx?!1:e.G;this.suggestionData=L.suggestions?g.ig(L.suggestions,function(c){return c&&!c.playlistId}):[]; JJJ(this);L.xx?this.title.update({title:g.nC("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:L.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"More shorts":"More videos"})}; g.M.scrollTo=function(e){e=g.j5(e,this.containerWidth-this.suggestionData.length*(this.G+8),0);this.T.start(this.scrollPosition,e,1E3);this.scrollPosition=e;g.o_(this);DMM(this)};})(_yt_player);