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 h="1969-12-31T18:01:10.000-06:00;path;startsWith;length;aP;\u22a4,)}[;indexOf;local;;get;scheme;match;assign;m3;?;slice;splice;:;https://local;file;M_;X;cmo;toString;1969-12-31T14:46:01.000-09:15;1969-12-31T21:00:20.000-03:00;replace;url;prototype;Z;n;G;1970-01-01T08:15:44.000+08:15;push;U;/initplayback;split;&;1;://;/api/manifest;fromCharCode;\\.googlevideo\\.com$;s;1970-01-01T03:16:17.000+03:15;set;forEach;,;rr;mn;Tq;\\.a1\\.googlevideo\\.com$;fallback_count;cmo=;1969-12-31T13:16:01.000-10:45;join;clone;pow;r;true;sp;cmo=td;undefined;unshift;reverse;eX;fvip;rr?[1-9].*\\.c\\.youtube\\.com$;pop;youtube.player.web_20250512_21_RC00;/file/index.m3u8;IXmZcDeAwfM_Z0BguL-_w8_;//;=;vJ;/;1970-01-01T04:15:29.000+04:15;signatureCipher;redirector.googlevideo.com;/videoplayback;%3D;Untrusted URL;playerfallback;index.m3u8;www.youtube.com;1970-01-01T11:15:47.000+11:15;http://local;UHidk9;---;a1.googlevideo.com;cmo=pf;)\\\u00d6;1969-12-31T13:00:27.000-11:00;1970-01-01T03:00:05.000+03:00;xA6rij".split(";"), KU,Kk7,nHF,QV,oH3,lek,S8,xpd,r3,jrH,sd,CU,Od,Rr,V8k,hfr,d3,kH,vHM,g3,Qrq,YH,Ud,$pF,t7,yV,Ze,W3,ar,Sd3,Fq,Mp,Np,srH,CF3,VF,OUq,HU7,QF,Rfr,uqU,ef7,zf7,w3p,SV,Ied,iUU,iG,B3F,Dz,mpV,p3f,mg,Lkr,T3q,DpM,dpV,U0,Zz,kMf,gHU,Aj,c73,XF,lS,jh,VP,hK,vj,Up3,QP,$2,Sh,t8q,ZU3,s7,feM,Ri,eh,pu,Lu,TR,DV,WkU,aeq,k2,cj,gI,FkV,qdr,EHq,bU8,M8d,GR,U7,tK,yP,ZV,Wj,ai,nrr,E7,AK,MX,NX,Jq,nl,oN,or3,XQ,jO,hq,lzM,xz3,jH7,vK,$R,SO,sQ,Cl,RN,uB,sHq,CGM,OnU,Hn3,eO,RmV,zE,ws,PK,uSU,IN,emk,w8r,pl,TE,kR,cK,YR,ind,IzM,Tue,p8d,dz7,tq,yh, FQ,cjF,GOM,Y08,EQ,Aq,UzF,bB,nf,UQ,yjV,tVf,j5,x_,GE,Znp,Vc,vH,hp,$_,fzr,rP,s8,Cf,O8,HH,RF,azr,FgM,uc,q0M,Er7,e5,zd,Ajf,IF,ic,Nur,BH,mQ,pf,JKV,K7p,D2,n2d,dP,k_,lVd,gP,cH,ji8,Vh8,QiH,hSe,$Xe,CSV,Gd,si3,S7V,U8,tp,Ou3,yc,HuM,Z2,uFH,RSr,eSV,zSH,FG,qu,wjf,PSH,IVd,E8,bc,Ap,iuM,L77,Mu,TIq,DXH,Y7p,nK,cKf,dXf,UX3,ZuU,Xh,xX,he,Vy,fVf,vd,Qy,$X,buV,sb,CK,Hd,AK3,RS,Mhr,ea,w$,nRU,ii,mE,LK,oRU,pK,XKH,lHq,TK,Bd,Dw,d$,xEd,kX,cd,VO3,YX,GK,Ub,QNr,Wd,$EU,SQf,rq3,sN3,fK,Zw,te,hn8,vRd,CBk,Hlr,Rn7,uQq,qY,Eb,bi,en7,NY,KB, nB,oy,znU,l_,PBk,VI,j7,wKV,L43,ve,hy,TsU,dEH,$M,kE7,S7,rr,Ov,CB,Ry,He,Pe,gRM,u_,ze,Iy,cqF,i_,YQV,Be,my,Dn,dr,kM,pB,Te,LB,ce,GEH,YM,UEd,Ge,yqe,Uv,ty,wr,yI,fB,We,fHM,ay,Fe,Ev,b_,Ay,Mr,Nr,W48,JM,aH8,Kv,nv,F4M,XB,oc,lw,xJ,jr,Vx,hM,qQV,bl3,Qx,Aqe,MOp,NsM,Sr,r9,OD,KQH,Hi,n_V,Rc,XHd,uw,xup,zz,w9,Pi,jFf,Ic,V5q,iw,h_F,v_e,Bi,QFd,mF,pv,Tz,Dv,S8p,g9,Ccq,$uq,ci,Gz,UD,R_f,OfU,yx,fv,uGM,z_U,wHr,Wi,ED,bw,AM,M9,N9,JQ,ifr,BPk,mur,LQH,TP8,oQ,Xo,Duq,l5,duF,kd8,cpU,t5p,xp,ypM,Zfd,f2V,WQe,a2H,hQ,FQM,q8r,E_8,Ck,si,r5, bfF,ApV,M5p,Oi,H7,RQ,Jee,P7,IQ,i5,B7,mn,pk,nXr,oXq,XdH,DL,kp,g5,Ui,tQ,fk,xYM,VaF,jS3,h3V,vXV,b5,QSF,$YV,AQ,Sbe,rek,sSd,ryr,Ks,Na,ns,o3,X5,sy3,C_e,OBf,lr,xT,HBd,ju,RE7,uer,eEp,VD,zEM,hZ,vQ,we8,P_7,Inr,iBk,Brq,mrV,Su,r7,sf,Of,Trd,HQ,R3,Dr3,Ly7,Cs,drf,ur,eu,zS,PQ,w7,keF,gMF,cy3,ir,GeH,BQ,t7k,yyF,ZBV,fnV,WyV,anp,Fyq,qvr,Ls,TS,Dr,bBF,EMf,Ay3,M7U,kT,Nrq,g7,JMH,KF3,cQ,GS,Uf,nJ7,tZ,yD,oJ8,fs,WQ,a3,F5,qm,Ef,br,AZ,Xi7,lvd,x9V,jc7,Mm,Vrk,vJr,hTk,Jz,K9,$9V,QcM,scV,Hve,OvV,n9,RTq,uB7,eTq,wiH,zTV,PwF,o$,Ivq,ive, l0,B9M,m9F,pi3,LFp,xN,j4,T9d,Vl,D9d,hz,vR,kz7,Ql,gJe,$N,S4,cMe,YD3,rB,C9,U9k,OE,Gzq,trr,yMk,Zvq,WFk,HR,av3,e4,zf,qDk,EJf,Mrp,N9r,wB,PR,I$,i0,BR,mt,p9,L9,Tf,DG,dB,kN,gB,op8,npH,X7k,xa7,lLq,VUk,KnU,jQM,JQe,cR,YN,vpV,QQ7,$a3,yl,ZG,f9,Gf,rQ8,EE,hgk,C53,Ok8,sQf,b0,Az,Md,Nd,Hkr,Siq,Rg8,J$,uo3,ege,zgH,w73,P5F,B5k,ma8,p7H,Lnp,Kd,nd,os,T5V,Da3,gpd,cQq,X7,xu,GWM,jt,lh,tUq,Uaq,yQe,ZkM,fLf,h$,vc,aLk,Fn3,qiF,Epf,bk7,AQ7,MUp,N5r,JZ3,KRr,$u,St,rJ,sW,nTd,xmH,j33,hkH,VuM,vT3,Hc,Rs,Q3e,$me,SfV,uh,et,zF,wJ,Pc,Is,ih, Bc,rZq,pd,CrM,TF,Os7,Hsq,DM,dJ,ku,gJ,Rk3,u5U,zk8,cc,Kk,pH3,yZ,wQ3,Pr7,ZM,IrM,t$,B7M,is3,UW,fd,Wc,mm8,pQV,LRH,T7M,as,Dmr,F7,XQF,oTV,qF,EW,A$,MF,gTr,NF,JU,ne,cZk,Yf7,of,Zs3,VH,UmF,yZq,x0,lg,rT,sG,frr,HV,WRF,Rf,ug,arF,qfk,bsU,ig,D8,Jzr,KtF,nNH,dT,xdq,PV,Mur,V4p,lGd,oNp,XRk,hL3,j$F,gT,GD,Q$H,$dH,SEd,rzd,s$H,tU,C0F,Z8,O9V,uff,eLq,fe,wRf,IGd,P0U,i9F,af,EG,N7,KX,nX,oU,XN,lJ,pRU,Ltd,xQ,TBF,jg,Vj,J1,h1,v_,Qj,VZ,$Q,Ddk,r0,gN3,sL,CX,YEV,czF,Gf8,Udr,t4f,OL,yzM,Z9k,fGk,H_,RU,aGe,ENF,b9H,uJ,J$8,NBq,KrM,nue,ouH, eg,Xcf,Azk,z9,lM8,xFF,w0,Vtp,hUp,vuf,Qsk,$FH,IU,SWq,r$F,ssr,Che,RU7,Ode,iJ,B_,m_,pX,LX,T9,DK,d0,eU8,g0,kQ,zUq,YQ,IMH,c_,idU,BJU,DFF,mF3,pc3,Lre,TJM,G9,UL,t1,dFV,yj,ZK,fX,W_,aU,FN,GFr,kFd,A1,YWr,MC,c$U,bJ,qC,gur,EL,JT,ttd,nm,Km,jX,V1,vP,fMe,Wrq,hT,SX,aM8,r4,y$V,EuU,bdV,A$p,OX,HP,R0,Mte,u1,eX,z1,w4,NJ7,PP,mv,pm,JUf,K03,Lm,n0F,l8U,Ftq,XVe,x7U,jfd,V97,o07,v0e,SGe,Ds,kP,sfH,CgU,Oep,He8,uxr,YP,cP,e4d,R4p,wV3,I8V,PgF,BTU,tT,m7r,UX,Zs,pVf,fm,q0,EX,L07,TT3,nj,D7p,XL,d7F,kDp,Sv,g0q,YGH,rm,GDM,U7k,W0e,t9q,HM, Ra,um,za,wm,be3,PM,Ia,im,M9M,pj,NTU,J13,Lj,nQd,DI,dm,kt,gm,X_k,cM,Ga,Ux,tv,yq,lK3,xCF,jU8,fj,WM,aa,FL,qy,Ex,Vgp,h9H,vQr,QU3,$C7,SLV,bm,r13,o2,sUk,CJ7,OXH,Xc,xx,jj,V2,Q2,$x,Sj,R9U,Ot,HU,R2,uNM,e9U,uk,z9q,w_f,zq,T08,DCq,dCr,wW,k97,gQd,G9d,I2,tgq,UCU,y1q,fKp,W_r,mH,p5,aK8,L5,Tq,D1,dW,kx,gW,cU,Yx,Gq,Ut,tc,y2,Z1,f5,F_8,qLd,EQf,qM,bk,bXU,J2,Ka,na,oe,X6,xA,jf,JTF,Va,h2,va,nP8,KvF,A1e,Sf,$A,x0r,rN,wN,u9,Pa,Ie,VXH,Ba,$0M,vPV,Q0k,rTV,Rzd,s03,OmH,Hmk,j0F,pa,m1,ezd,Tr,DC,dN,zz7,Uj,wPe,t2,ya,ZC,Wa,P1F,F6,qe,Is3, Ej,b9,B48,Ne,K0,n0,oV,XK,lu,xF,jI,VT,h_,pPV,vB,SI,$F,T4H,gPF,d0M,k17,cTH,YXf,U03,tX8,G1k,Zmq,C0,O1,uu,fsd,Wv3,RV,eI,FvF,qXk,MXk,AT3,IV,iu,BB,mG,p0,TB,Jv3,KO3,ntH,GB,U1,otU,XM7,lIM,WB,aV,FK,xyr,jae,hhM,QaF,A_,$yk,JL,Mt,oB,Xz,xd,Sxp,Sk,r2,s6,C6,HJ,RB,ek,Hj7,Rhf,w2,uLH,ehp,IB,zh7,wMk,it,BJ,Pm8,IIM,BmV,L6,pMF,LO8,mA,Tm3,Dy7,ka7,dyp,kd,myf,cvq,Yx3,tL,Gp,Ga8,UyM,yO,ZA,tv7,yvk,aB,Zjq,fIU,WOf,aI3,AL,FOU,qxq,EtV,bj3,AvV,Mvk,NmU,JcM,NH,KHk,KM,oxq,XUk,l1H,xM8,j23,nM,Vn,hHk,$MM,hE,Stf,s2d,VjU,CkF,O5U,H5F,vxF, Q27,oW,XH,jD,rcH,xb,lP,RH7,ucr,eHq,zH7,wUf,Pkr,pUV,I17,SD,rg,eD,DM3,gxU,kqf,sS,PN,cc3,BN,Yt3,UMd,DY,Gqf,Ex7,tj8,qtM,cN,b5U,NWq,Yb,gg,Ac3,Mj3,J2d,US,nAF,oAU,Xak,lC8,xe3,jeF,Vf7,K18,vAV,Qep,$e8,r2F,Sj8,C9F,fM,OaU,WN,aW,FH,HaF,RqH,bP,AE,eqe,u6k,Mo,zqd,P98,ia3,ICq,BNM,L1M,me8,ha,$4,QR,TNr,vC,Sp,HC,Rn,uN,DeM,z0,kr3,In,PC,BC,mI,pE,LE,gAp,T0,dV,c28,gV,Y4,G0,Yj3,Gre,UeV,tfp,UH,yR,y2M,Z$,fE,WC,fCd,an,FP,W17,EH,MD,Aa,bN,ND,J4,qjq,J_H,nFk,NNd,Mfp,KGU,oZ,xo,xtf,oF3,XBd,l0q,F1d,sV3,CZ,r_V,H07,S1f,nZ,Om,vx,rG, Cud,VQ,bak,EAr,A23,l2,$tf,eE,Pur,zj,i0M,B1H,mtF,Px,pBF,LGe,T13,dte,kBq,Bx,c_3,mL,Y18,GBM,tIU,y_3,LZ,Z0d,WG7,Tj,a0d,Dx,dG,hL,MIF,od3,Um,lAU,Vkd,yQ,vdM,QB3,$HU,Ji,Nq,S68,A4,dMU,Em,Mq,b2,Zx,Vk,j3,v9,$7,sBF,S3,se,C7,CtV,O6F,RR,Rtq,uzF,etH,ztF,wJF,Ptk,IAq,i6q,B2V,mHe,wo,pJM,P9,iC,LA3,T23,DHU,dHV,B9,kpp,gdU,cLp,Y6H,To,Dp,k7,GpM,go,UHf,Y7,yLe,tke,Ue,ti,yk,Zp,Z6V,f7,W9,fAU,WAM,aR,Fk,Ed7,aAd,q6F,FAd,q1,Ee,bC,b63,ALr,Mkf,Ai,JEM,obF,nbF,M1,N1,JC,K1,n1,Xa,lU,xD,je,VA,hC,XN7,lYq,xok,vz,QA,$D,Se,sC,OC,h2k,VDf, Rv,vb7,uU,ee,z_,wf,Pz,Bz,mB,p1,L1,T_,DB,df,kD,gf,cz,YD,SSq,tC,rEk,yA,ZB,OMV,HMU,R2d,e2F,wNH,EC,PPe,AC,bU,Bg3,mor,pNU,Nx,JB,Tg7,$m,SQ,rS,sl,doM,Co,Ol,Hs,kuF,RM,DoH,uD,eQ,cE3,gb8,zG,wS,Ps,IM,Bs,Gu3,Uop,po,Lo,DS,dS,tDf,TG,fYq,W2d,aYF,F23,qSd,EbH,bM3,gS,km,ZMV,Ngd,cs,KIe,n4U,y_,o4k,GG,Ul,XCk,ZS,xD3,Vpr,fo,Ws,hsd,aM,Qnq,Fw,OE3,snr,$De,ra8,SHp,El,bD,AB,M5,N5,J3,K3,oO,RsF,zse,x9,YiV,jz,wC7,I$d,h3,Sz,vg,$9,QY,mDq,BV8,iEr,pCM,rH,LIr,k0V,sg,Og,caU,Hg,RO,uE,ez,YHp,zI,G0V,UDH,Pg,md,p3,L3,TI,DP,dH,k9,gH,cg,Y9, GI,Ug,t3,tpM,yaV,yY,ZP,f3,Wg,aO,FE,ZEe,f$3,qV,MV,FIe,qHe,hN,vk,CO,Op,bEe,u$,AaH,Mpr,wt,NVe,KL3,J43,no3,ooF,XxU,lxV,xq7,jZV,h7H,VEH,voV,Smf,sZF,$q8,C2e,OZV,R78,IL,i$,e7M,utH,Bk,mc,pO,wx3,LO,Ti,Dy,IxH,iZF,dt,P2U,kk,pxp,gt,ck,Yk,Gi,Up,tN,yM,Zy,fO,Wk,aL,FO,qi,Ep,b$,AN,Mi,Ni,JV,Kx,nx,o7,X$,lT,xl,jB,V$,hV,vy,Q$,$l,SB,rD,sO,Cx,OO,Hy,R7,uT,eB,zU,wD,Py,I7,iT,By,mK,px,Lx,TU,DU,dD,kl,gD,cy,Yl,GU,UO,tV,y$,ZU,fx,Wy,a7,F$,qT,EO,bT,AV,MT,J6,KQ,TGq,nQ,b,og,NT,XV,lO,xG,dqU,Vg,goq,j1,c48,vb,Ymr,$G,h6,S1,rh,sY,OY,Uq7, tEF,y4H,ZZ3,iO,Bb,zC,mh,WL3,axV,FL8,qmV,Gje,Eop,CQ,bZd,A4F,LQ,gh,TC,Rg,MEd,Hb,pQ,Do,cb,Ji3,uO,e1,kG,dh,KsM,YG,GC,UY,t6,n7k,yg,Zo,fQ,Wb,ag,o7q,X98,x18,jR3,EY,bO,hZ3,A6,See,sR8,O7e,H7V,N6,ukq,eZU,lW,zZV,x1,j_,V8,hD,vL,Q8,w9V,Ipr,i7r,PCH,BoU,m18,sB,CG,HL,uW,e_,z6,p9F,wK,Lsq,PL,I4,OB,mX,pG,LG,T6,To7,BL,d1H,Dg,ko3,g7F,dK,ci8,k1,gK,Ye7,Gof,cL,U1p,t3r,Y1,yiU,Z78,fp7,Wsk,G6,UB,apF,Fsq,tD,y8,Zg,qep,fG,WL,a4,FD,E7r,qL,EB,b7p,bW,Ai3,AD,M3F,Nor,JCq,KBf,nDV,oDM,ML,Xzq,lB3,xxV,NL,jvf,Jl,Ved,KJ,hBk,nJ,vDe,Qv7,oh, Vt,$xq,hl,vf,Qt,$6,SC8,S$,rY,CJ,Ou,Hf,rCk,svH,ux,e$,O17,z2,H1r,RBM,CUH,ua8,eBU,zBU,Pf,wz3,Ih,ix,Bf,mx,PU7,pJ,LJ,DR,IBp,dY,k6,i17,cf,Uu,Y6,Wf,ah,BfH,Fs,mxV,Eu,bx,Al,pzq,NR,LB8,KP,nP,ox,ZR,XJ,lQ,xc,Tfr,jy,Vd,hF,Dxk,v5,Qd,$c,Sy,rc,s_,O_,fP,W5,ax,dxp,k_7,gDF,bQ,FJ,AF,Mb,cCk,YCd,G_3,Nb,Jx,Kh,UxV,te3,E_,yCq,Z1V,nh,fB8,oK,Xj,xI,jR,Vr,hx,vh,$I,SR,s9,Ch,O9,Hh,rq,FB8,qC3,uH,eR,zZ,EDV,Ph,AC8,IK,iH,Me8,Bh,ph,TZ,Nf7,Lh,DO,dq,kI,JBU,YI,nmq,omf,Xsp,U9,GZ,lS7,x53,jMq,tx,hde,wq,VQ3,vm7,yr,QM8,ZO,$53,fh,Slf,rB3,sMH, CD3,Oor,Wh,RdM,Hok,aK,E9,uwf,bH,edk,Ax,zd8,ws7,Mn,PDp,ISH,iof,BSe,Nn,m5V,Jd,Lue,oz,Xn,D58,TSd,d5d,kGq,gmH,xL,jG,VJ,cBp,Yld,GGF,U53,tQ7,yBV,Zoq,fSe,Wu3,aSf,vW,QJ,Fuf,qlq,$L,SG,EmF,rO,sA,OA,boq,HW,Rz,ub,ABM,eG,MQd,zN,NSf,wO,J37,KdH,PW,n9d,o9V,Xgq,Iz,ib,BW,m6,pg,lPr,xV7,Lg,TN,D7,jO7,dO,kL,gO,cW,YL,Vzk,hWM,GN,UA,v9H,td,yJ,Z7,fg,lpH,QOF,$Vf,WW,SgH,r33,sOf,az,Fn,qh,EA,bb,Ad,Mh,Nh,Jm,Ky,ny,CEf,O3f,hm,v$,H3r,QS,H$,S6,mf,PEU,pgr,IPH,LdF,DVp,dVk,THe,kIU,g97,c3q,tm,tzU,fPf,Z37,aP7,Fd3,qgd,W$,ap,b3f,A3V,Kcq, FZ,nk3,Mz7,qW,E$,bR,Am,XkM,jLV,lyH,vkd,OOU,C$d,QL7,HO3,NW,SpV,$iF,ewU,P$r,wkU,mie,Iyd,J5,Kz,di8,XT,kid,yN8,tmf,Uid,Gif,cNM,Wc3,fy8,Ypd,bOr,EkU,ANr,h5,JVd,Mmr,Ntf,gkf,KKU,nle,lL,jC,FcM,ay3,qpr,old,xO,ZOe,lU3,j7V,had,Q7H,rVd,s73,OxM,Hx3,u$3,Rak,IUd,za7,ea8,ix3,pyU,LK8,TDe,DTH,uL,Zi,glq,dTF,P2,tB3,B2,ZxV,fUM,yVU,mi,WKd,pz,Lz,$1,TX,UVr,Dd,dX,kO,gX,aUf,FKr,c2,qOp,El7,bxk,YO,GX,UZ,t5,yE,Zd,fz,W2,a8,AVM,MBd,FT,NDk,qP,qn,EZ,bL,KhH,J63,A5,nGk,oGd,Xbq,MP,NP,loV,Jt,x6d,jgq,Wd7,UTd,V18,KY,S_,q6,v2,hRV,vG8,od, DiF,nz,Qgp,eC,zX,$O,QE,MW,rX,$TM,CTd,SC,pkq,BDV,$6q,Rwp,rNF,X1,cV3,fy,r6d,SYd,okH,SOH,sgd,mTr,H2,LcU,Tt7,zwf,vl3,VBV,hwd,xif,JNF,NHr,E9M,Xy8,sLM,wyq,iOe,Btp,Cz,OZ,sZ,PTF,xT3,OQr,COV,lX,xE,jb,VW,ht,vG,HQd,Sb,rw,s3,O3,HG,RR3,CY,Rd,uX,uV3,eb,z7,ww,Id,zRH,wbk,iX,BG,me,pY,LY,T7,DX,dw,Bhq,gw,m6d,kE,pbf,IoM,iQH,LhU,cG,YE,Th7,D6F,G7,d63,VO,gG3,kCF,YY3,U6r,t18,GCH,fo7,Wh3,Fhp,WG,ad,qYk,EGr,F1,qI,bQp,A6V,M1M,Nhe,bX,JD8,MI,NI,n13,o1V,xLU,V_H,hpk,j43,nT,Xm,o9,v1k,Q43,JJ,$Lr,SBH,rD3,s4U,KT,Rp8,uDF,ep3,HGU,OGF, CW7,zp7,wL8,XLk,PWe,lgM,Ige,iGV,LX3,BKr,mLH,pLV,dL7,TKd,DLM,k6d,g1e,xK,G6H,cDd,ULH,YBp,t_q,yDU,ZG3,fg3,WXq,agH,FXH,qB7,E1V,bGr,ADr,M_d,jd,Jlr,Kx8,n6q,NKF,o6d,Xfk,jhf,hJ,$K,rU,V$V,sa,CT,Oa,$R7,rlH,SuF,Cxf,IRe,HJ3,I9,R9,sh3,Qhd,v6k,hy7,Po,ue,wU,LT,TJ,mR3,DD,dU,pT,DR3,pfr,Lxp,dRV,kK,gU,g68,YK,GJ,Ua,tJ,yL,ZD,fT,clV,Yuq,Wo,a9,qK,UR3,t$M,Fm,Ea,fRH,Wxq,be,aRk,NK,Fxe,JG,nD,quV,KD,oD,E67,l3,Al3,M$3,jo,Vw,So,JF3,vm,rZ,CD,Kjp,Hm,$f,sT,ncV,RD,oc8,u3,X5q,hG,Qw,NYH,OT,eo,lQq,xbV,jxk,zv,Vy8,wZ,Pm,ID,i3,hDe,mT,Bm, pD,LD,vck,Qxf,Tv,D5,dZ,kf,gZ,$b3,cm,Yf,S_3,sx3,Gv,UT,tG,OPH,CQr,yw,HPM,RDV,uJ3,Z5,eDM,zD3,w5k,PQ3,IQe,fD,Wm,aD,FY,iPk,Bce,ET,mbf,b3,AG,p5d,Lj8,MQ,Tc7,DbV,cF3,Y_3,dbk,kmV,gcU,Jo,K4,n4,oj,GmV,Ubk,tyH,yF3,ln,Wj3,xV,FjV,Ecf,q_H,vu,ho,AF3,MyF,Ncf,JxM,QC,KCe,SH,re,nI8,Xhk,lOf,C4,un,hPV,wfH,ed,QKF,$nM,S9M,rxH,sK7,Ho,OV,we,Pu,Hhd,RP7,ujF,Ij,PHV,ePp,zP8,ihr,Bq3,Bu,mnq,IOd,phU,mo,p4,L4,LCd,Tq3,Ts,Da,Dnf,de,dnk,kV,eH,Gs,kZV,Pxk,OJH,UV,to,Za,f4,Wu,aj,FI,yC,bn,cxf,Mg,GZF,Ng,tRM,yxq,Unq,Y9k,ZhU,fOH,WCe,om,aOe, FCp,EId,XX,BYp,lq,Ax8,Nqr,ie,JdM,K6q,zJ,Ry7,eyV,zye,bhe,jl,nL7,oLr,VX,XWV,vp,QX,$n,Sl,rz,l73,sM,CR,xhM,jz3,OM,Hp,Rm,uq,el,zx,hrH,VGq,wz,vLk,$hq,Pp,SAe,Qze,fR,yX,Wp,FX,qw,rd3,ere,Pb,ZW,Mw,I7H,BO3,Tx,nI,LR,ou,xY,tS,jL,DhF,Ve,hu,dh3,kNV,gL3,cdF,vF,YAe,GNq,Qe,UhV,W6U,f7F,tGU,Zgf,ydM,$Y,a7U,SL,F6q,qAU,bgp,Ad8,MGk,NOH,X$H,HF,Ru,jp7,u7,eL,V63,Qp8,$We,S$q,rmf,zl,sp8,Oy3,Hy8,kY,BpU,zo8,w$M,p$8,g6,LfF,DWM,TpM,dWf,YY,tu,kt8,cF,ye,Zm,gh3,Y$r,t6r,FM,Au,nS,lK,J5M,KiV,hk,Vu,Qu,$i,nOf,ldM,X23,xPH,rn,Sn,j8H,hCF,vOH, $P3,Oo,Q8F,SZd,r5F,RT,uK,CLp,au,CS,aif,cmM,by3,iK,vD,VCH,izk,dn,oT,gn,cD,p2V,TXf,Li8,Xr,G$,Uo,tk,dPF,yu,ZZ,kX3,xi,fS,oOF,aT,eC8,Fr,gOr,Zyk,ymp,Gtp,q2,YZe,Ak,FiV,ade,EOq,bzU,lo,V3,hn,jM,Q3,$w,A5F,SM,NXq,rv,Ker,O2,JtV,H4,Rt,lX3,uo,Vbq,h8f,wv,vEq,S3e,gv,Yw,Gh,y3,rt8,Zc,fC,q3,E2,bo,An,sd7,M3,N3,R8r,Jf,KA,u13,e8d,nA,z8H,wGe,PXd,IXe,oI,X4,iY3,mIM,jc,V9,Q9,$3,pGe,Le8,Sc,ra,CA,Os,Twp,DIe,H0,dIF,k73,RI,ct3,gEd,Y3r,uA,UI3,G78,tb3,ec,zY,ytq,fXH,Wee,wa,P0,II,aXr,q33,iA,EE3,mD,bY3,Atf,B0,pA,LA,TY,JJe,nKp,Mb8, KZd,oKp,NwV,XoM,lDF,DN,xKe,VdU,Q9M,Saf,$KH,y9,tf,W0,s9r,aI,F4,qO,OTM,Es,HT3,Ce8,bA,eYp,Af,MO,zY7,NO,KN,wo3,Pef,IDq,iTF,BU3,nN,mKf,pop,eoe,iyp,TU8,LZM,dKM,DKV,kJp,Xp,l6,x5,jY,gKU,GJp,v6,QU,$5,tdV,UKF,VU,yJk,ZT8,fDd,aD8,SY,KTp,H6,R5,Vok,k3,vfU,QDk,$QF,ST3,rGH,eY,sD7,zL,wk,P6,C33,B6,ODF,HDq,pN,LN,RbF,uYF,eb3,zb3,wm3,TL,i6,P3e,I5H,DF,BZq,mQk,pmq,dk,LTM,TZV,DQf,dQ3,kvf,gf3,cGf,YT8,Gv8,UQp,k5,yGr,gk,f5F,ZDf,a53,WTq,qTk,UK,to3,c6,tO,yU,ZF,fN,W6,a5,Efd,Fp,bDr,EK,Ko8,XuV,lak,xg3,jjF,Ms,VHF,oVH,Joe,h$k,b6, vVH,$gr,qs,AO,Mof,NZ7,Ns,SVe,ro3,nV3,AGq,sjk,K$,Cnp,n$,oX,O4r,X_,uIq,H4U,R$r,lj,e$F,xU,jT,Vs,h8,z$k,wuF,Pne,vA,i48,Bek,Qs,mgq,$U,ST,puV,Lok,TeM,Dgr,dgd,ksp,UgH,co3,hY3,sk,yoU,Z4F,YVk,Gs8,gVq,HA,qV3,Ok,C$,tHq,b4U,FoF,aaF,Woq,fa7,uj,AoU,da,eT,z5,wb,MH3,PA,NeH,IX,JS3,fA,KYF,ij,Y3,Us,j9r,p$,T5,Xpq,lWU,Dh,kU,L$,m5,gb,BA,nne,on3,cA,xwH,jmq,GL,FTU,c0,YU,Vl8,db,h6F,vnf,Qmf,$wV,G5,Uk,SMk,rSq,smF,Cqq,OR8,Qj3,OK,ys,Zh,t8,R6F,RYd,umU,f$,uXM,e6p,z6d,wpe,WA,IWe,aX,iR3,ppk,Pqq,LYH,Dw8,Tz3,gn3,F_,bj,GxU,YMF,ZRF, tle,fWf,WYq,UwM,ySq,cSH,aW3,A8,FYr,EnH,qMf,MB,iDk,bRd,ASF,Mlq,Nz3,JuF,NB,Kp7,Jw,nYr,Kp,np,oYf,oo,XFU,lm8,X0,xJM,juk,VLf,her,lI,Ya8,xg,$J7,jA,QuV,Sy3,rup,cJ3,hO,sur,HIk,C7f,hw,OIV,Imp,P7d,r_,iIU,wF3,pF7,sr,LpV,T6e,klM,gY3,Yyp,dJ8,GlU,UJp,tLF,yu7,ZI3,WpF,am3,Fpq,fmF,Or,VG,EYe,DJd,bI8,cuF,HX,MLM,qyV,Cp,N6d,Jkr,oiF,x2d,XDp,uI,jTk,eA,K93,Ro,Ur,niU,ZT,vi3,$27,QTq,Sok,hud,rkV,sTM,tw,CK8,OSd,HSr,RuU,zuF,euH,urV,fp,wDp,IZM,iS7,BnH,m2p,pDV,F0,Y5,L9F,Tnp,d2q,D23,k$M,ckV,Yor,giU,yG,dwU,U2p,tn3,yk3,Ei3,W93,aZF, F98,bSk,Mnq,EVM,WX,fZM,ZSM,Akf,ZN,qoH,rb,GY,lZ7,owV,nw3,X43,lc3,hjU,vwf,PKH,Ek,qB,Jnk,QtM,KMd,$3F,mw3,S2M,Bz7,Vnp,Nn7,kxq,bI,Aw,stF,MS,Co7,OCf,HCH,Rj8,uR3,Pj8,Ihk,pAU,i$k,mBM,L5k,JP,k53,DBp,dBq,Ykk,G5q,UBM,KV,tTd,NS,y8d,Z$7,c8k,Tbp,nV,fh3,Bbq,W5e,oJ,F57,ahH,EUk,b$r,A88,qk3,X3,Jwp,NbM,ogH,ngq,KW8,XXq,lTV,lf,xS8,jo7,hQF,vgd,VAk,Qof,CI3,Srk,rwr,soM,Opp,Hp7,RQ8,eQV,u0U,zQk,wXf,xC,ITU,ip3,mSp,B_r,pX3,PIr,LWH,DSp,dSU,gge,Yr3,kP3,V0,GPf,USq,T_r,tAr,cw3,hP,ywk,ZpU,fTU,WW3,aTH,FW3,qrd,bpf,MAf,N_q,JPf,KNU, nCd,vI,oCH,Q0,ltM,xcM,sz,VSq,CV,vCk,QJd,$cF,Szf,sJq,rPq,jtp,HVF,x3M,Oz,RJ,Cfe,OVF,Rc7,eS,ecV,u3F,zcf,wIe,PfH,Bi3,Itp,LNr,zH,iVH,TiH,wi,cPM,Dce,IJ,BI,Yzp,PI,GHU,mN,yPV,tSH,kH3,gC7,ZV7,ft3,WN8,dcU,atU,pV,FNF,Uc7,hcM,uf,TH,Dt,ECF,bVp,APH,MSf,Nik,JsV,KUr,nvH,ovU,di,XYq,xGV,jbH,ViM,lue,hJU,vv7,Qbd,$Ge,ScU,rsd,gi,aBk,sb3,CV3,cI,OWU,HWU,GH,eJq,zJM,Uz,PVd,Iur,wY3,uW3,tP,YC,RJr,fV,Zt,iWk,WI,y0,LU3,dGU,gvd,cs3,Gcr,mG3,kcq,UGr,pY3,tik,ysF,bf,aJ,WU3,au8,ZWk,qc,qc8,Evr,DGk,TdV,FUV,bW3,Yce,fuH,BdU,AP,Mc,Nc,As8, Js,oB3,JXk,XZF,KVV,Ndk,lbk,Mip,Vwf,x8V,KW,h03,QCp,SUr,rXr,sCq,HHM,lV,R0p,C8M,Ez,z0p,wZr,vY,Auk,nW,P8d,IbU,BEM,iH7,m8U,e0r,ji,pZd,LVq,TEH,d87,D8H,G$V,xv,k4H,cXr,gB3,G4k,YUV,$8F,twf,U83,VN,ob,yXf,$v,ZHM,fbd,WV3,abk,FV8,QN,OHd,rnd,F3,qUF,EBr,bH7,AXF,Mwq,Si,rd,JIM,Kl7,nWH,NE3,oWH,sc,j6F,l4V,x$3,VK3,CW,hNU,vWe,Q6k,Oc,$$H,rIe,s6H,Ca8,HY,SFe,Rb,uV,OFr,HF3,wd,ei,zc,RNM,PY,uAU,eNU,zNM,PaF,wvq,LW,iF8,BM3,I4k,m$k,Tc,pvp,Du,LlH,dd,TMr,D$3,cIV,gWU,U$8,d$k,YF8,kv,k8p,G8q,tKf,yI3,ZFU,f4H,cY,WlU,Uc,Yv,a4V,ts,yN, qFp,EW3,fW,WY,bFV,Zu,AIf,ab,NM8,MKV,qG,Ec,bV,nZq,J0r,Kme,As,oZq,j_8,lfH,XSq,x4V,MG,hK3,Swq,r0H,JX,s_H,NG,vZf,Q_e,Ht8,KH,nH,RKd,ugf,eKf,zKM,wS8,l8,itF,BFU,m43,xB,If8,Lmf,X8,jw,V5,Ppe,hX,TF3,D47,vZ,d4q,ky8,gZ3,Q5,$B,c0M,Ywp,GyU,U4F,t0k,y0q,Zt3,afU,ff8,Fmk,qwU,NF8,JAd,M0e,K$V,nqf,oqe,z4,ll3,xv8,$ve,IC,s13,H83,O8f,Csr,vqU,Q1d,j17,VP8,SNF,i8,BZ,ulr,mM,nEd,evU,pH,T4,w1k,zvH,rAM,IlV,i88,Ble,Db,UU,p1p,L$H,Tl7,dvp,Dv7,kbU,tX,y5,gq3,Gb7,UvH,WZ,YN3,tP8,yAe,cA8,q8,Z8e,flV,F8,W$V,alF,F$F,qN3,b8M,Eqq,Nlq,JYM,AAk, nek,oeU,MPd,AX,M8,Xrr,jkq,N8,xlf,l6r,V2F,vep,hMp,QkM,JI,$lV,SI3,rY3,skd,Cle,O2U,H23,u23,RMM,eM3,zMH,wrk,PlM,I63,Bx8,nF,KF,o6,mlp,pr8,i2q,kn3,geq,cYp,Ulr,Gnd,YIe,t2q,yYe,XA,la,Z2d,f6q,Wwe,a6d,qId,Ee7,jK,b27,xW,hI,Fw8,AYF,M2k,NxF,Jrd,Kzr,Qo,naV,oaU,xjV,$W,jG3,l3H,SK,rM,sF,hOU,vaH,QG3,VWF,S5H,$j3,rr3,sG7,CMF,H_8,eO3,O_3,ROe,OF,zOd,PMV,I33,Bj8,mjU,Hv,R6,pnF,wnH,DjH,Tjr,Lzp,ua,eK,kVq,dj3,z8,wM,Pv,gaH,I6,crq,Y53,GVp,Ujd,ia,tWd,Bv,yrq,ml,pF,LF,Z_r,f3d,WzM,T8,D4,EaU,b_r,a3d,ArM,NjU,Jh3,KJF,MWd,ojd,nje,Xld, jAk,gM,hIF,Vqf,lqU,xA7,vjd,QA8,cv,YW,$AU,SPf,rhf,sAe,Cz3,OiF,RIf,uvf,mAk,wlf,Pzk,eIU,LJf,fF,a6,gje,ch7,EF,ba,YPf,TQf,Z4,N$,M$,FA,UAq,tqU,J0,ZiF,WJk,fqd,Kt,q$,yo,yh7,AI,DAe,GTk,FJd,G8,nt,qPp,Ej3,Wv,dAq,o_,Xg,bi8,lp,xZ,j0,AhV,Mqf,JRe,KaH,NQ7,Vm,n$f,h0,vS,o$8,XqH,l_3,xfk,jPr,Vsr,v$q,hxd,$Z,Qm,QPk,S4r,$f7,S0,rF,rR7,CdV,OcM,Ct,sPH,HcU,RxV,ub7,exF,zxk,wqF,Pd3,HS,R_,ic3,I_d,BL3,up,e0,pqU,mfk,LaF,Dfk,TLd,dfH,wF,k33,g$k,I_,cRM,ip,Y4r,G3r,Uf3,tsf,yRe,f_F,Wad,a_V,Zc3,Faf,q43,E$f,bck,ARf,Msr,NLU,J9M,Ty,Kq3,nzM, ozf,xUV,vzF,VZ7,lkH,kZ,jlU,XOM,hl7,gF,$Uf,Qld,cS,SnV,r9k,slH,$Sr,t0,$If,Gy,ym,Uw,ft,Cy3,Obe,zl3,wO3,Pyr,WS,IkH,ib8,dU3,bp,kA3,DU7,gzf,A0,N4,JA,Ynf,c9f,BRp,K8,UUM,tZf,GAk,Zbq,n8,fkd,WqF,ak3,M4,qn7,Fqf,o1,Xl,Lqr,q4,Ez7,bb3,A9k,MZe,mUd,pOp,Ew,NRe,Jgd,KSe,nS3,oSq,ls,ljq,h1F,jP,vSU,QYf,jYe,hA,$Zf,SRU,Xt8,rg8,VxM,sY8,v1,Vb,CZq,HLd,OLU,xq,uCk,Qb,u8M,e1r,PZq,wtM,iLF,By7,Ij7,SP,$q,ptH,LSe,Tyd,DZr,ygd,YRd,GQM,gSd,WSr,kQd,ON,qR3,ajf,ESV,bLk,C8,R1,us,JWp,Nye,Mxk,zb,txV,is,nyd,I1,eP,XTH,l9p,xNU,fjq,p8,Tb,jwV, UZr,KPd,wl,VJp,H1,hi3,vyf,Qwp,kq,gl,oyq,$NV,SJ3,c1,Yq,rWk,P1,FSH,swp,CvF,OqF,L8,Hqq,B1,Ri8,m$,CC,u98,zir,Gb,UN,wTF,Pvf,I9H,dl,Dl,iqU,z1U,B8p,rl,mN3,pTq,LP3,T8q,tA,yb,kgM,YJM,UNq,dNq,qJH,EyH,bq8,AWq,MJp,N83,JH3,nsM,K38,Zl,f8,W1,os7,Xw8,lJH,Fj,x_r,a1,jEU,Fl,VN3,qv,EN,hAp,wY,vsV,bs,YOF,FV,QEd,I8,kU7,YgV,$_f,o8,Sqf,GUe,rH7,gq,ch,sE3,nY,C4d,OrF,iL,y33,HrV,RAk,AA,eA3,zAH,Mv,JY,K2,wwk,ir8,BCe,n2,m_7,P4f,L3F,IJ8,pwr,TC3,D_d,d_f,kwd,ok,cHV,D1U,R4,Kg,YqV,Gw8,lb,gsk,iW,U_F,tNV,yH3,X2,RK,ng,fJ8,W33,ll,xe,aJd, j2,wX,F3M,Nv,qq3,Es3,brf,KuV,Vv,hY,AHk,vr,Qv,MNp,$e,NCU,S2,rx,JbF,K8d,ps3,sI,n8H,o8F,lEM,XEM,C2,OI,xkU,Hr,jq3,VFk,h5V,v83,Qqf,$kM,rbp,ul,Sh8,sq8,CY7,Ow3,HwM,z5H,R5V,uUp,e5r,PY8,iwk,BA8,mkq,IEf,e2,pEr,L8H,TAe,Dk3,dkU,wx,kkd,Pr,Ik,il,g88,cb3,Gkp,Uk3,tFF,ybd,fEk,ZwM,W83,Br,mw,qhk,aEd,F88,p2,E8M,bwr,L2,Tn,Abk,D6,MFF,dx,NAH,ke,gx,J7z,cr,Ye,Kkj,nHG,Gn,UI,oH8,tY,X3g,leg,Wr,ak,xp0,jrr,V8g,QrS,vHO,F2,$pG,Sdu,r7S,GIr,hfH,CF8,OUS,RfH,J7p,v3;KU=function(J){return function(){return J7p[J].apply(this,arguments)}}; g.xH=function(J,K){return J7p[J]=K}; Kk7=function(J){var K=0;return function(){return K=this.length))return this[J]}; ar=function(J){return J?J:W3}; Sd3=function(J,K,n){J instanceof String&&(J=String(J));for(var X=J.length-1;X>=0;X--){var l=J[X];if(K.call(n,l,X,J))return{Xb:X,nN:l}}return{Xb:-1,nN:void 0}}; Fq=function(J){return J?J:function(K,n){return Sd3(this,K,n).Xb}}; g.Ed=function(J,K,n){J=J.split(".");n=n||g.qp;for(var X;J.length&&(X=J.shift());)J.length||K===void 0?n[X]&&n[X]!==Object.prototype[X]?n=n[X]:n=n[X]={}:n[X]=K}; Mp=function(J,K){var n=g.bF("CLOSURE_FLAGS");J=n&&n[J];return J!=null?J:K}; g.bF=function(J,K){J=J.split(".");K=K||g.qp;for(var n=0;n2){var X=Array.prototype.slice.call(arguments,2);return function(){var l=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(l,X);return J.apply(K,l)}}return function(){return J.apply(K,arguments)}}; g.XS=function(J,K,n){g.XS=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?srH:CF3;return g.XS.apply(null,arguments)}; g.xr=function(J,K){var n=Array.prototype.slice.call(arguments,1);return function(){var X=n.slice();X.push.apply(X,arguments);return J.apply(this,X)}}; g.jV=function(){return Date.now()}; VF=function(J){return J}; g.v8=function(J,K){function n(){} n.prototype=K.prototype;J.lY=K.prototype;J.prototype=new n;J.prototype.constructor=J;J.wG=function(X,l,x){for(var V=Array(arguments.length-2),v=2;v=0;--n)n in X&&K.call(void 0,X[n],n,J)}; g.ru=function(J,K,n){K=SV(J,K,n);return K<0?null:typeof J==="string"?J.charAt(K):J[K]}; SV=function(J,K,n){for(var X=J.length,l=typeof J==="string"?J.split(""):J,x=0;x=0;X--)if(X in l&&K.call(n,l[X],X,J))return X;return-1}; g.O0=function(J,K){return PFq(J,K)>=0}; Ied=function(J){if(!Array.isArray(J))for(var K=J.length-1;K>=0;K--)delete J[K];J.length=0}; g.RH=function(J,K){K=PFq(J,K);var n;(n=K>=0)&&g.H8(J,K);return n}; g.H8=function(J,K){return Array.prototype.splice.call(J,K,1).length==1}; g.uG=function(J,K){K=SV(J,K);K>=0&&g.H8(J,K)}; iUU=function(J,K){var n=0;w3p(J,function(X,l){K.call(void 0,X,l,J)&&g.H8(J,l)&&n++})}; g.eV=function(J){return Array.prototype.concat.apply([],arguments)}; g.zO=function(J){var K=J.length;if(K>0){for(var n=Array(K),X=0;X>>1),Q=void 0;n?Q=K.call(void 0,J[v],v,J):Q=K(X,J[v]);Q>0?l=v+1:(x=v,V=!Q)}return V?l:-l-1}; g.du=function(J,K){J.sort(K||mg)}; p3f=function(J,K){var n=mg;g.du(J,function(X,l){return n(K(X),K(l))})}; g.kr=function(J,K,n){if(!g.Jj(J)||!g.Jj(K)||J.length!=K.length)return!1;var X=J.length;n=n||Lkr;for(var l=0;lK?1:J0&&(K[l]=X)},J); return K}; t8q=function(J){J=Sh(J);var K=[];g.tj(J,function(n,X){X in Object.prototype||typeof n!="undefined"&&K.push([X,":",n].join(""))}); return K}; ZU3=function(J){vj(J,"od",y77);vj(J,"opac",rI).G=!0;vj(J,"sbeos",rI).G=!0;vj(J,"prf",rI).G=!0;vj(J,"mwt",rI).G=!0;vj(J,"iogeo",rI)}; s7=function(J,K){return J.lastIndexOf(K,0)==0}; feM=function(J,K){var n=J.length-K.length;return n>=0&&J.indexOf(K,n)==n}; g.O7=function(J){return/^[\s\xa0]*$/.test(J)}; g.Hj=function(J,K){return J.indexOf(K)!=-1}; Ri=function(J,K){return g.Hj(J.toLowerCase(),K.toLowerCase())}; g.Pj=function(J,K){var n=0;J=uS(String(J)).split(".");K=uS(String(K)).split(".");for(var X=Math.max(J.length,K.length),l=0;n==0&&lK?1:0}; g.Ii=function(){var J=g.qp.navigator;return J&&(J=J.userAgent)?J:""}; pu=function(J){if(!iS&&!Bj||!m7)return!1;for(var K=0;K0:!1}; DV=function(){return TR()?!1:Lu("Opera")}; WkU=function(){return TR()?!1:Lu("Trident")||Lu("MSIE")}; aeq=function(){return TR()?pu("Microsoft Edge"):Lu("Edg/")}; k2=function(){return Lu("Firefox")||Lu("FxiOS")}; cj=function(){return Lu("Safari")&&!(gI()||(TR()?0:Lu("Coast"))||DV()||(TR()?0:Lu("Edge"))||aeq()||(TR()?pu("Opera"):Lu("OPR"))||k2()||Lu("Silk")||Lu("Android"))}; gI=function(){return TR()?pu("Chromium"):(Lu("Chrome")||Lu("CriOS"))&&!(TR()?0:Lu("Edge"))||Lu("Silk")}; FkV=function(){return Lu("Android")&&!(gI()||k2()||DV()||Lu("Silk"))}; qdr=function(J){var K={};J.forEach(function(n){K[n[0]]=n[1]}); return function(n){return K[n.find(function(X){return X in K})]||""}}; EHq=function(J){var K=g.Ii();if(J==="Internet Explorer"){if(WkU())if((J=/rv: *([\d\.]*)/.exec(K))&&J[1])K=J[1];else{J="";var n=/MSIE +([\d\.]+)/.exec(K);if(n&&n[1])if(K=/Trident\/(\d.\d)/.exec(K),n[1]=="7.0")if(K&&K[1])switch(K[1]){case "4.0":J="8.0";break;case "5.0":J="9.0";break;case "6.0":J="10.0";break;case "7.0":J="11.0"}else J="7.0";else J=n[1];K=J}else K="";return K}var X=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");n=[];for(var l;l=X.exec(K);)n.push([l[1],l[2],l[3]||void 0]); K=qdr(n);switch(J){case "Opera":if(DV())return K(["Version","Opera"]);if(TR()?pu("Opera"):Lu("OPR"))return K(["OPR"]);break;case "Microsoft Edge":if(TR()?0:Lu("Edge"))return K(["Edge"]);if(aeq())return K(["Edg"]);break;case "Chromium":if(gI())return K(["Chrome","CriOS","HeadlessChrome"])}return J==="Firefox"&&k2()||J==="Safari"&&cj()||J==="Android Browser"&&FkV()||J==="Silk"&&Lu("Silk")?(K=n[2])&&K[1]||"":""}; bU8=function(J){if(TR()&&J!=="Silk"){var K=m7.brands.find(function(n){return n.brand===J}); if(!K||!K.version)return NaN;K=K.version.split(".")}else{K=EHq(J);if(K==="")return NaN;K=K.split(".")}return K.length===0?NaN:Number(K[0])}; M8d=function(){var J=null;if(!A7F)return J;try{var K=function(n){return n}; J=A7F.createPolicy("goog#html",{createHTML:K,createScript:K,createScriptURL:K})}catch(n){}return J}; GR=function(){Y2===void 0&&(Y2=M8d());return Y2}; U7=function(J){this.G=J}; tK=function(J){var K=GR();J=K?K.createScriptURL(J):J;return new U7(J)}; yP=function(J){if(J instanceof U7)return J.G;throw Error("");}; ZV=function(J){this.G=J}; g.fu=function(J){if(J instanceof ZV)return J.G;throw Error("");}; Wj=function(J){this.TL=J}; ai=function(J){return new Wj(function(K){return K.substr(0,J.length+1).toLowerCase()===J+":"})}; g.qX=function(J,K){K=K===void 0?N3r:K;a:if(K=K===void 0?N3r:K,!(J instanceof ZV)){for(var n=0;n4);l++)K[$R(J[l])]||(n+="\nInner error "+X++ +": ",J[l].stack&&J[l].stack.indexOf(J[l].toString())==0||(n+=typeof J[l]==="string"?J[l]:J[l].message+"\n"),n+=vK(J[l],K));l")!=-1&&(J=J.replace(QHq,">")),J.indexOf('"')!=-1&&(J=J.replace($zH,""")),J.indexOf("'")!=-1&&(J=J.replace(S0d,"'")),J.indexOf("\x00")!=-1&&(J=J.replace(rjV,"�")));return J}; g.HK=function(J){return J==null?"":String(J)}; RN=function(J){for(var K=0,n=0;n>>0;return K}; uB=function(J){var K=Number(J);return K==0&&g.O7(J)?NaN:K}; sHq=function(J){return String(J).replace(/\-([a-z])/g,function(K,n){return n.toUpperCase()})}; CGM=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; OnU=function(J){return J.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(K,n,X){return n+X.toUpperCase()})}; Hn3=function(J){var K=1;J=J.split(":");for(var n=[];K>0&&J.length;)n.push(J.shift()),K--;J.length&&n.push(J.join(":"));return n}; eO=function(){return iS||Bj?!!m7&&!!m7.platform:!1}; RmV=function(){return eO()?m7.platform==="Android":Lu("Android")}; zE=function(){return Lu("iPhone")&&!Lu("iPod")&&!Lu("iPad")}; ws=function(){return zE()||Lu("iPad")||Lu("iPod")}; PK=function(){return eO()?m7.platform==="macOS":Lu("Macintosh")}; uSU=function(){return eO()?m7.platform==="Windows":Lu("Windows")}; IN=function(J){IN[" "](J);return J}; emk=function(J,K){try{return IN(J[K]),!0}catch(n){}return!1}; w8r=function(J,K){var n=zm3;return Object.prototype.hasOwnProperty.call(n,J)?n[J]:n[J]=K(J)}; g.iB=function(J){return w8r(J,function(){return g.Pj(PGF,J)>=0})}; g.BK=function(J,K,n){return Math.min(Math.max(J,K),n)}; g.m4=function(J,K){J%=K;return J*K<0?J+K:J}; pl=function(J,K,n){return J+n*(K-J)}; g.Ll=function(J,K){this.x=J!==void 0?J:0;this.y=K!==void 0?K:0}; TE=function(J,K){return J==K?!0:J&&K?J.x==K.x&&J.y==K.y:!1}; g.DH=function(J,K){this.width=J;this.height=K}; g.ds=function(J,K){return J==K?!0:J&&K?J.width==K.width&&J.height==K.height:!1}; kR=function(J){return J.width*J.height}; cK=function(J,K){this.G=J===gs&&K||""}; YR=function(J){if(J instanceof MX)return J;J=String(J).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");return NX(J)}; ind=function(J){return IzM(J)}; IzM=function(J){var K=YR("");return NX(J.map(function(n){return Jq(YR(n))}).join(Jq(K).toString()))}; Tue=function(J){var K;if(!BuV.test("div"))throw Error("");if(mzM.indexOf("DIV")!==-1)throw Error("");var n="":(J=ind(K.map(function(X){return X instanceof MX?X:YR(String(X))})),n+=">"+J.toString()+""); return NX(n)}; p8d=function(J){for(var K="",n=Object.keys(J),X=0;X2&&UzF(l,V,X,2);return V}; UzF=function(J,K,n,X){function l(v){v&&K.appendChild(typeof v==="string"?J.createTextNode(v):v)} for(;X0)l(x);else{a:{if(x&&typeof x.length=="number"){if(g.Kn(x)){var V=typeof x.item=="function"||typeof x.item=="string";break a}if(typeof x==="function"){V=typeof x.item=="function";break a}}V=!1}g.Yr(V?g.zO(x):x,l)}}}; g.ME=function(J){return bB(document,J)}; bB=function(J,K){K=String(K);J.contentType==="application/xhtml+xml"&&(K=K.toLowerCase());return J.createElement(K)}; g.NE=function(J){return document.createTextNode(String(J))}; g.Jp=function(J,K){J.appendChild(K)}; g.Kf=function(J){for(var K;K=J.firstChild;)J.removeChild(K)}; nf=function(J,K,n){J.insertBefore(K,J.childNodes[n]||null)}; g.oF=function(J){return J&&J.parentNode?J.parentNode.removeChild(J):null}; g.XG=function(J,K){if(!J||!K)return!1;if(J.contains&&K.nodeType==1)return J==K||J.contains(K);if(typeof J.compareDocumentPosition!="undefined")return J==K||!!(J.compareDocumentPosition(K)&16);for(;K&&J!=K;)K=K.parentNode;return K==J}; UQ=function(J){return J.nodeType==9?J:J.ownerDocument||J.document}; g.lc=function(J,K){if("textContent"in J)J.textContent=K;else if(J.nodeType==3)J.data=String(K);else if(J.firstChild&&J.firstChild.nodeType==3){for(;J.lastChild!=J.firstChild;)J.removeChild(J.lastChild);J.firstChild.data=String(K)}else g.Kf(J),J.appendChild(UQ(J).createTextNode(String(K)))}; yjV=function(J){return J.tagName=="A"&&J.hasAttribute("href")||J.tagName=="INPUT"||J.tagName=="TEXTAREA"||J.tagName=="SELECT"||J.tagName=="BUTTON"?!J.disabled&&(!J.hasAttribute("tabindex")||tVf(J)):J.hasAttribute("tabindex")&&tVf(J)}; tVf=function(J){J=J.tabIndex;return typeof J==="number"&&J>=0&&J<32768}; j5=function(J,K,n){if(!K&&!n)return null;var X=K?String(K).toUpperCase():null;return x_(J,function(l){return(!X||l.nodeName==X)&&(!n||typeof l.className==="string"&&g.O0(l.className.split(/\s+/),n))},!0)}; x_=function(J,K,n){J&&!n&&(J=J.parentNode);for(n=0;J;){if(K(J))return J;J=J.parentNode;n++}return null}; GE=function(J){this.G=J||g.qp.document||document}; Znp=function(){this.G=this.rT=null}; Vc=function(){}; vH=function(){if(!hp())throw Error();}; hp=function(){return!(!Qc||!Qc.performance)}; $_=function(J){return function(){return J}}; g.S5=function(){}; fzr=function(J){var K=K||0;return function(){return J.apply(this,Array.prototype.slice.call(arguments,0,K))}}; rP=function(J){var K=!1,n;return function(){K||(n=J(),K=!0);return n}}; s8=function(J){var K=J;return function(){if(K){var n=K;K=null;n()}}}; Cf=function(J,K,n){var X=0;return function(l){g.qp.clearTimeout(X);var x=arguments;X=g.qp.setTimeout(function(){J.apply(n,x)},K)}}; O8=function(J){return J?J.passive&&WgH()?J:J.capture||!1:!1}; HH=function(J,K,n,X){return typeof J.addEventListener==="function"?(J.addEventListener(K,n,O8(X)),!0):!1}; RF=function(J){if(J.prerendering)return 3;var K;return(K={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[J.visibilityState||J.webkitVisibilityState||J.mozVisibilityState||""])!=null?K:0}; azr=function(){}; FgM=function(J){return J}; uc=function(J){J.TLM=!0;return J}; q0M=function(J){return g.qE?"webkit"+J:J.toLowerCase()}; Er7=function(){return(iS||Bj)&&m7?m7.mobile:!e5()&&(Lu("iPod")||Lu("iPhone")||Lu("Android")||Lu("IEMobile"))}; e5=function(){return(iS||Bj)&&m7?!m7.mobile&&(Lu("iPad")||Lu("Android")||Lu("Silk")):Lu("iPad")||Lu("Android")&&!Lu("Mobile")||Lu("Silk")}; zd=function(J,K,n,X,l,x,V){var v="";J&&(v+=J+":");n&&(v+="//",K&&(v+=K+"@"),v+=n,X&&(v+=":"+X));l&&(v+=l);x&&(v+="?"+x);V&&(v+="#"+V);return v}; g.wP=function(J){return J.match(bnH)}; Ajf=function(J){return J?decodeURI(J):J}; g.PH=function(J){return Ajf(g.wP(J)[3]||null)}; IF=function(J){return Ajf(g.wP(J)[5]||null)}; g.MVq=function(J){J=g.wP(J);return zd(J[1],J[2],J[3],J[4])}; ic=function(J){J=g.wP(J);return zd(null,null,null,null,J[5],J[6],J[7])}; Nur=function(J){var K=J.indexOf("#");return K<0?J:J.slice(0,K)}; BH=function(J,K){if(J){J=J.split("&");for(var n=0;n=0){var x=J[n].substring(0,X);l=J[n].substring(X+1)}else x=J[n];K(x,l?sQ(l):"")}}}; mQ=function(J,K){if(!K)return J;var n=J.indexOf("#");n<0&&(n=J.length);var X=J.indexOf("?");if(X<0||X>n){X=n;var l=""}else l=J.substring(X+1,n);J=[J.slice(0,X),l,J.slice(n)];n=J[1];J[1]=K?n?n+"&"+K:K:n;return J[0]+(J[1]?"?"+J[1]:"")+J[2]}; pf=function(J,K,n){if(Array.isArray(K))for(var X=0;X=0&&Kn)l=n;X+=K.length+1;return sQ(J.slice(X,l!==-1?l:0))}; k_=function(J,K){for(var n=J.search(o2V),X=0,l,x=[];(l=n2d(J,X,K,n))>=0;)x.push(J.substring(X,l)),X=Math.min(J.indexOf("&",l)+1||n,n);x.push(J.slice(X));return x.join("").replace(XjF,"$1")}; lVd=function(J,K,n){return D2(k_(J,K),K,n)}; gP=function(J){try{return!!J&&J.location.href!=null&&emk(J,"foo")}catch(K){return!1}}; cH=function(J,K){if(J)for(var n in J)Object.prototype.hasOwnProperty.call(J,n)&&K(J[n],n,J)}; ji8=function(){var J=[];cH(xXr,function(K){J.push(K)}); return J}; Vh8=function(J){var K,n;return(n=(K=/https?:\/\/[^\/]+/.exec(J))==null?void 0:K[0])!=null?n:""}; QiH=function(){var J=hSe("IFRAME"),K={};g.Yr(v2r(),function(n){J.sandbox&&J.sandbox.supports&&J.sandbox.supports(n)&&(K[n]=!0)}); return K}; hSe=function(J,K){K=K===void 0?document:K;return K.createElement(String(J).toLowerCase())}; $Xe=function(J){for(var K=J;J&&J!=J.parent;)J=J.parent,gP(J)&&(K=J);return K}; CSV=function(J){J=J||Gd();for(var K=new S7V(g.qp.location.href,!1),n=null,X=J.length-1,l=X;l>=0;--l){var x=J[l];!n&&rK3.test(x.url)&&(n=x);if(x.url&&!x.G){K=x;break}}l=null;x=J.length&&J[X].url;K.depth!==0&&x&&(l=J[X]);return new si3(K,l,n)}; Gd=function(){var J=g.qp,K=[],n=null;do{var X=J;if(gP(X)){var l=X.location.href;n=X.document&&X.document.referrer||null}else l=n,n=null;K.push(new S7V(l||""));try{J=X.parent}catch(x){J=null}}while(J&&X!==J);X=0;for(J=K.length-1;X<=J;++X)K[X].depth=J-X;X=g.qp;if(X.location&&X.location.ancestorOrigins&&X.location.ancestorOrigins.length===K.length-1)for(J=1;JK&&(K=n.length);return 3997-K-J.X.length-1}; Z2=function(J,K){this.G=J;this.depth=K}; uFH=function(){function J(v,Q){return v==null?Q:v} var K=Gd(),n=Math.max(K.length-1,0),X=CSV(K);K=X.G;var l=X.Z,x=X.X,V=[];x&&V.push(new Z2([x.url,x.G?2:0],J(x.depth,1)));l&&l!=x&&V.push(new Z2([l.url,2],0));K.url&&K!=x&&V.push(new Z2([K.url,0],J(K.depth,n)));X=g.ff(V,function(v,Q){return V.slice(0,V.length-Q)}); !K.url||(x||l)&&K!=x||(l=Vh8(K.url))&&X.push([new Z2([l,1],J(K.depth,n))]);X.push([]);return g.ff(X,function(v){return RSr(n,v)})}; RSr=function(J,K){g.WH(K,function(l){return l.depth>=0}); var n=aF(K,function(l,x){return Math.max(l,x.depth)},-1),X=T3q(n+2); X[0]=J;g.Yr(K,function(l){return X[l.depth+1]=l.G}); return X}; eSV=function(){var J=J===void 0?uFH():J;return J.map(function(K){return yc(K)})}; zSH=function(J){var K=!1;K=K===void 0?!1:K;Qc.google_image_requests||(Qc.google_image_requests=[]);var n=hSe("IMG",Qc.document);K&&(n.attributionSrc="");n.src=J;Qc.google_image_requests.push(n)}; FG=function(J){var K="cO";if(J.cO&&J.hasOwnProperty(K))return J.cO;var n=new J;J.cO=n;J.hasOwnProperty(K);return n}; qu=function(){this.Z=new azr;this.G=hp()?new vH:new Vc}; wjf=function(){E8();var J=Qc.document;return!!(J&&J.body&&J.body.getBoundingClientRect&&typeof Qc.setInterval==="function"&&typeof Qc.clearInterval==="function"&&typeof Qc.setTimeout==="function"&&typeof Qc.clearTimeout==="function")}; PSH=function(){E8();return eSV()}; IVd=function(){}; E8=function(){var J=FG(IVd);if(!J.G){if(!Qc)throw Error("Context has not been set and window is undefined.");J.G=FG(qu)}return J.G}; bc=function(J){return(J&192)!==128}; Ap=function(){throw Error("Invalid UTF8");}; iuM=function(J,K){K=String.fromCharCode.apply(null,K);return J==null?K:J+K}; L77=function(J){var K=!1;K=K===void 0?!1:K;if(BIV){if(K&&(mXM?!J.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(J)))throw Error("Found an unpaired surrogate");J=(pj3||(pj3=new TextEncoder)).encode(J)}else{for(var n=0,X=new Uint8Array(3*J.length),l=0;l>6|192;else{if(x>=55296&&x<=57343){if(x<=56319&&l=56320&&V<=57343){x=(x-55296)*1024+ V-56320+65536;X[n++]=x>>18|240;X[n++]=x>>12&63|128;X[n++]=x>>6&63|128;X[n++]=x&63|128;continue}else l--}if(K)throw Error("Found an unpaired surrogate");x=65533}X[n++]=x>>12|224;X[n++]=x>>6&63|128}X[n++]=x&63|128}}J=n===X.length?X:X.subarray(0,n)}return J}; Mu=function(J){g.qp.setTimeout(function(){throw J;},0)}; TIq=function(J){return Array.prototype.map.call(J,function(K){K=K.toString(16);return K.length>1?K:"0"+K}).join("")}; DXH=function(J){for(var K=[],n=0;n>6|192:((l&64512)==55296&&X+1>18|240,K[n++]=l>>12&63|128):K[n++]=l>>12|224,K[n++]=l>>6&63|128),K[n++]=l&63|128)}return K}; g.Je=function(J,K){K===void 0&&(K=0);dXf();K=kRk[K];for(var n=Array(Math.floor(J.length/3)),X=K[64]||"",l=0,x=0;l>2];V=K[(V&3)<<4|v>>4];v=K[(v&15)<<2|Q>>6];Q=K[Q&63];n[x++]=""+S+V+v+Q}S=0;Q=X;switch(J.length-l){case 2:S=J[l+1],Q=K[(S&15)<<2]||X;case 1:J=J[l],n[x]=""+K[J>>2]+K[(J&3)<<4|S>>4]+Q+X}return n.join("")}; g.KK=function(J,K){if(g2V&&!K)J=g.qp.btoa(J);else{for(var n=[],X=0,l=0;l255&&(n[X++]=x&255,x>>=8);n[X++]=x}J=g.Je(n,K)}return J}; Y7p=function(J){var K=[];cKf(J,function(n){K.push(n)}); return K}; nK=function(J){var K=J.length,n=K*3/4;n%3?n=Math.floor(n):g.Hj("=.",J[K-1])&&(n=g.Hj("=.",J[K-2])?n-2:n-1);var X=new Uint8Array(n),l=0;cKf(J,function(x){X[l++]=x}); return l!==n?X.subarray(0,l):X}; cKf=function(J,K){function n(Q){for(;X>4);V!=64&&(K(x<<4&240|V>>2),v!=64&&K(V<<6&192|v))}}; dXf=function(){if(!oS){oS={};for(var J="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),K=["+/=","+/","-_=","-_.","-_"],n=0;n<5;n++){var X=J.concat(K[n].split(""));kRk[n]=X;for(var l=0;l=K||(X[J]=n+1,J=Error(),xz3(J,"incident"),Mu(J))}}; $X=function(J,K,n){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(n===void 0?0:n)&&Symbol.for&&J?Symbol.for(J):J!=null?Symbol(J):Symbol():K}; buV=function(J,K){Sa||r$ in J||q7M(J,E28);J[r$]|=K}; sb=function(J,K){Sa||r$ in J||q7M(J,E28);J[r$]=K}; CK=function(){return typeof BigInt==="function"}; Hd=function(J,K){return K===void 0?J.G!==Ob&&!!(2&(J.lR[r$]|0)):!!(2&K)&&J.G!==Ob}; AK3=function(J,K){if(J!=null)if(typeof J==="string")J=J?new Xh(J,li):xX();else if(J.constructor!==Xh)if(aVf&&J!=null&&J instanceof Uint8Array)J=J.length?new Xh(new Uint8Array(J),li):xX();else{if(!K)throw Error();J=void 0}return J}; RS=function(J,K){if(typeof K!=="number"||K<0||K>=J.length)throw Error();}; Mhr=function(J,K,n){K=K&128?0:-1;var X=J.length,l;if(l=!!X)l=J[X-1],l=l!=null&&typeof l==="object"&&l.constructor===Object;for(var x=X+(l?-1:0),V=0;VK.length)return!1;if(J.lengthl)return!1;if(X>>0;Pd=K;IS=(J-K)/4294967296>>>0}; mE=function(J){if(J<0){ii(0-J);var K=g.z(Bd(Pd,IS));J=K.next().value;K=K.next().value;Pd=J>>>0;IS=K>>>0}else ii(J)}; LK=function(J,K){var n=K*4294967296+(J>>>0);return Number.isSafeInteger(n)?n:pK(J,K)}; oRU=function(J,K){var n=K&2147483648;n&&(J=~J+1>>>0,K=~K>>>0,J==0&&(K=K+1>>>0));J=LK(J,K);return typeof J==="number"?n?-J:J:n?"-"+J:J}; pK=function(J,K){K>>>=0;J>>>=0;if(K<=2097151)var n=""+(4294967296*K+J);else CK()?n=""+(BigInt(K)<>>24|K<<8)&16777215,K=K>>16&65535,J=(J&16777215)+n*6777216+K*6710656,n+=K*8147497,K*=2,J>=1E7&&(n+=J/1E7>>>0,J%=1E7),n>=1E7&&(K+=n/1E7>>>0,n%=1E7),n=K+XKH(n)+XKH(J));return n}; XKH=function(J){J=String(J);return"0000000".slice(J.length)+J}; lHq=function(){var J=Pd,K=IS;K&2147483648?CK()?J=""+(BigInt(K|0)<>>0)):(K=g.z(Bd(J,K)),J=K.next().value,K=K.next().value,J="-"+pK(J,K)):J=pK(J,K);return J}; TK=function(J){if(J.length<16)mE(Number(J));else if(CK())J=BigInt(J),Pd=Number(J&BigInt(4294967295))>>>0,IS=Number(J>>BigInt(32)&BigInt(4294967295));else{var K=+(J[0]==="-");IS=Pd=0;for(var n=J.length,X=0+K,l=(n-K)%6+K;l<=n;X=l,l+=6)X=Number(J.slice(X,l)),IS*=1E6,Pd=Pd*1E6+X,Pd>=4294967296&&(IS+=Math.trunc(Pd/4294967296),IS>>>=0,Pd>>>=0);K&&(K=g.z(Bd(Pd,IS)),J=K.next().value,K=K.next().value,Pd=J,IS=K)}}; Bd=function(J,K){K=~K;J?J=~J+1:K+=1;return[J,K]}; Dw=function(J){return Array.prototype.slice.call(J)}; d$=function(J){if(J!=null&&typeof J!=="number")throw Error("Value of float/double field must be a number, found "+typeof J+": "+J);return J}; xEd=function(J){return J.displayName||J.name||"unknown type name"}; kX=function(J){if(J!=null&&typeof J!=="boolean")throw Error("Expected boolean but got "+Np(J)+": "+J);return J}; cd=function(J){switch(typeof J){case "bigint":return!0;case "number":return g$(J);case "string":return jNV.test(J);default:return!1}}; VO3=function(J){if(typeof J!=="number")throw vd("int32");if(!g$(J))throw vd("int32");return J|0}; YX=function(J){return J==null?J:VO3(J)}; GK=function(J){if(J==null)return J;if(typeof J==="string"&&J)J=+J;else if(typeof J!=="number")return;return g$(J)?J|0:void 0}; Ub=function(J){if(J==null)return J;if(typeof J==="string"&&J)J=+J;else if(typeof J!=="number")return;return g$(J)?J>>>0:void 0}; QNr=function(J){var K=0;K=K===void 0?0:K;if(!cd(J))throw vd("int64");var n=typeof J;switch(K){case 512:switch(n){case "string":return te(J);case "bigint":return String(yy(64,J));default:return Zw(J)}case 1024:switch(n){case "string":return hn8(J);case "bigint":return w$(yy(64,J));default:return vRd(J)}case 0:switch(n){case "string":return te(J);case "bigint":return w$(yy(64,J));default:return fK(J)}default:return AK(K,"Unknown format requested type for int64")}}; Wd=function(J){return J==null?J:QNr(J)}; $EU=function(J){if(J[0]==="-")return!1;var K=J.length;return K<20?!0:K===20&&Number(J.substring(0,6))<184467}; SQf=function(J){var K=J.length;return J[0]==="-"?K<20?!0:K===20&&Number(J.substring(0,7))>-922337:K<19?!0:K===19&&Number(J.substring(0,6))<922337}; rq3=function(J){if(J<0){mE(J);var K=pK(Pd,IS);J=Number(K);return aS(J)?J:K}K=String(J);if($EU(K))return K;mE(J);return LK(Pd,IS)}; sN3=function(J){if(SQf(J))return J;TK(J);return lHq()}; fK=function(J){cd(J);J=Fh(J);aS(J)||(mE(J),J=oRU(Pd,IS));return J}; Zw=function(J){cd(J);J=Fh(J);if(aS(J))J=String(J);else{var K=String(J);SQf(K)?J=K:(mE(J),J=lHq())}return J}; te=function(J){cd(J);var K=Fh(Number(J));if(aS(K))return String(K);K=J.indexOf(".");K!==-1&&(J=J.substring(0,K));return sN3(J)}; hn8=function(J){var K=Fh(Number(J));if(aS(K))return w$(K);K=J.indexOf(".");K!==-1&&(J=J.substring(0,K));return CK()?w$(yy(64,BigInt(J))):w$(sN3(J))}; vRd=function(J){return aS(J)?w$(fK(J)):w$(Zw(J))}; CBk=function(J){if(J==null)return J;var K=typeof J;if(K==="bigint")return String(yy(64,J));if(cd(J)){if(K==="string")return te(J);if(K==="number")return fK(J)}}; Hlr=function(J){if(J==null)return J;var K=typeof J;if(K==="bigint")return String(Olf(64,J));if(cd(J)){if(K==="string")return cd(J),K=Fh(Number(J)),aS(K)&&K>=0?J=String(K):(K=J.indexOf("."),K!==-1&&(J=J.substring(0,K)),$EU(J)||(TK(J),J=pK(Pd,IS))),J;if(K==="number")return cd(J),J=Fh(J),J>=0&&aS(J)?J:rq3(J)}}; Rn7=function(J){if(J==null||typeof J=="string"||J instanceof Xh)return J}; uQq=function(J){if(typeof J!=="string")throw Error();return J}; qY=function(J){if(J!=null&&typeof J!=="string")throw Error();return J}; Eb=function(J){return J==null||typeof J==="string"?J:void 0}; bi=function(J,K){if(!(J instanceof K))throw Error("Expected instanceof "+xEd(K)+" but got "+(J&&xEd(J.constructor)));return J}; en7=function(J,K,n){if(J!=null&&typeof J==="object"&&J[Ae]===MY)return J;if(Array.isArray(J)){var X=J[r$]|0;n=X|n&32|n&2;n!==X&&sb(J,n);return new K(J)}}; NY=function(J){return J}; KB=function(J){var K=VF(Jy);return K?J[K]:void 0}; nB=function(){}; oy=function(J,K){for(var n in J)!isNaN(n)&&K(J,+n,J[n])}; znU=function(J){var K=new nB;oy(J,function(n,X,l){K[X]=Dw(l)}); K.yk=J.yk;return K}; l_=function(J,K,n,X){var l=X!==void 0;X=!!X;var x=VF(Jy),V;!l&&Sa&&x&&(V=J[x])&&oy(V,wKV);x=[];var v=J.length;V=4294967295;var Q=!1,S=!!(K&64),r=S?K&128?0:-1:void 0;if(!(K&1)){var C=v&&J[v-1];C!=null&&typeof C==="object"&&C.constructor===Object?(v--,V=v):C=void 0;if(S&&!(K&128)&&!l){Q=!0;var O;V=((O=Xe)!=null?O:NY)(V-r,r,J,C)+r}}K=void 0;for(O=0;O=V){var R=O-r,w=void 0;((w=K)!=null?w:K={})[R]=H}else x[O]=H}if(C)for(var P in C)v=C[P],v!=null&& (v=n(v,X))!=null&&(O=+P,H=void 0,S&&!Number.isNaN(O)&&(H=O+r)0?void 0:J===0?pK3||(pK3=[0,void 0]):[-J,void 0];case "string":return[0,J];case "object":return J}}; ve=function(J,K,n){return J=hy(J,K[0],K[1],n?1:2)}; hy=function(J,K,n,X){X=X===void 0?0:X;if(J==null){var l=32;n?(J=[n],l|=128):J=[];K&&(l=l&-8380417|(K&1023)<<13)}else{if(!Array.isArray(J))throw Error("narr");l=J[r$]|0;2048&l&&!(2&l)&&TsU();if(l&256)throw Error("farr");if(l&64)return X!==0||l&2048||sb(J,l|2048),J;if(n&&(l|=128,n!==J[0]))throw Error("mid");a:{n=J;l|=64;var x=n.length;if(x){var V=x-1,v=n[V];if(v!=null&&typeof v==="object"&&v.constructor===Object){K=l&128?0:-1;V-=K;if(V>=1024)throw Error("pvtlmt");for(var Q in v)x=+Q,x1024)throw Error("spvt");l=l&-8380417|(Q&1023)<<13}}}l|=64;X===0&&(l|=2048);sb(J,l);return J}; TsU=function(){Qy(DEF,5)}; dEH=function(J,K){if(typeof J!=="object")return J;if(Array.isArray(J)){var n=J[r$]|0;J.length===0&&n&1?J=void 0:n&2||(!K||4096&n||16&n?J=$M(J,n,!1,K&&!(n&16)):(buV(J,34),n&4&&Object.freeze(J)));return J}if(J[Ae]===MY)return K=J.lR,n=K[r$]|0,Hd(J,n)?J:$M(K,n);if(J instanceof Xh)return J}; $M=function(J,K,n,X){X!=null||(X=!!(34&K));J=l_(J,K,dEH,X);X=32;n&&(X|=2);K=K&8380609|X;sb(J,K);return J}; kE7=function(J){var K=J.lR,n=K[r$]|0;return Hd(J,n)?new J.constructor($M(K,n,!1)):J}; S7=function(J){if(J.G!==Ob)return!1;var K=J.lR;K=$M(K,K[r$]|0);J.lR=K;J.G=void 0;J.X=void 0;return!0}; rr=function(J){if(!S7(J)&&Hd(J,J.lR[r$]|0))throw Error();}; Ov=function(J,K,n,X,l){Object.isExtensible(J);K=CB(J.lR,K,n,l);if(K!==null||X&&J.X!==Ob)return K}; CB=function(J,K,n,X){if(K===-1)return null;var l=K+(n?0:-1),x=J.length-1;if(!(x<1+(n?0:-1))){if(l>=x){var V=J[x];if(V!=null&&typeof V==="object"&&V.constructor===Object){n=V[K];var v=!0}else if(l===x)n=V;else return}else n=J[l];if(X&&n!=null){X=X(n);if(X==null)return X;if(!Object.is(X,n))return v?V[K]=X:J[l]=X,X}return n}}; Ry=function(J,K,n,X){rr(J);var l=J.lR;He(l,l[r$]|0,K,n,X);return J}; He=function(J,K,n,X,l){var x=n+(l?0:-1),V=J.length-1;if(V>=1+(l?0:-1)&&x>=V){var v=J[V];if(v!=null&&typeof v==="object"&&v.constructor===Object)return v[n]=X,K}if(x<=V)return J[x]=X,K;if(X!==void 0){var Q;V=((Q=K)!=null?Q:K=J[r$]|0)>>13&1023||536870912;n>=V?X!=null&&(x={},J[V+(l?0:-1)]=(x[n]=X,x)):J[x]=X}return K}; Pe=function(J,K,n,X,l){var x=J.lR,V=x[r$]|0;X=Hd(J,V)?1:X;l=!!l||X===3;X===2&&S7(J)&&(x=J.lR,V=x[r$]|0);J=u_(x,K);var v=J===e7?7:J[r$]|0,Q=ze(v,V);var S=4&Q?!1:!0;if(S){4&Q&&(J=Dw(J),v=0,Q=wr(Q,V),V=He(x,V,K,J));for(var r=0,C=0;r "+J)}; Kv=function(J,K,n){this.buffer=J;if(n&&!K)throw Error();this.G=K}; nv=function(J,K){if(typeof J==="string")return new Kv(ZuU(J),K);if(Array.isArray(J))return new Kv(new Uint8Array(J),K);if(J.constructor===Uint8Array)return new Kv(J,!1);if(J.constructor===ArrayBuffer)return J=new Uint8Array(J),new Kv(J,!1);if(J.constructor===Xh)return K=Vy(J)||new Uint8Array(0),new Kv(K,!0,J);if(J instanceof Uint8Array)return J=J.constructor===Uint8Array?J:new Uint8Array(J.buffer,J.byteOffset,J.byteLength),new Kv(J,!1);throw Error();}; F4M=function(J,K,n,X){this.Z=null;this.C=!1;this.G=this.X=this.U=0;this.init(J,K,n,X)}; XB=function(J){var K=0,n=0,X=0,l=J.Z,x=J.G;do{var V=l[x++];K|=(V&127)<32&&(n|=(V&127)>>4);for(X=3;X<32&&V&128;X+=7)V=l[x++],n|=(V&127)<>>0,n>>>0);throw JM();}; oc=function(J,K){J.G=K;if(K>J.X)throw aH8(J.X,K);}; lw=function(J){var K=J.Z,n=J.G,X=K[n++],l=X&127;if(X&128&&(X=K[n++],l|=(X&127)<<7,X&128&&(X=K[n++],l|=(X&127)<<14,X&128&&(X=K[n++],l|=(X&127)<<21,X&128&&(X=K[n++],l|=X<<28,X&128&&K[n++]&128&&K[n++]&128&&K[n++]&128&&K[n++]&128&&K[n++]&128)))))throw JM();oc(J,n);return l}; xJ=function(J){var K=J.Z,n=J.G,X=K[n+0],l=K[n+1],x=K[n+2];K=K[n+3];oc(J,J.G+4);return(X<<0|l<<8|x<<16|K<<24)>>>0}; jr=function(J){var K=xJ(J);J=xJ(J);return LK(K,J)}; Vx=function(J){var K=xJ(J),n=xJ(J);J=(n>>31)*2+1;var X=n>>>20&2047;K=4294967296*(n&1048575)+K;return X==2047?K?NaN:J*Infinity:X==0?J*4.9E-324*K:J*Math.pow(2,X-1075)*(K+4503599627370496)}; hM=function(J){for(var K=0,n=J.G,X=n+10,l=J.Z;nJ.X)throw aH8(K,J.X-n);J.G=X;return n}; bl3=function(J,K){if(K==0)return xX();var n=qQV(J,K);J.XT&&J.C?n=J.Z.subarray(n,n+K):(J=J.Z,K=n+K,n=n===K?new Uint8Array(0):ERk?J.slice(n,K):new Uint8Array(J.subarray(n,K)));return n.length==0?xX():new Xh(n,li)}; Qx=function(J,K,n,X){if(vi.length){var l=vi.pop();l.init(J,K,n,X);J=l}else J=new F4M(J,K,n,X);this.G=J;this.X=this.G.G;this.Z=this.U=-1;Aqe(this,X)}; Aqe=function(J,K){K=K===void 0?{}:K;J.oX=K.oX===void 0?!1:K.oX}; MOp=function(J,K,n,X){if($J.length){var l=$J.pop();Aqe(l,X);l.G.init(J,K,n,X);return l}return new Qx(J,K,n,X)}; NsM=function(J){var K=J.G;if(K.G==K.X)return!1;J.X=J.G.G;var n=lw(J.G)>>>0;K=n>>>3;n&=7;if(!(n>=0&&n<=5))throw W48(n,J.X);if(K<1)throw Error("Invalid field number: "+K+" (at position "+J.X+")");J.U=K;J.Z=n;return!0}; Sr=function(J){switch(J.Z){case 0:J.Z!=0?Sr(J):hM(J.G);break;case 1:J=J.G;oc(J,J.G+8);break;case 2:if(J.Z!=2)Sr(J);else{var K=lw(J.G)>>>0;J=J.G;oc(J,J.G+K)}break;case 5:J=J.G;oc(J,J.G+4);break;case 3:K=J.U;do{if(!NsM(J))throw Error("Unmatched start-group tag: stream EOF");if(J.Z==4){if(J.U!=K)throw Error("Unmatched end-group tag");break}Sr(J)}while(1);break;default:throw W48(J.Z,J.X);}}; r9=function(J,K,n){var X=J.G.X,l=lw(J.G)>>>0,x=J.G.G+l,V=x-X;V<=0&&(J.G.X=x,n(K,J,void 0,void 0,void 0),V=x-J.G.G);if(V)throw Error("Message parsing ended unexpectedly. Expected to read "+(l+" bytes, instead read "+(l-V)+" bytes, either the data ended unexpectedly or the message misreported its own length"));J.G.G=x;J.G.X=X}; OD=function(J){var K=lw(J.G)>>>0;J=J.G;var n=qQV(J,K);J=J.Z;if(Jp8){var X=J,l;(l=sD)||(l=sD=new TextDecoder("utf-8",{fatal:!0}));K=n+K;X=n===0&&K===X.length?X:X.subarray(n,K);try{var x=l.decode(X)}catch(S){if(Cv===void 0){try{l.decode(new Uint8Array([128]))}catch(r){}try{l.decode(new Uint8Array([97])),Cv=!0}catch(r){Cv=!1}}!Cv&&(sD=void 0);throw S;}}else{x=n;K=x+K;n=[];for(var V=null,v,Q;x=K?Ap():(Q=J[x++],v<194||bc(Q)?(x--,Ap()):n.push((v&31)<<6|Q&63)):v<240? x>=K-1?Ap():(Q=J[x++],bc(Q)||v===224&&Q<160||v===237&&Q>=160||bc(l=J[x++])?(x--,Ap()):n.push((v&15)<<12|(Q&63)<<6|l&63)):v<=244?x>=K-2?Ap():(Q=J[x++],bc(Q)||(v<<28)+(Q-144)>>30!==0||bc(l=J[x++])||bc(X=J[x++])?(x--,Ap()):(v=(v&7)<<18|(Q&63)<<12|(l&63)<<6|X&63,v-=65536,n.push((v>>10&1023)+55296,(v&1023)+56320))):Ap(),n.length>=8192&&(V=iuM(V,n),n.length=0);x=iuM(V,n)}return x}; KQH=function(J){var K=lw(J.G)>>>0;return bl3(J.G,K)}; Hi=function(J,K,n){this.lR=hy(J,K,n)}; n_V=function(J,K){if(K==null||K=="")return new J;K=JSON.parse(K);if(!Array.isArray(K))throw Error("dnarr");buV(K,32);return new J(K)}; Rc=function(J,K){this.Z=J>>>0;this.G=K>>>0}; XHd=function(J){if(!J)return o_q||(o_q=new Rc(0,0));if(!/^\d+$/.test(J))return null;TK(J);return new Rc(Pd,IS)}; uw=function(J,K){this.Z=J>>>0;this.G=K>>>0}; xup=function(J){if(!J)return l2V||(l2V=new uw(0,0));if(!/^-?\d+$/.test(J))return null;TK(J);return new uw(Pd,IS)}; zz=function(){this.G=[]}; w9=function(J,K,n){for(;n>0||K>127;)J.G.push(K&127|128),K=(K>>>7|n<<25)>>>0,n>>>=7;J.G.push(K)}; Pi=function(J,K){for(;K>127;)J.G.push(K&127|128),K>>>=7;J.G.push(K)}; jFf=function(J,K){if(K>=0)Pi(J,K);else{for(var n=0;n<9;n++)J.G.push(K&127|128),K>>=7;J.G.push(1)}}; Ic=function(J,K){J.G.push(K>>>0&255);J.G.push(K>>>8&255);J.G.push(K>>>16&255);J.G.push(K>>>24&255)}; V5q=function(){this.X=[];this.Z=0;this.G=new zz}; iw=function(J,K){K.length!==0&&(J.X.push(K),J.Z+=K.length)}; h_F=function(J,K){Bi(J,K,2);K=J.G.end();iw(J,K);K.push(J.Z);return K}; v_e=function(J,K){var n=K.pop();for(n=J.Z+J.G.length()-n;n>127;)K.push(n&127|128),n>>>=7,J.Z++;K.push(n);J.Z++}; Bi=function(J,K,n){Pi(J.G,K*8+n)}; QFd=function(J,K,n){if(n!=null){switch(typeof n){case "string":XHd(n)}Bi(J,K,1);switch(typeof n){case "number":J=J.G;ii(n);Ic(J,Pd);Ic(J,IS);break;case "bigint":n=BigInt.asUintN(64,n);n=new Rc(Number(n&BigInt(4294967295)),Number(n>>BigInt(32)));J=J.G;K=n.G;Ic(J,n.Z);Ic(J,K);break;default:n=XHd(n),J=J.G,K=n.G,Ic(J,n.Z),Ic(J,K)}}}; mF=function(J,K,n){Bi(J,K,2);Pi(J.G,n.length);iw(J,J.G.end());iw(J,n)}; pv=function(){function J(){throw Error();} Object.setPrototypeOf(J,J.prototype);return J}; Tz=function(J,K,n){this.qU=J;this.b0=K;J=VF(Lv);this.G=!!J&&n===J||!1}; Dv=function(J,K){var n=n===void 0?Lv:n;return new Tz(J,K,n)}; S8p=function(J,K,n,X,l){K=$uq(K,X);K!=null&&(n=h_F(J,n),l(K,J),v_e(J,n))}; g9=function(J,K,n,X){var l=X[J];if(l)return l;l={};l.X3=X;l.X_=g.U(L43(X[0]));var x=X[1],V=1;x&&x.constructor===Object&&(l.extensions=x,x=X[++V],typeof x==="function"&&(l.CM=!0,d9!=null||(d9=x),kJ!=null||(kJ=X[V+1]),x=X[V+=2]));for(var v={};x&&Array.isArray(x)&&x.length&&typeof x[0]==="number"&&x[0]>0;){for(var Q=0;Q>BigInt(32)));w9(J.G,n.Z,n.G);break;default:n=xup(K),w9(J.G,n.Z,n.G)}}}; JQ=function(J,K,n){K=GK(K);K!=null&&K!=null&&(Bi(J,n,0),jFf(J.G,K))}; ifr=function(J,K,n){K=K==null||typeof K==="boolean"?K:typeof K==="number"?!!K:void 0;K!=null&&(Bi(J,n,0),J.G.G.push(K?1:0))}; BPk=function(J,K,n){K=Eb(K);K!=null&&mF(J,n,L77(K))}; mur=function(J,K,n,X,l){K=$uq(K,X);K!=null&&(n=h_F(J,n),l(K,J),v_e(J,n))}; LQH=function(){var J=Kk;this.G=pH3;this.isRepeated=0;this.Z=YM;this.defaultValue=void 0;this.X=J.messageId!=null?ui:void 0}; TP8=function(J){return function(){var K=new V5q;z_U(this.lR,K,g9(Zv,yx,fv,J));iw(K,K.G.end());for(var n=new Uint8Array(K.Z),X=K.X,l=X.length,x=0,V=0;V-1)return K.apply(null,g.m(n));try{return J.G=J.X.G.now(),K.apply(null,g.m(n))}finally{J.U+=J.X.G.now()-J.G,J.G=-1,J.Z+=1}}}; duF=function(J,K){this.Z=J;this.X=K;this.G=new Duq(J)}; kd8=function(){this.G={}}; cpU=function(){var J=xp().flags,K=g_q;J=J.G[K.key];if(K.valueType==="proto"){try{var n=JSON.parse(J);if(Array.isArray(n))return n}catch(X){}return K.defaultValue}return typeof J===typeof K.defaultValue?J:K.defaultValue}; t5p=function(){this.X=void 0;this.Z=this.N=0;this.C=-1;this.i_=new hK;vj(this.i_,"mv",Y8H).G=!0;vj(this.i_,"omid",rI);vj(this.i_,"epoh",rI).G=!0;vj(this.i_,"epph",rI).G=!0;vj(this.i_,"umt",rI).G=!0;vj(this.i_,"phel",rI).G=!0;vj(this.i_,"phell",rI).G=!0;vj(this.i_,"oseid",Gd3).G=!0;var J=this.i_;J.G.sloi||(J.G.sloi=new jh);J.G.sloi.G=!0;vj(this.i_,"mm",jU);vj(this.i_,"ovms",Uuq).G=!0;vj(this.i_,"xdi",rI).G=!0;vj(this.i_,"amp",rI).G=!0;vj(this.i_,"prf",rI).G=!0;vj(this.i_,"gtx",rI).G=!0;vj(this.i_, "mvp_lv",rI).G=!0;vj(this.i_,"ssmol",rI).G=!0;vj(this.i_,"fmd",rI).G=!0;vj(this.i_,"gen204simple",rI);this.G=new duF(E8(),this.i_);this.U=!1;this.flags=new kd8}; xp=function(){return FG(t5p)}; ypM=function(J,K,n,X){if(Math.random()<(X||J.G))try{if(n instanceof U8)var l=n;else l=new U8,cH(n,function(V,v){var Q=l,S=Q.U++;V=tp(v,V);Q.G.push(S);Q.Z[S]=V}); var x=l.M_(J.Z,"pagead2.googlesyndication.com","/pagead/gen_204?id="+K+"&");x&&(E8(),zSH(x))}catch(V){}}; Zfd=function(J,K,n){n=n===void 0?{}:n;this.error=J;this.meta=n;this.context=K.context;this.msg=K.message||"";this.id=K.id||"jserror"}; f2V=function(){var J=J===void 0?g.qp:J;return(J=J.performance)&&J.now&&J.timing?Math.floor(J.now()+J.timing.navigationStart):g.jV()}; WQe=function(){var J=J===void 0?g.qp:J;return(J=J.performance)&&J.now?J.now():null}; a2H=function(J,K,n){this.label=J;this.type=K;this.value=n;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; hQ=function(){var J=window;this.events=[];this.Z=J||g.qp;var K=null;J&&(J.google_js_reporting_queue=J.google_js_reporting_queue||[],this.events=J.google_js_reporting_queue,K=J.google_measure_js_timing);this.G=Vz()||(K!=null?K:Math.random()<1)}; FQM=function(J){J&&v7&&Vz()&&(v7.clearMarks("goog_"+J.label+"_"+J.uniqueId+"_start"),v7.clearMarks("goog_"+J.label+"_"+J.uniqueId+"_end"))}; q8r=function(){var J=Qz;this.G=$p;this.yQ="jserror";this.b7=!0;this.Mn=null;this.Z=this.y7;this.JH=J===void 0?null:J}; E_8=function(J,K,n){var X=SU;return l5(xp().G.G,function(){try{if(X.JH&&X.JH.G){var l=X.JH.start(J.toString(),3);var x=K();X.JH.end(l)}else x=K()}catch(v){var V=X.b7;try{FQM(l),V=X.Z(J,new r5(si(v)),void 0,n)}catch(Q){X.y7(217,Q)}if(!V)throw v;}return x})()}; Ck=function(J,K,n,X){return l5(xp().G.G,function(){var l=g.c3.apply(0,arguments);return E_8(J,function(){return K.apply(n,l)},X)})}; si=function(J){var K=J.toString();J.name&&K.indexOf(J.name)==-1&&(K+=": "+J.name);J.message&&K.indexOf(J.message)==-1&&(K+=": "+J.message);if(J.stack)a:{J=J.stack;var n=K;try{J.indexOf(n)==-1&&(J=n+"\n"+J);for(var X;J!=X;)X=J,J=J.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");K=J.replace(/\n */g,"\n");break a}catch(l){K=n;break a}K=void 0}return K}; r5=function(J){Zfd.call(this,Error(J),{message:J})}; bfF=function(){Qc&&typeof Qc.google_measure_js_timing!="undefined"&&(Qc.google_measure_js_timing||Qz.disable())}; ApV=function(J){SU.Mn=function(K){g.Yr(J,function(n){n(K)})}}; M5p=function(J,K){return E_8(J,K)}; Oi=function(J,K){return Ck(J,K)}; H7=function(J,K,n,X){SU.y7(J,K,n,X)}; RQ=function(){return Date.now()-NPH}; Jee=function(){var J=xp().X,K=u5>=0?RQ()-u5:-1,n=eU?RQ()-zW:-1,X=w5>=0?RQ()-w5:-1;if(J==947190542)return 100;if(J==79463069)return 200;J=[2E3,4E3];var l=[250,500,1E3];H7(637,Error(),.001);var x=K;n!=-1&&n1500&&X<4E3?500:V}; P7=function(J,K,n,X){this.top=J;this.right=K;this.bottom=n;this.left=X}; IQ=function(J){return J.right-J.left}; i5=function(J,K){return J==K?!0:J&&K?J.top==K.top&&J.right==K.right&&J.bottom==K.bottom&&J.left==K.left:!1}; B7=function(J,K,n){K instanceof g.Ll?(J.left+=K.x,J.right+=K.x,J.top+=K.y,J.bottom+=K.y):(J.left+=K,J.right+=K,typeof n==="number"&&(J.top+=n,J.bottom+=n));return J}; mn=function(J,K,n){var X=new P7(0,0,0,0);this.time=J;this.volume=null;this.X=K;this.G=X;this.Z=n}; pk=function(J,K,n,X,l,x,V,v){this.U=J;this.W=K;this.X=n;this.N=X;this.G=l;this.C=x;this.Z=V;this.L=v}; nXr=function(J){var K=J!==J.top,n=J.top===$Xe(J),X=-1,l=0;if(K&&n&&J.top.mraid){X=3;var x=J.top.mraid}else X=(x=J.mraid)?K?n?2:1:0:-1;x&&(x.IS_GMA_SDK||(l=2),kMf(KEq,function(V){return typeof x[V]==="function"})||(l=1)); return{vQ:x,compatibility:l,hf4:X}}; oXq=function(){var J=window.document;return J&&typeof J.elementFromPoint==="function"}; XdH=function(J,K,n){if(J&&K!==null&&K!=K.top){if(!K.top)return new g.DH(-12245933,-12245933);K=K.top}try{return(n===void 0?0:n)?(new g.DH(K.innerWidth,K.innerHeight)).round():cjF(K||window).round()}catch(X){return new g.DH(-12245933,-12245933)}}; DL=function(J,K,n){try{if(J){if(!K.top)return new P7(-12245933,-12245933,-12245933,-12245933);K=K.top}var X=XdH(J,K,n),l=X.height,x=X.width;if(x===-12245933)return new P7(x,x,x,x);var V=tq(K.document);var v=GOM(V.G);var Q=v.x,S=v.y;return new P7(S,Q+x,S+l,Q)}catch(r){return new P7(-12245933,-12245933,-12245933,-12245933)}}; g.d5=function(J,K,n,X){this.left=J;this.top=K;this.width=n;this.height=X}; kp=function(J,K){return J==K?!0:J&&K?J.left==K.left&&J.width==K.width&&J.top==K.top&&J.height==K.height:!1}; g.c7=function(J,K,n){if(typeof K==="string")(K=g5(J,K))&&(J.style[K]=n);else for(var X in K){n=J;var l=K[X],x=g5(n,X);x&&(n.style[x]=l)}}; g5=function(J,K){var n=lw3[K];if(!n){var X=sHq(K);n=X;J.style[X]===void 0&&(X=(g.qE?"Webkit":Yp?"Moz":null)+OnU(X),J.style[X]!==void 0&&(n=X));lw3[K]=n}return n}; g.GW=function(J,K){var n=J.style[sHq(K)];return typeof n!=="undefined"?n:J.style[g5(J,K)]||""}; Ui=function(J,K){var n=UQ(J);return n.defaultView&&n.defaultView.getComputedStyle&&(J=n.defaultView.getComputedStyle(J,null))?J[K]||J.getPropertyValue(K)||"":""}; tQ=function(J,K){return Ui(J,K)||(J.currentStyle?J.currentStyle[K]:null)||J.style&&J.style[K]}; g.ZL=function(J,K,n){if(K instanceof g.Ll){var X=K.x;K=K.y}else X=K,K=n;J.style.left=g.yz(X,!1);J.style.top=g.yz(K,!1)}; fk=function(J){try{return J.getBoundingClientRect()}catch(K){return{left:0,top:0,right:0,bottom:0}}}; xYM=function(J){var K=UQ(J),n=tQ(J,"position"),X=n=="fixed"||n=="absolute";for(J=J.parentNode;J&&J!=K;J=J.parentNode)if(J.nodeType==11&&J.host&&(J=J.host),n=tQ(J,"position"),X=X&&n=="static"&&J!=K.documentElement&&J!=K.body,!X&&(J.scrollWidth>J.clientWidth||J.scrollHeight>J.clientHeight||n=="fixed"||n=="absolute"||n=="relative"))return J;return null}; g.W7=function(J){var K=UQ(J),n=new g.Ll(0,0);if(J==(K?UQ(K):document).documentElement)return n;J=fk(J);K=tq(K);K=GOM(K.G);n.x=J.left+K.x;n.y=J.top+K.y;return n}; VaF=function(J,K){var n=new g.Ll(0,0),X=EQ(UQ(J));if(!emk(X,"parent"))return n;do{var l=X==K?g.W7(J):jS3(J);n.x+=l.x;n.y+=l.y}while(X&&X!=K&&X!=X.parent&&(J=X.frameElement)&&(X=X.parent));return n}; g.aQ=function(J,K){J=h3V(J);K=h3V(K);return new g.Ll(J.x-K.x,J.y-K.y)}; jS3=function(J){J=fk(J);return new g.Ll(J.left,J.top)}; h3V=function(J){if(J.nodeType==1)return jS3(J);J=J.changedTouches?J.changedTouches[0]:J;return new g.Ll(J.clientX,J.clientY)}; g.Fo=function(J,K,n){if(K instanceof g.DH)n=K.height,K=K.width;else if(n==void 0)throw Error("missing height argument");J.style.width=g.yz(K,!0);J.style.height=g.yz(n,!0)}; g.yz=function(J,K){typeof J=="number"&&(J=(K?Math.round(J):J)+"px");return J}; g.qa=function(J){var K=vXV;if(tQ(J,"display")!="none")return K(J);var n=J.style,X=n.display,l=n.visibility,x=n.position;n.visibility="hidden";n.position="absolute";n.display="inline";J=K(J);n.display=X;n.position=x;n.visibility=l;return J}; vXV=function(J){var K=J.offsetWidth,n=J.offsetHeight,X=g.qE&&!K&&!n;return(K===void 0||X)&&J.getBoundingClientRect?(J=fk(J),new g.DH(J.right-J.left,J.bottom-J.top)):new g.DH(K,n)}; g.Ei=function(J,K){J.style.display=K?"":"none"}; b5=function(J,K){K=Math.pow(10,K);return Math.floor(J*K)/K}; QSF=function(J){return new P7(J.top,J.right,J.bottom,J.left)}; $YV=function(J){var K=J.top||0,n=J.left||0;return new P7(K,n+(J.width||0),K+(J.height||0),n)}; AQ=function(J){return J!=null&&J>=0&&J<=1}; Sbe=function(){var J=g.Ii();return J?Ma("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(K){return Ri(J,K)})||Ri(J,"OMI/")&&!Ri(J,"XiaoMi/")?!0:Ri(J,"Presto")&&Ri(J,"Linux")&&!Ri(J,"X11")&&!Ri(J,"Android")&&!Ri(J,"Mobi"):!1}; rek=function(){this.X=!gP(Qc.top);this.isMobileDevice=e5()||Er7();var J=Gd();this.domain=J.length>0&&J[J.length-1]!=null&&J[J.length-1].url!=null?g.PH(J[J.length-1].url)||"":"";this.G=new P7(0,0,0,0);this.U=new g.DH(0,0);this.C=new g.DH(0,0);this.W=new P7(0,0,0,0);this.frameOffset=new g.Ll(0,0);this.N=0;this.L=!1;this.Z=!(!Qc||!nXr(Qc).vQ);this.update(Qc)}; sSd=function(J,K){K&&K.screen&&(J.U=new g.DH(K.screen.width,K.screen.height))}; ryr=function(J,K){a:{var n=J.G?new g.DH(IQ(J.G),J.G.getHeight()):new g.DH(0,0);K=K===void 0?Qc:K;K!==null&&K!=K.top&&(K=K.top);var X=0,l=0;try{var x=K.document,V=x.body,v=x.documentElement;if(x.compatMode=="CSS1Compat"&&v.scrollHeight)X=v.scrollHeight!=n.height?v.scrollHeight:v.offsetHeight,l=v.scrollWidth!=n.width?v.scrollWidth:v.offsetWidth;else{var Q=v.scrollHeight,S=v.scrollWidth,r=v.offsetHeight,C=v.offsetWidth;v.clientHeight!=r&&(Q=V.scrollHeight,S=V.scrollWidth,r=V.offsetHeight,C=V.offsetWidth); Q>n.height?Q>r?(X=Q,l=S):(X=r,l=C):Q0||J.L)return!0;J=E8().Z.isVisible();var K=RF(JZ)===0;return J||K}; Na=function(){return FG(rek)}; ns=function(J){this.X=J;this.Z=0;this.G=null}; o3=function(J,K,n){this.X=J;this.Cv=n===void 0?"na":n;this.C=[];this.isInitialized=!1;this.U=new mn(-1,!0,this);this.G=this;this.L=K;this.GA=this.K=!1;this.MQ="uk";this.cW=!1;this.N=!0}; X5=function(J,K){g.O0(J.C,K)||(J.C.push(K),K.lz(J.G),K.mq(J.U),K.I0()&&(J.K=!0))}; sy3=function(J){J=J.G;J.qF();J.MF();var K=Na();K.W=DL(!1,J.X,K.isMobileDevice);ryr(Na(),J.X);J.U.G=J.RV()}; C_e=function(J){J.K=J.C.length?Ma(J.C,function(K){return K.I0()}):!1}; OBf=function(J){var K=g.zO(J.C);g.Yr(K,function(n){n.mq(J.U)})}; lr=function(J){var K=g.zO(J.C);g.Yr(K,function(n){n.lz(J.G)}); J.G!=J||OBf(J)}; xT=function(J,K,n,X){this.element=J;this.G=new P7(0,0,0,0);this.X=null;this.N=new P7(0,0,0,0);this.Z=K;this.i_=n;this.cW=X;this.Aj=!1;this.timestamp=-1;this.K=new pk(K.U,this.element,this.G,new P7(0,0,0,0),0,0,RQ(),0);this.C=void 0}; HBd=function(J,K){return J.C?new P7(Math.max(K.top+J.C.top,K.top),Math.min(K.left+J.C.right,K.right),Math.min(K.top+J.C.bottom,K.bottom),Math.max(K.left+J.C.left,K.left)):K.clone()}; ju=function(J){this.C=!1;this.G=J;this.U=function(){}}; RE7=function(J,K,n){this.X=n===void 0?0:n;this.Z=J;this.G=K==null?"":K}; uer=function(J){switch(Math.trunc(J.X)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; eEp=function(J,K){return J.XK.X?!1:J.ZK.Z?!1:typeof J.Gtypeof K.G?!1:J.G0?X[n]-X[n-1]:X[n]})}; ur=function(){this.Z=new r7;this.Cv=this.j_=0;this.fv=new Su;this.QG=this.W=-1;this.Fq=1E3;this.md=new r7([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.MQ=this.Aj=-1}; eu=function(J,K){return Trd(J.Z,K===void 0?!0:K)}; zS=function(J,K,n,X){var l=l===void 0?!1:l;n=Ck(X,n);HH(J,K,n,{capture:l})}; PQ=function(J,K){K=w7(K);return K===0?0:w7(J)/K}; w7=function(J){return Math.max(J.bottom-J.top,0)*Math.max(J.right-J.left,0)}; keF=function(J,K){if(!J||!K)return!1;for(var n=0;J!==null&&n++<100;){if(J===K)return!0;try{if(J=J.parentElement||J){var X=UQ(J),l=X&&EQ(X),x=l&&l.frameElement;x&&(J=x)}}catch(V){break}}return!1}; gMF=function(J,K,n){if(!J||!K)return!1;K=B7(J.clone(),-K.left,-K.top);J=(K.left+K.right)/2;K=(K.top+K.bottom)/2;gP(window.top)&&window.top&&window.top.document&&(window=window.top);if(!oXq())return!1;J=window.document.elementFromPoint(J,K);if(!J)return!1;K=(K=(K=UQ(n))&&K.defaultView&&K.defaultView.frameElement)&&keF(K,J);var X=J===n;J=!X&&J&&x_(J,function(l){return l===n}); return!(K||X||J)}; cy3=function(J,K,n,X){return Na().X?!1:IQ(J)<=0||J.getHeight()<=0?!0:n&&X?M5p(208,function(){return gMF(J,K,n)}):!1}; ir=function(J,K,n){g.t.call(this);this.position=YvU.clone();this.JW=this.oW();this.aG=-2;this.timeCreated=Date.now();this.UC=-1;this.qI=K;this.iK=null;this.o1=!1;this.zr=null;this.opacity=-1;this.requestSource=n;this.ao_=!1;this.g8=function(){}; this.yY=function(){}; this.Za=new Znp;this.Za.rT=J;this.Za.G=J;this.dT=!1;this.bd={D2:null,O4:null};this.IS=!0;this.V9=null;this.MK=this.Wv=!1;xp().N++;this.x6=this.q5();this.rI=-1;this.CE=null;this.hasCompleted=this.Ja=!1;this.i_=new hK;ZU3(this.i_);GeH(this);this.requestSource==1?QP(this.i_,"od",1):QP(this.i_,"od",0)}; GeH=function(J){J=J.Za.rT;var K;if(K=J&&J.getAttribute)K=/-[a-z]/.test("googleAvInapp")?!1:Urd&&J.dataset?"googleAvInapp"in J.dataset:J.hasAttribute?J.hasAttribute("data-"+CGM()):!!J.getAttribute("data-"+CGM());K&&(Na().Z=!0)}; BQ=function(J,K){K!=J.MK&&(J.MK=K,J=Na(),K?J.N++:J.N>0&&J.N--)}; t7k=function(J,K){if(J.CE){if(K.getName()===J.CE.getName())return;J.CE.dispose();J.CE=null}K=K.create(J.Za.G,J.i_,J.I0());if(K=K!=null&&K.observe()?K:null)J.CE=K}; yyF=function(J,K,n){if(!J.iK||J.qI==-1||K.Z===-1||J.iK.Z===-1)return 0;J=K.Z-J.iK.Z;return J>n?0:J}; ZBV=function(J,K,n){if(J.CE){J.CE.ES();var X=J.CE.K,l=X.U,x=l.G;if(X.N!=null){var V=X.X;J.zr=new g.Ll(V.left-x.left,V.top-x.top)}x=J.Tm()?Math.max(X.G,X.C):X.G;V={};l.volume!==null&&(V.volume=l.volume);l=J.MN(X);J.iK=X;J.WW(x,K,n,!1,V,l,X.L)}}; fnV=function(J){if(J.o1&&J.V9){var K=$2(J.i_,"od")==1,n=Na().G,X=J.V9,l=J.CE?J.CE.getName():"ns",x=J.zr,V=new g.DH(IQ(n),n.getHeight());n=J.Tm();J={qkQ:l,zr:x,hQx:V,Tm:n,BB:J.x6.BB,GR4:K};if(K=X.Z){K.ES();l=K.K;x=l.U.G;var v=V=null;l.N!=null&&x&&(V=l.X,V=new g.Ll(V.left-x.left,V.top-x.top),v=new g.DH(x.right-x.left,x.bottom-x.top));l=n?Math.max(l.G,l.C):l.G;n={qkQ:K.getName(),zr:V,hQx:v,Tm:n,GR4:!1,BB:l}}else n=null;n&&mrV(X,J,n)}}; WyV=function(J,K,n){K&&(J.g8=K);n&&(J.yY=n)}; g.mR=function(){}; g.ps=function(J){return{value:J,done:!1}}; anp=function(){this.U=this.G=this.X=this.Z=this.C=0}; Fyq=function(J){var K={};var n=g.jV()-J.C;K=(K.ptlt=n,K);(n=J.Z)&&(K.pnk=n);(n=J.X)&&(K.pnc=n);(n=J.U)&&(K.pnmm=n);(J=J.G)&&(K.pns=J);return K}; qvr=function(){U0.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; Ls=function(J){return AQ(J.volume)&&J.volume>0}; TS=function(J,K,n,X){n=n===void 0?!0:n;X=X===void 0?function(){return!0}:X; return function(l){var x=l[J];if(Array.isArray(x)&&X(l))return EMf(x,K,n)}}; Dr=function(J,K){return function(n){return K(n)?n[J]:void 0}}; bBF=function(J){return function(K){for(var n=0;n0?x[l-1]+1:0,X+1).reduce(function(V,v){return V+v},0)})}; Ay3=function(){this.Z=this.G=""}; M7U=function(){}; kT=function(J,K){var n={};if(J!==void 0)if(K!=null)for(var X in K){var l=K[X];X in Object.prototype||l!=null&&(n[X]=typeof l==="function"?l(J):J[l])}else g.oi(n,J);return vQ(hZ(new VD,n))}; Nrq=function(){var J={};this.Z=(J.vs=[1,0],J.vw=[0,1],J.am=[2,2],J.a=[4,4],J.f=[8,8],J.bm=[16,16],J.b=[32,32],J.avw=[0,64],J.avs=[64,0],J.pv=[256,256],J.gdr=[0,512],J.p=[0,1024],J.r=[0,2048],J.m=[0,4096],J.um=[0,8192],J.ef=[0,16384],J.s=[0,32768],J.pmx=[0,16777216],J.mut=[33554432,33554432],J.umutb=[67108864,67108864],J.tvoff=[134217728,134217728],J);this.G={};for(var K in this.Z)this.Z[K][1]>0&&(this.G[K]=0);this.X=0}; g7=function(J,K){var n=J.Z[K],X=n[1];J.X+=n[0];X>0&&J.G[K]==0&&(J.G[K]=1)}; JMH=function(J){var K=g.qz(J.Z),n=0,X;for(X in J.G)g.O0(K,X)&&J.G[X]==1&&(n+=J.Z[X][1],J.G[X]=2);return n}; KF3=function(J){var K=0,n;for(n in J.G){var X=J.G[n];if(X==1||X==2)K+=J.Z[n][1]}return K}; cQ=function(){this.G=this.Z=0}; GS=function(){ur.call(this);this.X=new Su;this.kF=this.K=this.cW=0;this.L=-1;this.Dm=new Su;this.C=new Su;this.G=new r7;this.N=this.U=-1;this.GA=new Su;this.Fq=2E3;this.PW=new cQ;this.wQ=new cQ;this.gQ=new cQ}; Uf=function(J,K,n){var X=J.kF;eU||n||J.L==-1||(X+=K-J.L);return X}; nJ7=function(){this.X=!1}; tZ=function(J,K){this.X=!1;this.U=J;this.K=K;this.C=0}; yD=function(J,K){tZ.call(this,J,K);this.W=[]}; oJ8=function(){}; fs=function(){}; WQ=function(J,K,n,X){xT.call(this,J,K,n,X)}; a3=function(J,K,n){xT.call(this,null,J,K,n);this.L=J.isActive();this.W=0}; F5=function(J){return[J.top,J.left,J.bottom,J.right]}; qm=function(J,K,n,X,l,x){x=x===void 0?new fs:x;ir.call(this,K,n,X);this.pz=l;this.jx=0;this.M3={};this.Ll=new Nrq;this.d9={};this.lj="";this.gQ=null;this.Gi=!1;this.G=[];this.pn=x.Z();this.N=x.X();this.U=null;this.X=-1;this.Cv=this.K=void 0;this.QG=this.GA=0;this.MQ=-1;this.Fq=this.wQ=!1;this.cW=this.L=this.Z=this.Uh=this.vW=0;new r7;this.PW=this.kF=0;this.fv=-1;this.W1=0;this.W=g.S5;this.Aj=[this.oW()];this.a5=2;this.eg={};this.eg.pause="p";this.eg.resume="r";this.eg.skip="s";this.eg.mute="m";this.eg.unmute= "um";this.eg.exitfullscreen="ef";this.C=null;this.md=this.Dm=!1;this.iR=Math.floor(Date.now()/1E3-1704067200);this.j_=0}; Ef=function(J){J.hasCompleted=!0;J.W1!=0&&(J.W1=3)}; br=function(J){return J===void 0?J:Number(J)?b5(J,3):0}; AZ=function(J,K){return J.Aj[K!=null&&KMath.max(1E4,J.X/3)?0:K);var n=J.W(J)||{};n=n.currentTime!==void 0?n.currentTime:J.GA;var X=n-J.GA,l=0;X>=0?(J.QG+=K,J.PW+=Math.max(K-X,0),l=Math.min(X,J.QG)):J.kF+=Math.abs(X);X!=0&&(J.QG=0);J.fv==-1&&X>0&&(J.fv=w5>=0?RQ()-w5:-1);J.GA=n;return l}; x9V=function(J,K){Ma(J.N,function(n){return n.U==K.U})||J.N.push(K)}; jc7=function(J){var K=Of(J.UY().G,1);return Mm(J,K)}; Mm=function(J,K,n){return K>=15E3?!0:J.wQ?(n===void 0?0:n)?!0:J.X>0?K>=J.X/2:J.MQ>0?K>=J.MQ:!1:!1}; Vrk=function(J){var K=b5(J.x6.BB,2),n=J.Ll.X,X=J.x6,l=AZ(J),x=br(l.U),V=br(l.N),v=br(X.volume),Q=b5(l.W,2),S=b5(l.QG,2),r=b5(X.BB,2),C=b5(l.Aj,2),O=b5(l.MQ,2);X=b5(X.LL,2);var H=J.wJ().clone().round();J=J.CE&&J.CE.X?(J.CE?J.CE.X:null).clone().round():null;l=eu(l,!1);return{Zhv:K,C1:n,tW:x,oC:V,F5:v,eH:Q,NT:S,BB:r,Tr:C,CX:O,LL:X,position:H,ZE:J,fX:l}}; vJr=function(J,K){hTk(J.G,K,function(){return{Zhv:0,C1:void 0,tW:-1,oC:-1,F5:-1,eH:-1,NT:-1,BB:-1,Tr:-1,CX:-1,LL:-1,position:void 0,ZE:void 0,fX:[]}}); J.G[K]=Vrk(J)}; hTk=function(J,K,n){for(var X=J.length;X0?1:0;C.atos= sf(S.G);C.ssb=sf(S.md,!1);C.amtos=Trd(S.G,!1);C.uac=J.vW;C.vpt=S.X.G;r=="nio"&&(C.nio=1,C.avms="nio");C.gmm="4";C.gdr=Mm(J,S.X.G,!0)?1:0;C.efpf=J.a5;if(r=="gsv"||r=="nis")r=J.CE,r.W>0&&(C.nnut=r.W);C.tcm=Xi7(J);C.nmt=J.kF;C.bt=J.PW;C.pst=J.fv;C.vpaid=J.K;C.dur=J.X;C.vmtime=J.GA;C.is=J.Ll.X;J.G.length>=1&&(C.i0=J.G[0].C1,C.a0=[J.G[0].F5],C.c0=[J.G[0].BB],C.ss0=[J.G[0].LL],r=J.G[0].position,x=J.G[0].ZE,C.p0=r?F5(r):void 0,r&&x&&!i5(x,r)&&(C.cp0=F5(x)));J.G.length>=2&&(C.i1=J.G[1].C1,C.a1=K9(J.G[1].tW, J.G[1].F5,J.G[1].oC),C.c1=K9(J.G[1].eH,J.G[1].BB,J.G[1].NT),C.ss1=K9(J.G[1].Tr,J.G[1].LL,J.G[1].CX),r=J.G[1].position,x=J.G[1].ZE,C.p1=r?F5(r):void 0,r&&x&&!i5(x,r)&&(C.cp1=F5(x)),C.mtos1=J.G[1].fX);J.G.length>=3&&(C.i2=J.G[2].C1,C.a2=K9(J.G[2].tW,J.G[2].F5,J.G[2].oC),C.c2=K9(J.G[2].eH,J.G[2].BB,J.G[2].NT),C.ss2=K9(J.G[2].Tr,J.G[2].LL,J.G[2].CX),r=J.G[2].position,x=J.G[2].ZE,C.p2=r?F5(r):void 0,r&&x&&!i5(x,r)&&(C.cp2=F5(x)),C.mtos2=J.G[2].fX);J.G.length>=4&&(C.i3=J.G[3].C1,C.a3=K9(J.G[3].tW,J.G[3].F5, J.G[3].oC),C.c3=K9(J.G[3].eH,J.G[3].BB,J.G[3].NT),C.ss3=K9(J.G[3].Tr,J.G[3].LL,J.G[3].CX),r=J.G[3].position,x=J.G[3].ZE,C.p3=r?F5(r):void 0,r&&x&&!i5(x,r)&&(C.cp3=F5(x)),C.mtos3=J.G[3].fX);C.cs=KF3(J.Ll);K&&(C.ic=JMH(J.Ll),C.dvpt=S.X.Z,C.dvs=R3(S.Z,.5),C.dfvs=R3(S.Z,1),C.davs=R3(S.G,.5),C.dafvs=R3(S.G,1),n&&(S.X.Z=0,Dr3(S.Z),Dr3(S.G)),J.lM()&&(C.dtos=S.cW,C.dav=S.K,C.dtoss=J.jx+1,n&&(S.cW=0,S.K=0,J.jx++)),C.dat=S.C.Z,C.dft=S.GA.Z,n&&(S.C.Z=0,S.GA.Z=0));C.ps=[v.C.width,v.C.height];C.bs=[IQ(v.G),v.G.getHeight()]; C.scs=[v.U.width,v.U.height];C.dom=v.domain;J.Uh&&(C.vds=J.Uh);if(J.N.length>0||J.pn)K=g.zO(J.N),J.pn&&K.push(J.pn),C.pings=g.ff(K,function(O){return O.toString()}); K=g.ff(g.d7(J.N,function(O){return O.N()}),function(O){return O.getId()}); B3F(K);C.ces=K;J.Z&&(C.vmer=J.Z);J.L&&(C.vmmk=J.L);J.cW&&(C.vmiec=J.cW);C.avms=J.CE?J.CE.getName():"ns";J.CE&&g.oi(C,J.CE.TY());X?(C.c=b5(J.x6.BB,2),C.ss=b5(J.x6.LL,2)):C.tth=RQ()-rMe;C.mc=b5(S.QG,2);C.nc=b5(S.W,2);C.mv=br(S.N);C.nv=br(S.U);C.lte=b5(J.aG,2);X=AZ(J,l);eu(S);C.qmtos=eu(X);C.qnc=b5(X.W,2);C.qmv=br(X.N);C.qnv=br(X.U);C.qas=X.U>0?1:0;C.qi=J.lj;C.avms||(C.avms="geo");C.psm=S.PW.G;C.psv=S.PW.getValue();C.psfv=S.wQ.getValue();C.psa=S.gQ.getValue();Q=t8q(Q.i_);Q.length&&(C.veid=Q);J.C&&g.oi(C, Fyq(J.C));C.avas=J.A1();C.vs=J.Tz();C.co=scV(J);C.tm=S.j_;C.tu=S.Cv;return C}; QcM=function(J,K){if(g.O0(Cw8,K))return!0;var n=J.M3[K];return n!==void 0?(J.M3[K]=!0,!n):!1}; scV=function(J){var K=J.j_.toString(10).padStart(2,"0");K=""+J.iR+K;J.j_<99&&J.j_++;return K}; Hve=function(){this.G={};var J=EQ();n9(this,J,document);var K=OvV();try{if("1"==K){for(var n=J.parent;n!=J.top;n=n.parent)n9(this,n,n.document);n9(this,J.top,J.top.document)}}catch(X){}}; OvV=function(){var J=document.documentElement;try{if(!gP(EQ().top))return"2";var K=[],n=EQ(J.ownerDocument);for(J=n;J!=n.top;J=J.parent)if(J.frameElement)K.push(J.frameElement);else break;return K&&K.length!=0?"1":"0"}catch(X){return"2"}}; n9=function(J,K,n){zS(n,"mousedown",function(){return RTq(J)},301); zS(K,"scroll",function(){return uB7(J)},302); zS(n,"touchmove",function(){return eTq(J)},303); zS(n,"mousemove",function(){return zTV(J)},304); zS(n,"keydown",function(){return wiH(J)},305)}; RTq=function(J){g.tj(J.G,function(K){K.X>1E5||++K.X})}; uB7=function(J){g.tj(J.G,function(K){K.G>1E5||++K.G})}; eTq=function(J){g.tj(J.G,function(K){K.G>1E5||++K.G})}; wiH=function(J){g.tj(J.G,function(K){K.Z>1E5||++K.Z})}; zTV=function(J){g.tj(J.G,function(K){K.U>1E5||++K.U})}; PwF=function(){this.G=[];this.Z=[]}; o$=function(J,K){return g.ru(J.G,function(n){return n.lj==K})}; Ivq=function(J,K){return K?g.ru(J.G,function(n){return n.Za.rT==K}):null}; ive=function(J,K){return g.ru(J.Z,function(n){return n.d_()==2&&n.lj==K})}; l0=function(){var J=Xf;return J.G.length==0?J.Z:J.Z.length==0?J.G:g.eV(J.Z,J.G)}; B9M=function(J,K){J=K.d_()==1?J.G:J.Z;var n=SV(J,function(X){return X==K}); return n!=-1?(J.splice(n,1),K.CE&&K.CE.unobserve(),K.dispose(),!0):!1}; m9F=function(J){var K=Xf;if(B9M(K,J)){switch(J.d_()){case 0:var n=function(){return null}; case 2:n=function(){return ive(K,J.lj)}; break;case 1:n=function(){return o$(K,J.lj)}}for(var X=n();X;X=n())B9M(K,X)}}; pi3=function(J){var K=Xf;J=g.d7(J,function(n){return!Ivq(K,n.Za.rT)}); K.G.push.apply(K.G,g.m(J))}; LFp=function(J){var K=[];g.Yr(J,function(n){Ma(Xf.G,function(X){return X.Za.rT===n.Za.rT&&X.lj===n.lj})||(Xf.G.push(n),K.push(n))})}; xN=function(){this.G=this.Z=null}; j4=function(J){return J.G!=null}; T9d=function(J,K){function n(X,l){K(X,l)} if(J.Z==null)return!1;J.G=g.ru(J.Z,function(X){return X!=null&&X.bL()}); J.G&&(J.G.init(n)?sy3(J.G.G):K(J.G.G.Iw(),J.G));return J.G!=null}; Vl=function(J){J=D9d(J);ju.call(this,J.length?J[J.length-1]:new o3(Qc,0));this.X=J;this.Z=null}; D9d=function(J){if(!J.length)return[];J=(0,g.d7)(J,function(n){return n!=null&&n.hD()}); for(var K=1;Kn.time?K:n},J[0])}; $N=function(J){J=J===void 0?Qc:J;ju.call(this,new o3(J,2))}; S4=function(){var J=cMe();o3.call(this,Qc.top,J,"geo")}; cMe=function(){xp();var J=Na();return J.X||J.Z?0:2}; YD3=function(){}; rB=function(){this.done=!1;this.G={gM:0,Hc:0,W8Q:0,WG:0,vr:-1,eU:0,W4:0,Vu:0,coW:0};this.C=null;this.N=!1;this.X=null;this.W=0;this.Z=new ns(this)}; C9=function(){var J=sE;J.N||(J.N=!0,Gzq(J,function(){return J.U.apply(J,g.m(g.c3.apply(0,arguments)))}),J.U())}; U9k=function(){FG(YD3);var J=FG(xN);j4(J)&&J.G.G?sy3(J.G.G):Na().update(Qc)}; OE=function(J,K,n){if(!J.done&&(J.Z.cancel(),K.length!=0)){J.X=null;try{U9k();var X=RQ();xp().C=X;if(j4(FG(xN)))for(var l=0;l=0?RQ()-u5:-1,v=RQ();l.G.vr==-1&&(V=v);var Q=Na(),S=xp(),r=Sh(S.i_),C=l0();try{if(C.length>0){var O=Q.G;O&&(r.bs=[IQ(O),O.getHeight()]);var H=Q.C;H&&(r.ps=[H.width,H.height]);Qc.screen&&(r.scs=[Qc.screen.width,Qc.screen.height])}else r.url=encodeURIComponent(Qc.location.href.substring(0,512)),x.referrer&&(r.referrer=encodeURIComponent(x.referrer.substring(0,512))); r.tt=V;r.pt=u5;r.bin=S.Z;Qc.google_osd_load_pub_page_exp!==void 0&&(r.olpp=Qc.google_osd_load_pub_page_exp);r.deb=[1,l.G.gM,l.G.Hc,l.G.WG,l.G.vr,0,l.Z.Z,l.G.eU,l.G.W4,l.G.Vu,l.G.coW,-1].join(";");r.tvt=yMk(l,v);Q.Z&&(r.inapp=1);if(Qc!==null&&Qc!=Qc.top){C.length>0&&(r.iframe_loc=encodeURIComponent(Qc.location.href.substring(0,512)));var R=Q.W;r.is=[IQ(R),R.getHeight()]}}catch(w){r.error=1}sE.X=r}O=g.Ku(sE.X);H=xp().G;$2(H.X,"prf")==1?(R=new Xo,l=H.G,x=0,l.G>-1&&(x=l.X.G.now()-l.G),R=Be(R,1,d$(l.U+ x),0),l=H.G,R=Be(R,5,YX(l.G>-1?l.Z+1:l.Z),0),R=Be(R,2,Wd(H.Z.G.X()),"0"),R=Be(R,3,Wd(H.Z.G.Z()),"0"),H=Be(R,4,Wd(H.Z.G.G()),"0"),R={},H=(R.pf=g.Je(H.Z()),R)):H={};g.oi(O,H);g.oi(K,X,n,O,J())}])}; WFk=function(){var J=fv7||Qc;if(!J)return"";var K=[];if(!J.location||!J.location.href)return"";K.push("url="+encodeURIComponent(J.location.href.substring(0,512)));J.document&&J.document.referrer&&K.push("referrer="+encodeURIComponent(J.document.referrer.substring(0,512)));return K.join("&")}; HR=function(){var J="youtube.player.web_20250512_21_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250512_21_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250512_21_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250512_21_RC00".match(/_(\d{8})_\d+_RC\d+$/),K;if(((K=J)==null?void 0:K.length)==2)return J[1];J="youtube.player.web_20250512_21_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var n;return((n=J)==null?void 0:n.length)==3?"20"+J[1]+J[2]:null}; av3=function(){return"av.default_js".includes("ima_html5_sdk")?{sL:"ima",Ig:null}:"av.default_js".includes("ima_native_sdk")?{sL:"nima",Ig:null}:"av.default_js".includes("admob-native-video-javascript")?{sL:"an",Ig:null}:"youtube.player.web_20250512_21_RC00".includes("cast_js_sdk")?{sL:"cast",Ig:HR()}:"youtube.player.web_20250512_21_RC00".includes("youtube.player.web")?{sL:"yw",Ig:HR()}:"youtube.player.web_20250512_21_RC00".includes("outstream_web_client")?{sL:"out",Ig:HR()}:"youtube.player.web_20250512_21_RC00".includes("drx_rewarded_web")? {sL:"r",Ig:HR()}:"youtube.player.web_20250512_21_RC00".includes("gam_native_web_video")?{sL:"n",Ig:HR()}:"youtube.player.web_20250512_21_RC00".includes("admob_interstitial_video")?{sL:"int",Ig:HR()}:{sL:"j",Ig:null}}; e4=function(J,K){var n={sv:"966"};R$!==null&&(n.v=R$);n.cb=FFp;n.nas=Xf.G.length;n.msg=J;K!==void 0&&(J=qDk(K))&&(n.e=u0[J]);return n}; zf=function(J){return s7(J,"custom_metric_viewable")}; qDk=function(J){var K=zf(J)?"custom_metric_viewable":J.toLowerCase();return Aj(Nm,function(n){return n==K})}; EJf=function(){this.G=void 0;this.Z=!1;this.X=0;this.U=-1;this.C="tos"}; Mrp=function(J){try{var K=J.split(",");return K.length>g.qz(bvV).length?null:aF(K,function(n,X){X=X.toLowerCase().split("=");if(X.length!=2||AMF[X[0]]===void 0||!AMF[X[0]](X[1]))throw Error("Entry ("+X[0]+", "+X[1]+") is invalid.");n[X[0]]=X[1];return n},{})}catch(n){return null}}; N9r=function(J,K){if(J.G==void 0)return 0;switch(J.C){case "mtos":return J.Z?HQ(K.G,J.G):HQ(K.Z,J.G);case "tos":return J.Z?Of(K.G,J.G):Of(K.Z,J.G)}return 0}; wB=function(J,K,n,X){tZ.call(this,K,X);this.W=J;this.L=n}; PR=function(){}; I$=function(J){tZ.call(this,"fully_viewable_audible_half_duration_impression",J)}; i0=function(J){this.G=J}; BR=function(J,K){tZ.call(this,J,K)}; mt=function(J){yD.call(this,"measurable_impression",J)}; p9=function(){i0.apply(this,arguments)}; L9=function(J,K,n){a3.call(this,J,K,n)}; Tf=function(J){J=J===void 0?Qc:J;ju.call(this,new o3(J,2))}; DG=function(J,K,n){a3.call(this,J,K,n)}; dB=function(J){J=J===void 0?Qc:J;ju.call(this,new o3(J,2))}; kN=function(){o3.call(this,Qc,2,"mraid");this.PW=0;this.QG=this.Aj=!1;this.W=null;this.Z=nXr(this.X);this.U.G=new P7(0,0,0,0);this.j_=!1}; gB=function(J,K,n){J.F8("addEventListener",K,n)}; op8=function(J){xp().U=!!J.F8("isViewable");gB(J,"viewableChange",JQe);J.F8("getState")==="loading"?gB(J,"ready",KnU):npH(J)}; npH=function(J){typeof J.Z.vQ.AFMA_LIDAR==="string"?(J.Aj=!0,X7k(J)):(J.Z.compatibility=3,J.W="nc",J.I$("w"))}; X7k=function(J){J.QG=!1;var K=$2(xp().i_,"rmmt")==1,n=!!J.F8("isViewable");(K?!n:1)&&E8().setTimeout(Oi(524,function(){J.QG||(lLq(J),H7(540,Error()),J.W="mt",J.I$("w"))}),500); xa7(J);gB(J,J.Z.vQ.AFMA_LIDAR,jQM)}; xa7=function(J){var K=$2(xp().i_,"sneio")==1,n=J.Z.vQ.AFMA_LIDAR_EXP_1!==void 0,X=J.Z.vQ.AFMA_LIDAR_EXP_2!==void 0;(K=K&&X)&&(J.Z.vQ.AFMA_LIDAR_EXP_2=!0);n&&(J.Z.vQ.AFMA_LIDAR_EXP_1=!K)}; lLq=function(J){J.F8("removeEventListener",J.Z.vQ.AFMA_LIDAR,jQM);J.Aj=!1}; VUk=function(J,K){if(J.F8("getState")==="loading")return new g.DH(-1,-1);K=J.F8(K);if(!K)return new g.DH(-1,-1);J=parseInt(K.width,10);K=parseInt(K.height,10);return isNaN(J)||isNaN(K)?new g.DH(-1,-1):new g.DH(J,K)}; KnU=function(){try{var J=FG(kN);J.F8("removeEventListener","ready",KnU);npH(J)}catch(K){H7(541,K)}}; jQM=function(J,K){try{var n=FG(kN);n.QG=!0;var X=J?new P7(J.y,J.x+J.width,J.y+J.height,J.x):new P7(0,0,0,0);var l=RQ(),x=Ks();var V=new mn(l,x,n);V.G=X;V.volume=K;n.mq(V)}catch(v){H7(542,v)}}; JQe=function(J){var K=xp(),n=FG(kN);J&&!K.U&&(K.U=!0,n.j_=!0,n.W&&n.I$("w",!0))}; cR=function(){this.isInitialized=!1;this.G=this.Z=null;var J={};this.W=(J.start=this.ZU,J.firstquartile=this.Kb,J.midpoint=this.lf,J.thirdquartile=this.X6,J.complete=this.z6,J.error=this.OQ,J.pause=this.Qk,J.resume=this.iF,J.skip=this.Qi,J.viewable_impression=this.GQ,J.mute=this.Mf,J.unmute=this.Mf,J.fullscreen=this.vY,J.exitfullscreen=this.Dl,J.fully_viewable_audible_half_duration_impression=this.GQ,J.measurable_impression=this.GQ,J.abandon=this.Qk,J.engagedview=this.GQ,J.impression=this.GQ,J.creativeview= this.GQ,J.progress=this.Mf,J.custom_metric_viewable=this.GQ,J.bufferstart=this.Qk,J.bufferfinish=this.iF,J.audio_measurable=this.GQ,J.audio_audible=this.GQ,J);J={};this.L=(J.overlay_resize=this.Gb,J.abandon=this.sX,J.close=this.sX,J.collapse=this.sX,J.overlay_unmeasurable_impression=function(K){return Jz(K,"overlay_unmeasurable_impression",Ks())},J.overlay_viewable_immediate_impression=function(K){return Jz(K,"overlay_viewable_immediate_impression",Ks())},J.overlay_unviewable_impression=function(K){return Jz(K, "overlay_unviewable_impression",Ks())},J.overlay_viewable_end_of_session_impression=function(K){return Jz(K,"overlay_viewable_end_of_session_impression",Ks())},J); xp().Z=3;hgk(this);this.X=null}; YN=function(J,K,n,X){J=J.d0(null,X,!0,K);J.U=n;pi3([J]);return J}; vpV=function(J,K,n){dpV(K);var X=J.G;g.Yr(K,function(l){var x=g.ff(l.criteria,function(V){var v=Mrp(V);if(v==null)V=null;else if(V=new EJf,v.visible!=null&&(V.G=v.visible/100),v.audible!=null&&(V.Z=v.audible==1),v.time!=null){var Q=v.timetype=="mtos"?"mtos":"tos",S=feM(v.time,"%")?"%":"ms";v=parseInt(v.time,10);S=="%"&&(v/=100);V.setTime(v,S,Q)}return V}); Ma(x,function(V){return V==null})||x9V(n,new wB(l.id,l.event,x,X))})}; QQ7=function(){var J=[],K=xp();J.push(FG(S4));$2(K.i_,"mvp_lv")&&J.push(FG(kN));K=[new Tf,new dB];K.push(new Vl(J));K.push(new $N(Qc));return K}; $a3=function(J){if(!J.isInitialized){J.isInitialized=!0;try{var K=RQ(),n=xp(),X=Na();u5=K;n.X=79463069;J.Z!=="o"&&(fv7=$Xe(Qc));if(wjf()){sE.G.Hc=0;sE.G.vr=RQ()-K;var l=QQ7(),x=FG(xN);x.Z=l;T9d(x,function(){Gf()})?sE.done||(trr(),X5(x.G.G,J),C9()):X.X?Gf():C9()}else UE=!0}catch(V){throw Xf.reset(),V; }}}; yl=function(J){sE.Z.cancel();tz=J;sE.done=!0}; ZG=function(J){if(J.Z)return J.Z;var K=FG(xN).G;if(K)switch(K.getName()){case "nis":J.Z="n";break;case "gsv":J.Z="m"}J.Z||(J.Z="h");return J.Z}; f9=function(J,K,n){if(J.G==null)return K.Uh|=4,!1;J=Siq(J.G,n,K);K.Uh|=J;return J==0}; Gf=function(){var J=[new $N(Qc)],K=FG(xN);K.Z=J;T9d(K,function(){yl("i")})?sE.done||(trr(),C9()):yl("i")}; rQ8=function(J,K){if(!J.Gi){var n=Jz(J,"start",Ks());n=J.pz.G(n).G;var X={id:"lidarv"};X.r=K;X.sv="966";R$!==null&&(X.v=R$);BH(n,function(l,x){return X[l]=l=="mtos"||l=="tos"?x:encodeURIComponent(x)}); K=WFk();BH(K,function(l,x){return X[l]=encodeURIComponent(x)}); K="//pagead2.googlesyndication.com/pagead/gen_204?"+vQ(hZ(new VD,X));iBk(K);J.Gi=!0}}; EE=function(J,K,n){OE(sE,[J],!Ks());vJr(J,n);n!=4&&hTk(J.Aj,n,J.oW);return Jz(J,K,Ks())}; hgk=function(J){Zvq(function(){var K=sQf();J.Z!=null&&(K.sdk=J.Z);var n=FG(xN);j4(n)&&(K.avms=n.G.getName());return K})}; C53=function(J,K,n,X){var l=Ivq(Xf,n);l!==null&&l.lj!==K&&(J.s1(l),l=null);l||(K=J.d0(n,RQ(),!1,K),Xf.Z.length==0&&(xp().X=79463069),LFp([K]),l=K,l.U=ZG(J),X&&(l.gQ=X));return l}; Ok8=function(J,K){var n=J[K];n!==void 0&&n>0&&(J[K]=Math.floor(n*1E3))}; sQf=function(){var J=Na(),K={},n={},X={};return Object.assign({},(K.sv="966",K),R$!==null&&(n.v=R$,n),(X["if"]=J.X?"1":"0",X.nas=String(Xf.G.length),X))}; b0=function(J){tZ.call(this,"audio_audible",J)}; Az=function(J){yD.call(this,"audio_measurable",J)}; Md=function(){i0.apply(this,arguments)}; Nd=function(){}; Hkr=function(J){this.G=J}; Siq=function(J,K,n){J=J.Z();if(typeof J==="function"){var X={};var l={};X=Object.assign({},R$!==null&&(X.v=R$,X),(l.sv="966",l.cb=FFp,l.e=Rg8(K),l));l=Jz(n,K,Ks());g.oi(X,l);n.d9[K]=l;X=n.d_()==2?Inr(X).join("&"):n.pz.G(X).G;try{return J(n.lj,X,K),0}catch(x){return 2}}else return 1}; Rg8=function(J){var K=zf(J)?"custom_metric_viewable":J;J=Aj(Nm,function(n){return n==K}); return u0[J]}; J$=function(){cR.call(this);this.N=null;this.C=!1;this.U="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; uo3=function(J,K,n){n=n.opt_configurable_tracking_events;J.G!=null&&Array.isArray(n)&&vpV(J,n,K)}; ege=function(J,K,n){var X=o$(Xf,K);X||(X=n.opt_nativeTime||-1,X=YN(J,K,ZG(J),X),n.opt_osdId&&(X.gQ=n.opt_osdId));return X}; zgH=function(J,K,n){var X=o$(Xf,K);X||(X=YN(J,K,"n",n.opt_nativeTime||-1));return X}; w73=function(J,K){var n=o$(Xf,K);n||(n=YN(J,K,"h",-1));return n}; P5F=function(J){xp();switch(ZG(J)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; B5k=function(J,K,n,X){n=n===void 0?{}:n;var l={};g.oi(l,{opt_adElement:void 0,opt_fullscreen:void 0},n);var x=J.ej(K,n);n=x?x.pz:J.uv();if(l.opt_bounds)return n.G(e4("ol",X));if(X!==void 0)if(qDk(X)!==void 0)if(UE)J=e4("ue",X);else if($a3(J),tz=="i")J=e4("i",X),J["if"]=0;else if(K=J.ej(K,l)){b:{tz=="i"&&(K.dT=!0);x=l.opt_fullscreen;x!==void 0&&BQ(K,!!x);var V;if(x=!Na().Z)(x=Ri(g.Ii(),"CrKey")&&!(Ri(g.Ii(),"CrKey")&&Ri(g.Ii(),"SmartSpeaker"))||Ri(g.Ii(),"PlayStation")||Ri(g.Ii(),"Roku")||Sbe()||Ri(g.Ii(), "Xbox"))||(x=g.Ii(),x=Ri(x,"AppleTV")||Ri(x,"Apple TV")||Ri(x,"CFNetwork")||Ri(x,"tvOS")),x||(x=g.Ii(),x=Ri(x,"sdk_google_atv_x86")||Ri(x,"Android TV")),x=!x;x&&(E8(),x=RF(JZ)===0);if(V=x){switch(K.d_()){case 1:rQ8(K,"pv");break;case 2:J.oh(K)}yl("pv")}x=X.toLowerCase();if(V=!V)V=$2(xp().i_,"ssmol")&&x==="loaded"?!1:g.O0(ILp,x);if(V&&K.W1==0){tz!="i"&&(sE.done=!1);V=l!==void 0?l.opt_nativeTime:void 0;w5=V=typeof V==="number"?V:RQ();K.o1=!0;var v=Ks();K.W1=1;K.M3={};K.M3.start=!1;K.M3.firstquartile= !1;K.M3.midpoint=!1;K.M3.thirdquartile=!1;K.M3.complete=!1;K.M3.resume=!1;K.M3.pause=!1;K.M3.skip=!1;K.M3.mute=!1;K.M3.unmute=!1;K.M3.viewable_impression=!1;K.M3.measurable_impression=!1;K.M3.fully_viewable_audible_half_duration_impression=!1;K.M3.fullscreen=!1;K.M3.exitfullscreen=!1;K.jx=0;v||(K.UY().L=V);OE(sE,[K],!v)}(V=K.eg[x])&&g7(K.Ll,V);$2(xp().i_,"fmd")||g.O0(ik3,x)&&K.pn&&K.pn.Z(K,null);switch(K.d_()){case 1:var Q=zf(x)?J.W.custom_metric_viewable:J.W[x];break;case 2:Q=J.L[x]}if(Q&&(X=Q.call(J, K,l,X),$2(xp().i_,"fmd")&&g.O0(ik3,x)&&K.pn&&K.pn.Z(K,null),X!==void 0)){l=e4(void 0,x);g.oi(l,X);X=l;break b}X=void 0}K.W1==3&&J.s1(K);J=X}else J=e4("nf",X);else J=void 0;else UE?J=e4("ue"):x?(J=e4(),g.oi(J,$9V(x,!0,!1,!1))):J=e4("nf");return typeof J==="string"?n.G():n.G(J)}; ma8=function(J,K){K&&(J.U=K)}; p7H=function(J){var K={};return K.viewability=J.G,K.googleViewability=J.Z,K}; Lnp=function(J,K,n){n=n===void 0?{}:n;J=B5k(FG(J$),K,n,J);return p7H(J)}; Kd=function(J,K){return(J=(new RegExp("[^#]*[?&]"+K+"=([^&#]*)")).exec(J))?J[1]:null}; nd=function(J){var K=g.c3.apply(1,arguments).filter(Boolean).join("&");if(!K)return J;var n=J.match(/[?&]adurl=/);return n?J.slice(0,n.index+1)+K+"&"+J.slice(n.index+1):J+(J.indexOf("?")<0?"?":"&")+K}; os=function(J,K){return K?"&"+J+"="+encodeURIComponent(K):""}; T5V=function(J){var K=J.url;J=J.nmq;this.G=K;this.X=J;this.Z=(new Date).getTime()-17040672E5}; Da3=function(J){J=J.X;if(!J)return"";var K=os("uap",J.platform)+os("uapv",J.platformVersion)+os("uafv",J.uaFullVersion)+os("uaa",J.architecture)+os("uam",J.model)+os("uab",J.bitness);J.fullVersionList&&(K+="&uafvl="+encodeURIComponent(J.fullVersionList.map(function(n){return encodeURIComponent(n.brand)+";"+encodeURIComponent(n.version)}).join("|"))); J.wow64!=null&&(K+="&uaw="+Number(J.wow64));return K.slice(1)}; gpd=function(J,K,n,X,l){var x=window;var V=V===void 0?!1:V;var v;n?v=(V===void 0?0:V)?"//ep1.adtrafficquality.google/bg/"+Cl(n)+".js":"//pagead2.googlesyndication.com/bg/"+Cl(n)+".js":v="";V=V===void 0?!1:V;n=x.document;var Q={};K&&(Q._scs_=K);Q._bgu_=v;Q._bgp_=X;Q._li_="v_h.3.0.0.0";l&&(Q._upb_=l);(K=x.GoogleTyFxhY)&&typeof K.push=="function"||(K=x.GoogleTyFxhY=[]);K.push(Q);K=tq(n).createElement("SCRIPT");K.type="text/javascript";K.async=!0;J=(V===void 0?0:V)?dz7(daU,Cl(J)+".js"):dz7(kWe,Cl(J)+ ".js");g.Vh(K,J);(x=(x.GoogleTyFxhYEET||{})[K.src])?x():n.getElementsByTagName("head")[0].appendChild(K)}; cQq=function(){try{var J,K;return!!((J=window)==null?0:(K=J.top)==null?0:K.location.href)&&!1}catch(n){return!0}}; X7=function(J,K,n){n=n===void 0?Error():n;var X=Error.call(this);this.message=X.message;"stack"in X&&(this.stack=X.stack);this.code=J;K+=":";n instanceof Error?(this.message=K+n.message,this.stack=n.stack||""):(this.message=K+String(n),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)}; xu=function(){var J=YiV();J=J===void 0?"bevasrsg":J;return new Promise(function(K){var n=window===window.top?window:cQq()?window:window.top,X=n[J],l;((l=X)==null?0:l.bevasrs)?K(new lh(X.bevasrs)):(X||(X={},X=(X.nqfbel=[],X),n[J]=X),X.nqfbel.push(function(x){K(new lh(x))}))})}; GWM=function(J){var K={c:J.b$,e:J.Jl,mc:J.PE,me:J.oN};J.rJ&&(K.co={c:J.rJ.Rf,a:J.rJ.Th,s:J.rJ.QY});return K}; jt=function(J){g.t.call(this);this.wpc=J}; lh=function(J){g.t.call(this);var K=this;this.fE=J;this.X="keydown keypress keyup input focusin focusout select copy cut paste change click dblclick auxclick pointerover pointerdown pointerup pointermove pointerout dragenter dragleave drag dragend mouseover mousedown mouseup mousemove mouseout touchstart touchend touchmove wheel".split(" ");this.Z=void 0;this.CD=this.fE.p;this.U=this.Jw.bind(this);this.addOnDisposeCallback(function(){return void Uaq(K)})}; tUq=function(J){var K;return g.G(function(n){if(n.Z==1){if(!J.fE.wpc)throw new X7(30,"NWA");return J.G?n.return(J.G):g.d(n,J.fE.wpc(),2)}K=n.G;J.G=new jt(K);return n.return(J.G)})}; Uaq=function(J){J.Z!==void 0&&(J.X.forEach(function(K){var n;(n=J.Z)==null||n.removeEventListener(K,J.U)}),J.Z=void 0)}; yQe=function(J){var K=K===void 0?49:K;var n=[];Ge(J,VZ,6).forEach(function(X){fB(X,2)<=K&&n.push(fB(X,1))}); return n}; ZkM=function(J){var K=K===void 0?49:K;var n=[];Ge(J,VZ,6).forEach(function(X){fB(X,2)>K&&n.push(fB(X,1))}); return n}; fLf=function(J){J.then(function(){},function(){})}; h$=function(){g.t.apply(this,arguments);this.U=1;this[Wnd]=this.dispose}; vc=function(J){return{fieldType:2,fieldName:J}}; g.QZ=function(J){return{fieldType:3,fieldName:J}}; aLk=function(J){this.G=J;J.cC("/client_streamz/bg/frs",g.QZ("mk"))}; Fn3=function(J){this.G=J;J.cC("/client_streamz/bg/wrl",g.QZ("mn"),vc("ac"),vc("sc"),g.QZ("rk"),g.QZ("mk"))}; qiF=function(J){this.G=J;J.h0("/client_streamz/bg/ec",g.QZ("en"),g.QZ("mk"))}; Epf=function(J){this.G=J;J.cC("/client_streamz/bg/el",g.QZ("en"),g.QZ("mk"))}; bk7=function(J){this.G=J;J.h0("/client_streamz/bg/cec",vc("ec"),g.QZ("mk"))}; AQ7=function(J){this.G=J;J.h0("/client_streamz/bg/po/csc",vc("cs"),g.QZ("mk"))}; MUp=function(J){this.G=J;J.h0("/client_streamz/bg/po/ctav",g.QZ("av"),g.QZ("mk"))}; N5r=function(J){this.G=J;J.h0("/client_streamz/bg/po/cwsc",g.QZ("su"),g.QZ("mk"))}; JZ3=function(J){this.lR=hy(J)}; KRr=function(J,K){return YQV(J,K,VO3)}; $u=function(J){this.lR=hy(J)}; St=function(J){this.lR=hy(J)}; rJ=function(J){this.lR=hy(J)}; sW=function(J){this.lR=hy(J)}; nTd=function(J){this.lR=hy(J)}; g.lrH=function(J){var K=new sW;K=Ay(K,1,J.Z);var n=oTV(J);K=YQV(K,n,uQq);n=[];for(var X=[],l=g.z(J.G.keys()),x=l.next();!x.done;x=l.next())X.push(x.value.split(","));for(l=0;l>>31)&4294967295;C=l[0];var R=l[1],w=l[2],P=l[3],B=l[4];for(H=0;H<80;H++){if(H<40)if(H<20){var p=P^R&(w^P);var k=1518500249}else p=R^w^P,k=1859775393;else H<60?(p=R&w|P&(R|w),k=2400959708):(p=R^w^P,k=3395469782);p=((C<<5|C>>>27)&4294967295)+p+B+k+O[H]&4294967295;B=P;P=w;w=(R<<30|R>>>2)&4294967295;R=C;C=p}l[0]=l[0]+C&4294967295;l[1]=l[1]+R&4294967295;l[2]= l[2]+w&4294967295;l[3]=l[3]+P&4294967295;l[4]=l[4]+B&4294967295} function n(C,O){if(typeof C==="string"){C=unescape(encodeURIComponent(C));for(var H=[],R=0,w=C.length;R=56;H--)x[H]=O&255,O>>>=8;K(x);for(H=O=0;H<5;H++)for(var R=24;R>=0;R-=8)C[O++]=l[H]>>R&255;return C} for(var l=[],x=[],V=[],v=[128],Q=1;Q<64;++Q)v[Q]=0;var S,r;J();return{reset:J,update:n,digest:X,K8:function(){for(var C=X(),O="",H=0;H1)));V=V.next)l||(x=V);l&&(n.G==0&&X==1?nNH(n,K):(x?(X=x,X.next==n.U&&(n.U=X),X.next=X.next.next):oNp(n),XRk(n,l,3,K)))}J.X=null}else PV(J,3,K)}; dT=function(J,K){J.Z||J.G!=2&&J.G!=3||lGd(J);J.U?J.U.next=K:J.Z=K;J.U=K}; xdq=function(J,K,n,X){var l=ig(null,null,null);l.G=new g.If(function(x,V){l.X=K?function(v){try{var Q=K.call(X,v);x(Q)}catch(S){V(S)}}:x; l.Z=n?function(v){try{var Q=n.call(X,v);Q===void 0&&v instanceof gT?V(v):x(Q)}catch(S){V(S)}}:V}); l.G.X=J;dT(J,l);return l.G}; PV=function(J,K,n){J.G==0&&(J===n&&(K=3,n=new TypeError("Promise cannot resolve to itself")),J.G=1,Mur(n,J.IoA,J.FWW,J)||(J.W=n,J.G=K,J.X=null,lGd(J),K!=3||n instanceof gT||j$F(J,n)))}; Mur=function(J,K,n,X){if(J instanceof g.If)return KtF(J,K,n,X),!0;if(J)try{var l=!!J.$goog_Thenable}catch(V){l=!1}else l=!1;if(l)return J.then(K,n,X),!0;if(g.Kn(J))try{var x=J.then;if(typeof x==="function")return V4p(J,x,K,n,X),!0}catch(V){return n.call(X,V),!0}return!1}; V4p=function(J,K,n,X,l){function x(Q){v||(v=!0,X.call(l,Q))} function V(Q){v||(v=!0,n.call(l,Q))} var v=!1;try{K.call(J,V,x)}catch(Q){x(Q)}}; lGd=function(J){J.N||(J.N=!0,g.wT(J.ou,J))}; oNp=function(J){var K=null;J.Z&&(K=J.Z,J.Z=K.next,K.next=null);J.Z||(J.U=null);return K}; XRk=function(J,K,n,X){if(n==3&&K.Z&&!K.U)for(;J&&J.C;J=J.X)J.C=!1;if(K.G)K.G.X=null,hL3(K,n,X);else try{K.U?K.X.call(K.context):hL3(K,n,X)}catch(l){vNU.call(null,l)}frr(AZ3,K)}; hL3=function(J,K,n){K==2?J.X.call(J.context,n):J.Z&&J.Z.call(J.context,n)}; j$F=function(J,K){J.C=!0;g.wT(function(){J.C&&vNU.call(null,K)})}; gT=function(J){QF.call(this,J)}; g.cV=function(J,K){g.S9.call(this);this.LA=J||1;this.LD=K||g.qp;this.m6=(0,g.XS)(this.kcq,this);this.fM=g.jV()}; g.Y0=function(J,K,n){if(typeof J==="function")n&&(J=(0,g.XS)(J,n));else if(J&&typeof J.handleEvent=="function")J=(0,g.XS)(J.handleEvent,J);else throw Error("Invalid listener argument");return Number(K)>2147483647?-1:g.qp.setTimeout(J,K||0)}; GD=function(J,K){var n=null;return(new g.If(function(X,l){n=g.Y0(function(){X(K)},J); n==-1&&l(Error("Failed to schedule timer."))})).FO(function(X){g.qp.clearTimeout(n); throw X;})}; g.UG=function(J){g.t.call(this);this.W=J;this.U=0;this.X=100;this.C=!1;this.Z=new Map;this.N=new Set;this.flushInterval=3E4;this.G=new g.cV(this.flushInterval);this.G.listen("tick",this.tI,!1,this);g.Z(this,this.G)}; Q$H=function(J){J.G.enabled||J.G.start();J.U++;J.U>=J.X&&J.tI()}; $dH=function(J,K){return J.N.has(K)?void 0:J.Z.get(K)}; SEd=function(J){for(var K=0;K2?J.G.statusText:""}catch(n){K=""}J.U=K+" ["+J.getStatus()+"]";P0U(J)}}finally{af(J)}}}; af=function(J,K){if(J.G){J.N&&(clearTimeout(J.N),J.N=null);var n=J.G;J.G=null;K||J.dispatchEvent("ready");try{n.onreadystatechange=null}catch(X){}}}; EG=function(J){var K=J.getStatus();a:switch(K){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var n=!0;break a;default:n=!1}if(!n){if(K=K===0)J=g.wP(String(J.L))[1]||null,!J&&g.qp.self&&g.qp.self.location&&(J=g.qp.self.location.protocol.slice(0,-1)),K=!BBU.test(J?J.toLowerCase():"");n=K}return n}; g.q7=function(J){return J.G?J.G.readyState:0}; g.bg=function(J){try{return J.G?J.G.responseText:""}catch(K){return""}}; g.AU=function(J){try{if(!J.G)return null;if("response"in J.G)return J.G.response;switch(J.cW){case "":case "text":return J.G.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in J.G)return J.G.mozResponseArrayBuffer}return null}catch(K){return null}}; g.mdd=function(J){var K={};J=(J.G&&g.q7(J)>=2?J.G.getAllResponseHeaders()||"":"").split("\r\n");for(var n=0;n>1,K),w0(J,J.length>>1)]}; hUp=function(J){var K=g.z(Vtp(J,P_));J=K.next().value;K=K.next().value;return J.toString(16)+K.toString(16)}; vuf=function(J,K){var n=Vtp(K);J=new Uint32Array(J.buffer);K=J[0];var X=g.z(n);n=X.next().value;X=X.next().value;for(var l=1;l>>8|V<<24,V+=x|0,V^=v+38293,x=x<<3|x>>>29,x^=V,Q=Q>>>8|Q<<24,Q+=v|0,Q^=S+38293,v=v<<3|v>>>29,v^=Q;x=[x,V];J[l]^=x[0];l+1=n?(globalThis.sessionStorage.removeItem(J),["e"]):["a",new Uint8Array(X.buffer,K+4)]}; IU=function(J,K,n){n=n===void 0?[]:n;this.maxItems=J;this.G=K===void 0?0:K;this.Z=n}; SWq=function(J){var K=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!K)return new IU(J);var n=K.split(",");if(n.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new IU(J);K=n.slice(1);K.length===1&&K[0]===""&&(K=[]);n=Number(n[0]);return isNaN(n)||n<0||n>K.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new IU(J)):new IU(J,n,K)}; r$F=function(J,K){this.logger=K;try{var n=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(X){n=!1}n&&(this.index=SWq(J))}; ssr=function(J,K,n,X,l){var x=J.index?oU(J.logger,function(){return Qsk(J.index,hUp(K),n,X,l)},"W"):"u"; J.logger.jH(x)}; Che=function(J,K,n){var X=g.z(J.index?oU(J.logger,function(){return $FH(hUp(K),n)},"R"):["u"]),l=X.next().value; X=X.next().value;J.logger.qT(l);return X}; RU7=function(J){function K(){n-=X;n-=l;n^=l>>>13;X-=l;X-=n;X^=n<<8;l-=n;l-=X;l^=X>>>13;n-=X;n-=l;n^=l>>>12;X-=l;X-=n;X^=n<<16;l-=n;l-=X;l^=X>>>5;n-=X;n-=l;n^=l>>>3;X-=l;X-=n;X^=n<<10;l-=n;l-=X;l^=X>>>15} J=Ode(J);for(var n=2654435769,X=2654435769,l=314159265,x=J.length,V=x,v=0;V>=12;V-=12,v+=12)n+=iJ(J,v),X+=iJ(J,v+4),l+=iJ(J,v+8),K();l+=x;switch(V){case 11:l+=J[v+10]<<24;case 10:l+=J[v+9]<<16;case 9:l+=J[v+8]<<8;case 8:X+=J[v+7]<<24;case 7:X+=J[v+6]<<16;case 6:X+=J[v+5]<<8;case 5:X+=J[v+4];case 4:n+=J[v+3]<<24;case 3:n+=J[v+2]<<16;case 2:n+=J[v+1]<<8;case 1:n+=J[v+0]}K();return HdF.toString(l)}; Ode=function(J){for(var K=[],n=0;n>7,J.error.code]);X.set(n,4);return X}; g0=function(J,K,n){B_.call(this,J);this.U=K;this.clientState=n;this.G="S";this.Z="q"}; kQ=function(J){return globalThis.TextEncoder?(new TextEncoder).encode(J):g.Nu(J)}; zUq=function(J,K,n){return J instanceof RU?ENF(J,n,K,1):J.IX(n)}; YQ=function(J){g.t.call(this);var K=this;this.X=new g.Sg;this.U=0;this.Z=void 0;this.state=2;this.fE=J.fE;this.Nq=J.Nq;this.SX=Object.assign({},wcr,J.SX||{});this.logger=J.fE.We();var n;this.onError=(n=J.onError)!=null?n:function(){}; this.iE=J.iE||!1;if(PhV(J)){var X=this.fE;this.C=function(){return J$8(X).catch(function(V){V=K.reportError(new X7(K.G?20:32,"TRG:Disposed",V));K.Z=V;var v;(v=K.G)==null||v.dispose();K.G=void 0;K.X.reject(V)})}; KrM(X,function(){return void c_(K)}); X.L===2&&c_(this)}else this.C=J.nfx,c_(this);var l=this.logger.share();l.Ba("o");var x=new KX(l,"o");this.X.promise.then(function(){x.done();l.oz();l.dispose()},function(){return void l.dispose()}); this.addOnDisposeCallback(function(){K.G?(K.G.dispose(),K.G=void 0):K.Z?K.logger.oz():(K.Z=K.reportError(new X7(32,"TNP:Disposed")),K.logger.oz(),K.X.reject(K.Z))}); g.Z(this,this.logger)}; IMH=function(J,K){if(!(K instanceof X7))if(K instanceof tU){var n=Error(K.toString());n.stack=K.stack;K=new X7(11,"EBH:Error",n)}else K=new X7(12,"BSO:Unknown",K);return J.reportError(K)}; c_=function(J){var K,n,X,l,x,V,v,Q,S,r,C,O,H,R,w;return g.G(function(P){switch(P.Z){case 1:K=void 0;J.U++;n=new g.Sg;J.fE instanceof uJ&&J.fE.U.push(n.promise);if(!J.iE){P.EM(2);break}X=new g.Sg;setTimeout(function(){return void X.resolve()}); return g.d(P,X.promise,2);case 2:return l=J.logger.share(),g.e8(P,4,5),J.state=5,x={},V=[],g.d(P,z9(J.fE.snapshot({b$:x,Zx:V}),J.SX.Aov,function(){return Promise.reject(new X7(15,"MDA:Timeout"))}),7); case 7:v=P.G;if(J.o4())throw new X7(J.G?20:32,"MDA:Disposed");Q=V[0];J.state=6;return g.d(P,z9(zUq(J.Nq,l,v),J.SX.Wt,function(){return Promise.reject(new X7(10,"BWB:Timeout"))}),8); case 8:S=P.G;if(J.o4())throw new X7(J.G?20:32,"BWB:Disposed");J.state=7;K=oU(l,function(){var p=idU(J,S,n,Q);p.X.promise.then(function(){return void J.C()}); return p},"i"); case 5:g.LU(P);l.dispose();g.De(P,6);break;case 4:r=g.mk(P);(C=K)==null||C.dispose();if(!J.Z){O=IMH(J,r);n.resolve();var B;if(B=J.fE instanceof uJ&&J.U<2)a:if(r instanceof X7)B=r.code!==32&&r.code!==20&&r.code!==10;else{if(r instanceof tU)switch(r.code){case 2:case 13:case 14:case 4:break;default:B=!1;break a}B=!0}if(B)return H=(1+Math.random()*.25)*(J.G?6E4:1E3),R=setTimeout(function(){return void J.C()},H),J.addOnDisposeCallback(function(){return void clearTimeout(R)}),P.return(); J.Z=O}l.Ri(J.G?13:14);J.X.reject(J.Z);return P.return();case 6:J.state=8,J.U=0,(w=J.G)==null||w.dispose(),J.G=K,J.X.resolve(),g.uF(P)}})}; idU=function(J,K,n,X){var l=We(K,2)*1E3;if(l<=0)throw new X7(31,"TTM:Invalid");if(ay(K,4))return new DK(J.logger,ay(K,4),l);if(!We(K,3))return new T9(J.logger,he(i_(K,1)),l);if(!X)throw new X7(4,"PMD:Undefined");X=X(he(i_(K,1)));if(!(X instanceof Function))throw new X7(16,"APF:Failed");J.N=Math.floor((Date.now()+l)/1E3);J=new LX(J.logger,X,We(K,3),l);J.addOnDisposeCallback(function(){return void n.resolve()}); return J}; BJU=function(J,K){K=K instanceof X7?K:new X7(5,"TVD:error",K);return J.reportError(K)}; DFF=function(J,K,n){try{if(J.o4())throw new X7(21,"BNT:disposed");if(!J.G&&J.Z)throw J.Z;var X,l;return(l=(X=mF3(J,K,n))!=null?X:pc3(J,K,n))!=null?l:Lre(J,K,n)}catch(x){if(!K.oN)throw BJU(J,x);return TJM(J,n,x)}}; mF3=function(J,K,n){var X;return(X=J.G)==null?void 0:pX(X,function(){return G9(J,K)},n,function(l){var x; if(J.G instanceof LX&&((x=K.rJ)==null?0:x.QY))try{var V;(V=J.cache)==null||ssr(V,G9(J,K),l,K.rJ.Rf,J.N-120)}catch(v){J.reportError(new X7(24,"ELX:write",v))}})}; pc3=function(J,K,n){var X;if((X=K.rJ)!=null&&X.Th)try{var l,x=(l=J.cache)==null?void 0:Che(l,G9(J,K),K.rJ.Rf);return x?n?oU(J.logger,function(){return g.Je(x,2)},"a"):x:void 0}catch(V){J.reportError(new X7(23,"RXO:read",V))}}; Lre=function(J,K,n){var X={stack:[],error:void 0,hasError:!1};try{if(!K.PE)throw new X7(29,"SDF:notready");return pX(OUq(X,new g0(J.logger,0,J.state)),function(){return G9(J,K)},n)}catch(l){X.error=l,X.hasError=!0}finally{HU7(X)}}; TJM=function(J,K,n){var X={stack:[],error:void 0,hasError:!1};try{var l=BJU(J,n);return pX(OUq(X,new d0(J.logger,l)),function(){return[]},K)}catch(x){X.error=x,X.hasError=!0}finally{HU7(X)}}; G9=function(J,K){return K.Jl?K.Jl:K.b$?oU(J.logger,function(){return K.Jl=kQ(K.b$)},"c"):[]}; UL=function(){var J=0,K;return function(n){K||(K=new XN);var X=new g0(K,J,1),l=pX(X,function(){return kQ(n)},!0); X.dispose();J++;return l}}; t1=function(J){this.lR=hy(J)}; dFV=function(J,K,n){this.x3=J;this.qY=K;this.metadata=n}; yj=function(J,K){K=K===void 0?{}:K;this.Cp5=J;this.metadata=K;this.status=null}; ZK=function(J,K,n,X,l){this.name=J;this.methodType="unary";this.requestType=K;this.responseType=n;this.G=X;this.Z=l}; fX=function(J){this.lR=hy(J)}; W_=function(J){this.lR=hy(J)}; aU=function(J){this.lR=hy(J)}; FN=function(J,K){this.W=J.Cx5;this.L=K;this.G=J.xhr;this.X=[];this.C=[];this.N=[];this.U=[];this.Z=[];this.W&&kFd(this)}; GFr=function(J,K){var n=new gur;g.Xx(J.G,"complete",function(){if(EG(J.G)){var X=g.bg(J.G);if(K&&J.G.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");X=atob(X)}try{var l=J.L(X)}catch(v){qC(J,EL(new tU(13,"Error when deserializing response data; error: "+v+(", response: "+X)),n));return}X=rzd(J.G.getStatus());bJ(J,A1(J));X==0?c$U(J,l):qC(J,EL(new tU(X,"Xhr succeeded but the status code is not 200"),n))}else{X=g.bg(J.G);l=A1(J);if(X){var x=YWr(J, X);X=x.code;var V=x.details;x=x.metadata}else X=2,V="Rpc failed due to xhr error. uri: "+String(J.G.L)+", error code: "+J.G.Z+", error: "+J.G.getLastError(),x=l;bJ(J,l);qC(J,EL(new tU(X,V,x),n))}})}; kFd=function(J){J.W.uM("data",function(K){if("1"in K){var n=K["1"];try{var X=J.L(n)}catch(l){qC(J,new tU(13,"Error when deserializing response data; error: "+l+(", response: "+n)))}X&&c$U(J,X)}if("2"in K)for(K=YWr(J,K["2"]),n=0;n-1&&J.splice(K,1)}; c$U=function(J,K){for(var n=0;n>4&15).toString(16)+(J&15).toString(16)}; Wrq=function(J){return J.replace(/%25([0-9a-fA-F]{2})/g,"%$1")}; hT=function(J,K){this.Z=this.G=null;this.X=J||null;this.U=!!K}; SX=function(J){J.G||(J.G=new Map,J.Z=0,J.X&&BH(J.X,function(K,n){J.add(sQ(K),n)}))}; aM8=function(J,K){SX(J);K=r4(J,K);return J.G.has(K)}; g.Frf=function(J,K,n){J.remove(K);n.length>0&&(J.X=null,J.G.set(r4(J,K),g.zO(n)),J.Z=J.Z+n.length)}; r4=function(J,K){K=String(K);J.U&&(K=K.toLowerCase());return K}; y$V=function(J,K){K&&!J.U&&(SX(J),J.X=null,J.G.forEach(function(n,X){var l=X.toLowerCase();X!=l&&(this.remove(X),g.Frf(this,l,n))},J)); J.U=K}; g.qW8=function(J){var K="";g.tj(J,function(n,X){K+=X;K+=":";K+=n;K+="\r\n"}); return K}; g.sX=function(J,K,n){if(g.Mz(n))return J;n=g.qW8(n);if(typeof J==="string")return D2(J,g.rs(K),n);g.Q1(J,K,n);return J}; g.Cm=function(J){g.t.call(this);this.Z=J;this.G={}}; EuU=function(J,K,n,X,l,x){if(Array.isArray(n))for(var V=0;V=0)return!0;try{var K=new g.o0(J)}catch(n){return g.ru(Qfe,function(X){return J.search(X)>0})!=null}return K.N.match($7p)?!0:g.ru(Qfe,function(n){return J.match(n)!=null})!=null}; g.T1=function(J,K){return J.replace(rUF,function(n,X){try{var l=g.Nz(K,X);if(l==null||l.toString()==null)return n;l=l.toString();if(l==""||!g.O7(g.HK(l)))return encodeURIComponent(l).replace(/%2C/g,",")}catch(x){}return n})}; Ds=function(J,K){return Object.is(J,K)}; kP=function(J){var K=d4;d4=J;return K}; sfH=function(J){if(J.JM!==void 0){var K=g4;g4=!0;try{for(var n=g.z(J.JM),X=n.next();!X.done;X=n.next()){var l=X.value;l.H$||(J=void 0,l.H$=!0,sfH(l),(J=l.rj)==null||J.call(l,l))}}finally{g4=K}}}; CgU=function(){var J;return((J=d4)==null?void 0:J.nR)!==!1}; Oep=function(J){J&&(J.sJ=0);return kP(J)}; He8=function(J,K){kP(K);if(J&&J.rG!==void 0&&J.w_!==void 0&&J.F_!==void 0){if(cP(J))for(K=J.sJ;KJ.sJ;)J.rG.pop(),J.F_.pop(),J.w_.pop()}}; uxr=function(J,K,n){R4p(J);if(J.JM.length===0&&J.rG!==void 0)for(var X=0;X0}; e4d=function(J){J.rG!=null||(J.rG=[]);J.w_!=null||(J.w_=[]);J.F_!=null||(J.F_=[])}; R4p=function(J){J.JM!=null||(J.JM=[]);J.qh!=null||(J.qh=[])}; wV3=function(J){function K(){if(g4)throw Error("");if(d4!==null){var X=d4.sJ++;e4d(d4);X0?" "+K:K))}}; g.Vq=function(J,K){if(J.classList)Array.prototype.forEach.call(K,function(l){g.jv(J,l)}); else{var n={};Array.prototype.forEach.call(XL(J),function(l){n[l]=!0}); Array.prototype.forEach.call(K,function(l){n[l]=!0}); K="";for(var X in n)K+=K.length>0?" "+X:X;g.lm(J,K)}}; g.hv=function(J,K){J.classList?J.classList.remove(K):g.xt(J,K)&&g.lm(J,Array.prototype.filter.call(XL(J),function(n){return n!=K}).join(" "))}; g.vM=function(J,K){J.classList?Array.prototype.forEach.call(K,function(n){g.hv(J,n)}):g.lm(J,Array.prototype.filter.call(XL(J),function(n){return!g.O0(K,n)}).join(" "))}; g.Qq=function(J,K,n){n?g.jv(J,K):g.hv(J,K)}; d7F=function(J,K){var n=!g.xt(J,K);g.Qq(J,K,n)}; g.$t=function(){g.S9.call(this);this.G=0;this.endTime=this.startTime=null}; kDp=function(J,K){Array.isArray(K)||(K=[K]);K=K.map(function(n){return typeof n==="string"?n:n.property+" "+n.duration+"s "+n.timing+" "+n.delay+"s"}); g.c7(J,"transition",K.join(","))}; Sv=function(J,K,n,X,l){g.$t.call(this);this.Z=J;this.C=K;this.N=n;this.U=X;this.W=Array.isArray(l)?l:[l]}; g0q=function(J,K,n,X){return new Sv(J,K,{opacity:n},{opacity:X},{property:"opacity",duration:K,timing:"ease-in",delay:0})}; YGH=function(J){J=uS(J);if(J=="")return null;var K=String(J.slice(0,4)).toLowerCase();if(("url("1||J&&J.split(")"),null;if(J.indexOf("(")>0){if(/"|'/.test(J))return null;K=/([\-\w]+)\(/g;for(var n;n=K.exec(J);)if(!(n[1].toLowerCase()in cUM))return null}return J}; rm=function(J,K){J=g.qp[J];return J&&J.prototype?(K=Object.getOwnPropertyDescriptor(J.prototype,K))&&K.get||null:null}; GDM=function(J){var K=g.qp.CSSStyleDeclaration;return K&&K.prototype&&K.prototype[J]||null}; U7k=function(J,K,n,X){if(J)return J.apply(K,X);if(g.sx&&document.documentMode<10){if(!K[n].call)throw Error("IE Clobbering detected");}else if(typeof K[n]!="function")throw Error("Clobbering detected");return K[n].apply(K,X)}; W0e=function(J){if(!J)return"";var K=document.createElement("div").style;t9q(J).forEach(function(n){var X=g.qE&&n in yUM?n:n.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");s7(X,"--")||s7(X,"var")||(n=U7k(Zed,J,J.getPropertyValue?"getPropertyValue":"getAttribute",[n])||"",n=YGH(n),n!=null&&U7k(f8r,K,K.setProperty?"setProperty":"setAttribute",[X,n]))}); return K.cssText||""}; t9q=function(J){g.Jj(J)?J=g.zO(J):(J=g.qz(J),g.RH(J,"cssText"));return J}; g.Ox=function(J){var K,n=K=0,X=!1;J=J.split(a8H);for(var l=0;l.4?-1:1;return(K==0?null:K)==-1?"rtl":"ltr"}; g.ev=function(J){if(J instanceof HM||J instanceof Ra||J instanceof um)return J;if(typeof J.next=="function")return new HM(function(){return J}); if(typeof J[Symbol.iterator]=="function")return new HM(function(){return J[Symbol.iterator]()}); if(typeof J.py=="function")return new HM(function(){return J.py()}); throw Error("Not an iterator or iterable.");}; HM=function(J){this.Z=J}; Ra=function(J){this.Z=J}; um=function(J){HM.call(this,function(){return J}); this.X=J}; za=function(J,K,n,X,l,x,V,v){this.G=J;this.W=K;this.X=n;this.C=X;this.U=l;this.N=x;this.Z=V;this.L=v}; wm=function(J,K){if(K==0)return J.G;if(K==1)return J.Z;var n=pl(J.G,J.X,K),X=pl(J.X,J.U,K);J=pl(J.U,J.Z,K);n=pl(n,X,K);X=pl(X,J,K);return pl(n,X,K)}; be3=function(J,K){var n=(K-J.G)/(J.Z-J.G);if(n<=0)return 0;if(n>=1)return 1;for(var X=0,l=1,x=0,V=0;V<8;V++){x=wm(J,n);var v=(wm(J,n+1E-6)-x)/1E-6;if(Math.abs(x-K)<1E-6)return n;if(Math.abs(v)<1E-6)break;else x1E-6&&V<8;V++)x=0}; g.BM=function(J){g.t.call(this);this.N=1;this.X=[];this.U=0;this.G=[];this.Z={};this.W=!!J}; M9M=function(J,K,n){g.wT(function(){J.apply(K,n)})}; g.mO=function(J){this.G=J}; pj=function(J){this.G=J}; NTU=function(J){this.data=J}; J13=function(J){return J===void 0||J instanceof NTU?J:new NTU(J)}; Lj=function(J){this.G=J}; g.K_H=function(J){var K=J.creation;J=J.expiration;return!!J&&Jg.jV()}; g.Ta=function(J){this.G=J}; nQd=function(){}; DI=function(){}; dm=function(J){this.G=J;this.Z=null}; kt=function(J){if(J.G==null)throw Error("Storage mechanism: Storage unavailable");var K;(oQH?J.isAvailable():(K=J.Z)!=null?K:J.isAvailable())||Mu(Error("Storage mechanism: Storage unavailable"))}; gm=function(){var J=null;try{J=g.qp.localStorage||null}catch(K){}dm.call(this,J)}; X_k=function(){var J=null;try{J=g.qp.sessionStorage||null}catch(K){}dm.call(this,J)}; cM=function(J,K){this.Z=J;this.G=K+"::"}; g.Yt=function(J){var K=new gm;return K.isAvailable()?J?new cM(K,J):K:null}; Ga=function(J,K){this.G=J;this.Z=K}; Ux=function(J){this.G=[];if(J)a:{if(J instanceof Ux){var K=J.t9();J=J.U6();if(this.G.length<=0){for(var n=this.G,X=0;X>>6:(x<65536?v[n++]=224|x>>>12:(v[n++]=240|x>>>18,v[n++]=128|x>>>12&63),v[n++]=128|x>>> 6&63),v[n++]=128|x&63);return v}; fj=function(J){for(var K=J.length;--K>=0;)J[K]=0}; WM=function(J,K,n,X,l){this.lT=J;this.Ht=K;this.C5=n;this.Xz=X;this.Aj5=l;this.GE=J&&J.length}; aa=function(J,K){this.e3=J;this.Ov=0;this.Gt=K}; FL=function(J,K){J.bY[J.pending++]=K&255;J.bY[J.pending++]=K>>>8&255}; qy=function(J,K,n){J.Bh>16-n?(J.cH|=K<>16-J.Bh,J.Bh+=n-16):(J.cH|=K<>>=1,n<<=1;while(--K>0);return n>>>1}; h9H=function(J,K,n){var X=Array(16),l=0,x;for(x=1;x<=15;x++)X[x]=l=l+n[x-1]<<1;for(n=0;n<=K;n++)l=J[n*2+1],l!==0&&(J[n*2]=Vgp(X[l]++,l))}; vQr=function(J){var K;for(K=0;K<286;K++)J.xk[K*2]=0;for(K=0;K<30;K++)J.Po[K*2]=0;for(K=0;K<19;K++)J.fA[K*2]=0;J.xk[512]=1;J.MD=J.ZM=0;J.Cy=J.matches=0}; QU3=function(J){J.Bh>8?FL(J,J.cH):J.Bh>0&&(J.bY[J.pending++]=J.cH);J.cH=0;J.Bh=0}; $C7=function(J,K,n){QU3(J);FL(J,n);FL(J,~n);ZI.pC(J.bY,J.window,K,n,J.pending);J.pending+=n}; SLV=function(J,K,n,X){var l=K*2,x=n*2;return J[l]>>7)];Ex(J,V,n);v=K5[V];v!==0&&(l-=n5[V],qy(J,l,v))}}while(X>1;V>=1;V--)bm(J,n,V);Q=x;do V=J.Jo[1],J.Jo[1]=J.Jo[J.Ft--],bm(J,n,1),X=J.Jo[1],J.Jo[--J.Zs]=V,J.Jo[--J.Zs]=X,n[Q*2]=n[V*2]+n[X*2],J.depth[Q]=(J.depth[V]>=J.depth[X]?J.depth[V]:J.depth[X])+1,n[V*2+1]=n[X*2+1]=Q,J.Jo[1]=Q++,bm(J,n,1);while(J.Ft>= 2);J.Jo[--J.Zs]=J.Jo[1];V=K.e3;Q=K.Ov;X=K.Gt.lT;l=K.Gt.GE;x=K.Gt.Ht;var S=K.Gt.C5,r=K.Gt.Aj5,C,O=0;for(C=0;C<=15;C++)J.P$[C]=0;V[J.Jo[J.Zs]*2+1]=0;for(K=J.Zs+1;K<573;K++){var H=J.Jo[K];C=V[V[H*2+1]*2+1]+1;C>r&&(C=r,O++);V[H*2+1]=C;if(!(H>Q)){J.P$[C]++;var R=0;H>=S&&(R=x[H-S]);var w=V[H*2];J.MD+=w*(C+R);l&&(J.ZM+=w*(X[H*2+1]+R))}}if(O!==0){do{for(C=r-1;J.P$[C]===0;)C--;J.P$[C]--;J.P$[C+1]+=2;J.P$[r]--;O-=2}while(O>0);for(C=r;C!==0;C--)for(H=J.P$[C];H!==0;)X=J.Jo[--K],X>Q||(V[X*2+1]!==C&&(J.MD+=(C- V[X*2+1])*V[X*2],V[X*2+1]=C),H--)}h9H(n,v,J.P$)}; sUk=function(J,K,n){var X,l=-1,x=K[1],V=0,v=7,Q=4;x===0&&(v=138,Q=3);K[(n+1)*2+1]=65535;for(X=0;X<=n;X++){var S=x;x=K[(X+1)*2+1];++V>>=1)if(K&1&&J.xk[n*2]!==0)return 0;if(J.xk[18]!==0||J.xk[20]!==0||J.xk[26]!==0)return 1;for(n=32;n<256;n++)if(J.xk[n*2]!==0)return 1;return 0}; Xc=function(J,K,n){J.bY[J.Eq+J.Cy*2]=K>>>8&255;J.bY[J.Eq+J.Cy*2+1]=K&255;J.bY[J.BI+J.Cy]=n&255;J.Cy++;K===0?J.xk[n*2]++:(J.matches++,K--,J.xk[(Av[n]+256+1)*2]++,J.Po[(K<256?Jc[K]:Jc[256+(K>>>7)])*2]++);return J.Cy===J.K1-1}; xx=function(J,K){J.msg=lk[K];return K}; jj=function(J){for(var K=J.length;--K>=0;)J[K]=0}; V2=function(J){var K=J.state,n=K.pending;n>J.gE&&(n=J.gE);n!==0&&(ZI.pC(J.output,K.bY,K.yH,n,J.G_),J.G_+=n,K.yH+=n,J.fP+=n,J.gE-=n,K.pending-=n,K.pending===0&&(K.yH=0))}; Q2=function(J,K){var n=J.r3>=0?J.r3:-1,X=J.uR-J.r3,l=0;if(J.level>0){J.JB.bv===2&&(J.JB.bv=OXH(J));o2(J,J.uK);o2(J,J.yN);sUk(J,J.xk,J.uK.Ov);sUk(J,J.Po,J.yN.Ov);o2(J,J.YU);for(l=18;l>=3&&J.fA[HXH[l]*2+1]===0;l--);J.MD+=3*(l+1)+5+5+4;var x=J.MD+3+7>>>3;var V=J.ZM+3+7>>>3;V<=x&&(x=V)}else x=V=X+5;if(X+4<=x&&n!==-1)qy(J,K?1:0,3),$C7(J,n,X);else if(J.strategy===4||V===x)qy(J,2+(K?1:0),3),r13(J,hc,vU);else{qy(J,4+(K?1:0),3);n=J.uK.Ov+1;X=J.yN.Ov+1;l+=1;qy(J,n-257,5);qy(J,X-1,5);qy(J,l-4,4);for(x=0;x>>8&255;J.bY[J.pending++]=K&255}; R9U=function(J,K){var n=J.AO,X=J.uR,l=J.yf,x=J.tO,V=J.uR>J.xT-262?J.uR-(J.xT-262):0,v=J.window,Q=J.Er,S=J.TQ,r=J.uR+258,C=v[X+l-1],O=v[X+l];J.yf>=J.aV&&(n>>=2);x>J.yw&&(x=J.yw);do{var H=K;if(v[H+l]===O&&v[H+l-1]===C&&v[H]===v[X]&&v[++H]===v[X+1]){X+=2;for(H++;v[++X]===v[++H]&&v[++X]===v[++H]&&v[++X]===v[++H]&&v[++X]===v[++H]&&v[++X]===v[++H]&&v[++X]===v[++H]&&v[++X]===v[++H]&&v[++X]===v[++H]&&Xl){J.YG=K;l=H;if(H>=x)break;C=v[X+l-1];O=v[X+l]}}}while((K=S[K&Q])>V&&--n!== 0);return l<=J.yw?l:J.yw}; Ot=function(J){var K=J.xT,n;do{var X=J.xj-J.yw-J.uR;if(J.uR>=K+(K-262)){ZI.pC(J.window,J.window,K,K,0);J.YG-=K;J.uR-=K;J.r3-=K;var l=n=J.IW;do{var x=J.head[--l];J.head[l]=x>=K?x-K:0}while(--n);l=n=K;do x=J.TQ[--l],J.TQ[l]=x>=K?x-K:0;while(--n);X+=K}if(J.JB.EY===0)break;l=J.JB;n=J.window;x=J.uR+J.yw;var V=l.EY;V>X&&(V=X);V===0?n=0:(l.EY-=V,ZI.pC(n,l.input,l.VV,V,x),l.state.wrap===1?l.hB=rW(l.hB,n,V,x):l.state.wrap===2&&(l.hB=C5(l.hB,n,V,x)),l.VV+=V,l.JU+=V,n=V);J.yw+=n;if(J.yw+J.aH>=3)for(X=J.uR-J.aH, J.VA=J.window[X],J.VA=(J.VA<=3&&(J.VA=(J.VA<=3)if(n=Xc(J,J.uR-J.YG,J.Gn-3),J.yw-=J.Gn,J.Gn<=J.fT&&J.yw>=3){J.Gn--;do J.uR++,J.VA=(J.VA<=3&&(J.VA=(J.VA<4096)&&(J.Gn=2));if(J.yf>=3&&J.Gn<=J.yf){X=J.uR+J.yw-3;n=Xc(J,J.uR-1-J.SW,J.yf-3);J.yw-=J.yf-1;J.yf-=2;do++J.uR<=X&&(J.VA=(J.VA<=3&&J.uR>0&&(X=J.uR-1,n=x[X],n===x[++X]&&n===x[++X]&&n===x[++X])){for(l=J.uR+258;n===x[++X]&&n===x[++X]&&n===x[++X]&&n===x[++X]&&n===x[++X]&&n===x[++X]&&n===x[++X]&&n===x[++X]&&XJ.yw&&(J.Gn=J.yw)}J.Gn>=3?(n=Xc(J,1,J.Gn-3),J.yw-=J.Gn,J.uR+=J.Gn,J.Gn=0):(n=Xc(J,0,J.window[J.uR]),J.yw--,J.uR++);if(n&&(Q2(J,!1),J.JB.gE===0))return 1}J.aH=0;return K=== 4?(Q2(J,!0),J.JB.gE===0?3:4):J.Cy&&(Q2(J,!1),J.JB.gE===0)?1:2}; e9U=function(J,K){for(var n;;){if(J.yw===0&&(Ot(J),J.yw===0)){if(K===0)return 1;break}J.Gn=0;n=Xc(J,0,J.window[J.uR]);J.yw--;J.uR++;if(n&&(Q2(J,!1),J.JB.gE===0))return 1}J.aH=0;return K===4?(Q2(J,!0),J.JB.gE===0?3:4):J.Cy&&(Q2(J,!1),J.JB.gE===0)?1:2}; uk=function(J,K,n,X,l){this.Cb=J;this.xQM=K;this.NQj=n;this.XWG=X;this.func=l}; z9q=function(){this.JB=null;this.status=0;this.bY=null;this.wrap=this.pending=this.yH=this.Wq=0;this.GL=null;this.yv=0;this.method=8;this.T5=-1;this.Er=this.Xe=this.xT=0;this.window=null;this.xj=0;this.head=this.TQ=null;this.tO=this.aV=this.strategy=this.level=this.fT=this.AO=this.yf=this.yw=this.YG=this.uR=this.Nh=this.SW=this.Gn=this.r3=this.I8=this.s7=this.LS=this.IW=this.VA=0;this.xk=new ZI.AF(1146);this.Po=new ZI.AF(122);this.fA=new ZI.AF(78);jj(this.xk);jj(this.Po);jj(this.fA);this.YU=this.yN= this.uK=null;this.P$=new ZI.AF(16);this.Jo=new ZI.AF(573);jj(this.Jo);this.Zs=this.Ft=0;this.depth=new ZI.AF(573);jj(this.depth);this.Bh=this.cH=this.aH=this.matches=this.ZM=this.MD=this.Eq=this.Cy=this.K1=this.BI=0}; w_f=function(J,K){if(!J||!J.state||K>5||K<0)return J?xx(J,-2):-2;var n=J.state;if(!J.output||!J.input&&J.EY!==0||n.status===666&&K!==4)return xx(J,J.gE===0?-5:-2);n.JB=J;var X=n.T5;n.T5=K;if(n.status===42)if(n.wrap===2)J.hB=0,$x(n,31),$x(n,139),$x(n,8),n.GL?($x(n,(n.GL.text?1:0)+(n.GL.DP?2:0)+(n.GL.extra?4:0)+(n.GL.name?8:0)+(n.GL.comment?16:0)),$x(n,n.GL.time&255),$x(n,n.GL.time>>8&255),$x(n,n.GL.time>>16&255),$x(n,n.GL.time>>24&255),$x(n,n.level===9?2:n.strategy>=2||n.level<2?4:0),$x(n,n.GL.os& 255),n.GL.extra&&n.GL.extra.length&&($x(n,n.GL.extra.length&255),$x(n,n.GL.extra.length>>8&255)),n.GL.DP&&(J.hB=C5(J.hB,n.bY,n.pending,0)),n.yv=0,n.status=69):($x(n,0),$x(n,0),$x(n,0),$x(n,0),$x(n,0),$x(n,n.level===9?2:n.strategy>=2||n.level<2?4:0),$x(n,3),n.status=113);else{var l=8+(n.Xe-8<<4)<<8;l|=(n.strategy>=2||n.level<2?0:n.level<6?1:n.level===6?2:3)<<6;n.uR!==0&&(l|=32);n.status=113;Sj(n,l+(31-l%31));n.uR!==0&&(Sj(n,J.hB>>>16),Sj(n,J.hB&65535));J.hB=1}if(n.status===69)if(n.GL.extra){for(l= n.pending;n.yv<(n.GL.extra.length&65535)&&(n.pending!==n.Wq||(n.GL.DP&&n.pending>l&&(J.hB=C5(J.hB,n.bY,n.pending-l,l)),V2(J),l=n.pending,n.pending!==n.Wq));)$x(n,n.GL.extra[n.yv]&255),n.yv++;n.GL.DP&&n.pending>l&&(J.hB=C5(J.hB,n.bY,n.pending-l,l));n.yv===n.GL.extra.length&&(n.yv=0,n.status=73)}else n.status=73;if(n.status===73)if(n.GL.name){l=n.pending;do{if(n.pending===n.Wq&&(n.GL.DP&&n.pending>l&&(J.hB=C5(J.hB,n.bY,n.pending-l,l)),V2(J),l=n.pending,n.pending===n.Wq)){var x=1;break}x=n.yvl&&(J.hB=C5(J.hB,n.bY,n.pending-l,l));x===0&&(n.yv=0,n.status=91)}else n.status=91;if(n.status===91)if(n.GL.comment){l=n.pending;do{if(n.pending===n.Wq&&(n.GL.DP&&n.pending>l&&(J.hB=C5(J.hB,n.bY,n.pending-l,l)),V2(J),l=n.pending,n.pending===n.Wq)){x=1;break}x=n.yvl&&(J.hB=C5(J.hB,n.bY,n.pending-l,l));x===0&&(n.status=103)}else n.status= 103;n.status===103&&(n.GL.DP?(n.pending+2>n.Wq&&V2(J),n.pending+2<=n.Wq&&($x(n,J.hB&255),$x(n,J.hB>>8&255),J.hB=0,n.status=113)):n.status=113);if(n.pending!==0){if(V2(J),J.gE===0)return n.T5=-1,0}else if(J.EY===0&&(K<<1)-(K>4?9:0)<=(X<<1)-(X>4?9:0)&&K!==4)return xx(J,-5);if(n.status===666&&J.EY!==0)return xx(J,-5);if(J.EY!==0||n.yw!==0||K!==0&&n.status!==666){X=n.strategy===2?e9U(n,K):n.strategy===3?uNM(n,K):ej[n.level].func(n,K);if(X===3||X===4)n.status=666;if(X===1||X===3)return J.gE===0&&(n.T5= -1),0;if(X===2&&(K===1?(qy(n,2,3),Ex(n,256,hc),n.Bh===16?(FL(n,n.cH),n.cH=0,n.Bh=0):n.Bh>=8&&(n.bY[n.pending++]=n.cH&255,n.cH>>=8,n.Bh-=8)):K!==5&&(qy(n,0,3),$C7(n,0,0),K===3&&(jj(n.head),n.yw===0&&(n.uR=0,n.r3=0,n.aH=0))),V2(J),J.gE===0))return n.T5=-1,0}if(K!==4)return 0;if(n.wrap<=0)return 1;n.wrap===2?($x(n,J.hB&255),$x(n,J.hB>>8&255),$x(n,J.hB>>16&255),$x(n,J.hB>>24&255),$x(n,J.JU&255),$x(n,J.JU>>8&255),$x(n,J.JU>>16&255),$x(n,J.JU>>24&255)):(Sj(n,J.hB>>>16),Sj(n,J.hB&65535));V2(J);n.wrap>0&& (n.wrap=-n.wrap);return n.pending!==0?0:1}; zq=function(J){if(!(this instanceof zq))return new zq(J);J=this.options=ZI.assign({level:-1,method:8,chunkSize:16384,c5:15,EFA:8,strategy:0,to:""},J||{});J.raw&&J.c5>0?J.c5=-J.c5:J.HY&&J.c5>0&&J.c5<16&&(J.c5+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.JB=new PJf;this.JB.gE=0;var K=this.JB;var n=J.level,X=J.method,l=J.c5,x=J.EFA,V=J.strategy;if(K){var v=1;n===-1&&(n=6);l<0?(v=0,l=-l):l>15&&(v=2,l-=16);if(x<1||x>9||X!==8||l<8||l>15||n<0||n>9||V<0||V>4)K=xx(K,-2);else{l===8&&(l=9); var Q=new z9q;K.state=Q;Q.JB=K;Q.wrap=v;Q.GL=null;Q.Xe=l;Q.xT=1<>=7;x<30;x++)for(n5[x]=V<<7,l=0;l<1<=S.xT&&(K===0&&(jj(S.head),S.uR=0,S.r3=0,S.aH=0),n=new ZI.Vd(S.xT),ZI.pC(n,x,V-S.xT,S.xT,0),x=n,V=S.xT);n=J.EY;X=J.VV;l=J.input;J.EY=V;J.VV=0;J.input=x;for(Ot(S);S.yw>=3;){x=S.uR;V=S.yw-2;do S.VA=(S.VA<-6&&((((((0,n[48])(n[31],n[69]),n[36])(n[68],n[44]),n[63])(n[60], n[14]),n[53])(n[9],n[38])>>>(0,n[7])(n[30],n[12]),(0,n[41])(n[69],n[12]),(0,n[28])(n[36],n[4]),(0,n[41])(n[76],n[9]),n[28])(n[46],n[66]),n[62])(n[5],n[75]),n[13]>10&&((0,n[24])(n[5]),n[20])(n[64],n[new Date(h[0])/1E3])}catch(X){(0,n[58])(n[24]),(0,n[10])(n[21],n[82]),(0,n[60])((0,n[-111+Math[h[57]](new Date(h[93])/1E3,4)%511])(n[61],n[49],(0,n[73])()),n[3],n[37],n[56],(0,n[71])())}try{(n[13]>-2||(((0,n[20])(n[37],n[12]),n[66])(n[31],n[64]),(0,n[new Date(h[76])/1E3])((0,n[3])(n[61],n[49],(0,n[5])()), n[60],(0,n[60])((0,n[19])(n[new Date(h[44])/1E3]),n[20],n[61],n[39]),n[10],n[52],n[new Date(h[54])/1E3]),(0,n[32])(n[16],n[64]),h[8]))&&((0,n[58])(n[82]),(((0,n[45])(n[new Date(h[24])/1E3],n[65]),n[66])(n[75],n[24]),n[27])(n[43],n[67]),(0,n[14])(n[50],n[43]),n[42])((0,n[68])(n[64],n[31],(0,n[70])()),n[27],n[19],n[76]),n[18]!=-2&&(n[15]!=-2&&(((0,n[24])((0,n[27])(n[59],n[15]),n[75],(0,n[new Date(h[92])/1E3])(n[46],n[56]),n[37],n[19]),(0,n[27])(n[46],n[35]),n[48])(n[80],n[46]),h[59])||(0,n[39])(((0,n[30])(n[9], n[33]),n[44])(n[new Date(h[85])/1E3]),n[52],(0,n[29])(n[9]),n[20],(0,n[new Date(h[25])/1E3])(n[11],n[47]),n[40],n[66])),n[3]!==1&&(n[28]>=-9||(((((0,n[20])(n[3],n[9]),((0,n[68])(n[66]),n[13])(n[47],n[1],(0,n[81])()),(0,n[20])(n[71],n[9]),n[55])(n[66],n[64]),(0,n[29])(n[34]),n[70])((0,n[76])(n[51],n[34]),n[20],n[5],n[66]),n[70])((0,n[70])((0,n[29])(n[34]),n[42],n[35],n[9]),n[new Date(h[32])/1E3],n[4]),h[8]))&&(0,n[82])(((((0,n[55])(n[9],n[77]),n[55])(n[47],n[50]),n[42])(n[6],n[47]),n[13])(n[66],n[1], (0,n[81])()),(0,n[52])((0,n[55])(n[9],n[36]),n[42],(0,n[52])((0,n[30])(n[66],n[56]),n[55],(0,n[42])(n[8],n[74]),n[39],n[53]),n[62],n[9]),n[35],(0,n[7])(n[75],n[52]),n[67],n[9],n[16])}catch(X){(0,n[25])((0,n[25])((0,n[68])(n[33],n[57]),n[58],n[70],n[72]),n[51],n[33],n[14],(0,n[36])())}}catch(X){return h[71]+J}return K[h[55]](h[8])}; g.BU=function(J){this.name=J}; W_r=function(J){this.lR=hy(J)}; mH=function(J){this.lR=hy(J)}; p5=function(J){this.lR=hy(J)}; aK8=function(J){this.lR=hy(J)}; L5=function(J){this.lR=hy(J)}; Tq=function(J){this.lR=hy(J)}; D1=function(J){this.lR=hy(J)}; dW=function(J){this.lR=hy(J)}; kx=function(J){this.lR=hy(J)}; gW=function(J){this.lR=hy(J)}; cU=function(J){this.lR=hy(J)}; Yx=function(J){this.lR=hy(J)}; Gq=function(J){this.lR=hy(J)}; Ut=function(J){this.lR=hy(J)}; tc=function(J){this.lR=hy(J)}; y2=function(J){this.lR=hy(J,500)}; Z1=function(J){this.lR=hy(J)}; f5=function(J){this.lR=hy(J)}; F_8=function(J){this.lR=hy(J)}; qLd=function(){return g.bF("yt.ads.biscotti.lastId_")||""}; EQf=function(J){g.Ed("yt.ads.biscotti.lastId_",J)}; qM=function(){var J=arguments,K=Fc;J.length>1?K[J[0]]=J[1]:J.length===1&&Object.assign(K,J[0])}; g.Et=function(J,K){return J in Fc?Fc[J]:K}; bk=function(J){var K=Fc.EXPERIMENT_FLAGS;return K?K[J]:void 0}; bXU=function(J){Ac.forEach(function(K){return K(J)})}; g.NM=function(J){return J&&window.yterr?function(){try{return J.apply(this,arguments)}catch(K){g.MM(K)}}:J}; g.MM=function(J){var K=g.bF("yt.logging.errors.log");K?K(J,"ERROR",void 0,void 0,void 0,void 0,void 0):(K=g.Et("ERRORS",[]),K.push([J,"ERROR",void 0,void 0,void 0,void 0,void 0]),qM("ERRORS",K));bXU(J)}; J2=function(J,K,n,X,l){var x=g.bF("yt.logging.errors.log");x?x(J,"WARNING",K,n,X,void 0,l):(x=g.Et("ERRORS",[]),x.push([J,"WARNING",K,n,X,void 0,l]),qM("ERRORS",x))}; Ka=function(J,K){K=J.split(K);for(var n={},X=0,l=K.length;X1?J[1]:J[0])):{}}; xA=function(J,K){return JTF(J,K||{},!0)}; jf=function(J,K){return JTF(J,K||{},!1)}; JTF=function(J,K,n){var X=J.split("#",2);J=X[0];X=X.length>1?"#"+X[1]:"";var l=J.split("?",2);J=l[0];l=oe(l[1]||"");for(var x in K)if(n||!g.E0(l,x))l[x]=K[x];return g.Td(J,l)+X}; Va=function(J){if(!K)var K=window.location.href;var n=g.wP(J)[1]||null,X=g.PH(J);n&&X?(J=g.wP(J),K=g.wP(K),J=J[3]==K[3]&&J[1]==K[1]&&J[4]==K[4]):J=X?g.PH(K)===X&&(Number(g.wP(K)[4]||null)||null)===(Number(g.wP(J)[4]||null)||null):!0;return J}; h2=function(J){J||(J=document.location.href);J=g.wP(J)[1]||null;return J!==null&&J==="https"}; va=function(J){J=KvF(J);return J===null?!1:J[0]==="com"&&J[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; nP8=function(J){J=KvF(J);return J===null?!1:J[1]==="google"?!0:J[2]==="google"?J[0]==="au"&&J[1]==="com"?!0:J[0]==="uk"&&J[1]==="co"?!0:!1:!1}; KvF=function(J){J=g.PH(J);return J!==null?J.split(".").reverse():null}; A1e=function(J){return J&&J.match(oPV)?J:sQ(J)}; Sf=function(J){var K=Qa;J=J===void 0?qLd():J;var n=Object,X=n.assign,l=$A(K);var x=K.G;try{var V=x.screenX;var v=x.screenY}catch(B){}try{var Q=x.outerWidth;var S=x.outerHeight}catch(B){}try{var r=x.innerWidth;var C=x.innerHeight}catch(B){}try{var O=x.screenLeft;var H=x.screenTop}catch(B){}try{r=x.innerWidth,C=x.innerHeight}catch(B){}try{var R=x.screen.availWidth;var w=x.screen.availTop}catch(B){}x=[O,H,V,v,R,w,Q,S,r,C];V=XdH(!1,K.G.top);v={};var P=P===void 0?g.qp:P;Q=new Zs;"SVGElement"in P&&"createElementNS"in P.document&&Q.set(0);S=QiH();S["allow-top-navigation-by-user-activation"]&&Q.set(1);S["allow-popups-to-escape-sandbox"]&&Q.set(2);P.crypto&&P.crypto.subtle&&Q.set(3);"TextDecoder"in P&&"TextEncoder"in P&&Q.set(4);P=pVf(Q);K=(v.bc=P,v.bih=V.height,v.biw=V.width,v.brdim=x.join(),v.vis=RF(K.Z),v.wgl=!!Qc.WebGLRenderingContext,v);n=X.call(n,l,K);n.ca_type="image";J&&(n.bid=J);return n}; $A=function(J){var K={};K.dt=XP7;K.flash="0";a:{try{var n=J.G.top.location.href}catch(r){J=2;break a}J=n?n===J.Z.location.href?0:1:2}K=(K.frm=J,K);try{K.u_tz=-(new Date).getTimezoneOffset();var X=X===void 0?Qc:X;try{var l=X.history.length}catch(r){l=0}K.u_his=l;var x;K.u_h=(x=Qc.screen)==null?void 0:x.height;var V;K.u_w=(V=Qc.screen)==null?void 0:V.width;var v;K.u_ah=(v=Qc.screen)==null?void 0:v.availHeight;var Q;K.u_aw=(Q=Qc.screen)==null?void 0:Q.availWidth;var S;K.u_cd=(S=Qc.screen)==null?void 0: S.colorDepth}catch(r){}return K}; x0r=function(){if(!lsU)return null;var J=lsU();return"open"in J?J:null}; g.sj=function(J){switch(rN(J)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; rN=function(J){return J&&"status"in J?J.status:-1}; g.Ca=function(J,K){typeof J==="function"&&(J=g.NM(J));return window.setTimeout(J,K)}; g.Oj=function(J,K){typeof J==="function"&&(J=g.NM(J));return window.setInterval(J,K)}; g.Ha=function(J){window.clearTimeout(J)}; g.Re=function(J){window.clearInterval(J)}; g.ef=function(J){J=u9(J);return typeof J==="string"&&J==="false"?!1:!!J}; g.zr=function(J,K){J=u9(J);return J===void 0&&K!==void 0?K:Number(J||0)}; wN=function(){return g.Et("EXPERIMENTS_TOKEN","")}; u9=function(J){return g.Et("EXPERIMENT_FLAGS",{})[J]}; Pa=function(){for(var J=[],K=g.Et("EXPERIMENTS_FORCED_FLAGS",{}),n=g.z(Object.keys(K)),X=n.next();!X.done;X=n.next())X=X.value,J.push({key:X,value:String(K[X])});n=g.Et("EXPERIMENT_FLAGS",{});X=g.z(Object.keys(n));for(var l=X.next();!l.done;l=X.next())l=l.value,l.startsWith("force_")&&K[l]===void 0&&J.push({key:l,value:String(n[l])});return J}; Ie=function(J,K,n,X,l,x,V,v){function Q(){(S&&"readyState"in S?S.readyState:0)===4&&K&&g.NM(K)(S)} n=n===void 0?"GET":n;X=X===void 0?"":X;v=v===void 0?!1:v;var S=x0r();if(!S)return null;"onloadend"in S?S.addEventListener("loadend",Q,!1):S.onreadystatechange=Q;g.ef("debug_forward_web_query_parameters")&&(J=j0F(J));S.open(n,J,!0);x&&(S.responseType=x);V&&(S.withCredentials=!0);n=n==="POST"&&(window.FormData===void 0||!(X instanceof FormData));if(l=VXH(J,l))for(var r in l)S.setRequestHeader(r,l[r]),"content-type"===r.toLowerCase()&&(n=!1);n&&S.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); if(v&&"setAttributionReporting"in XMLHttpRequest.prototype){J={eventSourceEligible:!0,triggerEligible:!1};try{S.setAttributionReporting(J)}catch(C){J2(C)}}S.send(X);return S}; VXH=function(J,K){K=K===void 0?{}:K;var n=Va(J),X=g.Et("INNERTUBE_CLIENT_NAME"),l=g.ef("web_ajax_ignore_global_headers_if_set"),x;for(x in hzV){var V=g.Et(hzV[x]),v=x==="X-Goog-AuthUser"||x==="X-Goog-PageId";x!=="X-Goog-Visitor-Id"||V||(V=g.Et("VISITOR_DATA"));var Q;if(!(Q=!V)){if(!(Q=n||(g.PH(J)?!1:!0))){Q=J;var S;if(S=g.ef("add_auth_headers_to_remarketing_google_dot_com_ping")&&x==="Authorization"&&(X==="TVHTML5"||X==="TVHTML5_UNPLUGGED"||X==="TVHTML5_SIMPLY")&&nP8(Q))Q=IF(Q)||"",Q=Q.split("/"), Q="/"+(Q.length>1?Q[1]:""),S=Q==="/pagead";Q=S?!0:!1}Q=!Q}Q||l&&K[x]!==void 0||X==="TVHTML5_UNPLUGGED"&&v||(K[x]=V)}"X-Goog-EOM-Visitor-Id"in K&&"X-Goog-Visitor-Id"in K&&delete K["X-Goog-Visitor-Id"];if(n||!g.PH(J))K["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(n||!g.PH(J)){try{var r=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(C){}r&&(K["X-YouTube-Time-Zone"]=r)}document.location.hostname.endsWith("youtubeeducation.com")||!n&&g.PH(J)||(K["X-YouTube-Ad-Signals"]= na(Sf()));return K}; Ba=function(J,K){K.method="POST";K.postParams||(K.postParams={});return g.i9(J,K)}; $0M=function(J,K){if(window.fetch&&K.format!=="XML"){var n={method:K.method||"GET",credentials:"same-origin"};K.headers&&(n.headers=K.headers);K.priority&&(n.priority=K.priority);J=vPV(J,K);var X=Q0k(J,K);X&&(n.body=X);K.withCredentials&&(n.credentials="include");var l=K.context||g.qp,x=!1,V;fetch(J,n).then(function(v){if(!x){x=!0;V&&g.Ha(V);var Q=v.ok,S=function(r){r=r||{};Q?K.onSuccess&&K.onSuccess.call(l,r,v):K.onError&&K.onError.call(l,r,v);K.onFinish&&K.onFinish.call(l,r,v)}; (K.format||"JSON")==="JSON"&&(Q||v.status>=400&&v.status<500)?v.json().then(S,function(){S(null)}):S(null)}}).catch(function(){K.onError&&K.onError.call(l,{},{})}); J=K.timeout||0;K.onFetchTimeout&&J>0&&(V=g.Ca(function(){x||(x=!0,g.Ha(V),K.onFetchTimeout.call(K.context||g.qp))},J))}else g.i9(J,K)}; g.i9=function(J,K){var n=K.format||"JSON";J=vPV(J,K);var X=Q0k(J,K),l=!1,x=SXd(J,function(Q){if(!l){l=!0;v&&g.Ha(v);var S=g.sj(Q),r=null,C=400<=Q.status&&Q.status<500,O=500<=Q.status&&Q.status<600;if(S||C||O)r=rTV(J,n,Q,K.convertToSafeHtml);S&&(S=s03(n,Q,r));r=r||{};C=K.context||g.qp;S?K.onSuccess&&K.onSuccess.call(C,Q,r):K.onError&&K.onError.call(C,Q,r);K.onFinish&&K.onFinish.call(C,Q,r)}},K.method,X,K.headers,K.responseType,K.withCredentials); X=K.timeout||0;if(K.onTimeout&&X>0){var V=K.onTimeout;var v=g.Ca(function(){l||(l=!0,x.abort(),g.Ha(v),V.call(K.context||g.qp,x))},X)}return x}; vPV=function(J,K){K.includeDomain&&(J=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+J);var n=g.Et("XSRF_FIELD_NAME");if(K=K.urlParams)K[n]&&delete K[n],J=xA(J,K);return J}; Q0k=function(J,K){var n=g.Et("XSRF_FIELD_NAME"),X=g.Et("XSRF_TOKEN"),l=K.postBody||"",x=K.postParams,V=g.Et("XSRF_FIELD_NAME"),v;K.headers&&(v=K.headers["Content-Type"]);K.excludeXsrf||g.PH(J)&&!K.withCredentials&&g.PH(J)!==document.location.hostname||K.method!=="POST"||v&&v!=="application/x-www-form-urlencoded"||K.postParams&&K.postParams[V]||(x||(x={}),x[n]=X);(g.ef("ajax_parse_query_data_only_when_filled")&&x&&Object.keys(x).length>0||x)&&typeof l==="string"&&(l=oe(l),g.oi(l,x),l=K.postBodyFormat&& K.postBodyFormat==="JSON"?JSON.stringify(l):g.Lf(l));x=l||x&&!g.Mz(x);!C13&&x&&K.method!=="POST"&&(C13=!0,g.MM(Error("AJAX request with postData should use POST")));return l}; rTV=function(J,K,n,X){var l=null;switch(K){case "JSON":try{var x=n.responseText}catch(V){throw X=Error("Error reading responseText"),X.params=J,J2(X),V;}J=n.getResponseHeader("Content-Type")||"";x&&J.indexOf("json")>=0&&(x.substring(0,5)===")]}'\n"&&(x=x.substring(5)),l=JSON.parse(x));break;case "XML":if(J=(J=n.responseXML)?OmH(J):null)l={},g.Yr(J.getElementsByTagName("*"),function(V){l[V.tagName]=Hmk(V)})}X&&Rzd(l); return l}; Rzd=function(J){if(g.Kn(J))for(var K in J)K==="html_content"||feM(K,"_html")?J[K]=NX(J[K]):Rzd(J[K])}; s03=function(J,K,n){if(K&&K.status===204)return!0;switch(J){case "JSON":return!!n;case "XML":return Number(n&&n.return_code)===0;case "RAW":return!0;default:return!!n}}; OmH=function(J){return J?(J=("responseXML"in J?J.responseXML:J).getElementsByTagName("root"))&&J.length>0?J[0]:null:null}; Hmk=function(J){var K="";g.Yr(J.childNodes,function(n){K+=n.nodeValue}); return K}; j0F=function(J){var K=window.location.search,n=g.PH(J);g.ef("debug_handle_relative_url_for_query_forward_killswitch")||!n&&Va(J)&&(n=document.location.hostname);var X=IF(J);X=(n=n&&(n.endsWith("youtube.com")||n.endsWith("youtube-nocookie.com")))&&X&&X.startsWith("/api/");if(!n||X)return J;var l=oe(K),x={};g.Yr(ud3,function(V){l[V]&&(x[V]=l[V])}); return jf(J,x)}; pa=function(J,K){var n=g.Ku(K),X;return(new g.If(function(l,x){n.onSuccess=function(V){g.sj(V)?l(new ezd(V)):x(new m1("Request failed, status="+rN(V),"net.badstatus",V))}; n.onError=function(V){x(new m1("Unknown request error","net.unknown",V))}; n.onTimeout=function(V){x(new m1("Request timed out","net.timeout",V))}; X=g.i9(J,n)})).FO(function(l){if(l instanceof gT){var x; (x=X)==null||x.abort()}return D8(l)})}; g.La=function(J,K,n,X){function l(v,Q,S){return v.FO(function(r){if(Q<=0||rN(r.xhr)===403)return D8(new m1("Request retried too many times","net.retryexhausted",r.xhr,r));r=Math.pow(2,n-Q+1)*S;var C=V>0?Math.min(V,r):r;return x(S).then(function(){return l(pa(J,K),Q-1,C)})})} function x(v){return new g.If(function(Q){setTimeout(Q,v)})} var V=V===void 0?-1:V;return l(pa(J,K),n-1,X)}; m1=function(J,K,n){QF.call(this,J+", errorCode="+K);this.errorCode=K;this.xhr=n;this.name="PromiseAjaxError"}; ezd=function(J){this.xhr=J}; Tr=function(J){this.G=J===void 0?null:J;this.Z=0;this.X=null}; DC=function(J){var K=new Tr;J=J===void 0?null:J;K.Z=2;K.X=J===void 0?null:J;return K}; dN=function(J){var K=new Tr;J=J===void 0?null:J;K.Z=1;K.X=J===void 0?null:J;return K}; g.ca=function(J,K,n,X,l){kA||gN.set(""+J,K,{QH:n,path:"/",domain:X===void 0?"youtube.com":X,secure:l===void 0?!1:l})}; g.YA=function(J,K){if(!kA)return gN.get(""+J,K)}; g.Gr=function(J,K,n){kA||gN.remove(""+J,K===void 0?"/":K,n===void 0?"youtube.com":n)}; zz7=function(){if(g.ef("embeds_web_enable_cookie_detection_fix")){if(!g.qp.navigator.cookieEnabled)return!1}else if(!gN.isEnabled())return!1;if(!gN.isEmpty())return!0;g.ef("embeds_web_enable_cookie_detection_fix")?gN.set("TESTCOOKIESENABLED","1",{QH:60,edd:"none",secure:!0}):gN.set("TESTCOOKIESENABLED","1",{QH:60});if(gN.get("TESTCOOKIESENABLED")!=="1")return!1;gN.remove("TESTCOOKIESENABLED");return!0}; g.f=function(J,K){if(J)return J[K.name]}; Uj=function(J){var K=g.Et("INNERTUBE_HOST_OVERRIDE");K&&(J=String(K)+String(ic(J)));return J}; wPe=function(J){var K={};g.ef("json_condensed_response")&&(K.prettyPrint="false");return J=jf(J,K)}; t2=function(J,K){var n=n===void 0?{}:n;J={method:K===void 0?"POST":K,mode:Va(J)?"same-origin":"cors",credentials:Va(J)?"same-origin":"include"};K={};for(var X=g.z(Object.keys(n)),l=X.next();!l.done;l=X.next())l=l.value,n[l]&&(K[l]=n[l]);Object.keys(K).length>0&&(J.headers=K);return J}; ya=function(){var J=/Chrome\/(\d+)/.exec(g.Ii());return J?parseFloat(J[1]):NaN}; ZC=function(){var J=/\sCobalt\/(\S+)\s/.exec(g.Ii());if(!J)return NaN;var K=[];J=g.z(J[1].split("."));for(var n=J.next();!n.done;n=J.next())n=parseInt(n.value,10),n>=0&&K.push(n);return parseFloat(K.join("."))}; Wa=function(){return g.fa("android")&&g.fa("chrome")&&!(g.fa("trident/")||g.fa("edge/"))&&!g.fa("cobalt")}; P1F=function(){return g.fa("armv7")||g.fa("aarch64")||g.fa("android")}; g.ae=function(){return g.fa("cobalt")}; F6=function(){return g.fa("cobalt")&&g.fa("appletv")}; qe=function(){return g.fa("(ps3; leanback shell)")||g.fa("ps3")&&g.ae()}; Is3=function(){return g.fa("(ps4; leanback shell)")||g.fa("ps4")&&g.ae()}; g.im3=function(){return g.ae()&&(g.fa("ps4 vr")||g.fa("ps4 pro vr"))}; Ej=function(){var J=/WebKit\/([0-9]+)/.exec(g.Ii());return!!(J&&parseInt(J[1],10)>=600)}; b9=function(){var J=/WebKit\/([0-9]+)/.exec(g.Ii());return!!(J&&parseInt(J[1],10)>=602)}; B48=function(){return g.fa("iemobile")||g.fa("windows phone")&&g.fa("edge")}; Ne=function(){return(A2||Me)&&g.fa("applewebkit")&&!g.fa("version")&&(!g.fa("safari")||g.fa("gsa/"))}; K0=function(){return g.J_&&g.fa("version/")}; n0=function(){return g.fa("smart-tv")&&g.fa("samsung")}; g.fa=function(J){var K=g.Ii();return K?K.toLowerCase().indexOf(J)>=0:!1}; oV=function(){return Q3e()||Ne()||K0()?!0:g.Et("EOM_VISITOR_DATA")?!1:!0}; XK=function(J,K){return K===void 0||K===null?J:K==="1"||K===!0||K===1||K==="True"?!0:!1}; lu=function(J,K,n){for(var X in n)if(n[X]==K)return n[X];return J}; xF=function(J,K){return K===void 0||K===null?J:Number(K)}; jI=function(J,K){return K===void 0||K===null?J:K.toString()}; VT=function(J,K){if(K){if(J==="fullwidth")return Infinity;if(J==="fullheight")return 0}return J&&(K=J.match(m0f))&&(J=Number(K[2]),K=Number(K[1]),!isNaN(J)&&!isNaN(K)&&J>0)?K/J:NaN}; h_=function(J){var K=J.docid||J.video_id||J.videoId||J.id;if(K)return K;K=J.raw_player_response;K||(J=J.player_response)&&(K=JSON.parse(J));return K&&K.videoDetails&&K.videoDetails.videoId||null}; pPV=function(J){return vB(J,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.QT=function(J){return J==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||J==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; vB=function(J,K){K=(K===void 0?0:K)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(K="EMBEDDED_PLAYER_MODE_PFL");var n=J.raw_embedded_player_response;if(!n&&(J=J.embedded_player_response))try{n=JSON.parse(J)}catch(X){return K}return n?lu(K,n.embeddedPlayerMode,Lvf):K}; SI=function(J){QF.call(this,J.message||J.description||J.name);this.isMissing=J instanceof $F;this.isTimeout=J instanceof m1&&J.errorCode=="net.timeout";this.isCanceled=J instanceof gT}; $F=function(){QF.call(this,"Biscotti ID is missing from server")}; T4H=function(){if(g.ef("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!oV())return Error("User has not consented - not fetching biscotti id.");var J=g.Et("PLAYER_VARS",{});if(g.Nz(J,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(pPV(J))return Error("Biscotti id fetching has been disabled for pfl.")}; gPF=function(){var J=T4H();if(J!==void 0)return D8(J);r1||(r1=pa("//googleads.g.doubleclick.net/pagead/id",D03).then(d0M).FO(function(K){return k17(2,K)})); return r1}; d0M=function(J){J=J.xhr.responseText;if(!s7(J,")]}'"))throw new $F;J=JSON.parse(J.substr(4));if((J.type||1)>1)throw new $F;J=J.id;EQf(J);r1=dN(J);cTH(18E5,2);return J}; k17=function(J,K){K=new SI(K);EQf("");r1=DC(K);J>0&&cTH(12E4,J-1);throw K;}; cTH=function(J,K){g.Ca(function(){pa("//googleads.g.doubleclick.net/pagead/id",D03).then(d0M,function(n){return k17(K,n)}).FO(g.S5)},J)}; YXf=function(){try{var J=g.bF("yt.ads.biscotti.getId_");return J?J():gPF()}catch(K){return D8(K)}}; U03=function(J){J&&(J.dataset?J.dataset[G1k()]="true":lzM(J))}; tX8=function(J){return J?J.dataset?J.dataset[G1k()]:J.getAttribute("data-loaded"):null}; G1k=function(){return yTH.loaded||(yTH.loaded="loaded".replace(/\-([a-z])/g,function(J,K){return K.toUpperCase()}))}; Zmq=function(){var J=document;if("visibilityState"in J)return J.visibilityState;var K=s1+"VisibilityState";if(K in J)return J[K]}; C0=function(J,K){var n;Ma(J,function(X){n=K[X];return!!n}); return n}; O1=function(J){if(J.requestFullscreen)J=J.requestFullscreen(void 0);else if(J.webkitRequestFullscreen)J=J.webkitRequestFullscreen();else if(J.mozRequestFullScreen)J=J.mozRequestFullScreen();else if(J.msRequestFullscreen)J=J.msRequestFullscreen();else if(J.webkitEnterFullscreen)J=J.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return J instanceof Promise?J:Promise.resolve()}; uu=function(J){var K;g.HB()?RV()==J&&(K=document):K=J;return K&&(J=C0(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],K))?(K=J.call(K),K instanceof Promise?K:Promise.resolve()):Promise.resolve()}; fsd=function(J){return g.ru(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(K){return"on"+K.toLowerCase()in J})}; Wv3=function(){var J=document;return g.ru(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(K){return"on"+K.toLowerCase()in J})}; g.HB=function(){return!!C0(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; RV=function(J){J=J===void 0?!1:J;var K=C0(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(J)for(;K&&K.shadowRoot;)K=K.shadowRoot.fullscreenElement;return K?K:null}; eI=function(J){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(J=J||window.event){this.event=J;for(var K in J)K in as3||(this[K]=J[K]);this.scale=J.scale;this.rotation=J.rotation;var n=J.target||J.srcElement;n&&n.nodeType==3&&(n=n.parentNode);this.target=n;var X=J.relatedTarget; if(X)try{X=X.nodeName?X:null}catch(l){X=null}else this.type=="mouseover"?X=J.fromElement:this.type=="mouseout"&&(X=J.toElement);this.relatedTarget=X;this.clientX=J.clientX!=void 0?J.clientX:J.pageX;this.clientY=J.clientY!=void 0?J.clientY:J.pageY;this.keyCode=J.keyCode?J.keyCode:J.which;this.charCode=J.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=J.altKey;this.ctrlKey=J.ctrlKey;this.shiftKey=J.shiftKey;this.metaKey=J.metaKey;this.G=J.pageX;this.Z=J.pageY}}catch(l){}}; FvF=function(J){if(document.body&&document.documentElement){var K=document.body.scrollTop+document.documentElement.scrollTop;J.G=J.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);J.Z=J.clientY+K}}; qXk=function(J,K,n,X){X=X===void 0?{}:X;J.addEventListener&&(K!="mouseenter"||"onmouseenter"in document?K!="mouseleave"||"onmouseenter"in document?K=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(K="MozMousePixelScroll"):K="mouseout":K="mouseover");return Aj(zB,function(l){var x=typeof l[4]==="boolean"&&l[4]==!!X,V=g.Kn(l[4])&&g.Kn(X)&&g.JK(l[4],X);return!!l.length&&l[0]==J&&l[1]==K&&l[2]==n&&(x||V)})}; g.w1=function(J,K,n,X){X=X===void 0?{}:X;if(!J||!J.addEventListener&&!J.attachEvent)return"";var l=qXk(J,K,n,X);if(l)return l;l=++EPr.count+"";var x=!(K!="mouseenter"&&K!="mouseleave"||!J.addEventListener||"onmouseenter"in document);var V=x?function(v){v=new eI(v);if(!x_(v.relatedTarget,function(Q){return Q==J},!0))return v.currentTarget=J,v.type=K,n.call(J,v)}:function(v){v=new eI(v); v.currentTarget=J;return n.call(J,v)}; V=g.NM(V);J.addEventListener?(K=="mouseenter"&&x?K="mouseover":K=="mouseleave"&&x?K="mouseout":K=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(K="MozMousePixelScroll"),bmq()||typeof X==="boolean"?J.addEventListener(K,V,X):J.addEventListener(K,V,!!X.capture)):J.attachEvent("on"+K,V);zB[l]=[J,K,n,V,X];return l}; MXk=function(J){return AT3(J,function(K){return g.xt(K,"ytp-ad-has-logging-urls")})}; AT3=function(J,K){var n=document.body||document;return g.w1(n,"click",function(X){var l=x_(X.target,function(x){return x===n||K(x)},!0); l&&l!==n&&!l.disabled&&(X.currentTarget=l,J.call(l,X))})}; g.PB=function(J){J&&(typeof J=="string"&&(J=[J]),g.Yr(J,function(K){if(K in zB){var n=zB[K],X=n[0],l=n[1],x=n[3];n=n[4];X.removeEventListener?bmq()||typeof n==="boolean"?X.removeEventListener(l,x,n):X.removeEventListener(l,x,!!n.capture):X.detachEvent&&X.detachEvent("on"+l,x);delete zB[K]}}))}; IV=function(J){for(var K in zB)zB[K][0]==J&&g.PB(K)}; iu=function(J){J=J||window.event;var K;J.composedPath&&typeof J.composedPath==="function"?K=J.composedPath():K=J.path;K&&K.length?J=K[0]:(J=J||window.event,J=J.target||J.srcElement,J.nodeType==3&&(J=J.parentNode));return J}; BB=function(J){this.W=J;this.G=null;this.U=0;this.N=null;this.C=0;this.Z=[];for(J=0;J<4;J++)this.Z.push(0);this.X=0;this.QG=g.w1(window,"mousemove",(0,g.XS)(this.K,this));this.L=g.Oj((0,g.XS)(this.GA,this),25)}; mG=function(J){g.t.call(this);this.W=[];this.Gi=J||this}; p0=function(J,K,n,X){for(var l=0;l0?n:0;n=X?Date.now()+X*1E3:0;if((X=X?(0,g.D0)():d1())&&window.JSON){typeof K!=="string"&&(K=JSON.stringify(K,void 0));try{X.set(J,K,n)}catch(l){X.remove(J)}}}; g.g1=function(J){var K=d1(),n=(0,g.D0)();if(!K&&!n||!window.JSON)return null;try{var X=K.get(J)}catch(l){}if(typeof X!=="string")try{X=n.get(J)}catch(l){}if(typeof X!=="string")return null;try{X=JSON.parse(X,void 0)}catch(l){}return X}; KO3=function(){var J=(0,g.D0)();if(J&&(J=J.Z("yt-player-quality")))return J.creation}; g.cB=function(J){try{var K=d1(),n=(0,g.D0)();K&&K.remove(J);n&&n.remove(J)}catch(X){}}; g.YF=function(){return g.g1("yt-remote-session-screen-id")}; ntH=function(J){var K=this;this.Z=void 0;this.G=!1;J.addEventListener("beforeinstallprompt",function(n){n.preventDefault();K.Z=n}); J.addEventListener("appinstalled",function(){K.G=!0},{once:!0})}; GB=function(){if(!g.qp.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.qp.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.qp.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.qp.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.qp.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(J){return"WEB_DISPLAY_MODE_UNKNOWN"}}; U1=function(){this.xV=!0}; otU=function(){U1.instance||(U1.instance=new U1);return U1.instance}; XM7=function(J){switch(J){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}}; lIM=function(){this.G=g.Et("ALT_PREF_COOKIE_NAME","PREF");this.Z=g.Et("ALT_PREF_COOKIE_DOMAIN","youtube.com");var J=g.YA(this.G);J&&this.parse(J)}; g.yT=function(){t_||(t_=new lIM);return t_}; g.Z0=function(J,K){return!!((xyr("f"+(Math.floor(K/31)+1))||0)&1<0;)switch(J=QO.shift(),J.type){case "ERROR":jk.Ri(J.payload);break;case "EVENT":jk.logEvent(J.eventType,J.payload)}}; Sk=function(J){$d||(jk?jk.Ri(J):(QO.push({type:"ERROR",payload:J}),QO.length>10&&QO.shift()))}; r2=function(J,K){$d||(jk?jk.logEvent(J,K):(QO.push({type:"EVENT",eventType:J,payload:K}),QO.length>10&&QO.shift()))}; s6=function(J){if(J.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; C6=function(J){return J.substr(0,J.indexOf(":"))||J}; g.O6=function(J,K,n,X,l){K=K===void 0?{}:K;n=n===void 0?rvq[J]:n;X=X===void 0?sa7[J]:X;l=l===void 0?Cmp[J]:l;g.qt.call(this,n,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:J},K));this.type=J;this.message=n;this.level=X;this.G=l;Object.setPrototypeOf(this,g.O6.prototype)}; HJ=function(J,K){g.O6.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:K,foundObjectStores:J},rvq.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,HJ.prototype)}; RB=function(J,K){var n=Error.call(this);this.message=n.message;"stack"in n&&(this.stack=n.stack);this.index=J;this.objectStore=K;Object.setPrototypeOf(this,RB.prototype)}; ek=function(J,K,n,X){K=C6(K);var l=J instanceof Error?J:Error("Unexpected error: "+J);if(l instanceof g.O6)return l;J={objectStoreNames:n,dbName:K,dbVersion:X};if(l.name==="QuotaExceededError")return new g.O6("QUOTA_EXCEEDED",J);if(g.ut&&l.name==="UnknownError")return new g.O6("QUOTA_MAYBE_EXCEEDED",J);if(l instanceof RB)return new g.O6("MISSING_INDEX",Object.assign({},J,{objectStore:l.objectStore,index:l.index}));if(l.name==="InvalidStateError"&&Oj7.some(function(x){return l.message.includes(x)}))return new g.O6("EXECUTE_TRANSACTION_ON_CLOSED_DB", J); if(l.name==="AbortError")return new g.O6("UNKNOWN_ABORT",J,l.message);l.args=[Object.assign({},J,{name:"IdbError",B0:l.name})];l.level="WARNING";return l}; g.zp=function(J,K,n){var X=xd();return new g.O6("IDB_NOT_SUPPORTED",{context:{caller:J,publicName:K,version:n,hasSucceededOnce:X==null?void 0:X.hasSucceededOnce}})}; Hj7=function(J){if(!J)throw Error();throw J;}; Rhf=function(J){return J}; w2=function(J){this.G=J}; g.PJ=function(J){function K(l){if(X.state.status==="PENDING"){X.state={status:"REJECTED",reason:l};l=g.z(X.Z);for(var x=l.next();!x.done;x=l.next())x=x.value,x()}} function n(l){if(X.state.status==="PENDING"){X.state={status:"FULFILLED",value:l};l=g.z(X.G);for(var x=l.next();!x.done;x=l.next())x=x.value,x()}} var X=this;this.state={status:"PENDING"};this.G=[];this.Z=[];J=J.G;try{J(n,K)}catch(l){K(l)}}; uLH=function(J,K,n,X,l){try{if(J.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var x=n(J.state.value);x instanceof g.PJ?IB(J,K,x,X,l):X(x)}catch(V){l(V)}}; ehp=function(J,K,n,X,l){try{if(J.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var x=n(J.state.reason);x instanceof g.PJ?IB(J,K,x,X,l):X(x)}catch(V){l(V)}}; IB=function(J,K,n,X,l){K===n?l(new TypeError("Circular promise chain detected.")):n.then(function(x){x instanceof g.PJ?IB(J,K,x,X,l):X(x)},function(x){l(x)})}; zh7=function(J,K,n){function X(){n(J.error);x()} function l(){K(J.result);x()} function x(){try{J.removeEventListener("success",l),J.removeEventListener("error",X)}catch(V){}} J.addEventListener("success",l);J.addEventListener("error",X)}; wMk=function(J){return new Promise(function(K,n){zh7(J,K,n)})}; it=function(J){return new g.PJ(new w2(function(K,n){zh7(J,K,n)}))}; BJ=function(J,K){return new g.PJ(new w2(function(n,X){function l(){var x=J?K(J):null;x?x.then(function(V){J=V;l()},X):n()} l()}))}; Pm8=function(J,K){this.request=J;this.cursor=K}; IIM=function(J){return it(J).then(function(K){return K?new Pm8(J,K):null})}; g.ijr=function(J){J.cursor.continue(void 0);return IIM(J.request)}; BmV=function(J,K){this.G=J;this.options=K;this.transactionCount=0;this.X=Math.round((0,g.a)());this.Z=!1}; g.p6=function(J,K,n){J=J.G.createObjectStore(K,n);return new mA(J)}; L6=function(J,K){J.G.objectStoreNames.contains(K)&&J.G.deleteObjectStore(K)}; g.d2=function(J,K,n){return g.Tp(J,[K],{mode:"readwrite",bR:!0},function(X){return g.DA(X.objectStore(K),n)})}; g.Tp=function(J,K,n,X){var l,x,V,v,Q,S,r,C,O,H,R,w;return g.G(function(P){switch(P.Z){case 1:var B={mode:"readonly",bR:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof n==="string"?B.mode=n:Object.assign(B,n);l=B;J.transactionCount++;x=l.bR?3:1;V=0;case 2:if(v){P.EM(4);break}V++;Q=Math.round((0,g.a)());g.e8(P,5);S=J.G.transaction(K,l.mode);B=new kd(S);B=myf(B,X);return g.d(P,B,7);case 7:return r=P.G,C=Math.round((0,g.a)()),pMF(J,Q,C,V,void 0,K.join(),l),P.return(r);case 5:O=g.mk(P);H=Math.round((0,g.a)()); R=ek(O,J.G.name,K.join(),J.G.version);if((w=R instanceof g.O6&&!R.G)||V>=x)pMF(J,Q,H,V,R,K.join(),l),v=R;P.EM(2);break;case 4:return P.return(Promise.reject(v))}})}; pMF=function(J,K,n,X,l,x,V){K=n-K;l?(l instanceof g.O6&&(l.type==="QUOTA_EXCEEDED"||l.type==="QUOTA_MAYBE_EXCEEDED")&&r2("QUOTA_EXCEEDED",{dbName:C6(J.G.name),objectStoreNames:x,transactionCount:J.transactionCount,transactionMode:V.mode}),l instanceof g.O6&&l.type==="UNKNOWN_ABORT"&&(n-=J.X,n<0&&n>=2147483648&&(n=0),r2("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:x,transactionDuration:K,transactionCount:J.transactionCount,dbDuration:n}),J.Z=!0),LO8(J,!1,X,x,K,V.tag),Sk(l)):LO8(J,!0,X,x,K, V.tag)}; LO8=function(J,K,n,X,l,x){r2("TRANSACTION_ENDED",{objectStoreNames:X,connectionHasUnknownAbortedTransaction:J.Z,duration:l,isSuccessful:K,tryCount:n,tag:x===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":x})}; mA=function(J){this.G=J}; g.g2=function(J,K,n){J.G.createIndex(K,n,{unique:!1})}; Tm3=function(J,K){return g.cJ(J,{query:K},function(n){return n.delete().then(function(){return g.Yd(n)})}).then(function(){})}; Dy7=function(J,K,n){var X=[];return g.cJ(J,{query:K},function(l){if(!(n!==void 0&&X.length>=n))return X.push(l.getValue()),g.Yd(l)}).then(function(){return X})}; ka7=function(J){return"getAllKeys"in IDBObjectStore.prototype?it(J.G.getAllKeys(void 0,void 0)):dyp(J)}; dyp=function(J){var K=[];return g.gtV(J,{query:void 0},function(n){K.push(n.cursor.primaryKey);return g.ijr(n)}).then(function(){return K})}; g.DA=function(J,K,n){return it(J.G.put(K,n))}; g.cJ=function(J,K,n){J=J.G.openCursor(K.query,K.direction);return Gp(J).then(function(X){return BJ(X,n)})}; g.gtV=function(J,K,n){var X=K.query;K=K.direction;J="openKeyCursor"in IDBObjectStore.prototype?J.G.openKeyCursor(X,K):J.G.openCursor(X,K);return IIM(J).then(function(l){return BJ(l,n)})}; kd=function(J){var K=this;this.G=J;this.X=new Map;this.Z=!1;this.done=new Promise(function(n,X){K.G.addEventListener("complete",function(){n()}); K.G.addEventListener("error",function(l){l.currentTarget===l.target&&X(K.G.error)}); K.G.addEventListener("abort",function(){var l=K.G.error;if(l)X(l);else if(!K.Z){l=g.O6;for(var x=K.G.objectStoreNames,V=[],v=0;v=n))return X.push(l.getValue()),g.Yd(l)}).then(function(){return X})}; g.U6=function(J,K,n){J=J.G.openCursor(K.query===void 0?null:K.query,K.direction===void 0?"next":K.direction);return Gp(J).then(function(X){return BJ(X,n)})}; tL=function(J,K){this.request=J;this.cursor=K}; Gp=function(J){return it(J).then(function(K){return K?new tL(J,K):null})}; g.Yd=function(J){J.cursor.continue(void 0);return Gp(J.request)}; Ga8=function(J,K,n){return new Promise(function(X,l){function x(){O||(O=new BmV(V.result,{closed:C}));return O} var V=K!==void 0?self.indexedDB.open(J,K):self.indexedDB.open(J);var v=n.blocked,Q=n.blocking,S=n.CYj,r=n.upgrade,C=n.closed,O;V.addEventListener("upgradeneeded",function(H){try{if(H.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(V.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");H.dataLoss&&H.dataLoss!=="none"&&r2("IDB_DATA_CORRUPTED",{reason:H.dataLossMessage||"unknown reason",dbName:C6(J)});var R=x(),w=new kd(V.transaction); r&&r(R,function(P){return H.oldVersion=P},w); w.done.catch(function(P){l(P)})}catch(P){l(P)}}); V.addEventListener("success",function(){var H=V.result;Q&&H.addEventListener("versionchange",function(){Q(x())}); H.addEventListener("close",function(){r2("IDB_UNEXPECTEDLY_CLOSED",{dbName:C6(J),dbVersion:H.version});S&&S()}); X(x())}); V.addEventListener("error",function(){l(V.error)}); v&&V.addEventListener("blocked",function(){v()})})}; UyM=function(J,K,n){n=n===void 0?{}:n;return Ga8(J,K,n)}; yO=function(J,K){K=K===void 0?{}:K;var n,X,l,x;return g.G(function(V){if(V.Z==1)return g.e8(V,2),n=self.indexedDB.deleteDatabase(J),X=K,(l=X.blocked)&&n.addEventListener("blocked",function(){l()}),g.d(V,wMk(n),4); if(V.Z!=2)return g.Ir(V,0);x=g.mk(V);throw ek(x,J,"",-1);})}; ZA=function(J,K){this.name=J;this.options=K;this.X=!0;this.C=this.U=0}; tv7=function(J,K){return new g.O6("INCOMPATIBLE_DB_VERSION",{dbName:J.name,oldVersion:J.options.version,newVersion:K})}; g.f6=function(J,K){if(!K)throw g.zp("openWithToken",C6(J.name));return J.open()}; yvk=function(J,K){var n;return g.G(function(X){if(X.Z==1)return g.d(X,g.f6(WJ,K),2);n=X.G;return X.return(g.Tp(n,["databases"],{bR:!0,mode:"readwrite"},function(l){var x=l.objectStore("databases");return x.get(J.actualName).then(function(V){if(V?J.actualName!==V.actualName||J.publicName!==V.publicName||J.userIdentifier!==V.userIdentifier:1)return g.DA(x,J).then(function(){})})}))})}; aB=function(J,K){var n;return g.G(function(X){if(X.Z==1)return J?g.d(X,g.f6(WJ,K),2):X.return();n=X.G;return X.return(n.delete("databases",J))})}; Zjq=function(J,K){var n,X;return g.G(function(l){return l.Z==1?(n=[],g.d(l,g.f6(WJ,K),2)):l.Z!=3?(X=l.G,g.d(l,g.Tp(X,["databases"],{bR:!0,mode:"readonly"},function(x){n.length=0;return g.cJ(x.objectStore("databases"),{},function(V){J(V.getValue())&&n.push(V.getValue());return g.Yd(V)})}),3)):l.return(n)})}; fIU=function(J,K){return Zjq(function(n){return n.publicName===J&&n.userIdentifier!==void 0},K)}; WOf=function(){var J,K,n,X;return g.G(function(l){switch(l.Z){case 1:J=xd();if((K=J)==null?0:K.hasSucceededOnce)return l.return(!0);if(Fz&&Ej()&&!b9()||g.qH)return l.return(!1);try{if(n=self,!(n.indexedDB&&n.IDBIndex&&n.IDBKeyRange&&n.IDBObjectStore))return l.return(!1)}catch(x){return l.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return l.return(!1);g.e8(l,2);X={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.d(l,yvk(X,E6),4);case 4:return g.d(l,aB("yt-idb-test-do-not-use",E6),5);case 5:return l.return(!0);case 2:return g.mk(l),l.return(!1)}})}; aI3=function(){if(bt!==void 0)return bt;$d=!0;return bt=WOf().then(function(J){$d=!1;var K;if((K=lt())!=null&&K.G){var n;K={hasSucceededOnce:((n=xd())==null?void 0:n.hasSucceededOnce)||J};var X;(X=lt())==null||X.set("LAST_RESULT_ENTRY_KEY",K,2592E3,!0)}return J})}; AL=function(){return g.bF("ytglobal.idbToken_")||void 0}; g.MH=function(){var J=AL();return J?Promise.resolve(J):aI3().then(function(K){(K=K?E6:void 0)&&g.Ed("ytglobal.idbToken_",K);return K})}; FOU=function(J){if(!g.bu())throw J=new g.O6("AUTH_INVALID",{dbName:J}),Sk(J),J;var K=g.E1();return{actualName:J+":"+K,publicName:J,userIdentifier:K}}; qxq=function(J,K,n,X){var l,x,V,v,Q,S;return g.G(function(r){switch(r.Z){case 1:return x=(l=Error().stack)!=null?l:"",g.d(r,g.MH(),2);case 2:V=r.G;if(!V)throw v=g.zp("openDbImpl",J,K),g.ef("ytidb_async_stack_killswitch")||(v.stack=v.stack+"\n"+x.substring(x.indexOf("\n")+1)),Sk(v),v;s6(J);Q=n?{actualName:J,publicName:J,userIdentifier:void 0}:FOU(J);g.e8(r,3);return g.d(r,yvk(Q,V),5);case 5:return g.d(r,UyM(Q.actualName,K,X),6);case 6:return r.return(r.G);case 3:return S=g.mk(r),g.e8(r,7),g.d(r,aB(Q.actualName, V),9);case 9:g.Ir(r,8);break;case 7:g.mk(r);case 8:throw S;}})}; EtV=function(J,K,n){n=n===void 0?{}:n;return qxq(J,K,!1,n)}; bj3=function(J,K,n){n=n===void 0?{}:n;return qxq(J,K,!0,n)}; AvV=function(J,K){K=K===void 0?{}:K;var n,X;return g.G(function(l){if(l.Z==1)return g.d(l,g.MH(),2);if(l.Z!=3){n=l.G;if(!n)return l.return();s6(J);X=FOU(J);return g.d(l,yO(X.actualName,K),3)}return g.d(l,aB(X.actualName,n),0)})}; Mvk=function(J,K,n){J=J.map(function(X){return g.G(function(l){return l.Z==1?g.d(l,yO(X.actualName,K),2):g.d(l,aB(X.actualName,n),0)})}); return Promise.all(J).then(function(){})}; NmU=function(J){var K=K===void 0?{}:K;var n,X;return g.G(function(l){if(l.Z==1)return g.d(l,g.MH(),2);if(l.Z!=3){n=l.G;if(!n)return l.return();s6(J);return g.d(l,fIU(J,n),3)}X=l.G;return g.d(l,Mvk(X,K,n),0)})}; JcM=function(J,K){K=K===void 0?{}:K;var n;return g.G(function(X){if(X.Z==1)return g.d(X,g.MH(),2);if(X.Z!=3){n=X.G;if(!n)return X.return();s6(J);return g.d(X,yO(J,K),3)}return g.d(X,aB(J,n),0)})}; NH=function(J,K){ZA.call(this,J,K);this.options=K;s6(J)}; KHk=function(J,K){var n;return function(){n||(n=new NH(J,K));return n}}; g.JE=function(J,K){return KHk(J,K)}; KM=function(J){return g.f6(nxp(),J)}; oxq=function(J,K,n,X){var l,x,V;return g.G(function(v){switch(v.Z){case 1:return l={config:J,hashData:K,timestamp:X!==void 0?X:(0,g.a)()},g.d(v,KM(n),2);case 2:return x=v.G,g.d(v,x.clear("hotConfigStore"),3);case 3:return g.d(v,g.d2(x,"hotConfigStore",l),4);case 4:return V=v.G,v.return(V)}})}; XUk=function(J,K,n,X,l){var x,V,v;return g.G(function(Q){switch(Q.Z){case 1:return x={config:J,hashData:K,configData:n,timestamp:l!==void 0?l:(0,g.a)()},g.d(Q,KM(X),2);case 2:return V=Q.G,g.d(Q,V.clear("coldConfigStore"),3);case 3:return g.d(Q,g.d2(V,"coldConfigStore",x),4);case 4:return v=Q.G,Q.return(v)}})}; l1H=function(J){var K,n;return g.G(function(X){return X.Z==1?g.d(X,KM(J),2):X.Z!=3?(K=X.G,n=void 0,g.d(X,g.Tp(K,["coldConfigStore"],{mode:"readwrite",bR:!0},function(l){return g.U6(l.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(x){n=x.getValue()})}),3)):X.return(n)})}; xM8=function(J){var K,n;return g.G(function(X){return X.Z==1?g.d(X,KM(J),2):X.Z!=3?(K=X.G,n=void 0,g.d(X,g.Tp(K,["hotConfigStore"],{mode:"readwrite",bR:!0},function(l){return g.U6(l.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(x){n=x.getValue()})}),3)):X.return(n)})}; j23=function(){return g.G(function(J){return g.d(J,NmU("ytGcfConfig"),0)})}; nM=function(){g.t.call(this);this.Z=[];this.G=[];var J=g.bF("yt.gcf.config.hotUpdateCallbacks");J?(this.Z=[].concat(g.m(J)),this.G=J):(this.G=[],g.Ed("yt.gcf.config.hotUpdateCallbacks",this.G))}; Vn=function(){var J=this;this.C=!1;this.X=this.U=0;this.N=new nM;this.QU={Wrq:function(){J.C=!0}, H$q:function(){return J.G}, I1j:function(K){oW(J,K)}, Rz:function(K){J.Rz(K)}, a1_:function(K){XH(J,K)}, Ye:function(){return J.coldHashData}, dS:function(){return J.hotHashData}, LQF:function(){return J.Z}, atv:function(){return lP()}, ftW:function(){return xb()}, wad:function(){return g.bF("yt.gcf.config.coldHashData")}, ymQ:function(){return g.bF("yt.gcf.config.hotHashData")}, AyW:function(){VjU(J)}, JtG:function(){J.Rz(void 0);jD(J);delete Vn.instance}, ytq:function(K){J.X=K}, tYj:function(){return J.X}}}; hHk=function(){if(!Vn.instance){var J=new Vn;Vn.instance=J}return Vn.instance}; $MM=function(J){var K;g.G(function(n){if(n.Z==1)return g.ef("start_client_gcf")||g.ef("delete_gcf_config_db")?g.ef("start_client_gcf")?g.d(n,g.MH(),3):n.EM(2):n.return();n.Z!=2&&((K=n.G)&&g.bu()&&!g.ef("delete_gcf_config_db")?(J.C=!0,VjU(J)):(vxF(J),Q27(J)));return g.ef("delete_gcf_config_db")?g.d(n,j23(),0):n.EM(0)})}; hE=function(){var J;return(J=xb())!=null?J:g.Et("RAW_HOT_CONFIG_GROUP")}; Stf=function(J){var K,n,X,l,x,V;return g.G(function(v){switch(v.Z){case 1:if(J.Z)return v.return(xb());if(!J.C)return K=g.zp("getHotConfig IDB not initialized"),J2(K),v.return(Promise.reject(K));n=AL();X=g.Et("TIME_CREATED_MS");if(!n){l=g.zp("getHotConfig token error");J2(l);v.EM(2);break}return g.d(v,xM8(n),3);case 3:if((x=v.G)&&x.timestamp>X)return oW(J,x.config),J.Rz(x.hashData),v.return(xb());case 2:Q27(J);if(!(n&&J.Z&&J.hotHashData)){v.EM(4);break}return g.d(v,oxq(J.Z,J.hotHashData,n,X),4);case 4:return J.Z? v.return(xb()):(V=new g.qt("Config not available in ytConfig"),J2(V),v.return(Promise.reject(V)))}})}; s2d=function(J){var K,n,X,l,x,V;return g.G(function(v){switch(v.Z){case 1:if(J.G)return v.return(lP());if(!J.C)return K=g.zp("getColdConfig IDB not initialized"),J2(K),v.return(Promise.reject(K));n=AL();X=g.Et("TIME_CREATED_MS");if(!n){l=g.zp("getColdConfig");J2(l);v.EM(2);break}return g.d(v,l1H(n),3);case 3:if((x=v.G)&&x.timestamp>X)return XH(J,x.config),rcH(J,x.configData),jD(J,x.hashData),v.return(lP());case 2:vxF(J);if(!(n&&J.G&&J.coldHashData&&J.configData)){v.EM(4);break}return g.d(v,XUk(J.G, J.coldHashData,J.configData,n,X),4);case 4:return J.G?v.return(lP()):(V=new g.qt("Config not available in ytConfig"),J2(V),v.return(Promise.reject(V)))}})}; VjU=function(J){if(!J.Z||!J.G){if(!AL()){var K=g.zp("scheduleGetConfigs");J2(K)}J.U||(J.U=g.y1.VZ(function(){return g.G(function(n){switch(n.Z){case 1:return g.e8(n,2),g.d(n,Stf(J),4);case 4:g.Ir(n,3);break;case 2:g.mk(n);case 3:return g.e8(n,5),g.d(n,s2d(J),7);case 7:g.Ir(n,6);break;case 5:g.mk(n);case 6:J.U&&(J.U=0),g.uF(n)}})},100))}}; CkF=function(J,K,n){var X,l,x;return g.G(function(V){switch(V.Z){case 1:if(!g.ef("start_client_gcf")){V.EM(0);break}n&&oW(J,n);J.Rz(K);X=AL();if(!X){V.EM(3);break}if(n){V.EM(4);break}return g.d(V,xM8(X),5);case 5:l=V.G,n=(x=l)==null?void 0:x.config;case 4:return g.d(V,oxq(n,K,X),3);case 3:if(n)for(var v=n,Q=g.z(J.N.G),S=Q.next();!S.done;S=Q.next())S=S.value,S(v);g.uF(V)}})}; O5U=function(J,K,n){var X,l,x,V;return g.G(function(v){if(v.Z==1){if(!g.ef("start_client_gcf"))return v.EM(0);jD(J,K);return(X=AL())?n?v.EM(4):g.d(v,l1H(X),5):v.EM(0)}v.Z!=4&&(l=v.G,n=(x=l)==null?void 0:x.config);if(!n)return v.EM(0);V=n.configData;return g.d(v,XUk(n,K,V,X),0)})}; H5F=function(){var J=hHk(),K=(0,g.a)()-J.X;if(!(J.X!==0&&K0&&(K.request={internalExperimentFlags:n});ucr(J,void 0,K);eHq(void 0,K);zH7(void 0,K);wUf(J,void 0,K);Pkr(void 0,K);g.ef("start_client_gcf")&&I17(void 0,K);g.Et("DELEGATED_SESSION_ID")&& !g.ef("pageid_as_header_web")&&(K.user={onBehalfOfUser:g.Et("DELEGATED_SESSION_ID")});!g.ef("fill_delegate_context_in_gel_killswitch")&&(J=g.Et("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(K.user=Object.assign({},K.user,{serializedDelegationContext:J}));J=g.Et("INNERTUBE_CONTEXT");var X;if(g.ef("enable_persistent_device_token")&&(J==null?0:(X=J.client)==null?0:X.rolloutToken)){var l;K.client.rolloutToken=J==null?void 0:(l=J.client)==null?void 0:l.rolloutToken}X=Object;l=X.assign;J=K.client; n={};for(var x=g.z(Object.entries(oe(g.Et("DEVICE","")))),V=x.next();!V.done;V=x.next()){var v=g.z(V.value);V=v.next().value;v=v.next().value;V==="cbrand"?n.deviceMake=v:V==="cmodel"?n.deviceModel=v:V==="cbr"?n.browserName=v:V==="cbrver"?n.browserVersion=v:V==="cos"?n.osName=v:V==="cosver"?n.osVersion=v:V==="cplatform"&&(n.platform=v)}K.client=l.call(X,J,n);return K}; ucr=function(J,K,n){J=J.ly;if(J==="WEB"||J==="MWEB"||J===1||J===2)if(K){n=YM(K,p5,96)||new p5;var X=GB();X=Object.keys(i5q).indexOf(X);X=X===-1?null:X;X!==null&&Nr(n,3,X);Uv(K,p5,96,n)}else n&&(n.client.mainAppWebInfo=(X=n.client.mainAppWebInfo)!=null?X:{},n.client.mainAppWebInfo.webDisplayMode=GB())}; eHq=function(J,K){var n=g.bF("yt.embedded_player.embed_url");n&&(J?(K=YM(J,kx,7)||new kx,Ay(K,4,n),Uv(J,kx,7,K)):K&&(K.thirdParty={embedUrl:n}))}; zH7=function(J,K){var n;if(g.ef("web_log_memory_total_kbytes")&&((n=g.qp.navigator)==null?0:n.deviceMemory)){var X;n=(X=g.qp.navigator)==null?void 0:X.deviceMemory;J?Ry(J,95,Wd(n*1E6)):K&&(K.client.memoryTotalKbytes=""+n*1E6)}}; wUf=function(J,K,n){if(J.appInstallData)if(K){var X;n=(X=YM(K,mH,62))!=null?X:new mH;Ay(n,6,J.appInstallData);Uv(K,mH,62,n)}else n&&(n.client.configInfo=n.client.configInfo||{},n.client.configInfo.appInstallData=J.appInstallData)}; Pkr=function(J,K){var n=hhM();n&&(J?Nr(J,61,BWV[n]):K&&(K.client.connectionType=n));g.ef("web_log_effective_connection_type")&&(n=QaF())&&(J?Nr(J,94,mM7[n]):K&&(K.client.effectiveConnectionType=n))}; pUV=function(J,K,n){n=n===void 0?{}:n;var X={};g.Et("EOM_VISITOR_DATA")?X={"X-Goog-EOM-Visitor-Id":g.Et("EOM_VISITOR_DATA")}:X={"X-Goog-Visitor-Id":n.visitorData||g.Et("VISITOR_DATA","")};if(K&&K.includes("www.youtube-nocookie.com"))return X;K=n.ws||g.Et("AUTHORIZATION");K||(J?K="Bearer "+g.bF("gapi.auth.getToken")().access_token:(J=otU().LW($b),g.ef("pageid_as_header_web")||delete J["X-Goog-PageId"],X=Object.assign({},X,J)));K&&(X.Authorization=K);return X}; I17=function(J,K){var n=H5F();if(n){var X=n.coldConfigData,l=n.coldHashData;n=n.hotHashData;if(J){var x;K=(x=YM(J,mH,62))!=null?x:new mH;X=Ay(K,1,X);Ay(X,3,l).Rz(n);Uv(J,mH,62,K)}else K&&(K.client.configInfo=K.client.configInfo||{},X&&(K.client.configInfo.coldConfigData=X),l&&(K.client.configInfo.coldHashData=l),n&&(K.client.configInfo.hotHashData=n))}}; SD=function(J,K){this.version=J;this.args=K}; rg=function(J,K){this.topic=J;this.G=K}; eD=function(J,K){var n=sS();n&&n.publish.call(n,J.toString(),J,K)}; DM3=function(J){var K=LH3,n=sS();if(!n)return 0;var X=n.subscribe(K.toString(),function(l,x){var V=g.bF("ytPubsub2Pubsub2SkipSubKey");V&&V==X||(V=function(){if(zu[X])try{if(x&&K instanceof rg&&K!=l)try{var v=K.G,Q=x;if(!Q.args||!Q.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!v.iD){var S=new v;v.iD=S.version}var r=v.iD}catch(C){}if(!r||Q.version!=r)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{x=Reflect.construct(v, g.zO(Q.args))}catch(C){throw C.message="yt.pubsub2.Data.deserialize(): "+C.message,C;}}catch(C){throw C.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+K.toString()+": "+C.message,C;}J.call(window,x)}catch(C){g.MM(C)}},TWH[K.toString()]?g.n6()?g.y1.VZ(V):g.Ca(V,0):V())}); zu[X]=!0;wg[K.toString()]||(wg[K.toString()]=[]);wg[K.toString()].push(X);return X}; gxU=function(){var J=dMU,K=DM3(function(n){J.apply(void 0,arguments);kqf(K)}); return K}; kqf=function(J){var K=sS();K&&(typeof J==="number"&&(J=[J]),g.Yr(J,function(n){K.unsubscribeByKey(n);delete zu[n]}))}; sS=function(){return g.bF("ytPubsub2Pubsub2Instance")}; PN=function(J,K,n){n=n===void 0?{sampleRate:.1}:n;Math.random()ycH||V=a18&&(kb++,g.ef("abandon_compression_after_N_slow_zips")?dg===g.zr("compression_disable_point")&&kb>FHd&&(LM=!1):LM=!1);qtM(K);X.headers||(X.headers={});X.headers["Content-Encoding"]="gzip";X.postBody=J;X.postParams=void 0;l(n,X)}; Ex7=function(J){var K=K===void 0?!1:K;var n=n===void 0?!1:n;var X=(0,g.a)(),l={startTime:X,ticks:{},infos:{}},x=K?g.bF("yt.logging.gzipForFetch",!1):!0;if(LM&&x){if(!J.body)return J;try{var V=n?J.body:typeof J.body==="string"?J.body:JSON.stringify(J.body);x=V;if(!n&&typeof V==="string"){var v=tj8(V);if(v!=null&&(v>ycH||v=a18)if(kb++,g.ef("abandon_compression_after_N_slow_zips")||g.ef("abandon_compression_after_N_slow_zips_lr")){K=kb/dg;var S=FHd/g.zr("compression_disable_point");dg>0&&dg%g.zr("compression_disable_point")===0&&K>=S&&(LM=!1)}else LM=!1;qtM(l)}}J.headers=Object.assign({},{"Content-Encoding":"gzip"},J.headers||{});J.body=x;return J}catch(r){return J2(r),J}}else return J}; tj8=function(J){try{return(new Blob(J.split(""))).size}catch(K){return J2(K),null}}; qtM=function(J){g.ef("gel_compression_csi_killswitch")||!g.ef("log_gel_compression_latency")&&!g.ef("log_gel_compression_latency_lr")||PN("gel_compression",J,{sampleRate:.1})}; cN=function(J){var K=this;this.bb=this.G=!1;this.potentialEsfErrorCounter=this.Z=0;this.handleError=function(){}; this.G5=function(){}; this.now=Date.now;this.Uq=!1;this.QU={f1d:function(r){K.I2=r}, uPQ:function(){K.Ap()}, iX:function(){K.TK()}, oU:function(r){return g.G(function(C){return g.d(C,K.oU(r),0)})}, xX:function(r,C){return K.xX(r,C)}, rl:function(){K.rl()}}; var n;this.nZ=(n=J.nZ)!=null?n:100;var X;this.qy=(X=J.qy)!=null?X:1;var l;this.ZK=(l=J.ZK)!=null?l:2592E6;var x;this.DB=(x=J.DB)!=null?x:12E4;var V;this.My=(V=J.My)!=null?V:5E3;var v;this.I2=(v=J.I2)!=null?v:void 0;this.Y2=!!J.Y2;var Q;this.RQ=(Q=J.RQ)!=null?Q:.1;var S;this.gi=(S=J.gi)!=null?S:10;J.handleError&&(this.handleError=J.handleError);J.G5&&(this.G5=J.G5);J.Uq&&(this.Uq=J.Uq);J.bb&&(this.bb=J.bb);this.sM=J.sM;this.O2=J.O2;this.fh=J.fh;this.b1=J.b1;this.sendFn=J.sendFn;this.Oe=J.Oe;this.G$= J.G$;gg(this)&&(!this.sM||this.sM("networkless_logging"))&&b5U(this)}; b5U=function(J){gg(J)&&!J.Uq&&(J.G=!0,J.Y2&&Math.random()<=J.RQ&&J.fh.bX(J.I2),J.rl(),J.b1.qx()&&J.Ap(),J.b1.listen(J.Oe,J.Ap.bind(J)),J.b1.listen(J.G$,J.TK.bind(J)))}; NWq=function(J,K){if(!gg(J))throw Error("IndexedDB is not supported: updateRequestHandlers");var n=K.options.onError?K.options.onError:function(){}; K.options.onError=function(l,x){var V,v,Q,S;return g.G(function(r){switch(r.Z){case 1:V=Ac3(x);(v=Mj3(x))&&J.sM&&J.sM("web_enable_error_204")&&J.handleError(Error("Request failed due to compression"),K.url,x);if(!(J.sM&&J.sM("nwl_consider_error_code")&&V||J.sM&&!J.sM("nwl_consider_error_code")&&J.potentialEsfErrorCounter<=J.gi)){r.EM(2);break}if(!J.b1.jQ){r.EM(3);break}return g.d(r,J.b1.jQ(),3);case 3:if(J.b1.qx()){r.EM(2);break}n(l,x);if(!J.sM||!J.sM("nwl_consider_error_code")||((Q=K)==null?void 0: Q.id)===void 0){r.EM(6);break}return g.d(r,J.fh.eq(K.id,J.I2,!1),6);case 6:return r.return();case 2:if(J.sM&&J.sM("nwl_consider_error_code")&&!V&&J.potentialEsfErrorCounter>J.gi)return r.return();J.potentialEsfErrorCounter++;if(((S=K)==null?void 0:S.id)===void 0){r.EM(8);break}return K.sendCount=400&&J<=599?!1:!0}; Mj3=function(J){var K;J=J==null?void 0:(K=J.error)==null?void 0:K.code;return!(J!==400&&J!==415)}; J2d=function(){if(Gu)return Gu();var J={};Gu=g.JE("LogsDatabaseV2",{At:(J.LogsRequestsStore={i$:2},J),shared:!1,upgrade:function(K,n,X){n(2)&&g.p6(K,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});n(3);n(5)&&(X=X.objectStore("LogsRequestsStore"),X.G.indexNames.contains("newRequest")&&X.G.deleteIndex("newRequest"),g.g2(X,"newRequestV2",["status","interface","timestamp"]));n(7)&&L6(K,"sapisid");n(9)&&L6(K,"SWHealthLog")}, version:9});return Gu()}; US=function(J){return g.f6(J2d(),J)}; nAF=function(J,K){var n,X,l,x;return g.G(function(V){if(V.Z==1)return n={startTime:(0,g.a)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.d(V,US(K),2);if(V.Z!=3)return X=V.G,l=Object.assign({},J,{options:JSON.parse(JSON.stringify(J.options)),interface:g.Et("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.d(V,g.d2(X,"LogsRequestsStore",l),3);x=V.G;n.ticks.tc=(0,g.a)();K18(n);return V.return(x)})}; oAU=function(J,K){var n,X,l,x,V,v,Q,S;return g.G(function(r){if(r.Z==1)return n={startTime:(0,g.a)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.d(r,US(K),2);if(r.Z!=3)return X=r.G,l=g.Et("INNERTUBE_CONTEXT_CLIENT_NAME",0),x=[J,l,0],V=[J,l,(0,g.a)()],v=IDBKeyRange.bound(x,V),Q="prev",g.ef("use_fifo_for_networkless")&&(Q="next"),S=void 0,g.d(r,g.Tp(X,["LogsRequestsStore"],{mode:"readwrite",bR:!0},function(C){return g.U6(C.objectStore("LogsRequestsStore").index("newRequestV2"), {query:v,direction:Q},function(O){O.getValue()&&(S=O.getValue(),J==="NEW"&&(S.status="QUEUED",O.update(S)))})}),3); n.ticks.tc=(0,g.a)();K18(n);return r.return(S)})}; Xak=function(J,K){var n;return g.G(function(X){if(X.Z==1)return g.d(X,US(K),2);n=X.G;return X.return(g.Tp(n,["LogsRequestsStore"],{mode:"readwrite",bR:!0},function(l){var x=l.objectStore("LogsRequestsStore");return x.get(J).then(function(V){if(V)return V.status="QUEUED",g.DA(x,V).then(function(){return V})})}))})}; lC8=function(J,K,n,X){n=n===void 0?!0:n;var l;return g.G(function(x){if(x.Z==1)return g.d(x,US(K),2);l=x.G;return x.return(g.Tp(l,["LogsRequestsStore"],{mode:"readwrite",bR:!0},function(V){var v=V.objectStore("LogsRequestsStore");return v.get(J).then(function(Q){return Q?(Q.status="NEW",n&&(Q.sendCount+=1),X!==void 0&&(Q.options.compress=X),g.DA(v,Q).then(function(){return Q})):g.PJ.resolve(void 0)})}))})}; xe3=function(J,K){var n;return g.G(function(X){if(X.Z==1)return g.d(X,US(K),2);n=X.G;return X.return(n.delete("LogsRequestsStore",J))})}; jeF=function(J){var K,n;return g.G(function(X){if(X.Z==1)return g.d(X,US(J),2);K=X.G;n=(0,g.a)()-2592E6;return g.d(X,g.Tp(K,["LogsRequestsStore"],{mode:"readwrite",bR:!0},function(l){return g.cJ(l.objectStore("LogsRequestsStore"),{},function(x){if(x.getValue().timestamp<=n)return x.delete().then(function(){return g.Yd(x)})})}),0)})}; Vf7=function(){g.G(function(J){return g.d(J,NmU("LogsDatabaseV2"),0)})}; K18=function(J){g.ef("nwl_csi_killswitch")||PN("networkless_performance",J,{sampleRate:1})}; vAV=function(J){return g.f6(hqq(),J)}; Qep=function(J){var K,n;g.G(function(X){if(X.Z==1)return g.d(X,vAV(J),2);K=X.G;n=(0,g.a)()-2592E6;return g.d(X,g.Tp(K,["SWHealthLog"],{mode:"readwrite",bR:!0},function(l){return g.cJ(l.objectStore("SWHealthLog"),{},function(x){if(x.getValue().timestamp<=n)return x.delete().then(function(){return g.Yd(x)})})}),0)})}; $e8=function(J){var K;return g.G(function(n){if(n.Z==1)return g.d(n,vAV(J),2);K=n.G;return g.d(n,K.clear("SWHealthLog"),0)})}; g.tE=function(J,K,n,X,l,x,V){l=l===void 0?"":l;x=x===void 0?!1:x;V=V===void 0?!1:V;if(J)if(n&&!g.ae())J2(new g.qt("Legacy referrer-scrubbed ping detected")),J&&Sj8(J,void 0,{scrubReferrer:!0});else if(l)Ie(J,K,"POST",l,X);else if(g.Et("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||X||V)Ie(J,K,"GET","",X,void 0,x,V);else{b:{try{c:{var v=new T5V({url:J});if(Kd(v.G,"dsh")==="1")var Q=null;else{var S=Kd(v.G,"ae");if(S==="1"){var r=Kd(v.G,"adurl");if(r)try{Q={version:3,v4:decodeURIComponent(r),Qu:nd(v.G,"act=1", "ri=1",Da3(v))};break c}catch(H){}}Q=S==="2"?{version:4,v4:nd(v.G,"dct=1","suid="+v.Z,""),Qu:nd(v.G,"act=1","ri=1","suid="+v.Z)}:null}}if(Q){var C=IF(J);var O=!(!C||!C.endsWith("/aclk")||dP(J,"ri")!=="1");break b}}catch(H){}O=!1}O?r2F(J)?(K&&K(),n=!0):n=!1:n=!1;n||Sj8(J,K)}}; r2F=function(J,K){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(J,K===void 0?"":K))return!0}catch(n){}return!1}; Sj8=function(J,K,n){n=n===void 0?{}:n;var X=new Image,l=""+see++;yn[l]=X;X.onload=X.onerror=function(){K&&yn[l]&&K();delete yn[l]}; n.scrubReferrer&&(X.referrerPolicy="no-referrer");X.src=J}; C9F=function(J){var K;return((K=document.featurePolicy)==null?0:K.allowedFeatures().includes("attribution-reporting"))?J+"&nis=6":J+"&nis=5"}; fM=function(){ZY||(ZY=new Xz("yt.offline"));return ZY}; OaU=function(J){if(g.ef("offline_error_handling")){var K=fM().get("errors",!0)||{};K[J.message]={name:J.name,stack:J.stack};J.level&&(K[J.message].level=J.level);fM().set("errors",K,2592E3,!0)}}; WN=function(){this.G=new Map;this.Z=!1}; aW=function(){if(!WN.instance){var J=g.bF("yt.networkRequestMonitor.instance")||new WN;g.Ed("yt.networkRequestMonitor.instance",J);WN.instance=J}return WN.instance}; FH=function(){g.S9.call(this);var J=this;this.Z=!1;this.G=m7r();this.G.listen("networkstatus-online",function(){if(J.Z&&g.ef("offline_error_handling")){var K=fM().get("errors",!0);if(K){for(var n in K)if(K[n]){var X=new g.qt(n,"sent via offline_errors");X.name=K[n].name;X.stack=K[n].stack;X.level=K[n].level;g.MM(X)}fM().set("errors",{},2592E3,!0)}}})}; HaF=function(){if(!FH.instance){var J=g.bF("yt.networkStatusManager.instance")||new FH;g.Ed("yt.networkStatusManager.instance",J);FH.instance=J}return FH.instance}; g.qo=function(J){J=J===void 0?{}:J;g.S9.call(this);var K=this;this.G=this.U=0;this.Z=HaF();var n=g.bF("yt.networkStatusManager.instance.listen").bind(this.Z);n&&(J.rateLimit?(this.rateLimit=J.rateLimit,n("networkstatus-online",function(){RqH(K,"publicytnetworkstatus-online")}),n("networkstatus-offline",function(){RqH(K,"publicytnetworkstatus-offline")})):(n("networkstatus-online",function(){K.dispatchEvent("publicytnetworkstatus-online")}),n("networkstatus-offline",function(){K.dispatchEvent("publicytnetworkstatus-offline")})))}; RqH=function(J,K){J.rateLimit?J.G?(g.y1.QI(J.U),J.U=g.y1.VZ(function(){J.X!==K&&(J.dispatchEvent(K),J.X=K,J.G=(0,g.a)())},J.rateLimit-((0,g.a)()-J.G))):(J.dispatchEvent(K),J.X=K,J.G=(0,g.a)()):J.dispatchEvent(K)}; bP=function(){var J=cN.call;ES||(ES=new g.qo({zUq:!0,D1v:!0}));J.call(cN,this,{fh:{bX:jeF,Py:xe3,qN:oAU,pW5:Xak,eq:lC8,set:nAF},b1:ES,handleError:function(K,n,X){var l,x=X==null?void 0:(l=X.error)==null?void 0:l.code;if(x===400||x===415){var V;K=new g.qt(K.message,n,X==null?void 0:(V=X.error)==null?void 0:V.code);J2(K,void 0,void 0,void 0,!0)}else g.MM(K)}, G5:J2,sendFn:u6k,now:g.a,AY:OaU,O2:g.K6(),Oe:"publicytnetworkstatus-online",G$:"publicytnetworkstatus-offline",Y2:!0,RQ:.1,gi:g.zr("potential_esf_error_limit",10),sM:g.ef,Uq:!(g.bu()&&g.PH(document.location.toString())!=="www.youtube-nocookie.com")});this.X=new g.Sg;g.ef("networkless_immediately_drop_all_requests")&&Vf7();JcM("LogsDatabaseV2")}; AE=function(){var J=g.bF("yt.networklessRequestController.instance");J||(J=new bP,g.Ed("yt.networklessRequestController.instance",J),g.ef("networkless_logging")&&g.MH().then(function(K){J.I2=K;b5U(J);J.X.resolve();J.Y2&&Math.random()<=J.RQ&&J.I2&&Qep(J.I2);g.ef("networkless_immediately_drop_sw_health_store")&&eqe(J)})); return J}; eqe=function(J){var K;g.G(function(n){if(!J.I2)throw K=g.zp("clearSWHealthLogsDb"),K;return n.return($e8(J.I2).catch(function(X){J.handleError(X)}))})}; u6k=function(J,K,n,X){X=X===void 0?!1:X;K=g.ef("web_fp_via_jspb")?Object.assign({},K):K;g.ef("use_cfr_monitor")&&zqd(J,K);if(g.ef("use_request_time_ms_header"))K.headers&&Va(J)&&(K.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.a)())));else{var l;if((l=K.postParams)==null?0:l.requestTimeMs)K.postParams.requestTimeMs=Math.round((0,g.a)())}n&&Object.keys(K).length===0?g.tE(J):K.compress?K.postBody?(typeof K.postBody!=="string"&&(K.postBody=JSON.stringify(K.postBody)),DY(J,K.postBody, K,g.i9,X)):DY(J,JSON.stringify(K.postParams),K,Ba,X):g.i9(J,K)}; Mo=function(J,K){g.ef("use_event_time_ms_header")&&Va(J)&&(K.headers||(K.headers={}),K.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.a)())));return K}; zqd=function(J,K){var n=K.onError?K.onError:function(){}; K.onError=function(l,x){aW().requestComplete(J,!1);n(l,x)}; var X=K.onSuccess?K.onSuccess:function(){}; K.onSuccess=function(l,x){aW().requestComplete(J,!0);X(l,x)}}; g.No=function(J){this.config_=null;J?this.config_=J:RH7()&&(this.config_=g.vN())}; g.Ja=function(J,K,n,X){function l(S){try{if((S===void 0?0:S)&&X.retry&&!X.networklessOptions.bypassNetworkless)x.method="POST",X.networklessOptions.writeThenSend?AE().writeThenSend(Q,x):AE().sendAndWrite(Q,x);else if(X.compress){var r=!X.networklessOptions.writeThenSend;if(x.postBody){var C=x.postBody;typeof C!=="string"&&(C=JSON.stringify(x.postBody));DY(Q,C,x,g.i9,r)}else DY(Q,JSON.stringify(x.postParams),x,Ba,r)}else g.ef("web_all_payloads_via_jspb")?g.i9(Q,x):Ba(Q,x)}catch(O){if(O.name==="InvalidAccessError")J2(Error("An extension is blocking network request.")); else throw O;}} !g.Et("VISITOR_DATA")&&K!=="visitor_id"&&Math.random()<.01&&J2(new g.qt("Missing VISITOR_DATA when sending innertube request.",K,n,X));if(!J.isReady())throw J=new g.qt("innertube xhrclient not ready",K,n,X),g.MM(J),J;var x={headers:X.headers||{},method:"POST",postParams:n,postBody:X.postBody,postBodyFormat:X.postBodyFormat||"JSON",onTimeout:function(){X.onTimeout()}, onFetchTimeout:X.onTimeout,onSuccess:function(S,r){if(X.onSuccess)X.onSuccess(r)}, onFetchSuccess:function(S){if(X.onSuccess)X.onSuccess(S)}, onError:function(S,r){if(X.onError)X.onError(r)}, onFetchError:function(S){if(X.onError)X.onError(S)}, timeout:X.timeout,withCredentials:!0,compress:X.compress};x.headers["Content-Type"]||(x.headers["Content-Type"]="application/json");n="";var V=J.config_.q0;V&&(n=V);V=J.config_.bq||!1;var v=pUV(V,n,X);Object.assign(x.headers,v);x.headers.Authorization&&!n&&V&&(x.headers["x-origin"]=window.location.origin);var Q=xA(""+n+("/youtubei/"+J.config_.innertubeApiVersion+"/"+K),{alt:"json"});g.bF("ytNetworklessLoggingInitializationOptions")&&wak.isNwlInitialized?aI3().then(function(S){l(S)}):l(!1)}; g.lN=function(J,K,n){var X=g.KE();if(X&&K){var l=X.subscribe(J,function(){function x(){nE[l]&&K.apply&&typeof K.apply=="function"&&K.apply(n||window,V)} var V=arguments;try{g.on[J]?x():g.Ca(x,0)}catch(v){g.MM(v)}},n); nE[l]=!0;XP[J]||(XP[J]=[]);XP[J].push(l);return l}return 0}; P98=function(J){var K=g.lN("LOGGED_IN",function(n){J.apply(void 0,arguments);g.x4(K)})}; g.x4=function(J){var K=g.KE();K&&(typeof J==="number"?J=[J]:typeof J==="string"&&(J=[parseInt(J,10)]),g.Yr(J,function(n){K.unsubscribeByKey(n);delete nE[n]}))}; g.jp=function(J,K){var n=g.KE();return n?n.publish.apply(n,arguments):!1}; ia3=function(J){var K=g.KE();if(K)if(K.clear(J),J)ICq(J);else for(var n in XP)ICq(n)}; g.KE=function(){return g.qp.ytPubsubPubsubInstance}; ICq=function(J){XP[J]&&(J=XP[J],g.Yr(J,function(K){nE[K]&&delete nE[K]}),J.length=0)}; g.VR=function(J,K,n){BNM(J,K,n===void 0?null:n)}; BNM=function(J,K,n){n=n===void 0?null:n;var X=me8(J),l=document.getElementById(X),x=l&&tX8(l),V=l&&!x;x?K&&K():(K&&(x=g.lN(X,K),K=""+g.oH(K),paf[K]=x),V||(l=L1M(J,X,function(){tX8(l)||(U03(l),g.jp(X),g.Ca(function(){ia3(X)},0))},n)))}; L1M=function(J,K,n,X){X=X===void 0?null:X;var l=g.ME("SCRIPT");l.id=K;l.onload=function(){n&&setTimeout(n,0)}; l.onreadystatechange=function(){switch(l.readyState){case "loaded":case "complete":l.onload()}}; X&&l.setAttribute("nonce",X);g.Vh(l,g.ik(J));J=document.getElementsByTagName("head")[0]||document.body;J.insertBefore(l,J.firstChild);return l}; me8=function(J){var K=document.createElement("a");g.bS(K,J);J=K.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+RN(J)}; ha=function(J,K){if(J===K)J=!0;else if(Array.isArray(J)&&Array.isArray(K))J=g.kr(J,K,ha);else if(g.Kn(J)&&g.Kn(K))a:if(g.qz(J).length!=g.qz(K).length)J=!1;else{for(var n in J)if(!ha(J[n],K[n])){J=!1;break a}J=!0}else J=!1;return J}; $4=function(J){var K=g.c3.apply(1,arguments);if(!vC(J)||K.some(function(X){return!vC(X)}))throw Error("Only objects may be merged."); K=g.z(K);for(var n=K.next();!n.done;n=K.next())QR(J,n.value)}; QR=function(J,K){for(var n in K)if(vC(K[n])){if(n in J&&!vC(J[n]))throw Error("Cannot merge an object into a non-object.");n in J||(J[n]={});QR(J[n],K[n])}else if(Sp(K[n])){if(n in J&&!Sp(J[n]))throw Error("Cannot merge an array into a non-array.");n in J||(J[n]=[]);TNr(J[n],K[n])}else J[n]=K[n];return J}; TNr=function(J,K){K=g.z(K);for(var n=K.next();!n.done;n=K.next())n=n.value,vC(n)?J.push(QR({},n)):Sp(n)?J.push(TNr([],n)):J.push(n);return J}; vC=function(J){return typeof J==="object"&&!Array.isArray(J)}; Sp=function(J){return typeof J==="object"&&Array.isArray(J)}; HC=function(J){g.t.call(this);this.Z=J}; Rn=function(J){HC.call(this,!0);this.G=J}; uN=function(J,K){g.t.call(this);var n=this;this.X=[];this.W=!1;this.Z=0;this.C=this.N=this.U=!1;this.GA=null;var X=(0,g.XS)(J,K);this.G=new g.AT(function(){return X(n.GA)},300); g.Z(this,this.G);this.K=this.L=Infinity}; DeM=function(J,K){if(!K)return!1;for(var n=0;n-1)throw Error("Deps cycle for: "+K);if(J.Z.has(K))return J.Z.get(K);if(!J.G.has(K)){if(X)return;throw Error("No provider for: "+K);}X=J.G.get(K);n.push(K);if(X.Qq!==void 0)var l=X.Qq;else if(X.dxQ)l=X[D$]?c28(J,X[D$],n):[],l=X.dxQ.apply(X,g.m(l));else if(X.GV){l=X.GV;var x=l[D$]?c28(J,l[D$],n):[];l=new (Function.prototype.bind.apply(l,[null].concat(g.m(x))))}else throw Error("Could not resolve providers for: "+K);n.pop();X.doA||J.Z.set(K,l); return l}; c28=function(J,K,n){return K?K.map(function(X){return X instanceof pE?dV(J,X.key,n,!0):dV(J,X,n)}):[]}; gV=function(){k4||(k4=new gAp);return k4}; Y4=function(){var J,K;return"h5vcc"in cC&&((J=cC.h5vcc.traceEvent)==null?0:J.traceBegin)&&((K=cC.h5vcc.traceEvent)==null?0:K.traceEnd)?1:"performance"in cC&&cC.performance.mark&&cC.performance.measure?2:0}; G0=function(J){var K=Y4();switch(K){case 1:cC.h5vcc.traceEvent.traceBegin("YTLR",J);break;case 2:cC.performance.mark(J+"-start");break;case 0:break;default:AK(K,"unknown trace type")}}; Yj3=function(J){var K=Y4();switch(K){case 1:cC.h5vcc.traceEvent.traceEnd("YTLR",J);break;case 2:K=J+"-start";var n=J+"-end";cC.performance.mark(n);cC.performance.measure(J,K,n);break;case 0:break;default:AK(K,"unknown trace type")}}; Gre=function(J){var K,n;(n=(K=window).onerror)==null||n.call(K,J.message,"",0,0,J)}; UeV=function(J){var K=this;var n=n===void 0?0:n;var X=X===void 0?g.K6():X;this.X=n;this.scheduler=X;this.Z=new g.Sg;this.G=J;for(J={Lr:0};J.Lr=1E3?l():X>=J?h4||(h4=vx(function(){l();h4=void 0},0)):x-v>=10&&(oF3(K,n.tier),V.U=x)}; Mfp=function(J,K){if(J.endpoint==="log_event"){g.ef("more_accurate_gel_parser")&&J4().storePayload({isJspb:!1},J.payload);nZ(J);var n=oZ(J),X=new Map;X.set(n,[J.payload]);var l=EAr(J.payload)||"";K&&(jE=new K);return new g.If(function(x,V){jE&&jE.isReady()?XBd(X,jE,x,V,{bypassNetworkless:!0},!0,l2(l)):x()})}}; KGU=function(J,K,n){if(K.endpoint==="log_event"){nZ(void 0,K);var X=oZ(K,!0),l=new Map;l.set(X,[VI(K.payload)]);n&&(jE=new n);return new g.If(function(x){jE&&jE.isReady()?l0q(l,jE,x,{bypassNetworkless:!0},!0,l2(J)):x()})}}; oZ=function(J,K){var n="";if(J.dangerousLogToVisitorSession)n="visitorOnlyApprovedKey";else if(J.cttAuthInfo){if(K===void 0?0:K){K=J.cttAuthInfo.token;n=J.cttAuthInfo;var X=new f5;n.videoId?X.setVideoId(n.videoId):n.playlistId&&Dn(X,2,QQ,qY(n.playlistId));$o[K]=X}else K=J.cttAuthInfo,n={},K.videoId?n.videoId=K.videoId:K.playlistId&&(n.playlistId=K.playlistId),SE[J.cttAuthInfo.token]=n;n=J.cttAuthInfo.token}return n}; xo=function(J,K,n){J=J===void 0?{}:J;K=K===void 0?!1:K;new g.If(function(X,l){var x=VQ(K,n),V=x.X;x.X=!1;rG(x.Z);rG(x.G);x.G=0;jE&&jE.isReady()?n===void 0&&g.ef("enable_web_tiered_gel")?xtf(X,l,J,K,300,V):xtf(X,l,J,K,n,V):(oF3(K,n),X())})}; xtf=function(J,K,n,X,l,x){var V=jE;n=n===void 0?{}:n;X=X===void 0?!1:X;l=l===void 0?200:l;x=x===void 0?!1:x;var v=new Map,Q=new Map,S={isJspb:X,cttAuthInfo:void 0,tier:l},r={isJspb:X,cttAuthInfo:void 0};if(X){K=g.z(Object.keys(Xt));for(l=K.next();!l.done;l=K.next())l=l.value,Q=g.ef("enable_web_tiered_gel")?J4().smartExtractMatchingEntries({keys:[S,r],sizeLimit:1E3}):J4().extractMatchingEntries({isJspb:!0,cttAuthInfo:l}),Q.length>0&&v.set(l,Q),(g.ef("web_fp_via_jspb_and_json")&&n.writeThenSend||!g.ef("web_fp_via_jspb_and_json"))&& delete Xt[l];l0q(v,V,J,n,!1,x)}else{v=g.z(Object.keys(Xt));for(S=v.next();!S.done;S=v.next())S=S.value,r=g.ef("enable_web_tiered_gel")?J4().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:S,tier:l},{isJspb:!1,cttAuthInfo:S}],sizeLimit:1E3}):J4().extractMatchingEntries({isJspb:!1,cttAuthInfo:S}),r.length>0&&Q.set(S,r),(g.ef("web_fp_via_jspb_and_json")&&n.writeThenSend||!g.ef("web_fp_via_jspb_and_json"))&&delete Xt[S];XBd(Q,V,J,K,n,!1,x)}}; oF3=function(J,K){function n(){xo({writeThenSend:!0},J,K)} J=J===void 0?!1:J;K=K===void 0?200:K;var X=VQ(J,K),l=X===jVe||X===VIV?5E3:hFV;g.ef("web_gel_timeout_cap")&&!X.G&&(l=vx(function(){n()},l),X.G=l); rG(X.Z);l=g.Et("LOGGING_BATCH_TIMEOUT",g.zr("web_gel_debounce_ms",1E4));g.ef("shorten_initial_gel_batch_timeout")&&sm&&(l=vFf);l=vx(function(){g.zr("gel_min_batch_size")>0?J4().getSequenceCount({cttAuthInfo:void 0,isJspb:J,tier:K})>=QVq&&n():n()},l); X.Z=l}; XBd=function(J,K,n,X,l,x,V){l=l===void 0?{}:l;var v=Math.round((0,g.a)()),Q=J.size,S=$tf(V);J=g.z(J);var r=J.next();for(V={};!r.done;V={vI:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,L3:void 0,iS:void 0},r=J.next()){var C=g.z(r.value);r=C.next().value;C=C.next().value;V.batchRequest=g.nu({context:g.Qn(K.config_||g.vN())});if(!g.Jj(C)&&!g.ef("throw_err_when_logevent_malformed_killswitch")){X();break}V.batchRequest.events=C;(C=SE[r])&&S1f(V.batchRequest,r,C);delete SE[r];V.dangerousLogToVisitorSession= r==="visitorOnlyApprovedKey";r_V(V.batchRequest,v,V.dangerousLogToVisitorSession);sV3(l);V.L3=function(O){g.ef("start_client_gcf")&&g.y1.VZ(function(){return g.G(function(H){return g.d(H,Cud(O),0)})}); Q--;Q||n()}; V.vI=0;V.iS=function(O){return function(){O.vI++;if(l.bypassNetworkless&&O.vI===1)try{g.Ja(K,S,O.batchRequest,CZ({writeThenSend:!0},O.dangerousLogToVisitorSession,O.L3,O.iS,x)),sm=!1}catch(H){g.MM(H),X()}Q--;Q||n()}}(V); try{g.Ja(K,S,V.batchRequest,CZ(l,V.dangerousLogToVisitorSession,V.L3,V.iS,x)),sm=!1}catch(O){g.MM(O),X()}}}; l0q=function(J,K,n,X,l,x){X=X===void 0?{}:X;var V=Math.round((0,g.a)()),v={value:J.size},Q=new Map([].concat(g.m(J)));Q=g.z(Q);for(var S=Q.next();!S.done;S=Q.next()){var r=g.z(S.value).next().value,C=J.get(r);S=new F_8;var O=K.config_||g.vN(),H=new Yx,R=new L5;Ay(R,1,O.GB);Ay(R,2,O.d8);Nr(R,16,O.M0);Ay(R,17,O.innertubeContextClientVersion);if(O.Dk){var w=O.Dk,P=new mH;w.coldConfigData&&Ay(P,1,w.coldConfigData);w.appInstallData&&Ay(P,6,w.appInstallData);w.coldHashData&&Ay(P,3,w.coldHashData);w.hotHashData&& P.Rz(w.hotHashData);Uv(R,mH,62,P)}(w=g.qp.devicePixelRatio)&&w!=1&&Ry(R,65,d$(w));w=wN();w!==""&&Ay(R,54,w);w=Pa();if(w.length>0){P=new dW;for(var B=0;B65535&&(J=1);qM("BATCH_CLIENT_COUNTER",J);return J}; S1f=function(J,K,n){if(n.videoId)var X="VIDEO";else if(n.playlistId)X="PLAYLIST";else return;J.credentialTransferTokenTargetId=n;J.context=J.context||{};J.context.user=J.context.user||{};J.context.user.credentialTransferTokens=[{token:K,scope:X}]}; nZ=function(J,K){var n=g.bF("yt.logging.transport.enableScrapingForTest"),X=u9("il_payload_scraping");X=(X!==void 0?String(X):"")==="enable_il_payload_scraping";if(!n)if(X)RZ=[],g.Ed("yt.logging.transport.enableScrapingForTest",!0),g.Ed("yt.logging.transport.scrapedPayloadsForTesting",RZ),g.Ed("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.Ed("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.Ed("yt.logging.transport.scrapeClientEvent",!0);else return;n=g.bF("yt.logging.transport.scrapedPayloadsForTesting");X=g.bF("yt.logging.transport.payloadToScrape");K&&(K=K.payload,(K=g.bF("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(K)())&&n.push(K));K=g.bF("yt.logging.transport.scrapeClientEvent");if(X&&X.length>=1)for(var l=0;l0&&Y18(J,K,x)}else Y18(J,K)}; Y18=function(J,K,n){J=GBM(J);K=K?g.Lf(K):"";n=n||5;oV()&&g.ca(J,K,n)}; GBM=function(J){for(var K=g.z(Utf),n=K.next();!n.done;n=K.next())J=k_(J,n.value);return"ST-"+RN(J).toString(36)}; tIU=function(J){if(J.name==="JavaException")return!0;J=J.stack;return J.includes("chrome://")||J.includes("chrome-extension://")||J.includes("moz-extension://")}; y_3=function(){this.o8=[];this.X1=[]}; LZ=function(){if(!pZ){var J=pZ=new y_3;J.X1.length=0;J.o8.length=0;Z0d(J,f0f)}return pZ}; Z0d=function(J,K){K.X1&&J.X1.push.apply(J.X1,K.X1);K.o8&&J.o8.push.apply(J.o8,K.o8)}; WG7=function(J){function K(){return J.charCodeAt(X++)} var n=J.length,X=0;do{var l=Tj(K);if(l===Infinity)break;var x=l>>3;switch(l&7){case 0:l=Tj(K);if(x===2)return l;break;case 1:if(x===2)return;X+=8;break;case 2:l=Tj(K);if(x===2)return J.substr(X,l);X+=l;break;case 5:if(x===2)return;X+=4;break;default:return}}while(X500));X++);X=l}else if(typeof J==="object")for(l in J){if(J[l]){var x=l;var V=J[l],v=K,Q=n;x=typeof V!=="string"||x!=="clickTrackingParams"&&x!=="trackingParams"?0:(V=WG7(atob(V.replace(/-/g,"+").replace(/_/g,"/"))))?Dx(x+".ve",V,v,Q):0;X+=x;X+=Dx(l,J[l],K,n);if(X>500)break}}else n[K]=dG(J),X+=n[K].length;else n[K]=dG(J),X+=n[K].length;return X}; Dx=function(J,K,n,X){n+="."+J;J=dG(K);X[n]=J;return n.length+J.length}; dG=function(J){try{return(typeof J==="string"?J:String(JSON.stringify(J))).substr(0,500)}catch(K){return"unable to serialize "+typeof J+" ("+K.message+")"}}; hL=function(J){g.ko(J)}; g.gG=function(J){g.ko(J,"WARNING")}; g.ko=function(J,K){var n=n===void 0?{}:n;n.name=g.Et("INNERTUBE_CONTEXT_CLIENT_NAME",1);n.version=g.Et("INNERTUBE_CONTEXT_CLIENT_VERSION");K=K===void 0?"ERROR":K;var X=!1;K=K===void 0?"ERROR":K;X=X===void 0?!1:X;if(J){J.hasOwnProperty("level")&&J.level&&(K=J.level);if(g.ef("console_log_js_exceptions")){var l=[];l.push("Name: "+J.name);l.push("Message: "+J.message);J.hasOwnProperty("params")&&l.push("Error Params: "+JSON.stringify(J.params));J.hasOwnProperty("args")&&l.push("Error args: "+JSON.stringify(J.args)); l.push("File name: "+J.fileName);l.push("Stacktrace: "+J.stack);window.console.log(l.join("\n"),J)}if(!(FGF>=5)){l=[];for(var x=g.z(q18),V=x.next();!V.done;V=x.next()){V=V.value;try{V()&&l.push(V())}catch(w){}}l=[].concat(g.m(EFM),g.m(l));var v=jH7(J);x=v.message||"Unknown Error";V=v.name||"UnknownError";var Q=v.stack||J.Z||"Not available";if(Q.startsWith(V+": "+x)){var S=Q.split("\n");S.shift();Q=S.join("\n")}S=v.lineNumber||"Not available";v=v.fileName||"Not available";var r=0;if(J.hasOwnProperty("args")&& J.args&&J.args.length)for(var C=0;C=500);C++);else if(J.hasOwnProperty("params")&&J.params){var O=J.params;if(typeof J.params==="object")for(C in O){if(O[C]){var H="params."+C,R=dG(O[C]);n[H]=R;r+=H.length+R.length;if(r>500)break}}else n.params=dG(O)}if(l.length)for(C=0;C=500);C++);navigator.vendor&&!n.hasOwnProperty("vendor")&&(n["device.vendor"]=navigator.vendor);n={message:x,name:V,lineNumber:S, fileName:v,stack:Q,params:n,sampleWeight:1};C=Number(J.columnNumber);isNaN(C)||(n.lineNumber=n.lineNumber+":"+C);if(J.level==="IGNORED")J=0;else a:{J=LZ();C=g.z(J.X1);for(l=C.next();!l.done;l=C.next())if(l=l.value,n.message&&n.message.match(l.Z1)){J=l.weight;break a}J=g.z(J.o8);for(C=J.next();!C.done;C=J.next())if(C=C.value,C.callback(n)){J=C.weight;break a}J=1}n.sampleWeight=J;J=g.z(b0F);for(C=J.next();!C.done;C=J.next())if(C=C.value,C.k8[n.name])for(x=g.z(C.k8[n.name]),l=x.next();!l.done;l=x.next())if(V= l.value,l=n.message.match(V.wz)){n.params["params.error.original"]=l[0];x=V.groups;V={};for(S=0;S1E3&&g.gG(new g.qt("IL Attach cache exceeded limit"))}v= Em(n,K);fZ.has(v)?b2(n,K):aZ.set(v,!0)}}X=X.filter(function(r){r.csn!==K?(r.csn=K,r=!0):r=!1;return r}); n={csn:K,parentVe:n.getAsJson(),childVes:g.ff(X,function(r){return r.getAsJson()})}; K==="UNDEFINED_CSN"?A4("visualElementAttached",x,n):J?eE("visualElementAttached",n,J,x):g.vJ("visualElementAttached",n,x)}; QB3=function(J,K,n,X,l){Mq(n,K);X=Zx({cttAuthInfo:Bx(K)||void 0},K);n={csn:K,ve:n.getAsJson(),eventType:1};l&&(n.clientData=l);K==="UNDEFINED_CSN"?A4("visualElementShown",X,n):J?eE("visualElementShown",n,J,X):g.vJ("visualElementShown",n,X)}; $HU=function(J,K,n,X){var l=(X=X===void 0?!1:X)?16:8;X=Zx({cttAuthInfo:Bx(K)||void 0,endOfSequence:X},K);n={csn:K,ve:n.getAsJson(),eventType:l};K==="UNDEFINED_CSN"?A4("visualElementHidden",X,n):J?eE("visualElementHidden",n,J,X):g.vJ("visualElementHidden",n,X)}; Ji=function(J,K,n,X,l){Nq(J,K,n,void 0,X,l)}; Nq=function(J,K,n,X,l){Mq(n,K);X=X||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var x=Zx({cttAuthInfo:Bx(K)||void 0},K);n={csn:K,ve:n.getAsJson(),gestureType:X};l&&(n.clientData=l);K==="UNDEFINED_CSN"?A4("visualElementGestured",x,n):J?eE("visualElementGestured",n,J,x):g.vJ("visualElementGestured",n,x)}; S68=function(){var J=z0(16);for(var K=[],n=0;n0&&n.push(g.ME("BR"));n.push(g.NE(x))}):n.push(g.NE(X))}return n}; S3=function(J,K,n,X){if(n==="child"){g.Kf(K);var l;X===void 0?l=void 0:l=!Array.isArray(X)||X&&typeof X.j==="string"?[X]:X;n=sBF(J,l);n=g.z(n);for(J=n.next();!J.done;J=n.next())K.appendChild(J.value)}else n==="style"?g.c7(K,"cssText",X?X:""):X===null||X===void 0?K.removeAttribute(n):(J=X.toString(),n==="href"&&(J=g.fu(g.qX(J))),K.setAttribute(n,J))}; g.F=function(J){g.Qk.call(this,J);this.Kv=!0;this.C=!1;this.listeners=[]}; g.ro=function(J){g.F.call(this,J);this.gQ=new g.hi;g.Z(this,this.gQ)}; se=function(J,K,n,X,l,x,V){V=V===void 0?null:V;g.ro.call(this,K);this.api=J;this.macros={};this.componentType=n;this.W=this.L=null;this.Dm=V;this.layoutId=X;this.interactionLoggingClientData=l;this.TA=x;this.fv=null;this.gH=new Rn(this.element);g.Z(this,this.gH);this.md=this.T(this.element,"click",this.onClick);this.cW=[];this.Aj=new uN(this.onClick,this);g.Z(this,this.Aj);this.vW=!1;this.PW=this.GA=null}; C7=function(J,K){J=J===void 0?null:J;K=K===void 0?null:K;if(J==null)return g.gG(Error("Got null or undefined adText object")),"";var n=g.HK(J.text);if(!J.isTemplated)return n;if(K==null)return g.gG(Error("Missing required parameters for a templated message")),n;J=g.z(Object.entries(K));for(K=J.next();!K.done;K=J.next()){var X=g.z(K.value);K=X.next().value;X=X.next().value;n=n.replace("{"+K+"}",X)}return n}; CtV=function(J){J=J===void 0?null:J;return J!=null&&(J=J.thumbnail,J!=null&&J.thumbnails!=null&&J.thumbnails.length!=0&&J.thumbnails[0].url!=null)?g.HK(J.thumbnails[0].url):""}; O6F=function(J){J=J===void 0?null:J;return J!=null&&(J=J.thumbnail,J!=null&&J.thumbnails!=null&&J.thumbnails.length!=0&&J.thumbnails[0].width!=null&&J.thumbnails[0].height!=null)?new g.DH(J.thumbnails[0].width||0,J.thumbnails[0].height||0):new g.DH(0,0)}; g.Oe=function(J){if(J.simpleText)return J.simpleText;if(J.runs){var K=[];J=g.z(J.runs);for(var n=J.next();!n.done;n=J.next())n=n.value,n.text&&K.push(n.text);return K.join("")}return""}; g.H9=function(J){if(J.simpleText)return J=document.createTextNode(J.simpleText),J;var K=[];if(J.runs)for(var n=0;n1){for(var K=[J[0]],n=1;n0&&(this.G=new g.AT(this.fd,K,this),g.Z(this,this.G));this.C=new g.AT(this.fd,n,this);g.Z(this,this.C);this.L=g0q(this.Z,l,1,X);g.Z(this,this.L);this.W=g0q(this.Z,0,X,1);g.Z(this,this.W);this.U=new mG;g.Z(this,this.U)}; hC=function(J,K,n){this.Z=J;this.isAsync=K;this.G=n}; XN7=function(J){switch(J){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:AK(J,"unknown result type")}}; lYq=function(J,K){var n=1;J.isTrusted===!1&&(n=0);qM("ISDSTAT",n);vz(n,"i.s_",{triggerContext:"sk",metadata:K});return n}; xok=function(J,K){var n=[];K?K.isTrusted===!0?n.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):K.isTrusted===!1?n.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):n.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):n.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");vz(0,"a.s_",{metadata:J,states:n});qM("ASDSTAT",0)}; vz=function(J,K,n){K=jWk[K];var X,l,x={detected:J===0,source:""+K.Z+((X=n.triggerContext)!=null?X:"")+((l=n.Si)!=null?l:""),detectionStates:n.states,durationMs:n.L7};n.metadata&&(x.contentCpn=n.metadata.contentCpn,x.adCpn=n.metadata.adCpn);g.vJ("biscottiBasedDetection",x);K.G!==void 0&&(n=Number(g.Et("CATSTAT",0)),K.G!==void 0?(K=K.G,J=XN7(J),J=n&~(3<0}; OC=function(J,K,n,X,l,x){JC.call(this,J,{j:"div",V:"ytp-ad-skip-button-slot"},"skip-button",K,n,X,l);var V=this;this.QG=null;this.MQ=!1;this.kF=x;this.N=this.api.S().experiments.sM("enable_modern_skip_button_on_web");this.wQ=!1;this.U=new g.ro({j:"span",UM:["ytp-ad-skip-button-container"]});this.N&&this.U.element.classList.add("ytp-ad-skip-button-container-detached");g.Z(this,this.U);this.U.qQ(this.element);this.Z=this.X=null;this.Fq=new g.ov(this.U,500,!1,100,function(){return V.hide()}); g.Z(this,this.Fq);this.j_=new VA(this.U.element,15E3,5E3,.5,.5,this.N);g.Z(this,this.j_);this.hide()}; h2k=function(J){J=J.QG&&J.QG.adRendererCommands;return(J&&J.clickCommand&&g.f(J.clickCommand,g.Hz)&&g.f(J.clickCommand,g.Hz).commands||[]).some(function(K){return K.adLifecycleCommand?VDf(K.adLifecycleCommand):!1})}; VDf=function(J){return J.action==="END_LINEAR_AD"||J.action==="END_LINEAR_AD_PLACEMENT"}; Rv=function(J,K,n,X,l,x){JC.call(this,J,{j:"div",V:"ytp-ad-skip-ad-slot"},"skip-ad",K,n,X,l);this.QG=x;this.U=!1;this.N=0;this.X=this.Z=null;this.hide()}; vb7=function(J,K){J.U||(J.U=!0,J.Z&&(K?J.Z.QG.hide():J.Z.hide()),K?(J=J.X,J.Fq.show(),J.show()):J.X.show())}; uU=function(J,K,n,X){k7.call(this,J,K,n,X,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; ee=function(J,K,n,X,l,x,V){x=x===void 0?!1:x;V=V===void 0?!1:V;se.call(this,J,{j:"span",V:"ytp-ad-simple-ad-badge"},"simple-ad-badge",K,n,X);this.X=l;this.G=this.rQ("ytp-ad-simple-ad-badge");(this.Z=x)&&this.G.classList.add("ytp-ad-simple-ad-badge--clean-player");V&&this.G.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; z_=function(J,K,n,X,l){l=l===void 0?!1:l;Vk.call(this,"player-overlay",J,{},K,X);this.videoAdDurationSeconds=n;this.interactionLoggingClientData=X;this.eQ=l}; wf=function(J,K){g.hi.call(this);this.api=J;this.durationMs=K;this.G=null;this.L9=new mG(this);g.Z(this,this.L9);this.Z=QWf;this.L9.T(this.api,"presentingplayerstatechange",this.ZH);this.G=this.L9.T(this.api,"onAdPlaybackProgress",this.MH)}; Pz=function(J){g.hi.call(this);this.G=!1;this.pJ=0;this.L9=new mG(this);g.Z(this,this.L9);this.durationMs=J;this.R9=new g.cV(100);g.Z(this,this.R9);this.L9.T(this.R9,"tick",this.MH);this.Z={seekableStart:0,seekableEnd:J/1E3,current:0};this.start()}; g.Iv=function(J,K){var n=Math.abs(Math.floor(J)),X=Math.floor(n/86400),l=Math.floor(n%86400/3600),x=Math.floor(n%3600/60);n=Math.floor(n%60);if(K){K="";X>0&&(K+=" "+X+" Days");if(X>0||l>0)K+=" "+l+" Hours";K+=" "+x+" Minutes";K+=" "+n+" Seconds";X=K.trim()}else{K="";X>0&&(K+=X+":",l<10&&(K+="0"));if(X>0||l>0)K+=l+":",x<10&&(K+="0");K+=x+":";n<10&&(K+="0");X=K+n}return J>=0?X:"-"+X}; g.iU=function(J){return(!("button"in J)||typeof J.button!=="number"||J.button===0)&&!("shiftKey"in J&&J.shiftKey)&&!("altKey"in J&&J.altKey)&&!("metaKey"in J&&J.metaKey)&&!("ctrlKey"in J&&J.ctrlKey)}; Bz=function(J,K,n,X,l,x,V){JC.call(this,J,{j:"span",V:V?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",K,n,X,l);this.videoAdDurationSeconds=x;this.Z=null;V&&this.api.S().Z&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),Fz&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()}; mB=function(J,K,n,X){M1.call(this,J,K,n,X,"ytp-video-ad-top-bar-title","ad-title")}; p1=function(J){this.content=J.content;if(J.commandRuns){J=g.z(J.commandRuns);for(var K=J.next();!K.done;K=J.next())K=K.value,this.loggingDirectives=g.f(K,$oU),K.onTap&&(this.interaction={onTap:K.onTap})}}; L1=function(J,K,n,X){se.call(this,J,{j:"div",V:"ad-simple-attributed-string"},"ad-simple-attributed-string",K,n,X);this.hide()}; T_=function(J,K,n,X,l){se.call(this,J,{j:"span",V:l?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",K,n,X);this.Z=l;this.adBadgeText=new L1(this.api,this.layoutId,this.interactionLoggingClientData,this.TA);this.adBadgeText.qQ(this.element);g.Z(this,this.adBadgeText);l?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),Fz&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; DB=function(J,K,n,X){se.call(this,J,{j:"span",V:"ytp-ad-pod-index"},"ad-pod-index",K,n,X);this.api.S().Z&&(this.element.classList.add("ytp-ad-pod-index--mweb"),Fz&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()}; df=function(J,K,n,X){se.call(this,J,{j:"div",V:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",K,n,X);this.hide()}; kD=function(J,K){this.Z=J;this.G=K}; gf=function(J,K,n){if(!J.getLength())return n!=null?n:Infinity;J=(K-J.Z)/J.getLength();return g.BK(J,0,1)}; cz=function(J,K,n,X){X=X===void 0?!1:X;g.ro.call(this,{j:"div",V:"ytp-ad-persistent-progress-bar-container",Y:[{j:"div",V:"ytp-ad-persistent-progress-bar"}]});this.api=J;this.Z=K;this.X=n;X&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.Z(this,this.Z);this.progressBar=this.rQ("ytp-ad-persistent-progress-bar");this.G=-1;this.T(J,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; YD=function(J,K,n,X,l,x){se.call(this,J,{j:"div",V:"ytp-ad-player-overlay",Y:[{j:"div",V:"ytp-ad-player-overlay-flyout-cta"},{j:"div",V:"ytp-ad-player-overlay-instream-info"},{j:"div",V:"ytp-ad-player-overlay-skip-or-preview"},{j:"div",V:"ytp-ad-player-overlay-progress-bar"},{j:"div",V:"ytp-ad-player-overlay-instream-user-sentiment"},{j:"div",V:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",K,n,X);this.K=x;this.N=this.rQ("ytp-ad-player-overlay-flyout-cta");this.N.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.G=this.rQ("ytp-ad-player-overlay-instream-info");this.U=null;SSq(this)&&(J=Aq("div"),g.jv(J,"ytp-ad-player-overlay-top-bar-gradients"),K=this.G,K.parentNode&&K.parentNode.insertBefore(J,K),(K=this.api.getVideoData(2))&&K.isListed&&K.title&&(n=new mB(this.api,this.layoutId,this.interactionLoggingClientData,this.TA),n.qQ(J),n.init(j3("ad-title"),{text:K.title},this.macros),g.Z(this,n)),this.U=J);this.X=null;this.Cv=this.rQ("ytp-ad-player-overlay-skip-or-preview");this.j_=this.rQ("ytp-ad-player-overlay-progress-bar"); this.MQ=this.rQ("ytp-ad-player-overlay-instream-user-sentiment");this.QG=this.rQ("ytp-ad-player-overlay-ad-disclosure-banner");this.Z=l;g.Z(this,this.Z);this.hide()}; SSq=function(J){J=J.api.S();return g.G_(J)&&J.Z}; g.UC=function(J){J&=16777215;var K=[(J&16711680)>>16,(J&65280)>>8,J&255];J=K[0];var n=K[1];K=K[2];J=Number(J);n=Number(n);K=Number(K);if(J!=(J&255)||n!=(n&255)||K!=(K&255))throw Error('"('+J+","+n+","+K+'") is not a valid RGB color');n=J<<16|n<<8|K;return J<16?"#"+(16777216|n).toString(16).slice(1):"#"+n.toString(16)}; tC=function(J){this.G=new Lj(J)}; rEk=function(){var J=!1;try{J=!!window.sessionStorage.getItem("session_logininfo")}catch(K){J=!0}return(g.Et("INNERTUBE_CLIENT_NAME")==="WEB"||g.Et("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&J}; yA=function(){var J=J===void 0?!0:J;try{window.sessionStorage.removeItem("stickiness_reload");window.sessionStorage.removeItem("session_logininfo");qM("LOGIN_INFO","");J&&window.sessionStorage.setItem("from_switch_account","1");J=!0;J=J===void 0?!1:J;var K,n=sWM;n||(n=document.querySelector("#persist_identity"));if(K=n){var X=K.src?(new URL(K.src)).origin:"*";if(J){var l;(l=K.contentWindow)==null||l.postMessage({action:"clear"},X)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>= 2)){var x=window.sessionStorage.getItem("session_logininfo");if(x){var V;(V=K.contentWindow)==null||V.postMessage({loginInfo:x},X)}}}}catch(v){}}; ZB=function(J){if(J)if(J.startsWith("https://accounts.google.com/AddSession"))yA();else if(J.startsWith("https://accounts.google.com/ServiceLogin"))yA();else{var K;if(K=J.startsWith("https://myaccount.google.com"))K=g.$P(J).Z.endsWith("/youtubeoptions");K&&yA()}if(g.Et("LOGGED_IN",!0)&&rEk()){K=g.Et("VALID_SESSION_TEMPDATA_DOMAINS",[]);var n=g.PH(window.location.href);n&&K.push(n);n=g.PH(J);g.O0(K,n)||!n&&s7(J,"/")?(K=ic(J),(K=Nur(K))?(K=GBM(K),K=(K=g.YA(K)||null)?oe(K):{}):K=null):K=null;K==null&& (K={});n=K;var X=void 0;rEk()?(X||(X=g.Et("LOGIN_INFO")),X?(n.session_logininfo=X,n=!0):n=!1):n=!1;n&&mL(J,K)}}; g.CPd=function(J){var K=K===void 0?{}:K;var n=n===void 0?"":n;var X=X===void 0?window:X;J=g.Td(J,K);ZB(J);n=g.qX(J+n);X=X.location;n=E7(n);n!==void 0&&(X.href=n)}; g.f1=function(J,K,n){K=K===void 0?{}:K;n=n===void 0?!1:n;var X=g.Et("EVENT_ID");X&&(K.ei||(K.ei=X));K&&mL(J,K);n||(ZB(J),g.CPd(J))}; g.Wz=function(J,K,n,X,l){l=l===void 0?!1:l;n&&mL(J,n);n=g.qX(J);var x=g.fu(n);J!=x&&J2(Error("Unsafe window.open URL: "+J));J=x;K=K||RN(J).toString(36);try{if(l)return l=J,l=C9F(l),ZB(l),g.Kl(window,l,K,"attributionsrc")}catch(V){g.MM(V)}ZB(J);return g.Kl(window,n,K,X)}; OMV=function(J){av=J}; HMU=function(J){Fa=J}; R2d=function(J){qx=J}; e2F=function(){uHf=qx=Fa=av=null}; wNH=function(){var J=J===void 0?window.location.href:J;if(g.ef("kevlar_disable_theme_param"))return null;var K=IF(J);if(g.ef("enable_dark_theme_only_on_shorts")&&K!=null&&K.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var n=g.l9(J).theme;return z2f.get(n)||null}catch(X){}return null}; EC=function(){this.G={};if(this.Z=zz7()){var J=g.YA("CONSISTENCY");J&&PPe(this,{encryptedTokenJarContents:J})}}; PPe=function(J,K){if(K.encryptedTokenJarContents&&(J.G[K.encryptedTokenJarContents]=K,typeof K.expirationSeconds==="string")){var n=Number(K.expirationSeconds);setTimeout(function(){delete J.G[K.encryptedTokenJarContents]},n*1E3); J.Z&&g.ca("CONSISTENCY",K.encryptedTokenJarContents,n,void 0,!0)}}; AC=function(){this.Z=-1;var J=g.Et("LOCATION_PLAYABILITY_TOKEN");g.Et("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=bU(this))&&(J=this.localStorage.get("yt-location-playability-token"));J&&(this.locationPlayabilityToken=J,this.G=void 0)}; bU=function(J){return J.localStorage===void 0?new Xz("yt-client-location"):J.localStorage}; g.Mx=function(J,K,n){K=K===void 0?!1:K;n=n===void 0?!1:n;var X=g.Et("INNERTUBE_CONTEXT");if(!X)return g.ko(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};X=g.nu(X);g.ef("web_no_tracking_params_in_shell_killswitch")||delete X.clickTracking;X.client||(X.client={});var l=X.client;l.clientName==="MWEB"&&l.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(l.clientFormFactor=g.Et("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");l.screenWidthPoints=window.innerWidth;l.screenHeightPoints= window.innerHeight;l.screenPixelDensity=Math.round(window.devicePixelRatio||1);l.screenDensityFloat=window.devicePixelRatio||1;l.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var x=x===void 0?!1:x;g.yT();var V="USER_INTERFACE_THEME_LIGHT";g.Z0(0,165)?V="USER_INTERFACE_THEME_DARK":g.Z0(0,174)?V="USER_INTERFACE_THEME_LIGHT":!g.ef("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (V="USER_INTERFACE_THEME_DARK");x=x?V:wNH()||V;l.userInterfaceTheme=x;if(!K){if(x=hhM())l.connectionType=x;g.ef("web_log_effective_connection_type")&&(x=QaF())&&(X.client.effectiveConnectionType=x)}var v;if(g.ef("web_log_memory_total_kbytes")&&((v=g.qp.navigator)==null?0:v.deviceMemory)){var Q;v=(Q=g.qp.navigator)==null?void 0:Q.deviceMemory;X.client.memoryTotalKbytes=""+v*1E6}g.ef("web_gcf_hashes_innertube")&&(x=H5F())&&(Q=x.coldConfigData,v=x.coldHashData,x=x.hotHashData,X.client.configInfo=X.client.configInfo|| {},Q&&(X.client.configInfo.coldConfigData=Q),v&&(X.client.configInfo.coldHashData=v),x&&(X.client.configInfo.hotHashData=x));Q=g.l9(g.qp.location.href);!g.ef("web_populate_internal_geo_killswitch")&&Q.internalcountrycode&&(l.internalGeo=Q.internalcountrycode);l.clientName==="MWEB"||l.clientName==="WEB"?(l.mainAppWebInfo={graftUrl:g.qp.location.href},g.ef("kevlar_woffle")&&ntH.instance&&(Q=ntH.instance,l.mainAppWebInfo.pwaInstallabilityStatus=!Q.G&&Q.Z?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),l.mainAppWebInfo.webDisplayMode=GB(),l.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):l.clientName==="TVHTML5"&&(!g.ef("web_lr_app_quality_killswitch")&&(Q=g.Et("LIVING_ROOM_APP_QUALITY"))&&(l.tvAppInfo=Object.assign(l.tvAppInfo||{},{appQuality:Q})),Q=g.Et("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(l.tvAppInfo=Object.assign(l.tvAppInfo||{},{certificationScope:Q}));if(!g.ef("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var S=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(c){}S=void 0}S&&(l.timeZone=S)}(S=wN())?l.experimentsToken=S:delete l.experimentsToken;S=Pa();EC.instance||(EC.instance=new EC);X.request=Object.assign({},X.request,{internalExperimentFlags:S,consistencyTokenJars:g.aH(EC.instance.G)});!g.ef("web_prequest_context_killswitch")&&(S=g.Et("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(X.request.externalPrequestContext=S);l=g.yT();S=g.Z0(0,58);l=l.get("gsml","");X.user=Object.assign({}, X.user);S&&(X.user.enableSafetyMode=S);l&&(X.user.lockedSafetyMode=!0);g.ef("warm_op_csn_cleanup")?n&&(K=g.i2())&&(X.clientScreenNonce=K):!K&&(K=g.i2())&&(X.clientScreenNonce=K);J&&(X.clickTracking={clickTrackingParams:J});if(J=g.bF("yt.mdx.remote.remoteClient_"))X.remoteClient=J;AC.getInstance().setLocationOnInnerTubeContext(X);try{var r=Sf(),C=r.bid;delete r.bid;X.adSignalsInfo={params:[],bid:C};for(var O=g.z(Object.entries(r)),H=O.next();!H.done;H=O.next()){var R=g.z(H.value),w=R.next().value, P=R.next().value;r=w;C=P;J=void 0;(J=X.adSignalsInfo.params)==null||J.push({key:r,value:""+C})}var B,p;if(((B=X.client)==null?void 0:B.clientName)==="TVHTML5"||((p=X.client)==null?void 0:p.clientName)==="TVHTML5_UNPLUGGED"){var k=g.Et("INNERTUBE_CONTEXT");k.adSignalsInfo&&(X.adSignalsInfo.advertisingId=k.adSignalsInfo.advertisingId,X.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",X.adSignalsInfo.limitAdTracking=k.adSignalsInfo.limitAdTracking)}}catch(c){g.ko(c)}return X}; Bg3=function(J,K){if(!J)return!1;var n,X=(n=g.f(J,IY7))==null?void 0:n.signal;if(X&&K.B8)return!!K.B8[X];var l;if((n=(l=g.f(J,iMF))==null?void 0:l.request)&&K.Gu)return!!K.Gu[n];for(var x in J)if(K.OP[x])return!0;return!1}; mor=function(J){var K={"Content-Type":"application/json"};g.Et("EOM_VISITOR_DATA")?K["X-Goog-EOM-Visitor-Id"]=g.Et("EOM_VISITOR_DATA"):g.Et("VISITOR_DATA")&&(K["X-Goog-Visitor-Id"]=g.Et("VISITOR_DATA"));K["X-Youtube-Bootstrap-Logged-In"]=g.Et("LOGGED_IN",!1);g.Et("DEBUG_SETTINGS_METADATA")&&(K["X-Debug-Settings-Metadata"]=g.Et("DEBUG_SETTINGS_METADATA"));J!=="cors"&&((J=g.Et("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(K["X-Youtube-Client-Name"]=J),(J=g.Et("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(K["X-Youtube-Client-Version"]= J),(J=g.Et("CHROME_CONNECTED_HEADER"))&&(K["X-Youtube-Chrome-Connected"]=J),(J=g.Et("DOMAIN_ADMIN_STATE"))&&(K["X-Youtube-Domain-Admin-State"]=J),g.Et("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(J=g.Et("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(K["X-YouTube-Lava-Device-Context"]=J));return K}; pNU=function(){this.G={}}; Nx=function(){this.mappings=new pNU}; JB=function(J){return function(){return new J}}; Tg7=function(J){var K=K===void 0?"UNKNOWN_INTERFACE":K;if(J.length===1)return J[0];var n=L2f[K];if(n){n=new RegExp(n);for(var X=g.z(J),l=X.next();!l.done;l=X.next())if(l=l.value,n.exec(l))return l}var x=[];Object.entries(L2f).forEach(function(V){var v=g.z(V);V=v.next().value;v=v.next().value;K!==V&&x.push(v)}); n=new RegExp(x.join("|"));J.sort(function(V,v){return V.length-v.length}); X=g.z(J);for(l=X.next();!l.done;l=X.next())if(l=l.value,!n.exec(l))return l;return J[0]}; g.Ko=function(J){return"/youtubei/v1/"+Tg7(J)}; $m=function(){}; SQ=function(){}; rS=function(){}; sl=function(J){return g.bF("ytcsi."+(J||"")+"data_")||DoH(J)}; doM=function(){var J=sl();J.info||(J.info={});return J.info}; Co=function(J){J=sl(J);J.metadata||(J.metadata={});return J.metadata}; Ol=function(J){J=sl(J);J.tick||(J.tick={});return J.tick}; Hs=function(J){J=sl(J);if(J.gel){var K=J.gel;K.gelInfos||(K.gelInfos={});K.gelTicks||(K.gelTicks={})}else J.gel={gelTicks:{},gelInfos:{}};return J.gel}; kuF=function(J){J=Hs(J);J.gelInfos||(J.gelInfos={});return J.gelInfos}; RM=function(J){var K=sl(J).nonce;K||(K=g.wV(16),sl(J).nonce=K);return K}; DoH=function(J){var K={tick:{},info:{}};g.Ed("ytcsi."+(J||"")+"data_",K);return K}; uD=function(){var J=g.bF("ytcsi.debug");J||(J=[],g.Ed("ytcsi.debug",J),g.Ed("ytcsi.reference",{}));return J}; eQ=function(J){J=J||"";var K=gb8();if(K[J])return K[J];var n=uD(),X={timerName:J,info:{},tick:{},span:{},jspbInfo:[]};n.push(X);return K[J]=X}; cE3=function(J){J=J||"";var K=gb8();K[J]&&delete K[J];var n=uD(),X={timerName:J,info:{},tick:{},span:{},jspbInfo:[]};n.push(X);K[J]=X}; gb8=function(){var J=g.bF("ytcsi.reference");if(J)return J;uD();return g.bF("ytcsi.reference")}; zG=function(J){return YSM[J]||"LATENCY_ACTION_UNKNOWN"}; wS=function(J,K){SD.call(this,1,arguments);this.R9=K}; Ps=function(){this.G=0}; IM=function(){Ps.instance||(Ps.instance=new Ps);return Ps.instance}; Bs=function(J,K){iD[K]=iD[K]||{count:0};var n=iD[K];n.count++;n.time=(0,g.a)();J.G||(J.G=g.Nt(0,function(){var X=(0,g.a)(),l;for(l in iD)iD[l]&&X-iD[l].time>6E4&&delete iD[l];J&&(J.G=0)},5E3)); return n.count>5?(n.count===6&&Math.random()*1E5<1&&(n=new g.qt("CSI data exceeded logging limit with key",K.split("_")),K.indexOf("plev")>=0||g.gG(n)),!0):!1}; Gu3=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; Uop=function(){var J;if(g.ef("csi_use_performance_navigation_timing")||g.ef("csi_use_performance_navigation_timing_tvhtml5")){var K,n,X,l=mu==null?void 0:(J=mu.getEntriesByType)==null?void 0:(K=J.call(mu,"navigation"))==null?void 0:(n=K[0])==null?void 0:(X=n.toJSON)==null?void 0:X.call(n);l?(l.requestStart=po(l.requestStart),l.responseEnd=po(l.responseEnd),l.redirectStart=po(l.redirectStart),l.redirectEnd=po(l.redirectEnd),l.domainLookupEnd=po(l.domainLookupEnd),l.connectStart=po(l.connectStart), l.connectEnd=po(l.connectEnd),l.responseStart=po(l.responseStart),l.secureConnectionStart=po(l.secureConnectionStart),l.domainLookupStart=po(l.domainLookupStart),l.isPerformanceNavigationTiming=!0,J=l):J=mu.timing}else J=g.ef("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(mu.timing)):mu.timing;return J}; po=function(J){return Math.round(Lo()+J)}; Lo=function(){return(g.ef("csi_use_time_origin")||g.ef("csi_use_time_origin_tvhtml5"))&&mu.timeOrigin?Math.floor(mu.timeOrigin):mu.timing.navigationStart}; DS=function(J,K){TG("_start",J,K)}; dS=function(J,K){if(!g.ef("web_csi_action_sampling_enabled")||!sl(K).actionDisabled){var n=eQ(K||"");$4(n.info,J);J.loadType&&(n=J.loadType,Co(K).loadType=n);$4(kuF(K),J);n=RM(K);K=sl(K).cttAuthInfo;IM().info(J,n,K)}}; tDf=function(){var J,K,n,X;return((X=gV().resolve(LE(Vn))==null?void 0:(J=hE())==null?void 0:(K=J.loggingHotConfig)==null?void 0:(n=K.csiConfig)==null?void 0:n.debugTicks)!=null?X:[]).map(function(l){return Object.values(l)[0]})}; TG=function(J,K,n){if(!g.ef("web_csi_action_sampling_enabled")||!sl(n).actionDisabled){var X=RM(n),l;if(l=g.ef("web_csi_debug_sample_enabled")&&X){(gV().resolve(LE(Vn))==null?0:hE())&&!yEH&&(yEH=!0,TG("gcfl",(0,g.a)(),n));var x,V,v;l=(gV().resolve(LE(Vn))==null?void 0:(x=hE())==null?void 0:(V=x.loggingHotConfig)==null?void 0:(v=V.csiConfig)==null?void 0:v.debugSampleWeight)||0;if(x=l!==0)b:{x=tDf();if(x.length>0)for(V=0;Vn.duration?X:n},{duration:0}))&&K.startTime>0&&K.responseEnd>0&&(TG("wffs",po(K.startTime)),TG("wffe",po(K.responseEnd)))}; EbH=function(J,K,n){mu&&mu.measure&&(J.startsWith("measure_")||(J="measure_"+J),n?mu.measure(J,K,n):K?mu.measure(J,K):mu.measure(J))}; bM3=function(J){var K=km("aft",J);if(K)return K;K=g.Et((J||"")+"TIMING_AFT_KEYS",["ol"]);for(var n=K.length,X=0;X0&&dS(K);K={isNavigation:!0,actionType:zG(g.Et("TIMING_ACTION"))};var n=g.Et("PREVIOUS_ACTION");n&&(K.previousAction=zG(n));if(n=g.Et("CLIENT_PROTOCOL"))K.httpProtocol=n;if(n=g.Et("CLIENT_TRANSPORT"))K.transportProtocol=n;(n=g.i2())&&n!=="UNDEFINED_CSN"&&(K.clientScreenNonce=n);n=W2d();if(n===1||n===-1)K.isVisible= !0;n=Co().loadType==="cold";var X=doM();n||(n=X.yt_lt==="cold");if(n){K.loadType="cold";n=doM();X=Uop();var l=Lo(),x=g.Et("CSI_START_TIMESTAMP_MILLIS",0);x>0&&!g.ef("embeds_web_enable_csi_start_override_killswitch")&&(l=x);l&&(TG("srt",X.responseStart),n.prerender!==1&&DS(l));n=Ngd();n>0&&TG("fpt",n);n=Uop();n.isPerformanceNavigationTiming&&dS({performanceNavigationTiming:!0},void 0);TG("nreqs",n.requestStart,void 0);TG("nress",n.responseStart,void 0);TG("nrese",n.responseEnd,void 0);n.redirectEnd- n.redirectStart>0&&(TG("nrs",n.redirectStart,void 0),TG("nre",n.redirectEnd,void 0));n.domainLookupEnd-n.domainLookupStart>0&&(TG("ndnss",n.domainLookupStart,void 0),TG("ndnse",n.domainLookupEnd,void 0));n.connectEnd-n.connectStart>0&&(TG("ntcps",n.connectStart,void 0),TG("ntcpe",n.connectEnd,void 0));n.secureConnectionStart>=Lo()&&n.connectEnd-n.secureConnectionStart>0&&(TG("nstcps",n.secureConnectionStart,void 0),TG("ntcpe",n.connectEnd,void 0));mu&&"getEntriesByType"in mu&&qSd();n=[];if(document.querySelector&& mu&&mu.getEntriesByName)for(var V in Ym)Ym.hasOwnProperty(V)&&(X=Ym[V],F23(V,X)&&n.push(X));if(n.length>0)for(K.resourceInfo=[],V=g.z(n),n=V.next();!n.done;n=V.next())K.resourceInfo.push({resourceCache:n.value})}dS(K);K=Hs();K.preLoggedGelInfos||(K.preLoggedGelInfos=[]);V=K.preLoggedGelInfos;K=kuF();n=void 0;for(X=0;X-1&&(delete zM["@type"],q=zM);w&&J.Z.has(w)&&J.Z.delete(w);((fU=K.config)==null?0:fU.HHA)&&Ul(K.config.HHA);if(q||(IH=J.X)==null||!IH.kUj(K.input,K.xn)){pU.EM(15);break}return g.d(pU,J.X.Lrm(K.input,K.xn),16);case 16:q=pU.G;case 15:return OE3(J,q,K),((hj=K.config)==null?0:hj.ZHA)&&Ul(K.config.ZHA),X(),pU.return(q|| void 0)}})}; $De=function(J,K){a:{J=J.RX;var n,X=(n=g.f(K,IY7))==null?void 0:n.signal;if(X&&J.B8&&(n=J.B8[X])){var l=n();break a}var x;if((n=(x=g.f(K,iMF))==null?void 0:x.request)&&J.Gu&&(x=J.Gu[n])){l=x();break a}for(l in K)if(J.OP[l]&&(K=J.OP[l])){l=K();break a}l=void 0}if(l!==void 0)return Promise.resolve(l)}; ra8=function(J,K,n){var X,l,x,V,v,Q,S;return g.G(function(r){if(r.Z==1){x=((X=K)==null?void 0:(l=X.KG)==null?void 0:l.identity)||$b;Q=(V=K)==null?void 0:(v=V.KG)==null?void 0:v.sessionIndex;var C=g.TD(J.G.LW(x,{sessionIndex:Q}));return g.d(r,C,2)}S=r.G;return r.return(Promise.resolve(Object.assign({},mor(n),S)))})}; SHp=function(J,K,n){var X,l=(K==null?void 0:(X=K.KG)==null?void 0:X.identity)||$b,x;K=K==null?void 0:(x=K.KG)==null?void 0:x.sessionIndex;J=J.G.LW(l,{sessionIndex:K});return Object.assign({},mor(n),J)}; El=function(){}; bD=function(){}; AB=function(J){this.N=J}; M5=function(){}; N5=function(){}; J3=function(){}; K3=function(){}; g.n3=function(J,K){var n=g.c3.apply(2,arguments);J=J===void 0?0:J;g.qt.call(this,K,n);this.errorType=J;Object.setPrototypeOf(this,this.constructor.prototype)}; oO=function(J,K,n,X){this.G=J;this.Z=K;this.X=n;this.U=X}; RsF=function(J,K,n){if(J.G){var X=IF(k_(K,"key"))||"/UNKNOWN_PATH";J.G.start(X)}X=n;g.ef("wug_networking_gzip_request")&&(X=Ex7(n));var l;return new ((l=J.U)!=null?l:window.Request)(K,X)}; g.lE=function(J,K){if(!XE){var n=gV();T0(n,{NG:uP3,GV:oO});var X={OP:{feedbackEndpoint:JB(M5),modifyChannelNotificationPreferenceEndpoint:JB(N5),playlistEditEndpoint:JB(J3),shareEntityEndpoint:JB(AB),subscribeEndpoint:JB(El),unsubscribeEndpoint:JB(bD),webPlayerShareEntityServiceEndpoint:JB(K3)}},l=AC.getInstance(),x={};l&&(x.client_location=l);J===void 0&&(J=otU());K===void 0&&(K=n.resolve(uP3));Qnq(X,K,J,x);T0(n,{NG:esV,Qq:aM.instance});XE=n.resolve(esV)}return XE}; zse=function(J){var K=new Qj;if(J.interpreterJavascript){var n=G9d(J.interpreterJavascript);n=XQ(n).toString();var X=new h1;Ay(X,6,n);Uv(K,h1,1,X,ui)}else J.interpreterUrl&&(n=I2(J.interpreterUrl),n=yP(n).toString(),X=new v_,Ay(X,4,n),Uv(K,v_,2,X,ui));J.interpreterHash&&Mr(K,3,J.interpreterHash,ui);J.program&&Mr(K,4,J.program,ui);J.globalName&&Mr(K,5,J.globalName,ui);J.clientExperimentsStateBlob&&Mr(K,7,J.clientExperimentsStateBlob,ui);return K}; x9=function(J){var K={};J=J.split("&");J=g.z(J);for(var n=J.next();!n.done;n=J.next())n=n.value.split("="),n.length===2&&(K[n[0]]=n[1]);return K}; YiV=function(){if(g.ef("bg_st_hr"))return"havuokmhhs-0";var J,K=((J=performance)==null?void 0:J.timeOrigin)||0;return"havuokmhhs-"+Math.floor(K)}; jz=function(J){this.G=J}; wC7=function(){return new Promise(function(J){var K=window.top;K.ntpevasrs!==void 0?J(new jz(K.ntpevasrs)):(K.ntpqfbel===void 0&&(K.ntpqfbel=[]),K.ntpqfbel.push(function(n){J(new jz(n))}))})}; I$d=function(){if(oV()){var J=g.Et("PLAYER_VARS",{});if(g.Nz(J,"privembed",!1)!="1"&&!pPV(J)){var K=function(){VY=!0;"google_ad_status"in window?qM("DCLKSTAT",1):qM("DCLKSTAT",2)}; try{g.VR("//static.doubleclick.net/instream/ad_status.js",K)}catch(n){}PN8.push(g.y1.VZ(function(){if(!(VY||"google_ad_status"in window)){try{if(K){var n=""+g.oH(K),X=paf[n];X&&g.x4(X)}}catch(l){}VY=!0;qM("DCLKSTAT",3)}},5E3))}}}; h3=function(){var J=Number(g.Et("DCLKSTAT",0));return isNaN(J)?0:J}; Sz=function(J,K,n){var X=this;this.network=J;this.options=K;this.Z=n;this.G=null;if(K.ry4){var l=new g.Sg;this.G=l.promise;g.qp.ytAtRC&&Mt(function(){var x,V;return g.G(function(v){if(v.Z==1){if(!g.qp.ytAtRC)return v.return();x=vg(null);return g.d(v,QY(X,x),2)}V=v.G;g.qp.ytAtRC&&g.qp.ytAtRC(JSON.stringify(V));g.uF(v)})},2); wC7().then(function(x){var V,v,Q,S;return g.G(function(r){if(r.Z==1)return x.bindInnertubeChallengeFetcher(function(C){return QY(X,vg(C))}),g.d(r,xu(),2); V=r.G;v=x.getLatestChallengeResponse();Q=v.challenge;if(!Q)throw Error("BGE_MACIL");S={challenge:Q,u8:x9(Q),fE:V,bgChallenge:new Qj};l.resolve(S);x.registerChallengeFetchedCallback(function(C){C=C.challenge;if(!C)throw Error("BGE_MACR");C={challenge:C,u8:x9(C),fE:V,bgChallenge:new Qj};X.G=Promise.resolve(C)}); g.uF(r)})})}else K.preload&&iEr(this,new Promise(function(x){g.Nt(0,function(){x($9(X))},0)}))}; vg=function(J){var K={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};J&&(K.interpreterHash=J);return K}; $9=function(J,K){K=K===void 0?0:K;var n,X,l,x,V,v,Q,S,r,C,O,H;return g.G(function(R){switch(R.Z){case 1:n=vg(CX().G);if(g.ef("att_fet_ks"))return g.e8(R,7),g.d(R,QY(J,n),9);g.e8(R,4);return g.d(R,BV8(J,n),6);case 6:V=R.G;l=V.eHq;x=V.Vcm;X=V;g.Ir(R,3);break;case 4:return g.mk(R),g.gG(Error("Failed to fetch attestation challenge after "+(K+" attempts; not retrying for 24h."))),rH(J,864E5),R.return({challenge:"",u8:{},fE:void 0,bgChallenge:void 0});case 9:X=R.G;if(!X)throw Error("Fetching Attestation challenge returned falsy"); if(!X.challenge)throw Error("Missing Attestation challenge");l=X.challenge;x=x9(l);if("c1a"in x&&(!X.bgChallenge||!X.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.Ir(R,3);break;case 7:v=g.mk(R);g.gG(v);K++;if(K>=5)return g.gG(Error("Failed to fetch attestation challenge after "+(K+" attempts; not retrying for 24h."))),rH(J,864E5),R.return({challenge:"",u8:{},fE:void 0,bgChallenge:void 0});Q=1E3*Math.pow(2,K-1)+Math.random()*1E3;return R.return(new Promise(function(w){g.Nt(0, function(){w($9(J,K))},Q)})); case 3:S=Number(x.t)||7200;rH(J,S*1E3);r=void 0;if(!("c1a"in x&&X.bgChallenge)){R.EM(10);break}C=zse(X.bgChallenge);g.e8(R,11);return g.d(R,YEV(CX(),C),13);case 13:g.Ir(R,12);break;case 11:return O=g.mk(R),g.gG(O),R.return({challenge:l,u8:x,fE:r,bgChallenge:C});case 12:return g.e8(R,14),r=new r0({challenge:C,Ki:{Y6:"aGIf"}}),g.d(R,r.CD,16);case 16:g.Ir(R,10);break;case 14:H=g.mk(R),g.gG(H),r=void 0;case 10:return R.return({challenge:l,u8:x,fE:r,bgChallenge:C})}})}; QY=function(J,K){var n;return g.G(function(X){n=J.Z;if(!n||n.qx())return X.return(QY(J.network,K));Ws("att_pna",void 0,"attestation_challenge_fetch");return X.return(new Promise(function(l){n.Dj("publicytnetworkstatus-online",function(){QY(J.network,K).then(l)})}))})}; mDq=function(J){if(!J)throw Error("Fetching Attestation challenge returned falsy");if(!J.challenge)throw Error("Missing Attestation challenge");var K=J.challenge,n=x9(K);if("c1a"in n&&(!J.bgChallenge||!J.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},J,{eHq:K,Vcm:n})}; BV8=function(J,K){var n,X,l,x,V;return g.G(function(v){switch(v.Z){case 1:n=void 0,X=0,l={};case 2:if(!(X<5)){v.EM(4);break}if(!(X>0)){v.EM(5);break}l.Ld=1E3*Math.pow(2,X-1)+Math.random()*1E3;return g.d(v,new Promise(function(Q){return function(S){g.Nt(0,function(){S(void 0)},Q.Ld)}}(l)),5); case 5:return g.e8(v,7),g.d(v,QY(J,K),9);case 9:return x=v.G,v.return(mDq(x));case 7:n=V=g.mk(v),V instanceof Error&&g.gG(V);case 8:X++;l={Ld:void 0};v.EM(2);break;case 4:throw n;}})}; iEr=function(J,K){J.G=K}; pCM=function(J){var K,n,X;return g.G(function(l){if(l.Z==1)return g.d(l,Promise.race([J.G,null]),2);K=l.G;var x=$9(J);J.G=x;(n=K)==null||(X=n.fE)==null||X.dispose();g.uF(l)})}; rH=function(J,K){function n(){var l;return g.G(function(x){l=X-Date.now();return l<1E3?g.d(x,pCM(J),0):(Mt(n,0,Math.min(l,6E4)),x.EM(0))})} var X=Date.now()+K;n()}; LIr=function(J,K){return new Promise(function(n){g.Nt(0,function(){n(K())},J)})}; g.TVq=function(J,K){var n;return g.G(function(X){var l=g.bF("yt.aba.att");return(n=l?l:Sz.instance!==void 0?Sz.instance.X.bind(Sz.instance):null)?X.return(n("ENGAGEMENT_TYPE_PLAYBACK",J,K)):X.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.DD3=function(){var J;return(J=(J=g.bF("yt.aba.att2"))?J:Sz.instance!==void 0?Sz.instance.U.bind(Sz.instance):null)?J():Promise.resolve(!1)}; k0V=function(J,K){var n=g.bF("ytDebugData.callbacks");n||(n={},g.Ed("ytDebugData.callbacks",n));if(g.ef("web_dd_iu")||dDM.includes(J))n[J]=K}; sg=function(){var J=g4V;var K=K===void 0?[]:K;var n=n===void 0?[]:n;K=DCq.apply(null,[dCr.apply(null,g.m(K))].concat(g.m(n)));this.store=gQd(J,void 0,K)}; g.C3=function(J,K,n){for(var X=Object.assign({},J),l=g.z(Object.keys(K)),x=l.next();!x.done;x=l.next()){x=x.value;var V=J[x],v=K[x];if(v===void 0)delete X[x];else if(V===void 0)X[x]=v;else if(Array.isArray(v)&&Array.isArray(V))X[x]=n?[].concat(g.m(V),g.m(v)):v;else if(!Array.isArray(v)&&g.Kn(v)&&!Array.isArray(V)&&g.Kn(V))X[x]=g.C3(V,v,n);else if(typeof v===typeof V)X[x]=v;else return K=new g.qt("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:x,rt_:V,updateValue:v}),g.ko(K), J}return X}; Og=function(J){var K=this;J=J===void 0?[]:J;this.Gc=[];this.Gw=this.ij=0;this.wO=void 0;this.totalLength=0;J.forEach(function(n){K.append(n)})}; caU=function(J,K){return J.Gc.length===0?!1:(J=J.Gc[J.Gc.length-1])&&J.buffer===K.buffer&&J.byteOffset+J.length===K.byteOffset}; Hg=function(J,K){K=g.z(K.Gc);for(var n=K.next();!n.done;n=K.next())J.append(n.value)}; RO=function(J,K,n){return J.split(K).YL.split(n).F$}; uE=function(J){J.wO=void 0;J.ij=0;J.Gw=0}; ez=function(J,K,n){J.isFocused(K);return K-J.Gw+n<=J.Gc[J.ij].length}; YHp=function(J){if(!J.wO){var K=J.Gc[J.ij];J.wO=new DataView(K.buffer,K.byteOffset,K.length)}return J.wO}; zI=function(J,K,n){J=J.ju(K===void 0?0:K,n===void 0?-1:n);K=new Uint8Array(J.length);try{K.set(J)}catch(X){for(n=0;n>10;x=56320|x&1023}IO[l++]=x}}x=String.fromCharCode.apply(String,IO); l<1024&&(x=x.substring(0,l));n.push(x)}return n.join("")}; md=function(J,K){var n;if((n=Bg)==null?0:n.encodeInto)return K=Bg.encodeInto(J,K),K.read>6|192:((l&64512)===55296&&X+1>18|240,K[n++]=l>>12&63|128):K[n++]=l>>12|224,K[n++]=l>>6&63|128),K[n++]=l&63|128)}return n}; p3=function(J){if(Bg)return Bg.encode(J);var K=new Uint8Array(Math.ceil(J.length*1.2)),n=md(J,K);K.lengthn&&(K=K.subarray(0,n));return K}; L3=function(J){this.G=J;this.pos=0;this.Z=-1}; TI=function(J){var K=J.G.getUint8(J.pos);++J.pos;if(K<128)return K;for(var n=K&127,X=1;K>=128;)K=J.G.getUint8(J.pos),++J.pos,X*=128,n+=(K&127)*X;return n}; DP=function(J,K){var n=J.Z;for(J.Z=-1;J.G.Il(J.pos,1);){n<0&&(n=TI(J));var X=n>>3,l=n&7;if(X===K)return!0;if(X>K){J.Z=n;break}n=-1;switch(l){case 0:TI(J);break;case 1:J.pos+=8;break;case 2:X=TI(J);J.pos+=X;break;case 5:J.pos+=4}}return!1}; dH=function(J,K){if(DP(J,K))return TI(J)}; k9=function(J,K){if(DP(J,K))return!!TI(J)}; gH=function(J,K){if(DP(J,K)){K=TI(J);var n=J.G.ju(J.pos,K);J.pos+=K;return n}}; cg=function(J,K){if(J=gH(J,K))return g.iE(J)}; Y9=function(J,K,n){if(J=gH(J,K))return n(new L3(new Og([J])))}; GI=function(J,K){for(var n=[];DP(J,K);)n.push(TI(J));return n.length?n:void 0}; Ug=function(J,K,n){for(var X=[],l;l=gH(J,K);)X.push(n(new L3(new Og([l]))));return X.length?X:void 0}; t3=function(J,K){J=J instanceof Uint8Array?new Og([J]):J;return K(new L3(J))}; tpM=function(J,K,n){if(K&&n&&n.buffer===K.exports.memory.buffer){var X=K.realloc(n.byteOffset,J);if(X)return new Uint8Array(K.exports.memory.buffer,X,J)}J=K?new Uint8Array(K.exports.memory.buffer,K.malloc(J),J):new Uint8Array(J);n&&J.set(n);return J}; yaV=function(J,K){this.X=K;this.pos=0;this.Z=[];this.G=tpM(J===void 0?4096:J,K);this.view=new DataView(this.G.buffer,this.G.byteOffset,this.G.byteLength)}; yY=function(J,K){K=J.pos+K;if(!(J.G.length>=K)){for(var n=J.G.length*2;n268435455){yY(J,4);for(var n=K&1073741823,X=0;X<4;X++)J.view.setUint8(J.pos,n&127|128),n>>=7,J.pos+=1;K=Math.floor(K/268435456)}for(yY(J,4);K>127;)J.view.setUint8(J.pos,K&127|128),K>>=7,J.pos+=1;J.view.setUint8(J.pos,K);J.pos+=1}; f3=function(J,K,n){n!==void 0&&(ZP(J,K*8),ZP(J,n))}; Wg=function(J,K,n){n!==void 0&&f3(J,K,n?1:0)}; aO=function(J,K,n){n!==void 0&&(ZP(J,K*8+2),K=n.length,ZP(J,K),yY(J,K),J.G.set(n,J.pos),J.pos+=K)}; FE=function(J,K,n){n!==void 0&&(ZEe(J,K,Math.ceil(Math.log2(n.length*4+2)/7)),yY(J,n.length*1.2),K=md(n,J.G.subarray(J.pos)),J.pos+K>J.G.length&&(yY(J,K),K=md(n,J.G.subarray(J.pos))),J.pos+=K,f$3(J))}; ZEe=function(J,K,n){n=n===void 0?2:n;ZP(J,K*8+2);J.Z.push(J.pos);J.Z.push(n);J.pos+=n}; f$3=function(J){for(var K=J.Z.pop(),n=J.Z.pop(),X=J.pos-n-K;K--;){var l=K?128:0;J.view.setUint8(n++,X&127|l);X>>=7}}; qV=function(J,K,n,X,l){n&&(ZEe(J,K,l===void 0?3:l),X(J,n),f$3(J))}; g.Eg=function(J,K,n){n=new yaV(4096,n);K(n,J);return new Uint8Array(n.G.buffer,n.G.byteOffset,n.pos)}; g.bE=function(J){var K=new L3(new Og([nK(decodeURIComponent(J))]));J=cg(K,2);K=dH(K,4);var n=WIf[K];if(typeof n==="undefined")throw J=new g.qt("Failed to recognize field number",{name:"EntityKeyHelperError",nnm:K}),g.ko(J),J;return{MC:K,entityType:n,entityId:J}}; g.A3=function(J,K){var n=n===void 0?0:n;var X=new yaV;aO(X,2,p3(J));J=a$p[K];if(typeof J==="undefined")throw n=new g.qt("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:K}),g.ko(n),n;f3(X,4,J);f3(X,5,1);K=new Uint8Array(X.G.buffer,X.G.byteOffset,X.pos);return encodeURIComponent(g.Je(K,n))}; MV=function(J,K,n,X){if(X===void 0)return X=Object.assign({},J[K]||{}),n=(delete X[n],X),X={},Object.assign({},J,(X[K]=n,X));var l={},x={};return Object.assign({},J,(x[K]=Object.assign({},J[K],(l[n]=X,l)),x))}; FIe=function(J,K,n,X,l){var x=J[K];if(x==null||!x[n])return J;X=g.C3(x[n],X,l==="REPEATED_FIELDS_MERGE_OPTION_APPEND");l={};x={};return Object.assign({},J,(x[K]=Object.assign({},J[K],(l[n]=X,l)),x))}; qHe=function(J,K){J=J===void 0?{}:J;switch(K.type){case "ENTITY_LOADED":return K.payload.reduce(function(X,l){var x,V=(x=l.options)==null?void 0:x.persistenceOption;if(V&&V!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&V!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return X;if(!l.entityKey)return g.ko(Error("Missing entity key")),X;if(l.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!l.payload)return l=new g.qt("REPLACE entity mutation is missing a payload",{entityKey:l.entityKey}),g.ko(l),X;var v=g.W8(l.payload); return MV(X,v,l.entityKey,l.payload[v])}if(l.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{l=l.entityKey;try{var Q=g.bE(l).entityType;v=MV(X,Q,l);break a}catch(C){if(C instanceof Error){l=new g.qt("Failed to deserialize entity key",{entityKey:l,originalMessage:C.message});g.ko(l);v=X;break a}throw C;}v=void 0}return v}if(l.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!l.payload)return l=new g.qt("UPDATE entity mutation is missing a payload",{entityKey:l.entityKey}),g.ko(l),X;v=g.W8(l.payload);var S,r;return FIe(X, v,l.entityKey,l.payload[v],(S=l.fieldMask)==null?void 0:(r=S.mergeOptions)==null?void 0:r.repeatedFieldsMergeOption)}return X},J); case "REPLACE_ENTITY":var n=K.payload;return MV(J,n.entityType,n.key,n.EU);case "REPLACE_ENTITIES":return Object.keys(K.payload).reduce(function(X,l){var x=K.payload[l];return Object.keys(x).reduce(function(V,v){return MV(V,l,v,x[v])},X)},J); case "UPDATE_ENTITY":return n=K.payload,FIe(J,n.entityType,n.key,n.EU,n.vYG);default:return J}}; hN=function(J,K,n){return J[K]?J[K][n]||null:null}; vk=function(J){return window.Int32Array?new Int32Array(J):Array(J)}; CO=function(J){g.t.call(this);this.counter=[0,0,0,0];this.Z=new Uint8Array(16);this.G=16;if(!E4M){var K,n=new Uint8Array(256),X=new Uint8Array(256);var l=1;for(K=0;K<256;K++)n[l]=K,X[K]=l,l^=l<<1^(l>>7&&283);QM=new Uint8Array(256);$k=vk(256);Sm=vk(256);rt=vk(256);sp=vk(256);for(var x=0;x<256;x++){l=x?X[255^n[x]]:0;l^=l<<1^l<<2^l<<3^l<<4;l=l&255^l>>>8^99;QM[x]=l;K=l<<1^(l>>7&&283);var V=K^l;$k[x]=K<<24|l<<16|l<<8|V;Sm[x]=V<<24|$k[x]>>>8;rt[x]=l<<24|Sm[x]>>>8;sp[x]=l<<24|rt[x]>>>8}E4M=!0}l=vk(44);for(n= 0;n<4;n++)l[n]=J[4*n]<<24|J[4*n+1]<<16|J[4*n+2]<<8|J[4*n+3];for(X=1;n<44;n++)J=l[n-1],n%4||(J=(QM[J>>16&255]^X)<<24|QM[J>>8&255]<<16|QM[J&255]<<8|QM[J>>>24],X=X<<1^(X>>7&&283)),l[n]=l[n-4]^J;this.key=l}; Op=function(J,K){for(var n=0;n<4;n++)J.counter[n]=K[n*4]<<24|K[n*4+1]<<16|K[n*4+2]<<8|K[n*4+3];J.G=16}; bEe=function(J){for(var K=J.key,n=J.counter[0]^K[0],X=J.counter[1]^K[1],l=J.counter[2]^K[2],x=J.counter[3]^K[3],V=3;V>=0&&!(J.counter[V]=-~J.counter[V]);V--);for(var v,Q,S=4;S<40;)V=$k[n>>>24]^Sm[X>>16&255]^rt[l>>8&255]^sp[x&255]^K[S++],v=$k[X>>>24]^Sm[l>>16&255]^rt[x>>8&255]^sp[n&255]^K[S++],Q=$k[l>>>24]^Sm[x>>16&255]^rt[n>>8&255]^sp[X&255]^K[S++],x=$k[x>>>24]^Sm[n>>16&255]^rt[X>>8&255]^sp[l&255]^K[S++],n=V,X=v,l=Q;J=J.Z;V=K[40];J[0]=QM[n>>>24]^V>>>24;J[1]=QM[X>>16&255]^V>>16&255;J[2]=QM[l>>8&255]^ V>>8&255;J[3]=QM[x&255]^V&255;V=K[41];J[4]=QM[X>>>24]^V>>>24;J[5]=QM[l>>16&255]^V>>16&255;J[6]=QM[x>>8&255]^V>>8&255;J[7]=QM[n&255]^V&255;V=K[42];J[8]=QM[l>>>24]^V>>>24;J[9]=QM[x>>16&255]^V>>16&255;J[10]=QM[n>>8&255]^V>>8&255;J[11]=QM[X&255]^V&255;V=K[43];J[12]=QM[x>>>24]^V>>>24;J[13]=QM[n>>16&255]^V>>16&255;J[14]=QM[X>>8&255]^V>>8&255;J[15]=QM[l&255]^V&255}; u$=function(){if(!Hk&&!g.qH){if(RL)return RL;var J;RL=(J=window.crypto)==null?void 0:J.subtle;var K,n,X;if(((K=RL)==null?0:K.importKey)&&((n=RL)==null?0:n.sign)&&((X=RL)==null?0:X.encrypt))return RL;RL=void 0}}; g.em=function(J){this.Z=J}; AaH=function(J,K,n,X){var l,x;return g.G(function(V){switch(V.Z){case 1:if(J.X){V.EM(2);break}return g.d(V,X.importKey("raw",J.Z,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:J.X=V.G;case 2:return l={name:"AES-CTR",counter:n,length:128},g.d(V,X.encrypt(l,J.X,K),4);case 4:return x=V.G,V.return(new Uint8Array(x))}})}; Mpr=function(J,K,n){J.G||(J.G=new CO(J.Z));Op(J.G,n);return J.G.encrypt(K)}; g.zi=function(J){this.Z=J}; wt=function(J){this.C=new Uint8Array(64);this.X=new Uint8Array(64);this.U=0;this.N=new Uint8Array(64);this.Z=0;this.C.set(J);this.X.set(J);for(J=0;J<64;J++)this.C[J]^=92,this.X[J]^=54;this.reset()}; NVe=function(J,K,n){for(var X=J.W,l=J.G[0],x=J.G[1],V=J.G[2],v=J.G[3],Q=J.G[4],S=J.G[5],r=J.G[6],C=J.G[7],O,H,R,w=0;w<64;)w<16?(X[w]=R=K[n]<<24|K[n+1]<<16|K[n+2]<<8|K[n+3],n+=4):(O=X[w-2],H=X[w-15],R=X[w-7]+X[w-16]+((O>>>17|O<<15)^(O>>>19|O<<13)^O>>>10)+((H>>>7|H<<25)^(H>>>18|H<<14)^H>>>3),X[w]=R),O=C+Pk[w]+R+((Q>>>6|Q<<26)^(Q>>>11|Q<<21)^(Q>>>25|Q<<7))+(Q&S^~Q&r),H=((l>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10))+(l&x^l&V^x&V),C=O+H,v+=O,w++,w<16?(X[w]=R=K[n]<<24|K[n+1]<<16|K[n+2]<<8|K[n+3],n+=4):(O= X[w-2],H=X[w-15],R=X[w-7]+X[w-16]+((O>>>17|O<<15)^(O>>>19|O<<13)^O>>>10)+((H>>>7|H<<25)^(H>>>18|H<<14)^H>>>3),X[w]=R),O=r+Pk[w]+R+((v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+(v&Q^~v&S),H=((C>>>2|C<<30)^(C>>>13|C<<19)^(C>>>22|C<<10))+(C&l^C&x^l&x),r=O+H,V+=O,w++,w<16?(X[w]=R=K[n]<<24|K[n+1]<<16|K[n+2]<<8|K[n+3],n+=4):(O=X[w-2],H=X[w-15],R=X[w-7]+X[w-16]+((O>>>17|O<<15)^(O>>>19|O<<13)^O>>>10)+((H>>>7|H<<25)^(H>>>18|H<<14)^H>>>3),X[w]=R),O=S+Pk[w]+R+((V>>>6|V<<26)^(V>>>11|V<<21)^(V>>>25|V<<7))+(V&v^ ~V&Q),H=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&C^r&l^C&l),S=O+H,x+=O,w++,w<16?(X[w]=R=K[n]<<24|K[n+1]<<16|K[n+2]<<8|K[n+3],n+=4):(O=X[w-2],H=X[w-15],R=X[w-7]+X[w-16]+((O>>>17|O<<15)^(O>>>19|O<<13)^O>>>10)+((H>>>7|H<<25)^(H>>>18|H<<14)^H>>>3),X[w]=R),O=Q+Pk[w]+R+((x>>>6|x<<26)^(x>>>11|x<<21)^(x>>>25|x<<7))+(x&V^~x&v),H=((S>>>2|S<<30)^(S>>>13|S<<19)^(S>>>22|S<<10))+(S&r^S&C^r&C),R=C,C=v,v=R,R=r,r=V,V=R,R=S,S=x,x=R,Q=l+O,l=O+H,w++;J.G[0]=l+J.G[0]|0;J.G[1]=x+J.G[1]|0;J.G[2]=V+J.G[2]|0;J.G[3]= v+J.G[3]|0;J.G[4]=Q+J.G[4]|0;J.G[5]=S+J.G[5]|0;J.G[6]=r+J.G[6]|0;J.G[7]=C+J.G[7]|0}; KL3=function(J){var K=new Uint8Array(32),n=64-J.Z;J.Z>55&&(n+=64);var X=new Uint8Array(n);X[0]=128;for(var l=J.U*8,x=1;x<9;x++){var V=l%256;X[n-x]=V;l=(l-V)/256}J.update(X);for(n=0;n<8;n++)K[n*4]=J.G[n]>>>24,K[n*4+1]=J.G[n]>>>16&255,K[n*4+2]=J.G[n]>>>8&255,K[n*4+3]=J.G[n]&255;J43(J);return K}; J43=function(J){J.G=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];J.W=[];J.W.length=64;J.U=0;J.Z=0}; no3=function(J){this.G=J}; ooF=function(J,K,n){J=new wt(J.G);J.update(K);J.update(n);K=KL3(J);J.update(J.C);J.update(K);K=KL3(J);J.reset();return K}; XxU=function(J){this.Z=J}; lxV=function(J,K,n,X){var l,x,V;return g.G(function(v){switch(v.Z){case 1:if(J.G){v.EM(2);break}return g.d(v,X.importKey("raw",J.Z,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:J.G=v.G;case 2:return l=new Uint8Array(K.length+n.length),l.set(K),l.set(n,K.length),x={name:"HMAC",hash:"SHA-256"},g.d(v,X.sign(x,J.G,l),4);case 4:return V=v.G,v.return(new Uint8Array(V))}})}; xq7=function(J,K,n){J.X||(J.X=new no3(J.Z));return ooF(J.X,K,n)}; jZV=function(J,K,n){var X,l;return g.G(function(x){if(x.Z==1){X=u$();if(!X)return x.return(xq7(J,K,n));g.e8(x,3);return g.d(x,lxV(J,K,n,X),5)}if(x.Z!=3)return x.return(x.G);l=g.mk(x);g.gG(l);Hk=!0;return x.return(xq7(J,K,n))})}; h7H=function(J){for(var K="",n=0;n=1?J[J.length-1]:null;for(var X=g.z(J),l=X.next();!l.done;l=X.next())if(l=l.value,l.width&&l.height&&(n&&l.width>=K||!n&&l.height>=K))return l;for(K=J.length-1;K>=0;K--)if(n&&J[K].width||!n&&J[K].height)return J[K];return J[0]}; i$=function(){this.state=1;this.fE=null;this.jz=void 0}; e7M=function(J,K,n,X,l,x){var V=V===void 0?"trayride":V;n?(J.RZ(2),g.VR(n,function(){if(window[V])utH(J,X,V,l);else{J.RZ(3);var v=me8(n),Q=document.getElementById(v);Q&&(ia3(v),Q.parentNode.removeChild(Q));g.gG(new g.qt("BL:ULB",""+n))}},x)):K?(x=g.ME("SCRIPT"),K instanceof oN?(x.textContent=XQ(K),jO(x)):x.textContent=K,x.nonce=nl(document),document.head.appendChild(x),document.head.removeChild(x),window[V]?utH(J,X,V,l):(J.RZ(4),g.gG(new g.qt("BL:ULBJ")))):g.gG(new g.qt("BL:ULV"))}; utH=function(J,K,n,X){J.RZ(5);var l=!!J.jz&&z78.includes(g.PH(J.jz)||"");try{var x=new r0({program:K,globalName:n,Ki:{disable:!g.ef("att_web_record_metrics")||!g.ef("att_skip_metrics_for_cookieless_domains_ks")&&l,Y6:"aGIf"}});x.CD.then(function(){J.RZ(6);X&&X(K)}); J.AG(x)}catch(V){J.RZ(7),V instanceof Error&&g.gG(V)}}; Bk=function(){var J=g.bF("yt.abuse.playerAttLoader");return J&&["bgvma","bgvmb","bgvmc"].every(function(K){return K in J})?J:null}; mc=function(){i$.apply(this,arguments)}; pO=function(){}; wx3=function(J,K,n){for(var X=!1,l=g.z(J.zQ.entries()),x=l.next();!x.done;x=l.next())x=g.z(x.value).next().value,x.slotType==="SLOT_TYPE_PLAYER_BYTES"&&x.VG==="core"&&(X=!0);if(X){a:if(!n){J=g.z(J.zQ.entries());for(n=J.next();!n.done;n=J.next())if(X=g.z(n.value),n=X.next().value,X=X.next().value,n.slotType==="SLOT_TYPE_IN_PLAYER"&&n.VG==="core"){n=X.layoutId;break a}n=void 0}n?K.wP(n):Se("No triggering layout ID available when attempting to mute.")}}; LO=function(J,K){this.ey=J;this.lB=K}; Ti=function(){}; Dy=function(){}; IxH=function(J){g.t.call(this);var K=this;this.eh=J;this.G=new Map;dt(this,"commandExecutorCommand",function(n,X,l){P2U(K,n.commands,X,l)}); dt(this,"clickTrackingParams",function(){})}; iZF=function(J,K){dt(J,K.V8(),function(n,X,l){K.Ym(n,X,l)})}; dt=function(J,K,n){J.o4();J.G.get(K)&&g.ko(Error("Extension name "+K+" already registered"));J.G.set(K,n)}; P2U=function(J,K,n,X){K=K===void 0?[]:K;J.o4();var l=[],x=[];K=g.z(K);for(var V=K.next();!V.done;V=K.next())V=V.value,g.f(V,BGf)||g.f(V,mqH)?l.push(V):x.push(V);l=g.z(l);for(K=l.next();!K.done;K=l.next())kk(J,K.value,n,X);x=g.z(x);for(l=x.next();!l.done;l=x.next())kk(J,l.value,n,X)}; kk=function(J,K,n,X){J.o4();K.loggingUrls&&pxp(J,"loggingUrls",K.loggingUrls,n,X);K=g.z(Object.entries(K));for(var l=K.next();!l.done;l=K.next()){var x=g.z(l.value);l=x.next().value;x=x.next().value;l==="openPopupAction"?J.eh.get().Vx("innertubeCommand",{openPopupAction:x}):l==="confirmDialogEndpoint"?J.eh.get().Vx("innertubeCommand",{confirmDialogEndpoint:x}):LLH.hasOwnProperty(l)||pxp(J,l,x,n,X)}}; pxp=function(J,K,n,X,l){if((J=J.G.get(K))&&typeof J==="function")try{J(n,X,l)}catch(x){g.ko(x)}else K=new g.qt("Unhandled field",K),g.gG(K)}; gt=function(J,K,n){this.KH=J;this.G=K;this.NQ=n;T0(gV(),{NG:HZq,GV:OZV})}; ck=function(J){this.value=J}; Yk=function(J){this.value=J}; Gi=function(J){this.value=J}; Up=function(J){this.value=J}; tN=function(J){this.value=J}; yM=function(J){this.value=J}; Zy=function(J){this.value=J}; fO=function(){ck.apply(this,arguments)}; Wk=function(J){this.value=J}; aL=function(J){this.value=J}; FO=function(J){this.value=J}; qi=function(J){this.value=J}; Ep=function(J){this.value=J}; b$=function(J){this.value=J}; AN=function(J){this.value=J}; Mi=function(J){this.value=J}; Ni=function(J){this.value=J}; JV=function(J){this.value=J}; Kx=function(){ck.apply(this,arguments)}; nx=function(J){this.value=J}; o7=function(J){this.value=J}; X$=function(J){this.value=J}; lT=function(J){this.value=J}; xl=function(J){this.value=J}; jB=function(J){this.value=J}; V$=function(J){this.value=J}; hV=function(J){this.value=J}; vy=function(J){this.value=J}; Q$=function(J){this.value=J}; $l=function(J){this.value=J}; SB=function(J){this.value=J}; rD=function(J){this.value=J}; sO=function(J){this.value=J}; Cx=function(J){this.value=J}; OO=function(J){this.value=J}; Hy=function(J){this.value=J}; R7=function(J){this.value=J}; uT=function(J){this.value=J}; eB=function(J){this.value=J}; zU=function(J){this.value=J}; wD=function(J){this.value=J}; Py=function(J){this.value=J}; I7=function(J){this.value=J}; iT=function(J){this.value=J}; By=function(J){this.value=J}; mK=function(J){this.value=J}; px=function(J){this.value=J}; Lx=function(J){this.value=J}; TU=function(J){this.value=J}; DU=function(J){this.value=J}; dD=function(J){this.value=J}; kl=function(J){this.value=J}; gD=function(J){this.value=J}; cy=function(J){this.value=J}; Yl=function(J){this.value=J}; GU=function(J){this.value=J}; UO=function(J){this.value=J}; tV=function(){ck.apply(this,arguments)}; y$=function(J){this.value=J}; ZU=function(){ck.apply(this,arguments)}; fx=function(){ck.apply(this,arguments)}; Wy=function(){ck.apply(this,arguments)}; a7=function(){ck.apply(this,arguments)}; F$=function(){ck.apply(this,arguments)}; qT=function(J){this.value=J}; EO=function(J){this.value=J}; bT=function(J){this.value=J}; AV=function(J){this.value=J}; MT=function(J){this.value=J}; J6=function(J,K,n){if(n&&!n.includes(J.layoutType))return!1;K=g.z(K);for(n=K.next();!n.done;n=K.next())if(!NT(J.clientMetadata,n.value))return!1;return!0}; KQ=function(){return""}; TGq=function(J,K){switch(J){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 K(J),8}}; nQ=function(J,K,n,X){X=X===void 0?!1:X;QF.call(this,J);this.nI=n;this.D_=X;this.args=[];K&&this.args.push(K)}; b=function(J,K,n,X){X=X===void 0?!1:X;QF.call(this,J);this.nI=n;this.D_=X;this.args=[];K&&this.args.push(K)}; og=function(J){var K=new Map;J.forEach(function(n){K.set(n.G(),n)}); this.G=K}; NT=function(J,K){return J.G.has(K)}; XV=function(J,K){J=J.G.get(K);if(J!==void 0)return J.get()}; lO=function(J){return Array.from(J.G.keys())}; xG=function(J,K,n){if(n&&n!==J.slotType)return!1;K=g.z(K);for(n=K.next();!n.done;n=K.next())if(!NT(J.clientMetadata,n.value))return!1;return!0}; dqU=function(J){var K;return((K=Dqr.get(J))==null?void 0:K.oe)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; Vg=function(J,K){var n={type:K.slotType,controlFlowManagerLayer:kjf.get(K.VG)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};K.slotEntryTrigger&&(n.entryTriggerType=K.slotEntryTrigger.triggerType);K.slotPhysicalPosition!==1&&(n.slotPhysicalPosition=K.slotPhysicalPosition);if(J){n.debugData={slotId:K.slotId};if(J=K.slotEntryTrigger)n.debugData.slotEntryTriggerData=j1(J);J=K.slotFulfillmentTriggers;n.debugData.fulfillmentTriggerData=[];J=g.z(J);for(var X=J.next();!X.done;X=J.next())n.debugData.fulfillmentTriggerData.push(j1(X.value)); K=K.slotExpirationTriggers;n.debugData.expirationTriggerData=[];K=g.z(K);for(J=K.next();!J.done;J=K.next())n.debugData.expirationTriggerData.push(j1(J.value))}return n}; goq=function(J,K){var n={type:K.layoutType,controlFlowManagerLayer:kjf.get(K.VG)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};J&&(n.debugData={layoutId:K.layoutId});return n}; j1=function(J,K){var n={type:J.triggerType};K!=null&&(n.category=K);J.triggeringSlotId!=null&&(n.triggerSourceData||(n.triggerSourceData={}),n.triggerSourceData.associatedSlotId=J.triggeringSlotId);J.triggeringLayoutId!=null&&(n.triggerSourceData||(n.triggerSourceData={}),n.triggerSourceData.associatedLayoutId=J.triggeringLayoutId);return n}; c48=function(J,K,n,X){K={opportunityType:K};J&&(X||n)&&(X=g.ff(X||[],function(l){return Vg(J,l)}),K.debugData=Object.assign({},n&&n.length>0?{associatedSlotId:n}:{},X.length>0?{slots:X}:{})); return K}; vb=function(J,K){return function(n){return Ymr(h6(J),K.slotId,K.slotType,K.slotPhysicalPosition,K.VG,K.slotEntryTrigger,K.slotFulfillmentTriggers,K.slotExpirationTriggers,n.layoutId,n.layoutType,n.VG)}}; Ymr=function(J,K,n,X,l,x,V,v,Q,S,r){return{adClientDataEntry:{slotData:Vg(J,{slotId:K,slotType:n,slotPhysicalPosition:X,VG:l,slotEntryTrigger:x,slotFulfillmentTriggers:V,slotExpirationTriggers:v,clientMetadata:new og([])}),layoutData:goq(J,{layoutId:Q,layoutType:S,VG:r,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],BM:[],dN:new Map,clientMetadata:new og([]),U_:{}})}}}; $G=function(J){this.xF=J;J=Math.random();var K=this.xF.get();K=g.Qg(K.B.S().experiments,"html5_debug_data_log_probability");K=Number.isFinite(K)&&K>=0&&K<=1?K:0;this.G=J1){g.gG(new g.qt("Exit already started",{current:J.currentState}));var n=!1}else n=!0;if(!n)return!1;J.currentState=2;J.G=K;return!0}; Hf=function(J){if(J.currentState!==2)return!1;J.currentState=3;return!0}; rCk=function(J,K){var n=new Map;J=g.z(J);for(var X=J.next();!X.done;X=J.next()){X=X.value;if(X.layoutType==="LAYOUT_TYPE_MEDIA")var l="v";else X.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(l=XV(X.clientMetadata,"metadata_type_linked_in_player_layout_type"),l=l==="LAYOUT_TYPE_ENDCAP"||l==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":l==="LAYOUT_TYPE_SURVEY"?"s":l==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):l="u";n.set(X.layoutId,l);if(l==="u"){var x={};l=K;X=(x.c=X.layoutId,x);l.B.Zm("uct",X)}}J= K.qB();Rh={contentCpn:J,dO:n};X={};n=(X.ct=n.size,X.c=J,X);K.B.Zm("acc",n)}; svH=function(){Rh={contentCpn:"",dO:new Map}}; ux=function(J){var K;return(K=Rh.dO.get(J))!=null?K:"u"}; e$=function(J,K,n){J.B.Zm(K,n);CUH(J)}; O17=function(J){var K=J.layoutId,n=J.v$;if(J.m5){var X={};e$(J.KH,"slso",(X.ec=K,X.is=n,X.ctp=ux(K),X))}}; z2=function(J){var K=J.layoutId,n=J.v$;if(J.m5){var X={};e$(J.KH,"slse",(X.ec=K,X.is=n,X.ctp=ux(K),X))}}; H1r=function(J){var K=J.layoutId,n=J.v$,X=J.KH;J.m5&&(J={},e$(X,"sleo",(J.xc=K,J.is=n,J.ctp=ux(K),J)),CUH(X))}; RBM=function(J){var K=J.cpn,n=J.KH;J=J.v$;var X=n.qB(),l={};e$(n,"ce",(l.ec=K,l.ia=K!==X,l.r=Rh.dO.has(K),l.is=J,l.ctp=ux(K),l))}; CUH=function(J){if(J.qB()!==Rh.contentCpn){var K={};K=(K.c=Rh.contentCpn,K);J.B.Zm("ccm",K)}}; ua8=function(J){var K=J.cpn,n=J.KH;J=J.v$;var X=n.qB(),l={};e$(n,"cx",(l.xc=K,l.ia=K!==X,l.r=Rh.dO.has(K),l.is=J,l.ctp=ux(K),l))}; eBU=function(J){this.params=J;this.G=new Set}; zBU=function(J,K,n){if(!J.G.has(K)){J.G.add(K);var X={};J.params.gG.zA(K,Object.assign({},n,(X.p_ac=J.params.adCpn,X.p_isv=J.params.eb&&J.params.VB,X)))}}; Pf=function(J,K,n){if(wY(J.params.gG.xF.get(),!0)){var X=n.flush,l={};zBU(J,K,(l.cts=n.currentTimeSec,l.f=X,l))}}; wz3=function(J,K){this.KH=J;this.xF=K}; Ih=function(J){var K=[];if(J){J=g.z(Object.entries(J));for(var n=J.next();!n.done;n=J.next()){var X=g.z(n.value);n=X.next().value;X=X.next().value;X!==void 0&&(X=typeof X==="boolean"?""+ +X:(""+X).replace(/[:,=]/g,"_"),K.push(n+"."+X))}}return K.join(";")}; ix=function(J,K,n){K=K===void 0?{}:K;this.errorCode=J;this.details=K;this.severity=n===void 0?0:n}; Bf=function(J){return J===1||J===2}; mx=function(J,K){K=K===void 0?0:K;if(J instanceof ix)return J;J=J&&J instanceof Error?J:Error(""+J);Bf(K)?g.ko(J):g.gG(J);return new ix(K===1?"player.fatalexception":"player.exception",{name:""+J.name,message:""+J.message},K)}; PU7=function(J,K){function n(){var X=g.c3.apply(0,arguments);J.removeEventListener("playing",n);K.apply(null,g.m(X))} J.addEventListener("playing",n)}; pJ=function(){var J=g.bF("yt.player.utils.videoElement_");J||(J=g.ME("VIDEO"),g.Ed("yt.player.utils.videoElement_",J));return J}; LJ=function(J){var K=pJ();return!!(K&&K.canPlayType&&K.canPlayType(J))}; DR=function(J){if(/opus/.test(J)&&g.T2&&!im("38")&&!g.ae())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(J);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(J);if(/webm/.test(J)&&!Is3())return!1;J==='audio/mp4; codecs="mp4a.40.2"'&&(J='video/mp4; codecs="avc1.4d401f"');return!!LJ(J)}; IBp=function(J){try{var K=DR('video/mp4; codecs="avc1.42001E"')||DR('video/webm; codecs="vp9"');return(DR('audio/mp4; codecs="mp4a.40.2"')||DR('audio/webm; codecs="opus"'))&&(K||!J)||LJ('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(n){return"html5.missingapi"}}; dY=function(){var J=pJ();return!(!J.webkitSupportsPresentationMode||typeof J.webkitSetPresentationMode!=="function")}; k6=function(){var J=pJ();try{var K=J.muted;J.muted=!K;return J.muted!==K}catch(n){}return!1}; i17=function(){var J;return((J=navigator.connection)==null?void 0:J.type)||""}; g.gY=function(){mG.apply(this,arguments)}; cf=function(J,K,n,X,l,x,V,v){this.sampleRate=J===void 0?0:J;this.numChannels=K===void 0?0:K;this.spatialAudioType=n===void 0?"SPATIAL_AUDIO_TYPE_NONE":n;this.G=X===void 0?!1:X;this.X=l;this.U=x;this.audioQuality=V===void 0?"AUDIO_QUALITY_UNKNOWN":V;this.Z=v===void 0?!1:v}; Uu=function(J,K,n,X,l,x,V,v,Q){this.width=J;this.height=K;this.quality=x||Y6(J,K);this.qualityOrdinal=g.G2[this.quality];this.fps=n||0;this.stereoLayout=!l||X!=null&&X!=="UNKNOWN"&&X!=="RECTANGULAR"?0:l;this.projectionType=X?X==="EQUIRECTANGULAR"&&l===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":X:"UNKNOWN";(J=V)||(J=g.G2[this.quality],J===0?J="Auto":(K=this.fps,n=this.projectionType,J=J.toString()+(n==="EQUIRECTANGULAR"||n==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||n==="MESH"?"s":"p")+(K>55?"60":K>49?"50": K>39?"48":"")));this.qualityLabel=J;this.G=v||"";this.primaries=Q||""}; Y6=function(J,K){var n=Math.max(J,K);J=Math.min(J,K);K=tl[0];for(var X=0;X=Math.floor(x*16/9)*1.3||J>=x*1.3)return K;K=l}return"tiny"}; Wf=function(J,K,n){n=n===void 0?{}:n;this.id=J;this.mimeType=K;n.OM>0||(n.OM=16E3);Object.assign(this,n);J=g.z(this.id.split(";"));this.itag=J.next().value;this.G=J.next().value;this.containerType=ZR(K);this.YF=fJ[this.itag]||""}; ah=function(J){return J.YF==="9"||J.YF==="("||J.YF==="9h"||J.YF==="(h"}; BfH=function(J){return J.YF==="H"||J.YF==="h"}; Fs=function(J){return J.YF==="9h"||J.YF==="(h"}; mxV=function(J){return!!J.rE&&!!J.rE.fairplay&&(J.YF==="("||J.YF==="(h"||J.YF==="A"||J.YF==="MEAC3")||qR&&!!J.rE&&J.YF==="1e"}; Eu=function(J){return J.YF==="1"||J.YF==="1h"||qR&&J.YF==="1e"}; bx=function(J){return J.YF==="mac3"||J.YF==="meac3"||J.YF==="m"||J.YF==="i"}; Al=function(J){return J.YF==="MAC3"||J.YF==="MEAC3"||J.YF==="M"||J.YF==="I"}; g.MR=function(J){return J.containerType===1}; pzq=function(J){return J.YF==="("||J.YF==="(h"||J.YF==="H"||qR&&J.YF==="1e"}; NR=function(J){return J.mimeType==="application/x-mpegURL"}; g.JF=function(J,K){return{itag:+J.itag,lmt:K?0:J.lastModified,xtags:J.G||""}}; LB8=function(J){var K=navigator.mediaCapabilities;if(K==null||!K.decodingInfo||J.YF==="f")return Promise.resolve();var n={type:J.audio&&J.video?"file":"media-source"};J.video&&(n.video={contentType:J.mimeType,width:J.video.width||640,height:J.video.height||360,bitrate:J.OM*8||1E6,framerate:J.video.fps||30});J.audio&&(n.audio={contentType:J.mimeType,channels:""+(J.audio.numChannels||2),bitrate:J.OM*8||128E3,samplerate:J.audio.sampleRate||44100});return K.decodingInfo(n).then(function(X){J.Z=X})}; KP=function(J){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(J)}; nP=function(J){return/(vp9|vp09|vp8|avc1|av01)/.test(J)}; ox=function(J){return J.includes("vtt")||J.includes("text/mp4")}; ZR=function(J){return J.indexOf("/mp4")>=0?1:J.indexOf("/webm")>=0?2:J.indexOf("/x-flv")>=0?3:J.indexOf("/vtt")>=0?4:0}; XJ=function(J,K,n,X,l,x){var V=new cf;K in g.G2||(K="small");K==="light"&&(K="tiny");X&&l?(l=Number(l),X=Number(X)):(l=g.G2[K],X=Math.round(l*16/9));x=new Uu(X,l,0,null,void 0,K,x);J=unescape(J.replace(/"/g,'"'));return new Wf(n,J,{audio:V,video:x})}; lQ=function(J){var K="id="+J.id;J.video&&(K+=", res="+J.video.qualityLabel);var n,X;return K+", byterate=("+((n=J.GW)==null?void 0:n.toFixed(0))+", "+((X=J.OM)==null?void 0:X.toFixed(0))+")"}; xc=function(J,K){return{start:function(n){return J[n]}, end:function(n){return K[n]}, length:J.length}}; Tfr=function(J,K,n){for(var X=[],l=[],x=0;x=K)return n}catch(X){}return-1}; hF=function(J,K){return Vd(J,K)>=0}; Dxk=function(J,K){if(!J)return NaN;K=Vd(J,K);return K>=0?J.start(K):NaN}; v5=function(J,K){if(!J)return NaN;K=Vd(J,K);return K>=0?J.end(K):NaN}; Qd=function(J){return J&&J.length?J.end(J.length-1):NaN}; $c=function(J){return Qd(J)>0}; Sy=function(J,K){J=v5(J,K);return J>=0?J-K:0}; rc=function(J,K,n){for(var X=[],l=[],x=0;xn||(X.push(Math.max(K,J.start(x))-K),l.push(Math.min(n,J.end(x))-K));return xc(X,l)}; s_=function(J,K,n,X){g.hi.call(this);var l=this;this.z4=J;this.start=K;this.end=n;this.isActive=X;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.Sf={error:function(){!l.o4()&&l.isActive&&l.publish("error",l)}, updateend:function(){!l.o4()&&l.isActive&&l.publish("updateend",l)}}; this.z4.Ly(this.Sf);this.XW=this.isActive}; O_=function(J,K,n,X,l,x){g.hi.call(this);var V=this;this.jl=J;this.Nx=K;this.id=n;this.containerType=X;this.YF=l;this.VB=x;this.CT=this.F4=this.mV=null;this.eL=!1;this.appendWindowStart=this.timestampOffset=0;this.WC=xc([],[]);this.DR=!1;this.IU=[];this.T_=CP?[]:void 0;this.L9=function(Q){return V.publish(Q.type,V)}; var v;if((v=this.jl)==null?0:v.addEventListener)this.jl.addEventListener("updateend",this.L9),this.jl.addEventListener("error",this.L9)}; fP=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; W5=function(J,K){this.Ax=J;this.G=K===void 0?!1:K;this.Z=!1}; ax=function(J,K,n){n=n===void 0?!1:n;g.t.call(this);this.mediaElement=J;this.tj=K;this.isView=n;this.N=0;this.U=!1;this.C=!0;this.K=0;this.callback=null;this.L=!1;this.tj||(this.Nx=g.U(this.mediaElement.xr()));this.events=new g.gY(this);g.Z(this,this.events);this.X=new W5(this.tj?window.URL.createObjectURL(this.tj):this.Nx.webkitMediaSourceURL,!0);J=this.tj||this.Nx;p0(this.events,J,["sourceopen","webkitsourceopen"],this.noQ);p0(this.events,J,["sourceclose","webkitsourceclose"],this.uLF);this.W={updateend:this.h3}}; dxp=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; k_7=function(J,K){FJ(J)?g.wT(function(){K(J)}):J.callback=K}; gDF=function(J,K,n){if(qb){var X;E_(J.mediaElement,{l:"mswssb",sr:(X=J.mediaElement.dQ)==null?void 0:X.QJ()},!1);K.Ly(J.W,J);n.Ly(J.W,J)}J.G=K;J.Z=n;g.Z(J,K);g.Z(J,n)}; bQ=function(J){return!!J.G||!!J.Z}; FJ=function(J){try{return AF(J)==="open"}catch(K){return!1}}; AF=function(J){if(J.tj)return J.tj.readyState;switch(J.Nx.webkitSourceState){case J.Nx.SOURCE_OPEN:return"open";case J.Nx.SOURCE_ENDED:return"ended";default:return"closed"}}; Mb=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; cCk=function(J){FJ(J)&&(J.tj?J.tj.endOfStream():J.Nx.webkitSourceEndOfStream(J.Nx.EOS_NO_ERROR))}; YCd=function(J,K,n,X){if(!J.G||!J.Z)return null;var l=J.G.isView()?J.G.z4:J.G,x=J.Z.isView()?J.Z.z4:J.Z,V=new ax(J.mediaElement,J.tj,!0);V.X=J.X;gDF(V,new s_(l,K,n,X),new s_(x,K,n,X));FJ(J)||J.G.uB(J.G.Ti());return V}; G_3=function(J){var K;(K=J.G)==null||K.nC();var n;(n=J.Z)==null||n.nC();J.C=!1}; Nb=function(){var J=this;this.jq=this.EG=uqU;this.promise=new g.If(function(K,n){J.EG=K;J.jq=n})}; Jx=function(){g.t.call(this);this.m2=!1;this.Ax=null;this.W=this.N=!1;this.U=new g.S9;this.dQ=null;g.Z(this,this.U)}; Kh=function(J){J=J.OV();return J.length<1?NaN:J.end(J.length-1)}; UxV=function(J){!J.Z&&dxp()&&(J.X?J.X.then(function(){return UxV(J)}):J.Gy()||(J.Z=J.B6()))}; te3=function(J){J.Z&&(J.Z.dispose(),J.Z=void 0)}; E_=function(J,K,n){var X;((X=J.dQ)==null?0:X.Pw())&&J.dQ.Zm("rms",K,n===void 0?!1:n)}; yCq=function(J,K,n){J.isPaused()||J.getCurrentTime()>K||n>10||(J.play(),g.Ca(function(){yCq(J,J.getCurrentTime(),n+1)},500))}; Z1V=function(J,K){J.Ax&&J.Ax.equals(K)||(J.Ax&&J.Ax.dispose(),J.Ax=K)}; nh=function(J){return Sy(J.Ya(),J.getCurrentTime())}; fB8=function(J,K){if(J.X7()===0||J.hasError())return!1;var n=J.getCurrentTime()>0;return K>=0&&(J=J.OV(),J.length||!n)?hF(J,K):n}; oK=function(J){J.Gy()&&(J.dQ&&J.dQ.Z_("rs_s"),Fz&&J.getCurrentTime()>0&&J.seekTo(0),J.Gm(),J.load(),Z1V(J,null));delete J.X}; Xj=function(J){switch(J.TR()){case 2:return"progressive.net.retryexhausted";case 3:return J=J.Zo(),(J==null?0:J.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||WBV&&(J==null?0:J.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.lH=function(J,K,n){this.V2=K===void 0?null:K;this.seekSource=n===void 0?null:n;this.state=J||64}; xI=function(J,K,n){n=n===void 0?!1:n;return aBk(J,K.getCurrentTime(),(0,g.a)(),nh(K),n)}; jR=function(J,K,n,X){if(!(K===J.state&&n===J.V2&&X===J.seekSource||K!==void 0&&(K&128&&!n||K&2&&K&16))){var l;if(l=K)l=K||J.state,l=!!(l&16||l&32);J=new g.lH(K,n,l?X?X:J.seekSource:null)}return J}; Vr=function(J,K,n){return jR(J,J.state|K,null,n===void 0?null:n)}; hx=function(J,K){return jR(J,J.state&~K,null,null)}; vh=function(J,K,n,X){return jR(J,(J.state|K)&~n,null,X===void 0?null:X)}; g.E=function(J,K){return!!(J.state&K)}; g.Qr=function(J,K){return K.state===J.state&&K.V2===J.V2}; $I=function(J){return J.isPlaying()&&!g.E(J,16)&&!g.E(J,32)}; SR=function(J){return g.E(J,128)?-1:g.E(J,2)?0:g.E(J,2048)?3:g.E(J,64)?-1:g.E(J,1)&&!g.E(J,32)?3:g.E(J,8)?1:g.E(J,4)?2:-1}; s9=function(J,K,n,X,l,x,V,v,Q,S,r,C,O,H,R,w,P){g.t.call(this);var B=this;this.q1=J;this.slot=K;this.layout=n;this.NQ=X;this.pU=l;this.Jj=x;this.bx=V;this.n9=v;this.cw=Q;this.VL=S;this.position=C;this.N=O;this.xF=H;this.hT=R;this.gK=w;this.context=P;this.Ok=!0;this.C=!1;this.I5="not_rendering";this.Z=!1;this.X=new S$;J=XV(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.yG=new PL(n.dN,this.NQ,J,n.layoutId);var p;J=((p=rq(this))==null?void 0:p.progressCommands)||[];this.U=new Wsk(Q, J,n.layoutId,function(){return B.LC()}); this.G=new eBU({adCpn:this.layout.layoutId,gG:P.gG,eb:this.hT,VB:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; Ch=function(J){return{layoutId:J.SA(),v$:J.hT,KH:J.Jj.get(),m5:J.A7()}}; O9=function(J,K){return K.layoutId!==J.layout.layoutId?(J.q1.OB(J.slot,K,new nQ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+J.layout.layoutId+("and LayoutType: "+J.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; Hh=function(J){J.I5="rendering_start_requested";J.VL(-1)}; rq=function(J){return XV(J.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; FB8=function(J){Se("Received layout exit signal when not in layout exit flow.",J.slot,J.layout)}; qC3=function(J){var K;return((K=RK(J.Jj.get(),2))==null?void 0:K.clientPlaybackNonce)||""}; uH=function(J,K){switch(K){case "normal":J.R5("complete");break;case "skipped":J.R5("skip");break;case "abandoned":LG(J.yG,"impression")&&J.R5("abandon")}}; eR=function(J,K){J.C||(K=new g.rf(K.state,new g.lH),J.C=!0);return K}; zZ=function(J,K){hl(K)?J.VL(1):g.C1(K,4)&&!g.C1(K,2)&&J.Jb();sC(K,4)<0&&!(sC(K,2)<0)&&J.kV()}; EDV=function(J){J.position===0&&(J.n9.get(),J=XV(J.layout.clientMetadata,"metadata_type_ad_placement_config").kind,J={adBreakType:wq(J)},Ul("ad_bl"),g.tB(J))}; Ph=function(J,K){mX(J.yG,K,!J.Z)}; AC8=function(J){var K;return(((K=rq(J))==null?void 0:K.progressCommands)||[]).findIndex(function(n){return!!g.f(n==null?void 0:n.command,b1M)})!==-1}; IK=function(J,K){var n=XV(J.clientMetadata,"metadata_type_eligible_for_ssap");return n===void 0?(Se("Expected SSAP eligibility in PlayerBytes factory",J),!1):K.A7(n)}; iH=function(J,K){if(!FV(K.get(),"html5_ssap_pass_transition_reason"))return 3;switch(J){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return Se("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return Se("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:J}),3;default:AK(J,"unknown layoutExitReason")}}; Me8=function(J){Se("getExitReason: unexpected reason",void 0,void 0,{reason:J})}; Bh=function(J,K){if(FV(K.get(),"html5_ssap_pass_transition_reason"))switch(J){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return Me8(J),"abandoned";case 3:case 1:return Me8(J),"error";default:AK(J,"unexpected transition reason")}else switch(J){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return Se("getExitReason: unexpected reason",void 0,void 0,{reason:J}),"error";default:AK(J,"unexpected transition reason")}}; g.mC=function(J,K,n){ZS(J,n)||Ws(J,K,n);ZS(J,"video_to_ad")||Ws(J,K,"video_to_ad");ZS(J,"ad_to_video")||Ws(J,K,"ad_to_video");ZS(J,"ad_to_ad")||Ws(J,K,"ad_to_ad")}; ph=function(J,K,n,X,l,x,V,v,Q,S,r,C,O,H,R,w,P,B){s9.call(this,J,K,n,X,l,x,V,v,S,r,C,O,H,R,w,P,B);var p=this;this.eh=Q;this.XQ=C;this.Qb=!0;this.V7=this.pJ=0;this.aQ=s8(function(){O17(Ch(p));p.q1.gN(p.slot,p.layout)}); this.pW=s8(function(){H1r(Ch(p));p.I5!=="rendering_stop_requested"&&p.XQ(p);p.layoutExitReason?p.q1.hH(p.slot,p.layout,p.layoutExitReason):FB8(p)}); this.R9=new g.cV(200);this.R9.listen("tick",function(){p.MH()}); g.Z(this,this.R9)}; TZ=function(J){J.V7=Date.now();Lh(J,J.pJ);J.R9.start()}; Nf7=function(J){J.pJ=J.LC();J.Re(J.pJ/1E3,!0);Lh(J,J.pJ)}; Lh=function(J,K){K={current:K/1E3,duration:J.LC()/1E3};J.eh.get().Vx("onAdPlaybackProgress",K)}; DO=function(J){ph.call(this,J.q1,J.slot,J.jT,J.NQ,J.pU,J.Jj,J.bx,J.n9,J.eh,J.cw,J.VL,J.XQ,J.Ix,J.mU,J.xF,J.hT,J.gK,J.context)}; dq=function(J){ph.call(this,J.q1,J.slot,J.jT,J.NQ,J.pU,J.Jj,J.bx,J.n9,J.eh,J.cw,J.VL,J.XQ,J.Ix,J.mU,J.xF,J.hT,J.gK,J.context)}; kI=function(){dq.apply(this,arguments)}; JBU=function(J){return IK(J.slot,J.xF.get())?new kI(J):new DO(J)}; YI=function(J){s9.call(this,J.callback,J.slot,J.jT,J.NQ,J.pU,J.Jj,J.bx,J.n9,J.cw,J.VL,J.XQ,J.Ix,J.mU,J.xF,J.hT,J.gK,J.context);var K=this;this.adCpn="";this.Wj=this.kU=0;this.aQ=s8(function(){O17(Ch(K));K.q1.gN(K.slot,K.layout)}); this.pW=s8(function(){H1r(Ch(K));K.I5!=="rendering_stop_requested"&&K.XQ(K);K.layoutExitReason?K.q1.hH(K.slot,K.layout,K.layoutExitReason):FB8(K)}); this.yB=J.yB;this.p9=J.p9;this.jh=J.jh;this.eh=J.eh;this.Wp=J.Wp;this.XQ=J.XQ;if(!this.A7()){FV(this.xF.get(),"html5_disable_media_load_timeout")||(this.RC=new g.AT(function(){K.SH("load_timeout",new nQ("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); J=gq(this.xF.get());var n=ch(this.xF.get());J&&n&&(this.Ds=new g.AT(function(){var X=XV(K.layout.clientMetadata,"metadata_type_preload_player_vars");X&&K.p9.get().B.preloadVideoByPlayerVars(X,2,300)}))}}; nmq=function(J,K){var n=XV(K.clientMetadata,"metadata_type_ad_video_id"),X=XV(K.clientMetadata,"metadata_type_legacy_info_card_vast_extension");n&&X&&J.Wp.get().B.S().j_.add(n,{Hn:X});(K=XV(K.clientMetadata,"metadata_type_sodar_extension_data"))&&o7q(J.yB.get(),K);KuV(J.bx.get(),!1)}; omf=function(J){KuV(J.bx.get(),!0);var K;((K=J.shrunkenPlayerBytesConfig)==null?0:K.shouldRequestShrunkenPlayerBytes)&&J.bx.get().Yn(!1)}; Xsp=function(J){return new GZ(J)}; U9=function(){YI.apply(this,arguments)}; GZ=function(){U9.apply(this,arguments)}; lS7=function(J){return JBU(Object.assign({},J,{q1:J.callback,VL:function(){}}))}; x53=function(J){return new YI(Object.assign({},J,{VL:function(K){J.eh.get().Vx("onAdIntroStateChange",K)}}))}; jMq=function(J){function K(n){J.eh.get().m9(n)} return IK(J.slot,J.xF.get())?Xsp(Object.assign({},J,{VL:K})):new YI(Object.assign({},J,{VL:K}))}; tx=function(J){for(var K=J.jT,n=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],X=g.z(I4()),l=X.next();!l.done;l=X.next())n.push(l.value);if(qL(K,{O8:n,a9:["LAYOUT_TYPE_MEDIA_BREAK"]}))return lS7(J);K=J.jT;n=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];X=g.z(I4());for(l=X.next();!l.done;l=X.next())n.push(l.value);if(qL(K,{O8:n,a9:["LAYOUT_TYPE_MEDIA"]}))return NT(J.jT.clientMetadata,"metadata_type_ad_intro")?x53(J):jMq(J)}; hde=function(J){var K=g.U(XV(J.clientMetadata,"metadata_type_ad_placement_config")).kind,n=XV(J.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:J.layoutId,adType:VQ3(n),adBreakType:wq(K)}}; wq=function(J){switch(J){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"}}; VQ3=function(J){switch(J){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; vm7=function(J){try{return new yr(J.gr,J.slot,J.layout,J.uh,J.Xh,J.Jj,J.dR,J.p9,J.Sl,J.bx,J.blW,J)}catch(K){}}; yr=function(J,K,n,X,l,x,V,v,Q,S,r,C){g.t.call(this);this.gr=J;this.slot=K;this.layout=n;this.uh=X;this.Xh=l;this.Jj=x;this.dR=V;this.p9=v;this.Sl=Q;this.bx=S;this.params=C;this.Ok=!0;J=tx(r);if(!J)throw Error("Invalid params for sublayout");this.WM=J}; QM8=function(){this.G=1;this.Z=new S$}; ZO=function(J,K,n,X,l,x,V,v,Q,S,r,C,O,H){g.t.call(this);this.callback=J;this.Jj=K;this.dR=n;this.p9=X;this.bx=l;this.Uk=x;this.n9=V;this.M1=v;this.slot=Q;this.layout=S;this.uh=r;this.R$=C;this.Sl=O;this.xF=H;this.Ok=!0;this.OD=!1;this.FH=[];this.fu=-1;this.Z2=!1;this.qo=new QM8}; $53=function(J){var K;return(K=J.layout.Fc)!=null?K:XV(J.layout.clientMetadata,"metadata_type_sub_layouts")}; fh=function(J){return{KH:J.Jj.get(),v$:!1,m5:J.A7()}}; Slf=function(J,K,n){if(J.MB()===J.FH.length-1){var X,l;Se("Unexpected skip requested during the last sublayout",(X=J.Fh())==null?void 0:X.Jx(),(l=J.Fh())==null?void 0:l.e_(),{requestingSlot:K,requestingLayout:n})}}; rB3=function(J,K,n){return n.layoutId!==Wh(J,K,n)?(Se("onSkipRequested for a PlayerBytes layout that is not currently active",J.Jx(),J.e_()),!1):!0}; sMH=function(J){J.MB()===J.FH.length-1&&Se("Unexpected skip with target requested during the last sublayout")}; CD3=function(J,K,n){return n.renderingContent===void 0&&n.layoutId!==Wh(J,K,n)?(Se("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",J.Jx(),J.e_(),{requestingSlot:K,requestingLayout:n}),!1):!0}; Oor=function(J,K,n,X){var l=XV(K.e_().clientMetadata,"metadata_type_ad_pod_skip_target");if(l&&l>0&&l0)){Se("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",J.slot,J.layout,{indexToPlay:K,layoutId:J.layout.layoutId});break a}J.fu=K;K=J.Fh();if(J.MB()>0&&!J.A7()){var n=J.n9.get();n.Z=!1;var X={};n.G&&n.videoId&&(X.cttAuthInfo={token:n.G,videoId:n.videoId});y_("ad_to_ad",X)}J.CP(K)}}; E9=function(J){ZO.call(this,J.gr,J.Jj,J.dR,J.p9,J.bx,J.Uk,J.n9,J.M1,J.slot,J.layout,J.uh,J.R$,J.Sl,J.xF)}; uwf=function(J){(J=J.Fh())&&J.vy()}; bH=function(J){ZO.call(this,J.gr,J.Jj,J.dR,J.p9,J.bx,J.Uk,J.n9,J.M1,J.slot,J.layout,J.uh,J.R$,J.Sl,J.xF);this.ip=void 0}; edk=function(J,K){J.mA()&&!Hf(J.qo.Z)||J.callback.hH(J.slot,J.layout,K)}; Ax=function(J){return FV(J.xF.get(),"html5_ssap_pass_transition_reason")}; zd8=function(J,K,n){rY(K.Rp())<2&&(n=Bh(n,J.xF),K.IZ(K.e_(),n));n=CJ(K.Rp());J.vC(J.slot,K.e_(),n)}; ws7=function(J,K){if(J.qo.Z.currentState<2){var n=Bh(K,J.xF);n==="error"?J.callback.OB(J.slot,J.layout,new nQ("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:K},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):qn(J.R$,J.layout,n)}}; Mn=function(J,K,n){rY(K.Rp())>=2||(K.IZ(K.e_(),n),Hf(K.Rp())&&(Bb(J.M1,J.slot,K.e_(),n),J.ip=void 0))}; PDp=function(J,K){J.qo.G===2&&K!==J.qB()&&Se("onClipEntered: unknown cpn",J.slot,J.layout,{cpn:K})}; ISH=function(J,K){var n=J.Fh();if(n){var X=n.e_().layoutId,l=J.MB()+1;J.mA()?Mn(J,n,K):n.IZ(n.e_(),K);l>=0&&ll&&V.D9(r,l-X);return r}; kGq=function(J,K,n){var X=XV(K.clientMetadata,"metadata_type_sodar_extension_data");if(X)try{o7q(n,X)}catch(l){Se("Unexpected error when loading Sodar",J,K,{error:l})}}; gmH=function(J,K,n,X,l,x,V){xL(J,K,new g.rf(n,new g.lH),X,l,V,!1,x)}; xL=function(J,K,n,X,l,x,V,v){V=V===void 0?!0:V;hl(n)&&vf(l,0,null)&&(!LG(J,"impression")&&v&&v(),J.R5("impression"));LG(J,"impression")&&(g.C1(n,4)&&!g.C1(n,2)&&J.Lh("pause"),sC(n,4)<0&&!(sC(n,2)<0)&&J.Lh("resume"),g.C1(n,16)&&l>=.5&&J.Lh("seek"),V&&g.C1(n,2)&&jG(J,n.state,K,X,l,x))}; jG=function(J,K,n,X,l,x,V,v){LG(J,"impression")&&(x?(x=l-X,x=x>=-1&&x<=2):x=Math.abs(X-l)<=1,VJ(J,K,x?X:l,n,X,V,v&&x),x&&J.R5("complete"))}; VJ=function(J,K,n,X,l,x,V){pG(J,n*1E3,V);l<=0||n<=0||(K==null?0:g.E(K,16))||(K==null?0:g.E(K,32))||(vf(n,l*.25,X)&&(x&&!LG(J,"first_quartile")&&x("first"),J.R5("first_quartile")),vf(n,l*.5,X)&&(x&&!LG(J,"midpoint")&&x("second"),J.R5("midpoint")),vf(n,l*.75,X)&&(x&&!LG(J,"third_quartile")&&x("third"),J.R5("third_quartile")))}; cBp=function(J,K){LG(J,"impression")&&J.Lh(K?"fullscreen":"end_fullscreen")}; Yld=function(J){LG(J,"impression")&&J.Lh("clickthrough")}; GGF=function(J){J.Lh("active_view_measurable")}; U53=function(J){LG(J,"impression")&&!LG(J,"seek")&&J.Lh("active_view_fully_viewable_audible_half_duration")}; tQ7=function(J){LG(J,"impression")&&!LG(J,"seek")&&J.Lh("active_view_viewable")}; yBV=function(J){LG(J,"impression")&&!LG(J,"seek")&&J.Lh("audio_audible")}; Zoq=function(J){LG(J,"impression")&&!LG(J,"seek")&&J.Lh("audio_measurable")}; fSe=function(J,K,n,X,l,x,V,v,Q,S,r,C){this.callback=J;this.slot=K;this.layout=n;this.dR=X;this.yG=l;this.bx=x;this.K$=V;this.pU=v;this.yB=Q;this.xF=S;this.NQ=r;this.Jj=C;this.Qb=!0;this.aZ=this.I5=null;this.adCpn=void 0;this.G=!1}; Wu3=function(J,K,n){var X;lb(J.NQ.get(),"ads_qua","cpn."+XV(J.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((X=RK(J.Jj.get(),2))==null?void 0:X.clientPlaybackNonce)+";qt."+K+";clr."+n)}; aSf=function(J,K){var n,X;lb(J.NQ.get(),"ads_imp","cpn."+XV(J.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((n=RK(J.Jj.get(),2))==null?void 0:n.clientPlaybackNonce)+";clr."+K+";skp."+!!g.f((X=XV(J.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:X.skipOrPreviewRenderer,hd))}; vW=function(J){return{enterMs:XV(J.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:XV(J.clientMetadata,"metadata_type_layout_exit_ms")}}; QJ=function(J,K,n,X,l,x,V,v,Q,S,r,C,O,H){Jd.call(this,J,K,n,X,l,V,v,Q,S,C);this.K$=x;this.yB=r;this.pU=O;this.xF=H;this.aZ=this.I5=null}; Fuf=function(J,K){var n;lb(J.NQ.get(),"ads_imp","acpn."+((n=RK(J.Jj.get(),2))==null?void 0:n.clientPlaybackNonce)+";clr."+K)}; qlq=function(J,K,n){var X;lb(J.NQ.get(),"ads_qua","cpn."+XV(J.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((X=RK(J.Jj.get(),2))==null?void 0:X.clientPlaybackNonce)+";qt."+K+";clr."+n)}; $L=function(J,K,n,X,l,x,V,v,Q,S,r,C,O,H,R,w,P,B,p,k,c,y){this.Sl=J;this.uh=K;this.R$=n;this.Jj=X;this.dR=l;this.bx=x;this.Uk=V;this.NQ=v;this.K$=Q;this.tB=S;this.pU=r;this.yB=C;this.p9=O;this.jh=H;this.n9=R;this.eh=w;this.cw=P;this.Wp=B;this.xF=p;this.G=k;this.context=c;this.gK=y}; SG=function(J,K,n,X,l,x,V,v,Q,S,r,C,O,H,R,w,P,B,p){this.Sl=J;this.uh=K;this.R$=n;this.NQ=X;this.pU=l;this.yB=x;this.p9=V;this.Jj=v;this.bx=Q;this.Uk=S;this.jh=r;this.n9=C;this.eh=O;this.cw=H;this.Wp=R;this.xF=w;this.dR=P;this.context=B;this.gK=p}; EmF=function(J,K,n,X){Vk.call(this,"survey-interstitial",J,K,n,X)}; rO=function(J,K,n,X,l){CG.call(this,n,J,K,X);this.NQ=l;J=XV(K.clientMetadata,"metadata_type_ad_placement_config");this.yG=new PL(K.dN,l,J,K.layoutId)}; sA=function(J){return Math.round(J.width)+"x"+Math.round(J.height)}; OA=function(J,K,n){n=n===void 0?Cg:n;n.widthJ.width*J.height*.2)return{MU:3,dZ:501,errorMessage:"ad("+sA(n)+") to container("+sA(J)+") ratio exceeds limit."};if(n.height>J.height/3-K)return{MU:3,dZ:501,errorMessage:"ad("+sA(n)+") covers container("+sA(J)+") center."}}; boq=function(J,K){var n=g.U(XV(J.clientMetadata,"metadata_type_ad_placement_config"));return new PL(J.dN,K,n,J.layoutId)}; HW=function(J){return g.U(XV(J.clientMetadata,"metadata_type_invideo_overlay_ad_renderer"))}; Rz=function(J,K,n,X){Vk.call(this,"invideo-overlay",J,K,n,X);this.interactionLoggingClientData=X}; ub=function(J,K,n,X,l,x,V,v,Q,S,r,C){CG.call(this,x,J,K,l);this.NQ=n;this.U=V;this.bx=v;this.cw=Q;this.xF=S;this.N=r;this.C=C;this.yG=boq(K,n)}; ABM=function(){var J=["metadata_type_invideo_overlay_ad_renderer"];I4().forEach(function(K){J.push(K)}); return{O8:J,a9:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; eG=function(J,K,n,X,l,x,V,v,Q,S,r,C,O){CG.call(this,x,J,K,l);this.NQ=n;this.U=V;this.L=v;this.bx=Q;this.cw=S;this.xF=r;this.N=C;this.C=O;this.yG=boq(K,n)}; MQd=function(){for(var J=["metadata_type_invideo_overlay_ad_renderer"],K=g.z(I4()),n=K.next();!n.done;n=K.next())J.push(n.value);return{O8:J,a9:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; zN=function(J){this.bx=J;this.G=!1}; NSf=function(J,K,n){Vk.call(this,"survey",J,{},K,n)}; wO=function(J,K,n,X,l,x,V){CG.call(this,n,J,K,X);this.U=l;this.bx=x;this.xF=V}; J37=function(J,K,n,X,l,x,V,v,Q,S){this.O_=J;this.bx=K;this.NQ=n;this.U=X;this.pU=l;this.Z=x;this.X=V;this.cw=v;this.xF=Q;this.G=S}; KdH=function(J,K,n,X,l,x,V,v,Q,S){this.O_=J;this.bx=K;this.NQ=n;this.U=X;this.pU=l;this.Z=x;this.X=V;this.cw=v;this.xF=Q;this.G=S}; PW=function(J,K,n,X,l,x,V,v,Q,S){Jl.call(this,J,K,n,X,l,x,V,Q);this.A9=v;this.Jj=S}; n9d=function(){var J=Ved();J.O8.push("metadata_type_ad_info_ad_metadata");return J}; o9V=function(J,K,n,X,l,x,V){this.O_=J;this.bx=K;this.NQ=n;this.Z=X;this.A9=l;this.G=x;this.Jj=V}; Xgq=function(J,K,n,X,l,x,V,v){this.O_=J;this.bx=K;this.NQ=n;this.Z=X;this.A9=l;this.G=x;this.xF=V;this.Jj=v}; Iz=function(J,K){this.slotId=K;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=J(this.triggerType)}; ib=function(J,K){this.adPodIndex=J;this.G=K.length;this.adBreakLengthSeconds=K.reduce(function(X,l){return X+l},0); var n=0;for(J+=1;J0}; hm=function(J){return!!(J.o3&&J.slot&&J.layout)}; v$=function(J){var K,n=(K=J.config)==null?void 0:K.adPlacementConfig;J=J.renderer;return!(!n||n.kind==null||!J)}; H3r=function(J){if(!ny(J.adLayoutMetadata))return!1;J=J.renderingContent;return g.f(J,x6)||g.f(J,j$)||g.f(J,Xs)||g.f(J,lx)?!0:!1}; QS=function(J){return J.playerVars!==void 0&&J.pings!==void 0&&J.externalVideoId!==void 0}; H$=function(J){if(!ny(J.adLayoutMetadata))return!1;J=J.renderingContent;var K=g.f(J,$h);return K?S6(K):(K=g.f(J,rp))?QS(K):(K=g.f(J,s$))?K.playerVars!==void 0:(K=g.f(J,x6))?K.durationMilliseconds!==void 0:g.f(J,Cy)||g.f(J,O$)?!0:!1}; S6=function(J){J=(J.sequentialLayouts||[]).map(function(K){return g.f(K,iR)}); return J.length>0&&J.every(H$)}; mf=function(J){return ny(J.adLayoutMetadata)?(J=g.f(J.renderingContent,B$))&&J.pings?!0:!1:!1}; PEU=function(J){if(!ny(J.adLayoutMetadata))return!1;if(g.f(J.renderingContent,RW3)||g.f(J.renderingContent,uEd))return!0;var K=g.f(J.renderingContent,py);return g.f(J.renderingContent,Ly)||g.f(K==null?void 0:K.sidePanel,eWd)||g.f(K==null?void 0:K.sidePanel,zWe)||g.f(K==null?void 0:K.sidePanel,wgf)?!0:!1}; pgr=function(J){var K;(K=!J)||(K=J.adSlotMetadata,K=!((K==null?void 0:K.slotId)!==void 0&&(K==null?void 0:K.slotType)!==void 0));if(K||!(IPH(J)||J.slotEntryTrigger&&J.slotFulfillmentTriggers&&J.slotExpirationTriggers))return!1;var n;J=(n=J.fulfillmentContent)==null?void 0:n.fulfilledLayout;return(n=g.f(J,iR))?H$(n):(n=g.f(J,Tt))?PEU(n):(n=g.f(J,i33))?H3r(n):(n=g.f(J,BHq))?CEf(n):(n=g.f(J,mVk))?ny(n.adLayoutMetadata)?g.f(n.renderingContent,op)?!0:!1:!1:(J=g.f(J,Di))?mf(J):!1}; IPH=function(J){var K;J=g.f((K=J.fulfillmentContent)==null?void 0:K.fulfilledLayout,Tt);var n;return J&&((n=J.adLayoutMetadata)==null?void 0:n.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&J.layoutExitNormalTriggers===void 0}; LdF=function(J){var K;return(J==null?void 0:(K=J.adSlotMetadata)==null?void 0:K.slotType)==="SLOT_TYPE_IN_PLAYER"}; DVp=function(J,K){var n;if((n=J.questions)==null||!n.length||!J.playbackCommands||(K===void 0||!K)&&J.questions.length!==1)return!1;J=g.z(J.questions);for(K=J.next();!K.done;K=J.next()){K=K.value;var X=n=void 0,l=((n=g.f(K,dp))==null?void 0:n.surveyAdQuestionCommon)||((X=g.f(K,kh))==null?void 0:X.surveyAdQuestionCommon);if(!THe(l))return!1}return!0}; dVk=function(J){J=((J==null?void 0:J.playerOverlay)||{}).instreamSurveyAdRenderer;var K;if(J)if(J.playbackCommands&&J.questions&&J.questions.length===1){var n,X=((K=g.f(J.questions[0],dp))==null?void 0:K.surveyAdQuestionCommon)||((n=g.f(J.questions[0],kh))==null?void 0:n.surveyAdQuestionCommon);K=THe(X)}else K=!1;else K=!1;return K}; THe=function(J){if(!J)return!1;J=g.f(J.instreamAdPlayerOverlay,gp);var K=g.f(J==null?void 0:J.skipOrPreviewRenderer,hd),n=g.f(J==null?void 0:J.adInfoRenderer,c$);return(g.f(J==null?void 0:J.skipOrPreviewRenderer,Yh)||K)&&n?!0:!1}; kIU=function(J){return J.linearAds!=null&&ny(J.adLayoutMetadata)}; g97=function(J){return J.linearAd!=null&&J.adVideoStart!=null}; c3q=function(J){if(isNaN(Number(J.timeoutSeconds))||!J.text||!J.ctaButton||!g.f(J.ctaButton,g.Gt)||!J.brandImage)return!1;var K;return J.backgroundImage&&g.f(J.backgroundImage,U$)&&((K=g.f(J.backgroundImage,U$))==null?0:K.landscape)?!0:!1}; tm=function(J,K,n,X,l,x,V,v){g.t.call(this);this.xF=J;this.G=K;this.Z=X;this.Jj=l;this.U=x;this.X=V;this.p9=v}; tzU=function(J,K,n){var X,l=((X=n.adSlots)!=null?X:[]).map(function(v){return g.f(v,yS)}); if(n.xP)if(XV(K.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))$1(J.G.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},K.slotId); else{if(YgV(J.xF.get())){var x=n.Or.filter(function(v){var Q;return((Q=v.renderer)==null?void 0:Q.clientForecastingAdRenderer)!=null}); x.length!==0?GIr(J.X,x,l,K.slotId,n.ssdaiAdsConfig):$1(J.G.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},K.slotId)}else $1(J.G.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},K.slotId); UVr(J.U,K)}else{var V;X={BL:Math.round(((x=XV(K.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:x.BL)||0),jk:(V=XV(K.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:V.jk};GIr(J.X,n.Or,l,K.slotId,n.ssdaiAdsConfig,X)}}; fPf=function(J,K,n,X,l,x,V){var v=RK(J.Jj.get(),1);if(y33(J.xF.get())){var Q=Zi(J.Z.get(),n,X,l,v.clientPlaybackNonce,v.yZ,v.daiEnabled,v,x,V);Z37(J,Q);$1(J.G.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return Q},K)}else $1(J.G.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return Zi(J.Z.get(),n,X,l,v.clientPlaybackNonce,v.yZ,v.daiEnabled,v,x,V)},K)}; Z37=function(J,K){K=g.z(K);for(var n=K.next();!n.done;n=K.next()){var X=n.value;if(X.slotType==="SLOT_TYPE_PLAYER_BYTES"&&X.fulfilledLayout)if(n=void 0,X.fulfilledLayout.renderingContent)n=XV(X.fulfilledLayout.clientMetadata,"metadata_type_player_vars");else{if(X.fulfilledLayout.Fc){X=g.z(X.fulfilledLayout.Fc);for(var l=X.next();!l.done&&(l=l.value,!l.renderingContent||!(n=XV(l.clientMetadata,"metadata_type_player_vars")));l=X.next());}}else n=void 0;if(n){J.p9.get().B.preloadVideoByPlayerVars(n, 2,300);break}}}; aP7=function(J,K,n,X,l,x,V){K=Wd7(K,x,Number(X.prefetchMilliseconds)||0,V);J=K instanceof b?K:fy(J,X,l,K,n);return J instanceof b?J:[J]}; Fd3=function(J,K,n,X,l){var x=S_(J.Z.get(),"SLOT_TYPE_AD_BREAK_REQUEST");X=[new gD({getAdBreakUrl:X.getAdBreakUrl,BL:0,jk:0}),new bT(!0)];J=K.pauseDurationMs?K.lactThresholdMs?{slotId:x,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new Ad(J.G,x),slotFulfillmentTriggers:[new xV7(J.G)],slotExpirationTriggers:[new fg(J.G,l),new qh(J.G,x)],VG:"core",clientMetadata:new og(X),adSlotLoggingData:n}:new b("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new b("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return J instanceof b?J:[J]}; qgd=function(J){var K,n;return((K=J.renderer)==null?void 0:(n=K.adBreakServiceRenderer)==null?void 0:n.getAdBreakUrl)!==void 0}; W$=function(J,K,n){if(J.beforeContentVideoIdStartedTrigger)J=J.beforeContentVideoIdStartedTrigger?new BW(KQ,K,J.id):new b("Not able to create BeforeContentVideoIdStartedTrigger");else{if(J.layoutIdExitedTrigger){var X;K=(X=J.layoutIdExitedTrigger)!=null&&X.triggeringLayoutId?new dO(KQ,J.layoutIdExitedTrigger.triggeringLayoutId,J.id):new b("Not able to create LayoutIdExitedTrigger")}else{if(J.layoutExitedForReasonTrigger){var l,x;((l=J.layoutExitedForReasonTrigger)==null?0:l.triggeringLayoutId)&&((x= J.layoutExitedForReasonTrigger)==null?0:x.layoutExitReason)?(K=jO7(J.layoutExitedForReasonTrigger.layoutExitReason),J=K instanceof b?K:new D7(KQ,J.layoutExitedForReasonTrigger.triggeringLayoutId,[K],J.id)):J=new b("Not able to create LayoutIdExitedForReasonTrigger")}else{if(J.onLayoutSelfExitRequestedTrigger){var V;K=(V=J.onLayoutSelfExitRequestedTrigger)!=null&&V.triggeringLayoutId?new Z7(KQ,J.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,J.id):new b("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(J.onNewPlaybackAfterContentVideoIdTrigger)J= J.onNewPlaybackAfterContentVideoIdTrigger?new fg(KQ,K,J.id):new b("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(J.skipRequestedTrigger){var v;K=(v=J.skipRequestedTrigger)!=null&&v.triggeringLayoutId?new az(KQ,J.skipRequestedTrigger.triggeringLayoutId,J.id):new b("Not able to create SkipRequestedTrigger")}else if(J.slotIdEnteredTrigger){var Q;K=(Q=J.slotIdEnteredTrigger)!=null&&Q.triggeringSlotId?new Fn(KQ,J.slotIdEnteredTrigger.triggeringSlotId,J.id):new b("Not able to create SlotIdEnteredTrigger")}else if(J.slotIdExitedTrigger){var S; K=(S=J.slotIdExitedTrigger)!=null&&S.triggeringSlotId?new qh(KQ,J.slotIdExitedTrigger.triggeringSlotId,J.id):new b("Not able to create SkipRequestedTrigger")}else if(J.surveySubmittedTrigger){var r;K=(r=J.surveySubmittedTrigger)!=null&&r.triggeringLayoutId?new Nh(KQ,J.surveySubmittedTrigger.triggeringLayoutId,J.id):new b("Not able to create SurveySubmittedTrigger")}else{if(J.mediaResumedTrigger)J=J.mediaResumedTrigger&&J.id?new Vzk(J.id):new b("Not able to create MediaResumedTrigger");else{if(J.closeRequestedTrigger){var C; K=(C=J.closeRequestedTrigger)!=null&&C.triggeringLayoutId?new m6(KQ,J.closeRequestedTrigger.triggeringLayoutId,J.id):new b("Not able to create CloseRequestedTrigger")}else if(J.slotIdScheduledTrigger){var O;K=(O=J.slotIdScheduledTrigger)!=null&&O.triggeringSlotId?new Ad(KQ,J.slotIdScheduledTrigger.triggeringSlotId,J.id):new b("Not able to create SlotIdScheduledTrigger")}else{if(J.mediaTimeRangeTrigger){var H;X=Number((H=J.mediaTimeRangeTrigger)==null?void 0:H.offsetStartMilliseconds);var R;V=Number((R= J.mediaTimeRangeTrigger)==null?void 0:R.offsetEndMilliseconds);isFinite(X)&&isFinite(V)?(R=V,R===-1&&(R=n),n=X>R?new b("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:X,offsetEndMs:R},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",R===n&&X-500<=R):new PM(X,R),J=n instanceof b?n:new GN(KQ,K,n,!1,J.id)):J=new b("Not able to create MediaTimeRangeTrigger")}else if(J.contentVideoIdEndedTrigger)J=J.contentVideoIdEndedTrigger?new pg(KQ,K,!1,J.id):new b("Not able to create ContentVideoIdEndedTrigger"); else{if(J.layoutIdEnteredTrigger){var w;K=(w=J.layoutIdEnteredTrigger)!=null&&w.triggeringLayoutId?new TN(KQ,J.layoutIdEnteredTrigger.triggeringLayoutId,J.id):new b("Not able to create LayoutIdEnteredTrigger")}else if(J.timeRelativeToLayoutEnterTrigger){var P;K=(P=J.timeRelativeToLayoutEnterTrigger)!=null&&P.triggeringLayoutId?new Jm(KQ,Number(J.timeRelativeToLayoutEnterTrigger.durationMs),J.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,J.id):new b("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(J.onDifferentLayoutIdEnteredTrigger){var B; K=(B=J.onDifferentLayoutIdEnteredTrigger)!=null&&B.triggeringLayoutId&&J.onDifferentLayoutIdEnteredTrigger.slotType&&J.onDifferentLayoutIdEnteredTrigger.layoutType?new td(KQ,J.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,J.onDifferentLayoutIdEnteredTrigger.slotType,J.onDifferentLayoutIdEnteredTrigger.layoutType,J.id):new b("Not able to create CloseRequestedTrigger")}else{if(J.liveStreamBreakStartedTrigger)J=J.liveStreamBreakStartedTrigger&&J.id?new YL(KQ,J.id):new b("Not able to create LiveStreamBreakStartedTrigger"); else if(J.liveStreamBreakEndedTrigger)J=J.liveStreamBreakEndedTrigger&&J.id?new kL(KQ,J.id):new b("Not able to create LiveStreamBreakEndedTrigger");else{if(J.liveStreamBreakScheduledDurationMatchedTrigger){var p;K=(p=J.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&p.breakDurationMs?new gO(Number(J.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,J.id):new b("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(J.liveStreamBreakScheduledDurationNotMatchedTrigger){var k; K=(k=J.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&k.breakDurationMs?new cW(Number(J.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,J.id):new b("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(J.newSlotScheduledWithBreakDurationTrigger){var c;K=(c=J.newSlotScheduledWithBreakDurationTrigger)!=null&&c.breakDurationMs?new UA(Number(J.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,J.id):new b("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else K= J.prefetchCacheExpiredTrigger?new WW(KQ,J.id):new b("Not able to convert an AdsControlflowTrigger.");J=K}K=J}J=K}K=J}J=K}K=J}J=K}K=J}J=K}K=J}J=K}return J}; ap=function(J,K){K.G>=2&&(J.slot_pos=K.adPodIndex);J.autoplay="1"}; b3f=function(J,K,n,X,l,x,V,v){return K===null?new b("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:K,ActionCompanionAdRenderer:X}):[E9M(J,K,V,x,function(Q){var S=Q.slotId;Q=v(Q);var r=X.adLayoutLoggingData,C=new og([new Yk(X),new b$(l)]);S=q6(n.Z.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",S);var O={layoutId:S,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",VG:"core"};return{layoutId:S,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",dN:new Map, layoutExitNormalTriggers:[new fg(n.G,V)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],BM:[],VG:"core",clientMetadata:C,U_:Q(O),adLayoutLoggingData:r}})]}; A3V=function(J,K,n,X,l,x,V,v){return K===null?new b("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:K,TopBannerImageTextIconButtonedLayoutViewModel:X}):[E9M(J,K,V,x,function(Q){var S=Q.slotId;Q=v(Q);var r=X.adLayoutLoggingData,C=new og([new Gi(X),new b$(l)]);S=q6(n.Z.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",S);var O={layoutId:S,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",VG:"core"};return{layoutId:S,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", dN:new Map,layoutExitNormalTriggers:[new fg(n.G,V)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],BM:[],VG:"core",clientMetadata:C,U_:Q(O),adLayoutLoggingData:r}})]}; Kcq=function(J,K,n,X,l,x){if(!x)for(K=g.z(K),x=K.next();!x.done;x=K.next())x=x.value,FZ(J,x.renderer,x.config.adPlacementConfig.kind);J=Array.from(J.values()).filter(function(r){return Mz7(r)}); K=[];x=g.z(J);for(var V=x.next(),v={};!V.done;v={Ak:void 0},V=x.next()){v.Ak=V.value;V=g.z(v.Ak.n_);for(var Q=V.next(),S={};!Q.done;S={u$:void 0},Q=V.next())S.u$=Q.value,Q=function(r,C){return function(O){return r.u$.Al(O,C.Ak.instreamVideoAdRenderer.elementId,r.u$.un)}}(S,v),S.u$.isContentVideoCompanion?K.push(NHr(n,X,l,v.Ak.instreamVideoAdRenderer.elementId,S.u$.associatedCompositePlayerBytesLayoutId,S.u$.adSlotLoggingData,Q)):J.length>1?K.push(JNF(n,X,l,v.Ak.instreamVideoAdRenderer.elementId,S.u$.adSlotLoggingData, function(r,C){return function(O){return r.u$.Al(O,C.Ak.instreamVideoAdRenderer.elementId,r.u$.un,r.u$.associatedCompositePlayerBytesLayoutId)}}(S,v))):K.push(JNF(n,X,l,v.Ak.instreamVideoAdRenderer.elementId,S.u$.adSlotLoggingData,Q))}return K}; FZ=function(J,K,n){if(K=nk3(K)){K=g.z(K);for(var X=K.next();!X.done;X=K.next())if((X=X.value)&&X.externalVideoId){var l=qW(J,X.externalVideoId);l.instreamVideoAdRenderer||(l.instreamVideoAdRenderer=X,l.Hx=n)}else Se("InstreamVideoAdRenderer without externalVideoId")}}; nk3=function(J){var K=[],n=J.sandwichedLinearAdRenderer&&J.sandwichedLinearAdRenderer.linearAd&&g.f(J.sandwichedLinearAdRenderer.linearAd,rp);if(n)return K.push(n),K;if(J.instreamVideoAdRenderer)return K.push(J.instreamVideoAdRenderer),K;if(J.linearAdSequenceRenderer&&J.linearAdSequenceRenderer.linearAds){J=g.z(J.linearAdSequenceRenderer.linearAds);for(n=J.next();!n.done;n=J.next())n=n.value,g.f(n,rp)&&K.push(g.f(n,rp));return K}return null}; Mz7=function(J){if(J.instreamVideoAdRenderer===void 0)return Se("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var K=g.z(J.n_),n=K.next();!n.done;n=K.next()){n=n.value;if(n.Al===void 0)return!1;if(n.un===void 0)return Se("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(J.Hx===void 0||n.pV===void 0||J.Hx!==n.pV&&n.pV!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(J.instreamVideoAdRenderer.elementId===void 0)return Se("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:J.Hx,"matching APSR kind":n.pV}),!1}return!0}; qW=function(J,K){J.has(K)||J.set(K,{instreamVideoAdRenderer:void 0,Hx:void 0,adVideoId:K,n_:[]});return g.U(J.get(K))}; E$=function(J,K,n,X,l,x,V,v,Q){l?qW(J,l).n_.push({U1Q:K,pV:n,isContentVideoCompanion:X,un:V,associatedCompositePlayerBytesLayoutId:x,adSlotLoggingData:v,Al:Q}):Se("Companion AdPlacementSupportedRenderer without adVideoId")}; bR=function(J){var K=0;J=g.z(J.questions);for(var n=J.next();!n.done;n=J.next())if(n=n.value,n=g.f(n,dp)||g.f(n,kh)){var X=void 0;K+=((X=n.surveyAdQuestionCommon)==null?void 0:X.durationMilliseconds)||0}return K}; Am=function(J){var K,n,X,l,x=((n=g.f((K=J.questions)==null?void 0:K[0],dp))==null?void 0:n.surveyAdQuestionCommon)||((l=g.f((X=J.questions)==null?void 0:X[0],kh))==null?void 0:l.surveyAdQuestionCommon),V;K=[].concat(g.m(((V=J.playbackCommands)==null?void 0:V.instreamAdCompleteCommands)||[]),g.m((x==null?void 0:x.timeoutCommands)||[]));var v,Q,S,r,C,O,H,R,w,P,B,p,k,c,y,A,q,or,lF,J7;return{impressionCommands:(v=J.playbackCommands)==null?void 0:v.impressionCommands,errorCommands:(Q=J.playbackCommands)== null?void 0:Q.errorCommands,muteCommands:(S=J.playbackCommands)==null?void 0:S.muteCommands,unmuteCommands:(r=J.playbackCommands)==null?void 0:r.unmuteCommands,pauseCommands:(C=J.playbackCommands)==null?void 0:C.pauseCommands,rewindCommands:(O=J.playbackCommands)==null?void 0:O.rewindCommands,resumeCommands:(H=J.playbackCommands)==null?void 0:H.resumeCommands,skipCommands:(R=J.playbackCommands)==null?void 0:R.skipCommands,progressCommands:(w=J.playbackCommands)==null?void 0:w.progressCommands,eGx:(P= J.playbackCommands)==null?void 0:P.clickthroughCommands,fullscreenCommands:(B=J.playbackCommands)==null?void 0:B.fullscreenCommands,activeViewViewableCommands:(p=J.playbackCommands)==null?void 0:p.activeViewViewableCommands,activeViewMeasurableCommands:(k=J.playbackCommands)==null?void 0:k.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(c=J.playbackCommands)==null?void 0:c.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(y=J.playbackCommands)== null?void 0:(A=y.activeViewTracking)==null?void 0:A.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(q=J.playbackCommands)==null?void 0:(or=q.activeViewTracking)==null?void 0:or.activeViewAudioMeasurableCommands,endFullscreenCommands:(lF=J.playbackCommands)==null?void 0:lF.endFullscreenCommands,abandonCommands:(J7=J.playbackCommands)==null?void 0:J7.abandonCommands,completeCommands:K}}; XkM=function(J,K,n,X,l,x,V){return function(v,Q){return okH(J,Q.slotId,v,x,function(S,r){var C=Q.layoutId;S=V(S);return MW(K,C,r,l,S,"LAYOUT_TYPE_SURVEY",[new $l(n),X],n.adLayoutLoggingData)})}}; jLV=function(J,K,n,X,l,x,V){if(!lyH(J))return new b("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:J});var v=J.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[xif(x,K,n,X,function(Q){var S=Q.slotId;Q=V(Q);S=q6(l.Z.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",S);var r={layoutId:S,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",VG:"core"},C=new dO(l.G,X);return{layoutId:S,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",dN:new Map,layoutExitNormalTriggers:[C], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],BM:[],VG:"core",clientMetadata:new og([new SB(v)]),U_:Q(r)}})]}; lyH=function(J){J=g.f(J==null?void 0:J.additionalPlayerOverlay,VmU);if(!J)return!1;var K=J.slidingMessages;return J.title&&K&&K.length!==0?!0:!1}; vkd=function(J,K,n,X,l){var x;if((x=J.playerOverlay)==null||!x.instreamSurveyAdRenderer)return function(){return[]}; if(!dVk(J))return function(){return new b("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:J})}; var V=J.playerOverlay.instreamSurveyAdRenderer,v=bR(V);return v<=0?function(){return new b("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:V})}:function(Q,S){var r=hwd(Q,n,X,function(C){var O=C.slotId; C=S(C);var H=Am(V);O=q6(l.Z.get(),"LAYOUT_TYPE_SURVEY",O);var R={layoutId:O,layoutType:"LAYOUT_TYPE_SURVEY",VG:"core"},w=new dO(l.G,X),P=new az(l.G,O),B=new Nh(l.G,O),p=new $Vf(l.G);return{layoutId:O,layoutType:"LAYOUT_TYPE_SURVEY",dN:new Map,layoutExitNormalTriggers:[w,p],layoutExitSkipTriggers:[P],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[B],BM:[],VG:"core",clientMetadata:new og([new Q$(V),new b$(K),new GU(v/1E3),new ZU(H)]),U_:C(R),adLayoutLoggingData:V.adLayoutLoggingData}}); Q=jLV(J,n,r.slotId,X,l,Q,S);return Q instanceof b?Q:[r].concat(g.m(Q))}}; OOU=function(J,K,n,X,l,x,V){V=V===void 0?!1:V;var v=[];try{var Q=[];if(n.renderer.linearAdSequenceRenderer)var S=function(w){w=QL7(w.slotId,n,K,l(w),X,x,V);Q=w.PY_;return w.SU}; else if(n.renderer.instreamVideoAdRenderer)S=function(w){var P=w.slotId;w=l(w);var B=V,p=n.config.adPlacementConfig,k=$iF(p),c=k.fR,y=k.Fm;k=n.renderer.instreamVideoAdRenderer;var A;if(k==null?0:(A=k.playerOverlay)==null?0:A.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var q=NW(k,B);A=Math.min(c+q.videoLengthSeconds*1E3,y);B=new ib(0,[q.videoLengthSeconds]);y=q.videoLengthSeconds;var or=q.playerVars,lF=q.instreamAdPlayerOverlayRenderer,J7=q.playerOverlayLayoutRenderer, h7=q.adVideoId,M=SpV(n),zM=q.dN;q=q.XP;var B3=k==null?void 0:k.adLayoutLoggingData;k=k==null?void 0:k.sodarExtensionData;P=q6(K.Z.get(),"LAYOUT_TYPE_MEDIA",P);var fU={layoutId:P,layoutType:"LAYOUT_TYPE_MEDIA",VG:"core"};return{layoutId:P,layoutType:"LAYOUT_TYPE_MEDIA",dN:zM,layoutExitNormalTriggers:[new kL(K.G)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],BM:[],VG:"core",clientMetadata:new og([new nx(X),new wD(y),new Py(or),new By(c),new mK(A),lF&&new o7(lF), J7&&new X$(J7),new b$(p),new Kx(h7),new AN(B),new dD(M),k&&new iT(k),new R7({current:null}),new Lx({}),new a7(q)].filter(rNF)),U_:w(fU),adLayoutLoggingData:B3}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var r=sLM(J,X,n.adSlotLoggingData,S);v.push(r);for(var C=g.z(Q),O=C.next();!O.done;O=C.next()){var H=O.value,R=H(J,l);if(R instanceof b)return R;v.push.apply(v,g.m(R))}}catch(w){return new b(w,{errorMessage:w.message,AdPlacementRenderer:n,numberOfSurveyRenderers:C$d(n)})}return v}; C$d=function(J){J=(J.renderer.linearAdSequenceRenderer||{}).linearAds;return J!=null&&J.length?J.filter(function(K){var n,X;return((n=g.f(K,rp))==null?void 0:(X=n.playerOverlay)==null?void 0:X.instreamSurveyAdRenderer)!=null}).length:0}; QL7=function(J,K,n,X,l,x,V){var v=K.config.adPlacementConfig,Q=$iF(v),S=Q.fR,r=Q.Fm;Q=(K.renderer.linearAdSequenceRenderer||{}).linearAds;if(Q==null||!Q.length)throw new TypeError("Expected linear ads");var C=[],O={w0:S,Ix:0,UpW:C};Q=Q.map(function(R){return HO3(J,R,O,n,X,v,l,r,V)}).map(function(R,w){w=new ib(w,C); return R(w)}); var H=Q.map(function(R){return R.YK}); return{SU:Rwp(n,J,S,H,v,SpV(K),X,r,x),PY_:Q.map(function(R){return R.BtQ})}}; HO3=function(J,K,n,X,l,x,V,v,Q){var S=NW(g.f(K,rp),Q),r=n.w0,C=n.Ix,O=Math.min(r+S.videoLengthSeconds*1E3,v);n.w0=O;n.Ix++;n.UpW.push(S.videoLengthSeconds);var H,R,w=(H=g.f(K,rp))==null?void 0:(R=H.playerOverlay)==null?void 0:R.instreamSurveyAdRenderer;if(S.adVideoId==="nPpU29QrbiU"&&w==null)throw new TypeError("Survey slate media has no survey overlay");return function(P){ap(S.playerVars,P);var B,p,k=S.videoLengthSeconds,c=S.playerVars,y=S.dN,A=S.XP,q=S.instreamAdPlayerOverlayRenderer,or=S.playerOverlayLayoutRenderer, lF=S.adVideoId,J7=(B=g.f(K,rp))==null?void 0:B.adLayoutLoggingData;B=(p=g.f(K,rp))==null?void 0:p.sodarExtensionData;p=q6(X.Z.get(),"LAYOUT_TYPE_MEDIA",J);var h7={layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",VG:"adapter"};P={layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",dN:y,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],BM:[],VG:"adapter",clientMetadata:new og([new nx(V),new wD(k),new Py(c),new By(r),new mK(O),new px(C),new R7({current:null}), q&&new o7(q),or&&new X$(or),new b$(x),new Kx(lF),new AN(P),B&&new iT(B),w&&new Wy(w),new Lx({}),new a7(A)].filter(rNF)),U_:l(h7),adLayoutLoggingData:J7};k=vkd(g.f(K,rp),x,V,P.layoutId,X);return{YK:P,BtQ:k}}}; NW=function(J,K){if(!J)throw new TypeError("Expected instream video ad renderer");if(!J.playerVars)throw new TypeError("Expected player vars in url encoded string");var n=oe(J.playerVars),X=Number(n.length_seconds);if(isNaN(X))throw new TypeError("Expected valid length seconds in player vars");var l=Number(J.trimmedMaxNonSkippableAdDurationMs);X=isNaN(l)?X:Math.min(X,l/1E3);l=J.playerOverlay||{};l=l.instreamAdPlayerOverlayRenderer===void 0?null:l.instreamAdPlayerOverlayRenderer;var x=J.playerOverlay|| {};x=x.playerOverlayLayoutRenderer===void 0?null:x.playerOverlayLayoutRenderer;var V=n.video_id;V||(V=(V=J.externalVideoId)?V:void 0);if(!V)throw new TypeError("Expected valid video id in IVAR");if(K&&X===0){var v;K=(v=uOH[V])!=null?v:X}else K=X;return{playerVars:n,videoLengthSeconds:K,instreamAdPlayerOverlayRenderer:l,playerOverlayLayoutRenderer:x,adVideoId:V,dN:J.pings?wK(J.pings):new Map,XP:z6(J.pings)}}; SpV=function(J){J=Number(J.driftRecoveryMs);return isNaN(J)||J<=0?null:J}; $iF=function(J){var K=J.adTimeOffset||{};J=K.offsetEndMilliseconds;K=Number(K.offsetStartMilliseconds);if(isNaN(K))throw new TypeError("Expected valid start offset");J=Number(J);if(isNaN(J))throw new TypeError("Expected valid end offset");return{fR:K,Fm:J}}; ewU=function(J){var K,n=(K=XV(J.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:K.current;if(!n)return null;K=XV(J.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var X=J.layoutId,l=XV(J.clientMetadata,"metadata_type_content_cpn"),x=XV(J.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),V=XV(J.clientMetadata,"metadata_type_player_underlay_renderer"),v=XV(J.clientMetadata,"metadata_type_ad_placement_config"),Q=XV(J.clientMetadata,"metadata_type_video_length_seconds"); var S=NT(J.clientMetadata,"metadata_type_layout_enter_ms")&&NT(J.clientMetadata,"metadata_type_layout_exit_ms")?(XV(J.clientMetadata,"metadata_type_layout_exit_ms")-XV(J.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{va:X,contentCpn:l,x5:n,rg:K,instreamAdPlayerOverlayRenderer:x,instreamAdPlayerUnderlayRenderer:V,adPlacementConfig:v,videoLengthSeconds:Q,kp:S,inPlayerLayoutId:XV(J.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:XV(J.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; P$r=function(J,K,n,X,l,x,V,v,Q,S,r,C,O,H,R){X=S_(X,"SLOT_TYPE_PLAYER_BYTES");J=zwf(l,J,V,n,X,Q,S);if(J instanceof b)return J;var w;S=(w=XV(J.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:w.layoutId;if(!S)return new b("Invalid adNotify layout");K=wkU(S,l,x,n,v,K,Q,r,C,O,H,R,V);return K instanceof b?K:[J].concat(g.m(K))}; wkU=function(J,K,n,X,l,x,V,v,Q,S,r,C,O){n=Iyd(K,n,X,x,V,v,Q,S,r,C,O);if(n instanceof b)return n;J=iOe(K,J,V,l,n);return J instanceof b?J:[].concat(g.m(J.jp),[J.D4])}; mie=function(J,K,n,X,l,x,V,v,Q,S,r,C,O,H){K=Iyd(J,K,n,l,x,v,Q,S,r,C,O,H);if(K instanceof b)return K;J=Btp(J,n,x,V,X,v.qS,K);return J instanceof b?J:J.jp.concat(J.D4)}; Iyd=function(J,K,n,X,l,x,V,v,Q,S,r,C){var O=J5(X,n,S);return O instanceof nQ?new b(O):S.B.S().experiments.sM("html5_refactor_in_player_slot_generation")?function(H){var R=new ib(0,[O.Vs]);H=pkq(K,O.layoutId,O.Bs,n,Kz(O.playerVars,O.HP,x,Q,R),O.Vs,l,R,V(H),v.get(O.Bs.externalVideoId),C);R=[];if(O.Bs.playerOverlay.instreamAdPlayerOverlayRenderer){var w=ewU(H);if(!w)return Se("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,H),{layout:H,jp:[]}; R=[LcU(J,w.contentCpn,w.va,function(B){return nz(K,B.slotId,"core",w,vb(r,B))},w.inPlayerSlotId)].concat(g.m(R)); if(w.instreamAdPlayerUnderlayRenderer&&o8(S)){var P=w.instreamAdPlayerUnderlayRenderer;R=[Tt7(J,w.contentCpn,w.va,function(B){return DiF(K,B.slotId,P,w.adPlacementConfig,w.va,vb(r,B))})].concat(g.m(R))}}return{layout:H, jp:R}}:function(H){var R=new ib(0,[O.Vs]); return{layout:pkq(K,O.layoutId,O.Bs,n,Kz(O.playerVars,O.HP,x,Q,R),O.Vs,l,R,V(H),v.get(O.Bs.externalVideoId),C),jp:[]}}}; J5=function(J,K,n){if(!J.playerVars)return new nQ("No playerVars available in InstreamVideoAdRenderer.");var X,l;if(J.elementId==null||J.playerVars==null||J.playerOverlay==null||((X=J.playerOverlay)==null?void 0:X.instreamAdPlayerOverlayRenderer)==null&&((l=J.playerOverlay)==null?void 0:l.playerOverlayLayoutRenderer)==null||J.pings==null||J.externalVideoId==null)return new nQ("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:J});X=oe(J.playerVars);l=Number(X.length_seconds); isNaN(l)&&(l=0,Se("Expected valid length seconds in player vars but got NaN"));if(n.A7(K.kind==="AD_PLACEMENT_KIND_START")){if(J.layoutId===void 0)return new nQ("Expected server generated layout ID in instreamVideoAdRenderer");K=J.layoutId}else K=J.elementId;return{layoutId:K,Bs:J,playerVars:X,HP:J.playerVars,Vs:l}}; Kz=function(J,K,n,X,l){J.iv_load_policy=X;K=oe(K);if(K.cta_conversion_urls)try{J.cta_conversion_urls=JSON.parse(K.cta_conversion_urls)}catch(x){Se(x)}n.Gd&&(J.ctrl=n.Gd);n.Ii&&(J.ytr=n.Ii);n.Qg&&(J.ytrcc=n.Qg);n.isMdxPlayback&&(J.mdx="1");J.vvt&&(J.vss_credentials_token=J.vvt,n.mH&&(J.vss_credentials_token_type=n.mH),n.mdxEnvironment&&(J.mdx_environment=n.mdxEnvironment));ap(J,l);return J}; di8=function(J){var K=new Map;J=g.z(J);for(var n=J.next();!n.done;n=J.next())(n=n.value.renderer.remoteSlotsRenderer)&&n.hostElementId&&K.set(n.hostElementId,n);return K}; XT=function(J){return J.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; kid=function(J){return J!=null}; yN8=function(J,K,n,X,l,x,V,v,Q,S,r,C,O,H){for(var R=[],w=g.z(J),P=w.next();!P.done;P=w.next())if(P=P.value,!IPH(P)&&!LdF(P)){var B=XT(P)&&!!P.slotEntryTrigger.beforeContentVideoIdStartedTrigger,p=Q.A7(B),k=gkf(P,S,X,n.yZ,p);if(k instanceof b)return k;var c=void 0,y={slotId:P.adSlotMetadata.slotId,slotType:P.adSlotMetadata.slotType,slotPhysicalPosition:(c=P.adSlotMetadata.slotPhysicalPosition)!=null?c:1,VG:"core",slotEntryTrigger:k.slotEntryTrigger,slotFulfillmentTriggers:k.slotFulfillmentTriggers, slotExpirationTriggers:k.slotExpirationTriggers},A=g.f(P.fulfillmentContent.fulfilledLayout,iR);if(A){if(!H$(A))return new b("Invalid PlayerBytesAdLayoutRenderer");c=C&&!(XT(P)&&P.slotEntryTrigger.beforeContentVideoIdStartedTrigger);k=k.slotFulfillmentTriggers.some(function(q){return q instanceof gO}); p=c?cNM(y,P.adSlotMetadata.triggerEvent,A,n,X,x,S,J,p,O,k,H):Ypd(y,P.adSlotMetadata.triggerEvent,A,K,n,X,l,x,V,v,Q,S,J,r,p,P.adSlotMetadata.triggeringSourceLayoutId);if(p instanceof b)return p;k=[];XT(P)&&k.push(new AV({pK:XT(P)&&!!P.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));c&&k.push(new Lx({}));n.qS&&k.push(new fx({}));k.push(new EO(B));P=Object.assign({},y,{clientMetadata:new og(k),fulfilledLayout:p.layout,adSlotLoggingData:P.adSlotMetadata.adSlotLoggingData});R.push.apply(R,g.m(p.jp)); R.push(P)}else if(B=g.f(P.fulfillmentContent.fulfilledLayout,Tt)){if(!PEU(B))return new b("Invalid PlayerUnderlayAdLayoutRenderer");B=Gif(B,X,n.yZ,x,y,P.adSlotMetadata.triggerEvent,P.adSlotMetadata.triggeringSourceLayoutId);if(B instanceof b)return B;P=Object.assign({},y,{clientMetadata:new og([]),fulfilledLayout:B,adSlotLoggingData:P.adSlotMetadata.adSlotLoggingData});R.push(P)}else if(B=g.f(P.fulfillmentContent.fulfilledLayout,BHq)){if(!CEf(B))return new b("Invalid AboveFeedAdLayoutRenderer");B= Uid(B,X,n.yZ,x,y,P.adSlotMetadata.triggerEvent,P.adSlotMetadata.triggeringSourceLayoutId);if(B instanceof b)return B;P=Object.assign({},y,{clientMetadata:new og([]),fulfilledLayout:B,adSlotLoggingData:P.adSlotMetadata.adSlotLoggingData});R.push(P)}else if(B=g.f(P.fulfillmentContent.fulfilledLayout,mVk)){if(!ny(B.adLayoutMetadata)||!g.f(B.renderingContent,op))return new b("Invalid BelowPlayerAdLayoutRenderer");B=Uid(B,X,n.yZ,x,y,P.adSlotMetadata.triggerEvent,P.adSlotMetadata.triggeringSourceLayoutId); if(B instanceof b)return B;P=Object.assign({},y,{clientMetadata:new og([]),fulfilledLayout:B,adSlotLoggingData:P.adSlotMetadata.adSlotLoggingData});R.push(P)}else if(B=g.f(P.fulfillmentContent.fulfilledLayout,Di)){if(!mf(B))return new b("Invalid PlayerBytesSequenceItemAdLayoutRenderer");B=tmf(B,X,n.yZ,x,y,P.adSlotMetadata.triggerEvent);if(B instanceof b)return B;P=Object.assign({},y,{clientMetadata:new og([]),fulfilledLayout:B,adSlotLoggingData:P.adSlotMetadata.adSlotLoggingData});R.push(P)}else return new b("Unable to retrieve a client slot ["+ y.slotType+"] from a given AdSlotRenderer")}return R}; tmf=function(J,K,n,X,l,x){var V={layoutId:J.adLayoutMetadata.layoutId,layoutType:J.adLayoutMetadata.layoutType,VG:"core"};K=lL(J,K,n);return K instanceof b?K:(n=g.f(J.renderingContent,B$))&&n.pings?Object.assign({},V,{renderingContent:J.renderingContent,dN:wK(n.pings)},K,{U_:vb(X,l)(V),clientMetadata:new og([new b$(xO(x))]),adLayoutLoggingData:J.adLayoutMetadata.adLayoutLoggingData}):new b("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")}; Uid=function(J,K,n,X,l,x,V){var v={layoutId:J.adLayoutMetadata.layoutId,layoutType:J.adLayoutMetadata.layoutType,VG:"core"};K=lL(J,K,n);if(K instanceof b)return K;n=[];n.push(new b$(xO(x)));x==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&V!==void 0&&n.push(new rD(V));return Object.assign({},v,{renderingContent:J.renderingContent,dN:new Map([["impression",ZOe(J)]])},K,{U_:vb(X,l)(v),clientMetadata:new og(n),adLayoutLoggingData:J.adLayoutMetadata.adLayoutLoggingData})}; Gif=function(J,K,n,X,l,x,V){if(J.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(V=g.f(J.renderingContent,py))if(V=g.f(V.sidePanel,zWe)){var v={layoutId:J.adLayoutMetadata.layoutId,layoutType:J.adLayoutMetadata.layoutType,VG:"core"};K=lL(J,K,n);J=K instanceof b?K:Object.assign({},v,{renderingContent:J.renderingContent,dN:new Map([["impression",V.impressionPings||[]],["resume",V.resumePings||[]]])},K,{U_:vb(X,l)(v),clientMetadata:new og([new b$(xO(x))]),adLayoutLoggingData:J.adLayoutMetadata.adLayoutLoggingData})}else J= new b("DismissablePanelTextPortraitImageRenderer is missing");else J=new b("SqueezebackPlayerSidePanelRenderer is missing");else J.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.f(J.renderingContent,RW3)?(V={layoutId:J.adLayoutMetadata.layoutId,layoutType:J.adLayoutMetadata.layoutType,VG:"core"},K=lL(J,K,n),J=K instanceof b?K:Object.assign({},V,{renderingContent:J.renderingContent,dN:new Map},K,{U_:vb(X,l)(V),clientMetadata:new og([new b$(xO(x))]),adLayoutLoggingData:J.adLayoutMetadata.adLayoutLoggingData})): J=new b("CounterfactualRenderer is missing"):J.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?J=new b("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):J.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?J=new b("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):J.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.f(J.renderingContent,Ly)?(x={layoutId:J.adLayoutMetadata.layoutId,layoutType:J.adLayoutMetadata.layoutType, VG:"core"},K=lL(J,K,n),J=K instanceof b?K:V?Object.assign({},x,{renderingContent:J.renderingContent,dN:new Map},K,{U_:vb(X,l)(x),clientMetadata:new og([new rD(V)]),adLayoutLoggingData:J.adLayoutMetadata.adLayoutLoggingData}):new b("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):J=new b("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):J.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.f(J.renderingContent,uEd)? (x={layoutId:J.adLayoutMetadata.layoutId,layoutType:J.adLayoutMetadata.layoutType,VG:"core"},K=lL(J,K,n),J=K instanceof b?K:Object.assign({},x,{renderingContent:J.renderingContent,dN:new Map([])},K,{U_:vb(X,l)(x),adLayoutLoggingData:J.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new og([])})):J=new b("AdsEngagementPanelSectionListViewModel is missing"):J=new b("LayoutType ["+J.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return J}; cNM=function(J,K,n,X,l,x,V,v,Q,S,r,C){if((C==null?void 0:C.BL)===void 0||(C==null?void 0:C.jk)===void 0)return new b("Cached ad break range from cue point is missing");var O=lL(n,l,X.yZ);if(O instanceof b)return O;O={layoutExitMuteTriggers:[],layoutExitNormalTriggers:O.layoutExitNormalTriggers,layoutExitSkipTriggers:[],BM:[],layoutExitUserInputSubmittedTriggers:[]};if(g.f(n.renderingContent,rp))return J=fy8(J,K,n,O,l,x,v,Q,X.yZ,V,C.BL,C.jk),J instanceof b?J:J.HB===void 0?new b("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:J.layout,jp:[J.HB]};var H=g.f(n.renderingContent,$h);if(H){if(!ny(n.adLayoutMetadata))return new b("Invalid ad layout metadata");if(!S6(H))return new b("Invalid sequential layout");H=H.sequentialLayouts.map(function(R){return R.playerBytesAdLayoutRenderer}); J=Wc3(J,K,n,O,H,l,X,x,V,Q,v,S,C.BL,C.jk,r);return J instanceof b?J:{layout:J.Df,jp:J.jp}}return new b("Not able to convert a sequential layout")}; Wc3=function(J,K,n,X,l,x,V,v,Q,S,r,C,O,H,R){var w=ay3(l,O,H);if(w instanceof b)return w;var P=[],B=[];w=g.z(w);for(var p=w.next();!p.done;p=w.next()){var k=p.value;p=J;var c=l[k.Ix],y=k,A=K;k=x;var q=V,or=v,lF=Q,J7=S,h7=r,M=jC(c);if(M instanceof b)p=M;else{var zM={layoutId:c.adLayoutMetadata.layoutId,layoutType:c.adLayoutMetadata.layoutType,VG:"adapter"};y=FcM(A,c,y,k);y instanceof b?p=y:(p=Object.assign({},zM,VE,{dN:M,renderingContent:c.renderingContent,clientMetadata:new og(y),U_:vb(or,p)(zM),adLayoutLoggingData:c.adLayoutMetadata.adLayoutLoggingData}), p=(c=h5(h7,p,k,q.yZ,or,lF,J7,void 0,!0))?c instanceof b?c:{layout:p,HB:c}:new b("Expecting associatedInPlayerSlot"))}if(p instanceof b)return p;P.push(p.layout);B.push(p.HB)}l={layoutId:n.adLayoutMetadata.layoutId,layoutType:n.adLayoutMetadata.layoutType,VG:"core"};K=[new dD(Number(n.driftRecoveryMs)),new By(O),new mK(H),new b$(xO(K)),new qT(C),new Lx({})];R&&K.push(new MT({}));return{Df:Object.assign({},l,X,{Fc:P,dN:new Map,clientMetadata:new og(K),U_:vb(v,J)(l)}),jp:B}}; fy8=function(J,K,n,X,l,x,V,v,Q,S,r,C){if(!H$(n))return new b("Invalid PlayerBytesAdLayoutRenderer");var O=jC(n);if(O instanceof b)return O;var H={layoutId:n.adLayoutMetadata.layoutId,layoutType:n.adLayoutMetadata.layoutType,VG:"core"},R=g.f(n.renderingContent,rp);if(!R)return new b("Invalid rendering content for DAI media layout");R=NW(R,!1);r={gp:R,Ix:0,w0:r,Zq:Math.min(r+R.videoLengthSeconds*1E3,C),e$:new ib(0,[R.videoLengthSeconds])};var w;C=(w=Number(n.driftRecoveryMs))!=null?w:void 0;K=FcM(K, n,r,l,C);if(K instanceof b)return K;J=Object.assign({},H,X,{dN:O,renderingContent:n.renderingContent,clientMetadata:new og(K),U_:vb(x,J)(H),adLayoutLoggingData:n.adLayoutMetadata.adLayoutLoggingData});return(l=h5(V,J,l,Q,x,S,v,void 0,!0))?l instanceof b?l:{layout:J,HB:l}:new b("Expecting associatedInPlayerSlot")}; Ypd=function(J,K,n,X,l,x,V,v,Q,S,r,C,O,H,R,w){var P=lL(n,x,l.yZ);if(P instanceof b)return P;if(g.f(n.renderingContent,rp)){Q=qpr([n],l,Q);if(Q instanceof b)return Q;if(Q.length!==1)return new b("Only expected one media layout.");J=EkU(J,K,n,P,Q[0],void 0,"core",X,x,V,v,S,O,H,R,l.yZ,C,void 0,w);return J instanceof b?J:{layout:J.layout,jp:J.HB?[J.HB]:[]}}var B=g.f(n.renderingContent,$h);if(B){if(!ny(n.adLayoutMetadata))return new b("Invalid ad layout metadata");if(!S6(B))return new b("Invalid sequential layout"); B=B.sequentialLayouts.map(function(p){return p.playerBytesAdLayoutRenderer}); J=bOr(J,K,n.adLayoutMetadata,P,B,X,x,l,Q,V,v,S,r,C,R,O,H,w);return J instanceof b?J:{layout:J.Df,jp:J.jp}}return new b("Not able to convert a sequential layout")}; bOr=function(J,K,n,X,l,x,V,v,Q,S,r,C,O,H,R,w,P,B){var p=new JV({current:null}),k=qpr(l,v,Q);if(k instanceof b)return k;Q=[];for(var c=[],y=void 0,A=0;A0&&(A.push(B),A.push(new Ni(y.adPodSkipTarget)));(x=S.get(y.externalVideoId))&&A.push(new Yl(x));x=A}else x=new b("Invalid vod media renderer")}if(x instanceof b)return x;J=Object.assign({},V,X,{dN:k,renderingContent:n.renderingContent,clientMetadata:new og(x),U_:vb(r,J)(V),adLayoutLoggingData:n.adLayoutMetadata.adLayoutLoggingData});n=g.f(n.renderingContent,rp);if(!n||!QS(n))return new b("Invalid meida renderer");C=qW(C,n.externalVideoId);C.instreamVideoAdRenderer=n;C.Hx="AD_PLACEMENT_KIND_START";return H?(Q=h5(O,J,Q,w,r,P,R,B,!1),Q instanceof b?Q:Ntf(J.layoutId,O)&&Q?{layout:Object.assign({},J,{clientMetadata:new og(x.concat(new jB(Q)))})}:{layout:J,HB:Q}): {layout:J}}; ANr=function(J,K,n,X,l){if(!H$(K))return new b("Invalid PlayerBytesAdLayoutRenderer");var x=g.f(K.renderingContent,x6);if(!x||x.durationMilliseconds===void 0)return new b("Invalid endcap renderer");var V={layoutId:K.adLayoutMetadata.layoutId,layoutType:K.adLayoutMetadata.layoutType,VG:"adapter"};X=[new UO(x.durationMilliseconds),new ZU({impressionCommands:void 0,abandonCommands:x.abandonCommands?[{commandExecutorCommand:x.abandonCommands}]:void 0,completeCommands:x.completionCommands}),new b$(X), new Cx("LAYOUT_TYPE_ENDCAP")];if(l){X.push(new Mi(l.e$.adPodIndex-1));X.push(new px(l.e$.adPodIndex));var v;X.push(new Ni((v=l.adPodSkipTarget)!=null?v:-1))}return Object.assign({},V,VE,{renderingContent:K.renderingContent,clientMetadata:new og(X),dN:x.skipPings?new Map([["skip",x.skipPings]]):new Map,U_:vb(n,J)(V),adLayoutLoggingData:K.adLayoutMetadata.adLayoutLoggingData})}; h5=function(J,K,n,X,l,x,V,v,Q){J=J.filter(function(r){return r.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&r.adSlotMetadata.triggeringSourceLayoutId===K.layoutId}); if(J.length!==0){if(J.length!==1)return new b("Invalid InPlayer slot association for the given PlayerBytes layout");J=J[0];V=gkf(J,x,n,X,V);if(V instanceof b)return V;var S;x={slotId:J.adSlotMetadata.slotId,slotType:J.adSlotMetadata.slotType,slotPhysicalPosition:(S=J.adSlotMetadata.slotPhysicalPosition)!=null?S:1,VG:"core",slotEntryTrigger:V.slotEntryTrigger,slotFulfillmentTriggers:V.slotFulfillmentTriggers,slotExpirationTriggers:V.slotExpirationTriggers};S=g.f(J.fulfillmentContent.fulfilledLayout, i33);if(!S||!H3r(S))return new b("Invalid InPlayerAdLayoutRenderer");V={layoutId:S.adLayoutMetadata.layoutId,layoutType:S.adLayoutMetadata.layoutType,VG:"core"};n=lL(S,n,X);if(n instanceof b)return n;X=[];Q&&X.push(new Lx({}));if(S.adLayoutMetadata.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")X.push.apply(X,g.m(JVd(J.adSlotMetadata.triggerEvent,K)));else if(S.adLayoutMetadata.layoutType==="LAYOUT_TYPE_ENDCAP")X.push(new b$(xO(J.adSlotMetadata.triggerEvent))),v&&X.push(v);else return new b("Not able to parse an SDF InPlayer layout"); l=Object.assign({},V,n,{renderingContent:S.renderingContent,dN:new Map,U_:vb(l,x)(V),clientMetadata:new og(X),adLayoutLoggingData:S.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},x,{fulfilledLayout:l,clientMetadata:new og([])})}}; JVd=function(J,K){var n=[];n.push(new b$(xO(J)));n.push(new rD(K.layoutId));(J=XV(K.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&n.push(new R7(J));(J=XV(K.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&n.push(new JV(J));(J=XV(K.clientMetadata,"metadata_type_remote_slots_data"))&&n.push(new Yl(J));(J=XV(K.clientMetadata,"metadata_type_ad_next_params"))&&n.push(new yM(J));(J=XV(K.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&n.push(new Zy(J));(J= XV(K.clientMetadata,"metadata_type_ad_pod_info"))&&n.push(new AN(J));(K=XV(K.clientMetadata,"metadata_type_ad_video_id"))&&n.push(new Kx(K));return n}; Mmr=function(J,K,n,X,l,x){function V(S){return v2(K,S)} var v=X.DQ.inPlayerSlotId,Q={layoutId:X.DQ.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",VG:"core"};n={slotId:v,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,VG:"core",slotEntryTrigger:new TN(V,J),slotFulfillmentTriggers:[new Fn(V,v)],slotExpirationTriggers:[new qh(V,v),new fg(V,n)]};J=Object.assign({},Q,{layoutExitNormalTriggers:[new dO(V,J)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],BM:[],dN:new Map,clientMetadata:new og([new hV(X.DQ), new b$(X.adPlacementConfig),l]),U_:vb(x,n)(Q),adLayoutLoggingData:X.DQ.adLayoutLoggingData});return Object.assign({},n,{clientMetadata:new og([new kl(J)])})}; Ntf=function(J,K){K=g.z(K);for(var n=K.next();!n.done;n=K.next())if(n=n.value,n.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var X=g.f(n.fulfillmentContent.fulfilledLayout,Tt);if(X&&(X=g.f(X.renderingContent,py))&&X.associatedPlayerBytesLayoutId===J)return n}}; gkf=function(J,K,n,X,l){var x=KKU(W$(J.slotEntryTrigger,n,X),l,J,K);if(x instanceof b)return x;for(var V=[],v=g.z(J.slotFulfillmentTriggers),Q=v.next();!Q.done;Q=v.next()){Q=W$(Q.value,n,X);if(Q instanceof b)return Q;V.push(Q)}V=nle(V,l,J,K);K=[];J=g.z(J.slotExpirationTriggers);for(l=J.next();!l.done;l=J.next()){l=W$(l.value,n,X);if(l instanceof b)return l;K.push(l)}return{slotEntryTrigger:x,slotFulfillmentTriggers:V,slotExpirationTriggers:K}}; KKU=function(J,K,n,X){return K&&n.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&J instanceof BW?new Iz(function(l){return v2(X,l)},n.adSlotMetadata.slotId):J}; nle=function(J,K,n,X){return K&&n.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?J.map(function(l){return l instanceof Fn?new Ad(function(x){return v2(X,x)},n.adSlotMetadata.slotId):l}):J}; lL=function(J,K,n){for(var X=[],l=g.z(J.layoutExitNormalTriggers||[]),x=l.next();!x.done;x=l.next()){x=W$(x.value,K,n);if(x instanceof b)return x;X.push(x)}l=[];x=g.z(J.layoutExitSkipTriggers||[]);for(var V=x.next();!V.done;V=x.next()){V=W$(V.value,K,n);if(V instanceof b)return V;l.push(V)}x=[];V=g.z(J.layoutExitMuteTriggers||[]);for(var v=V.next();!v.done;v=V.next()){v=W$(v.value,K,n);if(v instanceof b)return v;x.push(v)}V=[];J=g.z(J.layoutExitUserInputSubmittedTriggers||[]);for(v=J.next();!v.done;v= J.next()){v=W$(v.value,K,n);if(v instanceof b)return v;V.push(v)}return{layoutExitNormalTriggers:X,layoutExitSkipTriggers:l,layoutExitMuteTriggers:x,layoutExitUserInputSubmittedTriggers:V,BM:[]}}; jC=function(J){var K=g.f(J.renderingContent,rp);if(K==null?0:K.pings)return wK(K.pings);J=g.f(J.renderingContent,x6);return(J==null?0:J.skipPings)?new Map([["skip",J.skipPings]]):new Map}; FcM=function(J,K,n,X,l){K=g.f(K.renderingContent,rp);if(!K)return new b("Invalid rendering content for DAI media layout");J=[new nx(X),new wD(n.gp.videoLengthSeconds),new Py(n.gp.playerVars),new By(n.w0),new mK(n.Zq),new px(n.Ix),new b$(xO(J)),new Kx(n.gp.adVideoId),new AN(n.e$),K.sodarExtensionData&&new iT(K.sodarExtensionData),new R7({current:null}),new Lx({}),new a7(z6(K.pings))].filter(kid);l!==void 0&&J.push(new dD(l));return J}; ay3=function(J,K,n){J=J.map(function(Q){return NW(g.f(Q.renderingContent,rp),!1)}); var X=J.map(function(Q){return Q.videoLengthSeconds}),l=X.map(function(Q,S){return new ib(S,X)}),x=K,V=n,v=[]; J.forEach(function(Q,S){V=Math.min(x+Q.videoLengthSeconds*1E3,n);ap(Q.playerVars,l[S]);v.push({gp:Q,w0:x,Zq:V,Ix:S,e$:l[S]});x=V}); return v}; qpr=function(J,K,n){for(var X=[],l=g.z(J),x=l.next();!x.done;x=l.next())if(x=g.f(x.value.renderingContent,rp)){if(!QS(x))return new b("Invalid vod media renderer");X.push(old(x))}l=X.map(function(C){return C.Vs}); x=[];for(var V=0,v=0;v0?J7:-1;else if(zM=g.f(M,x6)){M=rVd(J,K,n, zM,x,w,v,q,J7);if(M instanceof b){H=M;break a}M=M(O);P.push(M.jT);B=[].concat(g.m(M.r5),g.m(B));p=[].concat(g.m(M.pL),g.m(p));M.HB&&(lF=[M.HB].concat(g.m(lF)))}else if(zM=g.f(M,Cy)){if(H===void 0){H=new b("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:zM});break a}M=OxM(J,K,n,x,zM,A,v,H,w,FV(r,"supports_multi_step_on_desktop"));if(M instanceof b){H=M;break a}M=M(O);P.push(M.jT);M.HB&&lF.push(M.HB);B=[].concat(g.m(M.r5),g.m(B));p=[].concat(g.m(M.pL), g.m(p));k=[].concat(g.m(M.qe),g.m(k));c=[].concat(g.m(M.Me),g.m(c));y=[A].concat(g.m(y))}else if(M=g.f(M,O$)){M=Hx3(J,K,n,x,M,A,v,w);if(M instanceof b){H=M;break a}M=M(O);P.push(M.jT);M.HB&&lF.push(M.HB);p=[].concat(g.m(M.pL),g.m(p))}else{H=new b("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}H={Fc:P,layoutExitSkipTriggers:B,layoutExitUserInputSubmittedTriggers:k,BM:c,layoutExitMuteTriggers:p,rb:y,jp:lF}}}else a:if(w=ix3(X,n,r),w instanceof b)H=w;else{P=0;B=[];p=[];k=[];c=[];y= [];A=[];q=new uT({current:null});or=new JV({current:null});lF=!1;h7=[];J7=-1;R=g.z(X);for(M=R.next();!M.done;M=R.next())if(M=M.value,g.f(M,s$)){M=s73(K,n,g.f(M,s$),v);if(M instanceof b){H=M;break a}M=M(O);B.push(M.jT);p=[].concat(g.m(M.r5),g.m(p));k=[].concat(g.m(M.pL),g.m(k));M.HB&&(h7=[M.HB].concat(g.m(h7)))}else if(g.f(M,rp)){J7=J5(g.f(M,rp),n,r);if(J7 instanceof nQ){H=new b(J7);break a}M=new ib(P,w);M=BDV(K,J7.layoutId,J7.Bs,n,Kz(J7.playerVars,J7.HP,V,S,M),J7.Vs,x,M,v(O),or,Q.get(J7.Bs.externalVideoId), void 0,C);P++;B.push(M.jT);p=[].concat(g.m(M.r5),g.m(p));k=[].concat(g.m(M.pL),g.m(k));lF||(A.push(or),lF=!0);J7=(J7=J7.Bs.adPodSkipTarget)&&J7>0?J7:-1}else if(g.f(M,x6)){M=rVd(J,K,n,g.f(M,x6),x,P,v,or,J7);if(M instanceof b){H=M;break a}M=M(O);B.push(M.jT);p=[].concat(g.m(M.r5),g.m(p));k=[].concat(g.m(M.pL),g.m(k));M.HB&&(h7=[M.HB].concat(g.m(h7)))}else if(g.f(M,Cy)){if(H===void 0){H=new b("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.f(M, Cy)});break a}M=OxM(J,K,n,x,g.f(M,Cy),q,v,H,P,FV(r,"supports_multi_step_on_desktop"));if(M instanceof b){H=M;break a}M=M(O);B.push(M.jT);M.HB&&h7.push(M.HB);p=[].concat(g.m(M.r5),g.m(p));k=[].concat(g.m(M.pL),g.m(k));c=[].concat(g.m(M.qe),g.m(c));y=[].concat(g.m(M.Me),g.m(y));A=[q].concat(g.m(A))}else if(g.f(M,O$)){M=Hx3(J,K,n,x,g.f(M,O$),q,v,P);if(M instanceof b){H=M;break a}M=M(O);B.push(M.jT);M.HB&&h7.push(M.HB);k=[].concat(g.m(M.pL),g.m(k))}else{H=new b("Unsupported linearAd found in LinearAdSequenceRenderer."); break a}H={Fc:B,layoutExitSkipTriggers:p,layoutExitUserInputSubmittedTriggers:c,BM:y,layoutExitMuteTriggers:k,rb:A,jp:h7}}H instanceof b?O=H:(y=O.slotId,w=H.Fc,P=H.layoutExitSkipTriggers,B=H.layoutExitMuteTriggers,p=H.layoutExitUserInputSubmittedTriggers,k=H.rb,O=v(O),c=l?l.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",y=l?l.layoutId:q6(K.Z.get(),c,y),A={layoutId:y,layoutType:c,VG:"core"},O={layout:{layoutId:y,layoutType:c,dN:new Map,layoutExitNormalTriggers:[new Z7(K.G,y)],layoutExitSkipTriggers:P, layoutExitMuteTriggers:B,layoutExitUserInputSubmittedTriggers:p,BM:[],VG:"core",clientMetadata:new og([new eB(w)].concat(g.m(k))),U_:O(A)},jp:H.jp});return O}}; ix3=function(J,K,n){var X=[];J=g.z(J);for(var l=J.next();!l.done;l=J.next())if(l=l.value,g.f(l,rp)){l=J5(g.f(l,rp),K,n);if(l instanceof nQ)return new b(l);X.push(l.Vs)}return X}; pyU=function(J,K,n,X,l,x,V,v){if(!DVp(n,v===void 0?!1:v))return new b("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:n});var Q=bR(n);if(Q<=0)return new b("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:n});var S=new uT({current:null}),r=XkM(J,K,n,S,X,x,V);return mTr(J,X,x,Q,l,function(C,O){var H=C.slotId,R=Am(n);C=V(C);var w,P=(w=rX(K,X,n.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?w: q6(K.Z.get(),"LAYOUT_TYPE_MEDIA_BREAK",H);H={layoutId:P,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",VG:"core"};w=r(P,O);var B=XV(w.clientMetadata,"metadata_type_fulfilled_layout");B||Se("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");R=[new b$(X),new UO(Q),new ZU(R),S];B&&R.push(new Cx(B.layoutType));return{ivm:{layoutId:P,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",dN:new Map,layoutExitNormalTriggers:[new Z7(K.G,P)],layoutExitSkipTriggers:[new az(K.G, O.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new Nh(K.G,O.layoutId)],BM:[],VG:"core",clientMetadata:new og(R),U_:C(H)},Mu:w}})}; LK8=function(J){if(!g97(J))return!1;var K=g.f(J.adVideoStart,R8);return K?g.f(J.linearAd,rp)&&hm(K)?!0:(Se("Invalid Sandwich with notify"),!1):!1}; TDe=function(J){if(J.linearAds==null)return!1;J=g.f(J.adStart,R8);return J?hm(J)?!0:(Se("Invalid LASR with notify"),!1):!1}; DTH=function(J){if(!kIU(J))return!1;J=g.f(J.adStart,R8);return J?hm(J)?!0:(Se("Invalid LASR with notify"),!1):!1}; uL=function(J,K,n,X,l,x,V,v,Q,S){this.U=J;this.Z=K;this.G=n;this.xF=X;this.Oo=l;this.X=x;this.bx=V;this.hM=v;this.wW=Q;this.loadPolicy=S===void 0?1:S}; Zi=function(J,K,n,X,l,x,V,v,Q,S){var r=[];if(K.length===0&&X.length===0&&n.length===0)return r;K=K.filter(v$);var C=n.filter(pgr),O=X.filter(v$),H=new Map,R=di8(K),w=n.some(function(B3){var fU;return(B3==null?void 0:(fU=B3.adSlotMetadata)==null?void 0:fU.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),P=n.some(function(B3){var fU; return(B3==null?void 0:(fU=B3.adSlotMetadata)==null?void 0:fU.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),B=n.some(function(B3){var fU; return(B3==null?void 0:(fU=B3.adSlotMetadata)==null?void 0:fU.slotType)==="SLOT_TYPE_IN_PLAYER"}),p=n.some(function(B3){var fU,IH; return(B3==null?void 0:(fU=B3.adSlotMetadata)==null?void 0:fU.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(B3==null?void 0:(IH=B3.adSlotMetadata)==null?void 0:IH.slotType)==="SLOT_TYPE_ABOVE_FEED"}); n=n.some(function(B3){var fU;return(B3==null?void 0:(fU=B3.adSlotMetadata)==null?void 0:fU.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); if(w||P||B||p||n)S=yN8(C,K,v,l,R,J.Oo.get(),J.loadPolicy,H,J.xF.get(),J.U.get(),B,V,Q,S),S instanceof b?Se(S,void 0,void 0,{contentCpn:l}):r.push.apply(r,g.m(S));S=g.z(K);for(n=S.next();!n.done;n=S.next())n=n.value,P=dTF(J,H,n,l,x,V,w,v,R,Q,C),P instanceof b?Se(P,void 0,void 0,{renderer:n.renderer,config:n.config.adPlacementConfig,kind:n.config.adPlacementConfig.kind,contentCpn:l,daiEnabled:V}):r.push.apply(r,g.m(P));kU7(J.xF.get())||(x=glq(J,O,l,v,R,H),r.push.apply(r,g.m(x)));if(J.X===null||V&&!v.Nw){var k, c,y;J=v.qS&&K.length===1&&((k=K[0].config)==null?void 0:(c=k.adPlacementConfig)==null?void 0:c.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((y=K[0].renderer)==null?void 0:y.adBreakServiceRenderer);if(!r.length&&!J){var A,q,or,lF;Se("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":K.length,contentCpn:l,"first APR kind":(A=K[0])==null?void 0:(q=A.config)==null?void 0:(or=q.adPlacementConfig)==null?void 0:or.kind,renderer:(lF=K[0])==null?void 0: lF.renderer})}return r}k=X.filter(v$);r.push.apply(r,g.m(Kcq(H,k,J.Z.get(),J.X,l,w)));if(!r.length){var J7,h7,M,zM;Se("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":K.length,contentCpn:l,daiEnabled:V.toString(),"first APR kind":(J7=K[0])==null?void 0:(h7=J7.config)==null?void 0:(M=h7.adPlacementConfig)==null?void 0:M.kind,renderer:(zM=K[0])==null?void 0:zM.renderer})}return r}; glq=function(J,K,n,X,l,x){function V(O){return vb(J.Oo.get(),O)} var v=[];K=g.z(K);for(var Q=K.next();!Q.done;Q=K.next()){Q=Q.value;var S=Q.renderer,r=S.sandwichedLinearAdRenderer,C=S.linearAdSequenceRenderer;r&&LK8(r)?(Se("Found AdNotify with SandwichedLinearAdRenderer"),C=g.f(r.adVideoStart,R8),r=g.f(r.linearAd,rp),FZ(x,S,Q.config.adPlacementConfig.kind),S=void 0,C=wkU((S=C)==null?void 0:S.layout.layoutId,J.Z.get(),J.G.get(),Q.config.adPlacementConfig,Q.adSlotLoggingData,r,n,X,V,l,J.loadPolicy,J.xF.get(),J.Oo.get()),C instanceof b?Se(C):v.push.apply(v,g.m(C))): C&&(!C.adLayoutMetadata&&TDe(C)||C.adLayoutMetadata&&DTH(C))&&(Se("Found AdNotify with LinearAdSequenceRenderer"),FZ(x,S,Q.config.adPlacementConfig.kind),S=void 0,r=Rak((S=g.f(C.adStart,R8))==null?void 0:S.layout.layoutId,J.Z.get(),J.G.get(),Q.config.adPlacementConfig,Q.adSlotLoggingData,C.linearAds,ny(C.adLayoutMetadata)?C.adLayoutMetadata:void 0,n,X,V,l,J.loadPolicy,J.xF.get()),r instanceof b?Se(r):v.push.apply(v,g.m(r)))}return v}; dTF=function(J,K,n,X,l,x,V,v,Q,S,r){function C(B){return vb(J.Oo.get(),B)} var O=n.renderer,H=n.config.adPlacementConfig,R=H.kind,w=n.adSlotLoggingData,P=v.Nw&&R==="AD_PLACEMENT_KIND_START";P=x&&!P;if(O.adsEngagementPanelRenderer!=null)return E$(K,n.elementId,R,O.adsEngagementPanelRenderer.isContentVideoEngagementPanel,O.adsEngagementPanelRenderer.adVideoId,O.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,H,w,function(B,p,k,c){var y=J.G.get(),A=B.slotId,q=O.adsEngagementPanelRenderer;B=vb(J.Oo.get(),B);return eC(y,A,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new Up(q),p,k,q.impressionPings,B,O.adsEngagementPanelRenderer.adLayoutLoggingData,c)}),[]; if(O.adsEngagementPanelLayoutViewModel)return E$(K,n.elementId,R,O.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,O.adsEngagementPanelLayoutViewModel.adVideoId,O.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,H,w,function(B,p,k,c){var y=J.G.get(),A=B.slotId,q=O.adsEngagementPanelLayoutViewModel;B=vb(J.Oo.get(),B);return zX(y,A,"LAYOUT_TYPE_PANEL",new tN(q),p,k,B,O.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,c)}),[]; if(O.actionCompanionAdRenderer!=null){if(O.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return b3f(J.Z.get(),J.X,J.G.get(),O.actionCompanionAdRenderer,H,w,X,C);E$(K,n.elementId,R,O.actionCompanionAdRenderer.isContentVideoCompanion,O.actionCompanionAdRenderer.adVideoId,O.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,H,w,function(B,p,k,c){var y=J.G.get(),A=B.slotId,q=O.actionCompanionAdRenderer;B=vb(J.Oo.get(),B);return eC(y,A,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new Yk(q),p,k,q.impressionPings,B,O.actionCompanionAdRenderer.adLayoutLoggingData,c)})}else if(O.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(O.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return A3V(J.Z.get(),J.X,J.G.get(),O.topBannerImageTextIconButtonedLayoutViewModel,H,w,X,C); E$(K,n.elementId,R,O.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,O.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,O.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,H,w,function(B,p,k,c){var y=J.G.get(),A=B.slotId,q=O.topBannerImageTextIconButtonedLayoutViewModel;B=vb(J.Oo.get(),B);return zX(y,A,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new Gi(q),p,k,B,O.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,c)})}else if(O.imageCompanionAdRenderer)E$(K, n.elementId,R,O.imageCompanionAdRenderer.isContentVideoCompanion,O.imageCompanionAdRenderer.adVideoId,O.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,H,w,function(B,p,k,c){var y=J.G.get(),A=B.slotId,q=O.imageCompanionAdRenderer; B=vb(J.Oo.get(),B);return eC(y,A,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new Wk(q),p,k,q.impressionPings,B,O.imageCompanionAdRenderer.adLayoutLoggingData,c)}); else if(O.bannerImageLayoutViewModel)E$(K,n.elementId,R,O.bannerImageLayoutViewModel.isContentVideoCompanion,O.bannerImageLayoutViewModel.adVideoId,O.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,H,w,function(B,p,k,c){var y=J.G.get(),A=B.slotId,q=O.bannerImageLayoutViewModel;B=vb(J.Oo.get(),B);return zX(y,A,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new aL(q),p,k,B,O.bannerImageLayoutViewModel.adLayoutLoggingData,c)}); else if(O.shoppingCompanionCarouselRenderer)E$(K,n.elementId,R,O.shoppingCompanionCarouselRenderer.isContentVideoCompanion,O.shoppingCompanionCarouselRenderer.adVideoId,O.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,H,w,function(B,p,k,c){var y=J.G.get(),A=B.slotId,q=O.shoppingCompanionCarouselRenderer;B=vb(J.Oo.get(),B);return eC(y,A,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new FO(q),p,k,q.impressionPings,B,O.shoppingCompanionCarouselRenderer.adLayoutLoggingData,c)}); else if(O.adBreakServiceRenderer){if(!qgd(n))return[];if(R==="AD_PLACEMENT_KIND_PAUSE")return Fd3(J.Z.get(),H,w,n.renderer.adBreakServiceRenderer,X);if(R!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&R!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return aP7(J.Z.get(),H,w,n.renderer.adBreakServiceRenderer,X,l,x);v.qS||Se("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:R,adPlacementConfig:H,daiEnabledForContentVideo:String(x),isServedFromLiveInfra:String(v.qS),clientPlaybackNonce:v.clientPlaybackNonce}); if(R==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!J.bx)return new b("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!J.wW)return new b("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");J.wW.Ee({adPlacementRenderer:n,contentCpn:X,yZ:l});l=wX(J.bx.get());return cV3(J.Z.get(),n.renderer.adBreakServiceRenderer,H,l,X,w,x)}if(!J.hM)return new b("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); J.hM.Ee({adPlacementRenderer:n,contentCpn:X,yZ:l})}else{if(O.clientForecastingAdRenderer)return j7V(J.Z.get(),J.G.get(),H,w,O.clientForecastingAdRenderer,X,l,C);if(O.invideoOverlayAdRenderer)return Q7H(J.Z.get(),J.G.get(),H,w,O.invideoOverlayAdRenderer,X,l,C);if(O.instreamAdPlayerOverlayRenderer)return had(J.Z.get(),J.G.get(),H,w,O.instreamAdPlayerOverlayRenderer,X,C);if((O.linearAdSequenceRenderer||O.instreamVideoAdRenderer)&&P)return OOU(J.Z.get(),J.G.get(),n,X,C,S,YOF(J.xF.get()));if(O.linearAdSequenceRenderer&& !P){if(V)return[];FZ(K,O,R);if(O.linearAdSequenceRenderer.adLayoutMetadata){if(!kIU(O.linearAdSequenceRenderer))return new b("Received invalid LinearAdSequenceRenderer.")}else if(O.linearAdSequenceRenderer.linearAds==null)return new b("Received invalid LinearAdSequenceRenderer.");if(g.f(O.linearAdSequenceRenderer.adStart,R8)){Se("Found AdNotify in LinearAdSequenceRenderer");n=g.f(O.linearAdSequenceRenderer.adStart,R8);if(!O3f(n))return new b("Invalid AdMessageRenderer.");x=O.linearAdSequenceRenderer.linearAds; return u$3(J.U.get(),J.Z.get(),J.G.get(),J.Oo.get(),H,w,n,ny(O.linearAdSequenceRenderer.adLayoutMetadata)?O.linearAdSequenceRenderer.adLayoutMetadata:void 0,x,X,l,v,C,Q,J.loadPolicy,J.xF.get())}return IUd(J.Z.get(),J.G.get(),H,w,O.linearAdSequenceRenderer.linearAds,ny(O.linearAdSequenceRenderer.adLayoutMetadata)?O.linearAdSequenceRenderer.adLayoutMetadata:void 0,X,l,v,C,Q,J.loadPolicy,J.xF.get(),r)}if(!O.remoteSlotsRenderer||x){if(O.instreamVideoAdRenderer&&!P){if(V)return[];FZ(K,O,R);return mie(J.Z.get(), J.G.get(),H,w,O.instreamVideoAdRenderer,X,l,v,C,Q,J.loadPolicy,J.xF.get(),J.Oo.get(),r)}if(O.instreamSurveyAdRenderer)return pyU(J.Z.get(),J.G.get(),O.instreamSurveyAdRenderer,H,w,X,C,FV(J.xF.get(),"supports_multi_step_on_desktop"));if(O.sandwichedLinearAdRenderer!=null)return g97(O.sandwichedLinearAdRenderer)?g.f(O.sandwichedLinearAdRenderer.adVideoStart,R8)?(Se("Found AdNotify in SandwichedLinearAdRenderer"),n=g.f(O.sandwichedLinearAdRenderer.adVideoStart,R8),O3f(n)?(x=g.f(O.sandwichedLinearAdRenderer.linearAd, rp))?P$r(n,x,H,J.U.get(),J.Z.get(),J.G.get(),J.Oo.get(),w,X,l,v,C,Q,J.loadPolicy,J.xF.get()):new b("Missing IVAR from Sandwich"):new b("Invalid AdMessageRenderer.")):IUd(J.Z.get(),J.G.get(),H,w,[O.sandwichedLinearAdRenderer.adVideoStart,O.sandwichedLinearAdRenderer.linearAd],void 0,X,l,v,C,Q,J.loadPolicy,J.xF.get()):new b("Received invalid SandwichedLinearAdRenderer.");if(O.videoAdTrackingRenderer!=null)return lU3(J.Z.get(),J.G.get(),O.videoAdTrackingRenderer,H,w,X,l,v.Sz,C)}}return[]}; P2=function(J,K,n,X,l,x,V,v){g.t.call(this);var Q=this;this.Z=J;this.X=K;this.tB=X;this.bx=l;this.xF=x;this.NQ=V;this.dR=v;this.G=null;n.get().addListener(this);this.addOnDisposeCallback(function(){n.o4()||n.get().removeListener(Q)}); X.get().addListener(this);this.addOnDisposeCallback(function(){X.o4()||X.get().removeListener(Q)})}; tB3=function(J,K,n){var X=wX(J.bx.get());GUe(J.xF.get())&&lb(J.NQ.get(),"sdai","onopp.1;evt."+n.event+";start."+n.startSecs.toFixed(3)+";d."+n.rW.toFixed(3));$1(J.Z.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var l=J.X.get(),x=K.adPlacementRenderer.renderer.adBreakServiceRenderer,V=K.contentCpn,v=K.adPlacementRenderer.adSlotLoggingData,Q=I8(J.xF.get()),S=J.NQ;if(l.xF.get().B.S().experiments.sM("enable_smearing_expansion_dai")){var r=l.xF.get();r=g.Qg(r.B.S().experiments,"max_prefetch_window_sec_for_livestream_optimization"); Q=l.xF.get();var C=g.Qg(Q.B.S().experiments,"min_prefetch_offset_sec_for_livestream_optimization");Q={T9:UTd(n),CY:!1,cueProcessedMs:X*1E3};var O=n.startSecs+n.rW;if(X===0)Q.CQ=new PM(0,O*1E3);else{C=n.startSecs-C;var H=C-X;Q.CQ=H<=0?new PM(C*1E3,O*1E3):new PM(Math.floor(X+Math.random()*Math.min(H,r))*1E3,O*1E3)}r=Q}else r={T9:UTd(n),CY:!1},O=n.startSecs+n.rW,n.startSecs<=X?Q=new PM((n.startSecs-4)*1E3,O*1E3):(C=Math.max(0,n.startSecs-X-10),Q=new PM(Math.floor(X+Math.random()*(Q?X===0?0:Math.min(C, 5):C))*1E3,O*1E3)),r.CQ=Q;x=fy(l,x,V,r,v,[new zU(n)]);iL(l.xF.get())&&lb(S.get(),"abrsm","cpi."+n.identifier+";cps."+n.startSecs+";cpd."+n.rW+";cts."+X+";rbf."+r.CQ.start);S.get().B.fK(n.startSecs-X,r.CQ.start/1E3-X);return[x]})}; B2=function(J){var K,n=(K=XV(J.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:K.current;if(!n)return null;K=XV(J.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var X=J.layoutId,l=XV(J.clientMetadata,"metadata_type_content_cpn"),x=XV(J.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),V=XV(J.clientMetadata,"metadata_type_player_overlay_layout_renderer"),v=XV(J.clientMetadata,"metadata_type_player_underlay_renderer"),Q=XV(J.clientMetadata, "metadata_type_ad_placement_config"),S=XV(J.clientMetadata,"metadata_type_video_length_seconds");var r=NT(J.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?XV(J.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):NT(J.clientMetadata,"metadata_type_layout_enter_ms")&&NT(J.clientMetadata,"metadata_type_layout_exit_ms")?(XV(J.clientMetadata,"metadata_type_layout_exit_ms")-XV(J.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{va:X,contentCpn:l,x5:n,rg:K,instreamAdPlayerOverlayRenderer:x, playerOverlayLayoutRenderer:V,instreamAdPlayerUnderlayRenderer:v,adPlacementConfig:Q,videoLengthSeconds:S,kp:r,inPlayerLayoutId:XV(J.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:XV(J.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; ZxV=function(J,K){return yVU(J,K)}; fUM=function(J,K){K=yVU(J,K);if(!K)return null;var n;K.kp=(n=XV(J.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:n.adBreakRemainingLengthSeconds;return K}; yVU=function(J,K){var n,X=(n=XV(J.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:n.current;if(!X)return null;n=lB3(J,K);return{Im:Xzq(J,K),adPlacementConfig:XV(J.clientMetadata,"metadata_type_ad_placement_config"),YW:n,contentCpn:XV(J.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:XV(J.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:XV(J.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:XV(J.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,kp:void 0,x5:X,va:J.layoutId,videoLengthSeconds:XV(J.clientMetadata,"metadata_type_video_length_seconds")}}; mi=function(J,K,n,X,l,x,V,v,Q){g.t.call(this);this.U=J;this.N=K;this.C=n;this.X=X;this.G=l;this.Z=x;this.Oo=V;this.xF=v;this.Jj=Q;this.Ok=!0}; WKd=function(J,K,n){return Tt7(J.G.get(),K.contentCpn,K.va,function(X){return DiF(J.Z.get(),X.slotId,n,K.adPlacementConfig,K.va,vb(J.Oo.get(),X))})}; pz=function(J,K,n,X,l,x,V,v){g.t.call(this);this.Z=J;this.G=K;this.X=n;this.xF=X;this.U=l;this.Jj=x;this.bx=V;this.n9=v}; Lz=function(J){g.t.call(this);this.G=J}; $1=function(J,K,n,X){J.G().eT(K,X);n=n();J=J.G();J.Bw.Wk("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",K,X,n);K=g.z(n);for(n=K.next();!n.done;n=K.next())a:{X=J;n=n.value;X.Bw.KJ("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",n);X.Bw.KJ("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",n);try{var l=X.G;if(g.O7(n.slotId))throw new b("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(Rg(l,n))throw new b("Duplicate registration for slot.",{slotId:n.slotId,slotEntryTriggerType:n.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!l.Ch.Ro.has(n.slotType))throw new b("No fulfillment adapter factory registered for slot of type: "+n.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!l.Ch.KK.has(n.slotType))throw new b("No SlotAdapterFactory registered for slot of type: "+n.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");cb(l,"TRIGGER_CATEGORY_SLOT_ENTRY",n.slotEntryTrigger?[n.slotEntryTrigger]:[]);cb(l,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", n.slotFulfillmentTriggers);cb(l,"TRIGGER_CATEGORY_SLOT_EXPIRATION",n.slotExpirationTriggers);var x=X.G,V=n.slotType+"_"+n.slotPhysicalPosition,v=TC(x,V);if(Rg(x,n))throw new b("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");v.set(n.slotId,new A4F(n));x.G.set(V,v)}catch(or){or instanceof b&&or.nI?(X.Bw.d5("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",or.nI,n),Se(or,n,void 0,void 0,or.D_)):(X.Bw.d5("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", n),Se(or,n));break a}g.U(Rg(X.G,n)).N=!0;try{var Q=X.G,S=g.U(Rg(Q,n)),r=n.slotEntryTrigger,C=Q.Ch.Yl.get(r.triggerType);C&&(C.yI("TRIGGER_CATEGORY_SLOT_ENTRY",r,n,null),S.Aj.set(r.triggerId,C));for(var O=g.z(n.slotFulfillmentTriggers),H=O.next();!H.done;H=O.next()){var R=H.value,w=Q.Ch.Yl.get(R.triggerType);w&&(w.yI("TRIGGER_CATEGORY_SLOT_FULFILLMENT",R,n,null),S.GA.set(R.triggerId,w))}for(var P=g.z(n.slotExpirationTriggers),B=P.next();!B.done;B=P.next()){var p=B.value,k=Q.Ch.Yl.get(p.triggerType); k&&(k.yI("TRIGGER_CATEGORY_SLOT_EXPIRATION",p,n,null),S.K.set(p.triggerId,k))}var c=Q.Ch.Ro.get(n.slotType).get().build(Q.X,n);S.W=c;var y=Q.Ch.KK.get(n.slotType).get().build(Q.C,n);y.init();S.Z=y}catch(or){or instanceof b&&or.nI?(X.Bw.d5("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",or.nI,n),Se(or,n,void 0,void 0,or.D_)):(X.Bw.d5("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",n),Se(or,n));CQ(X,n,!0);break a}X.Bw.KJ("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",n); X.G.aO(n);for(var A=g.z(X.Z),q=A.next();!q.done;q=A.next())q.value.aO(n);zC(X,n)}}; TX=function(J,K,n,X,l){g.t.call(this);var x=this;this.Z=J;this.X=K;this.jh=n;this.context=l;this.G=new Map;X.get().addListener(this);this.addOnDisposeCallback(function(){X.o4()||X.get().removeListener(x)})}; UVr=function(J,K){var n=0x8000000000000;var X=0;for(var l=g.z(K.slotFulfillmentTriggers),x=l.next();!x.done;x=l.next())x=x.value,x instanceof GN?(n=Math.min(n,x.G.start),X=Math.max(X,x.G.end)):Se("Found unexpected fulfillment trigger for throttled slot.",K,null,{fulfillmentTrigger:x});X=new PM(n,X);n="throttledadcuerange:"+K.slotId;J.G.set(n,K);J.jh.get().addCueRange(n,X.start,X.end,!1,J);wY(J.context.xF.get())&&(K=X.start,X=X.end,l={},J.context.gG.zA("tcrr",(l.cid=n,l.sm=K,l.em=X,l)))}; Dd=function(){g.t.apply(this,arguments);this.Ok=!0;this.zQ=new Map;this.G=new Map}; dX=function(J){return J.zQ}; kO=function(J,K){J=g.z(J.zQ.values());for(var n=J.next();!n.done;n=J.next())if(n.value.layoutId===K)return!0;return!1}; gX=function(J,K){J=g.z(J.G.values());for(var n=J.next();!n.done;n=J.next()){n=g.z(n.value);for(var X=n.next();!X.done;X=n.next())if(X=X.value,X.layoutId===K)return X}Se("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.O7(K)),layoutId:K})}; aUf=function(){this.G=new Map}; FKr=function(J,K){this.callback=J;this.slot=K}; c2=function(){}; qOp=function(J,K,n){this.callback=J;this.slot=K;this.bx=n}; El7=function(J,K,n){this.callback=J;this.slot=K;this.bx=n;this.Z=!1;this.G=0}; bxk=function(J,K,n){this.callback=J;this.slot=K;this.bx=n}; YO=function(J){this.bx=J}; GX=function(J){g.t.call(this);this.Iv=J;this.E_=new Map}; UZ=function(J,K){for(var n=[],X=g.z(J.E_.values()),l=X.next();!l.done;l=X.next()){l=l.value;var x=l.trigger;x instanceof Nh&&x.triggeringLayoutId===K&&n.push(l)}n.length?mh(J.Iv(),n):Se("Survey is submitted but no registered triggers can be activated.")}; t5=function(J,K,n){GX.call(this,J);var X=this;this.xF=n;K.get().addListener(this);this.addOnDisposeCallback(function(){K.o4()||K.get().removeListener(X)})}; yE=function(J){g.t.call(this);this.G=J;this.Ok=!0;this.E_=new Map;this.C=new Set;this.X=new Set;this.U=new Set;this.N=new Set;this.Z=new Set}; Zd=function(J){g.t.call(this);this.G=J;this.E_=new Map}; fz=function(J,K){for(var n=[],X=g.z(J.E_.values()),l=X.next();!l.done;l=X.next())l=l.value,l.trigger.G===K.layoutId&&n.push(l);n.length&&mh(J.G(),n)}; W2=function(J,K,n){g.t.call(this);var X=this;this.G=J;this.context=n;this.E_=new Map;K.get().addListener(this);this.addOnDisposeCallback(function(){K.o4()||K.get().removeListener(X)})}; a8=function(J,K,n,X,l){g.t.call(this);var x=this;this.Z=J;this.jh=K;this.bx=n;this.Jj=X;this.context=l;this.Ok=!0;this.E_=new Map;this.G=new Set;n.get().addListener(this);this.addOnDisposeCallback(function(){n.o4()||n.get().removeListener(x)})}; AVM=function(J,K,n,X,l,x,V,v,Q,S){if(RK(J.Jj.get(),1).clientPlaybackNonce!==Q)throw new b("Cannot register CueRange-based trigger for different content CPN",{trigger:n});J.E_.set(n.triggerId,{mM:new Ky(K,n,X,l),cueRangeId:x});J.jh.get().addCueRange(x,V,v,S,J);wY(J.context.xF.get())&&(Q={},J.context.gG.zA("crr",(Q.ca=K,Q.tt=n.triggerType,Q.st=X.slotType,Q.lt=l==null?void 0:l.layoutType,Q.cid=x,Q.sm=V,Q.em=v,Q)))}; MBd=function(J,K){J=g.z(J.E_.entries());for(var n=J.next();!n.done;n=J.next()){var X=g.z(n.value);n=X.next().value;X=X.next().value;if(K===X.cueRangeId)return n}return""}; FT=function(J,K){g.t.call(this);var n=this;this.U=J;this.Z=new Map;this.X=new Map;this.G=null;K.get().addListener(this);this.addOnDisposeCallback(function(){K.o4()||K.get().removeListener(n)}); var X;this.G=((X=ng(K.get()))==null?void 0:X.slotId)||null}; NDk=function(J,K){var n=[];J=g.z(J.values());for(var X=J.next();!X.done;X=J.next())X=X.value,X.slot.slotId===K&&n.push(X);return n}; qP=function(J){g.t.call(this);this.G=J;this.Ok=!0;this.E_=new Map}; qn=function(J,K,n){K=K.layoutId;for(var X=[],l=g.z(J.E_.values()),x=l.next();!x.done;x=l.next())if(x=x.value,x.trigger instanceof Z7){var V;if(V=x.trigger.layoutId===K){V=n;var v=fxq.get(x.category);V=v?v===V:!1}V&&X.push(x)}X.length&&mh(J.G(),X)}; EZ=function(J){g.t.call(this);this.G=J;this.Ok=!0;this.E_=new Map}; bL=function(J,K,n,X,l){g.t.call(this);var x=this;this.U=J;this.tB=K;this.bx=n;this.NQ=X;this.G=null;this.Ok=!0;this.E_=new Map;K.get().addListener(this);this.addOnDisposeCallback(function(){K.o4()||K.get().removeListener(x)}); l.get().addListener(this);this.addOnDisposeCallback(function(){l.o4()||l.get().removeListener(x)})}; KhH=function(J){J.G&&(J.Z&&(J.Z.stop(),J.Z.start()),J63(J,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"))}; J63=function(J,K){for(var n=[],X=g.z(J.E_.values()),l=X.next();!l.done;l=X.next())l=l.value,l.trigger.triggerType===K&&n.push(l);n.length>0&&mh(J.U(),n)}; A5=function(J,K,n,X,l){for(var x=[],V=g.z(J.E_.values()),v=V.next();!v.done;v=V.next()){var Q=v=v.value,S=Q.trigger;Q=Q.slot;if(S.triggerType===K){if(S instanceof gO||S instanceof cW||S instanceof UA){if(l&&S.breakDurationMs!==n)continue;if(!l&&S.breakDurationMs===n)continue;if(X.has(Q.slotId))continue}x.push(v)}}x.length>0&&mh(J.U(),x)}; nGk=function(J,K){K=(K.rW+1)*1E3;var n=void 0;J=g.z(J.E_.values());for(var X=J.next();!X.done;X=J.next()){var l=X.value;X=l.trigger;l=l.slot;X instanceof gO&&X.breakDurationMs<=K&&(!n||X.breakDurationMs>n.trigger.breakDurationMs)&&(n={slot:l,trigger:X})}return n}; oGd=function(J){J=J.adPlacementRenderer.config.adPlacementConfig;if(!J.prefetchModeConfig||!J.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;J=Number(J.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(J)||J<=0?0:Math.floor(Math.random()*J)}; Xbq=function(J){J=J.adPlacementRenderer.config.adPlacementConfig;if(J.prefetchModeConfig&&J.prefetchModeConfig.cacheFetchRefreshDurationMs&&(J=Number(J.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(J)||J<=0)))return J}; MP=function(J){J.G=null;J.E_.clear();J.Z&&J.Z.stop();J.X&&J.X.stop()}; NP=function(J){g.t.call(this);this.X=J;this.Ok=!0;this.E_=new Map;this.G=new Map;this.Z=new Map}; loV=function(J,K){var n=[];if(K=J.G.get(K.layoutId)){K=g.z(K);for(var X=K.next();!X.done;X=K.next())(X=J.Z.get(X.value.triggerId))&&n.push(X)}return n}; Jt=function(J){g.t.call(this);this.G=J;this.E_=new Map}; x6d=function(J,K){for(var n=[],X=g.z(J.E_.values()),l=X.next();!l.done;l=X.next())l=l.value,l.trigger instanceof Iz&&l.trigger.slotId===K&&n.push(l);n.length>=1&&mh(J.G(),n)}; jgq=function(J,K){var n={slotId:S_(K,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],VG:"surface",clientMetadata:new og([])},X=Object,l=X.assign;K=q6(K,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",n.slotId);K={layoutId:K,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",dN:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],BM:[],VG:"surface", clientMetadata:new og([]),U_:Ymr(!1,n.slotId,n.slotType,n.slotPhysicalPosition,n.VG,n.slotEntryTrigger,n.slotFulfillmentTriggers,n.slotExpirationTriggers,K,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return l.call(X,{},J,{o3:!0,slot:n,layout:K})}; Wd7=function(J,K,n,X){var l=J.kind;X=X?!1:!J.hideCueRangeMarker;switch(l){case "AD_PLACEMENT_KIND_START":return X={T9:new PM(-0x8000000000000,-0x8000000000000),CY:X},n!=null&&(X.CQ=new PM(-0x8000000000000,-0x8000000000000)),X;case "AD_PLACEMENT_KIND_END":return X={T9:new PM(0x7ffffffffffff,0x8000000000000),CY:X},n!=null&&(X.CQ=new PM(Math.max(0,K-n),0x8000000000000)),X;case "AD_PLACEMENT_KIND_MILLISECONDS":l=J.adTimeOffset;l.offsetStartMilliseconds||Se("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); l.offsetEndMilliseconds||Se("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");J=Number(l.offsetStartMilliseconds);l=Number(l.offsetEndMilliseconds);l===-1&&(l=K);if(Number.isNaN(J)||Number.isNaN(l)||J>l)return new b("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:J,offsetEndMs:l},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",l===K&&J-500<=l);X={T9:new PM(J,l),CY:X};if(n!=null){J=Math.max(0,J-n);if(J===l)return X;X.CQ=new PM(J,l)}return X; default:return new b("AdPlacementKind not supported in convertToRange.",{kind:l,adPlacementConfig:J})}}; UTd=function(J){var K=J.startSecs*1E3;return new PM(K,K+J.rW*1E3)}; V18=function(J){if(!J||!J.adPlacements&&!J.adSlots)return!1;for(var K=g.z(J.adPlacements||[]),n=K.next();!n.done;n=K.next())if(n=n.value)if(n=n.adPlacementRenderer,n!=null&&(n.config&&n.config.adPlacementConfig&&n.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;J=g.z(J.adSlots||[]);for(K=J.next();!K.done;K=J.next()){var X=n=void 0;if(((n=g.f(K.value,yS))==null?void 0:(X=n.adSlotMetadata)==null?void 0:X.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; KY=function(J){this.xF=J;this.Z=new Map;this.G=new Map;this.X=new Map}; S_=function(J,K){if(nY(J.xF.get())){var n=J.Z.get(K)||0;n++;J.Z.set(K,n);return K+"_"+n}return g.wV(16)}; q6=function(J,K,n){if(nY(J.xF.get())){var X=J.G.get(K)||0;X++;J.G.set(K,X);return n+"_"+K+"_"+X}return g.wV(16)}; v2=function(J,K){if(nY(J.xF.get())){var n=J.X.get(K)||0;n++;J.X.set(K,n);return K+"_"+n}return g.wV(16)}; hRV=function(J){var K=[new rD(J.va),new Hy(J.x5),new b$(J.adPlacementConfig),new wD(J.videoLengthSeconds),new GU(J.kp)];J.instreamAdPlayerOverlayRenderer&&K.push(new o7(J.instreamAdPlayerOverlayRenderer));J.playerOverlayLayoutRenderer&&K.push(new X$(J.playerOverlayLayoutRenderer));J.rg&&K.push(new JV(J.rg));return K}; vG8=function(J,K,n,X,l,x){J=n.inPlayerLayoutId?n.inPlayerLayoutId:q6(x,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",J);var V,v,Q=n.instreamAdPlayerOverlayRenderer?(V=n.instreamAdPlayerOverlayRenderer)==null?void 0:V.adLayoutLoggingData:(v=n.playerOverlayLayoutRenderer)==null?void 0:v.adLayoutLoggingData;V={layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",VG:K};return{layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",dN:new Map,layoutExitNormalTriggers:[new dO(function(S){return v2(x, S)},n.va)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],BM:[],VG:K,clientMetadata:X,U_:l(V),adLayoutLoggingData:Q}}; od=function(J,K){var n=this;this.Z=J;this.xF=K;this.G=function(X){return v2(n.Z.get(),X)}}; DiF=function(J,K,n,X,l,x){n=new og([new lT(n),new b$(X)]);K=q6(J.Z.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",K);X={layoutId:K,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",VG:"core"};return{layoutId:K,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",dN:new Map,layoutExitNormalTriggers:[new dO(function(V){return v2(J.Z.get(),V)},l)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],BM:[],VG:"core",clientMetadata:n,U_:x(X),adLayoutLoggingData:void 0}}; nz=function(J,K,n,X,l){var x=hRV(X);return vG8(K,n,X,new og(x),l,J.Z.get())}; Qgp=function(J,K,n,X,l){var x=hRV(X);x.push(new qi(X.Im));x.push(new Ep(X.YW));return vG8(K,n,X,new og(x),l,J.Z.get())}; eC=function(J,K,n,X,l,x,V,v,Q,S){K=q6(J.Z.get(),n,K);var r={layoutId:K,layoutType:n,VG:"core"},C=new Map;V&&C.set("impression",V);V=[new td(J.G,l,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];S&&V.push(new D7(J.G,S,["normal"]));return{layoutId:K,layoutType:n,dN:C,layoutExitNormalTriggers:V,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],BM:[],VG:"core",clientMetadata:new og([X,new b$(x),new rD(l)]),U_:v(r),adLayoutLoggingData:Q}}; zX=function(J,K,n,X,l,x,V,v,Q){K=q6(J.Z.get(),n,K);var S={layoutId:K,layoutType:n,VG:"core"},r=[new td(J.G,l,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];Q&&r.push(new D7(J.G,Q,["normal"]));return{layoutId:K,layoutType:n,dN:new Map,layoutExitNormalTriggers:r,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],BM:[],VG:"core",clientMetadata:new og([X,new b$(x),new rD(l)]),U_:V(S),adLayoutLoggingData:v}}; $O=function(J,K,n){var X=[];X.push(new yJ(J.G,n));K&&X.push(K);return X}; QE=function(J,K,n,X,l,x,V){var v={layoutId:K,layoutType:n,VG:"core"};return{layoutId:K,layoutType:n,dN:new Map,layoutExitNormalTriggers:V,layoutExitSkipTriggers:[new m6(J.G,K)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],BM:[],VG:"core",clientMetadata:new og([new fO(X),new b$(l)]),U_:x(v),adLayoutLoggingData:X.adLayoutLoggingData}}; MW=function(J,K,n,X,l,x,V,v){var Q={layoutId:K,layoutType:x,VG:"core"};return{layoutId:K,layoutType:x,dN:new Map,layoutExitNormalTriggers:[new dO(J.G,n)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],BM:[],VG:"core",clientMetadata:new og([new b$(X)].concat(g.m(V))),U_:l(Q),adLayoutLoggingData:v}}; rX=function(J,K,n,X){if(J.xF.get().A7(K.kind==="AD_PLACEMENT_KIND_START"))if(n===void 0)Se("Expected SSAP layout ID in renderer",void 0,void 0,{caller:X});else return n}; $TM=function(J,K,n,X,l,x,V,v,Q,S,r,C,O){J=SC(J,K,n,l,x,V,v,Q,C,rX(J,n,X.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),O);K=J.rb;n=new sO(J.P0);X=J.layoutExitSkipTriggers;S>0&&(K.push(n),K.push(new Ni(S)),X=[]);K.push(new Mi(r));return{jT:{layoutId:J.layoutId,layoutType:J.layoutType,dN:J.dN,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],BM:[],VG:J.VG,clientMetadata:new og(K),U_:J.U_,adLayoutLoggingData:J.adLayoutLoggingData}, r5:X,pL:J.layoutExitMuteTriggers,qe:J.layoutExitUserInputSubmittedTriggers,Me:J.BM,HB:J.HB}}; CTd=function(J,K,n,X,l,x,V,v,Q,S){K=SC(J,K,n,X,x,new Map,V,function(r){return v(r,Q)},void 0,rX(J,n,l.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); J=new Nh(J.G,K.P0);n=new sO(K.P0);S=new Mi(S);return{jT:{layoutId:K.layoutId,layoutType:K.layoutType,dN:K.dN,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],BM:[],VG:K.VG,clientMetadata:new og([].concat(g.m(K.rb),[n,S])),U_:K.U_,adLayoutLoggingData:K.adLayoutLoggingData},r5:K.layoutExitSkipTriggers,pL:K.layoutExitMuteTriggers,qe:[].concat(g.m(K.layoutExitUserInputSubmittedTriggers),[J]),Me:K.BM,HB:K.HB}}; SC=function(J,K,n,X,l,x,V,v,Q,S,r){K=S!=null?S:q6(J.Z.get(),"LAYOUT_TYPE_MEDIA_BREAK",K);S={layoutId:K,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",VG:"adapter"};v=v(K);var C=XV(v.clientMetadata,"metadata_type_fulfilled_layout");C||Se("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var O=C?C.layoutId:"";n=[new b$(n),new UO(X),new ZU(l)];C&&n.push(new Cx(C.layoutType));r&&n.push(new px(r));return{layoutId:K,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", dN:x,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new az(J.G,O)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],BM:[],VG:"adapter",rb:n,U_:V(S),adLayoutLoggingData:Q,HB:v,P0:O}}; pkq=function(J,K,n,X,l,x,V,v,Q,S,r){J=$6q(J,K,"core",n,X,l,x,V,v,Q,S,void 0,r);return{layoutId:J.layoutId,layoutType:J.layoutType,dN:J.dN,layoutExitNormalTriggers:J.layoutExitNormalTriggers,layoutExitSkipTriggers:J.layoutExitSkipTriggers,layoutExitMuteTriggers:J.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:J.layoutExitUserInputSubmittedTriggers,BM:J.BM,VG:J.VG,clientMetadata:new og(J.h5),U_:J.U_,adLayoutLoggingData:J.adLayoutLoggingData}}; BDV=function(J,K,n,X,l,x,V,v,Q,S,r,C,O){K=$6q(J,K,"adapter",n,X,l,x,V,v,Q,r,C,O);X=K.layoutExitSkipTriggers;l=K.h5;n.adPodSkipTarget&&n.adPodSkipTarget>0&&(l.push(S),l.push(new Ni(n.adPodSkipTarget)),X=[]);l.push(new Mi(v.adPodIndex));n.isCritical&&(X=[new D7(J.G,K.layoutId,["error"])].concat(g.m(X)));return{jT:{layoutId:K.layoutId,layoutType:K.layoutType,dN:K.dN,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],BM:[],VG:K.VG,clientMetadata:new og(l), U_:K.U_,adLayoutLoggingData:K.adLayoutLoggingData},r5:X,pL:K.layoutExitMuteTriggers,qe:K.layoutExitUserInputSubmittedTriggers,Me:K.BM}}; $6q=function(J,K,n,X,l,x,V,v,Q,S,r,C,O){var H={layoutId:K,layoutType:"LAYOUT_TYPE_MEDIA",VG:n};l=[new b$(l),new AN(Q),new Kx(X.externalVideoId),new nx(v),new ZU({impressionCommands:X.impressionCommands,abandonCommands:X.onAbandonCommands,completeCommands:X.completeCommands,progressCommands:X.adVideoProgressCommands}),new Py(x),new R7({current:null}),new wD(V)];(x=X.playerOverlay.instreamAdPlayerOverlayRenderer)&&l.push(new o7(x));(V=X.playerOverlay.playerOverlayLayoutRenderer)&&l.push(new X$(V)); C&&l.push(new I7(C));(C=X.playerUnderlay)&&l.push(new lT(C));v=S_(J.Z.get(),"SLOT_TYPE_IN_PLAYER");C=(C=x?x.elementId:V==null?void 0:V.layoutId)?C:q6(J.Z.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",v);l.push(new sO(C));l.push(new OO(v));l.push(new px(Q.adPodIndex));X.adNextParams&&l.push(new yM(X.adNextParams));X.shrunkenPlayerBytesConfig&&l.push(new V$(X.shrunkenPlayerBytesConfig));X.clickthroughEndpoint&&l.push(new Zy(X.clickthroughEndpoint));X.legacyInfoCardVastExtension&&l.push(new tV(X.legacyInfoCardVastExtension)); X.sodarExtensionData&&l.push(new iT(X.sodarExtensionData));r&&l.push(new Yl(r));l.push(new a7(z6(X.pings)));Q=wK(X.pings);if(O){a:{O=g.z(O);for(r=O.next();!r.done;r=O.next())if(r=r.value,r.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(x=g.f(r.fulfillmentContent.fulfilledLayout,Tt))&&(x=g.f(x.renderingContent,py))&&x.associatedPlayerBytesLayoutId===K){O=r;break a}O=void 0}O&&l.push(new xl(O))}return{layoutId:K,layoutType:"LAYOUT_TYPE_MEDIA",dN:Q,layoutExitNormalTriggers:[new Z7(J.G,K)],layoutExitSkipTriggers:X.skipOffsetMilliseconds? [new az(J.G,C)]:[],layoutExitMuteTriggers:[new az(J.G,C)],layoutExitUserInputSubmittedTriggers:[],BM:[],VG:n,h5:l,U_:S(H),adLayoutLoggingData:X.adLayoutLoggingData}}; Rwp=function(J,K,n,X,l,x,V,v,Q){X.every(function(r){return J6(r,[],["LAYOUT_TYPE_MEDIA"])})||Se("Unexpect subLayout type for DAI composite layout"); K=q6(J.Z.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",K);var S={layoutId:K,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",VG:"core"};return{layoutId:K,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",dN:new Map,layoutExitNormalTriggers:[new kL(J.G)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],BM:[],VG:"core",clientMetadata:new og([new By(n),new mK(v),new eB(X),new b$(l),new dD(x),new Lx({}),new qT(Q)]),U_:V(S)}}; rNF=function(J){return J!=null}; X1=function(J,K,n){var X=this;this.Z=J;this.X=K;this.xF=n;this.G=function(l){return v2(X.Z.get(),l)}}; cV3=function(J,K,n,X,l,x,V){if(!n.prefetchModeConfig)return new b("AdPlacementConfig for Live Prefetch is missing prefetch_config");n=n.prefetchModeConfig;X*=1E3;var v=[];if(!n.breakLengthMs)return new b("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var Q=g.z(n.breakLengthMs),S=Q.next();!S.done;S=Q.next())if(S=S.value,Number(S)>0){var r=X+Number(n.startTimeOffsetMs),C=r+Number(n.cacheFetchSmearingDurationMs);S={T9:new PM(C,C+Number(S)),CY:!1,CQ:new PM(Math.floor(r+Math.random()* Number(n.cacheFetchSmearingDurationMs)),C),cueProcessedMs:X?X:r};r=[];r.push(new MT({}));C=[];C.push(new WW(J.G));C.push(new lPr(J.G));V&&r.push(new Lx({}));v.push(fy(J,K,l,S,x,r,C))}return v}; fy=function(J,K,n,X,l,x,V){x=x===void 0?[]:x;var v=S_(J.Z.get(),"SLOT_TYPE_AD_BREAK_REQUEST");V||(V=[],X.CQ&&X.CQ.start!==X.T9.start&&V.push(new GN(J.G,n,new PM(X.CQ.start,X.T9.start),!1)),V.push(new GN(J.G,n,new PM(X.T9.start,X.T9.end),X.CY)));X={getAdBreakUrl:K.getAdBreakUrl,BL:X.T9.start,jk:X.T9.end,cueProcessedMs:X.cueProcessedMs};K=new bb(J.G,v);x=[new gD(X)].concat(g.m(x));return{slotId:v,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:K,slotFulfillmentTriggers:V, slotExpirationTriggers:[new fg(J.G,n),new qh(J.G,v),new EA(J.G,v)],VG:"core",clientMetadata:new og(x),adSlotLoggingData:l}}; r6d=function(J,K,n){var X=[];n=g.z(n);for(var l=n.next();!l.done;l=n.next())X.push(SYd(J,K,l.value));return X}; SYd=function(J,K,n){return n.triggeringSlotId!=null&&n.triggeringSlotId===J?n.clone(K):n}; okH=function(J,K,n,X,l){return sgd(J,K,n,X,l)}; SOH=function(J,K,n,X){var l=S_(J.Z.get(),"SLOT_TYPE_IN_PLAYER");return sgd(J,l,K,n,X)}; sgd=function(J,K,n,X,l){var x=new TN(J.G,n),V=[new Fn(J.G,K)];J=[new qh(J.G,K),new fg(J.G,X)];return{slotId:K,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:x,slotFulfillmentTriggers:V,slotExpirationTriggers:J,VG:"core",clientMetadata:new og([new kl(l({slotId:K,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,VG:"core",slotEntryTrigger:x,slotFulfillmentTriggers:V,slotExpirationTriggers:J},n))]),adSlotLoggingData:void 0}}; mTr=function(J,K,n,X,l,x){var V=S_(J.Z.get(),"SLOT_TYPE_PLAYER_BYTES"),v=S_(J.Z.get(),"SLOT_TYPE_IN_PLAYER"),Q=q6(J.Z.get(),"LAYOUT_TYPE_SURVEY",v);X=lX(J,K,n,X);var S=[new Fn(J.G,V)];n=[new qh(J.G,V),new fg(J.G,n),new m6(J.G,Q)];if(X instanceof b)return X;v=x({slotId:V,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,VG:"core",slotEntryTrigger:X,slotFulfillmentTriggers:S,slotExpirationTriggers:n},{slotId:v,layoutId:Q});x=v.ivm;v=v.Mu;return[{slotId:V,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:Cz(J,K,V,X),slotFulfillmentTriggers:OZ(J,K,V,S),slotExpirationTriggers:n,VG:"core",clientMetadata:new og([new kl(x),new EO(H2(K)),new AV({pK:J.pK(K)})]),adSlotLoggingData:l},v]}; H2=function(J){return J.kind==="AD_PLACEMENT_KIND_START"}; LcU=function(J,K,n,X,l){l=l?l:S_(J.Z.get(),"SLOT_TYPE_IN_PLAYER");n=new TN(J.G,n);var x=[new Fn(J.G,l)];J=[new fg(J.G,K),new qh(J.G,l)];return{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:n,slotFulfillmentTriggers:x,slotExpirationTriggers:J,VG:"core",clientMetadata:new og([new kl(X({slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,VG:"core",slotEntryTrigger:n,slotFulfillmentTriggers:x,slotExpirationTriggers:J}))])}}; Tt7=function(J,K,n,X){var l=S_(J.Z.get(),"SLOT_TYPE_PLAYER_UNDERLAY");n=new TN(J.G,n);var x=[new Fn(J.G,l)];J=[new fg(J.G,K),new qh(J.G,l)];return{slotId:l,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:n,slotFulfillmentTriggers:x,slotExpirationTriggers:J,VG:"core",clientMetadata:new og([new kl(X({slotId:l,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,VG:"core",slotEntryTrigger:n,slotFulfillmentTriggers:x,slotExpirationTriggers:J}))])}}; zwf=function(J,K,n,X,l,x,V){var v=S_(J.Z.get(),"SLOT_TYPE_IN_PLAYER"),Q=q6(J.Z.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",v);X=COV(J,X,x,V,Q);if(X instanceof b)return X;V=[new Fn(J.G,v)];l=[new fg(J.G,x),new Fn(J.G,l),new Mh(J.G,l)];n=vb(n,{slotId:v,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,VG:"core",slotEntryTrigger:X,slotFulfillmentTriggers:V,slotExpirationTriggers:l});J=J.X.get();x={layoutId:Q,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",VG:"core"};K={layoutId:Q,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", dN:new Map,layoutExitNormalTriggers:[new SgH(J.G,Q,K.durationMs)],layoutExitSkipTriggers:[new sOf(J.G,Q,K.durationMs)],BM:[new r33(J.G,Q)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],VG:"core",clientMetadata:new og([new y$(K)]),U_:n(x)};return{slotId:v,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,VG:"core",slotEntryTrigger:X,slotFulfillmentTriggers:V,slotExpirationTriggers:l,clientMetadata:new og([new kl(K)])}}; vl3=function(J,K,n,X,l,x){K=lX(J,K,n,X);if(K instanceof b)return K;var V=K instanceof GN?new v9H(J.G,n,K.G):null;X=S_(J.Z.get(),"SLOT_TYPE_IN_PLAYER");var v=[new Fn(J.G,X)];J=[new fg(J.G,n),new qh(J.G,X)];x=x({slotId:X,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,VG:"core",slotEntryTrigger:K,slotFulfillmentTriggers:v,slotExpirationTriggers:J},V);return x instanceof nQ?new b(x):{slotId:X,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:K,slotFulfillmentTriggers:v,slotExpirationTriggers:J, VG:"core",clientMetadata:new og([new kl(x)]),adSlotLoggingData:l}}; VBV=function(J,K,n,X){var l=S_(J.Z.get(),"SLOT_TYPE_IN_PLAYER"),x=new BW(J.G,K),V=[new Ad(J.G,l)];J=[new fg(J.G,K),new qh(J.G,l)];return{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:x,slotFulfillmentTriggers:V,slotExpirationTriggers:J,VG:"core",clientMetadata:new og([new kl(X({slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,VG:"core",slotEntryTrigger:x,slotFulfillmentTriggers:V,slotExpirationTriggers:J}))]),adSlotLoggingData:n}}; hwd=function(J,K,n,X){var l=S_(J.Z.get(),"SLOT_TYPE_IN_PLAYER");n=new TN(J.G,n);var x=[new Fn(J.G,l)],V=[new qh(J.G,l),new fg(J.G,K)];x={slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,VG:"core",slotEntryTrigger:n,slotFulfillmentTriggers:x,slotExpirationTriggers:V};return{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:n,slotFulfillmentTriggers:[new Fn(J.G,l)],slotExpirationTriggers:[new fg(J.G,K),new qh(J.G,l)],VG:"core",clientMetadata:new og([new kl(X(x))])}}; xif=function(J,K,n,X,l){var x=S_(J.Z.get(),"SLOT_TYPE_IN_PLAYER");n=new Lg(J.G,X,n);X=[new Fn(J.G,x)];J=[new fg(J.G,K)];return{slotId:x,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:n,slotFulfillmentTriggers:X,slotExpirationTriggers:J,VG:"core",clientMetadata:new og([new kl(l({slotId:x,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,VG:"core",slotEntryTrigger:n,slotFulfillmentTriggers:X,slotExpirationTriggers:J}))])}}; JNF=function(J,K,n,X,l,x){var V=S_(J.Z.get(),K);return xE(J,V,K,new TN(J.G,X),[new fg(J.G,n),new qh(J.G,V),new D7(J.G,X,["error"])],l,x)}; NHr=function(J,K,n,X,l,x,V){var v=S_(J.Z.get(),K);return xE(J,v,K,new D7(J.G,l,["normal"]),[new fg(J.G,n),new qh(J.G,v),new D7(J.G,X,["error"])],x,V)}; E9M=function(J,K,n,X,l){var x=S_(J.Z.get(),K);return xE(J,x,K,new BW(J.G,n),[new fg(J.G,n),new qh(J.G,x)],X,l)}; Xy8=function(J,K,n,X,l){n=n?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var x=S_(J.Z.get(),n);K=new BW(J.G,K);var V=[new Fn(J.G,x)];J=[new qh(J.G,x)];return{slotId:x,slotType:n,slotPhysicalPosition:1,slotEntryTrigger:K,slotFulfillmentTriggers:V,slotExpirationTriggers:J,VG:"core",clientMetadata:new og([new kl(l({slotId:x,slotType:n,slotPhysicalPosition:1,VG:"core",slotEntryTrigger:K,slotFulfillmentTriggers:V,slotExpirationTriggers:J}))]),adSlotLoggingData:X}}; sLM=function(J,K,n,X){var l=S_(J.Z.get(),"SLOT_TYPE_PLAYER_BYTES"),x=new YL(J.G),V=[new Ad(J.G,l)];J=[new fg(J.G,K)];return{slotId:l,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:x,slotFulfillmentTriggers:V,slotExpirationTriggers:J,VG:"core",clientMetadata:new og([new kl(X({slotId:l,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,VG:"core",slotEntryTrigger:x,slotFulfillmentTriggers:V,slotExpirationTriggers:J})),new Lx({})]),adSlotLoggingData:n}}; wyq=function(J,K){return kU7(J.xF.get())?new D7(J.G,K,["normal","error","skipped"]):new D7(J.G,K,["normal"])}; iOe=function(J,K,n,X,l){K=wyq(J,K);J=sZ(J,K,n);l=l({slotId:J.slotId,slotType:J.slotType,slotPhysicalPosition:J.slotPhysicalPosition,slotEntryTrigger:J.slotEntryTrigger,slotFulfillmentTriggers:J.slotFulfillmentTriggers,slotExpirationTriggers:J.slotExpirationTriggers,VG:J.VG});return l instanceof b?l:{D4:Object.assign({},J,{clientMetadata:new og([new kl(l.layout)]),adSlotLoggingData:X}),jp:l.jp}}; Btp=function(J,K,n,X,l,x,V){n=PTF(J,K,n,X);if(n instanceof b)return n;V=V({slotId:n.slotId,slotType:n.slotType,slotPhysicalPosition:n.slotPhysicalPosition,slotEntryTrigger:n.slotEntryTrigger,slotFulfillmentTriggers:n.slotFulfillmentTriggers,slotExpirationTriggers:n.slotExpirationTriggers,VG:n.VG});if(V instanceof b)return V;X=[new EO(H2(K)),new kl(V.layout),new AV({pK:J.pK(K)})];x&&X.push(new fx({}));return{D4:{slotId:n.slotId,slotType:n.slotType,slotPhysicalPosition:n.slotPhysicalPosition,slotEntryTrigger:Cz(J, K,n.slotId,n.slotEntryTrigger),slotFulfillmentTriggers:OZ(J,K,n.slotId,n.slotFulfillmentTriggers),slotExpirationTriggers:n.slotExpirationTriggers,VG:n.VG,clientMetadata:new og(X),adSlotLoggingData:l},jp:V.jp}}; Cz=function(J,K,n,X){return J.xF.get().A7(H2(K))?new Iz(J.G,n):X}; OZ=function(J,K,n,X){return J.xF.get().A7(H2(K))?[new Ad(J.G,n)]:X}; sZ=function(J,K,n){var X=S_(J.Z.get(),"SLOT_TYPE_PLAYER_BYTES"),l=[new Fn(J.G,X)];J=[new qh(J.G,X),new fg(J.G,n)];return{slotId:X,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:K,slotFulfillmentTriggers:l,slotExpirationTriggers:J,VG:"core"}}; PTF=function(J,K,n,X){K=lX(J,K,n,X);return K instanceof b?K:sZ(J,K,n)}; xT3=function(J,K,n,X,l,x){var V=S_(J.Z.get(),"SLOT_TYPE_FORECASTING");K=lX(J,K,n,X);if(K instanceof b)return K;X=[new Fn(J.G,V)];J=[new qh(J.G,V),new fg(J.G,n)];return{slotId:V,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:K,slotFulfillmentTriggers:X,slotExpirationTriggers:J,VG:"core",clientMetadata:new og([new kl(x({slotId:V,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,VG:"core",slotEntryTrigger:K,slotFulfillmentTriggers:X,slotExpirationTriggers:J}))]),adSlotLoggingData:l}}; OQr=function(J,K,n,X,l){var x=!K.hideCueRangeMarker;switch(K.kind){case "AD_PLACEMENT_KIND_START":return new BW(J.G,n);case "AD_PLACEMENT_KIND_MILLISECONDS":return J=Wd7(K,X),J instanceof b?J:l(J.T9,x);case "AD_PLACEMENT_KIND_END":return new pg(J.G,n,x);default:return new b("Cannot construct entry trigger",{kind:K.kind})}}; COV=function(J,K,n,X,l){return OQr(J,K,n,X,function(x,V){return new hWM(J.G,n,x,V,l)})}; lX=function(J,K,n,X){return OQr(J,K,n,X,function(l,x){return new GN(J.G,n,l,x)})}; xE=function(J,K,n,X,l,x,V){J=[new Ad(J.G,K)];return{slotId:K,slotType:n,slotPhysicalPosition:1,slotEntryTrigger:X,slotFulfillmentTriggers:J,slotExpirationTriggers:l,VG:"core",clientMetadata:new og([new kl(V({slotId:K,slotType:n,slotPhysicalPosition:1,VG:"core",slotEntryTrigger:X,slotFulfillmentTriggers:J,slotExpirationTriggers:l}))]),adSlotLoggingData:x}}; jb=function(J,K){g.t.call(this);this.xF=J;this.G=K;this.eventCount=0}; VW=function(J,K,n,X){jb.call(this,J,K);this.xF=J;this.Jj=n;this.context=X}; ht=function(){this.G=new Map}; vG=function(J){this.SF="pending";this.Gf=[];this.iA=[];try{J(this.vG.bind(this),this.reject.bind(this))}catch(K){this.reject(K)}}; HQd=function(){var J,K;return{X$:new vG(function(n,X){J=n;K=X}), resolve:J,reject:K}}; Sb=function(J){return QW(J)?J:$E(J)?new vG(function(K,n){J.then(K,n)}):new vG(function(K){K(J)})}; rw=function(J){return new vG(function(K,n){n(J)})}; s3=function(J){try{return Sb(J())}catch(K){return rw(K)}}; O3=function(J,K,n){var X=HQd(),l=X.X$,x=X.resolve,V=X.reject;J.Gf.push(function(v){if(K)try{var Q=K(v);x(Q)}catch(S){V(S)}else x(v)}); J.iA.push(function(v){if(n)try{var Q=n(v);x(Q)}catch(S){V(S)}else V(v)}); CY(J);return l}; HG=function(J,K){return O3(J,void 0,K)}; RR3=function(J,K){O3(J,function(n){return O3(Sb(K()),function(){return n})},function(n){return O3(Sb(K()),function(){return rw(n)})})}; CY=function(J){if(J.SF==="fulfilled"){var K=J.Gf;J.Gf=[];J.iA=[];K=g.z(K);for(var n=K.next();!n.done;n=K.next())n=n.value,n(J.result)}else if(J.SF==="rejected")for(K=J.iA,J.Gf=[],J.iA=[],K=g.z(K),n=K.next();!n.done;n=K.next())n=n.value,n(J.error)}; Rd=function(J){return function(){return uV3(J.apply(this,g.c3.apply(0,arguments)))}}; uX=function(J){return Sb(J).wait()}; uV3=function(J){return s3(function(){return eb(J,J.next())})}; eb=function(J,K){return K.done?Sb(K.value):HG(O3(K.value.X$,function(n){return eb(J,J.next(n))}),function(n){return eb(J,J.throw(n))})}; z7=function(J,K){if(J.length===0)return Sb(NaN);var n=HQd(),X=n.X$,l=n.resolve,x=J.length;J=g.z(J.entries());var V=J.next();for(n={};!V.done;n={DI:void 0},V=J.next()){var v=g.z(V.value);V=v.next().value;v=v.next().value;n.DI=V;RR3(v,function(Q){return function(){X.SF==="pending"&&(eR3(K)&&K(Q.DI)&&X.SF==="pending"?l(Q.DI):(--x,x===0&&l(NaN)))}}(n))}return X}; ww=function(J){return J.map(function(K){return Sb(K)})}; Id=function(J){var K=J.hours||0;var n=J.minutes||0,X=J.seconds||0;K=X+n*60+K*3600+(J.days||0)*86400+(J.weeks||0)*604800+(J.months||0)*2629800+(J.years||0)*31557600;K<=0?K={hours:0,minutes:0,seconds:0}:(J=K,K=Math.floor(J/3600),J%=3600,n=Math.floor(J/60),X=Math.floor(J%60),K={hours:K,minutes:n,seconds:X});var l=K.hours===void 0?0:K.hours;n=K.minutes===void 0?0:K.minutes;J=K.seconds===void 0?0:K.seconds;X=l>0;K=[];if(X){l=(new Intl.NumberFormat("en-u-nu-latn")).format(l);var x=["fr"],V="az bs ca da de el es eu gl hr id is it km lo mk nl pt-BR ro sl sr sr-Latn tr vi".split(" "); l="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(PG)?l.replace(",","\u00a0"):x.includes(PG)?l.replace(",","\u202f"):V.includes(PG)?l.replace(",","."):l;K.push(l)}X=X===void 0?!1:X;n=(["af","be","lt"].includes(PG)||X)&&n<10?zRH().format(n):(new Intl.NumberFormat("en-u-nu-latn")).format(n);K.push(n);n=zRH().format(J);K.push(n);n=":";"da fi id si sr sr-Latn".split(" ").includes(PG)&&(n=".");return K.join(n)}; zRH=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; wbk=function(J,K){var n,X;J=((n=J.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(X=n.videoAuthorizationToken)==null?void 0:X.credentialTransferTokens)||[];for(n=0;nK;J=n}else J=!1;return J}; g.yW=function(J,K){return J.jz+"timedtext_video?ref=player&v="+K.videoId}; g.y63=function(J){var K=this;this.videoData=J;J={};this.G=(J.c1a=function(){var n=[];if(g.U3.isInitialized()){var X="";K.videoData&&K.videoData.B$&&(X=K.videoData.B$+("&r1b="+K.videoData.clientPlaybackNonce));var l={};X=(l.atr_challenge=X,l);Ws("bg_v",void 0,"player_att");(X=t18(X))?(Ws("bg_s",void 0,"player_att"),n.push("r1a="+X)):(Ws("bg_e",void 0,"player_att"),n.push("r1c=2"))}else Ws("bg_e",void 0,"player_att"),window.trayride||window.botguard?n.push("r1c=1"):n.push("r1c=4");n.push("r1d="+g.U3.getState()); return n.join("&")},J.c6a=function(n){return"r6a="+(Number(n.c)^h3())},J.c6b=function(n){return"r6b="+(Number(n.c)^Number(g.Et("CATSTAT",0)))},J); this.videoData&&this.videoData.B$?this.u8=oe(this.videoData.B$):this.u8={}}; g.ZQU=function(J){if(J.videoData&&J.videoData.B$){for(var K=[J.videoData.B$],n=g.z(Object.keys(J.G)),X=n.next();!X.done;X=n.next())X=X.value,J.u8[X]&&J.G[X]&&(X=J.G[X](J.u8))&&K.push(X);return K.join("&")}return null}; g.ZX=function(J,K){U6r(J,{iHj:g.Qg(K.experiments,"bg_vm_reinit_threshold"),cspNonce:K.cspNonce,jz:K.jz||""})}; fo7=function(){var J=XMLHttpRequest.prototype.fetch;return!!J&&J.length===3}; Wh3=function(J){J=J[h[36]](h[8]);fY[h[4]](J,1);fY[h[50]](J,51);fY[h[50]](J,59);return J[h[55]](h[8])}; Fhp=function(J){ao8=2592E3*(J||1)}; WG=function(J){J=J===void 0?ao8:J;if(J>0&&!(KO3()>(0,g.a)()-J*1E3))return 0;J=g.g1("yt-player-quality");if(typeof J==="string"){if(J=g.G2[J],J>0)return J}else if(J instanceof Object)return J.quality;return 0}; ad=function(){var J=g.g1("yt-player-proxima-pref");return J==null?null:J}; qYk=function(){var J=g.g1("yt-player-quality");if(J instanceof Object&&J.quality&&J.previousQuality){if(J.quality>J.previousQuality)return 1;if(J.quality0&&K[0]?J.getAutoplayPolicy(K[0]):J.getAutoplayPolicy("mediaelement");if(KX3[n])return KX3[n]}}catch(X){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; NI=function(J){return J.Pp||J.sy||J.mutedAutoplay}; n13=function(J,K){return NI(J)?K!==1&&K!==2&&K!==0?"AUTOPLAY_STATUS_UNAVAILABLE":J.IL?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; o1V=function(J,K,n){var X=K.S();J.thirdParty||(J.thirdParty={});X.ancestorOrigins&&(J.thirdParty.embeddedPlayerContext=Object.assign({},J.thirdParty.embeddedPlayerContext,{ancestorOrigins:X.ancestorOrigins}));X.J("embeds_enable_autoplay_and_visibility_signals")&&(X.G0!=null&&(J.thirdParty.embeddedPlayerContext=Object.assign({},J.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(X.G0)})),X.Qf&&(J.thirdParty.embeddedPlayerContext=Object.assign({},J.thirdParty.embeddedPlayerContext,{visibilityFractionSource:X.Qf})), J.thirdParty.embeddedPlayerContext=Object.assign({},J.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:MI(),autoplayIntended:NI(K),autoplayStatus:n13(K,n)}))}; xLU=function(J,K){qV(J,2,K.Nc,JJ,3);qV(J,3,K.Q7,XLk,3);aO(J,4,K.onesieUstreamerConfig);aO(J,9,K.N1);qV(J,10,K.hp,KT,3);qV(J,15,K.reloadPlaybackParams,lgM,3)}; V_H=function(J,K){qV(J,1,K.formatId,nT,3);f3(J,2,K.startTimeMs);f3(J,3,K.durationMs);f3(J,4,K.yJ);f3(J,5,K.Qh);qV(J,9,K.ouF,j43,3);qV(J,11,K.qtA,o9,1);qV(J,12,K.dH,o9,1)}; hpk=function(J,K){FE(J,1,K.videoId);f3(J,2,K.lmt)}; j43=function(J,K){if(K.JP)for(var n=0;n>31));f3(J,16,K.sE);f3(J,17,K.detailedNetworkType);f3(J,18,K.P4);f3(J,19,K.B4);f3(J,21,K.roQ);f3(J,23,K.hn);f3(J,28,K.u4);f3(J,29,K.WWQ);f3(J,34,K.visibility);n=K.playbackRate;if(n!==void 0){var X=new ArrayBuffer(4);(new Float32Array(X))[0]=n;n=(new Uint32Array(X))[0];if(n!==void 0)for(ZP(J,285),yY(J,4),X=0;X<4;)J.view.setUint8(J.pos,n&255),n>>=8,J.pos+=1,X+=1}f3(J,36,K.hE); qV(J,38,K.mediaCapabilities,$Lr,3);f3(J,39,K.Rf4);f3(J,40,K.Jz);f3(J,44,K.playerState);Wg(J,46,K.G3);f3(J,48,K.M8);f3(J,50,K.XC);f3(J,51,K.CO);f3(J,54,K.sb);if(K.a$)for(n=0;n>31));FE(J,2,K.message)}; ep3=function(J,K){f3(J,1,K.clientState);qV(J,2,K.Qzm,Rp8,1)}; HGU=function(J,K){aO(J,1,K.s94);qV(J,2,K.goq,uDF,3);qV(J,3,K.coldStartInfo,ep3,3)}; OGF=function(J,K){f3(J,1,K.type);aO(J,2,K.value)}; CW7=function(J,K){FE(J,1,K.hl);FE(J,12,K.deviceMake);FE(J,13,K.deviceModel);f3(J,16,K.clientName);FE(J,17,K.clientVersion);FE(J,18,K.osName);FE(J,19,K.osVersion)}; zp7=function(J,K){FE(J,1,K.name);FE(J,2,K.value)}; wL8=function(J,K){FE(J,1,K.url);if(K.zF)for(var n=0;n1&&(this.C=J[1]==="2")}; hJ=function(J,K,n,X,l){this.Z=J;this.G=K;this.X=n;this.reason=X;this.OM=l===void 0?0:l}; g.vo=function(J,K,n,X){return new hJ(g.G2[J]||0,g.G2[K]||0,n,X)}; $K=function(J){if(QL&&J.OM)return!1;var K=g.G2.auto;return J.Z===K&&J.G===K}; rU=function(J){return Sd[J.G||J.Z]||"auto"}; V$V=function(J,K){K=g.G2[K];return J.Z<=K&&(!J.G||J.G>=K)}; sa=function(J){return"["+J.Z+"-"+J.G+", override: "+(J.X+", reason: "+J.reason+"]")}; CT=function(J,K,n){this.videoInfos=J;this.G=K;this.audioTracks=[];if(this.G){J=new Set;n==null||n({ainfolen:this.G.length});K=g.z(this.G);for(var X=K.next();!X.done;X=K.next())if(X=X.value,!X.Hw||J.has(X.Hw.id)){var l=void 0,x=void 0,V=void 0;(V=n)==null||V({atkerr:!!X.Hw,itag:X.itag,xtag:X.G,lang:((l=X.Hw)==null?void 0:l.name)||"",langid:((x=X.Hw)==null?void 0:x.id)||""})}else l=new g.VL(X.id,X.Hw),J.add(X.Hw.id),this.audioTracks.push(l);n==null||n({atklen:this.audioTracks.length})}}; Oa=function(){g.t.apply(this,arguments);this.G=null}; $R7=function(J,K,n,X,l,x,V){if(J.G)return J.G;var v={},Q=new Set,S={};if(Ho(X)){for(var r in X.G)X.G.hasOwnProperty(r)&&(J=X.G[r],S[J.info.YF]=[J.info]);return S}r=hy7(K,X,v);x&&l({aftsrt:R9(r)});for(var C={},O=g.z(Object.keys(r)),H=O.next();!H.done;H=O.next()){H=H.value;for(var R=g.z(r[H]),w=R.next();!w.done;w=R.next()){w=w.value;var P=w.itag,B=void 0,p=H+"_"+(((B=w.video)==null?void 0:B.fps)||0);C.hasOwnProperty(p)?C[p]===!0?S[H].push(w):v[P]=C[p]:(B=ue(K,w,n,X.isLive,Q),B!==!0?(V.add(H),v[P]=B, B==="disablevp9hfr"&&(C[p]="disablevp9hfr")):(S[H]=S[H]||[],S[H].push(w),C[p]=!0))}}x&&l({bfflt:R9(S)});for(var k in S)S.hasOwnProperty(k)&&(X=k,S[X]&&S[X][0].VB()&&(S[X]=S[X],S[X]=v6k(K,S[X],v),S[X]=Qhd(S[X],v)));x&&Object.keys(v).length>0&&l({rjr:Ih(v)});K=g.z(Q.values());for(X=K.next();!X.done;X=K.next())(X=n.U.get(X.value))&&--X.cg;x&&l({aftflt:R9(S)});J.G=g.yF(S,function(c){return!!c.length}); return J.G}; rlH=function(J,K,n,X,l,x,V,v){v=v===void 0?!1:v;if(K.PM&&V&&V.length>1&&!(K.rz>0||K.L)){for(var Q=K.Z||!!l,S=Q&&K.a5?x:void 0,r=hy7(K,X),C=[],O=[],H={},R=0;R0&&O&&l&&(r=[V,n],P=l.concat(O).filter(function(B){return B})); if(P.length&&!K.hv){wU(P,r);if(Q){Q=[];K=g.z(P);for(X=K.next();!X.done;X=K.next())Q.push(X.value.itag);x({hbdfmt:Q.join(".")})}return dN(new CT(P,J,S))}P=Pxk(K);P=g.ru(P,v);if(!P){if(C[V])return x=C[V],wU(x),dN(new CT(x,J,S));Q&&x({novideo:1});return DC()}K.KU&&(P==="1"||P==="1h")&&C[n]&&(V=Po(C[P]),r=Po(C[n]),r>V?P=n:r===V&&IRe(C[n])&&(P=n));P==="9"&&C.h&&Po(C.h)>Po(C["9"])&&(P="h");K.Dm&&X.isLive&&P==="("&&C.H&&Po(C["("])<1440&&(P="H");Q&&x({vfmly:I9(P)});K=C[P];if(!K.length)return Q&&x({novfmly:I9(P)}), DC();wU(K);return dN(new CT(K,J,S))}; Cxf=function(J,K){var n=!(!J.m&&!J.M),X=!(!J.mac3&&!J.MAC3),l=!(!J.meac3&&!J.MEAC3);J=!(!J.i&&!J.I);K.nE=J;return n||X||l||J}; IRe=function(J){J=g.z(J);for(var K=J.next();!K.done;K=J.next())if(K=K.value,K.itag&&iJr.has(K.itag))return!0;return!1}; HJ3=function(J){J=g.z(J);for(var K=J.next();!K.done;K=J.next())if(K.value.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1}; I9=function(J){switch(J){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return J}}; R9=function(J){var K=[],n;for(n in J)if(J.hasOwnProperty(n)){var X=n;K.push(I9(X));X=g.z(J[X]);for(var l=X.next();!l.done;l=X.next())K.push(l.value.itag)}return K.join(".")}; sh3=function(J,K,n,X,l,x){var V={},v={};g.tj(K,function(Q,S){Q=Q.filter(function(r){var C=r.itag;if(!r.rE)return v[C]="noenc",!1;if(x.Gi&&r.YF==="(h"&&x.md)return v[C]="lichdr",!1;if(!J.C&&r.YF==="1e")return v[C]="noav1enc",!1;if(r.YF==="("||r.YF==="(h"){if(J.X&&n&&n.flavor==="widevine"){var O=r.mimeType+"; experimental=allowed";(O=!!r.rE[n.flavor]&&!!n.G[O])||(v[C]=r.rE[n.flavor]?"unspt":"noflv");return O}if(!ie(J,Bo.CRYPTOBLOCKFORMAT)&&!J.MQ||J.Aj)return v[C]=J.Aj?"disvp":"vpsub",!1}return n&&r.rE[n.flavor]&& n.G[r.mimeType]?!0:(v[C]=n?r.rE[n.flavor]?"unspt":"noflv":"nosys",!1)}); Q.length&&(V[S]=Q)}); X&&Object.entries(v).length&&l({rjr:Ih(v)});return V}; Qhd=function(J,K){var n=aF(J,function(X,l){return l.video.fps>32?Math.min(X,l.video.width):X},Infinity); n32||X.video.widthJ.N)return"max"+J.N;if(J.wQ&&K.YF==="h"&&K.video&&K.video.qualityOrdinal>1080)return"blkhigh264";if(K.YF==="(h"&&!n.W)return"enchdr";if((X===void 0?0:X)&&Al(K)&&!J.PW)return"blk51live";if((K.YF==="MAC3"||K.YF==="mac3")&&!J.U)return"blkac3";if((K.YF==="MEAC3"||K.YF==="meac3")&&!J.C)return"blkeac3";if(K.YF==="M"||K.YF==="m")return"blkaac51"; if((K.YF==="so"||K.YF==="sa")&&!J.GA)return"blkamb";if(!J.Gi&&mxV(K)&&(!n.C||K.YF!=="1e"))return"cbc";if(!n.C&&mxV(K)&&K.YF==="1e")return"cbcav1";if((K.YF==="i"||K.YF==="I")&&!J.iR)return"blkiamf";var x;if(J.vW&&((x=K.audio)==null?void 0:x.Z)===!0)return"blkvbcabr";var V,v;if(J.kF&&(K.YF==="1"||K.YF==="1h"||n.C&&K.YF==="1e")&&((V=K.video)==null?0:V.qualityOrdinal)&&((v=K.video)==null?void 0:v.qualityOrdinal)>J.kF)return"av1cap";if((X=n.U.get(K.YF))&&X.cg>0)return l.add(K.YF),"byerr";var Q;if((Q=K.video)== null?0:Q.fps>32){if(!n.cW&&!ie(n,Bo.FRAMERATE))return"capHfr";if(J.gQ&&K.video.qualityOrdinal>=4320)return"blk8khfr";if(ah(K)&&J.F2&&K.rE&&K.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(J.OM&&K.OM>J.OM)return"ratecap";J=BYp(n,K);return J!==!0?J:!0}; wU=function(J,K){K=K===void 0?[]:K;g.du(J,function(n,X){var l=X.OM-n.OM;if(!n.VB()||!X.VB())return l;var x=X.video.height*X.video.width-n.video.height*n.video.width;!x&&K&&K.length>0&&(n=K.indexOf(n.YF)+1,X=K.indexOf(X.YF)+1,x=n===0||X===0?X||-1:n-X);x||(x=l);return x})}; g.mZ=function(J,K){this[h[29]]=J;this[h[34]]=K===void 0?!1:K;this[h[21]]=this[h[1]]=this[h[10]]=h[8];this[h[31]]={};this[h[27]]=h[8]}; LT=function(J){pT(J);return J[h[21]]}; TJ=function(J){return J[h[29]]?J[h[29]][h[2]](h[7]):J[h[10]]===h[7]}; mR3=function(J){pT(J);return g.fn(J[h[31]],function(K){return K!==null})}; DD=function(J){pT(J);var K=decodeURIComponent(J[h[9]](h[49])||h[8])[h[36]](h[47]);return J[h[1]]===h[79]&&K[h[3]]>1&&!!K[1]}; dU=function(J,K){K=K===void 0?!1:K;pT(J);if(J[h[1]]!==h[79]){var n=J[h[56]]();n[h[45]](h[82],h[38]);return n}var X=J[h[20]]();n=new g.o0(X);var l=J[h[9]](h[66]),x=decodeURIComponent(J[h[9]](h[49])||h[8])[h[36]](h[47]);if(l&&x&&x[h[3]]>1&&x[1])return X=n.G,J=X[h[26]](/^[^.]*/,h[8]),g.l1(n,(X[h[6]](h[48])===0?h[48]:h[58])+l+h[88]+x[1]+J),n=new g.mZ(n[h[23]]()),n[h[45]](h[52],h[38]),n;if(K)return n=J[h[56]](),n[h[45]](h[52],h[38]),n;l=n.G[h[11]](h[51]);n.G[h[11]](h[42])?(g.l1(n,h[78]),X=n[h[23]]()): n.G[h[11]](h[67])?(g.l1(n,h[84]),X=n[h[23]]()):(n=H7V(X),A6(n)&&(X=n));n=new g.mZ(X);n[h[45]](h[90],h[38]);l&&n[h[45]](h[61],h[89]);return n}; pT=function(J){if(J[h[29]]){if(!(A6(J[h[29]])||J[h[29]][h[2]](h[7])||J[h[29]][h[2]](h[18])||J[h[29]][h[2]](h[86])))throw new g.qt(h[81],J[h[29]]);var K=g.$P(J[h[29]]);J[h[10]]=K.C;J[h[21]]=K.G+(K.X!=null?h[17]+K.X:h[8]);var n=K.Z;if(n[h[2]](h[79]))J[h[1]]=h[79],n=n[h[15]](14);else if(n[h[2]](h[35]))J[h[1]]=h[35],n=n[h[15]](13);else if(n[h[2]](h[40])){var X=n[h[6]](h[75],12),l=n[h[6]](h[75],X+1);X>0&&l>0?(J[h[1]]=n[h[15]](0,l),n=n[h[15]](l+1)):(J[h[1]]=n,n=h[8])}else J[h[1]]=n,n=h[8];X=J[h[31]];J[h[31]]= pfr(n);Object[h[12]](J[h[31]],Lxp(K.U.toString()));Object[h[12]](J[h[31]],X);J[h[31]][h[19]]===h[83]&&(delete J[h[31]][h[19]],J[h[1]]+=h[70]);J[h[29]]=h[8];J[h[27]]=h[8];J[h[34]]&&(pT(J),K=J[h[31]][h[30]]||null)&&(K=TY7[0](K),J[h[45]](h[30],K))}}; DR3=function(J){pT(J);var K=J[h[10]]+(J[h[10]]?h[39]:h[72])+J[h[21]]+J[h[1]];if(mR3(J)){var n=[];g.tj(J[h[31]],function(X,l){X!==null&&n[h[33]](l+h[73]+X)}); K+=h[14]+n[h[55]](h[37])}return K}; pfr=function(J){J=J[h[36]](h[75]);var K=0;J[0]||K++;for(var n={};K0?dRV(K,X[h[15]](0,l),X[h[15]](l+1)):X&&(K[X]=h[8])}return K}; dRV=function(J,K,n){if(K===h[22]){var X;(X=n[h[6]](h[73]))>=0?(K=h[53]+n[h[15]](0,X),n=n[h[15]](X+1)):(X=n[h[6]](h[80]))>=0&&(K=h[53]+n[h[15]](0,X),n=n[h[15]](X+3))}J[K]=n}; kK=function(J){var K=g.f(J,k2d)||J[h[77]];J={m3:!1,vJ:h[8],eX:h[8],s:h[8]};if(!K)return J;K=oe(K);J[h[13]]=!0;J[h[74]]=K[h[27]];J[h[65]]=K[h[60]];J[h[43]]=K[h[43]];return J}; gU=function(J,K,n,X,l,x,V,v,Q){this.BW=J;this.startTime=K;this.duration=n;this.ingestionTime=X;this.sourceURL=l;this.QB=Q;this.endTime=K+n;this.G=V||0;this.range=x||null;this.pending=v||!1;this.QB=Q||null}; g.co=function(){this.segments=[];this.G=null;this.Z=!0;this.X=""}; g68=function(J,K){if(K>J.VU())J.segments=[];else{var n=SV(J.segments,function(X){return X.BW>=K},J); n>0&&J.segments.splice(0,n)}}; YK=function(J,K,n,X,l){l=l===void 0?!1:l;this.data=J;this.offset=K;this.size=n;this.type=X;this.G=(this.Z=l)?0:8;this.dataOffset=this.offset+this.G}; GJ=function(J){var K=J.data.getUint8(J.offset+J.G);J.G+=1;return K}; Ua=function(J){var K=J.data.getUint16(J.offset+J.G);J.G+=2;return K}; tJ=function(J){var K=J.data.getInt32(J.offset+J.G);J.G+=4;return K}; yL=function(J){var K=J.data.getUint32(J.offset+J.G);J.G+=4;return K}; ZD=function(J){var K=J.data;var n=J.offset+J.G;K=K.getUint32(n)*4294967296+K.getUint32(n+4);J.G+=8;return K}; fT=function(J,K){K=K===void 0?NaN:K;if(isNaN(K))var n=J.size;else for(n=J.G;n1?Math.ceil(l*K):Math.floor(l*K))}J.skip(1);n=GJ(J)<<16|Ua(J);if(n&256){X=n&1;l=n&4;var x=n&512,V=n&1024,v=n&2048;n=yL(J);X&&J.skip(4);l&&J.skip(4);X=(x?4:0)+(V?4:0)+(v?4:0);for(l=0;l1?Math.ceil(V*K):Math.floor(V*K)),J.skip(X)}}}; NK=function(J){J=new DataView(J.buffer,J.byteOffset,J.byteLength);return(J=g.AJ(J,0,1836476516))?g.MK(J):NaN}; Fxe=function(J){var K=g.AJ(J,0,1937011556);if(!K)return null;K=JG(J,K.dataOffset+8,1635148593)||JG(J,K.dataOffset+8,1635135537);if(!K)return null;var n=JG(J,K.dataOffset+78,1936995172),X=JG(J,K.dataOffset+78,1937126244);if(!X)return null;K=null;if(n)switch(n.skip(4),GJ(n)){default:K=0;break;case 1:K=2;break;case 2:K=1;break;case 3:K=255}var l=n=null,x=null;if(X=JG(J,X.dataOffset,1886547818)){var V=JG(J,X.dataOffset,1886546020),v=JG(J,X.dataOffset,2037673328);if(!v&&(v=JG(J,X.dataOffset,1836279920), !v))return null;V&&(V.skip(4),n=tJ(V)/65536,x=tJ(V)/65536,l=tJ(V)/65536);J=clV(v);J=new DataView(J.buffer,J.byteOffset+8,J.byteLength-8);return new Wxq(K,n,x,l,J)}return null}; JG=function(J,K,n){for(;KD(J,K);){var X=nD(J,K);if(X.type===n)return X;K+=X.size}return null}; g.AJ=function(J,K,n){for(;KD(J,K);){var X=nD(J,K);if(X.type===n)return X;K=oD(X.type)?K+8:K+X.size}return null}; g.XY=function(J){if(J.data.getUint8(J.dataOffset)){var K=J.data;J=J.dataOffset+4;K=K.getUint32(J)*4294967296+K.getUint32(J+4)}else K=J.data.getUint32(J.dataOffset+4);return K}; nD=function(J,K){var n=J.getUint32(K),X=J.getUint32(K+4);return new YK(J,K,n,X)}; g.MK=function(J){var K=J.data.getUint8(J.dataOffset)?20:12;return J.data.getUint32(J.dataOffset+K)}; quV=function(J){J=new YK(J.data,J.offset,J.size,J.type,J.Z);var K=GJ(J);J.skip(7);var n=yL(J);if(K===0){K=yL(J);var X=yL(J)}else K=ZD(J),X=ZD(J);J.skip(2);for(var l=Ua(J),x=[],V=[],v=0;v122)return!1}return!0}; oD=function(J){return J===1701082227||J===1836019558||J===1836019574||J===1835297121||J===1835626086||J===1937007212||J===1953653094||J===1953653099||J===1836475768}; E67=function(J){J.skip(4);return{Vp4:fT(J,0),value:fT(J,0),timescale:yL(J),Nrq:yL(J),dIx:yL(J),id:yL(J),cE:fT(J),offset:J.offset}}; g.bJV=function(J){var K=JG(J,0,1701671783);if(!K)return null;var n=E67(K),X=n.Vp4;n=be(n.cE);if(J=JG(J,K.offset+K.size,1701671783))if(J=E67(J),J=be(J.cE),n&&J){K=g.z(Object.keys(J));for(var l=K.next();!l.done;l=K.next())l=l.value,n[l]=J[l]}return n?new qK(n,X):null}; l3=function(J,K){for(var n=JG(J,0,K);n;){var X=n;X.type=1936419184;X.data.setUint32(X.offset+4,1936419184);n=JG(J,n.offset+n.size,K)}}; g.xf=function(J,K){for(var n=0,X=[];KD(J,n);){var l=nD(J,n);l.type===K&&X.push(l);n=oD(l.type)?n+8:n+l.size}return X}; Al3=function(J,K){var n=g.AJ(J,0,1937011556),X=g.AJ(J,0,1953654136);if(!n||!X||J.getUint32(n.offset+12)>=2)return null;var l=new DataView(K.buffer,K.byteOffset,K.length),x=g.AJ(l,0,1937011556);if(!x)return null;K=l.getUint32(x.dataOffset+8);X=l.getUint32(x.dataOffset+12);if(X!==1701733217&&X!==1701733238)return null;X=new Yuq(J.byteLength+K);Wo(X,J,0,n.offset+12);X.data.setInt32(X.offset,2);X.offset+=4;Wo(X,J,n.offset+16,n.size-16);Wo(X,l,l.byteOffset+x.dataOffset+8,K);Wo(X,J,n.offset+n.size,J.byteLength- (n.offset+n.size));n=g.z([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(l=n.next();!l.done;l=n.next())l=g.U(g.AJ(J,0,l.value)),X.data.setUint32(l.offset,l.size+K);J=g.AJ(X.data,0,1953654136);X.data.setUint32(J.offset+16,2);return X.data}; M$3=function(J){var K=g.AJ(J,0,1937011556);if(!K)return null;var n=J.getUint32(K.dataOffset+12);if(n!==1701733217&&n!==1701733238)return null;K=JG(J,K.offset+24+(n===1701733217?28:78),1936289382);if(!K)return null;n=JG(J,K.offset+8,1935894637);if(!n||J.getUint32(n.offset+12)!==1667392371)return null;K=JG(J,K.offset+8,1935894633);if(!K)return null;K=JG(J,K.offset+8,1952804451);if(!K)return null;n=new Uint8Array(16);for(var X=0;X<16;X++)n[X]=J.getInt8(K.offset+16+X);return n}; jo=function(J,K){this.G=J;this.pos=0;this.start=K||0}; Vw=function(J){return J.pos>=J.G.byteLength}; So=function(J,K,n){var X=new jo(n);if(!hG(X,J))return!1;X=vm(X);if(!Qw(X,K))return!1;for(J=0;K;)K>>>=8,J++;K=X.start+X.pos;var l=$f(X,!0);X=J+(X.start+X.pos-K)+l;X=X>9?NYH(X-9,8):NYH(X-2,1);J=K-J;n.setUint8(J++,236);for(K=0;Kn;l++)n=n*256+Hm(J),X*=128;return K?n-X:n}; sT=function(J){var K=$f(J,!0);J.pos+=K}; ncV=function(J){if(!Qw(J,440786851,!0))return null;var K=J.pos;$f(J,!1);var n=$f(J,!0)+J.pos-K;J.pos=K+n;if(!Qw(J,408125543,!1))return null;$f(J,!0);if(!Qw(J,357149030,!0))return null;var X=J.pos;$f(J,!1);var l=$f(J,!0)+J.pos-X;J.pos=X+l;if(!Qw(J,374648427,!0))return null;var x=J.pos;$f(J,!1);var V=$f(J,!0)+J.pos-x,v=new Uint8Array(n+12+l+V),Q=new DataView(v.buffer);v.set(new Uint8Array(J.G.buffer,J.G.byteOffset+K,n));Q.setUint32(n,408125543);Q.setUint32(n+4,33554431);Q.setUint32(n+8,4294967295); v.set(new Uint8Array(J.G.buffer,J.G.byteOffset+X,l),n+12);v.set(new Uint8Array(J.G.buffer,J.G.byteOffset+x,V),n+12+l);return v}; RD=function(J){var K=J.pos;J.pos=0;var n=1E6;hG(J,[408125543,357149030,2807729])&&(n=rZ(J));J.pos=K;return n}; oc8=function(J,K){var n=J.pos;J.pos=0;if(J.G.getUint8(J.pos)!==160&&!u3(J)||!Qw(J,160))return J.pos=n,NaN;$f(J,!0);var X=J.pos;if(!Qw(J,161))return J.pos=n,NaN;$f(J,!0);Hm(J);var l=Hm(J)<<8|Hm(J);J.pos=X;if(!Qw(J,155))return J.pos=n,NaN;X=rZ(J);J.pos=n;return(l+X)*K/1E9}; u3=function(J){if(!X5q(J)||!Qw(J,524531317))return!1;$f(J,!0);return!0}; X5q=function(J){if(J.Yd()){if(!Qw(J,408125543))return!1;$f(J,!0)}return!0}; hG=function(J,K){for(var n=0;n0){var X=Lxp(K.substring(n+1));g.tj(X,function(l,x){this.set(x,l)},J); K=K.substring(0,n)}K=pfr(K);g.tj(K,function(l,x){this.set(x,l)},J)}; xbV=function(J){return J.wG}; jxk=function(J){var K=J.wG.M_(),n=[];g.tj(J.G,function(l,x){n.push(x+"="+l)}); if(!n.length)return K;var X=n.join("&");J=mR3(J.wG)?"&":"?";return K+J+X}; zv=function(J,K){var n=new g.mZ(K);(K=n.get("req_id"))&&J.set("req_id",K);g.tj(J.G,function(X,l){n["set"](l,null)}); return n}; Vy8=function(){this.U=this.X=this.G=this.timedOut=this.started=this.C=this.Z=0}; wZ=function(J){J.C=(0,g.a)();J.started=0;J.timedOut=0;J.G=0}; Pm=function(J,K){var n=J.started+J.G*4;K&&(n+=J.X);n=Math.max(0,n-3);return Math.pow(1.6,n)}; ID=function(J,K){J[K]||(J[K]=new Vy8);return J[K]}; i3=function(J){this.K=this.W=this.C=this.X=0;this.L=this.N=!1;this.G=J;this.Z=J.clone()}; hDe=function(J,K,n){if(TJ(J.G))return!1;var X=ID(n,LT(J.G));if(X.timedOut<1&&X.G<1)return!1;X=X.timedOut+X.G;J=Bm(J,K);n=ID(n,LT(J));return n.timedOut+n.G+01?K=K.Lm:(n=ID(n,pD(J,J.Su(K,n),K)),K=Math.max(J.C,n.timedOut)+K.zv*(J.X-J.C)+.25*J.W,K=K>3?1E3*Math.pow(1.6,K-3):0);return K===0?!0:J.K+K<(0,g.a)()}; vck=function(J,K,n){J.G.set(K,n);J.Z.set(K,n);J.U&&J.U.set(K,n)}; Qxf=function(J,K,n,X,l){++J.X;K&&++J.C;LT(n.wG).startsWith("redirector.")&&(J.G=J.Z.clone(),delete J.U,X.YN&&delete l[LT(J.G)])}; Tv=function(J){return J?(J.itag||"")+";"+(J.lmt||0)+";"+(J.xtags||""):""}; D5=function(J,K,n,X){this.initRange=n;this.indexRange=X;this.G=null;this.X=!1;this.N=0;this.U=this.B2=this.Z=null;this.info=K;this.Ax=new i3(J)}; dZ=function(J,K){this.start=J;this.end=K;this.length=K-J+1}; kf=function(J){J=J.split("-");var K=Number(J[0]),n=Number(J[1]);if(!isNaN(K)&&!isNaN(n)&&J.length===2&&(J=new dZ(K,n),!isNaN(J.start)&&!isNaN(J.end)&&!isNaN(J.length)&&J.length>0))return J}; gZ=function(J,K){return new dZ(J,J+K-1)}; $b3=function(J){return J.end==null?{start:String(J.start)}:{start:String(J.start),end:String(J.end)}}; cm=function(J){if(!J)return new dZ(0,0);var K=Number(J.start);J=Number(J.end);if(!isNaN(K)&&!isNaN(J)&&(K=new dZ(K,J),K.length>0))return K}; Yf=function(J,K,n,X,l,x,V,v,Q,S,r,C){X=X===void 0?"":X;this.type=J;this.G=K;this.range=n;this.source=X;this.fJ=r;this.clipId=C===void 0?"":C;this.K=[];this.L="";this.BW=-1;this.GA=this.QG=0;this.L=X;this.BW=l>=0?l:-1;this.startTime=x||0;this.duration=V||0;this.Z=v||0;this.X=Q>=0?Q:this.range?this.range.length:NaN;this.C=this.range?this.Z+this.X===this.range.length:S===void 0?!!this.X:S;this.range?(this.U=this.startTime+this.duration*this.Z/this.range.length,this.W=this.duration*this.X/this.range.length, this.N=this.U+this.W):S_3(this)}; S_3=function(J){rFU?(J.U=J.startTime+Math.min(J.duration*J.Z/J.G.info.OM,J.duration),J.W=Math.min(J.duration,J.duration*J.X/J.G.info.OM),J.N=Math.min(J.U+J.W,J.startTime+J.duration)):(J.U=J.startTime,J.W=J.duration,J.N=J.U+J.W)}; sx3=function(J,K,n){var X=!(!K||K.G!==J.G||K.type!==J.type||K.BW!==J.BW);return n?X&&!!K&&(J.range&&K.range?K.range.end===J.range.end:K.range===J.range)&&K.Z+K.X===J.Z+J.X:X}; Gv=function(J){return J.type===1||J.type===2}; UT=function(J){return J.type===3||J.type===6}; tG=function(J,K){return J.G===K.G?J.range&&K.range?J.range.start+J.Z+J.X===K.range.start+K.Z:J.BW===K.BW?J.Z+J.X===K.Z:J.BW+1===K.BW&&K.Z===0&&J.C:!1}; OPH=function(J,K){return J.BW!==K.BW&&K.BW!==J.BW+1||J.type!==K.type?!1:tG(J,K)?!0:Math.abs(J.U-K.U)<=1E-6&&J.BW===K.BW?!1:CQr(J,K)}; CQr=function(J,K){return tG(J,K)||Math.abs(J.N-K.U)<=1E-6||J.BW+1===K.BW&&K.Z===0&&J.C?!0:!1}; yw=function(J){return J.BW+(J.C?1:0)}; HPM=function(J){J.length===1||g.WH(J,function(n){return!!n.range}); for(var K=1;K=K.range.start+K.Z&&J.range.start+J.Z+J.X<=K.range.start+K.Z+K.X:J.BW===K.BW&&J.Z>=K.Z&&(J.Z+J.X<=K.Z+K.X||K.C)}; IQe=function(J,K){return J.G!==K.G?!1:J.type===4&&K.type===3&&J.G.qp()?(J=J.G.VE(J),Ma(J,function(n){return IQe(n,K)})):J.BW===K.BW&&!!K.X&&K.Z+K.X>J.Z&&K.Z+K.X<=J.Z+J.X}; fD=function(J,K){var n=K.BW;J.L="updateWithSegmentInfo";J.BW=n;if(J.startTime!==K.startTime||J.duration!==K.duration)J.startTime=K.startTime+J.QG,J.duration=K.duration,S_3(J)}; Wm=function(J,K){var n=this;this.Lv=J;this.U=this.G=null;this.C=this.Ey=NaN;this.Su=this.requestId=null;this.QU={X$F:function(){return n.range}}; this.Ax=J[0].G.Ax;this.Z=K||"";this.Lv[0].range&&this.Lv[0].X>0&&(RDV(J)?(this.range=HPM(J),this.X=this.range.length):(this.range=this.Lv[this.Lv.length-1].range,this.X=uJ3(J)))}; aD=function(J){return!Gv(J.Lv[J.Lv.length-1])}; FY=function(J){return J.Lv[J.Lv.length-1].type===4}; g.qQ=function(J,K,n){n=J.Su===null?J.Ax.Su(K,n,J.Lv[0].type):J.Su;if(J.G){K=n?dU(J.G,K.G2):J.G;var X=new eo(K);X.get("alr")||X.set("alr","yes");J.Z&&lQq(X,J.Z)}else/http[s]?:\/\//.test(J.Z)?X=new eo(new g.mZ(J.Z)):(X=mT(J.Ax,n,K),J.Z&&lQq(X,J.Z));(K=J.range)?X.set("range",K.toString()):J.Lv[0].G.po()&&J.Lv.length===1&&J.Lv[0].Z&&X.set("range",J.Lv[0].Z+"-");J.requestId&&X.set("req_id",J.requestId);isNaN(J.Ey)||X.set("headm",J.Ey.toString());isNaN(J.C)||X.set("mffa",J.C+"ms");J.urlParams&&g.tj(J.urlParams, function(l,x){X.set(x,l)}); return X}; iPk=function(J){if(J.range)return J.X;J=J.Lv[0];return Math.round(J.W*J.G.info.OM)}; Bce=function(J,K){return Math.max(0,J.Lv[0].U-K)}; ET=function(J,K,n,X,l,x){x=x===void 0?0:x;D5.call(this,J,K,X,void 0);this.C=n;this.sY=x;this.index=l||new g.co}; mbf=function(J,K,n,X,l){this.BW=J;this.startSecs=K;this.rW=n;this.G=X||NaN;this.Z=l||NaN}; b3=function(J,K,n){for(;J;J=J.parentNode)if(J.attributes&&(!n||J.nodeName===n)){var X=J.getAttribute(K);if(X)return X}return""}; AG=function(J,K){for(;J;J=J.parentNode){var n=J.getElementsByTagName(K);if(n.length>0)return n[0]}return null}; p5d=function(J){if(!J)return 0;var K=J.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return K?(Number(K[2])|0)*3600+(Number(K[4])|0)*60+(Number(K[6])|0):Number(J)|0}; Lj8=function(J){return J.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?J+"Z":J}; MQ=function(){this.G=[];this.Z=null;this.N=0;this.X=[];this.C=!1;this.W="";this.U=-1}; Tc7=function(J){var K=J.X;J.X=[];return K}; DbV=function(){this.U=[];this.G=null;this.Z={};this.X={}}; cF3=function(J,K){var n=[];K=Array.from(K.getElementsByTagName("SegmentTimeline"));K=g.z(K);for(var X=K.next();!X.done;X=K.next()){X=X.value;var l=X.parentNode.parentNode,x=null;l.nodeName==="Period"?x=dbk(J):l.nodeName==="AdaptationSet"?(l=l.getAttribute("id")||l.getAttribute("mimetype")||"",x=kmV(J,l)):l.nodeName==="Representation"&&(l=l.getAttribute("id")||"",x=gcU(J,l));if(x==null)return;x.update(X);g.P8(n,Tc7(x))}g.P8(J.U,n);p3f(J.U,function(V){return V.startSecs*1E3+V.G})}; Y_3=function(J){J.G&&(J.G.G=[]);g.tj(J.Z,function(K){K.G=[]}); g.tj(J.X,function(K){K.G=[]})}; dbk=function(J){J.G||(J.G=new MQ);return J.G}; kmV=function(J,K){J.Z[K]||(J.Z[K]=new MQ);return J.Z[K]}; gcU=function(J,K){J.X[K]||(J.X[K]=new MQ);return J.X[K]}; Jo=function(J){var K=J===void 0?{}:J;J=K.sY===void 0?0:K.sY;var n=K.rV===void 0?!1:K.rV;var X=K.JF===void 0?0:K.JF;var l=K.h7===void 0?0:K.h7;var x=K.Ad===void 0?Infinity:K.Ad;var V=K.z5===void 0?0:K.z5;var v=K.q_===void 0?!1:K.q_;K=K.v_===void 0?!1:K.v_;g.co.call(this);this.Pq=this.hm=-1;this.Bp=J;this.JF=X;this.rV=n;this.h7=l;this.Ad=x;this.z5=V;((this.q_=v)||isFinite(x)&&this.Ad>0)&&n&&NQ&&(this.Z=!1,this.X="postLive");this.v_=K}; K4=function(J,K){return Dz(J.segments,function(n){return K-n.BW})}; n4=function(J,K,n){n=n===void 0?{}:n;ET.call(this,J,K,"",void 0,void 0,n.sY||0);this.index=new Jo(n)}; oj=function(J,K,n){D5.call(this,J,K);this.C=n;J=this.index=new g.co;J.Z=!1;J.X="d"}; GmV=function(J,K,n){var X=J.index.J1(K),l=J.index.getStartTime(K),x=J.index.getDuration(K);n?x=n=0:n=J.info.OM*x;return new Wm([new Yf(3,J,void 0,"otfCreateRequestInfoForSegment",K,l,x,0,n)],X)}; Ubk=function(J,K){if(!J.index.isLoaded()){var n=[],X=K.U;K=K.C.split(",").filter(function(r){return r.length>0}); for(var l=0,x=0,V=0,v=/^(\d+)/,Q=/r=(\d+)/,S=0;S0&&(l.G=Math.min(l.G+V,10),l.Z=x);l.G>0?(l.G--,l=!0):l=!1;if(l)typeof X==="function"&&(X=X()),console.log("plyr."+K,X);else{var v;X=((v=aQk.get(K))!=null?v:0)+1;aQk.set(K,X);X%100===1&&console.warn("plyr","plyr."+K+" is chatty, dropping logs.")}}}; Wj3=function(){this.G=10;this.Z=Date.now()}; xV=function(J,K){this.info=J;this.G=K;this.Z=null;this.U=this.X=-1;this.timestampOffset=0;this.isLocked=this.N=!1;this.C=this.info.G.WR()&&!this.info.Z}; FjV=function(J,K){J.G.getLength();K=Math.min(K,J.info.X);var n=J.G.split(K),X=n.YL;n=new xV(new Yf(J.info.type,J.info.G,J.info.range,J.info.L,J.info.BW,J.info.startTime,J.info.duration,J.info.Z,K,!1,J.info.fJ,J.info.clipId),n.F$);n.U=J.U;n.X=J.X;K=new xV(new Yf(J.info.type,J.info.G,J.info.range,J.info.L,J.info.BW,J.info.startTime,J.info.duration,J.info.Z+K,J.info.X-K,J.info.C,J.info.fJ,J.info.clipId),X);K.U=J.U;K.X=J.X;return[n,K]}; g.jH=function(J,K,n,X){n=n===void 0?!1:n;X=X===void 0?0:X;if(J.isLocked||K.isLocked||!tG(J.info,K.info)||J.info.C)return null;if(X){if(J.G.getLength()+K.G.getLength()>X)return null}else if(n&&(n=J.G,X=K.G,n=!(X.Gc.length?caU(n,X.Gc[0]):1)),n)return null;n=new Yf(J.info.type,J.info.G,J.info.range,J.info.L,J.info.BW,J.info.startTime,J.info.duration,J.info.Z,J.info.X,J.info.C,J.info.fJ,J.info.clipId);X=K.info;n.X+=X.X;n.range&&(n.W+=X.W);n.N=X.N;n.C=X.C;X=new Og;Hg(X,J.G);Hg(X,K.G);n=new xV(n,X);n.Z!= null&&K.Z!=null&&(new g.XI("dash")).G(414627957,"merged slice emsg overridden; prev: "+n.Z.OS()+" next: "+K.Z.OS());n.Z=K.Z||J.Z;n.X=J.X!==-1?J.X:K.X;n.U=J.U!==-1?J.U:K.U;return n}; g.VC=function(J){g.MR(J.info.G.info)||J.info.G.info.dW();if(J.X!==-1)return J.X;if(J.Z&&t$M(J.Z))return J.X=t$M(J.Z),J.X;if(g.MR(J.info.G.info)){var K=J.K9();for(var n=J.info.G.G,X=NaN,l=NaN,x=0;KD(K,x);){var V=nD(K,x);V.type===1936286840?l=V.data.getUint32(V.dataOffset+8):V.type===1836476516?l=g.MK(V):V.type===1952867444&&isNaN(X)&&(X=g.XY(V));x=oD(V.type)?x+8:x+V.size}!l&&n&&(l=NK(n));K=X/l}else K=new jo(J.K9()),n=J.C?K:new jo(new DataView(J.info.G.G.buffer)),X=RD(n),n=K.pos,K.pos=0,u3(K)?Qw(K, 231)?(X=rZ(K)*X/1E9,K.pos=n,K=X):(K.pos=n,K=NaN):(K.pos=n,K=NaN);J.X=K||J.info.U;return J.X}; Ecf=function(J,K){J.timestampOffset>0&&(K-=J.timestampOffset);var n=g.VC(J)+K;q_H(J,n);J.timestampOffset=K}; q_H=function(J,K){g.MR(J.info.G.info)||J.info.G.info.dW();J.X=K;if(g.MR(J.info.G.info)){var n=J.K9();J=J.info.G.G;for(var X=NaN,l=NaN,x=0;KD(n,x);){var V=nD(n,x);isNaN(X)&&(V.type===1936286840?X=V.data.getUint32(V.dataOffset+8):V.type===1836476516&&(X=g.MK(V)));if(V.type===1952867444){!X&&J&&(X=NK(J));var v=g.XY(V);isNaN(l)&&(l=Math.round(K*X)-v);var Q=V;v+=l;if(Q.data.getUint8(Q.dataOffset)){var S=Q.data;Q=Q.dataOffset+4;S.setUint32(Q,Math.floor(v/4294967296));S.setUint32(Q+4,v&4294967295)}else Q.data.setUint32(Q.dataOffset+ 4,v)}x=oD(V.type)?x+8:x+V.size}return!0}n=new jo(J.K9());J=J.C?n:new jo(new DataView(J.info.G.G.buffer));X=RD(J);J=n.pos;n.pos=0;if(u3(n)&&Qw(n,231))if(l=$f(n,!0),K=Math.floor(K*1E9/X),Math.ceil(Math.log(K)/Math.log(2)/8)>l)K=!1;else{for(X=l-1;X>=0;X--)n.G.setUint8(n.pos+X,K&255),K>>>=8;n.pos=J;K=!0}else K=!1;return K}; vu=function(J,K){K=K===void 0?!1:K;var n=ho(J);J=K?0:J.info.W;return n||J}; ho=function(J){g.MR(J.info.G.info)||J.info.G.info.dW();if(J.Z&&J.info.type===6)return J.Z.sY;if(g.MR(J.info.G.info)){var K=J.K9();var n=0;K=g.xf(K,1936286840);K=g.z(K);for(var X=K.next();!X.done;X=K.next())X=quV(X.value),n+=X.kh[0]/X.timescale;n=n||NaN;if(!(n>=0))a:{n=J.K9();K=J.info.G.G;for(var l=X=0,x=0;KD(n,X);){var V=nD(n,X);if(V.type===1836476516)l=g.MK(V);else if(V.type===1836019558){!l&&K&&(l=NK(K));if(!l){n=NaN;break a}var v=g.U(JG(V.data,V.dataOffset,1953653094)),Q=v;v=l;var S=g.U(JG(Q.data, Q.dataOffset,1952868452));Q=g.U(JG(Q.data,Q.dataOffset,1953658222));var r=tJ(S);tJ(S);r&2&&tJ(S);S=r&8?tJ(S):0;var C=tJ(Q),O=C&1;r=C&4;var H=C&256,R=C&512,w=C&1024;C&=2048;var P=yL(Q);O&&tJ(Q);r&&tJ(Q);for(var B=O=0;B2048?"":K.indexOf("https://")===0?K:""}; C4=function(J,K,n){K.match(jKe);return J(K,n).then(function(X){var l=g.xnV(X.xhr);return l?C4(J,l,n):X.xhr})}; un=function(J,K,n){J=J===void 0?"":J;K=K===void 0?null:K;n=n===void 0?!1:n;g.hi.call(this);var X=this;this.sourceUrl=J;this.isLivePlayback=n;this.kF=this.duration=0;this.isPremiere=this.q_=this.U=this.isLiveHeadPlayable=this.isLive=this.Z=!1;this.Ad=this.h7=0;this.isOtf=this.qS=!1;this.j_=(0,g.a)();this.GA=Infinity;this.G={};this.X=new Map;this.state=this.RO=0;this.timeline=null;this.isManifestless=!1;this.cW=[];this.N=null;this.MQ=0;this.C="";this.PW=NaN;this.Aj=this.Gi=this.timestampOffset=this.W= 0;this.v1=this.xd=NaN;this.a5=0;this.Cv=this.K=!1;this.fv=[];this.gQ={};this.QG=NaN;this.QU={Bed:function(v){OV(X,v)}}; var l;this.wQ=(l=K)==null?void 0:l.sM("html5_use_network_error_code_enums");VRV=!!K&&K.sM("html5_modern_vp9_mime_type");var x;Hu=!((x=K)==null||!x.sM("html5_enable_flush_during_seek"))&&g.ae();var V;Rj=!((V=K)==null||!V.sM("html5_enable_reset_audio_decoder"))&&g.ae()}; hPV=function(J){return g.fn(J.G,function(K){return!!K.info.video&&K.info.video.qualityOrdinal>=2160})}; wfH=function(J){return g.fn(J.G,function(K){return!!K.info.video&&K.info.video.isHdr()})}; ed=function(J){return g.fn(J.G,function(K){return!!K.info.rE})}; g.vIM=function(J){return g.fn(J.G,function(K){return ox(K.info.mimeType)})}; QKF=function(J){return g.fn(J.G,function(K){return K.info.video?K.info.video.projectionType==="EQUIRECTANGULAR":!1})}; $nM=function(J){return g.fn(J.G,function(K){return K.info.video?K.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; S9M=function(J){return g.fn(J.G,function(K){return K.info.video?K.info.video.projectionType==="MESH":!1})}; rxH=function(J){return g.fn(J.G,function(K){return K.info.video?K.info.video.stereoLayout===1:!1})}; sK7=function(J){return kMf(J.G,function(K){return K.info.video?K.ZW():!0})}; Ho=function(J){return g.fn(J.G,function(K){return TJ(K.Ax.G)})}; OV=function(J,K){J.G[K.info.id]=K;J.X.set(Tv(g.JF(K.info,J.qS)),K)}; we=function(J,K,n){n=n===void 0?0:n;var X=J.mimeType||"",l=J.itag;var x=J.xtags;l=l?l.toString():"";x&&(l+=";"+x);x=l;if(nP(X)){var V=J.width||640;l=J.height||360;var v=J.fps,Q=J.qualityLabel,S=J.colorInfo,r=J.projectionType,C;J.stereoLayout&&(C=CHq[J.stereoLayout]);var O=Xhk(J)||void 0;if(S==null?0:S.primaries)var H=Oh3[S.primaries]||void 0;V=new Uu(V,l,v,r,C,void 0,Q,O,H);X=eH(X,V,fJ[J.itag||""]);Hu&&(X+="; enableflushduringseek=true");Rj&&(X+="; enableresetaudiodecoder=true")}var R;if(KP(X)){var w= J.audioSampleRate;C=J.audioTrack;w=new cf(w?+w:void 0,J.audioChannels,J.spatialAudioType,J.isDrc,J.loudnessDb,J.trackAbsoluteLoudnessLkfs,J.audioQuality||"AUDIO_QUALITY_UNKNOWN",J.isVb);C&&(H=C.displayName,l=C.id,C=C.audioIsDefault,H&&(R=new g.sV(H,l||"",!!C)))}var P;J.captionTrack&&(Q=J.captionTrack,C=Q.displayName,H=Q.vssId,l=Q.languageCode,v=Q.kind,Q=Q.id,C&&H&&l&&(P=new nI8(C,H,l,v,J.xtags,Q)));C=Number(J.bitrate)/8;H=Number(J.contentLength);l=Number(J.lastModified);Q=J.drmFamilies;v=J.type;n= n&&H?H/n:0;J=Number(J.approxDurationMs);if(K&&Q){var B={};Q=g.z(Q);for(S=Q.next();!S.done;S=Q.next())(S=zs[S.value])&&(B[S]=K[S])}return new Wf(x,X,{audio:w,video:V,Hw:R,rE:B,OM:C,GW:n,contentLength:H,lastModified:l,captionTrack:P,streamType:v,approxDurationMs:J})}; Pu=function(J,K,n){n=n===void 0?0:n;var X=J.type;var l=J.itag;var x=J.xtags;x&&(l=J.itag+";"+x);if(nP(X)){var V=(J.size||"640x360").split("x");V=new Uu(+V[0],+V[1],+J.fps,J.projection_type,+J.stereo_layout,void 0,J.quality_label,J.eotf,J.primaries);X=eH(X,V,fJ[J.itag]);Hu&&(X+="; enableflushduringseek=true");Rj&&(X+="; enableresetaudiodecoder=true")}var v;if(KP(X)){var Q=new cf(+J.audio_sample_rate||void 0,+J.audio_channels||0,J.spatial_audio_type,!!J.drc);J.name&&(v=new g.sV(J.name,J.audio_track_id, J.isDefault==="1"))}var S;J.caption_display_name&&J.caption_vss_id&&J.caption_language_code&&(S=new nI8(J.caption_display_name,J.caption_vss_id,J.caption_language_code,J.caption_kind,J.xtags,J.caption_id));x=Number(J.bitrate)/8;var r=Number(J.clen),C=Number(J.lmt);n=n&&r?r/n:0;if(K&&J.drm_families){var O={};for(var H=g.z(J.drm_families.split(",")),R=H.next();!R.done;R=H.next())R=R.value,O[R]=K[R]}return new Wf(l,X,{audio:Q,video:V,Hw:v,rE:O,OM:x,GW:n,contentLength:r,lastModified:C,captionTrack:S, streamType:J.stream_type,approxDurationMs:Number(J.approx_duration_ms)})}; Hhd=function(J){return Ma(J,function(K){return"FORMAT_STREAM_TYPE_OTF"===K.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; RP7=function(J){return Ma(J,function(K){return"FORMAT_STREAM_TYPE_OTF"===K.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; ujF=function(J,K){return J.timeline?iG(J.timeline.U,K):J.cW.length?iG(J.cW,K):[]}; Ij=function(J,K,n){K=K===void 0?"":K;n=n===void 0?"":n;J=new g.mZ(J,!0);J.set("alr","yes");n&&(n=Wh3(decodeURIComponent(n)),J[h[45]](K,encodeURIComponent(n)));return J}; PHV=function(J,K){var n=b3(K,"id");n=n.replace(":",";");var X=b3(K,"mimeType"),l=b3(K,"codecs");X=l?X+'; codecs="'+l+'"':X;l=Number(b3(K,"bandwidth"))/8;var x=Number(AG(K,"BaseURL").getAttribute(J.C+":contentLength")),V=J.duration&&x?x/J.duration:0;if(nP(X)){var v=Number(b3(K,"width"));var Q=Number(b3(K,"height")),S=Number(b3(K,"frameRate")),r=ePp(b3(K,J.C+":projectionType"));a:switch(b3(K,J.C+":stereoLayout")){case "layout_left_right":var C=1;break a;case "layout_top_bottom":C=2;break a;default:C= 0}v=new Uu(v,Q,S,r,C)}if(KP(X)){var O=Number(b3(K,"audioSamplingRate"));var H=Number(b3(K.getElementsByTagName("AudioChannelConfiguration")[0],"value"));Q=zP8(b3(K,J.C+":spatialAudioType"));O=new cf(O,H,Q);a:{H=b3(K,"lang")||"und";if(Q=AG(K,"Role"))if(r=b3(Q,"value")||"",g.E0(wh8,r)){Q=H+"."+wh8[r];S=r==="main";J=b3(K,J.C+":langName")||H+" - "+r;H=new g.sV(J,Q,S);break a}H=void 0}}if(K=AG(K,"ContentProtection"))if(K.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var R={};for(K= K.firstChild;K!=null;K=K.nextSibling)K instanceof Element&&/SystemURL/.test(K.nodeName)&&(J=K.getAttribute("type"),Q=K.textContent,J&&Q&&(R[J]=Q.trim()))}else R=void 0;return new Wf(n,X,{audio:O,video:v,Hw:H,rE:R,OM:l,GW:V,contentLength:x})}; ePp=function(J){switch(J){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"}}; zP8=function(J){switch(J){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"}}; ihr=function(J,K){K=K===void 0?"":K;J.state=1;J.j_=(0,g.a)();return lOf(K||J.sourceUrl).then(function(n){if(!J.o4()){J.RO=n.status;n=n.responseText;var X=new DOMParser;n=SO(X,tgq(n),"text/xml").getElementsByTagName("MPD")[0];J.GA=p5d(b3(n,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(n.attributes){X=g.z(n.attributes);for(var l=X.next();!l.done;l=X.next())if(l=l.value,l.value==="http://youtube.com/yt/2012/10/10"){X=l.name.split(":")[1];break b}}X=""}J.C=X;J.isLive=J.GA=J.GA}; mnq=function(J){J.N&&J.N.stop()}; IOd=function(J){var K=J.GA;isFinite(K)&&(Bu(J)?J.refresh():(K=Math.max(0,J.j_+K-(0,g.a)()),J.N||(J.N=new g.AT(J.refresh,K,J),g.Z(J,J.N)),J.N.start(K)))}; phU=function(J){J=J.G;for(var K in J){var n=J[K].index;if(n.isLoaded())return n.VU()+1}return 0}; mo=function(J){return J.Gi?J.Gi-(J.W||J.timestampOffset):0}; p4=function(J){return J.Aj?J.Aj-(J.W||J.timestampOffset):0}; L4=function(J){if(!isNaN(J.PW))return J.PW;var K=J.G,n;for(n in K){var X=K[n].index;if(X.isLoaded()&&!ox(K[n].info.mimeType)){K=0;for(n=X.WQ();n<=X.VU();n++)K+=X.getDuration(n);K/=X.Yb();K=Math.round(K/.5)*.5;X.Yb()>10&&(J.PW=K);return K}if(J.isLive&&(X=K[n],X.sY))return X.sY}return NaN}; LCd=function(J,K){J=c73(J.G,function(X){return X.index.isLoaded()}); if(!J)return NaN;J=J.index;var n=J.dG(K);return J.getStartTime(n)===K?K:n=0&&l.segments.splice(x,1)}}}; Dnf=function(J){for(var K in J.G)ox(J.G[K].info.mimeType)||g68(J.G[K].index,Infinity)}; de=function(J,K,n){for(var X in J.G){var l=J.G[X].index,x=K,V=n;l.rV&&(x&&(l.hm=Math.max(l.hm,x)),V&&(l.Pq=Math.max(l.Pq||0,V)))}n&&(J.QG=n/1E3)}; dnk=function(J){J.Aj=0;J.Gi=0;J.a5=0}; kV=function(J){return J.Cv&&J.isManifestless?J.isLiveHeadPlayable:J.isLive}; eH=function(J,K,n){ge===null&&(ge=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(VRV&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return ge||n!=="9"&&n!=="("?ge||n!=="9h"&&n!=="(h"||(J='video/webm; codecs="vp9.2"'):J='video/webm; codecs="vp9"',J;if(!ge&&!cu||J!=='video/webm; codecs="vp9"'&&J!=='video/webm; codecs="vp9.2"')return J; n="00";var X="08",l="01",x="01",V="01";J==='video/webm; codecs="vp9.2"'&&(n="02",X="10",K.primaries==="bt2020"&&(V=l="09"),K.G==="smpte2084"&&(x="16"),K.G==="arib-std-b67"&&(x="18"));return'video/webm; codecs="'+["vp09",n,"51",X,"01",l,x,V,"00"].join(".")+'"'}; Gs=function(J,K,n){J=""+J+(K>49?"p60":K>32?"p48":"");K=F1()[J];if(K!=null&&K>0)return K;K=YV.get(J);if(K!=null&&K>0)return K;n=n==null?void 0:n.get(J);return n!=null&&n>0?n:8192}; kZV=function(J){this.ix=J;this.fU=this.hv=this.MQ=this.C=this.U=this.fv=this.Cv=this.GA=!1;this.W=this.N=0;this.wQ=!1;this.QG=!0;this.gQ=!1;this.rz=0;this.Ae=this.Aj=!1;this.KU=!0;this.j_=this.PW=!1;this.G={};this.vW=this.wN=this.disableAv1=this.md=this.nE=this.Fq=this.Dm=this.Z=this.L=!1;this.f9=this.ix.J("html5_disable_aac_preference");this.o5=Infinity;this.cW=0;this.a5=this.ix.Pw();this.Gi=this.ix.experiments.sM("html5_enable_vp9_fairplay");this.ih=this.ix.J("html5_force_av1_for_testing");this.kF= g.Qg(this.ix.experiments,"html5_av1_ordinal_cap");this.F2=this.ix.J("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.PM=this.ix.J("html5_account_onesie_format_selection_during_format_filter");this.OM=g.Qg(this.ix.experiments,"html5_max_byterate");this.iR=this.ix.J("html5_enable_iamf_audio");this.C9=this.ix.experiments.sM("html5_allow_capability_merge");this.x4=this.ix.J("html5_enable_encrypted_av1")}; Pxk=function(J){if(J.Cv)return["f"];if(g.fa("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var K=["9h","9","h","8"];J.x4&&K.push("1e");K=K.concat(["(h","(","H","*"]);J.Aj&&(K.unshift("1"),K.unshift("1h"));J.hv&&K.unshift("h");J.K&&(K=(gIH[J.K]||[J.K]).concat(K));return K}; OJH=function(J){var K=["o","a","A"];J.cW===1&&(J.U&&(K=["mac3","MAC3"].concat(K)),J.C&&(K=["meac3","MEAC3"].concat(K)),J.iR&&(K=["i","I"].concat(K)));J.GA&&(K=["so","sa"].concat(K));!J.fU||J.MQ||J.X||J.f9||K.unshift("a");J.X&&(K=(gIH[J.X]||[J.X]).concat(K));return K}; UV=function(J,K,n,X){K=K===void 0?{}:K;if(X===void 0?0:X)return K.disabled=1,0;if(ie(J.C,Bo.AV1_CODECS)&&ie(J.C,Bo.HEIGHT)&&ie(J.C,Bo.BITRATE))return K.isCapabilityUsable=1,8192;try{var l=Nhe();if(l)return K.localPref=l}catch(v){}X=1080;l=navigator.hardwareConcurrency;l<=2&&(X=480);K.coreCount=l;if(l=g.Qg(J.experiments,"html5_default_av1_threshold"))X=K["default"]=l;!J.J("html5_disable_av1_arm_check")&&P1F()&&(K.isArm=1,X=240);if(J=J.C.QG)K.mcap=J,X=Math.max(X,J);if(n){var x,V;if(J=(x=n.videoInfos.find(function(v){return Eu(v)}))== null?void 0:(V=x.Z)==null?void 0:V.powerEfficient)X=8192,K.isEfficient=1; n=n.videoInfos[0].video;x=Math.min(Gs("1",n.fps),Gs("1",30));K.perfCap=x;X=Math.min(X,x);n.isHdr()&&!J&&(K.hdr=1,X*=.75)}else n=Gs("1",30),K.perfCap30=n,X=Math.min(X,n),n=Gs("1",60),K.perfCap60=n,X=Math.min(X,n);return K.av1Threshold=X}; to=function(J,K,n,X){this.flavor=J;this.keySystem=K;this.Z=n;this.experiments=X;this.G={};this.kF=this.keySystemAccess=null;this.VD=this.Tt=-1;this.Zz=null;this.X=!!X&&X.sM("edge_nonprefixed_eme");X&&X.sM("html5_enable_vp9_fairplay")}; Za=function(J){return J.X?!1:!J.keySystemAccess&&!!yC()&&J.keySystem==="com.microsoft.playready"}; f4=function(J){return J.keySystem==="com.microsoft.playready"}; Wu=function(J){return!J.keySystemAccess&&!!yC()&&J.keySystem==="com.apple.fps.1_0"}; aj=function(J){return J.keySystem==="com.youtube.fairplay"}; FI=function(J){return J.keySystem==="com.youtube.fairplay.sbdl"}; g.qg=function(J){return J.flavor==="fairplay"}; yC=function(){var J=window,K=J.MSMediaKeys;Ej()&&!K&&(K=J.WebKitMediaKeys);return K&&K.isTypeSupported?K:null}; bn=function(J){return navigator.requestMediaKeySystemAccess?g.T2&&!g.ae()?im("45"):g.qH||g.sx?J.sM("edge_nonprefixed_eme"):g.EV?im("47"):g.ut&&J.sM("html5_enable_safari_fairplay")?!1:!0:!1}; cxf=function(J,K,n,X){var l=F6(),x=(n=l||n&&Ej())?["com.youtube.fairplay"]:["com.widevine.alpha"];K&&x.unshift("com.youtube.widevine.l3");l&&X&&x.unshift("com.youtube.fairplay.sbdl");return n?x:J?[].concat(g.m(x),g.m(Ao.playready)):[].concat(g.m(Ao.playready),g.m(x))}; Mg=function(J,K,n,X,l){X=X===void 0?!1:X;g.t.call(this);this.ix=K;this.useCobaltWidevine=X;this.Zm=l;this.Z=[];this.X={};this.G={};this.callback=null;this.C=!1;this.U=[];this.initialize(J,!n)}; GZF=function(J,K){J.callback=K;J.U=[];bn(J.ix.experiments)?Ng(J):Y9k(J)}; Ng=function(J){if(!J.o4())if(J.Z.length===0)J.callback(J.U);else{var K=J.Z[0],n=J.X[K],X=Unq(J,n);if(JS&&JS.keySystem===K&&JS.oOx===JSON.stringify(X))J.Zm("remksa",{re:!0}),tRM(J,n,JS.keySystemAccess);else{var l,x;J.Zm("remksa",{re:!1,ok:(x=(l=JS)==null?void 0:l.keySystem)!=null?x:""});JS=void 0;navigator.requestMediaKeySystemAccess(K,X).then(BG(function(V){tRM(J,n,V,X)}),BG(function(){J.C=!J.C&&J.X[J.Z[0]].flavor==="widevine"; J.C||J.Z.shift();Ng(J)}))}}}; tRM=function(J,K,n,X){if(!J.o4()){X&&(JS={keySystem:K.keySystem,keySystemAccess:n,oOx:JSON.stringify(X)});K.keySystemAccess=n;if(f4(K)){n=pJ();X=g.z(Object.keys(J.G[K.flavor]));for(var l=X.next();!l.done;l=X.next())l=l.value,K.G[l]=!!n.canPlayType(l)}else{n=K.keySystemAccess.getConfiguration();if(n.audioCapabilities)for(X=g.z(n.audioCapabilities),l=X.next();!l.done;l=X.next())yxq(J,K,l.value);if(n.videoCapabilities)for(n=g.z(n.videoCapabilities),X=n.next();!X.done;X=n.next())yxq(J,K,X.value)}J.U.push(K); J.useCobaltWidevine||J.J("html5_enable_vp9_fairplay")&&FI(K)?(J.Z.shift(),Ng(J)):J.callback(J.U)}}; yxq=function(J,K,n){J.J("log_robustness_for_drm")?K.G[n.contentType]=n.robustness||!0:K.G[n.contentType]=!0}; Unq=function(J,K){var n={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(J.J("html5_enable_vp9_fairplay")&&aj(K))return n.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),n.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[n];f4(K)&&(n.initDataTypes=["keyids","cenc"]);for(var X=g.z(Object.keys(J.G[K.flavor])),l=X.next();!l.done;l=X.next()){l=l.value;var x=l.indexOf("audio/")===0,V=x?n.audioCapabilities:n.videoCapabilities;K.flavor!== "widevine"||J.C?V.push({contentType:l}):x?V.push({contentType:l,robustness:"SW_SECURE_CRYPTO"}):(g.T2&&g.fa("windows nt")&&!J.J("html5_drm_enable_moho")||V.push({contentType:l,robustness:"HW_SECURE_ALL"}),x=l,J.ix.C.X&&l.includes("vp09")&&(x=l+"; experimental=allowed"),V.push({contentType:x,robustness:"SW_SECURE_DECODE"}),g.KR(J.ix)==="MWEB"&&(K0()||Wa())&&(J.Zm("swcrypto",{}),V.push({contentType:l,robustness:"SW_SECURE_CRYPTO"})))}return[n]}; Y9k=function(J){if(yC()&&(g.ut||A2))J.U.push(new to("fairplay","com.apple.fps.1_0","",J.ix.experiments));else{var K=ZhU(),n=g.ru(J.Z,function(X){var l=J.X[X],x=!1,V=!1,v;for(v in J.G[l.flavor])K(v,X)&&(l.G[v]=!0,x=x||v.indexOf("audio/")===0,V=V||v.indexOf("video/")===0);return x&&V}); n&&J.U.push(J.X[n]);J.Z=[]}J.callback(J.U)}; ZhU=function(){var J=yC();if(J){var K=J.isTypeSupported;return function(X,l){return K(l,X)}}var n=pJ(); return n&&(n.addKey||n.webkitAddKey)?function(X,l){return!!n.canPlayType(X,l)}:function(){return!1}}; fOH=function(J){this.experiments=J;this.G=2048;this.U=0;this.QG=(this.W=this.J("html5_streaming_resilience"))?.5:.25;var K=K===void 0?0:K;this.X=g.Qg(this.experiments,"html5_media_time_weight_prop")||K;this.GA=g.Qg(this.experiments,"html5_sabr_timeout_penalty_factor")||1;this.K=(this.C=this.experiments.sM("html5_consider_end_stall"))&&nR;this.Z=this.experiments.sM("html5_measure_max_progress_handling");this.L=this.J("html5_treat_requests_pre_elbow_as_metadata");this.N=this.J("html5_media_time_weight")|| !!this.X;this.J("html5_sabr_live_audio_early_return_fix")&&nR&&(this.G=65536)}; WCe=function(J,K){this.G=void 0;this.experimentIds=J?J.split(","):[];this.flags=Ka(K||"","&");J={};K=g.z(this.experimentIds);for(var n=K.next();!n.done;n=K.next())J[n.value]=!0;this.experiments=J}; g.Qg=function(J,K){J=J.flags[K];JSON.stringify(J);return Number(J)||0}; om=function(J,K){return(J=J.flags[K])?J.toString():""}; aOe=function(J){if(J=J.flags.html5_web_po_experiment_ids)if(J=J.replace(/\[ *(.*?) *\]/,"$1"))return J.split(",").map(Number);return[]}; FCp=function(J){if(J.G)return J.G;if(J.experimentIds.length<=1)return J.G=J.experimentIds,J.G;var K=[].concat(g.m(J.experimentIds)).map(function(X){return Number(X)}); K.sort();for(var n=K.length-1;n>0;--n)K[n]-=K[n-1];J.G=K.map(function(X){return X.toString()}); J.G.unshift("v1");return J.G}; EId=function(J){return q9e.then(J)}; XX=function(J,K,n){this.experiments=J;this.cW=K;this.MQ=n===void 0?!1:n;this.K=!!g.bF("cast.receiver.platform.canDisplayType");this.L={};this.GA=!1;this.U=new Map;this.W=!0;this.Z=this.X=!1;this.G=new Map;this.QG=0;this.Aj=this.experiments.sM("html5_disable_vp9_encrypted");this.C=this.experiments.sM("html5_enable_encrypted_av1");J=g.bF("cast.receiver.platform.getValue");if(K=!this.K&&J)K=J("max-video-resolution-vpx");this.N=K||null;bhe(this);this.X=!!(F6()&&ZC()>=21)}; BYp=function(J,K,n){n=n===void 0?1:n;var X=K.itag;if(X==="0")return!0;var l=K.mimeType;if(K.YF==="1e"&&!J.C)return"dav1enc";if(Eu(K)&&J.GA)return"dav1";if(K.video&&(K.video.isHdr()||K.video.primaries==="bt2020")&&!(ie(J,Bo.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(X==="338"&&!(g.T2?im(53):g.EV&&im(64)))return"dopus";var x=n;x=x===void 0?1: x;n={};K.video&&(K.video.width&&(n[Bo.WIDTH.name]=K.video.width),K.video.height&&(n[Bo.HEIGHT.name]=K.video.height),K.video.fps&&(n[Bo.FRAMERATE.name]=K.video.fps*x),K.video.G&&(n[Bo.EOTF.name]=K.video.G),K.OM&&(n[Bo.BITRATE.name]=K.OM*8*x),K.YF==="("&&(n[Bo.CRYPTOBLOCKFORMAT.name]="subsample"),K.video.projectionType==="EQUIRECTANGULAR"||K.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||K.video.projectionType==="MESH")&&(n[Bo.DECODETOTEXTURE.name]="true");K.audio&&K.audio.numChannels&& (n[Bo.CHANNELS.name]=K.audio.numChannels);J.X&&ah(K)&&(n[Bo.EXPERIMENTAL.name]="allowed");x=g.z(Object.keys(Bo));for(var V=x.next();!V.done;V=x.next()){V=Bo[V.value];var v;if(v=n[V.name])if(v=!(V===Bo.EOTF&&K.mimeType.indexOf("vp09.02")>0)){v=V;var Q=K;v=!(J.experiments.sM("html5_ignore_h264_framerate_cap")&&v===Bo.FRAMERATE&&BfH(Q))}if(v)if(ie(J,V))if(J.N){if(J.N[V.name] 1080&&K.rE&&(l+="; hdcp=2.2");return X==="227"?"hqcenc":X!=="585"&&X!=="588"&&X!=="583"&&X!=="586"&&X!=="584"&&X!=="587"&&X!=="591"&&X!=="592"||J.experiments.sM("html5_enable_new_hvc_enc")?F6()&&ZC()>=21&&g.fa("appletv5")&&(X==="410"||X==="845")?!0:J.isTypeSupported(l)?!0:"tpus":"newhvc"}; lq=function(){var J=Wa()&&!im(29),K=g.fa("google tv")&&g.fa("chrome")&&!im(30);return J||K?!1:dxp()}; Ax8=function(J,K,n){var X=480;K=g.z(K);for(var l=K.next();!l.done;l=K.next()){l=l.value;var x=l.video.qualityOrdinal;x<=1080&&x>X&&BYp(J,l,n)===!0&&(X=x)}return X}; g.xn=function(J,K){K=K===void 0?!1:K;return lq()&&J.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!K&&J.canPlayType(pJ(),"application/x-mpegURL")?!0:!1}; Nqr=function(J){MRU(function(){for(var K=g.z(Object.keys(Bo)),n=K.next();!n.done;n=K.next())ie(J,Bo[n.value])})}; ie=function(J,K){K.name in J.L||(J.L[K.name]=JdM(J,K));return J.L[K.name]}; JdM=function(J,K){if(J.N)return!!J.N[K.name];if(K===Bo.BITRATE&&J.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!J.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(K===Bo.AV1_CODECS)return J.isTypeSupported("video/mp4; codecs="+K.valid)&&!J.isTypeSupported("video/mp4; codecs="+K.FA);if(K.video){var n='video/webm; codecs="vp9"';J.isTypeSupported(n)||(n='video/mp4; codecs="avc1.4d401e"')}else n='audio/webm; codecs="opus"', J.isTypeSupported(n)||(n='audio/mp4; codecs="mp4a.40.2"');return J.isTypeSupported(n+"; "+K.name+"="+K.valid)&&!J.isTypeSupported(n+"; "+K.name+"="+K.FA)}; K6q=function(J,K){var n=0;J.U.has(K)&&(n=g.U(J.U.get(K)).JE);J.U.set(K,{JE:n+1,cg:Math.pow(2,n+1)});J.Z=!0}; zJ=function(J){for(var K=[],n=g.z(J.G.keys()),X=n.next();!X.done;X=n.next()){X=X.value;var l=J.G.get(X);K.push(X+"_"+l.maxWidth+"_"+l.maxHeight)}return K.join(".")}; Ry7=function(J,K){for(var n=new Map,X=g.z(J.G.keys()),l=X.next();!l.done;l=X.next()){l=l.value;var x=l.split("_")[0];K.has(x)||n.set(l,J.G.get(l))}J.G=n}; eyV=function(J,K,n){var X,l=((X=n.video)==null?void 0:X.fps)||0;X=K+"_"+l;var x=!!n.audio,V={itag:n.itag,YF:K,Mp:x};if(x)V.numChannels=n.audio.numChannels;else{var v=n.video;V.maxWidth=v==null?void 0:v.width;V.maxHeight=v==null?void 0:v.height;V.maxFramerate=l;ie(J,Bo.BITRATE)&&(V.maxBitrateBps=n.OM*8);V.RU=v==null?void 0:v.isHdr()}v=J.G.get(X);v?x||(n=Math.max(v.maxWidth||0,v.maxHeight||0)>Math.max(V.maxWidth||0,V.maxHeight||0)?v:V,K={itag:n.itag,YF:K,Mp:x,maxWidth:Math.max(v.maxWidth||0,V.maxWidth|| 0),maxHeight:Math.max(v.maxHeight||0,V.maxHeight||0),maxFramerate:l,RU:n.RU},ie(J,Bo.BITRATE)&&(K.maxBitrateBps=n.maxBitrateBps),J.G.set(X,K)):J.G.set(X,V)}; zye=function(J,K,n){var X,l=((X=n.video)==null?void 0:X.fps)||0;X=K+"_"+l;var x=!!n.audio,V=J.G.get(X);a:{var v=J.G.get(X),Q=!!n.audio;if(v){if(Q){var S=!1;break a}var r;if(!Q&&((S=n.video)==null?0:S.height)&&v.maxHeight&&v.maxHeight>=((r=n.video)==null?void 0:r.height)){S=!1;break a}}S=!0}S&&(S=n.itag,K=V?V:{itag:S,YF:K,Mp:x},x?K.numChannels=n.audio.numChannels:(x=n.video,K.maxWidth=x==null?void 0:x.width,K.maxHeight=x==null?void 0:x.height,K.maxFramerate=l,ie(J,Bo.BITRATE)&&(K.maxBitrateBps=n.OM* 8),K.RU=x==null?void 0:x.isHdr()),J.G.set(X,K))}; bhe=function(J){var K;(K=navigator.mediaCapabilities)!=null&&K.decodingInfo&&navigator.mediaCapabilities.decodingInfo({type:"media-source",video:{contentType:'video/mp4; codecs="av01.0.12M.08"',width:3840,height:2160,bitrate:32E6,framerate:60}}).then(function(n){n.smooth&&n.powerEfficient&&(J.QG=2160)})}; jl=function(){g.hi.call(this);this.items={}}; nL7=function(J,K,n){this.encryptedClientKey=K;this.C=n;this.G=new Uint8Array(J.buffer,0,16);this.X=new Uint8Array(J.buffer,16)}; oLr=function(J){J.Z||(J.Z=new g.em(J.G));return J.Z}; VX=function(J){try{return nK(J)}catch(K){return null}}; XWV=function(J,K){if(!K&&J)try{K=JSON.parse(J)}catch(l){}if(K){J=K.clientKey?VX(K.clientKey):null;var n=K.encryptedClientKey?VX(K.encryptedClientKey):null,X=K.keyExpiresInSeconds?Number(K.keyExpiresInSeconds)*1E3+(0,g.a)():null;J&&n&&X&&(this.G=new nL7(J,n,X));K.onesieUstreamerConfig&&(this.onesieUstreamerConfig=VX(K.onesieUstreamerConfig)||void 0);this.baseUrl=K.baseUrl}}; vp=function(){this.data=new Uint8Array(2048);this.pos=0;hS||(hS=p3("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}; QX=function(J,K){J.add(K==null||isNaN(K)?0:K+1)}; $n=function(J){this.G=this.Z=0;this.alpha=Math.exp(Math.log(.5)/J)}; Sl=function(J){this.Z=J===void 0?15:J;this.values=new Float64Array(176);this.G=new Float64Array(11);this.X=new Float64Array(16)}; rz=function(J,K,n,X){n=n===void 0?.5:n;X=X===void 0?0:X;this.resolution=K;this.Z=0;this.X=!1;this.H$=!0;this.G=Math.round(J*this.resolution);this.values=Array(this.G);for(J=0;J0)K=J.byterate,this.GA=!0;else{var X; n=(((X=navigator.connection)==null?void 0:X.downlink)||0)*64*1024;n>0&&(K=n,this.GA=!0)}this.X.Ty(this.policy.N,K);J.delay>0&&this.L.Ty(1,Math.min(J.delay,2));J.stall>0&&this.W.Ty(1,J.stall);J.init>0&&(this.j_=Math.min(J.init,this.j_));J.interruptions&&(this.U=this.U.concat(J.interruptions),this.U.length>16&&this.U.pop());this.QG=(0,g.a)();this.policy.W>0&&(this.Cv=new g.AT(this.fv,this.policy.W,this),g.Z(this,this.Cv),this.Cv.start())}; CR=function(J,K,n,X){J.X.Ty(X===void 0?K:X,n/K);J.N=(0,g.a)()}; xhM=function(J){J.C||(J.C=(0,g.a)());J.policy.K&&(J.N=(0,g.a)())}; jz3=function(J,K){if(J.C){var n=K-J.C;if(n<6E4){if(n>1E3){var X=J.interruptions;X.push(Math.ceil(n));X.sort(function(l,x){return x-l}); X.length>16&&X.pop()}J.cW+=n}}J.C=K}; OM=function(J,K,n,X,l,x){x=x===void 0?!1:x;J.PW.Ty(K,n/K);J.N=(0,g.a)();l||J.K.Ty(1,K-X);x||(J.C=0);J.QG>-1&&(0,g.a)()-J.QG>3E4&&VGq(J)}; Hp=function(J,K,n){K=Math.max(K,J.Z.G);J.W.Ty(1,n/K)}; Rm=function(J){J=J.L.mW()+J.MQ.mW()||0;J=isNaN(J)?.5:J;return J=Math.min(J,5)}; uq=function(J,K,n){isNaN(n)||(J.Aj+=n);isNaN(K)||(J.kF+=K)}; el=function(J){J=J.X.mW();return J>0?J:1}; zx=function(J,K,n){K=K===void 0?!1:K;n=n===void 0?1048576:n;var X=el(J);X=1/((J.W.mW()||0)*J.policy.GA+1/X);var l=J.PW.mW();l=l>0?l:1;var x=Math.max(X,l);J.policy.C>0&&l=4E3}; vLk=function(J){this.experiments=J;this.G=17;this.X=13E4;this.N=.5;this.U=this.Z=!1;this.QG=this.J("html5_use_histogram_for_bandwidth");this.C=g.Qg(this.experiments,"html5_auxiliary_estimate_weight");this.GA=g.Qg(this.experiments,"html5_stall_factor")||1;this.W=g.Qg(this.experiments,"html5_check_for_idle_network_interval_ms");this.L=this.experiments.sM("html5_trigger_loader_when_idle_network");this.K=this.experiments.sM("html5_sabr_fetch_on_idle_network_preloaded_players")}; $hq=function(J,K){J=J===void 0?{}:J;K=K===void 0?{}:K;g.t.call(this);var n=this;this.values=J;this.gL=K;this.Z={};this.X=this.G=0;this.U=new g.AT(function(){Qze(n)},1E4); g.Z(this,this.U)}; Pp=function(J,K){SAe(J,K);return J.values[K]&&J.gL[K]?J.values[K]/Math.pow(2,J.G/J.gL[K]):0}; SAe=function(J,K){J.values[K]||(K=EGr(),J.values=K.values||{},J.gL=K.halfLives||{},J.Z=K.values?Object.assign({},K.values):{})}; Qze=function(J){var K=EGr();if(K.values){K=K.values;for(var n={},X=g.z(Object.keys(J.values)),l=X.next();!l.done;l=X.next())l=l.value,K[l]&&J.Z[l]&&(J.values[l]+=K[l]-J.Z[l]),n[l]=Pp(J,l);J.Z=n}K=J.gL;n={};n.values=J.Z;n.halfLives=K;g.kF("yt-player-memory",n,2592E3)}; fR=function(J,K,n,X,l){g.t.call(this);this.webPlayerContextConfig=K;this.Zz=X;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.nA=this.Gi=this.nH=this.vO=this.userDisplayName=this.userDisplayImage=this.t8="";this.G={};this.a5={};this.controlsType="0";this.KU=NaN;this.md=!1;this.J7=(0,g.a)();this.iR=0;this.G9=this.Jv=!1;this.pQ=!0;this.preferGapless=this.pI=this.H3=this.X=this.CH=!1;this.CL=[];this.kO=!1;this.xd=0;J=J?g.Ku(J):{};K&&K.csiPageType&&(this.csiPageType=K.csiPageType);K&&K.csiServiceName&& (this.csiServiceName=K.csiServiceName);K&&K.preferGapless&&(this.preferGapless=K.preferGapless);this.experiments=new WCe(K?K.serializedExperimentIds:J.fexp,K?K.serializedExperimentFlags:J.fflags);this.forcedExperiments=K?K.serializedForcedExperimentIds:jI("",J.forced_experiments)||void 0;this.cspNonce=(K==null?0:K.cspNonce)?K.cspNonce:jI("",J.csp_nonce);this.J("web_player_deprecated_uvr_killswitch");try{var x=document.location.toString()}catch(or){x=""}this.o2=x;this.ancestorOrigins=(X=window.location.ancestorOrigins)? Array.from(X):[];this.U=XK(!1,K?K.isEmbed:J.is_embed);if(K&&K.device){if(X=K.device,X.androidOsExperience&&(this.G.caoe=""+X.androidOsExperience),X.androidPlayServicesVersion&&(this.G.capsv=""+X.androidPlayServicesVersion),X.brand&&(this.G.cbrand=X.brand),X.browser&&(this.G.cbr=X.browser),X.browserVersion&&(this.G.cbrver=X.browserVersion),X.cobaltReleaseVehicle&&(this.G.ccrv=""+X.cobaltReleaseVehicle),this.G.c=X.interfaceName||"WEB",this.G.cver=X.interfaceVersion||"html5",X.interfaceTheme&&(this.G.ctheme= X.interfaceTheme),this.G.cplayer=X.interfacePlayerType||"UNIPLAYER",X.model&&(this.G.cmodel=X.model),X.network&&(this.G.cnetwork=X.network),X.os&&(this.G.cos=X.os),X.osVersion&&(this.G.cosver=X.osVersion),X.platform&&(this.G.cplatform=X.platform),x=om(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),x==="all"||x==="once")X.chipset&&(this.a5.cchip=X.chipset),X.cobaltAppVersion&&(this.a5.ccappver=X.cobaltAppVersion),X.firmwareVersion&&(this.a5.cfrmver=X.firmwareVersion),X.deviceYear&&(this.a5.crqyear= X.deviceYear)}else this.G.c=J.c||"web",this.G.cver=J.cver||"html5",this.G.cplayer="UNIPLAYER";this.loaderUrl=K?this.U||rd3(this)&&K.loaderUrl?K.loaderUrl||"":this.o2:this.U||rd3(this)&&J.loaderUrl?jI("",J.loaderUrl):this.o2;this.U&&g.Ed("yt.embedded_player.embed_url",this.loaderUrl);this.L=bO(this.loaderUrl,szk);X=this.loaderUrl;var V=V===void 0?!1:V;this.f$=EY(bO(X,CbU),X,V,"Trusted Ad Domain URL");this.fU=XK(!1,J.privembed);this.protocol=this.o2.indexOf("http:")===0?"http":"https";this.jz=hZ3((K? K.customBaseYoutubeUrl:J.BASE_YT_URL)||"")||hZ3(this.o2)||this.protocol+"://www.youtube.com/";V=K?K.eventLabel:J.el;X="detailpage";V==="adunit"?X=this.U?"embedded":"detailpage":V==="embedded"||this.L?X=lu(X,V,OgH):V&&(X="embedded");this.MQ=X;kr3();V=null;X=K?K.playerStyle:J.ps;x=g.O0(Hg3,X);!X||x&&!this.L||(V=X);this.playerStyle=V;this.N=g.O0(Hg3,this.playerStyle);this.houseBrandUserStatus=K==null?void 0:K.houseBrandUserStatus;this.QG=this.N&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard"; this.Wa=!this.QG;this.kF=XK(!1,J.disableplaybackui);this.disablePaidContentOverlay=XK(!1,K==null?void 0:K.disablePaidContentOverlay);this.disableSeek=XK(!1,K==null?void 0:K.disableSeek);this.enableSpeedOptions=(K==null?void 0:K.enableSpeedOptions)||(pJ().defaultPlaybackRate?Im||g.J_||iq?g.EV&&im("20")||g.T2&&im("4")||g.Bp&&im("11")||b9():!(g.Bp&&!g.fa("chrome")||Im||g.fa("android")||g.fa("silk")):!1);this.Ws=XK(!1,J.enable_faster_speeds);var v;this.supportsVarispeedExtendedFeatures=(v=K==null?void 0: K.supportsVarispeedExtendedFeatures)!=null?v:!1;this.Z=XK(this.playerStyle==="blazer",J.is_html5_mobile_device||K&&K.isMobileDevice);this.fv=Ne()||K0();this.Ub=this.J("mweb_allow_background_playback")?!1:this.Z&&!this.N;this.PW=k6();this.xY=g.mY;var Q;this.QL=!!(K==null?0:(Q=K.embedsHostFlags)==null?0:Q.optOutApiDeprecation);var S;this.Fx=!!(K==null?0:(S=K.embedsHostFlags)==null?0:S.allowPfpImaIntegration);this.Eb=this.J("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var r;K?K.hideInfo!== void 0&&(r=!K.hideInfo):r=J.showinfo;this.G2=g.pR(this)&&!this.QL||XK(!LR(this)&&!Tx(this)&&!this.N,r);this.l$=K?!!K.mobileIphoneSupportsInlinePlayback:XK(!1,J.playsinline);v=this.Z&&DW&&dz!=null&&dz>0&&dz<=2.3;Q=K?K.useNativeControls:J.use_native_controls;this.W=g.pR(this)&&this.Z;S=this.Z&&!this.W;Q=g.kn(this)||!v&&XK(S,Q)?"3":"1";this.disableOrganicUi=!(K==null||!K.disableOrganicUi);S=K?K.controlsType:J.controls;this.controlsType=this.disableOrganicUi||S==="0"||S===0?"0":Q;this.DO=this.Z;this.color= lu("red",K?K.progressBarColor:J.color,Rr7);this.ze=this.controlsType==="3";this.wN=!this.U;this.Qv=(Q=!this.wN&&!Tx(this)&&!this.QG&&!this.N&&!LR(this))&&!this.ze&&this.controlsType==="1";this.f9=g.gz(this)&&Q&&this.controlsType==="0"&&!this.Qv&&!(K==null?0:K.embedsEnableEmc3ds);this.c$=this.Xt=v;this.PM=(this.controlsType==="3"||this.Z||XK(!1,J.use_media_volume))&&!this.W;this.Z$=A2&&!g.iB(601)?!1:!0;this.MI=this.U||!1;this.x4=Tx(this)?"":(this.loaderUrl||J.post_message_origin||"").substring(0,128); this.widgetReferrer=jI("",K?K.widgetReferrer:J.widget_referrer);var C;K?K.disableCastApi&&(C=!1):C=J.enablecastapi;C=!this.L||XK(!0,C);v=!0;K&&K.disableMdxCast&&(v=!1);this.Td=this.J("enable_cast_for_web_unplugged")&&g.cp(this)&&v||g.G_(this)&&v||C&&v&&this.controlsType==="1"&&!this.Z&&(Tx(this)||g.gz(this)||g.Yn(this));this.E7=!!window.document.pictureInPictureEnabled||dY();C=K?!!K.supportsAutoplayOverride:XK(!1,J.autoplayoverride);this.k7=!(this.Z&&!g.pR(this))&&!g.fa("nintendo wiiu")||C;this.RH= (K?!!K.enableMutedAutoplay:XK(!1,J.mutedautoplay))&&!1;C=(Tx(this)||LR(this))&&this.playerStyle==="blazer";this.SO=K?!!K.disableFullscreen:!XK(!0,J.fs);v=g.QT(g.Gx(this))&&g.pR(this);this.vW=!this.SO&&(C||g.HB())&&!v;this.Kn=this.J("html5_picture_in_picture_logging_onresize");var O;this.vL=(O=g.Qg(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?O:.33;this.O6=this.J("html5_picture_in_picture_blocking_onresize");this.D5=this.J("html5_picture_in_picture_blocking_ontimeupdate"); this.D1=this.J("html5_picture_in_picture_blocking_document_fullscreen");this.Ky=this.J("html5_picture_in_picture_blocking_standard_api");O=Wa()&&im(58)&&!K0();C=Fz||typeof MediaSource==="undefined";this.d3=this.J("uniplayer_block_pip")&&(O||C)||this.O6||this.D5||this.Ky;O=g.pR(this)&&!this.QL;var H;K?K.disableRelatedVideos!==void 0&&(H=!K.disableRelatedVideos):H=J.rel;this.C9=O||XK(!this.N,H);this.rL=XK(!1,K?K.enableContentOwnerRelatedVideos:J.co_rel);this.K=K0()&&dz>0&&dz<=4.4?"_top":"_blank";this.oO= g.Yn(this);this.OY=XK(this.playerStyle==="blazer",K?K.enableCsiLogging:J.enablecsi);switch(this.playerStyle){case "blogger":H="bl";break;case "gmail":H="gm";break;case "gac":H="ga";break;case "ads-preview":H="ap";break;case "books":H="gb";break;case "docs":case "flix":H="gd";break;case "duo":H="gu";break;case "google-live":H="gl";break;case "google-one":H="go";break;case "play":H="gp";break;case "chat":H="hc";break;case "hangouts-meet":H="hm";break;case "photos-edu":case "picasaweb":H="pw";break; default:H="yt"}this.GA=H;this.Aj=jI("",K?K.authorizedUserIndex:J.authuser);this.o5=g.pR(this)&&(this.fU||!zz7()||this.fv);var R;K?K.disableWatchLater!==void 0&&(R=!K.disableWatchLater):R=J.showwatchlater;this.nE=((H=!this.o5)||!!this.Aj&&H)&&XK(!this.QG,this.L?R:void 0);this.P3=K?K.isMobileDevice||!!K.disableKeyboardControls:XK(!1,J.disablekb);this.loop=XK(!1,J.loop);this.pageId=jI("",K?K.initialDelegatedSessionId:J.pageid);this.uu=XK(!0,J.canplaylive);this.Fq=XK(!1,J.livemonitor);this.disableSharing= XK(this.N,K?K.disableSharing:J.ss);(R=K&&this.J("fill_video_container_size_override_from_wpcc")?K.videoContainerOverride:J.video_container_override)?(H=R.split("x"),H.length!==2?R=null:(R=Number(H[0]),H=Number(H[1]),R=isNaN(R)||isNaN(H)||R*H<=0?null:new g.DH(R,H))):R=null;this.h9=R;this.mute=K?!!K.startMuted:XK(!1,J.mute);this.storeUserVolume=!this.mute&&XK(this.controlsType!=="0",K?K.storeUserVolume:J.store_user_volume);R=K?K.annotationsLoadPolicy:J.iv_load_policy;this.annotationsLoadPolicy=this.controlsType=== "3"?3:lu(void 0,R,UM);this.captionsLanguagePreference=K?K.captionsLanguagePreference||"":jI("",J.cc_lang_pref);R=lu(2,K?K.captionsLanguageLoadPolicy:J.cc_load_policy,UM);this.controlsType==="3"&&R===2&&(R=3);this.v1=R;this.ih=K?K.hl||"en_US":jI("en_US",J.hl);this.region=K?K.contentRegion||"US":jI("US",J.cr);this.hostLanguage=K?K.hostLanguage||"en":jI("en",J.host_language);this.Rg=!this.fU&&Math.random()=480;this.schedule=new sM(C,new fOH(this.experiments),l);g.Z(this,this.schedule);var w;this.enableSafetyMode=(w=K==null?void 0:K.initialEnableSafetyMode)!=null? w:XK(!1,J.enable_safety_mode);l=this.kF?!1:Tx(this)&&this.playerStyle!=="blazer";var P;K?K.disableAutonav!=null&&(P=!K.disableAutonav):P=J.allow_autonav;this.zL=XK(l,!this.QG&&P);this.sendVisitorIdHeader=K?!!K.sendVisitorIdHeader:XK(!1,J.send_visitor_id_header);var B;this.playerStyle==="docs"&&(K?B=K.disableNativeContextMenu:B=J.disable_native_context_menu);this.disableNativeContextMenu=XK(!1,B);this.Zt=Pb(this)&&this.J("enable_skip_intro_button");this.embedConfig=jI("",K?K.serializedEmbedConfig: J.embed_config);this.cW=vB(J,g.pR(this));this.X=this.cW==="EMBEDDED_PLAYER_MODE_PFL";this.embedsErrorLinks=!(K==null||!K.embedsErrorLinks);this.Yk=XK(!1,J.full_window);var p;this.wQ=!((p=this.webPlayerContextConfig)==null?0:p.chromeless);var k;this.livingRoomAppMode=lu("LIVING_ROOM_APP_MODE_UNSPECIFIED",J.living_room_app_mode||(K==null?void 0:(k=K.device)==null?void 0:k.livingRoomAppMode),zrq);var c;P=xF(NaN,K==null?void 0:(c=K.device)==null?void 0:c.deviceYear);isNaN(P)||(this.deviceYear=P);this.transparentBackground= K?!!K.transparentBackground:XK(!1,J.transparent_background);this.showMiniplayerButton=K?!!K.showMiniplayerButton:XK(!1,J.show_miniplayer_button);var y;g.pR(this)&&!(K==null?0:(y=K.embedsHostFlags)==null?0:y.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=K?!!K.externalFullscreen:XK(!1,J.external_fullscreen);this.showMiniplayerUiWhenMinimized=K?!!K.showMiniplayerUiWhenMinimized:XK(!1,J.use_miniplayer_ui);var A;this.pQ=(A=J.show_loop_video_toggle)!=null?A:!0;this.Yf=Math.random()< 1E-4;this.Da=J.onesie_hot_config||(K==null?0:K.onesieHotConfig)?new XWV(J.onesie_hot_config,K==null?void 0:K.onesieHotConfig):void 0;this.isTectonic=K?!!K.isTectonic:!!J.isTectonic;this.playerCanaryState=n;this.playerCanaryStage=K==null?void 0:K.canaryStage;this.Nk=new $hq;g.Z(this,this.Nk);this.datasyncId=(K==null?void 0:K.datasyncId)||g.Et("DATASYNC_ID");this.O3=g.Et("LOGGED_IN",!1);this.hd=(K==null?void 0:K.allowWoffleManagement)||!1;this.KL=Infinity;this.zd=NaN;this.livingRoomPoTokenId=K==null? void 0:K.livingRoomPoTokenId;this.J("html5_high_res_logging_always")?this.H3=!0:this.H3=Math.random()*100=0&&J0&&J.Yf&&(X.sort(),g.gG(new g.qt("Player client parameters changed after startup",X)));J.userAge=xF(J.userAge,K.user_age);J.t8=jI(J.t8,K.user_display_email);J.userDisplayImage=jI(J.userDisplayImage,K.user_display_image);g.M6(J.userDisplayImage)||(J.userDisplayImage= "");J.userDisplayName=jI(J.userDisplayName,K.user_display_name);J.vO=jI(J.vO,K.user_gender);J.csiPageType=jI(J.csiPageType,K.csi_page_type);J.csiServiceName=jI(J.csiServiceName,K.csi_service_name);J.OY=XK(J.OY,K.enablecsi);J.pageId=jI(J.pageId,K.pageid);if(n=K.enabled_engage_types)J.enabledEngageTypes=new Set(n.split(","));K.living_room_session_po_token&&(J.Pp=K.living_room_session_po_token.toString())}; Wp=function(J,K){return!J.N&&Wa()&&im(55)&&J.controlsType==="3"&&!K}; g.am=function(J){J=tS(J.jz);return J==="www.youtube-nocookie.com"?"www.youtube.com":J}; FX=function(J,K,n){return J.protocol+"://i1.ytimg.com/vi/"+K+"/"+(n||"hqdefault.jpg")}; qw=function(J){return Tx(J)&&!g.cp(J)}; g.kn=function(J){return J.J("html5_local_playsinline")?A2&&!g.iB(602)&&!("playsInline"in pJ()):A2&&!J.l$||g.fa("nintendo wiiu")?!0:!1}; g.KR=function(J){return J.G.c}; g.Ig=function(J){return/^TVHTML5/.test(g.KR(J))}; g.EM=function(J){return g.KR(J)==="TVHTML5"}; rd3=function(J){return g.KR(J)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; ere=function(J){return J.G.cmodel==="CHROMECAST ULTRA/STEAK"||J.G.cmodel==="CHROMECAST/STEAK"}; g.bq=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; Pb=function(J){return/web/i.test(g.KR(J))}; g.AS=function(J){return g.KR(J).toUpperCase()==="WEB"}; ZW=function(J){return g.KR(J)==="WEB_KIDS"}; g.cp=function(J){return g.KR(J)==="WEB_UNPLUGGED"}; Mw=function(J){return g.KR(J)==="TVHTML5_UNPLUGGED"}; g.wh=function(J){return g.cp(J)||g.KR(J)==="TV_UNPLUGGED_CAST"||Mw(J)}; g.G_=function(J){return g.KR(J)==="WEB_REMIX"}; g.Nw=function(J){return g.KR(J)==="WEB_EMBEDDED_PLAYER"}; g.KI=function(J){return(J.deviceIsAudioOnly||!g.T2||Fz||J.controlsType==="3"?!1:g.J_?J.U&&g.iB(51):!0)||(J.deviceIsAudioOnly||!g.EV||Fz||J.controlsType==="3"?!1:g.J_?J.U&&g.iB(48):g.iB(38))||(J.deviceIsAudioOnly||!g.Bp||Fz||J.controlsType==="3"?!1:g.J_?J.U&&g.iB(37):g.iB(27))||!J.deviceIsAudioOnly&&g.Ju&&!B48()&&g.iB(11)||!J.deviceIsAudioOnly&&g.ut&&g.iB("604.4")}; I7H=function(J){if(g.gz(J)&&DW)return!1;if(g.EV){if(!g.iB(47)||!g.iB(52)&&g.iB(51))return!1}else if(g.ut)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; BO3=function(J,K){return J.enabledEngageTypes.has(K.toString())||igU.includes(K)}; Tx=function(J){return J.MQ==="detailpage"}; g.gz=function(J){return J.MQ==="embedded"}; nI=function(J){return J.MQ==="leanback"}; LR=function(J){return J.MQ==="adunit"||J.playerStyle==="gvn"}; g.Yn=function(J){return J.MQ==="profilepage"}; g.pR=function(J){return J.U&&g.gz(J)&&!LR(J)&&!J.N}; ou=function(J){if(!J.userDisplayImage)return"";var K=J.userDisplayImage.split("/");if(K.length===5)return J=K[K.length-1].split("="),J[1]="s20-c",K[K.length-1]=J.join("="),K.join("/");if(K.length===8)return K.splice(7,0,"s20-c"),K.join("/");if(K.length===9)return K[7]+="-s20-c",K.join("/");g.gG(new g.qt("Profile image not a FIFE URL.",J.userDisplayImage));return J.userDisplayImage}; g.XM=function(J){var K=g.am(J);mhd.includes(K)&&(K="www.youtube.com");return J.protocol+"://"+K}; g.l7=function(J,K){K=K===void 0?"":K;if(J.Zz){var n=new Nb,X,l=J.Zz();l.signedOut?X="":l.token?X=l.token:l.pendingResult.then(function(x){l.signedOut?n.resolve(""):n.resolve(x.token)},function(x){g.gG(new g.qt("b189348328_oauth_callback_failed",{error:x})); n.resolve(K)}); return X!==void 0?dN(X):new Tr(n)}return dN(K)}; xY=function(J,K){K=K===void 0?"":K;return J.O3?Sb(!0):HG(O3(Sb(g.l7(J,K)),function(n){return Sb(!!n)}),function(){return Sb(!1)})}; tS=function(J){var K=g.U(g.PH(J));return(J=Number(g.wP(J)[4]||null)||null)?K+":"+J:K}; jL=function(J,K){K=K===void 0?!1:K;var n=fJ[J],X=pWf[n],l=L6f[J];if(!l||!X)return null;K=new Uu(K?l.height:l.width,K?l.width:l.height,l.fps);X=eH(X,K,n);return new Wf(J,X,{video:K,OM:l.bitrate/8})}; DhF=function(J){var K=pWf[fJ[J]],n=TOd[J];return n&&K?new Wf(J,K,{audio:new cf(n.audioSampleRate,n.numChannels)}):null}; Ve=function(J){this.G=J}; hu=function(J,K,n,X){if(n)return DC();n={};var l=pJ();K=g.z(K);for(var x=K.next();!x.done;x=K.next())if(x=x.value,J.canPlayType(l,x.getInfo().mimeType)||X){var V=x.G.video.quality;if(!n[V]||n[V].getInfo().dW())n[V]=x}J=[];n.auto&&J.push(n.auto);X=g.z(tl);for(l=X.next();!l.done;l=X.next())(l=n[l.value])&&J.push(l);return J.length?dN(J):DC()}; dh3=function(J){this.itag=J.itag;this.url=J.url;this.codecs=J.codecs;this.width=J.width;this.height=J.height;this.fps=J.fps;this.bitrate=J.bitrate;var K;this.Z=((K=J.audioItag)==null?void 0:K.split(","))||[];this.jI=J.jI;this.rE=J.rE||"";this.Hw=J.Hw;this.audioChannels=J.audioChannels;this.G=""}; kNV=function(J,K,n,X){K=K===void 0?!1:K;n=n===void 0?!0:n;X=X===void 0?{}:X;var l={};J=g.z(J);for(var x=J.next();!x.done;x=J.next()){x=x.value;if(K&&MediaSource&&MediaSource.isTypeSupported){var V=x.type;x.audio_channels&&(V=V+"; channels="+x.audio_channels);if(!MediaSource.isTypeSupported(V)){X[x.itag]="tpus";continue}}if(n||!x.drm_families||x.eotf!=="smpte2084"&&x.eotf!=="arib-std-b67"){V=void 0;var v={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},Q=x.type.match(/codecs="([^"]*)"/); Q=Q?Q[1]:"";x.audio_track_id&&(V=new g.sV(x.name,x.audio_track_id,!!x.is_default));var S=x.eotf;x=new dh3({itag:x.itag,url:x.url,codecs:Q,width:Number(x.width),height:Number(x.height),fps:Number(x.fps),bitrate:Number(x.bitrate),audioItag:x.audio_itag,jI:S?v[S]:void 0,rE:x.drm_families,Hw:V,audioChannels:Number(x.audio_channels)});l[x.itag]=l[x.itag]||[];l[x.itag].push(x)}else X[x.itag]="enchdr"}return l}; gL3=function(J,K,n,X,l){this.X=J;this.Z=K;this.C=n;this.cpn=X;this.N=l;this.U=0;this.G=""}; cdF=function(J,K){J.X.some(function(n){var X;return((X=n.Hw)==null?void 0:X.getId())===K}); J.G=K}; vF=function(J,K,n){J.cpn&&(K=g.Td(K,{cpn:J.cpn}));n&&(K=g.Td(K,{paired:n}));return K}; YAe=function(J,K){J=J.itag.toString();K!==null&&(J+=K.itag.toString());return J}; GNq=function(J){for(var K=[],n=[],X=g.z(J.Z),l=X.next();!l.done;l=X.next())l=l.value,l.bitrate<=J.U?K.push(l):n.push(l);K.sort(function(x,V){return V.bitrate-x.bitrate}); n.sort(function(x,V){return x.bitrate-V.bitrate}); J.Z=K.concat(n)}; Qe=function(J,K,n){this.G=J;this.Z=K;this.expiration=n;this.Ax=null}; UhV=function(J,K){if(!(Fz||Ej()||F6()))return null;J=kNV(K,J.J("html5_filter_fmp4_in_hls"));if(!J)return null;K=[];for(var n={},X=g.z(Object.keys(J)),l=X.next();!l.done;l=X.next()){l=g.z(J[l.value]);for(var x=l.next();!x.done;x=l.next()){var V=x.value;V.Hw&&(x=V.Hw.getId(),n[x]||(V=new g.VL(x,V.Hw),n[x]=V,K.push(V)))}}return K.length>0?K:null}; W6U=function(J,K,n,X,l,x,V){if(!(Fz||Ej()||F6()))return DC();var v={},Q=tGU(n),S=kNV(n,J.J("html5_filter_fmp4_in_hls"),J.C.W,v);if(!S)return V({noplst:1}),DC();ydM(S);n={};var r=(n.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",n),C;n=[];var O=[],H=[],R=null,w="";X=X&&X.match(/hls_timedtext_playlist/)?new dh3({itag:"0",url:X,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,Hw:new g.sV("English","en",!1)}):null;for(var P=g.z(Object.keys(S)),B=P.next();!B.done;B=P.next())if(B=B.value,!J.J("html5_disable_drm_hfr_1080")|| B!=="383"&&B!=="373"){B=g.z(S[B]);for(var p=B.next();!p.done;p=B.next())if(p=p.value,p.width){for(var k=g.z(p.Z),c=k.next();!c.done;c=k.next())if(c=c.value,S[c]){p.G=c;break}p.G||(p.G=Zgf(S,p));if(k=S[p.G])if(n.push(p),p.rE==="fairplay"&&(C=r),c="",p.jI==="PQ"?c="smpte2084":p.jI==="HLG"&&(c="arib-std-b67"),c&&(w=c),H.push(f7F(k,[p],X,x,p.itag,p.width,p.height,p.fps,Q,void 0,void 0,C,c)),!R||p.width*p.height*p.fps>R.width*R.height*R.fps)R=p}else O.push(p)}else v[B]="disdrmhfr";H.reduce(function(y, A){return A.getInfo().isEncrypted()&&y},!0)&&(C=r); l=Math.max(l,0);r=R||{};S=r.fps===void 0?0:r.fps;R=r.width===void 0?0:r.width;r=r.height===void 0?0:r.height;P=J.J("html5_native_audio_track_switching");H.push(f7F(O,n,X,x,"93",R,r,S,Q,"auto",l,C,w,P));Object.entries(v).length&&V(v);return hu(J.C,H,Wp(J,K),!1)}; f7F=function(J,K,n,X,l,x,V,v,Q,S,r,C,O,H){for(var R=0,w="",P=g.z(J),B=P.next();!B.done;B=P.next())B=B.value,w||(w=B.itag),B.audioChannels&&B.audioChannels>R&&(R=B.audioChannels,w=B.itag);l=new Wf(l,"application/x-mpegURL",{audio:new cf(0,R),video:new Uu(x,V,v,null,void 0,S,void 0,O),rE:C,gh:w});J=new gL3(J,K,n?[n]:[],X,!!H);J.U=r?r:1369843;return new Qe(l,J,Q)}; tGU=function(J){J=g.z(J);for(var K=J.next();!K.done;K=J.next())if(K=K.value,K.url&&(K=K.url.split("expire/"),!(K.length<=1)))return+K[1].split("/")[0];return NaN}; Zgf=function(J,K){for(var n=g.z(Object.keys(J)),X=n.next();!X.done;X=n.next()){X=X.value;var l=J[X][0];if(!l.width&&l.rE===K.rE&&!l.audioChannels)return X}return""}; ydM=function(J){for(var K=new Set,n=g.z(Object.values(J)),X=n.next();!X.done;X=n.next())X=X.value,X.length&&(X=X[0],X.height&&X.codecs.startsWith("vp09")&&K.add(X.height));n=[];if(K.size){X=g.z(Object.keys(J));for(var l=X.next();!l.done;l=X.next())if(l=l.value,J[l].length){var x=J[l][0];x.height&&K.has(x.height)&&!x.codecs.startsWith("vp09")&&n.push(l)}}K=g.z(n);for(n=K.next();!n.done;n=K.next())delete J[n.value]}; $Y=function(J,K){this.G=J;this.Z=K}; a7U=function(J,K,n,X){var l=[];n=g.z(n);for(var x=n.next();!x.done;x=n.next()){var V=x.value;if(V.url){x=new g.mZ(V.url,!0);if(V.s){var v=x,Q=V.sp,S=Wh3(decodeURIComponent(V.s));v[h[45]](Q,encodeURIComponent(S))}v=g.z(Object.keys(X));for(Q=v.next();!Q.done;Q=v.next())Q=Q.value,x.set(Q,X[Q]);V=XJ(V.type,V.quality,V.itag,V.width,V.height);l.push(new $Y(V,x))}}return hu(J.C,l,Wp(J,K),!1)}; SL=function(J,K){this.G=J;this.Z=K}; F6q=function(J,K,n){var X=[];n=g.z(n);for(var l=n.next();!l.done;l=n.next())if((l=l.value)&&l.url){var x=XJ(l.type,"medium","0");X.push(new SL(x,l.url))}return hu(J.C,X,Wp(J,K),!1)}; qAU=function(J,K){var n=[],X=XJ(K.type,"auto",K.itag);n.push(new SL(X,K.url));return hu(J.C,n,!1,!0)}; bgp=function(J){return J&&ELq[J]?ELq[J]:null}; Ad8=function(J){switch(J){case "multiview.ustreamer_disabled":case "sabr.live_no_max_sq":case "sabr.media_serving_enforcement_id_error":case "sabr.metadata_fetcher_error":case "sabr.no_audio_selected":case "sabr.no_available_formats":case "sabr.no_redirect_url":case "sabr.no_video_selected":case "sabr.too_many_chunk_reader_error_retries":return J;default:return"sabr.config"}}; MGk=function(J){if(J=J.commonConfig)this.url=J.url,this.urlQueryOverride=J.urlQueryOverride,J.ustreamerConfig&&(this.N1=VX(J.ustreamerConfig)||void 0)}; NOH=function(J,K){var n;if(K=K==null?void 0:(n=K.watchEndpointSupportedOnesieConfig)==null?void 0:n.html5PlaybackOnesieConfig)J.m_=new MGk(K)}; g.r6=function(J){J=J===void 0?{}:J;this.languageCode=J.languageCode||"";this.languageName=J.languageName||null;this.kind=J.kind||"";this.name=J.name===void 0?null:J.name;this.displayName=J.displayName||null;this.id=J.id||null;this.G=J.is_servable||!1;this.isTranslateable=J.is_translateable||!1;this.url=J.url||null;this.vssId=J.vss_id||"";this.isDefault=J.is_default||!1;this.translationLanguage=J.translationLanguage||null;this.xtags=J.xtags||"";this.captionId=J.captionId||""}; g.CI=function(J){var K={languageCode:J.languageCode,languageName:J.languageName,displayName:g.sy(J),kind:J.kind,name:J.name,id:J.id,is_servable:J.G,is_default:J.isDefault,is_translateable:J.isTranslateable,vss_id:J.vssId};J.xtags&&(K.xtags=J.xtags);J.captionId&&(K.captionId=J.captionId);J.translationLanguage&&(K.translationLanguage=J.translationLanguage);return K}; g.Oy=function(J){return J.translationLanguage?J.translationLanguage.languageCode:J.languageCode}; g.JmF=function(J){var K=J.vssId;J.translationLanguage&&K&&(K="t"+K+"."+g.Oy(J));return K}; g.sy=function(J){var K=[];if(J.displayName)K.push(J.displayName);else{var n=J.languageName||"";K.push(n);J.kind==="asr"&&n.indexOf("(")===-1&&K.push(" (Automatic Captions)");J.name&&K.push(" - "+J.name)}J.translationLanguage&&K.push(" >> "+J.translationLanguage.languageName);return K.join("")}; X$H=function(J,K,n,X){J||(J=K&&Kff.hasOwnProperty(K)&&nh8.hasOwnProperty(K)?nh8[K]+"_"+Kff[K]:void 0);K=J;if(!K)return null;J=K.match(ohM);if(!J||J.length!==5)return null;if(J=K.match(ohM)){var l=Number(J[3]),x=[7,8,10,5,6];J=!(Number(J[1])===1&&l===8)&&x.indexOf(l)>=0}else J=!1;return n||X||J?K:null}; HF=function(J,K){for(var n={},X=g.z(Object.keys(li3)),l=X.next();!l.done;l=X.next()){l=l.value;var x=K?K+l:l;x=J[x+"_webp"]||J[x];g.M6(x)&&(n[li3[l]]=x)}return n}; Ru=function(J){var K={};if(!J||!J.thumbnails)return K;J=J.thumbnails.filter(function(v){return!!v.url}); J.sort(function(v,Q){return v.width-Q.width||v.height-Q.height}); for(var n=g.z(Object.keys(xWp)),X=n.next();!X.done;X=n.next()){var l=Number(X.value);X=xWp[l];for(var x=g.z(J),V=x.next();!V.done;V=x.next())if(V=V.value,V.width>=l){l=jp7(V.url);g.M6(l)&&(K[X]=l);break}}(J=J.pop())&&J.width>=1280&&(J=jp7(J.url),g.M6(J)&&(K["maxresdefault.jpg"]=J));return K}; jp7=function(J){return J.startsWith("//")?"https:"+J:J}; u7=function(J){return J&&J.baseUrl||""}; eL=function(J){J=g.l9(J);for(var K=g.z(Object.keys(J)),n=K.next();!n.done;n=K.next()){n=n.value;var X=J[n];J[n]=Array.isArray(X)?X[0]:X}return J}; V63=function(J,K){J.botguardData=K.playerAttestationRenderer.botguardData;K=K.playerAttestationRenderer.challenge;K!=null&&(J.B$=K)}; Qp8=function(J,K){K=g.z(K);for(var n=K.next();!n.done;n=K.next()){n=n.value;var X=n.interstitials.map(function(V){var v=g.f(V,hoM);if(v)return{is_yto_interstitial:!0,raw_player_response:v};if(V=g.f(V,vhM))return Object.assign({is_yto_interstitial:!0},oe(V))}); X=g.z(X);for(var l=X.next();!l.done;l=X.next())switch(l=l.value,n.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":J.interstitials=J.interstitials.concat({time:0,playerVars:l,Ps:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":J.interstitials=J.interstitials.concat({time:0x7ffffffffffff,playerVars:l,Ps:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var x=Number(n.podConfig.timeToInsertAtMillis);J.interstitials=J.interstitials.concat({time:x,playerVars:l, Ps:x===0?5:7})}}}; $We=function(J,K){if(K=K.find(function(n){return!(!n||!n.tooltipRenderer)}))J.tooltipRenderer=K.tooltipRenderer}; S$q=function(J,K){K.subscribeCommand&&(J.subscribeCommand=K.subscribeCommand);K.unsubscribeCommand&&(J.unsubscribeCommand=K.unsubscribeCommand);K.addToWatchLaterCommand&&(J.addToWatchLaterCommand=K.addToWatchLaterCommand);K.removeFromWatchLaterCommand&&(J.removeFromWatchLaterCommand=K.removeFromWatchLaterCommand);K.getSharePanelCommand&&(J.getSharePanelCommand=K.getSharePanelCommand)}; rmf=function(J,K){K!=null?(J.S$=K,J.t7=!0):(J.S$="",J.t7=!1)}; zl=function(J,K){this.type=J||"";this.id=K||""}; g.w6=function(J){return new zl(J.substring(0,2),J.substring(2))}; g.PF=function(J,K){this.ix=J;this.author="";this.kS=null;this.playlistLength=0;this.G=this.sessionData=null;this.L={};this.title="";if(K){this.author=K.author||K.playlist_author||"";this.title=K.playlist_title||"";if(J=K.session_data)this.sessionData=Ka(J,"&");var n;this.G=((n=K.thumbnail_ids)==null?void 0:n.split(",")[0])||null;this.L=HF(K,"playlist_");this.videoId=K.video_id||void 0;if(n=K.list)switch(K.listType){case "user_uploads":this.playlistId=(new zl("UU","PLAYER_"+n)).toString();break;default:if(J= K.playlist_length)this.playlistLength=Number(J)||0;this.playlistId=g.w6(n).toString();if(K=K.video)this.videoId=(K[0]||null).video_id||void 0}else K.playlist&&(this.playlistLength=K.playlist.toString().split(",").length)}}; g.Iu=function(J,K){this.ix=J;this.u3=this.author="";this.kS=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.cX=this.lengthText="";this.sessionData=null;this.L={};this.title="";if(K){this.ariaLabel=K.aria_label||void 0;this.author=K.author||"";this.u3=K.u3||"";if(J=K.endscreen_autoplay_session_data)this.kS=Ka(J,"&");this.JK=K.JK;this.isLivePlayback=K.live_playback==="1";this.isUpcoming=!!K.isUpcoming;if(J=K.length_seconds)this.lengthSeconds=typeof J==="string"?Number(J):J;this.lengthText= K.lengthText||"";this.cX=K.cX||"";this.publishedTimeText=K.publishedTimeText||void 0;if(J=K.session_data)this.sessionData=Ka(J,"&");this.shortViewCount=K.short_view_count_text||void 0;this.L=HF(K);this.title=K.title||"";this.videoId=K.docid||K.video_id||K.videoId||K.id||void 0;this.watchUrl=K.watchUrl||void 0}}; sp8=function(J){var K,n,X=(K=J.getWatchNextResponse())==null?void 0:(n=K.contents)==null?void 0:n.twoColumnWatchNextResults,l,x,V,v,Q;J=(l=J.getWatchNextResponse())==null?void 0:(x=l.playerOverlays)==null?void 0:(V=x.playerOverlayRenderer)==null?void 0:(v=V.endScreen)==null?void 0:(Q=v.watchNextEndScreenRenderer)==null?void 0:Q.results;if(!J){var S,r;J=X==null?void 0:(S=X.endScreen)==null?void 0:(r=S.endScreen)==null?void 0:r.results}return J}; g.BF=function(J){var K,n,X;J=g.f((K=J.getWatchNextResponse())==null?void 0:(n=K.playerOverlays)==null?void 0:(X=n.playerOverlayRenderer)==null?void 0:X.decoratedPlayerBarRenderer,i7);return g.f(J==null?void 0:J.playerBar,CR7)}; Oy3=function(J){this.G=J.playback_progress_0s_url;this.X=J.playback_progress_2s_url;this.Z=J.playback_progress_10s_url}; Hy8=function(){if(mp===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(K){}a:{try{var J=!!self.localStorage}catch(K){J=!1}if(J&&(J=g.Yt(g.E1()+"::yt-player"))){mp=new tC(J);break a}mp=void 0}}return mp}; g.pI=function(){var J=Hy8();if(!J)return{};try{var K=J.get("yt-player-lv");return JSON.parse(K||"{}")}catch(n){return{}}}; g.Rok=function(J){var K=Hy8();K&&(J=JSON.stringify(J),K.set("yt-player-lv",J))}; g.LI=function(J){return g.pI()[J]||0}; g.Tl=function(J,K){var n=g.pI();K!==n[J]&&(K!==0?n[J]=K:delete n[J],g.Rok(n))}; g.Dm=function(J){return g.G(function(K){return K.return(g.f6(uZM(),J))})}; kY=function(J,K,n,X,l,x,V,v){var Q,S,r,C,O,H;return g.G(function(R){switch(R.Z){case 1:return Q=g.LI(J),Q===4?R.return(4):g.d(R,g.MH(),2);case 2:S=R.G;if(!S)throw g.zp("wiac");if(!v||V===void 0){R.EM(3);break}return g.d(R,eoe(v,V),4);case 4:V=R.G;case 3:return r=n.lastModified||"0",g.d(R,g.Dm(S),5);case 5:return C=R.G,g.e8(R,6),d6++,g.d(R,g.Tp(C,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",bR:!0},function(w){if(x!==void 0&&V!==void 0){var P=""+J+"|"+K.id+"|"+r+"|"+String(x).padStart(10, "0");P=g.DA(w.objectStore("media"),V,P)}else P=g.PJ.resolve(void 0);var B=zo8(J,K.VB()),p=zo8(J,!K.VB()),k={fmts:w$M(X),format:n||{}};B=g.DA(w.objectStore("index"),k,B);var c=X.downloadedEndTime===-1;k=c?w.objectStore("index").get(p):g.PJ.resolve(void 0);var y={fmts:"music",format:{}};w=c&&l&&!K.VB()?g.DA(w.objectStore("index"),y,p):g.PJ.resolve(void 0);return g.PJ.all([w,k,P,B]).then(function(A){A=g.z(A);A.next();A=A.next().value;d6--;var q=g.LI(J);if(q!==4&&c&&l||A!==void 0&&g.PRM(A.fmts))q=1,g.Tl(J, q);return q})}),8); case 8:return R.return(R.G);case 6:O=g.mk(R);d6--;H=g.LI(J);if(H===4)return R.return(H);g.Tl(J,4);throw O;}})}; g.IiM=function(J){var K,n;return g.G(function(X){if(X.Z==1)return g.d(X,g.MH(),2);if(X.Z!=3){K=X.G;if(!K)throw g.zp("ri");return g.d(X,g.Dm(K),3)}n=X.G;return X.return(g.Tp(n,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(l){var x=IDBKeyRange.bound(J+"|",J+"~");return l.objectStore("index").getAll(x).then(function(V){return V.map(function(v){return v?v.format:{}})})}))})}; BpU=function(J,K,n,X,l){var x,V,v;return g.G(function(Q){if(Q.Z==1)return g.d(Q,g.MH(),2);if(Q.Z!=3){x=Q.G;if(!x)throw g.zp("rc");return g.d(Q,g.Dm(x),3)}V=Q.G;v=g.Tp(V,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(S){var r=""+J+"|"+K+"|"+n+"|"+String(X).padStart(10,"0");return S.objectStore("media").get(r)}); return l?Q.return(v.then(function(S){if(S===void 0)throw Error("No data from indexDb");return iyp(l,S)}).catch(function(S){throw new g.qt("Error while reading chunk: "+S.name+", "+S.message); })):Q.return(v)})}; g.PRM=function(J){return J?J==="music"?!0:J.includes("dlt=-1")||!J.includes("dlt="):!1}; zo8=function(J,K){return""+J+"|"+(K?"v":"a")}; w$M=function(J){var K={};return na((K.dlt=J.downloadedEndTime.toString(),K.mket=J.maxKnownEndTime.toString(),K.avbr=J.averageByteRate.toString(),K))}; p$8=function(J){var K={},n={};J=g.z(J);for(var X=J.next();!X.done;X=J.next()){var l=X.value,x=l.split("|");l.match(g.mWV)?(X=Number(x.pop()),isNaN(X)?n[l]="?":(x=x.join("|"),(l=K[x])?(x=l[l.length-1],X===x.end+1?x.end=X:l.push({start:X,end:X})):K[x]=[{start:X,end:X}])):n[l]="?"}J=g.z(Object.keys(K));for(X=J.next();!X.done;X=J.next())X=X.value,n[X]=K[X].map(function(V){return V.start+"-"+V.end}).join(","); return n}; g6=function(J){g.hi.call(this);this.G=null;this.X=new tv;this.G=null;this.N=new Set;this.crossOrigin=J||""}; LfF=function(J,K,n){for(n=cF(J,n);n>=0;){var X=J.levels[n];if(X.isLoaded(YY(X,K))&&(X=g.Gl(X,K)))return X;n--}return g.Gl(J.levels[0],K)}; DWM=function(J,K,n){n=cF(J,n);for(var X,l;n>=0;n--)if(X=J.levels[n],l=YY(X,K),!X.isLoaded(l)){X=J;var x=n,V=x+"-"+l;X.N.has(V)||(X.N.add(V),X.X.enqueue(x,{mD:x,CB:l}))}TpM(J)}; TpM=function(J){if(!J.G&&!J.X.isEmpty()){var K=g.U(J.X.remove());J.G=dWf(J,K)}}; dWf=function(J,K){var n=document.createElement("img");J.crossOrigin&&(n.crossOrigin=J.crossOrigin);n.src=J.levels[K.mD].M_(K.CB);n.onload=function(){var X=K.mD,l=K.CB;J.G!==null&&(J.G.onload=null,J.G=null);X=J.levels[X];X.loaded.add(l);TpM(J);var x=X.columns*X.rows;l*=x;X=Math.min(l+x-1,X.E5()-1);l=[l,X];J.publish("l",l[0],l[1])}; return n}; g.Uy=function(J,K,n,X){this.level=J;this.U=K;this.loaded=new Set;this.level=J;this.U=K;J=n.split("#");this.width=Math.floor(Number(J[0]));this.height=Math.floor(Number(J[1]));this.frameCount=Math.floor(Number(J[2]));this.columns=Math.floor(Number(J[3]));this.rows=Math.floor(Number(J[4]));this.G=Math.floor(Number(J[5]));this.X=J[6];this.signature=J[7];this.videoLength=X}; YY=function(J,K){return Math.floor(K/(J.columns*J.rows))}; g.Gl=function(J,K){K>=J.LN()&&J.Sg();var n=YY(J,K),X=J.columns*J.rows,l=K%X;K=l%J.columns;l=Math.floor(l/J.columns);var x=J.Sg()+1-X*n;if(x1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; kt8=function(J,K,n){return(J=J.levels[K])?J.Vm(n):-1}; cF=function(J,K){var n=J.U.get(K);if(n)return n;n=J.levels.length;for(var X=0;X=K)return J.U.set(K,X),X;J.U.set(K,n-1);return n-1}; ye=function(J,K,n,X){n=n.split("#");n=[n[1],n[2],0,n[3],n[4],-1,n[0],""].join("#");g.Uy.call(this,J,K,n,0);this.Z=null;this.C=X?2:0}; Zm=function(J,K,n,X){tu.call(this,J,0,void 0,K,!(X===void 0||!X));for(J=0;J(n!=null?n:50)&&(n=fiF.shift())&&Ey.delete(n),n=l),l!==n&&J.JJ("ssei","dcpn_"+l+"_"+n+"_"+J.clientPlaybackNonce),n)}; FM=function(J,K){var n=K.raw_watch_next_response;if(!n){var X=K.watch_next_response;X&&(n=JSON.parse(X))}if(n){J.MQ=n;var l=J.MQ.playerCueRangeSet;l&&g.b7(J,l);var x=J.MQ.playerOverlays;if(x){var V=x.playerOverlayRenderer;if(V){var v=V.autonavToggle;v&&(J.autoplaySwitchButtonRenderer=g.f(v,Wfk),J.J("web_player_autonav_use_server_provided_state")&&Au(J)&&(J.autonavState=J.autoplaySwitchButtonRenderer.enabled?2:1));var Q=V.videoDetails;if(Q){var S=Q.embeddedPlayerOverlayVideoDetailsRenderer;var r=Q.playerOverlayVideoDetailsRenderer; r&&(r.title&&(K.title=g.Oe(r.title)),r.subtitle&&(K.subtitle=g.Oe(r.subtitle)))}g.gz(J.ix)&&(J.nE=!!V.addToMenu);aif(J,V.shareButton);V.startPosition&&V.endPosition&&(J.progressBarStartPosition=V.startPosition,J.progressBarEndPosition=V.endPosition);var C=V.gatedActionsOverlayRenderer;C&&(J.Vy=g.f(C,Ffr));var O,H,R,w=g.f((O=J.getWatchNextResponse())==null?void 0:(H=O.playerOverlays)==null?void 0:(R=H.playerOverlayRenderer)==null?void 0:R.infoPanel,q$H);if(w){J.Ns=Number(w==null?void 0:w.durationMs)|| NaN;if(w==null?0:w.infoPanelOverviewViewModel)J.nH=w==null?void 0:w.infoPanelOverviewViewModel;if(w==null?0:w.infoPanelDetailsViewModel)J.zd=w==null?void 0:w.infoPanelDetailsViewModel}J.showSeekingControls=!!V.showSeekingControls}}var P,B,p=(P=J.getWatchNextResponse())==null?void 0:(B=P.contents)==null?void 0:B.twoColumnWatchNextResults;if(p){var k=p.desktopOverlay&&g.f(p.desktopOverlay,Ehf);k&&(k.suppressShareButton&&(J.showShareButton=!1),k.suppressWatchLaterButton&&(J.nE=!1))}S&&by3(J,K,S);var c= xF(0,K.autoplay_count),y=g.U(J.getWatchNextResponse()),A,q=(A=y.contents)==null?void 0:A.twoColumnWatchNextResults,or,lF,J7,h7=(or=y.playerOverlays)==null?void 0:(lF=or.playerOverlayRenderer)==null?void 0:(J7=lF.autoplay)==null?void 0:J7.playerOverlayAutoplayRenderer,M=sp8(J),zM,B3=(zM=y.contents)==null?void 0:zM.singleColumnWatchNextResults;if(B3){var fU;if(((fU=B3.autoplay)==null?0:fU.autoplay)&&!B3.playlist){var IH=B3.autoplay.autoplay.sets,hj={},pU=new g.Iu(J.S()),iF=null,lG;if(IH){for(var I= g.z(IH),VV=I.next();!VV.done;VV=I.next()){var FS=VV.value.autoplayVideoRenderer;if(FS&&FS.compactVideoRenderer){iF=FS.compactVideoRenderer;break}}if(lG=IH[0].autoplayVideo){var zR=lG.clickTrackingParams;zR&&(hj.itct=zR);hj.autonav="1";hj.playnext=String(c)}}else hj.feature="related-auto";var pn=g.f(lG,g.MJ);if(iF){pU.videoId=iF.videoId;var Cn=iF.shortBylineText;Cn&&(pU.author=g.Oe(Cn));var GM=iF.title;GM&&(pU.title=g.Oe(GM))}else pn!=null&&pn.videoId&&(pU.videoId=pn.videoId);pU.kS=hj;J.suggestions= [];J.rL=pU}}if(M){for(var gu=[],Ln=g.z(M),L=Ln.next();!L.done;L=Ln.next()){var T=L.value,D=void 0,Y=null;if(T.endScreenVideoRenderer){var W=T.endScreenVideoRenderer,P3=W.title;Y=new g.Iu(J.S());Y.videoId=W.videoId;Y.lengthSeconds=W.lengthInSeconds||0;var nU=W.publishedTimeText;nU&&(Y.publishedTimeText=g.Oe(nU));var H3=W.shortBylineText;H3&&(Y.author=g.Oe(H3));var Xq=W.shortViewCountText;Xq&&(Y.shortViewCount=g.Oe(Xq));if(P3){Y.title=g.Oe(P3);var TM=P3.accessibility;if(TM){var A7=TM.accessibilityData; A7&&A7.label&&(Y.ariaLabel=A7.label)}}var wu=W.navigationEndpoint;if(wu){D=wu.clickTrackingParams;var wI=g.f(wu,g.MJ),dI=g.f(wu,g.Go);wI?Y.JK=wI:dI!=null&&(Y.watchUrl=dI.url)}var ac=W.thumbnailOverlays;if(ac)for(var FF=g.z(ac),FB=FF.next();!FB.done;FB=FF.next()){var er=FB.value.thumbnailOverlayTimeStatusRenderer;if(er)if(er.style==="LIVE"){Y.isLivePlayback=!0;break}else if(er.style==="UPCOMING"){Y.isUpcoming=!0;break}}Y.L=Ru(W.thumbnail)}else if(T.endScreenPlaylistRenderer){var QI=T.endScreenPlaylistRenderer, Lk=QI.navigationEndpoint;if(!Lk)continue;var OQ=g.f(Lk,g.MJ);if(!OQ)continue;var TW=OQ.videoId;Y=new g.PF(J.S());Y.playlistId=QI.playlistId;Y.playlistLength=Number(QI.videoCount)||0;Y.G=TW||null;Y.videoId=TW;var WR=QI.title;WR&&(Y.title=g.Oe(WR));var a$=QI.shortBylineText;a$&&(Y.author=g.Oe(a$));D=Lk.clickTrackingParams;Y.L=Ru(QI.thumbnail)}Y&&(D&&(Y.sessionData={itct:D}),gu.push(Y))}J.suggestions=gu}if(h7){J.Ec=!!h7.preferImmediateRedirect;J.C9=J.C9||!!h7.webShowNewAutonavCountdown;J.G0=J.G0||!!h7.webShowBigThumbnailEndscreen; if(J.C9||J.G0){var I3=q||null,lB=new g.Iu(J.S());lB.videoId=h7.videoId;var q9=h7.videoTitle;if(q9){lB.title=g.Oe(q9);var x2=q9.accessibility;if(x2){var I0=x2.accessibilityData;I0&&I0.label&&(lB.ariaLabel=I0.label)}}var WU=h7.byline;WU&&(lB.author=g.Oe(WU));var Cu=h7.publishedTimeText;Cu&&(lB.publishedTimeText=g.Oe(Cu));var H5=h7.shortViewCountText;H5&&(lB.shortViewCount=g.Oe(H5));var Rx=h7.thumbnailOverlays;if(Rx)for(var uQ=g.z(Rx),no=uQ.next();!no.done;no=uQ.next()){var vV=no.value.thumbnailOverlayTimeStatusRenderer; if(vV)if(vV.style==="LIVE"){lB.isLivePlayback=!0;break}else if(vV.style==="UPCOMING"){lB.isUpcoming=!0;break}else if(vV.style==="DEFAULT"&&vV.text){lB.lengthText=g.Oe(vV.text);var ey=vV.text.accessibility;if(ey){var oM=ey.accessibilityData;oM&&oM.label&&(lB.cX=oM.label||"")}break}}lB.L=Ru(h7.background);var zm=h7.nextButton;if(zm){var wc=zm.buttonRenderer;if(wc){var P5=wc.navigationEndpoint;if(P5){var Ix=g.f(P5,g.MJ);Ix&&(lB.JK=Ix)}}}if(h7.topBadges){var iQ=h7.topBadges[0];if(iQ){var B5=g.f(iQ,AmU); B5&&B5.style==="BADGE_STYLE_TYPE_PREMIUM"&&(lB.QOx=!0)}}var Jn=h7.alternativeTitle;Jn&&(lB.u3=g.Oe(Jn));var i1={autonav:"1",playnext:String(c)};lB.playlistId&&(i1.autoplay="1");if(I3){var KC,Zn,Xw,mj,lD=(KC=I3.autoplay)==null?void 0:(Zn=KC.autoplay)==null?void 0:(Xw=Zn.sets)==null?void 0:(mj=Xw[0])==null?void 0:mj.autoplayVideo;if(lD){var pP=lD.clickTrackingParams;pP&&(i1.itct=pP);var xm=g.f(lD,g.MJ);xm&&(lB.gs=xm)}}else if(h7){var LP,Tm,DQ,dc=(LP=h7.nextButton)==null?void 0:(Tm=LP.buttonRenderer)== null?void 0:(DQ=Tm.navigationEndpoint)==null?void 0:DQ.clickTrackingParams;dc&&(i1.itct=dc)}i1.itct||(i1.feature="related-auto");lB.kS=i1;J.suggestions||(J.suggestions=[]);J.rL=lB}h7.countDownSecs!=null&&(J.FW=h7.countDownSecs*1E3);h7.countDownSecsForFullscreen!=null&&(J.tp=h7.countDownSecsForFullscreen>=0?h7.countDownSecsForFullscreen*1E3:-1);J.J("web_autonav_color_transition")&&h7.watchToWatchTransitionRenderer&&(J.watchToWatchTransitionRenderer=g.f(h7.watchToWatchTransitionRenderer,M68))}var jQ= sp8(J);if(jQ){var CM,kc,V_,hB=jQ==null?void 0:(CM=jQ[0])==null?void 0:(kc=CM.endScreenVideoRenderer)==null?void 0:(V_=kc.navigationEndpoint)==null?void 0:V_.clickTrackingParams,gc=g.NJ(J);hB&&gc&&(gc.sessionData={itct:hB})}J.MQ.currentVideoThumbnail&&(J.L=Ru(J.MQ.currentVideoThumbnail));var nC,c5,Yc,ot,Gm,OS=(nC=J.MQ)==null?void 0:(c5=nC.contents)==null?void 0:(Yc=c5.twoColumnWatchNextResults)==null?void 0:(ot=Yc.results)==null?void 0:(Gm=ot.results)==null?void 0:Gm.contents;if(OS&&OS[1]){var U_, tF,BP,Y_,Ff=(U_=OS[1].videoSecondaryInfoRenderer)==null?void 0:(tF=U_.owner)==null?void 0:(BP=tF.videoOwnerRenderer)==null?void 0:(Y_=BP.thumbnail)==null?void 0:Y_.thumbnails;Ff&&Ff.length&&(J.profilePicture=Ff[Ff.length-1].url)}var yd=h_(K),vs,HN=(vs=J.getWatchNextResponse())==null?void 0:vs.onResponseReceivedEndpoints;if(HN)for(var RW=g.z(HN),Q_=RW.next();!Q_.done;Q_=RW.next()){var qd=Q_.value;g.f(qd,Jk)&&(J.Xy=g.f(qd,Jk));var uP=g.f(qd,NpV),ZQ=void 0;if((ZQ=uP)==null?0:ZQ.entityKeys)J.yD=uP.entityKeys|| [],uP.visibleOnLoadKeys&&(J.visibleOnLoadKeys=uP.visibleOnLoadKeys)}if(J.J("web_key_moments_markers")){var xw=g.KS.getState().entities,$0=g.A3("visibility_override","markersVisibilityOverrideEntity");var a2=hN(xw,"markersVisibilityOverrideEntity",$0);J.wQ=(a2==null?void 0:a2.videoId)===(J.videoId||yd)&&(a2==null?0:a2.visibilityOverrideMarkersKey)?a2.visibilityOverrideMarkersKey:J.visibleOnLoadKeys;J.visibleOnLoadKeys=[].concat(g.m(J.wQ))}}}; Au=function(J){var K;return((K=J.autoplaySwitchButtonRenderer)==null?void 0:K.enabled)!==void 0}; nS=function(J){return!!(J.X&&J.X.videoInfos&&J.X.videoInfos.length)}; g.jn=function(J){var K=J.W;J.J("html5_gapless_unlimit_format_selection")&&oT(J)&&(K=!1);var n=!!J.G&&J.G.qS,X=J.ix,l=J.Ag(),x=Xr(J),V=J.fv,v=K,Q=J.isOtf();K=J.Ae();var S=J.Fq,r=J.getUserAudio51Preference(),C=lK(J),O=new kZV(X);if(X.Pw()||X.J("html5_logging_format_selection"))O.Z=!0;O.Cv=x;O.fv=V&&X.L;O.cW=r;g.fa("windows nt 5.1")&&!g.EV&&(O.hv=!0);if(x=l)x=g.KI(X)?I7H(X):!1;x&&(O.GA=!0);v&&(O.hv=!0,O.fU=!0);Q&&!X.J("html5_otf_prefer_vp9")&&(O.hv=!0);X.playerStyle==="picasaweb"&&(Q&&(O.hv=!1),O.QG= !1);S&&(O.hv=!0);ie(X.C,Bo.CHANNELS)&&(X.J("html5_enable_ac3")&&(O.U=!0),X.J("html5_enable_eac3")&&(O.C=!0),X.J("html5_enable_ac3_gapless")&&(O.MQ=!0));X.J("html5_block_8k_hfr")&&(O.gQ=!0);O.N=g.Qg(X.experiments,"html5_max_selectable_quality_ordinal");O.W=g.Qg(X.experiments,"html5_min_selectable_quality_ordinal");iq&&(O.o5=480);if(n||l)O.QG=!1;O.wQ=!1;O.disableAv1=C;n=UV(X,O.G,void 0,O.disableAv1);n>0&&n<2160&&(fP()||X.J("html5_format_hybridization"))&&(O.G.supportsChangeType=+fP(),O.rz=n);n>=2160&& (O.Aj=!0);Nhe()&&(O.G.serveVp9OverAv1IfHigherRes=0,O.KU=!1);O.Ae=K;O.j_=g.qH||n0()&&!K?!1:!0;O.L=X.J("html5_format_hybridization");O.Dm=X.J("html5_disable_encrypted_vp9_live_non_2k_4k");xi(J)&&(O.wN=J.J("html5_prefer_language_over_codec"));F6()&&J.playerResponse&&J.playerResponse.playerConfig&&J.playerResponse.playerConfig.webPlayerConfig&&J.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(O.U=!0,O.C=!0);J.W&&J.isAd()&&(J.Kn&&(O.K=J.Kn),J.D1&&(O.X=J.D1));O.PW=J.isLivePlayback&& J.wK()&&J.ix.J("html5_drm_live_audio_51");O.md=J.Ms;O.vW=!xi(J);return J.zL=O}; lK=function(J){return J.ix.J("html5_disable_av1")||J.J("html5_gapless_shorts_disable_av1")&&oT(J)?!0:!1}; J5M=function(J){Ul("drm_pb_s",void 0,J.K);J.kF||J.G&&ed(J.G);var K={};J.G&&(K=$R7(J.bD,g.jn(J),J.ix.C,J.G,function(n){return J.publish("ctmp","fmtflt",n)},!0,new Set)); K=new Mg(K,J.ix,J.ql,J.useCobaltWidevine?F6()?Vu(J):!1:!1,function(n,X){J.Zm(n,X)}); g.Z(J,K);J.dV=!1;J.loading=!0;GZF(K,function(n){Ul("drm_pb_f",void 0,J.K);for(var X=g.z(n),l=X.next();!l.done;l=X.next())switch(l=l.value,l.flavor){case "fairplay":l.kF=J.kF;l.Tt=J.Tt;l.VD=J.VD;break;case "widevine":l.Zz=J.Zz}J.Z$=n;if(J.Z$.length>0&&(J.C=J.Z$[0],J.ix.Pw())){n={};X=g.z(Object.entries(J.C.G));for(l=X.next();!l.done;l=X.next()){var x=g.z(l.value);l=x.next().value;x=x.next().value;var V="unk";(l=l.match(/(.*)codecs="(.*)"/))&&(V=l[2]);n[V]=x}J.Zm("drmProbe",n)}J.hJ()})}; KiV=function(J,K){if(K.length===0||hk(J))return null;J.ix.C.X&&(cu=!0);var n=J.rE;var X=J.lengthSeconds,l=J.isLivePlayback,x=J.q_,V=J.ix,v=RP7(K);if(l||x){V=V.experiments;X=new un("",V,!0);X.Z=!x;X.qS=!0;X.isManifestless=!0;X.isLive=!x;X.q_=x;K=g.z(K);for(l=K.next();!l.done;l=K.next()){var Q=l.value;l=we(Q,n);v=kK(Q);v=Ij(v.vJ||Q.url||"",v.eX,v.s);var S=v.get("id");S&&S.includes("%7E")&&(X.K=!0);var r=void 0;S=(r=V)==null?void 0:r.sM("html5_max_known_end_time_rebase");r=Number(Q.targetDurationSec|| 5);Q=Number(Q.maxDvrDurationSec||14400);var C=Number(v.get("mindsq")||v.get("min_sq")||"0"),O=Number(v.get("maxdsq")||v.get("max_sq")||"0")||Infinity;X.h7=X.h7||C;X.Ad=X.Ad||O;var H=!ox(l.mimeType);v&&OV(X,new n4(v,l,{sY:r,rV:H,JF:Q,h7:C,Ad:O,z5:300,q_:x,v_:S}))}n=X}else if(v==="FORMAT_STREAM_TYPE_OTF"){X=X===void 0?0:X;x=new un("",V.experiments,!1);x.duration=X||0;V=g.z(K);for(X=V.next();!X.done;X=V.next())X=X.value,K=we(X,n,x.duration),l=kK(X),(l=Ij(l.vJ||X.url||"",l.eX,l.s))&&(K.streamType==="FORMAT_STREAM_TYPE_OTF"? OV(x,new oj(l,K,"sq/0")):OV(x,new re(l,K,cm(X.initRange),cm(X.indexRange))));x.isOtf=!0;n=x}else{X=X===void 0?0:X;x=new un("",V.experiments,!1);x.duration=X||0;V=g.z(K);for(X=V.next();!X.done;X=V.next())v=X.value,X=we(v,n,x.duration),K=cm(v.initRange),l=cm(v.indexRange),S=kK(v),(v=Ij(S.vJ||v.url||"",S.eX,S.s))&&OV(x,new re(v,X,K,l));n=x}x=J.isLivePlayback&&!J.q_&&!J.GA&&!J.isPremiere;J.J("html5_live_head_playable")&&(!vD(J)&&x&&J.Zm("missingLiveHeadPlayable",{}),J.ix.GA==="yt"&&(n.Cv=!0));return n}; hk=function(J){return F6()?!Vu(J):Ej()?!(!J.kF||!J.J("html5_enable_safari_fairplay")&&lq()):!1}; Vu=function(J){return J.J("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.b7=function(J,K){K=g.z(K);for(var n=K.next();!n.done;n=K.next())if(n=n.value,n.cueRangeSetIdentifier){var X=void 0;J.n4.set(n.cueRangeSetIdentifier,(X=n.playerCueRanges)!=null?X:[])}}; Qu=function(J){return!(!J.G||!J.G.isManifestless)}; $i=function(J){return J.o5?J.isLowLatencyLiveStream&&J.G!=null&&L4(J.G)>=5:J.isLowLatencyLiveStream&&J.G!=void 0&&L4(J.G)>=5}; nOf=function(J){return F6()&&Vu(J)?!1:hk(J)&&(g.wh(J.ix)?!J.isLivePlayback:J.hlsvp)||!lq()||J.mR?!0:!1}; ldM=function(J){J.loading=!0;J.RH=!1;if(oOF(J))g.IiM(J.videoId).then(function(X){X23(J,X)}).then(function(){J.hJ()}); else{A6(J.fU)||g.gG(new g.qt("DASH MPD Origin invalid: ",J.fU));var K=J.fU,n=g.Qg(J.ix.experiments,"dash_manifest_version")||4;K=g.Td(K,{mpd_version:n});J.isLowLatencyLiveStream&&J.latencyClass!=="NORMAL"||(K=g.Td(K,{pacing:0}));Bq3(K,J.ix.experiments,J.isLivePlayback).then(function(X){J.o4()||(Sn(J,X,!0),Ul("mrc",void 0,J.K),J.hJ())},function(X){J.o4()||(J.loading=!1,J.publish("dataloaderror",new ix("manifest.net.retryexhausted",{backend:"manifest", rc:X.status},1)))}); Ul("mrs",void 0,J.K)}}; X23=function(J,K){var n=K.map(function(Q){return Q.itag}),X; if((X=J.playerResponse)!=null&&X.streamingData){X=[];if(J.J("html5_offline_always_use_local_formats")){n=0;for(var l=g.z(K),x=l.next();!x.done;x=l.next()){x=x.value;var V=Object.assign({},x);V.signatureCipher="";X.push(V);V=g.z(J.playerResponse.streamingData.adaptiveFormats);for(var v=V.next();!v.done;v=V.next())if(v=v.value,x.itag===v.itag&&x.xtags===v.xtags){n+=1;break}}nr&&(r=H.getInfo().audio.numChannels)}r>2&&J.Zm("hlschl",{mn:r});var P;((P=J.zL)==null?0:P.Z)&&J.Zm("hlsfmtaf",{itags:C.join(".")});var B;if(J.J("html5_enable_vp9_fairplay")&&((B=J.C)==null?0:FI(B)))for(J.Zm("drm",{sbdlfbk:1}),r=g.z(J.Z$),C=r.next();!C.done;C=r.next())if(C=C.value,aj(C)){J.C=C;break}Oo(J,S)})}return DC()}; vOH=function(J){if(J.isExternallyHostedPodcast&&J.CH){var K=CS(J.CH);if(!K[0])return DC();J.yBG=K[0];return qAU(J.ix,K[0]).then(function(n){Oo(J,n)})}return J.pI&&J.YX?F6q(J.ix,J.isAd(),J.pI).then(function(n){Oo(J,n)}):DC()}; $P3=function(J){if(J.isExternallyHostedPodcast)return DC();var K=CS(J.CH,J.PJ);if(J.hlsvp){var n=gh3(J.hlsvp,J.clientPlaybackNonce,J.KU);K.push(n)}return a7U(J.ix,J.isAd(),K,Q8F(J)).then(function(X){Oo(J,X)})}; Oo=function(J,K){J.PM=K;J.Nr(new CT(g.ff(J.PM,function(n){return n.getInfo()})))}; Q8F=function(J){var K={cpn:J.clientPlaybackNonce,c:J.ix.G.c,cver:J.ix.G.cver};J.gm&&(K.ptk=J.gm,K.oid=J.r9,K.ptchn=J.nt,K.pltype=J.A$,J.t6&&(K.m=J.t6));return K}; g.HD=function(J){return hk(J)&&J.kF?(J={},J.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",J):J.Z&&J.Z.rE||null}; SZd=function(J){var K=RT(J);return K&&K.text?g.Oe(K.text):J.paidContentOverlayText}; r5F=function(J){var K=RT(J);return K&&K.durationMs?uB(K.durationMs):J.paidContentOverlayDurationMs}; RT=function(J){var K,n,X;return J.playerResponse&&J.playerResponse.paidContentOverlay&&J.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.f((K=J.MQ)==null?void 0:(n=K.playerOverlays)==null?void 0:(X=n.playerOverlayRenderer)==null?void 0:X.playerDisclosure,s83)||null}; uK=function(J){var K="";if(J.e7)return J.e7;J.isLivePlayback&&(K=J.allowLiveDvr?"dvr":J.isPremiere?"lp":J.GA?"window":"live");J.q_&&(K="post");return K}; g.en=function(J,K){return typeof J.keywords[K]!=="string"?null:J.keywords[K]}; CLp=function(J){return!!J.Se||!!J.yc||!!J.FX||!!J.LG||J.aW}; g.z$=function(J){return!!(J.fU||J.CH||J.pI||J.hlsvp||J.sD())}; au=function(J){if(J.J("html5_onesie")&&J.errorCode)return!1;var K=g.O0(J.QG,"ypc");J.ypcPreview&&(K=!1);return J.TL()&&!J.loading&&(g.z$(J)||g.O0(J.QG,"heartbeat")||K)}; CS=function(J,K){J=X6(J);var n={};if(K){K=g.z(K.split(","));for(var X=K.next();!X.done;X=K.next())(X=X.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(n[X[1]]={width:X[2],height:X[3]})}K=g.z(J);for(X=K.next();!X.done;X=K.next()){X=X.value;var l=n[X.itag];l&&(X.width=l.width,X.height=l.height)}return J}; aif=function(J,K){J.showShareButton=!!K;var n,X,l=((n=g.f(K,g.Gt))==null?void 0:n.navigationEndpoint)||((X=g.f(K,g.Gt))==null?void 0:X.command);l&&(J.Ws=!!g.f(l,Oz7))}; cmM=function(J,K){var n=K.raw_embedded_player_response;if(!n){var X=K.embedded_player_response;X&&(n=JSON.parse(X))}n&&(J.eK=n);if(J.eK){J.embeddedPlayerConfig=J.eK.embeddedPlayerConfig||null;if(n=J.eK.videoFlags)n.playableInEmbed&&(J.allowEmbed=!0),n.isPrivate&&(J.isPrivate=!0),n.userDisplayName&&(K.user_display_name=n.userDisplayName),n.userDisplayImage&&(K.user_display_image=n.userDisplayImage);if(n=J.eK.embedPreview){n=n.thumbnailPreviewRenderer;rmf(J,n.controlBgHtml);if(X=n.defaultThumbnail)J.L= Ru(X);J.J("embeds_web_enable_search_button")&&n.searchButton&&(X=g.f(n.searchButton,g.Gt))&&(J.xQ=g.f(X.navigationEndpoint,g.wn));(X=g.f(n==null?void 0:n.videoDetails,Hz7))&&by3(J,K,X);X=g.f(n==null?void 0:n.videoDetails,RC8);J.nE=!!n.addToWatchLaterButton;aif(J,n.shareButton);if(X==null?0:X.musicVideoType)J.musicVideoType=X.musicVideoType;var l,x,V,v,Q;if(X=g.f((l=J.getEmbeddedPlayerResponse())==null?void 0:(x=l.embedPreview)==null?void 0:(V=x.thumbnailPreviewRenderer)==null?void 0:(v=V.playButton)== null?void 0:(Q=v.buttonRenderer)==null?void 0:Q.navigationEndpoint,g.MJ))NOH(J,X),J.videoId=X.videoId||J.videoId;n.videoDurationSeconds&&(J.lengthSeconds=uB(n.videoDurationSeconds));n.webPlayerActionsPorting&&S$q(J,n.webPlayerActionsPorting);if(l=g.f(n==null?void 0:n.playlist,uT7)){J.O6=!0;x=[];V=Number(l.currentIndex);if(l.contents)for(v=0,Q=l.contents.length;v0:J.J7?!1:J.ix.k7||J.ix.RH||!g.pR(J.ix)?!0:!1:(J.J7?0:J.Pp)&&g.pR(J.ix)?!0:!1;J.J("html5_log_detailpage_autoplay")&&dn(J)==="detailpage"&&J.Zm("autoplay_info",{autoplay:J.sy,autonav:J.isAutonav,wasDompaused:J.J7,result:K});return K}; g.Yi=function(J){return J.oauthToken||J.ix.nA}; TXf=function(J){if(J.J("html5_stateful_audio_normalization")){var K=1,n=g.Qg(J.ix.experiments,"html5_default_ad_gain");n&&J.isAd()&&(K=n);var X,l;n=(l=(X=J.U)==null?void 0:X.audio.U)!=null?l:J.Je;if(n==null||isNaN(n))J=Li8(J);else{X=(0,g.a)();J.G2=2;l=X-J.ix.zd<=J.maxStatefulTimeThresholdSec*1E3;J.applyStatefulNormalization&&l?J.G2=4:l||(J.ix.KL=Infinity,J.ix.zd=NaN);l=(J.G2===4?g.BK(J.ix.KL,J.minimumLoudnessTargetLkfs,J.loudnessTargetLkfs):J.loudnessTargetLkfs)-n;if(J.G2!==4){var x,V,v,Q,S=((x=J.playerResponse)== null?void 0:(V=x.playerConfig)==null?void 0:(v=V.audioConfig)==null?void 0:(Q=v.loudnessNormalizationConfig)==null?void 0:Q.statelessLoudnessAdjustmentGain)||0;l+=S}l=Math.min(l,0);J.preserveStatefulLoudnessTarget&&(J.ix.KL=n+l,J.ix.zd=X);J=Math.min(1,Math.pow(10,l/20))||K}}else J=Li8(J);return J}; Li8=function(J){var K=1,n=g.Qg(J.ix.experiments,"html5_default_ad_gain");n&&J.isAd()&&(K=n);if(J.ix.experiments.sM("html5_audio_gain_null_coalescing")){var X,l;n=(l=(X=J.U)==null?void 0:X.audio.X)!=null?l:J.Nk}else{var x;n=((x=J.U)==null?void 0:x.audio.X)||J.Nk}isNaN(n)||(J.G2=1);return Math.min(1,Math.pow(10,-n/20))||K}; Xr=function(J){var K=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],n=g.KR(J.ix)==="TVHTML5_SIMPLY"&&J.ix.G.ctheme==="MUSIC";J.H3||!g.G_(J.ix)&&!n||!K.includes(J.musicVideoType)&&!J.isExternallyHostedPodcast||(J.H3=!0);if(K=g.ae())K=/Starboard\/([0-9]+)/.exec(g.Ii()),K=(K?parseInt(K[1],10):NaN)<10;n=J.ix;n=(g.KR(n)==="TVHTML5_CAST"||g.KR(n)==="TVHTML5"&&(n.G.cver.startsWith("6.20130725")||n.G.cver.startsWith("6.20130726")))&&J.ix.G.ctheme==="MUSIC";var X;if(X=!J.H3)n||(n=J.ix,n= g.KR(n)==="TVHTML5"&&n.G.cver.startsWith("7")),X=n;X&&!K&&(K=J.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",n=(J.J("cast_prefer_audio_only_for_atv_and_uploads")||J.J("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&J.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",K||n||J.isExternallyHostedPodcast)&&(J.H3=!0);return J.ix.deviceIsAudioOnly||J.H3&&J.ix.L}; G$=function(J){var K,n,X;return((K=J.playerResponse)==null?void 0:(n=K.playerConfig)==null?void 0:(X=n.compositeVideoConfig)==null?void 0:X.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}; g.DPe=function(J){return J.J("html5_enable_sabr_live_captions")&&J.qS()&&xi(J)||G$(J)}; Uo=function(J){var K,n,X;return!!((K=J.playerResponse)==null?0:(n=K.playerConfig)==null?0:(X=n.mediaCommonConfig)==null?0:X.splitScreenEligible)}; tk=function(J){var K;return!((K=J.playerResponse)==null||!K.compositePlayabilityStatus)}; dPF=function(J){return isNaN(J)?0:Math.max((Date.now()-J)/1E3-30,0)}; yu=function(J){return!(!J.RJ||!J.ix.L)&&J.sD()}; ZZ=function(J){return J.W5&&J.enableServerStitchedDai}; kX3=function(J){return J.VJ&&!J.nA}; xi=function(J){var K=J.J("html5_enable_sabr_on_drive")&&J.ix.GA==="gd";if(J.IQ)return J.VJ&&J.Zm("fds",{fds:!0},!0),!1;if(J.ix.GA!=="yt"&&!K)return J.VJ&&J.Zm("dsvn",{ns:J.ix.GA},!0),!1;if(J.cotn||!J.G||J.G.isOtf||J.Sv&&!J.J("html5_enable_sabr_csdai"))return!1;if(J.J("html5_use_sabr_requests_for_debugging"))return!0;J.VJ&&J.Zm("esfw",{usbc:J.VJ,hsu:!!J.nA},!0);if(J.VJ&&J.nA)return!0;if(J.J("html5_remove_client_sabr_determination"))return!1;var n=!J.G.qS&&!J.wK();K=n&&nR&&J.J("html5_enable_sabr_vod_streaming_xhr"); n=n&&!nR&&J.J("html5_enable_sabr_vod_non_streaming_xhr");var X=fS(J),l=J.J("html5_enable_sabr_drm_vod_streaming_xhr")&&nR&&J.wK()&&!J.G.qS&&(J.drmProduct==="1"?!1:!0);(K=K||n||X||l)&&!J.nA&&J.Zm("sabr",{loc:"m"},!0);return K&&!!J.nA}; fS=function(J){var K;if(!(K=nR&&J.qS()&&J.wK()&&(J.drmProduct==="1"?!1:!0)&&J.J("html5_sabr_live_drm_streaming_xhr"))){K=J.qS()&&!J.wK()&&nR;var n=J.qS()&&J.latencyClass!=="ULTRALOW"&&!J.isLowLatencyLiveStream&&J.J("html5_sabr_live_normal_latency_streaming_xhr"),X=J.isLowLatencyLiveStream&&J.J("html5_sabr_live_low_latency_streaming_xhr"),l=J.latencyClass==="ULTRALOW"&&J.J("html5_sabr_live_ultra_low_latency_streaming_xhr");K=K&&(n||X||l)}n=K;K=J.enableServerStitchedDai&&n&&J.J("html5_enable_sabr_ssdai_streaming_xhr"); n=!J.enableServerStitchedDai&&n;X=J.qS()&&!nR&&J.J("html5_enable_sabr_live_non_streaming_xhr");J=nR&&(J.NH()||Uo(J)&&J.J("html5_enable_sabr_for_lifa_eligible_streams"));return K||n||X||J}; oOF=function(J){var K;if(K=!!J.cotn)K=J.videoId,K=!!K&&g.LI(K)===1;return K&&!J.RJ}; g.WD=function(J){if(!J.G||!J.Z||!J.U)return!1;var K=J.G.G,n=!!K[J.Z.id]&&TJ(K[J.Z.id].Ax.G);K=!!K[J.U.id]&&TJ(K[J.U.id].Ax.G);return(J.Z.itag==="0"||n)&&K}; aT=function(J){return J.IJ?["OK","LIVE_STREAM_OFFLINE"].includes(J.IJ.status):!0}; eC8=function(J){return(J=J.Ky)&&J.showError?J.showError:!1}; Fr=function(J,K){return J.J(K)?!0:(J.fflags||"").includes(K+"=true")}; gOr=function(J){return J.J("html5_heartbeat_iff_heartbeat_params_filled")}; Zyk=function(J,K){K.inlineMetricEnabled&&(J.inlineMetricEnabled=!0);K.playback_progress_0s_url&&(J.LG=new Oy3(K));if(K=K.video_masthead_ad_quartile_urls)J.yc=K.quartile_0_url,J.Bl=K.quartile_25_url,J.Pl=K.quartile_50_url,J.oI=K.quartile_75_url,J.M6=K.quartile_100_url,J.FX=K.quartile_0_urls,J.cV=K.quartile_25_urls,J.zT=K.quartile_50_urls,J.zj=K.quartile_75_urls,J.mN=K.quartile_100_urls}; ymp=function(J){var K={};J=g.z(J);for(var n=J.next();!n.done;n=J.next()){n=n.value;var X=n.split("=");X.length===2?K[X[0]]=X[1]:K[n]=!0}return K}; Gtp=function(J){if(J){if(O7e(J))return J;J=H7V(J);if(O7e(J,!0))return J}return""}; g.c53=function(J){return J.captionsLanguagePreference||J.ix.captionsLanguagePreference||g.en(J,"yt:cc_default_lang")||J.ix.ih}; q2=function(J){return!(!J.isLivePlayback||!J.hasProgressBarBoundaries())}; g.NJ=function(J){var K;return J.rL||((K=J.suggestions)==null?void 0:K[0])||null}; g.Eo=function(J){return J.t7&&(J.J("embeds_enable_pfp_always_unbranded")||J.ix.Fx)}; g.bK=function(J){var K,n;return!!((K=J.embeddedPlayerConfig)==null?0:(n=K.embeddedPlayerFlags)==null?0:n.enableMusicUx)}; YZe=function(J){return J.W||J.J("web_player_media_session_infinity")&&J.isLivePlayback}; Ak=function(J){return J.ix.U&&J.isPrivate}; g.N2=function(J){var K=J.S(),n=g.M2(K),X=K.x4;(K.J("embeds_web_enable_iframe_api_send_full_embed_url")||K.J("embeds_web_enable_rcat_validation_in_havs")||K.J("embeds_enable_autoplay_and_visibility_signals"))&&g.gz(K)&&(X&&(n.thirdParty=Object.assign({},n.thirdParty,{embedUrl:X})),o1V(n,J));if(X=J.j_)n.clickTracking={clickTrackingParams:X};else if(K.J("html5_log_missing_itct")){var l;X=new g.qt("Missing ITCT in InnerTubeContext",{isAd:J.isAd(),fGd:(l=K.getWebPlayerContextConfig())==null?void 0:l.contextId}); g.ko(X)}l=n.client||{};X="EMBED";var x=dn(J);x==="leanback"?X="WATCH":K.J("gvi_channel_client_screen")&&x==="profilepage"?X="CHANNEL":J.Fq?X="LIVE_MONITOR":x==="detailpage"?X="WATCH_FULL_SCREEN":x==="adunit"?X="ADUNIT":x==="sponsorshipsoffer"&&(X="UNKNOWN");l.clientScreen=X;if(K=J.kidsAppInfo)l.kidsAppInfo=JSON.parse(K);(X=J.WJ)&&!K&&(l.kidsAppInfo={contentSettings:{ageUpMode:GX8[X]}});if(K=J.Le)l.unpluggedAppInfo={enableFilterMode:!0};(X=J.unpluggedFilterModeType)&&!K&&(l.unpluggedAppInfo={filterModeType:UP3[X]}); if(K=J.F2)l.unpluggedLocationInfo=K;n.client=l;l=n.request||{};J.vO&&(l.isPrefetch=!0);if(K=J.mdxEnvironment)l.mdxEnvironment=K;if(K=J.mdxControlMode)l.mdxControlMode=tCq[K];n.request=l;l=n.user||{};if(K=J.cW)l.credentialTransferTokens=[{token:K,scope:"VIDEO"}];if(K=J.x4)l.delegatePurchases={oauthToken:K},l.kidsParent={oauthToken:K};n.user=l;if(l=J.contextParams)n.activePlayers=[{playerContextParams:l}];if(J=J.clientScreenNonce)n.clientScreenNonce=J;return n}; g.M2=function(J){var K=g.Mx(),n=K.client||{};if(J.forcedExperiments){var X=J.forcedExperiments.split(","),l=[];X=g.z(X);for(var x=X.next();!x.done;x=X.next())l.push(Number(x.value));n.experimentIds=l}if(l=J.homeGroupInfo)n.homeGroupInfo=JSON.parse(l);if(l=J.getPlayerType())n.playerType=l;if(l=J.G.ctheme)n.theme=l;if(l=J.livingRoomAppMode)n.tvAppInfo=Object.assign({},n.tvAppInfo,{livingRoomAppMode:l});l=J.deviceYear;J.J("html5_propagate_device_year")&&l&&(n.tvAppInfo=Object.assign({},n.tvAppInfo,{deviceYear:l})); if(l=J.livingRoomPoTokenId)n.tvAppInfo=Object.assign({},n.tvAppInfo,{livingRoomPoTokenId:l});K.client=n;n=K.user||{};J.enableSafetyMode&&(n=Object.assign({},n,{enableSafetyMode:!0}));J.pageId&&(n=Object.assign({},n,{onBehalfOfUser:J.pageId}));K.user=n;n=J.x4;J.J("embeds_web_enable_iframe_api_send_full_embed_url")||J.J("embeds_web_enable_rcat_validation_in_havs")||J.J("embeds_enable_autoplay_and_visibility_signals")||!n||(K.thirdParty={embedUrl:n});return K}; FiV=function(J,K,n){var X=J.videoId,l=g.N2(J),x=J.S(),V={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(BC()),referer:document.location.toString(),signatureTimestamp:20221};g.yT();J.isAutonav&&(V.autonav=!0);g.Z0(0,141)&&(V.autonavState=g.Z0(0,140)?"STATE_OFF":"STATE_ON");V.autoCaptionsDefaultOn=g.Z0(0,66);p2V(J)&&(V.autoplay=!0);x.L&&J.cycToken&&(V.cycToken=J.cycToken);x.enablePrivacyFilter&&(V.enablePrivacyFilter=!0);J.isFling&&(V.fling=!0);var v=J.forceAdsUrl;if(v){var Q={},S=[];v= v.split(",");v=g.z(v);for(var r=v.next();!r.done;r=v.next()){r=r.value;var C=r.split("|");C.length!==3||r.includes("=")||(C[0]="breaktype="+C[0],C[1]="offset="+C[1],C[2]="url="+C[2]);r={adtype:"video_ad"};C=g.z(C);for(var O=C.next();!O.done;O=C.next()){var H=g.z(O.value.split("="));O=H.next().value;H=lek(H);r[O]=H.join("=")}C=r.url;O=r.presetad;H=r.viralresponseurl;var R=Number(r.campaignid);if(r.adtype==="in_display_ad")C&&(Q.url=C),O&&(Q.presetAd=O),H&&(Q.viralAdResponseUrl=H),R&&(Q.viralCampaignId= String(R));else if(r.adtype==="video_ad"){var w={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(r.offset)||0)}};if(r=y5U[r.breaktype])w.breakType=r;C&&(w.url=C);O&&(w.presetAd=O);H&&(w.viralAdResponseUrl=H);R&&(w.viralCampaignId=String(R));S.push(w)}}V.forceAdParameters={videoAds:S,inDisplayAd:Q}}J.isInlinePlaybackNoAd&&(V.isInlinePlaybackNoAd=!0);J.isLivingRoomDeeplink&&(V.isLivingRoomDeeplink=!0);Q=J.D0;if(Q!=null){Q={startWalltime:String(Q)};if(S=J.wm)Q.manifestDuration=String(S||14400); V.liveContext=Q}if(J.mutedAutoplay){V.mutedAutoplay=!0;Q=x.getWebPlayerContextConfig();var P,B;(Q==null?0:(P=Q.embedsHostFlags)==null?0:P.allowMutedAutoplayDurationMode)&&(Q==null?0:(B=Q.embedsHostFlags)==null?0:B.allowMutedAutoplayDurationMode.includes(Zzp[J.mutedAutoplayDurationMode]))&&(V.mutedAutoplayDurationMode=Zzp[J.mutedAutoplayDurationMode])}if(J.J7?0:J.Pp)V.splay=!0;P=J.vnd;P===5&&(V.vnd=P);P={};if(B=J.isMdxPlayback)P.triggeredByMdx=B;if(B=J.Qg)P.skippableAdsSupported=B.split(",").includes("ska"); if(S=J.Ii){B=J.As;Q=[];S=g.z(Xfk(S));for(v=S.next();!v.done;v=S.next()){v=v.value;r=v.platform;v={applicationState:v.XE?"INACTIVE":"ACTIVE",clientFormFactor:fdM[r]||"UNKNOWN_FORM_FACTOR",clientName:xRk[v.mp]||"UNKNOWN_INTERFACE",clientVersion:v.deviceVersion||"",platform:Wi3[r]||"UNKNOWN_PLATFORM"};r={};if(B){C=void 0;try{C=JSON.parse(B)}catch(p){g.gG(p)}C&&(r={params:[{key:"ms",value:C.ms}]},C.advertising_id&&(r.advertisingId=C.advertising_id),C.limit_ad_tracking!==void 0&&C.limit_ad_tracking!== null&&(r.limitAdTracking=C.limit_ad_tracking),v.osName=C.os_name,v.userAgent=C.user_agent,v.windowHeightPoints=C.window_height_points,v.windowWidthPoints=C.window_width_points)}Q.push({adSignalsInfo:r,remoteClient:v})}P.remoteContexts=Q}B=J.sourceContainerPlaylistId;Q=J.serializedMdxMetadata;if(B||Q)S={},B&&(S.mdxPlaybackContainerInfo={sourceContainerPlaylistId:B}),Q&&(S.serializedMdxMetadata=Q),P.mdxPlaybackSourceContext=S;V.mdxContext=P;P=K.width;P>0&&(V.playerWidthPixels=Math.round(P));if(K=K.height)V.playerHeightPixels= Math.round(K);n!==0&&(V.vis=n);if(n=x.widgetReferrer)V.widgetReferrer=n.substring(0,128);g.pR(x)&&V&&(V.ancestorOrigins=x.ancestorOrigins);J.defaultActiveSourceVideoId&&(V.compositeVideoContext={defaultActiveSourceVideoId:J.defaultActiveSourceVideoId});if(x=x.getWebPlayerContextConfig())V.encryptedHostFlags=x.encryptedHostFlags;X={videoId:X,context:l,playbackContext:{contentPlaybackContext:V}};J.reloadPlaybackParams&&(X.playbackContext.reloadPlaybackContext={reloadPlaybackParams:J.reloadPlaybackParams}); J.contentCheckOk&&(X.contentCheckOk=!0);if(l=J.clientPlaybackNonce)X.cpn=l;if(l=J.playerParams)X.params=l;if(l=J.playlistId)X.playlistId=l;J.racyCheckOk&&(X.racyCheckOk=!0);l=J.S();if(V=l.embedConfig)X.serializedThirdPartyEmbedConfig=V;X.captionParams={};V=g.Z0(g.yT(),65);J.deviceCaptionsOn!=null?X.captionParams.deviceCaptionsOn=J.deviceCaptionsOn:g.AS(l)&&(X.captionParams.deviceCaptionsOn=V!=null?!V:!1);J.OH&&(X.captionParams.deviceCaptionsLangPref=J.OH);J.YP.length?X.captionParams.viewerSelectedCaptionLangs= J.YP:g.AS(l)&&(V=g.E3(),V==null?0:V.length)&&(X.captionParams.viewerSelectedCaptionLangs=V);V=J.fetchType==="onesie"&&J.J("html5_onesie_attach_po_token");x=J.fetchType!=="onesie"&&J.J("html5_non_onesie_attach_po_token");if(V||x)V=J.S(),V.Pp&&(X.serviceIntegrityDimensions={},X.serviceIntegrityDimensions.poToken=V.Pp);l.J("fetch_att_independently")&&(X.attestationRequest={omitBotguardData:!0});X.playbackContext||(X.playbackContext={});X.playbackContext.devicePlaybackCapabilities=ade(J);X.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding=== !1&&J.Zm("noVp9",{});return X}; ade=function(J){var K=!(J==null?0:J.Ae())&&(J==null?void 0:J.qS())&&n0(),n;if(!(n=J==null)){n=g.jn(J);J=J.S().C;var X=jL("243");n=!(X&&ue(n,X,J,!0)===!0)}return{supportsVp9Encoding:!(n||K),supportXhr:nR}}; EOq=function(J,K){var n,X,l;return g.G(function(x){if(x.Z==1)return n={context:g.M2(J.S()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:J.videoId,cpn:J.clientPlaybackNonce}}]},X=g.Ko(qZU),g.d(x,g.q5(K,n,X),2);l=x.G;return x.return(l)})}; bzU=function(J,K,n){var X=g.Qg(K.experiments,"bg_vm_reinit_threshold");(!tt||(0,g.a)()-tt>X)&&EOq(J,n).then(function(l){l&&(l=l.botguardData)&&g.ZX(l,K)},function(l){J.o4()||(l=mx(l),J.Zm("attf",l.details))})}; lo=function(J,K){g.t.call(this);this.app=J;this.state=K}; V3=function(J,K,n){J.state.G.hasOwnProperty(K)||jM(J,K,n);J.state.W[K]=function(){return n.apply(J,g.c3.apply(0,arguments))}; J.state.N.add(K)}; hn=function(J,K,n){J.state.G.hasOwnProperty(K)||jM(J,K,n);J.app.S().L&&(J.state.L[K]=function(){return n.apply(J,g.c3.apply(0,arguments))},J.state.N.add(K))}; jM=function(J,K,n){J.state.G[K]=function(){return n.apply(J,g.c3.apply(0,arguments))}}; g.v4=function(J,K,n){return J.state.G[K].apply(J.state.G,g.m(n))}; Q3=function(){g.BM.call(this);this.C=new Map}; $w=function(){g.t.apply(this,arguments);this.element=null;this.N=new Set;this.W={};this.L={};this.G={};this.K=new Set;this.X=new Q3;this.Z=new Q3;this.U=new Q3;this.C=new Q3}; A5F=function(J,K,n){typeof J==="string"&&(J={mediaContentUrl:J,startSeconds:K,suggestedQuality:n});a:{if((K=J.mediaContentUrl)&&(K=/\/([ve]|embed)\/([^#?]+)/.exec(K))&&K[2]){K=K[2];break a}K=null}J.videoId=K;return SM(J)}; SM=function(J,K,n){if(typeof J==="string")return{videoId:J,startSeconds:K,suggestedQuality:n};K={};n=g.z(MCM);for(var X=n.next();!X.done;X=n.next())X=X.value,J[X]&&(K[X]=J[X]);return K}; NXq=function(J,K,n,X){if(g.Kn(J)&&!Array.isArray(J)){K="playlist list listType index startSeconds suggestedQuality".split(" ");n={};for(X=0;X32&&X.push("hfr");K.isHdr()&&X.push("hdr");K.primaries==="bt2020"&&X.push("wcg");n.video_quality_features=X}}if(J=J.getPlaylistId())n.list=J;return n}; H4=function(){rv.apply(this,arguments)}; Rt=function(J,K){var n={};if(J.app.S().QG){J=g.z(oE7);for(var X=J.next();!X.done;X=J.next())X=X.value,K.hasOwnProperty(X)&&(n[X]=K[X]);if(K=n.qoe_cat)J="",typeof K==="string"&&K.length>0&&(J=K.split(",").filter(function(l){return XG8.includes(l)}).join(",")),n.qoe_cat=J; lX3(n)}else for(J=g.z(xI3),X=J.next();!X.done;X=J.next())X=X.value,K.hasOwnProperty(X)&&(n[X]=K[X]);return n}; lX3=function(J){var K=J.raw_player_response;if(!K){var n=J.player_response;n&&(K=JSON.parse(n))}delete J.player_response;delete J.raw_player_response;if(K){J.raw_player_response={streamingData:K.streamingData,playerConfig:K.playerConfig};var X;if((X=K.playbackTracking)==null?0:X.qoeUrl)J.raw_player_response=Object.assign({},J.raw_player_response,{playbackTracking:{qoeUrl:K.playbackTracking.qoeUrl}});var l;if((l=K.videoDetails)==null?0:l.videoId)J.raw_player_response=Object.assign({},J.raw_player_response, {videoDetails:{videoId:K.videoDetails.videoId}})}}; uo=function(J,K,n){var X=J.app.vM(n);if(!X)return 0;J=X-J.app.getCurrentTime(n);return K-J}; Vbq=function(J){var K=K===void 0?5:K;return J?jdF[J]||K:K}; g.eM=function(){H4.apply(this,arguments)}; h8f=function(J){jM(J,"getInternalApiInterface",J.getInternalApiInterface);jM(J,"addEventListener",J.On);jM(J,"removeEventListener",J.c7Q);jM(J,"cueVideoByPlayerVars",J.sx);jM(J,"loadVideoByPlayerVars",J.OE);jM(J,"preloadVideoByPlayerVars",J.Ktx);jM(J,"getAdState",J.getAdState);jM(J,"sendAbandonmentPing",J.sendAbandonmentPing);jM(J,"setLoopRange",J.setLoopRange);jM(J,"getLoopRange",J.getLoopRange);jM(J,"setAutonavState",J.setAutonavState);jM(J,"seekTo",J.w3Q);jM(J,"seekBy",J.TWF);jM(J,"seekToLiveHead", J.seekToLiveHead);jM(J,"requestSeekToWallTimeSeconds",J.requestSeekToWallTimeSeconds);jM(J,"seekToStreamTime",J.seekToStreamTime);jM(J,"startSeekCsiAction",J.startSeekCsiAction);jM(J,"getStreamTimeOffset",J.getStreamTimeOffset);jM(J,"getVideoData",J.qj);jM(J,"setInlinePreview",J.setInlinePreview);jM(J,"getAppState",J.getAppState);jM(J,"updateLastActiveTime",J.updateLastActiveTime);jM(J,"setBlackout",J.setBlackout);jM(J,"setUserEngagement",J.setUserEngagement);jM(J,"updateSubtitlesUserSettings",J.updateSubtitlesUserSettings); jM(J,"getPresentingPlayerType",J.NN);jM(J,"canPlayType",J.canPlayType);jM(J,"updatePlaylist",J.updatePlaylist);jM(J,"updateVideoData",J.updateVideoData);jM(J,"updateEnvironmentData",J.updateEnvironmentData);jM(J,"sendVideoStatsEngageEvent",J.s2M);jM(J,"productsInVideoVisibilityUpdated",J.productsInVideoVisibilityUpdated);jM(J,"setSafetyMode",J.setSafetyMode);jM(J,"isAtLiveHead",function(K){return J.isAtLiveHead(void 0,K)}); jM(J,"getVideoAspectRatio",J.getVideoAspectRatio);jM(J,"getPreferredQuality",J.getPreferredQuality);jM(J,"getPlaybackQualityLabel",J.getPlaybackQualityLabel);jM(J,"setPlaybackQualityRange",J.OHM);jM(J,"onAdUxClicked",J.onAdUxClicked);jM(J,"getFeedbackProductData",J.getFeedbackProductData);jM(J,"getStoryboardFrame",J.getStoryboardFrame);jM(J,"getStoryboardFrameIndex",J.getStoryboardFrameIndex);jM(J,"getStoryboardLevel",J.getStoryboardLevel);jM(J,"getNumberOfStoryboardLevels",J.getNumberOfStoryboardLevels); jM(J,"getCaptionWindowContainerId",J.getCaptionWindowContainerId);jM(J,"getAvailableQualityLabels",J.getAvailableQualityLabels);jM(J,"addCueRange",J.addCueRange);jM(J,"addUtcCueRange",J.addUtcCueRange);jM(J,"showAirplayPicker",J.showAirplayPicker);jM(J,"dispatchReduxAction",J.dispatchReduxAction);jM(J,"getPlayerResponse",J.Xp);jM(J,"getWatchNextResponse",J.PY);jM(J,"getHeartbeatResponse",J.lP);jM(J,"getCurrentTime",J.z3);jM(J,"getDuration",J.pp);jM(J,"getPlayerState",J.getPlayerState);jM(J,"getPlayerStateObject", J.xx);jM(J,"getVideoLoadedFraction",J.getVideoLoadedFraction);jM(J,"getProgressState",J.getProgressState);jM(J,"getVolume",J.getVolume);jM(J,"setVolume",J.kX);jM(J,"isMuted",J.isMuted);jM(J,"mute",J.yb);jM(J,"unMute",J.pN);jM(J,"loadModule",J.loadModule);jM(J,"unloadModule",J.unloadModule);jM(J,"getOption",J.jf);jM(J,"getOptions",J.getOptions);jM(J,"setOption",J.setOption);jM(J,"loadVideoById",J.vj);jM(J,"loadVideoByUrl",J.lG);jM(J,"playVideo",J.hS);jM(J,"loadPlaylist",J.loadPlaylist);jM(J,"nextVideo", J.nextVideo);jM(J,"previousVideo",J.previousVideo);jM(J,"playVideoAt",J.playVideoAt);jM(J,"getDebugText",J.getDebugText);jM(J,"getWebPlayerContextConfig",J.getWebPlayerContextConfig);jM(J,"notifyShortsAdSwipeEvent",J.notifyShortsAdSwipeEvent);jM(J,"getVideoContentRect",J.getVideoContentRect);jM(J,"setSqueezeback",J.setSqueezeback);jM(J,"toggleSubtitlesOn",J.toggleSubtitlesOn);jM(J,"isSubtitlesOn",J.isSubtitlesOn);jM(J,"reportPlaybackIssue",J.reportPlaybackIssue);jM(J,"setAutonav",J.setAutonav);jM(J, "isNotServable",J.isNotServable);jM(J,"channelSubscribed",J.channelSubscribed);jM(J,"channelUnsubscribed",J.channelUnsubscribed);jM(J,"togglePictureInPicture",J.togglePictureInPicture);jM(J,"supportsGaplessAudio",J.supportsGaplessAudio);jM(J,"supportsGaplessShorts",J.supportsGaplessShorts);jM(J,"enqueueVideoByPlayerVars",function(K){return void J.enqueueVideoByPlayerVars(K)}); jM(J,"clearQueue",J.clearQueue);jM(J,"getAudioTrack",J.yT);jM(J,"setAudioTrack",J.ITv);jM(J,"getAvailableAudioTracks",J.Fz);jM(J,"getMaxPlaybackQuality",J.getMaxPlaybackQuality);jM(J,"getUserPlaybackQualityPreference",J.getUserPlaybackQualityPreference);jM(J,"getSubtitlesUserSettings",J.getSubtitlesUserSettings);jM(J,"resetSubtitlesUserSettings",J.resetSubtitlesUserSettings);jM(J,"setMinimized",J.setMinimized);jM(J,"setOverlayVisibility",J.setOverlayVisibility);jM(J,"confirmYpcRental",J.confirmYpcRental); jM(J,"queueNextVideo",J.queueNextVideo);jM(J,"handleExternalCall",J.handleExternalCall);jM(J,"logApiCall",J.logApiCall);jM(J,"isExternalMethodAvailable",J.isExternalMethodAvailable);jM(J,"setScreenLayer",J.setScreenLayer);jM(J,"getCurrentPlaylistSequence",J.getCurrentPlaylistSequence);jM(J,"getPlaylistSequenceForTime",J.getPlaylistSequenceForTime);jM(J,"shouldSendVisibilityState",J.shouldSendVisibilityState);jM(J,"syncVolume",J.syncVolume);jM(J,"highlightSettingsMenuItem",J.highlightSettingsMenuItem); jM(J,"openSettingsMenuItem",J.openSettingsMenuItem);jM(J,"getEmbeddedPlayerResponse",J.getEmbeddedPlayerResponse);jM(J,"getVisibilityState",J.getVisibilityState);jM(J,"isMutedByMutedAutoplay",J.isMutedByMutedAutoplay);jM(J,"isMutedByEmbedsMutedAutoplay",J.isMutedByEmbedsMutedAutoplay);jM(J,"setGlobalCrop",J.setGlobalCrop);jM(J,"setInternalSize",J.setInternalSize);jM(J,"setFauxFullscreen",J.setFauxFullscreen);jM(J,"setAppFullscreen",J.setAppFullscreen)}; wv=function(J,K,n){J=g.zh(J.o9(),K);return n?(n.addOnDisposeCallback(J),null):J}; g.P4=function(J,K,n){return J.app.S().P3?K:g.rK("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:K,SHORTCUT:n})}; vEq=function(J){J.o9().element.setAttribute("aria-live","polite")}; g.It=function(J,K){g.eM.call(this,J,K);h8f(this);hn(this,"addEventListener",this.K7);hn(this,"removeEventListener",this.qBj);hn(this,"cueVideoByPlayerVars",this.IT);hn(this,"loadVideoByPlayerVars",this.DU);hn(this,"preloadVideoByPlayerVars",this.voG);hn(this,"loadVideoById",this.vj);hn(this,"loadVideoByUrl",this.lG);hn(this,"playVideo",this.hS);hn(this,"loadPlaylist",this.loadPlaylist);hn(this,"nextVideo",this.nextVideo);hn(this,"previousVideo",this.previousVideo);hn(this,"playVideoAt",this.playVideoAt); hn(this,"getVideoData",this.WN);hn(this,"seekBy",this.aTF);hn(this,"seekTo",this.y7j);hn(this,"showControls",this.showControls);hn(this,"hideControls",this.hideControls);hn(this,"cancelPlayback",this.cancelPlayback);hn(this,"getProgressState",this.getProgressState);hn(this,"isInline",this.isInline);hn(this,"setInline",this.setInline);hn(this,"setLoopVideo",this.setLoopVideo);hn(this,"getLoopVideo",this.getLoopVideo);hn(this,"getVideoContentRect",this.getVideoContentRect);hn(this,"getVideoStats",this.jd); hn(this,"getCurrentTime",this.Dp);hn(this,"getDuration",this.pp);hn(this,"getPlayerState",this.uP);hn(this,"getVideoLoadedFraction",this.bP);hn(this,"mute",this.yb);hn(this,"unMute",this.pN);hn(this,"setVolume",this.kX);hn(this,"loadModule",this.loadModule);hn(this,"unloadModule",this.unloadModule);hn(this,"getOption",this.jf);hn(this,"getOptions",this.getOptions);hn(this,"setOption",this.setOption);hn(this,"addCueRange",this.addCueRange);hn(this,"getDebugText",this.getDebugText);hn(this,"getStoryboardFormat", this.getStoryboardFormat);hn(this,"toggleFullscreen",this.toggleFullscreen);hn(this,"isFullscreen",this.isFullscreen);hn(this,"getPlayerSize",this.getPlayerSize);hn(this,"toggleSubtitles",this.toggleSubtitles);this.app.S().J("embeds_enable_move_set_center_crop_to_public")||hn(this,"setCenterCrop",this.setCenterCrop);hn(this,"setFauxFullscreen",this.setFauxFullscreen);hn(this,"setSizeStyle",this.setSizeStyle);hn(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);hn(this,"handleGlobalKeyUp",this.handleGlobalKeyUp); Ker(this)}; g.io=function(J){J=J.hx();var K=J.Yo.get("endscreen");return K&&K.zZ()?!0:J.JI()}; g.B4=function(J,K){J.getPresentingPlayerType()===3?J.publish("mdxautoplaycancel"):J.I4("onAutonavCancelled",K)}; g.pC=function(J){var K=mM(J.hx());return J.app.MP&&!J.isFullscreen()||J.getPresentingPlayerType()===3&&K&&K.kL()&&K.p$()||!!J.getPlaylist()}; g.LC=function(J,K){g.v4(J,"addEmbedsConversionTrackingParams",[K])}; g.Dc=function(J){return(J=g.Th(J.hx()))?J.kA():{}}; g.Qdk=function(J){J=(J=J.getVideoData())&&J.Z;return!!J&&!(!J.audio||!J.video)&&J.mimeType!=="application/x-mpegURL"}; g.dv=function(J,K,n){J=J.S_().element;var X=Dz(J.children,function(l){l=Number(l.getAttribute("data-layer"));return n-l||1}); X<0&&(X=-(X+1));nf(J,K,X);K.setAttribute("data-layer",String(n))}; g.kw=function(J){var K=J.S();if(!K.zL)return!1;var n=J.getVideoData();if(!n||J.getPresentingPlayerType()===3)return!1;var X=(!n.isLiveDefaultBroadcast||K.J("allow_poltergust_autoplay"))&&!q2(n);X=n.isLivePlayback&&(!K.J("allow_live_autoplay")||!X);var l=n.isLivePlayback&&K.J("allow_live_autoplay_on_mweb");J=J.getPlaylist();J=!!J&&J.kL();var x=n.MQ&&n.MQ.playerOverlays||null;x=!!(x&&x.playerOverlayRenderer&&x.playerOverlayRenderer.autoplay);x=n.t7&&x;return!n.ypcPreview&&(!X||l)&&!g.O0(n.QG,"ypc")&& !J&&(!g.pR(K)||x)}; S3e=function(J,K){J=$If(J.app.P6().U);J=g.z(J);for(var n=J.next();!n.done;n=J.next()){n=n.value;var X=n.getAvailableAudioTracks(),l=null;X=g.z(X);for(var x=X.next();!x.done;x=X.next())if(x=x.value,x.getLanguageInfo().getId()===K){l=x;break}l&&n.W8(l,!0)}}; gv=function(){U1.apply(this,arguments);this.requestHeaders={}}; Yw=function(){c4||(c4=new gv);return c4}; Gh=function(J,K){K?J.requestHeaders.Authorization="Bearer "+K:delete J.requestHeaders.Authorization}; g.U2=function(J){g.t.call(this);var K=this;this.dQ=J;this.QU={RB:function(){return K.dQ}}}; g.tn=function(J,K,n,X){X=X===void 0?!1:X;g.ro.call(this,K);var l=this;this.B=J;this.Aj=X;this.L=new g.gY(this);this.fade=new g.ov(this,n,!0,void 0,void 0,function(){l.Om()}); g.Z(this,this.L);g.Z(this,this.fade)}; y3=function(J){var K=J.B.getRootNode();return J.B.J("web_watch_pip")||J.B.J("web_shorts_pip")?UQ(K):document}; rt8=function(J){J.Z&&(document.activeElement&&g.XG(J.element,document.activeElement)&&J.Z.focus(),J.Z.setAttribute("aria-expanded","false"),J.Z=void 0);g.L0(J.L);J.K=void 0}; Zc=function(J,K,n){J.jO()?J.MS():J.HM(K,n)}; fC=function(J,K,n,X){X=new g.F({j:"div",UM:["ytp-linked-account-popup-button"],hj:X,D:{role:"button",tabindex:"0"}});K=new g.F({j:"div",V:"ytp-linked-account-popup",D:{role:"dialog","aria-modal":"true",tabindex:"-1"},Y:[{j:"div",V:"ytp-linked-account-popup-title",hj:K},{j:"div",V:"ytp-linked-account-popup-description",hj:n},{j:"div",V:"ytp-linked-account-popup-buttons",Y:[X]}]});g.tn.call(this,J,{j:"div",V:"ytp-linked-account-popup-container",Y:[K]},100);var l=this;this.dialog=K;g.Z(this,this.dialog); X.listen("click",function(){l.MS()}); g.Z(this,X);g.dv(this.B,this.element,4);this.hide()}; g.at=function(J,K,n,X){g.ro.call(this,J);this.priority=K;n&&g.W4(this,n);X&&this.wR(X)}; g.FR=function(J,K,n,X){J=J===void 0?{}:J;K=K===void 0?[]:K;n=n===void 0?!1:n;X=X===void 0?!1:X;K.push("ytp-menuitem");var l=J;"role"in l||(l.role="menuitem");n||(l=J,"tabindex"in l||(l.tabindex="0"));J={j:n?"a":"div",UM:K,D:J,Y:[{j:"div",V:"ytp-menuitem-icon",hj:"{{icon}}"},{j:"div",V:"ytp-menuitem-label",hj:"{{label}}"},{j:"div",V:"ytp-menuitem-content",hj:"{{content}}"}]};X&&J.Y.push({j:"div",V:"ytp-menuitem-secondary-icon",hj:"{{secondaryIcon}}"});return J}; g.W4=function(J,K){J.updateValue("label",K)}; q3=function(J){g.at.call(this,g.FR({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var K=this;this.B=J;this.Z=this.G=!1;this.Zv=J.NB();J.createServerVe(this.element,this,!0);this.T(this.B,"settingsMenuVisibilityChanged",function(n){K.NS(n)}); this.T(this.B,"videodatachange",this.U);this.listen("click",this.onClick);this.U()}; E2=function(J){return J?g.Oe(J):""}; bo=function(J){g.t.call(this);this.api=J}; An=function(J){bo.call(this,J);var K=this;jM(J,"setAccountLinkState",function(n){K.setAccountLinkState(n)}); jM(J,"updateAccountLinkingConfig",function(n){K.updateAccountLinkingConfig(n)}); J.addEventListener("videodatachange",function(n,X){K.onVideoDataChange(X)}); J.addEventListener("settingsMenuInitialized",function(){K.menuItem=new q3(K.api);g.Z(K,K.menuItem)})}; sd7=function(J){this.api=J;this.G={}}; M3=function(J,K,n,X){K in J.G||(n=new g.KG(n,X,{id:K,priority:2,namespace:"appad"}),J.api.yA([n],1),J.G[K]=n)}; N3=function(J){bo.call(this,J);var K=this;this.events=new g.gY(this);g.Z(this,this.events);this.G=new sd7(this.api);this.events.T(this.api,"legacyadtrackingpingreset",function(){K.G.G={}}); this.events.T(this.api,"legacyadtrackingpingchange",function(n){var X=K.G;M3(X,"part2viewed",1,0x8000000000000);M3(X,"engagedview",Math.max(1,n.Dm*1E3),0x8000000000000);if(!n.isLivePlayback){var l=n.lengthSeconds*1E3;oT(n)&&X.api.J("html5_shorts_gapless_ads_duration_fix")&&(l=X.api.getProgressState().seekableEnd*1E3-n.AP);M3(X,"videoplaytime25",l*.25,l);M3(X,"videoplaytime50",l*.5,l);M3(X,"videoplaytime75",l*.75,l);M3(X,"videoplaytime100",l,0x8000000000000);M3(X,"conversionview",l,0x8000000000000); M3(X,"videoplaybackstart",1,l);M3(X,"videoplayback2s",2E3,l);M3(X,"videoplayback10s",1E4,l)}}); this.events.T(this.api,g.o4("appad"),this.Z);this.events.T(this.api,g.XD("appad"),this.Z)}; R8r=function(J,K,n){if(!(n in K))return!1;K=K[n];Array.isArray(K)||(K=[K]);K=g.z(K);for(n=K.next();!n.done;n=K.next()){n=n.value;var X={CPN:J.api.getVideoData().clientPlaybackNonce};n=g.T1(n,X);X=void 0;X=X===void 0?!1:X;(X=EY(bO(n,CXq),n,X,"Active View 3rd Party Integration URL"))||(X=void 0,X=X===void 0?!1:X,X=EY(bO(n,OYV),n,X,"Google/YouTube Brand Lift URL"));X||(X=void 0,X=X===void 0?!1:X,X=EY(bO(n,HYF),n,X,"Nielsen OCR URL"));g.tE(n,void 0,X)}return!0}; Jf=function(J,K){u13(J,K).then(function(n){g.tE(K,void 0,void 0,n)})}; KA=function(J,K){K.forEach(function(n){Jf(J,n)})}; u13=function(J,K){return g.Ig(J.api.S())&&va(K)&&h2(K)?g.l7(J.api.S(),g.Yi(J.api.getVideoData())).then(function(n){var X;n&&(X={Authorization:"Bearer "+n});return X},void 0):dN()}; e8d=function(J){bo.call(this,J);this.events=new g.gY(J);g.Z(this,this.events);this.events.T(J,"videoready",function(K){if(J.getPresentingPlayerType()===1){var n,X,l={playerDebugData:{pmlSignal:!!((n=K.getPlayerResponse())==null?0:(X=n.adPlacements)==null?0:X.some(function(x){var V;return x==null?void 0:(V=x.adPlacementRenderer)==null?void 0:V.renderer})), contentCpn:K.clientPlaybackNonce}};g.vJ("adsClientStateChange",l)}})}; nA=function(J){g.F.call(this,{j:"button",UM:["ytp-button","ytp-autonav-toggle"],D:{title:"{{title}}","aria-label":"{{label}}","data-priority":"3","data-tooltip-target-id":"ytp-autonav-toggle-button"},Y:[{j:"div",V:"ytp-autonav-toggle-button-container",Y:[{j:"div",V:"ytp-autonav-toggle-button",D:{"aria-checked":"true"}}]}]});this.B=J;this.Z=[];this.G=!1;this.isChecked=!0;J.createClientVe(this.element,this,113681);this.T(J,"presentingplayerstatechange",this.iQ);this.listen("click",this.onClick);this.B.S().J("web_player_autonav_toggle_always_listen")&& z8H(this);wv(J,this.element,this);this.iQ()}; z8H=function(J){J.Z.push(J.T(J.B,"videodatachange",J.iQ));J.Z.push(J.T(J.B,"videoplayerreset",J.iQ));J.Z.push(J.T(J.B,"onPlaylistUpdate",J.iQ));J.Z.push(J.T(J.B,"autonavchange",J.WA))}; wGe=function(J){J.isChecked=J.isChecked;J.rQ("ytp-autonav-toggle-button").setAttribute("aria-checked",String(J.isChecked));var K=J.isChecked?"Autoplay is on":"Autoplay is off";J.updateValue("title",K);J.updateValue("label",K);J.B.Kh()}; PXd=function(J){return J.B.S().J("web_player_autonav_use_server_provided_state")&&Au(g.U(J.Dr()))}; IXe=function(J){bo.call(this,J);var K=this;this.events=new g.gY(J);g.Z(this,this.events);this.events.T(J,"standardControlsInitialized",function(){var n=new nA(J);g.Z(K,n);J.QO(n,"RIGHT_CONTROLS_LEFT")})}; oI=function(J,K){g.at.call(this,g.FR({role:"menuitemcheckbox","aria-checked":"false"}),K,J,{j:"div",V:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; X4=function(J,K){J.checked=K;J.element.setAttribute("aria-checked",String(J.checked))}; iY3=function(J){var K=!J.S().SO&&J.getPresentingPlayerType()!==3;return J.isFullscreen()||K}; g.lA=function(J,K,n,X){var l=J.currentTarget;if((n===void 0||!n)&&g.iU(J))return J.preventDefault(),!0;K.pauseVideo();J=g.U(l.getAttribute("href"));g.f1(J,X,!0);return!1}; g.x3=function(J,K,n){if(qw(K.S())&&K.getPresentingPlayerType()!==2){if(g.iU(n))return K.isFullscreen()&&!K.S().externalFullscreen&&K.toggleFullscreen(),n.preventDefault(),!0}else{var X=g.iU(n);X&&K.pauseVideo();g.f1(J,void 0,!0);X&&(g.Wz(J),n.preventDefault())}return!1}; mIM=function(J){J=Bwr.includes("en")?J.J("delhi_modern_web_player_icons")?{j:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},Y:[{j:"path",D:{d:"M21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V19L1.01 19.20C1.05 19.66 1.26 20.08 1.58 20.41C1.91 20.73 2.33 20.94 2.79 20.99L3 21H21L21.20 20.98C21.66 20.94 22.08 20.73 22.41 20.41C22.73 20.08 22.94 19.66 22.99 19.20L23 19V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01ZM3 19V5H21V19H3ZM6.97 8.34C6.42 8.64 5.96 9.09 5.64 9.63L5.50 9.87C5.16 10.53 4.99 11.26 5 12L5.00 12.27C5.04 12.92 5.21 13.55 5.50 14.12L5.64 14.36C5.96 14.90 6.42 15.35 6.97 15.65L7.21 15.77C7.79 16.01 8.43 16.06 9.03 15.91L9.29 15.83C9.88 15.61 10.39 15.23 10.77 14.73C10.93 14.53 11.00 14.27 10.97 14.02C10.94 13.77 10.82 13.53 10.63 13.37C10.44 13.20 10.19 13.11 9.93 13.12C9.68 13.13 9.44 13.24 9.26 13.43L9.19 13.50C9.05 13.70 8.85 13.85 8.62 13.94L8.54 13.97C8.35 14.02 8.16 14.00 7.99 13.92L7.91 13.88C7.67 13.75 7.48 13.56 7.35 13.32L7.28 13.20C7.11 12.88 7.02 12.52 7.00 12.16L7 12C6.99 11.58 7.09 11.16 7.28 10.79L7.35 10.67C7.48 10.43 7.67 10.24 7.91 10.11C8.10 10.00 8.32 9.97 8.54 10.02L8.62 10.05C8.81 10.12 8.98 10.24 9.11 10.39L9.19 10.49L9.26 10.57C9.43 10.74 9.66 10.85 9.91 10.87C10.15 10.89 10.40 10.81 10.59 10.66C10.79 10.51 10.92 10.29 10.96 10.05C11.01 9.80 10.96 9.55 10.83 9.34L10.77 9.26L10.60 9.05C10.24 8.65 9.79 8.35 9.29 8.16L9.03 8.08C8.34 7.91 7.60 8.00 6.97 8.34ZM14.97 8.34C14.42 8.64 13.96 9.09 13.64 9.63L13.50 9.87C13.16 10.53 12.99 11.26 13 12L13.00 12.27C13.04 12.92 13.21 13.55 13.50 14.12L13.64 14.36C13.96 14.90 14.42 15.35 14.97 15.65L15.21 15.77C15.79 16.01 16.43 16.06 17.03 15.91L17.29 15.83C17.88 15.61 18.39 15.23 18.77 14.73C18.93 14.53 19.00 14.27 18.97 14.02C18.94 13.77 18.82 13.53 18.63 13.37C18.44 13.20 18.19 13.11 17.93 13.12C17.68 13.13 17.44 13.24 17.26 13.43L17.19 13.50C17.05 13.70 16.85 13.85 16.62 13.94L16.54 13.97C16.35 14.02 16.16 14.00 15.99 13.92L15.91 13.88C15.67 13.75 15.48 13.56 15.35 13.32L15.28 13.20C15.11 12.88 15.02 12.52 15.00 12.16L15 12C14.99 11.58 15.09 11.16 15.28 10.79L15.35 10.67C15.48 10.43 15.67 10.24 15.91 10.11C16.10 10.00 16.32 9.97 16.54 10.02L16.62 10.05C16.81 10.12 16.98 10.24 17.11 10.39L17.19 10.49L17.26 10.57C17.43 10.74 17.66 10.85 17.91 10.87C18.15 10.89 18.40 10.81 18.59 10.66C18.79 10.51 18.92 10.29 18.96 10.05C19.01 9.80 18.96 9.55 18.83 9.34L18.77 9.26L18.60 9.05C18.24 8.65 17.79 8.35 17.29 8.16L17.03 8.08C16.34 7.91 15.60 8.00 14.97 8.34Z", fill:"white"}}]}:{j:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Y:[{j:"path",Dv:!0,D:{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"}}]}:{j:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Y:[{j:"path",Dv:!0,D:{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"}}]};J.V="ytp-subtitles-button-icon";return J}; jc=function(){return{j:"div",V:"ytp-spinner-container",Y:[{j:"div",V:"ytp-spinner-rotator",Y:[{j:"div",V:"ytp-spinner-left",Y:[{j:"div",V:"ytp-spinner-circle"}]},{j:"div",V:"ytp-spinner-right",Y:[{j:"div",V:"ytp-spinner-circle"}]}]}]}}; V9=function(J){if(document.createRange){var K=document.createRange();K&&(K.selectNodeContents(J),J=window.getSelection())&&(J.removeAllRanges(),J.addRange(K))}}; Q9=function(J){var K=J.J("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";oI.call(this,K,g.hf.Rr);var n=this;this.B=J;this.G=!1;this.Z=new g.AT(function(){g.hv(n.element,"ytp-menuitem-highlighted")},0); this.Zv=J.NB();this.setIcon({j:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},Y:[{j:"path",D:{d:"M21 7v10H3V7h18m1-1H2v12h20V6zM11.5 2v3h1V2h-1zm1 17h-1v3h1v-3zM3.79 3 6 5.21l.71-.71L4.5 2.29 3.79 3zm2.92 16.5L6 18.79 3.79 21l.71.71 2.21-2.21zM19.5 2.29 17.29 4.5l.71.71L20.21 3l-.71-.71zm0 19.42.71-.71L18 18.79l-.71.71 2.21 2.21z",fill:"white"}}]});this.subscribe("select",this.X,this);this.listen(v0,this.U);g.Z(this,this.Z)}; $3=function(J){bo.call(this,J);var K=this;this.G=!1;J.addEventListener("settingsMenuInitialized",function(){pGe(K)}); J.addEventListener("highlightSettingsMenu",function(n){pGe(K);var X=K.menuItem;n==="menu_item_cinematic_lighting"&&(g.jv(X.element,"ytp-menuitem-highlighted"),g.jv(X.element,"ytp-menuitem-highlight-transition-enabled"),X.Z.start())}); jM(J,"updateCinematicSettings",function(n){K.updateCinematicSettings(n)})}; pGe=function(J){J.menuItem||(J.menuItem=new Q9(J.api),g.Z(J,J.menuItem),J.menuItem.WW(J.G))}; Le8=function(J){bo.call(this,J);var K=this;this.events=new g.gY(J);g.Z(this,this.events);this.events.T(J,"applicationvideodatachange",function(n,X){X=X.clipConfig;n==="dataloaded"&&X&&X.startTimeMs!=null&&X.endTimeMs!=null&&K.api.setLoopRange({startTimeMs:Math.floor(Number(X.startTimeMs)),endTimeMs:Math.floor(Number(X.endTimeMs)),postId:X.postId,type:"clips"})})}; Sc=function(J){bo.call(this,J);this.events=new g.gY(J);g.Z(this,this.events);jM(J,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));jM(J,"setCreatorEndscreenHideButton",this.G.bind(this))}; ra=function(J,K,n,X){oI.call(this,"Stable Volume",g.hf.Bd);g.jv(this.element,"ytp-drc-menu-item");this.Zv=J.NB();this.X=K;this.G=n;this.hasDrcAudioTrack=X;J.addEventListener("videodatachange",this.Z.bind(this));J.J("mta_drc_mutual_exclusion_removal")&&this.T(J,"onPlaybackAudioChange",this.Z);J=this.G()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());this.setIcon({j:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},Y:[{j:"path",D:{d:"M7 13H5v-2h2v2zm3-4H8v6h2V9zm3-3h-2v12h2V6zm3 2h-2v8h2V8zm3 2h-2v4h2v-4zm-7-7c-4.96 0-9 4.04-9 9s4.04 9 9 9 9-4.04 9-9-4.04-9-9-9m0-1c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2z", fill:"white"}}]});this.subscribe("select",this.U,this);X4(this,J);this.Zv.qH(this)}; CA=function(J){bo.call(this,J);var K=this;this.events=new g.gY(J);g.Z(this,this.events);J.J("html5_show_drc_toggle")&&J.addEventListener("settingsMenuInitialized",function(){K.menuItem||(K.menuItem=new ra(K.api,K.setDrcUserPreference.bind(K),K.getDrcUserPreference.bind(K),K.Z.bind(K)),g.Z(K,K.menuItem))}); jM(this.api,"setDrcUserPreference",function(X){K.setDrcUserPreference(X)}); jM(this.api,"getDrcUserPreference",function(){return K.getDrcUserPreference()}); jM(this.api,"hasDrcAudioTrack",function(){return K.Z()}); var n;this.G=(n=g.g1("yt-player-drc-pref"))!=null?n:1;this.updateEnvironmentData()}; Os=function(J){bo.call(this,J);var K=this;this.G={};this.events=new g.gY(J);g.Z(this,this.events);this.events.T(J,"videodatachange",function(){K.onVideoDataChange()}); this.events.T(J,g.o4("embargo"),function(n){K.api.fL(!0);var X,l=(X=K.G[n.id])!=null?X:[];X=g.z(l);for(l=X.next();!l.done;l=X.next()){var x=l.value;K.api.hideControls();K.api.xO("auth",2,"This video isn't available in your current playback area",Ih({embargoed:1,id:n.id,idx:n.Z,start:n.start}));l=void 0;(x=(l=x.embargo)==null?void 0:l.onTrigger)&&K.api.I4("innertubeCommand",x)}})}; Twp=function(J,K){var n;return(n=K.onEnter)==null?void 0:n.some(J.Z)}; DIe=function(J,K){K=g.z(K);for(var n=K.next();!n.done;n=K.next()){n=n.value;var X=void 0,l=Number((X=n.playbackPosition)==null?void 0:X.utcTimeMillis)/1E3,x=void 0;X=l+Number((x=n.duration)==null?void 0:x.seconds);x="embargo_"+l;J.api.addUtcCueRange(x,l,X,"embargo",!1);n.onEnter&&(J.G[x]=n.onEnter.filter(J.Z))}}; H0=function(J){bo.call(this,J);var K=this;this.G=[];this.events=new g.gY(J);g.Z(this,this.events);jM(J,"addEmbedsConversionTrackingParams",function(n){K.api.S().Eb&&K.addEmbedsConversionTrackingParams(n)}); this.events.T(J,"veClickLogged",function(n){K.api.hasVe(n)&&(n=n.visualElement.getAsJspb(),n=fB(n,2),K.G.push(n))})}; dIF=function(J){bo.call(this,J);jM(J,"isEmbedsShortsMode",function(){return J.isEmbedsShortsMode()})}; k73=function(J){bo.call(this,J);var K=this;this.events=new g.gY(J);g.Z(this,this.events);this.events.T(J,"initialvideodatacreated",function(n){dw(DX(),16623);K.G=g.i2();var X=J.S().k7&&!n.J7;if(cD(n)&&X){dw(DX(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(n.getWatchNextResponse()){var l,x=(l=n.getWatchNextResponse())==null?void 0:l.trackingParams;x&&gw(x)}if(n.getPlayerResponse()){var V;(n=(V=n.getPlayerResponse())==null?void 0:V.trackingParams)&&gw(n)}}else dw(DX(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),n.getEmbeddedPlayerResponse()&&(V=(x=n.getEmbeddedPlayerResponse())==null?void 0:x.trackingParams)&&gw(V)}); this.events.T(J,"loadvideo",function(){dw(DX(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:K.G})}); this.events.T(J,"cuevideo",function(){dw(DX(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:K.G})}); this.events.T(J,"largeplaybuttonclicked",function(n){dw(DX(),27240,n.visualElement)}); this.events.T(J,"playlistnextbuttonclicked",function(n){dw(DX(),27240,n.visualElement)}); this.events.T(J,"playlistprevbuttonclicked",function(n){dw(DX(),27240,n.visualElement)}); this.events.T(J,"playlistautonextvideo",function(){dw(DX(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; RI=function(J,K){g.t.call(this);var n=this;this.G=null;this.X=K;K=[];for(var X=0;X<=100;X++)K.push(X/100);K={threshold:K,trackVisibility:!0,delay:1E3};(this.Z=window.IntersectionObserver?new IntersectionObserver(function(l){l=l[l.length-1];typeof l.isVisible==="undefined"?document.visibilityState==="visible"&&l.isIntersecting&&l.intersectionRatio>0?n.G=l.intersectionRatio:document.visibilityState==="hidden"?n.G=0:n.G=null:n.G=l.isVisible?l.intersectionRatio:0;typeof n.X==="function"&&n.X(n.G)},K): null)&&this.Z.observe(J)}; ct3=function(J){bo.call(this,J);var K=this;this.events=new g.gY(J);g.Z(this,this.events);this.events.T(J,"applicationInitialized",function(){gEd(K)})}; gEd=function(J){var K=J.api.getRootNode(),n,X=J.api.getWebPlayerContextConfig().embedsEnableEmc3ds?Rfr((n=K.parentElement)==null?void 0:n.parentElement)||K:K;J.G=new RI(X,function(l){l!=null&&(J.api.S().G0=l,J.api.S().Qf="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.Z(J,J.G);J.events.T(J.api,"videoStatsPingCreated",function(l){var x=J.G;x=x.G==null?null:Math.round(x.G*100)/100;l.inview=x!=null?x:void 0;x=J.api.getPlayerSize();if(x.height>0&&x.width>0){x=[Math.round(x.width),Math.round(x.height)];var V=g.bq();V>1&&x.push(V);x=x.join(":")}else x=void 0;l.size=x})}; Y3r=function(J){var K;return((K=((J==null?void 0:J.messageRenderers)||[]).find(function(n){return!!n.timeCounterRenderer}))==null?void 0:K.timeCounterRenderer)||null}; uA=function(J){g.F.call(this,{j:"div",UM:["ytp-player-content","ytp-iv-player-content"],Y:[{j:"div",V:"ytp-free-preview-countdown-timer",Y:[{j:"span",hj:"{{label}}"},{j:"span",V:"ytp-free-preview-countdown-timer-separator",hj:"\u2022"},{j:"span",hj:"{{duration}}"}]}]});this.api=J;this.G=null;this.X=this.Z=0;this.T(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; UI3=function(J,K){J.G||(J.Z=K,J.X=(0,g.a)(),J.G=new g.b1(function(){G78(J)},null),G78(J))}; G78=function(J){var K=Math,n=K.round,X=Math.min((0,g.a)()-J.X,J.Z);K=n.call(K,(J.Z-X)/1E3);J.updateValue("duration",Id({seconds:K}));K<=0&&J.G?J.stopTimer():J.G&&J.G.start()}; tb3=function(J){bo.call(this,J);var K=this;this.events=new g.gY(J);g.Z(this,this.events);this.events.T(J,"basechromeinitialized",function(){K.G=new uA(J);g.Z(K,K.G);g.dv(J,K.G.element,4);K.G.hide()})}; ec=function(J){g.F.call(this,{j:"button",UM:["ytp-fullerscreen-edu-button","ytp-button"],Y:[{j:"div",UM:["ytp-fullerscreen-edu-text"],hj:"Scroll for details"},{j:"div",UM:["ytp-fullerscreen-edu-chevron"],Y:[{j:"svg",D:{height:"100%",viewBox:"0 0 24 24",width:"100%"},Y:[{j:"path",D:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],D:{"data-priority":"2"}});this.R4=J;this.fade=new g.ov(this,250,void 0,100);this.Z=this.G=!1;J.createClientVe(this.element,this,61214);g.Z(this, this.fade);this.T(J,"fullscreentoggled",this.WW);this.T(J,"presentingplayerstatechange",this.WW);this.listen("click",this.onClick);this.WW()}; zY=function(J){bo.call(this,J);var K=this;this.events=new g.gY(J);g.Z(this,this.events);jM(this.api,"updateFullerscreenEduButtonSubtleModeState",function(X){K.updateFullerscreenEduButtonSubtleModeState(X)}); jM(this.api,"updateFullerscreenEduButtonVisibility",function(X){K.updateFullerscreenEduButtonVisibility(X)}); var n=J.S();J.J("external_fullscreen_with_edu")&&n.externalFullscreen&&qw(n)&&n.controlsType==="1"&&this.events.T(J,"standardControlsInitialized",function(){K.G=new ec(J);g.Z(K,K.G);J.QO(K.G)})}; ytq=function(J){g.F.call(this,{j:"div",V:"ytp-gated-actions-overlay",Y:[{j:"div",V:"ytp-gated-actions-overlay-background",Y:[{j:"div",V:"ytp-gated-actions-overlay-background-overlay"}]},{j:"button",UM:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],D:{"aria-label":"Close"},Y:[g.zo()]},{j:"div",V:"ytp-gated-actions-overlay-bar",Y:[{j:"div",V:"ytp-gated-actions-overlay-text-container",Y:[{j:"div",V:"ytp-gated-actions-overlay-title",hj:"{{title}}"},{j:"div",V:"ytp-gated-actions-overlay-subtitle", hj:"{{subtitle}}"}]},{j:"div",V:"ytp-gated-actions-overlay-button-container"}]}]});var K=this;this.api=J;this.background=this.rQ("ytp-gated-actions-overlay-background");this.Z=this.rQ("ytp-gated-actions-overlay-button-container");this.G=[];this.T(this.rQ("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){K.api.I4("onCloseMiniplayer")}); this.hide()}; fXH=function(J,K){var n=0;n=0;for(var X={};n l&&(l=v.width,x="url("+v.url+")")}n.background.style.backgroundImage=x;fXH(n,X.actionButtons||[]);n.show()}else n.hide()}); g.dv(this.api,this.G.element,4)}; wa=function(J){bo.call(this,J);var K=this;hn(this.api,"getSphericalProperties",function(){return K.getSphericalProperties()}); hn(this.api,"setSphericalProperties",function(){K.setSphericalProperties.apply(K,g.m(g.c3.apply(0,arguments)))}); V3(this.api,"getSphericalProperties",function(){return K.api.getPresentingPlayerType()===2?{}:K.getSphericalProperties()}); V3(this.api,"setSphericalProperties",function(){var n=g.c3.apply(0,arguments);K.api.getPresentingPlayerType()!==2&&K.setSphericalProperties.apply(K,g.m(n))})}; P0=function(J){bo.call(this,J);jM(J,"createClientVe",this.createClientVe.bind(this));jM(J,"createServerVe",this.createServerVe.bind(this));jM(J,"destroyVe",this.destroyVe.bind(this));jM(J,"hasVe",this.hasVe.bind(this));jM(J,"logClick",this.logClick.bind(this));jM(J,"logVisibility",this.logVisibility.bind(this));jM(J,"setTrackingParams",this.setTrackingParams.bind(this))}; II=function(J,K,n,X){function l(V){var v=!(V.status!==204&&V.status!==200&&!V.response),Q;V={succ:""+ +v,rc:V.status,lb:((Q=V.response)==null?void 0:Q.byteLength)||0,rt:((0,g.a)()-x).toFixed(),shost:g.PH(J),trigger:K};aXr(V,J);n&&n(V);X&&!v&&X(new ix("pathprobe.net",V))} var x=(0,g.a)();g.i9(J,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:l,onTimeout:l})}; aXr=function(J,K){var n;((n=window.performance)==null?0:n.getEntriesByName)&&(K=performance.getEntriesByName(K))&&K.length&&(K=K[0],J.pedns=(K.domainLookupEnd-K.startTime).toFixed(),J.pecon=(K.connectEnd-K.domainLookupEnd).toFixed(),J.perqs=(K.requestStart-K.connectEnd).toFixed(),FeF&&(J.perqsa=K.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; q33=function(J){FeF=J}; iA=function(J,K){this.u_=J;this.policy=K;this.playbackRate=1}; EE3=function(J,K){var n=Math.min(2.5,Rm(J.u_));J=B0(J);return K-n*J}; mD=function(J,K,n,X,l){l=l===void 0?!1:l;if(J.policy.Ub)return Math.ceil(J.policy.Ub*K);J.policy.QL&&(X=Math.abs(X));X/=J.playbackRate;var x=1/zx(J.u_);n=Math.max(.9*(X-3),Rm(J.u_)+J.u_.Z.G*x)/x*.8/(K+n);n=Math.min(n,X);J.policy.FQ>0&&l&&(n=Math.max(n,J.policy.FQ));return bY3(J,n,K)}; bY3=function(J,K,n){return Math.ceil(Math.max(Math.max(J.policy.KL,J.policy.Se*n),Math.min(Math.min(J.policy.Cv,31*n),Math.ceil(K*n))))||J.policy.KL}; Atf=function(J,K,n){n=mD(J,K.G.info.OM,n.G.info.OM,0);var X=Rm(J.u_)+n/zx(J.u_);return Math.max(X,X+J.policy.Le-n/K.G.info.OM)}; B0=function(J){return zx(J.u_,!J.policy.SO,J.policy.LG)}; pA=function(J){return B0(J)/J.playbackRate}; LA=function(J,K,n){var X=J.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],l=J.policy.playbackStartPolicy.startMinReadaheadPolicy||[];J=Infinity;K=g.z(K&&X.length>0?X:l);for(X=K.next();!X.done;X=K.next())X=X.value,l=X.minReadaheadMs||0,n<(X.minBandwidthBytesPerSec||0)||J>l&&(J=l);return J0&&(this.Z=n.MM)}; JJe=function(J,K,n,X,l){if(!X.info.C){if(n.length===0)n.push(X);else{var x;(J=(x=n.pop())==null?void 0:g.jH(x,X))?n.push(J):n.push(X)}return l}var V;(n=(V=n.pop())==null?void 0:g.jH(V,X))||(n=X);if(n.info.Z)return J.logger&&J.logger({incompleteSegment:n.info.Zr()}),l;X=J.GS(n);l=X.BW;X={clipId:X.clipId,formatId:X.formatId,startTimeMs:X.startTimeMs,durationMs:X.QT,yJ:l,Qh:l};l=Mb8(K,X.startTimeMs);if(x=n=l>=0?K[l]:null){x=X;var v=l;V=n.startTimeMs+n.durationMs;var Q=x.startTimeMs+x.durationMs;if(x.startTimeMs- V>J.Z)x=!1;else if(NwV(J,n.formatId,x.formatId))n.durationMs=Math.max(V,Q)-n.startTimeMs,n.Qh=Math.max(n.Qh,x.Qh),x=!0;else if(Math.abs(n.startTimeMs-x.startTimeMs)<=J.Z)if(n.durationMs>x.durationMs+J.Z){var S=n.formatId,r=n.yJ;v=n.Qh;n.formatId=x.formatId;n.durationMs=x.durationMs;n.yJ=x.yJ;n.Qh=x.Qh;x.formatId=S;x.startTimeMs=Q;x.durationMs=V-Q;x.yJ=r;x.Qh=v;x=!1}else n.formatId=x.formatId,x=!0;else V>x.startTimeMs&&(V>Q&&(K.splice(v+1,0,{formatId:n.formatId,startTimeMs:Q,durationMs:V-Q,yJ:x.Qh+ 1,Qh:n.Qh}),J.logger&&J.logger({splitOldStart:(S=n.startTimeMs)==null?void 0:S.toFixed(3),splitOldEnd:V==null?void 0:V.toFixed(3),splitNewStart:(r=x.startTimeMs)==null?void 0:r.toFixed(3),splitNewEnd:Q==null?void 0:Q.toFixed(3)})),n.durationMs=x.startTimeMs-n.startTimeMs,n.Qh=x.yJ-1),x=!1}x?X=n:(l+=1,K.splice(l,0,X));S=0;for(r=l+1;r=Q+n.Z?n=!0:v+n.Z=0?J:-J-2}; KZd=function(J,K){if(J.jl){var n=J.jl.FL();if(n.length!==0){if(J.X&&K){var X=J.X,l=X.info.U;!hF(n,l)&&X.info.W>0&&(0,g.a)()-J.N<5E3&&(J.logger&&J.logger({dend:X.info.Zr()}),n=Tfr(n,l,l+.01))}J.policy.pI&&J.logger&&J.logger({cbri:""+J.G});X=[];for(var x=l=0;l=V){var r=Object.assign({},J.l_[x]),C=J.HW.X.get(Tv(J.l_[x].formatId)),O=Math.max(Q,V);V=C.index.dG(O+J.Z/ 1E3);Q=C.index.getStartTime(V);var H=V+ +(Math.abs(Q-O)>J.Z/1E3);O=H+J.U;H=C.index.getStartTime(H)*1E3;x!==J.G||K?(r.yJ=O,r.startTimeMs=H):(J.logger&&J.logger({pEvict:"1",og:r.startTimeMs,adj:Q*1E3}),r.yJ=V+J.U,r.startTimeMs=Q*1E3);V=void 0;Q=((V=J.X)==null?void 0:V.info.duration)||11;x===J.G&&vJ.Z/1E3);V=Q+J.U;C=C.index.AA(Q)*1E3;r.Qh=V;r.durationMs=C-r.startTimeMs;r.yJ<=r.Qh&&X.push(r)}S=0&&Y3(J.audioTrack,J.G)>=0&&x?((J.videoTrack.C||J.audioTrack.C)&&J.loader.Zm("iterativeSeeking",{status:"done",count:J.seekCount}),J.videoTrack.C=!1,J.audioTrack.C=!1):X&&g.wT(function(){if(J.Z||!J.policy.md)tf(J);else{var V=K.startTime,v=K.duration;if(!J.policy.C){var Q=n?J.videoTrack.C:J.audioTrack.C,S=J.videoTrack.N!==-1&&J.audioTrack.N!==-1,r=J.G>=V&&J.G432E3&&dnk(J.HW);J.X&&(l=J.X,J.X=0);g.wT(function(){J.policy.C||y9(J,l,102)}); J.loader.Zm("initManifestlessSync",{st:l,ost:l+J.loader.Ti(),a:J.audioTrack.N,v:J.videoTrack.N});J.U&&(J.U.resolve(l+.1),J.U=null);J.policy.C&&y9(J,l,102)}}}; W0=function(J,K){var n=this;this.XK=J;this.requestNumber=++rJM;this.G=this.now();this.L=this.K=NaN;this.W=this.G;this.X=this.o5=this.C=0;this.N=this.G;this.Fq=this.QG=this.PW=this.KU=this.fU=this.cW=this.Z=this.U=0;this.GA=this.isActive=!1;this.iR=this.md=0;this.QU={yFW:function(){return n.qd}}; this.u_=K.u_;this.snapshot=hrH(this.u_);this.policy=this.u_.Z;this.Lg=!!K.Lg;this.gT=K.gT;this.aE=K.aE||0;this.Bp=K.Bp||0;K.mu&&(this.MQ=new vp);var X;this.qd=(X=K.qd)!=null?X:!1;this.Lg||xhM(this.u_)}; s9r=function(J){J.PW=Math.max(J.PW,J.C-J.fU);J.QG=Math.max(J.QG,J.W-J.KU);J.cW=0}; aI=function(J,K,n){jz3(J.u_,K);J.MQ&&(J.MQ.add(Math.ceil(K)-Math.ceil(J.W)),J.MQ.add(Math.max(0,Math.ceil(n/1024)-Math.ceil(J.C/1024))));var X=K-J.W,l=n-J.C;J.o5=l;J.Fq=Math.max(J.Fq,l/(X+.01)*1E3);J.W=K;J.C=n;J.cW&&n>J.cW&&s9r(J)}; F4=function(J,K){J.url=K;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; qO=function(J,K){W0.call(this,J,K);this.vW=this.a5=!1;this.j_=this.Aj=Infinity;this.Cv=NaN;this.Gi=!1;this.wQ=NaN;this.wN=this.kF=this.fv=0;this.Rw=K.Rw||1;this.D6=K.D6||this.Rw;this.T0=K.T0;this.BW=K.BW;this.Ey=K.Ey;Ce8(this);this.NR(this.G);this.Dm=(this.wQ-this.G)/1E3}; OTM=function(J){var K=J.kF||J.fv;return K?J.snapshot.delay+Math.min(J.Bp,(J.L-J.K)/1E3)+K:J.Dm}; Es=function(J,K,n){if(!J.Lg){K=Math.max(K,.01);var X=J.aE?Math.max(K,n/J.aE):K,l=J.u_.Z.X;l&&(X=K,J.aE&&(X=Math.max(K,n/J.aE*l)));CR(J.u_,K,n,X)}}; HT3=function(J){return(J.N-J.G)/1E3}; Ce8=function(J){J.Cv=J.G+J.snapshot.delay*1E3;J.Gi=!1}; bA=function(J,K){if(J.T0&&J.BW!==void 0&&J.Ey!==void 0){var n=Math,X=n.min,l=J.Aj;var x=J.T0;var V=J.G;if(RYd(x,J.BW))x=K;else{var v=0;x.XO&&(v=.2);x=V+(x.Bp+v)*1E3}J.Aj=X.call(n,l,x);n=Math;X=n.min;l=J.j_;x=J.T0;V=J.G;v=umU(x,J.BW,J.Ey);v!==2&&(K=v?K:V+x.Bp*1E3,x.XO&&(K+=x.Bp*1E3));J.j_=X.call(n,l,K);J.Aj<=J.G?Ce8(J):(J.Cv=J.Aj,J.Gi=!0)}}; eYp=function(J,K){if(J.Il(K,1)){var n=J.getUint8(K);n=n<128?1:n<192?2:n<224?3:n<240?4:5}else n=0;if(n<1||!J.Il(K,n))return[-1,K];if(n===1)J=J.getUint8(K++);else if(n===2)n=J.getUint8(K++),J=J.getUint8(K++),J=(n&63)+64*J;else if(n===3){n=J.getUint8(K++);var X=J.getUint8(K++);J=J.getUint8(K++);J=(n&31)+32*(X+256*J)}else if(n===4){n=J.getUint8(K++);X=J.getUint8(K++);var l=J.getUint8(K++);J=J.getUint8(K++);J=(n&15)+16*(X+256*(l+256*J))}else n=K+1,J.focus(n),ez(J,n,4)?J=YHp(J).getUint32(n-J.Gw,!0):(X= J.getUint8(n+2)+256*J.getUint8(n+3),J=J.getUint8(n)+256*(J.getUint8(n+1)+256*X)),K+=5;return[J,K]}; Af=function(J){this.XK=J;this.G=new Og}; MO=function(J,K){this.info=J;this.callback=K;this.state=1;this.rf=this.Fo=!1;this.uY=null}; zY7=function(J){return g.WH(J.info.Lv,function(K){return K.type===3})}; NO=function(J,K,n,X){var l=this;X=X===void 0?{}:X;this.policy=K;this.XK=n;this.status=0;this.G=new Og;this.Z=0;this.o4=this.U=this.X=!1;this.xhr=new XMLHttpRequest;this.xhr.open(X.method||"GET",J);if(X.headers)for(J=X.headers,K=g.z(Object.keys(J)),n=K.next();!n.done;n=K.next())n=n.value,this.xhr.setRequestHeader(n,J[n]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return l.XZ()}; this.xhr.onload=function(){return l.onDone()}; this.xhr.onerror=function(){return l.onError()}; this.xhr.fetch(function(x){l.G.append(x);l.Z+=x.length;x=(0,g.a)();l.XK.cL(x,l.Z)},function(){},X.body||null)}; KN=function(){this.Z=this.Md=0;this.G=Array.from({length:JO.length}).fill(0)}; wo3=function(){}; Pef=function(){this.startTimeMs=(0,g.a)();this.G=!1}; IDq=function(){this.G=new wo3}; iTF=function(J,K,n,X){X=X===void 0?1:X;n>=0&&(K in J.G||(J.G[K]=new KN),J.G[K].sR(n,X))}; BU3=function(J,K,n,X,l){var x=(0,g.a)(),V=l?l(K):void 0,v;l=(v=V==null?void 0:V.Md)!=null?v:1;if(l!==0){var Q;v=(Q=V==null?void 0:V.profile)!=null?Q:n;iTF(J,v,x-X,l)}return K}; nN=function(J,K,n,X,l){if(K&&typeof K==="object"){var x=function(V){return BU3(J,V,n,X,l)}; if($E(K))return K.then(x);if(QW(K))return O3(K,x)}return BU3(J,K,n,X,l)}; mKf=function(){}; pop=function(J,K){this.Z=(new TextEncoder).encode(J);this.G=(new TextEncoder).encode(K)}; eoe=function(J,K){var n,X,l;return g.G(function(x){if(x.Z==1){if(!K)return x.return(K);n=o5.Gl();X=new g.em(J.Z);return g.d(x,X.encrypt(K,J.G),2)}l=x.G;o5.tK("woe",n,Math.ceil(K.byteLength/16));return x.return(l)})}; iyp=function(J,K){var n,X,l;return g.G(function(x){if(x.Z==1){if(!K)return x.return(K);n=o5.Gl();X=new g.em(J.Z);return g.d(x,X.decrypt(K,J.G),2)}l=x.G;o5.tK("wod",n,Math.ceil(K.byteLength/16));return x.return(l)})}; TU8=function(J,K){var n=this;this.G=J;this.XK=K;this.loaded=this.status=0;this.error="";J=kf(this.G.get("range")||"");if(!J)throw Error("bad range");this.range=J;this.Z=new Og;LZM(this).then(function(){n.XK.Qs()},function(X){n.error=""+X||"unknown_err"; n.XK.Qs()})}; LZM=function(J){var K,n,X,l,x,V,v,Q,S,r,C,O,H,R,w;return g.G(function(P){if(P.Z==1){J.status=200;K=J.G.get("docid");n=sQ(J.G.get("fmtid")||"");X=J.G.get("lmt")||"0";l=+(J.G.get("csz")||0);if(!K||!n||!l)throw Error("Invalid local URL");J.G.get("ck")&&J.G.get("civ")&&(x=new pop(J.G.get("ck"),J.G.get("civ")));V=J.range;v=Math.floor(V.start/l);Q=Math.floor(V.end/l);S=v}if(P.Z!=5)return S<=Q?g.d(P,BpU(K,n,X,S,x),5):P.EM(0);r=P.G;if(r===void 0)throw Error("invariant: data is undefined");C=S*l;O=(S+1)*l; H=Math.max(0,V.start-C);R=Math.min(V.end+1,O)-(H+C);w=new Uint8Array(r.buffer,H,R);J.Z.append(w);J.loaded+=R;J.loaded=400?(J.lastError="net.badstatus",!0):(l===void 0?0:l)?(J.lastError="ump.spsrejectfailure",!0):n||X!==void 0&&X?!1:(J.lastError=K===204?"net.nocontent":"net.connect",!0)}; $5=function(J,K){if(J.policy.mR)return!1;var n=K.getResponseHeader("content-type"),X=K.YS();J=!X||X<=J.policy.xY;return(!K.QD()||!n||n.indexOf("text/plain")!==-1)&&J}; tdV=function(J,K){var n="";K=K.W0();K.getLength()<=J.policy.xY&&(n=UKF(J,K.ju()));return n}; UKF=function(J,K){var n=Pg(K);return A6(n)?(J.logger.debug(function(){return"Redirecting to "+n}),n):""}; VU=function(J){return ID(J.X,LT(J.pE.wG))}; yJk=function(J){var K=J.timing.jF();K.shost=LT(J.pE.wG);return K}; ZT8=function(J,K){return(J==null?void 0:J.maxWidth)>(K==null?void 0:K.maxWidth)||(J==null?void 0:J.maxHeight)>(K==null?void 0:K.maxHeight)}; fDd=function(J,K){for(var n=g.z(K.keys()),X=n.next();!X.done;X=n.next())if(X=K.get(X.value),X.length!==0){g.du(X,function(v,Q){return Q.maxFramerate-v.maxFramerate}); for(var l=[X[0]],x=0,V=1;VJ.G||n.push(X)}return n}; SY=function(J,K,n){var X=FZe[J]||[];n.J("html5_shorts_onesie_mismatched_fix")&&(X=qa8[J]||[]);K.push.apply(K,g.m(X));n.J("html5_early_media_for_drm")&&K.push.apply(K,g.m(EKr[J]||[]))}; KTp=function(J,K){var n=g.jn(J),X=J.S(),l=X.C;X=X.J("html5_shorts_onesie_mismatched_fix");var x=J.Sz();if(X){if(!l.Z){if(x&&rk)return rk;if(sK)return sK}}else if(sK&&!l.Z)return sK;var V=[],v=[],Q={},S=CN.concat(bTd);X&&(S=CN.concat(AJ7));J.J("html5_early_media_for_drm")&&(S=S.concat(MdV),J.J("allow_vp9_1080p_mq_enc")&&S.push(NU8));var r=[].concat(g.m(JGF));J.J("html5_iamf_audio_onesie_fmt")&&r.push(["773"]);S=g.z(S);for(var C=S.next();!C.done;C=S.next()){var O=!1;C=g.z(C.value);for(var H=C.next();!H.done;H= C.next()){H=H.value;var R=jL(H,x&&X);if(R&&R.video&&!(Eu(R)&&!n.Aj&&R.video.qualityOrdinal>n.rz)){var w=g.Qg(J.S().experiments,"html5_drm_byterate_soft_cap");w>0&&pzq(R)&&R.OM>w||(O?(V.push(H),SY(H,V,J)):(R=ue(n,R,l),R===!0?(O=!0,V.push(H),SY(H,V,J)):Q[H]=R))}}}r=g.z(r);for(S=r.next();!S.done;S=r.next())for(S=g.z(S.value),O=S.next();!O.done;O=S.next())if(O=O.value,(C=DhF(O))&&C.audio&&(J.J("html5_onesie_51_audio")||!bx(C)&&!Al(C)))if(C=ue(n,C,l),C===!0){v.push(O);SY(O,v,J);break}else Q[O]=C;if(J.J("html5_block_onesie_hqa_fmt_by_default")&& !J.J("html5_enable_audio_quality_setting"))for(J=g.z(["141","774"]),r=J.next();!r.done;r=J.next())r=r.value,v.includes(r)&&(g.RH(v,r),Q[r]="blkhqa");n.Z&&K("orfmts",Q);if(X)return l.Z&&(l.Z=!1,rk=sK=void 0),x?rk={video:V,audio:v}:sK={video:V,audio:v};sK={video:V,audio:v};l.Z=!1;return sK}; g.XmU=function(J,K,n){var X=n.C,l=[],x=[],V=n.J("html5_shorts_onesie_mismatched_fix");J=J.Sz();var v=CN.concat(bTd);V&&(v=CN.concat(AJ7));n.J("html5_early_media_for_drm")&&(v=v.concat(MdV),n.J("allow_vp9_1080p_mq_enc")&&v.push(NU8));var Q=[].concat(g.m(JGF));n.J("html5_iamf_audio_onesie_fmt")&&Q.push(["773"]);v=g.z(v);for(var S=v.next();!S.done;S=v.next()){S=g.z(S.value);for(var r=S.next();!r.done;r=S.next()){r=r.value;var C=jL(r,J&&V);if(C&&C.video){var O=g.Qg(n.experiments,"html5_drm_byterate_soft_cap"); if(!(O>0&&pzq(C)&&C.OM>O)&&ue(K,C,X)===!0){l.push({videoCodec:nfF[fJ[r]],maxWidth:C.video.width,maxHeight:C.video.height,maxFramerate:C.video.fps});break}}}}V=g.z(Q);for(J=V.next();!J.done;J=V.next())for(J=g.z(J.value),Q=J.next();!Q.done;Q=J.next())if(Q=Q.value,(v=DhF(Q))&&v.audio&&(n.J("html5_onesie_51_audio")||!bx(v)&&!Al(v))&&ue(K,v,X)===!0){x.push({audioCodec:ofk[fJ[Q]],numChannels:v.audio.numChannels});break}return{videoFormatCapabilities:l,audioFormatCapabilities:x}}; H6=function(J){var K={},n=J.dQ,X=J.ix,l=n.getVideoData(),x=WG(0),V=n.getPlayerSize(),v=n.getVisibilityState();if(X.J("html5_enable_audio_quality_setting")){var Q=g.Qg(X.experiments,"html5_default_audio_quality_setting_lr"),S;K.p8=(S=l58[Q])!=null?S:0}x&&(K.sE=x,K.lastManualDirection=qYk(),x=KO3()||0,x>0&&(x=(X.J("html5_use_date_now_for_local_storage")?Date.now():(0,g.a)())-x,X.J("html5_use_date_now_for_local_storage")?x>0&&(K.timeSinceLastManualFormatSelectionMs=x):K.timeSinceLastManualFormatSelectionMs= x));x=X.J("html5_use_streamer_bandwidth_for_low_latency_live")&&l.isLowLatencyLiveStream;if(X.schedule.GA&&!x){var r;x=X.J("html5_disable_bandwidth_cofactors_for_sabr_live")?!((r=J.xo)==null||!r.SO):!1;K.hn=zx(X.schedule,!x)}x=g.bq();Q=g.G2.medium;S=Math.floor(Q*16/9);r=l.Sz()?Q:S;Q=l.Sz()?S:Q;S=V.width*x;V=V.height*x;X.J("html5_sabr_use_container_size")&&(V=n.uI(),S=V.width,V=V.height);K.P4=Math.max(S,r);K.B4=Math.max(V,Q);K.visibility=v;K.Rf4=BC();K.hE=n.jy()*1E3;v=J.dQ.v7();var C,O,H,R,w,P;K.xkv= {defaultPolicy:(v==null?void 0:(C=v.HG)==null?void 0:C.G)||0,smooth:(v==null?void 0:(O=v.Y3)==null?void 0:O.G)||0,visibility:(v==null?void 0:(H=v.GJ)==null?void 0:H.G)||0,iU:(v==null?void 0:(R=v.wj)==null?void 0:R.G)||0,performance:(v==null?void 0:(w=v.tX)==null?void 0:w.G)||0,speed:(v==null?void 0:(P=v.zG)==null?void 0:P.G)||0};var B;K.roQ=(v==null?void 0:(B=v.dI)==null?void 0:B.G)||0;K.a$=J.a$&&J.a$.length>0?J.a$:[1,2];J.sabrLicenseConstraint&&(K.sabrLicenseConstraint=J.sabrLicenseConstraint);if(X.J("html5_onesie_media_capabilities")|| X.J("html5_enable_server_format_filter"))K.Jz=3;X.J("html5_onesie_audio_only_playback")&&Xr(l)&&(K.Jz=1);var p;((p=J.xo)==null?0:p.PM)&&J.C0&&(K.Jz=K.Jz===void 0?7:K.Jz|4);C=l.zL?l.zL:g.jn(l);X.J("html5_onesie_media_capabilities")&&(K.mediaCapabilities=g.XmU(l,C,X));var k;if((k=J.xo)==null?0:OK(k)){H=X.C;k=[];O=[];R=new Map;w=Array.from(H.G.values());w=g.z(w);for(P=w.next();!P.done;P=w.next())B=P.value,B.Mp?O.push({audioCodec:ofk[B.YF],numChannels:B.numChannels,spatialCapabilityBitmask:xQd[B.YF]}): (p=nfF[B.YF],P={videoCodec:p,maxWidth:B.maxWidth||0,maxHeight:B.maxHeight||0,maxFramerate:B.maxFramerate||0,is10BitSupported:B.RU||!1},B.maxBitrateBps&&(P.maxBitrateBps=B.maxBitrateBps,v=jL(B.itag),V=void 0,((V=v)==null?0:V.video)&&ue(C,v,H)===!0&&(v=v.OM*8,v>P.maxBitrateBps&&(P.maxBitrateBps=v))),B=p+"_"+B.RU,p=R.get(B)||[],p.push(P),R.set(B,p));k=fDd(k,R);H={};X.J("html5_ssff_denylist_opus_low")&&(H={itagDenylist:[249,350]});K.mediaCapabilities={videoFormatCapabilities:k,audioFormatCapabilities:O, hdrModeBitmask:3,perPlaybackAttributes:H}}var c;if((c=J.xo)==null?0:c.G){K.hv=C.hv;var y;K.rz=(y=J.xo)==null?void 0:y.rz}X.kO&&(K.G3=X.kO);K.u4=J.rO;K.p6=J.p6;K.ZV=J.ZV;K.M8=J.M8;J.rh&&(K.WWQ=(0,g.a)()-J.rh);J.isPrefetch&&X.J("html5_report_prefetch_requests")&&(K.isPrefetch=!0);nR||(K.bvG=!0);c=Rm(X.schedule)*1E3;c>0&&(K.kK=c);var A;((A=J.xo)==null?0:A.FX)&&J.eE&&J.eE0?q:X.schedule.interruptions[0]||0);var or;if((or=J.xo)==null?0:or.vW)K.xB=J.xB;if(l.Yk||X.Dm)K.audioTrackId=l.Yk||X.Dm;if(tk(l)&&!K.audioTrackId){var lF;a:{var J7,h7,M;or=(J7=l.playerResponse)==null?void 0:(h7=J7.playerConfig)==null?void 0:(M=h7.compositeVideoConfig)==null?void 0:M.sourceConfigs;var zM,B3;J7=(lF= l.playerResponse)==null?void 0:(zM=lF.playerConfig)==null?void 0:(B3=zM.compositeVideoConfig)==null?void 0:B3.defaultActiveSourceVideoId;if(or&&J7)for(lF=g.z(or),zM=lF.next();!zM.done;zM=lF.next())if(zM=zM.value,zM.videoId===J7&&zM.audioTracks)for(zM=g.z(zM.audioTracks),B3=zM.next();!B3.done;B3=zM.next())if(B3=B3.value,B3.isDefaultForSource){lF=B3.id||"";break a}lF=""}K.audioTrackId=lF;l==null||l.Zm("misstrkchg",{"default":K.audioTrackId})}var fU;if((fU=J.xo)==null?0:fU.K4)if(J=i17())K.detailedNetworkType= jDH[J]||jDH.other;X.J("html5_enable_voice_boost")&&(K.XOA=X.xd);return K}; R5=function(J,K,n,X,l,x,V){var v={};K&&(v.cP=K);if(!J)return v;v.playbackCookie=n==null?void 0:n.playbackCookie;l&&(v.Y_=l);v.Eh=[];v.c8=[];if(V==null?0:V.size)for(K=g.z(V.values()),n=K.next();!n.done;n=K.next())v.c8.push(n.value);if(J.sabrContextUpdates.size>0)for(K=g.z(J.sabrContextUpdates.values()),n=K.next();!n.done;n=K.next())Vok(v,n.value,X);xi(J)&&x&&Vok(v,x,X);J.kP&&(v.Zlj=J.kP);X=J.S().G;v.clientInfo={clientName:hbV[X.c.toUpperCase()]||0};X.cbrand&&(v.clientInfo.deviceMake=X.cbrand);X.cmodel&& (v.clientInfo.deviceModel=X.cmodel);X.cver&&(v.clientInfo.clientVersion=X.cver);X.cos&&(v.clientInfo.osName=X.cos);X.cosver&&(v.clientInfo.osVersion=X.cosver);X=J.S();X.J("html5_sabr_enable_server_xtag_selection")&&X.ih&&(v.clientInfo.hl=X.ih);J.N1&&(v.N1=J.N1);return v}; Vok=function(J,K,n){var X=K.type||0;(n==null?0:n.has(X))?J.c8.push(K):J.Eh.push(X)}; k3=function(J,K,n,X,l,x){var V=x===void 0?{}:x;var v=V.g7===void 0?[]:V.g7;var Q=V.Tj===void 0?!1:V.Tj;var S=V.hk===void 0?0:V.hk;var r=V.poToken===void 0?"":V.poToken;var C=V.Oa===void 0?void 0:V.Oa;var O=V.OW===void 0?"":V.OW;var H=V.HO===void 0?0:V.HO;var R=V.Ui===void 0?new Uint8Array(0):V.Ui;var w=V.F0===void 0?!1:V.F0;x=V.Pa===void 0?0:V.Pa;V=V.cP===void 0?void 0:V.cP;MO.call(this,K,l);var P=this;this.policy=J;this.logger=new g.XI("dash/request");this.EV=this.RO=0;this.Cx=!1;this.Pq=this.hm= null;this.vN=!1;this.Ui=this.HO=null;this.QF=this.Ts=!1;this.jL=null;this.Pa=this.No=0;this.Xj=!1;this.QU={RZ:function(p){P.RZ(p)}, utF:function(){return P.uY}, St5:function(p){P.uY=p}, L8F:function(p){P.RO=p}, F8_:function(p){P.cM.lastError=p}, Wr:function(){return P.xhr}}; this.timing=new qO(this,n);this.Tj=Q;this.HO=H;this.Ui=R;this.pE=g.qQ(this.info,this.policy,X);this.pE.set("rn",this.wV().toString());this.pE.set("rbuf",(S*1E3).toFixed().toString());this.Tj&&this.pE.set("smb","1");this.policy.D5&&r&&this.pE.set("pot",r);O&&this.pE.set("bbs",O);this.policy.useUmp&&!TJ(this.pE.wG)&&(this.z0=new Af(this),this.pE.set("ump","1"),this.pE.set("srfvp","1"));if(J=this.policy.Zb?this.policy.OH&&!isNaN(this.info.Ey)&&this.info.Ey>this.policy.Wu?!1:!0:!1)K=null,this.policy.cV&& this.policy.XN?K=[1]:w&&(K=[]),K!=null&&(this.policy.L4&&K.push(2),this.pE.set("defsel",K.join(",")));this.cM=new jY(this,this.policy,this.pE,this.info.Ax,this.timing,this.logger,X,C);this.g7=v||null;this.rf=vfU(this);gKU(this.cM);X=void 0;if(this.policy.RR||this.z0||this.policy.PW)X={method:"POST"},v=(0,g.u6)([120,0]),C={},this.policy.Cu&&V&&(V=R5(void 0,V),C.hp=V),this.policy.ZN&&this.Ui&&(C.videoPlaybackUstreamerConfig=this.Ui),this.policy.PW&&(V=this.info.U)&&Object.assign(C,V),Object.keys(C).length> 0?X.body=g.Eg(C,g.le):X.body=v;if(this.HO&&this.Ui){this.pE.set("iwts","1");X={method:"POST"};V={M8:this.HO*1E3};var B;v=(B=this.info.U)==null?void 0:B.ax;B=g.Eg({Nc:V,ax:v||void 0,videoPlaybackUstreamerConfig:this.Ui},g.le);X.body=B}try{this.xhr=Xp(this.pE,this.policy.W,this.timing,J,X),this.cM.Z.start(),x&&(this.UA=new g.AT(this.nB,x,this),this.UA.start(x+(this.timing.u_.L.mW()||0)*1E3)),this.policy.wm&&F4(this.timing,this.M_()),this.logger.debug(function(){return"Sent, itag="+P.pE.get("itag")+ " seg="+P.info.Lv[0].BW+" range="+P.pE.get("range")+" time="+Math.round(P.info.Lv[0].U)+"-"+Math.round(g.$r(P.info.Lv).N)+" rtp="+(P.timing.Hf()-Date.now()).toFixed(0)}),g.wT(function(){})}catch(p){QDk(this,p,!0)}}; vfU=function(J){if(!(FY(J.info)&&J.info.qd()&&J.policy.o2&&J.g7)||J.info.Ax.X>=2||WG()>0||!M1M())return!1;var K=J.pE.get("aitags");if(!K)return!1;K=sQ(K).split(",");for(var n=[],X=g.z(J.g7),l=X.next();!l.done;l=X.next())l=l.value,g.O0(K,l)&&n.push(l);if(!n.length)return!1;J.pE.set("altitags",g.rs(n.join(",")));return!0}; QDk=function(J,K,n){n=n===void 0?!1:n;g.ko(K);J.cM.lastError="player.exception";J.errorMessage=K.name+"_"+K.message;n?g.wT(function(){v6(J.cM)}):v6(J.cM)}; $QF=function(J,K){J.timing.GA=!0;J.xhr.QD()&&J.timing.wT();if(J.policy.KU){var n;(n=J.UA)==null||n.stop()}x5(J.uY,K,!1)}; ST3=function(J,K){J.info=K;if(J.uY){var n=J.uY;K=K.Lv;(K.length!==n.Lv.length||K.length0){K=g.z(K.Lv);for(var n=K.next();!n.done;n=K.next()){var X=void 0;J+=((X=n.value.range)==null?void 0:X.length)||0}return J}if(K.hf.length>0)for(n=g.z(K.hf),X=n.next();!X.done;X=n.next())J+=X.value.kf||0;return J+K.rU}; pN=function(J,K){if(I5){var n=0;J=J.oZ.get(K);if(J==null||!J.NP)return 0;J=g.z(J.NP.values());for(K=J.next();!K.done;K=J.next())n+=K.value.data.getLength();return n}return((n=J.oZ.get(K))==null?void 0:n.fH.getLength())||0}; LN=function(J,K){J=J.oZ.get(K);if(I5){if(J==null||!J.wd)return!1;K=J.NP.size>0;return J.kE.length>0||K}return!(J==null||!J.wd)&&!(J==null||!J.fH.getLength())}; RbF=function(J,K){var n=J.oZ.get(K),X=HDq(J,K),l=!X&&!!n.bytesReceived;if(I5){var x;if((x=J.HW)==null?0:x.qS){J=g.z(n.NP.values());for(K=J.next();!K.done;K=J.next())if(!K.value.QV)return!1;return l}}else if(x=J.DN(K),l&&J.G&&x!==void 0)return x;return(l||n.bytesReceived===X)&&n.xb+pN(J,K)===n.bytesReceived}; uYF=function(J,K,n){J.oZ.set(K,{fH:new Og,xb:0,bytesReceived:0,rU:0,Eu:!1,Kl:!1,DN:!1,Mp:n,ma:[],Lv:[],hf:[],wd:!1,NP:new Map,W_:new Map,kE:[]});J.logger.debug(function(){return"[initStream] formatId: "+K})}; eb3=function(J,K,n,X){n.Lv.push.apply(n.Lv,g.m(X));if(I5){n.W_.has(K)||n.W_.set(K,[]);var l;(l=n.W_.get(K)).push.apply(l,g.m(X))}else if(n.uY)for(J=g.z(X),K=J.next();!K.done;K=J.next())n.uY.Lv.push(K.value);else{n.uY=new l6(J.xo,[].concat(g.m(n.Lv)));var x;((x=J.xo)==null?0:x.OY)&&g.Z(J,n.uY)}}; zb3=function(J,K,n){var X,l=(X=J.HW)==null?void 0:X.X.get(K);if(!l)return[];if(n.Yd){var x;return((x=l.Wo(0,n.clipId))==null?void 0:x.Lv)||[]}if(l.NV()){var V=n.startMs,v=n.durationMs;X=1E3;var Q;if(((Q=J.xo)==null?0:Q.G)&&n.timeRange){var S;V=(S=n.timeRange.startTicks)!=null?S:-1;var r;v=(r=n.timeRange.P2)!=null?r:-1;var C;X=(C=n.timeRange.timescale)!=null?C:-1}if(n.fY<0||n.Av<0||v<0||V<0||n.kf<0||X<0)return B6(J,K),[];J=gZ(n.fY,n.kf);K=n.mI||0;return[new Yf(3,l,J,"makeSliceInfosMediaBytes",n.Av- 1,V/X,v/X,K,J.length-K,void 0,n.fJ,n.clipId)]}if(n.Av<0)return B6(J,K),[];var O;return((O=J.HW)==null?0:O.qS)?(K=l.sY,Q=K*l.info.OM,S=n.mI,((v=J.xo)==null?0:v.uV)&&n.timeRange&&!S&&(V=n.timeRange.startTicks/n.timeRange.timescale),[new Yf(3,l,void 0,"makeSliceInfosMediaBytes",n.Av,V,K,S,Q,!0,n.fJ,n.clipId)]):[]}; wm3=function(J,K,n){J.HW=K;J.xo=n;K=g.z(J.oZ);for(n=K.next();!n.done;n=K.next()){var X=g.z(n.value);n=X.next().value;X=X.next().value;for(var l=g.z(X.ma),x=l.next();!x.done;x=l.next()){x=x.value;var V=zb3(J,n,x);eb3(J,x.Ip,X,V)}}}; TL=function(J,K,n,X){J.logger.debug(function(){return"[addStreamData] formatId: "+n+",headerId: "+K+" bytes: "+X.getLength()}); (J=J.oZ.get(n))&&!J.Kl&&(I5?(J.NP.has(K)||J.NP.set(K,{data:new Og,U1:0,QV:!1}),Hg(J.NP.get(K).data,X)):Hg(J.fH,X),J.bytesReceived+=X.getLength(),J.Eu=!0)}; i6=function(J,K){J.logger.debug(function(){return"[closeStream] formatId: "+K}); var n=J.oZ.get(K);n&&!n.Kl&&(n.Kl=!0,n.Tc&&n.Tc(),P3e(J)&&J.U.Vr())}; P3e=function(J){J=g.z(J.oZ.values());for(var K=J.next();!K.done;K=J.next())if(!K.value.Kl)return!1;return!0}; I5H=function(J){I5=J}; DF=function(J,K,n,X,l,x,V){g.t.call(this);this.policy=J;this.info=K;this.HW=n;this.XK=l;this.logger=new g.XI("sabr");this.z0=new Af(this);this.jG=new wk(this);this.zn=new P6(this);this.state=1;this.UI=!1;this.HT=0;this.clipId="";this.IE=-1;this.hV=0;this.Mt=-1;this.Xj=this.VC=!1;this.mJ=0;this.TN=!1;this.policy.JD?this.Y4=new eY(this,x):this.Y4=new qO(this,x);this.pE=this.policy.vW?K.b2:g.U(iDk(K,this.policy,X));this.pE.set("rn",""+this.wV());this.pE.set("alr","yes");wm3(this.zn,n,J);this.cM=new jY(this, this.policy,this.pE,K.Ax,this.Y4,this.logger,X,V,this.policy.enableServerDrivenRequestCancellation);gKU(this.cM);var v;if((v=this.policy)==null?0:v.OY)g.Z(this,this.zn),g.Z(this,this.cM);J=K.Z;K={method:"POST",body:J};J&&(this.hV=J.length);try{this.xhr=Xp(this.pE,this.policy.W,this.Y4,nR,K),this.policy.wm&&F4(this.Y4,this.M_()),this.cM.Z.start()}catch(Q){g.gG(Q)}}; BZq=function(J){J.policy.zt&&J.Mr&&!J.TN?J.TN=!0:J.Y4.wT()}; mQk=function(J,K){var n=-1,X=-1,l=-1,x;if((x=J.Cz)==null?0:x.items)for(J=g.z(J.Cz.items),x=J.next();!x.done;x=J.next())x=x.value,K=v,Q=J.HW.isManifestless&&J.policy.aJ,V){var S;if(((S=J.G)==null?void 0:S.QB.event)==="predictStart"&&J.G.BWJ.N&&(J.N=NaN,J.W=NaN);J.G&&J.G.BW===K?WTq(J,K,n,J.G,l):J.Z===1&&c6(J,5,"noad")}; a53=function(J,K,n,X,l){X.OS?c6(J,4,"cue"):(J.N=K,J.W=n,J.Zm("sdai",{joinad:J.Z,sg:J.N,st:J.W.toFixed(3)}),J.K=Date.now(),c6(J,2,J.Z===3?"staftpred":"join"),l.wX(X.QB))}; WTq=function(J,K,n,X,l){if(l&&X){var x=X.QB,V=l.Nm(x);x.event==="predictStart"&&(J.QG=K);J.Zm("sdai",{onqevt:x.event,sq:K,mt:n,gab:V,cst:x.startSecs,cueid:J.policy.Fa&&(V||x.event==="start")?x.identifier:void 0},!0);if(V)if(x.event!=="predictStart")x.event==="start"&&J.QG===K-1&&J.Zm("sdai",{gabonstart:K}),a53(J,K,n,X,l);else if(J.policy.H3)c6(J,3,"predict");else{var v=K+Math.max(Math.ceil(-x.G/5E3),1);V=Math.floor(n-x.G/1E3);J.policy.X?J.C=V:J.U=v;J.Zm("sdai",{onpred:n,estsq:v,estmt:V.toFixed(3)}); Y5(J.loader,V,V,v);J.K=Date.now();c6(J,3,"predict");l.wX(X.QB)}else J.Z===1?((v=J.X)==null?0:v.Nt(n))?(Y5(J.loader,n,n,K),c6(J,4,"sk2head")):c6(J,5,"nogab"):x.event==="predictStart"?J.policy.X&&J.C>0?(n=Math.floor(n-x.G/1E3),J.C!==n&&J.Zm("sdai",{updateSt:n,old:J.C}),J.C=n):J.U>0&&(n=K+Math.max(Math.ceil(-x.G/5E3),1),J.U!==n&&(J.Zm("sdai",{updateSt:n,old:J.U}),J.U=n)):J.policy.H3&&J.Z===3&&a53(J,K,n,X,l);var Q,S;if(J.NH&&x.event==="start"&&((Q=J.G)==null?void 0:Q.QB.event)!=="predictStart"&&((S=J.G)== null?void 0:S.BW)===K-1){var r;J.Zm("sdai",{ovlpst:(r=J.G)==null?void 0:r.QB.event,sq:K})}}else J.Zm("sdai",{nulldec:1,sq:K,mt:n.toFixed(3),evt:(X==null?void 0:(x=X.QB)==null?void 0:x.event)||"none"})}; qTk=function(J,K,n){if(J.policy.tv&&J.policy.X)return!(J.Z===1||J.Z===2||!J.policy.H3&&J.Z===3&&n>=J.U);if(J.Z===1||J.Z===2)return!1;if(J.Z!==0&&K===J.audioTrack){if(J.policy.X)return FTU(J.videoTrack,n)||FTU(J.videoTrack,n+1);J=GL(J.videoTrack);if(n>(J?J.BW:-1))return!1}return!0}; UK=function(J,K,n){return(n<0||n===J.N)&&!isNaN(J.W)?J.W:K}; to3=function(J,K){if(J.G){var n=J.G.QB.rW-(K.startTime+J.L-J.G.QB.startSecs);n<=0||(n=new a9(J.G.QB.startSecs-(isNaN(J.L)?0:J.L),n,J.G.QB.context,J.G.QB.identifier,"stop",J.G.QB.G+K.duration*1E3),J.Zm("cuepointdiscontinuity",{segNum:K.BW}),gk(J,n,K.BW))}}; c6=function(J,K,n){J.Z!==K&&(J.Zm("sdai",{setsst:K,old:J.Z,r:n}),J.Z=K)}; tO=function(J,K,n,X){(X===void 0?0:X)?c6(J,1,"seek"):K>0&&Math.abs(K-n)>=5&&J.Z===4&&c6(J,5,"sk2t")}; yU=function(J,K,n){this.audio=J;this.video=K;this.reason=n}; ZF=function(J,K,n){this.G=J;this.reason=K;this.token=n;this.videoId=void 0}; fN=function(J,K,n){g.t.call(this);this.policy=J;this.U=K;this.Zm=n;this.X=new Map;this.C=0;this.N=!1;this.G="";this.Z=!1}; W6=function(J,K,n){if(n===void 0?0:n)J.N=!0;++J.C;n=6E4*Math.pow(2,J.C);n=(0,g.a)()+n;J.X.set(K.info.id,n)}; a5=function(J){for(var K=g.z(J.X.entries()),n=K.next();!n.done;n=K.next()){var X=g.z(n.value);n=X.next().value;X=X.next().value;X<(0,g.a)()&&J.X.delete(n)}return J.X}; Efd=function(J){return J.N&&a5(J).size>0}; Fp=function(J,K){J.G!==K&&(J.G=K,J.Z=!0)}; bDr=function(J,K){var n;K&&(n=g.ru(J.U.G,function(l){return l.id===K})); if(!n&&(n=g.ru(J.U.G,function(l){var x;return!((x=l.Hw)==null||!x.isDefault)}),K)){var X; J.Zm("iaf",{id:K,sid:(X=n)==null?void 0:X.id})}return n}; EK=function(J,K,n,X,l,x){var V=this;x=x===void 0?[]:x;this.loader=J;this.Aj=K;this.policy=n;this.HW=X;this.N=l;this.Fq=x;this.logger=new g.XI("dash/abr");this.G=fI;this.X=this.W=null;this.K=-1;this.j_=!1;this.nextVideo=this.Z=null;this.U=[];this.kF=new Set;this.PW={};this.wQ=new $n(1);this.L=0;this.fv=this.QG=this.GA=!1;this.cW=0;this.gQ=!1;this.MQ=new Set;this.Cv=!1;this.QU={Pg:function(){qs(V)}}; this.C=new fN(this.policy,l,function(v,Q){V.loader.Zm(v,Q)})}; Ko8=function(J,K,n){b6(J,K);K=bDr(J.C,n);n||K||(K=AGq(J));K=K||J.N.G[0];J.Z=J.HW.G[K.id];qs(J);J.W=J.Z;Mof(J);NZ7(J);J.X=J.nextVideo;J.W=J.Z;return Joe(J)}; XuV=function(J,K){if(nV3(J,K))return null;if(K.reason==="m"&&K.isLocked())return J.logger.debug(function(){return"User sets constraint to: "+sa(K)}),b6(J,K),J.L=J.U.length-1,qs(J),AO(J),J.QG=J.QG||J.X!==J.nextVideo,J.X=J.nextVideo,new yU(J.Z,J.X,K.reason); K.reason==="r"&&(J.K=-1);b6(J,K);AO(J);if(K.reason==="r"&&J.nextVideo===J.X)return new yU(J.Z,J.nextVideo,K.reason);oVH(J);return null}; lak=function(J,K,n){J.Z=J.HW.G[K];J.W=J.Z;return new yU(J.W,J.X,n?"t":"m")}; xg3=function(J,K){if(K.info.video){if(J.X!==K)return J.X=K,Joe(J)}else J.fv=J.W!==K,J.W=K;return null}; jjF=function(J,K){if(K.G.info.video&&K.C){var n=(K.Z+K.X)/K.duration,X=K.G.info.OM;n&&X&&(J.wQ.Ty(1,n/X),J.policy.Z&&n/X>1.5&&J.loader.Zm("overshoot",{sq:K.BW,br:n,max:X}))}}; Ms=function(J,K,n){W6(J.C,K,n===void 0?!1:n);J.K=-1;b6(J,J.G)}; VHF=function(J,K){return new yU(J.W,J.X,K||J.G.reason)}; oVH=function(J){if(J.X&&J.nextVideo&&Ns(J,J.X.info)J.policy.rz,v=l<=J.policy.rz?Eu(X):ah(X);if(!x||V||v)n[l]=X}return n}; b6=function(J,K){J.G=K;var n=J.N.videoInfos;if(!J.G.isLocked()){var X=(0,g.a)();n=g.d7(n,function(v){if(v.OM>this.policy.OM)return!1;var Q=this.HW.G[v.id];return a5(this.C).get(v.id)>X?!1:Q.Ax.X>4||Q.N>4?(this.logger.debug(function(){return"Remove "+lQ(v)+"; 4 load failures"}),!1):this.MQ.has(+v.itag)?!1:!0},J); Efd(J.C)&&(n=g.d7(n,function(v){return v.video.width<=854&&v.video.height<=480}))}n.length||(n=J.N.videoInfos); var l=n;J.policy.Wa&&(l=vVH(J,l,K));l=g.d7(l,K.U,K);if(J.G.isLocked()&&J.C.G){var x=g.ru(n,function(v){return v.id===J.C.G}); x?l=[x]:Fp(J.C,"")}J.policy.Wa||(l=vVH(J,l,K));l.length||(l=[n[0]]);l.sort(function(v,Q){return Ns(J,v)-Ns(J,Q)}); K={};for(n=1;nK.HC.video.width?(g.H8(l,n),n--):Ns(J,K.Zf)*J.policy.L>Ns(J,K.HC)&&(g.H8(l,n-1),n--);var V=l[l.length-1];J.gQ=!!J.X&&!!J.X.info&&J.X.info.YF!==V.YF;J.logger.debug(function(){return"Constraint: "+sa(J.G)+", "+l.length+" fmts selectable, max selectable fmt: "+lQ(V)}); J.U=l;J.kF.clear();K=!1;for(n=0;n=1080&&(K=!0);Qj3(J.policy,V,J.HW.qS)}; vVH=function(J,K,n){var X=n.reason==="m"||n.reason==="s";J.policy.tD&&J8&&g.ut&&(!X||n.G<1080)&&(K=K.filter(function(S){return S.video&&(!S.Z||S.Z.powerEfficient)})); if(K.length>0)if(fP()){var l=h$k(J,K);K=K.filter(function(S){return!!S&&!!S.video&&S.YF===l[S.video.qualityOrdinal].YF})}else{var x,V,v=(x=K[0])==null?void 0:(V=x.video)==null?void 0:V.qualityOrdinal; if(v){n=K.filter(function(S){return!!S&&!!S.video&&S.video.qualityOrdinal===v}); var Q=h$k(J,n)[v].YF;K=K.filter(function(S){return!!S&&!!S.video&&S.YF===Q})}}return K}; $gr=function(J,K){for(var n=0;n+1X}; qs=function(J){if(!J.Z||!J.policy.U&&!J.Z.info.Hw){var K=J.N.G;J.Z&&(K=K.filter(function(X){return X.audio.G===J.Z.info.audio.G}),K.length||(K=J.N.G)); J.Z=J.HW.G[K[0].id];if(K.length>1&&!J.policy.fv){if(!J.policy.Rg){var n=g.ru(K,function(X){return X.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); n&&(J.Z=J.HW.G[n.id])}n=!1;if(n=J.policy.x4?!0:J.G.isLocked()?J.G.G<240:$gr(J,J.Z))J.Z=J.HW.G[g.$r(K).id]}}}; AO=function(J){if(!J.nextVideo||!J.policy.U)if(J.G.isLocked())J.nextVideo=J.G.G<=360?J.HW.G[J.U[0].id]:J.HW.G[g.$r(J.U).id],J.logger.debug(function(){return"Select max fmt: "+lQ(J.nextVideo.info)}); else{for(var K=Math.min(J.L,J.U.length-1),n=pA(J.Aj),X=Ns(J,J.Z.info),l=n/J.policy.GA-X;K>0&&!(Ns(J,J.U[K])<=l);K--);for(var x=n/J.policy.L-X;K=x);K++);J.nextVideo=J.HW.G[J.U[K].id];J.L!==K&&J.logger.info(function(){return"Adapt to: "+lQ(J.nextVideo.info)+", bandwidth: "+n.toFixed(0)+", bandwidth to downgrade: "+l.toFixed(0)+", bandwidth to upgrade: "+x.toFixed(0)+", constraint: "+sa(J.G)}); J.L=K}}; Mof=function(J){var K=J.policy.GA,n=pA(J.Aj),X=n/K-Ns(J,J.Z.info);K=g.s0(J.U,function(l){return Ns(this,l)x?l=0:X[V]>J.buffered[V]&&(V===x-1?l=2:V===x-2&&X[V+1]>J.buffered[V+1]&&(l=3))}J.G.add(K<<3|(n&&4)|l);K=Math.ceil(J.track.jy()*1E3);J.G.add(K-J.C);J.C=K;if(l===1)for(J.G.add(x),V=K=0;V=2&&J.G.add(X[x- 1]-J.buffered[x-1]);n&&J.G.add(n);J.buffered=X}; oX=function(J,K,n){var X=this;this.policy=J;this.G=K;this.cW=n;this.U=this.Z=0;this.mV=null;this.GA=new Set;this.K=[];this.indexRange=this.initRange=null;this.L=new Nb;this.QG=this.Aj=!1;this.QU={p$_:function(){return X.X}, CiA:function(){return X.chunkSize}, b$4:function(){return X.W}, qb4:function(){return X.N}}; (K=O4r(this))?(this.chunkSize=K.csz,this.X=Math.floor(K.clen/K.csz),this.W=K.ck,this.N=K.civ):(this.chunkSize=J.BJ,this.X=0,this.W=g.wV(16),this.N=g.wV(16));this.C=new Uint8Array(this.chunkSize);this.W&&this.N&&(this.crypto=new pop(this.W,this.N))}; O4r=function(J){if(J.policy.Pp&&J.policy.oF)for(var K=g.z(J.policy.Pp),n=K.next(),X={};!n.done;X={mG:void 0,rB:void 0},n=K.next())if(n=g.l9(n.value),X.mG=+n.clen,X.rB=+n.csz,X.mG>0&&X.rB>0&&J.policy.U===n.docid&&J.G.info.id===n.fmtid&&J.G.info.lastModified===+n.lmt)return J={},J.clen=X.mG,J.csz=X.rB,J.ck=n.ck,J.civ=n.civ,J}; X_=function(J){return!!J.mV&&J.mV.PH()}; uIq=function(J,K){if(!X_(J)&&!J.o4()){if(!(J.Aj||(J.Aj=!0,J.X>0))){var n=lj(J);n=kY(J.policy.U,J.G.info,xU(J),n,J.policy.wQ);jT(J,n)}if(K.info.type===1){if(J.mV){Vs(J,Error("Woffle: Expect INIT slices to always start us off"));return}J.initRange=gZ(0,K.G.getLength())}else if(K.info.type===2)J.mV&&J.mV.type===1||Vs(J,Error("Woffle: Index before init")),J.indexRange=gZ(J.initRange.end+1,K.G.getLength());else if(K.info.type===3){if(!J.mV){Vs(J,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(J.mV.type===3&&!tG(J.mV,K.info)&&(J.K=[],K.info.BW!==yw(J.mV)||K.info.Z!==0))return;if(K.info.C){n=g.z(J.K);for(var X=n.next();!X.done;X=n.next())H4U(J,X.value);J.K=[]}else{J.K.push(K);J.mV=K.info;return}}else{Vs(J,Error("Woffle: Unexpected slice type"));return}J.mV=K.info;H4U(J,K);R$r(J)}}; H4U=function(J,K){var n=0,X=K.G.ju();if(J.U=X.length)return;if(n<0)throw Error("Missing data");J.U=J.X;J.Z=0}for(l={};n0){var V=X.getUint32(n+28);x+=V*16+4}var v=X.getUint32(n+x-4);try{var Q=IaH(K.subarray(n+x,n+x+v));if(Q!==null){var S=Q;break a}}catch(r){}}n+=l}S=null;break a}catch(r){S=null;break a}S=void 0}if(S!=null)for(K=Ub(Ov(S,7,void 0,qr)),K==null||J.dW||(J.cryptoPeriodIndex=K),K=Ub(Ov(S,10,void 0,qr)),K!=null&&K>0&& !J.dW&&(J.G=K),S=Pe(S,2,cqF,void 0===tO3?2:4),S=g.z(S),X=S.next();!X.done;X=S.next())K=J.X,n=K.push,X=he(X.value),X=g.Je(X,4),n.call(K,X)}; Bek=function(J){return isNaN(J.cryptoPeriodIndex)?g.Je(J.initData):""+J.cryptoPeriodIndex}; Qs=function(J,K,n){var X=n===void 0?{}:n;n=X.videoDuration===void 0?0:X.videoDuration;var l=X.L6===void 0?void 0:X.L6;X=X.YA===void 0?!1:X.YA;this.videoId=J;this.status=K;this.videoDuration=n;this.L6=l;this.YA=X}; mgq=function(J,K,n,X,l){this.videoId=J;this.m0=K;this.Z=n;this.bytesDownloaded=X;this.G=l}; $U=function(J){this.G=J;this.offset=0}; ST=function(J){if(J.offset>=J.G.getLength())throw Error();return J.G.getUint8(J.offset++)}; puV=function(J,K){K=K===void 0?!1:K;var n=ST(J);if(n===1){K=-1;for(n=0;n<7;n++){var X=ST(J);K===-1&&X!==255&&(K=0);K>-1&&(K=K*256+X)}return K}X=128;for(var l=0;l<6&&X>n;l++)n=n*256+ST(J),X*=128;return K?n:n-X}; Lok=function(J){try{var K=puV(J,!0),n=puV(J,!1);return{id:K,size:n}}catch(X){return{id:-1,size:-1}}}; TeM=function(J){for(var K=new $U(J),n=-1,X=0,l=0;!X||!l;){var x=Lok(K),V=x.id;x=x.size;if(V<0)return;if(V===176){if(x!==2)return;X=K.b8()}else if(V===186){if(x!==2)return;l=K.b8()}V===374648427?n=K.b8()+x:V!==408125543&&V!==174&&V!==224&&K.skip(x)}K=zI(J,0,n);n=new DataView(K.buffer);n.setUint16(X,3840);n.setUint16(l,2160);X=new Og([K]);Hg(X,J);return X}; Dgr=function(J,K,n){var X=this;this.loader=J;this.policy=K;this.N=n;this.logger=new g.XI("dash");this.Z=[];this.G=null;this.Aj=-1;this.K=0;this.MQ=NaN;this.GA=0;this.X=NaN;this.L=this.j_=0;this.gQ=-1;this.PW=this.C=this.U=this.cW=null;this.wQ=this.fv=NaN;this.W=this.QG=this.kF=this.Fq=null;this.md=!1;this.Cv=this.timestampOffset=0;this.QU={PN:function(){return X.Z}}; if(this.policy.U){var l=this.N,x=this.policy.U;this.policy.wQ&&J.Zm("atv",{ap:this.policy.wQ});this.W=new oX(this.policy,l,function(V,v,Q){rb(J,new Qs(X.policy.U,2,{L6:new mgq(x,V,l.info,v,Q)}))}); this.W.L.promise.then(function(V){X.W=null;V===1?rb(J,new Qs(X.policy.U,V)):X.loader.Zm("offlineerr",{status:V.toString()})},function(V){var v=(V.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); V instanceof h8&&!V.G?(X.logger.info(function(){return"Assertion failed: "+v}),X.loader.Zm("offlinenwerr",{em:v}),sk(X),rb(J,new Qs(X.policy.U,4))):(X.logger.info(function(){return"Failed to write to disk: "+v}),X.loader.Zm("dldbwerr",{em:v}),sk(X),rb(J,new Qs(X.policy.U,4,{YA:!0})))})}}; dgd=function(J){return J.Z.length?J.Z[0]:null}; ksp=function(J,K){return J.Z.some(function(n){return n.info.BW===K})}; UgH=function(J,K,n,X){X=X===void 0?0:X;if(J.C){var l=J.C.Z+J.C.X;if(n.info.Z>0)if(n.info.BW===J.C.BW&&n.info.Z=0&&J.C.BW>=0&&!tG(J.C,n.info))throw new g.qt("improper_continuation",J.C.Zr(),n.info.Zr());OPH(J.C,n.info)||C$(J,"d")}else if(n.info.Z>0)throw new g.qt("continuation_of_null",n.info.Zr());J.C=n.info;J.N=n.info.G;if(n.info.Z===0){if(J.G)if(!J.loader.isOffline()||J.policy.O3)J.loader.Zm("slice_not_fully_processed", {buffered:J.G.info.Zr(),push:n.info.Zr()});else throw new g.qt("slice_not_fully_processed",J.G.info.Zr(),n.info.Zr());Ok(J);J.j_=X}else{if(J.j_&&X&&J.j_!==X)throw J=new g.qt("lmt_mismatch",n.info.BW,J.j_,X),J.level="WARNING",J;!n.info.G.NV()&&J.U&&(X=n.info,l=J.U.IE,X.L="updateWithEmsg",X.BW=l)}if(J.G){X=g.jH(J.G,n);if(!X)throw new g.qt("failed_to_merge",J.G.info.Zr(),n.info.Zr());J.G=X}else J.G=n;a:{n=g.MR(J.G.info.G.info);if(J.G.info.type!==3){if(!J.G.info.C)break a;J.G.info.type===6?gVq(J,K,J.G): co3(J,J.G);J.G=null}for(;J.G;){X=J.G.G.getLength();if(J.Aj<=0&&J.K===0){var x=J.G.G,V=-1;l=-1;if(n){for(var v=0;v+80))break;if(C!==408125543)if(C===524531317)v=!0,r>=0&&(l=x.b8()+r,Q=!0);else{if(v&&(C===160||C===163)&&(V<0&&(V=S),Q))break;C===163&&(V=Math.max(0,V),l=x.b8()+r);if(C===160){V<0&&(l=V=x.b8()+ r);break}x.skip(r)}}V<0&&(l=-1)}if(V<0)break;J.Aj=V;J.K=l-V}if(J.Aj>X)break;J.Aj?(X=YVk(J,J.Aj),X.C&&Gs8(J,X),gVq(J,K,X),HA(J,X),J.Aj=0):J.K&&(X=YVk(J,J.K<0?Infinity:J.K),J.K-=X.G.getLength(),HA(J,X))}}J.G&&J.G.info.C&&(HA(J,J.G),J.G=null)}; co3=function(J,K){!K.info.G.NV()&&K.info.Z===0&&(g.MR(K.info.G.info)||K.info.G.info.dW())&&Ncf(K);if(K.info.type===1)try{Gs8(J,K),tHq(J,K)}catch(l){g.ko(l);var n=Z5(K.info);n.hms="1";J.loader.handleError("fmt.unparseable",n||{},1)}n=K.info.G;n.aB(K);J.W&&uIq(J.W,K);if(n.qp()&&J.policy.G)a:{J=J.loader.HW;K=K.info.clipId;n=g.JF(n.info,J.qS);if(K){var X=Tv({itag:n.itag,lmt:J.qS?0:n.lmt||0,xtags:n.xtags});if(J.gQ[X])break a;J.gQ[X]=K}J.fv.push(n)}}; hY3=function(J,K,n){if(J.Z.length!==0&&(n||J.Z.some(function(x){return x.info.U=uj(V)+v):K=J.getDuration()>=V.getDuration(),K=!K;K&&fa7(n)&&(K=J.cW,RX?(v=AF3(n),V=1/v,v=uj(J,v),K=uj(K)+V-v):K=K.getDuration()- J.getDuration(),K=1+K/n.info.duration,aRk(n.K9(),K))}else{V=!1;J.U||(Ncf(n),n.Z&&(J.U=n.Z,V=!0,x=n.info,X=n.Z.IE,x.L="updateWithEmsg",x.BW=X,x=n.Z,x.PH&&(X=J.N.index,X.Z=!x.PH,X.X="emsg"),x=n.info.G.info,X=n.K9(),g.MR(x)?l3(X,1701671783):x.dW()&&So([408125543],307544935,X)));a:if((x=vu(n,J.policy.iR))&&MyF(n))v=Woq(J,n),J.L+=v,x-=v,J.GA+=x,J.X=J.policy.zd?J.X+x:NaN;else{if(J.policy.uW){if(X=Q=J.loader.cQ(g.VC(n),1),J.X>=0&&n.info.type!==6){if(J.policy.zd&&isNaN(J.fv)){g.gG(new g.qt("Missing duration while processing previous chunk", n.info.Zr()));J.loader.isOffline()&&!J.policy.O3||aaF(J,n,X);C$(J,"m");break a}var S=Q-J.X,r=S-J.L,C=n.info.BW,O=J.PW?J.PW.BW:-1,H=J.wQ,R=J.fv,w=J.policy.vL&&S>J.policy.vL,P=Math.abs(r)>10,B=Math.abs(J.X-X)<1E-7;if(Math.abs(r)>1E-4){J.Cv+=1;var p=(l=J.U)==null?void 0:Ea(l);l={audio:""+ +J.Mp(),sq:C.toFixed(),sliceStart:Q,lastSq:O.toFixed(),lastSliceStart:H,lastSliceDuration:R,totalDrift:(S*1E3).toFixed(),segDrift:(r*1E3).toFixed(),skipRewrite:""+ +(w||P)};if(p==null?0:p.length)l.adCpn=p[0];J.loader.handleError("qoe.avsync", l);J.gQ=C}w||P||B||(X=J.X);l=Woq(J,n,Q);x-=l;J.L=S+l;J.policy.Z&&(r&&!B||l)&&(S=(v=J.U)==null?void 0:Ea(v),J.loader.Zm("discontinuityRewrite",{adCpn:(S==null?0:S.length)?S.join("."):"",itag:n.info.G.info.itag,sq:n.info.BW,originalStartTime:Q,rewrittenStartTime:X,startTimeAdjustment:X-Q,segDrift:(r*1E3).toFixed(),originalDuration:x+l,rewrittenDuration:x,durationAdjustment:l}))}}else X=isNaN(J.X)?n.info.startTime:J.X;aaF(J,n,X)&&(J.GA+=x,J.X=X+x,J.policy.Kn&&J.Cv>=J.policy.Kn&&(J.Cv=0,J.loader.Xx({resetForRewrites:"count"})))}J.PW= n.info;J.fv=ho(n);n.X>=0&&(J.wQ=n.X);if(V&&J.U){V=FoF(J,!0);fD(n.info,V);J.G&&fD(J.G.info,V);K=g.z(K);for(v=K.next();!v.done;v=K.next())v=v.value,l=void 0,J.policy.C&&v.BW!==((l=J.U)==null?void 0:l.IE)||fD(v,V);(n.info.C||J.G&&J.G.info.C)&&n.info.type!==6||(J.QG=V,J.policy.X?(K=qV3(J.U),J.loader.XY(J.N,V,K)):(K=J.loader,K.HW.isManifestless&&EVM(K,V,null,!!J.N.info.video)),J.policy.kO||b4U(J))}}tHq(J,n);J.timestampOffset&&Ecf(n,J.timestampOffset)}; HA=function(J,K){if(K.info.C){J.Fq=K.info;if(J.U){var n=J.U,X=FoF(J,!1);n=qV3(n);J.loader.XY(J.N,X,n);J.QG||J.policy.kO||b4U(J);J.QG=null}Ok(J)}J.W&&uIq(J.W,K);if(X=J.ZG())if(X=g.jH(X,K,J.policy.RK,J.policy.P3)){J.Z.pop();J.Z.push(X);return}J.Z.push(K)}; qV3=function(J){if(J.OS()){var K=J.data["Stitched-Video-Id"]?J.data["Stitched-Video-Id"].split(",").slice(0,-1):[],n=Ea(J),X=[];if(J.data["Stitched-Video-Duration-Us"])for(var l=g.z(J.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),x=l.next();!x.done;x=l.next())X.push((Number(x.value)||0)/1E6);l=[];if(J.data["Stitched-Video-Start-Frame-Index"]){x=g.z(J.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var V=x.next();!V.done;V=x.next())l.push(Number(V.value)||0)}l=[]; if(J.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(x=g.z(J.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),V=x.next();!V.done;V=x.next())l.push((Number(V.value)||0)/1E6);J=new Pne(K,n,X,l,g.yl7(J),g.ZJp(J))}else J=null;return J}; Ok=function(J){J.G=null;J.Aj=-1;J.K=0;J.U=null;J.MQ=NaN;J.GA=0;J.QG=null}; C$=function(J,K){K={rst4disc:K,cd:J.L.toFixed(3),sq:J.PW?J.PW.BW:-1};J.X=NaN;J.L=0;J.gQ=-1;J.PW=null;J.wQ=NaN;J.fv=NaN;J.kF=null;J.loader.Zm("mdstm",K)}; tHq=function(J,K){if(J.isDrm()){if(K.info.G.info.dW()){var n=new jo(K.K9());if(hG(n,[408125543,374648427,174,28032,25152,20533,18402])){var X=$f(n,!0);n=X!==16?null:OT(n,X)}else n=null;X="webm"}else K.info.K=z$k(K.K9()),n=wuF(K.info.K),X="cenc";n&&n.length&&(n=new vA(n,X),J.policy.Tv&&g.MR(K.info.G.info)&&(X=M$3(K.K9()))&&(n.Z=X),n.dW=K.info.G.info.dW(),K.Z&&K.Z.cryptoPeriodIndex&&(n.cryptoPeriodIndex=K.Z.cryptoPeriodIndex),K.Z&&K.Z.Z&&(n.G=K.Z.Z),J.loader.SE(n))}}; b4U=function(J){var K=J.U,n=UR3(K);n&&(n.startSecs+=J.MQ,J.loader.Jc(J.N,n,K.IE,K.OS()))}; FoF=function(J,K){var n,X=J.U;if(n=UR3(X))n.startSecs+=J.MQ;return new gU(X.IE,J.MQ,K?X.sY:J.GA,X.ingestionTime,"sq/"+X.IE,void 0,void 0,K,n)}; aaF=function(J,K,n){if(!q_H(K,n))return K=Z5(K.info),K.smst="1",J.loader.handleError("fmt.unparseable",K||{},1),!1;isNaN(J.MQ)&&(J.MQ=n);return!0}; Woq=function(J,K,n){var X=0;if(K.info.G.info.dW()&&!MyF(K))return 0;if(J.cW&&!J.Mp()){var l=0;n&&g.MR(K.info.G.info)?l=n-J.X:K.info.G.info.dW()&&(l=J.L);var x=K.info.BW;n=vu(K,J.policy.iR);var V=J.cW;var v=V.gQ;V=V.L;var Q=Math.abs(V-l)>.02;if((x===v||x>v&&x>J.gQ)&&Q){X=Math.max(.95,Math.min(1.05,(n-(V-l))/n));if(g.MR(K.info.G.info))aRk(K.K9(),X);else if(K.info.G.info.dW()&&(x=l-V,!g.MR(K.info.G.info)&&(K.info.G.info.dW(),X=new jo(K.K9()),v=K.C?X:new jo(new DataView(K.info.G.G.buffer)),vu(K,!0)))){var S= x*1E3,r=RD(v);v=X.pos;X.pos=0;if(X.G.getUint8(X.pos)===160||u3(X))if(Qw(X,160))if($f(X,!0),Qw(X,155)){if(x=X.pos,Q=$f(X,!0),X.pos=x,S=S*1E9/r,r=rZ(X),S=r+Math.max(-r*.7,Math.min(r,S)),S=Math.sign(S)*Math.floor(Math.abs(S)),!(Math.ceil(Math.log(S)/Math.log(2)/8)>Q)){X.pos=x+1;for(x=Q-1;x>=0;x--)X.G.setUint8(X.pos+x,S&255),S>>>=8;X.pos=v}}else X.pos=v;else X.pos=v;else X.pos=v}X=vu(K,J.policy.iR);X=n-X}X&&K.info.G.info.dW()&&J.loader.Zm("webmDurationAdjustment",{durationAdjustment:X,videoDrift:l+X, audioDrift:V})}return X}; fa7=function(J){return J.info.G.NV()&&J.info.BW===J.info.G.index.VU()}; uj=function(J,K){K=(K=K===void 0?0:K)?Math.round(J.timestampOffset*K)/K:J.timestampOffset;J.N.U&&K&&(K+=J.N.U.G);return K+J.getDuration()}; AoU=function(J,K){K<0||(J.Z.forEach(function(n){Ecf(n,K)}),J.timestampOffset=K)}; da=function(J,K,n,X,l){MO.call(this,n,l);var x=this;this.policy=J;this.formatId=K;this.zn=X;this.lastError=null;this.Tc=function(){x.o4()||(x.zn.oZ.has(x.formatId)?(x.isComplete()||x.G.start(),LN(x.zn,x.formatId)&&x.QE(2),x.zn.Kl(x.formatId)&&(RbF(x.zn,x.formatId)?x.RZ(4):(x.lastError="net.closed",x.RZ(5)))):(x.lastError="player.exception",x.RZ(5)))}; this.G=new g.AT(function(){x.isComplete()||(x.lastError="net.timeout",x.RZ(5))},1E3); this.G.start();C33(this.zn,this.formatId,this.Tc);g.wT(this.Tc)}; eT=function(J,K,n,X){g.t.call(this);var l=this;this.loader=J;this.policy=K;this.G=n;this.timing=X;this.logger=new g.XI("dash");this.X=[];this.cW=[];this.Z=this.jl=null;this.kF=!1;this.j_=this.Cv=0;this.N=-1;this.Aj=!1;this.MQ=-1;this.PW=null;this.QG=NaN;this.GA=[];this.QU={EX:function(){return l.U}, GOA:function(){return l.X}, Pim:function(){return l.L}}; this.U=new Dgr(J,K,n);this.policy.G&&(this.L=new TY(this.U,this.loader.getManifest(),this.policy,function(x){l.policy.Yf&&l.Zm("buftl",x)})); this.policy.Gi&&(this.K=new K$(this));this.OM=n.info.OM;this.W=this.policy.QG?!1:n.NK();this.isManifestless=n.NK();this.C=this.W;g.Z(this,this.PW)}; z5=function(J,K,n){n=n===void 0?!1:n;K&&RX&&AoU(J.U,K.JA());if(!n){var X;(X=J.L)==null||lDF(X)}J.jl=K;(K=J.L)!=null&&(K.jl=J.jl)}; wb=function(J){var K=J.jl&&J.jl.U5();if(J.policy.Zz){if((J=J.L)==null)J=void 0;else{var n;J=(n=J.X)==null?void 0:n.info}return J||null}return K}; MH3=function(J){for(var K={},n=0;n4&&J.cW.shift()}; NeH=function(J,K){if(K.t0()){var n=K.LI();n=g.z(n);for(var X=n.next();!X.done;X=n.next())X=X.value,J.policy.Z&&K instanceof da&&J.Zm("omblss",{s:X.info.Zr()}),IX(J,K.info.Lv,X,K.N5())}}; IX=function(J,K,n,X){X=X===void 0?0:X;isNaN(J.QG)||(J.Zm("aswm",{sq:K[0].BW,id:K[0].G.info.itag,xtag:K[0].G.info.G,ep:Date.now()-J.QG}),J.QG=NaN);switch(n.info.type){case 1:case 2:JS3(J,n);break;case 4:var l=n.info.G,x=l.kC(n),V;((V=J.Z)==null?0:V.type===4)&&PQ3(n.info,J.Z)&&(J.Z=l.VE(J.Z).pop());n=g.z(x);for(l=n.next();!l.done;l=n.next())IX(J,K,l.value,X);break;case 3:n.info.G.info.video?(l=J.timing,l.MQ||(l.MQ=(0,g.a)(),g.mC("fvb_r",l.MQ,l.G))):(l=J.timing,l.N||(l.N=(0,g.a)(),g.mC("fab_r",l.N,l.G))); UgH(J.U,K,n,X);J.policy.G&&KYF(J);break;case 6:UgH(J.U,K,n,X),J.Z=n.info}}; JS3=function(J,K){if(K.info.type===1)if(K.info.G.info.video){var n=J.timing;n.j_||(n.j_=(0,g.a)(),g.mC("vis_r",n.j_,n.G))}else n=J.timing,n.L||(n.L=(0,g.a)(),g.mC("ais_r",n.L,n.G));co3(J.U,K);J=J.loader;J.videoTrack.G.qp()&&J.audioTrack.G.qp()&&J.policy.G&&!J.HW.qS&&(K=J.audioTrack.getDuration(),n=J.videoTrack.getDuration(),Math.abs(K-n)>1&&J.Zm("trBug",{af:""+g.JF(J.audioTrack.G.info,!1),vf:""+g.JF(J.videoTrack.G.info,!1),a:""+K,v:""+n}))}; fA=function(J){return dgd(J.U)}; KYF=function(J){J.X.length?J.Z=g.$r(g.$r(J.X).info.Lv):J.U.Z.length?J.Z=J.U.ZG().info:J.Z=wb(J)}; ij=function(J,K){var n={l_:[],fI:[]},X;if((J=J.L)==null)J=void 0;else{XoM(J,J.l_,"og");KZd(J,K);XoM(J,J.l_,"trim");var l=oKp(J);K=l.l_;l=l.Rx;for(var x=[],V=0;V0){var O=Vd(C,Q);O>=0&&(r=(C.end(O)-Q+.1)*1E3)}x.push({formatId:g.JF(v.info.G.info,J.HW.qS), fJ:v.info.fJ,sequenceNumber:v.info.BW+J.U,h1:S,Yv:v.info.X,gj:r})}J={l_:K,fI:x}}return(X=J)!=null?X:n}; Y3=function(J,K,n){n=n===void 0?!1:n;if(J.jl){var X=J.jl.FL(),l=v5(X,K),x=NaN,V=wb(J);V&&(x=v5(X,V.G.index.getStartTime(V.BW)));if(l===x&&J.Z&&J.Z.X&&nne(BA(J),0))return K}J=on3(J,K,n);return J>=0?J:NaN}; Us=function(J,K,n){J.G.qp();var X=on3(J,K);if(X>=0)return X;var l;(l=J.L)==null||nKp(l,K,n);n=Math;X=n.min;l=J.U;if(l.W)if(l=l.W,l.mV&&l.mV.type===3)l=l.mV.startTime;else if(l.X>0){var x=l.G.index;x=g.TO(x.offsets.subarray(0,x.count),l.X*l.chunkSize);l=l.G.index.getStartTime(x>=0?x:Math.max(0,-x-2))}else l=0;else l=Infinity;K=X.call(n,K,l);J.Z=J.policy.QG?null:J.G.sS(K).Lv[0];m5(J)&&(J.jl&&J.jl.abort(),J.policy.mf&&(n=J.L)!=null&&(n.X=void 0));J.j_=0;return J.Z?J.Z.startTime:K}; j9r=function(J){J.W=!0;J.C=!0;J.N=-1;Us(J,Infinity)}; p$=function(J){for(var K=0,n=g.z(J.X),X=n.next();!X.done;X=n.next())K+=iPk(X.value.info);return K+=yoU(J.U)}; T5=function(J,K){K=K===void 0?!1:K;var n=J.loader.getCurrentTime(),X=J.U.ZG(),l=(X==null?void 0:X.info.N)||0;J.policy.ih&&(X==null?0:X.info.G.NK())&&!X.info.C&&(l=X.info.U);if(!J.jl)return J.policy.G&&K&&!isNaN(n)&&X?l-n:0;var x=wb(J);if(x&&L$(x))return x.N;var V=J.jl.FL(!0);if(K&&X)return x=0,J.policy.G&&(x=Sy(V,l+.02)),x+l-n;l=Sy(V,n);J.policy.g2&&x&&(K=Vd(V,n),V=Vd(V,x.U-.02),K===V&&(n=x.N-n,J.policy.Z&&n>l+.02&&J.Zm("abh",{bh:l,bhtls:n}),l=Math.max(l,n)));return l}; Xpq=function(J){var K=wb(J);return K?K.N-J.loader.getCurrentTime():0}; lWU=function(J,K){if(J.X.length){if(J.X[0].info.Lv[0].startTime<=K)return;c0(J)}for(var n=J.U,X=n.Z.length-1;X>=0;X--)n.Z[X].info.startTime>K&&n.Z.pop();KYF(J);J.Z&&K=0;V--){var v=l.Z[V];v.info.BW>=K&&(l.Z.pop(),l.X-=vu(v,l.policy.iR),x=v.info)}x&&(l.C=l.Z.length>0?l.Z[l.Z.length-1].info:l.kF,l.Z.length!==0||l.C||C$(l,"r"));l.loader.Zm("mdstm",{rollbk:1,itag:x?x.G.info.itag:"",popped:x?x.BW:-1,sq:K,lastslc:l.C?l.C.BW:-1,lastfraget:l.X.toFixed(3)});if(J.policy.G)return J.Z=null,!0;X>n?Us(J,X):J.Z=J.G.pj(K-1,!1).Lv[0]}catch(Q){return K=mx(Q),K.details.reason="rollbkerr", J.loader.handleError(K.errorCode,K.details,K.severity),!1}return!0}; kU=function(J,K){var n;for(n=0;n0?n||K.BW>=J.MQ:n}; gb=function(J){var K;return m5(J)||L$((K=J.U.ZG())==null?void 0:K.info)}; BA=function(J){var K=[],n=wb(J);n&&K.push(n);K=g.eV(K,J.U.Kg());n=g.z(J.X);for(var X=n.next();!X.done;X=n.next()){X=X.value;for(var l=g.z(X.info.Lv),x=l.next(),V={};!x.done;V={xt:void 0},x=l.next())V.xt=x.value,X.Fo&&(K=g.d7(K,function(v){return function(Q){return!PQ3(Q,v.xt)}}(V))),(UT(V.xt)||V.xt.type===4)&&K.push(V.xt)}J.Z&&!sx3(J.Z,g.$r(K),J.Z.G.NV())&&K.push(J.Z); return K}; nne=function(J,K){if(!J.length)return!1;for(K+=1;K=K){K=x;break a}}K=l}return K<0?NaN:nne(J,n?K:0)?J[K].startTime:NaN}; cA=function(J){return!(!J.Z||J.Z.G===J.G)}; xwH=function(J){return cA(J)&&J.G.qp()&&J.Z.G.info.OMK&&J.N1080&&!J.RJ&&(J.j_=36700160,J.Fq=5242880,J.Cv=Math.max(4194304,J.Cv),J.RJ=!0);K.video.qualityOrdinal>2160&&!J.W5&&(J.j_=104857600,J.OM=13107200,J.W5=!0);g.Qg(J.ix.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?K.isEncrypted()&&g.ae()&&g.fa("samsung")&&(g.fa("kant")||g.fa("muse"))&&(J.OM=g.Qg(J.ix.experiments,"html5_samsung_kant_limit_max_bitrate")):K.isEncrypted()&&g.ae()&&g.fa("kant")&&(J.OM=1310720);J.xd!==0&&K.isEncrypted()&& (J.OM=J.xd);J.Jv!==0&&K.isEncrypted()&&n&&(J.OM=J.Jv);K.OM&&(J.LG=Math.max(J.KL,Math.min(J.Cv,5*K.OM)))}; OK=function(J){return J.G&&J.Zt}; ys=function(J){return J.G&&J.hd&&J.playbackStartPolicy}; Zh=function(J,K,n,X){J.hd&&(J.playbackStartPolicy=K,J.ym=n,J.f4=X)}; t8=function(J,K,n){n=n===void 0?0:n;return g.Qg(J.ix.experiments,K)||n}; R6F=function(J){var K=J===void 0?{}:J;J=K.XN;var n=K.XO;var X=K.Bp;var l=K.VU;K=K.Jk;this.XN=J;this.XO=n;this.Bp=X;this.VU=l;this.Jk=K}; RYd=function(J,K){if(K<0)return!0;var n=J.VU();return K0)return 2;if(K<0)return 1;n=J.VU();return K(0,g.a)()?0:1}; WA=function(J,K,n,X,l,x,V,v,Q,S,r,C,O,H){H=H===void 0?null:H;g.t.call(this);var R=this;this.loader=J;this.policy=K;this.videoTrack=n;this.audioTrack=X;this.U=l;this.G=x;this.timing=V;this.C=v;this.schedule=Q;this.HW=S;this.X=r;this.GA=C;this.F0=O;this.Ui=H;this.QG=!1;this.OW="";this.T0=null;this.Ey=NaN;this.Aj=!1;this.Z=null;this.HO=this.K=NaN;this.Pa=this.N=0;this.logger=new g.XI("dash");this.QU={r8:function(w,P){return R.r8(w,P)}}; this.policy.c$>0&&(this.OW=g.wV(this.policy.c$));this.policy.Nd&&(this.L=new f$(this.loader,this.policy,this.schedule),g.Z(this,this.L))}; IWe=function(J,K,n){var X=K.Z?K.Z.G.Ax:K.G.Ax;var l=J.U,x;(x=!J.policy.IL)||(x=LT(X.G)===LT(X.Z));x?X=!1:(l=ID(l,LT(X.Z)),x=6E4*Math.pow(l.U,1.6),(0,g.a)()=l.U?(l.Zm("sdai",{haltrq:x+1,est:l.U}),X=!1):X=l.Z!==2;if(!X||!LD(K.Z?K.Z.G.Ax:K.G.Ax,J.policy,J.U,J.loader.Io())||J.loader.isSuspended&&(!wz(J.schedule)||J.loader.FT))return!1;if(J.policy.U&&d6>=5)return g.M0(J.loader.Li),!1;if(J.HW.isManifestless){if(K.X.length>0&&K.Z&&K.Z.BW===-1||K.X.length>=J.policy.D1||!J.policy.aL&&K.X.length>0&&!J.policy.W.XO)return!1;if(K.W)return!J.HW.isLive|| !isNaN(J.Ey)}if(Qmf(K))return J.logger.debug("Pending request with server-selectable format found"),!1;if(!K.Z){if(!K.G.qp())return!1;Us(K,J.loader.getCurrentTime())}if(fA(K)&&(K.ZG()!==fA(K)||J.loader.isSuspended))return!1;l=(X=J.policy.tp)&&!K.X.length&&T5(K,!0)=J.policy.Xt)return!1;X=K.Z;if(!X)return!0;X.type===4&&X.G.qp()&&(K.Z=g.$r(X.G.VE(X)),X= K.Z);if(!X.PH()&&!X.G.QR(X))return!1;x=J.HW.q_||J.HW.U;if(J.HW.isManifestless&&x){x=K.G.index.VU();var V=n.G.index.VU();x=Math.min(x,V);if(K.G.index.cf()>0&&x>0&&X.BW>=x)return K.MQ=x,n.MQ=x,!1}if(X.G.info.audio&&X.type===4||X.PH())return!1;x=!K.C&&!n.C;if(l=!l)l=X.N,l=!!(n.Z&&!L$(n.Z)&&n.Z.NiR3(J,K)?(iR3(J,K),!1):(J=K.jl)&&J.isLocked()?!1:!0}; iR3=function(J,K){var n=J.G;n=n.G?n.G.QB:null;if(J.policy.cW&&n)return n.startSecs+n.rW+15;K=GY(J.loader,K);J.policy.Dm>0&&(n=((0,g.a)()-J.loader.Jg)/1E3,K=Math.min(K,J.policy.Dm+J.policy.vO*n));K=J.loader.getCurrentTime()+K;return J.policy.t6&&(n=Bz7(J.loader)+J.policy.t6,n=0||K.Ax.Na("defrag")==="1"||K.Ax.Na("otf")==="1"){K=null;break a}l=gZ(0,4096)}l=new Wm([new Yf(5,X.G,l,"createProbeRequestInfo"+X.L,X.BW)],K.Z);l.Su=n;l.G=K.G;K=l}K&&Pqq(J,K)}}; Pqq=function(J,K){J.loader.fp(K);var n=iPk(K),X=J.loader.Cm();n={u_:J.schedule,Rw:n,D6:EE3(J.C,n),qd:Gv(K.Lv[0]),Lg:TJ(K.Ax.G),mu:J.policy.Z,gT:function(V,v){J.loader.l9(V,v)}}; if(J.schedule.Z.N){var l,x;n.aE=(((l=J.videoTrack.G)==null?void 0:l.info.OM)||0)+(((x=J.audioTrack.G)==null?void 0:x.info.OM)||0)}J.T0&&(n.BW=K.Lv[0].BW,n.Ey=K.Ey,n.T0=J.T0);X={hk:Bce(K,J.loader.getCurrentTime()),g7:J.policy.o2&&FY(K)&&K.Lv[0].G.info.video?ro3(J.X):void 0,Tj:J.policy.cW,poToken:J.loader.T2(),Oa:J.loader.zo(),OW:J.OW,HO:isNaN(J.HO)?null:J.HO,Ui:J.Ui,F0:J.F0,Pa:J.Pa,cP:X};return new k3(J.policy,K,n,J.U,function(V,v){try{a:{var Q=V.info.Lv[0].G,S=Q.info.video?J.videoTrack:J.audioTrack; if(!(V.state>=2)||V.isComplete()||V.a8()||!(!J.loader.tj||J.loader.isSuspended||T5(S)>3)){var r=z6d(V,J.policy,J.U);r===1&&(J.Aj=!0);ppk(J,V,r);if(V.isComplete()||V.o4()&&v<3){if(J.policy.Z){var C=V.timing.jF();C.rst=V.state;C.strm=V.xhr.QD();C.cncl=V.xhr&&V.cM.U?1:0;J.loader.Zm("rqs",C)}V.Cx&&J.loader.Zm("sbwe3",{},!0)}if(!J.o4()&&V.state>=2){Gv8(J.timing,V,Q);var O=J.loader;J.HO&&V.jL&&O&&(J.HO=NaN,J.loader.X9(V.jL),J.loader.lm(),J.loader.Zm("cabrUtcSeek",{mediaTimeSeconds:V.jL}));V.wf&&J.HO&&V.wf&& !V.wf.action&&(J.loader.EA(J.HO),J.HO=NaN,J.loader.Zm("cabrUtcSeekFallback",{targetUtcTimeSeconds:J.HO}));V.Ob&&J.loader.Rb(V.Ob);J.policy.KU&&(J.Pa=V.Pa);if(V.state===3){kU(S,V);FY(V.info)&&F_(J,S,Q,!0);if(J.Z){var H=V.info.gb();H&&J.Z.bk(V.info.Lv[0].BW,Q.info.id,H)}J.loader.AB()}else if(V.isComplete()&&V.info.Lv[0].type===5){if(V.state!==4)V.tL()&&J.loader.handleError(V.TR(),V.zU());else{var R=(V.info.Lv[0].G.info.video?J.videoTrack:J.audioTrack).X[0]||null;R&&R instanceof k3&&R.a8()&&R.XX()}V.dispose()}else{V.tL()|| LYH(J,V);var w;((w=V.yj)==null?0:w.itagDenylist)&&J.loader.Q0(V.yj.itagDenylist);if(V.state===4)Tz3(J,V),J.G&&f5F(J.G,V.info,J.Z);else if(J.policy.Zb&&V.t0()&&!V.isComplete()&&!Tz3(J,V)&&!V.tL())break a;V.tL()&&(Dw8(J,V),isNaN(J.HO)||(J.loader.EA(J.HO),J.HO=NaN));J.policy.a5&&!V.isComplete()?dwU(J.loader):J.loader.AB();var P=wpe(V,J.policy,J.U);ppk(J,V,P)}}}}}catch(B){v=J.QG?1:0,J.QG=!0,V=Bf(v),v=mx(B,v),J.loader.handleError(v.errorCode,v.details,v.severity),V||J.loader.Ph()}},X)}; LYH=function(J,K){if(K.rf&&K.state>=2&&K.state!==3){var n=K.xhr.getResponseHeader("X-Response-Itag");if(n){J.logger.debug(function(){return"Applying streamer-selected format "+n}); var X=SVe(J.X,n),l=K.info.X;l&&(l-=X.M5(),X.X=!0,K.info.Lv[0].G.X=!1,ST3(K,X.Wo(l)),qB(J.loader,J.videoTrack,X),$wV(J.videoTrack,X),J.loader.Yw(X.info.video.quality),(l=K.N5())&&X.info.lastModified&&X.info.lastModified!==+l&&kU(J.videoTrack,K))}else K.rf=!1}}; Dw8=function(J,K){var n=K.info.Lv[0].G,X=K.TR();if(TJ(n.Ax.G)){var l=g.KK(K.Zo(),3);J.loader.Zm("dldbrerr",{em:l||"none"})}l=K.info.Lv[0].BW;var x=UK(J.G,K.info.Lv[0].U,l);X==="net.badstatus"&&(J.N+=1);if(K.canRetry()&&kxq(J.loader)){if(!(K.info.Ax.X>=J.policy.J4&&J.Z&&K.info.isDecorated()&&X==="net.badstatus"&&J.Z.Ne(x,l))){l=(n.info.video&&n.Ax.X>1||K.RO===410||K.RO===500||K.RO===503)&&!(a5(J.X.C).size>0)&&!TJ(n.Ax.G);x=K.zU();var V=n.info.video?J.videoTrack:J.audioTrack;l&&(x.stun="1");J.loader.handleError(X, x);J.o4()||(l&&(J.logger.debug(function(){return"Stunning format "+n.info.id}),Ms(J.X,n)),kU(V,K),J.loader.AB())}}else V=1,J.Z&&K.info.isDecorated()&&X==="net.badstatus"&&J.Z.Ne(x,l)&&(V=0),J.HW.isLive&&K.TR()==="net.badstatus"&&J.N<=J.policy.VJ*2?(Dnf(J.HW),J.HW.q_||J.HW.isPremiere?ZN(J.loader,0,{E8:"badStatusWorkaround"}):J.HW.U?ZN(J.loader,J.HW.Aj,{E8:"badStatusWorkaround", cQ:!0}):Ek(J.loader)):J.loader.handleError(X,K.zU(),V)}; Tz3=function(J,K){if(J.policy.useUmp&&K.o4())return!1;try{var n=K.info.Lv[0].G,X=n.info.video?J.videoTrack:J.audioTrack;if(J.HW.isManifestless&&X){J.N=0;X.W&&(K.o4(),K.isComplete()||K.t0(),X.W=!1);K.Q5()&&J.loader.Gq.Ty(1,K.Q5());var l=K.cf(),x=K.Ar();de(J.HW,l,x)}if(K.info.qd()&&!aD(K.info))for(var V=g.z(K.LI()),v=V.next();!v.done;v=V.next())JS3(X,v.value);for(J.loader.getCurrentTime();X.X.length&&X.X[0].state===4;){var Q=X.X.shift();NeH(X,Q);X.Cv=Q.Gz()}X.X.length&&NeH(X,X.X[0]);var S=!!fA(X);S&& K instanceof da&&(n.info.Mp()?TZV(J.timing):LTM(J.timing));return S}catch(r){K=K.zU();K.origin="hrhs";a:{J=J.loader;n=r;if(n instanceof Error){K.msg||(K.msg=""+n.message);K.name||(K.name=""+n.name);if(n instanceof g.qt&&n.args)for(X=g.z(Object.entries(n.args)),l=X.next();!l.done;l=X.next())x=g.z(l.value),l=x.next().value,x=x.next().value,K["arg"+l]=""+x;g.gG(n);if(n.level==="WARNING"){J.dQ.Xx(K);break a}}J.handleError("fmt.unplayable",K,1)}return!1}}; gn3=function(J){var K=J.videoTrack.G.index;J.T0=new R6F({XN:J.policy.XN,XO:J.policy.W.XO,Bp:K.n1(),VU:function(){return K.VU()}, Jk:function(){return K.Jk()}})}; F_=function(J,K,n,X){if(!(n.qp()||n.WR()||n.X||!LD(n.Ax,J.policy,J.U,J.loader.Io())||n.info.YF==="f"||J.policy.G)){if(X){X=J.C;var l=n.info;X=bY3(X,l.video?X.policy.Nf:X.policy.Ky,l.OM)}else X=0;X=n.Wo(X);J=Pqq(J,X);aD(X)&&PA(K,J);n.X=!0}}; bj=function(J,K,n,X,l,x,V,v){g.t.call(this);var Q=this;this.loader=J;this.xo=K;this.videoTrack=n;this.audioTrack=X;this.HW=l;this.K=x;this.isAudioOnly=V;this.N=v;this.Z=fI;this.Aj=!1;this.logger=new g.XI("sabr");this.L=this.QG=this.GA=!1;this.videoInfos=this.W=this.K.videoInfos;this.X=this.cW=this.K.G;this.G=new fN(K,x,function(S,r){Q.loader.Zm(S,r)}); this.xo.d3||cSH(this);this.isAudioOnly&&YMF(this,this.HW.G["0"])}; GxU=function(J,K){var n=[];K=g.z(K);for(var X=K.next();!X.done;X=K.next())n.push(g.JF(X.value,J.HW.qS));return n}; YMF=function(J,K,n){K!==J.U&&(J.U&&(J.Aj=!0),J.U=K,J.di(K,J.videoTrack,n))}; ZRF=function(J,K){J.logger.debug("setConstraint: "+sa(K));OK(J.xo)&&(J.QG=K.reason==="m"||K.reason==="l"?!0:!1);K.reason==="m"?K.isLocked()&&UwM(J,K.G):tle(J,K)?ySq(J,K.Z,K.G):J.videoInfos=J.W;J.Z=K}; tle=function(J,K){return J.xo.HJ&&K.reason==="b"||J.xo.aW&&K.reason==="l"||J.xo.FW?!1:J.xo.Jp?!0:K.reason==="l"||K.reason==="b"||K.reason==="o"}; fWf=function(J,K){return K.isLocked()&&J.G.Z||J.Z===void 0?!1:K.equals(J.Z)}; WYq=function(J,K){var n,X=(n=J.U)==null?void 0:n.info.video.qualityOrdinal;return J.Aj?!0:J.U?K!==X?!0:!J.G.Z||J.xo.Td&&J.G.G===J.U.info.itag?!1:!0:!1}; UwM=function(J,K){var n=J.G.G;if(n){J.videoInfos=J.W;var X=g.ru(J.videoInfos,function(l){return l.id===n}); X&&X.video.qualityOrdinal===K?J.videoInfos=[X]:(X=J.videoInfos.map(function(l){return l.id}),J.loader.Zm("sabrpf",{pfid:""+n, vfids:""+X.join(".")}),ySq(J,K,K),Fp(J.G,""))}else ySq(J,K,K)}; ySq=function(J,K,n){J.videoInfos=J.W;J.videoInfos=g.d7(J.videoInfos,function(X){return X.video.qualityOrdinal>=K&&X.video.qualityOrdinal<=n})}; cSH=function(J){var K=bDr(J.G,J.N);K&&(J.X=[K])}; aW3=function(J,K,n){if(J.xo.d3){if(J.N){var X=g.d7(J.X,function(l){return l.id===J.N}); return A8(X,n).includes(K)}X=g.d7(J.X,function(l){var x;return!((x=l.Hw)==null||!x.isDefault)}); if(X.length>0)return A8(X,n).includes(K)}return A8(J.X,n).includes(K)}; A8=function(J,K){return J.map(function(n){return Tv(g.JF(n,K))})}; FYr=function(J){var K;if((K=J.Z)==null?0:K.isLocked())return J.videoInfos;var n=a5(J.G);K=g.d7(J.videoInfos,function(X){return X.OM>J.xo.OM?!1:!n.has(X.id)}); Efd(J.G)&&(K=g.d7(K,function(X){return X.video.width<=854&&X.video.height<=480})); return K}; EnH=function(J,K,n){var X=J.HW,l=J.dQ.getVideoData(),x=J.M2,V=H6({ix:l.S(),dQ:J.dQ,rO:J.rO,xo:J.xo,rh:J.rh,eE:J.eE,XC:J.XC,CO:J.CO,sb:J.sb,isPrefetch:J.isPrefetch,Xm:J.Xm,sabrLicenseConstraint:l.sabrLicenseConstraint,M8:J.M8,xB:J.xB,p6:J.p6,ZV:J.ZV,C0:!!x,a$:l.a$}),v=R5(l,J.cP,J.nextRequestPolicy,J.U3,J.Y_,J.JS,J.T1);n&&K&&(n=v.c8?v.c8.map(function(C){return C.type}):[],K("sabr",{stmctxt:n.join("_"), unsntctxt:v.Eh?v.Eh.join("_"):""}));K=J.c_;n=J.q2;if(n===void 0&&K===void 0){var Q;n=qMf(X.qS,(Q=J.An)==null?void 0:Q.video);var S;K=qMf(X.qS,(S=J.An)==null?void 0:S.audio)}if(l.Ui)var r=l.Ui;l={Nc:V,fI:J.fI,c_:K,q2:n,M2:x,videoPlaybackUstreamerConfig:r,hp:v};J.ax&&(l.ax=J.ax);l.l_=J.l_;l.Uv=X.fv;return l}; qMf=function(J,K){return K?[g.JF(K.info,J)]:[]}; MB=function(J,K,n){var X=this;this.requestType=J;this.Ax=K;this.XK=n;this.Z=null;this.QU={fbM:function(){var l;return(l=X.data)==null?void 0:l.isPrefetch}, Y_:function(){var l;return(l=X.data)==null?void 0:l.Y_}}}; iDk=function(J,K,n){K=mT(J.Ax,bRd(J,K,n),K);J.O7()&&K.set("probe","1");return K}; bRd=function(J,K,n){J.Su===void 0&&(J.Su=J.Ax.Su(K,n));return J.Su}; ASF=function(J){var K,n;return((K=J.G)==null?void 0:(n=K.Nc)==null?void 0:n.u4)||0}; Mlq=function(J){var K,n;return!!((K=J.G)==null?0:(n=K.Nc)==null?0:n.M8)}; Nz3=function(J){var K={},n=[],X=[];if(!J.data)return K;for(var l=0;l0;Q--)n.push(v)}n.length!==V?K.error=!0:(x=n.slice(-x),n.length=l,Imp(K,n,x));break;case 1:Imp(K,vX,Req);break;case 0:iIU(K, K.G&7);n=r_(K,16);l=r_(K,16);(n^l)!==65535&&(K.error=!0);K.output.set(K.data.subarray(K.Z,K.Z+n),K.X);K.Z+=n;K.X+=n;break;default:K.error=!0}J.X>J.output.length&&(J.output=new Uint8Array(J.X*2),J.X=0,J.Z=0,J.U=!1,J.G=0,J.register=0)}J.output.length!==J.X&&(J.output=J.output.subarray(0,J.X));return J.error?new Uint8Array(0):J.output}; Imp=function(J,K,n){K=wF3(K);n=wF3(n);for(var X=J.data,l=J.output,x=J.X,V=J.register,v=J.G,Q=J.Z;;){if(v<15){if(Q>X.length){J.error=!0;break}V|=(X[Q+1]<<8)+X[Q]<>=7;S<0;)S=K[(V&1)-S],V>>=1;else V>>=S&15;v-=S&15;S>>=4;if(S<256)l[x++]=S;else if(J.register=V,J.G=v,J.Z=Q,S>256){V=$g[S];V+=r_(J,QG[S]);Q=P7d(J,n);v=SA[Q];v+=r_(J,uM3[Q]);if(mJM&&Vn.length&&(J.error=!0);J.register|=(n[X+1]<<8)+n[X]<=0)return iIU(J,n&15),n>>4;for(iIU(J,7);n<0;)n=K[r_(J,1)-n];return n>>4}; r_=function(J,K){for(;J.G=J.data.length)return J.error=!0,0;J.register|=J.data[J.Z++]<>=K;J.G-=K;return n}; iIU=function(J,K){J.G-=K;J.register>>=K}; wF3=function(J){for(var K=[],n=g.z(J),X=n.next();!X.done;X=n.next())X=X.value,K[X]||(K[X]=0),K[X]++;var l=K[0]=0;n=[];var x=0;X=0;for(var V=1;V7&&(x+=K[V]);for(l=1;l>Q&1;v=x<<4|V;if(V<=7)for(Q=1<<7-V;Q--;)X[Q<>=7;V--;){X[Q]||(X[Q]=-K,K+=2);var S=l&1;l>>=1;Q=S-X[Q]}X[Q]=v}}return X}; pF7=function(J){var K,n,X,l,x,V,v;return g.G(function(Q){switch(Q.Z){case 1:if(!("DecompressionStream"in window))return Q.return(g.B6q(new g.eer(J)));K=new DecompressionStream("gzip");n=K.writable.getWriter();n.write(J);n.close();X=K.readable.getReader();l=new Og([]);case 2:return g.d(Q,X.read(),5);case 5:x=Q.G;V=x.value;if(v=x.done){Q.EM(4);break}l.append(V);Q.EM(2);break;case 4:return Q.return(l.ju())}})}; sr=function(J,K){this.G=J;this.Z=K}; LpV=function(J){return HG(HG(s3(function(){return O3(J.Z,function(K){return J.iq(J.G,K)})}),function(){return J.nM(J.G)}),function(){return J.uq(J.G)})}; T6e=function(J,K){return LpV(new sr(J,K))}; klM=function(J){zL.call(this,"onesie");this.zi=J;this.G={};this.X=!0;this.U=null;this.queue=new HIk(this);this.C={};this.N=Rd(function(K,n){var X=this;return function x(){var V,v,Q,S,r,C,O,H,R,w,P,B,p,k,c,y,A,q,or,lF;return g3(x,function(J7){switch(J7.Z){case 1:g.w3(J7,2);X.zi.x8();V=function(h7){return function(M){throw{name:h7,message:M};}}; v=K.ju();g.e8(J7,4,5);if(!n){J7.EM(7);break}return Rr(J7,YH(HG(DJd(X.zi,v,X.iv),V("DecryptError")).wait()),8);case 8:Q=J7.G;case 7:if(!X.zi.enableCompression){J7.EM(9);break}return Rr(J7,YH(HG(T6e((C=Q)!=null?C:v,X.zi.S().F2),V("DecompressError")).wait()),10);case 10:S=J7.G;case 9:r=t3((H=(O=S)!=null?O:Q)!=null?H:v,PWe);case 5:g.LU(J7,0,2);if(w=(R=X.zi.S())==null?void 0:R.Cv)((P=Q)==null?void 0:P.buffer)===w.exports.memory.buffer&&w.free(Q.byteOffset),((B=S)==null?void 0:B.buffer)===w.exports.memory.buffer&& w.free(S.byteOffset);g.De(J7,6);break;case 4:throw k=p=g.mk(J7),new ix("onesie.response.parse",{name:(q=k.name)!=null?q:"unknown",message:(or=k.message)!=null?or:"unknown",wasm:((c=X.zi.S())==null?0:c.Cv)?((y=X.zi.S())==null?0:(A=y.Cv)==null?0:A.G)?"1js":"1":"0",enc:X.X,gz:X.zi.enableCompression,webcrypto:!!u$()});case 6:return dJ8(r),lF=g.iE(r.body),J7.return(lF);case 2:g.LU(J7),g.De(J7,0)}})}()})}; gY3=function(J){var K=J.queue;K.G.length&&K.G[0].isEncrypted&&!K.Z&&(K.G.length=0);K=g.z(Object.keys(J.G));for(var n=K.next();!n.done;n=K.next()){n=n.value;var X=J.G[n];if(!X.zz){var l=J.queue;l.G.push({videoId:X.videoId,formatId:n,isEncrypted:!1});l.Z||hw(l)}}}; Yyp=function(J,K){var n=K.getLength(),X=!1;switch(J.U){case 0:J.zi.J("html5_future_onesie_ump_handler_on_player_response")?HG(O3(J.N(K,J.X),function(l){cuF(J.zi,l)}),function(l){J.zi.I$(l)}):J.x8(K,J.X).then(function(l){cuF(J.zi,l)},function(l){J.zi.I$(l)}); break;case 2:J.T4("ormk");K=K.ju();J.zi.J("html5_future_onesie_ump_handler_on_media_decryption_key")?J.queue.X(K,J.zi.S().F2):J.queue.decrypt(K);break;default:X=!0}J.zi.Bq&&J.zi.Zm("ombup","id.11;pt."+J.U+";len."+n+(X?";ignored.1":""));J.U=null}; dJ8=function(J){if(J.oA!==1)throw new ix("onesie.response.badproxystatus",{st:J.oA,webcrypto:!!u$(),textencoder:!!g.qp.TextEncoder});if(J.httpStatus!==200)throw new ix("onesie.response.badstatus",{st:J.httpStatus});}; GlU=function(J){return new Promise(function(K){setTimeout(K,J)})}; UJp=function(J,K){var n=J.S();n=J.vO&&n.J("html5_onesie_preload_use_content_owner");var X=J.m_,l=om(K.lx.experiments,"debug_bandaid_hostname");if(l)K=xg(K,l);else if((n===void 0?0:n)&&(X==null?0:X.url)&&!K.Z){var x=LT(new g.mZ(X.url));K=xg(K,x)}else K=(x=K.G.get(0))==null?void 0:x.location.clone();if(K&&J.videoId){x=VX(J.videoId);J=[];if(x)for(x=g.z(x),n=x.next();!n.done;n=x.next())J.push(n.value.toString(16).padStart(2,"0"));K.set("id",J.join(""));return K}}; tLF=function(J,K,n){n=n===void 0?0:n;var X,l;return g.G(function(x){if(x.Z==1)return X=[],X.push(K.load()),n>0&&X.push(GlU(n)),g.d(x,Promise.race(X),2);l=UJp(J,K);return x.return(l)})}; yu7=function(J,K,n,X){X=X===void 0?!1:X;J.set("cpn",K.clientPlaybackNonce);J.set("opr","1");var l=K.S();J.set("por","1");u$()||J.set("onem","1");K.startSeconds>0&&J.set("osts",""+K.startSeconds);X||(l.J("html5_onesie_disable_partial_segments")&&J.set("oses","1"),K=l.J("html5_gapless_onesie_no_media_bytes")&&oT(K)&&K.vO,n&&!K?(K=n.audio,J.set("pvi",n.video.join(",")),l.J("html5_onesie_disable_audio_bytes")||J.set("pai",K.join(",")),nR||J.set("osh","1")):(J.set("oad","0"),J.set("ovd","0"),J.set("oaad", "0"),J.set("oavd","0")))}; ZI3=function(J,K,n,X,l){l=l===void 0?!1:l;var x="https://youtubei.googleapis.com/youtubei/"+K.zw.innertubeApiVersion+"/player",V=[{name:"Content-Type",value:"application/json"}];X&&V.push({name:"Authorization",value:"Bearer "+X});V.push({name:"User-Agent",value:g.Ii()});g.Et("EOM_VISITOR_DATA")?V.push({name:"X-Goog-EOM-Visitor-Id",value:g.Et("EOM_VISITOR_DATA")}):(n=n.visitorData||g.Et("VISITOR_DATA"))&&V.push({name:"X-Goog-Visitor-Id",value:n});(n=g.Et("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&V.push({name:"X-YouTube-Lava-Device-Context", value:n});(K=om(K.experiments,"debug_sherlog_username"))&&V.push({name:"X-Youtube-Sherlog-Username",value:K});J=p3(JSON.stringify(J));return{url:x,zF:V,postBody:J,hdm:l,lV:l}}; WpF=function(J,K,n,X,l,x){var V=g.Eg(J,wL8,J.lV?void 0:n.Cv),v={encryptedClientKey:K.G.encryptedClientKey,Ny:!0,VQ:!0,H7:fmF(n,!!J.lV),zs:n.experiments.sM("html5_use_jsonformatter_to_parse_player_response")};if(J.lV)v.LWF=V;else{if(n.Cv){J=xJM(K).Z(V,K.iv);var Q;v.O1=(Q=n.Cv.wh(J))!=null?Q:J}else v.O1=K.encrypt(V);Q=v.O1;(0,g.a)();Q=ooF(new no3(K.G.X),Q,K.iv);v.Qo=Q;v.iv=K.iv}K=X.getVideoData();n=H6({ix:n,dQ:X,rO:K.startSeconds*1E3});l={Q7:v,Nc:n,onesieUstreamerConfig:l,N1:x,hp:R5(K)};K.reloadPlaybackParams&& (l.reloadPlaybackParams=K.reloadPlaybackParams);return l}; am3=function(J,K,n){var X,l,x;return g.G(function(V){if(V.Z==1)return X=g.Eg(K,wL8),g.d(V,juk(n,X),2);if(V.Z!=3)return l=V.G,g.d(V,VLf(n,l),3);x=V.G;return V.return({O1:l,encryptedClientKey:n.G.encryptedClientKey,iv:n.iv,Qo:x,Ny:!0,VQ:!0,H7:fmF(J,!!K.lV),zs:J.experiments.sM("html5_use_jsonformatter_to_parse_player_response")})})}; Fpq=function(J,K,n,X,l,x){var V,v,Q,S;return g.G(function(r){if(r.Z==1)return g.d(r,am3(n,J,K),2);V=r.G;v=X.getVideoData();Q=H6({ix:n,dQ:X,rO:v.startSeconds*1E3});S={Q7:V,Nc:Q,onesieUstreamerConfig:l,N1:x,hp:R5(v)};v.reloadPlaybackParams&&(S.reloadPlaybackParams=v.reloadPlaybackParams);return r.return(S)})}; fmF=function(J,K){J=zx(J.schedule,!0);K=K||!!u$()&&J>1572864;return"DecompressionStream"in window||!K}; Or=function(J,K){g.t.call(this);var n=this;this.dQ=J;this.playerRequest=K;this.logger=new g.XI("onesie");this.xhr=null;this.state=1;this.Dt=new Nb;this.Kp=!1;this.playerResponse="";this.z0=new Af(this);this.Dg=new klM(this);this.e4="";this.Gr=this.Bj=!1;this.z$="";this.enableCompression=this.s4=this.PR=!1;this.fD=[];this.IE=-1;this.lx=this.dQ.S();this.videoData=this.dQ.getVideoData();this.Bq=this.lx.Pw();this.Ep=this.lx.Da;this.nY=new X0(this.Ep.G,this.lx.F2,JuF(this.lx));this.KD=this.lx.J("html5_onesie_check_timeout"); this.sP=new g.AT(this.qX,500,this);this.TT=new g.AT(this.gP,1E4,this);this.bA=new g.AT(function(){if(!n.isComplete()){var X=Cp(n);n.I$(new ix("net.timeout",X))}},1E3); this.PU=new g.AT(this.uqv,2E3,this);this.hh=this.dQ.zo();this.u9=this.J("html5_onesie_wait_for_media_availability");g.Z(this.videoData,this);g.Z(this,this.sP);g.Z(this,this.TT);g.Z(this,this.PU);g.Z(this,this.nY);J=lq();nR&&J&&(this.xa=new Map);this.KR=new Map;this.RN=new Map;this.XR=new Map;this.Ys=new Map}; VG=function(J,K){var n;return(n=J.xa)==null?void 0:n.get(K)}; EYe=function(J,K,n){var X;return g.G(function(l){if(l.Z==1)return J.T4("oprd_s"),qyV(J)?g.d(l,her(J.nY,K,n),3):(X=J.nY.decrypt(K,n),l.EM(2));l.Z!=2&&(X=l.G);J.T4("oprd_c");return l.return(X)})}; DJd=function(J,K,n){J.T4("oprd_s");K=xJM(J.nY).encrypt(K,n);O3(K,function(){J.T4("oprd_c")}); return K}; bI8=function(J){return J.J("html5_onesie_host_probing")||J.Bq?nR:!1}; cuF=function(J,K){J.T4("oprr");J.playerResponse=K;J.s4||(J.u9=!1);HX(J)}; HX=function(J){if(!J.playerResponse)return!1;if(J.PR)return!0;var K=J.videoData.J("html5_onesie_audio_only_playback")&&Xr(J.videoData);if(J.xa&&J.u9){if(!J.xa.has(J.e4))return!1;var n=J.xa.get(J.e4),X;if(X=n){X=!1;for(var l=g.z(n.oZ.keys()),x=l.next();!x.done;x=l.next())if(x=n.oZ.get(x.value))for(var V=g.z(x.hf),v=V.next();!v.done;v=V.next())v.value.kf>0&&(x.Mp?X=!0:K=!0);X=!(K&&X)}if(X)return!1}J.T4("ofr");J.Dt.resolve(J.playerResponse);if(!J.KD){var Q;(Q=J.bA)==null||Q.start();J.TT.start()}return J.PR= !0}; MLM=function(J){if(J.xa&&!J.J("html5_onesie_media_capabilities")){J.T4("ogsf_s");var K=KTp(J.dQ.getVideoData(),function(X,l){J.Zm(X,l)}),n=Auk(J.dQ); K.video=aD8(n,K.video);J.T4("ogsf_c");if(K.video.length)return K;J.Zm("ombspf","l."+n.Z+";u."+n.G+";o."+n.X+";r."+n.reason)}}; qyV=function(J,K){return J.J("html5_onesie_sync_request_encryption")||(K==null?0:K.lV)||g.Nw(J.lx)&&J.J("html5_embed_onesie_use_sync_encryption")?!1:!!u$()}; Cp=function(J){if(!J.Y4)return{};var K=J.Y4.jF(),n;K.d=(n=J.Y4.MQ)==null?void 0:n.Q2();K.shost=J.b2;K.ty="o";return K}; N6d=function(J,K){var n,X;(X=(J=(n=J.xa)==null?void 0:n.get(K))==null)||(K=J.X?!1:J.X=!0,X=!K);return!X}; Jkr=function(J,K,n,X,l,x,V,v,Q,S,r){g.t.call(this);var C=this;this.dQ=J;this.loader=K;this.policy=n;this.audioTrack=X;this.videoTrack=l;this.HW=x;this.u_=V;this.gQ=v;this.X=Q;this.timing=S;this.GA=r;this.G=[];this.C={};this.kF=this.fv=!1;this.U3=new Set;this.U=this.Cv=this.K=this.sb=0;this.L=null;this.Aj={l_:[],fI:[]};this.cW={l_:[],fI:[]};this.W=null;this.N=[];this.QU={AFW:function(){return C.G}, RTq:function(){return C.C}, t$A:function(){C.G.length=0}, Sbm:function(){return C.U3}, s0Q:function(){return C.K}, szd:function(O){C.K=O}, YtQ:function(O){C.U=O}, eG:function(O){C.W=O}, vT:function(O){C.N=O}}; this.videoData=this.dQ.getVideoData();this.policy.Nd&&(this.PW=new f$(this.loader,this.policy,this.u_),g.Z(this,this.PW))}; oiF=function(J,K){K=K===void 0?!1:K;if(K93(J)){J.policy.N&&J.loader.Zm("sabrcrq",{create:1});var n=new MB(0,J.HW.L,J);J.policy.CH>0&&J.U++;K=niU(J,n,K);J.G.push(K);var X;(X=J.PW)==null||uXM(X,J.HW.L)}}; x2d=function(J,K){var n=XDp(J);if(J.policy.J7){var X=J.Aj;var l=J.cW}else X=Ro(J,J.audioTrack),l=Ro(J,J.videoTrack);var x=[].concat(g.m(X.l_),g.m(l.l_));uI(J)&&x.push.apply(x,g.m(J.N));var V=[].concat(g.m(X.fI),g.m(l.fI)),v=J.loader.Cm(),Q,S,r=J.dQ,C=J.HW,O=J.Z,H=J.U3,R=J.policy,w=J.loader.Jg,P=Bz7(J.loader)*1E3,B=(Q=J.MQ)==null?void 0:Q.XC;Q=(S=J.MQ)==null?void 0:S.CO;var p;S=Number((p=J.X.U)==null?void 0:p.info.itag)||0;var k;p=Number((k=J.X.C)==null?void 0:k.info.itag)||0;K={dQ:r,HW:C,l_:x,fI:V, rO:n,nextRequestPolicy:O,U3:H,xo:R,rh:w,eE:P,XC:B,CO:Q,sb:J.sb,isPrefetch:K||J.loader.isSuspended,I3:S,gy:p,cP:v,T1:J.dQ.pS()};n=J.loader.T2();x=VX(n);n&&(K.Y_=x);if(n=J.dQ.e2())K.M8=n*1E3;var c;n=J.X;x=n.GA;if(((c=n.xo)==null?0:OK(c))&&!x)for(c=g.z(n.X),V=c.next();!V.done;V=c.next())if(V.value.Hw){x=!0;break}c=OK(n.xo)&&!x?[]:GxU(n,n.X);K.c_=c;c=J.X;OK(c.xo)&&!c.QG?c=[]:(n=FYr(c),n.length===0&&(n=c.W),c=GxU(c,n));K.q2=c;K.M2=uI(J)?[J.W]:void 0;J.policy.S8&&(K.p6=lZ7(J.loader,J.audioTrack),K.ZV=lZ7(J.loader, J.videoTrack));if(J.policy.X){c=J.loader.getCurrentTime();X=eA(J,X.l_,c);l=eA(J,l.l_,c);l=Math.min(X,l);uI(J)&&J.policy.ol&&(X=eA(J,J.N,c),J.dQ.Pw()&&X0&&J.G[0].eZ()&&(K.JS=J.G[0].Pr());return K}; XDp=function(J){var K,n=J.policy.C&&((K=J.loader)==null?void 0:K.Vc());K=J.loader.getCurrentTime()||0;K=jTk(J,K);var X=J.loader.Ti()||0;K+=X;X=iK(J.videoData)||g.IT(J.videoData);var l=0;n?(X&&(l=Number.MAX_SAFE_INTEGER),J.videoData.GA&&(l=Math.ceil(J.videoData.Aj*1E3))):l=Math.ceil(K*1E3);return Math.min(Number.MAX_SAFE_INTEGER,l)}; uI=function(J){return J.policy.PM&&!!J.W}; jTk=function(J,K){if(J.loader.isSeeking())return K;var n=J.dQ.dE();if(!n)return K;n=n.Ya();if(n.length===0||hF(n,K))return K;if(!G5(J.videoTrack,K)&&!G5(J.audioTrack,K))return J.loader.Zm("sundrn",{b:0,lt:K}),K;for(var X=K,l=Infinity,x=0;xK)){var V=K-n.end(x);V=20)?(J.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),K):X}; eA=function(J,K,n){J=J.loader.Ti()||0;return Ur(K,(n+J)*1E3)/1E3+n}; K93=function(J){if(J.policy.CH>0){var K=Math.floor((0,g.a)()/1E4);if(K===J.Cv){if(J.U>=J.policy.CH){if(J.U===J.policy.CH){var n={reason:"toomanyrequests"};n.limit=J.U;J.loader.handleError("player.exception",n);J.U+=1}return!1}}else J.Cv=K,J.U=0}if(J.loader.isSuspended&&J.loader.FT)return!1;if(J.QG&&(0,g.a)()0&&(!J.policy.K||J.G.length!==1||!J.G[0].eZ()))return!1;var X;if((X=J.HW.L)==null||!LD(X,J.policy,J.C,J.loader.Io())||gb(J.audioTrack)&&gb(J.videoTrack))return!1; if(tw(J,J.audioTrack)&&tw(J,J.videoTrack))return J.policy.Z&&J.loader.Zm("sabrHeap",{a:""+p$(J.audioTrack),v:""+p$(J.videoTrack)}),!1;if(K=J.policy.X){K=!1;if(J.GA.Z===2)K=!0;else if(J.GA.Z===3){XDp(J);J.loader.Ti();var l=ij(J.audioTrack,J.loader.isSeeking()).l_;X=ij(J.videoTrack,J.loader.isSeeking()).l_;var x=J.loader.getCurrentTime()||0;l=eA(J,l,x);X=eA(J,X,x);X=Math.min(l,X);x=J.GA;X>=x.C?(x.Zm("sdai",{haltrq:X,est:x.C}),X=!0):X=!1;X&&(K=!0)}K&&J.policy.N&&J.loader.Zm("sabrcrq",{waitad:1})}if(K)return!1; J.policy.J7&&(J.Aj=Ro(J,J.audioTrack),J.cW=Ro(J,J.videoTrack));if(!J.Z)return J.policy.N&&J.loader.Zm("sabrcrq",{nopolicy:1}),!0;if(J.dQ.e2())return J.policy.N&&J.loader.Zm("sabrcrq",{utc:1}),!0;if(J.X.L)return J.policy.N&&J.loader.Zm("sabrcrq",{audio:1}),!0;if(!J.Z.targetAudioReadaheadMs||!J.Z.targetVideoReadaheadMs)return J.policy.N&&J.loader.Zm("sabrcrq",{noreadahead:1}),!0;if(J.policy.C&&J.loader.Vc())return J.policy.N&&J.loader.Zm("sabrcrq",{seekToHead:1}),!0;K=Math.min(GY(J.loader,J.audioTrack)* 1E3,J.Z.targetAudioReadaheadMs);X=Math.min(GY(J.loader,J.videoTrack)*1E3,J.Z.targetVideoReadaheadMs);var V=Math.min(K,X);x=T5(J.audioTrack,!0)*1E3;l=T5(J.videoTrack,!0)*1E3;var v=J.dQ.getCurrentTime()*1E3;if(J.policy.J7){var Q=Ur(J.Aj.l_,v);var S=Ur(J.cW.l_,v)}else Q=x,S=l;var r=QK||X>=0&&l.yJ>X+1)break;n=Math.max(n,l.startTimeMs+l.durationMs);X=Math.max(X,l.Qh)}return Math.max(0,n-K)}; niU=function(J,K,n){var X={u_:J.u_,gT:function(Q,S){J.dQ.l9(Q,S)}, qd:J.policy.XA,mu:J.policy.Z};J.u_.Z.N&&(X.aE=(J.videoTrack.G.info.OM||0)+(J.audioTrack.G.info.OM||0));J.policy.DO&&(X.Bp=J.audioTrack.G.index.n1(),X.qd=!1);var l=bRd(K,J.policy,J.C)?2:1;l!==J.K&&(J.K=l,hud(J));n=x2d(J,n);if(J.policy.K&&J.policy.Z&&n.U3){for(var x=l="",V=g.z(n.U3),v=V.next();!v.done;v=V.next())v=v.value,J.videoData.sabrContextUpdates.has(v)||J.policy.K&&n.JS&&n.JS.type===v?l+="_"+v:x+="_"+v;J.loader.Zm("sabrbldrqs",{ctxts:l,misctxts:x})}!K.setData(n,J.policy,J.C)&&J.policy.K&&J.loader.handleError("player.exception", {reason:"buildsabrrequestdatafailed"},1);X=new DF(J.policy,K,J.HW,J.C,J,X,J.loader.zo());dk(J.timing);J.policy.N&&J.loader.Zm("sabrcrq",{rn:X.wV(),probe:K.O7()});return X}; ZT=function(J,K){if(K.o4()||J.o4())J.policy.Z$||(J.policy.C?yG(J.loader):J.loader.AB());else{if(J.policy.Z&&K.isComplete()&&K instanceof DF){var n=J.loader,X=n.Zm,l,x,V=Object.assign(K.Y4.jF(),{rst:K.state,strm:K.xhr.QD(),d:(l=K.Y4.MQ)==null?void 0:l.Q2(),cncl:K.xhr&&K.cM.U?1:0,rqb:K.hV,cwt:K.mJ,swt:(x=K.Mr)==null?void 0:x.xJ});l=Object.assign(Nz3(K.info),V);X.call(n,"rqs",l)}if(K.isComplete()&&K.O7()&&K instanceof DF)J.policy.o5?K.J2()?(K.dispose(),J.G.length===0?J.loader.AB():(J=J.G[0],J instanceof DF&&J.a8()&&J.XX())):K.tL()&&J.loader.handleError(K.TR(),K.zU()):(K.dispose(),J.loader.AB());else{if(K.Hj())K instanceof DF&&Gv8(J.timing,K),hud(J),vi3(J);else if(K.tL())n=J.dQ.e2(),K instanceof DF&&Mlq(K.info)&&n&&J.loader.EA(n),K instanceof Or?J.G.pop():(n=1,K.canRetry()&&kxq(J.loader)&&(QTq(J,K),n=0),J.loader.handleError(K.TR(),K.zU(),n));else{if(J.loader.isSuspended&&!K.isComplete())return;vi3(J)}K.o4()||K instanceof Or||(K.isComplete()?n=wpe(K,J.policy,J.C):(n=z6d(K,J.policy,J.C),n===1&&(J.fv= !0)),n!==0&&(X=new MB(1,K.info.Ax),X.Su=n===2,niU(J,X)));J.policy.a5&&!K.isComplete()?dwU(J.loader):J.loader.AB()}}}; vi3=function(J){for(;J.G.length&&J.G[0].dU(J.R2());){var K=J.G.shift();$27(J,K)}J.G.length&&$27(J,J.G[0])}; $27=function(J,K){J.policy.ze&&K instanceof DF&&(J.j_=K);var n=new Set(K.eC(J.R2()));n=g.z(n);for(var X=n.next();!X.done;X=n.next()){var l=X.value;if(!(X=!(K instanceof Or))){X=J.X;var x=X.HW.qS,V=A8(X.videoInfos,x);x=aW3(X,l,x);var v=V.includes(l);!X.xo.As||x||v||X.loader.Zm("sabrcpf",{fid:""+l,vfids:""+V.join("."),said:X.N||""});X=x||V.includes(l)}if(X&&(X=K.Kg(l,J.R2()),V=J.policy.PM&&ox(X[0].G.info.mimeType),(!(!V&&J.policy.SI&&X.length>0&&(X[0].G.info.Mp()?T5(J.audioTrack):T5(J.videoTrack))> 3)||K.isComplete())&&K.t0(l,J.R2())))for(l=K.LI(l,J.R2()),l=g.z(l),x=l.next();!x.done;x=l.next())if(x=x.value,J.policy.Z&&K instanceof Or&&J.loader.Zm("omblss",{s:x.info.Zr()}),V)v=J.timing,v.GA||(v.GA=(0,g.a)(),g.mC("fcb_r",v.GA,v.G)),v=J,v.videoData.qS()&&v.W&&Tv(v.W)===Tv(g.JF(x.info.G.info,v.HW.qS))&&v.dQ.publish("sabrCaptionsDataLoaded",x,v.vT.bind(v));else{v=x.info.G.info.Mp();var Q=x.info.G;if(v){var S=void 0;var r=J.X,C=(S=K.jw(J.R2()))==null?void 0:S.token;r.L&&Q!==r.C?S=!0:(r.L=!1,Q!==r.C&& (r.C=Q,r.di(Q,r.audioTrack,C)),S=!1);if(S)continue}else S=void 0,YMF(J.X,Q,(S=K.jw(J.R2()))==null?void 0:S.token);S=v?J.audioTrack:J.videoTrack;K instanceof Or&&(S.W=!1,K instanceof Or&&(v?TZV(J.timing):LTM(J.timing)));try{IX(S,X,x)}catch(O){x=mx(O),J.loader.handleError(x.errorCode,x.details,x.severity),S.Ph(),J.Cn(!1,"pushSlice"),yG(J.loader)}}}}; QTq=function(J,K){J.policy.K?J.G.splice(J.G.indexOf(K)).forEach(function(n){n.dispose()}):(J.G.pop(),K==null||K.dispose())}; Sok=function(J,K,n){for(var X=[],l=0;l0)for(var K=g.z(J.videoData.sabrContextUpdates.keys()),n=K.next();!n.done;n=K.next()){n=n.value;var X=void 0;((X=J.videoData.sabrContextUpdates.get(n))==null?0:X.sendByDefault)&&J.U3.add(n)}if(J.policy.K&&J.G.length)for(K=g.z(J.G),n=K.next();!n.done;n=K.next())(n=n.value.Pr())&&n.type&&n.sendByDefault&&J.U3.add(n.type)}; rkV=function(J){J.policy.wN&&(J.MQ=void 0,J.sb=0)}; sTM=function(J,K){if(K.tL()||K.o4()){var n=J.loader,X=n.Zm,l=K.state;J=J.R2();var x,V;if((K=(x=K.xa)==null?void 0:x.get(J))==null)K=void 0;else{x=0;J=K.eC();for(var v=0;v=J.policy.pO,V=!1;if(x){var v=0;!isNaN(K)&&K>J.C&&(v=K-J.C,J.C=K);v/l=J.policy.Qf&&!J.X;if(!x&&!n&&urV(J,K))return NaN;n&&(J.X=!0);a:{X=V;n=(0,g.a)()/1E3-(J.EV.mW()||0)-J.W.G-J.policy.fU;x=J.Z.startTime;n=x+n;if(X){if(isNaN(K)){fp(J,NaN,"n",K);x=NaN;break a}X=K-J.policy.G0;X=x.U&&X<=x.N){X=!0;break a}X=!1}X=!X}if(X)return J.Zm("ostmf",{ct:J.getCurrentTime(),a:K.G.info.Mp()}),!1;(J=J.QG)!=null&&(J.oZ.get(n).wd=!0);return!0}; BnH=function(J){if(!J.HW.qS)return!0;var K=J.dQ.getVideoData();if(J.dQ.SB())return J.Zm("ombpa",{}),!1;var n,X;if(!!((n=J.K)==null?0:(X=n.Os)==null?0:X.zHj)!==J.HW.q_)return J.Zm("ombplmm",{}),!1;n=K.vW||K.liveUtcStartSeconds||K.f9;if(J.HW.q_&&n)return J.Zm("ombplst",{}),!1;if(J.HW.K)return J.Zm("ombab",{}),!1;n=Date.now();return kV(J.HW)&&!isNaN(J.Aj)&&n-J.Aj>J.policy.zl*1E3?(J.Zm("ombttl",{}),!1):J.HW.h7&&J.HW.U||!J.policy.Sv&&J.HW.isPremiere||!(rn(K)===0||J.policy.G&&K.J("html5_enable_onesie_media_for_sabr_proxima_optin"))|| K.J("html5_disable_onesie_media_for_mosaic")&&tk(K)||K.NH()&&!K.J("html5_enable_onesie_media_for_lifa")&&K.isDaiEnabled()&&K.enableServerStitchedDai||K.J("html5_disable_onesie_media_for_lifa_eligible")&&Uo(K)?!1:!0}; m2p=function(J,K){var n=K.G,X=J.HW.qS;if(BnH(J))if(J.QG&&J.QG.oZ.has(Tv(g.JF(n.info,X)))){if(X=Tv(g.JF(n.info,X)),iS7(J,K)){var l=new Wm(J.QG.Kg(X)),x=function(V){try{if(V.tL())J.handleError(V.TR(),V.zU()),kU(K,V),FY(V.info)&&F_(J.C,K,n,!0),J.AB();else if(Tz3(J.C,V)){var v;(v=J.X)==null||f5F(v,V.info,J.GA);J.AB()}}catch(Q){V=mx(Q),J.handleError(V.errorCode,V.details,V.severity),J.Ph()}}; n.X=!0;aD(l)&&(PA(K,new da(J.policy,X,l,J.QG,x)),dk(J.timing))}}else J.Zm("ombfmt",{})}; pDV=function(J,K){K=K||J.videoTrack&&J.videoTrack.Z&&J.videoTrack.Z.startTime||J.getCurrentTime();var n=qB,X=J.videoTrack,l=J.G;K=l.nextVideo&&l.nextVideo.index.dG(K)||0;l.cW!==K&&(l.PW={},l.cW=K,b6(l,l.G));K=!l.G.isLocked()&&l.K>-1&&(0,g.a)()-l.KK.G&&K.reason==="b";X||l||n?(J.dQ.Xx({reattachOnConstraint:X?"u":l?"drm":"perf",lo:K.Z,up:K.G}),J.policy.Td||(J.U.G.Z=!1)):(J.policy.Td&&(J.U.G.Z=!1),yG(J))}}else if(!nV3(J.G,K)&&J.videoTrack){J.logger.debug(function(){return"Setting constraint: r="+K.reason+" u="+K.G}); n=J.G.G;giU(J,XuV(J.G,K));pDV(J);X=K.isLocked()&&K.reason==="m"&&J.G.QG;l=J.policy.RH&&K.reason==="l"&&cA(J.videoTrack);n=n.G>K.G&&K.reason==="b";var x=J.G.gQ&&!fP();X||l||n||x?J.dQ.Xx({reattachOnConstraint:X?"u":l?"drm":x?"codec":"perf"}):yG(J)}}; Yor=function(J,K,n){if((!J.tj||FJ(J.tj)&&!J.policy.Qv)&&!J.ST.isSeeking()&&(J.policy.G||cA(K)&&K.G.qp()&&J.G.GA)){var X=J.getCurrentTime()+Atf(J.L,K,n);J.logger.debug(function(){return"Clearing back to "+X.toFixed(3)}); lWU(K,X)}}; giU=function(J,K){K&&(J.logger.debug(function(){return"Logging new format: "+lQ(K.video.info)}),G$V(J.dQ,new ZF(K.video,K.reason))); if(J.G.fv){var n=VHF(J.G,"a");J.dQ.Lo(new ZF(n.audio,n.reason))}}; yG=function(J){g.M0(J.Gi)}; dwU=function(J){J.policy.a5&&J.policy.Zb&&Math.min(Xpq(J.videoTrack),Xpq(J.audioTrack))*1E3>J.policy.qs?g.M0(J.vW):J.AB()}; U2p=function(J,K){var n=(0,g.a)()-K,X=T5(J.audioTrack,!0)*1E3,l=T5(J.videoTrack,!0)*1E3;J.logger.debug(function(){return"Appends paused for "+n}); if(J.policy.Z&&(J.Zm("apdpe",{dur:n.toFixed(),abuf:X.toFixed(),vbuf:l.toFixed()}),ys(J.policy))){var x=pA(J.L);J.Zm("sdps",{ct:K,ah:X.toFixed(),vh:l.toFixed(),mr:LA(J.L,J.Db,x),bw:x.toFixed(),js:J.isSeeking(),re:+J.Db,ps:(J.policy.ym||"").toString(),rn:(J.policy.f4||"").toString()})}}; tn3=function(J){if(Qmf(J.videoTrack))return J.logger.debug("Pausing appends for server-selectable format"),"ssf";if(J.policy.kF&&Uk(J.videoTrack)&&Uk(J.audioTrack))return"updateEnd";if(gb(J.audioTrack)||gb(J.videoTrack)&&J.videoTrack.G.info.YF!=="f")return"";if(J.ST.isSeeking()){var K=J.L;var n=J.videoTrack;var X=J.audioTrack;if(K.policy.G){var l=K.policy.zw;ys(K.policy)&&(l=LA(K,!1,pA(K)));K=l;n=T5(X,!0)>=K&&T5(n,!0)>=K}else n.X.length||X.X.length?(l=n.G.info.OM+X.G.info.OM,l=10*(1-pA(K)/l),K=Math.max(l, K.policy.zw),n=T5(X,!0)>=K&&T5(n,!0)>=K):n=!0;if(!n)return"abr";n=J.videoTrack;if(n.X.length>0&&n.U.Z.length===1&&dgd(n.U).info.W360);X=ys(J.policy)&&J.policy.h9;if(!J.Db||!X&&n)return"";n=J.policy.Yk;ys(J.policy)&&(n=LA(J.L,J.Db,pA(J.L)));n=jmq(J.videoTrack,J.getCurrentTime(),n)||jmq(J.audioTrack,J.getCurrentTime(), n);return ys(J.policy)?n?"mbnm":"":(J.videoTrack.X.length>0||J.audioTrack.X.length>0||aX(J.C,J.videoTrack,J.audioTrack)||aX(J.C,J.audioTrack,J.videoTrack))&&n?"nord":""}; yk3=function(J){if(J.W){var K=J.W.AB(J.audioTrack,Qd(J.tj.Z.FL()));K&&J.dQ.seekTo(K,{zW:!0,E8:"pollSubsegmentReadahead",cQ:!0})}}; Ei3=function(J,K,n){if(J.policy.kF&&Uk(K))return!1;if(n.hg())return!0;if(!n.Ni())return!1;var X=fA(K);if(!X||X.info.type===6)return!1;var l;if(J.policy.fG||((l=J.X)==null?0:qTk(l,K,X.info.BW)))J.PW=0;else return J.ST.isSeeking()&&yG(J),J.PW=J.PW||(0,g.a)(),!1;if(!WX(J,K,n,X.info))return!1;if(J.HW.Z&&X.info.Z===0){if(l=ZSM(K,n,X)){var x=wb(K);J.Zm("initchg",{it:X.info.G.info.id,sr:!!x&&x.G===X.info.G,ty:X.info.type,seg:X.info.BW})}x=g.MR(X.info.G.info);J.policy.f9&&x&&!l&&JxM(X)}x=J.W&&!!J.W.U&&K.G.info.audio; l=J.HW.isManifestless||X.C;if(!(J.HW.Z&&X.info.Z!==0||l&&!x)&&fZM(J,K,n,X))return!0;if(x)return!1;x=GY(J,K);x=J.getCurrentTime()+x;if(X.info.U>x)return J.policy.G&&W93(J,K),J.policy.gm&&hY3(K.U,x,!1),!1;aZF(J,K);var V;J.policy.zL&&n===((V=J.tj)==null?void 0:V.G)&&J.wQ&&(n.TD()===0?(J.wQ=!1,J.policy.zL=!1):J.Fq=n.TD());if(!F98(J,n,X,K))return!1;J.policy.kF&&X.info.PH()?(J.dQ.S().Pw()&&J.Zm("eosl",{ls:X.info.Zr()}),X.isLocked=!0):(K.fn(X),jjF(J.G,X.info),J.logger.debug(function(){return"Appended "+ X.info.Zr()+", buffered: "+jy(n.FL())})); l&&qoH(J,X.info.G.B2);return!0}; W93=function(J,K){K===J.videoTrack?J.j_=J.j_||(0,g.a)():J.MQ=J.MQ||(0,g.a)()}; aZF=function(J,K){K===J.videoTrack?J.j_=0:J.MQ=0}; F98=function(J,K,n,X){var l=J.policy.Gi?(0,g.a)():0,x=n.C&&n.info.G.G||void 0,V=n.G;n.C&&(V=bSk(J,n,V)||V);var v=V.ju();V=J.policy.Gi?(0,g.a)():0;K=Akf(J,K,v,n.info,x);(X=X.K)!=null&&(x=n.info,l=V-l,V=(0,g.a)()-V,!X.Z||OPH(X.Z,x)&&X.Z.BW===x.BW||X.flush(),X.U+=l,X.X+=V,l=1,!X.Z&&x.Z&&(l=2),n$(X,l,K),V=Math.ceil(x.Z/1024),l===2&&X.G.add(V),X.G.add(Math.ceil((x.Z+x.X)/1024)-V),X.Z=x);J.cW=0;if(K===0)return J.Cv&&(J.logger.debug("Retry succeed, back to normal append logic."),J.Cv=!1,J.Dm=!1),J.md=0, !0;if(K===2||K===5)return Mnq(J,"checked",K,n.info),!1;if(K===1){if(!J.Cv)return J.logger.debug("QuotaExceeded, retrying."),J.Cv=!0,!1;if(!J.Dm)return J.Dm=!0,J.dQ.seekTo(J.getCurrentTime(),{E8:"quotaExceeded",cQ:!0}),!1;n.info.VB()?(l=J.policy,l.j_=Math.floor(l.j_*.8),l.Aj=Math.floor(l.Aj*.8)):(l=J.policy,l.Fq=Math.floor(l.Fq*.8),l.Aj=Math.floor(l.Aj*.8));J.policy.G?W6(J.U.G,n.info.G,!1):Ms(J.G,n.info.G)}J.dQ.Xx({reattachOnAppend:K});return!1}; bSk=function(J,K,n){var X;if(X=J.policy.iW&&J.tj&&!J.tj.L&&!J.dQ.zg())K=K.info.G.info,X=K.dW()&&ah(K)&&K.video&&K.video.width<3840&&K.video.width>K.video.height;if(X&&(J.tj.L=!0,DR('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return n=TeM(n),J.policy.Z&&J.Zm("sp4k",{s:!!n}),n}; Mnq=function(J,K,n,X){var l="fmt.unplayable",x=1;n===5||n===3?(l="fmt.unparseable",J.policy.G?!X.G.info.video||a5(J.U.G).size>0||W6(J.U.G,X.G,!1):!X.G.info.video||a5(J.G.C).size>0||Ms(J.G,X.G)):n===2&&(J.md<15?(J.md++,l="html5.invalidstate",x=0):l="fmt.unplayable");X=Z5(X);var V;X.mrs=(V=J.tj)==null?void 0:AF(V);X.origin=K;X.reason=n;J.handleError(l,X,x)}; EVM=function(J,K,n,X,l){var x=J.HW;var V=J.policy.G,v=!1,Q=-1,S;for(S in x.G){var r=ox(x.G[S].info.mimeType)||x.G[S].info.VB();if(X===r)if(r=x.G[S].index,r.s2(K.BW)){v=r;var C=K,O=v.HQ(C.BW);O&&O.startTime!==C.startTime?(v.segments=[],v.e8(C),v=!0):v=!1;v?Q=K.BW:!K.pending&&V&&(C=r.getDuration(K.BW),C!==K.duration&&(x.publish("clienttemp","mfldurUpdate",{itag:x.G[S].info.itag,seg:K.BW,od:C,nd:K.duration},!1),r.e8(K),v=!0))}else r.e8(K),v=!0}Q>=0&&(V={},x.publish("clienttemp","resetMflIndex",(V[X? "v":"a"]=Q,V),!1));x=v;Saf(J.ST,K,X,x);J.X.XY(K,n,X,l);if(J.policy.nH&&n){var H;(H=J.fU)!=null&&H.U.set(K.BW,n)}K.BW===J.HW.h7&&x&&p4(J.HW)&&K.startTime>p4(J.HW)&&(J.HW.Aj=K.startTime+(isNaN(J.timestampOffset)?0:J.timestampOffset),J.ST.isSeeking()&&J.ST.G 5)return J.cW=0,J.dQ.Xx({initSegStuck:1,as:X.info.Zr()}),!0}else J.cW=0,J.a5=X;J.policy.ir&&(n.abort(),(V=K.K)!=null&&(n$(V,4),V.flush()));l=Akf(J,n,x,Q,l);var S;(S=K.K)==null||Cnp(S,l,Q);if(l!==0)return Nn7(J,l,X),!0;X.info.VB()?kvf(J.timing):gf3(J.timing);J.logger.debug(function(){return"Appended init for "+X.info.G.info.id}); qoH(J,X.info.G.B2);return n.N$()}; ZSM=function(J,K,n){if(K.Ho()==null){J=wb(J);if(!(K=!J||J.G!==n.info.G)){a:if(J=J.K,n=n.info.K,J.length!==n.length)n=!1;else{for(K=0;K1)return 6;V.PW=new g.AT(function(){var v=fA(V);J.o4()||v==null||!v.isLocked?J.dQ.S().Pw()&&J.Zm("eosl",{delayA:v==null?void 0:v.info.Zr()}):Jnk(V)?(J.dQ.S().Pw()&&J.Zm("eosl",{dunlock:v==null?void 0:v.info.Zr()}),KMd(J,V===J.audioTrack)):(J.Zm("nue",{ls:v.info.Zr()}),v.info.GA+=1,J.tj&&J.b5())},1E4,J); J.dQ.S().Pw()&&J.Zm("eosl",{delayS:X.Zr()});V.PW.start()}J.policy.oK&&(X==null?void 0:X.G)instanceof ET&&X.PH()&&J.Zm("poseos",{itag:X.G.info.itag,seg:X.BW,lseg:X.G.index.VU(),es:X.G.index.X});K.appendBuffer(n,X,l)}catch(v){if(v instanceof DOMException){if(v.code===11)return 2;if(v.code===12)return 5;if(v.code===22||v.message.indexOf("Not enough storage")===0)return K=Object.assign({name:"QuotaExceededError",buffered:jy(K.FL()).replace(/,/g,"_"),vheap:p$(J.videoTrack),aheap:p$(J.audioTrack),message:g.KK(v.message, 3),track:J.tj?K===J.tj.Z?"v":"a":"u"},wDp(J.policy.PJ)),J.handleError("player.exception",K),1;g.ko(v)}return 4}return J.tj.Kl()?3:0}; ZN=function(J,K,n){J.dQ.seekTo(K,n)}; qoH=function(J,K){K&&J.dQ.SE(new vA(K.key,K.type))}; rb=function(J,K){J.dQ.Zn(K)}; GY=function(J,K){if(J.Cv&&!J.Db)return 3;if(J.isSuspended)return 1;var n;if((n=J.tj)==null?0:n.tj&&n.tj.streaming===!1)return 4;n=(K.G.info.audio?J.policy.Fq:J.policy.j_)/(K.OM*J.policy.l$);if(J.policy.rL>0&&J.tj&&FJ(J.tj)&&(K=K.G.info.video?J.tj.Z:J.tj.G)&&!K.N$()){K=K.FL();var X=Vd(K,J.getCurrentTime());X>=0&&(K=J.getCurrentTime()-K.start(X),n+=Math.max(0,Math.min(K-J.policy.rL,J.policy.y4)))}J.policy.Aj>0&&(n=Math.min(n,J.policy.Aj));return n}; lZ7=function(J,K){return(GY(J,K)+J.policy.wZ)*K.OM}; owV=function(J){J.gQ&&!J.isSuspended&&wz(J.schedule)&&(nw3(J,J.gQ),J.gQ="")}; nw3=function(J,K){II(K,"cms",function(n){J.policy.Z&&J.Zm("pathprobe",n)},function(n){J.dQ.handleError(n)})}; X43=function(J,K){if(J.tj&&J.tj.U&&!J.tj.Kl()&&(K.hk=T5(J.videoTrack),K.Z=T5(J.audioTrack),J.policy.Z)){var n=p$(J.videoTrack),X=p$(J.audioTrack),l=jy(J.tj.Z.FL(),"_",5),x=jy(J.tj.G.FL(),"_",5);Object.assign(K.G,{lvq:n,laq:X,lvb:l,lab:x})}K.bandwidthEstimate=B0(J.L);var V;(V=J.audioTrack.K)==null||V.flush();var v;(v=J.videoTrack.K)==null||v.flush();J.logger.debug(function(){return Ih(K.G)})}; lc3=function(J,K){J.GA=K;J.X&&(J.X.X=K);J.GA.u7(J.videoTrack.G.info.dW());J.C.Z=J.GA;J.policy.X&&(J.Z.L=J.GA)}; hjU=function(J,K){if(J.tj&&J.tj.Z){if(J.policy.TM){var n=rSq(J.audioTrack);if(n&&n.Mp()){var X=J.dQ;if(X.IF&&(X.IF.G=n,n=X.Vw(X.IF.videoId),n.qoe)){n=n.qoe;X=X.IF;var l=g.qS(n.provider);x3M(n,l,X)}}}J.policy.I1&&(n=rSq(J.videoTrack))&&n.VB()&&(X=J.dQ,X.Qm&&(X.Qm.G=n,n=X.Vw(X.Qm.videoId),n.qoe&&jtp(n.qoe,X.Qm)));K-=isNaN(J.timestampOffset)?0:J.timestampOffset;J.getCurrentTime()!==K&&J.resume();J.ST.isSeeking()&&J.tj&&!J.tj.Kl()&&(X=J.getCurrentTime()<=K&&K=0&&x1?v.X[0]=K&&PKH(J,X.startTime,!1)}); return n&&n.startTimeJ.getCurrentTime())return n.start/1E3;return Infinity}; Vnp=function(J){if(J.dQ.getVideoData().isLivePlayback)return!1;var K=J.dQ.dE();if(!K)return!1;K=K.getDuration();if(J.tj&&J.tj.G&&J.tj.Z){var n=J.getCurrentTime(),X=J.tj.G.FL();J=J.tj.Z.FL();X=X?v5(X,n):n;n=J?v5(J,n):n;n=Math.min(X,n);K=isNaN(n)?!1:n>=K-.01}else K=!1;return K}; Nn7=function(J,K,n){J.policy.VM&&oT(J.dQ.getVideoData())?(J.dQ.iy()||Mnq(J,"sepInit",K,n.info),rnd(J.dQ,"sie")):Mnq(J,"sepInit",K,n.info)}; kxq=function(J){return J.dQ.Io()0){var l=X.G.shift();Co7(X,l.info)}X.G.length>0&&(l=X.G[0].time-(0,g.a)(),X.Z.start(Math.max(0,l)))}},0); g.Z(this,this.Z);K.subscribe("widevine_set_need_key_info",this.C,this)}; Co7=function(J,K){a:{var n=K.cryptoPeriodIndex;if(isNaN(n)&&J.X.size>0)n=!0;else{for(var X=g.z(J.X.values()),l=X.next();!l.done;l=X.next())if(l.value.cryptoPeriodIndex===n){n=!0;break a}n=!1}}J.publish("log_qoe",{wvagt:"reqnews",canskip:n});n||J.publish("rotated_need_key_info_ready",K)}; OCf=function(){var J={};var K=J.url;var n=J.interval;J=J.retries;this.url=K;this.interval=n;this.retries=J}; HCH=function(J,K){this.statusCode=J;this.message=K;this.Z=this.heartbeatParams=this.errorMessage=null;this.G={};this.nextFairplayKeyId=null}; Rj8=function(J,K,n){n=n===void 0?"":n;g.t.call(this);this.message=J;this.requestNumber=K;this.R9=n;this.onError=this.onSuccess=null;this.G=new g.Yu(5E3,2E4,.2)}; uR3=function(J,K,n){J.onSuccess=K;J.onError=n}; Pj8=function(J,K,n,X){var l={timeout:3E4,onSuccess:function(x){if(!J.o4()){Ul("drm_net_r",void 0,J.R9);var V=x.status==="LICENSE_STATUS_OK"?0:9999,v=null;if(x.license)try{v=nK(x.license)}catch(R){g.ko(R)}if(V!==0||v){v=new HCH(V,v);V!==0&&x.reason&&(v.errorMessage=x.reason);if(x.authorizedFormats){V={};for(var Q=[],S={},r=g.z(x.authorizedFormats),C=r.next();!C.done;C=r.next())if(C=C.value,C.trackType&&C.keyId){var O=wAp[C.trackType];if(O){O==="HD"&&x.isHd720&&(O="HD720");C.isHdr&&(O+="HDR");V[O]|| (Q.push(O),V[O]=!0);var H=null;try{H=nK(C.keyId)}catch(R){g.ko(R)}H&&(S[g.Je(H,4)]=O)}}v.Z=Q;v.G=S}x.nextFairplayKeyId&&(v.nextFairplayKeyId=x.nextFairplayKeyId);x.sabrLicenseConstraint&&(v.sabrLicenseConstraint=nK(x.sabrLicenseConstraint));x=v}else x=null;if(x)J.onSuccess(x,J.requestNumber);else J.onError(J,"drm.net","t.p;p.i")}}, onError:function(x){if(!J.o4())if(x&&x.error)x=x.error,J.onError(J,"drm.net.badstatus","t.r;p.i;c."+x.code+";s."+x.status,x.code);else J.onError(J,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){J.onError(J,"drm.net","rt.req."+J.requestNumber)}}; X&&(l.ws="Bearer "+X);g.Ja(n,"player/get_drm_license",K,l)}; Ihk=function(J,K,n,X){g.hi.call(this);this.videoData=J;this.lx=K;this.L=n;this.sessionId=X;this.C={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.GA=this.QG=!1;this.X=null;this.Aj=[];this.U=[];this.a$=[];this.W=!1;this.G={};this.status="";this.N=NaN;this.Z=J.C;this.cryptoPeriodIndex=n.cryptoPeriodIndex;J={};Object.assign(J,this.lx.G);J.cpn=this.videoData.clientPlaybackNonce;this.videoData.cW&&(J.vvt=this.videoData.cW,this.videoData.mdxEnvironment&&(J.mdx_environment=this.videoData.mdxEnvironment)); this.lx.Aj&&(J.authuser=this.lx.Aj);this.lx.pageId&&(J.pageid=this.lx.pageId);isNaN(this.cryptoPeriodIndex)||(J.cpi=this.cryptoPeriodIndex.toString());var l=(l=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.Ii()))?l[1]:"";l==="ATV"&&(J.cdt=l);this.C=J;this.C.session_id=X;this.K=!0;this.Z.flavor==="widevine"&&(this.C.hdr="1");this.Z.flavor==="playready"&&(K=Number(om(K.experiments,"playready_first_play_expiration")),!isNaN(K)&&K>=0&&(this.C.mfpe=""+K),this.K=!1);K="";g.qg(this.Z)?FI(this.Z)?(X=n.Z)&&(K="https://www.youtube.com/api/drm/fps?ek="+ TIq(X)):(K=n.initData.subarray(4),K=new Uint16Array(K.buffer,K.byteOffset,K.byteLength/2),K=String.fromCharCode.apply(null,K).replace("skd://","https://")):K=this.Z.Z;this.baseUrl=K;this.fairplayKeyId=dP(this.baseUrl,"ek")||"";if(K=dP(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(K);this.Aj=n.dW?[g.Je(n.initData,4)]:n.X;NS(this,{sessioninit:n.cryptoPeriodIndex});this.status="in"}; pAU=function(J,K){NS(J,{createkeysession:1});J.status="gr";Ul("drm_gk_s",void 0,J.videoData.K);J.url=i$k(J);try{J.X=K.createSession(J.L,function(n){NS(J,{m:n})})}catch(n){K="t.g"; n instanceof DOMException&&(K+=";c."+n.code);J.publish("licenseerror","drm.unavailable",1,K,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}J.X&&(Bbq(J.X,function(n,X){mBM(J,n,X)},function(n,X,l){if(!J.o4()){X=void 0; var x=1;g.qg(J.Z)&&g.cp(J.lx)&&J.lx.J("html5_enable_safari_fairplay")&&l===1212433232&&(X="ERROR_HDCP",x=J.lx.J("html5_safari_fairplay_ignore_hdcp")?0:x);J.error("drm.keyerror",x,n,X)}},function(){J.o4()||(NS(J,{onkyadd:1}),J.GA||(J.publish("sessionready"),J.GA=!0))},function(n){J.NI(n)}),g.Z(J,J.X))}; i$k=function(J){var K=J.baseUrl;sR8(K)||J.error("drm.net",2,"t.x");if(!dP(K,"fexp")){var n=["23898307","23914062","23916106","23883098"].filter(function(l){return J.lx.experiments.experiments[l]}); n.length>0&&(J.C.fexp=n.join())}n=g.z(Object.keys(J.C));for(var X=n.next();!X.done;X=n.next())X=X.value,K=lVd(K,X,J.C[X]);return K}; mBM=function(J,K,n){if(!J.o4())if(K){NS(J,{onkmtyp:n});J.status="km";switch(n){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":L5k(J,K);return;default:J.publish("ctmp","message_type",{t:n,l:K.byteLength})}J.QG||(Ul("drm_gk_f",void 0,J.videoData.K),J.QG=!0,J.publish("newsession",J));if(f4(J.Z)&&(K=Tbp(K),!K))return;K=new Rj8(K,++J.requestNumber,J.videoData.K);uR3(K,function(X){DBp(J,X)},function(X,l,x){if(!J.o4()){var V=0; X.G.Z>=3&&(V=1,l="drm.net.retryexhausted");NS(J,{onlcsrqerr:l,info:x});J.error(l,V,x);J.shouldRetry(Bf(V),X)&&dBq(J,X)}}); g.Z(J,K);k53(J,K)}else J.error("drm.unavailable",1,"km.empty")}; L5k=function(J,K){NS(J,{sdpvrq:1});J.N=Date.now();if(J.Z.flavor!=="widevine")J.error("drm.provision",1,"e.flavor;f."+J.Z.flavor+";l."+K.byteLength);else{var n={cpn:J.videoData.clientPlaybackNonce};Object.assign(n,J.lx.G);n=g.Td("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",n);K={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, K)}),responseType:"arraybuffer"};g.La(n,K,3,500).then(BG(function(X){X=X.xhr;if(!J.o4()){X=new Uint8Array(X.response);var l=String.fromCharCode.apply(null,X);try{var x=JSON.parse(l)}catch(V){}x&&x.signedResponse?(J.publish("ctmp","drminfo",{provisioning:1}),x=(Date.now()-J.N)/1E3,J.N=NaN,J.publish("ctmp","provs",{et:x.toFixed(3)}),J.X&&J.X.update(X)):(x=x&&x.error&&x.error.message,X="e.parse",x&&(X+=";m."+x),J.error("drm.provision",1,X))}}),BG(function(X){J.o4()||J.error("drm.provision",1,"e."+X.errorCode+ ";c."+(X.xhr&&X.xhr.status))}))}}; JP=function(J){var K;if(K=J.K&&J.X!=null)J=J.X,K=!(!J.G||!J.G.keyStatuses);return K}; k53=function(J,K){J.status="km";Ul("drm_net_s",void 0,J.videoData.K);var n=new g.No(J.lx.zw),X={context:g.Qn(n.config_||g.vN())};X.drmSystem=gU3[J.Z.flavor];X.videoId=J.videoData.videoId;X.cpn=J.videoData.clientPlaybackNonce;X.sessionId=J.sessionId;X.licenseRequest=g.Je(K.message);X.drmParams=J.videoData.drmParams;isNaN(J.cryptoPeriodIndex)||(X.isKeyRotated=!0,X.cryptoPeriodIndex=J.cryptoPeriodIndex);var l,x,V=!!((l=J.videoData.Z)==null?0:(x=l.video)==null?0:x.isHdr());X.drmVideoFeature=V?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";if(X.context&&X.context.client){if(l=J.lx.G)X.context.client.deviceMake=l.cbrand,X.context.client.deviceModel=l.cmodel,X.context.client.browserName=l.cbr,X.context.client.browserVersion=l.cbrver,X.context.client.osName=l.cos,X.context.client.osVersion=l.cosver;X.context.user=X.context.user||{};X.context.request=X.context.request||{};J.videoData.cW&&(X.context.user.credentialTransferTokens=[{token:J.videoData.cW,scope:"VIDEO"}]);X.context.request.mdxEnvironment=J.videoData.mdxEnvironment|| X.context.request.mdxEnvironment;J.videoData.x4&&(X.context.user.kidsParent={oauthToken:J.videoData.x4});g.qg(J.Z)&&(X.fairplayKeyId=g.Je(DXH(J.fairplayKeyId)));g.l7(J.lx,g.Yi(J.videoData)).then(function(v){Pj8(K,X,n,v);J.status="rs"})}else J.error("drm.net",2,"t.r;ic.0")}; DBp=function(J,K){if(!J.o4())if(NS(J,{onlcsrsp:1}),J.status="rr",K.statusCode!==0)J.error("drm.auth",1,"t.f;c."+K.statusCode,K.errorMessage||void 0);else{Ul("drm_kr_s",void 0,J.videoData.K);if(K.heartbeatParams&&K.heartbeatParams.url&&J.videoData.J("outertube_streaming_data_always_use_staging_license_service")){var n=J.Z.Z.match(/(.*)youtube.com/g);n&&(K.heartbeatParams.url=n[0]+K.heartbeatParams.url)}K.heartbeatParams&&J.publish("newlicense",K.heartbeatParams);K.Z&&(J.U=K.Z,J.videoData.BJ||J.publish("newlicense", new OCf),J.videoData.BJ=!0,J.W=Ma(J.U,function(X){return X.includes("HDR")})); K.G&&(J.lx.J("html5_enable_vp9_fairplay")&&FI(J.Z)?(n=g.Je(DXH(J.fairplayKeyId),4),J.G[n]={type:K.G[n],status:"unknown"}):J.G=Zz(K.G,function(X){return{type:X,status:"unknown"}})); aj(J.Z)&&(K.message=UDH(g.Je(K.message)));J.X&&(NS(J,{updtks:1}),J.status="ku",J.X.update(K.message).then(function(){Ul("drm_kr_f",void 0,J.videoData.K);JP(J)||(NS(J,{ksApiUnsup:1}),J.publish("keystatuseschange",J))},function(X){X="msuf.req."+J.requestNumber+";msg."+g.KK(X.message,3); J.error("drm.keyerror",1,X)})); g.qg(J.Z)&&J.publish("fairplay_next_need_key_info",J.baseUrl,K.nextFairplayKeyId);J.lx.J("html5_enable_vp9_fairplay")&&FI(J.Z)&&J.publish("qualitychange",c8k(J.U));K.sabrLicenseConstraint&&J.publish("sabrlicenseconstraint",K.sabrLicenseConstraint)}}; dBq=function(J,K){var n=K.G.getValue();n=new g.AT(function(){k53(J,K)},n); g.Z(J,n);n.start();g.GF(K.G);NS(J,{rtyrq:1})}; Ykk=function(J,K){for(var n=[],X=g.z(Object.keys(J.G)),l=X.next();!l.done;l=X.next())l=l.value,n.push(l+"_"+J.G[l].type+"_"+J.G[l].status);return n.join(K)}; G5q=function(J){var K={};K[J.status]=JP(J)?Ykk(J,"."):J.U.join(".");return K}; UBM=function(J){switch(J.replace("HDR","").replace("720","")){case "AUDIO":return 1;case "SD":return 2;case "HD":return 3;case "UHD1":return 4;case "UHD2":return 5;default:return 0}}; KV=function(J,K){for(var n in J.G)if(J.G[n].status==="usable"&&J.G[n].type===K)return!0;return!1}; tTd=function(J,K){for(var n in J.G)if(J.G[n].type===K)return J.G[n].status}; NS=function(J,K){var n=n===void 0?!1:n;Ih(K);(n||J.lx.Pw())&&J.publish("ctmp","drmlog",K)}; y8d=function(J){if(J.lx.J("html5_authorized_drm_track_types")&&!JP(J)){for(var K={},n=[],X=g.z(J.U),l=X.next();!l.done;l=X.next())l=UBM(l.value),K[l]||(n.push(l),K[l]=!0);J.a$=n}return J.a$}; Z$7=function(J){var K=J[0];J[0]=J[3];J[3]=K;K=J[1];J[1]=J[2];J[2]=K;K=J[4];J[4]=J[5];J[5]=K;K=J[6];J[6]=J[7];J[7]=K}; c8k=function(J){return g.O0(J,"UHD2")||g.O0(J,"UHD2HDR")?"highres":g.O0(J,"UHD1")||g.O0(J,"UHD1HDR")?"hd2160":g.O0(J,"HD")||g.O0(J,"HDHDR")?"hd1080":g.O0(J,"HD720")||g.O0(J,"HD720HDR")?"hd720":"large"}; Tbp=function(J){for(var K="",n=0;n'.charCodeAt(X);J=J.X.createSession("video/mp4",K,n);return new nV(null,null,null,null,J)}; A88=function(J,K){var n=J.N[K.sessionId];!n&&J.U&&(n=J.U,J.U=null,n.sessionId=K.sessionId,J.N[K.sessionId]=n);return n}; qk3=function(J,K){var n=J.subarray(4);n=new Uint16Array(n.buffer,n.byteOffset,n.byteLength/2);n=g.U(String.fromCharCode.apply(null,n).match(/ek=([0-9a-f]+)/))[1];for(var X="",l=0;l19.2999?(J=n.Tt,n=n.VD,n>=J&&(n=J* .75),K=(J-n)*.5,n=new Aw(K,J,J-K-n,this)):n=null;break a;case "widevine":n=new MS(K,this,J);break a;default:n=null}if(this.C=n)g.Z(this,this.C),this.C.subscribe("rotated_need_key_info_ready",this.Wc,this),this.C.subscribe("log_qoe",this.uj,this);bn(this.lx.experiments);this.uj({cks:this.G.getInfo()})}; NbM=function(J){var K=F57(J.U);K?K.then(BG(function(){KW8(J)}),BG(function(n){if(!J.o4()){g.ko(n); var X="t.a";n instanceof DOMException&&(X+=";n."+n.name+";m."+n.message);J.publish("licenseerror","drm.unavailable",1,X,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(J.uj({mdkrdy:1}),J.K=!0); J.GA&&(K=F57(J.GA))}; ogH=function(J,K,n){J.Cv=!0;n=new vA(K,n);J.lx.J("html5_eme_loader_sync")&&(J.N.get(K)||J.N.set(K,n));ngq(J,n)}; ngq=function(J,K){if(!J.o4()){J.uj({onInitData:1});if(J.lx.J("html5_eme_loader_sync")&&J.videoData.X&&J.videoData.X.G){var n=J.W.get(K.initData);K=J.N.get(K.initData);if(!n||!K)return;K=n;n=K.initData;J.N.remove(n);J.W.remove(n)}J.uj({initd:K.initData.length,ct:K.contentType});if(J.G.flavor==="widevine")if(J.MQ&&!J.videoData.isLivePlayback)lf(J);else{if(!(J.lx.J("vp9_drm_live")&&J.videoData.isLivePlayback&&K.dW)){J.MQ=!0;n=K.cryptoPeriodIndex;var X=K.G;i48(K);K.dW||(X&&K.G!==X?J.publish("ctmp","cpsmm", {emsg:X,pssh:K.G}):n&&K.cryptoPeriodIndex!==n&&J.publish("ctmp","cpimm",{emsg:n,pssh:K.cryptoPeriodIndex}));J.publish("widevine_set_need_key_info",K)}}else J.Wc(K)}}; KW8=function(J){if(!J.o4())if(J.lx.J("html5_drm_set_server_cert")||FI(J.G)){var K=J.U.setServerCertificate();K?K.then(BG(function(n){J.lx.Pw()&&J.publish("ctmp","ssc",{success:n})}),BG(function(n){J.publish("ctmp","ssce",{n:n.name, m:n.message})})).then(BG(function(){XXq(J)})):XXq(J)}else XXq(J)}; XXq=function(J){J.o4()||(J.K=!0,J.uj({onmdkrdy:1}),lf(J))}; lTV=function(J){return J.G.flavor==="widevine"&&J.videoData.J("html5_drm_cpi_license_key")}; lf=function(J){if(J.Cv&&J.K&&!J.cW){for(;J.X.length;){var K=J.X[0],n=lTV(J)?Bek(K):g.Je(K.initData);if(FI(J.G)&&!K.Z)J.X.shift();else{if(J.Z.get(n))if(J.G.flavor!=="fairplay"||FI(J.G)){J.X.shift();continue}else J.Z.delete(n);i48(K);break}}J.X.length&&J.createSession(J.X[0])}}; xS8=function(J){var K;if(K=g.ae()){var n;K=!((n=J.U.Z)==null||!n.getMetrics)}K&&(K=J.U.getMetrics())&&(K=g.iE(K),J.publish("ctmp","drm",{metrics:K}))}; jo7=function(){var J=Zmq();return!(!J||J==="visible")}; hQF=function(J){var K=VAk();K&&document.addEventListener(K,J,!1)}; vgd=function(J){var K=VAk();K&&document.removeEventListener(K,J,!1)}; VAk=function(){if(document.visibilityState)var J="visibilitychange";else{if(!document[s1+"VisibilityState"])return"";J=s1+"visibilitychange"}return J}; Qof=function(J){g.t.call(this);var K=this;this.dQ=J;this.Sr=0;this.N=this.Z=this.C=!1;this.U=0;this.ix=this.dQ.S();this.videoData=this.dQ.getVideoData();this.X=g.Qg(this.ix.experiments,"html5_delayed_retry_count");this.G=new g.AT(function(){K.dQ.zc()},g.Qg(this.ix.experiments,"html5_delayed_retry_delay_ms")); g.Z(this,this.G)}; CI3=function(J,K,n){var X=J.videoData.Z,l=J.videoData.U;oT(J.dQ.getVideoData())&&J.ix.J("html5_gapless_fallback_on_qoe_restart")&&rnd(J.dQ,"pe");if((K==="progressive.net.retryexhausted"||K==="fmt.unplayable"||K==="fmt.decode")&&!J.dQ.WH.C&&X&&X.itag==="22")return J.dQ.WH.C=!0,J.Sh("qoe.restart",{reason:"fmt.unplayable.22"}),J.dQ.dL(),!0;var x=!1;if(J.videoData.isExternallyHostedPodcast){if(x=J.videoData.yBG)n.mimeType=x.type,J.Zm("3pp",{url:x.url});n.ns="3pp";J.dQ.xO(K,1,"VIDEO_UNAVAILABLE",Ih((new ix(K, n,1)).details));return!0}var V=J.Sr+3E4<(0,g.a)()||J.G.isActive();if(J.ix.J("html5_empty_src")&&J.videoData.isAd()&&K==="fmt.unplayable"&&/Empty src/.test(""+n.msg))return n.origin="emptysrc",J.Sh("auth",n),!0;V||$Sr(J.dQ.H6())||(n.nonfg="paused",V=!0,J.dQ.pauseVideo());(K==="fmt.decode"||K==="fmt.unplayable")&&(l==null?0:bx(l)||Al(l))&&(K6q(J.ix.C,l.YF),n.acfallexp=l.YF,x=V=!0);!V&&J.X>0&&(J.G.start(),V=!0,n.delayed="1",--J.X);l=J.dQ.loader;!V&&((X==null?0:Eu(X))||(X==null?0:ah(X)))&&(K6q(J.ix.C, X.YF),x=V=!0,n.cfallexp=X.YF);if(!V)return Srk(J,n);V=!1;J.C?J.Sr=(0,g.a)():V=J.C=!0;var v=J.videoData;if(v.gQ){v=v.gQ.ZA();var Q=Date.now()/1E3+1800;v=v6048E5&&u0U(J,"signature");return!1}; u0U=function(J,K){try{K={detail:"pr."+K},g.EM(J.ix)&&J.ix.J("html5_reload_by_kabuki_app")?J.dQ.xO("qoe.restart",1,void 0,Ih(K),"7"):(J.Sh("qoe.restart",K),window.location.reload())}catch(n){}}; zQk=function(J,K){var n=J.ix.C;n.W=!1;n.Z=!0;J.Sh("qoe.restart",{e:K===void 0?"fmt.noneavailable":K,detail:"hdr"});J.dQ.zc(!0)}; wXf=function(J,K,n,X,l,x){this.videoData=J;this.G=K;this.reason=n;this.Z=X;this.token=l;this.videoId=x}; xC=function(J,K,n){this.lx=J;this.vP=K;this.dQ=n;this.L=this.N=this.G=this.U=this.W=this.Z=0;this.C=!1;this.K=g.Qg(this.lx.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.X=new Map}; ITU=function(J,K,n){!J.lx.J("html5_tv_ignore_capable_constraint")&&g.Ig(J.lx)&&(n=n.compose(PIr(J,K)));return n}; ip3=function(J){if(J.dQ.H6().isInline())return fI;var K;J.J("html5_exponential_memory_for_sticky")?K=Pp(J.lx.Nk,"sticky-lifetime")<.5?"auto":Sd[WG()]:K=Sd[WG()];return g.vo("auto",K,!1,"s")}; mSp=function(J,K){var n,X=B_r(J,(n=K.G)==null?void 0:n.videoInfos);n=J.dQ.getPlaybackRate();return n>1&&X?(J=Ax8(J.lx.C,K.G.videoInfos,n),new hJ(0,J,!0,"o")):new hJ(0,0,!1,"o")}; B_r=function(J,K){return K&&g.Ig(J.lx)?K.some(function(n){return n.video.fps>32}):!1}; pX3=function(J,K){if(J.J("html5_disable_ustreamer_constraint_for_sabr")&&xi(K.videoData))return fI;var n=J.dQ.rX();J.J("html5_use_video_quality_cap_for_ustreamer_constraint")&&n&&n.Z7>0&&$K(K.videoData.ol)&&(J=n.Z7,K.videoData.ol=new hJ(0,J,!1,"u"));return K.videoData.ol}; PIr=function(J,K){if(g.Ig(J.lx)&&ie(J.lx.C,Bo.HEIGHT))var n=K.G.videoInfos[0].video.qualityOrdinal;else{var X=J.uI(!!K.G.G);Xr(K.videoData)||yu(K.videoData);K=K.G.videoInfos;if(K.length){var l=g.Qg(J.lx.experiments,"html5_override_oversend_fraction")||.85,x=K[0].video;x.projectionType!=="MESH"&&x.projectionType!=="EQUIRECTANGULAR"&&x.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||DW||(l=.45);J=g.Qg(J.lx.experiments,"html5_viewport_undersend_maximum");for(x=0;x0&&(n=Math.min(n,X));if(X=g.Qg(J.lx.experiments,"html5_max_vertical_resolution")){J=4320;for(l=0;lX&&(J=Math.min(J,x.video.qualityOrdinal));if(J<4320){for(l=X=0;l32){l=!0;break a}}l=!1}l&&(n=Math.min(n,X));(X=g.Qg(J.lx.experiments,"html5_live_quality_cap"))&&K.videoData.isLivePlayback&&(n=Math.min(n,X));n=T_r(J,K,n);J=g.Qg(J.lx.experiments,"html5_byterate_soft_cap");return new hJ(0,n===4320?0:n,!1,"d",J)}; dSU=function(J){var K,n,X,l;return g.G(function(x){switch(x.Z){case 1:return J.G.G&&typeof((K=navigator.mediaCapabilities)==null?void 0:K.decodingInfo)==="function"?g.d(x,Promise.resolve(),2):x.return(Promise.resolve());case 2:n=g.z(J.G.videoInfos),X=n.next();case 3:if(X.done){x.EM(0);break}l=X.value;return g.d(x,LB8(l),4);case 4:X=n.next(),x.EM(3)}})}; gge=function(J,K){if(!K.videoData.Z||J.J("html5_disable_performance_downgrade"))return!1;Date.now()-J.W>6E4&&(J.Z=0);J.Z++;J.W=Date.now();if(J.Z!==4)return!1;kP3(J,K.videoData.Z);return!0}; Yr3=function(J,K,n,X){if(!K||!n||!K.videoData.Z)return!1;var l=g.Qg(J.lx.experiments,"html5_df_downgrade_thresh"),x=J.J("html5_log_media_perf_info");if(!((0,g.a)()-J.U<5E3?0:x||l>0))return!1;var V=((0,g.a)()-J.U)/1E3;J.U=(0,g.a)();n=n.getVideoPlaybackQuality();if(!n)return!1;var v=n.droppedVideoFrames-J.N,Q=n.totalVideoFrames-J.L;J.N=n.droppedVideoFrames;J.L=n.totalVideoFrames;var S=n.displayCompositedVideoFrames===0?0:n.displayCompositedVideoFrames||-1;x&&J.lx.Pw()&&J.dQ.Zm("ddf",{dr:n.droppedVideoFrames, de:n.totalVideoFrames,comp:S});if(X)return J.G=0,!1;if((Q-v)/V>J.K||!l||g.Ig(J.lx))return!1;J.G=(Q>60?v/Q:0)>l?J.G+1:0;if(J.G!==3)return!1;kP3(J,K.videoData.Z);J.dQ.Zm("dfd",Object.assign({dr:n.droppedVideoFrames,de:n.totalVideoFrames},cw3()));return!0}; kP3=function(J,K){var n=K.YF,X=K.video.fps,l=K.video.qualityOrdinal-1,x=J.X;K=""+n+(X>49?"p60":X>32?"p48":"");n=Gs(n,X,x);l>0&&(n=Math.min(n,l));if(!jS.has(K)&&qI().includes(K)){var V=n;n=F1();+n[K]>0&&(V=Math.min(+n[K],V));n[K]!==V&&(n[K]=V,g.kF("yt-player-performance-cap",n,2592E3))}else if(jS.has(K)||x==null){a:{V=V===void 0?!0:V;X=qI().slice();if(V){if(X.includes(K))break a;X.push(K)}else{if(!X.includes(K))break a;X.splice(X.indexOf(K),1)}g.kF("yt-player-performance-cap-active-set",X,2592E3)}YV.set(K, n)}else jS.add(K),x==null||x.set(K,n);J.dQ.j$()}; V0=function(J,K){if(!K.G.G)return J.C?new hJ(0,360,!1,"b"):fI;for(var n=!1,X=!1,l=g.z(K.G.videoInfos),x=l.next();!x.done;x=l.next())Eu(x.value)?n=!0:X=!0;n=n&&X;X=0;l=g.Qg(J.lx.experiments,"html5_performance_cap_floor");l=J.lx.Z?240:l;K=g.z(K.G.videoInfos);for(x=K.next();!x.done;x=K.next()){var V=x.value;if(!n||!Eu(V))if(x=Gs(V.YF,V.video.fps,J.X),V=V.video.qualityOrdinal,Math.max(x,l)>=V){X=V;break}}return new hJ(0,X,!1,"b")}; GPf=function(J,K){var n=J.dQ.H6();return n.isInline()&&!K.IK?new hJ(0,480,!1,"v"):xi(K)?fI:n.isBackground()&&BC()/1E3>60&&!g.Ig(J.lx)?new hJ(0,360,!1,"v"):fI}; USq=function(J,K,n){if(J.lx.experiments.sM("html5_disable_client_autonav_cap_for_onesie")&&K.fetchType==="onesie"||g.Ig(J.lx)&&(WG(-1)>=1080||K.osid))return fI;var X=g.Qg(J.lx.experiments,"html5_autonav_quality_cap"),l=g.Qg(J.lx.experiments,"html5_autonav_cap_idle_secs");return X&&K.isAutonav&&BC()/1E3>l?(n&&(X=T_r(J,n,X)),new hJ(0,X,!1,"e")):fI}; T_r=function(J,K,n){if(J.J("html5_optimality_defaults_chooses_next_higher")&&n)for(J=K.G.videoInfos,K=1;K=0||(J.provider.dQ.getVisibilityState()===3?J.C=!0:(J.G=g.qS(J.provider),J.delay.start()))}; ZpU=function(J){if(!(J.Z<0)){var K=g.qS(J.provider),n=K-J.U;J.U=K;J.playerState.state===8?J.playTimeSecs+=n:J.playerState.isBuffering()&&!g.E(J.playerState,16)&&(J.rebufferTimeSecs+=n)}}; fTU=function(J){var K;switch((K=J.lx.playerCanaryStage)==null?void 0:K.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"}}; WW3=function(J){return window.PressureObserver&&new window.PressureObserver(J)}; aTH=function(J){J=J===void 0?WW3:J;g.t.call(this);var K=this;try{this.X=J(function(X){K.Z=X.at(-1)}); var n;this.U=(n=this.X)==null?void 0:n.observe("cpu",{sampleInterval:2E3}).catch(function(X){X instanceof DOMException&&(K.G=X)})}catch(X){X instanceof DOMException&&(this.G=X)}}; FW3=function(J){var K={},n=window.h5vcc;K.hwConcurrency=navigator.hardwareConcurrency;J.G&&(K.cpe=J.G.message);J.Z&&(K.cpt=J.Z.time,K.cps=J.Z.state);if(n==null?0:n.cVal)K.cb2s=n.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),K.cb5s=n.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),K.cb30s=n.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30");return K}; qrd=function(J){var K;g.G(function(n){switch(n.Z){case 1:return g.e8(n,2),g.d(n,J.U,4);case 4:g.Ir(n,3);break;case 2:g.mk(n);case 3:(K=J.X)==null||K.disconnect(),g.uF(n)}})}; bpf=function(J,K){K?EgM.test(J):(J=g.l9(J),Object.keys(J).includes("cpn"))}; MAf=function(J,K,n,X,l,x,V){var v={format:"RAW"},Q={};if(Va(J)&&h2()){if(V){var S;((S=Aw8.uaChPolyfill)==null?void 0:S.state.type)!==2?V=null:(V=Aw8.uaChPolyfill.state.data.values,V={"Synth-Sec-CH-UA-Arch":V.architecture,"Synth-Sec-CH-UA-Model":V.model,"Synth-Sec-CH-UA-Platform":V.platform,"Synth-Sec-CH-UA-Platform-Version":V.platformVersion,"Synth-Sec-CH-UA-Full-Version":V.uaFullVersion});Q=Object.assign(Q,V);v.withCredentials=!0}(V=g.Et("EOM_VISITOR_DATA"))?Q["X-Goog-EOM-Visitor-Id"]=V:X?Q["X-Goog-Visitor-Id"]= X:g.Et("VISITOR_DATA")&&(Q["X-Goog-Visitor-Id"]=g.Et("VISITOR_DATA"));n&&(Q["X-Goog-PageId"]=n);(X=K.Aj)&&!Mw(K)&&(Q["X-Goog-AuthUser"]=X);l&&(Q.Authorization="Bearer "+l);K.J("enable_datasync_id_header_in_web_vss_pings")&&K.O3&&K.datasyncId&&(Q["X-YouTube-DataSync-Id"]=K.datasyncId);V||Q["X-Goog-Visitor-Id"]||l||n||X?v.withCredentials=!0:K.J("html5_send_cpn_with_options")&&EgM.test(J)&&(v.withCredentials=!0)}Object.keys(Q).length>0&&(v.headers=Q);x&&(v.onFinish=x);return Object.keys(v).length>1? v:null}; N_q=function(J,K,n,X,l,x,V,v){h2()&&n.token&&(J=xA(J,{ctt:n.token,cttype:n.TI,mdx_environment:n.mdxEnvironment}));X.J("net_pings_low_priority")&&(K||(K={}),K.priority="low");x||v&&X.J("nwl_skip_retry")?(K==null?K={}:bpf(J,X.J("html5_assert_cpn_with_regex")),V?AE().sendAndWrite(J,K):AE().sendThenWrite(J,K,v)):K?(bpf(J,X.J("html5_assert_cpn_with_regex")),$0M(J,K)):g.tE(J,l)}; JPf=function(J){for(var K=[],n=0;n0&&n>0&&!J.Z&&J.X<1E7)try{J.U=J.C({sampleInterval:K,maxBufferSize:n});var X;(X=J.U)==null||X.addEventListener("samplebufferfull",function(){return g.G(function(l){if(l.Z==1)return g.d(l,J.stop(),2);oCH(J);g.uF(l)})})}catch(l){J.Z=nCd(l.message)}}; Q0=function(J,K){var n,X;return!!((n=window.h5vcc)==null?0:(X=n.settings)==null?0:X.set(J,K))}; ltM=function(){var J,K,n,X=(J=window.h5vcc)==null?void 0:(K=J.settings)==null?void 0:(n=K.getPersistentSettingAsString)==null?void 0:n.call(K,"cpu_usage_tracker_intervals");if(X!=null){var l;J=(l=JSON.parse(X))!=null?l:[];l=J.filter(function(S){return S.type==="total"}).map(function(S){return S.seconds}); K=g.z(XI3);for(n=K.next();!n.done;n=K.next())n=n.value,l.indexOf(n)===-1&&J.push({type:"total",seconds:n});var x,V;(x=window.h5vcc)==null||(V=x.settings)==null||V.set("cpu_usage_tracker_intervals_enabled",1);var v,Q;(v=window.h5vcc)==null||(Q=v.settings)==null||Q.set("cpu_usage_tracker_intervals",JSON.stringify(J))}}; xcM=function(){var J=window.H5vccPlatformService,K="";if(J&&J.has("dev.cobalt.coat.clientloginfo")&&(J=J.open("dev.cobalt.coat.clientloginfo",function(){}))){var n=J.send(new ArrayBuffer(0)); n&&(K=String.fromCharCode.apply(String,g.m(new Uint8Array(n))));J.close()}return K}; g.ri=function(J){g.t.call(this);var K=this;this.provider=J;this.logger=new g.XI("qoe");this.G=new Map;this.sequenceNumber=1;this.Aj=NaN;this.N_="N";this.L=this.BP=this.jV=this.QG=this.Z=0;this.wN=this.j_=this.N=this.kF="";this.KU=this.Cv=NaN;this.fU=0;this.PM=-1;this.x4=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.vW=this.isEmbargoed=this.MQ=this.isOffline=this.isBuffering=!1;this.nE=[];this.K=null;this.Dm=this.U=this.md=this.W=!1;this.X=-1;this.gQ=!1;this.C9=new g.AT(this.sQ,750,this);this.Go= this.adCpn=this.GA=this.contentCpn="";this.adFormat=void 0;this.F2=0;this.Fq=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.f9=new Set(["gd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.Gi=!1;this.o5=NaN;this.PW=0;this.iR=!1;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.a5=!1;this.QU={Oz:function(X){K.Oz(X)}, mIA:function(){return K.C}, qB:function(){return K.contentCpn}, kQM:function(){return K.GA}, reportStats:function(){K.reportStats()}, onQ:function(){return K.G.get("cat")||[]}, Na:function(X){return K.G.get(X)||[]}, Ucj:function(){return K.G}, oY5:function(){return 0}, EnF:function(){return{adCpn:K.adCpn,Go:K.Go,adFormat:K.adFormat}}}; this.cW=this.provider.lx.J("html5_qoe_relaxed_reporting");var n=g.Qg(this.provider.lx.experiments,"html5_qoe_proto_mock_length");n&&!$C.length&&($C=JPf(n));g.Z(this,this.C9);try{navigator.getBattery().then(function(X){K.K=X})}catch(X){}g.SS(this,0,"vps",["N"]); J.lx.Pw()&&(this.PW=(0,g.a)(),this.o5=g.Oj(function(){var X=(0,g.a)(),l=X-K.PW;l>500&&K.Zm("vmlock",{diff:l.toFixed()});K.PW=X},250)); this.provider.videoData.Gd&&(this.remoteControlMode=jJ3[this.provider.videoData.Gd]||0);this.provider.videoData.Ii&&(n=jhf(this.provider.videoData.Ii),n==null?0:n.length)&&(this.remoteConnectedDevices=n);if(J.lx.Pw()||J.J("html5_log_cpu_info"))this.wQ=new aTH,g.Z(this,this.wQ);n=g.Qg(J.lx.experiments,"html5_js_self_profiler_sample_interval_ms");J=g.Qg(J.lx.experiments,"html5_js_self_profiler_max_samples");n>0&&J>0&&(this.fv=new vI(n,J),g.Z(this,this.fv))}; sz=function(J,K,n){var X=J.G.get(K);X?X.push(n):J.G.set(K,[n])}; g.SS=function(J,K,n,X){sz(J,n,K.toFixed(3)+":"+X.join(":"))}; VSq=function(J,K){var n=J.adCpn||J.provider.videoData.clientPlaybackNonce,X=J.provider.getCurrentTime(n);g.SS(J,K,"cmt",[X.toFixed(3)]);X=J.provider.LH(n);if(J.C&&X*1E3>J.C.WE+100&&J.C){var l=J.C;n=l.isAd;X=X*1E3-l.WE;J.Vj=K*1E3-l.WVQ-X-l.EOq;l=(0,g.a)()-X;K=J.Vj;X=J.provider.videoData;var x=X.isAd();if(n||x){x=(n?"ad":"video")+"_to_"+(x?"ad":"video");var V={};X.N&&(V.cttAuthInfo={token:X.N,videoId:X.videoId});V.startTime=l-K;y_(x,V);g.tB({targetVideoId:X.videoId,targetCpn:X.clientPlaybackNonce}, x);Ul("pbs",l,x)}else l=J.provider.dQ.lH(),l.N!==X.clientPlaybackNonce?(l.C=X.clientPlaybackNonce,l.Z=K):X.Sz()||g.gG(new g.qt("CSI timing logged before gllat",{cpn:X.clientPlaybackNonce}));J.Zm("gllat",{l:J.Vj.toFixed(),prev_ad:+n});delete J.C}}; CV=function(J,K){K=K===void 0?NaN:K;K=K>=0?K:g.qS(J.provider);var n=J.provider.dQ.xR(),X=n.F1-(J.Cv||0);X>0&&g.SS(J,K,"bwm",[X,(n.h6-(J.KU||0)).toFixed(3)]);isNaN(J.Cv)&&n.F1&&J.isOffline&&J.Oz(!1);J.Cv=n.F1;J.KU=n.h6;isNaN(n.bandwidthEstimate)||g.SS(J,K,"bwe",[n.bandwidthEstimate.toFixed(0)]);J.provider.lx.Pw()&&Object.keys(n.G).length!==0&&J.Zm("bwinfo",n.G);if(J.provider.lx.Pw()||J.provider.lx.J("html5_log_meminfo"))X=wDp(J.provider.lx.J("html5_enable_chrobalt_memory_apis")),Object.values(X).some(function(x){return x!== void 0})&&J.Zm("meminfo",X); if(J.provider.lx.Pw()||J.provider.lx.J("html5_log_cpu_info")){var l;(X=(l=J.wQ)==null?void 0:FW3(l))&&Object.values(X).some(function(x){return x!=null})&&J.Zm("cpuinfo",X)}J.fv&&J.Zm("jsprof",J.fv.flush()); J.K&&g.SS(J,K,"bat",[J.K.level,J.K.charging?"1":"0"]);l=J.provider.dQ.getVisibilityState();J.PM!==l&&(g.SS(J,K,"vis",[l]),J.PM=l);VSq(J,K);(l=hcM(J.provider))&&l!==J.fU&&(g.SS(J,K,"conn",[l]),J.fU=l);vCk(J,K,n)}; vCk=function(J,K,n){if(!isNaN(n.hk)){var X=n.hk;n.Z96E3&&(new g.AT(J.reportStats,0,J)).start()}}; Szf=function(J){J.provider.videoData.vO&&Oz(J,"prefetch");J.provider.videoData.iR&&J.Zm("reload",{r:J.provider.videoData.reloadReason,ct:J.provider.videoData.iR});J.provider.videoData.Fq&&Oz(J,"monitor");J.provider.videoData.isLivePlayback&&Oz(J,"live");nR&&Oz(J,"streaming");J.provider.videoData.Gd&&J.Zm("ctrl",{mode:J.provider.videoData.Gd},!0);if(J.provider.videoData.Ii){var K=J.provider.videoData.Ii.replace(/,/g,"_");J.Zm("ytp",{type:K},!0)}J.provider.videoData.Xi&&(K=J.provider.videoData.Xi.replace(/,/g, "."),J.Zm("ytrexp",{ids:K},!0));var n=J.provider.videoData;K=J.provider.lx.J("enable_white_noise")||J.provider.lx.J("enable_webgl_noop");n=g.so(n)||g.BD(n)||g.m9(n)||g.pS(n);(K||n)&&(K=(0,g.HI)())&&J.G.set("gpu",[K]);yu(J.provider.videoData)&&g.SS(J,g.qS(J.provider),"dt",["1"]);J.provider.lx.Pw()&&(K=(0,g.a)()-J.provider.lx.J7,J.Zm("playerage",{secs:Math.pow(1.6,Math.round(Math.log(K/1E3)/Math.log(1.6))).toFixed()}));J.U=!0;J.Aj=g.Oj(function(){J.reportStats()},1E4)}; sJq=function(J,K,n){var X=g.qS(J.provider);rPq(J,X,K,0,n);CV(J,X);$cF(J)}; rPq=function(J,K,n,X,l){var x=J.provider.lx.G.cbrver;J.provider.lx.G.cbr==="Chrome"&&/^96[.]/.test(x)&&n==="net.badstatus"&&/rc\.500/.test(l)&&Cfe(J,3);J.provider.lx.J("html5_use_ump")&&/b248180278/.test(l)&&Cfe(J,4);x=J.provider.getCurrentTime(J.adCpn||J.provider.videoData.clientPlaybackNonce);X=X===1?"fatal":"";n=[n,X,x.toFixed(3)];X&&(l+=";a6s."+h3());l&&n.push(OVF(l));g.SS(J,K,"error",n);J.U=!0}; jtp=function(J,K){var n=g.qS(J.provider);if(!J.provider.lx.experiments.sM("html5_refactor_sabr_video_format_selection_logging")||K.G.id!==J.kF){var X=[K.G.id,K.Z,J.kF,K.reason];K.token&&X.push(K.token);g.SS(J,n,"vfs",X);J.kF=K.G.id;X=J.provider.dQ.getPlayerSize();if(X.width>0&&X.height>0){X=[Math.round(X.width),Math.round(X.height)];var l=g.bq();l>1&&X.push(l);g.SS(J,n,"view",X)}J.md||(J.provider.lx.Pw()&&Oz(J,"rqs2"),J.provider.videoData.G&&Ho(J.provider.videoData.G)&&J.G.set("preload",["1"]));J.md= !0;J.U=!0}K.reason==="m"&&++J.F2===100&&Cfe(J,2);g.SS(J,n,"vps",[J.N_]);J.cW||J.reportStats(n)}; HVF=function(J){J.X>=0||(J.provider.lx.CH||J.provider.dQ.getVisibilityState()!==3?J.X=g.qS(J.provider):J.gQ=!0)}; x3M=function(J,K,n){if(J.provider.lx.experiments.sM("html5_refactor_sabr_audio_format_selection_logging")){K=n.G;var X=[K.audio&&K.video?K.gh?K.gh:"":K.id];K.Hw&&K.Hw.id&&X.push(K.Hw.id);K=X.join(";");K!==J.N&&(X=[K,J.N,n.reason],n.token&&X.push(n.token),g.SS(J,g.qS(J.provider),"afs",X),J.N=K)}else n.G.id!==J.N&&(X=[n.G.id,J.N,n.reason],n.token&&X.push(n.token),g.SS(J,K,"afs",X),J.N=n.G.id)}; Oz=function(J,K){sz(J,"cat",K)}; RJ=function(J,K,n,X,l,x){var V=g.qS(J.provider);n!==1&&n!==3&&n!==5||g.SS(J,V,"vps",[J.N_]);sz(J,"xvt","t."+V.toFixed(3)+";m."+x.toFixed(3)+";g."+K+";tt."+n+";np.0;c."+X+";d."+l)}; Cfe=function(J,K){J.Dm||(sz(J,"fcnz",""+K),J.Dm=!0)}; OVF=function(J){/[^a-zA-Z0-9;.!_-]/.test(J)&&(J=J.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return J}; Rc7=function(J){this.provider=J;this.W=!1;this.G=0;this.U=-1;this.qI=NaN;this.X=0;this.segments=[];this.N=this.C=0;this.previouslyEnded=!1;this.K=this.provider.dQ.getVolume();this.L=this.provider.dQ.isMuted()?1:0;this.Z=uf(this.provider)}; eS=function(J){J.Z.startTime=J.X;J.Z.endTime=J.G;var K=!1;J.segments.length&&g.$r(J.segments).isEmpty()?(J.segments[J.segments.length-1].previouslyEnded&&(J.Z.previouslyEnded=!0),J.segments[J.segments.length-1]=J.Z,K=!0):J.segments.length&&J.Z.isEmpty()||(J.segments.push(J.Z),K=!0);K?J.Z.endTime===0&&(J.previouslyEnded=!1):J.Z.previouslyEnded&&(J.previouslyEnded=!0);J.C+=J.G-J.X;J.Z=uf(J.provider);J.Z.previouslyEnded=J.previouslyEnded;J.previouslyEnded=!1;J.X=J.G}; ecV=function(J){u3F(J);J.N=g.Oj(function(){J.update()},100); J.qI=g.qS(J.provider);J.Z=uf(J.provider)}; u3F=function(J){g.Re(J.N);J.N=NaN}; zcf=function(J,K,n){n-=J.qI;return K===J.G&&n>.5}; wIe=function(J,K,n,X){this.lx=K;this.wN=n;this.segments=[];this.experimentIds=[];this.gQ=this.o5=this.isFinal=this.delayThresholdMet=this.iR=this.PM=this.autoplay=this.autonav=!1;this.fU="yt";this.N=[];this.W=this.K=null;this.sendVisitorIdHeader=this.wQ=!1;this.L=this.pageId="";this.C=n==="watchtime";this.X=n==="playback";this.cW=n==="atr";this.CH=n==="engage";this.sendVisitorIdHeader=!1;this.uri=this.cW?"/api/stats/"+n:"//"+K.XA+"/api/stats/"+n;X&&(this.o5=X.fs,X.rtn&&(this.W=X.rtn),this.C?(this.playerState= X.state,X.rti>0&&(this.K=X.rti)):(this.H3=X.mos,this.oO=X.volume,X.at&&(this.adType=X.at)),X.autonav&&(this.autonav=X.autonav),X.inview!=null&&(this.x4=X.inview),X.size&&(this.KU=X.size),X.playerwidth&&(this.P3=X.playerwidth),X.playerheight&&(this.nH=X.playerheight));this.F2=g.Ku(K.G);this.L=om(K.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.L==="all"||this.L==="once")this.a5=g.Ku(K.a5);this.Nk=K.x4;this.experimentIds=FCp(K.experiments);this.fv=K.ih;this.fU=K.GA;this.region=K.region; this.userAge=K.userAge;this.md=K.vO;this.nE=BC();this.sendVisitorIdHeader=K.sendVisitorIdHeader;this.MQ=K.J("vss_pings_using_networkless")||K.J("kevlar_woffle");this.J7=K.J("vss_final_ping_send_and_write");this.PW=K.J("vss_use_send_and_write");this.pageId=K.pageId;this.kO=K.J("vss_playback_use_send_and_write");K.livingRoomAppMode&&(this.livingRoomAppMode=K.livingRoomAppMode);this.o2=K.U&&K.J("embeds_append_synth_ch_headers");g.pR(K)&&(this.Cv=K.cW);g.QT(g.Gx(K))&&this.N.push(1);this.accessToken=g.Yi(J); J.Qv[this.wN]?this.U=J.Qv[this.wN]:J.Qv.playback&&(this.U=J.Qv.playback);this.adFormat=J.adFormat;this.adQueryId=J.adQueryId;this.autoplay=p2V(J);this.X&&(this.PM=J.L$&&dn(J)==="adunit"?!0:!1);this.autonav=J.isAutonav||this.autonav;this.contentVideoId=gn(J);this.clientPlaybackNonce=J.clientPlaybackNonce;this.iR=J.t7;J.N&&(this.QG=J.N,this.Gi=J.mH);J.mdxEnvironment&&(this.mdxEnvironment=J.mdxEnvironment);this.G=J.wN;this.Dm=J.Dm;J.Z&&(this.f9=J.Z.itag,J.U&&J.U.itag!==this.f9&&(this.vW=J.U.itag));J.G&& Ho(J.G)&&(this.offlineDownloadUserChoice="1");this.eventLabel=dn(J);this.gQ=J.J7?!1:J.Pp;this.ih=J.Pu;if(K=uK(J))this.Pp=K;this.zL=J.oK;this.partnerId=J.partnerId;this.eventId=J.eventId;this.playlistId=J.Uj||J.playlistId;this.Yi=J.Yi;this.Gd=J.Gd;this.Ii=J.Ii;this.Rg=J.Rg;this.subscribed=J.subscribed;this.videoId=J.videoId;this.videoMetadata=J.videoMetadata;this.visitorData=J.visitorData;this.osid=J.osid;this.w6=J.w6;this.referrer=J.referrer;this.XA=J.hP||J.XA;this.Fq=J.ir;this.zt=J.zt;this.userGenderAge= J.userGenderAge;this.vL=J.vL;this.embedsRct=J.embedsRct;this.embedsRctn=J.embedsRctn;g.pR(this.lx)&&J.mutedAutoplay&&(J.mutedAutoplayDurationMode===2&&J.limitedPlaybackDurationInSeconds===0&&J.endSeconds===0?this.N.push(7):this.N.push(2));J.isEmbedsShortsMode(new g.DH(this.P3,this.nH),!!this.playlistId)&&this.N.push(3);g.bK(J)&&this.N.push(4);this.kF=J.aL;J.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=J.compositeLiveIngestionOffsetToken)}; PfH=function(J,K){var n=J.sendVisitorIdHeader?J.visitorData:void 0;return g.l7(J.lx,J.accessToken).then(function(X){return MAf(J.uri,J.lx,J.pageId,n,X,K,J.o2)})}; Bi3=function(J,K){return function(){J.lx.J("html5_simplify_pings")?(J.G=J.j_,J.C9=K(),J.nE=0,J.send()):PfH(J).then(function(n){var X=Itp(J);X.cmt=X.len;X.lact="0";var l=K().toFixed(3);X.rt=Number(l).toString();X=g.Td(J.uri,X);J.lx.J("vss_through_gel_double")&&iVH(X);J.MQ?(n==null&&(n={}),J.PW?AE().sendAndWrite(X,n):AE().sendThenWrite(X,n)):n?g.i9(X,n):g.tE(X)})}}; Itp=function(J){var K={ns:J.fU,el:J.eventLabel,cpn:J.clientPlaybackNonce,ver:2,cmt:J.Z(J.G),fmt:J.f9,fs:J.o5?"1":"0",rt:J.Z(J.C9),adformat:J.adFormat,content_v:J.contentVideoId,euri:J.Nk,lact:J.nE,live:J.Pp,cl:(758002763).toString(),mos:J.H3,state:J.playerState,volume:J.oO};J.subscribed&&(K.subscribed="1");Object.assign(K,J.F2);J.L==="all"?Object.assign(K,J.a5):J.L==="once"&&J.X&&Object.assign(K,J.a5);J.autoplay&&(K.autoplay="1");J.PM&&(K.sautoplay="1");J.iR&&(K.dni="1");!J.C&&J.Cv&&(K.epm=mc3[J.Cv]); J.isFinal&&(K["final"]="1");J.gQ&&(K.splay="1");J.Dm&&(K.delay=J.Dm);J.fv&&(K.hl=J.fv);J.region&&(K.cr=J.region);J.userGenderAge&&(K.uga=J.userGenderAge);J.userAge!==void 0&&J.md&&(K.uga=J.md+J.userAge);J.j_!==void 0&&(K.len=J.Z(J.j_));!J.C&&J.experimentIds.length>0&&(K.fexp=J.experimentIds.toString());J.W!==null&&(K.rtn=J.Z(J.W));J.XA&&(K.feature=J.XA);J.Gd&&(K.ctrl=J.Gd);J.Ii&&(K.ytr=J.Ii);J.vW&&(K.afmt=J.vW);J.offlineDownloadUserChoice&&(K.ODUC=J.offlineDownloadUserChoice);J.GA&&(K.lio=J.Z(J.GA)); J.C?(K.idpj=J.ih,K.ldpj=J.zL,J.delayThresholdMet&&(K.dtm="1"),J.K!=null&&(K.rti=J.Z(J.K)),J.vL&&(K.ald=J.vL),J.compositeLiveIngestionOffsetToken&&(K.clio=J.compositeLiveIngestionOffsetToken)):J.adType!==void 0&&(K.at=J.adType);J.KU&&(J.X||J.C)&&(K.size=J.KU);J.X&&J.N.length&&(K.pbstyle=J.N.join(","));J.x4!=null&&(J.X||J.C)&&(K.inview=J.Z(J.x4));J.C&&(K.volume=zH(J,g.ff(J.segments,function(X){return X.volume})),K.st=zH(J,g.ff(J.segments,function(X){return X.startTime})),K.et=zH(J,g.ff(J.segments,function(X){return X.endTime})), Ma(J.segments,function(X){return X.playbackRate!==1})&&(K.rate=zH(J,g.ff(J.segments,function(X){return X.playbackRate}))),Ma(J.segments,function(X){return X.G!=="-"})&&(K.als=g.ff(J.segments,function(X){return X.G}).join(",")),Ma(J.segments,function(X){return X.previouslyEnded})&&(K.pe=g.ff(J.segments,function(X){return""+ +X.previouslyEnded}).join(","))); K.muted=zH(J,g.ff(J.segments,function(X){return X.muted?1:0})); Ma(J.segments,function(X){return X.visibilityState!==0})&&(K.vis=zH(J,g.ff(J.segments,function(X){return X.visibilityState}))); Ma(J.segments,function(X){return X.connectionType!==0})&&(K.conn=zH(J,g.ff(J.segments,function(X){return X.connectionType}))); Ma(J.segments,function(X){return X.Z!==0})&&(K.blo=zH(J,g.ff(J.segments,function(X){return X.Z}))); Ma(J.segments,function(X){return!!X.X})&&(K.blo=g.ff(J.segments,function(X){return X.X}).join(",")); Ma(J.segments,function(X){return!!X.compositeLiveStatusToken})&&(K.cbs=g.ff(J.segments,function(X){return X.compositeLiveStatusToken}).join(",")); Ma(J.segments,function(X){return X.U!=="-"})&&(K.cc=g.ff(J.segments,function(X){return X.U}).join(",")); Ma(J.segments,function(X){return X.clipId!=="-"})&&(K.clipid=g.ff(J.segments,function(X){return X.clipId}).join(",")); if(Ma(J.segments,function(X){return!!X.audioId})){var n="au"; J.X&&(n="au_d");K[n]=g.ff(J.segments,function(X){return X.audioId}).join(",")}h2()&&J.QG&&(K.ctt=J.QG,K.cttype=J.Gi,K.mdx_environment=J.mdxEnvironment); J.CH&&(K.etype=J.Aj!==void 0?J.Aj:0);J.Fq&&(K.uoo=J.Fq);J.livingRoomAppMode&&J.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(K.clram=pIH[J.livingRoomAppMode]||J.livingRoomAppMode);J.U?LNr(J,K):(K.docid=J.videoId,K.referrer=J.referrer,K.ei=J.eventId,K.of=J.w6,K.osid=J.osid,K.vm=J.videoMetadata,J.adQueryId&&(K.aqi=J.adQueryId),J.autonav&&(K.autonav="1"),J.playlistId&&(K.list=J.playlistId),J.Rg&&(K.ssrt="1"),J.zt&&(K.upt=J.zt));J.X&&(J.embedsRct&&(K.rct=J.embedsRct),J.embedsRctn&&(K.rctn= J.embedsRctn),J.compositeLiveIngestionOffsetToken&&(K.clio=J.compositeLiveIngestionOffsetToken));J.kF&&(K.host_cpn=J.kF);return K}; LNr=function(J,K){if(K&&J.U){var n=new Set(["q","feature","mos"]),X=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),l=new Set(["aqi","autonav","list","ssrt","upt"]);J.U.ns==="3pp"&&(K.ns="3pp");for(var x=g.z(Object.keys(J.U)),V=x.next();!V.done;V=x.next())V=V.value,X.has(V)||n.has(V)||l.has(V)&&!J.U[V]||(K[V]=J.U[V])}}; zH=function(J,K){return g.ff(K,J.Z).join(",")}; iVH=function(J){J.indexOf("watchtime")!==-1&&g.vJ("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:J}})}; TiH=function(J,K){J.attestationResponse&&PfH(J).then(function(n){n=n||{};n.method="POST";n.postParams={atr:J.attestationResponse};J.MQ?J.PW?AE().sendAndWrite(K,n):AE().sendThenWrite(K,n):g.i9(K,n)})}; wi=function(J){g.t.call(this);this.provider=J;this.N="paused";this.C=NaN;this.W=[10,10,10,40];this.K=this.L=0;this.QG=this.cW=this.Aj=this.GA=this.X=!1;this.Z=this.U=NaN;this.logger=new g.XI("vss");this.G=new Rc7(J)}; cPM=function(J){if(!J.X){J.provider.videoData.i9===16623&&g.gG(Error("Playback for EmbedPage"));var K=PI(J,"playback");J.W=Dce(J);ecV(J.G);K.W=IJ(J);J.Z>0&&(K.G-=J.Z);K.send();if(J.provider.videoData.gm){K=J.provider.lx;var n=J.provider.videoData,X={html5:"1",video_id:n.videoId,cpn:n.clientPlaybackNonce,ei:n.eventId,ptk:n.gm,oid:n.r9,ptchn:n.nt,pltype:n.A$,content_v:gn(n)};n.t6&&Object.assign(X,{m:n.t6});K=g.Td(K.jz+"ptracking",X);dcU(J,K)}J.provider.videoData.Dm||(kH3(J),gC7(J));J.X=!0;J=J.G;J.G= J.LH();J.qI=g.qS(J.provider);!(J.X===0&&J.G<5)&&J.G-J.X>2&&(J.X=J.G);J.W=!0}}; Dce=function(J){var K=J.provider.videoData.Pu,n=J.provider.videoData.oK,X=[10+K,10,10,40+n-K,40],l,x=(l=J.provider.videoData.getPlayerResponse())==null?void 0:l.playbackTracking,V=x==null?void 0:x.videostatsScheduledFlushWalltimeSeconds;l=x==null?void 0:x.videostatsDefaultFlushIntervalSeconds;if(!(V&&V.length>0&&l))return J.logger.info("Missing valid scheduled pings config "+V+" "+l),X;K=[V[0]+K].concat(g.m(V.slice(1).map(function(v,Q){return v-V[Q]})),[l+n-K, l]);return K.some(function(v){return v<0})?(J.logger.G(347111855,"Neg vss scheduled pings "+V+" "+l),X):K}; IJ=function(J,K){K=K===void 0?NaN:K;var n=g.qS(J.provider);K=isNaN(K)?n:K;K=Math.ceil(K);var X=J.W[J.L];J.L+11E3;!(x.length>1)&&x[0].isEmpty()||v||(V.W=IJ(J,l));V.send();J.K++}},(l-n)*1E3); return J.U=l}; BI=function(J){g.Ha(J.C);J.C=NaN}; Yzp=function(J){J.G.update();J=J.G;J.segments.length&&J.G===J.X||eS(J);var K=J.segments;J.segments=[];return K}; PI=function(J,K){var n=Uc7(J.provider);Object.assign(n,{state:J.N});K=new wIe(J.provider.videoData,J.provider.lx,K,n);K.G=J.provider.dQ.LH();n=J.provider.videoData.clientPlaybackNonce;K.G=J.provider.dQ.hA(n);J.provider.videoData.isLivePlayback||(K.j_=J.provider.dQ.getDuration(n));J.provider.videoData.G&&(n=J.provider.videoData.G.vM(K.G))&&(K.GA=n-K.G,J.provider.lx.J("html5_disable_live_dvr_shrink_for_cdm_vss")&&G$(J.provider.videoData)&&(K.G+=J.provider.dQ.Ti(),K.GA-=J.provider.dQ.Ti()));K.C9=g.qS(J.provider); K.segments=[uf(J.provider)];return K}; GHU=function(J,K){var n=PI(J,"watchtime");tSH(J)&&(n.delayThresholdMet=!0,J.Aj=!0);if(J.Z>0){for(var X=g.z(K),l=X.next();!l.done;l=X.next())l=l.value,l.startTime-=J.Z,l.endTime-=J.Z;n.G-=J.Z}else n.G=J.G.G;n.segments=K;return n}; mN=function(J,K){var n=yPV(J,!isNaN(J.U));K&&(J.U=NaN);return n}; yPV=function(J,K){var n=GHU(J,Yzp(J));!isNaN(J.U)&&K&&(n.K=J.U);return n}; tSH=function(J){var K;if(K=J.provider.videoData.isLoaded()&&J.provider.videoData.Dm&&J.X&&!J.Aj)K=J.G,K=K.C+K.LH()-K.X>=J.provider.videoData.Dm;return!!K}; kH3=function(J){J.provider.videoData.youtubeRemarketingUrl&&!J.cW&&(dcU(J,J.provider.videoData.youtubeRemarketingUrl),J.cW=!0)}; gC7=function(J){J.provider.videoData.googleRemarketingUrl&&!J.QG&&(dcU(J,J.provider.videoData.googleRemarketingUrl),J.QG=!0)}; ZV7=function(J){if(!J.o4()&&J.X){J.N="paused";var K=mN(J);K.isFinal=!0;K.send();J.dispose()}}; ft3=function(J,K){if(!J.o4())if(g.E(K.state,2)||g.E(K.state,512)){if(J.N="paused",g.C1(K,2)||g.C1(K,512))g.C1(K,2)&&(J.G.previouslyEnded=!0),J.X&&(BI(J),mN(J).send(),J.U=NaN)}else if(g.E(K.state,8)){J.N="playing";var n=J.X&&isNaN(J.C)?IJ(J):NaN;if(!isNaN(n)&&(sC(K,64)<0||sC(K,512)<0)){var X=yPV(J,!1);X.W=n;X.send()}g.C1(K,16)&&K.state.seekSource===58&&(J.G.previouslyEnded=!0)}else J.N="paused"}; WN8=function(J,K,n){if(!J.GA){n||(n=PI(J,"atr"));n.attestationResponse=K;try{n.send()}catch(X){if(X.message!=="Unknown Error")throw X;}J.GA=!0}}; dcU=function(J,K){var n=J.provider.lx;g.l7(J.provider.lx,g.Yi(J.provider.videoData)).then(function(X){var l=J.provider.lx.pageId,x=J.provider.lx.sendVisitorIdHeader?J.provider.videoData.visitorData:void 0,V=J.provider.lx.J("vss_pings_using_networkless")||J.provider.lx.J("kevlar_woffle"),v=J.provider.lx.J("allow_skip_networkless");X=MAf(K,n,l,x,X);N_q(K,X,{token:J.provider.videoData.N,TI:J.provider.videoData.mH,mdxEnvironment:J.provider.videoData.mdxEnvironment},n,void 0,V&&!v,!1,!0)})}; atU=function(){this.endTime=this.startTime=-1;this.U="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.Z=0;this.compositeLiveStatusToken=this.X=void 0;this.volume=this.connectionType=0;this.muted=!1;this.G=this.clipId="-";this.previouslyEnded=!1}; pV=function(J,K,n){this.videoData=J;this.lx=K;this.dQ=n;this.G=void 0}; g.qS=function(J){return FNF(J)()}; FNF=function(J){if(!J.G){var K=g.xr(function(X){var l=(0,g.a)();X&&l<=631152E6&&(J.dQ.Zm("ytnerror",{issue:28799967,value:""+l}),l=(new Date).getTime()+2);return l},J.lx.J("html5_validate_yt_now")),n=K(); J.G=function(){return Math.round(K()-n)/1E3}; J.dQ.f3()}return J.G}; Uc7=function(J){var K=J.dQ.wL()||{};K.fs=J.dQ.Am();K.volume=J.dQ.getVolume();K.muted=J.dQ.isMuted()?1:0;K.mos=K.muted;K.clipid=J.dQ.wb();var n;K.playerheight=((n=J.dQ.getPlayerSize())==null?void 0:n.height)||0;var X;K.playerwidth=((X=J.dQ.getPlayerSize())==null?void 0:X.width)||0;J=J.videoData;n={};J.Z&&(n.fmt=J.Z.itag,J.U&&(J.o5?J.U.itag!==J.Z.itag:J.U.itag!=J.Z.itag)&&(n.afmt=J.U.itag));n.ei=J.eventId;n.list=J.playlistId;n.cpn=J.clientPlaybackNonce;J.videoId&&(n.v=J.videoId);J.zw&&(n.infringe=1); (J.J7?0:J.Pp)&&(n.splay=1);(X=uK(J))&&(n.live=X);J.L$&&(n.sautoplay=1);J.sy&&(n.autoplay=1);J.Yi&&(n.sdetail=J.Yi);J.partnerId&&(n.partnerid=J.partnerId);J.osid&&(n.osid=J.osid);J.SI&&(n.cc=g.JmF(J.SI));return Object.assign(K,n)}; hcM=function(J){var K=i17();if(K)return qzq[K]||qzq.other;if(g.Ig(J.lx)){J=navigator.userAgent;if(/[Ww]ireless[)]/.test(J))return 3;if(/[Ww]ired[)]/.test(J))return 30}return 0}; uf=function(J){var K=new atU,n;K.U=((n=Uc7(J).cc)==null?void 0:n.toString())||"-";K.playbackRate=J.dQ.getPlaybackRate();n=J.dQ.getVisibilityState();n!==0&&(K.visibilityState=n);J.lx.md&&(K.Z=1);K.X=J.videoData.Yf;K.compositeLiveStatusToken=J.videoData.compositeLiveStatusToken;n=J.dQ.getAudioTrack();n.Hw&&n.Hw.id&&n.Hw.id!=="und"&&(K.audioId=n.Hw.id);K.connectionType=hcM(J);K.volume=J.dQ.getVolume();K.muted=J.dQ.isMuted();K.clipId=J.dQ.wb()||"-";K.G=J.videoData.Tv||"-";return K}; g.LV=function(J,K){g.t.call(this);var n=this;this.provider=J;this.X=new Map;this.N_=new g.lH;this.QU={ZsQ:function(){return n.qoe}, Pu4:function(){return n.G}, gnW:function(){return n.Z}}; this.provider.videoData.TL()&&!this.provider.videoData.pI&&(this.G=new wi(this.provider),this.G.Z=0,g.Z(this,this.G),this.qoe=new g.ri(this.provider,K),g.Z(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.N3=this.provider.videoData.clientPlaybackNonce)&&this.X.set(this.N3,this.G));if(J.lx.playerCanaryState==="canary"||J.lx.playerCanaryState==="holdback")this.Z=new hP(this.provider),g.Z(this,this.Z)}; TH=function(J){return g.qS(J.provider)}; Dt=function(J){J.Z&&ywk(J.Z);J.qoe&&HVF(J.qoe)}; ECF=function(J){if(J.qoe){J=J.qoe;for(var K=J.provider.videoData,n=J.provider.lx,X=g.z(n.CL),l=X.next();!l.done;l=X.next())Oz(J,l.value);if(J.provider.J("html5_enable_qoe_cat_list"))for(X=g.z(K.h9),l=X.next();!l.done;l=X.next())Oz(J,l.value);else K.CL&&Oz(J,J.provider.videoData.CL);K.qS()&&(X=K.G,Qu(K)&&Oz(J,"manifestless"),X&&L4(X)&&Oz(J,"live-segment-"+L4(X).toFixed(1)));xi(K)?Oz(J,"sabr"):J.XD(rn(K));if(Uo(K)||K.NH())K.NH()&&Oz(J,"ssa"),Oz(J,"lifa");G$(K)&&Oz(J,"cdm");K.gatewayExperimentGroup&& (X=K.gatewayExperimentGroup,X==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?X="spkadtrt":X==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(X="spkadctrl"),Oz(J,X));n.GA!=="yt"&&J.G.set("len",[K.lengthSeconds.toFixed(2)]);K.cotn&&!yu(K)&&J.Oz(!0);n.Pw()&&(K=xcM())&&J.Zm("cblt",{m:K});if(n.J("html5_log_screen_diagonal")){n=J.Zm;var x;K=((x=window.H5vccScreen)==null?0:x.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;n.call(J,"cbltdiag",{v:K})}}}; bVp=function(J){J.G&&cPM(J.G);if(J.Z){J=J.Z;var K=g.qS(J.provider);J.G<0&&(J.G=K,J.delay.start());J.Z=K;J.U=K}}; APH=function(J,K){J.G&&(J=J.G,K===58?J.G.update():J.X&&(BI(J),mN(J).send(),J.U=NaN))}; MSf=function(J,K){if(g.C1(K,1024)||g.C1(K,512)||g.C1(K,4)){if(J.Z){var n=J.Z;n.Z>=0||(n.G=-1,n.delay.stop())}J.qoe&&(n=J.qoe,n.W||(n.X=-1))}if(J.provider.videoData.enableServerStitchedDai&&J.N3){var X;(X=J.X.get(J.N3))==null||ft3(X,K)}else J.G&&ft3(J.G,K);if(J.qoe){X=J.qoe;n=K.state;var l=g.qS(X.provider),x=X.getPlayerState(n),V=n.seekSource||void 0;if(x!==X.N_){X.cW||l= 10&&X.playTimeSecs<=180&&(X.G.set("qoealert",["1"]),X.vW=!0)),x!=="B"||X.N_!=="PL"&&X.N_!=="PB"||(X.isBuffering=!0),X.Z=l);X.N_==="PL"&&(x==="B"||x==="S")||X.provider.lx.Pw()?CV(X,l):(X.Gi||x!=="PL"||(X.Gi=!0,vCk(X,l,X.provider.dQ.xR())),VSq(X,l));x==="PL"&&g.M0(X.C9);var v=[x];x==="S"&&V&&v.push("ss."+V);g.SS(X,l,"vps",v);X.N_=x;X.QG=l;X.Z=l;X.U=!0}x=n.V2;g.E(n,128)&&x&&(x.Y8=x.Y8||"",rPq(X,l,x.errorCode,x.dX,x.Y8));(g.E(n,2)||g.E(n,128))&&X.reportStats(l);n.isPlaying()&&!X.W&&(X.X>=0&&X.G.set("user_intent", [X.X.toString()]),X.W=!0);$cF(X)}J.Z&&(J=J.Z,ZpU(J),J.playerState=K.state,J.Z>=0&&g.C1(K,16)&&J.seekCount++,K.state.isError()&&J.send())}; Nik=function(J){J.Z&&J.Z.send();if(J.qoe){var K=J.qoe;if(K.U){K.N_==="PL"&&(K.N_="N");var n=g.qS(K.provider);g.SS(K,n,"vps",[K.N_]);K.W||(K.X>=0&&K.G.set("user_intent",[K.X.toString()]),K.W=!0);K.provider.lx.Pw()&&K.Zm("finalized",{});K.MQ=!0;K.reportStats(n)}}if(J.provider.videoData.enableServerStitchedDai)for(K=g.z(J.X.values()),n=K.next();!n.done;n=K.next())ZV7(n.value);else J.G&&ZV7(J.G);J.dispose()}; JsV=function(J,K){J.G&&WN8(J.G,K)}; KUr=function(J){if(!J.G)return null;var K=PI(J.G,"atr");return function(n){J.G&&WN8(J.G,n,K)}}; nvH=function(J,K,n,X){n.adFormat=n.o2;var l=K.dQ;K=new wi(new pV(n,K.lx,{getDuration:function(){return n.lengthSeconds}, getCurrentTime:function(){return l.getCurrentTime()}, LH:function(){return l.LH()}, hA:function(){return l.hA()}, kI:function(){return l.kI()}, xR:function(){return l.xR()}, getPlayerSize:function(){return l.getPlayerSize()}, getAudioTrack:function(){return n.getAudioTrack()}, getPlaybackRate:function(){return l.getPlaybackRate()}, MJ:function(){return l.MJ()}, getVisibilityState:function(){return l.getVisibilityState()}, lH:function(){return l.lH()}, wL:function(){return l.wL()}, getVolume:function(){return l.getVolume()}, isMuted:function(){return l.isMuted()}, Am:function(){return l.Am()}, wb:function(){return l.wb()}, getProximaLatencyPreference:function(){return l.getProximaLatencyPreference()}, f3:function(){l.f3()}, Zm:function(x,V){l.Zm(x,V)}, lO:function(){return l.lO()}, Ti:function(){return l.Ti()}})); K.Z=X;g.Z(J,K);return K}; ovU=function(){this.hk=0;this.X=this.h6=this.F1=this.Z=NaN;this.G={};this.bandwidthEstimate=NaN}; di=function(J,K,n){g.t.call(this);var X=this;this.lx=J;this.dQ=K;this.Z=n;this.G=new Map;this.N3="";this.QU={t9:function(){return Array.from(X.G.keys())}}}; XYq=function(){this.G=g.nG;this.array=[]}; xGV=function(J,K,n){var X=[];for(K=lue(J,K);Kn)break}return X}; jbH=function(J,K){var n=[];J=g.z(J.array);for(var X=J.next();!X.done&&!(X=X.value,X.contains(K)&&n.push(X),X.start>K);X=J.next());return n}; ViM=function(J){return J.array.slice(lue(J,0x7ffffffffffff),J.array.length)}; lue=function(J,K){J=Dz(J.array,function(n){return K-n.start||1}); return J<0?-(J+1):J}; hJU=function(J,K){var n=NaN;J=g.z(J.array);for(var X=J.next();!X.done;X=J.next())if(X=X.value,X.contains(K)&&(isNaN(n)||X.endK&&(isNaN(n)||X.startJ.mediaTime+J.C&&K1)J.U=!0;if((l===void 0?0:l)||isNaN(J.Z))J.Z=K;if(J.G)K!==J.mediaTime&&(J.G=!1);else if(K>0&&J.mediaTime===K){l=1500;if(J.lx.J("html5_buffer_underrun_transition_fix")){l=g.Qg(J.lx.experiments,"html5_min_playback_advance_for_steady_state_secs");var x=g.Qg(J.lx.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");l=l>0&&x>0&&Math.abs(K-J.Z)(X||!J.U?l:400)}J.mediaTime=K;J.X=n;return!1}; sb3=function(J,K){this.videoData=J;this.G=K}; CV3=function(J,K,n){return K.cn(n).then(function(){return dN(new sb3(K,K.X))},function(X){X instanceof Error&&g.gG(X); var l=LJ('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),x=DR('audio/mp4; codecs="mp4a.40.2"'),V=l||x,v=K.isLivePlayback&&!g.xn(J.C,!0);X="fmt.noneavailable";v?X="html5.unsupportedlive":V||(X="html5.missingapi");V=v||!V?2:1;l={buildRej:"1",a:K.sD(),d:!!K.fU,drm:K.wK(),f18:K.CH.indexOf("itag=18")>=0,c18:l};K.G&&(K.wK()?(l.f142=!!K.G.G["142"],l.f149=!!K.G.G["149"],l.f279=!!K.G.G["279"]):(l.f133=!!K.G.G["133"],l.f140=!!K.G.G["140"],l.f242=!!K.G.G["242"]),l.cAAC=x,l.cAVC=DR('video/mp4; codecs="avc1.42001E"'), l.cVP9=DR('video/webm; codecs="vp9"'));K.C&&(l.drmsys=K.C.keySystem,x=0,K.C.G&&(x=Object.keys(K.C.G).length),l.drmst=x);return new ix(X,l,V)})}; cI=function(J){this.data=window.Float32Array?new Float32Array(J):Array(J);this.Z=this.G=J-1}; OWU=function(J){return J.data[J.G]||0}; HWU=function(J){this.C=J;this.X=this.Z=0;this.U=new cI(50)}; GH=function(J,K,n){g.hi.call(this);this.videoData=J;this.experiments=K;this.C=n;this.Z=[];this.hK=0;this.X=!0;this.U=!1;this.N=0;n=new RJr;J.latencyClass==="ULTRALOW"&&(n.N=!1);J.Fq?n.X=3:g.IT(J)&&(n.X=2);J.latencyClass==="NORMAL"&&(n.C=!0);n.GA=K.sM("html5_refactor_decouple_liveness");g.Qg(K,"html5_low_latency_adaptive_liveness_adjustment_segments")===0&&g.Qg(K,"html5_low_latency_max_allowable_liveness_drift_chunks")===0||J.latencyClass!=="LOW"&&J.latencyClass!=="ULTRALOW"||(n.C=!0);var X=g.Qg(K, "html5_liveness_drift_proxima_override");if(rn(J)!==0&&X){n.G=X;var l;((l=J.G)==null?0:hPV(l))&&n.G--}xi(J)&&K.sM("html5_sabr_parse_live_metadata_playback_boundaries")&&(n.QG=!0);if(g.fa("trident/")||g.fa("edge/"))l=g.Qg(K,"html5_platform_minimum_readahead_seconds")||3,n.U=Math.max(n.U,l);g.Qg(K,"html5_minimum_readahead_seconds")&&(n.U=g.Qg(K,"html5_minimum_readahead_seconds"));g.Qg(K,"html5_maximum_readahead_seconds")&&(n.K=g.Qg(K,"html5_maximum_readahead_seconds"));K.sM("html5_force_adaptive_readahead")&& (n.N=!0);if(l=g.Qg(K,"html5_liveness_drift_chunk_override"))n.G=l;$i(J)&&(n.G=(n.G+1)/5,J.latencyClass==="LOW"&&(n.G*=2));if(J.latencyClass==="ULTRALOW"||J.latencyClass==="LOW")n.L=g.Qg(K,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,n.W=g.Qg(K,"html5_low_latency_max_allowable_liveness_drift_chunks")||10;this.policy=n;this.W=this.policy.X!==1;this.G=YC(this,uW3(this,isNaN(J.liveChunkReadahead)?3:J.liveChunkReadahead,J))}; eJq=function(J,K){if(K)return K=J.videoData,K=uW3(J,isNaN(K.liveChunkReadahead)?3:K.liveChunkReadahead,K),YC(J,K);if(J.Z.length){if(Math.min.apply(null,J.Z)>1)return YC(J,J.G-1);if(J.policy.N)return YC(J,J.G+1)}return J.G}; zJM=function(J,K){if(!J.Z.length)return!1;var n=J.G;J.G=eJq(J,K===void 0?!1:K);if(K=n!==J.G)J.Z=[],J.hK=0;return K}; Uz=function(J,K){return K>=J.qP()-wY3(J)}; PVd=function(J,K,n){K=Uz(J,K);n||K?K&&(J.X=!0):J.X=!1;J.W=J.policy.X===2||J.policy.X===3&&J.X}; Iur=function(J,K){K=Uz(J,K);J.U!==K&&J.publish("livestatusshift",K);J.U=K}; wY3=function(J){var K=J.policy.G;J.U||(K=Math.max(K-1,0));return K*tP(J)}; uW3=function(J,K,n){n.Fq&&K--;$i(n)&&(K=1);if(rn(n)!==0&&(J=g.Qg(J.experiments,"html5_live_chunk_readahead_proxima_override"))){K=J;var X;((X=n.G)==null?0:hPV(X))&&K++}return K}; tP=function(J){return J.videoData.G?L4(J.videoData.G)||5:5}; YC=function(J,K){K=Math.max(Math.max(1,Math.ceil(J.policy.U/tP(J))),K);return Math.min(Math.min(8,Math.floor(J.policy.K/tP(J))),K)}; RJr=function(){this.U=0;this.K=Infinity;this.N=!0;this.Z=this.G=2;this.X=1;this.C=!1;this.W=10;this.QG=!1;this.L=1;this.GA=!1}; fV=function(J){g.t.call(this);this.dQ=J;this.G=0;this.Z=null;this.N=this.U=0;this.X={};this.lx=this.dQ.S();this.C=new g.AT(this.AB,1E3,this);this.wQ=new y0({delayMs:g.Qg(this.lx.experiments,"html5_seek_timeout_delay_ms")});this.cW=new y0({delayMs:g.Qg(this.lx.experiments,"html5_long_rebuffer_threshold_ms")});this.Fq=Zt(this,"html5_seek_set_cmt");this.j_=Zt(this,"html5_seek_jiggle_cmt");this.kF=Zt(this,"html5_seek_new_elem");this.Gi=Zt(this,"html5_unreported_seek_reseek");this.QG=Zt(this,"html5_long_rebuffer_jiggle_cmt"); this.Aj=new y0({delayMs:2E4});this.Cv=Zt(this,"html5_seek_new_elem_shorts");this.gQ=Zt(this,"html5_seek_new_media_source_shorts_reuse");this.fv=Zt(this,"html5_seek_new_media_element_shorts_reuse");this.PW=Zt(this,"html5_reseek_after_time_jump");this.L=Zt(this,"html5_gapless_handoff_close_end_long_rebuffer");this.K=Zt(this,"html5_gapless_slow_seek");this.GA=Zt(this,"html5_gapless_slow_start");this.W=Zt(this,"html5_ads_preroll_lock_timeout");this.md=new y0({delayMs:g.Qg(this.lx.experiments,"html5_skip_slow_ad_delay_ms")|| 5E3,jA:!this.lx.J("html5_report_slow_ads_as_error")});this.Dm=new y0({delayMs:g.Qg(this.lx.experiments,"html5_skip_slow_ad_delay_ms")||5E3,jA:!this.lx.J("html5_skip_slow_buffering_ad")});this.vW=new y0({delayMs:g.Qg(this.lx.experiments,"html5_slow_start_timeout_delay_ms")});this.MQ=Zt(this,"html5_slow_start_no_media_source");g.Z(this,this.C)}; Zt=function(J,K){var n=g.Qg(J.lx.experiments,K+"_delay_ms");J=J.lx.J(K+"_cfl");return new y0({delayMs:n,jA:J})}; iWk=function(J,K){J.G=K}; WI=function(J,K,n,X,l,x,V,v){K.test(n)?(J.Sh(l,K,V),K.jA||x()):(K.Zc&&K.Z&&!K.U?(n=(0,g.a)(),X?K.G||(K.G=n):K.G=0,x=!X&&n-K.Z>K.Zc,n=K.G&&n-K.G>K.PT||x?K.U=!0:!1):n=!1,n&&(v=Object.assign({},J.FK(K),v),v.wn=V,v.we=l,v.wsuc=X,J.dQ.Zm("workaroundReport",v),X&&(K.reset(),J.X[l]=!1)))}; y0=function(J){var K=J===void 0?{}:J;J=K.delayMs===void 0?0:K.delayMs;var n=K.PT===void 0?1E3:K.PT;var X=K.Zc===void 0?3E4:K.Zc;K=K.jA===void 0?!1:K.jA;this.G=this.Z=this.X=this.startTimestamp=0;this.U=!1;this.C=Math.ceil(J/1E3);this.PT=n;this.Zc=X;this.jA=K}; LU3=function(J){g.t.call(this);var K=this;this.dQ=J;this.W=this.G=this.loader=this.mediaElement=this.playbackData=null;this.X=0;this.C=this.GA=this.U=null;this.QG=!1;this.vW=0;this.K=!1;this.timestampOffset=0;this.Aj=!0;this.kF=0;this.gQ=this.iR=!1;this.N=0;this.Fq=!1;this.cW=0;this.lx=this.dQ.S();this.videoData=this.dQ.getVideoData();this.policy=new BdU;this.L=new fV(this.dQ);this.md=this.Cv=this.j_=this.Z=NaN;this.PW=new g.AT(function(){mG3(K,!1)},2E3); this.Gi=new g.AT(function(){aJ(K)}); this.fv=new g.AT(function(){K.QG=!0;pY3(K,{})}); this.Dm=NaN;this.MQ=new g.AT(function(){var n=K.lx.Nk;n.G+=1E4/36E5;n.G-n.X>1/6&&(Qze(n),n.X=n.G);K.MQ.start()},1E4); g.Z(this,this.L);g.Z(this,this.PW);g.Z(this,this.fv);g.Z(this,this.Gi);g.Z(this,this.MQ)}; dGU=function(J,K){J.playbackData=K;J.videoData.isLivePlayback&&(J.W=new HWU(function(){a:{if(J.playbackData&&J.playbackData.G.G){if(Qu(J.videoData)&&J.loader){var n=J.loader.Gq.mW()||0;break a}if(J.videoData.G){n=J.videoData.G.MQ;break a}}n=0}return n}),J.G=new GH(J.videoData,J.lx.experiments,function(){return J.XL(!0)})); F3(J.dQ)?(K=TdV(J),K.u0?(xi(J.videoData)&&J.ND(K.u0,K.startSeconds),J.X=K.startSeconds):K.startSeconds>0&&J.seekTo(K.startSeconds,{E8:"seektimeline_startPlayback",seekSource:15}),J.Aj=!1):DGk(J)||(J.X=J.X||J.videoData.startSeconds||0)}; gvd=function(J,K){(J.loader=K)?kcq(J,!0):qc(J)}; cs3=function(J,K){g.M0(J.L.C);J.J("html5_exponential_memory_for_sticky")&&(K.state.isPlaying()?g.M0(J.MQ):J.MQ.stop());if(J.mediaElement)if(K.oldState.state===8&&$I(K.state)&&K.state.isBuffering()){K=J.mediaElement.getCurrentTime();var n=J.mediaElement.Ya();var X=J.J("manifestless_post_live_ufph")||J.J("manifestless_post_live")?Vd(n,Math.max(K-3.5,0)):Vd(n,K-3.5);X>=0&&K>n.end(X)-1.1&&X+10?(Ez(J.dQ,J.getCurrentTime()+J.videoData.limitedPlaybackDurationInSeconds),J.gQ=!0):J.videoData.isLivePlayback&&J.videoData.endSeconds>0&&(Ez(J.dQ,J.getCurrentTime()+J.videoData.endSeconds),J.gQ=!0))}; Gcr=function(J,K){var n=J.getCurrentTime(),X=J.isAtLiveHead(n);if(J.W&&X){var l=J.W;if(l.G&&!(n>=l.Z&&n50&&l.Z.shift())),l=J.G,PVd(l,n,K===void 0?!0:K),Iur(l,n),K&&mG3(J,!0));X!==J.iR&&(K=J.getCurrentTime()-J.md<=500,n=J.vW>=1E3,K||n||(K=J.dQ.Vw(),K.qoe&&(K=K.qoe,n=g.qS(K.provider), g.SS(K,n,"lh",[X?"1":"0"])),J.iR=X,J.vW++,J.md=J.getCurrentTime()))}; mG3=function(J,K){if(J.G){var n=J.G;var X=J.getCurrentTime(),l=n.qP();var x=n.policy.Z;n.U||(x=Math.max(x-1,0));x*=tP(n);X>=l-x||!n.r_()?n=X0&&Kh(J.mediaElement)>0&&(J.Z=bf(J,J.Z,!1)),!J.mediaElement||!WU3(J))J.Gi.start(750);else if(!isNaN(J.Z)&&isFinite(J.Z)){var K=J.Cv-(J.Z-J.timestampOffset);if(!(K===0||Math.abs(K)<.005))if(K=J.mediaElement.getCurrentTime()-J.Z,Math.abs(K)<=J.kF||Math.abs(K)<.005)au8(J);else{if(J.videoData.bQ)J.videoData.bQ=!1;else if(!vD(J.videoData)&&J.Z>=J.XL()-.1){J.Z=J.XL();J.U.resolve(J.XL()); J.dQ.LK();return}try{var n=J.Z-J.timestampOffset;J.mediaElement.seekTo(n);J.L.G=n;J.Cv=n;J.X=J.Z;J.K=!1}catch(X){}}}}; WU3=function(J){if(!J.mediaElement||J.mediaElement.X7()===0||J.mediaElement.hasError())return!1;var K=J.mediaElement.getCurrentTime()>0;if(!(J.videoData.X&&J.videoData.X.G||J.videoData.isLivePlayback)&&J.videoData.wK())return K;if(J.Z>=0){var n=J.mediaElement.OV();if(n.length||!K)return hF(n,J.Z-J.timestampOffset)}return K}; au8=function(J){J.U&&(J.U.resolve(J.mediaElement.getCurrentTime()),J.L.Z=null)}; ZWk=function(J,K){J.C&&(J.C.resolve(K),J.dQ.g$(),J.lx.Pw()||fuH(J))&&(K=J.FK(),K["native"]=""+ +J.K,K.otgt=""+(J.Z+J.timestampOffset),J.dQ.Zm("seekEnd",K));qc(J)}; qc=function(J){J.Z=NaN;J.Cv=NaN;J.U=null;J.GA=null;J.C=null;J.QG=!1;J.K=!1;J.kF=0;J.PW.stop();J.fv.stop()}; qc8=function(J,K){var n=J.mediaElement,X=K.type;switch(X){case "seeking":var l=n.getCurrentTime()+J.timestampOffset;if(!J.U||J.K&&l!==J.Z){J.U=new Nb;J.U.then(function(V){ZWk(J,V)},function(){qc(J)}); if(J.videoData.isAd()){var x;xok({adCpn:J.videoData.clientPlaybackNonce,contentCpn:(x=J.videoData.aL)!=null?x:""},K.G)}J.Cv=l;iWk(J.L,n.getCurrentTime());J.seekTo(l,{seekSource:104,E8:"seektimeline_mediaElementEvent"});J.K=!0}break;case "seeked":au8(J);break;case "loadedmetadata":F3(J.dQ)||FUV(J);aJ(J);break;case "progress":aJ(J);break;case "pause":J.N=J.getCurrentTime()}J.N&&((X==="play"||X==="playing"||X==="timeupdate"||X==="progress")&&J.getCurrentTime()-J.N>10&&(J.J("html5_enable_new_media_element_puase_jump")? (J.dQ.Sh(new ix("qoe.restart",{reason:"pauseJump"})),J.dQ.zc(),J.seekTo(J.N,{E8:"pauseJumpNewElement"})):J.seekTo(J.N,{E8:"pauseJump"})),X!=="pause"&&X!=="play"&&X!=="playing"&&X!=="progress"&&(J.N=0))}; Evr=function(J){return(iK(J.videoData)||!!J.videoData.liveUtcStartSeconds)&&(!!J.videoData.liveUtcStartSeconds||DGk(J))&&!!J.videoData.G}; DGk=function(J){return!!J.videoData.startSeconds&&isFinite(J.videoData.startSeconds)&&J.videoData.startSeconds>1E9}; TdV=function(J){var K=0,n=NaN,X="";if(!J.Aj)return{startSeconds:K,u0:n,source:X};J.videoData.GA?K=J.videoData.Aj:vD(J.videoData)&&(K=Infinity);if(g.IT(J.videoData))return{startSeconds:K,u0:n,source:X};J.videoData.startSeconds?(X="ss",K=J.videoData.startSeconds):J.videoData.f9&&(X="stss",K=J.videoData.f9);J.videoData.liveUtcStartSeconds&&(n=J.videoData.liveUtcStartSeconds);if(isFinite(K)&&(K>J.XL()||K J.XL()||n 0?(X.onesie="0",J.handleError(new ix("html5.missingapi",X)),!1):!0}; XZF=function(J){var K=Yw();Gh(K,J);return g.lE(K,Th7())}; KVV=function(J,K){var n,X,l,x,V,v,Q,S,r,C,O,H,R,w,P,B,p,k,c,y,A,q,or,lF,J7,h7;return g.G(function(M){if(M.Z==1)return K.fetchType="onesie",n=FiV(K,J.getPlayerSize(),J.getVisibilityState()),X=new Or(J,n),g.d(M,X.fetch(),2);l=M.G;x={player_response:l};K.loading=!1;V=J.U8.Mm;if(X.xa){v=g.z(X.xa.entries());for(Q=v.next();!Q.done;Q=v.next())S=Q.value,r=g.z(S),C=r.next().value,O=r.next().value,H=C,R=O,V.G.set(H,R,180),H===K.videoId&&(w=R.eC(),K.TM=w);V.Nq=X}P=g.z(X.KR.entries());for(B=P.next();!B.done;B= P.next())p=B.value,k=g.z(p),c=k.next().value,y=k.next().value,A=c,q=y,V.Z.set(A,q,180);g.qJ(K,x,!0);if(K.loading||au(K))return M.return(Promise.resolve());V.G.removeAll();V.Z.removeAll();K.TM=[];or={};lF="onesie.response";J7=0;K.errorCode?(lF="auth",or.ec=K.errorCode,or.ed=K.errorDetail,or.es=K.PQ||"",J7=2):(or.successButUnplayable="1",or.disposed=""+ +K.o4(),or.afmts=""+ +/adaptiveFormats/.test(l),or.cpn=K.clientPlaybackNonce);h7=new ix(lF,or,J7);return M.return(Promise.reject(h7))})}; Ndk=function(J,K){var n,X,l,x,V,v,Q,S,r,C,O;return g.G(function(H){switch(H.Z){case 1:n=K.isAd(),X=!n,l=n?1:3,x=0;case 2:if(!(x0)){H.EM(5);break}return g.d(H,GD(5E3),6);case 6:V=new g.qt("Retrying OnePlatform request",{attempt:x}),g.gG(V);case 5:return g.e8(H,7),g.d(H,lbk(J,K),9);case 9:return H.return();case 7:v=g.mk(H);Q=mx(v);S=Q.errorCode;r=J.S();C=r.J("html5_use_network_error_code_enums")?401:"401";X&&S==="manifest.net.badstatus"&&Q.details.rc===C&&(X=!1,x===l-1&&(l+= 1));if(x===l-1)return O=x8V(n,Q.details),O.details.backend="op",O.details.originec=S,H.return(Promise.reject(O));if(S==="auth"||S==="manifest.net.retryexhausted")return H.return(Promise.reject(Q));J.handleError(Q);if(Bf(Q.severity)){H.EM(4);break}case 3:x++;H.EM(2);break;case 4:return H.return(Promise.reject(x8V(n,{backend:"op"})))}})}; lbk=function(J,K){function n(lF){lF.readyState===2&&J.T4("ps_c")} var X,l,x,V,v,Q,S,r,C,O,H,R,w,P,B,p,k,c,y,A,q,or;return g.G(function(lF){switch(lF.Z){case 1:K.fetchType="gp";X=J.S();l=g.l7(X,g.Yi(K));if(!l.G){x=l.getValue();lF.EM(2);break}return g.d(lF,l.G,3);case 3:x=lF.G;case 2:return V=x,v=XZF(V),Q=FiV(K,J.getPlayerSize(),J.getVisibilityState()),S=g.Ko(jCq),r=g.Yi(K),C=(0,g.a)(),O=!1,H="empty",R=0,J.T4("psns"),w={XZ:n},g.d(lF,g.q5(v,Q,S,void 0,w),4);case 4:P=lF.G;J.T4("psnr");if(K.o4())return lF.return();P?"error"in P&&P.error?(O=!0,H="esf:"+P.error.message, R=P.error.code):P.errorMetadata&&(O=!0,H="its",R=P.errorMetadata.status):O=!0;if(O)return B=0,p=((0,g.a)()-C).toFixed(),k={},k=X.J("html5_use_network_error_code_enums")?{backend:"op",rc:R,rt:p,reason:H,has_kpt:K.x4?"1":"0",has_mdx_env:K.mdxEnvironment?"1":"0",has_omit_key_flag:g.Et("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:X.pageId?"1":"0",has_token:r?"1":"0",has_vvt:K.cW?"1":"0",is_mdx:K.isMdxPlayback?"1":"0",mdx_ctrl:K.Gd||"",token_eq:r===g.Yi(K)?"1":"0"}:{backend:"op", rc:""+R,rt:p,reason:H,has_kpt:K.x4?"1":"0",has_mdx_env:K.mdxEnvironment?"1":"0",has_omit_key_flag:g.Et("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:X.pageId?"1":"0",has_token:r?"1":"0",has_vvt:K.cW?"1":"0",is_mdx:K.isMdxPlayback?"1":"0",mdx_ctrl:K.Gd||"",token_eq:r===g.Yi(K)?"1":"0"},c="manifest.net.connect",R===429?(c="auth",B=2):R>200&&(c="manifest.net.badstatus",R===400&&(B=2)),lF.return(Promise.reject(new ix(c,k,B)));K.loading=!1;g.qJ(K,{raw_player_response:P},!0); y=P;g.gz(K.S())&&y&&y.trackingParams&&gw(y.trackingParams);if(K.errorCode)return A={ec:K.errorCode,ed:K.errorDetail,es:K.PQ||""},lF.return(Promise.reject(new ix("auth",A,2)));if(!K.loading&&!au(K))return q=K.isAd()?"auth":"manifest.net.retryexhausted",or=K.isAd()?2:1,lF.return(Promise.reject(new ix(q,{successButUnplayable:"1",hasMedia:g.z$(K)?"1":"0"},or)));g.uF(lF)}})}; Mip=function(J,K,n){function X(R){R=mx(R);if(Bf(R.severity))return Promise.reject(R);J.handleError(R);return!1} function l(){return!0} var x,V,v,Q,S,r,C,O,H;return g.G(function(R){switch(R.Z){case 1:var w=J.S();J.getPlayerSize();J.getVisibilityState();J.isFullscreen();if(K.partnerId===38&&w.playerStyle==="books")w=K.videoId.indexOf(":"),w=g.Td("//play.google.com/books/volumes/"+K.videoId.slice(0,w)+"/content/media",{aid:K.videoId.slice(w+1),sig:K.Zp});else if(K.partnerId===30&&w.playerStyle==="docs")w=g.Td("https://docs.google.com/get_video_info",{docid:K.videoId,authuser:K.t_,authkey:K.r4,eurl:w.x4});else if(K.partnerId===33&&w.playerStyle=== "google-live")w=g.Td("//google-liveplayer.appspot.com/get_video_info",{key:K.videoId});else throw Error("getVideoInfoUrl for invalid namespace: "+w.GA);x=w;v=(V=K.isAd())?1:3;Q=0;case 2:if(!(Q0)){R.EM(5);break}return g.d(R,GD(5E3),6);case 6:r={playerretry:Q,playerretrysrc:n},V||(r.recover="embedded"),S=jf(x,r);case 5:return g.d(R,Vwf(K,S).then(l,X),7);case 7:if(C=R.G)return R.return();Q++;R.EM(2);break;case 4:O=V?"auth":"manifest.net.retryexhausted";H=V?2:1;if(!V&&Math.random()< 1E-4)try{g.gG(new g.qt("b/152131571",btoa(x)))}catch(P){}return R.return(Promise.reject(new ix(O,{backend:"gvi"},H)))}})}; Vwf=function(J,K){function n(P){return X(P.xhr)} function X(P){if(!J.o4()){P=P?P.status:-1;var B=0,p=((0,g.a)()-r).toFixed();p=l.J("html5_use_network_error_code_enums")?{backend:"gvi",rc:P,rt:p}:{backend:"gvi",rc:""+P,rt:p};var k="manifest.net.connect";P===429?(k="auth",B=2):P>200&&(k="manifest.net.badstatus",P===400&&(B=2));return Promise.reject(new ix(k,p,B))}} var l,x,V,v,Q,S,r,C,O,H,R,w;return g.G(function(P){if(P.Z==1){J.fetchType="gvi";l=J.S();var B={};J.As&&(B.ytrext=J.As);(v=g.Mz(B)?void 0:B)?(x={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:v},V=jf(K,{action_display_post:1})):(x={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},V=K);Q={};l.sendVisitorIdHeader&&J.visitorData&&(Q["X-Goog-Visitor-Id"]=J.visitorData);(S=om(l.experiments,"debug_sherlog_username"))&&(Q["X-Youtube-Sherlog-Username"]=S);Object.keys(Q).length> 0&&(x.headers=Q);r=(0,g.a)();return g.d(P,C4(pa,V,x).then(void 0,n),2)}C=P.G;if(!C||!C.responseText)return P.return(X(C));J.loading=!1;O=oe(C.responseText);g.qJ(J,O,!0);if(J.errorCode)return H={ec:J.errorCode,ed:J.errorDetail,es:J.PQ||""},P.return(Promise.reject(new ix("auth",H,2)));if(!J.loading&&!au(J))return R=J.isAd()?"auth":"manifest.net.retryexhausted",w=J.isAd()?2:1,P.return(Promise.reject(new ix(R,{successButUnplayable:"1"},w)));g.uF(P)})}; x8V=function(J,K){return new ix(J?"auth":"manifest.net.retryexhausted",K,J?2:1)}; KW=function(J,K,n){n=n===void 0?!1:n;var X,l,x,V;g.G(function(v){if(v.Z==1){X=J.S();if(n&&(!g.Nw(X)||dn(K)!=="embedded")||K.UK||dn(K)!=="adunit"&&(g.Ig(X)||ZW(X)||g.G_(X)||g.cp(X)||g.KR(X)==="WEB_CREATOR"))return v.return();l=g.l7(X,g.Yi(K));return l.G?g.d(v,l.G,3):(x=l.getValue(),v.EM(2))}v.Z!=2&&(x=v.G);V=x;return v.return(h03(J,K,V))})}; h03=function(J,K,n){var X,l,x,V,v;return g.G(function(Q){if(Q.Z==1){g.e8(Q,2);X=XZF(n);var S=K.S();g.yT();var r={context:g.N2(K),videoId:K.videoId,racyCheckOk:K.racyCheckOk,contentCheckOk:K.contentCheckOk,autonavState:"STATE_NONE"};dn(K)==="adunit"&&(r.isAdPlayback=!0);S.embedConfig&&(r.serializedThirdPartyEmbedConfig=S.embedConfig);S.rL&&(r.showContentOwnerOnly=!0);K.uN&&(r.showShortsOnly=!0);g.Z0(0,141)&&(r.autonavState=g.Z0(0,140)?"STATE_OFF":"STATE_ON");if(g.AS(S)){var C=g.Z0(0,65);C=C!=null? !C:!1;var O=!!g.g1("yt-player-sticky-caption");r.captionsRequested=C&&O}var H;if(S=(H=S.getWebPlayerContextConfig())==null?void 0:H.encryptedHostFlags)r.playbackContext={encryptedHostFlags:S};l=r;x=g.Ko(vBH);J.T4("wn_s");return g.d(Q,g.q5(X,l,x),4)}if(Q.Z!=2)return V=Q.G,J.T4("wn_r"),!V||"error"in V&&V.error||(v=V,g.gz(K.S())&&v.trackingParams&&gw(v.trackingParams),g.qJ(K,{raw_watch_next_response:V},!1)),g.Ir(Q,0);g.mk(Q);g.uF(Q)})}; QCp=function(J){J.T4("vir");J.T4("ps_s");Ws("vir",void 0,"video_to_ad");var K=oB3(J);K.then(function(){J.T4("virc");Ws("virc",void 0,"video_to_ad");J.T4("ps_r");Ws("ps_r",void 0,"video_to_ad")},function(){J.T4("virc"); Ws("virc",void 0,"video_to_ad")}); return K}; g.XW=function(J,K,n,X,l,x,V,v,Q,S){Q=Q===void 0?new g.WF(J):Q;S=S===void 0?!0:S;g.hi.call(this);var r=this;this.lx=J;this.playerType=K;this.rN=n;this.vP=X;this.getVisibilityState=x;this.visibility=V;this.U8=v;this.videoData=Q;this.n8=S;this.logger=new g.XI("VideoPlayer");this.I9=null;this.Ef=new X3;this.kY=null;this.YI=!0;this.tj=this.loader=null;this.eY=[];this.bM=new Js;this.Tn=this.w7=null;this.Ut=new Js;this.ev=null;this.lq=this.Qx=!1;this.V0=NaN;this.VW=!1;this.playerState=new g.lH;this.wi=[]; this.Gv=new g.gY;this.ER=new Qof(this);this.mediaElement=null;this.Ua=new g.AT(this.orQ,15E3,this);this.Y5=this.Fv=!1;this.Gx=NaN;this.ib=!1;this.BC=0;this.kR=!1;this.nX=NaN;this.HZ=new AP(new Map([["bufferhealth",function(){return Yce(r.b_)}], ["bandwidth",function(){return r.dP()}], ["networkactivity",function(){return r.lx.schedule.Aj}], ["livelatency",function(){return r.isAtLiveHead()&&r.isPlaying()?$8F(r):NaN}], ["rawlivelatency",function(){return $8F(r)}]])); this.Sr=0;this.loop=!1;this.playbackRate=1;this.t2=0;this.b_=new LU3(this);this.sj=!1;this.Tf=[];this.NW=this.aA=0;this.fz=this.Fk=!1;this.h6=this.F1=0;this.xq=new g.AT(this.JZ,0,this);this.tH=null;this.Hvm=[this.Gv,this.xq,this.Ua,this.HZ];this.Qm=this.IF=null;this.DT=function(){var C=r.Vw();C.provider.lx.CH||C.provider.dQ.getVisibilityState()===3||(C.provider.lx.CH=!0);C.j2();if(C.Z){var O=C.Z;O.C&&O.G<0&&O.provider.dQ.getVisibilityState()!==3&&ywk(O)}C.qoe&&(C=C.qoe,C.gQ&&C.X<0&&C.provider.lx.CH&& HVF(C),C.U&&CV(C));r.loader&&nW(r);r.lx.Ub&&!r.videoData.backgroundable&&r.mediaElement&&!r.Do()&&(r.isBackground()&&r.mediaElement.kN()?(r.Zm("bgmobile",{suspend:1}),r.s3(!0,!0)):r.isBackground()||ob(r)&&r.Zm("bgmobile",{resume:1}))}; this.QU={NI:function(C){r.NI(C)}, gfW:function(C){r.I9=C}, O$Q:function(){return r.PX}, G6:function(){return r.oM}, B6:function(){return r.tj}, UIW:function(){return r.PC}, j0x:function(){return r.Nn}, At5:function(){}, S:function(){return r.lx}, dE:function(){return r.mediaElement}, u1Q:function(C){r.BU(C)}, MFx:function(){return r.vP}}; this.logger.debug(function(){return"creating, type "+K}); this.Yc=new rsd(this.lx);this.WH=new xC(this.lx,this.vP,this);this.o$=new g.kC(this,function(C,O){C!==g.o4("endcr")||g.E(r.playerState,32)||r.LK();l(C,O,r.playerType)}); g.Z(this,this.o$);g.Z(this,this.b_);SUr(this,Q);this.videoData.subscribe("dataupdated",this.NEQ,this);this.videoData.subscribe("dataloaded",this.If,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.Zm,this);this.videoData.subscribe("ctmpstr",this.JJ,this);this.qw();hQF(this.DT);this.visibility.subscribe("visibilitystatechange",this.DT);this.PC=new g.AT(this.Uw,g.Qg(this.lx.experiments,"html5_player_att_initial_delay_ms")||4500,this);this.Nn= new g.AT(this.Uw,g.Qg(this.lx.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.ZB=new g.Kj(this.H94,350,this);g.Z(this,this.ZB)}; SUr=function(J,K){if(J.playerType===2||J.lx.f$)K.YX=!0;var n=X$H(K.o2,K.FC,J.lx.U,J.lx.L);n&&(K.adFormat=n);J.playerType===2&&(K.sy=!0);if(J.isFullscreen()||J.lx.U)n=g.g1("yt-player-autonavstate"),K.autonavState=n||(J.lx.U?2:J.videoData.autonavState);K.endSeconds&&K.endSeconds>K.startSeconds&&Ez(J,K.endSeconds)}; rXr=function(J){Nik(J.PX);g.QD(J.PX);if(J.oM){for(var K=J.oM,n=g.z(K.G.values()),X=n.next();!X.done;X=n.next())Nik(X.value);K.G.clear();g.QD(J.oM)}}; sCq=function(J){var K=J.videoData;QCp(J).then(void 0,function(n){J.videoData!==K||K.o4()||(n=mx(n),n.errorCode==="auth"&&J.videoData.errorDetail?J.xO(n.errorCode,2,unescape(J.videoData.errorReason),Ih(n.details),J.videoData.errorDetail,J.videoData.PQ||void 0):J.handleError(n))})}; HHM=function(J){if(!g.E(J.playerState,128))if(J.videoData.isLoaded(),J.logger.debug("finished loading playback data"),J.eY=g.zO(J.videoData.QG),g.z$(J.videoData)){J.rN.tick("bpd_s");lV(J).then(function(){J.rN.tick("bpd_c");if(!J.o4()){J.Qx&&(J.G4(Vr(Vr(J.playerState,512),1)),ob(J));var X=J.videoData;X.endSeconds&&X.endSeconds>X.startSeconds&&Ez(J,X.endSeconds);J.bM.finished=!0;xv(J,"dataloaded");J.Ut.ZS()&&C8M(J);tAr(J.WH,J.Tn)}}); J.J("html5_log_media_perf_info")&&J.Zm("loudness",{v:J.videoData.Nk.toFixed(3)},!0);var K,n=(K=J.mediaElement)==null?void 0:K.xr();if(n&&"disablePictureInPicture"in n&&J.lx.Ky)try{n.disablePictureInPicture=J.lx.d3&&!J.videoData.backgroundable}catch(X){g.gG(X)}OHd(J)}else xv(J,"dataloaded")}; lV=function(J){ji(J);J.Tn=null;var K=CV3(J.lx,J.videoData,J.Do());J.w7=K;J.w7.then(function(n){R0p(J,n)},function(n){J.o4()||(n=mx(n),J.visibility.isBackground()?(VN(J,"vp_none_avail"),J.w7=null,J.bM.reset()):(J.bM.finished=!0,J.xO(n.errorCode,n.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",Ih(n.details))))}); return K}; R0p=function(J,K){if(!J.o4()&&!K.videoData.o4()){J.logger.debug("finished building playback data");J.Tn=K;dGU(J.b_,J.Tn);if(J.videoData.isLivePlayback){var n=u8M(J.U8.Mm,J.videoData.videoId)||J.loader&&!isNaN(J.loader.Aj);n=J.J("html5_onesie_live")&&n;F3(J)||J.videoData.vW>0&&!Qu(J.videoData)||n||J.seekTo(J.XL(),{E8:"videoplayer_playbackData",seekSource:18})}if(J.videoData.X.G){if(kX3(J.videoData)){J.J("html5_sabr_report_missing_url_as_error_terminal")?J.xO("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR", Ih({missabrurl:1})):J.handleError(new ix("fmt.missing",{missabrurl:"1"},2));return}J.loader?g.gG(Error("Duplicated Loader")):(n=g.Qg(J.lx.experiments,"html5_onesie_defer_content_loader_ms"))&&J.SB()&&u8M(J.U8.Mm,J.videoData.tE)?g.Ca(function(){J.o4()||J.loader||e0r(J)},n):e0r(J)}else!J.videoData.X.G&&yu(J.videoData)&&J.Zn(new Qs(J.videoData.videoId||"",4)); J.GO();dSU(K).then(function(){var X={};J.j$(X);J.lx.Pw()&&J.J("html5_log_media_perf_info")&&J.Zm("av1Info",X);nW(J)})}}; C8M=function(J){J.o4();J.logger.debug("try finish readying playback");if(J.Ut.finished)J.logger.debug("already finished readying");else if(J.bM.finished)if(g.E(J.playerState,128))J.logger.debug("cannot finish readying because of error");else if(J.eY.length)J.logger.debug(function(){return"cannot finish readying because of pending preroll: "+J.eY}); else if(J.o$.started||Qbd(J.o$),J.RE())J.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{J.loader&&(J.lq=UQp(J.loader.timing));J.Ut.finished||(J.Ut.finished=!0);var K=J.J("html5_onesie_live")&&J.loader&&!isNaN(J.loader.Aj);!J.videoData.isLivePlayback||J.videoData.vW>0&&!Qu(J.videoData)||K||F3(J)||(J.logger.debug("seek to head for live"),J.seekTo(Infinity,{E8:"videoplayer_readying",seekSource:18}),J.isBackground()&&(J.Y5=!0));ECF(J.Vw());J.logger.debug("finished readying playback"); J.publish("playbackready");ZS("pl_c",J.rN.timerName)||(J.rN.tick("pl_c"),Ws("pl_c",void 0,"video_to_ad"));ZS("pbr",J.rN.timerName)||(J.rN.tick("pbr"),Ws("pbr",void 0,"video_to_ad"))}else J.logger.debug("playback data not loaded")}; Ez=function(J,K){J.kY&&z0p(J);J.kY=new g.KG(K*1E3,0x7ffffffffffff);J.kY.namespace="endcr";J.addCueRange(J.kY)}; z0p=function(J){J.removeCueRange(J.kY);J.kY=null}; wZr=function(J,K,n,X,l){var x=J.Vw(l),V=J.videoData;V.Z=n;var v=g.hs(J);n=new wXf(V,n,K,v?v.itag:"",X);J.lx.experiments.sM("html5_refactor_sabr_video_format_selection_logging")?(n.videoId=l,J.Qm=n):x.qoe&&jtp(x.qoe,n);l=J.WH;l.Z=0;l.G=0;J.publish("internalvideoformatchange",V,K==="m")}; g.hs=function(J){var K=vY(J);return $K(K)||!J.Tn?null:g.ru(J.Tn.G.videoInfos,function(n){return K.U(n)})}; vY=function(J){if(J.Tn){var K=J.WH;var n=J.Tn;J=J.kB();var X=ip3(K);if($K(X)){if(X=PIr(K,n).compose(LWH(K,n)).compose(DSp(K,n)).compose(GPf(K,n.videoData)).compose(USq(K,n.videoData,n)).compose(V0(K,n)).compose(mSp(K,n)),$K(J)||K.J("html5_apply_pbr_cap_for_drm"))X=X.compose(pX3(K,n))}else K.J("html5_perf_cap_override_sticky")&&(X=X.compose(V0(K,n))),K.J("html5_ustreamer_cap_override_sticky")&&(X=X.compose(pX3(K,n)));X=X.compose(mSp(K,n));K=n.videoData.ZN.compose(X).compose(n.videoData.S8).compose(J)}else K= fI;return K}; Auk=function(J){var K=J.WH;J=J.videoData;var n=GPf(K,J);K.J("html5_disable_client_autonav_cap_for_onesie")||n.compose(USq(K,J));return n}; nW=function(J){if(J.videoData.X&&J.videoData.X.G){var K=vY(J);J.loader&&ckV(J.loader,K)}}; P8d=function(J){var K;return!!(J.J("html5_native_audio_track_switching")&&g.ut&&((K=J.videoData.Z)==null?0:NR(K)))}; IbU=function(J){if(!P8d(J))return!1;var K;J=(K=J.mediaElement)==null?void 0:K.audioTracks();return!!(J&&J.length>1)}; BEM=function(J){var K=iH7(J);if(K)return FgM(J.videoData.getAvailableAudioTracks().find(function(n){return n.Hw.getName()===K}))}; iH7=function(J){var K;if(J=(K=J.mediaElement)==null?void 0:K.audioTracks())for(K=0;K0&&(K.Pp=X.ze));K.RH=X.Da;K.rz=UV(n,{},X.X||void 0,lK(X));K.wQ=Xr(X)&&g.G_(n);xi(X)&&(K.nE=!0,n.J("html5_sabr_report_partial_segment_estimated_duration")&&(K.IJ=!0),K.G=!0,K.Fx=n.J("html5_sabr_enable_live_clock_offset"), K.h9=n.J("html5_disable_client_resume_policy_for_sabr"),K.Qd=n.J("html5_trigger_loader_when_idle_network"),K.qM=n.J("html5_sabr_parse_live_metadata_playback_boundaries"),K.bD=n.J("html5_enable_platform_backpressure_with_sabr"),K.pQ=n.J("html5_consume_onesie_next_request_policy_for_sabr"),K.FX=n.J("html5_sabr_report_next_ad_break_time"),K.Yf=n.J("html5_log_high_res_buffer_timeline")&&n.Pw(),K.gm=n.J("html5_remove_stuck_slices_beyond_max_buffer_limits"),K.Zz=n.J("html5_gapless_sabr_btl_last_slice")&& oT(X),K.mf=n.J("html5_reset_last_appended_slice_on_seek")&&oT(X),Qu(X)?(K.yD=!0,K.WJ=n.J("html5_estimate_partial_segment_duration"),K.XA=n.J("html5_disable_variability_tracker_for_live"),K.gQ=!0,n.J("html5_simplified_backup_timeout_sabr_live")&&(K.v1=!0,K.Nk=K.f$)):K.o5=n.J("html5_probe_request_on_sabr_request_progress"),K.VD=n.J("html5_serve_start_seconds_seek_for_post_live_sabr"),K.F2=n.J("html5_flush_index_on_updated_timestamp_offset"),K.K=xi(X),K.ih=n.J("html5_ignore_partial_segment_from_live_readahead"), n.J("html5_include_partial_segment_for_jumbo_ll")&&$i(X)&&(K.ih=!1),K.Pu=n.J("html5_use_buffer_health_for_readahead"),K.oK=n.J("html5_use_non_active_broadcast_for_post_live"),K.MQ=n.J("html5_use_centralized_player_time"),K.t8=n.J("html5_consume_onesie_sabr_seek"),K.QG=n.J("html5_enable_sabr_seek_loader_refactor"),K.uV=n.J("html5_update_segment_start_time_from_media_header"),X.enableServerStitchedDai&&(K.X=!0,K.FC=n.J("html5_reset_server_stitch_state_for_non_sabr_seek"),K.fG=n.J("html5_remove_ssdai_append_pause")&& !X.NH(),K.nH=n.J("html5_ssdai_log_ssevt_in_loader")),K.Eb=n.Pw()||X.NH());K.PM=g.DPe(X);ie(n.C,Bo.BITRATE)&&(K.OM=NaN);if(v=g.Qg(n.experiments,"html5_request_size_max_kb"))K.Cv=v*1024;n.C.X?K.nA="; "+Bo.EXPERIMENTAL.name+"=allowed":n.J("html5_enable_cobalt_tunnel_mode")&&(K.nA="; tunnelmode=true");v=X.serverPlaybackStartConfig;(v==null?0:v.enable)&&(v==null?0:v.playbackStartPolicy)&&(K.hd=!0,Zh(K,v.playbackStartPolicy,2));v=m8U(J);J.Ef.removeAll();a:{n=J.U8.Mm;if(X=J.videoData.videoId)if(l=n.G.get(X)){n.G.remove(X); n=l;break a}n=void 0}J.loader=new g.ao(J,J.lx.schedule,K,J.videoData.G,J.videoData.X,vY(J),v,J.videoData.enableServerStitchedDai,n,J.videoData.K);K=J.videoData.J("html5_disable_preload_for_ssdai_with_preroll")&&J.videoData.isLivePlayback&&J.SB()?!0:J.Qx&&g.Ig(J.lx)&&J.videoData.isLivePlayback;J.loader.initialize(J.getCurrentTime(),vY(J),K);J.videoData.probeUrl&&(J.loader.gQ=J.videoData.probeUrl);if(J.eY.length||J.Qx)J.videoData.cotn||QN(J,!1);gvd(J.b_,J.loader);J.tH&&(lc3(J.loader,new g.Er(J.tH)), J.Zm("sdai",{sdl:1}));g.WD(J.videoData)&&(J=J.loader,J.policy.VJ=J.policy.YP)}; ji=function(J){J.loader&&(J.loader.dispose(),J.loader=null,gvd(J.b_,null));J.QJ()?pZd(J):J.yP()}; pZd=function(J){if(J.tj)if(J.logger.debug("release media source"),J.ow(),J.tj.C)try{J.lx.Pw()&&J.Zm("rms",{l:"vprms",sr:J.QJ(),rs:AF(J.tj)});J.tj.clear();var K;(K=J.mediaElement)!=null&&(K.Z=J.tj);J.tj=null}catch(n){K=new g.qt("Error while clearing Media Source in VideoPlayer: "+n.name+", "+n.message),K=mx(K),J.handleError(K),J.yP()}else J.yP()}; LVq=function(J,K){K=K===void 0?!1:K;if(J.tj)return J.tj.X;J.logger.debug("update media source");a:{K=K===void 0?!1:K;try{g.ae()&&J.videoData.Ag()&&te3(J.mediaElement);var n=J.mediaElement.B6(J.mZ(),J.ZI())}catch(l){if(CI3(J.ER,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",l);J.xO("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}J.sf(n,!1,!1,K)}var X;return((X=J.B6())==null?void 0:X.X)||null}; TEH=function(J,K){K=K===void 0?!1:K;if(J.loader){J.videoData.enableServerStitchedDai&&S2M(J.loader);var n=J.getCurrentTime()-J.Ti();J.loader.seek(n,{X8:K}).FO(function(){})}else e0r(J)}; d87=function(J,K,n,X){n=n===void 0?!1:n;X=X===void 0?!1:X;if(J.tj&&(!K||J.tj===K)){J.logger.debug("media source opened");var l=J.getDuration();!l&&Qu(J.videoData)&&(l=25200);if(J.tj.isView){var x=l;J.logger.debug(function(){return"Set media source duration to "+x+", video duration "+l}); x>J.tj.getDuration()&&D8H(J,x)}else D8H(J,l);d2q(J.loader,J.tj,n,X);J.publish("mediasourceattached")}}; D8H=function(J,K){if(J.tj){J.tj.yL(K);var n;(n=J.loader)!=null&&n.policy.MQ&&(n.N=K)}}; G$V=function(J,K){wZr(J,K.reason,K.G.info,K.token,K.videoId)}; xv=function(J,K){J.publish("internalvideodatachange",K===void 0?"dataupdated":K,J.videoData)}; k4H=function(J){for(var K=g.z("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),n=K.next();!n.done;n=K.next())J.Gv.T(J.mediaElement,n.value,J.BU,J);J.lx.dV&&J.mediaElement.H5()&&(J.Gv.T(J.mediaElement,"webkitplaybacktargetavailabilitychanged",J.t_q,J),J.Gv.T(J.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",J.e54,J))}; cXr=function(J){g.Re(J.V0);gB3(J)||(J.V0=g.Oj(function(){return gB3(J)},100))}; gB3=function(J){var K=J.mediaElement;K&&J.Fv&&!J.videoData.PW&&!ZS("vfp",J.rN.timerName)&&K.X7()>=2&&!K.isEnded()&&$c(K.Ya())&&J.rN.tick("vfp");return(K=J.mediaElement)&&!J.videoData.PW&&K.getDuration()>0&&(K.isPaused()&&K.X7()>=2&&$c(K.Ya())&&(ZS("pbp",J.rN.timerName)||J.rN.tick("pbp"),!J.videoData.OY||J.VW||K.isSeeking()||(J.VW=!0,J.publish("onPlaybackPauseAtStart"))),K=K.getCurrentTime(),gi(J.Yc,K))?(J.r7(),!0):!1}; G4k=function(J){J.Vw().Tc();if(vD(J.videoData)&&Date.now()>J.t2+6283){if(!(!J.isAtLiveHead()||J.videoData.G&&Bu(J.videoData.G))){var K=J.Vw();if(K.qoe){K=K.qoe;var n=K.provider.dQ.xR(),X=g.qS(K.provider);vCk(K,X,n);n=n.X;isNaN(n)||g.SS(K,X,"e2el",[n.toFixed(3)])}}J.J("html5_alc_live_log_rawlat")?(K=J.videoData,K=g.wh(K.S())?!0:g.EM(K.S())?K.drmProduct==="6":!1):K=g.wh(J.lx);K&&J.Zm("rawlat",{l:Nc(J.HZ,"rawlivelatency").toFixed(3)});J.t2=Date.now()}J.videoData.Z&&NR(J.videoData.Z)&&(K=J.Lj())&&K.videoHeight!== J.NW&&(J.NW=K.videoHeight,wZr(J,"a",YUV(J,J.videoData.gQ)))}; YUV=function(J,K){if(K.G.video.quality==="auto"&&NR(K.getInfo())&&J.videoData.PM)for(var n=g.z(J.videoData.PM),X=n.next();!X.done;X=n.next())if(X=X.value,X.getHeight()===J.NW&&X.G.video.quality!=="auto")return X.getInfo();return K.getInfo()}; $8F=function(J){if(!vD(J.videoData))return NaN;var K=0;J.loader&&J.videoData.G&&(K=Qu(J.videoData)?J.loader.Gq.mW()||0:J.videoData.G.MQ);return(0,g.a)()/1E3-J.vM()-K}; twf=function(J){J.mediaElement&&J.mediaElement.Do()&&(J.nX=(0,g.a)());J.lx.xY?g.Ca(function(){U83(J)},0):U83(J)}; U83=function(J){var K;if((K=J.tj)==null||!K.ox()){if(J.mediaElement)try{J.ev=J.mediaElement.playVideo()}catch(X){VN(J,"err."+X)}if(J.ev){var n=J.ev;n.then(void 0,function(X){J.logger.debug(function(){return"playMediaElement failed: "+X}); if(!g.E(J.playerState,4)&&!g.E(J.playerState,256)&&J.ev===n)if(X&&X.name==="AbortError"&&X.message&&X.message.includes("load"))J.logger.debug(function(){return"ignore play media element failure: "+X.message}); else{var l="promise";X&&X.name&&(l+=";m."+X.name);VN(J,l);J.sj=!0;J.videoData.J7=!0}})}}}; VN=function(J,K){g.E(J.playerState,128)||(J.G4(vh(J.playerState,1028,9)),J.Zm("dompaused",{r:K}),J.publish("onAutoplayBlocked"))}; ob=function(J,K){K=K===void 0?!1:K;if(!J.mediaElement||!J.videoData.X)return!1;var n=K;n=n===void 0?!1:n;var X=null;var l;if((l=J.videoData.X)==null?0:l.G){X=LVq(J,n);var x;(x=J.loader)==null||x.resume()}else ji(J),J.videoData.gQ&&(X=J.videoData.gQ.nu());l=J.mediaElement.kN();n=!1;l&&l.equals(X)||(yXf(J,X),n=!0);g.E(J.playerState,2)||(X=J.b_,K=K===void 0?!1:K,X.C||!(X.X>0)||X.mediaElement&&X.mediaElement.getCurrentTime()>0||(K={E8:"seektimeline_resumeTime",X8:K},X.videoData.PW||(K.seekSource=15), X.seekTo(X.X,K)));a:{K=n;if(xi(J.videoData)){if(!J.videoData.wK())break a}else if(!g.HD(J.videoData))break a;if(J.mediaElement)if((X=J.videoData.C)&&J.mediaElement.H5()){l=g.U(J.mediaElement.xr());if(J.I9)if(l!==J.I9.element)$v(J);else if(K&&X.flavor==="fairplay"&&!F6())$v(J);else break a;if(J.J("html5_report_error_for_unsupported_tvos_widevine")&&F6()&&X.flavor==="widevine")J.xO("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{J.I9=new Jwp(l,J.videoData,J.lx); J.I9.subscribe("licenseerror",J.pw,J);J.I9.subscribe("qualitychange",J.PRA,J);J.I9.subscribe("heartbeatparams",J.Ue,J);J.I9.subscribe("keystatuseschange",J.NI,J);J.I9.subscribe("ctmp",J.Zm,J);K=g.z(J.Ef.keys);for(X=K.next();!X.done;X=K.next())X=J.Ef.get(X.value),J.I9.SE(X);J.J("html5_eme_loader_sync")||J.Ef.removeAll()}}else J.xO("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}return n}; yXf=function(J,K){J.rN.tick("vta");Ws("vta",void 0,"video_to_ad");J.getCurrentTime()>0&&UGr(J.b_,J.getCurrentTime());J.mediaElement.activate(K);J.tj&&oB(4);!J.videoData.PW&&J.playerState.isOrWillBePlaying()&&J.Ua.start();if(P8d(J)){var n;if(K=(n=J.mediaElement)==null?void 0:n.audioTracks())K.onchange=function(){J.publish("internalaudioformatchange",J.videoData,!0)}}}; $v=function(J){J.I9&&(J.I9.dispose(),J.I9=null)}; ZHM=function(J){var K=K===void 0?!1:K;J.logger.debug("reattachVideoSource");J.mediaElement&&(J.tj?($v(J),J.yP(),LVq(J,K)):(J.videoData.gQ&&J.videoData.gQ.Ou(),J.mediaElement.stopVideo()),J.playVideo())}; fbd=function(J,K){J.lx.J("html5_log_rebuffer_reason")&&(K={r:K,lact:BC()},J.mediaElement&&(K.bh=nh(J.mediaElement)),J.Zm("bufreason",K))}; WV3=function(J,K){if(J.lx.Pw()&&J.mediaElement){var n=J.mediaElement.FK();n.omt=(J.mediaElement.getCurrentTime()+J.Ti()).toFixed(3);n.ps=J.playerState.state.toString(16);n.rt=(TH(J.Vw())*1E3).toFixed();n.e=K;J.Tf[J.aA++%5]=n}try{if(K==="timeupdate"||K==="progress")return}catch(X){}J.logger.debug(function(){return"video element event "+K})}; abk=function(J){if(J.lx.Pw()){J.Tf.sort(function(X,l){return+X.rt-+l.rt}); for(var K=g.z(J.Tf),n=K.next();!n.done;n=K.next())n=n.value,J.Zm("vpe",Object.assign({t:n.rt},n));J.Tf=[];J.aA=0}}; FV8=function(J){if(g.fa("cobalt")&&g.fa("nintendo switch")){var K=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;J.Zm("nxdock",{d:K})}}; QN=function(J,K){var n;(n=J.loader)==null||F0(n,K)}; OHd=function(J){Fr(J.videoData,"html5_set_debugging_opt_in")&&(J=g.yT(),g.Z0(0,183)||(WB(183,!0),J.save()))}; rnd=function(J,K){J.U8.XI()||(J.Zm("sgap",{f:K}),J.U8.clearQueue(!1,K==="pe"))}; F3=function(J){return J.J("html5_disable_video_player_initiated_seeks")&&xi(J.videoData)}; qUF=function(J){bo.call(this,J);var K=this;this.events=new g.gY(J);g.Z(this,this.events);jM(this.api,"isLifaAdPlaying",function(){return K.api.isLifaAdPlaying()}); this.events.T(J,"serverstitchedvideochange",function(){var n;(n=K.api.getVideoData())!=null&&n.NH()&&(K.api.isLifaAdPlaying()?(K.playbackRate=K.api.getPlaybackRate(),K.api.setPlaybackRate(1)):K.api.setPlaybackRate(K.playbackRate))}); this.playbackRate=1}; EBr=function(J){bo.call(this,J);var K=this;this.events=new g.gY(J);g.Z(this,this.events);jM(this.api,"seekToChapterWithAnimation",function(n){K.seekToChapterWithAnimation(n)}); jM(this.api,"seekToTimeWithAnimation",function(n,X){K.seekToTimeWithAnimation(n,X)}); jM(this.api,"renderChapterSeekingAnimation",function(n,X,l){K.api.renderChapterSeekingAnimation(n,X,l)}); jM(this.api,"setMacroMarkers",function(n){K.setMacroMarkers(J,n)}); jM(this.api,"changeMarkerVisibility",function(n,X,l){K.changeMarkerVisibility(n,X,l)}); jM(this.api,"isSameMarkerTypeVisible",function(n){return K.isSameMarkerTypeVisible(n)})}; bH7=function(J,K,n){var X=J.api.getCurrentTime()*1E30&&l>0&&(n.width+=l,g.c7(K.element,"width",n.width+"px")));J.size=n}}; g.mU=function(J,K){var n=J.G[J.G.length-1];n!==K&&(J.G.push(K),zNM(J,n,K))}; g.pW=function(J){if(!(J.G.length<=1)){var K=J.G.pop(),n=J.G[0];J.G=[n];zNM(J,K,n,!0)}}; zNM=function(J,K,n,X){wvq(J);K&&(K.unsubscribe("size-change",J.bV,J),K.unsubscribe("back",J.KA,J));n.subscribe("size-change",J.bV,J);n.subscribe("back",J.KA,J);if(J.Kv){g.jv(n.element,X?"ytp-panel-animate-back":"ytp-panel-animate-forward");n.qQ(J.element);n.focus();J.element.scrollLeft=0;J.element.scrollTop=0;var l=J.size;eNU(J);g.Fo(J.element,l);J.N=new g.AT(function(){PaF(J,K,n,X)},20,J); J.N.start()}else n.qQ(J.element),K&&K.detach()}; PaF=function(J,K,n,X){J.N.dispose();J.N=null;g.jv(J.element,"ytp-popup-animating");X?(g.jv(K.element,"ytp-panel-animate-forward"),g.hv(n.element,"ytp-panel-animate-back")):(g.jv(K.element,"ytp-panel-animate-back"),g.hv(n.element,"ytp-panel-animate-forward"));g.Fo(J.element,J.size);J.W=new g.AT(function(){g.hv(J.element,"ytp-popup-animating");K.detach();g.vM(K.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);J.W.dispose();J.W=null},250,J); J.W.start()}; wvq=function(J){J.N&&g.N0(J.N);J.W&&g.N0(J.W)}; LW=function(J){g.BY.call(this,J,"ytp-shopping-product-menu");this.Dh=new g.Ib(this.B);g.Z(this,this.Dh);this.hide();g.mU(this,this.Dh);g.dv(this.B,this.element,4)}; iF8=function(J,K,n){var X,l=K==null?void 0:(X=K.text)==null?void 0:X.simpleText;l&&(n=I4k(J,n,l,K==null?void 0:K.icon,K==null?void 0:K.secondaryIcon),K.navigationEndpoint&&n.listen("click",function(){J.B.I4("innertubeCommand",K.navigationEndpoint);J.hide()},J))}; BM3=function(J,K,n){var X,l=K==null?void 0:(X=K.text)==null?void 0:X.simpleText;l&&I4k(J,n,l,K==null?void 0:K.icon).listen("click",function(){var x;(K==null?void 0:(x=K.icon)==null?void 0:x.iconType)==="HIDE"?J.B.publish("featuredproductdismissed"):K.serviceEndpoint&&J.B.I4("innertubeCommand",K.serviceEndpoint);J.hide()},J)}; I4k=function(J,K,n,X,l){K=new g.at(g.FR({},[],!1,!!l),K,n);l&&K.updateValue("secondaryIcon",m$k(l));K.setIcon(m$k(X));g.Z(J,K);J.Dh.qH(K,!0);return K}; m$k=function(J){if(!J)return null;switch(J.iconType){case "ACCOUNT_CIRCLE":return{j:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},Y:[{j:"path",D:{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{j:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},Y:[{j:"path",D:{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 IAq();case "HIDE":return{j:"svg",D:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},Y:[{j:"g",Y:[{j:"path",D:{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 iC()}}; Tc=function(J){wd.call(this,J,!1,!0);this.isCounterfactual=this.Z=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.L=!0;this.overflowButton=new g.F({j:"button",UM:["ytp-featured-product-overflow-icon","ytp-button"],D:{"aria-haspopup":"true"}});this.overflowButton.hide();g.Z(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.F({j:"img",V:"ytp-suggested-action-badge-img",D:{src:"{{url}}"}}); this.thumbnailImage.hide();g.Z(this,this.thumbnailImage);this.thumbnailIcon=new g.F({j:"div",V:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.Z(this,this.thumbnailIcon);this.banner=new g.F({j:"a",V:"ytp-suggested-action-container",Y:[this.thumbnailImage,this.thumbnailIcon,{j:"div",V:"ytp-suggested-action-details",Y:[{j:"text",V:"ytp-suggested-action-title",hj:"{{title}}"},{j:"text",V:"ytp-suggested-action-subtitle",hj:"{{subtitle}}"},{j:"text",V:"ytp-suggested-action-metadata-text", hj:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.Z(this,this.banner);this.banner.qQ(this.X.element);this.T(this.B,"videodatachange",this.onVideoDataChange);this.T(this.B,g.o4("suggested_action_view_model"),this.iUv);this.T(this.B,g.XD("suggested_action_view_model"),this.Erj);this.T(this.overflowButton.element,"click",this.cD);this.T(J,"featuredproductdismissed",this.ob);this.B.createServerVe(this.banner.element,this.banner,!0)}; pvp=function(J){J.isInitialized&&(J.enabled=J.isVisible,J.QG=J.isVisible,zc(J),J.LJ(),J.thumbnailImage.Yr(J.isVisible),J.shouldHideDismissButton||J.dismissButton.Yr(J.isVisible),J.shouldShowOverflowButton&&J.overflowButton.Yr(J.isVisible))}; Du=function(){Tc.apply(this,arguments)}; LlH=function(J){bo.call(this,J);this.G=new Du(this.api);g.Z(this,this.G);g.dv(this.api,this.G.element,4)}; dd=function(J){bo.call(this,J);var K=this;this.Z="";this.G=!0;this.X=this.api.J("html5_enable_audio_track_stickiness_phase_two");var n=new g.gY(J);g.Z(this,n);n.T(J,"internalaudioformatchange",function(X,l){TMr(K,X,l)}); n.T(J,"videoplayerreset",function(){D$3(K)}); n.T(J,"videodatachange",function(X,l){K.onVideoDataChange(X,l)})}; TMr=function(J,K,n){if(n){var X="";if(d$k(J,K)){X=K;J.X||(J.Z=K);if(n=J.api.getVideoData(void 0,!0))n.Yk=K;J.api.S().Dm=K}if(J.X&&X&&k8p(J,X)){S3e(J.api,J.Z||X);var l;O3(xY(J.api.S(),(l=J.api.getVideoData())==null?void 0:g.Yi(l)),function(x){gWU(J,X,x)})}}}; D$3=function(J){if(J.Z)cIV(J);else{var K;if(J.X&&((K=bX())==null?0:K.size)){var n;O3(xY(J.api.S(),(n=J.api.getVideoData())==null?void 0:g.Yi(n)),function(X){if((X=YF8(X))&&k8p(J,X)){var l=J.api.getVideoData(void 0,!0);l&&(l.Yk=X);J.api.S().Dm=X}})}}}; cIV=function(J){var K=J.api.getVideoData(void 0,!0);K&&(K.Yk=J.Z)}; gWU=function(J,K,n){YF8(n)!==K&&(G8q([{settingItemId:kv(n),settingOptionValue:{stringValue:K}}]),O3(J.Jd(),function(X){sZF(X,kv(n),{stringValue:K})}))}; U$8=function(J,K){HG(O3(O3(J.Jd(),function(n){return Smf(n,[kv(K)])}),function(n){if(n){n=g.z(n); for(var X=n.next();!X.done;X=n.next()){var l=X.value;X=l.key;l=l.value;X&&l&&(G8q([{settingItemId:X,settingOptionValue:l}]),D$3(J))}}}),function(){J.G=!0})}; d$k=function(J,K){J=J.api.getAvailableAudioTracks();J=g.z(J);for(var n=J.next();!n.done;n=J.next())if(n=n.value,n.getLanguageInfo().getId()===K)return n;return null}; YF8=function(J){J=kv(J);var K=bX();J=K?K.get(J):void 0;return J&&J.stringValue?J.stringValue:""}; kv=function(J){var K=(484).toString();J&&(K=(483).toString());return K}; k8p=function(J,K){var n;return K.split(".")[0]!==""&&((n=J.api.getVideoData())==null?void 0:!tk(n))}; G8q=function(J){var K=bX();K||(K=new Map);J=g.z(J);for(var n=J.next();!n.done;n=J.next())n=n.value,K.set(n.settingItemId,n.settingOptionValue);K=JSON.stringify(Object.fromEntries(K));g.kF("yt-player-user-settings",K,2592E3)}; g.gd=function(J,K,n,X,l,x,V){g.at.call(this,g.FR({"aria-haspopup":"true"}),K,J);this.Zv=X;this.L=!1;this.X=null;this.options={};this.Z=new g.Ib(n,void 0,J,l,x,V);g.Z(this,this.Z);this.listen("keydown",this.Mv);this.listen("click",this.open)}; tKf=function(J){if(J.X){var K=J.options[J.X];K.element.getAttribute("aria-checked");K.element.setAttribute("aria-checked","false");J.X=null}}; yI3=function(J,K){g.gd.call(this,"Sleep timer",g.hf.SLEEP_TIMER,J,K);this.B=J;this.K={};this.N=this.FM("Off");this.W=this.G="";J.J("web_settings_menu_icons")&&this.setIcon({j:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},Y:[{j:"path",D:{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.U=new g.F({j:"div",UM:["ytp-menuitem-label-wrapper"],Y:[{j:"div",hj:"End of video"},{j:"div",UM:["ytp-menuitem-sublabel"],hj:"{{content}}"}]});g.Z(this,this.U);this.listen("click",this.onClick);this.T(J,"videodatachange",this.onVideoDataChange);this.T(J,"presentingplayerstatechange",this.WW);this.T(J,"settingsMenuVisibilityChanged",this.ZEm);J.createClientVe(this.element,this,218889);this.WW();this.B.I4("onSleepTimerFeatureAvailable")}; ZFU=function(J){var K="Off 10 15 20 30 45 60".split(" "),n;((n=J.B.getVideoData())==null?0:n.isLivePlayback)||K.push("End of video");n=J.B.getPlaylist();var X;n&&((X=n.listId)==null?void 0:X.type)!=="RD"&&K.push("End of playlist");J.AL(g.ff(K,J.FM));J.K=g.GO(K,J.FM,J);K=J.FM("End of video");J.options[K]&&g.W4(J.options[K],J.U)}; f4H=function(J,K){var n=J.K[K],X=n==="End of video"||n==="End of playlist";n==="Off"&&(J.G="");J.B.getPlayerState()!==0&&J.B.getPlayerState()!==5||!X?(J.N=K,g.gd.prototype.x7.call(J,K),J.Oy(K),J.B.I4("onSleepTimerSettingsChanged",n)):J.B.I4("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"Video has already ended"}}}}})}; cY=function(J){bo.call(this,J);var K=this;J.addEventListener("settingsMenuInitialized",function(){K.menuItem||(K.menuItem=new yI3(K.api,K.api.NB()),g.Z(K,K.menuItem))}); J.addEventListener("openSettingsMenuItem",function(n){if(n==="menu_item_sleep_timer"){if(!K.menuItem){var X;(X=K.api.NB())==null||X.HM()}K.menuItem.open()}}); jM(J,"resetSleepTimerMenuSettings",function(){K.resetSleepTimerMenuSettings()}); jM(J,"setSleepTimerTimeLeft",function(n){K.setSleepTimerTimeLeft(n)}); jM(J,"setVideoTimeLeft",function(n){K.setVideoTimeLeft(n)})}; WlU=function(J){bo.call(this,J);var K=this;this.events=new g.gY(J);g.Z(this,this.events);this.events.T(J,"onSnackbarMessage",function(n){switch(n){case 1:n=K.api.getPlayerStateObject(),n.isBuffering()&&g.E(n,8)&&g.E(n,16)&&K.api.I4("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.Gc=function(J,K,n,X,l){K=K===void 0?!1:K;X=X===void 0?!1:X;l=l===void 0?!1:l;g.hi.call(this);this.K=l;this.W=!1;this.U=new mG(this);this.C=this.N=null;this.X=this.Z=!1;g.Z(this,this.U);this.target=J;this.G=K;this.L=n||J;this.W=X;K&&(g.qE&&this.target.setAttribute("draggable","true"),l||(this.target.style.touchAction="none"));Yv(this)}; Uc=function(J){g.L0(J.U,!J.G)}; Yv=function(J){J.C=null;J.N=null;J.T(ts("over"),J.WX);J.T("touchstart",J.zC);J.G&&J.T(ts("down"),J.j4W)}; a4V=function(J,K){for(var n=0;nl.start&&n>=5;w+=B}O=w.substr(0,4)+" "+w.substr(4,4)+" "+w.substr(8,4)+" "+(w.substr(12,4)+" "+w.substr(16,4))}else O="";V={video_id_and_cpn:String(K.videoId)+" / "+O,codecs:"",dims_and_frames:"",bandwidth_kbps:V.toFixed(0)+" Kbps",buffer_health_seconds:Q.toFixed(2)+ " s",date:""+(new Date).toString(),drm_style:S?"":"display:none",drm:S,debug_info:n,extra_debug_info:"",bandwidth_style:C,network_activity_style:C,network_activity_bytes:v.toFixed(0)+" KB",shader_info:r,shader_info_style:r?"":"display:none",playback_categories:""};v=X.clientWidth+"x"+X.clientHeight+(l>1?"*"+l.toFixed(2):"");Q="-";x.totalVideoFrames&&(Q=(x.droppedVideoFrames||0)+" dropped of "+x.totalVideoFrames);V.dims_and_frames=v+" / "+Q;J=J.getVolume();v=TXf(K);var k;if((k=K.U)==null?0:k.audio.Z)k= "VB";else{var c;k=((c=K.U)==null?0:c.audio.G)?"DRC":Math.round(J*v)+"%"}c=Math.round(J)+"% / "+k;k=K.Nk.toFixed(1);isFinite(Number(k))&&(c+=" (content loudness "+k+"dB)");V.volume=c;V.resolution=X.videoWidth+"x"+X.videoHeight;if(X=K.Z){if(c=X.video)k=c.fps,k>1&&(V.resolution+="@"+k),(k=x.Cc)&&k.video&&(V.resolution+=" / "+k.video.width+"x"+k.video.height,k.video.fps>1&&(V.resolution+="@"+k.video.fps)),V.codecs=MKV(X),!K.U||X.audio&&X.video?X.gh&&(V.codecs+=" / "+X.gh+"A"):V.codecs+=" / "+MKV(K.U), c.G||c.primaries?(k=c.G||"unknown",k==="smpte2084"?k+=" (PQ)":k==="arib-std-b67"&&(k+=" (HLG)"),V.color=k+" / "+(c.primaries||"unknown"),V.color_style=""):V.color_style="display:none";if(X.debugInfo)for(V.fmt_debug_info="",X=g.z(X.debugInfo),c=X.next();!c.done;c=X.next())c=c.value,V.fmt_debug_info+=c.label+":"+c.text+" ";V.fmt_debug_info_style=V.fmt_debug_info&&V.fmt_debug_info.length>0?"":"display:none"}X=K.isLivePlayback;c=K.q_;V.live_mode_style=X||c?"":"display:none";V.live_latency_style=X?"": "display:none";if(c)V.live_mode="Post-Live"+(Qu(K)?" Manifestless":"");else if(X){c=x.LM;V.live_latency_secs=c.toFixed(2)+"s";X=Qu(K)?"Manifestless, ":"";K.GA&&(X+="Windowed, ");k="Uncertain";if(c>=0&&c<120)if(K.latencyClass&&K.latencyClass!=="UNKNOWN")switch(K.latencyClass){case "NORMAL":k="Optimized for Normal Latency";break;case "LOW":k="Optimized for Low Latency";break;case "ULTRALOW":k="Optimized for Ultra Low Latency";break;default:k="Unknown Latency Setting"}else k=K.isLowLatencyLiveStream? "Optimized for Low Latency":"Optimized for Smooth Streaming";X+=k;(c=x.yW)&&(X+=", seq "+c.sequence);V.live_mode=X}!x.isGapless||oT(K)&&x.XI||(V.playback_categories+="Gapless ");V.playback_categories_style=V.playback_categories?"":"display:none";V.bandwidth_samples=x.SS;V.network_activity_samples=x.HE;V.live_latency_samples=x.zE;V.buffer_health_samples=x.hK;x=g.WD(K);if(K.cotn||x)V.cotn_and_local_media=(K.cotn?K.cotn:"null")+" / "+x;V.cotn_and_local_media_style=V.cotn_and_local_media?"":"display:none"; Fr(K,"web_player_release_debug")?(V.release_name=h[69],V.release_style=""):V.release_style="display:none";V.debug_info&&H.length>0&&V.debug_info.length+H.length<=60?V.debug_info+=" "+H:V.extra_debug_info=H;V.extra_debug_info_style=V.extra_debug_info&&V.extra_debug_info.length>0?"":"display:none";return V}; MKV=function(J){var K=/codecs="([^"]*)"/.exec(J.mimeType);return K&&K[1]?K[1]+" ("+J.itag+")":J.itag}; qG=function(J,K,n,X,l){g.F.call(this,{j:"div",V:"ytp-horizonchart"});this.W=K;this.sampleCount=n;this.U=X;this.N=l;this.index=0;this.heightPx=-1;this.X=this.Z=null;this.G=Math.round(J/n);this.element.style.width=this.G*this.sampleCount+"px";this.element.style.height=this.W+"em"}; Ec=function(J,K){if(J.heightPx===-1){var n=null;try{n=g.U(g.ME("CANVAS")),J.Z=n.getContext("2d")}catch(v){}if(J.Z){var X=J.G*J.sampleCount;J.X=n;J.X.width=X;J.X.style.width=X+"px";J.element.appendChild(J.X)}else for(J.sampleCount=Math.floor(J.sampleCount/4),J.G*=4,n=0;n1?2:1,J.X.height=J.heightPx*n, J.X.style.height=J.heightPx+"px",J.Z.scale(1,n)));K=g.z(K);for(X=K.next();!X.done;X=K.next()){n=J;var l=J.index,x=X.value;for(X=0;X+20&&g.Kf(K.X.element);X.classList.add("ytp-timely-actions-overlay");K.X.element.appendChild(X)}); g.Z(this,this.X);g.dv(this.api,this.X.element,4)}; r0H=function(J){J.timelyActions&&(J.U=J.timelyActions.reduce(function(K,n){if(n.cueRangeId===void 0)return K;K[n.cueRangeId]=0;return K},{}))}; JX=function(J,K){if(J.timelyActions){J=g.z(J.timelyActions);for(var n=J.next();!n.done;n=J.next())if(n=n.value,n.cueRangeId===K)return n}}; s_H=function(J,K){if((J=JX(J,K))&&J.onCueRangeExit)return Um(J.onCueRangeExit)}; NG=function(J){if(J.G!==void 0){var K=(K=JX(J,J.G))&&K.onCueRangeEnter?Um(K.onCueRangeEnter):void 0;var n=JX(J,J.G);a:if(n&&n.additionalTrigger){var X=g.z(n.additionalTrigger);for(var l=X.next();!l.done;l=X.next())if(l=l.value,l.type){var x=void 0,V=void 0;if((x=J.QG[l.type])==null?0:x((V=l.args)!=null?V:{})){X=!0;break a}}X=!1}else X=!0;K&&X&&(J.api.I4("innertubeCommand",K),J.setTimeout(n),J.U[J.G]!==void 0&&J.U[J.G]++,J.L=!0)}}; vZf=function(J,K){return J.Z===void 0?!1:K.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(K.seekLengthMilliseconds)===5E3?J.Z===72:K.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(K.seekLengthMilliseconds)===1E4?J.Z===74:K.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(K.seekLengthMilliseconds)===5E3?J.Z===71:K.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(K.seekLengthMilliseconds)===1E4?J.Z===73:!1}; Q_e=function(J){if(J=J.getWatchNextResponse()){var K,n;J=(K=J.playerOverlays)==null?void 0:(n=K.playerOverlayRenderer)==null?void 0:n.timelyActionsOverlayViewModel;K=g.f(J,Cpf);if(K!=null&&K.timelyActions)return K==null?void 0:K.timelyActions.map(function(X){return g.f(X,Otp)}).filter(function(X){return!!X})}}; Ht8=function(J){bo.call(this,J);var K=this;V3(this.api,"getPlaybackRate",function(){return K.api.getPlaybackRate()}); V3(this.api,"setPlaybackRate",function(n){typeof n==="number"&&K.api.setPlaybackRate(n)})}; KH=function(J,K,n,X){oI.call(this,"VOICE_BOOST",g.hf.Wd);this.G=!1;this.B=J;this.Zv=J.NB();this.U=K;this.X=n;this.hasVoiceBoostAudioTrack=X;this.T(J,"videodatachange",this.Z);this.setIcon(DHU());this.subscribe("select",this.N,this);this.Z()}; nH=function(J){bo.call(this,J);var K=this;this.events=new g.gY(J);g.Z(this,this.events);this.events.T(J,"settingsMenuInitialized",function(){RKd(K)}); jM(this.api,"getVoiceBoostUserPreference",function(){return K.getVoiceBoostUserPreference()}); jM(this.api,"setVoiceBoostUserPreference",function(X){K.setVoiceBoostUserPreference(X)}); jM(this.api,"hasVoiceBoostAudioTrack",function(){return K.hasVoiceBoostAudioTrack()}); var n;this.G=(n=JD8())!=null?n:0;this.updateEnvironmentData()}; RKd=function(J){J.menuItem||(J.menuItem=new KH(J.api,function(K){J.setVoiceBoostUserPreference(K)},function(){return J.getVoiceBoostUserPreference()},function(){return J.hasVoiceBoostAudioTrack()}),g.Z(J,J.menuItem))}; ugf=function(J){J=J.M_();if(!J)return!1;J=g.l9(J).exp||"";return J.includes("xpv")||J.includes("xpe")}; eKf=function(J){J=g.z(g.oC(J,!0));for(var K=J.next();!K.done;K=J.next())if(ugf(K.value))return!0;return!1}; zKM=function(J,K){J=g.z(g.oC(J,!0));for(var n=J.next();!n.done;n=J.next())if(n=n.value,ugf(n)){var X={potc:"1",pot:K};n.url&&(n.url=xA(n.url,X))}}; wS8=function(J){return g.G(function(K){if(K.Z==1)return g.e8(K,2),g.d(K,J,4);if(K.Z!=2)return g.Ir(K,0);g.mk(K);g.uF(K)})}; l8=function(J){bo.call(this,J);var K=this;this.useLivingRoomPoToken=!1;this.C=new g.Sg;this.G=!1;this.rN=null;this.L=!1;this.U=null;this.N=!1;var n=J.S().getWebPlayerContextConfig();this.events=new g.gY(J);g.Z(this,this.events);this.events.T(J,"spsumpreject",function(X,l,x){K.N=l;X&&K.L&&!K.U&&(K.J("html5_generate_content_po_token")&&x?K.qf(x):K.J("html5_generate_session_po_token")&&Ppe(K));K.U||K.api.Zm("stp",{s:+K.L,b:+K.N})}); this.events.T(J,"poTokenVideoBindingChange",function(X){K.qf(X)}); this.useLivingRoomPoToken=!(n==null||!n.useLivingRoomPoToken);J.addEventListener("csiinitialized",function(){K.rN=J.lH();var X=(K.J("html5_generate_session_po_token")||K.J("html5_generate_content_po_token"))&&!K.useLivingRoomPoToken;try{if(K.J("html5_use_shared_owl_instance"))If8(K);else if(X){K.rN.Zd("pot_isc");var l=g.Qg(K.api.S().experiments,"html5_webpo_kaios_defer_timeout_ms");l?(K.X=UL(),g.Ca(function(){X8(K)},l)):K.J("html5_webpo_idle_priority_job")?(K.X=UL(),g.Nt(g.K6(),function(){X8(K)})): X8(K)}}catch(x){x instanceof Error&&g.gG(x)}}); J.addEventListener("trackListLoaded",this.Wh.bind(this));J.Zw(this)}; itF=function(J){var K=om(J.experiments,"html5_web_po_request_key");return K?K:g.Ig(J)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; BFU=function(J){var K=new v0e,n={},X=(n["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",n);return new RU(K,J,function(){return X})}; m43=function(J){return new uJ(J)}; xB=function(J,K){J.J("html5_webpo_bge_ctmp")&&J.api.Zm(K,{hwpo:!!J.Z,hwpor:J.G})}; If8=function(J){var K,n;g.G(function(X){if(X.Z==1)return xB(J,"swpo_i"),J.X=UL(),jw(J),g.d(X,xu(),2);if(X.Z!=3)return K=X.G,xB(J,"swpo_co"),g.d(X,tUq(K),3);n=X.G;J.J("html5_web_po_token_disable_caching")||n.xs(150);J.Z=n;xB(J,"swpo_cc");wS8(n.Lf()).then(function(){J.G=!0;J.C.resolve();xB(J,"swpo_re")}); g.Ca(function(){X8(J);xB(J,"swpo_si")},0); g.uF(X)})}; Lmf=function(J){var K=J.api.S(),n=BFU(itF(K)),X=n.IX.bind(n);n.IX=function(v){var Q;return g.G(function(S){if(S.Z==1)return g.d(S,X(v),2);Q=S.G;J.api.Zm("itr",{});return S.return(Q)})}; try{var l=m43({Nq:n,SX:{maxAttempts:5},Ki:{Y6:"CLEn",disable:K.experiments.sM("html5_web_po_disable_remote_logging")||pSk.includes(g.PH(K.jz)||""),NC:aOe(K.experiments),qM5:J.J("wpo_dis_lfdms")?0:1E3},rxF:g.gG});var x=new YQ({fE:l,Nq:n,onError:g.gG});wS8(x.Lf()).then(function(){J.G=!0;J.C.resolve()}); J.J("html5_web_po_token_disable_caching")||x.xs(150);g.Z(J,l);g.Z(J,x);J.Z=x}catch(v){g.gG(v);var V;(V=l)==null||V.dispose()}}; X8=function(J){var K=J.api.S();J.rN.Zd("pot_ist");J.Z||Lmf(J);J.J("html5_bandaid_attach_content_po_token")||(J.J("html5_generate_session_po_token")&&(jw(J),Ppe(J)),K=g.Qg(K.experiments,"html5_session_po_token_interval_time_ms")||0,K>0&&(J.W=g.Oj(function(){jw(J)},K)),J.L=!0)}; jw=function(J){var K,n,X,l;g.G(function(x){if(!J.J("html5_generate_session_po_token")||J.useLivingRoomPoToken)return x.return();K=J.api.S();n=g.Et("EOM_VISITOR_DATA")||g.Et("VISITOR_DATA");X=K.O3?K.datasyncId:n;l=om(K.experiments,"html5_mock_content_binding_for_session_token")||K.livingRoomPoTokenId||X;K.Pp=V5(J,l);g.uF(x)})}; V5=function(J,K){if(!J.Z){if(J.X)try{return J.X(K)}catch(x){g.gG(x)}return""}try{J.rN.Zd(J.G?"pot_cms":"pot_csms");var n={PE:!0,oN:!0,b$:K};J.J("html5_web_po_token_disable_caching")||(n.rJ={Rf:K,Th:!0,QY:!0});var X=J.Z.x_(n);J.rN.Zd(J.G?"pot_cmf":"pot_csmf");if(J.G){var l;(l=J.U)==null||l.resolve();J.U=null;J.N&&(J.N=!1,J.api.app.a4().Co(!1))}return X}catch(x){return g.gG(x),""}}; Ppe=function(J){J.Z&&(J.U=new Nb,J.C.promise.then(function(){J.rN.Zd("pot_if");jw(J)}))}; hX=function(J){bo.call(this,J);var K=this,n=new g.gY(J);g.Z(this,n);n.T(J,"fullscreentoggled",function(X){TF3(K,X)}); jM(this.api,"setFullscreenQuickActions",function(X){K.setFullscreenQuickActions(X)}); jM(this.api,"setPlayerOverlayVideoDetailsRenderer",function(X){K.setPlayerOverlayVideoDetailsRenderer(X)})}; TF3=function(J,K){J.G&&g.Ei(J.G,K);J.playerOverlayVideoDetailsRenderer&&g.Ei(J.playerOverlayVideoDetailsRenderer,K)}; D47=function(J){bo.call(this,J);var K=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.gY(J);g.Z(this,this.events);this.events.T(J,"heartbeatRequest",function(n){if(K.freePreviewUsageDetails.length||K.freePreviewWatchedDuration!==null)n.heartbeatRequestParams||(n.heartbeatRequestParams={}),n.heartbeatRequestParams.unpluggedParams||(n.heartbeatRequestParams.unpluggedParams={}),K.freePreviewUsageDetails.length>0?n.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= K.freePreviewUsageDetails:n.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+K.freePreviewWatchedDuration}}); jM(J,"setFreePreviewWatchedDuration",function(n){K.freePreviewWatchedDuration=n}); jM(J,"setFreePreviewUsageDetails",function(n){K.freePreviewUsageDetails=n})}; vZ=function(J){g.t.call(this);this.features=[];var K=this.G,n=new P0(J),X=new An(J),l=new CW(J),x=new l8(J);var V=g.wh(J.S())?void 0:new Os(J);var v=new sc(J),Q=new nZq(J),S=new Ht8(J),r=new wa(J);var C=g.wh(J.S())?new D47(J):void 0;var O=J.J("html5_enable_ssap")?new AIf(J):void 0;var H=J.J("web_cinematic_watch_settings")&&(H=J.S().getWebPlayerContextConfig())!=null&&H.cinematicSettingsAvailable?new $3(J):void 0;var R=new zY(J);var w=J.J("enable_courses_player_overlay_purchase")?new Wee(J):void 0; var P=g.AS(J.S())?new tb3(J):void 0;var B=new H0(J);var p=J.S().U?new k73(J):void 0;var k=g.pR(J.S())?new dIF(J):void 0;var c=J.J("web_player_move_autonav_toggle")&&J.S().zL?new IXe(J):void 0;var y=g.AS(J.S())?new EBr(J):void 0;var A=J.J("web_enable_speedmaster")&&g.AS(J.S())?new fW(J):void 0;var q=J.S().Yk?void 0:new hK3(J);var or=J.J("report_pml_debug_signal")?new e8d(J):void 0;var lF=new VK3(J),J7=new uV(J);var h7=g.G_(J.S())?new HF3(J):void 0;var M=navigator.mediaSession&&window.MediaMetadata&& J.S().tv?new Si(J):void 0;var zM=J.J("html5_enable_drc")&&!J.S().N?new CA(J):void 0;var B3=new N3(J);var fU=g.AS(J.S())?new LlH(J):void 0;var IH=J.J("html5_enable_d6de4")?new Oc(J):void 0;var hj=g.AS(J.S())&&J.J("web_sleep_timer")?new cY(J):void 0;var pU=g.pR(J.S())?new ct3(J):void 0;var iF=new dd(J),lG=new Le8(J),I=new qUF(J);var VV=J.J("enable_sabr_snackbar_message")?new WlU(J):void 0;var FS=J.J("web_enable_timely_actions")?new Swq(J):void 0;var zR=new Sc(J);var pn=g.AS(J.S())?new hX(J):void 0; J=J.J("html5_enable_voice_boost")?new nH(J):void 0;K.call(this,n,X,l,x,V,v,Q,S,r,C,O,H,R,w,P,B,p,k,c,y,A,q,or,lF,J7,h7,void 0,M,zM,B3,void 0,fU,IH,hj,pU,void 0,iF,lG,I,void 0,VV,FS,zR,pn,J)}; d4q=function(){this.Z=this.G=NaN}; ky8=function(J,K){this.lx=J;this.timerName="";this.X=!1;this.Z=NaN;this.U=new d4q;this.G=K||null;this.X=!1}; gZ3=function(J,K,n){var X=g.gz(K.ix)&&!K.ix.N;if(K.ix.OY&&(Tx(K.ix)||K.ix.MQ==="shortspage"||nI(K.ix)||X)&&!J.X){J.X=!0;J.N=K.clientPlaybackNonce;g.Et("TIMING_ACTION")||qM("TIMING_ACTION",J.lx.csiPageType);J.lx.csiServiceName&&qM("CSI_SERVICE_NAME",J.lx.csiServiceName);if(J.G){X=J.G.lH();for(var l=g.z(Object.keys(X)),x=l.next();!x.done;x=l.next())x=x.value,Ul(x,X[x],J.timerName);X=g.NM(aYF)(J.G.fV);g.tB(X,J.timerName);X=J.G;X.Z={};X.fV={}}g.tB({playerInfo:{visibilityState:g.NM(W2d)()},playerType:"LATENCY_PLAYER_HTML5"}, J.timerName);J.C!==K.clientPlaybackNonce||Number.isNaN(J.Z)||(ZS("_start",J.timerName)?n=g.NM(km)("_start",J.timerName)+J.Z:g.gG(new g.qt("attempted to log gapless pbs before CSI timeline started",{cpn:K.clientPlaybackNonce})));n&&!ZS("pbs",J.timerName)&&Q5(J,n)}}; Q5=function(J,K,n){Ul("pbs",K!=null?K:(0,g.a)(),n!=null?n:J.timerName)}; $B=function(J){n4U();KIe();J.timerName=""}; c0M=function(J){if(J.G){var K=J.G;K.Z={};K.fV={}}J.X=!1;J.C=void 0;J.Z=NaN}; Ywp=function(J,K){g.hi.call(this);this.ix=J;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.G=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.L={};this.Z=0;if(J=K.session_data)this.sessionData=Ka(J,"&");this.index=Math.max(0,Number(K.index)||0);this.loop=!!K.loop;this.startSeconds=Number(K.startSeconds)||0;this.title=K.playlist_title||"";this.description=K.playlist_description||"";this.author= K.author||K.playlist_author||"";K.video_id&&(this.items[this.index]=K);if(J=K.api)typeof J==="string"&&J.length===16?K.list="PL"+J:K.playlist=J;if(J=K.list)switch(K.listType){case "user_uploads":this.listId=new zl("UU","PLAYER_"+J);break;default:var n=K.playlist_length;n&&(this.length=Number(n)||0);this.listId=g.w6(J);if(J=K.video)this.items=J.slice(0),this.loaded=!0}else if(K.playlist){J=K.playlist.toString().split(",");this.index>0&&(this.items=[]);J=g.z(J);for(n=J.next();!n.done;n=J.next())(n= n.value)&&this.items.push({video_id:n});this.length=this.items.length;if(J=K.video)this.items=J.slice(0),this.loaded=!0}this.setShuffle(!!K.shuffle);if(J=K.suggestedQuality)this.quality=J;this.L=HF(K,"playlist_");this.X=(K=K.thumbnail_ids)?K.split(","):[]}; GyU=function(J){return!!(J.playlist||J.list||J.api)}; U4F=function(J){var K=J.index+1;return K>=J.length?0:K}; t0k=function(J){var K=J.index-1;return K<0?J.length-1:K}; g.Sw=function(J,K,n,X){K=K!==void 0?K:J.index;K=J.items&&K in J.items?J.items[J.order[K]]:null;var l=null;K&&(n&&(K.autoplay="1"),X&&(K.autonav="1"),l=new g.WF(J.ix,K),g.Z(J,l),l.O6=!0,l.startSeconds=J.startSeconds||l.clipStart||0,J.listId&&(l.playlistId=J.listId.toString()));return l}; y0q=function(J,K){J.index=g.BK(K,0,J.length-1);J.startSeconds=0}; Zt3=function(J,K){if(K.video&&K.video.length){J.title=K.title||"";J.description=K.description;J.views=K.views;J.likes=K.likes;J.dislikes=K.dislikes;J.author=K.author||"";var n=K.loop;n&&(J.loop=n);n=g.Sw(J);J.items=[];for(var X=g.z(K.video),l=X.next();!l.done;l=X.next())if(l=l.value)l.video_id=l.encrypted_id,J.items.push(l);J.length=J.items.length;(K=K.index)?J.index=K:J.findIndex(n);J.setShuffle(!1);J.loaded=!0;J.Z++;J.G&&J.G()}}; afU=function(J,K){var n,X,l,x,V,v,Q;return g.G(function(S){if(S.Z==1){n=g.lE();var r=J.S(),C={context:g.N2(J),playbackContext:{contentPlaybackContext:{ancestorOrigins:r.ancestorOrigins}}},O=r.getWebPlayerContextConfig();if(O==null?0:O.encryptedHostFlags)C.playbackContext.contentPlaybackContext.encryptedHostFlags=O.encryptedHostFlags;if(O==null?0:O.hideInfo)C.playerParams={showinfo:!1};r=r.embedConfig;O=K.docid||K.video_id||K.videoId||K.id;if(!O){O=K.raw_embedded_player_response;if(!O){var H=K.embedded_player_response; H&&(O=JSON.parse(H))}if(O){var R,w,P,B,p,k;O=((k=g.f((R=O)==null?void 0:(w=R.embedPreview)==null?void 0:(P=w.thumbnailPreviewRenderer)==null?void 0:(B=P.playButton)==null?void 0:(p=B.buttonRenderer)==null?void 0:p.navigationEndpoint,g.MJ))==null?void 0:k.videoId)||null}else O=null}R=(R=O)?R:void 0;w=J.playlistId?J.playlistId:K.list;P=K.listType;if(w){var c;P==="user_uploads"?c={username:w}:c={playlistId:w};ff8(r,R,K,c);C.playlistRequest=c}else K.playlist?(c={templistVideoIds:K.playlist.toString().split(",")}, ff8(r,R,K,c),C.playlistRequest=c):R&&(c={videoId:R},r&&(c.serializedThirdPartyEmbedConfig=r),C.singleVideoRequest=c);X=C;l=g.Ko(Wmk);g.e8(S,2);return g.d(S,g.q5(n,X,l),4)}if(S.Z!=2)return x=S.G,V=J.S(),K.raw_embedded_player_response=x,V.cW=vB(K,g.pR(V)),V.X=V.cW==="EMBEDDED_PLAYER_MODE_PFL",x&&(v=x,v.trackingParams&&gw(v.trackingParams)),S.return(new g.WF(V,K));Q=g.mk(S);Q instanceof Error||(Q=Error("b259802748"));g.ko(Q);return S.return(J)})}; ff8=function(J,K,n,X){n.index&&(X.playlistIndex=String(Number(n.index)+1));X.videoId=K?K:"";J&&(X.serializedThirdPartyEmbedConfig=J)}; g.sU=function(J,K){rE.get(J);rE.set(J,K)}; g.CH=function(J){g.hi.call(this);this.loaded=!1;this.player=J}; Fmk=function(){this.Z=[];this.G=[]}; g.oC=function(J,K){return K?J.G.concat(J.Z):J.G}; g.OU=function(J,K){switch(K.kind){case "asr":qwU(K,J.Z);break;default:qwU(K,J.G)}}; qwU=function(J,K){g.ru(K,function(n){return J.equals(n)})||K.push(J)}; g.HZ=function(J){g.t.call(this);this.R4=J;this.Z=new Fmk;this.U=null;this.C=[];this.L=[]}; g.RC=function(J,K,n){g.HZ.call(this,J);this.videoData=K;this.audioTrack=n;this.G=null;this.X=!1;this.C=K.MM;this.L=K.w2;this.X=g.ki(K)}; g.EZV=function(J,K){var n;return J.S().J("safari_live_drm_captions_fix")&&((n=J.getVideoData())==null?0:n.wK())?!1:g.wh(J.S())&&!K.isManifestless}; g.u8=function(J,K){return ox(J.info.mimeType)?K?J.info.itag===K:!0:!1}; g.btk=function(J,K){if(J.G!=null&&g.EZV(K,J.G)&&J.G.G.rawcc!=null)return!0;if(!J.qS())return!1;K=!!J.G&&J.G.isManifestless&&Object.values(J.G.G).some(function(n){return g.u8(n,"386")}); J=!!J.G&&!J.G.isManifestless&&g.vIM(J.G);return K||J}; g.ew=function(J,K,n,X,l,x){g.HZ.call(this,J);this.videoId=n;this.xv=l;this.eventId=x;this.N={};this.G=null;J=X||g.l9(K).hl||"";J=J.split("_").join("-");this.X=xA(K,{hl:J})}; NF8=function(J,K){var n=A0V;return n.U?O3(M0e(n,K),Rd(function(X){return function x(){return g3(x,function(V){if(V.Z==1){g.w3(V,2);try{return V.return(new WebAssembly.Instance(X,J))}catch(v){}return Rr(V,uX(WebAssembly.instantiate(X,J)),4)}if(V.Z!=2)return V.return(V.G);g.LU(V);return g.De(V,0)})}()})):rw("wasm.ps.ns")}; JAd=function(J,K){J.G||(J.G=O3(s3(function(){return fetch(K)}),function(n){return n.arrayBuffer()}),HG(J.G,function(n){J.G=void 0; throw"wasm.ps.f: "+n;}))}; M0e=function(J,K){if(J.Z)return J.Z;J.Z=J.C(K);HG(J.Z,function(n){J.Z=void 0;throw"wasm.ps.c: "+n;}); return J.Z}; K$V=function(){}; nqf=function(){var J=this;this.proc_exit=function(){}; this.fd_write=function(K,n,X){if(!J.exports)return 1;K=new Uint32Array(J.exports.memory.buffer,n,X*2);n=[];for(var l=0;l=11;J=J.api.S().W&&dE;return!(!K&&!J)}; WZ=function(J,K){return!J.api.isInline()&&!Gb7(J,iu(K))&&g.iU(K)}; YN3=function(J){J.Np.Ln();if(J.K2&&J.ZY)J.ZY=!1;else if(!J.api.S().kF&&!J.W$()){var K=J.api.getPlayerStateObject();g.E(K,2)&&g.io(J.api)||J.kt(K);!J.api.S().vW||K.isCued()||g.E(K,1024)?J.Iz():J.zm.isActive()?(J.Y$(),J.zm.stop()):J.zm.start()}}; tP8=function(J,K){var n;if((n=J.api.getVideoData())==null?0:n.mutedAutoplay){var X,l;if((X=K.target)==null?0:(l=X.className)==null?0:l.includes("ytp-info-panel"))return!1}return g.iU(K)&&J.api.isMutedByMutedAutoplay()?(J.api.unMute(),J.api.getPresentingPlayerType()===2&&J.api.playVideo(),K=J.api.getPlayerStateObject(),!g.E(K,4)||g.E(K,8)||g.E(K,2)||J.Iz(),!0):!1}; yAe=function(J,K,n){J.api.isFullscreen()?n<1-K&&J.api.toggleFullscreen():n>1+K&&J.api.toggleFullscreen()}; cA8=function(J){var K=Wa()&&ya()>=67&&!J.api.S().W;J=J.api.S().disableOrganicUi;return!g.fa("tizen")&&!iq&&!K&&!J}; g.aC=function(J){g.F.call(this,{j:"div",Y:[{j:"div",V:"ytp-bezel-text-wrapper",Y:[{j:"div",V:"ytp-bezel-text",hj:"{{title}}"}]},{j:"div",V:"ytp-bezel",D:{role:"status","aria-label":"{{label}}"},Y:[{j:"div",V:"ytp-bezel-icon",hj:"{{icon}}"}]}]});this.B=J;this.Z=new g.AT(this.show,10,this);J=this.B.J("delhi_modern_web_player")?1E3:500;this.G=new g.AT(this.hide,J,this);g.Z(this,this.Z);g.Z(this,this.G);this.hide()}; q8=function(J,K,n){if(K<=0){n=To();K="muted";var X=0}else n=n?{j:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Y:[{j:"path",Dv:!0,D:{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"}}]}:{j:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Y:[{j:"path",Dv:!0,D:{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"}}]},X=Math.floor(K),K=X+"volume";F8(J,n,K,X+"%")}; Z8e=function(J,K){K=K?{j:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Y:[{j:"path",Dv:!0,V:"ytp-svg-fill",D:{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"}}]}:Ptk();var n=J.B.getPlaybackRate(),X=g.rK("Speed is $RATE",{RATE:String(n)});F8(J,K,X,n+"x")}; flV=function(J,K){K=K?"Subtitles/closed captions on":"Subtitles/closed captions off";F8(J,mIM(J.B),K)}; F8=function(J,K,n,X){X=X===void 0?"":X;J.updateValue("label",n===void 0?"":n);J.updateValue("icon",K);g.Jv(J.G);J.Z.start();J.updateValue("title",X);g.Qq(J.element,"ytp-bezel-text-hide",!X)}; W$V=function(J,K){g.F.call(this,{j:"button",UM:["ytp-button","ytp-cards-button"],D:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.pR(J.S()))},Y:[{j:"span",V:"ytp-cards-button-icon-default",Y:[{j:"div",V:"ytp-cards-button-icon",Y:[J.S().J("player_new_info_card_format")?B2V():{j:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Y:[{j:"path",Dv:!0,V:"ytp-svg-fill",D:{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"}}]}]}, {j:"div",V:"ytp-cards-button-title",hj:"Info"}]},{j:"span",V:"ytp-cards-button-icon-shopping",Y:[{j:"div",V:"ytp-cards-button-icon",Y:[{j:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Y:[{j:"path",V:"ytp-svg-shadow",D:{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"}},{j:"path",V:"ytp-svg-fill",D:{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"}},{j:"path",V:"ytp-svg-shadow-fill",D:{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"}}]}]},{j:"div", V:"ytp-cards-button-title",hj:"Shopping"}]}]});this.B=J;this.Z=K;this.G=null;this.fade=new g.ov(this,250,!0,100);g.Z(this,this.fade);g.Qq(this.Z,"ytp-show-cards-title",g.pR(J.S()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.P_(!0)}; alF=function(J,K){g.F.call(this,{j:"div",V:"ytp-cards-teaser",Y:[{j:"div",V:"ytp-cards-teaser-box"},{j:"div",V:"ytp-cards-teaser-text",Y:J.S().J("player_new_info_card_format")?[{j:"button",V:"ytp-cards-teaser-info-icon",D:{"aria-label":"Show cards","aria-haspopup":"true"},Y:[B2V()]},{j:"span",V:"ytp-cards-teaser-label",hj:"{{text}}"},{j:"button",V:"ytp-cards-teaser-close-button",D:{"aria-label":"Close"},Y:[g.zo()]}]:[{j:"span",V:"ytp-cards-teaser-label",hj:"{{text}}"}]}]});var n=this;this.B=J;this.u1= K;this.fade=new g.ov(this,250,!1,250);this.G=null;this.W=new g.AT(this.eLq,300,this);this.N=new g.AT(this.tlm,2E3,this);this.U=[];this.Z=null;this.L=new g.AT(function(){n.element.style.margin="0"},250); this.onClickCommand=this.X=null;g.Z(this,this.fade);g.Z(this,this.W);g.Z(this,this.N);g.Z(this,this.L);J.S().J("player_new_info_card_format")?(g.jv(J.getRootNode(),"ytp-cards-teaser-dismissible"),this.T(this.rQ("ytp-cards-teaser-close-button"),"click",this.Nv),this.T(this.rQ("ytp-cards-teaser-info-icon"),"click",this.Rn),this.T(this.rQ("ytp-cards-teaser-label"),"click",this.Rn)):this.listen("click",this.Rn);this.T(K.element,"mouseover",this.yp);this.T(K.element,"mouseout",this.fk);this.T(J,"cardsteasershow", this.EoQ);this.T(J,"cardsteaserhide",this.MS);this.T(J,"cardstatechange",this.gI);this.T(J,"presentingplayerstatechange",this.gI);this.T(J,"appresize",this.O$);this.T(J,"onShowControls",this.O$);this.T(J,"onHideControls",this.jU);this.listen("mouseenter",this.CF)}; F$F=function(J){g.F.call(this,{j:"button",UM:[EU.BUTTON,EU.TITLE_NOTIFICATIONS],D:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},Y:[{j:"div",V:EU.TITLE_NOTIFICATIONS_ON,D:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},Y:[g.IR()]},{j:"div",V:EU.TITLE_NOTIFICATIONS_OFF,D:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},Y:[{j:"svg",D:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},Y:[{j:"path",D:{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=J;this.G=!1;J.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Get notified about every new video")}; qN3=function(J,K){J.G=K;J.element.classList.toggle(EU.NOTIFICATIONS_ENABLED,J.G);var n=J.api.getVideoData();n?(K=K?n.y4:n.Tl)?(J=J.api.Jd())?Fw(J,K):g.ko(Error("No innertube service available when updating notification preferences.")):g.ko(Error("No update preferences command available.")):g.ko(Error("No video data when updating notification preferences."))}; b8M=function(J,K,n){var X=X===void 0?800:X;var l=l===void 0?600:l;var x=document.location.protocol;J=K7p(x+"//"+J+"/signin?context=popup","feature",K,"next",x+"//"+location.hostname+"/post_login");Eqq(J,n,X,l)}; Eqq=function(J,K,n,X){n=n===void 0?800:n;X=X===void 0?600:X;if(J=g.Kl(window,J,"loginPopup","width="+n+",height="+X+",resizable=yes,scrollbars=yes"))P98(function(){K()}),J.moveTo((screen.width-n)/2,(screen.height-X)/2)}; g.b8=function(J,K,n,X,l,x,V,v,Q,S,r,C){J=J.charAt(0)+J.substring(1).toLowerCase();n=n.charAt(0)+n.substring(1).toLowerCase();if(K==="0"||K==="-1")K=null;if(X==="0"||X==="-1")X=null;var O=r.S(),H=O.userDisplayName&&g.gz(O);g.F.call(this,{j:"div",UM:["ytp-button","ytp-sb"],Y:[{j:"div",V:"ytp-sb-subscribe",D:H?{title:g.rK("Subscribe as $USER_NAME",{USER_NAME:O.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":ou(O),"data-tooltip-opaque":String(g.pR(O)),tabindex:"0",role:"button"}: {"aria-label":"Subscribe to channel"},Y:[{j:"div",V:"ytp-sb-text",Y:[{j:"div",V:"ytp-sb-icon"},J]},K?{j:"div",V:"ytp-sb-count",hj:K}:""]},{j:"div",V:"ytp-sb-unsubscribe",D:H?{title:g.rK("Subscribed as $USER_NAME",{USER_NAME:O.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":ou(O),"data-tooltip-opaque":String(g.pR(O)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},Y:[{j:"div",V:"ytp-sb-text",Y:[{j:"div",V:"ytp-sb-icon"},n]},X?{j:"div",V:"ytp-sb-count", hj:X}:""]}],D:{"aria-live":"polite"}});var R=this;this.channelId=V;this.B=r;this.X=C;var w=this.rQ("ytp-sb-subscribe"),P=this.rQ("ytp-sb-unsubscribe");x&&g.jv(this.element,"ytp-sb-classic");if(l){v?this.G():this.Z();var B=function(){if(O.Aj){var k=R.channelId;if(Q||S){var c={c:k};var y;g.U3.isInitialized()&&(y=t18(c));c=y||"";if(y=r.getVideoData())if(y=y.subscribeCommand){var A=r.Jd();A?(Fw(A,y,{botguardResponse:c,feature:Q}),r.I4("SUBSCRIBE",k)):g.ko(Error("No innertube service available when updating subscriptions."))}else g.ko(Error("No subscribe command in videoData.")); else g.ko(Error("No video data available when updating subscription."))}P.focus();P.removeAttribute("aria-hidden");w.setAttribute("aria-hidden","true")}else b8M(g.am(R.B.S()),"sb_button",R.U)},p=function(){var k=R.channelId; if(Q||S){var c=g.U(r.getVideoData());Fw(g.U(r.Jd()),c.unsubscribeCommand,{feature:Q});r.I4("UNSUBSCRIBE",k)}w.focus();w.removeAttribute("aria-hidden");P.setAttribute("aria-hidden","true")}; this.T(w,"click",B);this.T(P,"click",p);this.T(w,"keypress",function(k){k.keyCode===13&&B(k)}); this.T(P,"keypress",function(k){k.keyCode===13&&p(k)}); this.T(r,"SUBSCRIBE",this.G);this.T(r,"UNSUBSCRIBE",this.Z);this.X&&H&&(vEq(r),wv(r,w,this),wv(r,P,this))}else g.jv(w,"ytp-sb-disabled"),g.jv(P,"ytp-sb-disabled")}; Nlq=function(J){g.F.call(this,{j:"div",V:"ytp-title-channel",Y:[{j:"div",V:"ytp-title-beacon"},{j:"a",V:"ytp-title-channel-logo",D:{href:"{{channelLink}}",target:J.S().K,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{j:"div",V:"ytp-title-expanded-overlay",D:{"aria-hidden":"{{flyoutUnfocusable}}"},Y:[{j:"div",V:"ytp-title-expanded-heading",Y:[{j:"div",V:"ytp-title-expanded-title",Y:[{j:"a",hj:"{{expandedTitle}}",D:{href:"{{channelTitleLink}}",target:J.S().K,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{j:"div",V:"ytp-title-expanded-subtitle",hj:"{{expandedSubtitle}}",D:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var K=this;this.api=J;this.channel=this.rQ("ytp-title-channel");this.Z=this.rQ("ytp-title-channel-logo");this.channelName=this.rQ("ytp-title-expanded-title");this.N=this.rQ("ytp-title-expanded-overlay");this.X=this.G=this.subscribeButton=null;this.U=!1;J.createClientVe(this.Z,this,36925);J.createClientVe(this.channelName,this, 37220);g.pR(this.api.S())&&AAk(this);this.T(J,"videodatachange",this.WW);this.T(J,"videoplayerreset",this.WW);this.T(this.channelName,"click",function(n){K.api.logClick(K.channelName);g.Kl(window,MPd(K));n.preventDefault()}); this.T(this.Z,"click",this.OvG);this.WW()}; JYM=function(J){if(!J.api.S().o5){var K=g.U(J.api.getVideoData()),n=new g.b8("Subscribe",null,"Subscribed",null,!0,!1,K.OR,K.subscribed,"channel_avatar",null,J.api,!0);J.api.createServerVe(n.element,J);var X;J.api.setTrackingParams(n.element,((X=K.subscribeButtonRenderer)==null?void 0:X.trackingParams)||null);J.T(n.element,"click",function(){J.api.logClick(n.element)}); J.subscribeButton=n;g.Z(J,J.subscribeButton);J.subscribeButton.qQ(J.N);J.subscribeButton.hide();var l=new F$F(J.api);J.G=l;g.Z(J,l);l.qQ(J.N);l.hide();J.T(J.api,"SUBSCRIBE",function(){K.Qf&&(l.show(),J.api.logVisibility(l.element,!0))}); J.T(J.api,"UNSUBSCRIBE",function(){K.Qf&&(l.hide(),J.api.logVisibility(l.element,!1),qN3(l,!1))})}}; AAk=function(J){var K=J.api.S();JYM(J);J.updateValue("flyoutUnfocusable","true");J.updateValue("channelTitleFocusable","-1");J.updateValue("shouldHideExpandedTitleForA11y","true");J.updateValue("shouldHideExpandedSubtitleForA11y","true");K.Z||K.fv||(J.T(J.channel,"mouseenter",J.yn),J.T(J.channel,"mouseleave",J.zK),J.T(J.channel,"focusin",J.yn),J.T(J.channel,"focusout",function(n){J.channel.contains(n.relatedTarget)||J.zK()})); J.X=new g.AT(function(){J.isExpanded()&&(J.api.logVisibility(J.channelName,!1),J.subscribeButton&&(J.subscribeButton.hide(),J.api.logVisibility(J.subscribeButton.element,!1)),J.G&&(J.G.hide(),J.api.logVisibility(J.G.element,!1)),J.channel.classList.remove("ytp-title-expanded"),J.channel.classList.add("ytp-title-show-collapsed"))},500); g.Z(J,J.X);J.T(J.channel,Kwd,function(){nek(J)}); J.T(J.api,"onHideControls",J.tS);J.T(J.api,"appresize",J.tS);J.T(J.api,"fullscreentoggled",J.tS)}; nek=function(J){J.channel.classList.remove("ytp-title-show-collapsed");J.channel.classList.remove("ytp-title-show-expanded")}; oeU=function(J){var K=J.api.getPlayerSize();return g.pR(J.api.S())&&K.width>=524}; MPd=function(J){var K=J.api.S(),n=g.U(J.api.getVideoData()),X=g.XM(K)+n.md;g.bK(n)&&(X="https://music.youtube.com"+n.md);if(!g.pR(K))return X;K={};g.v4(J.api,"addEmbedsConversionTrackingParams",[K]);return g.Td(X,K)}; AX=function(J){var K=g.FR({"aria-haspopup":"true"});g.at.call(this,K,J);this.listen("keydown",this.G)}; M8=function(J,K){J.element.setAttribute("aria-haspopup",String(K))}; Xrr=function(J,K){g.F.call(this,{j:"div",V:"ytp-user-info-panel",D:{"aria-label":"User info"},Y:J.S().Aj&&!J.J("embeds_web_always_enable_signed_out_state")?[{j:"div",V:"ytp-user-info-panel-icon",hj:"{{icon}}"},{j:"div",V:"ytp-user-info-panel-content",Y:[{j:"div",V:"ytp-user-info-panel-info",D:{tabIndex:"{{userInfoFocusable}}",role:"text"},hj:"{{watchingAsUsername}}"},{j:"div",V:"ytp-user-info-panel-info",D:{tabIndex:"{{userInfoFocusable2}}",role:"text"},hj:"{{watchingAsEmail}}"}]}]:[{j:"div",V:"ytp-user-info-panel-icon", hj:"{{icon}}"},{j:"div",V:"ytp-user-info-panel-content",Y:[{j:"div",Y:[{j:"text",D:{tabIndex:"{{userInfoFocusable}}"},hj:"Signed out"}]},{j:"div",V:"ytp-user-info-panel-login",Y:[{j:"a",D:{tabIndex:"{{userInfoFocusable2}}",role:"button"},hj:J.S().o5?"":"Sign in on YouTube"}]}]}]});this.R4=J;this.G=K;J.S().Aj||J.S().o5||this.T(this.rQ("ytp-user-info-panel-login"),"click",this.J3);this.closeButton=new g.F({j:"button",UM:["ytp-collapse","ytp-button"],D:{title:"Close"},Y:[g.L7()]});this.closeButton.qQ(this.element); g.Z(this,this.closeButton);this.T(window,"blur",this.hide);this.T(document,"click",this.HD);this.WW()}; jkq=function(J,K,n){g.Ib.call(this,J);this.Zv=K;this.jc=n;this.getVideoUrl=new AX(6);this.fQ=new AX(5);this.kd=new AX(4);this.FK=new AX(3);this.Z9=new g.at(g.FR({href:"{{href}}",target:this.B.S().K},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.at(g.FR(),1,"Stats for nerds");this.UV=new g.ro({j:"div",UM:["ytp-copytext","ytp-no-contextmenu"],D:{draggable:"false",tabindex:"1"},hj:"{{text}}"});this.cG=new PY(this.B,this.UV);this.lr=this.Kj=null;g.pR(this.B.S())&&(this.closeButton= new g.F({j:"button",UM:["ytp-collapse","ytp-button"],D:{title:"Close"},Y:[g.L7()]}),g.Z(this,this.closeButton),this.closeButton.qQ(this.element),this.closeButton.listen("click",this.oT,this));g.pR(this.B.S())&&(this.Sy=new g.at(g.FR(),8,"Account"),g.Z(this,this.Sy),this.qH(this.Sy,!0),this.Sy.listen("click",this.hHd,this),J.createClientVe(this.Sy.element,this.Sy,137682));this.B.S().pQ&&(this.Vf=new oI("Loop",7),g.Z(this,this.Vf),this.qH(this.Vf,!0),this.Vf.listen("click",this.CRj,this),J.createClientVe(this.Vf.element, this.Vf,28661));g.Z(this,this.getVideoUrl);this.qH(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.bU_,this);J.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.Z(this,this.fQ);this.qH(this.fQ,!0);this.fQ.listen("click",this.USq,this);J.createClientVe(this.fQ.element,this.fQ,28660);g.Z(this,this.kd);this.qH(this.kd,!0);this.kd.listen("click",this.q_F,this);J.createClientVe(this.kd.element,this.kd,28658);g.Z(this,this.FK);this.qH(this.FK,!0);this.FK.listen("click",this.Mlq, this);g.Z(this,this.Z9);this.qH(this.Z9,!0);this.Z9.listen("click",this.fr4,this);g.Z(this,this.showVideoInfo);this.qH(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.XBM,this);g.Z(this,this.UV);this.UV.listen("click",this.dSv,this);g.Z(this,this.cG);K=document.queryCommandSupported&&document.queryCommandSupported("copy");bU8("Chromium")>=43&&(K=!0);bU8("Firefox")<=40&&(K=!1);K&&(this.Kj=new g.F({j:"textarea",V:"ytp-html5-clipboard",D:{readonly:"",tabindex:"-1"}}),g.Z(this,this.Kj), this.Kj.qQ(this.element));var X;(X=this.Sy)==null||X.setIcon(T23());var l;(l=this.Vf)==null||l.setIcon({j:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},Y:[{j:"path",D:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});this.FK.setIcon({j:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},Y:[{j:"path",D:{"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.Z9.setIcon(IAq());this.showVideoInfo.setIcon(i6q());this.T(J,"onLoopChange",this.onLoopChange);this.T(J,"videodatachange",this.onVideoDataChange);l6r(this);xlf(this,g.U(this.B.getVideoData()))}; N8=function(J,K){var n=!1;if(J.Kj){var X=J.Kj.element;X.value=K;X.select();try{n=document.execCommand("copy")}catch(l){}}n?J.Zv.MS():(J.UV.wR(K,"text"),g.mU(J.Zv,J.cG),V9(J.UV.element),J.Kj&&(J.Kj=null,l6r(J)));return n}; xlf=function(J,K){var n=J.B.S(),X=J.B.getPresentingPlayerType()===2,l=!X||K.isListed;l=!n.QG&&!!K.videoId&&l;n.playerStyle!=="play"?n="https://support.google.com/youtube/?p=report_playback":(n={contact_type:"playbackissue",html5:1,ei:K.eventId,v:K.videoId,p:"movies_playback"},K.Z&&(n.fmt=K.Z.itag),K.clientPlaybackNonce&&(n.cpn=K.clientPlaybackNonce),K.partnerId&&(n.partnerid=K.partnerId),n=g.Td("//support.google.com/googleplay/",n));J.kd.Yr(l&&K.allowEmbed);J.getVideoUrl.Yr(l);J.fQ.Yr(l&&!K.isLivePlayback); J.Z9.wR(n,"href");var x;(x=J.Vf)==null||x.Yr(!K.isLivePlayback&&!X);var V;(V=J.Sy)==null||V.Yr(!X)}; l6r=function(J){var K=!!J.Kj;g.W4(J.FK,K?"Copy debug info":"Get debug info");M8(J.FK,!K);g.W4(J.kd,K?"Copy embed code":"Get embed code");M8(J.kd,!K);g.W4(J.getVideoUrl,K?"Copy video URL":"Get video URL");M8(J.getVideoUrl,!K);g.W4(J.fQ,K?"Copy video URL at current time":"Get video URL at current time");M8(J.fQ,!K);J.kd.setIcon(K?ztF():null);J.getVideoUrl.setIcon(K?wo():null);J.fQ.setIcon(K?wo():null)}; V2F=function(J){return g.pR(J.B.S())?J.Sy:J.Vf}; vep=function(J,K){g.BY.call(this,J);this.jc=K;this.U=new g.gY(this);this.GA=new g.AT(this.j94,1E3,this);this.QG=this.X=null;g.Z(this,this.U);g.Z(this,this.GA);K=this.B.S();J.createClientVe(this.element,this,28656);g.jv(this.element,"ytp-contextmenu");this.B.S().experiments.sM("delhi_modern_web_player")&&g.AS(K)&&g.jv(this.element,"ytp-delhi-modern-contextmenu");hMp(this);this.hide()}; hMp=function(J){g.L0(J.U);var K=J.B.S();K.playerStyle==="gvn"||K.Z||K.fv||(K=J.B.S_(),J.U.T(K,"contextmenu",J.vF5),J.U.T(K,"touchstart",J.onTouchStart,null,!0),J.U.T(K,"touchmove",J.UT,null,!0),J.U.T(K,"touchend",J.UT,null,!0))}; QkM=function(J){J.B.isFullscreen()?g.dv(J.B,J.element,10):J.qQ(y3(J).body)}; JI=function(J,K,n){n=n===void 0?240:n;g.F.call(this,{j:"button",UM:["ytp-button","ytp-copylink-button"],D:{title:"{{title-attr}}","data-tooltip-opaque":String(g.pR(J.S()))},Y:[{j:"div",V:"ytp-copylink-icon",hj:"{{icon}}"},{j:"div",V:"ytp-copylink-title",hj:"Copy link",D:{"aria-hidden":"true"}}]});this.api=J;this.G=K;this.Z=n;this.visible=!1;this.tooltip=this.G.o9();K=J.S();this.tooltip.element.setAttribute("aria-live","polite");g.Qq(this.element,"ytp-show-copylink-title",g.pR(K));J.createClientVe(this.element, this,86570);this.listen("click",this.onClick);this.T(J,"videodatachange",this.WW);this.T(J,"videoplayerreset",this.WW);this.T(J,"appresize",this.WW);this.WW();this.addOnDisposeCallback(g.zh(this.tooltip,this.element))}; $lV=function(J){var K=J.api.S(),n=g.U(J.api.getVideoData()),X=J.api.S_().getPlayerSize().width;K=K.X;return!!n.videoId&&X>=J.Z&&n.Ws&&!g.Eo(n)&&!J.api.isEmbedsShortsMode()&&!K}; SI3=function(J){J.updateValue("icon",RR());if(J.api.S().Z)J.tooltip.Rd(J.element,"Link copied to clipboard");else{J.updateValue("title-attr","Link copied to clipboard");J.tooltip.Kh();J.tooltip.Rd(J.element);var K=J.listen("mouseleave",function(){J.rR(K);J.WW();J.tooltip.A0()})}}; rY3=function(J,K){return g.G(function(n){if(n.Z==1)return g.e8(n,2),g.d(n,navigator.clipboard.writeText(K),4);if(n.Z!=2)return n.return(!0);g.mk(n);var X=n.return,l=!1,x=g.ME("TEXTAREA");x.value=K;x.setAttribute("readonly","");var V=J.api.getRootNode();V.appendChild(x);if(Fz){var v=window.getSelection();v.removeAllRanges();var Q=g.U(document.createRange());Q.selectNodeContents(x);v.addRange(Q);x.setSelectionRange(0,K.length)}else x.select();try{l=document.execCommand("copy")}catch(S){}V.removeChild(x); return X.call(n,l)})}; skd=function(J){g.F.call(this,{j:"div",V:"ytp-doubletap-ui-legacy",Y:[{j:"div",V:"ytp-doubletap-fast-forward-ve"},{j:"div",V:"ytp-doubletap-rewind-ve"},{j:"div",V:"ytp-doubletap-static-circle",Y:[{j:"div",V:"ytp-doubletap-ripple"}]},{j:"div",V:"ytp-doubletap-overlay-a11y"},{j:"div",V:"ytp-doubletap-seek-info-container",Y:[{j:"div",V:"ytp-doubletap-arrows-container",Y:[{j:"span",V:"ytp-doubletap-base-arrow"},{j:"span",V:"ytp-doubletap-base-arrow"},{j:"span",V:"ytp-doubletap-base-arrow"}]},{j:"div", V:"ytp-doubletap-tooltip",Y:[{j:"div",V:"ytp-seek-icon-text-container",Y:[{j:"div",V:"ytp-seek-icon",hj:"{{seekIcon}}"},{j:"div",V:"ytp-chapter-seek-text-legacy",hj:"{{seekText}}"}]},{j:"div",V:"ytp-doubletap-tooltip-label",hj:"{{seekTime}}"}]}]}]});this.B=J;this.U=new g.AT(this.show,10,this);this.Z=new g.AT(this.hide,700,this);this.W=this.X=0;this.GA=this.N=!1;this.G=this.rQ("ytp-doubletap-static-circle");g.Z(this,this.U);g.Z(this,this.Z);this.hide();this.L=this.rQ("ytp-doubletap-fast-forward-ve"); this.K=this.rQ("ytp-doubletap-rewind-ve");this.B.createClientVe(this.L,this,28240);this.B.createClientVe(this.K,this,28239);this.B.logVisibility(this.L,!0);this.B.logVisibility(this.K,!0);this.N=J.J("web_show_cumulative_seek_time");this.GA=J.J("web_center_static_circles")}; Cle=function(J,K){K=g.rK("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:K.toString()});J.updateValue("seekTime",K)}; O2U=function(J){wd.call(this,J,!1,!0);this.cW=[];this.o5=[];this.L=!0;this.badge.element.classList.add("ytp-featured-product");this.MQ=new g.F({j:"div",V:"ytp-featured-product-open-in-new"});g.Z(this,this.MQ);this.countdownTimer=new g.F({j:"text",V:"ytp-featured-product-countdown",hj:"{{content}}"});this.countdownTimer.hide();g.Z(this,this.countdownTimer);this.Z=new g.F({j:"div",V:"ytp-featured-product-trending",Y:[{j:"div",V:"ytp-featured-product-trending-icon"},{j:"text",V:"ytp-featured-product-trending-text", hj:"{{trendingOffer}}"}]});this.Z.hide();g.Z(this,this.Z);this.overflowButton=new g.F({j:"button",UM:["ytp-featured-product-overflow-icon","ytp-button"],D:{"aria-haspopup":"true"}});this.overflowButton.hide();g.Z(this,this.overflowButton);this.W=new g.F({j:"text",V:"ytp-featured-product-exclusive-countdown",hj:"{{content}}",D:{id:"exclusiveCountdown","aria-hidden":"true"}});this.W.hide();g.Z(this,this.W);this.N=new g.F({j:"div",V:"ytp-featured-product-exclusive-container",D:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"}, Y:[{j:"div",V:"ytp-featured-product-exclusive-badge-container",Y:[{j:"div",V:"ytp-featured-product-exclusive-badge",Y:[{j:"text",V:"ytp-featured-product-exclusive-badge-text",hj:"{{exclusive}}",D:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.W]});this.N.hide();g.Z(this,this.N);this.banner=new g.F({j:"a",V:"ytp-featured-product-container",Y:[{j:"div",V:"ytp-featured-product-thumbnail",Y:[{j:"img",D:{src:"{{thumbnail}}"}},this.MQ]},{j:"div",V:"ytp-featured-product-details",Y:[{j:"text",V:"ytp-featured-product-title", hj:"{{title}}"},this.B.J("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{j:"div",V:"ytp-featured-product-price-container",D:{"aria-label":"{{priceA11yText}}"},Y:[{j:"text",V:"ytp-featured-product-price-when-promotion-text-enabled",hj:"{{price}}",D:{"aria-hidden":"true"}},{j:"text",V:"ytp-featured-product-promotion-text",hj:"{{promotionText}}",D:{"aria-hidden":"true"}}]}:{j:"div",D:{"aria-label":"{{priceA11yText}}"},Y:[{j:"text",V:"ytp-featured-product-price",hj:"{{price}}", D:{"aria-hidden":"true"}},{j:"text",V:"ytp-featured-product-sales-original-price",hj:"{{salesOriginalPrice}}",D:{"aria-hidden":"true"}},{j:"text",V:"ytp-featured-product-price-drop-reference-price",hj:"{{priceDropReferencePrice}}",D:{"aria-hidden":"true"}}]},this.B.J("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{j:"div",V:"ytp-featured-product-when-promotion-text-enabled",Y:[{j:"text",V:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",hj:"{{affiliateDisclaimer}}"}, this.Z,{j:"text",V:"ytp-featured-product-vendor-when-promotion-text-enabled",hj:"{{vendor}}"}]}:{j:"div",Y:[{j:"text",V:"ytp-featured-product-affiliate-disclaimer",hj:"{{affiliateDisclaimer}}"},this.B.J("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.N:null,this.Z,{j:"text",V:"ytp-featured-product-vendor",hj:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.Z(this,this.banner);this.banner.qQ(this.X.element);this.T(this.B,g.o4("featured_product"),this.SBF);this.T(this.B, g.XD("featured_product"),this.Gj);this.T(this.B,"videodatachange",this.onVideoDataChange);this.T(this.overflowButton.element,"click",this.Rt);this.T(J,"featuredproductdismissed",this.ob)}; H23=function(J){var K,n;J=(K=J.G)==null?void 0:(n=K.bannerData)==null?void 0:n.itemData;var X,l,x;return(J==null||!J.affiliateDisclaimer)&&(J==null?0:(X=J.exclusivesData)==null?0:X.exclusiveOfferLabelText)&&(J==null?0:(l=J.exclusivesData)==null?0:l.expirationTimestampMs)&&(J==null?0:(x=J.exclusivesData)==null?0:x.exclusiveOfferCountdownText)?!0:!1}; u23=function(J){var K,n,X,l,x=(K=J.G)==null?void 0:(n=K.bannerData)==null?void 0:(X=n.itemData)==null?void 0:(l=X.exclusivesData)==null?void 0:l.expirationTimestampMs;K=(Number(x)-Date.now())/1E3;if(K>0){if(K<604800){var V,v,Q,S;n=(V=J.G)==null?void 0:(v=V.bannerData)==null?void 0:(Q=v.itemData)==null?void 0:(S=Q.exclusivesData)==null?void 0:S.exclusiveOfferCountdownText;if(n!==void 0)for(V=Date.now(),v=g.z(n),Q=v.next();!Q.done;Q=v.next())if(Q=Q.value,Q!==void 0&&Q.text!==void 0&&(S=Number(Q.textDisplayStartTimestampMs), !isNaN(S)&&V>=S)){Q.insertCountdown?(K=Q.text.replace(/\$0/,String(Id({seconds:K}))),J.W.wR(K)):J.W.wR(Q.text);J.W.show();break}}var r,C,O,H;J.N.update({exclusive:(r=J.G)==null?void 0:(C=r.bannerData)==null?void 0:(O=C.itemData)==null?void 0:(H=O.exclusivesData)==null?void 0:H.exclusiveOfferLabelText});J.N.show();KF(J);var R;(R=J.wN)==null||R.start()}else RMM(J)}; RMM=function(J){var K;(K=J.wN)==null||K.stop();J.W.hide();J.N.hide();nF(J)}; eM3=function(J){var K,n,X=(K=J.G)==null?void 0:(n=K.bannerData)==null?void 0:n.itemData;return J.B.J("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(X==null||!X.priceReplacementText)&&(X==null?0:X.promotionText)?X==null?void 0:X.promotionText.content:null}; zMH=function(J){var K,n,X=(K=J.G)==null?void 0:(n=K.bannerData)==null?void 0:n.itemData,l,x;if(!(X!=null&&X.priceReplacementText||J.B.J("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(X==null?0:(l=X.dealsData)==null?0:(x=l.sales)==null?0:x.originalPrice)){var V,v;return X==null?void 0:(V=X.dealsData)==null?void 0:(v=V.sales)==null?void 0:v.originalPrice}return null}; wrk=function(J){var K,n,X=(K=J.G)==null?void 0:(n=K.bannerData)==null?void 0:n.itemData,l,x,V,v;if(!((X==null?0:X.priceReplacementText)||J.B.J("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(X==null?0:(l=X.dealsData)==null?0:(x=l.sales)==null?0:x.originalPrice))&&(X==null?0:(V=X.dealsData)==null?0:(v=V.priceDrop)==null?0:v.referencePrice)){var Q,S;return X==null?void 0:(Q=X.dealsData)==null?void 0:(S=Q.priceDrop)==null?void 0:S.referencePrice}return null}; PlM=function(J){var K,n,X=(K=J.G)==null?void 0:(n=K.bannerData)==null?void 0:n.itemData;if(X==null?0:X.priceReplacementText)return X==null?void 0:X.priceReplacementText;if((X==null?0:X.promotionText)&&J.B.J("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var l;return(X==null?void 0:X.price)+" "+(X==null?void 0:(l=X.promotionText)==null?void 0:l.content)}var x,V;if(X==null?0:(x=X.dealsData)==null?0:(V=x.sales)==null?0:V.originalPrice){var v,Q;return X==null?void 0:(v=X.dealsData)== null?void 0:(Q=v.sales)==null?void 0:Q.salesPriceAccessibilityLabel}var S,r;if(X==null?0:(S=X.dealsData)==null?0:(r=S.priceDrop)==null?0:r.referencePrice){var C,O;return(X==null?void 0:X.price)+" "+(X==null?void 0:(C=X.dealsData)==null?void 0:(O=C.priceDrop)==null?void 0:O.referencePrice)}return X==null?void 0:X.price}; I63=function(J){if(J.B.J("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var K,n,X;return J.Z.Kv?null:(K=J.G)==null?void 0:(n=K.bannerData)==null?void 0:(X=n.itemData)==null?void 0:X.vendorName}var l,x,V,v,Q,S;return J.Z.Kv||J.N.Kv||((l=J.G)==null?0:(x=l.bannerData)==null?0:(V=x.itemData)==null?0:V.affiliateDisclaimer)?null:(v=J.G)==null?void 0:(Q=v.bannerData)==null?void 0:(S=Q.itemData)==null?void 0:S.vendorName}; Bx8=function(J,K){o6(J);if(K){var n=g.KS.getState().entities;n=hN(n,"featuredProductsEntity",K);if(n!=null&&n.productsData){K=[];n=g.z(n.productsData);for(var X=n.next();!X.done;X=n.next()){X=X.value;var l=void 0;if((l=X)!=null&&l.identifier&&X.featuredSegments){J.cW.push(X);var x=void 0;l=g.z((x=X)==null?void 0:x.featuredSegments);for(x=l.next();!x.done;x=l.next()){var V=x.value;x=i2q(V.startTimeSec);x!==void 0&&(V=i2q(V.endTimeSec),K.push(new g.KG(x*1E3,V===void 0?0x7ffffffffffff:V*1E3,{id:X.identifier, namespace:"featured_product"})))}}}J.B.yA(K)}}}; nF=function(J){if(J.trendingOfferEntityKey){var K=g.KS.getState().entities;if(K=hN(K,"trendingOfferEntity",J.trendingOfferEntityKey)){var n,X,l;K.encodedSkuId!==((n=J.G)==null?void 0:(X=n.bannerData)==null?void 0:(l=X.itemData)==null?void 0:l.encodedOfferSkuId)?KF(J):(J.Z.update({trendingOffer:K.shortLabel+" \u2022 "+K.countLabel}),J.Z.show(),J.banner.update({vendor:I63(J)}))}else KF(J)}else KF(J)}; KF=function(J){J.Z.hide();J.banner.update({vendor:I63(J)})}; o6=function(J){J.cW=[];J.Gj();J.B.Uo("featured_product")}; mlp=function(J){var K,n,X,l,x=(K=J.G)==null?void 0:(n=K.bannerData)==null?void 0:(X=n.itemData)==null?void 0:(l=X.hiddenProductOptions)==null?void 0:l.dropTimestampMs;K=(Number(x)-Date.now())/1E3;J.countdownTimer.wR(Id({seconds:K}));if(K>0){var V;(V=J.iR)==null||V.start()}}; pr8=function(J){var K;(K=J.iR)==null||K.stop();J.countdownTimer.hide()}; i2q=function(J){if(J!==void 0&&J.trim()!==""&&(J=Math.trunc(Number(J.trim())),!(isNaN(J)||J<0)))return J}; kn3=function(J,K,n){g.F.call(this,{j:"div",UM:["ytp-info-panel-action-item"],Y:[{j:"div",V:"ytp-info-panel-action-item-disclaimer",hj:"{{disclaimer}}"},{j:"a",UM:["ytp-info-panel-action-item-button","ytp-button"],D:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},Y:[{j:"div",V:"ytp-info-panel-action-item-icon",hj:"{{icon}}"},{j:"div",V:"ytp-info-panel-action-item-label",hj:"{{label}}"}]}]});this.B=J;this.G=n;this.disclaimer=this.rQ("ytp-info-panel-action-item-disclaimer");this.button= this.rQ("ytp-info-panel-action-item-button");this.TL=!1;this.B.createServerVe(this.element,this,!0);this.listen("click",this.onClick);J="";n=g.f(K==null?void 0:K.onTap,Yo);var X=g.f(n,g.Go);this.TL=!1;X?(J=X.url||"",J.startsWith("//")&&(J="https:"+J),this.TL=!0,g.bS(this.button,g.qX(J))):(X=g.f(n,Lw3))&&!this.G?((J=X.phoneNumbers)&&J.length>0?(J="sms:"+J[0],X.messageText&&(J+="?&body="+encodeURI(X.messageText))):J="",this.TL=!0,g.bS(this.button,g.qX(J,[TxU]))):(n=g.f(n,Dl8))&&!this.G&&(J=n.phoneNumber? "tel:"+n.phoneNumber:"",this.TL=!0,g.bS(this.button,g.qX(J,[dl3])));var l;if(n=(l=K.disclaimerText)==null?void 0:l.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var x;this.update({label:(x=K.bodyText)==null?void 0:x.content,icon:iC(),disclaimer:n})}else{this.disclaimer.style.display="none";var V;this.update({label:(V=K.bodyText)==null?void 0:V.content,icon:iC()})}this.B.setTrackingParams(this.element,K.trackingParams||null);this.TL&&(this.Z={externalLinkData:{url:J}})}; geq=function(J,K){var n=v9();g.tn.call(this,J,{j:"div",V:"ytp-info-panel-detail-skrim",Y:[{j:"div",V:"ytp-info-panel-detail",D:{role:"dialog",id:n},Y:[{j:"div",V:"ytp-info-panel-detail-header",Y:[{j:"div",V:"ytp-info-panel-detail-title",hj:"{{title}}"},{j:"button",UM:["ytp-info-panel-detail-close","ytp-button"],D:{"aria-label":"Close"},Y:[g.zo()]}]},{j:"div",V:"ytp-info-panel-detail-body",hj:"{{body}}"},{j:"div",V:"ytp-info-panel-detail-items"}]}]},250);this.G=K;this.items=this.rQ("ytp-info-panel-detail-items"); this.X=new g.gY(this);this.itemData=[];this.U=n;this.T(this.rQ("ytp-info-panel-detail-close"),"click",this.MS);this.T(this.rQ("ytp-info-panel-detail-skrim"),"click",this.MS);this.T(this.rQ("ytp-info-panel-detail"),"click",function(X){X.stopPropagation()}); g.Z(this,this.X);this.B.createServerVe(this.element,this,!0);this.T(J,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",J.getVideoData());this.hide()}; cYp=function(J,K){J=g.z(J.itemData);for(var n=J.next();!n.done;n=J.next())n=n.value,n.B.logVisibility(n.element,K)}; Ulr=function(J,K){g.F.call(this,{j:"div",V:"ytp-info-panel-preview",D:{"aria-live":"assertive","aria-atomic":"true","aria-owns":K.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.pR(J.S()))},Y:[{j:"div",V:"ytp-info-panel-preview-text",hj:"{{text}}"},{j:"div",V:"ytp-info-panel-preview-chevron",hj:"{{chevron}}"}]});var n=this;this.B=J;this.N_=this.G=this.videoId=null;this.X=this.showControls=this.Z=!1;this.T(this.element,"click",function(){J.logClick(n.element);J.W$();Zc(K)}); this.fade=new g.ov(this,250,!1,100);g.Z(this,this.fade);this.B.createServerVe(this.element,this,!0);this.T(J,"videodatachange",this.onVideoDataChange);this.T(J,"presentingplayerstatechange",this.Vz);this.T(this.B,"paidcontentoverlayvisibilitychange",this.Fg);this.T(this.B,"infopaneldetailvisibilitychange",this.Fg);var X=J.getVideoData()||{};YIe(X)&&Gnd(this,X);this.T(J,"onShowControls",this.t3);this.T(J,"onHideControls",this.WD)}; Gnd=function(J,K){if(!K.kO||!J.B.RE()){var n=K.Ns||1E4,X=YIe(K);J.G?K.videoId&&K.videoId!==J.videoId&&(g.Jv(J.G),J.videoId=K.videoId,X?(t2q(J,n,K),J.HM()):(J.MS(),J.G.dispose(),J.G=null)):X&&(K.videoId&&(J.videoId=K.videoId),t2q(J,n,K),J.HM())}}; YIe=function(J){var K,n,X,l;return!!((K=J.nH)==null?0:(n=K.title)==null?0:n.content)||!!((X=J.nH)==null?0:(l=X.bodyText)==null?0:l.content)}; t2q=function(J,K,n){J.G&&J.G.dispose();J.G=new g.AT(J.KVG,K,J);g.Z(J,J.G);var X;K=((X=n.nH)==null?void 0:X.trackingParams)||null;J.B.setTrackingParams(J.element,K);var l;var x,V;if(n==null?0:(x=n.nH)==null?0:(V=x.title)==null?0:V.content){var v;X=(l=n.nH)==null?void 0:(v=l.title)==null?void 0:v.content;var Q,S;if((Q=n.nH)==null?0:(S=Q.bodyText)==null?0:S.content)X+=" \u2022 ";l=X}else l="";var r,C;n=((r=n.nH)==null?void 0:(C=r.bodyText)==null?void 0:C.content)||"";J.update({text:l+n,chevron:g.e3()})}; yYe=function(J,K){J.G&&(g.E(K,8)?(J.Z=!0,J.HM(),J.G.start()):(g.E(K,2)||g.E(K,64))&&J.videoId&&(J.videoId=null))}; XA=function(J){var K=null;try{K=J.toLocaleString("en",{style:"percent"})}catch(n){K=J.toLocaleString(void 0,{style:"percent"})}return K}; la=function(J,K){var n=0;J=g.z(J);for(var X=J.next();!(X.done||X.value.startTime>K);X=J.next())n++;return n===0?n:n-1}; Z2d=function(J,K){for(var n=0,X=g.z(J),l=X.next();!l.done;l=X.next()){l=l.value;if(K=l.timeRangeStartMillis&&K0?K[0]:null;var n=g.aN("ytp-chrome-bottom"),X=g.aN("ytp-ad-module");J.U=!(n==null||!n.contains(K));J.L=!(X==null||!X.contains(K));J.K=!(K==null||!K.hasAttribute("data-tooltip-target-fixed"));return K}; xjV=function(J,K,n){if(!J.N){if(K){J.tooltipRenderer=K;K=J.tooltipRenderer.text;var X=!1,l;(K==null?0:(l=K.runs)==null?0:l.length)&&K.runs[0].text&&(J.update({title:K.runs[0].text.toString()}),X=!0);g.Ei(J.title,X);K=J.tooltipRenderer.detailsText;l=!1;var x;if((K==null?0:(x=K.runs)==null?0:x.length)&&K.runs[0].text){X=K.runs[0].text.toString();x=X.indexOf("$TARGET_ICON");if(x>-1)if(J.tooltipRenderer.targetId){K=[];X=X.split("$TARGET_ICON");var V=new g.Qk({j:"span",V:"ytp-promotooltip-details-icon", Y:[Xnr[J.tooltipRenderer.targetId]]});g.Z(J,V);for(var v=[],Q=g.z(X),S=Q.next();!S.done;S=Q.next())S=new g.Qk({j:"span",V:"ytp-promotooltip-details-component",hj:S.value}),g.Z(J,S),v.push(S);X.length===2?(K.push(v[0].element),K.push(V.element),K.push(v[1].element)):X.length===1&&(x===0?(K.push(V.element),K.push(v[0].element)):(K.push(v[0].element),K.push(V.element)));x=K.length?K:null}else x=null;else x=X;if(x){if(typeof x!=="string")for(g.Kf(J.details),l=g.z(x),x=l.next();!x.done;x=l.next())J.details.appendChild(x.value); else J.update({details:x});l=!0}}g.Ei(J.details,l);l=J.tooltipRenderer.acceptButton;x=!1;var r,C,O;((r=g.f(l,g.Gt))==null?0:(C=r.text)==null?0:(O=C.runs)==null?0:O.length)&&g.f(l,g.Gt).text.runs[0].text&&(J.update({acceptButtonText:g.f(l,g.Gt).text.runs[0].text.toString()}),x=!0);g.Ei(J.acceptButton,x);r=J.tooltipRenderer.dismissButton;C=!1;var H,R,w;((H=g.f(r,g.Gt))==null?0:(R=H.text)==null?0:(w=R.runs)==null?0:w.length)&&g.f(r,g.Gt).text.runs[0].text&&(J.update({dismissButtonText:g.f(r,g.Gt).text.runs[0].text.toString()}), C=!0);g.Ei(J.dismissButton,C)}n&&(J.X=n);J.G=oaU(J);J.W=!1;J.B.S().J("web_player_hide_nitrate_promo_tooltip")||J.Yr(!0);l3H(J);J.Kv&&!J.GA&&(J.GA=!0,J.QU.b9(0));J.Z&&J.B.logVisibility(J.element,J.Kv)}}; $W=function(J){J.Yr(!1);J.Z&&J.B.logVisibility(J.element,J.Kv)}; jG3=function(J){var K,n,X,l=((K=g.f(J.acceptButton,g.Gt))==null?void 0:(n=K.text)==null?void 0:(X=n.runs)==null?void 0:X.length)&&!!g.f(J.acceptButton,g.Gt).text.runs[0].text,x,V,v;K=((x=g.f(J.dismissButton,g.Gt))==null?void 0:(V=x.text)==null?void 0:(v=V.runs)==null?void 0:v.length)&&!!g.f(J.dismissButton,g.Gt).text.runs[0].text;return l||K}; l3H=function(J){var K;if(!(K=!J.G)){K=J.G;var n=window.getComputedStyle(K);K=n.display==="none"||n.visibility==="hidden"||K.getAttribute("aria-hidden")==="true"}if(K||J.B.isMinimized())J.Yr(!1);else if(K=g.qa(J.G),K.width&&K.height){J.B.Ko(J.element,J.G);var X=J.B.S_().getPlayerSize().height;n=g.qa(J.rQ("ytp-promotooltip-container")).height;J.U?J.element.style.top=X-n-K.height-12+"px":J.K||(X=J.B.CI().height-n-K.height-12,J.element.style.top=X+"px");X=J.rQ("ytp-promotooltip-pointer");var l=g.aQ(J.G, J.B.getRootNode()),x=Number(J.element.style.left.replace(/[^\d\.]/g,""));J=J.B.isFullscreen()?18:12;X.style.left=l.x-x+K.width/2-J+"px";X.style.top=n+"px"}else J.Yr(!1)}; SK=function(J){g.F.call(this,{j:"button",UM:["ytp-replay-button","ytp-button"],D:{title:"Replay"},Y:[g.ms()]});this.B=J;this.T(J,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.RZ(J.getPlayerStateObject());wv(this.B,this.element,this)}; rM=function(J,K){K=K===void 0?240:K;g.F.call(this,{j:"button",UM:["ytp-button","ytp-search-button"],D:{title:"Search","data-tooltip-opaque":String(g.pR(J.S()))},Y:[{j:"div",V:"ytp-search-icon",hj:"{{icon}}"},{j:"div",V:"ytp-search-title",hj:"Search"}]});this.api=J;this.Z=K;this.visible=!1;this.updateValue("icon",{j:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},Y:[{j:"path",V:"ytp-svg-fill",D:{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"}}]}); J.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.G();this.T(J,"appresize",this.G);this.T(J,"videodatachange",this.G);wv(J,this.element,this)}; sF=function(J){g.F.call(this,{j:"div",V:"ytp-seek-overlay",Y:[{j:"div",UM:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-back"],Y:[{j:"div",UM:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],Y:[{j:"svg",D:{viewBox:"0 0 22 32",width:"22",height:"32"},Y:[{j:"path",D:{d:"M 18 4 L 6 16 L 18 28",stroke:"white","stroke-width":"4",fill:"none"}}]}]},{j:"div",V:"ytp-seek-overlay-duration",hj:"{{durationBack}}"}]},{j:"div",UM:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-forward"], Y:[{j:"div",V:"ytp-seek-overlay-duration",hj:"{{durationForward}}"},{j:"div",UM:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],Y:[{j:"svg",D:{viewBox:"0 0 22 32",width:"22",height:"32"},Y:[{j:"path",D:{d:"M 4 4 L 16 16 L 4 28",stroke:"white","stroke-width":"4",fill:"none"}}]}]}]},{j:"div",V:"ytp-seek-overlay-message",Y:[{j:"div",V:"ytp-seek-overlay-message-icon",hj:"{{icon}}"},{j:"div",V:"ytp-seek-overlay-message-text",hj:"{{text}}"}]}]});var K=this;this.B=J;this.W=0;this.G="hidden"; this.GA=0;this.L=this.rQ("ytp-seek-overlay-animation-back");this.K=this.rQ("ytp-seek-overlay-animation-forward");this.QG=this.rQ("ytp-seek-overlay-message");this.N=new g.AT(function(){VWF(K)},g.Qg(this.B.S().experiments,"web_player_seek_overlay_linger_duration")||1E3); g.Z(this,this.N);this.B.createClientVe(this.K,this,28240);this.B.createClientVe(this.L,this,28239);this.B.logVisibility(this.K,!0);this.B.logVisibility(this.L,!0);this.hide()}; hOU=function(J,K){J.Z=J.X.animate([{offset:0,opacity:K,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:1}],{duration:200,fill:"forwards"});J.Z.addEventListener("finish",function(){J.Z=void 0;J.N.start();J.G="lingering"})}; vaH=function(J,K,n){n=n===void 0?!1:n;var X=[],l={offset:0,transform:"translateX("+(J.U===-1?30:-30)+"px)"};n&&(l.opacity="0");X.push(l);n&&X.push({offset:.5,opacity:"1"});X.push({offset:1,transform:"translateX(0)"});n=K.animate(X,{duration:400,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});K.querySelector("path").animate([{offset:0,d:J.U===-1?'path("M 18 4 L 18 16 L 18 28")':'path("M 4 4 L 4 16 L 4 28")'},{offset:1,d:J.U===-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 n}; QG3=function(J){if((0,g.a)()-J.GA>=(g.Qg(J.B.S().experiments,"web_player_seek_overlay_additional_arrow_threshold")||200)){var K=J.X.querySelector(".ytp-seek-overlay-arrow-persistent").cloneNode(!0);K.classList.add("ytp-seek-overlay-arrow-additional");K.classList.remove("ytp-seek-overlay-arrow-persistent");J.X.appendChild(K);vaH(J,K,!0).addEventListener("finish",function(){K.remove()})}}; VWF=function(J,K,n){n=n===void 0?!0:n;J.Z=J.X.animate([{offset:0,opacity:K===void 0?1:K},{offset:1,opacity:0}],{duration:200,fill:"forwards",easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"});n&&(J.Z.addEventListener("finish",function(){J.Z=void 0;$j3(J);J.hide()}),J.G="fading-out")}; S5H=function(J){var K=Number(getComputedStyle(J.X).opacity);J.Z.cancel();J.Z=void 0;return K}; $j3=function(J){J.W=0;J.G="hidden";J.U=void 0;J.X=void 0;J.GA=0;J.N.stop();J.Z=void 0}; rr3=function(J,K,n){J.updateValue("text",K);if(n){a:{switch(n){case "PREMIUM_STANDALONE":K=kpp();break a;case "PREMIUM_STANDALONE_CAIRO":K=gdU();break a}K=void 0}J.updateValue("icon",K)}K=g.z(J.QG.getAnimations());for(n=K.next();!n.done;n=K.next())n.value.cancel();J.QG.animate([{opacity:0,offset:0},{offset:.3,opacity:1},{offset:.7,opacity:1},{offset:1,opacity:0}],{duration:1400}).addEventListener("finish",function(){J.updateValue("text","");J.updateValue("icon","")})}; g.CF=function(J,K,n,X){X=X===void 0?240:X;g.F.call(this,{j:"button",UM:["ytp-button","ytp-share-button"],D:{title:"Share","aria-haspopup":"true","aria-owns":n.element.id,"data-tooltip-opaque":String(g.pR(J.S()))},Y:[{j:"div",V:"ytp-share-icon",hj:"{{icon}}"},{j:"div",V:"ytp-share-title",hj:"Share"}]});this.api=J;this.G=K;this.X=n;this.U=X;this.Z=this.visible=!1;this.tooltip=this.G.o9();J.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.T(J,"videodatachange",this.WW); this.T(J,"videoplayerreset",this.WW);this.T(J,"appresize",this.WW);this.T(J,"presentingplayerstatechange",this.WW);this.WW();this.addOnDisposeCallback(g.zh(this.tooltip,this.element))}; sG7=function(J){var K=J.api.S(),n=g.U(J.api.getVideoData()),X=g.pR(K)&&g.pC(J.api)&&g.E(J.api.getPlayerStateObject(),128);K=K.X||K.disableSharing&&J.api.getPresentingPlayerType()!==2||!n.showShareButton||n.Ws||X||g.Eo(n)||J.Z;X=J.api.S_().getPlayerSize().width;return!!n.videoId&&X>=J.U&&!K}; CMF=function(J,K){K.name!=="InvalidStateError"&&K.name!=="AbortError"&&(K.name==="NotAllowedError"?(J.G.W$(),Zc(J.X,J.element,!1)):g.ko(K))}; H_8=function(J,K){var n=v9(),X=J.S();n={j:"div",V:"ytp-share-panel",D:{id:v9(),role:"dialog","aria-labelledby":n},Y:[{j:"div",V:"ytp-share-panel-inner-content",Y:[{j:"div",V:"ytp-share-panel-title",D:{id:n},hj:"Share"},{j:"a",UM:["ytp-share-panel-link","ytp-no-contextmenu"],D:{href:"{{link}}",target:X.K,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},hj:"{{linkText}}"},{j:"label",V:"ytp-share-panel-include-playlist",Y:[{j:"input",V:"ytp-share-panel-include-playlist-checkbox",D:{type:"checkbox", checked:"true"}},"Include playlist"]},{j:"div",V:"ytp-share-panel-loading-spinner",Y:[jc()]},{j:"div",V:"ytp-share-panel-service-buttons",hj:"{{buttons}}"},{j:"div",V:"ytp-share-panel-error",hj:"An error occurred while retrieving sharing information. Please try again later."}]},{j:"button",UM:["ytp-share-panel-close","ytp-button"],D:{title:"Close"},Y:[g.zo()]}]};g.tn.call(this,J,n,250);var l=this;this.moreButton=null;this.api=J;this.tooltip=K.o9();this.X=[];this.N=this.rQ("ytp-share-panel-inner-content"); this.closeButton=this.rQ("ytp-share-panel-close");this.T(this.closeButton,"click",this.MS);this.addOnDisposeCallback(g.zh(this.tooltip,this.closeButton));this.U=this.rQ("ytp-share-panel-include-playlist-checkbox");this.T(this.U,"click",this.WW);this.G=this.rQ("ytp-share-panel-link");this.addOnDisposeCallback(g.zh(this.tooltip,this.G));this.api.createClientVe(this.G,this,164503);this.T(this.G,"click",function(x){x.preventDefault();l.api.logClick(l.G);var V=l.api.getVideoUrl(!0,!0,!1,!1);V=O_3(l,V); g.x3(V,l.api,x)&&l.api.I4("SHARE_CLICKED")}); this.listen("click",this.gk);this.T(J,"videoplayerreset",this.hide);this.T(J,"fullscreentoggled",this.onFullscreenToggled);this.T(J,"onLoopRangeChange",this.Q4Q);this.hide()}; eO3=function(J,K){ROe(J);for(var n=K.links||K.shareTargets,X=0,l={},x=0;x0&&!A&&!c?(k.length===2&&(k=["noreferrer"]),g.Kl(H,w,O,k[0]),H=xCF()):(P=p.join(","),ws()&&H.navigator&&H.navigator.standalone&&O&&O!="_self"?(P=g.ME("A"),g.bS(P,w),P.target=O,B&&(P.rel="noreferrer"),((R=R.attributionsrc)||R==="")&&P.setAttribute("attributionsrc",R),R=document.createEvent("MouseEvent"), R.initMouseEvent("click",!0,!0,H,1),P.dispatchEvent(R),H=xCF()):B?(H=g.Kl(H,"",O,P),R=g.fu(w),H&&(H.opener=null,R===""&&(R="javascript:''"),R='',R=NX(R),(w=H.document)&&w.write&&(w.write(Jq(R)),w.close()))):((H=g.Kl(H,w,O,P))&&R.noopener&&(H.opener=null),H&&R.noreferrer&&(H.opener=null)));H&&(H.opener||(H.opener=window),H.focus());C.preventDefault()}}}(l)); l.w5.addOnDisposeCallback(g.zh(J.tooltip,l.w5.element));v==="Facebook"?J.api.createClientVe(l.w5.element,l.w5,164504):v==="Twitter"&&J.api.createClientVe(l.w5.element,l.w5,164505);J.T(l.w5.element,"click",function(r){return function(){J.api.logClick(r.w5.element)}}(l)); J.api.logVisibility(l.w5.element,!0);J.X.push(l.w5);X++}}var Q=K.more||K.moreLink,S=new g.F({j:"a",UM:["ytp-share-panel-service-button","ytp-button"],Y:[{j:"span",V:"ytp-share-panel-service-button-more",Y:[{j:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},Y:[{j:"rect",D:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{j:"path",D:{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"}}]}]}],D:{href:Q,target:"_blank",title:"More"}});S.listen("click",function(r){var C=Q;J.api.logClick(J.moreButton.element);C=O_3(J,C);g.x3(C,J.api,r)&&J.api.I4("SHARE_CLICKED")}); S.addOnDisposeCallback(g.zh(J.tooltip,S.element));J.api.createClientVe(S.element,S,164506);J.T(S.element,"click",function(){J.api.logClick(S.element)}); J.api.logVisibility(S.element,!0);J.X.push(S);J.moreButton=S;J.updateValue("buttons",J.X)}; O_3=function(J,K){var n={};g.pR(J.api.S())&&(g.v4(J.api,"addEmbedsConversionTrackingParams",[n]),K=g.Td(K,n));return K}; ROe=function(J){for(var K=g.z(J.X),n=K.next();!n.done;n=K.next())n=n.value,n.detach(),g.QD(n);J.X=[]}; OF=function(J){return J===void 0||J.startSec===void 0||J.endSec===void 0?!1:!0}; zOd=function(J,K){J.startSec+=K;J.endSec+=K}; PMV=function(J){wd.call(this,J);this.Z=this.G=this.isContentForward=this.W=!1;wnH(this);this.T(this.B,"changeProductsInVideoVisibility",this.UH5);this.T(this.B,"videodatachange",this.onVideoDataChange)}; I33=function(J){J.N&&J.PW.element.removeChild(J.N.element);J.N=void 0}; Bj8=function(J,K){return K.map(function(n){var X,l;if((n=(X=g.f(n,i_M))==null?void 0:(l=X.thumbnail)==null?void 0:l.thumbnails)&&n.length!==0)return n[0].url}).filter(function(n){return n!==void 0}).map(function(n){n=new g.F({j:"img", V:"ytp-suggested-action-product-thumbnail",D:{alt:"",src:n}});g.Z(J,n);return n})}; mjU=function(J,K){J.isContentForward=K;g.Qq(J.badge.element,"ytp-suggested-action-badge-content-forward",K)}; Hv=function(J){var K=J.isContentForward&&!J.V_();g.Qq(J.badge.element,"ytp-suggested-action-badge-preview-collapsed",K&&J.G);g.Qq(J.badge.element,"ytp-suggested-action-badge-preview-expanded",K&&J.Z)}; R6=function(J,K,n){return new g.KG(J*1E3,K*1E3,{priority:9,namespace:n})}; pnF=function(J){J.B.Uo("shopping_overlay_visible");J.B.Uo("shopping_overlay_preview_collapsed");J.B.Uo("shopping_overlay_preview_expanded");J.B.Uo("shopping_overlay_expanded")}; wnH=function(J){J.T(J.B,g.o4("shopping_overlay_visible"),function(){J.DT(!0)}); J.T(J.B,g.XD("shopping_overlay_visible"),function(){J.DT(!1)}); J.T(J.B,g.o4("shopping_overlay_expanded"),function(){J.QG=!0;zc(J)}); J.T(J.B,g.XD("shopping_overlay_expanded"),function(){J.QG=!1;zc(J)}); J.T(J.B,g.o4("shopping_overlay_preview_collapsed"),function(){J.G=!0;Hv(J)}); J.T(J.B,g.XD("shopping_overlay_preview_collapsed"),function(){J.G=!1;Hv(J)}); J.T(J.B,g.o4("shopping_overlay_preview_expanded"),function(){J.Z=!0;Hv(J)}); J.T(J.B,g.XD("shopping_overlay_preview_expanded"),function(){J.Z=!1;Hv(J)})}; DjH=function(J){g.F.call(this,{j:"div",V:"ytp-shorts-title-channel",Y:[{j:"a",V:"ytp-shorts-title-channel-logo",D:{href:"{{channelLink}}",target:J.S().K,"aria-label":"{{channelLogoLabel}}"}},{j:"div",V:"ytp-shorts-title-expanded-heading",Y:[{j:"div",V:"ytp-shorts-title-expanded-title",Y:[{j:"a",hj:"{{expandedTitle}}",D:{href:"{{channelTitleLink}}",target:J.S().K,tabIndex:"0"}}]}]}]});var K=this;this.api=J;this.G=this.rQ("ytp-shorts-title-channel-logo");this.channelName=this.rQ("ytp-shorts-title-expanded-title"); this.subscribeButton=null;J.createClientVe(this.G,this,36925);this.T(this.G,"click",function(n){K.api.logClick(K.G);g.Kl(window,Lzp(K));n.preventDefault()}); J.createClientVe(this.channelName,this,37220);this.T(this.channelName,"click",function(n){K.api.logClick(K.channelName);g.Kl(window,Lzp(K));n.preventDefault()}); Tjr(this);this.T(J,"videodatachange",this.WW);this.T(J,"videoplayerreset",this.WW);this.WW()}; Tjr=function(J){if(!J.api.S().o5){var K=g.U(J.api.getVideoData()),n=new g.b8("Subscribe",null,"Subscribed",null,!0,!1,K.OR,K.subscribed,"channel_avatar",null,J.api,!0);J.api.createServerVe(n.element,J);var X;J.api.setTrackingParams(n.element,((X=K.subscribeButtonRenderer)==null?void 0:X.trackingParams)||null);J.T(n.element,"click",function(){J.api.logClick(n.element)}); J.subscribeButton=n;g.Z(J,J.subscribeButton);J.subscribeButton.qQ(J.element)}}; Lzp=function(J){var K=J.api.S(),n=g.U(J.api.getVideoData());n=g.XM(K)+n.md;if(!g.pR(K))return n;K={};g.v4(J.api,"addEmbedsConversionTrackingParams",[K]);return g.Td(n,K)}; ua=function(J){g.tn.call(this,J,{j:"button",UM:["ytp-skip-intro-button","ytp-popup","ytp-button"],Y:[{j:"div",V:"ytp-skip-intro-button-text",hj:"Skip Intro"}]},100);var K=this;this.X=!1;this.G=new g.AT(function(){K.hide()},5E3); this.P3=this.t8=NaN;g.Z(this,this.G);this.W=function(){K.show()}; this.N=function(){K.hide()}; this.U=function(){var n=K.B.getCurrentTime();n>K.t8/1E3&&n0?{j:"svg",D:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},Y:[{j:"path",UM:["ytp-circle-arrow","ytp-svg-fill"],D:{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"}}, {j:"text",UM:["ytp-jump-button-text","ytp-svg-fill"],D:{x:"7.05",y:"15.05"}}]}:{j:"svg",D:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},Y:[{j:"path",UM:["ytp-circle-arrow","ytp-svg-fill"],D:{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"}}, {j:"text",UM:["ytp-jump-button-text","ytp-svg-fill"],D:{x:"6.5",y:"15"}}]}]});var n=this;this.B=J;this.G=K;this.Z=new g.AT(function(){n.X?(n.X=!1,n.Z.start()):n.element.classList.remove("ytp-jump-spin","backwards")},250); this.X=!1;(K=K>0)?this.B.createClientVe(this.element,this,36843):this.B.createClientVe(this.element,this,36844);var X=g.rK(K?"Seek forward $SECONDS seconds. (\u2192)":"Seek backwards $SECONDS seconds. (\u2190)",{SECONDS:Math.abs(this.G).toString()});this.update({title:X,"data-title-no-tooltip":X,"aria-keyshortcuts":K?"\u2192":"\u2190"});this.U=this.element.querySelector(".ytp-jump-button-text");this.U.textContent=Math.abs(this.G).toString();this.listen("click",this.onClick,this);wv(J,this.element, this)}; tWd=function(J,K){K?J.element.classList.add("ytp-jump-button-enabled"):J.element.classList.remove("ytp-jump-button-enabled");J.B.logVisibility(J.element,K);J.B.Kh()}; Bv=function(J,K){z8.call(this,J,K,"timedMarkerCueRange","View key moments");this.T(J,g.XD("timedMarkerCueRange"),this.MH);this.T(J,"updatemarkervisibility",this.updateVideoData)}; yrq=function(J){var K,n=(K=J.B.getVideoData())==null?void 0:K.wQ;if(n)for(J=J.U.fv,n=g.z(n),K=n.next();!K.done;K=n.next())if(K=J[K.value]){var X=void 0,l=void 0,x=void 0;if(((X=K.onTap)==null?void 0:(l=X.innertubeCommand)==null?void 0:(x=l.changeEngagementPanelVisibilityAction)==null?void 0:x.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return K}}; ml=function(J){var K=J.J("web_enable_pip_on_miniplayer");g.F.call(this,{j:"button",UM:["ytp-miniplayer-button","ytp-button"],D:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},Y:["{{icon}}"]});this.B=J;this.visible=!1;this.listen("click",this.onClick);this.T(J,"fullscreentoggled",this.WW);this.updateValue("title",g.P4(J,"Miniplayer","i"));this.update({"data-title-no-tooltip":"Miniplayer", icon:this.B.J("delhi_modern_web_player_icons")?{j:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},Y:[{j:"path",D:{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"}}]}:K?{j:"svg",D:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},Y:[{j:"g",D:{transform:"translate(96, -96) scale(0.8)"},Y:[{j:"path",Dv:!0,D:{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"}}]}]}:dHV()});wv(J,this.element,this);J.createClientVe(this.element,this,62946);this.WW()}; pF=function(J,K,n,X,l,x){x=x===void 0?!1:x;var V={j:"div",UM:["ytp-input-slider-section"],Y:[{j:"input",V:"ytp-input-slider",D:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};l&&V.Y.unshift(l);x&&V.UM.push("ytp-vertical-slider");g.F.call(this,V);this.X=J;this.U=K;this.N=n;this.initialValue=X;this.header=l;this.Z=this.rQ("ytp-input-slider");this.G=X?X:J;this.init();this.T(this.Z,"input",this.PV);this.T(this.Z,"keydown", this.zx)}; LF=function(J,K){J.G=K;J.updateValue("slidervalue",J.G);J.Z.valueAsNumber=J.G;Z_r(J,K)}; Z_r=function(J,K){J.Z.style.setProperty("--yt-slider-shape-gradient-percent",(K-J.X)/(J.U-J.X)*100+"%")}; f3d=function(J){var K=J.isMuted()?0:J.getVolume();pF.call(this,0,100,1,K,void 0,!0);this.B=J;this.L=Cf(this.It,10,this);this.W=!1;this.T(J,"onVolumeChange",this.onVolumeChange);this.T(this.element,"keydown",this.zx);this.T(this.element,"wheel",this.sF)}; WzM=function(J,K){g.F.call(this,{j:"div",D:{tabindex:"0",title:"Volume"},UM:["ytp-volume-popover"]});var n=this;this.isVisible=!1;this.tooltip=K.o9();this.Z=new f3d(J);g.Z(this,this.Z);this.Z.qQ(this.element);this.G=new g.AT(function(){T8(n,!1)},300); this.listen("mouseenter",function(){n.G.stop()}); this.listen("mouseleave",function(){n.G.start()}); this.listen("focus",function(){n.G.stop()}); this.T(this.Z.Z,"focus",function(){n.G.stop()}); this.listen("blur",function(){n.G.start()}); this.addOnDisposeCallback(g.zh(K.o9(),this.element,-120));g.Z(this,this.G)}; T8=function(J,K){J.element.classList.toggle("ytp-volume-popover-hovering",K);J.isVisible=K}; D4=function(J,K,n){n=n===void 0?!1:n;g.F.call(this,{j:"button",UM:["ytp-mute-button","ytp-button"],D:J.S().PW?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}"}:{"aria-disabled":"true","aria-haspopup":"true"},Y:[{j:"div",V:"ytp-volume-icon",hj:"{{icon}}"}]});var X=this;this.B=J;this.j_=n;this.Z=null;this.W=this.QG=this.L=this.cW=NaN;this.MQ=this.K=null;this.N=[];this.U=[];this.visible=!1;this.X=this.G=this.GA=null;J.J("delhi_modern_web_player")&& this.update({"data-priority":4});n=this.B.S();this.updateValue("icon",To());this.tooltip=K.o9();this.X=g.aN("ytp-volume-icon",this.element);this.Z=new g.Qk({j:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Y:[{j:"defs",Y:[{j:"clipPath",D:{id:"ytp-svg-volume-animation-mask"},Y:[{j:"path",D:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{j:"path",D:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{j:"path",V:"ytp-svg-volume-animation-mover",D:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]}, {j:"clipPath",D:{id:"ytp-svg-volume-animation-slash-mask"},Y:[{j:"path",V:"ytp-svg-volume-animation-mover",D:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{j:"path",Dv:!0,UM:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],D:{"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"}},{j:"path",Dv:!0,UM:["ytp-svg-fill","ytp-svg-volume-animation-hider"], D:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)",d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z",fill:"#fff"}}]});g.Z(this,this.Z);this.K=this.Z.rQ("ytp-svg-volume-animation-speaker");this.MQ=g.U(this.K.getAttribute("d"));this.N=g.fl("ytp-svg-volume-animation-mover",this.Z.element);this.U=g.fl("ytp-svg-volume-animation-hider",this.Z.element);this.PW=new As;g.Z(this,this.PW);this.Aj=new As;g.Z(this,this.Aj);this.T(J,"appresize",this.g1);this.T(J,"onVolumeChange",this.onVolumeChange);J.J("delhi_modern_web_player")? this.listen("click",this.Chm):this.listen("click",this.Va);n.PW?J.J("delhi_modern_web_player")?(this.G=new WzM(J,K),this.G.qQ(this.element),g.Z(this,this.G),this.T(this.X,"mouseover",function(){if(!X.B.oi()){var l;(l=X.G)!=null&&T8(l,!0);var x;(x=X.G)!=null&&x.G.stop()}}),this.T(this.X,"mouseout",function(){var l; (l=X.G)!=null&&l.G.start()}),this.addOnDisposeCallback(g.zh(K.o9(),this.element,-120))):this.addOnDisposeCallback(g.zh(K.o9(),this.element)):a3d(this); this.message=null;J.createClientVe(this.element,this,28662);this.g1(J.S_().getPlayerSize());this.setVolume(J.getVolume(),J.isMuted())}; EaU=function(J,K){J.cW=K;var n=J.MQ;K&&(n+=x4V(Fz3,q5e,K));J.K.setAttribute("d",n)}; b_r=function(J,K){J.QG=K;for(var n=20*K,X=0;X=3&&J.B.getPresentingPlayerType()!==2}; KJF=function(J){var K=mM(J.B.hx());return K?J.G?K.kL():K.p$():!1}; MWd=function(J){var K={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},n=J.playlist!=null&&J.playlist.kL();n=g.pC(J.B)&&(!J.G||n);var X=J.G&&g.kw(J.B),l=KJF(J),x=J.G&&J.B.getPresentingPlayerType()===5,V=g.P4(J.B,"Next","SHIFT+n"),v=g.P4(J.B,"Previous","SHIFT+p");if(x)K.title="Start video";else if(J.X)K.title="Replay";else if(n){var Q=null;J.playlist&&(Q=g.Sw(J.playlist,J.G?U4F(J.playlist):t0k(J.playlist)));if(Q){if(Q.videoId){var S=J.playlist.listId; K.url=J.B.S().getVideoUrl(Q.videoId,S?S.toString():void 0)}K.text=Q.title;K.duration=Q.lengthText?Q.lengthText:Q.lengthSeconds?g.Iv(Q.lengthSeconds):null;K.preview=Q.rK("mqdefault.jpg")}J.G?(K.title=V,K["data-title-no-tooltip"]="Next",K["aria-keyshortcuts"]="SHIFT+n"):(K.title=v,K["data-title-no-tooltip"]="Previous",K["aria-keyshortcuts"]="SHIFT+p")}else if(X){if(v=(Q=J.videoData)==null?void 0:g.NJ(Q))K.url=v.BH(),K.text=v.title,K.duration=v.lengthText?v.lengthText:v.lengthSeconds?g.Iv(v.lengthSeconds): null,K.preview=v.rK("mqdefault.jpg");K.title=V;K["data-title-no-tooltip"]="Next";K["aria-keyshortcuts"]="SHIFT+n"}K.disabled=!X&&!n&&!l&&!x;J.update(K);J.W=!!K.url;X||n||J.X||l||x?J.Z||(J.Z=g.zh(J.tooltip,J.element),J.N=J.listen("click",J.onClick,J)):J.Z&&(J.Z(),J.Z=null,J.rR(J.N),J.N=null);J.tooltip.Kh();g.Qq(J.element,"ytp-playlist-ui",J.G&&(n||J.B.J("web_hide_next_button")))}; ojd=function(J,K){g.F.call(this,{j:"div",V:"ytp-fine-scrubbing",Y:[{j:"div",V:"ytp-fine-scrubbing-draggable",Y:[{j:"div",V:"ytp-fine-scrubbing-thumbnails",D:{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}}"}}]},{j:"div",D:{"aria-hidden":"true"},V:"ytp-fine-scrubbing-cursor"},{j:"div",V:"ytp-fine-scrubbing-seek-time",D:{"aria-hidden":"true"}, hj:"{{seekTime}}"},{j:"div",V:"ytp-fine-scrubbing-play",Y:[B9()],D:{title:"Play from this position",role:"button"}},{j:"div",V:"ytp-fine-scrubbing-dismiss",Y:[g.zo()],D:{title:"Exit precise seeking",role:"button"}}]});var n=this;this.api=J;this.N=this.rQ("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.rQ("ytp-fine-scrubbing-dismiss");this.Aj=this.rQ("ytp-fine-scrubbing-draggable");this.playButton=this.rQ("ytp-fine-scrubbing-play");this.thumbnails=[];this.Z=[];this.j_=this.G=0;this.PW=void 0; this.GA=NaN;this.Cv=this.K=this.X=this.L=0;this.U=[];this.interval=this.frameCount=0;this.W=160;this.scale=1;this.kF=0;this.isEnabled=this.MQ=!1;nje(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.zh(K,this.dismissButton));this.addOnDisposeCallback(g.zh(K,this.playButton));this.cW=new g.Gc(this.Aj,!0);this.cW.subscribe("dragstart",this.dg,this);this.cW.subscribe("dragmove",this.vS,this);this.cW.subscribe("dragend",this.LF,this);this.T(J,"SEEK_COMPLETE",this.YZ);J.J("web_fix_fine_scrubbing_false_play")&& this.T(J,"rootnodemousedown",function(X){n.QG=X}); this.N.addEventListener("keydown",function(){}); g.Z(this,this.cW);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.N,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; nje=function(J,K){var n=g.Iv(K),X=g.rK("Seek to $PROGRESS",{PROGRESS:g.Iv(K,!0)});J.update({ariamin:0,ariamax:Math.floor(J.api.getDuration()),arianow:Math.floor(K),arianowtext:X,seekTime:n})}; Xld=function(J){J.GA=NaN;J.K=0;J.L=J.X}; jAk=function(J){var K=J.api.QZ();if(K){var n=90*J.scale,X=cF(K,160*J.scale);if(K=K.levels[X]){J.W=K.width;if(!J.U.length){X=[];for(var l=YY(K,K.Sg()),x=K.columns*K.rows,V=K.frameCount,v=0;v<=l;v++)for(var Q=VJ.U.length;)X= void 0,(X=J.thumbnails.pop())==null||X.dispose();for(;J.thumbnails.lengthn.length;)X=void 0,(X=J.Z.pop())==null||X.dispose(); for(;J.Z.length-n?-K/n*J.interval*.5:-(K+n/2)/n*J.interval}; Vqf=function(J){return-((J.N.offsetWidth||(J.frameCount-1)*J.W*J.scale)-J.G/2)}; lqU=function(){g.F.call(this,{j:"div",V:"ytp-fine-scrubbing-thumbnail"})}; xA7=function(){g.F.call(this,{j:"div",V:"ytp-fine-scrubbing-chapter-title",Y:[{j:"div",V:"ytp-fine-scrubbing-chapter-title-content",hj:"{{chapterTitle}}"}]})}; vjd=function(J){g.F.call(this,{j:"div",V:"ytp-heat-map-chapter",Y:[{j:"svg",V:"ytp-heat-map-svg",D:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},Y:[{j:"defs",Y:[{j:"clipPath",D:{id:"{{id}}"},Y:[{j:"path",V:"ytp-heat-map-path",D:{d:"",fill:"white"}}]},{j:"linearGradient",D:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},Y:[{j:"stop",D:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{j:"stop",D:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{j:"rect",V:"ytp-heat-map-graph",D:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{j:"rect",V:"ytp-heat-map-hover",D:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{j:"rect",V:"ytp-heat-map-play",D:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{j:"path",V:"ytp-modern-heat-map",D:{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=J;this.L=this.rQ("ytp-heat-map-svg");this.N=this.rQ("ytp-heat-map-path");this.U=this.rQ("ytp-heat-map-graph");this.W=this.rQ("ytp-heat-map-play");this.G=this.rQ("ytp-heat-map-hover");this.X=this.rQ("ytp-modern-heat-map");this.TL=!1;this.Z=60;J=""+g.oH(this);this.update({id:J});J="url(#"+J+")";this.U.setAttribute("clip-path",J);this.W.setAttribute("clip-path",J);this.G.setAttribute("clip-path", J)}; QA8=function(J,K){K>0&&(J.Z=K,J.L.style.height=J.Z+"px")}; cv=function(){g.F.call(this,{j:"div",V:"ytp-chapter-hover-container",Y:[{j:"div",V:"ytp-progress-bar-padding"},{j:"div",V:"ytp-progress-list",Y:[{j:"div",UM:["ytp-play-progress","ytp-swatch-background-color"]},{j:"div",V:"ytp-progress-linear-live-buffer"},{j:"div",V:"ytp-load-progress"},{j:"div",V:"ytp-hover-progress"},{j:"div",V:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.Z=this.rQ("ytp-progress-list");this.N=this.rQ("ytp-progress-linear-live-buffer"); this.U=this.rQ("ytp-ad-progress-list");this.W=this.rQ("ytp-load-progress");this.L=this.rQ("ytp-play-progress");this.X=this.rQ("ytp-hover-progress");this.G=this.rQ("ytp-chapter-hover-container")}; YW=function(J,K){g.c7(J.G,"width",K)}; $AU=function(J,K){g.c7(J.G,"margin-right",K+"px")}; SPf=function(){this.Z=this.position=this.X=this.G=this.U=this.width=NaN}; rhf=function(){g.F.call(this,{j:"div",V:"ytp-timed-marker"});this.G=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.UF=function(J,K){g.ro.call(this,{j:"div",V:"ytp-progress-bar-container",D:{"aria-disabled":"true"},Y:[{j:"div",UM:["ytp-heat-map-container"],Y:[{j:"div",V:"ytp-heat-map-edu"}]},{j:"div",UM:["ytp-progress-bar"],D:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},Y:[{j:"div",V:"ytp-chapters-container"},{j:"div",V:"ytp-timed-markers-container"},{j:"div",V:"ytp-clip-start-exclude"}, {j:"div",V:"ytp-clip-end-exclude"},{j:"div",V:"ytp-scrubber-container",Y:[{j:"div",UM:["ytp-scrubber-button","ytp-swatch-background-color"],Y:[{j:"div",V:"ytp-scrubber-pull-indicator"},{j:"img",UM:["ytp-decorated-scrubber-button"]}]}]}]},{j:"div",UM:["ytp-fine-scrubbing-container"],Y:[{j:"div",V:"ytp-fine-scrubbing-edu"}]},{j:"div",V:"ytp-bound-time-left",hj:"{{boundTimeLeft}}"},{j:"div",V:"ytp-bound-time-right",hj:"{{boundTimeRight}}"},{j:"div",V:"ytp-clip-start",D:{title:"{{clipstarttitle}}"},hj:"{{clipstarticon}}"}, {j:"div",V:"ytp-clip-end",D:{title:"{{clipendtitle}}"},hj:"{{clipendicon}}"}]});this.api=J;this.oO=!1;this.Nk=this.CL=this.wQ=this.N=this.hd=0;this.CH=null;this.o2=!1;this.kF={};this.fU={};this.clipEnd=Infinity;this.o5=this.rQ("ytp-clip-end");this.nE=new g.Gc(this.o5,!0);this.C9=this.rQ("ytp-clip-end-exclude");this.f9=this.rQ("ytp-clip-start-exclude");this.clipStart=0;this.wN=this.rQ("ytp-clip-start");this.F2=new g.Gc(this.wN,!0);this.GA=this.vW=0;this.progressBar=this.rQ("ytp-progress-bar");this.iR= {};this.fv={};this.Fq=this.rQ("ytp-chapters-container");this.vO=this.rQ("ytp-timed-markers-container");this.G=[];this.W=[];this.kO={};this.k7=null;this.MQ=-1;this.Gi=this.PW=0;this.nH=this.L=null;this.H3=this.rQ("ytp-scrubber-button");this.Aj=this.rQ("ytp-decorated-scrubber-button");this.nA=this.rQ("ytp-scrubber-container");this.Dm=new g.Ll;this.PM=0;this.RH=new SPf;this.X=new kD(0,0);this.nU=null;this.K=this.Pp=!1;this.t8=null;this.QG=this.rQ("ytp-heat-map-container");this.zL=this.rQ("ytp-heat-map-edu"); this.U=[];this.heatMarkersDecorations=[];this.md=this.rQ("ytp-fine-scrubbing-container");this.ih=this.rQ("ytp-fine-scrubbing-edu");this.Z=void 0;this.j_=this.P3=this.Cv=!1;this.tooltip=K.o9();this.addOnDisposeCallback(g.zh(this.tooltip,this.o5));g.Z(this,this.nE);this.nE.subscribe("hoverstart",this.yr,this);this.nE.subscribe("hoverend",this.fB,this);this.T(this.o5,"click",this.dl);this.addOnDisposeCallback(g.zh(this.tooltip,this.wN));g.Z(this,this.F2);this.F2.subscribe("hoverstart",this.yr,this); this.F2.subscribe("hoverend",this.fB,this);this.T(this.wN,"click",this.dl);sAe(this);this.T(J,"resize",this.s_);this.T(J,"presentingplayerstatechange",this.yK);this.T(J,"videodatachange",this.JL);this.T(J,"videoplayerreset",this.fb);this.T(J,"cuerangesadded",this.DpA);this.T(J,"cuerangesremoved",this.bHj);this.T(J,"onLoopRangeChange",this.sN);this.T(J,"innertubeCommand",this.onClickCommand);this.T(J,"onRetroModeChanged",this.sZx);this.T(J,g.o4("timedMarkerCueRange"),this.qoF);this.T(J,"updatemarkervisibility", this.I6);this.T(J,"serverstitchedvideochange",this.KW_);this.updateVideoData(J.getVideoData(),!0);this.sN(J.getLoopRange());G8(this)&&!this.Z&&(this.Z=new ojd(this.api,this.tooltip),J=g.W7(this.element).x||0,this.Z.s_(J,this.N),this.Z.qQ(this.md),g.Z(this,this.Z),this.T(this.Z.dismissButton,"click",this.Cr),this.T(this.Z.playButton,"click",this.Fd),this.T(this.Z.element,"dblclick",this.Fd));this.api.createClientVe(this.QG,this,139609,!0);this.api.createClientVe(this.zL,this,140127,!0);this.api.createClientVe(this.ih, this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)}; sAe=function(J){if(J.G.length===0){var K=new cv;J.G.push(K);g.Z(J,K);K.qQ(J.Fq,0)}for(;J.G.length>1;)J.G.pop().dispose();YW(J.G[0],"100%");J.G[0].startTime=0;J.G[0].title=""}; Cz3=function(J){var K=K===void 0?NaN:K;var n=new vjd(J.api);J.U.push(n);g.Z(J,n);n.qQ(J.QG);K>=0&&(n.element.style.width=K+"px")}; OiF=function(J){for(;J.W.length;)J.W.pop().dispose()}; RIf=function(J){var K,n,X,l,x;return(x=g.f((l=g.f((K=J.getWatchNextResponse())==null?void 0:(n=K.playerOverlays)==null?void 0:(X=n.playerOverlayRenderer)==null?void 0:X.decoratedPlayerBarRenderer,i7))==null?void 0:l.playerBar,Hid))==null?void 0:x.chapters}; uvf=function(J){for(var K=J.G,n=[],X=0;X=V&&w<=r&&x.push(O)}Q>0&&(J.QG.style.height=Q+"px");V=J.U[X];r=x;O=l;R=Q;w=X===0;w=w===void 0?!1:w;QA8(V,R);C=r;H=V.Z;w=w===void 0?!1:w;var P=1E3/C.length,B=[];B.push({x:0,y:100});for(var p=0;p0&&(n=x[x.length-1])}g.tI(J);v=[];K=g.z(K.heatMarkersDecorations||[]);for(l=K.next();!l.done;l=K.next())if(l=g.f(l.value,BQd))Q=l.label,X=n=S=void 0,v.push({visibleTimeRangeStartMillis:(S=l.visibleTimeRangeStartMillis)!=null?S:-1,visibleTimeRangeEndMillis:(n=l.visibleTimeRangeEndMillis)!=null?n:-1,decorationTimeMillis:(X=l.decorationTimeMillis)!=null?X:NaN,label:Q?g.Oe(Q):""});J.heatMarkersDecorations=v}}; wlf=function(J,K){J.W.push(K);g.Z(J,K);K.qQ(J.vO,J.vO.children.length)}; Pzk=function(J,K){K=g.z(K);for(var n=K.next();!n.done;n=K.next()){n=n.value;var X=yo(J,n.timeRangeStartMillis/(J.X.G*1E3),Z4(J)),l=J.api.J("delhi_modern_web_player")?.667:.6;g.c7(n.element,"transform","translateX("+X+"px) scaleX("+l+")")}}; eIU=function(J,K){var n=0,X=!1;K=g.z(K);for(var l=K.next();!l.done;l=K.next()){l=l.value;if(g.f(l,plp)){l=g.f(l,plp);var x={startTime:NaN,title:null,onActiveCommand:void 0},V=l.title;x.title=V?g.Oe(V):"";V=l.timeRangeStartMillis;V!=null&&(x.startTime=V);x.onActiveCommand=l.onActiveCommand;l=x;n===0&&l.startTime!==0&&(J.G[n].startTime=0,J.G[n].title="",J.G[n].onActiveCommand=l.onActiveCommand,n++,X=!0);J.G.length<=n&&(x=new cv,J.G.push(x),g.Z(J,x),x.qQ(J.Fq,J.Fq.children.length));J.G[n].startTime= l.startTime;J.G[n].title=l.title?l.title:"";J.G[n].onActiveCommand=l.onActiveCommand;J.G[n].index=X?n-1:n}n++}for(;n=0;X--)if(J.G[X].width>0){$AU(J.G[X],0);var l=Math.floor(J.G[X].width);J.G[X].width=l;YW(J.G[X],l+"px");break}J.G[n].width=0;YW(J.G[n],"0")}else n===J.G.length-1?(X=Math.floor(J.G[n].width+K),J.G[n].width=X,YW(J.G[n],X+"px")):(K=J.G[n].width+K,X=Math.round(K),K-=X,J.G[n].width=X,YW(J.G[n],X+"px"));n=0;if(J.U.length===J.G.length)for(K=0;K< J.U.length;K++)X=J.G[K].width,J.U[K].element.style.width=X+"px",J.U[K].element.style.left=n+"px",n+=X+Wv(J);J.api.J("delhi_modern_web_player")&&(J.G.length===1?J.G[0].Z.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(J.G[0].Z.classList.remove("ytp-progress-bar-end"),J.G[0].Z.classList.add("ytp-progress-bar-start"),J.G[J.G.length-1].Z.classList.add("ytp-progress-bar-end")))}; LJf=function(J,K){var n=0,X=!1,l=J.G.length,x=J.X.G*1E3;x===0&&(x=J.api.getProgressState().seekableEnd*1E3);if(x>0&&J.N>0){for(var V=J.N-Wv(J)*J.PW,v=J.Gi===0?3:V*J.Gi,Q=g.z(J.G),S=Q.next();!S.done;S=Q.next())S.value.width=0;for(;n1);S=(x===0?0:Q/x*V)+J.G[n].width;if(S>v)J.G[n].width=S;else{J.G[n].width=0;var r=J,C=n,O=r.G[C-1];O!==void 0&&O.width>0? O.width+=S:CJ.Gi&&(J.Gi=Q/x),X=!0)}n++}}return X}; fF=function(J){if(J.N){var K=J.api.getProgressState(),n=J.api.getVideoData();if(!(n&&n.enableServerStitchedDai&&n.W5)||isFinite(K.current)){var X;if(((X=J.api.getVideoData())==null?0:q2(X))&&K.airingStart&&K.airingEnd)var l=a6(J,K.airingStart,K.airingEnd);else if(J.api.getPresentingPlayerType()===2){var x,V,v;l=(n=(l=J.api.getVideoData())==null?void 0:(x=l.getPlayerResponse())==null?void 0:(V=x.playerConfig)==null?void 0:(v=V.webPlayerConfig)==null?void 0:v.skippableAdProgressBarDuration)?a6(J,K.seekableStart, n/1E3):a6(J,K.seekableStart,K.seekableEnd)}else l=a6(J,K.seekableStart,K.seekableEnd);x=gf(l,K.loaded,0);K=gf(l,K.current,0);V=J.X.Z!==l.Z||J.X.G!==l.G;J.X=l;FA(J,K,x);V&&TQf(J);DAe(J)}}}; a6=function(J,K,n){return dAq(J)?new kD(Math.max(K,J.nU.startTimeMs/1E3),Math.min(n,J.nU.endTimeMs/1E3)):new kD(K,n)}; gje=function(J,K){var n,X,l;K=g.f((n=K.getWatchNextResponse())==null?void 0:(X=n.playerOverlays)==null?void 0:(l=X.playerOverlayRenderer)==null?void 0:l.decoratedPlayerBarRenderer,i7);if(K==null?0:K.progressColor)for(n=0;n1){n=q$(J,K.X,!0);for(var X=0,l=0;l0&&(X+=J.G[l].width,X+=Wv(J));n=(J.G[n].startTime+(K.X-X)/J.G[n].width*((n===J.G.length-1?J.X.G*1E3:J.G[n+1].startTime)-J.G[n].startTime))/1E3||0}return n}; ba=function(J,K,n,X,l){K=K<0?0:Math.floor(Math.min(K,J.api.getDuration())*1E3);n=n<0?0:Math.floor(Math.min(n,J.api.getDuration())*1E3);J=J.progressBar.visualElement;X={seekData:{startMediaTimeMs:K,endMediaTimeMs:n,seekSource:X}};(K=g.i2())&&g.NM(Nq)(void 0,K,J,l,X,void 0)}; YPf=function(J,K,n){if(n>=J.G.length)return!1;var X=J.N-Wv(J)*J.PW;return Math.abs(K-J.G[n].startTime/1E3)/J.X.G*X<4}; TQf=function(J){J.H3.style.removeProperty("height");for(var K=g.z(Object.keys(J.kF)),n=K.next();!n.done;n=K.next())GTk(J,n.value);AI(J);FA(J,J.GA,J.vW)}; Z4=function(J){var K=J.Dm.x;K=g.BK(K,0,J.N);J.RH.update(K,J.N);return J.RH}; N$=function(J){return(J.K?135:90)-M$(J)}; M$=function(J){var K=48,n=J.api.S();J.api.J("delhi_modern_web_player")?K=J.K?96:68:J.K?K=54:g.pR(n)&&!n.Z&&(K=40);return K}; FA=function(J,K,n){J.GA=K;J.vW=n;var X=Z4(J),l=J.X.G;var x=J.X;x=x.Z+J.GA*x.getLength();var V=g.rK("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.Iv(x,!0),DURATION:g.Iv(l,!0)}),v=la(J.G,x*1E3);v=J.G[v].title;J.update({ariamin:Math.floor(J.X.Z),ariamax:Math.floor(l),arianow:Math.floor(x),arianowtext:v?v+" "+V:V});l=J.clipStart;x=J.clipEnd;J.nU&&J.api.getPresentingPlayerType()!==2&&(l=J.nU.startTimeMs/1E3,x=J.nU.endTimeMs/1E3);l=gf(J.X,l,0);v=gf(J.X,x,1);V=J.api.getVideoData();x=g.BK(K,l,v);n=(V==null? 0:g.WD(V))?1:g.BK(n,l,v);K=yo(J,K,X);g.c7(J.nA,"transform","translateX("+K+"px)");J.api.J("delhi_modern_web_player")&&J.api.J("delhi_modern_web_player_cutout")&&UAq(J,K);J0(J,X,l,x,"PLAY_PROGRESS");(V==null?0:q2(V))?(K=J.api.getProgressState().seekableEnd)&&J0(J,X,x,gf(J.X,K),"LIVE_BUFFER"):J0(J,X,l,n,"LOAD_PROGRESS");if(J.api.J("web_player_heat_map_played_bar")){var Q;(Q=J.U[0])!=null&&Q.W.setAttribute("width",(x*100).toFixed(2)+"%")}}; UAq=function(J,K){J.api.getPresentingPlayerType()!==1?J.Fq.style.removeProperty("clip-path"):(K||(K=yo(J,J.GA,Z4(J))),J.Fq.style.clipPath='path("'+(J.o2?tqU(J,8,K,J.K?50:36,0,6):tqU(J,4,K,J.K?34:24,2,3))+'")')}; tqU=function(J,K,n,X,l,x){var V=n-X/2;n+=X/2;K+=l;return"M 0 "+l+" L 0 "+(K+" L ")+(V+" "+K+" C ")+(V+x+" "+K+" "+(V+x)+" "+l+" "+V+" "+l+" L 0 ")+(l+" M ")+(n+" "+l+" L ")+(J.N+" "+l+" L ")+(J.N+" "+K+" L ")+(n+" "+K+" C ")+(n-x+" "+K+" "+(n-x)+" "+l+" "+n+" "+l)}; J0=function(J,K,n,X,l){var x=J.G.length,V=K.G-J.PW*Wv(J),v=n*V;n=q$(J,v);var Q=X*V;V=q$(J,Q);l==="HOVER_PROGRESS"&&(V=q$(J,K.G*X,!0),Q=K.G*X-yh7(J,K.G*X)*Wv(J));X=Math.max(v-ZiF(J,n),0);for(v=n;v=J.G.length)return J.N;for(var n=0,X=0;X0||J.C9.clientWidth>0?(x=K.clientWidth/n,J=-1*J.f9.clientWidth/n):(x/=n,J=-1*J.G[l].element.offsetLeft/n),g.c7(K,"background-size",x+"px"),g.c7(K,"background-position-x",J+"px"))}; Kt=function(J,K,n,X,l){l||J.api.S().Z?K.style.width=n+"px":g.c7(K,"transform","scalex("+(X?n/X:0)+")")}; q$=function(J,K,n){var X=0;(n===void 0?0:n)&&(K-=yh7(J,K)*Wv(J));n=g.z(J.G);for(var l=n.next();!l.done;l=n.next()){l=l.value;if(K>l.width)K-=l.width;else break;X++}return X===J.G.length?X-1:X}; yo=function(J,K,n){var X=K*J.X.G*1E3;for(var l=-1,x=g.z(J.G),V=x.next();!V.done;V=x.next())V=V.value,X>V.startTime&&V.width>0&&l++;X=l<0?0:l;l=n.G-Wv(J)*J.PW;return K*l+Wv(J)*X+n.U}; yh7=function(J,K){for(var n=J.G.length,X=0,l=g.z(J.G),x=l.next();!x.done;x=l.next())if(x=x.value,x.width!==0)if(K>x.width)K-=x.width,K-=Wv(J),X++;else break;return X===n?n-1:X}; g.aqH=function(J,K,n,X){var l=J.N!==n,x=J.K!==X;J.hd=K;J.N=n;J.K=X;G8(J)&&(K=J.Z)!=null&&(K.scale=X?1.5:1);TQf(J);J.G.length===1&&(J.G[0].width=n||0);l&&g.tI(J);J.Z&&x&&G8(J)&&(J.Z.isEnabled&&(n=J.K?135:90,X=n-M$(J),J.md.style.height=n+"px",g.c7(J.QG,"transform","translateY("+-X+"px)"),g.c7(J.progressBar,"transform","translateY("+-X+"px)")),jAk(J.Z))}; AI=function(J){var K=!!J.nU&&J.api.getPresentingPlayerType()!==2,n=J.clipStart,X=J.clipEnd,l=!0,x=!0;K&&J.nU?(n=J.nU.startTimeMs/1E3,X=J.nU.endTimeMs/1E3):(l=n>J.X.Z,x=J.X.G>0&&XJ.GA);g.Qq(J.H3,"ytp-scrubber-button-hover",n===X&&J.G.length>1);if(J.api.J("web_player_heat_map_played_bar")){var x;(x=J.U[0])!=null&&x.G.setAttribute("width",(K.Z*100).toFixed(2)+"%")}}}; GTk=function(J,K){var n=J.kF[K];K=J.fU[K];var X=Z4(J),l=gf(J.X,n.start/1E3,0),x=eZU(n,J.K)/X.width;var V=gf(J.X,n.end/1E3,1);x!==Number.POSITIVE_INFINITY&&(l=g.BK(l,0,V-x));V=Math.min(V,l+x);n.color&&(K.style.background=n.color);n=l;K.style.left=Math.max(n*X.G+X.U,0)+"px";Kt(J,K,g.BK((V-n)*X.G+X.U,0,X.width),X.width,!0)}; FJd=function(J,K){var n=K.getId();J.kF[n]===K&&(g.oF(J.fU[n]),delete J.kF[n],delete J.fU[n])}; G8=function(J){var K=g.AS(J.api.S())&&(J.api.J("web_shorts_pip")||J.api.J("web_watch_pip")),n;return!((n=J.api.getVideoData())==null?0:n.isLivePlayback)&&!J.api.isMinimized()&&!J.api.isInline()&&(!J.api.oP()||!K)}; nt=function(J){J.Z&&(J.Z.disable(),J.wQ=0,J.QG.style.removeProperty("transform"),J.progressBar.style.removeProperty("transform"),J.md.style.removeProperty("height"),J.element.parentElement&&J.element.parentElement.style.removeProperty("height"))}; qPp=function(J,K){var n=K/N$(J)*M$(J);g.c7(J.progressBar,"transform","translateY("+-K+"px)");g.c7(J.QG,"transform","translateY("+-K+"px)");g.c7(J.md,"transform","translateY("+n+"px)");J.md.style.height=K+n+"px";J.element.parentElement&&(J.element.parentElement.style.height=M$(J)-n+"px")}; Ej3=function(J,K){K?J.L||(J.element.removeAttribute("aria-disabled"),J.L=new g.Gc(J.progressBar,!0),J.L.subscribe("hovermove",J.P_j,J),J.L.subscribe("hoverend",J.BRQ,J),J.L.subscribe("dragstart",J.jZG,J),J.L.subscribe("dragmove",J.NRm,J),J.L.subscribe("dragend",J.o4d,J),J.api&&J.api.J("delhi_modern_web_player")&&J.api.J("delhi_modern_web_player_cutout")&&(J.nH=new g.Gc(J.progressBar,!0),J.nH.subscribe("hoverstart",function(){J.o2=!0;UAq(J)},J),J.nH.subscribe("hoverend",function(){J.o2=!1; UAq(J)},J)),J.t8=J.listen("keydown",J.mL)):J.L&&(J.element.setAttribute("aria-disabled","true"),J.rR(J.t8),J.L.cancel(),J.L.dispose(),J.L=null)}; Wv=function(J){return J.api.J("delhi_modern_web_player")?4:J.K?3:2}; dAq=function(J){var K;return!((K=J.nU)==null||!K.postId)&&J.api.getPresentingPlayerType()!==2}; o_=function(J,K){g.F.call(this,{j:"button",UM:["ytp-remote-button","ytp-button"],D:{title:"Play on TV","aria-haspopup":"true","data-priority":"10"},hj:"{{icon}}"});this.B=J;this.Zv=K;this.G=null;this.T(J,"onMdxReceiversChange",this.WW);this.T(J,"presentingplayerstatechange",this.WW);this.T(J,"appresize",this.WW);J.createClientVe(this.element,this,139118);this.WW();this.listen("click",this.Z,this);wv(J,this.element,this)}; Xg=function(J,K){g.F.call(this,{j:"button",UM:["ytp-button","ytp-settings-button"],D:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":v9(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},Y:[J.J("delhi_modern_web_player_icons")?{j:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},Y:[{j:"path",D:{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.p7()]});this.B=J;this.Zv=K;this.Z=!0;this.listen("click",this.X);this.T(J,"onPlaybackQualityChange",this.updateBadge);this.T(J,"videodatachange",this.updateBadge);this.T(J,"webglsettingschanged",this.updateBadge);this.T(J,"appresize",this.G);wv(J,this.element,this);this.B.createClientVe(this.element,this,28663);this.updateBadge();this.G(J.S_().getPlayerSize())}; bi8=function(J,K){J.Z=!!K;J.G(J.B.S_().getPlayerSize())}; lp=function(J,K){oI.call(this,"Annotations",g.hf.q4);this.B=J;this.Zv=K;this.G=!1;J.J("web_settings_menu_icons")&&this.setIcon({j:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},Y:[{j:"path",D:{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.T(J,"videodatachange",this.WW);this.T(J,"onApiChange",this.WW);this.subscribe("select",this.onSelect,this);this.WW()}; xZ=function(J,K){g.gd.call(this,"Audio track",g.hf.AUDIO,J,K);this.B=J;this.tracks={};g.jv(this.element,"ytp-audio-menu-item");this.countLabel=new g.F({j:"div",Y:[{j:"span",hj:"Audio track"},{j:"span",V:"ytp-menuitem-label-count",hj:"{{content}}"}]});J.J("web_settings_menu_icons")&&this.setIcon(DHU());g.Z(this,this.countLabel);g.W4(this,this.countLabel);this.T(J,"videodatachange",this.WW);this.T(J,"onPlaybackAudioChange",this.WW);this.WW()}; j0=function(J,K){oI.call(this,"Autoplay",g.hf.Pi);this.B=J;this.Zv=K;this.G=!1;this.X=[];this.T(J,"presentingplayerstatechange",this.Z);this.subscribe("select",this.onSelect,this);J.createClientVe(this.element,this,113682);this.Z()}; AhV=function(J,K){g.at.call(this,g.FR({"aria-haspopup":"false"}),0,"More options");this.B=J;this.Zv=K;this.T(this.element,"click",this.onClick);this.Zv.qH(this)}; Mqf=function(J,K){var n;g.AS(J.S())&&(n={j:"div",V:"ytp-panel-footer-content",Y:[{j:"span",hj:"Adjust download quality from your "},{j:"a",V:"ytp-panel-footer-content-link",hj:"Settings",D:{href:"/account_downloads"}}]});g.gd.call(this,"Quality",g.hf.q9,J,K,void 0,void 0,n);this.B=J;this.Aj={};this.K={};this.U={};this.cW=new Set;this.G=this.N=!1;this.W="unknown";this.GA="";this.QG=new g.qo;g.Z(this,this.QG);this.N=this.B.J("web_player_use_new_api_for_quality_pullback");this.G=this.B.J("web_player_enable_premium_hbr_playback_cap"); J.J("web_settings_menu_icons")&&this.setIcon({j:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},Y:[{j:"path",D:{d:"M15,17h6v1h-6V17z M11,17H3v1h8v2h1v-2v-1v-2h-1V17z M14,8h1V6V5V3h-1v2H3v1h11V8z M18,5v1h3V5H18z M6,14h1v-2v-1V9H6v2H3v1 h3V14z M10,12h11v-1H10V12z",fill:"white"}}]});g.jv(this.Z.element,"ytp-quality-menu");this.T(J,"videodatachange",this.rd);this.T(J,"videoplayerreset",this.rd);this.T(J,"onPlaybackQualityChange",this.ID);this.rd();J.createClientVe(this.element,this,137721)}; JRe=function(J,K,n){var X=J.Aj[K],l=g.G2[K];return NQ7(J,X?X.qualityLabel:l?l+"p":"Auto",K,n)}; KaH=function(J,K,n,X,l){var x=(K=J.G?J.U[K]:J.K[K])&&K.quality,V=K&&K.qualityLabel;V=V?V:"Auto";X&&(V="("+V);J=NQ7(J,V,x||"",l);X&&J.Y.push(")");(X=(X=K&&K.paygatedQualityDetails)&&X.paygatedIndicatorText)&&n&&J.Y.push({j:"div",V:"ytp-premium-label",hj:X});return J}; NQ7=function(J,K,n,X){K={j:"span",UM:X,Y:[K]};var l;X="ytp-swatch-color";if(J.N||J.G)X="ytp-swatch-color-white";n==="highres"?l="8K":n==="hd2880"?l="5K":n==="hd2160"?l="4K":n.indexOf("hd")===0&&n!=="hd720"&&(l="HD");l&&(K.Y.push(" "),K.Y.push({j:"sup",V:X,hj:l}));return K}; Vm=function(J){pF.call(this,J.getAvailablePlaybackRates()[0],J.getAvailablePlaybackRates()[J.getAvailablePlaybackRates().length-1],.05,J.getPlaybackRate(),{j:"div",V:"ytp-speedslider-indicator-container",Y:[{j:"div",V:"ytp-speedslider-badge"},{j:"p",V:"ytp-speedslider-text"}]});this.B=J;this.L=Cf(this.K,50,this);g.jv(this.Z,"ytp-speedslider");this.W=this.rQ("ytp-speedslider-text");this.QG=this.rQ("ytp-speedslider-badge");n$f(this);this.T(this.Z,"change",this.GA)}; n$f=function(J){J.W.textContent=J.G+"x";J.QG.classList.toggle("ytp-speedslider-premium-badge",J.G>2&&J.B.J("enable_web_premium_varispeed"))}; h0=function(J,K,n,X,l,x,V){g.F.call(this,{j:"div",V:"ytp-slider-section",D:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},Y:[{j:"div",V:"ytp-slider",Y:[{j:"div",V:"ytp-slider-handle"}]}]});this.L=J;this.K=K;this.Z=n;this.X=X;this.GA=l;this.MQ=x;this.range=this.X-this.Z;this.PW=this.rQ("ytp-slider-section");this.U=this.rQ("ytp-slider");this.QG=this.rQ("ytp-slider-handle");this.W=new g.Gc(this.U, !0);this.G=V?V:n;g.Z(this,this.W);this.W.subscribe("dragmove",this.OF,this);this.T(this.element,"keydown",this.DH);this.T(this.element,"wheel",this.zP);this.init()}; vS=function(J){h0.call(this,.05,.05,J.getAvailablePlaybackRates()[0],J.getAvailablePlaybackRates()[J.getAvailablePlaybackRates().length-1],150,20,J.getPlaybackRate());this.B=J;this.N=g.ME("P");this.cW=Cf(this.Aj,50,this);g.jv(this.U,"ytp-speedslider");g.jv(this.N,"ytp-speedslider-text");J=this.N;var K=this.U;K.parentNode&&K.parentNode.insertBefore(J,K.nextSibling);o$8(this);this.T(this.B,"onPlaybackRateChange",this.updateValues)}; o$8=function(J){J.N.textContent=XqH(J,J.G)+"x"}; XqH=function(J,K){J=Number(g.BK(K,J.Z,J.X).toFixed(2));K=Math.floor((J+.001)*100%5+2E-15);var n=J;K!==0&&(n=J-K*.01);return Number(n.toFixed(2))}; l_3=function(J){g.ro.call(this,{j:"div",V:"ytp-speedslider-component"});J.J("web_settings_use_input_slider")?this.G=new Vm(J):this.G=new vS(J);g.Z(this,this.G);this.element.appendChild(this.G.element)}; xfk=function(J){var K=new l_3(J);PY.call(this,J,K,"Custom");g.Z(this,K)}; jPr=function(J,K){var n=new xfk(J);g.gd.call(this,"Playback speed",g.hf.ji,J,K,Qm(J)?void 0:"Custom",Qm(J)?void 0:function(){g.mU(K,n)}); var X=this;this.U=!1;g.Z(this,n);this.W=new Vm(J);g.Z(this,this.W);J.J("web_settings_menu_icons")&&this.setIcon({j:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},Y:[{j:"path",D:{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.B=J;this.U=!1;this.GA=null;Qm(J)?(this.G=g.rK("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.B.getPlaybackRate().toString()}),this.N=this.B.getPlaybackRate()):this.N=this.G=null;this.K=this.B.getAvailablePlaybackRates();this.T(J,"presentingplayerstatechange",this.WW);var l;((l=this.B.getVideoData())==null?0:l.NH())&&this.T(J,"serverstitchedvideochange",this.WW);this.T(this.W.Z,"change",function(){X.U=!0;X.WW()}); this.WW()}; Vsr=function(J,K){var n=$Z(K);J.G&&(J.U||K===J.N)?(J.Oy(J.G),J.wR(K.toString())):J.Oy(n)}; v$q=function(J){J.AL(J.K.map($Z));J.G=null;J.N=null;var K=J.B.getPlaybackRate();Qm(J.B)&&hxd(J,K);!J.K.includes(K)||J.U?J.Oy(J.G):J.Oy($Z(K))}; hxd=function(J,K){J.N=K;J.G=g.rK("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:K.toString()});K=J.K.map($Z);K.unshift(J.G);J.AL(K)}; $Z=function(J){return J.toString()}; Qm=function(J){return J.J("web_settings_menu_surface_custom_playback")}; QPk=function(J){return J.J("web_settings_menu_surface_custom_playback")&&J.J("web_settings_use_input_slider")}; S4r=function(J,K,n,X){var l=new g.Ib(K,void 0,"Video Override");g.gd.call(this,X.text||"",J,K,n,"Video Override",function(){g.mU(n,l)}); var x=this;g.jv(this.element,"ytp-subtitles-options-menu-item");this.setting=X.option.toString();J=X.options;this.settings=g.GO(J,this.Fs,this);this.N=l;g.Z(this,this.N);K=new g.at({j:"div",V:"ytp-menuitemtitle",hj:"Allow for a different caption style if specified by the video."},0);g.Z(this,K);this.N.qH(K,!0);this.U=new g.at({j:"div",V:"ytp-menuitem",D:{role:"menuitemradio",tabindex:"0"},Y:[{j:"div",V:"ytp-menuitem-label",hj:"On"}]},-1);g.Z(this,this.U);this.N.qH(this.U,!0);this.T(this.U.element, "click",function(){$f7(x,!0)}); this.G=new g.at({j:"div",V:"ytp-menuitem",D:{role:"menuitemradio",tabindex:"0"},Y:[{j:"div",V:"ytp-menuitem-label",hj:"Off"}]},-2);g.Z(this,this.G);this.N.qH(this.G,!0);this.T(this.G.element,"click",function(){$f7(x,!1)}); this.AL(g.ff(J,this.Fs))}; $f7=function(J,K){J.publish("settingChange",J.setting+"Override",!K);J.Zv.KA()}; S0=function(J,K){g.Ib.call(this,J,void 0,"Options");var n=this;this.qm={};for(var X=0;X=0);if(!(K<0||K===J.U)){J.U=K;K=243*J.scale;var n=141*J.scale,X=LfF(J.Z,J.U,K);gaH(J.bg,X,K,n,!0);J.GA.start()}}; yRe=function(J){var K=J.G;J.type===3&&J.QG.stop();J.api.removeEventListener("appresize",J.K);J.W||K.setAttribute("title",J.X);J.X="";J.G=null;J.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});J.wrapper.style.width=""}; f_F=function(J){g.F.call(this,{j:"button",UM:["ytp-watch-later-button","ytp-button"],D:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.pR(J.S()))},Y:[{j:"div",V:"ytp-watch-later-icon",hj:"{{icon}}"},{j:"div",V:"ytp-watch-later-title",hj:"Watch later"}]});this.B=J;this.icon=null;this.visible=this.isRequestPending=this.G=!1;vEq(J);J.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.T(J,"videoplayerreset",this.onReset);this.T(J,"appresize", this.cJ);this.T(J,"videodatachange",this.cJ);this.T(J,"presentingplayerstatechange",this.cJ);this.cJ();J=this.B.S();var K=g.g1("yt-player-watch-later-pending");J.U&&K?(A6V(),Zc3(this)):this.WW(2);g.Qq(this.element,"ytp-show-watch-later-title",g.pR(J));wv(this.B,this.element,this)}; Wad=function(J){var K=J.B.getPlayerSize(),n=J.B.S(),X=g.U(J.B.getVideoData()),l=g.pR(n)&&g.pC(J.B)&&g.E(J.B.getPlayerStateObject(),128),x=n.X;return n.nE&&K.width>=240&&!X.isAd()&&X.nE&&!l&&!g.Eo(X)&&!J.B.isEmbedsShortsMode()&&!x}; a_V=function(J,K){b8M(g.am(J.B.S()),"wl_button",function(){A6V({videoId:K});window.location.reload()})}; Zc3=function(J){if(!J.isRequestPending){J.isRequestPending=!0;J.WW(3);var K=g.U(J.B.getVideoData());K=J.G?K.removeFromWatchLaterCommand:K.addToWatchLaterCommand;var n=g.U(J.B.Jd()),X=J.G?function(){J.G=!1;J.isRequestPending=!1;J.WW(2);J.B.S().L&&J.B.I4("WATCH_LATER_VIDEO_REMOVED")}:function(){J.G=!0; J.isRequestPending=!1;J.WW(1);J.B.S().Z&&J.B.Rd(J.element);J.B.S().L&&J.B.I4("WATCH_LATER_VIDEO_ADDED")}; Fw(n,K).then(X,function(){J.isRequestPending=!1;J.WW(4,"An error occurred. Please try again later.");J.B.S().L&&J.B.I4("WATCH_LATER_ERROR","An error occurred. Please try again later.")})}}; Faf=function(J,K){if(K!==J.icon){switch(K){case 3:var n=jc();break;case 1:n=RR();break;case 2:n={j:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Y:[{j:"path",Dv:!0,V:"ytp-svg-fill",D:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:n={j:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Y:[{j:"path", Dv:!0,D:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}J.updateValue("icon",n);J.icon=K}}; g.mm=function(){g.Zb.apply(this,arguments);this.dh=(this.YY=g.pR(this.api.S()))&&(this.api.S().Z||K0()||Ne());this.Fu=48;this.L_=69;this.nW=this.eK=null;this.j4=[];this.Ow=this.bH=this.Dc=this.Pb=this.jc=null;this.Yt=[];this.contextMenu=this.yh=this.overflowButton=this.iH=this.u1=this.searchButton=this.copyLinkButton=this.shareButton=this.Cg=this.h8=this.title=this.channelAvatar=this.qG=this.tooltip=null;this.C_=!1;this.S0=this.rq=this.yg=this.gO=null;this.K3=this.IG=this.Qn=!1}; q43=function(J){var K=J.api.S(),n=g.E(J.api.getPlayerStateObject(),128);return K.U&&n&&!J.api.isFullscreen()}; E$f=function(J){if(J.l1()&&!J.api.isEmbedsShortsMode()&&J.iH){var K=J.api.J("web_player_hide_overflow_button_if_empty_menu");!J.Cg||K&&!Wad(J.Cg)||M2k(J.iH,J.Cg);!J.shareButton||K&&!sG7(J.shareButton)||M2k(J.iH,J.shareButton);!J.copyLinkButton||K&&!$lV(J.copyLinkButton)||M2k(J.iH,J.copyLinkButton)}else{K=J.api.S().getWebPlayerContextConfig();if(J.iH){for(var n=J.iH,X=g.z(n.actionButtons),l=X.next();!l.done;l=X.next())l.value.detach();n.actionButtons=[]}J.searchButton&&!g.XG(J.h8.element,J.searchButton.element)&& J.searchButton.qQ(J.h8.element);!J.Cg||(K==null?0:K.hideTopWatchNextButton)||g.XG(J.h8.element,J.Cg.element)||J.Cg.qQ(J.h8.element);!J.shareButton||(K==null?0:K.hideTopShareButton)||g.XG(J.h8.element,J.shareButton.element)||J.shareButton.qQ(J.h8.element);J.copyLinkButton&&!g.XG(J.h8.element,J.copyLinkButton.element)&&J.copyLinkButton.qQ(J.h8.element)}}; bck=function(J,K,n){K=n?K.lastElementChild:K.firstElementChild;for(var X=null;K;){if(Ui(K,"display")!=="none"&&K.getAttribute("aria-hidden")!=="true"){var l=void 0;K.tabIndex>=0?l=K:l=bck(J,K,n);l&&(X?n?l.tabIndex>X.tabIndex&&(X=l):l.tabIndexX/1E3+1)return{msg:"in-the-past"};if(x.isLivePlayback&&!isFinite(X))return{msg:"live-infinite"};(X=K.dE())&&X.isView()&&(X=X.mediaElement);if(X&&X.Vt().length>12&&g.HD(l))return{msg:"played-ranges"};if(!l.X)return null;if(!V)return{msg:"no-pvd-formats"};if(!l.X.G||!V.G)return{msg:"non-dash"};X=V.videoInfos[0];var v=l.X.videoInfos[0];J.K&&oT(x)&&(X=K.mZ(),v= n.mZ());if(!X||!v)return{msg:"no-video-info"};if(J.U&&(Eu(X)||Eu(v)))return{msg:"av1"};K=J.Z&&x.Sz()&&fP();if(v.containerType!==X.containerType)if(K)x.Zm("sgap",{ierr:"container"});else return{msg:"container"};if(J.X&&!K&&(v.YF!==X.YF||v.YF===""||X.YF===""))return{msg:"codec"};if(J.C&&v.video&&X.video&&Math.abs(v.video.width/v.video.height-X.video.width/X.video.height)>.01)return{msg:"ratio"};if(g.HD(x)&&g.HD(l))return{msg:"content-protection"};V=V.G[0];l=l.X.G[0];n=V.audio;var Q=l.audio;if(n.sampleRate!== Q.sampleRate&&!g.T2)if(K)x.Zm("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:V.itag,cr:n.sampleRate,ni:l.itag,nr:Q.sampleRate};return(n.numChannels||2)!==(Q.numChannels||2)?{msg:"channel-count"}:J.W&&x.Sz()&&X.video.fps!==v.video.fps?{msg:"fps"}:null}; J9M=function(J,K,n){var X=J.getVideoData(),l=K.getVideoData();if(!X.S().supportsGaplessShorts())return{nq:"env"};if(n.L?X.sy&&!X.isAd()||l.sy&&!l.isAd():n.G?X.sy&&!X.isAd()||l.sy:X.sy||l.sy)return{nq:"autoplay"};if(n.N&&X.endSeconds>0)return{nq:"endcr"};if(!X.W)return{nq:"client"};if(!J.XI())return{nq:"no-empty"};J=NLU(n,J,K,Infinity);return J!=null?{nq:J.msg}:null}; Ty=function(J){g.t.call(this);this.app=J;this.C=this.U=this.Z=this.G=null;this.X=1;this.events=new g.gY(this);this.events.T(this.app.R4,g.XD("gaplessshortslooprange"),this.L);g.Z(this,this.events)}; Kq3=function(){this.N=this.C=this.G=this.L=this.U=this.K=this.W=this.X=this.Z=!1}; nzM=function(J){var K=new Kq3;K.Z=J.J("h5_gapless_support_types_diff");K.W=J.J("h5_gapless_error_on_fps_diff");K.K=J.J("html5_gapless_use_format_info_fix");K.U=J.J("html5_gapless_disable_on_av1")&&!J.J("html5_gapless_enable_on_av1");K.X=J.J("html5_gapless_check_codec_diff_strictly");K.L=J.J("html5_gapless_on_ad_autoplay");K.C=J.J("html5_gapless_disable_diff_aspect_radio");K.N=J.J("html5_gapless_disable_on_end_cue_range");K.G=J.J("html5_gapless_ad_autoplay_on_ad_to_video_only");return K}; g.Df=function(J,K,n,X){X=X===void 0?!1:X;Jx.call(this);this.mediaElement=J;this.start=K;this.end=n;this.G=X}; ozf=function(J,K,n,X,l,x){x=x===void 0?0:x;g.t.call(this);var V=this;this.policy=J;this.G=K;this.Z=n;this.U8=l;this.C=x;this.U=this.X=null;this.currentVideoDuration=this.N=-1;this.W=!1;this.Dt=new Nb;this.S5=X-K.Ti()*1E3;this.Dt.then(void 0,function(){}); this.timeout=new g.AT(function(){V.ph("timeout")},1E4); g.Z(this,this.timeout);this.L=isFinite(X)||this.U8.S().experiments.sM("html5_pseudogapless_shorts")&&oT(K.getVideoData());this.status={status:0,error:null}}; xUV=function(J){var K,n,X,l,x,V,v,Q,S,r;return g.G(function(C){if(C.Z==1){if(J.o4())return C.return(Promise.reject(Error(J.status.error||"disposed")));J.timeout.start();K=g.dF.Gl();return g.d(C,J.Dt,2)}g.dF.tK("gtfta",K);n=J.G.dE();if(n.isEnded())return J.ph("ended_in_finishTransition"),C.return(Promise.reject(Error(J.status.error||"")));if(!J.U||!FJ(J.U))return J.ph("next_mse_closed"),C.return(Promise.reject(Error(J.status.error||"")));if(J.Z.B6()!==J.U)return J.ph("next_mse_mismatch"),C.return(Promise.reject(Error(J.status.error|| "")));X=XOM(J);l=X.lS;x=X.PG;V=X.JO;J.G.Ei(!1,!0);v=lkH(n,l,V,!J.Z.getVideoData().isAd());J.Z.setMediaElement(v);(Q=J.G.yR())&&J.Z.YH(Q.jV,Q.BP);J.L&&(J.Z.seekTo(J.Z.getCurrentTime()+.001,{zW:!0,wA:3,E8:"gapless_pseudo"}),v.play(),dN());S=n.FK();S.cpn=J.G.getVideoData().clientPlaybackNonce;S.st=""+l;S.et=""+V;J.Z.Zm("gapless",S);J.G.Zm("gaplessTo",{cpn:J.Z.getVideoData().clientPlaybackNonce});r=J.G.getPlayerType()===J.Z.getPlayerType();J.G.K6(x,!0,!1,r,J.Z.getVideoData().clientPlaybackNonce);J.Z.K6(J.Z.getCurrentTime(), !0,!0,r,J.G.getVideoData().clientPlaybackNonce);g.wT(function(){!J.Z.getVideoData().PW&&J.Z.getPlayerState().isOrWillBePlaying()&&J.Z.r7()}); kZ(J,6);J.dispose();return C.return(Promise.resolve())})}; vzF=function(J){if(J.Z.getVideoData().X){var K=J.U8.S().J("html5_gapless_suspend_next_loader")&&J.C===1;J.Z.sf(J.U,K,jlU(J));kZ(J,3);VZ7(J);var n=hl7(J);K=n.nP;n=n.aS;K.subscribe("updateend",J.OG,J);n.subscribe("updateend",J.OG,J);J.OG(K);J.OG(n)}}; VZ7=function(J){J.G.unsubscribe("internalvideodatachange",J.E2,J);J.Z.unsubscribe("internalvideodatachange",J.E2,J);J.U8.S().J("html5_gapless_use_format_info_fix")&&(J.G.unsubscribe("internalvideoformatchange",J.E2,J),J.Z.unsubscribe("internalvideoformatchange",J.E2,J));J.G.unsubscribe("mediasourceattached",J.E2,J);J.Z.unsubscribe("statechange",J.YC,J)}; lkH=function(J,K,n,X){J=J.isView()?J.mediaElement:J;return new g.Df(J,K,n,X)}; kZ=function(J,K){K<=J.status.status||(J.status={status:K,error:null},K===5&&J.Dt.resolve())}; jlU=function(J){return J.U8.S().J("html5_gapless_no_clear_buffer_timeline")&&J.C===1&&xi(J.G.getVideoData())}; XOM=function(J){var K=J.G.dE();K=K.isView()?K.start:0;var n=J.G.getVideoData().isLivePlayback?Infinity:J.G.bj(!0);n=Math.min(J.S5/1E3,n)+K;var X=J.L?100:0;J=n-J.Z.LH()+X;return{L8:K,lS:J,PG:n,JO:Infinity}}; hl7=function(J){return{nP:J.X.G.z4,aS:J.X.Z.z4}}; gF=function(J){g.t.call(this);var K=this;this.app=J;this.C=this.Z=this.G=null;this.L=!1;this.X=this.U=null;this.W=nzM(this.app.S());this.N=function(){g.wT(function(){Qld(K)})}}; $Uf=function(J,K,n,X,l){X=X===void 0?0:X;l=l===void 0?0:l;J.XI()||cS(J);J.U=new Nb;J.G=K;var x=n,V=l===0;V=V===void 0?!0:V;var v=J.app.a4(),Q=v.getVideoData().isLivePlayback?Infinity:v.bj(!0)*1E3;x>Q&&(x=Q-200,J.L=!0);V&&v.getCurrentTime()>=x/1E3?J.N():(J.Z=v,V&&(V=x,x=J.Z,J.app.R4.addEventListener(g.o4("vqueued"),J.N),V=isFinite(V)||V/1E3>x.getDuration()?V:0x8000000000000,J.C=new g.KG(V,0x8000000000000,{namespace:"vqueued"}),x.addCueRange(J.C)));V=X/=1E3;x=K.getVideoData().G;X&&x&&J.Z&&(v=X,Q=0, K.getVideoData().isLivePlayback&&(V=Math.min(n/1E3,J.Z.bj(!0)),Q=Math.max(0,V-J.Z.getCurrentTime()),v=Math.min(X,K.bj()+Q)),V=LCd(x,v)||X,V!==X&&J.G.Zm("qvaln",{st:X,at:V,rm:Q,ct:v}));K=V;X=J.G;X.getVideoData().vO=!0;X.getVideoData().W=!0;X.ye(!0);x={};J.Z&&(x=J.Z.jy(),V=J.Z.getVideoData().clientPlaybackNonce,x={crt:(x*1E3).toFixed(),cpn:V});X.Zm("queued",x);K!==0&&X.seekTo(K+.01,{zW:!0,wA:3,E8:"videoqueuer_queued"});J.X=new ozf(J.W,J.app.a4(),J.G,n,J.app,l);n=J.X;n.status.status!==Infinity&&(kZ(n, 1),n.G.subscribe("internalvideodatachange",n.E2,n),n.Z.subscribe("internalvideodatachange",n.E2,n),n.U8.S().J("html5_gapless_use_format_info_fix")&&(n.G.subscribe("internalvideoformatchange",n.E2,n),n.Z.subscribe("internalvideoformatchange",n.E2,n)),n.G.subscribe("mediasourceattached",n.E2,n),n.Z.subscribe("statechange",n.YC,n),n.G.subscribe("newelementrequired",n.zH,n),n.E2());return J.U}; Qld=function(J){var K,n,X,l,x,V,v,Q,S;g.G(function(r){switch(r.Z){case 1:if(J.o4()||!J.U||!J.G)return r.return();J.L&&J.app.a4().LK(!0,!1);n=J.app.S().J("html5_force_csdai_gapful_transition")&&((K=J.app.a4())==null?void 0:K.getVideoData().isDaiEnabled());X=null;if(!J.X||n){r.EM(2);break}g.e8(r,3);return g.d(r,xUV(J.X),5);case 5:g.Ir(r,2);break;case 3:X=l=g.mk(r);case 2:if(!J.G)return r.return();g.dF.b4("vqsp",function(){J.app.Te(J.G)}); if(!J.G)return r.return();x=J.G.dE();J.app.S().J("html5_gapless_seek_on_negative_time")&&x&&x.getCurrentTime()<-.01&&J.G.seekTo(0);g.dF.b4("vqpv",function(){J.app.playVideo()}); if(X||n)J.G?(V=X?X.message:"forced",(v=J.Z)==null||v.Zm("gapfulfbk",{r:V}),J.G.gX(V)):(Q=J.Z)==null||Q.Zm("gapsp",{});S=J.U;cS(J);S&&S.resolve();return r.return(Promise.resolve())}})}; cS=function(J,K){K=K===void 0?!1:K;if(J.Z){if(J.C){var n=J.Z;J.app.R4.removeEventListener(g.o4("vqueued"),J.N);n.removeCueRange(J.C)}J.Z=null;J.C=null}J.X&&(J.X.status.status!==6&&(n=J.X,n.status.status!==Infinity&&n.C!==1&&n.ph("Canceled")),J.X=null);J.U=null;J.G&&!K&&J.G!==J.app.Qw()&&J.G!==J.app.a4()&&J.G.dispose();J.G&&K&&J.G.yP();J.G=null;J.L=!1}; SnV=function(J){var K;return((K=J.X)==null?void 0:K.currentVideoDuration)||-1}; r9k=function(J,K,n){if(J.XI())return"qie";if(J.G==null||J.G.o4()||J.G.getVideoData()==null)return"qpd";if(K.videoId!==J.G.R2())return"vinm";if(SnV(J)<=0)return"ivd";if(n!==1)return"upt";if((n=J.X)==null)J=void 0;else if(n.getStatus().status!==5)J="niss";else if(NLU(n.policy,n.G,n.Z,n.S5)!=null)J="pge";else{K=hl7(n);J=K.nP;var X=K.aS;K=g.Qg(n.U8.S().experiments,"html5_shorts_gapless_next_buffer_in_seconds");var l=n.N+K;n.U8.S().experiments.sM("html5_pseudogapless_shorts")&&(l=XOM(n).lS+K);n=hF(X.FL(), l);J=hF(J.FL(),l);J=!(K>0)||n&&J?null:"neb"}return J!=null?J:null}; slH=function(){g.hi.call(this);var J=this;this.fullscreen=0;this.U=this.X=this.pictureInPicture=this.G=this.Z=this.inline=!1;this.C=function(){J.DT()}; hQF(this.C);this.N=this.getVisibilityState(this.Do(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.oP(),this.oa(),this.e9(),this.B1())}; $Sr=function(J){return!(J.isMinimized()||J.isInline()||J.isBackground()||J.oP()||J.oa()||J.e9()||J.B1())}; g.YZ=function(J){g.t.call(this);this.lx=J;this.videoData=this.playerState=null}; t0=function(J,K){g.t.call(this);var n=this;this.data=[];this.X=J||NaN;this.Z=K||null;this.G=new g.AT(function(){Gy(n);Uw(n)}); g.Z(this,this.G)}; $If=function(J){Gy(J);return J.data.map(function(K){return K.value})}; Gy=function(J){var K=(0,g.a)();J.data.forEach(function(n){n.expire0));(X=g.Qg(K, "html5_cobalt_audio_write_ahead_ms"))&&Q0("Media.AudioWriteDurationLocal",X);(X=n("html5_cobalt_enable_decode_to_texture"))&&Q0("Media.PlayerConfiguration.DecodeToTexturePreferred",X?1:0);(J.Pw()||n("html5_log_cpu_info"))&<M();Error.stackTraceLimit=50;var l=g.Qg(K,"html5_idle_rate_limit_ms");l&&Object.defineProperty(window,"requestIdleCallback",{value:function(x){return window.setTimeout(x,l)}}); Nqr(J.C);I5H(n("html5_use_ump_request_slicer"));q33(n("html5_record_now"));n("html5_disable_streaming_xhr")&&(nR=!1);n("html5_byterate_constraints")&&(QL=!0);n("html5_use_non_active_broadcast_for_post_live")&&(NQ=!0);n("html5_enable_encrypted_av1")&&(qR=!0);Fhp(g.Qg(J.experiments,"html5_sticky_duration_mos"));J.J("html5_estimate_live_partial_slice_duration")&&(rFU=!0)}; wO3=function(J,K){return J.slice(K.length).replace(/_[a-z]/g,function(n){return n.toUpperCase().replace("_","")}).replace("Dot",".")}; Pyr=function(J){for(var K={},n=g.z(Object.keys(J.experiments.flags)),X=n.next();!X.done;X=n.next())if(X=X.value,X.startsWith("cobalt_h5vcc"))if(X.startsWith("cobalt_h5vcc_string")){var l=wO3(X,"cobalt_h5vcc_string");X=om(J.experiments,X);l&&X&&(K[l]=Q0(l,X))}else X.startsWith("cobalt_h5vcc")&&(l=wO3(X,"cobalt_h5vcc"),X=g.Qg(J.experiments,X),l&&X&&(K[l]=Q0(l,X)));return K}; WS=function(J,K,n,X,l){l=l===void 0?[]:l;g.t.call(this);this.lx=J;this.CU=K;this.segments=l;this.G=new Map}; IkH=function(J,K,n,X){X=X===void 0?0:X;g.U2.call(this,n.RB());this.tH=J;this.videoData=K;this.duration=X;this.endTime=this.startTime=0}; ib8=function(J){this.end=this.start=J}; g.a_=function(){this.G=new Map;this.X=new Map;this.Z=new Map}; g.Fg=function(J,K,n,X){g.t.call(this);var l=this;this.api=J;this.lx=K;this.playback=n;this.app=X;this.PW=new g.a_;this.Z=new Map;this.N=[];this.C=[];this.U=new Map;this.fU=new Map;this.W=new Map;this.vW=new Map;this.fv=null;this.wN=NaN;this.iR=this.o5=null;this.a5=new g.AT(function(){BRp(l,l.wN,l.o5||void 0)}); this.events=new g.gY(this);this.Dm=15E3;this.cW=new g.AT(function(){l.MQ=!0;l.playback.Dn(l.Dm);mUd(l);if(l.playback.getVideoData().NH()){var x;l.zA({togab:(x=l.Aj)==null?void 0:x.identifier})}l.SC(!1)},this.Dm); this.MQ=!1;this.K=new Map;this.Fq=[];this.Aj=null;this.Gi=new Set;this.j_=[];this.KU=[];this.nE=[];this.C9=[];this.G=void 0;this.VP=0;this.kF=!0;this.L=!1;this.Cv=[];this.wQ=new Set;this.F2=new Set;this.f9=new Set;this.jB=0;this.gQ=new Set;this.PM=0;this.E6=this.x4=!1;this.cB=this.X="";this.QG=null;this.logger=new g.XI("dai");this.QU={rm5:function(){return l.Z}, Jmx:function(){return l.N}, MY5:function(){return l.U}, bsv:function(){return l.X}, ltA:function(x){l.onCueRangeEnter(l.Z.get(x))}, Xad:function(x){l.onCueRangeExit(l.Z.get(x))}, TrM:function(x,V){l.Z.set(x,V)}, wL_:function(x){l.cB=x}, MV:function(){return l.MV()}, cmA:function(x){return l.W.get(x)}, q7A:function(){return l.QG}}; this.playback.getPlayerType();this.playback.Ji(this);this.md=this.lx.Pw();g.Z(this,this.a5);g.Z(this,this.events);g.Z(this,this.cW);this.events.T(this.api,g.o4("serverstitchedcuerange"),this.onCueRangeEnter);this.events.T(this.api,g.XD("serverstitchedcuerange"),this.onCueRangeExit);Obe(this.app.P6(),this.playback,!1)}; dU3=function(J,K,n,X,l,x,V,v,Q){if(J.lx.J("html5_ignore_ads_after_noadresponse")&&Q&&J.Gi.has(Q))return q4(J,{reason:"addafternoad",cueid:Q}),"";Q=pOp(J,x,x+l);J.MQ&&J.zA({adaftto:1});n||J.zA({missadcon:1,enter:x,len:l,aid:v});J.GA&&!J.GA.Gg&&(J.GA.Gg=v);J.E6&&J.zA({adfbk:1,enter:x,len:l,aid:v});var S=J.playback;V=V===void 0?x+l:V;x===V&&!l&&J.lx.J("html5_allow_zero_duration_ads_on_timeline")&&J.zA({attl0d:1});x>V&&q4(J,{reason:"enterTime_greater_than_return",CU:x,lh:V});var r=S.yU()*1E3;xS&&q4(J,{reason:"parent_return_greater_than_content_duration",lh:V,EfM:S});S=null;r=g.TO(J.C,{lh:x},function(C,O){return C.lh-O.lh}); r>=0&&(S=J.C[r],S.lh>x&&Lqr(J,K.video_id||"",x,V,S));if(Q&&S)for(r=0;r.5&&J.zA({ttdtb:1,delta:V,cpn:l.cpn,enter:K.adCpn,exit:n.adCpn,seek:X,skip:x});J.api.J("html5_ssdai_enable_media_end_cue_range")&&(!X&&!x&&n.isAd&&n.adCpn?J.api.Sk(n.adCpn):(X||x)&&J.zA({mecr:0,seek:X,skip:x}));if(K.isAd&&n.isAd){l=!!x;if(K.adCpn&&n.adCpn){var v=J.U.get(K.adCpn);var Q=J.U.get(n.adCpn)}l?J.zA({igtransskip:1,enter:K.adCpn,exit:n.adCpn,seek:X,skip:x}):M4(J,Q,v,n.J8,K.J8,X,l)}else if(!K.isAd&&n.isAd){J.cB= l.cpn;J.gV(l.cpn,l.CU/1E3);J.api.publish("serverstitchedvideochange");v=bp(J,"a2c");J.zA(v);J.jB=0;if(v=n.Eo)J.VP=v.end;var S;n.adCpn&&(S=J.U.get(n.adCpn));S&&J.playback.sA(S,l,n.J8,K.J8,X,!!x)}else if(K.isAd&&!n.isAd){var r;K.adCpn&&(r=J.U.get(K.adCpn));r&&(J.VP=0,J.cB=r.cpn,J.gV(r.cpn,r.CU/1E3),A0(J,r),S=bp(J,"c2a",r),J.zA(S),J.jB=1,J.playback.sA(l,r,n.J8,K.J8,X,!!x))}}; JA=function(J,K,n){n=n===void 0?0:n;var X=g.TO(J.C,{CU:(K+n)*1E3},function(v,Q){return v.CU-Q.CU}); X=X<0?(X+2)*-1:X;if(X>=0)for(var l=K*1E3,x=X;x<=X+1&&x=V.CU-n*1E3&&l<=V.lh+n*1E3)return{i8:V,P9:K}}return{i8:void 0,P9:K}}; Ynf=function(J,K){var n="";(K=c9f(J,K))&&(n=K.getId());return n?J.U.get(n):void 0}; c9f=function(J,K){if(J.cB){var n=J.Z.get(J.cB);if(n&&n.start-200<=K&&n.end+200>=K)return n}J=g.z(J.Z.values());for(n=J.next();!n.done;n=J.next())if(n=n.value,n.start<=K&&n.end>=K)return n}; BRp=function(J,K,n){var X=J.iR||J.app.a4().getPlayerState();K8(J,!0);J.playback.seekTo(K,n);J=J.app.a4();K=J.getPlayerState();X.isOrWillBePlaying()&&!K.isOrWillBePlaying()?J.playVideo():X.isPaused()&&!K.isPaused()&&J.pauseVideo()}; K8=function(J,K){J.wN=NaN;J.o5=null;J.a5.stop();J.fv&&K&&J.fv.eA();J.iR=null;J.fv=null}; UUM=function(J){var K=K===void 0?-1:K;var n=n===void 0?Infinity:n;for(var X=[],l=g.z(J.C),x=l.next();!x.done;x=l.next())x=x.value,(x.CUn)&&X.push(x);J.C=X;X=g.z(J.Z.values());for(l=X.next();!l.done;l=X.next())l=l.value,l.start>=K&&l.end<=n&&(J.playback.removeCueRange(l),J.Z.delete(l.getId()),J.zA({rmAdCR:1}));X=JA(J,K/1E3);K=X.i8;X=X.P9;if(K&&(X=X*1E3-K.CU,GAk(J,K,X,K.CU+X),X=J.Z.get(K.cpn))){l=g.z(J.N);for(x=l.next();!x.done;x=l.next())x=x.value,x.start===X.end?x.start=K.CU+K.durationMs: x.end===X.start&&(x.end=K.CU);X.start=K.CU;X.end=K.CU+K.durationMs}if(K=JA(J,n/1E3).i8){var V;X="playback_timelinePlaybackId_"+K.aZ+"_video_id_"+((V=K.videoData)==null?void 0:V.videoId)+"_durationMs_"+K.durationMs+"_enterTimeMs_"+K.CU+"_parentReturnTimeMs_"+K.lh;J.Ri("Invalid_clearEndTimeMs_"+n+"_that_falls_during_"+X+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; tZf=function(J){J.PW.clearAll();J.Z.clear();J.N=[];J.C=[];J.U.clear();J.fU.clear();J.W.clear();J.K.clear();J.Fq=[];J.Aj=null;J.Gi.clear();J.j_=[];J.KU=[];J.nE=[];J.C9=[];J.Cv=[];J.wQ.clear();J.F2.clear();J.f9.clear();J.gQ.clear();J.MQ=!1;J.G=void 0;J.VP=0;J.kF=!0;J.L=!1;J.jB=0;J.PM=0;J.x4=!1;J.E6=!1;J.X="";J.cW.isActive()&&Ew(J)}; GAk=function(J,K,n,X){K.durationMs=n;K.lh=X;(X=J.vW.get(K.cpn))?X.yL(n/1E3):J.zA({nop_d:K.cpn})}; Zbq=function(J,K,n,X,l,x){if(!J.E6)if(g.y9U(J,n))J.zA({gdu:"undec",seg:n,itag:l});else if(K=n8(J,K,n,X,x),!(J.playback.getVideoData().NH()&&(K==null?0:K.kG)))return K}; n8=function(J,K,n,X,l){var x=J.K.get(n);if(!x){if(x=fkd(J,K))return x;K=J.D3(n-1,X!=null?X:2);if(l)return J.zA({misscue:l,sq:n,type:X,prevsstate:K==null?void 0:K.v8,prevrecord:J.K.has(n-1)}),J.K.get(n-1);if((K==null?void 0:K.v8)===2)return J.zA({adnf:1,sq:n,type:X,prevrecord:J.K.has(n-1)}),J.K.get(n-1)}return x}; fkd=function(J,K){K+=J.q$();if(J.playback.getVideoData().NH())a:{var n=1;n=n===void 0?0:n;var X=K*1E3;J=g.z(J.C);for(var l=J.next();!l.done;l=J.next()){l=l.value;var x=l.nQ?l.nQ*1E3:l.CU;if(X>=l.CU-n*1E3&&X<=x+l.durationMs+n*1E3){X={i8:l,P9:K};break a}}X={i8:void 0,P9:K}}else X=JA(J,K),((n=X)==null?0:n.i8)||(X=JA(J,K,1));var V;return(V=X)==null?void 0:V.i8}; WqF=function(J,K){K=K===void 0?"":K;var n=VX(K)||void 0;if(!K||!n){var X;J.zA({adcfg:(X=K)==null?void 0:X.length,dcfg:n==null?void 0:n.length})}return n}; ak3=function(J){if(J.Cv.length)for(var K=g.z(J.Cv),n=K.next();!n.done;n=K.next())J.onCueRangeExit(n.value);K=g.z(J.Z.values());for(n=K.next();!n.done;n=K.next())J.playback.removeCueRange(n.value);K=g.z(J.N);for(n=K.next();!n.done;n=K.next())J.playback.removeCueRange(n.value);J.Z.clear();J.N=[];J.PW.clearAll();J.G||(J.kF=!0)}; M4=function(J,K,n,X,l,x,V){if(K&&n){J.cB=n.cpn;J.gV(n.cpn,n.CU/1E3);A0(J,n);var v=bp(J,"a2a",n);J.zA(v);J.jB++;J.playback.sA(K,n,X||0,l||0,!!x,!!V)}else J.zA({misspbkonadtrans:1,enter:(n==null?void 0:n.cpn)||"",exit:(K==null?void 0:K.cpn)||"",seek:x,skip:V})}; qn7=function(J,K,n,X){if(X)for(X=0;Xn){var x=l.end;l.end=K;Fqf(J,n,x)}else if(l.start>=K&&l.startn)l.start=n;else if(l.end>K&&l.end<=n&&l.start=K&&l.end<=n){J.playback.removeCueRange(l);if(J.Cv.includes(l))J.onCueRangeExit(l);J.N.splice(X,1);continue}X++}else Fqf(J,K,n)}; Fqf=function(J,K,n){K=kA3(K,n);n=!0;g.c8(J.N,K,function(V,v){return V.start-v.start}); for(var X=0;X0){var l=J.N[X],x=J.N[X-1];if(Math.round(x.end/1E3)>=Math.round(l.start/1E3)){x.end=l.end;l!==K?J.playback.removeCueRange(l):n=!1;J.N.splice(X,1);continue}}X++}if(n)for(J.playback.addCueRange(K),K=J.playback.eF("serverstitchedcuerange",36E5),K=g.z(K),n=K.next();!n.done;n=K.next())J.Z.delete(n.value.getId())}; o1=function(J,K,n){if(n===void 0||!n){n=g.z(J.Fq);for(var X=n.next();!X.done;X=n.next()){X=X.value;if(K>=X.start&&K<=X.end)return;if(K===X.end+1){X.end+=1;return}}J.Fq.push(new ib8(K))}}; g.y9U=function(J,K){J=g.z(J.Fq);for(var n=J.next();!n.done;n=J.next())if(n=n.value,K>=n.start&&K<=n.end)return!0;return!1}; Xl=function(J,K,n){var X;if(X=J.playback.getVideoData().NH()||J.lx.J("html5_ssdai_extent_last_unfinished_ad_cue_range"))X=(X=J.U.get(K))&&X.nJ?(J=J.W.get(X==null?void 0:X.nJ))&&J.slice(-1)[0].cpn===K:!1;return X&&n===2?1E3:0}; Lqr=function(J,K,n,X,l){var x;K={reason:"overlapping_playbacks",XLd:K,CU:n,lh:X,Z$j:l.aZ,hTd:((x=l.videoData)==null?void 0:x.videoId)||"",GQA:l.durationMs,Q0d:l.CU,pa5:l.lh};q4(J,K)}; q4=function(J,K,n){J.playback.Kw(K,n)}; Ez7=function(J,K){var n=[];J=J.W.get(K);if(!J)return[];J=g.z(J);for(K=J.next();!K.done;K=J.next())K=K.value,K.cpn&&n.push(K.cpn);return n}; bb3=function(J,K,n){var X=0;J=J.W.get(n);if(!J)return-1;J=g.z(J);for(n=J.next();!n.done;n=J.next()){if(n.value.cpn===K)return X;X++}return-1}; A9k=function(J,K){var n=0;J=J.W.get(K);if(!J)return 0;J=g.z(J);for(K=J.next();!K.done;K=J.next())K=K.value,K.durationMs!==0&&K.lh!==K.CU&&n++;return n}; MZe=function(J,K,n){var X=!1;if(n&&(n=J.W.get(n))){n=g.z(n);for(var l=n.next();!l.done;l=n.next())l=l.value,l.durationMs!==0&&l.lh!==l.CU&&(l=l.cpn,K===l&&(X=!0),X&&!J.F2.has(l)&&(J.zA({decoratedAd:l}),J.F2.add(l)))}}; mUd=function(J){J.md&&J.zA({adf:"0_"+((new Date).getTime()/1E3-J.PM)+"_isTimeout_"+J.MQ})}; pOp=function(J,K,n){if(J.j_.length)for(var X=g.z(J.j_),l=X.next(),x={};!l.done;x={By:void 0},l=X.next()){x.By=l.value;l=x.By.startSecs*1E3;var V=x.By.rW*1E3+l;if(K>l&&Kl&&n0?J:0}else J.MV().videoData.wN=J.playback.getCurrentTime()}; ljq=function(J,K,n,X){g.t.call(this);var l=this;this.api=J;this.lx=K;this.G=n;this.app=X;this.C=new Map;this.Z=[];this.X=this.W=null;this.GA=NaN;this.N=this.U=this.K=null;this.L=new g.AT(function(){Xt8(l,l.GA,l.K||void 0)}); this.QG=[];this.Aj=new g.AT(function(){var x=l.QG.pop();if(x){var V=x.aZ,v=x.playerVars;x=x.playerType;v&&(v.prefer_gapless=!0,l.api.preloadVideoByPlayerVars(v,x,NaN,"",V),l.QG.length&&g.M0(l.Aj,4500))}}); this.events=new g.gY(this);this.QU={N_q:function(){return l.Z}}; this.G.getPlayerType();g.Z(this,this.L);g.Z(this,this.Aj);g.Z(this,this.events);this.events.T(this.api,g.o4("childplayback"),this.onCueRangeEnter);this.events.T(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.T(this.api,"presentingplayerstatechange",this.Oi)}; h1F=function(J,K,n,X,l,x){var V=K.cpn,v=K.docid||K.video_id||K.videoId||K.id,Q=J.G;x=x===void 0?l+X:x;if(l>x)return xq(J,"enterAfterReturn enterTimeMs="+l+" is greater than parentReturnTimeMs="+x.toFixed(3),V,v),"";var S=Q.yU()*1E3;if(lS)return Q="returnAfterDuration parentReturnTimeMs="+x.toFixed(3)+" is greater than parentDurationMs="+S+". And timestampOffset in seconds is "+ Q.Ti(),xq(J,Q,V,v),"";S=null;for(var r=g.z(J.Z),C=r.next();!C.done;C=r.next()){C=C.value;if(l>=C.CU&&lC.CU)return xq(J,"overlappingReturn",V,v),"";if(x===C.CU)return xq(J,"outOfOrder",V,v),"";l===C.lh&&(S=C)}V="cs_childplayback_"+xZV++;v={Eo:jP(X,!0),S5:Infinity,target:null};var O={aZ:V,playerVars:K,playerType:n,durationMs:X,CU:l,lh:x,Cj:v};J.Z=J.Z.concat(O).sort(function(w,P){return w.CU-P.CU}); S?jYe(J,S,{Eo:jP(S.durationMs,!0),S5:S.Cj.S5,target:O}):(K={Eo:jP(l,!1),S5:l,target:O},J.C.set(K.Eo,K),Q.addCueRange(K.Eo));K=!0;if(J.G===J.app.a4()&&(Q=Q.getCurrentTime()*1E3,Q>=O.CU&&QK)break;if(x>K)return{i8:X,P9:K-l};n=x-X.lh/1E3}return{i8:null,P9:K-n}}; Xt8=function(J,K,n){n=n===void 0?{}:n;var X=J.N||J.app.a4().getPlayerState();v1(J,!0);K=isFinite(K)?K:J.G.qP();var l=SRU(J,K);K=l.P9;var x=(l=l.i8)&&!Vb(J,l)||!l&&J.G!==J.app.a4(),V=K*1E3;V=J.X&&J.X.start<=V&&V<=J.X.end;!x&&V||hA(J);l?VxM(J,l,K,n,X):rg8(J,K,n,X)}; rg8=function(J,K,n,X){var l=J.G;l!==J.app.a4()&&J.app.k9();l.seekTo(K,Object.assign({},{E8:"application_timelinemanager"},n));sY8(J,X)}; VxM=function(J,K,n,X,l){var x=Vb(J,K);if(!x){K.playerVars.prefer_gapless=!0;J.lx.J("html5_enable_ssap_entity_id")&&(K.playerVars.cached_load=!0);var V=new g.WF(J.lx,K.playerVars);V.aZ=K.aZ;J.api.iC(V,K.playerType)}V=J.app.a4();x||V.addCueRange(K.Cj.Eo);V.seekTo(n,Object.assign({},{E8:"application_timelinemanager"},X));sY8(J,l)}; sY8=function(J,K){J=J.app.a4();var n=J.getPlayerState();K.isOrWillBePlaying()&&!n.isOrWillBePlaying()?J.playVideo():K.isPaused()&&!n.isPaused()&&J.pauseVideo()}; v1=function(J,K){J.GA=NaN;J.K=null;J.L.stop();J.U&&K&&J.U.eA();J.N=null;J.U=null}; Vb=function(J,K){J=J.app.a4();return!!J&&J.getVideoData().aZ===K.aZ}; CZq=function(J){var K=J.Z.find(function(l){return Vb(J,l)}); if(K){var n=J.app.a4();hA(J);var X=new g.lH(8);K=$Zf(J,K)/1E3;rg8(J,K,{},X);n.Zm("forceParentTransition",{childPlayback:1});J.G.Zm("forceParentTransition",{parentPlayback:1})}}; HLd=function(J,K,n){K=K===void 0?-1:K;n=n===void 0?Infinity:n;for(var X=K,l=n,x=g.z(J.C),V=x.next();!V.done;V=x.next()){var v=g.z(V.value);V=v.next().value;v=v.next().value;v.S5>=X&&v.target&&v.target.lh<=l&&(J.G.removeCueRange(V),J.C.delete(V))}X=K;l=n;x=[];V=g.z(J.Z);for(v=V.next();!v.done;v=V.next())if(v=v.value,v.CU>=X&&v.lh<=l){var Q=J;Q.W===v&&hA(Q);Vb(Q,v)&&Q.app.k9()}else x.push(v);J.Z=x;X=SRU(J,K/1E3);K=X.i8;X=X.P9;K&&(X*=1E3,OLU(J,K,X,K.lh===K.CU+K.durationMs?K.CU+X:K.lh));(K=SRU(J,n/1E3).i8)&& xq(J,"Invalid clearEndTimeMs="+n+" that falls during playback={timelinePlaybackId="+(K.aZ+" video_id="+K.playerVars.video_id+" durationMs="+K.durationMs+" enterTimeMs="+K.CU+" parentReturnTimeMs="+K.lh+"}.Child playbacks can only have duration updated not their start."))}; OLU=function(J,K,n,X){K.durationMs=n;K.lh=X;X={Eo:jP(n,!0),S5:n,target:null};jYe(J,K,X);Vb(J,K)&&J.app.a4().getCurrentTime()*1E3>n&&(K=$Zf(J,K)/1E3,n=J.app.a4().getPlayerState(),rg8(J,K,{},n))}; xq=function(J,K,n,X){J.G.Zm("timelineerror",{e:K,cpn:n?n:void 0,videoId:X?X:void 0})}; uCk=function(J){J&&J!=="web"&&R13.includes(J)}; Qb=function(){g.t.call(this);this.G=new t0(5,null);g.Z(this,this.G);this.Z=new t0(15,null);g.Z(this,this.Z)}; u8M=function(J,K){return K?!!J.G.get(K):!1}; e1r=function(J,K){J.dataset.version=K}; PZq=function(J){g.F.call(this,{j:"div",UM:["html5-video-player"],D:{tabindex:J.S().disableOrganicUi?"":"-1",id:J.webPlayerContextConfig?J.webPlayerContextConfig.rootElementId:J.config.attrs.id},Y:[{j:"div",V:g.At.VIDEO_CONTAINER,D:{"data-layer":"0"}}]});var K=this;this.app=J;this.qq=this.rQ(g.At.VIDEO_CONTAINER);this.Uf=new g.d5(0,0,0,0);this.mP=null;this.Ik=new g.d5(0,0,0,0);this.tA=this.So=this.LT=NaN;this.Sj=this.y0=this.nz=this.GN=!1;this.dB=NaN;this.U4=!1;this.GT=null;this.Mz=function(){K.element.focus({preventScroll:!0})}; this.M7=function(){K.app.R4.publish("playerUnderlayVisibilityChange","visible");K.mP.classList.remove(g.At.VIDEO_CONTAINER_TRANSITIONING);K.mP.removeEventListener(v0,K.M7);K.mP.removeEventListener("transitioncancel",K.M7)}; this.T7=this.xu=!1;var n=this.element.addEventListener,X=this.element.removeEventListener;this.addEventListener=function(x,V,v){n.apply(K.element,[x,V,v])}; this.removeEventListener=function(x,V,v){X.apply(K.element,[x,V,v])}; var l=J.S();l.transparentBackground&&this.xm("ytp-transparent");l.controlsType==="0"&&this.xm("ytp-hide-controls");g.jv(this.element,"ytp-exp-bottom-control-flexbox");g.jv(this.element,"ytp-modern-caption");l.J("enable_new_paid_product_placement")&&!g.Nw(l)&&g.jv(this.element,"ytp-exp-ppp-update");l.J("html5_enable_ssap")&&g.jv(this.element,"ytp-ssap");g.jv(this.element,"ytp-livebadge-color");if(l.J("delhi_modern_web_player"))switch(g.jv(this.element,"ytp-delhi-modern"),l.J("delhi_modern_web_player_icons")&& g.jv(this.element,"ytp-delhi-modern-icons"),om(l.experiments,"delhi_modern_web_player_blending_mode")){case "luminosity":g.jv(this.element,"ytp-delhi-modern-with-luminosity");break;case "difference":g.jv(this.element,"ytp-delhi-modern-with-difference");break;case "exclusion":g.jv(this.element,"ytp-delhi-modern-with-exclusion")}e1r(this.element,z1U(J));this.sI=!1;this.fW=new g.DH(NaN,NaN);wtM(this);this.T(J.R4,"onMutedAutoplayChange",this.onMutedAutoplayChange)}; wtM=function(J){function K(){J.mP&&$q(J);SP(J)!==J.U4&&J.resize()} function n(V,v){J.JL(V,v)} function X(V){V.getVideoData()&&J.updateVideoData(V.getVideoData())} function l(){J.Ik=new g.d5(0,0,0,0);J.Uf=new g.d5(0,0,0,0)} var x=J.app.R4;x.addEventListener("initializingmode",l);x.addEventListener("videoplayerreset",X);x.addEventListener("videodatachange",n);x.addEventListener("presentingplayerstatechange",K);J.addOnDisposeCallback(function(){x.removeEventListener("initializingmode",l);x.removeEventListener("videoplayerreset",X);x.removeEventListener("videodatachange",n);x.removeEventListener("presentingplayerstatechange",K)})}; iLF=function(J){var K=J.app.a4();if(K=K?K.getVideoData():null){if(g.BD(K)||g.m9(K)||g.pS(K))return 16/9;if(nS(K)&&K.X.G)return J=K.X.videoInfos[0].video,Ij7(J.width,J.height)}return(J=J.mP)?Ij7(J.videoWidth,J.videoHeight):16/9}; By7=function(J,K,n,X){var l=n,x=Ij7(K.width,K.height);J.GN?l=nx?{width:K.width,height:K.width/l,aspectRatio:l}:ll?J.width=J.height*n:nQ;if(SP(J)){var S=iLF(J);var r=isNaN(S)||g.qH||J8&&g.ut||Q;Fz&&!g.iB(601)?S=l.aspectRatio:r=r||x.controlsType==="3";r?Q?(r=x.J("place_shrunken_video_on_left_of_player")?16:J.getPlayerSize().width-K.width-16,S=Math.max((J.getPlayerSize().height-K.height)/2,0),r=new g.d5(r,S,K.width, K.height),J.mP.style.setProperty("border-radius","12px")):r=new g.d5(0,0,K.width,K.height):(n=l.aspectRatio/S,r=new g.d5((K.width-l.width/n)/2,(K.height-l.height)/2,l.width/n,l.height),n===1&&g.ut&&(S=r.width-K.height*S,S>0&&(r.width+=S,r.height+=S)));g.Qq(J.element,"ytp-fit-cover-video",Math.max(r.width-l.width,r.height-l.height)<1);if(v||J.sI)J.mP.style.display="";J.U4=!0}else{r=-K.height;Fz?r*=window.devicePixelRatio:g.Ju&&(r-=window.screen.height);r=new g.d5(0,r,K.width,K.height);if(v||J.sI)J.mP.style.display= "none";J.U4=!1}kp(J.Ik,r)||(J.Ik=r,g.cp(x)?(J.mP.style.setProperty("width",r.width+"px","important"),J.mP.style.setProperty("height",r.height+"px","important")):g.Fo(J.mP,r.getSize()),X=new g.Ll(r.left,r.top),g.ZL(J.mP,Math.round(X.x),Math.round(X.y)),X=!0);K=new g.d5((K.width-l.width)/2,(K.height-l.height)/2,l.width,l.height);kp(J.Uf,K)||(J.Uf=K,X=!0);g.c7(J.mP,"transform",n===1?"":"scaleX("+n+")");V&&Q!==J.y0&&(Q&&(J.mP.addEventListener(v0,J.M7),J.mP.addEventListener("transitioncancel",J.M7),J.mP.classList.add(g.At.VIDEO_CONTAINER_TRANSITIONING)), J.y0=Q,J.app.R4.publish("playerUnderlayVisibilityChange",J.y0?"transitioning":"hidden"));return X}; LSe=function(J){J.xu=!J.xu;J.T7=!0;J.element.classList.toggle("ytp-retro-player",J.xu);J.resize();J.T7=!1;J.app.R4.I4("onRetroModeChanged",J.xu)}; Tyd=function(){this.csn=g.i2();this.clientPlaybackNonce=null;this.elements=new Set;this.X=new Set;this.G=new Set;this.Z=new Set}; DZr=function(J){if(J.csn!==g.i2())if(J.csn==="UNDEFINED_CSN")J.csn=g.i2();else{var K=g.i2(),n=g.IZ();if(K&&n){J.csn=K;for(var X=g.z(J.elements),l=X.next();!l.done;l=X.next())(l=l.value.visualElement)&&l.isClientVe()&&K&&n&&(g.ef("combine_ve_grafts")?kE(DX(),l,n):g.NM(g.qq)(void 0,K,n,l))}if(K)for(J=g.z(J.G),n=J.next();!n.done;n=J.next())(n=n.value.visualElement)&&n.isClientVe()&&g.oR(K,n)}}; g.sN=function(J,K,n,X){g.t.call(this);var l=this;this.logger=new g.XI("App");this.df=this.MP=!1;this.Lw={};this.ac=[];this.cj=!1;this.pT=null;this.intentionalPlayback=!1;this.h4=!0;this.rA=!1;this.YR=this.wU=this.HI=null;this.dC=!0;this.mediaElement=this.nU=null;this.KT=NaN;this.aq=!1;this.WB=this.Bu=this.wE=this.screenLayer=this.playlist=null;this.DW=[];this.w8=0;this.QU={P6:function(){return l.X2}, cFW:function(){return l.wE}, jgq:function(){}}; this.logger.debug("constructor begin");this.config=Jv3(K||{});this.webPlayerContextConfig=n;Sxp();K=this.config.args||{};this.lx=new fR(K,n,n?n.canaryState:this.config.assets.player_canary_state,X,this);g.Z(this,this.lx);zl3(this.lx);X=Pyr(this.lx);this.lx.Pw()&&rl(this,"h5vcc",X);this.lx.experiments.sM("jspb_serialize_with_worker")&&qjq();this.lx.experiments.sM("gzip_gel_with_worker")&&UMd();this.lx.Z&&!dZe&&(window.addEventListener(Im?"touchstart":"click",Msr,{capture:!0,passive:!0}),dZe=!0);this.J("html5_onesie")&& (this.Oa=new lI(this.lx),g.Z(this,this.Oa));this.FR=XK(Tx(this.lx)&&!0,K.enablesizebutton);this.qW=XK(!1,K.player_wide);this.visibility=new slH;g.Z(this,this.visibility);this.J("web_log_theater_mode_visibility")&&this.Of(XK(!1,K.player_wide));this.MP=XK(!1,K.external_list);this.events=new g.gY(this);g.Z(this,this.events);this.J("start_client_gcf")&&(T0(gV(),{NG:Vn,Qq:hHk()}),this.Jn=gV().resolve(Vn),$MM(this.Jn));this.p35=new Q3;g.Z(this,this.p35);this.Ls=new Tyd;X=new $w;this.R4=new g.It(this,X); g.Z(this,this.R4);this.template=new PZq(this);g.Z(this,this.template);this.appState=1;this.ez=kQd(this);g.Z(this,X);X={};this.jZ=(X.internalvideodatachange=this.gFm,X.playbackready=this.wWG,X.playbackstarted=this.fmx,X.statechange=this.yjG,X);this.ke=new vZ(this.R4);this.Sc=gSd(this);X=this.J("html5_load_wasm");K=this.J("html5_allow_asmjs");X&&cgq||K?(this.lx.F2=w1k(this.Sc,K),HG(O3(this.lx.F2,function(x){l.lx.Cv=x;rl(l,"wasm",{a:x.G})}),function(x){g.gG(x); rl(l,"wasm",{e:"message"in x&&x.message||x.toString()||""})})):X&&!cgq&&rl(this,"wasm",{e:"unavailable"}); X=this.lx.N;!1!==X&&rl(this,"badps",{hbp:X,hostname:window.location.hostname,ps:this.lx.playerStyle});this.rN=new ky8(this.lx,this.Sc);this.R4.publish("csiinitialized");X=10;g.Ig(this.lx)&&(X=3);Mw(this.lx)&&(X=g.Qg(this.lx.experiments,"tvhtml5_unplugged_preload_cache_size"));this.X2=new g.Zf(this.R4,X);X=YRd(this);this.X2.Be(X);GQM(this);X={};this.FG=(X.airplayactivechange=this.LPW,X.airplayavailabilitychange=this.S_W,X.beginseeking=this.zLW,X.sabrCaptionsDataLoaded=this.AHd,X.endseeking=this.DSQ, X.internalAbandon=this.vrd,X.internalaudioformatchange=this.Y_Q,X.internalvideodatachange=this.cHG,X.internalvideoformatchange=this.q84,X.liveviewshift=this.lrF,X.playbackstalledatstart=this.E4A,X.progresssync=this.XMj,X.onAbnormalityDetected=this.FPW,X.onSnackbarMessage=this.rHj,X.onLoadProgress=this.dHG,X.SEEK_COMPLETE=this.u2W,X.SEEK_TO=this.n4v,X.onVideoProgress=this.b9F,X.onLoadedMetadata=this.G4d,X.onAutoplayBlocked=this.mSQ,X.onPlaybackPauseAtStart=this.pMx,X.playbackready=this.Z9d,X.statechange= this.QW,X.newelementrequired=this.Gk,X.heartbeatparams=this.KPM,X.videoelementevent=this.Mh4,X.drmoutputrestricted=this.OUq,X.signatureexpired=this.i9x,X.nonfatalerror=this.QZq,X.reloadplayer=this.xH5,X);this.c9=new g.gY(this);g.Z(this,this.c9);this.Mm=new Qb;g.Z(this,this.Mm);this.gB=this.Zk=-1;this.u2=new g.AT(this.template.resize,16,this.template);g.Z(this,this.u2);this.tH=new ljq(this.R4,this.lx,this.Qw(),this);this.Tk=new WS(this.lx);this.mw=new gF(this);g.Z(this,this.mw);this.E$=new Ty(this); g.Z(this,this.E$);uCk(this.lx.G.c);this.events.T(this.R4,g.o4("appapi"),this.V_F);this.events.T(this.R4,g.XD("appapi"),this.TQ5);this.events.T(this.R4,g.o4("appprogressboundary"),this.C_m);this.events.T(this.R4,g.XD("applooprange"),this.qr);this.events.T(this.R4,"presentingplayerstatechange",this.Oi);this.events.T(this.R4,"resize",this.yHQ);this.template.qQ(g.U(yh(document,J)));this.events.T(this.R4,"offlineslatestatechange",this.wwd);this.events.T(this.R4,"sabrCaptionsTrackChanged",this.DHv);this.events.T(this.R4, "sabrCaptionsBufferedRangesUpdated",this.O9G);this.Sc.B.S().hd&&IC(this.Sc,"offline");this.lx.wQ&&g.sU("ux",g.pt);J=g.Qg(this.lx.experiments,"html5_defer_fetch_att_ms");this.aj=new g.AT(this.uhq,J,this);g.Z(this,this.aj);this.Dr().TL()&&(g.YF()&&this.Dr().QG.push("remote"),UZr(this));this.rN.tick("fs");txV(this);this.lx.wQ&&IC(this.Sc,"ux",!0);g.pR(this.Sc.B.S())&&IC(this.Sc,"embed");this.J("web_player_sentinel_is_uniplayer")||g.gG(new g.qt("Player experiment flags missing","web_player_sentinel_is_uniplayer")); J=this.J("web_player_sentinel_yt_experiments_sync");X=g.ef("web_player_sentinel_yt_experiments_sync");J!==X&&g.gG(new g.qt("b/195699950",{yt:J,player:X}));n||g.gG(new g.qt("b/179532961"));this.a6=ygd(this);if(n=g.Qg(this.lx.experiments,"html5_block_pip_safari_delay"))this.DY=new g.AT(this.Kd,n,this),g.Z(this,this.DY);kA=this.lx.fU;n=g.Qg(this.lx.experiments,"html5_performance_impact_profiling_timer_ms");n>0&&(this.RA=new g.cV(n),g.Z(this,this.RA),this.events.T(this.RA,"tick",function(){l.WU&&ZL3.tK("apit", l.WU);l.WU=ZL3.Gl()})); this.R4.publish("applicationInitialized");this.logger.debug("constructor end")}; ygd=function(J){function K(n){n.stack&&n.stack.indexOf("player")!==-1&&J.a4().vF(n)} cx.subscribe("handleError",K);Ac.push(K);return function(){cx.unsubscribe("handleError",K);var n=Ac.indexOf(K);n!==-1&&Ac.splice(n,1)}}; YRd=function(J){var K=new g.WF(J.lx,J.config.args);J.R4.publish("initialvideodatacreated",K);return C8(J,1,K,!1)}; GQM=function(J){var K=J.Qw(),n=K.setPlaybackRate;if(J.lx.U)var X=1;else X=Number(g.g1("yt-player-playback-rate"))||1,X=fjq(J,X);n.call(K,X);K.Ly(J.jZ,J);K.Dy()}; gSd=function(J){var K="",n=z1U(J);n.indexOf("//")===0&&(n=J.lx.protocol+":"+n);var X=n.lastIndexOf("/base.js");X!==-1&&(K=n.substring(0,X+1));if(n=Error().stack)if(n=n.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))n=n[1],n.includes(K)||g.gG(Error("Player module URL mismatch: "+(n+" vs "+K+".")));K=new xv8(J.R4,K);WSr(J,K);return K}; WSr=function(J,K){var n={};n=(n.destroyed=function(){J.onApiChange()},n); K.X=n}; kQd=function(J){if(J.lx.storeUserVolume){J=g.g1("yt-player-volume")||{};var K=J.volume;J={volume:isNaN(K)?100:g.BK(Math.floor(K),0,100),muted:!!J.muted}}else J={volume:100,muted:J.lx.mute};return J}; ON=function(J){J.mediaElement=J.lx.deviceIsAudioOnly?new g.FW(g.ME("AUDIO")):Lt.pop()||new g.FW(g.ME("VIDEO"));g.Z(J,J.mediaElement);J.a4().setMediaElement(J.mediaElement);try{J.lx.PM?(J.Bu&&J.events.rR(J.Bu),J.Bu=J.events.T(J.mediaElement,"volumechange",J.WP4)):(J.mediaElement.Ic(J.ez.muted),J.mediaElement.setVolume(J.ez.volume/100))}catch(l){J.ph("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(l&&typeof l==="object"&&"message"in l&&typeof l.message==="string"&&l.message.replace(/[;:,]/g, "_")));return}g.L0(J.c9);ajf(J);var K=J.template,n=J.mediaElement.xr();K.mP=n;K.Sj=!1;K.mP.parentNode||nf(K.qq,K.mP,0);K.Ik=new g.d5(0,0,0,0);ptH(K);$q(K);n=K.mP;g.jv(n,"video-stream");g.jv(n,g.At.MAIN_VIDEO);var X=K.app.S();X.SO&&n.setAttribute("data-no-fullscreen","true");X.J("html5_local_playsinline")?"playsInline"in pJ()&&(n.playsInline=!0):X.l$&&(n.setAttribute("webkit-playsinline",""),n.setAttribute("playsinline",""));X.Xt&&K.mP&&K.T(n,"click",n.play,n);try{J.mediaElement.activate()}catch(l){J.ph("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(l&&typeof l==="object"&&"message"in l&&typeof l.message==="string"&&l.message.replace(/[;:,]/g,"_")))}}; qR3=function(J){if(!FSH(J)){var K=J.Qw().dE();K&&(K=K.W2(),K instanceof Promise&&K.catch(function(){})); H1(J,SR(J.getPlayerStateObject()))}}; ajf=function(J){var K=J.mediaElement;dY()?J.c9.T(K,"webkitpresentationmodechanged",J.v4x):window.document.pictureInPictureEnabled&&(J.c9.T(K,"enterpictureinpicture",function(){J.S4(!0)}),J.c9.T(K,"leavepictureinpicture",function(){J.S4(!1)})); A2&&(J.c9.T(K,"webkitbeginfullscreen",function(){J.F7(3)}),J.c9.T(K,"webkitendfullscreen",function(){J.F7(0)}))}; ESV=function(J,K){var n=K.getPlayerType(),X=J.X2.X[n]||null;K!==J.Qw()&&K!==X&&(X==null||X.dispose(),J.X2.X[n]=K)}; bLk=function(J,K){K=K===void 0?!0:K;J.logger.debug("start clear presenting player");var n;if(n=J.WB){n=J.WB;var X=J.mediaElement;n=!!X&&X===n.mediaElement}n&&(J.Ei(),ON(J));n=J.a4();n.Ei(!K);n.A6(J.FG,J);n.getPlayerType()!==1&&n.dispose();K=J.X2;K.Z=K.G;ft(K);J.logger.debug("finish clear presenting player")}; g.Agr=function(J,K,n,X){var l=J.rN;K===2&&(l=new ky8(J.lx));return new g.XW(J.lx,K,l,J.template,function(x,V,v){J.R4.publish(x,V,v)},function(){return J.R4.getVisibilityState()},J.visibility,J,n,X)}; C8=function(J,K,n,X,l){J=g.Agr(J,K,n,l);J=new g.U2(J);X&&J.Dy();return J}; R1=function(J,K){return J.YO(K)?J.Qw():K}; us=function(J,K){var n=J.a4();return K===J.Qw()&&J.YO(K)&&J.YO(n)?n:K}; JWp=function(J){J.logger.debug("start application playback");if(J.Qw().getPlayerState().isError())J.logger.debug("start application playback done, player in error state");else{var K=eP(J);J.Dr().isLoaded();K&&J.SY(6);Mxk(J);Csr(J.Sc)||Nye(J)}}; Nye=function(J){if(!eP(J)){var K=BZ(J.Sc);K&&!K.created&&j17(J.Sc)&&(J.logger.debug("reload ad module"),K.create())}}; Mxk=function(J){J.logger.debug("start presenter playback");var K=J.getVideoData(),n=J.Sc;Csr(n)||n.Xd();!cgq&&n.B.J("html5_allow_asmjs")&&zvH(n);IC(n,"embed");IC(n,"kids");IC(n,"remote");IC(n,"miniplayer");IC(n,"offline");IC(n,"unplugged");IC(n,"ypc",!1,!0);IC(n,"ypc_clickwrap",!1,!0);IC(n,"yto",!1,!0);IC(n,"webgl",!1,!0);O8f(n)||(IC(n,"captions",!0),IC(n,"endscreen"),n.wp(),IC(n,"creatorendscreen",!0));n.Mw();J.R4.publish("videoready",K)}; zb=function(J){J=J.Dr();J.TL();return cD(J)}; txV=function(J){J.logger.debug("start prepare initial playback");J.Up();var K=J.config.args;ON(J);J.events.T(window,"resize",J.g4G);var n=J.Dr();J.R4.B3("onVolumeChange",J.ez);if(K&&GyU(K)){var X=qw(J.lx);X&&!J.MP&&(K.fetch=0);var l=g.pR(J.lx);l&&!J.MP&&(K.fetch=0);wl(J,K);g.pR(J.lx)&&J.rN.tick("ep_pr_s");if(!X||J.MP)if(l&&!J.MP)KPd(J);else if(!n.TL())J.playlist.onReady(function(){P1(J)})}J.Te(J.Qw(),!1,!0); g.E(J.Qw().getPlayerState(),128)||(K=IBp(!J.lx.deviceIsAudioOnly),K==="fmt.noneavailable"?J.ph("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):K==="html5.missingapi"?J.ph(K,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):n&&n.TL()&&zb(J)&&(J.lx.k7||J.lx.RH)?I1(J):n.Wu?J.R4.mutedAutoplay({durationMode:n.mutedAutoplayDurationMode}):g.g1("yt-player-playback-on-reload")?(g.vJ("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!J.lx.Aj}),g.kF("yt-player-playback-on-reload",!1), I1(J)):nI(J.lx)||nyd(J),g.AS(J.lx)||g.KR(J.lx)==="MWEB"?(g.Nt(g.K6(),function(){is(J)}),g.Nt(g.K6(),function(){I$d()})):(is(J),I$d()),J.logger.debug("finish prepare initial playback"))}; is=function(J){if(!J.J("use_rta_for_player"))if(J.J("fetch_att_independently"))g.M0(J.aj);else{var K=J.getVideoData().botguardData;K&&g.ZX(K,J.lx,J.getVideoData().B$||"")}}; nyd=function(J){J.logger.debug("start initialize to CUED mode");J.R4.publish("initializingmode");J.SY(2);J.J("embeds_web_enable_defer_loading_remote_js")&&g.Nw(J.lx)?g.Nt(g.K6(),function(){IC(J.Sc,"remote")}):IC(J.Sc,"remote"); IC(J.Sc,"miniplayer");J.logger.debug("initialized to CUED mode")}; I1=function(J){J.logger.debug("start initialize application playback");var K=J.Qw();if(g.E(K.getPlayerState(),128))return!1;var n=K.getVideoData();zb(J)&&J.lx.RH&&(Lt.length&&J.df?(B1(J,{muted:!1,volume:J.ez.volume},!1),m$(J,!1)):Lt.length||J.ez.muted||(B1(J,{muted:!0,volume:J.ez.volume},!1),m$(J,!0)));zb(J)&&g.pR(J.lx)&&n.mutedAutoplay&&(B1(J,{muted:!0,volume:J.ez.volume},!1),m$(J,!0));n.sH&&B1(J,{muted:!0,volume:J.ez.volume},!1);oyq(J,1,n,!1);K=J.J("web_player_misc_bugfix_b")?J.Qw():K;J.R4.publish("initializingmode"); J.Te(J.Qw());J.SY(3);var X;if(!(X=!J.lx.Z$)){if(X=J.WB){X=J.WB;var l=J.mediaElement;X=!!l&&l===X.mediaElement}X=X&&J.cj}X&&(J.Ei(),ON(J),K.setMediaElement(J.mediaElement));K.d2();if(g.E(K.getPlayerState(),128))return!1;n.OY||H1(J,3);return J.cj=!0}; eP=function(J){J=mM(J.Sc);return!!J&&J.loaded}; XTH=function(J,K){if(!J.nU)return!1;var n=J.nU.startTimeMs*.001-1,X=J.nU.endTimeMs*.001;J.nU.type==="repeatChapter"&&X--;return Math.abs(K-n)<=1E-6||Math.abs(K-X)<=1E-6||K>=n&&K<=X}; l9p=function(J){var K=J.a4();oT(K.getVideoData())&&!K.lW()&&(K=p8(J)*1E3-J.getVideoData().AP,J.J("html5_gapless_new_slr")?(J=J.E$,L8(J.app,"gaplessshortslooprange"),K=new g.KG(0,K,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(J=J.app.a4())&&J.addCueRange(K)):J.setLoopRange({startTimeMs:0,endTimeMs:K,type:"shortsLoop"}))}; xNU=function(J){var K=J.Qw();if(!(g.E(K.getPlayerState(),64)&&J.Dr().isLivePlayback&&J.nU.startTimeMs<5E3)){if(J.nU.type==="repeatChapter"){var n,X=(n=nEd(J.hx()))==null?void 0:n.CA(),l;n=(l=J.getVideoData())==null?void 0:l.k7;X instanceof g.Zb&&n&&(l=n[la(n,J.nU.startTimeMs)],X.renderChapterSeekingAnimation(0,l.title));isNaN(Number(J.nU.loopCount))?J.nU.loopCount=0:J.nU.loopCount++;J.nU.loopCount===1&&J.R4.I4("innertubeCommand",J.getVideoData().Nj)}X={E8:"application_loopRangeStart"};if(J.nU.type=== "clips"||J.nU.type==="shortsLoop")X.seekSource=58;K.seekTo(J.nU.startTimeMs*.001,X)}}; fjq=function(J,K){var n=J.R4.getAvailablePlaybackRates();K=Number(K.toFixed(2));J=n[0];n=n[n.length-1];K<=J?K=J:K>=n?K=n:(J=Math.floor(K*100+.001)%5,K=J===0?K:Math.floor((K-J*.01)*100+.001)/100);return K}; p8=function(J,K){K=J.PB({playerType:K});if(!K)return J.X2.G.bj();K=R1(J,K);return Tb(J,K.bj(),K)}; Tb=function(J,K,n){if(J.YO(n)&&(n=n.getVideoData(),!Dl(J))){J=J.tH;for(var X=g.z(J.Z),l=X.next();!l.done;l=X.next())if(l=l.value,n.aZ===l.aZ){K+=l.CU/1E3;break}X=K;J=g.z(J.Z);for(l=J.next();!l.done;l=J.next()){l=l.value;if(n.aZ===l.aZ)break;var x=l.CU/1E3;if(x1&&(l=!1);if(!J.aq||l!==K){n=n.lock(l?"portrait":"landscape");if(n!=null)n["catch"](function(){}); J.aq=!0}}else J.aq&&(J.aq=!1,n.unlock())}; Gb=function(J,K,n){J.R4.publish(K,n);var X=g.Ig(J.lx)||g.cp(J.lx)||g.G_(J.lx);if(n&&X){switch(K){case "cuerangemarkersupdated":var l="onCueRangeMarkersUpdated";break;case "cuerangesadded":l="onCueRangesAdded";break;case "cuerangesremoved":l="onCueRangesRemoved"}l&&J.R4.I4(l,n.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}}))}}; UN=function(J,K,n,X,l,x){n=n===void 0?!0:n;var V=J.PB({playerType:l});if(!V||(V.getPlayerType()!==2||J.YO(V))&&!g.IT(V.getVideoData())){var v=J.X2.uH;v?v.seekTo(K,{iV:!n,LP:X,E8:"application",seekSource:x}):(V&&V===J.Qw()&&J.nU&&!XTH(J,K)&&J.setLoopRange(null),J.seekTo(K,n,X,l,x))}}; wTF=function(J,K,n,X){n&&(J.Ei(),ON(J));n=J.a4();n.v0(K);var l=J.getVideoData(),x={};x.video_id=l.videoId;x.adformat=l.adFormat;l.isLivePlayback||(x.start=n.getCurrentTime(),x.resume="1");l.isLivePlayback&&Qu(l)&&g.wh(J.lx)&&(x.live_utc_start=n.vM(),x.resume="1");l.cW&&(x.vvt=l.cW);l.N&&(x.vss_credentials_token=l.N,x.vss_credentials_token_type=l.mH);l.oauthToken&&(x.oauth_token=l.oauthToken);x.autoplay=1;x.reload_count=l.iR+1;x.reload_reason=K;l.ir&&(x.unplugged_partner_opt_out=l.ir);l.oO&&(x.ypc_is_premiere_trailer= l.oO);l.playerParams&&(x.player_params=l.playerParams);J.loadVideoByPlayerVars(x,void 0,!0,void 0,void 0,X);K==="signature"&&J.wE&&Nye(J)}; Pvf=function(J,K){J.Dr().autonavState=K;g.kF("yt-player-autonavstate",K);J.R4.publish("autonavchange",K)}; I9H=function(J){var K=J.getVideoData().zw,n=J.lx.md,X=J.isInline()&&!J.getVideoData().K4,l=J.mediaElement;K||n||X?l.B7():(l.Cf(),B1(J,J.ez))}; dl=function(J){var K=BZ(J.hx());K&&K.created&&(J.logger.debug("reset ad module"),K.destroy())}; Dl=function(J){return J.getVideoData().enableServerStitchedDai&&!!J.wE}; iqU=function(J,K){K.bounds=J.getBoundingClientRect();for(var n=g.z(["display","opacity","visibility","zIndex"]),X=n.next();!X.done;X=n.next())X=X.value,K[X]=Ui(J,X);K.hidden=!!J.hidden}; z1U=function(J){if(J.webPlayerContextConfig){var K=J.webPlayerContextConfig.trustedJsUrl;return K?I2(K).toString():J.webPlayerContextConfig.jsUrl}return J.config.assets&&J.config.assets.js?J.config.assets.js:""}; B8p=function(J,K){var n=J.PB({playerType:1});if(n){if(n.getVideoData().clientPlaybackNonce===K)return n;if((J=J.mw.G)&&J.getVideoData().clientPlaybackNonce===K)return J}return null}; rl=function(J,K,n){J.DW.push({key:K,value:n})}; mN3=function(J){return J.name==="TypeError"&&J.stack.includes("/s/player/")&&ya()<=105}; pTq=function(J){return J.isTimeout?"NO_BID":"ERR_BID"}; LP3=function(){var J=null;YXf().then(function(K){return J=K},function(K){return J=pTq(K)}); return J}; T8q=function(){var J=GD(1E3,"NO_BID");return g.k0(Jzr([YXf(),J]).FO(pTq),function(){J.cancel()})}; tA=function(J){return J.zL?g.Z0(g.yT(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; yb=function(J){this.player=J;this.X=this.G=1}; kgM=function(J,K,n,X,l,x){K.client||(K.client={});J.player.S().J("h5_remove_url_for_get_ad_break")||(K.client.originalUrl=n);var V=Va(n),v=g.PH(n)?!1:!0;(V||v)&&typeof Intl!=="undefined"&&(K.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);v=g.PH(n)?!1:!0;if(V||v||X!==""){var Q={};n=na(Sf(X)).split("&");var S=new Map;n.forEach(function(r){r=r.split("=");r.length>1&&S.set(r[0].toString(),decodeURIComponent(r[1].toString()))}); S.has("bid")&&(Q.bid=S.get("bid"));Q.params=[];DNe.forEach(function(r){S.has(r)&&(r={key:r,value:S.get(r)},Q.params.push(r))}); dNq(J,Q);K.adSignalsInfo=Q}K.client.unpluggedAppInfo||(K.client.unpluggedAppInfo={});K.client.unpluggedAppInfo.enableFilterMode=!1;n=l.G.cosver;n!=null&&n!=="cosver"&&(K.client.osVersion=n);n=l.G.cplatform;n!=null&&n!=="cplatform"&&n!==""&&(K.client.platform=n);n=l.G.cmodel;n!=null&&n!=="cmodel"&&(K.client.deviceModel=n);n=l.G.cplayer;n!=null&&n!=="cplayer"&&(K.client.playerType=n);n=l.G.cbrand;n!=null&&n!=="cbrand"&&(K.client.deviceMake=n);K.user||(K.user={});K.user.lockedSafetyMode=!1;(l.J("embeds_web_enable_iframe_api_send_full_embed_url")|| l.J("embeds_enable_autoplay_and_visibility_signals"))&&g.gz(l)&&o1V(K,x,J.player.getPlayerState(1))}; YJM=function(J,K){var n=!1;if(K==="")return n;K.split(",").forEach(function(X){var l={},x={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},V="ACTIVE";X[0]==="!"&&(X=X.substring(1),V="INACTIVE");X=X.split("-");X.length<3||(X[0]in gye&&(x.clientName=gye[X[0]]),X[1]in cWV&&(x.platform=cWV[X[1]]),x.applicationState=V,x.clientVersion=X.length>2?X[2]:"",l.remoteClient=x,J.remoteContexts?J.remoteContexts.push(l):J.remoteContexts=[l],n=!0)}); return n}; UNq=function(J){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in Ggf))return!1;J=J.split(RegExp("[:&]"));var K=Ggf.FLAG_AUTO_CAPTIONS_DEFAULT_ON,n="f"+(1+Math.floor(K/31)).toString();K=1<=2?V[1]:"";var v=yWf.test(K),Q=Zqk.exec(K);Q=Q!=null&&Q.length>=2?Q[1]:"";var S=f97.exec(K);S=S!=null&&S.length>=2&&!Number.isNaN(Number(S[1]))?Number(S[1]):1;var r=WPr.exec(K);r=r!=null&&r.length>=2?r[1]:"0";var C=tS(J.player.S().jz),O=J.player.getVideoData(1),H=g.Mx(O.j_,!0),R="BISCOTTI_ID"in n?n.BISCOTTI_ID:"";kgM(J,H,K,R.toString(),J.player.S(), O);O={splay:!1,lactMilliseconds:n.LACT.toString(),playerHeightPixels:Math.trunc(n.P_H),playerWidthPixels:Math.trunc(n.P_W),vis:Math.trunc(n.VIS),signatureTimestamp:20221,autonavState:tA(J.player.S())};X&&(X={},YJM(X,n.YT_REMOTE)&&(O.mdxContext=X));if(X=a93.includes(C)?void 0:g.YA("PREF")){for(var w=X.split(RegExp("[:&]")),P=0,B=w.length;P1&&p[1].toUpperCase()==="TRUE"){H.user.lockedSafetyMode=!0;break}}O.autoCaptionsDefaultOn= UNq(X)}K=FP3.exec(K);(K=K!=null&&K.length>=2?K[1]:"")&&Q&&(H.user.credentialTransferTokens=[{token:K,scope:"VIDEO"}]);K={contentPlaybackContext:O};V={adBlock:Math.trunc(n.AD_BLOCK),params:V,breakIndex:S,breakPositionMs:r,clientPlaybackNonce:n.CPN,topLevelDomain:C,isProxyAdTagRequest:v,context:H,adSignalsInfoString:na(Sf(R.toString())),overridePlaybackContext:K};l!==void 0&&(V.cueProcessedMs=Math.round(l).toString());Q&&(V.videoId=Q);n.LIVE_TARGETING_CONTEXT&&(V.liveTargetingParams=n.LIVE_TARGETING_CONTEXT); n.AD_BREAK_LENGTH&&(V.breakLengthMs=Math.trunc(n.AD_BREAK_LENGTH*1E3).toString());x&&(V.driftFromHeadMs=x.toString());V.currentMediaTimeMs=Math.round(J.player.getCurrentTime(1)*1E3);(J=J.player.getGetAdBreakContext())&&(V.getAdBreakContext=J);return V}; EyH=function(){yb.apply(this,arguments)}; bq8=function(J,K,n,X,l){var x=n.UD;var V=n.Eo;var v=J.player.S().VJ,Q=0;n.cueProcessedMs&&V&&!x&&(n=V.end-V.start,n>0&&(Q=Math.floor(n/1E3)));var S={AD_BLOCK:l,AD_BREAK_LENGTH:x?x.rW:Q,AUTONAV_STATE:tA(J.player.S()),CA_TYPE:"image",CPN:J.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:J.player.UR()*1E3,LACT:BC(),LIVE_INDEX:x?J.X++:1,LIVE_TARGETING_CONTEXT:x&&x.context?x.context:"",MIDROLL_POS:V?Math.round(V.start/1E3):0,MIDROLL_POS_MS:V?Math.round(V.start):0,VIS:J.player.getVisibilityState(), P_H:J.player.S_().pA().height,P_W:J.player.S_().pA().width,YT_REMOTE:v?v.join(","):""},r=$A(Qa);Object.keys(r).forEach(function(C){r[C]!=null&&(S[C.toUpperCase()]=r[C].toString())}); X!==""&&(S.BISCOTTI_ID=X);X={};va(K)&&(X.sts="20221",(J=J.player.S().forcedExperiments)&&(X.forced_experiments=J));return jf(g.T1(K,S),X)}; AWq=function(J,K){var n=J.player.S(),X,l=(X=J.player.getVideoData(1))==null?void 0:X.oauthToken;return g.l7(n,l).then(function(x){if(x&&h2()){var V=Yw();Gh(V,x)}return g.q5(g.U(J.player.Jd(V)),K,"/youtubei/v1/player/ad_break").then(function(v){return v})})}; MJp=function(J){this.NQ=J}; N83=function(J){this.B=J}; JH3=function(J){this.NQ=J}; nsM=function(J){g.t.call(this);this.G=J;this.Qy=K38(this)}; K38=function(J){var K=new IxH(J.G.eh);g.Z(J,K);J=[new MJp(J.G.NQ),new N83(J.G.B),new JH3(J.G.NQ),new LO(J.G.ey,J.G.lB),new Dy,new gt(J.G.KH,J.G.c6,J.G.NQ),new Ti,new pO];J=g.z(J);for(var n=J.next();!n.done;n=J.next())iZF(K,n.value);J=g.z(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(n=J.next();!n.done;n=J.next())dt(K,n.value,function(){}); return K}; Zl=function(J){var K=J.Jj,n=J.xF;J=J.Oo;var X=new aUf,l={gG:new wz3(K.get(),n),xF:n};return{Bw:new VW(n,J,K,l),context:l,gK:X}}; f8=function(J,K,n,X,l){g.t.call(this);this.Z=K;this.bx=n;this.Jj=X;this.tB=l;this.listeners=[];var x=new mG(this);g.Z(this,x);x.T(J,"internalAbandon",this.j5Q);this.addOnDisposeCallback(function(){g.L0(x)})}; W1=function(J){this.B=J;this.adVideoId=this.G=this.videoId=this.adCpn=this.contentCpn=null;this.C=!0;this.Z=this.X=!1;this.adFormat=null;this.U="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; os7=function(J){J.contentCpn=null;J.adCpn=null;J.videoId=null;J.adVideoId=null;J.adFormat=null;J.U="AD_PLACEMENT_KIND_UNKNOWN";J.actionType="unknown_type";J.X=!1;J.Z=!1}; Xw8=function(J,K){J=g.z(K);for(K=J.next();!K.done;K=J.next())if((K=K.value.renderer)&&(K.instreamVideoAdRenderer||K.linearAdSequenceRenderer||K.sandwichedLinearAdRenderer||K.instreamSurveyAdRenderer)){Ul("ad_i");g.tB({isMonetized:!0});break}}; lJH=function(J){var K;(K=J.B.getVideoData(1))!=null&&K.PW&&(J.Z=!1,K={},J.G&&J.videoId&&(K.cttAuthInfo={token:J.G,videoId:J.videoId}),y_("video_to_ad",K))}; Fj=function(J){J.Z=!1;var K={};J.G&&J.videoId&&(K.cttAuthInfo={token:J.G,videoId:J.videoId});y_("ad_to_video",K);x_r(J)}; x_r=function(J){if(J.X)if(J.U==="AD_PLACEMENT_KIND_START"&&J.actionType==="video_to_ad")cs("video_to_ad");else{var K={adBreakType:wq(J.U),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:J.videoStreamType};J.actionType==="ad_to_video"?(J.contentCpn&&(K.targetCpn=J.contentCpn),J.videoId&&(K.targetVideoId=J.videoId)):(J.adCpn&&(K.targetCpn=J.adCpn),J.adVideoId&&(K.targetVideoId=J.adVideoId));J.adFormat&&(K.adType=J.adFormat);J.contentCpn&& (K.clientPlaybackNonce=J.contentCpn);J.videoId&&(K.videoId=J.videoId);J.adCpn&&(K.adClientPlaybackNonce=J.adCpn);J.adVideoId&&(K.adVideoId=J.adVideoId);g.tB(K,J.actionType);J.B.S().experiments.sM("html5_ads_csi_qoes")&&(K=J.B.jy(J.actionType==="ad_to_video"?1:2),K=(0,g.a)()-1E3*K,fo("qoes",K,J.actionType))}}; a1=function(J){g.t.call(this);this.B=J;this.G=new Map;this.Z=new mG(this);g.Z(this,this.Z);this.Z.T(this.B,g.o4("ad"),this.onCueRangeEnter,this);this.Z.T(this.B,g.XD("ad"),this.onCueRangeExit,this)}; jEU=function(J,K,n,X,l){g.KG.call(this,K,n,{id:J,namespace:"ad",priority:l,visible:X})}; Fl=function(J){this.B=J}; VN3=function(J,K){J.B.cueVideoByPlayerVars(K,2)}; qv=function(J){this.B=J}; EN=function(J){this.B=J;g.Qg(this.B.S().experiments,"tv_pacf_logging_sample_rate")}; hAp=function(J){return FV(J,"html5_ssap_play_cached_preroll")}; wY=function(J,K){K=K===void 0?!1:K;return J.B.S().J("html5_ssap_force_ads_ctmp")?!0:(K||J.B.S().Pw())&&J.B.S().J("html5_ssap_pacf_qoe_ctmp")}; vsV=function(J){return J.B.S().J("dai_layout_log_skip_exit_reason")}; bs=function(J){var K;return(K=J.B.getVideoData(1)==null?void 0:!1)!=null?K:!1}; YOF=function(J){return!J.B.S().J("html5_override_ad_video_length_killswitch")}; FV=function(J,K){return J.B.S().J(K)}; QEd=function(J){return J.B.S().J("substitute_ad_cpn_macro_in_ssdai")}; I8=function(J){var K,n,X;return((K=J.B.getVideoData(1).getPlayerResponse())==null?void 0:(n=K.playerConfig)==null?void 0:(X=n.daiConfig)==null?void 0:X.enableServerStitchedDai)||!1}; kU7=function(J){return J.B.S().J("html5_enable_vod_slar_with_notify_pacf")}; YgV=function(J){return J.B.S().J("h5_check_forecasting_renderer_for_throttled_midroll")}; $_f=function(J){return J.B.S().J("html5_recognize_predict_start_cue_point")}; o8=function(J){return J.B.S().experiments.sM("enable_desktop_player_underlay")}; Sqf=function(J){return J.B.S().experiments.sM("html5_disable_sodar_for_tvhtml5")}; GUe=function(J){return J.B.S().Pw()}; rH7=function(J){return J.B.S().experiments.sM("html5_load_empty_player_in_media_break_sub_lra")}; gq=function(J){return J.B.S().experiments.sM("html5_load_ads_instead_of_cue")}; ch=function(J){return J.B.S().experiments.sM("html5_preload_ads")}; sE3=function(J){return J.B.S().experiments.sM("should_ignore_cuepoints_during_lifa_preroll")}; nY=function(J){return J.B.S().experiments.sM("enable_ads_control_flow_deterministic_id_generation")}; C4d=function(J){return J.B.S().experiments.sM("enable_desktop_discovery_video_abandon_pings")||g.EM(J.B.S())}; OrF=function(J){return J.B.S().experiments.sM("enable_progres_commands_lr_feeds")}; iL=function(J){return J.B.S().experiments.sM("html5_cuepoint_identifier_logging")}; y33=function(J){J=J.B.getVideoData(1);return!!J&&J.J("html5_preload_first_vod_video_ad")&&!J.isDaiEnabled()&&!J.isLivePlayback}; HrV=function(J){switch(J){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}}; RAk=function(){g.hi.call(this);var J=this;this.G={};this.addOnDisposeCallback(function(){for(var K=g.z(Object.keys(J.G)),n=K.next();!n.done;n=K.next())delete J.G[n.value]})}; AA=function(){if(uuM===null){uuM=new RAk;FG(J$).Z="b";var J=FG(J$),K=ZG(J)=="h"||ZG(J)=="b",n=!(xp(),!1);K&&n&&(J.C=!0,J.N=new Hve)}return uuM}; eA3=function(J,K,n){J.G[K]=n}; zAH=function(J){switch(J){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}}; Mv=function(J,K,n){this.bx=J;this.B=K;this.xF=n;this.Z=new Set;this.G=new Map;AA().subscribe("adactiveviewmeasurable",this.yV,this);AA().subscribe("adfullyviewableaudiblehalfdurationimpression",this.wq,this);AA().subscribe("adviewableimpression",this.gq,this);AA().subscribe("adaudioaudible",this.T8,this);AA().subscribe("adaudiomeasurable",this.aM,this)}; JY=function(J,K,n){var X=n.XP,l=n.p4,x=n.listener,V=n.f7;n=n.m5===void 0?!1:n.m5;if(J.G.has(K))Se("Unexpected registration of layout in LidarApi");else{if(V){if(J.Z.has(V))return;J.Z.add(V)}J.G.set(K,x);QP(xp().i_,"fmd",1);ma8(FG(J$),X);var v=n?K:void 0;eA3(AA(),K,{uO:function(){if(!l)return{};var Q=J.B.getPresentingPlayerType(!0),S;return(S=J.B.getVideoData(Q))!=null&&S.isAd()?{currentTime:J.bx.get().getCurrentTimeSec(Q,!1,v),duration:l,isPlaying:Nv(J.bx.get(),Q).isPlaying(),isVpaid:!1,isYouTube:!0, volume:J.bx.get().isMuted()?0:J.bx.get().getVolume()/100}:{}}})}}; K2=function(J,K){J.G.has(K)?(J.G.delete(K),delete AA().G[K]):Se("Unexpected unregistration of layout in LidarApi")}; wwk=function(J,K){if(J.B.isLifaAdPlaying()){var n=J.B.CI(!0,!0);J.nG(K,n.width*.5*1.1,n.height*.25*1.1,n.width*.5*.9,n.height*.5*.9)}}; ir8=function(J,K,n){var X={};P4f(J,X,K,n);IJ8(X);X.LACT=n2(function(){return BC().toString()}); X.VIS=n2(function(){return J.getVisibilityState().toString()}); X.SDKV="h.3.0";X.VOL=n2(function(){return J.isMuted()?"0":Math.round(J.getVolume()).toString()}); X.VED="";return X}; BCe=function(J,K){var n={};if(K)return n;if(!J.kind)return g.ko(Error("AdPlacementConfig without kind")),n;if(J.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||J.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!J.adTimeOffset||!J.adTimeOffset.offsetStartMilliseconds)return g.ko(Error("malformed AdPlacementConfig")),n;n.MIDROLL_POS=n2($_(Math.round(uB(J.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else n.MIDROLL_POS=n2($_("0"));return n}; n2=function(J){return{toString:function(){return J()}}}; m_7=function(J,K,n){function X(v,Q){(Q=n[Q])&&(x[v]=Q)} function l(v,Q){(Q=n[Q])&&(x[v]=V(Q))} if(!n||g.Mz(n))return J;var x=Object.assign({},J),V=K?encodeURIComponent:function(v){return v}; l("DV_VIEWABILITY","doubleVerifyViewability");l("IAS_VIEWABILITY","integralAdsViewability");l("MOAT_INIT","moatInit");l("MOAT_VIEWABILITY","moatViewability");X("GOOGLE_VIEWABILITY","googleViewability");X("VIEWABILITY","viewability");return x}; P4f=function(J,K,n,X){K.CPN=n2(function(){var l;(l=J.getVideoData(1))?l=l.clientPlaybackNonce:(g.gG(Error("Video data is null.")),l=null);return l}); K.AD_MT=n2(function(){if(X!=null)var l=X;else{var x=n;J.S().J("html5_ssap_use_cpn_to_get_time")||(x=void 0);if(J.S().J("enable_h5_shorts_ad_fill_ad_mt_macro")||J.S().J("enable_desktop_discovery_pings_ad_mt_macro")||g.EM(J.S())){var V=J.getPresentingPlayerType(!0),v;l=((v=J.getVideoData(V))==null?0:v.isAd())?pwr(J,V,x):0}else l=pwr(J,2,x)}return L3F(l)}); K.MT=n2(function(){return L3F(J.getCurrentTime(1,!1))}); K.P_H=n2(function(){return J.S_().pA().height.toString()}); K.P_W=n2(function(){return J.S_().pA().width.toString()}); K.PV_H=n2(function(){return J.S_().getVideoContentRect().height.toString()}); K.PV_W=n2(function(){return J.S_().getVideoContentRect().width.toString()})}; L3F=function(J){return Math.round(Math.max(0,J*1E3)).toString()}; IJ8=function(J){J.CONN=n2($_("0"));J.WT=n2(function(){return Date.now().toString()})}; pwr=function(J,K,n){return n!==void 0?J.getCurrentTime(K,!1,n):J.getCurrentTime(K,!1)}; TC3=function(){}; D_d=function(J,K,n,X,l){var x,V,v,Q,S,r,C,O,H,R,w,P,B;g.G(function(p){switch(p.Z){case 1:x=!!K.scrubReferrer;V=g.T1(K.baseUrl,m_7(n,x,X));v={};if(!K.headers){p.EM(2);break}Q=J.U();if(!Q.G){S=Q.getValue();p.EM(3);break}return g.d(p,Q.G,4);case 4:S=p.G;case 3:r=S;C=g.z(K.headers);for(O=C.next();!O.done;O=C.next())switch(H=O.value,H.headerType){case "VISITOR_ID":g.Et("VISITOR_DATA")&&(v["X-Goog-Visitor-Id"]=g.Et("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.Et("EOM_VISITOR_DATA")&&(v["X-Goog-EOM-Visitor-Id"]= g.Et("EOM_VISITOR_DATA"));break;case "USER_AUTH":r&&(v.Authorization="Bearer "+r);break;case "PLUS_PAGE_ID":(R=J.C())&&(v["X-Goog-PageId"]=R);break;case "AUTH_USER":w=J.G();!r&&w&&(v["X-Goog-AuthUser"]=w);break;case "DATASYNC_ID":if(P=void 0,(P=J.X())==null?0:P.sM("enable_datasync_id_header_in_web_vss_pings"))B=J.Z(),Va(V)&&g.Et("LOGGED_IN")&&B&&(v["X-YouTube-DataSync-Id"]=B)}"X-Goog-EOM-Visitor-Id"in v&&"X-Goog-Visitor-Id"in v&&delete v["X-Goog-Visitor-Id"];case 2:g.tE(V,void 0,x,Object.keys(v).length!== 0?v:void 0,"",!0,l),g.uF(p)}})}; d_f=function(J,K,n,X,l){this.U=J;this.C=K;this.G=n;this.Z=X;this.X=l}; kwd=function(J,K){this.G=J;this.xF=K}; ok=function(J,K,n,X,l,x,V){var v=v===void 0?new d_f(function(){var Q=J.S(),S=J.getVideoData(1);return g.l7(Q,S?g.Yi(S):"")},function(){return J.S().pageId},function(){return J.S().Aj},function(){var Q; return(Q=J.S().datasyncId)!=null?Q:""},function(){return J.S().experiments}):v; this.B=J;this.Z=K;this.pU=n;this.Jj=X;this.Bw=l;this.xF=x;this.gK=V;this.U=v;this.sZ=null;this.G=new Map;this.X=new kwd(v,this.xF)}; cHV=function(J,K,n,X,l){var x=gX(J.Z.get(),n);x?(n=iW(J,gsk(x),x,void 0,void 0,X),K.hasOwnProperty("baseUrl")?J.U.send(K,n):J.X.send(K,n,{},l)):Se("Trying to ping from an unknown layout",void 0,void 0,{layoutId:n})}; D1U=function(J,K,n,X,l,x){X=X===void 0?[]:X;var V=gX(J.Z.get(),K);if(V){var v=J.pU.get().Lh(K,n),Q=iW(J,gsk(V),V,l,x);X.forEach(function(S,r){S.baseUrl&&(J.X.send(S.baseUrl,Q,v,S.attributionSrcMode),S.serializedAdPingMetadata&&J.Bw.Qe("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,V,new QOF(S,r),void 0,void 0,V.adLayoutLoggingData))})}else Se("Trying to track from an unknown layout.",void 0,void 0,{layoutId:K, trackingType:n})}; R4=function(J,K){J.B.sendVideoStatsEngageEvent(K,void 0,2)}; Kg=function(J,K){g.vJ("adsClientStateChange",K)}; YqV=function(J,K){J.G.has(K.SA())?Se("Trying to register an existing AdErrorInfoSupplier."):J.G.set(K.SA(),K)}; Gw8=function(J,K){J.G.delete(K.SA())||Se("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; lb=function(J,K,n){typeof n==="string"?J.B.getVideoData(1).JJ(K,n):J.B.getVideoData(1).Zm(K,n)}; gsk=function(J){var K=g.U(XV(J.clientMetadata,"metadata_type_ad_placement_config"));J=XV(J.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:K,iG:J}}; iW=function(J,K,n,X,l,x){var V=n?U_F(J):{},v=n?tNV(J,n.layoutId):{},Q=yH3(J),S,r=l!=null?l:(S=RK(J.Jj.get(),2))==null?void 0:S.clientPlaybackNonce;l=void 0;if(n){var C;if((C=J.gK.G.get(n.layoutId))==null?0:C.m5)l=n.layoutId}C={};J=Object.assign({},ir8(J.B,l,X),BCe(K.adPlacementConfig,(n==null?void 0:n.renderingContent)!==void 0),v,V,Q,(C.FINAL=n2(function(){return"1"}),C.AD_CPN=n2(function(){return r||""}),C)); (n==null?void 0:n.renderingContent)!==void 0||(J.SLOT_POS=n2(function(){return(K.iG||0).toString()})); n={};x=Object.assign({},J,x);J=g.z(Object.values(Zrk));for(X=J.next();!X.done;X=J.next())X=X.value,V=x[X],V!=null&&V.toString()!=null&&(n[X]=V.toString());return n}; U_F=function(J){var K={},n,X=(n=J.sZ)==null?void 0:n.pJ/1E3;X!=null&&(K.SURVEY_ELAPSED_MS=n2(function(){return Math.round(X*1E3).toString()})); K.SURVEY_LOCAL_TIME_EPOCH_S=n2(function(){return Math.round(Date.now()/1E3).toString()}); return K}; tNV=function(J,K){J=J.G.get(K);if(!J)return{};J=J.Kf();if(!J)return{};K={};return K.YT_ERROR_CODE=J.MU.toString(),K.ERRORCODE=J.dZ.toString(),K.ERROR_MSG=J.errorMessage,K}; yH3=function(J){var K={},n=J.B.getVideoData(1);K.ASR=n2(function(){var X;return(X=n==null?void 0:n.xY)!=null?X:null}); K.EI=n2(function(){var X;return(X=n==null?void 0:n.eventId)!=null?X:null}); return K}; X2=function(J,K,n){g.t.call(this);this.B=J;this.K$=K;this.xF=n;this.listeners=[];this.TB=null;this.EP=new Map;K=new g.gY(this);g.Z(this,K);K.T(J,"videodatachange",this.oox);K.T(J,"serverstitchedvideochange",this.GLv);this.qt=RK(this)}; RK=function(J,K){var n=J.B.getVideoData(K);return n?J.cn(n,K||J.B.getPresentingPlayerType(!0)):null}; ng=function(J){return J.qt}; fJ8=function(J,K,n){var X=J.cn(K,n);J.qt=X;J.listeners.forEach(function(l){l.Aw(X)})}; W33=function(J){switch(J){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}}; ll=function(J,K,n){g.t.call(this);this.B=J;this.Jj=K;this.xF=n;this.listeners=[];this.Xf=[];this.G=function(){Se("Called 'doUnlockPreroll' before it's initialized.")}; K=new mG(this);n=new g.gY(this);g.Z(this,n);g.Z(this,K);K.T(J,"progresssync",this.JHQ);K.T(J,"presentingplayerstatechange",this.hqq);K.T(J,"fullscreentoggled",this.onFullscreenToggled);K.T(J,"onVolumeChange",this.onVolumeChange);K.T(J,"minimized",this.Uy);K.T(J,"overlayvisibilitychange",this.Ju);K.T(J,"shortsadswipe",this.RP);K.T(J,"resize",this.s_);n.T(J,g.o4("appad"),this.CJ)}; xe=function(J){bs(J.xF.get())||J.G()}; aJd=function(J,K){J.Xf=J.Xf.filter(function(n){return n!==K})}; j2=function(J,K,n){return J.getCurrentTimeSec(K,n)}; wX=function(J){return J.getCurrentTimeSec(1,!1)}; F3M=function(J,K){var n;K=(n=J.Jj.get().EP.get(K))!=null?n:null;if(K===null)return Se("Expected ad video start time on playback timeline"),0;J=J.B.getCurrentTime(2,!0);return J0){var x=K.end.toString();l.forEach(function(V){(V=V.config&&V.config.adPlacementConfig)&&V.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&V.adTimeOffset&&V.adTimeOffset.offsetEndMilliseconds==="-1"&&V.adTimeOffset.offsetEndMilliseconds!==x&&(V.adTimeOffset.offsetEndMilliseconds=x)}); X.map(function(V){return g.f(V,yS)}).forEach(function(V){var v; (V=V==null?void 0:(v=V.slotEntryTrigger)==null?void 0:v.mediaTimeRangeTrigger)&&V.offsetEndMilliseconds==="-1"&&(V.offsetEndMilliseconds=x)})}return{Or:l, adSlots:X,xP:!1,ssdaiAdsConfig:J.ssdaiAdsConfig}}; $e=function(J){g.t.call(this);this.B=J;this.listeners=[];this.G=new mG(this);g.Z(this,this.G);this.G.T(this.B,"aduxclicked",this.onAdUxClicked);this.G.T(this.B,"aduxmouseover",this.Z6);this.G.T(this.B,"aduxmouseout",this.Qa);this.G.T(this.B,"muteadaccepted",this.Wdj)}; NCU=function(J,K,n){K=g.ff(K,function(X){return new WAM(X,n,X.id)}); J.B.I4("onAdUxUpdate",K)}; S2=function(J,K){J=g.z(J.listeners);for(var n=J.next();!n.done;n=J.next())K(n.value)}; rx=function(J,K){this.Z=J;this.X=K===void 0?!1:K;this.G={}}; JbF=function(J,K){var n=J.startSecs+J.rW;n=n<=0?null:n;if(n===null)return null;switch(J.event){case "start":case "continue":case "stop":break;case "predictStart":if(K)break;return null;default:return null}K=Math.max(J.startSecs,0);return{f8:new PM(K,n),Pv:new a9(K,n-K,J.context,J.identifier,J.event,J.G)}}; K8d=function(){this.G=[]}; ps3=function(J,K,n){var X=g.TO(J.G,K);if(X>=0)return K;K=-X-1;return K>=J.G.length||J.G[K]>n?null:J.G[K]}; sI=function(J,K,n){g.t.call(this);this.B=J;this.xF=K;this.NQ=n;this.listeners=[];this.C=!1;this.U=[];this.G=null;this.N=new rx(this,$_f(K.get()));this.X=new K8d;this.Z=null}; n8H=function(J){return J.U}; o8F=function(J,K){J.U.push(K);for(var n=!1,X=g.z(J.listeners),l=X.next();!l.done;l=X.next())n=l.value.T$(K)||n;J.C=n;iL(J.xF.get())&&lb(J.NQ.get(),"onci","cpi."+K.identifier+";cpe."+K.event+";cps."+K.startSecs+";cbi."+n)}; lEM=function(J,K){Kg(J.NQ.get(),{cuepointTrigger:{event:XEM(K.event),cuepointId:K.identifier,totalCueDurationMs:K.rW*1E3,playheadTimeMs:K.G,cueStartTimeMs:K.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:J.B.getVideoData(1).clientPlaybackNonce}})}; XEM=function(J){switch(J){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 AK(J,"Unexpected cuepoint event")}}; C2=function(J){this.B=J}; OI=function(J){this.B=J}; xkU=function(J){switch(J){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:AK(J,"unknown transitionReason")}}; Hr=function(){g.t.apply(this,arguments)}; jq3=function(J){this.B=J}; VFk=function(J,K,n,X,l){g.t.call(this);var x=this,V=UY(function(){return new KY(x.xF)}); g.Z(this,V);var v=UY(function(){return new od(V,x.xF)}); g.Z(this,v);var Q=UY(function(){return new Dd}); g.Z(this,Q);var S=UY(function(){return new Lz(J)}); g.Z(this,S);var r=UY(function(){return new X1(V,v,x.xF)}); g.Z(this,r);var C=UY(function(){return new ht}); g.Z(this,C);this.O_=UY(function(){return new $e(K)}); g.Z(this,this.O_);this.cw=UY(function(){return new yg(l)}); g.Z(this,this.cw);this.n9=UY(function(){return new W1(K)}); g.Z(this,this.n9);this.jh=UY(function(){return new a1(K)}); g.Z(this,this.jh);this.p9=UY(function(){return new Fl(K)}); g.Z(this,this.p9);this.eh=UY(function(){return new qv(K)}); g.Z(this,this.eh);this.xF=UY(function(){return new EN(K)}); g.Z(this,this.xF);var O=UY(function(){return new Qv(X)}); g.Z(this,O);var H=UY(function(){return new $G(x.xF)}); g.Z(this,H);this.Wp=UY(function(){return new C2(K)}); g.Z(this,this.Wp);this.KQ=UY(function(){return new Wb}); g.Z(this,this.KQ);this.Jj=UY(function(){return new X2(K,C,x.xF)}); g.Z(this,this.Jj);var R=Zl({Jj:this.Jj,xF:this.xF,Oo:H}),w=R.context,P=R.gK;this.Bw=R.Bw;this.tB=UY(function(){return new sI(K,x.xF,x.NQ)}); g.Z(this,this.tB);this.dR=UY(function(){return new OI(K)}); g.Z(this,this.dR);this.bx=UY(function(){return new ll(K,x.Jj,x.xF)}); g.Z(this,this.bx);this.Uk=UY(function(){return new Hr}); g.Z(this,this.Uk);R=UY(function(){return new uL(V,r,v,x.xF,H,"SLOT_TYPE_ABOVE_FEED",x.bx,x.hM,x.wW)}); g.Z(this,R);this.yB=UY(function(){return new ag(x.xF)}); this.pU=UY(function(){return new Mv(x.bx,K,x.xF)}); g.Z(this,this.pU);this.NQ=UY(function(){return new ok(K,Q,x.pU,x.Jj,x.Bw,x.xF,P)}); g.Z(this,this.NQ);this.ai=new mi(B2,Rk,function(p,k,c,y){return nz(v.get(),p,k,c,y)},S,r,v,H,this.xF,this.Jj); g.Z(this,this.ai);this.QA=new pz(S,R,n,this.xF,J,this.Jj,this.bx,this.n9);g.Z(this,this.QA);var B=new f8(K,this.QA,this.bx,this.Jj,this.tB);this.Cl=UY(function(){return B}); this.IM=B;this.hM=new P2(S,r,this.Cl,this.tB,this.bx,this.xF,this.NQ,this.dR);g.Z(this,this.hM);this.gt=new TX(S,r,this.jh,this.Cl,w);g.Z(this,this.gt);this.Zh=new tm(this.xF,S,r,R,this.Jj,this.gt,n,this.p9);g.Z(this,this.Zh);this.lk=UY(function(){return new vL(O,v,H,x.xF,x.NQ,x.bx,x.dR)}); g.Z(this,this.lk);this.pH=UY(function(){return new Q8}); g.Z(this,this.pH);this.A8=new t5(J,this.O_,this.xF);g.Z(this,this.A8);this.Ww=new yE(J);g.Z(this,this.Ww);this.Mq=new Zd(J);g.Z(this,this.Mq);this.WO=new W2(J,this.Cl,w);g.Z(this,this.WO);this.sB=new a8(J,this.jh,this.bx,this.Jj,w);g.Z(this,this.sB);this.bW=new FT(J,this.Jj);g.Z(this,this.bW);this.wW=new bL(J,this.tB,this.bx,this.NQ,this.Cl);g.Z(this,this.wW);this.Xh=new qP(J);g.Z(this,this.Xh);this.uh=new Jt(J);g.Z(this,this.uh);this.VI=new EZ(J);g.Z(this,this.VI);this.H8=new NP(J);g.Z(this,this.H8); this.uh=new Jt(J);g.Z(this,this.uh);this.vB=UY(function(){return new c2}); g.Z(this,this.vB);this.wu=UY(function(){return new YO(x.bx)}); g.Z(this,this.wu);this.Cd=UY(function(){return new Nor(x.O_,x.NQ,J,Q,x.pU)}); g.Z(this,this.Cd);this.vH=UY(function(){return new EB(x.Zh,S,V)}); g.Z(this,this.vH);this.AM=UY(function(){return new ML(x.xF,x.NQ,x.Xh,x.pU)}); g.Z(this,this.AM);this.Tw=UY(function(){return new $L(J,x.uh,x.Xh,x.Jj,x.dR,x.bx,x.Uk,x.NQ,C,x.tB,x.pU,x.yB,x.p9,x.jh,x.n9,x.eh,x.cw,x.Wp,x.xF,Q,w,P)}); g.Z(this,this.Tw);this.XS=UY(function(){return new SC8(x.bx,x.NQ,x.cw,x.xF,x.pU,x.Jj)}); g.Z(this,this.XS);this.lC=UY(function(){return new J37(x.O_,x.bx,x.NQ,Q,x.pU,x.Mq,x.H8,x.cw,x.xF,n)}); g.Z(this,this.lC);this.wI=UY(function(){return new JCq(x.O_,x.NQ,Q)}); g.Z(this,this.wI);this.Aq=new vr(J,this.KQ,V);g.Z(this,this.Aq);this.Ch={i5:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Zh],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.hM],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.ai],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.QA],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.gt]]),Ro:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.lk],["SLOT_TYPE_ABOVE_FEED",this.pH],["SLOT_TYPE_FORECASTING",this.pH], ["SLOT_TYPE_IN_PLAYER",this.pH],["SLOT_TYPE_PLAYER_BYTES",this.pH],["SLOT_TYPE_PLAYER_UNDERLAY",this.pH],["SLOT_TYPE_PLAYBACK_TRACKING",this.pH],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.pH]]),Yl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.A8],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.A8],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Ww],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Ww],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Ww],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Ww],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.Ww],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Ww],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Ww],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Ww],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Ww],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.Ww],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Ww],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Mq],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.WO],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.sB],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.sB],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.sB],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.sB],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.sB],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.sB],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.sB],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.bW],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.bW],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Xh],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.WO],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.VI],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.H8],["TRIGGER_TYPE_AD_BREAK_STARTED",this.uh],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.wW],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.wW],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.wW],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.wW],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.wW]]),KK:new Map([["SLOT_TYPE_ABOVE_FEED",this.vB], ["SLOT_TYPE_AD_BREAK_REQUEST",this.vB],["SLOT_TYPE_FORECASTING",this.vB],["SLOT_TYPE_IN_PLAYER",this.vB],["SLOT_TYPE_PLAYER_BYTES",this.wu],["SLOT_TYPE_PLAYER_UNDERLAY",this.vB],["SLOT_TYPE_PLAYBACK_TRACKING",this.vB],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.vB]]),uC:new Map([["SLOT_TYPE_ABOVE_FEED",this.Cd],["SLOT_TYPE_AD_BREAK_REQUEST",this.vH],["SLOT_TYPE_FORECASTING",this.AM],["SLOT_TYPE_PLAYER_BYTES",this.Tw],["SLOT_TYPE_PLAYBACK_TRACKING",this.XS],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.XS],["SLOT_TYPE_IN_PLAYER",this.lC],["SLOT_TYPE_PLAYER_UNDERLAY",this.wI]])};this.listeners=[Q.get()];this.Ia={Zh:this.Zh,c6:this.xF.get(),TA:this.cw.get(),MG:this.bx.get(),QA:this.QA,YB:V.get(),zS:this.KQ.get(),lB:this.A8,ey:Q.get(),KH:this.Jj.get()}}; h5V=function(J,K,n,X,l){g.t.call(this);var x=this,V=UY(function(){return new KY(x.xF)}); g.Z(this,V);var v=UY(function(){return new od(V,x.xF)}); g.Z(this,v);var Q=UY(function(){return new Dd}); g.Z(this,Q);var S=UY(function(){return new Lz(J)}); g.Z(this,S);var r=UY(function(){return new X1(V,v,x.xF)}); g.Z(this,r);var C=UY(function(){return new ht}); g.Z(this,C);this.O_=UY(function(){return new $e(K)}); g.Z(this,this.O_);this.cw=UY(function(){return new yg(l)}); g.Z(this,this.cw);this.n9=UY(function(){return new W1(K)}); g.Z(this,this.n9);this.jh=UY(function(){return new a1(K)}); g.Z(this,this.jh);this.p9=UY(function(){return new Fl(K)}); g.Z(this,this.p9);this.eh=UY(function(){return new qv(K)}); g.Z(this,this.eh);this.xF=UY(function(){return new EN(K)}); g.Z(this,this.xF);var O=UY(function(){return new Qv(X)}); g.Z(this,O);var H=UY(function(){return new $G(x.xF)}); g.Z(this,H);var R=UY(function(){return new uL(V,r,v,x.xF,H,null,null,x.hM,x.wW)}); g.Z(this,R);this.Wp=UY(function(){return new C2(K)}); g.Z(this,this.Wp);this.KQ=UY(function(){return new Wb}); g.Z(this,this.KQ);this.Jj=UY(function(){return new X2(K,C,x.xF)}); g.Z(this,this.Jj);var w=Zl({Jj:this.Jj,xF:this.xF,Oo:H}),P=w.context,B=w.gK;this.Bw=w.Bw;this.tB=UY(function(){return new sI(K,x.xF,x.NQ)}); this.bx=UY(function(){return new ll(K,x.Jj,x.xF)}); g.Z(this,this.bx);this.Uk=UY(function(){return new Hr}); g.Z(this,this.Uk);this.pU=UY(function(){return new Mv(x.bx,K,x.xF)}); g.Z(this,this.pU);this.NQ=UY(function(){return new ok(K,Q,x.pU,x.Jj,x.Bw,x.xF,B)}); g.Z(this,this.NQ);this.yB=UY(function(){return new ag(x.xF)}); g.Z(this,this.yB);this.ai=new mi(B2,Rk,function(k,c,y,A){return nz(v.get(),k,c,y,A)},S,r,v,H,this.xF,this.Jj); g.Z(this,this.ai);this.QA=new pz(S,R,n,this.xF,J,this.Jj,this.bx,this.n9);g.Z(this,this.QA);var p=new f8(K,this.QA,this.bx,this.Jj,this.tB);this.Cl=UY(function(){return p}); this.IM=p;this.hM=new P2(S,r,this.Cl,this.tB,this.bx,this.xF,this.NQ);g.Z(this,this.hM);this.gt=new TX(S,r,this.jh,this.Cl,P);g.Z(this,this.gt);this.Zh=new tm(this.xF,S,r,R,this.Jj,this.gt,n,this.p9);g.Z(this,this.Zh);this.lk=UY(function(){return new vL(O,v,H,x.xF,x.NQ,x.bx)}); g.Z(this,this.lk);this.pH=UY(function(){return new Q8}); g.Z(this,this.pH);this.A8=new t5(J,this.O_,this.xF);g.Z(this,this.A8);this.Ww=new yE(J);g.Z(this,this.Ww);this.Mq=new Zd(J);g.Z(this,this.Mq);this.WO=new W2(J,this.Cl,P);g.Z(this,this.WO);this.sB=new a8(J,this.jh,this.bx,this.Jj,P);g.Z(this,this.sB);this.Xh=new qP(J);g.Z(this,this.Xh);this.VI=new EZ(J);g.Z(this,this.VI);this.H8=new NP(J);g.Z(this,this.H8);this.dR=UY(function(){return new OI(K)}); g.Z(this,this.dR);this.uh=new Jt(J);g.Z(this,this.uh);this.wW=new bL(J,this.tB,this.bx,this.NQ,this.Cl);g.Z(this,this.wW);this.vB=UY(function(){return new c2}); g.Z(this,this.vB);this.wu=UY(function(){return new YO(x.bx)}); g.Z(this,this.wu);this.vH=UY(function(){return new EB(x.Zh,S,V)}); g.Z(this,this.vH);this.AM=UY(function(){return new ML(x.xF,x.NQ,x.Xh,x.pU)}); g.Z(this,this.AM);this.lC=UY(function(){return new KdH(x.O_,x.bx,x.NQ,Q,x.pU,x.Mq,x.H8,x.cw,x.xF,n)}); g.Z(this,this.lC);this.Tw=UY(function(){return new SG(J,x.uh,x.Xh,x.NQ,x.pU,x.yB,x.p9,x.Jj,x.bx,x.Uk,x.jh,x.n9,x.eh,x.cw,x.Wp,x.xF,x.dR,P,B)}); g.Z(this,this.Tw);this.Aq=new vr(J,this.KQ,V);g.Z(this,this.Aq);this.Ch={i5:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Zh],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.hM],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.ai],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.QA],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.gt]]),Ro:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.lk],["SLOT_TYPE_FORECASTING",this.pH],["SLOT_TYPE_IN_PLAYER",this.pH], ["SLOT_TYPE_PLAYER_BYTES",this.pH]]),Yl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.A8],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Ww],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Ww],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Ww],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Ww],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Ww],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Ww],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Ww],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Ww],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Ww], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Ww],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Mq],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.WO],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.sB],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.sB],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.sB],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Xh],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.WO],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.VI],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.H8],["TRIGGER_TYPE_AD_BREAK_STARTED",this.uh],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.wW],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.wW],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.wW],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.wW],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.wW]]),KK:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.vB],["SLOT_TYPE_FORECASTING",this.vB],["SLOT_TYPE_IN_PLAYER",this.vB],["SLOT_TYPE_PLAYER_BYTES",this.wu]]), uC:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.vH],["SLOT_TYPE_FORECASTING",this.AM],["SLOT_TYPE_IN_PLAYER",this.lC],["SLOT_TYPE_PLAYER_BYTES",this.Tw]])};this.listeners=[Q.get()];this.Ia={Zh:this.Zh,c6:this.xF.get(),TA:this.cw.get(),MG:this.bx.get(),QA:this.QA,YB:V.get(),zS:this.KQ.get(),lB:this.A8,ey:Q.get(),KH:this.Jj.get()}}; v83=function(J,K,n,X,l){g.t.call(this);var x=this,V=UY(function(){return new KY(x.xF)}); g.Z(this,V);var v=UY(function(){return new od(V,x.xF)}); g.Z(this,v);var Q=UY(function(){return new Dd}); g.Z(this,Q);var S=UY(function(){return new Lz(J)}); g.Z(this,S);var r=UY(function(){return new X1(V,v,x.xF)}); g.Z(this,r);var C=UY(function(){return new ht}); g.Z(this,C);this.O_=UY(function(){return new $e(K)}); g.Z(this,this.O_);this.cw=UY(function(){return new yg(l)}); g.Z(this,this.cw);this.n9=UY(function(){return new W1(K)}); g.Z(this,this.n9);this.jh=UY(function(){return new a1(K)}); g.Z(this,this.jh);this.p9=UY(function(){return new Fl(K)}); g.Z(this,this.p9);this.eh=UY(function(){return new qv(K)}); g.Z(this,this.eh);this.xF=UY(function(){return new EN(K)}); g.Z(this,this.xF);var O=UY(function(){return new Qv(X)}); g.Z(this,O);var H=UY(function(){return new $G(x.xF)}); g.Z(this,H);var R=UY(function(){return new uL(V,r,v,x.xF,H,null,null,null,null)}); g.Z(this,R);this.Wp=UY(function(){return new C2(K)}); g.Z(this,this.Wp);this.Jj=UY(function(){return new X2(K,C,x.xF)}); g.Z(this,this.Jj);var w=Zl({Jj:this.Jj,xF:this.xF,Oo:H}),P=w.context,B=w.gK;this.Bw=w.Bw;this.bx=UY(function(){return new ll(K,x.Jj,x.xF)}); g.Z(this,this.bx);this.Uk=UY(function(){return new Hr}); g.Z(this,this.Uk);this.pU=UY(function(){return new Mv(x.bx,K,x.xF)}); g.Z(this,this.pU);this.NQ=UY(function(){return new ok(K,Q,x.pU,x.Jj,x.Bw,x.xF,B)}); g.Z(this,this.NQ);this.yB=UY(function(){return new ag(x.xF)}); g.Z(this,this.yB);this.ai=new mi(B2,Rk,function(k,c,y,A){return nz(v.get(),k,c,y,A)},S,r,v,H,this.xF,this.Jj); g.Z(this,this.ai);this.QA=new pz(S,R,n,this.xF,J,this.Jj,this.bx,this.n9);g.Z(this,this.QA);var p=new f8(K,this.QA,this.bx,this.Jj);this.Cl=UY(function(){return p}); this.IM=p;this.gt=new TX(S,r,this.jh,this.Cl,P);g.Z(this,this.gt);this.Zh=new tm(this.xF,S,r,R,this.Jj,this.gt,n,this.p9);g.Z(this,this.Zh);this.lk=UY(function(){return new vL(O,v,H,x.xF,x.NQ,x.bx)}); g.Z(this,this.lk);this.pH=UY(function(){return new Q8}); g.Z(this,this.pH);this.A8=new t5(J,this.O_,this.xF);g.Z(this,this.A8);this.Ww=new yE(J);g.Z(this,this.Ww);this.WO=new W2(J,this.Cl,P);g.Z(this,this.WO);this.sB=new a8(J,this.jh,this.bx,this.Jj,P);g.Z(this,this.sB);this.Xh=new qP(J);g.Z(this,this.Xh);this.VI=new EZ(J);g.Z(this,this.VI);this.dR=UY(function(){return new OI(K)}); g.Z(this,this.dR);this.uh=new Jt(J);g.Z(this,this.uh);this.vB=UY(function(){return new c2}); g.Z(this,this.vB);this.wu=UY(function(){return new YO(x.bx)}); g.Z(this,this.wu);this.vH=UY(function(){return new EB(x.Zh,S,V)}); g.Z(this,this.vH);this.AM=UY(function(){return new ML(x.xF,x.NQ,x.Xh,x.pU)}); g.Z(this,this.AM);this.kM=UY(function(){return new $xq(x.O_,x.bx,x.NQ,Q,n,x.xF)}); g.Z(this,this.kM);this.Tw=UY(function(){return new SG(J,x.uh,x.Xh,x.NQ,x.pU,x.yB,x.p9,x.Jj,x.bx,x.Uk,x.jh,x.n9,x.eh,x.cw,x.Wp,x.xF,x.dR,P,B)}); g.Z(this,this.Tw);this.Ch={i5:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Zh],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.ai],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.QA],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.gt]]),Ro:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.lk],["SLOT_TYPE_FORECASTING",this.pH],["SLOT_TYPE_IN_PLAYER",this.pH],["SLOT_TYPE_PLAYER_BYTES",this.pH]]),Yl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.A8],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.Ww],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Ww],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Ww],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Ww],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Ww],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Ww],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Ww],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Ww],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Ww],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.WO],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.sB],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.sB],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Xh],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.WO],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.VI],["TRIGGER_TYPE_AD_BREAK_STARTED",this.uh]]),KK:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.vB],["SLOT_TYPE_ABOVE_FEED",this.vB],["SLOT_TYPE_FORECASTING",this.vB],["SLOT_TYPE_IN_PLAYER",this.vB],["SLOT_TYPE_PLAYER_BYTES",this.wu]]),uC:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.vH],["SLOT_TYPE_FORECASTING",this.AM],["SLOT_TYPE_IN_PLAYER", this.kM],["SLOT_TYPE_PLAYER_BYTES",this.Tw]])};this.listeners=[Q.get()];this.Ia={Zh:this.Zh,c6:this.xF.get(),TA:this.cw.get(),MG:this.bx.get(),QA:this.QA,YB:V.get(),zS:null,lB:this.A8,ey:Q.get(),KH:this.Jj.get()}}; Qqf=function(J,K,n,X,l){g.t.call(this);var x=this,V=UY(function(){return new KY(x.xF)}); g.Z(this,V);var v=UY(function(){return new od(V,x.xF)}); g.Z(this,v);var Q=UY(function(){return new Dd}); g.Z(this,Q);var S=UY(function(){return new Lz(J)}); g.Z(this,S);var r=UY(function(){return new X1(V,v,x.xF)}); g.Z(this,r);var C=UY(function(){return new ht}); g.Z(this,C);this.A9=UY(function(){return new jq3(K)}); g.Z(this,this.A9);this.O_=UY(function(){return new $e(K)}); g.Z(this,this.O_);this.cw=UY(function(){return new yg(l)}); g.Z(this,this.cw);this.n9=UY(function(){return new W1(K)}); g.Z(this,this.n9);this.jh=UY(function(){return new a1(K)}); g.Z(this,this.jh);this.p9=UY(function(){return new Fl(K)}); g.Z(this,this.p9);this.eh=UY(function(){return new qv(K)}); g.Z(this,this.eh);this.xF=UY(function(){return new EN(K)}); g.Z(this,this.xF);var O=UY(function(){return new Qv(X)}); g.Z(this,O);var H=UY(function(){return new $G(x.xF)}); g.Z(this,H);var R=UY(function(){return new uL(V,r,v,x.xF,H,null,null,null,null)}); g.Z(this,R);this.Wp=UY(function(){return new C2(K)}); g.Z(this,this.Wp);this.Jj=UY(function(){return new X2(K,C,x.xF)}); g.Z(this,this.Jj);var w=Zl({Jj:this.Jj,xF:this.xF,Oo:H}),P=w.context,B=w.gK;this.Bw=w.Bw;this.bx=UY(function(){return new ll(K,x.Jj,x.xF)}); g.Z(this,this.bx);this.Uk=UY(function(){return new Hr}); g.Z(this,this.Uk);this.pU=UY(function(){return new Mv(x.bx,K,x.xF)}); g.Z(this,this.pU);this.NQ=UY(function(){return new ok(K,Q,x.pU,x.Jj,x.Bw,x.xF,B)}); g.Z(this,this.NQ);this.yB=UY(function(){return new ag(x.xF)}); g.Z(this,this.yB);this.ai=new mi(ZxV,Rk,function(k,c,y,A){return Qgp(v.get(),k,c,y,A)},S,r,v,H,this.xF,this.Jj); g.Z(this,this.ai);this.QA=new pz(S,R,n,this.xF,J,this.Jj,this.bx,this.n9);g.Z(this,this.QA);var p=new f8(K,this.QA,this.bx,this.Jj);this.Cl=UY(function(){return p}); this.IM=p;this.gt=new TX(S,r,this.jh,this.Cl,P);g.Z(this,this.gt);this.Zh=new tm(this.xF,S,r,R,this.Jj,this.gt,n,this.p9);g.Z(this,this.Zh);this.lk=UY(function(){return new vL(O,v,H,x.xF,x.NQ,x.bx)}); g.Z(this,this.lk);this.pH=UY(function(){return new Q8}); g.Z(this,this.pH);this.A8=new t5(J,this.O_,this.xF);g.Z(this,this.A8);this.Ww=new yE(J);g.Z(this,this.Ww);this.WO=new W2(J,this.Cl,P);g.Z(this,this.WO);this.sB=new a8(J,this.jh,this.bx,this.Jj,P);g.Z(this,this.sB);this.Xh=new qP(J);g.Z(this,this.Xh);this.VI=new EZ(J);g.Z(this,this.VI);this.dR=UY(function(){return new OI(K)}); g.Z(this,this.dR);this.uh=new Jt(J);g.Z(this,this.uh);this.vB=UY(function(){return new c2}); g.Z(this,this.vB);this.wu=UY(function(){return new YO(x.bx)}); g.Z(this,this.wu);this.vH=UY(function(){return new EB(x.Zh,S,V)}); g.Z(this,this.vH);this.AM=UY(function(){return new ML(x.xF,x.NQ,x.Xh,x.pU)}); g.Z(this,this.AM);this.Tw=UY(function(){return new SG(J,x.uh,x.Xh,x.NQ,x.pU,x.yB,x.p9,x.Jj,x.bx,x.Uk,x.jh,x.n9,x.eh,x.cw,x.Wp,x.xF,x.dR,P,B)}); g.Z(this,this.Tw);this.hY=UY(function(){return new o9V(x.O_,x.bx,x.NQ,Q,x.A9,n,x.Jj)}); g.Z(this,this.hY);this.Ch={i5:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Zh],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.ai],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.QA],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.gt]]),Ro:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.lk],["SLOT_TYPE_FORECASTING",this.pH],["SLOT_TYPE_IN_PLAYER",this.pH],["SLOT_TYPE_PLAYER_BYTES",this.pH]]),Yl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.A8],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.Ww],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Ww],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Ww],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Ww],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Ww],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Ww],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Ww],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Ww],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Ww],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.WO],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.sB],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.sB],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Xh],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.WO],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.VI],["TRIGGER_TYPE_AD_BREAK_STARTED",this.uh]]),KK:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.vB],["SLOT_TYPE_FORECASTING",this.vB],["SLOT_TYPE_IN_PLAYER",this.vB],["SLOT_TYPE_PLAYER_BYTES",this.wu]]),uC:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.vH],["SLOT_TYPE_FORECASTING",this.AM],["SLOT_TYPE_IN_PLAYER",this.hY],["SLOT_TYPE_PLAYER_BYTES", this.Tw]])};this.listeners=[Q.get()];this.Ia={Zh:this.Zh,c6:this.xF.get(),TA:this.cw.get(),MG:this.bx.get(),QA:this.QA,YB:V.get(),zS:null,lB:this.A8,ey:Q.get(),KH:this.Jj.get()}}; $kM=function(J,K,n,X,l){g.t.call(this);var x=this,V=UY(function(){return new KY(x.xF)}); g.Z(this,V);var v=UY(function(){return new od(V,x.xF)}); g.Z(this,v);var Q=UY(function(){return new Dd}); g.Z(this,Q);var S=UY(function(){return new Lz(J)}); g.Z(this,S);var r=UY(function(){return new X1(V,v,x.xF)}); g.Z(this,r);var C=UY(function(){return new ht}); g.Z(this,C);this.A9=UY(function(){return new jq3(K)}); g.Z(this,this.A9);this.O_=UY(function(){return new $e(K)}); g.Z(this,this.O_);this.cw=UY(function(){return new yg(l)}); g.Z(this,this.cw);this.n9=UY(function(){return new W1(K)}); g.Z(this,this.n9);this.jh=UY(function(){return new a1(K)}); g.Z(this,this.jh);this.p9=UY(function(){return new Fl(K)}); g.Z(this,this.p9);this.eh=UY(function(){return new qv(K)}); g.Z(this,this.eh);this.xF=UY(function(){return new EN(K)}); g.Z(this,this.xF);var O=UY(function(){return new Qv(X)}); g.Z(this,O);var H=UY(function(){return new $G(x.xF)}); g.Z(this,H);this.Wp=UY(function(){return new C2(K)}); g.Z(this,this.Wp);this.Jj=UY(function(){return new X2(K,C,x.xF)}); g.Z(this,this.Jj);var R=Zl({Jj:this.Jj,xF:this.xF,Oo:H}),w=R.context,P=R.gK;this.Bw=R.Bw;this.tB=UY(function(){return new sI(K,x.xF,x.NQ)}); g.Z(this,this.tB);this.dR=UY(function(){return new OI(K)}); g.Z(this,this.dR);this.bx=UY(function(){return new ll(K,x.Jj,x.xF)}); g.Z(this,this.bx);this.Uk=UY(function(){return new Hr}); g.Z(this,this.Uk);R=UY(function(){return new uL(V,r,v,x.xF,H,null,x.bx,x.hM,x.wW,3)}); g.Z(this,R);this.yB=UY(function(){return new ag(x.xF)}); this.pU=UY(function(){return new Mv(x.bx,K,x.xF)}); g.Z(this,this.pU);this.NQ=UY(function(){return new ok(K,Q,x.pU,x.Jj,x.Bw,x.xF,P)}); g.Z(this,this.NQ);this.QA=new pz(S,R,n,this.xF,J,this.Jj,this.bx,this.n9);g.Z(this,this.QA);var B=new f8(K,this.QA,this.bx,this.Jj,this.tB);this.Cl=UY(function(){return B}); this.IM=B;this.ai=new mi(fUM,Rk,function(p,k,c,y){return Qgp(v.get(),p,k,c,y)},S,r,v,H,this.xF,this.Jj); g.Z(this,this.ai);this.hM=new P2(S,r,this.Cl,this.tB,this.bx,this.xF,this.NQ,this.dR);g.Z(this,this.hM);this.gt=new TX(S,r,this.jh,this.Cl,w);g.Z(this,this.gt);this.Zh=new tm(this.xF,S,r,R,this.Jj,this.gt,n,this.p9);g.Z(this,this.Zh);this.lk=UY(function(){return new vL(O,v,H,x.xF,x.NQ,x.bx,x.dR)}); g.Z(this,this.lk);this.pH=UY(function(){return new Q8}); g.Z(this,this.pH);this.A8=new t5(J,this.O_,this.xF);g.Z(this,this.A8);this.Ww=new yE(J);g.Z(this,this.Ww);this.WO=new W2(J,this.Cl,w);g.Z(this,this.WO);this.sB=new a8(J,this.jh,this.bx,this.Jj,w);g.Z(this,this.sB);this.bW=new FT(J,this.Jj);g.Z(this,this.bW);this.wW=new bL(J,this.tB,this.bx,this.NQ,this.Cl);g.Z(this,this.wW);this.Xh=new qP(J);g.Z(this,this.Xh);this.VI=new EZ(J);g.Z(this,this.VI);this.uh=new Jt(J);g.Z(this,this.uh);this.vB=UY(function(){return new c2}); g.Z(this,this.vB);this.wu=UY(function(){return new YO(x.bx)}); g.Z(this,this.wu);this.vH=UY(function(){return new EB(x.Zh,S,V)}); g.Z(this,this.vH);this.AM=UY(function(){return new ML(x.xF,x.NQ,x.Xh,x.pU)}); g.Z(this,this.AM);this.Tw=UY(function(){return new $L(J,x.uh,x.Xh,x.Jj,x.dR,x.bx,x.Uk,x.NQ,C,x.tB,x.pU,x.yB,x.p9,x.jh,x.n9,x.eh,x.cw,x.Wp,x.xF,Q,w,P)}); g.Z(this,this.Tw);this.lC=UY(function(){return new Xgq(x.O_,x.bx,x.NQ,Q,x.A9,n,x.xF,x.Jj)}); g.Z(this,this.lC);this.Ch={i5:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Zh],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.hM],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.ai],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.QA],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.gt]]),Ro:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.lk],["SLOT_TYPE_FORECASTING",this.pH],["SLOT_TYPE_IN_PLAYER",this.pH],["SLOT_TYPE_PLAYER_BYTES",this.pH]]),Yl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.A8],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Ww],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Ww],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Ww],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Ww],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Ww],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Ww],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Ww],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Ww],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Ww],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.WO],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.sB],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.sB],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.bW],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.bW],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Xh],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.WO],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.VI],["TRIGGER_TYPE_AD_BREAK_STARTED",this.uh],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.wW],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.wW],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.wW],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.wW],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.wW]]),KK:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.vB],["SLOT_TYPE_FORECASTING",this.vB],["SLOT_TYPE_IN_PLAYER",this.vB],["SLOT_TYPE_PLAYER_BYTES",this.wu]]),uC:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.vH],["SLOT_TYPE_FORECASTING",this.AM],["SLOT_TYPE_PLAYER_BYTES",this.Tw],["SLOT_TYPE_IN_PLAYER",this.lC]])};this.listeners=[Q.get()]; this.Ia={Zh:this.Zh,c6:this.xF.get(),TA:this.cw.get(),MG:this.bx.get(),QA:this.QA,YB:V.get(),zS:null,lB:this.A8,ey:Q.get(),KH:this.Jj.get()}}; rbp=function(J,K,n,X){function l(){return x.Z} g.t.call(this);var x=this;J.S().experiments.sM("html5_dispose_of_manager_before_dependency")?(this.G=Sh8(l,J,K,n,X),this.Z=(new t6(this.G)).X(),g.Z(this,this.Z),g.Z(this,this.G)):(this.G=Sh8(l,J,K,n,X),g.Z(this,this.G),this.Z=(new t6(this.G)).X(),g.Z(this,this.Z))}; ul=function(J){return J.G.Ia}; Sh8=function(J,K,n,X,l){try{var x=K.S();if(g.AS(x))var V=new VFk(J,K,n,X,l);else if(g.Nw(x))V=new h5V(J,K,n,X,l);else if(ZW(x))V=new v83(J,K,n,X,l);else if(g.G_(x))V=new Qqf(J,K,n,X,l);else if(g.cp(x))V=new $kM(J,K,n,X,l);else throw new TypeError("Unknown web interface");return V}catch(v){return V=K.S(),Se("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:V.G.cplatform,interface:V.G.c,VFd:V.G.cver,eU_:V.G.ctheme,tFx:V.G.cplayer,Brq:V.playerStyle}),new AHk(J,K,n,X,l)}}; sq8=function(J){aR.call(this,J)}; CY7=function(J,K,n,X,l){JC.call(this,J,{j:"div",V:"ytp-ad-timed-pie-countdown-container",Y:[{j:"svg",V:"ytp-ad-timed-pie-countdown",D:{viewBox:"0 0 20 20"},Y:[{j:"circle",V:"ytp-ad-timed-pie-countdown-background",D:{r:"10",cx:"10",cy:"10"}},{j:"circle",V:"ytp-ad-timed-pie-countdown-inner",D:{r:"5",cx:"10",cy:"10"}},{j:"circle",V:"ytp-ad-timed-pie-countdown-outer",D:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",K,n,X,l);this.U=this.rQ("ytp-ad-timed-pie-countdown-container");this.X=this.rQ("ytp-ad-timed-pie-countdown-inner"); this.N=this.rQ("ytp-ad-timed-pie-countdown-outer");this.Z=Math.ceil(2*Math.PI*5);this.hide()}; Ow3=function(J,K,n,X,l,x){se.call(this,J,{j:"div",V:"ytp-ad-action-interstitial",D:{tabindex:"0"},Y:[{j:"div",V:"ytp-ad-action-interstitial-background-container"},{j:"div",V:"ytp-ad-action-interstitial-slot",Y:[{j:"div",V:"ytp-ad-action-interstitial-instream-info"},{j:"div",V:"ytp-ad-action-interstitial-card",Y:[{j:"div",V:"ytp-ad-action-interstitial-image-container"},{j:"div",V:"ytp-ad-action-interstitial-headline-container"},{j:"div",V:"ytp-ad-action-interstitial-description-container"},{j:"div", V:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",K,n,X);this.cZ=l;this.eQ=x;this.navigationEndpoint=this.G=this.skipButton=this.Z=this.actionButton=null;this.Cv=this.rQ("ytp-ad-action-interstitial-instream-info");this.j_=this.rQ("ytp-ad-action-interstitial-image-container");this.K=new yk(this.api,this.layoutId,this.interactionLoggingClientData,this.TA,"ytp-ad-action-interstitial-image");g.Z(this,this.K);this.K.qQ(this.j_);this.MQ=this.rQ("ytp-ad-action-interstitial-headline-container"); this.N=new M1(this.api,this.layoutId,this.interactionLoggingClientData,this.TA,"ytp-ad-action-interstitial-headline");g.Z(this,this.N);this.N.qQ(this.MQ);this.QG=this.rQ("ytp-ad-action-interstitial-description-container");this.X=new M1(this.api,this.layoutId,this.interactionLoggingClientData,this.TA,"ytp-ad-action-interstitial-description");g.Z(this,this.X);this.X.qQ(this.QG);this.Fq=this.rQ("ytp-ad-action-interstitial-background-container");this.kF=new yk(this.api,this.layoutId,this.interactionLoggingClientData, this.TA,"ytp-ad-action-interstitial-background",!0);g.Z(this,this.kF);this.kF.qQ(this.Fq);this.wQ=this.rQ("ytp-ad-action-interstitial-action-button-container");this.slot=this.rQ("ytp-ad-action-interstitial-slot");this.gW=this.rQ("ytp-ad-action-interstitial-card");this.U=new mG;g.Z(this,this.U);this.hide()}; HwM=function(J){var K=g.aN("html5-video-player");K&&g.Qq(K,"ytp-ad-display-override",J)}; z5H=function(J,K,n,X){se.call(this,J,{j:"div",V:"ytp-ad-overlay-slot",Y:[{j:"div",V:"ytp-ad-overlay-container"}]},"invideo-overlay",K,n,X);this.K=[];this.Fq=this.MQ=this.U=this.wQ=this.Cv=null;this.kF=!1;this.N=null;this.QG=0;J=this.rQ("ytp-ad-overlay-container");this.j_=new VA(J,45E3,6E3,.3,.4);g.Z(this,this.j_);this.X=R5V(this);g.Z(this,this.X);this.X.qQ(J);this.Z=uUp(this);g.Z(this,this.Z);this.Z.qQ(J);this.G=e5r(this);g.Z(this,this.G);this.G.qQ(J);this.hide()}; R5V=function(J){var K=new g.ro({j:"div",V:"ytp-ad-text-overlay",Y:[{j:"div",V:"ytp-ad-overlay-ad-info-button-container"},{j:"div",V:"ytp-ad-overlay-close-container",Y:[{j:"button",V:"ytp-ad-overlay-close-button",Y:[Dp(wEf)]}]},{j:"div",V:"ytp-ad-overlay-title",hj:"{{title}}"},{j:"div",V:"ytp-ad-overlay-desc",hj:"{{description}}"},{j:"div",UM:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],hj:"{{displayUrl}}"}]});J.T(K.rQ("ytp-ad-overlay-title"),"click",function(n){e2(J,K.element,n)}); J.T(K.rQ("ytp-ad-overlay-link"),"click",function(n){e2(J,K.element,n)}); J.T(K.rQ("ytp-ad-overlay-close-container"),"click",J.U$);K.hide();return K}; uUp=function(J){var K=new g.ro({j:"div",UM:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],Y:[{j:"div",V:"ytp-ad-overlay-ad-info-button-container"},{j:"div",V:"ytp-ad-overlay-close-container",Y:[{j:"button",V:"ytp-ad-overlay-close-button",Y:[Dp(wEf)]}]},{j:"div",V:"ytp-ad-overlay-text-image",Y:[{j:"img",D:{src:"{{imageUrl}}"}}]},{j:"div",V:"ytp-ad-overlay-title",hj:"{{title}}"},{j:"div",V:"ytp-ad-overlay-desc",hj:"{{description}}"},{j:"div",UM:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], hj:"{{displayUrl}}"}]});J.T(K.rQ("ytp-ad-overlay-title"),"click",function(n){e2(J,K.element,n)}); J.T(K.rQ("ytp-ad-overlay-link"),"click",function(n){e2(J,K.element,n)}); J.T(K.rQ("ytp-ad-overlay-close-container"),"click",J.U$);J.T(K.rQ("ytp-ad-overlay-text-image"),"click",J.cBQ);K.hide();return K}; e5r=function(J){var K=new g.ro({j:"div",V:"ytp-ad-image-overlay",Y:[{j:"div",V:"ytp-ad-overlay-ad-info-button-container"},{j:"div",V:"ytp-ad-overlay-close-container",Y:[{j:"button",V:"ytp-ad-overlay-close-button",Y:[Dp(wEf)]}]},{j:"div",V:"ytp-ad-overlay-image",Y:[{j:"img",D:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});J.T(K.rQ("ytp-ad-overlay-image"),"click",function(n){e2(J,K.element,n)}); J.T(K.rQ("ytp-ad-overlay-close-container"),"click",J.U$);K.hide();return K}; PY8=function(J,K){if(K){var n=g.f(K,c$)||null;n==null?g.ko(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(K=g.aN("video-ads ytp-ad-module")||null,K==null?g.ko(Error("Could not locate the root ads container element to attach the ad info dialog.")):(J.MQ=new g.ro({j:"div",V:"ytp-ad-overlay-ad-info-dialog-container"}),g.Z(J,J.MQ),J.MQ.qQ(K),K=new Ai(J.api,J.layoutId,J.interactionLoggingClientData,J.TA,J.MQ.element,!1),g.Z(J,K),K.init(j3("ad-info-hover-text-button"),n,J.macros), J.N?(K.qQ(J.N,0),K.subscribe("f",J.kAQ,J),K.subscribe("e",J.WK,J),J.T(J.N,"click",J.R5G),J.T(g.aN("ytp-ad-button",K.element),"click",function(){var X;if(g.f((X=g.f(n.button,g.Gt))==null?void 0:X.serviceEndpoint,K28))J.kF=J.api.getPlayerState(1)===2,J.api.pauseVideo();else J.api.onAdUxClicked("ad-info-hover-text-button",J.layoutId)}),J.Fq=K):g.ko(Error("Ad info button container within overlay ad was not present."))))}else g.gG(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; iwk=function(J,K){if(IEf(J,zn)||J.api.isMinimized())return!1;var n=C7(K.title),X=C7(K.description);if(g.O7(n)||g.O7(X))return!1;J.createServerVe(J.X.element,K.trackingParams||null);J.X.updateValue("title",C7(K.title));J.X.updateValue("description",C7(K.description));J.X.updateValue("displayUrl",C7(K.displayUrl));K.navigationEndpoint&&g.P8(J.K,K.navigationEndpoint);J.X.show();J.j_.start();J.logVisibility(J.X.element,!0);J.T(J.X.element,"mouseover",function(){J.QG++}); return!0}; BA8=function(J,K){if(IEf(J,zn)||J.api.isMinimized())return!1;var n=C7(K.title),X=C7(K.description);if(g.O7(n)||g.O7(X))return!1;J.createServerVe(J.Z.element,K.trackingParams||null);J.Z.updateValue("title",C7(K.title));J.Z.updateValue("description",C7(K.description));J.Z.updateValue("displayUrl",C7(K.displayUrl));J.Z.updateValue("imageUrl",CtV(K.image));K.navigationEndpoint&&g.P8(J.K,K.navigationEndpoint);J.wQ=K.imageNavigationEndpoint||null;J.Z.show();J.j_.start();J.logVisibility(J.Z.element,!0); J.T(J.Z.element,"mouseover",function(){J.QG++}); return!0}; mkq=function(J,K){if(J.api.isMinimized())return!1;var n=O6F(K.image),X=n;n.width0?(K=new cz(J.api,J.G), K.qQ(J.playerOverlay),g.Z(J,K)):(J=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(K)),g.ko(J))}}else g.ko(Error("addCommonComponents() needs to be called before starting countdown."))}; Uk3=function(J){function K(n){return{toString:function(){return n()}}} J.macros.SURVEY_LOCAL_TIME_EPOCH_S=K(function(){var n=new Date;return(Math.round(n.valueOf()/1E3)+-1*n.getTimezoneOffset()*60).toString()}); J.macros.SURVEY_ELAPSED_MS=K(function(){return(Date.now()-J.X).toString()})}; tFF=function(J,K,n,X,l){il.call(this,J,K,n,X,"survey-question-multi-select");this.QG=l;this.noneOfTheAbove=null;this.submitEndpoints=[];this.N=null;this.hide()}; ybd=function(J,K,n){J.noneOfTheAbove=new kkd(J.api,J.layoutId,J.interactionLoggingClientData,J.TA);J.noneOfTheAbove.qQ(J.answers);J.noneOfTheAbove.init(j3("survey-none-of-the-above"),K,n)}; fEk=function(J){J.Z.forEach(function(K){K.G.toggleButton(!1)}); ZwM(J,!0)}; ZwM=function(J,K){var n=J.U;J=W83(J);K=K===void 0?!1:K;n.G&&(J?n.G.hide():n.G.show(),K&&n.G instanceof Rv&&!n.G.U&&vb7(n.G,!1));n.Z&&(J?n.Z.show():n.Z.hide())}; W83=function(J){return J.Z.some(function(K){return K.G.isToggled()})||J.noneOfTheAbove.button.isToggled()}; Br=function(J,K,n,X,l){il.call(this,J,K,n,X,"survey-question-single-select",function(V){x.api.S().J("supports_multi_step_on_desktop")&&l([V])}); var x=this;this.hide()}; mw=function(J,K,n,X){se.call(this,J,{j:"div",V:"ytp-ad-survey",Y:[{j:"div",V:"ytp-ad-survey-questions"}]},"survey",K,n,X);this.questions=[];this.Z=[];this.conditioningRules=[];this.G=0;this.N=this.rQ("ytp-ad-survey-questions");this.api.S().J("fix_survey_color_contrast_on_destop")&&this.rQ("ytp-ad-survey").classList.add("color-contrast-fix");this.api.S().J("web_enable_speedmaster")&&this.rQ("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; qhk=function(J,K){var n=J.Z[K],X;(X=J.X)==null||X.dispose();g.f(n,kh)?aEd(J,g.f(n,kh),J.macros):g.f(n,dp)&&F88(J,g.f(n,dp),J.macros);J.G=K}; aEd=function(J,K,n){var X=new Br(J.api,J.layoutId,J.interactionLoggingClientData,J.TA,J.U.bind(J));X.qQ(J.N);X.init(j3("survey-question-single-select"),K,n);J.api.S().J("supports_multi_step_on_desktop")?J.X=X:J.questions.push(X);g.Z(J,X)}; F88=function(J,K,n){var X=new tFF(J.api,J.layoutId,J.interactionLoggingClientData,J.TA,J.U.bind(J));X.qQ(J.N);X.init(j3("survey-question-multi-select"),K,n);J.api.S().J("supports_multi_step_on_desktop")?J.X=X:J.questions.push(X);g.Z(J,X)}; p2=function(J,K,n,X){se.call(this,J,{j:"div",V:"ytp-ad-survey-interstitial",Y:[{j:"div",V:"ytp-ad-survey-interstitial-contents",Y:[{j:"div",V:"ytp-ad-survey-interstitial-logo",Y:[{j:"div",V:"ytp-ad-survey-interstitial-logo-image"}]},{j:"div",V:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",K,n,X);this.G=this.actionButton=null;this.interstitial=this.rQ("ytp-ad-survey-interstitial");this.Z=this.rQ("ytp-ad-survey-interstitial-contents");this.text=this.rQ("ytp-ad-survey-interstitial-text"); this.logoImage=this.rQ("ytp-ad-survey-interstitial-logo-image");this.transition=new g.ov(this,500,!1,300);g.Z(this,this.transition)}; E8M=function(J,K){K=K&&ti(K)||"";if(g.O7(K))g.gG(Error("Found ThumbnailDetails without valid image URL"));else{var n=J.style;J=J.style.cssText;var X=document.implementation.createHTMLDocument("").createElement("DIV");X.style.cssText=J;J=W0e(X.style);n.cssText=[J,'background-image:url("'+K+'");'].join("")}}; bwr=function(J){var K=g.aN("html5-video-player");K&&g.Qq(K,"ytp-ad-display-override",J)}; L2=function(J,K,n,X,l,x){x=x===void 0?0:x;JC.call(this,J,{j:"div",V:"ytp-preview-ad",Y:[{j:"div",V:"ytp-preview-ad__text"}]},"preview-ad",K,n,X,l);var V=this;this.QG=x;this.Z=0;this.U=-1;this.X=this.rQ("ytp-preview-ad__text");switch(this.QG){case 1:this.X.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.ov(this,400,!1,100,function(){V.hide()}); g.Z(this,this.transition);this.hide()}; Tn=function(J,K,n,X){se.call(this,J,{j:"img",V:"ytp-ad-avatar"},"ad-avatar",K,n,X);this.hide()}; Abk=function(J){switch(J.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}}; D6=function(J,K,n,X,l,x){l=l===void 0?!1:l;x=x===void 0?!1:x;se.call(this,J,{j:"button",V:"ytp-ad-button-vm"},"ad-button",K,n,X);this.buttonText=this.buttonIcon=null;this.hide();this.G=l;this.Z=x}; MFF=function(J,K,n,X,l){JC.call(this,J,{j:"div",UM:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],Y:[{j:"div",V:"ytp-ad-avatar-lockup-card__avatar_and_text_container",Y:[{j:"div",V:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",K,n,X,l);this.startMilliseconds=0;this.adAvatar=new Tn(this.api,this.layoutId,this.interactionLoggingClientData,this.TA);g.Z(this,this.adAvatar);nf(this.element,this.adAvatar.element,0);this.headline=new L1(this.api,this.layoutId, this.interactionLoggingClientData,this.TA);g.Z(this,this.headline);this.headline.qQ(this.rQ("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new L1(this.api,this.layoutId,this.interactionLoggingClientData,this.TA);g.Z(this,this.description);this.description.qQ(this.rQ("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new D6(this.api, this.layoutId,this.interactionLoggingClientData,this.TA);g.Z(this,this.adButton);this.adButton.qQ(this.element);this.hide()}; dx=function(J,K,n,X){se.call(this,J,{j:"button",V:"ytp-skip-ad-button",Y:[{j:"div",V:"ytp-skip-ad-button__text"}]},"skip-button",K,n,X);var l=this;this.Z=!1;this.U=this.rQ("ytp-skip-ad-button__text");this.transition=new g.ov(this,500,!1,100,function(){l.hide()}); g.Z(this,this.transition);this.G=new VA(this.element,15E3,5E3,.5,.5,!0);g.Z(this,this.G);this.hide()}; NAH=function(J,K,n,X,l){JC.call(this,J,{j:"div",V:"ytp-skip-ad"},"skip-ad",K,n,X,l);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.X=new dx(this.api,this.layoutId,this.interactionLoggingClientData,this.TA);g.Z(this,this.X);this.X.qQ(this.element);this.hide()}; ke=function(J,K,n,X){se.call(this,J,{j:"div",V:"ytp-visit-advertiser-link"},"visit-advertiser-link",K,n,X);this.hide()}; gx=function(J,K,n,X,l){se.call(this,J,{j:"div",V:"ytp-ad-player-overlay-layout",Y:[{j:"div",V:"ytp-ad-player-overlay-layout__player-card-container"},{j:"div",V:"ytp-ad-player-overlay-layout__ad-info-container"},{j:"div",V:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{j:"div",V:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",K,n,X);this.Z=l;this.MQ=this.rQ("ytp-ad-player-overlay-layout__player-card-container");this.G=this.rQ("ytp-ad-player-overlay-layout__ad-info-container"); this.K=this.rQ("ytp-ad-player-overlay-layout__skip-or-preview-container");this.QG=this.rQ("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; J7z=function(J,K,n,X){se.call(this,J,{j:"div",V:"ytp-ad-grid-card-text",Y:[{j:"div",V:"ytp-ad-grid-card-text__metadata",Y:[{j:"div",V:"ytp-ad-grid-card-text__metadata__headline"},{j:"div",V:"ytp-ad-grid-card-text__metadata__description",Y:[{j:"div",V:"ytp-ad-grid-card-text__metadata__description__line"},{j:"div",V:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{j:"div",V:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",K,n,X);this.headline=new L1(this.api,this.layoutId,this.interactionLoggingClientData, this.TA);g.Z(this,this.headline);this.headline.qQ(this.rQ("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new D6(this.api,this.layoutId,this.interactionLoggingClientData,this.TA,!0);g.Z(this,this.moreInfoButton);this.moreInfoButton.qQ(this.rQ("ytp-ad-grid-card-text__button"))}; cr=function(J,K,n,X){se.call(this,J,{j:"div",V:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",K,n,X);this.G=[]}; Ye=function(J,K,n,X,l,x,V){JC.call(this,J,x,V,K,n,X,l);this.playerProgressOffsetMs=0;this.Z=!1}; Kkj=function(J){var K=g.aN("html5-video-player");K&&g.Qq(K,"ytp-ad-display-override",J)}; nHG=function(J,K,n,X,l){Ye.call(this,J,K,n,X,l,{j:"div",V:"ytp-display-underlay-text-grid-cards",Y:[{j:"div",V:"ytp-display-underlay-text-grid-cards__content_container",Y:[{j:"div",V:"ytp-display-underlay-text-grid-cards__content_container__header",Y:[{j:"div",V:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{j:"div",V:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{j:"div",V:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {j:"div",V:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new cr(this.api,this.layoutId,this.interactionLoggingClientData,this.TA);g.Z(this,this.adGridCardCollection);this.adGridCardCollection.qQ(this.rQ("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new D6(this.api,this.layoutId,this.interactionLoggingClientData,this.TA);g.Z(this,this.adButton);this.adButton.qQ(this.rQ("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.X=this.rQ("ytp-display-underlay-text-grid-cards__content_container");this.U=this.rQ("ytp-display-underlay-text-grid-cards__content_container__header")}; Gn=function(J,K,n,X){se.call(this,J,{j:"div",V:"ytp-ad-details-line"},"ad-details-line",K,n,X);this.G=[];this.hide()}; UI=function(J,K,n,X){se.call(this,J,{j:"div",V:"ytp-image-background",Y:[{j:"img",V:"ytp-image-background-image"}]},"image-background",K,n,X);this.hide()}; oH8=function(J,K,n,X,l){JC.call(this,J,{j:"svg",V:"ytp-timed-pie-countdown",D:{viewBox:"0 0 20 20"},Y:[{j:"circle",V:"ytp-timed-pie-countdown__background",D:{r:"10",cx:"10",cy:"10"}},{j:"circle",V:"ytp-timed-pie-countdown__inner",D:{r:"5",cx:"10",cy:"10"}},{j:"circle",V:"ytp-timed-pie-countdown__outer",D:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",K,n,X,l);this.X=this.rQ("ytp-timed-pie-countdown__inner");this.Z=Math.ceil(2*Math.PI*5);this.hide()}; tY=function(J,K,n,X){se.call(this,J,{j:"div",V:"ytp-video-interstitial-buttoned-centered-layout",D:{tabindex:"0"},Y:[{j:"div",V:"ytp-video-interstitial-buttoned-centered-layout__content",Y:[{j:"div",V:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{j:"div",V:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",Y:[{j:"div",V:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{j:"div",V:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {j:"div",V:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{j:"div",V:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{j:"div",V:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",K,n,X);this.Z=null;this.U=this.rQ("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.X=new mG;g.Z(this,this.X);this.hide()}; X3g=function(J){var K=g.aN("html5-video-player");K&&g.Qq(K,"ytp-ad-display-override",J)}; leg=function(J){if(!J.adAvatar||!g.f(J.adAvatar,yv))return g.ko(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!J.headline)return g.ko(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!J.adBadge||!g.f(J.adBadge,Z6))return g.ko(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!J.adButton||!g.f(J.adButton,f2))return g.ko(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!J.adInfoRenderer|| !g.f(J.adInfoRenderer,c$))return g.ko(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;J=J.durationMilliseconds||0;return typeof J!=="number"||J<=0?(g.ko(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+J)),!1):!0}; Wr=function(J,K){K=K===void 0?2:K;g.hi.call(this);this.api=J;this.G=null;this.L9=new mG(this);g.Z(this,this.L9);this.Z=QWf;this.L9.T(this.api,"presentingplayerstatechange",this.Ir);this.G=this.L9.T(this.api,"progresssync",this.MH);this.Ps=K;this.Ps===1&&this.MH()}; ak=function(J,K,n){aR.call(this,J);this.api=J;this.TA=K;this.Z={};J=new g.F({j:"div",UM:["video-ads","ytp-ad-module"]});g.Z(this,J);iq&&g.jv(J.element,"ytp-ads-tiny-mode");this.C=new Rn(J.element);g.Z(this,this.C);g.dv(this.api,J.element,4);o8(n)&&(n=new g.F({j:"div",UM:["ytp-ad-underlay"]}),g.Z(this,n),this.X=new Rn(n.element),g.Z(this,this.X),g.dv(this.api,n.element,0));g.Z(this,UHf())}; xp0=function(J,K){J=g.Nz(J.Z,K.id,null);J==null&&g.gG(Error("Component not found for element id: "+K.id));return J||null}; jrr=function(J){g.CH.call(this,J);var K=this;this.Z=null;this.created=!1;this.X=J.S().J("h5_use_refactored_get_ad_break")?new EyH(this.player):new yb(this.player);this.U=function(){if(K.Z!=null)return K.Z;var X=new nsM({lB:ul(K.G).lB,KH:ul(K.G).KH,B:K.player,c6:ul(K.G).c6,NQ:K.G.G.NQ,ey:ul(K.G).ey,eh:K.G.G.eh});K.Z=X.Qy;return K.Z}; this.G=new rbp(this.player,this,this.X,this.U);g.Z(this,this.G);var n=J.S();!Pb(n)||g.cp(n)||ZW(n)||(g.Z(this,new ak(J,ul(this.G).TA,ul(this.G).c6)),g.Z(this,new sq8(J)))}; V8g=function(J){J.created!==J.loaded&&Se("Created and loaded are out of sync")}; QrS=function(J){g.CH.prototype.load.call(J);var K=ul(J.G).c6;try{J.player.getRootNode().classList.add("ad-created")}catch(Q){Se(Q instanceof Error?Q:String(Q))}var n=J.player.getVideoData(1),X=n&&n.videoId||"",l=n&&n.getPlayerResponse()||{},x=(!J.player.S().experiments.sM("debug_ignore_ad_placements")&&l&&l.adPlacements||[]).map(function(Q){return Q.adPlacementRenderer}),V=((l==null?void 0:l.adSlots)||[]).map(function(Q){return g.f(Q,yS)}); l=l.playerConfig&&l.playerConfig.daiConfig&&l.playerConfig.daiConfig.enableDai||!1;n&&n.qS();x=hfH(x,V,K,ul(J.G).YB);V=n&&n.clientPlaybackNonce||"";n=n&&n.fg||!1;if(wY(K,!0)&&n){var v;K={};(v=J.player.getVideoData())==null||v.Zm("p_cpb",(K.cc=V,K))}v=1E3*J.player.getDuration(1);vHO(J);J.G.G.IM.HH(V,v,n,x.H0,x.Rj,x.H0,l,X)}; vHO=function(J){var K,n;if(n=(K=J.player.getVideoData(1))==null||!K.fg)K=J.player.S(),n=Pb(K)&&!g.wh(K)&&K.playerStyle==="desktop-polymer";n&&(J=J.player.getInternalApi(),J.addEventListener("updateKevlarOrC3Companion",OMV),J.addEventListener("updateEngagementPanelAction",HMU),J.addEventListener("changeEngagementPanelVisibility",R2d),window.addEventListener("yt-navigate-start",e2F))}; F2=function(J,K){K===J.ZP&&(J.ZP=void 0)}; $pG=function(J){var K=ul(J.G).QA,n=K.U().oB("SLOT_TYPE_PLAYER_BYTES",1);K=RK(K.Jj.get(),1).clientPlaybackNonce;var X=!1;n=g.z(n);for(var l=n.next();!l.done;l=n.next()){l=l.value;var x=l.slotType==="SLOT_TYPE_PLAYER_BYTES"&&l.slotEntryTrigger instanceof BW?l.slotEntryTrigger.xi:void 0;x&&x===K&&(X&&Se("More than 1 preroll playerBytes slot detected",l),X=!0)}X||xe(ul(J.G).MG)}; Sdu=function(J){if(bs(ul(J.G).c6))return!0;var K="";J=g.z(ul(J.G).ey.zQ.keys());for(var n=J.next();!n.done;n=J.next()){n=n.value;if(n.slotType==="SLOT_TYPE_PLAYER_BYTES"&&n.VG==="core")return!0;K+=n.slotType+" "}Math.random()<.01&&Se("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:K});return!1}; r7S=function(J){J=g.z(ul(J.G).ey.zQ.values());for(var K=J.next();!K.done;K=J.next())if(K.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; GIr=function(J,K,n,X,l,x){n=n===void 0?[]:n;X=X===void 0?"":X;l=l===void 0?"":l;var V=ul(J.G).c6,v=J.player.getVideoData(1);v&&v.getPlayerResponse();v&&v.qS();n=hfH(K,n,V,ul(J.G).YB);fPf(ul(J.G).Zh,X,n.H0,n.Rj,K,l,x)}; hfH=function(J,K,n,X){K={H0:[],Rj:K};J=g.z(J);for(var l=J.next();!l.done;l=J.next())if((l=l.value)&&l.renderer!=null){var x=l.renderer;if(!n.B.S().J("html5_enable_vod_lasr_with_notify_pacf")){var V=void 0,v=void 0,Q=void 0,S=void 0,r=X;g.f((S=x.sandwichedLinearAdRenderer)==null?void 0:S.adVideoStart,R8)?(V=g.f((Q=x.sandwichedLinearAdRenderer)==null?void 0:Q.adVideoStart,R8),V=jgq(V,r),g.t4(x.sandwichedLinearAdRenderer.adVideoStart,R8,V)):g.f((v=x.linearAdSequenceRenderer)==null?void 0:v.adStart,R8)&& (Q=g.f((V=x.linearAdSequenceRenderer)==null?void 0:V.adStart,R8),V=jgq(Q,r),g.t4(x.linearAdSequenceRenderer.adStart,R8,V))}K.H0.push(l)}return K}; g.ql=function(J){if(typeof DOMParser!="undefined")return SO(new DOMParser,tgq(J),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.EI=function(J){g.t.call(this);this.callback=J;this.G=new za(0,0,.4,0,.2,1,1,1);this.delay=new g.b1(this.next,window,this);g.Z(this,this.delay)}; g.srr=function(J){var K=J.S();return K.C9&&!K.X&&g.pR(K)?J.isEmbedsShortsMode()?(J=J.CI(),Math.min(J.width,J.height)>=315):!J.l1():!1}; g.bl=function(J){g.F.call(this,{j:"div",V:"ytp-more-videos-view",D:{tabIndex:"-1"}});var K=this;this.api=J;this.Z=!0;this.X=new g.gY(this);this.G=[];this.suggestionData=[];this.columns=this.containerWidth=this.L=this.U=this.scrollPosition=0;this.title=new g.F({j:"h2",V:"ytp-related-title",hj:"{{title}}"});this.previous=new g.F({j:"button",UM:["ytp-button","ytp-previous"],D:{"aria-label":"Show previous suggested videos"},Y:[g.uC()]});this.W=new g.EI(function(n){K.suggestions.element.scrollLeft=-n}); this.next=new g.F({j:"button",UM:["ytp-button","ytp-next"],D:{"aria-label":"Show more suggested videos"},Y:[g.e3()]});g.Z(this,this.X);this.N=J.S().U;g.Z(this,this.title);this.title.qQ(this.element);this.suggestions=new g.F({j:"div",V:"ytp-suggestions"});g.Z(this,this.suggestions);this.suggestions.qQ(this.element);g.Z(this,this.previous);this.previous.qQ(this.element);this.previous.listen("click",this.Lt,this);g.Z(this,this.W);CF8(this);g.Z(this,this.next);this.next.qQ(this.element);this.next.listen("click", this.Fy,this);this.X.T(this.api,"appresize",this.s_);this.X.T(this.api,"fullscreentoggled",this.Fj);this.X.T(this.api,"videodatachange",this.onVideoDataChange);this.s_(this.api.S_().getPlayerSize());this.onVideoDataChange()}; CF8=function(J){for(var K={Ah:0};K.Ah<16;K={Ah:K.Ah},++K.Ah){var n=new g.F({j:"a",V:"ytp-suggestion-link",D:{href:"{{link}}",target:J.api.S().K,"aria-label":"{{aria_label}}"},Y:[{j:"div",V:"ytp-suggestion-image"},{j:"div",V:"ytp-suggestion-overlay",D:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},Y:[{j:"div",V:"ytp-suggestion-title",hj:"{{title}}"},{j:"div",V:"ytp-suggestion-author",hj:"{{author_and_views}}"},{j:"div",D:{"data-is-live":"{{is_live}}"},V:"ytp-suggestion-duration", hj:"{{duration}}"}]}]});g.Z(J,n);var X=n.rQ("ytp-suggestion-link");g.c7(X,"transitionDelay",K.Ah/20+"s");J.X.T(X,"click",function(l){return function(x){var V=l.Ah;if(J.Z){var v=J.suggestionData[V],Q=v.sessionData;J.N&&J.api.J("web_player_log_click_before_generating_ve_conversion_params")?(J.api.logClick(J.G[V].element),V=v.BH(),v={},g.LC(J.api,v),V=g.Td(V,v),g.x3(V,J.api,x)):g.lA(x,J.api,J.N,Q||void 0)&&J.api.z9(v.videoId,Q,v.playlistId)}else x.preventDefault(),document.activeElement.blur()}}(K)); n.qQ(J.suggestions.element);J.G.push(n);J.api.createServerVe(n.element,n)}}; OUS=function(J){if(J.api.S().J("web_player_log_click_before_generating_ve_conversion_params"))for(var K=Math.floor(-J.scrollPosition/(J.U+8)),n=Math.min(K+J.columns,J.suggestionData.length)-1;K<=n;K++)J.api.logVisibility(J.G[K].element,!0)}; g.AY=function(J){var K=J.api.Mx()?32:16;K=J.L/2+K;J.next.element.style.bottom=K+"px";J.previous.element.style.bottom=K+"px";K=J.scrollPosition;var n=J.containerWidth-J.suggestionData.length*(J.U+8);g.Qq(J.element,"ytp-scroll-min",K>=0);g.Qq(J.element,"ytp-scroll-max",K<=n)}; RfH=function(J){for(var K=J.suggestionData.length,n=0;n>>0)+"_",l=0;return K}); QV("Symbol.iterator",function(J){if(J)return J;J=Symbol("Symbol.iterator");for(var K="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),n=0;n0&&n>0;)if(X[--n]!=K[--l])return!1;return l<=0}}); QV("Array.prototype.find",function(J){return J?J:function(K,n){return $pF(this,K,n).nN}}); QV("Array.prototype.entries",function(J){return J?J:function(){return t7(this,function(K,n){return[K,n]})}}); QV("Array.prototype.keys",function(J){return J?J:function(){return t7(this,function(K){return K})}}); QV("String.prototype.startsWith",function(J){return J?J:function(K,n){var X=Ud(this,K,"startsWith");K+="";var l=X.length,x=K.length;n=Math.max(0,Math.min(n|0,X.length));for(var V=0;V=x}}); QV("Number.isFinite",function(J){return J?J:function(K){return typeof K!=="number"?!1:!isNaN(K)&&K!==Infinity&&K!==-Infinity}}); QV("String.prototype.repeat",function(J){return J?J:function(K){var n=Ud(this,null,"repeat");if(K<0||K>1342177279)throw new RangeError("Invalid count value");K|=0;for(var X="";K;)if(K&1&&(X+=n),K>>>=1)n+=n;return X}}); QV("Object.entries",function(J){return J?J:function(K){var n=[],X;for(X in K)r3(K,X)&&n.push([X,K[X]]);return n}}); QV("Array.from",function(J){return J?J:function(K,n,X){n=n!=null?n:function(v){return v}; var l=[],x=typeof Symbol!="undefined"&&Symbol.iterator&&K[Symbol.iterator];if(typeof x=="function"){K=x.call(K);for(var V=0;!(x=K.next()).done;)l.push(n.call(X,x.value,V++))}else for(x=K.length,V=0;V>>16&65535)*l+X*(n>>>16&65535)<<16>>>0)|0}}); QV("Math.trunc",function(J){return J?J:function(K){K=Number(K);if(isNaN(K)||K===Infinity||K===-Infinity||K===0)return K;var n=Math.floor(Math.abs(K));return K<0?-n:n}}); QV("Math.clz32",function(J){return J?J:function(K){K=Number(K)>>>0;if(K===0)return 32;var n=0;(K&4294901760)===0&&(K<<=16,n+=16);(K&4278190080)===0&&(K<<=8,n+=8);(K&4026531840)===0&&(K<<=4,n+=4);(K&3221225472)===0&&(K<<=2,n+=2);(K&2147483648)===0&&n++;return n}}); QV("Number.isNaN",function(J){return J?J:function(K){return typeof K==="number"&&isNaN(K)}}); QV("Array.prototype.values",function(J){return J?J:function(){return t7(this,function(K,n){return n})}}); QV("Array.prototype.fill",function(J){return J?J:function(K,n,X){var l=this.length||0;n<0&&(n=Math.max(0,l+n));if(X==null||X>l)X=l;X=Number(X);X<0&&(X=Math.max(0,l+X));for(n=Number(n||0);n0&&n?n.repeat(Math.ceil(K/n.length)).substring(0,K):"")+X}}); QV("Array.prototype.findIndex",function(J){return J?J:function(K,n){return $pF(this,K,n).Xb}}); QV("Promise.prototype.finally",function(J){return J?J:function(K){return this.then(function(n){return Promise.resolve(K()).then(function(){return n})},function(n){return Promise.resolve(K()).then(function(){throw n; })})}}); QV("Math.sign",function(J){return J?J:function(K){K=Number(K);return K===0||isNaN(K)?K:K>0?1:-1}}); QV("WeakSet",function(J){function K(n){this.G=new WeakMap;if(n){n=g.z(n);for(var X;!(X=n.next()).done;)this.add(X.value)}} if(function(){if(!J||!Object.seal)return!1;try{var n=Object.seal({}),X=Object.seal({}),l=new J([n]);if(!l.has(n)||l.has(X))return!1;l.delete(n);l.add(X);return!l.has(n)&&l.has(X)}catch(x){return!1}}())return J; K.prototype.add=function(n){this.G.set(n,!0);return this}; K.prototype.has=function(n){return this.G.has(n)}; K.prototype.delete=function(n){return this.G.delete(n)}; return K}); QV("AggregateError",function(J){function K(n,X){X=Error(X);"stack"in X&&(this.stack=X.stack);this.errors=n;this.message=X.message} if(J)return J;g.e(K,Error);K.prototype.name="AggregateError";return K}); QV("Array.prototype.copyWithin",function(J){function K(n){n=Number(n);return n===Infinity||n===-Infinity?n:n|0} return J?J:function(n,X,l){var x=this.length;n=K(n);X=K(X);l=l===void 0?x:K(l);n=n<0?Math.max(x+n,0):Math.min(n,x);X=X<0?Math.max(x+X,0):Math.min(X,x);l=l<0?Math.max(x+l,0):Math.min(l,x);if(nX;)--l in this?this[--n]=this[l]:delete this[--n];return this}}); QV("Int8Array.prototype.copyWithin",Ze);QV("Uint8Array.prototype.copyWithin",Ze);QV("Uint8ClampedArray.prototype.copyWithin",Ze);QV("Int16Array.prototype.copyWithin",Ze);QV("Uint16Array.prototype.copyWithin",Ze);QV("Int32Array.prototype.copyWithin",Ze);QV("Uint32Array.prototype.copyWithin",Ze);QV("Float32Array.prototype.copyWithin",Ze);QV("Float64Array.prototype.copyWithin",Ze);QV("Array.prototype.at",function(J){return J?J:W3}); QV("Int8Array.prototype.at",ar);QV("Uint8Array.prototype.at",ar);QV("Uint8ClampedArray.prototype.at",ar);QV("Int16Array.prototype.at",ar);QV("Uint16Array.prototype.at",ar);QV("Int32Array.prototype.at",ar);QV("Uint32Array.prototype.at",ar);QV("Float32Array.prototype.at",ar);QV("Float64Array.prototype.at",ar);QV("String.prototype.at",function(J){return J?J:W3}); QV("Array.prototype.findLastIndex",function(J){return J?J:function(K,n){return Sd3(this,K,n).Xb}}); QV("Int8Array.prototype.findLastIndex",Fq);QV("Uint8Array.prototype.findLastIndex",Fq);QV("Uint8ClampedArray.prototype.findLastIndex",Fq);QV("Int16Array.prototype.findLastIndex",Fq);QV("Uint16Array.prototype.findLastIndex",Fq);QV("Int32Array.prototype.findLastIndex",Fq);QV("Uint32Array.prototype.findLastIndex",Fq);QV("Float32Array.prototype.findLastIndex",Fq);QV("Float64Array.prototype.findLastIndex",Fq);QV("Number.parseInt",function(J){return J||parseInt});var Fx,nn,r7q;Fx=Fx||{};g.qp=this||self;nn="closure_uid_"+(Math.random()*1E9>>>0);r7q=0;g.v8(QF,Error);QF.prototype.name="CustomError";var kOp;var PFq,aF,Ma;PFq=Array.prototype.indexOf?function(J,K){return Array.prototype.indexOf.call(J,K,void 0)}:function(J,K){if(typeof J==="string")return typeof K!=="string"||K.length!=1?-1:J.indexOf(K,0); for(var n=0;n=0;n--)if(n in J&&J[n]===K)return n;return-1}; g.Yr=Array.prototype.forEach?function(J,K,n){Array.prototype.forEach.call(J,K,n)}:function(J,K,n){for(var X=J.length,l=typeof J==="string"?J.split(""):J,x=0;x=.3:this.BB>=.5};var rI={s$F:0,HJW:1},Y8H={NONE:0,cMm:1,TzQ:2};var GMU="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");XF.prototype.getValue=function(){return this.Z}; g.e(lS,XF);lS.prototype.X=function(J){this.Z===null&&g.bG(this.U,J)&&(this.Z=J)}; g.e(jh,XF);jh.prototype.X=function(J){this.Z===null&&typeof J==="number"&&(this.Z=J)}; g.e(VP,XF);VP.prototype.X=function(J){this.Z===null&&typeof J==="string"&&(this.Z=J)};hK.prototype.disable=function(){this.Z=!1}; hK.prototype.enable=function(){this.Z=!0}; hK.prototype.isEnabled=function(){return this.Z}; hK.prototype.reset=function(){this.G={};this.Z=!0;this.X={}};var JZ=document,Qc=window;var B3G=Mp(1,!0),iS=Mp(610401301,!1);Mp(899588437,!1);Mp(725719775,!1);var mpF=Mp(513659523,!1),p3m=Mp(568333945,!1),uiV=Mp(1331761403,!1);Mp(651175828,!1);Mp(722764542,!1);Mp(748402145,!1);var oQH=Mp(1981196515,!1);Mp(2147483644,!1);Mp(2147483645,!1);Mp(2147483646,B3G);Mp(2147483647,!0);var Bj=!!g.bF("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var uS=String.prototype.trim?function(J){return J.trim()}:function(J){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(J)[1]},hmk=/&/g,vrk=//g,$zH=/"/g,S0d=/'/g,rjV=/\x00/g,VVq=/[\x00&<>"']/;var m7,LkH=g.qp.navigator;m7=LkH?LkH.userAgentData||null:null;var A7F=globalThis.trustedTypes,Y2;U7.prototype.toString=function(){return this.G+""};ZV.prototype.toString=function(){return this.G}; var JjH=new ZV("about:invalid#zClosurez");var dl3=ai("tel"),TxU=ai("sms"),N3r=[ai("data"),ai("http"),ai("https"),ai("mailto"),ai("ftp"),new Wj(function(J){return/^[^:]*([/?#]|$)/.test(J)})],KgF=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;MX.prototype.toString=function(){return this.G+""};oN.prototype.toString=function(){return this.G+""};hq.prototype.toString=function(){return this.G};var Qh={};g.T3S=String.prototype.repeat?function(J,K){return J.repeat(K)}:function(J,K){return Array(K+1).join(J)};IN[" "]=function(){};var Yp,J8,eiU,DpO,dpF,kMm,Im,iq,gHn;g.Bp=DV();g.sx=WkU();g.qH=Lu("Edge");g.Ju=g.qH||g.sx;Yp=Lu("Gecko")&&!(Ri(g.Ii(),"WebKit")&&!Lu("Edge"))&&!(Lu("Trident")||Lu("MSIE"))&&!Lu("Edge");g.qE=Ri(g.Ii(),"WebKit")&&!Lu("Edge");J8=PK();eiU=uSU();g.J_=RmV();DpO=zE();dpF=Lu("iPad");kMm=Lu("iPod");Im=ws();iq=Ri(g.Ii(),"KaiOS"); a:{var c7u="",Yd0=function(){var J=g.Ii();if(Yp)return/rv:([^\);]+)(\)|;)/.exec(J);if(g.qH)return/Edge\/([\d\.]+)/.exec(J);if(g.sx)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(J);if(g.qE)return/WebKit\/(\S+)/.exec(J);if(g.Bp)return/(?:Version)[ \/]?(\S+)/.exec(J)}(); Yd0&&(c7u=Yd0?Yd0[1]:"");if(g.sx){var Ml,GMn=g.qp.document;Ml=GMn?GMn.documentMode:void 0;if(Ml!=null&&Ml>parseFloat(c7u)){gHn=String(Ml);break a}}gHn=c7u}var PGF=gHn,zm3={};var A2,Me;g.EV=k2();A2=zE()||Lu("iPod");Me=Lu("iPad");g.mY=FkV();g.T2=gI();g.ut=cj()&&!ws();var Urd=!g.sx&&!cj();g.u=g.Ll.prototype;g.u.clone=function(){return new g.Ll(this.x,this.y)}; g.u.equals=function(J){return J instanceof g.Ll&&TE(this,J)}; g.u.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.u.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.u.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.u.scale=function(J,K){this.x*=J;this.y*=typeof K==="number"?K:J;return this};g.u=g.DH.prototype;g.u.clone=function(){return new g.DH(this.width,this.height)}; g.u.aspectRatio=function(){return this.width/this.height}; g.u.isEmpty=function(){return!kR(this)}; g.u.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.u.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.u.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.u.scale=function(J,K){this.width*=J;this.height*=typeof K==="number"?K:J;return this};cK.prototype.toString=function(){return this.G}; var gs={};new cK(gs,"");var BuV=/^[a-z][a-z\d-]*$/i,mzM="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),Lgd="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),Dze=["action","formaction","href"];var grr={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.u=GE.prototype;g.u.xr=function(J){return yh(this.G,J)}; g.u.getElementsByTagName=function(J,K){return(K||this.G).getElementsByTagName(String(J))}; g.u.rQ=function(J){return g.aN(J,this.G)}; g.u.setProperties=FQ;g.u.createElement=function(J){return bB(this.G,J)}; g.u.appendChild=g.Jp;g.u.append=function(J,K){UzF(UQ(J),J,arguments,1)}; g.u.canHaveChildren=function(J){if(J.nodeType!=1)return!1;switch(J.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.u.removeNode=g.oF;g.u.getChildren=function(J){return J.children!=void 0?J.children:Array.prototype.filter.call(J.childNodes,function(K){return K.nodeType==1})}; g.u.contains=g.XG;Vc.prototype.now=function(){return 0}; Vc.prototype.Z=function(){return 0}; Vc.prototype.X=function(){return 0}; Vc.prototype.G=function(){return 0};g.e(vH,Vc);vH.prototype.now=function(){return hp()&&Qc.performance.now?Qc.performance.now():Vc.prototype.now.call(this)}; vH.prototype.Z=function(){return hp()&&Qc.performance.memory?Qc.performance.memory.totalJSHeapSize||0:Vc.prototype.Z.call(this)}; vH.prototype.X=function(){return hp()&&Qc.performance.memory?Qc.performance.memory.usedJSHeapSize||0:Vc.prototype.X.call(this)}; vH.prototype.G=function(){return hp()&&Qc.performance.memory?Qc.performance.memory.jsHeapSizeLimit||0:Vc.prototype.G.call(this)};var WgH=rP(function(){var J=!1;try{var K=Object.defineProperty({},"passive",{get:function(){J=!0}}); g.qp.addEventListener("test",null,K)}catch(n){}return J});azr.prototype.isVisible=function(){return RF(JZ)===1};var Jq3=uc(function(J){return typeof J==="number"}),NIV=uc(function(J){return typeof J==="string"}),K47=uc(function(J){return typeof J==="boolean"}),$E=uc(function(J){return J!=null&&typeof J==="object"&&typeof J.then==="function"}),eR3=uc(function(J){return typeof J==="function"}),Up8=uc(function(J){return!!J&&(typeof J==="object"||typeof J==="function")});var GSd=function(){if(!g.qp.addEventListener||!Object.defineProperty)return!1;var J=!1,K=Object.defineProperty({},"passive",{get:function(){J=!0}}); try{var n=function(){}; g.qp.addEventListener("test",n,K);g.qp.removeEventListener("test",n,K)}catch(X){}return J}();var Kwd=q0M("AnimationEnd"),v0=q0M("TransitionEnd");var bnH=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),o2V=/#|$/,XjF=/[?&]($|#)/;var xXr={C1W:"allow-forms",HhM:"allow-modals",J8G:"allow-orientation-lock",kRd:"allow-pointer-lock",RQ_:"allow-popups",WCm:"allow-popups-to-escape-sandbox",tK5:"allow-presentation",eQG:"allow-same-origin",VKQ:"allow-scripts",TKM:"allow-top-navigation",adm:"allow-top-navigation-by-user-activation"},v2r=rP(function(){return ji8()});var rK3=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");U8.prototype.M_=function(J,K,n){J=J+"//"+K+n;var X=HuM(this)-n.length;if(X<0)return"";this.G.sort(function(S,r){return S-r}); n=null;K="";for(var l=0;l=Q.length){X-=Q.length;J+=Q;K=this.X;break}n=n==null?x:n}}X="";n!=null&&(X=""+K+"trn="+n);return J+X};qu.prototype.setInterval=function(J,K){return Qc.setInterval(J,K)}; qu.prototype.clearInterval=function(J){Qc.clearInterval(J)}; qu.prototype.setTimeout=function(J,K){return Qc.setTimeout(J,K)}; qu.prototype.clearTimeout=function(J){Qc.clearTimeout(J)};var Cv=void 0,sD,Jp8=typeof TextDecoder!=="undefined",pj3,mXM=typeof String.prototype.isWellFormed==="function",BIV=typeof TextEncoder!=="undefined";var kRk={},oS=null,g2V=Yp||g.qE||typeof g.qp.btoa=="function";var aVf=typeof Uint8Array!=="undefined",thf=!g.sx&&typeof btoa==="function",yKr=/[-_.]/g,GRr={"-":"+",_:"/",".":"="},li={};Xh.prototype.isEmpty=function(){return this.G==null}; Xh.prototype.sizeBytes=function(){var J=Vy(this);return J?J.length:0}; var W78;var F7p=void 0;var Sa=typeof Symbol==="function"&&typeof Symbol()==="symbol",t8S=$X("jas",void 0,!0),gr=$X(void 0,"1oa"),Jy=$X(void 0,Symbol()),y7j=$X(void 0,"0ub"),BsU=$X(void 0,"0ubs"),Pc3=$X(void 0,"0ubsb"),DEF=$X(void 0,"0actk"),Ae=$X("m_m","l1F",!0),IH7=$X(void 0,"vps"),ZUu=$X();Math.max.apply(Math,g.m(Object.values({aax:1,Tum:2,VOQ:4,k0G:8,jpj:16,jEv:32,fgW:64,mPF:128,Wwm:256,zxd:512,VuA:1024,zlQ:2048,B3x:4096})));var E28={jb:{value:0,configurable:!0,writable:!0,enumerable:!1}},q7M=Object.defineProperties,r$=Sa?t8S:"jb",e7,feO=[];sb(feO,7);e7=Object.freeze(feO);var MY={},Ob={},tO3=Object.freeze({}),ui={};var zK=typeof g.qp.BigInt==="function"&&typeof g.qp.BigInt(0)==="bigint";var xM=uc(function(J){return zK?J>=Wkn&&J<=aeS:J[0]==="-"?nRU(J,FkF):nRU(J,qdH)}),FkF=Number.MIN_SAFE_INTEGER.toString(),Wkn=zK?BigInt(Number.MIN_SAFE_INTEGER):void 0,qdH=Number.MAX_SAFE_INTEGER.toString(),aeS=zK?BigInt(Number.MAX_SAFE_INTEGER):void 0;var ERk=typeof Uint8Array.prototype.slice==="function",Pd=0,IS=0,I23;var yy=typeof BigInt==="function"?BigInt.asIntN:void 0,Olf=typeof BigInt==="function"?BigInt.asUintN:void 0,aS=Number.isSafeInteger,g$=Number.isFinite,Fh=Math.trunc,jNV=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var il7={};var EHS={J7Q:!0};var Xe;var mEd,pK3;var Zl7=w$(0),qr={};g.u=F4M.prototype;g.u.init=function(J,K,n,X){var l=X===void 0?{}:X;X=l.XT===void 0?!1:l.XT;l=l.l0===void 0?!1:l.l0;this.XT=X;this.l0=l;J&&(J=nv(J,this.l0),this.Z=J.buffer,this.C=J.G,this.U=K||0,this.X=n!==void 0?this.U+n:this.Z.length,this.G=this.U)}; g.u.free=function(){this.clear();vi.length<100&&vi.push(this)}; g.u.clear=function(){this.Z=null;this.C=!1;this.G=this.X=this.U=0;this.XT=!1}; g.u.reset=function(){this.G=this.U}; g.u.K9=function(){var J=this.N;J||(J=this.Z,J=this.N=new DataView(J.buffer,J.byteOffset,J.byteLength));return J}; var vi=[];Qx.prototype.free=function(){this.G.clear();this.Z=this.U=-1;$J.length<100&&$J.push(this)}; Qx.prototype.reset=function(){this.G.reset();this.X=this.G.G;this.Z=this.U=-1}; var $J=[];Hi.prototype.toJSON=function(){return VI(this)}; Hi.prototype.Q2=function(J){return JSON.stringify(VI(this,J))}; Hi.prototype.clone=function(){var J=this.lR;return new this.constructor($M(J,J[r$]|0,!1))}; Hi.prototype[Ae]=MY;Hi.prototype.toString=function(){return this.lR.toString()};var o_q,l2V;zz.prototype.length=function(){return this.G.length}; zz.prototype.end=function(){var J=this.G;this.G=[];return J};var Lv=pv(),bUV=pv(),A7G=pv(),M80=pv(),N3H=pv(),Jjr=pv(),KgG=pv(),nrH=pv();var rpU=Dv(function(J,K,n,X,l){if(J.Z!==2)return!1;r9(J,ce(K,X,n),l);return!0},S8p),sFf=Dv(function(J,K,n,X,l){if(J.Z!==2)return!1; r9(J,ce(K,X,n),l);return!0},S8p),Zv=Symbol(),YJ=Symbol(),tM=Symbol(),e_d=Symbol(),HfF=Symbol(),d9,kJ;var oru=ED(function(J,K,n){if(J.Z!==1)return!1;AM(K,n,Vx(J.G));return!0},M9,KgG),X8r=ED(function(J,K,n){if(J.Z!==1)return!1; J=Vx(J.G);AM(K,n,J===0?void 0:J);return!0},M9,KgG),lzO=ED(function(J,K,n,X){if(J.Z!==1)return!1; dr(K,n,X,Vx(J.G));return!0},M9,KgG),xzu=ED(function(J,K,n){if(J.Z!==0)return!1; AM(K,n,XB(J.G));return!0},N9,N3H),jHj=ED(function(J,K,n){if(J.Z!==0)return!1; J=XB(J.G);AM(K,n,J===0?void 0:J);return!0},N9,N3H),VVS=ED(function(J,K,n,X){if(J.Z!==0)return!1; dr(K,n,X,XB(J.G));return!0},N9,N3H),hmg=ED(function(J,K,n){if(J.Z!==0)return!1; AM(K,n,lw(J.G));return!0},JQ,M80),vrg=ED(function(J,K,n){if(J.Z!==0)return!1; J=lw(J.G);AM(K,n,J===0?void 0:J);return!0},JQ,M80),QHS=ED(function(J,K,n,X){if(J.Z!==0)return!1; dr(K,n,X,lw(J.G));return!0},JQ,M80),$zr=ED(function(J,K,n){if(J.Z!==1)return!1; AM(K,n,jr(J.G));return!0},function(J,K,n){QFd(J,n,Hlr(K))},Jjr),S00=bw(function(J,K,n){if(J.Z!==1&&J.Z!==2)return!1; K=my(K,K[r$]|0,n);if(J.Z==2)for(n=lw(J.G)>>>0,n=J.G.G+n;J.G.G>>0);return!0},function(J,K,n){K=Ub(K); K!=null&&K!=null&&(Bi(J,n,0),Pi(J.G,K))},pv()),uSn=ED(function(J,K,n){if(J.Z!==0)return!1; AM(K,n,lw(J.G));return!0},function(J,K,n){K=GK(K); K!=null&&(K=parseInt(K,10),Bi(J,n,0),jFf(J.G,K))},pv());LQH.prototype.register=function(){IN(this)};g.e(Xo,Hi);Xo.prototype.Z=TP8([0,X8r,jHj,-2,vrg]);var Gd3={OIG:1,Rm:2,rLM:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};t5p.prototype.rH=function(J){if(typeof J==="string"&&J.length!=0){var K=this.i_;if(K.Z){J=J.split("&");for(var n=J.length-1;n>=0;n--){var X=J[n].split("="),l=decodeURIComponent(X[0]);X.length>1?(X=decodeURIComponent(X[1]),X=/^[0-9]+$/g.exec(X)?parseInt(X,10):X):X=1;(l=K.G[l])&&l.X(X)}}}};var Xi=null;var v7=g.qp.performance,emg=!!(v7&&v7.mark&&v7.measure&&v7.clearMarks),Vz=rP(function(){var J;if(J=emg){var K=K===void 0?window:K;if(Xi===null){Xi="";try{J="";try{J=K.top.location.hash}catch(X){J=K.location.hash}if(J){var n=J.match(/\bdeid=([\d,]+)/);Xi=n?n[1]:""}}catch(X){}}K=Xi;J=!!K.indexOf&&K.indexOf("1337")>=0}return J}); hQ.prototype.disable=function(){this.G=!1;this.events!==this.Z.google_js_reporting_queue&&(Vz()&&g.Yr(this.events,FQM),this.events.length=0)}; hQ.prototype.start=function(J,K){if(!this.G)return null;var n=WQe()||f2V();J=new a2H(J,K,n);K="goog_"+J.label+"_"+J.uniqueId+"_start";v7&&Vz()&&v7.mark(K);return J}; hQ.prototype.end=function(J){if(this.G&&typeof J.value==="number"){var K=WQe()||f2V();J.duration=K-J.value;K="goog_"+J.label+"_"+J.uniqueId+"_end";v7&&Vz()&&v7.mark(K);!this.G||this.events.length>2048||this.events.push(J)}};q8r.prototype.y7=function(J,K,n,X,l){l=l||this.yQ;try{var x=new U8;x.G.push(1);x.Z[1]=tp("context",J);K.error&&K.meta&&K.id||(K=new r5(si(K)));if(K.msg){var V=K.msg.substring(0,512);x.G.push(2);x.Z[2]=tp("msg",V)}var v=K.meta||{};if(this.Mn)try{this.Mn(v)}catch(H){}if(X)try{X(v)}catch(H){}X=[v];x.G.push(3);x.Z[3]=X;var Q=CSV();if(Q.Z){var S=Q.Z.url||"";x.G.push(4);x.Z[4]=tp("top",S)}var r={url:Q.G.url||""};if(Q.G.url){var C=g.wP(Q.G.url);var O=zd(C[1],null,C[3],C[4])}else O="";S=[r,{url:O}];x.G.push(5); x.Z[5]=S;ypM(this.G,l,x,n)}catch(H){try{ypM(this.G,l,{context:"ecmserr",rctx:J,msg:si(H),url:Q&&Q.G.url},n)}catch(R){}}return this.b7}; g.e(r5,Zfd);var $p,SU,Qz=new hQ;$p=new function(){var J="https:";Qc&&Qc.location&&Qc.location.protocol==="http:"&&(J="http:");this.Z=J;this.G=.01}; SU=new q8r;Qc&&Qc.document&&(Qc.document.readyState=="complete"?bfF():Qz.G&&HH(Qc,"load",function(){bfF()}));var NPH=Date.now(),zW=-1,u5=-1,rMe,w5=-1,eU=!1;g.u=P7.prototype;g.u.getHeight=function(){return this.bottom-this.top}; g.u.clone=function(){return new P7(this.top,this.right,this.bottom,this.left)}; g.u.contains=function(J){return this&&J?J instanceof P7?J.left>=this.left&&J.right<=this.right&&J.top>=this.top&&J.bottom<=this.bottom:J.x>=this.left&&J.x<=this.right&&J.y>=this.top&&J.y<=this.bottom:!1}; g.u.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.u.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.u.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.u.scale=function(J,K){K=typeof K==="number"?K:J;this.left*=J;this.right*=J;this.top*=K;this.bottom*=K;return this};mn.prototype.equals=function(J,K){return!!J&&(!(K===void 0?0:K)||this.volume==J.volume)&&this.X==J.X&&i5(this.G,J.G)&&!0};pk.prototype.xr=function(){return this.W}; pk.prototype.equals=function(J,K){return this.U.equals(J.U,K===void 0?!1:K)&&this.W==J.W&&i5(this.X,J.X)&&i5(this.N,J.N)&&this.G==J.G&&this.C==J.C&&this.Z==J.Z&&this.L==J.L};var zmu={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},Nm={Pd:"start",w9:"firstquartile",XB:"midpoint",N9:"thirdquartile",COMPLETE:"complete",ERROR:"error",h_:"metric",PAUSE:"pause",bl:"resume",Un:"skip",kW:"viewable_impression",A_:"mute",Hd:"unmute",yX:"fullscreen",TJ:"exitfullscreen",Hi:"bufferstart",Ct:"bufferfinish",g9:"fully_viewable_audible_half_duration_impression",ZX:"measurable_impression",EO:"abandon",VX:"engagedview",sO:"impression",Wi:"creativeview",p7:"loaded", l5_:"progress",CLOSE:"close",agF:"collapse",T3q:"overlay_resize",az4:"overlay_unmeasurable_impression",w6v:"overlay_unviewable_impression",yLm:"overlay_viewable_immediate_impression",fz4:"overlay_viewable_end_of_session_impression",tY:"custom_metric_viewable",UO:"audio_audible",Bi:"audio_measurable",jM:"audio_impression"},ILp="start firstquartile midpoint thirdquartile resume loaded".split(" "),ik3=["start","firstquartile","midpoint","thirdquartile"],Cw8=["abandon"],u0={UNKNOWN:-1,Pd:0,w9:1,XB:2, N9:3,COMPLETE:4,h_:5,PAUSE:6,bl:7,Un:8,kW:9,A_:10,Hd:11,yX:12,TJ:13,g9:14,ZX:15,EO:16,VX:17,sO:18,Wi:19,p7:20,tY:21,Hi:22,Ct:23,jM:27,Bi:28,UO:29};var KEq={MKG:"addEventListener",wH4:"getMaxSize",fOF:"getScreenSize",yuj:"getState",gT4:"getVersion",A0G:"removeEventListener",w1d:"isViewable"};g.u=g.d5.prototype;g.u.clone=function(){return new g.d5(this.left,this.top,this.width,this.height)}; g.u.contains=function(J){return J instanceof g.Ll?J.x>=this.left&&J.x<=this.left+this.width&&J.y>=this.top&&J.y<=this.top+this.height:this.left<=J.left&&this.left+this.width>=J.left+J.width&&this.top<=J.top&&this.top+this.height>=J.top+J.height}; g.u.getSize=function(){return new g.DH(this.width,this.height)}; g.u.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.u.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.u.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.u.scale=function(J,K){K=typeof K==="number"?K:J;this.left*=J;this.width*=J;this.top*=K;this.height*=K;return this};var lw3={};rek.prototype.update=function(J){J&&J.document&&(this.W=DL(!1,J,this.isMobileDevice),this.G=DL(!0,J,this.isMobileDevice),ryr(this,J),sSd(this,J))};ns.prototype.cancel=function(){E8().clearTimeout(this.G);this.G=null}; ns.prototype.schedule=function(){var J=this,K=E8(),n=xp().G.G;this.G=K.setTimeout(l5(n,Oi(143,function(){J.Z++;J.X.sample()})),Jee())};g.u=o3.prototype;g.u.hD=function(){return!1}; g.u.initialize=function(){return this.isInitialized=!0}; g.u.Iw=function(){return this.G.MQ}; g.u.Ug=function(){return this.G.GA}; g.u.I$=function(J,K){if(!this.GA||(K===void 0?0:K))this.GA=!0,this.MQ=J,this.L=0,this.G!=this||lr(this)}; g.u.getName=function(){return this.G.Cv}; g.u.TY=function(){return this.G.uo()}; g.u.uo=function(){return{}}; g.u.y8=function(){return this.G.L}; g.u.MF=function(){var J=Na();J.G=DL(!0,this.X,J.isMobileDevice)}; g.u.qF=function(){sSd(Na(),this.X)}; g.u.RV=function(){return this.U.G}; g.u.sample=function(){}; g.u.isActive=function(){return this.G.N}; g.u.lz=function(J){var K=this.G;this.G=J.y8()>=this.L?J:this;K!==this.G?(this.N=this.G.N,lr(this)):this.N!==this.G.N&&(this.N=this.G.N,lr(this))}; g.u.mq=function(J){if(J.Z===this.G){var K=!this.U.equals(J,this.K);this.U=J;K&&OBf(this)}}; g.u.I0=function(){return this.K}; g.u.dispose=function(){this.cW=!0}; g.u.o4=function(){return this.cW};g.u=xT.prototype;g.u.observe=function(){return!0}; g.u.unobserve=function(){}; g.u.nG=function(J){this.C=J}; g.u.dispose=function(){if(!this.o4()){var J=this.Z;g.RH(J.C,this);J.K&&this.I0()&&C_e(J);this.unobserve();this.Aj=!0}}; g.u.o4=function(){return this.Aj}; g.u.TY=function(){return this.Z.TY()}; g.u.y8=function(){return this.Z.y8()}; g.u.Iw=function(){return this.Z.Iw()}; g.u.Ug=function(){return this.Z.Ug()}; g.u.lz=function(){}; g.u.mq=function(){this.ES()}; g.u.I0=function(){return this.cW};g.u=ju.prototype;g.u.y8=function(){return this.G.y8()}; g.u.Iw=function(){return this.G.Iw()}; g.u.Ug=function(){return this.G.Ug()}; g.u.create=function(J,K,n){var X=null;this.G&&(X=this.C4(J,K,n),X5(this.G,X));return X}; g.u.bL=function(){return this.X5()}; g.u.X5=function(){return!1}; g.u.init=function(J){return this.G.initialize()?(X5(this.G,this),this.U=J,!0):!1}; g.u.lz=function(J){J.y8()==0&&this.U(J.Iw(),this)}; g.u.mq=function(){}; g.u.I0=function(){return!1}; g.u.dispose=function(){this.C=!0}; g.u.o4=function(){return this.C}; g.u.TY=function(){return{}};VD.prototype.add=function(J,K,n){++this.X;J=new RE7(J,K,n);this.G.push(new RE7(J.Z,J.G,J.X+this.X/4096));this.Z=!0;return this};P_7.prototype.toString=function(){var J="//pagead2.googlesyndication.com//pagead/gen_204",K=vQ(this.G);K.length>0&&(J+="?"+K);return J};g.t.prototype.FQ=!1;g.t.prototype.o4=function(){return this.FQ}; g.t.prototype.dispose=function(){this.FQ||(this.FQ=!0,this.Xq())}; g.t.prototype[Symbol.dispose]=function(){this.dispose()}; g.t.prototype.addOnDisposeCallback=function(J,K){this.FQ?K!==void 0?J.call(K):J():(this.Nd||(this.Nd=[]),K&&(J=J.bind(K)),this.Nd.push(J))}; g.t.prototype.Xq=function(){if(this.Nd)for(;this.Nd.length;)this.Nd.shift()()};Su.prototype.update=function(J,K,n){J&&(this.G+=K,this.Z+=K,this.U+=K,this.X=Math.max(this.X,this.U));if(n===void 0?!J:n)this.U=0};var pe8=[1,.75,.5,.3,0];r7.prototype.update=function(J,K,n,X,l,x){x=x===void 0?!0:x;K=l?Math.min(J,K):K;for(l=0;l0&&K>=V;V=!(J>0&&J>=V)||n;this.G[l].update(x&&v,X,!x||V)}};ur.prototype.update=function(J,K,n,X){this.W=this.W!=-1?Math.min(this.W,K.BB):K.BB;this.QG=Math.max(this.QG,K.BB);this.Aj=this.Aj!=-1?Math.min(this.Aj,K.LL):K.LL;this.MQ=Math.max(this.MQ,K.LL);this.md.update(K.LL,n.LL,K.G,J,X);this.j_+=J;K.BB===0&&(this.Cv+=J);this.Z.update(K.BB,n.BB,K.G,J,X);n=X||n.G8!=K.G8?n.isVisible()&&K.isVisible():n.isVisible();K=!K.isVisible()||K.G;this.fv.update(n,J,K)}; ur.prototype.lM=function(){return this.fv.X>=this.Fq};if(JZ&&JZ.URL){var w8H=JZ.URL,PGG;if(PGG=!!w8H){var IzO;a:{if(w8H){var in0=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var lM=in0.exec(decodeURIComponent(w8H));if(lM){IzO=lM[1]&&lM[1].length>1?lM[1].substring(1):"true";break a}}catch(J){}}IzO=""}PGG=IzO.length>0}SU.b7=!PGG};var BuF=new P7(0,0,0,0);var YvU=new P7(0,0,0,0);g.e(ir,g.t);g.u=ir.prototype; g.u.Xq=function(){if(this.Za.G){if(this.bd.D2){var J=this.Za.G;typeof J.removeEventListener==="function"&&J.removeEventListener("mouseover",this.bd.D2,O8());this.bd.D2=null}this.bd.O4&&(J=this.Za.G,typeof J.removeEventListener==="function"&&J.removeEventListener("mouseout",this.bd.O4,O8()),this.bd.O4=null)}this.V9&&this.V9.dispose();this.CE&&this.CE.dispose();delete this.JW;delete this.g8;delete this.yY;delete this.Za.rT;delete this.Za.G;delete this.bd;delete this.V9;delete this.CE;delete this.i_; g.t.prototype.Xq.call(this)}; g.u.wJ=function(){return this.CE?this.CE.G:this.position}; g.u.rH=function(J){xp().rH(J)}; g.u.I0=function(){return!1}; g.u.oW=function(){return new ur}; g.u.UY=function(){return this.JW}; g.u.MN=function(J){return yyF(this,J,1E4)}; g.u.WW=function(J,K,n,X,l,x,V){this.dT||(this.o1&&(J=this.kq(J,n,l,V),X=X&&this.x6.BB>=(this.G8()?.3:.5),this.Dw(x,J,X),this.qI=K,J.BB>0&&-1===this.rI&&(this.rI=K),this.UC==-1&&this.lM()&&(this.UC=K),this.aG==-2&&(this.aG=w7(this.wJ())?J.BB:-1),this.x6=J),this.g8(this))}; g.u.Dw=function(J,K,n){this.UY().update(J,K,this.x6,n)}; g.u.q5=function(){return new U0}; g.u.kq=function(J,K,n,X){n=this.q5();n.G=K;K=E8().Z;K=RF(JZ)===0?-1:K.isVisible()?0:1;n.Z=K;n.BB=this.K_(J);n.G8=this.G8();n.LL=X;return n}; g.u.K_=function(J){return this.opacity===0&&$2(this.i_,"opac")===1?0:J}; g.u.G8=function(){return!1}; g.u.Tm=function(){return this.Ja||this.Wv}; g.u.WX=function(){RQ()}; g.u.l5=function(){RQ()}; g.u.d_=function(){return 0}; g.u.lM=function(){return this.JW.lM()}; g.u.Tz=function(){var J=this.o1;J=(this.hasCompleted||this.o4())&&!J;var K=xp().Z!==2||this.ao_;return this.dT||K&&J?2:this.lM()?4:3}; g.u.A1=function(){return 0};g.mR.prototype.next=function(){return g.xa}; g.xa={done:!0,value:void 0};g.mR.prototype.py=function(){return this};g.e(qvr,U0);var jW=bBF([void 0,1,2,3,4,8,16]),VB=bBF([void 0,4,8,16]),mzO={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:Dr("p0",VB),p1:Dr("p1",VB),p2:Dr("p2",VB),p3:Dr("p3",VB),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:TS("mtos1",[0,2,4],!1,VB),mtos2:TS("mtos2",[0,2,4],!1,VB),mtos3:TS("mtos3",[0,2,4],!1,VB),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:Dr("a0",VB),a1:Dr("a1",VB),a2:Dr("a2",VB),a3:Dr("a3",VB),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:Dr("c0",VB),c1:Dr("c1",VB),c2:Dr("c2",VB),c3:Dr("c3",VB),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:Dr("qmtos",jW),qnc:Dr("qnc",jW),qmv:Dr("qmv",jW),qnv:Dr("qnv",jW), 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:Dr("ss0",VB),ss1:Dr("ss1",VB),ss2:Dr("ss2",VB),ss3:Dr("ss3",VB),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"},p80=Object.assign({},mzO,{avid:$_("audio"),avas:"avas",vs:"vs"}),Lg0={atos:"atos",avt:TS("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(J,K){return function(n){return n[J]===void 0&&K!==void 0?K:n[J]}}("ss",0), t:"t"};cQ.prototype.getValue=function(){return this.Z}; cQ.prototype.update=function(J,K){J>=32||(this.G&1<=.5;AQ(K.volume)&&(this.U=this.U!=-1?Math.min(this.U,K.volume):K.volume,this.N=Math.max(this.N,K.volume));x&&(this.cW+=J,this.K+=l?J:0);this.G.update(K.BB,n.BB,K.G,J,X,l);this.X.update(!0,J);this.C.update(l,J);this.GA.update(n.fullscreen,J);this.Dm.update(l&&!x,J);J=Math.floor(K.mediaTime/1E3);this.PW.update(J,K.isVisible());this.wQ.update(J,K.BB>=1);this.gQ.update(J, Ls(K))}};nJ7.prototype.Z=function(J){this.X||(this.G(J)?(J=Siq(this.K,this.U,J),this.C|=J,J=J==0):J=!1,this.X=J)};g.e(tZ,nJ7);tZ.prototype.G=function(){return!0}; tZ.prototype.N=function(){return!1}; tZ.prototype.getId=function(){var J=this,K=Aj(Nm,function(n){return n==J.U}); return u0[K].toString()}; tZ.prototype.toString=function(){var J="";this.N()&&(J+="c");this.X&&(J+="s");this.C>0&&(J+=":"+this.C);return this.getId()+J};g.e(yD,tZ);yD.prototype.Z=function(J,K){K=K===void 0?null:K;K!=null&&this.W.push(K);tZ.prototype.Z.call(this,J)};g.e(fs,oJ8);fs.prototype.Z=function(){return null}; fs.prototype.X=function(){return[]};g.e(WQ,xT);g.u=WQ.prototype;g.u.tq=function(){if(this.element){var J=this.element,K=this.Z.G.X;try{try{var n=QSF(J.getBoundingClientRect())}catch(S){n=new P7(0,0,0,0)}var X=n.right-n.left,l=n.bottom-n.top,x=VaF(J,K),V=x.x,v=x.y;var Q=new P7(Math.round(v),Math.round(V+X),Math.round(v+l),Math.round(V))}catch(S){Q=BuF.clone()}this.X=Q;this.G=HBd(this,this.X)}}; g.u.Oj=function(){this.N=this.Z.U.G}; g.u.oy=function(J){var K=$2(this.i_,"od")==1;return cy3(J,this.N,this.element,K)}; g.u.DC=function(){this.timestamp=RQ()}; g.u.ES=function(){this.DC();this.tq();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var J=this.element;var K=new g.DH(J.videoWidth,J.videoHeight);J=this.G;var n=IQ(J),X=J.getHeight(),l=K.width;K=K.height;l<=0||K<=0||n<=0||X<=0||(l/=K,K=n/X,J=J.clone(),l>K?(n/=l,X=(X-n)/2,X>0&&(X=J.top+X,J.top=Math.round(X),J.bottom=Math.round(X+n))):(X*=l,n=Math.round((n-X)/2),n>0&&(n=J.left+n,J.left=Math.round(n),J.right=Math.round(n+X))));this.G=J}this.Oj(); J=this.G;n=this.N;J=J.left<=n.right&&n.left<=J.right&&J.top<=n.bottom&&n.top<=J.bottom?new P7(Math.max(J.top,n.top),Math.min(J.right,n.right),Math.min(J.bottom,n.bottom),Math.max(J.left,n.left)):new P7(0,0,0,0);n=J.top>=J.bottom||J.left>=J.right?new P7(0,0,0,0):J;J=this.Z.U;K=l=X=0;if((this.G.bottom-this.G.top)*(this.G.right-this.G.left)>0)if(this.oy(n))n=new P7(0,0,0,0);else{X=Na().U;K=new P7(0,X.height,X.width,0);var x;X=PQ(n,(x=this.C)!=null?x:this.G);l=PQ(n,Na().G);K=PQ(n,K)}x=n.top>=n.bottom|| n.left>=n.right?new P7(0,0,0,0):B7(n,-this.G.left,-this.G.top);Ks()||(l=X=0);this.K=new pk(J,this.element,this.G,x,X,l,this.timestamp,K)}; g.u.getName=function(){return this.Z.getName()};var Tuz=new P7(0,0,0,0);g.e(a3,WQ);g.u=a3.prototype;g.u.observe=function(){this.U();return!0}; g.u.mq=function(){WQ.prototype.ES.call(this)}; g.u.DC=function(){}; g.u.tq=function(){}; g.u.ES=function(){this.U();WQ.prototype.ES.call(this)}; g.u.lz=function(J){J=J.isActive();J!==this.L&&(J?this.U():(Na().G=new P7(0,0,0,0),this.G=new P7(0,0,0,0),this.N=new P7(0,0,0,0),this.timestamp=-1));this.L=J};var hr={},SDk=(hr.firstquartile=0,hr.midpoint=1,hr.thirdquartile=2,hr.complete=3,hr);g.e(qm,ir);g.u=qm.prototype;g.u.I0=function(){return!0}; g.u.z2=function(){return this.W1==2}; g.u.MN=function(J){return yyF(this,J,Math.max(1E4,this.X/3))}; g.u.WW=function(J,K,n,X,l,x,V){var v=this,Q=this.W(this)||{};g.oi(Q,l);this.X=Q.duration||this.X;this.K=Q.isVpaid||this.K;this.Cv=Q.isYouTube||this.Cv;E8();this.md=!1;l=lvd(this,K);Xi7(this)===1&&(x=l);ir.prototype.WW.call(this,J,K,n,X,Q,x,V);this.pn&&this.pn.X&&g.Yr(this.N,function(S){S.Z(v)})}; g.u.Dw=function(J,K,n){ir.prototype.Dw.call(this,J,K,n);AZ(this).update(J,K,this.x6,n);this.Fq=Ls(this.x6)&&Ls(K);this.MQ==-1&&this.wQ&&(this.MQ=this.UY().X.G);this.Ll.X=0;J=this.lM();K.isVisible()&&g7(this.Ll,"vs");J&&g7(this.Ll,"vw");AQ(K.volume)&&g7(this.Ll,"am");Ls(K)?g7(this.Ll,"a"):g7(this.Ll,"mut");this.MK&&g7(this.Ll,"f");K.Z!=-1&&(g7(this.Ll,"bm"),K.Z==1&&(g7(this.Ll,"b"),Ls(K)&&g7(this.Ll,"umutb")));Ls(K)&&K.isVisible()&&g7(this.Ll,"avs");this.Fq&&J&&g7(this.Ll,"avw");K.BB>0&&g7(this.Ll, "pv");Mm(this,this.UY().X.G,!0)&&g7(this.Ll,"gdr");HQ(this.UY().Z,1)>=2E3&&g7(this.Ll,"pmx");this.md&&g7(this.Ll,"tvoff")}; g.u.oW=function(){return new GS}; g.u.UY=function(){return this.JW}; g.u.q5=function(){return new qvr}; g.u.kq=function(J,K,n,X){J=ir.prototype.kq.call(this,J,K,n,X===void 0?-1:X);J.fullscreen=this.MK;J.paused=this.z2();J.volume=n.volume;AQ(J.volume)||(this.vW++,K=this.x6,AQ(K.volume)&&(J.volume=K.volume));n=n.currentTime;J.mediaTime=n!==void 0&&n>=0?n:-1;return J}; g.u.K_=function(J){return Na(),this.MK?1:ir.prototype.K_.call(this,J)}; g.u.d_=function(){return 1}; g.u.getDuration=function(){return this.X}; g.u.Tz=function(){return this.dT?2:jc7(this)?5:this.lM()?4:3}; g.u.A1=function(){return this.Dm?this.UY().C.X>=2E3?4:3:2}; g.u.nG=function(J){this.CE&&this.CE.nG(J)};var Dzz=g.jV();PwF.prototype.reset=function(){this.G=[];this.Z=[]}; var Xf=FG(PwF);g.e(Vl,ju);g.u=Vl.prototype;g.u.getName=function(){return(this.Z?this.Z:this.G).getName()}; g.u.TY=function(){return(this.Z?this.Z:this.G).TY()}; g.u.y8=function(){return(this.Z?this.Z:this.G).y8()}; g.u.init=function(J){var K=!1;(0,g.Yr)(this.X,function(n){n.initialize()&&(K=!0)}); K&&(this.U=J,X5(this.G,this));return K}; g.u.dispose=function(){(0,g.Yr)(this.X,function(J){J.dispose()}); ju.prototype.dispose.call(this)}; g.u.bL=function(){return Ma(this.X,function(J){return J.hD()})}; g.u.X5=function(){return Ma(this.X,function(J){return J.hD()})}; g.u.C4=function(J,K,n){return new WQ(J,this.G,K,n)}; g.u.mq=function(J){this.Z=J.Z};var d9U={threshold:[0,.3,.5,.75,1]};g.e(hz,WQ);g.u=hz.prototype;g.u.observe=function(){var J=this;this.QG||(this.QG=RQ());if(M5p(298,function(){return kz7(J)}))return!0; this.Z.I$("msf");return!1}; g.u.unobserve=function(){if(this.U&&this.element)try{this.U.unobserve(this.element),this.L?(this.L.unobserve(this.element),this.L=null):this.W&&(this.W.disconnect(),this.W=null)}catch(J){}}; g.u.ES=function(){var J=vR(this);J.length>0&&Ql(this,J);WQ.prototype.ES.call(this)}; g.u.tq=function(){}; g.u.oy=function(){return!1}; g.u.Oj=function(){}; g.u.TY=function(){var J={};return Object.assign(this.Z.TY(),(J.niot_obs=this.QG,J.niot_cbk=this.GA,J))}; g.u.getName=function(){return"nio"};g.e($N,ju);$N.prototype.getName=function(){return"nio"}; $N.prototype.X5=function(){return!Na().Z&&this.G.G.X.IntersectionObserver!=null}; $N.prototype.C4=function(J,K,n){return new hz(J,this.G,K,n)};g.e(S4,o3);S4.prototype.RV=function(){return Na().G}; S4.prototype.hD=function(){var J=cMe();this.L!==J&&(this.G!=this&&J>this.G.L&&(this.G=this,lr(this)),this.L=J);return J==2};rB.prototype.sample=function(){OE(this,l0(),!1)}; rB.prototype.U=function(){var J=Ks(),K=RQ();J?(eU||(zW=K,g.Yr(Xf.G,function(n){var X=n.UY();X.kF=Uf(X,K,n.W1!=1)})),eU=!0):(this.W=yMk(this,K),eU=!1,rMe=K,g.Yr(Xf.G,function(n){n.o1&&(n.UY().L=K)})); OE(this,l0(),!J)}; var sE=FG(rB);var fv7=null,tz="",UE=!1;var FFp=av3().sL,R$=av3().Ig;var bvV={Jux:"visible",ZAq:"audible",KHd:"time",vlQ:"timetype"},AMF={visible:function(J){return/^(100|[0-9]{1,2})$/.test(J)}, audible:function(J){return J=="0"||J=="1"}, timetype:function(J){return J=="mtos"||J=="tos"}, time:function(J){return/^(100|[0-9]{1,2})%$/.test(J)||/^([0-9])+ms$/.test(J)}}; EJf.prototype.setTime=function(J,K,n){K=="ms"?(this.X=J,this.U=-1):(this.X=-1,this.U=J);this.C=n===void 0?"tos":n;return this};g.e(wB,tZ);wB.prototype.getId=function(){return this.W}; wB.prototype.N=function(){return!0}; wB.prototype.G=function(J){var K=J.UY(),n=J.getDuration();return Ma(this.L,function(X){if(X.G!=void 0)var l=N9r(X,K);else b:{switch(X.C){case "mtos":l=X.Z?K.C.X:K.X.G;break b;case "tos":l=X.Z?K.C.G:K.X.G;break b}l=0}l==0?X=!1:(X=X.X!=-1?X.X:n!==void 0&&n>0?X.U*n:-1,X=X!=-1&&l>=X);return X})};g.e(PR,M7U);PR.prototype.G=function(J){var K=new Ay3;K.G=kT(J,mzO);K.Z=kT(J,Lg0);return K};g.e(I$,tZ);I$.prototype.G=function(J){return jc7(J)};g.e(i0,oJ8);g.e(BR,tZ);BR.prototype.G=function(J){return J.UY().lM()};g.e(mt,yD);mt.prototype.G=function(J){var K=g.O0(this.W,$2(xp().i_,"ovms"));return!J.dT&&(J.W1!=0||K)};g.e(p9,i0);p9.prototype.Z=function(){return new mt(this.G)}; p9.prototype.X=function(){return[new BR("viewable_impression",this.G),new I$(this.G)]};g.e(L9,a3);L9.prototype.U=function(){var J=g.bF("ima.admob.getViewability"),K=$2(this.i_,"queryid");typeof J==="function"&&K&&J(K)}; L9.prototype.getName=function(){return"gsv"};g.e(Tf,ju);Tf.prototype.getName=function(){return"gsv"}; Tf.prototype.X5=function(){var J=Na();xp();return J.Z&&!1}; Tf.prototype.C4=function(J,K,n){return new L9(this.G,K,n)};g.e(DG,a3);DG.prototype.U=function(){var J=this,K=g.bF("ima.bridge.getNativeViewability"),n=$2(this.i_,"queryid");typeof K==="function"&&n&&K(n,function(X){g.Mz(X)&&J.W++;var l=X.opt_nativeViewVisibleBounds||{},x=X.opt_nativeViewHidden;J.G=$YV(X.opt_nativeViewBounds||{});var V=J.Z.U;V.G=x?Tuz.clone():$YV(l);J.timestamp=X.opt_nativeTime||-1;Na().G=V.G;X=X.opt_nativeVolume;X!==void 0&&(V.volume=X)})}; DG.prototype.getName=function(){return"nis"};g.e(dB,ju);dB.prototype.getName=function(){return"nis"}; dB.prototype.X5=function(){var J=Na();xp();return J.Z&&!1}; dB.prototype.C4=function(J,K,n){return new DG(this.G,K,n)};g.e(kN,o3);g.u=kN.prototype;g.u.hD=function(){return this.Z.vQ!=null}; g.u.uo=function(){var J={};this.PW&&(J.mraid=this.PW);this.Aj&&(J.mlc=1);J.mtop=this.Z.hf4;this.W&&(J.mse=this.W);this.j_&&(J.msc=1);J.mcp=this.Z.compatibility;return J}; g.u.F8=function(J){var K=g.c3.apply(1,arguments);try{return this.Z.vQ[J].apply(this.Z.vQ,K)}catch(n){H7(538,n,.01,function(X){X.method=J})}}; g.u.initialize=function(){var J=this;if(this.isInitialized)return!this.Ug();this.isInitialized=!0;if(this.Z.compatibility===2)return this.W="ng",this.I$("w"),!1;if(this.Z.compatibility===1)return this.W="mm",this.I$("w"),!1;Na().L=!0;this.X.document.readyState&&this.X.document.readyState=="complete"?op8(this):zS(this.X,"load",function(){E8().setTimeout(Oi(292,function(){return op8(J)}),100)},292); return!0}; g.u.MF=function(){var J=Na(),K=VUk(this,"getMaxSize");J.G=new P7(0,K.width,K.height,0)}; g.u.qF=function(){Na().U=VUk(this,"getScreenSize")}; g.u.dispose=function(){lLq(this);o3.prototype.dispose.call(this)};var g_q=new function(J,K){this.key=J;this.defaultValue=K===void 0?!1:K;this.valueType="boolean"}("45378663");g.u=cR.prototype;g.u.s1=function(J){BQ(J,!1);m9F(J)}; g.u.ej=function(){}; g.u.d0=function(J,K,n,X){var l=this;J=new qm(Qc,J,n?K:-1,7,this.uv(),this.b6());J.lj=X;Up3(J.i_);QP(J.i_,"queryid",J.lj);J.rH("");WyV(J,function(){return l.s0.apply(l,g.m(g.c3.apply(0,arguments)))},function(){return l.Yx.apply(l,g.m(g.c3.apply(0,arguments)))}); (X=FG(xN).G)&&t7k(J,X);this.X&&(J.nG(this.X),this.X=null);J.Za.rT&&FG(YD3);return J}; g.u.lz=function(J){switch(J.y8()){case 0:if(J=FG(xN).G)J=J.G,g.RH(J.C,this),J.K&&this.I0()&&C_e(J);Gf();break;case 2:C9()}}; g.u.mq=function(){}; g.u.I0=function(){return!1}; g.u.Yx=function(J,K){J.dT=!0;switch(J.d_()){case 1:rQ8(J,K);break;case 2:this.oh(J)}}; g.u.ZU=function(J){var K=J.W(J);K&&(K=K.volume,J.Dm=AQ(K)&&K>0);vJr(J,0);return Jz(J,"start",Ks())}; g.u.Mf=function(J,K,n){OE(sE,[J],!Ks());return this.GQ(J,K,n)}; g.u.GQ=function(J,K,n){return Jz(J,n,Ks())}; g.u.Kb=function(J){return EE(J,"firstquartile",1)}; g.u.lf=function(J){J.wQ=!0;return EE(J,"midpoint",2)}; g.u.X6=function(J){return EE(J,"thirdquartile",3)}; g.u.z6=function(J){var K=EE(J,"complete",4);Ef(J);return K}; g.u.OQ=function(J){J.W1=3;return Jz(J,"error",Ks())}; g.u.iF=function(J,K,n){K=Ks();if(J.z2()&&!K){var X=J.UY(),l=RQ();X.L=l}OE(sE,[J],!K);J.z2()&&(J.W1=1);return Jz(J,n,K)}; g.u.Qi=function(J,K){K=this.Mf(J,K||{},"skip");Ef(J);return K}; g.u.vY=function(J,K){BQ(J,!0);return this.Mf(J,K||{},"fullscreen")}; g.u.Dl=function(J,K){BQ(J,!1);return this.Mf(J,K||{},"exitfullscreen")}; g.u.Qk=function(J,K,n){K=J.UY();var X=RQ();K.kF=Uf(K,X,J.W1!=1);OE(sE,[J],!Ks());J.W1==1&&(J.W1=2);return Jz(J,n,Ks())}; g.u.Gb=function(J){OE(sE,[J],!Ks());return J.Z()}; g.u.sX=function(J){OE(sE,[J],!Ks());this.QS(J);Ef(J);return J.Z()}; g.u.s0=function(){}; g.u.oh=function(){}; g.u.QS=function(){}; g.u.UN=function(){}; g.u.nf=function(){}; g.u.b6=function(){this.G||(this.G=this.nf());return this.G==null?new fs:new p9(this.G)}; g.u.uv=function(){return new PR};g.e(b0,tZ);b0.prototype.G=function(J){return J.A1()==4};g.e(Az,yD);Az.prototype.G=function(J){J=J.A1();return J==3||J==4};g.e(Md,i0);Md.prototype.Z=function(){return new Az(this.G)}; Md.prototype.X=function(){return[new b0(this.G)]};g.e(Nd,M7U);Nd.prototype.G=function(J){J&&(J.e===28&&(J=Object.assign({},J,{avas:3})),J.vs===4||J.vs===5)&&(J=Object.assign({},J,{vs:3}));var K=new Ay3;K.G=kT(J,p80);K.Z=kT(J,Lg0);return K};Hkr.prototype.Z=function(){return g.bF(this.G)};g.e(J$,cR);g.u=J$.prototype;g.u.ej=function(J,K){var n=this,X=FG(xN);if(j4(X))switch(X.G.getName()){case "nis":var l=zgH(this,J,K);break;case "gsv":l=ege(this,J,K);break;case "exc":l=w73(this,J)}l||(K.opt_overlayAdElement?l=void 0:K.opt_adElement&&(l=C53(this,J,K.opt_adElement,K.opt_osdId)));l&&l.d_()==1&&(l.W==g.S5&&(l.W=function(x){return n.UN(x)}),uo3(this,l,K)); return l}; g.u.UN=function(J){J.Z=0;J.cW=0;if(J.U=="h"||J.U=="n"){xp();J.gQ&&(xp(),ZG(this)!="h"&&ZG(this));var K=g.bF("ima.common.getVideoMetadata");if(typeof K==="function")try{var n=K(J.lj)}catch(l){J.Z|=4}else J.Z|=2}else if(J.U=="b")if(K=g.bF("ytads.bulleit.getVideoMetadata"),typeof K==="function")try{n=K(J.lj)}catch(l){J.Z|=4}else J.Z|=2;else if(J.U=="ml")if(K=g.bF("ima.common.getVideoMetadata"),typeof K==="function")try{n=K(J.lj)}catch(l){J.Z|=4}else J.Z|=2;else J.Z|=1;J.Z||(n===void 0?J.Z|=8:n===null? J.Z|=16:g.Mz(n)?J.Z|=32:n.errorCode!=null&&(J.cW=n.errorCode,J.Z|=64));n==null&&(n={});K=n;J.L=0;for(var X in zmu)K[X]==null&&(J.L|=zmu[X]);Ok8(K,"currentTime");Ok8(K,"duration");AQ(n.volume)&&AQ()&&(n.volume*=NaN);return n}; g.u.nf=function(){xp();ZG(this)!="h"&&ZG(this);var J=P5F(this);return J!=null?new Hkr(J):null}; g.u.oh=function(J){!J.G&&J.dT&&f9(this,J,"overlay_unmeasurable_impression")&&(J.G=!0)}; g.u.QS=function(J){J.IS&&(J.lM()?f9(this,J,"overlay_viewable_end_of_session_impression"):f9(this,J,"overlay_unviewable_impression"),J.IS=!1)}; g.u.s0=function(){}; g.u.d0=function(J,K,n,X){if(cpU()){var l=$2(xp().i_,"mm"),x={};(l=(x[jU.bE]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",x[jU.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",x)[l])&&ma8(this,l);this.U==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&H7(1044,Error())}J=cR.prototype.d0.call(this,J,K,n,X);this.C&&(K=this.N,J.C==null&&(J.C=new anp),K.G[J.lj]=J.C,J.C.C=Dzz);return J}; g.u.s1=function(J){J&&J.d_()==1&&this.C&&delete this.N.G[J.lj];return cR.prototype.s1.call(this,J)}; g.u.b6=function(){this.G||(this.G=this.nf());return this.G==null?new fs:this.U==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new Md(this.G):new p9(this.G)}; g.u.uv=function(){return this.U==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new Nd:new PR}; g.u.nG=function(J,K,n,X,l){K=new P7(n,K+X,n+l,K);(J=o$(Xf,J))?J.nG(K):this.X=K}; var dzj=Ck(193,Lnp,void 0,sQf);g.Ed("Goog_AdSense_Lidar_sendVastEvent",dzj);var kOz=Oi(194,function(J,K){K=K===void 0?{}:K;J=B5k(FG(J$),J,K);return p7H(J)}); g.Ed("Goog_AdSense_Lidar_getViewability",kOz);var grH=Ck(195,function(){return PSH()}); g.Ed("Goog_AdSense_Lidar_getUrlSignalsArray",grH);var cjG=Oi(196,function(){return JSON.stringify(PSH())}); g.Ed("Goog_AdSense_Lidar_getUrlSignalsList",cjG);var daU=S8(["//ep2.adtrafficquality.google/sodar/",""]),kWe=S8(["//tpc.googlesyndication.com/sodar/",""]);g.e(X7,Error);g.e(jt,g.t);jt.prototype.Lf=function(){return this.wpc.f()}; jt.prototype.xs=function(J){this.wpc.c(J)}; jt.prototype.bC=function(J){return this.wpc.m(GWM(J))}; jt.prototype.x_=function(J){return this.wpc.mws(GWM(J))}; g.e(lh,g.t);lh.prototype.snapshot=function(J){return this.fE.s(Object.assign({},J.b$&&{c:J.b$},J.qE&&{s:J.qE},J.Ul!==void 0&&{p:J.Ul}))}; lh.prototype.Jw=function(J){this.fE.e(J)}; lh.prototype.We=function(){return this.fE.l()};var Wnd;g.e(h$,g.t);h$.prototype.share=function(){if(this.o4())throw Error("E:AD");this.U++;return this}; h$.prototype.dispose=function(){--this.U||g.t.prototype.dispose.call(this)}; Wnd=Symbol.dispose;aLk.prototype.sR=function(J,K){this.G.sR("/client_streamz/bg/frs",J,K)}; Fn3.prototype.sR=function(J,K,n,X,l,x){this.G.sR("/client_streamz/bg/wrl",J,K,n,X,l,x)}; qiF.prototype.W3=function(J,K){this.G.l8("/client_streamz/bg/ec",J,K)}; Epf.prototype.sR=function(J,K,n){this.G.sR("/client_streamz/bg/el",J,K,n)}; bk7.prototype.W3=function(J,K){this.G.l8("/client_streamz/bg/cec",J,K)}; AQ7.prototype.W3=function(J,K){this.G.l8("/client_streamz/bg/po/csc",J,K)}; MUp.prototype.W3=function(J,K){this.G.l8("/client_streamz/bg/po/ctav",J,K)}; N5r.prototype.W3=function(J,K){this.G.l8("/client_streamz/bg/po/cwsc",J,K)};g.e(JZ3,Hi);g.e($u,Hi);var OW=[1,2,3];var Y0V=[0,OW,Onn,QHS,sHS];var GOO=[0,Jr,[0,oru,xzu]];g.e(St,Hi);var Cd=[1,2,3];var UzG=[0,Cd,VVS,lzO,n_,GOO];g.e(rJ,Hi);var tVm=[0,Jr,Y0V,UzG];var yjF=[0,[1,2,3],n_,[0,Nl,-1,rjF],n_,[0,Nl,-1,hmg,rjF],n_,[0,Nl]];g.e(sW,Hi);sW.prototype.V8=function(){var J=Pe(this,3,Eb,3,!0);RS(J);return J[void 0]};sW.prototype.Z=TP8([0,Nl,yjF,CGO,Jr,tVm,$zr,S00]);g.e(nTd,Hi);g.u=Hc.prototype;g.u.isEnabled=function(){if(!g.qp.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{QH:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.u.set=function(J,K,n){var X=!1;if(typeof n==="object"){var l=n.edd;X=n.secure||!1;var x=n.domain||void 0;var V=n.path||void 0;var v=n.QH}if(/[;=\s]/.test(J))throw Error('Invalid cookie name "'+J+'"');if(/[;\r\n]/.test(K))throw Error('Invalid cookie value "'+K+'"');v===void 0&&(v=-1);n=x?";domain="+x:"";V=V?";path="+V:"";X=X?";secure":"";v=v<0?"":v==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+v*1E3)).toUTCString();this.G.cookie=J+"="+K+n+V+v+X+(l!=null?";samesite="+ l:"")}; g.u.get=function(J,K){for(var n=J+"=",X=(this.G.cookie||"").split(";"),l=0,x;l=0;K--)this.remove(J[K])}; var gN=new Hc(typeof document=="undefined"?null:document);uh.prototype.compress=function(J){var K,n,X,l;return g.G(function(x){switch(x.Z){case 1:return K=new CompressionStream("gzip"),n=(new Response(K.readable)).arrayBuffer(),X=K.writable.getWriter(),g.d(x,X.write((new TextEncoder).encode(J)),2);case 2:return g.d(x,X.close(),3);case 3:return l=Uint8Array,g.d(x,n,4);case 4:return x.return(new l(x.G))}})}; uh.prototype.isSupported=function(J){return J<1024?!1:typeof CompressionStream!=="undefined"};g.e(et,Hi);zF.prototype.setInterval=function(J){this.intervalMs=J;this.R9&&this.enabled?(this.stop(),this.start()):this.R9&&this.stop()}; zF.prototype.start=function(){var J=this;this.enabled=!0;this.R9||(this.R9=setTimeout(function(){J.tick()},this.intervalMs),this.Z=this.G())}; zF.prototype.stop=function(){this.enabled=!1;this.R9&&(clearTimeout(this.R9),this.R9=void 0)}; zF.prototype.tick=function(){var J=this;if(this.enabled){var K=Math.max(this.G()-this.Z,0);K0?n:void 0));n=Ry(n,4,YX(l>0?l:void 0));n=Ry(n,5,YX(x>0?x:void 0));l=n.lR;x=l[r$]|0;n=Hd(n,x)?n:new n.constructor($M(l,x,!0));Uv(V,Is,10,n)}V=this.G.clone();n=Date.now().toString();V=Ry(V,4,Wd(n));J=ty(V,dJ,3,J.slice());X&&(V=new wJ,X=Ry(V,13,YX(X)),V=new Pc,X=Uv(V,wJ,2,X), V=new DM,X=Uv(V,Pc,1,X),X=Nr(X,2,9),Uv(J,DM,18,X));K&&b_(J,14,K);return J};g.Yu.prototype.Z=0;g.Yu.prototype.reset=function(){this.G=this.X=this.U;this.Z=0}; g.Yu.prototype.getValue=function(){return this.X};g.e(Kk,Hi);var Znz=oQ(Kk);g.e(pH3,Hi);var vn;vn=new LQH;g.e(yZ,g.t);g.u=yZ.prototype;g.u.Xq=function(){t$(this);this.Z.stop();this.PW.stop();g.t.prototype.Xq.call(this)}; g.u.dispatch=function(J){if(J instanceof dJ)this.log(J);else try{var K=new dJ,n=J.Q2();var X=Ay(K,8,n);this.log(X)}catch(l){ZM(this,4,1)}}; g.u.log=function(J){ZM(this,2,1);if(this.j_){J=J.clone();var K=this.fv++;J=b_(J,21,K);this.componentId&&Ay(J,26,this.componentId);K=J;var n=Ov(K,1);var X=X===void 0?!1:X;var l=typeof n;X=n==null?n:l==="bigint"?String(yy(64,n)):cd(n)?l==="string"?te(n):X?Zw(n):fK(n):void 0;X==null&&(X=Date.now(),X=Number.isFinite(X)?X.toString():"0",Ry(K,1,Wd(X)));X=Ov(K,15);X!=null&&(typeof X==="bigint"?xM(X)?X=Number(X):(X=yy(64,X),X=xM(X)?Number(X):String(X)):X=cd(X)?typeof X==="number"?fK(X):te(X):void 0);X!=null|| b_(K,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(X=this.experimentIds.clone(),Uv(K,et,16,X));ZM(this,1,1);K=this.G.length-1E3+1;K>0&&(this.G.splice(0,K),this.U+=K,ZM(this,3,K));this.G.push(J);this.qO||this.Z.enabled||this.Z.start()}}; g.u.flush=function(J,K){var n=this;if(this.G.length===0)J&&J();else if(this.MQ&&this.GA)this.X.Z=3,B7M(this);else{var X=Date.now();if(this.kF>X&&this.cW0&&(n.cW=Date.now(),n.kF=n.cW+O);O=VF(Jy);var w;Sa&&O&&((w=H.lR[O])==null?void 0:w[175237375])!=null&&Qy(y7j,3);a:{var P=P===void 0?!1:P;if(VF(ZUu)&&VF(Jy)&&void 0===ZUu){w=H.lR;O=w[Jy];if(!O)break a;if(O=O.yk)try{O(w,175237375,EHS);break a}catch(B){Mu(B)}}P&&(P=H.lR, (w=VF(Jy))&&w in P&&(P=P[w])&&delete P[175237375])}P=vn.G?vn.Z(H,vn.G,175237375,vn.X):vn.Z(H,175237375,null,vn.X);if(P=P===null?void 0:P)P=fB(P,1,-1),P!==-1&&(n.C=new g.Yu(P<1?1:P,3E5,.1),n.Z.setInterval(n.C.getValue()))}}J&&J();n.N=0},r=function(O,H){var R=Ge(x,dJ,3); var w=Number(fHM(x,14));g.GF(n.C);n.Z.setInterval(n.C.getValue());O===401&&V&&(n.Cv=V);w&&(n.U+=w);H===void 0&&(H=n.isRetryable(O));H&&(n.G=R.concat(n.G),n.qO||n.Z.enabled||n.Z.start());ZM(n,7,1);K&&K("net-send-failed",O);++n.N},C=function(){n.network&&n.network.send(Q,S,r)}; v?v.then(function(O){ZM(n,5,l);Q.requestHeaders["Content-Encoding"]="gzip";Q.requestHeaders["Content-Type"]="application/binary";Q.body=O;Q.xK=2;C()},function(){ZM(n,6,l); C()}):C()}}}}; g.u.isRetryable=function(J){return 500<=J&&J<600||J===401||J===0};fd.prototype.send=function(J,K,n){var X=this,l,x,V,v,Q,S,r,C,O,H;return g.G(function(R){switch(R.Z){case 1:return x=(l=X.Tp?new AbortController:void 0)?setTimeout(function(){l.abort()},J.timeoutMillis):void 0,g.e8(R,2,3),V=Object.assign({},{method:J.requestType, headers:Object.assign({},J.requestHeaders)},J.body&&{body:J.body},J.withCredentials&&{credentials:"include"},{signal:J.timeoutMillis&&l?l.signal:null}),g.d(R,fetch(J.url,V),5);case 5:v=R.G;if(v.status!==200){(Q=n)==null||Q(v.status);R.EM(3);break}if((S=K)==null){R.EM(7);break}return g.d(R,v.text(),8);case 8:S(R.G);case 7:case 3:g.LU(R);clearTimeout(x);g.De(R,0);break;case 2:r=g.mk(R);switch((C=r)==null?void 0:C.name){case "AbortError":(O=n)==null||O(408);break;default:(H=n)==null||H(400)}R.EM(3)}})}; fd.prototype.t1=function(){return 4};g.e(Wc,g.t);Wc.prototype.J5=function(){this.C=!0;return this}; Wc.prototype.build=function(){this.network||(this.network=new fd);var J=new yZ({logSource:this.logSource,To:this.To?this.To:SfV,sessionIndex:this.sessionIndex,ldA:this.Bb,Ks:this.U,qO:!1,J5:this.C,Fi:this.Fi,network:this.network});g.Z(this,J);if(this.Z){var K=this.Z,n=cc(J.X);Ay(n,7,K)}J.W=new uh;this.componentId&&(J.componentId=this.componentId);this.vX&&(J.vX=this.vX);this.pageId&&(J.pageId=this.pageId);this.G&&((n=this.G)?(J.experimentIds||(J.experimentIds=new et),K=J.experimentIds,n=n.Q2(),Ay(K, 4,n)):J.experimentIds&&Ry(J.experimentIds,4));this.X&&(J.MQ=J.GA);zk8(J.X);this.network.jX&&this.network.jX(this.logSource);this.network.vOF&&this.network.vOF(J);return J};g.e(as,g.t);as.prototype.flush=function(J){J=J||[];if(J.length){for(var K=new nTd,n=[],X=0;X-1?(K=J[V],n||(K.Pn=!1)):(K=new gTr(K,this.src,x,!!X,l),K.Pn=n,J.push(K));return K}; g.u.remove=function(J,K,n,X){J=J.toString();if(!(J in this.listeners))return!1;var l=this.listeners[J];K=ne(l,K,n,X);return K>-1?(NF(l[K]),g.H8(l,K),l.length==0&&(delete this.listeners[J],this.G--),!0):!1}; g.u.removeAll=function(J){J=J&&J.toString();var K=0,n;for(n in this.listeners)if(!J||n==J){for(var X=this.listeners[n],l=0;l-1?J[l]:null}; g.u.hasListener=function(J,K){var n=J!==void 0,X=n?J.toString():"",l=K!==void 0;return g.fn(this.listeners,function(x){for(var V=0;V>>0);g.v8(g.S9,g.t);g.S9.prototype[dmq]=!0;g.u=g.S9.prototype;g.u.addEventListener=function(J,K,n,X){g.Xx(this,J,K,n,X)}; g.u.removeEventListener=function(J,K,n,X){Zs3(this,J,K,n,X)}; g.u.dispatchEvent=function(J){var K=this.l4;if(K){var n=[];for(var X=1;K;K=K.l4)n.push(K),++X}K=this.yy;X=J.type||J;if(typeof J==="string")J=new g.bh(J,K);else if(J instanceof g.bh)J.target=J.target||K;else{var l=J;J=new g.bh(X,K);g.oi(J,l)}l=!0;var x;if(n)for(x=n.length-1;!J.Z&&x>=0;x--){var V=J.currentTarget=n[x];l=rT(V,X,!0,J)&&l}J.Z||(V=J.currentTarget=K,l=rT(V,X,!0,J)&&l,J.Z||(l=rT(V,X,!1,J)&&l));if(n)for(x=0;!J.Z&&x0){this.Z--;var J=this.G;this.G=J.next;J.next=null}else J=this.X();return J};var OG;Rf.prototype.add=function(J,K){var n=ETV.get();n.set(J,K);this.Z?this.Z.next=n:this.G=n;this.Z=n}; Rf.prototype.remove=function(){var J=null;this.G&&(J=this.G,this.G=this.G.next,this.G||(this.Z=null),J.next=null);return J}; var ETV=new sG(function(){return new ug},function(J){return J.reset()}); ug.prototype.set=function(J,K){this.G=J;this.scope=K;this.next=null}; ug.prototype.reset=function(){this.next=this.scope=this.G=null};var e9,zD=!1,FRp=new Rf;bsU.prototype.reset=function(){this.context=this.Z=this.X=this.G=null;this.U=!1}; var AZ3=new sG(function(){return new bsU},function(J){J.reset()}); g.If.prototype.then=function(J,K,n){return xdq(this,Ce(typeof J==="function"?J:null),Ce(typeof K==="function"?K:null),n)}; g.If.prototype.$goog_Thenable=!0;g.u=g.If.prototype;g.u.finally=function(J){var K=this;J=Ce(J);return new Promise(function(n,X){KtF(K,function(l){J();n(l)},function(l){J(); X(l)})})}; g.u.FO=function(J,K){return xdq(this,null,Ce(J),K)}; g.u.catch=g.If.prototype.FO;g.u.cancel=function(J){if(this.G==0){var K=new gT(J);g.wT(function(){nNH(this,K)},this)}}; g.u.IoA=function(J){this.G=0;PV(this,2,J)}; g.u.FWW=function(J){this.G=0;PV(this,3,J)}; g.u.ou=function(){for(var J;J=oNp(this);)XRk(this,J,this.G,this.W);this.N=!1}; var vNU=Mu;g.v8(gT,QF);gT.prototype.name="cancel";g.v8(g.cV,g.S9);g.u=g.cV.prototype;g.u.enabled=!1;g.u.JH=null;g.u.setInterval=function(J){this.LA=J;this.JH&&this.enabled?(this.stop(),this.start()):this.JH&&this.stop()}; g.u.kcq=function(){if(this.enabled){var J=g.jV()-this.fM;J>0&&J0&&(this.getStatus(),this.N=setTimeout(this.Qz.bind(this), this.GA)),this.getStatus(),this.K=!0,this.G.send(J),this.K=!1}catch(V){this.getStatus(),IGd(this,V)}}; g.u.Qz=function(){typeof Fx!="undefined"&&this.G&&(this.U="Timed out after "+this.GA+"ms, aborting",this.Z=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.u.abort=function(J){this.G&&this.X&&(this.getStatus(),this.X=!1,this.C=!0,this.G.abort(),this.C=!1,this.Z=J||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),af(this))}; g.u.Xq=function(){this.G&&(this.X&&(this.X=!1,this.C=!0,this.G.abort(),this.C=!1),af(this,!0));g.WV.lY.Xq.call(this)}; g.u.hX=function(){this.o4()||(this.Aj||this.K||this.C?i9F(this):this.Wkv())}; g.u.Wkv=function(){i9F(this)}; g.u.isActive=function(){return!!this.G}; g.u.isComplete=function(){return g.q7(this)==4}; g.u.getStatus=function(){try{return g.q7(this)>2?this.G.status:-1}catch(J){return-1}}; g.u.getResponseHeader=function(J){if(this.G&&this.isComplete())return J=this.G.getResponseHeader(J),J===null?void 0:J}; g.u.getLastError=function(){return typeof this.U==="string"?this.U:String(this.U)};N7.prototype.send=function(J,K,n){K=K===void 0?function(){}:K; n=n===void 0?function(){}:n; wRf(J.url,function(X){X=X.target;EG(X)?K(g.bg(X)):n(X.getStatus())},J.requestType,J.body,J.requestHeaders,J.timeoutMillis,J.withCredentials)}; N7.prototype.t1=function(){return 1};KX.prototype.done=function(){this.logger.BX(this.event,J1()-this.startTime)}; g.e(nX,h$);g.e(XN,nX);g.u=XN.prototype;g.u.vx=function(){}; g.u.Ba=function(){}; g.u.BX=function(){}; g.u.Ri=function(){}; g.u.oz=function(){}; g.u.lc=function(J,K,n,X){return X}; g.u.BF=function(){}; g.u.qT=function(){}; g.u.jH=function(){}; g.u.hQ=function(){}; g.e(lJ,nX);g.u=lJ.prototype;g.u.update=function(J){this.logger.dispose();this.logger=J}; g.u.Ba=function(J){this.logger.Ba(J)}; g.u.BX=function(J,K){this.logger.BX(J,K)}; g.u.Ri=function(J){this.logger.Ri(J)}; g.u.oz=function(){this.logger.oz()}; g.u.lc=function(J,K,n,X){return this.logger.lc(J,K,n,X)}; g.u.BF=function(J){this.logger.BF(J)}; g.u.qT=function(J){this.logger.qT(J)}; g.u.jH=function(J){this.logger.jH(J)}; g.u.hQ=function(J){this.logger.hQ(J)}; g.u.vx=function(J){this.logger.vx(J)}; g.e(xQ,g.t);g.e(jg,nX);g.u=jg.prototype;g.u.vx=function(J){this.metrics.xpM.sR(J,this.Y6)}; g.u.Ba=function(J){this.metrics.eventCount.W3(J,this.Y6)}; g.u.BX=function(J,K){this.metrics.Pt.sR(K,J,this.Y6)}; g.u.Ri=function(J){this.metrics.errorCount.W3(J,this.Y6)}; g.u.lc=function(J,K,n,X){function l(v){if(!x.o4()){var Q=J1()-V;x.metrics.xxG.sR(Q,J,n,v,K,x.Y6)}} var x=this,V=J1();X.then(function(){return void l(0)},function(v){return void l(v instanceof tU?v.code:-1)}); return X}; g.u.BF=function(J){this.metrics.uH5.W3(J,this.Y6)}; g.u.qT=function(J){this.metrics.uX.W3(J,this.Y6)}; g.u.jH=function(J){this.metrics.A8_.W3(J,this.Y6)}; g.e(Vj,jg);Vj.prototype.hQ=function(J){var K=this;this.G.dispose();this.Z&&this.service.dispose();this.service=this.options.Xa("49",this.options.eP.concat(J));this.G=new xQ(function(){return void K.service.tI()},this.options.bK); this.metrics=pRU(this.service);this.X=J}; Vj.prototype.oz=function(){TBF(this.G)};g.e(h1,Hi);g.e(v_,Hi);g.e(Qj,Hi);var Wt3=oQ(Qj),ddk=function(J){return uc(function(K){return K instanceof J&&!Hd(K)})}(Qj); Qj.messageId="bfkj";g.e(VZ,Hi);g.e($Q,Hi);var kfd=oQ($Q);g.e(r0,g.t);r0.prototype.snapshot=function(J){if(this.o4())throw Error("Already disposed");this.logger.Ba("n");var K=this.logger.share();return this.X.then(function(n){var X=n.G1;return new Promise(function(l){var x=new KX(K,"n");X(function(V){x.done();K.vx(V.length);K.oz();K.dispose();l(V)},[J.b$, J.qE,J.Zx,J.Ul])})})}; r0.prototype.BZ=function(J){var K=this;if(this.o4())throw Error("Already disposed");this.logger.Ba("n");var n=oU(this.logger,function(){return K.U([J.b$,J.qE,J.Zx,J.Ul])},"n"); this.logger.vx(n.length);this.logger.oz();return n}; r0.prototype.Jw=function(J){this.X.then(function(K){var n;(n=K.ahF)==null||n(J)})}; r0.prototype.We=function(){return this.logger.share()};g.e(OL,Hi);g.e(H_,Hi);RU.prototype.IX=function(J){return ENF(this,J,new XN,0)};g.e(uJ,g.t);uJ.prototype.snapshot=function(J){var K=this;return g.G(function(n){switch(n.Z){case 1:if(K.o4())throw Error("Already disposed");if(K.Z||K.W){n.EM(2);break}return g.d(n,K.C.promise,2);case 2:if(!K.Z){n.EM(4);break}return g.d(n,K.Z.snapshot(J),5);case 5:return n.return(n.G);case 4:throw K.W;}})}; uJ.prototype.Jw=function(J){var K,n;(K=this.Z)==null||(n=K.Jw)==null||n.call(K,J)}; uJ.prototype.handleError=function(J){if(!this.o4()){this.W=J;this.C.resolve();var K,n;(n=(K=this.options).rxF)==null||n.call(K,J)}}; uJ.prototype.We=function(){return this.logger.share()}; var M4k={nO5:432E5,iT:3E5,bT:10,RT:1E4,Ru:3E4,mF:3E4,Gc4:6E4,UU:1E3,bU:6E4,jn:6E5,Bt:.25,qC:2,maxAttempts:10};var azH,js3=(azH=Math.imul)!=null?azH:function(J,K){return J*K|0},P_=[196, 200,224,18];IU.prototype.Q2=function(){return String(this.G)+","+this.Z.join()}; IU.prototype.aH=function(J,K){var n=void 0;if(this.Z[this.G]!==J){var X=this.Z.indexOf(J);X!==-1?(this.Z.splice(X,1),X0;)K[n++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(J%62),J=Math.floor(J/62);return K.join("")}};var u7U;g.e(B_,g.t);B_.prototype.x_=function(J,K){var n=this.bC(J);K==null||K(n);return oU(this.logger,function(){return g.Je(n,2)},this.Z)}; u7U=Symbol.dispose;g.e(LX,B_);LX.prototype.bC=function(J,K){var n=this;this.logger.Ba(this.G);++this.C>=this.N&&this.X.resolve();var X=J();J=oU(this.logger,function(){return n.U(X)},"C"); if(J===void 0)throw new X7(17,"YNJ:Undefined");if(!(J instanceof Uint8Array))throw new X7(18,"ODM:Invalid");K==null||K(J);return J}; g.e(T9,B_);T9.prototype.bC=function(){return this.U}; g.e(DK,B_);DK.prototype.bC=function(){var J=this;return oU(this.logger,function(){return nK(J.U)},"d")}; DK.prototype.x_=function(){return this.U}; g.e(d0,B_);d0.prototype.bC=function(){if(this.U)return this.U;this.U=eU8(this,function(J){return"_"+RU7(J)}); return eU8(this,function(J){return J})}; g.e(g0,B_);g0.prototype.bC=function(){var J=Math.floor(Date.now()/1E3),K=[Math.random()*255,Math.random()*255],n=K.concat([this.U&255,this.clientState],[J>>24&255,J>>16&255,J>>8&255,J&255]);J=new Uint8Array(2+n.length);J[0]=34;J[1]=n.length;J.set(n,2);n=J.subarray(2);for(var X=K=K.length;X150))try{this.cache=new r$F(J,this.logger)}catch(K){this.reportError(new X7(22,"GBJ:init",K))}}; g.u.reportError=function(J){this.logger.Ri(J.code);this.onError(J);return J}; var PhV=function(J){return uc(function(K){if(!Up8(K))return!1;for(var n=g.z(Object.entries(J)),X=n.next();!X.done;X=n.next()){var l=g.z(X.value);X=l.next().value;l=l.next().value;if(!(X in K)){if(l.w$A===!0)continue;return!1}if(!l(K[X]))return!1}return!0})}({fE:function(J){return uc(function(K){return K instanceof J})}(uJ)},"");var XP7=(new Date).getTime();g.e(t1,Hi);var FgO=oQ(t1);dFV.prototype.getMetadata=function(){return this.metadata};yj.prototype.getMetadata=function(){return this.metadata}; yj.prototype.getStatus=function(){return this.status};ZK.prototype.W=function(J,K){K=K===void 0?{}:K;return new dFV(J,this,K)}; ZK.prototype.getName=function(){return this.name};var q0O=new ZK("/google.internal.waa.v1.Waa/Create",OL,t1,function(J){return J.Q2()},FgO);g.e(fX,Hi);var qEF=new ZK("/google.internal.waa.v1.Waa/GenerateIT",H_,fX,function(J){return J.Q2()},oQ(fX));var h4V=new Set(["SAPISIDHASH","APISIDHASH"]);g.e(W_,Hi);W_.prototype.getValue=function(){var J=Ov(this,2);if(Array.isArray(J)||J instanceof Hi)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return i_(this,2)};g.e(aU,Hi);aU.prototype.getMessage=function(){return ay(this,2)}; var UFq=oQ(aU);FN.prototype.uM=function(J,K){J=="data"?this.X.push(K):J=="metadata"?this.C.push(K):J=="status"?this.N.push(K):J=="end"?this.U.push(K):J=="error"&&this.Z.push(K);return this}; FN.prototype.removeListener=function(J,K){J=="data"?MC(this.X,K):J=="metadata"?MC(this.C,K):J=="status"?MC(this.N,K):J=="end"?MC(this.U,K):J=="error"&&MC(this.Z,K);return this}; FN.prototype.cancel=function(){this.G.abort()}; FN.prototype.cancel=FN.prototype.cancel;FN.prototype.removeListener=FN.prototype.removeListener;FN.prototype.on=FN.prototype.uM;g.e(gur,Error);g.v8(g.NC,eLq);g.NC.prototype.G=function(){var J=new JT(this.U,this.X);this.Z&&J.setCredentialsMode(this.Z);return J}; g.NC.prototype.setCredentialsMode=function(J){this.Z=J}; g.v8(JT,g.S9);g.u=JT.prototype;g.u.open=function(J,K){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.GA=J;this.K=K;this.readyState=1;Km(this)}; g.u.send=function(J){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.G=!0;var K={headers:this.L,method:this.GA,credentials:this.C,cache:void 0};J&&(K.body=J);(this.QG||g.qp).fetch(new Request(this.K,K)).then(this.Lb.bind(this),this.s5.bind(this))}; g.u.abort=function(){this.response=this.responseText="";this.L=new Headers;this.status=0;this.X&&this.X.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.G&&this.readyState!=4&&(this.G=!1,nm(this));this.readyState=0}; g.u.Lb=function(J){if(this.G&&(this.U=J,this.Z||(this.status=this.U.status,this.statusText=this.U.statusText,this.Z=J.headers,this.readyState=2,Km(this)),this.G&&(this.readyState=3,Km(this),this.G)))if(this.responseType==="arraybuffer")J.arrayBuffer().then(this.I7.bind(this),this.s5.bind(this));else if(typeof g.qp.ReadableStream!=="undefined"&&"body"in J){this.X=J.body.getReader();if(this.N){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response= []}else this.response=this.responseText="",this.W=new TextDecoder;ttd(this)}else J.text().then(this.Fp.bind(this),this.s5.bind(this))}; g.u.tZ=function(J){if(this.G){if(this.N&&J.value)this.response.push(J.value);else if(!this.N){var K=J.value?J.value:new Uint8Array(0);if(K=this.W.decode(K,{stream:!J.done}))this.response=this.responseText+=K}J.done?nm(this):Km(this);this.readyState==3&&ttd(this)}}; g.u.Fp=function(J){this.G&&(this.response=this.responseText=J,nm(this))}; g.u.I7=function(J){this.G&&(this.response=J,nm(this))}; g.u.s5=function(){this.G&&nm(this)}; g.u.setRequestHeader=function(J,K){this.L.append(J,K)}; g.u.getResponseHeader=function(J){return this.Z?this.Z.get(J.toLowerCase())||"":""}; g.u.getAllResponseHeaders=function(){if(!this.Z)return"";for(var J=[],K=this.Z.entries(),n=K.next();!n.done;)n=n.value,J.push(n[0]+": "+n[1]),n=K.next();return J.join("\r\n")}; g.u.setCredentialsMode=function(J){this.C=J}; Object.defineProperty(JT.prototype,"withCredentials",{get:function(){return this.C==="include"}, set:function(J){this.setCredentialsMode(J?"include":"same-origin")}});g.o0.prototype.toString=function(){var J=[],K=this.C;K&&J.push(vP(K,Erj,!0),":");var n=this.G;if(n||K=="file")J.push("//"),(K=this.L)&&J.push(vP(K,Erj,!0),"@"),J.push(Wrq(g.rs(n))),n=this.X,n!=null&&J.push(":",String(n));if(n=this.Z)this.G&&n.charAt(0)!="/"&&J.push("/"),J.push(vP(n,n.charAt(0)=="/"?bnr:Ajm,!0));(n=this.U.toString())&&J.push("?",n);(n=this.N)&&J.push("#",vP(n,MVS));return J.join("")}; g.o0.prototype.resolve=function(J){var K=this.clone(),n=!!J.C;n?g.Xd(K,J.C):n=!!J.L;n?K.L=J.L:n=!!J.G;n?g.l1(K,J.G):n=J.X!=null;var X=J.Z;if(n)g.xP(K,J.X);else if(n=!!J.Z){if(X.charAt(0)!="/")if(this.G&&!this.Z)X="/"+X;else{var l=K.Z.lastIndexOf("/");l!=-1&&(X=K.Z.slice(0,l+1)+X)}l=X;if(l==".."||l==".")X="";else if(g.Hj(l,"./")||g.Hj(l,"/.")){X=s7(l,"/");l=l.split("/");for(var x=[],V=0;V1||x.length==1&&x[0]!="")&&x.pop(), X&&V==l.length&&x.push("")):(x.push(v),X=!0)}X=x.join("/")}else X=l}n?K.Z=X:n=J.U.toString()!=="";n?jX(K,J.U.clone()):n=!!J.N;n&&(K.N=J.N);return K}; g.o0.prototype.clone=function(){return new g.o0(this)}; var Erj=/[#\/\?@]/g,Ajm=/[#\?:]/g,bnr=/[#\?]/g,Zd3=/[#\?@]/g,MVS=/#/g;g.u=hT.prototype;g.u.add=function(J,K){SX(this);this.X=null;J=r4(this,J);var n=this.G.get(J);n||this.G.set(J,n=[]);n.push(K);this.Z=this.Z+1;return this}; g.u.remove=function(J){SX(this);J=r4(this,J);return this.G.has(J)?(this.X=null,this.Z=this.Z-this.G.get(J).length,this.G.delete(J)):!1}; g.u.clear=function(){this.G=this.X=null;this.Z=0}; g.u.isEmpty=function(){SX(this);return this.Z==0}; g.u.forEach=function(J,K){SX(this);this.G.forEach(function(n,X){n.forEach(function(l){J.call(K,l,X,this)},this)},this)}; g.u.t9=function(){SX(this);for(var J=Array.from(this.G.values()),K=Array.from(this.G.keys()),n=[],X=0;X0?String(J[0]):K}; g.u.toString=function(){if(this.X)return this.X;if(!this.G)return"";for(var J=[],K=Array.from(this.G.keys()),n=0;n>>3;x.X!=1&&x.X!=2&&x.X!=15&&HP(x,V,v,"unexpected tag");x.G=1;x.Z=0;x.U=0} function n(Q){x.U++;x.U==5&&Q&240&&HP(x,V,v,"message length too long");x.Z|=(Q&127)<<(x.U-1)*7;Q&128||(x.G=2,x.L=0,typeof Uint8Array!=="undefined"?x.C=new Uint8Array(x.Z):x.C=Array(x.Z),x.Z==0&&l())} function X(Q){x.C[x.L++]=Q;x.L==x.Z&&l()} function l(){if(x.X<15){var Q={};Q[x.X]=x.C;x.W.push(Q)}x.G=0} for(var x=this,V=J instanceof Array?J:new Uint8Array(J),v=0;v0?J:null};R0.prototype.isInputValid=function(){return this.G===null}; R0.prototype.Zo=function(){return this.G}; R0.prototype.vk=function(){return!1}; R0.prototype.parse=function(J){this.G!==null&&Mte(this,J,"stream already broken");var K=null;try{var n=this.X;n.X||A$p(n,J,"stream already broken");n.G+=J;var X=Math.floor(n.G.length/4);if(X==0)var l=null;else{try{var x=Y7p(n.G.slice(0,X*4))}catch(V){A$p(n,n.G,V.message)}n.Z+=X*4;n.G=n.G.slice(X*4);l=x}K=l===null?null:this.U.parse(l)}catch(V){Mte(this,J,V.message)}this.Z+=J.length;return K};var JKF={INIT:0,RF:1,p_:2,DZ:3,Hu:4,Ce:5,STRING:6,GK:7,ON:8,iN:9,Ej:10,Ml:11,q6:12,bJ:13,Uc:14,j6:15,lN:16,Gh:17,QC:18,rM:19,Q1:20};g.u=eX.prototype;g.u.isInputValid=function(){return this.C!=3}; g.u.Zo=function(){return this.K}; g.u.done=function(){return this.C===2}; g.u.vk=function(){return!1}; g.u.parse=function(J){function K(){for(;O0;)if(R=J[O++], x.L===4?x.L=0:x.L++,!R)break a;if(R==='"'&&!x.W){x.G=X();break}if(R==="\\"&&!x.W&&(x.W=!0,R=J[O++],!R))break;if(x.W)if(x.W=!1,R==="u"&&(x.L=1),R=J[O++])continue;else break;v.lastIndex=O;R=v.exec(J);if(!R){O=J.length+1;break}O=R.index+1;R=J[R.index];if(!R)break}x.X+=O-w;continue;case Q.iN:if(!R)continue;R==="r"?x.G=Q.Ej:z1(x,J,O);continue;case Q.Ej:if(!R)continue;R==="u"?x.G=Q.Ml:z1(x,J,O);continue;case Q.Ml:if(!R)continue;R==="e"?x.G=X():z1(x,J,O);continue;case Q.q6:if(!R)continue;R==="a"?x.G=Q.bJ: z1(x,J,O);continue;case Q.bJ:if(!R)continue;R==="l"?x.G=Q.Uc:z1(x,J,O);continue;case Q.Uc:if(!R)continue;R==="s"?x.G=Q.j6:z1(x,J,O);continue;case Q.j6:if(!R)continue;R==="e"?x.G=X():z1(x,J,O);continue;case Q.lN:if(!R)continue;R==="u"?x.G=Q.Gh:z1(x,J,O);continue;case Q.Gh:if(!R)continue;R==="l"?x.G=Q.QC:z1(x,J,O);continue;case Q.QC:if(!R)continue;R==="l"?x.G=X():z1(x,J,O);continue;case Q.rM:R==="."?x.G=Q.Q1:z1(x,J,O);continue;case Q.Q1:if("0123456789.eE+-".indexOf(R)!==-1)continue;else O--,x.X--,x.G= X();continue;default:z1(x,J,O)}}} function X(){var R=V.pop();return R!=null?R:Q.RF} function l(R){if(!(x.Z>1)){R||(R=C===-1?x.U+J.substring(r,O):J.substring(C,O));if(x.GA)x.N.push(R);else{var w=x.N,P=w.push;R=JSON.parse(R);P.call(w,R)}C=O}} for(var x=this,V=x.QG,v=x.Aj,Q=JKF,S=J.length,r=0,C=-1,O=0;O0?(H=x.N,x.N=[],H):null}return null};w4.prototype.isInputValid=function(){return this.C===null}; w4.prototype.Zo=function(){return this.C}; w4.prototype.vk=function(){return!1}; w4.prototype.parse=function(J){function K(Q){x.Z=6;x.C="The stream is broken @"+x.G+"/"+V+". Error: "+Q+". With input:\n";throw Error(x.C);} function n(){x.X=new eX({NeF:!0,Ox:!0})} function X(Q){if(Q)for(var S=0;S1)&&K("extra status: "+Q);x.N=!0;var S={};S[2]=Q[0];x.U.push(S)}} for(var x=this,V=0;V0?(J=x.U,x.U=[],J):null};PP.prototype.Wr=function(){return this.G}; PP.prototype.getStatus=function(){return this.C}; PP.prototype.GA=function(J){J=J.target;try{if(J==this.G)a:{var K=g.q7(this.G),n=this.G.Z,X=this.G.getStatus(),l=g.bg(this.G);J=[];if(g.AU(this.G)instanceof Array){var x=g.AU(this.G);x.length>0&&x[0]instanceof Uint8Array&&(this.K=!0,J=x)}if(!(K<3||K==3&&!l&&J.length==0))if(X=X==200||X==206,K==4&&(n==8?mv(this,7):n==7?mv(this,8):X||mv(this,3)),this.Z||(this.Z=NJ7(this.G),this.Z==null&&mv(this,5)),this.C>2)pm(this);else{if(J.length>this.X){var V=J.length;n=[];try{if(this.Z.vk())for(var v=0;vthis.X){v=l.slice(this.X);this.X=l.length;try{var S=this.Z.parse(v);S!=null&&this.U&&this.U(S)}catch(r){mv(this,5);pm(this);break a}}K==4?(l.length!= 0||this.K?mv(this,2):mv(this,4),pm(this)):mv(this,1)}}}catch(r){mv(this,6),pm(this)}};g.u=JUf.prototype;g.u.uM=function(J,K){var n=this.Z[J];n||(n=[],this.Z[J]=n);n.push(K);return this}; g.u.addListener=function(J,K){this.uM(J,K);return this}; g.u.removeListener=function(J,K){var n=this.Z[J];n&&g.RH(n,K);(J=this.G[J])&&g.RH(J,K);return this}; g.u.once=function(J,K){var n=this.G[J];n||(n=[],this.G[J]=n);n.push(K);return this}; g.u.Q5Q=function(J){var K=this.Z.data;K&&K03(J,K);(K=this.G.data)&&K03(J,K);this.G.data=[]}; g.u.iE4=function(){switch(this.X.getStatus()){case 1:Lm(this,"readable");break;case 5:case 6:case 4:case 7:case 3:Lm(this,"error");break;case 8:Lm(this,"close");break;case 2:Lm(this,"end")}};n0F.prototype.serverStreaming=function(J,K,n,X){var l=this,x=J.substring(0,J.length-X.name.length);return o07(function(V){var v=V.qY,Q=V.getMetadata(),S=x7U(l,!1);Q=jfd(l,Q,S,x+v.getName());var r=V97(S,v.Z,!0);V=v.G(V.x3);S.send(Q,"POST",V);return r},this.U).call(this,X.W(K,n))};v0e.prototype.create=function(J,K){return Ftq(this.G,this.Z+"/$rpc/google.internal.waa.v1.Waa/Create",J,K||{},q0O)};var Qfe="://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(" "),$7p=/\bocr\b/;var rUF=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;Object.assign({},{attributes:{},handleError:function(J){throw J;}},{LZA:!0, YLG:!0,m1_:mpF,zGW:p3m,OgF:!1,CBd:!1,SLG:!0,FZm:!1});var d4=null,g4=!1,iep=1,G1=Symbol("SIGNAL"),QB={version:0,s8Q:0,H$:!1,rG:void 0,F_:void 0,w_:void 0,sJ:0,JM:void 0,qh:void 0,nR:!1,i6:!1,kind:"unknown",YM:function(){return!1}, mX:function(){}, rj:function(){}, wsj:function(){}};var $a=Symbol("UNSET"),SW=Symbol("COMPUTING"),rj=Symbol("ERRORED");Object.assign({},QB,{value:$a,H$:!0,error:null,R1:Ds,kind:"computed",YM:function(J){return J.value===$a||J.value===SW}, mX:function(J){if(J.value===SW)throw Error("");var K=J.value;J.value=SW;var n=Oep(J),X=!1;try{var l=J.H4();kP(null);X=K!==$a&&K!==rj&&l!==rj&&J.R1(K,l)}catch(x){l=rj,J.error=x}finally{He8(J,n)}X?J.value=K:(J.value=l,J.version++)}});var z4d=Object.assign({},QB,{R1:Ds,value:void 0,kind:"signal"});Object.assign({},QB,{value:$a,H$:!0,error:null,R1:Ds,kind:"linkedSignal",YM:function(J){return J.value===$a||J.value===SW}, mX:function(J){if(J.value===SW)throw Error("");var K=J.value;J.value=SW;var n=Oep(J);try{var X=J.source();var l=J.H4(X,K===$a||K===rj?void 0:{source:J.urG,value:K});J.urG=X}catch(x){l=rj,J.error=x}finally{He8(J,n)}K!==$a&&l!==rj&&J.R1(K,l)?J.value=K:(J.value=l,J.version++)}});Object.assign({},QB,{i6:!0,nR:!1,rj:function(J){J.schedule!==null&&J.schedule(J.HnQ)}, CuM:!1,WZ5:function(){}});g.e(tT,g.S9);tT.prototype.dispose=function(){window.removeEventListener("offline",this.X);window.removeEventListener("online",this.X);this.O2.QI(this.C);delete tT.instance}; tT.prototype.qx=function(){return this.G}; tT.prototype.AB=function(){var J=this;this.C=this.O2.VZ(function(){var K;return g.G(function(n){if(n.Z==1)return J.G?((K=window.navigator)==null?0:K.onLine)?n.EM(3):g.d(n,UX(J),3):g.d(n,UX(J),3);J.AB();g.uF(n)})},3E4)};Zs.prototype.set=function(J,K){K=K===void 0?!0:K;0<=J&&J<52&&Number.isInteger(J)&&this.data[J]!==K&&(this.data[J]=K,this.G=-1)}; Zs.prototype.get=function(J){return!!this.data[J]};var WP;g.v8(g.b1,g.t);g.u=g.b1.prototype;g.u.start=function(){this.stop();this.U=!1;var J=L07(this),K=TT3(this);J&&!K&&this.Z.mozRequestAnimationFrame?(this.G=g.Xx(this.Z,"MozBeforePaint",this.X),this.Z.mozRequestAnimationFrame(null),this.U=!0):this.G=J&&K?J.call(this.Z,this.X):this.Z.setTimeout(fzr(this.X),20)}; g.u.stop=function(){if(this.isActive()){var J=L07(this),K=TT3(this);J&&!K&&this.Z.mozRequestAnimationFrame?VH(this.G):J&&K?K.call(this.Z,this.G):this.Z.clearTimeout(this.G)}this.G=null}; g.u.isActive=function(){return this.G!=null}; g.u.pF=function(){this.U&&this.G&&VH(this.G);this.G=null;this.N.call(this.C,g.jV())}; g.u.Xq=function(){this.stop();g.b1.lY.Xq.call(this)};g.v8(g.AT,g.t);g.u=g.AT.prototype;g.u.AD=0;g.u.Xq=function(){g.AT.lY.Xq.call(this);this.stop();delete this.G;delete this.Z}; g.u.start=function(J){this.stop();this.AD=g.Y0(this.X,J!==void 0?J:this.LA)}; g.u.stop=function(){this.isActive()&&g.qp.clearTimeout(this.AD);this.AD=0}; g.u.isActive=function(){return this.AD!=0}; g.u.BA=function(){this.AD=0;this.G&&this.G.call(this.Z)};g.e(g.Kj,g.t);g.u=g.Kj.prototype;g.u.Hk=function(J){this.X=arguments;this.JH||this.Z?this.G=!0:nj(this)}; g.u.stop=function(){this.JH&&(g.qp.clearTimeout(this.JH),this.JH=null,this.G=!1,this.X=null)}; g.u.pause=function(){this.Z++}; g.u.resume=function(){this.Z--;this.Z||!this.G||this.JH||(this.G=!1,nj(this))}; g.u.Xq=function(){g.t.prototype.Xq.call(this);this.stop()};g.oa.prototype[Symbol.iterator]=function(){return this}; g.oa.prototype.next=function(){var J=this.G.next();return{value:J.done?void 0:this.Z.call(void 0,J.value),done:J.done}};g.v8(g.$t,g.S9);g.u=g.$t.prototype;g.u.isPlaying=function(){return this.G==1}; g.u.isPaused=function(){return this.G==-1}; g.u.OJ=function(){this.BQ("begin")}; g.u.iM=function(){this.BQ("end")}; g.u.onFinish=function(){this.BQ("finish")}; g.u.onStop=function(){this.BQ("stop")}; g.u.BQ=function(J){this.dispatchEvent(J)};var K7z=rP(function(){var J=g.ME("DIV"),K=g.qE?"-webkit":Yp?"-moz":null,n="transition:opacity 1s linear;";K&&(n+=K+"-transition:opacity 1s linear;");K=Tue({style:n});if(J.nodeType===1&&/^(script|style)$/i.test(J.tagName))throw Error("");J.innerHTML=Jq(K);return g.GW(J.firstChild,"transition")!=""});g.v8(Sv,g.$t);g.u=Sv.prototype;g.u.play=function(){if(this.isPlaying())return!1;this.OJ();this.BQ("play");this.startTime=g.jV();this.G=1;if(K7z())return g.c7(this.Z,this.N),this.X=g.Y0(this.LtM,void 0,this),!0;this.gF(!1);return!1}; g.u.LtM=function(){g.qa(this.Z);kDp(this.Z,this.W);g.c7(this.Z,this.U);this.X=g.Y0((0,g.XS)(this.gF,this,!1),this.C*1E3)}; g.u.stop=function(){this.isPlaying()&&this.gF(!0)}; g.u.gF=function(J){g.c7(this.Z,"transition","");g.qp.clearTimeout(this.X);g.c7(this.Z,this.U);this.endTime=g.jV();this.G=0;if(J)this.onStop();else this.onFinish();this.iM()}; g.u.Xq=function(){this.stop();Sv.lY.Xq.call(this)}; g.u.pause=function(){};var cUM={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};rm("Element","attributes")||rm("Node","attributes");rm("Element","innerHTML")||rm("HTMLElement","innerHTML");rm("Node","nodeName");rm("Node","nodeType");rm("Node","parentNode");rm("Node","childNodes");rm("HTMLElement","style")||rm("Element","style");rm("HTMLStyleElement","sheet");var Zed=GDM("getPropertyValue"),f8r=GDM("setProperty");rm("Element","namespaceURI")||rm("Node","namespaceURI");var yUM={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var qG8,HUj,F0f,a8H,E0q;qG8=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]");HUj=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.n20=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.Cj=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]");F0f=/^http:\/\/.*/;g.o2F=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");a8H=/\s+/;E0q=/[\d\u06f0-\u06f9]/;HM.prototype.py=function(){return new Ra(this.Z())}; HM.prototype[Symbol.iterator]=function(){return new um(this.Z())}; HM.prototype.G=function(){return new um(this.Z())}; g.e(Ra,g.mR);Ra.prototype.next=function(){return this.Z.next()}; Ra.prototype[Symbol.iterator]=function(){return new um(this.Z)}; Ra.prototype.G=function(){return new um(this.Z)}; g.e(um,HM);um.prototype.next=function(){return this.X.next()};za.prototype.clone=function(){return new za(this.G,this.W,this.X,this.C,this.U,this.N,this.Z,this.L)}; za.prototype.equals=function(J){return this.G==J.G&&this.W==J.W&&this.X==J.X&&this.C==J.C&&this.U==J.U&&this.N==J.N&&this.Z==J.Z&&this.L==J.L};PM.prototype.clone=function(){return new PM(this.start,this.end)}; PM.prototype.getLength=function(){return this.end-this.start};(function(){if(eiU){var J=/Windows NT ([0-9.]+)/;return(J=J.exec(g.Ii()))?J[1]:"0"}return J8?(J=/1[0|1][_.][0-9_.]+/,(J=J.exec(g.Ii()))?J[0].replace(/_/g,"."):"10"):g.J_?(J=/Android\s+([^\);]+)(\)|;)/,(J=J.exec(g.Ii()))?J[1]:""):DpO||dpF||kMm?(J=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(J=J.exec(g.Ii()))?J[1].replace(/_/g,"."):""):""})();var AUH=function(){if(g.EV)return Ia(/Firefox\/([0-9.]+)/);if(g.sx||g.qH||g.Bp)return PGF;if(g.T2){if(ws()||PK()){var J=Ia(/CriOS\/([0-9.]+)/);if(J)return J}return Ia(/Chrome\/([0-9.]+)/)}if(g.ut&&!ws())return Ia(/Version\/([0-9.]+)/);if(A2||Me){if(J=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.Ii()))return J[1]+"."+J[2]}else if(g.mY)return(J=Ia(/Android\s+([0-9.]+)/))?J:Ia(/Version\/([0-9.]+)/);return""}();g.v8(g.BM,g.t);g.u=g.BM.prototype;g.u.subscribe=function(J,K,n){var X=this.Z[J];X||(X=this.Z[J]=[]);var l=this.N;this.G[l]=J;this.G[l+1]=K;this.G[l+2]=n;this.N=l+3;X.push(l);return l}; g.u.unsubscribe=function(J,K,n){if(J=this.Z[J]){var X=this.G;if(J=J.find(function(l){return X[l+1]==K&&X[l+2]==n}))return this.SK(J)}return!1}; g.u.SK=function(J){var K=this.G[J];if(K){var n=this.Z[K];this.U!=0?(this.X.push(J),this.G[J+1]=function(){}):(n&&g.RH(n,J),delete this.G[J],delete this.G[J+1],delete this.G[J+2])}return!!K}; g.u.publish=function(J,K){var n=this.Z[J];if(n){var X=Array(arguments.length-1),l=arguments.length,x;for(x=1;x0&&this.U==0)for(;n=this.X.pop();)this.SK(n)}}return x!=0}return!1}; g.u.clear=function(J){if(J){var K=this.Z[J];K&&(K.forEach(this.SK,this),delete this.Z[J])}else this.G.length=0,this.Z={}}; g.u.Xq=function(){g.BM.lY.Xq.call(this);this.clear();this.X.length=0};g.mO.prototype.set=function(J,K){K===void 0?this.G.remove(J):this.G.set(J,g.yH(K))}; g.mO.prototype.get=function(J){try{var K=this.G.get(J)}catch(n){return}if(K!==null)try{return JSON.parse(K)}catch(n){throw"Storage: Invalid value was encountered";}}; g.mO.prototype.remove=function(J){this.G.remove(J)};g.v8(pj,g.mO);pj.prototype.set=function(J,K){pj.lY.set.call(this,J,J13(K))}; pj.prototype.Z=function(J){J=pj.lY.get.call(this,J);if(J===void 0||J instanceof Object)return J;throw"Storage: Invalid value was encountered";}; pj.prototype.get=function(J){if(J=this.Z(J)){if(J=J.data,J===void 0)throw"Storage: Invalid value was encountered";}else J=void 0;return J};g.v8(Lj,pj);Lj.prototype.set=function(J,K,n){if(K=J13(K)){if(n){if(n=n.length)return g.xa;var l=n.key(K++);if(J)return g.ps(l);l=n.getItem(l);if(typeof l!=="string")throw"Storage mechanism: Invalid value was encountered";return g.ps(l)}; return X}; g.u.clear=function(){kt(this);this.G.clear()}; g.u.key=function(J){kt(this);return this.G.key(J)};g.v8(gm,dm);g.v8(X_k,dm);g.v8(cM,DI);cM.prototype.set=function(J,K){this.Z.set(this.G+J,K)}; cM.prototype.get=function(J){return this.Z.get(this.G+J)}; cM.prototype.remove=function(J){this.Z.remove(this.G+J)}; cM.prototype.py=function(J){var K=this.Z[Symbol.iterator](),n=this,X=new g.mR;X.next=function(){var l=K.next();if(l.done)return l;for(l=l.value;l.slice(0,n.G.length)!=n.G;){l=K.next();if(l.done)return l;l=l.value}return g.ps(J?l.slice(n.G.length):n.Z.get(l))}; return X};Ga.prototype.getValue=function(){return this.Z}; Ga.prototype.clone=function(){return new Ga(this.G,this.Z)};g.u=Ux.prototype;g.u.aH=function(J,K){var n=this.G;n.push(new Ga(J,K));J=n.length-1;K=this.G;for(n=K[J];J>0;){var X=J-1>>1;if(K[X].G>n.G)K[J]=K[X],J=X;else break}K[J]=n}; g.u.remove=function(){var J=this.G,K=J.length,n=J[0];if(!(K<=0)){if(K==1)J.length=0;else{J[0]=J.pop();J=0;K=this.G;for(var X=K.length,l=K[J];J>1;){var x=J*2+1,V=J*2+2;x=Vl.G)break;K[J]=K[x];J=x}K[J]=l}return n.getValue()}}; g.u.U6=function(){for(var J=this.G,K=[],n=J.length,X=0;X>>16&65535|0;for(var x;n!==0;){x=n>2E3?2E3:n;n-=x;do l=l+K[X++]|0,J=J+l|0;while(--x);l%=65521;J%=65521}return l|J<<16|0};for(var C5={},s5,VhV=[],C_=0;C_<256;C_++){s5=C_;for(var hSz=0;hSz<8;hSz++)s5=s5&1?3988292384^s5>>>1:s5>>>1;VhV[C_]=s5}C5=function(J,K,n,X){n=X+n;for(J^=-1;X>>8^VhV[(J^K[X])&255];return J^-1};var lk={};lk={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 My=[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],K5=[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],p_3=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],HXH=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],hc=Array(576);fj(hc);var vU=Array(60);fj(vU);var Jc=Array(512);fj(Jc);var Av=Array(256);fj(Av);var Ny=Array(29);fj(Ny);var n5=Array(30);fj(n5);var iXk,B0V,mCp,IKH=!1;var ej;ej=[new uk(0,0,0,0,function(J,K){var n=65535;for(n>J.Wq-5&&(n=J.Wq-5);;){if(J.yw<=1){Ot(J);if(J.yw===0&&K===0)return 1;if(J.yw===0)break}J.uR+=J.yw;J.yw=0;var X=J.r3+n;if(J.uR===0||J.uR>=X)if(J.yw=J.uR-X,J.uR=X,Q2(J,!1),J.JB.gE===0)return 1;if(J.uR-J.r3>=J.xT-262&&(Q2(J,!1),J.JB.gE===0))return 1}J.aH=0;if(K===4)return Q2(J,!0),J.JB.gE===0?3:4;J.uR>J.r3&&Q2(J,!1);return 1}), new uk(4,4,8,4,HU),new uk(4,5,16,8,HU),new uk(4,6,32,32,HU),new uk(4,4,16,16,R2),new uk(8,16,32,32,R2),new uk(8,16,128,128,R2),new uk(8,32,128,256,R2),new uk(32,128,258,1024,R2),new uk(32,258,258,4096,R2)];var PJf={};PJf=function(){this.input=null;this.JU=this.EY=this.VV=0;this.output=null;this.fP=this.gE=this.G_=0;this.msg="";this.state=null;this.bv=2;this.hB=0};var L_p=Object.prototype.toString; zq.prototype.push=function(J,K){var n=this.JB,X=this.options.chunkSize;if(this.ended)return!1;var l=K===~~K?K:K===!0?4:0;typeof J==="string"?n.input=jU8(J):L_p.call(J)==="[object ArrayBuffer]"?n.input=new Uint8Array(J):n.input=J;n.VV=0;n.EY=n.input.length;do{n.gE===0&&(n.output=new ZI.Vd(X),n.G_=0,n.gE=X);J=w_f(n,l);if(J!==1&&J!==0)return this.iM(J),this.ended=!0,!1;if(n.gE===0||n.EY===0&&(l===4||l===2))if(this.options.to==="string"){var x=ZI.ME(n.output,n.G_);K=x;x=x.length;if(x<65537&&(K.subarray&& jiV||!K.subarray))K=String.fromCharCode.apply(null,ZI.ME(K,x));else{for(var V="",v=0;v0||n.gE===0)&&J!==1);if(l===4)return(n=this.JB)&&n.state?(X=n.state.status,X!==42&&X!==69&&X!==73&&X!==91&&X!==103&&X!==113&&X!==666?J=xx(n,-2):(n.state=null,J=X===113?xx(n,-3):0)):J=-2,this.iM(J),this.ended=!0,J===0;l===2&&(this.iM(0),n.gE=0);return!0}; zq.prototype.iM=function(J){J===0&&(this.result=this.options.to==="string"?this.chunks.join(""):ZI.mz(this.chunks));this.chunks=[];this.err=J;this.msg=this.JB.msg};var PU="@@redux/INIT"+wW(),c1r="@@redux/REPLACE"+wW();var YLV=typeof Symbol==="function"&&Symbol.observable||"@@observable";var v2H=[0,Hnu,-3,oG];g.e(y1q,Hi);var IaH=function(){var J=[0,uSn,RmF,Nl,Hnu,Nl,-1,oG,Hnu,oG,-1,uSn,oG,RmF,Jr,v2H,Nl,-1,oG];return function(K,n){var X={l0:!0};n&&Object.assign(X,n);K=MOp(K,void 0,void 0,X);try{var l=new y1q,x=l.lR;UD(J)(x,K);var V=l}finally{K.free()}return V}}();var ZXq=-1241866907;var K28=new g.BU("adInfoDialogEndpoint");var mqH=new g.BU("adPingingEndpoint");var b1M=new g.BU("crossDeviceProgressCommand");var op=new g.BU("actionCompanionAdRenderer");var x6=new g.BU("adActionInterstitialRenderer");var Qir=new g.BU("adDurationRemainingRenderer");var c$=new g.BU("adHoverTextButtonRenderer");var N2k=new g.BU("adInfoDialogRenderer");var R8=new g.BU("adMessageRenderer");var Yh=new g.BU("adPreviewRenderer");var lR=new g.BU("adsEngagementPanelRenderer");var zWe=new g.BU("dismissablePanelTextPortraitImageRenderer");var uEd=new g.BU("adsEngagementPanelSectionListViewModel");var $Xz=new g.BU("flyoutCtaRenderer");var XZ=new g.BU("imageCompanionAdRenderer");var Xs=new g.BU("instreamAdPlayerOverlayRenderer");var Yhp=new g.BU("instreamSurveyAdBackgroundImageRenderer");var gp=new g.BU("instreamSurveyAdPlayerOverlayRenderer");var Cy=new g.BU("instreamSurveyAdRenderer"),kh=new g.BU("instreamSurveyAdSingleSelectQuestionRenderer"),dp=new g.BU("instreamSurveyAdMultiSelectQuestionRenderer"),O5=new g.BU("instreamSurveyAdAnswerRenderer"),S7F=new g.BU("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var rp=new g.BU("instreamVideoAdRenderer");var rKu=new g.BU("textOverlayAdContentRenderer"),siu=new g.BU("enhancedTextOverlayAdContentRenderer"),CSF=new g.BU("imageOverlayAdContentRenderer");var lx=new g.BU("playerOverlayLayoutRenderer");var j$=new g.BU("videoInterstitialButtonedCenteredLayoutRenderer");var BHq=new g.BU("aboveFeedAdLayoutRenderer");var mVk=new g.BU("belowPlayerAdLayoutRenderer");var i33=new g.BU("inPlayerAdLayoutRenderer");var iR=new g.BU("playerBytesAdLayoutRenderer");var Di=new g.BU("playerBytesSequenceItemAdLayoutRenderer");var Tt=new g.BU("playerUnderlayAdLayoutRenderer");var s$=new g.BU("adIntroRenderer");var $h=new g.BU("playerBytesSequentialLayoutRenderer");var VmU=new g.BU("slidingTextPlayerOverlayRenderer");var O$=new g.BU("surveyTextInterstitialRenderer");var B$=new g.BU("videoAdTrackingRenderer");var Ouu=new g.BU("simpleAdBadgeRenderer");var hd=new g.BU("skipAdRenderer"),HuO=new g.BU("skipButtonRenderer");var yS=new g.BU("adSlotRenderer");var py=new g.BU("squeezebackPlayerSidePanelRenderer");var RSH=new g.BU("timedPieCountdownRenderer");var yv=new g.BU("adAvatarViewModel");var Z6=new g.BU("adBadgeViewModel");var f2=new g.BU("adButtonViewModel");var uFr=new g.BU("adDetailsLineViewModel");var eSF=new g.BU("adDisclosureBannerViewModel");var zSr=new g.BU("adPodIndexViewModel");var wjm=new g.BU("imageBackgroundViewModel");var PSr=new g.BU("adGridCardCollectionViewModel");var IV0=new g.BU("adGridCardTextViewModel");var iuO=new g.BU("adPreviewViewModel");var BIF=new g.BU("playerAdAvatarLockupCardButtonedViewModel");var mXO=new g.BU("skipAdButtonViewModel");var pj8=new g.BU("skipAdViewModel");var L7j=new g.BU("timedPieCountdownViewModel");var TIS=new g.BU("visitAdvertiserLinkViewModel");var xh=new g.BU("bannerImageLayoutViewModel");var j6=new g.BU("topBannerImageTextIconButtonedLayoutViewModel");var VS=new g.BU("adsEngagementPanelLayoutViewModel");var Ly=new g.BU("displayUnderlayTextGridCardsLayoutViewModel");g.wn=new g.BU("browseEndpoint");var DXr=new g.BU("confirmDialogEndpoint");var $4p=new g.BU("commandContext");var uK7=new g.BU("rawColdConfigGroup");var RFf=new g.BU("rawHotConfigGroup");g.Hz=new g.BU("commandExecutorCommand");g.e(W_r,Hi);var un8={BV_:0,TVq:1,Y2d:32,vdA:61,hGM:67,GUm:103,d1F:86,S2A:42,mdM:60,wQQ:62,K5_:73,OQ4:76,QgQ:88,psQ:90,XsQ:99,F5j:98,Zg5:100,Ddd:102,x1_:41,AvG:69,ux4:70,num:71,Pgx:2,oL4:27,ANDROID:3,y8M:54,g7x:14,Dxd:91,sHq:55,IdF:24,FCQ:20,LCM:18,YyQ:21,mxG:104,v7_:30,Gyv:29,Q$F:28,Rod:101,phv:34,KCm:36,SyQ:38,IOS:5,q3W:15,JMF:92,bLd:40,ji_:25,BuG:17,Pk4:19,okF:64,Nu4:66,Ckx:26,R4Q:22,W1j:33,tOW:68,e4M:35,HLM:53,kwM:37,U$_:39,XQx:7,xdq:57,A9d:43,nd5:59,uAv:93,d3G:74,iQF:75,r9d:85,Edj:65,MBM:80,q24:8,ZQv:10, Ud4:58,bQQ:63,c95:72,lgA:23,Euv:11,cvq:13,eJq:12,hoA:16,L5d:56,lGM:31,bI_:77,sPF:84,zo_:87,Fw_:89,IOM:94,ZIW:95};g.e(mH,Hi);mH.prototype.Ye=function(){return ay(this,3)}; mH.prototype.dS=function(){return ay(this,5)}; mH.prototype.Rz=function(J){return Ay(this,5,J)};g.e(p5,Hi);g.e(aK8,Hi);g.e(L5,Hi);g.u=L5.prototype;g.u.getDeviceId=function(){return ay(this,6)}; g.u.sV=function(J){var K=Pe(this,9,GK,3,!0);RS(K,J);return K[J]}; g.u.getPlayerType=function(){return Fe(this,36)}; g.u.setHomeGroupInfo=function(J){return Uv(this,aK8,81,J)}; g.u.clearLocationPlayabilityToken=function(){return Ry(this,89)};g.e(Tq,Hi);Tq.prototype.getValue=function(){return ay(this,kM(this,O07,2))}; var O07=[2,3,4,5,6];g.e(D1,Hi);D1.prototype.setTrackingParams=function(J){return Ry(this,1,AK3(J,!1))};g.e(dW,Hi);g.e(kx,Hi);kx.prototype.sV=function(J){var K=Pe(this,5,Ub,3,!0);RS(K,J);return K[J]};g.e(gW,Hi);gW.prototype.getToken=function(){return Ev(this,2)}; gW.prototype.setToken=function(J){return Ay(this,2,J)};g.e(cU,Hi);cU.prototype.setSafetyMode=function(J){return Nr(this,5,J)};g.e(Yx,Hi);Yx.prototype.UZ=function(J){return Uv(this,L5,1,J)};var U$=new g.BU("thumbnailLandscapePortraitRenderer");g.dXm=new g.BU("changeEngagementPanelVisibilityAction");var iMF=new g.BU("continuationCommand");g.kRg=new g.BU("openPopupAction");g.Hn=new g.BU("webCommandMetadata");var AmU=new g.BU("metadataBadgeRenderer");var IY7=new g.BU("signalServiceEndpoint");var Yo=new g.BU("innertubeCommand");var $oU=new g.BU("loggingDirectives");var Lvf={ETG:"EMBEDDED_PLAYER_MODE_UNKNOWN",nTM:"EMBEDDED_PLAYER_MODE_DEFAULT",ruQ:"EMBEDDED_PLAYER_MODE_PFP",iJ4:"EMBEDDED_PLAYER_MODE_PFL"};var w2H=new g.BU("channelThumbnailEndpoint");var zCd=new g.BU("embeddedPlayerErrorMessageRenderer");var Hz7=new g.BU("embeddedPlayerOverlayVideoDetailsRenderer"),PL3=new g.BU("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),IdH=new g.BU("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var q$H=new g.BU("embedsInfoPanelRenderer");var g2F=new g.BU("feedbackEndpoint");var cKm=new g.BU("callToActionButtonViewModel");var Y7z=new g.BU("interactionLoggingCommandMetadata");var i5q={I$M:"WEB_DISPLAY_MODE_UNKNOWN",f$Q:"WEB_DISPLAY_MODE_BROWSER",gdv:"WEB_DISPLAY_MODE_MINIMAL_UI",sp_:"WEB_DISPLAY_MODE_STANDALONE",y9v:"WEB_DISPLAY_MODE_FULLSCREEN"};g.e(Gq,Hi);Gq.prototype.getPlayerType=function(){return Fe(this,7)}; Gq.prototype.R2=function(){return ay(this,19)}; Gq.prototype.setVideoId=function(J){return Ay(this,19,J)};g.e(Ut,Hi);g.e(tc,Hi);g.e(y2,Hi); var GRH=[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];var UX8=new g.BU("loggingContext");g.e(Z1,Hi);g.e(f5,Hi);f5.prototype.R2=function(){return Ev(this,kM(this,QQ,1))}; f5.prototype.setVideoId=function(J){return Dn(this,1,QQ,qY(J))}; f5.prototype.getPlaylistId=function(){return Ev(this,kM(this,QQ,2))}; var QQ=[1,2];g.e(F_8,Hi);var Jk=new g.BU("changeKeyedMarkersVisibilityCommand");var thm=new g.BU("changeMarkersVisibilityCommand");var NpV=new g.BU("loadMarkersCommand");var yKH=new g.BU("suggestedActionDataViewModel");var Otp=new g.BU("timelyActionViewModel");var Cpf=new g.BU("timelyActionsOverlayViewModel");var i_M=new g.BU("productListItemRenderer");var Zun=new g.BU("shoppingOverlayRenderer");var RC8=new g.BU("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var fVm=new g.BU("adFeedbackEndpoint");var W7V=new g.BU("menuEndpoint");var Dl8=new g.BU("phoneDialerEndpoint");var Lw3=new g.BU("sendSmsEndpoint");var Oz7=new g.BU("copyTextEndpoint");var aVm=new g.BU("shareEndpoint"),F7z=new g.BU("shareEntityEndpoint"),q7O=new g.BU("shareEntityServiceEndpoint"),E2V=new g.BU("webPlayerShareEntityServiceEndpoint");g.Go=new g.BU("urlEndpoint");g.MJ=new g.BU("watchEndpoint");var buF=new g.BU("watchPlaylistEndpoint");g.AKu=new g.BU("offlineOrchestrationActionCommand");var Xvf=new g.BU("compositeVideoOverlayRenderer");var MhH=new g.BU("miniplayerRenderer");var s83=new g.BU("paidContentOverlayRenderer");var NIF=new g.BU("playerMutedAutoplayOverlayRenderer"),Jq8=new g.BU("playerMutedAutoplayEndScreenRenderer");var hoM=new g.BU("unserializedPlayerResponse"),K4j=new g.BU("unserializedPlayerResponse");var nRn=new g.BU("playlistEditEndpoint");var RG;g.Gt=new g.BU("buttonRenderer");RG=new g.BU("toggleButtonRenderer");var RW3=new g.BU("counterfactualRenderer");var oRn=new g.BU("resolveUrlCommandMetadata");var XKr=new g.BU("modifyChannelNotificationPreferenceEndpoint");var BGf=new g.BU("pingingEndpoint");var lHS=new g.BU("unsubscribeEndpoint");g.PD=new g.BU("subscribeButtonRenderer");var xE0=new g.BU("subscribeEndpoint");var ZYr=new g.BU("buttonViewModel");var eWd=new g.BU("qrCodeRenderer");var zrq={OLv:"LIVING_ROOM_APP_MODE_UNSPECIFIED",Y34:"LIVING_ROOM_APP_MODE_MAIN",S3m:"LIVING_ROOM_APP_MODE_KIDS",m$d:"LIVING_ROOM_APP_MODE_MUSIC",z4M:"LIVING_ROOM_APP_MODE_UNPLUGGED",L1A:"LIVING_ROOM_APP_MODE_GAMING"};var Wfk=new g.BU("autoplaySwitchButtonRenderer");var i7,Hid,CR7,plp;i7=new g.BU("decoratedPlayerBarRenderer");Hid=new g.BU("chapteredPlayerBarRenderer");CR7=new g.BU("multiMarkersPlayerBarRenderer");plp=new g.BU("chapterRenderer");g.zIp=new g.BU("markerRenderer");var kTM=new g.BU("decoratedPlayheadRenderer");var Ehf=new g.BU("desktopOverlayConfigRenderer");var wgf=new g.BU("engagementPanelSectionListRenderer");var Ffr=new g.BU("gatedActionsOverlayViewModel");var iiF=new g.BU("heatMarkerRenderer");var IqV=new g.BU("heatmapRenderer");var M68=new g.BU("watchToWatchTransitionRenderer");var uT7=new g.BU("playlistPanelRenderer");var jNF=new g.BU("productUpsellSuggestedActionViewModel");var VOu=new g.BU("suggestedActionTimeRangeTrigger"),hnV=new g.BU("suggestedActionsRenderer"),vR0=new g.BU("suggestedActionRenderer");var BQd=new g.BU("timedMarkerDecorationRenderer");var k2d=new g.BU("cipher");var vhM=new g.BU("playerVars");var QNH=new g.BU("playerVars");var uM=g.qp.window,$En,SQm,Fc=(uM==null?void 0:($En=uM.yt)==null?void 0:$En.config_)||(uM==null?void 0:(SQm=uM.ytcfg)==null?void 0:SQm.data_)||{};g.Ed("yt.config_",Fc);var Ac=[];var oPV=/^[\w.]*$/,N0k={q:!0,search_query:!0},Mgf=String(Ka);var Qa=new function(){var J=window.document;this.G=window;this.Z=J}; g.Ed("yt.ads_.signals_.getAdSignalsString",function(J){return na(Sf(J))});g.jV();var lsU="XMLHttpRequest"in g.qp?function(){return new XMLHttpRequest}:null;var rq8="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.m(rq8);var hzV={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"},ud3="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.m(rq8)),C13=!1,SXd=Ie;g.e(m1,QF);Tr.prototype.then=function(J,K,n){return this.G?this.G.then(J,K,n):this.Z===1&&J?(J=J.call(n,this.X))&&typeof J.then==="function"?J:dN(J):this.Z===2&&K?(J=K.call(n,this.X))&&typeof J.then==="function"?J:DC(J):this}; Tr.prototype.getValue=function(){return this.X}; Tr.prototype.E4=function(){return this.Z==2}; Tr.prototype.$goog_Thenable=!0;var kA=!1;var Fz=A2||Me;var m0f=/^([0-9\.]+):([0-9\.]+)$/;g.e(SI,QF);SI.prototype.name="BiscottiError";g.e($F,QF);$F.prototype.name="BiscottiMissingError";var D03={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},r1=null;var X8H=S8(["data-"]),yTH={};var sN8=0,s1=g.qE?"webkit":Yp?"moz":g.sx?"ms":g.Bp?"o":"",CBg=g.bF("ytDomDomGetNextId")||function(){return++sN8}; g.Ed("ytDomDomGetNextId",CBg);var as3={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};eI.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; eI.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; eI.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var zB=g.qp.ytEventsEventsListeners||{};g.Ed("ytEventsEventsListeners",zB);var EPr=g.qp.ytEventsEventsCounter||{count:0};g.Ed("ytEventsEventsCounter",EPr);var N4q=rP(function(){var J=!1;try{var K=Object.defineProperty({},"passive",{get:function(){J=!0}}); window.addEventListener("test",null,K)}catch(n){}return J}),bmq=rP(function(){var J=!1; try{var K=Object.defineProperty({},"capture",{get:function(){J=!0}}); window.addEventListener("test",null,K)}catch(n){}return J});var eW;eW=window;g.a=eW.ytcsi&&eW.ytcsi.now?eW.ytcsi.now:eW.performance&&eW.performance.timing&&eW.performance.now&&eW.performance.timing.navigationStart?function(){return eW.performance.timing.navigationStart+eW.performance.now()}:function(){return(new Date).getTime()};g.v8(BB,g.t);BB.prototype.K=function(J){J.G===void 0&&FvF(J);var K=J.G;J.Z===void 0&&FvF(J);this.G=new g.Ll(K,J.Z)}; BB.prototype.wJ=function(){return this.G||new g.Ll}; BB.prototype.GA=function(){if(this.G){var J=(0,g.a)();if(this.U!=0){var K=this.N,n=this.G,X=K.x-n.x;K=K.y-n.y;X=Math.sqrt(X*X+K*K)/(J-this.U);this.Z[this.X]=Math.abs((X-this.C)/this.C)>.5?1:0;for(n=K=0;n<4;n++)K+=this.Z[n]||0;K>=3&&this.W();this.C=X}this.U=J;this.N=this.G;this.X=(this.X+1)%4}}; BB.prototype.Xq=function(){g.Re(this.L);g.PB(this.QG)};g.e(mG,g.t);mG.prototype.T=function(J,K,n,X,l){n=g.U(g.NM((0,g.XS)(n,X||this.Gi)));n={target:J,name:K,callback:n};var x;l&&N4q()&&(x={passive:!0});J.addEventListener(K,n.callback,x);this.W.push(n);return n}; mG.prototype.rR=function(J){for(var K=0;K=y.i$)||P.G.version>=A||P.G.objectStoreNames.contains(c)||p.push(c)}Q=p;if(Q.length===0){w.EM(5);break}S=Object.keys(n.options.At); r=v.objectStoreNames();if(n.Cn.options.version+1)throw O.close(),n.X=!1,tv7(n,H);return w.return(O);case 8:throw K(), C instanceof Error&&!g.ef("ytidb_async_stack_killswitch")&&(C.stack=C.stack+"\n"+V.substring(V.indexOf("\n")+1)),ek(C,n.name,"",(R=n.options.version)!=null?R:-1);}})} function K(){n.G===X&&(n.G=void 0)} var n=this;if(!this.X)throw tv7(this);if(this.G)return this.G;var X,l={blocking:function(x){x.close()}, closed:K,CYj:K,upgrade:this.options.upgrade};return this.G=X=J()};var WJ=new ZA("YtIdbMeta",{At:{databases:{i$:1}},upgrade:function(J,K){K(1)&&g.p6(J,"databases",{keyPath:"actualName"})}});var bt,E6=new function(){}(new function(){});new g.Sg;g.e(NH,ZA);NH.prototype.Z=function(J,K,n){n=n===void 0?{}:n;return(this.options.shared?bj3:EtV)(J,K,Object.assign({},n))}; NH.prototype.delete=function(J){J=J===void 0?{}:J;return(this.options.shared?JcM:AvV)(this.name,J)};var IHj={},nxp=g.JE("ytGcfConfig",{At:(IHj.coldConfigStore={i$:1},IHj.hotConfigStore={i$:1},IHj),shared:!1,upgrade:function(J,K){K(1)&&(g.g2(g.p6(J,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.g2(g.p6(J,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.e(nM,g.t);nM.prototype.Xq=function(){for(var J=g.z(this.Z),K=J.next();!K.done;K=J.next()){var n=this.G;K=n.indexOf(K.value);K>=0&&n.splice(K,1)}this.Z.length=0;g.t.prototype.Xq.call(this)};Vn.prototype.Rz=function(J){this.hotHashData=J;g.Ed("yt.gcf.config.hotHashData",this.hotHashData||null)};var ilj=typeof TextEncoder!=="undefined"?new TextEncoder:null,WHk=ilj?function(J){return ilj.encode(J)}:function(J){J=g.Nu(J); for(var K=new Uint8Array(J.length),n=0;n=K?!1:!0}; g.u.rl=function(){var J=this;if(!gg(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.fh.qN("QUEUED",this.I2).then(function(K){K&&!J.xX(K,J.DB)?J.O2.VZ(function(){return g.G(function(n){if(n.Z==1)return K.id===void 0?n.EM(2):g.d(n,J.fh.eq(K.id,J.I2),2);J.rl();g.uF(n)})}):J.b1.qx()&&J.Ap()})};var Gu;var wBF={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135, mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28, nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42, assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225, liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73, visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88, spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153, vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136, mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167, kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387, transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189, ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258, ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221, accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245, musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270, yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296, notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478, tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340, iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361, mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380, mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400, clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420, mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16, mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443, cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468, miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490, shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515, adsSeenClientLogging:517};var mE0={},hqq=g.JE("ServiceWorkerLogsDatabase",{At:(mE0.SWHealthLog={i$:1},mE0),shared:!0,upgrade:function(J,K){K(1)&&g.g2(g.p6(J,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var yn={},see=0;var ZY;WN.prototype.requestComplete=function(J,K){K&&(this.Z=!0);J=this.removeParams(J);this.G.get(J)||this.G.set(J,K)}; WN.prototype.isEndpointCFR=function(J){J=this.removeParams(J);return(J=this.G.get(J))?!1:J===!1&&this.Z?!0:null}; WN.prototype.removeParams=function(J){return J.split("?")[0]}; WN.prototype.removeParams=WN.prototype.removeParams;WN.prototype.isEndpointCFR=WN.prototype.isEndpointCFR;WN.prototype.requestComplete=WN.prototype.requestComplete;WN.getInstance=aW;g.e(FH,g.S9);g.u=FH.prototype;g.u.qx=function(){return this.G.qx()}; g.u.t4=function(J){this.G.G=J}; g.u.o7=function(){var J=window.navigator.onLine;return J===void 0?!0:J}; g.u.xe=function(){this.Z=!0}; g.u.listen=function(J,K){return this.G.listen(J,K)}; g.u.jQ=function(J){J=UX(this.G,J);J.then(function(K){g.ef("use_cfr_monitor")&&aW().requestComplete("generate_204",K)}); return J}; FH.prototype.sendNetworkCheckRequest=FH.prototype.jQ;FH.prototype.listen=FH.prototype.listen;FH.prototype.enableErrorFlushing=FH.prototype.xe;FH.prototype.getWindowStatus=FH.prototype.o7;FH.prototype.networkStatusHint=FH.prototype.t4;FH.prototype.isNetworkAvailable=FH.prototype.qx;FH.getInstance=HaF;g.e(g.qo,g.S9);g.qo.prototype.qx=function(){var J=g.bF("yt.networkStatusManager.instance.isNetworkAvailable");return J?J.bind(this.Z)():!0}; g.qo.prototype.t4=function(J){var K=g.bF("yt.networkStatusManager.instance.networkStatusHint").bind(this.Z);K&&K(J)}; g.qo.prototype.jQ=function(J){var K=this,n;return g.G(function(X){n=g.bF("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(K.Z);return g.ef("skip_network_check_if_cfr")&&aW().isEndpointCFR("generate_204")?X.return(new Promise(function(l){var x;K.t4(((x=window.navigator)==null?void 0:x.onLine)||!0);l(K.qx())})):n?X.return(n(J)):X.return(!0)})};var ES;g.e(bP,cN);bP.prototype.writeThenSend=function(J,K){K||(K={});K=Mo(J,K);g.bu()||(this.G=!1);cN.prototype.writeThenSend.call(this,J,K)}; bP.prototype.sendThenWrite=function(J,K,n){K||(K={});K=Mo(J,K);g.bu()||(this.G=!1);cN.prototype.sendThenWrite.call(this,J,K,n)}; bP.prototype.sendAndWrite=function(J,K){K||(K={});K=Mo(J,K);g.bu()||(this.G=!1);cN.prototype.sendAndWrite.call(this,J,K)}; bP.prototype.awaitInitialization=function(){return this.X.promise};var wak=g.qp.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.Ed("ytNetworklessLoggingInitializationOptions",wak);g.No.prototype.isReady=function(){!this.config_&&RH7()&&(this.config_=g.vN());return!!this.config_};var pKu,nE,XP;pKu=g.qp.ytPubsubPubsubInstance||new g.BM;nE=g.qp.ytPubsubPubsubSubscribedKeys||{};XP=g.qp.ytPubsubPubsubTopicToKeys||{};g.on=g.qp.ytPubsubPubsubIsSynchronous||{};g.BM.prototype.subscribe=g.BM.prototype.subscribe;g.BM.prototype.unsubscribeByKey=g.BM.prototype.SK;g.BM.prototype.publish=g.BM.prototype.publish;g.BM.prototype.clear=g.BM.prototype.clear;g.Ed("ytPubsubPubsubInstance",pKu);g.Ed("ytPubsubPubsubTopicToKeys",XP);g.Ed("ytPubsubPubsubIsSynchronous",g.on); g.Ed("ytPubsubPubsubSubscribedKeys",nE);var paf={};g.e(HC,g.t);HC.prototype.append=function(J){if(!this.Z)throw Error("This does not support the append operation");J=J.xr();this.xr().appendChild(J)}; g.e(Rn,HC);Rn.prototype.xr=function(){return this.G};g.e(uN,g.t);uN.prototype.onTouchStart=function(J){this.W=!0;this.Z=J.touches.length;this.G.isActive()&&(this.G.stop(),this.C=!0);J=J.touches;this.N=DeM(this,J)||J.length!=1;var K=J.item(0);this.N||!K?this.K=this.L=Infinity:(this.L=K.clientX,this.K=K.clientY);for(K=this.X.length=0;K=0)}if(K||J&&Math.pow(J.clientX-this.L,2)+Math.pow(J.clientY-this.K,2)>25)this.U=!0}; uN.prototype.onTouchEnd=function(J){var K=J.changedTouches;K&&this.W&&this.Z==1&&!this.U&&!this.C&&!this.N&&DeM(this,K)&&(this.GA=J,this.G.start());this.Z=J.touches.length;this.Z===0&&(this.U=this.W=!1,this.X.length=0);this.C=!1};var ep=Date.now().toString();var iN={};var D$=Symbol("injectionDeps");mI.prototype.toString=function(){return"InjectionToken("+this.name+")"}; gAp.prototype.resolve=function(J){return J instanceof pE?dV(this,J.key,[],!0):dV(this,J,[])};var k4;var cC=window;var ta=g.ef("web_enable_lifecycle_monitoring")&&Y4()!==0,Za3=g.ef("web_enable_lifecycle_monitoring");UeV.prototype.cancel=function(){for(var J=g.z(this.G),K=J.next();!K.done;K=J.next())K=K.value,K.jobId===void 0||K.FY||this.scheduler.QI(K.jobId),K.FY=!0;this.Z.resolve()};g.u=yR.prototype;g.u.install=function(J){this.plugins.push(J);return this}; g.u.uninstall=function(){var J=this;g.c3.apply(0,arguments).forEach(function(K){K=J.plugins.indexOf(K);K>-1&&J.plugins.splice(K,1)})}; g.u.transition=function(J,K){var n=this;ta&&Yj3(this.state);var X=this.transitions.find(function(x){return Array.isArray(x.from)?x.from.find(function(V){return V===n.state&&x.to===J}):x.from===n.state&&x.to===J}); if(X){this.Z&&(tfp(this.Z),this.Z=void 0);fCd(this,J,K);this.state=J;ta&&G0(this.state);X=X.action.bind(this);var l=this.plugins.filter(function(x){return x[J]}).map(function(x){return x[J]}); X(y2M(this,l),K)}else throw Error("no transition specified from "+this.state+" to "+J);}; g.u.RdA=function(J){var K=g.c3.apply(1,arguments);g.K6();for(var n=g.z(J),X=n.next(),l={};!X.done;l={Og:void 0},X=n.next())l.Og=X.value,$yk(function(x){return function(){fE(x.Og.name);an(function(){return x.Og.callback.apply(x.Og,g.m(K))}); WC(x.Og.name)}}(l))}; g.u.knQ=function(J){var K=g.c3.apply(1,arguments),n,X,l,x;return g.G(function(V){V.Z==1&&(g.K6(),n=g.z(J),X=n.next(),l={});if(V.Z!=3){if(X.done)return V.EM(0);l.nK=X.value;l.nV=void 0;x=function(v){return function(){fE(v.nK.name);var Q=an(function(){return v.nK.callback.apply(v.nK,g.m(K))}); $E(Q)?v.nV=g.ef("web_lifecycle_error_handling_killswitch")?Q.then(function(){WC(v.nK.name)}):Q.then(function(){WC(v.nK.name)},function(S){Gre(S); WC(v.nK.name)}):WC(v.nK.name)}}(l); $yk(x);return l.nV?g.d(V,l.nV,3):V.EM(3)}l={nK:void 0,nV:void 0};X=n.next();return V.EM(2)})}; g.u.tV=function(J){var K=g.c3.apply(1,arguments),n=this,X=J.map(function(l){return{jo:function(){fE(l.name);an(function(){return l.callback.apply(l,g.m(K))}); WC(l.name)}, priority:Z$(n,l)}}); X.length&&(this.Z=new UeV(X))}; g.j8.Object.defineProperties(yR.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var qD;g.e(FP,yR);FP.prototype.C=function(J,K){var n=this;this.G=g.Nt(0,function(){n.currentState==="application_navigating"&&n.transition("none")},5E3); J(K==null?void 0:K.event)}; FP.prototype.N=function(J,K){this.G&&(g.y1.QI(this.G),this.G=null);J(K==null?void 0:K.event)};var RZ=[];g.Ed("yt.logging.transport.getScrapedGelPayloads",function(){return RZ});EH.prototype.storePayload=function(J,K){J=bN(J);this.store[J]?this.store[J].push(K):(this.Z={},this.store[J]=[K]);this.G++;g.ef("more_accurate_gel_parser")&&(K=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(K));return J}; EH.prototype.smartExtractMatchingEntries=function(J){if(!J.keys.length)return[];for(var K=MD(this,J.keys.splice(0,1)[0]),n=[],X=0;X=0){X=!1;break a}}X=!0}X&&(K=Um(K))&&this.r0(K)}}; g.u.zk=function(J){return J}; g.u.onTouchStart=function(J){this.Aj.onTouchStart(J)}; g.u.onTouchMove=function(J){this.Aj.onTouchMove(J)}; g.u.onTouchEnd=function(J){if(this.Aj)this.Aj.onTouchEnd(J)}; g.u.r0=function(J){this.layoutId?this.TA.executeCommand(J,this.layoutId):(J=new g.qt("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.ko(J))}; g.u.createServerVe=function(J,K){this.api.createServerVe(J,this);this.api.setTrackingParams(J,K)}; g.u.logVisibility=function(J,K){this.api.hasVe(J)&&this.api.logVisibility(J,K,this.interactionLoggingClientData)}; g.u.Xq=function(){this.clear(null);this.rR(this.md);for(var J=g.z(this.cW),K=J.next();!K.done;K=J.next())this.rR(K.value);g.ro.prototype.Xq.call(this)};g.e(k7,se); k7.prototype.init=function(J,K,n){se.prototype.init.call(this,J,K,n);this.G=K;if(K.text==null&&K.icon==null)g.gG(Error("ButtonRenderer did not have text or an icon set."));else{switch(K.style||null){case "STYLE_UNKNOWN":J="ytp-ad-button-link";break;default:J=null}J!=null&&g.jv(this.element,J);K.text!=null&&(J=g.Oe(K.text),g.O7(J)||(this.element.setAttribute("aria-label",J),this.X=new g.ro({j:"span",V:"ytp-ad-button-text",hj:J}),g.Z(this,this.X),this.X.qQ(this.element)));K.accessibilityData&&K.accessibilityData.accessibilityData&& K.accessibilityData.accessibilityData.label&&!g.O7(K.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",K.accessibilityData.accessibilityData.label);K.icon!=null&&(K=Dp(K.icon,this.U),K!=null&&(this.Z=new g.ro({j:"span",V:"ytp-ad-button-icon",Y:[K]}),g.Z(this,this.Z)),this.N?nf(this.element,this.Z.element,0):this.Z.qQ(this.element))}}; k7.prototype.clear=function(){this.hide()}; k7.prototype.onClick=function(J){se.prototype.onClick.call(this,J);J=g.z(GpM(this));for(var K=J.next();!K.done;K=J.next())K=K.value,this.layoutId?this.TA.executeCommand(K,this.layoutId):g.ko(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.e(go,g.t);go.prototype.Xq=function(){this.Z&&g.PB(this.Z);this.G.clear();c9=null;g.t.prototype.Xq.call(this)}; go.prototype.register=function(J,K){K&&this.G.set(J,K)}; var c9=null;g.e(Ue,se); Ue.prototype.init=function(J,K,n){se.prototype.init.call(this,J,K,n);J=K.hoverText||null;K=K.button&&g.f(K.button,g.Gt)||null;K==null?g.ko(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new k7(this.api,this.layoutId,this.interactionLoggingClientData,this.TA,void 0,void 0,void 0,void 0,this.X),g.Z(this,this.button),this.button.init(j3("button"),K,this.macros),J&&this.button.element.setAttribute("aria-label",g.Oe(J)),this.button.qQ(this.element),this.K&&!g.xt(this.button.element, "ytp-ad-clickable")&&g.jv(this.button.element,"ytp-ad-clickable"),this.X&&g.jv(this.button.element,"ytp-ad-hover-text-button--clean-player"),J&&(this.Z=new g.ro({j:"div",V:"ytp-ad-hover-text-container"}),this.N&&(K=new g.ro({j:"div",V:"ytp-ad-hover-text-callout"}),K.qQ(this.Z.element),g.Z(this,K)),g.Z(this,this.Z),this.Z.qQ(this.element),K=Y7(J),nf(this.Z.element,K,0)),this.show())}; Ue.prototype.hide=function(){this.button&&this.button.hide();this.Z&&this.Z.hide();se.prototype.hide.call(this)}; Ue.prototype.show=function(){this.button&&this.button.show();se.prototype.show.call(this)};g.e(yk,se); yk.prototype.init=function(J,K,n){se.prototype.init.call(this,J,K,n);n=(J=K.thumbnail)&&ti(J)||"";g.O7(n)?Math.random()<.01&&g.gG(Error("Found AdImage without valid image URL")):(this.G?g.c7(this.element,"backgroundImage","url("+n+")"):FQ(this.element,{src:n}),FQ(this.element,{alt:J&&J.accessibility&&J.accessibility.label||""}),K&&K.adRendererCommands&&K.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; yk.prototype.clear=function(){this.hide()};g.e(Zp,se);g.u=Zp.prototype;g.u.hide=function(){se.prototype.hide.call(this);this.X&&this.X.focus()}; g.u.show=function(){this.X=document.activeElement;se.prototype.show.call(this);this.U.focus()}; g.u.init=function(J,K,n){se.prototype.init.call(this,J,K,n);this.Z=K;K.dialogMessages||K.title!=null?K.confirmLabel==null?g.ko(Error("ConfirmDialogRenderer.confirmLabel was not set.")):K.cancelLabel==null?g.ko(Error("ConfirmDialogRenderer.cancelLabel was not set.")):Z6V(this,K):g.ko(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.u.clear=function(){g.L0(this.G);this.hide()}; g.u.XF=function(){this.hide()}; g.u.s$=function(){var J=this.Z.cancelEndpoint;J&&(this.layoutId?this.TA.executeCommand(J,this.layoutId):g.ko(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.u.xw=function(){var J=this.Z.confirmNavigationEndpoint||this.Z.confirmEndpoint;J&&(this.layoutId?this.TA.executeCommand(J,this.layoutId):g.ko(Error("Missing layoutId for confirm dialog.")));this.hide()};g.e(f7,se);g.u=f7.prototype; g.u.init=function(J,K,n){se.prototype.init.call(this,J,K,n);this.X=K;if(K.defaultText==null&&K.defaultIcon==null)g.ko(Error("ToggleButtonRenderer must have either text or icon set."));else if(K.defaultIcon==null&&K.toggledIcon!=null)g.ko(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(K.style){switch(K.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":J="ytp-ad-toggle-button-default-style";break;default:J=null}J!=null&&g.jv(this.U,J)}J={};K.defaultText? (n=g.Oe(K.defaultText),g.O7(n)||(J.buttonText=n,this.api.S().experiments.sM("a11y_h5_associate_survey_question")||this.G.setAttribute("aria-label",n),this.api.S().experiments.sM("fix_h5_toggle_button_a11y")&&this.Z.setAttribute("aria-label",n))):g.Ei(this.MQ,!1);K.defaultTooltip&&(J.tooltipText=K.defaultTooltip,this.G.hasAttribute("aria-label")||this.Z.setAttribute("aria-label",K.defaultTooltip));K.defaultIcon?(n=Dp(K.defaultIcon),this.updateValue("untoggledIconTemplateSpec",n),K.toggledIcon?(this.QG= !0,n=Dp(K.toggledIcon),this.updateValue("toggledIconTemplateSpec",n)):(g.Ei(this.K,!0),g.Ei(this.N,!1)),g.Ei(this.G,!1)):g.Ei(this.Z,!1);g.Mz(J)||this.update(J);K.isToggled&&(g.jv(this.U,"ytp-ad-toggle-button-toggled"),this.toggleButton(K.isToggled));W9(this);this.T(this.element,"change",this.PA);this.show()}}; g.u.onClick=function(J){this.cW.length>0&&(this.toggleButton(!this.isToggled()),this.PA());se.prototype.onClick.call(this,J)}; g.u.PA=function(){g.Qq(this.U,"ytp-ad-toggle-button-toggled",this.isToggled());for(var J=g.z(fAU(this,this.isToggled())),K=J.next();!K.done;K=J.next())K=K.value,this.layoutId?this.TA.executeCommand(K,this.layoutId):g.ko(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);W9(this)}; g.u.clear=function(){this.hide()}; g.u.toggleButton=function(J){g.Qq(this.U,"ytp-ad-toggle-button-toggled",J);this.G.checked=J;W9(this)}; g.u.isToggled=function(){return this.G.checked};g.e(aR,mG);aR.prototype.N=function(J){if(Array.isArray(J)){J=g.z(J);for(var K=J.next();!K.done;K=J.next())K=K.value,K instanceof WAM&&this.U(K)}};g.e(Fk,se);g.u=Fk.prototype;g.u.init=function(J,K,n){se.prototype.init.call(this,J,K,n);K.reasons?K.confirmLabel==null?g.ko(Error("AdFeedbackRenderer.confirmLabel was not set.")):(K.cancelLabel==null&&g.gG(Error("AdFeedbackRenderer.cancelLabel was not set.")),K.title==null&&g.gG(Error("AdFeedbackRenderer.title was not set.")),Ed7(this,K)):g.ko(Error("AdFeedbackRenderer.reasons were not set."))}; g.u.clear=function(){IV(this.N);IV(this.K);this.U.length=0;this.hide()}; g.u.hide=function(){this.G&&this.G.hide();this.Z&&this.Z.hide();se.prototype.hide.call(this);this.X&&this.X.focus()}; g.u.show=function(){this.G&&this.G.show();this.Z&&this.Z.show();this.X=document.activeElement;se.prototype.show.call(this);this.N.focus()}; g.u.gC=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.u.PhG=function(){this.hide()}; q1.prototype.xr=function(){return this.G.element}; q1.prototype.getCommand=function(){return this.Z}; q1.prototype.isChecked=function(){return this.X.checked};g.e(Ee,Zp);Ee.prototype.XF=function(J){Zp.prototype.XF.call(this,J);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; Ee.prototype.s$=function(J){Zp.prototype.s$.call(this,J);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; Ee.prototype.xw=function(J){Zp.prototype.xw.call(this,J);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.e(bC,se);g.u=bC.prototype; g.u.init=function(J,K,n){se.prototype.init.call(this,J,K,n);this.N=K;if(K.dialogMessage==null&&K.title==null)g.ko(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{K.confirmLabel==null&&g.gG(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(J=K.closeOverlayRenderer&&g.f(K.closeOverlayRenderer,g.Gt)||null)this.G=new k7(this.api,this.layoutId,this.interactionLoggingClientData,this.TA,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.Z(this,this.G),this.G.init(j3("button"),J,this.macros),this.G.qQ(this.element);K.title&&(J=g.Oe(K.title),this.updateValue("title",J));if(K.adReasons)for(J=K.adReasons,n=0;n=this.j_?(this.QG.hide(),this.kF=!0,this.publish("i")):this.X&&this.X.isTemplated()&&(J=Math.max(0,Math.ceil((this.j_-J)/1E3)),J!=this.wQ&&(N1(this.X,{TIME_REMAINING:String(J)}),this.wQ=J)))}};g.e(xD,JC);g.u=xD.prototype; g.u.init=function(J,K,n){JC.prototype.init.call(this,J,K,n);if(K.image&&K.image.thumbnail)if(K.headline)if(K.description)if((J=K.actionButton&&g.f(K.actionButton,g.Gt))&&J.navigationEndpoint){var X=this.api.getVideoData(2);if(X!=null)if(K.image&&K.image.thumbnail){var l=K.image.thumbnail.thumbnails;l!=null&&l.length>0&&g.O7(g.HK(l[0].url))&&(l[0].url=X.profilePicture)}else g.gG(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.X.init(j3("ad-image"),K.image,n);this.N.init(j3("ad-text"), K.headline,n);this.U.init(j3("ad-text"),K.description,n);this.Z.init(j3("button"),J,n);n=EX(this.Z.element);q0(this.Z.element,n+" This link opens in new tab");this.QG=J.navigationEndpoint;this.api.Jh()||this.show();this.api.S().J("enable_larger_flyout_cta_on_desktop")&&(this.rQ("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.rQ("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.rQ("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"), this.rQ("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.rQ("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.rQ("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.Z.element.classList.add("ytp-flyout-cta-action-button-large"),this.Z.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.rQ("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large")); this.api.addEventListener("playerUnderlayVisibilityChange",this.NF.bind(this));this.MQ=K.startMs||0;K1(this)}else g.ko(Error("FlyoutCtaRenderer has no valid action button."));else g.ko(Error("FlyoutCtaRenderer has no description AdText."));else g.ko(Error("FlyoutCtaRenderer has no headline AdText."));else g.gG(Error("FlyoutCtaRenderer has no image."))}; g.u.onClick=function(J){JC.prototype.onClick.call(this,J);this.api.pauseVideo();!g.XG(this.Z.element,J.target)&&this.QG&&(this.layoutId?this.TA.executeCommand(this.QG,this.layoutId):g.ko(Error("Missing layoutId for flyout cta.")))}; g.u.g3=function(){if(this.G){var J=this.G.getProgressState();(J&&J.current||this.j_)&&1E3*J.current>=this.MQ&&(n1(this),g.hv(this.element,"ytp-flyout-cta-inactive"),this.Z.element.removeAttribute("tabIndex"))}}; g.u.e5=function(){this.clear()}; g.u.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.NF.bind(this))}; g.u.show=function(){this.Z&&this.Z.show();JC.prototype.show.call(this)}; g.u.hide=function(){this.Z&&this.Z.hide();JC.prototype.hide.call(this)}; g.u.NF=function(J){J=="hidden"?this.show():this.hide()};g.e(je,se);g.u=je.prototype; g.u.init=function(J,K,n){se.prototype.init.call(this,J,K,n);this.G=K;if(this.G.rectangle)for(J=this.G.likeButton&&g.f(this.G.likeButton,RG),K=this.G.dislikeButton&&g.f(this.G.dislikeButton,RG),this.X.init(j3("toggle-button"),J,n),this.Z.init(j3("toggle-button"),K,n),this.T(this.element,"change",this.Ck),this.U.show(100),this.show(),n=g.z(this.G&&this.G.impressionCommands||[]),J=n.next();!J.done;J=n.next())J=J.value,this.layoutId?this.TA.executeCommand(J,this.layoutId):g.ko(Error("Missing layoutId for instream user sentiment."))}; g.u.clear=function(){this.hide()}; g.u.hide=function(){this.X.hide();this.Z.hide();se.prototype.hide.call(this)}; g.u.show=function(){this.X.show();this.Z.show();se.prototype.show.call(this)}; g.u.Ck=function(){d7F(this.element,"ytp-ad-instream-user-sentiment-selected");this.G.postMessageAction&&this.api.I4("onYtShowToast",this.G.postMessageAction);this.U.hide()}; g.u.onClick=function(J){this.cW.length>0&&this.Ck();se.prototype.onClick.call(this,J)};g.e(VA,g.t);g.u=VA.prototype;g.u.Xq=function(){this.reset();g.t.prototype.Xq.call(this)}; g.u.reset=function(){g.L0(this.U);this.N=!1;this.G&&this.G.stop();this.C.stop();this.X&&(this.X=!1,this.W.play())}; g.u.start=function(){this.reset();this.U.T(this.Z,"mouseover",this.JR,this);this.U.T(this.Z,"mouseout",this.HA,this);this.GA&&(this.U.T(this.Z,"focusin",this.JR,this),this.U.T(this.Z,"focusout",this.HA,this));this.G?this.G.start():(this.N=this.X=!0,g.c7(this.Z,{opacity:this.K}))}; g.u.JR=function(){this.X&&(this.X=!1,this.W.play());this.C.stop();this.G&&this.G.stop()}; g.u.HA=function(){this.N?this.C.start():this.G&&this.G.start()}; g.u.fd=function(){this.X||(this.X=!0,this.L.play(),this.N=!0)};var jWk=[new hC("b.f_",!1,0),new hC("j.s_",!1,2),new hC("r.s_",!1,4),new hC("e.h_",!1,6),new hC("i.s_",!0,8),new hC("s.t_",!1,10),new hC("p.h_",!1,12),new hC("s.i_",!1,14),new hC("f.i_",!1,16),new hC("a.b_",!1,18),new hC("a.o_",!1),new hC("g.o_",!1,22),new hC("p.i_",!1,24),new hC("p.m_",!1),new hC("n.k_",!0,20),new hC("i.f_",!1),new hC("a.s_",!0),new hC("m.c_",!1),new hC("n.h_",!1,26),new hC("o.p_",!1),new hC("m.p_",!0,28),new hC("o.a_",!1),new hC("d.p_",!1)].reduce(function(J,K){J[K.Z]=K;return J}, {});g.e(OC,JC);g.u=OC.prototype; g.u.init=function(J,K,n){JC.prototype.init.call(this,J,K,n);this.QG=K;(this.MQ=h2k(this))&&g.gG(Error("hasAdControlInClickCommands_ is true."));if(!K||g.Mz(K))g.ko(Error("SkipButtonRenderer was not specified or empty."));else if(!K.message||g.Mz(K.message))g.ko(Error("SkipButtonRenderer.message was not specified or empty."));else{J=this.N?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"};K=Dp(J);K==null?g.ko(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+J.iconType+".")): (this.X=new g.ro({j:"button",UM:[this.N?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],Y:[{j:"span",V:this.N?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",Y:[K]}]}),g.Z(this,this.X),this.X.qQ(this.U.element),this.Z=new M1(this.api,this.layoutId,this.interactionLoggingClientData,this.TA,"ytp-ad-skip-button-text"),this.N&&this.Z.element.classList.add("ytp-ad-skip-button-text-centered"),this.Z.init(j3("ad-text"),this.QG.message,n),g.Z(this,this.Z),nf(this.X.element,this.Z.element, 0));var X=X===void 0?null:X;n=this.api.S();!(this.cW.length>0)&&n.Z&&(iq?0:"ontouchstart"in document.documentElement&&(Er7()||e5()))&&(this.rR(this.md),X&&this.rR(X),this.cW=[this.T(this.element,"touchstart",this.onTouchStart,this),this.T(this.element,"touchmove",this.onTouchMove,this),this.T(this.element,"touchend",this.onTouchEnd,this)])}}; g.u.clear=function(){this.j_.reset();this.hide()}; g.u.hide=function(){this.U.hide();this.Z&&this.Z.hide();n1(this);JC.prototype.hide.call(this)}; g.u.onClick=function(J){if(this.X!=null){if(J){var K=J||window.event;K.returnValue=!1;K.preventDefault&&K.preventDefault()}var n;if(lYq(J,{contentCpn:((n=this.api.getVideoData(1))==null?void 0:n.clientPlaybackNonce)||""})===0)this.api.I4("onAbnormalityDetected");else if(JC.prototype.onClick.call(this,J),this.publish("j"),this.api.I4("onAdSkip"),this.kF||!this.MQ)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.u.zk=function(J){if(!this.kF)return this.MQ&&Se("SkipButton click commands not pruned while ALC exist"),J;var K,n=(K=g.f(J,g.Hz))==null?void 0:K.commands;if(!n)return J;J=[];for(K=0;K=this.N&&vb7(this,!0)};g.e(uU,k7);uU.prototype.init=function(J,K,n){k7.prototype.init.call(this,J,K,n);J=!1;K.text!=null&&(J=g.Oe(K.text),J=!g.O7(J));J?K.navigationEndpoint==null?g.gG(Error("No visit advertiser clickthrough provided in renderer,")):K.style!=="STYLE_UNKNOWN"?g.gG(Error("Button style was not a link-style type in renderer,")):this.show():g.gG(Error("No visit advertiser text was present in the renderer."))};g.e(ee,se); ee.prototype.init=function(J,K,n){se.prototype.init.call(this,J,K,n);J=K.text;g.O7(C7(J))?g.gG(Error("SimpleAdBadgeRenderer has invalid or empty text")):(J&&J.text&&(K=J.text,this.X&&!this.Z&&(K=this.api.S(),K=J.text+" "+(K&&K.Z?"\u2022":"\u00b7")),K={text:K,isTemplated:J.isTemplated},J.style&&(K.style=J.style),J.targetId&&(K.targetId=J.targetId),J=new M1(this.api,this.layoutId,this.interactionLoggingClientData,this.TA),J.init(j3("simple-ad-badge"),K,n),J.qQ(this.element),g.Z(this,J)),this.show())}; ee.prototype.clear=function(){this.hide()};g.e(z_,Vk);g.e(wf,g.hi);g.u=wf.prototype;g.u.nm=function(){return this.durationMs}; g.u.stop=function(){this.G&&this.L9.rR(this.G)}; g.u.MH=function(J){this.Z={seekableStart:0,seekableEnd:this.durationMs/1E3,current:J.current};this.publish("h")}; g.u.getProgressState=function(){return this.Z}; g.u.ZH=function(J){g.C1(J,2)&&this.publish("g")};g.e(Pz,g.hi);g.u=Pz.prototype;g.u.nm=function(){return this.durationMs}; g.u.start=function(){this.G||(this.G=!0,this.R9.start())}; g.u.stop=function(){this.G&&(this.G=!1,this.R9.stop())}; g.u.MH=function(){this.pJ+=100;var J=!1;this.pJ>this.durationMs&&(this.pJ=this.durationMs,this.R9.stop(),J=!0);this.Z={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.pJ/1E3};this.publish("h");J&&this.publish("g")}; g.u.getProgressState=function(){return this.Z};g.e(Bz,JC);g.u=Bz.prototype;g.u.init=function(J,K,n){JC.prototype.init.call(this,J,K,n);var X;if(K==null?0:(X=K.templatedCountdown)==null?0:X.templatedAdText){J=K.templatedCountdown.templatedAdText;if(!J.isTemplated){g.gG(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.Z=new M1(this.api,this.layoutId,this.interactionLoggingClientData,this.TA);this.Z.init(j3("ad-text"),J,{});this.Z.qQ(this.element);g.Z(this,this.Z)}this.show()}; g.u.clear=function(){this.hide()}; g.u.hide=function(){n1(this);JC.prototype.hide.call(this)}; g.u.e5=function(){this.hide()}; g.u.g3=function(){if(this.G!=null){var J=this.G.getProgressState();if(J!=null&&J.current!=null&&this.Z){var K=this.G instanceof wf?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:J.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.G instanceof Pz?J.seekableEnd:this.api.getDuration(2,!1);J=J.current;var n,X,l=((n=this.api.getVideoData())==null?0:(X=n.NH)==null?0:X.call(n))?Math.max(K-J,0):K-J;N1(this.Z,{FORMATTED_AD_DURATION_REMAINING:String(g.Iv(l)), TIME_REMAINING:String(Math.ceil(l))})}}}; g.u.show=function(){K1(this);JC.prototype.show.call(this)};g.e(mB,M1);mB.prototype.onClick=function(J){M1.prototype.onClick.call(this,J);this.api.onAdUxClicked(this.componentType)};g.e(L1,se);L1.prototype.init=function(J,K){se.prototype.init.call(this,J,K,{});if(J=K.content){g.lc(this.element,J);var n,X;K=((n=K.interaction)==null?void 0:(X=n.accessibility)==null?void 0:X.label)||J;this.element.setAttribute("aria-label",K)}else g.ko(Error("AdSimpleAttributedString does not have text content"))}; L1.prototype.clear=function(){this.hide()}; L1.prototype.onClick=function(J){se.prototype.onClick.call(this,J)};g.e(T_,se); T_.prototype.init=function(J,K){se.prototype.init.call(this,J,K,{});(J=K.label)&&J.content&&!g.O7(J.content)?(this.adBadgeText.init(j3("ad-simple-attributed-string"),new p1(J)),(K=K.adPodIndex)&&K.content&&!g.O7(K.content)&&(this.G=new L1(this.api,this.layoutId,this.interactionLoggingClientData,this.TA),this.G.qQ(this.element),g.Z(this,this.G),this.G.element.classList.add("ytp-ad-badge__pod-index"),this.G.init(j3("ad-simple-attributed-string"),new p1(K))),this.element.classList.add(this.Z?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.ko(Error("No label is returned in AdBadgeViewModel."))}; T_.prototype.show=function(){this.adBadgeText.show();var J;(J=this.G)==null||J.show();se.prototype.show.call(this)}; T_.prototype.hide=function(){this.adBadgeText.hide();var J;(J=this.G)==null||J.hide();se.prototype.hide.call(this)};g.e(DB,se);DB.prototype.init=function(J,K){se.prototype.init.call(this,J,K,{});(J=K.adPodIndex)&&J.content&&!g.O7(J.content)&&(this.G=new L1(this.api,this.layoutId,this.interactionLoggingClientData,this.TA),this.G.qQ(this.element),g.Z(this,this.G),this.G.init(j3("ad-simple-attributed-string"),new p1(J)),K.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()}; DB.prototype.show=function(){var J;(J=this.G)==null||J.show();se.prototype.show.call(this)}; DB.prototype.hide=function(){var J;(J=this.G)==null||J.hide();se.prototype.hide.call(this)};g.e(df,se); df.prototype.init=function(J,K){se.prototype.init.call(this,J,K,{});if(K!=null&&K.text){var n;if(((n=K.text)==null?0:n.content)&&!g.O7(K.text.content)){this.G=new g.ro({j:"div",V:"ytp-ad-disclosure-banner__text",hj:K.text.content});g.Z(this,this.G);this.G.qQ(this.element);var X,l;J=((X=K.interaction)==null?void 0:(l=X.accessibility)==null?void 0:l.label)||K.text.content;this.element.setAttribute("aria-label",J);var x;if((x=K.interaction)==null?0:x.onTap)this.Z=new g.ro({j:"div",V:"ytp-ad-disclosure-banner__chevron",Y:[g.e3()]}), g.Z(this,this.Z),this.Z.qQ(this.element);this.show()}}else g.ko(Error("No banner text found in AdDisclosureBanner."))}; df.prototype.clear=function(){this.hide()};kD.prototype.getLength=function(){return this.G-this.Z};g.e(cz,g.ro);cz.prototype.MH=function(){var J=this.Z.getProgressState(),K=J.seekableEnd;this.api.getPresentingPlayerType()===2&&(K=this.X?this.X/1E3:J.seekableEnd);J=gf(new kD(J.seekableStart,K),J.current,0);this.progressBar.style.width=J*100+"%"}; cz.prototype.onStateChange=function(){g.cp(this.api.S())||(this.api.getPresentingPlayerType()===2?this.G===-1&&(this.show(),this.G=this.Z.subscribe("h",this.MH,this),this.MH()):this.G!==-1&&(this.hide(),this.Z.SK(this.G),this.G=-1))};g.e(YD,se); YD.prototype.init=function(J,K,n,X){se.prototype.init.call(this,J,K,n);if(K.skipOrPreviewRenderer){if(J=g.f(K.skipOrPreviewRenderer,hd))n=new Rv(this.api,this.layoutId,this.interactionLoggingClientData,this.TA,this.Z,this.K),n.qQ(this.Cv),n.init(j3("skip-button"),J,this.macros),g.Z(this,n);if(J=g.f(K.skipOrPreviewRenderer,hd))var l=J.skipOffsetMilliseconds}K.brandInteractionRenderer&&(J=K.brandInteractionRenderer.brandInteractionRenderer,n=new je(this.api,this.layoutId,this.interactionLoggingClientData,this.TA), n.qQ(this.MQ),n.init(j3("instream-user-sentiment"),J,this.macros),g.Z(this,n));if(J=g.f(K,$Xz))if(J=g.f(J,$Xz))n=new xD(this.api,this.layoutId,this.interactionLoggingClientData,this.TA,this.Z,!!K.showWithoutLinkedMediaLayout),g.Z(this,n),n.qQ(this.N),n.init(j3("flyout-cta"),J,this.macros);X=X&&X.videoAdDurationSeconds;K.adBadgeRenderer&&(n=K.adBadgeRenderer,J=g.f(n,Z6),J!=null?(n=new T_(this.api,this.layoutId,this.interactionLoggingClientData,this.TA,!1),g.Z(this,n),n.qQ(this.G),n.init(j3("ad-badge"), J,this.macros),this.X=n.element):(J=n.simpleAdBadgeRenderer,J==null&&(J={text:{text:"Ad",isTemplated:!1}}),n=new ee(this.api,this.layoutId,this.interactionLoggingClientData,this.TA,!0),g.Z(this,n),n.qQ(this.G),n.init(j3("simple-ad-badge"),J,this.macros)));K.adPodIndex&&(J=g.f(K.adPodIndex,zSr),J!=null&&(n=new DB(this.api,this.layoutId,this.interactionLoggingClientData,this.TA),g.Z(this,n),n.qQ(this.G),n.init(j3("ad-pod-index"),J)));K.adDurationRemaining&&!K.showWithoutLinkedMediaLayout&&(J=K.adDurationRemaining.adDurationRemainingRenderer, J==null&&(J={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),X=new Bz(this.api,this.layoutId,this.interactionLoggingClientData,this.TA,this.Z,X,!1),g.Z(this,X),X.qQ(this.G),X.init(j3("ad-duration-remaining"),J,this.macros));K.adInfoRenderer&&(X=g.f(K.adInfoRenderer,c$))&&(J=new Ai(this.api,this.layoutId,this.interactionLoggingClientData,this.TA,this.element,void 0,!1),g.Z(this,J),this.X!==null?this.G.insertBefore(J.element,this.X.nextSibling):J.qQ(this.G), J.init(j3("ad-info-hover-text-button"),X,this.macros));K.visitAdvertiserRenderer&&(J=g.f(K.visitAdvertiserRenderer,g.Gt))&&(n=SSq(this)&&this.U?this.U:this.G)&&(X=new uU(this.api,this.layoutId,this.interactionLoggingClientData,this.TA),g.Z(this,X),X.qQ(n),X.init(j3("visit-advertiser"),J,this.macros),fm(X.element),J=EX(X.element),q0(X.element,J+" This link opens in new tab"));!(X=this.api.S())||g.kn(X)||g.pR(X)||X.controlsType!="3"&&!X.disableOrganicUi||(l=new cz(this.api,this.Z,l,!1),l.qQ(this.j_), g.Z(this,l));K.adDisclosureBannerRenderer&&(K=g.f(K.adDisclosureBannerRenderer,eSF))&&(l=new df(this.api,this.layoutId,this.interactionLoggingClientData,this.TA),l.qQ(this.QG),l.init(j3("ad-disclosure-banner"),K),g.Z(this,l));this.api.S().J("enable_updated_html5_player_focus_style")&&g.jv(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; YD.prototype.clear=function(){this.hide()};tC.prototype.set=function(J,K,n){n=n!==void 0?Date.now()+n:void 0;this.G.set(J,K,n)}; tC.prototype.get=function(J){return this.G.get(J)}; tC.prototype.remove=function(J){this.G.remove(J)};var sWM=null;var av=null,Fa=null,qx=null,uHf=null;g.Ed("yt.www.ads.eventcache.getLastCompanionData",function(){return av}); g.Ed("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.Ed("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return Fa}); g.Ed("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return qx}); g.Ed("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return uHf});var z2f=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);EC.prototype.handleResponse=function(J,K){if(!K)throw Error("request needs to be passed into ConsistencyService");var n,X;K=((n=K.xn.context)==null?void 0:(X=n.request)==null?void 0:X.consistencyTokenJars)||[];var l;(J=(l=J.responseContext)==null?void 0:l.consistencyTokenJar)&&this.replace(K,J)}; EC.prototype.replace=function(J,K){J=g.z(J);for(var n=J.next();!n.done;n=J.next())delete this.G[n.value.encryptedTokenJarContents];PPe(this,K)};var kEj=window.location.hostname.split(".").slice(-2).join("."),Bn;AC.getInstance=function(){Bn=g.bF("yt.clientLocationService.instance");Bn||(Bn=new AC,g.Ed("yt.clientLocationService.instance",Bn));return Bn}; g.u=AC.prototype; g.u.setLocationOnInnerTubeContext=function(J){J.client||(J.client={});if(this.G)J.client.locationInfo||(J.client.locationInfo={}),J.client.locationInfo.latitudeE7=Math.floor(this.G.coords.latitude*1E7),J.client.locationInfo.longitudeE7=Math.floor(this.G.coords.longitude*1E7),J.client.locationInfo.horizontalAccuracyMeters=Math.round(this.G.coords.accuracy),J.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.X||this.locationPlayabilityToken)J.client.locationPlayabilityToken=this.X|| this.locationPlayabilityToken}; g.u.handleResponse=function(J){var K;J=(K=J.responseContext)==null?void 0:K.locationPlayabilityToken;J!==void 0&&(this.locationPlayabilityToken=J,this.G=void 0,g.Et("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=bU(this))&&this.localStorage.set("yt-location-playability-token",J,15552E3):g.ca("YT_CL",JSON.stringify({loctok:J}),15552E3,kEj,!0))}; g.u.clearLocationPlayabilityToken=function(J){J==="TVHTML5"?(this.localStorage=bU(this))&&this.localStorage.remove("yt-location-playability-token"):g.Gr("YT_CL");this.X=void 0;this.Z!==-1&&(clearTimeout(this.Z),this.Z=-1)}; g.u.getCurrentPositionFromGeolocation=function(){var J=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var K=!1,n=1E4;g.Et("INNERTUBE_CLIENT_NAME")==="MWEB"&&(K=!0,n=15E3);return new Promise(function(X,l){navigator.geolocation.getCurrentPosition(function(x){J.G=x;X(x)},function(x){l(x)},{enableHighAccuracy:K, maximumAge:0,timeout:n})})}; g.u.createUnpluggedLocationInfo=function(J){var K={};J=J.coords;if(J==null?0:J.latitude)K.latitudeE7=Math.floor(J.latitude*1E7);if(J==null?0:J.longitude)K.longitudeE7=Math.floor(J.longitude*1E7);if(J==null?0:J.accuracy)K.locationRadiusMeters=Math.round(J.accuracy);return K}; g.u.createLocationInfo=function(J){var K={};J=J.coords;if(J==null?0:J.latitude)K.latitudeE7=Math.floor(J.latitude*1E7);if(J==null?0:J.longitude)K.longitudeE7=Math.floor(J.longitude*1E7);return K};g.u=pNU.prototype;g.u.contains=function(J){return Object.prototype.hasOwnProperty.call(this.G,J)}; g.u.get=function(J){if(this.contains(J))return this.G[J]}; g.u.set=function(J,K){this.G[J]=K}; g.u.t9=function(){return Object.keys(this.G)}; g.u.remove=function(J){delete this.G[J]};Nx.prototype.getModuleId=function(J){return g.U(J.serviceId.getModuleId())}; Nx.prototype.get=function(J){a:{var K=g.U(this.mappings.get(J.toString()));switch(K.type){case "mapping":J=K.value;break a;case "factory":K=K.value();this.mappings.set(J.toString(),{type:"mapping",value:K});J=K;break a;default:J=AK(K)}}return J}; Nx.prototype.registerService=function(J,K){this.mappings.set(J.toString(),{type:"mapping",value:K});return J}; new Nx;var mz={},L2f=(mz.WEB_UNPLUGGED="^unplugged/",mz.WEB_UNPLUGGED_ONBOARDING="^unplugged/",mz.WEB_UNPLUGGED_OPS="^unplugged/",mz.WEB_UNPLUGGED_PUBLIC="^unplugged/",mz.WEB_CREATOR="^creator/",mz.WEB_KIDS="^kids/",mz.WEB_EXPERIMENTS="^experiments/",mz.WEB_MUSIC="^music/",mz.WEB_REMIX="^music/",mz.WEB_MUSIC_EMBEDDED_PLAYER="^music/",mz.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",mz);$m.prototype.C=function(J,K,n){K=K===void 0?{}:K;n=n===void 0?$b:n;var X={context:g.Mx(J.clickTrackingParams,!1,this.U)};var l=this.Z(J);if(l){this.G(X,l,K);var x;K=g.Ko(this.X());(l=(x=g.f(J.commandMetadata,g.Hn))==null?void 0:x.apiUrl)&&(K=l);x=wPe(Uj(K));J=Object.assign({},{command:J},void 0);X={input:x,Ib:t2(x),xn:X,config:J};X.config.KG?X.config.KG.identity=n:X.config.KG={identity:n};return X}n=new g.qt("Error: Failed to create Request from Command.",J);g.ko(n)}; g.j8.Object.defineProperties($m.prototype,{U:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.e(SQ,$m);g.e(rS,SQ);rS.prototype.C=function(){return{input:"/getDatasyncIdsEndpoint",Ib:t2("/getDatasyncIdsEndpoint","GET"),xn:{}}}; rS.prototype.X=function(){return[]}; rS.prototype.Z=function(){}; rS.prototype.G=function(){};var gRO={},v4F=(gRO.GET_DATASYNC_IDS=JB(rS),gRO);var p_={},cqG=(p_["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",p_["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",p_["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",p_["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",p_["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",p_["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",p_["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", p_["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",p_["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",p_["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",p_["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",p_["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",p_["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",p_["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",p_["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", p_["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",p_["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",p_["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",p_["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",p_["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",p_["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",p_["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", p_["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",p_.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",p_["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",p_["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",p_["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",p_["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",p_["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",p_["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", p_["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",p_["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",p_["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",p_["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",p_["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",p_["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",p_["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",p_["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",p_["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",p_["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",p_.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",p_["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",p_["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",p_["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",p_["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",p_["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",p_["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",p_["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",p_["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",p_["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",p_["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",p_["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",p_["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",p_["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",p_["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",p_["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",p_["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",p_["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",p_["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",p_["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",p_["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",p_["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", p_["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",p_["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",p_["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",p_["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",p_["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",p_["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",p_["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",p_["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",p_["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", p_["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",p_["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",p_["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",p_["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",p_["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",p_["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",p_["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",p_["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", p_),L_={},YSM=(L_.auto_search="LATENCY_ACTION_AUTO_SEARCH",L_.ad_to_ad="LATENCY_ACTION_AD_TO_AD",L_.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",L_.app_startup="LATENCY_ACTION_APP_STARTUP",L_.browse="LATENCY_ACTION_BROWSE",L_.cast_splash="LATENCY_ACTION_CAST_SPLASH",L_.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",L_.channels="LATENCY_ACTION_CHANNELS",L_.chips="LATENCY_ACTION_CHIPS",L_.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",L_.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", L_.editor="LATENCY_ACTION_EDITOR",L_.embed="LATENCY_ACTION_EMBED",L_.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",L_.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",L_.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",L_.explore="LATENCY_ACTION_EXPLORE",L_.favorites="LATENCY_ACTION_FAVORITES",L_.home="LATENCY_ACTION_HOME",L_.inboarding="LATENCY_ACTION_INBOARDING",L_.landing="LATENCY_ACTION_LANDING",L_.library="LATENCY_ACTION_LIBRARY",L_.live= "LATENCY_ACTION_LIVE",L_.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",L_.management="LATENCY_ACTION_MANAGEMENT",L_.mini_app="LATENCY_ACTION_MINI_APP_PLAY",L_.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",L_.onboarding="LATENCY_ACTION_ONBOARDING",L_.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",L_.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",L_.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",L_.player_att="LATENCY_ACTION_PLAYER_ATTESTATION", L_.prebuffer="LATENCY_ACTION_PREBUFFER",L_.prefetch="LATENCY_ACTION_PREFETCH",L_.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",L_.profile_switcher="LATENCY_ACTION_LOGIN",L_.projects="LATENCY_ACTION_PROJECTS",L_.reel_watch="LATENCY_ACTION_REEL_WATCH",L_.results="LATENCY_ACTION_RESULTS",L_.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",L_.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",L_.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",L_.review="LATENCY_ACTION_REVIEW",L_.search_overview_answer= "LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",L_.search_ui="LATENCY_ACTION_SEARCH_UI",L_.search_suggest="LATENCY_ACTION_SUGGEST",L_.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",L_.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",L_.seek="LATENCY_ACTION_PLAYER_SEEK",L_.settings="LATENCY_ACTION_SETTINGS",L_.store="LATENCY_ACTION_STORE",L_.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",L_.tenx="LATENCY_ACTION_TENX",L_.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",L_.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD", L_.watch="LATENCY_ACTION_WATCH",L_.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",L_["watch,watch7"]="LATENCY_ACTION_WATCH",L_["watch,watch7_html5"]="LATENCY_ACTION_WATCH",L_["watch,watch7ad"]="LATENCY_ACTION_WATCH",L_["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",L_.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",L_.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",L_.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",L_.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",L_.networkless_performance= "LATENCY_ACTION_NETWORKLESS_PERFORMANCE",L_.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",L_.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",L_.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",L_);Object.assign(YSM,cqG);g.e(wS,SD);var MDV=new rg("aft-recorded",wS);var YQF=g.qp.ytLoggingGelSequenceIdObj_||{};g.Ed("ytLoggingGelSequenceIdObj_",YQF);var iD=g.qp.ytLoggingLatencyUsageStats_||{};g.Ed("ytLoggingLatencyUsageStats_",iD);Ps.prototype.tick=function(J,K,n,X){Bs(this,"tick_"+J+"_"+K)||g.vJ("latencyActionTicked",{tickName:J,clientActionNonce:K},{timestamp:n,cttAuthInfo:X})}; Ps.prototype.info=function(J,K,n){var X=Object.keys(J).join("");Bs(this,"info_"+X+"_"+K)||(J=Object.assign({},J),J.clientActionNonce=K,g.vJ("latencyActionInfo",J,{cttAuthInfo:n}))}; Ps.prototype.jspbInfo=function(J,K,n){for(var X="",l=0;l=l.length?(K.append(l),J-=l.length):J?(K.append(new Uint8Array(l.buffer,l.byteOffset,J)),n.append(new Uint8Array(l.buffer,l.byteOffset+J,l.length-J)),J=0):n.append(l);return{F$:K,YL:n}}; g.u.isFocused=function(J){return J>=this.Gw&&J=64&&(this.N.set(J.subarray(0,64-this.Z),this.Z),K=64-this.Z,this.Z=0,NVe(this,this.N,0));for(;K+64<=n;K+=64)NVe(this,J,K);K=this.start&&(J=2&&n.ssdaiAdsConfig&&Se("Unexpected ad placement renderers length",J.slot,null,{length:X.length});var l;((l=n.adSlots)==null?0:l.some(function(x){var V,v;return((V=g.f(x,yS))==null?void 0:(v=V.adSlotMetadata)==null?void 0:v.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||X.some(function(x){var V,v,Q,S; return!!((V=x.renderer)==null?0:(v=V.linearAdSequenceRenderer)==null?0:(Q=v.linearAds)==null?0:Q.length)||!((S=x.renderer)==null||!S.instreamVideoAdRenderer)})||zZV(J)})}; lW.prototype.V1=function(){jR3(this.G)};x1.prototype.Vg=function(){var J=this;x18(this.Z,function(){var K=XV(J.slot.clientMetadata,"metadata_type_ad_break_request_data");return K.cueProcessedMs?J.G.get().fetch({dw:K.getAdBreakUrl,c7:new g.KG(K.BL,K.jk),cueProcessedMs:K.cueProcessedMs}):J.G.get().fetch({dw:K.getAdBreakUrl,c7:new g.KG(K.BL,K.jk)})})}; x1.prototype.V1=function(){jR3(this.Z)};j_.prototype.Vg=function(){var J=this.slot.clientMetadata,K,n=(K=this.slot.fulfilledLayout)!=null?K:XV(J,"metadata_type_fulfilled_layout");Uq7(this.callback,this.slot,n)}; j_.prototype.V1=function(){OY(this.callback,this.slot,new b("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")};hD.prototype.build=function(J,K){return K.fulfilledLayout||V8(K,{O8:["metadata_type_fulfilled_layout"]})?new j_(J,K):this.X(J,K)};g.e(vL,hD); vL.prototype.X=function(J,K){if(V8(K,{O8:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new lW(J,K,this.G,this.Z,this.Oo,this.xF,this.NQ,this.bx,this.dR);if(V8(K,{O8:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new x1(J,K,this.G,this.Z,this.Oo,this.xF);throw new b("Unsupported slot with type: "+K.slotType+" and client metadata: "+lO(K.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.e(Q8,hD);Q8.prototype.X=function(J,K){throw new b("Unsupported slot with type: "+K.slotType+" and client metadata: "+lO(K.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.u=w9V.prototype;g.u.Jx=function(){return this.slot}; g.u.e_=function(){return this.layout}; g.u.init=function(){}; g.u.release=function(){}; g.u.startRendering=function(J){if(J.layoutId!==this.layout.layoutId)this.callback.OB(this.slot,J,new nQ("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 K=XV(J.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.gN(this.slot,J),tzU(this.X, this.slot,K)):Se("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,J)}}; g.u.IZ=function(J,K){J.layoutId!==this.layout.layoutId?this.callback.OB(this.slot,J,new nQ("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.hH(this.slot,J,K),Ipr(this),i7r(this))};g.e(CG,g.hi);g.u=CG.prototype;g.u.Jx=function(){return this.Z.slot}; g.u.e_=function(){return this.Z.layout}; g.u.init=function(){this.X.get().addListener(this)}; g.u.release=function(){this.X.get().removeListener(this);this.dispose()}; g.u.wP=function(){}; g.u.TF=function(){}; g.u.V5=function(){}; g.u.fm=function(){}; g.u.startRendering=function(J){var K=this;sB(this.Z,J,function(){return void K.aR()})}; g.u.aR=function(){this.X.get().aR(this.G)}; g.u.IZ=function(J,K){var n=this;sB(this.Z,J,function(){var X=n.X.get();NCU(X,n.G,3);n.G=[];n.callback.hH(n.slot,J,K)})}; g.u.Xq=function(){this.X.o4()||this.X.get().removeListener(this);g.hi.prototype.Xq.call(this)}; g.j8.Object.defineProperties(CG.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.Z.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.Z.layout}}});PL.prototype.Lh=function(J,K){K=K===void 0?!1:K;var n=(this.X.get(J)||[]).concat();if(K=K&&Lsq(J)){var X=this.X.get(K);X&&n.push.apply(n,g.m(X))}BL(this,J,n);this.G.add(J);K&&this.G.add(K)}; PL.prototype.R5=function(J,K){K=K===void 0?!1:K;if(!this.G.has(J)){var n=K&&Lsq(J);n&&(K=!this.G.has(n));this.Lh(J,K)}};g.e(d1H,Vk);g.e(Dg,CG);g.u=Dg.prototype;g.u.Xr=function(J,K){uW("ads-engagement-panel-layout",J,dX(this.N.get()),this.NQ.get(),this.U,this.C,this.Jx(),this.e_(),K)}; g.u.startRendering=function(J){HL(this.yG,this.Jx(),this.e_(),g.f(this.e_().renderingContent,VS),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(K,n,X,l,x){return new d1H(K,n,X,l,x)},this.G); CG.prototype.startRendering.call(this,J)}; g.u.gN=function(J,K){this.C===K.layoutId&&(this.U===null?this.U=this.NQ.get().nh():Se("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.u.hH=function(){}; g.u.aO=function(){}; g.u.oH=function(){}; g.u.jK=function(){}; g.u.qk=function(){}; g.u.UB=function(){}; g.u.BO=function(){}; g.u.PO=function(){}; g.u.dK=function(){}; g.u.Ao=function(){}; g.u.eT=function(){}; g.u.Xq=function(){sY(this.Sl(),this);CG.prototype.Xq.call(this)};g.e(g7F,Vk);g.e(dK,CG);g.u=dK.prototype;g.u.Xr=function(J,K){uW("banner-image",J,dX(this.N.get()),this.NQ.get(),this.U,this.C,this.Jx(),this.e_(),K)}; g.u.startRendering=function(J){HL(this.yG,this.Jx(),this.e_(),g.f(this.e_().renderingContent,xh),this.callback,"metadata_type_banner_image_layout_view_model",function(K,n,X,l,x){return new g7F(K,n,X,l,x)},this.G); CG.prototype.startRendering.call(this,J)}; g.u.gN=function(J,K){this.C===K.layoutId&&(this.U===null?this.U=this.NQ.get().nh():Se("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.u.hH=function(){}; g.u.aO=function(){}; g.u.oH=function(){}; g.u.jK=function(){}; g.u.qk=function(){}; g.u.UB=function(){}; g.u.BO=function(){}; g.u.PO=function(){}; g.u.dK=function(){}; g.u.Ao=function(){}; g.u.eT=function(){}; g.u.Xq=function(){sY(this.Sl(),this);CG.prototype.Xq.call(this)};g.e(k1,Vk);g.e(gK,CG);g.u=gK.prototype;g.u.Xr=function(J,K){uW("action-companion",J,dX(this.N.get()),this.NQ.get(),this.U,this.C,this.Jx(),this.e_(),K)}; g.u.startRendering=function(J){HL(this.yG,this.Jx(),this.e_(),g.f(this.e_().renderingContent,op),this.callback,"metadata_type_action_companion_ad_renderer",function(K,n,X,l,x){return new k1(K,n,X,l,x)},this.G); CG.prototype.startRendering.call(this,J)}; g.u.gN=function(J,K){K.layoutId===this.layout.layoutId?this.yG.R5("impression"):this.C===K.layoutId&&(this.U===null?this.U=this.NQ.get().nh():Se("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.u.hH=function(){}; g.u.aO=function(){}; g.u.oH=function(){}; g.u.jK=function(){}; g.u.qk=function(){}; g.u.UB=function(){}; g.u.BO=function(){}; g.u.PO=function(){}; g.u.dK=function(){}; g.u.Ao=function(){}; g.u.eT=function(){}; g.u.Xq=function(){sY(this.Sl(),this);CG.prototype.Xq.call(this)};g.e(Gof,Vk);g.e(cL,CG);g.u=cL.prototype;g.u.Xr=function(J,K){uW("image-companion",J,dX(this.N.get()),this.NQ.get(),this.U,this.C,this.Jx(),this.e_(),K)}; g.u.startRendering=function(J){HL(this.yG,this.Jx(),this.e_(),g.f(this.e_().renderingContent,XZ),this.callback,"metadata_type_image_companion_ad_renderer",function(K,n,X,l,x){return new Gof(K,n,X,l,x)},this.G); CG.prototype.startRendering.call(this,J)}; g.u.gN=function(J,K){K.layoutId===this.layout.layoutId?this.yG.R5("impression"):this.C===K.layoutId&&(this.U===null?this.U=this.NQ.get().nh():Se("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.u.hH=function(){}; g.u.aO=function(){}; g.u.oH=function(){}; g.u.jK=function(){}; g.u.qk=function(){}; g.u.UB=function(){}; g.u.BO=function(){}; g.u.PO=function(){}; g.u.dK=function(){}; g.u.Ao=function(){}; g.u.eT=function(){}; g.u.Xq=function(){sY(this.Sl(),this);CG.prototype.Xq.call(this)};g.e(t3r,Vk);g.e(Y1,CG);g.u=Y1.prototype;g.u.Xr=function(J,K){uW("shopping-companion",J,dX(this.N.get()),this.NQ.get(),this.U,this.C,this.Jx(),this.e_(),K)}; g.u.startRendering=function(J){HL(this.yG,this.Jx(),this.e_(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(K,n,X,l,x){return new t3r(K,n,X,l,x)},this.G); CG.prototype.startRendering.call(this,J)}; g.u.gN=function(J,K){K.layoutId===this.layout.layoutId?this.yG.R5("impression"):this.C===K.layoutId&&(this.U===null?this.U=this.NQ.get().nh():Se("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.u.hH=function(){}; g.u.aO=function(){}; g.u.oH=function(){}; g.u.jK=function(){}; g.u.qk=function(){}; g.u.UB=function(){}; g.u.BO=function(){}; g.u.PO=function(){}; g.u.dK=function(){}; g.u.Ao=function(){}; g.u.eT=function(){}; g.u.Xq=function(){sY(this.Sl(),this);CG.prototype.Xq.call(this)};g.e(UB,CG);g.u=UB.prototype;g.u.startRendering=function(J){HL(this.yG,this.Jx(),this.e_(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(K,n,X,l,x){return new k1(K,n,X,l,x)},this.G); CG.prototype.startRendering.call(this,J)}; g.u.gN=function(){}; g.u.hH=function(){}; g.u.aO=function(){}; g.u.oH=function(){}; g.u.jK=function(){}; g.u.qk=function(){}; g.u.UB=function(){}; g.u.BO=function(){}; g.u.PO=function(){}; g.u.dK=function(){}; g.u.Ao=function(){}; g.u.eT=function(){}; g.u.Xq=function(){sY(this.Sl(),this);CG.prototype.Xq.call(this)}; g.u.Xr=function(){};g.u=Fsq.prototype;g.u.Jx=function(){return this.slot}; g.u.e_=function(){return this.layout}; g.u.init=function(){this.bx.get().addListener(this);this.bx.get().Xf.push(this);var J=XV(this.layout.clientMetadata,"metadata_type_video_length_seconds"),K=XV(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");e_(this.layout.dN)&&JY(this.pU.get(),this.layout.layoutId,{XP:K,p4:J,listener:this})}; g.u.release=function(){this.bx.get().removeListener(this);aJd(this.bx.get(),this);e_(this.layout.dN)&&K2(this.pU.get(),this.layout.layoutId)}; g.u.startRendering=function(J){this.callback.gN(this.slot,J)}; g.u.IZ=function(J,K){C4d(this.xF.get())&&!this.G&&(this.yG.R5("abandon"),this.G=!0);this.callback.hH(this.slot,J,K)}; g.u.CJ=function(J){switch(J.id){case "part2viewed":this.yG.R5("start");this.yG.R5("impression");break;case "videoplaytime25":this.yG.R5("first_quartile");break;case "videoplaytime50":this.yG.R5("midpoint");break;case "videoplaytime75":this.yG.R5("third_quartile");break;case "videoplaytime100":C4d(this.xF.get())?this.G||(this.yG.R5("complete"),this.G=!0):this.yG.R5("complete");T6(this.yG)&&pG(this.yG,Infinity,!0);OrF(this.xF.get())&&G6(this.Z,Infinity,!0);break;case "engagedview":T6(this.yG)||this.yG.R5("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:Se("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.u.onVolumeChange=function(){}; g.u.mj=function(){}; g.u.Uy=function(){}; g.u.Ju=function(){}; g.u.onFullscreenToggled=function(){}; g.u.Vh=function(){}; g.u.k6=function(){}; g.u.Ac=function(J){OrF(this.xF.get())&&G6(this.Z,J*1E3,!1);T6(this.yG)&&pG(this.yG,J*1E3,!1)}; g.u.RP=function(){}; g.u.yV=function(){this.yG.R5("active_view_measurable")}; g.u.gq=function(){this.yG.R5("active_view_viewable")}; g.u.wq=function(){this.yG.R5("active_view_fully_viewable_audible_half_duration")}; g.u.aM=function(){this.yG.R5("audio_measurable")}; g.u.T8=function(){this.yG.R5("audio_audible")};g.e(tD,CG);g.u=tD.prototype;g.u.init=function(){CG.prototype.init.call(this);var J=g.U(XV(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer")),K={adsClientData:this.layout.U_};this.G.push(new z_(J,this.layout.layoutId,XV(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),K,!0))}; g.u.o0=function(){this.U||this.bx.get().resumeVideo(1)}; g.u.startRendering=function(J){CG.prototype.startRendering.call(this,J);Vv(this.bx.get(),"ad-showing");this.callback.gN(this.slot,J);this.C.ZP=this}; g.u.IZ=function(J,K){CG.prototype.IZ.call(this,J,K);hY(this.bx.get(),"ad-showing");F2(this.C,this)}; g.u.Xr=function(J){switch(J){case "ad-info-icon-button":(this.U=this.bx.get().z2(1))||this.bx.get().pauseVideo();break;case "visit-advertiser":this.bx.get().pauseVideo()}}; g.u.Xq=function(){CG.prototype.Xq.call(this)};g.e(y8,Vk);g.e(Zg,CG);g.u=Zg.prototype;g.u.startRendering=function(J){HL(this.yG,this.Jx(),this.e_(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(K,n,X,l,x){return new y8(K,n,X,l,x)},this.G); CG.prototype.startRendering.call(this,J)}; g.u.gN=function(){}; g.u.hH=function(){}; g.u.aO=function(){}; g.u.oH=function(){}; g.u.jK=function(){}; g.u.qk=function(){}; g.u.UB=function(){}; g.u.BO=function(){}; g.u.PO=function(){}; g.u.dK=function(){}; g.u.Ao=function(){}; g.u.eT=function(){}; g.u.Xq=function(){sY(this.Sl(),this);CG.prototype.Xq.call(this)}; g.u.Xr=function(){};g.e(fG,Vk);g.e(WL,CG);WL.prototype.init=function(){CG.prototype.init.call(this);this.G.push(new fG(g.f(this.layout.renderingContent,Ly),this.layout.layoutId,{adsClientData:this.layout.U_}))}; WL.prototype.Xr=function(){kO(this.U.get(),this.C)&&R4(this.NQ.get(),3)}; WL.prototype.startRendering=function(J){CG.prototype.startRendering.call(this,J);this.callback.gN(this.slot,J)}; WL.prototype.Xq=function(){CG.prototype.Xq.call(this)};g.e(a4,Vk);g.e(FD,CG);FD.prototype.init=function(){CG.prototype.init.call(this);var J=g.f(this.layout.renderingContent,x6)||XV(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),K=OB(this.yG);this.G.push(new a4(J,K,this.layout.layoutId,{adsClientData:this.layout.U_},!0,!0))}; FD.prototype.startRendering=function(J){CG.prototype.startRendering.call(this,J);this.callback.gN(this.slot,J)}; FD.prototype.Xr=function(J,K){if(K===this.layout.layoutId)switch(J){case "skip-button":var n;(J=(n=XV(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:n.current)&&J.e0(this.Jx(),this.layout)}}; FD.prototype.Xq=function(){CG.prototype.Xq.call(this)};EB.prototype.build=function(J,K,n,X){if(qL(X,{O8:["metadata_type_ad_break_response_data"],a9:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new w9V(J,n,X,this.Z,this.X,this.G);throw new nQ("Unsupported layout with type: "+X.layoutType+" and client metadata: "+lO(X.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.e(b7p,Vk);g.e(bW,CG);g.u=bW.prototype;g.u.Xr=function(J,K){uW("ads-engagement-panel",J,dX(this.N.get()),this.NQ.get(),this.U,this.C,this.Jx(),this.e_(),K)}; g.u.startRendering=function(J){HL(this.yG,this.Jx(),this.e_(),g.f(this.e_().renderingContent,lR),this.callback,"metadata_type_ads_engagement_panel_renderer",function(K,n,X,l,x){return new b7p(K,n,X,l,x)},this.G); CG.prototype.startRendering.call(this,J)}; g.u.gN=function(J,K){K.layoutId===this.layout.layoutId?this.yG.R5("impression"):this.C===K.layoutId&&(this.U===null?this.U=this.NQ.get().nh():Se("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.u.hH=function(){}; g.u.aO=function(){}; g.u.oH=function(){}; g.u.jK=function(){}; g.u.qk=function(){}; g.u.UB=function(){}; g.u.BO=function(){}; g.u.PO=function(){}; g.u.dK=function(){}; g.u.Ao=function(){}; g.u.eT=function(){}; g.u.Xq=function(){sY(this.Sl(),this);CG.prototype.Xq.call(this)};g.e(AD,CG);g.u=AD.prototype;g.u.Xr=function(J,K){uW("top-banner-image-text-icon-buttoned",J,dX(this.N.get()),this.NQ.get(),this.U,this.C,this.Jx(),this.e_(),K)}; g.u.startRendering=function(J){HL(this.yG,this.Jx(),this.e_(),g.f(this.e_().renderingContent,j6),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(K,n,X,l,x){return new y8(K,n,X,l,x)},this.G); CG.prototype.startRendering.call(this,J)}; g.u.gN=function(J,K){this.C===K.layoutId&&(this.U===null?this.U=this.NQ.get().nh():Se("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.u.hH=function(){}; g.u.aO=function(){}; g.u.oH=function(){}; g.u.jK=function(){}; g.u.qk=function(){}; g.u.UB=function(){}; g.u.BO=function(){}; g.u.PO=function(){}; g.u.dK=function(){}; g.u.Ao=function(){}; g.u.eT=function(){}; g.u.Xq=function(){sY(this.Sl(),this);CG.prototype.Xq.call(this)};Nor.prototype.build=function(J,K,n,X){if(qL(X,Ai3())||g.f(X.renderingContent,lR)!==void 0)return new bW(J,n,X,this.O_,this.NQ,this.Sl,this.pU,this.G);if(qL(X,Ye7())||g.f(X.renderingContent,op)!==void 0)return new gK(J,n,X,this.O_,this.NQ,this.Sl,this.pU,this.G);if(qL(X,U1p())||g.f(X.renderingContent,XZ)!==void 0)return new cL(J,n,X,this.O_,this.NQ,this.Sl,this.pU,this.G);if(qL(X,yiU()))return new Y1(J,n,X,this.O_,this.NQ,this.Sl,this.pU,this.G);if(qL(X,apF()))return new UB(J,n,X,this.O_,this.NQ,this.Sl, this.pU,this.G);if(qL(X,ci8())||g.f(X.renderingContent,xh)!==void 0)return new dK(J,n,X,this.O_,this.NQ,this.Sl,this.pU,this.G);if(qL(X,M3F())||g.f(X.renderingContent,j6)!==void 0)return new AD(J,n,X,this.O_,this.NQ,this.Sl,this.pU,this.G);if(qL(X,qep()))return new Zg(J,n,X,this.O_,this.NQ,this.Sl,this.pU,this.G);if(qL(X,ko3())||g.f(X.renderingContent,VS)!==void 0)return new Dg(J,n,X,this.O_,this.NQ,this.Sl,this.pU,this.G);throw new nQ("Unsupported layout with type: "+X.layoutType+" and client metadata: "+ lO(X.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};JCq.prototype.build=function(J,K,n,X){if(qL(X,{O8:["metadata_type_linked_player_bytes_layout_id"],a9:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new WL(J,n,X,this.O_,this.NQ,this.G);throw new nQ("Unsupported layout with type: "+X.layoutType+" and client metadata: "+lO(X.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.u=KBf.prototype;g.u.Jx=function(){return this.slot}; g.u.e_=function(){return this.layout}; g.u.init=function(){}; g.u.release=function(){}; g.u.startRendering=function(J){J.layoutId!==this.layout.layoutId?this.callback.OB(this.slot,J,new nQ("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.gN(this.slot,J),this.yG.R5("impression"),qn(this.R$,J,"normal"))}; g.u.IZ=function(J,K){J.layoutId!==this.layout.layoutId?this.callback.OB(this.slot,J,new nQ("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.hH(this.slot,J,K)};g.u=oDM.prototype;g.u.Jx=function(){return this.slot}; g.u.e_=function(){return this.layout}; g.u.init=function(){}; g.u.release=function(){}; g.u.startRendering=function(J){J.layoutId!==this.layout.layoutId?this.callback.OB(this.slot,J,new nQ("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.gN(this.slot,J),this.yG.R5("impression"),qn(this.R$,J,"normal"))}; g.u.IZ=function(J,K){J.layoutId!==this.layout.layoutId?this.callback.OB(this.slot,J,new nQ("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.hH(this.slot,J,K)};ML.prototype.build=function(J,K,n,X){if(!this.xF.get().B.S().J("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(qL(X,nDV()))return new KBf(J,n,X,this.NQ,this.R$)}else if(qL(X,{O8:[],a9:["LAYOUT_TYPE_FORECASTING"]}))return new oDM(J,n,X,this.NQ,this.R$);throw new nQ("Unsupported layout with type: "+X.layoutType+" and client metadata: "+lO(X.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.e(xxV,Vk);g.e(NL,CG);g.u=NL.prototype;g.u.init=function(){CG.prototype.init.call(this);var J=g.f(this.layout.renderingContent,lx)||g.U(XV(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer")),K={adsClientData:this.layout.U_};this.G.push(new xxV(J,XV(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,K))}; g.u.o0=function(){this.U||this.bx.get().resumeVideo(2)}; g.u.startRendering=function(J){CG.prototype.startRendering.call(this,J);this.callback.gN(this.slot,J);this.C.ZP=this}; g.u.IZ=function(J,K){CG.prototype.IZ.call(this,J,K);F2(this.C,this)}; g.u.Xr=function(J,K){if(!FV(this.xF.get(),"stop_handling_click_for_non_rendering_overlay_layout")||K===this.layout.layoutId){if(kO(this.N.get(),this.W))switch(J){case "visit-advertiser-link":R4(this.NQ.get(),3)}switch(J){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.U||this.bx.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.U=this.bx.get().z2(2))||this.bx.get().pauseVideo();break; case "visit-advertiser-link":this.bx.get().pauseVideo();g.U(jvf(this)).Q_();break;case "skip-button":if(J=jvf(this),this.layout.renderingContent&&!NT(this.layout.clientMetadata,"metadata_type_dai")||!J.Qb){var n;(J=(n=XV(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:n.current)&&J.e0(this.Jx(),this.layout)}else Se("Requesting to skip by LegacyPlayerBytes when components enabled"),J.mT(this.Jx(),this.layout)}}}; g.u.Xq=function(){CG.prototype.Xq.call(this)};g.e(Jl,CG);g.u=Jl.prototype;g.u.init=function(){CG.prototype.init.call(this);var J=g.f(this.layout.renderingContent,Xs)||g.U(XV(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer")),K={adsClientData:this.layout.U_},n;(n=!!this.layout.renderingContent)||(n=!KJ(this).Qb);this.G.push(new z_(J,this.layout.layoutId,XV(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),K,n))}; g.u.o0=function(){this.U||this.bx.get().resumeVideo(2)}; g.u.startRendering=function(J){CG.prototype.startRendering.call(this,J);this.callback.gN(this.slot,J);this.C.ZP=this}; g.u.IZ=function(J,K){CG.prototype.IZ.call(this,J,K);F2(this.C,this)}; g.u.Xr=function(J,K){if(!this.xF||!FV(this.xF.get(),"stop_handling_click_for_non_rendering_overlay_layout")||K===this.layout.layoutId){if(kO(this.N.get(),this.W))switch(J){case "visit-advertiser":R4(this.NQ.get(),3)}switch(J){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.U||this.bx.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.U=this.bx.get().z2(2))||this.bx.get().pauseVideo();break; case "visit-advertiser":this.bx.get().pauseVideo();g.U(KJ(this)).Q_();break;case "skip-button":if(J=KJ(this),this.layout.renderingContent&&!NT(this.layout.clientMetadata,"metadata_type_dai")||!J.Qb){var n;(J=(n=XV(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:n.current)&&J.e0(this.Jx(),this.layout)}else Se("Requesting to skip by LegacyPlayerBytes"),J.mT(this.Jx(),this.layout)}}}; g.u.Xq=function(){CG.prototype.Xq.call(this)};g.e(hBk,Vk);g.e(nJ,CG);g.u=nJ.prototype;g.u.startRendering=function(J){var K=this;sB(this.Z,J,function(){K.G.push(new hBk(XV(K.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),J.layoutId,J.U_));K.aR();K.callback.gN(K.slot,J);g.E(Nv(K.bx.get(),1),512)&&K.callback.OB(K.Jx(),K.e_(),new nQ("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.u.k6=function(){}; g.u.Vh=function(J){if(J.state.isError()){var K;this.callback.OB(this.Jx(),this.e_(),new nQ("A player error happened during adNotify",{playerErrorCode:(K=J.state.V2)==null?void 0:K.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.u.onFullscreenToggled=function(){}; g.u.Uy=function(){}; g.u.Ju=function(){}; g.u.mj=function(){}; g.u.onVolumeChange=function(){}; g.u.CJ=function(){}; g.u.RP=function(){}; g.u.Xr=function(){};g.e(Qv7,Vk);g.e(oh,CG);oh.prototype.init=function(){CG.prototype.init.call(this);var J=g.f(this.layout.renderingContent,j$),K=OB(this.yG);this.G.push(new Qv7(J,K,this.layout.layoutId,{adsClientData:this.layout.U_}))}; oh.prototype.startRendering=function(J){CG.prototype.startRendering.call(this,J);this.callback.gN(this.slot,J)}; oh.prototype.Xr=function(J,K){if(K===this.layout.layoutId)switch(J){case "skip-button":var n;(J=(n=XV(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:n.current)&&J.e0(this.Jx(),this.layout)}}; oh.prototype.Xq=function(){CG.prototype.Xq.call(this)};$xq.prototype.build=function(J,K,n,X){if(J=Vt(J,n,X,this.O_,this.bx,this.NQ,this.Z,this.G,this.xF))return J;throw new nQ("Unsupported layout with type: "+X.layoutType+" and client metadata: "+lO(X.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.u=Qt.prototype;g.u.Jx=function(){return this.slot}; g.u.e_=function(){return this.layout}; g.u.init=function(){this.bx.get().addListener(this);this.bx.get().Xf.push(this);if(this.layout.renderingContent){var J=this.Jj.get();J=RK(J,1).eW/1E3}else J=XV(this.layout.clientMetadata,"metadata_type_video_length_seconds");var K=g.f(this.layout.renderingContent,B$),n=K?z6(K.pings):XV(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");K=K?p9F(K.pings):XV(this.layout.clientMetadata,"metadata_type_active_view_identifier");e_(this.layout.dN)&&JY(this.pU.get(),this.layout.layoutId, {XP:n,p4:J,listener:this,f7:K})}; g.u.release=function(){this.bx.get().removeListener(this);aJd(this.bx.get(),this);e_(this.layout.dN)&&K2(this.pU.get(),this.layout.layoutId)}; g.u.startRendering=function(J){this.callback.gN(this.slot,J)}; g.u.IZ=function(J,K){$6(this,"abandon");this.callback.hH(this.slot,J,K)}; g.u.CJ=function(J){switch(J.id){case "part2viewed":this.yG.R5("start");this.yG.R5("impression");break;case "videoplaytime25":this.yG.R5("first_quartile");break;case "videoplaytime50":this.yG.R5("midpoint");break;case "videoplaytime75":this.yG.R5("third_quartile");break;case "videoplaytime100":$6(this,"complete");T6(this.yG)&&pG(this.yG,Infinity,!0);break;case "engagedview":T6(this.yG)||this.yG.R5("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:Se("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.u.onVolumeChange=function(){}; g.u.mj=function(){}; g.u.Uy=function(){}; g.u.Ju=function(){}; g.u.onFullscreenToggled=function(){}; g.u.Vh=function(J){this.G||(g.C1(J,4)&&!g.C1(J,2)?mX(this.yG,"pause"):sC(J,4)<0&&!(sC(J,2)<0)&&mX(this.yG,"resume"))}; g.u.k6=function(){}; g.u.Ac=function(J){T6(this.yG)&&pG(this.yG,J*1E3,!1)}; g.u.RP=function(){$6(this,"swipe")}; g.u.yV=function(){this.yG.R5("active_view_measurable")}; g.u.gq=function(){this.yG.R5("active_view_viewable")}; g.u.wq=function(){this.yG.R5("active_view_fully_viewable_audible_half_duration")}; g.u.aM=function(){this.yG.R5("audio_measurable")}; g.u.T8=function(){this.yG.R5("audio_audible")};SC8.prototype.build=function(J,K,n,X){if(n.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.f(X.renderingContent,B$)!==void 0)return new Qt(J,n,X,this.bx,this.NQ,this.xF,this.pU,this.Jj);K=["metadata_type_ad_placement_config"];for(var l=g.z(I4()),x=l.next();!x.done;x=l.next())K.push(x.value);if(qL(X,{O8:K,a9:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return n.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new Qt(J,n,X,this.bx,this.NQ,this.xF,this.pU,this.Jj):new Fsq(J,n,X,this.bx,this.NQ, this.cw,this.xF,this.pU);throw new nQ("Unsupported layout with type: "+X.layoutType+" and client metadata: "+lO(X.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var Rh={contentCpn:"",dO:new Map};wz3.prototype.zA=function(J,K){var n={};K=Object.assign({},K,(n.cc=this.KH.qB(),n));this.KH.B.Zm(J,K)};var n_F,gj; n_F={wOW:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",hJv:"AUTHENTICATION_MALFORMED",Xhd:"AUTHENTICATION_MISSING",uIq:"BAD_REQUEST",bA4:"CAST_SESSION_DEVICE_MISMATCHED",U3v:"CAST_SESSION_VIDEO_MISMATCHED",j$x:"CAST_TOKEN_EXPIRED",BG5:"CAST_TOKEN_FAILED",PHG:"CAST_TOKEN_MALFORMED",o6M:"CGI_PARAMS_MALFORMED",NGM:"CGI_PARAMS_MISSING",D3m:"DEVICE_FALLBACK",UPW:"GENERIC_WITH_LINK_AND_CPN",jP4:"ERROR_HDCP",Bzj:"LICENSE",oTG:"VIDEO_UNAVAILABLE",Rlj:"FORMAT_UNAVAILABLE",aOm:"GEO_FAILURE", d$d:"HTML5_AUDIO_RENDERER_ERROR",Gw_:"GENERIC_WITHOUT_LINK",QiF:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",p1Q:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",ZLQ:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",h4G:"HTML5_SPS_UMP_STATUS_REJECTED",MOQ:"INVALID_DRM_MESSAGE",G9M:"PURCHASE_NOT_FOUND",Qx5:"PURCHASE_REFUNDED",uc4:"RENTAL_EXPIRED",q6x:"RETRYABLE_ERROR",C8A:"SERVER_ERROR",a5Q:"SIGNATURE_EXPIRED",FHM:"STOPPED_BY_ANOTHER_PLAYBACK",LHQ:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",S6_:"STREAMING_NOT_ALLOWED", Y6F:"STREAM_LICENSE_NOT_FOUND",ddd:"TOO_MANY_REQUESTS",G2m:"TOO_MANY_REQUESTS_WITH_LINK",Qp_:"TOO_MANY_STREAMS_PER_ENTITLEMENT",pQG:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",HQM:"VIDEO_FORBIDDEN",J9A:"VIDEO_NOT_FOUND",cdx:"BROWSER_OR_EXTENSION_ERROR"};gj={}; g.G4=(gj.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.",gj.DEVICE_FALLBACK="Sorry, this video is not available on this device.",gj.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",gj.LICENSE="Sorry, there was an error licensing this video.",gj.VIDEO_UNAVAILABLE= "Video unavailable",gj.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",gj.GEO_FAILURE="This video isn't available in your country.",gj.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",gj.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",gj.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",gj.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", gj.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",gj.HTML5_SPS_UMP_STATUS_REJECTED="Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",gj.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",gj.PURCHASE_NOT_FOUND="This video requires payment.",gj.PURCHASE_REFUNDED="This video's purchase has been refunded.",gj.RENTAL_EXPIRED="This video's rental has expired.",gj.CAST_SESSION_DEVICE_MISMATCHED= "The device in the cast session doesn't match the requested one.",gj.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",gj.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",gj.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",gj.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",gj.SERVER_ERROR="There was an internal server error. Please try again later.",gj.STOPPED_BY_ANOTHER_PLAYBACK= "Your account is playing this video in another location. Please reload this page to resume watching.",gj.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",gj.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",gj.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",gj.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",gj.TOO_MANY_REQUESTS="Please log in to watch this video.", gj.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",gj.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",gj.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",gj.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",gj.VIDEO_FORBIDDEN="Access to this video is forbidden.",gj.VIDEO_NOT_FOUND="This video can not be found.",gj.BROWSER_OR_EXTENSION_ERROR= "Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",gj);var o_S;var XH0=g.Ii(),l2F=XH0.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!l2F||l2F.length<2)o_S=void 0;else{var xuz=XH0.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);o_S=xuz&&xuz.length===6?Number(xuz[5].replace("_",".")):0}var fH=o_S,dE=fH>=0;g.e(g.gY,mG);g.gY.prototype.T=function(J,K,n,X,l){return mG.prototype.T.call(this,J,K,n,X,l)};var cn={},zs=(cn.FAIRPLAY="fairplay",cn.PLAYREADY="playready",cn.WIDEVINE="widevine",cn.CLEARKEY=null,cn.FLASHACCESS=null,cn.UNKNOWN=null,cn.WIDEVINE_CLASSIC=null,cn);cf.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var Ya={},Bo=(Ya.WIDTH={name:"width",video:!0,valid:640,FA:99999},Ya.HEIGHT={name:"height",video:!0,valid:360,FA:99999},Ya.FRAMERATE={name:"framerate",video:!0,valid:30,FA:9999},Ya.BITRATE={name:"bitrate",video:!0,valid:3E5,FA:2E9},Ya.EOTF={name:"eotf",video:!0,valid:"bt709",FA:"catavision"},Ya.CHANNELS={name:"channels",video:!1,valid:2,FA:99},Ya.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",FA:"invalidformat"},Ya.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", FA:"nope"},Ya.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",FA:"av99.0.05M.08"},Ya.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",FA:"invalid"},Ya);var jFm=["h","H"],V5S=["9","("],h_G=["9h","(h"],v_z=["8","*"],QF0=["a","A"],$uS=["o","O"],S8z=["m","M"],rpn=["mac3","MAC3"],sFm=["meac3","MEAC3"],GV={},gIH=(GV.h=jFm,GV.H=jFm,GV["9"]=V5S,GV["("]=V5S,GV["9h"]=h_G,GV["(h"]=h_G,GV["8"]=v_z,GV["*"]=v_z,GV.a=QF0,GV.A=QF0,GV.o=$uS,GV.O=$uS,GV.m=S8z,GV.M=S8z,GV.mac3=rpn,GV.MAC3=rpn,GV.meac3=sFm,GV.MEAC3=sFm,GV),CcS=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),usk=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var N={},fJ=(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["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["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["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["885"]="(",N["886"]="(",N["887"]="(",N["888"]="(",N);var U5={},CHq=(U5.STEREO_LAYOUT_UNKNOWN=0,U5.STEREO_LAYOUT_LEFT_RIGHT=1,U5.STEREO_LAYOUT_TOP_BOTTOM=2,U5);var tr,Sd;tr={};g.G2=(tr.auto=0,tr.tiny=144,tr.light=144,tr.small=240,tr.medium=360,tr.large=480,tr.hd720=720,tr.hd1080=1080,tr.hd1440=1440,tr.hd2160=2160,tr.hd2880=2880,tr.highres=4320,tr);Sd={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var tl="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");Uu.prototype.isHdr=function(){return this.G==="smpte2084"||this.G==="arib-std-b67"};Wf.prototype.dW=function(){return this.containerType===2}; Wf.prototype.isEncrypted=function(){return!!this.rE}; Wf.prototype.Mp=function(){return!!this.audio}; Wf.prototype.VB=function(){return!!this.video}; var qR=!1;g.e(s_,g.hi);g.u=s_.prototype;g.u.appendBuffer=function(J,K,n){if(this.z4.Ff()!==this.appendWindowStart+this.start||this.z4.xA()!==this.appendWindowEnd+this.start||this.z4.Ti()!==this.timestampOffset+this.start)this.z4.supports(1),this.z4.Kz(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.z4.uB(this.timestampOffset+this.start);this.z4.appendBuffer(J,K,n)}; g.u.abort=function(){this.z4.abort()}; g.u.remove=function(J,K){this.z4.remove(J+this.start,K+this.start)}; g.u.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.u.clear=function(){this.z4.clear()}; g.u.Kz=function(J,K){this.appendWindowStart=J;this.appendWindowEnd=K}; g.u.JA=function(){return this.timestampOffset+this.start}; g.u.Ff=function(){return this.appendWindowStart}; g.u.xA=function(){return this.appendWindowEnd}; g.u.uB=function(J){this.timestampOffset=J}; g.u.Ti=function(){return this.timestampOffset}; g.u.FL=function(J){J=this.z4.FL(J===void 0?!1:J);return rc(J,this.start,this.end)}; g.u.N$=function(){return this.z4.N$()}; g.u.TD=function(){return this.z4.TD()}; g.u.ox=function(){return this.z4.ox()}; g.u.hg=function(){return this.z4.hg()}; g.u.nC=function(){this.z4.nC()}; g.u.xE=function(J){return this.z4.xE(J)}; g.u.Ho=function(){return this.z4.Ho()}; g.u.qa=function(){return this.z4.qa()}; g.u.mB=function(J,K,n){this.z4.mB(J,K,n)}; g.u.zI=function(J,K,n){this.z4.zI(J,K,n)}; g.u.AI=function(J,K){return this.z4.AI(J,K)}; g.u.supports=function(J){return this.z4.supports(J)}; g.u.U5=function(){return this.z4.U5()}; g.u.isView=function(){return!0}; g.u.Ni=function(){return this.z4.Ni()?this.isActive:!1}; g.u.isLocked=function(){return this.XW&&!this.isActive}; g.u.FK=function(J){J=this.z4.FK(J);J.vw=this.start+"-"+this.end;return J}; g.u.bI=function(){return this.z4.bI()}; g.u.KW=function(){return this.z4.KW()}; g.u.Br=function(){return this.z4.Br()}; g.u.Xq=function(){this.z4.A6(this.Sf);g.hi.prototype.Xq.call(this)};var RX=!1;g.e(O_,g.hi);g.u=O_.prototype;g.u.appendBuffer=function(J,K,n){this.DR=!1;n&&(this.F4=n);if(J.length){var X;((X=this.jl)==null?0:X.appendBuffer)?this.jl.appendBuffer(J):this.jl?this.jl.append(J):this.Nx&&this.Nx.webkitSourceAppend(this.id,J)}K&&(K.isEncrypted()&&(this.CT=this.F4),K.type===3&&(this.mV=K),this.IU.push(K.Zr()),this.IU.length>4&&this.IU.shift());this.T_&&(this.T_.length>=2||J.length>1048576?delete this.T_:this.T_.push(J))}; g.u.abort=function(){try{this.jl?this.jl.abort():this.Nx&&this.Nx.webkitSourceAbort(this.id)}catch(K){if(elV){var J=new g.qt("Error while abort the source buffer: "+K.name+", "+K.message);g.ko(J)}}this.F4=this.mV=null}; g.u.remove=function(J,K,n){this.DR=!1;var X;if((X=this.jl)==null?0:X.remove)n&&n({b:jy(this.FL()),s:J,e:K}),this.jl.remove(J,K)}; g.u.removeAll=function(){this.remove(this.Ff(),this.xA())}; g.u.clear=function(){this.ox()||(this.abort(),this.removeAll(),this.CT=this.F4=this.mV=null,this.appendWindowStart=this.timestampOffset=0,this.WC=xc([],[]),this.DR=!1,this.T_=CP?[]:void 0,this.eL=!0)}; g.u.Ff=function(){if(RX&&this.VB)return this.appendWindowStart;var J;return((J=this.jl)==null?void 0:J.appendWindowStart)||0}; g.u.xA=function(){var J;return((J=this.jl)==null?void 0:J.appendWindowEnd)||0}; g.u.Kz=function(J,K){this.jl&&(RX&&this.VB?(this.appendWindowStart=J,this.jl.appendWindowEnd=K):J>this.Ff()?(this.jl.appendWindowEnd=K,this.jl.appendWindowStart=J):(this.jl.appendWindowStart=J,this.jl.appendWindowEnd=K))}; g.u.JA=function(){return this.timestampOffset}; g.u.uB=function(J){RX?this.timestampOffset=J:this.supports(1)&&(this.jl.timestampOffset=J)}; g.u.Ti=function(){return RX?this.timestampOffset:this.supports(1)?this.jl.timestampOffset:0}; g.u.FL=function(J){if(J===void 0?0:J)return this.DR||this.N$()||(this.WC=this.FL(!1),this.DR=!0),this.WC;try{return this.jl?this.jl.buffered:this.Nx?this.Nx.webkitSourceBuffered(this.id):xc([0],[Infinity])}catch(K){return xc([],[])}}; g.u.N$=function(){var J;return((J=this.jl)==null?void 0:J.updating)||!1}; g.u.ox=function(){return this.eL}; g.u.hg=function(){return!this.eL&&this.N$()}; g.u.nC=function(){this.eL=!1}; g.u.xE=function(J){var K=J==null?void 0:J.YF;J=J==null?void 0:J.containerType;return!K&&!J||K===this.YF&&J===this.containerType}; g.u.Ho=function(){return this.F4}; g.u.qa=function(){return this.CT}; g.u.AI=function(J,K){return this.containerType!==J||this.YF!==K}; g.u.mB=function(J,K,n){if(this.containerType!==J||n&&this.AI(J,n))this.supports(4),fP()&&this.jl.changeType(K),n&&(this.YF=n);this.containerType=J}; g.u.zI=function(J,K,n){this.containerType&&this.AI(J,K)&&fP()&&this.jl.changeType(n);this.containerType=J;this.YF=K}; g.u.U5=function(){return this.mV}; g.u.isView=function(){return!1}; g.u.supports=function(J){switch(J){case 1:var K;return((K=this.jl)==null?void 0:K.timestampOffset)!==void 0;case 0:var n;return!((n=this.jl)==null||!n.appendBuffer);case 2:var X;return!((X=this.jl)==null||!X.remove);case 3:var l,x;return!!(((l=this.jl)==null?0:l.addEventListener)&&((x=this.jl)==null?0:x.removeEventListener));case 4:return!(!this.jl||!this.jl.changeType);default:return!1}}; g.u.Ni=function(){return!this.N$()}; g.u.isLocked=function(){return!1}; g.u.FK=function(J){J.to=this.Ti();J.up=this.N$();var K,n=((K=this.jl)==null?void 0:K.appendWindowStart)||0,X;K=((X=this.jl)==null?void 0:X.appendWindowEnd)||Infinity;J.aw=n.toFixed(3)+"-"+K.toFixed(3);return J}; g.u.TD=function(){var J;return((J=this.jl)==null?void 0:J.writeHead)||0}; g.u.bI=function(){for(var J={},K=0;K=7&&PU7(this,function(){g.Ca(function(){yCq(J,J.getCurrentTime(),0)},500)}); return K}; g.u.seekTo=function(J){this.X7()>0&&(dE&&fH<4&&(J=Math.max(.1,J)),this.setCurrentTime(J))}; g.u.s3=function(){if(!this.Z&&this.tj)if(this.tj.C)try{var J;E_(this,{l:"mer",sr:(J=this.dQ)==null?void 0:J.QJ(),rs:AF(this.tj)});this.tj.clear();this.Z=this.tj;this.tj=void 0}catch(K){J=new g.qt("Error while clearing Media Source in MediaElement: "+K.name+", "+K.message),g.ko(J),this.stopVideo()}else this.stopVideo()}; g.u.stopVideo=function(){var J=this;if(!this.Z){var K;(K=this.tj)==null||G_3(K);if(Hbk){if(!this.X){var n=new Nb;n.then(void 0,function(){}); this.X=n;Rl7&&this.pause();g.Ca(function(){J.X===n&&(oK(J),n.resolve())},200)}}else oK(this)}}; g.u.M$=function(){var J=this.Ya();return $c(J)&&this.getDuration()?v5(J,this.getCurrentTime()):0}; g.u.Rl=function(){var J=this.getDuration();return J===Infinity?1:J?this.M$()/J:0}; g.u.FK=function(){try{var J=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:jy(this.Vt(),",",3),vbu:jy(this.Ya()),vbs:jy(this.OV()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.X7(),vns:""+this.Pf(),vec:""+this.TR(),vemsg:this.Zo(),vvol:""+this.getVolume(),vdom:""+ +this.XU(),vsrc:""+ +!!this.Gy(),vw:""+J.width,vh:""+J.height}}catch(K){return{}}}; g.u.hasError=function(){return this.TR()>0}; g.u.addEventListener=function(J,K){this.U.listen(J,K,!1,this);this.W7(J)}; g.u.removeEventListener=function(J,K){this.U.rR(J,K,!1,this)}; g.u.dispatchEvent=function(J){if(this.X&&J.type==="pause")return!1;if(uyp){var K,n=((K=J.G)==null?void 0:K.timeStamp)||Infinity;K=n>performance.now()?n-Date.now()+performance.now():n;n=this.Z||this.tj;if((n==null?0:n.ox())||K<=((n==null?void 0:n.N)||0)){var X;E_(this,{l:"mede",sr:(X=this.dQ)==null?void 0:X.QJ(),et:J.type});return!1}if(this.m2)return E_(this,{l:"medes",et:J.type}),n&&J.type==="seeking"&&(n.N=performance.now(),this.m2=!1),!1}return this.U.dispatchEvent(J)}; g.u.Cf=function(){this.N=!1}; g.u.B7=function(){this.N=!0;this.Ic(!0)}; g.u.Zi=function(){this.N&&!this.Bf()&&this.Ic(!0)}; g.u.equals=function(J){return!!J&&J.xr()===this.xr()}; g.u.Xq=function(){this.W&&this.removeEventListener("volumechange",this.Zi);Hbk&&oK(this);g.t.prototype.Xq.call(this)}; var Hbk=!1,Rl7=!1,uyp=!1,WBV=!1;g.u=g.lH.prototype;g.u.isPaused=function(){return g.E(this,4)}; g.u.isPlaying=function(){return g.E(this,8)&&!g.E(this,512)&&!g.E(this,64)&&!g.E(this,2)}; g.u.isOrWillBePlaying=function(){return g.E(this,8)&&!g.E(this,2)&&!g.E(this,1024)}; g.u.isCued=function(){return g.E(this,64)&&!g.E(this,8)&&!g.E(this,4)}; g.u.isBuffering=function(){return g.E(this,1)&&!g.E(this,2)}; g.u.isError=function(){return g.E(this,128)}; g.u.isSuspended=function(){return g.E(this,512)}; g.u.GZ=function(){return g.E(this,64)&&g.E(this,4)}; g.u.toString=function(){return"PSt."+this.state.toString(16)}; var yB={},Z3=(yB.BUFFERING="buffering-mode",yB.CUED="cued-mode",yB.ENDED="ended-mode",yB.PAUSED="paused-mode",yB.PLAYING="playing-mode",yB.SEEKING="seeking-mode",yB.UNSTARTED="unstarted-mode",yB);g.e(s9,g.t);g.u=s9.prototype;g.u.Rp=function(){return this.X}; g.u.Jx=function(){return this.slot}; g.u.e_=function(){return this.layout}; g.u.init=function(){var J=XV(this.layout.clientMetadata,"metadata_type_video_length_seconds"),K=XV(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");e_(this.layout.dN)&&JY(this.pU.get(),this.layout.layoutId,{XP:K,p4:J,listener:this,m5:this.A7()});YqV(this.NQ.get(),this);J=this.gK;K=this.layout.layoutId;var n={m5:this.A7()};J.G.set(K,n);this.zD()}; g.u.bz=function(){}; g.u.release=function(){e_(this.layout.dN)&&K2(this.pU.get(),this.layout.layoutId);Gw8(this.NQ.get(),this);this.gK.G.delete(this.layout.layoutId);this.xg()}; g.u.qD=function(){}; g.u.HL=function(){}; g.u.startRendering=function(J){z2(Ch(this));if(O9(this,J)){var K=this.G;wY(K.params.gG.xF.get(),!0)&&zBU(K,"p_sr",{});Hh(this);this.P8(J);this.A7()||this.E1(!1)}}; g.u.gN=function(J,K){if(K.layoutId===this.layout.layoutId){this.I5="rendering";this.Z=this.bx.get().isMuted()||this.bx.get().getVolume()===0;this.R5("impression");this.R5("start");if(this.bx.get().isMuted()){Ph(this,"mute");var n;J=((n=rq(this))==null?void 0:n.muteCommands)||[];Zo(this.cw.get(),J,this.layout.layoutId)}if(this.bx.get().isFullscreen()){this.Lh("fullscreen");var X;n=((X=rq(this))==null?void 0:X.fullscreenCommands)||[];Zo(this.cw.get(),n,this.layout.layoutId)}this.A7()||(X=this.n9.get(), X.X&&!X.Z&&(X.C=!1,X.Z=!0,X.actionType!=="ad_to_video"&&(Ws("pbs",void 0,X.actionType),g.ef("finalize_all_timelines")&&o4k(X.actionType))));this.VL(1);this.oY(K);var l;K=((l=rq(this))==null?void 0:l.impressionCommands)||[];Zo(this.cw.get(),K,this.layout.layoutId)}}; g.u.SH=function(J,K,n){this.W={MU:3,dZ:J==="load_timeout"?402:400,errorMessage:K.message};this.R5("error");var X;J=((X=rq(this))==null?void 0:X.errorCommands)||[];Zo(this.cw.get(),J,this.layout.layoutId);this.A7()||this.q1.OB(this.slot,this.layout,K,n)}; g.u.Jb=function(){if(this.I5==="rendering"){Ph(this,"pause");var J,K=((J=rq(this))==null?void 0:J.pauseCommands)||[];Zo(this.cw.get(),K,this.layout.layoutId);this.VL(2)}}; g.u.kV=function(){if(this.I5==="rendering"){Ph(this,"resume");var J,K=((J=rq(this))==null?void 0:J.resumeCommands)||[];Zo(this.cw.get(),K,this.layout.layoutId)}}; g.u.Re=function(J,K){K=K===void 0?!1:K;if(this.I5==="rendering"){var n={currentTimeSec:J,flush:K};Pf(this.G,"p_ip",n);pG(this.yG,J*1E3,K);this.Z||pG(this.yG,J*1E3,K===void 0?!1:K);var X=this.LC();if(X){X/=1E3;if(J>=X*.25||K)this.R5("first_quartile"),Pf(this.G,"p_fq",n);if(J>=X*.5||K)this.R5("midpoint"),Pf(this.G,"p_sq",n);if(J>=X*.75||K)this.R5("third_quartile"),Pf(this.G,"p_tq",n);this.xF.get().B.S().experiments.sM("enable_progress_command_flush_on_kabuki")?G6(this.U,J*1E3,K):G6(this.U,J*1E3,AC8(this)? K:!1)}}}; g.u.qB=function(){var J;return((J=RK(this.Jj.get(),1))==null?void 0:J.clientPlaybackNonce)||""}; g.u.tU=function(J,K){J.layoutId!==this.layout.layoutId?this.q1.OB(this.slot,J,new nQ("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"):K()}; g.u.hH=function(J,K,n){if(K.layoutId===this.layout.layoutId)switch(this.I5="not_rendering",this.layoutExitReason=void 0,this.A7()||(J=n!=="normal"||this.position+1===this.N)&&this.E1(J),this.Hm(n),this.VL(0),n){case "abandoned":if(LG(this.yG,"impression")){var X,l=((X=rq(this))==null?void 0:X.abandonCommands)||[];Zo(this.cw.get(),l,this.layout.layoutId)}break;case "normal":X=((l=rq(this))==null?void 0:l.completeCommands)||[];Zo(this.cw.get(),X,this.layout.layoutId);break;case "skipped":var x;X=((x= rq(this))==null?void 0:x.skipCommands)||[];Zo(this.cw.get(),X,this.layout.layoutId)}}; g.u.SA=function(){return this.layout.layoutId}; g.u.Kf=function(){return this.W}; g.u.yV=function(){if(this.I5==="rendering"){this.yG.R5("active_view_measurable");var J,K=((J=rq(this))==null?void 0:J.activeViewMeasurableCommands)||[];Zo(this.cw.get(),K,this.layout.layoutId)}}; g.u.wq=function(){if(this.I5==="rendering"){this.yG.R5("active_view_fully_viewable_audible_half_duration");var J,K=((J=rq(this))==null?void 0:J.activeViewFullyViewableAudibleHalfDurationCommands)||[];Zo(this.cw.get(),K,this.layout.layoutId)}}; g.u.gq=function(){if(this.I5==="rendering"){this.yG.R5("active_view_viewable");var J,K=((J=rq(this))==null?void 0:J.activeViewViewableCommands)||[];Zo(this.cw.get(),K,this.layout.layoutId)}}; g.u.T8=function(){if(this.I5==="rendering"){this.yG.R5("audio_audible");var J,K=((J=rq(this))==null?void 0:J.activeViewAudioAudibleCommands)||[];Zo(this.cw.get(),K,this.layout.layoutId)}}; g.u.aM=function(){if(this.I5==="rendering"){this.yG.R5("audio_measurable");var J,K=((J=rq(this))==null?void 0:J.activeViewAudioMeasurableCommands)||[];Zo(this.cw.get(),K,this.layout.layoutId)}}; g.u.E1=function(J){this.n9.get().E1(XV(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,J,this.position,this.N,!1)}; g.u.onFullscreenToggled=function(J){if(this.I5==="rendering")if(J){this.Lh("fullscreen");var K,n=((K=rq(this))==null?void 0:K.fullscreenCommands)||[];Zo(this.cw.get(),n,this.layout.layoutId)}else this.Lh("end_fullscreen"),K=((n=rq(this))==null?void 0:n.endFullscreenCommands)||[],Zo(this.cw.get(),K,this.layout.layoutId)}; g.u.onVolumeChange=function(){if(this.I5==="rendering")if(this.bx.get().isMuted()){Ph(this,"mute");var J,K=((J=rq(this))==null?void 0:J.muteCommands)||[];Zo(this.cw.get(),K,this.layout.layoutId)}else Ph(this,"unmute"),J=((K=rq(this))==null?void 0:K.unmuteCommands)||[],Zo(this.cw.get(),J,this.layout.layoutId)}; g.u.Uy=function(){}; g.u.Ju=function(){}; g.u.mj=function(){}; g.u.CJ=function(){}; g.u.RP=function(){}; g.u.Lh=function(J){this.yG.Lh(J,!this.Z)}; g.u.R5=function(J){this.yG.R5(J,!this.Z)}; g.u.A7=function(){var J=XV(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return J===void 0?(Se("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.xF.get().A7(J)};g.e(ph,s9);g.u=ph.prototype;g.u.zD=function(){}; g.u.xg=function(){var J=this.NQ.get();J.sZ===this&&(J.sZ=null);this.R9.stop()}; g.u.qD=function(){this.R9.stop();s9.prototype.Jb.call(this)}; g.u.HL=function(){TZ(this);s9.prototype.kV.call(this)}; g.u.LC=function(){return XV(this.e_().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.u.IZ=function(J,K){var n=this;this.tU(J,function(){n.I5!=="rendering_stop_requested"&&(n.I5="rendering_stop_requested",n.layoutExitReason=K,uH(n,K),n.R9.stop())})}; g.u.MH=function(){var J=Date.now(),K=J-this.V7;this.V7=J;this.pJ+=K;this.pJ>=this.LC()?this.wY():(this.Re(this.pJ/1E3),Lh(this,this.pJ))}; g.u.Hm=function(){}; g.u.k6=function(){}; g.e(DO,ph);g.u=DO.prototype;g.u.Vh=function(J){if(this.I5!=="not_rendering"){J=eR(this,J);var K=this.bx.get().getPresentingPlayerType()===2;this.I5==="rendering_start_requested"?K&&hl(J)&&this.aQ():K?g.C1(J,2)?Se("Receive player ended event during MediaBreak",this.Jx(),this.e_()):zZ(this,J):this.vy()}}; g.u.P8=function(){EDV(this);Es3(this.bx.get());this.NQ.get().sZ=this;ZS("pbp")||ZS("pbs")||Ws("pbp");ZS("pbp","watch")||ZS("pbs","watch")||Ws("pbp",void 0,"watch");this.aQ()}; g.u.oY=function(J){this.n9.get();var K=XV(J.clientMetadata,"metadata_type_ad_placement_config").kind,n=this.position===0;J=XV(J.clientMetadata,"metadata_type_linked_in_player_layout_type");J={adBreakType:wq(K),adType:VQ3(J)};var X=void 0;n?K!=="AD_PLACEMENT_KIND_START"&&(X="video_to_ad"):X="ad_to_ad";Ul("ad_mbs",void 0,X);g.tB(J,X);TZ(this)}; g.u.vy=function(){this.pW()}; g.u.wY=function(){Nf7(this);this.pW()}; g.e(dq,ph);g.u=dq.prototype;g.u.Vh=function(J){this.I5!=="not_rendering"&&(J=eR(this,J),zZ(this,J))}; g.u.P8=function(){Se("Not used in SSAP")}; g.u.oY=function(){TZ(this)}; g.u.vy=function(){Se("Not used in SSAP")}; g.u.wY=function(){Nf7(this);this.q1.eV(this.Jx(),this.e_(),"normal")}; g.e(kI,dq);kI.prototype.IZ=function(J,K){var n=this;this.tU(J,function(){Ou(n.X,K)&&(n.I5="rendering_stop_requested",n.layoutExitReason=K,uH(n,K),n.R9.stop())})}; kI.prototype.startRendering=function(J){z2(Ch(this));O9(this,J)&&(Hh(this),this.NQ.get().sZ=this)};g.e(YI,s9);g.u=YI.prototype;g.u.vy=function(){this.pW()}; g.u.Vh=function(J){if(this.I5!=="not_rendering"){J=eR(this,J);var K=this.bx.get().getPresentingPlayerType()===2;this.I5==="rendering_start_requested"?K&&hl(J)&&this.aQ():!K||g.C1(J,2)?this.pW():zZ(this,J)}}; g.u.zD=function(){XV(this.e_().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=XV(this.e_().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.u.xg=function(){XV(this.e_().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.Cs){var J=this.context.gG,K=this.Cs,n=this.e_().layoutId;if(wY(J.xF.get(),!0)){var X={};J.zA("mccru",(X.cid=K,X.p_ac=n,X))}this.jh.get().removeCueRange(this.Cs)}this.Cs=void 0;var l;(l=this.RC)==null||l.dispose();this.Ds&&this.Ds.dispose()}; g.u.P8=function(J){var K=gq(this.xF.get()),n=ch(this.xF.get());if(K&&n&&!this.A7()){n=XV(J.clientMetadata,"metadata_type_preload_player_vars");var X=this.xF.get();X=g.Qg(X.B.S().experiments,"html5_preload_wait_time_secs");n&&this.Ds&&this.Ds.start(X*1E3)}nmq(this,J);EDV(this);K?(n=this.p9.get(),J=XV(J.clientMetadata,"metadata_type_player_vars"),n.B.loadVideoByPlayerVars(J,!1,2)):VN3(this.p9.get(),XV(J.clientMetadata,"metadata_type_player_vars"));var l;(l=this.RC)==null||l.start();K||this.p9.get().B.playVideo(2)}; g.u.oY=function(){var J;(J=this.RC)==null||J.stop();this.Cs="adcompletioncuerange:"+this.e_().layoutId;this.jh.get().addCueRange(this.Cs,0x7ffffffffffff,0x8000000000000,!1,this,2,2);J=this.context.gG;var K=this.Cs,n=this.e_().layoutId;if(wY(J.xF.get(),!0)){var X={};J.zA("mccr",(X.cid=K,X.p_ac=n,X))}(this.adCpn=qC3(this))||Se("Media layout confirmed started, but ad CPN not set.");this.eh.get().Vx("onAdStart",this.adCpn);this.kU=Date.now()}; g.u.LC=function(){var J;return(J=RK(this.Jj.get(),2))==null?void 0:J.eW}; g.u.Q_=function(){this.yG.Lh("clickthrough")}; g.u.IZ=function(J,K){var n=this;this.tU(J,function(){if(n.I5!=="rendering_stop_requested"){n.I5="rendering_stop_requested";n.layoutExitReason=K;uH(n,K);var X;(X=n.RC)==null||X.stop();n.Ds&&n.Ds.stop();omf(n)}})}; g.u.onCueRangeEnter=function(J){if(J!==this.Cs)Se("Received CueRangeEnter signal for unknown layout.",this.Jx(),this.e_(),{cueRangeId:J});else{var K=this.context.gG,n=this.e_().layoutId;if(wY(K.xF.get(),!0)){var X={};K.zA("mccre",(X.cid=J,X.p_ac=n,X))}this.jh.get().removeCueRange(this.Cs);this.Cs=void 0;FV(this.context.xF.get(),"html5_ssap_flush_at_stop_rendering")&&this.A7()||(J=XV(this.e_().clientMetadata,"metadata_type_video_length_seconds"),this.Re(J,!0),this.R5("complete"))}}; g.u.Hm=function(J){J!=="abandoned"&&this.eh.get().Vx("onAdComplete");this.eh.get().Vx("onAdEnd",this.adCpn)}; g.u.onCueRangeExit=function(){}; g.u.k6=function(J){this.I5==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&J>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.bx.get().Yn(!0),this.Re(J))}; g.u.Re=function(J,K){s9.prototype.Re.call(this,J,K===void 0?!1:K);K=Date.now()-this.kU;var n=J*1E3,X={contentCpn:this.qB(),adCpn:qC3(this)};if(J-this.Wj>=5){var l=K=2||(this.WM.IZ(this.layout,K),J=FV(this.params.context.xF.get(),"html5_ssap_pass_transition_reason")&&K==="abandoned",this.lK()&&!J&&(FV(this.params.context.xF.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(K)||Se("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:K})),this.dR.get().finishSegmentByCpn(this.layout.layoutId, RK(this.Jj.get(),1).clientPlaybackNonce,iH(K,this.params.context.xF))),this.bx.get().removeListener(this),this.mA()&&Hf(this.WM.Rp())&&this.gr.hH(this.slot,this.layout,CJ(this.WM.Rp())))}; g.u.j0=function(J,K,n){ua8({cpn:J,KH:this.Jj.get(),v$:!0});this.e_().layoutId!==J||FV(this.params.context.xF.get(),"html5_ssap_pass_transition_reason")&&n===5||(rY(this.WM.Rp())<2&&(J=Bh(n,this.params.context.xF),J==="error"?this.gr.OB(this.slot,this.layout,new nQ("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:n},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):qn(this.Xh,this.layout, J)),FV(this.params.context.xF.get(),"html5_ssap_exit_without_waiting_for_transition")||this.gr.hH(this.slot,this.layout,CJ(this.WM.Rp())))};g.e(ZO,g.t);g.u=ZO.prototype;g.u.Jx=function(){return this.slot}; g.u.e_=function(){return this.layout}; g.u.Aw=function(){}; g.u.Fh=function(){return this.FH[this.fu]}; g.u.MB=function(){return this.fu}; g.u.qD=function(J,K){var n=this.Fh();K.layoutId!==Wh(n,J,K)?Se("pauseLayout for a PlayerBytes layout that is not currently active",J,K):n.qD()}; g.u.HL=function(J,K){var n=this.Fh();K.layoutId!==Wh(n,J,K)?Se("resumeLayout for a PlayerBytes layout that is not currently active",J,K):n.HL()}; g.u.mT=function(J,K){var n=this.Fh();Slf(this,J,K);rB3(n,J,K)&&this.pm(n.Jx(),n.e_(),"skipped")}; g.u.e0=function(J,K){var n=this.Fh();sMH(this);CD3(n,J,K)&&(J=Oor(this,n,J,K),J!==void 0&&(this.A7()?Se("Should not happen. Should delete"):RdM(this,n.Jx(),n.e_(),J)))}; g.u.cU=function(J,K){var n=Object.assign({},fh(this),{layoutId:K.layoutId}),X=n.layoutId,l=n.v$;if(n.m5){var x={};e$(n.KH,"wrse",(x.ec=X,x.is=l,x.ctp=ux(X),x))}iO(this.M1,J,K)}; g.u.gN=function(J,K){var n;(n=this.Fh())==null||n.gN(J,K)}; g.u.hH=function(J,K,n){K.layoutId===this.e_().layoutId&&(this.OD=!1,sY(this.Sl(),this));var X;(X=this.Fh())==null||X.hH(J,K,n)}; g.u.k6=function(J){var K;(K=this.Fh())==null||K.k6(J)}; g.u.y$=function(J,K,n){this.MB()===-1&&(this.callback.gN(this.slot,this.layout),this.fu++);var X=this.Fh();X?(X.SH(J,K,n),this.A7()&&this.callback.OB(this.slot,this.layout,K,n)):Se("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.MB()),layoutId:this.e_().layoutId})}; g.u.onFullscreenToggled=function(J){var K;(K=this.Fh())==null||K.onFullscreenToggled(J)}; g.u.Uy=function(J){var K;(K=this.Fh())==null||K.Uy(J)}; g.u.mj=function(J){var K;(K=this.Fh())==null||K.mj(J)}; g.u.onVolumeChange=function(){var J;(J=this.Fh())==null||J.onVolumeChange()}; g.u.vC=function(J,K,n){Bb(this.M1,J,K,n)}; g.u.CP=function(J){J.startRendering(J.e_())}; g.u.init=function(){var J=XV(this.e_().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");J&&(J.current=this);if(this.FH.length<1)throw new b("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.FH.length)});if(J=XV(this.e_().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))J.current=this;J=g.z(this.FH);for(var K=J.next();!K.done;K=J.next())K=K.value,K.init(),tEF(this.M1,this.slot,K.e_()),y4H(this.M1,this.slot,K.e_()); if(this.A7())for(this.Jj.get().addListener(this),rCk($53(this),this.Jj.get()),J=$53(this),J=g.z(J),K=J.next();!K.done;K=J.next())this.qn(K.value)}; g.u.qn=function(J){var K=XV(J.clientMetadata,"metadata_type_player_vars");K?(J.layoutType!=="LAYOUT_TYPE_MEDIA"&&Se("Non-video ad contains playerVars",this.slot,J),this.p9.get().addPlayerResponseForAssociation({playerVars:K})):(J=hde(J),this.p9.get().addPlayerResponseForAssociation({j3:J}))}; g.u.release=function(){var J=XV(this.e_().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");J&&(J.current=null);if(J=XV(this.e_().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))J.current=null;J=g.z(this.FH);for(var K=J.next();!K.done;K=J.next())K=K.value,ZZ3(this.M1,this.slot,K.e_()),K.release();this.A7()&&(this.Jj.get().removeListener(this),svH())}; g.u.tU=function(J){return J.layoutId!==this.e_().layoutId?(this.callback.OB(this.Jx(),J,new nQ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.e_().layoutId+("and LayoutType: "+this.e_().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.u.ZQ=function(){this.bx.get().addListener(this);rh(this.Sl(),this)}; g.u.Vh=function(J){if(J.state.isError()){var K,n;this.y$((K=J.state.V2)==null?void 0:K.errorCode,new nQ("There was a player error during this media layout.",{playerErrorCode:(n=J.state.V2)==null?void 0:n.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(K=this.Fh())&&K.Vh(J)}; g.u.A7=function(){var J=XV(this.Jx().clientMetadata,"metadata_type_eligible_for_ssap");return J===void 0?(Se("Expected SSAP eligibility in PlayerBytes slots",this.Jx(),this.e_()),!1):this.xF.get().A7(J)}; g.u.Ju=function(){}; g.u.aO=function(){}; g.u.oH=function(){}; g.u.jK=function(){}; g.u.qk=function(){}; g.u.UB=function(){}; g.u.BO=function(){}; g.u.PO=function(){}; g.u.dK=function(){}; g.u.Ao=function(){}; g.u.eT=function(){}; g.u.CJ=function(){}; g.u.RP=function(){}; g.e(E9,ZO);g.u=E9.prototype;g.u.qg=function(J,K,n){this.pm(J,K,n)}; g.u.Mg=function(J,K){this.pm(J,K,"error")}; g.u.pm=function(J,K,n){var X=this;Hok(this,J,K,n,function(){aK(X,X.MB()+1)})}; g.u.startRendering=function(J){this.tU(J)&&(this.ZQ(),lJH(this.n9.get()),rH7(this.xF.get())||Es3(this.bx.get()),this.MB()===-1&&aK(this,this.MB()+1))}; g.u.IZ=function(J,K){var n=this;this.OD=!0;this.MB()===this.FH.length?this.callback.hH(this.slot,this.layout,K):(J=this.Fh(),J.IZ(J.e_(),K),this.h2=function(){n.callback.hH(n.slot,n.layout,K)}); brf(this.bx.get());VN3(this.p9.get(),{});J=Nv(this.bx.get(),1);J.isPaused()&&!g.E(J,2)&&this.bx.get().playVideo();this.bx.get().removeListener(this);this.OD&&uwf(this)}; g.u.j0=function(){}; g.u.UW=function(){}; g.u.eV=function(){}; g.e(bH,ZO);g.u=bH.prototype;g.u.qg=function(J,K,n){J=Object.assign({},fh(this),{layoutId:K.layoutId,layoutExitReason:n});K=J.layoutId;n=J.layoutExitReason;var X={};e$(J.KH,"prse",(X.xc=K,X.ler=n,X.ctp=ux(K),X))}; g.u.Mg=function(){Se("onSubLayoutError in SSAP")}; g.u.pm=function(){Se("exitSubLayoutAndPlayNext in SSAP")}; g.u.Fh=function(){return this.ip}; g.u.MB=function(){var J=this;return this.FH.findIndex(function(K){var n;return K.e_().layoutId===((n=J.ip)==null?void 0:n.e_().layoutId)})}; g.u.CP=function(J){$D(this.ip===void 0,"replacing another adapter");this.ip=J;J.startRendering(J.e_())}; g.u.vC=function(J,K,n){Bb(this.M1,J,K,n);var X;$D(K.layoutId===((X=this.ip)==null?void 0:X.e_().layoutId),"currentAdapter does not match exiting layout",{slot:J?"slot: "+J.slotType:"",subLayout:QA(K)})&&(this.ip=void 0)}; g.u.release=function(){ZO.prototype.release.call(this);$D(this.ip===void 0,"currentAdapter is still active during release");this.ip=void 0}; g.u.lK=function(){return this.bx.get().getPresentingPlayerType()===2}; g.u.IZ=function(J,K){function n(){Ax(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(K)||Se("Composite stopRendering: Unexpected layout exit reason",this.slot,J,{layoutExitReason:K}))} function X(){this.ip&&Mn(this,this.ip,K);if(this.lK()&&(!Ax(this)||K!=="abandoned")){n.call(this);var x;var V=((x=this.Jj.get().B.getVideoData())==null?void 0:x.clientPlaybackNonce)||"";x=RK(this.Jj.get(),1).clientPlaybackNonce;this.dR.get().finishSegmentByCpn(V,x,iH(K,this.xF))}edk(this,K)} function l(){if(this.ip){var x=this.ip;rY(x.Rp())<2&&x.IZ(x.e_(),K);x=Ax(this)&&K==="abandoned";this.lK()&&!x&&(n.call(this),this.dR.get().finishSegmentByCpn(this.ip.e_().layoutId,RK(this.Jj.get(),1).clientPlaybackNonce,iH(K,this.xF)))}} $D(J.layoutId===this.e_().layoutId,"StopRendering for wrong layout")&&Ou(this.qo.Z,K)&&(this.mA()?X.call(this):l.call(this))}; g.u.hH=function(J,K,n){ZO.prototype.hH.call(this,J,K,n);K.layoutId===this.e_().layoutId&&this.bx.get().removeListener(this)}; g.u.qB=function(){return RK(this.Jj.get(),1).clientPlaybackNonce}; g.u.j0=function(J,K,n){ua8(Object.assign({},fh(this),{cpn:J}));if(!Ax(this)||n!==5)if(this.mA()){if(this.ip&&this.ip.e_().layoutId!==K){var X=this.ip.e_().layoutId;X!==J&&Se("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:X,exitingCpn:J,enteringCpn:K});J=Bh(n,this.xF);Mn(this,this.ip,J)}else this.ip&&Se("onClipExited: active layout is entering again");K===this.qB()&&ws7(this,n)}else{if(this.ip&&this.ip.e_().layoutId===J)zd8(this,this.ip,n);else{var l;Se("Exiting cpn does not match active cpn", this.slot,(X=this.ip)==null?void 0:X.e_(),{exitingCpn:J,transitionReason:n,activeCpn:(l=this.ip)==null?void 0:l.e_().layoutId})}K===this.qB()&&(this.ip!==void 0&&(Se("active adapter is not properly exited",this.slot,this.layout,{activeLayout:QA(this.ip.e_())}),zd8(this,this.ip,n)),ws7(this,n),edk(this,this.qo.Z.G))}}; g.u.mA=function(){return FV(this.xF.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.u.startRendering=function(J){this.tU(J)&&(J=this.qo,$D(J.G===1,"tickStartRendering: state is not initial"),J.G=2,this.ZQ())}; g.u.UW=function(J){RBM(Object.assign({},fh(this),{cpn:J}));var K=this.FH.find(function(n){return n.e_().layoutId===J}); K?(this.qo.G!==2&&(x6d(this.uh,this.slot.slotId),$D(this.qo.G===2,"Expect started"),this.callback.gN(this.slot,this.layout)),this.CP(K),iO(this.M1,this.slot,K.e_())):PDp(this,J)}; g.u.mT=function(J,K){Slf(this,J,K);var n=this.Fh();n?rB3(n,J,K)&&ISH(this,"skipped"):iof(this,"onSkipRequested")}; g.u.e0=function(J,K){var n;a:{if(n=this.Fh()){if(sMH(this),CD3(n,J,K)&&(J=Oor(this,n,J,K),J!==void 0)){n={wM:n,oav:this.FH[J]};break a}}else iof(this,"SkipWithAdPodSkip");n=void 0}if(J=n)n=J.wM,K=J.oav,J=n.e_().layoutId,this.mA()?Mn(this,n,"skipped"):n.IZ(n.e_(),"skipped"),n=K.e_().layoutId,this.dR.get().finishSegmentByCpn(J,n,iH("skipped",this.xF))}; g.u.cU=function(){Se("Not used in html5_ssap_fix_layout_exit")}; g.u.Vh=function(J){var K;(K=this.Fh())==null||K.Vh(J)}; g.u.y$=function(){Se("Not used in html5_ssap_fix_layout_exit")}; g.u.eV=function(J,K,n){var X;if(((X=this.Fh())==null?void 0:X.e_().layoutId)!==K.layoutId)return void Se("requestToExitSubLayout: wrong layout");ISH(this,n)};g.e(Nn,g.t);g.u=Nn.prototype;g.u.Jx=function(){return this.WM.Jx()}; g.u.e_=function(){return this.WM.e_()}; g.u.init=function(){var J=XV(this.e_().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");J&&(J.current=this);this.zD()}; g.u.zD=function(){this.WM.init()}; g.u.release=function(){var J=XV(this.e_().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");J&&(J.current=null);this.xg()}; g.u.xg=function(){this.WM.release()}; g.u.qD=function(){this.WM.qD()}; g.u.HL=function(){this.WM.HL()}; g.u.mT=function(J,K){Se("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.Jx(),this.e_(),{requestingSlot:J,requestingLayout:K})}; g.u.startRendering=function(J){J.layoutId!==this.e_().layoutId?this.callback.OB(this.Jx(),J,new nQ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.e_().layoutId+("and LayoutType: "+this.e_().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.bx.get().addListener(this),rh(this.Sl(),this),lJH(this.n9.get()),rH7(this.xF.get())||Es3(this.bx.get()),this.WM.startRendering(J))}; g.u.IZ=function(J,K){this.OD=!0;this.WM.IZ(J,K);brf(this.bx.get());VN3(this.p9.get(),{});J=Nv(this.bx.get(),1);J.isPaused()&&!g.E(J,2)&&this.bx.get().playVideo();this.bx.get().removeListener(this);this.OD&&this.WM.vy()}; g.u.gN=function(J,K){this.WM.gN(J,K)}; g.u.hH=function(J,K,n){K.layoutId===this.e_().layoutId&&(this.OD=!1,sY(this.Sl(),this));this.WM.hH(J,K,n);K.layoutId===this.e_().layoutId&&Fj(this.n9.get())}; g.u.k6=function(J){this.WM.k6(J)}; g.u.Vh=function(J){if(J.state.isError()){var K,n;this.y$((K=J.state.V2)==null?void 0:K.errorCode,new nQ("There was a player error during this media layout.",{playerErrorCode:(n=J.state.V2)==null?void 0:n.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.WM.Vh(J)}; g.u.y$=function(J,K,n){this.WM.SH(J,K,n)}; g.u.onFullscreenToggled=function(J){this.WM.onFullscreenToggled(J)}; g.u.Uy=function(J){this.WM.Uy(J)}; g.u.mj=function(J){this.WM.mj(J)}; g.u.onVolumeChange=function(){this.WM.onVolumeChange()}; g.u.Ju=function(){}; g.u.aO=function(){}; g.u.oH=function(){}; g.u.jK=function(){}; g.u.qk=function(){}; g.u.UB=function(){}; g.u.BO=function(){}; g.u.PO=function(){}; g.u.dK=function(){}; g.u.Ao=function(){}; g.u.eT=function(){}; g.u.CJ=function(){}; g.u.RP=function(){};g.u=Jd.prototype;g.u.Jx=function(){return this.slot}; g.u.e_=function(){return this.layout}; g.u.init=function(){this.tB.get().addListener(this);this.bx.get().addListener(this);var J=XV(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var K=XV(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.U){var n=n8H(this.tB.get()).slice(-1)[0];n!==void 0&&(J=n.startSecs*1E3,K=(n.startSecs+n.rW)*1E3)}this.bz(J,K);var X;n=(X=ng(this.Jj.get()))==null?void 0:X.clientPlaybackNonce;X=this.layout.U_.adClientDataEntry;Kg(this.NQ.get(),{daiStateTrigger:{filledAdsDurationMs:K-J,contentCpn:n, adClientData:X}});var l=this.tB.get();l=ps3(l.X,J,K);l!==null&&(Kg(this.NQ.get(),{daiStateTrigger:{filledAdsDurationMs:l-J,contentCpn:n,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:X}}),this.dR.get().uZ(l,K))}; g.u.release=function(){this.xg();this.tB.get().removeListener(this);this.bx.get().removeListener(this)}; g.u.startRendering=function(){this.P8();this.callback.gN(this.slot,this.layout)}; g.u.IZ=function(J,K){this.Gs(K);if(this.driftRecoveryMs!==null){J=this.driftRecoveryMs.toString();var n=Math.round(Lue(this)-XV(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),X=Math,l=X.round;var x=this.bx.get().B.UR();oz(this,{driftRecoveryMs:J,breakDurationMs:n,driftFromHeadMs:l.call(X,x*1E3).toString()});this.driftRecoveryMs=null}this.callback.hH(this.slot,this.layout,K)}; g.u.T$=function(){return!1}; g.u.uS=function(J){var K=XV(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),n=XV(this.layout.clientMetadata,"metadata_type_layout_exit_ms");J*=1E3;if(K<=J&&J0&&mh(this.G(),K)}; g.u.oH=function(J){this.C.delete(J.slotId);for(var K=[],n=g.z(this.E_.values()),X=n.next();!X.done;X=n.next()){X=X.value;var l=X.trigger;l instanceof Mh&&l.triggeringSlotId===J.slotId&&K.push(X)}K.length>0&&mh(this.G(),K)}; g.u.jK=function(J){for(var K=[],n=g.z(this.E_.values()),X=n.next();!X.done;X=n.next()){X=X.value;var l=X.trigger;l instanceof yJ&&l.slotType===J.slotType&&l.G!==J.slotId&&K.push(X)}K.length>0&&mh(this.G(),K)}; g.u.qk=function(J){this.X.add(J.slotId);for(var K=[],n=g.z(this.E_.values()),X=n.next();!X.done;X=n.next())X=X.value,X.trigger instanceof Fn&&J.slotId===X.trigger.triggeringSlotId&&K.push(X);K.length>0&&mh(this.G(),K)}; g.u.UB=function(J){this.X.delete(J.slotId);this.U.add(J.slotId);for(var K=[],n=g.z(this.E_.values()),X=n.next();!X.done;X=n.next())if(X=X.value,X.trigger instanceof qh)J.slotId===X.trigger.triggeringSlotId&&K.push(X);else if(X.trigger instanceof Lg){var l=X.trigger;J.slotId===l.slotId&&this.Z.has(l.triggeringLayoutId)&&K.push(X)}K.length>0&&mh(this.G(),K)}; g.u.BO=function(J){for(var K=[],n=g.z(this.E_.values()),X=n.next();!X.done;X=n.next())X=X.value,X.trigger instanceof EA&&J.slotId===X.trigger.triggeringSlotId&&K.push(X);K.length>0&&mh(this.G(),K)}; g.u.PO=function(J){for(var K=[],n=g.z(this.E_.values()),X=n.next();!X.done;X=n.next())X=X.value,X.trigger instanceof bb&&J.slotId===X.trigger.triggeringSlotId&&K.push(X);K.length>0&&mh(this.G(),K)}; g.u.dK=function(J,K){this.N.add(K.layoutId)}; g.u.Ao=function(J,K){this.N.delete(K.layoutId)}; g.u.gN=function(J,K){this.Z.add(K.layoutId);for(var n=[],X=g.z(this.E_.values()),l=X.next();!l.done;l=X.next())if(l=l.value,l.trigger instanceof TN)K.layoutId===l.trigger.triggeringLayoutId&&n.push(l);else if(l.trigger instanceof td){var x=l.trigger;J.slotType===x.slotType&&K.layoutType===x.layoutType&&K.layoutId!==x.G&&n.push(l)}else l.trigger instanceof Lg&&(x=l.trigger,K.layoutId===x.triggeringLayoutId&&this.U.has(x.slotId)&&n.push(l));n.length>0&&mh(this.G(),n)}; g.u.hH=function(J,K,n){this.Z.delete(K.layoutId);J=[];for(var X=g.z(this.E_.values()),l=X.next();!l.done;l=X.next())if(l=l.value,l.trigger instanceof dO&&K.layoutId===l.trigger.triggeringLayoutId&&J.push(l),l.trigger instanceof D7){var x=l.trigger;K.layoutId===x.triggeringLayoutId&&x.G.includes(n)&&J.push(l)}J.length>0&&mh(this.G(),J)}; g.u.eT=function(){}; g.u.HH=function(){this.U.clear()}; g.u.J0=function(){};g.e(Zd,g.t);Zd.prototype.yI=function(J,K,n,X){if(this.E_.has(K.triggerId))throw new b("Tried to register duplicate trigger for slot.");if(!(K instanceof m6))throw new b("Incorrect TriggerType: Tried to register trigger of type "+K.triggerType+" in CloseRequestedTriggerAdapter");this.E_.set(K.triggerId,new Ky(J,K,n,X))}; Zd.prototype.m1=function(J){this.E_.delete(J.triggerId)};g.e(W2,g.t);W2.prototype.yI=function(J,K,n,X){if(this.E_.has(K.triggerId))throw new b("Tried to register duplicate trigger for slot.");if(!(K instanceof BW||K instanceof fg))throw new b("Incorrect TriggerType: Tried to register trigger of type "+K.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.E_.set(K.triggerId,new Ky(J,K,n,X))}; W2.prototype.m1=function(J){this.E_.delete(J.triggerId)}; W2.prototype.HH=function(J){for(var K=[],n=K.push,X=n.apply,l=[],x=g.z(this.E_.values()),V=x.next();!V.done;V=x.next())V=V.value,V.trigger instanceof BW&&V.trigger.xi===J&&l.push(V);X.call(n,K,g.m(l));n=K.push;X=n.apply;l=[];x=g.z(this.E_.values());for(V=x.next();!V.done;V=x.next())V=V.value,V.trigger instanceof fg&&V.trigger.G!==J&&l.push(V);X.call(n,K,g.m(l));K.length&&mh(this.G(),K)}; W2.prototype.J0=function(J){for(var K=[],n=K.push,X=n.apply,l=[],x=g.z(this.E_.values()),V=x.next();!V.done;V=x.next()){V=V.value;var v=V.trigger;v instanceof fg&&v.G===J&&l.push(V)}X.call(n,K,g.m(l));K.length&&mh(this.G(),K)};g.e(a8,g.t);g.u=a8.prototype;g.u.yI=function(J,K,n,X){if(this.E_.has(K.triggerId))throw new b("Tried to register duplicate trigger for slot.");var l="adtriggercuerange:"+K.triggerId;if(K instanceof GN)AVM(this,J,K,n,X,l,K.G.start,K.G.end,K.xi,K.visible);else if(K instanceof pg)AVM(this,J,K,n,X,l,0x7ffffffffffff,0x8000000000000,K.xi,K.visible);else throw new b("Incorrect TriggerType: Tried to register trigger of type "+K.triggerType+" in CueRangeTriggerAdapter");}; g.u.m1=function(J){var K=this.E_.get(J.triggerId);K&&this.jh.get().removeCueRange(K.cueRangeId);this.E_.delete(J.triggerId)}; g.u.onCueRangeEnter=function(J){var K=MBd(this,J);if(K&&(K=this.E_.get(K)))if(g.E(Nv(this.bx.get()),32))this.G.add(K.cueRangeId);else{var n=K==null?void 0:K.mM.trigger;if(n instanceof GN||n instanceof pg){if(wY(this.context.xF.get())){var X=K.mM.slot,l=K.mM.layout,x={};this.context.gG.zA("cre",(x.ca=K.mM.category,x.tt=n.triggerType,x.st=X.slotType,x.lt=l==null?void 0:l.layoutType,x.cid=J,x))}mh(this.Z(),[K.mM])}}}; g.u.onCueRangeExit=function(J){(J=MBd(this,J))&&(J=this.E_.get(J))&&this.G.delete(J.cueRangeId)}; g.u.Vh=function(J){if(sC(J,16)<0){J=g.z(this.G);for(var K=J.next();!K.done;K=J.next())this.onCueRangeEnter(K.value,!0);this.G.clear()}}; g.u.aO=function(){}; g.u.oH=function(){}; g.u.jK=function(){}; g.u.qk=function(){}; g.u.UB=function(){}; g.u.BO=function(){}; g.u.PO=function(){}; g.u.dK=function(){}; g.u.Ao=function(){}; g.u.gN=function(){}; g.u.hH=function(){}; g.u.eT=function(){}; g.u.k6=function(){}; g.u.onFullscreenToggled=function(){}; g.u.Uy=function(){}; g.u.Ju=function(){}; g.u.mj=function(){}; g.u.onVolumeChange=function(){}; g.u.CJ=function(){}; g.u.RP=function(){};g.e(FT,g.t);g.u=FT.prototype; g.u.yI=function(J,K,n,X){if(this.Z.has(K.triggerId)||this.X.has(K.triggerId))throw new b("Tried to re-register the trigger.");J=new Ky(J,K,n,X);if(J.trigger instanceof YL)this.Z.set(J.trigger.triggerId,J);else if(J.trigger instanceof kL)this.X.set(J.trigger.triggerId,J);else throw new b("Incorrect TriggerType: Tried to register trigger of type "+J.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.Z.has(J.trigger.triggerId)&&J.slot.slotId===this.G&&mh(this.U(),[J])}; g.u.m1=function(J){this.Z.delete(J.triggerId);this.X.delete(J.triggerId)}; g.u.Aw=function(J){J=J.slotId;if(this.G!==J){var K=[];this.G!=null&&K.push.apply(K,g.m(NDk(this.X,this.G)));J!=null&&K.push.apply(K,g.m(NDk(this.Z,J)));this.G=J;K.length&&mh(this.U(),K)}}; g.u.j0=function(){}; g.u.UW=function(){};g.e(qP,g.t);g.u=qP.prototype;g.u.yI=function(J,K,n,X){if(this.E_.has(K.triggerId))throw new b("Tried to register duplicate trigger for slot.");if(!(K instanceof Z7))throw new b("Incorrect TriggerType: Tried to register trigger of type "+K.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.E_.set(K.triggerId,new Ky(J,K,n,X))}; g.u.m1=function(J){this.E_.delete(J.triggerId)}; g.u.gN=function(){}; g.u.hH=function(){}; g.u.aO=function(){}; g.u.oH=function(){}; g.u.jK=function(){}; g.u.qk=function(){}; g.u.UB=function(){}; g.u.BO=function(){}; g.u.PO=function(){}; g.u.dK=function(){}; g.u.Ao=function(){}; g.u.eT=function(){};g.e(EZ,g.t);g.u=EZ.prototype;g.u.eT=function(J,K){for(var n=[],X=g.z(this.E_.values()),l=X.next();!l.done;l=X.next()){l=l.value;var x=l.trigger;x.opportunityType===J&&(x.associatedSlotId&&x.associatedSlotId!==K||n.push(l))}n.length&&mh(this.G(),n)}; g.u.yI=function(J,K,n,X){if(this.E_.has(K.triggerId))throw new b("Tried to register duplicate trigger for slot.");if(!(K instanceof lpH))throw new b("Incorrect TriggerType: Tried to register trigger of type "+K.triggerType+" in OpportunityEventTriggerAdapter");this.E_.set(K.triggerId,new Ky(J,K,n,X))}; g.u.m1=function(J){this.E_.delete(J.triggerId)}; g.u.aO=function(){}; g.u.oH=function(){}; g.u.jK=function(){}; g.u.qk=function(){}; g.u.UB=function(){}; g.u.BO=function(){}; g.u.PO=function(){}; g.u.dK=function(){}; g.u.Ao=function(){}; g.u.gN=function(){}; g.u.hH=function(){};g.e(bL,g.t);g.u=bL.prototype;g.u.yI=function(J,K,n,X){J=new Ky(J,K,n,X);if(K instanceof gO||K instanceof UA||K instanceof cW||K instanceof WW||K instanceof lPr){if(this.E_.has(K.triggerId))throw new b("Tried to register duplicate trigger for slot.");this.E_.set(K.triggerId,J)}else throw new b("Incorrect TriggerType: Tried to register trigger of type "+K.triggerType+" in PrefetchTriggerAdapter");}; g.u.m1=function(J){this.E_.delete(J.triggerId)}; g.u.aO=function(J){var K=J.slotFulfillmentTriggers.find(function(n){return n instanceof gO}); K&&(A5(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",K.breakDurationMs,new Set([J.slotId]),!0),lb(this.NQ.get(),"ads_css","sid."+J.slotId+";bd."+K.breakDurationMs))}; g.u.oH=function(){}; g.u.jK=function(){}; g.u.qk=function(){}; g.u.UB=function(){}; g.u.BO=function(){}; g.u.PO=function(){}; g.u.dK=function(){}; g.u.Ao=function(){}; g.u.gN=function(){}; g.u.hH=function(){}; g.u.eT=function(){}; g.u.T$=function(J){var K=this;if(!this.G)return Se("Unexpected cue break before fetch instructions are available"),!1;this.Z&&this.Z.stop();this.X&&g.M0(this.X);var n=nGk(this,J);if(!n){for(var X=[],l=g.z(this.E_.values()),x=l.next();!x.done;x=l.next())x=x.value.trigger,x instanceof gO&&X.push(x.breakDurationMs);lb(this.NQ.get(),"ads_ncfs","cid."+J.identifier+";cd."+J.rW.toFixed(3)+X.slice(0,6).map(function(V){return";bd."+V}).join("")); return!1}(new g.AT(function(){var V=n.trigger,v=n.slot;A5(K,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",V.breakDurationMs,new Set,!0);A5(K,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",V.breakDurationMs,new Set,!1);for(var Q=0,S=g.z(K.E_.values()),r=S.next();!r.done;r=S.next()){r=r.value;var C=r.trigger;r.slot.slotId===v.slotId&&(K.E_.delete(C.triggerId),Q++)}lb(K.NQ.get(),"ads_csf","sid."+v.slotId+";bd."+V.breakDurationMs+";dt."+Q)},10)).start(); return!0}; g.u.uS=function(){}; g.u.HH=function(J){this.G&&this.G.contentCpn!==J?(Se("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:J,fetchInstructionsCpn:this.G.contentCpn}),MP(this)):KhH(this)}; g.u.J0=function(J){this.G&&this.G.contentCpn!==J&&Se("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:J,fetchInstructionsCpn:this.G.contentCpn},!0);MP(this)}; g.u.Ee=function(J){var K=this;if(this.G)Se("Unexpected multiple fetch instructions for the current content");else{this.G=J;J=Xbq(J);this.Z=new g.AT(function(){KhH(K)},J?J:6E5); this.Z.start();this.X=new g.AT(function(){K.G&&(K.Z&&(K.Z.stop(),K.Z.start()),J63(K,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},oGd(this.G)); J=wX(this.bx.get());for(var n=g.z(n8H(this.tB.get())),X=n.next();!X.done;X=n.next())X=X.value,lb(this.NQ.get(),"nocache","ct."+Date.now()+";cmt."+J+";d."+X.rW.toFixed(3)+";tw."+(X.startSecs-J)+";cid."+X.identifier+";")}}; g.u.Xq=function(){g.t.prototype.Xq.call(this);MP(this)};g.e(NP,g.t);g.u=NP.prototype;g.u.yI=function(J,K,n,X){if(this.E_.has(K.triggerId))throw new b("Tried to register duplicate trigger for slot.");if(!(K instanceof Jm))throw new b("Incorrect TriggerType: Tried to register trigger of type "+K.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.E_.set(K.triggerId,new Ky(J,K,n,X));J=this.G.has(K.triggeringLayoutId)?g.U(this.G.get(K.triggeringLayoutId)):new Set;J.add(K);this.G.set(K.triggeringLayoutId,J)}; g.u.m1=function(J){this.E_.delete(J.triggerId);if(!(J instanceof Jm))throw new b("Incorrect TriggerType: Tried to unregister trigger of type "+J.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var K=this.Z.get(J.triggerId);K&&(K.dispose(),this.Z.delete(J.triggerId));if(K=this.G.get(J.triggeringLayoutId))K.delete(J),K.size===0&&this.G.delete(J.triggeringLayoutId)}; g.u.aO=function(){}; g.u.oH=function(){}; g.u.jK=function(){}; g.u.qk=function(){}; g.u.UB=function(){}; g.u.BO=function(){}; g.u.PO=function(){}; g.u.dK=function(){}; g.u.Ao=function(){}; g.u.eT=function(){}; g.u.gN=function(J,K){var n=this;if(this.G.has(K.layoutId)){J=g.U(this.G.get(K.layoutId));J=g.z(J);var X=J.next();for(K={};!X.done;K={dF:void 0},X=J.next())K.dF=X.value,X=new g.AT(function(l){return function(){var x=g.U(n.E_.get(l.dF.triggerId));mh(n.X(),[x])}}(K),K.dF.durationMs),X.start(),this.Z.set(K.dF.triggerId,X)}}; g.u.hH=function(){};g.e(Jt,g.t);Jt.prototype.yI=function(J,K,n,X){if(this.E_.has(K.triggerId))throw new b("Tried to register duplicate trigger for slot.");if(!(K instanceof Iz))throw new b("Incorrect TriggerType: Tried to register trigger of type "+K.triggerType+" in VideoTransitionTriggerAdapter.");this.E_.set(K.triggerId,new Ky(J,K,n,X))}; Jt.prototype.m1=function(J){this.E_.delete(J.triggerId)};X1.prototype.pK=function(J){return J.kind==="AD_PLACEMENT_KIND_START"};g.e(jb,g.t);g.u=jb.prototype;g.u.logEvent=function(J){this.Qe(J)}; g.u.KJ=function(J,K,n){this.Qe(J,void 0,void 0,void 0,K,void 0,void 0,void 0,K.adSlotLoggingData,void 0,void 0,n)}; g.u.zR=function(J,K,n,X){this.Qe(J,void 0,void 0,void 0,K,n?n:void 0,void 0,void 0,K.adSlotLoggingData,n?n.adLayoutLoggingData:void 0,void 0,X)}; g.u.Fn=function(J,K,n,X){FV(this.xF.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+J,"trigger:",n,"slot:",K,"layout:",X);h6(this.G.get())&&this.Qe(J,void 0,void 0,void 0,K,X?X:void 0,void 0,n,K.adSlotLoggingData,X?X.adLayoutLoggingData:void 0)}; g.u.Wk=function(J,K,n,X,l){this.Qe(J,K,n,X,void 0,void 0,void 0,void 0,void 0,void 0,void 0,l)}; g.u.d5=function(J,K,n,X){this.Qe("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,n,X,void 0,void 0,n.adSlotLoggingData,X?X.adLayoutLoggingData:void 0,{errorType:J,errorMessage:K})}; g.u.Qe=function(J,K,n,X,l,x,V,v,Q,S,r,C){var O=this;C=C===void 0?0:C;FV(this.xF.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+J,"slot:",l,"layout:",x,"ping:",V,"Opportunity:",{opportunityType:K,associatedSlotId:n,Qo5:X,xod:v,adSlotLoggingData:Q,adLayoutLoggingData:S});try{var H=function(){if(!O.xF.get().B.S().J("html5_disable_client_tmp_logs")&&J!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){J||Se("Empty PACF event type",l,x);var R=h6(O.G.get()),w={eventType:J,eventOrder:++O.eventCount},P={}; l&&(P.slotData=Vg(R,l));x&&(P.layoutData=goq(R,x));V&&(P.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:V.G.serializedAdPingMetadata,pingIndex:V.index});v&&(P.triggerData=j1(v.trigger,v.category));K&&(P.opportunityData=c48(R,K,n,X));R={organicPlaybackContext:{contentCpn:RK(O.Jj.get(),1).clientPlaybackNonce}};R.organicPlaybackContext.isLivePlayback=RK(O.Jj.get(),1).qS;var B;R.organicPlaybackContext.isMdxPlayback=(B=RK(O.Jj.get(),1))==null?void 0:B.isMdxPlayback; var p;if((p=RK(O.Jj.get(),1))==null?0:p.daiEnabled)R.organicPlaybackContext.isDaiContent=!0;var k;if(B=(k=RK(O.Jj.get(),2))==null?void 0:k.clientPlaybackNonce)R.adVideoPlaybackContext={adVideoCpn:B};R&&(P.externalContext=R);w.adClientData=P;Q&&(w.serializedSlotAdServingData=Q.serializedSlotAdServingDataEntry);S&&(w.serializedAdServingData=S.serializedAdServingDataEntry);r&&(w.errorInfo=r);g.vJ("adsClientStateChange",{adsClientEvent:w})}}; C&&C>0?g.Nt(g.K6(),function(){return H()},C):H()}catch(R){FV(this.xF.get(),"html5_log_pacf_logging_errors")&&g.Nt(g.K6(),function(){Se(R instanceof Error?R:String(R),l,x,{pacf_message:"exception during pacf logging"})})}};var HfG=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.e(VW,jb);g.u=VW.prototype; g.u.KJ=function(J,K,n){jb.prototype.KJ.call(this,J,K,n);wY(this.xF.get())&&(n={},this.context.gG.zA("pacf",(n.et=J,n.st=K.slotType,n.si=K.slotId,n)))}; g.u.zR=function(J,K,n,X){var l=HfG.has(J);jb.prototype.zR.call(this,J,K,n,X);wY(this.xF.get(),l)&&(X={},this.context.gG.zA("pacf",(X.et=J,X.st=K.slotType,X.si=K.slotId,X.lt=n==null?void 0:n.layoutType,X.li=n==null?void 0:n.layoutId,X.p_ac=n==null?void 0:n.layoutId,X)))}; g.u.Wk=function(J,K,n,X,l){jb.prototype.Wk.call(this,J,K,n,X,l);wY(this.xF.get())&&(n={},this.context.gG.zA("pacf",(n.et=J,n.ot=K,n.ss=X==null?void 0:X.length,n)))}; g.u.Fn=function(J,K,n,X){jb.prototype.Fn.call(this,J,K,n,X);if(wY(this.xF.get())){var l={};this.context.gG.zA("pacf",(l.et=J,l.tt=n.trigger.triggerType,l.tc=n.category,l.st=K.slotType,l.si=K.slotId,l.lt=X==null?void 0:X.layoutType,l.li=X==null?void 0:X.layoutId,l.p_ac=X==null?void 0:X.layoutId,l))}}; g.u.d5=function(J,K,n,X){jb.prototype.d5.call(this,J,K,n,X);if(wY(this.xF.get(),!0)){var l={};this.context.gG.zA("perror",(l.ert=J,l.erm=K,l.st=n.slotType,l.si=n.slotId,l.lt=X==null?void 0:X.layoutType,l.li=X==null?void 0:X.layoutId,l.p_ac=X==null?void 0:X.layoutId,l))}}; g.u.Qe=function(J,K,n,X,l,x,V,v,Q,S,r){var C=this.xF.get();g.Ig(C.B.S())?(C=this.xF.get(),C=g.Qg(C.B.S().experiments,"H5_async_logging_delay_ms")):C=void 0;jb.prototype.Qe.call(this,J,K,n,X,l,x,V,v,Q,S,r,C)};ht.prototype.clear=function(){this.G.clear()};g.u=vG.prototype;g.u.state=function(){return this.SF==="fulfilled"?{state:"fulfilled",value:this.result}:this.E4()?{state:"rejected",reason:this.error}:{state:"pending"}}; g.u.E4=function(){return this.SF==="rejected"}; g.u.wait=function(){var J=this;return function n(){return g3(n,function(X){if(X.Z==1)return g.w3(X,2),g.d(X,{X$:J},4);if(X.Z!=2)return X.return(X.G);g.LU(X);return g.De(X,0)})}()}; g.u.vG=function(J){$E(J)||QW(J)?O3(Sb(J),this.vG.bind(this),this.reject.bind(this)):(this.SF="fulfilled",this.result=J,CY(this))}; g.u.reject=function(J){this.SF="rejected";this.error=J;CY(this)}; var QW=uc(function(J){return Up8(J)?J instanceof vG:!1});Object.freeze({qSM:function(J){var K=ww(J);return O3(z7(K,function(n){return K[n].E4()}),function(n){return Number.isNaN(n)?K.map(function(X){return X.state().value}):K[n]})}, bjQ:function(J){var K=ww(J);return O3(z7(K),function(){return K.map(function(n){return n.state()})})}, UoQ:function(J){var K=ww(J);return O3(z7(K,function(n){return K[n].SF==="fulfilled"}),function(n){return Number.isNaN(n)?rw(new AggregateError(K.map(function(X){return X.state().reason}))):K[n].state().value})}, joj:function(J){var K=ww(J);return O3(z7(K,function(){return!0}),function(n){return K[n]})}});var PG=window.qLM||"en";me.prototype.UZ=function(J){this.client=J}; me.prototype.G=function(){this.clear();this.csn=g.i2()}; me.prototype.clear=function(){this.X.clear();this.Z.clear();this.U.clear();this.csn=null};LY.prototype.UZ=function(J){g.NM(pY().UZ).bind(pY())(J)}; LY.prototype.clear=function(){g.NM(pY().clear).bind(pY())()};g.u=T7.prototype;g.u.UZ=function(J){this.client=J}; g.u.Um=function(J,K){var n=this;K=K===void 0?{}:K;g.NM(function(){var X,l,x,V=((X=g.f(J==null?void 0:J.commandMetadata,g.Hn))==null?void 0:X.rootVe)||((l=g.f(J==null?void 0:J.commandMetadata,Y7z))==null?void 0:(x=l.screenVisualElement)==null?void 0:x.uiType);if(V){X=g.f(J==null?void 0:J.commandMetadata,oRn);if(X==null?0:X.parentTrackingParams){var v=g.wG(X.parentTrackingParams);if(X.parentCsn)var Q=X.parentCsn}else K.clickedVisualElement?v=K.clickedVisualElement:J.clickTrackingParams&&(v=g.wG(J.clickTrackingParams)); a:{X=g.f(J,g.MJ);l=g.f(J,buF);if(X){if(l=wbk(X,"VIDEO")){X={token:l,videoId:X.videoId};break a}}else if(l&&(X=wbk(l,"PLAYLIST"))){X={token:X,playlistId:l.playlistId};break a}X=void 0}K=Object.assign({},{cttAuthInfo:X,parentCsn:Q},K);if(g.ef("expectation_logging")){var S;K.loggingExpectations=((S=g.f(J==null?void 0:J.commandMetadata,Y7z))==null?void 0:S.loggingExpectations)||void 0}dw(n,V,v,K)}else g.gG(new g.qt("Error: Trying to create a new screen without a rootVeType",J))})()}; g.u.clickCommand=function(J,K,n){J=J.clickTrackingParams;n=n===void 0?0:n;J?(n=g.i2(n===void 0?0:n))?(Ji(this.client,n,g.wG(J),K),K=!0):K=!1:K=!1;return K}; g.u.stateChanged=function(J,K,n){this.visualElementStateChanged(g.wG(J),K,n===void 0?0:n)}; g.u.visualElementStateChanged=function(J,K,n){n=n===void 0?0:n;n===0&&this.Z.has(n)?this.L.push([J,K]):pbf(this,J,K,n)};YE.prototype.fetch=function(J,K,n){var X=this,l=D6F(J,K,n);return new Promise(function(x,V){function v(){if(n==null?0:n.tF)try{var S=X.handleResponse(J,l.status,l.response,n);x(S)}catch(r){V(r)}else x(X.handleResponse(J,l.status,l.response,n))} l.onerror=v;l.onload=v;var Q;l.send((Q=K.body)!=null?Q:null)})}; YE.prototype.handleResponse=function(J,K,n,X){n=n.replace(")]}'","");try{var l=JSON.parse(n)}catch(x){g.gG(new g.qt("JSON parsing failed after XHR fetch",J,K,n));if((X==null?0:X.tF)&&n)throw new g.n3(1,"JSON parsing failed after XHR fetch");l={}}K!==200&&(g.gG(new g.qt("XHR API fetch failed",J,K,n)),l=Object.assign({},l,{errorMetadata:{status:K}}));return l};G7.getInstance=function(){var J=g.bF("ytglobal.storage_");J||(J=new G7,g.Ed("ytglobal.storage_",J));return J}; G7.prototype.estimate=function(){var J,K,n;return g.G(function(X){J=navigator;return((K=J.storage)==null?0:K.estimate)?X.return(J.storage.estimate()):((n=J.webkitTemporaryStorage)==null?0:n.queryUsageAndQuota)?X.return(d63()):X.return()})}; g.Ed("ytglobal.storageClass_",G7);VO.prototype.Ri=function(J){this.handleError(J)}; VO.prototype.logEvent=function(J,K){switch(J){case "IDB_DATA_CORRUPTED":g.ef("idb_data_corrupted_killswitch")||this.G("idbDataCorrupted",K);break;case "IDB_UNEXPECTEDLY_CLOSED":this.G("idbUnexpectedlyClosed",K);break;case "IS_SUPPORTED_COMPLETED":g.ef("idb_is_supported_completed_killswitch")||this.G("idbIsSupportedCompleted",K);break;case "QUOTA_EXCEEDED":gG3(this,K);break;case "TRANSACTION_ENDED":this.X&&Math.random()<=.1&&this.G("idbTransactionEnded",K);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":J= Object.assign({},K,{hasWindowUnloaded:this.Z}),this.G("idbTransactionAborted",J)}};var f_={},uZM=g.JE("yt-player-local-media",{At:(f_.index={i$:2},f_.media={i$:2},f_.captions={i$:5},f_),shared:!1,upgrade:function(J,K){K(2)&&(g.p6(J,"index"),g.p6(J,"media"));K(5)&&g.p6(J,"captions");K(6)&&(L6(J,"metadata"),L6(J,"playerdata"))}, version:5});var R_m={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},Wn;a:{var aG=g.Ii();aG=aG.toLowerCase();if(g.Hj(aG,"android")){var uGO=aG.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(uGO){var e_0=parseFloat(uGO[1]);if(e_0<100){Wn=e_0;break a}}var z_n=aG.match("("+Object.keys(R_m).join("|")+")");Wn=z_n?R_m[z_n[0]]:0}else Wn=void 0}var dz=Wn,DW=dz>=0;var Aw8=window;var c63=rP(function(){var J,K;return(K=(J=window).matchMedia)==null?void 0:K.call(J,"(prefers-reduced-motion: reduce)").matches});var tt;g.U3=new mc;tt=0;var nR=fo7()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.qH?!0:!1;var fY={aP:function(J,K){J[h[16]](0,K)}, Tq:function(J,K){var n=J[0];J[0]=J[K%J[h[3]]];J[K%J[h[3]]]=n}, z1:function(J){J[h[64]]()}};var OgH={o7q:"adunit",OAG:"detailpage",xPF:"editpage",uOF:"embedded",siQ:"leanback",DBQ:"previewpage",vLd:"profilepage",J_:"unplugged",mBA:"playlistoverview",I5F:"sponsorshipsoffer",t5Q:"shortspage",SYM:"handlesclaiming",x$W:"immersivelivepage",Siq:"creatormusic",AMx:"immersivelivepreviewpage",qyG:"admintoolyurt",WHd:"shortsaudiopivot",ydA:"consumption"};var ao8=2592E3;var Fi,wHH,zy;Fi={};g.At=(Fi.STOP_EVENT_PROPAGATION="html5-stop-propagation",Fi.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",Fi.IV_DRAWER_OPEN="ytp-iv-drawer-open",Fi.MAIN_VIDEO="html5-main-video",Fi.VIDEO_CONTAINER="html5-video-container",Fi.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",Fi.HOUSE_BRAND="house-brand",Fi);wHH={};zy=(wHH.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",wHH.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",wHH);var KX3={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var lRr={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},xRk={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"},jJ3={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var UWq={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.VL.prototype.getLanguageInfo=function(){return this.Hw}; g.VL.prototype.getXtags=function(){if(!this.xtags){var J=this.id.split(";");J.length>1&&(this.xtags=J[1])}return this.xtags}; g.VL.prototype.toString=function(){return this.Hw.name}; g.VL.prototype.getLanguageInfo=g.VL.prototype.getLanguageInfo;hJ.prototype.equals=function(J){return this.Z===J.Z&&this.G===J.G&&this.X===J.X&&this.reason===J.reason&&(!QL||this.OM===J.OM)}; hJ.prototype.isLocked=function(){return this.X&&!!this.Z&&this.Z===this.G}; hJ.prototype.compose=function(J){if(J.X&&$K(J))return fI;if(J.X||$K(this))return J;if(this.X||$K(J))return this;var K=this.Z&&J.Z?Math.max(this.Z,J.Z):this.Z||J.Z,n=this.G&&J.G?Math.min(this.G,J.G):this.G||J.G;K=Math.min(K,n);var X=0;QL&&(X=this.OM!==0&&J.OM!==0?Math.min(this.OM,J.OM):this.OM===0?J.OM:this.OM);return QL&&K===this.Z&&n===this.G&&X===this.OM||!QL&&K===this.Z&&n===this.G?this:QL?new hJ(K,n,!1,n===this.G&&X===this.OM?this.reason:J.reason,X):new hJ(K,n,!1,n===this.G?this.reason:J.reason)}; hJ.prototype.U=function(J){return!J.video||QL&&this.OM!==0&&this.OM=0}; g.u.ao=function(){var J=this.segments[this.segments.length-1];return J?J.endTime:NaN}; g.u.yU=function(){return this.segments[0].startTime}; g.u.Yb=function(){return this.segments.length}; g.u.b8=function(){return 0}; g.u.dG=function(J){return(J=this.Wy(J))?J.BW:-1}; g.u.J1=function(J){return(J=this.HQ(J))?J.sourceURL:""}; g.u.getStartTime=function(J){return(J=this.HQ(J))?J.startTime:0}; g.u.AA=function(J){return this.getStartTime(J)+this.getDuration(J)}; g.u.Wf=KU(1);g.u.isLoaded=function(){return this.segments.length>0}; g.u.HQ=function(J){if(this.G&&this.G.BW===J)return this.G;J=g.TO(this.segments,new gU(J,0,0,0,""),function(K,n){return K.BW-n.BW}); return this.G=J>=0?this.segments[J]:null}; g.u.Wy=function(J){if(this.G&&this.G.startTime<=J&&J=0?this.segments[J]:this.segments[Math.max(0,-J-2)]}; g.u.append=function(J){if(J.length)if(J=g.zO(J),this.segments.length){var K=this.segments.length?g.$r(this.segments).endTime:0,n=J[0].BW-this.VU();n>1&&Ied(this.segments);for(n=n>0?0:-n+1;nJ.BW&&this.index.WQ()<=J.BW+1}; g.u.update=function(J,K,n){this.index.append(J);g68(this.index,n);J=this.index;J.Z=K;J.X="update"}; g.u.qp=function(){return this.WR()?!0:D5.prototype.qp.call(this)}; g.u.pj=function(J,K){var n=this.index.J1(J),X=this.index.getStartTime(J),l=this.index.getDuration(J),x;K?l=x=0:x=this.info.OM>0?this.info.OM*l:1E3;return new Wm([new Yf(3,this,void 0,"liveCreateRequestInfoForSegment",J,X,l,0,x,!K)],n)}; g.u.M5=function(){return this.WR()?0:this.initRange.length}; g.u.ZW=function(){return!1};MQ.prototype.update=function(J){var K=void 0;this.Z&&(K=this.Z);var n=new MQ,X=Array.from(J.getElementsByTagName("S"));if(X.length){var l=+b3(J,"timescale")||1,x=(+X[0].getAttribute("t")||0)/l,V=+b3(J,"startNumber")||0;n.U=x;var v=K?K.startSecs+K.rW:0,Q=Date.parse(Lj8(b3(J,"yt:segmentIngestTime")))/1E3;n.C=J.parentElement.tagName==="SegmentTemplate";n.C&&(n.W=b3(J,"media"));J=K?V-K.BW:1;n.N=J>0?0:-J+1;J=g.z(X);for(X=J.next();!X.done;X=J.next()){X=X.value;for(var S=+X.getAttribute("d")/l,r=(+X.getAttribute("yt:sid")|| 0)/l,C=+X.getAttribute("r")||0,O=0;O<=C;O++)if(K&&V<=K.BW)V++;else{var H=new mbf(V,v,S,Q+r,x);n.G.push(H);var R=X;var w=l,P=H.startSecs;H=R.getAttribute("yt:cuepointTimeOffset");var B=R.getAttribute("yt:cuepointDuration");if(H&&B){H=Number(H);P=-H/w+P;w=Number(B)/w;B=R.getAttribute("yt:cuepointContext")||null;var p=R.getAttribute("yt:cuepointIdentifier")||"";R=R.getAttribute("yt:cuepointEvent")||"";R=new a9(P,w,B,p,I28[R]||"unknown",H)}else R=null;R&&n.X.push(R);V++;v+=S;x+=S;Q+=S+r}}n.G.length&& (n.Z=g.$r(n.G))}this.N=n.N;this.Z=n.Z||this.Z;g.P8(this.G,n.G);g.P8(this.X,n.X);this.C=n.C;this.W=n.W;this.U===-1&&(this.U=n.getStreamTimeOffset())}; MQ.prototype.getStreamTimeOffset=function(){return this.U===-1?0:this.U};g.e(Jo,g.co);g.u=Jo.prototype;g.u.n1=function(){return this.Bp}; g.u.s2=function(J,K){J=K4(this,J);return J>=0&&(K||!this.segments[J].pending)}; g.u.WQ=function(){return this.rV?this.segments.length?this.Wy(this.yU()).BW:-1:g.co.prototype.WQ.call(this)}; g.u.yU=function(){if(this.q_)return 0;if(!this.rV)return g.co.prototype.yU.call(this);if(!this.segments.length)return 0;var J=Math.max(g.$r(this.segments).endTime-this.JF,0);return this.h7>0&&g.U(this.Wy(J)).BW0)return this.Pq/1E3;if(!this.segments.length)return g.co.prototype.ao.call(this);var J=this.VU();if(!this.rV||J<=this.segments[this.segments.length-1].BW)J=this.segments[this.segments.length-1];else{var K=this.segments[this.segments.length-1];J=new gU(J,Math.max(0,K.startTime-(K.BW-J)*this.Bp),this.Bp,0,"sq/"+J,void 0,void 0,!0)}return this.q_?Math.min(this.JF,J.endTime):J.endTime}; g.u.Yb=function(){return this.rV?this.segments.length?this.VU()-this.WQ()+1:0:g.co.prototype.Yb.call(this)}; g.u.VU=function(){var J=Math.min(this.Ad,Math.max(g.co.prototype.VU.call(this),this.hm)),K=this.JF*1E3;K=this.Pq>0&&this.Pq0&&this.hm>0&&!K&&(K=this.Wy(this.JF))&&(J=Math.min(K.BW-1,J));return J}; g.u.Jk=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.u.e8=function(J){var K=K4(this,J.BW);if(K>=0)this.segments[K]=J;else if(this.segments.splice(-(K+1),0,J),this.z5&&J.BW%(300/this.Bp)===0){var n=this.segments[0].BW,X=Math.floor(this.z5/this.Bp);J=J.BW-X;K=-(K+1)-X;K>0&&J>n&&(this.segments=this.segments.slice(K))}}; g.u.cf=function(){return this.hm}; g.u.aU=function(J){return NQ?!this.Z&&J>=0&&this.VU()<=J:g.co.prototype.aU.call(this,J)}; g.u.Wy=function(J){if(!this.rV)return g.co.prototype.Wy.call(this,J);if(!this.segments.length)return null;var K=this.segments[this.segments.length-1];if(J=K.endTime)K=K.BW+Math.floor((J-K.endTime)/this.Bp+1);else{K=Dz(this.segments,function(X){return J=X.endTime?1:0}); if(K>=0)return this.segments[K];var n=-(K+1);K=this.segments[n-1];n=this.segments[n];K=Math.floor((J-K.endTime)/((n.startTime-K.endTime)/(n.BW-K.BW-1))+1)+K.BW}return this.HQ(K)}; g.u.HQ=function(J){if(!this.rV)return g.co.prototype.HQ.call(this,J);if(!this.segments.length)return null;var K=K4(this,J);if(K>=0)return this.segments[K];var n=-(K+1);K=this.Bp;if(n===0)var X=Math.max(0,this.segments[0].startTime-(this.segments[0].BW-J)*K);else n===this.segments.length?(X=this.segments[this.segments.length-1],X=X.endTime+(J-X.BW-1)*K):(X=this.segments[n-1],K=this.segments[n],K=(K.startTime-X.endTime)/(K.BW-X.BW-1),X=X.endTime+(J-X.BW-1)*K);return new gU(J,X,K,0,"sq/"+J,void 0,void 0, !0)}; var NQ=!1;g.e(n4,ET);g.u=n4.prototype;g.u.NK=function(){return!0}; g.u.qp=function(){return!0}; g.u.QR=function(J){return this.po()&&J.X&&!J.C||!J.G.index.aU(J.BW)}; g.u.Wo=function(){}; g.u.sS=function(J,K){return typeof J!=="number"||isFinite(J)?ET.prototype.sS.call(this,J,K===void 0?!1:K):new Wm([new Yf(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.sY,void 0,this.sY*this.info.OM)],"")}; g.u.pj=function(J,K){var n=n===void 0?!1:n;if(this.index.s2(J))return ET.prototype.pj.call(this,J,K);var X=this.index.getStartTime(J),l=Math.round(this.sY*this.info.OM),x=this.sY;K&&(x=l=0);return new Wm([new Yf(n?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",J,X,x,void 0,l,!K)],J>=0?"sq/"+J:"")};g.e(oj,D5);g.u=oj.prototype;g.u.NV=function(){return!1}; g.u.po=function(){return!1}; g.u.NK=function(){return!1}; g.u.Wo=function(){return new Wm([new Yf(1,this,void 0,"otfInit")],this.C)}; g.u.LO=function(){return null}; g.u.uQ=function(J){this.QR(J);return GmV(this,yw(J),!1)}; g.u.sS=function(J,K){K=K===void 0?!1:K;J=this.index.dG(J);K&&(J=Math.min(this.index.VU(),J+1));return GmV(this,J,!0)}; g.u.aB=function(J){J.info.type===1&&(this.G||(this.G=zI(J.G)),J.Z&&J.Z.uri==="http://youtube.com/streaming/otf/durations/112015"&&Ubk(this,J.Z))}; g.u.QR=function(J){return J.X===0?!0:this.index.VU()>J.BW&&this.index.WQ()<=J.BW+1}; g.u.M5=function(){return 0}; g.u.ZW=function(){return!1};g.XI.prototype.info=function(){}; g.XI.prototype.debug=function(){}; g.XI.prototype.G=function(J){ln.apply(null,[5,this.tag,J].concat(g.m(g.c3.apply(1,arguments))))}; var ZPV=new Map,aQk=new Map,fQq=new function(){var J=this;this.G=new Map;this.QU={B_4:function(){return J.G}}};xV.prototype.K9=function(){return this.G.K9()};g.u=g.$V.prototype;g.u.s2=function(J){return J<=this.VU()}; g.u.b8=function(J){return this.offsets[J]}; g.u.getStartTime=function(J){return this.startTicks[J]/this.G}; g.u.AA=function(J){return this.getStartTime(J)+this.getDuration(J)}; g.u.Wf=KU(0);g.u.vM=function(){return NaN}; g.u.getDuration=function(J){J=this.Q3(J);return J>=0?J/this.G:-1}; g.u.Q3=function(J){return J+1=0}; g.u.ao=function(){return this.Z?this.startTicks[this.count]/this.G:NaN}; g.u.yU=function(){return 0}; g.u.Yb=function(){return this.count}; g.u.J1=function(){return""}; g.u.dG=function(J){J=g.TO(this.startTicks.subarray(0,this.count),J*this.G);return J>=0?J:Math.max(0,-J-2)}; g.u.isLoaded=function(){return this.VU()>=0}; g.u.E0=function(J,K){if(J>=this.VU())return 0;var n=0;for(K=this.getStartTime(J)+K;Jthis.getStartTime(J);J++)n=Math.max(n,KCe(this,J)/this.getDuration(J));return n}; g.u.resize=function(J){J+=2;var K=this.offsets;this.offsets=new Float64Array(J+1);var n=this.startTicks;this.startTicks=new Float64Array(J+1);for(J=0;J0&&J&&(n=n.range.end+1,J=Math.min(J,this.info.contentLength-n),J>0&&X.push(new Yf(4,this,gZ(n,J),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,K)));return new Wm(X)}; g.u.aB=function(J){if(J.info.type===1){if(this.G)return;this.G=zI(J.G)}else if(J.info.type===2){if(this.C||this.index.VU()>=0)return;if(g.MR(this.info)){var K=this.index,n=J.K9();J=J.info.range.start;var X=g.AJ(n,0,1936286840);n=quV(X);K.G=n.timescale;var l=n.p5;K.offsets[0]=n.VT+J+X.size;K.startTicks[0]=l;K.Z=!0;J=n.kh.length;for(X=0;X0&&J===x[0].Tg)for(J=0;J=K+n)break}l.length||(J=new g.qt("b189619593",""+J,""+K,""+n),g.ko(J));return new Wm(l)}; g.u.kC=function(J){for(var K=this.VE(J.info),n=J.info.range.start+J.info.Z,X=[],l=0;l=this.index.b8(n+1);)n++;return this.X4(n,K,J.X).Lv}; g.u.QR=function(J){J.PH();return this.qp()?!0:J.range.end+1this.info.contentLength&&(K=new dZ(K.start,this.info.contentLength-1)),new Wm([new Yf(4,J.G,K,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,J.clipId)]);J.type===4&&(J=this.VE(J),J=J[J.length-1]);var n=0,X=J.range.start+J.Z+J.X;J.type===3&&(J.PH(),n=J.BW,X===J.range.end+1&&(n+=1));return this.X4(n,X,K)}; g.u.uQ=function(){return null}; g.u.sS=function(J,K){K=K===void 0?!1:K;J=this.index.dG(J);K&&(J=Math.min(this.index.VU(),J+1));return this.X4(J,this.index.b8(J),0,void 0)}; g.u.NV=function(){return!0}; g.u.po=function(){return!0}; g.u.NK=function(){return!1}; g.u.M5=function(){return this.indexRange.length+this.initRange.length}; g.u.ZW=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var E5={},Oh3=(E5.COLOR_PRIMARIES_BT709="bt709",E5.COLOR_PRIMARIES_BT2020="bt2020",E5.COLOR_PRIMARIES_UNKNOWN=null,E5.COLOR_PRIMARIES_UNSPECIFIED=null,E5),bM={},oIF=(bM.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",bM.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",bM.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",bM.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",bM.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,bM.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,bM);g.sV.prototype.getName=function(){return this.name}; g.sV.prototype.getId=function(){return this.id}; g.sV.prototype.getIsDefault=function(){return this.isDefault}; g.sV.prototype.toString=function(){return this.name}; g.sV.prototype.getName=g.sV.prototype.getName;g.sV.prototype.getId=g.sV.prototype.getId;g.sV.prototype.getIsDefault=g.sV.prototype.getIsDefault;var jKe=/action_display_post/;var VRV,Hu,Rj;g.e(un,g.hi);g.u=un.prototype;g.u.isLoading=function(){return this.state===1}; g.u.tL=function(){return this.state===3}; g.u.tcj=function(J){var K=J.getElementsByTagName("Representation");if(J.getElementsByTagName("SegmentList").length>0||J.getElementsByTagName("SegmentTemplate").length>0){this.qS=this.Z=!0;this.timeline||(this.timeline=new DbV);cF3(this.timeline,J);this.publish("refresh");for(J=0;J=0?r=kf(O):C=C+"?range="+O}Q.call(v,new gU(S.BW,S.startSecs,S.rW,S.G,C,r,S.Z))}X=l}n.update(X,this.isLive,this.kF)}Y_3(this.timeline);return!0}this.duration=p5d(b3(J,"mediaPresentationDuration")); a:{for(J=0;J0))return this.XL()-J}}J=this.G;for(var K in J){var n=J[K].index;if(n.isLoaded()&&!ox(J[K].info.mimeType))return n.yU()}return 0}; g.u.getStreamTimeOffset=function(){return this.W}; g.u.vM=function(J){for(var K in this.G){var n=this.G[K].index;if(n.isLoaded()){var X=n.dG(J),l=n.vM(X);if(l)return l+J-n.getStartTime(X)}}return NaN}; var ge=null,ifH,cu=!((ifH=navigator.mediaCapabilities)==null||!ifH.decodingInfo),wh8={commentary:1,alternate:2,dub:3,main:4};var jS=new Set,YV=new Map;to.prototype.clone=function(J){return new to(this.flavor,J,this.Z,this.experiments)}; to.prototype.FK=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; to.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 BPg={},Ao=(BPg.playready=["com.youtube.playready","com.microsoft.playready"],BPg.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],BPg),Ar={},gU3=(Ar.widevine="DRM_SYSTEM_WIDEVINE",Ar.fairplay="DRM_SYSTEM_FAIRPLAY",Ar.playready="DRM_SYSTEM_PLAYREADY",Ar),Mj={},muH=(Mj.widevine=1,Mj.fairplay=2,Mj.playready=3,Mj);var JS;g.e(Mg,g.t); Mg.prototype.initialize=function(J,K){for(var n=this,X=g.z(Object.keys(J)),l=X.next();!l.done;l=X.next()){l=g.z(J[l.value]);for(var x=l.next();!x.done;x=l.next())if(x=x.value,x.rE)for(var V=g.z(Object.keys(x.rE)),v=V.next();!v.done;v=V.next()){var Q=v.value;v=Q;Q=Ao[Q];!Q&&this.J("html5_enable_vp9_fairplay")&&v==="fairplay"&&(Q=["com.youtube.fairplay.sbdl"]);if(Q){Q=g.z(Q);for(var S=Q.next();!S.done;S=Q.next())S=S.value,this.X[S]=this.X[S]||new to(v,S,x.rE[v],this.ix.experiments),this.G[v]=this.G[v]|| {},this.G[v][x.mimeType]=!0}}}F6()&&(this.X["com.youtube.fairplay"]=new to("fairplay","com.youtube.fairplay","",this.ix.experiments),this.J("html5_enable_vp9_fairplay")||(this.G.fairplay=this.G.fairplay||{},this.G.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.G.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.Z=cxf(K,this.useCobaltWidevine,this.J("html5_enable_safari_fairplay")&&!0,this.J("html5_enable_vp9_fairplay")).filter(function(r){return!!n.X[r]})}; Mg.prototype.J=function(J){return this.ix.experiments.sM(J)};var pHu={"":"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"};fOH.prototype.J=function(J){return this.experiments.sM(J)};var Rr7={RED:"red",igv:"white"};WCe.prototype.sM=function(J){J=this.flags[J];JSON.stringify(J);return J==="true"};var q9e=Promise.resolve(),MRU=window.queueMicrotask?window.queueMicrotask.bind(window):EId;XX.prototype.canPlayType=function(J,K){J=J.canPlayType?J.canPlayType(K):!1;Fz?J=J||LQr[K]:dz===2.2?J=J||TPV[K]:Wa()&&(J=J||DuS[K]);return!!J}; XX.prototype.isTypeSupported=function(J){return this.K?window.cast.receiver.platform.canDisplayType(J):DR(J)}; var TPV={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},DuS={"application/x-mpegURL":"maybe"},LQr={"application/x-mpegURL":"maybe"};g.e(jl,g.hi);jl.prototype.add=function(J,K){if(!this.items[J]&&(K.Hn||K.f_||K.Nb)){var n=this.items,X=K;Object.isFrozen&&!Object.isFrozen(K)&&(X=Object.create(K),Object.freeze(X));n[J]=X;this.publish("vast_info_card_add",J)}}; jl.prototype.remove=function(J){var K=this.get(J);delete this.items[J];return K}; jl.prototype.get=function(J){return this.items[J]||null}; jl.prototype.isEmpty=function(){return g.Mz(this.items)};var hS;vp.prototype.add=function(J){if(this.pos+20>this.data.length){var K=new Uint8Array(this.data.length*2);K.set(this.data);this.data=K}for(;J>31;)this.data[this.pos++]=hS[(J&31)+32],J>>=5;this.data[this.pos++]=hS[J|0]}; vp.prototype.Q2=function(){return g.iE(this.data.subarray(0,this.pos))}; vp.prototype.reset=function(){this.pos=0};$n.prototype.Ty=function(J,K){var n=Math.pow(this.alpha,J);this.G=K*(1-n)+n*this.G;this.Z+=J}; $n.prototype.mW=function(){return this.G/(1-Math.pow(this.alpha,this.Z))};Sl.prototype.Ty=function(J,K){for(var n=0;n<10;n++){var X=this.G[n],l=X+(n===0?J:0),x=1*Math.pow(2,n);if(l<=x)break;X=Math.min(1,(l-x*.5)/X);for(l=0;l<16;l++)x=this.values[n*16+l]*X,this.values[(n+1)*16+l]+=x,this.G[n+1]+=x,this.values[n*16+l]-=x,this.G[n]-=x}X=n=0;l=8192;K>8192&&(n=Math.ceil(Math.log(K/8192)/Math.log(2)),X=8192*Math.pow(2,n-1),l=X*2);n+2>16?this.values[15]+=J:(K=(K-X)/(l-X),this.values[n]+=J*(1-K),this.values[n+1]+=J*K);this.G[0]+=J}; Sl.prototype.mW=function(){var J=J===void 0?this.Z:J;var K=K===void 0?.02:K;var n=n===void 0?.98:n;for(var X=this.X,l=0;l<16;l++)X[l]=this.values[l];l=this.G[0];for(var x=1;x<11;x++){var V=this.G[x];if(V===0)break;for(var v=Math.min(1,(J-l)/V),Q=0;Q<16;Q++)X[Q]+=this.values[x*16+Q]*v;l+=V*v;if(v<1)break}for(x=J=V=0;x<16;x++){v=V+X[x]/l;J+=Math.max(0,Math.min(v,n)-Math.max(V,K))*(x>0?8192*Math.pow(2,x-1):0);if(v>n)break;V=v}return J/(n-K)};rz.prototype.Ty=function(J,K){J=Math.min(this.G,Math.max(1,Math.round(J*this.resolution)));J+this.Z>=this.G&&(this.X=!0);for(;J--;)this.values[this.Z]=K,this.Z=(this.Z+1)%this.G;this.H$=!0}; rz.prototype.percentile=function(J){var K=this;if(!this.X&&this.Z===0)return 0;this.H$&&(g.du(this.C,function(n,X){return K.values[n]-K.values[X]}),this.H$=!1); return this.values[this.C[Math.round(J*((this.X?this.G:this.Z)-1))]]||0}; rz.prototype.mW=function(){return this.N?(this.percentile(this.U-this.N)+this.percentile(this.U)+this.percentile(this.U+this.N))/3:this.percentile(this.U)};g.e(sM,g.t);sM.prototype.fv=function(){var J;(J=this.Cv)==null||J.start();if(wz(this)&&this.policy.L){var K;(K=this.U8)==null||K.B9()}};vLk.prototype.J=function(J){return this.experiments.sM(J)};g.e($hq,g.t);var Hg3="blogger ads-preview gac books docs duo flix google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),Pb8={zQd:"caoe",OhQ:"capsv",rdQ:"cbrand",E6j:"cbr",Mzj:"cbrver",HAv:"cchip",Vzd:"ccappver",TGq:"ccrv",kd_:"cfrmver",nkQ:"c",Ekv:"cver",rMm:"ctheme",iLx:"cplayer",iIv:"cmodel",n7:"cnetwork",Vy_:"cos",OS_VERSION:"cosver",IzA:"cplatform",r0F:"crqyear"};g.e(fR,g.t);g.u=fR.prototype;g.u.J=function(J){return this.experiments.sM(J)}; g.u.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.u.getVideoUrl=function(J,K,n,X,l,x,V){K={list:K};n&&(l?K.time_continue=n:K.t=n);n=V?"music.youtube.com":g.am(this);l=n==="www.youtube.com";!x&&X&&l?x="https://youtu.be/"+J:g.cp(this)?(x="https://"+n+"/fire",K.v=J):(x&&l?(x=this.protocol+"://"+n+"/shorts/"+J,X&&(K.feature="share")):(x=this.protocol+"://"+n+"/watch",K.v=J),Fz&&(J=qLd())&&(K.ebc=J));return g.Td(x,K)}; g.u.getVideoEmbedCode=function(J,K,n,X){K="https://"+g.am(this)+"/embed/"+K;X&&(K=g.Td(K,{list:X}));X=n.width;n=n.height;K=Cl(K);J=Cl(J!=null?J:"YouTube video player");return'')}; g.u.supportsGaplessAudio=function(){return g.T2&&!Fz&&ya()>=74||g.EV&&g.iB(68)?!0:!1}; g.u.supportsGaplessShorts=function(){return!this.J("html5_enable_short_gapless")||this.fv||g.ut?!1:!0}; g.u.getPlayerType=function(){return this.G.cplayer}; g.u.Pw=function(){return this.H3}; var mhd=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],wWV=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],igU=[19];var Nj={},TOd=(Nj["140"]={numChannels:2},Nj["141"]={numChannels:2},Nj["251"]={audioSampleRate:48E3,numChannels:2},Nj["774"]={audioSampleRate:48E3,numChannels:2},Nj["380"]={numChannels:6},Nj["328"]={numChannels:6},Nj["773"]={},Nj),Jh={},pWf=(Jh["1"]='video/mp4; codecs="av01.0.08M.08"',Jh["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',Jh["1e"]='video/mp4; codecs="av01.0.08M.08"',Jh["9"]='video/webm; codecs="vp9"',Jh["("]='video/webm; codecs="vp9"',Jh["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', Jh.h='video/mp4; codecs="avc1.64001e"',Jh.H='video/mp4; codecs="avc1.64001e"',Jh.o='audio/webm; codecs="opus"',Jh.a='audio/mp4; codecs="mp4a.40.2"',Jh.ah='audio/mp4; codecs="mp4a.40.2"',Jh.mac3='audio/mp4; codecs="ac-3"; channels=6',Jh.meac3='audio/mp4; codecs="ec-3"; channels=6',Jh.i='audio/mp4; codecs="iamf.001.001.Opus"',Jh),Ki={},L6f=(Ki["337"]={width:3840,height:2160,bitrate:3E7,fps:30},Ki["336"]={width:2560,height:1440,bitrate:15E6,fps:30},Ki["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, Ki["702"]={width:7680,height:4320,bitrate:4E7,fps:60},Ki["701"]={width:3840,height:2160,bitrate:2E7,fps:60},Ki["700"]={width:2560,height:1440,bitrate:1E7,fps:60},Ki["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},Ki["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},Ki["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},Ki["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, Ki["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},Ki["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},Ki["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},Ki["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},Ki["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},Ki["315"]={width:3840,height:2160,bitrate:2E7,fps:60},Ki["308"]={width:2560, height:1440,bitrate:1E7,fps:60},Ki["303"]={width:1920,height:1080,bitrate:5E6,fps:60},Ki["302"]={width:1280,height:720,bitrate:25E5,fps:60},Ki["299"]={width:1920,height:1080,bitrate:75E5,fps:60},Ki["298"]={width:1280,height:720,bitrate:35E5,fps:60},Ki["571"]={width:7680,height:4320,bitrate:3E7,fps:60},Ki["401"]={width:3840,height:2160,bitrate:15E6,fps:60},Ki["400"]={width:2560,height:1440,bitrate:75E5,fps:60},Ki["399"]={width:1920,height:1080,bitrate:2E6,fps:60},Ki["398"]={width:1280,height:720,bitrate:1E6, fps:60},Ki["397"]={width:854,height:480,bitrate:4E5,fps:30},Ki["396"]={width:640,height:360,bitrate:25E4,fps:30},Ki["787"]={width:1080,height:608,bitrate:2E5,fps:30},Ki["788"]={width:1080,height:608,bitrate:4E5,fps:30},Ki["572"]={width:7680,height:4320,bitrate:3E7,fps:60},Ki["555"]={width:3840,height:2160,bitrate:15E6,fps:60},Ki["554"]={width:2560,height:1440,bitrate:75E5,fps:60},Ki["553"]={width:1920,height:1080,bitrate:2E6,fps:60},Ki["552"]={width:1280,height:720,bitrate:1E6,fps:60},Ki["551"]={width:854, height:480,bitrate:4E5,fps:30},Ki["550"]={width:640,height:360,bitrate:25E4,fps:30},Ki["313"]={width:3840,height:2160,bitrate:8E6,fps:30},Ki["271"]={width:2560,height:1440,bitrate:4E6,fps:30},Ki["248"]={width:1920,height:1080,bitrate:2E6,fps:30},Ki["247"]={width:1280,height:720,bitrate:15E5,fps:30},Ki["244"]={width:854,height:480,bitrate:52E4,fps:30},Ki["243"]={width:640,height:360,bitrate:28E4,fps:30},Ki["137"]={width:1920,height:1080,bitrate:4E6,fps:30},Ki["136"]={width:1280,height:720,bitrate:3E6, fps:30},Ki["135"]={width:854,height:480,bitrate:1E6,fps:30},Ki["385"]={width:1920,height:1080,bitrate:6503313,fps:60},Ki["376"]={width:1280,height:720,bitrate:5706960,fps:60},Ki["384"]={width:1280,height:720,bitrate:3660979,fps:60},Ki["225"]={width:1280,height:720,bitrate:5805E3,fps:30},Ki["224"]={width:1280,height:720,bitrate:453E4,fps:30},Ki["145"]={width:1280,height:720,bitrate:2682052,fps:30},Ki);g.u=Ve.prototype;g.u.getInfo=function(){return this.G}; g.u.nu=function(){return null}; g.u.ZA=function(){var J=this.nu();return J?(J=g.l9(J.Ax),Number(J.expire)):NaN}; g.u.Ou=function(){}; g.u.getHeight=function(){return this.G.video.height};gL3.prototype.build=function(){GNq(this);var J=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],K={};a:if(this.G)var n=this.G;else{n="";for(var X=g.z(this.X),l=X.next();!l.done;l=X.next())if(l=l.value,l.Hw){if(l.Hw.getIsDefault()){n=l.Hw.getId();break a}n||(n=l.Hw.getId())}}X=g.z(this.X);for(l=X.next();!l.done;l=X.next())if(l=l.value,this.N||!l.Hw||l.Hw.getId()===n)K[l.itag]||(K[l.itag]=[]),K[l.itag].push(l);n=g.z(this.Z);for(X=n.next();!X.done;X=n.next())if(X=X.value,l=K[X.G]){l=g.z(l);for(var x=l.next();!x.done;x= l.next()){var V=J,v=V.push;x=x.value;var Q="#EXT-X-MEDIA:TYPE=AUDIO,",S="YES",r="audio";if(x.Hw){r=x.Hw;var C=r.getId().split(".")[0];C&&(Q+='LANGUAGE="'+C+'",');(this.G?this.G===r.getId():r.getIsDefault())||(S="NO");r=r.getName()}C="";X!==null&&(C=X.itag.toString());C=vF(this,x.url,C);Q=Q+('NAME="'+r+'",DEFAULT='+(S+',AUTOSELECT=YES,GROUP-ID="'))+(YAe(x,X)+'",URI="'+(C+'"'));v.call(V,Q)}}n=g.z(this.C);for(X=n.next();!X.done;X=n.next())X=X.value,l=duG,X=(V=X.Hw)?'#EXT-X-MEDIA:URI="'+vF(this,X.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+l+'",LANGUAGE="'+V.getId()+'",NAME="'+V.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,X&&J.push(X);n=this.C.length>0?duG:void 0;X=g.z(this.Z);for(l=X.next();!l.done;l=X.next())l=l.value,v=K[l.G],V=void 0,((V=v)==null?void 0:V.length)>0&&(V=l,v=v[0],v="#EXT-X-STREAM-INF:BANDWIDTH="+(V.bitrate+v.bitrate)+',CODECS="'+(V.codecs+","+v.codecs+'",RESOLUTION=')+(V.width+"x"+V.height+',AUDIO="')+(YAe(v,V)+'",')+(n?'SUBTITLES="'+n+'",':"")+"CLOSED-CAPTIONS=NONE",V.fps>1&&(v+= ",FRAME-RATE="+V.fps),V.jI&&(v+=",VIDEO-RANGE="+V.jI),J.push(v),J.push(vF(this,l.url,"")));return J.join("\n")}; var duG="text";g.e(Qe,Ve);Qe.prototype.ZA=function(){return this.expiration}; Qe.prototype.nu=function(){if(!this.Ax||this.Ax.o4()){var J=this.Z.build();J="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(J);this.Ax=new W5(J)}return this.Ax};g.e($Y,Ve);$Y.prototype.nu=function(){return new W5(this.Z.M_())}; $Y.prototype.Ou=function(){this.Z=dU(this.Z)};g.e(SL,Ve);SL.prototype.nu=function(){return new W5(this.Z)};var ni={},ELq=(ni.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",ni.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",ni.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",ni);g.u=g.r6.prototype;g.u.getId=function(){return this.id}; g.u.getName=function(){return this.name}; g.u.isServable=function(){return this.G}; g.u.M_=function(){return this.url}; g.u.getXtags=function(){return this.xtags}; g.u.toString=function(){return this.languageCode+": "+g.sy(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.u.equals=function(J){return J?this.toString()===J.toString():!1}; g.u.TL=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var Kff={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},nh8={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},ohM=/^(\d*)_((\d*)_?(\d*))$/;var li3={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},xWp={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var oA={},kdV=(oA.ALWAYS=1,oA.BY_REQUEST=3,oA.UNKNOWN=void 0,oA),Xv={},g_S=(Xv.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",Xv.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",Xv.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",Xv.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",Xv);var g4V; g4V=function(J){for(var K=Object.keys(J),n={},X=0;XX-K?-1:J}; g.u.Sg=function(){return this.Z.VU()}; g.u.LN=function(){return this.Z.WQ()}; g.u.RD=function(J){this.Z=J};g.e(Zm,tu);Zm.prototype.Z=function(J,K){return tu.prototype.Z.call(this,"$N|"+J,K)}; Zm.prototype.C=function(J,K,n){return new ye(J,K,n,this.isLive)};var fiF=[],Ey=new Set;g.e(g.WF,g.hi);g.u=g.WF.prototype; g.u.setData=function(J){J=J||{};var K=J.errordetail;K!=null&&(this.errorDetail=K);var n=J.errorcode;n!=null?this.errorCode=n:J.status==="fail"&&(this.errorCode="auth");var X=J.reason;X!=null&&(this.errorReason=X);var l=J.subreason;l!=null&&(this.PQ=l);this.J("html5_enable_ssap_entity_id")||this.clientPlaybackNonce||(this.clientPlaybackNonce=J.cpn||(this.ix.Pw()?"r"+g.wV(15):g.wV(16)));this.Fq=XK(this.ix.Fq,J.livemonitor);cmM(this,J);var x=J.raw_player_response;if(x)this.VM=x;else{var V=J.player_response; V&&(x=JSON.parse(V))}if(this.J("html5_enable_ssap_entity_id")){var v=J.cached_load;v&&(this.fg=XK(this.fg,v));if(!this.clientPlaybackNonce){var Q=J.cpn;Q?(this.JJ("ssei","shdc"),this.clientPlaybackNonce=Q):this.clientPlaybackNonce=this.ix.Pw()?"r"+g.wV(15):g.wV(16)}}x&&(this.playerResponse=x);if(this.playerResponse){var S=this.playerResponse.annotations;if(S)for(var r=g.z(S),C=r.next();!C.done;C=r.next()){var O=C.value.playerAnnotationsUrlsRenderer;if(O){O.adsOnly&&(this.uu=!0);var H=O.loadPolicy; H&&(this.annotationsLoadPolicy=kdV[H]);var R=O.invideoUrl;R&&(this.Cv=N6(R));break}}var w=this.playerResponse.attestation;w&&V63(this,w);var P=this.playerResponse.cotn;P&&(this.cotn=P);var B=this.playerResponse.heartbeatParams;if(B){gOr(this)&&(this.Lm=!0);var p=B.heartbeatToken;p&&(this.drmSessionId=B.drmSessionId||"",this.heartbeatToken=p,this.hW=Number(B.intervalMilliseconds),this.xp=Number(B.maxRetries),this.EJ=!!B.softFailOnError,this.IC=!!B.useInnertubeHeartbeatsForDrm,this.MI=!0);this.heartbeatServerData= B.heartbeatServerData;var k;this.DO=!((k=B.heartbeatAttestationConfig)==null||!k.requiresAttestation)}var c=this.playerResponse.messages;c&&$We(this,c);var y=this.playerResponse.overlay;if(y){var A=y.playerControlsOverlayRenderer;if(A)if(rmf(this,A.controlBgHtml),A.mutedAutoplay){var q=g.f(A.mutedAutoplay,NIF);if(q&&q.endScreen){var or=g.f(q.endScreen,Jq8);or&&or.text&&(this.uE=g.Oe(or.text))}}else this.mutedAutoplay=!1}var lF=this.playerResponse.playabilityStatus;if(lF){var J7=lF.backgroundability; J7&&J7.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var h7,M;if((h7=lF.offlineability)==null?0:(M=h7.offlineabilityRenderer)==null?0:M.offlineable)this.offlineable=!0;var zM=lF.contextParams;zM&&(this.contextParams=zM);var B3=lF.pictureInPicture;B3&&B3.pictureInPictureRenderer.playableInPip&&(this.pipable=!0);lF.playableInEmbed&&(this.allowEmbed=!0);var fU=lF.ypcClickwrap;if(fU){var IH=fU.playerLegacyDesktopYpcClickwrapRenderer,hj=fU.ypcRentalActivationRenderer;if(IH)this.Fx= IH.durationMessage||"",this.kO=!0;else if(hj){var pU=hj.durationMessage;this.Fx=pU?g.Oe(pU):"";this.kO=!0}}var iF=lF.errorScreen;if(iF){if(iF.playerLegacyDesktopYpcTrailerRenderer){var lG=iF.playerLegacyDesktopYpcTrailerRenderer;this.f$=lG.trailerVideoId||"";var I=iF.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var VV=I&&I.ypcTrailerRenderer}else if(iF.playerLegacyDesktopYpcOfferRenderer)lG=iF.playerLegacyDesktopYpcOfferRenderer;else if(iF.ypcTrailerRenderer){VV=iF.ypcTrailerRenderer;var FS=VV.fullVideoMessage; this.Zt=FS?g.Oe(FS):"";var zR,pn;this.f$=((zR=g.f(VV,K4j))==null?void 0:(pn=zR.videoDetails)==null?void 0:pn.videoId)||""}lG&&(this.Eb=lG.itemTitle||"",lG.itemUrl&&(this.Qd=lG.itemUrl),lG.itemBuyUrl&&(this.iW=lG.itemBuyUrl),this.J4=lG.itemThumbnail||"",this.N8=lG.offerHeadline||"",this.Ub=lG.offerDescription||"",this.G9=lG.offerId||"",this.pO=lG.offerButtonText||"",this.zl=lG.offerButtonFormattedText||null,this.Wa=lG.overlayDurationMsec||NaN,this.Zt=lG.fullVideoMessage||"",this.Td=!0);if(VV){var Cn= g.f(VV,K4j);if(Cn)this.QL={raw_player_response:Cn};else{var GM=g.f(VV,QNH);this.QL=GM?oe(GM):null}this.Td=!0}}}var gu=this.playerResponse.playbackTracking;if(gu){var Ln=J,L=u7(gu.googleRemarketingUrl);L&&(this.googleRemarketingUrl=L);var T=u7(gu.youtubeRemarketingUrl);T&&(this.youtubeRemarketingUrl=T);var D={},Y=u7(gu.ptrackingUrl);if(Y){var W=eL(Y),P3=W.oid;P3&&(this.r9=P3);var nU=W.pltype;nU&&(this.A$=nU);var H3=W.ptchn;H3&&(this.nt=H3);var Xq=W.ptk;Xq&&(this.gm=encodeURIComponent(Xq));var TM=W.m; TM&&(this.t6=TM)}var A7=u7(gu.qoeUrl);if(A7){for(var wu=g.l9(A7),wI=g.z(Object.keys(wu)),dI=wI.next();!dI.done;dI=wI.next()){var ac=dI.value,FF=wu[ac];wu[ac]=Array.isArray(FF)?FF.join(","):FF}this.L4=wu;var FB=wu.cat;FB&&(this.J("html5_enable_qoe_cat_list")?this.h9=this.h9.concat(FB.split(",")):this.CL=FB);var er=wu.live;er&&(this.e7=er);var QI=wu.drm_product;QI&&(this.drmProduct=QI)}var Lk=u7(gu.videostatsPlaybackUrl);if(Lk){var OQ=eL(Lk),TW=OQ.adformat;if(TW){Ln.adformat=TW;var WR=this.S(),a$=X$H(TW, this.FC,WR.U,WR.L);a$&&(this.adFormat=a$)}var I3=OQ.aqi;I3&&(Ln.ad_query_id=I3);var lB=OQ.autoplay;lB&&(this.sy=lB=="1",this.L$=lB=="1");var q9=OQ.autonav;q9&&(this.isAutonav=q9=="1");var x2=OQ.delay;x2&&(this.Dm=uB(x2));var I0=OQ.ei;I0&&(this.eventId=I0);if(OQ.adcontext||TW)this.sy=!0;var WU=OQ.feature;WU&&(this.XA=WU);var Cu=OQ.list;Cu&&(this.playlistId=Cu);var H5=OQ.of;H5&&(this.w6=H5);var Rx=OQ.osid;Rx&&(this.osid=Rx);var uQ=OQ.referrer;uQ&&(this.referrer=uQ);var no=OQ.sdetail;no&&(this.Yi=no); var vV=OQ.ssrt;vV&&(this.Rg=vV=="1");var ey=OQ.subscribed;ey&&(this.subscribed=ey=="1");var oM=OQ.uga;oM&&(this.userGenderAge=oM);var zm=OQ.upt;zm&&(this.zt=zm);var wc=OQ.vm;wc&&(this.videoMetadata=wc);D.playback=OQ}var P5=u7(gu.videostatsWatchtimeUrl);if(P5){var Ix=eL(P5),iQ=Ix.ald;iQ&&(this.vL=iQ);D.watchtime=Ix}var B5=u7(gu.atrUrl);if(B5){var Jn=eL(B5);D.atr=Jn}var i1=u7(gu.engageUrl);if(i1){var KC=eL(i1);D.engage=KC}this.Qv=D;if(gu.promotedPlaybackTracking){var Zn=gu.promotedPlaybackTracking; Zn.startUrls&&(this.FX=Zn.startUrls);Zn.firstQuartileUrls&&(this.cV=Zn.firstQuartileUrls);Zn.secondQuartileUrls&&(this.zT=Zn.secondQuartileUrls);Zn.thirdQuartileUrls&&(this.zj=Zn.thirdQuartileUrls);Zn.completeUrls&&(this.mN=Zn.completeUrls);Zn.engagedViewUrls&&(Zn.engagedViewUrls.length>1&&g.gG(new g.qt("There are more than one engaged_view_urls.")),this.Se=Zn.engagedViewUrls[0])}}var Xw=this.playerResponse.playerCueRanges;Xw&&Xw.length>0&&(this.cueRanges=Xw);var mj=this.playerResponse.playerCueRangeSet; mj&&g.b7(this,mj);a:{var lD=this.playerResponse.adPlacements;if(lD)for(var pP=g.z(lD),xm=pP.next();!xm.done;xm=pP.next()){var LP=void 0,Tm=void 0,DQ=(LP=xm.value.adPlacementRenderer)==null?void 0:(Tm=LP.renderer)==null?void 0:Tm.videoAdTrackingRenderer;if(DQ){var dc=DQ;break a}}dc=null}var jQ=dc;gu&&gu.promotedPlaybackTracking&&jQ&&g.gG(new g.qt("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));var CM;if(!(CM=jQ))a:{for(var kc=g.z(this.playerResponse.adSlots||[]), V_=kc.next();!V_.done;V_=kc.next()){var hB=g.f(V_.value,yS);if(hB===void 0||!pgr(hB))break;var gc=void 0,nC=(gc=hB.fulfillmentContent)==null?void 0:gc.fulfilledLayout,c5=g.f(nC,Di);if(c5&&mf(c5)){CM=!0;break a}}CM=!1}CM&&(this.aW=!0);var Yc=this.playerResponse.playerAds;if(Yc)for(var ot=J,Gm=g.z(Yc),OS=Gm.next();!OS.done;OS=Gm.next()){var U_=OS.value;if(U_){var tF=U_.playerLegacyDesktopWatchAdsRenderer;if(tF){var BP=tF.playerAdParams;if(BP){BP.autoplay=="1"&&(this.L$=this.sy=!0);this.xY=BP.encodedAdSafetyReason|| null;BP.showContentThumbnail!==void 0&&(this.d3=!!BP.showContentThumbnail);ot.enabled_engage_types=BP.enabledEngageTypes;break}}}}var Y_=this.playerResponse.playerConfig;if(Y_){var Ff=Y_.manifestlessWindowedLiveConfig;if(Ff){var yd=Number(Ff.minDvrSequence),vs=Number(Ff.maxDvrSequence),HN=Number(Ff.minDvrMediaTimeMs),RW=Number(Ff.maxDvrMediaTimeMs),Q_=Number(Ff.startWalltimeMs);yd&&(this.h7=yd);HN&&(this.Aj=HN/1E3,this.J("html5_sabr_parse_live_metadata_playback_boundaries")&&xi(this)&&(this.xd=HN/ 1E3));vs&&(this.Ad=vs);RW&&(this.Gi=RW/1E3,this.J("html5_sabr_parse_live_metadata_playback_boundaries")&&xi(this)&&(this.v1=RW/1E3));Q_&&(this.a5=Q_/1E3);(yd||HN)&&(vs||RW)&&(this.allowLiveDvr=this.isLivePlayback=this.GA=!0,this.q_=!1)}var qd=Y_.daiConfig;if(qd){if(qd.enableDai){this.YO=!0;var uP=qd.enableServerStitchedDai;uP&&(this.enableServerStitchedDai=uP);var ZQ=qd.enablePreroll;ZQ&&(this.W5=ZQ)}var xw;if(qd.daiType==="DAI_TYPE_SS_DISABLED"||((xw=qd.debugInfo)==null?0:xw.isDisabledUnpluggedChannel))this.HJ= !0;qd.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.Sv=!0)}var $0=Y_.audioConfig;if($0){var a2=$0.loudnessDb;a2!=null&&(this.Nk=a2);var ejd=$0.trackAbsoluteLoudnessLkfs;ejd!=null&&(this.Je=ejd);var zje=$0.loudnessTargetLkfs;zje!=null&&(this.loudnessTargetLkfs=zje);$0.audioMuted&&(this.zw=!0);$0.muteOnStart&&(this.sH=!0);var Rp=$0.loudnessNormalizationConfig;if(Rp){Rp.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);Rp.preserveStatefulLoudnessTarget&&(this.preserveStatefulLoudnessTarget= !0);var w43=Rp.minimumLoudnessTargetLkfs;w43!=null&&(this.minimumLoudnessTargetLkfs=w43);var Poq=Rp.maxStatefulTimeThresholdSec;Poq!=null&&(this.maxStatefulTimeThresholdSec=Poq)}$0.playAudioOnly&&(this.H3=!0)}var CiM=Y_.playbackEndConfig;if(CiM){var Ic7=CiM.endSeconds,iC3=CiM.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(Ic7&&(this.endSeconds=Ic7),iC3&&(this.limitedPlaybackDurationInSeconds=iC3))}var zP=Y_.fairPlayConfig;if(zP){var BvU=zP.certificate;BvU&&(this.kF=VX(BvU));var m3d=Number(zP.keyRotationPeriodMs); m3d>0&&(this.Tt=m3d);var p47=Number(zP.keyPrefetchMarginMs);p47>0&&(this.VD=p47)}var NV=Y_.playbackStartConfig;if(NV){this.pQ=Number(NV.startSeconds);var LMd=NV.liveUtcStartSeconds,TvF=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0;LMd&&!TvF&&(this.liveUtcStartSeconds=Number(LMd));var OKU=NV.startPosition;if(OKU){var D3e=OKU.utcTimeMillis;D3e&&!TvF&&(this.liveUtcStartSeconds=Number(D3e)*.001);var d3V=OKU.streamTimeMillis;d3V&&(this.f9=Number(d3V)*.001)}this.progressBarStartPosition=NV.progressBarStartPosition; this.progressBarEndPosition=NV.progressBarEndPosition}else{var HK7=Y_.skippableSegmentsConfig;if(HK7){var khk=HK7.introSkipDurationMs;khk&&(this.l$=Number(khk)/1E3);var gw8=HK7.outroSkipDurationMs;gw8&&(this.I1=Number(gw8)/1E3)}}var R3M=Y_.skippableIntroConfig;if(R3M){var cnH=Number(R3M.startMs),Y2k=Number(R3M.endMs);isNaN(cnH)||isNaN(Y2k)||(this.t8=cnH,this.P3=Y2k)}var Ghp=Y_.streamSelectionConfig;Ghp&&(this.KU=Number(Ghp.maxBitrate));var U3U=Y_.vrConfig;U3U&&(this.Ci=U3U.partialSpherical=="1"); var uR=Y_.webDrmConfig;if(uR){uR.skipWidevine&&(this.ql=!0);var tMq=uR.widevineServiceCert;tMq&&(this.Zz=VX(tMq));uR.useCobaltWidevine&&(this.useCobaltWidevine=!0);uR.startWithNoQualityConstraint&&(this.Da=!0)}var a0=Y_.mediaCommonConfig;if(a0){var w_=a0.dynamicReadaheadConfig;if(w_){this.maxReadAheadMediaTimeMs=w_.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=w_.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs=w_.readAheadGrowthRateMs||NaN;var yn3,ZCd=a0==null?void 0:(yn3=a0.mediaUstreamerRequestConfig)== null?void 0:yn3.videoPlaybackUstreamerConfig;ZCd&&(this.Ui=VX(ZCd));var uhq=a0==null?void 0:a0.sabrContextUpdates;if(uhq&&uhq.length>0)for(var fcU=g.z(uhq),e33=fcU.next();!e33.done;e33=fcU.next()){var rV=e33.value;if(rV.type&&rV.value){var Qez={type:rV.type,scope:rV.scope,value:VX(rV.value)||void 0,sendByDefault:rV.sendByDefault};this.sabrContextUpdates.set(rV.type,Qez)}}}var WM3=a0.serverPlaybackStartConfig;WM3&&(this.serverPlaybackStartConfig=WM3);a0.useServerDrivenAbr&&(this.VJ=!0);var acr=a0.requestPipeliningConfig; acr&&(this.requestPipeliningConfig=acr)}var FMd=Y_.inlinePlaybackConfig;FMd&&(this.K4=!!FMd.showAudioControls);var PX=Y_.embeddedPlayerConfig;if(PX){this.embeddedPlayerConfig=PX;var z3U=PX.embeddedPlayerMode;if(z3U){var q2r=this.S();q2r.cW=z3U;q2r.X=z3U==="EMBEDDED_PLAYER_MODE_PFL"}var EwM=PX.permissions;EwM&&(this.allowImaMonetization=!!EwM.allowImaMonetization)}var Io=Y_.webPlayerConfig;Io&&(Io.gatewayExperimentGroup&&(this.gatewayExperimentGroup=Io.gatewayExperimentGroup),Io.isProximaEligible&& (this.isProximaLatencyEligible=!0))}var Fd=this.playerResponse.streamingData;if(Fd){var wde=Fd.formats;if(wde){for(var e6=[],bCp=g.z(wde),Pie=bCp.next();!Pie.done;Pie=bCp.next()){var IwF=Pie.value;e6.push(IwF.itag+"/"+IwF.width+"x"+IwF.height)}this.PJ=e6.join(",");e6=[];for(var AnV=g.z(wde),iK8=AnV.next();!iK8.done;iK8=AnV.next()){var zt=iK8.value,wp={itag:zt.itag,type:zt.mimeType,quality:zt.quality},MM3=zt.url;MM3&&(wp.url=MM3);var iI=kK(zt),$eV=iI.vJ,SjV=iI.eX,r2G=iI.s;iI.m3&&(wp.url=$eV,wp.sp= SjV,wp.s=r2G);e6.push(g.Lf(wp))}this.CH=e6.join(",")}var B$F=Fd.hlsFormats;if(B$F&&!this.J("safari_live_drm_captions_fix")){var Nve=Y_||null,BX={};if(Nve){var mYd=Nve.audioPairingConfig;if(mYd&&mYd.pairs)for(var JfM=g.z(mYd.pairs),pdd=JfM.next();!pdd.done;pdd=JfM.next()){var KDe=pdd.value,LE3=KDe.videoItag;BX[LE3]||(BX[LE3]=[]);BX[LE3].push(KDe.audioItag)}}for(var n3H={},o3M=g.z(B$F),T$M=o3M.next();!T$M.done;T$M=o3M.next()){var X0U=T$M.value;n3H[X0U.itag]=X0U.bitrate}for(var lNF=[],xO7=g.z(B$F),DY3= xO7.next();!DY3.done;DY3=xO7.next()){var nk=DY3.value,BV={itag:nk.itag,type:nk.mimeType,url:nk.url,bitrate:nk.bitrate,width:nk.width,height:nk.height,fps:nk.fps},mW=nk.audioTrack;if(mW){var jIV=mW.displayName;jIV&&(BV.name=jIV,BV.audio_track_id=mW.id,mW.audioIsDefault&&(BV.is_default="1"))}if(nk.drmFamilies){for(var Vce=[],hGd=g.z(nk.drmFamilies),dYf=hGd.next();!dYf.done;dYf=hGd.next())Vce.push(zs[dYf.value]);BV.drm_families=Vce.join(",")}var pp=BX[nk.itag];if(pp&&pp.length){BV.audio_itag=pp.join(","); var v37=n3H[pp[0]];v37&&(BV.bitrate+=v37)}var QIk=Xhk(nk);QIk&&(BV.eotf=QIk);nk.audioChannels&&(BV.audio_channels=nk.audioChannels);lNF.push(g.Lf(BV))}this.hlsFormats=lNF.join(",")}var kKF=Fd.licenseInfos;if(kKF&&kKF.length>0){for(var $O3={},Ss3=g.z(kKF),gX8=Ss3.next();!gX8.done;gX8=Ss3.next()){var rfF=gX8.value,sIf=rfF.drmFamily,CAM=rfF.url;sIf&&CAM&&($O3[zs[sIf]]=CAM)}this.rE=$O3}var OAV=Fd.drmParams;OAV&&(this.drmParams=OAV);var HAU=Fd.dashManifestUrl;HAU&&(this.fU=g.Td(HAU,{cpn:this.clientPlaybackNonce})); var RG8=Fd.hlsManifestUrl;RG8&&(this.hlsvp=RG8);var u4M=Fd.probeUrl;u4M&&(this.probeUrl=N6(g.Td(u4M,{cpn:this.clientPlaybackNonce})));var eGF=Fd.serverAbrStreamingUrl;eGF&&(this.nA=new g.mZ(eGF,!0))}var zG3=this.playerResponse.trackingParams;zG3&&(this.j_=zG3);var xR=this.playerResponse.videoDetails;if(xR){var m0=J,ceM=xR.videoId;ceM&&(this.videoId=ceM,m0.video_id||(m0.video_id=ceM));var YbH=xR.title;YbH&&(this.title=YbH,m0.title||(m0.title=YbH));var GKU=xR.lengthSeconds;GKU&&(this.lengthSeconds= Number(GKU),m0.length_seconds||(m0.length_seconds=GKU));var w0M=xR.keywords;w0M&&(this.keywords=ymp(w0M));var UYq=xR.channelId;UYq&&(this.OR=UYq,m0.ucid||(m0.ucid=UYq));var PAf=xR.viewCount;PAf&&(this.rawViewCount=Number(PAf));var tar=xR.author;tar&&(this.author=tar,m0.author||(m0.author=tar));var INk=xR.shortDescription;INk&&(this.shortDescription=INk);var iAd=xR.isCrawlable;iAd&&(this.isListed=iAd);var Bap=xR.musicVideoType;Bap&&(this.musicVideoType=Bap);var ye7=xR.isLive;ye7!=null&&(this.isLivePlayback= ye7);if(ye7||xR.isUpcoming)this.isPremiere=!xR.isLiveContent;var mOU=xR.thumbnail;mOU&&(this.L=Ru(mOU));var p0M=xR.isExternallyHostedPodcast;p0M&&(this.isExternallyHostedPodcast=p0M);var ZK3=xR.viewerLivestreamJoinPosition;if(ZK3==null?0:ZK3.utcTimeMillis)this.uW=uB(ZK3.utcTimeMillis);var LD3=Y_||null,fwV=J;xR.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=!0);xR.isUpcoming&&(this.isUpcoming=!0);if(xR.isPostLiveDvr){this.q_=!0;var TaF=xR.latencyClass;TaF&&(this.latencyClass=g_S[TaF]||"UNKNOWN"); xR.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var WEp=!1;this.Fq?(this.allowLiveDvr=lq()?!0:Me&&fH<5?!1:!0,this.isLivePlayback=!0):xR.isLive?(fwV.livestream="1",this.allowLiveDvr=xR.isLiveDvrEnabled?lq()?!0:Me&&fH<5?!1:!0:!1,this.partnerId=27,WEp=!0):xR.isUpcoming&&(WEp=!0);if(xR.isLive||this.Fq){xR.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0);var DOp=xR.latencyClass;DOp&&(this.latencyClass=g_S[DOp]||"UNKNOWN");var dOV=xR.liveChunkReadahead;dOV&&(this.liveChunkReadahead= dOV);var JN=LD3&&LD3.livePlayerConfig;if(JN){JN.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0);JN.hasSubfragmentedWebm&&(this.jr=!0);JN.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var kYV=JN.liveExperimentalContentId;kYV&&(this.liveExperimentalContentId=Number(kYV));var g38=JN.isLiveHeadPlayable;this.J("html5_live_head_playable")&&g38!=null&&(this.isLiveHeadPlayable=g38)}}WEp&&(this.isLivePlayback=!0,fwV.adformat&&fwV.adformat.split("_")[1]!=="8"||this.QG.push("heartbeat"), this.MI=!0)}var cfr=xR.isPrivate;cfr!==void 0&&(this.isPrivate=XK(this.isPrivate,cfr))}if(lF){var Ysf=xR||null,GYe=!1,KO=lF.errorScreen;GYe=KO&&(KO.playerLegacyDesktopYpcOfferRenderer||KO.playerLegacyDesktopYpcTrailerRenderer||KO.ypcTrailerRenderer)?!0:Ysf&&Ysf.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(lF.status);if(!GYe){this.errorCode=bgp(lF.errorCode)||"auth";var Lp=KO&&KO.playerErrorMessageRenderer;if(Lp){this.playerErrorMessageRenderer=Lp;var UO7=Lp.reason;UO7&&(this.errorReason= g.Oe(UO7));var awk=Lp.subreason;awk&&(this.PQ=g.Oe(awk),this.aJ=awk)}else this.errorReason=lF.reason||null;var FE3=lF.status;if(FE3==="LOGIN_REQUIRED")this.errorDetail="1";else if(FE3==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(FE3==="AGE_CHECK_REQUIRED"){var tc7=lF.errorScreen,yfU=tc7&&tc7.playerKavRenderer;this.errorDetail=yfU&&yfU.kavUrl?"4":"3"}else this.errorDetail=lF.isBlockedInRestrictedMode?"5":"0"}}var ZAq=this.playerResponse.interstitialPods;ZAq&&Qp8(this,ZAq);this.Cv&&this.eventId&& (this.Cv=jf(this.Cv,{ei:this.eventId}));var qbr=this.playerResponse.captions;if(qbr&&qbr.playerCaptionsTracklistRenderer)a:{var pe=qbr.playerCaptionsTracklistRenderer;this.captionTracks=[];if(pe.captionTracks)for(var fNH=g.z(pe.captionTracks),EXq=fNH.next();!EXq.done;EXq=fNH.next()){var Le=EXq.value,WDr=Gtp(Le.baseUrl);if(!WDr)break a;var bK3={is_translateable:!!Le.isTranslatable,languageCode:Le.languageCode,languageName:Le.name&&g.Oe(Le.name),url:WDr,vss_id:Le.vssId,kind:Le.kind};bK3.name=Le.trackName; bK3.displayName=Le.name&&g.Oe(Le.name);this.captionTracks.push(new g.r6(bK3))}this.V4=pe.audioTracks||[];this.YN=pe.defaultAudioTrackIndex||0;this.MM=[];if(pe.translationLanguages)for(var aN3=g.z(pe.translationLanguages),AeU=aN3.next();!AeU.done;AeU=aN3.next()){var nO=AeU.value,sH={};sH.languageCode=nO.languageCode;sH.languageName=g.Oe(nO.languageName);if(nO.translationSourceTrackIndices){sH.translationSourceTrackIndices=[];for(var FDM=g.z(nO.translationSourceTrackIndices),Mad=FDM.next();!Mad.done;Mad= FDM.next())sH.translationSourceTrackIndices.push(Mad.value)}if(nO.excludeAudioTrackIndices){sH.excludeAudioTrackIndices=[];for(var qs8=g.z(nO.excludeAudioTrackIndices),N$d=qs8.next();!N$d.done;N$d=qs8.next())sH.excludeAudioTrackIndices.push(N$d.value)}this.MM.push(sH)}this.w2=[];if(pe.defaultTranslationSourceTrackIndices)for(var E3U=g.z(pe.defaultTranslationSourceTrackIndices),Jyp=E3U.next();!Jyp.done;Jyp=E3U.next())this.w2.push(Jyp.value);this.c$=!!pe.contribute&&!!pe.contribute.captionsMetadataRenderer}(this.clipConfig= this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.pQ=Number(this.clipConfig.startTimeMs)*.001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&S$q(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var bAr;this.compositeLiveIngestionOffsetToken=(bAr=this.playerResponse.playbackTracking)==null?void 0:bAr.compositeLiveIngestionOffsetToken; var Afk;this.compositeLiveStatusToken=(Afk=this.playerResponse.playbackTracking)==null?void 0:Afk.compositeLiveStatusToken}FM(this,J);J.queue_info&&(this.queueInfo=J.queue_info);var Mcr=J.hlsdvr;Mcr!=null&&(this.allowLiveDvr=Number(Mcr)===1?lq()?!0:Me&&fH<5?!1:!0:!1);this.adQueryId=J.ad_query_id||null;this.xY||(this.xY=J.encoded_ad_safety_reason||null);this.zw=XK(this.zw,J.infringe||J.muted);this.r4=J.authkey;this.t_=J.authuser;this.mutedAutoplay=XK(this.mutedAutoplay,J&&J.playmuted);this.mutedAutoplayDurationMode= xF(this.mutedAutoplayDurationMode,J&&J.muted_autoplay_duration_mode);this.Wu=XK(this.Wu,J&&J.mutedautoplay);var TP=J.length_seconds;TP&&(this.lengthSeconds=typeof TP==="string"?uB(TP):TP);if(this.isAd()||this.O6||!g.QT(g.Gx(this.ix)))this.endSeconds=xF(this.endSeconds,this.I1||J.end||J.endSeconds);else{var sez=g.Gx(this.ix),DT=this.lengthSeconds;switch(sez){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":DT>30?this.limitedPlaybackDurationInSeconds=30:DT<30&&DT>10&&(this.limitedPlaybackDurationInSeconds= 10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=DT*.2}}this.j_=jI(this.j_,J.itct);this.kc=XK(this.kc,J.is_live_destination);this.isLivePlayback=XK(this.isLivePlayback,J.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.qS();J.isUpcoming&&(this.isUpcoming=XK(this.isUpcoming,J.isUpcoming));this.q_=XK(this.q_,J.post_live_playback);this.GA&&(this.q_=!1);this.isMdxPlayback=XK(this.isMdxPlayback,J.mdx);var d_=J.mdx_control_mode; d_&&(this.mdxControlMode=typeof d_==="number"?d_:uB(d_));this.isInlinePlaybackNoAd=XK(this.isInlinePlaybackNoAd,J.is_inline_playback_no_ad);this.iR=xF(this.iR,J.reload_count);this.reloadReason=jI(this.reloadReason,J.reload_reason);this.d3=XK(this.d3,J.show_content_thumbnail);this.cycToken=J.cyc||null;var NaM=HF(J);Object.keys(NaM).length>0&&(this.L=NaM);this.cW=jI(this.cW,J.vvt);this.mdxEnvironment=jI(this.mdxEnvironment,J.mdx_environment);J.source_container_playlist_id&&(this.sourceContainerPlaylistId= J.source_container_playlist_id);J.serialized_mdx_metadata&&(this.serializedMdxMetadata=J.serialized_mdx_metadata);this.Zp=J.osig;this.eventId||(this.eventId=J.eventid);this.osid||(this.osid=J.osid);this.playlistId=jI(this.playlistId,J.list);J.index&&(this.playlistIndex=this.playlistIndex===void 0?xF(0,J.index):xF(this.playlistIndex,J.index));this.N6=J.pyv_view_beacon_url;this.Kk=J.pyv_quartile25_beacon_url;this.vA=J.pyv_quartile50_beacon_url;this.ZC=J.pyv_quartile75_beacon_url;this.De=J.pyv_quartile100_beacon_url; var JOd=J.session_data;!this.hP&&JOd&&(this.hP=Ka(JOd,"&").feature);this.isFling=xF(this.isFling?1:0,J.is_fling)===1;this.vnd=xF(this.vnd,J.vnd);this.forceAdsUrl=jI(this.forceAdsUrl,J.force_ads_url);this.Gd=jI(this.Gd,J.ctrl);this.Ii=jI(this.Ii,J.ytr);this.Qg=J.ytrcc;this.Xi=J.ytrexp;this.As=J.ytrext;this.o2=jI(this.o2,J.adformat);this.FC=jI(this.FC,J.attrib);this.slotPosition=xF(this.slotPosition,J.slot_pos);this.breakType=J.break_type;this.Rg=XK(this.Rg,J.ssrt);this.videoId=h_(J)||this.videoId; this.N=jI(this.N,J.vss_credentials_token);this.mH=jI(this.mH,J.vss_credentials_token_type);this.H3=XK(this.H3,J.audio_only);this.fv=XK(this.fv,J.aac_high);this.Nf=XK(this.Nf,J.prefer_low_quality_audio);this.IK=XK(this.IK,J.uncap_inline_quality);this.J("html5_enable_qoe_cat_list")?J.qoe_cat&&(this.h9=this.h9.concat(J.qoe_cat.split(","))):this.CL=jI(this.CL,J.qoe_cat);this.RJ=XK(this.RJ,J.download_media);var Kbd=J.prefer_gapless;this.W=Kbd!=null?XK(this.W,Kbd):this.W?this.W:this.ix.preferGapless&&this.ix.supportsGaplessShorts(); V18(this.playerResponse)&&this.QG.push("ad");var n5V=J.adaptive_fmts;n5V&&(this.adaptiveFormats=n5V,this.Zm("adpfmts",{},!0));var o5d=J.allow_embed;o5d&&(this.allowEmbed=Number(o5d)===1);var X6f=J.backgroundable;X6f&&(this.backgroundable=Number(X6f)===1);var lFV=J.autonav;lFV&&(this.isAutonav=Number(lFV)===1);var xsq=J.autoplay;xsq&&(this.sy=this.L$=Number(xsq)===1);var j5p=J.iv_load_policy;j5p&&(this.annotationsLoadPolicy=lu(this.annotationsLoadPolicy,j5p,UM));var VYF=J.cc_lang_pref;VYF&&(this.captionsLanguagePreference= jI(VYF,this.captionsLanguagePreference));var hXd=J.cc_load_policy;hXd&&(this.uV=lu(this.uV,hXd,UM));var v5p;this.deviceCaptionsOn=(v5p=J.device_captions_on)!=null?v5p:void 0;var Q53;this.OH=(Q53=J.device_captions_lang_pref)!=null?Q53:"";var $sr;this.YP=($sr=J.viewer_selected_caption_langs)!=null?$sr:[];if(!this.J("html5_enable_ssap_entity_id")){var SKr=J.cached_load;SKr&&(this.fg=XK(this.fg,SKr))}if(J.dash==="0"||J.dash===0||J.dash===!1)this.mR=!0;var rOq=J.dashmpd;rOq&&(this.fU=g.Td(rOq,{cpn:this.clientPlaybackNonce})); var s58=J.delay;s58&&(this.Dm=uB(s58));var Ky3=this.I1||J.end;if(this.o5?Ky3!=null:Ky3!=void 0)this.clipEnd=xF(this.clipEnd,Ky3);var C68=J.fmt_list;C68&&(this.PJ=C68);J.heartbeat_preroll&&this.QG.push("heartbeat");this.Pu=-Math.floor(Math.random()*10);this.oK=-Math.floor(Math.random()*40);var ON8=J.is_listed;ON8&&(this.isListed=XK(this.isListed,ON8));var HN3=J.is_private;HN3&&(this.isPrivate=XK(this.isPrivate,HN3));var RX3=J.is_dni;RX3&&(this.t7=XK(this.t7,RX3));var upH=J.dni_color;upH&&(this.S$= jI(this.S$,upH));var eX3=J.pipable;eX3&&(this.pipable=XK(this.pipable,eX3));this.bN=(this.ym=this.pipable&&this.ix.E7)&&!this.ix.showMiniplayerButton;var zXq=J.paid_content_overlay_duration_ms;zXq&&(this.paidContentOverlayDurationMs=uB(zXq));var w6U=J.paid_content_overlay_text;w6U&&(this.paidContentOverlayText=w6U);var P6k=J.url_encoded_fmt_stream_map;P6k&&(this.CH=P6k);var IFd=J.hls_formats;IFd&&(this.hlsFormats=IFd);var iNF=J.hlsvp;iNF&&(this.hlsvp=iNF);var kg=J.live_start_walltime;kg&&(this.D0= typeof kg==="number"?kg:uB(kg));var g_=J.live_manifest_duration;g_&&(this.wm=typeof g_==="number"?g_:uB(g_));var Bkd=J.player_params;Bkd&&(this.playerParams=Bkd);var ms3=J.partnerid;ms3&&(this.partnerId=xF(this.partnerId,ms3));var p6f=J.probe_url;p6f&&(this.probeUrl=N6(g.Td(p6f,{cpn:this.clientPlaybackNonce})));var nMd=J.pyv_billable_url;nMd&&See(nMd)&&(this.Se=nMd);var oMq=J.pyv_conv_url;oMq&&See(oMq)&&(this.mE=oMq);Zyk(this,J);this.startSeconds>0?this.J("html5_log_start_seconds_inconsistency")&& this.startSeconds!==(this.pQ||this.l$||J.start||J.startSeconds)&&this.Zm("lss",{css:this.startSeconds,pcss:this.pQ,iss:this.l$,ps:J.start||void 0,pss:J.startSeconds||void 0}):this.vW=this.startSeconds=xF(this.startSeconds,this.pQ||this.l$||J.start||J.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var Lbd=J.live_utc_start;if(Lbd!=null)this.liveUtcStartSeconds=Number(Lbd);else{var XeV=this.startSeconds;XeV&&isFinite(XeV)&&XeV>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&& this.liveUtcStartSeconds>0)){var Tkd=J.utc_start_millis;Tkd&&(this.liveUtcStartSeconds=Number(Tkd)*.001)}var DsV=J.stream_time_start_millis;DsV&&(this.f9=Number(DsV)*.001);var lnU=this.l$||J.start;(this.o5?lnU==null||Number(J.resume)===1:lnU==void 0||J.resume=="1")||this.isLivePlayback||(this.clipStart=xF(this.clipStart,lnU));var dsV=J.url_encoded_third_party_media;dsV&&(this.pI=X6(dsV));var xrU=J.ypc_offer_button_formatted_text;if(xrU){var kLr=JSON.parse(xrU);this.zl=kLr!=null?kLr:null;this.Bc=xrU}var g5q= J.ypc_offer_button_text;g5q&&(this.pO=g5q);var cOd=J.ypc_offer_description;cOd&&(this.Ub=cOd);var YKV=J.ypc_offer_headline;YKV&&(this.N8=YKV);var GLU=J.ypc_full_video_message;GLU&&(this.Zt=GLU);var Usk=J.ypc_offer_id;Usk&&(this.G9=Usk);var tY7=J.ypc_buy_url;tY7&&(this.iW=tY7);var yO3=J.ypc_item_thumbnail;yO3&&(this.J4=yO3);var ZN8=J.ypc_item_title;ZN8&&(this.Eb=ZN8);var fFp=J.ypc_item_url;fFp&&(this.Qd=fFp);var Wbf=J.ypc_vid;Wbf&&(this.f$=Wbf);J.ypc_overlay_timeout&&(this.Wa=Number(J.ypc_overlay_timeout)); var aFM=J.ypc_trailer_player_vars;aFM&&(this.QL=oe(aFM));var FbM=J.ypc_original_itct;FbM&&(this.X3d=FbM);this.OR=jI(this.OR,J.ucid);this.mf=J.storyboard_spec||null;this.fG=J.live_storyboard_spec||null;this.VY=J.iv_endscreen_url||null;this.MI=XK(this.MI,J.ypc_license_checker_module);this.Td=XK(this.Td,J.ypc_module);this.kO=XK(this.kO,J.ypc_clickwrap_module);this.Td&&this.QG.push("ypc");this.kO&&this.QG.push("ypc_clickwrap");this.iJ={video_id:J.video_id,eventid:J.eventid,cbrand:J.cbrand,cbr:J.cbr,cbrver:J.cbrver, c:J.c,cver:J.cver,ctheme:J.ctheme,cplayer:J.cplayer,cmodel:J.cmodel,cnetwork:J.cnetwork,cos:J.cos,cosver:J.cosver,cplatform:J.cplatform,user_age:J.user_age,user_display_image:J.user_display_image,user_display_name:J.user_display_name,user_gender:J.user_gender,csi_page_type:J.csi_page_type,csi_service_name:J.csi_service_name,enablecsi:J.enablecsi,enabled_engage_types:J.enabled_engage_types};Y$r(this,J);var qKd=J.cotn;qKd&&(this.cotn=qKd);if(nOf(this))hk(this)&&(this.isLivePlayback&&this.fU&&(this.RH= !0),this.kF&&(this.dV=!0));else if(oOF(this))this.RH=!0;else{var E58,bN8,AOf=((E58=this.playerResponse)==null?void 0:(bN8=E58.streamingData)==null?void 0:bN8.adaptiveFormats)||[];if(AOf.length>0)var P$=KiV(this,AOf);else{var MYf=this.adaptiveFormats;if(MYf&&!hk(this)){this.ix.C.X&&(cu=!0);var oL=CS(MYf),jyM=this.rE,Nkk=this.lengthSeconds,C9G=this.isLivePlayback,Ip=this.q_,XO=this.ix,Oan=Hhd(oL);if(C9G||Ip){var J8V=XO==null?void 0:XO.experiments,Zr=new un("",J8V,!0);Zr.qS=!0;Zr.isManifestless=!0;Zr.Z= !Ip;Zr.isLive=!Ip;Zr.q_=Ip;for(var K58=g.z(oL),V7k=K58.next();!V7k.done;V7k=K58.next()){var l$=V7k.value,nUd=Pu(l$,jyM),CE=Ij(l$.url,l$.sp,l$.s),oUV=CE.get("id");oUV&&oUV.includes("%7E")&&(Zr.K=!0);var XAf=void 0,HaG=(XAf=J8V)==null?void 0:XAf.sM("html5_max_known_end_time_rebase"),Rqr=Number(l$.target_duration_sec)||5,u6g=Number(l$.max_dvr_duration_sec)||14400,lh3=Number(CE.get("mindsq")||CE.get("min_sq")||"0"),xBq=Number(CE.get("maxdsq")||CE.get("max_sq")||"0")||Infinity;Zr.h7=Zr.h7||lh3;Zr.Ad=Zr.Ad|| xBq;var eqz=!ox(nUd.mimeType);CE&&OV(Zr,new n4(CE,nUd,{sY:Rqr,rV:eqz,JF:u6g,h7:lh3,Ad:xBq,z5:300,q_:Ip,v_:HaG}))}var jXr=Zr}else{if(Oan==="FORMAT_STREAM_TYPE_OTF"){var cX=Nkk;cX=cX===void 0?0:cX;var xk=new un("",XO==null?void 0:XO.experiments,!1);xk.duration=cX||0;for(var VTr=g.z(oL),hEk=VTr.next();!hEk.done;hEk=VTr.next()){var jm=hEk.value,vMk=Pu(jm,jyM,xk.duration),Qy8=Ij(jm.url,jm.sp,jm.s);if(Qy8)if(vMk.streamType==="FORMAT_STREAM_TYPE_OTF")OV(xk,new oj(Qy8,vMk,"sq/0"));else{var zq0=kf(jm.init), wag=kf(jm.index);OV(xk,new re(Qy8,vMk,zq0,wag))}}xk.isOtf=!0;var hVr=xk}else{var Yg=Nkk;Yg=Yg===void 0?0:Yg;var GP=new un("",XO==null?void 0:XO.experiments,!1);GP.duration=Yg||0;for(var vUe=g.z(oL),$rf=vUe.next();!$rf.done;$rf=vUe.next()){var VM=$rf.value,P9V=Pu(VM,jyM,GP.duration),ICS=g.U(kf(VM.init)),iau=g.U(kf(VM.index)),QXk=Ij(VM.url,VM.sp,VM.s);QXk&&OV(GP,new re(QXk,P9V,ICS,iau))}hVr=GP}jXr=hVr}var $B7=jXr;if(oL.length>0){var SkU=oL[0];if(this.S().playerStyle==="hangouts-meet"&&SkU.url){var BNO= g.l9(SkU.url);this.tv=this.tv||Number(BNO.expire)}}var meV=this.isLivePlayback&&!this.q_&&!this.GA&&!this.isPremiere;this.J("html5_live_head_playable")&&(!vD(this)&&meV&&this.Zm("missingLiveHeadPlayable",{}),this.ix.GA==="yt"&&($B7.Cv=!0));P$=$B7}else P$=null;this.Zm("pafmts",{isManifestFilled:!!P$})}if(P$){Sn(this,P$);var r8U=!0}else r8U=!1;r8U?this.enableServerStitchedDai=this.enableServerStitchedDai&&Qu(this):this.fU&&(this.ix.GA==="yt"&&this.qS()&&this.J("drm_manifestless_unplugged")&&this.J("html5_deprecate_manifestful_fallback")? this.Zm("deprecateMflFallback",{}):this.RH=!0)}var Sv3=J.adpings;Sv3&&(this.Xt=Sv3?oe(Sv3):null);var sXd=J.feature;sXd&&(this.XA=sXd);var CjH=J.referrer;CjH&&(this.referrer=CjH);this.clientScreenNonce=jI(this.clientScreenNonce,J.csn);this.i9=xF(this.i9,J.root_ve_type);this.WJ=xF(this.WJ,J.kids_age_up_mode);this.o5||J.kids_app_info==void 0||(this.kidsAppInfo=J.kids_app_info);this.o5&&J.kids_app_info!=null&&(this.kidsAppInfo=J.kids_app_info);this.Le=XK(this.Le,J.upg_content_filter_mode);this.unpluggedFilterModeType= xF(this.unpluggedFilterModeType,J.unplugged_filter_mode_type);var O$p=J.unplugged_location_info;O$p&&(this.F2=O$p);var H$q=J.unplugged_partner_opt_out;H$q&&(this.ir=jI("",H$q));this.UK=XK(this.UK,J.disable_watch_next);this.Cu=jI(this.Cu,J.internal_ip_override);this.JD=!!J.is_yto_interstitial;(this.interstitials.length||this.JD)&&this.QG.push("yto");var RVk=J.Hq;RVk&&(this.Hq=RVk);this.K=jI(this.K,J.csi_timer);J.watchUrl&&(this.watchUrl=J.watchUrl);var OH=J.watch_endpoint;this.J("html5_attach_watch_endpoint_ustreamer_config")&& OH&&NOH(this,OH);if(OH==null?0:OH.ustreamerConfig)this.N1=VX(OH.ustreamerConfig);var u_U,eV8,zVp=OH==null?void 0:(u_U=OH.loggingContext)==null?void 0:(eV8=u_U.qoeLoggingContext)==null?void 0:eV8.serializedContextData;zVp&&(this.Vi=zVp);g.pR(this.ix)&&this.ix.pI&&(this.embedsRct=jI(this.embedsRct,J.rct),this.embedsRctn=jI(this.embedsRctn,J.rctn));this.OY=this.OY||!!J.pause_at_start;J.default_active_source_video_id&&(this.defaultActiveSourceVideoId=J.default_active_source_video_id)}; g.u.S=function(){return this.ix}; g.u.J=function(J){return this.ix.J(J)}; g.u.vp=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.u.hasSupportedAudio51Tracks=function(){var J;return!((J=this.zL)==null||!J.Fq)}; g.u.getUserAudio51Preference=function(){var J=1;Mw(this.ix)&&this.J("html5_ytv_surround_toggle_default_off")?J=0:g.EM(this.ix)&&this.isLivePlayback&&this.wK()&&(J=0);var K;return(K=g.g1("yt-player-audio51"))!=null?K:J}; g.u.LB=function(){this.o4()||(this.G.Z||this.G.unsubscribe("refresh",this.LB,this),this.QQ(-1))}; g.u.QQ=function(J){if(!this.isLivePlayback||!this.C||this.C.flavor!=="fairplay"){var K=ujF(this.G,this.tD);if(K.length>0){for(var n=g.z(K),X=n.next();!X.done;X=n.next())X=X.value,X.startSecs=Math.max(X.startSecs,this.yU()),this.J("html5_cuepoint_identifier_logging")&&X.event==="start"&&this.Zm("cuepoint",{pubCue:X.identifier,segNum:J});this.publish("cuepointupdated",K,J);this.tD+=K.length;if(Qu(this)&&this.ix.Pw())for(K=g.z(K),n=K.next();!n.done;n=K.next())n=n.value,this.Zm("cuepoint",{segNum:J,event:n.event, startSecs:n.startSecs,id:n.identifier.slice(-16)}),n.event==="start"&&(n=n.startSecs,this.Jp.start=this.wN,this.Jp.end=n+3)}}}; g.u.hJ=function(){this.o4()||(this.loading=!1,this.publish("dataloaded"))}; g.u.wK=function(){return this.E7!==void 0?this.E7:this.E7=!!this.rE||!!this.G&&ed(this.G)}; g.u.cn=function(J){var K=this;if(this.o4())return DC();this.PM=this.gQ=this.X=null;Fr(this,"html5_high_res_logging_always")&&(this.ix.H3=!0);return j8H(this,J).then(void 0,function(){return hCF(K,J)}).then(void 0,function(){return vOH(K)}).then(void 0,function(){return $P3(K)})}; g.u.Nr=function(J){this.X=J;VCH(this,this.X.getAvailableAudioTracks());if(this.X){J=g.z(this.X.videoInfos);for(var K=J.next();!K.done;K=J.next()){K=K.value;var n=K.containerType;n!==0&&(this.g2[n]=K.id)}}J=this.getAvailableAudioTracks();J=J.concat(this.O3);for(K=0;K0?this.X.getAvailableAudioTracks():this.KL||[]:[]}; g.u.getAudioTrack=function(){var J=this;if(this.U&&!NR(this.U)){var K=g.ru(this.getAvailableAudioTracks(),function(l){return l.id===J.U.id}),n; if(this.J("html5_sabr_skip_client_audio_init_selection")&&!K&&((n=this.U.Hw)==null?0:n.id)){var X=this.U.Hw.id;K=g.ru(this.getAvailableAudioTracks(),function(l){return l.Hw.id===X}); this.Zm("nat",{id:this.U.id,track:!!K})}return K||this.O3}if(this.KL){if(!this.Jv)for(K=g.z(this.KL),n=K.next();!n.done;n=K.next())if(n=n.value,n.Hw.getIsDefault()){this.Jv=n;break}return this.Jv||this.O3}return this.O3}; g.u.getPlayerResponse=function(){return this.playerResponse}; g.u.getWatchNextResponse=function(){return this.MQ}; g.u.getHeartbeatResponse=function(){return this.oF}; g.u.BH=function(){return this.watchUrl?this.watchUrl:this.ix.getVideoUrl(this.videoId)}; g.u.Ag=function(){return!!this.G&&(QKF(this.G)||$nM(this.G)||S9M(this.G))}; g.u.getEmbeddedPlayerResponse=function(){return this.eK}; g.u.Sz=function(){return(this.eventLabel||this.ix.MQ)==="shortspage"}; g.u.isAd=function(){return!!this.adFormat}; g.u.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.u.NH=function(){var J,K,n;return this.isDaiEnabled()&&this.enableServerStitchedDai&&!!((J=this.playerResponse)==null?0:(K=J.playerConfig)==null?0:(n=K.daiConfig)==null?0:n.ssaEnabledPlayback)}; g.u.i7=function(){return gOr(this)?this.Lm:this.MI||this.oO}; g.u.JI=function(){return this.Td||this.oO}; g.u.Ae=function(){return Fr(this,"html5_samsung_vp9_live")}; g.u.Zm=function(J,K,n){this.publish("ctmp",J,K,n)}; g.u.JJ=function(J,K,n){this.publish("ctmpstr",J,K,n)}; g.u.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.u.getGetAdBreakContext=function(J,K){J=J===void 0?NaN:J;K=K===void 0?NaN:K;var n={isSabr:xi(this)},X,l=(X=this.getHeartbeatResponse())==null?void 0:X.adBreakHeartbeatParams;l&&(n.adBreakHeartbeatParams=l);if(this.J("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.G&&!isNaN(J)&&!isNaN(K)){K=J-K;for(var x in this.G.G)if(X=this.G.G[x],X.info.VB()||X.info.Mp())if(X=X.index,X.isLoaded()){x=X.dG(K);X=X.vM(x)+K-X.getStartTime(x);this.Zm("gabc",{t:J.toFixed(3),mt:K.toFixed(3),sg:x,igt:X.toFixed(3)}); n.livePlaybackPosition={utcTimeMillis:""+(X*1E3).toFixed(0)};break}}return n}; g.u.isEmbedsShortsMode=function(J,K){if(!g.pR(this.ix)||(this.ix.cW||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||K)return!1;var n,X;return!!(((n=this.embeddedPlayerConfig)==null?0:(X=n.embeddedPlayerFlags)==null?0:X.isShortsExperienceEligible)&&J.width<=J.height)}; g.u.Xq=function(){g.hi.prototype.Xq.call(this);this.Xt=null;delete this.lX;delete this.accountLinkingConfig;delete this.G;this.X=this.oF=this.playerResponse=this.MQ=null;this.CH=this.adaptiveFormats="";delete this.botguardData;this.wQ=this.suggestions=this.rL=null;this.sabrContextUpdates.clear()};var fdM={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},Wi3={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},y5U={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},GX8={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"},tCq={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},UP3={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"},Zzp={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.e(lo,g.t);g.u=lo.prototype;g.u.handleExternalCall=function(J,K,n){var X=this.state.W[J],l=this.state.L[J],x=X;if(l)if(n&&bO(n,KQr))x=l;else if(!X)throw Error('API call from an untrusted origin: "'+n+'"');this.logApiCall(J,n);if(x){n=!1;X=g.z(K);for(l=X.next();!l.done;l=X.next())if(String(l.value).includes("javascript:")){n=!0;break}n&&g.gG(Error('Dangerous call to "'+J+'" with ['+K+"]."));return x.apply(this,K)}throw Error('Unknown API method: "'+J+'".');}; g.u.logApiCall=function(J,K,n){var X=this.app.S();X.Rg&&!this.state.K.has(J)&&(this.state.K.add(J),g.vJ("webPlayerApiCalled",{callerUrl:X.loaderUrl,methodName:J,origin:K||void 0,playerStyle:X.playerStyle||void 0,embeddedPlayerMode:X.cW,errorCode:n}))}; g.u.publish=function(J){var K=g.c3.apply(1,arguments);this.state.X.publish.apply(this.state.X,[J].concat(g.m(K)));if(J==="videodatachange"||J==="resize"||J==="cardstatechange")this.state.Z.publish.apply(this.state.Z,[J].concat(g.m(K))),this.state.U.publish.apply(this.state.U,[J].concat(g.m(K)))}; g.u.I4=function(J){var K=g.c3.apply(1,arguments);this.state.X.publish.apply(this.state.X,[J].concat(g.m(K)));this.state.Z.publish.apply(this.state.Z,[J].concat(g.m(K)))}; g.u.gR=function(J){var K=g.c3.apply(1,arguments);this.state.X.publish.apply(this.state.X,[J].concat(g.m(K)));this.state.Z.publish.apply(this.state.Z,[J].concat(g.m(K)));this.state.U.publish.apply(this.state.U,[J].concat(g.m(K)))}; g.u.B3=function(J){var K=g.c3.apply(1,arguments);this.state.X.publish.apply(this.state.X,[J].concat(g.m(K)));this.state.Z.publish.apply(this.state.Z,[J].concat(g.m(K)));this.state.U.publish.apply(this.state.U,[J].concat(g.m(K)));this.state.C.publish.apply(this.state.C,[J].concat(g.m(K)))}; g.u.J=function(J){return this.app.S().J(J)}; g.u.Xq=function(){if(this.state.element){var J=this.state.element,K;for(K in this.state.G)this.state.G.hasOwnProperty(K)&&(J[K]=null);this.state.element=null}g.t.prototype.Xq.call(this)};g.e(Q3,g.BM);Q3.prototype.publish=function(J){var K=g.c3.apply(1,arguments);if(this.C.has(J))return this.C.get(J).push(K),!0;var n=!1;try{for(K=[K],this.C.set(J,K);K.length;)n=g.BM.prototype.publish.call.apply(g.BM.prototype.publish,[this,J].concat(g.m(K.shift())))}finally{this.C.delete(J)}return n};g.e($w,g.t);$w.prototype.Xq=function(){this.C.dispose();this.U.dispose();this.Z.dispose();this.X.dispose();this.K=this.G=this.L=this.W=this.N=void 0};var MCM=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.e(rv,lo);g.u=rv.prototype;g.u.getApiInterface=function(){return Array.from(this.state.N)}; g.u.DX=function(J,K){this.state.C.subscribe(J,K)}; g.u.Mp4=function(J,K){this.state.C.unsubscribe(J,K)}; g.u.getPlayerState=function(J){return jwV(this.app,J)}; g.u.AZ=function(){return jwV(this.app)}; g.u.fTv=function(J,K,n){O2(this)&&(c1(this.app,!0,1),UN(this.app,J,K,n,1))}; g.u.getCurrentTime=function(J,K,n){var X=this.getPlayerState(J);if(this.app.getAppState()===2&&X===5){var l;return((l=this.app.getVideoData())==null?void 0:l.startSeconds)||0}return this.J("web_player_max_seekable_on_ended")&&X===0?p8(this.app,J):J?this.app.getCurrentTime(J,K,n):this.app.getCurrentTime(J)}; g.u.OU=function(){return this.app.getCurrentTime(1)}; g.u.QK=function(){var J=this.app.vM(1);return isNaN(J)?this.getCurrentTime(1):J}; g.u.vt=function(){return this.app.getDuration(1)}; g.u.kX=function(J,K){J=g.BK(Math.floor(J),0,100);isFinite(J)&&B1(this.app,{volume:J,muted:this.isMuted()},K)}; g.u.dpG=function(J){this.kX(J,!1)}; g.u.yb=function(J){B1(this.app,{muted:!0,volume:this.getVolume()},J)}; g.u.Pxd=function(){this.yb(!1)}; g.u.pN=function(J){CC(this.app)&&!this.J("embeds_enable_emc3ds_muted_autoplay")||B1(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},J)}; g.u.sO5=function(){CC(this.app)&&this.J("embeds_enable_emc3ds_muted_autoplay")||this.pN(!1)}; g.u.getPlayerMode=function(){var J={};this.app.getVideoData().t7&&(J.pfp={enableIma:g.Eo(this.app.getVideoData())&&this.app.Dr().allowImaMonetization,autoplay:cD(this.app.Dr()),mutedAutoplay:this.app.Dr().mutedAutoplay});return J}; g.u.hS=function(){var J=this.app.getPresentingPlayerType();if(J===2&&!this.app.YO()){var K=BZ(this.app.hx());if(!(Sdu(K)||this.app.S().J("embeds_emc3ds_dompaused_fix")&&g.pR(this.app.S())&&g.E(this.app.a4().getPlayerState(),1024))||r7S(K))return}(K=this.app.P6().uH)?K.playVideo():this.app.playVideo(J)}; g.u.Ftq=function(){c1(this.app,!0,1);this.hS()}; g.u.pauseVideo=function(J){var K=this.app.getPresentingPlayerType();if(K!==2||this.app.YO()||Sdu(BZ(this.app.hx()))){var n=this.app.P6().uH;n?n.pauseVideo():this.app.pauseVideo(K,J)}}; g.u.MTx=function(){var J=this.app,K=!1;J.lx.wN&&(J.R4.publish("pageTransition"),K=!0);J.stopVideo(K)}; g.u.clearVideo=function(){}; g.u.getAvailablePlaybackRates=function(){var J=this.app.S();return J.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(J.U?J.ancestorOrigins[0]:window.location.origin)||J.Ws?L48:J.supportsVarispeedExtendedFeatures?Tsn:J.J("web_remix_allow_up_to_3x_playback_rate")&&g.G_(J)?DEG:iM:[1]}; g.u.getPlaybackQuality=function(J){return(J=this.app.EB(J))?J.getPlaybackQuality():"unknown"}; g.u.zd_=function(){}; g.u.getAvailableQualityLevels=function(J){return(J=this.app.EB(J))?(J=g.ff(J.J9(),function(K){return K.quality}),J.length&&(J[0]==="auto"&&J.shift(),J=J.concat(["auto"])),J):[]}; g.u.L5=function(){return this.getAvailableQualityLevels(1)}; g.u.cY=function(){return this.V3()}; g.u.Mj=function(){return 1}; g.u.getVideoLoadedFraction=function(J){return this.app.getVideoLoadedFraction(J)}; g.u.V3=function(){return this.getVideoLoadedFraction()}; g.u.UQ=function(){return 0}; g.u.getSize=function(){var J=this.app.S_().getPlayerSize();return{width:J.width,height:J.height}}; g.u.setSize=function(){this.app.S_().resize()}; g.u.loadVideoById=function(J,K,n,X){if(!J)return!1;J=SM(J,K,n);return this.app.loadVideoByPlayerVars(J,X)}; g.u.zb=function(J,K,n){J=this.loadVideoById(J,K,n,1);c1(this.app,J,1)}; g.u.cueVideoById=function(J,K,n,X){J=SM(J,K,n);this.app.cueVideoByPlayerVars(J,X)}; g.u.g4=function(J,K,n){this.cueVideoById(J,K,n,1)}; g.u.loadVideoByUrl=function(J,K,n,X){J=A5F(J,K,n);return this.app.loadVideoByPlayerVars(J,X)}; g.u.K0=function(J,K,n){J=this.loadVideoByUrl(J,K,n,1);c1(this.app,J,1)}; g.u.cueVideoByUrl=function(J,K,n,X){J=A5F(J,K,n);this.app.cueVideoByPlayerVars(J,X)}; g.u.F3=function(J,K,n){this.cueVideoByUrl(J,K,n,1)}; g.u.BY=function(){var J=this.app.S();if(J.QG)return"";var K=this.app.Dr(),n=void 0;K.isLivePlayback||(n=Math.floor(this.app.getCurrentTime(1)));return J.getVideoUrl(K.videoId,this.getPlaylistId()||void 0,n)}; g.u.K5=function(){return this.app.getDebugText()}; g.u.getVideoEmbedCode=function(){var J=this.app.S();if(J.QG)return"";var K=this.app.Dr(),n=J.getVideoEmbedCode;K=K.isPrivate?"":K.title;var X=this.app.Dr().videoId;return n.call(J,K,X,this.app.S_().getPlayerSize(),this.getPlaylistId()||void 0)}; g.u.zp=function(J,K,n){return swp(this.app,J,K,n)}; g.u.removeCueRange=function(J){return OqF(this.app,J)}; g.u.loadPlaylist=function(J,K,n,X){this.app.loadPlaylist(J,K,n,X)}; g.u.YQ=function(J,K,n,X){this.loadPlaylist(J,K,n,X);c1(this.app,!0,1)}; g.u.cuePlaylist=function(J,K,n,X){this.app.cuePlaylist(J,K,n,X)}; g.u.nextVideo=function(J,K){this.app.nextVideo(J,K)}; g.u.oFW=function(){this.nextVideo();c1(this.app,!0,1)}; g.u.previousVideo=function(J){this.app.previousVideo(J)}; g.u.dkv=function(){this.previousVideo();c1(this.app,!0,1)}; g.u.playVideoAt=function(J){this.app.playVideoAt(J)}; g.u.Ihd=function(J){this.playVideoAt(J);c1(this.app,!0,1)}; g.u.setShuffle=function(J){var K=this.app.getPlaylist();K&&K.setShuffle(J)}; g.u.setLoop=function(J){var K=this.app.getPlaylist();K&&(K.loop=J)}; g.u.iP=function(){var J=this.app.getPlaylist();if(!J)return null;for(var K=[],n=0;n=400)if(J=g.U(this.Dr()),this.B.S().J("client_respect_autoplay_switch_button_renderer"))J=!!J.autoplaySwitchButtonRenderer;else{var K,n,X,l;J=!!((K=J.getWatchNextResponse())==null?0:(n=K.contents)==null?0:(X=n.twoColumnWatchNextResults)==null?0:(l=X.autoplay)==null?0:l.autoplay)!==!1}if(J)this.G||(this.G=!0,this.Yr(this.G),this.B.S().J("web_player_autonav_toggle_always_listen")||z8H(this), K=g.U(this.Dr()),this.WA(K.autonavState),this.B.logVisibility(this.element,this.G));else if(this.G=!1,this.Yr(this.G),!this.B.S().J("web_player_autonav_toggle_always_listen"))for(this.B.S().J("web_player_autonav_toggle_always_listen"),K=g.z(this.Z),n=K.next();!n.done;n=K.next())this.rR(n.value)}; g.u.WA=function(J){PXd(this)?this.isChecked=J!==1:((J=J!==1)||(g.yT(),J=g.ef("web_autonav_allow_off_by_default")&&!g.Z0(0,141)&&g.Et("AUTONAV_OFF_BY_DEFAULT")?!1:!g.Z0(0,140)),this.isChecked=J);wGe(this)}; g.u.onClick=function(){this.isChecked=!this.isChecked;this.B.X0(this.isChecked?2:1);wGe(this);if(PXd(this)){var J=g.U(this.Dr()).autoplaySwitchButtonRenderer;this.isChecked&&(J==null?0:J.onEnabledCommand)?this.B.I4("innertubeCommand",J.onEnabledCommand):!this.isChecked&&(J==null?0:J.onDisabledCommand)&&this.B.I4("innertubeCommand",J.onDisabledCommand)}this.B.logClick(this.element)}; g.u.getValue=function(){return this.isChecked}; g.u.Dr=function(){return this.B.getVideoData(1)};g.e(IXe,bo);g.e(oI,g.at);oI.prototype.onClick=function(){this.enabled&&(X4(this,!this.checked),this.publish("select",this.checked))}; oI.prototype.getValue=function(){return this.checked}; oI.prototype.setEnabled=function(J){(this.enabled=J)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var Bwr=["en-CA","en","es-MX","fr-CA"];g.e(Q9,oI);Q9.prototype.WW=function(J){J?this.G||(this.Zv.qH(this),this.G=!0):this.G&&(this.Zv.fl(this),this.G=!1);this.G&&X4(this,YY3())}; Q9.prototype.U=function(){g.hv(this.element,"ytp-menuitem-highlight-transition-enabled")}; Q9.prototype.X=function(J){var K=YY3();J!==K&&(K=g.yT(),WB(190,J),WB(192,!0),K.save(),this.B.I4("cinematicSettingsToggleChange",J))}; Q9.prototype.Xq=function(){this.G&&this.Zv.fl(this);oI.prototype.Xq.call(this)};g.e($3,bo);$3.prototype.updateCinematicSettings=function(J){this.G=J;var K;(K=this.menuItem)==null||K.WW(J);this.api.publish("onCinematicSettingsVisibilityChange",J)};g.e(Le8,bo);g.e(Sc,bo);Sc.prototype.setCreatorEndscreenVisibility=function(J){var K;(K=T4(this.api.hx()))==null||K.Yr(J)}; Sc.prototype.G=function(J){function K(X){X==="creatorendscreen"&&(X=T4(n.api.hx()))&&X.YBQ(n.hideButton)} var n=this;this.hideButton=J;this.events.T(this.api,"modulecreated",K);K("creatorendscreen")};g.e(ra,oI);ra.prototype.U=function(J){this.X(J?1:0)}; ra.prototype.Z=function(){var J=this.hasDrcAudioTrack(),K=this.G()===1&&J;X4(this,K);this.setEnabled(J)}; ra.prototype.Xq=function(){this.Zv.fl(this);oI.prototype.Xq.call(this)};g.e(CA,bo);CA.prototype.getDrcUserPreference=function(){return this.G}; CA.prototype.setDrcUserPreference=function(J){g.kF("yt-player-drc-pref",J,31536E3);J!==this.G&&(this.G=J,this.updateEnvironmentData(),this.Z()&&this.api.dL())}; CA.prototype.updateEnvironmentData=function(){this.api.S().kO=this.G===1}; CA.prototype.Z=function(){var J,K,n=(J=this.api.getVideoData())==null?void 0:(K=J.X)==null?void 0:K.G;if(!n)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.J("mta_drc_mutual_exclusion_removal")){var X,l,x=(X=this.api.VO())==null?void 0:(l=X.Hw)==null?void 0:l.id;return Ma(n,function(V){var v;return V.audio.G&&((v=V.Hw)==null?void 0:v.id)===x})}return Ma(n,function(V){var v; return((v=V.audio)==null?void 0:v.G)===!0})};g.e(Os,bo);Os.prototype.onVideoDataChange=function(){var J=this,K=this.api.getVideoData();this.api.Uo("embargo",1);var n=K==null?void 0:K.n4.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(n==null?0:n.length)?DIe(this,n.filter(function(X){return Twp(J,X)})):(K==null?0:K.cueRanges)&&DIe(this,K.cueRanges.filter(function(X){return Twp(J,X)}))}; Os.prototype.Z=function(J){return J.embargo!==void 0}; Os.prototype.Xq=function(){bo.prototype.Xq.call(this);this.G={}};g.e(H0,bo); H0.prototype.addEmbedsConversionTrackingParams=function(J){var K=this.api.S(),n=K.widgetReferrer,X=K.x4,l=this.G,x="",V=K.getWebPlayerContextConfig();V&&(x=V.embedsIframeOriginParam||"");n.length>0&&(J.embeds_widget_referrer=n);X.length>0&&(J.embeds_referring_euri=X);K.U&&x.length>0&&(J.embeds_referring_origin=x);V&&V.embedsFeature&&(J.feature=V.embedsFeature);l.length>0&&(K.J("embeds_web_enable_lite_experiment_control_arm_logging")?l.unshift(28572):g.QT(g.Gx(K))&&l.unshift(159628),K=l.join(","),K= g.ae()?K:g.KK(K,4),J.source_ve_path=K);this.G.length=0};g.e(dIF,bo);g.e(k73,bo);g.e(RI,g.t);RI.prototype.Xq=function(){g.t.prototype.Xq.call(this);this.G=null;this.Z&&this.Z.disconnect()};g.e(ct3,bo);g.e(uA,g.F);uA.prototype.show=function(){g.F.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; uA.prototype.stopTimer=function(){this.G&&(this.G.dispose(),this.G=null)}; uA.prototype.onVideoDataChange=function(J){var K,n,X=(K=this.api.getVideoData())==null?void 0:(n=K.getPlayerResponse())==null?void 0:n.playabilityStatus;X&&(K=Y3r(X),g.E(this.api.getPlayerStateObject(),128)||J==="dataloaderror"||!K?(this.Z=0,this.stopTimer(),this.hide()):(J=(K.remainingTimeSecs||0)*1E3,J>0&&(this.show(),this.updateValue("label",iX(K.label)),UI3(this,J))))}; uA.prototype.Xq=function(){this.stopTimer();g.F.prototype.Xq.call(this)};g.e(tb3,bo);g.e(ec,g.F);ec.prototype.onClick=function(){this.R4.logClick(this.element);this.R4.I4("onFullerscreenEduClicked")}; ec.prototype.WW=function(){this.R4.isFullscreen()?this.G?this.fade.hide():this.fade.show():this.hide();this.R4.logVisibility(this.element,this.R4.isFullscreen()&&!this.G)};g.e(zY,bo);zY.prototype.updateFullerscreenEduButtonSubtleModeState=function(J){var K;(K=this.G)!=null&&(g.Qq(K.element,"ytp-fullerscreen-edu-button-subtle",J),J&&!K.Z&&(K.element.setAttribute("title","Scroll for details"),wv(K.R4,K.element,K),K.Z=!0))}; zY.prototype.updateFullerscreenEduButtonVisibility=function(J){var K;(K=this.G)!=null&&(K.G=J,K.WW())};g.e(ytq,g.F);g.e(Wee,bo);g.e(wa,bo);wa.prototype.getSphericalProperties=function(){var J=g.Th(this.api.hx());return J?J.getSphericalProperties():{}}; wa.prototype.setSphericalProperties=function(J){if(J){var K=g.Th(this.api.hx());K&&K.setSphericalProperties(J,!0)}};g.e(P0,bo);g.u=P0.prototype;g.u.createClientVe=function(J,K,n,X){this.api.createClientVe(J,K,n,X===void 0?!1:X)}; g.u.createServerVe=function(J,K,n){this.api.createServerVe(J,K,n===void 0?!1:n)}; g.u.setTrackingParams=function(J,K){this.api.setTrackingParams(J,K)}; g.u.logClick=function(J,K){this.api.logClick(J,K)}; g.u.logVisibility=function(J,K,n){this.api.logVisibility(J,K,n)}; g.u.hasVe=function(J){return this.api.hasVe(J)}; g.u.destroyVe=function(J){this.api.destroyVe(J)};var FeF=!1;iA.prototype.setPlaybackRate=function(J){this.playbackRate=Math.max(1,J)}; iA.prototype.getPlaybackRate=function(){return this.playbackRate};TY.prototype.GS=function(J){var K=g.JF(J.info.G.info,this.HW.qS),n=J.info.BW+this.U,X=J.info.startTime*1E3;if(this.policy.gQ)try{X=this.policy.gQ?g.VC(J)*1E3:J.info.startTime*1E3}catch(V){Math.random()>.99&&this.logger&&(X=zI(J.G).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:J.info.Zr(),encodedDataView:g.Je(X,4)})),X=J.info.startTime*1E3}var l=J.info.clipId,x=this.policy.gQ?g.bPk(J)*1E3:J.info.duration*1E3;this.policy.gQ&&(X<0||x<0)&&(this.logger&&(this.logger({missingSegInfo:J.info.Zr(), startTimeMs:X,durationMs:x}),this.policy.O6||(X<0&&(X=J.info.startTime*1E3),x<0&&(x=J.info.duration*1E3))),this.policy.O6&&(X<0&&(X=J.info.startTime*1E3),x<0&&(x=J.info.duration*1E3)));return{formatId:K,BW:n,startTimeMs:X,clipId:l,QT:x}}; TY.prototype.uB=function(J){this.timestampOffset=J};DN.prototype.seek=function(J,K){J!==this.G&&(this.seekCount=0);this.G=J;var n=this.videoTrack.Z,X=this.audioTrack.Z,l=this.audioTrack.jl,x=Q9M(this,this.videoTrack,J,this.videoTrack.jl,K);K=Q9M(this,this.audioTrack,this.policy.nE?J:x,l,K);J=Math.max(J,x,K);this.C=!0;this.HW.isManifestless&&(xKe(this,this.videoTrack,n),xKe(this,this.audioTrack,X));return J}; DN.prototype.isSeeking=function(){return this.C}; DN.prototype.X9=function(J){this.X=J}; var vKM=2/24;var rJM=0;g.u=W0.prototype;g.u.tT=function(){this.K=this.now();jz3(this.u_,this.K);this.XK.tT()}; g.u.cL=function(J,K){var n=this.policy.Z?(0,g.a)():0;aI(this,J,K);J-this.N<10&&this.Z>0||this.J6(J,K);this.XK.cL(J,K);this.policy.Z&&(J=(0,g.a)()-n,this.iR+=J,this.md=Math.max(J,this.md))}; g.u.J6=function(J,K){var n=(J-this.N)/1E3,X=K-this.X;this.Lg||(uq(this.u_,n,X),this.gT(n,X));this.N=J;this.X=K}; g.u.Qs=function(){this.cW&&s9r(this);this.XK.Qs()}; g.u.rr=function(J){this.cW||(this.cW=this.C-this.o5+J,this.fU=this.C,this.KU=this.W)}; g.u.wT=function(J,K){J=J===void 0?this.W:J;K=K===void 0?this.C:K;this.Z>0||(this.L=J,this.Z=K,this.GA=this.isActive=!0)}; g.u.jj=function(){return this.Bp||2}; g.u.vU=function(){}; g.u.jF=function(){var J,K={rn:this.requestNumber,rt:(this.W-this.G).toFixed(),lb:this.C,stall:(1E3*this.U).toFixed(),ht:(this.K-this.G).toFixed(),elt:(this.L-this.G).toFixed(),elb:this.Z,d:(J=this.MQ)==null?void 0:J.Q2()};this.url&&aXr(K,this.url);this.policy.Z&&(K.mph=this.md.toFixed(),K.tph=this.iR.toFixed());K.ulb=this.PW;K.ult=this.QG;return K}; g.u.now=function(){return(0,g.a)()}; g.u.deactivate=function(){this.isActive&&(this.isActive=!1)};g.e(qO,W0);g.u=qO.prototype;g.u.jF=function(){var J=W0.prototype.jF.call(this);J.pb=this.Rw;J.pt=(1E3*this.Dm).toFixed();J.se=this.wN;return J}; g.u.Yu=function(){var J=this.XK;this.gQ||(this.gQ=J.Yu?J.Yu():1);return this.gQ}; g.u.MW=function(){return this.T0?this.Yu()!==1:!1}; g.u.d$=function(J,K,n){if(!this.a5){this.a5=!0;if(!this.Lg){aI(this,J,K);this.J6(J,K);var X=this.Yu();this.wN=n;if(!this.Lg)if(X===2){X=J-this.L0)||Es(this,X,K),this.Z>0&&Hp(this.u_,K,this.U));J=(J-this.G)/ 1E3||.01;this.policy.L&&!(this.Z>0)||OM(this.u_,J,this.X,OTM(this),this.qd)}this.deactivate()}}; g.u.JT=function(J,K,n){n&&(this.gQ=2);J<0&&this.Bp&&(J=this.Bp);K?this.fv+=J:this.kF+=J}; g.u.jj=function(){return this.kF||this.fv||W0.prototype.jj.call(this)}; g.u.J6=function(J,K){var n=(J-this.N)/1E3,X=K-this.X,l=this.Yu();this.isActive?l===1&&((X>0||this.policy.C)&&(n>.2||X<1024)?(this.U+=n,X>0&&n>.2&&Es(this,this.aE?n:.05,X),this.vW=!0):X>0&&(Es(this,n,X),this.vW=!0)):K&&K>=this.policy.G&&this.wT(J,K);W0.prototype.J6.call(this,J,K)}; g.u.Yp=function(J){if(!this.Lg){aI(this,J,this.C);var K=(J-this.G)/1E3;this.Yu()!==2&&this.Z>0&&(this.U+=(J-this.N)/1E3,Hp(this.u_,this.X,this.U));OM(this.u_,K,this.X,OTM(this),this.qd,!0);J=(J-this.N)/1E3;uq(this.u_,J,0);this.gT(J,0)}}; g.u.wT=function(J,K){J=J===void 0?this.W:J;K=K===void 0?this.C:K;if(!(this.Z>0)&&(W0.prototype.wT.call(this,J,K),this.Yu()===1)){K=(this.K-this.G)/1E3;var n=(J-this.K)/1E3;this.T0&&bA(this,this.now());this.Gi||this.Lg||(this.Bp&&(n=Math.max(0,n-this.Bp)),J=this.u_,J.L.Ty(1,K),J.MQ.Ty(1,n))}}; g.u.oV=function(){this.T0&&bA(this,this.now());return this.Cv}; g.u.Z4=function(){var J;if(J=this.X>this.D6)J=(J=this.X)?J>=this.policy.G:!1;return J}; g.u.Hf=function(){return this.wQ}; g.u.NR=function(J){J=J===void 0?this.now():J;if(this.T0){bA(this,J);if(this.gQ?this.MW():this.Aj!==this.j_){var K=this.j_;if(J0?n+J:n+Math.max(J,K)}; g.u.iI=function(){return this.now()-this.L}; g.u.UX=function(){return(this.X-this.Z)*1E3/this.iI()||0}; g.u.Cp=function(){return this.L};Af.prototype.feed=function(J){Hg(this.G,J);this.AB()}; Af.prototype.AB=function(){if(this.U){if(!this.G.getLength())return;var J=this.G.split(this.X-this.Z),K=J.F$;J=J.YL;if(!this.XK.rr(this.U,K,this.Z,this.X))return;this.Z+=K.getLength();this.G=J;this.Z===this.X&&(this.U=this.X=this.Z=void 0)}for(;;){var n=0;J=g.z(eYp(this.G,n));K=J.next().value;n=J.next().value;n=g.z(eYp(this.G,n));J=n.next().value;n=n.next().value;if(K<0||J<0)break;if(!this.G.Il(n,J)){if(!this.XK.rr||!this.G.Il(n,1))break;n=this.G.split(n).YL;this.XK.rr(K,n,0,J)&&(this.U=K,this.Z= n.getLength(),this.X=J,this.G=new Og([]));break}J=this.G.split(n).YL.split(J);n=J.YL;this.XK.u5(K,J.F$);this.G=n}}; Af.prototype.dispose=function(){this.G=new Og};g.u=MO.prototype;g.u.Q5=function(){return 0}; g.u.cf=function(){return null}; g.u.Ar=function(){return null}; g.u.ZS=function(){return this.state>=1}; g.u.isComplete=function(){return this.state>=3}; g.u.tL=function(){return this.state===5}; g.u.onStateChange=function(){}; g.u.RZ=function(J){var K=this.state;this.state=J;this.onStateChange(K);this.callback&&this.callback(this,K)}; g.u.QE=function(J){J&&this.state=this.xhr.HEADERS_RECEIVED}; g.u.getResponseHeader=function(J){try{return this.xhr.getResponseHeader(J)}catch(K){return""}}; g.u.YS=function(){return+this.getResponseHeader("content-length")}; g.u.qV=function(){return this.Z}; g.u.ZZ=function(){return this.status>=200&&this.status<300&&!!this.Z}; g.u.W6=function(){return this.G.getLength()>0}; g.u.jg=function(){var J=this.G;this.G=new Og;return J}; g.u.W0=function(){return this.G}; g.u.abort=function(){this.o4=!0;this.xhr.abort()}; g.u.QD=function(){return!0}; g.u.m4=function(){return this.X}; g.u.Zo=function(){return""};KN.prototype.sR=function(J,K){K=K===void 0?1:K;this.Md+=K;this.Z+=J;J/=K;for(var n=0;n0)X+="."+JO[l].toFixed(0)+"_"+n.G[l].toFixed(0);else break;n=X}n&&(J[K]=n)}this.G=new wo3;return J}; g.u.toString=function(){return""};g.u=mKf.prototype;g.u.isActive=function(){return!1}; g.u.Km=function(){}; g.u.j9=function(){}; g.u.Gl=function(){}; g.u.tK=function(){}; g.u.b4=function(J,K){K()}; g.u.zN=function(){return{}}; g.u.toString=function(){return""};var xj,cpn,Y8r,Gd8,UuS,jq,wE,o5,ZL3;xj=new mKf;cpn=!!+bk("html5_enable_profiler");Y8r=!!+bk("html5_onesie_enable_profiler");Gd8=!!+bk("html5_offline_encryption_enable_profiler");UuS=!!+bk("html5_performance_impact_profiling_timer_ms");jq=cpn||Y8r||Gd8||UuS?new IDq:xj;g.dF=cpn?jq:xj;wE=Y8r?jq:xj;o5=Gd8?jq:xj;ZL3=UuS?jq:xj;g.u=TU8.prototype;g.u.getResponseHeader=function(J){return J==="content-type"?this.G.get("type"):""}; g.u.abort=function(){}; g.u.zY=function(){return!0}; g.u.YS=function(){return this.range.length}; g.u.qV=function(){return this.loaded}; g.u.ZZ=function(){return!!this.loaded}; g.u.W6=function(){return!!this.Z.getLength()}; g.u.jg=function(){var J=this.Z;this.Z=new Og;return J}; g.u.W0=function(){return this.Z}; g.u.QD=function(){return!0}; g.u.m4=function(){return!!this.error}; g.u.Zo=function(){return this.error};g.u=dKM.prototype;g.u.start=function(J){var K={credentials:"include",cache:"no-store"};Object.assign(K,this.W);this.U&&(K.signal=this.U.signal);J=new Request(J,K);fetch(J).then(this.K,this.onError).then(void 0,hL)}; g.u.onDone=function(){this.o4()||this.XK.Qs()}; g.u.getResponseHeader=function(J){return this.responseHeaders?this.responseHeaders.get(J):null}; g.u.zY=function(){return!!this.responseHeaders}; g.u.qV=function(){return this.Z}; g.u.YS=function(){return+this.getResponseHeader("content-length")}; g.u.ZZ=function(){return this.status>=200&&this.status<300&&!!this.Z}; g.u.W6=function(){return!!this.G.getLength()}; g.u.jg=function(){this.W6();var J=this.G;this.G=new Og;return J}; g.u.W0=function(){this.W6();return this.G}; g.u.o4=function(){return this.C}; g.u.abort=function(){this.X&&this.X.cancel().catch(function(){}); this.U&&this.U.abort();this.C=!0}; g.u.QD=function(){return!0}; g.u.m4=function(){return this.N}; g.u.Zo=function(){return this.errorMessage};g.u=kJp.prototype;g.u.onDone=function(){if(!this.o4){this.status=this.xhr.status;try{this.response=this.xhr.response,this.Z=this.response.byteLength}catch(J){}this.G=!0;this.XK.Qs()}}; g.u.XZ=function(){this.xhr.readyState===2&&this.XK.tT()}; g.u.Tc=function(J){this.o4||(this.status=this.xhr.status,this.G||(this.Z=J.loaded),this.XK.cL((0,g.a)(),J.loaded))}; g.u.zY=function(){return this.xhr.readyState>=2}; g.u.getResponseHeader=function(J){try{return this.xhr.getResponseHeader(J)}catch(K){return g.gG(Error("Could not read XHR header "+J)),""}}; g.u.YS=function(){return+this.getResponseHeader("content-length")}; g.u.qV=function(){return this.Z}; g.u.ZZ=function(){return this.status>=200&&this.status<300&&this.G&&!!this.Z}; g.u.W6=function(){return this.G&&!!this.response&&!!this.response.byteLength}; g.u.jg=function(){this.W6();var J=this.response;this.response=void 0;return new Og([new Uint8Array(J)])}; g.u.W0=function(){this.W6();return new Og([new Uint8Array(this.response)])}; g.u.abort=function(){this.o4=!0;this.xhr.abort()}; g.u.QD=function(){return!1}; g.u.m4=function(){return!1}; g.u.Zo=function(){return""};g.e(l6,g.t);l6.prototype.LI=function(){if(!this.fH.length)return[];var J=this.fH;this.fH=[];this.X=g.$r(J).info;return J}; l6.prototype.f6=function(){return this.fH}; l6.prototype.Xq=function(){g.t.prototype.Xq.call(this);this.G=null;this.fH.length=0;this.Lv.length=0;this.X=null};g.e(jY,g.t);g.u=jY.prototype; g.u.BWG=function(){if(!this.o4()){var J=(0,g.a)(),K=!1;if(this.policy.v1){J=J-(this.timing.Z>0?this.timing.L:this.timing.G)-this.timing.jj()*1E3;var n=Pm(VU(this),!1);J>=2E3*n?K=!0:J>=this.policy.f$*n&&(this.G=this.policy.Da)}else if(this.timing.Z>0){if(this.C){this.policy.o5&&(this.G=0);return}var X=this.timing.Hf();this.timing.NR();var l=this.timing.Hf();l-X>=this.policy.Nk*.8?(this.G++,this.logger.debug(function(){return"Mispredicted by "+(l-X).toFixed(0)}),K=this.G>=5):this.G=0}else{var x=J-this.timing.oV(); this.policy.Da&&x>0&&(this.G+=1);K=Pm(VU(this),!1)*this.policy.kP;(K=x>K*1E3)&&this.logger.debug(function(){return"Elbow late by "+x.toFixed(3)})}this.G>0&&this.XK.fS(); K?this.XX():this.Z.start()}}; g.u.XX=function(){this.U=!0;this.XK.KO();this.lastError="net.timeout";v6(this)}; g.u.canRetry=function(J){var K=VU(this);J=J?this.policy.J4:this.policy.VJ;return K.timedOut0&&(K=K.G.getUint8(0),J.ubyte=K,n===1&&K===0&&(J.b248180278=!0))}this.RO&&(J.rc=this.policy.G9?this.RO:this.RO.toString());this.policy.KU&&this.qb&&(J.tr=this.qb);J.itag=this.info.Lv[0].G.info.itag;J.ml=""+ +this.info.Lv[0].G.qp();J.sq=""+this.info.Lv[0].BW;this.pE&&(J.ifi=""+ +DD(this.info.Ax.Z));this.RO!==410&&this.RO!==500&&this.RO!==503||(J.fmt_unav="true");var X;(n=this.errorMessage||((X=this.xhr)==null? void 0:X.Zo()))&&(J.msg=n);this.Tj&&(J.smb="1");this.info.isDecorated()&&(J.sdai="1");return J}; g.u.Gz=function(){return HT3(this.timing)}; g.u.Zo=function(){return this.xhr.Zo()||""}; g.u.Z4=function(){return this.isComplete()||this.timing.Z4()}; g.u.cL=function(){!this.o4()&&this.xhr&&(this.RO=this.xhr.status,this.policy.uu&&this.uY&&this.j5(!1),this.t0()?this.QE(2):!this.vN&&this.Z4()&&(this.QE(),this.vN=!0))}; g.u.tT=function(){if(!this.o4()&&this.xhr){if(!this.EV&&this.xhr.zY()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var J=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.EV=((0,g.a)()-J)/1E3}this.xhr.zY()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.hW&&!M1M()&&g.kF("yt-player-headers-readable",!0,2592E3);J=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var K=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),n;(n=this.UA)==null||n.stop();this.hm=J||this.hm; this.Pq=K||this.Pq}}; g.u.Qs=function(){var J=this.xhr;if(!this.o4()&&J){this.RO=J.status;J=this.IB(J);if(this.policy.KU){var K;(K=this.UA)==null||K.stop()}J===5?v6(this.cM):this.RZ(J);this.cM.Z.stop()}}; g.u.IB=function(J){var K=this;rGH(this);if(QU(this.cM,this.xhr.status,this.No?this.timing.GA||this.QF:this.xhr.ZZ(),!1,this.Xj))return 5;var n="";$5(this.cM,this.xhr)&&(n=tdV(this.cM,this.xhr));if(n)return wZ(VU(this.cM)),this.info.bk(this.pE,n),3;n=J.qV();if(this.z0){this.j5(!0);rGH(this);if(QU(this.cM,this.xhr.status,this.timing.GA||this.QF,!1,this.Xj))return 5;if(!this.Ts){if(this.QF)return wZ(VU(this.cM)),3;this.cM.lastError="net.closed";return 5}}else{if(QU(this.cM,this.xhr.status,this.xhr.ZZ(), !1,this.Xj))return 5;var X=this.info.X;if(X&&X!==n||J.m4())return this.cM.lastError="net.closed",5;this.j5(!0)}X=zY7(this)?J.getResponseHeader("X-Bandwidth-Est"):0;if(J=zY7(this)?J.getResponseHeader("X-Bandwidth-Est3"):0)this.Cx=!0,this.policy.sH&&(X=J);GJp(this.cM,n,X?Number(X):0,this.info.Lv[0].type===5);this.logger.debug(function(){var l=K.timing;return"Succeeded, rtpd="+(l.Dm*1E3+l.G-Date.now()).toFixed(0)}); return 4}; g.u.canRetry=function(){this.o4();var J=this.info.isDecorated();return this.cM.canRetry(J)}; g.u.onStateChange=function(){this.isComplete()&&(this.policy.MI?this.KO():this.timing.deactivate())}; g.u.XX=function(){this.cM.XX()}; g.u.fS=function(){this.callback&&this.callback(this,this.state)}; g.u.a8=function(){return this.cM.a8()}; g.u.dispose=function(){MO.prototype.dispose.call(this);this.cM.dispose();var J;(J=this.UA)==null||J.dispose();this.policy.MI||this.KO()}; g.u.KO=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.u.LI=function(){if(!this.f6().length)return[];this.Fo=!0;return this.uY.LI()}; g.u.t0=function(){if(this.state<1)return!1;if(this.uY&&this.uY.fH.length)return!0;var J;return((J=this.xhr)==null?0:J.W6())?!0:!1}; g.u.f6=function(){this.j5(!1);return this.uY?this.uY.f6():[]}; g.u.j5=function(J){try{if(J||this.xhr.zY()&&this.xhr.W6()&&!$5(this.cM,this.xhr)&&!this.rf)this.uY||(this.uY=new l6(this.policy,this.info.Lv)),this.xhr.W6()&&(this.z0?this.z0.feed(this.xhr.jg()):x5(this.uY,this.xhr.jg(),J&&!this.xhr.W6()))}catch(K){this.z0?QDk(this,K):g.gG(K)}}; g.u.u5=function(J,K){switch(J){case 21:J=K.split(1).YL;$QF(this,J);break;case 22:this.Ts=!0;x5(this.uY,new Og([]),!0);break;case 43:if(J=cg(new L3(K),1))this.info.bk(this.pE,J),this.QF=!0;break;case 45:K=jd(new L3(K));J=K.Lz;K=K.Sq;J&&K&&(this.jL=J/K);break;case 44:this.wf=M_d(new L3(K));var n,X,l;!this.timing.GA&&((n=this.wf)==null?void 0:n.action)===4&&((X=this.wf)==null?0:(l=X.bF)==null?0:l.No)&&(this.No=this.wf.bF.No);break;case 53:this.policy.KU&&(J=E1V(new L3(K)).Pa)&&(this.UA||(this.Pa=J,this.UA= new g.AT(this.nB,J,this)),this.UA.start());break;case 60:this.yj=xK(new L3(K));break;case 58:if(J=iGV(new L3(K)))this.Ob=J,J.Ob===3&&(this.Xj=!0)}}; g.u.rr=function(J,K,n,X){n||this.timing.rr(X);if(J!==21)return!1;if(J=this.policy.uu)if(X=K.getLength()+n===X,J*=this.info.Lv[0].G.info.OM,!X&&K.getLength()0)return!1;if(!this.xhr.zY())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.z0)var J=!this.info.X;else this.xhr.YS()?J=!1:(J=this.xhr.getResponseHeader("content-type"),J=J==="audio/mp4"||J==="video/mp4"||J==="video/webm");if(!J)return!1;if(isNaN(this.info.Ey)){J=this.xhr.getResponseHeader("x-head-seqnum");var K=this.timing.policy.W?1:0;if(!J)this.logger.debug("No x-head-seqnum, cannot tell if head segment."); else if(Number(J)>this.info.Lv[0].BW+K)return!1}return!0}; g.u.N5=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.u.cf=function(){this.xhr&&(this.hm=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.hm}; g.u.Ar=function(){this.xhr&&(this.Pq=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.Pq}; g.u.TR=function(){return this.cM.TR()}; g.u.nB=function(){if(!this.o4()&&this.xhr){this.qb="heartbeat";var J=this.cM;J.G+=2;this.fS()}};g.e(eY,W0);g.u=eY.prototype;g.u.J6=function(J,K){var n=(J-this.N)/1E3,X=K-this.X;this.Z>0?X>0&&(this.Aj&&(n>.2||X<1024?(this.U+=n,n>.2&&sD7(this,.05,X)):sD7(this,n,X)),this.j_&&(this.Cv+=X,this.kF+=n)):K>this.policy.G&&this.wT(J,K);W0.prototype.J6.call(this,J,K)}; g.u.d$=function(J,K){aI(this,J,K);this.J6(J,K);this.Aj&&(K=this.X*this.snapshot.stall+this.X/this.snapshot.byterate,this.Z>0&&Hp(this.u_,this.Cv,this.U),J=(J-this.G)/1E3||.01,this.policy.L&&!(this.Z>0)||OM(this.u_,J,this.X,K,!1))}; g.u.Yp=function(J){aI(this,J,this.C);var K=(J-this.N)/1E3;uq(this.u_,K,0);this.gT(K,0);!this.Aj&&this.Z>0||(K=this.X*this.snapshot.stall+this.X/this.snapshot.byterate,this.Z>0&&(this.U+=(J-this.N)/1E3,Hp(this.u_,this.Cv,this.U)),OM(this.u_,((J-this.G)/1E3||.01)*this.policy.GA,this.X,K,!1,!0))}; g.u.VH=function(J){J=J.Jq||2147483647;(J&2)!==2&&(this.j_=!1);(J&1)===1&&(this.Aj=!0)}; g.u.NL=function(J){J=J.Jq||2147483647;(J&2)===2&&(this.j_=!1);(J&1)===1&&(this.Aj=!1)}; g.u.Cp=function(){return this.L}; g.u.iI=function(){var J=this.j_?this.now()-this.N:0;return Math.max(this.kF*1E3+J,1)}; g.u.UX=function(){return this.Cv*1E3/this.iI()}; g.u.wT=function(J,K){J=J===void 0?this.W:J;K=K===void 0?this.C:K;this.Z>0||(W0.prototype.wT.call(this,J,K),K=this.u_,J=(J-this.K)/1E3,K.L.Ty(1,(this.K-this.G)/1E3),K.MQ.Ty(1,J))}; g.u.vU=function(J){this.fv=J}; g.u.jF=function(){var J=W0.prototype.jF.call(this);J.rbw=this.UX();J.rbe=+this.j_;J.gbe=+this.Aj;J.ackt=(this.fv-this.G).toFixed();return J}; g.u.NR=function(){}; g.u.Hf=function(){return NaN}; g.u.oV=function(){return this.G+this.snapshot.delay*1E3};zL.prototype.u5=function(J,K){K.getLength();switch(J){case 20:J=new L3(K);J={Ip:dH(J,1),videoId:cg(J,2),itag:dH(J,3),lmt:dH(J,4),xtags:cg(J,5),fY:dH(J,6),Yd:k9(J,8),Av:dH(J,9),gu4:dH(J,10),startMs:dH(J,11),durationMs:dH(J,12),kf:dH(J,14),timeRange:Y9(J,15,v1k),fJ:dH(J,16),mI:dH(J,17),clipId:cg(J,1E3)};this.HK(J);break;case 21:this.C3(K,!1);break;case 22:this.C$(K);break;case 31:J=t3(K,t_q);this.CK(J);break;case 52:J=t3(K,bGr);this.x9(J);break;default:this.r$(J,K)}}; zL.prototype.HK=function(){}; zL.prototype.r$=function(){};g.e(wk,zL);g.u=wk.prototype; g.u.r$=function(J,K){K.getLength();switch(J){case 35:this.Ha(K);break;case 44:this.Rq(K);break;case 43:this.ya(K);break;case 53:this.aY(K);break;case 55:J=new L3(K);Y9(J,1,Jlr);Y9(J,2,o6d);break;case 56:this.Jf();break;case 57:this.YE(K);break;case 42:this.qz(K);break;case 45:this.Jm(K);break;case 59:this.k_(K);break;case 51:this.tf(K);break;case 49:this.VH(K);break;case 50:this.NL(K);break;case 47:this.WV(K);break;case 58:this.Rb(K);break;case 61:this.XK.Y4.vU((0,g.a)());break;case 66:this.Et(K); break;case 46:this.C6(K);break;case 67:this.onSnackbarMessage(K)}}; g.u.tf=function(J){J=new L3(J);J={enj:Ug(J,1,Xm),tkm:Ug(J,2,Xm)};this.XK.tf(J)}; g.u.k_=function(J){var K=new L3(J);J=GI(K,1);var n=GI(K,2);K=GI(K,3);this.XK.k_(J,n,K)}; g.u.Jm=function(J){J=jd(new L3(J));this.XK.Jm(J)}; g.u.WV=function(J){J=t3(J,fg3);this.XK.WV(J)}; g.u.qz=function(J){J=new L3(J);J={videoId:cg(J,1),formatId:Y9(J,2,Xm),endTimeMs:dH(J,3),vu5:dH(J,4),mimeType:cg(J,5),Es:Y9(J,6,k6d),indexRange:Y9(J,7,k6d),m0:Y9(J,8,g1e)};this.XK.qz(J)}; g.u.YE=function(J){J=o6d(new L3(J));this.XK.YE(J)}; g.u.Jf=function(){this.XK.Jf()}; g.u.Ha=function(J){J=yDU(new L3(J));this.XK.Ha(J)}; g.u.aY=function(J){J=E1V(new L3(J));this.XK.aY(J)}; g.u.Rq=function(J){J=M_d(new L3(J));this.XK.Rq(J)}; g.u.ya=function(J){J={redirectUrl:cg(new L3(J),1)};this.XK.ya(J)}; g.u.C3=function(J){var K=J.getUint8(0);if(J.getLength()!==1){J=J.split(1).YL;var n=this.Z[K]||null;n&&TL(this.XK.zn,K,n,J)}}; g.u.C$=function(J){J=J.getUint8(0);var K=this.Z[J]||null;K&&this.XK.C$(J,K)}; g.u.x9=function(J){this.XK.x9(J)}; g.u.HK=function(J){var K=J.Ip,n=J.Yd,X=J.fY,l=J.mI,x=J.fJ,V=J.Av,v=J.startMs,Q=J.durationMs,S=J.timeRange,r=J.kf,C=J.clipId,O=Tv(J);J=CcS.has(fJ[""+J.itag]);this.Z[K]=O;this.XK.JT(O,J,{Ip:K,Yd:!!n,fY:X!=null?X:-1,Av:V!=null?V:-1,startMs:v!=null?v:-1,durationMs:Q!=null?Q:-1,kf:r,mI:l,fJ:x,clipId:C,timeRange:S})}; g.u.VH=function(J){J={Jq:dH(new L3(J),1)};this.XK.VH(J)}; g.u.NL=function(J){J={Jq:dH(new L3(J),1)};this.XK.NL(J)}; g.u.CK=function(J){this.XK.CK(J)}; g.u.Rb=function(J){J=iGV(new L3(J));this.XK.Rb(J)}; g.u.Et=function(J){J={JN:Y9(new L3(J),1,FXH)};this.XK.Et(J)}; g.u.onSnackbarMessage=function(J){J=dH(new L3(J),1);this.XK.onSnackbarMessage(J)}; g.u.C6=function(J){J={reloadPlaybackParams:Y9(new L3(J),1,Ige)};this.XK.C6(J)};g.e(P6,g.t);g.u=P6.prototype;g.u.eC=function(){return Array.from(this.oZ.keys())}; g.u.fn=function(J){J=this.oZ.get(J);var K=J.fH;J.xb+=K.getLength();J.fH=new Og;return K}; g.u.Kl=function(J){return this.oZ.get(J).Kl}; g.u.DN=function(J){return this.oZ.get(J).DN}; g.u.JT=function(J,K,n,X){this.oZ.get(J)||uYF(this,J,K);K=this.oZ.get(J);if(this.HW){J=zb3(this,J,n);if(X)for(var l=g.z(J),x=l.next();!x.done;x=l.next()){x=x.value;var V=X;x.QG=V;x.startTime+=V;x.U+=V;x.N+=V}eb3(this,n.Ip,K,J)}else n.Yd?K.rU=n.kf:K.hf.push(n),K.ma.push(n)}; g.u.Kg=function(J){var K;return((K=this.oZ.get(J))==null?void 0:K.Lv)||[]}; g.u.QE=function(){for(var J=g.z(this.oZ.values()),K=J.next();!K.done;K=J.next())K=K.value,K.Eu&&(K.Tc&&K.Tc(),K.Eu=!1)}; g.u.C$=function(J,K){this.logger.debug(function(){return"[onMediaEnd] formatId: "+K}); var n=this.oZ.get(K);I5?n&&!n.Kl&&(n.NP.get(J)?n.NP.get(J).QV=!0:n.NP.set(J,{data:new Og,U1:0,QV:!0}),n.DN=!0):n&&!n.DN&&(n.DN=!0)}; g.u.LI=function(J){if(I5){var K=this.oZ.get(J);if(K)for(var n=g.z(K.NP),X=n.next();!X.done;X=n.next()){var l=g.z(X.value);X=l.next().value;l=l.next().value;var x=K.W_.get(X);if(Gv(x[0])){if(!l.QV)continue;var V=x,v=l.data;v.getLength();x=0;var Q=[];V=g.z(V);for(var S=V.next();!S.done;S=V.next()){S=S.value;var r=S.X,C=RO(v,x,r);x+=r;Q.push(new xV(S,C))}K.kE.push.apply(K.kE,g.m(Q))}else if(l.data.getLength()>0||!x[0].range&&l.QV)v=void 0,x=x[0],Q=l.U1,V=l.data,x.range||(v=l.QV),S=V.getLength(),v=new xV(w5k(x, x.Z+Q,S,v),V),l.U1+=v.info.X,K.kE.push(v);K.NP.get(X).data=new Og;l.QV&&K.NP.delete(X)}J=this.oZ.get(J);if(!J)return[];K=J.kE;J.kE=[];n=g.z(K);for(X=n.next();!X.done;X=n.next())J.xb+=X.value.info.X;return K||[]}n=(K=this.oZ.get(J))==null?void 0:K.uY;if(!n)return[];this.j5(J,n);return n.LI()}; g.u.t0=function(J){if(I5)return LN(this,J);var K,n,X;return!!((n=(K=this.oZ.get(J))==null?void 0:K.uY)==null?0:(X=n.f6())==null?0:X.length)||LN(this,J)}; g.u.j5=function(J,K){for(;LN(this,J);){var n=this.fn(J);var X=J;X=this.oZ.get(X).Kl&&!pN(this,X);x5(K,n,X&&RbF(this,J))}}; g.u.Xq=function(){g.t.prototype.Xq.call(this);for(var J=g.z(this.oZ.keys()),K=J.next();!K.done;K=J.next())i6(this,K.value);var n;if((n=this.xo)==null?0:n.OY)for(J=g.z(this.oZ.values()),K=J.next();!K.done;K=J.next())K=K.value,K.NP.clear(),K.W_.clear(),K.kE.length=0,K.Lv.length=0,K.ma.length=0,K.hf.length=0;this.oZ.clear()}; var I5=!1;g.e(DF,g.t);g.u=DF.prototype;g.u.cL=function(){!this.o4()&&this.xhr&&(this.j5(!1),ZT(this.XK,this))}; g.u.tT=function(){}; g.u.Qs=function(){if(!this.o4()&&this.xhr){var J=this.IB();J===5?v6(this.cM):this.RZ(J);this.cM.Z.stop();var K;(K=this.hI)==null||K.stop()}}; g.u.IB=function(){var J="";$5(this.cM,this.xhr)&&(J=tdV(this.cM,this.xhr));if(J)return this.info.Ax.bk(this.pE,J),3;this.j5(!0);if(QU(this.cM,this.xhr.status,this.xhr.ZZ(),this.info.O7(),this.Xj))return 5;if(this.UI)return 3;GJp(this.cM,this.xhr.qV(),0,this.O7());this.policy.wN&&rkV(this.XK);return 4}; g.u.j5=function(J){var K=this.xhr;if((J||!$5(this.cM,this.xhr))&&K.W6()){J=K.jg();var n=J.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+n}); this.z0.feed(J)}}; g.u.u5=function(J,K){this.xhr.QD()&&J===21&&BZq(this);this.jG.u5(J,K)}; g.u.rr=function(J,K,n,X){n||(this.Y4.rr(X),this.policy.zt&&J===21&&BZq(this));if(J!==21)return!1;this.Y4.GA=!0;J=K.getLength();n||(this.Mt=K.getUint8(0),K=K.split(1).YL);var l=this.policy.Tl,x=this.jG.Z[this.Mt],V=this.HW.X.get(x);if(l&&V&&(l*=V.info.OM,J+n!==X&&J0){this.policy.v1&&this.cM.Z.stop();J=this.Y4.iI();K=this.Y4.UX();var n=mQk(this,J);if(!(K>n.Vb||n.zB>0&&this.info.Xo()>n.zB)){this.HT=(0,g.a)();var X;(X=this.hI)==null||X.stop();this.policy.wN&&(X=this.XK,J={XC:Math.round(K*J/1E3),CO:J},X.policy.wN&&(X.MQ=J,X.sb++));this.XX()}}}}; g.u.XX=function(){this.cM.XX()}; g.u.Rq=function(J){this.XK.Rq(J,this.wV())}; g.u.ya=function(J){this.UI=!0;this.info.Ax.bk(this.pE,J.redirectUrl)}; g.u.VH=function(J){this.Y4 instanceof eY&&this.Y4.VH(J)}; g.u.NL=function(J){this.Y4 instanceof eY&&this.Y4.NL(J)}; g.u.qz=function(J){var K=J.formatId,n=Tv({itag:K.itag,lmt:K.lmt,xtags:K.xtags}),X,l,x=new dZ(((X=J.Es)==null?void 0:X.first)||0,((l=J.Es)==null?void 0:l.Ry)||0),V,v;X=new dZ(((V=J.indexRange)==null?void 0:V.first)||0,((v=J.indexRange)==null?void 0:v.Ry)||0);this.HW.X.get(n)||(n=J.m0||{},n.mimeType=J.mimeType,n.itag=K.itag,n.lastModified=""+(K.lmt||0),n.xtags=K.xtags,J=this.HW,K=Ij(""),n=we(n,null),OV(J,new re(K,n,x,X)))}; g.u.Jm=function(J){this.XK.Jm(J)}; g.u.onSnackbarMessage=function(J){if(this.policy.kc)this.XK.onSnackbarMessage(J)}; g.u.CK=function(J){this.Mr=J;this.mJ=(0,g.a)();this.XK.CK(J)}; g.u.k_=function(J,K,n){this.XK.k_(J,K,n)}; g.u.YE=function(J){J.scope===2&&(this.FS=J);this.XK.YE(J)}; g.u.Jf=function(){this.VC=!0;this.XK.Jf()}; g.u.tf=function(J){this.policy.Zt&&this.XK.tf(J)}; g.u.WV=function(J){this.XK.WV(J,this.wV())}; g.u.Rb=function(J){J.Ob===3&&(this.Xj=!0);this.XK.Rb(J)}; g.u.Et=function(J){this.XK.Et(J)}; g.u.C6=function(J){this.XK.C6(J)}; g.u.canRetry=function(){this.o4();return this.cM.canRetry(!1)}; g.u.dispose=function(){if(!this.o4()){g.t.prototype.dispose.call(this);this.cM.dispose();var J;(J=this.hI)==null||J.dispose();this.RZ(-1);this.KO()}}; g.u.RZ=function(J){this.state=J;ZT(this.XK,this)}; g.u.O7=function(){return this.info.O7()}; g.u.eZ=function(){return this.VC}; g.u.Pr=function(){return this.FS}; g.u.JT=function(J,K,n){n.clipId&&(this.clipId=n.clipId);this.policy.X&&!K&&(this.IE=n.Av);this.zn.JT(J,K,n,0);if(this.policy.DO&&this.Mr&&this.Y4 instanceof qO){var X=this.Mr.Bx;this.Y4.JT(n.durationMs/1E3,K,X>0&&n.Av+1>=X)}this.zn.oZ.get(J).wd=!0}; g.u.C$=function(J,K){this.zn.C$(J,K)}; g.u.x9=function(J){this.requestIdentifier=J}; g.u.LI=function(J){return this.zn.LI(J)}; g.u.Kg=function(J){return this.zn.Kg(J)}; g.u.t0=function(J){return this.zn.t0(J)}; g.u.eC=function(){return this.zn.eC()}; g.u.Yu=function(){return 1}; g.u.wV=function(){return this.Y4.requestNumber}; g.u.jw=function(){return this.requestIdentifier}; g.u.M_=function(){return this.pE.M_()}; g.u.Vr=function(){this.KO()}; g.u.KO=function(){this.Y4.deactivate();var J;(J=this.xhr)==null||J.abort()}; g.u.isComplete=function(){return this.state>=3}; g.u.Hj=function(){return this.state===3}; g.u.tL=function(){return this.state===5}; g.u.J2=function(){return this.state===4}; g.u.dU=function(){return this.isComplete()}; g.u.ZS=function(){return this.state>=1}; g.u.a8=function(){return this.policy.o5?this.cM.a8():0}; g.u.fS=function(){this.policy.o5&&ZT(this.XK,this)}; g.u.HN=function(){return ASF(this.info)}; g.u.TR=function(){return this.cM.TR()}; g.u.zU=function(){var J=yJk(this.cM);Object.assign(J,Nz3(this.info));J.req="sabr";J.rn=this.wV();var K;if((K=this.xhr)==null?0:K.status)J.rc=this.policy.G9?this.xhr.status:this.xhr.status.toString();var n;(K=(n=this.xhr)==null?void 0:n.Zo())&&(J.msg=K);this.HT&&(n=mQk(this,this.HT-this.Y4.Cp()),J.letm=n.f0,J.mrbps=n.Vb,J.mram=n.zB);return J};pmq.prototype.tick=function(J,K){this.ticks[J]=K?window.performance.timing.navigationStart+K:(0,g.a)()};g.e(k5,g.hi);g.u=k5.prototype; g.u.XY=function(J,K,n,X){if(this.policy.tv&&this.policy.X){var l=J.QB||null;l?(WTq(this,J.BW,UK(this,J.startTime,J.BW),{QB:l,BW:J.BW,OS:!!K,VB:n},this.X),X&&this.X&&this.X.kH(J.BW,J.startTime,this.Z,(K==null?void 0:K.G)||[],(K==null?void 0:K.X)||[],(K==null?void 0:K.Z)||[],n,(K==null?void 0:K.v8)||0,(K==null?void 0:K.U)||void 0)):this.Z===1&&c6(this,5,"noad")}else{var x=!1;this.policy.X&&(x=n?this.cW===J.BW:this.Aj===J.BW);if(this.X&&X&&!x){X=[];x=[];var V=[],v=void 0,Q=0;K&&(X=K.G,x=K.X,V=K.Z,v= K.U,Q=K.v8,this.Zm("sdai",{sq:J.BW,ssvicpns:X.join("."),ssvid:x.join(".")}));this.policy.X&&(n?this.cW=J.BW:this.Aj=J.BW);this.X.kH(J.BW,J.startTime,this.Z,X,x,V,n,Q,v)}this.policy.X?n&&(this.Z===1&&c6(this,5,"noad"),J.BW!==((l=this.G)==null?void 0:l.BW)&&(yGr(this,J,K,n),isNaN(J.startTime)||ZDf(this,J.BW,UK(this,J.startTime,J.BW),!!K,this.X))):n&&yGr(this,J,K)}}; g.u.Jc=function(J,K,n){var X=this.videoTrack.G.index.VU()<=K;this.G={QB:J,BW:K,OS:n};X&&gk(this,J,K)}; g.u.al=function(){this.X&&this.X.al()}; g.u.Zm=function(J,K,n){(J!=="sdai"||this.policy.Eb||(n===void 0?0:n))&&this.loader.Zm(J,K)}; g.u.s6=function(J,K){var n=this.videoTrack.G.index.dG(J);if(n>=0){var X;var l=((X=K.tH.D3(n,2))==null?void 0:X.Bo)||"";if(this.policy.X||l)return K.DS(J,n),Y5(this.loader,J,J,n),this.Zm("sdai",{cmskpad:1,t:J.toFixed(3),sq:n}),!0}this.Zm("sdai",{cmskpad:0,t:J.toFixed(3),sq:n});return!1};g.e(fN,g.t);fN.prototype.j$=function(J,K,n){n=n===void 0?{}:n;this.policy.rz=UV(J,n,this.U,K===void 0?!1:K)};EK.prototype.Q0=function(J){var K=this;if(this.policy.Ns){var n=new Set(J);n.size===this.MQ.size&&[].concat(g.m(n)).every(function(X){return K.MQ.has(X)})||(this.loader.Zm("lwnmow",{itagDenylist:[].concat(g.m(J)).join(",")}),this.loader.nO(!!n.size),this.K=-1,this.MQ=n,b6(this,this.G),this.Cv=!0)}}; EK.prototype.j$=function(J,K,n){n=n===void 0?{}:n;var X=this.policy.rz;this.C.j$(J,K===void 0?!1:K,n);if(X!==this.policy.rz){b6(this,this.G);AO(this);var l,x;X>this.policy.rz&&((l=this.X)==null?0:Eu(l.info))&&((x=this.nextVideo)==null||!Eu(x.info))&&(this.GA=!0)}};K$.prototype.uB=function(J){this.timestampOffset=J;this.flush()}; K$.prototype.flush=function(){if(this.G.pos>0){var J={a:this.track.Mp(),u:this.G.Q2(),pd:Math.round(this.U),ad:Math.round(this.X)},K=this.Z;if(K){var n=K.G.info;J.itag=n.itag;n.G&&(J.xtags=n.G);J.sq=K.BW;J.st=K.startTime;J.sd=K.duration;this.track.policy.n4&&(J.si=K.Zr());K.C&&(J.esl=K.Z+K.X);K.PH()&&(J.eos=1)}isNaN(this.timestampOffset)||(J.to=this.timestampOffset);var X;if(K=(X=this.track.jl)==null?void 0:X.FK({})){for(var l in K)this.N[l]!==K[l]&&(J["sb_"+l]=K[l]);this.N=K}this.track.Zm("sbu", J);this.G.reset();this.buffered=[];this.C=this.X=this.U=0;this.timestampOffset=this.Z=void 0}};oX.prototype.dispose=function(){this.QG=!0}; oX.prototype.o4=function(){return this.QG}; g.e(h8,Error);$U.prototype.skip=function(J){this.offset+=J}; $U.prototype.b8=function(){return this.offset};g.u=Dgr.prototype;g.u.PN=function(){return this.Z}; g.u.ZG=function(){return this.Z.length?this.Z[this.Z.length-1]:null}; g.u.Ph=function(){this.Z=[];Ok(this);sk(this)}; g.u.fn=function(J){this.kF=this.Z.shift().info;J.info.equals(this.kF)}; g.u.Kg=function(){return g.ff(this.Z,function(J){return J.info})}; g.u.Mp=function(){return!!this.N.info.audio}; g.u.isDrm=function(){return!!this.N.info.rE}; g.u.getDuration=function(){return this.N.index.ao()};g.e(da,MO);g.u=da.prototype;g.u.onStateChange=function(){this.o4()&&(B6(this.zn,this.formatId),this.G.dispose())}; g.u.zU=function(){var J=HDq(this.zn,this.formatId),K;var n=((K=this.zn.oZ.get(this.formatId))==null?void 0:K.bytesReceived)||0;var X;K=((X=this.zn.oZ.get(this.formatId))==null?void 0:X.xb)||0;return{expected:J,received:n,bytesShifted:K,sliceLength:pN(this.zn,this.formatId),isAnyMediaEndReceived:this.zn.DN(this.formatId)}}; g.u.Gz=function(){return 0}; g.u.Z4=function(){return!0}; g.u.LI=function(){return this.zn.LI(this.formatId)}; g.u.f6=function(){return[]}; g.u.t0=function(){return this.zn.t0(this.formatId)}; g.u.TR=function(){return this.lastError}; g.u.a8=function(){return 0};g.e(eT,g.t);g.u=eT.prototype;g.u.Mp=function(){return!!this.G.info.audio}; g.u.ZG=function(){return this.U.ZG()}; g.u.fn=function(J){this.U.fn(J);var K;(K=this.L)!=null&&(K.C.add(J.info.BW),K.G=JJe(K,K.l_,K.Rx,J,K.G),K.X=J,K.N=(0,g.a)());this.OM=Math.max(this.OM,J.info.G.info.OM||0)}; g.u.getDuration=function(){return this.G.index.ao()}; g.u.Ph=function(){c0(this);this.U.Ph()}; g.u.EX=function(){return this.U}; g.u.isRequestPending=function(J){return this.X.length?J===this.X[this.X.length-1].info.Lv[0].BW:!1}; g.u.uB=function(J){var K;(K=this.L)==null||K.uB(J);var n;(n=this.K)==null||n.uB(J)}; g.u.Zm=function(J,K){this.loader.Zm(J,K)}; g.u.jy=function(){return this.loader.jy()}; g.u.dispose=function(){var J;(J=this.K)==null||J.flush();g.t.prototype.dispose.call(this)};g.e(f$,g.t);f$.prototype.X=function(){this.Z++>15||(this.G=!this.G,new e6p(this.loader,this.policy,this.u_,this.Ax,this.G),this.delay.start())}; g.u=e6p.prototype;g.u.tT=function(){}; g.u.cL=function(){}; g.u.Qs=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.qV()===this.size)this.loader.Zm("rqs",this.getInfo());else{var J="net.connect";this.xhr.status>200?J="net.badstatus":this.xhr.zY()&&(J="net.closed");this.onError(J)}}; g.u.onError=function(J){var K=this;this.loader.handleError(J,this.getInfo());II("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(n){K.loader.Zm("pathprobe",n)},function(n){K.loader.handleError(n.errorCode,n.details)})}; g.u.getInfo=function(){var J=this.timing.jF();J.shost=LT(this.location.wG);J.pb=this.size;return J};g.e(WA,g.t); WA.prototype.W=function(J,K){if(J.W){this.HW.isLive?(J=this.HW.h7&&this.HW.U?J.G.pj(this.HW.h7,!1):J.G.sS(Infinity),J.Ey=this.Ey):J=J.G.pj(0,!1);if(this.GA){var n=this.GA;J.Ey===0&&(J.C=n.L)}else J.C=this.K;return J}n=J.Z;if(!n.G.qp())return n.G.NV()?(J=mD(this.C,J.G.info.OM,K.G.info.OM,0),J=g.U(n.G.LO(n,J))):J=g.U(n.G.uQ(n)),J;var X=n.N-this.loader.getCurrentTime(),l=!n.range||n.X===0&&n.Z===0?0:n.range.length-(n.Z+n.X),x=n.G;this.r8(J,X)&&l===0&&(this.HW.isManifestless?x=J.G:(x=n.startTime+VMF, n.X&&(x+=n.duration),Us(J,x),n=J.Z,x=n.G));x.NV()?(l=this.X,K=mD(this.C,x.info.OM,K.G.info.OM,X,l.U.length>0&&l.L===0&&this.loader.Db),X=cA(J),J=g.U(n.G.LO(n,K)),(K=J.X)&&J.Lv.length>1&&(X||J.Ax.X||J.Lv[0].G!==n.G?J=g.U(n.G.LO(n,J.Lv[0].X)):(X=J.Lv[J.Lv.length-1],x=X.X/K,!X.C&&x<.4&&(J=g.U(n.G.LO(n,K-X.X)))))):(n.BW<0&&(K=Z5(n),K.pr=""+J.X.length,this.loader.isSeeking()&&(K.sk="1"),K.snss=n.L,this.loader.Zm("nosq",K)),J=g.U(x.uQ(n)));if(this.policy.cW)for(n=g.z(J.Lv),K=n.next();!K.done;K=n.next())K.value.type= 6;return J}; WA.prototype.r8=function(J,K){if(!cA(J)||!J.G.qp())return!1;var n=this.X.Cv||xwH(J)||K<=this.policy.rZ||this.X.GA;this.logger.debug(function(){return"ready to adapt: "+n+", upgrade pending: "+xwH(J)+", health: "+K}); return n}; WA.prototype.Xq=function(){g.t.prototype.Xq.call(this)}; var VMF=2/24;g.e(bj,g.t);bj.prototype.di=function(J,K,n){var X;var l=((X=this.Z)==null?void 0:X.reason)==="m"?"m":this.Z&&tle(this,this.Z)?this.Z.reason:"a";this.loader.di(new ZF(J,l,n));qB(this.loader,K,J,!0)}; bj.prototype.Pg=function(J,K){for(var n=g.z(this.cW),X=n.next();!X.done;X=n.next())if(X=X.value,X.id===J)return this.xo.d3||(this.X=[X]),this.C=this.HW.G[J],OK(this.xo)&&(this.GA=!0),J=new ZF(this.C,K?"t":"m"),K&&(this.L=!0),J;this.X=[];return null}; bj.prototype.j$=function(J,K,n){n=n===void 0?{}:n;this.G.j$(J,K===void 0?!1:K,n)};MB.prototype.setData=function(J,K,n){var X=this;n=n===void 0?{}:n;if(K==null?0:K.vW)this.b2=iDk(this,K,n),J.xB=this.Ax.xB();if(this.O7())return!0;this.data=J;this.G=EnH(J,function(l,x){var V;(V=X.XK)==null||V.zA(l,x)},K==null?void 0:K.Z); if(!this.G)return!1;this.Z=g.Eg(this.G,LX3);return!0}; MB.prototype.O7=function(){return this.requestType===1}; MB.prototype.Xo=function(){var J;return((J=this.XK)==null?void 0:J.Xo())||0}; MB.prototype.isDecorated=function(){var J;return!((J=this.data)==null||!J.ax)};NB.prototype.encrypt=function(J){this.G.exports.AES128CTRCipher_encrypt(this.cipher,J.byteOffset,J.byteLength);return J}; NB.prototype.o4=function(){return this.cipher===0}; NB.prototype.dispose=function(){this.G.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};Jw.prototype.encrypt=function(J,K){return Sb(this.subtleCrypto.encrypt({name:"AES-CTR",length:128,counter:K},this.key,J).catch(function(n){return Promise.reject(n.name+": "+n.message)}).then(function(n){return new Uint8Array(n)}))}; Jw.prototype.o4=function(){return this.G}; Jw.prototype.dispose=function(){this.G=!0}; Kp.prototype.encrypt=function(J,K){return Sb(this.Z(J,K))}; Kp.prototype.Z=function(J,K){Op(this.X,K);return this.X.encrypt(J)}; Kp.prototype.o4=function(){return this.G}; Kp.prototype.dispose=function(){this.G=!0}; np.prototype.encrypt=function(J,K){return Sb(this.Z(J,K))}; np.prototype.Z=function(J,K){K=this.X.xS(K);var n=this.G;n.G.exports.AES128CTRCipher_setCounter(n.cipher,K.byteOffset);this.X.free(K.byteOffset);K=this.X.xS(J);this.G.encrypt(K!=null?K:J);return K?this.X.wh(K):J}; np.prototype.o4=function(){return this.G.o4()}; np.prototype.dispose=function(){this.G.dispose()}; wE.j9(Jw,{encrypt:Kp7("oan2")});wE.j9(Kp,{encrypt:Kp7("oap")});wE.j9(np,{encrypt:Kp7("oalw")});oo.prototype.encrypt=function(J,K){var n=this,X=rw("");J.length<=this.xN&&this.G&&!this.C&&(X=HG(X,function(){return n.G?n.G.encrypt(J,K):rw("wasm unavailable")})); J.length<=this.f1&&(this.G&&this.C&&(X=HG(X,function(){return n.G?n.G.encrypt(J,K):rw("wasm unavailable")})),X=HG(X,function(){return XFU(n,J,K)})); return HG(HG(X,function(){return lm8(n,J,K)}),function(){return XFU(n,J,K)})}; oo.prototype.Z=function(J,K){if(this.G)return this.G.Z(J,K);this.X||(this.X=new Kp(this.key));return this.X.Z(J,K)}; oo.prototype.o4=function(){return this.N}; oo.prototype.dispose=function(){this.N=!0;var J;(J=this.U)==null||O3(J,g.QD);g.QD(this.G);g.QD(this.X)};X0.prototype.encrypt=function(J){(0,g.a)();return(new g.zi(this.G.G)).encrypt(J,this.iv)}; X0.prototype.decrypt=function(J,K){(0,g.a)();return(new g.zi(this.G.G)).decrypt(J,K)}; X0.prototype.o4=function(){return this.X}; X0.prototype.dispose=function(){this.X=!0;g.QD(this.Z)};g.e(lI,g.t);lI.prototype.X=function(J,K){if(K){K=K instanceof g.mZ?K:xg(this,K);var n;((n=this.G.get(J))==null?void 0:LT(n.location))!==LT(K)&&this.G.set(J,new sur(K,J))}else this.G.delete(J)}; lI.prototype.load=function(){var J=this,K,n,X,l,x,V,v,Q,S,r;return g.G(function(C){switch(C.Z){case 1:K=J.G.get(0);g.e8(C,2);var O;if(O=K&&!J.Z)O=LT(K.location),O=J.Z===hO(O);if(O){C.EM(4);break}return g.d(C,Sy3(J,J.Z?2:0),5);case 5:if(n=C.G)J.X(0,n),DD(n)&&J.X(1,dU(n));case 4:g.Ir(C,3);break;case 2:X=g.mk(C);g.gG(X);if(!J.Z){C.EM(3);break}J.Z=!1;return g.d(C,J.load(),7);case 7:return C.return();case 3:if(!J.lx.experiments.sM("html5_onesie_probe_ec_hosts")){C.EM(0);break}g.e8(C,9);l=J;x=l.X;V=3;return g.d(C, Sy3(J,1),11);case 11:return x.call(l,V,C.G),v=J,Q=v.X,S=4,g.d(C,Sy3(J,2),12);case 12:Q.call(v,S,C.G);g.Ir(C,0);break;case 9:r=g.mk(C),g.gG(r),g.uF(C)}})}; lI.prototype.W=function(){var J=this,K,n;return g.G(function(X){g.M0(J.L);K=g.Qg(J.lx.experiments,"html5_onesie_prewarm_max_lact_ms");if(BC()>=K)return X.return();(n=J.G.get(0))&&$J7(J,n);g.uF(X)})}; var vYV={Kx_:0,olM:1,hxM:2,N54:3,zJA:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};HIk.prototype.decrypt=function(J){var K=this,n,X,l,x,V,v;return g.G(function(Q){switch(Q.Z){case 1:if(C7f(K))return Q.return();K.Z=!0;K.Dg.T4("omd_s");n=new Uint8Array(16);u$()?X=new g.em(J):l=new g.zi(J);case 2:if(!K.G.length||!K.G[0].isEncrypted){Q.EM(4);break}x=K.G.shift();if(!X){V=l.decrypt(x.buffer.ju(),n);Q.EM(5);break}return g.d(Q,X.decrypt(x.buffer.ju(),n),6);case 6:V=Q.G;case 5:v=V;OIV(n);var S=K.Dg,r=x.videoId,C=x.Ip,O=x.formatId,H=new Og([v]),R;(R=VG(S.zi,r))==null||TL(R,C,O,H);Q.EM(2); break;case 4:K.Dg.T4("omd_c"),hw(K),K.Z=!1,K.Dg.hw(),g.uF(Q)}})}; HIk.prototype.enqueue=function(J,K,n,X,l){this.G.push({videoId:J,Ip:K,formatId:n,buffer:X,isEncrypted:l});this.Z||hw(this)};var mJM=!!Uint8Array.prototype.copyWithin,vX=[],Req=[],zeF=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],$g=[],QG=[],SA=[],uM3=[];sr.prototype.uq=function(J){return g.B6q(new g.eer(J))}; sr.prototype.nM=function(J){function K(V){if(!V.done)return x.append(V.value),l.read().then(function(v){return K(v)})} if(!("DecompressionStream"in window))return rw("native decompression unavailable");var n=new DecompressionStream("gzip"),X=n.writable.getWriter();X.write(J).then(function(){return X.close()}); var l=n.readable.getReader(),x=new Og([]);return HG(O3(O3(Sb(l.read()),K),function(){return x.ju()}),function(V){return rw(V.message)})}; sr.prototype.iq=function(J,K){var n=void 0,X=K.xS(J);X&&(n=X.byteOffset,J=X);X=K.exports.getInflatedSize(J.byteOffset,J.length);if(X===0)return rw("bad compressed input");var l=K.malloc(X);if(K.exports.inflateGzip(J.byteOffset,J.length,l))return K.free(l),rw("inflateGzip failed");n&&K.free(n);return Sb(new Uint8Array(K.exports.memory.buffer,l,X))}; wE.j9(sr,{uq:function(J){return{profile:"gzjb",Md:Math.ceil(J.byteLength/16)}}, nM:function(J){return{profile:"gznb",Md:Math.ceil(J.byteLength/16)}}, iq:function(J){return{profile:"gzwb",Md:Math.ceil(J.byteLength/16)}}});g.e(klM,zL);g.u=klM.prototype;g.u.hw=function(){this.zi.hw()}; g.u.r$=function(J,K){switch(J){case 10:var n=t3(K,G6H);J=n.TEF;var X=!1;switch(J){case 0:this.X=!n.wD.Hv;this.iv=n.wD.iv;break;case 2:break;case 23:var l=this.zi;n=n.rjG;l.T4("omp_r");n.videoId&&(l.e4=n.videoId);l.e4!==l.videoData.videoId&&(l.videoData.tE=l.e4,l.Zm("ompp","vid."+l.e4));l.s4=!0;break;case 24:n=this.zi;n.T4("omp_c");n.s4=!1;n.u9=!1;var x=(l=n.xa)==null?void 0:l.get(n.e4);n.notifySubscribers(n.e4);x!=null&&(x.G=!0);HX(n);break;default:X=!0}this.zi.Bq&&this.zi.Zm("ombup","id.10;pt."+ J+";len."+K.getLength()+(X?";ignored.1":""));this.U=J;break;case 11:Yyp(this,K);break;case 12:this.C3(K,!0);break;case 37:K=t3(K,ULH);(K.Z0||K.Z7)&&K.videoId&&this.zi.KR.set(K.videoId,K);break;case 60:this.PK(K);break;case 47:this.J("html5_server_playback_start_policy")&&(K=t3(K,fg3),this.zi.playbackStartPolicy=K);break;case 35:this.Ha(K);break;case 45:this.Jm(K);break;case 66:this.Et(K);break;default:this.zi.Bq&&this.zi.Zm("ombup","id."+J+";len."+K.getLength()+";ignored.1")}}; g.u.CK=function(J){this.zi.CK(J)}; g.u.PK=function(J){J=t3(J,xK);this.zi.PK(J)}; g.u.Jm=function(J){J=t3(J,jd);this.zi.Jm(J)}; g.u.HK=function(J){var K=J.Ip,n=J.Yd,X=J.fY,l=J.fJ,x=J.Av,V=J.startMs,v=J.durationMs,Q=J.timeRange,S=J.kf,r=Tv(J),C=CcS.has(fJ[""+J.itag]);n&&this.T4(C?"oais_r":"ovis_r");var O=this.G[r]!==void 0;this.zi.Bq&&this.zi.Zm("ombup","id.20;hid."+K+";fid."+r);var H=J.videoId||"";this.Z[K]=r;this.C[K]=H;O||(this.G[r]={videoId:H,zz:!1,Mp:C,headers:[]});this.G[r].headers.push(J);this.zi.JT(H,r,C,{Ip:K,Yd:!!n,fY:X!=null?X:-1,Av:x!=null?x:-1,startMs:V!=null?V:-1,durationMs:v!=null?v:-1,kf:S!=null?S:0,fJ:l,timeRange:Q})}; g.u.C3=function(J,K){var n=J.getUint8(0);this.zi.Bq&&this.zi.Zm("ombup","id."+(K?12:21)+";len."+J.getLength()+";hid."+n);if(J.getLength()!==1){J=J.split(1).YL;var X=this.Z[n]||null,l=this.C[n]||"";X&&(this.Zd(this.G[X].Mp?"oafs_r":"ovfs_r"),this.queue.enqueue(l,n,X,J,K))}}; g.u.C$=function(J){var K=J.getUint8(0);this.zi.Bq&&this.zi.Zm("ombup","id.22;len."+J.getLength()+";hid."+K);J=this.Z[K]||null;var n=this.C[K]||"";if(J)if(this.J("html5_use_ump_request_slicer")){var X=this.queue;X.G.push({videoId:n,Ip:K,formatId:J,isEncrypted:!1,f5:!0});X.Z||hw(X)}else this.zi.C$(n,K,J)}; g.u.x9=function(J){this.zi.x9(J)}; g.u.x8=function(J,K){var n=this,X,l,x,V,v,Q,S,r,C,O;return g.G(function(H){switch(H.Z){case 1:n.zi.x8();X=J.ju();if(!K){x=X;H.EM(2);break}return g.d(H,EYe(n.zi,X,n.iv),3);case 3:x=H.G;case 2:l=x;if(!n.zi.enableCompression){H.EM(4);break}v=(V=performance)==null?void 0:V.now();return g.d(H,pF7(l),5);case 5:l=H.G,n.zi.Zm("decompression",{ds:"DecompressionStream"in window,rt:((Q=performance)==null?NaN:Q.now())-v});case 4:try{S=t3(l,PWe)}catch(R){return r=R instanceof Error?{name:R.name,message:R.message}: {},r.webcrypto=""+ +!!u$(),r.enc=""+ +n.X,C=new ix("onesie.response.parse",r),H.return(Promise.reject(C))}dJ8(S);O=g.iE(S.body);return H.return(O)}})}; g.u.Ha=function(J){this.J("html5_consume_onesie_next_request_policy_for_sabr")&&(J=t3(J,yDU),this.zi.Ha(J))}; g.u.Et=function(J){J={JN:Y9(new L3(J),1,FXH)};this.zi.Et(J)}; g.u.T4=function(J){this.zi.T4(J)}; g.u.Zd=function(J){return this.zi.Zd(J)}; g.u.J=function(J){return this.zi.J(J)};g.e(Or,g.t);g.u=Or.prototype;g.u.eC=function(J){var K,n;return((n=(K=this.xa)==null?void 0:K.get(J))==null?void 0:n.eC())||[]}; g.u.t0=function(J,K){var n;return!((n=VG(this,K))==null||!n.t0(J))}; g.u.LI=function(J,K){var n;return((n=VG(this,K))==null?void 0:n.LI(J))||[]}; g.u.Kg=function(J,K){var n;return((n=VG(this,K))==null?void 0:n.Kg(J))||[]}; g.u.RZ=function(J){this.state=J;this.notifySubscribers()}; g.u.O7=function(){return!1}; g.u.eZ=function(){return!1}; g.u.Pr=function(){}; g.u.T4=function(J){this.dQ.T4(J)}; g.u.Zd=function(J){return this.dQ.Zd(J)}; g.u.rr=function(J,K,n,X){n||this.Y4.rr(X);return!1}; g.u.u5=function(J,K){this.Dg.u5(J,K)}; g.u.cK=function(){this.T4("orfb");this.Gr=!0;if(bI8(this)&&this.xhr){var J={rc:this.xhr.status,lb:this.xhr.qV(),rt:(1E3*HT3(this.Y4)).toFixed(),shost:g.PH(this.z$),trigger:"o1"};this.Zm("pathprobe",Ih(J))}}; g.u.x8=function(){this.T4("opr_r");this.Kp=!0}; g.u.JT=function(J,K,n,X){if(this.xa){if(!this.xa.has(J)){var l=new P6(this);this.xa.set(J,l);g.Z(this,l)}var x;(x=this.xa.get(J))==null||x.JT(K,n,X);HX(this);n||(this.IE=X.Av)}else HX(this)}; g.u.CK=function(J){this.Os=J;J.cF!=null&&this.dQ.XD(J.cF)}; g.u.PK=function(J){this.yj=J}; g.u.Ha=function(J){J.videoId&&this.RN.set(J.videoId,J)}; g.u.hw=function(){if(this.xa)for(var J=g.z(this.xa.keys()),K=J.next();!K.done;K=J.next()){var n=void 0;(n=this.xa.get(K.value))==null||n.QE()}}; g.u.Jm=function(J){this.Ng=J}; g.u.Et=function(J){if(J==null?0:J.JN)if(J=J.JN.Di){J=g.z(J);for(var K=J.next();!K.done;K=J.next())K=K.value,K.videoId&&this.Ys.set(K.videoId,K)}}; g.u.Zm=function(J,K,n){this.dQ.Zm(J,K,n===void 0?!1:n)}; g.u.C$=function(J,K,n){var X;(X=VG(this,J))==null||X.C$(K,n)}; g.u.x9=function(J){this.XR.set(J.videoId,J)}; g.u.fetch=function(){var J=this,K,n,X,l,x,V,v,Q,S,r,C,O,H,R,w,P,B,p,k,c,y;return g.G(function(A){switch(A.Z){case 1:J.logger.debug("Onesie fetch started.");J.KD?J.sP.start():J.TT.start();J.T4("or_i");K=J.lx.experiments.sM("html5_onesie_verbose_timing");n={};X=(0,g.a)();l=function(q){K&&(n[q]=(0,g.a)()-X)}; l("loc_s");if(x=UJp(J.videoData,J.hh)){A.EM(2);break}l("loc_async");V=g.Qg(J.lx.experiments,"html5_onesie_redirector_timeout_ms");return g.d(A,tLF(J.videoData,J.hh,V),3);case 3:x=A.G;case 2:if(!x)return J.logger.info("Onesie URL creation failed."),v={url:"0"},Q=new ix("onesie.unavailable.hotconfig",v),J.I$(Q),A.return(J.Dt);J.b2=LT(x);l("loc_e");S=g.l7(J.lx,g.Yi(J.videoData));r=!!S.G;if(!r){C=S.getValue();A.EM(4);break}return g.d(A,S.G,5);case 5:C=A.G;case 4:O=C;J.J("html5_log_onesie_empty_oauth")&& !O&&J.Zm("no_token",{async:r});l("oauth");H=ZI3(J.playerRequest,J.lx,J.videoData,O,hO(J.b2));g.e8(A,6);if(!qyV(J,H)){l("or_s_sync");J.Uz=WpF(H,J.nY,J.lx,J.dQ,J.Ep.onesieUstreamerConfig,(R=J.videoData.m_)==null?void 0:R.N1);A.EM(8);break}l("or_s_async");return g.d(A,Fpq(H,J.nY,J.lx,J.dQ,J.Ep.onesieUstreamerConfig,(w=J.videoData.m_)==null?void 0:w.N1),9);case 9:J.Uz=A.G;case 8:g.Ir(A,7);break;case 6:return P=g.mk(A),J.logger.info("Failed to create OnesieRequestProto."),J.I$(P),A.return(J.Dt);case 7:return l("or_e"), K&&J.Zm("oreqvt",n),J.enableCompression=J.Uz.Q7.H7,J.T4("osor"),B=OR8(),p=g.Eg(J.Uz,xLU),k={method:"POST",body:p,headers:{"Content-Type":"text/plain",Referer:location.origin}},c=J.J("html5_onesie_media_capabilities"),yu7(x,J.videoData,MLM(J),c),J.logger.debug("Starting Onesie network request."),J.Bq&&J.Zm("ombrs","1"),y=J.dQ.S().schedule,J.Y4=new qO(J,{u_:y,mu:J.Bq,gT:function(q,or){J.dQ.l9(q,or)}, qd:!0}),x.set("rn",""+J.Y4.requestNumber),J.z$=x.M_(),F4(J.Y4,J.z$),J.T4("or_p"),J.xhr=Xp(new eo(x),B,J.Y4,nR,k),J.PU.start(),A.return(J.Dt)}})}; g.u.Yu=function(){return 2}; g.u.tT=function(){this.T4("orh_r")}; g.u.cL=function(){!this.Gr&&this.xhr.qV()&&this.cK();if(this.PR&&!this.KD){var J;(J=this.bA)==null||J.start()}this.j5()}; g.u.Qs=function(J){J=J===void 0?!1:J;this.logger.debug("onXhrDone");this.j5();if(!(this.o4()||this.state>=4)){var K=Cp(this),n=this.xhr;K.rc=n.status;J&&(K.ab=!0);if(n.Zo()){var X="onesie.net";K.msg=n.Zo()}else n.status>=400?X="onesie.net.badstatus":n.ZZ()?this.Kp||(X="onesie.response.noplayerresponse"):X=n.status===204?"onesie.net.nocontent":"onesie.net.connect";X?this.I$(new ix(X,K)):(this.T4("or_fs"),this.Y4.d$((0,g.a)(),n.qV(),0),this.RZ(4),this.Bq&&this.Zm("rqs",K));this.Bq&&this.Zm("ombre", "ok."+ +!X);this.u9=!1;HX(this);gY3(this.Dg);if(!this.KD){this.TT.stop();var l;(l=this.bA)==null||l.stop()}var x;if(J=(x=this.hh)==null?void 0:rup(x))for(x=0;x1E3){var J;(J=this.Y4)==null||J.Yp((0,g.a)());J=Cp(this);if(this.lx.Pw()&&this.xhr instanceof NO){var K=this.xhr;J.xrs=K.xhr.readyState;J.xpb=K.G.getLength();J.xdc=K.U}this.I$(new ix("net.timeout",J))}}else(0,g.a)()-this.Y4.G>1E4&&((K=this.Y4)==null||K.Yp((0,g.a)()),this.gP());this.isComplete()||this.sP.start()}}; g.u.gP=function(){this.logger.info("Onesie request timed out");this.u9=!1;if(!HX(this)){var J=Cp(this);J.timeout="1";this.I$(new ix("onesie.request",J))}}; g.u.I$=function(J){var K=this;J=mx(J);this.PR?this.dQ.Sh(J):(this.Dt.reject(J),this.PR=!0);gY3(this.Dg);this.KD||this.TT.stop();this.T4("or_fe");var n,X;(n=this.hh)==null||(X=rup(n))==null||X.forEach(function(l){K.Zm("pathprobe",l)}); this.RZ(5);this.dispose()}; g.u.isComplete=function(){return this.state>=3}; g.u.J2=function(){return this.state===4}; g.u.dU=function(J){var K,n;return this.isComplete()||!!((K=this.xa)==null?0:(n=K.get(J))==null?0:n.G)}; g.u.Hj=function(){return!1}; g.u.tL=function(){return this.state===5}; g.u.notifySubscribers=function(J){for(var K=0;K102400&&!this.Bj&&(this.T4("or100k"),this.Bj=!0);if(J.W6()){var K=J.jg(),n=K.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+n}); this.Bq&&this.Zm("ombrss","len."+n);this.z0.feed(K)}if(this.xa)for(var X=g.z(this.xa.keys()),l=X.next();!l.done;l=X.next()){var x=l.value;J=void 0;(J=this.xa.get(x))==null||J.QE();this.notifySubscribers(x)}}catch(V){this.I$(V)}}; g.u.wV=function(){return this.Y4.requestNumber}; g.u.jw=function(J){return this.XR.get(J)};g.e(Jkr,g.t);g.u=Jkr.prototype;g.u.Cn=function(J,K){this.QG=void 0;rkV(this);Sok(this,J,K)}; g.u.nT=function(J){if(this.G.length===0)return!1;var K=this.G[0];return K instanceof Or?J===this.loader.getCurrentTime()*1E3:!(K instanceof DF&&Mlq(K.info))&&Math.abs(K.HN()-J)<50}; g.u.Ha=function(J){this.Z=J;this.QG=(0,g.a)()+(J.backoffTimeMs||0)}; g.u.Rq=function(J,K){if(J.action===void 0){var n=this.dQ.e2();n!==void 0&&this.loader.EA(n)}else if(J.action!==0||!this.kF)switch(J.action===0&&this.policy.bQ&&(J.action=2),n={},n.reason=J.MR,n.action=J.action,n.rn=K,J.action){case 1:this.policy.X&&this.L&&this.L.Ne(void 0,void 0,n);break;case 0:this.kF=!0;this.videoData.NH()&&this.policy.X&&this.L&&this.L.Ne(void 0,void 0,n,!1);this.loader.P7(n);break;case 2:Ad8(J.MR)!=="sabr.config"&&delete n.reason;this.loader.handleError(Ad8(J.MR),n,1);break; case 3:this.policy.vW&&((J=this.HW.L)!=null&&(J.L=!0),this.loader.handleError("sabr.hostfallback",n))}}; g.u.YE=function(J){J&&(this.loader.Zm("sabrctxt",{onsbrctxt:J.type,scp:J.scope,dflt:J.sendByDefault}),J.type&&J.sendByDefault&&this.U3.add(J.type),J.scope!==2&&(J.type&&this.videoData.sabrContextUpdates.set(J.type,J),this.dQ.YE(J)))}; g.u.Jf=function(){}; g.u.Jm=function(J){if(J.Lz!==void 0&&J.Sq){var K=J.Lz/J.Sq;this.audioTrack.W=!1;this.videoTrack.W=!1;if(this.policy.QG||this.policy.t8||this.policy.Z$)this.loader.ST.Z=!1;this.loader.cQ(K,1);if(this.dQ.getCurrentTime()!==K){var n={E8:"sabr_seek",X8:!0,Lx:!0};J.seekSource&&(n.seekSource=J.seekSource);ZN(this.loader,K+.1,n)}}}; g.u.onSnackbarMessage=function(J){this.dQ.publish("onSnackbarMessage",J)}; g.u.CK=function(J){J.Bx&&J.Qj&&de(this.HW,J.Bx,J.Qj);this.policy.qM&&(J.Ud&&J.BE&&(this.HW.xd=J.Ud/J.BE),J.hO&&J.Xg&&(this.HW.v1=J.hO/J.Xg));this.policy.Je&&iK(this.videoData)&&!this.videoData.GA&&J.Qj&&this.loader.cQ(J.Qj,1E3);J.cF!=null&&this.dQ.XD(J.cF);this.policy.Fx&&J.xJ&&(J=((0,g.a)()-J.xJ)/1E3,this.loader.Gq.Ty(1,J))}; g.u.Rb=function(J){this.loader.Rb(J)}; g.u.Ra=function(J){return this.U3.has(J)}; g.u.k_=function(J,K,n){this.policy.Z&&this.loader.Zm("sabrctxtplc",{start:J?J.join("_"):"",stop:K?K.join("_"):"",discard:n?n.join("_"):""});if(J){J=g.z(J);for(var X=J.next();!X.done;X=J.next())this.U3.add(X.value)}if(K)for(K=g.z(K),J=K.next();!J.done;J=K.next())J=J.value,this.U3.has(J)&&this.U3.delete(J);if(n)for(n=g.z(n),K=n.next();!K.done;K=n.next())if(K=K.value,this.videoData.sabrContextUpdates.has(K)&&(this.videoData.sabrContextUpdates.delete(K),K===3&&(this.videoData.kP="")),this.policy.K&&this.G.length)for(J= g.z(this.G),X=J.next();!X.done;X=J.next())if(X=X.value,!(X instanceof Or)){var l=void 0;((l=X.FS)==null?void 0:l.type)===K&&(X.FS=void 0)}}; g.u.tf=function(){}; g.u.eG=function(J){this.W=J}; g.u.vT=function(J){this.N=J}; g.u.WV=function(J,K){Zh(this.policy,J,4,K)}; g.u.Et=function(J){if(J==null?0:J.JN)if(J=J.JN.Di){J=g.z(J);for(var K=J.next();!K.done;K=J.next())if(K=K.value,K.formatId){var n=this.HW.X.get(Tv(K.formatId));n&&n.info&&(n.info.debugInfo=K.debugInfo)}}}; g.u.C6=function(J){(J=J==null?void 0:J.reloadPlaybackParams)&&this.dQ.publish("reloadplayer",J)}; g.u.R2=function(){return this.dQ.R2()||""}; g.u.Xo=function(){var J=T5(this.audioTrack,!0)*1E3,K=T5(this.videoTrack,!0)*1E3;return Math.min(J,K)}; g.u.zA=function(J,K){this.loader.Zm(J,K)}; g.u.fp=function(J){giU(this.loader,xg3(this.gQ,J))}; g.u.Xq=function(){g.t.prototype.Xq.call(this);this.Z=void 0;Sok(this,!0,"i");this.G=[]};OSd.prototype.AB=function(J,K){if(this.U)return zuF(this,K);if(K=fA(J)){var n=K.Z;n&&n.X&&n.G&&(J=J.X.length?J.X[0]:null)&&J.state>=2&&!J.tL()&&J.info.Ey===0&&(this.U=J,this.W=n,this.Z=K.info,this.N=this.startTimeSecs=Date.now()/1E3,this.C=this.Z.startTime)}return NaN}; OSd.prototype.clear=function(){this.Z=this.W=this.U=null;this.G=this.C=this.N=this.startTimeSecs=NaN;this.X=!1};g.e(g.ao,g.t);g.u=g.ao.prototype;g.u.initialize=function(J,K,n){this.logger.debug(function(){return"Initialized, t="+J}); J=J||0;this.policy.G||(K=VHF(this.G),G$V(this.dQ,new ZF(K.video,K.reason)),this.dQ.Lo(new ZF(K.audio,K.reason)));this.policy.e7&&mw3(this);this.HW.isManifestless&&gn3(this.C);this.W&&RuU(this.W,this.videoTrack.G);K=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var X=!this.HW.isManifestless;this.policy.VD&&(X=X||this.HW.q_);this.policy.MQ||(this.currentTime=X?J:K);this.policy.QG&&this.seek(this.getCurrentTime(),{}).FO(function(){}); if(this.policy.G){var l;((l=this.K)==null?0:N6d(l,this.R2()||""))&&BnH(this)&&iS7(this,this.videoTrack)&&iS7(this,this.audioTrack)&&(sTM(this.Z,this.K),this.policy.C&&IZM(this))}else this.QG&&(m2p(this,this.videoTrack),m2p(this,this.audioTrack),ODF(this.QG),delete this.QG);n?(this.policy.oO?(this.iR=n,F0(this,n)):F0(this,!1),g.M0(this.Li)):(n=this.getCurrentTime()===0,F_(this.C,this.videoTrack,this.videoTrack.G,n),F_(this.C,this.audioTrack,this.audioTrack.G,n),this.policy.G&&oiF(this.Z,!0),this.policy.QG|| this.seek(this.getCurrentTime(),{}).FO(function(){}),this.timing.tick("gv")); (this.HW.h7||this.HW.Ad||this.HW.Aj||this.HW.Gi||this.HW.a5)&&this.dQ.vV(this.HW)}; g.u.resume=function(){if(this.isSuspended||this.Db){this.logger.debug("Resumed.");this.FT=this.Db=this.isSuspended=!1;try{this.AB()}catch(J){g.ko(J)}}}; g.u.lW=function(){return!this.policy.C9}; g.u.ow=function(J,K){J=J===void 0?!1:J;K=K===void 0?!1:K;this.logger.debug("detaching media source");D23(this);this.dQ.QJ()&&(this.N=NaN);J?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.PW&&this.Zm("loader",{setsmb:1}),this.policy.cW=!0,this.Ph()):(this.policy.oO?F0(this,this.iR):F0(this,!1),K||this.Ph())}; g.u.setAudioTrack=function(J,K,n){n=n===void 0?!1:n;if(!this.o4()){var X=!isNaN(K);n&&X&&(this.audioTrack.QG=Date.now(),this.policy.zL&&(this.wQ=!0));if(this.policy.G){var l=this.U.Pg(J.id,X);this.logger.debug(function(){return"Logging new audio format: "+l.G.info.id}); this.dQ.Lo(l)}else{var x=lak(this.G,J.id,X);this.logger.debug(function(){return"Logging new audio format: "+x.audio.info.id}); this.dQ.Lo(new ZF(x.audio,x.reason))}if(X&&(n=this.audioTrack.G.index.dG(K),this.Zm("setAudio",{id:J.id,cmt:K,sq:n}),n>=0)){this.policy.G&&this.Cn(!0,"mosaic");Dh(this.audioTrack,n,NaN,NaN);!this.policy.F2&&this.HW.isLive&&Da(this.HW,n,!1);return}this.dQ.Xx()}}; g.u.setPlaybackRate=function(J){J!==this.L.getPlaybackRate()&&this.L.setPlaybackRate(J)}; g.u.mY=function(J){var K=this.Z.W;this.Z.eG(J);this.Zm("scfidc",{curr:Tv(K),"new":Tv(J)});J&&Tv(J)!==Tv(K)&&(this.Cn(!0,"caption change"),this.AB())}; g.u.Y9=function(J){this.Z.vT(J)}; g.u.di=function(J){var K=J.G.info.Mp();this.logger.debug(function(){return"New "+(K?"audio":"video")+" format from SABR: "+lQ(J.G.info)}); K?this.dQ.Lo(J):G$V(this.dQ,J)}; g.u.fp=function(J){UT(J.Lv[J.Lv.length-1])&&giU(this,xg3(this.G,J.Lv[0].G))}; g.u.T2=function(){return this.dQ.T2()}; g.u.Cm=function(){return this.dQ.Cm()}; g.u.Rb=function(J){this.dQ.S().Pw()&&this.Zm("sps",{status:J.Ob||""});if(J.Ob===1)this.dQ.videoData.rZ=0;else if(J.Ob===2||J.Ob===3){var K=!1;if(J.Ob===3){K=this.dQ.Io();var n;this.KU=(n=J.r7q)!=null?n:Infinity;this.dQ.videoData.rZ=K+1;(K=kxq(this))&&this.Co(!0)}this.dQ.FF(!0,K)}}; g.u.zo=function(){return this.dQ.zo()}; g.u.Hh=function(){return this.dQ.Hh()}; g.u.Yw=function(J){this.dQ.Yw(J)}; g.u.m_j=function(){var J,K=(J=this.dQ.dE())==null?void 0:J.getCurrentTime();K?this.dQ.Zm("rms",{cta:K}):g.M0(this.wN)}; g.u.AB=function(){k$M(this);if(this.tj&&FJ(this.tj)&&!this.tj.N$()&&(!this.policy.MQ||isFinite(this.getCurrentTime()))){var J=wb(this.videoTrack);J=this.policy.mN&&J&&J.PH();this.HW.isManifestless&&this.HW.U&&mo(this.HW)?(this.N=mo(this.HW),this.tj.yL(this.N)):kV(this.HW)&&!J?isNaN(this.N)?(this.N=this.getCurrentTime()+3600,this.tj.yL(this.N)):this.N<=this.getCurrentTime()+1800&&(this.N=Math.max(this.N+1800,this.getCurrentTime()+3600),this.tj.yL(this.N)):this.tj.isView||(J=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.N)||this.N!==J)&&J>0&&(this.tj.yL(J),this.N=J))}if(!this.o4())if(Bu(this.HW)&&this.HW.tL()){var K=this.HW;this.handleError("manifest.net.retryexhausted",K.wQ?{rc:K.RO}:{rc:K.RO.toString()},1)}else if(this.policy.G)a:{try{vi3(this.Z);this.HW.isManifestless&&this.policy.C&&tf(this.ST);var n;((n=this.tj)==null?0:bQ(n))&&this.b5();oiF(this.Z)}catch(V){g.gG(V);K=V;if(K.message.includes("changeType")){this.Zm("ctype",{exp:K.name,msg:K.message,s:K.stack});break a}this.handleError("fmt.unplayable", {exp:K.name,msg:K.message,s:K.stack},1)}owV(this);g.M0(this.fv)}else if(!this.HW.Z||!h6F(this.videoTrack)&&!h6F(this.audioTrack)||(this.videoTrack.C||this.audioTrack.C)&&this.policy.md?n=!1:(this.Ph(),this.dQ.seekTo(Infinity,{E8:"checkLoaderTracksSync",cQ:!0}),n=!0),!n){k$M(this);this.HW.isManifestless&&(vnf(this.videoTrack),vnf(this.audioTrack),tf(this.ST),(n=fA(this.videoTrack))&&n.Z&&(n=n.Z.X&&!this.policy.XN,this.Zm(n===this.policy.W.XO?"strm":"strmbug",{strm:n,sfmp4:this.policy.W.XO,dfs:this.policy.XN}, !0)));if(this.tj)this.b5();else if(this.policy.U){var X;n=!1;if(this.policy.w2){var l;J=g.z([this.videoTrack,this.audioTrack]);for(l=J.next();!l.done;l=J.next()){var x=l.value;for(l=fA(x);l&&x.ZG()!==wb(x);l=fA(x))x.fn(l);n=n||!!l}}else(K=fA(this.videoTrack))&&this.videoTrack.fn(K),(X=fA(this.audioTrack))&&this.audioTrack.fn(X);m5(this.videoTrack)&&m5(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(K||X||n)&&yG(this)}pDV(this);F_(this.C,this.videoTrack,this.videoTrack.G, !1);F_(this.C,this.audioTrack,this.audioTrack.G,!1);this.policy.UK||Yor(this,this.videoTrack,this.audioTrack);IWe(this.C,this.videoTrack,this.audioTrack);IWe(this.C,this.audioTrack,this.videoTrack);owV(this);this.W&&(K=this.W,K.U?(X=K.N+K.policy.pO,K.X||(X=Math.min(X,K.startTimeSecs+K.policy.Qf)),K=Math.max(0,X*1E3-Date.now())):K=NaN,isNaN(K)||g.M0(this.x4,K));g.M0(this.fv)}}; g.u.P7=function(J){this.dQ.P7(J)}; g.u.b5=function(){var J=this;if(this.tj){var K=this.tj.G,n=this.tj.Z;QtM(this,this.audioTrack);QtM(this,this.videoTrack);var X=tn3(this);if(X){if(this.policy.Zb){if(!K.Ho()){var l=fA(this.audioTrack);if(l){if(!WX(this,this.audioTrack,K,l.info))return;fZM(this,this.audioTrack,K,l)}}if(!n.Ho()&&(l=fA(this.videoTrack))){if(!WX(this,this.videoTrack,n,l.info))return;fZM(this,this.videoTrack,n,l)}}this.TU||(this.TU=(0,g.a)(),this.logger.debug(function(){return"Appends pause start "+J.TU+" reason "+X}), this.policy.Z&&this.Zm("apdps",{r:X}))}else if(this.TU&&(U2p(this,this.TU),this.TU=0),yk3(this),l=!1,Ei3(this,this.videoTrack,n)&&(l=!0,DQf(this.timing),cGf(this.timing)),this.tj&&!this.tj.Kl()&&(Ei3(this,this.audioTrack,K)&&(l=!0,dQ3(this.timing),YT8(this.timing)),!this.o4()&&this.tj))!this.policy.C9&&m5(this.videoTrack)&&m5(this.audioTrack)&&FJ(this.tj)&&!this.tj.N$()&&(n=!1,n=wb(this.audioTrack).G,n=n===this.HW.G[n.info.id])&&(this.logger.debug("Setting EOS"),cCk(this.tj),VGq(this.schedule)),l&& !this.tj.isAsync()&&yG(this)}}; g.u.xZ=function(J){var K,n=J===((K=this.tj)==null?void 0:K.G)?this.audioTrack:this.videoTrack,X;if((X=fA(n))==null?0:X.isLocked){if(this.dQ.S().Pw()){var l;this.Zm("eosl",{ounlock:(l=fA(n))==null?void 0:l.info.Zr()})}var x;KMd(this,J===((x=this.tj)==null?void 0:x.G))}var V;if(this.policy.zL&&J===((V=this.tj)==null?void 0:V.G)&&this.Fq){K=this.Fq-this.getCurrentTime();var v;this.dQ.Zm("asl",{l:K,xtag:(v=wb(this.audioTrack))==null?void 0:v.G.info.G});this.wQ=!1;this.Fq=0}J.ox()&&J.FL().length===0&& (J.nC(),this.tj&&!this.tj.ox()&&(this.dQ.S().Pw()&&this.dQ.Zm("rms",{ld:"seek"}),this.tj.N=performance.now(),this.dQ.Sx(),this.dQ.S().Pw()&&g.M0(this.wN)));var Q;(Q=n.K)!=null&&n$(Q,0);this.policy.a5?dwU(this):this.AB()}; g.u.amQ=function(J){if(this.tj){var K=wb(J===this.tj.G?this.audioTrack:this.videoTrack);if(J=J.Br())for(var n=0;n5&&J.GA.shift();K=K.BW;var S;if((S=this.dQ.getVideoData())==null?0:S.enableServerStitchedDai)S=smF(this.audioTrack,K),n=smF(this.videoTrack,K),S!==0&&n!==0&&S!==n&&this.handleError("ssdai.avsync",{sq:K,a:S,v:n},0)}}; g.u.Jc=function(J,K,n,X){J.info.video&&this.X.Jc(K,n,X)}; g.u.Q0=function(J){this.G.Q0(J)}; g.u.r6=KU(20);g.u.Vc=function(){return this.videoTrack.W||this.audioTrack.W}; g.u.seek=function(J,K){if(this.o4())return D8();if(this.Vc())return D8("seeking to head");if(this.policy.QG&&!isFinite(J))return VdU(this.ST),g.TD(Infinity);k$M(this);mw3(this);this.policy.G||pDV(this,J);this.tj&&this.tj.G&&this.tj.Z&&!this.dQ.getVideoData().gZ&&(this.tj.G.isLocked()||this.tj.Z.isLocked())&&this.dQ.Xx({reattachOnLockedBuffer:1,vsb:""+this.tj.Z.isLocked(),asb:""+this.tj.G.isLocked()});var n=this.getCurrentTime(),X=this.ST.seek(J,K);this.policy.MQ||(this.currentTime=X);tO(this.X,J, n,this.policy.FC&&!K.X8);yG(this);return g.TD(X)}; g.u.nT=function(J){return this.policy.G&&this.Z.nT(J)}; g.u.Ra=function(J){return this.Z.Ra(J)}; g.u.Cn=function(J,K){this.Z.Cn(J,K)}; g.u.getCurrentTime=function(){if(this.policy.MQ){var J=this.Ti()||0;return this.dQ.getCurrentTime()-J}return this.currentTime}; g.u.ZI=function(){return this.audioTrack.G.info}; g.u.mZ=function(){return this.videoTrack.G.info}; g.u.fC=function(){return this.audioTrack.G.info.YF}; g.u.yO=function(){return this.videoTrack.G.info.YF}; g.u.Xq=function(){try{this.ow(),c0(this.audioTrack),c0(this.videoTrack),YU(this.audioTrack),YU(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.t.prototype.Xq.call(this)}catch(J){g.ko(J)}}; g.u.handleError=function(J,K,n){n=n===void 0?0:n;var X=Bf(n);J==="fmt.unplayable"&&this.HW.isLive&&(this.policy.Zb=!1,Ts(this.HW));K=new ix(J,K,n);g.oH(this);Ih(K.details);this.dQ.handleError(K);J!=="html5.invalidstate"&&K.errorCode!=="fmt.unplayable"&&J!=="fmt.unparseable"&&X&&this.dispose()}; g.u.FK=function(){var J=wb(this.audioTrack),K=wb(this.videoTrack);J={lct:this.getCurrentTime().toFixed(3),lsk:this.ST.isSeeking(),lmf:this.G.G.isLocked(),lbw:el(this.schedule).toFixed(3),lhd:Rm(this.schedule).toFixed(3),lst:((this.schedule.W.mW()||0)*1E9).toFixed(3),laa:J?J.Zr():"",lva:K?K.Zr():"",lar:this.audioTrack.Z?this.audioTrack.Z.Zr():"",lvr:this.videoTrack.Z?this.videoTrack.Z.Zr():"",laq:""+p$(this.audioTrack),lvq:""+p$(this.videoTrack)};this.tj&&!this.tj.Kl()&&this.tj.G&&this.tj.Z&&(J.lab= jy(this.tj.G.FL()),J.lvb=jy(this.tj.Z.FL()));this.TU&&(J.lapt=((0,g.a)()-this.TU).toFixed(0),J.lapr=tn3(this));this.MQ&&(J.lapmabht=((0,g.a)()-this.MQ).toFixed(0),J.lapmabh=GY(this,this.audioTrack).toFixed(0));this.j_&&(J.lapmvbht=((0,g.a)()-this.j_).toFixed(0),J.lapmvbh=GY(this,this.videoTrack).toFixed(0));this.PW&&(J.lapsdai=((0,g.a)()-this.PW).toFixed(0));return J}; g.u.Ph=function(){try{this.policy.G&&this.Z.Cn(!1,"pending"),this.audioTrack.Ph(),this.videoTrack.Ph()}catch(J){g.ko(J)}this.policy.U=""}; g.u.dP=function(){return B0(this.L)}; g.u.Zm=function(J,K,n){this.dQ.Zm(J,K,n===void 0?!1:n)}; g.u.R2=function(){return this.dQ.R2()}; g.u.cQ=function(J,K){J/=K;isNaN(this.timestampOffset)&&$3F(this,J-Math.min(J,this.policy.eI));return(J-this.timestampOffset)*K}; g.u.Ti=function(){return this.timestampOffset}; g.u.isSeeking=function(){return this.ST.isSeeking()}; g.u.al=function(){this.X.al()}; g.u.j$=function(J,K,n){K=K===void 0?!1:K;n=n===void 0?{}:n;this.policy.G?this.U.j$(J,K,n):this.G.j$(J,K,n)}; g.u.s6=function(J,K){if(this.GA&&this.X.s6(J,this.GA))return $3F(this,this.timestampOffset-K),yG(this),this.policy.X&&(Ts(this.HW),YU(this.audioTrack),YU(this.videoTrack),this.Ph()),!0;K=this.videoTrack.G.index.dG(J);this.handleError("ad.skipfailed",{dec:!!this.GA,t:J.toFixed(3),sq:K});return!1}; g.u.getManifest=function(){return this.HW}; g.u.isOffline=function(){return!!this.dQ.getVideoData().cotn}; g.u.l9=function(J,K){this.dQ.l9(J,K)}; g.u.ND=function(J){if(this.policy.G)this.Z.Cn(!0,"utc"),this.AB();else{var K=this.dQ.getVideoData().Ui;if(K){var n=this.C;n.HO=J;n.Ui=K;Ek(this)}}}; g.u.EA=function(J){this.videoTrack.W=!1;this.audioTrack.W=!1;this.ST.Z=!1;this.dQ.EA(J)}; g.u.X9=function(J){this.ST.X9(J-this.Ti())}; g.u.lm=function(){this.dQ.lm()}; g.u.Co=function(J){J!==this.policy.k7&&((this.policy.k7=J)||this.AB())}; g.u.Rc=function(J,K){var n=this.audioTrack.jl,X=this.videoTrack.jl;n&&X&&(n.remove(J,K),X.remove(J,K))}; g.u.Xx=function(J){this.dQ.Xx(J)}; g.u.nO=function(J){this.dQ.nO(J)}; g.u.Io=function(){return this.dQ.Io()}; g.u.AJ=function(){Ts(this.HW);this.Ph()};g.u=g.Er.prototype;g.u.gb=function(J,K,n,X,l,x){return this.tH.gb(J,K,n,X,l,x)}; g.u.V$=function(J,K,n,X,l,x){return this.tH.V$(J,K,n,X,l,x)}; g.u.CS=function(J){return this.tH.CS(J)}; g.u.wX=function(J){this.tH.wX(J)}; g.u.Ne=function(J,K,n,X){return this.tH.Ne(J,K,n,X)}; g.u.al=function(){this.tH.al()}; g.u.DS=function(J,K){this.tH.DS(J,K)}; g.u.Vk=function(){this.tH.Vk()}; g.u.m7=KU(62);g.u.bk=function(J,K,n){this.tH.bk(J,K,n)}; g.u.uD=KU(65);g.u.kH=function(J,K,n,X,l,x,V,v,Q){this.tH.kH(J,K,n,X,l,x,V,v,Q)}; g.u.u7=function(J){this.tH.u7(J)}; g.u.Nm=function(J){return this.tH.Nm(J)}; g.u.Nt=function(J){return this.tH.Nt(J)};g.e(bI,g.hi);g.e(Aw,bI);Aw.prototype.N=function(J,K){if(J&&K){var n=Number(dP(J,"cpi"))*1+1;isNaN(n)||n<=0||nthis.X&&(this.X=n,g.Mz(this.G)||(this.G={},this.U.stop(),this.Z.stop())),this.G[K]=J,g.M0(this.Z))}}; Aw.prototype.C=function(){for(var J=g.z(Object.keys(this.G)),K=J.next();!K.done;K=J.next()){var n=K.value;K=this.publish;for(var X=this.X,l=g.wP(this.G[n]),x=[],V=g.z(l[6].split("&")),v=V.next();!v.done;v=V.next())v=v.value,v.indexOf("cpi=")===0?x.push("cpi="+X.toString()):v.indexOf("ek=")===0?x.push("ek="+g.rs(n)):x.push(v);l[6]="?"+x.join("&");n="skd://"+l.slice(2).join("");l=n.length*2;X=new Uint8Array(l+4);X[0]=l%256;X[1]=(l-X[0])/256;for(l=0;l0)for(var n=g.z(this.G),X=n.next();!X.done;X=n.next())if(K===X.value.info.cryptoPeriodIndex){K=!0;break a}K=!1}if(!K){K=(0,g.a)();a:{n=J.cryptoPeriodIndex;if(!isNaN(n)){X=g.z(this.X.values());for(var l=X.next();!l.done;l=X.next())if(Math.abs(l.value.cryptoPeriodIndex-n)<=1){n=!0;break a}}n=!1}n?(n=J.G,n=Math.max(0,Math.random()*((isNaN(n)?120:n)-30))*1E3):n=0;this.publish("log_qoe",{wvagt:"delay."+n,cpi:J.cryptoPeriodIndex,reqlen:this.G.length, ignore:this.U});n<=0?Co7(this,J):this.U||(this.G.push({time:K+n,info:J}),g.M0(this.Z,n))}}; MS.prototype.Xq=function(){this.G=[];bI.prototype.Xq.call(this)};var Ci={},wAp=(Ci.DRM_TRACK_TYPE_AUDIO="AUDIO",Ci.DRM_TRACK_TYPE_SD="SD",Ci.DRM_TRACK_TYPE_HD="HD",Ci.DRM_TRACK_TYPE_UHD1="UHD1",Ci);g.e(Rj8,g.t);g.e(Ihk,g.hi);g.u=Ihk.prototype;g.u.NI=function(J){var K=this;if(!(this.o4()||J.size<=0)){var n={};J.forEach(function(X,l){var x=f4(K.Z)?l:X;l=new Uint8Array(f4(K.Z)?X:l);f4(K.Z)&&Z$7(l);X=g.Je(l,4);Z$7(l);l=g.Je(l,4);K.G[X]?K.G[X].status=x:K.G[l]?K.G[l].status=x:K.G[X]={type:"",status:x};K.lx.J("html5_authorized_drm_track_types")?(x=K.G[X].type,X=UBM(x),KV(K,x)&&!n[X]&&(K.a$.push(X),n[X]=!0)):(K.U=[],KV(K,K.G[X].type)&&K.a$.push(UBM(K.G[X].type)))}); Ykk(this,",");NS(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}}; g.u.error=function(J,K,n,X){this.o4()||(this.publish("licenseerror",J,K,n,X),J==="drm.provision"&&(J=(Date.now()-this.N)/1E3,this.N=NaN,this.publish("ctmp","provf",{et:J.toFixed(3)})));Bf(K)&&this.dispose()}; g.u.shouldRetry=function(J,K){return!J&&this.requestNumber===K.requestNumber}; g.u.Xq=function(){this.G={};g.hi.prototype.Xq.call(this)}; g.u.FK=function(){var J={ctype:this.L.contentType||"",length:this.L.initData.length,requestedKeyIds:this.Aj,cryptoPeriodIndex:this.cryptoPeriodIndex};this.X&&(J.keyStatuses=this.G);return J}; g.u.getInfo=function(){var J=this.U.join();if(JP(this)){var K=new Set,n;for(n in this.G)this.G[n].status!=="usable"&&K.add(this.G[n].type);J+="/UKS."+Array.from(K)}return J+="/"+this.cryptoPeriodIndex}; g.u.M_=function(){return this.url};g.e(nV,g.t);g.u=nV.prototype;g.u.A3=function(J){if(this.C){var K=J.messageType||"license-request";this.C(new Uint8Array(J.message),K)}}; g.u.NI=function(){this.W&&this.W(this.G.keyStatuses)}; g.u.onClosed=function(){this.o4()||g.fa("xboxone")&&this.X&&this.X("closedShouldNotRetry")}; g.u.dD=function(J){this.C&&this.C(J.message,"license-request")}; g.u.le=function(J){if(this.X){if(this.Z){var K=this.Z.error.code;J=this.Z.error.systemCode}else K=J.errorCode,J=J.systemCode;this.X("t.prefixedKeyError;c."+K+";sc."+J,K,J)}}; g.u.vE=function(){this.N&&this.N()}; g.u.update=function(J){var K=this;if(this.G)return this.G.update(J).then(null,BG(function(n){W5e(K,"t.update",n)})); this.Z?this.Z.update(J):this.element.addKey?this.element.addKey(this.L.keySystem,J,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.L.keySystem,J,this.initData,this.sessionId);return dN()}; g.u.Xq=function(){this.G&&(this.K?this.G.close().catch(g.gG):this.G.close());this.element=null;g.t.prototype.Xq.call(this)};g.e(oJ,g.t);g.u=oJ.prototype;g.u.setServerCertificate=function(){return this.Z.setServerCertificate?this.G.flavor==="widevine"&&this.G.Zz?this.Z.setServerCertificate(this.G.Zz):FI(this.G)&&this.G.kF?this.Z.setServerCertificate(this.G.kF):null:null}; g.u.createSession=function(J,K){var n=J.initData;if(this.G.keySystemAccess){K&&K("createsession");var X=this.Z.createSession();aj(this.G)?n=qk3(n,this.G.kF):FI(this.G)&&(n=stF(n)||new Uint8Array(0));K&&K("genreq");J=X.generateRequest(J.contentType,n);var l=new nV(null,null,null,X,null,this.W);J.then(function(){K&&K("genreqsuccess")},BG(function(V){W5e(l,"t.generateRequest",V)})); return l}if(Za(this.G))return b$r(this,n);if(Wu(this.G))return EUk(this,n);if((X=this.element)==null?0:X.generateKeyRequest)this.element.generateKeyRequest(this.G.keySystem,n);else{var x;(x=this.element)==null||x.webkitGenerateKeyRequest(this.G.keySystem,n)}return this.U=new nV(this.element,this.G,n,null,null,this.W)}; g.u.rk=function(J){var K=A88(this,J);K&&K.dD(J)}; g.u.nF=function(J){var K=A88(this,J);K&&K.le(J)}; g.u.ut=function(J){var K=A88(this,J);K&&K.vE(J)}; g.u.getMetrics=function(){if(this.Z&&this.Z.getMetrics)try{var J=this.Z.getMetrics()}catch(K){}return J}; g.u.Xq=function(){this.X=this.Z=null;var J;(J=this.U)==null||J.dispose();J=g.z(Object.values(this.N));for(var K=J.next();!K.done;K=J.next())K.value.dispose();this.N={};g.t.prototype.Xq.call(this);delete this.element};g.u=X3.prototype;g.u.get=function(J){J=this.findIndex(J);return J!==-1?this.values[J]:null}; g.u.remove=function(J){J=this.findIndex(J);J!==-1&&(this.keys.splice(J,1),this.values.splice(J,1))}; g.u.removeAll=function(){this.keys=[];this.values=[]}; g.u.set=function(J,K){var n=this.findIndex(J);n!==-1?this.values[n]=K:(this.keys.push(J),this.values.push(K))}; g.u.findIndex=function(J){return g.s0(this.keys,function(K){return g.kr(J,K)})};g.e(Jwp,g.hi);g.u=Jwp.prototype;g.u.nr4=function(J){this.uj({onecpt:1});J.initData&&ogH(this,new Uint8Array(J.initData),J.initDataType)}; g.u.TN4=function(J){this.uj({onndky:1});ogH(this,J.initData,J.contentType)}; g.u.SE=function(J){this.uj({onneedkeyinfo:1});this.lx.J("html5_eme_loader_sync")&&(this.W.get(J.initData)||this.W.set(J.initData,J));ngq(this,J)}; g.u.Wc=function(J){this.X.push(J);lf(this)}; g.u.createSession=function(J){var K=lTV(this)?Bek(J):g.Je(J.initData);this.Z.get(K);this.cW=!0;J=new Ihk(this.videoData,this.lx,J,this.drmSessionId);this.Z.set(K,J);J.subscribe("ctmp",this.wC,this);J.subscribe("keystatuseschange",this.NI,this);J.subscribe("licenseerror",this.pw,this);J.subscribe("newlicense",this.Od,this);J.subscribe("newsession",this.D8,this);J.subscribe("sessionready",this.rD,this);J.subscribe("fairplay_next_need_key_info",this.Sa,this);this.lx.J("html5_enable_vp9_fairplay")&&J.subscribe("qualitychange", this.lJ,this);J.subscribe("sabrlicenseconstraint",this.Kkj,this);pAU(J,this.U)}; g.u.Od=function(J){this.o4()||(this.uj({onnelcswhb:1}),J&&!this.heartbeatParams&&(this.heartbeatParams=J,this.publish("heartbeatparams",J)))}; g.u.D8=function(){this.o4()||(this.uj({newlcssn:1}),this.X.shift(),this.cW=!1,lf(this))}; g.u.rD=function(){if(Za(this.G)&&(this.uj({onsnrdy:1}),this.j_--,this.j_===0)){var J=this.GA,K,n;(K=J.element)==null||(n=K.msSetMediaKeys)==null||n.call(K,J.X)}}; g.u.NI=function(J){if(!this.o4()){!this.PW&&this.videoData.J("html5_log_drm_metrics_on_key_statuses")&&(xS8(this),this.PW=!0);this.uj({onksch:1});var K=this.lJ;if(!JP(J)&&g.qH&&J.Z.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var n="large";else{n=[];var X=!0;if(JP(J))for(var l=g.z(Object.keys(J.G)),x=l.next();!x.done;x=l.next())x=x.value,J.G[x].status==="usable"&&n.push(J.G[x].type),J.G[x].status!=="unknown"&&(X=!1);if(!JP(J)||X)n=J.U;n=c8k(n)}K.call(this,n);this.videoData.J("html5_authorized_drm_track_types")&& (K=y8d(J),this.videoData.a$=K);this.publish("keystatuseschange",J)}}; g.u.wC=function(J,K){this.o4()||this.publish("ctmp",J,K)}; g.u.Sa=function(J,K){this.o4()||this.publish("fairplay_next_need_key_info",J,K)}; g.u.pw=function(J,K,n,X){this.o4()||(this.videoData.J("html5_log_drm_metrics_on_error")&&xS8(this),this.publish("licenseerror",J,K,n,X))}; g.u.kB=function(){return this.L}; g.u.lJ=function(J){var K=g.vo("auto",J,!1,"l");if(this.videoData.Da){if(this.L.equals(K))return}else if(V$V(this.L,J))return;this.L=K;this.publish("qualitychange");this.uj({updtlq:J})}; g.u.Kkj=function(J){this.videoData.sabrLicenseConstraint=J}; g.u.Xq=function(){this.G.keySystemAccess&&this.element&&(this.Aj?this.element.setMediaKeys(null).catch(g.gG):this.element.setMediaKeys(null));this.element=null;this.X=[];for(var J=g.z(this.Z.values()),K=J.next();!K.done;K=J.next())K=K.value,K.unsubscribe("ctmp",this.wC,this),K.unsubscribe("keystatuseschange",this.NI,this),K.unsubscribe("licenseerror",this.pw,this),K.unsubscribe("newlicense",this.Od,this),K.unsubscribe("newsession",this.D8,this),K.unsubscribe("sessionready",this.rD,this),K.unsubscribe("fairplay_next_need_key_info", this.Sa,this),this.lx.J("html5_enable_vp9_fairplay")&&K.unsubscribe("qualitychange",this.lJ,this),K.dispose();this.Z.clear();this.N.removeAll();this.W.removeAll();this.heartbeatParams=null;g.hi.prototype.Xq.call(this)}; g.u.FK=function(){for(var J={systemInfo:this.G.FK(),sessions:[]},K=g.z(this.Z.values()),n=K.next();!n.done;n=K.next())J.sessions.push(n.value.FK());return J}; g.u.getInfo=function(){return this.Z.size<=0?"no session":""+this.Z.values().next().value.getInfo()+(this.C?"/KR":"")}; g.u.uj=function(J,K){K=K===void 0?!1:K;this.o4()||(Ih(J),(this.lx.Pw()||K)&&this.publish("ctmp","drmlog",J))};g.e(Qof,g.t);g.u=Qof.prototype;g.u.zg=function(){return!!this.Sr}; g.u.A4=function(){return this.Z}; g.u.handleError=function(J){var K=this;Opp(this,J);if((J.errorCode!=="html5.invalidstate"&&J.errorCode!=="fmt.unplayable"&&J.errorCode!=="fmt.unparseable"||!CI3(this,J.errorCode,J.details))&&!eQV(this,J)){if(this.ix.GA!=="yt"&&RQ8(this,J)&&this.videoData.tv&&(0,g.a)()/1E3>this.videoData.tv&&this.ix.GA==="hm"){var n=Object.assign({e:J.errorCode},J.details);n.stalesigexp="1";n.expire=this.videoData.tv;n.init=this.videoData.uJ/1E3;n.now=(0,g.a)()/1E3;n.systelapsed=((0,g.a)()-this.videoData.uJ)/1E3;J= new ix(J.errorCode,n,2);this.dQ.xO(J.errorCode,2,"SIGNATURE_EXPIRED",Ih(J.details))}if(Bf(J.severity)){var X;n=(X=this.dQ.loader)==null?void 0:X.G.G;if(this.ix.J("html5_use_network_error_code_enums"))if(Hp7(J)&&n&&n.isLocked())var l="FORMAT_UNAVAILABLE";else if(this.ix.N||J.errorCode!=="auth"||J.details.rc!==429)J.errorCode==="ump.spsrejectfailure"&&(l="HTML5_SPS_UMP_STATUS_REJECTED");else{l="TOO_MANY_REQUESTS";var x="6"}else Hp7(J)&&n&&n.isLocked()?l="FORMAT_UNAVAILABLE":this.ix.N||J.errorCode!== "auth"||J.details.rc!=="429"?J.errorCode==="ump.spsrejectfailure"&&(l="HTML5_SPS_UMP_STATUS_REJECTED"):(l="TOO_MANY_REQUESTS",x="6");this.dQ.xO(J.errorCode,J.severity,l,Ih(J.details),x)}else this.dQ.publish("nonfatalerror",J),X=/^pp/.test(this.videoData.clientPlaybackNonce),this.Sh(J.errorCode,J.details),X&&J.errorCode==="manifest.net.connect"&&(J="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.a)(),II(J,"manifest",function(V){K.N=!0;K.Zm("pathprobe",V)}, function(V){K.Sh(V.errorCode,V.details)}))}}; g.u.Zm=function(J,K){this.dQ.Vw().Zm(J,K)}; g.u.Sh=function(J,K){K=Ih(K);this.dQ.Vw().Sh(J,K)};xC.prototype.v7=function(J){var K=ip3(this);if(!J)return{tX:fI,HG:fI,Y3:fI,GJ:fI,wj:fI,zG:fI,dI:K};var n=fI;if(this.J("html5_sabr_report_perf_cap")){if($K(K)||this.J("html5_perf_cap_override_sticky"))n=V0(this,J)}else n=V0(this,J);return{tX:n,HG:DSp(this,J),Y3:LWH(this,J),GJ:GPf(this,J.videoData),wj:USq(this,J.videoData,J),zG:mSp(this,J),dI:K}}; xC.prototype.uI=function(J){var K;g.kn(this.lx)&&(K=window.screen&&window.screen.width?new g.DH(window.screen.width,window.screen.height):null);K||(K=this.lx.h9?this.lx.h9.clone():this.vP.pA());(A2||J8||J)&&K.scale(g.bq());return K}; xC.prototype.J=function(J){return this.lx.J(J)};g.e(hP,g.t);hP.prototype.onError=function(J){if(J!=="player.fatalexception"||this.provider.J("html5_exception_to_health"))J==="sabr.fallback"&&(this.encounteredSabrFallback=!0),J.match(t5z)?this.networkErrorCount++:this.nonNetworkErrorCount++}; hP.prototype.send=function(){if(!(this.X||this.G<0)){ZpU(this);var J=g.qS(this.provider)-this.G,K="PLAYER_PLAYBACK_STATE_UNKNOWN",n=this.playerState.V2;this.playerState.isError()?K=n&&n.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.E(this.playerState,2)?K="PLAYER_PLAYBACK_STATE_ENDED":g.E(this.playerState,64)?K="PLAYER_PLAYBACK_STATE_UNSTARTED":g.E(this.playerState,16)||g.E(this.playerState,32)?K="PLAYER_PLAYBACK_STATE_SEEKING":g.E(this.playerState,1)&&g.E(this.playerState, 4)?K="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.E(this.playerState,1)?K="PLAYER_PLAYBACK_STATE_BUFFERING":g.E(this.playerState,4)?K="PLAYER_PLAYBACK_STATE_PAUSED":g.E(this.playerState,8)&&(K="PLAYER_PLAYBACK_STATE_PLAYING");n=pHu[uK(this.provider.videoData)];a:switch(this.provider.lx.playerCanaryState){case "canary":var X="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":X="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:X="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var l=fTU(this.provider), x=this.Z<0?J:this.Z-this.G;J=this.provider.lx.J7+36E5<(0,g.a)();K={started:this.Z>=0,stateAtSend:K,joinLatencySecs:x,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:X,playerCanaryStage:l,isAd:this.provider.videoData.isAd(),liveMode:n,hasDrm:!!g.HD(this.provider.videoData),isGapless:this.provider.videoData.W,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:xi(this.provider.videoData)};J||g.vJ("html5PlayerHealthEvent",K);this.X=!0;this.dispose()}}; hP.prototype.Xq=function(){this.X||this.send();window.removeEventListener("error",this.Zy);window.removeEventListener("unhandledrejection",this.Zy);g.t.prototype.Xq.call(this)}; var t5z=/\bnet\b/;g.e(aTH,g.t);aTH.prototype.Xq=function(){qrd(this);g.t.prototype.Xq.call(this)};var EgM=/[?&]cpn=/;g.e(vI,g.t);vI.prototype.flush=function(){var J={};this.Z&&(J.pe=this.Z);this.G.length>0&&(J.pt=this.G.join("."));this.G=[];return J}; vI.prototype.stop=function(){var J=this,K,n,X;return g.G(function(l){if(l.Z==1)return g.e8(l,2),g.d(l,(K=J.U)==null?void 0:K.stop(),4);if(l.Z!=2)return(n=l.G)&&J.logTrace(n),g.Ir(l,0);X=g.mk(l);J.Z=nCd(X.message);g.uF(l)})}; vI.prototype.logTrace=function(J){this.encoder.reset();this.encoder.add(1);this.encoder.add(J.resources.length);for(var K=g.z(J.resources),n=K.next();!n.done;n=K.next()){n=n.value.replace("https://www.youtube.com/s/","");this.encoder.add(n.length);for(var X=0;X=0?J:g.qS(this.provider),this.cW?ypO.has(this.N_)&&(this.G.size||(this.N_==="PL"?J>=this.Z+30:J<=this.QG+30||J>=this.Z+1200&&J<=this.QG+86400))&&(g.SS(this,J,"vps",[this.N_]),this.Z=J):["PL","B","S"].indexOf(this.N_)>-1&&(this.G.size||J>=this.Z+30)&&(g.SS(this,J,"vps",[this.N_]),this.Z=J),this.G.size)){this.sequenceNumber===7E3&&g.gG(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){CV(this,J);var K=this.provider.dQ.lO(); K=g.z(K);for(var n=K.next();!n.done;n=K.next())n=n.value,this.Zm(n.key,n.value);K=J;n=this.provider.dQ.MJ();var X=n.droppedVideoFrames||0,l=n.totalVideoFrames||0,x=X-this.jV,V=l&&!this.BP;X>n.totalVideoFrames||x>5E3?sJq(this,"html5.badframedropcount","df."+X+";tf."+n.totalVideoFrames):(x>0||V)&&g.SS(this,K,"df",[x]);this.jV=X;this.BP=l;this.L>0&&(g.SS(this,J,"glf",[this.L]),this.L=0);jq.isActive()&&(J=jq.zN(),Object.keys(J).length>0&&this.Zm("profile",J));this.iR&&Oz(this,"lwnmow");this.provider.lx.Pw()&& this.provider.J("html5_record_now")&&this.Zm("now",{wt:(0,g.a)()});J={};this.provider.videoData.Z&&(J.fmt=this.provider.videoData.Z.itag,(K=this.provider.videoData.U)&&K.itag!==J.fmt&&(J.afmt=K.itag));J.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(J.adcpn=this.adCpn);this.Go&&(J.addocid=this.Go);this.contentCpn&&(J.ccpn=this.contentCpn);this.GA&&(J.cdocid=this.GA);this.provider.videoData.cotn&&(J.cotn=this.provider.videoData.cotn);J.el=dn(this.provider.videoData);J.content_v=gn(this.provider.videoData); J.ns=this.provider.lx.GA;J.fexp=FCp(this.provider.lx.experiments).toString();J.cl=(758002763).toString();(K=this.provider.videoData.adFormat||this.adFormat)&&(J.adformat=K);(K=uK(this.provider.videoData))&&(J.live=K);this.provider.videoData.wK()&&(J.drm=1,this.provider.videoData.C&&(J.drm_system=muH[this.provider.videoData.C.flavor]||0),this.provider.videoData.drmProduct&&(J.drm_product=this.provider.videoData.drmProduct));h2()&&this.provider.videoData.N&&(J.ctt=this.provider.videoData.N,J.cttype= this.provider.videoData.mH,this.provider.videoData.mdxEnvironment&&(J.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(J.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.Ew&&(J.dai_fallback="1")):this.provider.videoData.aZ?J.dai="cs":this.provider.videoData.HJ&&(J.dai="disabled");J.seq=this.sequenceNumber++;if(this.provider.videoData.L4){if(K=this.provider.videoData.L4,J&&K)for(K.ns==="3pp"&&(J.ns="3pp"),this.f9.has(K.ns)&& Oz(this,"hbps"),K.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=K.shbpslc),this.provider.lx.experiments.sM("html5_use_server_qoe_el_value")&&this.Fq.delete("el"),n=g.z(Object.keys(K)),X=n.next();!X.done;X=n.next())X=X.value,this.Fq.has(X)||(J[X]=K[X])}else J.event="streamingstats",J.docid=this.provider.videoData.videoId,J.ei=this.provider.videoData.eventId;this.isEmbargoed&&(J.embargoed="1");Object.assign(J,this.provider.lx.G);if(K=J.seq)K={cpn:this.provider.videoData.clientPlaybackNonce, sequenceNumber:+K,serializedWatchEndpointLoggingContext:this.provider.videoData.Vi},this.serializedHouseBrandPlayerServiceLoggingContext&&(K.serializedHouseBrandPlayerServiceLoggingContext=nK(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(K.playerResponseCpn=this.provider.videoData.playerResponseCpn),$C.length&&(K.decoderInfo=$C),this.remoteControlMode&&(K.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(K.remoteConnectedDevices= this.remoteConnectedDevices),K=g.Eg(K,dL7),K=g.Je(K,4),this.G.set("qclc",[K]);J=g.Td("//"+this.provider.lx.XA+"/api/stats/qoe",J);n=K="";X=g.z(this.G.entries());for(l=X.next();!l.done;l=X.next())x=g.z(l.value),l=x.next().value,x=x.next().value,V=void 0,(V=x)!=null&&V.join&&(l="&"+l+"="+x.join(","),l.length>100?n+=l:K+=l);QJd(this,J+K,n.replace(/ /g,"%20"))}this.G.clear()}}; g.u.nO=function(J){this.iR=J}; g.u.Wg=function(){if(this.provider.videoData.C){var J=this.provider.videoData.C;Oz(this,"eme-"+(J.keySystemAccess?"final":Za(J)?"ms":aj(J)?"ytfp":Wu(J)?"safarifp":"nonfinal"))}}; g.u.w3=KU(59);g.u.fL=function(J){this.isEmbargoed=J}; g.u.GR=KU(36);g.u.IH=KU(42);g.u.onPlaybackRateChange=function(J){var K=g.qS(this.provider);J&&J!==this.x4&&(g.SS(this,K,"rate",[J]),this.x4=J);this.cW||this.reportStats(K)}; g.u.zy=KU(30);g.u.getPlayerState=function(J){if(g.E(J,128))return"ER";if(g.E(J,2048))return"B";if(g.E(J,512))return"SU";if(g.E(J,16)||g.E(J,32))return"S";if(J.isOrWillBePlaying()&&g.E(J,64))return"B";var K=Zf0[SR(J)];g.Ig(this.provider.lx)&&K==="B"&&this.provider.dQ.getVisibilityState()===3&&(K="SU");K==="B"&&g.E(J,4)&&(K="PB");return K}; g.u.Xq=function(){g.t.prototype.Xq.call(this);g.Re(this.Aj);g.Re(this.o5)}; g.u.Oz=function(J){this.isOffline=J;g.SS(this,g.qS(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.u.Zm=function(J,K,n){var X=this.nE.indexOf(J)!==-1;X||this.nE.push(J);if(!n||!X){var l=typeof K!=="string"?Ih(K):K;l=OVF(l);if(!n&&!/^t[.]/.test(l)){var x=g.qS(this.provider)*1E3;l="t."+x.toFixed()+";"+l}sz(this,"ctmp",J+":"+l);this.logger.debug(function(){return"ctmp "+J+" "+l}); $cF(this);return x}}; g.u.yx=function(J,K,n){this.C={WVQ:Number(this.Zm("glrem",{nst:J.toFixed(),rem:K.toFixed(),ca:+n})),WE:J,EOq:K,isAd:n}}; g.u.PL=function(J,K,n){g.SS(this,g.qS(this.provider),"ad_playback",[J,K,n])}; g.u.fK=function(J,K){var n=g.qS(this.provider)*1E3;sz(this,"daism","t."+n.toFixed(0)+";smw."+(J*1E3).toFixed(0)+";smo."+(K*1E3).toFixed(0))}; g.u.resume=function(){var J=this;isNaN(this.Aj)?Szf(this):this.Aj=g.Oj(function(){J.reportStats()},1E4)}; var OP={},Zf0=(OP[5]="N",OP[-1]="N",OP[3]="B",OP[0]="EN",OP[2]="PA",OP[1]="PL",OP[-1E3]="ER",OP[1E3]="N",OP),ypO=new Set(["PL","B","S"]),$C=[];Rc7.prototype.update=function(){if(this.W){var J=this.LH()||0,K=g.qS(this.provider);J>=this.provider.dQ.getDuration()-.1&&(this.previouslyEnded=!0);if(J!==this.G||zcf(this,J,K)){var n;if(!(n=JK-this.qI+2||zcf(this,J,K))){n=this.provider.dQ.getVolume();var X=n!==this.K,l=this.provider.dQ.isMuted()?1:0;l!==this.L?(this.L=l,n=!0):(!X||this.U>=0||(this.K=n,this.U=K),n=K-this.U,this.U>=0&&n>2?(this.U=-1,n=!0):n=!1)}n&&(eS(this),this.X=J);this.qI=K;this.G=J}}}; Rc7.prototype.LH=function(){var J=this.provider.dQ.LH();return this.provider.lx.J("html5_disable_live_dvr_shrink_for_cdm_vss")&&G$(this.provider.videoData)?J+this.provider.dQ.Ti():J};wIe.prototype.send=function(J){var K=this;if(!this.wQ){var n=Itp(this),X=g.Td(this.uri,n);this.lx.J("vss_through_gel_double")&&iVH(X);this.cW&&!this.lx.J("html5_simplify_pings")?TiH(this,X):PfH(this,J).then(function(l){K.cW&&(l=l||{},l.method="POST",l.postParams={atr:K.attestationResponse});N_q(X,l,{token:K.QG,TI:K.Gi,mdxEnvironment:K.mdxEnvironment},K.lx,J,K.MQ,K.isFinal&&K.J7||K.PW||K.X&&K.kO)}); this.wQ=!0}}; wIe.prototype.Z=function(J){J===void 0&&(J=NaN);return Number(J.toFixed(3)).toString()}; var Hl={},pIH=(Hl.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,Hl.LIVING_ROOM_APP_MODE_MAIN=1,Hl.LIVING_ROOM_APP_MODE_KIDS=2,Hl.LIVING_ROOM_APP_MODE_MUSIC=3,Hl.LIVING_ROOM_APP_MODE_UNPLUGGED=4,Hl.LIVING_ROOM_APP_MODE_GAMING=5,Hl),RA={},mc3=(RA.EMBEDDED_PLAYER_MODE_UNKNOWN=0,RA.EMBEDDED_PLAYER_MODE_DEFAULT=1,RA.EMBEDDED_PLAYER_MODE_PFP=2,RA.EMBEDDED_PLAYER_MODE_PFL=3,RA);g.e(wi,g.t);wi.prototype.Tc=function(){this.G.update();tSH(this)&&(kH3(this),gC7(this))}; wi.prototype.Xq=function(){g.t.prototype.Xq.call(this);BI(this);u3F(this.G)}; wi.prototype.FK=function(){return Itp(PI(this,"playback"))}; wi.prototype.nh=function(J){var K=PI(this,"engage");K.Aj=J;return Bi3(K,FNF(this.provider))};atU.prototype.isEmpty=function(){return this.endTime===this.startTime};pV.prototype.J=function(J){return this.lx.J(J)}; pV.prototype.getCurrentTime=function(){return this.dQ.getCurrentTime()}; pV.prototype.LH=function(){return this.dQ.LH()}; var qzq={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.e(g.LV,g.t);g.u=g.LV.prototype;g.u.Tc=function(){if(this.provider.videoData.enableServerStitchedDai&&this.N3){var J;(J=this.X.get(this.N3))==null||J.Tc()}else this.G&&this.G.Tc()}; g.u.fL=function(J){this.qoe&&this.qoe.fL(J)}; g.u.GR=KU(35);g.u.IH=KU(41);g.u.fK=function(J,K){this.qoe&&this.qoe.fK(J,K)}; g.u.j2=function(){if(this.provider.videoData.enableServerStitchedDai&&this.N3){var J;(J=this.X.get(this.N3))!=null&&eS(J.G)}else this.G&&eS(this.G.G)}; g.u.Sh=function(J,K){this.qoe&&sJq(this.qoe,J,K);if(this.Z)this.Z.onError(J)}; g.u.onPlaybackRateChange=function(J){if(this.qoe)this.qoe.onPlaybackRateChange(J);this.G&&eS(this.G.G)}; g.u.w3=KU(58);g.u.Zm=function(J,K,n){this.qoe&&this.qoe.Zm(J,K,n)}; g.u.yx=function(J,K,n){this.qoe&&this.qoe.yx(J,K,n)}; g.u.XD=function(J){var K;(K=this.qoe)==null||K.XD(J)}; g.u.vV=function(J){var K;(K=this.qoe)==null||K.vV(J)}; g.u.nO=function(J){this.qoe&&this.qoe.nO(J)}; g.u.PL=function(J,K,n){this.qoe&&this.qoe.PL(J,K,n)}; g.u.zy=KU(29);g.u.v2=function(){if(this.qoe)return this.qoe.v2()}; g.u.FK=function(){if(this.provider.videoData.enableServerStitchedDai&&this.N3){var J,K;return(K=(J=this.X.get(this.N3))==null?void 0:J.FK())!=null?K:{}}return this.G?this.G.FK():{}}; g.u.yR=function(){var J;return(J=this.qoe)==null?void 0:J.yR()}; g.u.YH=function(J,K){var n;(n=this.qoe)==null||n.YH(J,K)}; g.u.nh=function(J){return this.G?this.G.nh(J):function(){}}; g.u.getVideoData=function(){return this.provider.videoData}; g.u.resume=function(){this.qoe&&this.qoe.resume()};g.e(di,g.t);di.prototype.qw=function(){if(this.G.has(void 0)){var J=this.G.get(void 0);if(!(void 0).videoId||J.G&&J.qoe)return;this.G.has(void 0)&&(Nik(this.G.get(void 0)),this.G.delete(void 0))}if(!this.G.has(void 0)){J=new pV(void 0,this.lx,this.dQ);var K=Math.round(TH(this.Z)*1E3);J=new g.LV(J,K);J.G&&J.qoe||this.Z.Zm("nqv",{vv:(void 0).videoId});K=this.Z.getVideoData();this.G.set(void 0,J);if(J.qoe){var n=J.qoe,X=K.videoId||"";n.contentCpn=K.clientPlaybackNonce;n.GA=X}ECF(J)}}; di.prototype.uA=function(J){if(J!==void 0){var K=this.Vw(J),n=this.Vw(),X,l=J===((X=K.getVideoData())==null?void 0:X.clientPlaybackNonce),x;X=void 0===((x=n.getVideoData())==null?void 0:x.clientPlaybackNonce);var V;x=l?((V=K.getVideoData())==null?void 0:V.videoId)||"":"nvd";var v;V=X?((v=n.getVideoData())==null?void 0:v.videoId)||"":"nvd";l&&(K=K.qoe)!=null&&(RJ(K,4,0,void 0,V),K.reportStats());X&&(Dt(n),(K=n.qoe)!=null&&(RJ(K,4,1,J,x),K.reportStats()),MSf(n,new g.rf(void 0,n.N_)),bVp(n))}}; di.prototype.Vw=function(J){J=J||this.N3;return this.G.get(J)||this.Z};g.e(g.kC,g.t);g.u=g.kC.prototype;g.u.yA=function(J,K){this.sync();K&&this.G.array.length>=2E3&&this.eF("captions",1E4);K=this.G;if(J.length>1&&J.length>K.array.length)K.array=K.array.concat(J),K.array.sort(K.G);else{J=g.z(J);for(var n=J.next();!n.done;n=J.next())n=n.value,!K.array.length||K.G(n,K.array[K.array.length-1])>0?K.array.push(n):g.c8(K.array,n,K.G)}this.X=NaN;this.sync()}; g.u.FN=function(J){J.length>1E4&&g.gG(new g.qt("Over 10k cueRanges removal occurs with a sample: ",J[0]));if(!this.o4()){var K=new Set(J);this.Z=this.Z.filter(function(n){return!K.has(n)}); vv7(this.G,K);this.sync()}}; g.u.eF=function(J,K){var n=(isNaN(this.X)?g.E(this.dQ.getPlayerState(),2)?0x8000000000000:this.dQ.getCurrentTime()*1E3:this.X)-K;K=this.Hh().filter(function(X){return X.namespace===J&&X.endthis.G,x=g.E(n,8)&&g.E(n,16),V=this.dQ.H6().isBackground()||n.isSuspended();WI(this,this.wQ,x&&!V,l,"qoe.slowseek",function(){},"timeout"); var v=isFinite(this.G);v=x&&v&&fB8(K,this.G);var Q=!X||Math.abs(X-this.G)>10,S=this.lx.J("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),r=X===0&&this.Z&&[11,10].includes(this.Z);WI(this,this.Fq,v&&Q&&!V&&(!S||!r),l,"qoe.slowseek",function(){K.seekTo(J.G)},"set_cmt"); Q=v&&hF(K.Ya(),this.G);var C=this.dQ.loader;v=!C||C.lW();var O=function(){K.seekTo(J.G+.001)}; WI(this,this.j_,Q&&v&&!V,l,"qoe.slowseek",O,"jiggle_cmt");v=function(){return J.dQ.zc()}; WI(this,this.kF,Q&&!V,l,"qoe.slowseek",v,"new_elem");Q=$I(n);S=n.isBuffering();var H=K.Ya(),R=Vd(H,X),w=R>=0&&H.end(R)>X+5,P=Q&&S&&w;r=this.dQ.getVideoData();WI(this,this.Cv,X<.002&&this.G<.002&&x&&g.Ig(this.lx)&&g.ki(r)&&!V,l,"qoe.slowseek",v,"slow_seek_shorts");WI(this,this.K,r.Sz()&&x&&!V&&!r.PW,l,"qoe.slowseek",v,"slow_seek_gapless_shorts");WI(this,this.QG,P&&!V,Q&&!S,"qoe.longrebuffer",O,"jiggle_cmt");WI(this,this.Aj,P&&!V,Q&&!S,"qoe.longrebuffer",v,"new_elem_nnr");if(C){var B=C.getCurrentTime(); x=K.Vt();x=Dxk(x,B);x=!C.isSeeking()&&X===x;WI(this,this.Gi,Q&&S&&x&&!V,Q&&!S&&!x,"qoe.longrebuffer",function(){K.seekTo(B)},"seek_to_loader")}x={}; O=Vd(H,Math.max(X-3.5,0));P=O>=0&&X>H.end(O)-1.1;var p=O>=0&&O+1=0&&P&&p<11;x.close2edge=P;x.gapsize=p;x.buflen=H.length;this.Z&&(x.seekSour=this.Z);WI(this,this.cW,Q&&S&&!V,Q&&!S,"qoe.longrebuffer",function(){},"timeout",x); x=n.isSuspended();x=this.dQ.SB()&&!x;WI(this,this.W,x,!x,"qoe.start15s",function(){J.dQ.v3("ad")},"ads_preroll_timeout"); x=this.lx.experiments.sM("html5_use_playback_rate_in_skip_slow_ad")?this.dQ.getPlaybackRate()*1E3:1E3;R=X-this.U5;WI(this,this.gQ,g.ki(r)&&C,Q&&!S,"qoe.longrebuffer",function(){J.dQ.Xx()},"reset_media_source"); WI(this,this.fv,g.ki(r)&&C,Q&&!S,"qoe.longrebuffer",v,"reset_media_element");this.U===0&&(this.N=X);C=S&&this.G===0&&X>1&&X===this.N;WI(this,this.PW,g.ki(r)&&C,Q&&!S,"qoe.slowseek",function(){K.seekTo(0)},"reseek_after_time_jump"); V=n.isOrWillBePlaying()&&!V;w=this.dQ.bj()-X<6&&!w&&this.dQ.zO();WI(this,this.L,r.Sz()&&V&&S&&w,Q&&!S,"qoe.longrebuffer",function(){J.dQ.zc(!1,!0)},"handoff_end_long_buffer_reload"); n=oT(r)&&this.Z===104&&V&&(S||g.E(n,8)&&g.E(n,16));WI(this,this.GA,n,l,"qoe.start15s",v,"gapless_slow_start");this.U=X;this.C.start()}}; fV.prototype.Sh=function(J,K,n){K=this.FK(K);K.wn=n;K.wdup=this.X[J]?"1":"0";this.dQ.Sh(new ix(J,K));this.X[J]=!0}; fV.prototype.FK=function(J){J=Object.assign(this.dQ.FK(!0),J.FK());this.G&&(J.stt=this.G.toFixed(3));this.dQ.getVideoData().isLivePlayback&&(J.ct=this.dQ.getCurrentTime().toFixed(3),J.to=this.dQ.Ti().toFixed(3));delete J.uga;delete J.euri;delete J.referrer;delete J.fexp;delete J.vm;return J}; y0.prototype.reset=function(){this.G=this.Z=this.X=this.startTimestamp=0;this.U=!1}; y0.prototype.test=function(J){if(!this.C||this.Z)return!1;if(!J)return this.reset(),!1;J=(0,g.a)();if(!this.startTimestamp)this.startTimestamp=J,this.X=0;else if(this.X>=this.C)return this.Z=J,!0;this.X+=1;return!1}; y0.prototype.FK=function(){var J={},K=(0,g.a)();this.startTimestamp&&(J.wsd=(K-this.startTimestamp).toFixed());this.Z&&(J.wtd=(K-this.Z).toFixed());this.G&&(J.wssd=(K-this.G).toFixed());return J};g.e(LU3,g.t);g.u=LU3.prototype;g.u.setMediaElement=function(J){(this.mediaElement=J)?(this.mediaElement&&(this.C||this.X||!this.mediaElement.Rh()||this.seekTo(.01,{E8:"seektimeline_setupMediaElement"})),aJ(this)):qc(this)}; g.u.getCurrentTime=function(){if(F3(this.dQ)){if(!isNaN(this.Z))return this.Z}else if(!isNaN(this.Z)&&isFinite(this.Z))return this.Z;return this.mediaElement&&WU3(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.X||0}; g.u.e2=function(){return this.wQ}; g.u.LH=function(){return this.getCurrentTime()-this.Ti()}; g.u.qP=function(){return this.G?this.G.qP():Infinity}; g.u.isAtLiveHead=function(J){if(!this.G)return!1;J===void 0&&(J=this.getCurrentTime());return Uz(this.G,J)}; g.u.r_=function(){return!!this.G&&this.G.r_()}; g.u.seekTo=function(J,K){var n=K===void 0?{}:K;K=n.iV===void 0?!1:n.iV;var X=n.LP===void 0?0:n.LP;var l=n.zW===void 0?!1:n.zW;var x=n.wA===void 0?0:n.wA;var V=n.E8===void 0?"":n.E8;var v=n.seekSource===void 0?void 0:n.seekSource;var Q=n.cQ===void 0?!1:n.cQ;var S=n.X8===void 0?!1:n.X8;n=n.Lx===void 0?!1:n.Lx;Q&&(J+=this.Ti());xi(this.videoData)&&v===29&&(this.wQ=void 0);Q=J=this.XL())||!g.IT(this.videoData),r||(w={st:w,mst:this.XL()},this.G&&this.J("html5_high_res_seek_logging")&&(w.ht=this.G.qP(),w.adft=wY3(this.G)),this.dQ.Zm("seeknotallowed",w)),w=r));if(!w)return this.U&&(this.U=null,ysF(this)),g.TD(this.getCurrentTime());w=.005;S&&this.J("html5_sabr_seek_no_shift_tolerance")&&(w=0);if(Math.abs(J-this.Z)<=w&&this.QG)return this.C;V&&(w=J,(this.lx.Pw()||this.J("html5_log_seek_reasons"))&&this.dQ.Zm("seekreason",{reason:V, tgt:w}));v&&(this.L.Z=v);this.QG&&qc(this);this.C||(this.C=new Nb);J&&!isFinite(J)&&kcq(this,!1);(V=n||Q)||(V=J,V=!(this.videoData.isLivePlayback&&this.videoData.X&&!this.videoData.X.G&&!(this.mediaElement&&this.mediaElement.X7()>0&&Kh(this.mediaElement)>0)||Qu(this.videoData)&&this.yU()===this.XL(!1)?0:isFinite(V)||!Qu(this.videoData)));V||(J=bf(this,J,l));J&&!isFinite(J)&&kcq(this,!1);this.X=J;this.kF=x;this.Z=J;this.N=0;this.G&&(l=this.G,x=J,PVd(l,x,!1),Iur(l,x));l=this.dQ;x=J;V={iV:K,seekSource:v}; l.b_.X=x;n=l.Yc;n.mediaTime=x;n.G=!0;V.iV&&l.Q4(V);V=x>l.videoData.endSeconds&&x>l.videoData.limitedPlaybackDurationInSeconds;l.kY&&V&&isFinite(x)&&z0p(l);xK.start&&z0p(this.dQ);return this.C}; g.u.XL=function(J){if(!this.videoData.isLivePlayback)return this.dQ.videoData.XL();var K;return q2(this.videoData)&&((K=this.mediaElement)==null?0:K.isPaused())&&this.videoData.G?(J=this.getCurrentTime(),dPF(this.vM(J)*1E3)+J):this.J("html5_sabr_parse_live_metadata_playback_boundaries")&&xi(this.videoData)&&this.videoData.G?J?this.videoData.G.QG||0:this.videoData.G.v1||0:Qu(this.videoData)&&this.videoData.GA&&this.videoData.G?this.videoData.G.XL()+this.timestampOffset:this.videoData.X&&this.videoData.X.G? !J&&this.G?this.G.qP():this.dQ.videoData.XL()+this.timestampOffset:this.mediaElement?F6()?dPF(g.U(this.mediaElement.RL()).getTime()):Kh(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.u.yU=function(){if(this.J("html5_sabr_parse_live_metadata_playback_boundaries")&&xi(this.videoData)){var J;return((J=this.videoData.G)==null?void 0:J.xd)||0}J=this.videoData?this.videoData.yU()+this.timestampOffset:this.timestampOffset;if(q2(this.videoData)&&this.videoData.G){var K,n=Number((K=this.videoData.progressBarStartPosition)==null?void 0:K.utcTimeMillis)/1E3;K=this.getCurrentTime();K=this.vM(K)-K;if(!isNaN(n)&&!isNaN(K))return Math.max(J,n-K)}return J}; g.u.Sx=function(){this.C||this.seekTo(this.X,{E8:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.u.Vc=function(){return this.QG&&!isFinite(this.Z)}; g.u.Xq=function(){gvd(this,null);this.L.dispose();g.t.prototype.Xq.call(this)}; g.u.FK=function(){var J={};this.loader&&Object.assign(J,this.loader.FK());this.mediaElement&&Object.assign(J,this.mediaElement.FK());return J}; g.u.Ss=function(J){this.timestampOffset=J}; g.u.getStreamTimeOffset=function(){return Qu(this.videoData)?0:this.videoData.G?this.videoData.G.getStreamTimeOffset():0}; g.u.Ti=function(){return this.timestampOffset}; g.u.vM=function(J){return this.videoData&&this.videoData.G?this.videoData.G.vM(J-this.timestampOffset):NaN}; g.u.Rl=function(){if(!this.mediaElement)return 0;if(iK(this.videoData)){var J=this.mediaElement,K=J.Ya();J=($c(K)&&J.getDuration()?K.end(K.length-1):0)+this.timestampOffset-this.yU();K=this.XL()-this.yU();return Math.max(0,Math.min(1,J/K))}return this.mediaElement.Rl()}; g.u.Lo=function(J){this.W&&(this.W.G=J)}; g.u.ND=function(J,K){this.dQ.Zm("requestUtcSeek",{time:J});xi(this.videoData)&&(this.wQ=J);var n;(n=this.loader)==null||n.ND(J);K&&(this.cW=K)}; g.u.EA=function(J){xi(this.videoData)&&(this.wQ=void 0);if(this.cW)this.dQ.Zm("utcSeekingFallback",{source:"streamTime",timeSeconds:this.cW}),this.dQ.seekTo(this.cW,{E8:"utcSeekingFallback_streamTime"}),this.cW=0;else{var K=this.getCurrentTime();isNaN(K)||(J=this.vM(K)-J,K-=J,this.dQ.Zm("utcSeekingFallback",{source:"estimate",timeSeconds:K}),this.dQ.seekTo(K,{E8:"utcSeekingFallback_estimate"}))}}; g.u.lm=function(){this.cW=0}; g.u.J=function(J){return this.lx&&this.lx.J(J)};g.e(AP,g.t);AP.prototype.start=function(){this.Z.start()}; AP.prototype.stop=function(){this.Z.stop()}; AP.prototype.clear=function(){for(var J=g.z(this.G.values()),K=J.next();!K.done;K=J.next())K.value.clear()}; AP.prototype.sample=function(){for(var J=g.z(this.X),K=J.next();!K.done;K=J.next()){var n=g.z(K.value);K=n.next().value;n=n.next().value;this.G.has(K)||this.G.set(K,new As8(f2F.has(K)));this.G.get(K).update(n())}this.Z.start()}; var f2F=new Set(["networkactivity"]);As8.prototype.update=function(J){this.Z?(this.buffer.add(J-this.G||0),this.G=J):this.buffer.add(J)}; As8.prototype.clear=function(){this.buffer.clear();this.G=0};Js.prototype.ZS=function(){return this.started}; Js.prototype.start=function(){this.started=!0}; Js.prototype.reset=function(){this.finished=this.started=!1};var nBr=!1;g.e(g.XW,g.hi);g.u=g.XW.prototype;g.u.Xq=function(){this.logger.debug("dispose");g.Re(this.V0);vgd(this.DT);this.visibility.unsubscribe("visibilitystatechange",this.DT);rXr(this);ji(this);g.y1.QI(this.Gx);this.Ei();this.Tn=null;g.QD(this.videoData);g.QD(this.ER);g.QD(this.PC);g.QD(this.Nn);g.$T(this.Hvm);this.kY=null;g.hi.prototype.Xq.call(this)}; g.u.PL=function(J,K,n,X,l){if(this.lx.J("html5_log_ad_playback_docid")){var x=this.Vw();if(x.qoe){x=x.qoe;var V=this.lx.GA||"yt";g.SS(x,g.qS(x.provider),"ad_playback",[J,K,n,l,V])}}else this.Vw().PL(J,K,n);this.J("html5_log_media_perf_info")&&this.Zm("adloudness",{ld:X.toFixed(3),cpn:J})}; g.u.fC=function(){var J;return(J=this.loader)==null?void 0:J.fC()}; g.u.yO=function(){var J;return(J=this.loader)==null?void 0:J.yO()}; g.u.mZ=function(){var J;return(J=this.loader)==null?void 0:J.mZ()}; g.u.ZI=function(){var J;return(J=this.loader)==null?void 0:J.ZI()}; g.u.wK=function(){return this.videoData.wK()}; g.u.QJ=function(){return this.J("html5_not_reset_media_source")&&!this.wK()&&!this.videoData.isLivePlayback&&g.ki(this.videoData)&&!this.lx.supportsGaplessShorts()}; g.u.Dy=function(){this.videoData.W&&(this.videoData.D1=this.videoData.D1||this.U8.a4().fC(),this.videoData.Kn=this.videoData.Kn||this.U8.a4().yO());if(eC8(this.videoData)||!aT(this.videoData)){var J=this.videoData.errorDetail;this.xO(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),J,J,this.videoData.PQ||void 0)}this.J("html5_generate_content_po_token")&&this.qf();this.J("html5_enable_d6de4")&&this.OZ()}; g.u.G6=function(){return this.oM}; g.u.qw=function(){!this.PX||this.PX.o4();this.PX=new g.LV(new pV(this.videoData,this.lx,this));this.lx.J("html5_ssap_logging_manager_cleanup")||(this.oM=new di(this.lx,this,this.PX))}; g.u.getVideoData=function(){return this.videoData}; g.u.S=function(){return this.lx}; g.u.v7=function(){return this.WH.v7(this.Tn)}; g.u.Vw=function(J){if(this.lx.J("html5_ssap_logging_manager_cleanup"))J=this.PX;else if(J)a:{for(var K=this.oM,n=g.z(K.G.values()),X=n.next();!X.done;X=n.next())if(X=X.value,X.getVideoData().videoId===J){J=X;break a}J=K.Z}else J=this.oM.Vw();return J}; g.u.H6=function(){return this.visibility}; g.u.Lj=function(){return this.mediaElement&&this.mediaElement.H5()?this.mediaElement.xr():null}; g.u.dE=function(){return this.mediaElement}; g.u.ED=function(){if(this.J("html5_check_video_data_errors_before_playback_start")&&this.videoData.errorCode)return!1;this.S().N&&this.S().houseBrandUserStatus&&this.Zm("hbut",{status:this.S().houseBrandUserStatus});if(this.videoData.TL())return!0;this.xO("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.u.ye=function(J){(J=J===void 0?!1:J)||Dt(this.Vw());this.Qx=J;!this.ED()||this.bM.ZS()?g.Ig(this.lx)&&this.videoData.isLivePlayback&&this.bM.ZS()&&!this.bM.finished&&!this.Qx&&this.If():(this.bM.start(),J=this.Vw(),TH(J),J.qoe&&Szf(J.qoe),this.If())}; g.u.If=function(){if(this.videoData.isLoaded()){var J=this.ER;g.Qg(J.ix.experiments,"html5_player_min_build_cl")>0&&g.Qg(J.ix.experiments,"html5_player_min_build_cl")>758002763&&u0U(J,"oldplayer");HHM(this)}else this.videoData.RH||this.videoData.dV?this.Qx&&g.Ig(this.lx)&&this.videoData.isLivePlayback||(this.videoData.RH?ldM(this.videoData):(J=this.Vw(),J.qoe&&(J=J.qoe,Oz(J,"protected"),J.provider.videoData.C?J.Wg():J.provider.videoData.subscribe("dataloaded",J.Wg,J)),J5M(this.videoData))):!this.videoData.loading&& this.n8&&sCq(this)}; g.u.Ji=function(J){this.tH=J;this.loader&&(lc3(this.loader,new g.Er(J)),this.Zm("sdai",{sdsstm:1}))}; g.u.kI=function(){return null}; g.u.eB=KU(16);g.u.isFullscreen=function(){return this.visibility.isFullscreen()}; g.u.isBackground=function(){return this.visibility.isBackground()}; g.u.dL=function(){var J=this;this.logger.debug("Updating for format change");lV(this).then(function(){return ob(J)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.u.d2=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.ye();this.ED()&&!g.E(this.playerState,128)&&(this.Ut.ZS()||(this.Ut.start(),this.videoData.OY?this.G4(Vr(this.playerState,4)):this.G4(Vr(Vr(this.playerState,8),1))),C8M(this))}; g.u.er=function(){return this.bM.finished}; g.u.sendAbandonmentPing=function(){g.E(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.Uw(!0),rXr(this),g.y1.QI(this.Gx))}; g.u.LK=function(J,K){J=J===void 0?!0:J;(K===void 0||K)&&this.mediaElement&&this.mediaElement.pause();this.G4(J?new g.lH(14):new g.lH)}; g.u.Ot=function(){this.Vw().j2()}; g.u.xO=function(J,K,n,X,l,x){this.logger.debug(function(){return"set player error: ec="+J+", detail="+l}); var V,v;g.bG(n_F,n)?V=n:n?v=n:V="GENERIC_WITHOUT_LINK";X=(X||"")+(";a6s."+h3());if(J==="auth"||J==="drm.auth"||J==="heartbeat.stop")n&&(X+=";r."+n.replaceAll(" ","_")),x&&(X+="sr."+x.replaceAll(" ","_"));K={errorCode:J,errorDetail:l,errorMessage:v||g.G4[V]||"",Tu:V,PQ:x||"",Y8:X,dX:K,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=J;xv(this,"dataloaderror");this.G4(jR(this.playerState,128,K));g.y1.QI(this.Gx);ji(this);this.s3()}; g.u.v3=function(J){this.eY=this.eY.filter(function(K){return J!==K}); this.logger.debug(function(){return"set preroll ready for "+J}); this.Ut.ZS()&&C8M(this)}; g.u.RE=function(){var J;(J=!!this.eY.length)||(J=this.o$.G.array[0],J=!!J&&J.start<=-0x8000000000000);return J}; g.u.r_=function(){return this.b_.r_()}; g.u.isPlaying=function(){return this.playerState.isPlaying()}; g.u.GZ=function(){return this.playerState.GZ()&&this.videoData.OY}; g.u.getPlayerState=function(){return this.playerState}; g.u.mY=function(J){var K;(K=this.loader)==null||K.mY(J)}; g.u.Y9=function(J){var K;(K=this.loader)==null||K.Y9(J)}; g.u.getPlayerType=function(){return this.playerType}; g.u.getPreferredQuality=function(){if(this.Tn){var J=this.Tn;J=J.videoData.ZN.compose(J.videoData.S8);J=rU(J)}else J="auto";return J}; g.u.DG=KU(22);g.u.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.u.setMediaElement=function(J){this.logger.debug("set media element");if(this.mediaElement&&J.xr()===this.mediaElement.xr()&&(J.isView()||this.mediaElement.isView())){if(J.isView()||!this.mediaElement.isView())this.WP(),this.mediaElement=J,this.mediaElement.dQ=this,k4H(this),this.b_.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.Ei();if(!this.playerState.isError()){var K=hx(this.playerState,512);g.E(K,8)&&!g.E(K,2)&&(K=Vr(K,1));J.isView()&&(K=hx(K,64));this.G4(K)}this.mediaElement= J;this.mediaElement.dQ=this;!g.Ig(this.lx)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);k4H(this);this.b_.setMediaElement(this.mediaElement);this.J("html5_prewarm_media_source")&&!this.ER.zg()&&UxV(this.mediaElement)}}; g.u.Ei=function(J,K,n){J=J===void 0?!1:J;K=K===void 0?!1:K;n=n===void 0?!1:n;this.logger.debug("remove media element");if(this.mediaElement){var X=this.getCurrentTime();X>0&&(this.b_.X=X);this.b_.setMediaElement(null);!J&&this.QJ()?pZd(this):this.yP(n);this.loader&&(yG(this.loader),QN(this,K));this.Ua.stop();if(this.mediaElement&&(!this.Ut.ZS()&&!this.SB()||this.playerState.isError()||g.E(this.playerState,2)||this.G4(Vr(this.playerState,512)),this.mediaElement)){this.WP();if(J||!this.mediaElement.isView())this.rN.Z_("mesv_s"), this.mediaElement.stopVideo(),$v(this);this.mediaElement=this.mediaElement.dQ=null}}}; g.u.playVideo=function(J,K){J=J===void 0?!1:J;K=K===void 0?!1:K;var n=this,X,l,x,V,v,Q;return g.G(function(S){if(S.Z==1){n.logger.debug("start play video");var r=window.google_image_requests;r&&r.length>10&&(window.google_image_requests=r.slice(-10));if(g.E(n.playerState,128))return S.return();if(n.ER.A4())return n.publish("signatureexpired"),S.return();n.mediaElement&&Dt(n.Vw());n.d2();(g.E(n.playerState,64)||J)&&n.G4(Vr(n.playerState,8));return n.Ut.finished&&n.mediaElement?n.Tn||!n.w7?S.EM(2): g.d(S,n.w7,3):S.return()}if(S.Z!=2&&g.E(n.playerState,128))return S.return();if(!n.videoData.X)return n.videoData.isLivePlayback&&!g.xn(n.lx.C,!0)?(X="html5.unsupportedlive",l=2):(X=n.videoData.wK()?"fmt.unplayable":"fmt.noneavailable",l=1),g.gG(Error("selectableFormats")),n.xO(X,l,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),S.return();if(n.Do()&&n.videoData.X.G)return n.logger.debug("rebuild playbackData for airplay"),S.return(lV(n));if(F3(n))r=n.b_,vD(r.videoData)&&!r.isAtLiveHead(r.getCurrentTime())&& r.r_()&&r.dQ.seekTo(Infinity,{E8:"seektimeline_peggedToLive",seekSource:34});else if(vD(n.videoData)&&(x=n.getCurrentTime()V;if(!v||!V){x&&v&&(X=Math.max(X,x));var Q;x=B_r(K,(Q=l.G)==null?void 0:Q.videoInfos);Q=K.dQ.getPlaybackRate();Q>1&&x&&(Q=Ax8(K.lx.C,l.G.videoInfos,Q),J.G!==0&& Q=480;if(K.J("html5_exponential_memory_for_sticky")){S=K.lx.Nk;r=1;var C=C===void 0?!1:C;SAe(S,"sticky-lifetime");S.values["sticky-lifetime"]&&S.gL["sticky-lifetime"]||(S.values["sticky-lifetime"]=0,S.gL["sticky-lifetime"]=0);C&&Pp(S,"sticky-lifetime")>.0625&&(r=S.gL["sticky-lifetime"]*2); S.values["sticky-lifetime"]+=1*Math.pow(2,S.G/r);S.gL["sticky-lifetime"]=r;S.U.start()}if(K.J("html5_perf_cap_override_sticky")){C=K.X;S=K.J("html5_perserve_av1_perf_cap");S=S===void 0?!1:S;if(S===void 0?0:S){r=F1();J=g.z(Object.keys(r));for(K=J.next();!K.done;K=J.next())K=K.value,K.indexOf("1")!==0&&delete r[K];g.kF("yt-player-performance-cap",r,2592E3)}else g.cB("yt-player-performance-cap");bQp(S);if(S){S=g.z(YV.keys());for(r=S.next();!r.done;r=S.next())r=r.value,r.startsWith("1")||YV.delete(r); S=g.z(jS.values());for(r=S.next();!r.done;r=S.next())r=r.value,r.startsWith("1")||jS.delete(r);S=g.z(C.keys());for(r=S.next();!r.done;r=S.next())r=r.value,r.startsWith("1")||C.delete(r)}else YV.clear(),jS.clear(),C.clear()}}}this.loader&&(C=this.loader,n=n||"",C.policy.G?Fp(C.U.G,n):Fp(C.G.C,n));this.GO()}; g.u.getUserPlaybackQualityPreference=function(){return this.videoData.X&&!this.videoData.X.G?rU(this.videoData.ZN):Sd[WG()]}; g.u.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.u.setUserAudio51Preference=function(J,K){this.getUserAudio51Preference()!==J&&(this.Zm("toggle51",{pref:J}),g.kF("yt-player-audio51",J,K?31536E3:2592E3),this.dL())}; g.u.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.u.setProximaLatencyPreference=function(J){var K=this.getProximaLatencyPreference();this.Zm("proxima",{pref:J});g.kF("yt-player-proxima-pref",J,31536E3);K!==J&&(J=this.b_,J.Fq=!0,J.dQ.seekTo(Infinity,{E8:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.u.getProximaLatencyPreference=function(){var J;return(J=ad())!=null?J:0}; g.u.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.u.qf=function(){this.videoData.videoId?this.U8.qf(this.videoData):this.Zm("povid",{})}; g.u.OZ=function(){this.videoData.videoId?this.U8.OZ(this.videoData):this.Zm("piavid",{})}; g.u.GO=function(){if(!this.o4()&&!g.E(this.playerState,128)&&this.videoData.X){if(this.videoData.X.G)nW(this);else{var J=vY(this),K=this.videoData;a:{var n=this.videoData.PM;if(J.G){for(var X=g.z(n),l=X.next();!l.done;l=X.next()){l=l.value;var x=l.getInfo(),V=g.G2[x.video.quality];if((!J.X||x.video.quality!=="auto")&&V<=J.G){n=l;break a}}n=n[n.length-1]}else n=n[0]}K.gQ=n;wZr(this,J.reason,YUV(this,this.videoData.gQ))}if(this.J("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.b_.Aj= !1,this.playVideo()}}; g.u.W8=function(J,K){if(this.o4()||g.E(this.playerState,128))return!1;var n,X=!((n=this.videoData.X)==null||!n.G);n=X&&K?this.getCurrentTime()-this.Ti():NaN;if(this.lx.experiments.sM("html5_record_audio_format_intent")){var l=this.Vw();if(l.qoe){l=l.qoe;var x=[J.Hw.id,isNaN(n)?"m":"t"];g.SS(l,g.qS(l.provider),"afi",x)}}if(X)return K&&(X=Yce(this.b_),this.Zm("aswh",{id:J.id,xtags:J.xtags,bh:X.toFixed(3)})),this.loader.setAudioTrack(J,n,K),!0;if(IbU(this)){a:{K=this.mediaElement.audioTracks();for(X= 0;X=0?J:this.getCurrentTime()}; g.u.vM=function(){var J;return((J=this.videoData.G)==null?0:J.vM)?this.videoData.G.vM(this.getCurrentTime()-this.Ti()):this.mediaElement&&(J=this.mediaElement.RL())&&(J=J.getTime(),!isNaN(J))?J/1E3+this.getCurrentTime():NaN}; g.u.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.Ti():this.XL()?this.XL():0}; g.u.xR=function(){var J=new ovU;if(this.loader){var K=this.lx.schedule,n=this.lx.Pw();n=n===void 0?!1:n;J.F1=K.Aj;J.h6=K.kF;J.bandwidthEstimate=zx(K);if(n){n=(K.L.mW()*1E3).toFixed();var X=(K.MQ.mW()*1E3).toFixed(),l=Rm(K).toFixed(2),x=((K.W.mW()||0)*1E9).toFixed(2),V=K.X.mW().toFixed(0),v=K.PW.mW().toFixed(0),Q=K.K.percentile(.5).toFixed(2),S=K.K.percentile(.92).toFixed(2),r=K.K.percentile(.96).toFixed(2),C=K.K.percentile(.98).toFixed(2);K.G?K.G.reset():K.G=new vp;K.G.add(K.cW);K.G.add(K.interruptions.length); for(var O=0,H=K.interruptions.length-1;H>=0;H--){var R=K.interruptions[H];K.G.add(R-O);O=R}O=0;for(H=K.U.length-1;H>=0;H--){R=K.U[H];var w=R.stamp/36E5;K.G.add(w-O);O=w;K.G.add(R.net/1E3);K.G.add(R.max)}K=K.G.Q2();J.G={ttr:n,ttm:X,d:l,st:x,bw:V,abw:v,v50:Q,v92:S,v96:r,v98:C,"int":K}}X43(this.loader,J)}else this.mediaElement&&(J.hk=nh(this.mediaElement));J.F1=this.F1;J.h6=this.h6;J.X=this.isAtLiveHead()&&this.isPlaying()?$8F(this):NaN;return J}; g.u.l9=function(J,K){this.h6+=J;this.F1+=K}; g.u.Rl=function(){return this.mediaElement?g.IT(this.videoData)?1:iK(this.videoData)?this.isAtLiveHead()||this.r_()?1:this.b_.Rl():this.mediaElement.Rl():0}; g.u.KC=function(){var J=this.HZ,K=Nc(J,"bandwidth"),n=Nc(J,"bufferhealth"),X=Nc(J,"livelatency"),l=Nc(J,"networkactivity"),x=Mc(J,"bandwidth"),V=Mc(J,"bufferhealth"),v=Mc(J,"livelatency");J=Mc(J,"networkactivity");var Q=this.MJ(),S=Q.droppedVideoFrames;Q=Q.totalVideoFrames;var r=this.getCurrentTime();if(this.I9){var C="IT/"+(this.I9.G.getInfo()+"/"+rU(this.kB()));C+="/"+this.I9.getInfo()}else C="";var O=this.isGapless(),H=this.XI(),R=this.v2(),w=g.hs(this),P=this.getPlayerState(),B=this.getPlaylistSequenceForTime(this.getCurrentTime()); a:{var p=0;var k="";if(this.tH){if(this.tH.E6){k="D,";break a}p=this.tH.jB;k=this.tH.cB.substring(0,4)}p>0?(p="AD"+p+", ",k&&(p+=k+", "),k=p):k=""}return{SS:x,hK:V,currentTime:r,B2:C,droppedVideoFrames:S,isGapless:O,XI:H,Vj:R,gU:K,Iy:n,LM:X,Sm:l,zE:v,HE:J,Cc:w,playerState:P,yW:B,Mb:k,totalVideoFrames:Q}}; g.u.FK=function(J){var K={};if(J===void 0?0:J){Object.assign(K,this.Vw().FK());this.mediaElement&&(Object.assign(K,this.mediaElement.FK()),J=this.MJ(),K.dvf=J.droppedVideoFrames,K.tvf=J.totalVideoFrames);this.loader&&Object.assign(K,this.loader.FK());this.I9&&(K.drm=JSON.stringify(this.I9.FK()));K.state=this.playerState.state.toString(16);g.E(this.playerState,128)&&(K.debug_error=JSON.stringify(this.playerState.V2));this.RE()&&(K.prerolls=this.eY.join(","));this.videoData.KU&&(K.ismb=this.videoData.KU); this.videoData.latencyClass!=="UNKNOWN"&&(K.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(K.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)K.is_mosaic=1;this.videoData.cotn&&(K.is_offline=1,K.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(K.playerResponseCpn=this.videoData.playerResponseCpn);this.U8.isOrchestrationLeader()&&(K.leader=1);this.videoData.isLivePlayback&& (this.videoData.G&&L4(this.videoData.G)&&(K.segduration=L4(this.videoData.G)),J=this.b_,K.lat=J.W?OWU(J.W.U):0,K.liveutcstart=this.videoData.liveUtcStartSeconds);K.relative_loudness=this.videoData.Nk.toFixed(3);if(J=g.hs(this))K.optimal_format=J.video.qualityLabel;K.user_qual=WG();K.release_version=h[69]}K.debug_videoId=this.videoData.videoId;return K}; g.u.addCueRange=function(J){this.Ay([J])}; g.u.removeCueRange=function(J){this.o$.FN([J])}; g.u.BV=function(){this.o$.sync()}; g.u.eF=function(J,K){return this.o$.eF(J,K)}; g.u.Ay=function(J,K){this.o$.yA(J,K)}; g.u.us=function(J){this.o$.FN(J)}; g.u.Hh=function(){return this.o$.Hh()||[]}; g.u.Ma=function(){return this.kR}; g.u.Do=function(){return this.visibility.Do()}; g.u.iB=function(){this.mediaElement&&this.mediaElement.iB()}; g.u.NEQ=function(){xv(this)}; g.u.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.u.WP=function(){g.L0(this.Gv)}; g.u.H94=function(){this.MH();this.publish("onLoadProgress",this.Rl())}; g.u.BU=function(J){var K=J.target.Gy();if(this.mediaElement&&this.mediaElement.Gy()&&this.mediaElement.Gy()===K){WV3(this,J.type);switch(J.type){case "error":var n=Xj(this.mediaElement)||"",X=this.mediaElement.Zo();if(n==="capability.changed"){this.J("html5_restart_on_capability_change")?(this.Zm("capchg",{msg:X}),this.zc(!0)):lV(this);return}if(this.mediaElement.hasError()&&CI3(this.ER,n,{msg:X}))return;if(this.isBackground()&&this.mediaElement.TR()===4){this.s3();VN(this,"unplayable");return}break; case "durationchange":n=this.mediaElement.getDuration();isFinite(n)&&(!this.tj||n>0)&&n!==1&&this.yL(n);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());Qbd(this.o$);this.Vw().onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":FV8(this);this.publish("onLoadedMetadata");cXr(this);n=this.vM();this.videoData.uW&&(this.videoData.uW=n);break;case "loadstart":cXr(this);break;case "progress":case "suspend":this.ZB.Hk();break;case "playing":this.rN.Z_("plev"); this.Y5&&!F3(this)&&(this.Y5=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{E8:"videoplayer_onPlaying"})));break;case "timeupdate":n=this.mediaElement&&!this.mediaElement.getCurrentTime();X=this.mediaElement&&this.mediaElement.X7()===0;if(n&&(!this.Fv||X))return;this.Fv=this.Fv||!!this.mediaElement.getCurrentTime();gB3(this);this.MH();if(!this.mediaElement||this.mediaElement.Gy()!==K)return;this.publish("onVideoProgress",this.getCurrentTime());break; case "waiting":if(this.mediaElement.Vt().length>0&&this.mediaElement.Ya().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.loader)return;this.J("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.X7()>2||!this.mediaElement.isSeeking()&&hF(this.mediaElement.Ya(),this.mediaElement.getCurrentTime()))&&(n=this.mediaElement.FK(),n.bh=nh(this.mediaElement).toFixed(3),this.Zm("uwe",n));break;case "resize":FV8(this);this.videoData.Z&& this.videoData.Z.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.sj&&g.E(this.playerState,8)&&!g.E(this.playerState,1024)&&this.getCurrentTime()===0&&g.ut){VN(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.Gy()===K){qc8(this.b_,J);this.publish("videoelementevent",J);K=this.playerState;X=this.Yc;var l=this.mediaElement;n=this.videoData.clientPlaybackNonce;if(!g.E(K,128)){var x=K.state;l=l?l:J.target;var V= l.getCurrentTime();if(!g.E(K,64)||J.type!=="ended"&&J.type!=="pause"){var v=l.getDuration();v=l.isEnded()||V>1&&Math.abs(V-v)<1.1;var Q=J.type==="pause"&&l.isEnded();V=J.type==="ended"||J.type==="waiting"||J.type==="timeupdate"&&!g.E(K,4)&&!gi(X,V);if(Q||v&&V)l.Pf()>0&&l.Gy()&&(x=14);else switch(J.type){case "error":Xj(l)&&(x|=128);break;case "pause":g.E(K,256)?(x^=256)||(x=64):g.E(K,32)||g.E(K,2)||g.E(K,4)||(x=4,g.E(K,1)&&g.E(K,8)&&(x|=1));break;case "playing":V=x;x=(x|8)&-1093;V&4?(x|=1,xI(X,l, !0)):gi(X,l.getCurrentTime())&&(x&=-2);g.E(K,1)&&xI(X,l)&&(x|=1);break;case "seeking":x|=16;g.E(K,8)&&(x|=1);x&=-3;break;case "seeked":x&=-17;xI(X,l,!0);break;case "waiting":g.E(K,2)||(x|=1);xI(X,l);break;case "timeupdate":V=g.E(K,16),v=g.E(K,4),(g.E(K,8)||V)&&!v&&gi(X,l.getCurrentTime())&&(x=8),xI(X,l)&&(x|=1)}}X=x;x=null;X&128&&(x=J.target,l=Xj(x),V=1,l?(l==="capability.changed"&&(V=2),v="GENERIC_WITHOUT_LINK",Q=x.FK(),Q.mediaElem="1",/AUDIO_RENDERER/.test(x.Zo())&&(v="HTML5_AUDIO_RENDERER_ERROR"), x={errorCode:l,errorMessage:g.G4[v]||"",Tu:v,Y8:Ih(Q),dX:V,cpn:K.V2?K.V2.cpn:""}):x=null,x&&(x.cpn=n));K=jR(K,X,x)}!g.E(this.playerState,1)&&g.E(K,1)&&fbd(this,"evt"+J.type);this.G4(K)}}}; g.u.t_q=function(J){J=J.G.availability==="available";J!==this.kR&&(this.kR=J,this.publish("airplayavailabilitychange"))}; g.u.e54=function(){var J=(0,g.a)(),K=this.mediaElement.Do();this.Zm("airplay",{ia:K});!K&&!isNaN(this.nX)&&J-this.nX<2E3||(this.nX=J,K!==this.Do()&&(J=this.visibility,J.G!==K&&(J.G=K,J.DT()),this.Zm("airplay",{rbld:K}),this.dL()),this.publish("airplayactivechange"))}; g.u.SC=function(J){if(this.loader){var K=this.loader,n=K.X,X=K.getCurrentTime(),l=Date.now()-n.K;n.K=NaN;n.Zm("sdai",{adfetchdone:J,d:l});J&&!isNaN(n.W)&&n.Z!==3&&Y5(n.loader,X,n.W,n.N);n.policy.X?n.C=NaN:n.U=NaN;c6(n,4,n.Z===3?"adfps":"adf");yG(K)}}; g.u.r7=function(){g.Re(this.V0);this.Ua.stop();this.videoData.PW=!0;this.lx.Jv=!0;this.lx.iR=0;var J=this.ER;if(J.videoData.Z){var K=J.ix.C,n=J.videoData.Z.YF;K.U.has(n)&&(K.U.delete(n),K.Z=!0)}J.G.stop();this.Ku();g.E(this.playerState,8)&&this.G4(hx(this.playerState,65));this.Qx=!1;bVp(this.Vw());g.M0(this.PC);this.publish("playbackstarted");(J=g.bF("yt.scheduler.instance.clearPriorityThreshold"))?J():oB(0)}; g.u.Ku=function(){var J=this.U8.Dr(),K={},n={};!ZS("pbs",this.rN.timerName)&&mu.measure&&mu.getEntriesByName&&(mu.getEntriesByName("mark_nr")[0]?XCk("mark_nr"):XCk());J.videoId&&(K.videoId=J.videoId);J.clientPlaybackNonce&&!this.J("web_player_early_cpn")&&(K.clientPlaybackNonce=J.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(n.isPausedOnLoad=!0);n.itag=J.Z?Number(J.Z.itag):-1;J.vO&&(n.preloadType=String(this.lq?2:1));K.liveStreamMode=pHu[uK(J)];K.playerInfo=n;this.rN.infoGel(K); if(this.loader){J=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(J.X&&(K=window.performance.getEntriesByName(J.X),K.length&&(K=K[0],J.tick("vri",K.fetchStart),J.tick("vdns",K.domainLookupEnd),J.tick("vreq",K.requestStart),J.tick("vrc",K.responseEnd))),J.Z&&(K=window.performance.getEntriesByName(J.Z),K.length&&(K=K[0],J.tick("ari",K.fetchStart),J.tick("adns",K.domainLookupEnd),J.tick("areq",K.requestStart),J.tick("arc",K.responseEnd))));J=J.ticks;for(var X in J)J.hasOwnProperty(X)&& this.rN.tick(X,J[X])}}; g.u.MH=function(J){var K=this;J=J===void 0?!1:J;if(this.mediaElement&&this.videoData){Gcr(this.b_,this.isPlaying());var n=this.getCurrentTime();!this.loader||g.E(this.playerState,4)&&g.IT(this.videoData)||g.E(this.playerState,32)&&xi(this.videoData)||hjU(this.loader,n);n>5&&(this.b_.X=n);var X=g.n6();X?g.y1.QI(this.Gx):g.Ha(this.Gx);var l=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!l||q2(this.videoData))&&!g.E(this.playerState,128)){var x=function(){if(K.mediaElement&&!g.E(K.playerState, 128)){K.lx.Pw()&&WV3(K,"pfx");var V=K.getCurrentTime();K.J("html5_buffer_underrun_transition_fix")&&(V-=K.Ti());var v=nh(K.mediaElement),Q=g.E(K.playerState,8),S=gi(K.Yc,V),r=aBk(K.Yc,V,(0,g.a)(),v);Q&&S?K.G4(hx(K.playerState,1)):Q&&r?(Q=K.getDuration(),S=vD(K.videoData),Q&&Math.abs(Q-V)<1.1?(K.Zm("setended",{ct:V,bh:v,dur:Q,live:S}),K.mediaElement.Vv()?(K.logger.debug("seek to 0 because of looping"),K.seekTo(0,{E8:"videoplayer_loop",seekSource:37})):K.LK()):(K.playerState.isBuffering()||fbd(K,"progress_fix"), K.G4(Vr(K.playerState,1)))):(Q&&!S&&!r&&V>0&&(Q=(Date.now()-K.Sr)/1E3,S=K.getDuration(),V>S-1&&K.Zm("misspg",{t:V.toFixed(2),d:S.toFixed(2),r:Q.toFixed(2),bh:v.toFixed(2)})),K.playerState.isPaused()&&K.playerState.isBuffering()&&nh(K.mediaElement)>5&&K.G4(hx(K.playerState,1)));K.MH()}}; this.mediaElement.Vt().length===0?this.Gx=X?g.y1.VZ(x,100):g.Ca(x,100):this.Gx=X?g.y1.VZ(x,500):g.Ca(x,500)}this.videoData.wN=n;!J&&this.isPlaying()&&G4k(this);Yr3(this.WH,this.Tn,this.dE(),this.isBackground())&&nW(this);this.publish("progresssync",J);l&&q2(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}}; g.u.JZ=function(){this.xO("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.u.v2=function(){return this.Vw().v2()}; g.u.dP=function(){return this.loader?this.loader.dP():zx(this.lx.schedule,!0)}; g.u.G4=function(J){if(!g.Qr(this.playerState,J)){this.logger.debug(function(){return"Setting state "+J.toString()}); var K=new g.rf(J,this.playerState);this.playerState=J;abk(this);var n=!this.wi.length;this.wi.push(K);var X=this.mediaElement&&this.mediaElement.isSeeking();X=K.oldState.state===8&&!X;g.C1(K,1)&&X&&g.E(this.playerState,8)&&!g.E(this.playerState,64)&&this.loader&&(L9F(this.loader),this.mediaElement&&nh(this.mediaElement)>=5&&gge(this.WH,this.Tn)&&nW(this));(X=g.Qg(this.lx.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.E(J,1)&&(g.E(J,8)||g.E(J,16))?this.xq.start(X):this.xq.stop();(sC(K, 8)<0||g.C1(K,1024))&&this.Ua.stop();!g.C1(K,8)||this.videoData.PW||g.E(K.state,1024)||this.Ua.start();g.E(K.state,8)&&sC(K,16)<0&&!g.E(K.state,32)&&!g.E(K.state,2)&&this.playVideo();g.E(K.state,2)&&iK(this.videoData)&&(this.yL(this.getCurrentTime()),this.MH(!0));g.C1(K,2)&&(this.Uw(!0),this.lx.Pw()&&this.J("html5_sabr_parse_live_metadata_playback_boundaries")&&xi(this.videoData)&&this.videoData.G&&(X={minst:""+this.videoData.G.xd,cminst:""+(this.videoData.G.yU()+this.Ti()),maxst:""+this.videoData.G.v1, hts:""+this.videoData.G.QG,cmaxst:""+(this.videoData.G.XL()+this.Ti())},this.Zm("sabrSeekableBoundaries",X)));g.C1(K,128)&&this.s3();this.videoData.G&&this.videoData.isLivePlayback&&!this.Fk&&(sC(K,8)<0?mnq(this.videoData.G):g.C1(K,8)&&this.videoData.G.resume());cs3(this.b_,K);MSf(this.Vw(),K);if(n&&!this.o4())try{for(var l=g.z(this.wi),x=l.next();!x.done;x=l.next()){var V=x.value;$Ge(this.o$,V);this.publish("statechange",V)}}finally{this.wi.length=0}}}; g.u.f3=function(){this.rN.tick("qoes")}; g.u.Sx=function(){this.b_.Sx()}; g.u.pw=function(J,K,n,X){a:{var l=this.ER;X=X===void 0?"LICENSE":X;n=n.substring(0,256);var x=Bf(K);J==="drm.keyerror"&&this.I9&&this.I9.Z.keys.length>1&&l.U<96&&(J="drm.sessionlimitexhausted",x=!1);var V=l.ix.experiments.sM("html5_retry_on_drm_unavailable"),v=l.ix.experiments.sM("html5_retry_on_drm_key_error"),Q=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(V&&J==="drm.unavailable"||v&&J==="drm.keyerror"&&!n.match(Q))l.Sh("qoe.restart",{retryOnDrmError:1,e:J,detail:n}),l.dQ.zc(!0);else{if(x)if(l.videoData.Z&& l.videoData.Z.video.isHdr())zQk(l,J);else{if(l.dQ.xO(J,K,X,n),Srk(l,{detail:n}))break a}else l.Sh(J,{detail:n});J==="drm.sessionlimitexhausted"&&(l.Zm("retrydrm",{sessionLimitExhausted:1}),l.U++,ZHM(l.dQ))}}}; g.u.PRA=function(){var J=this,K=g.Qg(this.lx.experiments,"html5_license_constraint_delay"),n=n0();K&&n?(K=new g.AT(function(){J.GO();xv(J)},K),g.Z(this,K),K.start()):(this.GO(),xv(this))}; g.u.Ue=function(J){this.publish("heartbeatparams",J)}; g.u.NI=function(J){this.Zm("keystatuses",G5q(J));var K="auto",n=!1;this.videoData.Z&&(K=this.videoData.Z.video.quality,n=this.videoData.Z.video.isHdr());a:{switch(K){case "highres":case "hd2880":K="UHD2";break;case "hd2160":case "hd1440":K="UHD1";break;case "hd1080":case "hd720":K="HD";break;case "large":case "medium":case "small":case "light":case "tiny":K="SD";break;default:K="";break a}n&&(K+="HDR")}K=JP(J)?KV(J,K):J.U.includes(K);this.J("html5_authorized_drm_track_types")||(this.videoData.a$= y8d(J));if(this.J("html5_enable_vp9_fairplay")){if(n)if(J.W){var X;if((X=this.I9)==null?0:FI(X.G))if((n=this.I9)==null)n=0;else{for(var l=X=void 0,x=g.z(n.Z.values()),V=x.next();!V.done;V=x.next())V=V.value,X||(X=tTd(V,"SD")),l||(l=tTd(V,"AUDIO"));n.uj({sd:X,audio:l});n=X==="output-restricted"||l==="output-restricted"}else n=!K;if(n){this.Zm("drm",{dshdr:1});zQk(this.ER);return}}else{this.videoData.Ms||(this.videoData.Ms=!0,this.Zm("drm",{dphdr:1}),this.zc(!0));return}var v;if((v=this.I9)==null?0: FI(v.G))return}else if(v=J.W&&K,n&&!v){zQk(this.ER);return}K||KV(J,"AUDIO")&&KV(J,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"),J=G5q(J),this.fz?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.J("html5_report_fatal_drm_restricted_error_killswitch")||this.xO("drm.keyerror",2,void 0,"info."+J)):(this.fz=!0,this.Sh(new ix("qoe.restart",Object.assign({},{retrydrm:1},J))),nW(this),ZHM(this)))}; g.u.orQ=function(){if(!this.videoData.PW&&this.mediaElement&&!this.isBackground()){var J="0";this.mediaElement.X7()>0&&nh(this.mediaElement)>=5&&this.videoData.X&&this.videoData.X.G&&(this.G4(Vr(this.playerState,1)),fbd(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),J="1");abk(this);var K=this.videoData.X;J={restartmsg:J,mfmt:!nS(this.videoData),mdrm:!(!(K&&K.videoInfos&&K.videoInfos.length&&K.videoInfos[0].rE)||this.I9),mfmtinfo:!this.videoData.Z,prerolls:this.RE()?this.eY.join(","): "0"};if(this.I9){K=this.I9;if(K.Z.size<=0){var n="ns;";K.K||(n+="nr;");K=n+="ql."+K.X.length}else K=G5q(K.Z.values().next().value),K=Ih(K);J.drmp=K}var X;Object.assign(J,((X=this.loader)==null?void 0:X.FK())||{});var l;Object.assign(J,((l=this.mediaElement)==null?void 0:l.FK())||{});this.Vw().Sh("qoe.start15s",Ih(J));this.publish("loadsofttimeout")}}; g.u.yL=function(J){this.videoData.lengthSeconds!==J&&(this.videoData.lengthSeconds=J,xv(this))}; g.u.Uw=function(J,K){var n=this;J=J===void 0?!1:J;if(!this.ib)if(ZS("att_s","player_att")||Ws("att_s",void 0,"player_att"),this.J("use_rta_for_player"))(function(){var l,x,V,v;return g.G(function(Q){switch(Q.Z){case 1:if(!(l=J)){Q.EM(2);break}return g.d(Q,g.DD3(),3);case 3:l=!Q.G;case 2:if(l)return Q.return();g.e8(Q,4);x=KUr(n.Vw());if(!x)throw Error();V={};return g.d(Q,g.TVq((V.cpn=n.videoData.clientPlaybackNonce,V.encryptedVideoId=n.videoData.videoId||"",V),3E4),6);case 6:v=Q.G;if(n.ib)throw Error(); if(!v.challenge)throw g.gG(Error("Not sending attestation ping; no attestation challenge string")),Error();n.ib=!0;var S=[v.challenge];v.error?S.push("r1c="+v.error):v.webResponse&&S.push("r1a="+v.webResponse);var r;((r=v.adblockReporting)==null?void 0:r.reportingStatus)!==void 0&&S.push("r6a="+v.adblockReporting.reportingStatus);var C;((C=v.adblockReporting)==null?void 0:C.broadSpectrumDetectionResult)!==void 0&&S.push("r6b="+v.adblockReporting.broadSpectrumDetectionResult);x(S.join("&"));Ws("att_f", void 0,"player_att");g.Ir(Q,0);break;case 4:g.mk(Q),Ws("att_e",void 0,"player_att"),g.uF(Q)}})})().then(function(){K==null||K()}); else{var X=new g.y63(this.videoData);if("c1a"in X.u8&&!g.U3.isInitialized()){Ws("att_wb",void 0,"player_att");this.BC===2&&Math.random()<.01&&g.gG(Error("Botguard not available after 2 attempts"));if(J)return;if(this.BC<5){g.M0(this.Nn);this.BC++;return}}(X=g.ZQU(X))?(Ws("att_f",void 0,"player_att"),JsV(this.Vw(),X),this.ib=!0):Ws("att_e",void 0,"player_att")}}; g.u.bj=function(J){J=J===void 0?!1:J;return vD(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.r_()||g.IT(this.videoData))?this.getCurrentTime():this.XL(J)}; g.u.TO=function(){return this.yU()}; g.u.XL=function(J){return this.b_.XL(J===void 0?!1:J)}; g.u.yU=function(){return this.b_.yU()}; g.u.Ti=function(){return this.b_?this.b_.Ti():0}; g.u.getStreamTimeOffset=function(){return this.b_?this.b_.getStreamTimeOffset():0}; g.u.q$=function(){var J=0;this.lx.J("web_player_ss_media_time_offset")&&(J=this.getStreamTimeOffset()===0?this.Ti():this.getStreamTimeOffset());return J}; g.u.setPlaybackRate=function(J){var K;this.playbackRate!==J&&B_r(this.WH,(K=this.videoData.X)==null?void 0:K.videoInfos)&&(this.playbackRate=J,nW(this));this.playbackRate=J;this.mediaElement&&this.mediaElement.setPlaybackRate(J)}; g.u.getPlaybackRate=function(){return this.playbackRate}; g.u.getPlaybackQuality=function(){var J="unknown";if(this.videoData.Z&&(J=this.videoData.Z.video.quality,J==="auto"&&this.mediaElement)){var K=this.Lj();K&&K.videoHeight>0&&(J=Y6(K.videoWidth,K.videoHeight))}return J}; g.u.isHdr=function(){return!!(this.videoData.Z&&this.videoData.Z.video&&this.videoData.Z.video.isHdr())}; g.u.sendVideoStatsEngageEvent=function(J,K){var n=this.Vw();n.G?(n=PI(n.G,"engage"),n.Aj=J,n.send(K)):K&&K()}; g.u.nh=function(J){return this.Vw().nh(J)}; g.u.isAtLiveHead=function(J,K){K=K===void 0?!1:K;return vD(this.videoData)&&(this.YI||K)?this.b_.isAtLiveHead(J):!1}; g.u.UR=function(){var J=this.XL(),K=this.getCurrentTime(),n;(n=!vD(this.videoData))||(n=this.b_,n=!(n.G&&n.G.X));return n||this.r_()||isNaN(J)||isNaN(K)?0:Math.max(0,J-K)}; g.u.xD=function(J){(this.YI=J)||this.Ua.stop();this.videoData.G&&(J?this.videoData.G.resume():mnq(this.videoData.G));if(this.loader){var K=this.videoData.J("html5_disable_preload_for_ssdai_with_preroll")&&this.SB()&&this.videoData.isLivePlayback;J&&!K?this.loader.resume():QN(this,!0)}g.E(this.playerState,2)||J?g.E(this.playerState,512)&&J&&this.G4(hx(this.playerState,512)):this.G4(Vr(this.playerState,512));K=this.Vw();K.qoe&&(K=K.qoe,g.SS(K,g.qS(K.provider),"stream",[J?"A":"I"]))}; g.u.vF=function(J){J={n:J.name,m:J.message};this.Vw().Sh("player.exception",Ih(J))}; g.u.zy=KU(28);g.u.w3=KU(57);g.u.fL=function(J){this.Vw().fL(J)}; g.u.XD=function(J){this.Vw().XD(J)}; g.u.nO=function(J){this.Vw().nO(J)}; g.u.GR=KU(34);g.u.IH=KU(40);g.u.vV=function(J){this.Vw().vV(J)}; g.u.PF=function(){this.Zm("hidden",{},!0)}; g.u.MJ=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.u.lW=function(){return this.loader?this.loader.lW():!0}; g.u.setLoop=function(J){this.loop=J;this.mediaElement&&!g.Ig(this.lx)&&this.mediaElement.setLoop(J)}; g.u.Vv=function(){return this.mediaElement&&!g.Ig(this.lx)?this.mediaElement.Vv():this.loop}; g.u.Ss=function(J){this.Zm("timestamp",{o:J.toString()});this.b_.Ss(J)}; g.u.T4=function(J){this.rN.tick(J)}; g.u.Zd=function(J){return this.rN.Zd(J)}; g.u.Z_=function(J){this.rN.Z_(J)}; g.u.Zm=function(J,K,n){n=n===void 0?!1:n;this.Vw().Zm(J,K,n)}; g.u.JJ=function(J,K,n){n=n===void 0?!1:n;this.Vw().Zm(J,K,n)}; g.u.Sh=function(J){this.Vw().Sh(J.errorCode,Ih(J.details));J=J.errorCode;if(this.videoData.isLivePlayback&&(J==="qoe.longrebuffer"||J==="qoe.slowseek")||J==="qoe.restart"){J=this.loader?MH3(this.loader.videoTrack):{};var K,n;this.Zm("lasoe",Object.assign(this.loader?MH3(this.loader.audioTrack):{},(K=this.tj)==null?void 0:(n=K.G)==null?void 0:n.bI()));var X,l;this.Zm("lvsoe",Object.assign(J,(X=this.tj)==null?void 0:(l=X.Z)==null?void 0:l.bI()))}}; g.u.yx=function(J,K,n){this.Vw().yx(J,K,n)}; g.u.sA=function(J,K,n,X,l,x,V,v){var Q;if((Q=this.videoData.G)!=null&&Q.isLive){var S=K.playerType===2?K:J,r=J.videoData.videoId,C=K.videoData.videoId;if(r&&C){Q=this.Vw();if(Q.qoe){var O=Q.qoe,H=J.cpn,R=K.cpn,w=S.videoData.o2,P=O.provider.videoData.clientPlaybackNonce,B=O.provider.videoData.videoId,p=R!==P&&C!==B;P=H!==P&&r!==B;O.reportStats();O.adCpn&&O.adCpn!==H||(O.adCpn=P?H:"",O.Go=P?r:"",O.adFormat=P?w:void 0,RJ(O,2,x?4:l?2:0,R,C,X),O.reportStats(),O.adCpn=p?R:"",O.Go=p?C:"",O.adFormat=p?w: void 0,RJ(O,2,x?5:l?3:1,H,r,n),O.reportStats())}n=J.cpn;if(Q.X.has(n)){if(l=g.U(Q.X.get(n)),mN(l,!0).send(),BI(l),n!==Q.provider.videoData.clientPlaybackNonce){ZV7(l);var k;(k=Q.G)==null||Yzp(k);Q.X.delete(n)}}else Q.N3=Q.provider.videoData.clientPlaybackNonce,Q.N3&&Q.G&&(Q.X.set(Q.N3,Q.G),mN(Q.G).send(),BI(Q.G));k=K.cpn;S=S.videoData;X-=this.q$();if(Q.X.has(k)){X=g.U(Q.X.get(k));var c=X.X&&isNaN(X.C)?IJ(X):NaN;X=yPV(X,!1);isNaN(c)||(X.W=c);X.send()}else X=nvH(Q,Q.provider,S,X),Q.X.set(k,X),ft3(X, new g.rf(Vr(new g.lH,8),new g.lH)),cPM(X),(c=Q.G)==null||BI(c);Q.N3=k;if(this.J("html5_unify_csi_server_stitched_transition_logging")){if(Q=this.rN,c=K.cpn,X=this.videoData.clientPlaybackNonce,K=K.videoData,J=(J.cpn===X?"video":"ad")+"_to_"+(c===X?"video":"ad"),J!=="video_to_ad"){X=J==="ad_to_video"?void 0:K;S=X==null?void 0:X.j3;k={};if(K==null?0:K.N)k.cttAuthInfo={token:K.N,videoId:K.videoId};V&&(k.startTime=V);y_(J,k);var y,A,q;V={targetVideoId:(y=K==null?void 0:K.videoId)!=null?y:"empty_video", targetCpn:c,adVideoId:(A=X==null?void 0:X.videoId)!=null?A:"empty_video",adClientPlaybackNonce:(q=S==null?void 0:S.cpn)!=null?q:X==null?void 0:X.clientPlaybackNonce};S&&(V.adBreakType=S.adBreakType,V.adType=S.adType);g.tB(V,J);Q5(Q,v,J)}}else y=this.rN,q=this.videoData.clientPlaybackNonce,A=K.videoData,q=(J.cpn===q?"video":"ad")+"_to_"+(K.cpn===q?"video":"ad"),J={},A.N&&(J.cttAuthInfo={token:A.N,videoId:A.videoId}),V&&(J.startTime=V),y_(q,J),g.tB({targetVideoId:A.videoId,targetCpn:K.cpn,isSsdai:!0}, q),y.lx.J("html5_enable_ssdai_transition_with_only_enter_cuerange")?V||Q5(y,v,q):Q5(y,v,q)}}else this.logger.G(360717806,"SSTEvent for nonSS")}; g.u.lO=function(){var J=this.U8,K=J.DW;J.DW=[];return K}; g.u.P7=function(J){this.videoData.IQ=!0;this.Sh(new ix("sabr.fallback",J));this.zc(!0)}; g.u.LV=function(J,K){this.videoData.Ew=!0;if(K===void 0||K)this.Sh(new ix("qoe.restart",J)),this.zc(!0);this.videoData.NH()&&this.J("html5_reload_caption_on_ssdai_fallback")&&this.U8.AU()}; g.u.Dn=function(J){this.Zm("sdai",{aftimeout:J});this.Sh(new ix("ad.fetchtimeout",{timeout:J}))}; g.u.Kw=function(J,K){this.Zm("timelineerror",J);J=new ix("dai.timelineerror",J);K?this.xO("dai.timelineerror",1,"RETRYABLE_ERROR",Ih(J.details)):this.Sh(J)}; g.u.jy=function(){return TH(this.Vw())}; g.u.getPlayerSize=function(){return this.vP.getPlayerSize()}; g.u.pA=function(){return this.vP.pA()}; g.u.lH=function(){return this.rN}; g.u.wL=function(){return this.U8.wL()}; g.u.getVolume=function(){return this.U8.getVolume()}; g.u.Am=function(){return this.U8.Am()}; g.u.isMuted=function(){return this.U8.isMuted()}; g.u.wb=function(){return this.U8.wb()}; g.u.oR=function(){this.Fk=!0}; g.u.J=function(J){return this.lx.J(J)}; g.u.K6=function(J,K,n,X,l){this.Zm("xvt",{m:J,g:K?1:0,tt:n?1:0,np:X?1:0,c:l})}; g.u.n2=function(){var J;(J=this.loader)==null||J.resume()}; g.u.SB=function(){return g.O0(this.eY,"ad")}; g.u.s6=function(){var J=this.getCurrentTime(),K=J-this.Ti();var n=this.mediaElement?Qd(this.mediaElement.Ya()):0;n=Math.floor(Math.max(n-K,0))+100;var X;return((X=this.loader)==null?0:X.s6(K,n))?(this.Zm("sdai",{skipad:1,ct:K.toFixed(3),adj:n.toFixed(3)}),xi(this.videoData)&&this.loader.seek(K+n,{seekSource:89,E8:"videoplayer_skipServerStitchedAd"}),bW3(this.b_,J),!0):!1}; g.u.Pw=function(){return this.lx.Pw()}; g.u.T2=function(){if(this.J("html5_generate_content_po_token"))return this.videoData.zv||"";this.U8.KP();return this.lx.Pp||""}; g.u.Cm=function(){if(this.videoData.videoId)return this.videoData.Fa}; g.u.R2=function(){return this.videoData.videoId}; g.u.zo=function(){return this.U8.Oa}; g.u.HR=function(){return this.Qx}; g.u.zO=function(){return this.U8.zO()}; g.u.ND=function(J,K){this.b_.ND(J,K)}; g.u.lm=function(){this.b_.lm()}; g.u.FF=function(J,K){var n=this.J("html5_generate_content_po_token")?this.videoData:void 0;this.U8.FF(J,K,n)}; g.u.Rc=function(J,K){var n;(n=this.loader)==null||n.Rc(J,K)}; g.u.AK=function(){var J=this.B6();return!!J&&J.AK()}; g.u.YH=function(J,K){this.Vw().YH(J,K)}; g.u.yR=function(){return this.Vw().yR()}; g.u.Io=function(){return this.videoData.rZ}; g.u.XI=function(){return this.U8.XI()}; g.u.iy=function(){return this.U8.iy(this)}; g.u.Co=function(J){var K;(K=this.loader)==null||K.Co(J)}; g.u.AJ=function(){var J;(J=this.loader)==null||J.AJ()};g.e(qUF,bo);g.e(EBr,bo);g.u=EBr.prototype;g.u.seekToChapterWithAnimation=function(J){var K=this;if(g.s2(this.api)&&!(J<0)){var n=this.api.getVideoData(),X=n.k7;if(X&&J=0)return;K=~K;g.B8(this.items,K,0,J);nf(this.menuItems.element,J.element,K)}J.subscribe("size-change",this.RY,this);this.menuItems.publish("size-change")}; g.u.fl=function(J){J.unsubscribe("size-change",this.RY,this);this.o4()||(g.RH(this.items,J),this.menuItems.element.removeChild(J.element),this.menuItems.publish("size-change"))}; g.u.RY=function(){this.menuItems.publish("size-change")}; g.u.focus=function(){for(var J=0,K=0;K1&&g.pW(this)}; g.u.bV=function(){wvq(this);this.Kv&&(eNU(this),g.Fo(this.element,this.size))}; g.u.KA=function(){var J=this.G.pop();zNM(this,J,this.G[this.G.length-1],!0)}; g.u.EF=function(J){if(!J.defaultPrevented)switch(J.keyCode){case 27:this.MS();J.preventDefault();break;case 37:this.G.length>1&&this.KA();J.preventDefault();break;case 39:J.preventDefault()}}; g.u.focus=function(){this.G.length&&this.G[this.G.length-1].focus()}; g.u.Xq=function(){g.tn.prototype.Xq.call(this);this.N&&this.N.dispose();this.W&&this.W.dispose()};g.e(LW,g.BY);LW.prototype.open=function(J,K){this.initialize(J.items)&&this.HM(K,!!K)}; LW.prototype.initialize=function(J){g.iV(this.Dh);if(J===void 0||J.length===0)return!1;var K=J.length;J=g.z(J);for(var n=J.next();!n.done;n=J.next())this.qH(n.value,K--);return!0}; LW.prototype.qH=function(J,K){J.menuNavigationItemRenderer?iF8(this,J.menuNavigationItemRenderer,K):J.menuServiceItemRenderer&&BM3(this,J.menuServiceItemRenderer,K)};g.e(Tc,wd);g.u=Tc.prototype;g.u.ML=function(J){J.target!==this.dismissButton.element&&J.target!==this.overflowButton.element&&(this.HX(),this.onClickCommand&&this.B.I4("innertubeCommand",this.onClickCommand))}; g.u.ob=function(){this.enabled=!1;this.K.hide()}; g.u.OA=function(){return!!this.G&&this.enabled}; g.u.onVideoDataChange=function(J,K){this.Hg(K);if(this.G){this.RS();a:if(!this.isCounterfactual){var n,X,l;this.banner.update({title:(n=this.G)==null?void 0:n.title,subtitle:(X=this.G)==null?void 0:X.subtitle,metadata:(l=this.G)==null?void 0:l.metadataText});var x;this.onClickCommand=g.f((x=this.G)==null?void 0:x.onTap,Yo);var V;if(J=g.f((V=this.G)==null?void 0:V.onOverflow,Yo))this.W=g.f(J,W7V);var v;if((v=this.G)==null?0:v.thumbnailImage){var Q,S;V=((Q=this.G)==null?void 0:(S=Q.thumbnailImage)== null?void 0:S.sources)||[];if(V.length===0)break a;this.thumbnailImage.update({url:V[0].url})}else{var r;if((r=this.G)==null?0:r.thumbnailIconName){var C;this.thumbnailIcon.update({icon:(C=this.G)==null?void 0:C.thumbnailIconName})}}var O;this.shouldShowOverflowButton=!((O=this.G)==null||!O.shouldShowOverflowButton);var H;this.shouldHideDismissButton=!((H=this.G)==null||!H.shouldHideDismissButton)}var R;this.banner.element.setAttribute("aria-label",((R=this.G)==null?void 0:R.a11yLabel)||"");var w; this.fv=(w=this.G)==null?void 0:w.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;pvp(this)}}; g.u.iUv=function(){this.isVisible=!0;pvp(this)}; g.u.Erj=function(){this.isVisible=!1;pvp(this)}; g.u.HF=function(){wd.prototype.HF.call(this);this.Z&&this.B.logVisibility(this.banner.element,this.isVisible)}; g.u.HX=function(){wd.prototype.HX.call(this,!1);this.Z&&this.B.logClick(this.banner.element)}; g.u.cD=function(J){this.N||(this.N=new LW(this.B),g.Z(this,this.N));var K,n;if((K=this.W)==null?0:(n=K.menu)==null?0:n.menuRenderer)this.N.open(this.W.menu.menuRenderer,J.target),J.preventDefault()}; g.u.Hg=function(){}; g.u.RS=function(){}; g.u.Xq=function(){this.B.Uo("suggested_action_view_model");wd.prototype.Xq.call(this)};g.e(Du,Tc); Du.prototype.Hg=function(J){var K,n,X;this.productUpsellSuggestedActionViewModel=g.f((K=J.getWatchNextResponse())==null?void 0:(n=K.playerOverlays)==null?void 0:(X=n.playerOverlayRenderer)==null?void 0:X.suggestedActionViewModel,jNF);var l;if((l=this.productUpsellSuggestedActionViewModel)==null?0:l.content){var x;this.G=g.f((x=this.productUpsellSuggestedActionViewModel)==null?void 0:x.content,yKH)}var V,v;if(this.Z=!!((V=this.productUpsellSuggestedActionViewModel)==null?0:(v=V.loggingDirectives)==null? 0:v.trackingParams)){var Q,S;this.B.setTrackingParams(this.banner.element,((Q=this.productUpsellSuggestedActionViewModel)==null?void 0:(S=Q.loggingDirectives)==null?void 0:S.trackingParams)||null)}var r;this.isCounterfactual=!((r=this.productUpsellSuggestedActionViewModel)==null||!r.isCounterfactualServing)}; Du.prototype.RS=function(){var J=[],K,n=g.z(((K=this.productUpsellSuggestedActionViewModel)==null?void 0:K.ranges)||[]);for(K=n.next();!K.done;K=n.next()){var X=K.value;X&&(K=Number(X.startTimeMilliseconds),X=Number(X.endTimeMilliseconds),isNaN(K)||isNaN(X)||J.push(new g.KG(K,X,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.B.yA(J)};g.e(LlH,bo);g.e(dd,bo);dd.prototype.onVideoDataChange=function(J,K){var n=this;if(!tk(K)){J==="newdata"&&D$3(this);var X=this.api.J("html5_fix_duplicate_get_setting_values_requests");if(this.X&&this.G&&J==="dataloaded"){X&&(this.G=!1);var l;HG(O3(xY(this.api.S(),(l=this.api.getVideoData())==null?void 0:g.Yi(l)),function(x){X||(n.G=!1);U$8(n,x)}),function(){n.G=!0})}}}; dd.prototype.Jd=function(){var J=this;if(g.Ig(this.api.S())){var K,n=g.l7(this.api.S(),(K=this.api.getVideoData())==null?void 0:g.Yi(K));return O3(Sb(n),function(X){var l=Yw();Gh(l,X);return J.api.Jd(l)})}return Sb(this.api.Jd())};g.e(g.gd,g.at);g.u=g.gd.prototype;g.u.open=function(){g.mU(this.Zv,this.Z)}; g.u.Oy=function(J){tKf(this);var K=this.options[J];K&&(K.element.setAttribute("aria-checked","true"),this.wR(this.xL(J)),this.X=J)}; g.u.AL=function(J){g.iV(this.Z);for(var K={},n=!1,X=0;X=0?this.G.playbackRate:1}catch(J){return 1}}; g.u.setPlaybackRate=function(J){this.getPlaybackRate()!==J&&(this.G.playbackRate=J);return J}; g.u.Vv=function(){return this.G.loop}; g.u.setLoop=function(J){this.G.loop=J}; g.u.canPlayType=function(J,K){return this.G.canPlayType(J,K)}; g.u.isPaused=function(){return this.G.paused}; g.u.isSeeking=function(){return this.G.seeking}; g.u.isEnded=function(){return this.G.ended}; g.u.Bf=function(){return this.G.muted}; g.u.Ic=function(J){k6();this.G.muted=J}; g.u.Vt=function(){return this.G.played||xc([],[])}; g.u.Ya=function(){try{var J=this.G.buffered}catch(K){}return J||xc([],[])}; g.u.OV=function(){return this.G.seekable||xc([],[])}; g.u.RL=function(){var J=this.G;return J.getStartDate?J.getStartDate():null}; g.u.getCurrentTime=function(){return this.G.currentTime}; g.u.setCurrentTime=function(J){this.G.currentTime=J}; g.u.getDuration=function(){return this.G.duration}; g.u.load=function(){var J=this.G.playbackRate;try{this.G.load()}catch(K){}this.G.playbackRate=J}; g.u.pause=function(){this.G.pause()}; g.u.play=function(){var J=this.G.play();if(!J||!J.then)return null;J.then(void 0,function(){}); return J}; g.u.X7=function(){return this.G.readyState}; g.u.Pf=function(){return this.G.networkState}; g.u.TR=function(){return this.G.error?this.G.error.code:null}; g.u.Zo=function(){return this.G.error?this.G.error.message:""}; g.u.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.G instanceof window.HTMLVideoElement&&this.G.getVideoPlaybackQuality)return this.G.getVideoPlaybackQuality();if(this.G){var J=this.G,K=J.webkitDroppedFrameCount;if(J=J.webkitDecodedFrameCount)return{droppedVideoFrames:K||0,totalVideoFrames:J}}return{}}; g.u.Do=function(){return!!this.G.webkitCurrentPlaybackTargetIsWireless}; g.u.iB=function(){return!!this.G.webkitShowPlaybackTargetPicker()}; g.u.togglePictureInPicture=function(){var J=this.G,K=window.document;window.document.pictureInPictureEnabled?this.G!==K.pictureInPictureElement?J.requestPictureInPicture():K.exitPictureInPicture():dY()&&J.webkitSetPresentationMode(J.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.u.wJ=function(){var J=this.G;return new g.Ll(J.offsetLeft,J.offsetTop)}; g.u.getSize=function(){return g.qa(this.G)}; g.u.setSize=function(J){g.Fo(this.G,J)}; g.u.getVolume=function(){return this.G.volume}; g.u.setVolume=function(J){k6();this.G.volume=J}; g.u.W7=function(J){this.C[J]||(this.G.addEventListener(J,this.listener),this.C[J]=this.listener)}; g.u.setAttribute=function(J,K){this.G.setAttribute(J,K)}; g.u.removeAttribute=function(J){this.G.removeAttribute(J)}; g.u.hasAttribute=function(J){return this.G.hasAttribute(J)}; g.u.sK=KU(67);g.u.y9=KU(69);g.u.g0=KU(71);g.u.iZ=KU(73);g.u.W2=function(){return uu(this.G)}; g.u.xm=function(J){g.jv(this.G,J)}; g.u.AN=function(J){return g.GW(this.G,J)}; g.u.XU=function(){return g.XG(document.body,this.G)}; g.u.audioTracks=function(){var J=this.G;if("audioTracks"in J)return J.audioTracks}; g.u.Xq=function(){for(var J=g.z(Object.keys(this.C)),K=J.next();!K.done;K=J.next())K=K.value,this.G.removeEventListener(K,this.C[K]);Jx.prototype.Xq.call(this)}; g.u.dA=function(J){this.G.disableRemotePlayback=J};g.e(qG,g.F);g.e(bV,g.F);bV.prototype.show=function(){g.F.prototype.show.call(this);this.WW();this.R4.J("html5_enable_moving_s4n_window")&&g.Ig(this.R4.S())&&this.L()}; bV.prototype.hide=function(){g.F.prototype.hide.call(this);this.delay.stop();this.U.stop()}; bV.prototype.WW=function(){var J=(0,g.a)(),K=NM8(this.R4);Ec(this.G,K.bandwidth_samples);Ec(this.W,K.network_activity_samples);Ec(this.X,K.live_latency_samples);Ec(this.Z,K.buffer_health_samples);var n={};K=g.z(Object.entries(K));for(var X=K.next();!X.done;X=K.next()){var l=g.z(X.value);X=l.next().value;l=l.next().value;this.K[X]!==l&&(n[X]=" "+String(l));this.K[X]=l}this.update(n);J=(0,g.a)()-J>25?5E3:500;this.delay.start(J)}; bV.prototype.L=function(){this.N?(this.position+=1,this.position>15&&(this.N=!1)):(--this.position,this.position<=0&&(this.N=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.U.start(2E4)};g.e(nZq,bo);g.e(As,g.t);As.prototype.G=function(){var J=(0,g.a)()-this.startTime;J=Jthis.U[J])&&(this.G=J,NG(this))}; g.u.onCueRangeExit=function(J){var K=s_H(this,J);K&&this.G===J&&this.api.I4("innertubeCommand",K);this.clearTimeout();this.G=void 0}; g.u.onTimeout=function(J){this.G!==void 0&&(J==null?void 0:J.cueRangeId)===this.G&&(this.L=!1,(J=s_H(this,this.G))&&this.api.I4("innertubeCommand",J))}; g.u.IY=function(J){this.Z=J}; g.u.g$=function(){NG(this);this.Z=void 0}; g.u.setTimeout=function(J){var K=this,n=Number(J==null?void 0:J.maxVisibleDurationMilliseconds);n&&(this.clearTimeout(),this.K=setTimeout(function(){K.onTimeout(J)},n))}; g.u.clearTimeout=function(){this.K&&clearTimeout(this.K);this.K=void 0;this.L=!1}; g.u.Xq=function(){this.timelyActions=this.Z=this.G=this.videoId=void 0;this.U={};this.FN();this.clearTimeout();bo.prototype.Xq.call(this)};g.e(Ht8,bo);g.e(KH,oI);KH.prototype.N=function(J){this.U(J?2:1)}; KH.prototype.Z=function(){var J=this.B.getPresentingPlayerType();J===2||J===3?(this.G=!1,this.Zv.fl(this)):this.G||(J=this.hasVoiceBoostAudioTrack(),this.setEnabled(J),J=this.X()===2&&J,X4(this,J),this.Zv.qH(this),this.G=!0)}; KH.prototype.Xq=function(){this.Zv.fl(this);oI.prototype.Xq.call(this)};g.e(nH,bo);nH.prototype.getVoiceBoostUserPreference=function(){return this.G}; nH.prototype.setVoiceBoostUserPreference=function(J){this.api.Zm("vb_set",{pref:J});g.kF("yt-player-voice-boost",J);J!==this.G&&(this.G=J,this.updateEnvironmentData(),this.hasVoiceBoostAudioTrack()&&this.api.dL())}; nH.prototype.hasVoiceBoostAudioTrack=function(){var J,K,n=(J=this.api.getVideoData())==null?void 0:(K=J.X)==null?void 0:K.G;return n?Ma(n,function(X){var l;return((l=X.audio)==null?void 0:l.Z)===!0}):!1}; nH.prototype.updateEnvironmentData=function(){this.api.S().xd=this.G};var pSk=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.e(l8,bo);l8.prototype.Xq=function(){this.W&&(g.Re(this.W),this.W=void 0);bo.prototype.Xq.call(this)}; l8.prototype.KP=function(){(this.Z?!this.G:this.X)&&jw(this)}; l8.prototype.Wh=function(J,K,n){var X=this;if(eKf(J)){var l=n||"";if(this.G)K=V5(this,l),zKM(J,K);else{var x=new g.Sg;K.push(x.promise);this.C.promise.then(function(){var V=V5(X,l);zKM(J,V);x.resolve()})}}}; l8.prototype.qf=function(J){var K=this;if(this.Z||this.X)J.zv=V5(this,J.videoId),this.G||(this.U=new Nb,this.C.promise.then(function(){K.rN.Zd("pot_if");J.zv=V5(K,J.videoId)}))};g.e(hX,bo);hX.prototype.setFullscreenQuickActions=function(J){this.G&&this.api.getRootNode().removeChild(this.G);J?(g.jv(J,"ytp-fullscreen-quick-actions"),g.jv(this.api.getRootNode(),"ytp-has-fullscreen-quick-actions"),g.dv(this.api,J,4)):g.hv(this.api.getRootNode(),"ytp-has-fullscreen-quick-actions");this.G=J;TF3(this,this.api.isFullscreen())}; hX.prototype.setPlayerOverlayVideoDetailsRenderer=function(J){this.playerOverlayVideoDetailsRenderer&&this.api.getRootNode().removeChild(this.playerOverlayVideoDetailsRenderer);J?(g.jv(J,"ytp-fullscreen-metadata"),this.api.J("delhi_modern_web_player_fullscreen_metadata_bottom")?g.jv(this.api.getRootNode(),"ytp-fullscreen-metadata-bottom"):g.jv(this.api.getRootNode(),"ytp-fullscreen-metadata-top"),g.dv(this.api,J,4)):(g.hv(this.api.getRootNode(),"ytp-hide-fullscreen-title"),g.hv(this.api.getRootNode(), "ytp-fullscreen-metadata-bottom"));this.playerOverlayVideoDetailsRenderer=J;TF3(this,this.api.isFullscreen())};g.e(D47,bo);g.e(vZ,g.t);vZ.prototype.G=function(){for(var J=g.z(g.c3.apply(0,arguments)),K=J.next();!K.done;K=J.next())(K=K.value)&&this.features.push(K)}; vZ.prototype.Xq=function(){for(var J=this.features.length-1;J>=0;J--)this.features[J].dispose();this.features.length=0;g.t.prototype.Xq.call(this)};d4q.prototype.reset=function(){this.G=this.Z=NaN};g.u=ky8.prototype;g.u.reset=function(){cs(this.timerName)}; g.u.tick=function(J,K){Ul(J,K,this.timerName)}; g.u.Zd=function(J){return fo(J,void 0,this.timerName)}; g.u.Z_=function(J){g.mC(J,void 0,this.timerName)}; g.u.infoGel=function(J){g.tB(J,this.timerName)};g.e(Ywp,g.hi);g.u=Ywp.prototype;g.u.kL=function(J){return this.loop||!!J||this.index+1=0}; g.u.setShuffle=function(J){this.shuffle=J;J=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var K=0;K0)||Db(this,1,!0)}; g.u.aD=function(){this.N=!0;this.G.rR(this.C);this.C=this.G.T(document,"mouseup",this.jt)}; g.u.jt=function(){this.N=!1;Db(this,8,!1);this.G.rR(this.C);this.C=this.G.T(this.target,"mousedown",this.aD)}; g.u.w1=function(J){if(J=(J=J.changedTouches)&&J[0])this.Aj=J.identifier,this.G.rR(this.L),this.L=this.G.T(this.target,"touchend",this.BD,void 0,!0),Db(this,1024,!0)}; g.u.BD=function(J){if(J=J.changedTouches)for(var K=0;K1280||l>720)if(K=X.rK("maxresdefault.jpg"))break;if(x>640||l>480)if(K=X.rK("maxresdefault.jpg"))break;if(x>320||l>180)if(K=X.rK("sddefault.jpg")||X.rK("hqdefault.jpg")||X.rK("mqdefault.jpg"))break;if(K=X.rK("default.jpg"))break}g.Nw(J)&&(J=new Image,J.addEventListener("load", function(){hsd()}),J.src=K?K:"",this.api.lH().tick("ftr")); this.U.style.backgroundImage=K?"url("+K+")":""};g.e(g.cZ,g.F);g.cZ.prototype.resize=function(){}; g.cZ.prototype.Z=function(J){var K=this;this.X=!1;L$H(this);var n=J.Tu,X=this.api.S();n!=="GENERIC_WITHOUT_LINK"||X.N?n==="TOO_MANY_REQUESTS"?(X=g.U(this.api.getVideoData()),this.wR(UU(this,"TOO_MANY_REQUESTS_WITH_LINK",X.BH(),void 0,void 0,void 0,!1))):n!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||X.N?this.api.S().J("html5_enable_bandaid_error_screen")&&n==="HTML5_SPS_UMP_STATUS_REJECTED"&&!X.N?(X=X.hostLanguage,J="//support.google.com/youtube?p=videoError",X&&(J=g.Td(J,{hl:X})),this.wR(UU(this,"HTML5_SPS_UMP_STATUS_REJECTED", J))):this.api.S().J("enable_adb_handling_in_sabr")&&n==="BROWSER_OR_EXTENSION_ERROR"&&!X.N?(X=X.hostLanguage,J="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",X&&(J=g.Td(J,{hl:X})),this.wR(UU(this,"BROWSER_OR_EXTENSION_ERROR",J))):this.wR(g.YB(J.errorMessage)):this.wR(UU(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(J=X.hostLanguage,n="//support.google.com/youtube/?p=player_error1",J&&(n=g.Td(n, {hl:J})),this.wR(UU(this,"GENERIC_WITH_LINK_AND_CPN",n,!0)),X.wN&&!X.U&&p1p(this,function(x){if(g.lA(x,K.api,!qw(K.api.S()))){x={as3:!1,html5:!0,player:!0,cpn:g.U(K.api.getVideoData()).clientPlaybackNonce};var V=K.api;V.gR("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:x});V.isFullscreen()&&V.toggleFullscreen()}})); if(this.X){var l=this.rQ("ytp-error-link");l&&(this.api.createClientVe(l,this,216104),this.api.logVisibility(l,!0),p1p(this,function(){K.api.logClick(l)}))}}; var mvV=/([^<>]+)<\/a>/;g.e(Tl7,g.F);g.u=Tl7.prototype;g.u.onClick=function(J){this.innertubeCommand?(this.B.I4("innertubeCommand",this.innertubeCommand),J.preventDefault()):g.lA(J,this.B,!0);this.B.logClick(this.element)}; g.u.onVideoDataChange=function(J,K){dvp(this,K);this.N_&&kbU(this,this.N_)}; g.u.PD=function(J){var K=g.U(this.B.getVideoData());this.videoId!==K.videoId&&dvp(this,K);this.G&&kbU(this,J.state);this.N_=J.state}; g.u.HM=function(){this.fade.show();this.B.publish("paidcontentoverlayvisibilitychange",!0);this.B.logVisibility(this.element,!0)}; g.u.MS=function(){this.fade.hide();this.B.publish("paidcontentoverlayvisibilitychange",!1);this.B.logVisibility(this.element,!1)};g.e(tX,g.F);tX.prototype.hide=function(){this.G.stop();this.message.style.display="none";g.F.prototype.hide.call(this)}; tX.prototype.onStateChange=function(J){this.RZ(J.state)}; tX.prototype.RZ=function(J){if(g.E(J,128)||this.api.HR())var K=!1;else{var n;K=this.api.J("web_watch_enable_multiview_manager")&&((n=this.api.getVideoData())==null?0:tk(n))?!1:g.E(J,16)||g.E(J,1)?!0:!1}K?this.G.start():this.hide()}; tX.prototype.Z=function(){this.message.style.display="block"};g.e(y5,g.tn);y5.prototype.onMutedAutoplayChange=function(J){this.X&&(J?(gq3(this),this.HM()):(this.G&&this.logClick(),this.MS()))}; y5.prototype.Oi=function(J){this.api.isMutedByMutedAutoplay()&&g.C1(J,2)&&this.MS()}; y5.prototype.onClick=function(){this.api.unMute();this.logClick()}; y5.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.e(g.Zb,g.gY);g.u=g.Zb.prototype;g.u.init=function(){var J=this.api,K=J.getPlayerStateObject();this.O5=J.getPlayerSize();this.G4(K);this.Q8();this.s_();this.api.publish("basechromeinitialized",this);this.Hr()&&this.api.publish("standardControlsInitialized")}; g.u.onVideoDataChange=function(J,K){var n=this.L1!==K.videoId;if(n||J==="newdata")J=this.api,J.isFullscreen()||(this.O5=J.getPlayerSize());n&&(this.L1=K.videoId,n=this.Np,n.cW=3E3,Db(n,512,!0),this.Q8());this.api.J("web_render_jump_buttons")&&K.showSeekingControls&&(this.SG=572)}; g.u.Ivq=function(){this.onVideoDataChange("newdata",g.U(this.api.getVideoData()))}; g.u.KY=function(){var J=this.api.du()&&this.api.ag(),K=this.api.pX();return this.Qn||J||this.Sw||K}; g.u.m8=function(){var J=!this.KY();g.Qq(this.api.getRootNode(),"ytp-menu-shown",!J)}; g.u.CV=function(J){try{if(!g.XG(this.api.getRootNode(),J))return!1}catch(K){return!1}for(;J&&!yjV(J);)J=J===this.api.getRootNode()?null:J.parentElement||null;return!!J}; g.u.pY=function(J){var K=this.api.getRootNode();g.Qq(K,"ytp-autohide",J);g.Qq(K,"ytp-autohide-active",!0);this.yC.start(J?250:100);J&&(this.K2=!1,g.hv(K,"ytp-touch-mode"));this.ZY=!J;this.api.Pe(!J)}; g.u.hc=function(){var J=this.api.getRootNode();g.Qq(J,"ytp-autohide-active",!1)}; g.u.zqM=function(){this.yl=!0}; g.u.mHm=function(J){if(this.api.S().J("player_doubletap_to_seek")||this.api.S().W)this.yl=!1,this.gA&&this.rR(this.gA),this.EW===0&&WZ(this,J)?(this.Y$(),this.SL.start(),this.gA=this.T(this.api.S_(),"touchmove",this.zqM,void 0,!0)):this.SL.stop();UvH(this)&&WZ(this,J)&&!this.api.S().W&&YN3(this);var K=this.S1.jO();if(!g.pR(this.api.S())&&Im&&tP8(this,J))K&&J.preventDefault();else if(this.K2=!0,g.jv(this.api.getRootNode(),"ytp-touch-mode"),this.Np.Ln(),this.api.S().J("player_doubletap_to_seek")||this.api.S().W)if(K= this.api.getPlayerStateObject(),!(!this.api.vp()||g.E(K,2)&&g.io(this.api)||g.E(K,64))){K=Date.now()-this.TE;this.EW+=1;if(K<=350){this.jP=!0;K=this.api.getPlayerSize().width/3;var n=this.api.getRootNode().getBoundingClientRect(),X=J.targetTouches[0].clientX-n.left;n=J.targetTouches[0].clientY-n.top;var l=(this.EW-1)*10;X>0&&XK*2&&X=650,X=J.width<528;this.Np.resize();g.Qq(K,"ytp-fullscreen",this.api.isFullscreen());g.Qq(K,"ytp-large-width-mode",n);this.api.J("delhi_modern_web_player")?g.Qq(K,"ytp-xsmall-width-mode",X):g.Qq(K,"ytp-small-mode",this.l1());g.Qq(K,"ytp-tiny-mode",this.ZF());g.Qq(K,"ytp-big-mode",this.Mx());this.Hp&&this.Hp.resize(J)}; g.u.Oi=function(J){this.G4(J.state);this.Q8()}; g.u.LY=KU(5);g.u.iO=function(){var J=!!this.L1&&!this.api.Mk()&&!this.vK,K=this.api.getPresentingPlayerType()===2,n=this.api.S();if(K){if(dpF&&n.J("enable_visit_advertiser_support_on_ipad_mweb"))return!1;K=BZ(this.api.hx());J&&(K&&K.player?J=(J=K.player.getVideoData(2))?J.isListed&&!g.wh(K.player.S()):!1:(Se("showInfoBarDuringAd: this is null"),J=!1));return J}return J&&(n.G2||this.api.isFullscreen()||n.Yk)}; g.u.Q8=function(){var J=this.iO();this.LQ!==J&&(this.LQ=J,g.Qq(this.api.getRootNode(),"ytp-hide-info-bar",!J))}; g.u.G4=function(J){var K=J.isCued()||this.api.RE()&&this.api.getPresentingPlayerType()!==3;K!==this.isCued&&(this.isCued=K,this.In&&this.rR(this.In),this.In=this.T(this.api.S_(),"touchstart",this.mHm,void 0,K));var n=this.Np,X=J.isPlaying()&&!g.E(J,32)||this.api.tN();Db(n,128,!X);n=this.Np;X=this.api.getPresentingPlayerType()===3;Db(n,256,X);n=this.api.getRootNode();g.E(J,2)?X=[Z3.ENDED]:(X=[],g.E(J,8)?X.push(Z3.PLAYING):g.E(J,4)&&X.push(Z3.PAUSED),g.E(J,1)&&!g.E(J,32)&&X.push(Z3.BUFFERING),g.E(J, 32)&&X.push(Z3.SEEKING),g.E(J,64)&&X.push(Z3.UNSTARTED));g.kr(this.Xu,X)||(g.vM(n,this.Xu),this.Xu=X,g.Vq(n,X));X=this.api.S();var l=g.E(J,2);a:{var x=this.api.S();var V=x.controlsType;switch(V){case "2":case "0":x=!1;break a}x=V==="3"&&!g.E(J,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:r7S(BZ(this.api.hx())))||this.api.pX()||g.pR(x)&&this.api.getPresentingPlayerType()===2?!1:!0}g.Qq(n,"ytp-hide-controls",!x);g.Qq(n,"ytp-native-controls",X.controlsType==="3"&&!K&&!l&&!this.Sw);g.E(J, 128)&&!g.pR(X)?(this.Hp||(this.Hp=new g.cZ(this.api),g.Z(this,this.Hp),g.dv(this.api,this.Hp.element,4)),this.Hp.Z(J.V2),this.Hp.show()):this.Hp&&(this.Hp.dispose(),this.Hp=null)}; g.u.W$=function(){return this.api.du()&&this.api.ag()?(this.api.gf(!1,!1),!0):this.api.Mk()?(g.B4(this.api,!0),!0):!1}; g.u.onMutedAutoplayChange=function(J){this.Sw=J;this.m8()}; g.u.Mx=function(){return!1}; g.u.l1=function(){return!this.Mx()&&(this.api.getPlayerSize().width=0&&K.left>=0&&K.bottom>K.top&&K.right>K.left?K:null;K=this.size;J=J.clone();K=K.clone();X&&(V=K,l=5,(l&65)==65&&(J.x=X.right)&&(l&=-2),(l&132)==132&&(J.y=X.bottom)&&(l&=-5),J.xX.right&&(V.width=Math.min(X.right-J.x,x+V.width-X.left),V.width=Math.max(V.width,0))),J.x+V.width>X.right&&l&1&&(J.x=Math.max(X.right-V.width,X.left)),J.yX.bottom&&(V.height=Math.min(X.bottom-J.y,x+V.height-X.top),V.height=Math.max(V.height,0))),J.y+V.height>X.bottom&&l&4&&(J.y=Math.max(X.bottom-V.height,X.top)));X=new g.d5(0,0,0,0);X.left=J.x;X.top=J.y;X.width= K.width;X.height=K.height;g.ZL(this.element,new g.Ll(X.left,X.top));g.L0(this.U);this.U.T(y3(this),"contextmenu",this.Xw_);this.U.T(this.B,"fullscreentoggled",this.onFullscreenToggled);this.U.T(this.B,"pageTransition",this.kZ)}; g.u.Xw_=function(J){if(!J.defaultPrevented){var K=iu(J);g.XG(this.element,K)||this.MS();this.B.S().disableNativeContextMenu&&J.preventDefault()}}; g.u.onFullscreenToggled=function(){this.MS();QkM(this)}; g.u.kZ=function(){this.MS()};g.e(JI,g.F);JI.prototype.onClick=function(){var J=this,K,n,X,l;return g.G(function(x){if(x.Z==1)return K=J.api.S(),n=g.U(J.api.getVideoData()),X=J.api.getPlaylistId(),l=K.getVideoUrl(n.videoId,X,void 0,!0),g.d(x,rY3(J,l),2);x.G&&SI3(J);J.api.logClick(J.element);g.uF(x)})}; JI.prototype.WW=function(){this.updateValue("icon",{j:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Y:[{j:"path",Dv:!0,V:"ytp-svg-fill",D:{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=$lV(this);g.Qq(this.element,"ytp-copylink-button-visible",this.visible); this.Yr(this.visible);this.tooltip.Kh();this.api.logVisibility(this.element,this.visible&&this.C)}; JI.prototype.NS=function(J){g.F.prototype.NS.call(this,J);this.api.logVisibility(this.element,this.visible&&J)}; JI.prototype.Xq=function(){g.F.prototype.Xq.call(this);g.hv(this.element,"ytp-copylink-button-visible")};g.e(skd,g.F);g.u=skd.prototype;g.u.show=function(){g.F.prototype.show.call(this);g.M0(this.Z)}; g.u.hide=function(){this.U.stop();this.X=0;this.rQ("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.hv(this.element,"ytp-chapter-seek");g.hv(this.element,"ytp-time-seeking");g.F.prototype.hide.call(this)}; g.u.tJ=function(J,K,n,X){this.X=J===this.W?this.X+X:X;this.W=J;var l=J===-1?this.K:this.L;l&&this.B.logClick(l);this.N?this.Z.stop():g.Jv(this.Z);this.U.start();this.element.setAttribute("data-side",J===-1?"back":"forward");var x=3*this.B.S_().getPlayerSize().height;l=this.B.S_().getPlayerSize();l=l.width/3-3*l.height;this.G.style.width=x+"px";this.G.style.height=x+"px";J===1?(this.G.style.left="",this.G.style.right=l+"px"):J===-1&&(this.G.style.right="",this.G.style.left=l+"px");var V=x*2.5;x=V/ 2;var v=this.rQ("ytp-doubletap-ripple");v.style.width=V+"px";v.style.height=V+"px";J===1?(J=this.B.S_().getPlayerSize().width-K+Math.abs(l),v.style.left="",v.style.right=J-x+"px"):J===-1&&(J=Math.abs(l)+K,v.style.right="",v.style.left=J-x+"px");v.style.top="calc((33% + "+Math.round(n)+"px) - "+x+"px)";if(n=this.rQ("ytp-doubletap-ripple"))n.classList.remove("ytp-doubletap-ripple"),n.classList.add("ytp-doubletap-ripple");Cle(this,this.N?this.X:X)}; g.u.g_=function(J,K,n){if(n=n===void 0?null:n){var X=J===-1?this.K.visualElement:this.L.visualElement;n={seekData:n};var l=g.i2();l&&g.NM(Nq)(void 0,l,X,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",n,void 0)}this.X=J===this.W?this.X+K:K;this.W=J;X=this.B.S_().getPlayerSize();this.N?this.Z.stop():g.Jv(this.Z);this.U.start();this.element.setAttribute("data-side",J===-1?"back":"forward");g.jv(this.element,"ytp-time-seeking");this.G.style.width="110px";this.G.style.height="110px";n=X.width*.1-15;J=== 1?this.GA?(this.G.style.right=n+"px",this.G.style.left=""):(this.G.style.right="",this.G.style.left=X.width*.8-30+"px"):J===-1&&(this.GA?(this.G.style.right="",this.G.style.left=n+"px"):(this.G.style.right="",this.G.style.left=X.width*.1-15+"px"));this.G.style.top=X.height*.5+15+"px";Cle(this,this.N?this.X:K)}; g.u.pD=function(J,K,n){n=n===void 0?null:n;g.Jv(this.Z);this.U.start();switch(J){case -1:J="back";break;case 1:J="forward";break;default:J=""}this.element.setAttribute("data-side",J);this.G.style.width="0";this.G.style.height="0";g.jv(this.element,"ytp-chapter-seek");this.updateValue("seekText",K);this.updateValue("seekTime","");K=this.rQ("ytp-seek-icon");if(n){a:if(n){switch(n){case "PREMIUM_STANDALONE":n=kpp();break a;case "PREMIUM_STANDALONE_CAIRO":n=gdU();break a}n=void 0}else n=null;this.updateValue("seekIcon", n);K.style.display="inline-block"}else K.style.display="none"};g.e(O2U,wd);g.u=O2U.prototype;g.u.Rt=function(J){this.j_||(this.j_=new LW(this.B),g.Z(this,this.j_));var K,n;if((K=this.vW)==null?0:(n=K.menu)==null?0:n.menuRenderer)this.j_.open(this.vW.menu.menuRenderer,J.target),J.preventDefault()}; g.u.OA=function(){return!!this.G}; g.u.V_=function(){return!!this.G}; g.u.ML=function(J){J.target===this.overflowButton.element?J.preventDefault():(this.KU&&this.B.I4("innertubeCommand",this.KU),this.HX(!1))}; g.u.ob=function(){this.HX(!0);var J,K;((J=this.G)==null?0:(K=J.bannerData)==null?0:K.dismissedStatusKey)&&this.o5.push(this.G.bannerData.dismissedStatusKey);this.Gj()}; g.u.tR=function(){this.Gj();o6(this)}; g.u.SBF=function(J){var K=this,n;if(J.id!==((n=this.G)==null?void 0:n.identifier)){this.Gj();n=g.z(this.cW);for(var X=n.next();!X.done;X=n.next()){var l=X.value,x=void 0,V=void 0;if((X=(x=l)==null?void 0:(V=x.bannerData)==null?void 0:V.itemData)&&l.identifier===J.id){V=x=void 0;var v=((x=l)==null?void 0:(V=x.bannerData)==null?void 0:V.dismissedStatusKey)||"";if(this.o5.includes(v))return;this.G=l;this.banner.element.setAttribute("aria-label",X.accessibilityLabel||"");X.trackingParams&&(this.U=!0, this.B.setTrackingParams(this.badge.element,X.trackingParams));this.K.show();zc(this);this.MQ.Yr(!X.stayInApp);pr8(this);RMM(this);nF(this);this.KU=g.f(X.onTapCommand,Yo);if(l=g.f(X.menuOnTap,Yo))this.vW=g.f(l,W7V);l=void 0;this.banner.update({thumbnail:(l=(X.thumbnailSources||[])[0])==null?void 0:l.url,title:X.productTitle,price:X.priceReplacementText?X.priceReplacementText:X.price,salesOriginalPrice:zMH(this),priceDropReferencePrice:wrk(this),promotionText:eM3(this),priceA11yText:PlM(this),affiliateDisclaimer:X.affiliateDisclaimer, vendor:I63(this)});v=V=x=l=void 0;((l=X)==null?0:(x=l.hiddenProductOptions)==null?0:x.showDropCountdown)&&((V=X)==null?0:(v=V.hiddenProductOptions)==null?0:v.dropTimestampMs)&&(this.iR=new g.AT(function(){mlp(K)},1E3),this.MQ.hide(),this.countdownTimer.show(),mlp(this)); this.B.J("web_player_enable_featured_product_banner_exclusives_on_desktop")&&H23(this)&&(this.wN=new g.AT(function(){u23(K)},1E3),u23(this))}}this.B.getRootNode()&&g.jv(this.B.getRootNode(),"ytp-featured-product-shown")}}; g.u.Gj=function(){this.G&&(this.G=void 0,this.LJ(),this.B.getRootNode()&&g.hv(this.B.getRootNode(),"ytp-featured-product-shown"))}; g.u.onVideoDataChange=function(J,K){var n=this;J==="dataloaded"&&o6(this);var X,l,x;J=g.f((X=K.getWatchNextResponse())==null?void 0:(l=X.playerOverlays)==null?void 0:(x=l.playerOverlayRenderer)==null?void 0:x.productsInVideoOverlayRenderer,Zun);this.overflowButton.show();this.dismissButton.hide();var V=J==null?void 0:J.featuredProductsEntityKey;this.trendingOfferEntityKey=J==null?void 0:J.trendingOfferEntityKey;this.cW.length||(Bx8(this,V),nF(this));var v;(v=this.x4)==null||v.call(this);this.x4=g.KS.subscribe(function(){Bx8(n, V);nF(n)})}; g.u.Xq=function(){o6(this);pr8(this);RMM(this);wd.prototype.Xq.call(this)};g.e(kn3,g.F);kn3.prototype.onClick=function(){this.B.logClick(this.element,this.Z)};g.e(geq,g.tn);g.u=geq.prototype;g.u.show=function(){g.tn.prototype.show.call(this);this.B.publish("infopaneldetailvisibilitychange",!0);this.B.logVisibility(this.element,!0);cYp(this,!0)}; g.u.hide=function(){g.tn.prototype.hide.call(this);this.B.publish("infopaneldetailvisibilitychange",!1);this.B.logVisibility(this.element,!1);cYp(this,!1)}; g.u.getId=function(){return this.U}; g.u.OL=function(){return this.itemData.length}; g.u.onVideoDataChange=function(J,K){if(K){var n,X,l,x;this.update({title:((n=K.zd)==null?void 0:(X=n.title)==null?void 0:X.content)||"",body:((l=K.zd)==null?void 0:(x=l.bodyText)==null?void 0:x.content)||""});var V;J=((V=K.zd)==null?void 0:V.trackingParams)||null;this.B.setTrackingParams(this.element,J);V=g.z(this.itemData);for(J=V.next();!J.done;J=V.next())J.value.dispose();this.itemData=[];var v;if((v=K.zd)==null?0:v.ctaButtons)for(K=g.z(K.zd.ctaButtons),v=K.next();!v.done;v=K.next())if(v=g.f(v.value, cKm))v=new kn3(this.B,v,this.G),v.TL&&(this.itemData.push(v),v.qQ(this.items))}}; g.u.Xq=function(){this.hide();g.tn.prototype.Xq.call(this)};g.e(Ulr,g.F);g.u=Ulr.prototype;g.u.onVideoDataChange=function(J,K){Gnd(this,K);this.N_&&yYe(this,this.N_)}; g.u.Vz=function(J){var K=g.U(this.B.getVideoData());this.videoId!==K.videoId&&Gnd(this,K);yYe(this,J.state);this.N_=J.state}; g.u.Fg=function(J){(this.X=J)?this.hide():this.G&&this.show()}; g.u.t3=function(){this.Z||this.HM();this.showControls=!0}; g.u.WD=function(){this.Z||this.MS();this.showControls=!1}; g.u.HM=function(){var J,K=(J=this.B)==null?void 0:J.getPlayerSize();J=K.width<380;var n;K=K.height<(((n=this.B)==null?0:n.isEmbedsShortsMode())?400:280);var X,l;(((X=this.B)==null?0:X.getPlayerStateObject().isCued())||((l=this.B)==null?0:g.E(l.getPlayerStateObject(),1024)))&&J&&K||!this.G||this.X||(this.fade.show(),this.B.publish("infopanelpreviewvisibilitychange",!0),this.B.logVisibility(this.element,!0))}; g.u.MS=function(){this.G&&!this.X&&(this.fade.hide(),this.B.publish("infopanelpreviewvisibilitychange",!1),this.B.logVisibility(this.element,!1))}; g.u.KVG=function(){this.Z=!1;this.showControls||this.MS()};var q8H={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(q8H).reduce(function(J,K){J[q8H[K]]=K;return J},{}); var E_V={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(E_V).reduce(function(J,K){J[E_V[K]]=K;return J},{}); var bfG={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(bfG).reduce(function(J,K){J[bfG[K]]=K;return J},{});var ApF,M5z;ApF=[{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"}];M5z=[{option:0,text:XA(0)},{option:.25,text:XA(.25)},{option:.5,text:XA(.5)},{option:.75,text:XA(.75)},{option:1,text:XA(1)}]; g.Vo=[{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:ApF},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:XA(.5)},{option:-1,text:XA(.75)},{option:0,text:XA(1)},{option:1,text:XA(1.5)},{option:2, text:XA(2)},{option:3,text:XA(3)},{option:4,text:XA(4)}]},{option:"background",text:"Background color",options:ApF},{option:"backgroundOpacity",text:"Background opacity",options:M5z},{option:"windowColor",text:"Window color",options:ApF},{option:"windowOpacity",text:"Window opacity",options:M5z},{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:XA(.25)},{option:.5,text:XA(.5)},{option:.75,text:XA(.75)},{option:1,text:XA(1)}]}];var NPr=[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.e(qId,g.gY);g.u=qId.prototype; g.u.IV=function(J){J.repeat||(this.X.Px=!1);var K=!1,n=J.keyCode,X=iu(J),l=!J.altKey&&!J.ctrlKey&&!J.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||NPr.includes(n)),x=!1,V=!1,v=this.api.S();J.defaultPrevented?(l=!1,V=!0):v.P3&&!this.api.isMutedByEmbedsMutedAutoplay()&&(l=!1);if(n===9)K=!0;else{if(X)switch(n){case 32:case 13:if(X.tagName==="BUTTON"||X.tagName==="A"||X.tagName==="INPUT")K=!0,l=!1;else if(l){var Q=X.getAttribute("role");!Q||Q!=="option"&&Q!=="button"&&Q.indexOf("menuitem")!==0|| (K=!0,X.click(),x=!0)}break;case 37:case 39:case 36:case 35:K=X.getAttribute("role")==="slider";break;case 38:case 40:Q=X.getAttribute("role"),X=n===38?X.previousSibling:X.nextSibling,Q==="slider"?K=!0:l&&(Q==="option"?(X&&X.getAttribute("role")==="option"&&X.focus(),x=K=!0):Q&&Q.indexOf("menuitem")===0&&(X&&X.hasAttribute("role")&&X.getAttribute("role").indexOf("menuitem")===0&&X.focus(),x=K=!0))}if(l&&!x)switch(n){case 38:x=Math.min(this.api.getVolume()+5,100);q8(this.jc,x,!1);this.api.setVolume(x); V=x=!0;break;case 40:x=Math.max(this.api.getVolume()-5,0);q8(this.jc,x,!0);this.api.setVolume(x);V=x=!0;break;case 36:this.api.vp()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),V=x=!0);break;case 35:this.api.vp()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),V=x=!0)}}K&&xW(this,!0);(K||V)&&this.Np.Ln();(x||l&&this.handleGlobalKeyDown(n,J.shiftKey,J.ctrlKey,J.altKey,J.metaKey,J.key,J.code,J.repeat))&&J.preventDefault();v.L&&(J={keyCode:J.keyCode, altKey:J.altKey,ctrlKey:J.ctrlKey,metaKey:J.metaKey,shiftKey:J.shiftKey,handled:J.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.B3("onKeyPress",J))}; g.u.Fw=function(J){var K=J.keyCode;(!this.api.J("web_player_spacebar_control_bugfix")||this.api.J("web_player_spacebar_control_bugfix")&&!this.X.Xv)&&this.handleGlobalKeyUp(K,J.shiftKey,J.ctrlKey,J.altKey,J.metaKey,J.key,J.code)&&J.preventDefault()}; g.u.handleGlobalKeyUp=function(J,K,n,X,l,x,V){this.api.publish("keyboardserviceglobalkeyup",{keyCode:J,shiftKey:K,ctrlKey:n,altKey:X,metaKey:l,key:x,code:V});K=!1;if(this.X.Px)return K;(x=g.Th(this.api.hx()))&&(x=x.v9)&&x.Kv&&(x.gY(J),K=!0);switch(J){case 9:xW(this,!0);K=!0;break;case 32:if(this.api.J("web_speedmaster_spacebar_control")&&(!this.api.J("web_player_spacebar_control_bugfix")&&!this.X.Xv||this.api.J("web_player_spacebar_control_bugfix"))&&!this.api.S().P3){var v,Q;J=(v=this.progressBar)== null?void 0:(Q=v.Z)==null?void 0:Q.isEnabled;K=this.Iz(J)}break;case 39:(J8?X:n)&&!l&&this.api.vp()&&this.api.J("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),v=(v=this.api.getVideoData())?v.k7:[],Q=f6q(v,this.api.getCurrentTime()*1E3),Q!==-1&&this.G!=null&&(this.G.pD(1,v[Q].title),this.api.seekTo(v[Q].startTime/1E3,void 0,void 0,void 0,52),K=!0))}return K}; g.u.handleGlobalKeyDown=function(J,K,n,X,l,x,V,v){v||(this.X.Px=!1);var Q=!1,S=this.api.S();if(S.P3&&!this.api.isMutedByEmbedsMutedAutoplay())return Q;var r=g.Th(this.api.hx());if(r&&(r=r.v9)&&r.Kv)switch(J){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:Q=r.y3(J)}S.N||Q||(Q=x||String.fromCharCode(J).toLowerCase(),this.Z+=Q,"awesome".indexOf(this.Z)===0||this.api.J("web_player_rtr_ctrls")&&"bday".indexOf(this.Z)===0?(Q=!0,4===this.Z.length&&this.Z==="bday"&&this.api.J("web_player_rtr_ctrls")&& (LSe(this.C),this.Np.Ln()),7===this.Z.length&&this.Z==="awesome"&&d7F(this.api.getRootNode(),"ytp-color-party")):(this.Z=Q,Q="awesome".indexOf(this.Z)===0||"bday".indexOf(this.Z)===0));if(!Q&&(!this.api.isMutedByEmbedsMutedAutoplay()||NPr.includes(J))){var C=this.api.getVideoData(),O,H;r=(O=this.progressBar)==null?void 0:(H=O.Z)==null?void 0:H.isEnabled;O=C?C.k7:[];H=J8?X:n;switch(J){case 80:K&&!S.kF&&(F8(this.jc,cLp(),"Previous"),this.api.previousVideo(),Q=!0);break;case 78:K&&!S.kF&&(F8(this.jc, P9(),"Next"),this.api.nextVideo(),Q=!0);break;case 74:this.api.vp()&&(this.api.startSeekCsiAction(),this.G?this.api.J("enable_key_press_seek_logging")?(Q=jK(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.G.g_(-1,10,Q)):this.G.g_(-1,10):F8(this.jc,{j:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Y:[{j:"path",Dv:!0,V:"ytp-svg-fill",D:{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),Q=!0);break;case 76:this.api.vp()&&(this.api.startSeekCsiAction(),this.G?this.api.J("enable_key_press_seek_logging")?(Q=jK(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.G.g_(1,10,Q)):this.G.g_(1,10):F8(this.jc,{j:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Y:[{j:"path",Dv:!0,V:"ytp-svg-fill",D:{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),Q=!0);break;case 37:this.api.vp()&&(this.api.startSeekCsiAction(),H?(H=Wwe(O,this.api.getCurrentTime()*1E3),H!==-1&&this.G!=null&&(this.G.pD(-1,O[H].title),this.api.seekTo(O[H].startTime/1E3,void 0,void 0,void 0,53),Q=!0)):(this.G?this.api.J("enable_key_press_seek_logging")?(Q=jK(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),this.G.g_(-1,5,Q)):this.G.g_(-1,5):F8(this.jc,{j:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36", width:"100%"},Y:[{j:"path",Dv:!0,V:"ytp-svg-fill",D:{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),Q=!0));break;case 39:this.api.vp()&&(this.api.startSeekCsiAction(),H?this.api.J("web_enable_keyboard_shortcut_for_timely_actions")||(H=f6q(O,this.api.getCurrentTime()*1E3),H!==-1&&this.G!=null&&(this.G.pD(1,O[H].title),this.api.seekTo(O[H].startTime/1E3,void 0,void 0,void 0,52),Q=!0)):(this.G!=null?this.api.J("enable_key_press_seek_logging")?(Q=jK(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.G.g_(1,5,Q)):this.G.g_(1, 5):F8(this.jc,{j:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Y:[{j:"path",Dv:!0,V:"ytp-svg-fill",D:{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),Q=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),q8(this.jc,this.api.getVolume(),!1)):(this.api.mute(),q8(this.jc,0,!0));Q=!0;break;case 32:Q=this.api.J("web_speedmaster_spacebar_control")?!this.api.S().kF:this.Iz(r);break;case 75:Q=this.Iz(r);break;case 190:K?S.enableSpeedOptions&&b27(this)&&(Q=this.api.getPlaybackRate(),this.api.setPlaybackRate(Q+.25,!0),Z8e(this.jc,!1),Q=!0):this.api.vp()&&(this.step(1),Q=!0);break;case 188:K? S.enableSpeedOptions&&b27(this)&&(Q=this.api.getPlaybackRate(),this.api.setPlaybackRate(Q-.25,!0),Z8e(this.jc,!0),Q=!0):this.api.vp()&&(this.step(-1),Q=!0);break;case 70:iY3(this.api)&&(this.api.toggleFullscreen().catch(function(){}),Q=!0); break;case 27:r?(this.progressBar.Cr(),Q=!0):this.N()&&(Q=!0)}if(S.controlsType!=="3")switch(J){case 67:g.PZ(this.api.hx())&&(S=this.api.getOption("captions","track"),this.api.toggleSubtitles(),flV(this.jc,!S||S&&!S.displayName),Q=!0);break;case 79:hI(this,"textOpacity");break;case 87:hI(this,"windowOpacity");break;case 187:case 61:hI(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:hI(this,"fontSizeIncrement",!0,!0)}var R;K||n||X||(J>=48&&J<=57?R=J-48:J>=96&&J<=105&&(R=J-96));R!=null&&this.api.vp()&& (this.api.startSeekCsiAction(),S=this.api.getProgressState(),this.api.seekTo(R/10*(S.seekableEnd-S.seekableStart)+S.seekableStart,void 0,void 0,void 0,81),Q=!0);Q&&this.Np.Ln()}this.api.publish("keyboardserviceglobalkeydown",{keyCode:J,shiftKey:K,ctrlKey:n,altKey:X,metaKey:l,key:x,code:V,repeat:v},this.X);return Q}; g.u.step=function(J){this.api.vp();if(this.api.getPlayerStateObject().isPaused()){var K=g.U(this.api.getVideoData()).Z;K&&(K=K.video)&&this.api.seekBy(J/(K.fps||30),void 0,void 0,J>0?77:78)}}; g.u.Iz=function(J){if(!this.api.S().kF){var K;var n,X=(K=this.api.getVideoData())==null?void 0:(n=K.getPlayerResponse())==null?void 0:n.playabilityStatus;if(X){var l;K=((l=g.f(X.miniplayer,MhH))==null?void 0:l.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else K=!1;K&&this.api.I4("onExpandMiniplayer");J?this.progressBar.Fd():(J=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.jc.kt(J),J?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.u.Xq=function(){g.Jv(this.U);g.gY.prototype.Xq.call(this)};g.e(g.vv,g.F);g.vv.prototype.ek=KU(11); g.vv.prototype.WW=function(){var J=this.B.S(),K=J.X||this.B.J("web_player_hide_overflow_button_if_empty_menu")&&this.iH.isEmpty();J=g.pR(J)&&g.pC(this.B)&&g.E(this.B.getPlayerStateObject(),128);var n=this.B.getPlayerSize();this.visible=this.B.l1()&&!J&&n.width>=240&&!g.Eo(g.U(this.B.getVideoData()))&&!K&&!this.G&&!this.B.isEmbedsShortsMode();g.Qq(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.B.Kh();this.B.logVisibility(this.element,this.visible&&this.C)}; g.vv.prototype.NS=function(J){g.F.prototype.NS.call(this,J);this.B.logVisibility(this.element,this.visible&&J)}; g.vv.prototype.Xq=function(){g.F.prototype.Xq.call(this);g.hv(this.element,"ytp-overflow-button-visible")};g.e(AYF,g.tn);g.u=AYF.prototype;g.u.TP=function(J){J=iu(J);g.XG(this.element,J)&&(g.XG(this.G,J)||g.XG(this.closeButton,J)||Zc(this))}; g.u.MS=function(){g.tn.prototype.MS.call(this);this.B.A0(this.element)}; g.u.show=function(){this.Kv&&this.B.publish("OVERFLOW_PANEL_OPENED");g.tn.prototype.show.call(this);this.element.setAttribute("aria-modal","true");NxF(this,!0)}; g.u.hide=function(){g.tn.prototype.hide.call(this);this.element.removeAttribute("aria-modal");NxF(this,!1)}; g.u.onFullscreenToggled=function(J){!J&&this.jO()&&Zc(this)}; g.u.isEmpty=function(){return this.actionButtons.length===0}; g.u.focus=function(){for(var J=g.z(this.actionButtons),K=J.next();!K.done;K=J.next())if(K=K.value,K.Kv){K.focus();break}};g.e(Jrd,g.F);Jrd.prototype.onClick=function(J){g.lA(J,this.api)&&this.api.playVideoAt(this.index)};g.e(Kzr,g.tn);g.u=Kzr.prototype;g.u.show=function(){g.tn.prototype.show.call(this);this.G.T(this.api,"videodatachange",this.DJ);this.G.T(this.api,"onPlaylistUpdate",this.DJ);this.DJ()}; g.u.hide=function(){g.tn.prototype.hide.call(this);g.L0(this.G);this.updatePlaylist(null)}; g.u.DJ=function(){this.updatePlaylist(this.api.getPlaylist());this.api.S().X&&(this.rQ("ytp-playlist-menu-title-name").removeAttribute("href"),this.X&&(this.rR(this.X),this.X=null))}; g.u.Ai=function(){var J=this.playlist,K=J.author,n=K?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",X={CURRENT_POSITION:String(J.index+1),PLAYLIST_LENGTH:String(J.getLength())};K&&(X.AUTHOR=K);this.update({title:J.title,subtitle:g.rK(n,X),playlisturl:this.api.getVideoUrl(!0)});K=J.Z;if(K===this.U)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[J.index];else{n=g.z(this.playlistData);for(X=n.next();!X.done;X=n.next())X.value.dispose(); n=J.getLength();this.playlistData=[];for(X=0;X=this.Z&&!J.X&&!K.isAd()&&!this.api.isEmbedsShortsMode()}else J=!1;this.visible=J;this.Yr(this.visible);g.Qq(this.element,"ytp-search-button-visible",this.visible);g.Qq(this.element,"ytp-show-search-title",!this.api.l1());this.api.logVisibility(this.element,this.visible&&this.C)}; rM.prototype.NS=function(J){g.F.prototype.NS.call(this,J);this.api.logVisibility(this.element,this.visible&&J)};g.e(sF,g.F); sF.prototype.trigger=function(J,K,n,X){this.show();if(this.U&&J!==this.U){var l=1;this.Z&&(l=S5H(this));VWF(this,l,!1);$j3(this)}this.U=J;this.X=this.U===-1?this.L:this.K;J="";K?(this.W+=K,J=g.Iv(this.W)):this.W=0;this.updateValue(this.U===-1?"durationBack":"durationForward",J);if(this.G==="hidden"||this.G==="fading-out")K=0,this.G==="fading-out"&&(K=S5H(this),QG3(this)),hOU(this,K),this.G!=="fading-out"&&vaH(this,this.X.querySelector(".ytp-seek-overlay-arrow-persistent")),this.G="fading-in";else if(this.G=== "fading-in"||this.G==="lingering")K=this.X.querySelector(".ytp-seek-overlay-duration"),J=g.Qg(this.B.S().experiments,"web_player_seek_overlay_duration_bump_scale")||.95,K.animate([{offset:0,transform:"scale(1)"},{offset:.5,transform:"scale("+J+")"},{offset:1,transform:"scale(1)"}],{duration:200,easing:"cubic-bezier(0, 1, 0.1, 1)"}),QG3(this),this.G==="lingering"&&(this.N.stop(),this.N.start());this.GA=(0,g.a)();n&&rr3(this,n,X)}; sF.prototype.tJ=function(J,K,n,X){this.trigger(J,X)}; sF.prototype.g_=function(J,K,n){this.trigger(J,K);n&&(J=J===-1?this.K.visualElement:this.L.visualElement,n={seekData:n},(K=g.i2())&&g.NM(Nq)(void 0,K,J,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",n,void 0))}; sF.prototype.pD=function(J,K,n){this.trigger(J,void 0,K,n)};g.e(g.CF,g.F);g.u=g.CF.prototype;g.u.Ve=KU(8); g.u.onClick=function(){var J=this,K=this.api.S(),n=g.U(this.api.getVideoData(this.api.getPresentingPlayerType())),X=this.api.getPlaylistId();K=this.api.J("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):K.getVideoUrl(n.videoId,X,void 0,!0);if(navigator.share)try{var l=navigator.share({title:n.title,url:K});l instanceof Promise&&l.catch(function(x){CMF(J,x)})}catch(x){x instanceof Error&&CMF(this,x)}else this.G.W$(),Zc(this.X,this.element,!1); this.api.logClick(this.element)}; g.u.WW=function(){var J=this.api.S(),K=this.api.isEmbedsShortsMode();g.Qq(this.element,"ytp-show-share-title",g.pR(J)&&!K);this.G.Mx()&&K?(J=(this.api.S_().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.c7(this.element,"right",J+"px")):K&&g.c7(this.element,"right","0px");this.updateValue("icon",{j:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Y:[{j:"path",Dv:!0,V:"ytp-svg-fill",D:{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=sG7(this);g.Qq(this.element,"ytp-share-button-visible",this.visible);this.Yr(this.visible);this.tooltip.Kh();this.api.logVisibility(this.element,sG7(this)&&this.C)}; g.u.NS=function(J){g.F.prototype.NS.call(this,J);this.api.logVisibility(this.element,this.visible&&J)}; g.u.Xq=function(){g.F.prototype.Xq.call(this);g.hv(this.element,"ytp-share-button-visible")};g.e(H_8,g.tn);g.u=H_8.prototype;g.u.gk=function(J){J=iu(J);g.XG(this.N,J)||g.XG(this.closeButton,J)||Zc(this)}; g.u.MS=function(){g.tn.prototype.MS.call(this);this.tooltip.A0(this.element);this.api.logVisibility(this.G,!1);for(var J=g.z(this.X),K=J.next();!K.done;K=J.next())K=K.value,this.api.hasVe(K.element)&&this.api.logVisibility(K.element,!1)}; g.u.show=function(){var J=this.Kv;g.tn.prototype.show.call(this);this.WW();J||this.api.I4("onSharePanelOpened")}; g.u.Q4Q=function(){this.Kv&&this.WW()}; g.u.WW=function(){var J=this;g.jv(this.element,"ytp-share-panel-loading");g.hv(this.element,"ytp-share-panel-fail");var K=g.U(this.api.getVideoData()),n=this.api.getPlaylistId()&&this.U.checked;K.getSharePanelCommand&&Fw(g.U(this.api.Jd()),K.getSharePanelCommand,{includeListId:n}).then(function(X){J.o4()||(g.hv(J.element,"ytp-share-panel-loading"),eO3(J,X))}); K=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",K);this.updateValue("linkText",K);this.updateValue("shareLinkWithUrl",g.rK("Share link $URL",{URL:K}));V9(this.G);this.api.logVisibility(this.G,!0)}; g.u.onFullscreenToggled=function(J){!J&&this.jO()&&Zc(this)}; g.u.focus=function(){this.G.focus()}; g.u.Xq=function(){g.tn.prototype.Xq.call(this);ROe(this)};g.e(PMV,wd);g.u=PMV.prototype;g.u.Xq=function(){pnF(this);wd.prototype.Xq.call(this)}; g.u.ML=function(J){J.target!==this.dismissButton.element&&(this.HX(!1),this.B.I4("innertubeCommand",this.onClickCommand))}; g.u.ob=function(){this.gQ=!0;this.HX(!0);this.LJ()}; g.u.UH5=function(J){this.W=J;this.LJ()}; g.u.onVideoDataChange=function(J,K){if(J=!!K.videoId&&this.videoId!==K.videoId)this.videoId=K.videoId,this.gQ=!1,this.Aj=!0,this.L=this.QG=!1,pnF(this),mjU(this,!1),this.Z=this.G=!1,Hv(this),I33(this);if(J||!K.videoId)this.GA=this.U=!1;var n,X;if(K==null?0:(n=K.getPlayerResponse())==null?0:(X=n.videoDetails)==null?0:X.isLiveContent)this.DT(!1);else{var l,x,V;K=g.f((l=K.getWatchNextResponse())==null?void 0:(x=l.playerOverlays)==null?void 0:(V=x.playerOverlayRenderer)==null?void 0:V.productsInVideoOverlayRenderer, Zun);this.W=this.enabled=!1;if(K){if(l=K==null?void 0:K.featuredProductsEntityKey){x=g.KS.getState().entities;var v;if((v=hN(x,"featuredProductsEntity",l))==null?0:v.productsData){this.DT(!1);return}}this.enabled=!0;if(!this.U){var Q;v=(Q=K.badgeInteractionLogging)==null?void 0:Q.trackingParams;(this.U=!!v)&&this.B.setTrackingParams(this.badge.element,v||null)}if(!this.GA){var S;if(this.GA=!((S=K.dismissButton)==null||!S.trackingParams)){var r;this.B.setTrackingParams(this.dismissButton.element,((r= K.dismissButton)==null?void 0:r.trackingParams)||null)}}K.isContentForward&&(Q=K.productsData,mjU(this,!0),I33(this),Q=Bj8(this,Q),S=[],Q.length>0&&S.push(Q[0]),Q.length>1&&(r=new g.F({j:"div",V:"ytp-suggested-action-more-products-icon"}),g.Z(this,r),S.push(r),S.push.apply(S,g.m(Q.slice(1)))),this.N=new g.F({j:"div",Y:S,V:"ytp-suggested-action-content-forward-container"}),g.Z(this,this.N),this.PW.element.append(this.N.element));this.text=g.Oe(K.text);var C;if(Q=(C=K.dismissButton)==null?void 0:C.a11yLabel)this.fv= g.Oe(Q);this.onClickCommand=K.onClickCommand;this.timing=K.timing;this.yA()}RNM(this);zc(this);this.LJ()}}; g.u.OA=function(){return!this.W&&this.enabled&&!this.gQ&&!this.B.l1()&&!this.Gi&&(this.L||this.Aj)}; g.u.KX=function(J){wd.prototype.KX.call(this,J);if(this.G||this.Z)this.timing&&OF(this.timing.preview)&&(this.G=!1,Hv(this),this.Z=!1,Hv(this),this.B.Uo("shopping_overlay_preview_collapsed"),this.B.Uo("shopping_overlay_preview_expanded"),J=R6(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),OF(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.B.Uo("shopping_overlay_expanded"),J.end=this.timing.expanded.endSec*1E3),this.B.yA([J])), this.QG=!0,zc(this);Hv(this)}; g.u.DT=function(J){(this.L=J)?(ei(this),zc(this,!1)):(pnF(this),this.Cv.start());this.LJ()}; g.u.yA=function(J){var K=this.timing;J=(J===void 0?0:J)+this.B.getCurrentTime();var n=[],X=K.visible,l=K.preview;K=K.expanded;OF(X)&&(zOd(X,J),n.push(R6(X.startSec,X.endSec,"shopping_overlay_visible")));OF(l)&&(zOd(l,J),X=l.startSec+1,n.push(R6(l.startSec,X,"shopping_overlay_preview_collapsed")),n.push(R6(X,l.endSec,"shopping_overlay_preview_expanded")));OF(K)&&(zOd(K,J),n.push(R6(K.startSec,K.endSec,"shopping_overlay_expanded")));this.B.yA(n)}; g.u.LJ=function(){wd.prototype.LJ.call(this);this.B.getRootNode()&&g.Qq(this.B.getRootNode(),"ytp-shopping-pill-shown",this.OA())};g.e(DjH,g.F); DjH.prototype.WW=function(){var J=this.api.S();this.Yr(g.pR(J)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.Kv);var K=g.U(this.api.getVideoData()),n=!1;this.api.getPresentingPlayerType()===2?n=!!K.videoId&&!!K.isListed&&!!K.author&&!!K.md&&!!K.profilePicture:g.pR(J)&&(n=!!K.videoId&&!!K.md&&!!K.profilePicture&&!g.Eo(K)&&!J.X&&!(J.W&&this.api.getPlayerSize().width<200));var X=K.profilePicture;J=g.pR(J)?K.expandedTitle:K.author;X=X=== void 0?"":X;J=J===void 0?"":J;n?(this.Z!==X&&(this.G.style.backgroundImage="url("+X+")",this.Z=X),this.updateValue("channelLogoLabel",g.rK("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:J})),g.jv(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.hv(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.G,n&&this.C);this.api.logVisibility(this.channelName,n&&this.C);this.subscribeButton&&(this.subscribeButton.channelId=K.OR);this.updateValue("expandedTitle",K.expandedTitle)};g.e(ua,g.tn);ua.prototype.show=function(){g.tn.prototype.show.call(this);this.G.start()}; ua.prototype.hide=function(){g.tn.prototype.hide.call(this);this.G.stop()}; ua.prototype.JL=function(J,K){J==="dataloaded"&&((this.t8=K.t8,this.P3=K.P3,isNaN(this.t8)||isNaN(this.P3))?this.X&&(this.B.Uo("intro"),this.B.removeEventListener(g.o4("intro"),this.W),this.B.removeEventListener(g.XD("intro"),this.N),this.B.removeEventListener("onShowControls",this.U),this.hide(),this.X=!1):(this.B.addEventListener(g.o4("intro"),this.W),this.B.addEventListener(g.XD("intro"),this.N),this.B.addEventListener("onShowControls",this.U),J=new g.KG(this.t8,this.P3,{priority:9,namespace:"intro"}), this.B.yA([J]),this.X=!0))};g.e(eK,g.F);eK.prototype.onClick=function(){this.B.iB()}; eK.prototype.WW=function(){var J=!0;g.pR(this.B.S())&&(J=J&&this.B.S_().getPlayerSize().width>=480);this.Yr(J);this.updateValue("icon",this.B.Do()?{j:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Y:[{j:"path",Dv:!0,D:{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"}}]}: {j:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Y:[{j:"path",Dv:!0,V:"ytp-svg-fill",D:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]})};g.e(kVq,g.F);kVq.prototype.Xq=function(){this.G=null;g.F.prototype.Xq.call(this)};g.e(z8,g.F);z8.prototype.onClick=function(){this.B.I4("innertubeCommand",this.Z)}; z8.prototype.GA=function(J){J!==this.W&&(this.update({title:J,ariaLabel:J}),this.W=J);J?this.show():this.hide()}; z8.prototype.K=function(){this.G.disabled=this.Z==null;g.Qq(this.G,"ytp-chapter-container-disabled",this.G.disabled);this.MH()};g.e(wM,z8);wM.prototype.onClickCommand=function(J){g.f(J,Jk)&&this.MH()}; wM.prototype.updateVideoData=function(J,K){var n,X,l;J=g.f((n=K.getWatchNextResponse())==null?void 0:(X=n.playerOverlays)==null?void 0:(l=X.playerOverlayRenderer)==null?void 0:l.decoratedPlayerBarRenderer,i7);n=g.f(J==null?void 0:J.playerBarActionButton,g.Gt);if(this.B.J("web_player_updated_entrypoint")){this.L=iX(n==null?void 0:n.text);var x;X=(x=n==null?void 0:n.tooltip)!=null?x:"View chapter";this.N.setAttribute("title",X)}this.Z=n==null?void 0:n.command;z8.prototype.K.call(this)}; wM.prototype.MH=function(){var J=this.L,K=this.U.G,n,X=((n=this.B.getLoopRange())==null?void 0:n.type)==="clips";if(K.length>1&&!X){J=this.B.getProgressState().current*1E3;n=la(K,J);J=K[n].title||"Chapters";if(n!==this.currentIndex||this.X)this.B.I4("innertubeCommand",K[n].onActiveCommand),this.currentIndex=n;this.X=!1}else this.X=!0;z8.prototype.GA.call(this,J)};g.e(Pv,g.ro);Pv.prototype.Z=function(){var J;(J=this.element.parentElement)==null||J.classList.contains("ytp-right-controls-left");(this.G=!this.G)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")}; Pv.prototype.isExpanded=function(){return this.G};g.e(I6,g.F);I6.prototype.X=function(J){g.E(J.state,32)?crq(this,this.api.QZ()):this.Kv&&(g.E(J.state,16)||g.E(J.state,1))||this.fade.hide()}; I6.prototype.Tc=function(){var J=this.api.getPlayerStateObject();(g.E(J,32)||g.E(J,16))&&Y53(this)}; I6.prototype.U=function(){this.frameIndex=NaN;Y53(this)}; I6.prototype.hide=function(){this.G&&crq(this,null);g.F.prototype.hide.call(this)};g.e(GVp,g.F);g.u=GVp.prototype;g.u.onClick=function(){var J=this;if(this.B.S().vW||this.B.S().W){this.B.logClick(this.element);try{this.B.toggleFullscreen().catch(function(K){J.qJ(K)})}catch(K){this.qJ(K)}}else Zc(this.message,this.element,!0)}; g.u.qJ=function(J){String(J).includes("fullscreen error")?g.gG(J):g.ko(J);this.bS()}; g.u.bS=function(){this.disable();this.message.HM(this.element,!0)}; g.u.Fj=function(){RV()===this.B.getRootNode()?this.X.start():(this.X.stop(),this.message&&this.message.hide())}; g.u.MX=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var J=window.screen.width*.9,K=window.screen.height*.9,n=Math.max(window.outerWidth,window.innerWidth),X=Math.max(window.outerHeight,window.innerHeight);if(n>X!==J>K){var l=n;n=X;X=l}J>n&&K>X&&this.bS()}}; g.u.disable=function(){var J=this;if(!this.message){var K=(C0(["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.tn(this.B,{j:"div",UM:["ytp-popup","ytp-generic-popup"],D:{role:"alert",tabindex:"0"},Y:[K[0],{j:"a",D:{href:"https://support.google.com/youtube/answer/6276924", target:this.B.S().K},hj:K[2]},K[4]]},100,!0);this.message.hide();g.Z(this,this.message);this.message.subscribe("show",function(n){J.Z.H2(J.message,n)}); g.dv(this.B,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.G)();this.G=null}}; g.u.WW=function(){var J=iY3(this.B),K=this.B.S().W&&this.B.getPlayerSize().width<250;this.Yr(J&&!K);var n;((n=this.B.S())==null?0:n.J("embeds_use_parent_visibility_in_ve_logging"))?this.B.logVisibility(this.element,this.Kv&&this.C):this.B.logVisibility(this.element,this.Kv)}; g.u.F7=function(J){if(J){var K=g.P4(this.B,"Exit full screen","f");this.update({"data-title-no-tooltip":"Exit full screen"});document.activeElement===this.element&&this.B.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(n){g.gG(n)})}else K=g.P4(this.B,"Full screen","f"),this.update({"data-title-no-tooltip":"Full screen"}); J=Ujd(this,J);K=this.message?null:K;this.update({title:K,icon:J});this.Z.o9().Kh()}; g.u.Xq=function(){this.message||((0,this.G)(),this.G=null);g.F.prototype.Xq.call(this)}; g.u.NS=function(J){g.F.prototype.NS.call(this,J);var K;((K=this.B.S())==null?0:K.J("embeds_use_parent_visibility_in_ve_logging"))&&this.B.logVisibility(this.element,this.Kv&&J)};g.e(ia,g.F);ia.prototype.onClick=function(){this.B.logClick(this.element);this.B.seekBy(this.G,!0);var J=this.G>0?1:-1,K=Math.abs(this.G),n;(n=this.B.CA().Pb)&&n.g_(J,K);this.Z.isActive()?this.X=!0:(J=["ytp-jump-spin"],this.G<0&&J.push("backwards"),this.element.classList.add.apply(this.element.classList,g.m(J)),g.M0(this.Z))};g.e(Bv,z8);Bv.prototype.onClickCommand=function(J){g.f(J,thm)&&this.MH()}; Bv.prototype.updateVideoData=function(){var J,K;this.Z=(J=yrq(this))==null?void 0:(K=J.onTap)==null?void 0:K.innertubeCommand;z8.prototype.K.call(this)}; Bv.prototype.MH=function(){var J="",K=this.U.W,n,X=(n=yrq(this))==null?void 0:n.headerTitle;n=X?g.Oe(X):"";var l;X=((l=this.B.getLoopRange())==null?void 0:l.type)==="clips";K.length>1&&!X&&(J=this.B.getProgressState().current*1E3,l=Z2d(K,J),J=l!=null?K[l].title:n,l!=null&&l!==this.currentIndex&&(this.B.I4("innertubeCommand",K[l].onActiveCommand),this.currentIndex=l));z8.prototype.GA.call(this,J)};g.e(ml,g.F);ml.prototype.onClick=function(){this.B.I4("onCollapseMiniplayer");this.B.logClick(this.element)}; ml.prototype.WW=function(){this.visible=!this.B.isFullscreen();this.Yr(this.visible);this.B.logVisibility(this.element,this.visible&&this.C)}; ml.prototype.NS=function(J){g.F.prototype.NS.call(this,J);this.B.logVisibility(this.element,this.visible&&J)};g.e(pF,g.F);pF.prototype.init=function(){this.updateValue("minvalue",this.X);this.updateValue("maxvalue",this.U);this.updateValue("stepvalue",this.N);this.updateValue("slidervalue",this.G);Z_r(this,this.G)}; pF.prototype.PV=function(){LF(this,Number(this.Z.value));this.Z.focus()}; pF.prototype.zx=function(J){if(!J.defaultPrevented){switch(J.code){case "ArrowDown":J=-this.N;break;case "ArrowUp":J=this.N;break;default:return}LF(this,Math.min(this.U,Math.max(Number((this.G+J).toFixed(2)),this.X)))}};g.e(f3d,pF);g.u=f3d.prototype;g.u.onVolumeChange=function(J){if(this.W)this.W=!1;else{var K=J.volume;K===0||J.muted?LF(this,0):LF(this,K)}}; g.u.PV=function(){pF.prototype.PV.call(this);this.L(this.G)}; g.u.zx=function(J){pF.prototype.zx.call(this,J);this.L(this.G)}; g.u.sF=function(J){var K=J.deltaX||J.deltaY;K=J.deltaMode?g.BK(this.G+K,0,100):g.BK(this.G+g.BK(K/10,-10,10),0,100);K===0?LF(this,0):LF(this,K);this.L(K);J.preventDefault()}; g.u.It=function(J,K){this.W=!0;J===0||K?this.B.mute():(this.B.isMuted()&&this.B.unMute(),this.B.setVolume(J))};g.e(WzM,g.F);g.e(D4,g.F);g.u=D4.prototype;g.u.g1=function(J){this.visible=J.width>=300||this.j_;this.Yr(this.visible);this.B.logVisibility(this.element,this.visible&&this.C)}; g.u.Va=function(){this.B.S().PW?this.B.isMuted()?this.B.unMute():this.B.mute():Zc(this.message,this.element,!0);this.B.logClick(this.element)}; g.u.Chm=function(J){if(this.B.S().PW&&this.G)if(J.target===this.X){var K;if(!this.B.oi()||((K=this.G)==null?0:K.isVisible))this.Va();else{var n;(n=this.G)!=null&&T8(n,!0)}}else{var X;(X=this.G)!=null&&T8(X,!0)}else this.Va()}; g.u.onVolumeChange=function(J){this.setVolume(J.volume,J.muted)}; g.u.setVolume=function(J,K){var n=this,X=K?0:J/100,l=this.B.S();J=X===0?1:J>50?1:0;if(this.L!==J){var x=this.cW;isNaN(x)?EaU(this,J):lfH(this.PW,function(v){EaU(n,x+(n.L-x)*v)},250); this.L=J}X=X===0?1:0;if(this.W!==X){var V=this.QG;isNaN(V)?b_r(this,X):lfH(this.Aj,function(v){b_r(n,V+(n.W-V)*v)},250); this.W=X}l.PW&&(l=g.P4(this.B,"Mute","m"),X=g.P4(this.B,"Unmute","m"),this.updateValue("title",K?X:l),this.update({"data-title-no-tooltip":K?"Unmute":"Mute"}),this.tooltip.Kh())}; g.u.NS=function(J){g.F.prototype.NS.call(this,J);this.B.logVisibility(this.element,this.visible&&J)}; var Fz3=["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"],q5e=["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.e(g.dM,g.F);g.u=g.dM.prototype;g.u.onStateChange=function(J){this.RZ(J.state);var K;((K=this.B.S())==null?0:K.J("embeds_use_parent_visibility_in_ve_logging"))&&this.B.logVisibility(this.element,this.Kv&&this.C)}; g.u.RZ=function(J){var K=g.IT(g.U(this.B.getVideoData())),n=!1;J.isOrWillBePlaying()?J=K?4:2:g.E(J,2)?(J=3,n=K):J=1;this.element.disabled=n;if(this.G!==J){K=null;switch(J){case 2:K=g.P4(this.B,"Pause","k");this.update({"data-title-no-tooltip":"Pause"});break;case 3:K="Replay";this.update({"data-title-no-tooltip":"Replay"});break;case 1:K=g.P4(this.B,"Play","k");this.update({"data-title-no-tooltip":"Play"});break;case 4:K="Stop live playback",this.update({"data-title-no-tooltip":"Stop live playback"})}J=== 3?this.update({title:K,icon:ArM(this,J)}):(this.update({title:K}),(K=ArM(this,J))&&this.G&&this.G!==3?j_8(this.transition,this.element,K):this.updateValue("icon",K));this.tooltip.Kh();this.G=J}}; g.u.onVideoDataChange=function(){g.Qq(this.element,"ytp-play-button-playlist",g.pC(this.B))}; g.u.Iz=function(J){this.B.logClick(this.element);if(this.B.getPlayerStateObject().isOrWillBePlaying())this.B.pauseVideo();else{if(this.B.isMinimized()&&this.B.getPlayerStateObject().isCued()){var K={},n;if((n=this.B.getVideoData())==null?0:n.N)K.cttAuthInfo={token:this.B.getVideoData().N,videoId:this.B.getVideoData().videoId};y_("direct_playback",K);this.B.lH().timerName="direct_playback"}this.B.playVideo()}this.B.isMinimized()&&(J==null?void 0:J.type)==="click"&&this.element.blur()}; g.u.NS=function(J){g.F.prototype.NS.call(this,J);var K;((K=this.B.S())==null?0:K.J("embeds_use_parent_visibility_in_ve_logging"))&&this.B.logVisibility(this.element,this.Kv&&J)};g.e(g.kW,g.F);g.u=g.kW.prototype;g.u.onVideoDataChange=function(){NjU(this);this.U&&(this.rR(this.U),this.U=null);this.videoData=this.B.getVideoData(1);if(this.playlist=this.B.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.U=this.T(this.B,"progresssync",this.Fl);this.X=Jh3(this);MWd(this);this.KN(this.B.S_().getPlayerSize())}; g.u.KN=function(J){J=J===void 0?this.B.S_().getPlayerSize():J;var K,n=((K=this.B.getLoopRange())==null?void 0:K.type)==="clips";J=(g.pC(this.B)||this.G&&g.kw(this.B)&&!this.B.J("web_hide_next_button")||KJF(this))&&!n&&(this.G||J.width>=400);this.Yr(J);this.B.logVisibility(this.element,J)}; g.u.onClick=function(J){this.B.logClick(this.element);var K=!0;this.W?K=g.lA(J,this.B):J.preventDefault();K&&(this.G&&this.B.getPresentingPlayerType()===5?this.B.publish("ytoprerollinternstitialnext"):this.G?($B(this.B.lH()),this.B.publish("playlistnextbuttonclicked",this.element),this.B.nextVideo(!0)):this.X?this.B.seekTo(0):($B(this.B.lH()),this.B.publish("playlistprevbuttonclicked",this.element),this.B.previousVideo(!0)))}; g.u.Fl=function(){var J=Jh3(this);J!==this.X&&(this.X=J,MWd(this))}; g.u.Xq=function(){this.Z&&(this.Z(),this.Z=null);NjU(this);g.F.prototype.Xq.call(this)};g.e(ojd,g.F);g.u=ojd.prototype;g.u.St=function(J){this.dg(J.pageX);this.vS(J.pageX+J.deltaX);Xld(this)}; g.u.dg=function(J){this.GA=J-this.j_}; g.u.vS=function(J){J-=this.j_;!isNaN(this.GA)&&this.thumbnails.length>0&&(this.K=J-this.GA,this.thumbnails.length>0&&this.K!==0&&(this.X=this.L+this.K,J=hIF(this,this.X),this.X<=this.G/2&&this.X>=Vqf(this)?(this.api.seekTo(J,!1,void 0,void 0,25),g.c7(this.Aj,"transform","translateX("+(this.X-this.G/2)+"px)"),nje(this,J)):this.X=this.L))}; g.u.LF=function(){this.QG&&(this.QG.cR=!0);var J=(0,g.a)()-this.kF<300;if(Math.abs(this.K)<5&&!J){this.kF=(0,g.a)();J=this.GA+this.K;var K=this.G/2-J;this.dg(J);this.vS(J+K);Xld(this);this.api.logClick(this.N)}Xld(this)}; g.u.YZ=function(){gM(this,this.api.getCurrentTime())}; g.u.play=function(J){this.api.seekTo(hIF(this,this.X),void 0,void 0,void 0,26);this.api.playVideo();J&&this.api.logClick(this.playButton)}; g.u.onExit=function(J){this.api.seekTo(this.Cv,void 0,void 0,void 0,63);this.api.playVideo();J&&this.api.logClick(this.dismissButton)}; g.u.s_=function(J,K){this.j_=J;this.G=K;gM(this,this.api.getCurrentTime())}; g.u.enable=function(){this.isEnabled||(this.isEnabled=!0,this.Cv=this.api.getCurrentTime(),nje(this,this.Cv),g.Qq(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.PW=this.T(this.element,"wheel",this.St),this.logVisibility(this.isEnabled))}; g.u.disable=function(){this.isEnabled=!1;this.hide();g.Qq(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.PW&&this.rR(this.PW);this.logVisibility(this.isEnabled)}; g.u.reset=function(){this.disable();this.U=[];this.MQ=!1}; g.u.logVisibility=function(J){this.api.logVisibility(this.element,J);this.api.logVisibility(this.N,J);this.api.logVisibility(this.dismissButton,J);this.api.logVisibility(this.playButton,J)}; g.u.Xq=function(){for(;this.Z.length;){var J=void 0;(J=this.Z.pop())==null||J.dispose()}g.F.prototype.Xq.call(this)}; g.e(lqU,g.F);g.e(xA7,g.F);g.e(vjd,g.F);g.e(cv,g.F);cv.prototype.xr=function(J){return J==="PLAY_PROGRESS"?this.L:J==="LOAD_PROGRESS"?this.W:J==="LIVE_BUFFER"?this.N:this.X};SPf.prototype.update=function(J,K,n,X){n=n===void 0?0:n;this.width=K;this.U=n;this.G=K-n-(X===void 0?0:X);this.position=g.BK(J,n,n+this.G);this.X=this.position-n;this.Z=this.X/this.G};g.e(rhf,g.F);g.e(g.UF,g.ro);g.u=g.UF.prototype; g.u.I6=function(){var J=!1,K=this.api.getVideoData();if(!K)return J;this.api.Uo("timedMarkerCueRange");OiF(this);for(var n=g.z(K.wQ),X=n.next();!X.done;X=n.next()){X=X.value;var l=void 0,x=(l=this.fv[X])==null?void 0:l.markerType;l=void 0;var V=(l=this.fv[X])==null?void 0:l.markers;if(!V)break;if(x==="MARKER_TYPE_TIMESTAMPS"){J=g.z(V);for(x=J.next();!x.done;x=J.next()){l=x.value;x=new rhf;V=void 0;x.title=((V=l.title)==null?void 0:V.simpleText)||"";x.timeRangeStartMillis=Number(l.startMillis);x.G= Number(l.durationMillis);var v=V=void 0;x.onActiveCommand=(v=(V=l.onActive)==null?void 0:V.innertubeCommand)!=null?v:void 0;wlf(this,x)}Pzk(this,this.W);J=this.W;x=this.kO;l=[];V=null;for(v=0;vQ&&(V.end=Q);Q=a6d(Q,Q+r);l.push(Q);V=Q;x[Q.id]=J[v].onActiveCommand}}this.api.yA(l);this.k7=this.fv[X];J=!0}else if(x==="MARKER_TYPE_HEATMAP"){X=this.fv[X];r=S=l=Q=v=V=void 0;if(X&& X.markers){x=(l=(r=X.markersMetadata)==null?void 0:(S=r.heatmapMetadata)==null?void 0:S.minHeightDp)!=null?l:0;l=(V=(Q=X.markersMetadata)==null?void 0:(v=Q.heatmapMetadata)==null?void 0:v.maxHeightDp)!=null?V:60;V=this.G.length;v=null;for(Q=0;Q=r&&R<=C&&S.push(H)}l>0&&(this.QG.style.height= l+"px");r=this.U[Q];C=S;H=x;var w=l,P=Q===0;P=P===void 0?!1:P;QA8(r,w);O=C;R=r.Z;P=P===void 0?!1:P;var B=1E3/O.length,p=[];p.push({x:0,y:100});for(var k=0;k0&&(v=S[S.length-1])}g.tI(this)}l=void 0;x=[];if(X=(l=X.markersDecoration)==null?void 0:l.timedMarkerDecorations)for(X=g.z(X),l=X.next();!l.done;l=X.next())l=l.value,Q=v=V=void 0,x.push({visibleTimeRangeStartMillis:(V=l.visibleTimeRangeStartMillis)!=null?V:-1,visibleTimeRangeEndMillis:(v=l.visibleTimeRangeEndMillis)!=null?v:-1,decorationTimeMillis:(Q=l.decorationTimeMillis)!= null?Q:NaN,label:l.label?g.Oe(l.label):""});X=x;this.heatMarkersDecorations=X}}K.f4=this.W;g.Qq(this.element,"ytp-timed-markers-enabled",J);return J}; g.u.s_=function(){g.tI(this);fF(this);Pzk(this,this.W);if(this.Z){var J=g.W7(this.element).x||0;this.Z.s_(J,this.N)}}; g.u.sZx=function(){var J=this.api.getVideoData();J&&gje(this,J)}; g.u.onClickCommand=function(J){if(J=g.f(J,Jk)){var K=J.key;J.isVisible&&K&&mAk(this,K)}}; g.u.qoF=function(J){this.api.I4("innertubeCommand",this.kO[J.id])}; g.u.MH=function(){fF(this);var J=this.api.getCurrentTime();(Jthis.clipEnd)&&this.dl()}; g.u.mL=function(J){if(!J.defaultPrevented){var K=!1;switch(J.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);K=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);K=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);K=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);K=!0;break;case 38:this.api.J("enable_key_press_seek_logging")&&ba(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);K=!0;break;case 40:this.api.J("enable_key_press_seek_logging")&&ba(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),K=!0}K&&J.preventDefault()}}; g.u.JL=function(J,K){this.updateVideoData(K,J==="newdata")}; g.u.fb=function(){this.JL("newdata",g.U(this.api.getVideoData()))}; g.u.updateVideoData=function(J,K){K=K===void 0?!1:K;var n=!!J&&J.TL();n&&(q2(J)||dAq(this)?this.Pp=!1:this.Pp=J.allowLiveDvr,g.Qq(this.api.getRootNode(),"ytp-enable-live-buffer",!(J==null||!q2(J))),this.api.J("enable_custom_playhead_parsing")&&gje(this,J));Ej3(this,this.api.vp());if(K){if(n){K=J.clipEnd;this.clipStart=J.clipStart;this.clipEnd=K;AI(this);for(FA(this,this.GA,this.vW);this.U.length>0;)this.U.pop().dispose();this.heatMarkersDecorations=[];this.iR={};var X;(X=this.Z)==null||X.reset(); nt(this);g.Qq(this.api.getRootNode(),"ytp-fine-scrubbing-exp",G8(this))}else this.dl();this.Zg()}if(J){var l;X=((l=this.nU)==null?void 0:l.type)==="clips";if(l=!J.isLivePlayback){l=g.U(this.api.getVideoData());K=g.BF(l);n=RIf(l);var x;l=K!=null||n!=null&&n.length>0||((x=l.yD)==null?void 0:x.length)>0}if(l&&!X){x=g.U(this.api.getVideoData());X=g.BF(x);l=!1;if(X==null?0:X.markersMap){l=g.U(this.api.getVideoData());var V;l.qM=((V=X.visibleOnLoad)==null?void 0:V.key)||l.qM;V=g.z(X.markersMap);for(X=V.next();!X.done;X= V.next())X=X.value,X.key&&X.value&&(this.iR[X.key]=X.value,X.value.onChapterRepeat&&(l.Nj=X.value.onChapterRepeat));l.qM!=null&&mAk(this,l.qM);l=!0}var v;if(((v=x.yD)==null?void 0:v.length)>0){v=g.KS.getState().entities;V=g.z(x.yD);for(X=V.next();!X.done;X=V.next()){X=X.value;n=void 0;K=(n=hN(v,"macroMarkersListEntity",X))==null?void 0:n.markersList;var Q=n=void 0;if(((n=K)==null?void 0:n.markerType)==="MARKER_TYPE_TIMESTAMPS"||((Q=K)==null?void 0:Q.markerType)==="MARKER_TYPE_HEATMAP")this.fv[X]= K}l=this.I6()||l}!l&&(v=RIf(x))&&(eIU(this,v),x.k7=this.G,uvf(this));ch7(this,null);J.Xy&&this.U.length===0&&(J=J.Xy,v=J.key,J.isVisible&&v&&mAk(this,v))}else sAe(this),OiF(this)}fF(this)}; g.u.yK=function(J){this.L&&!g.E(J.state,32)&&this.api.getPresentingPlayerType()!==3&&this.L.cancel();var K;((K=this.Z)==null?0:K.isEnabled)&&g.E(J.state,8)&&this.api.pauseVideo();J=this.api.getPresentingPlayerType()===2||!this.api.vp()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.Qq(this.H3,"ytp-hide-scrubber-button",J)}; g.u.sN=function(J){var K=!!this.nU!==!!J,n=this.nU;this.nU=J;ch7(this,n);(J==null?void 0:J.type)!=="clips"&&J||(J?(this.updateValue("clipstarticon",pJM()),this.updateValue("clipendicon",pJM()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",etH()),this.updateValue("clipendicon",uzF()),this.updateValue("clipstarttitle","Watch full video"),this.updateValue("clipendtitle","Watch full video")),K&&(this.updateVideoData(this.api.getVideoData(), !0),g.tI(this)),AI(this));FA(this,this.GA,this.vW)}; g.u.P_j=function(J,K,n){var X=g.W7(this.element),l=Z4(this).G,x=n?n.getAttribute("data-tooltip"):void 0,V=n?n.getAttribute("data-position"):void 0,v=n?n.getAttribute("data-offset-y"):void 0;v=v?Number(v):0;V&&(J=gf(this.X,Number(n.getAttribute("data-position")),0)*l+g.W7(this.progressBar).x);this.Dm.x=J-X.x;this.Dm.y=K-X.y;J=Z4(this);n=EF(this,J);K=0;var Q;if((Q=this.api.getVideoData())==null?0:q2(Q))(Q=this.api.getProgressState().seekableEnd)&&n>Q&&(n=Q,J.position=gf(this.X,Q)*Z4(this).G),K=this.X.Z; dAq(this)&&(K=this.X.Z);Q=x||g.Iv(this.Pp?n-this.X.G:n-K);K=J.position+this.hd;n-=this.api.Ti();var S;if((S=this.Z)==null||!S.isEnabled)if(this.api.QZ()){if(this.G.length>1){S=q$(this,this.Dm.x,!0);if(!this.nU)for(X=0;X1)for(X=0;X0)for(S=this.Dm.x,X=g.z(this.W),l=X.next();!l.done;l=X.next())l=l.value,V=yo(this,l.timeRangeStartMillis/ (this.X.G*1E3),Z4(this)),g.Qq(l.element,"ytp-timed-marker-hover",V<=S&&V+6>=S);X=this.tooltip.scale;S=this.api.J("delhi_modern_web_player")?67:45;v=(isNaN(v)?0:v)-S*X;this.api.J("web_key_moments_markers")?this.k7?(S=Z2d(this.W,n*1E3),S=S!=null?this.W[S].title:""):(S=la(this.G,n*1E3),S=this.G[S].title):(S=la(this.G,n*1E3),S=this.G[S].title);S||(v+=16*X);this.tooltip.scale===.6&&(g.AS(this.api.S())?(v=this.api.S_().getPlayerSize().height-225,X=this.api.J("delhi_modern_web_player")?70:110,v=S?v+X:v+ X+16):v=S?110:126);X=la(this.G,n*1E3);this.MQ=YPf(this,n,X)?X:YPf(this,n,X+1)?X+1:-1;g.Qq(this.api.getRootNode(),"ytp-progress-bar-snap",this.MQ!==-1&&this.G.length>1);X=!1;l=g.z(this.heatMarkersDecorations);for(V=l.next();!V.done;V=l.next()){V=V.value;var r=n*1E3;r>=V.visibleTimeRangeStartMillis&&r<=V.visibleTimeRangeEndMillis&&(S=V.label,Q=g.Iv(V.decorationTimeMillis/1E3),X=!0)}this.P3!==X&&(this.P3=X,this.api.logVisibility(this.zL,this.P3));g.Qq(this.api.getRootNode(),"ytp-progress-bar-decoration", X);X=160*this.tooltip.scale*2;l=S.length*(this.K?8.55:5.7);l=l<=X?l:X;V=l<160*this.tooltip.scale;X=3;!V&&l/2>J.position&&(X=1);!V&&l/2>this.N-J.position&&(X=2);this.api.S().W&&(v-=10);this.U.length&&this.U[0].TL&&(v-=14*(this.K?2:1),this.Cv||(this.Cv=!0,this.api.logVisibility(this.QG,this.Cv)));var C;if(G8(this)&&(((C=this.Z)==null?0:C.isEnabled)||this.wQ>0)){var O;v-=((O=this.Z)==null?0:O.isEnabled)?N$(this):this.wQ}C=void 0;G8(this)&&!this.api.J("web_player_hide_fine_scrubbing_edu")&&(C="Pull up for precise seeking", this.j_||(this.j_=!0,this.api.logVisibility(this.ih,this.j_)));this.tooltip.wl(K,n,Q,!!x,v,S,X,C)}else this.tooltip.wl(K,n,Q,!!x,v);g.jv(this.api.getRootNode(),"ytp-progress-bar-hover");DAe(this)}; g.u.BRQ=function(){this.Zg();g.hv(this.api.getRootNode(),"ytp-progress-bar-hover");this.Cv&&(this.Cv=!1,this.api.logVisibility(this.QG,this.Cv));this.j_&&(this.j_=!1,this.api.logVisibility(this.ih,this.j_))}; g.u.jZG=function(J,K){var n=g.W7(this.element);this.PM=J-n.x;G8(this)&&this.Z&&(this.Z.MQ?gM(this.Z,this.api.getCurrentTime()):jAk(this.Z),this.Z.show(),g.Qq(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.Z.isEnabled));this.CH&&(this.CH.dispose(),this.CH=null);this.CL=K;this.Nk=this.api.getCurrentTime();this.G.length>1&&this.MQ!==-1?this.api.seekTo(this.G[this.MQ].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(EF(this,Z4(this)),!1,void 0,void 0,7);g.jv(this.element,"ytp-drag");(this.oO= this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()}; g.u.o4d=function(){if(G8(this)&&this.Z){var J=N$(this);this.wQ>=J*.5?(this.Z.enable(),gM(this.Z,this.api.getCurrentTime()),qPp(this,J)):nt(this)}if(g.E(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var K;if((K=this.Z)==null?0:K.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.G.length>1&&this.MQ!==-1)this.api.J("html5_enable_progress_bar_slide_seek_logging")&&ba(this,this.Nk,this.G[this.MQ].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.G[this.MQ].startTime/1E3,void 0,void 0,void 0,7);else{J=EF(this,Z4(this));this.api.J("html5_enable_progress_bar_slide_seek_logging")&&ba(this,this.Nk,J,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(J,void 0,void 0,void 0,7);K=g.z(this.heatMarkersDecorations);for(var n=K.next();!n.done;n=K.next())n=n.value,J*1E3>=n.visibleTimeRangeStartMillis&&J*1E3<=n.visibleTimeRangeEndMillis&& this.api.logClick(this.zL)}g.hv(this.element,"ytp-drag");this.cW&&(this.Aj.src=this.cW);this.oO&&!g.E(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.u.NRm=function(J,K){var n=this,X=Z4(this),l=EF(this,X);this.api.J("enable_custom_playhead_parsing")&&!this.api.S_().xu&&(X.position>this.PM+2?this.KU&&(this.Aj.src=this.KU):X.position1);this.Yr(J&&this.B.S_().getPlayerSize().width>=400);this.B.logVisibility(this.element,this.Kv);var K=1;J&&this.isActive()&&(K=2);if(this.G!==K){this.G=K;switch(K){case 1:this.updateValue("icon",{j:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Y:[{j:"path",Dv:!0,D:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z", fill:"#fff"}}]});break;case 2:this.updateValue("icon",g.H6U())}g.Qq(this.element,"ytp-remote-button-active",this.isActive())}}; o_.prototype.Z=function(){if(this.B.getOption("remote","quickCast"))this.B.setOption("remote","quickCast",!0);else{var J=this.Zv,K=this.element;if(J.jO())J.MS();else{J.initialize();a:{var n=g.z(J.Dh.items);for(var X=n.next();!X.done;X=n.next())if(X=X.value,X.priority===1){n=X;break a}n=null}n&&(n.open(),J.HM(K));J.HM(K)}}this.B.logClick(this.element)};g.e(Xg,g.F);Xg.prototype.G=function(J){var K=this.B.S(),n=400;this.B.J("web_player_small_hbp_settings_menu")&&K.N?n=300:K.W&&(n=200);J=this.Z&&J.width>=n;this.Yr(J);this.B.J("embeds_use_parent_visibility_in_ve_logging")?this.B.logVisibility(this.element,J&&this.C):this.B.logVisibility(this.element,J)}; Xg.prototype.X=function(){if(this.Zv.Kv)this.Zv.MS();else{var J=g.PZ(this.B.hx());J&&!J.loaded&&(J.Dd("tracklist",{includeAsr:!0}).length||J.load());this.B.logClick(this.element);this.Zv.HM(this.element)}}; Xg.prototype.updateBadge=function(){var J=this.B.isHdr(),K=this.B.getPresentingPlayerType(),n=K!==2&&K!==3,X=g.Dc(this.B),l=n&&!!g.Th(this.B.hx());K=l&&X.displayMode===1;X=l&&X.displayMode===2;n=(l=K||X)||!n?null:this.B.getPlaybackQuality();g.Qq(this.element,"ytp-hdr-quality-badge",J);g.Qq(this.element,"ytp-hd-quality-badge",!J&&(n==="hd1080"||n==="hd1440"));g.Qq(this.element,"ytp-4k-quality-badge",!J&&n==="hd2160");g.Qq(this.element,"ytp-5k-quality-badge",!J&&n==="hd2880");g.Qq(this.element,"ytp-8k-quality-badge", !J&&n==="highres");g.Qq(this.element,"ytp-3d-badge-grey",!J&&l&&K);g.Qq(this.element,"ytp-3d-badge",!J&&l&&X)};g.e(lp,oI);lp.prototype.isLoaded=function(){var J=g.LH(this.B.hx());return J!==void 0&&J.loaded}; lp.prototype.WW=function(){g.LH(this.B.hx())!==void 0&&this.B.getPresentingPlayerType()!==3?this.G||(this.Zv.qH(this),this.G=!0):this.G&&(this.Zv.fl(this),this.G=!1);X4(this,this.isLoaded())}; lp.prototype.onSelect=function(J){this.isLoaded();J?this.B.loadModule("annotations_module"):this.B.unloadModule("annotations_module");this.B.publish("annotationvisibility",J)}; lp.prototype.Xq=function(){this.G&&this.Zv.fl(this);oI.prototype.Xq.call(this)};g.e(xZ,g.gd);xZ.prototype.WW=function(){var J=this.B.getAvailableAudioTracks();J.length>1?(this.AL(g.ff(J,this.G)),this.tracks=g.GO(J,this.G,this),this.countLabel.wR(J.length?" ("+J.length+")":""),this.publish("size-change"),this.Oy(this.G(this.B.getAudioTrack())),this.enable(!0)):this.enable(!1)}; xZ.prototype.x7=function(J){g.gd.prototype.x7.call(this,J);this.B.setAudioTrack(this.tracks[J]);this.Zv.KA()}; xZ.prototype.G=function(J){return J.toString()};g.e(j0,oI); j0.prototype.Z=function(){var J=this.B.getPresentingPlayerType();if(J!==2&&J!==3&&g.kw(this.B))this.G||(this.Zv.qH(this),this.G=!0,this.X.push(this.T(this.B,"videodatachange",this.Z)),this.X.push(this.T(this.B,"videoplayerreset",this.Z)),this.X.push(this.T(this.B,"onPlaylistUpdate",this.Z)),this.X.push(this.T(this.B,"autonavchange",this.U)),J=g.U(this.B.getVideoData()),this.U(J.autonavState),this.B.logVisibility(this.element,this.G));else if(this.G){this.Zv.fl(this);this.G=!1;J=g.z(this.X);for(var K= J.next();!K.done;K=J.next())this.rR(K.value)}}; j0.prototype.U=function(J){X4(this,J!==1)}; j0.prototype.onSelect=function(J){this.B.X0(J?2:1);this.G&&(this.B.logVisibility(this.element,this.G),this.B.logClick(this.element))}; j0.prototype.Xq=function(){this.G&&this.Zv.fl(this);oI.prototype.Xq.call(this)};g.e(AhV,g.at);AhV.prototype.onClick=function(J){J.preventDefault();var K,n;(K=g.s2(this.B))==null||(n=K.NB())==null||n.MS();var X,l;(X=g.s2(this.B))==null||(l=X.dY())==null||l.HM(J.target)};g.e(Mqf,g.gd);g.u=Mqf.prototype; g.u.rd=function(){var J=this.B.getPresentingPlayerType();if(J!==2&&J!==3){this.Aj=this.B.J9();var K=this.B.getAvailableQualityLevels();if(this.G){this.U={};J=g.v4(this.B,"getAvailableQualityData",[]);J=g.z(J);for(var n=J.next();!n.done;n=J.next())n=n.value,this.U[n.qualityLabel]=n;J=Object.keys(this.U);K[K.length-1]==="auto"&&J.push("auto");this.cW=new Set(K)}else if(this.N){n=g.v4(this.B,"getAvailableQualityData",[]);J=[];n=g.z(n);for(var X=n.next();!X.done;X=n.next())X=X.value,this.K[X.quality]= X,X.quality&&J.push(X.quality);K[K.length-1]==="auto"&&J.push("auto")}else J=K;g.Qdk(this.B)&&this.B.sD()&&J.unshift("missing-qualities");K=this.B.app.a4();n=K.getVideoData();if(!n.Z||!n.Z.video||n.Z.video.qualityOrdinal<1080||n.WF)K=!1;else{X=/^qsa/.test(n.clientPlaybackNonce);var l="r";n.Z.id.indexOf(";")>=0&&(X=/^[a-p]/.test(n.clientPlaybackNonce),l="x");X?(K.Zm("iqss",{trigger:l},!0),K=!0):K=!1}K&&J.unshift("inline-survey");this.AL(J);K=g.U(this.B.getVideoData()).cotn?!0:!1;n=this.QG.qx();n=!g.AS(this.B.S())|| !(K===void 0?0:K)||!(n===void 0||n);K=this.Z;n=n===void 0?!1:n;K.O0&&g.Qq(K.rQ("ytp-panel-footer"),"ytp-panel-hide-footer",n===void 0?!1:n);if(J.length){this.ID();this.enable(!0);return}}this.enable(!1)}; g.u.ID=function(){if(this.G){var J=this.B.getPreferredQuality();this.cW.has(J)&&(this.W=this.B.getPlaybackQuality(),this.GA=this.B.getPlaybackQualityLabel(),J==="auto"?(this.Oy(J),this.wR(this.xL(J))):this.Oy(this.GA))}else J=this.B.getPreferredQuality(),this.options[J]&&(this.W=this.B.getPlaybackQuality(),this.Oy(J),J==="auto"&&this.wR(this.xL(J)))}; g.u.x7=function(J){if(J!=="missing-qualities"){g.gd.prototype.x7.call(this,J);var K=this.G?this.U[J]:this.K[J];var n=K==null?void 0:K.quality,X=K==null?void 0:K.formatId,l=K==null?void 0:K.paygatedQualityDetails;K=l==null?void 0:l.endpoint;if(l){var x;l=(x=this.options[J])==null?void 0:x.element;this.B.logClick(l)}if(this.G){var V,v;if((V=g.f(K,g.kRg))==null?0:(v=V.popup)==null?0:v.notificationActionRenderer)this.B.I4("innertubeCommand",K);else if(K){this.B.I4("innertubeCommand",K);return}X?this.B.setPlaybackQuality(n, X):this.B.setPlaybackQuality(n)}else{if(this.N){var Q,S;if((Q=g.f(K,g.kRg))==null?0:(S=Q.popup)==null?0:S.notificationActionRenderer)this.B.I4("innertubeCommand",K);else if(K){this.B.I4("innertubeCommand",K);return}}this.B.setPlaybackQuality(J)}this.Zv.MS();this.rd()}}; g.u.open=function(){for(var J=g.z(Object.values(this.options)),K=J.next();!K.done;K=J.next()){K=K.value;var n=void 0;this.B.hasVe((n=K)==null?void 0:n.element)&&(n=void 0,this.B.logVisibility((n=K)==null?void 0:n.element,!0))}g.gd.prototype.open.call(this);this.B.logClick(this.element)}; g.u.XM=function(J,K,n){var X=this;if(J==="missing-qualities")return new g.at({j:"a",UM:["ytp-menuitem"],D:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.B.S().K,tabindex:"0",role:"menuitemradio"},Y:[{j:"div",UM:["ytp-menuitem-label"],hj:"{{label}}"}]},K,this.xL(J));if(J!=="inline-survey"){var l,x=(l=this.G?this.U[J]:this.K[J])==null?void 0:l.paygatedQualityDetails;l=x==null?void 0:x.veType;x=x==null?void 0:x.trackingParams;K=g.gd.prototype.XM.call(this,J,K,n);x?(this.B.createServerVe(K.element, this,!0),this.B.setTrackingParams(K.element,x)):l&&this.B.createClientVe(K.element,this,l,!0);return K}J=[{j:"span",hj:"Looks good?"}];n=g.z([!0,!1]);x=n.next();for(l={};!x.done;l={OX:void 0},x=n.next())l.OX=x.value,x=new g.F({j:"span",V:"ytp-menuitem-inline-survey-response",Y:[l.OX?mHe():wJF()],D:{tabindex:"0",role:"button"}}),x.listen("click",function(V){return function(){var v=X.B.app.a4();v.Zm("iqsr",{tu:V.OX});v.getVideoData().WF=!0;X.Zv.MS();X.rd()}}(l)),J.push(x); return new g.at({j:"div",V:"ytp-menuitem",D:{"aria-disabled":"true"},Y:[{j:"div",UM:["ytp-menuitem-label"],Y:J}]},K)}; g.u.xL=function(J,K){K=K===void 0?!1:K;if(J==="missing-qualities")return{j:"div",hj:"Missing options?"};if(J==="inline-survey")return"";var n=this.N||this.G?[KaH(this,J,K,!1)]:[JRe(this,J)];var X=this.B.getPreferredQuality();K||X!=="auto"||J!=="auto"||(n.push(" "),this.G?n.push(KaH(this,this.GA,K,!0,["ytp-menu-label-secondary"])):this.N?n.push(KaH(this,this.W,K,!0,["ytp-menu-label-secondary"])):n.push(JRe(this,this.W,["ytp-menu-label-secondary"])));return{j:"div",Y:n}};g.e(Vm,pF);Vm.prototype.PV=function(){pF.prototype.PV.call(this);this.W&&n$f(this)}; Vm.prototype.GA=function(){this.L()}; Vm.prototype.K=function(){this.B.setPlaybackRate(this.G,!0)}; Vm.prototype.zx=function(J){pF.prototype.zx.call(this,J);this.L();n$f(this);J.preventDefault()};g.e(h0,g.F);g.u=h0.prototype;g.u.init=function(){this.UG(this.G);this.updateValue("minvalue",this.Z);this.updateValue("maxvalue",this.X)}; g.u.DH=function(J){if(!J.defaultPrevented){switch(J.keyCode){case 37:case 40:var K=-this.L;break;case 39:case 38:K=this.L;break;default:return}this.UG(this.G+K);J.preventDefault()}}; g.u.zP=function(J){var K=this.G;K+=(J.deltaX||-J.deltaY)<0?-this.K:this.K;this.UG(K);J.preventDefault()}; g.u.OF=function(J){J=(J-g.W7(this.U).x)/this.GA*this.range+this.Z;this.UG(J)}; g.u.UG=function(J,K){K=K===void 0?"":K;J=g.BK(J,this.Z,this.X);K===""&&(K=J.toString());this.updateValue("valuenow",J);this.updateValue("valuetext",K);this.QG.style.left=(J-this.Z)/this.range*(this.GA-this.MQ)+"px";this.G=J}; g.u.focus=function(){this.PW.focus()};g.e(vS,h0);vS.prototype.Aj=function(){this.B.setPlaybackRate(this.G,!0)}; vS.prototype.UG=function(J){h0.prototype.UG.call(this,J,XqH(this,J).toString());this.N&&(o$8(this),this.cW())}; vS.prototype.updateValues=function(){var J=this.B.getPlaybackRate();XqH(this,this.G)!==J&&(this.UG(J),o$8(this))};g.e(l_3,g.ro);l_3.prototype.focus=function(){this.G.focus()};g.e(xfk,PY);g.e(jPr,g.gd);g.u=jPr.prototype;g.u.xL=function(J){return J==="1"?"Normal":J.toLocaleString()}; g.u.WW=function(){var J,K=(J=this.B.getVideoData())==null?void 0:J.NH();J=this.B.getPresentingPlayerType(K);this.enable(J!==2&&J!==3);v$q(this)}; g.u.AL=function(J){g.gd.prototype.AL.call(this,J);this.W&&this.W.Z.focus()}; g.u.Yg=function(J){g.gd.prototype.Yg.call(this,J);J?(this.GA=this.T(this.B,"onPlaybackRateChange",this.onPlaybackRateChange),v$q(this),Vsr(this,this.B.getPlaybackRate())):(this.rR(this.GA),this.GA=null)}; g.u.onPlaybackRateChange=function(J){var K=this.B.getPlaybackRate();!this.U&&this.K.includes(K)||hxd(this,K);Vsr(this,J)}; g.u.XM=function(J,K,n){return J===this.G&&QPk(this.B)?g.gd.prototype.XM.call(this,J,K,n,{j:"div",V:"ytp-speed-slider-menu-footer",Y:[this.W]}):g.gd.prototype.XM.call(this,J,K,n)}; g.u.x7=function(J){g.gd.prototype.x7.call(this,J);J===this.G?this.B.setPlaybackRate(this.N,!0):this.B.setPlaybackRate(Number(J),!0);QPk(this.B)&&J===this.G||this.Zv.KA()}; g.u.SD=function(J){var K=J===this.G;this.U=!1;K&&Qm(this.B)&&!QPk(this.B)?(J=new xfk(this.B),g.mU(this.Zv,J)):g.gd.prototype.SD.call(this,J)};g.e(S4r,g.gd);g.u=S4r.prototype;g.u.Oy=function(J){g.gd.prototype.Oy.call(this,J)}; g.u.Fs=function(J){return J.option.toString()}; g.u.getOption=function(J){return this.settings[J]}; g.u.xL=function(J){return this.getOption(J).text||""}; g.u.x7=function(J){g.gd.prototype.x7.call(this,J);this.publish("settingChange",this.setting,this.settings[J].option)};g.e(S0,g.Ib);S0.prototype.q3=function(J){for(var K=g.z(Object.keys(J)),n=K.next();!n.done;n=K.next()){var X=n.value;if(n=this.qm[X]){var l=J[X].toString();X=!!J[X+"Override"];n.options[l]&&(n.Oy(l),n.U.element.setAttribute("aria-checked",String(!X)),n.G.element.setAttribute("aria-checked",String(X)))}}}; S0.prototype.eO=function(J,K){this.publish("settingChange",J,K)};g.e(rF,g.gd);rF.prototype.G=function(J){return J.languageCode}; rF.prototype.xL=function(J){return this.languages[J].languageName||""}; rF.prototype.x7=function(J){this.publish("select",J);this.B.logClick(this.element);g.pW(this.Zv)};g.e(CdV,g.gd);g.u=CdV.prototype;g.u.EK=function(J){return g.Mz(J)?"__off__":J.displayName}; g.u.xL=function(J){return J==="__off__"?"Off":J==="__translate__"?"Auto-translate":J==="__contribute__"?"Add subtitles/CC":J==="__correction__"?"Suggest caption corrections":(J==="__off__"?{}:this.tracks[J]).displayName}; g.u.x7=function(J){if(J==="__translate__")this.G.open();else if(J==="__contribute__"){this.B.pauseVideo();this.B.isFullscreen()&&this.B.toggleFullscreen();var K=g.yW(this.B.S(),g.U(this.B.getVideoData()));g.Wz(K)}else if(J==="__correction__"){this.B.pauseVideo();this.B.isFullscreen()&&this.B.toggleFullscreen();var n=OcM(this);Ct(this,n);g.gd.prototype.x7.call(this,this.EK(n));var X,l;n=(K=this.B.getVideoData().getPlayerResponse())==null?void 0:(X=K.captions)==null?void 0:(l=X.playerCaptionsTracklistRenderer)== null?void 0:l.openTranscriptCommand;this.B.I4("innertubeCommand",n);this.Zv.KA();this.U&&this.B.logClick(this.U)}else{if(J==="__correction__"){this.B.pauseVideo();this.B.isFullscreen()&&this.B.toggleFullscreen();K=OcM(this);Ct(this,K);g.gd.prototype.x7.call(this,this.EK(K));var x,V;K=(n=this.B.getVideoData().getPlayerResponse())==null?void 0:(x=n.captions)==null?void 0:(V=x.playerCaptionsTracklistRenderer)==null?void 0:V.openTranscriptCommand;this.B.I4("innertubeCommand",K)}else this.B.logClick(this.element), Ct(this,J==="__off__"?{}:this.tracks[J]),g.gd.prototype.x7.call(this,J);this.Zv.KA()}}; g.u.WW=function(){var J=this.B.getOptions();J=J&&J.indexOf("captions")!==-1;var K=this.B.getVideoData(),n=K&&K.c$,X,l=!((X=this.B.getVideoData())==null||!g.WD(X));X={};if(J||n){var x;if(J){var V=g.U(this.B.getOption("captions","track"));X=ef7(this.B.getOption("captions","tracklist",{includeAsr:!0}));var v=l?[]:ef7(this.B.getOption("captions","translationLanguages"));this.tracks=g.GO(X,this.EK,this);l=g.ff(X,this.EK);var Q,S;OcM(this)&&((x=K.getPlayerResponse())==null?0:(Q=x.captions)==null?0:(S=Q.playerCaptionsTracklistRenderer)== null?0:S.openTranscriptCommand)&&l.push("__correction__");if(v.length&&!g.Mz(V)){if((x=V.translationLanguage)&&x.languageName){var r=x.languageName;x=v.findIndex(function(C){return C.languageName===r}); DpM(v,x)}rR7(this.G,v);l.push("__translate__")}x=this.EK(V)}else this.tracks={},l=[],x="__off__";l.unshift("__off__");this.tracks.__off__={};n&&l.unshift("__contribute__");this.tracks[x]||(this.tracks[x]=V,l.push(x));this.AL(l);this.Oy(x);V&&V.translationLanguage?this.G.Oy(this.G.G(V.translationLanguage)):tKf(this.G);J&&this.N.q3(g.U(this.B.getSubtitlesUserSettings()));this.countLabel.wR(X&&X.length?" ("+X.length+")":"");this.publish("size-change");this.B.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.u.KF=function(J){var K=g.U(this.B.getOption("captions","track"));K=g.Ku(K);K.translationLanguage=this.G.languages[J];Ct(this,K)}; g.u.eO=function(J,K){if(J==="reset")this.B.resetSubtitlesUserSettings();else{var n={};n[J]=K;this.B.updateSubtitlesUserSettings(n)}sPH(this,!0);this.W.start();this.N.q3(g.U(this.B.getSubtitlesUserSettings()))}; g.u.pBx=function(J){J||g.Jv(this.W)}; g.u.Xq=function(){g.Jv(this.W);g.gd.prototype.Xq.call(this)}; g.u.open=function(){g.gd.prototype.open.call(this);this.options.__correction__&&!this.U&&(this.U=this.options.__correction__.element,this.B.createClientVe(this.U,this,167341),this.B.logVisibility(this.U,!0))};g.e(HcU,g.BY);g.u=HcU.prototype; g.u.initialize=function(){if(!this.isInitialized){var J=this.B.S();this.isInitialized=!0;try{this.qR=new Mqf(this.B,this)}catch(n){g.gG(Error("QualityMenuItem creation failed"))}g.Z(this,this.qR);var K=new CdV(this.B,this);g.Z(this,K);J.X||(K=new lp(this.B,this),g.Z(this,K));J.enableSpeedOptions&&(K=new jPr(this.B,this),g.Z(this,K));(g.pR(J)||J.N)&&(J.Z||J.fv)&&(K=new AhV(this.B,this),g.Z(this,K));J.zL&&!J.J("web_player_move_autonav_toggle")&&(J=new j0(this.B,this),g.Z(this,J));J=new xZ(this.B,this); g.Z(this,J);this.B.publish("settingsMenuInitialized");bi8(this.settingsButton,this.Dh.OL())}}; g.u.qH=function(J){this.initialize();this.Dh.qH(J);bi8(this.settingsButton,this.Dh.OL())}; g.u.fl=function(J){this.Kv&&this.Dh.OL()<=1&&this.hide();this.Dh.fl(J);bi8(this.settingsButton,this.Dh.OL())}; g.u.HM=function(J){this.initialize();this.Dh.OL()>0&&g.BY.prototype.HM.call(this,J)}; g.u.MS=function(){this.Cw?this.Cw=!1:g.BY.prototype.MS.call(this)}; g.u.show=function(){g.BY.prototype.show.call(this);g.jv(this.B.getRootNode(),"ytp-settings-shown")}; g.u.hide=function(){g.BY.prototype.hide.call(this);g.hv(this.B.getRootNode(),"ytp-settings-shown")}; g.u.DT=function(J){this.B.logVisibility(this.element,J);this.B.publish("settingsMenuVisibilityChanged",J)};g.e(ub7,g.F);g.u=ub7.prototype;g.u.onClick=function(){if(exF(this)&&(this.B.toggleSubtitles(),this.B.logClick(this.element),!this.isEnabled())){var J=!1,K=g.Z0(g.yT(),65);g.AS(this.B.S())&&K!=null&&(J=!K);J&&this.B.S().J("web_player_nitrate_promo_tooltip")&&this.B.publish("showpromotooltip",this.element)}}; g.u.U_x=function(J){var K,n;(K=g.s2(this.B))==null||(n=K.NB())==null||n.HM(J)}; g.u.isEnabled=function(){return!!this.B.getOption("captions","track").displayName}; g.u.WW=function(){var J=exF(this),K=300;this.B.S().W&&(K=480);if(this.B.S().N){this.updateValue("title",g.P4(this.B,"Subtitles/closed captions","c"));this.update({"data-title-no-tooltip":"Subtitles/closed captions"});var n=J}else{if(J)(n=this.rQ("ytp-subtitles-button-icon"))==null||n.setAttribute("fill-opacity","1"),this.updateValue("title",g.P4(this.B,"Subtitles/closed captions","c")),this.update({"data-title-no-tooltip":"Subtitles/closed captions"});else{var X;(X=this.rQ("ytp-subtitles-button-icon"))== null||X.setAttribute("fill-opacity","0.3");this.updateValue("title","Subtitles/closed captions unavailable");this.update({"data-title-no-tooltip":"Subtitles/closed captions unavailable"})}n=!0}this.tooltip.Kh();n=n&&this.B.S_().getPlayerSize().width>=K;this.Yr(n);this.B.J("embeds_use_parent_visibility_in_ve_logging")?this.B.logVisibility(this.element,n&&this.C):this.B.logVisibility(this.element,n);J?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; g.u.NS=function(J){g.F.prototype.NS.call(this,J);this.B.S().J("embeds_use_parent_visibility_in_ve_logging")&&this.B.logVisibility(this.element,this.Kv&&J)};g.e(g.Ow,g.F);g.u=g.Ow.prototype; g.u.MH=function(){var J=this.api.S_().getPlayerSize().width,K=this.K;this.api.S().W&&(K=400);K=J>=K&&(!HS(this)||!g.E(this.api.getPlayerStateObject(),64));this.Yr(K);g.Qq(this.element,"ytp-time-display-allow-autohide",K&&J<400);J=this.api.getProgressState();if(K){var n=this.api.getPresentingPlayerType();K=this.api.getCurrentTime(n,!1);this.Z&&(K-=J.airingStart);R_(this)&&(K-=this.nU.startTimeMs/1E3);R_(this)||HS(this)||!this.X||(K-=this.api.getDuration(n,!1));var X=g.Iv(K);this.U!==X&&(this.updateValue("currenttime", X),this.U=X);n=R_(this)?(this.nU.endTimeMs-this.nU.startTimeMs)/1E3:this.api.getDuration(n,!1);X=g.Iv(n);this.N!==X&&(this.updateValue("duration",X),this.N=X,K&&(K=g.rK("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.Iv(K,!0),DURATION:g.Iv(n,!0)}),this.updateValue("timeDisplayAriaLabel",K)))}zxk(this,J.isAtLiveHead);wqF(this,this.api.getLoopRange())}; g.u.onLoopRangeChange=function(J){var K=this.nU!==J;this.nU=J;K&&(this.MH(),Pd3(this))}; g.u.HEG=function(){this.api.setLoopRange(null)}; g.u.Gi5=function(){this.X=!this.X;this.MH()}; g.u.onVideoDataChange=function(J,K,n){this.updateVideoData((this.api.S().J("enable_topsoil_wta_for_halftime")||this.api.S().J("enable_topsoil_wta_for_halftime_live_infra"))&&n===2?this.api.getVideoData(1):K);this.MH();Pd3(this)}; g.u.updateVideoData=function(J){this.Wx=J.isLivePlayback&&!J.Fq;this.Z=q2(J);this.isPremiere=J.isPremiere;g.Qq(this.element,"ytp-live",HS(this))}; g.u.onClick=function(J){J.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.u.Xq=function(){this.G&&this.G();g.F.prototype.Xq.call(this)};g.e(ic3,g.F);g.u=ic3.prototype;g.u.Fj=function(){var J=this.api.Mx();this.X!==J&&(this.X=J,I_d(this,this.api.getVolume(),this.api.isMuted()))}; g.u.Lk=function(J){this.Yr(J.width>=350)}; g.u.dM=function(J){if(!J.defaultPrevented){var K=J.keyCode,n=null;K===37?n=this.volume-5:K===39?n=this.volume+5:K===36?n=0:K===35&&(n=100);n!==null&&(n=g.BK(n,0,100),n===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(n)),J.preventDefault())}}; g.u.vD=function(J){var K=J.deltaX||-J.deltaY;J.deltaMode?this.api.setVolume(this.volume+(K<0?-10:10)):this.api.setVolume(this.volume+g.BK(K/10,-10,10));J.preventDefault()}; g.u.ABA=function(){up(this,this.G,!0,this.Z,this.api.oi());this.K=this.volume;this.api.isMuted()&&this.api.unMute()}; g.u.ll=function(J){var K=this.X?78:52,n=this.X?18:12;J-=g.W7(this.L).x;this.api.setVolume(g.BK((J-n/2)/(K-n),0,1)*100)}; g.u.x_4=function(){up(this,this.G,!1,this.Z,this.api.oi());this.volume===0&&(this.api.mute(),this.api.setVolume(this.K))}; g.u.onVolumeChange=function(J){I_d(this,J.volume,J.muted)}; g.u.pR=function(){up(this,this.G,this.isDragging,this.Z,this.api.oi())}; g.u.Xq=function(){g.F.prototype.Xq.call(this);g.hv(this.W,"ytp-volume-slider-active")};g.e(e0,g.F); e0.prototype.onVideoDataChange=function(){var J=this.api.S();this.s_();this.visible=!!g.U(this.api.getVideoData()).videoId&&!g.Eo(g.U(this.api.getVideoData(1)));this.Yr(this.visible);this.api.logVisibility(this.element,this.visible&&this.C);if(this.visible){var K=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",K)}J.X&&(this.G&&(this.rR(this.G),this.G=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.jv(this.element,"no-link")); K=this.api.S();J=g.U(this.api.getVideoData());var n="";K.X||(K=g.am(K),K.indexOf("www.")===0&&(K=K.substring(4)),n=g.bK(J)?"Watch on YouTube Music":K==="youtube.com"?"Watch on YouTube":g.rK("Watch on $WEBSITE",{WEBSITE:K}));this.updateValue("title",n)}; e0.prototype.onClick=function(J){this.api.J("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var K=this.api.S(),n=this.api.getVideoUrl(!g.iU(J),!1,!0,!0);if(g.pR(K)){var X={};g.pR(K)&&g.v4(this.api,"addEmbedsConversionTrackingParams",[X]);n=g.Td(n,X)}g.x3(n,this.api,J);this.api.J("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; e0.prototype.s_=function(){var J={j:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},Y:[{j:"path",Dv:!0,V:"ytp-svg-fill",D:{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 "}}]}, K=28666,n=g.U(this.api.getVideoData());this.api.isEmbedsShortsMode()?J={j:"svg",D:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},Y:[{j:"path",D:{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.bK(n)&&(J={j:"svg",D:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},Y:[{j:"path",D:{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"}},{j:"path",D:{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"}},{j:"path",D:{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"}},{j:"path",D:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{j:"path",D:{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"}},{j:"path",D:{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"}},{j:"path",D:{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"}},{j:"path",D:{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"}},{j:"path",D:{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"}},{j:"path",D:{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"}},{j:"path",D:{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"}},{j:"path",D:{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"}}]},K=216163);g.bK(n)?g.jv(this.element,"ytp-youtube-music-button"):g.hv(this.element,"ytp-youtube-music-button");J.D=Object.assign({},J.D,{"aria-hidden":"true"});this.updateValue("logoSvg",J);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,K,!0)}; e0.prototype.NS=function(J){g.F.prototype.NS.call(this,J);this.api.logVisibility(this.element,this.visible&&J)};g.e(pqU,g.gY);g.u=pqU.prototype;g.u.Tc=function(){if(this.B.J("web_player_max_seekable_on_ended")||!g.E(this.B.getPlayerStateObject(),2))this.progressBar.MH(),this.PW.MH()}; g.u.pY=function(){this.vZ();this.Np.Z?this.Tc():this.progressBar.Zg()}; g.u.Gp=function(){this.Tc();this.K.start()}; g.u.vZ=function(){var J;if(J=!this.B.S().Z){J=this.progressBar;var K=2*g.bq()*J.N;J=J.X.getLength()*1E3/J.api.getPlaybackRate()/K<300}J=J&&this.B.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;K=!J;this.Np.Z||(J=K=!1);K?this.Aj||(this.Aj=this.T(this.B,"progresssync",this.Tc)):this.Aj&&(this.rR(this.Aj),this.Aj=null);J?this.K.isActive()||this.K.start():this.K.stop()}; g.u.s_=function(){var J=this.B.Mx(),K=this.B.S_().getPlayerSize(),n=this.B.S_().xu,X=TLd(this),l=Dfk(this),x=Math.max(K.width-X*2,100);if(this.vW!==K.width||this.Dm!==J||this.B.J("web_player_rtr_ctrls")&&this.YR!==n)this.vW=K.width,this.Dm=J,this.YR=n,this.U.element.style.width=l+"px",this.U.element.style.left=X+"px",g.aqH(this.progressBar,X,l,J),this.B.o9().SR=l;n=this.X;x=Math.min(570*(J?1.5:1),x);J=Math.min(413*(J?1.5:1),Math.round((K.height-dfH(this))*.82));n.maxWidth=x;n.maxHeight=J;n.bV();this.vZ(); this.B.S().J("html5_player_dynamic_bottom_gradient")&&dj3(this.md,K.height)}; g.u.onVideoDataChange=function(){var J=g.U(this.B.getVideoData());this.fv.style.background=J.t7?J.S$:"";this.QG&&tWd(this.QG,J.showSeekingControls);this.GA&&tWd(this.GA,J.showSeekingControls)}; g.u.xr=function(){return this.U.element};g.e(k33,wd);g.u=k33.prototype;g.u.ML=function(J){J.target!==this.dismissButton.element&&(this.onClickCommand&&this.B.I4("innertubeCommand",this.onClickCommand),this.ob())}; g.u.ob=function(){this.enabled=!1;this.K.hide()}; g.u.onVideoDataChange=function(J,K){J==="dataloaded"&&g$k(this);J=[];var n,X,l,x;if(K=(x=g.f((n=K.getWatchNextResponse())==null?void 0:(X=n.playerOverlays)==null?void 0:(l=X.playerOverlayRenderer)==null?void 0:l.suggestedActionsRenderer,hnV))==null?void 0:x.suggestedActions)for(n=g.z(K),X=n.next();!X.done;X=n.next())(X=g.f(X.value,vR0))&&g.f(X.trigger,VOu)&&J.push(X);if(J.length!==0){n=[];J=g.z(J);for(X=J.next();!X.done;X=J.next())if(X=X.value,l=g.f(X.trigger,VOu))x=(x=X.title)?g.Oe(x):"View Chapters", K=l.timeRangeStartMillis,l=l.timeRangeEndMillis,K!=null&&l!=null&&X.tapCommand&&(n.push(new g.KG(K,l,{priority:9,namespace:"suggested_action_button_visible",id:x})),this.suggestedActions[x]=X.tapCommand);this.B.yA(n)}}; g.u.OA=function(){return this.enabled}; g.u.DT=function(){this.enabled?this.Cv.start():ei(this);this.LJ()}; g.u.Xq=function(){g$k(this);wd.prototype.Xq.call(this)};var wQ={},PS=(wQ.CHANNEL_NAME="ytp-title-channel-name",wQ.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",wQ.LINK="ytp-title-link",wQ.SESSIONLINK="yt-uix-sessionlink",wQ.SUBTEXT="ytp-title-subtext",wQ.TEXT="ytp-title-text",wQ.TITLE="ytp-title",wQ);g.e(I_,g.F);I_.prototype.onClick=function(J){this.api.logClick(this.element);var K=this.api.S(),n=this.api.getVideoUrl(!g.iU(J),!1,!0);g.pR(K)&&(K={},g.v4(this.api,"addEmbedsConversionTrackingParams",[K]),n=g.Td(n,K));g.x3(n,this.api,J)}; I_.prototype.WW=function(){var J=g.U(this.api.getVideoData()),K=this.api.S();this.updateValue("title",J.title);var n={j:"a",V:PS.CHANNEL_NAME,D:{href:"{{channelLink}}",target:"_blank"},hj:"{{channelName}}"};this.api.S().X&&(n={j:"span",V:PS.CHANNEL_NAME,hj:"{{channelName}}",D:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",n);cRM(this);this.api.getPresentingPlayerType()===2&&(n=g.U(this.api.getVideoData()),n.videoId&&n.isListed&&n.author&&n.md&&n.profilePicture?(this.updateValue("channelLink", n.md),this.updateValue("channelName",n.author),this.updateValue("channelTitleFocusable","0")):cRM(this));n=K.externalFullscreen||!this.api.isFullscreen()&&K.Yk;g.Qq(this.link,PS.FULLERSCREEN_LINK,n);K.QG||!J.videoId||n||g.Eo(J)||K.X?this.G&&(this.updateValue("url",null),this.rR(this.G),this.G=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.G||(this.G=this.T(this.link,"click",this.onClick)));K.X&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.pR(K)?J.expandedTitle: J.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.e(g.BS,g.F);g.u=g.BS.prototype;g.u.setEnabled=function(J){if(this.type!=null)if(J)switch(this.type){case 3:case 2:G3r(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.N=J}; g.u.wl=function(J,K,n,X,l,x,V,v){if(!this.Aj||this.env.W){this.type===3&&this.Zg();this.type!==1&&(g.lm(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.N&&this.fade.show(),this.Z&&this.Z.dispose(),(this.Z=this.api.QZ())&&this.Z.subscribe("l",this.Y1,this));if(v){var Q=g.qa(this.bg).height||141;this.cW.style.bottom=Q+2+"px"}else this.cW.style.display="none";this.env.J("delhi_modern_web_player")?this.update({pillTimeStamp:n,pillTitle:x!=null?x:"",eduText:v!=null?v:""}):(this.update({text:n, title:x!=null?x:"",eduText:v!=null?v:""}),g.Qq(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!x));this.api.isInline()&&g.jv(this.bottomText,"ytp-modern-tooltip-text");g.Qq(this.element,"ytp-text-detail",!!X);n=-1;this.Z&&(n=cF(this.Z,243*this.scale),this.env.J("web_l3_storyboard")&&this.Z.levels.length===4&&(n=this.Z.levels.length-1),n=kt8(this.Z,n,K));tsf(this,n);if(V)switch(K=g.qa(this.element).width,V){case 1:this.title.style.right="0";this.title.style.textAlign="left";break;case 2:this.title.style.right= K+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=K/2+"px",this.title.style.textAlign="center"}Uf3(this,!!X,J,l)}}; g.u.m$=function(){this.type===1&&this.Zg()}; g.u.Rd=function(J,K){if(this.type)if(this.type===3)this.Zg();else return;Y4r(this,J,3,K)}; g.u.Kh=function(){this.G&&!this.W&&this.G.hasAttribute("title")&&(this.X=this.G.getAttribute("title")||"",this.G.removeAttribute("title"),this.N&&G3r(this))}; g.u.Y1=function(J,K){J<=this.U&&this.U<=K&&(J=this.U,this.U=NaN,tsf(this,J))}; g.u.Sb=function(){DWM(this.Z,this.U,243*this.scale)}; g.u.Zg=function(){switch(this.type){case 2:var J=this.G;J.removeEventListener("mouseout",this.L);J.addEventListener("mouseover",this.MQ);J.removeEventListener("blur",this.L);J.addEventListener("focus",this.MQ);yRe(this);break;case 3:yRe(this);break;case 1:this.Z&&(this.Z.unsubscribe("l",this.Y1,this),this.Z=null),this.api.removeEventListener("videoready",this.K),this.GA.stop()}this.type=null;this.N&&this.fade.hide()}; g.u.A0=function(){if(this.G)for(var J=0;J=0;K--)if(this.j4[K]===J){this.j4.splice(K,1);break}Db(this.Np,64,this.j4.length>0)}; g.u.KY=function(){this.api.du()&&this.api.ag();return!!this.nW||q43(this)||g.Zb.prototype.KY.call(this)}; g.u.FZ=KU(3);g.u.Ve=KU(7);g.u.ek=KU(10); g.u.m8=function(){var J=!this.KY(),K=J&&this.api.du()&&!g.E(this.api.getPlayerStateObject(),2)&&!g.Eo(g.U(this.api.getVideoData()))&&!this.api.S().X&&!this.api.isEmbedsShortsMode(),n=this.YY&&g.pC(this.api)&&g.E(this.api.getPlayerStateObject(),128);J||n?(this.Ow.show(),this.Dc.show()):(this.Ow.hide(),this.Dc.hide(),this.api.A0(this.bH.element));K?this.u1.HM():this.u1.MS();this.yh&&LaF(this.yh,this.K3||!J);this.api.J("web_player_hide_overflow_button_if_empty_menu")&&E$f(this);g.Zb.prototype.m8.call(this)}; g.u.Ko=function(J,K,n,X,l){J.style.left="";J.style.top="";J.style.bottom="";var x=g.qa(J),V=X||this.yh&&g.XG(this.yh.xr(),K),v=X=null;n!=null&&V||(X=g.qa(K),v=g.aQ(K,this.api.getRootNode()),n==null&&(n=v.x+X.width/2));n-=x.width/2;V?(K=this.yh,X=TLd(K),v=Dfk(K),V=this.api.S_().getPlayerSize().height,n=g.BK(n,X,X+v-x.width),x=V-dfH(K)-x.height):g.XG(this.bH.element,K)?(K=this.api.S_().getPlayerSize().width,n=g.BK(n,12,K-x.width-12),x=this.Mx()?this.L_:this.Fu,this.api.S().playerStyle==="gvn"&&(x+= 20),this.YY&&(x-=this.Mx()?26:18)):(K=this.api.S_().getPlayerSize(),n=g.BK(n,12,K.width-x.width-12),x=v.y>(K.height-X.height)/2?v.y-x.height-12:v.y+X.height+12);J.style.top=x+(l||0)+"px";J.style.left=n+"px"}; g.u.pY=function(J){J&&(this.api.A0(this.bH.element),this.yh&&this.api.A0(this.yh.xr()));this.dh&&(g.Qq(this.contextMenu.element,"ytp-autohide",J),g.Qq(this.contextMenu.element,"ytp-autohide-active",!0));g.Zb.prototype.pY.call(this,J)}; g.u.hc=function(){g.Zb.prototype.hc.call(this);this.dh&&(g.Qq(this.contextMenu.element,"ytp-autohide-active",!1),this.dh&&(this.contextMenu.hide(),this.iH&&this.iH.hide()))}; g.u.CI=function(J,K){var n=this.api.S_().getPlayerSize();n=new g.d5(0,0,n.width,n.height);if(J||this.Np.Z&&!this.KY()){if(this.api.S().G2||K)J=this.Mx()?this.L_:this.Fu,n.top+=J,n.height-=J;this.yh&&(n.height-=dfH(this.yh))}return n}; g.u.Fj=function(J){var K=this.api.getRootNode();J?K.parentElement?(K.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.S().externalFullscreen||(K.parentElement.insertBefore(this.gO.element,K),K.parentElement.insertBefore(this.yg.element,K.nextSibling))):g.ko(Error("Player not in DOM.")):(K.setAttribute("aria-label","YouTube Video Player"),this.gO.detach(),this.yg.detach());this.s_();this.Q8()}; g.u.Mx=function(){var J=this.api.S();return this.api.isFullscreen()&&!J.W||!1}; g.u.showControls=function(J){this.Qn=!J;this.m8()}; g.u.s_=function(){var J=this.Mx();this.tooltip.scale=J?1.5:1;this.contextMenu&&g.Qq(this.contextMenu.element,"ytp-big-mode",J);this.m8();this.api.J("web_player_hide_overflow_button_if_empty_menu")||E$f(this);this.Q8();var K=this.api.isEmbedsShortsMode();K&&J?(J=(this.api.S_().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.c7(this.bH.element,"padding-left",J+"px"),g.c7(this.bH.element,"padding-right",J+"px")):K&&(g.c7(this.bH.element,"padding-left",""),g.c7(this.bH.element,"padding-right", ""));g.Zb.prototype.s_.call(this)}; g.u.iO=function(){if(q43(this)&&!g.pC(this.api))return!1;var J=g.U(this.api.getVideoData());return!g.pR(this.api.S())||this.api.getPresentingPlayerType()===2||!this.eK||((J=this.eK||J.eK)?(J=J.embedPreview)?(J=J.thumbnailPreviewRenderer,J=J.videoDetails&&g.f(J.videoDetails,Hz7)||null):J=null:J=null,J&&J.collapsedRenderer&&J.expandedRenderer)?g.Zb.prototype.iO.call(this):!1}; g.u.Q8=function(){g.Zb.prototype.Q8.call(this);this.api.logVisibility(this.title.element,!!this.LQ);this.qG&&this.qG.NS(!!this.LQ);this.channelAvatar.NS(!!this.LQ);this.overflowButton&&this.overflowButton.NS(this.l1()&&!!this.LQ);this.shareButton&&this.shareButton.NS(!this.l1()&&!!this.LQ);this.Cg&&this.Cg.NS(!this.l1()&&!!this.LQ);this.searchButton&&this.searchButton.NS(!this.l1()&&!!this.LQ);this.copyLinkButton&&this.copyLinkButton.NS(!this.l1()&&!!this.LQ);if(!this.LQ){this.api.A0(this.bH.element); for(var J=0;J5&&K.Zm("glrs",{cmt:n});K.seekTo(0,{seekSource:58});K.Zm("glrre",{cmt:n})}}; Ty.prototype.Xq=function(){this.G=null;g.t.prototype.Xq.call(this)};g.e(g.Df,Jx);g.u=g.Df.prototype;g.u.isView=function(){return!0}; g.u.Rh=function(){var J=this.mediaElement.getCurrentTime();if(J1;hF(J.FL(),X-.01)&&!l&&(kZ(this,4),n.isActive=!1,n.XW=n.XW||n.isActive,(this.C===1?this.G:this.Z).Zm("sbh",{}),K.isActive=!0,K.XW=K.XW||K.isActive,this.C!==0&&(this.G.getVideoData().gZ=!0));J=this.U.Z;if(this.U.G.isActive&&J.isActive&&(kZ(this,5),this.C!==0)){J=this.Z.mZ();n=this.G.mZ(); this.G.Zm("sbs",{citag:n==null?void 0:n.itag,nitag:J==null?void 0:J.itag});this.Z.Zm("gitags",{pitag:n==null?void 0:n.itag,citag:J==null?void 0:J.itag});var x;(x=this.Z)==null||x.LX()}}}; g.u.zH=function(){this.zO()&&this.ph("player-reload-after-handoff")}; g.u.ph=function(J,K){K=K===void 0?{}:K;if(!this.o4()&&this.status.status!==6){var n=this.status.status>=4&&J!=="player-reload-after-handoff";this.status={status:Infinity,error:J};if(this.G&&this.Z){var X=this.Z.getVideoData().clientPlaybackNonce;this.G.Sh(new ix("dai.transitionfailure",Object.assign(K,{cpn:X,transitionTimeMs:this.S5,msg:J})));this.G.TW(n)}this.Dt.reject(J);this.dispose()}}; g.u.zO=function(){return this.status.status>=4&&this.status.status<6}; g.u.Xq=function(){VZ7(this);this.G.unsubscribe("newelementrequired",this.zH,this);if(this.X){var J=this.X.Z;this.X.G.z4.unsubscribe("updateend",this.OG,this);J.z4.unsubscribe("updateend",this.OG,this)}g.t.prototype.Xq.call(this)}; g.u.YC=function(J){g.C1(J,128)&&this.ph("player-error-event")};g.e(gF,g.t);gF.prototype.clearQueue=function(J,K){J=J===void 0?!1:J;K=K===void 0?!1:K;this.U&&this.U.reject("Queue cleared");this.app.S().J("html5_gapless_fallback_on_qoe_restart_v2")||K&&this.Z&&this.Z.TW(!1);cS(this,J)}; gF.prototype.XI=function(){return!this.G}; gF.prototype.zO=function(){var J;return((J=this.X)==null?void 0:J.zO())||!1}; gF.prototype.Xq=function(){cS(this);g.t.prototype.Xq.call(this)};g.e(slH,g.hi);g.u=slH.prototype;g.u.getVisibilityState=function(J,K,n,X,l,x,V,v){return J?4:jo7()?3:K?2:n?1:X?5:l?7:x?8:V?9:v?10:0}; g.u.F7=function(J){this.fullscreen!==J&&(this.fullscreen=J,this.DT())}; g.u.setMinimized=function(J){this.Z!==J&&(this.Z=J,this.DT())}; g.u.setInline=function(J){this.inline!==J&&(this.inline=J,this.DT())}; g.u.S4=function(J){this.pictureInPicture!==J&&(this.pictureInPicture=J,this.DT())}; g.u.setSqueezeback=function(J){this.X!==J&&(this.X=J,this.DT())}; g.u.Of=function(J){this.U!==J&&(this.U=J,this.DT())}; g.u.Do=function(){return this.G}; g.u.Am=function(){return this.fullscreen!==0}; g.u.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.u.DE=function(){return this.fullscreen}; g.u.isMinimized=function(){return this.Z}; g.u.isInline=function(){return this.inline}; g.u.isBackground=function(){return jo7()}; g.u.oP=function(){return this.pictureInPicture}; g.u.oa=function(){return!1}; g.u.e9=function(){return this.X}; g.u.B1=function(){return this.U}; g.u.DT=function(){this.publish("visibilitychange");var J=this.getVisibilityState(this.Do(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.oP(),this.oa(),this.e9(),this.B1());J!==this.N&&this.publish("visibilitystatechange");this.N=J}; g.u.Xq=function(){vgd(this.C);g.hi.prototype.Xq.call(this)};g.e(g.YZ,g.t);g.u=g.YZ.prototype;g.u.Xq=function(){this.videoData=this.playerState=null;g.t.prototype.Xq.call(this)}; g.u.addCueRange=function(){}; g.u.Ay=function(){}; g.u.Ku=function(){}; g.u.AK=function(){return!1}; g.u.ED=function(){return!1}; g.u.Em=function(){return!1}; g.u.j2=function(){}; g.u.LV=function(){}; g.u.eF=function(){return[]}; g.u.eA=function(){}; g.u.getAudioTrack=function(){return this.getVideoData().O3}; g.u.VO=function(){return null}; g.u.getAvailableAudioTracks=function(){return[]}; g.u.J9=function(){return[]}; g.u.VR=function(){return[]}; g.u.E3=function(){return""}; g.u.Hh=function(){return[]}; g.u.fC=function(){}; g.u.LH=function(){return 0}; g.u.getCurrentTime=function(){return 0}; g.u.yO=function(){}; g.u.mZ=function(){}; g.u.FK=function(){return{}}; g.u.getDuration=function(){return 0}; g.u.qP=function(){return 0}; g.u.vM=function(){return 0}; g.u.Ma=function(){return!1}; g.u.UR=function(){return 0}; g.u.M$=function(){return 0}; g.u.eB=KU(15);g.u.jy=function(){return 0}; g.u.Vv=function(){return!1}; g.u.bj=function(){return 0}; g.u.dE=function(){return null}; g.u.B6=function(){return null}; g.u.yU=function(){return 0}; g.u.TO=function(){return 0}; g.u.zc=function(){return g.G(function(J){g.uF(J)})}; g.u.DG=KU(21);g.u.getPlaybackQuality=function(){return"auto"}; g.u.getPlaybackRate=function(){return 1}; g.u.getPlayerState=function(){this.playerState||(this.playerState=new g.lH);return this.playerState}; g.u.getPlayerType=function(){return 0}; g.u.getPlaylistSequenceForTime=function(){return null}; g.u.nh=function(){return function(){}}; g.u.T2=function(){return""}; g.u.getPreferredQuality=function(){return"unknown"}; g.u.yR=function(){}; g.u.getProximaLatencyPreference=function(){return 0}; g.u.RW=function(){return fI}; g.u.QZ=function(){return null}; g.u.getStoryboardFormat=function(){return null}; g.u.getStreamTimeOffset=function(){return 0}; g.u.q$=function(){return 0}; g.u.Ti=function(){return 0}; g.u.KC=function(){return{SS:[],hK:[],currentTime:0,B2:"",droppedVideoFrames:0,isGapless:!1,XI:!0,Vj:0,gU:0,Iy:0,LM:0,Sm:0,zE:[],HE:[],Cc:null,playerState:this.getPlayerState(),yW:null,Mb:"",totalVideoFrames:0}}; g.u.getUserAudio51Preference=function(){return 0}; g.u.getUserPlaybackQualityPreference=function(){return""}; g.u.getVideoData=function(){this.videoData||(this.videoData=new g.WF(this.lx),g.Z(this,this.videoData));return this.videoData}; g.u.RB=function(){return null}; g.u.Lj=function(){return null}; g.u.R2=function(){}; g.u.getVideoLoadedFraction=function(){return 0}; g.u.SC=function(){}; g.u.handleError=function(){}; g.u.TW=function(){}; g.u.gX=function(){}; g.u.QP=KU(46);g.u.RE=function(){return!1}; g.u.hasSupportedAudio51Tracks=function(){return!1}; g.u.SB=function(){return!1}; g.u.Do=function(){return!1}; g.u.isAtLiveHead=function(){return!1}; g.u.lW=function(){return!0}; g.u.isGapless=function(){return!1}; g.u.isHdr=function(){return!1}; g.u.GZ=function(){return!1}; g.u.er=function(){return!1}; g.u.HR=function(){return!1}; g.u.isProximaLatencyEligible=function(){return!1}; g.u.XI=function(){return!0}; g.u.Ra=function(){return!1}; g.u.A4=function(){return!1}; g.u.PF=function(){}; g.u.Co=function(){}; g.u.LX=function(){}; g.u.B9=function(){}; g.u.r7=function(){}; g.u.BV=function(){}; g.u.vF=function(){}; g.u.w3=KU(56);g.u.zy=KU(27);g.u.AJ=function(){}; g.u.pauseVideo=function(){}; g.u.playVideo=function(){return g.G(function(J){return J.return()})}; g.u.PL=function(){}; g.u.GR=KU(33);g.u.IH=KU(39);g.u.K6=function(){}; g.u.Zm=function(){}; g.u.fL=function(){}; g.u.fK=function(){}; g.u.yx=function(){}; g.u.Sh=function(){}; g.u.Dn=function(){}; g.u.Kw=function(){}; g.u.sA=function(){}; g.u.lF=function(){}; g.u.v0=function(){}; g.u.s3=function(){}; g.u.Rc=function(){}; g.u.removeCueRange=function(){}; g.u.us=function(){}; g.u.Uo=function(){return[]}; g.u.yP=function(){}; g.u.Ei=function(){}; g.u.WP=function(){}; g.u.AV=function(){}; g.u.n2=function(){}; g.u.ND=function(){}; g.u.seekTo=function(){}; g.u.sendAbandonmentPing=function(){}; g.u.sendVideoStatsEngageEvent=function(){}; g.u.LK=function(){}; g.u.setLoop=function(){}; g.u.oR=function(){}; g.u.setMediaElement=function(){}; g.u.sf=function(){}; g.u.setPlaybackRate=function(){}; g.u.xO=function(){}; g.u.YH=function(){}; g.u.v3=function(){}; g.u.setProximaLatencyPreference=function(){}; g.u.Y9=function(){}; g.u.mY=function(){}; g.u.Dy=function(){}; g.u.Ji=function(){}; g.u.setUserAudio51Preference=function(){}; g.u.N2=function(){}; g.u.QJ=function(){return!1}; g.u.iB=function(){}; g.u.s6=function(){return!1}; g.u.ye=function(){}; g.u.d2=function(){}; g.u.Q4=function(){}; g.u.stopVideo=function(){}; g.u.subscribe=function(){return NaN}; g.u.Ly=function(){}; g.u.togglePictureInPicture=function(){}; g.u.Sk=function(){return 0}; g.u.unsubscribe=function(){return!1}; g.u.A6=function(){}; g.u.W8=function(){return!1}; g.u.GO=function(){}; g.u.xD=function(){}; g.u.dL=function(){};g.e(t0,g.t);g.u=t0.prototype;g.u.get=function(J){Gy(this);var K=this.data.find(function(n){return n.key===J}); return K?K.value:null}; g.u.set=function(J,K,n){this.remove(J,!0);Gy(this);J={key:J,value:K,expire:Infinity};n&&isFinite(n)&&(n*=1E3,J.expire=(0,g.a)()+n);for(this.data.push(J);this.data.length>this.X;)(n=this.data.shift())&&ym(this,n,!0);Uw(this)}; g.u.remove=function(J,K){K=K===void 0?!1:K;var n=this.data.find(function(X){return X.key===J}); n&&(ym(this,n,K),g.uG(this.data,function(X){return X.key===J}),Uw(this))}; g.u.removeAll=function(J){if(J=J===void 0?!1:J)for(var K=g.z(this.data),n=K.next();!n.done;n=K.next())ym(this,n.value,J);this.data=[];Uw(this)}; g.u.Xq=function(){var J=this;g.t.prototype.Xq.call(this);this.data.forEach(function(K){ym(J,K,!0)}); this.data=[]};g.e(g.Zf,g.t);g.u=g.Zf.prototype;g.u.Xq=function(){for(var J=g.z(Object.values(this.X)),K=J.next();!K.done;K=J.next())K.value.dispose();Cy3(this);this.G.dispose();g.t.prototype.Xq.call(this)}; g.u.EB=function(J){return J?J===1?this.L:this.Z.getVideoData().enableServerStitchedDai&&J===2?this.Z.getVideoData().W5?this.X[2]||this.Z:this.Z:this.X[J]||null:this.Z}; g.u.PB=function(J){var K=J.cpn;J=J.playerType;if(K)a:{J=g.z(Object.values(this.X));for(var n=J.next();!n.done;n=J.next())if(n=n.value,n.E3()===K){K=n;break a}K=this.W[K]||null}else K=J?this.EB(J):this.Z;return K}; g.u.Qw=function(){return this.L}; g.u.Be=function(J){this.L=J}; g.u.a4=function(){return this.Z}; g.u.Te=function(J){this.Z=J;ft(this)}; g.u.B_=KU(52);g.u.Q9=KU(54);g.e(WS,g.t);WS.prototype.enqueue=function(J){if(J.G()!==this)return!1;this.segments.push(J);return!0}; WS.prototype.removeAll=function(){for(;this.segments.length;){var J=void 0;(J=this.segments.pop())==null||J.dispose()}this.G.clear()}; WS.prototype.Xq=function(){this.removeAll();g.t.prototype.Xq.call(this)};g.e(IkH,g.U2);g.u=IkH.prototype;g.u.t5=function(){}; g.u.E3=function(){return this.videoData.clientPlaybackNonce}; g.u.getVideoData=function(){if(g.U2.prototype.getVideoData.call(this).J("html5_huli_ssdai_use_playback_state"))var J=this.videoData;else{var K=this.tH;var n=g.U2.prototype.getCurrentTime.call(this);if(K.E6)K=void 0;else{var X=void 0;K.cB&&(X=K.U.get(K.cB));if(!X){X=Ynf(K,n*1E3);var l,x=(l=X)==null?void 0:l.cpn;K.cB?x&&K.cB!==x&&K.zA({cpcnm:x+"_"+K.cB,cmt:n.toFixed(3)}):K.zA({cpcna:x,cmt:n.toFixed(3)})}K=(J=X)==null?void 0:J.videoData}J=K||g.U2.prototype.getVideoData.call(this)}return J}; g.u.getCurrentTime=function(J){var K=g.U2.prototype.getCurrentTime.call(this);g.U2.prototype.getVideoData.call(this).J("html5_huli_ssdai_use_playback_state")?this.endTime===0?J||(K-=this.startTime):J&&(K=this.endTime-this.startTime):(J?J=this.tH.VP/1E3||K:(J=K,J=(K=c9f(this.tH,J*1E3))?J-K.start/1E3:J),K=J);return K}; g.u.getDuration=function(){if(g.U2.prototype.getVideoData.call(this).J("html5_huli_ssdai_use_playback_state"))var J=this.duration;else{J=this.tH;var K=g.U2.prototype.getCurrentTime.call(this);J=(J=Ynf(J,K*1E3))?J.durationMs/1E3:0}return J}; g.u.yL=function(J){this.duration=J};g.a_.prototype.D3=function(J,K){if(K===1)return this.G.get(J);if(K===2)return this.X.get(J);if(K===3)return this.Z.get(J)}; g.a_.prototype.uD=KU(64);g.a_.prototype.kH=function(J,K,n,X){n={Bo:X,v8:n};K?this.X.set(J,n):this.G.set(J,n)}; g.a_.prototype.clearAll=function(){this.G.clear();this.X.clear();this.Z.clear()}; g.e(g.Fg,g.t);g.u=g.Fg.prototype;g.u.BT=function(J){var K=J.nQ?J.nQ*1E3:J.CU,n=this.Z.get(J.cpn);n&&this.playback.removeCueRange(n);this.Z.delete(J.cpn);this.U.delete(J.cpn);n=this.C.indexOf(J);n>=0&&this.C.splice(n,1);n=[];for(var X=g.z(this.N),l=X.next();!l.done;l=X.next())l=l.value,l.end<=K?this.playback.removeCueRange(l):n.push(l);this.N=n;Fqf(this,0,K+J.durationMs)}; g.u.onCueRangeEnter=function(J){this.Cv.push(J);var K=J.getId();this.zA({oncueEnter:1,cpn:K,start:J.start,end:J.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.LH()||0).toFixed(3)});var n=K==="";this.gQ.add(J.Z);var X=this.U.get(K);if(n){var l;if(this.playback.getVideoData().NH()&&((l=this.G)==null?0:l.FB)&&this.X){this.jB=0;this.G=void 0;this.QG&&(this.events.rR(this.QG),this.QG=null);this.X="";this.kF=!0;return}}else if(this.zA({enterAdCueRange:1}),this.playback.getVideoData().NH()&& (X==null?0:X.kG))return;if(this.kF&&!this.G)this.kF=!1,!n&&X&&(n=this.playback.getCurrentTime(),N4(this,{Eo:J,isAd:!0,n$:!0,J8:n,adCpn:K},{isAd:!1,n$:!1,J8:n}),this.cB=X.cpn,this.gV(X.cpn,n),A0(this,X),J=bp(this,"midab",X),this.zA(J),this.jB=1),this.L=!1;else if(this.G){if(this.G.n$)this.zA({a_pair_of_same_transition_occurs_enter:1,acpn:this.G.adCpn,transitionTime:this.G.J8,cpn:K,currentTime:this.playback.getCurrentTime()}),X=this.playback.getCurrentTime(),J={Eo:J,isAd:!n,n$:!0,J8:X,adCpn:K},K={Eo:this.G.Eo, isAd:this.G.isAd,n$:!1,J8:X,adCpn:this.G.adCpn},this.G.Eo&&this.gQ.delete(this.G.Eo.Z),N4(this,J,K);else{if(this.G.Eo===J){this.zA({same_cue_range_pair_enter:1,acpn:this.G.adCpn,transitionTime:this.G.J8,cpn:K,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:J.start,cueRangeEndTime:J.end});this.G=void 0;return}if(this.G.adCpn===K){K&&this.zA({dchtsc:K});this.G=void 0;return}J={Eo:J,isAd:!n,n$:!0,J8:this.playback.getCurrentTime(),adCpn:K};N4(this,J,this.G)}this.G=void 0;this.L=!1}else this.G= {Eo:J,isAd:!n,n$:!0,J8:this.playback.getCurrentTime(),adCpn:K}}; g.u.gV=function(J,K){if(J===this.playback.E3())Obe(this.app.P6(),this.playback,!1);else{var n=this.vW.get(J);n?(n.endTime=0,n.startTime=K,Obe(this.app.P6(),n,!0)):this.zA({nop_s:J})}}; g.u.onCueRangeExit=function(J){var K=J.getId();this.zA({oncueExit:1,cpn:K,start:J.start,end:J.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.LH()||0).toFixed(3)});var n=K==="",X=this.U.get(K);n||gzf(this,K,this.playback.getCurrentTime());if(this.playback.getVideoData().NH()&&!n&&X){if(X.kG)return;X.kG=!0;this.K.clear();if(this.lx.J("html5_lifa_no_rewatch_ad_sbc"))if(this.playback.AK()){var l=X.CU;this.playback.Rc(l/1E3,(l+X.durationMs)/1E3)}else this.playback.Zm("lifa",{remove:0})}if(this.gQ.has(J.Z))if(this.gQ.delete(J.Z), this.Cv=this.Cv.filter(function(x){return x!==J}),this.kF&&(this.L=this.kF=!1,this.zA({cref:1})),this.G){if(this.G.n$){if(this.G.Eo===J){this.zA({same_cue_range_pair_exit:1, acpn:this.G.adCpn,transitionTime:this.G.J8,cpn:K,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:J.start,cueRangeEndTime:J.end});this.G=void 0;return}if(this.G.adCpn===K){K&&this.zA({dchtsc:K});this.G=void 0;return}K={Eo:J,isAd:!n,n$:!1,J8:this.playback.getCurrentTime(),adCpn:K};N4(this,this.G,K)}else if(this.zA({a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.G.adCpn,transitionTime:this.G.J8,upcomingCpn:K,contentCpn:this.playback.getVideoData().clientPlaybackNonce,currentTime:this.playback.getCurrentTime()}), this.G.adCpn===K)return;this.G=void 0;this.L=!1}else this.G={Eo:J,isAd:!n,n$:!1,J8:this.playback.getCurrentTime(),adCpn:K};else this.zA({ignore_single_exit:1})}; g.u.MV=function(){return{cpn:this.playback.E3(),durationMs:0,CU:0,playerType:1,lh:0,videoData:this.playback.getVideoData(),errorCount:0}}; g.u.BR=function(){if(this.E6)return!1;var J=void 0;this.cB&&(J=this.U.get(this.cB));return this.playback.getVideoData().NH()?!!J&&!J.kG:!!J}; g.u.seekTo=function(J,K,n,X){J=J===void 0?0:J;K=K===void 0?{}:K;n=n===void 0?!1:n;X=X===void 0?null:X;if(this.playback.getVideoData().NH()&&J<=this.VP/1E3)this.playback.pauseVideo(),this.VP=0,this.L=!0,this.playback.zc(),this.playback.seekTo(J),this.playback.playVideo();else if(this.L=!0,n)BRp(this,J,K);else{n=this.app.a4();var l=n===this.fv?this.iR:null;K8(this,!1);this.wN=J;this.o5=K;X!=null&&this.a5.start(X);n&&(this.iR=l||n.getPlayerState(),n.Q4(K),this.fv=n)}}; g.u.Xq=function(){K8(this,!1);UUM(this);tZf(this);g.t.prototype.Xq.call(this)}; g.u.u7=function(J){this.x4=J;this.zA({swebm:J})}; g.u.bk=function(J,K,n){if(n&&K){var X=this.K.get(J);if(X){X.locations||(X.locations=new Map);var l=Number(K.split(";")[0]);n=new g.mZ(n);this.zA({hdlredir:1,itag:K,seg:J,hostport:LT(n)});X.locations.set(l,n)}}}; g.u.V$=function(J,K,n,X,l,x){var V=X===3,v=Zbq(this,J,K,X,n,x);if(!v){o1(this,K,V);var Q=g.y9U(this,K)?"undec":"ncp";this.zA({gvprp:Q,mt:J,seg:K,tt:X,itag:n,ce:x});return null}V||this.K.set(K,v);x=v.nJ;var S;X=((S=this.D3(K-1,X,l))==null?void 0:S.Bo)||"";X===""&&this.zA({eds:1});S=WqF(this,v.ssdaiAdsConfig);l=this.playback.getVideoData();var r;V=((r=l.Z)==null?void 0:r.containerType)||0;r=l.g2[V];v=v.mQ&&K>=v.mQ?v.mQ:void 0;r={lZ:x?Ez7(this,x):[],tP:S,Bo:X,j1:v,KZ:uB(r.split(";")[0]),lE:r.split(";")[1]|| ""};v={ax:r};this.md&&(J={gvprpro:"v",sq:K,mt:J.toFixed(3),itag:n,acpns:((Q=r.lZ)==null?void 0:Q.join("_"))||"none",abid:x},this.zA(J));return v}; g.u.CS=function(J){a:{if(!this.E6){var K=fkd(this,J);if(!(this.playback.getVideoData().NH()&&(K==null?0:K.kG)))break a}K=void 0}var n=K;if(!n)return this.zA({gvprp:"ncp",mt:J}),null;K=n.nJ;var X=WqF(this,n.ssdaiAdsConfig);n=n.mQ&&n.y_&&J>=n.y_?n.mQ:void 0;var l=this.playback.getVideoData(),x,V=((x=l.Z)==null?void 0:x.containerType)||0;x=l.g2[V];x={lZ:K?Ez7(this,K):[],tP:X,j1:n,KZ:uB(x.split(";")[0]),lE:x.split(";")[1]||""};var v;J={gvprpro:"v",mt:J.toFixed(3),acpns:((v=x.lZ)==null?void 0:v.join("_"))|| "none",abid:K};this.zA(J);return x}; g.u.gb=function(J,K,n,X,l,x){var V=Number(n.split(";")[0]),v=X===3;J=Zbq(this,J,K,X,n,x);this.zA({gdu:1,seg:K,itag:V,pb:""+!!J});if(!J)return o1(this,K,v),null;J.locations||(J.locations=new Map);if(!J.locations.has(V)){var Q,S;x=(Q=J.videoData.getPlayerResponse())==null?void 0:(S=Q.streamingData)==null?void 0:S.adaptiveFormats;if(!x)return this.zA({gdu:"noadpfmts",seg:K,itag:V}),o1(this,K,v),null;Q=x.find(function(O){return O.itag===V}); if(!Q||!Q.url){var r=J.videoData.videoId;J=[];var C=g.z(x);for(X=C.next();!X.done;X=C.next())J.push(X.value.itag);this.zA({gdu:"nofmt",seg:K,vid:r,itag:V,fullitag:n,itags:J.join(",")});o1(this,K,v);return null}J.locations.set(V,new g.mZ(Q.url,!0))}x=J.locations.get(V);if(!x)return this.zA({gdu:"nourl",seg:K,itag:V}),o1(this,K,v),null;x=new eo(x);this.x4&&(x.get("dvc")?this.zA({dvc:x.get("dvc")||""}):x.set("dvc","webm"));(X=(C=this.D3(K-1,X,l))==null?void 0:C.Bo)&&x.set("daistate",X);J.mQ&&K>=J.mQ&& x.set("skipsq",""+J.mQ);(C=this.playback.getVideoData().clientPlaybackNonce)&&x.set("cpn",C);C=[];J.nJ&&(C=Ez7(this,J.nJ),C.length>0&&x.set("acpns",C.join(",")));v||this.K.set(K,J);v=null;v=x.get("aids");X=x.M_();(X==null?void 0:X.length)>2048&&this.zA({urltoolong:1,sq:K,itag:V,len:X.length});this.md&&(X&&(x=J.cpn,l=J.nJ,MZe(this,x,l),l&&!this.f9.has(l)&&(x=bb3(this,x,l),Q=A9k(this,l),this.zA({iofa:x}),this.zA({noawnzd:Q-x}),this.zA({acpns:C.join("."),aids:(r=v)==null?void 0:r.replace(/,/g,".")}), this.f9.add(l))),this.zA({gdu:"v",seg:K,itag:n,ast:J.CU.toFixed(3),alen:J.durationMs.toFixed(3),acpn:J.cpn,avid:J.videoData.videoId}));return X}; g.u.DS=function(J,K,n){n=n===void 0?!1:n;var X=n8(this,J,K);if(X){var l=void 0,x=X.nJ;if(x){this.zA({skipadonsq:K,sts:n,abid:x,acpn:X.cpn,avid:X.videoData.videoId});n=this.W.get(x);if(!n)return;n=g.z(n);for(x=n.next();!x.done;x=n.next())x=x.value,x.mQ=K,x.y_=J,x.CU>X.CU&&(l=x)}this.X=X.cpn;ak3(this);J=this.playback.getCurrentTime();M4(this,X,l,J,J,!1,!0)}}; g.u.Vk=function(){for(var J=g.z(this.C),K=J.next();!K.done;K=J.next())K=K.value,K.mQ=NaN,K.y_=NaN;ak3(this);this.zA({rsac:"resetSkipAd",sac:this.X});this.X=""}; g.u.D3=function(J,K,n){return this.PW.D3(J,K,n)}; g.u.uD=KU(63); g.u.kH=function(J,K,n,X,l,x,V,v,Q){X.length>0&&this.zA({onssinfo:1,sq:J,start:K.toFixed(3),cpns:X.join(","),ds:l.join(","),isVideo:V?1:0});Q&&this.PW.kH(J,V,v,Q);if(V){if(X.length&&l.length)for(this.X&&this.X===X[0]&&this.zA({skipfail:1,sq:J,acpn:this.X}),J=K+this.q$(),V=0;V0&&(this.jB=0,this.cB="",this.api.publish("serverstitchedvideochange"));this.playback.LV(n,X);return!0}; g.u.al=function(){this.zA({rstdaist:1});this.PW.clearAll()}; g.u.H9=function(J){var K;if(J!==((K=this.Aj)==null?void 0:K.identifier))this.zA({ignorenoad:J});else{this.Gi.add(J);this.zA({noadrcv:J});var n;((n=this.Aj)==null?void 0:n.identifier)===J&&Ew(this)}}; g.u.Nm=function(J){if(this.E6)return this.zA({dai_disabled:J.event}),!1;if(this.playback.getVideoData().NH()&&(this.lx.J("html5_lifa_no_gab_on_predict_start")&&J.event==="predictStart"||J.event==="continue"||J.event==="stop"))return this.zA({cuepoint_skipped:J.event}),!1;var K=BZ(this.api.hx());if(K=K?K.Nm(J):!1)this.GA={w4:J.identifier,QN:J.startSecs};else if(this.GA&&this.GA.w4===J.identifier&&J.startSecs>this.GA.QN+1){this.zA({cueStChg:J.identifier,oldSt:this.GA.QN.toFixed(3),newSt:J.startSecs.toFixed(3), abid:this.GA.Gg});if(this.GA.Gg){var n=J.startSecs-this.GA.QN,X=this.W.get(this.GA.Gg);if(X){X=g.z(X);for(var l=X.next();!l.done;l=X.next())l=l.value,l.CU>=0&&(l.CU+=n*1E3,this.lx.J("html5_ssdai_update_timeline_on_start_time_change")&&(l.lh+=n*1E3),this.zA({newApEt:l.CU,newApPrt:l.lh,acpn:l.cpn}))}}this.GA.QN=J.startSecs}return K}; g.u.Nt=function(J){return this.E6?!1:!!fkd(this,J)}; g.u.f2=function(J){var K=this;if(this.lx.J("html5_lifa_ignore_multiple_skips")&&this.QG)return this.zA({ufs_ad:this.X,ufs_cur:this.cB,ufs_cont:this.MV().cpn}),!1;this.playback.pauseVideo();var n=this.playback.getCurrentTime(),X=this.lx.J("html5_lifa_reset_segment_index_on_skip"),l=X?n+this.playback.q$():n,x=this.U.get(this.cB),V=this.Z.get(this.cB);if(x){this.X=this.cB;this.L=!1;x.kG=!0;n=this.playback.getCurrentTime();this.G={Eo:V,isAd:!0,n$:!1,J8:n,adCpn:this.cB,FB:x,GYm:J};this.playback.sA(x,this.MV(), n,this.playback.getCurrentTime(),!1,!0,J,(0,g.a)());X&&this.playback.AJ();if(V==null?0:V.start)this.VP=n*1E3-V.start;this.K.clear();this.playback.zc();J=this.MV();this.cB=J.cpn;this.gV(J.cpn,n);this.api.publish("serverstitchedvideochange");this.playback.seekTo(l,{seekSource:89,E8:"lifa_skip"});this.playback.playVideo();this.QG||(this.QG=this.events.T(this.api,"progresssync",function(){K.BT(x)})); return!0}this.zA({skipFail:n},!0);return!1}; g.u.zA=function(J,K){((K===void 0?0:K)||this.md||this.playback.getVideoData().NH())&&this.playback.Zm("sdai",J)}; var TRU=0;g.e(NRe,g.Fg);g.u=NRe.prototype; g.u.onCueRangeEnter=function(J){var K=J.getId();this.playback.Zm("sdai",{oncueEnter:1,cpn:K,start:J.start,end:J.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.LH()||0).toFixed(3)});var n=this.U.get(K);this.playback.Zm("sdai",{enterAdCueRange:1});var X=this.cB||this.MV().cpn,l;X=(l=this.U.get(X))!=null?l:this.MV();n&&(n={wB:X,ex:n,Vn:this.playback.getCurrentTime()},this.uA(n),this.api.J("html5_ssdai_log_ssevt_in_loader")&&Jgd(this,K,J.start/1E3,this.playback.getCurrentTime()))}; g.u.onCueRangeExit=function(J){for(var K=this.playback.getCurrentTime()*1E3,n=J.getId(),X=g.z(this.Z.values()),l=X.next();!l.done;l=X.next())if(l=l.value,l.getId()!==n&&K>=l.start&&K<=l.end)return;if(K=this.U.get(n))K={wB:K,ex:this.MV(),Vn:this.playback.getCurrentTime()},this.uA(K),this.api.J("html5_ssdai_log_ssevt_in_loader")&&Jgd(this,this.playback.E3(),J.end/1E3,this.playback.getCurrentTime())}; g.u.uA=function(J){this.X||this.L||ls(this,this.cB);var K=J.wB,n=J.ex;if(n.cpn===this.cB)this.playback.Zm("sdai",{igtranssame:1,enter:n.cpn,exit:K.cpn});else{var X=this.L,l=!!this.X;this.X="";var x=J.Vn,V=K.playerType===2?K.CU/1E3+K.videoData.wN:this.MV().videoData.wN;this.api.J("html5_ssdai_enable_media_end_cue_range")&&(l||X||K.playerType!==2?(X||l)&&this.zA({mecr:0,seek:X,skip:l}):this.api.Sk(K.cpn));if(K.playerType===2&&n.playerType===2)l?this.playback.Zm("sdai",{igtransskip:1,enter:n.cpn,exit:K.cpn, seek:X,skip:this.X}):M4(this,K,n,V,x,X,l);else{this.cB=n.cpn;gzf(this,K.cpn,x);this.gV(n.cpn,x);J=J.Xpq;if(K.playerType===1&&n.playerType===2){this.VP=0;A0(this,n);var v=bp(this,"c2a",n);this.playback.Zm("sdai",v);this.jB++}else if(K.playerType===2&&n.playerType===1){v=K.videoData.wN;this.api.publish("serverstitchedvideochange");var Q=bp(this,"a2c");this.playback.Zm("sdai",Q);this.jB=0;this.VP=v*1E3;this.ih=V;oSq(this,K.nJ)}this.playback.sA(K,n,V,x,X,l,J)}this.X="";this.L=!1}}; g.u.seekTo=function(J,K,n,X){J=J===void 0?0:J;K=K===void 0?{}:K;n=n===void 0?!1:n;X=X===void 0?null:X;ls(this,this.cB);this.playback.getVideoData().NH()&&J<=this.ih?(this.playback.pauseVideo(),this.ih=this.VP=0,KSe(this,J)):g.Fg.prototype.seekTo.call(this,J,K,n,X)}; g.u.DS=function(J,K,n){n=n===void 0?!1:n;var X=n8(this,J,K);if(X){var l=void 0,x=X.nJ;if(x){this.playback.Zm("sdai",{skipadonsq:K,sts:n,abid:x,acpn:X.cpn,avid:X.videoData.videoId});n=this.W.get(x);if(!n)return;n=g.z(n);for(x=n.next();!x.done;x=n.next())x=x.value,x.mQ=K,x.y_=J,x.CU>X.CU&&(l=x)}ls(this,this.cB);this.X=X.cpn;ak3(this);J=this.playback.getCurrentTime();M4(this,X,l,J,J,!1,!0);this.X="";this.L=!1}}; g.u.kH=function(J,K,n,X,l,x,V,v,Q){X.length>0&&this.playback.Zm("sdai",{onssinfo:1,sq:J,start:K.toFixed(3),cpns:X.join(","),ds:l.join(","),isVideo:V?1:0});Q&&this.PW.kH(J,V,v,Q);if(V){if(X.length&&l.length)for(this.X&&this.X===X[0]&&this.playback.Zm("sdai",{skipfail:1,sq:J,acpn:this.X}),J=K+this.q$(),n=0;n=0&&this.C.splice(J,1)};g.e(ljq,g.t);g.u=ljq.prototype;g.u.onCueRangeEnter=function(J){if(this.G===this.app.a4()){var K=this.C.get(J);K?QYf(this,K.target,K.S5,J):this.Sh("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:J.toString()})}else if(K=this.Z.find(function(l){return l.Cj.Eo===J})){var n=K.Cj,X=n.target; n=n.S5;X?QYf(this,X,n,J):vSU(this,K.lh,n,J)}}; g.u.onQueuedVideoLoaded=function(){var J=this.W;hA(this);if(J){if(!Vb(this,J)){var K=this.app.a4();this.Sh("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:K==null?void 0:K.getVideoData().clientPlaybackNonce,ccpn:""+J.playerVars.cpn})}this.app.a4().addCueRange(J.Cj.Eo)}}; g.u.seekTo=function(J,K,n,X){J=J===void 0?0:J;K=K===void 0?{}:K;X=X===void 0?null:X;if(n===void 0?0:n)Xt8(this,J,K);else{n=this.app.a4()||null;var l=n===this.U?this.N:null;v1(this,!1);this.GA=J;this.K=K;X!=null&&this.L.start(X);n&&(this.N=l||n.getPlayerState(),n.Q4(),this.U=n)}}; g.u.Oi=function(J){g.C1(J,128)&&CZq(this)}; g.u.isManifestless=function(){return Qu(this.G.getVideoData())}; g.u.Xq=function(){v1(this,!1);HLd(this);g.t.prototype.Xq.call(this)}; g.u.Sh=function(J,K){this.G.Sh(new ix(J,K))}; var xZV=0;var R13="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.e(Qb,g.t);Qb.prototype.rX=function(J){if(J)return this.Z.get(J)}; Qb.prototype.Xq=function(){this.G.removeAll();this.Z.removeAll();g.t.prototype.Xq.call(this)};g.Jez=rP(function(){var J=window.AudioContext||window.webkitAudioContext;try{return new J}catch(K){return K.name}});g.e(PZq,g.F);g.u=PZq.prototype;g.u.xm=function(){g.Vq(this.element,g.c3.apply(0,arguments))}; g.u.Ei=function(){this.mP&&(this.mP.removeEventListener("focus",this.Mz),g.oF(this.mP),this.mP=null)}; g.u.Up=function(){this.o4();var J=this.app.S();J.Z$||this.xm("tag-pool-enabled");J.N&&this.xm(g.At.HOUSE_BRAND);J.playerStyle==="gvn"&&(this.xm("ytp-gvn"),this.element.style.backgroundColor="transparent");J.wN&&(this.dB=g.lN("yt-dom-content-change",this.resize,this));this.T(window,"orientationchange",this.resize,this);this.T(window,"resize",this.resize,this)}; g.u.Pe=function(J){g.kn(this.app.S());this.Sj=!J;$q(this)}; g.u.resize=function(){if(this.mP){var J=this.pA();if(!J.isEmpty()){var K=!g.ds(J,this.Uf.getSize()),n=ptH(this);K&&(this.Uf.width=J.width,this.Uf.height=J.height);J=this.app.S();(n||K||this.T7||J.wN)&&this.app.R4.publish("resize",this.getPlayerSize())}}}; g.u.JL=function(J,K){this.updateVideoData(K)}; g.u.updateVideoData=function(J){if(this.mP){var K=this.app.S();Fz&&(this.mP.setAttribute("x-webkit-airplay","allow"),J.title?this.mP.setAttribute("title",J.title):this.mP.removeAttribute("title"));this.mP.setAttribute("controlslist","nodownload");K.c$&&J.videoId&&(this.mP.poster=J.rK("default.jpg"))}K=g.en(J,"yt:bgcolor");this.qq.style.backgroundColor=K?K:"";this.LT=VT(g.en(J,"yt:stretch"));this.So=VT(g.en(J,"yt:crop"),!0);g.Qq(this.element,"ytp-dni",J.t7);this.resize()}; g.u.setGlobalCrop=function(J){this.tA=VT(J,!0);this.resize()}; g.u.setCenterCrop=function(J){this.GN=J;this.resize()}; g.u.F7=function(){}; g.u.getPlayerSize=function(){var J=this.app.S(),K=this.app.R4.isFullscreen(),n=J.externalFullscreen&&g.pR(J);if(K&&Wa()&&!n)return new g.DH(window.outerWidth,window.outerHeight);n=!isNaN(this.fW.width)&&!isNaN(this.fW.height);var X=this.app.S().J("kevlar_player_enable_squeezeback_fullscreen_sizing");if(K&&!n&&X)return new g.DH(this.element.clientWidth,this.element.clientHeight);if(K||J.MI){if(window.matchMedia){J="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.GT&&this.GT.media=== J||(this.GT=window.matchMedia(J));var l=this.GT&&this.GT.matches}if(l)return new g.DH(window.innerWidth,window.innerHeight)}else if(n)return this.fW.clone();return new g.DH(this.element.clientWidth,this.element.clientHeight)}; g.u.pA=function(){var J=this.app.S().J("enable_desktop_player_underlay"),K=this.getPlayerSize(),n=g.Qg(this.app.S().experiments,"player_underlay_min_player_width");return J&&this.nz&&K.width>n?(J=g.Qg(this.app.S().experiments,"player_underlay_video_width_fraction"),new g.DH(Math.min(K.height*this.getVideoAspectRatio(),K.width*J),Math.min(K.height,K.width*J/this.getVideoAspectRatio()))):K}; g.u.getVideoAspectRatio=function(){return isNaN(this.LT)?iLF(this):this.LT}; g.u.getVideoContentRect=function(J){var K=this.pA();J=By7(this,K,this.getVideoAspectRatio(),J);return new g.d5((K.width-J.width)/2,(K.height-J.height)/2,J.width,J.height)}; g.u.Yn=function(J){this.nz=J;this.resize()}; g.u.Jh=function(){return this.y0}; g.u.onMutedAutoplayChange=function(){$q(this)}; g.u.setInternalSize=function(J){g.ds(this.fW,J)||(this.fW=J,this.resize())}; g.u.Xq=function(){this.dB&&g.x4(this.dB);this.Ei();g.F.prototype.Xq.call(this)};g.u=Tyd.prototype;g.u.click=function(J,K){this.elements.has(J);this.G.has(J);var n=g.i2();n&&J.visualElement&&g.x7(n,J.visualElement,K)}; g.u.createClientVe=function(J,K,n,X){var l=this;X=X===void 0?!1:X;this.elements.has(J);this.elements.add(J);n=i0M(n);J.visualElement=n;var x=g.i2(),V=g.IZ();x&&V&&(g.ef("combine_ve_grafts")?kE(DX(),n,V):g.NM(g.qq)(void 0,x,V,n));K.addOnDisposeCallback(function(){l.elements.has(J)&&l.destroyVe(J)}); X&&this.Z.add(J)}; g.u.createServerVe=function(J,K,n){var X=this;n=n===void 0?!1:n;this.elements.has(J);this.elements.add(J);K.addOnDisposeCallback(function(){X.destroyVe(J)}); n&&this.Z.add(J)}; g.u.destroyVe=function(J){this.elements.has(J);this.elements.delete(J);this.X.delete(J);this.G.delete(J);this.Z.delete(J)}; g.u.Um=function(J,K){this.clientPlaybackNonce!==K&&(this.clientPlaybackNonce=K,dw(DX(),J),DZr(this))}; g.u.setTrackingParams=function(J,K){this.elements.has(J);K&&(J.visualElement=g.wG(K))}; g.u.Yr=function(J,K,n){this.elements.has(J);K?this.G.add(J):this.G.delete(J);var X=g.i2(),l=J.visualElement;this.Z.has(J)?X&&l&&(K?g.Xk(X,[l]):g.lC(X,[l])):K&&!this.X.has(J)&&(X&&l&&g.oR(X,l,void 0,n),this.X.add(J))}; g.u.hasVe=function(J){return this.elements.has(J)};g.e(g.sN,g.t);g.sN.create=function(J,K,n,X){try{var l=typeof J==="string"?J:"player"+g.oH(J),x=Pl[l];if(x){try{x.dispose()}catch(v){g.ko(v)}Pl[l]=null}var V=new g.sN(J,K,n,X);V.addOnDisposeCallback(function(){Pl[l]=null;V.a6&&V.a6()}); return Pl[l]=V}catch(v){throw g.ko(v),(v&&v instanceof Error?v:Error(String(v))).stack;}}; g.u=g.sN.prototype;g.u.H6=function(){return this.visibility}; g.u.Be=function(J){var K=this.Qw();if(J!==K){J.getVideoData().autonavState=K.getVideoData().autonavState;K.A6(this.jZ,this);var n=K.getPlaybackRate();K.dispose();this.X2.Be(J);J.setPlaybackRate(n);J.Ly(this.jZ,this);UZr(this)}}; g.u.Jd=function(){this.pT||(this.pT=g.lE(Yw(),Th7()));return this.pT}; g.u.Ei=function(J){if(this.mediaElement){this.Bu&&(this.events.rR(this.Bu),this.Bu=null);g.L0(this.c9);this.a4().Ei(!0,!1,J);this.template.Ei();try{this.J("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.Gm()}catch(K){g.gG(K)}this.mediaElement=null}}; g.u.Te=function(J,K,n){n=n===void 0?!1:n;if(J!==this.a4()){this.logger.debug(function(){return"start set presenting player, type "+J.getPlayerType()+", vid "+J.getVideoData().videoId}); var X=null;n||(n=this.a4(),X=n.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),i8(this.Sc,3),Gb(this,"cuerangesremoved",n.Hh()),this.mw&&!J.isGapless()&&n.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),n=J.QJ()&&n.QJ(),this.rN.Z_("iv_s"),bLk(this,n));J.getPlayerType()===1&&this.Be(J);ESV(this,J);this.X2.Te(J);this.mediaElement&&J.setMediaElement(this.mediaElement);J.Ly(this.FG,this);J.A4()?wTF(this,"setPresenting",!1):(this.JL("newdata",J,J.getVideoData()), X&&!g.Qr(X,J.getPlayerState())&&this.QW(new g.rf(J.getPlayerState(),X)),K=K&&this.J("html5_player_preload_ad_fix")&&J.getPlayerType()===1,J.er()&&!K&&this.JL("dataloaded",J,J.getVideoData()),(K=(K=J.getVideoData().Z)&&K.video)&&this.R4.B3("onPlaybackQualityChange",K.quality),Gb(this,"cuerangesadded",J.Hh()),K=J.getPlayerState(),g.E(K,2)?qR3(this):g.E(K,8)?J.playVideo():J.GZ()&&J.pauseVideo(),K=this.Qw(),J.getPlayerType()===2&&(J.getVideoData().aL=K.getVideoData().clientPlaybackNonce),J.getPlayerType()!== 2||this.YO()||(X=J.getVideoData(),K.PL(X.clientPlaybackNonce,X.o2||"",X.breakType||0,X.Nk,X.videoId||"")),this.logger.debug("finish set presenting player"))}}; g.u.k9=function(){if(this.Qw()!==this.a4()){var J=this.a4();this.logger.debug(function(){return"release presenting player, type "+J.getPlayerType()+", vid "+J.getVideoData().videoId}); this.Te(this.Qw())}}; g.u.P6=function(){return this.X2}; g.u.PB=function(J){return this.X2.PB(J)}; g.u.EB=function(J){return this.X2.EB(J)}; g.u.Qw=function(){return this.X2.Qw()}; g.u.a4=function(){return this.X2.a4()}; g.u.Az=KU(50);g.u.wWG=function(){eP(this)||(this.logger.debug("application playback ready"),this.SY(5))}; g.u.Z9d=function(){if(!eP(this)){this.logger.debug("playback ready");Ri8(this);var J=this.a4(),K=J.getPlayerState();J.GZ()?this.pauseVideo():K.isOrWillBePlaying()&&this.playVideo()}}; g.u.canPlayType=function(J){return LJ(J)}; g.u.S=function(){return this.lx}; g.u.getVideoData=function(){return this.a4().getVideoData()}; g.u.r6=KU(19);g.u.Dr=function(){return this.Qw().getVideoData()}; g.u.getVideoLoadedFraction=function(J){return(J=this.PB({playerType:J}))?J.getVideoLoadedFraction():this.X2.G.getVideoLoadedFraction()}; g.u.S_=function(){return this.template}; g.u.hx=function(){return this.Sc}; g.u.lH=function(){return this.rN}; g.u.SV=function(J){var K=this.PB({playerType:1});K&&K.LK(J)}; g.u.wL=function(){var J=this.Sc.wL();this.R4.publish("videoStatsPingCreated",J);return J}; g.u.getVolume=function(){return Math.round(this.R4.getVolume())}; g.u.isMuted=function(){return this.R4.isMuted()}; g.u.wb=function(){if(this.Qw()===this.a4()&&this.nU)return this.nU.postId}; g.u.uhq=function(){var J=this;this.J("use_rta_for_player")||(g.Ig(this.lx)?g.l7(this.lx,g.Yi(this.getVideoData())).then(function(K){Gh(Yw(),K);bzU(J.getVideoData(),J.lx,J.Jd())}):bzU(this.getVideoData(),this.lx,this.Jd()))}; g.u.qf=function(J){this.R4.publish("poTokenVideoBindingChange",J)}; g.u.OZ=function(J){this.R4.publish("d6de4videobindingchange",J)}; g.u.KP=function(){this.gD&&this.gD.KP()}; g.u.Zw=function(J){this.gD=J}; g.u.m9=function(J){if(J===1){this.rN.tick("vr");var K=this.a4();K.Ku();gZ3(this.rN,K.getVideoData(),Hqq(this));H83(this.Sc)}K=this.lx;if(nI(K)&&K.L||g.cp(K)){var n;(((n=this.a4().getVideoData())==null?0:n.enableServerStitchedDai)||!this.YO())&&this.R4.B3("onAdStateChange",J)}}; g.u.setLoopVideo=function(J){var K=this.a4();K===this.Qw()&&K.Vv()!==J&&(K.setLoop(J),this.R4.I4("onLoopChange",J))}; g.u.getLoopVideo=function(){return this.a4().Vv()}; g.u.setLoopRange=function(J){var K=!1;!!this.nU!==!!J?K=!0:this.nU&&J&&(K=this.nU.startTimeMs!==J.startTimeMs||this.nU.endTimeMs!==J.endTimeMs||this.nU.postId!==J.postId||this.nU.type!==J.type);if(K){K=this.a4();oT(K.getVideoData())&&K.Zm("slr",{et:(J==null?void 0:J.endTimeMs)||-1});K=this.Qw();K.Uo("applooprange");if(J){var n=new g.KG(J.startTimeMs,J.endTimeMs,{id:"looprange",namespace:"applooprange"});K.addCueRange(n)}else{this.Dr().clipConfig=void 0;var X;((n=this.nU)==null?void 0:n.type)!=="repeatChapter"|| isNaN(Number((X=this.nU)==null?void 0:X.loopCount))||(n={loopCount:String(this.nU.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.vJ("repeatChapterLoopEvent",n))}this.nU=J;this.R4.I4("onLoopRangeChange",J||void 0);this.Qw()===this.a4()&&(this.qr(),K.j2())}}; g.u.getLoopRange=function(){return this.nU}; g.u.qr=function(){var J="",K=this.Qw();this.nU?K!==this.a4()?J="pnea":XTH(this,K.getCurrentTime())&&(this.nU.loopCount=0,J="ilr"):J="nlr";var n=this.a4();if(oT(n.getVideoData()))if(this.J("html5_gapless_log_loop_range_info")){var X,l;n.Zm("slrre",{rej:J,ct:K.getCurrentTime(),lst:(X=this.nU)==null?void 0:X.startTimeMs,let:(l=this.nU)==null?void 0:l.endTimeMs})}else n.Zm("slrre",{});J||xNU(this)}; g.u.setPlaybackRate=function(J,K){if(!isNaN(J)){J=fjq(this,J);var n=this.Qw();n.getPlaybackRate()!==J&&(n.setPlaybackRate(J),K&&!this.lx.U&&g.kF("yt-player-playback-rate",J),this.R4.B3("onPlaybackRateChange",J))}}; g.u.getCurrentTime=function(J,K){K=K===void 0?!0:K;var n=this.X2.uH;if(n)return n.getCurrentTime();var X=J===2&&this.getVideoData().enableServerStitchedDai;n=null;X?n=this.a4():n=this.PB({playerType:J});return n?X&&this.wE?(J=this.X2.N)?J.getCurrentTime(K):n.getCurrentTime():K?(K=us(this,n),Tb(this,K.getCurrentTime(),K)):n.getCurrentTime():this.X2.G.getCurrentTime()}; g.u.M$=function(){var J=this.PB({playerType:void 0});if(!J)return this.X2.G.M$();J=us(this,J);return Tb(this,J.M$(),J)}; g.u.getDuration=function(J,K){K=K===void 0?!0:K;var n=this.X2.uH;if(n)return n.getDuration();n=this.getVideoData();var X=J===2&&n.enableServerStitchedDai,l=null;X?l=this.a4():l=this.PB({playerType:J});if(!l)return this.X2.G.getDuration();if(n.hasProgressBarBoundaries()&&!X){var x,V=Number((x=n.progressBarStartPosition)==null?void 0:x.utcTimeMillis),v;x=Number((v=n.progressBarEndPosition)==null?void 0:v.utcTimeMillis);if(!isNaN(V)&&!isNaN(x))return(x-V)/1E3}if(oT(n)&&!n.isLivePlayback)return p8(this, J);if(K)return J=R1(this,l),Tb(this,J.getDuration(),J);if(X&&this.wE){if(this.J("html5_huli_ssdai_use_playback_state"))return J=this.X2,J=J.C===J.N?J.C:null,(J==null?void 0:J.getDuration())||0;var Q;return((Q=this.X2.N)==null?void 0:Q.getDuration())||0}return l.getDuration()}; g.u.vM=function(J){var K=this.PB({playerType:J});return K?this.YO(K)?(K=R1(this,K),K.vM()-K.getCurrentTime()+this.getCurrentTime(J)):K.vM():this.X2.G.vM()}; g.u.addPlayerResponseForAssociation=function(){}; g.u.finishSegmentByCpn=function(){return[]}; g.u.Up=function(){this.template.Up();var J=this.R4;J.state.element=this.template.element;var K=J.state.element,n;for(n in J.state.G)J.state.G.hasOwnProperty(n)&&(K[n]=J.state.G[n]);(J=fsd(this.template.element))&&this.events.T(this.template,J,this.onFullscreenChange)}; g.u.getDebugText=function(J){var K=this.Qw().FK(J),n=this.a4();if(n!==this.Qw()){n=n.FK(J);for(var X=g.z(Object.keys(n)),l=X.next();!l.done;l=X.next())l=l.value,K["ad"+l]=n[l];if(J){n=K;X={};if(l=yh(document,"movie_player"))X.bounds=l.getBoundingClientRect(),X["class"]=l.className;l={};var x=g.aN("video-ads");x?(iqU(x,l),l.html=x.outerHTML):l.missing=1;x={};var V=g.aN("videoAdUiSkipContainer"),v=g.aN("ytp-ad-skip-button-container"),Q=g.aN("ytp-skip-ad-button"),S=V||v||Q;S?(iqU(S,x),x.ima=V?1:0,x.bulleit= v?1:0,x.component=Q?1:0):x.missing=1;X=JSON.stringify({player:X,videoAds:l,skipButton:x});n.ad_skipBtnDbgInfo=X}}J&&this.mediaElement&&(K["0sz"]=""+(+kR(this.mediaElement.getSize())===0),K.op=this.mediaElement.AN("opacity"),n=this.mediaElement.wJ().y+this.mediaElement.getSize().height,K.yof=""+(+n<=0),K.dis=this.mediaElement.AN("display"));J&&((J=(0,g.HI)())&&(K.gpu=J),(J=this.lx.playerStyle)&&(K.ps=J),this.lx.fv&&(K.webview=1));K.debug_playbackQuality=this.R4.getPlaybackQuality(1);K.debug_date=(new Date).toString(); K.origin=window.origin;K.timestamp=Date.now();delete K.uga;delete K.q;return JSON.stringify(K,null,2)}; g.u.getFeedbackProductData=function(){var J={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.S().experiments.experimentIds.join(", "),player_release:h[69]},K;if(K=this.getPlayerStateObject().V2)J.player_error_code=K.errorCode,J.player_error_details=JSON.stringify(K.errorDetail);return J}; g.u.getPresentingPlayerType=function(J){if(this.appState===1)return 1;if(eP(this))return 3;var K;return J&&((K=this.wE)==null?0:K.BR(this.getCurrentTime()))?2:this.a4().getPlayerType()}; g.u.pX=function(){return!1}; g.u.getPlayerStateObject=function(J){var K=this.X2.uH;return K?K.getPlayerState():this.PB({playerType:J}).getPlayerState()}; g.u.getAppState=function(){return this.appState}; g.u.Mh4=function(J){switch(J.type){case "loadedmetadata":this.u2.start();J=g.z(this.ac);for(var K=J.next();!K.done;K=J.next())K=K.value,CvF(this,K.id,K.pOQ,K.QHq,void 0,!1);this.ac=[];break;case "loadstart":this.rN.Z_("gv");break;case "progress":case "timeupdate":Qd(J.target.Ya())>=2&&this.rN.Z_("l2s");break;case "playing":g.Ju&&this.u2.start();if(g.Ig(this.lx))J=!1;else{K=g.Th(this.hx());J=this.mediaElement.AN("display")==="none"||kR(this.mediaElement.getSize())===0;var n=SP(this.template),X=this.a4().getVideoData(), l=g.G_(this.lx);X=Xr(X);K=!n||K||l||X||this.lx.md;J=J&&!K}J&&(J=this.a4(),J.PF(),this.getVideoData().iR||(this.getVideoData().iR=1,this.Gk(),J.playVideo()))}}; g.u.dHG=function(J){this.R4.gR("onLoadProgress",J)}; g.u.E4A=function(){this.R4.publish("playbackstalledatstart")}; g.u.AHd=function(J,K){this.R4.publish("sabrCaptionsDataLoaded",J,K)}; g.u.DHv=function(J){this.a4().mY(J)}; g.u.O9G=function(J){this.a4().Y9(J)}; g.u.b9F=function(J){J=us(this,this.a4());J=Tb(this,J.getCurrentTime(),J);this.R4.B3("onVideoProgress",J);this.lx.D5&&$NV(this,this.visibility.oP())&&this.pauseVideo()}; g.u.mSQ=function(){this.R4.B3("onAutoplayBlocked");var J=this.a4().getVideoData();J&&(J.IL=!0);this.J("embeds_enable_autoplay_and_visibility_signals")&&g.pR(this.lx)&&(J={autoplayBrowserPolicy:MI(),autoplayIntended:NI(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.vJ("embedsAutoplayStatusChanged",J))}; g.u.XMj=function(){this.R4.publish("progresssync")}; g.u.pMx=function(){this.R4.gR("onPlaybackPauseAtStart")}; g.u.yjG=function(J){if(this.getPresentingPlayerType()===1){g.C1(J,1)&&!g.E(J.state,64)&&this.Dr().isLivePlayback&&this.Qw().isAtLiveHead()&&this.R4.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.C1(J,2)){if(this.nU&&this.nU.endTimeMs>=(this.getDuration()-1)*1E3){xNU(this);return}qR3(this)}if(g.E(J.state,128)){var K=J.state;this.cancelPlayback(5);K=K.V2;JSON.stringify({errorData:K,debugInfo:this.getDebugText(!0)});this.R4.B3("onError",Vbq(K.errorCode));this.R4.gR("onDetailedError",{errorCode:K.errorCode, errorDetail:K.errorDetail,message:K.errorMessage,messageKey:K.Tu,cpn:K.cpn});(0,g.a)()-this.lx.J7>6048E5&&this.R4.gR("onReloadRequired")}K={};if(J.state.isPlaying()&&!J.state.isBuffering()&&!ZS("pbresume","ad_to_video")&&ZS("_start","ad_to_video")){var n=this.getVideoData();K.clientPlaybackNonce=n.clientPlaybackNonce;n.videoId&&(K.videoId=n.videoId);g.tB(K,"ad_to_video");Ul("pbresume",void 0,"ad_to_video");H83(this.Sc)}this.R4.publish("applicationplayerstatechange",J)}}; g.u.QW=function(J){this.X2.uH||this.R4.publish("presentingplayerstatechange",J)}; g.u.Oi=function(J){H1(this,SR(J.state));g.E(J.state,1024)&&this.R4.isMutedByMutedAutoplay()&&(B1(this,{muted:!1,volume:this.ez.volume},!1),m$(this,!1))}; g.u.gFm=function(J,K){J==="newdata"&&UZr(this);this.R4.publish("applicationvideodatachange",J,K)}; g.u.Y_Q=function(J,K){this.J("html5_afmt_change_update_volume")&&Ri8(this);this.R4.gR("onPlaybackAudioChange",this.R4.getAudioTrack().Hw.name);this.R4.publish("internalaudioformatchange",this.R4.getAudioTrack().Hw.id,K)}; g.u.q84=function(J){var K=this.a4().getVideoData();J===K&&this.R4.B3("onPlaybackQualityChange",J.Z.video.quality)}; g.u.Wn=function(){var J=this.X2.X[2]||null;J&&(J=J.getVideoData(),this.a4().Zm("ssdai",{cleanaply:1,acpn:J==null?void 0:J.clientPlaybackNonce,avid:J.videoId,isDai:this.Dr().enableServerStitchedDai?1:0}),delete this.X2.X[2])}; g.u.cHG=function(J,K){this.JL(J,this.a4(),K)}; g.u.JL=function(J,K,n){this.logger.debug(function(){return"on video data change "+J+", player type "+K.getPlayerType()+", vid "+n.videoId}); this.lx.Pw()&&K.Zm("vdc",{type:J,vid:n.videoId||"",cpn:n.clientPlaybackNonce||""});K===this.Qw()&&(this.lx.nA=n.oauthToken);K===this.Qw()&&(this.getVideoData().enableServerStitchedDai&&!this.wE?(this.Qw().Zm("sdai",{initSstm:1}),this.wE=this.J("html5_enable_ssdai_transition_with_only_enter_cuerange")||this.J("html5_ssdai_log_ssevt_in_loader")?new NRe(this.R4,this.lx,this.Qw(),this):new g.Fg(this.R4,this.lx,this.Qw(),this)):!this.getVideoData().enableServerStitchedDai&&this.wE&&(this.wE.dispose(), this.wE=null,Cy3(this.X2)));if(J==="newdata")this.logger.debug("new video data, destroy modules"),i8(this.Sc,2),this.R4.publish("videoplayerreset",K);else{if(!this.mediaElement)return;J==="dataloaded"&&(this.Qw()===this.a4()?(yX(n.ix,n.iJ),JWp(this)):Mxk(this));K.getPlayerType()===1&&(this.lx.PW&&I9H(this),this.getVideoData().isLivePlayback&&!this.lx.uu&&this.ph("html5.unsupportedlive",2,"DEVICE_FALLBACK"),n.isLoaded()&&((CLp(n)||this.getVideoData().Xt)&&this.R4.publish("legacyadtrackingpingchange", this.getVideoData()),n.hasProgressBarBoundaries()&&VJp(this)));this.R4.publish("videodatachange",J,n,K.getPlayerType())}this.R4.B3("onVideoDataChange",{type:J,playertype:K.getPlayerType()});this.qr();var X=n.i9;X?this.Ls.Um(X,n.clientPlaybackNonce):DZr(this.Ls)}; g.u.Yq=function(){wl(this,null);this.R4.gR("onPlaylistUpdate")}; g.u.C_m=function(J){delete this.Lw[J.getId()];this.Qw().removeCueRange(J);a:{J=this.getVideoData();var K,n,X,l,x,V,v,Q,S,r,C=((K=J.MQ)==null?void 0:(n=K.contents)==null?void 0:(X=n.singleColumnWatchNextResults)==null?void 0:(l=X.autoplay)==null?void 0:(x=l.autoplay)==null?void 0:x.sets)||((V=J.MQ)==null?void 0:(v=V.contents)==null?void 0:(Q=v.twoColumnWatchNextResults)==null?void 0:(S=Q.autoplay)==null?void 0:(r=S.autoplay)==null?void 0:r.sets);if(C)for(K=g.z(C),n=K.next();!n.done;n=K.next())if(n= n.value,l=X=void 0,n=n.autoplayVideo||((X=n.autoplayVideoRenderer)==null?void 0:(l=X.autoplayEndpointRenderer)==null?void 0:l.endpoint),X=g.f(n,g.MJ),x=l=void 0,n!=null&&((l=X)==null?void 0:l.videoId)===J.videoId&&((x=X)==null?0:x.continuePlayback)){J=n;break a}J=null}(K=g.f(J,g.MJ))&&this.R4.I4("onPlayVideo",{sessionData:{autonav:"1",itct:J==null?void 0:J.clickTrackingParams},videoId:K.videoId,watchEndpoint:K})}; g.u.SY=function(J){var K=this;J!==this.appState&&(this.logger.debug(function(){return"app state change "+K.appState+" -> "+J}),J===2&&this.getPresentingPlayerType()===1&&(H1(this,-1),H1(this,5)),this.appState=J,this.R4.publish("appstatechange",J))}; g.u.ph=function(J,K,n,X,l){this.Qw().xO(J,K,n,X,l)}; g.u.wr=function(J,K){this.Qw().handleError(new ix(J,K))}; g.u.isAtLiveHead=function(J,K){K=K===void 0?!1:K;var n=this.PB({playerType:J});if(!n)return this.X2.G.isAtLiveHead();J=R1(this,n);n=us(this,n);return J!==n?J.isAtLiveHead(Tb(this,n.getCurrentTime(),n),!0):J.isAtLiveHead(void 0,K)}; g.u.UR=function(){var J=this.PB({playerType:void 0});return J?R1(this,J).UR():this.X2.G.UR()}; g.u.seekTo=function(J,K,n,X,l){K=K!==!1;if(X=this.PB({playerType:X}))this.appState===2&&I1(this),this.YO(X)?Dl(this)?this.wE.seekTo(J,{seekSource:l},K,n):this.tH.seekTo(J,{seekSource:l},K,n):X.seekTo(J,{iV:!K,LP:n,E8:"application",seekSource:l})}; g.u.seekBy=function(J,K,n,X){this.seekTo(this.getCurrentTime()+J,K,n,X)}; g.u.u2W=function(){this.R4.B3("SEEK_COMPLETE")}; g.u.FPW=function(){this.R4.I4("onAbnormalityDetected")}; g.u.rHj=function(J){this.R4.I4("onSnackbarMessage",J)}; g.u.n4v=function(J){var K=this.a4(),n=K.getVideoData();if(this.appState===1||this.appState===2)n.startSeconds=J;this.appState===2?g.E(K.getPlayerState(),512)||I1(this):this.R4.B3("SEEK_TO",J)}; g.u.LPW=function(){this.R4.publish("airplayactivechange");this.lx.J("html5_external_airplay_events")&&this.R4.gR("onAirPlayActiveChange",this.R4.Do())}; g.u.S_W=function(){this.R4.publish("airplayavailabilitychange");this.lx.J("html5_external_airplay_events")&&this.R4.gR("onAirPlayAvailabilityChange",this.R4.kR())}; g.u.showAirplayPicker=function(){this.a4().iB()}; g.u.zLW=function(){this.R4.publish("beginseeking")}; g.u.DSQ=function(){this.R4.publish("endseeking")}; g.u.getStoryboardFormat=function(J){return(J=this.PB({playerType:J}))?R1(this,J).getStoryboardFormat():this.X2.G.getStoryboardFormat()}; g.u.QZ=function(J){return(J=this.PB({playerType:J}))?R1(this,J).getVideoData().QZ():this.X2.G.QZ()}; g.u.YO=function(J){J=(J||this.a4()).getVideoData();if(Dl(this))J=J===this.wE.playback.getVideoData();else a:{var K=this.tH;if(J===K.G.getVideoData()&&K.Z.length)J=!0;else{K=g.z(K.Z);for(var n=K.next();!n.done;n=K.next())if(J.aZ===n.value.aZ){J=!0;break a}J=!1}}return J}; g.u.yM=function(J,K,n,X,l,x,V,v){this.logger.debug(function(){return"Adding video to timeline id="+J.video_id+"\n lengthMs="+X+" enterTimeMs="+l}); var Q="",S=Dl(this);this.a4().Zm("appattl",{sstm:this.wE?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:S});Q=S?dU3(this.wE,J,K,n,X,l,x,V,v):h1F(this.tH,J,n,X,l,x);this.logger.debug(function(){return"Video added to timeline id="+J.video_id+" timelinePlaybackId="+Q}); return Q}; g.u.NJ=function(J,K,n,X,l,x,V,v){if(Dl(this)){var Q=dU3(this.wE,J,K,n,X,l,x,V,v);this.logger.debug(function(){return"Remaining video added to timeline id="+J.video_id+" timelinePlaybackId="+Q})}return""}; g.u.H9=function(J){var K;(K=this.wE)==null||K.H9(J)}; g.u.uZ=function(J,K){J=J===void 0?-1:J;K=K===void 0?Infinity:K;Dl(this)||HLd(this.tH,J,K)}; g.u.D9=function(J,K,n){if(Dl(this)){var X=this.wE,l=X.fU.get(J);l?(n===void 0&&(n=l.lh),GAk(X,l,K,n)):X.Ri("Invalid_timelinePlaybackId_"+J+"_specified")}else{X=this.tH;l=null;for(var x=g.z(X.Z),V=x.next();!V.done;V=x.next())if(V=V.value,V.aZ===J){l=V;break}l?(n===void 0&&(n=l.lh),OLU(X,l,K,n)):xq(X,"InvalidTimelinePlaybackId timelinePlaybackId="+J)}}; g.u.enqueueVideoByPlayerVars=function(J,K,n,X){n=n===void 0?Infinity:n;X=X===void 0?"":X;this.YO();J=new g.WF(this.lx,J);X&&(J.aZ=X);hi3(this,J,K,n)}; g.u.queueNextVideo=function(J,K,n,X,l){n=n===void 0?NaN:n;J=this.preloadVideoByPlayerVars(J,K===void 0?1:K,n,X===void 0?"":X,l===void 0?"":l);K=this.a4();J&&(this.J("html5_check_queue_on_data_loaded")?this.S().supportsGaplessShorts()&&K.getVideoData().W&&(n=this.E$,X=this.mw.W,n.U!==J&&(n.Z=K,n.U=J,n.X=1,n.G=J.getVideoData(),n.C=X,n.G.isLoaded()?n.N():n.G.subscribe("dataloaded",n.N,n))):(n=J9M(K,J,this.mw.W),n!=null?(K.Zm("sgap",n),K.getVideoData().W&&K.TW(!1)):(J=J.getVideoData(),K=this.E$,K.G!== J&&(K.G=J,K.X=1,J.isLoaded()?K.W():K.G.subscribe("dataloaded",K.W,K)))))}; g.u.KV=function(J,K,n,X){var l=this;n=n===void 0?0:n;X=X===void 0?0:X;R1(this,this.a4()).oR();$Uf(this.mw,J,K,n,X).then(function(){l.R4.gR("onQueuedVideoLoaded")},function(){})}; g.u.XI=function(){return this.mw.XI()}; g.u.iy=function(J){var K=this.mw.G;return K?K.Em(J):!1}; g.u.clearQueue=function(J,K){J=J===void 0?!1:J;K=K===void 0?!1:K;this.logger.debug("Clearing queue");this.mw.clearQueue(J,K)}; g.u.loadVideoByPlayerVars=function(J,K,n,X,l,x){K=K===void 0?1:K;var V=this.Qw();if(K===2&&this.Dr().enableServerStitchedDai&&V&&!V.SB())return V.Zm("lvonss",{vid:(J==null?void 0:J.videoId)||"",ptype:K}),!1;var v=!1;V=new g.WF(this.lx,J);V.reloadPlaybackParams=x;g.Nw(this.lx)&&!V.sy&&$B(this.rN);var Q;x=this.rN;var S=(Q=V.K)!=null?Q:"";x.timerName=S;this.rN.Zd("pl_i");this.J("web_player_early_cpn")&&V.clientPlaybackNonce&&this.rN.infoGel({clientPlaybackNonce:V.clientPlaybackNonce});ade(V).supportsVp9Encoding=== !1&&this.a4().Zm("noVp9enc",{});if(this.S().supportsGaplessShorts()){Q=r9k(this.mw,V,K);if(Q==null){H1(this,-1);this.lx.Pw()&&this.lx.J("html5_short_gapless_unlisten_after_seek")&&this.a4().Zm("sgap",{ul:1});J=this.mw;J.app.S().J("html5_gapless_new_slr")?L8(J.app,"gaplessshortslooprange"):J.app.setLoopRange(null);J.app.getVideoData().bQ=!0;var r;(r=J.G)==null||r.n2();var C;(C=J.G)==null||C.lF();n={E8:"gapless_to_next_video",seekSource:60};X=g.Qg(J.app.S().experiments,"html5_gapless_seek_offset"); var O;(O=J.app.a4())==null||O.seekTo(SnV(J)+X,n);if(!J.app.getPlayerStateObject(K).isPlaying()){var H;(H=J.app.a4())==null||H.playVideo(!0)}if(J.app.S().J("html5_short_gapless_unlisten_after_seek")){var R;(R=J.app.a4())==null||R.WP()}J.N();return!0}O=this.J("html5_shorts_gapless_preload_fallback");H=this.mw.G;O&&H&&!H.o4()&&(R=H.getVideoData(),R=this.lx.J("html5_autonav_autoplay_in_preload_key")?kq(this,K,R):gl(this,K,R.videoId,R.aZ),this.X2.U.set(R,H,3600));this.mw.clearQueue(O);this.a4().Zm("sgap", {f:Q})}if(l){for(;V.Hq.length&&V.Hq[0].isExpired();)V.Hq.shift();v=V.Hq.length-1;v=v>0&&l.Z(V.Hq[v])&&l.Z(V.Hq[v-1]);V.Hq.push(l)}n||(J&&GyU(J)?(qw(this.lx)&&!this.MP&&(J.fetch=0),wl(this,J)):this.playlist&&wl(this,null),J&&(this.MP=XK(!1,J.external_list)));this.R4.publish("loadvideo");K=this.iC(V,K,X);v&&this.ph("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+V.Hq.join()).replace(/[;:,]/g,"_"));return K}; g.u.preloadVideoByPlayerVars=function(J,K,n,X,l){K=K===void 0?1:K;n=n===void 0?NaN:n;X=X===void 0?"":X;l=l===void 0?"":l;var x="";if(this.lx.J("html5_autonav_autoplay_in_preload_key"))x=Qwp(this,K,J,l);else{var V=h_(J);x=gl(this,K,V,l)}if(this.X2.U.get(x))return this.logger.debug(function(){return"already preloaded "+x}),null; J=new g.WF(this.lx,J);l&&(J.aZ=l);return vyf(this,J,K,n,X)}; g.u.setMinimized=function(J){this.visibility.setMinimized(J);(J=evU(this.Sc))&&(this.isMinimized()?J.load():J.unload());this.R4.publish("minimized")}; g.u.setInline=function(J){this.visibility.setInline(J)}; g.u.setInlinePreview=function(J){this.visibility.setInline(J)}; g.u.S4=function(J){SJ3(this,J)||this.visibility.S4(J)}; g.u.setSqueezeback=function(J){this.visibility.setSqueezeback(J)}; g.u.Kd=function(){var J,K=(J=this.mediaElement)==null?void 0:J.xr();K&&(this.lx.D1&&HG(s3(function(){return document.exitFullscreen()}),function(){}),HG(s3(function(){return uu(K)}),function(){}))}; g.u.v4x=function(){this.mediaElement.xr();this.mediaElement.xr().webkitPresentationMode==="picture-in-picture"?this.S4(!0):this.S4(!1)}; g.u.togglePictureInPicture=function(){this.a4().togglePictureInPicture()}; g.u.iC=function(J,K,n){K=K===void 0?1:K;this.logger.debug(function(){return"start load video, id "+J.videoId+", type "+K}); ZS("_start",this.rN.timerName)||g.NM(DS)(void 0,this.rN.timerName);var X=!1,l=oyq(this,K,J,!1);l?(X=!0,J.dispose()):(l=C8(this,K,J,!0,n),(this.J("html5_onesie")||this.J("html5_load_before_stop"))&&l.ED()&&l.ye(),this.u2.stop(),K===1&&K!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,K),this.Te(l));l===this.Qw()&&(this.lx.nA=J.oauthToken);if(!l.ED())return!1;if(l===this.Qw())return this.SY(1),n=I1(this),X&&this.J("html5_player_preload_ad_fix")&&l.getPlayerType()===1&& l.er()&&this.JL("dataloaded",l,l.getVideoData()),n;l.d2();return!0}; g.u.cueVideoByPlayerVars=function(J,K){var n=this;K=K===void 0?1:K;var X=this.Qw();if(this.Dr().enableServerStitchedDai&&X&&!X.SB()&&J&&Object.keys(J).length>0)X.Zm("qvonss",{vid:(J==null?void 0:J.videoId)||"",ptype:K});else if(J&&GyU(J))if(this.h4=!0,wl(this,J),(J=g.Sw(this.playlist))&&J.TL())Yq(this,J,K);else this.playlist.onReady(function(){P1(n)}); else{K||(K=this.getPresentingPlayerType());K===1&&this.Yq();X=new g.WF(this.lx,J);var l=g.pR(this.lx)&&!this.lx.QG&&K===1&&!X.isAd()&&!X.o2;this.R4.publish("cuevideo");l?(this.a4().getVideoData().loading=!0,afU(X,J?J:{}).then(function(x){Yq(n,x,K)}),X.dispose()):Yq(this,X,K)}}; g.u.z9=function(J,K,n,X,l,x,V){if(!J&&!n)throw Error("Playback source is invalid");if(Tx(this.lx)||g.wh(this.lx))return K=K||{},K.lact=BC(),K.vis=this.R4.getVisibilityState(),this.R4.I4("onPlayVideo",{videoId:J,watchEndpoint:x,sessionData:K,listId:n}),!1;c0M(this.rN);this.rN.reset();J={video_id:J};X&&(J.autoplay="1");X&&(J.autonav="1");x&&(J.player_params=x.playerParams);V&&(J.oauth_token=V);n?(J.list=n,this.loadPlaylist(J)):this.loadVideoByPlayerVars(J,1);return!0}; g.u.cuePlaylist=function(J,K,n,X){this.h4=!0;rWk(this,J,K,n,X)}; g.u.loadPlaylist=function(J,K,n,X){this.h4=!1;rWk(this,J,K,n,X)}; g.u.SP=function(){return this.R4.isMutedByMutedAutoplay()?!1:this.X2.uH?!0:!(!this.playlist||!this.playlist.kL())}; g.u.Wb=KU(13); g.u.nextVideo=function(J,K){var n=g.NJ(this.Qw().getVideoData());g.kw(this.R4)&&n?this.z9(n.videoId,K?n.kS:n.sessionData,n.playlistId,K,void 0,n.gs||void 0):this.MP?this.R4.gR("onPlaylistNext"):this.getPresentingPlayerType()===3?g.U(mM(this.Sc)).nextVideo():!this.playlist||qw(this.lx)&&!this.R4.isFullscreen()||(this.playlist.kL(J)&&y0q(this.playlist,U4F(this.playlist)),this.playlist.loaded?(J=K&&this.lx.J("html5_player_autonav_logging"),K&&this.R4.publish("playlistautonextvideo"),this.iC(g.U(g.Sw(this.playlist,void 0, K,J)),1)):this.h4=!1)}; g.u.previousVideo=function(J){this.MP?this.R4.gR("onPlaylistPrevious"):this.getPresentingPlayerType()===3?g.U(mM(this.Sc)).sz():!this.playlist||qw(this.lx)&&!this.R4.isFullscreen()||(this.playlist.p$(J)&&y0q(this.playlist,t0k(this.playlist)),this.playlist.loaded?this.iC(g.U(g.Sw(this.playlist)),1):this.h4=!1)}; g.u.playVideoAt=function(J){this.MP?this.R4.gR("onPlaylistIndex",J):this.playlist&&(this.playlist.loaded?this.iC(g.U(g.Sw(this.playlist,J)),1):this.h4=!1,y0q(this.playlist,J))}; g.u.getPlaylist=function(){return this.playlist}; g.u.Qc=KU(25);g.u.V_F=function(J){this.R4.B3("onCueRangeEnter",J.getId())}; g.u.TQ5=function(J){this.R4.B3("onCueRangeExit",J.getId())}; g.u.AU=function(){var J=g.PZ(this.hx());J&&J.AU()}; g.u.Ay=function(J,K,n){var X=this.PB({playerType:K});if(X){if(this.J("html5_ssdai_enable_media_end_cue_range")&&this.wE){X.getPlayerType()===2&&this.wE.BR(this.getCurrentTime())&&(X=this.Qw());for(var l=g.z(J),x=l.next();!x.done;x=l.next())x.value.X=this.wE.cB}X.Ay(J,n);K&&this.getPresentingPlayerType()!==K||Gb(this,"cuerangesadded",J)}}; g.u.us=function(J,K){var n=this.PB({playerType:K});n&&(n.us(J),K&&this.getPresentingPlayerType()!==K||Gb(this,"cuerangesremoved",J))}; g.u.Sk=function(J){return this.a4().Sk(J)}; g.u.fmx=function(){function J(){var X=K.screenLayer||(K.isMinimized()?3:0),l=g.i2(X);if(l&&l!=="UNDEFINED_CSN"){var x=K.lx.J("web_player_attach_player_response_ve"),V=K.lx.J("web_playback_associated_ve");X={cpn:K.getVideoData().clientPlaybackNonce,csn:l};K.getVideoData().j_&&(x||V)&&(x=g.wG(K.getVideoData().j_),g.oR(l,x),V&&(X.playbackVe=x.getAsJson()));K.getVideoData().queueInfo&&(X.queueInfo=K.getVideoData().queueInfo);l={};K.J("web_playback_associated_log_ctt")&&K.getVideoData().N&&(l.cttAuthInfo= {token:K.getVideoData().N,videoId:K.getVideoData().videoId});g.vJ("playbackAssociated",X,l)}else g.gG(new g.qt("CSN Missing or undefined during playback association"))} var K=this,n=this.a4();this.getPresentingPlayerType();gZ3(this.rN,n.getVideoData(),Hqq(this));zb(this)&&this.lx.U&&dn(this.Dr())==="embedded"&&this.dC&&Math.random()<.01&&g.vJ("autoplayTriggered",{intentional:this.intentionalPlayback});this.dC=!1;H83(this.Sc);this.J("web_player_defer_ad")&&Nye(this);this.R4.gR("onPlaybackStartExternal");(this.lx.J("mweb_client_log_screen_associated"),ZW(this.lx))||J();n={};this.getVideoData().N&&(n.cttAuthInfo={token:this.getVideoData().N,videoId:this.getVideoData().videoId}); n.sampleRate=20;y_("player_att",n);if(this.getVideoData().botguardData||this.J("fetch_att_independently"))g.AS(this.lx)||g.KR(this.lx)==="MWEB"?g.Nt(g.K6(),function(){is(K)}):is(this); this.qr();l9p(this);this.J("embeds_enable_autoplay_and_visibility_signals")&&g.pR(this.lx)&&(n={autoplayBrowserPolicy:MI(),autoplayIntended:NI(this.getVideoData()),autoplayStatus:n13(this.getVideoData(),1),cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.vJ("embedsAutoplayStatusChanged",n))}; g.u.vrd=function(){this.R4.publish("internalAbandon");dl(this)}; g.u.onApiChange=function(){var J=this.a4();this.lx.L?this.R4.B3("onApiChange",J.getPlayerType()):this.R4.B3("onApiChange")}; g.u.WP4=function(){var J=this.mediaElement;J={volume:g.BK(Math.floor(J.getVolume()*100),0,100),muted:J.Bf()};J.muted||m$(this,!1);this.ez=g.Ku(J);this.R4.B3("onVolumeChange",J)}; g.u.mutedAutoplay=function(J){var K=this.getVideoData().videoId;isNaN(this.KT)&&(this.KT=this.getVideoData().startSeconds);if((J==null?0:J.videoId)||K)this.loadVideoByPlayerVars({video_id:(J==null?0:J.videoId)?J==null?void 0:J.videoId:K,playmuted:!0,start:this.KT,muted_autoplay_duration_mode:J==null?void 0:J.durationMode}),this.R4.gR("onMutedAutoplayStarts")}; g.u.onFullscreenChange=function(){var J=u98(this);this.F7(J?1:0);zir(this,!!J)}; g.u.F7=function(J){var K=!!J,n=!!this.DE()!==K;this.visibility.F7(J);this.template.F7(K);this.J("html5_media_fullscreen")&&!K&&this.mediaElement&&u98(this)===this.mediaElement.xr()&&this.mediaElement.W2();this.template.resize();n&&this.rN.tick("fsc");n&&(this.R4.publish("fullscreentoggled",K),J=this.Dr(),K={fullscreen:K,videoId:J.qs||J.videoId,time:this.getCurrentTime()},this.R4.getPlaylistId()&&(K.listId=this.R4.getPlaylistId()),this.R4.B3("onFullscreenChange",K))}; g.u.Am=function(){return this.visibility.Am()}; g.u.isFullscreen=function(){return this.visibility.isFullscreen()}; g.u.DE=function(){return this.visibility.DE()}; g.u.g4G=function(){var J=this.DE();J!==0&&J!==1||this.F7(u98(this)?1:0);J=window.screen.width*window.screen.height;var K=window.outerHeight*window.outerWidth;this.lx.Kn?(this.w8=Math.max(this.w8,J,K),J=K/this.w80&&(Q=Math.floor(S/1E3))}Q=K?K.rW:Q;var r={AD_BLOCK:this.G++,AD_BREAK_LENGTH:Q,AUTONAV_STATE:tA(this.player.S()),CA_TYPE:"image",CPN:v.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.UR()*1E3,LACT:BC(),LIVE_INDEX:K?this.X++:1,LIVE_TARGETING_CONTEXT:K&&K.context?K.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.S_().pA().height,P_W:this.player.S_().pA().width,YT_REMOTE:l?l.join(","):""},C=$A(Qa);Object.keys(C).forEach(function(H){C[H]!=null&&(r[H.toUpperCase()]=C[H].toString())}); n!==""&&(r.BISCOTTI_ID=n);n={};va(J)&&(n.sts="20221",(K=this.player.S().forcedExperiments)&&(n.forced_experiments=K));var O=jf(g.T1(J,r),n);return O.split("?").length!==2?D8(Error("Invalid AdBreakInfo URL")):g.l7(this.player.S(),v==null?void 0:v.oauthToken).then(function(H){if(H&&h2()){var R=Yw();Gh(R,H)}H=g.U(X.player.Jd(R));R=qJH(X,O,r,v.isMdxPlayback,V);return g.q5(H,R,"/youtubei/v1/player/ad_break").then(function(w){return w})})}; yb.prototype.reset=function(){this.X=this.G=1};g.e(EyH,yb); EyH.prototype.Z=function(J,K,n){K=K===void 0?{}:K;var X=K.UD;var l=K.Eo;var x=K.cueProcessedMs;n=n===void 0?"":n;K=this.G;this.G++;var V=this.player.S().J("h5_disable_macro_substitution_in_get_ad_break")?J:bq8(this,J,{UD:X,Eo:l,cueProcessedMs:x},n,K);if(V.split("?").length!==2)return Math.random()<.1&&g.gG(Error("Invalid AdBreakInfo URL")),D8(Error("Invalid AdBreakInfo URL"));var v=this.player.getVideoData(1).isMdxPlayback,Q=n;n=tJk.exec(V);n=n!=null&&n.length>=2?n[1]:"";J=yWf.test(V);var S=Zqk.exec(V); S=S!=null&&S.length>=2?S[1]:"";var r=f97.exec(V);r=r!=null&&r.length>=2&&!Number.isNaN(Number(r[1]))?Number(r[1]):1;var C=WPr.exec(V);C=C!=null&&C.length>=2?C[1]:"0";var O=tS(this.player.S().jz),H=g.Mx(this.player.getVideoData(1).j_,!0);kgM(this,H,V,Q===""?"":Q,this.player.S(),this.player.getVideoData(1));Q={splay:!1,lactMilliseconds:String(BC()),playerHeightPixels:Math.trunc(this.player.S_().pA().height),playerWidthPixels:Math.trunc(this.player.S_().pA().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20221,autonavState:tA(this.player.S())};if(v){v={};var R=this.player.S().VJ;YJM(v,R?R.join(","):"")&&(Q.mdxContext=v)}if(v=a93.includes(O)?void 0:g.YA("PREF")){R=v.split(RegExp("[:&]"));for(var w=0,P=R.length;w1&&B[1].toUpperCase()==="TRUE"){H.user.lockedSafetyMode=!0;break}}Q.autoCaptionsDefaultOn=UNq(v)}V=FP3.exec(V);(V=V!=null&&V.length>=2?V[1]:"")&&S&&(H.user.credentialTransferTokens= [{token:V,scope:"VIDEO"}]);V={contentPlaybackContext:Q};Q=this.player.getVideoData(1).getGetAdBreakContext();v=this.player.getVideoData(1).clientPlaybackNonce;R=x!==void 0?Math.round(x).toString():void 0;w=(X==null?0:X.context)?X.context:void 0;P=0;x&&l&&!X&&(l=l.end-l.start,l>0&&(P=Math.floor(l/1E3)));X=(X=Math.trunc((X?X.rW:P)*1E3))?String(X):void 0;l=this.player.UR()*1E3;l=Number.isNaN(l)?0:Math.trunc(l);K={adBlock:K,params:n,breakIndex:r,breakPositionMs:C,clientPlaybackNonce:v,topLevelDomain:O, isProxyAdTagRequest:J,context:H,overridePlaybackContext:V,cueProcessedMs:R,videoId:S?S:void 0,liveTargetingParams:w,breakLengthMs:X,driftFromHeadMs:l?String(l):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:Q?Q:void 0};return AWq(this,K)};var nXH={nlm:"replaceUrlMacros",Wxq:"onAboutThisAdPopupClosed",CjF:"executeCommand"};MJp.prototype.V8=function(){return"adPingingEndpoint"}; MJp.prototype.Ym=function(J,K,n){cHV(this.NQ.get(),J,K,n)};N83.prototype.V8=function(){return"changeEngagementPanelVisibilityAction"}; N83.prototype.Ym=function(J){this.B.I4("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:J})};JH3.prototype.V8=function(){return"loggingUrls"}; JH3.prototype.Ym=function(J,K,n){J=g.z(J);for(var X=J.next();!X.done;X=J.next())X=X.value,cHV(this.NQ.get(),X.baseUrl,K,n,X.attributionSrcMode)};g.e(nsM,g.t);g.e(f8,g.t);g.u=f8.prototype;g.u.addListener=function(J){this.listeners.push(J)}; g.u.removeListener=function(J){this.listeners=this.listeners.filter(function(K){return K!==J})}; g.u.HH=function(J,K,n,X,l,x,V,v){if(J==="")Se("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(J!==this.G||n){this.G=J;this.bx.get().HH(J,K,n,X,l,x,V,v);this.Jj.get().HH(J,K,n,X,l,x,V,v);var Q;(Q=this.tB)==null||Q.get().HH(J,K,n,X,l,x,V,v);this.Z.HH(J,K,n,X,l,x,V,v);Q=g.z(this.listeners);for(var S=Q.next();!S.done;S=Q.next())S.value.HH(J,K,n,X,l,x,V,v)}else Se("Duplicate content video loaded signal")}; g.u.j5Q=function(){this.G&&this.J0(this.G)}; g.u.J0=function(J){this.G=void 0;for(var K=g.z(this.listeners),n=K.next();!n.done;n=K.next())n.value.J0(J)};W1.prototype.E1=function(J,K,n,X,l){os7(this);this.C=!K&&n===0;var x=this.B.getVideoData(1),V=this.B.getVideoData(2);x&&(this.contentCpn=x.clientPlaybackNonce,this.videoId=x.videoId,this.G=x.N);V&&(this.adCpn=V.clientPlaybackNonce,this.adVideoId=V.videoId,this.adFormat=V.adFormat);this.U=J;X<=0?(os7(this),this.C=!K&&n===0):(this.actionType=this.C?K?"unknown_type":"video_to_ad":K?"ad_to_video":"ad_to_ad",this.videoStreamType=l?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.X=!0,ZS("_start",this.actionType)&&x_r(this)))}; W1.prototype.reset=function(){return new W1(this.B)};g.e(a1,g.t);a1.prototype.addCueRange=function(J,K,n,X,l,x,V){x=x===void 0?3:x;V=V===void 0?1:V;this.G.has(J)?Se("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:J}):(J=new jEU(J,K,n,X,x),this.G.set(J.id,{Eo:J,listener:l,Ps:V}),this.B.yA([J],V))}; a1.prototype.removeCueRange=function(J){var K=this.G.get(J);K?(this.B.FN([K.Eo],K.Ps),this.G.delete(K.Eo.id)):Se("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:J})}; a1.prototype.onCueRangeEnter=function(J){if(this.G.has(J.id))g.U(this.G.get(J.id)).listener.onCueRangeEnter(J.id)}; a1.prototype.onCueRangeExit=function(J){if(this.G.has(J.id))g.U(this.G.get(J.id)).listener.onCueRangeExit(J.id)}; g.e(jEU,g.KG);Fl.prototype.addPlayerResponseForAssociation=function(J){this.B.addPlayerResponseForAssociation(J)};qv.prototype.m9=function(J){this.B.m9(J)}; qv.prototype.Vx=function(J){var K=g.c3.apply(1,arguments);J==="onAdStart"||J==="onAdEnd"?this.B.B3.apply(this.B,[J].concat(g.m(K))):this.B.I4.apply(this.B,[J].concat(g.m(K)))};EN.prototype.A7=function(J){return J&&bs(this)};var uuM=null;g.e(RAk,g.hi);RAk.prototype.uO=function(J){return this.G.hasOwnProperty(J)?this.G[J].uO():{}}; g.Ed("ytads.bulleit.getVideoMetadata",function(J){return AA().uO(J)}); g.Ed("ytads.bulleit.triggerExternalActivityEvent",function(J,K,n){var X=AA();n=HrV(n);n!==null&&X.publish(n,{queryId:J,viewabilityString:K})});g.u=Mv.prototype;g.u.Lh=function(J,K){if(!this.G.has(J))return{};if(K==="seek"){K=!1;K=K===void 0?!1:K;var n=FG(J$).ej(J,{});n?Ef(n):K&&(J=FG(J$).d0(null,RQ(),!1,J),J.W1=3,LFp([J]));return{}}K=zAH(K);if(K===null)return{};var X=this.B.Lj();if(!X)return{};var l=this.B.getPresentingPlayerType(!0);if((n=this.B.getVideoData(l))==null||!n.isAd())return{};n={opt_adElement:X,opt_fullscreen:this.bx.get().isFullscreen()};return Lnp(K,J,n)}; g.u.nG=function(J,K,n,X,l){this.G.has(J)&&(X<=0||l<=0||FG(J$).nG(J,K,n,X,l))}; g.u.yV=function(J){var K;(K=this.G.get(J.queryId))==null||K.yV()}; g.u.wq=function(J){var K;(K=this.G.get(J.queryId))==null||K.wq()}; g.u.gq=function(J){var K;(K=this.G.get(J.queryId))==null||K.gq()}; g.u.T8=function(J){var K;(K=this.G.get(J.queryId))==null||K.T8()}; g.u.aM=function(J){var K;(K=this.G.get(J.queryId))==null||K.aM()};TC3.prototype.send=function(J,K,n,X){try{D_d(this,J,K,n,X===void 0?!1:X)}catch(l){}};g.e(d_f,TC3);kwd.prototype.send=function(J,K,n,X){var l=!1;try{if(X==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||X==="ATTRIBUTION_SRC_MODE_XHR_OPTION")l=!0,J=C9F(J);X=l;var x=g.wP(J);if(x[1]==="https")var V=J;else x[1]="https",V=zd("https",x[2],x[3],x[4],x[5],x[6],x[7]);var v=SGe(V);x=[];var Q;if(Q=nP8(V))Q=this.xF.get().B.S().experiments.sM("add_auth_headers_to_remarketing_google_dot_com_ping");if(va(V)||Q)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.G.send({baseUrl:V,scrubReferrer:v,headers:x},K,n,X)}catch(S){}};ok.prototype.nh=function(){return this.B.nh(1)};g.e(X2,g.t);g.u=X2.prototype;g.u.qB=function(){return this.B.getVideoData(1).clientPlaybackNonce}; g.u.addListener=function(J){this.listeners.push(J)}; g.u.removeListener=function(J){this.listeners=this.listeners.filter(function(K){return K!==J})}; g.u.HH=function(){this.EP.clear();this.TB=null;this.K$.get().clear()}; g.u.J0=function(){}; g.u.oox=function(J,K,n,X,l){K.videoId==="nPpU29QrbiU"&&this.B.Zm("ads_ssm_vdc_s",{pt:n,dvt:J});I8(this.xF.get())&&J!=="dataloaded"||fJ8(this,K,n);if(bs(this.xF.get())&&J==="newdata"&&l!==void 0){J=this.qB();var x=K.clientPlaybackNonce,V={};e$(this,"rte",(V.ec=x,V.xc=X==null?void 0:X.clientPlaybackNonce,V.tr=l,V.pt=n,V.ia=x!==J,V.ctp=ux(x),V));K=K.clientPlaybackNonce;X=X==null?void 0:X.clientPlaybackNonce;l=W33(l);if(l!==1)if(X!==void 0)for(n=g.z(this.listeners),J=n.next();!J.done;J=n.next())J.value.j0(X, K,l);else Se("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:K,transitionReason:String(l)});l=g.z(this.listeners);for(X=l.next();!X.done;X=l.next())X.value.UW(K)}}; g.u.GLv=function(J,K){J!==void 0&&(this.TB=J,K===void 0?Se("Expected ad video start time on SS video changed"):this.EP.set(J,K));var n=this.B.getPresentingPlayerType(!0),X=this.B.getVideoData(n),l;J===void 0?l=null:l=this.K$.get().G.get(J)||null;this.B.getVideoData(1).Zm("ads_ssvc",{pt:n,cpn:X==null?void 0:X.clientPlaybackNonce,crtt:this.B.getCurrentTime(1,!1),atlh:this.B.isAtLiveHead(),adstt:K,pid:J,slid:l==null?void 0:l.layoutId});X?fJ8(this,X,n):Se("Expected video data on server stitched video changed", void 0,void 0,{cpn:this.B.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:J})}; g.u.cn=function(J,K){var n=J.author,X=J.clientPlaybackNonce,l=J.isListed,x=J.aZ,V=J.title,v=J.Gd,Q=J.Ii,S=J.isMdxPlayback,r=J.mH,C=J.mdxEnvironment,O=J.isAutonav,H=J.L$,R=J.sy,w=J.fg,P=J.videoId||"",B=J.profilePicture||"",p=J.OR||"",k=J.Sz()||!1,c=J.NH()||!1;J=J.Qg||void 0;x=this.K$.get().G.get(x)||{layoutId:null,slotId:null};var y=this.B.getVideoData(1),A=y.qS();y=y.getPlayerResponse();K=1E3*this.B.getDuration(K);var q=1E3*this.B.getDuration(1),or,lF,J7=(y==null?void 0:(or=y.playerConfig)==null? void 0:(lF=or.daiConfig)==null?void 0:lF.enableDai)||!1,h7,M;or=(y==null?void 0:(h7=y.playerConfig)==null?void 0:(M=h7.daiConfig)==null?void 0:M.enablePreroll)||!1;return Object.assign({},x,{videoId:P,author:n,clientPlaybackNonce:X,eW:K,yZ:q,daiEnabled:J7,Nw:or,isListed:l,qS:A,profilePicture:B,title:V,OR:p,Gd:v,Ii:Q,Qg:J,isMdxPlayback:S,mH:r,mdxEnvironment:C,isAutonav:O,L$:H,sy:R,fg:w,Sz:k,NH:c})}; g.u.Xq=function(){this.listeners.length=0;this.qt=null;g.t.prototype.Xq.call(this)};g.e(ll,g.t);g.u=ll.prototype;g.u.HH=function(){var J=this;bs(this.xF.get())||(this.G=s8(function(){J.B.o4()||J.B.v3("ad",1)}))}; g.u.J0=function(){}; g.u.addListener=function(J){this.listeners.push(J)}; g.u.removeListener=function(J){this.listeners=this.listeners.filter(function(K){return K!==J})}; g.u.Ac=function(){}; g.u.playVideo=function(){this.B.playVideo()}; g.u.pauseVideo=function(){this.B.pauseVideo()}; g.u.resumeVideo=function(J){this.z2(J)&&this.B.playVideo()}; g.u.z2=function(J){return this.B.getPlayerState(J)===2}; g.u.getCurrentTimeSec=function(J,K,n){var X=this.Jj.get().TB;if(J===2&&!K&&X!==null)return F3M(this,X);FV(this.xF.get(),"html5_ssap_use_cpn_to_get_time")||(n=void 0);return n!==void 0?this.B.getCurrentTime(J,K,n):this.B.getCurrentTime(J,K)}; g.u.getVolume=function(){return this.B.getVolume()}; g.u.isMuted=function(){return this.B.isMuted()}; g.u.getPresentingPlayerType=function(){return this.B.getPresentingPlayerType(!0)}; g.u.getPlayerState=function(J){return this.B.getPlayerState(J)}; g.u.isFullscreen=function(){return this.B.isFullscreen()}; g.u.isAtLiveHead=function(){return this.B.isAtLiveHead()}; g.u.Yn=function(J){this.B.Yn(J)}; g.u.JHQ=function(){var J=this.B.getPresentingPlayerType(!0),K=this.getCurrentTimeSec(J,!1);if(J===2){J=g.z(this.listeners);for(var n=J.next();!n.done;n=J.next())n.value.k6(K)}else if(J===1)for(J=g.z(this.Xf),n=J.next();!n.done;n=J.next())n.value.Ac(K)}; g.u.hqq=function(J){for(var K=g.z(this.listeners),n=K.next();!n.done;n=K.next())n.value.Vh(J,this.getPresentingPlayerType())}; g.u.onFullscreenToggled=function(J){for(var K=g.z(this.listeners),n=K.next();!n.done;n=K.next())n.value.onFullscreenToggled(J)}; g.u.onVolumeChange=function(){for(var J=g.z(this.listeners),K=J.next();!K.done;K=J.next())K.value.onVolumeChange()}; g.u.Uy=function(){for(var J=this.B.isMinimized(),K=g.z(this.listeners),n=K.next();!n.done;n=K.next())n.value.Uy(J)}; g.u.Ju=function(J){for(var K=g.z(this.listeners),n=K.next();!n.done;n=K.next())n.value.Ju(J)}; g.u.s_=function(){for(var J=this.B.S_().pA(),K=g.z(this.listeners),n=K.next();!n.done;n=K.next())n.value.mj(J)}; g.u.CJ=function(J){for(var K=g.z(this.listeners),n=K.next();!n.done;n=K.next())n.value.CJ(J)}; g.u.RP=function(){for(var J=g.z(this.listeners),K=J.next();!K.done;K=J.next())K.value.RP()};g.e(AHk,g.t);g.e(vr,g.t);vr.prototype.Xq=function(){this.KQ.o4()||this.KQ.get().removeListener(this);g.t.prototype.Xq.call(this)};Qv.prototype.fetch=function(J){var K=J.c7;return this.G.fetch(J.dw,{UD:J.UD===void 0?void 0:J.UD,Eo:K,cueProcessedMs:J.cueProcessedMs===void 0?0:J.cueProcessedMs}).then(function(n){return MNp(n,K)})};g.e($e,g.t);g.u=$e.prototype;g.u.addListener=function(J){this.listeners.push(J)}; g.u.removeListener=function(J){this.listeners=this.listeners.filter(function(K){return K!==J})}; g.u.aR=function(J){NCU(this,J,1)}; g.u.onAdUxClicked=function(J,K){S2(this,function(n){n.Xr(J,K)})}; g.u.Z6=function(J){S2(this,function(K){K.TF(J)})}; g.u.Qa=function(J){S2(this,function(K){K.V5(J)})}; g.u.Wdj=function(J){S2(this,function(K){K.fm(J)})};rx.prototype.reduce=function(J){switch(J.event){case "unknown":return}var K=J.identifier;var n=this.G[K];n?K=n:(n={im:null,FE:-Infinity},K=this.G[K]=n);n=J.startSecs+J.G/1E3;if(!(n=this.G.startSecs&&n.startSecs<=this.G.startSecs+this.G.rW;if(X){X=void 0;if(iL(this.xF.get())&&n.identifier!==((X=this.G)==null?void 0:X.identifier)){var l=X=void 0,x=void 0,V=void 0;lb(this.NQ.get(),"ocud","ccpi."+n.identifier+";ccpe."+n.event+";ccps."+n.startSecs+";\n ccpd."+n.rW+";pcpi."+((X=this.G)==null?void 0: X.identifier)+";pcpe."+((l=this.G)==null?void 0:l.event)+";\n pcps."+((x=this.G)==null?void 0:x.startSecs)+";pcpd."+((V=this.G)==null?void 0:V.rW)+";")}X=void 0;n.identifier!==((X=this.G)==null?void 0:X.identifier)&&Se("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.G=n,o8F(this,n)}}}; g.u.Xq=function(){this.Z!=null&&(this.Z.unsubscribe("cuepointupdated",this.n3,this),this.Z=null);this.listeners.length=0;this.U.length=0;g.t.prototype.Xq.call(this)};g.u=OI.prototype;g.u.yM=function(J,K,n,X,l,x,V){return this.B.yM(J,K,n,X,l,x,V)}; g.u.uZ=function(J,K){this.B.uZ(J,K)}; g.u.D9=function(J,K,n){this.B.D9(J,K,n)}; g.u.H9=function(J){this.B.H9(J)}; g.u.NJ=function(J,K,n,X,l,x,V){return this.B.NJ(J,K,n,X,l,x,V)}; g.u.s6=function(J){return this.B.s6(J)}; g.u.finishSegmentByCpn=function(J,K,n){n=xkU(n);this.B.finishSegmentByCpn(J,K,n)};g.e(Hr,g.t);g.e(VFk,g.t);g.e(h5V,g.t);g.e(v83,g.t);g.e(Qqf,g.t);g.e($kM,g.t);g.e(rbp,g.t);rbp.prototype.X=function(){return this.Z};g.e(sq8,aR); sq8.prototype.U=function(J){var K=J.content;if(K.componentType==="shopping-companion")switch(J.actionType){case 1:case 2:J=this.G.getVideoData(1);this.G.I4("updateKevlarOrC3Companion",{contentVideoId:J&&J.videoId,shoppingCompanionCarouselRenderer:K.renderer,layoutId:K.layoutId,macros:K.macros,onLayoutVisibleCallback:K.G,interactionLoggingClientData:K.interactionLoggingClientData});break;case 3:this.G.I4("updateKevlarOrC3Companion",{})}else if(K.componentType==="action-companion")switch(J.actionType){case 1:case 2:J=this.G.getVideoData(1); this.G.I4("updateKevlarOrC3Companion",{contentVideoId:J&&J.videoId,actionCompanionAdRenderer:K.renderer,layoutId:K.layoutId,macros:K.macros,onLayoutVisibleCallback:K.G,interactionLoggingClientData:K.interactionLoggingClientData});break;case 3:K.renderer&&(K=this.G.getVideoData(1),this.G.I4("updateKevlarOrC3Companion",{contentVideoId:K&&K.videoId})),this.G.I4("updateKevlarOrC3Companion",{})}else if(K.componentType==="image-companion")switch(J.actionType){case 1:case 2:J=this.G.getVideoData(1);this.G.I4("updateKevlarOrC3Companion", {contentVideoId:J&&J.videoId,imageCompanionAdRenderer:K.renderer,layoutId:K.layoutId,macros:K.macros,onLayoutVisibleCallback:K.G,interactionLoggingClientData:K.interactionLoggingClientData});break;case 3:K=this.G.getVideoData(1),this.G.I4("updateKevlarOrC3Companion",{contentVideoId:K&&K.videoId}),this.G.I4("updateKevlarOrC3Companion",{})}else if(K.componentType==="top-banner-image-text-icon-buttoned")switch(J.actionType){case 1:case 2:J=this.G.getVideoData(1);this.G.I4("updateKevlarOrC3Companion", {contentVideoId:J&&J.videoId,topBannerImageTextIconButtonedLayoutViewModel:K.renderer,layoutId:K.layoutId,macros:K.macros,onLayoutVisibleCallback:K.G,interactionLoggingClientData:K.interactionLoggingClientData});break;case 3:K.renderer&&(K=this.G.getVideoData(1),this.G.I4("updateKevlarOrC3Companion",{contentVideoId:K&&K.videoId})),this.G.I4("updateKevlarOrC3Companion",{})}else if(K.componentType==="banner-image")switch(J.actionType){case 1:case 2:J=this.G.getVideoData(1);this.G.I4("updateKevlarOrC3Companion", {contentVideoId:J&&J.videoId,bannerImageLayoutViewModel:K.renderer,layoutId:K.layoutId,macros:K.macros,onLayoutVisibleCallback:K.G,interactionLoggingClientData:K.interactionLoggingClientData});break;case 3:K=this.G.getVideoData(1),this.G.I4("updateKevlarOrC3Companion",{contentVideoId:K&&K.videoId}),this.G.I4("updateKevlarOrC3Companion",{})}else if(K.componentType==="ads-engagement-panel")switch(K=K.renderer,J.actionType){case 1:case 2:this.G.I4("updateEngagementPanelAction",K.addAction);this.G.I4("changeEngagementPanelVisibility", K.expandAction);break;case 3:this.G.I4("changeEngagementPanelVisibility",K.hideAction),this.G.I4("updateEngagementPanelAction",K.removeAction)}else if(K.componentType==="ads-engagement-panel-layout"){var n=K.renderer;switch(J.actionType){case 1:case 2:this.G.I4("updateEngagementPanelAction",{action:Um(n.addAction),layoutId:K.layoutId,onLayoutVisibleCallback:K.G,interactionLoggingClientData:K.interactionLoggingClientData});this.G.I4("changeEngagementPanelVisibility",Um(n.expandAction));break;case 3:this.G.I4("changeEngagementPanelVisibility", Um(n.hideAction)),this.G.I4("updateEngagementPanelAction",{action:Um(n.removeAction)})}}};g.e(CY7,JC);g.u=CY7.prototype;g.u.init=function(J,K,n){JC.prototype.init.call(this,J,K,n);g.c7(this.X,"stroke-dasharray","0 "+this.Z);this.X.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.N.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.U.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.u.clear=function(){this.hide()}; g.u.hide=function(){n1(this);JC.prototype.hide.call(this)}; g.u.show=function(){K1(this);JC.prototype.show.call(this)}; g.u.e5=function(){this.hide()}; g.u.g3=function(){if(this.G){var J=this.G.getProgressState();J!=null&&J.current!=null&&g.c7(this.X,"stroke-dasharray",J.current/J.seekableEnd*this.Z+" "+this.Z)}};g.e(Ow3,se);g.u=Ow3.prototype; g.u.init=function(J,K,n){se.prototype.init.call(this,J,K,n);if(K.image&&K.image.thumbnail)if(K.headline)if(K.description)if(K.backgroundImage&&K.backgroundImage.thumbnail)if(K.actionButton&&g.f(K.actionButton,g.Gt))if(J=K.durationMilliseconds||0,typeof J!=="number"||J<=0)g.ko(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+J));else if(K.navigationEndpoint){var X=this.api.getVideoData(2);if(X!=null){var l=K.image.thumbnail.thumbnails;l!=null&& l.length>0&&g.O7(g.HK(l[0].url))&&(l[0].url=X.profilePicture,g.O7(g.HK(X.profilePicture))&&tyH("VideoPlayer",239976093,"Expected non-empty profile picture."));l=K.backgroundImage.thumbnail.thumbnails;l!=null&&l.length>0&&g.O7(g.HK(l[0].url))&&(l[0].url=X.rK());l=K.headline;l!=null&&g.O7(g.HK(l.text))&&(l.text=X.author)}this.K.init(j3("ad-image"),K.image,n);this.N.init(j3("ad-text"),K.headline,n);this.X.init(j3("ad-text"),K.description,n);this.kF.init(j3("ad-image"),K.backgroundImage,n);X=["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.N.element.classList.add("ytp-ad-action-interstitial-headline-light");this.X.element.classList.add("ytp-ad-action-interstitial-description-light");X.push("ytp-ad-action-interstitial-action-button-dark");this.api.S().Z&&(X.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),X.push("ytp-ad-action-interstitial-action-button-dark"));this.api.S().J("enable_unified_action_endcap_on_web")&& !this.api.S().Z&&(X.push("ytp-ad-action-interstitial-action-button-unified"),this.wQ.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.K.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.Fq.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.gW.classList.add("ytp-ad-action-interstitial-card-unified"),this.QG.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.X.element.classList.add("ytp-ad-action-interstitial-description-unified"), this.MQ.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.N.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.j_.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.Cv.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new k7(this.api,this.layoutId,this.interactionLoggingClientData,this.TA,X);g.Z(this,this.actionButton);this.actionButton.qQ(this.wQ); this.actionButton.init(j3("button"),g.f(K.actionButton,g.Gt),n);fm(this.actionButton.element);X=EX(this.actionButton.element);q0(this.actionButton.element,X+" This link opens in new tab");this.navigationEndpoint=K.navigationEndpoint;this.U.T(this.j_,"click",this.aX,this);this.U.T(this.QG,"click",this.aX,this);!this.api.S().J("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.S().Z||this.U.T(this.MQ,"click",this.aX,this);this.G=this.cZ?new wf(this.api,J):new Pz(J);g.Z(this,this.G);if(K.skipButton){(J= g.f(K.skipButton,HuO))&&this.G&&(this.skipButton=new OC(this.api,this.layoutId,this.interactionLoggingClientData,this.TA,this.G,this.eQ),g.Z(this,this.skipButton),this.skipButton.qQ(this.element),this.skipButton.init(j3("skip-button"),J,n));if(n=K.adBadgeRenderer)if(n=g.f(n,Ouu))J=new ee(this.api,this.layoutId,this.interactionLoggingClientData,this.TA,!0,!0),J.qQ(this.Cv),J.init(j3("simple-ad-badge"),n,this.macros),g.Z(this,J);if(n=K.adInfoRenderer)if(n=g.f(n,c$))J=new Ai(this.api,this.layoutId,this.interactionLoggingClientData, this.TA,this.element,void 0,!0),J.qQ(this.Cv),J.init(j3("ad-info-hover-text-button"),n,this.macros),g.Z(this,J)}else K.nonskippableOverlayRenderer&&(J=g.f(K.nonskippableOverlayRenderer,Yh))&&this.G&&(this.Z=new lU(this.api,this.layoutId,this.interactionLoggingClientData,this.TA,this.G,!1),g.Z(this,this.Z),this.Z.qQ(this.element),this.Z.init(j3("ad-preview"),J,n));K.countdownRenderer&&(K=K.countdownRenderer,g.f(K,RSH)&&this.G&&(n=new CY7(this.api,this.layoutId,this.interactionLoggingClientData,this.TA, this.G),g.Z(this,n),n.qQ(this.element),n.init(j3("timed-pie-countdown"),g.f(K,RSH),this.macros)));this.show();this.element.focus()}else g.ko(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.ko(Error("AdActionInterstitialRenderer has no button."));else g.ko(Error("AdActionInterstitialRenderer has no background AdImage."));else g.ko(Error("AdActionInterstitialRenderer has no description AdText."));else g.ko(Error("AdActionInterstitialRenderer has no headline AdText."));else g.ko(Error("AdActionInterstitialRenderer has no image."))}; g.u.clear=function(){g.L0(this.U);this.hide()}; g.u.show=function(){HwM(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.Z&&this.Z.show();se.prototype.show.call(this)}; g.u.hide=function(){HwM(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.Z&&this.Z.hide();se.prototype.hide.call(this)}; g.u.aX=function(){this.navigationEndpoint&&(this.layoutId?this.TA.executeCommand(this.navigationEndpoint,this.layoutId):g.ko(Error("Missing layoutId for ad action interstitial.")))};var wEf={iconType:"CLOSE"},zn=new g.DH(320,63);g.e(z5H,se);g.u=z5H.prototype; g.u.init=function(J,K,n){se.prototype.init.call(this,J,K,n);this.U=K;this.K=g.zO(this.U.onClickCommands||[]);this.Cv=this.U.onErrorCommand||null;if(J=this.U.contentSupportedRenderer)J=this.U.contentSupportedRenderer,K=this.U.adInfoRenderer||null,g.f(J,rKu)?(this.N=g.aN("ytp-ad-overlay-ad-info-button-container",this.X.element),PY8(this,K),J=iwk(this,g.f(J,rKu))):g.f(J,siu)?(this.N=g.aN("ytp-ad-overlay-ad-info-button-container",this.Z.element),PY8(this,K),J=BA8(this,g.f(J,siu))):g.f(J,CSF)?(this.N= g.aN("ytp-ad-overlay-ad-info-button-container",this.G.element),PY8(this,K),J=mkq(this,g.f(J,CSF))):(g.ko(Error("InvideoOverlayAdRenderer content could not be initialized.")),J=!1);J&&(this.show(),pEr(this,!0))}; g.u.clear=function(){pEr(this,!1);this.j_.reset();this.QG=0;this.X.hide();this.logVisibility(this.X.element,!1);this.Z.hide();this.logVisibility(this.Z.element,!1);this.G.hide();this.logVisibility(this.G.element,!1);this.hide();this.dispose()}; g.u.cBQ=function(){this.wQ&&(this.layoutId?this.TA.executeCommand(this.wQ,this.layoutId):g.ko(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.u.U$=function(){a:{if(this.U&&this.U.closeButton&&this.U.closeButton.buttonRenderer){var J=this.U.closeButton.buttonRenderer;if(J.serviceEndpoint){J=[J.serviceEndpoint];break a}}J=[]}J=g.z(J);for(var K=J.next();!K.done;K=J.next())K=K.value,this.layoutId?this.TA.executeCommand(K,this.layoutId):g.ko(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.u.kAQ=function(){this.kF||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.u.WK=function(){this.kF||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.WK("invideo-overlay")}; g.u.R5G=function(J){J.target===this.N&&g.aN("ytp-ad-button",this.Fq.element).click()};g.e(L8H,JC);g.u=L8H.prototype;g.u.init=function(J,K,n){JC.prototype.init.call(this,J,K,n);J=K.durationMs;this.X=J==null||J===0?0:J+this.G.getProgressState().current*1E3;if(K.text)var X=K.text.templatedAdText;else K.staticMessage&&(X=K.staticMessage);this.messageText.init(j3("ad-text"),X,n);this.messageText.qQ(this.Z.element);this.U.show(100);this.show()}; g.u.clear=function(){this.hide()}; g.u.hide=function(){TAe(this,!1);JC.prototype.hide.call(this);this.Z.hide();this.messageText.hide();n1(this)}; g.u.show=function(){TAe(this,!0);JC.prototype.show.call(this);K1(this);this.Z.show();this.messageText.show()}; g.u.e5=function(){this.hide()}; g.u.g3=function(){if(this.G!=null){var J=this.G.getProgressState();J!=null&&J.current!=null&&(J=1E3*J.current,!this.QG&&J>=this.X?(this.U.hide(),this.QG=!0):this.messageText&&this.messageText.isTemplated()&&(J=Math.max(0,Math.ceil((this.X-J)/1E3)),J!==this.N&&(N1(this.messageText,{TIME_REMAINING:String(J)}),this.N=J)))}};g.e(Dk3,se);g.u=Dk3.prototype; g.u.init=function(J,K,n){se.prototype.init.call(this,J,K,{});K.image&&K.image.thumbnail?K.headline?K.description?K.actionButton&&g.f(K.actionButton,g.Gt)?(this.X.init(j3("ad-image"),K.image,n),this.Z.init(j3("ad-text"),K.headline,n),this.U.init(j3("ad-text"),K.description,n),J=["ytp-ad-underlay-action-button"],this.api.S().J("use_blue_buttons_for_desktop_player_underlay")&&J.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new k7(this.api,this.layoutId,this.interactionLoggingClientData,this.TA, J),K.backgroundColor&&g.c7(this.element,"background-color",g.UC(K.backgroundColor)),g.Z(this,this.actionButton),this.actionButton.qQ(this.N),this.actionButton.init(j3("button"),g.f(K.actionButton,g.Gt),n),K=g.Qg(this.api.S().experiments,"player_underlay_video_width_fraction"),this.api.S().J("place_shrunken_video_on_left_of_player")?(n=this.G,g.hv(n,"ytp-ad-underlay-left-container"),g.jv(n,"ytp-ad-underlay-right-container"),g.c7(this.G,"margin-left",Math.round((K+.02)*100)+"%")):(n=this.G,g.hv(n,"ytp-ad-underlay-right-container"), g.jv(n,"ytp-ad-underlay-left-container")),g.c7(this.G,"width",Math.round((1-K-.04)*100)+"%"),this.api.Jh()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.Hl.bind(this)),this.api.addEventListener("resize",this.Ca.bind(this))):g.ko(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.ko(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.ko(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.ko(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.u.show=function(){dkU(!0);this.actionButton&&this.actionButton.show();se.prototype.show.call(this)}; g.u.hide=function(){dkU(!1);this.actionButton&&this.actionButton.hide();se.prototype.hide.call(this)}; g.u.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.Hl.bind(this));this.api.removeEventListener("resize",this.Ca.bind(this));this.hide()}; g.u.onClick=function(J){se.prototype.onClick.call(this,J);this.actionButton&&g.XG(this.actionButton.element,J.target)&&this.api.pauseVideo()}; g.u.Hl=function(J){J==="transitioning"?(this.G.classList.remove("ytp-ad-underlay-clickable"),this.show()):J==="visible"?this.G.classList.add("ytp-ad-underlay-clickable"):J==="hidden"&&(this.hide(),this.G.classList.remove("ytp-ad-underlay-clickable"))}; g.u.Ca=function(J){J.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):J.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.c7(this.Z.element,"font-size",J.width/40+"px")};g.e(wx,se); wx.prototype.init=function(J,K,n){se.prototype.init.call(this,J,K,n);K.toggledLoggingParams&&(this.toggledLoggingParams=K.toggledLoggingParams);K.answer&&g.f(K.answer,g.Gt)?(J=new k7(this.api,this.layoutId,this.interactionLoggingClientData,this.TA,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),J.qQ(this.answer),J.init(j3("ytp-ad-survey-answer-button"),g.f(K.answer,g.Gt),n),J.show()):K.answer&&g.f(K.answer,RG)&&(this.G=new f7(this.api,this.layoutId,this.interactionLoggingClientData,this.TA, ["ytp-ad-survey-answer-toggle-button"]),this.G.qQ(this.answer),g.Z(this,this.G),this.G.init(j3("survey-answer-button"),g.f(K.answer,RG),n));this.show()}; wx.prototype.r0=function(J){this.layoutId?fQ(this.TA,J,this.layoutId,this.macros):(J=new g.qt("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.ko(J))}; wx.prototype.onClick=function(J){se.prototype.onClick.call(this,J);if(this.api.S().J("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; wx.prototype.clear=function(){this.hide()};g.e(kkd,se);kkd.prototype.init=function(J,K,n){se.prototype.init.call(this,J,K,n);K.answer&&g.f(K.answer,RG)&&(this.button=new f7(this.api,this.layoutId,this.interactionLoggingClientData,this.TA,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.qQ(this.G),this.button.init(j3("survey-none-of-the-above-button"),g.f(K.answer,RG),n));this.show()};g.e(Pr,k7);Pr.prototype.init=function(J,K,n){k7.prototype.init.call(this,J,K,n);J=!1;K.text&&(K=g.Oe(K.text),J=!g.O7(K));J||g.gG(Error("No submit text was present in the renderer."))}; Pr.prototype.onClick=function(J){this.publish("l");k7.prototype.onClick.call(this,J)};g.e(Ik,se); Ik.prototype.init=function(J,K,n){se.prototype.init.call(this,J,K,n);if(J=K.skipOrPreviewRenderer)g.f(J,hd)?(J=g.f(J,hd),n=new Rv(this.api,this.layoutId,this.interactionLoggingClientData,this.TA,this.U,!0),n.qQ(this.skipOrPreview),n.init(j3("skip-button"),J,this.macros),g.Z(this,n),this.G=n):g.f(J,Yh)&&(J=g.f(J,Yh),n=new lU(this.api,this.layoutId,this.interactionLoggingClientData,this.TA,this.U,!1),n.qQ(this.skipOrPreview),n.init(j3("ad-preview"),J,this.macros),n.QG.show(100),n.show(),g.Z(this,n), this.G=n);this.G==null&&(J=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(K)),g.ko(J));K.submitButton&&(J=K.submitButton,g.f(J,g.Gt)&&(J=g.f(J,g.Gt),n=new Pr(this.api,this.layoutId,this.interactionLoggingClientData,this.TA),n.qQ(this.submitButton),n.init(j3("survey-submit"),J,this.macros),g.Z(this,n),this.Z=n));if(J=K.adBadgeRenderer)J=g.f(J,Ouu),n=new ee(this.api,this.layoutId,this.interactionLoggingClientData,this.TA,!0,!0,!0),n.qQ(this.X),n.init(j3("simple-ad-badge"), J,this.macros),this.adBadge=n.element,g.Z(this,n);if(J=K.adDurationRemaining)J=g.f(J,Qir),n=new Bz(this.api,this.layoutId,this.interactionLoggingClientData,this.TA,this.U,void 0,!0),n.qQ(this.X),n.init(j3("ad-duration-remaining"),J,this.macros),g.Z(this,n);(K=K.adInfoRenderer)&&g.f(K,c$)&&(J=new Ai(this.api,this.layoutId,this.interactionLoggingClientData,this.TA,this.element,void 0,!0),g.Z(this,J),this.adBadge!==void 0?this.X.insertBefore(J.element,this.adBadge.nextSibling):J.qQ(this.X),J.init(j3("ad-info-hover-text-button"), g.f(K,c$),this.macros));this.show()}; Ik.prototype.clear=function(){this.hide()};g.e(il,se);il.prototype.init=function(J,K,n){se.prototype.init.call(this,J,K,n);Uk3(this)}; il.prototype.show=function(){this.X=Date.now();se.prototype.show.call(this)}; il.prototype.GG=function(){};g.e(tFF,il);g.u=tFF.prototype;g.u.init=function(J,K,n){var X=this;il.prototype.init.call(this,J,K,n);K.questionText&&g88(this,K.questionText);K.answers&&K.answers.forEach(function(l,x){g.f(l,O5)&&cb3(X,g.f(l,O5),n,x)}); this.N=new Set(this.Z.map(function(l){return l.G.G})); (J=K.noneOfTheAbove)&&(J=g.f(J,S7F))&&ybd(this,J,n);K.surveyAdQuestionCommon&&Gkp(this,K.surveyAdQuestionCommon);K.submitEndpoints&&(this.submitEndpoints=K.submitEndpoints);this.T(this.element,"change",this.onChange);this.show()}; g.u.GG=function(){ZwM(this,!1);this.U.Z.subscribe("l",this.rBQ,this)}; g.u.onChange=function(J){J.target===this.noneOfTheAbove.button.G?fEk(this):this.N.has(J.target)&&(this.noneOfTheAbove.button.toggleButton(!1),ZwM(this,!0))}; g.u.rBQ=function(){var J=[],K=this.Z.reduce(function(l,x,V){var v=x.toggledLoggingParams;x.G&&x.G.isToggled()&&v&&(l.push(v),J.push(V));return l},[]).join("&"),n=this.submitEndpoints.map(function(l){if(!l.loggingUrls)return l; l=g.nu(l);l.loggingUrls=l.loggingUrls.map(function(x){x.baseUrl&&(x.baseUrl=D2(x.baseUrl,K));return x}); return l}); if(n){n=g.z(n);for(var X=n.next();!X.done;X=n.next())X=X.value,this.layoutId?fQ(this.TA,X,this.layoutId,this.macros):g.ko(Error("Missing layoutId for multi_select_question."))}this.api.S().J("supports_multi_step_on_desktop")&&this.QG(J)}; g.u.clear=function(){this.api.S().J("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.e(Br,il);Br.prototype.init=function(J,K,n){var X=this;il.prototype.init.call(this,J,K,n);K.questionText&&g88(this,K.questionText);K.answers&&K.answers.forEach(function(l,x){g.f(l,O5)&&cb3(X,g.f(l,O5),n,x)}); K.surveyAdQuestionCommon?Gkp(this,K.surveyAdQuestionCommon):hL(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(K)));this.show()}; Br.prototype.clear=function(){this.api.S().J("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.e(mw,se);mw.prototype.init=function(J,K,n){var X=this;se.prototype.init.call(this,J,K,n);if(this.api.S().J("supports_multi_step_on_desktop")){var l;this.conditioningRules=(l=K.conditioningRules)!=null?l:[];var x;this.Z=(x=K.questions)!=null?x:[];var V;((V=K.questions)==null?0:V.length)&&qhk(this,0)}else(K.questions||[]).forEach(function(v){g.f(v,kh)?aEd(X,g.f(v,kh),n):g.f(v,dp)&&F88(X,g.f(v,dp),n)}); this.show()}; mw.prototype.clear=function(){this.api.S().J("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; mw.prototype.U=function(J){var K=this;if(this.api.S().J("supports_multi_step_on_desktop")){var n;if((n=this.conditioningRules)==null?0:n.length){var X;if(J.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(l){return l.questionIndex===K.G})==null)g.ko(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(l){if(l.questionIndex===K.G)switch(l.condition){case "CONDITION_ALL_OF":var x;if((x=l.answerIndices)==null?0:x.every(function(v){return J.includes(v)}))X=l.nextQuestionIndex; break;case "CONDITION_ANY_OF":var V;if((V=l.answerIndices)==null?0:V.some(function(v){return J.includes(v)}))X=l.nextQuestionIndex; break;default:g.ko(Error("Expected specified condition in survey conditioning rules."))}}),X!=null)qhk(this,X); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.ko(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.e(p2,se); p2.prototype.init=function(J,K,n){var X=this;se.prototype.init.call(this,J,K,n);J=K.timeoutSeconds||0;if(typeof J!=="number"||J<0)g.ko(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+J));else if(K.timeoutCommands)if(K.text)if(K.ctaButton&&g.f(K.ctaButton,g.Gt))if(K.brandImage)if(K.backgroundImage&&g.f(K.backgroundImage,U$)&&g.f(K.backgroundImage,U$).landscape){this.layoutId||g.ko(Error("Missing layoutId for survey interstitial."));E8M(this.interstitial,g.f(K.backgroundImage, U$).landscape);E8M(this.logoImage,K.brandImage);g.lc(this.text,g.Oe(K.text));var l=["ytp-ad-survey-interstitial-action-button"];l.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new k7(this.api,this.layoutId,this.interactionLoggingClientData,this.TA,l);g.Z(this,this.actionButton);this.actionButton.qQ(this.Z);this.actionButton.init(j3("button"),g.f(K.ctaButton,g.Gt),n);this.actionButton.show();this.G=new wf(this.api,J*1E3);this.G.subscribe("g",function(){X.transition.hide()}); g.Z(this,this.G);this.T(this.element,"click",function(x){var V=x.target===X.interstitial;x=X.actionButton.element.contains(x.target);if(V||x)if(X.transition.hide(),V)X.api.onAdUxClicked(X.componentType,X.layoutId)}); this.transition.show(100)}else g.ko(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.ko(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.ko(Error("SurveyTextInterstitialRenderer has no button."));else g.ko(Error("SurveyTextInterstitialRenderer has no text."));else g.ko(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; p2.prototype.clear=function(){this.hide()}; p2.prototype.show=function(){bwr(!0);se.prototype.show.call(this)}; p2.prototype.hide=function(){bwr(!1);se.prototype.hide.call(this)};g.e(L2,JC);g.u=L2.prototype; g.u.init=function(J,K){JC.prototype.init.call(this,J,K,{});if(K.durationMilliseconds){if(K.durationMilliseconds<0){g.ko(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+K.durationMilliseconds));return}this.Z=K.durationMilliseconds}else this.Z=this.G.nm();var n;if((n=K.previewText)==null||!n.text||g.O7(K.previewText.text))g.ko(Error("No text is returned for AdPreview."));else{this.N=K.previewText;K.previewText.isTemplated||g.lc(this.X,K.previewText.text);var X; if(((X=this.api.getVideoData(1))==null?0:X.d3)&&K.previewImage){var l,x;(J=((x=IL(((l=K.previewImage)==null?void 0:l.sources)||[],52,!1))==null?void 0:x.url)||"")&&J.length?(this.previewImage=new g.ro({j:"img",V:"ytp-preview-ad__image",D:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",J),g.Z(this,this.previewImage),this.previewImage.qQ(this.element)):g.ko(Error("Failed to get imageUrl in AdPreview."))}else this.X.classList.add("ytp-preview-ad__text--padding--wide")}}; g.u.clear=function(){this.hide()}; g.u.hide=function(){n1(this);JC.prototype.hide.call(this)}; g.u.show=function(){K1(this);JC.prototype.show.call(this)}; g.u.e5=function(){this.hide()}; g.u.g3=function(){if(this.G){var J=this.G.getProgressState();if(J!=null&&J.current)if(J=1E3*J.current,J>=this.Z)this.transition.hide();else{var K;if((K=this.N)==null?0:K.isTemplated)if(K=Math.max(0,Math.ceil((this.Z-J)/1E3)),K!==this.U){var n,X;(J=(n=this.N)==null?void 0:(X=n.text)==null?void 0:X.replace("{TIME_REMAINING}",String(K)))&&g.lc(this.X,J);this.U=K}}}};g.e(Tn,se); Tn.prototype.init=function(J,K){se.prototype.init.call(this,J,K,{});var n,X;if((J=((X=IL(((n=K.image)==null?void 0:n.sources)||[],Abk(K),!0))==null?void 0:X.url)||"")&&J.length){n=this.rQ("ytp-ad-avatar");n.src=J;var l,x;if(X=(l=K.interaction)==null?void 0:(x=l.accessibility)==null?void 0:x.label)n.alt=X;switch(K.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(K.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.ko(Error("Failed to get imageUrl in AdAvatar."))}; Tn.prototype.clear=function(){this.hide()}; Tn.prototype.onClick=function(J){se.prototype.onClick.call(this,J)};g.e(D6,se); D6.prototype.init=function(J,K){se.prototype.init.call(this,J,K,{});var n;J=(n=K.label)==null?void 0:n.content;if((n=J!=null&&!g.O7(J))||K.iconImage){n&&(this.buttonText=new g.ro({j:"span",V:"ytp-ad-button-vm__text",hj:J}),g.Z(this,this.buttonText),this.buttonText.qQ(this.element));var X,l,x=((X=K.interaction)==null?0:(l=X.accessibility)==null?0:l.label)||n?J:"";x&&q0(this.element,x+" This link opens in new tab");fm(this.element);if(K.iconImage){X=void 0;if(K.iconImage){a:{l=K.iconImage;if(l.sources)for(l= g.z(l.sources),J=l.next();!J.done;J=l.next())if(J=J.value,x=void 0,(x=J.clientResource)==null?0:x.imageName){l=J;break a}l=void 0}if(l){var V;X={iconType:(V=l.clientResource)==null?void 0:V.imageName}}}V=Dp(X,!1,this.Z);V!=null&&(this.buttonIcon=new g.ro({j:"span",V:"ytp-ad-button-vm__icon",Y:[V]}),g.Z(this,this.buttonIcon),K.iconLeading?(nf(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):n?(this.buttonIcon.qQ(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.qQ(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(K.style){case "AD_BUTTON_STYLE_TRANSPARENT":this.element.classList.add("ytp-ad-button-vm--style-transparent");break;case "AD_BUTTON_STYLE_FILLED_WHITE":this.element.classList.add("ytp-ad-button-vm--style-filled-white");break;case "AD_BUTTON_STYLE_FILLED":this.element.classList.add(this.G?"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(K.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.gG(Error("AdButton does not have label or an icon."))}; D6.prototype.clear=function(){this.hide()}; D6.prototype.onClick=function(J){se.prototype.onClick.call(this,J)};g.e(MFF,JC);g.u=MFF.prototype; g.u.init=function(J,K){JC.prototype.init.call(this,J,K,{});this.api.S().J("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.rQ("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"),nf(this.rQ("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(J=g.f(K.avatar,yv)){var n=K.headline;if(n){var X=K.description;if(X){var l=g.f(K.button,f2);l?(this.adAvatar.init(j3("ad-avatar"),J),this.headline.init(j3("ad-simple-attributed-string"),new p1(n)),this.description.init(j3("ad-simple-attributed-string"),new p1(X)),n.content&&n.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"), this.adButton.init(j3("ad-button"),l),this.startMilliseconds=K.startMs||0,this.api.Jh()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.J$.bind(this)),K1(this)):g.ko(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.ko(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.ko(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.ko(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.u.g3=function(){if(this.G){var J=this.G.getProgressState();J&&J.current&&1E3*J.current>=this.startMilliseconds&&(n1(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.u.e5=function(){this.clear()}; g.u.onClick=function(J){this.api.pauseVideo();JC.prototype.onClick.call(this,J)}; g.u.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.J$.bind(this))}; g.u.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();JC.prototype.show.call(this)}; g.u.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();JC.prototype.hide.call(this)}; g.u.J$=function(J){J==="hidden"?this.show():this.hide()};g.e(dx,se);g.u=dx.prototype; g.u.init=function(J,K){se.prototype.init.call(this,J,K,{});if(!K.label||g.O7(K.label))g.ko(Error("No label is returned for SkipAdButton."));else if(g.lc(this.U,K.label),J=Dp({iconType:"SKIP_NEXT_NEW"}),J==null)g.ko(Error("Unable to retrieve icon for SkipAdButton"));else if(this.X=new g.ro({j:"span",V:"ytp-skip-ad-button__icon",Y:[J]}),g.Z(this,this.X),this.X.qQ(this.element),this.api.S().experiments.sM("enable_skip_to_next_messaging")&&(K=g.HK(K.targetId)))this.Z=!0,this.element.setAttribute("data-tooltip-target-id",K), this.element.setAttribute("data-tooltip-target-fixed","")}; g.u.onClick=function(J){J&&J.preventDefault();var K,n;lYq(J,{contentCpn:(n=(K=this.api.getVideoData(1))==null?void 0:K.clientPlaybackNonce)!=null?n:""})===0?this.api.I4("onAbnormalityDetected"):(se.prototype.onClick.call(this,J),this.api.I4("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.u.clear=function(){this.G.reset();this.hide()}; g.u.hide=function(){se.prototype.hide.call(this)}; g.u.show=function(){this.G.start();se.prototype.show.call(this);this.Z&&this.api.S().experiments.sM("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.e(NAH,JC);g.u=NAH.prototype; g.u.init=function(J,K){JC.prototype.init.call(this,J,K,{});J=g.f(K.preskipState,iuO);var n;if((n=this.api.getVideoData())==null?0:n.isDaiEnabled()){if(!J){g.ko(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.Z=new L2(this.api,this.layoutId,this.interactionLoggingClientData,this.TA,this.G);g.Z(this,this.Z);this.Z.qQ(this.element);var X;(X=this.Z)==null||X.init(j3("preview-ad"),J);(n=this.Z)!=null&&(n.transition.show(100),n.show())}(n=g.f(K.skippableState,mXO))?(K.skipOffsetMilliseconds!= null?this.skipOffsetMilliseconds=K.skipOffsetMilliseconds:(g.gG(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.X.init(j3("skip-button"),n),this.show()):g.ko(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.u.show=function(){K1(this);JC.prototype.show.call(this)}; g.u.hide=function(){!this.isSkippable&&this.Z?this.Z.hide():this.X&&this.X.hide();n1(this);JC.prototype.hide.call(this)}; g.u.clear=function(){var J;(J=this.Z)==null||J.clear();this.X&&this.X.clear();n1(this);JC.prototype.hide.call(this)}; g.u.e5=function(){this.hide()}; g.u.g3=function(){if(1E3*this.G.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var J;(J=this.Z)!=null&&J.transition.hide();(J=this.X)!=null&&(J.transition.show(),J.show())}};g.e(ke,se); ke.prototype.init=function(J,K){se.prototype.init.call(this,J,K,{});if(K.label){var n;((n=K.label)==null?0:n.content)&&!g.O7(K.label.content)&&(this.linkText=new g.ro({j:"span",V:"ytp-visit-advertiser-link__text",hj:K.label.content}),g.Z(this,this.linkText),this.linkText.qQ(this.element));var X,l;if((X=K.interaction)==null?0:(l=X.accessibility)==null?0:l.label)q0(this.element,K.interaction.accessibility.label+" This link opens in new tab");else{var x;((x=K.label)==null?0:x.content)&&!g.O7(K.label.content)&&q0(this.element, K.label.content+" This link opens in new tab")}fm(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.ko(Error("No label found in VisitAdvertiserLink."))}; ke.prototype.onClick=function(J){se.prototype.onClick.call(this,J);this.api.onAdUxClicked(this.componentType,this.layoutId)}; ke.prototype.clear=function(){this.hide()};g.e(gx,se); gx.prototype.init=function(J,K,n,X){se.prototype.init.call(this,J,K,{});if(K.skipOrPreview){n=K.skipOrPreview;J=g.f(n,pj8);n=g.f(n,iuO);if(J)this.DS=new NAH(this.api,this.layoutId,this.interactionLoggingClientData,this.TA,this.Z),g.Z(this,this.DS),this.DS.qQ(this.K),this.DS.init(j3("skip-ad"),J);else{var l;n&&((l=this.api.getVideoData())==null?0:l.isDaiEnabled())&&(this.U=new L2(this.api,this.layoutId,this.interactionLoggingClientData,this.TA,this.Z,1),g.Z(this,this.U),this.U.qQ(this.K),this.U.init(j3("ad-preview"), n),l=this.U,l.transition.show(100),l.show())}if(l=g.f(K.skipOrPreview,pj8))var x=l.skipOffsetMilliseconds}K.playerAdCard&&(l=g.f(K.playerAdCard,BIF))&&(this.playerAdCard=new MFF(this.api,this.layoutId,this.interactionLoggingClientData,this.TA,this.Z),g.Z(this,this.playerAdCard),this.playerAdCard.qQ(this.MQ),this.playerAdCard.init(j3("ad-avatar-lockup-card"),l));K.adBadgeRenderer&&((l=g.f(K.adBadgeRenderer,Z6))?(this.X=new T_(this.api,this.layoutId,this.interactionLoggingClientData,this.TA,!0),g.Z(this, this.X),this.X.qQ(this.G),this.X.init(j3("ad-badge"),l)):g.ko(Error("AdBadgeViewModel is not found in player overlay layout.")));K.adPodIndex&&(l=g.f(K.adPodIndex,zSr))&&(this.adPodIndex=new DB(this.api,this.layoutId,this.interactionLoggingClientData,this.TA),g.Z(this,this.adPodIndex),this.adPodIndex.qQ(this.G),this.adPodIndex.init(j3("ad-pod-index"),l));K.adInfoRenderer&&((l=g.f(K.adInfoRenderer,c$))?(this.adInfoButton=new Ai(this.api,this.layoutId,this.interactionLoggingClientData,this.TA,this.element, void 0,!0),g.Z(this,this.adInfoButton),this.X!==void 0?this.G.insertBefore(this.adInfoButton.element,this.X.element.nextSibling):this.adInfoButton.qQ(this.G),this.adInfoButton.init(j3("ad-info-hover-text-button"),l,this.macros)):g.gG(Error("AdInfoRenderer is not found in player overlay layout.")));var V;l=(V=this.api.getVideoData())==null?void 0:V.isDaiEnabled();K.adDurationRemaining&&l&&(V=g.f(K.adDurationRemaining,Qir))&&(this.adDurationRemaining=new Bz(this.api,this.layoutId,this.interactionLoggingClientData, this.TA,this.Z,X.videoAdDurationSeconds,!0),g.Z(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.G.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.qQ(this.G),this.adDurationRemaining.init(j3("ad-duration-remaining"),V,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));K.visitAdvertiserLink&&(X=g.f(K.visitAdvertiserLink,TIS))&&(this.visitAdvertiserLink=new ke(this.api,this.layoutId, this.interactionLoggingClientData,this.TA),g.Z(this,this.visitAdvertiserLink),this.visitAdvertiserLink.qQ(this.G),this.visitAdvertiserLink.init(j3("visit-advertiser-link"),X));K.adDisclosureBanner&&(K=g.f(K.adDisclosureBanner,eSF))&&(this.adDisclosureBanner=new df(this.api,this.layoutId,this.interactionLoggingClientData,this.TA),g.Z(this,this.adDisclosureBanner),this.adDisclosureBanner.qQ(this.QG),this.adDisclosureBanner.init(j3("ad-disclosure-banner"),K));this.N=new cz(this.api,this.Z,x,!0);g.Z(this, this.N);g.dv(this.api,this.N.element,4);this.show()}; gx.prototype.clear=function(){this.hide()};g.e(J7z,se);g.u=J7z.prototype; g.u.init=function(J,K){se.prototype.init.call(this,J,K,{});if(K!=null&&K.title)if(J=K.title)if(this.headline.init(j3("ad-simple-attributed-string"),new p1(J)),J=g.f(K.moreInfoButton,f2)){if(this.moreInfoButton.init(j3("ad-button"),J),K.descriptions)K.descriptions.length>0&&(J=K.descriptions[0])&&(this.G=new L1(this.api,this.layoutId,this.interactionLoggingClientData,this.TA),g.Z(this,this.G),this.G.qQ(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.G.init(j3("ad-simple-attributed-string"), new p1(J))),K.descriptions.length>1&&(K=K.descriptions[1])&&(this.Z=new L1(this.api,this.layoutId,this.interactionLoggingClientData,this.TA),g.Z(this,this.Z),this.Z.qQ(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.Z.init(j3("ad-simple-attributed-string"),new p1(K)))}else g.ko(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.ko(Error("No headline found in AdGridCardText."));else g.ko(Error("No headline found in AdGridCardText."))}; g.u.onClick=function(J){se.prototype.onClick.call(this,J);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.u.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var J;(J=this.G)==null||J.clear();var K;(K=this.Z)==null||K.clear()}; g.u.hide=function(){this.headline.hide();this.moreInfoButton.hide();var J;(J=this.G)==null||J.hide();var K;(K=this.Z)==null||K.hide();se.prototype.hide.call(this)}; g.u.show=function(){se.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var J;(J=this.G)==null||J.show();var K;(K=this.Z)==null||K.show()};g.e(cr,se);cr.prototype.init=function(J,K){se.prototype.init.call(this,J,K,{});if(K!=null&&K.gridCards)if(K.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.ko(Error("Only single column style is currently supported in AdGridCardCollection."));else for(J=g.z(K.gridCards),K=J.next();!K.done;K=J.next()){if(K=g.f(K.value,IV0)){var n=new J7z(this.api,this.layoutId,this.interactionLoggingClientData,this.TA);g.Z(this,n);n.qQ(this.element);n.init(j3("ad-grid-card-text"),K);this.G.push(n)}}else g.ko(Error("No grid cards found in AdGridCardCollection."))}; cr.prototype.show=function(){for(var J=g.z(this.G),K=J.next();!K.done;K=J.next())K.value.show();se.prototype.show.call(this)}; cr.prototype.clear=function(){this.hide();for(var J=g.z(this.G),K=J.next();!K.done;K=J.next())K.value.clear()}; cr.prototype.hide=function(){for(var J=g.z(this.G),K=J.next();!K.done;K=J.next())K.value.hide();se.prototype.hide.call(this)};g.e(Ye,JC);g.u=Ye.prototype;g.u.init=function(J,K,n,X,l){l=l===void 0?0:l;JC.prototype.init.call(this,J,K,n,X);this.playerProgressOffsetMs=l;K1(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.Lp.bind(this));this.api.addEventListener("resize",this.kJ.bind(this));this.api.Jh()?(this.Z=!0,this.api.Yn(!0),this.show()):this.hide()}; g.u.g3=function(){if(this.G){var J=this.G.getProgressState();J&&J.current&&!this.Z&&1E3*J.current>=this.playerProgressOffsetMs&&(this.Z=!0,this.api.Yn(!0),this.show())}}; g.u.e5=function(){this.Z&&this.api.Yn(!1);this.hide()}; g.u.clear=function(){this.api.Yn(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.Lp.bind(this));this.api.removeEventListener("resize",this.kJ.bind(this));n1(this);this.hide()}; g.u.hide=function(){Kkj(!1);JC.prototype.hide.call(this)}; g.u.show=function(){Kkj(!0);JC.prototype.show.call(this)};g.e(nHG,Ye);g.u=nHG.prototype; g.u.init=function(J,K,n,X){if(K!=null&&K.adGridCardCollection)if(K!=null&&K.adButton){var l=Number(K.playerProgressOffsetMs||"0");isNaN(l)?Ye.prototype.init.call(this,J,K,n,X):Ye.prototype.init.call(this,J,K,n,X,l);J=K.headline;n=g.f(K.adAvatar,yv);J&&n?(this.headline=new L1(this.api,this.layoutId,this.interactionLoggingClientData,this.TA),g.Z(this,this.headline),this.headline.qQ(this.rQ("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(j3("ad-simple-attributed-string"),new p1(J)), this.adAvatar=new Tn(this.api,this.layoutId,this.interactionLoggingClientData,this.TA),g.Z(this,this.adAvatar),this.adAvatar.qQ(this.rQ("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(j3("ad-avatar"),n)):this.U.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");J=g.f(K.adGridCardCollection,PSr);this.adGridCardCollection.init(j3("ad-grid-card-collection"),J);K=g.f(K.adButton,f2);this.adButton.init(j3("ad-button"),K); this.hide()}else g.ko(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.ko(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.u.onClick=function(J){(this.adButton&&g.XG(this.adButton.element,J.target)||this.adAvatar&&g.XG(this.adAvatar.element,J.target))&&this.api.pauseVideo();Ye.prototype.onClick.call(this,J);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.u.kJ=function(){}; g.u.clear=function(){this.hide();var J;(J=this.headline)==null||J.clear();var K;(K=this.adAvatar)==null||K.clear();this.adGridCardCollection.clear();this.adButton.clear();Ye.prototype.clear.call(this)}; g.u.show=function(){var J;(J=this.headline)==null||J.show();var K;(K=this.adAvatar)==null||K.show();this.adGridCardCollection.show();this.adButton.show();Ye.prototype.show.call(this)}; g.u.hide=function(){var J;(J=this.headline)==null||J.hide();var K;(K=this.adAvatar)==null||K.hide();this.adGridCardCollection.hide();this.adButton.hide();Ye.prototype.hide.call(this)}; g.u.Lp=function(J){J==="transitioning"?(this.X.classList.remove("ytp-ad-underlay-clickable"),this.show()):J==="visible"?this.X.classList.add("ytp-ad-underlay-clickable"):J==="hidden"&&(this.hide(),this.X.classList.remove("ytp-ad-underlay-clickable"))};g.e(Gn,se); Gn.prototype.init=function(J,K){se.prototype.init.call(this,J,K,{});if(K.attributes===void 0)g.ko(Error("No attributes found in AdDetailsLineViewModel."));else if(K.style===void 0)g.ko(Error("No style found in AdDetailsLineViewModel."));else{J=g.z(K.attributes);for(var n=J.next();!n.done;n=J.next())if(n=n.value,n.text!==void 0){n=n.text;var X=K.style,l=new L1(this.api,this.layoutId,this.interactionLoggingClientData,this.TA);g.Z(this,l);l.qQ(this.element);a:switch(X){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":X="ytp-ad-details-line__text--style-responsive"; break a;default:X="ytp-ad-details-line__text--style-standard"}l.element.classList.add(X);l.init(j3("ad-simple-attributed-string"),new p1(n));this.G.push(l)}this.show()}}; Gn.prototype.show=function(){this.G.forEach(function(J){J.show()}); se.prototype.show.call(this)}; Gn.prototype.clear=function(){this.hide()}; Gn.prototype.hide=function(){this.G.forEach(function(J){J.hide()}); se.prototype.hide.call(this)};g.e(UI,se);UI.prototype.init=function(J,K){se.prototype.init.call(this,J,K,{});var n,X;(J=((X=IL(((n=K.image)==null?void 0:n.sources)||[]))==null?void 0:X.url)||"")&&J.length?(n=this.rQ("ytp-image-background-image"),g.c7(n,"backgroundImage","url("+J+")"),K.blurLevel!==void 0&&g.c7(n,"filter","blur("+K.blurLevel+"px)"),K.gradient!==void 0&&(K=new g.F({j:"div",UM:["ytp-image-background--gradient-vertical"]}),g.Z(this,K),K.qQ(this.element)),this.show()):g.ko(Error("Failed to get imageUrl in ImageBackground."))}; UI.prototype.clear=function(){this.hide()};g.e(oH8,JC);g.u=oH8.prototype;g.u.init=function(J,K){JC.prototype.init.call(this,J,K,{});g.c7(this.X,"stroke-dasharray","0 "+this.Z);this.show()}; g.u.clear=function(){this.hide()}; g.u.hide=function(){n1(this);JC.prototype.hide.call(this)}; g.u.show=function(){K1(this);JC.prototype.show.call(this)}; g.u.e5=function(){this.hide()}; g.u.g3=function(){if(this.G){var J=this.G.getProgressState();J!=null&&J.current!=null&&g.c7(this.X,"stroke-dasharray",J.current/J.seekableEnd*this.Z+" "+this.Z)}};g.e(tY,se); tY.prototype.init=function(J,K){se.prototype.init.call(this,J,K,{});if(leg(K)){this.adAvatar=new Tn(this.api,this.layoutId,this.interactionLoggingClientData,this.TA);g.Z(this,this.adAvatar);this.adAvatar.qQ(this.rQ("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(j3("ad-avatar"),g.f(K.adAvatar,yv));this.headline=new L1(this.api,this.layoutId,this.interactionLoggingClientData,this.TA);g.Z(this,this.headline);this.headline.qQ(this.rQ("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(j3("ad-simple-attributed-string"),new p1(K.headline));if(J=g.f(K.adDetailsLine,uFr))this.detailsLine=new Gn(this.api,this.layoutId,this.interactionLoggingClientData,this.TA),g.Z(this,this.detailsLine),this.detailsLine.qQ(this.rQ("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(j3("ad-details-line"),J);this.adButton=new D6(this.api,this.layoutId,this.interactionLoggingClientData,this.TA,!0);g.Z(this,this.adButton); this.adButton.qQ(this.rQ("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(j3("ad-button"),g.f(K.adButton,f2));this.adBadge=new T_(this.api,this.layoutId,this.interactionLoggingClientData,this.TA,!0);g.Z(this,this.adBadge);this.adBadge.qQ(this.U);this.adBadge.init(j3("ad-badge"),g.f(K.adBadge,Z6));this.adInfoButton=new Ai(this.api,this.layoutId,this.interactionLoggingClientData,this.TA,this.element,void 0,!0);g.Z(this,this.adInfoButton);this.adInfoButton.qQ(this.U); this.adInfoButton.init(j3("ad-info-hover-text-button"),g.f(K.adInfoRenderer,c$),this.macros);if(J=g.f(K.skipAdButton,mXO))this.skipAdButton=new dx(this.api,this.layoutId,this.interactionLoggingClientData,this.TA),g.Z(this,this.skipAdButton),this.skipAdButton.qQ(this.element),this.skipAdButton.init(j3("skip-button"),J);this.Z=new Pz(K.durationMilliseconds);g.Z(this,this.Z);if(J=g.f(K.countdownViewModel,L7j))this.G=new oH8(this.api,this.layoutId,this.interactionLoggingClientData,this.TA,this.Z),g.Z(this, this.G),this.G.qQ(this.rQ("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.G.init(j3("timed-pie-countdown"),J);if(K=g.f(K.imageBackground,wjm))this.imageBackground=new UI(this.api,this.layoutId,this.interactionLoggingClientData,this.TA),g.Z(this,this.imageBackground),this.imageBackground.qQ(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(j3("image-background"), K);this.show();this.element.focus()}}; tY.prototype.clear=function(){g.L0(this.X);this.hide()}; tY.prototype.show=function(){X3g(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();se.prototype.show.call(this)}; tY.prototype.hide=function(){X3g(!1);this.adAvatar&&this.adAvatar.hide();this.headline&&this.headline.hide();this.adButton&&this.adButton.hide();this.detailsLine&&this.detailsLine.hide();this.adBadge&&this.adBadge.hide();this.adInfoButton&&this.adInfoButton.hide();this.skipAdButton&&this.skipAdButton.hide();this.G&&this.G.hide();this.imageBackground&&this.imageBackground.hide();se.prototype.hide.call(this)};g.e(Wr,g.hi);g.u=Wr.prototype;g.u.nm=function(){return 1E3*this.api.getDuration(this.Ps,!1)}; g.u.stop=function(){this.G&&this.L9.rR(this.G)}; g.u.MH=function(){var J=this.api.getProgressState(this.Ps);this.Z={seekableStart:J.seekableStart,seekableEnd:J.seekableEnd,current:this.api.getCurrentTime(this.Ps,!1)};this.publish("h")}; g.u.getProgressState=function(){return this.Z}; g.u.Ir=function(J){g.C1(J,2)&&this.publish("g")};var oXS="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.e(ak,aR); ak.prototype.U=function(J){var K=J.id,n=J.content,X=n.componentType;if(!oXS.includes(X))switch(J.actionType){case 1:J=this.api;var l=this.TA,x=n.layoutId,V=n.interactionLoggingClientData,v=n instanceof a4?n.cZ:!1,Q=n instanceof a4||n instanceof z_?n.eQ:!1;V=V===void 0?{}:V;v=v===void 0?!1:v;Q=Q===void 0?!1:Q;switch(X){case "invideo-overlay":J=new z5H(J,x,V,l);break;case "player-overlay":J=new YD(J,x,V,l,new Wr(J),Q);break;case "player-overlay-layout":J=new gx(J,x,V,l,new Wr(J));break;case "survey":J= new mw(J,x,V,l);break;case "ad-action-interstitial":J=new Ow3(J,x,V,l,v,Q);break;case "video-interstitial-buttoned-centered":J=new tY(J,x,V,l);break;case "survey-interstitial":J=new p2(J,x,V,l);break;case "ad-message":J=new L8H(J,x,V,l,new Wr(J,1));break;case "player-underlay":J=new Dk3(J,x,V,l);break;case "display-underlay-text-grid-cards":J=new nHG(J,x,V,l,new Wr(J));break;default:J=null}if(!J){g.gG(Error("No UI component returned from ComponentFactory for type: "+X));break}g.E0(this.Z,K)?g.gG(Error("Ad UI component already registered: "+ K)):this.Z[K]=J;J.bind(n);n instanceof fG?this.X?this.X.append(J.gH):g.gG(Error("Underlay view was not created but UnderlayRenderer was created")):this.C.append(J.gH);break;case 2:K=xp0(this,J);if(K==null)break;K.bind(n);break;case 3:n=xp0(this,J),n!=null&&(g.QD(n),g.E0(this.Z,K)?(n=this.Z,K in n&&delete n[K]):g.gG(Error("Ad UI component does not exist: "+K)))}}; ak.prototype.Xq=function(){g.$T(Object.values(this.Z));this.Z={};aR.prototype.Xq.call(this)};g.e(jrr,g.CH);g.u=jrr.prototype;g.u.create=function(){try{V8g(this),this.load(),this.created=!0,V8g(this)}catch(J){Se(J instanceof Error?J:String(J))}}; g.u.load=function(){try{QrS(this)}finally{bs(ul(this.G).c6)&&this.player.v3("ad",1)}}; g.u.destroy=function(){var J=this.player.getVideoData(1);this.G.G.IM.J0(J&&J.clientPlaybackNonce||"");this.unload();this.created=!1}; g.u.unload=function(){g.CH.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(K){Se(K instanceof Error?K:String(K))}if(this.Z!=null){var J=this.Z;this.Z=null;J.dispose()}this.X.reset()}; g.u.g5=function(){return!1}; g.u.getAdState=function(){return-1}; g.u.getOptions=function(){return Object.values(nXH)}; g.u.Dd=function(J,K){K=K===void 0?{}:K;switch(J){case "replaceUrlMacros":return J=K,J.url?(K=ir8(this.player),Object.assign(K,J.PBd),J=g.T1(J.url,K)):J=null,J;case "onAboutThisAdPopupClosed":this.o0(K);break;case "executeCommand":J=K;J.command&&J.layoutId&&this.executeCommand(J);break;default:return null}}; g.u.Nm=function(J){var K;return!((K=this.G.G.tB)==null||!K.get().Nm(J))}; g.u.o0=function(J){J.isMuted&&wx3(ul(this.G).ey,ul(this.G).lB,J.layoutId);this.ZP&&this.ZP.o0()}; g.u.executeCommand=function(J){ul(this.G).TA.executeCommand(J.command,J.layoutId)};g.Ed("yt.player.Application.create",g.sN.create);g.Ed("yt.player.Application.createAlternate",g.sN.create);Z0d(LZ(),KES);var Xdr=g.bF("ytcsi.tick");Xdr&&Xdr("pe");g.sU("ad",jrr);g.e(g.EI,g.t);g.EI.prototype.start=function(J,K,n){this.config={from:J,to:K,duration:n,startTime:(0,g.a)()};this.next()}; g.EI.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.EI.prototype.next=function(){if(this.config){var J=this.config,K=J.from,n=J.to,X=J.duration;J=J.startTime;var l=(0,g.a)()-J;J=this.G;X=be3(J,l/X);if(X==0)J=J.W;else if(X==1)J=J.L;else{l=pl(J.W,J.C,X);var x=pl(J.C,J.N,X);J=pl(J.N,J.L,X);l=pl(l,x,X);x=pl(x,J,X);J=pl(l,x,X)}J=g.BK(J,0,1);this.callback(K+(n-K)*J);J<1&&this.delay.start()}};g.e(g.bl,g.F);g.u=g.bl.prototype;g.u.hasSuggestions=function(){return this.suggestionData.length>0}; g.u.Fy=function(){this.Z&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.u.show=function(){g.F.prototype.show.call(this);OUS(this)}; g.u.Lt=function(){this.Z&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.u.Fj=function(){this.s_(this.api.S_().getPlayerSize())}; g.u.s_=function(J){var K=this.api.isEmbedsShortsMode()?.5625:16/9,n=this.api.Mx();J=J.width-(n?112:58);n=Math.ceil(J/(n?320:192));var X=(J-n*8)/n;K=Math.floor(X/K);for(var l=g.z(this.G),x=l.next();!x.done;x=l.next())x=x.value.rQ("ytp-suggestion-image"),x.style.width=X+"px",x.style.height=K+"px";this.suggestions.element.style.height=K+"px";this.U=X;this.L=K;this.containerWidth=J;this.columns=n;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.AY(this)}; g.u.onVideoDataChange=function(){var J=this.api.S(),K=g.U(this.api.getVideoData());this.N=K.t7?!1:J.U;this.suggestionData=K.suggestions?g.d7(K.suggestions,function(n){return n&&!n.playlistId}):[]; RfH(this);K.t7?this.title.update({title:g.rK("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:K.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"More shorts":"More videos"})}; g.u.scrollTo=function(J){J=g.BK(J,this.containerWidth-this.suggestionData.length*(this.U+8),0);this.W.start(this.scrollPosition,J,1E3);this.scrollPosition=J;g.AY(this);OUS(this)};})(_yt_player);