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 bk,JJa,b3v,K3,IaC,wao,AJJ,MzJ,gY,qmz,mo,ik,z_,vCo,aak,ev3,G_,Pa,Koz,pav,gCJ,m4a,T_,Sz,sm,YC,$C,C3,yJo,X7,Om,oG,zvC,NYC,lao,Je,bW,uW,faJ,Wo7,ab,em,g5,ECk,jGa,G_Y,Vzo,PkG,BY4,TYJ,rJ_,iW,Smv,zV,sGJ,Xao,N8,QGa,Rva,Wk,D4J,jm,VU,s1,YL,$L,Cz,k_J,O3v,Xb,DH,Rb,oCC,hvY,cJa,U4k,kL,x4z,O1,ob,he,nCm,tz3,U1,H3G,Loo,uV,FR4,qL,Jea,bz3,ML,IHJ,ubJ,wk3,yI,MmG,q1z,gLa,lV,pk7,aHz,yeJ,ztk,lH7,WW,dy,jJ,VI,Gw,WRk,EL7,PW,BW,Tw,sX,YK,B5o,$K,Cf,XP,De,T5z,kK,OX,hL,UX,nf,Y1z,Lf,J_,IF,$8k,bv,CWJ,Xk_,uv,Fe,wU, Mu,Qbm,A_,v3,D8C,aF,e2,KI,OzJ,lv,oLG,htJ,ce_,kV7,Nu,yg,gU,U8a,x8z,tmv,HzJ,LRC,W3,dU,EF,FF4,JLm,Ga,wWz,qXo,bfk,ALG,MJ4,uPY,Iem,vK_,ae7,emo,Vg,pWv,B3,KFY,mLC,sF,S2,yLa,zmY,Yp,$p,Xe,CI,RF,Qg,c3,Dz,OF,oF,Nya,xp,leo,nI,t_,FW,Jx,bP,Zz,LI,H3,uP,w4,MX,fe_,w5,Ax,vo,kp,h_,aM,dLJ,eD,Ae,KG,pG,g4,mC,yH,iP,zb,EKG,NX,jy_,fG,Gwz,d4,Wo,Eq,jD,Gb,VH,Po,VJ4,ByJ,Tb,Tym,rLm,r4,SD,$4,syY,CG,YXv,XW,CVa,QH,Qyz,RM,Dw,k4,Rmz,Oq,DL_,oM,kwm,Of3,hx,oK4,co,Uq,nG,tx,cL4,LG,nK4,hmo,Fv,bw,I0,Zfm,uw,M9,Hfk,FLz,J_C,AQ,q9,v9,a0,ep,K5, p5,Iz_,ueG,w34,M2o,g3,A_Y,qF4,mk,yG,iw,zy,vpz,p3v,gpm,y_Y,muG,iI3,NUz,W9,d3,EQ,jp,Gy,P9,B9,duk,r3,sQ,Y_,$_,Xv,QG,Epv,R0,Di,OQ,Gaz,V2k,o0,c9,UQ,n5,tQ,H9,L5,$u7,Cvk,X3o,QFm,Fl,JD,RWY,Du7,kaJ,be,If,ue,wl,MD,v1,p$,yj,ND,OIz,opz,Go,hW_,YM,$M,xu4,LLC,ZIa,Jx_,Qj,Rf,Ua,uWY,MDz,woY,n$,Z8,Axz,tD,bB,Xl,v4k,qqa,A6,MI,C$,qI,vz,aD,awo,eX,KCa,gK,po4,yx,iB,zE,NI,g4z,mX_,yx7,fb,iGz,zlY,N47,jX,lwa,fwz,WCa,E4_,dXv,EP,GE,Vx,jM7,GbJ,VDv,PPa,Pz,B4z,Bz,eWm,azG,TE,rK,sP,Ye,Sqv,$e,Cb,Qx,sMC,Yqz,RD,RlJ,xe,CPm,QMz,OP,ke,Hz, Lb,DXC,Ic,kb3,u5,wb,OGk,hlJ,vj,UXa,eP,Ku,xXG,n43,mI,i5,LCm,JQa,b53,Nf,Ii_,zq,AQJ,pu,ZGa,Mqv,MpG,uvv,w9z,ADG,w1o,l5,Fkz,db,vMo,a8C,e64,KDa,p14,jP,gMk,VX,mD7,z6m,Nl7,Pj,Bj,Tq,XQ,f8G,QX,Rc,DL,WDG,dD_,oc,EMv,hz,cj,Vqv,Bla,rDa,TlJ,Sav,xV,ZL,Jv,I6,u3,w8,M6,Av,$Da,Cez,q6,X14,vR,a6,b3,eW,K2,p2,M8,g8,Qfa,y3,koY,i3,z5,N6,O$4,oM7,h6k,cDm,l3,f2,WR,d8,tq3,nMm,Z$J,H$7,LDa,EU,Fb_,UDC,jW,J6Y,bba,G5,u9z,wzY,MXo,A6z,qP4,BR,ve4,ark,eh4,Kbm,mI_,pz7,T5,r8,SW,sU,Y9,$9,C2,X5,ibz,DF,R6,k9,zhJ,OU,NKk,lrC,frG,Wbv,o6,cR,jDC, hv,GEC,UU,x9,VXC,n2,tv,ZF,HR,L2,FB,SPv,PBo,uF,r6m,wR,TKm,I2,JN,BKG,bF,AN,YPv,vt,ql,gR,mj,iF,Xz7,yu,lF,QDo,fM,$Iv,kEJ,Oba,oe3,E4,jh,Gm,hh_,Vu,Pt,Bt,Tm,c6a,rR,Sh,CM,UIa,xIa,XB,neo,Lbm,FIa,Hbo,JzG,buz,IL4,tXz,wjv,Qu,R2,DV,MPm,O4,ko,Azo,qsz,vVC,U4,aLo,xo,nM,eB3,tN,pja,ZV,KIa,gV7,mfo,yz_,Ht,LM,FV,Jh,bT,II,uT,iu_,wf,M5,Ah,zB3,lL7,fLv,vY,ew,aI,p_,gf,mx,dfC,EV_,yF,iT,zi,Gqv,VPz,Tb4,P5k,rzm,$fJ,N5,Ysv,Ssa,lT,f_,C5Y,WY,Xjk,df,RB_,Qc_,Dfo,kqv,VF,PY,OuY,oVC,hBo,BY,Ti,czk,rf,Ufa,xfo,tPz,F67,Sw,Jva,b2J,IFm,u53, wRv,$I,MWm,Avz,qUk,OG,kI,DA,v9C,aF_,eP4,oI,hh,cY,pR3,ZA,HY,L_,Fw,JW,bu,m6m,yvo,i27,IN,qB,vc,pL,gj,iu,N8a,fF4,lFz,W63,d6Y,dj,E9_,j6k,Pc,G57,VWk,P3a,B84,Su,Tv,sN,Yg,$g,T87,rv7,SUG,CL,Xw,s6C,Qf,YUz,$67,C3Y,RN,XRo,DG,kg,Q6o,RPJ,D6k,k5a,O23,o9z,ON,oN,hW,UN,U6G,xg,nL,x6m,cv7,cc,n9m,tW,ZG,Hc,FL,LL,tWm,Z2m,H2Y,JS,Fjz,bR,bMY,IVm,uBJ,wt_,MhG,ANG,q4Y,voz,w2,MN,AS,e$k,aVv,Kj4,ptC,v2,go7,a8,ml4,yNz,e7,Kq,pq,iMk,g2,ma,z$o,yC,iR,zZ,NN,lR,fq,W2,d2,NRa,lVm,fVv,Wja,E0,dla,j2a,Eo4,GZ,VC,Vhz,Gmz,TR3,s2m,S4G,P2,Y4G,$lz, CFa,Q2J,Xtz,R$G,B2,Dlz,kmz,r2,OMz,ook,h$o,cN_,S7,UlG,s0,xlv,YR,$R,thv,Cq,ZMz,XL,QC,HM3,Ljz,R8,kR,JhY,O0,Fxa,b_G,IA7,uVY,Mw7,o8,Ahz,U0,xR,vI_,aAm,pYa,gIC,nq,tS,ZS,H2,Lq,F0,Jy,bo,IE,uo,wi,Mw,Ay,zAC,i__,NfJ,fA3,lA3,d5m,yhJ,Wx7,m5z,qw,vQ,jIz,Giv,Vwv,p8,gi,mU,aE,BfC,yP,EIm,rhv,SGa,TfG,io,zM,Nw,lo,sIv,PTk,YGC,f8,$5Y,CTm,XY7,QIo,RAo,O_Y,oIk,hA4,chJ,EY,x5Y,nIz,Z_G,H_z,PQ,F2a,BQ,VP,bLo,JW4,wcG,qNa,ri,sY,vgm,aGa,eY4,K2z,gga,C8,$Q,mB_,pcY,iLk,Nj3,Eg_,RE,jNz,QP,kQ,Gvz,OY,hy,cQ,Vu_,PuG,Bjz,Jn,TjG,rWo,a3,SNk,YNa, eM,$BJ,Cum,kvv,Xcv,m5,yN,iG,Nr,lG,UB_,f6,WV,dD,ng7,G8,tua,ZLY,VN,L2v,BV,T8,rD,SM,Fav,sJ,$d,C6,X4,QN,JSY,DC,kd,OJ,o3,hn,cV,bqz,ISC,uLC,w2C,M73,ASk,UJ,q0_,F$,vRm,aSv,e8m,JE,Ip,uJ,wF,qj,vT,ap,p2z,pX,gF,mM,gR_,mNY,y9,yS7,iq3,zT,j8C,GZk,V7o,Nj,PR_,B2z,S0m,fX,Y0z,s8Y,dF,CRJ,X2Y,Q8k,j4,GT,R8G,V9,PT,BT,TT,rF,S4,sk,YD,$D,Q9,Rp,Dk,kD,Ok,DNa,kZz,Oqk,hE,Uk,oR3,Zk,HT,LX,FF,JR,IR,ui,xN3,w$,Mk,AR,t7o,nR3,h8v,aR,vx,FUz,eN,fl,zk,Wx,d$,b8_,wQY,jN,qYo,Mf4,Aya,a_z,mwY,ebY,pQz,gQm,Vt,Gk,yyk,Bx,Tk,r$,i8z,XF,zbY,Qt,RR, k6,Nio,oR,hR,l_a,cx,U6,WUa,tR,Hx,Ll,Ft,JC,b8,Ig,u8,wm,M1,EQv,AC,ag,vK,GM3,TiC,Po7,BiY,ryG,SYm,YYY,$wz,sEa,XQk,pw,gm,i8,QEm,Rbk,ye,zD,kMv,O8v,Uw_,cya,WK,dm,Ey,j9,GD,PK,nQm,tf4,Z8a,$q,Cw,H8Y,LUY,F5J,kq,Oy,og,Jno,b6a,u4_,MMY,xq,Anz,Zv,nw,Fs,JY,Ie,qJC,ae,eR,KD,pD,mH,yb,zl,pVv,gd3,la,mrz,ynY,W$,i67,z4m,dZ,El,NDo,lCz,W5a,P$,EdJ,j3Y,Gl,G87,VMk,BDz,PGk,SR,drv,rnm,SJa,Qb,CD,s33,YJ_,Re,DZ,$rv,CG_,oe,XVa,Q3a,R44,Dra,nD,k84,O6k,oda,h4z,cnC,Urm,xr3,ndv,ZZ,tM7,LD,H63,L5o,FMm,JE_,bX3,Fp,MK,u$Y,AE4,AB,qkY,akY,IkC, ezm,KMm,pT7,wTk,M4o,JB,bC,wL,vDa,uC,IK,gDk,mj3,yEC,iXo,zzJ,NFz,EDz,lkC,e6,KA,gL,V44,TFY,BF3,pA,fA,rEo,EZ,Sk3,Yko,Br,spz,oD_,$ja,OXC,sZ,hzz,xjz,YP,S6,cEY,Ujm,nDz,CA,ZX7,HXC,LMm,F1m,JRa,bla,I$m,t4v,wxa,MN4,ARv,v6o,q6k,eyz,DD,K1z,kP,OZ,oK,px4,g6z,UZ,xP,yRa,mk7,nA,ilJ,N$m,f$Y,l$z,W1J,jRa,dk3,Mq,vB,qq,Gk4,AA,gP,mA,yv,VNa,Pia,zf,T$_,fJ,l0,dP,Ew,jZ,rRJ,Gf,PB,S6z,Tf,SZ,YB,sRz,Y6C,$k_,Ci_,$B,XT,Xx3,Qv,Ru,Dn,RyJ,kB,Ow,Dka,hA,xB,Uw,cB,nJ,tA,o6m,tNz,HlG,n67,xk3,ZlJ,LJ,b$,bwG,L1_,Fuv,JC7,Olv,efJ,KO,ava,gqa,vq3, HB,pO,MY,aO,Kuz,u$,cR_,hyJ,UkY,Jk,qyz,i$,lvm,zd,Wua,d1C,Eq7,l$,jg7,GD_,V9J,Bmz,TmY,dQ,SyY,ET,sgm,Yy4,C8_,XKC,Gd,Qg4,D13,V7,kD4,P8,B8,MP,U14,Hw_,$W,FHm,IZ_,Xn,w$_,MR3,AYk,ql7,nO,vuv,UT,PJv,hk,xW,c8,Q7,I4,bA,wV,Ar,eUz,qc,a4,e0,KHo,p$z,gV,mPC,yYa,iDo,zU7,NZJ,lZJ,fZ_,WHo,dPk,Eu3,zh,jek,Nc,fr,Gl3,VRz,Pak,Wi,BZ7,TZz,Gh,Vr,Pi,rYY,Bi,Slv,rV,Ylm,sea,sj,YS,$S,Cr,$PY,XX,Qr,Caz,X$C,R4,DU,kl_,Qe4,DPa,RUJ,kS,Oj,o4,ODk,ouC,hU4,hr,UPa,tR_,nua,ci,Uj,xS,nr,tr,Hi,Lr,FY,J5,bD,IJ,uD,ZDv,HD7,LHY,wJ,M_,A5,q_,aJ,K0,bAG, JB3,gJ,ID7,mN,ym,iD,zg,N_,WL,dJ,EV,j1,Gg,Vm,PL,BL,Tg,rJ,S1,M6z,Yy,C0,AB_,XY,vPz,aDz,eoa,prz,mKv,oJ,yBz,cL,h5,NL3,lDk,fDm,n0,t5,dK_,HL,L0,FH,Kp,jKa,pp,mK,yk,GSm,iq,EPG,zp,NG,PCC,V6Y,lq,fp,Wf,da,jl,TLm,rBY,Vk,Pf,Tp,ra,SZm,Bf,$KC,CCv,XrG,QKk,Roo,DKz,kSz,sz,Sl,YZa,ho_,Yk,UKk,xKa,Rr,nPz,Cp,XH,t6G,Dj,HA3,FAm,kk,Oz,JAm,or,InG,ho,vBC,AAo,uTJ,MZa,wBk,Uz,xk,np,to,Zj,Hf,Lp,J3,ew3,gBY,uH,Lx4,wE,mqC,iJG,A3,et,qJ,aW,vA,ln3,NPC,zwv,fnz,KQ,WA_,Gfz,pQ,m_,P03,yK,iH,zc,NJ,BPo,lH,TPz,rA_,WA,Gc,VK,PA,BA,Tc,rE,St,YF,$F, CQ,XS,QK,RW,Sw7,suG,Dy,kF,Ov,oW,h3,cA,Yw4,$qz,Uv,A$,Quz,Rw4,qs,vP,mT,yo,kfm,Ns,WP,OJC,hwm,oBY,cAz,UqJ,xqJ,nBG,tZv,ZJ4,LAa,HJa,Fiz,I4o,w8G,bOG,EH,jk,Akv,MQm,GI,Vo,PP,vWa,BP,TI,r0,ei3,Kiz,Sk,a4z,sH,mYm,YG,$G,Cg,XU,Qo,R1,D5,kG,OH,o1,h$,cP,UH,xG,ng,t$,Z5,HP,Lg,FA,Jp,bQ,Id,uQ,wT,MR,Ap,qR,vM,ad,eK,KK,pK,gT,ms,yD,iQ,zu,NR,lQ,fK,WM,dT,Et,jK,Gu,VD,PM,BM,Tu,rT,SK,YY,$Y,CK,XA,QD,Rd,Dt,kY,Ot,od,hp,cM,Ut,xY,nK,tp,Zt,HM,Fu,Jj,iOa,bL,Z,Ii,LK,uL,wX,Me,NQJ,qe,f4C,Aj,Wia,ai,dYv,KT,vq,pT,gX,mO,iL,jOJ,Gda,VQa,P$G,G0, VS,Wq,Pq,TQv,rkz,STY,sOv,EWa,YTz,yS,$Yz,C$m,T0,$X,rX,Ne,X8C,z0,Bq,SB,CT,Riz,lL,fT,YX,sn,DYY,Xu,QS,Ri,DY,kdz,kX,On,oi,hj,cq,OO3,oWC,ckz,UY7,nT,tj,ZY,Hq,HOY,Fh4,brv,IUm,FK,wiC,M0a,MC,Ar_,As,qC,v7,aV,er,Kd,qj7,aUv,eeG,vS3,KhC,pia,yp,i6,NC,fd,W7,dq,Eh,gSm,jr,Gs,zs,B7,Ts,rq,Sr,mcY,P7,irz,sh,zek,NVa,Y5,lUY,$5,Cd,fU_,Wha,XK,dc3,ESz,Qp,j4a,Gh4,V0z,PAv,RV,DQ,BVz,TV7,k5,Oh,oV,rra,hs,c7,Uh,x5,Sjz,nd,ts,s43,ZQ,Yja,H7,$ck,CA_,XiJ,Q4Y,Re7,Dca,Ld,kho,Ork,oS7,Fk,heG,J1,cr7,bO,UcJ,IT,xc_,nSY,uO,v4,t0o,aT,eg,KF,pF, Zro,gk,mY,yZ,Hrz,Lh3,zj,NM,J5_,lO,b0k,II_,FNk,uYk,wLz,M1_,W4,A5k,dk,E5,jg,Gj,qVa,VZ,P4,Tj,vyv,rk,Sg,aIa,Yz,Xk,$z,kz,O5,eE4,oT,KN3,c4,U5,xz,pLz,t1,Zf,gya,LF,F8,RT,JG,b1,Il,m_J,u1,wu,Mt,y53,AG,qt,ve,al,es,X8,Qh,Rl,DO,i0_,zE_,NJJ,lI_,hG,kn,ce,Uo,fI3,WNz,d_v,xn,nB,tG,EyC,jJa,ol,Ggv,V1z,ZO,PD4,He,LB,JV,bp,IY,up,wM,AV,qO,aY,eY,Kx,px,v5,r5k,SVa,mS,yL,ip,sJ7,NO,$_v,lp,fx,CDY,W5,dM,ER,GA,XLo,jY,VL,P5,B5,QJm,SY,D_m,kg_,O0J,sR,YO,oy7,hEo,c5a,$O,x_G,zA,U_k,nym,Cx,t1z,XC,Z0m,QL,H0J,LNG,FKG,Joa,bpv,RY,uHv,IjJ, D0,oY,wfC,hV,Ml7,c5,Ao3,qz7,UR,vkm,ajv,eJ7,KK3,xO,pfG,nx,mGa,Z0,H5,ipY,yo3,zJ_,Na_,lj7,Fq,Jb,bg,fj7,WKm,dG3,Ek3,jrC,Gp_,Vlz,Pq7,Ba4,Tak,ug,wI,roY,Szv,Mh,Ab,srC,qh,vS,ej,Yz4,Ki,pi,gI,$Ga,mq,Cq7,yc,Xfo,ig,Qr7,RJG,zJ,DGo,kp4,Op4,Nh,lg,fi,WS,dI,okC,hJ3,EC,jj,GJ,coa,Vc,PS,BS,TJ,rI,UGG,xGz,Sj,sC,nkY,YA,$A,Ci,Xq,hiY,tla,Zp3,Qc,HpJ,LKz,F_z,RS,DM,kA,OC,oS,cS,UC,xA,ni,tb,ZM,J3J,bQ4,uM,wc,Iym,ME,NE,qE,vFv,mJ_,aya,y3Y,zMC,NEY,iQC,lyC,fyz,W_G,S5,jWo,Vt4,BE_,TEC,r3a,$8,CU,sW_,Yv3,QWv,Xj,RM_,$JJ,QB,Rk,Dp,k8,kc7, hM4,OQG,xJ_,J$z,FT3,nFo,bg4,ok,ZQ3,ttm,wPa,qHa,A$4,KT4,vGz,hI,cF,ig3,nU,zcv,j1J,EGG,dsz,WT7,l5z,Pxo,Vkm,f5k,s1Y,SH4,YH4,FZ,XPJ,$sG,Cxv,N0o,Q1m,RcJ,tI,HF,T0z,B0z,r$k,Dsz,Zp,GIG,OgC,hc_,Uso,nGo,Hga,LT_,Jpz,bKa,uA3,It4,vYz,MKz,wMo,at3,pMk,gYa,mRY,yp_,ey,GcG,NT3,iKz,gw,Wso,y6,EYa,jdk,dRz,iS,Gua,z2,N0,pd,lS,EF_,fm,WN,dw,VKY,PQY,Ep,BT3,TTY,rp3,jy,G2,V6,PN,BN,T2,rw,Sy,sp,Stv,sdJ,Yf,YtY,$f,OR,Cm,XZ,CQG,$RJ,Q6,XMJ,Qdo,Rn,DX,Rxz,kf,DRa,kuk,PHz,fta,OK3,Op,gq,xX,Jc,oYv,hxm,hc,y$z,Ux,cp3,Km,pm,In,bS,Ox,ww,tka, Fs7,uS,pPz,exk,URa,I5C,HQm,cN,lt_,Y8,nYG,xRo,DJm,Zgv,tKv,Ks_,vN,gGY,msa,Mkv,xs7,c$3,UJ4,oFa,XAv,CH7,Sva,kI3,L_4,Apz,a5Y,ecz,Ac,q0,M0,qt_,oGm,HKJ,ZKa,Up,xf,nm,tc,ZX,Fa,Ix,uf,wB,A8,q7,HN,Lm,M7,FO3,Ls7,vX,ev,JjC,bTm,Ka,pa,gB,mB,yA,zR,N7,lf,MBm,WX,fa,Ajv,uu_,wqk,qnJ,dB,Er,vXz,aYk,jv,eKv,wZ,pq3,KOa,mez,iTk,zK_,yjz,NX7,WOv,rB,Sv,dek,EX7,sr,$T,jiz,G0z,VBz,PLY,Xa,Rx,Do,TXv,rjz,Ynv,CL4,XqC,$ez,ox,cX,h8,QiC,RKm,kT,De_,k0z,OT_,oX7,Or,xeY,nXG,tBY,Uez,cjk,hKY,ZTz,HTa,Snz,LOz,siY,F8z,Jsz,w7Y,bdz,IQa,uKJ,qho,Mr4, Asz,v54,aQo,xT,p7C,epa,g57,K8m,mC4,ysk,id3,zpJ,NqG,lQ7,fQ7,W8Y,dCG,E5z,jVa,Gsz,na,P6o,BqY,Tqa,Vro,rsm,Shz,$CJ,Zo,Fh,b9,C6z,It,u9,w_,DC7,Oda,ks4,hpo,L8C,pk,At,o5m,Rpz,QV7,X7o,Kk,qv,ea,zK,Nv,bFz,l9,fk,i9,Mgv,Ifz,uk7,A1a,Wd,d_,vzk,GK,VJ,Pd,Bd,TK,r_,Sa,af3,eZ3,sS,YZ,Ck,p4J,gzv,$Z,Xh,iFz,zZz,QJ,Nko,kZ,lfC,OS,ht,ffz,ot,cd,WY7,xZ,EzJ,jTo,tt,ZT,bU,Vg4,Lk,IA,wG,PO3,AM,JM,uU,Bkm,qx,Tkm,v6,r1Y,Hd,Fz,Gja,Mx,aA,S5C,sT_,eo,Y5a,Ko,po,gG,mc,$M_,iU,y4,zC,Nx,COz,X4a,lU,fo,W6,dG,EL,QT7,jo,GC,RZ7,DMY,V4,P6,B6,OFG,kjv, TC,ozv,hZY,c1G,rG,UMm,xMz,nz_,tg7,ZF3,So,sL,Ym,$m,HFa,LYC,Xz,F4_,Q4,RA,JGk,bBk,Dc,IOm,u8_,qoC,vnv,wez,MsG,AG7,OL,oA,hM,c6,aOa,ega,UL,K4J,gna,pez,Zc,tM,yGG,iBo,zgC,NuG,H6,lOv,F1,Jg,fOC,dta,EnC,IZ,Ag,P1k,ZdY,vd,Tua,rGC,Soo,slC,YoG,Mv,uI,$tv,aZ,e$,Qlm,Rgz,DtG,KW,hgo,knY,OBv,Utv,xtv,pW,nna,cGv,tsv,gd,mt,yy,ZBz,HBm,iI,zF,L4a,NQ,FSC,lI,qQ,ED,JVm,Hdk,csY,j$,GF,PG,BG,TF,rd,S$,Vy,CW,I0z,RZ,uCo,w5o,MYv,AV_,qRY,D1,a0m,kj,KSa,OD,gOG,mO3,p5m,eRa,yV3,ixY,zRC,xj,NMz,l07,WSG,nW,J1a,Z1,EO7,GAo,g_,VYk,Ppa,LW,TMG,at, BMa,UC3,n5z,trG,dOz,F_,JP,bb,rVm,SR3,Iw,sYz,wN,Mn,AP,qn,vu,YRm,aw,e8,$Oa,Cpv,KH,pH,gN,m$,yi,ib,QYv,X57,zB,RRY,kAY,Nn,Ox_,DO4,X_,$2,Qi,D7,k2,cG,oOk,Zxz,En,CH,cu,Jbk,IMC,j8,tP,E7,Z7,FR,Y2,Ji,qCY,br,IH,vAz,aMz,eaz,KqY,ur,pSo,gA4,w7,mhm,lMz,NIz,ybm,zaJ,iik,MF,fMa,Ai,Wqk,dha,jSa,GJ4,Vj3,SCz,KC,pC,$h7,g7,mZ,Cg3,Rao,Dhk,kJ4,Oik,yE,oA3,cba,Uhz,PC,bUz,Zik,Him,ujk,BC,wFa,AIv,M54,qx7,r7,Y$,v8a,Tt,$$,CC,apk,KeG,mEm,k$,U9,HC,Jw,PMz,Bca,wS,uE,qb,vE,TcJ,skm,Sx4,YxY,ei,aU,CMk,XF3,Qk_,DEk,$E3,gS,RSG,kXa,OU7,iE,ze, hSa,DR,pY,m7,lpC,eSz,E8_,EW,Aw,$s,LC,QR,RU,Dh,uZ_,IXa,Fc,OW,oU,Myk,hw,Aca,qpG,bE,cE,rIa,xs,t54,Mb,vf3,iU3,yIY,pFJ,nY,Zh,Nwz,zGa,fXC,Wz_,Ja,Ij,uy,by,MZ,Aa,d0_,qZ,jnY,vp,Vyz,KE,G2a,pE,gO,rcC,md,Ypm,$0_,zP,CSz,Qn7,TP,SV,sf,$J,RGz,CE,XE,kJ,Of,oj,ha,D0Y,cp,Uf,hGm,xJ,nE,cca,U0a,ta,x0G,nfk,tyC,Zm7,Zd,Hp,Hmo,FBz,JH,bX,we,MV,J8z,AH,qV,vl,aa,ed,bao,Io_,Kc,uaz,wXv,pc,A8z,Mvo,qrm,ge,aoz,vTa,mg,e2k,y5,iX,KBv,gTG,m7G,z9,NV,lX,y8m,fc,z2v,de,NB7,loz,Wl,Ee,jd,G9,ETz,GRG,foJ,jxo,Vv3,WBz,d7k,PfC,BB3,Bl,TBk,Sro,$74, XX7,Cfa,Xy,Cc,Dm,R2m,k7,Oe,oa,kRo,hH,Oa3,D74,cl,c8o,Ue,x7,U7o,nc,x73,tjz,JI_,tvJ,nTm,Hak,ZaY,LBz,Zm,Fp7,Jtz,bkJ,wda,Fx,J9,bh,Atv,aTC,wg,M$,A9,KpJ,edo,Ih,pdm,gZY,mvz,ika,q$,GK3,Kv,pv,SS7,re,YS_,$va,C9k,XdC,Qt_,mw,Rd_,y8,ih,zL,DvJ,fv,kKk,Okz,Ws,dg,oZ7,hda,cta,UvC,xvz,Ed,lh,nZ7,jI,Zk_,HkG,Lpz,GL,Fc_,JMC,bo7,IcJ,uzk,w63,Mov,AMk,qLm,vmJ,V8,euC,Ps,Kc7,TL,gmC,sd,acG,Bs,Yi,$i,Cv,Xx,Q8,Rh,mxz,Dq,yMo,Od,fc3,Emk,jAo,GCC,Voo,cs,PUJ,dx4,lcY,BGv,oh,TG7,SLz,ki,h9,zuk,NGm,Ud,sAa,YLz,WcY,iov,$x7,nv,CUC,t9,Zq,X6v, Hs,Dxo,QAz,Ru3,Lv,kCk,Fo,Ju,b2,Io,OoG,omv,hum,u2,Uxz,xxz,w9,nm7,Md,Au,toa,Zo7,Hoo,Lc3,Ft7,Jgm,M$a,I1J,sxY,v0,qDo,vjm,u1Y,wGa,bWa,K7,gja,e3,ao,AgG,ygm,pGa,Ktk,e0G,a1z,g9,iWo,T9,mV,yO,i2,z04,z1,Ndo,Nd,l1C,Ra,f1o,l2,se,$7,r83,d9,j3,Eja,jZz,G1,P0,EE,W0,T1,f7,WtY,dQa,r9,GFG,V$z,SI,p6v,Sd,S3,PIG,VO,Bd3,Tdz,rgz,SDo,sE,Ya,$a,YDa,$Qk,CIa,XGz,QZ7,rMa,Xo,QO,Ro,C7,DQv,oTz,h2o,D6,kFm,OW3,ojm,h0a,ka,cg7,OE,UQ4,nja,oo,t$_,ZWo,c0,HW3,hu,gC,JPv,F$k,u_3,I7C,wuk,M8m,bHJ,my,Ltm,APC,y1,q7_,e1G,v2G,a73,z6,taG,K$z,puz, g2z,mn7,yPz,NU,lz,fS,iHJ,Wv,dC,z13,E_,NNm,l7Y,jS,f7k,W$z,dno,E2z,G6,vZv,V1,V8o,Pv,GB_,Bv,Pbz,qSm,uh,BN_,T6,SS,S7z,rP7,DJ,O_,kb,Y74,hf,$n_,Cb3,cv,U_,Dnv,Qw4,kB7,OHm,o2z,h1k,cP_,xnz,n2m,t87,Un7,nS,rC,HH_,Xuz,L$C,R1a,tf,Jia,ZH_,xb,bC4,IRa,MEm,aRo,AiY,eCz,v$7,KZm,uRY,ZJ,pC_,wCJ,JX,iCY,N7o,zCm,lRG,fRC,WZv,yi3,dFz,E$v,Hv,jHJ,Gt4,VEC,PrJ,ri_,T7_,B7_,Im,S9_,Y9o,$FC,Cr_,XCo,MS,AX,rg,QH7,RCz,DFk,o$z,OCv,ktz,hCk,UF7,xFk,ciz,FJ,UE,tEk,ZCm,HCC,wEv,Jw4,bYY,Iho,Mi4,qWz,mQo,um,F74,LZ_,Awz,Q5,ucG,qd,Y7,q9a,pEG,K74, gso,mbv,ywo,iYa,sH7,tu,xa,ahC,zLa,eL7,NSv,xQm,lhY,mFY,g$o,vsz,n7,am,eA,W7z,Kj,dbo,Esa,jUz,GeC,Vi_,BSa,TSm,YWG,rwG,sUo,$ba,gr,RL3,XE_,QUa,OYz,osJ,hLa,cwa,Ubo,pj,xbz,kek,CEv,mQ,ns_,SW7,tio,yT,HYk,L7J,Fda,ZYG,im,I6a,bEa,M3k,w0_,uoa,Auo,qEk,z$,vaC,a6m,KVz,p0_,eN3,gaC,N9G,yuJ,i7G,zN_,l6G,f67,WVY,Ea3,ddo,joJ,G1o,V3z,B9_,T9m,SEm,ru4,so_,P23,YEz,C2a,X03,RN_,k1J,Qov,fj,O7a,oa3,$dC,hN3,Ddo,Wg,cuk,UdG,xd7,naz,t3G,Z7z,H7z,Fy7,bSo,IJz,uda,wv7,MSv,Ei,Afo,jA,vbJ,aJm,KyY,Bg,gbz,mUm,yf3,iSJ,NC3,zHJ,Wyz,dUY,T$,SA, lJC,fJz,EbC,YU,G6C,j7z,VS7,Pzo,BCa,S_a,TCY,$Uv,$U,rfk,Cza,Cj,DUJ,QT,Rm,k6m,XJ,OSm,DW,cfG,hHo,Q7C,RHJ,UU_,xUz,nbk,Xvv,tSC,kU,ZS_,obk,pv4,si,LyJ,om,FQ_,JXo,bjY,IWa,uJY,wgv,MAv,AXk,qik,vUa,hX,aWY,era,pgG,gUY,mS4,KQC,yXv,ijG,zr7,Nr7,lW3,xU,fWv,nj,TJ_,WQa,dS3,tX,EUo,jm7,Hg,Pmz,Br7,Lj,rXG,Si7,Trm,VAo,FI,ZW,G$z,IX,bt,smk,ut,JZ,Xg7,DS4,OjJ,oUz,cXG,$SG,k$_,US7,Cm4,xSz,nUm,vO,wo,Zj7,tAG,AZ,FPa,JZY,RrJ,Qmv,LQC,b1_,hrC,Yiz,aX,eL,K1,IxC,p1,vco,ML_,axz,AZa,wOa,eOY,uI7,mg7,KPm,go,yZ7,zOm,lxz,fx7,WPG,jXG,zx,Gx3, dgm,qg,Bo3,ToJ,E$,FZa,mP,rZ7,S$7,Y$G,sXm,$gG,Pto,lt,Ctz,XO_,QXo,DgG,ROa,n$v,kx7,Ng,O1J,hO3,ocz,UgC,cZo,NoG,ncz,xga,f1,yM,tLk,Gx,H1G,LPa,FXC,J2m,bV4,jL,mdm,Ecv,Iga,fha,Mg,uN_,wUv,Mn7,A2Y,qO4,VM,PO,agC,eT7,KXa,v0a,pUz,BO,iVC,maz,y2_,zTz,Tx,NAC,lg_,fga,ro,WX7,E07,jsa,GN7,SL,da3,s$,Yc,Vn4,Pda,XI,$c,C1,BAz,QM,TAa,r2k,SOC,YOk,ssG,hZ,Cdz,XUo,$aY,Qso,cO,RT7,U$,DaY,xc,kNz,OVk,Ua7,c2z,tnY,o0J,xaJ,n1,hTo,n0k,ZVJ,HVk,LXY,FGk,Zx,Jqa,FN,HO,bnC,J2,bd,uG_,ud,wA,wmY,Is,McG,Ma,qbG,Aqa,qa,vU,as,eqa,vro,abo,en,KG3,yqa, grG,pm7,mHa,KV,zqm,fbm,WGJ,pV,dHz,ErJ,Ns_,lbo,Vca,P_J,Bs3,Ts3,rqa,Sba,yl,C_a,id,YbC,$H3,DH3,mX,zN,Na,s9G,Xm3,k4C,ld,fV,On3,orY,hq7,WU,cqk,UHv,xHv,nrG,tcJ,Zn4,HnY,Jd_,LGa,b9C,IB4,wy7,MO4,sO,K9Y,q3a,v3J,py3,g3z,eQz,Adz,m24,i9k,yd_,zQo,E33,$0,VOY,T1a,B1C,P7m,W9a,d27,N1_,lBY,jQ_,CV,XN,S3a,dO,PSC,sQv,Rs,k0,$2J,Y3G,GUa,Xyz,QQJ,RQz,OO,D2a,t2,O9z,o3_,hQk,U24,cdk,x2m,Zg,HU,n3C,H9G,L9k,Jq,Z9o,FWa,JUv,tOa,b_,ws,beY,IuG,u_,ufv,whz,Mez,AUC,vN3,qKm,KWz,ph3,auz,mpz,yU_,eXa,qH,vm,ie4,Nha,a9,zX7,lua,WWY,fuC,dpz,ec, ENk,jza,G3G,Kn,pn,PKC,Vem,Bh7,ThJ,SKG,rUk,szo,YKz,$pk,CKz,Xho,RXY,mG,gs,y$,Dp_,k3Y,Qza,Upa,xpm,nNC,Hez,Zem,tea,LWC,FJm,i_,z4,J74,bRm,IPC,um3,MU4,A7k,l_,qgm,NH,Wm,wnC,vvJ,aPJ,eD_,KJk,pnk,Eb,gvm,mia,zDa,jc,N6m,iRa,G4,V$,lPG,fPv,diz,jLz,WJo,EvG,Bm,G7z,PYz,B67,r77,SgC,T4,rs,sL_,VUo,CYJ,$ik,Ygz,Sc,sb,QLJ,XnG,Yr,$r,RDz,Cn,Dik,k7Y,ORz,XG,ov3,Q$,hDa,R9,Db,xiv,nvC,tU7,HRY,LJv,F0v,ZRk,b43,JFa,INo,Mbz,o9,quz,AFa,u6o,wIa,vE7,aNa,hq,cm,enJ,K0Y,pIC,gEm,mmz,yFa,zn3,Ntv,Vb7,W0a,dm7,lNk,Bt4,Hm,Fi,sBk,IQ,u7,Yu7,TtJ, Zb,Ad,M2,Jd,CjC,q2,QBY,DmG,RnJ,vy,b7,tq,XIa,w1,rF3,$ma,O4G,Ub,aQ,oEJ,hnz,Ln,Suk,eO,K9,cFa,p9,g1,m9,Umk,xmC,tba,Z4k,nEm,yw,L0J,H43,i7,FfG,zU,N2,J0G,bto,IsY,u2a,w_v,A0z,vlY,qcz,M_m,l7,asa,Kfv,e7_,f9,Wy,p_Y,myv,y07,d1,gl7,itk,z7z,NHG,ls3,fsm,Wfo,dy4,jO,GU,jqa,ElJ,Gz7,Vw,Py,V_C,Psv,THa,BH7,r0C,TU,Sc3,sqz,SO,Yca,$yo,CsG,X_o,Qqv,R7z,kzJ,Ot4,olm,DyJ,h7C,c0_,Uy_,xyG,nla,t_7,Zta,Htz,Xi,Lfk,Fna,JKz,u3k,qMv,Mxo,I3Y,DB,wZG,bZm,AKY,k3,a3m,vxk,O3,e93,Kn3,pZm,NS,gx3,Npz,l3C,f3m,oQ,Wnm,cy,bm,dTk,U3,ExJ,hd,jC7,GQ_, SMo,Hy,L9,JU,bK,YMk,sC7,Vx_,Iz,$T_,CNk,QC4,uK,R93,DTC,kQm,Ff,ox7,OZz,wh,Tp_,td,h9C,cKv,UTm,xTY,PNz,Bp3,ZB,nx4,Ln4,Frv,bs3,HZ7,wbo,V5,Pl,LS,qA3,vtG,Ala,aKz,JlG,MFk,txz,eI3,urz,Kr_,IKC,B0,sZk,HjJ,Mp,iz,ZZY,gtz,zI4,qp,NnJ,lKY,ylJ,az,fK4,Wr7,pbv,d3z,isa,Etz,ee,vh,j54,VFo,GYa,AU,BnC,gh,Tn4,Ke,mW,pe,yd,VLv,rlC,YAa,s5z,CZ7,Xb7,$3k,z3,iK,RIv,D3a,kYz,ZsY,U33,x3_,hIk,Fvk,ot3,fe,Ilz,JOm,uMa,wHG,MGo,dh,EK,vh_,qIm,AOv,G3,tFk,T3,e3Y,Bh,je,pHY,yOa,ihG,Lra,gha,sK,z33,ntC,alk,Vd,Nxk,Wh,llY,flz,WvY,Ce,Xf,Kvk,dzJ,Ehv, Qd,Rz,j_z,Ph,bha,GO_,VG7,Pl_,mz_,Bxz,rh,Tx3,Se,eV,rO7,s_C,Du,kN,YIa,$zC,Cla,$N,YN,XHm,SAa,Q_a,R3_,Dza,kO4,OhY,OK,oz,cOm,nhz,Zh3,h3z,wD4,MHa,ATa,q8G,vwv,aEm,eVz,pDz,KlJ,hU,ch,UK,gwz,mAo,yTC,kO,iNk,xN,zV4,ne,tU,fF,Zu,Un,Nva,mz,zxo,lE_,x8,fEo,TA,rM,on,Wl3,dA7,Ew_,jvv,GH3,Hh,P4v,Bv3,Le,J7,bY,Tvk,svC,Y8C,IL,$A3,rTz,S84,C4m,XD4,QvJ,RVo,DAa,uY,ONz,yr7,l6,tV,owz,hVG,Lx,kHY,Vp,cTC,UA7,xAJ,w6,gM,tH7,ZNz,Mi,A7,HNa,qi,LlC,Fm,Fmo,J4Y,REJ,vn,aL,bya,eU,KR,I2a,pR,uOC,g6,mJ,wwo,MC_,gkv,ya,A4k,vH_,q2G,iY,a2C,z7,Ni, ejm,Kma,pwG,gH3,moG,y4C,iy4,NW7,fR,zja,l2z,f2z,Wmo,do_,VCC,EH7,j$k,GW_,BWz,r4C,S2_,s$C,TWC,Wn,Y2o,$o3,Cn4,Xwz,Q$C,Eg,Rjz,jU,G7,Va,DoC,kWa,oHa,hj3,c4z,Uo4,nHk,xoo,tC7,Pn,Bn,Lmv,Zyo,Hyz,T7,F3_,Jmk,r6,SU,bPo,sg,I9C,Yv,uDk,$v,CR,wJk,Xm,Qa,MTk,Am3,RL,DP,qBJ,kv,v1o,a9Y,cn,e_m,K3z,pJ_,ym4,mWz,Ug,iPo,z_3,NzY,dJz,g1a,f9J,W3a,E1z,Fok,aG;bk=function(F){return function(){return Fok[F].apply(this,arguments)}}; g.IG=function(F,J){return Fok[F]=J}; JJa=function(F){var J=0;return function(){return J=this.length))return this[F]}; C3=function(F){return F?F:$C}; yJo=function(F,J,b){F instanceof String&&(F=String(F));for(var I=F.length-1;I>=0;I--){var u=F[I];if(J.call(b,u,I,F))return{zy:I,mZ:u}}return{zy:-1,mZ:void 0}}; X7=function(F){return F?F:function(J,b){return yJo(this,J,b).zy}}; g.RG=function(F,J,b){F=F.split(".");b=b||g.Qz;for(var I;F.length&&(I=F.shift());)F.length||J===void 0?b[I]&&b[I]!==Object.prototype[I]?b=b[I]:b=b[I]={}:b[I]=J}; Om=function(F,J){var b=g.kC("CLOSURE_FLAGS");F=b&&b[F];return F!=null?F:J}; g.kC=function(F,J){F=F.split(".");J=J||g.Qz;for(var b=0;b2){var I=Array.prototype.slice.call(arguments,2);return function(){var u=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(u,I);return F.apply(J,u)}}return function(){return F.apply(J,arguments)}}; g.tJ=function(F,J,b){g.tJ=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?zvC:NYC;return g.tJ.apply(null,arguments)}; g.Ha=function(F,J){var b=Array.prototype.slice.call(arguments,1);return function(){var I=b.slice();I.push.apply(I,arguments);return F.apply(this,I)}}; g.L3=function(){return Date.now()}; lao=function(F){return F}; g.Fb=function(F,J){function b(){} b.prototype=J.prototype;F.k7=J.prototype;F.prototype=new b;F.prototype.constructor=F;F.XY=function(I,u,w){for(var M=Array(arguments.length-2),q=2;qJ&&b.push(Ae(I,1))}); return b}; g.q8=function(F){F&&typeof F.dispose=="function"&&F.dispose()}; g.vk=function(F){for(var J=0,b=arguments.length;J>6|192;else{if(w>=55296&&w<=57343){if(w<=56319&&u=56320&&M<=57343){w=(w-55296)*1024+ M-56320+65536;I[b++]=w>>18|240;I[b++]=w>>12&63|128;I[b++]=w>>6&63|128;I[b++]=w&63|128;continue}else u--}if(J)throw Error("Found an unpaired surrogate");w=65533}I[b++]=w>>12|224;I[b++]=w>>6&63|128}I[b++]=w&63|128}}F=b===I.length?I:I.subarray(0,b)}return F}; N8=function(F){g.Qz.setTimeout(function(){throw F;},0)}; QGa=function(F){return Array.prototype.map.call(F,function(J){J=J.toString(16);return J.length>1?J:"0"+J}).join("")}; Rva=function(F){for(var J=[],b=0;b>6|192:((u&64512)==55296&&I+1>18|240,J[b++]=u>>12&63|128):J[b++]=u>>12|224,J[b++]=u>>6&63|128),J[b++]=u&63|128)}return J}; Wk=function(F,J){return F.lastIndexOf(J,0)==0}; D4J=function(F,J){var b=F.length-J.length;return b>=0&&F.indexOf(J,b)==b}; g.d5=function(F){return/^[\s\xa0]*$/.test(F)}; g.E1=function(F,J){return F.indexOf(J)!=-1}; jm=function(F,J){return g.E1(F.toLowerCase(),J.toLowerCase())}; g.Pk=function(F,J){var b=0;F=GV(String(F)).split(".");J=GV(String(J)).split(".");for(var I=Math.max(F.length,J.length),u=0;b==0&&uJ?1:0}; g.Bk=function(){var F=g.Qz.navigator;return F&&(F=F.userAgent)?F:""}; s1=function(F){return TV||r5?Sm?Sm.brands.some(function(J){return(J=J.brand)&&g.E1(J,F)}):!1:!1}; YL=function(F){return g.E1(g.Bk(),F)}; $L=function(){return TV||r5?!!Sm&&Sm.brands.length>0:!1}; Cz=function(){return $L()?!1:YL("Opera")}; k_J=function(){return $L()?!1:YL("Trident")||YL("MSIE")}; O3v=function(){return $L()?s1("Microsoft Edge"):YL("Edg/")}; Xb=function(){return YL("Firefox")||YL("FxiOS")}; DH=function(){return YL("Safari")&&!(Rb()||($L()?0:YL("Coast"))||Cz()||($L()?0:YL("Edge"))||O3v()||($L()?s1("Opera"):YL("OPR"))||Xb()||YL("Silk")||YL("Android"))}; Rb=function(){return $L()?s1("Chromium"):(YL("Chrome")||YL("CriOS"))&&!($L()?0:YL("Edge"))||YL("Silk")}; oCC=function(){return YL("Android")&&!(Rb()||Xb()||Cz()||YL("Silk"))}; hvY=function(F){var J={};F.forEach(function(b){J[b[0]]=b[1]}); return function(b){return J[b.find(function(I){return I in J})]||""}}; cJa=function(F){var J=g.Bk();if(F==="Internet Explorer"){if(k_J())if((F=/rv: *([\d\.]*)/.exec(J))&&F[1])J=F[1];else{F="";var b=/MSIE +([\d\.]+)/.exec(J);if(b&&b[1])if(J=/Trident\/(\d.\d)/.exec(J),b[1]=="7.0")if(J&&J[1])switch(J[1]){case "4.0":F="8.0";break;case "5.0":F="9.0";break;case "6.0":F="10.0";break;case "7.0":F="11.0"}else F="7.0";else F=b[1];J=F}else J="";return J}var I=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");b=[];for(var u;u=I.exec(J);)b.push([u[1],u[2],u[3]||void 0]); J=hvY(b);switch(F){case "Opera":if(Cz())return J(["Version","Opera"]);if($L()?s1("Opera"):YL("OPR"))return J(["OPR"]);break;case "Microsoft Edge":if($L()?0:YL("Edge"))return J(["Edge"]);if(O3v())return J(["Edg"]);break;case "Chromium":if(Rb())return J(["Chrome","CriOS","HeadlessChrome"])}return F==="Firefox"&&Xb()||F==="Safari"&&DH()||F==="Android Browser"&&oCC()||F==="Silk"&&YL("Silk")?(J=b[2])&&J[1]||"":""}; U4k=function(F){if($L()&&F!=="Silk"){var J=Sm.brands.find(function(b){return b.brand===F}); if(!J||!J.version)return NaN;J=J.version.split(".")}else{J=cJa(F);if(J==="")return NaN;J=J.split(".")}return J.length===0?NaN:Number(J[0])}; kL=function(){return TV||r5?!!Sm&&!!Sm.platform:!1}; x4z=function(){return kL()?Sm.platform==="Android":YL("Android")}; O1=function(){return YL("iPhone")&&!YL("iPod")&&!YL("iPad")}; ob=function(){return O1()||YL("iPad")||YL("iPod")}; he=function(){return kL()?Sm.platform==="macOS":YL("Macintosh")}; nCm=function(){return kL()?Sm.platform==="Windows":YL("Windows")}; g.ck=function(F){return F[F.length-1]}; tz3=function(F,J){var b=F.length,I=typeof F==="string"?F.split(""):F;for(--b;b>=0;--b)b in I&&J.call(void 0,I[b],b,F)}; g.xL=function(F,J,b){J=U1(F,J,b);return J<0?null:typeof F==="string"?F.charAt(J):F[J]}; U1=function(F,J,b){for(var I=F.length,u=typeof F==="string"?F.split(""):F,w=0;w=0;I--)if(I in u&&J.call(b,u[I],I,F))return I;return-1}; g.te=function(F,J){return Z3J(F,J)>=0}; H3G=function(F){if(!Array.isArray(F))for(var J=F.length-1;J>=0;J--)delete F[J];F.length=0}; g.Hk=function(F,J){J=Z3J(F,J);var b;(b=J>=0)&&g.ZH(F,J);return b}; g.ZH=function(F,J){return Array.prototype.splice.call(F,J,1).length==1}; g.Lz=function(F,J){J=U1(F,J);J>=0&&g.ZH(F,J)}; Loo=function(F,J){var b=0;tz3(F,function(I,u){J.call(void 0,I,u,F)&&g.ZH(F,u)&&b++})}; g.FP=function(F){return Array.prototype.concat.apply([],arguments)}; g.JL=function(F){var J=F.length;if(J>0){for(var b=Array(J),I=0;I>>1),v=void 0;b?v=J.call(void 0,F[q],q,F):v=J(I,F[q]);v>0?u=q+1:(w=q,M=!v)}return M?u:-u-1}; g.vW=function(F,J){F.sort(J||ML)}; bz3=function(F,J){var b=ML;g.vW(F,function(I,u){return b(J(I),J(u))})}; g.ay=function(F,J,b){if(!g.ca(F)||!g.ca(J)||F.length!=J.length)return!1;var I=F.length;b=b||IHJ;for(var u=0;uJ?1:F=0})}; g.zw=function(F,J){J===void 0&&(J=0);aHz();J=etC[J];for(var b=Array(Math.floor(F.length/3)),I=J[64]||"",u=0,w=0;u>2];M=J[(M&3)<<4|q>>4];q=J[(q&15)<<2|v>>6];v=J[v&63];b[w++]=""+a+M+q+v}a=0;v=I;switch(F.length-u){case 2:a=F[u+1],v=J[(a&15)<<2]||I;case 1:F=F[u],b[w]=""+J[F>>2]+J[(F&3)<<4|a>>4]+v+I}return b.join("")}; g.NL=function(F,J){if(KRG&&!J)F=g.Qz.btoa(F);else{for(var b=[],I=0,u=0;u255&&(b[I++]=w&255,w>>=8);b[I++]=w}F=g.zw(b,J)}return F}; gLa=function(F){var J=[];pk7(F,function(b){J.push(b)}); return J}; lV=function(F){var J=F.length,b=J*3/4;b%3?b=Math.floor(b):g.E1("=.",F[J-1])&&(b=g.E1("=.",F[J-2])?b-2:b-1);var I=new Uint8Array(b),u=0;pk7(F,function(w){I[u++]=w}); return u!==b?I.subarray(0,u):I}; pk7=function(F,J){function b(v){for(;I>4);M!=64&&(J(w<<4&240|M>>2),q!=64&&J(M<<6&192|q))}}; aHz=function(){if(!ff){ff={};for(var F="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),J=["+/=","+/","-_=","-_.","-_"],b=0;b<5;b++){var I=F.concat(J[b].split(""));etC[b]=I;for(var u=0;u=5||(b[F]=J+1,F=Error(),EL7(F,"incident"),N8(F))}}; Tw=function(F,J,b,I){b=b===void 0?!1:b;F=typeof Symbol==="function"&&typeof Symbol()==="symbol"?(I===void 0?0:I)&&Symbol.for&&F?Symbol.for(F):F!=null?Symbol(F):Symbol():J;b&&GV4.add(F);return F}; sX=function(F,J){ry||SJ in F||Vm3(F,PWa);F[SJ]|=J}; YK=function(F,J){ry||SJ in F||Vm3(F,PWa);F[SJ]=J}; B5o=function(F,J){YK(J,(F|0)&-30975)}; $K=function(F,J){YK(J,(F|34)&-30941)}; Cf=function(){return typeof BigInt==="function"}; XP=function(F){return Array.prototype.slice.call(F)}; De=function(F){return F!==null&&typeof F==="object"&&!Array.isArray(F)&&F.constructor===Object}; T5z=function(F,J){if(F!=null)if(typeof F==="string")F=F?new dy(F,EX):jJ();else if(F.constructor!==dy)if(WW(F))F=F.length?new dy(new Uint8Array(F),EX):jJ();else{if(!J)throw Error();F=void 0}return F}; kK=function(F){if(F&2)throw Error();}; OX=function(F,J){if(typeof J!=="number"||J<0||J>=F.length)throw Error();}; hL=function(F){var J=lao(oy);return J?F[J]:void 0}; UX=function(F){F.kzz=!0;return F}; nf=function(F){var J=F;if(reo(J)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(J))throw Error(String(J));}else if(S1v(J)&&!Number.isSafeInteger(J))throw Error(String(J));return xK?BigInt(F):F=sbY(F)?F?"1":"0":reo(F)?F.trim()||"0":String(F)}; Y1z=function(F,J){if(F.length>J.length)return!1;if(F.lengthu)return!1;if(I>>0;tL=J;Ze=(F-J)/4294967296>>>0}; J_=function(F){if(F<0){Lf(0-F);var J=g.N(Fe(tL,Ze));F=J.next().value;J=J.next().value;tL=F>>>0;Ze=J>>>0}else Lf(F)}; IF=function(F,J){var b=J*4294967296+(F>>>0);return Number.isSafeInteger(b)?b:bv(F,J)}; $8k=function(F,J){var b=J&2147483648;b&&(F=~F+1>>>0,J=~J>>>0,F==0&&(J=J+1>>>0));F=IF(F,J);return typeof F==="number"?b?-F:F:b?"-"+F:F}; bv=function(F,J){J>>>=0;F>>>=0;if(J<=2097151)var b=""+(4294967296*J+F);else Cf()?b=""+(BigInt(J)<>>24|J<<8)&16777215,J=J>>16&65535,F=(F&16777215)+b*6777216+J*6710656,b+=J*8147497,J*=2,F>=1E7&&(b+=F/1E7>>>0,F%=1E7),b>=1E7&&(J+=b/1E7>>>0,b%=1E7),b=J+CWJ(b)+CWJ(F));return b}; CWJ=function(F){F=String(F);return"0000000".slice(F.length)+F}; Xk_=function(){var F=tL,J=Ze;J&2147483648?Cf()?F=""+(BigInt(J|0)<>>0)):(J=g.N(Fe(F,J)),F=J.next().value,J=J.next().value,F="-"+bv(F,J)):F=bv(F,J);return F}; uv=function(F){if(F.length<16)J_(Number(F));else if(Cf())F=BigInt(F),tL=Number(F&BigInt(4294967295))>>>0,Ze=Number(F>>BigInt(32)&BigInt(4294967295));else{var J=+(F[0]==="-");Ze=tL=0;for(var b=F.length,I=0+J,u=(b-J)%6+J;u<=b;I=u,u+=6)I=Number(F.slice(I,u)),Ze*=1E6,tL=tL*1E6+I,tL>=4294967296&&(Ze+=Math.trunc(tL/4294967296),Ze>>>=0,tL>>>=0);J&&(J=g.N(Fe(tL,Ze)),F=J.next().value,J=J.next().value,tL=F,Ze=J)}}; Fe=function(F,J){J=~J;F?F=~F+1:J+=1;return[F,J]}; wU=function(F,J){throw Error(J===void 0?"unexpected value "+F+"!":J);}; Mu=function(F){if(F!=null&&typeof F!=="number")throw Error("Value of float/double field must be a number, found "+typeof F+": "+F);return F}; Qbm=function(F){return F.displayName||F.name||"unknown type name"}; A_=function(F){if(F!=null&&typeof F!=="boolean")throw Error("Expected boolean but got "+oG(F)+": "+F);return F}; v3=function(F){switch(typeof F){case "bigint":return!0;case "number":return qu(F);case "string":return Rt7.test(F);default:return!1}}; D8C=function(F){if(typeof F!=="number")throw PW("int32");if(!qu(F))throw PW("int32");return F|0}; aF=function(F){return F==null?F:D8C(F)}; e2=function(F){if(F==null)return F;if(typeof F==="string"&&F)F=+F;else if(typeof F!=="number")return;return qu(F)?F|0:void 0}; KI=function(F){if(F==null)return F;if(typeof F==="string"&&F)F=+F;else if(typeof F!=="number")return;return qu(F)?F>>>0:void 0}; OzJ=function(F){var J=0;J=J===void 0?0:J;if(!v3(F))throw PW("int64");var b=typeof F;switch(J){case 4096:switch(b){case "string":return gU(F);case "bigint":return String(mL(64,F));default:return yg(F)}case 8192:switch(b){case "string":return J=iv(Number(F)),za(J)?F=nf(J):(J=F.indexOf("."),J!==-1&&(F=F.substring(0,J)),F=Cf()?nf(mL(64,BigInt(F))):nf(kV7(F))),F;case "bigint":return nf(mL(64,F));default:return za(F)?nf(Nu(F)):nf(yg(F))}case 0:switch(b){case "string":return gU(F);case "bigint":return nf(mL(64, F));default:return Nu(F)}default:return wU(J,"Unknown format requested type for int64")}}; lv=function(F){return F==null?F:OzJ(F)}; oLG=function(F){if(F[0]==="-")return!1;var J=F.length;return J<20?!0:J===20&&Number(F.substring(0,6))<184467}; htJ=function(F){var J=F.length;return F[0]==="-"?J<20?!0:J===20&&Number(F.substring(0,7))>-922337:J<19?!0:J===19&&Number(F.substring(0,6))<922337}; ce_=function(F){if(F<0){J_(F);var J=bv(tL,Ze);F=Number(J);return za(F)?F:J}J=String(F);if(oLG(J))return J;J_(F);return IF(tL,Ze)}; kV7=function(F){if(htJ(F))return F;uv(F);return Xk_()}; Nu=function(F){v3(F);F=iv(F);za(F)||(J_(F),F=$8k(tL,Ze));return F}; yg=function(F){v3(F);F=iv(F);if(za(F))F=String(F);else{var J=String(F);htJ(J)?F=J:(J_(F),F=Xk_())}return F}; gU=function(F){v3(F);var J=iv(Number(F));if(za(J))return String(J);J=F.indexOf(".");J!==-1&&(F=F.substring(0,J));return kV7(F)}; U8a=function(F){if(F==null)return F;if(typeof F==="bigint")return fI(F)?F=Number(F):(F=mL(64,F),F=fI(F)?Number(F):String(F)),F;if(v3(F))return typeof F==="number"?Nu(F):gU(F)}; x8z=function(F){if(F==null)return F;var J=typeof F;if(J==="bigint")return String(mL(64,F));if(v3(F)){if(J==="string")return gU(F);if(J==="number")return Nu(F)}}; tmv=function(F){if(F==null)return F;var J=typeof F;if(J==="bigint")return String(nLJ(64,F));if(v3(F)){if(J==="string")return v3(F),J=iv(Number(F)),za(J)&&J>=0?F=String(J):(J=F.indexOf("."),J!==-1&&(F=F.substring(0,J)),oLG(F)||(uv(F),F=bv(tL,Ze))),F;if(J==="number")return v3(F),F=iv(F),F>=0&&za(F)?F:ce_(F)}}; HzJ=function(F){if(F==null||typeof F=="string"||F instanceof dy)return F;if(WW(F))return WW(F)&&BW(Zz4),F}; LRC=function(F){if(typeof F!=="string")throw Error();return F}; W3=function(F){if(F!=null&&typeof F!=="string")throw Error();return F}; dU=function(F){return F==null||typeof F==="string"?F:void 0}; EF=function(F,J){if(!(F instanceof J))throw Error("Expected instanceof "+Qbm(J)+" but got "+(F&&Qbm(F.constructor)));return F}; FF4=function(F,J,b){if(F!=null&&typeof F==="object"&&F.DM===j2)return F;if(Array.isArray(F)){var I=F[SJ]|0,u=I;u===0&&(u|=b&32);u|=b&2;u!==I&&YK(F,u);return new J(F)}}; JLm=function(F){return F}; Ga=function(F){return F}; wWz=function(F,J,b,I){return bfk(F,J,b,I,Iem,uPY)}; qXo=function(F,J,b,I){return bfk(F,J,b,I,MJ4,ALG)}; bfk=function(F,J,b,I,u,w){if(!b.length&&!I)return 0;for(var M=0,q=0,v=0,a=0,e=0,K=b.length-1;K>=0;K--){var p=b[K];I&&K===b.length-1&&p===I||(a++,p!=null&&v++)}if(I)for(var m in I)K=+m,isNaN(K)||(e+=vK_(K),q++,K>M&&(M=K));a=u(a,v)+w(q,M,e);m=v;K=q;p=M;for(var y=e,f=b.length-1;f>=0;f--){var d=b[f];if(!(d==null||I&&f===b.length-1&&d===I)){d=f-J;var G=u(d,m)+w(K,p,y);G=1024||(K--,m++,y-=P.length,M=u(I,m)+w(K,p,y),M1?F-1:0)}; MJ4=function(F,J){return(F>1?F-1:0)+(F-J)*4}; uPY=function(F,J){return F==0?0:9*Math.max(1<<32-Math.clz32(F+F/2-1),4)<=J?F==0?0:F<4?100+(F-1)*16:F<6?148+(F-4)*16:F<12?244+(F-6)*16:F<22?436+(F-12)*19:F<44?820+(F-22)*17:52+32*F:40+4*J}; Iem=function(F){return 40+4*F}; vK_=function(F){return F>=100?F>=1E4?Math.ceil(Math.log10(1+F)):F<1E3?3:4:F<10?1:2}; ae7=function(F,J,b){var I=XP(F),u=I.length,w=J&256?I[u-1]:void 0;u+=w?-1:0;for(J=J&512?1:0;J0;b=J-1)if(q=F[b],q==null)J--,u=!0;else if(b-=w,b>=M)u=void 0,((u=I)!=null?u:I={})[b]=q,J--,u=!0;else break;u&&(F.length=J);I&&F.push(I)}return F}; mLC=function(F){switch(typeof F){case "boolean":return Ta||(Ta=[0,void 0,!0]);case "number":return F>0?void 0:F===0?gK3||(gK3=[0,void 0]):[-F,void 0];case "string":return[0,F];case "object":return F}}; sF=function(F,J,b){F=S2(F,J[0],J[1],b?1:2);J!==Ta&&b&&sX(F,16384);return F}; S2=function(F,J,b,I){if(F==null){var u=96;b?(F=[b],u|=512):F=[];J&&(u=u&-33521665|(J&1023)<<15)}else{if(!Array.isArray(F))throw Error("narr");u=F[SJ]|0;16384&u||!(64&u)||2&u||yLa();if(u&2048)throw Error("farr");if(u&64)return F;I===1||I===2||(u|=64);if(b&&(u|=512,b!==F[0]))throw Error("mid");a:{b=F;var w=b.length;if(w){var M=w-1;I=b[M];if(De(I)){u|=256;J=u&512?0:-1;M-=J;if(M>=1024)throw Error("pvtlmt");for(var q in I)w=+q,w1024)throw Error("spvt");u=u&-33521665|(q&1023)<<15}}}YK(F,u);return F}; yLa=function(){BW(ifG)}; zmY=function(F,J,b){b=b===void 0?$K:b;if(F!=null){if(fH_&&F instanceof Uint8Array)return J?F:new Uint8Array(F);if(Array.isArray(F)){var I=F[SJ]|0;if(I&2)return F;J&&(J=I===0||!!(I&32)&&!(I&64||!(I&16)));return J?(YK(F,I|34),I&4&&Object.freeze(F),F):Vg(F,zmY,I&4?$K:b,!0,!0)}F.DM===j2&&(b=F.Z7,I=b[SJ]|0,F=I&2?F:new F.constructor(Yp(b,I,!0)));return F}}; Yp=function(F,J,b){var I=b||J&2?$K:B5o,u=!!(J&32);F=ae7(F,J,function(w){return zmY(w,u,I)}); sX(F,32|(b?2:0));return F}; $p=function(F){var J=F.Z7,b=J[SJ]|0;return b&2?new F.constructor(Yp(J,b,!1)):F}; Xe=function(F,J){F=F.Z7;return CI(F,F[SJ]|0,J)}; CI=function(F,J,b){if(b===-1)return null;var I=b+(J&512?0:-1),u=F.length-1;if(I>=u&&J&256)return F[u][b];if(I<=u)return F[I]}; RF=function(F,J,b){var I=F.Z7,u=I[SJ]|0;kK(u);Qg(I,u,J,b);return F}; Qg=function(F,J,b,I){var u=J&512?0:-1,w=b+u,M=F.length-1;if(w>=M&&J&256)return F[M][b]=I,J;if(w<=M)return F[w]=I,J;I!==void 0&&(M=J>>15&1023||536870912,b>=M?I!=null&&(w={},F[M+u]=(w[b]=I,w),J|=256,YK(F,J)):F[w]=I);return J}; c3=function(F,J,b,I,u){var w=F.Z7;F=w[SJ]|0;var M=2&F?1:I;u=!!u;I=Dz(w,F,J);var q=I[SJ]|0;if(!(4&q)){4&q&&(I=XP(I),q=kp(q,F),F=Qg(w,F,J,I));for(var v=0,a=0;v "+F)}; fG=function(F){if(typeof F==="string")return{buffer:lH7(F),gk:!1};if(Array.isArray(F))return{buffer:new Uint8Array(F),gk:!1};if(F.constructor===Uint8Array)return{buffer:F,gk:!1};if(F.constructor===ArrayBuffer)return{buffer:new Uint8Array(F),gk:!1};if(F.constructor===dy)return{buffer:Gw(F)||new Uint8Array(0),gk:!0};if(F instanceof Uint8Array)return{buffer:new Uint8Array(F.buffer,F.byteOffset,F.byteLength),gk:!1};throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, a ByteString or an Array of numbers"); }; Gwz=function(F,J){this.U=null;this.D=!1;this.C=this.T=this.Z=0;this.init(F,void 0,void 0,J)}; d4=function(F){var J=0,b=0,I=0,u=F.U,w=F.C;do{var M=u[w++];J|=(M&127)<32&&(b|=(M&127)>>4);for(I=3;I<32&&M&128;I+=7)M=u[w++],b|=(M&127)<>>0,b>>>0);throw NX();}; Wo=function(F,J){F.C=J;if(J>F.T)throw jy_(F.T,J);}; Eq=function(F){var J=F.U,b=F.C,I=J[b++],u=I&127;if(I&128&&(I=J[b++],u|=(I&127)<<7,I&128&&(I=J[b++],u|=(I&127)<<14,I&128&&(I=J[b++],u|=(I&127)<<21,I&128&&(I=J[b++],u|=I<<28,I&128&&J[b++]&128&&J[b++]&128&&J[b++]&128&&J[b++]&128&&J[b++]&128)))))throw NX();Wo(F,b);return u}; jD=function(F){var J=F.U,b=F.C,I=J[b+0],u=J[b+1],w=J[b+2];J=J[b+3];Wo(F,F.C+4);return(I<<0|u<<8|w<<16|J<<24)>>>0}; Gb=function(F){var J=jD(F);F=jD(F);return IF(J,F)}; VH=function(F){var J=jD(F),b=jD(F);F=(b>>31)*2+1;var I=b>>>20&2047;J=4294967296*(b&1048575)+J;return I==2047?J?NaN:F*Infinity:I==0?F*4.9E-324*J:F*Math.pow(2,I-1075)*(J+4503599627370496)}; Po=function(F){for(var J=0,b=F.C,I=b+10,u=F.U;bF.T)throw jy_(J,F.T-b);F.C=I;return b}; ByJ=function(F,J){if(J==0)return jJ();var b=VJ4(F,J);F.FJ&&F.D?b=F.U.subarray(b,b+J):(F=F.U,J=b+J,b=b===J?new Uint8Array(0):PVm?F.slice(b,J):new Uint8Array(F.subarray(b,J)));return b.length==0?jJ():new dy(b,EX)}; Tb=function(F,J){if(Bo.length){var b=Bo.pop();b.init(F,void 0,void 0,J);F=b}else F=new Gwz(F,J);this.C=F;this.T=this.C.C;this.U=this.Z=-1;Tym(this,J)}; Tym=function(F,J){J=J===void 0?{}:J;F.u6=J.u6===void 0?!1:J.u6}; rLm=function(F){var J=F.C;if(J.C==J.T)return!1;F.T=F.C.C;var b=Eq(F.C)>>>0;J=b>>>3;b&=7;if(!(b>=0&&b<=5))throw EKG(b,F.T);if(J<1)throw Error("Invalid field number: "+J+" (at position "+F.T+")");F.Z=J;F.U=b;return!0}; r4=function(F){switch(F.U){case 0:F.U!=0?r4(F):Po(F.C);break;case 1:F=F.C;Wo(F,F.C+8);break;case 2:if(F.U!=2)r4(F);else{var J=Eq(F.C)>>>0;F=F.C;Wo(F,F.C+J)}break;case 5:F=F.C;Wo(F,F.C+4);break;case 3:J=F.Z;do{if(!rLm(F))throw Error("Unmatched start-group tag: stream EOF");if(F.U==4){if(F.Z!=J)throw Error("Unmatched end-group tag");break}r4(F)}while(1);break;default:throw EKG(F.U,F.T);}}; SD=function(F,J,b){var I=F.C.T,u=Eq(F.C)>>>0,w=F.C.C+u,M=w-I;M<=0&&(F.C.T=w,b(J,F,void 0,void 0,void 0),M=w-F.C.C);if(M)throw Error("Message parsing ended unexpectedly. Expected to read "+(u+" bytes, instead read "+(u-M)+" bytes, either the data ended unexpectedly or the message misreported its own length"));F.C.C=w;F.C.T=I}; $4=function(F){var J=Eq(F.C)>>>0;F=F.C;var b=VJ4(F,J);F=F.U;if(SXm){var I=F,u;(u=sq)||(u=sq=new TextDecoder("utf-8",{fatal:!0}));J=b+J;I=b===0&&J===I.length?I:I.subarray(b,J);try{var w=u.decode(I)}catch(a){if(Y4===void 0){try{u.decode(new Uint8Array([128]))}catch(e){}try{u.decode(new Uint8Array([97])),Y4=!0}catch(e){Y4=!1}}!Y4&&(sq=void 0);throw a;}}else{w=b;J=w+J;b=[];for(var M=null,q,v;w=J?zV():(v=F[w++],q<194||(v&192)!==128?(w--,zV()):b.push((q&31)<<6|v&63)): q<240?w>=J-1?zV():(v=F[w++],(v&192)!==128||q===224&&v<160||q===237&&v>=160||((u=F[w++])&192)!==128?(w--,zV()):b.push((q&15)<<12|(v&63)<<6|u&63)):q<=244?w>=J-2?zV():(v=F[w++],(v&192)!==128||(q<<28)+(v-144)>>30!==0||((u=F[w++])&192)!==128||((I=F[w++])&192)!==128?(w--,zV()):(q=(q&7)<<18|(v&63)<<12|(u&63)<<6|I&63,q-=65536,b.push((q>>10&1023)+55296,(q&1023)+56320))):zV(),b.length>=8192&&(M=sGJ(M,b),b.length=0);w=sGJ(M,b)}return w}; syY=function(F){var J=Eq(F.C)>>>0;return ByJ(F.C,J)}; CG=function(F,J,b){this.Z7=S2(F,J,b)}; YXv=function(F,J){if(J==null||J=="")return new F;J=JSON.parse(J);if(!Array.isArray(J))throw Error("dnarr");sX(J,32);return new F(J)}; XW=function(F,J){this.U=F>>>0;this.C=J>>>0}; CVa=function(F){if(!F)return $LG||($LG=new XW(0,0));if(!/^\d+$/.test(F))return null;uv(F);return new XW(tL,Ze)}; QH=function(F,J){this.U=F>>>0;this.C=J>>>0}; Qyz=function(F){if(!F)return XWz||(XWz=new QH(0,0));if(!/^-?\d+$/.test(F))return null;uv(F);return new QH(tL,Ze)}; RM=function(){this.C=[]}; Dw=function(F,J,b){for(;b>0||J>127;)F.C.push(J&127|128),J=(J>>>7|b<<25)>>>0,b>>>=7;F.C.push(J)}; k4=function(F,J){for(;J>127;)F.C.push(J&127|128),J>>>=7;F.C.push(J)}; Rmz=function(F,J){if(J>=0)k4(F,J);else{for(var b=0;b<9;b++)F.C.push(J&127|128),J>>=7;F.C.push(1)}}; Oq=function(F,J){F.C.push(J>>>0&255);F.C.push(J>>>8&255);F.C.push(J>>>16&255);F.C.push(J>>>24&255)}; DL_=function(){this.T=[];this.U=0;this.C=new RM}; oM=function(F,J){J.length!==0&&(F.T.push(J),F.U+=J.length)}; kwm=function(F,J){hx(F,J,2);J=F.C.end();oM(F,J);J.push(F.U);return J}; Of3=function(F,J){var b=J.pop();for(b=F.U+F.C.length()-b;b>127;)J.push(b&127|128),b>>>=7,F.U++;J.push(b);F.U++}; hx=function(F,J,b){k4(F.C,J*8+b)}; oK4=function(F,J,b){if(b!=null){switch(typeof b){case "string":CVa(b)}hx(F,J,1);switch(typeof b){case "number":F=F.C;Lf(b);Oq(F,tL);Oq(F,Ze);break;case "bigint":b=BigInt.asUintN(64,b);b=new XW(Number(b&BigInt(4294967295)),Number(b>>BigInt(32)));F=F.C;J=b.C;Oq(F,b.U);Oq(F,J);break;default:b=CVa(b),F=F.C,J=b.C,Oq(F,b.U),Oq(F,J)}}}; co=function(F,J,b){hx(F,J,2);k4(F.C,b.length);oM(F,F.C.end());oM(F,b)}; Uq=function(){function F(){throw Error();} Object.setPrototypeOf(F,F.prototype);return F}; nG=function(F,J,b){this.e8=F;this.ZH=J;F=lao(x4);this.C=!!F&&b===F||!1}; tx=function(F,J){var b=b===void 0?x4:b;return new nG(F,J,b)}; cL4=function(F,J,b,I,u){J=hmo(J,I);J!=null&&(b=kwm(F,b),u(J,F),Of3(F,b))}; LG=function(F,J,b,I){var u=I[F];if(u)return u;u={};u.RzQ=I;u.q8=mLC(I[0]);var w=I[1],M=1;w&&w.constructor===Object&&(u.extensions=w,w=I[++M],typeof w==="function"&&(u.ri=!0,Zw!=null||(Zw=w),Ho!=null||(Ho=I[M+1]),w=I[M+=2]));for(var q={};w&&Array.isArray(w)&&w.length&&typeof w[0]==="number"&&w[0]>0;){for(var v=0;v>BigInt(32)));Dw(F.C,b.U,b.C);break;default:b=Qyz(J),Dw(F.C,b.U,b.C)}}}; p5=function(F,J,b){J=e2(J);J!=null&&J!=null&&(hx(F,b,0),Rmz(F.C,J))}; Iz_=function(F,J,b){J=J==null||typeof J==="boolean"?J:typeof J==="number"?!!J:void 0;J!=null&&(hx(F,b,0),F.C.C.push(J?1:0))}; ueG=function(F,J,b){J=dU(J);J!=null&&co(F,b,Xao(J))}; w34=function(F,J,b,I,u){J=hmo(J,I);J!=null&&(b=kwm(F,b),u(J,F),Of3(F,b))}; M2o=function(F){return function(){var J=new DL_;FLz(this.Z7,J,LG(w3,uw,M9,F));oM(J,J.C.end());for(var b=new Uint8Array(J.U),I=J.T,u=I.length,w=0,M=0;M>>31)&4294967295;K=u[0];var y=u[1],f=u[2],d=u[3],G=u[4];for(m=0;m<80;m++){if(m<40)if(m<20){var P=d^y&(f^d);var r=1518500249}else P=y^f^d,r=1859775393;else m<60?(P=y&f|d&(y|f),r=2400959708):(P=y^f^d,r=3395469782);P=((K<<5|K>>>27)&4294967295)+P+G+r+p[m]&4294967295;G=d;d=f;f=(y<<30|y>>>2)&4294967295;y=K;K=P}u[0]=u[0]+K&4294967295;u[1]=u[1]+y&4294967295;u[2]= u[2]+f&4294967295;u[3]=u[3]+d&4294967295;u[4]=u[4]+G&4294967295} function b(K,p){if(typeof K==="string"){K=unescape(encodeURIComponent(K));for(var m=[],y=0,f=K.length;y=56;m--)w[m]=p&255,p>>>=8;J(w);for(m=p=0;m<5;m++)for(var y=24;y>=0;y-=8)K[p++]=u[m]>>y&255;return K} for(var u=[],w=[],M=[],q=[128],v=1;v<64;++v)q[v]=0;var a,e;F();return{reset:F,update:b,digest:I,WK:function(){for(var K=I(),p="",m=0;m4);u++)J[c9(F[u])]||(b+="\nInner error "+I++ +": ",F[u].stack&&F[u].stack.indexOf(F[u].toString())==0||(b+=typeof F[u]==="string"?F[u]:F[u].message+"\n"),b+=o0(F[u],J));u")!=-1&&(F=F.replace(r_z,">")),F.indexOf('"')!=-1&&(F=F.replace(SFa,""")),F.indexOf("'")!=-1&&(F=F.replace(sFv,"'")),F.indexOf("\x00")!=-1&&(F=F.replace(YFz,"�")));return F}; g.Zi=function(F){return F==null?"":String(F)}; H9=function(F){for(var J=0,b=0;b>>0;return J}; L5=function(F){var J=Number(F);return J==0&&g.d5(F)?NaN:J}; $u7=function(F){return String(F).replace(/\-([a-z])/g,function(J,b){return b.toUpperCase()})}; Cvk=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; X3o=function(F){return F.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(J,b,I){return b+I.toUpperCase()})}; QFm=function(F){var J=1;F=F.split(":");for(var b=[];J>0&&F.length;)b.push(F.shift()),J--;F.length&&b.push(F.join(":"));return b}; Fl=function(F){this.C=F||{cookie:""}}; JD=function(F){F=(F.C.cookie||"").split(";");for(var J=[],b=[],I,u,w=0;w/g,">").replace(/"/g,""").replace(/'/g,"'");return Y_(F)}; xu4=function(F){var J=$M("");return Y_(F.map(function(b){return $_($M(b))}).join($_(J).toString()))}; LLC=function(F){var J;if(!npC.test("div"))throw Error("");if(t27.indexOf("DIV")!==-1)throw Error("");var b="":(F=xu4(J.map(function(I){return I instanceof sQ?I:$M(String(I))})),b+=">"+F.toString()+""); return Y_(b)}; ZIa=function(F){for(var J="",b=Object.keys(F),I=0;I2&&Axz(u,M,I,2);return M}; Axz=function(F,J,b,I){function u(q){q&&J.appendChild(typeof q==="string"?F.createTextNode(q):q)} for(;I0)u(w);else{a:{if(w&&typeof w.length=="number"){if(g.Um(w)){var M=typeof w.item=="function"||typeof w.item=="string";break a}if(typeof w==="function"){M=typeof w.item=="function";break a}}M=!1}g.gy(M?g.JL(w):w,u)}}}; g.H1=function(F){return tD(document,F)}; tD=function(F,J){J=String(J);F.contentType==="application/xhtml+xml"&&(J=J.toLowerCase());return F.createElement(J)}; g.L$=function(F){return document.createTextNode(String(F))}; g.F9=function(F,J){F.appendChild(J)}; g.J6=function(F){for(var J;J=F.firstChild;)F.removeChild(J)}; bB=function(F,J,b){F.insertBefore(J,F.childNodes[b]||null)}; g.ID=function(F){return F&&F.parentNode?F.parentNode.removeChild(F):null}; g.uB=function(F,J){if(!F||!J)return!1;if(F.contains&&J.nodeType==1)return F==J||F.contains(J);if(typeof F.compareDocumentPosition!="undefined")return F==J||!!(F.compareDocumentPosition(J)&16);for(;J&&F!=J;)J=J.parentNode;return J==F}; Xl=function(F){return F.nodeType==9?F:F.ownerDocument||F.document}; g.wK=function(F,J){if("textContent"in F)F.textContent=J;else if(F.nodeType==3)F.data=String(J);else if(F.firstChild&&F.firstChild.nodeType==3){for(;F.lastChild!=F.firstChild;)F.removeChild(F.lastChild);F.firstChild.data=String(J)}else g.J6(F),F.appendChild(Xl(F).createTextNode(String(J)))}; v4k=function(F){return F.tagName=="A"&&F.hasAttribute("href")||F.tagName=="INPUT"||F.tagName=="TEXTAREA"||F.tagName=="SELECT"||F.tagName=="BUTTON"?!F.disabled&&(!F.hasAttribute("tabindex")||qqa(F)):F.hasAttribute("tabindex")&&qqa(F)}; qqa=function(F){F=F.tabIndex;return typeof F==="number"&&F>=0&&F<32768}; A6=function(F,J,b){if(!J&&!b)return null;var I=J?String(J).toUpperCase():null;return MI(F,function(u){return(!I||u.nodeName==I)&&(!b||typeof u.className==="string"&&g.te(u.className.split(/\s+/),b))},!0)}; MI=function(F,J,b){F&&!b&&(F=F.parentNode);for(b=0;F;){if(J(F))return F;F=F.parentNode;b++}return null}; C$=function(F){this.C=F||g.Qz.document||document}; qI=function(F){this.Z7=S2(F)}; vz=function(F){this.Z7=S2(F)}; aD=function(F){this.Z7=S2(F)}; awo=function(F,J){vo(F,vz,1,J)}; eX=function(F){this.Z7=S2(F)}; KCa=function(F,J){J=J===void 0?elz:J;if(!Kb){var b;F=(b=F.navigator)==null?void 0:b.userAgentData;if(!F||typeof F.getHighEntropyValues!=="function"||F.brands&&typeof F.brands.map!=="function")return Promise.reject(Error("UACH unavailable"));b=(F.brands||[]).map(function(u){var w=new vz;w=yH(w,1,u.brand);return yH(w,2,u.version)}); awo(RF(pb,2,A_(F.mobile)),b);Kb=F.getHighEntropyValues(J)}var I=new Set(J);return Kb.then(function(u){var w=pb.clone();I.has("platform")&&yH(w,3,u.platform);I.has("platformVersion")&&yH(w,4,u.platformVersion);I.has("architecture")&&yH(w,5,u.architecture);I.has("model")&&yH(w,6,u.model);I.has("uaFullVersion")&&yH(w,7,u.uaFullVersion);return w}).catch(function(){return pb.clone()})}; gK=function(F){this.Z7=S2(F)}; po4=function(F){this.Z7=S2(F)}; yx=function(F){this.Z7=S2(F,4)}; iB=function(F){this.Z7=S2(F,36)}; zE=function(F){this.Z7=S2(F,19)}; NI=function(F,J){this.Wc=J=J===void 0?!1:J;this.uach=this.locale=null;this.U=0;this.isFinal=!1;this.C=new zE;Number.isInteger(F)&&this.C.Cf(F);J||(this.locale=document.documentElement.getAttribute("lang"));g4z(this,new gK)}; g4z=function(F,J){Ax(F.C,gK,1,J);g4(J,1)||zb(J,1,1);F.Wc||(J=fb(F),pG(J,5)||yH(J,5,F.locale));F.uach&&(J=fb(F),MX(J,aD,9)||Ax(J,aD,9,F.uach))}; mX_=function(F,J){F.U=J}; yx7=function(F){var J=J===void 0?elz:J;var b=F.Wc?void 0:n$();b?KCa(b,J).then(function(I){F.uach=I;I=fb(F);Ax(I,aD,9,F.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)}; fb=function(F){F=MX(F.C,gK,1);var J=MX(F,eX,11);J||(J=new eX,Ax(F,eX,11,J));return J}; iGz=function(F){return g.xM?"webkit"+F:F.toLowerCase()}; g.Wz=function(F,J,b,I){this.Z=F;this.D=J;this.C=this.T=F;this.W=b||0;this.V=I||2}; g.dK=function(F){F.C=Math.min(F.D,F.C*F.V);F.T=Math.min(F.D,F.C+(F.W?Math.round(F.W*(Math.random()-.5)*2*F.C):0));F.U++}; zlY=function(F){this.Z7=S2(F,8)}; N47=function(F){this.Z7=S2(F)}; jX=function(F){g.R.call(this);var J=this;this.componentId="";this.C=[];this.qf="";this.pageId=null;this.dD=this.Gj=-1;this.V=this.experimentIds=null;this.Tj=this.eE=this.W=this.Z=0;this.zj=1;this.timeoutMillis=0;this.kQ=!1;this.logSource=F.logSource;this.o3=F.o3||function(){}; this.T=new NI(F.logSource,F.Wc);this.network=F.network||null;this.gM=F.gM||null;this.Y=F.mEQ||null;this.sessionIndex=F.sessionIndex||null;this.aU=F.aU||!1;this.logger=null;this.withCredentials=!F.aJ;this.Wc=F.Wc||!1;this.N=!this.Wc&&!!n$()&&!!n$().navigator&&n$().navigator.sendBeacon!==void 0;this.fW=typeof URLSearchParams!=="undefined"&&!!(new URL(EP())).searchParams&&!!(new URL(EP())).searchParams.set;var b=zb(new gK,1,1);g4z(this.T,b);this.D=new g.Wz(1E4,3E5,.1);F=lwa(this,F.XA);this.U=new ue(this.D.getValue(), F);this.WN=new ue(6E5,F);this.aU||this.WN.start();this.Wc||(document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&J.i6()}),document.addEventListener("pagehide",this.i6.bind(this)))}; lwa=function(F,J){return F.fW?J?function(){J().then(function(){F.flush()})}:function(){F.flush()}:function(){}}; fwz=function(F){F.Y||(F.Y=EP());try{return(new URL(F.Y)).toString()}catch(J){return(new URL(F.Y,n$().location.origin)).toString()}}; WCa=function(F,J,b){b=b===void 0?F.o3():b;var I={},u=new URL(fwz(F));b&&(I.Authorization=b);F.sessionIndex&&(I["X-Goog-AuthUser"]=F.sessionIndex,u.searchParams.set("authuser",F.sessionIndex));F.pageId&&(Object.defineProperty(I,"X-Goog-PageId",{value:F.pageId}),u.searchParams.set("pageId",F.pageId));return{url:u.toString(),body:J,Sw:1,requestHeaders:I,requestType:"POST",withCredentials:F.withCredentials,timeoutMillis:F.timeoutMillis}}; E4_=function(F){dXv(F,function(J,b){J=new URL(J);J.searchParams.set("format","json");var I=!1;try{I=n$().navigator.sendBeacon(J.toString(),b.G7())}catch(u){}I||(F.N=!1);return I})}; dXv=function(F,J){if(F.C.length!==0){var b=new URL(fwz(F));b.searchParams.delete("format");var I=F.o3();I&&b.searchParams.set("auth",I);b.searchParams.set("authuser",F.sessionIndex||"0");for(I=0;I<10&&F.C.length;++I){var u=F.C.slice(0,32),w=F.T.build(u,F.Z,F.W,F.gM,F.eE,F.Tj);if(!J(b.toString(),w)){++F.W;break}F.Z=0;F.W=0;F.eE=0;F.Tj=0;F.C=F.C.slice(u.length)}F.U.enabled&&F.U.stop()}}; EP=function(){return"https://play.google.com/log?format=json&hasfast=true"}; GE=function(){this.Xo=typeof AbortController!=="undefined"}; Vx=function(F,J){g.R.call(this);this.logSource=F;this.sessionIndex=J;this.x6="https://play.google.com/log?format=json&hasfast=true";this.U=null;this.Z=!1;this.network=null;this.componentId="";this.C=this.gM=null;this.T=!1;this.pageId=null}; jM7=function(F,J){F.U=J;return F}; GbJ=function(F,J){F.network=J;return F}; VDv=function(F,J){F.C=J}; PPa=function(F){F.T=!0;return F}; Pz=function(F,J,b,I,u,w,M){F=F===void 0?-1:F;J=J===void 0?"":J;b=b===void 0?"":b;I=I===void 0?!1:I;u=u===void 0?"":u;g.R.call(this);this.logSource=F;this.componentId=J;w?J=w:(F=new Vx(F,"0"),F.componentId=J,g.k(this,F),b!==""&&(F.x6=b),I&&(F.Z=!0),u&&jM7(F,u),M&&GbJ(F,M),J=F.build());this.C=J}; B4z=function(F){this.C=F}; Bz=function(F,J,b){this.U=F;this.Z=J;this.fields=b||[];this.C=new Map}; eWm=function(F){return F.fields.map(function(J){return J.fieldType})}; azG=function(F){return F.fields.map(function(J){return J.fieldName})}; TE=function(F,J){Bz.call(this,F,3,J)}; rK=function(F,J){Bz.call(this,F,2,J)}; g.SX=function(F,J){this.type=F;this.currentTarget=this.target=J;this.defaultPrevented=this.U=!1}; sP=function(F,J){g.SX.call(this,F?F.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.C=null;F&&this.init(F,J)}; Ye=function(F){return!(!F||!F[T4C])}; Sqv=function(F,J,b,I,u){this.listener=F;this.proxy=null;this.src=J;this.type=b;this.capture=!!I;this.eF=u;this.key=++rxC;this.removed=this.Ux=!1}; $e=function(F){F.removed=!0;F.listener=null;F.proxy=null;F.src=null;F.eF=null}; Cb=function(F){this.src=F;this.listeners={};this.C=0}; g.X9=function(F,J){var b=J.type;b in F.listeners&&g.Hk(F.listeners[b],J)&&($e(J),F.listeners[b].length==0&&(delete F.listeners[b],F.C--))}; Qx=function(F,J,b,I){for(var u=0;u1)));M=M.next)u||(w=M);u&&(b.C==0&&I==1?Ii_(b,J):(w?(I=w,I.next==b.Z&&(b.Z=I),I.next=I.next.next):uvv(b),w9z(b,u,3,J)))}F.T=null}else pu(F,3,J)}; zq=function(F,J){F.U||F.C!=2&&F.C!=3||MpG(F);F.Z?F.Z.next=J:F.U=J;F.Z=J}; AQJ=function(F,J,b,I){var u=mI(null,null,null);u.C=new g.gb(function(w,M){u.T=J?function(q){try{var v=J.call(I,q);w(v)}catch(a){M(a)}}:w; u.U=b?function(q){try{var v=b.call(I,q);v===void 0&&q instanceof l5?M(q):w(v)}catch(a){M(a)}}:M}); u.C.T=F;zq(F,u);return u.C}; pu=function(F,J,b){F.C==0&&(F===b&&(J=3,b=new TypeError("Promise cannot resolve to itself")),F.C=1,ZGa(b,F.BqD,F.vjQ,F)||(F.V=b,F.C=J,F.T=null,MpG(F),J!=3||b instanceof l5||w1o(F,b)))}; ZGa=function(F,J,b,I){if(F instanceof g.gb)return b53(F,J,b,I),!0;if(F)try{var u=!!F.$goog_Thenable}catch(M){u=!1}else u=!1;if(u)return F.then(J,b,I),!0;if(g.Um(F))try{var w=F.then;if(typeof w==="function")return Mqv(F,w,J,b,I),!0}catch(M){return b.call(I,M),!0}return!1}; Mqv=function(F,J,b,I,u){function w(v){q||(q=!0,I.call(u,v))} function M(v){q||(q=!0,b.call(u,v))} var q=!1;try{J.call(F,M,w)}catch(v){w(v)}}; MpG=function(F){F.W||(F.W=!0,g.qf(F.YV,F))}; uvv=function(F){var J=null;F.U&&(J=F.U,F.U=J.next,J.next=null);F.U||(F.Z=null);return J}; w9z=function(F,J,b,I){if(b==3&&J.U&&!J.Z)for(;F&&F.D;F=F.T)F.D=!1;if(J.C)J.C.T=null,ADG(J,b,I);else try{J.Z?J.T.call(J.context):ADG(J,b,I)}catch(u){qaz.call(null,u)}DXC(tDv,J)}; ADG=function(F,J,b){J==2?F.T.call(F.context,b):F.U&&F.U.call(F.context,b)}; w1o=function(F,J){F.D=!0;g.qf(function(){F.D&&qaz.call(null,J)})}; l5=function(F){iW.call(this,F)}; Fkz=function(F,J,b){this.promise=F;this.resolve=J;this.reject=b}; g.fu=function(F,J){g.Zr.call(this);this.gg=F||1;this.tM=J||g.Qz;this.GD=(0,g.tJ)(this.EjN,this);this.k9=g.L3()}; g.Wj=function(F,J,b){if(typeof F==="function")b&&(F=(0,g.tJ)(F,b));else if(F&&typeof F.handleEvent=="function")F=(0,g.tJ)(F.handleEvent,F);else throw Error("Invalid listener argument");return Number(J)>2147483647?-1:g.Qz.setTimeout(F,J||0)}; db=function(F,J){var b=null;return(new g.gb(function(I,u){b=g.Wj(function(){I(J)},F); b==-1&&u(Error("Failed to schedule timer."))})).rX(function(I){g.Qz.clearTimeout(b); throw I;})}; g.Es=function(F){g.R.call(this);this.V=F;this.Z=0;this.T=100;this.D=!1;this.U=new Map;this.W=new Set;this.flushInterval=3E4;this.C=new g.fu(this.flushInterval);this.C.listen("tick",this.AM,!1,this);g.k(this,this.C)}; vMo=function(F){F.C.enabled||F.C.start();F.Z++;F.Z>=F.T&&F.AM()}; a8C=function(F,J){return F.W.has(J)?void 0:F.U.get(J)}; e64=function(F){for(var J=0;J=0){var w=F[b].substring(0,I);u=F[b].substring(I+1)}else w=F[b];J(w,u?n5(u):"")}}}; Rc=function(F,J){if(!J)return F;var b=F.indexOf("#");b<0&&(b=F.length);var I=F.indexOf("?");if(I<0||I>b){I=b;var u=""}else u=F.substring(I+1,b);F=[F.slice(0,I),u,F.slice(b)];b=F[1];F[1]=J?b?b+"&"+J:J:b;return F[0]+(F[1]?"?"+F[1]:"")+F[2]}; DL=function(F,J,b){if(Array.isArray(J))for(var I=0;I=0&&Jb)u=b;I+=J.length+1;return n5(F.slice(I,u!==-1?u:0))}; cj=function(F,J){for(var b=F.search(jfm),I=0,u,w=[];(u=EMv(F,I,J,b))>=0;)w.push(F.substring(I,u)),I=Math.min(F.indexOf("&",u)+1||b,b);w.push(F.slice(I));return w.join("").replace(Gov,"$1")}; Vqv=function(F,J,b){return oc(cj(F,J),J,b)}; g.Us=function(F){g.Zr.call(this);this.headers=new Map;this.WN=F||null;this.T=!1;this.C=null;this.Y="";this.U=0;this.Z="";this.D=this.Gj=this.N=this.eE=!1;this.Tj=0;this.W=null;this.kQ="";this.V=!1}; Bla=function(F,J,b,I,u,w,M){var q=new g.Us;Pev.push(q);J&&q.listen("complete",J);q.Sk("ready",q.v6);w&&(q.Tj=Math.max(0,w));M&&(q.V=M);q.send(F,b,I,u)}; rDa=function(F,J){F.T=!1;F.C&&(F.D=!0,F.C.abort(),F.D=!1);F.Z=J;F.U=5;TlJ(F);xV(F)}; TlJ=function(F){F.eE||(F.eE=!0,F.dispatchEvent("complete"),F.dispatchEvent("error"))}; Sav=function(F){if(F.T&&typeof nu!="undefined")if(F.N&&g.tz(F)==4)setTimeout(F.zm.bind(F),0);else if(F.dispatchEvent("readystatechange"),F.isComplete()){F.getStatus();F.T=!1;try{if(ZL(F))F.dispatchEvent("complete"),F.dispatchEvent("success");else{F.U=6;try{var J=g.tz(F)>2?F.C.statusText:""}catch(b){J=""}F.Z=J+" ["+F.getStatus()+"]";TlJ(F)}}finally{xV(F)}}}; xV=function(F,J){if(F.C){F.W&&(clearTimeout(F.W),F.W=null);var b=F.C;F.C=null;J||F.dispatchEvent("ready");try{b.onreadystatechange=null}catch(I){}}}; ZL=function(F){var J=F.getStatus();a:switch(J){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var b=!0;break a;default:b=!1}if(!b){if(J=J===0)F=g.$V(1,String(F.Y)),!F&&g.Qz.self&&g.Qz.self.location&&(F=g.Qz.self.location.protocol.slice(0,-1)),J=!sfC.test(F?F.toLowerCase():"");b=J}return b}; g.tz=function(F){return F.C?F.C.readyState:0}; g.Hj=function(F){try{return F.C?F.C.responseText:""}catch(J){return""}}; g.Lu=function(F){try{if(!F.C)return null;if("response"in F.C)return F.C.response;switch(F.kQ){case "":case "text":return F.C.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in F.C)return F.C.mozResponseArrayBuffer}return null}catch(J){return null}}; g.Yaz=function(F){var J={};F=(F.C&&g.tz(F)>=2?F.C.getAllResponseHeaders()||"":"").split("\r\n");for(var b=0;b>1,J),G5(F,F.length>>1)]}; wzY=function(F){var J=g.N(u9z(F,V3));F=J.next().value;J=J.next().value;return F.toString(16)+J.toString(16)}; MXo=function(F,J){var b=u9z(J);F=new Uint32Array(F.buffer);J=F[0];var I=g.N(b);b=I.next().value;I=I.next().value;for(var u=1;u>>8|M<<24,M+=w|0,M^=q+38293,w=w<<3|w>>>29,w^=M,v=v>>>8|v<<24,v+=q|0,v^=a+38293,q=q<<3|q>>>29,q^=v;w=[w,M];F[u]^=w[0];u+1=b?(globalThis.sessionStorage.removeItem(F),["e"]):["a",new Uint8Array(I.buffer,J+4)]}; BR=function(F,J,b){b=b===void 0?[]:b;this.maxItems=F;this.C=J===void 0?0:J;this.U=b}; ve4=function(F){var J=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!J)return new BR(F);var b=J.split(",");if(b.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new BR(F);J=b.slice(1);J.length===1&&J[0]===""&&(J=[]);b=Number(b[0]);return isNaN(b)||b<0||b>J.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new BR(F)):new BR(F,b,J)}; ark=function(F,J){this.logger=J;try{var b=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(I){b=!1}b&&(this.index=ve4(F))}; eh4=function(F,J,b,I,u){var w=F.index?w8(F.logger,function(){return A6z(F.index,wzY(J),b,I,u)},"W"):"u"; F.logger.ZM(w)}; Kbm=function(F,J,b){var I=g.N(F.index?w8(F.logger,function(){return qP4(wzY(J),b)},"R"):["u"]),u=I.next().value; I=I.next().value;F.logger.U4(u);return I}; mI_=function(F){function J(){b-=I;b-=u;b^=u>>>13;I-=u;I-=b;I^=b<<8;u-=b;u-=I;u^=I>>>13;b-=I;b-=u;b^=u>>>12;I-=u;I-=b;I^=b<<16;u-=b;u-=I;u^=I>>>5;b-=I;b-=u;b^=u>>>3;I-=u;I-=b;I^=b<<10;u-=b;u-=I;u^=I>>>15} F=pz7(F);for(var b=2654435769,I=2654435769,u=314159265,w=F.length,M=w,q=0;M>=12;M-=12,q+=12)b+=T5(F,q),I+=T5(F,q+4),u+=T5(F,q+8),J();u+=w;switch(M){case 11:u+=F[q+10]<<24;case 10:u+=F[q+9]<<16;case 9:u+=F[q+8]<<8;case 8:I+=F[q+7]<<24;case 7:I+=F[q+6]<<16;case 6:I+=F[q+5]<<8;case 5:I+=F[q+4];case 4:b+=F[q+3]<<24;case 3:b+=F[q+2]<<16;case 2:b+=F[q+1]<<8;case 1:b+=F[q+0]}J();return ge7.toString(u)}; pz7=function(F){for(var J=[],b=0;b>7,F.error.code]);I.set(b,4);return I}; DF=function(F,J,b){r8.call(this,F);this.Z=J;this.clientState=b;this.C="S";this.T="q"}; R6=function(F){return globalThis.TextEncoder?(new TextEncoder).encode(F):g.lW(F)}; k9=function(F,J,b){g.R.call(this);var I=this;this.logger=F;this.onError=J;this.state=b;this.V=0;this.U=void 0;this.addOnDisposeCallback(function(){I.C&&(I.C.dispose(),I.C=void 0)})}; zhJ=function(F,J){J=J instanceof uW?J:new uW(5,"TVD:error",J);return F.reportError(J)}; OU=function(F,J,b){try{if(F.iR())throw new uW(21,"BNT:disposed");if(!F.C&&F.U)throw F.U;var I,u;return(u=(I=NKk(F,J,b))!=null?I:lrC(F,J,b))!=null?u:frG(F,J,b)}catch(w){if(!J.Ft)throw zhJ(F,w);return Wbv(F,b,w)}}; NKk=function(F,J,b){var I;return(I=F.C)==null?void 0:sU(I,function(){return o6(F,J)},b,function(u){var w; if(F.C instanceof Y9&&((w=J.Oa)==null?0:w.l2))try{var M;(M=F.cache)==null||eh4(M,o6(F,J),u,J.Oa.DT,F.Y-120)}catch(q){F.reportError(new uW(24,"ELX:write",q))}})}; lrC=function(F,J,b){var I;if((I=J.Oa)!=null&&I.Fz)try{var u,w=(u=F.cache)==null?void 0:Kbm(u,o6(F,J),J.Oa.DT);return w?b?w8(F.logger,function(){return g.zw(w,2)},"a"):w:void 0}catch(M){F.reportError(new uW(23,"RXO:read",M))}}; frG=function(F,J,b){var I={stack:[],error:void 0,hasError:!1};try{if(!J.xS)throw new uW(29,"SDF:notready");return sU(Je(I,new DF(F.logger,F.V,F.state)),function(){return o6(F,J)},b)}catch(u){I.error=u,I.hasError=!0}finally{bW(I)}}; Wbv=function(F,J,b){var I={stack:[],error:void 0,hasError:!1};try{var u=zhJ(F,b);return sU(Je(I,new X5(F.logger,u)),function(){return[]},J)}catch(w){I.error=w,I.hasError=!0}finally{bW(I)}}; o6=function(F,J){return J.wG?J.wG:J.Gi?w8(F.logger,function(){return J.wG=R6(J.Gi)},"c"):[]}; cR=function(F){var J;k9.call(this,F.w0.OO(),(J=F.onError)!=null?J:function(){},0); var b=this;this.D=0;this.Z=new g.m6;this.T=!1;this.w0=F.w0;this.lB=F.lB;this.xu=Object.assign({},dIk,F.xu||{});F.uF&&(this.logger instanceof a6||this.logger instanceof Av)&&this.logger.DL(F.uF);this.oL=F.oL||!1;if(EeJ(F)){var I=this.w0;this.W=function(){return tq3(I).catch(function(M){M=b.reportError(new uW(b.T?20:32,"TRG:Disposed",M));b.U=M;var q;(q=b.C)==null||q.dispose();b.C=void 0;b.Z.reject(M)})}; Z$J(I,function(){return void hv(b)}); I.Y===2&&hv(this)}else this.W=F.vIj,hv(this);var u=this.logger.share();u.n1("o");var w=new I6(u,"o");this.Z.promise.then(function(){w.done();u.oE();u.dispose()},function(){return void u.dispose()}); this.addOnDisposeCallback(function(){b.T||(b.U?b.logger.oE():(b.U=b.reportError(new uW(32,"TNP:Disposed")),b.logger.oE(),b.Z.reject(b.U)));b.logger.dispose()})}; jDC=function(F,J){if(!(J instanceof uW))if(J instanceof jP){var b=Error(J.toString());b.stack=J.stack;J=new uW(11,"EBH:Error",b)}else J=new uW(12,"BSO:Unknown",J);return F.reportError(J)}; hv=function(F){var J,b,I,u,w,M,q,v,a,e,K,p,m,y,f;return g.S(function(d){switch(d.C){case 1:J=void 0;F.D++;b=new g.m6;F.w0 instanceof d8&&F.w0.Z.push(b.promise);if(!F.oL){d.gD(2);break}I=new g.m6;setTimeout(function(){return void I.resolve()}); return g.T(d,I.promise,2);case 2:return u=F.logger.share(),g.lk(d,4,5),F.state=5,w={},M=[],g.T(d,jW(F.w0.snapshot({Gi:w,Hw:M}),F.xu.UEQ,function(){return Promise.reject(new uW(15,"MDA:Timeout"))}),7); case 7:q=d.U;if(F.iR())throw new uW(F.T?20:32,"MDA:Disposed");v=M[0];F.state=6;return g.T(d,jW(u.sX("g",1,F.lB.vY(q)),F.xu.rr,function(){return Promise.reject(new uW(10,"BWB:Timeout"))}),8); case 8:a=d.U;if(F.iR())throw new uW(F.T?20:32,"BWB:Disposed");F.state=7;J=w8(u,function(){var P=GEC(F,a,b,v);P.U.promise.then(function(){return void F.W()}).catch(function(){}); return P},"i"); case 5:g.Em(d);u.dispose();g.jz(d,6);break;case 4:e=g.dY(d);(K=J)==null||K.dispose();if(!F.U){p=jDC(F,e);b.resolve();var G;if(G=F.w0 instanceof d8&&F.D<2)a:if(e instanceof uW)G=e.code!==32&&e.code!==20&&e.code!==10;else{if(e instanceof jP)switch(e.code){case 2:case 13:case 14:case 4:break;default:G=!1;break a}G=!0}if(G)return m=(1+Math.random()*.25)*(F.T?6E4:1E3),y=setTimeout(function(){return void F.W()},m),F.addOnDisposeCallback(function(){return void clearTimeout(y)}),d.return(); F.U=p}u.AN(F.T?13:14);F.Z.reject(F.U);return d.return();case 6:F.state=8,F.D=0,(f=F.C)==null||f.dispose(),F.C=J,F.T=!0,F.Z.resolve(),g.N4(d)}})}; GEC=function(F,J,b,I){var u=KG(J,2)*1E3;if(u<=0)throw new uW(31,"TTM:Invalid");if(pG(J,4))return new C2(F.logger,pG(J,4),u);if(!KG(J,3))return new $9(F.logger,VI(xp(J,1)),u);if(!I)throw new uW(4,"PMD:Undefined");I=I(VI(xp(J,1)));if(!(I instanceof Function))throw new uW(16,"APF:Failed");F.Y=Math.floor((Date.now()+u)/1E3);F=new Y9(F.logger,I,KG(J,3),u);F.addOnDisposeCallback(function(){return void b.resolve()}); return F}; UU=function(){var F=0,J;return function(b){J||(J=new M6);var I=new DF(J,F,1),u=sU(I,function(){return R6(b)},!0); I.dispose();F++;return u}}; x9=function(F){this.Z7=S2(F)}; VXC=function(F,J,b){this.xC=F;this.m$=J;this.metadata=b}; n2=function(F,J){J=J===void 0?{}:J;this.AwE=F;this.metadata=J;this.status=null}; tv=function(F,J,b,I,u){this.name=F;this.methodType="unary";this.requestType=J;this.responseType=b;this.C=I;this.U=u}; ZF=function(F){this.Z7=S2(F)}; HR=function(F){this.Z7=S2(F)}; L2=function(F){this.Z7=S2(F)}; FB=function(F,J){this.V=F.KON;this.Y=J;this.C=F.xhr;this.T=[];this.D=[];this.W=[];this.Z=[];this.U=[];this.V&&PBo(this)}; SPv=function(F,J){var b=new BKG;g.Dr(F.C,"complete",function(){if(ZL(F.C)){var I=g.Hj(F.C);if(J&&F.C.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");I=atob(I)}try{var u=F.Y(I)}catch(q){JN(F,bF(new jP(13,"Error when deserializing response data; error: "+q+(", response: "+I)),b));return}I=KDa(F.C.getStatus());I2(F,uF(F));I==0?TKm(F,u):JN(F,bF(new jP(I,"Xhr succeeded but the status code is not 200"),b))}else{I=g.Hj(F.C);u=uF(F);if(I){var w=r6m(F, I);I=w.code;var M=w.details;w=w.metadata}else I=2,M="Rpc failed due to xhr error. uri: "+String(F.C.Y)+", error code: "+F.C.U+", error: "+F.C.getLastError(),w=u;I2(F,u);JN(F,bF(new jP(I,M,w),b))}})}; PBo=function(F){F.V.d$("data",function(J){if("1"in J){var b=J["1"];try{var I=F.Y(b)}catch(u){JN(F,new jP(13,"Error when deserializing response data; error: "+u+(", response: "+b)))}I&&TKm(F,I)}if("2"in J)for(J=r6m(F,J["2"]),b=0;b-1&&F.splice(J,1)}; TKm=function(F,J){for(var b=0;b>4&15).toString(16)+(F&15).toString(16)}; yu=function(F,J){this.U=this.C=null;this.T=F||null;this.Z=!!J}; lF=function(F){F.C||(F.C=new Map,F.U=0,F.T&&QX(F.T,function(J,b){F.add(n5(J),b)}))}; QDo=function(F,J){lF(F);J=fM(F,J);return F.C.has(J)}; g.Rhv=function(F,J,b){F.remove(J);b.length>0&&(F.T=null,F.C.set(fM(F,J),g.JL(b)),F.U=F.U+b.length)}; fM=function(F,J){J=String(J);F.Z&&(J=J.toLowerCase());return J}; $Iv=function(F,J){J&&!F.Z&&(lF(F),F.T=null,F.C.forEach(function(b,I){var u=I.toLowerCase();I!=u&&(this.remove(I),g.Rhv(this,u,b))},F)); F.Z=J}; g.DIa=function(F){var J="";g.ie(F,function(b,I){J+=I;J+=":";J+=b;J+="\r\n"}); return J}; g.Wt=function(F,J,b){if(g.Vj(b))return F;b=g.DIa(b);if(typeof F==="string")return oc(F,g.x_(J),b);g.zm(F,J,b);return F}; g.dR=function(F){g.R.call(this);this.U=F;this.C={}}; kEJ=function(F,J,b,I,u,w){if(Array.isArray(b))for(var M=0;M0&&(J[u]=I)},F); return J}; zB3=function(F){F=Ah(F);var J=[];g.ie(F,function(b,I){I in Object.prototype||typeof b!="undefined"&&J.push([I,":",b].join(""))}); return J}; lL7=function(F){uT(F,"od",Nb_);uT(F,"opac",q5).C=!0;uT(F,"sbeos",q5).C=!0;uT(F,"prf",q5).C=!0;uT(F,"mwt",q5).C=!0;uT(F,"iogeo",q5)}; fLv=function(){this.C=this.EG=null}; vY=function(){}; ew=function(){if(!aI())throw Error();}; aI=function(){return!(!K_||!K_.performance)}; p_=function(F){return F?F.passive&&WIv()?F:F.capture||!1:!1}; gf=function(F,J,b,I){return F.addEventListener?(F.addEventListener(J,b,p_(I)),!0):!1}; mx=function(F){return F.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[F.visibilityState||F.webkitVisibilityState||F.mozVisibilityState||""]||0}; dfC=function(){}; EV_=function(){return(TV||r5)&&Sm?Sm.mobile:!yF()&&(YL("iPod")||YL("iPhone")||YL("Android")||YL("IEMobile"))}; yF=function(){return(TV||r5)&&Sm?!Sm.mobile&&(YL("iPad")||YL("Android")||YL("Silk")):YL("iPad")||YL("Android")&&!YL("Mobile")||YL("Silk")}; iT=function(F){try{return!!F&&F.location.href!=null&&MmG(F,"foo")}catch(J){return!1}}; zi=function(F,J){if(F)for(var b in F)Object.prototype.hasOwnProperty.call(F,b)&&J(F[b],b,F)}; Gqv=function(){var F=[];zi(jcJ,function(J){F.push(J)}); return F}; VPz=function(F){var J,b;return(b=(J=/https?:\/\/[^\/]+/.exec(F))==null?void 0:J[0])!=null?b:""}; Tb4=function(){var F=P5k("IFRAME"),J={};g.gy(Bb7(),function(b){F.sandbox&&F.sandbox.supports&&F.sandbox.supports(b)&&(J[b]=!0)}); return J}; P5k=function(F,J){J=J===void 0?document:J;return J.createElement(String(F).toLowerCase())}; rzm=function(F){for(var J=F;F&&F!=F.parent;)F=F.parent,iT(F)&&(J=F);return J}; $fJ=function(F){F=F||N5();for(var J=new Ssa(g.Qz.location.href,!1),b=null,I=F.length-1,u=I;u>=0;--u){var w=F[u];!b&&scz.test(w.url)&&(b=w);if(w.url&&!w.wH){J=w;break}}u=null;w=F.length&&F[I].url;J.depth!=0&&w&&(u=F[I]);return new Ysv(J,u,b)}; N5=function(){var F=g.Qz,J=[],b=null;do{var I=F;if(iT(I)){var u=I.location.href;b=I.document&&I.document.referrer||null}else u=b,b=null;J.push(new Ssa(u||""));try{F=I.parent}catch(w){F=null}}while(F&&I!=F);I=0;for(F=J.length-1;I<=F;++I)J[I].depth=F-I;I=g.Qz;if(I.location&&I.location.ancestorOrigins&&I.location.ancestorOrigins.length==J.length-1)for(F=1;FJ&&(J=b.length);return 3997-J-F.T.length-1}; df=function(F,J){this.C=F;this.depth=J}; RB_=function(){function F(q,v){return q==null?v:q} var J=N5(),b=Math.max(J.length-1,0),I=$fJ(J);J=I.C;var u=I.U,w=I.T,M=[];w&&M.push(new df([w.url,w.wH?2:0],F(w.depth,1)));u&&u!=w&&M.push(new df([u.url,2],0));J.url&&J!=w&&M.push(new df([J.url,0],F(J.depth,b)));I=g.EG(M,function(q,v){return M.slice(0,M.length-v)}); !J.url||(w||u)&&J!=w||(u=VPz(J.url))&&I.push([new df([u,1],F(J.depth,b))]);I.push([]);return g.EG(I,function(q){return Qc_(b,q)})}; Qc_=function(F,J){g.jw(J,function(u){return u.depth>=0}); var b=Gi(J,function(u,w){return Math.max(u,w.depth)},-1),I=ubJ(b+2); I[0]=F;g.gy(J,function(u){return I[u.depth+1]=u.C}); return I}; Dfo=function(){var F=F===void 0?RB_():F;return F.map(function(J){return WY(J)})}; kqv=function(F){var J=!1;J=J===void 0?!1:J;K_.google_image_requests||(K_.google_image_requests=[]);var b=P5k("IMG",K_.document);J&&(b.attributionSrc="");b.src=F;K_.google_image_requests.push(b)}; VF=function(F){var J="S6";if(F.S6&&F.hasOwnProperty(J))return F.S6;var b=new F;F.S6=b;F.hasOwnProperty(J);return b}; PY=function(){this.U=new dfC;this.C=aI()?new ew:new vY}; OuY=function(){BY();var F=K_.document;return!!(F&&F.body&&F.body.getBoundingClientRect&&typeof K_.setInterval==="function"&&typeof K_.clearInterval==="function"&&typeof K_.setTimeout==="function"&&typeof K_.clearTimeout==="function")}; oVC=function(){BY();return Dfo()}; hBo=function(){}; BY=function(){var F=VF(hBo);if(!F.C){if(!K_)throw Error("Context has not been set and window is undefined.");F.C=VF(PY)}return F.C}; Ti=function(F){this.Z7=S2(F)}; czk=function(F){this.T=F;this.C=-1;this.U=this.Z=0}; rf=function(F,J){return function(){var b=g.Ba.apply(0,arguments);if(F.C>-1)return J.apply(null,g.W(b));try{return F.C=F.T.C.now(),J.apply(null,g.W(b))}finally{F.Z+=F.T.C.now()-F.C,F.C=-1,F.U+=1}}}; Ufa=function(F,J){this.U=F;this.T=J;this.C=new czk(F)}; xfo=function(){this.C={}}; tPz=function(){var F=Sw().flags,J=nVY;F=F.C[J.key];if(J.valueType==="proto"){try{var b=JSON.parse(F);if(Array.isArray(b))return b}catch(I){}return J.defaultValue}return typeof F===typeof J.defaultValue?F:J.defaultValue}; F67=function(){this.T=void 0;this.U=this.W=0;this.D=-1;this.Dy=new II;uT(this.Dy,"mv",Zu3).C=!0;uT(this.Dy,"omid",q5);uT(this.Dy,"epoh",q5).C=!0;uT(this.Dy,"epph",q5).C=!0;uT(this.Dy,"umt",q5).C=!0;uT(this.Dy,"phel",q5).C=!0;uT(this.Dy,"phell",q5).C=!0;uT(this.Dy,"oseid",Hu_).C=!0;var F=this.Dy;F.C.sloi||(F.C.sloi=new Jh);F.C.sloi.C=!0;uT(this.Dy,"mm",sG);uT(this.Dy,"ovms",LIG).C=!0;uT(this.Dy,"xdi",q5).C=!0;uT(this.Dy,"amp",q5).C=!0;uT(this.Dy,"prf",q5).C=!0;uT(this.Dy,"gtx",q5).C=!0;uT(this.Dy, "mvp_lv",q5).C=!0;uT(this.Dy,"ssmol",q5).C=!0;uT(this.Dy,"fmd",q5).C=!0;uT(this.Dy,"gen204simple",q5);this.C=new Ufa(BY(),this.Dy);this.Z=!1;this.flags=new xfo}; Sw=function(){return VF(F67)}; Jva=function(F,J,b,I){if(Math.random()<(I||F.C))try{if(b instanceof lT)var u=b;else u=new lT,zi(b,function(M,q){var v=u,a=v.Z++;M=f_(q,M);v.C.push(a);v.U[a]=M}); var w=u.tF(F.U,"pagead2.googlesyndication.com","/pagead/gen_204?id="+J+"&");w&&(BY(),kqv(w))}catch(M){}}; b2J=function(F,J,b){b=b===void 0?{}:b;this.error=F;this.context=J.context;this.msg=J.message||"";this.id=J.id||"jserror";this.meta=b}; IFm=function(){var F=F===void 0?g.Qz:F;return(F=F.performance)&&F.now&&F.timing?Math.floor(F.now()+F.timing.navigationStart):g.L3()}; u53=function(){var F=F===void 0?g.Qz:F;return(F=F.performance)&&F.now?F.now():null}; wRv=function(F,J,b){this.label=F;this.type=J;this.value=b;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; $I=function(){var F=window;this.events=[];this.U=F||g.Qz;var J=null;F&&(F.google_js_reporting_queue=F.google_js_reporting_queue||[],this.events=F.google_js_reporting_queue,J=F.google_measure_js_timing);this.C=YI()||(J!=null?J:Math.random()<1)}; MWm=function(F){F&&C_&&YI()&&(C_.clearMarks("goog_"+F.label+"_"+F.uniqueId+"_start"),C_.clearMarks("goog_"+F.label+"_"+F.uniqueId+"_end"))}; Avz=function(){var F=XV;this.C=QF;this.Zk="jserror";this.zK=!0;this.Uj=null;this.U=this.l5;this.J_=F===void 0?null:F}; qUk=function(F,J,b){var I=RI;return rf(Sw().C.C,function(){try{if(I.J_&&I.J_.C){var u=I.J_.start(F.toString(),3);var w=J();I.J_.end(u)}else w=J()}catch(q){var M=I.zK;try{MWm(u),M=I.U(F,new DA(kI(q)),void 0,b)}catch(v){I.l5(217,v)}if(!M)throw q;}return w})()}; OG=function(F,J,b,I){return rf(Sw().C.C,function(){var u=g.Ba.apply(0,arguments);return qUk(F,function(){return J.apply(b,u)},I)})}; kI=function(F){var J=F.toString();F.name&&J.indexOf(F.name)==-1&&(J+=": "+F.name);F.message&&J.indexOf(F.message)==-1&&(J+=": "+F.message);if(F.stack)a:{F=F.stack;var b=J;try{F.indexOf(b)==-1&&(F=b+"\n"+F);for(var I;F!=I;)I=F,F=F.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");J=F.replace(/\n */g,"\n");break a}catch(u){J=b;break a}J=void 0}return J}; DA=function(F){b2J.call(this,Error(F),{message:F})}; v9C=function(){K_&&typeof K_.google_measure_js_timing!="undefined"&&(K_.google_measure_js_timing||XV.disable())}; aF_=function(F){RI.Uj=function(J){g.gy(F,function(b){b(J)})}}; eP4=function(F,J){return qUk(F,J)}; oI=function(F,J){return OG(F,J)}; hh=function(F,J,b,I){RI.l5(F,J,b,I)}; cY=function(){return Date.now()-K67}; pR3=function(){var F=Sw().T,J=UG>=0?cY()-UG:-1,b=xI?cY()-n_:-1,I=th>=0?cY()-th:-1;if(F==947190542)return 100;if(F==79463069)return 200;F=[2E3,4E3];var u=[250,500,1E3];hh(637,Error(),.001);var w=J;b!=-1&&b1500&&I<4E3?500:M}; ZA=function(F,J,b,I){this.top=F;this.right=J;this.bottom=b;this.left=I}; HY=function(F){return F.right-F.left}; L_=function(F,J){return F==J?!0:F&&J?F.top==J.top&&F.right==J.right&&F.bottom==J.bottom&&F.left==J.left:!1}; Fw=function(F,J,b){J instanceof g.K$?(F.left+=J.x,F.right+=J.x,F.top+=J.y,F.bottom+=J.y):(F.left+=J,F.right+=J,typeof b==="number"&&(F.top+=b,F.bottom+=b));return F}; JW=function(F,J,b){var I=new ZA(0,0,0,0);this.time=F;this.volume=null;this.T=J;this.C=I;this.U=b}; bu=function(F,J,b,I,u,w,M,q){this.Z=F;this.V=J;this.T=b;this.W=I;this.C=u;this.D=w;this.U=M;this.Y=q}; m6m=function(F){var J=F!==F.top,b=F.top===rzm(F),I=-1,u=0;if(J&&b&&F.top.mraid){I=3;var w=F.top.mraid}else I=(w=F.mraid)?J?b?2:1:0:-1;w&&(w.IS_GMA_SDK||(u=2),OIz(g9J,function(M){return typeof w[M]==="function"})||(u=1)); return{P5:w,compatibility:u,rXI:I}}; yvo=function(){var F=window.document;return F&&typeof F.elementFromPoint==="function"}; i27=function(F,J,b){F&&J!==null&&J!=J.top&&(J=J.top);try{return(b===void 0?0:b)?(new g.gl(J.innerWidth,J.innerHeight)).round():uWY(J||window).round()}catch(I){return new g.gl(-12245933,-12245933)}}; IN=function(F,J,b){try{F&&(J=J.top);var I=i27(F,J,b),u=I.height,w=I.width;if(w===-12245933)return new ZA(w,w,w,w);var M=MDz(Qj(J.document).C),q=M.x,v=M.y;return new ZA(v,q+w,v+u,q)}catch(a){return new ZA(-12245933,-12245933,-12245933,-12245933)}}; g.uu=function(F,J,b,I){this.left=F;this.top=J;this.width=b;this.height=I}; qB=function(F,J){return F==J?!0:F&&J?F.left==J.left&&F.width==J.width&&F.top==J.top&&F.height==J.height:!1}; g.aN=function(F,J,b){if(typeof J==="string")(J=vc(F,J))&&(F.style[J]=b);else for(var I in J){b=F;var u=J[I],w=vc(b,I);w&&(b.style[w]=u)}}; vc=function(F,J){var b=zPz[J];if(!b){var I=$u7(J);b=I;F.style[I]===void 0&&(I=(g.xM?"Webkit":eu?"Moz":null)+X3o(I),F.style[I]!==void 0&&(b=I));zPz[J]=b}return b}; g.KL=function(F,J){var b=F.style[$u7(J)];return typeof b!=="undefined"?b:F.style[vc(F,J)]||""}; pL=function(F,J){var b=Xl(F);return b.defaultView&&b.defaultView.getComputedStyle&&(F=b.defaultView.getComputedStyle(F,null))?F[J]||F.getPropertyValue(J)||"":""}; gj=function(F,J){return pL(F,J)||(F.currentStyle?F.currentStyle[J]:null)||F.style&&F.style[J]}; g.yf=function(F,J,b){if(J instanceof g.K$){var I=J.x;J=J.y}else I=J,J=b;F.style.left=g.m2(I,!1);F.style.top=g.m2(J,!1)}; iu=function(F){try{return F.getBoundingClientRect()}catch(J){return{left:0,top:0,right:0,bottom:0}}}; N8a=function(F){var J=Xl(F),b=gj(F,"position"),I=b=="fixed"||b=="absolute";for(F=F.parentNode;F&&F!=J;F=F.parentNode)if(F.nodeType==11&&F.host&&(F=F.host),b=gj(F,"position"),I=I&&b=="static"&&F!=J.documentElement&&F!=J.body,!I&&(F.scrollWidth>F.clientWidth||F.scrollHeight>F.clientHeight||b=="fixed"||b=="absolute"||b=="relative"))return F;return null}; g.zv=function(F){var J=Xl(F),b=new g.K$(0,0);if(F==(J?Xl(J):document).documentElement)return b;F=iu(F);J=MDz(Qj(J).C);b.x=F.left+J.x;b.y=F.top+J.y;return b}; fF4=function(F,J){var b=new g.K$(0,0),I=n$(Xl(F));if(!MmG(I,"parent"))return b;do{var u=I==J?g.zv(F):lFz(F);b.x+=u.x;b.y+=u.y}while(I&&I!=J&&I!=I.parent&&(F=I.frameElement)&&(I=I.parent));return b}; g.NB=function(F,J){F=W63(F);J=W63(J);return new g.K$(F.x-J.x,F.y-J.y)}; lFz=function(F){F=iu(F);return new g.K$(F.left,F.top)}; W63=function(F){if(F.nodeType==1)return lFz(F);F=F.changedTouches?F.changedTouches[0]:F;return new g.K$(F.clientX,F.clientY)}; g.lu=function(F,J,b){if(J instanceof g.gl)b=J.height,J=J.width;else if(b==void 0)throw Error("missing height argument");F.style.width=g.m2(J,!0);F.style.height=g.m2(b,!0)}; g.m2=function(F,J){typeof F=="number"&&(F=(J?Math.round(F):F)+"px");return F}; g.fL=function(F){var J=d6Y;if(gj(F,"display")!="none")return J(F);var b=F.style,I=b.display,u=b.visibility,w=b.position;b.visibility="hidden";b.position="absolute";b.display="inline";F=J(F);b.display=I;b.position=w;b.visibility=u;return F}; d6Y=function(F){var J=F.offsetWidth,b=F.offsetHeight,I=g.xM&&!J&&!b;return(J===void 0||I)&&F.getBoundingClientRect?(F=iu(F),new g.gl(F.right-F.left,F.bottom-F.top)):new g.gl(J,b)}; g.Wc=function(F,J){F.style.display=J?"":"none"}; dj=function(F,J){J=Math.pow(10,J);return Math.floor(F*J)/J}; E9_=function(F){return new ZA(F.top,F.right,F.bottom,F.left)}; j6k=function(F){var J=F.top||0,b=F.left||0;return new ZA(J,b+(F.width||0),J+(F.height||0),b)}; Pc=function(F){return F!=null&&F>=0&&F<=1}; G57=function(){var F=g.Bk();return F?Bc("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(J){return jm(F,J)})||jm(F,"OMI/")&&!jm(F,"XiaoMi/")?!0:jm(F,"Presto")&&jm(F,"Linux")&&!jm(F,"X11")&&!jm(F,"Android")&&!jm(F,"Mobi"):!1}; VWk=function(){this.T=!iT(K_.top);this.isMobileDevice=yF()||EV_();var F=N5();this.domain=F.length>0&&F[F.length-1]!=null&&F[F.length-1].url!=null?g.Cu(F[F.length-1].url)||"":"";this.C=new ZA(0,0,0,0);this.Z=new g.gl(0,0);this.D=new g.gl(0,0);this.V=new ZA(0,0,0,0);this.frameOffset=new g.K$(0,0);this.W=0;this.Y=!1;this.U=!(!K_||!m6m(K_).P5);this.update(K_)}; P3a=function(F,J){J&&J.screen&&(F.Z=new g.gl(J.screen.width,J.screen.height))}; B84=function(F,J){a:{var b=F.C?new g.gl(HY(F.C),F.C.getHeight()):new g.gl(0,0);J=J===void 0?K_:J;J!==null&&J!=J.top&&(J=J.top);var I=0,u=0;try{var w=J.document,M=w.body,q=w.documentElement;if(w.compatMode=="CSS1Compat"&&q.scrollHeight)I=q.scrollHeight!=b.height?q.scrollHeight:q.offsetHeight,u=q.scrollWidth!=b.width?q.scrollWidth:q.offsetWidth;else{var v=q.scrollHeight,a=q.scrollWidth,e=q.offsetHeight,K=q.offsetWidth;q.clientHeight!=e&&(v=M.scrollHeight,a=M.scrollWidth,e=M.offsetHeight,K=M.offsetWidth); v>b.height?v>e?(I=v,u=a):(I=e,u=K):v0||F.Y)return!0;F=BY().U.isVisible();var J=mx(rj)===0;return F||J}; Tv=function(){return VF(VWk)}; sN=function(F){this.T=F;this.U=0;this.C=null}; Yg=function(F,J,b){this.T=F;this.dD=b===void 0?"na":b;this.D=[];this.isInitialized=!1;this.Z=new JW(-1,!0,this);this.C=this;this.Y=J;this.Tj=this.N=!1;this.WN="uk";this.kQ=!1;this.W=!0}; $g=function(F,J){g.te(F.D,J)||(F.D.push(J),J.Qf(F.C),J.e$(F.Z),J.s1()&&(F.N=!0))}; T87=function(F){F=F.C;F.d8();F.EZ();var J=Tv();J.V=IN(!1,F.T,J.isMobileDevice);B84(Tv(),F.T);F.Z.C=F.mT()}; rv7=function(F){F.N=F.D.length?Bc(F.D,function(J){return J.s1()}):!1}; SUG=function(F){var J=g.JL(F.D);g.gy(J,function(b){b.e$(F.Z)})}; CL=function(F){var J=g.JL(F.D);g.gy(J,function(b){b.Qf(F.C)}); F.C!=F||SUG(F)}; Xw=function(F,J,b,I){this.element=F;this.C=new ZA(0,0,0,0);this.T=null;this.W=new ZA(0,0,0,0);this.U=J;this.Dy=b;this.kQ=I;this.Gj=!1;this.timestamp=-1;this.N=new bu(J.Z,this.element,this.C,new ZA(0,0,0,0),0,0,cY(),0);this.D=void 0}; s6C=function(F,J){return F.D?new ZA(Math.max(J.top+F.D.top,J.top),Math.min(J.left+F.D.right,J.right),Math.min(J.top+F.D.bottom,J.bottom),Math.max(J.left+F.D.left,J.left)):J.clone()}; Qf=function(F){this.D=!1;this.C=F;this.Z=function(){}}; YUz=function(F,J,b){this.T=b===void 0?0:b;this.U=F;this.C=J==null?"":J}; $67=function(F){switch(Math.trunc(F.T)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; C3Y=function(F,J){return F.TJ.T?!1:F.UJ.U?!1:typeof F.Ctypeof J.C?!1:F.C0?I[b]-I[b-1]:I[b]})}; tW=function(){this.U=new oN;this.dD=this.qf=0;this.KW=new ON;this.eE=this.V=-1;this.nW=1E3;this.bR=new oN([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.WN=this.Gj=-1}; ZG=function(F,J){return U6G(F.U,J===void 0?!0:J)}; Hc=function(F,J,b,I){var u=u===void 0?!1:u;b=OG(I,b);gf(F,J,b,{capture:u})}; FL=function(F,J){J=LL(J);return J===0?0:LL(F)/J}; LL=function(F){return Math.max(F.bottom-F.top,0)*Math.max(F.right-F.left,0)}; tWm=function(F,J){if(!F||!J)return!1;for(var b=0;F!==null&&b++<100;){if(F===J)return!0;try{if(F=F.parentElement||F){var I=Xl(F),u=I&&n$(I),w=u&&u.frameElement;w&&(F=w)}}catch(M){break}}return!1}; Z2m=function(F,J,b){if(!F||!J)return!1;J=Fw(F.clone(),-J.left,-J.top);F=(J.left+J.right)/2;J=(J.top+J.bottom)/2;iT(window.top)&&window.top&&window.top.document&&(window=window.top);if(!yvo())return!1;F=window.document.elementFromPoint(F,J);if(!F)return!1;J=(J=(J=Xl(b))&&J.defaultView&&J.defaultView.frameElement)&&tWm(J,F);var I=F===b;F=!I&&F&&MI(F,function(u){return u===b}); return!(J||I||F)}; H2Y=function(F,J,b,I){return Tv().T?!1:HY(F)<=0||F.getHeight()<=0?!0:b&&I?eP4(208,function(){return Z2m(F,J,b)}):!1}; JS=function(F,J,b){g.R.call(this);this.position=L6v.clone();this.W8=this.wl();this.i5=-2;this.timeCreated=Date.now();this.aj=-1;this.y5=J;this.LG=null;this.NN=!1;this.ys=null;this.opacity=-1;this.requestSource=b;this.h4G=!1;this.Ql=function(){}; this.Pi=function(){}; this.f4=new fLv;this.f4.EG=F;this.f4.C=F;this.Pc=!1;this.QO={Jq:null,Bd:null};this.OH=!0;this.Eu=null;this.o9=this.pNW=!1;Sw().W++;this.HD=this.Cb();this.BU=-1;this.JF=null;this.hasCompleted=this.oQQ=!1;this.Dy=new II;lL7(this.Dy);Fjz(this);this.requestSource==1?wf(this.Dy,"od",1):wf(this.Dy,"od",0)}; Fjz=function(F){F=F.f4.EG;var J;if(J=F&&F.getAttribute)J=/-[a-z]/.test("googleAvInapp")?!1:JNk&&F.dataset?"googleAvInapp"in F.dataset:F.hasAttribute?F.hasAttribute("data-"+Cvk()):!!F.getAttribute("data-"+Cvk());J&&(Tv().U=!0)}; bR=function(F,J){J!=F.o9&&(F.o9=J,F=Tv(),J?F.W++:F.W>0&&F.W--)}; bMY=function(F,J){if(F.JF){if(J.getName()===F.JF.getName())return;F.JF.dispose();F.JF=null}J=J.create(F.f4.C,F.Dy,F.s1());if(J=J!=null&&J.observe()?J:null)F.JF=J}; IVm=function(F,J,b){if(!F.LG||F.y5==-1||J.U===-1||F.LG.U===-1)return 0;F=J.U-F.LG.U;return F>b?0:F}; uBJ=function(F,J,b){if(F.JF){F.JF.Sy();var I=F.JF.N,u=I.Z,w=u.C;if(I.W!=null){var M=I.T;F.ys=new g.K$(M.left-w.left,M.top-w.top)}w=F.iM()?Math.max(I.C,I.D):I.C;M={};u.volume!==null&&(M.volume=u.volume);u=F.x5(I);F.LG=I;F.VG(w,J,b,!1,M,u,I.Y)}}; wt_=function(F){if(F.NN&&F.Eu){var J=M5(F.Dy,"od")==1,b=Tv().C,I=F.Eu,u=F.JF?F.JF.getName():"ns",w=F.ys,M=new g.gl(HY(b),b.getHeight());b=F.iM();F={R4f:u,ys:w,wDf:M,iM:b,BV:F.HD.BV,Lrv:J};if(J=I.U){J.Sy();u=J.N;w=u.Z.C;var q=M=null;u.W!=null&&w&&(M=u.T,M=new g.K$(M.left-w.left,M.top-w.top),q=new g.gl(w.right-w.left,w.bottom-w.top));u=b?Math.max(u.C,u.D):u.C;b={R4f:J.getName(),ys:M,wDf:q,iM:b,Lrv:!1,BV:u}}else b=null;b&&o9z(I,F,b)}}; MhG=function(F,J,b){J&&(F.Ql=J);b&&(F.Pi=b)}; g.I8=function(){}; g.uR=function(F){return{value:F,done:!1}}; ANG=function(){this.Z=this.C=this.T=this.U=this.D=0}; q4Y=function(F){var J={};var b=g.L3()-F.D;J=(J.ptlt=b,J);(b=F.U)&&(J.pnk=b);(b=F.T)&&(J.pnc=b);(b=F.Z)&&(J.pnmm=b);(F=F.C)&&(J.pns=F);return J}; voz=function(){Ht.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; w2=function(F){return Pc(F.volume)&&F.volume>0}; MN=function(F,J,b,I){b=b===void 0?!0:b;I=I===void 0?function(){return!0}:I; return function(u){var w=u[F];if(Array.isArray(w)&&I(u))return aVv(w,J,b)}}; AS=function(F,J){return function(b){return J(b)?b[F]:void 0}}; e$k=function(F){return function(J){for(var b=0;b0?w[u-1]+1:0,I+1).reduce(function(M,q){return M+q},0)})}; Kj4=function(){this.U=this.C=""}; ptC=function(){}; v2=function(F,J){var b={};if(F!==void 0)if(J!=null)for(var I in J){var u=J[I];I in Object.prototype||u!=null&&(b[I]=typeof u==="function"?u(F):F[u])}else g.Sq(b,F);return kg(DG(new RN,b))}; go7=function(){var F={};this.U=(F.vs=[1,0],F.vw=[0,1],F.am=[2,2],F.a=[4,4],F.f=[8,8],F.bm=[16,16],F.b=[32,32],F.avw=[0,64],F.avs=[64,0],F.pv=[256,256],F.gdr=[0,512],F.p=[0,1024],F.r=[0,2048],F.m=[0,4096],F.um=[0,8192],F.ef=[0,16384],F.s=[0,32768],F.pmx=[0,16777216],F.mut=[33554432,33554432],F.umutb=[67108864,67108864],F.tvoff=[134217728,134217728],F);this.C={};for(var J in this.U)this.U[J][1]>0&&(this.C[J]=0);this.T=0}; a8=function(F,J){var b=F.U[J],I=b[1];F.T+=b[0];I>0&&F.C[J]==0&&(F.C[J]=1)}; ml4=function(F){var J=g.dl(F.U),b=0,I;for(I in F.C)g.te(J,I)&&F.C[I]==1&&(b+=F.U[I][1],F.C[I]=2);return b}; yNz=function(F){var J=0,b;for(b in F.C){var I=F.C[b];if(I==1||I==2)J+=F.U[b][1]}return J}; e7=function(){this.C=this.U=0}; Kq=function(){tW.call(this);this.T=new ON;this.zj=this.N=this.kQ=0;this.Y=-1;this.cN=new ON;this.D=new ON;this.C=new oN;this.W=this.Z=-1;this.Tj=new ON;this.nW=2E3;this.fW=new e7;this.oI=new e7;this.Jz=new e7}; pq=function(F,J,b){var I=F.zj;xI||b||F.Y==-1||(I+=J-F.Y);return I}; iMk=function(){this.T=!1}; g2=function(F,J){this.T=!1;this.Z=F;this.N=J;this.D=0}; ma=function(F,J){g2.call(this,F,J);this.V=[]}; z$o=function(){}; yC=function(){}; iR=function(F,J,b,I){Xw.call(this,F,J,b,I)}; zZ=function(F,J,b){Xw.call(this,null,F,J,b);this.Y=F.isActive();this.V=0}; NN=function(F){return[F.top,F.left,F.bottom,F.right]}; lR=function(F,J,b,I,u,w){w=w===void 0?new yC:w;JS.call(this,J,b,I);this.PR=u;this.TA=0;this.x4={};this.Cv=new go7;this.VC={};this.Dj="";this.Jz=null;this.Q2=!1;this.C=[];this.OT=w.U();this.W=w.T();this.Z=null;this.T=-1;this.dD=this.N=void 0;this.eE=this.Tj=0;this.WN=-1;this.nW=this.oI=!1;this.kQ=this.Y=this.U=this.oB=this.Um=0;new oN;this.fW=this.zj=0;this.KW=-1;this.vS=0;this.V=g.ac;this.Gj=[this.wl()];this.xm=2;this.ZU={};this.ZU.pause="p";this.ZU.resume="r";this.ZU.skip="s";this.ZU.mute="m";this.ZU.unmute= "um";this.ZU.exitfullscreen="ef";this.D=null;this.bR=this.cN=!1;this.Om=Math.floor(Date.now()/1E3-1704067200);this.qf=0}; fq=function(F){F.hasCompleted=!0;F.vS!=0&&(F.vS=3)}; W2=function(F){return F===void 0?F:Number(F)?dj(F,3):0}; d2=function(F,J){return F.Gj[J!=null&&JMath.max(1E4,F.T/3)?0:J);var b=F.V(F)||{};b=b.currentTime!==void 0?b.currentTime:F.Tj;var I=b-F.Tj,u=0;I>=0?(F.eE+=J,F.fW+=Math.max(J-I,0),u=Math.min(I,F.eE)):F.zj+=Math.abs(I);I!=0&&(F.eE=0);F.KW==-1&&I>0&&(F.KW=th>=0?cY()-th:-1);F.Tj=b;return u}; fVv=function(F,J){Bc(F.W,function(b){return b.Z==J.Z})||F.W.push(J)}; Wja=function(F){var J=UN(F.v9().C,1);return E0(F,J)}; E0=function(F,J,b){return J>=15E3?!0:F.oI?(b===void 0?0:b)?!0:F.T>0?J>=F.T/2:F.WN>0?J>=F.WN:!1:!1}; dla=function(F){var J=dj(F.HD.BV,2),b=F.Cv.T,I=F.HD,u=d2(F),w=W2(u.Z),M=W2(u.W),q=W2(I.volume),v=dj(u.V,2),a=dj(u.eE,2),e=dj(I.BV,2),K=dj(u.Gj,2),p=dj(u.WN,2);I=dj(I.N_,2);var m=F.IG().clone().round();F=F.JF&&F.JF.T?(F.JF?F.JF.T:null).clone().round():null;u=ZG(u,!1);return{CkR:J,T9:b,fJ:w,s4:M,ih:q,M8:v,P8:a,BV:e,dh:K,Ro:p,N_:I,position:m,tP:F,H8:u}}; j2a=function(F,J){Eo4(F.C,J,function(){return{CkR:0,T9:void 0,fJ:-1,s4:-1,ih:-1,M8:-1,P8:-1,BV:-1,dh:-1,Ro:-1,N_:-1,position:void 0,tP:void 0,H8:[]}}); F.C[J]=dla(F)}; Eo4=function(F,J,b){for(var I=F.length;I0?1:0;K.atos= hW(a.C);K.ssb=hW(a.bR,!1);K.amtos=U6G(a.C,!1);K.uac=F.Um;K.vpt=a.T.C;e=="nio"&&(K.nio=1,K.avms="nio");K.gmm="4";K.gdr=E0(F,a.T.C,!0)?1:0;K.efpf=F.xm;if(e=="gsv"||e=="nis")e=F.JF,e.V>0&&(K.nnut=e.V);K.tcm=NRa(F);K.nmt=F.zj;K.bt=F.fW;K.pst=F.KW;K.vpaid=F.N;K.dur=F.T;K.vmtime=F.Tj;K.is=F.Cv.T;F.C.length>=1&&(K.i0=F.C[0].T9,K.a0=[F.C[0].ih],K.c0=[F.C[0].BV],K.ss0=[F.C[0].N_],e=F.C[0].position,w=F.C[0].tP,K.p0=e?NN(e):void 0,e&&w&&!L_(w,e)&&(K.cp0=NN(w)));F.C.length>=2&&(K.i1=F.C[1].T9,K.a1=VC(F.C[1].fJ, F.C[1].ih,F.C[1].s4),K.c1=VC(F.C[1].M8,F.C[1].BV,F.C[1].P8),K.ss1=VC(F.C[1].dh,F.C[1].N_,F.C[1].Ro),e=F.C[1].position,w=F.C[1].tP,K.p1=e?NN(e):void 0,e&&w&&!L_(w,e)&&(K.cp1=NN(w)),K.mtos1=F.C[1].H8);F.C.length>=3&&(K.i2=F.C[2].T9,K.a2=VC(F.C[2].fJ,F.C[2].ih,F.C[2].s4),K.c2=VC(F.C[2].M8,F.C[2].BV,F.C[2].P8),K.ss2=VC(F.C[2].dh,F.C[2].N_,F.C[2].Ro),e=F.C[2].position,w=F.C[2].tP,K.p2=e?NN(e):void 0,e&&w&&!L_(w,e)&&(K.cp2=NN(w)),K.mtos2=F.C[2].H8);F.C.length>=4&&(K.i3=F.C[3].T9,K.a3=VC(F.C[3].fJ,F.C[3].ih, F.C[3].s4),K.c3=VC(F.C[3].M8,F.C[3].BV,F.C[3].P8),K.ss3=VC(F.C[3].dh,F.C[3].N_,F.C[3].Ro),e=F.C[3].position,w=F.C[3].tP,K.p3=e?NN(e):void 0,e&&w&&!L_(w,e)&&(K.cp3=NN(w)),K.mtos3=F.C[3].H8);K.cs=yNz(F.Cv);J&&(K.ic=ml4(F.Cv),K.dvpt=a.T.U,K.dvs=nL(a.U,.5),K.dfvs=nL(a.U,1),K.davs=nL(a.C,.5),K.dafvs=nL(a.C,1),b&&(a.T.U=0,x6m(a.U),x6m(a.C)),F.kI()&&(K.dtos=a.kQ,K.dav=a.N,K.dtoss=F.TA+1,b&&(a.kQ=0,a.N=0,F.TA++)),K.dat=a.D.U,K.dft=a.Tj.U,b&&(a.D.U=0,a.Tj.U=0));K.ps=[q.D.width,q.D.height];K.bs=[HY(q.C),q.C.getHeight()]; K.scs=[q.Z.width,q.Z.height];K.dom=q.domain;F.oB&&(K.vds=F.oB);if(F.W.length>0||F.OT)J=g.JL(F.W),F.OT&&J.push(F.OT),K.pings=g.EG(J,function(p){return p.toString()}); J=g.EG(g.qN(F.W,function(p){return p.W()}),function(p){return p.getId()}); FR4(J);K.ces=J;F.U&&(K.vmer=F.U);F.Y&&(K.vmmk=F.Y);F.kQ&&(K.vmiec=F.kQ);K.avms=F.JF?F.JF.getName():"ns";F.JF&&g.Sq(K,F.JF.bH());I?(K.c=dj(F.HD.BV,2),K.ss=dj(F.HD.N_,2)):K.tth=cY()-BR4;K.mc=dj(a.eE,2);K.nc=dj(a.V,2);K.mv=W2(a.W);K.nv=W2(a.Z);K.lte=dj(F.i5,2);I=d2(F,u);ZG(a);K.qmtos=ZG(I);K.qnc=dj(I.V,2);K.qmv=W2(I.W);K.qnv=W2(I.Z);K.qas=I.Z>0?1:0;K.qi=F.Dj;K.avms||(K.avms="geo");K.psm=a.fW.C;K.psv=a.fW.getValue();K.psfv=a.oI.getValue();K.psa=a.Jz.getValue();v=zB3(v.Dy);v.length&&(K.veid=v);F.D&&g.Sq(K, q4Y(F.D));K.avas=F.yY();K.vs=F.NZ();K.co=TR3(F);K.tm=a.qf;K.tu=a.dD;return K}; Gmz=function(F,J){if(g.te(rNk,J))return!0;var b=F.x4[J];return b!==void 0?(F.x4[J]=!0,!b):!1}; TR3=function(F){var J=F.qf.toString(10).padStart(2,"0");J=""+F.Om+J;F.qf<99&&F.qf++;return J}; s2m=function(){this.C={};var F=n$();P2(this,F,document);var J=S4G();try{if("1"==J){for(var b=F.parent;b!=F.top;b=b.parent)P2(this,b,b.document);P2(this,F.top,F.top.document)}}catch(I){}}; S4G=function(){var F=document.documentElement;try{if(!iT(n$().top))return"2";var J=[],b=n$(F.ownerDocument);for(F=b;F!=b.top;F=F.parent)if(F.frameElement)J.push(F.frameElement);else break;return J&&J.length!=0?"1":"0"}catch(I){return"2"}}; P2=function(F,J,b){Hc(b,"mousedown",function(){return Y4G(F)},301); Hc(J,"scroll",function(){return $lz(F)},302); Hc(b,"touchmove",function(){return CFa(F)},303); Hc(b,"mousemove",function(){return Xtz(F)},304); Hc(b,"keydown",function(){return Q2J(F)},305)}; Y4G=function(F){g.ie(F.C,function(J){J.T>1E5||++J.T})}; $lz=function(F){g.ie(F.C,function(J){J.C>1E5||++J.C})}; CFa=function(F){g.ie(F.C,function(J){J.C>1E5||++J.C})}; Q2J=function(F){g.ie(F.C,function(J){J.U>1E5||++J.U})}; Xtz=function(F){g.ie(F.C,function(J){J.Z>1E5||++J.Z})}; R$G=function(){this.C=[];this.U=[]}; B2=function(F,J){return g.xL(F.C,function(b){return b.Dj==J})}; Dlz=function(F,J){return J?g.xL(F.C,function(b){return b.f4.EG==J}):null}; kmz=function(F,J){return g.xL(F.U,function(b){return b.E0()==2&&b.Dj==J})}; r2=function(){var F=TZ;return F.C.length==0?F.U:F.U.length==0?F.C:g.FP(F.U,F.C)}; OMz=function(F,J){F=J.E0()==1?F.C:F.U;var b=U1(F,function(I){return I==J}); return b!=-1?(F.splice(b,1),J.JF&&J.JF.unobserve(),J.dispose(),!0):!1}; ook=function(F){var J=TZ;if(OMz(J,F)){switch(F.E0()){case 0:var b=function(){return null}; case 2:b=function(){return kmz(J,F.Dj)}; break;case 1:b=function(){return B2(J,F.Dj)}}for(var I=b();I;I=b())OMz(J,I)}}; h$o=function(F){var J=TZ;F=g.qN(F,function(b){return!Dlz(J,b.f4.EG)}); J.C.push.apply(J.C,g.W(F))}; cN_=function(F){var J=[];g.gy(F,function(b){Bc(TZ.C,function(I){return I.f4.EG===b.f4.EG&&I.Dj===b.Dj})||(TZ.C.push(b),J.push(b))})}; S7=function(){this.C=this.U=null}; UlG=function(F,J){function b(I,u){J(I,u)} if(F.U==null)return!1;F.C=g.xL(F.U,function(I){return I!=null&&I.l0()}); F.C&&(F.C.init(b)?T87(F.C.C):J(F.C.C.gE(),F.C));return F.C!=null}; s0=function(F){F=xlv(F);Qf.call(this,F.length?F[F.length-1]:new Yg(K_,0));this.T=F;this.U=null}; xlv=function(F){if(!F.length)return[];F=(0,g.qN)(F,function(b){return b!=null&&b.WO()}); for(var J=1;Jb.time?J:b},F[0])}; XL=function(F){F=F===void 0?K_:F;Qf.call(this,new Yg(F,2))}; QC=function(){var F=HM3();Yg.call(this,K_.top,F,"geo")}; HM3=function(){Sw();var F=Tv();return F.T||F.U?0:2}; Ljz=function(){}; R8=function(){this.done=!1;this.C={P6:0,v4:0,r$R:0,L0:0,yU:-1,N3:0,Lz:0,Iw:0,GnQ:0};this.D=null;this.W=!1;this.T=null;this.V=0;this.U=new sN(this)}; kR=function(){var F=DS;F.W||(F.W=!0,Fxa(F,function(){return F.Z.apply(F,g.W(g.Ba.apply(0,arguments)))}),F.Z())}; JhY=function(){VF(Ljz);var F=VF(S7);F.C!=null&&F.C.C?T87(F.C.C):Tv().update(K_)}; O0=function(F,J,b){if(!F.done&&(F.U.cancel(),J.length!=0)){F.T=null;try{JhY();var I=cY();Sw().D=I;if(VF(S7).C!=null)for(var u=0;u=0?cY()-UG:-1,q=cY();u.C.yU==-1&&(M=q);var v=Tv(),a=Sw(),e=Ah(a.Dy),K=r2();try{if(K.length>0){var p=v.C;p&&(e.bs=[HY(p),p.getHeight()]);var m=v.D;m&&(e.ps=[m.width,m.height]);K_.screen&&(e.scs=[K_.screen.width,K_.screen.height])}else e.url=encodeURIComponent(K_.location.href.substring(0,512)),w.referrer&&(e.referrer=encodeURIComponent(w.referrer.substring(0,512))); e.tt=M;e.pt=UG;e.bin=a.U;K_.google_osd_load_pub_page_exp!==void 0&&(e.olpp=K_.google_osd_load_pub_page_exp);e.deb=[1,u.C.P6,u.C.v4,u.C.L0,u.C.yU,0,u.U.U,u.C.N3,u.C.Lz,u.C.Iw,u.C.GnQ,-1].join(";");e.tvt=IA7(u,q);v.U&&(e.inapp=1);if(K_!==null&&K_!=K_.top){K.length>0&&(e.iframe_loc=encodeURIComponent(K_.location.href.substring(0,512)));var y=v.V;e.is=[HY(y),y.getHeight()]}}catch(f){e.error=1}DS.T=e}p=g.To(DS.T);m=Sw().C;M5(m.T,"prf")==1?(y=new Ti,u=m.C,w=0,u.C>-1&&(w=u.T.C.now()-u.C),y=nI(y,1,Mu(u.Z+ w),0),u=m.C,y=nI(y,5,aF(u.C>-1?u.U+1:u.U),0),y=nI(y,2,lv(m.U.C.T()),"0"),y=nI(y,3,lv(m.U.C.U()),"0"),m=nI(y,4,lv(m.U.C.C()),"0"),y={},m=(y.pf=g.zw(m.C()),y)):m={};g.Sq(p,m);g.Sq(J,I,b,p,F())}])}; Mw7=function(){var F=wYa||K_;if(!F)return"";var J=[];if(!F.location||!F.location.href)return"";J.push("url="+encodeURIComponent(F.location.href.substring(0,512)));F.document&&F.document.referrer&&J.push("referrer="+encodeURIComponent(F.document.referrer.substring(0,512)));return J.join("&")}; o8=function(){var F="youtube.player.web_20250218_01_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250218_01_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250218_01_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250218_01_RC00".match(/_(\d{8})_\d+_RC\d+$/),J;if(((J=F)==null?void 0:J.length)==2)return F[1];F="youtube.player.web_20250218_01_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var b;return((b=F)==null?void 0:b.length)==3?"20"+F[1]+F[2]:null}; Ahz=function(){return"av.default_js".includes("ima_html5_sdk")?{s0:"ima",uS:null}:"av.default_js".includes("ima_native_sdk")?{s0:"nima",uS:null}:"av.default_js".includes("admob-native-video-javascript")?{s0:"an",uS:null}:"youtube.player.web_20250218_01_RC00".includes("cast_js_sdk")?{s0:"cast",uS:o8()}:"youtube.player.web_20250218_01_RC00".includes("youtube.player.web")?{s0:"yw",uS:o8()}:"youtube.player.web_20250218_01_RC00".includes("outstream_web_client")?{s0:"out",uS:o8()}:"youtube.player.web_20250218_01_RC00".includes("drx_rewarded_web")? {s0:"r",uS:o8()}:"youtube.player.web_20250218_01_RC00".includes("gam_native_web_video")?{s0:"n",uS:o8()}:"youtube.player.web_20250218_01_RC00".includes("admob_interstitial_video")?{s0:"int",uS:o8()}:{s0:"j",uS:null}}; U0=function(F,J){var b={sv:"966"};hS!==null&&(b.v=hS);b.cb=qGz;b.nas=TZ.C.length;b.msg=F;J!==void 0&&(F=vI_(J))&&(b.e=c2[F]);return b}; xR=function(F){return Wk(F,"custom_metric_viewable")}; vI_=function(F){var J=xR(F)?"custom_metric_viewable":F.toLowerCase();return Go(j7,function(b){return b==J})}; aAm=function(){this.C=void 0;this.U=!1;this.T=0;this.Z=-1;this.D="tos"}; pYa=function(F){try{var J=F.split(",");return J.length>g.dl(eAa).length?null:Gi(J,function(b,I){I=I.toLowerCase().split("=");if(I.length!=2||Kxz[I[0]]===void 0||!Kxz[I[0]](I[1]))throw Error("Entry ("+I[0]+", "+I[1]+") is invalid.");b[I[0]]=I[1];return b},{})}catch(b){return null}}; gIC=function(F,J){if(F.C==void 0)return 0;switch(F.D){case "mtos":return F.U?xg(J.C,F.C):xg(J.U,F.C);case "tos":return F.U?UN(J.C,F.C):UN(J.U,F.C)}return 0}; nq=function(F,J,b,I){g2.call(this,J,I);this.V=F;this.Y=b}; tS=function(){}; ZS=function(F){g2.call(this,"fully_viewable_audible_half_duration_impression",F)}; H2=function(F){this.C=F}; Lq=function(F,J){g2.call(this,F,J)}; F0=function(F){ma.call(this,"measurable_impression",F)}; Jy=function(){H2.apply(this,arguments)}; bo=function(F,J,b){zZ.call(this,F,J,b)}; IE=function(F){F=F===void 0?K_:F;Qf.call(this,new Yg(F,2))}; uo=function(F,J,b){zZ.call(this,F,J,b)}; wi=function(F){F=F===void 0?K_:F;Qf.call(this,new Yg(F,2))}; Mw=function(){Yg.call(this,K_,2,"mraid");this.fW=0;this.eE=this.Gj=!1;this.V=null;this.U=m6m(this.T);this.Z.C=new ZA(0,0,0,0);this.qf=!1}; Ay=function(F,J,b){F.Ui("addEventListener",J,b)}; zAC=function(F){Sw().Z=!!F.Ui("isViewable");Ay(F,"viewableChange",m5z);F.Ui("getState")==="loading"?Ay(F,"ready",yhJ):i__(F)}; i__=function(F){typeof F.U.P5.AFMA_LIDAR==="string"?(F.Gj=!0,NfJ(F)):(F.U.compatibility=3,F.V="nc",F.R6("w"))}; NfJ=function(F){F.eE=!1;var J=M5(Sw().Dy,"rmmt")==1,b=!!F.Ui("isViewable");(J?!b:1)&&BY().setTimeout(oI(524,function(){F.eE||(lA3(F),hh(540,Error()),F.V="mt",F.R6("w"))}),500); fA3(F);Ay(F,F.U.P5.AFMA_LIDAR,Wx7)}; fA3=function(F){var J=M5(Sw().Dy,"sneio")==1,b=F.U.P5.AFMA_LIDAR_EXP_1!==void 0,I=F.U.P5.AFMA_LIDAR_EXP_2!==void 0;(J=J&&I)&&(F.U.P5.AFMA_LIDAR_EXP_2=!0);b&&(F.U.P5.AFMA_LIDAR_EXP_1=!J)}; lA3=function(F){F.Ui("removeEventListener",F.U.P5.AFMA_LIDAR,Wx7);F.Gj=!1}; d5m=function(F,J){if(F.Ui("getState")==="loading")return new g.gl(-1,-1);J=F.Ui(J);if(!J)return new g.gl(-1,-1);F=parseInt(J.width,10);J=parseInt(J.height,10);return isNaN(F)||isNaN(J)?new g.gl(-1,-1):new g.gl(F,J)}; yhJ=function(){try{var F=VF(Mw);F.Ui("removeEventListener","ready",yhJ);i__(F)}catch(J){hh(541,J)}}; Wx7=function(F,J){try{var b=VF(Mw);b.eE=!0;var I=F?new ZA(F.y,F.x+F.width,F.y+F.height,F.x):new ZA(0,0,0,0);var u=cY(),w=Su();var M=new JW(u,w,b);M.C=I;M.volume=J;b.e$(M)}catch(q){hh(542,q)}}; m5z=function(F){var J=Sw(),b=VF(Mw);F&&!J.Z&&(J.Z=!0,b.qf=!0,b.V&&b.R6("w",!0))}; qw=function(){this.isInitialized=!1;this.C=this.U=null;var F={};this.V=(F.start=this.MEQ,F.firstquartile=this.OWW,F.midpoint=this.DfG,F.thirdquartile=this.EQ_,F.complete=this.gQQ,F.error=this.WGz,F.pause=this.GO,F.resume=this.v3,F.skip=this.fvz,F.viewable_impression=this.lS,F.mute=this.Fs,F.unmute=this.Fs,F.fullscreen=this.qQG,F.exitfullscreen=this.AzG,F.fully_viewable_audible_half_duration_impression=this.lS,F.measurable_impression=this.lS,F.abandon=this.GO,F.engagedview=this.lS,F.impression=this.lS, F.creativeview=this.lS,F.progress=this.Fs,F.custom_metric_viewable=this.lS,F.bufferstart=this.GO,F.bufferfinish=this.v3,F.audio_measurable=this.lS,F.audio_audible=this.lS,F);F={};this.Y=(F.overlay_resize=this.iWG,F.abandon=this.VU,F.close=this.VU,F.collapse=this.VU,F.overlay_unmeasurable_impression=function(J){return GZ(J,"overlay_unmeasurable_impression",Su())},F.overlay_viewable_immediate_impression=function(J){return GZ(J,"overlay_viewable_immediate_impression",Su())},F.overlay_unviewable_impression= function(J){return GZ(J,"overlay_unviewable_impression",Su())},F.overlay_viewable_end_of_session_impression=function(J){return GZ(J,"overlay_viewable_end_of_session_impression",Su())},F); Sw().U=3;EIm(this);this.T=null}; vQ=function(F,J,b,I){F=F.zM(null,I,!0,J);F.Z=b;h$o([F]);return F}; jIz=function(F,J,b){yz_(J);var I=F.C;g.gy(J,function(u){var w=g.EG(u.criteria,function(M){var q=pYa(M);if(q==null)M=null;else if(M=new aAm,q.visible!=null&&(M.C=q.visible/100),q.audible!=null&&(M.U=q.audible==1),q.time!=null){var v=q.timetype=="mtos"?"mtos":"tos",a=D4J(q.time,"%")?"%":"ms";q=parseInt(q.time,10);a=="%"&&(q/=100);M.setTime(q,a,v)}return M}); Bc(w,function(M){return M==null})||fVv(b,new nq(u.id,u.event,w,I))})}; Giv=function(){var F=[],J=Sw();F.push(VF(QC));M5(J.Dy,"mvp_lv")&&F.push(VF(Mw));J=[new IE,new wi];J.push(new s0(F));J.push(new XL(K_));return J}; Vwv=function(F){if(!F.isInitialized){F.isInitialized=!0;try{var J=cY(),b=Sw(),I=Tv();UG=J;b.T=79463069;F.U!=="o"&&(wYa=rzm(K_));if(OuY()){DS.C.v4=0;DS.C.yU=cY()-J;var u=Giv(),w=VF(S7);w.U=u;UlG(w,function(){aE()})?DS.done||(b_G(),$g(w.C.C,F),kR()):I.T?aE():kR()}else ef=!0}catch(M){throw TZ.reset(),M; }}}; p8=function(F){DS.U.cancel();K8=F;DS.done=!0}; gi=function(F){if(F.U)return F.U;var J=VF(S7).C;if(J)switch(J.getName()){case "nis":F.U="n";break;case "gsv":F.U="m"}F.U||(F.U="h");return F.U}; mU=function(F,J,b){if(F.C==null)return J.oB|=4,!1;F=PTk(F.C,b,J);J.oB|=F;return F==0}; aE=function(){var F=[new XL(K_)],J=VF(S7);J.U=F;UlG(J,function(){p8("i")})?DS.done||(b_G(),kR()):p8("i")}; BfC=function(F,J){if(!F.Q2){var b=GZ(F,"start",Su());b=F.PR.C(b).C;var I={id:"lidarv"};I.r=J;I.sv="966";hS!==null&&(I.v=hS);QX(b,function(u,w){return I[u]=u=="mtos"||u=="tos"?w:encodeURIComponent(w)}); J=Mw7();QX(J,function(u,w){return I[u]=encodeURIComponent(w)}); J="//pagead2.googlesyndication.com/pagead/gen_204?"+kg(DG(new RN,I));k5a(J);F.Q2=!0}}; yP=function(F,J,b){O0(DS,[F],!Su());j2a(F,b);b!=4&&Eo4(F.Gj,b,F.wl);return GZ(F,J,Su())}; EIm=function(F){uVY(function(){var J=TfG();F.U!=null&&(J.sdk=F.U);var b=VF(S7);b.C!=null&&(J.avms=b.C.getName());return J})}; rhv=function(F,J,b,I){var u=Dlz(TZ,b);u!==null&&u.Dj!==J&&(F.iU(u),u=null);u||(J=F.zM(b,cY(),!1,J),TZ.U.length==0&&(Sw().T=79463069),cN_([J]),u=J,u.Z=gi(F),I&&(u.Jz=I));return u}; SGa=function(F,J){var b=F[J];b!==void 0&&b>0&&(F[J]=Math.floor(b*1E3))}; TfG=function(){var F=Tv(),J={},b={},I={};return Object.assign({},(J.sv="966",J),hS!==null&&(b.v=hS,b),(I["if"]=F.T?"1":"0",I.nas=String(TZ.C.length),I))}; io=function(F){g2.call(this,"audio_audible",F)}; zM=function(F){ma.call(this,"audio_measurable",F)}; Nw=function(){H2.apply(this,arguments)}; lo=function(){}; sIv=function(F){this.C=F}; PTk=function(F,J,b){F=F.U();if(typeof F==="function"){var I={};var u={};I=Object.assign({},hS!==null&&(I.v=hS,I),(u.sv="966",u.cb=qGz,u.e=YGC(J),u));u=GZ(b,J,Su());g.Sq(I,u);b.VC[J]=u;I=b.E0()==2?D6k(I).join("&"):b.PR.C(I).C;try{return F(b.Dj,I,J),0}catch(w){return 2}}else return 1}; YGC=function(F){var J=xR(F)?"custom_metric_viewable":F;F=Go(j7,function(b){return b==J}); return c2[F]}; f8=function(){qw.call(this);this.W=null;this.D=!1;this.Z="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; $5Y=function(F,J,b){b=b.opt_configurable_tracking_events;F.C!=null&&Array.isArray(b)&&jIz(F,b,J)}; CTm=function(F,J,b){var I=B2(TZ,J);I||(I=b.opt_nativeTime||-1,I=vQ(F,J,gi(F),I),b.opt_osdId&&(I.Jz=b.opt_osdId));return I}; XY7=function(F,J,b){var I=B2(TZ,J);I||(I=vQ(F,J,"n",b.opt_nativeTime||-1));return I}; QIo=function(F,J){var b=B2(TZ,J);b||(b=vQ(F,J,"h",-1));return b}; RAo=function(F){Sw();switch(gi(F)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; O_Y=function(F,J,b,I){b=b===void 0?{}:b;var u={};g.Sq(u,{opt_adElement:void 0,opt_fullscreen:void 0},b);var w=F.PH(J,b);b=w?w.PR:F.m7();if(u.opt_bounds)return b.C(U0("ol",I));if(I!==void 0)if(vI_(I)!==void 0)if(ef)F=U0("ue",I);else if(Vwv(F),K8=="i")F=U0("i",I),F["if"]=0;else if(J=F.PH(J,u)){b:{K8=="i"&&(J.Pc=!0);w=u.opt_fullscreen;w!==void 0&&bR(J,!!w);var M;if(w=!Tv().U)(w=jm(g.Bk(),"CrKey")&&!(jm(g.Bk(),"CrKey")&&jm(g.Bk(),"SmartSpeaker"))||jm(g.Bk(),"PlayStation")||jm(g.Bk(),"Roku")||G57()||jm(g.Bk(), "Xbox"))||(w=g.Bk(),w=jm(w,"AppleTV")||jm(w,"Apple TV")||jm(w,"CFNetwork")||jm(w,"tvOS")),w||(w=g.Bk(),w=jm(w,"sdk_google_atv_x86")||jm(w,"Android TV")),w=!w;w&&(BY(),w=mx(rj)===0);if(M=w){switch(J.E0()){case 1:BfC(J,"pv");break;case 2:F.zO(J)}p8("pv")}w=I.toLowerCase();if(M=!M)M=M5(Sw().Dy,"ssmol")&&w==="loaded"?!1:g.te(D5z,w);if(M&&J.vS==0){K8!="i"&&(DS.done=!1);M=u!==void 0?u.opt_nativeTime:void 0;th=M=typeof M==="number"?M:cY();J.NN=!0;var q=Su();J.vS=1;J.x4={};J.x4.start=!1;J.x4.firstquartile= !1;J.x4.midpoint=!1;J.x4.thirdquartile=!1;J.x4.complete=!1;J.x4.resume=!1;J.x4.pause=!1;J.x4.skip=!1;J.x4.mute=!1;J.x4.unmute=!1;J.x4.viewable_impression=!1;J.x4.measurable_impression=!1;J.x4.fully_viewable_audible_half_duration_impression=!1;J.x4.fullscreen=!1;J.x4.exitfullscreen=!1;J.TA=0;q||(J.v9().Y=M);O0(DS,[J],!q)}(M=J.ZU[w])&&a8(J.Cv,M);M5(Sw().Dy,"fmd")||g.te(kim,w)&&J.OT&&J.OT.U(J,null);switch(J.E0()){case 1:var v=xR(w)?F.V.custom_metric_viewable:F.V[w];break;case 2:v=F.Y[w]}if(v&&(I=v.call(F, J,u,I),M5(Sw().Dy,"fmd")&&g.te(kim,w)&&J.OT&&J.OT.U(J,null),I!==void 0)){u=U0(void 0,w);g.Sq(u,I);I=u;break b}I=void 0}J.vS==3&&F.iU(J);F=I}else F=U0("nf",I);else F=void 0;else ef?F=U0("ue"):w?(F=U0(),g.Sq(F,Vhz(w,!0,!1,!1))):F=U0("nf");return typeof F==="string"?b.C():b.C(F)}; oIk=function(F,J){J&&(F.Z=J)}; hA4=function(F){var J={};return J.viewability=F.C,J.googleViewability=F.U,J}; chJ=function(F,J,b){b=b===void 0?{}:b;F=O_Y(VF(f8),J,b,F);return hA4(F)}; EY=function(F){var J=g.Ba.apply(1,arguments).filter(function(I){return I}).join("&"); if(!J)return F;var b=F.match(/[?&]adurl=/);return b?F.slice(0,b.index+1)+J+"&"+F.slice(b.index+1):F+(F.indexOf("?")===-1?"?":"&")+J}; x5Y=function(F){var J=F.url;F=F.zgQ;this.C=J;this.V=F;F=/[?&]dsh=1(&|$)/.test(J);this.D=!F&&/[?&]ae=1(&|$)/.test(J);this.W=!F&&/[?&]ae=2(&|$)/.test(J);if((this.U=/[?&]adurl=([^&]*)/.exec(J))&&this.U[1]){try{var b=decodeURIComponent(this.U[1])}catch(I){b=null}this.T=b}this.Z=(new Date).getTime()-U5a}; nIz=function(F){F=F.V;if(!F)return"";var J="";F.platform&&(J+="&uap="+encodeURIComponent(F.platform));F.platformVersion&&(J+="&uapv="+encodeURIComponent(F.platformVersion));F.uaFullVersion&&(J+="&uafv="+encodeURIComponent(F.uaFullVersion));F.architecture&&(J+="&uaa="+encodeURIComponent(F.architecture));F.model&&(J+="&uam="+encodeURIComponent(F.model));F.bitness&&(J+="&uab="+encodeURIComponent(F.bitness));F.fullVersionList&&(J+="&uafvl="+encodeURIComponent(F.fullVersionList.map(function(b){return encodeURIComponent(b.brand)+ ";"+encodeURIComponent(b.version)}).join("|"))); typeof F.wow64!=="undefined"&&(J+="&uaw="+Number(F.wow64));return J.substring(1)}; Z_G=function(F,J,b,I,u){var w=window,M=b?"//pagead2.googlesyndication.com/bg/"+tQ(b)+".js":"";b=w.document;var q={};J&&(q._scs_=J);q._bgu_=M;q._bgp_=I;q._li_="v_h.3.0.0.0";u&&(q._upb_=u);(J=w.GoogleTyFxhY)&&typeof J.push=="function"||(J=w.GoogleTyFxhY=[]);J.push(q);J=Qj(b).createElement("SCRIPT");J.type="text/javascript";J.async=!0;F=Jx_(twv,tQ(F)+".js");g.k_(J,F);(w=(w.GoogleTyFxhYEET||{})[J.src])?w():b.getElementsByTagName("head")[0].appendChild(J)}; H_z=function(){try{var F,J;return!!((F=window)==null?0:(J=F.top)==null?0:J.location.href)&&!1}catch(b){return!0}}; PQ=function(){var F=Lx4();F=F===void 0?"bevasrsg":F;return new Promise(function(J){var b=window===window.top?window:H_z()?window:window.top,I=b[F],u;((u=I)==null?0:u.bevasrs)?J(new VP(I.bevasrs)):(I||(I={},I=(I.nqfbel=[],I),b[F]=I),I.nqfbel.push(function(w){J(new VP(w))}))})}; F2a=function(F){var J={c:F.Gi,e:F.wG,mc:F.xS,me:F.Ft};F.Oa&&(J.co={c:F.Oa.DT,a:F.Oa.Fz,s:F.Oa.l2});return J}; BQ=function(F){g.R.call(this);this.wpc=F}; VP=function(F){g.R.call(this);var J=this;this.w0=F;this.T="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.C=void 0;this.Al=this.w0.p;this.Z=this.qw.bind(this);this.addOnDisposeCallback(function(){return void JW4(J)})}; bLo=function(F){var J;return g.S(function(b){if(b.C==1){if(!F.w0.wpc)throw new uW(30,"NWA");return F.U?b.return(F.U):g.T(b,F.w0.wpc(),2)}J=b.U;F.U=new BQ(J);return b.return(F.U)})}; JW4=function(F){F.C!==void 0&&(F.T.forEach(function(J){var b;(b=F.C)==null||b.removeEventListener(J,F.Z)}),F.C=void 0)}; wcG=function(F){if(g.d5(g.Zi(F)))return!1;if(F.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")>=0)return!0;try{var J=new g.a2(F)}catch(b){return g.xL(IGm,function(I){return F.search(I)>0})!=null}return J.W.match(uwv)?!0:g.xL(IGm,function(b){return F.match(b)!=null})!=null}; g.TM=function(F,J){return F.replace(MuG,function(b,I){try{var u=g.P1(J,I);if(u==null||u.toString()==null)return b;u=u.toString();if(u==""||!g.d5(g.Zi(u)))return encodeURIComponent(u).replace(/%2C/g,",")}catch(w){}return b})}; qNa=function(F){var J=AW7.Sg;if(J){var b,I;(I=(b=performance).mark)==null||I.call(b,"signalSetStart__"+F)}b={};return b[Symbol.dispose]=function(){if(J){var u,w;(w=(u=performance).measure)==null||w.call(u,"signalSet__"+F,"signalSetStart__"+F)}},b}; ri=function(F,J){return Object.is(F,J)}; sY=function(F){var J=Sf;Sf=F;return J}; vgm=function(F){if(F.BS!==void 0){var J=YQ;YQ=!0;try{for(var b=g.N(F.BS),I=b.next();!I.done;I=b.next()){var u=I.value;u.Y8||(F=void 0,u.Y8=!0,vgm(u),(F=u.K0)==null||F.call(u,u))}}finally{YQ=J}}}; aGa=function(){var F;return((F=Sf)==null?void 0:F.hn)!==!1}; eY4=function(F){F&&(F.KJ=0);return sY(F)}; K2z=function(F,J){sY(J);if(F&&F.K8!==void 0&&F.TI!==void 0&&F.fU!==void 0){if($Q(F))for(J=F.KJ;JF.KJ;)F.K8.pop(),F.fU.pop(),F.TI.pop()}}; gga=function(F,J,b){pcY(F);if(F.BS.length===0&&F.K8!==void 0)for(var I=0;I0}; mB_=function(F){F.K8!=null||(F.K8=[]);F.TI!=null||(F.TI=[]);F.fU!=null||(F.fU=[])}; pcY=function(F){F.BS!=null||(F.BS=[]);F.zZ!=null||(F.zZ=[])}; iLk=function(F){function J(){if(YQ)throw Error("");if(Sf!==null){var I=Sf.KJ++;mB_(Sf);I0?" "+J:J))}}; g.wD=function(F,J){if(F.classList)Array.prototype.forEach.call(J,function(u){g.uG(F,u)}); else{var b={};Array.prototype.forEach.call(Jn(F),function(u){b[u]=!0}); Array.prototype.forEach.call(J,function(u){b[u]=!0}); J="";for(var I in b)J+=J.length>0?" "+I:I;g.bG(F,J)}}; g.Mr=function(F,J){F.classList?F.classList.remove(J):g.I3(F,J)&&g.bG(F,Array.prototype.filter.call(Jn(F),function(b){return b!=J}).join(" "))}; g.An=function(F,J){F.classList?Array.prototype.forEach.call(J,function(b){g.Mr(F,b)}):g.bG(F,Array.prototype.filter.call(Jn(F),function(b){return!g.te(J,b)}).join(" "))}; g.qr=function(F,J,b){b?g.uG(F,J):g.Mr(F,J)}; TjG=function(F,J){var b=!g.I3(F,J);g.qr(F,J,b)}; g.vV=function(){g.Zr.call(this);this.C=0;this.endTime=this.startTime=null}; rWo=function(F,J){Array.isArray(J)||(J=[J]);J=J.map(function(b){return typeof b==="string"?b:b.property+" "+b.duration+"s "+b.timing+" "+b.delay+"s"}); g.aN(F,"transition",J.join(","))}; a3=function(F,J,b,I,u){g.vV.call(this);this.U=F;this.D=J;this.W=b;this.Z=I;this.V=Array.isArray(u)?u:[u]}; SNk=function(F,J,b,I){return new a3(F,J,{opacity:b},{opacity:I},{property:"opacity",duration:J,timing:"ease-in",delay:0})}; YNa=function(F){F=GV(F);if(F=="")return null;var J=String(F.slice(0,4)).toLowerCase();if(("url("1||F&&F.split(")"),null;if(F.indexOf("(")>0){if(/"|'/.test(F))return null;J=/([\-\w]+)\(/g;for(var b;b=J.exec(F);)if(!(b[1].toLowerCase()in sNa))return null}return F}; eM=function(F,J){F=g.Qz[F];return F&&F.prototype?(J=Object.getOwnPropertyDescriptor(F.prototype,J))&&J.get||null:null}; $BJ=function(F){var J=g.Qz.CSSStyleDeclaration;return J&&J.prototype&&J.prototype[F]||null}; Cum=function(F,J,b,I){if(F)return F.apply(J,I);if(g.K6&&document.documentMode<10){if(!J[b].call)throw Error("IE Clobbering detected");}else if(typeof J[b]!="function")throw Error("Clobbering detected");return J[b].apply(J,I)}; kvv=function(F){if(!F)return"";var J=document.createElement("div").style;Xcv(F).forEach(function(b){var I=g.xM&&b in QNG?b:b.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");Wk(I,"--")||Wk(I,"var")||(b=Cum(RYm,F,F.getPropertyValue?"getPropertyValue":"getAttribute",[b])||"",b=YNa(b),b!=null&&Cum(DB4,J,J.setProperty?"setProperty":"setAttribute",[I,b]))}); return J.cssText||""}; Xcv=function(F){g.ca(F)?F=g.JL(F):(F=g.dl(F),g.Hk(F,"cssText"));return F}; g.gD=function(F){var J,b=J=0,I=!1;F=F.split(OL3);for(var u=0;u.4?-1:1;return(J==0?null:J)==-1?"rtl":"ltr"}; g.z8=function(F){if(F instanceof m5||F instanceof yN||F instanceof iG)return F;if(typeof F.next=="function")return new m5(function(){return F}); if(typeof F[Symbol.iterator]=="function")return new m5(function(){return F[Symbol.iterator]()}); if(typeof F.WF=="function")return new m5(function(){return F.WF()}); throw Error("Not an iterator or iterable.");}; m5=function(F){this.U=F}; yN=function(F){this.U=F}; iG=function(F){m5.call(this,function(){return F}); this.T=F}; Nr=function(F,J,b,I,u,w,M,q){this.C=F;this.V=J;this.T=b;this.D=I;this.Z=u;this.W=w;this.U=M;this.Y=q}; lG=function(F,J){if(J==0)return F.C;if(J==1)return F.U;var b=v1(F.C,F.T,J),I=v1(F.T,F.Z,J);F=v1(F.Z,F.U,J);b=v1(b,I,J);I=v1(I,F,J);return v1(b,I,J)}; UB_=function(F,J){var b=(J-F.C)/(F.U-F.C);if(b<=0)return 0;if(b>=1)return 1;for(var I=0,u=1,w=0,M=0;M<8;M++){w=lG(F,b);var q=(lG(F,b+1E-6)-w)/1E-6;if(Math.abs(w-J)<1E-6)return b;if(Math.abs(q)<1E-6)break;else w1E-6&&M<8;M++)w=0}; g.EJ=function(F){g.R.call(this);this.W=1;this.T=[];this.Z=0;this.C=[];this.U={};this.V=!!F}; ng7=function(F,J,b){g.qf(function(){F.apply(J,b)})}; g.jM=function(F){this.C=F}; G8=function(F){this.C=F}; tua=function(F){this.data=F}; ZLY=function(F){return F===void 0||F instanceof tua?F:new tua(F)}; VN=function(F){this.C=F}; g.HLm=function(F){var J=F.creation;F=F.expiration;return!!F&&Fg.L3()}; g.PV=function(F){this.C=F}; L2v=function(){}; BV=function(){}; T8=function(F){this.C=F;this.U=null}; rD=function(F){if(F.C==null)throw Error("Storage mechanism: Storage unavailable");var J;((J=F.U)!=null?J:F.isAvailable())||N8(Error("Storage mechanism: Storage unavailable"))}; SM=function(){var F=null;try{F=g.Qz.localStorage||null}catch(J){}T8.call(this,F)}; Fav=function(){var F=null;try{F=g.Qz.sessionStorage||null}catch(J){}T8.call(this,F)}; sJ=function(F,J){this.U=F;this.C=J+"::"}; g.Yd=function(F){var J=new SM;return J.isAvailable()?F?new sJ(J,F):J:null}; $d=function(F,J){this.C=F;this.U=J}; C6=function(F){this.C=[];if(F)a:{if(F instanceof C6){var J=F.b7();F=F.td();if(this.C.length<=0){for(var b=this.C,I=0;I>>6:(w<65536?q[b++]=224|w>>>12:(q[b++]=240|w>>>18,q[b++]=128|w>>>12&63),q[b++]=128|w>>> 6&63),q[b++]=128|w&63);return q}; DC=function(F){for(var J=F.length;--J>=0;)F[J]=0}; kd=function(F,J,b,I,u){this.l$=F;this.cK=J;this.m2=b;this.lc=I;this.AJz=u;this.Mn=F&&F.length}; OJ=function(F,J){this.Nu=F;this.W_=0;this.RX=J}; o3=function(F,J){F.hw[F.pending++]=J&255;F.hw[F.pending++]=J>>>8&255}; hn=function(F,J,b){F.Jh>16-b?(F.KF|=J<>16-F.Jh,F.Jh+=b-16):(F.KF|=J<>>=1,b<<=1;while(--J>0);return b>>>1}; ISC=function(F,J,b){var I=Array(16),u=0,w;for(w=1;w<=15;w++)I[w]=u=u+b[w-1]<<1;for(b=0;b<=J;b++)u=F[b*2+1],u!==0&&(F[b*2]=bqz(I[u]++,u))}; uLC=function(F){var J;for(J=0;J<286;J++)F.dZ[J*2]=0;for(J=0;J<30;J++)F.Ku[J*2]=0;for(J=0;J<19;J++)F.sJ[J*2]=0;F.dZ[512]=1;F.V$=F.dc=0;F.jS=F.matches=0}; w2C=function(F){F.Jh>8?o3(F,F.KF):F.Jh>0&&(F.hw[F.pending++]=F.KF);F.KF=0;F.Jh=0}; M73=function(F,J,b){w2C(F);o3(F,b);o3(F,~b);R3.t2(F.hw,F.window,J,b,F.pending);F.pending+=b}; ASk=function(F,J,b,I){var u=J*2,w=b*2;return F[u]>>7)];cV(F,M,b);q=HV[M];q!==0&&(u-=L6[M],hn(F,u,q))}}while(I>1;M>=1;M--)UJ(F,b,M);v=w;do M=F.oP[1],F.oP[1]=F.oP[F.X1--],UJ(F,b,1),I=F.oP[1],F.oP[--F.Vf]=M,F.oP[--F.Vf]=I,b[v*2]=b[M*2]+b[I*2],F.depth[v]=(F.depth[M]>=F.depth[I]?F.depth[M]:F.depth[I])+1,b[M*2+1]=b[I*2+1]=v,F.oP[1]=v++,UJ(F,b,1);while(F.X1>= 2);F.oP[--F.Vf]=F.oP[1];M=J.Nu;v=J.W_;I=J.RX.l$;u=J.RX.Mn;w=J.RX.cK;var a=J.RX.m2,e=J.RX.AJz,K,p=0;for(K=0;K<=15;K++)F.ov[K]=0;M[F.oP[F.Vf]*2+1]=0;for(J=F.Vf+1;J<573;J++){var m=F.oP[J];K=M[M[m*2+1]*2+1]+1;K>e&&(K=e,p++);M[m*2+1]=K;if(!(m>v)){F.ov[K]++;var y=0;m>=a&&(y=w[m-a]);var f=M[m*2];F.V$+=f*(K+y);u&&(F.dc+=f*(I[m*2+1]+y))}}if(p!==0){do{for(K=e-1;F.ov[K]===0;)K--;F.ov[K]--;F.ov[K+1]+=2;F.ov[e]--;p-=2}while(p>0);for(K=e;K!==0;K--)for(m=F.ov[K];m!==0;)I=F.oP[--J],I>v||(M[I*2+1]!==K&&(F.V$+=(K- M[I*2+1])*M[I*2],M[I*2+1]=K),m--)}ISC(b,q,F.ov)}; vRm=function(F,J,b){var I,u=-1,w=J[1],M=0,q=7,v=4;w===0&&(q=138,v=3);J[(b+1)*2+1]=65535;for(I=0;I<=b;I++){var a=w;w=J[(I+1)*2+1];++M>>=1)if(J&1&&F.dZ[b*2]!==0)return 0;if(F.dZ[18]!==0||F.dZ[20]!==0||F.dZ[26]!==0)return 1;for(b=32;b<256;b++)if(F.dZ[b*2]!==0)return 1;return 0}; JE=function(F,J,b){F.hw[F.YN+F.jS*2]=J>>>8&255;F.hw[F.YN+F.jS*2+1]=J&255;F.hw[F.Rr+F.jS]=b&255;F.jS++;J===0?F.dZ[b*2]++:(F.matches++,J--,F.dZ[(xd[b]+256+1)*2]++,F.Ku[(J<256?ZC[J]:ZC[256+(J>>>7)])*2]++);return F.jS===F.Hq-1}; Ip=function(F,J){F.msg=bJ[J];return J}; uJ=function(F){for(var J=F.length;--J>=0;)F[J]=0}; wF=function(F){var J=F.state,b=J.pending;b>F.eZ&&(b=F.eZ);b!==0&&(R3.t2(F.output,J.hw,J.Oe,b,F.MK),F.MK+=b,J.Oe+=b,F.CS+=b,F.eZ-=b,J.pending-=b,J.pending===0&&(J.Oe=0))}; qj=function(F,J){var b=F.dX>=0?F.dX:-1,I=F.Wb-F.dX,u=0;if(F.level>0){F.a8.wU===2&&(F.a8.wU=e8m(F));F$(F,F.nG);F$(F,F.q2);vRm(F,F.dZ,F.nG.W_);vRm(F,F.Ku,F.q2.W_);F$(F,F.uj);for(u=18;u>=3&&F.sJ[KaC[u]*2+1]===0;u--);F.V$+=3*(u+1)+5+5+4;var w=F.V$+3+7>>>3;var M=F.dc+3+7>>>3;M<=w&&(w=M)}else w=M=I+5;if(I+4<=w&&b!==-1)hn(F,J?1:0,3),M73(F,b,I);else if(F.strategy===4||M===w)hn(F,2+(J?1:0),3),q0_(F,Mj,AE);else{hn(F,4+(J?1:0),3);b=F.nG.W_+1;I=F.q2.W_+1;u+=1;hn(F,b-257,5);hn(F,I-1,5);hn(F,u-4,4);for(w=0;w>>8&255;F.hw[F.pending++]=J&255}; p2z=function(F,J){var b=F.x9,I=F.Wb,u=F.LD,w=F.eU,M=F.Wb>F.QM-262?F.Wb-(F.QM-262):0,q=F.window,v=F.Su,a=F.U1,e=F.Wb+258,K=q[I+u-1],p=q[I+u];F.LD>=F.C6&&(b>>=2);w>F.nk&&(w=F.nk);do{var m=J;if(q[m+u]===p&&q[m+u-1]===K&&q[m]===q[I]&&q[++m]===q[I+1]){I+=2;for(m++;q[++I]===q[++m]&&q[++I]===q[++m]&&q[++I]===q[++m]&&q[++I]===q[++m]&&q[++I]===q[++m]&&q[++I]===q[++m]&&q[++I]===q[++m]&&q[++I]===q[++m]&&Iu){F.kG=J;u=m;if(m>=w)break;K=q[I+u-1];p=q[I+u]}}}while((J=a[J&v])>M&&--b!== 0);return u<=F.nk?u:F.nk}; pX=function(F){var J=F.QM,b;do{var I=F.tH-F.nk-F.Wb;if(F.Wb>=J+(J-262)){R3.t2(F.window,F.window,J,J,0);F.kG-=J;F.Wb-=J;F.dX-=J;var u=b=F.E3;do{var w=F.head[--u];F.head[u]=w>=J?w-J:0}while(--b);u=b=J;do w=F.U1[--u],F.U1[u]=w>=J?w-J:0;while(--b);I+=J}if(F.a8.zi===0)break;u=F.a8;b=F.window;w=F.Wb+F.nk;var M=u.zi;M>I&&(M=I);M===0?b=0:(u.zi-=M,R3.t2(b,u.input,u.a7,M,w),u.state.wrap===1?u.d9=e4(u.d9,b,M,w):u.state.wrap===2&&(u.d9=KX(u.d9,b,M,w)),u.a7+=M,u.CO+=M,b=M);F.nk+=b;if(F.nk+F.wB>=3)for(I=F.Wb-F.wB, F.I8=F.window[I],F.I8=(F.I8<=3&&(F.I8=(F.I8<=3)if(b=JE(F,F.Wb-F.kG,F.Ae-3),F.nk-=F.Ae,F.Ae<=F.dH&&F.nk>=3){F.Ae--;do F.Wb++,F.I8=(F.I8<=3&&(F.I8=(F.I8<4096)&&(F.Ae=2));if(F.LD>=3&&F.Ae<=F.LD){I=F.Wb+F.nk-3;b=JE(F,F.Wb-1-F.qd,F.LD-3);F.nk-=F.LD-1;F.LD-=2;do++F.Wb<=I&&(F.I8=(F.I8<=3&&F.Wb>0&&(I=F.Wb-1,b=w[I],b===w[++I]&&b===w[++I]&&b===w[++I])){for(u=F.Wb+258;b===w[++I]&&b===w[++I]&&b===w[++I]&&b===w[++I]&&b===w[++I]&&b===w[++I]&&b===w[++I]&&b===w[++I]&&IF.nk&&(F.Ae=F.nk)}F.Ae>=3?(b=JE(F,1,F.Ae-3),F.nk-=F.Ae,F.Wb+=F.Ae,F.Ae=0):(b=JE(F,0,F.window[F.Wb]),F.nk--,F.Wb++);if(b&&(qj(F,!1),F.a8.eZ===0))return 1}F.wB=0;return J=== 4?(qj(F,!0),F.a8.eZ===0?3:4):F.jS&&(qj(F,!1),F.a8.eZ===0)?1:2}; mNY=function(F,J){for(var b;;){if(F.nk===0&&(pX(F),F.nk===0)){if(J===0)return 1;break}F.Ae=0;b=JE(F,0,F.window[F.Wb]);F.nk--;F.Wb++;if(b&&(qj(F,!1),F.a8.eZ===0))return 1}F.wB=0;return J===4?(qj(F,!0),F.a8.eZ===0?3:4):F.jS&&(qj(F,!1),F.a8.eZ===0)?1:2}; y9=function(F,J,b,I,u){this.nR=F;this.WO_=J;this.z8Q=b;this.gmQ=I;this.func=u}; yS7=function(){this.a8=null;this.status=0;this.hw=null;this.wrap=this.pending=this.Oe=this.NQ=0;this.q0=null;this.Na=0;this.method=8;this.wC=-1;this.Su=this.QS=this.QM=0;this.window=null;this.tH=0;this.head=this.U1=null;this.eU=this.C6=this.strategy=this.level=this.dH=this.x9=this.LD=this.nk=this.kG=this.Wb=this.Be=this.qd=this.Ae=this.dX=this.Z_=this.e2=this.tv=this.E3=this.I8=0;this.dZ=new R3.hg(1146);this.Ku=new R3.hg(122);this.sJ=new R3.hg(78);uJ(this.dZ);uJ(this.Ku);uJ(this.sJ);this.uj=this.q2= this.nG=null;this.ov=new R3.hg(16);this.oP=new R3.hg(573);uJ(this.oP);this.Vf=this.X1=0;this.depth=new R3.hg(573);uJ(this.depth);this.Jh=this.KF=this.wB=this.matches=this.dc=this.V$=this.YN=this.jS=this.Hq=this.Rr=0}; iq3=function(F,J){if(!F||!F.state||J>5||J<0)return F?Ip(F,-2):-2;var b=F.state;if(!F.output||!F.input&&F.zi!==0||b.status===666&&J!==4)return Ip(F,F.eZ===0?-5:-2);b.a8=F;var I=b.wC;b.wC=J;if(b.status===42)if(b.wrap===2)F.d9=0,vT(b,31),vT(b,139),vT(b,8),b.q0?(vT(b,(b.q0.text?1:0)+(b.q0.sG?2:0)+(b.q0.extra?4:0)+(b.q0.name?8:0)+(b.q0.comment?16:0)),vT(b,b.q0.time&255),vT(b,b.q0.time>>8&255),vT(b,b.q0.time>>16&255),vT(b,b.q0.time>>24&255),vT(b,b.level===9?2:b.strategy>=2||b.level<2?4:0),vT(b,b.q0.os& 255),b.q0.extra&&b.q0.extra.length&&(vT(b,b.q0.extra.length&255),vT(b,b.q0.extra.length>>8&255)),b.q0.sG&&(F.d9=KX(F.d9,b.hw,b.pending,0)),b.Na=0,b.status=69):(vT(b,0),vT(b,0),vT(b,0),vT(b,0),vT(b,0),vT(b,b.level===9?2:b.strategy>=2||b.level<2?4:0),vT(b,3),b.status=113);else{var u=8+(b.QS-8<<4)<<8;u|=(b.strategy>=2||b.level<2?0:b.level<6?1:b.level===6?2:3)<<6;b.Wb!==0&&(u|=32);b.status=113;ap(b,u+(31-u%31));b.Wb!==0&&(ap(b,F.d9>>>16),ap(b,F.d9&65535));F.d9=1}if(b.status===69)if(b.q0.extra){for(u= b.pending;b.Na<(b.q0.extra.length&65535)&&(b.pending!==b.NQ||(b.q0.sG&&b.pending>u&&(F.d9=KX(F.d9,b.hw,b.pending-u,u)),wF(F),u=b.pending,b.pending!==b.NQ));)vT(b,b.q0.extra[b.Na]&255),b.Na++;b.q0.sG&&b.pending>u&&(F.d9=KX(F.d9,b.hw,b.pending-u,u));b.Na===b.q0.extra.length&&(b.Na=0,b.status=73)}else b.status=73;if(b.status===73)if(b.q0.name){u=b.pending;do{if(b.pending===b.NQ&&(b.q0.sG&&b.pending>u&&(F.d9=KX(F.d9,b.hw,b.pending-u,u)),wF(F),u=b.pending,b.pending===b.NQ)){var w=1;break}w=b.Nau&&(F.d9=KX(F.d9,b.hw,b.pending-u,u));w===0&&(b.Na=0,b.status=91)}else b.status=91;if(b.status===91)if(b.q0.comment){u=b.pending;do{if(b.pending===b.NQ&&(b.q0.sG&&b.pending>u&&(F.d9=KX(F.d9,b.hw,b.pending-u,u)),wF(F),u=b.pending,b.pending===b.NQ)){w=1;break}w=b.Nau&&(F.d9=KX(F.d9,b.hw,b.pending-u,u));w===0&&(b.status=103)}else b.status= 103;b.status===103&&(b.q0.sG?(b.pending+2>b.NQ&&wF(F),b.pending+2<=b.NQ&&(vT(b,F.d9&255),vT(b,F.d9>>8&255),F.d9=0,b.status=113)):b.status=113);if(b.pending!==0){if(wF(F),F.eZ===0)return b.wC=-1,0}else if(F.zi===0&&(J<<1)-(J>4?9:0)<=(I<<1)-(I>4?9:0)&&J!==4)return Ip(F,-5);if(b.status===666&&F.zi!==0)return Ip(F,-5);if(F.zi!==0||b.nk!==0||J!==0&&b.status!==666){I=b.strategy===2?mNY(b,J):b.strategy===3?gR_(b,J):iJ[b.level].func(b,J);if(I===3||I===4)b.status=666;if(I===1||I===3)return F.eZ===0&&(b.wC= -1),0;if(I===2&&(J===1?(hn(b,2,3),cV(b,256,Mj),b.Jh===16?(o3(b,b.KF),b.KF=0,b.Jh=0):b.Jh>=8&&(b.hw[b.pending++]=b.KF&255,b.KF>>=8,b.Jh-=8)):J!==5&&(hn(b,0,3),M73(b,0,0),J===3&&(uJ(b.head),b.nk===0&&(b.Wb=0,b.dX=0,b.wB=0))),wF(F),F.eZ===0))return b.wC=-1,0}if(J!==4)return 0;if(b.wrap<=0)return 1;b.wrap===2?(vT(b,F.d9&255),vT(b,F.d9>>8&255),vT(b,F.d9>>16&255),vT(b,F.d9>>24&255),vT(b,F.CO&255),vT(b,F.CO>>8&255),vT(b,F.CO>>16&255),vT(b,F.CO>>24&255)):(ap(b,F.d9>>>16),ap(b,F.d9&65535));wF(F);b.wrap>0&& (b.wrap=-b.wrap);return b.pending!==0?0:1}; zT=function(F){if(!(this instanceof zT))return new zT(F);F=this.options=R3.assign({level:-1,method:8,chunkSize:16384,HE:15,f7R:8,strategy:0,qP:""},F||{});F.raw&&F.HE>0?F.HE=-F.HE:F.aY&&F.HE>0&&F.HE<16&&(F.HE+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.a8=new z8C;this.a8.eZ=0;var J=this.a8;var b=F.level,I=F.method,u=F.HE,w=F.f7R,M=F.strategy;if(J){var q=1;b===-1&&(b=6);u<0?(q=0,u=-u):u>15&&(q=2,u-=16);if(w<1||w>9||I!==8||u<8||u>15||b<0||b>9||M<0||M>4)J=Ip(J,-2);else{u===8&&(u=9); var v=new yS7;J.state=v;v.a8=J;v.wrap=q;v.q0=null;v.QS=u;v.QM=1<>=7;w<30;w++)for(L6[w]=M<<7,u=0;u<1<=a.QM&&(J===0&&(uJ(a.head),a.Wb=0,a.dX=0,a.wB=0),b=new R3.R4(a.QM),R3.t2(b,w,M-a.QM,a.QM,0),w=b,M=a.QM);b=F.zi;I=F.a7;u=F.input;F.zi=M;F.a7=0;F.input=w;for(pX(a);a.nk>=3;){w=a.Wb;M=a.nk-2;do a.I8=(a.I8<8&&((0,b[3])((0,b[3])((0,b[3])((0,b[75])(b[56],b[73]),b[88],b[52]),b[51],b[30],b[40]),b[13],b[42],b[1]),10)||(0,b[52])((0,b[85])((0,b[18])(b[63],b[30]),b[20],b[30]),b[85],(0,b[20])(b[32]),b[18],b[60],b[30]),b[34]!==0&&(b[33]<=5&&((0,b[20])(b[36]),[])||(0,b[86])((0,b[80])(),b[21],b[56]))}catch(I){(((0,b[86])((0,b[10])(),b[21],b[67]),b[70])(b[29],b[58]),b[86])((0,b[80])(), b[21],b[58])}try{b[30]>=-10&&((0,b[45])(b[56]),b[37])(b[56],b[12])>(0,b[45])(b[46]),(b[40]===10||(((0,b[14])(b[30],b[58]),b[85])((0,b[85])((0,b[13])(b[42],b[26]),b[18],b[50],b[30]),b[14],b[42],b[80]),0))&&(0,b[52])(((0,b[51])(b[32],b[86]),b[18])(b[35],b[30]),b[85],(0,b[14])(b[56],b[81]),b[18],b[new Date("1969-12-31T20:01:09.000-04:00")/1E3],b[42])}catch(I){((0,b[13])(b[30],b[0]),b[18])(b[22],b[21])}try{b[29]<-8&&(b[17]>=-1?(0,b[12])(((0,b[2])((0,b[75])(),b[6],b[30]),(0,b[20])(b[30])),b[14],(0,b[85])((0,b[51])(b[21], b[65]),b[87],b[6],b[36]),b[30],b[27]):(0,b[85])(((0,b[20])(b[42])^(0,b[2])((0,b[8])(),b[67],b[30])&(0,b[2])((0,b[8])(),b[67],b[30]))*(0,b[18])(b[55],b[32]),b[2],(0,b[8])(),b[67],b[32]))}catch(I){(0,b[18])(b[23],b[32])}try{b[80]!==7?(0,b[85])((0,b[13])(b[30],b[49]),b[62],b[32],b[34]):((0,b[18])(b[28],b[36]),b[18])(b[25],b[21]),b[81]===-9?(((0,b[85])((0,b[62])(b[36],b[64]),b[2],(0,b[78])(),b[9],b[30]),b[43])(b[21]),b[2])((0,b[45])(),b[67],b[30]):(((0,b[85])((0,b[13])(b[42],b[44]),b[13],b[32],b[39]), b[14])(b[21],b[66]),b[14])(b[21],b[74]),b[71]!==6&&(b[28]>5||((((0,b[51])(b[36],b[4]),(0,b[77])(b[55]),b[85])(b[66],b[67]),((((0,b[48])(b[66],b[63]),b[36])((0,b[22])(),b[11],b[64]),b[48])(b[0],b[17]),b[85])(b[76],b[27]),b[77])(b[62],b[21]),0))&&(0,b[32])(((0,b[63])(b[41]),(0,b[38])(b[51],b[56]),(0,b[22])((0,b[65])(),b[87],b[50]),b[32])((0,b[22])((0,b[28])(),b[87],b[52]),b[38],(0,b[63])(b[52]),b[88],b[41]),b[33],(0,b[22])((0,b[5])(),b[87],b[52]),b[26],b[1])}catch(I){((0,b[22])((0,b[65])(),b[29],b[52]), b[71])(b[52],b[68]),(0,b[40])(b[52])}try{b[80]<9&&((0,b[33])(b[26],b[67]),1)||(0,b[38])(b[23],b[52]),b[84]>-5&&(0,b[33])(b[62],b[27]),b[61]!=-4&&(b[47]!=3||(((0,b[32])((0,b[22])((0,b[5])(),b[19],b[52]),b[22],(0,b[36])((0,b[82])(b[26],b[61]),b[38],b[7],b[52]),(0,b[5])(),b[new Date("1969-12-31T20:16:27.000-03:45")/1E3],b[41]),b[38])(b[25],b[52]),void 0))&&(((0,b[71])(b[56],b[74]),b[69])(b[13],b[1]),(0,b[76])(b[67],b[7]),(0,b[15])((0,b[50])(b[5],b[18]),b[62],b[55],b[60])),b[89]<=-5&&(b[28]>=-7?((0,b[67])(b[29], b[81]),(0,b[67])(b[66],b[79])):(0,b[65])((0,b[62])(b[9],b[44]),b[28],b[85],b[86]))}catch(I){(0,b[79])((0,b[62])(),b[53],b[7]),(((0,b[90])(b[16],b[87]),b[4])(b[10],b[18]),b[4])(b[69],b[7])}}catch(I){return"jfVyr8x8AOQqp0B1eL-_w8_"+F}return J.join("")}; X2Y=function(F){return F,"long"[2+!!F]}; g.Ek=function(F){this.name=F}; Q8k=function(F){this.Z7=S2(F)}; j4=function(F){this.Z7=S2(F)}; GT=function(F){this.Z7=S2(F)}; R8G=function(F){this.Z7=S2(F)}; V9=function(F){this.Z7=S2(F)}; PT=function(F){this.Z7=S2(F)}; BT=function(F){this.Z7=S2(F)}; TT=function(F){this.Z7=S2(F)}; rF=function(F){this.Z7=S2(F)}; S4=function(F){this.Z7=S2(F)}; sk=function(F){this.Z7=S2(F)}; YD=function(F){this.Z7=S2(F)}; $D=function(F){this.Z7=S2(F)}; Q9=function(F){this.Z7=S2(F)}; Rp=function(F){this.Z7=S2(F)}; Dk=function(F){this.Z7=S2(F,500)}; kD=function(F){this.Z7=S2(F)}; Ok=function(F){this.Z7=S2(F)}; DNa=function(F){this.Z7=S2(F)}; kZz=function(){return g.kC("yt.ads.biscotti.lastId_")||""}; Oqk=function(F){g.RG("yt.ads.biscotti.lastId_",F)}; hE=function(){var F=arguments,J=op;F.length>1?J[F[0]]=F[1]:F.length===1&&Object.assign(J,F[0])}; g.cT=function(F,J){return F in op?op[F]:J}; Uk=function(F){var J=op.EXPERIMENT_FLAGS;return J?J[F]:void 0}; oR3=function(F){xD.forEach(function(J){return J(F)})}; g.tE=function(F){return F&&window.yterr?function(){try{return F.apply(this,arguments)}catch(J){g.nX(J)}}:F}; g.nX=function(F){var J=g.kC("yt.logging.errors.log");J?J(F,"ERROR",void 0,void 0,void 0,void 0,void 0):(J=g.cT("ERRORS",[]),J.push([F,"ERROR",void 0,void 0,void 0,void 0,void 0]),hE("ERRORS",J));oR3(F)}; Zk=function(F,J,b,I,u){var w=g.kC("yt.logging.errors.log");w?w(F,"WARNING",J,b,I,void 0,u):(w=g.cT("ERRORS",[]),w.push([F,"WARNING",J,b,I,void 0,u]),hE("ERRORS",w))}; HT=function(F,J){J=F.split(J);for(var b={},I=0,u=J.length;I1?F[1]:F[0])):{}}; IR=function(F,J){return xN3(F,J||{},!0)}; ui=function(F,J){return xN3(F,J||{},!1)}; xN3=function(F,J,b){var I=F.split("#",2);F=I[0];I=I.length>1?"#"+I[1]:"";var u=F.split("?",2);F=u[0];u=FF(u[1]||"");for(var w in J)if(b||!g.Ea(u,w))u[w]=J[w];return g.Os(F,u)+I}; w$=function(F){if(!J)var J=window.location.href;var b=g.$V(1,F),I=g.Cu(F);b&&I?(F=F.match(YV),J=J.match(YV),F=F[3]==J[3]&&F[1]==J[1]&&F[4]==J[4]):F=I?g.Cu(J)===I&&(Number(g.$V(4,J))||null)===(Number(g.$V(4,F))||null):!0;return F}; Mk=function(F){F||(F=document.location.href);F=g.$V(1,F);return F!==null&&F==="https"}; AR=function(F){F=nR3(F);return F===null?!1:F[0]==="com"&&F[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; t7o=function(F){F=nR3(F);return F===null?!1:F[1]==="google"?!0:F[2]==="google"?F[0]==="au"&&F[1]==="com"?!0:F[0]==="uk"&&F[1]==="co"?!0:!1:!1}; nR3=function(F){F=g.Cu(F);return F!==null?F.split(".").reverse():null}; h8v=function(F){return F&&F.match(Zqo)?F:n5(F)}; aR=function(F){var J=qk;F=F===void 0?kZz():F;var b=Object,I=b.assign,u=vx(J);var w=J.C;try{var M=w.screenX;var q=w.screenY}catch(G){}try{var v=w.outerWidth;var a=w.outerHeight}catch(G){}try{var e=w.innerWidth;var K=w.innerHeight}catch(G){}try{var p=w.screenLeft;var m=w.screenTop}catch(G){}try{e=w.innerWidth,K=w.innerHeight}catch(G){}try{var y=w.screen.availWidth;var f=w.screen.availTop}catch(G){}w=[p,m,M,q,y,f,v,a,e,K];M=i27(!1,J.C.top);q={};var d=d===void 0?g.Qz:d;v=new kQ;"SVGElement"in d&&"createElementNS"in d.document&&v.set(0);a=Tb4();a["allow-top-navigation-by-user-activation"]&&v.set(1);a["allow-popups-to-escape-sandbox"]&&v.set(2);d.crypto&&d.crypto.subtle&&v.set(3);"TextDecoder"in d&&"TextEncoder"in d&&v.set(4);d=Gvz(v);J=(q.bc=d,q.bih=M.height,q.biw=M.width,q.brdim=w.join(),q.vis=mx(J.U),q.wgl=!!K_.WebGLRenderingContext,q);b=I.call(b,u,J);b.ca_type="image";F&&(b.bid=F);return b}; vx=function(F){var J={};J.dt=Hq7;J.flash="0";a:{try{var b=F.C.top.location.href}catch(e){F=2;break a}F=b?b===F.U.location.href?0:1:2}J=(J.frm=F,J);try{J.u_tz=-(new Date).getTimezoneOffset();var I=I===void 0?K_:I;try{var u=I.history.length}catch(e){u=0}J.u_his=u;var w;J.u_h=(w=K_.screen)==null?void 0:w.height;var M;J.u_w=(M=K_.screen)==null?void 0:M.width;var q;J.u_ah=(q=K_.screen)==null?void 0:q.availHeight;var v;J.u_aw=(v=K_.screen)==null?void 0:v.availWidth;var a;J.u_cd=(a=K_.screen)==null?void 0: a.colorDepth}catch(e){}return J}; FUz=function(){if(!Lak)return null;var F=Lak();return"open"in F?F:null}; g.Kl=function(F){switch(eN(F)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; eN=function(F){return F&&"status"in F?F.status:-1}; g.pl=function(F,J){typeof F==="function"&&(F=g.tE(F));return window.setTimeout(F,J)}; g.g$=function(F,J){typeof F==="function"&&(F=g.tE(F));return window.setInterval(F,J)}; g.m1=function(F){window.clearTimeout(F)}; g.ii=function(F){window.clearInterval(F)}; g.Nk=function(F){F=zk(F);return typeof F==="string"&&F==="false"?!1:!!F}; g.li=function(F,J){F=zk(F);return F===void 0&&J!==void 0?J:Number(F||0)}; fl=function(){return g.cT("EXPERIMENTS_TOKEN","")}; zk=function(F){return g.cT("EXPERIMENT_FLAGS",{})[F]}; Wx=function(){for(var F=[],J=g.cT("EXPERIMENTS_FORCED_FLAGS",{}),b=g.N(Object.keys(J)),I=b.next();!I.done;I=b.next())I=I.value,F.push({key:I,value:String(J[I])});b=g.cT("EXPERIMENT_FLAGS",{});I=g.N(Object.keys(b));for(var u=I.next();!u.done;u=I.next())u=u.value,u.startsWith("force_")&&J[u]===void 0&&F.push({key:u,value:String(b[u])});return F}; d$=function(F,J,b,I,u,w,M,q){function v(){(a&&"readyState"in a?a.readyState:0)===4&&J&&g.tE(J)(a)} b=b===void 0?"GET":b;I=I===void 0?"":I;q=q===void 0?!1:q;var a=FUz();if(!a)return null;"onloadend"in a?a.addEventListener("loadend",v,!1):a.onreadystatechange=v;g.Nk("debug_forward_web_query_parameters")&&(F=Jy4(F,window.location.search));a.open(b,F,!0);w&&(a.responseType=w);M&&(a.withCredentials=!0);b=b==="POST"&&(window.FormData===void 0||!(I instanceof FormData));if(u=b8_(F,u))for(var e in u)a.setRequestHeader(e,u[e]),"content-type"===e.toLowerCase()&&(b=!1);b&&a.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");if(q&&"setAttributionReporting"in XMLHttpRequest.prototype){F={eventSourceEligible:!0,triggerEligible:!1};try{a.setAttributionReporting(F)}catch(K){Zk(K)}}a.send(I);return a}; b8_=function(F,J){J=J===void 0?{}:J;var b=w$(F),I=g.cT("INNERTUBE_CLIENT_NAME"),u=g.Nk("web_ajax_ignore_global_headers_if_set"),w;for(w in I_m){var M=g.cT(I_m[w]),q=w==="X-Goog-AuthUser"||w==="X-Goog-PageId";w!=="X-Goog-Visitor-Id"||M||(M=g.cT("VISITOR_DATA"));var v;if(!(v=!M)){if(!(v=b||(g.Cu(F)?!1:!0))){v=F;var a;if(a=g.Nk("add_auth_headers_to_remarketing_google_dot_com_ping")&&w==="Authorization"&&(I==="TVHTML5"||I==="TVHTML5_UNPLUGGED"||I==="TVHTML5_SIMPLY")&&t7o(v))v=Tq(g.$V(5,v))||"",v=v.split("/"), v="/"+(v.length>1?v[1]:""),a=v==="/pagead";v=a?!0:!1}v=!v}v||u&&J[w]!==void 0||I==="TVHTML5_UNPLUGGED"&&q||(J[w]=M)}"X-Goog-EOM-Visitor-Id"in J&&"X-Goog-Visitor-Id"in J&&delete J["X-Goog-Visitor-Id"];if(b||!g.Cu(F))J["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(b||!g.Cu(F)){try{var e=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(K){}e&&(J["X-YouTube-Time-Zone"]=e)}document.location.hostname.endsWith("youtubeeducation.com")||!b&&g.Cu(F)||(J["X-YouTube-Ad-Signals"]= LX(aR()));return J}; wQY=function(F,J){var b=g.Cu(F);g.Nk("debug_handle_relative_url_for_query_forward_killswitch")||!b&&w$(F)&&(b=document.location.hostname);var I=Tq(g.$V(5,F));I=(b=b&&(b.endsWith("youtube.com")||b.endsWith("youtube-nocookie.com")))&&I&&I.startsWith("/api/");if(!b||I)return F;var u=FF(J),w={};g.gy(u03,function(M){u[M]&&(w[M]=u[M])}); return ui(F,w)}; jN=function(F,J){J.method="POST";J.postParams||(J.postParams={});return g.E6(F,J)}; qYo=function(F,J){if(window.fetch&&J.format!=="XML"){var b={method:J.method||"GET",credentials:"same-origin"};J.headers&&(b.headers=J.headers);J.priority&&(b.priority=J.priority);F=Mf4(F,J);var I=Aya(F,J);I&&(b.body=I);J.withCredentials&&(b.credentials="include");var u=J.context||g.Qz,w=!1,M;fetch(F,b).then(function(q){if(!w){w=!0;M&&g.m1(M);var v=q.ok,a=function(e){e=e||{};v?J.onSuccess&&J.onSuccess.call(u,e,q):J.onError&&J.onError.call(u,e,q);J.onFinish&&J.onFinish.call(u,e,q)}; (J.format||"JSON")==="JSON"&&(v||q.status>=400&&q.status<500)?q.json().then(a,function(){a(null)}):a(null)}}).catch(function(){J.onError&&J.onError.call(u,{},{})}); F=J.timeout||0;J.onFetchTimeout&&F>0&&(M=g.pl(function(){w||(w=!0,g.m1(M),J.onFetchTimeout.call(J.context||g.Qz))},F))}else g.E6(F,J)}; g.E6=function(F,J){var b=J.format||"JSON";F=Mf4(F,J);var I=Aya(F,J),u=!1,w=vQG(F,function(v){if(!u){u=!0;q&&g.m1(q);var a=g.Kl(v),e=null,K=400<=v.status&&v.status<500,p=500<=v.status&&v.status<600;if(a||K||p)e=a_z(F,b,v,J.convertToSafeHtml);a&&(a=ebY(b,v,e));e=e||{};K=J.context||g.Qz;a?J.onSuccess&&J.onSuccess.call(K,v,e):J.onError&&J.onError.call(K,v,e);J.onFinish&&J.onFinish.call(K,v,e)}},J.method,I,J.headers,J.responseType,J.withCredentials); I=J.timeout||0;if(J.onTimeout&&I>0){var M=J.onTimeout;var q=g.pl(function(){u||(u=!0,w.abort(),g.m1(q),M.call(J.context||g.Qz,w))},I)}return w}; Mf4=function(F,J){J.includeDomain&&(F=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+F);var b=g.cT("XSRF_FIELD_NAME");if(J=J.urlParams)J[b]&&delete J[b],F=IR(F,J);return F}; Aya=function(F,J){var b=g.cT("XSRF_FIELD_NAME"),I=g.cT("XSRF_TOKEN"),u=J.postBody||"",w=J.postParams,M=g.cT("XSRF_FIELD_NAME"),q;J.headers&&(q=J.headers["Content-Type"]);J.excludeXsrf||g.Cu(F)&&!J.withCredentials&&g.Cu(F)!==document.location.hostname||J.method!=="POST"||q&&q!=="application/x-www-form-urlencoded"||J.postParams&&J.postParams[M]||(w||(w={}),w[b]=I);(g.Nk("ajax_parse_query_data_only_when_filled")&&w&&Object.keys(w).length>0||w)&&typeof u==="string"&&(u=FF(u),g.Sq(u,w),u=J.postBodyFormat&& J.postBodyFormat==="JSON"?JSON.stringify(u):g.kV(u));w=u||w&&!g.Vj(w);!KUG&&w&&J.method!=="POST"&&(KUG=!0,g.nX(Error("AJAX request with postData should use POST")));return u}; a_z=function(F,J,b,I){var u=null;switch(J){case "JSON":try{var w=b.responseText}catch(M){throw I=Error("Error reading responseText"),I.params=F,Zk(I),M;}F=b.getResponseHeader("Content-Type")||"";w&&F.indexOf("json")>=0&&(w.substring(0,5)===")]}'\n"&&(w=w.substring(5)),u=JSON.parse(w));break;case "XML":if(F=(F=b.responseXML)?pQz(F):null)u={},g.gy(F.getElementsByTagName("*"),function(M){u[M.tagName]=gQm(M)})}I&&mwY(u); return u}; mwY=function(F){if(g.Um(F))for(var J in F)J==="html_content"||D4J(J,"_html")?F[J]=Y_(F[J]):mwY(F[J])}; ebY=function(F,J,b){if(J&&J.status===204)return!0;switch(F){case "JSON":return!!b;case "XML":return Number(b&&b.return_code)===0;case "RAW":return!0;default:return!!b}}; pQz=function(F){return F?(F=("responseXML"in F?F.responseXML:F).getElementsByTagName("root"))&&F.length>0?F[0]:null:null}; gQm=function(F){var J="";g.gy(F.childNodes,function(b){J+=b.nodeValue}); return J}; Vt=function(F,J){var b=g.To(J),I;return(new g.gb(function(u,w){b.onSuccess=function(M){g.Kl(M)?u(new yyk(M)):w(new Gk("Request failed, status="+eN(M),"net.badstatus",M))}; b.onError=function(M){w(new Gk("Unknown request error","net.unknown",M))}; b.onTimeout=function(M){w(new Gk("Request timed out","net.timeout",M))}; I=g.E6(F,b)})).rX(function(u){if(u instanceof l5){var w; (w=I)==null||w.abort()}return i5(u)})}; g.Px=function(F,J,b,I){function u(q,v,a){return q.rX(function(e){if(v<=0||eN(e.xhr)===403)return i5(new Gk("Request retried too many times","net.retryexhausted",e.xhr,e));e=Math.pow(2,b-v+1)*a;var K=M>0?Math.min(M,e):e;return w(a).then(function(){return u(Vt(F,J),v-1,K)})})} function w(q){return new g.gb(function(v){setTimeout(v,q)})} var M=M===void 0?-1:M;return u(Vt(F,J),b-1,I)}; Gk=function(F,J,b){iW.call(this,F+", errorCode="+J);this.errorCode=J;this.xhr=b;this.name="PromiseAjaxError"}; yyk=function(F){this.xhr=F}; Bx=function(F){this.C=F===void 0?null:F;this.T=0;this.U=null}; Tk=function(F){var J=new Bx;F=F===void 0?null:F;J.T=2;J.U=F===void 0?null:F;return J}; r$=function(F){var J=new Bx;F=F===void 0?null:F;J.T=1;J.U=F===void 0?null:F;return J}; g.Y6=function(F,J,b,I,u){SN||s6.set(""+F,J,{xD:b,path:"/",domain:I===void 0?"youtube.com":I,secure:u===void 0?!1:u})}; g.$6=function(F,J){if(!SN)return s6.get(""+F,J)}; g.Cl=function(F,J,b){SN||s6.remove(""+F,J===void 0?"/":J,b===void 0?"youtube.com":b)}; i8z=function(){if(g.Nk("embeds_web_enable_cookie_detection_fix")){if(!g.Qz.navigator.cookieEnabled)return!1}else if(!s6.isEnabled())return!1;if(!s6.isEmpty())return!0;g.Nk("embeds_web_enable_cookie_detection_fix")?s6.set("TESTCOOKIESENABLED","1",{xD:60,dkW:"none",secure:!0}):s6.set("TESTCOOKIESENABLED","1",{xD:60});if(s6.get("TESTCOOKIESENABLED")!=="1")return!1;s6.remove("TESTCOOKIESENABLED");return!0}; g.O=function(F,J){if(F)return F[J.name]}; XF=function(F){var J=g.cT("INNERTUBE_HOST_OVERRIDE");J&&(F=String(J)+String(XQ(F)));return F}; zbY=function(F){var J={};g.Nk("json_condensed_response")&&(J.prettyPrint="false");return F=ui(F,J)}; Qt=function(F,J){var b=b===void 0?{}:b;F={method:J===void 0?"POST":J,mode:w$(F)?"same-origin":"cors",credentials:w$(F)?"same-origin":"include"};J={};for(var I=g.N(Object.keys(b)),u=I.next();!u.done;u=I.next())u=u.value,b[u]&&(J[u]=b[u]);Object.keys(J).length>0&&(F.headers=J);return F}; RR=function(){var F=/Chrome\/(\d+)/.exec(g.Bk());return F?parseFloat(F[1]):NaN}; k6=function(){return g.D$("android")&&g.D$("chrome")&&!(g.D$("trident/")||g.D$("edge/"))&&!g.D$("cobalt")}; Nio=function(){return g.D$("armv7")||g.D$("aarch64")||g.D$("android")}; g.O6=function(){return g.D$("cobalt")}; oR=function(){return g.D$("cobalt")&&g.D$("appletv")}; hR=function(){return g.D$("(ps3; leanback shell)")||g.D$("ps3")&&g.O6()}; l_a=function(){return g.D$("(ps4; leanback shell)")||g.D$("ps4")&&g.O6()}; g.f_k=function(){return g.O6()&&(g.D$("ps4 vr")||g.D$("ps4 pro vr"))}; cx=function(){var F=/WebKit\/([0-9]+)/.exec(g.Bk());return!!(F&&parseInt(F[1],10)>=600)}; U6=function(){var F=/WebKit\/([0-9]+)/.exec(g.Bk());return!!(F&&parseInt(F[1],10)>=602)}; WUa=function(){return g.D$("iemobile")||g.D$("windows phone")&&g.D$("edge")}; tR=function(){return(x6||nl)&&g.D$("applewebkit")&&!g.D$("version")&&(!g.D$("safari")||g.D$("gsa/"))}; Hx=function(){return g.Z$&&g.D$("version/")}; Ll=function(){return g.D$("smart-tv")&&g.D$("samsung")}; g.D$=function(F){var J=g.Bk();return J?J.toLowerCase().indexOf(F)>=0:!1}; Ft=function(){return RWY()||tR()||Hx()?!0:g.cT("EOM_VISITOR_DATA")?!1:!0}; JC=function(F,J){return J===void 0||J===null?F:J==="1"||J===!0||J===1||J==="True"?!0:!1}; b8=function(F,J,b){for(var I in b)if(b[I]==J)return b[I];return F}; Ig=function(F,J){return J===void 0||J===null?F:Number(J)}; u8=function(F,J){return J===void 0||J===null?F:J.toString()}; wm=function(F,J){if(J){if(F==="fullwidth")return Infinity;if(F==="fullheight")return 0}return F&&(J=F.match(dw3))&&(F=Number(J[2]),J=Number(J[1]),!isNaN(F)&&!isNaN(J)&&F>0)?J/F:NaN}; M1=function(F){var J=F.docid||F.video_id||F.videoId||F.id;if(J)return J;J=F.raw_player_response;J||(F=F.player_response)&&(J=JSON.parse(F));return J&&J.videoDetails&&J.videoDetails.videoId||null}; EQv=function(F){return AC(F,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.q1=function(F){return F==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||F==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; AC=function(F,J){J=(J===void 0?0:J)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(J="EMBEDDED_PLAYER_MODE_PFL");var b=F.raw_embedded_player_response;if(!b&&(F=F.embedded_player_response))try{b=JSON.parse(F)}catch(I){return J}return b?b8(J,b.embeddedPlayerMode,jE3):J}; ag=function(F){iW.call(this,F.message||F.description||F.name);this.isMissing=F instanceof vK;this.isTimeout=F instanceof Gk&&F.errorCode=="net.timeout";this.isCanceled=F instanceof l5}; vK=function(){iW.call(this,"Biscotti ID is missing from server")}; GM3=function(){if(g.Nk("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!Ft())return Error("User has not consented - not fetching biscotti id.");var F=g.cT("PLAYER_VARS",{});if(g.P1(F,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(EQv(F))return Error("Biscotti id fetching has been disabled for pfl.")}; TiC=function(){var F=GM3();if(F!==void 0)return i5(F);e9||(e9=Vt("//googleads.g.doubleclick.net/pagead/id",VfJ).then(Po7).rX(function(J){return BiY(2,J)})); return e9}; Po7=function(F){F=F.xhr.responseText;if(!Wk(F,")]}'"))throw new vK;F=JSON.parse(F.substr(4));if((F.type||1)>1)throw new vK;F=F.id;Oqk(F);e9=r$(F);ryG(18E5,2);return F}; BiY=function(F,J){J=new ag(J);Oqk("");e9=Tk(J);F>0&&ryG(12E4,F-1);throw J;}; ryG=function(F,J){g.pl(function(){Vt("//googleads.g.doubleclick.net/pagead/id",VfJ).then(Po7,function(b){return BiY(J,b)}).rX(g.ac)},F)}; SYm=function(){try{var F=g.kC("yt.ads.biscotti.getId_");return F?F():TiC()}catch(J){return i5(J)}}; YYY=function(F){F&&(F.dataset?F.dataset[sEa()]="true":Gaz(F))}; $wz=function(F){return F?F.dataset?F.dataset[sEa()]:F.getAttribute("data-loaded"):null}; sEa=function(){return CoJ.loaded||(CoJ.loaded="loaded".replace(/\-([a-z])/g,function(F,J){return J.toUpperCase()}))}; XQk=function(){var F=document;if("visibilityState"in F)return F.visibilityState;var J=Kw+"VisibilityState";if(J in F)return F[J]}; pw=function(F,J){var b;Bc(F,function(I){b=J[I];return!!b}); return b}; gm=function(F){if(F.requestFullscreen)F=F.requestFullscreen(void 0);else if(F.webkitRequestFullscreen)F=F.webkitRequestFullscreen();else if(F.mozRequestFullScreen)F=F.mozRequestFullScreen();else if(F.msRequestFullscreen)F=F.msRequestFullscreen();else if(F.webkitEnterFullscreen)F=F.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return F instanceof Promise?F:Promise.resolve()}; i8=function(F){var J;g.mu()?ye()==F&&(J=document):J=F;return J&&(F=pw(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],J))?(J=F.call(J),J instanceof Promise?J:Promise.resolve()):Promise.resolve()}; QEm=function(F){return g.xL(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(J){return"on"+J.toLowerCase()in F})}; Rbk=function(){var F=document;return g.xL(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(J){return"on"+J.toLowerCase()in F})}; g.mu=function(){return!!pw(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; ye=function(F){F=F===void 0?!1:F;var J=pw(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(F)for(;J&&J.shadowRoot;)J=J.shadowRoot.fullscreenElement;return J?J:null}; zD=function(F){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(F=F||window.event){this.event=F;for(var J in F)J in Dwz||(this[J]=F[J]);this.scale=F.scale;this.rotation=F.rotation;var b=F.target||F.srcElement;b&&b.nodeType==3&&(b=b.parentNode);this.target=b;var I=F.relatedTarget; if(I)try{I=I.nodeName?I:null}catch(u){I=null}else this.type=="mouseover"?I=F.fromElement:this.type=="mouseout"&&(I=F.toElement);this.relatedTarget=I;this.clientX=F.clientX!=void 0?F.clientX:F.pageX;this.clientY=F.clientY!=void 0?F.clientY:F.pageY;this.keyCode=F.keyCode?F.keyCode:F.which;this.charCode=F.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=F.altKey;this.ctrlKey=F.ctrlKey;this.shiftKey=F.shiftKey;this.metaKey=F.metaKey;this.C=F.pageX;this.U=F.pageY}}catch(u){}}; kMv=function(F){if(document.body&&document.documentElement){var J=document.body.scrollTop+document.documentElement.scrollTop;F.C=F.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);F.U=F.clientY+J}}; O8v=function(F,J,b,I){I=I===void 0?{}:I;F.addEventListener&&(J!="mouseenter"||"onmouseenter"in document?J!="mouseleave"||"onmouseenter"in document?J=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(J="MozMousePixelScroll"):J="mouseout":J="mouseover");return Go(N1,function(u){var w=typeof u[4]==="boolean"&&u[4]==!!I,M=g.Um(u[4])&&g.Um(I)&&g.B1(u[4],I);return!!u.length&&u[0]==F&&u[1]==J&&u[2]==b&&(w||M)})}; g.l8=function(F,J,b,I){I=I===void 0?{}:I;if(!F||!F.addEventListener&&!F.attachEvent)return"";var u=O8v(F,J,b,I);if(u)return u;u=++oQC.count+"";var w=!(J!="mouseenter"&&J!="mouseleave"||!F.addEventListener||"onmouseenter"in document);var M=w?function(q){q=new zD(q);if(!MI(q.relatedTarget,function(v){return v==F},!0))return q.currentTarget=F,q.type=J,b.call(F,q)}:function(q){q=new zD(q); q.currentTarget=F;return b.call(F,q)}; M=g.tE(M);F.addEventListener?(J=="mouseenter"&&w?J="mouseover":J=="mouseleave"&&w?J="mouseout":J=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(J="MozMousePixelScroll"),hbz()||typeof I==="boolean"?F.addEventListener(J,M,I):F.addEventListener(J,M,!!I.capture)):F.attachEvent("on"+J,M);N1[u]=[F,J,b,M,I];return u}; Uw_=function(F){return cya(F,function(J){return g.I3(J,"ytp-ad-has-logging-urls")})}; cya=function(F,J){var b=document.body||document;return g.l8(b,"click",function(I){var u=MI(I.target,function(w){return w===b||J(w)},!0); u&&u!==b&&!u.disabled&&(I.currentTarget=u,F.call(u,I))})}; g.fw=function(F){F&&(typeof F=="string"&&(F=[F]),g.gy(F,function(J){if(J in N1){var b=N1[J],I=b[0],u=b[1],w=b[3];b=b[4];I.removeEventListener?hbz()||typeof b==="boolean"?I.removeEventListener(u,w,b):I.removeEventListener(u,w,!!b.capture):I.detachEvent&&I.detachEvent("on"+u,w);delete N1[J]}}))}; WK=function(F){for(var J in N1)N1[J][0]==F&&g.fw(J)}; dm=function(F){F=F||window.event;var J;F.composedPath&&typeof F.composedPath==="function"?J=F.composedPath():J=F.path;J&&J.length?F=J[0]:(F=F||window.event,F=F.target||F.srcElement,F.nodeType==3&&(F=F.parentNode));return F}; Ey=function(F){this.V=F;this.C=null;this.Z=0;this.W=null;this.D=0;this.U=[];for(F=0;F<4;F++)this.U.push(0);this.T=0;this.eE=g.l8(window,"mousemove",(0,g.tJ)(this.N,this));this.Y=g.g$((0,g.tJ)(this.Tj,this),25)}; j9=function(F){g.R.call(this);this.V=[];this.Um=F||this}; GD=function(F,J,b,I){for(var u=0;u0?b:0;b=I?Date.now()+I*1E3:0;if((I=I?(0,g.BK)():TD())&&window.JSON){typeof J!=="string"&&(J=JSON.stringify(J,void 0));try{I.set(F,J,b)}catch(u){I.remove(F)}}}; g.S9=function(F){var J=TD(),b=(0,g.BK)();if(!J&&!b||!window.JSON)return null;try{var I=J.get(F)}catch(u){}if(typeof I!=="string")try{I=b.get(F)}catch(u){}if(typeof I!=="string")return null;try{I=JSON.parse(I,void 0)}catch(u){}return I}; tf4=function(){var F=(0,g.BK)();if(F&&(F=F.U("yt-player-quality")))return F.creation}; g.sy=function(F){try{var J=TD(),b=(0,g.BK)();J&&J.remove(F);b&&b.remove(F)}catch(I){}}; g.Yq=function(){return g.S9("yt-remote-session-screen-id")}; Z8a=function(F){var J=this;this.U=void 0;this.C=!1;F.addEventListener("beforeinstallprompt",function(b){b.preventDefault();J.U=b}); F.addEventListener("appinstalled",function(){J.C=!0},{once:!0})}; $q=function(){if(!g.Qz.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.Qz.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.Qz.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.Qz.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.Qz.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(F){return"WEB_DISPLAY_MODE_UNKNOWN"}}; Cw=function(){this.z2=!0}; H8Y=function(){Cw.instance||(Cw.instance=new Cw);return Cw.instance}; LUY=function(F){switch(F){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}}; F5J=function(){this.C=g.cT("ALT_PREF_COOKIE_NAME","PREF");this.U=g.cT("ALT_PREF_COOKIE_DOMAIN","youtube.com");var F=g.$6(this.C);F&&this.parse(F)}; g.Qe=function(){Xt||(Xt=new F5J);return Xt}; g.Rg=function(F,J){return!!((Jno("f"+(Math.floor(J/31)+1))||0)&1<0;)switch(F=qP.shift(),F.type){case "ERROR":ua.AN(F.payload);break;case "EVENT":ua.logEvent(F.eventType,F.payload)}}; ae=function(F){v$||(ua?ua.AN(F):(qP.push({type:"ERROR",payload:F}),qP.length>10&&qP.shift()))}; eR=function(F,J){v$||(ua?ua.logEvent(F,J):(qP.push({type:"EVENT",eventType:F,payload:J}),qP.length>10&&qP.shift()))}; KD=function(F){if(F.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; pD=function(F){return F.substr(0,F.indexOf(":"))||F}; g.gZ=function(F,J,b,I,u){J=J===void 0?{}:J;b=b===void 0?vd_[F]:b;I=I===void 0?aCz[F]:I;u=u===void 0?e4m[F]:u;g.hC.call(this,b,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:F},J));this.type=F;this.message=b;this.level=I;this.C=u;Object.setPrototypeOf(this,g.gZ.prototype)}; mH=function(F,J){g.gZ.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:J,foundObjectStores:F},vd_.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,mH.prototype)}; yb=function(F,J){var b=Error.call(this);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.index=F;this.objectStore=J;Object.setPrototypeOf(this,yb.prototype)}; zl=function(F,J,b,I){J=pD(J);var u=F instanceof Error?F:Error("Unexpected error: "+F);if(u instanceof g.gZ)return u;F={objectStoreNames:b,dbName:J,dbVersion:I};if(u.name==="QuotaExceededError")return new g.gZ("QUOTA_EXCEEDED",F);if(g.ia&&u.name==="UnknownError")return new g.gZ("QUOTA_MAYBE_EXCEEDED",F);if(u instanceof yb)return new g.gZ("MISSING_INDEX",Object.assign({},F,{objectStore:u.objectStore,index:u.index}));if(u.name==="InvalidStateError"&&K5z.some(function(w){return u.message.includes(w)}))return new g.gZ("EXECUTE_TRANSACTION_ON_CLOSED_DB", F); if(u.name==="AbortError")return new g.gZ("UNKNOWN_ABORT",F,u.message);u.args=[Object.assign({},F,{name:"IdbError",Rt:u.name})];u.level="WARNING";return u}; g.NP=function(F,J,b){var I=Ie();return new g.gZ("IDB_NOT_SUPPORTED",{context:{caller:F,publicName:J,version:b,hasSucceededOnce:I==null?void 0:I.hasSucceededOnce}})}; pVv=function(F){if(!F)throw Error();throw F;}; gd3=function(F){return F}; la=function(F){this.C=F}; g.fD=function(F){function J(u){if(I.state.status==="PENDING"){I.state={status:"REJECTED",reason:u};u=g.N(I.U);for(var w=u.next();!w.done;w=u.next())w=w.value,w()}} function b(u){if(I.state.status==="PENDING"){I.state={status:"FULFILLED",value:u};u=g.N(I.C);for(var w=u.next();!w.done;w=u.next())w=w.value,w()}} var I=this;this.state={status:"PENDING"};this.C=[];this.U=[];F=F.C;try{F(b,J)}catch(u){J(u)}}; mrz=function(F,J,b,I,u){try{if(F.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var w=b(F.state.value);w instanceof g.fD?W$(F,J,w,I,u):I(w)}catch(M){u(M)}}; ynY=function(F,J,b,I,u){try{if(F.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var w=b(F.state.reason);w instanceof g.fD?W$(F,J,w,I,u):I(w)}catch(M){u(M)}}; W$=function(F,J,b,I,u){J===b?u(new TypeError("Circular promise chain detected.")):b.then(function(w){w instanceof g.fD?W$(F,J,w,I,u):I(w)},function(w){u(w)})}; i67=function(F,J,b){function I(){b(F.error);w()} function u(){J(F.result);w()} function w(){try{F.removeEventListener("success",u),F.removeEventListener("error",I)}catch(M){}} F.addEventListener("success",u);F.addEventListener("error",I)}; z4m=function(F){return new Promise(function(J,b){i67(F,J,b)})}; dZ=function(F){return new g.fD(new la(function(J,b){i67(F,J,b)}))}; El=function(F,J){return new g.fD(new la(function(b,I){function u(){var w=F?J(F):null;w?w.then(function(M){F=M;u()},I):b()} u()}))}; NDo=function(F,J){this.request=F;this.cursor=J}; lCz=function(F){return dZ(F).then(function(J){return J?new NDo(F,J):null})}; g.fCm=function(F){F.cursor.continue(void 0);return lCz(F.request)}; W5a=function(F,J){this.C=F;this.options=J;this.transactionCount=0;this.T=Math.round((0,g.jR)());this.U=!1}; g.Vb=function(F,J,b){F=F.C.createObjectStore(J,b);return new Gl(F)}; P$=function(F,J){F.C.objectStoreNames.contains(J)&&F.C.deleteObjectStore(J)}; g.rZ=function(F,J,b){return g.B$(F,[J],{mode:"readwrite",Em:!0},function(I){return g.Tl(I.objectStore(J),b)})}; g.B$=function(F,J,b,I){var u,w,M,q,v,a,e,K,p,m,y,f;return g.S(function(d){switch(d.C){case 1:var G={mode:"readonly",Em:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof b==="string"?G.mode=b:Object.assign(G,b);u=G;F.transactionCount++;w=u.Em?3:1;M=0;case 2:if(q){d.gD(4);break}M++;v=Math.round((0,g.jR)());g.lk(d,5);a=F.C.transaction(J,u.mode);G=new SR(a);G=drv(G,I);return g.T(d,G,7);case 7:return e=d.U,K=Math.round((0,g.jR)()),EdJ(F,v,K,M,void 0,J.join(),u),d.return(e);case 5:p=g.dY(d);m=Math.round((0,g.jR)()); y=zl(p,F.C.name,J.join(),F.C.version);if((f=y instanceof g.gZ&&!y.C)||M>=w)EdJ(F,v,m,M,y,J.join(),u),q=y;d.gD(2);break;case 4:return d.return(Promise.reject(q))}})}; EdJ=function(F,J,b,I,u,w,M){J=b-J;u?(u instanceof g.gZ&&(u.type==="QUOTA_EXCEEDED"||u.type==="QUOTA_MAYBE_EXCEEDED")&&eR("QUOTA_EXCEEDED",{dbName:pD(F.C.name),objectStoreNames:w,transactionCount:F.transactionCount,transactionMode:M.mode}),u instanceof g.gZ&&u.type==="UNKNOWN_ABORT"&&(b-=F.T,b<0&&b>=2147483648&&(b=0),eR("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:w,transactionDuration:J,transactionCount:F.transactionCount,dbDuration:b}),F.U=!0),j3Y(F,!1,I,w,J,M.tag),ae(u)):j3Y(F,!0,I,w,J, M.tag)}; j3Y=function(F,J,b,I,u,w){eR("TRANSACTION_ENDED",{objectStoreNames:I,connectionHasUnknownAbortedTransaction:F.U,duration:u,isSuccessful:J,tryCount:b,tag:w===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":w})}; Gl=function(F){this.C=F}; g.sl=function(F,J,b){F.C.createIndex(J,b,{unique:!1})}; G87=function(F,J){return g.Yu(F,{query:J},function(b){return b.delete().then(function(){return g.$u(b)})}).then(function(){})}; VMk=function(F,J,b){var I=[];return g.Yu(F,{query:J},function(u){if(!(b!==void 0&&I.length>=b))return I.push(u.getValue()),g.$u(u)}).then(function(){return I})}; BDz=function(F){return"getAllKeys"in IDBObjectStore.prototype?dZ(F.C.getAllKeys(void 0,void 0)):PGk(F)}; PGk=function(F){var J=[];return g.TDa(F,{query:void 0},function(b){J.push(b.cursor.primaryKey);return g.fCm(b)}).then(function(){return J})}; g.Tl=function(F,J,b){return dZ(F.C.put(J,b))}; g.Yu=function(F,J,b){F=F.C.openCursor(J.query,J.direction);return CD(F).then(function(I){return El(I,b)})}; g.TDa=function(F,J,b){var I=J.query;J=J.direction;F="openKeyCursor"in IDBObjectStore.prototype?F.C.openKeyCursor(I,J):F.C.openCursor(I,J);return lCz(F).then(function(u){return El(u,b)})}; SR=function(F){var J=this;this.C=F;this.T=new Map;this.U=!1;this.done=new Promise(function(b,I){J.C.addEventListener("complete",function(){b()}); J.C.addEventListener("error",function(u){u.currentTarget===u.target&&I(J.C.error)}); J.C.addEventListener("abort",function(){var u=J.C.error;if(u)I(u);else if(!J.U){u=g.gZ;for(var w=J.C.objectStoreNames,M=[],q=0;q=b))return I.push(u.getValue()),g.$u(u)}).then(function(){return I})}; g.Xs=function(F,J,b){F=F.C.openCursor(J.query===void 0?null:J.query,J.direction===void 0?"next":J.direction);return CD(F).then(function(I){return El(I,b)})}; Qb=function(F,J){this.request=F;this.cursor=J}; CD=function(F){return dZ(F).then(function(J){return J?new Qb(F,J):null})}; g.$u=function(F){F.cursor.continue(void 0);return CD(F.request)}; s33=function(F,J,b){return new Promise(function(I,u){function w(){p||(p=new W5a(M.result,{closed:K}));return p} var M=J!==void 0?self.indexedDB.open(F,J):self.indexedDB.open(F);var q=b.blocked,v=b.blocking,a=b.ivv,e=b.upgrade,K=b.closed,p;M.addEventListener("upgradeneeded",function(m){try{if(m.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(M.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");m.dataLoss&&m.dataLoss!=="none"&&eR("IDB_DATA_CORRUPTED",{reason:m.dataLossMessage||"unknown reason",dbName:pD(F)});var y=w(),f=new SR(M.transaction); e&&e(y,function(d){return m.oldVersion=d},f); f.done.catch(function(d){u(d)})}catch(d){u(d)}}); M.addEventListener("success",function(){var m=M.result;v&&m.addEventListener("versionchange",function(){v(w())}); m.addEventListener("close",function(){eR("IDB_UNEXPECTEDLY_CLOSED",{dbName:pD(F),dbVersion:m.version});a&&a()}); I(w())}); M.addEventListener("error",function(){u(M.error)}); q&&M.addEventListener("blocked",function(){q()})})}; YJ_=function(F,J,b){b=b===void 0?{}:b;return s33(F,J,b)}; Re=function(F,J){J=J===void 0?{}:J;var b,I,u,w;return g.S(function(M){if(M.C==1)return g.lk(M,2),b=self.indexedDB.deleteDatabase(F),I=J,(u=I.blocked)&&b.addEventListener("blocked",function(){u()}),g.T(M,z4m(b),4); if(M.C!=2)return g.Wa(M,0);w=g.dY(M);throw zl(w,F,"",-1);})}; DZ=function(F,J){this.name=F;this.options=J;this.T=!0;this.D=this.Z=0}; $rv=function(F,J){return new g.gZ("INCOMPATIBLE_DB_VERSION",{dbName:F.name,oldVersion:F.options.version,newVersion:J})}; g.ku=function(F,J){if(!J)throw g.NP("openWithToken",pD(F.name));return F.open()}; CG_=function(F,J){var b;return g.S(function(I){if(I.C==1)return g.T(I,g.ku(Ol,J),2);b=I.U;return I.return(g.B$(b,["databases"],{Em:!0,mode:"readwrite"},function(u){var w=u.objectStore("databases");return w.get(F.actualName).then(function(M){if(M?F.actualName!==M.actualName||F.publicName!==M.publicName||F.userIdentifier!==M.userIdentifier:1)return g.Tl(w,F).then(function(){})})}))})}; oe=function(F,J){var b;return g.S(function(I){if(I.C==1)return F?g.T(I,g.ku(Ol,J),2):I.return();b=I.U;return I.return(b.delete("databases",F))})}; XVa=function(F,J){var b,I;return g.S(function(u){return u.C==1?(b=[],g.T(u,g.ku(Ol,J),2)):u.C!=3?(I=u.U,g.T(u,g.B$(I,["databases"],{Em:!0,mode:"readonly"},function(w){b.length=0;return g.Yu(w.objectStore("databases"),{},function(M){F(M.getValue())&&b.push(M.getValue());return g.$u(M)})}),3)):u.return(b)})}; Q3a=function(F,J){return XVa(function(b){return b.publicName===F&&b.userIdentifier!==void 0},J)}; R44=function(){var F,J,b,I;return g.S(function(u){switch(u.C){case 1:F=Ie();if((J=F)==null?0:J.hasSucceededOnce)return u.return(!0);if(hY&&cx()&&!U6()||g.c$)return u.return(!1);try{if(b=self,!(b.indexedDB&&b.IDBIndex&&b.IDBKeyRange&&b.IDBObjectStore))return u.return(!1)}catch(w){return u.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return u.return(!1);g.lk(u,2);I={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.T(u,CG_(I,Ul),4);case 4:return g.T(u,oe("yt-idb-test-do-not-use",Ul),5);case 5:return u.return(!0);case 2:return g.dY(u),u.return(!1)}})}; Dra=function(){if(xu!==void 0)return xu;v$=!0;return xu=R44().then(function(F){v$=!1;var J;if((J=ba())!=null&&J.C){var b;J={hasSucceededOnce:((b=Ie())==null?void 0:b.hasSucceededOnce)||F};var I;(I=ba())==null||I.set("LAST_RESULT_ENTRY_KEY",J,2592E3,!0)}return F})}; nD=function(){return g.kC("ytglobal.idbToken_")||void 0}; g.tY=function(){var F=nD();return F?Promise.resolve(F):Dra().then(function(J){(J=J?Ul:void 0)&&g.RG("ytglobal.idbToken_",J);return J})}; k84=function(F){if(!g.Uy())throw F=new g.gZ("AUTH_INVALID",{dbName:F}),ae(F),F;var J=g.cK();return{actualName:F+":"+J,publicName:F,userIdentifier:J}}; O6k=function(F,J,b,I){var u,w,M,q,v,a;return g.S(function(e){switch(e.C){case 1:return w=(u=Error().stack)!=null?u:"",g.T(e,g.tY(),2);case 2:M=e.U;if(!M)throw q=g.NP("openDbImpl",F,J),g.Nk("ytidb_async_stack_killswitch")||(q.stack=q.stack+"\n"+w.substring(w.indexOf("\n")+1)),ae(q),q;KD(F);v=b?{actualName:F,publicName:F,userIdentifier:void 0}:k84(F);g.lk(e,3);return g.T(e,CG_(v,M),5);case 5:return g.T(e,YJ_(v.actualName,J,I),6);case 6:return e.return(e.U);case 3:return a=g.dY(e),g.lk(e,7),g.T(e,oe(v.actualName, M),9);case 9:g.Wa(e,8);break;case 7:g.dY(e);case 8:throw a;}})}; oda=function(F,J,b){b=b===void 0?{}:b;return O6k(F,J,!1,b)}; h4z=function(F,J,b){b=b===void 0?{}:b;return O6k(F,J,!0,b)}; cnC=function(F,J){J=J===void 0?{}:J;var b,I;return g.S(function(u){if(u.C==1)return g.T(u,g.tY(),2);if(u.C!=3){b=u.U;if(!b)return u.return();KD(F);I=k84(F);return g.T(u,Re(I.actualName,J),3)}return g.T(u,oe(I.actualName,b),0)})}; Urm=function(F,J,b){F=F.map(function(I){return g.S(function(u){return u.C==1?g.T(u,Re(I.actualName,J),2):g.T(u,oe(I.actualName,b),0)})}); return Promise.all(F).then(function(){})}; xr3=function(F){var J=J===void 0?{}:J;var b,I;return g.S(function(u){if(u.C==1)return g.T(u,g.tY(),2);if(u.C!=3){b=u.U;if(!b)return u.return();KD(F);return g.T(u,Q3a(F,b),3)}I=u.U;return g.T(u,Urm(I,J,b),0)})}; ndv=function(F,J){J=J===void 0?{}:J;var b;return g.S(function(I){if(I.C==1)return g.T(I,g.tY(),2);if(I.C!=3){b=I.U;if(!b)return I.return();KD(F);return g.T(I,Re(F,J),3)}return g.T(I,oe(F,b),0)})}; ZZ=function(F,J){DZ.call(this,F,J);this.options=J;KD(F)}; tM7=function(F,J){var b;return function(){b||(b=new ZZ(F,J));return b}}; g.H$=function(F,J){return tM7(F,J)}; LD=function(F){return g.ku(Z6z(),F)}; H63=function(F,J,b,I){var u,w,M;return g.S(function(q){switch(q.C){case 1:return u={config:F,hashData:J,timestamp:I!==void 0?I:(0,g.jR)()},g.T(q,LD(b),2);case 2:return w=q.U,g.T(q,w.clear("hotConfigStore"),3);case 3:return g.T(q,g.rZ(w,"hotConfigStore",u),4);case 4:return M=q.U,q.return(M)}})}; L5o=function(F,J,b,I,u){var w,M,q;return g.S(function(v){switch(v.C){case 1:return w={config:F,hashData:J,configData:b,timestamp:u!==void 0?u:(0,g.jR)()},g.T(v,LD(I),2);case 2:return M=v.U,g.T(v,M.clear("coldConfigStore"),3);case 3:return g.T(v,g.rZ(M,"coldConfigStore",w),4);case 4:return q=v.U,v.return(q)}})}; FMm=function(F){var J,b;return g.S(function(I){return I.C==1?g.T(I,LD(F),2):I.C!=3?(J=I.U,b=void 0,g.T(I,g.B$(J,["coldConfigStore"],{mode:"readwrite",Em:!0},function(u){return g.Xs(u.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(w){b=w.getValue()})}),3)):I.return(b)})}; JE_=function(F){var J,b;return g.S(function(I){return I.C==1?g.T(I,LD(F),2):I.C!=3?(J=I.U,b=void 0,g.T(I,g.B$(J,["hotConfigStore"],{mode:"readwrite",Em:!0},function(u){return g.Xs(u.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(w){b=w.getValue()})}),3)):I.return(b)})}; bX3=function(){return g.S(function(F){return g.T(F,xr3("ytGcfConfig"),0)})}; Fp=function(){g.R.call(this);this.U=[];this.C=[];var F=g.kC("yt.gcf.config.hotUpdateCallbacks");F?(this.U=[].concat(g.W(F)),this.C=F):(this.C=[],g.RG("yt.gcf.config.hotUpdateCallbacks",this.C))}; MK=function(){var F=this;this.D=!1;this.T=this.Z=0;this.W=new Fp;this.Po={u1D:function(){F.D=!0}, e2R:function(){return F.C}, PHG:function(J){JB(F,J)}, j2:function(J){F.j2(J)}, egv:function(J){bC(F,J)}, kp:function(){return F.coldHashData}, iL:function(){return F.hotHashData}, dPR:function(){return F.U}, W5v:function(){return IK()}, q1E:function(){return uC()}, AgI:function(){return g.kC("yt.gcf.config.coldHashData")}, DPv:function(){return g.kC("yt.gcf.config.hotHashData")}, VyE:function(){IkC(F)}, N$Q:function(){F.j2(void 0);wL(F);delete MK.instance}, sGz:function(J){F.T=J}, PJ_:function(){return F.T}}}; u$Y=function(){if(!MK.instance){var F=new MK;MK.instance=F}return MK.instance}; AE4=function(F){var J;g.S(function(b){if(b.C==1)return g.Nk("start_client_gcf")||g.Nk("delete_gcf_config_db")?g.Nk("start_client_gcf")?g.T(b,g.tY(),3):b.gD(2):b.return();b.C!=2&&((J=b.U)&&g.Uy()&&!g.Nk("delete_gcf_config_db")?(F.D=!0,IkC(F)):(wTk(F),M4o(F)));return g.Nk("delete_gcf_config_db")?g.T(b,bX3(),0):b.gD(0)})}; AB=function(){var F;return(F=uC())!=null?F:g.cT("RAW_HOT_CONFIG_GROUP")}; qkY=function(F){var J,b,I,u,w,M;return g.S(function(q){switch(q.C){case 1:if(F.U)return q.return(uC());if(!F.D)return J=g.NP("getHotConfig IDB not initialized"),Zk(J),q.return(Promise.reject(J));b=nD();I=g.cT("TIME_CREATED_MS");if(!b){u=g.NP("getHotConfig token error");Zk(u);q.gD(2);break}return g.T(q,JE_(b),3);case 3:if((w=q.U)&&w.timestamp>I)return JB(F,w.config),F.j2(w.hashData),q.return(uC());case 2:M4o(F);if(!(b&&F.U&&F.hotHashData)){q.gD(4);break}return g.T(q,H63(F.U,F.hotHashData,b,I),4);case 4:return F.U? q.return(uC()):(M=new g.hC("Config not available in ytConfig"),Zk(M),q.return(Promise.reject(M)))}})}; akY=function(F){var J,b,I,u,w,M;return g.S(function(q){switch(q.C){case 1:if(F.C)return q.return(IK());if(!F.D)return J=g.NP("getColdConfig IDB not initialized"),Zk(J),q.return(Promise.reject(J));b=nD();I=g.cT("TIME_CREATED_MS");if(!b){u=g.NP("getColdConfig");Zk(u);q.gD(2);break}return g.T(q,FMm(b),3);case 3:if((w=q.U)&&w.timestamp>I)return bC(F,w.config),vDa(F,w.configData),wL(F,w.hashData),q.return(IK());case 2:wTk(F);if(!(b&&F.C&&F.coldHashData&&F.configData)){q.gD(4);break}return g.T(q,L5o(F.C, F.coldHashData,F.configData,b,I),4);case 4:return F.C?q.return(IK()):(M=new g.hC("Config not available in ytConfig"),Zk(M),q.return(Promise.reject(M)))}})}; IkC=function(F){if(!F.U||!F.C){if(!nD()){var J=g.NP("scheduleGetConfigs");Zk(J)}F.Z||(F.Z=g.D_.Ti(function(){return g.S(function(b){switch(b.C){case 1:return g.lk(b,2),g.T(b,qkY(F),4);case 4:g.Wa(b,3);break;case 2:g.dY(b);case 3:return g.lk(b,5),g.T(b,akY(F),7);case 7:g.Wa(b,6);break;case 5:g.dY(b);case 6:F.Z&&(F.Z=0),g.N4(b)}})},100))}}; ezm=function(F,J,b){var I,u,w;return g.S(function(M){switch(M.C){case 1:if(!g.Nk("start_client_gcf")){M.gD(0);break}b&&JB(F,b);F.j2(J);I=nD();if(!I){M.gD(3);break}if(b){M.gD(4);break}return g.T(M,JE_(I),5);case 5:u=M.U,b=(w=u)==null?void 0:w.config;case 4:return g.T(M,H63(b,J,I),3);case 3:if(b)for(var q=b,v=g.N(F.W.C),a=v.next();!a.done;a=v.next())a=a.value,a(q);g.N4(M)}})}; KMm=function(F,J,b){var I,u,w,M;return g.S(function(q){if(q.C==1){if(!g.Nk("start_client_gcf"))return q.gD(0);wL(F,J);return(I=nD())?b?q.gD(4):g.T(q,FMm(I),5):q.gD(0)}q.C!=4&&(u=q.U,b=(w=u)==null?void 0:w.config);if(!b)return q.gD(0);M=b.configData;return g.T(q,L5o(b,J,M,I),0)})}; pT7=function(){var F=u$Y(),J=(0,g.jR)()-F.T;if(!(F.T!==0&&J0&&(J.request={internalExperimentFlags:b});mj3(F,void 0,J);yEC(void 0,J);iXo(void 0,J);zzJ(F,void 0,J);NFz(void 0,J);g.Nk("start_client_gcf")&&lkC(void 0,J);g.cT("DELEGATED_SESSION_ID")&& !g.Nk("pageid_as_header_web")&&(J.user={onBehalfOfUser:g.cT("DELEGATED_SESSION_ID")});!g.Nk("fill_delegate_context_in_gel_killswitch")&&(F=g.cT("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(J.user=Object.assign({},J.user,{serializedDelegationContext:F}));F=g.cT("INNERTUBE_CONTEXT");var I;if(g.Nk("enable_persistent_device_token")&&(F==null?0:(I=F.client)==null?0:I.rolloutToken)){var u;J.client.rolloutToken=F==null?void 0:(u=F.client)==null?void 0:u.rolloutToken}I=Object;u=I.assign;F=J.client; b={};for(var w=g.N(Object.entries(FF(g.cT("DEVICE","")))),M=w.next();!M.done;M=w.next()){var q=g.N(M.value);M=q.next().value;q=q.next().value;M==="cbrand"?b.deviceMake=q:M==="cmodel"?b.deviceModel=q:M==="cbr"?b.browserName=q:M==="cbrver"?b.browserVersion=q:M==="cos"?b.osName=q:M==="cosver"?b.osVersion=q:M==="cplatform"&&(b.platform=q)}J.client=u.call(I,F,b);return J}; mj3=function(F,J,b){F=F.Yb;if(F==="WEB"||F==="MWEB"||F===1||F===2)if(J){b=MX(J,GT,96)||new GT;var I=$q();I=Object.keys(fkm).indexOf(I);I=I===-1?null:I;I!==null&&zb(b,3,I);Ax(J,GT,96,b)}else b&&(b.client.mainAppWebInfo=(I=b.client.mainAppWebInfo)!=null?I:{},b.client.mainAppWebInfo.webDisplayMode=$q())}; yEC=function(F,J){var b=g.kC("yt.embedded_player.embed_url");b&&(F?(J=MX(F,rF,7)||new rF,yH(J,4,b),Ax(F,rF,7,J)):J&&(J.thirdParty={embedUrl:b}))}; iXo=function(F,J){var b;if(g.Nk("web_log_memory_total_kbytes")&&((b=g.Qz.navigator)==null?0:b.deviceMemory)){var I;b=(I=g.Qz.navigator)==null?void 0:I.deviceMemory;F?RF(F,95,lv(b*1E6)):J&&(J.client.memoryTotalKbytes=""+b*1E6)}}; zzJ=function(F,J,b){if(F.appInstallData)if(J){var I;b=(I=MX(J,j4,62))!=null?I:new j4;yH(b,6,F.appInstallData);Ax(J,j4,62,b)}else b&&(b.client.configInfo=b.client.configInfo||{},b.client.configInfo.appInstallData=F.appInstallData)}; NFz=function(F,J){var b=u4_();b&&(F?zb(F,61,WMa[b]):J&&(J.client.connectionType=b));g.Nk("web_log_effective_connection_type")&&(b=MMY())&&(F?zb(F,94,djY[b]):J&&(J.client.effectiveConnectionType=b))}; EDz=function(F,J,b){b=b===void 0?{}:b;var I={};g.cT("EOM_VISITOR_DATA")?I={"X-Goog-EOM-Visitor-Id":g.cT("EOM_VISITOR_DATA")}:I={"X-Goog-Visitor-Id":b.visitorData||g.cT("VISITOR_DATA","")};if(J&&J.includes("www.youtube-nocookie.com"))return I;J=b.C0||g.cT("AUTHORIZATION");J||(F?J="Bearer "+g.kC("gapi.auth.getToken")().access_token:(F=H8Y().Du(aK),g.Nk("pageid_as_header_web")||delete F["X-Goog-PageId"],I=Object.assign({},I,F)));J&&(I.Authorization=J);return I}; lkC=function(F,J){var b=pT7();if(b){var I=b.coldConfigData,u=b.coldHashData;b=b.hotHashData;if(F){var w;J=(w=MX(F,j4,62))!=null?w:new j4;I=yH(J,1,I);yH(I,3,u).j2(b);Ax(F,j4,62,J)}else J&&(J.client.configInfo=J.client.configInfo||{},I&&(J.client.configInfo.coldConfigData=I),u&&(J.client.configInfo.coldHashData=u),b&&(J.client.configInfo.hotHashData=b))}}; e6=function(F,J){this.version=F;this.args=J}; KA=function(F,J){this.topic=F;this.C=J}; gL=function(F,J){var b=pA();b&&b.publish.call(b,F.toString(),F,J)}; V44=function(F){var J=jpJ,b=pA();if(!b)return 0;var I=b.subscribe(J.toString(),function(u,w){var M=g.kC("ytPubsub2Pubsub2SkipSubKey");M&&M==I||(M=function(){if(mE[I])try{if(w&&J instanceof KA&&J!=u)try{var q=J.C,v=w;if(!v.args||!v.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!q.Qj){var a=new q;q.Qj=a.version}var e=q.Qj}catch(K){}if(!e||v.version!=e)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{w=Reflect.construct(q, g.JL(v.args))}catch(K){throw K.message="yt.pubsub2.Data.deserialize(): "+K.message,K;}}catch(K){throw K.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+J.toString()+": "+K.message,K;}F.call(window,w)}catch(K){g.nX(K)}},GTo[J.toString()]?g.Lw()?g.D_.Ti(M):g.pl(M,0):M())}); mE[I]=!0;lC[J.toString()]||(lC[J.toString()]=[]);lC[J.toString()].push(I);return I}; TFY=function(){var F=PJv,J=V44(function(b){F.apply(void 0,arguments);BF3(J)}); return J}; BF3=function(F){var J=pA();J&&(typeof F==="number"&&(F=[F]),g.gy(F,function(b){J.unsubscribeByKey(b);delete mE[b]}))}; pA=function(){return g.kC("ytPubsub2Pubsub2Instance")}; fA=function(F,J,b){b=b===void 0?{sampleRate:.1}:b;Math.random()CJJ||M=DjC&&(rL++,g.Nk("abandon_compression_after_N_slow_zips")?TS===g.li("compression_disable_point")&&rL>kT_&&(Vn=!1):Vn=!1);OXC(J);I.headers||(I.headers={});I.headers["Content-Encoding"]="gzip";I.postBody=F;I.postParams=void 0;u(b,I)}; oD_=function(F){var J=J===void 0?!1:J;var b=b===void 0?!1:b;var I=(0,g.jR)(),u={startTime:I,ticks:{},infos:{}},w=J?g.kC("yt.logging.gzipForFetch",!1):!0;if(Vn&&w){if(!F.body)return F;try{var M=b?F.body:typeof F.body==="string"?F.body:JSON.stringify(F.body);w=M;if(!b&&typeof M==="string"){var q=$ja(M);if(q!=null&&(q>CJJ||q=DjC)if(rL++,g.Nk("abandon_compression_after_N_slow_zips")||g.Nk("abandon_compression_after_N_slow_zips_lr")){J=rL/TS;var a=kT_/g.li("compression_disable_point");TS>0&&TS%g.li("compression_disable_point")===0&&J>=a&&(Vn=!1)}else Vn=!1;OXC(u)}}F.headers=Object.assign({},{"Content-Encoding":"gzip"},F.headers||{});F.body=w;return F}catch(e){return Zk(e),F}}else return F}; $ja=function(F){try{return(new Blob(F.split(""))).size}catch(J){return Zk(J),null}}; OXC=function(F){g.Nk("gel_compression_csi_killswitch")||!g.Nk("log_gel_compression_latency")&&!g.Nk("log_gel_compression_latency_lr")||fA("gel_compression",F,{sampleRate:.1})}; sZ=function(F){var J=this;this.LM=this.C=!1;this.potentialEsfErrorCounter=this.U=0;this.handleError=function(){}; this.SG=function(){}; this.now=Date.now;this.mF=!1;this.Po={XnI:function(e){J.mp=e}, hgG:function(){J.VD()}, z3:function(){J.MV()}, Cx:function(e){return g.S(function(K){return g.T(K,J.Cx(e),0)})}, Nw:function(e,K){return J.Nw(e,K)}, wy:function(){J.wy()}}; var b;this.xT=(b=F.xT)!=null?b:100;var I;this.pE=(I=F.pE)!=null?I:1;var u;this.zl=(u=F.zl)!=null?u:2592E6;var w;this.d1=(w=F.d1)!=null?w:12E4;var M;this.yL=(M=F.yL)!=null?M:5E3;var q;this.mp=(q=F.mp)!=null?q:void 0;this.lU=!!F.lU;var v;this.sx=(v=F.sx)!=null?v:.1;var a;this.V3=(a=F.V3)!=null?a:10;F.handleError&&(this.handleError=F.handleError);F.SG&&(this.SG=F.SG);F.mF&&(this.mF=F.mF);F.LM&&(this.LM=F.LM);this.pW=F.pW;this.Xa=F.Xa;this.T7=F.T7;this.zn=F.zn;this.sendFn=F.sendFn;this.Cq=F.Cq;this.Nj= F.Nj;S6(this)&&(!this.pW||this.pW("networkless_logging"))&&hzz(this)}; hzz=function(F){S6(F)&&!F.mF&&(F.C=!0,F.lU&&Math.random()<=F.sx&&F.T7.B6(F.mp),F.wy(),F.zn.Vi()&&F.VD(),F.zn.listen(F.Cq,F.VD.bind(F)),F.zn.listen(F.Nj,F.MV.bind(F)))}; xjz=function(F,J){if(!S6(F))throw Error("IndexedDB is not supported: updateRequestHandlers");var b=J.options.onError?J.options.onError:function(){}; J.options.onError=function(u,w){var M,q,v,a;return g.S(function(e){switch(e.C){case 1:M=cEY(w);(q=Ujm(w))&&F.pW&&F.pW("web_enable_error_204")&&F.handleError(Error("Request failed due to compression"),J.url,w);if(!(F.pW&&F.pW("nwl_consider_error_code")&&M||F.pW&&!F.pW("nwl_consider_error_code")&&F.potentialEsfErrorCounter<=F.V3)){e.gD(2);break}if(!F.zn.sO){e.gD(3);break}return g.T(e,F.zn.sO(),3);case 3:if(F.zn.Vi()){e.gD(2);break}b(u,w);if(!F.pW||!F.pW("nwl_consider_error_code")||((v=J)==null?void 0: v.id)===void 0){e.gD(6);break}return g.T(e,F.T7.JC(J.id,F.mp,!1),6);case 6:return e.return();case 2:if(F.pW&&F.pW("nwl_consider_error_code")&&!M&&F.potentialEsfErrorCounter>F.V3)return e.return();F.potentialEsfErrorCounter++;if(((a=J)==null?void 0:a.id)===void 0){e.gD(8);break}return J.sendCount=400&&F<=599?!1:!0}; Ujm=function(F){var J;F=F==null?void 0:(J=F.error)==null?void 0:J.code;return!(F!==400&&F!==415)}; nDz=function(){if($P)return $P();var F={};$P=g.H$("LogsDatabaseV2",{ET:(F.LogsRequestsStore={Sp:2},F),shared:!1,upgrade:function(J,b,I){b(2)&&g.Vb(J,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});b(3);b(5)&&(I=I.objectStore("LogsRequestsStore"),I.C.indexNames.contains("newRequest")&&I.C.deleteIndex("newRequest"),g.sl(I,"newRequestV2",["status","interface","timestamp"]));b(7)&&P$(J,"sapisid");b(9)&&P$(J,"SWHealthLog")}, version:9});return $P()}; CA=function(F){return g.ku(nDz(),F)}; ZX7=function(F,J){var b,I,u,w;return g.S(function(M){if(M.C==1)return b={startTime:(0,g.jR)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.T(M,CA(J),2);if(M.C!=3)return I=M.U,u=Object.assign({},F,{options:JSON.parse(JSON.stringify(F.options)),interface:g.cT("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.T(M,g.rZ(I,"LogsRequestsStore",u),3);w=M.U;b.ticks.tc=(0,g.jR)();t4v(b);return M.return(w)})}; HXC=function(F,J){var b,I,u,w,M,q,v,a;return g.S(function(e){if(e.C==1)return b={startTime:(0,g.jR)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.T(e,CA(J),2);if(e.C!=3)return I=e.U,u=g.cT("INNERTUBE_CONTEXT_CLIENT_NAME",0),w=[F,u,0],M=[F,u,(0,g.jR)()],q=IDBKeyRange.bound(w,M),v="prev",g.Nk("use_fifo_for_networkless")&&(v="next"),a=void 0,g.T(e,g.B$(I,["LogsRequestsStore"],{mode:"readwrite",Em:!0},function(K){return g.Xs(K.objectStore("LogsRequestsStore").index("newRequestV2"), {query:q,direction:v},function(p){p.getValue()&&(a=p.getValue(),F==="NEW"&&(a.status="QUEUED",p.update(a)))})}),3); b.ticks.tc=(0,g.jR)();t4v(b);return e.return(a)})}; LMm=function(F,J){var b;return g.S(function(I){if(I.C==1)return g.T(I,CA(J),2);b=I.U;return I.return(g.B$(b,["LogsRequestsStore"],{mode:"readwrite",Em:!0},function(u){var w=u.objectStore("LogsRequestsStore");return w.get(F).then(function(M){if(M)return M.status="QUEUED",g.Tl(w,M).then(function(){return M})})}))})}; F1m=function(F,J,b,I){b=b===void 0?!0:b;var u;return g.S(function(w){if(w.C==1)return g.T(w,CA(J),2);u=w.U;return w.return(g.B$(u,["LogsRequestsStore"],{mode:"readwrite",Em:!0},function(M){var q=M.objectStore("LogsRequestsStore");return q.get(F).then(function(v){return v?(v.status="NEW",b&&(v.sendCount+=1),I!==void 0&&(v.options.compress=I),g.Tl(q,v).then(function(){return v})):g.fD.resolve(void 0)})}))})}; JRa=function(F,J){var b;return g.S(function(I){if(I.C==1)return g.T(I,CA(J),2);b=I.U;return I.return(b.delete("LogsRequestsStore",F))})}; bla=function(F){var J,b;return g.S(function(I){if(I.C==1)return g.T(I,CA(F),2);J=I.U;b=(0,g.jR)()-2592E6;return g.T(I,g.B$(J,["LogsRequestsStore"],{mode:"readwrite",Em:!0},function(u){return g.Yu(u.objectStore("LogsRequestsStore"),{},function(w){if(w.getValue().timestamp<=b)return w.delete().then(function(){return g.$u(w)})})}),0)})}; I$m=function(){g.S(function(F){return g.T(F,xr3("LogsDatabaseV2"),0)})}; t4v=function(F){g.Nk("nwl_csi_killswitch")||fA("networkless_performance",F,{sampleRate:1})}; wxa=function(F){return g.ku(uFC(),F)}; MN4=function(F){var J,b;g.S(function(I){if(I.C==1)return g.T(I,wxa(F),2);J=I.U;b=(0,g.jR)()-2592E6;return g.T(I,g.B$(J,["SWHealthLog"],{mode:"readwrite",Em:!0},function(u){return g.Yu(u.objectStore("SWHealthLog"),{},function(w){if(w.getValue().timestamp<=b)return w.delete().then(function(){return g.$u(w)})})}),0)})}; ARv=function(F){var J;return g.S(function(b){if(b.C==1)return g.T(b,wxa(F),2);J=b.U;return g.T(b,J.clear("SWHealthLog"),0)})}; g.Xp=function(F,J,b,I,u,w,M){u=u===void 0?"":u;w=w===void 0?!1:w;M=M===void 0?!1:M;if(F)if(b&&!g.O6())Zk(new g.hC("Legacy referrer-scrubbed ping detected")),F&&q6k(F,void 0,{scrubReferrer:!0});else if(u)d$(F,J,"POST",u,I);else if(g.cT("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||I||M)d$(F,J,"GET","",I,void 0,w,M);else{b:{try{var q=new x5Y({url:F});if(q.D?typeof q.T!=="string"||q.T.length===0?0:{version:3,A9:q.T,EC:EY(q.C,"act=1","ri=1",nIz(q))}:q.W&&{version:4,A9:EY(q.C,"dct=1","suid="+q.Z,""),EC:EY(q.C, "act=1","ri=1","suid="+q.Z)}){var v=Tq(g.$V(5,F));var a=!(!v||!v.endsWith("/aclk")||hz(F,"ri")!=="1");break b}}catch(e){}a=!1}a?v6o(F)?(J&&J(),b=!0):b=!1:b=!1;b||q6k(F,J)}}; v6o=function(F,J){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(F,J===void 0?"":J))return!0}catch(b){}return!1}; q6k=function(F,J,b){b=b===void 0?{}:b;var I=new Image,u=""+a$4++;Qn[u]=I;I.onload=I.onerror=function(){J&&Qn[u]&&J();delete Qn[u]}; b.scrubReferrer&&(I.referrerPolicy="no-referrer");I.src=F}; eyz=function(F){var J;return((J=document.featurePolicy)==null?0:J.allowedFeatures().includes("attribution-reporting"))?F+"&nis=6":F+"&nis=5"}; DD=function(){RK||(RK=new JY("yt.offline"));return RK}; K1z=function(F){if(g.Nk("offline_error_handling")){var J=DD().get("errors",!0)||{};J[F.message]={name:F.name,stack:F.stack};F.level&&(J[F.message].level=F.level);DD().set("errors",J,2592E3,!0)}}; kP=function(){this.C=new Map;this.U=!1}; OZ=function(){if(!kP.instance){var F=g.kC("yt.networkRequestMonitor.instance")||new kP;g.RG("yt.networkRequestMonitor.instance",F);kP.instance=F}return kP.instance}; oK=function(){g.Zr.call(this);var F=this;this.U=!1;this.C=jNz();this.C.listen("networkstatus-online",function(){if(F.U&&g.Nk("offline_error_handling")){var J=DD().get("errors",!0);if(J){for(var b in J)if(J[b]){var I=new g.hC(b,"sent via offline_errors");I.name=J[b].name;I.stack=J[b].stack;I.level=J[b].level;g.nX(I)}DD().set("errors",{},2592E3,!0)}}})}; px4=function(){if(!oK.instance){var F=g.kC("yt.networkStatusManager.instance")||new oK;g.RG("yt.networkStatusManager.instance",F);oK.instance=F}return oK.instance}; g.hB=function(F){F=F===void 0?{}:F;g.Zr.call(this);var J=this;this.C=this.Z=0;this.U=px4();var b=g.kC("yt.networkStatusManager.instance.listen").bind(this.U);b&&(F.rateLimit?(this.rateLimit=F.rateLimit,b("networkstatus-online",function(){g6z(J,"publicytnetworkstatus-online")}),b("networkstatus-offline",function(){g6z(J,"publicytnetworkstatus-offline")})):(b("networkstatus-online",function(){J.dispatchEvent("publicytnetworkstatus-online")}),b("networkstatus-offline",function(){J.dispatchEvent("publicytnetworkstatus-offline")})))}; g6z=function(F,J){F.rateLimit?F.C?(g.D_.q_(F.Z),F.Z=g.D_.Ti(function(){F.T!==J&&(F.dispatchEvent(J),F.T=J,F.C=(0,g.jR)())},F.rateLimit-((0,g.jR)()-F.C))):(F.dispatchEvent(J),F.T=J,F.C=(0,g.jR)()):F.dispatchEvent(J)}; UZ=function(){var F=sZ.call;cr||(cr=new g.hB({dbG:!0,hzG:!0}));F.call(sZ,this,{T7:{B6:bla,wE:JRa,FX:HXC,u4j:LMm,JC:F1m,set:ZX7},zn:cr,handleError:function(J,b,I){var u,w=I==null?void 0:(u=I.error)==null?void 0:u.code;if(w===400||w===415){var M;Zk(new g.hC(J.message,b,I==null?void 0:(M=I.error)==null?void 0:M.code),void 0,void 0,void 0,!0)}else g.nX(J)}, SG:Zk,sendFn:mk7,now:g.jR,xX:K1z,Xa:g.HK(),Cq:"publicytnetworkstatus-online",Nj:"publicytnetworkstatus-offline",lU:!0,sx:.1,V3:g.li("potential_esf_error_limit",10),pW:g.Nk,mF:!(g.Uy()&&g.Cu(document.location.toString())!=="www.youtube-nocookie.com")});this.T=new g.m6;g.Nk("networkless_immediately_drop_all_requests")&&I$m();ndv("LogsDatabaseV2")}; xP=function(){var F=g.kC("yt.networklessRequestController.instance");F||(F=new UZ,g.RG("yt.networklessRequestController.instance",F),g.Nk("networkless_logging")&&g.tY().then(function(J){F.mp=J;hzz(F);F.T.resolve();F.lU&&Math.random()<=F.sx&&F.mp&&MN4(F.mp);g.Nk("networkless_immediately_drop_sw_health_store")&&yRa(F)})); return F}; yRa=function(F){var J;g.S(function(b){if(!F.mp)throw J=g.NP("clearSWHealthLogsDb"),J;return b.return(ARv(F.mp).catch(function(I){F.handleError(I)}))})}; mk7=function(F,J,b,I){I=I===void 0?!1:I;J=g.Nk("web_fp_via_jspb")?Object.assign({},J):J;g.Nk("use_cfr_monitor")&&ilJ(F,J);if(g.Nk("use_request_time_ms_header"))J.headers&&w$(F)&&(J.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.jR)())));else{var u;if((u=J.postParams)==null?0:u.requestTimeMs)J.postParams.requestTimeMs=Math.round((0,g.jR)())}b&&Object.keys(J).length===0?g.Xp(F):J.compress?J.postBody?(typeof J.postBody!=="string"&&(J.postBody=JSON.stringify(J.postBody)),Br(F,J.postBody, J,g.E6,I)):Br(F,JSON.stringify(J.postParams),J,jN,I):g.E6(F,J)}; nA=function(F,J){g.Nk("use_event_time_ms_header")&&w$(F)&&(J.headers||(J.headers={}),J.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.jR)())));return J}; ilJ=function(F,J){var b=J.onError?J.onError:function(){}; J.onError=function(u,w){OZ().requestComplete(F,!1);b(u,w)}; var I=J.onSuccess?J.onSuccess:function(){}; J.onSuccess=function(u,w){OZ().requestComplete(F,!0);I(u,w)}}; g.tB=function(F){this.config_=null;F?this.config_=F:gDk()&&(this.config_=g.qK())}; g.ZD=function(F,J,b,I){function u(a){try{if((a===void 0?0:a)&&I.retry&&!I.networklessOptions.bypassNetworkless)w.method="POST",I.networklessOptions.writeThenSend?xP().writeThenSend(v,w):xP().sendAndWrite(v,w);else if(I.compress){var e=!I.networklessOptions.writeThenSend;if(w.postBody){var K=w.postBody;typeof K!=="string"&&(K=JSON.stringify(w.postBody));Br(v,K,w,g.E6,e)}else Br(v,JSON.stringify(w.postParams),w,jN,e)}else g.Nk("web_all_payloads_via_jspb")?g.E6(v,w):jN(v,w)}catch(p){if(p.name==="InvalidAccessError")Zk(Error("An extension is blocking network request.")); else throw p;}} !g.cT("VISITOR_DATA")&&J!=="visitor_id"&&Math.random()<.01&&Zk(new g.hC("Missing VISITOR_DATA when sending innertube request.",J,b,I));if(!F.isReady())throw F=new g.hC("innertube xhrclient not ready",J,b,I),g.nX(F),F;var w={headers:I.headers||{},method:"POST",postParams:b,postBody:I.postBody,postBodyFormat:I.postBodyFormat||"JSON",onTimeout:function(){I.onTimeout()}, onFetchTimeout:I.onTimeout,onSuccess:function(a,e){if(I.onSuccess)I.onSuccess(e)}, onFetchSuccess:function(a){if(I.onSuccess)I.onSuccess(a)}, onError:function(a,e){if(I.onError)I.onError(e)}, onFetchError:function(a){if(I.onError)I.onError(a)}, timeout:I.timeout,withCredentials:!0,compress:I.compress};w.headers["Content-Type"]||(w.headers["Content-Type"]="application/json");b="";var M=F.config_.Yt;M&&(b=M);M=F.config_.n6||!1;var q=EDz(M,b,I);Object.assign(w.headers,q);w.headers.Authorization&&!b&&M&&(w.headers["x-origin"]=window.location.origin);var v=IR(""+b+("/youtubei/"+F.config_.innertubeApiVersion+"/"+J),{alt:"json"});g.kC("ytNetworklessLoggingInitializationOptions")&&zya.isNwlInitialized?Dra().then(function(a){u(a)}):u(!1)}; g.b0=function(F,J,b){var I=g.Hr();if(I&&J){var u=I.subscribe(F,function(){function w(){LA[u]&&J.apply&&typeof J.apply=="function"&&J.apply(b||window,M)} var M=arguments;try{g.FT[F]?w():g.pl(w,0)}catch(q){g.nX(q)}},b); LA[u]=!0;JA[F]||(JA[F]=[]);JA[F].push(u);return u}return 0}; N$m=function(F){var J=g.b0("LOGGED_IN",function(b){F.apply(void 0,arguments);g.Iu(J)})}; g.Iu=function(F){var J=g.Hr();J&&(typeof F==="number"?F=[F]:typeof F==="string"&&(F=[parseInt(F,10)]),g.gy(F,function(b){J.unsubscribeByKey(b);delete LA[b]}))}; g.u0=function(F,J){var b=g.Hr();return b?b.publish.apply(b,arguments):!1}; f$Y=function(F){var J=g.Hr();if(J)if(J.clear(F),F)l$z(F);else for(var b in JA)l$z(b)}; g.Hr=function(){return g.Qz.ytPubsubPubsubInstance}; l$z=function(F){JA[F]&&(F=JA[F],g.gy(F,function(J){LA[J]&&delete LA[J]}),F.length=0)}; g.wP=function(F,J,b){W1J(F,J,b===void 0?null:b)}; W1J=function(F,J,b){b=b===void 0?null:b;var I=dk3(F),u=document.getElementById(I),w=u&&$wz(u),M=u&&!w;w?J&&J():(J&&(w=g.b0(I,J),J=""+g.n3(J),E6J[J]=w),M||(u=jRa(F,I,function(){$wz(u)||(YYY(u),g.u0(I),g.pl(function(){f$Y(I)},0))},b)))}; jRa=function(F,J,b,I){I=I===void 0?null:I;var u=g.H1("SCRIPT");u.id=J;u.onload=function(){b&&setTimeout(b,0)}; u.onreadystatechange=function(){switch(u.readyState){case "loaded":case "complete":u.onload()}}; I&&u.setAttribute("nonce",I);g.k_(u,g.WT(F));F=document.getElementsByTagName("head")[0]||document.body;F.insertBefore(u,F.firstChild);return u}; dk3=function(F){var J=document.createElement("a");g.Sp(J,F);F=J.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+H9(F)}; Mq=function(F,J){if(F===J)F=!0;else if(Array.isArray(F)&&Array.isArray(J))F=g.ay(F,J,Mq);else if(g.Um(F)&&g.Um(J))a:if(g.dl(F).length!=g.dl(J).length)F=!1;else{for(var b in F)if(!Mq(F[b],J[b])){F=!1;break a}F=!0}else F=!1;return F}; vB=function(F){var J=g.Ba.apply(1,arguments);if(!AA(F)||J.some(function(I){return!AA(I)}))throw Error("Only objects may be merged."); J=g.N(J);for(var b=J.next();!b.done;b=J.next())qq(F,b.value)}; qq=function(F,J){for(var b in J)if(AA(J[b])){if(b in F&&!AA(F[b]))throw Error("Cannot merge an object into a non-object.");b in F||(F[b]={});qq(F[b],J[b])}else if(gP(J[b])){if(b in F&&!gP(F[b]))throw Error("Cannot merge an array into a non-array.");b in F||(F[b]=[]);Gk4(F[b],J[b])}else F[b]=J[b];return F}; Gk4=function(F,J){J=g.N(J);for(var b=J.next();!b.done;b=J.next())b=b.value,AA(b)?F.push(qq({},b)):gP(b)?F.push(Gk4([],b)):F.push(b);return F}; AA=function(F){return typeof F==="object"&&!Array.isArray(F)}; gP=function(F){return typeof F==="object"&&Array.isArray(F)}; mA=function(F){g.R.call(this);this.U=F}; yv=function(F){mA.call(this,!0);this.C=F}; VNa=function(F,J){g.R.call(this);var b=this;this.T=[];this.V=!1;this.U=0;this.D=this.W=this.Z=!1;this.Tj=null;var I=(0,g.tJ)(F,J);this.C=new g.ty(function(){return I(b.Tj)},300); g.k(this,this.C);this.N=this.Y=Infinity}; Pia=function(F,J){if(!J)return!1;for(var b=0;b-1)throw Error("Deps cycle for: "+J);if(F.U.has(J))return F.U.get(J);if(!F.C.has(J)){if(I)return;throw Error("No provider for: "+J);}I=F.C.get(J);b.push(J);if(I.fS!==void 0)var u=I.fS;else if(I.cXI)u=I[Vv]?S6z(F,I[Vv],b):[],u=I.cXI.apply(I,g.W(u));else if(I.MB){u=I.MB;var w=u[Vv]?S6z(F,u[Vv],b):[];u=new (Function.prototype.bind.apply(u,[null].concat(g.W(w))))}else throw Error("Could not resolve providers for: "+J);b.pop();I.MyR||F.U.set(J,u); return u}; S6z=function(F,J,b){return J?J.map(function(I){return I instanceof jZ?PB(F,I.key,b,!0):PB(F,I,b)}):[]}; Tf=function(){BB||(BB=new rRJ);return BB}; SZ=function(){var F,J;return"h5vcc"in rP&&((F=rP.h5vcc.traceEvent)==null?0:F.traceBegin)&&((J=rP.h5vcc.traceEvent)==null?0:J.traceEnd)?1:"performance"in rP&&rP.performance.mark&&rP.performance.measure?2:0}; YB=function(F){var J=SZ();switch(J){case 1:rP.h5vcc.traceEvent.traceBegin("YTLR",F);break;case 2:rP.performance.mark(F+"-start");break;case 0:break;default:wU(J,"unknown trace type")}}; sRz=function(F){var J=SZ();switch(J){case 1:rP.h5vcc.traceEvent.traceEnd("YTLR",F);break;case 2:J=F+"-start";var b=F+"-end";rP.performance.mark(b);rP.performance.measure(F,J,b);break;case 0:break;default:wU(J,"unknown trace type")}}; Y6C=function(F){var J,b;(b=(J=window).onerror)==null||b.call(J,F.message,"",0,0,F)}; $k_=function(F){var J=this;var b=b===void 0?0:b;var I=I===void 0?g.HK():I;this.T=b;this.scheduler=I;this.U=new g.m6;this.C=F;for(F={eV:0};F.eV=1E3?u():I>=F?wQ||(wQ=MY(function(){u();wQ=void 0},0)):w-q>=10&&(L1_(J,b.tier),M.Z=w)}; xk3=function(F,J){if(F.endpoint==="log_event"){g.Nk("more_accurate_gel_parser")&&tA().storePayload({isJspb:!1},F.payload);HB(F);var b=LJ(F),I=new Map;I.set(b,[F.payload]);var u=hyJ(F.payload)||"";J&&(IO=new J);return new g.gb(function(w,M){IO&&IO.isReady()?Fuv(I,IO,w,M,{bypassNetworkless:!0},!0,Jk(u)):w()})}}; ZlJ=function(F,J,b){if(J.endpoint==="log_event"){HB(void 0,J);var I=LJ(J,!0),u=new Map;u.set(I,[B3(J.payload)]);b&&(IO=new b);return new g.gb(function(w){IO&&IO.isReady()?JC7(u,IO,w,{bypassNetworkless:!0},!0,Jk(F)):w()})}}; LJ=function(F,J){var b="";if(F.dangerousLogToVisitorSession)b="visitorOnlyApprovedKey";else if(F.cttAuthInfo){if(J===void 0?0:J){J=F.cttAuthInfo.token;b=F.cttAuthInfo;var I=new Ok;b.videoId?I.setVideoId(b.videoId):b.playlistId&&FW(I,2,Ak,W3(b.playlistId));qY[J]=I}else J=F.cttAuthInfo,b={},J.videoId?b.videoId=J.videoId:J.playlistId&&(b.playlistId=J.playlistId),v8[F.cttAuthInfo.token]=b;b=F.cttAuthInfo.token}return b}; b$=function(F,J,b){F=F===void 0?{}:F;J=J===void 0?!1:J;new g.gb(function(I,u){var w=u$(J,b),M=w.T;w.T=!1;aO(w.U);aO(w.C);w.C=0;IO&&IO.isReady()?b===void 0&&g.Nk("enable_web_tiered_gel")?bwG(I,u,F,J,300,M):bwG(I,u,F,J,b,M):(L1_(J,b),I())})}; bwG=function(F,J,b,I,u,w){var M=IO;b=b===void 0?{}:b;I=I===void 0?!1:I;u=u===void 0?200:u;w=w===void 0?!1:w;var q=new Map,v=new Map,a={isJspb:I,cttAuthInfo:void 0,tier:u},e={isJspb:I,cttAuthInfo:void 0};if(I){J=g.N(Object.keys(Fn));for(u=J.next();!u.done;u=J.next())u=u.value,v=g.Nk("enable_web_tiered_gel")?tA().smartExtractMatchingEntries({keys:[a,e],sizeLimit:1E3}):tA().extractMatchingEntries({isJspb:!0,cttAuthInfo:u}),v.length>0&&q.set(u,v),(g.Nk("web_fp_via_jspb_and_json")&&b.writeThenSend||!g.Nk("web_fp_via_jspb_and_json"))&& delete Fn[u];JC7(q,M,F,b,!1,w)}else{q=g.N(Object.keys(Fn));for(a=q.next();!a.done;a=q.next())a=a.value,e=g.Nk("enable_web_tiered_gel")?tA().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:a,tier:u},{isJspb:!1,cttAuthInfo:a}],sizeLimit:1E3}):tA().extractMatchingEntries({isJspb:!1,cttAuthInfo:a}),e.length>0&&v.set(a,e),(g.Nk("web_fp_via_jspb_and_json")&&b.writeThenSend||!g.Nk("web_fp_via_jspb_and_json"))&&delete Fn[a];Fuv(v,M,F,J,b,!1,w)}}; L1_=function(F,J){function b(){b$({writeThenSend:!0},F,J)} F=F===void 0?!1:F;J=J===void 0?200:J;var I=u$(F,J),u=I===Iv7||I===utC?5E3:wKz;g.Nk("web_gel_timeout_cap")&&!I.C&&(u=MY(function(){b()},u),I.C=u); aO(I.U);u=g.cT("LOGGING_BATCH_TIMEOUT",g.li("web_gel_debounce_ms",1E4));g.Nk("shorten_initial_gel_batch_timeout")&&eQ&&(u=M9_);u=MY(function(){g.li("gel_min_batch_size")>0?tA().getSequenceCount({cttAuthInfo:void 0,isJspb:F,tier:J})>=ACz&&b():b()},u); I.U=u}; Fuv=function(F,J,b,I,u,w,M){u=u===void 0?{}:u;var q=Math.round((0,g.jR)()),v=F.size,a=qyz(M);F=g.N(F);var e=F.next();for(M={};!e.done;M={YS:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,jX:void 0,RZ:void 0},e=F.next()){var K=g.N(e.value);e=K.next().value;K=K.next().value;M.batchRequest=g.rl({context:g.vr(J.config_||g.qK())});if(!g.ca(K)&&!g.Nk("throw_err_when_logevent_malformed_killswitch")){I();break}M.batchRequest.events=K;(K=v8[e])&&vq3(M.batchRequest,e,K);delete v8[e];M.dangerousLogToVisitorSession= e==="visitorOnlyApprovedKey";ava(M.batchRequest,q,M.dangerousLogToVisitorSession);efJ(u);M.jX=function(p){g.Nk("start_client_gcf")&&g.D_.Ti(function(){return g.S(function(m){return g.T(m,Kuz(p),0)})}); v--;v||b()}; M.YS=0;M.RZ=function(p){return function(){p.YS++;if(u.bypassNetworkless&&p.YS===1)try{g.ZD(J,a,p.batchRequest,KO({writeThenSend:!0},p.dangerousLogToVisitorSession,p.jX,p.RZ,w)),eQ=!1}catch(m){g.nX(m),I()}v--;v||b()}}(M); try{g.ZD(J,a,M.batchRequest,KO(u,M.dangerousLogToVisitorSession,M.jX,M.RZ,w)),eQ=!1}catch(p){g.nX(p),I()}}}; JC7=function(F,J,b,I,u,w){I=I===void 0?{}:I;var M=Math.round((0,g.jR)()),q={value:F.size},v=new Map([].concat(g.W(F)));v=g.N(v);for(var a=v.next();!a.done;a=v.next()){var e=g.N(a.value).next().value,K=F.get(e);a=new DNa;var p=J.config_||g.qK(),m=new YD,y=new V9;yH(y,1,p.aN);yH(y,2,p.jJ);zb(y,16,p.p6);yH(y,17,p.innertubeContextClientVersion);if(p.tQ){var f=p.tQ,d=new j4;f.coldConfigData&&yH(d,1,f.coldConfigData);f.appInstallData&&yH(d,6,f.appInstallData);f.coldHashData&&yH(d,3,f.coldHashData);f.hotHashData&& d.j2(f.hotHashData);Ax(y,j4,62,d)}(f=g.Qz.devicePixelRatio)&&f!=1&&RF(y,65,Mu(f));f=fl();f!==""&&yH(y,54,f);f=Wx();if(f.length>0){d=new TT;for(var G=0;G65535&&(F=1);hE("BATCH_CLIENT_COUNTER",F);return F}; vq3=function(F,J,b){if(b.videoId)var I="VIDEO";else if(b.playlistId)I="PLAYLIST";else return;F.credentialTransferTokenTargetId=b;F.context=F.context||{};F.context.user=F.context.user||{};F.context.user.credentialTransferTokens=[{token:J,scope:I}]}; HB=function(F,J){if(!g.kC("yt.logging.transport.enableScrapingForTest")){var b=zk("il_payload_scraping");if((b!==void 0?String(b):"")==="enable_il_payload_scraping")mi=[],g.RG("yt.logging.transport.enableScrapingForTest",!0),g.RG("yt.logging.transport.scrapedPayloadsForTesting",mi),g.RG("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.RG("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.RG("yt.logging.transport.scrapeClientEvent",!0);else return}b=g.kC("yt.logging.transport.scrapedPayloadsForTesting");var I=g.kC("yt.logging.transport.payloadToScrape");J&&(J=J.payload,(J=g.kC("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(J)())&&b.push(J));J=g.kC("yt.logging.transport.scrapeClientEvent");if(I&&I.length>=1)for(var u=0;u0&&sgm(F,J,w)}else sgm(F,J)}; sgm=function(F,J,b){F=Yy4(F);J=J?g.kV(J):"";b=b||5;Ft()&&g.Y6(F,J,b)}; Yy4=function(F){for(var J=g.N($1G),b=J.next();!b.done;b=J.next())F=cj(F,b.value);return"ST-"+H9(F).toString(36)}; C8_=function(F){if(F.name==="JavaException")return!0;F=F.stack;return F.includes("chrome://")||F.includes("chrome-extension://")||F.includes("moz-extension://")}; XKC=function(){this.Jg=[];this.D_=[]}; Gd=function(){if(!jQ){var F=jQ=new XKC;F.D_.length=0;F.Jg.length=0;Qg4(F,RfG)}return jQ}; Qg4=function(F,J){J.D_&&F.D_.push.apply(F.D_,J.D_);J.Jg&&F.Jg.push.apply(F.Jg,J.Jg)}; D13=function(F){function J(){return F.charCodeAt(I++)} var b=F.length,I=0;do{var u=V7(J);if(u===Infinity)break;var w=u>>3;switch(u&7){case 0:u=V7(J);if(w===2)return u;break;case 1:if(w===2)return;I+=8;break;case 2:u=V7(J);if(w===2)return F.substr(I,u);I+=u;break;case 5:if(w===2)return;I+=4;break;default:return}}while(I500));I++);I=u}else if(typeof F==="object")for(u in F){if(F[u]){var w=u;var M=F[u],q=J,v=b;w=typeof M!=="string"||w!=="clickTrackingParams"&&w!=="trackingParams"?0:(M=D13(atob(M.replace(/-/g,"+").replace(/_/g,"/"))))?P8(w+".ve",M,q,v):0;I+=w;I+=P8(u,F[u],J,b);if(I>500)break}}else b[J]=B8(F),I+=b[J].length;else b[J]=B8(F),I+=b[J].length;return I}; P8=function(F,J,b,I){b+="."+F;F=B8(J);I[b]=F;return b.length+F.length}; B8=function(F){try{return(typeof F==="string"?F:String(JSON.stringify(F))).substr(0,500)}catch(J){return"unable to serialize "+typeof F+" ("+J.message+")"}}; MP=function(F){g.Td(F)}; g.rQ=function(F){g.Td(F,"WARNING")}; g.Td=function(F,J){var b=b===void 0?{}:b;b.name=g.cT("INNERTUBE_CONTEXT_CLIENT_NAME",1);b.version=g.cT("INNERTUBE_CONTEXT_CLIENT_VERSION");J=J===void 0?"ERROR":J;var I=!1;J=J===void 0?"ERROR":J;I=I===void 0?!1:I;if(F){F.hasOwnProperty("level")&&F.level&&(J=F.level);if(g.Nk("console_log_js_exceptions")){var u=[];u.push("Name: "+F.name);u.push("Message: "+F.message);F.hasOwnProperty("params")&&u.push("Error Params: "+JSON.stringify(F.params));F.hasOwnProperty("args")&&u.push("Error args: "+JSON.stringify(F.args)); u.push("File name: "+F.fileName);u.push("Stacktrace: "+F.stack);window.console.log(u.join("\n"),F)}if(!(OwY>=5)){u=oqa;var w=V2k(F),M=w.message||"Unknown Error",q=w.name||"UnknownError",v=w.stack||F.U||"Not available";if(v.startsWith(q+": "+M)){var a=v.split("\n");a.shift();v=a.join("\n")}a=w.lineNumber||"Not available";w=w.fileName||"Not available";var e=0;if(F.hasOwnProperty("args")&&F.args&&F.args.length)for(var K=0;K=500);K++);else if(F.hasOwnProperty("params")&& F.params){var p=F.params;if(typeof F.params==="object")for(K in p){if(p[K]){var m="params."+K,y=B8(p[K]);b[m]=y;e+=m.length+y.length;if(e>500)break}}else b.params=B8(p)}if(u.length)for(K=0;K=500);K++);navigator.vendor&&!b.hasOwnProperty("vendor")&&(b["device.vendor"]=navigator.vendor);b={message:M,name:q,lineNumber:a,fileName:w,stack:v,params:b,sampleWeight:1};u=Number(F.columnNumber);isNaN(u)||(b.lineNumber=b.lineNumber+":"+u);if(F.level==="IGNORED")F= 0;else a:{F=Gd();u=g.N(F.D_);for(M=u.next();!M.done;M=u.next())if(M=M.value,b.message&&b.message.match(M.qb)){F=M.weight;break a}F=g.N(F.Jg);for(u=F.next();!u.done;u=F.next())if(u=u.value,u.callback(b)){F=u.weight;break a}F=1}b.sampleWeight=F;F=g.N(hfG);for(u=F.next();!u.done;u=F.next())if(u=u.value,u.Dz[b.name])for(q=g.N(u.Dz[b.name]),M=q.next();!M.done;M=q.next())if(K=M.value,M=b.message.match(K.NL)){b.params["params.error.original"]=M[0];q=K.groups;K={};for(a=0;a1E3&&g.rQ(new g.hC("IL Attach cache exceeded limit"))}q= hk(b,J);RO.has(q)?c8(b,J):kW.set(q,!0)}}I=I.filter(function(e){e.csn!==J?(e.csn=J,e=!0):e=!1;return e}); b={csn:J,parentVe:b.getAsJson(),childVes:g.EG(I,function(e){return e.getAsJson()})}; J==="UNDEFINED_CSN"?UT("visualElementAttached",w,b):F?i$("visualElementAttached",b,F,w):g.AY("visualElementAttached",b,w)}; MR3=function(F,J,b,I,u){xW(b,J);I=Q7({cttAuthInfo:dQ(J)||void 0},J);b={csn:J,ve:b.getAsJson(),eventType:1};u&&(b.clientData=u);J==="UNDEFINED_CSN"?UT("visualElementShown",I,b):F?i$("visualElementShown",b,F,I):g.AY("visualElementShown",b,I)}; AYk=function(F,J,b,I){var u=(I=I===void 0?!1:I)?16:8;I=Q7({cttAuthInfo:dQ(J)||void 0,endOfSequence:I},J);b={csn:J,ve:b.getAsJson(),eventType:u};J==="UNDEFINED_CSN"?UT("visualElementHidden",I,b):F?i$("visualElementHidden",b,F,I):g.AY("visualElementHidden",b,I)}; ql7=function(F,J,b,I,u){nO(F,J,b,void 0,I,u)}; nO=function(F,J,b,I,u){xW(b,J);I=I||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var w=Q7({cttAuthInfo:dQ(J)||void 0},J);b={csn:J,ve:b.getAsJson(),gestureType:I};u&&(b.clientData=u);J==="UNDEFINED_CSN"?UT("visualElementGestured",w,b):F?i$("visualElementGestured",b,F,w):g.AY("visualElementGestured",b,w)}; vuv=function(){var F=zf(16);for(var J=[],b=0;b0&&b.push(g.H1("BR"));b.push(g.L$(w))}):b.push(g.L$(I))}return b}; qc=function(F,J,b,I){if(b==="child"){g.J6(J);var u;I===void 0?u=void 0:u=!Array.isArray(I)||I&&typeof I.X==="string"?[I]:I;b=eUz(F,u);b=g.N(b);for(F=b.next();!F.done;F=b.next())J.appendChild(F.value)}else b==="style"?g.aN(J,"cssText",I?I:""):I===null||I===void 0?J.removeAttribute(b):(F=I.toString(),b==="href"&&(F=g.VG(g.Ty(F))),J.setAttribute(b,F))}; g.U=function(F){g.Mc.call(this,F);this.uT=!0;this.D=!1;this.listeners=[]}; g.vi=function(F){g.U.call(this,F);this.zj=new g.uA;g.k(this,this.zj)}; a4=function(F,J,b,I,u,w,M){M=M===void 0?null:M;g.vi.call(this,J);this.api=F;this.macros={};this.componentType=b;this.V=this.Y=null;this.cN=M;this.layoutId=I;this.interactionLoggingClientData=u;this.vN=w;this.Jz=null;this.bP=new yv(this.element);g.k(this,this.bP);this.bR=this.B(this.element,"click",this.onClick);this.kQ=[];this.Gj=new VNa(this.onClick,this);g.k(this,this.Gj);this.Um=!1;this.fW=this.Tj=null}; e0=function(F,J){F=F===void 0?null:F;J=J===void 0?null:J;if(F==null)return g.rQ(Error("Got null or undefined adText object")),"";var b=g.Zi(F.text);if(!F.isTemplated)return b;if(J==null)return g.rQ(Error("Missing required parameters for a templated message")),b;F=g.N(Object.entries(J));for(J=F.next();!J.done;J=F.next()){var I=g.N(J.value);J=I.next().value;I=I.next().value;b=b.replace("{"+J+"}",I)}return b}; KHo=function(F){F=F===void 0?null:F;return F!=null&&(F=F.thumbnail,F!=null&&F.thumbnails!=null&&F.thumbnails.length!=0&&F.thumbnails[0].url!=null)?g.Zi(F.thumbnails[0].url):""}; p$z=function(F){F=F===void 0?null:F;return F!=null&&(F=F.thumbnail,F!=null&&F.thumbnails!=null&&F.thumbnails.length!=0&&F.thumbnails[0].width!=null&&F.thumbnails[0].height!=null)?new g.gl(F.thumbnails[0].width||0,F.thumbnails[0].height||0):new g.gl(0,0)}; g.Kr=function(F){if(F.simpleText)return F.simpleText;if(F.runs){var J=[];F=g.N(F.runs);for(var b=F.next();!b.done;b=F.next())b=b.value,b.text&&J.push(b.text);return J.join("")}return""}; g.pr=function(F){if(F.simpleText)return F=document.createTextNode(F.simpleText),F;var J=[];if(F.runs)for(var b=0;b1){for(var J=[F[0]],b=1;b0&&(this.C=new g.ty(this.wQ,J,this),g.k(this,this.C));this.D=new g.ty(this.wQ,b,this);g.k(this,this.D);this.Y=SNk(this.U,u,1,I);g.k(this,this.Y);this.V=SNk(this.U,0,I,1);g.k(this,this.V);this.Z=new j9;g.k(this,this.Z)}; uD=function(F,J,b){this.U=F;this.isAsync=J;this.C=b}; ZDv=function(F){switch(F){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:wU(F,"unknown result type")}}; HD7=function(F,J){var b=1;F.isTrusted===!1&&(b=0);hE("ISDSTAT",b);wJ(b,"i.s_",{triggerContext:"sk",metadata:J});return b}; LHY=function(F,J){var b=[];J?J.isTrusted===!0?b.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):J.isTrusted===!1?b.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):b.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):b.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");wJ(0,"a.s_",{metadata:F,states:b});hE("ASDSTAT",0)}; wJ=function(F,J,b){J=FEa[J];var I,u,w={detected:F===0,source:""+J.U+((I=b.triggerContext)!=null?I:"")+((u=b.yr)!=null?u:""),detectionStates:b.states,durationMs:b.JK};b.metadata&&(w.contentCpn=b.metadata.contentCpn,w.adCpn=b.metadata.adCpn);g.AY("biscottiBasedDetection",w);J.C!==void 0&&(b=Number(g.cT("CATSTAT",0)),J.C!==void 0?(J=J.C,F=ZDv(F),F=b&~(3<0}; K0=function(F,J,b,I,u,w){xS.call(this,F,{X:"div",K:"ytp-ad-skip-button-slot"},"skip-button",J,b,I,u);var M=this;this.eE=null;this.WN=!1;this.KW=w;this.W=this.api.J().experiments.pW("enable_modern_skip_button_on_web");this.oI=!1;this.T=new g.vi({X:"span",Dv:["ytp-ad-skip-button-container"]});this.W&&this.T.element.classList.add("ytp-ad-skip-button-container-detached");this.api.S("enable_ad_pod_index_autohide")&&this.T.element.classList.add("ytp-ad-skip-button-container--clean-player");g.k(this,this.T); this.T.Az(this.element);this.U=this.Z=null;this.nW=new g.ZU(this.T,500,!1,100,function(){return M.hide()}); g.k(this,this.nW);this.qf=new IJ(this.T.element,15E3,5E3,.5,.5,this.W);g.k(this,this.qf);this.hide()}; bAG=function(F){F=F.eE&&F.eE.adRendererCommands;return(F&&F.clickCommand&&g.O(F.clickCommand,g.p0)&&g.O(F.clickCommand,g.p0).commands||[]).some(function(J){return J.adLifecycleCommand?JB3(J.adLifecycleCommand):!1})}; JB3=function(F){return F.action==="END_LINEAR_AD"||F.action==="END_LINEAR_AD_PLACEMENT"}; gJ=function(F,J,b,I,u,w){xS.call(this,F,{X:"div",K:"ytp-ad-skip-ad-slot"},"skip-ad",J,b,I,u);this.eE=w;this.Z=!1;this.W=0;this.T=this.U=null;this.hide()}; ID7=function(F,J){F.Z||(F.Z=!0,F.U&&(J?F.U.WN.hide():F.U.hide()),J?(F=F.T,F.nW.show(),F.show()):F.T.show())}; mN=function(F,J,b,I){Pi.call(this,F,J,b,I,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; ym=function(F,J,b,I,u,w,M){w=w===void 0?!1:w;M=M===void 0?!1:M;a4.call(this,F,{X:"span",K:"ytp-ad-simple-ad-badge"},"simple-ad-badge",J,b,I);this.T=u;this.C=this.RI("ytp-ad-simple-ad-badge");(this.U=w)&&this.C.classList.add("ytp-ad-simple-ad-badge--clean-player");M&&this.C.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; iD=function(F,J,b,I,u){u=u===void 0?!1:u;I4.call(this,"player-overlay",F,{},J,I);this.videoAdDurationSeconds=b;this.interactionLoggingClientData=I;this.qm=u}; zg=function(F,J){g.uA.call(this);this.api=F;this.durationMs=J;this.C=null;this.eF=new j9(this);g.k(this,this.eF);this.U=upC;this.eF.B(this.api,"presentingplayerstatechange",this.BW);this.C=this.eF.B(this.api,"onAdPlaybackProgress",this.Q6)}; N_=function(F){g.uA.call(this);this.C=!1;this.EJ=0;this.eF=new j9(this);g.k(this,this.eF);this.durationMs=F;this.bC=new g.fu(100);g.k(this,this.bC);this.eF.B(this.bC,"tick",this.Q6);this.U={seekableStart:0,seekableEnd:F/1E3,current:0};this.start()}; g.lD=function(F,J){var b=Math.abs(Math.floor(F)),I=Math.floor(b/86400),u=Math.floor(b%86400/3600),w=Math.floor(b%3600/60);b=Math.floor(b%60);if(J){J="";I>0&&(J+=" "+I+" Dias");if(I>0||u>0)J+=" "+u+" Horas";J+=" "+w+" Minutos";J+=" "+b+" Segundos";I=J.trim()}else{J="";I>0&&(J+=I+":",u<10&&(J+="0"));if(I>0||u>0)J+=u+":",w<10&&(J+="0");J+=w+":";b<10&&(J+="0");I=J+b}return F>=0?I:"-"+I}; g.f0=function(F){return(!("button"in F)||typeof F.button!=="number"||F.button===0)&&!("shiftKey"in F&&F.shiftKey)&&!("altKey"in F&&F.altKey)&&!("metaKey"in F&&F.metaKey)&&!("ctrlKey"in F&&F.ctrlKey)}; WL=function(F,J,b,I,u,w,M){xS.call(this,F,{X:"span",K:M?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",J,b,I,u);this.videoAdDurationSeconds=w;this.U=null;this.api.S("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-ad-duration-remaining--clean-player-with-light-shadow");M&&this.api.J().U&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),this.api.S("clean_player_style_fix_on_web")&&(this.element.classList.add("ytp-ad-duration-remaining--mweb-light"), hY&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios")));this.hide()}; dJ=function(F,J,b,I){ci.call(this,F,J,b,I,"ytp-video-ad-top-bar-title","ad-title");F.S("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-video-ad-top-bar-title--clean-player")}; EV=function(F){this.content=F.content;if(F.commandRuns){F=g.N(F.commandRuns);for(var J=F.next();!J.done;J=F.next())J=J.value,this.loggingDirectives=g.O(J,wro),J.onTap&&(this.interaction={onTap:J.onTap})}}; j1=function(F,J,b,I){a4.call(this,F,{X:"div",K:"ad-simple-attributed-string"},"ad-simple-attributed-string",J,b,I);this.hide()}; Gg=function(F,J,b,I,u){a4.call(this,F,{X:"span",K:u?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",J,b,I);this.U=u;this.adBadgeText=new j1(this.api,this.layoutId,this.interactionLoggingClientData,this.vN);this.adBadgeText.Az(this.element);g.k(this,this.adBadgeText);u?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),this.api.S("clean_player_style_fix_on_web")&&(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player-with-light-shadow"),hY&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios"))): this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; Vm=function(F,J,b,I,u){a4.call(this,F,{X:"span",K:"ytp-ad-pod-index"},"ad-pod-index",J,b,I);this.U=u;this.api.J().U&&(this.element.classList.add("ytp-ad-pod-index--mweb"),this.api.S("clean_player_style_fix_on_web")&&(this.element.classList.add("ytp-ad-pod-index--mweb-light"),hY&&this.element.classList.add("ytp-ad-pod-index--mweb-ios")));this.hide()}; PL=function(F,J,b,I){a4.call(this,F,{X:"div",K:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",J,b,I);this.hide()}; BL=function(F,J){this.U=F;this.C=J}; Tg=function(F,J,b){if(!F.getLength())return b!=null?b:Infinity;F=(J-F.U)/F.getLength();return g.AD(F,0,1)}; rJ=function(F,J,b,I){I=I===void 0?!1:I;g.vi.call(this,{X:"div",K:"ytp-ad-persistent-progress-bar-container",j:[{X:"div",K:"ytp-ad-persistent-progress-bar"}]});this.api=F;this.U=J;this.T=b;I&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.k(this,this.U);this.progressBar=this.RI("ytp-ad-persistent-progress-bar");this.C=-1;this.B(F,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; S1=function(F,J,b,I,u,w){a4.call(this,F,{X:"div",K:"ytp-ad-player-overlay",j:[{X:"div",K:"ytp-ad-player-overlay-flyout-cta"},{X:"div",K:"ytp-ad-player-overlay-instream-info"},{X:"div",K:"ytp-ad-player-overlay-skip-or-preview"},{X:"div",K:"ytp-ad-player-overlay-progress-bar"},{X:"div",K:"ytp-ad-player-overlay-instream-user-sentiment"},{X:"div",K:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",J,b,I);this.eE=w;this.W=this.RI("ytp-ad-player-overlay-flyout-cta");this.W.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.C=this.RI("ytp-ad-player-overlay-instream-info");this.Z=null;M6z(this)&&(F=Z8("div"),g.uG(F,"ytp-ad-player-overlay-top-bar-gradients"),this.api.S("disable_ad_preview_for_instream_ads")&&g.uG(F,"ytp-ad-player-overlay-top-bar-gradients--clean-player"),J=this.C,J.parentNode&&J.parentNode.insertBefore(F,J),(J=this.api.getVideoData(2))&&J.isListed&&J.title&&(b=new dJ(this.api,this.layoutId,this.interactionLoggingClientData,this.vN),b.Az(F),b.init(bA("ad-title"),{text:J.title},this.macros),g.k(this, b)),this.Z=F);this.T=null;this.N=this.RI("ytp-ad-player-overlay-skip-or-preview");this.dD=this.RI("ytp-ad-player-overlay-progress-bar");this.qf=this.RI("ytp-ad-player-overlay-instream-user-sentiment");this.WN=this.RI("ytp-ad-player-overlay-ad-disclosure-banner");this.U=u;g.k(this,this.U);this.hide()}; M6z=function(F){F=F.api.J();return g.sV(F)&&F.U}; Yy=function(F,J,b){var I={};J&&(I.v=J);b&&(I.list=b);F={name:F,locale:void 0,feature:void 0};for(var u in I)F[u]=I[u];I=g.Os("/sharing_services",F);g.Xp(I)}; g.$y=function(F){F&=16777215;var J=[(F&16711680)>>16,(F&65280)>>8,F&255];F=J[0];var b=J[1];J=J[2];F=Number(F);b=Number(b);J=Number(J);if(F!=(F&255)||b!=(b&255)||J!=(J&255))throw Error('"('+F+","+b+","+J+'") is not a valid RGB color');b=F<<16|b<<8|J;return F<16?"#"+(16777216|b).toString(16).slice(1):"#"+b.toString(16)}; C0=function(F){this.C=new VN(F)}; AB_=function(){var F=!1;try{F=!!window.sessionStorage.getItem("session_logininfo")}catch(J){F=!0}return(g.cT("INNERTUBE_CLIENT_NAME")==="WEB"||g.cT("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&F}; XY=function(F){if(g.cT("LOGGED_IN",!0)&&AB_()){var J=g.cT("VALID_SESSION_TEMPDATA_DOMAINS",[]);var b=g.Cu(window.location.href);b&&J.push(b);b=g.Cu(F);g.te(J,b)||!b&&Wk(F,"/")?(J=XQ(F),(J=f8G(J))?(J=Yy4(J),J=(J=g.$6(J)||null)?FF(J):{}):J=null):J=null;J==null&&(J={});b=J;var I=void 0;AB_()?(I||(I=g.cT("LOGIN_INFO")),I?(b.session_logininfo=I,b=!0):b=!1):b=!1;b&&ET(F,J)}}; g.qZ3=function(F){var J=J===void 0?{}:J;var b=b===void 0?"":b;var I=I===void 0?window:I;F=g.Os(F,J);XY(F);b=g.Ty(F+b);I=I.location;b=r3(b);b!==void 0&&(I.href=b)}; g.Qm=function(F,J,b){J=J===void 0?{}:J;b=b===void 0?!1:b;var I=g.cT("EVENT_ID");I&&(J.ei||(J.ei=I));J&&ET(F,J);b||(XY(F),g.qZ3(F))}; g.RJ=function(F,J,b,I,u){u=u===void 0?!1:u;b&&ET(F,b);b=g.Ty(F);var w=g.VG(b);F!=w&&Zk(Error("Unsafe window.open URL: "+F));F=w;J=J||H9(F).toString(36);try{if(u){u=F;u=eyz(u);XY(u);g.C5(window,u,J,"attributionsrc");return}}catch(M){g.nX(M)}XY(F);g.C5(window,b,J,I)}; vPz=function(F){DI=F}; aDz=function(F){ky=F}; eoa=function(F){OV=F}; prz=function(){KE7=OV=ky=DI=null}; mKv=function(){var F=F===void 0?window.location.href:F;if(g.Nk("kevlar_disable_theme_param"))return null;var J=Tq(g.$V(5,F));if(g.Nk("enable_dark_theme_only_on_shorts")&&J!=null&&J.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var b=g.bi(F).theme;return gPk.get(b)||null}catch(I){}return null}; oJ=function(){this.C={};if(this.U=i8z()){var F=g.$6("CONSISTENCY");F&&yBz(this,{encryptedTokenJarContents:F})}}; yBz=function(F,J){if(J.encryptedTokenJarContents&&(F.C[J.encryptedTokenJarContents]=J,typeof J.expirationSeconds==="string")){var b=Number(J.expirationSeconds);setTimeout(function(){delete F.C[J.encryptedTokenJarContents]},b*1E3); F.U&&g.Y6("CONSISTENCY",J.encryptedTokenJarContents,b,void 0,!0)}}; cL=function(){this.U=-1;var F=g.cT("LOCATION_PLAYABILITY_TOKEN");g.cT("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=h5(this))&&(F=this.localStorage.get("yt-location-playability-token"));F&&(this.locationPlayabilityToken=F,this.C=void 0)}; h5=function(F){return F.localStorage===void 0?new JY("yt-client-location"):F.localStorage}; g.UV=function(F,J,b){J=J===void 0?!1:J;b=b===void 0?!1:b;var I=g.cT("INNERTUBE_CONTEXT");if(!I)return g.Td(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};I=g.rl(I);g.Nk("web_no_tracking_params_in_shell_killswitch")||delete I.clickTracking;I.client||(I.client={});var u=I.client;u.clientName==="MWEB"&&u.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(u.clientFormFactor=g.cT("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");u.screenWidthPoints=window.innerWidth;u.screenHeightPoints= window.innerHeight;u.screenPixelDensity=Math.round(window.devicePixelRatio||1);u.screenDensityFloat=window.devicePixelRatio||1;u.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var w=w===void 0?!1:w;g.Qe();var M="USER_INTERFACE_THEME_LIGHT";g.Rg(0,165)?M="USER_INTERFACE_THEME_DARK":g.Rg(0,174)?M="USER_INTERFACE_THEME_LIGHT":!g.Nk("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (M="USER_INTERFACE_THEME_DARK");w=w?M:mKv()||M;u.userInterfaceTheme=w;if(!J){if(w=u4_())u.connectionType=w;g.Nk("web_log_effective_connection_type")&&(w=MMY())&&(I.client.effectiveConnectionType=w)}var q;if(g.Nk("web_log_memory_total_kbytes")&&((q=g.Qz.navigator)==null?0:q.deviceMemory)){var v;q=(v=g.Qz.navigator)==null?void 0:v.deviceMemory;I.client.memoryTotalKbytes=""+q*1E6}g.Nk("web_gcf_hashes_innertube")&&(w=pT7())&&(v=w.coldConfigData,q=w.coldHashData,w=w.hotHashData,I.client.configInfo=I.client.configInfo|| {},v&&(I.client.configInfo.coldConfigData=v),q&&(I.client.configInfo.coldHashData=q),w&&(I.client.configInfo.hotHashData=w));v=g.bi(g.Qz.location.href);!g.Nk("web_populate_internal_geo_killswitch")&&v.internalcountrycode&&(u.internalGeo=v.internalcountrycode);u.clientName==="MWEB"||u.clientName==="WEB"?(u.mainAppWebInfo={graftUrl:g.Qz.location.href},g.Nk("kevlar_woffle")&&Z8a.instance&&(v=Z8a.instance,u.mainAppWebInfo.pwaInstallabilityStatus=!v.C&&v.U?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),u.mainAppWebInfo.webDisplayMode=$q(),u.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):u.clientName==="TVHTML5"&&(!g.Nk("web_lr_app_quality_killswitch")&&(v=g.cT("LIVING_ROOM_APP_QUALITY"))&&(u.tvAppInfo=Object.assign(u.tvAppInfo||{},{appQuality:v})),v=g.cT("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(u.tvAppInfo=Object.assign(u.tvAppInfo||{},{certificationScope:v}));if(!g.Nk("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var a=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(Q){}a=void 0}a&&(u.timeZone=a)}(a=fl())?u.experimentsToken=a:delete u.experimentsToken;a=Wx();oJ.instance||(oJ.instance=new oJ);I.request=Object.assign({},I.request,{internalExperimentFlags:a,consistencyTokenJars:g.W1(oJ.instance.C)});!g.Nk("web_prequest_context_killswitch")&&(a=g.cT("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(I.request.externalPrequestContext=a);u=g.Qe();a=g.Rg(0,58);u=u.get("gsml","");I.user=Object.assign({}, I.user);a&&(I.user.enableSafetyMode=a);u&&(I.user.lockedSafetyMode=!0);g.Nk("warm_op_csn_cleanup")?b&&(J=g.W8())&&(I.clientScreenNonce=J):!J&&(J=g.W8())&&(I.clientScreenNonce=J);F&&(I.clickTracking={clickTrackingParams:F});if(F=g.kC("yt.mdx.remote.remoteClient_"))I.remoteClient=F;cL.getInstance().setLocationOnInnerTubeContext(I);try{var e=aR(),K=e.bid;delete e.bid;I.adSignalsInfo={params:[],bid:K};for(var p=g.N(Object.entries(e)),m=p.next();!m.done;m=p.next()){var y=g.N(m.value),f=y.next().value, d=y.next().value;e=f;K=d;F=void 0;(F=I.adSignalsInfo.params)==null||F.push({key:e,value:""+K})}var G,P;if(((G=I.client)==null?void 0:G.clientName)==="TVHTML5"||((P=I.client)==null?void 0:P.clientName)==="TVHTML5_UNPLUGGED"){var r=g.cT("INNERTUBE_CONTEXT");r.adSignalsInfo&&(I.adSignalsInfo.advertisingId=r.adSignalsInfo.advertisingId,I.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",I.adSignalsInfo.limitAdTracking=r.adSignalsInfo.limitAdTracking)}}catch(Q){g.Td(Q)}return I}; NL3=function(F,J){if(!F)return!1;var b,I=(b=g.O(F,iAm))==null?void 0:b.signal;if(I&&J.nQ)return!!J.nQ[I];var u;if((b=(u=g.O(F,zoz))==null?void 0:u.request)&&J.yI)return!!J.yI[b];for(var w in F)if(J.FQ[w])return!0;return!1}; lDk=function(F){var J={"Content-Type":"application/json"};g.cT("EOM_VISITOR_DATA")?J["X-Goog-EOM-Visitor-Id"]=g.cT("EOM_VISITOR_DATA"):g.cT("VISITOR_DATA")&&(J["X-Goog-Visitor-Id"]=g.cT("VISITOR_DATA"));J["X-Youtube-Bootstrap-Logged-In"]=g.cT("LOGGED_IN",!1);g.cT("DEBUG_SETTINGS_METADATA")&&(J["X-Debug-Settings-Metadata"]=g.cT("DEBUG_SETTINGS_METADATA"));F!=="cors"&&((F=g.cT("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(J["X-Youtube-Client-Name"]=F),(F=g.cT("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(J["X-Youtube-Client-Version"]= F),(F=g.cT("CHROME_CONNECTED_HEADER"))&&(J["X-Youtube-Chrome-Connected"]=F),(F=g.cT("DOMAIN_ADMIN_STATE"))&&(J["X-Youtube-Domain-Admin-State"]=F),g.cT("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(F=g.cT("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(J["X-YouTube-Lava-Device-Context"]=F));return J}; fDm=function(){this.C={}}; n0=function(){this.mappings=new fDm}; t5=function(F){return function(){return new F}}; dK_=function(F){var J=J===void 0?"UNKNOWN_INTERFACE":J;if(F.length===1)return F[0];var b=WE4[J];if(b){b=new RegExp(b);for(var I=g.N(F),u=I.next();!u.done;u=I.next())if(u=u.value,b.exec(u))return u}var w=[];Object.entries(WE4).forEach(function(M){var q=g.N(M);M=q.next().value;q=q.next().value;J!==M&&w.push(q)}); b=new RegExp(w.join("|"));F.sort(function(M,q){return M.length-q.length}); I=g.N(F);for(u=I.next();!u.done;u=I.next())if(u=u.value,!b.exec(u))return u;return F[0]}; g.ZI=function(F){return"/youtubei/v1/"+dK_(F)}; HL=function(){}; L0=function(){}; FH=function(){}; Kp=function(F){return g.kC("ytcsi."+(F||"")+"data_")||EPG(F)}; jKa=function(){var F=Kp();F.info||(F.info={});return F.info}; pp=function(F){F=Kp(F);F.metadata||(F.metadata={});return F.metadata}; mK=function(F){F=Kp(F);F.tick||(F.tick={});return F.tick}; yk=function(F){F=Kp(F);if(F.gel){var J=F.gel;J.gelInfos||(J.gelInfos={});J.gelTicks||(J.gelTicks={})}else F.gel={gelTicks:{},gelInfos:{}};return F.gel}; GSm=function(F){F=yk(F);F.gelInfos||(F.gelInfos={});return F.gelInfos}; iq=function(F){var J=Kp(F).nonce;J||(J=g.Nq(16),Kp(F).nonce=J);return J}; EPG=function(F){var J={tick:{},info:{}};g.RG("ytcsi."+(F||"")+"data_",J);return J}; zp=function(){var F=g.kC("ytcsi.debug");F||(F=[],g.RG("ytcsi.debug",F),g.RG("ytcsi.reference",{}));return F}; NG=function(F){F=F||"";var J=V6Y();if(J[F])return J[F];var b=zp(),I={timerName:F,info:{},tick:{},span:{},jspbInfo:[]};b.push(I);return J[F]=I}; PCC=function(F){F=F||"";var J=V6Y();J[F]&&delete J[F];var b=zp(),I={timerName:F,info:{},tick:{},span:{},jspbInfo:[]};b.push(I);J[F]=I}; V6Y=function(){var F=g.kC("ytcsi.reference");if(F)return F;zp();return g.kC("ytcsi.reference")}; lq=function(F){return BLa[F]||"LATENCY_ACTION_UNKNOWN"}; fp=function(F,J){e6.call(this,1,arguments);this.bC=J}; Wf=function(){this.C=0}; da=function(){Wf.instance||(Wf.instance=new Wf);return Wf.instance}; jl=function(F,J){Ez[J]=Ez[J]||{count:0};var b=Ez[J];b.count++;b.time=(0,g.jR)();F.C||(F.C=g.tC(0,function(){var I=(0,g.jR)(),u;for(u in Ez)Ez[u]&&I-Ez[u].time>6E4&&delete Ez[u];F&&(F.C=0)},5E3)); return b.count>5?(b.count===6&&Math.random()*1E5<1&&(b=new g.hC("CSI data exceeded logging limit with key",J.split("_")),J.indexOf("plev")>=0||g.rQ(b)),!0):!1}; TLm=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; rBY=function(){var F;if(g.Nk("csi_use_performance_navigation_timing")||g.Nk("csi_use_performance_navigation_timing_tvhtml5")){var J,b,I,u=Gp==null?void 0:(F=Gp.getEntriesByType)==null?void 0:(J=F.call(Gp,"navigation"))==null?void 0:(b=J[0])==null?void 0:(I=b.toJSON)==null?void 0:I.call(b);u?(u.requestStart=Vk(u.requestStart),u.responseEnd=Vk(u.responseEnd),u.redirectStart=Vk(u.redirectStart),u.redirectEnd=Vk(u.redirectEnd),u.domainLookupEnd=Vk(u.domainLookupEnd),u.connectStart=Vk(u.connectStart), u.connectEnd=Vk(u.connectEnd),u.responseStart=Vk(u.responseStart),u.secureConnectionStart=Vk(u.secureConnectionStart),u.domainLookupStart=Vk(u.domainLookupStart),u.isPerformanceNavigationTiming=!0,F=u):F=Gp.timing}else F=g.Nk("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(Gp.timing)):Gp.timing;return F}; Vk=function(F){return Math.round(Pf()+F)}; Pf=function(){return(g.Nk("csi_use_time_origin")||g.Nk("csi_use_time_origin_tvhtml5"))&&Gp.timeOrigin?Math.floor(Gp.timeOrigin):Gp.timing.navigationStart}; Tp=function(F,J){Bf("_start",F,J)}; ra=function(F,J){if(!g.Nk("web_csi_action_sampling_enabled")||!Kp(J).actionDisabled){var b=NG(J||"");vB(b.info,F);F.loadType&&(b=F.loadType,pp(J).loadType=b);vB(GSm(J),F);b=iq(J);J=Kp(J).cttAuthInfo;da().info(F,b,J)}}; SZm=function(){var F,J,b,I;return((I=Tf().resolve(new jZ(MK))==null?void 0:(F=AB())==null?void 0:(J=F.loggingHotConfig)==null?void 0:(b=J.csiConfig)==null?void 0:b.debugTicks)!=null?I:[]).map(function(u){return Object.values(u)[0]})}; Bf=function(F,J,b){if(!g.Nk("web_csi_action_sampling_enabled")||!Kp(b).actionDisabled){var I=iq(b),u;if(u=g.Nk("web_csi_debug_sample_enabled")&&I){(Tf().resolve(new jZ(MK))==null?0:AB())&&!sKJ&&(sKJ=!0,Bf("gcfl",(0,g.jR)(),b));var w,M,q;u=(Tf().resolve(new jZ(MK))==null?void 0:(w=AB())==null?void 0:(M=w.loggingHotConfig)==null?void 0:(q=M.csiConfig)==null?void 0:q.debugSampleWeight)||0;if(w=u!==0)b:{w=SZm();if(w.length>0)for(M=0;Mb.duration?I:b},{duration:0}))&&J.startTime>0&&J.responseEnd>0&&(Bf("wffs",Vk(J.startTime)),Bf("wffe",Vk(J.responseEnd)))}; DKz=function(F,J,b){Gp&&Gp.measure&&(F.startsWith("measure_")||(F="measure_"+F),b?Gp.measure(F,J,b):J?Gp.measure(F,J):Gp.measure(F))}; kSz=function(F){var J=Sl("aft",F);if(J)return J;J=g.cT((F||"")+"TIMING_AFT_KEYS",["ol"]);for(var b=J.length,I=0;I0&&ra(J);J={isNavigation:!0,actionType:lq(g.cT("TIMING_ACTION"))};var b=g.cT("PREVIOUS_ACTION");b&&(J.previousAction=lq(b));if(b=g.cT("CLIENT_PROTOCOL"))J.httpProtocol=b;if(b=g.cT("CLIENT_TRANSPORT"))J.transportProtocol=b;(b=g.W8())&&b!=="UNDEFINED_CSN"&&(J.clientScreenNonce=b);b=CCv();if(b===1||b===-1)J.isVisible= !0;b=pp().loadType==="cold";var I=jKa();b||(b=I.yt_lt==="cold");if(b){J.loadType="cold";b=jKa();I=rBY();var u=Pf(),w=g.cT("CSI_START_TIMESTAMP_MILLIS",0);w>0&&!g.Nk("embeds_web_enable_csi_start_override_killswitch")&&(u=w);u&&(Bf("srt",I.responseStart),b.prerender!==1&&Tp(u));b=ho_();b>0&&Bf("fpt",b);b=rBY();b.isPerformanceNavigationTiming&&ra({performanceNavigationTiming:!0},void 0);Bf("nreqs",b.requestStart,void 0);Bf("nress",b.responseStart,void 0);Bf("nrese",b.responseEnd,void 0);b.redirectEnd- b.redirectStart>0&&(Bf("nrs",b.redirectStart,void 0),Bf("nre",b.redirectEnd,void 0));b.domainLookupEnd-b.domainLookupStart>0&&(Bf("ndnss",b.domainLookupStart,void 0),Bf("ndnse",b.domainLookupEnd,void 0));b.connectEnd-b.connectStart>0&&(Bf("ntcps",b.connectStart,void 0),Bf("ntcpe",b.connectEnd,void 0));b.secureConnectionStart>=Pf()&&b.connectEnd-b.secureConnectionStart>0&&(Bf("nstcps",b.secureConnectionStart,void 0),Bf("ntcpe",b.connectEnd,void 0));Gp&&"getEntriesByType"in Gp&&Roo();b=[];if(document.querySelector&& Gp&&Gp.getEntriesByName)for(var M in $k)$k.hasOwnProperty(M)&&(I=$k[M],QKk(M,I)&&b.push(I));if(b.length>0)for(J.resourceInfo=[],M=g.N(b),b=M.next();!b.done;b=M.next())J.resourceInfo.push({resourceCache:b.value})}ra(J);J=yk();J.preLoggedGelInfos||(J.preLoggedGelInfos=[]);M=J.preLoggedGelInfos;J=GSm();b=void 0;for(I=0;I-1&&(delete l["@type"],n=l);f&&F.U.has(f)&&F.U.delete(f);((Da=J.config)==null?0:Da.Odv)&&XH(J.config.Odv);if(n||(fz=F.T)==null||!fz.Wwv(J.input,J.K1)){Vz.gD(15);break}return g.T(Vz,F.T.M2G(J.input,J.K1),16);case 16:n=Vz.U;case 15:return vBC(F,n,J),((Kz=J.config)==null?0:Kz.b7f)&&XH(J.config.b7f),I(),Vz.return(n|| void 0)}})}; uTJ=function(F,J){a:{F=F.gU;var b,I=(b=g.O(J,iAm))==null?void 0:b.signal;if(I&&F.nQ&&(b=F.nQ[I])){var u=b();break a}var w;if((b=(w=g.O(J,zoz))==null?void 0:w.request)&&F.yI&&(w=F.yI[b])){u=w();break a}for(u in J)if(F.FQ[u]&&(J=F.FQ[u])){u=J();break a}u=void 0}if(u!==void 0)return Promise.resolve(u)}; MZa=function(F,J,b){var I,u,w,M,q,v,a;return g.S(function(e){if(e.C==1){w=((I=J)==null?void 0:(u=I.R3)==null?void 0:u.identity)||aK;v=(M=J)==null?void 0:(q=M.R3)==null?void 0:q.sessionIndex;var K=g.yX(F.C.Du(w,{sessionIndex:v}));return g.T(e,K,2)}a=e.U;return e.return(Promise.resolve(Object.assign({},lDk(b),a)))})}; wBk=function(F,J,b){var I,u=(J==null?void 0:(I=J.R3)==null?void 0:I.identity)||aK,w;J=J==null?void 0:(w=J.R3)==null?void 0:w.sessionIndex;F=F.C.Du(u,{sessionIndex:J});return Object.assign({},lDk(b),F)}; Uz=function(){}; xk=function(){}; np=function(F){this.W=F}; to=function(){}; Zj=function(){}; Hf=function(){}; Lp=function(){}; g.FS=function(F,J){var b=g.Ba.apply(2,arguments);F=F===void 0?0:F;g.hC.call(this,J,b);this.errorType=F;Object.setPrototypeOf(this,this.constructor.prototype)}; J3=function(F,J,b){this.C=F;this.U=J;this.T=b}; ew3=function(F,J,b){if(F.C){var I=Tq(g.$V(5,cj(J,"key")))||"/UNKNOWN_PATH";F.C.start(I)}F=b;g.Nk("wug_networking_gzip_request")&&(F=oD_(b));return new window.Request(J,F)}; g.IW=function(F,J){if(!bH){var b=Tf();Gf(b,{lE:KA4,MB:J3});var I={FQ:{feedbackEndpoint:t5(to),modifyChannelNotificationPreferenceEndpoint:t5(Zj),playlistEditEndpoint:t5(Hf),shareEntityEndpoint:t5(np),subscribeEndpoint:t5(Uz),unsubscribeEndpoint:t5(xk),webPlayerShareEntityServiceEndpoint:t5(Lp)}},u=cL.getInstance(),w={};u&&(w.client_location=u);F===void 0&&(F=H8Y());J===void 0&&(J=b.resolve(KA4));InG(I,J,F,w);Gf(b,{lE:pBk,fS:or.instance});bH=b.resolve(pBk)}return bH}; gBY=function(F){var J=new p2;if(F.interpreterJavascript){var b=S0m(F.interpreterJavascript);b=R0(b).toString();var I=new eW;yH(I,6,b);Ax(J,eW,1,I)}else F.interpreterUrl&&(b=fX(F.interpreterUrl),b=jp(b).toString(),I=new K2,yH(I,4,b),Ax(J,K2,2,I));F.interpreterHash&&iP(J,3,F.interpreterHash);F.program&&iP(J,4,F.program);F.globalName&&iP(J,5,F.globalName);F.clientExperimentsStateBlob&&iP(J,7,F.clientExperimentsStateBlob);return J}; uH=function(F){var J={};F=F.split("&");F=g.N(F);for(var b=F.next();!b.done;b=F.next())b=b.value.split("="),b.length===2&&(J[b[0]]=b[1]);return J}; Lx4=function(){if(g.Nk("bg_st_hr"))return"havuokmhhs-0";var F,J=((F=performance)==null?void 0:F.timeOrigin)||0;return"havuokmhhs-"+Math.floor(J)}; wE=function(F){this.C=F}; mqC=function(){return new Promise(function(F){var J=window.top;J.ntpevasrs!==void 0?F(new wE(J.ntpevasrs)):(J.ntpqfbel===void 0&&(J.ntpqfbel=[]),J.ntpqfbel.push(function(b){F(new wE(b))}))})}; iJG=function(){if(!g.Nk("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.Nk("disable_biscotti_fetch_entirely_for_all_web_clients")&&Ft()){var F=g.cT("PLAYER_VARS",{});if(g.P1(F,"privembed",!1)!="1"&&!EQv(F)){var J=function(){MJ=!0;"google_ad_status"in window?hE("DCLKSTAT",1):hE("DCLKSTAT",2)}; try{g.wP("//static.doubleclick.net/instream/ad_status.js",J)}catch(b){}yAa.push(g.D_.Ti(function(){if(!(MJ||"google_ad_status"in window)){try{if(J){var b=""+g.n3(J),I=E6J[b];I&&g.Iu(I)}}catch(u){}MJ=!0;hE("DCLKSTAT",3)}},5E3))}}}; A3=function(){var F=Number(g.cT("DCLKSTAT",0));return isNaN(F)?0:F}; et=function(F,J,b){var I=this;this.network=F;this.options=J;this.U=b;this.C=null;if(J.tyQ){var u=new g.m6;this.C=u.promise;g.Qz.ytAtRC&&nw(function(){var w,M;return g.S(function(q){if(q.C==1){if(!g.Qz.ytAtRC)return q.return();w=qJ(null);return g.T(q,vA(I,w),2)}M=q.U;g.Qz.ytAtRC&&g.Qz.ytAtRC(JSON.stringify(M));g.N4(q)})},2); mqC().then(function(w){var M,q,v,a;return g.S(function(e){if(e.C==1)return w.bindInnertubeChallengeFetcher(function(K){return vA(I,qJ(K))}),g.T(e,PQ(),2); M=e.U;q=w.getLatestChallengeResponse();v=q.challenge;if(!v)throw Error("BGE_MACIL");a={challenge:v,iB:uH(v),w0:M,bgChallenge:new p2};u.resolve(a);w.registerChallengeFetchedCallback(function(K){K=K.challenge;if(!K)throw Error("BGE_MACR");K={challenge:K,iB:uH(K),w0:M,bgChallenge:new p2};I.C=Promise.resolve(K)}); g.N4(e)})})}else J.preload&&zwv(this,new Promise(function(w){g.tC(0,function(){w(aW(I))},0)}))}; qJ=function(F){var J={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};F&&(J.interpreterHash=F);return J}; aW=function(F,J){J=J===void 0?0:J;var b,I,u,w,M,q,v,a,e,K,p,m;return g.S(function(y){switch(y.C){case 1:b=qJ(z5().C);if(g.Nk("att_fet_ks"))return g.lk(y,7),g.T(y,vA(F,b),9);g.lk(y,4);return g.T(y,NPC(F,b),6);case 6:M=y.U;u=M.fej;w=M.MZv;I=M;g.Wa(y,3);break;case 4:return g.dY(y),g.rQ(Error("Failed to fetch attestation challenge after "+(J+" attempts; not retrying for 24h."))),KQ(F,864E5),y.return({challenge:"",iB:{},w0:void 0,bgChallenge:void 0});case 9:I=y.U;if(!I)throw Error("Fetching Attestation challenge returned falsy"); if(!I.challenge)throw Error("Missing Attestation challenge");u=I.challenge;w=uH(u);if("c1a"in w&&(!I.bgChallenge||!I.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.Wa(y,3);break;case 7:q=g.dY(y);g.rQ(q);J++;if(J>=5)return g.rQ(Error("Failed to fetch attestation challenge after "+(J+" attempts; not retrying for 24h."))),KQ(F,864E5),y.return({challenge:"",iB:{},w0:void 0,bgChallenge:void 0});v=1E3*Math.pow(2,J-1)+Math.random()*1E3;return y.return(new Promise(function(f){g.tC(0, function(){f(aW(F,J))},v)})); case 3:a=Number(w.t)||7200;KQ(F,a*1E3);e=void 0;if(!("c1a"in w&&I.bgChallenge)){y.gD(10);break}K=gBY(I.bgChallenge);g.lk(y,11);return g.T(y,N6(z5(),K),13);case 13:g.Wa(y,12);break;case 11:return p=g.dY(y),g.rQ(p),y.return({challenge:u,iB:w,w0:e,bgChallenge:K});case 12:return g.lk(y,14),e=new y3({challenge:K,qK:{bk:"aGIf"}}),g.T(y,e.Al,16);case 16:g.Wa(y,10);break;case 14:m=g.dY(y),g.rQ(m),e=void 0;case 10:return y.return({challenge:u,iB:w,w0:e,bgChallenge:K})}})}; vA=function(F,J){var b;return g.S(function(I){b=F.U;if(!b||b.Vi())return I.return(vA(F.network,J));Oz("att_pna",void 0,"attestation_challenge_fetch");return I.return(new Promise(function(u){b.Sk("publicytnetworkstatus-online",function(){vA(F.network,J).then(u)})}))})}; ln3=function(F){if(!F)throw Error("Fetching Attestation challenge returned falsy");if(!F.challenge)throw Error("Missing Attestation challenge");var J=F.challenge,b=uH(J);if("c1a"in b&&(!F.bgChallenge||!F.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},F,{fej:J,MZv:b})}; NPC=function(F,J){var b,I,u,w,M;return g.S(function(q){switch(q.C){case 1:b=void 0,I=0,u={};case 2:if(!(I<5)){q.gD(4);break}if(!(I>0)){q.gD(5);break}u.s$=1E3*Math.pow(2,I-1)+Math.random()*1E3;return g.T(q,new Promise(function(v){return function(a){g.tC(0,function(){a(void 0)},v.s$)}}(u)),5); case 5:return g.lk(q,7),g.T(q,vA(F,J),9);case 9:return w=q.U,q.return(ln3(w));case 7:b=M=g.dY(q),M instanceof Error&&g.rQ(M);case 8:I++;u={s$:void 0};q.gD(2);break;case 4:throw b;}})}; zwv=function(F,J){F.C=J}; fnz=function(F){var J,b,I;return g.S(function(u){if(u.C==1)return g.T(u,Promise.race([F.C,null]),2);J=u.U;var w=aW(F);F.C=w;(b=J)==null||(I=b.w0)==null||I.dispose();g.N4(u)})}; KQ=function(F,J){function b(){var u;return g.S(function(w){u=I-Date.now();return u<1E3?g.T(w,fnz(F),0):(nw(b,0,Math.min(u,6E4)),w.gD(0))})} var I=Date.now()+J;b()}; WA_=function(F,J){return new Promise(function(b){g.tC(0,function(){b(J())},F)})}; g.dq3=function(F,J){var b;return g.S(function(I){var u=g.kC("yt.aba.att");return(b=u?u:et.instance!==void 0?et.instance.T.bind(et.instance):null)?I.return(b("ENGAGEMENT_TYPE_PLAYBACK",F,J)):I.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.EBG=function(){var F;return(F=(F=g.kC("yt.aba.att2"))?F:et.instance!==void 0?et.instance.Z.bind(et.instance):null)?F():Promise.resolve(!1)}; Gfz=function(F,J){var b=g.kC("ytDebugData.callbacks");b||(b={},g.RG("ytDebugData.callbacks",b));if(g.Nk("web_dd_iu")||juo.includes(F))b[F]=J}; pQ=function(){var F=VZJ;var J=J===void 0?[]:J;var b=b===void 0?[]:b;J=GZk.apply(null,[V7o.apply(null,g.W(J))].concat(g.W(b)));this.store=B2z(F,void 0,J)}; g.gE=function(F,J,b){for(var I=Object.assign({},F),u=g.N(Object.keys(J)),w=u.next();!w.done;w=u.next()){w=w.value;var M=F[w],q=J[w];if(q===void 0)delete I[w];else if(M===void 0)I[w]=q;else if(Array.isArray(q)&&Array.isArray(M))I[w]=b?[].concat(g.W(M),g.W(q)):q;else if(!Array.isArray(q)&&g.Um(q)&&!Array.isArray(M)&&g.Um(M))I[w]=g.gE(M,q,b);else if(typeof q===typeof M)I[w]=q;else return J=new g.hC("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:w,J3z:M,updateValue:q}),g.Td(J), F}return I}; m_=function(F){var J=this;F=F===void 0?[]:F;this.g6=[];this.O2=this.VM=0;this.R0=void 0;this.totalLength=0;F.forEach(function(b){J.append(b)})}; P03=function(F,J){return F.g6.length===0?!1:(F=F.g6[F.g6.length-1])&&F.buffer===J.buffer&&F.byteOffset+F.length===J.byteOffset}; yK=function(F,J){J=g.N(J.g6);for(var b=J.next();!b.done;b=J.next())F.append(b.value)}; iH=function(F,J,b){return F.split(J).eS.split(b).lf}; zc=function(F){F.R0=void 0;F.VM=0;F.O2=0}; NJ=function(F,J,b){F.isFocused(J);return J-F.O2+b<=F.g6[F.VM].length}; BPo=function(F){if(!F.R0){var J=F.g6[F.VM];F.R0=new DataView(J.buffer,J.byteOffset,J.length)}return F.R0}; lH=function(F,J,b){F=F.HS(J===void 0?0:J,b===void 0?-1:b);J=new Uint8Array(F.length);try{J.set(F)}catch(I){for(b=0;b>10;w=56320|w&1023}dE[u++]=w}}w=String.fromCharCode.apply(String,dE); u<1024&&(w=w.substring(0,u));b.push(w)}return b.join("")}; Gc=function(F,J){var b;if((b=jt)==null?0:b.encodeInto)return J=jt.encodeInto(F,J),J.read>6|192:((u&64512)===55296&&I+1>18|240,J[b++]=u>>12&63|128):J[b++]=u>>12|224,J[b++]=u>>6&63|128),J[b++]=u&63|128)}return b}; VK=function(F){if(jt)return jt.encode(F);var J=new Uint8Array(Math.ceil(F.length*1.2)),b=Gc(F,J);J.lengthb&&(J=J.subarray(0,b));return J}; PA=function(F){this.C=F;this.pos=0;this.U=-1}; BA=function(F){var J=F.C.getUint8(F.pos);++F.pos;if(J<128)return J;for(var b=J&127,I=1;J>=128;)J=F.C.getUint8(F.pos),++F.pos,I*=128,b+=(J&127)*I;return b}; Tc=function(F,J){var b=F.U;for(F.U=-1;F.C.UL(F.pos,1);){b<0&&(b=BA(F));var I=b>>3,u=b&7;if(I===J)return!0;if(I>J){F.U=b;break}b=-1;switch(u){case 0:BA(F);break;case 1:F.pos+=8;break;case 2:I=BA(F);F.pos+=I;break;case 5:F.pos+=4}}return!1}; rE=function(F,J){if(Tc(F,J))return BA(F)}; St=function(F,J){if(Tc(F,J))return!!BA(F)}; YF=function(F,J){if(Tc(F,J)){J=BA(F);var b=F.C.HS(F.pos,J);F.pos+=J;return b}}; $F=function(F,J){if(F=YF(F,J))return g.Ev(F)}; CQ=function(F,J,b){if(F=YF(F,J))return b(new PA(new m_([F])))}; XS=function(F,J){for(var b=[];Tc(F,J);)b.push(BA(F));return b.length?b:void 0}; QK=function(F,J,b){for(var I=[],u;u=YF(F,J);)I.push(b(new PA(new m_([u]))));return I.length?I:void 0}; RW=function(F,J){F=F instanceof Uint8Array?new m_([F]):F;return J(new PA(F))}; Sw7=function(F,J,b){if(J&&b&&b.buffer===J.exports.memory.buffer){var I=J.realloc(b.byteOffset,F);if(I)return new Uint8Array(J.exports.memory.buffer,I,F)}F=J?new Uint8Array(J.exports.memory.buffer,J.malloc(F),F):new Uint8Array(F);b&&F.set(b);return F}; suG=function(F,J){this.PV=J;this.pos=0;this.U=[];this.C=Sw7(F===void 0?4096:F,J);this.view=new DataView(this.C.buffer,this.C.byteOffset,this.C.byteLength)}; Dy=function(F,J){J=F.pos+J;if(!(F.C.length>=J)){for(var b=F.C.length*2;b268435455){Dy(F,4);for(var b=J&1073741823,I=0;I<4;I++)F.view.setUint8(F.pos,b&127|128),b>>=7,F.pos+=1;J=Math.floor(J/268435456)}for(Dy(F,4);J>127;)F.view.setUint8(F.pos,J&127|128),J>>=7,F.pos+=1;F.view.setUint8(F.pos,J);F.pos+=1}; Ov=function(F,J,b){b!==void 0&&(kF(F,J*8),kF(F,b))}; oW=function(F,J,b){b!==void 0&&Ov(F,J,b?1:0)}; h3=function(F,J,b){b!==void 0&&(kF(F,J*8+2),J=b.length,kF(F,J),Dy(F,J),F.C.set(b,F.pos),F.pos+=J)}; cA=function(F,J,b){b!==void 0&&(Yw4(F,J,Math.ceil(Math.log2(b.length*4+2)/7)),Dy(F,b.length*1.2),J=Gc(b,F.C.subarray(F.pos)),F.pos+J>F.C.length&&(Dy(F,J),J=Gc(b,F.C.subarray(F.pos))),F.pos+=J,$qz(F))}; Yw4=function(F,J,b){b=b===void 0?2:b;kF(F,J*8+2);F.U.push(F.pos);F.U.push(b);F.pos+=b}; $qz=function(F){for(var J=F.U.pop(),b=F.U.pop(),I=F.pos-b-J;J--;){var u=J?128:0;F.view.setUint8(b++,I&127|u);I>>=7}}; Uv=function(F,J,b,I,u){b&&(Yw4(F,J,u===void 0?3:u),I(F,b),$qz(F))}; g.ux=function(F,J,b){b=new suG(4096,b);J(b,F);return new Uint8Array(b.C.buffer,b.C.byteOffset,b.pos)}; g.w0=function(F){var J=new PA(new m_([lV(decodeURIComponent(F))]));F=$F(J,2);J=rE(J,4);var b=C0k[J];if(typeof b==="undefined")throw F=new g.hC("Failed to recognize field number",{name:"EntityKeyHelperError",jVv:J}),g.Td(F),F;return{FV:J,entityType:b,entityId:F}}; g.Ms=function(F,J){var b=new suG;h3(b,2,VK(F));F=XBm[J];if(typeof F==="undefined")throw J=new g.hC("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:J}),g.Td(J),J;Ov(b,4,F);Ov(b,5,1);J=new Uint8Array(b.C.buffer,b.C.byteOffset,b.pos);return encodeURIComponent(g.zw(J))}; A$=function(F,J,b,I){if(I===void 0)return I=Object.assign({},F[J]||{}),b=(delete I[b],I),I={},Object.assign({},F,(I[J]=b,I));var u={},w={};return Object.assign({},F,(w[J]=Object.assign({},F[J],(u[b]=I,u)),w))}; Quz=function(F,J,b,I,u){var w=F[J];if(w==null||!w[b])return F;I=g.gE(w[b],I,u==="REPEATED_FIELDS_MERGE_OPTION_APPEND");u={};w={};return Object.assign({},F,(w[J]=Object.assign({},F[J],(u[b]=I,u)),w))}; Rw4=function(F,J){F=F===void 0?{}:F;switch(J.type){case "ENTITY_LOADED":return J.payload.reduce(function(I,u){var w,M=(w=u.options)==null?void 0:w.persistenceOption;if(M&&M!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&M!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return I;if(!u.entityKey)return g.Td(Error("Missing entity key")),I;if(u.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!u.payload)return g.Td(new g.hC("REPLACE entity mutation is missing a payload",{entityKey:u.entityKey})),I;var q=g.f$(u.payload); return A$(I,q,u.entityKey,u.payload[q])}if(u.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{u=u.entityKey;try{var v=g.w0(u).entityType;q=A$(I,v,u);break a}catch(K){if(K instanceof Error){g.Td(new g.hC("Failed to deserialize entity key",{entityKey:u,U_:K.message}));q=I;break a}throw K;}q=void 0}return q}if(u.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!u.payload)return g.Td(new g.hC("UPDATE entity mutation is missing a payload",{entityKey:u.entityKey})),I;q=g.f$(u.payload);var a,e;return Quz(I,q,u.entityKey, u.payload[q],(a=u.fieldMask)==null?void 0:(e=a.mergeOptions)==null?void 0:e.repeatedFieldsMergeOption)}return I},F); case "REPLACE_ENTITY":var b=J.payload;return A$(F,b.entityType,b.key,b.xV);case "REPLACE_ENTITIES":return Object.keys(J.payload).reduce(function(I,u){var w=J.payload[u];return Object.keys(w).reduce(function(M,q){return A$(M,u,q,w[q])},I)},F); case "UPDATE_ENTITY":return b=J.payload,Quz(F,b.entityType,b.key,b.xV,b.STD);default:return F}}; qs=function(F,J,b){return F[J]?F[J][b]||null:null}; vP=function(F){return window.Int32Array?new Int32Array(F):Array(F)}; mT=function(F){g.R.call(this);this.counter=[0,0,0,0];this.U=new Uint8Array(16);this.C=16;if(!DqG){var J,b=new Uint8Array(256),I=new Uint8Array(256);var u=1;for(J=0;J<256;J++)b[u]=J,I[J]=u,u^=u<<1^(u>>7&&283);a1=new Uint8Array(256);ek=vP(256);Kg=vP(256);pg=vP(256);g0=vP(256);for(var w=0;w<256;w++){u=w?I[255^b[w]]:0;u^=u<<1^u<<2^u<<3^u<<4;u=u&255^u>>>8^99;a1[w]=u;J=u<<1^(u>>7&&283);var M=J^u;ek[w]=J<<24|u<<16|u<<8|M;Kg[w]=M<<24|ek[w]>>>8;pg[w]=u<<24|Kg[w]>>>8;g0[w]=u<<24|pg[w]>>>8}DqG=!0}u=vP(44);for(b= 0;b<4;b++)u[b]=F[4*b]<<24|F[4*b+1]<<16|F[4*b+2]<<8|F[4*b+3];for(I=1;b<44;b++)F=u[b-1],b%4||(F=(a1[F>>16&255]^I)<<24|a1[F>>8&255]<<16|a1[F&255]<<8|a1[F>>>24],I=I<<1^(I>>7&&283)),u[b]=u[b-4]^F;this.key=u}; yo=function(F,J){for(var b=0;b<4;b++)F.counter[b]=J[b*4]<<24|J[b*4+1]<<16|J[b*4+2]<<8|J[b*4+3];F.C=16}; kfm=function(F){for(var J=F.key,b=F.counter[0]^J[0],I=F.counter[1]^J[1],u=F.counter[2]^J[2],w=F.counter[3]^J[3],M=3;M>=0&&!(F.counter[M]=-~F.counter[M]);M--);for(var q,v,a=4;a<40;)M=ek[b>>>24]^Kg[I>>16&255]^pg[u>>8&255]^g0[w&255]^J[a++],q=ek[I>>>24]^Kg[u>>16&255]^pg[w>>8&255]^g0[b&255]^J[a++],v=ek[u>>>24]^Kg[w>>16&255]^pg[b>>8&255]^g0[I&255]^J[a++],w=ek[w>>>24]^Kg[b>>16&255]^pg[I>>8&255]^g0[u&255]^J[a++],b=M,I=q,u=v;F=F.U;M=J[40];F[0]=a1[b>>>24]^M>>>24;F[1]=a1[I>>16&255]^M>>16&255;F[2]=a1[u>>8&255]^ M>>8&255;F[3]=a1[w&255]^M&255;M=J[41];F[4]=a1[I>>>24]^M>>>24;F[5]=a1[u>>16&255]^M>>16&255;F[6]=a1[w>>8&255]^M>>8&255;F[7]=a1[b&255]^M&255;M=J[42];F[8]=a1[u>>>24]^M>>>24;F[9]=a1[w>>16&255]^M>>16&255;F[10]=a1[b>>8&255]^M>>8&255;F[11]=a1[I&255]^M&255;M=J[43];F[12]=a1[w>>>24]^M>>>24;F[13]=a1[b>>16&255]^M>>16&255;F[14]=a1[I>>8&255]^M>>8&255;F[15]=a1[u&255]^M&255}; Ns=function(){if(!ix&&!g.c$){if(zI)return zI;var F;zI=(F=window.crypto)==null?void 0:F.subtle;var J,b,I;if(((J=zI)==null?0:J.importKey)&&((b=zI)==null?0:b.sign)&&((I=zI)==null?0:I.encrypt))return zI;zI=void 0}}; g.lx=function(F){this.Z=F}; g.fg=function(F){this.U=F}; WP=function(F){this.D=new Uint8Array(64);this.T=new Uint8Array(64);this.Z=0;this.W=new Uint8Array(64);this.U=0;this.D.set(F);this.T.set(F);for(F=0;F<64;F++)this.D[F]^=92,this.T[F]^=54;this.reset()}; OJC=function(F,J,b){for(var I=F.V,u=F.C[0],w=F.C[1],M=F.C[2],q=F.C[3],v=F.C[4],a=F.C[5],e=F.C[6],K=F.C[7],p,m,y,f=0;f<64;)f<16?(I[f]=y=J[b]<<24|J[b+1]<<16|J[b+2]<<8|J[b+3],b+=4):(p=I[f-2],m=I[f-15],y=I[f-7]+I[f-16]+((p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10)+((m>>>7|m<<25)^(m>>>18|m<<14)^m>>>3),I[f]=y),p=K+d0[f]+y+((v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+(v&a^~v&e),m=((u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10))+(u&w^u&M^w&M),K=p+m,q+=p,f++,f<16?(I[f]=y=J[b]<<24|J[b+1]<<16|J[b+2]<<8|J[b+3],b+=4):(p= I[f-2],m=I[f-15],y=I[f-7]+I[f-16]+((p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10)+((m>>>7|m<<25)^(m>>>18|m<<14)^m>>>3),I[f]=y),p=e+d0[f]+y+((q>>>6|q<<26)^(q>>>11|q<<21)^(q>>>25|q<<7))+(q&v^~q&a),m=((K>>>2|K<<30)^(K>>>13|K<<19)^(K>>>22|K<<10))+(K&u^K&w^u&w),e=p+m,M+=p,f++,f<16?(I[f]=y=J[b]<<24|J[b+1]<<16|J[b+2]<<8|J[b+3],b+=4):(p=I[f-2],m=I[f-15],y=I[f-7]+I[f-16]+((p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10)+((m>>>7|m<<25)^(m>>>18|m<<14)^m>>>3),I[f]=y),p=a+d0[f]+y+((M>>>6|M<<26)^(M>>>11|M<<21)^(M>>>25|M<<7))+(M&q^ ~M&v),m=((e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10))+(e&K^e&u^K&u),a=p+m,w+=p,f++,f<16?(I[f]=y=J[b]<<24|J[b+1]<<16|J[b+2]<<8|J[b+3],b+=4):(p=I[f-2],m=I[f-15],y=I[f-7]+I[f-16]+((p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10)+((m>>>7|m<<25)^(m>>>18|m<<14)^m>>>3),I[f]=y),p=v+d0[f]+y+((w>>>6|w<<26)^(w>>>11|w<<21)^(w>>>25|w<<7))+(w&M^~w&q),m=((a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10))+(a&e^a&K^e&K),y=K,K=q,q=y,y=e,e=M,M=y,y=a,a=w,w=y,v=u+p,u=p+m,f++;F.C[0]=u+F.C[0]|0;F.C[1]=w+F.C[1]|0;F.C[2]=M+F.C[2]|0;F.C[3]= q+F.C[3]|0;F.C[4]=v+F.C[4]|0;F.C[5]=a+F.C[5]|0;F.C[6]=e+F.C[6]|0;F.C[7]=K+F.C[7]|0}; hwm=function(F){var J=new Uint8Array(32),b=64-F.U;F.U>55&&(b+=64);var I=new Uint8Array(b);I[0]=128;for(var u=F.Z*8,w=1;w<9;w++){var M=u%256;I[b-w]=M;u=(u-M)/256}F.update(I);for(b=0;b<8;b++)J[b*4]=F.C[b]>>>24,J[b*4+1]=F.C[b]>>>16&255,J[b*4+2]=F.C[b]>>>8&255,J[b*4+3]=F.C[b]&255;oBY(F);return J}; oBY=function(F){F.C=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];F.V=[];F.V.length=64;F.Z=0;F.U=0}; cAz=function(F){this.C=F}; UqJ=function(F,J,b){F=new WP(F.C);F.update(J);F.update(b);J=hwm(F);F.update(F.D);F.update(J);J=hwm(F);F.reset();return J}; xqJ=function(F){this.U=F}; nBG=function(F,J,b,I){var u,w,M;return g.S(function(q){switch(q.C){case 1:if(F.C){q.gD(2);break}return g.T(q,I.importKey("raw",F.U,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:F.C=q.U;case 2:return u=new Uint8Array(J.length+b.length),u.set(J),u.set(b,J.length),w={name:"HMAC",hash:"SHA-256"},g.T(q,I.sign(w,F.C,u),4);case 4:return M=q.U,q.return(new Uint8Array(M))}})}; tZv=function(F,J,b){F.T||(F.T=new cAz(F.U));return UqJ(F.T,J,b)}; ZJ4=function(F,J,b){var I,u;return g.S(function(w){if(w.C==1){I=Ns();if(!I)return w.return(tZv(F,J,b));g.lk(w,3);return g.T(w,nBG(F,J,b,I),5)}if(w.C!=3)return w.return(w.U);u=g.dY(w);g.rQ(u);ix=!0;return w.return(tZv(F,J,b))})}; LAa=function(F){for(var J="",b=0;b=1?F[F.length-1]:null;for(var I=g.N(F),u=I.next();!u.done;u=I.next())if(u=u.value,u.width&&u.height&&(b&&u.width>=J||!b&&u.height>=J))return u;for(J=F.length-1;J>=0;J--)if(b&&F[J].width||!b&&F[J].height)return F[J];return F[0]}; jk=function(){this.state=1;this.w0=null;this.ME=void 0}; Akv=function(F,J,b,I,u,w){var M=M===void 0?"trayride":M;b?(F.aC(2),g.wP(b,function(){if(window[M])MQm(F,I,M,u);else{F.aC(3);var q=dk3(b),v=document.getElementById(q);v&&(f$Y(q),v.parentNode.removeChild(v));g.rQ(new g.hC("Unable to load Botguard","from "+b))}},w)):J?(w=g.H1("SCRIPT"),J instanceof QG?(w.textContent=R0(J),Di(w)):w.textContent=J,w.nonce=Xv(document),document.head.appendChild(w),document.head.removeChild(w),window[M]?MQm(F,I,M,u):(F.aC(4),g.rQ(new g.hC("Unable to load Botguard from JS")))): g.rQ(new g.hC("Unable to load VM; no url or JS provided"))}; MQm=function(F,J,b,I){F.aC(5);var u=!!F.ME&&qTo.includes(g.Cu(F.ME)||"");try{var w=new y3({program:J,globalName:b,qK:{disable:!g.Nk("att_web_record_metrics")||!g.Nk("att_skip_metrics_for_cookieless_domains_ks")&&u,bk:"aGIf"}});w.Al.then(function(){F.aC(6);I&&I(J)}); F.qF(w)}catch(M){F.aC(7),M instanceof Error&&g.rQ(M)}}; GI=function(){var F=g.kC("yt.abuse.playerAttLoader");return F&&["bgvma","bgvmb","bgvmc"].every(function(J){return J in F})?F:null}; Vo=function(){jk.apply(this,arguments)}; PP=function(){}; vWa=function(F,J,b){for(var I=!1,u=g.N(F.ML.entries()),w=u.next();!w.done;w=u.next())w=g.N(w.value).next().value,w.slotType==="SLOT_TYPE_PLAYER_BYTES"&&w.BN==="core"&&(I=!0);if(I){a:if(!b){F=g.N(F.ML.entries());for(b=F.next();!b.done;b=F.next())if(I=g.N(b.value),b=I.next().value,I=I.next().value,b.slotType==="SLOT_TYPE_IN_PLAYER"&&b.BN==="core"){b=I.layoutId;break a}b=void 0}b?J.dA(b):q_("No triggering layout ID available when attempting to mute.")}}; BP=function(F,J){this.pD=F;this.Rk=J}; TI=function(){}; r0=function(){}; ei3=function(F){g.R.call(this);var J=this;this.py=F;this.C=new Map;Sk(this,"commandExecutorCommand",function(b,I,u){a4z(J,b.commands,I,u)}); Sk(this,"clickTrackingParams",function(){})}; Kiz=function(F,J){Sk(F,J.LN(),function(b,I,u){J.Th(b,I,u)})}; Sk=function(F,J,b){F.iR();F.C.get(J)&&g.Td(Error("Extension name "+J+" already registered"));F.C.set(J,b)}; a4z=function(F,J,b,I){J=J===void 0?[]:J;F.iR();var u=[],w=[];J=g.N(J);for(var M=J.next();!M.done;M=J.next())M=M.value,g.O(M,p8m)||g.O(M,gW3)?u.push(M):w.push(M);u=g.N(u);for(J=u.next();!J.done;J=u.next())sH(F,J.value,b,I);w=g.N(w);for(u=w.next();!u.done;u=w.next())sH(F,u.value,b,I)}; sH=function(F,J,b,I){F.iR();J.loggingUrls&&mYm(F,"loggingUrls",J.loggingUrls,b,I);J=g.N(Object.entries(J));for(var u=J.next();!u.done;u=J.next()){var w=g.N(u.value);u=w.next().value;w=w.next().value;u==="openPopupAction"?F.py.get().t3("innertubeCommand",{openPopupAction:w}):u==="confirmDialogEndpoint"?F.py.get().t3("innertubeCommand",{confirmDialogEndpoint:w}):ykY.hasOwnProperty(u)||mYm(F,u,w,b,I)}}; mYm=function(F,J,b,I,u){if((F=F.C.get(J))&&typeof F==="function")try{F(b,I,u)}catch(w){g.Td(w)}else J=new g.hC("Unhandled field",J),g.rQ(J)}; YG=function(F,J,b){this.RP=F;this.C=J;this.EQ=b}; $G=function(F){this.value=F}; Cg=function(F){this.value=F}; XU=function(F){this.value=F}; Qo=function(F){this.value=F}; R1=function(F){this.value=F}; D5=function(F){this.value=F}; kG=function(F){this.value=F}; OH=function(){$G.apply(this,arguments)}; o1=function(F){this.value=F}; h$=function(F){this.value=F}; cP=function(F){this.value=F}; UH=function(F){this.value=F}; xG=function(F){this.value=F}; ng=function(F){this.value=F}; t$=function(F){this.value=F}; Z5=function(F){this.value=F}; HP=function(F){this.value=F}; Lg=function(F){this.value=F}; FA=function(){$G.apply(this,arguments)}; Jp=function(F){this.value=F}; bQ=function(F){this.value=F}; Id=function(F){this.value=F}; uQ=function(F){this.value=F}; wT=function(F){this.value=F}; MR=function(F){this.value=F}; Ap=function(F){this.value=F}; qR=function(F){this.value=F}; vM=function(F){this.value=F}; ad=function(F){this.value=F}; eK=function(F){this.value=F}; KK=function(F){this.value=F}; pK=function(F){this.value=F}; gT=function(F){this.value=F}; ms=function(F){this.value=F}; yD=function(F){this.value=F}; iQ=function(F){this.value=F}; zu=function(F){this.value=F}; NR=function(F){this.value=F}; lQ=function(F){this.value=F}; fK=function(F){this.value=F}; WM=function(F){this.value=F}; dT=function(F){this.value=F}; Et=function(F){this.value=F}; jK=function(F){this.value=F}; Gu=function(F){this.value=F}; VD=function(F){this.value=F}; PM=function(F){this.value=F}; BM=function(F){this.value=F}; Tu=function(F){this.value=F}; rT=function(F){this.value=F}; SK=function(F){this.value=F}; YY=function(F){this.value=F}; $Y=function(F){this.value=F}; CK=function(F){this.value=F}; XA=function(F){this.value=F}; QD=function(F){this.value=F}; Rd=function(F){this.value=F}; Dt=function(){$G.apply(this,arguments)}; kY=function(F){this.value=F}; Ot=function(){$G.apply(this,arguments)}; od=function(){$G.apply(this,arguments)}; hp=function(){$G.apply(this,arguments)}; cM=function(){$G.apply(this,arguments)}; Ut=function(){$G.apply(this,arguments)}; xY=function(F){this.value=F}; nK=function(F){this.value=F}; tp=function(F){this.value=F}; Zt=function(F){this.value=F}; HM=function(F){this.value=F}; Fu=function(F,J,b){if(b&&!b.includes(F.layoutType))return!1;J=g.N(J);for(b=J.next();!b.done;b=J.next())if(!LK(F.clientMetadata,b.value))return!1;return!0}; Jj=function(){return""}; iOa=function(F,J){switch(F){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 J(F),8}}; bL=function(F,J,b,I){I=I===void 0?!1:I;iW.call(this,F);this.Ek=b;this.Pm=I;this.args=[];J&&this.args.push(J)}; Z=function(F,J,b,I){I=I===void 0?!1:I;iW.call(this,F);this.Ek=b;this.Pm=I;this.args=[];J&&this.args.push(J)}; Ii=function(F){var J=new Map;F.forEach(function(b){J.set(b.getType(),b)}); this.C=J}; LK=function(F,J){return F.C.has(J)}; uL=function(F,J){F=F.C.get(J);if(F!==void 0)return F.get()}; wX=function(F){return Array.from(F.C.keys())}; Me=function(F,J,b){if(b&&b!==F.slotType)return!1;J=g.N(J);for(b=J.next();!b.done;b=J.next())if(!LK(F.clientMetadata,b.value))return!1;return!0}; NQJ=function(F){var J;return((J=ziG.get(F))==null?void 0:J.LQ)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; qe=function(F,J){var b={type:J.slotType,controlFlowManagerLayer:l4z.get(J.BN)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};J.slotEntryTrigger&&(b.entryTriggerType=J.slotEntryTrigger.triggerType);J.slotPhysicalPosition!==1&&(b.slotPhysicalPosition=J.slotPhysicalPosition);if(F){b.debugData={slotId:J.slotId};if(F=J.slotEntryTrigger)b.debugData.slotEntryTriggerData=Aj(F);F=J.slotFulfillmentTriggers;b.debugData.fulfillmentTriggerData=[];F=g.N(F);for(var I=F.next();!I.done;I=F.next())b.debugData.fulfillmentTriggerData.push(Aj(I.value)); J=J.slotExpirationTriggers;b.debugData.expirationTriggerData=[];J=g.N(J);for(F=J.next();!F.done;F=J.next())b.debugData.expirationTriggerData.push(Aj(F.value))}return b}; f4C=function(F,J){var b={type:J.layoutType,controlFlowManagerLayer:l4z.get(J.BN)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};F&&(b.debugData={layoutId:J.layoutId});return b}; Aj=function(F,J){var b={type:F.triggerType};J!=null&&(b.category=J);F.triggeringSlotId!=null&&(b.triggerSourceData||(b.triggerSourceData={}),b.triggerSourceData.associatedSlotId=F.triggeringSlotId);F.triggeringLayoutId!=null&&(b.triggerSourceData||(b.triggerSourceData={}),b.triggerSourceData.associatedLayoutId=F.triggeringLayoutId);return b}; Wia=function(F,J,b,I){J={opportunityType:J};F&&(I||b)&&(I=g.EG(I||[],function(u){return qe(F,u)}),J.debugData=Object.assign({},b&&b.length>0?{associatedSlotId:b}:{},I.length>0?{slots:I}:{})); return J}; ai=function(F,J){return function(b){return dYv(vq(F),J.slotId,J.slotType,J.slotPhysicalPosition,J.BN,J.slotEntryTrigger,J.slotFulfillmentTriggers,J.slotExpirationTriggers,b.layoutId,b.layoutType,b.BN)}}; dYv=function(F,J,b,I,u,w,M,q,v,a,e){return{adClientDataEntry:{slotData:qe(F,{slotId:J,slotType:b,slotPhysicalPosition:I,BN:u,slotEntryTrigger:w,slotFulfillmentTriggers:M,slotExpirationTriggers:q,clientMetadata:new Ii([])}),layoutData:f4C(F,{layoutId:v,layoutType:a,BN:e,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],z1:[],ww:new Map,clientMetadata:new Ii([]),lT:{}})}}}; KT=function(F){this.uR=F;F=Math.random();var J=this.uR.get();J=g.eB(J.G.J().experiments,"html5_debug_data_log_probability");J=Number.isFinite(J)&&J>=0&&J<=1?J:0;this.C=F1){g.rQ(new g.hC("Exit already started",{current:F.currentState}));var b=!1}else b=!0;if(!b)return!1;F.currentState=2;F.C=J;return!0}; yZ=function(F){if(F.currentState!==2)return!1;F.currentState=3;return!0}; Hrz=function(F,J){var b=new Map;F=g.N(F);for(var I=F.next();!I.done;I=F.next()){I=I.value;if(I.layoutType==="LAYOUT_TYPE_MEDIA")var u="v";else I.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(u=uL(I.clientMetadata,"metadata_type_linked_in_player_layout_type"),u=u==="LAYOUT_TYPE_ENDCAP"||u==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":u==="LAYOUT_TYPE_SURVEY"?"s":u==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):u="u";b.set(I.layoutId,u);if(u==="u"){var w={};u=J;I=(w.c=I.layoutId,w);u.G.UQ("uct",I)}}F= J.Vd();iO={contentCpn:F,Hn:b};I={};b=(I.ct=b.size,I.c=F,I);J.G.UQ("acc",b)}; Lh3=function(){iO={contentCpn:"",Hn:new Map}}; zj=function(F){var J;return(J=iO.Hn.get(F))!=null?J:"u"}; NM=function(F,J,b){F.G.UQ(J,b);FNk(F)}; J5_=function(F){var J=F.layoutId,b=F.RE;if(F.Tf){var I={};NM(F.RP,"slso",(I.ec=J,I.is=b,I.ctp=zj(J),I))}}; lO=function(F){var J=F.layoutId,b=F.RE;if(F.Tf){var I={};NM(F.RP,"slse",(I.ec=J,I.is=b,I.ctp=zj(J),I))}}; b0k=function(F){var J=F.layoutId,b=F.RE,I=F.RP;F.Tf&&(F={},NM(I,"sleo",(F.xc=J,F.is=b,F.ctp=zj(J),F)),FNk(I))}; II_=function(F){var J=F.cpn,b=F.RP;F=F.RE;var I=b.Vd(),u={};NM(b,"ce",(u.ec=J,u.ia=J!==I,u.r=iO.Hn.has(J),u.is=F,u.ctp=zj(J),u))}; FNk=function(F){if(F.Vd()!==iO.contentCpn){var J={};J=(J.c=iO.contentCpn,J);F.G.UQ("ccm",J)}}; uYk=function(F){var J=F.cpn,b=F.RP;F=F.RE;var I=b.Vd(),u={};NM(b,"cx",(u.xc=J,u.ia=J!==I,u.r=iO.Hn.has(J),u.is=F,u.ctp=zj(J),u))}; wLz=function(F){this.params=F;this.C=new Set}; M1_=function(F,J,b){if(!F.C.has(J)){F.C.add(J);var I={};F.params.P9.Ck(J,Object.assign({},b,(I.p_ac=F.params.adCpn,I.p_isv=F.params.YQG&&F.params.v1,I)))}}; W4=function(F,J,b){if(fF(F.params.P9.uR.get(),!0)){var I=b.flush,u={};M1_(F,J,(u.cts=b.currentTimeSec,u.f=I,u))}}; A5k=function(F,J){this.RP=F;this.uR=J}; dk=function(F){var J=[];if(F){F=g.N(Object.entries(F));for(var b=F.next();!b.done;b=F.next()){var I=g.N(b.value);b=I.next().value;I=I.next().value;I!==void 0&&(I=typeof I==="boolean"?""+ +I:(""+I).replace(/[:,=]/g,"_"),J.push(b+"."+I))}}return J.join(";")}; E5=function(F,J,b){J=J===void 0?{}:J;this.errorCode=F;this.details=J;this.severity=b===void 0?0:b}; jg=function(F){return F===1||F===2}; Gj=function(F,J){J=J===void 0?0:J;if(F instanceof E5)return F;F=F&&F instanceof Error?F:Error(""+F);jg(J)?g.Td(F):g.rQ(F);return new E5(J===1?"player.fatalexception":"player.exception",{name:""+F.name,message:""+F.message},J)}; qVa=function(F,J){function b(){var I=g.Ba.apply(0,arguments);F.removeEventListener("playing",b);J.apply(null,g.W(I))} F.addEventListener("playing",b)}; VZ=function(){var F=g.kC("yt.player.utils.videoElement_");F||(F=g.H1("VIDEO"),g.RG("yt.player.utils.videoElement_",F));return F}; P4=function(F){var J=VZ();return!!(J&&J.canPlayType&&J.canPlayType(F))}; Tj=function(F){if(/opus/.test(F)&&g.B4&&!dD("38")&&!g.O6())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(F);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(F);if(/webm/.test(F)&&!l_a())return!1;F==='audio/mp4; codecs="mp4a.40.2"'&&(F='video/mp4; codecs="avc1.4d401f"');return!!P4(F)}; vyv=function(F){try{var J=Tj('video/mp4; codecs="avc1.42001E"')||Tj('video/webm; codecs="vp9"');return(Tj('audio/mp4; codecs="mp4a.40.2"')||Tj('audio/webm; codecs="opus"'))&&(J||!F)||P4('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(b){return"html5.missingapi"}}; rk=function(){var F=VZ();return!(!F.webkitSupportsPresentationMode||typeof F.webkitSetPresentationMode!=="function")}; Sg=function(){var F=VZ();try{var J=F.muted;F.muted=!J;return F.muted!==J}catch(b){}return!1}; aIa=function(){var F;return((F=navigator.connection)==null?void 0:F.type)||""}; g.s5=function(){j9.apply(this,arguments)}; Yz=function(F,J,b,I,u,w,M){this.sampleRate=F===void 0?0:F;this.numChannels=J===void 0?0:J;this.spatialAudioType=b===void 0?"SPATIAL_AUDIO_TYPE_NONE":b;this.C=I===void 0?!1:I;this.T=u===void 0?0:u;this.U=w===void 0?0:w;this.audioQuality=M===void 0?"AUDIO_QUALITY_UNKNOWN":M}; Xk=function(F,J,b,I,u,w,M,q,v){this.width=F;this.height=J;this.quality=w||$z(F,J);this.C=g.CF[this.quality];this.fps=b||0;this.stereoLayout=!u||I!=null&&I!=="UNKNOWN"&&I!=="RECTANGULAR"?0:u;this.projectionType=I?I==="EQUIRECTANGULAR"&&u===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":I:"UNKNOWN";(F=M)||(F=g.CF[this.quality],F===0?F="Autom\u00e1tico":(J=this.fps,b=this.projectionType,F=F.toString()+(b==="EQUIRECTANGULAR"||b==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||b==="MESH"?"s":"p")+(J>55?"60":J>49?"50":J> 39?"48":"")));this.qualityLabel=F;this.U=q||"";this.primaries=v||""}; $z=function(F,J){var b=Math.max(F,J);F=Math.min(F,J);J=QZ[0];for(var I=0;I=Math.floor(w*16/9)*1.3||F>=w*1.3)return J;J=u}return"tiny"}; kz=function(F,J,b){b=b===void 0?{}:b;this.id=F;this.mimeType=J;b.LW>0||(b.LW=16E3);Object.assign(this,b);F=g.N(this.id.split(";"));this.itag=F.next().value;this.C=F.next().value;this.containerType=RT(J);this.YQ=Df[this.itag]||""}; O5=function(F){return F.YQ==="9"||F.YQ==="("||F.YQ==="9h"||F.YQ==="(h"}; eE4=function(F){return F.YQ==="H"||F.YQ==="h"}; oT=function(F){return F.YQ==="9h"||F.YQ==="(h"}; KN3=function(F){return!!F.Ke&&!!F.Ke.fairplay&&(F.YQ==="("||F.YQ==="(h"||F.YQ==="A"||F.YQ==="MEAC3")||h1&&!!F.Ke&&F.YQ==="1e"}; c4=function(F){return F.YQ==="1"||F.YQ==="1h"||h1&&F.YQ==="1e"}; U5=function(F){return F.YQ==="mac3"||F.YQ==="meac3"||F.YQ==="m"||F.YQ==="i"}; xz=function(F){return F.YQ==="MAC3"||F.YQ==="MEAC3"||F.YQ==="M"||F.YQ==="I"}; g.nF=function(F){return F.containerType===1}; pLz=function(F){return F.YQ==="("||F.YQ==="(h"||F.YQ==="H"||h1&&F.YQ==="1e"}; t1=function(F){return F.mimeType==="application/x-mpegURL"}; Zf=function(F){F=F.mimeType;return F.includes("vtt")||F.includes("text/mp4")}; g.H4=function(F,J){return{itag:+F.itag,lmt:J?0:F.lastModified,xtags:F.C||""}}; gya=function(F){var J=navigator.mediaCapabilities;if(J==null||!J.decodingInfo||F.YQ==="f")return Promise.resolve();var b={type:F.audio&&F.video?"file":"media-source"};F.video&&(b.video={contentType:F.mimeType,width:F.video.width||640,height:F.video.height||360,bitrate:F.LW*8||1E6,framerate:F.video.fps||30});F.audio&&(b.audio={contentType:F.mimeType,channels:""+(F.audio.numChannels||2),bitrate:F.LW*8||128E3,samplerate:F.audio.sampleRate||44100});return J.decodingInfo(b).then(function(I){F.U=I})}; LF=function(F){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(F)}; F8=function(F){return/(vp9|vp09|vp8|avc1|av01)/.test(F)}; RT=function(F){return F.indexOf("/mp4")>=0?1:F.indexOf("/webm")>=0?2:F.indexOf("/x-flv")>=0?3:F.indexOf("/vtt")>=0?4:0}; JG=function(F,J,b,I,u,w){var M=new Yz;J in g.CF||(J="small");J==="light"&&(J="tiny");I&&u?(u=Number(u),I=Number(I)):(u=g.CF[J],I=Math.round(u*16/9));w=new Xk(I,u,0,null,void 0,J,w);F=unescape(F.replace(/"/g,'"'));return new kz(b,F,{audio:M,video:w})}; b1=function(F){var J="id="+F.id;F.video&&(J+=", res="+F.video.qualityLabel);var b,I;return J+", byterate=("+((b=F.kA)==null?void 0:b.toFixed(0))+", "+((I=F.LW)==null?void 0:I.toFixed(0))+")"}; Il=function(F,J){return{start:function(b){return F[b]}, end:function(b){return J[b]}, length:F.length}}; m_J=function(F,J,b){for(var I=[],u=[],w=0;w=J)return b}catch(I){}return-1}; Mt=function(F,J){return wu(F,J)>=0}; y53=function(F,J){if(!F)return NaN;J=wu(F,J);return J>=0?F.start(J):NaN}; AG=function(F,J){if(!F)return NaN;J=wu(F,J);return J>=0?F.end(J):NaN}; qt=function(F){return F&&F.length?F.end(F.length-1):NaN}; ve=function(F,J){F=AG(F,J);return F>=0?F-J:0}; al=function(F,J,b){for(var I=[],u=[],w=0;wb||(I.push(Math.max(J,F.start(w))-J),u.push(Math.min(b,F.end(w))-J));return Il(I,u)}; es=function(F,J,b,I){g.uA.call(this);var u=this;this.Us=F;this.start=J;this.end=b;this.isActive=I;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.GB={error:function(){!u.iR()&&u.isActive&&u.publish("error",u)}, updateend:function(){!u.iR()&&u.isActive&&u.publish("updateend",u)}}; this.Us.Sn(this.GB);this.I$=this.isActive}; X8=function(F,J,b,I,u,w){g.uA.call(this);var M=this;this.dw=F;this.ou=J;this.id=b;this.containerType=I;this.YQ=u;this.v1=w;this.Wd=this.iV=this.eT=null;this.uU=!1;this.appendWindowStart=this.timestampOffset=0;this.Oj=Il([],[]);this.Sz=!1;this.qq=[];this.wc=KB?[]:void 0;this.eF=function(v){return M.publish(v.type,M)}; var q;if((q=this.dw)==null?0:q.addEventListener)this.dw.addEventListener("updateend",this.eF),this.dw.addEventListener("error",this.eF)}; Qh=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; Rl=function(F,J){this.gw=F;this.C=J===void 0?!1:J;this.U=!1}; DO=function(F,J,b){b=b===void 0?!1:b;g.R.call(this);this.mediaElement=F;this.HN=J;this.isView=b;this.W=0;this.Z=!1;this.D=!0;this.N=0;this.callback=null;this.Y=!1;this.HN||(this.ou=this.mediaElement.Pb());this.events=new g.s5(this);g.k(this,this.events);this.T=new Rl(this.HN?window.URL.createObjectURL(this.HN):this.ou.webkitMediaSourceURL,!0);F=this.HN||this.ou;GD(this.events,F,["sourceopen","webkitsourceopen"],this.L1j);GD(this.events,F,["sourceclose","webkitsourceclose"],this.cFN);this.V={updateend:this.vW}}; i0_=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; zE_=function(F,J){kn(F)?g.qf(function(){J(F)}):F.callback=J}; NJJ=function(F,J,b){if(Oo){var I;ol(F.mediaElement,{l:"mswssb",sr:(I=F.mediaElement.wD)==null?void 0:I.wZ()},!1);J.Sn(F.V,F);b.Sn(F.V,F)}F.C=J;F.U=b;g.k(F,J);g.k(F,b)}; lI_=function(F,J,b,I){I=J.mimeType+(I===void 0?"":I);var u=b.mimeType;J=J.YQ;b=b.YQ;var w;F.Tj=(w=F.HN)==null?void 0:w.addSourceBuffer(u);var M;F.eE=I.split(";")[0]==="fakesb"?void 0:(M=F.HN)==null?void 0:M.addSourceBuffer(I);F.ou&&(F.ou.webkitSourceAddId("0",u),F.ou.webkitSourceAddId("1",I));w=new X8(F.Tj,F.ou,"0",RT(u),b,!1);I=new X8(F.eE,F.ou,"1",RT(I),J,!0);NJJ(F,w,I)}; hG=function(F){return!!F.C||!!F.U}; kn=function(F){try{return ce(F)==="open"}catch(J){return!1}}; ce=function(F){if(F.HN)return F.HN.readyState;switch(F.ou.webkitSourceState){case F.ou.SOURCE_OPEN:return"open";case F.ou.SOURCE_ENDED:return"ended";default:return"closed"}}; Uo=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; fI3=function(F){kn(F)&&(F.HN?F.HN.endOfStream():F.ou.webkitSourceEndOfStream(F.ou.EOS_NO_ERROR))}; WNz=function(F,J,b,I){if(!F.C||!F.U)return null;var u=F.C.isView()?F.C.Us:F.C,w=F.U.isView()?F.U.Us:F.U,M=new DO(F.mediaElement,F.HN,!0);M.T=F.T;NJJ(M,new es(u,J,b,I),new es(w,J,b,I));kn(F)||F.C.sM(F.C.Xq());return M}; d_v=function(F){var J;(J=F.C)==null||J.Yk();var b;(b=F.U)==null||b.Yk();F.D=!1}; xn=function(){var F=this;this.Vb=this.xU=Smv;this.promise=new g.gb(function(J,b){F.xU=J;F.Vb=b})}; nB=function(){g.R.call(this);this.V1=!1;this.gw=null;this.V=this.W=!1;this.Z=new g.Zr;this.wD=null;g.k(this,this.Z)}; tG=function(F){F=F.Me();return F.length<1?NaN:F.end(F.length-1)}; EyC=function(F){!F.U&&i0_()&&(F.T?F.T.then(function(){return EyC(F)}):F.dB()||(F.U=F.SS()))}; jJa=function(F){F.U&&(F.U.dispose(),F.U=void 0)}; ol=function(F,J,b){var I;((I=F.wD)==null?0:I.hJ())&&F.wD.UQ("rms",J,b===void 0?!1:b)}; Ggv=function(F,J,b){F.isPaused()||F.getCurrentTime()>J||b>10||(F.play(),g.pl(function(){Ggv(F,F.getCurrentTime(),b+1)},500))}; V1z=function(F,J){F.gw&&F.gw.Hg(J)||(F.gw&&F.gw.dispose(),F.gw=J)}; ZO=function(F){return ve(F.Z4(),F.getCurrentTime())}; PD4=function(F,J){if(F.kR()===0||F.hasError())return!1;var b=F.getCurrentTime()>0;return J>=0&&(F=F.Me(),F.length||!b)?Mt(F,J):b}; He=function(F){F.dB()&&(F.wD&&F.wD.AG("rs_s"),hY&&F.getCurrentTime()>0&&F.seekTo(0),F.bb(),F.load(),V1z(F,null));delete F.T}; LB=function(F){switch(F.rB()){case 2:return"progressive.net.retryexhausted";case 3:return F=F.Aw(),(F==null?0:F.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||BJ3&&(F==null?0:F.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.FC=function(F,J,b){this.e6=J===void 0?null:J;this.seekSource=b===void 0?null:b;this.state=F||64}; JV=function(F,J,b){b=b===void 0?!1:b;return TJ_(F,J.getCurrentTime(),(0,g.jR)(),ZO(J),b)}; bp=function(F,J,b,I){if(!(J===F.state&&b===F.e6&&I===F.seekSource||J!==void 0&&(J&128&&!b||J&2&&J&16))){var u;if(u=J)u=J||F.state,u=!!(u&16||u&32);F=new g.FC(J,b,u?I?I:F.seekSource:null)}return F}; IY=function(F,J,b){return bp(F,F.state|J,null,b===void 0?null:b)}; up=function(F,J){return bp(F,F.state&~J,null,null)}; wM=function(F,J,b,I){return bp(F,(F.state|J)&~b,null,I===void 0?null:I)}; g.x=function(F,J){return!!(F.state&J)}; g.MO=function(F,J){return J.state===F.state&&J.e6===F.e6}; AV=function(F){return F.isPlaying()&&!g.x(F,16)&&!g.x(F,32)}; qO=function(F){return g.x(F,128)?-1:g.x(F,2)?0:g.x(F,2048)?3:g.x(F,64)?-1:g.x(F,1)&&!g.x(F,32)?3:g.x(F,8)?1:g.x(F,4)?2:-1}; aY=function(F,J,b,I,u,w,M,q,v,a,e,K,p,m,y,f,d){g.R.call(this);var G=this;this.Vp=F;this.slot=J;this.layout=b;this.EQ=I;this.X4=u;this.QG=w;this.OQ=M;this.qI=q;this.D7=v;this.UM=a;this.position=K;this.W=p;this.uR=m;this.OG=y;this.Zl=f;this.context=d;this.Gn=!0;this.D=!1;this.Lk="not_rendering";this.U=!1;this.T=new gk;F=uL(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.yG=new jr(b.ww,this.EQ,F,b.layoutId);var P;F=((P=v5(this))==null?void 0:P.progressCommands)||[];this.Z=new PAv(v, F,b.layoutId,function(){return G.Ol()}); this.C=new wLz({adCpn:this.layout.layoutId,P9:d.P9,YQG:this.OG,v1:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; eY=function(F){return{layoutId:F.qe(),RE:F.OG,RP:F.QG.get(),Tf:F.f7()}}; Kx=function(F,J){return J.layoutId!==F.layout.layoutId?(F.Vp.XW(F.slot,J,new bL("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+F.layout.layoutId+("and LayoutType: "+F.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; px=function(F){F.Lk="rendering_start_requested";F.UM(-1)}; v5=function(F){return uL(F.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; r5k=function(F){q_("Received layout exit signal when not in layout exit flow.",F.slot,F.layout)}; SVa=function(F){var J;return((J=gM(F.QG.get(),2))==null?void 0:J.clientPlaybackNonce)||""}; mS=function(F,J){switch(J){case "normal":F.JJ("complete");break;case "skipped":F.JJ("skip");break;case "abandoned":rq(F.yG,"impression")&&F.JJ("abandon")}}; yL=function(F,J){F.D||(J=new g.vL(J.state,new g.FC),F.D=!0);return J}; ip=function(F,J){aT(J)?F.UM(1):g.e1(J,4)&&!g.e1(J,2)&&F.Cm();aJ(J,4)<0&&!(aJ(J,2)<0)&&F.wu()}; sJ7=function(F){F.position===0&&(F.qI.get(),F=uL(F.layout.clientMetadata,"metadata_type_ad_placement_config").kind,F={adBreakType:zA(F)},XH("ad_bl"),g.Qk(F))}; NO=function(F,J){B7(F.yG,J,!F.U)}; $_v=function(F){var J;return(((J=v5(F))==null?void 0:J.progressCommands)||[]).findIndex(function(b){return!!g.O(b==null?void 0:b.command,YVo)})!==-1}; lp=function(F,J){var b=uL(F.clientMetadata,"metadata_type_eligible_for_ssap");return b===void 0?(q_("Expected SSAP eligibility in PlayerBytes factory",F),!1):J.f7(b)}; fx=function(F,J){if(!Un(J.get(),"html5_ssap_pass_transition_reason"))return 3;switch(F){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return q_("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return q_("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:F}),3;default:wU(F,"unknown layoutExitReason")}}; CDY=function(F){q_("getExitReason: unexpected reason",void 0,void 0,{reason:F})}; W5=function(F,J){if(Un(J.get(),"html5_ssap_pass_transition_reason"))switch(F){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return CDY(F),"abandoned";case 3:case 1:return CDY(F),"error";default:wU(F,"unexpected transition reason")}else switch(F){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return q_("getExitReason: unexpected reason",void 0,void 0,{reason:F}),"error";default:wU(F,"unexpected transition reason")}}; dM=function(F,J,b){Dj(F,b)||Oz(F,J,b);Dj(F,"video_to_ad")||Oz(F,J,"video_to_ad");Dj(F,"ad_to_video")||Oz(F,J,"ad_to_video");Dj(F,"ad_to_ad")||Oz(F,J,"ad_to_ad")}; ER=function(F,J,b,I,u,w,M,q,v,a,e,K,p,m,y,f,d,G){aY.call(this,F,J,b,I,u,w,M,q,a,e,K,p,m,y,f,d,G);var P=this;this.py=v;this.hO=K;this.oz=!0;this.qj=this.EJ=0;this.Rh=Ku(function(){J5_(eY(P));P.Vp.bT(P.slot,P.layout)}); this.Kl=Ku(function(){b0k(eY(P));P.Lk!=="rendering_stop_requested"&&P.hO(P);P.layoutExitReason?P.Vp.A_(P.slot,P.layout,P.layoutExitReason):r5k(P)}); this.bC=new g.fu(200);this.bC.listen("tick",function(){P.Q6()}); g.k(this,this.bC)}; GA=function(F){F.qj=Date.now();jY(F,F.EJ);F.bC.start()}; XLo=function(F){F.EJ=F.Ol();F.wW(F.EJ/1E3,!0);jY(F,F.EJ)}; jY=function(F,J){J={current:J/1E3,duration:F.Ol()/1E3};F.py.get().t3("onAdPlaybackProgress",J)}; VL=function(F){ER.call(this,F.Vp,F.slot,F.Kd,F.EQ,F.X4,F.QG,F.OQ,F.qI,F.py,F.D7,F.UM,F.hO,F.GQ,F.BP,F.uR,F.OG,F.Zl,F.context)}; P5=function(F){ER.call(this,F.Vp,F.slot,F.Kd,F.EQ,F.X4,F.QG,F.OQ,F.qI,F.py,F.D7,F.UM,F.hO,F.GQ,F.BP,F.uR,F.OG,F.Zl,F.context)}; B5=function(){P5.apply(this,arguments)}; QJm=function(F){return lp(F.slot,F.uR.get())?new B5(F):new VL(F)}; SY=function(F){aY.call(this,F.callback,F.slot,F.Kd,F.EQ,F.X4,F.QG,F.OQ,F.qI,F.D7,F.UM,F.hO,F.GQ,F.BP,F.uR,F.OG,F.Zl,F.context);var J=this;this.adCpn="";this.pw=0;this.Wr=!1;this.ZI=0;this.Rh=Ku(function(){J5_(eY(J));J.Vp.bT(J.slot,J.layout)}); this.Kl=Ku(function(){b0k(eY(J));J.Lk!=="rendering_stop_requested"&&J.hO(J);J.layoutExitReason?J.Vp.A_(J.slot,J.layout,J.layoutExitReason):r5k(J)}); this.p7=F.p7;this.NI=F.NI;this.h_=F.h_;this.py=F.py;this.yJ=F.yJ;this.hO=F.hO;if(!this.f7()){Un(this.uR.get(),"html5_disable_media_load_timeout")||(this.O4=new g.ty(function(){J.B8("load_timeout",new bL("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); F=TA(this.uR.get());var b=rM(this.uR.get());F&&b&&(this.OX=new g.ty(function(){var I=uL(J.layout.clientMetadata,"metadata_type_preload_player_vars");I&&J.NI.get().G.preloadVideoByPlayerVars(I,2,300)}))}}; D_m=function(F,J){var b=uL(J.clientMetadata,"metadata_type_ad_video_id"),I=uL(J.clientMetadata,"metadata_type_legacy_info_card_vast_extension");b&&I&&F.yJ.get().G.J().fW.add(b,{Xj:I});(J=uL(J.clientMetadata,"metadata_type_sodar_extension_data"))&&OO3(F.p7.get(),J);REJ(F.OQ.get(),!1)}; kg_=function(F){REJ(F.OQ.get(),!0);var J;((J=F.shrunkenPlayerBytesConfig)==null?0:J.shouldRequestShrunkenPlayerBytes)&&F.OQ.get().PQ(!1)}; O0J=function(F){var J=uL(F.Bb().clientMetadata,"metadata_type_player_bytes_slot_metadata");J===void 0&&q_("PlayerBytesSlotMetadata is not filled",F.Bb(),F.xQ());return(J==null?void 0:J.gt)===!0}; sR=function(){SY.apply(this,arguments)}; YO=function(){sR.apply(this,arguments)}; oy7=function(F){return QJm(Object.assign({},F,{Vp:F.callback,UM:function(){}}))}; hEo=function(F){return new SY(Object.assign({},F,{UM:function(J){F.py.get().t3("onAdIntroStateChange",J)}}))}; c5a=function(F){function J(b){F.py.get().Q_(b)} return lp(F.slot,F.uR.get())?new YO(Object.assign({},F,{UM:J})):new SY(Object.assign({},F,{UM:J}))}; $O=function(F){for(var J=F.Kd,b=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],I=g.N(Gs()),u=I.next();!u.done;u=I.next())b.push(u.value);if(nd(J,{WV:b,C7:["LAYOUT_TYPE_MEDIA_BREAK"]}))return oy7(F);J=F.Kd;b=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];I=g.N(Gs());for(u=I.next();!u.done;u=I.next())b.push(u.value);if(nd(J,{WV:b,C7:["LAYOUT_TYPE_MEDIA"]}))return LK(F.Kd.clientMetadata,"metadata_type_ad_intro")?hEo(F):c5a(F)}; x_G=function(F){var J=uL(F.clientMetadata,"metadata_type_ad_placement_config").kind,b=uL(F.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:F.layoutId,adType:U_k(b),adBreakType:zA(J)}}; zA=function(F){switch(F){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"}}; U_k=function(F){switch(F){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; nym=function(F){try{return new Cx(F.wO,F.slot,F.layout,F.z$,F.ix,F.QG,F.RC,F.NI,F.rY,F.OQ,F.knD,F)}catch(J){}}; Cx=function(F,J,b,I,u,w,M,q,v,a,e,K){g.R.call(this);this.wO=F;this.slot=J;this.layout=b;this.z$=I;this.ix=u;this.QG=w;this.RC=M;this.NI=q;this.rY=v;this.OQ=a;this.params=K;this.Gn=!0;F=$O(e);if(!F)throw Error("Invalid params for sublayout");this.bX=F}; t1z=function(){this.C=1;this.U=new gk}; XC=function(F,J,b,I,u,w,M,q,v,a,e,K,p){g.R.call(this);this.callback=F;this.QG=J;this.RC=b;this.NI=I;this.OQ=u;this.qI=w;this.Qp=M;this.slot=q;this.layout=v;this.z$=a;this.cD=e;this.rY=K;this.uR=p;this.Gn=!0;this.GZ=!1;this.PD=[];this.gI=-1;this.Lb=!1;this.h$=new t1z}; Z0m=function(F){var J;return(J=F.layout.Ag)!=null?J:uL(F.layout.clientMetadata,"metadata_type_sub_layouts")}; QL=function(F){return{RP:F.QG.get(),RE:!1,Tf:F.f7()}}; H0J=function(F,J,b){if(F.Hx()===F.PD.length-1){var I,u;q_("Unexpected skip requested during the last sublayout",(I=F.L7())==null?void 0:I.Bb(),(u=F.L7())==null?void 0:u.xQ(),{requestingSlot:J,requestingLayout:b})}}; LNG=function(F,J,b){return b.layoutId!==RY(F,J,b)?(q_("onSkipRequested for a PlayerBytes layout that is not currently active",F.Bb(),F.xQ()),!1):!0}; FKG=function(F){F.Hx()===F.PD.length-1&&q_("Unexpected skip with target requested during the last sublayout")}; Joa=function(F,J,b){return b.renderingContent===void 0&&b.layoutId!==RY(F,J,b)?(q_("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",F.Bb(),F.xQ(),{requestingSlot:J,requestingLayout:b}),!1):!0}; bpv=function(F,J,b,I){var u=uL(J.xQ().clientMetadata,"metadata_type_ad_pod_skip_target");if(u&&u>0&&u0)){q_("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",F.slot,F.layout,{indexToPlay:J,layoutId:F.layout.layoutId});break a}F.gI=J;J=F.L7();if(F.Hx()>0&&!F.f7()){var b=F.qI.get();b.U=!1;var I={};b.C&&b.videoId&&(I.cttAuthInfo={token:b.C,videoId:b.videoId});Rr("ad_to_ad",I)}F.JV(J)}}; oY=function(F){XC.call(this,F.wO,F.QG,F.RC,F.NI,F.OQ,F.qI,F.Qp,F.slot,F.layout,F.z$,F.cD,F.rY,F.uR)}; wfC=function(F){(F=F.L7())&&F.dE()}; hV=function(F){XC.call(this,F.wO,F.QG,F.RC,F.NI,F.OQ,F.qI,F.Qp,F.slot,F.layout,F.z$,F.cD,F.rY,F.uR);this.MY=void 0}; Ml7=function(F,J){F.ZD()&&!yZ(F.h$.U)||F.callback.A_(F.slot,F.layout,J)}; c5=function(F){return Un(F.uR.get(),"html5_ssap_pass_transition_reason")}; Ao3=function(F,J,b){J.jp().currentState<2&&(b=W5(b,F.uR),J.T$(J.xQ(),b));b=J.jp().C;F.oA(F.slot,J.xQ(),b)}; qz7=function(F,J){if(F.h$.U.currentState<2){var b=W5(J,F.uR);b==="error"?F.callback.XW(F.slot,F.layout,new bL("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:J},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):OR(F.cD,F.layout,b)}}; UR=function(F,J,b){J.jp().currentState>=2||(J.T$(J.xQ(),b),yZ(J.jp())&&(VS(F.Qp,F.slot,J.xQ(),b),F.MY=void 0))}; vkm=function(F,J){F.h$.C===2&&J!==F.Vd()&&q_("onClipEntered: unknown cpn",F.slot,F.layout,{cpn:J})}; ajv=function(F,J){var b=F.L7();if(b){var I=b.xQ().layoutId,u=F.Hx()+1;F.ZD()?UR(F,b,J):b.T$(b.xQ(),J);u>=0&&uu&&M.y8(e,u-I);return e}; Na_=function(F,J,b){var I=uL(J.clientMetadata,"metadata_type_sodar_extension_data");if(I)try{OO3(b,I)}catch(u){q_("Unexpected error when loading Sodar",F,J,{error:u})}}; lj7=function(F,J,b,I,u,w,M){Fq(F,J,new g.vL(b,new g.FC),I,u,M,!1,w)}; Fq=function(F,J,b,I,u,w,M,q){M=M===void 0?!0:M;aT(b)&&eg(u,0,null)&&(!rq(F,"impression")&&q&&q(),F.JJ("impression"));rq(F,"impression")&&(g.e1(b,4)&&!g.e1(b,2)&&F.RQ("pause"),aJ(b,4)<0&&!(aJ(b,2)<0)&&F.RQ("resume"),g.e1(b,16)&&u>=.5&&F.RQ("seek"),M&&g.e1(b,2)&&Jb(F,b.state,J,I,u,w))}; Jb=function(F,J,b,I,u,w,M,q){rq(F,"impression")&&(w?(w=u-I,w=w>=-1&&w<=2):w=Math.abs(I-u)<=1,bg(F,J,w?I:u,b,I,M,q&&w),w&&F.JJ("complete"))}; bg=function(F,J,b,I,u,w,M){Ts(F,b*1E3,M);u<=0||b<=0||(J==null?0:g.x(J,16))||(J==null?0:g.x(J,32))||(eg(b,u*.25,I)&&(w&&!rq(F,"first_quartile")&&w("first"),F.JJ("first_quartile")),eg(b,u*.5,I)&&(w&&!rq(F,"midpoint")&&w("second"),F.JJ("midpoint")),eg(b,u*.75,I)&&(w&&!rq(F,"third_quartile")&&w("third"),F.JJ("third_quartile")))}; fj7=function(F,J){rq(F,"impression")&&F.RQ(J?"fullscreen":"end_fullscreen")}; WKm=function(F){rq(F,"impression")&&F.RQ("clickthrough")}; dG3=function(F){F.RQ("active_view_measurable")}; Ek3=function(F){rq(F,"impression")&&!rq(F,"seek")&&F.RQ("active_view_fully_viewable_audible_half_duration")}; jrC=function(F){rq(F,"impression")&&!rq(F,"seek")&&F.RQ("active_view_viewable")}; Gp_=function(F){rq(F,"impression")&&!rq(F,"seek")&&F.RQ("audio_audible")}; Vlz=function(F){rq(F,"impression")&&!rq(F,"seek")&&F.RQ("audio_measurable")}; Pq7=function(F,J,b,I,u,w,M,q,v,a,e,K){this.callback=F;this.slot=J;this.layout=b;this.RC=I;this.yG=u;this.OQ=w;this.CP=M;this.X4=q;this.p7=v;this.uR=a;this.EQ=e;this.QG=K;this.oz=!0;this.r9=this.Lk=null;this.adCpn=void 0;this.C=!1}; Ba4=function(F,J,b){var I;Lx(F.EQ.get(),"ads_qua","cpn."+uL(F.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((I=gM(F.QG.get(),2))==null?void 0:I.clientPlaybackNonce)+";qt."+J+";clr."+b)}; Tak=function(F,J){var b,I;Lx(F.EQ.get(),"ads_imp","cpn."+uL(F.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((b=gM(F.QG.get(),2))==null?void 0:b.clientPlaybackNonce)+";clr."+J+";skp."+!!g.O((I=uL(F.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:I.skipOrPreviewRenderer,IS))}; ug=function(F){return{enterMs:uL(F.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:uL(F.clientMetadata,"metadata_type_layout_exit_ms")}}; wI=function(F,J,b,I,u,w,M,q,v,a,e,K,p,m){nx.call(this,F,J,b,I,u,M,q,v,a,K);this.CP=w;this.p7=e;this.X4=p;this.uR=m;this.r9=this.Lk=null}; roY=function(F,J){var b;Lx(F.EQ.get(),"ads_imp","acpn."+((b=gM(F.QG.get(),2))==null?void 0:b.clientPlaybackNonce)+";clr."+J)}; Szv=function(F,J,b){var I;Lx(F.EQ.get(),"ads_qua","cpn."+uL(F.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((I=gM(F.QG.get(),2))==null?void 0:I.clientPlaybackNonce)+";qt."+J+";clr."+b)}; Mh=function(F,J,b,I,u,w,M,q,v,a,e,K,p,m,y,f,d,G,P,r,Q){this.rY=F;this.z$=J;this.cD=b;this.QG=I;this.RC=u;this.OQ=w;this.EQ=M;this.CP=q;this.cV=v;this.X4=a;this.p7=e;this.NI=K;this.h_=p;this.qI=m;this.py=y;this.D7=f;this.yJ=d;this.uR=G;this.C=P;this.context=r;this.Zl=Q}; Ab=function(F,J,b,I,u,w,M,q,v,a,e,K,p,m,y,f,d,G){this.rY=F;this.z$=J;this.cD=b;this.EQ=I;this.X4=u;this.p7=w;this.NI=M;this.QG=q;this.OQ=v;this.h_=a;this.qI=e;this.py=K;this.D7=p;this.yJ=m;this.uR=y;this.RC=f;this.context=d;this.Zl=G}; srC=function(F,J,b,I){I4.call(this,"survey-interstitial",F,J,b,I)}; qh=function(F,J,b,I,u){i6.call(this,b,F,J,I);this.EQ=u;F=uL(J.clientMetadata,"metadata_type_ad_placement_config");this.yG=new jr(J.ww,u,F,J.layoutId)}; vS=function(F){return Math.round(F.width)+"x"+Math.round(F.height)}; ej=function(F,J,b){b=b===void 0?aS:b;b.widthF.width*F.height*.2)return{UE:3,a$:501,errorMessage:"ad("+vS(b)+") to container("+vS(F)+") ratio exceeds limit."};if(b.height>F.height/3-J)return{UE:3,a$:501,errorMessage:"ad("+vS(b)+") covers container("+vS(F)+") center."}}; Yz4=function(F,J){var b=uL(F.clientMetadata,"metadata_type_ad_placement_config");return new jr(F.ww,J,b,F.layoutId)}; Ki=function(F){return uL(F.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; pi=function(F,J,b,I){I4.call(this,"invideo-overlay",F,J,b,I);this.interactionLoggingClientData=I}; gI=function(F,J,b,I,u,w,M,q,v,a,e,K){i6.call(this,w,F,J,u);this.EQ=b;this.Z=M;this.OQ=q;this.D7=v;this.uR=a;this.W=e;this.D=K;this.yG=Yz4(J,b)}; $Ga=function(){var F=["metadata_type_invideo_overlay_ad_renderer"];Gs().forEach(function(J){F.push(J)}); return{WV:F,C7:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; mq=function(F,J,b,I,u,w,M,q,v,a,e,K,p){i6.call(this,w,F,J,u);this.EQ=b;this.Z=M;this.Y=q;this.OQ=v;this.D7=a;this.uR=e;this.W=K;this.D=p;this.yG=Yz4(J,b)}; Cq7=function(){for(var F=["metadata_type_invideo_overlay_ad_renderer"],J=g.N(Gs()),b=J.next();!b.done;b=J.next())F.push(b.value);return{WV:F,C7:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; yc=function(F){this.OQ=F;this.C=!1}; Xfo=function(F,J,b){I4.call(this,"survey",F,{},J,b)}; ig=function(F,J,b,I,u,w,M){i6.call(this,b,F,J,I);this.Z=u;this.OQ=w;this.uR=M}; Qr7=function(F,J,b,I,u,w,M,q,v,a){this.sI=F;this.OQ=J;this.EQ=b;this.Z=I;this.X4=u;this.U=w;this.T=M;this.D7=q;this.uR=v;this.C=a}; RJG=function(F,J,b,I,u,w,M,q,v,a){this.sI=F;this.OQ=J;this.EQ=b;this.Z=I;this.X4=u;this.U=w;this.T=M;this.D7=q;this.uR=v;this.C=a}; zJ=function(F,J,b,I,u,w,M,q,v,a){J1.call(this,F,J,b,I,u,w,M,v);this.Ma=q;this.QG=a}; DGo=function(){var F=cr7();F.WV.push("metadata_type_ad_info_ad_metadata");return F}; kp4=function(F,J,b,I,u,w,M){this.sI=F;this.OQ=J;this.EQ=b;this.U=I;this.Ma=u;this.C=w;this.QG=M}; Op4=function(F,J,b,I,u,w,M,q){this.sI=F;this.OQ=J;this.EQ=b;this.U=I;this.Ma=u;this.C=w;this.uR=M;this.QG=q}; Nh=function(F,J){this.slotId=J;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=F(this.triggerType)}; lg=function(F,J){this.adPodIndex=F;this.C=J.length;this.adBreakLengthSeconds=J.reduce(function(I,u){return I+u},0); var b=0;for(F+=1;F0}; uM=function(F){return!!(F.xfG&&F.slot&&F.layout)}; wc=function(F){var J,b=(J=F.config)==null?void 0:J.adPlacementConfig;F=F.renderer;return!(!b||b.kind==null||!F)}; Iym=function(F){if(!ZM(F.adLayoutMetadata))return!1;F=F.renderingContent;return g.O(F,A1)||g.O(F,qM)||g.O(F,wk)||g.O(F,MM)?!0:!1}; ME=function(F){return F.playerVars!==void 0&&F.pings!==void 0&&F.externalVideoId!==void 0}; NE=function(F){if(!ZM(F.adLayoutMetadata))return!1;F=F.renderingContent;var J=g.O(F,AI);return J?qE(J):(J=g.O(F,me))?ME(J):(J=g.O(F,yB))?J.playerVars!==void 0:(J=g.O(F,A1))?J.durationMilliseconds!==void 0:g.O(F,iM)||g.O(F,zX)?!0:!1}; qE=function(F){F=(F.sequentialLayouts||[]).map(function(J){return g.O(J,lM)}); return F.length>0&&F.every(NE)}; vFv=function(F){if(!ZM(F.adLayoutMetadata))return!1;if(g.O(F.renderingContent,uS3)||g.O(F.renderingContent,wA4))return!0;var J=g.O(F.renderingContent,fU);return g.O(F.renderingContent,WF)||g.O(J==null?void 0:J.sidePanel,Mta)||g.O(J==null?void 0:J.sidePanel,A3z)||g.O(J==null?void 0:J.sidePanel,qvG)?!0:!1}; mJ_=function(F){var J;(J=!F)||(J=F.adSlotMetadata,J=!((J==null?void 0:J.slotId)!==void 0&&(J==null?void 0:J.slotType)!==void 0));if(J||!(aya(F)||F.slotEntryTrigger&&F.slotFulfillmentTriggers&&F.slotExpirationTriggers))return!1;var b;F=(b=F.fulfillmentContent)==null?void 0:b.fulfilledLayout;return(b=g.O(F,lM))?NE(b):(b=g.O(F,dc))?vFv(b):(b=g.O(F,eMY))?Iym(b):(b=g.O(F,K_C))?J3J(b):(b=g.O(F,pA3))?ZM(b.adLayoutMetadata)?g.O(b.renderingContent,HS)?!0:!1:!1:(F=g.O(F,gFa))?ZM(F.adLayoutMetadata)?g.O(F.renderingContent, Ex)?!0:!1:!1:!1}; aya=function(F){var J;F=g.O((J=F.fulfillmentContent)==null?void 0:J.fulfilledLayout,dc);var b;return F&&((b=F.adLayoutMetadata)==null?void 0:b.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&F.layoutExitNormalTriggers===void 0}; y3Y=function(F){var J;return(F==null?void 0:(J=F.adSlotMetadata)==null?void 0:J.slotType)==="SLOT_TYPE_IN_PLAYER"}; zMC=function(F,J){var b;if((b=F.questions)==null||!b.length||!F.playbackCommands||(J===void 0||!J)&&F.questions.length!==1)return!1;F=g.N(F.questions);for(J=F.next();!J.done;J=F.next()){J=J.value;var I=b=void 0,u=((b=g.O(J,j5))==null?void 0:b.surveyAdQuestionCommon)||((I=g.O(J,GX))==null?void 0:I.surveyAdQuestionCommon);if(!iQC(u))return!1}return!0}; NEY=function(F){F=((F==null?void 0:F.playerOverlay)||{}).instreamSurveyAdRenderer;var J;if(F)if(F.playbackCommands&&F.questions&&F.questions.length===1){var b,I=((J=g.O(F.questions[0],j5))==null?void 0:J.surveyAdQuestionCommon)||((b=g.O(F.questions[0],GX))==null?void 0:b.surveyAdQuestionCommon);J=iQC(I)}else J=!1;else J=!1;return J}; iQC=function(F){if(!F)return!1;F=g.O(F.instreamAdPlayerOverlay,VB);var J=g.O(F==null?void 0:F.skipOrPreviewRenderer,IS),b=g.O(F==null?void 0:F.adInfoRenderer,PF);return(g.O(F==null?void 0:F.skipOrPreviewRenderer,BF)||J)&&b?!0:!1}; lyC=function(F){return F.linearAds!=null&&ZM(F.adLayoutMetadata)}; fyz=function(F){return F.linearAd!=null&&F.adVideoStart!=null}; W_G=function(F){if(isNaN(Number(F.timeoutSeconds))||!F.text||!F.ctaButton||!g.O(F.ctaButton,g.TX)||!F.brandImage)return!1;var J;return F.backgroundImage&&g.O(F.backgroundImage,rc)&&((J=g.O(F.backgroundImage,rc))==null?0:J.landscape)?!0:!1}; S5=function(F,J,b,I,u,w,M){g.R.call(this);this.uR=F;this.C=J;this.T=I;this.QG=u;this.Z=w;this.U=M}; jWo=function(F,J,b){var I,u=((I=b.adSlots)!=null?I:[]).map(function(q){return g.O(q,sx)}); if(b.Hp)if(uL(J.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))pd(F.C.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},J.slotId); else{if(F.uR.get().G.J().S("h5_check_forecasting_renderer_for_throttled_midroll")){var w=b.GX.filter(function(q){var v;return((v=q.renderer)==null?void 0:v.clientForecastingAdRenderer)!=null}); w.length!==0?dJz(F.U,w,u,J.slotId,b.ssdaiAdsConfig):pd(F.C.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},J.slotId)}else pd(F.C.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},J.slotId); EF_(F.Z,J)}else{var M;I={F1:Math.round(((w=uL(J.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:w.F1)||0),xI:(M=uL(J.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:M.xI};dJz(F.U,b.GX,u,J.slotId,b.ssdaiAdsConfig,I)}}; Vt4=function(F,J,b,I,u,w,M){var q=gM(F.QG.get(),1);pd(F.C.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return GcG(F.T.get(),b,I,u,q.clientPlaybackNonce,q.tN,q.daiEnabled,q,w,M)},J)}; BE_=function(F,J,b,I,u,w,M){J=PHz(J,w,Number(I.prefetchMilliseconds)||0,M);F=J instanceof Z?J:Y8(F,I,u,J,b);return F instanceof Z?F:[F]}; TEC=function(F,J,b,I,u){var w=gq(F.U.get(),"SLOT_TYPE_AD_BREAK_REQUEST");I=[new $Y({getAdBreakUrl:I.getAdBreakUrl,F1:0,xI:0}),new tp(!0)];F=J.pauseDurationMs?J.lactThresholdMs?{slotId:w,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new cS(F.C,w),slotFulfillmentTriggers:[new hJ3(F.C)],slotExpirationTriggers:[new Xq(F.C,u),new kA(F.C,w)],BN:"core",clientMetadata:new Ii(I),adSlotLoggingData:b}:new Z("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new Z("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return F instanceof Z?F:[F]}; r3a=function(F){var J,b;return((J=F.renderer)==null?void 0:(b=J.adBreakServiceRenderer)==null?void 0:b.getAdBreakUrl)!==void 0}; $8=function(F,J,b){if(F.beforeContentVideoIdStartedTrigger)F=F.beforeContentVideoIdStartedTrigger?new fi(Jj,J,F.id):new Z("Not able to create BeforeContentVideoIdStartedTrigger");else{if(F.layoutIdExitedTrigger){var I;J=(I=F.layoutIdExitedTrigger)!=null&&I.triggeringLayoutId?new Vc(Jj,F.layoutIdExitedTrigger.triggeringLayoutId,F.id):new Z("Not able to create LayoutIdExitedTrigger")}else{if(F.layoutExitedForReasonTrigger){var u,w;((u=F.layoutExitedForReasonTrigger)==null?0:u.triggeringLayoutId)&&((w= F.layoutExitedForReasonTrigger)==null?0:w.layoutExitReason)?(J=coa(F.layoutExitedForReasonTrigger.layoutExitReason),F=J instanceof Z?J:new GJ(Jj,F.layoutExitedForReasonTrigger.triggeringLayoutId,[J],F.id)):F=new Z("Not able to create LayoutIdExitedForReasonTrigger")}else{if(F.onLayoutSelfExitRequestedTrigger){var M;J=(M=F.onLayoutSelfExitRequestedTrigger)!=null&&M.triggeringLayoutId?new Ci(Jj,F.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,F.id):new Z("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(F.onNewPlaybackAfterContentVideoIdTrigger)F= F.onNewPlaybackAfterContentVideoIdTrigger?new Xq(Jj,J,F.id):new Z("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(F.skipRequestedTrigger){var q;J=(q=F.skipRequestedTrigger)!=null&&q.triggeringLayoutId?new RS(Jj,F.skipRequestedTrigger.triggeringLayoutId,F.id):new Z("Not able to create SkipRequestedTrigger")}else if(F.slotIdEnteredTrigger){var v;J=(v=F.slotIdEnteredTrigger)!=null&&v.triggeringSlotId?new DM(Jj,F.slotIdEnteredTrigger.triggeringSlotId,F.id):new Z("Not able to create SlotIdEnteredTrigger")}else if(F.slotIdExitedTrigger){var a; J=(a=F.slotIdExitedTrigger)!=null&&a.triggeringSlotId?new kA(Jj,F.slotIdExitedTrigger.triggeringSlotId,F.id):new Z("Not able to create SkipRequestedTrigger")}else if(F.surveySubmittedTrigger){var e;J=(e=F.surveySubmittedTrigger)!=null&&e.triggeringLayoutId?new xA(Jj,F.surveySubmittedTrigger.triggeringLayoutId,F.id):new Z("Not able to create SurveySubmittedTrigger")}else{if(F.mediaResumedTrigger)F=F.mediaResumedTrigger&&F.id?new UGG(F.id):new Z("Not able to create MediaResumedTrigger");else{if(F.closeRequestedTrigger){var K; J=(K=F.closeRequestedTrigger)!=null&&K.triggeringLayoutId?new WS(Jj,F.closeRequestedTrigger.triggeringLayoutId,F.id):new Z("Not able to create CloseRequestedTrigger")}else if(F.slotIdScheduledTrigger){var p;J=(p=F.slotIdScheduledTrigger)!=null&&p.triggeringSlotId?new cS(Jj,F.slotIdScheduledTrigger.triggeringSlotId,F.id):new Z("Not able to create SlotIdScheduledTrigger")}else{if(F.mediaTimeRangeTrigger){var m;I=Number((m=F.mediaTimeRangeTrigger)==null?void 0:m.offsetStartMilliseconds);var y;M=Number((y= F.mediaTimeRangeTrigger)==null?void 0:y.offsetEndMilliseconds);isFinite(I)&&isFinite(M)?(y=M,y===-1&&(y=b),b=I>y?new Z("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:I,offsetEndMs:y},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",y===b&&I-500<=y):new f6(I,y),F=b instanceof Z?b:new Sj(Jj,J,b,!1,F.id)):F=new Z("Not able to create MediaTimeRangeTrigger")}else if(F.contentVideoIdEndedTrigger)F=F.contentVideoIdEndedTrigger?new dI(Jj,J,!1,F.id):new Z("Not able to create ContentVideoIdEndedTrigger"); else{if(F.layoutIdEnteredTrigger){var f;J=(f=F.layoutIdEnteredTrigger)!=null&&f.triggeringLayoutId?new jj(Jj,F.layoutIdEnteredTrigger.triggeringLayoutId,F.id):new Z("Not able to create LayoutIdEnteredTrigger")}else if(F.timeRelativeToLayoutEnterTrigger){var d;J=(d=F.timeRelativeToLayoutEnterTrigger)!=null&&d.triggeringLayoutId?new ni(Jj,Number(F.timeRelativeToLayoutEnterTrigger.durationMs),F.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,F.id):new Z("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(F.onDifferentLayoutIdEnteredTrigger){var G; J=(G=F.onDifferentLayoutIdEnteredTrigger)!=null&&G.triggeringLayoutId&&F.onDifferentLayoutIdEnteredTrigger.slotType&&F.onDifferentLayoutIdEnteredTrigger.layoutType?new YA(Jj,F.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,F.onDifferentLayoutIdEnteredTrigger.slotType,F.onDifferentLayoutIdEnteredTrigger.layoutType,F.id):new Z("Not able to create CloseRequestedTrigger")}else{if(F.liveStreamBreakStartedTrigger)F=F.liveStreamBreakStartedTrigger&&F.id?new rI(Jj,F.id):new Z("Not able to create LiveStreamBreakStartedTrigger"); else if(F.liveStreamBreakEndedTrigger)F=F.liveStreamBreakEndedTrigger&&F.id?new PS(Jj,F.id):new Z("Not able to create LiveStreamBreakEndedTrigger");else{if(F.liveStreamBreakScheduledDurationMatchedTrigger){var P;J=(P=F.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&P.breakDurationMs?new BS(Number(F.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,F.id):new Z("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(F.liveStreamBreakScheduledDurationNotMatchedTrigger){var r; J=(r=F.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&r.breakDurationMs?new TJ(Number(F.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,F.id):new Z("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(F.newSlotScheduledWithBreakDurationTrigger){var Q;J=(Q=F.newSlotScheduledWithBreakDurationTrigger)!=null&&Q.breakDurationMs?new sC(Number(F.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,F.id):new Z("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else J= F.prefetchCacheExpiredTrigger?new Qc(Jj,F.id):new Z("Not able to convert an AdsControlflowTrigger.");F=J}J=F}F=J}J=F}F=J}J=F}F=J}J=F}F=J}J=F}F=J}return F}; CU=function(F,J){J.C>=2&&(F.slot_pos=J.adPodIndex);F.autoplay="1"}; sW_=function(F,J,b,I,u,w,M,q){return J===null?new Z("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:J,ActionCompanionAdRenderer:I}):[Sva(F,J,M,w,function(v){var a=v.slotId;v=q(v);var e=I.adLayoutLoggingData,K=new Ii([new Cg(I),new ng(u)]);a=xX(b.U.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",a);var p={layoutId:a,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",BN:"core"};return{layoutId:a,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",ww:new Map, layoutExitNormalTriggers:[new Xq(b.C,M)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],z1:[],BN:"core",clientMetadata:K,lT:v(p),adLayoutLoggingData:e}})]}; Yv3=function(F,J,b,I,u,w,M,q){return J===null?new Z("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:J,TopBannerImageTextIconButtonedLayoutViewModel:I}):[Sva(F,J,M,w,function(v){var a=v.slotId;v=q(v);var e=I.adLayoutLoggingData,K=new Ii([new XU(I),new ng(u)]);a=xX(b.U.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",a);var p={layoutId:a,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",BN:"core"};return{layoutId:a,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", ww:new Map,layoutExitNormalTriggers:[new Xq(b.C,M)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],z1:[],BN:"core",clientMetadata:K,lT:v(p),adLayoutLoggingData:e}})]}; QWv=function(F,J,b,I,u,w){if(!w)for(J=g.N(J),w=J.next();!w.done;w=J.next())w=w.value,Xj(F,w.renderer,w.config.adPlacementConfig.kind);F=Array.from(F.values()).filter(function(e){return $JJ(e)}); J=[];w=g.N(F);for(var M=w.next(),q={};!M.done;q={fu:void 0},M=w.next()){q.fu=M.value;M=g.N(q.fu.Nv);for(var v=M.next(),a={};!v.done;a={EM:void 0},v=M.next())a.EM=v.value,v=function(e,K){return function(p){return e.EM.bu(p,K.fu.instreamVideoAdRenderer.elementId,e.EM.Lh)}}(a,q),a.EM.isContentVideoCompanion?J.push(CH7(b,I,u,q.fu.instreamVideoAdRenderer.elementId,a.EM.associatedCompositePlayerBytesLayoutId,a.EM.adSlotLoggingData,v)):F.length>1?J.push(XAv(b,I,u,q.fu.instreamVideoAdRenderer.elementId,a.EM.adSlotLoggingData, function(e,K){return function(p){return e.EM.bu(p,K.fu.instreamVideoAdRenderer.elementId,e.EM.Lh,e.EM.associatedCompositePlayerBytesLayoutId)}}(a,q))):J.push(XAv(b,I,u,q.fu.instreamVideoAdRenderer.elementId,a.EM.adSlotLoggingData,v))}return J}; Xj=function(F,J,b){if(J=RM_(J)){J=g.N(J);for(var I=J.next();!I.done;I=J.next())if((I=I.value)&&I.externalVideoId){var u=QB(F,I.externalVideoId);u.instreamVideoAdRenderer||(u.instreamVideoAdRenderer=I,u.ek=b)}else q_("InstreamVideoAdRenderer without externalVideoId")}}; RM_=function(F){var J=[],b=F.sandwichedLinearAdRenderer&&F.sandwichedLinearAdRenderer.linearAd&&g.O(F.sandwichedLinearAdRenderer.linearAd,me);if(b)return J.push(b),J;if(F.instreamVideoAdRenderer)return J.push(F.instreamVideoAdRenderer),J;if(F.linearAdSequenceRenderer&&F.linearAdSequenceRenderer.linearAds){F=g.N(F.linearAdSequenceRenderer.linearAds);for(b=F.next();!b.done;b=F.next())b=b.value,g.O(b,me)&&J.push(g.O(b,me));return J}return null}; $JJ=function(F){if(F.instreamVideoAdRenderer===void 0)return q_("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var J=g.N(F.Nv),b=J.next();!b.done;b=J.next()){b=b.value;if(b.bu===void 0)return!1;if(b.Lh===void 0)return q_("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(F.ek===void 0||b.KM===void 0||F.ek!==b.KM&&b.KM!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(F.instreamVideoAdRenderer.elementId===void 0)return q_("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:F.ek,"matching APSR kind":b.KM}),!1}return!0}; QB=function(F,J){F.has(J)||F.set(J,{instreamVideoAdRenderer:void 0,ek:void 0,adVideoId:J,Nv:[]});return F.get(J)}; Rk=function(F,J,b,I,u,w,M,q,v){u?QB(F,u).Nv.push({Z1G:J,KM:b,isContentVideoCompanion:I,Lh:M,associatedCompositePlayerBytesLayoutId:w,adSlotLoggingData:q,bu:v}):q_("Companion AdPlacementSupportedRenderer without adVideoId")}; Dp=function(F){var J=0;F=g.N(F.questions);for(var b=F.next();!b.done;b=F.next())if(b=b.value,b=g.O(b,j5)||g.O(b,GX)){var I=void 0;J+=((I=b.surveyAdQuestionCommon)==null?void 0:I.durationMilliseconds)||0}return J}; k8=function(F){var J,b,I,u,w=((b=g.O((J=F.questions)==null?void 0:J[0],j5))==null?void 0:b.surveyAdQuestionCommon)||((u=g.O((I=F.questions)==null?void 0:I[0],GX))==null?void 0:u.surveyAdQuestionCommon),M;J=[].concat(g.W(((M=F.playbackCommands)==null?void 0:M.instreamAdCompleteCommands)||[]),g.W((w==null?void 0:w.timeoutCommands)||[]));var q,v,a,e,K,p,m,y,f,d,G,P,r,Q,D,t,n,uk,AJ,F7;return{impressionCommands:(q=F.playbackCommands)==null?void 0:q.impressionCommands,errorCommands:(v=F.playbackCommands)== null?void 0:v.errorCommands,muteCommands:(a=F.playbackCommands)==null?void 0:a.muteCommands,unmuteCommands:(e=F.playbackCommands)==null?void 0:e.unmuteCommands,pauseCommands:(K=F.playbackCommands)==null?void 0:K.pauseCommands,rewindCommands:(p=F.playbackCommands)==null?void 0:p.rewindCommands,resumeCommands:(m=F.playbackCommands)==null?void 0:m.resumeCommands,skipCommands:(y=F.playbackCommands)==null?void 0:y.skipCommands,progressCommands:(f=F.playbackCommands)==null?void 0:f.progressCommands,Dpj:(d= F.playbackCommands)==null?void 0:d.clickthroughCommands,fullscreenCommands:(G=F.playbackCommands)==null?void 0:G.fullscreenCommands,activeViewViewableCommands:(P=F.playbackCommands)==null?void 0:P.activeViewViewableCommands,activeViewMeasurableCommands:(r=F.playbackCommands)==null?void 0:r.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(Q=F.playbackCommands)==null?void 0:Q.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(D=F.playbackCommands)== null?void 0:(t=D.activeViewTracking)==null?void 0:t.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(n=F.playbackCommands)==null?void 0:(uk=n.activeViewTracking)==null?void 0:uk.activeViewAudioMeasurableCommands,endFullscreenCommands:(AJ=F.playbackCommands)==null?void 0:AJ.endFullscreenCommands,abandonCommands:(F7=F.playbackCommands)==null?void 0:F7.abandonCommands,completeCommands:J}}; kc7=function(F,J,b,I,u,w,M){return function(q,v){return DJm(F,v.slotId,q,w,function(a,e){var K=v.layoutId;a=M(a);return Ox(J,K,e,u,a,"LAYOUT_TYPE_SURVEY",[new eK(b),I],b.adLayoutLoggingData)})}}; hM4=function(F,J,b,I,u,w,M){if(!OQG(F))return new Z("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:F});var q=F.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[oFa(w,J,b,I,function(v){var a=v.slotId;v=M(v);a=xX(u.U.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",a);var e={layoutId:a,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",BN:"core"},K=new Vc(u.C,I);return{layoutId:a,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",ww:new Map,layoutExitNormalTriggers:[K], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],z1:[],BN:"core",clientMetadata:new Ii([new KK(q)]),lT:v(e)}})]}; OQG=function(F){F=g.O(F==null?void 0:F.additionalPlayerOverlay,c37);if(!F)return!1;var J=F.slidingMessages;return F.title&&J&&J.length!==0?!0:!1}; xJ_=function(F,J,b,I,u){var w;if((w=F.playerOverlay)==null||!w.instreamSurveyAdRenderer)return function(){return[]}; if(!NEY(F))return function(){return new Z("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:F})}; var M=F.playerOverlay.instreamSurveyAdRenderer,q=Dp(M);return q<=0?function(){return new Z("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:M})}:function(v,a){var e=UJ4(v,b,I,function(K){var p=K.slotId; K=a(K);var m=k8(M);p=xX(u.U.get(),"LAYOUT_TYPE_SURVEY",p);var y={layoutId:p,layoutType:"LAYOUT_TYPE_SURVEY",BN:"core"},f=new Vc(u.C,I),d=new RS(u.C,p),G=new xA(u.C,p),P=new Zp3(u.C);return{layoutId:p,layoutType:"LAYOUT_TYPE_SURVEY",ww:new Map,layoutExitNormalTriggers:[f,P],layoutExitSkipTriggers:[d],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[G],z1:[],BN:"core",clientMetadata:new Ii([new ad(M),new ng(J),new QD(q/1E3),new Ot(m)]),lT:K(y),adLayoutLoggingData:M.adLayoutLoggingData}}); v=hM4(F,b,e.slotId,I,u,v,a);return v instanceof Z?v:[e].concat(g.W(v))}}; J$z=function(F,J,b,I,u,w,M){M=M===void 0?!1:M;var q=[];try{var v=[];if(b.renderer.linearAdSequenceRenderer)var a=function(f){f=nFo(f.slotId,b,J,u(f),I,w,M);v=f.OvG;return f.GC}; else if(b.renderer.instreamVideoAdRenderer)a=function(f){var d=f.slotId;f=u(f);var G=M,P=b.config.adPlacementConfig,r=ttm(P),Q=r.Ur,D=r.Gs;r=b.renderer.instreamVideoAdRenderer;var t;if(r==null?0:(t=r.playerOverlay)==null?0:t.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var n=ok(r,G);t=Math.min(Q+n.videoLengthSeconds*1E3,D);G=new lg(0,[n.videoLengthSeconds]);D=n.videoLengthSeconds;var uk=n.playerVars,AJ=n.instreamAdPlayerOverlayRenderer,F7=n.playerOverlayLayoutRenderer, h=n.adVideoId,L=ZQ3(b),l=n.ww;n=n.Mi;var c=r==null?void 0:r.adLayoutLoggingData;r=r==null?void 0:r.sodarExtensionData;d=xX(J.U.get(),"LAYOUT_TYPE_MEDIA",d);var Da={layoutId:d,layoutType:"LAYOUT_TYPE_MEDIA",BN:"core"};return{layoutId:d,layoutType:"LAYOUT_TYPE_MEDIA",ww:l,layoutExitNormalTriggers:[new PS(J.C)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],z1:[],BN:"core",clientMetadata:new Ii([new Jp(I),new WM(D),new dT(uk),new Gu(Q),new VD(t),AJ&&new bQ(AJ), F7&&new Id(F7),new ng(P),new FA(h),new t$(G),new SK(L),r&&new jK(r),new zu({current:null}),new BM({}),new cM(n)].filter(HQm)),lT:f(Da),adLayoutLoggingData:c}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var e=L_4(F,I,b.adSlotLoggingData,a);q.push(e);for(var K=g.N(v),p=K.next();!p.done;p=K.next()){var m=p.value,y=m(F,u);if(y instanceof Z)return y;q.push.apply(q,g.W(y))}}catch(f){return new Z(f,{errorMessage:f.message,AdPlacementRenderer:b,numberOfSurveyRenderers:FT3(b)})}return q}; FT3=function(F){F=(F.renderer.linearAdSequenceRenderer||{}).linearAds;return F!=null&&F.length?F.filter(function(J){var b,I;return((b=g.O(J,me))==null?void 0:(I=b.playerOverlay)==null?void 0:I.instreamSurveyAdRenderer)!=null}).length:0}; nFo=function(F,J,b,I,u,w,M){var q=J.config.adPlacementConfig,v=ttm(q),a=v.Ur,e=v.Gs;v=(J.renderer.linearAdSequenceRenderer||{}).linearAds;if(v==null||!v.length)throw new TypeError("Expected linear ads");var K=[],p={Q8:a,GQ:0,gjv:K};v=v.map(function(y){return bg4(F,y,p,b,I,q,u,e,M)}).map(function(y,f){f=new lg(f,K); return y(f)}); var m=v.map(function(y){return y.PK}); return{GC:I5C(b,F,a,m,q,ZQ3(J),I,e,w),OvG:v.map(function(y){return y.AXR})}}; bg4=function(F,J,b,I,u,w,M,q,v){var a=ok(g.O(J,me),v),e=b.Q8,K=b.GQ,p=Math.min(e+a.videoLengthSeconds*1E3,q);b.Q8=p;b.GQ++;b.gjv.push(a.videoLengthSeconds);var m,y,f=(m=g.O(J,me))==null?void 0:(y=m.playerOverlay)==null?void 0:y.instreamSurveyAdRenderer;if(a.adVideoId==="nPpU29QrbiU"&&f==null)throw new TypeError("Survey slate media has no survey overlay");return function(d){CU(a.playerVars,d);var G,P,r=a.videoLengthSeconds,Q=a.playerVars,D=a.ww,t=a.Mi,n=a.instreamAdPlayerOverlayRenderer,uk=a.playerOverlayLayoutRenderer, AJ=a.adVideoId,F7=(G=g.O(J,me))==null?void 0:G.adLayoutLoggingData;G=(P=g.O(J,me))==null?void 0:P.sodarExtensionData;P=xX(I.U.get(),"LAYOUT_TYPE_MEDIA",F);var h={layoutId:P,layoutType:"LAYOUT_TYPE_MEDIA",BN:"adapter"};d={layoutId:P,layoutType:"LAYOUT_TYPE_MEDIA",ww:D,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],z1:[],BN:"adapter",clientMetadata:new Ii([new Jp(M),new WM(r),new dT(Q),new Gu(e),new VD(p),new PM(K),new zu({current:null}), n&&new bQ(n),uk&&new Id(uk),new ng(w),new FA(AJ),new t$(d),G&&new jK(G),f&&new hp(f),new BM({}),new cM(t)].filter(HQm)),lT:u(h),adLayoutLoggingData:F7};r=xJ_(g.O(J,me),w,M,d.layoutId,I);return{PK:d,AXR:r}}}; ok=function(F,J){if(!F)throw new TypeError("Expected instream video ad renderer");if(!F.playerVars)throw new TypeError("Expected player vars in url encoded string");var b=FF(F.playerVars),I=Number(b.length_seconds);if(isNaN(I))throw new TypeError("Expected valid length seconds in player vars");var u=Number(F.trimmedMaxNonSkippableAdDurationMs);I=isNaN(u)?I:Math.min(I,u/1E3);u=F.playerOverlay||{};u=u.instreamAdPlayerOverlayRenderer===void 0?null:u.instreamAdPlayerOverlayRenderer;var w=F.playerOverlay|| {};w=w.playerOverlayLayoutRenderer===void 0?null:w.playerOverlayLayoutRenderer;var M=b.video_id;M||(M=(M=F.externalVideoId)?M:void 0);if(!M)throw new TypeError("Expected valid video id in IVAR");if(J&&I===0){var q;J=(q=uU4[M])!=null?q:I}else J=I;return{playerVars:b,videoLengthSeconds:J,instreamAdPlayerOverlayRenderer:u,playerOverlayLayoutRenderer:w,adVideoId:M,ww:F.pings?Eh(F.pings):new Map,Mi:dq(F.pings)}}; ZQ3=function(F){F=Number(F.driftRecoveryMs);return isNaN(F)||F<=0?null:F}; ttm=function(F){var J=F.adTimeOffset||{};F=J.offsetEndMilliseconds;J=Number(J.offsetStartMilliseconds);if(isNaN(J))throw new TypeError("Expected valid start offset");F=Number(F);if(isNaN(F))throw new TypeError("Expected valid end offset");return{Ur:J,Gs:F}}; wPa=function(F){var J,b=(J=uL(F.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:J.current;if(!b)return null;J=uL(F.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var I=F.layoutId,u=uL(F.clientMetadata,"metadata_type_content_cpn"),w=uL(F.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),M=uL(F.clientMetadata,"metadata_type_player_underlay_renderer"),q=uL(F.clientMetadata,"metadata_type_ad_placement_config"),v=uL(F.clientMetadata,"metadata_type_video_length_seconds"); var a=LK(F.clientMetadata,"metadata_type_layout_enter_ms")&&LK(F.clientMetadata,"metadata_type_layout_exit_ms")?(uL(F.clientMetadata,"metadata_type_layout_exit_ms")-uL(F.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Dq:I,contentCpn:u,AC:b,IT:J,instreamAdPlayerOverlayRenderer:w,instreamAdPlayerUnderlayRenderer:M,adPlacementConfig:q,videoLengthSeconds:v,AE:a,inPlayerLayoutId:uL(F.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:uL(F.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; qHa=function(F,J,b,I,u,w,M,q,v,a,e,K,p,m,y){I=gq(I,"SLOT_TYPE_PLAYER_BYTES");F=Mkv(u,F,M,b,I,v,a);if(F instanceof Z)return F;var f;a=(f=uL(F.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:f.layoutId;if(!a)return new Z("Invalid adNotify layout");J=A$4(a,u,w,b,q,J,v,e,K,p,m,y,M);return J instanceof Z?J:[F].concat(g.W(J))}; A$4=function(F,J,b,I,u,w,M,q,v,a,e,K,p){b=vGz(J,b,I,w,M,q,v,a,e,K,p);if(b instanceof Z)return b;F=a5Y(J,F,M,u,b);return F instanceof Z?F:[].concat(g.W(F.Qk),[F.Rl])}; KT4=function(F,J,b,I,u,w,M,q,v,a,e,K,p,m){J=vGz(F,J,b,u,w,q,v,a,e,K,p,m);if(J instanceof Z)return J;F=ecz(F,b,w,M,I,q.MW,J);return F instanceof Z?F:F.Qk.concat(F.Rl)}; vGz=function(F,J,b,I,u,w,M,q,v,a,e,K){var p=hI(I,b,a);return p instanceof bL?new Z(p):a.G.J().experiments.pW("html5_refactor_in_player_slot_generation")?function(m){var y=new lg(0,[p.N$]);m=pPz(J,p.layoutId,p.xs,b,cF(p.playerVars,p.L_,w,v,y),p.N$,u,y,M(m),q.get(p.xs.externalVideoId),K);y=[];if(p.xs.playerOverlay.instreamAdPlayerOverlayRenderer){var f=wPa(m);if(!f)return q_("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,m),{layout:m,Qk:[]}; y=[gGY(F,f.contentCpn,f.Dq,function(G){return Ux(J,G.slotId,"core",f,ai(e,G))},f.inPlayerSlotId)].concat(g.W(y)); if(f.instreamAdPlayerUnderlayRenderer&&x8(a)){var d=f.instreamAdPlayerUnderlayRenderer;y=[msa(F,f.contentCpn,f.Dq,function(G){return y$z(J,G.slotId,d,f.adPlacementConfig,f.Dq,ai(e,G))})].concat(g.W(y))}}return{layout:m, Qk:y}}:function(m){var y=new lg(0,[p.N$]); return{layout:pPz(J,p.layoutId,p.xs,b,cF(p.playerVars,p.L_,w,v,y),p.N$,u,y,M(m),q.get(p.xs.externalVideoId),K),Qk:[]}}}; hI=function(F,J,b){if(!F.playerVars)return new bL("No playerVars available in InstreamVideoAdRenderer.");var I,u;if(F.elementId==null||F.playerVars==null||F.playerOverlay==null||((I=F.playerOverlay)==null?void 0:I.instreamAdPlayerOverlayRenderer)==null&&((u=F.playerOverlay)==null?void 0:u.playerOverlayLayoutRenderer)==null||F.pings==null||F.externalVideoId==null)return new bL("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:F});I=FF(F.playerVars);u=Number(I.length_seconds); isNaN(u)&&(u=0,q_("Expected valid length seconds in player vars but got NaN"));if(b.f7(J.kind==="AD_PLACEMENT_KIND_START")){if(F.layoutId===void 0)return new bL("Expected server generated layout ID in instreamVideoAdRenderer");J=F.layoutId}else J=F.elementId;return{layoutId:J,xs:F,playerVars:I,L_:F.playerVars,N$:u}}; cF=function(F,J,b,I,u){F.iv_load_policy=I;J=FF(J);if(J.cta_conversion_urls)try{F.cta_conversion_urls=JSON.parse(J.cta_conversion_urls)}catch(w){q_(w)}b.iq&&(F.ctrl=b.iq);b.I6&&(F.ytr=b.I6);b.lK&&(F.ytrcc=b.lK);b.isMdxPlayback&&(F.mdx="1");F.vvt&&(F.vss_credentials_token=F.vvt,b.kZ&&(F.vss_credentials_token_type=b.kZ),b.mdxEnvironment&&(F.mdx_environment=b.mdxEnvironment));CU(F,u);return F}; ig3=function(F){var J=new Map;F=g.N(F);for(var b=F.next();!b.done;b=F.next())(b=b.value.renderer.remoteSlotsRenderer)&&b.hostElementId&&J.set(b.hostElementId,b);return J}; nU=function(F){return F.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; zcv=function(F){return F!=null}; j1J=function(F,J,b,I,u,w,M,q,v,a,e,K,p,m){for(var y=[],f=g.N(F),d=f.next();!d.done;d=f.next())if(d=d.value,!aya(d)&&!y3Y(d)){var G=nU(d)&&!!d.slotEntryTrigger.beforeContentVideoIdStartedTrigger,P=v.f7(G),r=N0o(d,a,I,b.tN,P);if(r instanceof Z)return r;var Q=void 0,D={slotId:d.adSlotMetadata.slotId,slotType:d.adSlotMetadata.slotType,slotPhysicalPosition:(Q=d.adSlotMetadata.slotPhysicalPosition)!=null?Q:1,BN:"core",slotEntryTrigger:r.slotEntryTrigger,slotFulfillmentTriggers:r.slotFulfillmentTriggers, slotExpirationTriggers:r.slotExpirationTriggers},t=g.O(d.fulfillmentContent.fulfilledLayout,lM);if(t){if(!NE(t))return new Z("Invalid PlayerBytesAdLayoutRenderer");Q=K&&!(nU(d)&&d.slotEntryTrigger.beforeContentVideoIdStartedTrigger);r=r.slotFulfillmentTriggers.some(function(n){return n instanceof BS}); P=Q?l5z(D,d.adSlotMetadata.triggerEvent,t,b,I,w,a,F,P,p,r,m):f5k(D,d.adSlotMetadata.triggerEvent,t,J,b,I,u,w,M,q,v,a,F,e,P,d.adSlotMetadata.triggeringSourceLayoutId);if(P instanceof Z)return P;r=[];nU(d)&&r.push(new Zt({gt:nU(d)&&!!d.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));Q&&r.push(new BM({}));b.MW&&r.push(new od({}));r.push(new nK(G));d=Object.assign({},D,{clientMetadata:new Ii(r),fulfilledLayout:P.layout,adSlotLoggingData:d.adSlotMetadata.adSlotLoggingData});y.push.apply(y,g.W(P.Qk)); y.push(d)}else if(G=g.O(d.fulfillmentContent.fulfilledLayout,dc)){if(!vFv(G))return new Z("Invalid PlayerUnderlayAdLayoutRenderer");G=WT7(G,I,b.tN,w,D,d.adSlotMetadata.triggerEvent,d.adSlotMetadata.triggeringSourceLayoutId);if(G instanceof Z)return G;d=Object.assign({},D,{clientMetadata:new Ii([]),fulfilledLayout:G,adSlotLoggingData:d.adSlotMetadata.adSlotLoggingData});y.push(d)}else if(G=g.O(d.fulfillmentContent.fulfilledLayout,K_C)){if(!J3J(G))return new Z("Invalid AboveFeedAdLayoutRenderer");G= dsz(G,I,b.tN,w,D,d.adSlotMetadata.triggerEvent,d.adSlotMetadata.triggeringSourceLayoutId);if(G instanceof Z)return G;d=Object.assign({},D,{clientMetadata:new Ii([]),fulfilledLayout:G,adSlotLoggingData:d.adSlotMetadata.adSlotLoggingData});y.push(d)}else if(G=g.O(d.fulfillmentContent.fulfilledLayout,pA3)){if(!ZM(G.adLayoutMetadata)||!g.O(G.renderingContent,HS))return new Z("Invalid BelowPlayerAdLayoutRenderer");G=dsz(G,I,b.tN,w,D,d.adSlotMetadata.triggerEvent,d.adSlotMetadata.triggeringSourceLayoutId); if(G instanceof Z)return G;d=Object.assign({},D,{clientMetadata:new Ii([]),fulfilledLayout:G,adSlotLoggingData:d.adSlotMetadata.adSlotLoggingData});y.push(d)}else if(G=g.O(d.fulfillmentContent.fulfilledLayout,gFa)){if(!ZM(G.adLayoutMetadata)||!g.O(G.renderingContent,Ex))return new Z("Invalid PlayerBytesSequenceItemAdLayoutRenderer");G=EGG(G,I,b.tN,w,D,d.adSlotMetadata.triggerEvent);if(G instanceof Z)return G;d=Object.assign({},D,{clientMetadata:new Ii([]),fulfilledLayout:G,adSlotLoggingData:d.adSlotMetadata.adSlotLoggingData}); y.push(d)}else return new Z("Unable to retrieve a client slot ["+D.slotType+"] from a given AdSlotRenderer")}return y}; EGG=function(F,J,b,I,u,w){var M={layoutId:F.adLayoutMetadata.layoutId,layoutType:F.adLayoutMetadata.layoutType,BN:"core"};J=tI(F,J,b);return J instanceof Z?J:Object.assign({},M,{renderingContent:F.renderingContent,ww:new Map([["impression",GIG(F)]])},J,{lT:ai(I,u)(M),clientMetadata:new Ii([new ng(Zp(w))]),adLayoutLoggingData:F.adLayoutMetadata.adLayoutLoggingData})}; dsz=function(F,J,b,I,u,w,M){var q={layoutId:F.adLayoutMetadata.layoutId,layoutType:F.adLayoutMetadata.layoutType,BN:"core"};J=tI(F,J,b);if(J instanceof Z)return J;b=[];b.push(new ng(Zp(w)));w==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&M!==void 0&&b.push(new pK(M));return Object.assign({},q,{renderingContent:F.renderingContent,ww:new Map([["impression",GIG(F)]])},J,{lT:ai(I,u)(q),clientMetadata:new Ii(b),adLayoutLoggingData:F.adLayoutMetadata.adLayoutLoggingData})}; WT7=function(F,J,b,I,u,w,M){if(F.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(M=g.O(F.renderingContent,fU))if(M=g.O(M.sidePanel,A3z)){var q={layoutId:F.adLayoutMetadata.layoutId,layoutType:F.adLayoutMetadata.layoutType,BN:"core"};J=tI(F,J,b);F=J instanceof Z?J:Object.assign({},q,{renderingContent:F.renderingContent,ww:new Map([["impression",M.impressionPings||[]],["resume",M.resumePings||[]]])},J,{lT:ai(I,u)(q),clientMetadata:new Ii([new ng(Zp(w))]),adLayoutLoggingData:F.adLayoutMetadata.adLayoutLoggingData})}else F= new Z("DismissablePanelTextPortraitImageRenderer is missing");else F=new Z("SqueezebackPlayerSidePanelRenderer is missing");else F.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.O(F.renderingContent,uS3)?(M={layoutId:F.adLayoutMetadata.layoutId,layoutType:F.adLayoutMetadata.layoutType,BN:"core"},J=tI(F,J,b),F=J instanceof Z?J:Object.assign({},M,{renderingContent:F.renderingContent,ww:new Map},J,{lT:ai(I,u)(M),clientMetadata:new Ii([new ng(Zp(w))]),adLayoutLoggingData:F.adLayoutMetadata.adLayoutLoggingData})): F=new Z("CounterfactualRenderer is missing"):F.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?F=new Z("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):F.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?F=new Z("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):F.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.O(F.renderingContent,WF)?(w={layoutId:F.adLayoutMetadata.layoutId,layoutType:F.adLayoutMetadata.layoutType, BN:"core"},J=tI(F,J,b),F=J instanceof Z?J:M?Object.assign({},w,{renderingContent:F.renderingContent,ww:new Map},J,{lT:ai(I,u)(w),clientMetadata:new Ii([new pK(M)]),adLayoutLoggingData:F.adLayoutMetadata.adLayoutLoggingData}):new Z("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):F=new Z("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):F.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.O(F.renderingContent,wA4)? (w={layoutId:F.adLayoutMetadata.layoutId,layoutType:F.adLayoutMetadata.layoutType,BN:"core"},J=tI(F,J,b),F=J instanceof Z?J:Object.assign({},w,{renderingContent:F.renderingContent,ww:new Map([])},J,{lT:ai(I,u)(w),adLayoutLoggingData:F.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new Ii([])})):F=new Z("AdsEngagementPanelSectionListViewModel is missing"):F=new Z("LayoutType ["+F.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return F}; l5z=function(F,J,b,I,u,w,M,q,v,a,e,K){if((K==null?void 0:K.F1)===void 0||(K==null?void 0:K.xI)===void 0)return new Z("Cached ad break range from cue point is missing");var p=tI(b,u,I.tN);if(p instanceof Z)return p;p={layoutExitMuteTriggers:[],layoutExitNormalTriggers:p.layoutExitNormalTriggers,layoutExitSkipTriggers:[],z1:[],layoutExitUserInputSubmittedTriggers:[]};if(g.O(b.renderingContent,me))return F=Vkm(F,J,b,p,u,w,q,v,I.tN,M,K.F1,K.xI),F instanceof Z?F:F.ya===void 0?new Z("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:F.layout,Qk:[F.ya]};var m=g.O(b.renderingContent,AI);if(m){if(!ZM(b.adLayoutMetadata))return new Z("Invalid ad layout metadata");if(!qE(m))return new Z("Invalid sequential layout");m=m.sequentialLayouts.map(function(y){return y.playerBytesAdLayoutRenderer}); F=Pxo(F,J,b,p,m,u,I,w,M,v,q,a,K.F1,K.xI,e);return F instanceof Z?F:{layout:F.Ba,Qk:F.Qk}}return new Z("Not able to convert a sequential layout")}; Pxo=function(F,J,b,I,u,w,M,q,v,a,e,K,p,m,y){var f=B0z(u,p,m);if(f instanceof Z)return f;var d=[],G=[];f=g.N(f);for(var P=f.next();!P.done;P=f.next()){var r=P.value;P=F;var Q=u[r.GQ],D=r,t=J;r=w;var n=M,uk=q,AJ=v,F7=a,h=e,L=HF(Q);if(L instanceof Z)P=L;else{var l={layoutId:Q.adLayoutMetadata.layoutId,layoutType:Q.adLayoutMetadata.layoutType,BN:"adapter"};D=T0z(t,Q,D,r);D instanceof Z?P=D:(P=Object.assign({},l,LU,{ww:L,renderingContent:Q.renderingContent,clientMetadata:new Ii(D),lT:ai(uk,P)(l),adLayoutLoggingData:Q.adLayoutMetadata.adLayoutLoggingData}), P=(Q=FZ(h,P,r,n.tN,uk,AJ,F7,void 0,!0))?Q instanceof Z?Q:{layout:P,ya:Q}:new Z("Expecting associatedInPlayerSlot"))}if(P instanceof Z)return P;d.push(P.layout);G.push(P.ya)}u={layoutId:b.adLayoutMetadata.layoutId,layoutType:b.adLayoutMetadata.layoutType,BN:"core"};J=[new SK(Number(b.driftRecoveryMs)),new Gu(p),new VD(m),new ng(Zp(J)),new xY(K),new BM({})];y&&J.push(new HM({}));return{Ba:Object.assign({},u,I,{Ag:d,ww:new Map,clientMetadata:new Ii(J),lT:ai(q,F)(u)}),Qk:G}}; Vkm=function(F,J,b,I,u,w,M,q,v,a,e,K){if(!NE(b))return new Z("Invalid PlayerBytesAdLayoutRenderer");var p=HF(b);if(p instanceof Z)return p;var m={layoutId:b.adLayoutMetadata.layoutId,layoutType:b.adLayoutMetadata.layoutType,BN:"core"},y=g.O(b.renderingContent,me);if(!y)return new Z("Invalid rendering content for DAI media layout");y=ok(y,!1);e={DO:y,GQ:0,Q8:e,V9:Math.min(e+y.videoLengthSeconds*1E3,K),LL:new lg(0,[y.videoLengthSeconds])};var f;K=(f=Number(b.driftRecoveryMs))!=null?f:void 0;J=T0z(J, b,e,u,K);if(J instanceof Z)return J;F=Object.assign({},m,I,{ww:p,renderingContent:b.renderingContent,clientMetadata:new Ii(J),lT:ai(w,F)(m),adLayoutLoggingData:b.adLayoutMetadata.adLayoutLoggingData});return(u=FZ(M,F,u,v,w,a,q,void 0,!0))?u instanceof Z?u:{layout:F,ya:u}:new Z("Expecting associatedInPlayerSlot")}; f5k=function(F,J,b,I,u,w,M,q,v,a,e,K,p,m,y,f){var d=tI(b,w,u.tN);if(d instanceof Z)return d;if(g.O(b.renderingContent,me)){v=r$k([b],u,v);if(v instanceof Z)return v;if(v.length!==1)return new Z("Only expected one media layout.");F=SH4(F,J,b,d,v[0],void 0,"core",I,w,M,q,a,p,m,y,u.tN,K,void 0,f);return F instanceof Z?F:{layout:F.layout,Qk:F.ya?[F.ya]:[]}}var G=g.O(b.renderingContent,AI);if(G){if(!ZM(b.adLayoutMetadata))return new Z("Invalid ad layout metadata");if(!qE(G))return new Z("Invalid sequential layout"); G=G.sequentialLayouts.map(function(P){return P.playerBytesAdLayoutRenderer}); F=s1Y(F,J,b.adLayoutMetadata,d,G,I,w,u,v,M,q,a,e,K,y,p,m,f);return F instanceof Z?F:{layout:F.Ba,Qk:F.Qk}}return new Z("Not able to convert a sequential layout")}; s1Y=function(F,J,b,I,u,w,M,q,v,a,e,K,p,m,y,f,d,G){var P=new Lg({current:null}),r=r$k(u,q,v);if(r instanceof Z)return r;v=[];for(var Q=[],D=void 0,t=0;t0&&(t.push(G),t.push(new HP(D.adPodSkipTarget)));(w=a.get(D.externalVideoId))&&t.push(new XA(w));w=t}else w=new Z("Invalid vod media renderer")}if(w instanceof Z)return w;F=Object.assign({},M,I,{ww:r,renderingContent:b.renderingContent,clientMetadata:new Ii(w),lT:ai(e,F)(M),adLayoutLoggingData:b.adLayoutMetadata.adLayoutLoggingData});b=g.O(b.renderingContent,me);if(!b||!ME(b))return new Z("Invalid meida renderer");K=QB(K,b.externalVideoId);K.instreamVideoAdRenderer=b;K.ek="AD_PLACEMENT_KIND_START";return m?(v=FZ(p,F,v,f,e,d,y,G,!1),v instanceof Z?v:Cxv(F.layoutId,p)&&v?{layout:Object.assign({},F,{clientMetadata:new Ii(w.concat(new MR(v)))})}:{layout:F,ya:v}): {layout:F}}; YH4=function(F,J,b,I,u){if(!NE(J))return new Z("Invalid PlayerBytesAdLayoutRenderer");var w=g.O(J.renderingContent,A1);if(!w||w.durationMilliseconds===void 0)return new Z("Invalid endcap renderer");var M={layoutId:J.adLayoutMetadata.layoutId,layoutType:J.adLayoutMetadata.layoutType,BN:"adapter"};I=[new Rd(w.durationMilliseconds),new Ot({impressionCommands:void 0,abandonCommands:w.abandonCommands?[{commandExecutorCommand:w.abandonCommands}]:void 0,completeCommands:w.completionCommands}),new ng(I), new ms("LAYOUT_TYPE_ENDCAP")];if(u){I.push(new Z5(u.LL.adPodIndex-1));I.push(new PM(u.LL.adPodIndex));var q;I.push(new HP((q=u.adPodSkipTarget)!=null?q:-1))}return Object.assign({},M,LU,{renderingContent:J.renderingContent,clientMetadata:new Ii(I),ww:w.skipPings?new Map([["skip",w.skipPings]]):new Map,lT:ai(b,F)(M),adLayoutLoggingData:J.adLayoutMetadata.adLayoutLoggingData})}; FZ=function(F,J,b,I,u,w,M,q,v){F=F.filter(function(e){return e.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&e.adSlotMetadata.triggeringSourceLayoutId===J.layoutId}); if(F.length!==0){if(F.length!==1)return new Z("Invalid InPlayer slot association for the given PlayerBytes layout");F=F[0];M=N0o(F,w,b,I,M);if(M instanceof Z)return M;var a;w={slotId:F.adSlotMetadata.slotId,slotType:F.adSlotMetadata.slotType,slotPhysicalPosition:(a=F.adSlotMetadata.slotPhysicalPosition)!=null?a:1,BN:"core",slotEntryTrigger:M.slotEntryTrigger,slotFulfillmentTriggers:M.slotFulfillmentTriggers,slotExpirationTriggers:M.slotExpirationTriggers};a=g.O(F.fulfillmentContent.fulfilledLayout, eMY);if(!a||!Iym(a))return new Z("Invalid InPlayerAdLayoutRenderer");M={layoutId:a.adLayoutMetadata.layoutId,layoutType:a.adLayoutMetadata.layoutType,BN:"core"};b=tI(a,b,I);if(b instanceof Z)return b;I=[];v&&I.push(new BM({}));if(a.adLayoutMetadata.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")I.push.apply(I,g.W(XPJ(F.adSlotMetadata.triggerEvent,J)));else if(a.adLayoutMetadata.layoutType==="LAYOUT_TYPE_ENDCAP")I.push(new ng(Zp(F.adSlotMetadata.triggerEvent))),q&&I.push(q);else return new Z("Not able to parse an SDF InPlayer layout"); u=Object.assign({},M,b,{renderingContent:a.renderingContent,ww:new Map,lT:ai(u,w)(M),clientMetadata:new Ii(I),adLayoutLoggingData:a.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},w,{fulfilledLayout:u,clientMetadata:new Ii([])})}}; XPJ=function(F,J){var b=[];b.push(new ng(Zp(F)));b.push(new pK(J.layoutId));(F=uL(J.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&b.push(new zu(F));(F=uL(J.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&b.push(new Lg(F));(F=uL(J.clientMetadata,"metadata_type_remote_slots_data"))&&b.push(new XA(F));(F=uL(J.clientMetadata,"metadata_type_ad_next_params"))&&b.push(new D5(F));(F=uL(J.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&b.push(new kG(F));(F= uL(J.clientMetadata,"metadata_type_ad_pod_info"))&&b.push(new t$(F));(J=uL(J.clientMetadata,"metadata_type_ad_video_id"))&&b.push(new FA(J));return b}; $sG=function(F,J,b,I,u,w){function M(a){return Jc(J,a)} var q=I.HY.inPlayerSlotId,v={layoutId:I.HY.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",BN:"core"};b={slotId:q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,BN:"core",slotEntryTrigger:new jj(M,F),slotFulfillmentTriggers:[new DM(M,q)],slotExpirationTriggers:[new kA(M,q),new Xq(M,b)]};F=Object.assign({},v,{layoutExitNormalTriggers:[new Vc(M,F)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],z1:[],ww:new Map,clientMetadata:new Ii([new qR(I.HY), new ng(I.adPlacementConfig),u]),lT:ai(w,b)(v),adLayoutLoggingData:I.HY.adLayoutLoggingData});return Object.assign({},b,{clientMetadata:new Ii([new YY(F)])})}; Cxv=function(F,J){J=g.N(J);for(var b=J.next();!b.done;b=J.next())if(b=b.value,b.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var I=g.O(b.fulfillmentContent.fulfilledLayout,dc);if(I&&(I=g.O(I.renderingContent,fU))&&I.associatedPlayerBytesLayoutId===F)return b}}; N0o=function(F,J,b,I,u){var w=Q1m($8(F.slotEntryTrigger,b,I),u,F,J);if(w instanceof Z)return w;for(var M=[],q=g.N(F.slotFulfillmentTriggers),v=q.next();!v.done;v=q.next()){v=$8(v.value,b,I);if(v instanceof Z)return v;M.push(v)}M=RcJ(M,u,F,J);J=[];F=g.N(F.slotExpirationTriggers);for(u=F.next();!u.done;u=F.next()){u=$8(u.value,b,I);if(u instanceof Z)return u;J.push(u)}return{slotEntryTrigger:w,slotFulfillmentTriggers:M,slotExpirationTriggers:J}}; Q1m=function(F,J,b,I){return J&&b.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&F instanceof fi?new Nh(function(u){return Jc(I,u)},b.adSlotMetadata.slotId):F}; RcJ=function(F,J,b,I){return J&&b.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?F.map(function(u){return u instanceof DM?new cS(function(w){return Jc(I,w)},b.adSlotMetadata.slotId):u}):F}; tI=function(F,J,b){for(var I=[],u=g.N(F.layoutExitNormalTriggers||[]),w=u.next();!w.done;w=u.next()){w=$8(w.value,J,b);if(w instanceof Z)return w;I.push(w)}u=[];w=g.N(F.layoutExitSkipTriggers||[]);for(var M=w.next();!M.done;M=w.next()){M=$8(M.value,J,b);if(M instanceof Z)return M;u.push(M)}w=[];M=g.N(F.layoutExitMuteTriggers||[]);for(var q=M.next();!q.done;q=M.next()){q=$8(q.value,J,b);if(q instanceof Z)return q;w.push(q)}M=[];F=g.N(F.layoutExitUserInputSubmittedTriggers||[]);for(q=F.next();!q.done;q= F.next()){q=$8(q.value,J,b);if(q instanceof Z)return q;M.push(q)}return{layoutExitNormalTriggers:I,layoutExitSkipTriggers:u,layoutExitMuteTriggers:w,layoutExitUserInputSubmittedTriggers:M,z1:[]}}; HF=function(F){var J=g.O(F.renderingContent,me);if(J==null?0:J.pings)return Eh(J.pings);F=g.O(F.renderingContent,A1);return(F==null?0:F.skipPings)?new Map([["skip",F.skipPings]]):new Map}; T0z=function(F,J,b,I,u){J=g.O(J.renderingContent,me);if(!J)return new Z("Invalid rendering content for DAI media layout");F=[new Jp(I),new WM(b.DO.videoLengthSeconds),new dT(b.DO.playerVars),new Gu(b.Q8),new VD(b.V9),new PM(b.GQ),new ng(Zp(F)),new FA(b.DO.adVideoId),new t$(b.LL),J.sodarExtensionData&&new jK(J.sodarExtensionData),new zu({current:null}),new BM({}),new cM(dq(J.pings))].filter(zcv);u!==void 0&&F.push(new SK(u));return F}; B0z=function(F,J,b){F=F.map(function(v){return ok(g.O(v.renderingContent,me),!1)}); var I=F.map(function(v){return v.videoLengthSeconds}),u=I.map(function(v,a){return new lg(a,I)}),w=J,M=b,q=[]; F.forEach(function(v,a){M=Math.min(w+v.videoLengthSeconds*1E3,b);CU(v.playerVars,u[a]);q.push({DO:v,Q8:w,V9:M,GQ:a,LL:u[a]});w=M}); return q}; r$k=function(F,J,b){for(var I=[],u=g.N(F),w=u.next();!w.done;w=u.next())if(w=g.O(w.value.renderingContent,me)){if(!ME(w))return new Z("Invalid vod media renderer");I.push(Dsz(w))}u=I.map(function(K){return K.N$}); w=[];for(var M=0,q=0;q0?F7:-1;else if(l=g.O(L,A1)){L=Hga(F,J,b,l,w,f,q,n,F7);if(L instanceof Z){m= L;break a}L=L(p);d.push(L.Kd);G=[].concat(g.W(L.EY),g.W(G));P=[].concat(g.W(L.D2),g.W(P));L.ya&&(AJ=[L.ya].concat(g.W(AJ)))}else if(l=g.O(L,iM)){if(m===void 0){m=new Z("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:l});break a}L=Jpz(F,J,b,w,l,t,q,m,f,Un(e,"supports_multi_step_on_desktop"));if(L instanceof Z){m=L;break a}L=L(p);d.push(L.Kd);L.ya&&AJ.push(L.ya);G=[].concat(g.W(L.EY),g.W(G));P=[].concat(g.W(L.D2),g.W(P));r=[].concat(g.W(L.cC),g.W(r)); Q=[].concat(g.W(L.bl),g.W(Q));D=[t].concat(g.W(D))}else if(L=g.O(L,zX)){L=bKa(F,J,b,w,L,t,q,f);if(L instanceof Z){m=L;break a}L=L(p);d.push(L.Kd);L.ya&&AJ.push(L.ya);P=[].concat(g.W(L.D2),g.W(P))}else{m=new Z("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}m={Ag:d,layoutExitSkipTriggers:G,layoutExitUserInputSubmittedTriggers:r,z1:Q,layoutExitMuteTriggers:P,nO:D,Qk:AJ}}}else a:if(f=at3(I,b,e),f instanceof Z)m=f;else{d=0;G=[];P=[];r=[];Q=[];D=[];t=[];n=new NR({current:null});uk=new Lg({current:null}); AJ=!1;h=[];F7=-1;y=g.N(I);for(L=y.next();!L.done;L=y.next())if(L=L.value,g.O(L,yB)){L=LT_(J,b,g.O(L,yB),q);if(L instanceof Z){m=L;break a}L=L(p);G.push(L.Kd);P=[].concat(g.W(L.EY),g.W(P));r=[].concat(g.W(L.D2),g.W(r));L.ya&&(h=[L.ya].concat(g.W(h)))}else if(g.O(L,me)){F7=hI(g.O(L,me),b,e);if(F7 instanceof bL){m=new Z(F7);break a}L=new lg(d,f);L=exk(J,F7.layoutId,F7.xs,b,cF(F7.playerVars,F7.L_,M,a,L),F7.N$,w,L,q(p),uk,v.get(F7.xs.externalVideoId),void 0,K);d++;G.push(L.Kd);P=[].concat(g.W(L.EY),g.W(P)); r=[].concat(g.W(L.D2),g.W(r));AJ||(t.push(uk),AJ=!0);F7=(F7=F7.xs.adPodSkipTarget)&&F7>0?F7:-1}else if(g.O(L,A1)){L=Hga(F,J,b,g.O(L,A1),w,d,q,uk,F7);if(L instanceof Z){m=L;break a}L=L(p);G.push(L.Kd);P=[].concat(g.W(L.EY),g.W(P));r=[].concat(g.W(L.D2),g.W(r));L.ya&&(h=[L.ya].concat(g.W(h)))}else if(g.O(L,iM)){if(m===void 0){m=new Z("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.O(L,iM)});break a}L=Jpz(F,J,b,w,g.O(L,iM),n,q,m,d,Un(e,"supports_multi_step_on_desktop")); if(L instanceof Z){m=L;break a}L=L(p);G.push(L.Kd);L.ya&&h.push(L.ya);P=[].concat(g.W(L.EY),g.W(P));r=[].concat(g.W(L.D2),g.W(r));Q=[].concat(g.W(L.cC),g.W(Q));D=[].concat(g.W(L.bl),g.W(D));t=[n].concat(g.W(t))}else if(g.O(L,zX)){L=bKa(F,J,b,w,g.O(L,zX),n,q,d);if(L instanceof Z){m=L;break a}L=L(p);G.push(L.Kd);L.ya&&h.push(L.ya);r=[].concat(g.W(L.D2),g.W(r))}else{m=new Z("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}m={Ag:G,layoutExitSkipTriggers:P,layoutExitUserInputSubmittedTriggers:Q, z1:D,layoutExitMuteTriggers:r,nO:t,Qk:h}}m instanceof Z?p=m:(D=p.slotId,f=m.Ag,d=m.layoutExitSkipTriggers,G=m.layoutExitMuteTriggers,P=m.layoutExitUserInputSubmittedTriggers,r=m.nO,p=q(p),Q=u?u.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",D=u?u.layoutId:xX(J.U.get(),Q,D),t={layoutId:D,layoutType:Q,BN:"core"},p={layout:{layoutId:D,layoutType:Q,ww:new Map,layoutExitNormalTriggers:[new Ci(J.C,D)],layoutExitSkipTriggers:d,layoutExitMuteTriggers:G,layoutExitUserInputSubmittedTriggers:P,z1:[],BN:"core", clientMetadata:new Ii([new lQ(f)].concat(g.W(r))),lT:p(t)},Qk:m.Qk});return p}}; at3=function(F,J,b){var I=[];F=g.N(F);for(var u=F.next();!u.done;u=F.next())if(u=u.value,g.O(u,me)){u=hI(g.O(u,me),J,b);if(u instanceof bL)return new Z(u);I.push(u.N$)}return I}; pMk=function(F,J,b,I,u,w,M,q){if(!zMC(b,q===void 0?!1:q))return new Z("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:b});var v=Dp(b);if(v<=0)return new Z("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:b});var a=new NR({current:null}),e=kc7(F,J,b,a,I,w,M);return Ks_(F,I,w,v,u,function(K,p){var m=K.slotId,y=k8(b);K=M(K);var f,d=(f=ww(J,I,b.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?f: xX(J.U.get(),"LAYOUT_TYPE_MEDIA_BREAK",m);m={layoutId:d,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",BN:"core"};f=e(d,p);var G=uL(f.clientMetadata,"metadata_type_fulfilled_layout");G||q_("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");y=[new ng(I),new Rd(v),new Ot(y),a];G&&y.push(new ms(G.layoutType));return{DWj:{layoutId:d,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",ww:new Map,layoutExitNormalTriggers:[new Ci(J.C,d)],layoutExitSkipTriggers:[new RS(J.C, p.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new xA(J.C,p.layoutId)],z1:[],BN:"core",clientMetadata:new Ii(y),lT:K(m)},HWW:f}})}; gYa=function(F){if(!fyz(F))return!1;var J=g.O(F.adVideoStart,an);return J?g.O(F.linearAd,me)&&uM(J)?!0:(q_("Invalid Sandwich with notify"),!1):!1}; mRY=function(F){if(F.linearAds==null)return!1;F=g.O(F.adStart,an);return F?uM(F)?!0:(q_("Invalid LASR with notify"),!1):!1}; yp_=function(F){if(!lyC(F))return!1;F=g.O(F.adStart,an);return F?uM(F)?!0:(q_("Invalid LASR with notify"),!1):!1}; ey=function(F,J,b,I,u,w,M,q,v,a){this.Z=F;this.U=J;this.C=b;this.uR=I;this.P1=u;this.T=w;this.OQ=M;this.M_=q;this.oH=v;this.loadPolicy=a===void 0?1:a}; GcG=function(F,J,b,I,u,w,M,q,v,a){var e=[];if(J.length===0&&I.length===0&&b.length===0)return e;J=J.filter(wc);var K=b.filter(mJ_),p=I.filter(wc),m=new Map,y=ig3(J),f=b.some(function(c){var Da;return(c==null?void 0:(Da=c.adSlotMetadata)==null?void 0:Da.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),d=b.some(function(c){var Da; return(c==null?void 0:(Da=c.adSlotMetadata)==null?void 0:Da.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),G=b.some(function(c){var Da; return(c==null?void 0:(Da=c.adSlotMetadata)==null?void 0:Da.slotType)==="SLOT_TYPE_IN_PLAYER"}),P=b.some(function(c){var Da,fz; return(c==null?void 0:(Da=c.adSlotMetadata)==null?void 0:Da.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(c==null?void 0:(fz=c.adSlotMetadata)==null?void 0:fz.slotType)==="SLOT_TYPE_ABOVE_FEED"}); b=b.some(function(c){var Da;return(c==null?void 0:(Da=c.adSlotMetadata)==null?void 0:Da.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); if(f||d||G||P||b)a=j1J(K,J,q,u,y,F.P1.get(),F.loadPolicy,m,F.uR.get(),F.Z.get(),G,M,v,a),a instanceof Z?q_(a,void 0,void 0,{contentCpn:u}):e.push.apply(e,g.W(a));a=g.N(J);for(b=a.next();!b.done;b=a.next())b=b.value,d=iKz(F,m,b,u,w,M,f,q,y,v,K),d instanceof Z?q_(d,void 0,void 0,{renderer:b.renderer,config:b.config.adPlacementConfig,kind:b.config.adPlacementConfig.kind,contentCpn:u,daiEnabled:M}):e.push.apply(e,g.W(d));zxo(F.uR.get())||(w=NT3(F,p,u,q,y,m),e.push.apply(e,g.W(w)));if(F.T===null||M&&!q.yg){var r, Q,D;F=q.MW&&J.length===1&&((r=J[0].config)==null?void 0:(Q=r.adPlacementConfig)==null?void 0:Q.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((D=J[0].renderer)==null?void 0:D.adBreakServiceRenderer);if(!e.length&&!F){var t,n,uk,AJ;q_("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":J.length,contentCpn:u,"first APR kind":(t=J[0])==null?void 0:(n=t.config)==null?void 0:(uk=n.adPlacementConfig)==null?void 0:uk.kind,renderer:(AJ=J[0])==null?void 0: AJ.renderer})}return e}r=I.filter(wc);e.push.apply(e,g.W(QWv(m,r,F.U.get(),F.T,u,f)));if(!e.length){var F7,h,L,l;q_("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":J.length,contentCpn:u,daiEnabled:M.toString(),"first APR kind":(F7=J[0])==null?void 0:(h=F7.config)==null?void 0:(L=h.adPlacementConfig)==null?void 0:L.kind,renderer:(l=J[0])==null?void 0:l.renderer})}return e}; NT3=function(F,J,b,I,u,w){function M(p){return ai(F.P1.get(),p)} var q=[];J=g.N(J);for(var v=J.next();!v.done;v=J.next()){v=v.value;var a=v.renderer,e=a.sandwichedLinearAdRenderer,K=a.linearAdSequenceRenderer;e&&gYa(e)?(q_("Found AdNotify with SandwichedLinearAdRenderer"),K=g.O(e.adVideoStart,an),e=g.O(e.linearAd,me),Xj(w,a,v.config.adPlacementConfig.kind),a=void 0,K=A$4((a=K)==null?void 0:a.layout.layoutId,F.U.get(),F.C.get(),v.config.adPlacementConfig,v.adSlotLoggingData,e,b,I,M,u,F.loadPolicy,F.uR.get(),F.P1.get()),K instanceof Z?q_(K):q.push.apply(q,g.W(K))): K&&(!K.adLayoutMetadata&&mRY(K)||K.adLayoutMetadata&&yp_(K))&&(q_("Found AdNotify with LinearAdSequenceRenderer"),Xj(w,a,v.config.adPlacementConfig.kind),a=void 0,e=It4((a=g.O(K.adStart,an))==null?void 0:a.layout.layoutId,F.U.get(),F.C.get(),v.config.adPlacementConfig,v.adSlotLoggingData,K.linearAds,ZM(K.adLayoutMetadata)?K.adLayoutMetadata:void 0,b,I,M,u,F.loadPolicy,F.uR.get()),e instanceof Z?q_(e):q.push.apply(q,g.W(e)))}return q}; iKz=function(F,J,b,I,u,w,M,q,v,a,e){function K(G){return ai(F.P1.get(),G)} var p=b.renderer,m=b.config.adPlacementConfig,y=m.kind,f=b.adSlotLoggingData,d=q.yg&&y==="AD_PLACEMENT_KIND_START";d=w&&!d;if(p.adsEngagementPanelRenderer!=null)return Rk(J,b.elementId,y,p.adsEngagementPanelRenderer.isContentVideoEngagementPanel,p.adsEngagementPanelRenderer.adVideoId,p.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,m,f,function(G,P,r,Q){var D=F.C.get(),t=G.slotId,n=p.adsEngagementPanelRenderer;G=ai(F.P1.get(),G);return Km(D,t,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new Qo(n),P,r,n.impressionPings,G,p.adsEngagementPanelRenderer.adLayoutLoggingData,Q)}),[]; if(p.adsEngagementPanelLayoutViewModel)return Rk(J,b.elementId,y,p.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,p.adsEngagementPanelLayoutViewModel.adVideoId,p.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,m,f,function(G,P,r,Q){var D=F.C.get(),t=G.slotId,n=p.adsEngagementPanelLayoutViewModel;G=ai(F.P1.get(),G);return pm(D,t,"LAYOUT_TYPE_PANEL",new R1(n),P,r,G,p.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,Q)}),[]; if(p.actionCompanionAdRenderer!=null){if(p.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return sW_(F.U.get(),F.T,F.C.get(),p.actionCompanionAdRenderer,m,f,I,K);Rk(J,b.elementId,y,p.actionCompanionAdRenderer.isContentVideoCompanion,p.actionCompanionAdRenderer.adVideoId,p.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,m,f,function(G,P,r,Q){var D=F.C.get(),t=G.slotId,n=p.actionCompanionAdRenderer;G=ai(F.P1.get(),G);return Km(D,t,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new Cg(n),P,r,n.impressionPings,G,p.actionCompanionAdRenderer.adLayoutLoggingData,Q)})}else if(p.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(p.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return Yv3(F.U.get(),F.T,F.C.get(),p.topBannerImageTextIconButtonedLayoutViewModel,m,f,I,K); Rk(J,b.elementId,y,p.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,p.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,p.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,m,f,function(G,P,r,Q){var D=F.C.get(),t=G.slotId,n=p.topBannerImageTextIconButtonedLayoutViewModel;G=ai(F.P1.get(),G);return pm(D,t,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new XU(n),P,r,G,p.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,Q)})}else if(p.imageCompanionAdRenderer)Rk(J, b.elementId,y,p.imageCompanionAdRenderer.isContentVideoCompanion,p.imageCompanionAdRenderer.adVideoId,p.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,m,f,function(G,P,r,Q){var D=F.C.get(),t=G.slotId,n=p.imageCompanionAdRenderer; G=ai(F.P1.get(),G);return Km(D,t,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new o1(n),P,r,n.impressionPings,G,p.imageCompanionAdRenderer.adLayoutLoggingData,Q)}); else if(p.bannerImageLayoutViewModel)Rk(J,b.elementId,y,p.bannerImageLayoutViewModel.isContentVideoCompanion,p.bannerImageLayoutViewModel.adVideoId,p.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,m,f,function(G,P,r,Q){var D=F.C.get(),t=G.slotId,n=p.bannerImageLayoutViewModel;G=ai(F.P1.get(),G);return pm(D,t,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new h$(n),P,r,G,p.bannerImageLayoutViewModel.adLayoutLoggingData,Q)}); else if(p.shoppingCompanionCarouselRenderer)Rk(J,b.elementId,y,p.shoppingCompanionCarouselRenderer.isContentVideoCompanion,p.shoppingCompanionCarouselRenderer.adVideoId,p.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,m,f,function(G,P,r,Q){var D=F.C.get(),t=G.slotId,n=p.shoppingCompanionCarouselRenderer;G=ai(F.P1.get(),G);return Km(D,t,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new cP(n),P,r,n.impressionPings,G,p.shoppingCompanionCarouselRenderer.adLayoutLoggingData,Q)}); else if(p.adBreakServiceRenderer){if(!r3a(b))return[];if(y==="AD_PLACEMENT_KIND_PAUSE")return TEC(F.U.get(),m,f,b.renderer.adBreakServiceRenderer,I);if(y!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&y!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return BE_(F.U.get(),m,f,b.renderer.adBreakServiceRenderer,I,u,w);q.MW||q_("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:y,adPlacementConfig:m,daiEnabledForContentVideo:String(w),isServedFromLiveInfra:String(q.MW),clientPlaybackNonce:q.clientPlaybackNonce}); if(y==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!F.OQ)return new Z("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!F.oH)return new Z("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");F.oH.Ot({adPlacementRenderer:b,contentCpn:I,tN:u});u=F.OQ.get().getCurrentTimeSec(1,!1);return lt_(F.U.get(),b.renderer.adBreakServiceRenderer,m,u,I,f,w)}if(!F.M_)return new Z("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); F.M_.Ot({adPlacementRenderer:b,contentCpn:I,tN:u})}else{if(p.clientForecastingAdRenderer)return hc_(F.U.get(),F.C.get(),m,f,p.clientForecastingAdRenderer,I,u,K);if(p.invideoOverlayAdRenderer)return nGo(F.U.get(),F.C.get(),m,f,p.invideoOverlayAdRenderer,I,u,K);if(p.instreamAdPlayerOverlayRenderer)return Uso(F.U.get(),F.C.get(),m,f,p.instreamAdPlayerOverlayRenderer,I,K);if((p.linearAdSequenceRenderer||p.instreamVideoAdRenderer)&&d)return J$z(F.U.get(),F.C.get(),b,I,K,a,!F.uR.get().G.J().S("html5_override_ad_video_length_killswitch")); if(p.linearAdSequenceRenderer&&!d){if(M)return[];Xj(J,p,y);if(p.linearAdSequenceRenderer.adLayoutMetadata){if(!lyC(p.linearAdSequenceRenderer))return new Z("Received invalid LinearAdSequenceRenderer.")}else if(p.linearAdSequenceRenderer.linearAds==null)return new Z("Received invalid LinearAdSequenceRenderer.");if(g.O(p.linearAdSequenceRenderer.adStart,an)){q_("Found AdNotify in LinearAdSequenceRenderer");b=g.O(p.linearAdSequenceRenderer.adStart,an);if(!bQ4(b))return new Z("Invalid AdMessageRenderer."); w=p.linearAdSequenceRenderer.linearAds;return uA3(F.Z.get(),F.U.get(),F.C.get(),F.P1.get(),m,f,b,ZM(p.linearAdSequenceRenderer.adLayoutMetadata)?p.linearAdSequenceRenderer.adLayoutMetadata:void 0,w,I,u,q,K,v,F.loadPolicy,F.uR.get())}return vYz(F.U.get(),F.C.get(),m,f,p.linearAdSequenceRenderer.linearAds,ZM(p.linearAdSequenceRenderer.adLayoutMetadata)?p.linearAdSequenceRenderer.adLayoutMetadata:void 0,I,u,q,K,v,F.loadPolicy,F.uR.get(),e)}if(!p.remoteSlotsRenderer||w){if(p.instreamVideoAdRenderer&& !d){if(M)return[];Xj(J,p,y);return KT4(F.U.get(),F.C.get(),m,f,p.instreamVideoAdRenderer,I,u,q,K,v,F.loadPolicy,F.uR.get(),F.P1.get(),e)}if(p.instreamSurveyAdRenderer)return pMk(F.U.get(),F.C.get(),p.instreamSurveyAdRenderer,m,f,I,K,Un(F.uR.get(),"supports_multi_step_on_desktop"));if(p.sandwichedLinearAdRenderer!=null)return fyz(p.sandwichedLinearAdRenderer)?g.O(p.sandwichedLinearAdRenderer.adVideoStart,an)?(q_("Found AdNotify in SandwichedLinearAdRenderer"),b=g.O(p.sandwichedLinearAdRenderer.adVideoStart, an),bQ4(b)?(w=g.O(p.sandwichedLinearAdRenderer.linearAd,me))?qHa(b,w,m,F.Z.get(),F.U.get(),F.C.get(),F.P1.get(),f,I,u,q,K,v,F.loadPolicy,F.uR.get()):new Z("Missing IVAR from Sandwich"):new Z("Invalid AdMessageRenderer.")):vYz(F.U.get(),F.C.get(),m,f,[p.sandwichedLinearAdRenderer.adVideoStart,p.sandwichedLinearAdRenderer.linearAd],void 0,I,u,q,K,v,F.loadPolicy,F.uR.get()):new Z("Received invalid SandwichedLinearAdRenderer.");if(p.videoAdTrackingRenderer!=null)return q=Un(F.uR.get(),"enable_h5_shorts_ad_terminal_events")&& q.yM,OgC(F.U.get(),F.C.get(),p.videoAdTrackingRenderer,m,f,I,u,q,K)}}return[]}; gw=function(F,J,b,I,u,w,M,q){g.R.call(this);var v=this;this.U=F;this.T=J;this.cV=I;this.OQ=u;this.uR=w;this.EQ=M;this.RC=q;this.C=null;b.get().addListener(this);this.addOnDisposeCallback(function(){b.iR()||b.get().removeListener(v)}); I.get().addListener(this);this.addOnDisposeCallback(function(){I.iR()||I.get().removeListener(v)})}; Wso=function(F,J,b){var I=F.OQ.get().getCurrentTimeSec(1,!1);F.uR.get().G.J().hJ()&&Lx(F.EQ.get(),"sdai","onopp.1;evt."+b.event+";start."+b.startSecs.toFixed(3)+";d."+b.Bg.toFixed(3));pd(F.U.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var u=F.T.get(),w=J.adPlacementRenderer.renderer.adBreakServiceRenderer,M=J.contentCpn,q=J.adPlacementRenderer.adSlotLoggingData,v=mz(F.uR.get()),a=F.EQ;if(u.uR.get().G.J().experiments.pW("enable_smearing_expansion_dai")){var e=g.eB(u.uR.get().G.J().experiments, "max_prefetch_window_sec_for_livestream_optimization");var K=g.eB(u.uR.get().G.J().experiments,"min_prefetch_offset_sec_for_livestream_optimization");v={TQ:fta(b),c_:!1,cueProcessedMs:I*1E3};var p=b.startSecs+b.Bg;if(I===0)v.kf=new f6(0,p*1E3);else{K=b.startSecs-K;var m=K-I;v.kf=m<=0?new f6(K*1E3,p*1E3):new f6(Math.floor(I+Math.random()*Math.min(m,e))*1E3,p*1E3)}e=v}else e={TQ:fta(b),c_:!1},p=b.startSecs+b.Bg,b.startSecs<=I?v=new f6((b.startSecs-4)*1E3,p*1E3):(K=Math.max(0,b.startSecs-I-10),v=new f6(Math.floor(I+ Math.random()*(v?I===0?0:Math.min(K,5):K))*1E3,p*1E3)),e.kf=v;u=Y8(u,w,M,e,q,[new fK(b)]);a.get().G.M5(e.kf.start/1E3-I,b.startSecs-I);return[u]})}; y6=function(F){var J,b=(J=uL(F.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:J.current;if(!b)return null;J=uL(F.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var I=F.layoutId,u=uL(F.clientMetadata,"metadata_type_content_cpn"),w=uL(F.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),M=uL(F.clientMetadata,"metadata_type_player_overlay_layout_renderer"),q=uL(F.clientMetadata,"metadata_type_player_underlay_renderer"),v=uL(F.clientMetadata, "metadata_type_ad_placement_config"),a=uL(F.clientMetadata,"metadata_type_video_length_seconds");var e=LK(F.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?uL(F.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):LK(F.clientMetadata,"metadata_type_layout_enter_ms")&&LK(F.clientMetadata,"metadata_type_layout_exit_ms")?(uL(F.clientMetadata,"metadata_type_layout_exit_ms")-uL(F.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Dq:I,contentCpn:u,AC:b,IT:J,instreamAdPlayerOverlayRenderer:w, playerOverlayLayoutRenderer:M,instreamAdPlayerUnderlayRenderer:q,adPlacementConfig:v,videoLengthSeconds:a,AE:e,inPlayerLayoutId:uL(F.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:uL(F.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; EYa=function(F,J){return dRz(F,J)}; jdk=function(F,J){J=dRz(F,J);if(!J)return null;var b;J.AE=(b=uL(F.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:b.adBreakRemainingLengthSeconds;return J}; dRz=function(F,J){var b,I=(b=uL(F.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:b.current;if(!I)return null;b=Ork(F,J);return{Rw:kho(F,J),adPlacementConfig:uL(F.clientMetadata,"metadata_type_ad_placement_config"),gP:b,contentCpn:uL(F.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:uL(F.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:uL(F.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:uL(F.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,AE:void 0,AC:I,Dq:F.layoutId,videoLengthSeconds:uL(F.clientMetadata,"metadata_type_video_length_seconds")}}; iS=function(F,J,b,I,u,w,M,q,v){g.R.call(this);this.Z=F;this.W=J;this.D=b;this.T=I;this.C=u;this.U=w;this.P1=M;this.uR=q;this.QG=v;this.Gn=!0}; Gua=function(F,J,b){return msa(F.C.get(),J.contentCpn,J.Dq,function(I){return y$z(F.U.get(),I.slotId,b,J.adPlacementConfig,J.Dq,ai(F.P1.get(),I))})}; z2=function(F,J,b,I,u,w,M,q){g.R.call(this);this.U=F;this.C=J;this.T=b;this.uR=I;this.Z=u;this.QG=w;this.OQ=M;this.qI=q}; N0=function(F){g.R.call(this);this.C=F}; pd=function(F,J,b,I){F.C().Y7(J,I);b=b();F=F.C();F.S3.Q4("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",J,I,b);J=g.N(b);for(b=J.next();!b.done;b=J.next())a:{I=F;b=b.value;I.S3.k0("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",b);I.S3.k0("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",b);try{var u=I.C;if(g.d5(b.slotId))throw new Z("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(Ne(u,b))throw new Z("Duplicate registration for slot.",{slotId:b.slotId,slotEntryTriggerType:b.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!u.JX.Y6.has(b.slotType))throw new Z("No fulfillment adapter factory registered for slot of type: "+b.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!u.JX.ud.has(b.slotType))throw new Z("No SlotAdapterFactory registered for slot of type: "+b.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");CT(u,"TRIGGER_CATEGORY_SLOT_ENTRY",b.slotEntryTrigger?[b.slotEntryTrigger]:[]);CT(u,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", b.slotFulfillmentTriggers);CT(u,"TRIGGER_CATEGORY_SLOT_EXPIRATION",b.slotExpirationTriggers);var w=I.C,M=b.slotType+"_"+b.slotPhysicalPosition,q=rX(w,M);if(Ne(w,b))throw new Z("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");q.set(b.slotId,new C$m(b));w.C.set(M,q)}catch(uk){uk instanceof Z&&uk.Ek?(I.S3.kK("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",uk.Ek,b),q_(uk,b,void 0,void 0,uk.Pm)):(I.S3.kK("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", b),q_(uk,b));break a}Ne(I.C,b).W=!0;try{var v=I.C,a=Ne(v,b),e=b.slotEntryTrigger,K=v.JX.Rn.get(e.triggerType);K&&(K.cS("TRIGGER_CATEGORY_SLOT_ENTRY",e,b,null),a.Gj.set(e.triggerId,K));for(var p=g.N(b.slotFulfillmentTriggers),m=p.next();!m.done;m=p.next()){var y=m.value,f=v.JX.Rn.get(y.triggerType);f&&(f.cS("TRIGGER_CATEGORY_SLOT_FULFILLMENT",y,b,null),a.Tj.set(y.triggerId,f))}for(var d=g.N(b.slotExpirationTriggers),G=d.next();!G.done;G=d.next()){var P=G.value,r=v.JX.Rn.get(P.triggerType);r&&(r.cS("TRIGGER_CATEGORY_SLOT_EXPIRATION", P,b,null),a.N.set(P.triggerId,r))}var Q=v.JX.Y6.get(b.slotType).get().build(v.T,b);a.V=Q;var D=v.JX.ud.get(b.slotType).get().build(v.D,b);D.init();a.U=D}catch(uk){uk instanceof Z&&uk.Ek?(I.S3.kK("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",uk.Ek,b),q_(uk,b,void 0,void 0,uk.Pm)):(I.S3.kK("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",b),q_(uk,b));yS(I,b,!0);break a}I.S3.k0("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",b);I.C.mu(b);for(var t=g.N(I.U),n=t.next();!n.done;n= t.next())n.value.mu(b);Wq(I,b)}}; lS=function(F,J,b,I,u){g.R.call(this);var w=this;this.U=F;this.T=J;this.h_=b;this.context=u;this.C=new Map;I.get().addListener(this);this.addOnDisposeCallback(function(){I.iR()||I.get().removeListener(w)})}; EF_=function(F,J){var b=0x8000000000000;var I=0;for(var u=g.N(J.slotFulfillmentTriggers),w=u.next();!w.done;w=u.next())w=w.value,w instanceof Sj?(b=Math.min(b,w.C.start),I=Math.max(I,w.C.end)):q_("Found unexpected fulfillment trigger for throttled slot.",J,null,{fulfillmentTrigger:w});I=new f6(b,I);b="throttledadcuerange:"+J.slotId;F.C.set(b,J);F.h_.get().addCueRange(b,I.start,I.end,!1,F);fF(F.context.uR.get())&&(J=I.start,I=I.end,u={},F.context.P9.Ck("tcrr",(u.cid=b,u.sm=J,u.em=I,u)))}; fm=function(){g.R.apply(this,arguments);this.Gn=!0;this.ML=new Map;this.C=new Map}; WN=function(F,J){F=g.N(F.ML.values());for(var b=F.next();!b.done;b=F.next())if(b.value.layoutId===J)return!0;return!1}; dw=function(F,J){F=g.N(F.C.values());for(var b=F.next();!b.done;b=F.next()){b=g.N(b.value);for(var I=b.next();!I.done;I=b.next())if(I=I.value,I.layoutId===J)return I}q_("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.d5(J)),layoutId:J})}; VKY=function(){this.C=new Map}; PQY=function(F,J){this.callback=F;this.slot=J}; Ep=function(){}; BT3=function(F,J,b){this.callback=F;this.slot=J;this.OQ=b}; TTY=function(F,J,b){this.callback=F;this.slot=J;this.OQ=b;this.U=!1;this.C=0}; rp3=function(F,J,b){this.callback=F;this.slot=J;this.OQ=b}; jy=function(F){this.OQ=F}; G2=function(F){g.R.call(this);this.HI=F;this.iT=new Map}; V6=function(F,J){for(var b=[],I=g.N(F.iT.values()),u=I.next();!u.done;u=I.next()){u=u.value;var w=u.trigger;w instanceof xA&&w.triggeringLayoutId===J&&b.push(u)}b.length?Pq(F.HI(),b):q_("Survey is submitted but no registered triggers can be activated.")}; PN=function(F,J,b){G2.call(this,F);var I=this;this.uR=b;J.get().addListener(this);this.addOnDisposeCallback(function(){J.iR()||J.get().removeListener(I)})}; BN=function(F){g.R.call(this);this.C=F;this.Gn=!0;this.iT=new Map;this.D=new Set;this.T=new Set;this.Z=new Set;this.W=new Set;this.U=new Set}; T2=function(F){g.R.call(this);this.C=F;this.iT=new Map}; rw=function(F,J){for(var b=[],I=g.N(F.iT.values()),u=I.next();!u.done;u=I.next())u=u.value,u.trigger.C===J.layoutId&&b.push(u);b.length&&Pq(F.C(),b)}; Sy=function(F,J,b){g.R.call(this);var I=this;this.C=F;this.context=b;this.iT=new Map;J.get().addListener(this);this.addOnDisposeCallback(function(){J.iR()||J.get().removeListener(I)})}; sp=function(F,J,b,I,u){g.R.call(this);var w=this;this.U=F;this.h_=J;this.OQ=b;this.QG=I;this.context=u;this.Gn=!0;this.iT=new Map;this.C=new Set;b.get().addListener(this);this.addOnDisposeCallback(function(){b.iR()||b.get().removeListener(w)})}; Stv=function(F,J,b,I,u,w,M,q,v,a){if(gM(F.QG.get(),1).clientPlaybackNonce!==v)throw new Z("Cannot register CueRange-based trigger for different content CPN",{trigger:b});F.iT.set(b.triggerId,{lh:new tb(J,b,I,u),cueRangeId:w});F.h_.get().addCueRange(w,M,q,a,F);fF(F.context.uR.get())&&(v={},F.context.P9.Ck("crr",(v.ca=J,v.tt=b.triggerType,v.st=I.slotType,v.lt=u==null?void 0:u.layoutType,v.cid=w,v.sm=M,v.em=q,v)))}; sdJ=function(F,J){F=g.N(F.iT.entries());for(var b=F.next();!b.done;b=F.next()){var I=g.N(b.value);b=I.next().value;I=I.next().value;if(J===I.cueRangeId)return b}return""}; Yf=function(F,J){g.R.call(this);var b=this;this.Z=F;this.U=new Map;this.T=new Map;this.C=null;J.get().addListener(this);this.addOnDisposeCallback(function(){J.iR()||J.get().removeListener(b)}); var I;this.C=((I=J.get().Hm)==null?void 0:I.slotId)||null}; YtY=function(F,J){var b=[];F=g.N(F.values());for(var I=F.next();!I.done;I=F.next())I=I.value,I.slot.slotId===J&&b.push(I);return b}; $f=function(F){g.R.call(this);this.C=F;this.Gn=!0;this.iT=new Map}; OR=function(F,J,b){J=J.layoutId;for(var I=[],u=g.N(F.iT.values()),w=u.next();!w.done;w=u.next())if(w=w.value,w.trigger instanceof Ci){var M;if(M=w.trigger.layoutId===J){M=b;var q=BQm.get(w.category);M=q?q===M:!1}M&&I.push(w)}I.length&&Pq(F.C(),I)}; Cm=function(F){g.R.call(this);this.C=F;this.Gn=!0;this.iT=new Map}; XZ=function(F,J,b,I,u){g.R.call(this);var w=this;this.D=F;this.cV=J;this.OQ=b;this.EQ=I;this.C=null;this.Gn=!0;this.iT=new Map;this.T=new Map;J.get().addListener(this);this.addOnDisposeCallback(function(){J.iR()||J.get().removeListener(w)}); u.get().addListener(this);this.addOnDisposeCallback(function(){u.iR()||u.get().removeListener(w)})}; CQG=function(F){F.C&&(F.U&&(F.U.stop(),F.U.start()),$RJ(F,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"))}; $RJ=function(F,J){for(var b=[],I=g.N(F.iT.values()),u=I.next();!u.done;u=I.next())u=u.value,u.trigger.triggerType===J&&b.push(u);b.length>0&&Pq(F.D(),b)}; Q6=function(F,J,b,I,u){u=u===void 0?!0:u;for(var w=[],M=g.N(F.iT.values()),q=M.next();!q.done;q=M.next()){q=q.value;var v=q.trigger;if(v.triggerType===J){if(v instanceof BS||v instanceof TJ||v instanceof sC){if(u&&v.breakDurationMs!==b)continue;if(!u&&v.breakDurationMs===b)continue;if(I.has(v.triggerId))continue}w.push(q)}}w.length>0&&Pq(F.D(),w)}; XMJ=function(F){F=F.adPlacementRenderer.config.adPlacementConfig;if(!F.prefetchModeConfig||!F.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;F=Number(F.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(F)||F<=0?0:Math.floor(Math.random()*F)}; Qdo=function(F){F=F.adPlacementRenderer.config.adPlacementConfig;if(F.prefetchModeConfig&&F.prefetchModeConfig.cacheFetchRefreshDurationMs&&(F=Number(F.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(F)||F<=0)))return F}; Rn=function(F){F.C=null;F.iT.clear();F.T.clear();F.U&&F.U.stop();F.Z&&F.Z.stop()}; DX=function(F){g.R.call(this);this.T=F;this.Gn=!0;this.iT=new Map;this.C=new Map;this.U=new Map}; Rxz=function(F,J){var b=[];if(J=F.C.get(J.layoutId)){J=g.N(J);for(var I=J.next();!I.done;I=J.next())(I=F.U.get(I.value.triggerId))&&b.push(I)}return b}; kf=function(F){g.R.call(this);this.C=F;this.iT=new Map}; DRa=function(F,J){for(var b=[],I=g.N(F.iT.values()),u=I.next();!u.done;u=I.next())u=u.value,u.trigger instanceof Nh&&u.trigger.slotId===J&&b.push(u);b.length>=1&&Pq(F.C(),b)}; kuk=function(F,J){var b={slotId:gq(J,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],BN:"surface",clientMetadata:new Ii([])},I=Object,u=I.assign;J=xX(J,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",b.slotId);J={layoutId:J,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",ww:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],z1:[],BN:"surface", clientMetadata:new Ii([]),lT:dYv(!1,b.slotId,b.slotType,b.slotPhysicalPosition,b.BN,b.slotEntryTrigger,b.slotFulfillmentTriggers,b.slotExpirationTriggers,J,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return u.call(I,{},F,{xfG:!0,slot:b,layout:J})}; PHz=function(F,J,b,I){var u=F.kind;I=I?!1:!F.hideCueRangeMarker;switch(u){case "AD_PLACEMENT_KIND_START":return I={TQ:new f6(-0x8000000000000,-0x8000000000000),c_:I},b!=null&&(I.kf=new f6(-0x8000000000000,-0x8000000000000)),I;case "AD_PLACEMENT_KIND_END":return I={TQ:new f6(0x7ffffffffffff,0x8000000000000),c_:I},b!=null&&(I.kf=new f6(Math.max(0,J-b),0x8000000000000)),I;case "AD_PLACEMENT_KIND_MILLISECONDS":u=F.adTimeOffset;u.offsetStartMilliseconds||q_("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); u.offsetEndMilliseconds||q_("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");F=Number(u.offsetStartMilliseconds);u=Number(u.offsetEndMilliseconds);u===-1&&(u=J);if(Number.isNaN(F)||Number.isNaN(u)||F>u)return new Z("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:F,offsetEndMs:u},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",u===J&&F-500<=u);I={TQ:new f6(F,u),c_:I};if(b!=null){F=Math.max(0,F-b);if(F===u)return I;I.kf=new f6(F,u)}return I; default:return new Z("AdPlacementKind not supported in convertToRange.",{kind:u,adPlacementConfig:F})}}; fta=function(F){var J=F.startSecs*1E3;return new f6(J,J+F.Bg*1E3)}; OK3=function(F){if(!F||!F.adPlacements&&!F.adSlots)return!1;for(var J=g.N(F.adPlacements||[]),b=J.next();!b.done;b=J.next())if(b=b.value)if(b=b.adPlacementRenderer,b!=null&&(b.config&&b.config.adPlacementConfig&&b.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;F=g.N(F.adSlots||[]);for(J=F.next();!J.done;J=F.next()){var I=b=void 0;if(((b=g.O(J.value,sx))==null?void 0:(I=b.adSlotMetadata)==null?void 0:I.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; Op=function(F){this.uR=F;this.U=new Map;this.C=new Map;this.T=new Map}; gq=function(F,J){if(on(F.uR.get())){var b=F.U.get(J)||0;b++;F.U.set(J,b);return J+"_"+b}return g.Nq(16)}; xX=function(F,J,b){if(on(F.uR.get())){var I=F.C.get(J)||0;I++;F.C.set(J,I);return b+"_"+J+"_"+I}return g.Nq(16)}; Jc=function(F,J){if(on(F.uR.get())){var b=F.T.get(J)||0;b++;F.T.set(J,b);return J+"_"+b}return g.Nq(16)}; oYv=function(F){var J=[new pK(F.Dq),new iQ(F.AC),new ng(F.adPlacementConfig),new WM(F.videoLengthSeconds),new QD(F.AE)];F.instreamAdPlayerOverlayRenderer&&J.push(new bQ(F.instreamAdPlayerOverlayRenderer));F.playerOverlayLayoutRenderer&&J.push(new Id(F.playerOverlayLayoutRenderer));F.IT&&J.push(new Lg(F.IT));return J}; hxm=function(F,J,b,I,u,w){F=b.inPlayerLayoutId?b.inPlayerLayoutId:xX(w,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",F);var M,q,v=b.instreamAdPlayerOverlayRenderer?(M=b.instreamAdPlayerOverlayRenderer)==null?void 0:M.adLayoutLoggingData:(q=b.playerOverlayLayoutRenderer)==null?void 0:q.adLayoutLoggingData;M={layoutId:F,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",BN:J};return{layoutId:F,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",ww:new Map,layoutExitNormalTriggers:[new Vc(function(a){return Jc(w, a)},b.Dq)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],z1:[],BN:J,clientMetadata:I,lT:u(M),adLayoutLoggingData:v}}; hc=function(F,J){var b=this;this.U=F;this.uR=J;this.C=function(I){return Jc(b.U.get(),I)}}; y$z=function(F,J,b,I,u,w){b=new Ii([new uQ(b),new ng(I)]);J=xX(F.U.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",J);I={layoutId:J,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",BN:"core"};return{layoutId:J,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",ww:new Map,layoutExitNormalTriggers:[new Vc(function(M){return Jc(F.U.get(),M)},u)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],z1:[],BN:"core",clientMetadata:b,lT:w(I),adLayoutLoggingData:void 0}}; Ux=function(F,J,b,I,u){var w=oYv(I);return hxm(J,b,I,new Ii(w),u,F.U.get())}; cp3=function(F,J,b,I,u){var w=oYv(I);w.push(new UH(I.Rw));w.push(new xG(I.gP));return hxm(J,b,I,new Ii(w),u,F.U.get())}; Km=function(F,J,b,I,u,w,M,q,v,a){J=xX(F.U.get(),b,J);var e={layoutId:J,layoutType:b,BN:"core"},K=new Map;M&&K.set("impression",M);M=[new YA(F.C,u,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];a&&M.push(new GJ(F.C,a,["normal"]));return{layoutId:J,layoutType:b,ww:K,layoutExitNormalTriggers:M,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],z1:[],BN:"core",clientMetadata:new Ii([I,new ng(w),new pK(u)]),lT:q(e),adLayoutLoggingData:v}}; pm=function(F,J,b,I,u,w,M,q,v){J=xX(F.U.get(),b,J);var a={layoutId:J,layoutType:b,BN:"core"},e=[new YA(F.C,u,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];v&&e.push(new GJ(F.C,v,["normal"]));return{layoutId:J,layoutType:b,ww:new Map,layoutExitNormalTriggers:e,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],z1:[],BN:"core",clientMetadata:new Ii([I,new ng(w),new pK(u)]),lT:M(a),adLayoutLoggingData:q}}; In=function(F,J,b){var I=[];I.push(new $A(F.C,b));J&&I.push(J);return I}; bS=function(F,J,b,I,u,w,M){var q={layoutId:J,layoutType:b,BN:"core"};return{layoutId:J,layoutType:b,ww:new Map,layoutExitNormalTriggers:M,layoutExitSkipTriggers:[new WS(F.C,J)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],z1:[],BN:"core",clientMetadata:new Ii([new OH(I),new ng(u)]),lT:w(q),adLayoutLoggingData:I.adLayoutLoggingData}}; Ox=function(F,J,b,I,u,w,M,q){var v={layoutId:J,layoutType:w,BN:"core"};return{layoutId:J,layoutType:w,ww:new Map,layoutExitNormalTriggers:[new Vc(F.C,b)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],z1:[],BN:"core",clientMetadata:new Ii([new ng(I)].concat(g.W(M))),lT:u(v),adLayoutLoggingData:q}}; ww=function(F,J,b,I){if(F.uR.get().f7(J.kind==="AD_PLACEMENT_KIND_START"))if(b===void 0)q_("Expected SSAP layout ID in renderer",void 0,void 0,{caller:I});else return b}; tka=function(F,J,b,I,u,w,M,q,v,a,e,K,p){F=uS(F,J,b,u,w,M,q,v,K,ww(F,b,I.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),p);J=F.nO;b=new gT(F.gS);I=F.layoutExitSkipTriggers;a>0&&(J.push(b),J.push(new HP(a)),I=[]);J.push(new Z5(e));return{Kd:{layoutId:F.layoutId,layoutType:F.layoutType,ww:F.ww,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],z1:[],BN:F.BN,clientMetadata:new Ii(J),lT:F.lT,adLayoutLoggingData:F.adLayoutLoggingData}, EY:I,D2:F.layoutExitMuteTriggers,cC:F.layoutExitUserInputSubmittedTriggers,bl:F.z1,ya:F.ya}}; Fs7=function(F,J,b,I,u,w,M,q,v,a){J=uS(F,J,b,I,w,new Map,M,function(e){return q(e,v)},void 0,ww(F,b,u.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); F=new xA(F.C,J.gS);b=new gT(J.gS);a=new Z5(a);return{Kd:{layoutId:J.layoutId,layoutType:J.layoutType,ww:J.ww,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],z1:[],BN:J.BN,clientMetadata:new Ii([].concat(g.W(J.nO),[b,a])),lT:J.lT,adLayoutLoggingData:J.adLayoutLoggingData},EY:J.layoutExitSkipTriggers,D2:J.layoutExitMuteTriggers,cC:[].concat(g.W(J.layoutExitUserInputSubmittedTriggers),[F]),bl:J.z1,ya:J.ya}}; uS=function(F,J,b,I,u,w,M,q,v,a,e){J=a!=null?a:xX(F.U.get(),"LAYOUT_TYPE_MEDIA_BREAK",J);a={layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",BN:"adapter"};q=q(J);var K=uL(q.clientMetadata,"metadata_type_fulfilled_layout");K||q_("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var p=K?K.layoutId:"";b=[new ng(b),new Rd(I),new Ot(u)];K&&b.push(new ms(K.layoutType));e&&b.push(new PM(e));return{layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", ww:w,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new RS(F.C,p)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],z1:[],BN:"adapter",nO:b,lT:M(a),adLayoutLoggingData:v,ya:q,gS:p}}; pPz=function(F,J,b,I,u,w,M,q,v,a,e){F=URa(F,J,"core",b,I,u,w,M,q,v,a,void 0,e);return{layoutId:F.layoutId,layoutType:F.layoutType,ww:F.ww,layoutExitNormalTriggers:F.layoutExitNormalTriggers,layoutExitSkipTriggers:F.layoutExitSkipTriggers,layoutExitMuteTriggers:F.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:F.layoutExitUserInputSubmittedTriggers,z1:F.z1,BN:F.BN,clientMetadata:new Ii(F.lj),lT:F.lT,adLayoutLoggingData:F.adLayoutLoggingData}}; exk=function(F,J,b,I,u,w,M,q,v,a,e,K,p){J=URa(F,J,"adapter",b,I,u,w,M,q,v,e,K,p);I=J.layoutExitSkipTriggers;u=J.lj;b.adPodSkipTarget&&b.adPodSkipTarget>0&&(u.push(a),u.push(new HP(b.adPodSkipTarget)),I=[]);u.push(new Z5(q.adPodIndex));b.isCritical&&(I=[new GJ(F.C,J.layoutId,["error"])].concat(g.W(I)));return{Kd:{layoutId:J.layoutId,layoutType:J.layoutType,ww:J.ww,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],z1:[],BN:J.BN,clientMetadata:new Ii(u), lT:J.lT,adLayoutLoggingData:J.adLayoutLoggingData},EY:I,D2:J.layoutExitMuteTriggers,cC:J.layoutExitUserInputSubmittedTriggers,bl:J.z1}}; URa=function(F,J,b,I,u,w,M,q,v,a,e,K,p){var m={layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA",BN:b};u=[new ng(u),new t$(v),new FA(I.externalVideoId),new Jp(q),new Ot({impressionCommands:I.impressionCommands,abandonCommands:I.onAbandonCommands,completeCommands:I.completeCommands,progressCommands:I.adVideoProgressCommands}),new dT(w),new zu({current:null}),new WM(M)];(w=I.playerOverlay.instreamAdPlayerOverlayRenderer)&&u.push(new bQ(w));(M=I.playerOverlay.playerOverlayLayoutRenderer)&&u.push(new Id(M)); K&&u.push(new Et(K));(K=I.playerUnderlay)&&u.push(new uQ(K));q=gq(F.U.get(),"SLOT_TYPE_IN_PLAYER");K=(K=w?w.elementId:M==null?void 0:M.layoutId)?K:xX(F.U.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",q);u.push(new gT(K));u.push(new yD(q));u.push(new PM(v.adPodIndex));I.adNextParams&&u.push(new D5(I.adNextParams));I.shrunkenPlayerBytesConfig&&u.push(new Ap(I.shrunkenPlayerBytesConfig));I.clickthroughEndpoint&&u.push(new kG(I.clickthroughEndpoint));I.legacyInfoCardVastExtension&&u.push(new Dt(I.legacyInfoCardVastExtension)); I.sodarExtensionData&&u.push(new jK(I.sodarExtensionData));e&&u.push(new XA(e));u.push(new cM(dq(I.pings)));v=Eh(I.pings);if(p){a:{p=g.N(p);for(e=p.next();!e.done;e=p.next())if(e=e.value,e.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(w=g.O(e.fulfillmentContent.fulfilledLayout,dc))&&(w=g.O(w.renderingContent,fU))&&w.associatedPlayerBytesLayoutId===J){p=e;break a}p=void 0}p&&u.push(new wT(p))}return{layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA",ww:v,layoutExitNormalTriggers:[new Ci(F.C,J)],layoutExitSkipTriggers:I.skipOffsetMilliseconds? [new RS(F.C,K)]:[],layoutExitMuteTriggers:[new RS(F.C,K)],layoutExitUserInputSubmittedTriggers:[],z1:[],BN:b,lj:u,lT:a(m),adLayoutLoggingData:I.adLayoutLoggingData}}; I5C=function(F,J,b,I,u,w,M,q,v){I.every(function(e){return Fu(e,[],["LAYOUT_TYPE_MEDIA"])})||q_("Unexpect subLayout type for DAI composite layout"); J=xX(F.U.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",J);var a={layoutId:J,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",BN:"core"};return{layoutId:J,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",ww:new Map,layoutExitNormalTriggers:[new PS(F.C)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],z1:[],BN:"core",clientMetadata:new Ii([new Gu(b),new VD(q),new lQ(I),new ng(u),new SK(w),new BM({}),new xY(v)]),lT:M(a)}}; HQm=function(F){return F!=null}; cN=function(F,J,b){var I=this;this.U=F;this.T=J;this.uR=b;this.C=function(u){return Jc(I.U.get(),u)}}; lt_=function(F,J,b,I,u,w,M){if(!b.prefetchModeConfig)return new Z("AdPlacementConfig for Live Prefetch is missing prefetch_config");b=b.prefetchModeConfig;I*=1E3;var q=[];if(!b.breakLengthMs)return new Z("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var v=g.N(b.breakLengthMs),a=v.next();!a.done;a=v.next())if(a=a.value,Number(a)>0){var e=I+Number(b.startTimeOffsetMs),K=e+Number(b.cacheFetchSmearingDurationMs);a={TQ:new f6(K,K+Number(a)),c_:!1,kf:new f6(Math.floor(e+Math.random()* Number(b.cacheFetchSmearingDurationMs)),K),cueProcessedMs:I?I:e};e=[];e.push(new HM({}));K=[];K.push(new Qc(F.C));K.push(new okC(F.C));M&&e.push(new BM({}));q.push(Y8(F,J,u,a,w,e,K))}return q}; Y8=function(F,J,b,I,u,w,M){w=w===void 0?[]:w;M=M===void 0?[]:M;var q=gq(F.U.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),v=[];M=g.N(M);for(var a=M.next();!a.done;a=M.next())v.push(a.value);I.kf&&I.kf.start!==I.TQ.start&&v.push(new Sj(F.C,b,new f6(I.kf.start,I.TQ.start),!1));v.push(new Sj(F.C,b,new f6(I.TQ.start,I.TQ.end),I.c_));I={getAdBreakUrl:J.getAdBreakUrl,F1:I.TQ.start,xI:I.TQ.end,cueProcessedMs:I.cueProcessedMs};J=new oS(F.C,q);w=[new $Y(I)].concat(g.W(w));return{slotId:q,slotType:"SLOT_TYPE_AD_BREAK_REQUEST", slotPhysicalPosition:1,slotEntryTrigger:J,slotFulfillmentTriggers:v,slotExpirationTriggers:[new Xq(F.C,b),new kA(F.C,q),new OC(F.C,q)],BN:"core",clientMetadata:new Ii(w),adSlotLoggingData:u}}; nYG=function(F,J,b){var I=[];b=g.N(b);for(var u=b.next();!u.done;u=b.next())I.push(xRo(F,J,u.value));return I}; xRo=function(F,J,b){return b.triggeringSlotId!=null&&b.triggeringSlotId===F?b.clone(J):b}; DJm=function(F,J,b,I,u){return tKv(F,J,b,I,u)}; Zgv=function(F,J,b,I){var u=gq(F.U.get(),"SLOT_TYPE_IN_PLAYER");return tKv(F,u,J,b,I)}; tKv=function(F,J,b,I,u){var w=new jj(F.C,b),M=[new DM(F.C,J)];F=[new kA(F.C,J),new Xq(F.C,I)];return{slotId:J,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:w,slotFulfillmentTriggers:M,slotExpirationTriggers:F,BN:"core",clientMetadata:new Ii([new YY(u({slotId:J,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,BN:"core",slotEntryTrigger:w,slotFulfillmentTriggers:M,slotExpirationTriggers:F},b))]),adSlotLoggingData:void 0}}; Ks_=function(F,J,b,I,u,w){var M=gq(F.U.get(),"SLOT_TYPE_PLAYER_BYTES"),q=gq(F.U.get(),"SLOT_TYPE_IN_PLAYER"),v=xX(F.U.get(),"LAYOUT_TYPE_SURVEY",q);I=Up(F,J,b,I);var a=[new DM(F.C,M)];b=[new kA(F.C,M),new Xq(F.C,b),new WS(F.C,v)];if(I instanceof Z)return I;q=w({slotId:M,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,BN:"core",slotEntryTrigger:I,slotFulfillmentTriggers:a,slotExpirationTriggers:b},{slotId:q,layoutId:v});w=q.DWj;q=q.HWW;return[{slotId:M,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:Ac(F,J,M,I),slotFulfillmentTriggers:q0(F,J,M,a),slotExpirationTriggers:b,BN:"core",clientMetadata:new Ii([new YY(w),new nK(vN(J)),new Zt({gt:F.gt(J)})]),adSlotLoggingData:u},q]}; vN=function(F){return F.kind==="AD_PLACEMENT_KIND_START"}; gGY=function(F,J,b,I,u){u=u?u:gq(F.U.get(),"SLOT_TYPE_IN_PLAYER");b=new jj(F.C,b);var w=[new DM(F.C,u)];F=[new Xq(F.C,J),new kA(F.C,u)];return{slotId:u,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:w,slotExpirationTriggers:F,BN:"core",clientMetadata:new Ii([new YY(I({slotId:u,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,BN:"core",slotEntryTrigger:b,slotFulfillmentTriggers:w,slotExpirationTriggers:F}))])}}; msa=function(F,J,b,I){var u=gq(F.U.get(),"SLOT_TYPE_PLAYER_UNDERLAY");b=new jj(F.C,b);var w=[new DM(F.C,u)];F=[new Xq(F.C,J),new kA(F.C,u)];return{slotId:u,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:w,slotExpirationTriggers:F,BN:"core",clientMetadata:new Ii([new YY(I({slotId:u,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,BN:"core",slotEntryTrigger:b,slotFulfillmentTriggers:w,slotExpirationTriggers:F}))])}}; Mkv=function(F,J,b,I,u,w,M){var q=gq(F.U.get(),"SLOT_TYPE_IN_PLAYER"),v=xX(F.U.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",q);I=ZKa(F,I,w,M,v);if(I instanceof Z)return I;M=[new DM(F.C,q)];u=[new Xq(F.C,w),new DM(F.C,u),new UC(F.C,u)];b=ai(b,{slotId:q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,BN:"core",slotEntryTrigger:I,slotFulfillmentTriggers:M,slotExpirationTriggers:u});F=F.T.get();w={layoutId:v,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",BN:"core"};J={layoutId:v,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", ww:new Map,layoutExitNormalTriggers:[new HpJ(F.C,v,J.durationMs)],layoutExitSkipTriggers:[new F_z(F.C,v,J.durationMs)],z1:[new LKz(F.C,v)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],BN:"core",clientMetadata:new Ii([new kY(J)]),lT:b(w)};return{slotId:q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,BN:"core",slotEntryTrigger:I,slotFulfillmentTriggers:M,slotExpirationTriggers:u,clientMetadata:new Ii([new YY(J)])}}; xs7=function(F,J,b,I,u,w){J=Up(F,J,b,I);if(J instanceof Z)return J;var M=J instanceof Sj?new nkY(F.C,b,J.C):null;I=gq(F.U.get(),"SLOT_TYPE_IN_PLAYER");var q=[new DM(F.C,I)];F=[new Xq(F.C,b),new kA(F.C,I)];w=w({slotId:I,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,BN:"core",slotEntryTrigger:J,slotFulfillmentTriggers:q,slotExpirationTriggers:F},M);return w instanceof bL?new Z(w):{slotId:I,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:J,slotFulfillmentTriggers:q,slotExpirationTriggers:F, BN:"core",clientMetadata:new Ii([new YY(w)]),adSlotLoggingData:u}}; c$3=function(F,J,b,I){var u=gq(F.U.get(),"SLOT_TYPE_IN_PLAYER"),w=new fi(F.C,J),M=[new cS(F.C,u)];F=[new Xq(F.C,J),new kA(F.C,u)];return{slotId:u,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:w,slotFulfillmentTriggers:M,slotExpirationTriggers:F,BN:"core",clientMetadata:new Ii([new YY(I({slotId:u,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,BN:"core",slotEntryTrigger:w,slotFulfillmentTriggers:M,slotExpirationTriggers:F}))]),adSlotLoggingData:b}}; UJ4=function(F,J,b,I){var u=gq(F.U.get(),"SLOT_TYPE_IN_PLAYER");b=new jj(F.C,b);var w=[new DM(F.C,u)],M=[new kA(F.C,u),new Xq(F.C,J)];w={slotId:u,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,BN:"core",slotEntryTrigger:b,slotFulfillmentTriggers:w,slotExpirationTriggers:M};return{slotId:u,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:[new DM(F.C,u)],slotExpirationTriggers:[new Xq(F.C,J),new kA(F.C,u)],BN:"core",clientMetadata:new Ii([new YY(I(w))])}}; oFa=function(F,J,b,I,u){var w=gq(F.U.get(),"SLOT_TYPE_IN_PLAYER");b=new EC(F.C,I,b);I=[new DM(F.C,w)];F=[new Xq(F.C,J)];return{slotId:w,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:I,slotExpirationTriggers:F,BN:"core",clientMetadata:new Ii([new YY(u({slotId:w,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,BN:"core",slotEntryTrigger:b,slotFulfillmentTriggers:I,slotExpirationTriggers:F}))])}}; XAv=function(F,J,b,I,u,w){var M=gq(F.U.get(),J);return xf(F,M,J,new jj(F.C,I),[new Xq(F.C,b),new kA(F.C,M),new GJ(F.C,I,["error"])],u,w)}; CH7=function(F,J,b,I,u,w,M){var q=gq(F.U.get(),J);return xf(F,q,J,new GJ(F.C,u,["normal"]),[new Xq(F.C,b),new kA(F.C,q),new GJ(F.C,I,["error"])],w,M)}; Sva=function(F,J,b,I,u){var w=gq(F.U.get(),J);return xf(F,w,J,new fi(F.C,b),[new Xq(F.C,b),new kA(F.C,w)],I,u)}; kI3=function(F,J,b,I,u){b=b?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var w=gq(F.U.get(),b);J=new fi(F.C,J);var M=[new DM(F.C,w)];F=[new kA(F.C,w)];return{slotId:w,slotType:b,slotPhysicalPosition:1,slotEntryTrigger:J,slotFulfillmentTriggers:M,slotExpirationTriggers:F,BN:"core",clientMetadata:new Ii([new YY(u({slotId:w,slotType:b,slotPhysicalPosition:1,BN:"core",slotEntryTrigger:J,slotFulfillmentTriggers:M,slotExpirationTriggers:F}))]),adSlotLoggingData:I}}; L_4=function(F,J,b,I){var u=gq(F.U.get(),"SLOT_TYPE_PLAYER_BYTES"),w=new rI(F.C),M=[new cS(F.C,u)];F=[new Xq(F.C,J)];return{slotId:u,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:w,slotFulfillmentTriggers:M,slotExpirationTriggers:F,BN:"core",clientMetadata:new Ii([new YY(I({slotId:u,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,BN:"core",slotEntryTrigger:w,slotFulfillmentTriggers:M,slotExpirationTriggers:F})),new BM({})]),adSlotLoggingData:b}}; Apz=function(F,J){return zxo(F.uR.get())?new GJ(F.C,J,["normal","error","skipped"]):new GJ(F.C,J,["normal"])}; a5Y=function(F,J,b,I,u){J=Apz(F,J);F=M0(F,J,b);u=u({slotId:F.slotId,slotType:F.slotType,slotPhysicalPosition:F.slotPhysicalPosition,slotEntryTrigger:F.slotEntryTrigger,slotFulfillmentTriggers:F.slotFulfillmentTriggers,slotExpirationTriggers:F.slotExpirationTriggers,BN:F.BN});return u instanceof Z?u:{Rl:Object.assign({},F,{clientMetadata:new Ii([new YY(u.layout)]),adSlotLoggingData:I}),Qk:u.Qk}}; ecz=function(F,J,b,I,u,w,M){b=qt_(F,J,b,I);if(b instanceof Z)return b;M=M({slotId:b.slotId,slotType:b.slotType,slotPhysicalPosition:b.slotPhysicalPosition,slotEntryTrigger:b.slotEntryTrigger,slotFulfillmentTriggers:b.slotFulfillmentTriggers,slotExpirationTriggers:b.slotExpirationTriggers,BN:b.BN});if(M instanceof Z)return M;I=[new nK(vN(J)),new YY(M.layout),new Zt({gt:F.gt(J)})];w&&I.push(new od({}));return{Rl:{slotId:b.slotId,slotType:b.slotType,slotPhysicalPosition:b.slotPhysicalPosition,slotEntryTrigger:Ac(F, J,b.slotId,b.slotEntryTrigger),slotFulfillmentTriggers:q0(F,J,b.slotId,b.slotFulfillmentTriggers),slotExpirationTriggers:b.slotExpirationTriggers,BN:b.BN,clientMetadata:new Ii(I),adSlotLoggingData:u},Qk:M.Qk}}; Ac=function(F,J,b,I){return F.uR.get().f7(vN(J))?new Nh(F.C,b):I}; q0=function(F,J,b,I){return F.uR.get().f7(vN(J))?[new cS(F.C,b)]:I}; M0=function(F,J,b){var I=gq(F.U.get(),"SLOT_TYPE_PLAYER_BYTES"),u=[new DM(F.C,I)];F=[new kA(F.C,I),new Xq(F.C,b)];return{slotId:I,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:J,slotFulfillmentTriggers:u,slotExpirationTriggers:F,BN:"core"}}; qt_=function(F,J,b,I){J=Up(F,J,b,I);return J instanceof Z?J:M0(F,J,b)}; oGm=function(F,J,b,I,u,w){var M=gq(F.U.get(),"SLOT_TYPE_FORECASTING");J=Up(F,J,b,I);if(J instanceof Z)return J;I=[new DM(F.C,M)];F=[new kA(F.C,M),new Xq(F.C,b)];return{slotId:M,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:J,slotFulfillmentTriggers:I,slotExpirationTriggers:F,BN:"core",clientMetadata:new Ii([new YY(w({slotId:M,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,BN:"core",slotEntryTrigger:J,slotFulfillmentTriggers:I,slotExpirationTriggers:F}))]),adSlotLoggingData:u}}; HKJ=function(F,J,b,I,u){var w=!J.hideCueRangeMarker;switch(J.kind){case "AD_PLACEMENT_KIND_START":return new fi(F.C,b);case "AD_PLACEMENT_KIND_MILLISECONDS":return F=PHz(J,I),F instanceof Z?F:u(F.TQ,w);case "AD_PLACEMENT_KIND_END":return new dI(F.C,b,w);default:return new Z("Cannot construct entry trigger",{kind:J.kind})}}; ZKa=function(F,J,b,I,u){return HKJ(F,J,b,I,function(w,M){return new xGz(F.C,b,w,M,u)})}; Up=function(F,J,b,I){return HKJ(F,J,b,I,function(u,w){return new Sj(F.C,b,u,w)})}; xf=function(F,J,b,I,u,w,M){F=[new cS(F.C,J)];return{slotId:J,slotType:b,slotPhysicalPosition:1,slotEntryTrigger:I,slotFulfillmentTriggers:F,slotExpirationTriggers:u,BN:"core",clientMetadata:new Ii([new YY(M({slotId:J,slotType:b,slotPhysicalPosition:1,BN:"core",slotEntryTrigger:I,slotFulfillmentTriggers:F,slotExpirationTriggers:u}))]),adSlotLoggingData:w}}; nm=function(F,J){g.R.call(this);this.uR=F;this.C=J;this.eventCount=0}; tc=function(F,J,b,I){nm.call(this,F,J);this.uR=F;this.QG=b;this.context=I}; ZX=function(){this.C=new Map}; Fa=function(F,J){var b=this;this.currentState="wait";this.onSuccess=[];this.onFailure=[];this.currentState=F;this.result=J.result;this.error=J.error;J.promise&&J.promise.then(function(I){HN(b,I)},function(I){Lm(b,I)})}; Ix=function(F){if(J8(F)){if(F instanceof Fa)return F;if(bf(F))return new Fa("wait",{promise:F})}return new Fa("done",{result:F})}; uf=function(F){return new Fa("fail",{error:F})}; wB=function(F){try{return Ix(F())}catch(J){return uf(J)}}; A8=function(F,J){var b=new Fa("wait",{});F.onSuccess.push(function(I){try{var u=J(I);HN(b,u)}catch(w){Lm(b,w)}}); F.onFailure.push(function(I){Lm(b,I)}); M7(F);return b}; q7=function(F,J){var b=new Fa("wait",{});F.onSuccess.push(function(I){HN(b,I)}); F.onFailure.push(function(I){try{var u=J(I);HN(b,u)}catch(w){Lm(b,w)}}); M7(F);return b}; HN=function(F,J){if(J8(J)){if(bf(J)){J.then(function(b){HN(F,b)},function(b){Lm(F,b)}); return}if(J instanceof Fa){A8(J,function(b){HN(F,b)}); q7(J,function(b){Lm(F,b)}); return}}F.currentState="done";F.result=J;M7(F)}; Lm=function(F,J){F.currentState="fail";F.error=J;M7(F)}; M7=function(F){if(F.currentState==="done"){var J=F.onSuccess;F.onSuccess=[];F.onFailure=[];J=g.N(J);for(var b=J.next();!b.done;b=J.next())b=b.value,b(F.result)}else if(F.currentState==="fail")for(J=F.onFailure,F.onSuccess=[],F.onFailure=[],J=g.N(J),b=J.next();!b.done;b=J.next())b=b.value,b(F.error)}; FO3=function(F){return function(){return Ls7(F.apply(this,g.Ba.apply(0,arguments)))}}; Ls7=function(F){return wB(function(){return vX(F,F.next())})}; vX=function(F,J){return J.done?Ix(J.value):q7(A8(J.value.Z9,function(b){return vX(F,F.next(b))}),function(b){return vX(F,F.throw(b))})}; ev=function(F){var J=F.hours||0;var b=F.minutes||0,I=F.seconds||0;J=I+b*60+J*3600+(F.days||0)*86400+(F.weeks||0)*604800+(F.months||0)*2629800+(F.years||0)*31557600;J<=0?J={hours:0,minutes:0,seconds:0}:(F=J,J=Math.floor(F/3600),F%=3600,b=Math.floor(F/60),I=Math.floor(F%60),J={hours:J,minutes:b,seconds:I});var u=J.hours===void 0?0:J.hours;b=J.minutes===void 0?0:J.minutes;F=J.seconds===void 0?0:J.seconds;I=u>0;J=[];if(I){u=(new Intl.NumberFormat("en-u-nu-latn")).format(u);var w=["fr"],M="az bs ca da de el es eu gl hr id is it km lo mk nl pt-BR ro sl sr sr-Latn tr vi".split(" "); u="af be bg cs et fi fr-CA hu hy ka kk ky lt lv no pl pt-PT ru sk sq sv uk uz".split(" ").includes(ax)?u.replace(",","\u00a0"):w.includes(ax)?u.replace(",","\u202f"):M.includes(ax)?u.replace(",","."):u;J.push(u)}I=I===void 0?!1:I;b=(["af","be","lt"].includes(ax)||I)&&b<10?JjC().format(b):(new Intl.NumberFormat("en-u-nu-latn")).format(b);J.push(b);b=JjC().format(F);J.push(b);b=":";"da fi id si sr sr-Latn".split(" ").includes(ax)&&(b=".");return J.join(b)}; JjC=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; bTm=function(F,J){var b,I;F=((b=F.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(I=b.videoAuthorizationToken)==null?void 0:I.credentialTransferTokens)||[];for(b=0;bJ;F=b}else F=!1;return F}; NX7=function(F){F=F.split("");PX.nM(F,14);PX.Hb(F,1);PX.nM(F,77);return F.join("")}; g.BX=function(F,J){return F.ME+"timedtext_video?ref=player&v="+J.videoId}; g.lY7=function(F){var J=this;this.videoData=F;F={};this.C=(F.c1a=function(){var b=[];if(g.GR.isInitialized()){var I="";J.videoData&&J.videoData.vQ&&(I=J.videoData.vQ+("&r1b="+J.videoData.clientPlaybackNonce));var u={};I=(u.atr_challenge=I,u);Oz("bg_v",void 0,"player_att");(I=zK_(I))?(Oz("bg_s",void 0,"player_att"),b.push("r1a="+I)):(Oz("bg_e",void 0,"player_att"),b.push("r1c=2"))}else Oz("bg_e",void 0,"player_att"),window.trayride||window.botguard?b.push("r1c=1"):b.push("r1c=4");b.push("r1d="+g.GR.getState()); return b.join("&")},F.c6a=function(b){return"r6a="+(Number(b.c)^A3())},F.c6b=function(b){return"r6b="+(Number(b.c)^Number(g.cT("CATSTAT",0)))},F); this.videoData&&this.videoData.vQ?this.iB=FF(this.videoData.vQ):this.iB={}}; g.fY7=function(F){if(F.videoData&&F.videoData.vQ){for(var J=[F.videoData.vQ],b=g.N(Object.keys(F.C)),I=b.next();!I.done;I=b.next())I=I.value,F.iB[I]&&F.C[I]&&(I=F.C[I](F.iB))&&J.push(I);return J.join("&")}return null}; g.TR=function(F,J){iTk(F,{CaE:g.eB(J.experiments,"bg_vm_reinit_threshold"),cspNonce:J.cspNonce,ME:J.ME||""})}; WOv=function(){var F=XMLHttpRequest.prototype.fetch;return!!F&&F.length===3}; rB=function(F){F=F===void 0?2592E3:F;if(F>0&&!(tf4()>(0,g.jR)()-F*1E3))return 0;F=g.S9("yt-player-quality");if(typeof F==="string"){if(F=g.CF[F],F>0)return F}else if(F instanceof Object)return F.quality;return 0}; Sv=function(){var F=g.S9("yt-player-proxima-pref");return F==null?null:F}; dek=function(){var F=g.S9("yt-player-quality");if(F instanceof Object&&F.quality&&F.previousQuality){if(F.quality>F.previousQuality)return 1;if(F.quality0&&J[0]?F.getAutoplayPolicy(J[0]):F.getAutoplayPolicy("mediaelement");if(BX3[b])return BX3[b]}}catch(I){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; Do=function(F){return F.Vk||F.NJ||F.mutedAutoplay}; TXv=function(F,J){return Do(F)?J!==1&&J!==2&&J!==0?"AUTOPLAY_STATUS_UNAVAILABLE":F.F8?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; rjz=function(F,J,b){var I=J.J();F.thirdParty||(F.thirdParty={});I.ancestorOrigins&&(F.thirdParty.embeddedPlayerContext=Object.assign({},F.thirdParty.embeddedPlayerContext,{ancestorOrigins:I.ancestorOrigins}));I.S("embeds_enable_autoplay_and_visibility_signals")&&(I.XI!=null&&(F.thirdParty.embeddedPlayerContext=Object.assign({},F.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(I.XI)})),I.us&&(F.thirdParty.embeddedPlayerContext=Object.assign({},F.thirdParty.embeddedPlayerContext,{visibilityFractionSource:I.us})), F.thirdParty.embeddedPlayerContext=Object.assign({},F.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:Rx(),autoplayIntended:Do(J),autoplayStatus:TXv(J,b)}))}; Ynv=function(F,J){Uv(F,2,J.yc,kT,3);Uv(F,3,J.bz,Snz,3);h3(F,4,J.onesieUstreamerConfig);h3(F,9,J.v5);Uv(F,10,J.QD,Or,3);Uv(F,15,J.reloadPlaybackParams,siY,3)}; CL4=function(F,J){Uv(F,1,J.formatId,ox,3);Ov(F,2,J.startTimeMs);Ov(F,3,J.durationMs);Ov(F,4,J.I5);Ov(F,5,J.Tn);Uv(F,9,J.u2N,$ez,3);Uv(F,11,J.jEW,h8,1);Uv(F,12,J.s_,h8,1)}; XqC=function(F,J){cA(F,1,J.videoId);Ov(F,2,J.lmt)}; $ez=function(F,J){if(J.o1)for(var b=0;b>31));Ov(F,16,J.bWN);Ov(F,17,J.detailedNetworkType);Ov(F,18,J.pz);Ov(F,19,J.y7);Ov(F,21,J.Q9);Ov(F,23,J.Q7);Ov(F,28,J.qs);Ov(F,29,J.l4G);Ov(F,34,J.visibility);b=J.playbackRate;if(b!==void 0){var I=new ArrayBuffer(4);(new Float32Array(I))[0]=b;b=(new Uint32Array(I))[0];if(b!==void 0)for(kF(F,285),Dy(F,4),I=0;I<4;)F.view.setUint8(F.pos,b&255),b>>=8,F.pos+=1,I+=1}Ov(F,36,J.dJ); Uv(F,38,J.mediaCapabilities,De_,3);Ov(F,39,J.dEQ);Ov(F,40,J.C5);Ov(F,44,J.playerState);oW(F,46,J.fp);Ov(F,48,J.Bk);Ov(F,50,J.qU);Ov(F,51,J.Il);Ov(F,54,J.XU);oW(F,56,J.l7D);Ov(F,57,J.m8);oW(F,58,J.DX);Ov(F,59,J.hN);Ov(F,60,J.nB);oW(F,61,J.isPrefetch);Ov(F,62,J.Qg);h3(F,63,J.sabrLicenseConstraint);Ov(F,64,J.czR);Ov(F,66,J.mfG);Ov(F,67,J.HAW);Ov(F,68,J.PTR);cA(F,69,J.audioTrackId);oW(F,71,J.iK);Uv(F,72,J.LpG,RKm,1);Ov(F,74,J.F7);Ov(F,75,J.Bq)}; De_=function(F,J){if(J.videoFormatCapabilities)for(var b=0;b>31));cA(F,2,J.message)}; tBY=function(F,J){Ov(F,1,J.clientState);Uv(F,2,J.hvD,xeY,1)}; Uez=function(F,J){h3(F,1,J.H7G);Uv(F,2,J.Sz_,nXG,3);Uv(F,3,J.coldStartInfo,tBY,3)}; cjk=function(F,J){Ov(F,1,J.type);h3(F,2,J.value)}; hKY=function(F,J){cA(F,1,J.hl);cA(F,12,J.deviceMake);cA(F,13,J.deviceModel);Ov(F,16,J.clientName);cA(F,17,J.clientVersion);cA(F,18,J.osName);cA(F,19,J.osVersion)}; ZTz=function(F,J){cA(F,1,J.name);cA(F,2,J.value)}; HTa=function(F,J){cA(F,1,J.url);if(J.vZ)for(var b=0;b1&&(this.D=F[1]==="2")}; Zo=function(F,J,b,I,u){this.U=F;this.C=J;this.T=b;this.reason=I;this.LW=u===void 0?0:u}; g.HX=function(F,J,b,I){return new Zo(g.CF[F]||0,g.CF[J]||0,b,I)}; Fh=function(F){if(La&&F.LW)return!1;var J=g.CF.auto;return F.U===J&&F.C===J}; b9=function(F){return Jt[F.C||F.U]||"auto"}; C6z=function(F,J){J=g.CF[J];return F.U<=J&&(!F.C||F.C>=J)}; It=function(F){return"["+F.U+"-"+F.C+", override: "+(F.T+", reason: "+F.reason+"]")}; u9=function(F,J,b){this.videoInfos=F;this.C=J;this.audioTracks=[];if(this.C){F=new Set;b==null||b({ainfolen:this.C.length});J=g.N(this.C);for(var I=J.next();!I.done;I=J.next())if(I=I.value,!I.j3||F.has(I.j3.id)){var u=void 0,w=void 0,M=void 0;(M=b)==null||M({atkerr:!!I.j3,itag:I.itag,xtag:I.C,lang:((u=I.j3)==null?void 0:u.name)||"",langid:((w=I.j3)==null?void 0:w.id)||""})}else u=new g.t8(I.id,I.j3),F.add(I.j3.id),this.audioTracks.push(u);b==null||b({atklen:this.audioTracks.length})}}; w_=function(){g.R.apply(this,arguments);this.C=null}; DC7=function(F,J,b,I,u,w,M){if(F.C)return F.C;var q={},v=new Set,a={};if(Mv(I)){for(var e in I.C)I.C.hasOwnProperty(e)&&(F=I.C[e],a[F.info.YQ]=[F.info]);return a}e=X7o(J,I,q);w&&u({aftsrt:At(e)});for(var K={},p=g.N(Object.keys(e)),m=p.next();!m.done;m=p.next()){m=m.value;for(var y=g.N(e[m]),f=y.next();!f.done;f=y.next()){f=f.value;var d=f.itag,G=void 0,P=m+"_"+(((G=f.video)==null?void 0:G.fps)||0);K.hasOwnProperty(P)?K[P]===!0?a[m].push(f):q[d]=K[P]:(G=qv(J,f,b,I.isLive,v),G!==!0?(M.add(m),q[d]=G, G==="disablevp9hfr"&&(K[P]="disablevp9hfr")):(a[m]=a[m]||[],a[m].push(f),K[P]=!0))}}w&&u({bfflt:At(a)});for(var r in a)a.hasOwnProperty(r)&&(I=r,a[I]&&a[I][0].v1()&&(a[I]=a[I],a[I]=QV7(J,a[I],q),a[I]=Rpz(a[I],q)));w&&Object.keys(q).length>0&&u({rjr:dk(q)});J=g.N(v.values());for(I=J.next();!I.done;I=J.next())(I=b.U.get(I.value))&&--I.Jf;w&&u({aftflt:At(a)});F.C=g.zo(a,function(Q){return!!Q.length}); return F.C}; Oda=function(F,J,b,I,u,w,M,q){q=q===void 0?!1:q;if(J.M0&&M&&M.length>1&&!(J.hN>0||J.Y)){for(var v=J.U||!!u,a=v&&J.NW?w:void 0,e=X7o(J,I),K=[],p=[],m={},y=0;y0&&p&&u&&(e=[M,b],d=u.concat(p).filter(function(G){return G})); if(d.length&&!J.DX){ea(d,e);if(v){v=[];J=g.N(d);for(I=J.next();!I.done;I=J.next())v.push(I.value.itag);w({hbdfmt:v.join(".")})}return r$(new u9(d,F,a))}d=Hdk(J);d=g.xL(d,q);if(!d){if(K[M])return w=K[M],ea(w),r$(new u9(w,F,a));v&&w({novideo:1});return Tk()}J.Se&&(d==="1"||d==="1h")&&K[b]&&(M=Kk(K[d]),e=Kk(K[b]),e>M?d=b:e===M&&L8C(K[b])&&(d=b));d==="9"&&K.h&&Kk(K.h)>Kk(K["9"])&&(d="h");J.Om&&I.isLive&&d==="("&&K.H&&Kk(K["("])<1440&&(d="H");v&&w({vfmly:pk(d)});J=K[d];if(!J.length)return v&&w({novfmly:pk(d)}), Tk();ea(J);return r$(new u9(J,F,a))}; hpo=function(F,J){var b=!(!F.m&&!F.M),I=!(!F.mac3&&!F.MAC3),u=!(!F.meac3&&!F.MEAC3);F=!(!F.i&&!F.I);J.xo=F;return b||I||u||F}; L8C=function(F){F=g.N(F);for(var J=F.next();!J.done;J=F.next())if(J=J.value,J.itag&&FYG.has(J.itag))return!0;return!1}; pk=function(F){switch(F){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return F}}; At=function(F){var J=[],b;for(b in F)if(F.hasOwnProperty(b)){var I=b;J.push(pk(I));I=g.N(F[I]);for(var u=I.next();!u.done;u=I.next())J.push(u.value.itag)}return J.join(".")}; o5m=function(F,J,b,I,u,w){var M={},q={};g.ie(J,function(v,a){v=v.filter(function(e){var K=e.itag;if(!e.Ke)return q[K]="noenc",!1;if(w.xm&&e.YQ==="(h"&&w.Um)return q[K]="lichdr",!1;if(!F.T&&e.YQ==="1e")return q[K]="noav1enc",!1;if(e.YQ==="("||e.YQ==="(h"){if(F.D&&b&&b.flavor==="widevine"){var p=e.mimeType+"; experimental=allowed";(p=!!e.Ke[b.flavor]&&!!b.C[p])||(q[K]=e.Ke[b.flavor]?"unspt":"noflv");return p}if(!g_(F,mp.CRYPTOBLOCKFORMAT)&&!F.qf||F.kQ)return q[K]=F.kQ?"disvp":"vpsub",!1}return b&&e.Ke[b.flavor]&& b.C[e.mimeType]?!0:(q[K]=b?e.Ke[b.flavor]?"unspt":"noflv":"nosys",!1)}); v.length&&(M[a]=v)}); I&&Object.entries(q).length&&u({rjr:dk(q)});return M}; Rpz=function(F,J){var b=Gi(F,function(I,u){return u.video.fps>32?Math.min(I,u.video.width):I},Infinity); b32||I.video.widthF.W)return"max"+F.W;if(F.bR&&J.YQ==="h"&&J.video&&J.video.C>1080)return"blkhigh264";if(J.YQ==="(h"&&!b.V)return"enchdr";if((I===void 0?0:I)&&xz(J)&&!F.zj)return"blk51live";if((J.YQ==="MAC3"||J.YQ==="mac3")&&!F.Z)return"blkac3";if((J.YQ==="MEAC3"||J.YQ==="meac3")&&!F.D)return"blkeac3";if((J.YQ==="M"||J.YQ==="m")&&!F.eE)return"blkaac51";if((J.YQ=== "so"||J.YQ==="sa")&&!F.Gj)return"blkamb";if(!F.xm&&KN3(J)&&(!b.T||J.YQ!=="1e"))return"cbc";if(!b.T&&KN3(J)&&J.YQ==="1e")return"cbcav1";if((J.YQ==="i"||J.YQ==="I")&&!F.Kk)return"blkiamf";if(J.itag==="774"&&!F.WN)return"blkouh";var w,M;if(F.oI&&(J.YQ==="1"||J.YQ==="1h"||b.T&&J.YQ==="1e")&&((w=J.video)==null?0:w.C)&&((M=J.video)==null?void 0:M.C)>F.oI)return"av1cap";if((I=b.U.get(J.YQ))&&I.Jf>0)return u.add(J.YQ),"byerr";var q;if((q=J.video)==null?0:q.fps>32){if(!b.fW&&!g_(b,mp.FRAMERATE))return"capHfr"; if(F.nW&&J.video.C>=4320)return"blk8khfr";if(O5(J)&&F.Uz&&J.Ke&&J.video.C>=1440)return"disablevp9hfr"}if(F.LW&&J.LW>F.LW)return"ratecap";F=J1a(b,J);return F!==!0?F:!0}; ea=function(F,J){J=J===void 0?[]:J;g.vW(F,function(b,I){var u=I.LW-b.LW;if(!b.v1()||!I.v1())return u;var w=I.video.height*I.video.width-b.video.height*b.video.width;!w&&J&&J.length>0&&(b=J.indexOf(b.YQ)+1,I=J.indexOf(I.YQ)+1,w=b===0||I===0?I||-1:b-I);w||(w=u);return w})}; g.yJ=function(F,J){this.U=F;this.Z=J===void 0?!1:J;this.T=this.path=this.scheme="";this.C={};this.url=""}; zK=function(F){i9(F);return F.T}; Nv=function(F){return F.U?F.U.startsWith("local"):F.scheme==="local"}; bFz=function(F){i9(F);return g.le(F.C,function(J){return J!==null})}; l9=function(F){i9(F);var J=decodeURIComponent(F.get("mn")||"").split(",");return F.path==="/videoplayback"&&J.length>1&&!!J[1]}; fk=function(F,J){J=J===void 0?!1:J;i9(F);if(F.path!=="/videoplayback"){var b=F.clone();b.set("playerfallback","1");return b}var I=F.tF();b=new g.a2(I);var u=F.get("fvip"),w=decodeURIComponent(F.get("mn")||"").split(",");if(u&&w&&w.length>1&&w[1])return I=b.C,F=I.replace(/^[^.]*/,""),g.KM(b,(I.indexOf("rr")===0?"rr":"r")+u+"---"+w[1]+F),b=new g.yJ(b.toString()),b.set("fallback_count","1"),b;if(J)return b=F.clone(),b.set("fallback_count","1"),b;u=b.C.match("\\.a1\\.googlevideo\\.com$");b.C.match("\\.googlevideo\\.com$")? (g.KM(b,"redirector.googlevideo.com"),I=b.toString()):b.C.match("rr?[1-9].*\\.c\\.youtube\\.com$")?(g.KM(b,"www.youtube.com"),I=b.toString()):(b=IUm(I),Hq(b)&&(I=b));b=new g.yJ(I);b.set("cmo=pf","1");u&&b.set("cmo=td","a1.googlevideo.com");return b}; i9=function(F){if(F.U){if(!Hq(F.U)&&!F.U.startsWith("local"))throw new g.hC("Untrusted URL",F.U);var J=g.Nl(F.U);F.scheme=J.D;F.T=J.C+(J.T!=null?":"+J.T:"");var b=J.U;if(b.startsWith("/videoplayback"))F.path="/videoplayback",b=b.slice(14);else if(b.startsWith("/initplayback"))F.path="/initplayback",b=b.slice(13);else if(b.startsWith("/api/manifest")){var I=b.indexOf("/",12),u=b.indexOf("/",I+1);I>0&&u>0?(F.path=b.slice(0,u),b=b.slice(u+1)):(F.path=b,b="")}else F.path=b,b="";I=F.C;F.C=Ifz(b);Object.assign(F.C, uk7(J.Z.toString()));Object.assign(F.C,I);F.C.file==="index.m3u8"&&(delete F.C.file,F.path+="/file/index.m3u8");F.U="";F.url="";F.Z&&(J=X2Y(),i9(F),b=F.C[J]||null)&&(b=w4Y[0](b),F.set(J,b),F.Z||X2Y(""))}}; Mgv=function(F){i9(F);var J=F.scheme+(F.scheme?"://":"//")+F.T+F.path;if(bFz(F)){var b=[];g.ie(F.C,function(I,u){I!==null&&b.push(u+"="+I)}); J+="?"+b.join("&")}return J}; Ifz=function(F){F=F.split("/");var J=0;F[0]||J++;for(var b={};J0?A1a(J,I.slice(0,u),I.slice(u+1)):I&&(J[I]="")}return J}; A1a=function(F,J,b){if(J==="cmo"){var I;(I=b.indexOf("="))>=0?(J="cmo="+b.slice(0,I),b=b.slice(I+1)):(I=b.indexOf("%3D"))>=0&&(J="cmo="+b.slice(0,I),b=b.slice(I+3))}F[J]=b}; Wd=function(F){var J=g.O(F,q5a)||F.signatureCipher;F={R_:!1,VP:"",Ou:"",s:""};if(!J)return F;J=FF(J);F.R_=!0;F.VP=J.url;F.Ou=J.sp;F.s=J.s;return F}; d_=function(F,J,b,I,u,w,M,q,v,a){this.Mf=F;this.startTime=J;this.duration=b;this.ingestionTime=I;this.sourceURL=u;this.Wg=v;this.C=a;this.endTime=J+b;this.U=M||0;this.range=w||null;this.pending=q||!1;this.Wg=v||null}; g.ES=function(){this.segments=[];this.C=null;this.U=!0;this.T=""}; vzk=function(F,J){if(J>F.oC())F.segments=[];else{var b=U1(F.segments,function(I){return I.Mf>=J},F); b>0&&F.segments.splice(0,b)}}; GK=function(F,J,b,I,u){u=u===void 0?!1:u;this.data=F;this.offset=J;this.size=b;this.type=I;this.C=(this.U=u)?0:8;this.dataOffset=this.offset+this.C}; VJ=function(F){var J=F.data.getUint8(F.offset+F.C);F.C+=1;return J}; Pd=function(F){var J=F.data.getUint16(F.offset+F.C);F.C+=2;return J}; Bd=function(F){var J=F.data.getInt32(F.offset+F.C);F.C+=4;return J}; TK=function(F){var J=F.data.getUint32(F.offset+F.C);F.C+=4;return J}; r_=function(F){var J=F.data;var b=F.offset+F.C;J=J.getUint32(b)*4294967296+J.getUint32(b+4);F.C+=8;return J}; Sa=function(F,J){J=J===void 0?NaN:J;if(isNaN(J))var b=F.size;else for(b=F.C;b1?Math.ceil(u*J):Math.floor(u*J))}F.skip(1);b=VJ(F)<<16|Pd(F);if(b&256){I=b&1;u=b&4;var w=b&512,M=b&1024,q=b&2048;b=TK(F);I&&F.skip(4);u&&F.skip(4);I=(w?4:0)+(M?4:0)+(q?4:0);for(u=0;u1?Math.ceil(M*J):Math.floor(M*J)),F.skip(I)}}}; kZ=function(F){F=new DataView(F.buffer,F.byteOffset,F.byteLength);return(F=g.Rt(F,0,1836476516))?g.DT(F):NaN}; lfC=function(F){var J=g.Rt(F,0,1937011556);if(!J)return null;J=OS(F,J.dataOffset+8,1635148593)||OS(F,J.dataOffset+8,1635135537);if(!J)return null;var b=OS(F,J.dataOffset+78,1936995172),I=OS(F,J.dataOffset+78,1937126244);if(!I)return null;J=null;if(b)switch(b.skip(4),VJ(b)){default:J=0;break;case 1:J=2;break;case 2:J=1;break;case 3:J=255}var u=b=null,w=null;if(I=OS(F,I.dataOffset,1886547818)){var M=OS(F,I.dataOffset,1886546020),q=OS(F,I.dataOffset,2037673328);if(!q&&(q=OS(F,I.dataOffset,1836279920), !q))return null;M&&(M.skip(4),b=Bd(M)/65536,w=Bd(M)/65536,u=Bd(M)/65536);F=af3(q);F=new DataView(F.buffer,F.byteOffset+8,F.byteLength-8);return new zZz(J,b,w,u,F)}return null}; OS=function(F,J,b){for(;ot(F,J);){var I=ht(F,J);if(I.type===b)return I;J+=I.size}return null}; g.Rt=function(F,J,b){for(;ot(F,J);){var I=ht(F,J);if(I.type===b)return I;J=cd(I.type)?J+8:J+I.size}return null}; g.US=function(F){if(F.data.getUint8(F.dataOffset)){var J=F.data;F=F.dataOffset+4;J=J.getUint32(F)*4294967296+J.getUint32(F+4)}else J=F.data.getUint32(F.dataOffset+4);return J}; ht=function(F,J){var b=F.getUint32(J),I=F.getUint32(J+4);return new GK(F,J,b,I)}; g.DT=function(F){var J=F.data.getUint8(F.dataOffset)?20:12;return F.data.getUint32(F.dataOffset+J)}; ffz=function(F){F=new GK(F.data,F.offset,F.size,F.type,F.U);var J=VJ(F);F.skip(7);var b=TK(F);if(J===0){J=TK(F);var I=TK(F)}else J=r_(F),I=r_(F);F.skip(2);for(var u=Pd(F),w=[],M=[],q=0;q122)return!1}return!0}; cd=function(F){return F===1701082227||F===1836019558||F===1836019574||F===1835297121||F===1835626086||F===1937007212||F===1953653094||F===1953653099||F===1836475768}; WY7=function(F){F.skip(4);return{lVQ:Sa(F,0),value:Sa(F,0),timescale:TK(F),mb_:TK(F),tlv:TK(F),id:TK(F),jx:Sa(F),offset:F.offset}}; g.dM3=function(F){var J=OS(F,0,1701671783);if(!J)return null;var b=WY7(J),I=b.lVQ;b=QJ(b.jx);if(F=OS(F,J.offset+J.size,1701671783))if(F=WY7(F),F=QJ(F.jx),b&&F){J=g.N(Object.keys(F));for(var u=J.next();!u.done;u=J.next())u=u.value,b[u]=F[u]}return b?new Ck(b,I):null}; xZ=function(F,J){for(var b=OS(F,0,J);b;){var I=b;I.type=1936419184;I.data.setUint32(I.offset+4,1936419184);b=OS(F,b.offset+b.size,J)}}; g.nk=function(F,J){for(var b=0,I=[];ot(F,b);){var u=ht(F,b);u.type===J&&I.push(u);b=cd(u.type)?b+8:b+u.size}return I}; EzJ=function(F,J){var b=g.Rt(F,0,1937011556),I=g.Rt(F,0,1953654136);if(!b||!I||F.getUint32(b.offset+12)>=2)return null;var u=new DataView(J.buffer,J.byteOffset,J.length),w=g.Rt(u,0,1937011556);if(!w)return null;J=u.getUint32(w.dataOffset+8);I=u.getUint32(w.dataOffset+12);if(I!==1701733217&&I!==1701733238)return null;I=new eZ3(F.byteLength+J);sS(I,F,0,b.offset+12);I.data.setInt32(I.offset,2);I.offset+=4;sS(I,F,b.offset+16,b.size-16);sS(I,u,u.byteOffset+w.dataOffset+8,J);sS(I,F,b.offset+b.size,F.byteLength- (b.offset+b.size));b=g.N([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(u=b.next();!u.done;u=b.next())u=g.Rt(F,0,u.value),I.data.setUint32(u.offset,u.size+J);F=g.Rt(I.data,0,1953654136);I.data.setUint32(F.offset+16,2);return I.data}; jTo=function(F){var J=g.Rt(F,0,1937011556);if(!J)return null;var b=F.getUint32(J.dataOffset+12);if(b!==1701733217&&b!==1701733238)return null;J=OS(F,J.offset+24+(b===1701733217?28:78),1936289382);if(!J)return null;b=OS(F,J.offset+8,1935894637);if(!b||F.getUint32(b.offset+12)!==1667392371)return null;J=OS(F,J.offset+8,1935894633);if(!J)return null;J=OS(F,J.offset+8,1952804451);if(!J)return null;b=new Uint8Array(16);for(var I=0;I<16;I++)b[I]=F.getInt8(J.offset+16+I);return b}; tt=function(F,J){this.C=F;this.pos=0;this.start=J||0}; ZT=function(F){return F.pos>=F.C.byteLength}; bU=function(F,J,b){var I=new tt(b);if(!Hd(I,F))return!1;I=Lk(I);if(!Fz(I,J))return!1;for(F=0;J;)J>>>=8,F++;J=I.start+I.pos;var u=JM(I,!0);I=F+(I.start+I.pos-J)+u;I=I>9?Gja(I-9,8):Gja(I-2,1);F=J-F;b.setUint8(F++,236);for(J=0;Jb;u++)b=b*256+AM(F),I*=128;return J?b-I:b}; uU=function(F){var J=JM(F,!0);F.pos+=J}; Bkm=function(F){if(!Fz(F,440786851,!0))return null;var J=F.pos;JM(F,!1);var b=JM(F,!0)+F.pos-J;F.pos=J+b;if(!Fz(F,408125543,!1))return null;JM(F,!0);if(!Fz(F,357149030,!0))return null;var I=F.pos;JM(F,!1);var u=JM(F,!0)+F.pos-I;F.pos=I+u;if(!Fz(F,374648427,!0))return null;var w=F.pos;JM(F,!1);var M=JM(F,!0)+F.pos-w,q=new Uint8Array(b+12+u+M),v=new DataView(q.buffer);q.set(new Uint8Array(F.C.buffer,F.C.byteOffset+J,b));v.setUint32(b,408125543);v.setUint32(b+4,33554431);v.setUint32(b+8,4294967295); q.set(new Uint8Array(F.C.buffer,F.C.byteOffset+I,u),b+12);q.set(new Uint8Array(F.C.buffer,F.C.byteOffset+w,M),b+12+u);return q}; qx=function(F){var J=F.pos;F.pos=0;var b=1E6;Hd(F,[408125543,357149030,2807729])&&(b=IA(F));F.pos=J;return b}; Tkm=function(F,J){var b=F.pos;F.pos=0;if(F.C.getUint8(F.pos)!==160&&!v6(F)||!Fz(F,160))return F.pos=b,NaN;JM(F,!0);var I=F.pos;if(!Fz(F,161))return F.pos=b,NaN;JM(F,!0);AM(F);var u=AM(F)<<8|AM(F);F.pos=I;if(!Fz(F,155))return F.pos=b,NaN;I=IA(F);F.pos=b;return(u+I)*J/1E9}; v6=function(F){if(!r1Y(F)||!Fz(F,524531317))return!1;JM(F,!0);return!0}; r1Y=function(F){if(F.Uv()){if(!Fz(F,408125543))return!1;JM(F,!0)}return!0}; Hd=function(F,J){for(var b=0;b0){var I=uk7(J.substring(b+1));g.ie(I,function(u,w){this.set(w,u)},F); J=J.substring(0,b)}J=Ifz(J);g.ie(J,function(u,w){this.set(w,u)},F)}; sT_=function(F){var J=F.XY.tF(),b=[];g.ie(F.C,function(u,w){b.push(w+"="+u)}); if(!b.length)return J;var I=b.join("&");F=bFz(F.XY)?"&":"?";return J+F+I}; eo=function(F,J){var b=new g.yJ(J);(J=b.get("req_id"))&&F.set("req_id",J);g.ie(F.C,function(I,u){b.set(u,null)}); return b}; Y5a=function(){this.Z=this.U=this.C=this.timedOut=this.started=this.D=this.T=0}; Ko=function(F){F.D=(0,g.jR)();F.started=0;F.timedOut=0;F.C=0}; po=function(F,J){var b=F.started+F.C*4;J&&(b+=F.U);b=Math.max(0,b-3);return Math.pow(1.6,b)}; gG=function(F,J){F[J]||(F[J]=new Y5a);return F[J]}; mc=function(F){this.N=this.V=this.D=this.U=0;this.Y=this.W=!1;this.C=F;this.T=F.clone()}; $M_=function(F,J,b){if(Nv(F.C))return!1;var I=gG(b,zK(F.C));if(I.timedOut<1&&I.C<1)return!1;I=I.timedOut+I.C;F=y4(F,J);b=gG(b,zK(F));return b.timedOut+b.C+01?J=J.Ok:(b=gG(b,zC(F,F.Xx(J,b),J)),J=Math.max(F.D,b.timedOut)+J.ip*(F.U-F.D)+.25*F.V,J=J>3?1E3*Math.pow(1.6,J-3):0);return J===0?!0:F.N+J<(0,g.jR)()}; COz=function(F,J,b){F.C.set(J,b);F.T.set(J,b);F.Z&&F.Z.set(J,b)}; X4a=function(F,J,b,I,u){++F.U;J&&++F.D;zK(b.XY).startsWith("redirector.")&&(F.C=F.T.clone(),delete F.Z,I.rh&&delete u[zK(F.C)])}; lU=function(F){return F?(F.itag||"")+";"+(F.lmt||0)+";"+(F.xtags||""):""}; fo=function(F,J,b,I){this.initRange=b;this.indexRange=I;this.C=null;this.T=!1;this.W=0;this.Z=this.d2=this.U=null;this.info=J;this.gw=new mc(F)}; W6=function(F,J){this.start=F;this.end=J;this.length=J-F+1}; dG=function(F){F=F.split("-");var J=Number(F[0]),b=Number(F[1]);if(!isNaN(J)&&!isNaN(b)&&F.length===2&&(F=new W6(J,b),!isNaN(F.start)&&!isNaN(F.end)&&!isNaN(F.length)&&F.length>0))return F}; EL=function(F,J){return new W6(F,F+J-1)}; QT7=function(F){return F.end==null?{start:String(F.start)}:{start:String(F.start),end:String(F.end)}}; jo=function(F){if(!F)return new W6(0,0);var J=Number(F.start);F=Number(F.end);if(!isNaN(J)&&!isNaN(F)&&(J=new W6(J,F),J.length>0))return J}; GC=function(F,J,b,I,u,w,M,q,v,a,e,K){I=I===void 0?"":I;this.type=F;this.C=J;this.range=b;this.source=I;this.C4=e;this.clipId=K===void 0?"":K;this.V=[];this.D="";this.Mf=-1;this.Y=this.N=0;this.D=I;this.Mf=u>=0?u:-1;this.startTime=w||0;this.duration=M||0;this.U=q||0;this.T=v>=0?v:this.range?this.range.length:NaN;this.Z=this.range?this.U+this.T===this.range.length:a===void 0?!!this.T:a;this.range?(this.hF=this.startTime+this.duration*this.U/this.range.length,this.W=this.duration*this.T/this.range.length, this.H1=this.hF+this.W):RZ7(this)}; RZ7=function(F){F.hF=F.startTime;F.W=F.duration;F.H1=F.hF+F.W}; DMY=function(F,J,b){var I=!(!J||J.C!==F.C||J.type!==F.type||J.Mf!==F.Mf);return b?I&&!!J&&(F.range&&J.range?J.range.end===F.range.end:J.range===F.range)&&J.U+J.T===F.U+F.T:I}; V4=function(F){return F.type===1||F.type===2}; P6=function(F){return F.type===3||F.type===6}; B6=function(F,J){return F.C===J.C?F.range&&J.range?F.range.start+F.U+F.T===J.range.start+J.U:F.Mf===J.Mf?F.U+F.T===J.U:F.Mf+1===J.Mf&&J.U===0&&F.Z:!1}; OFG=function(F,J){return F.Mf!==J.Mf&&J.Mf!==F.Mf+1||F.type!==J.type?!1:B6(F,J)?!0:Math.abs(F.hF-J.hF)<=1E-6&&F.Mf===J.Mf?!1:kjv(F,J)}; kjv=function(F,J){return B6(F,J)||Math.abs(F.H1-J.hF)<=1E-6||F.Mf+1===J.Mf&&J.U===0&&F.Z?!0:!1}; TC=function(F){return F.Mf+(F.Z?1:0)}; ozv=function(F){F.length===1||g.jw(F,function(b){return!!b.range}); for(var J=1;J=J.range.start+J.U&&F.range.start+F.U+F.T<=J.range.start+J.U+J.T:F.Mf===J.Mf&&F.U>=J.U&&(F.U+F.T<=J.U+J.T||J.Z)}; ZF3=function(F,J){return F.C!==J.C?!1:F.type===4&&J.type===3&&F.C.VJ()?(F=F.C.Iq(F),Bc(F,function(b){return ZF3(b,J)})):F.Mf===J.Mf&&!!J.T&&J.U+J.T>F.U&&J.U+J.T<=F.U+F.T}; So=function(F,J){var b=J.Mf;F.D="updateWithSegmentInfo";F.Mf=b;if(F.startTime!==J.startTime||F.duration!==J.duration)F.startTime=J.startTime+F.N,F.duration=J.duration,RZ7(F)}; sL=function(F,J){var b=this;this.aI=F;this.Z=this.C=null;this.D=this.Qi=NaN;this.Xx=this.requestId=null;this.Po={pQG:function(){return b.range}}; this.gw=F[0].C.gw;this.U=J||"";this.aI[0].range&&this.aI[0].T>0&&(hZY(F)?(this.range=ozv(F),this.T=this.range.length):(this.range=this.aI[this.aI.length-1].range,this.T=c1G(F)))}; Ym=function(F){return!V4(F.aI[F.aI.length-1])}; $m=function(F){return F.aI[F.aI.length-1].type===4}; g.Co=function(F,J,b){b=F.Xx===null?F.gw.Xx(J,b,F.aI[0].type):F.Xx;if(F.C){J=b?fk(F.C,J.b1):F.C;var I=new aA(J);I.get("alr")||I.set("alr","yes");F.U&&S5C(I,F.U)}else/http[s]?:\/\//.test(F.U)?I=new aA(new g.yJ(F.U)):(I=iU(F.gw,b,J),F.U&&S5C(I,F.U));(J=F.range)?I.set("range",J.toString()):F.aI[0].C.OL()&&F.aI.length===1&&F.aI[0].U&&I.set("range",F.aI[0].U+"-");F.requestId&&I.set("req_id",F.requestId);isNaN(F.Qi)||I.set("headm",F.Qi.toString());isNaN(F.D)||I.set("mffa",F.D+"ms");F.urlParams&&g.ie(F.urlParams, function(u,w){I.set(w,u)}); return I}; HFa=function(F){if(F.range)return F.T;F=F.aI[0];return Math.round(F.W*F.C.info.LW)}; LYC=function(F,J){return Math.max(0,F.aI[0].hF-J)}; Xz=function(F,J,b,I,u,w){w=w===void 0?0:w;fo.call(this,F,J,I,void 0);this.D=b;this.U2=w;this.index=u||new g.ES}; F4_=function(F,J,b,I,u){this.Mf=F;this.startSecs=J;this.Bg=b;this.C=I||NaN;this.U=u||NaN}; Q4=function(F,J,b){for(;F;F=F.parentNode)if(F.attributes&&(!b||F.nodeName===b)){var I=F.getAttribute(J);if(I)return I}return""}; RA=function(F,J){for(;F;F=F.parentNode){var b=F.getElementsByTagName(J);if(b.length>0)return b[0]}return null}; JGk=function(F){if(!F)return 0;var J=F.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return J?(Number(J[2])|0)*3600+(Number(J[4])|0)*60+(Number(J[6])|0):Number(F)|0}; bBk=function(F){return F.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?F+"Z":F}; Dc=function(){this.C=[];this.U=null;this.W=0;this.T=[];this.D=!1;this.V="";this.Z=-1}; IOm=function(F){var J=F.T;F.T=[];return J}; u8_=function(){this.Z=[];this.C=null;this.U={};this.T={}}; qoC=function(F,J){var b=[];J=Array.from(J.getElementsByTagName("SegmentTimeline"));J=g.N(J);for(var I=J.next();!I.done;I=J.next()){I=I.value;var u=I.parentNode.parentNode,w=null;u.nodeName==="Period"?w=wez(F):u.nodeName==="AdaptationSet"?(u=u.getAttribute("id")||u.getAttribute("mimetype")||"",w=MsG(F,u)):u.nodeName==="Representation"&&(u=u.getAttribute("id")||"",w=AG7(F,u));if(w==null)return;w.update(I);g.bV(b,IOm(w))}g.bV(F.Z,b);bz3(F.Z,function(M){return M.startSecs*1E3+M.C})}; vnv=function(F){F.C&&(F.C.C=[]);g.ie(F.U,function(J){J.C=[]}); g.ie(F.T,function(J){J.C=[]})}; wez=function(F){F.C||(F.C=new Dc);return F.C}; MsG=function(F,J){F.U[J]||(F.U[J]=new Dc);return F.U[J]}; AG7=function(F,J){F.T[J]||(F.T[J]=new Dc);return F.T[J]}; OL=function(F){var J=F===void 0?{}:F;F=J.U2===void 0?0:J.U2;var b=J.Hu===void 0?!1:J.Hu;var I=J.jD===void 0?0:J.jD;var u=J.De===void 0?0:J.De;var w=J.VN===void 0?Infinity:J.VN;var M=J.gC===void 0?0:J.gC;var q=J.SF===void 0?!1:J.SF;J=J.jf===void 0?!1:J.jf;g.ES.call(this);this.Jd=this.H0=-1;this.x7=F;this.jD=I;this.Hu=b;this.De=u;this.VN=w;this.gC=M;((this.SF=q)||isFinite(w)&&this.VN>0)&&b&&km&&(this.U=!1,this.T="postLive");this.jf=J}; oA=function(F,J){return qL(F.segments,function(b){return J-b.Mf})}; hM=function(F,J,b){b=b===void 0?{}:b;Xz.call(this,F,J,"",void 0,void 0,b.U2||0);this.index=new OL(b)}; c6=function(F,J,b){fo.call(this,F,J);this.D=b;F=this.index=new g.ES;F.U=!1;F.T="d"}; aOa=function(F,J,b){var I=F.index.XN(J),u=F.index.getStartTime(J),w=F.index.getDuration(J);b?w=b=0:b=F.info.LW*w;return new sL([new GC(3,F,void 0,"otfCreateRequestInfoForSegment",J,u,w,0,b)],I)}; ega=function(F,J){if(!F.index.isLoaded()){var b=[],I=J.Z;J=J.D.split(",").filter(function(e){return e.length>0}); for(var u=0,w=0,M=0,q=/^(\d+)/,v=/r=(\d+)/,a=0;a0&&(J-=F.timestampOffset);var b=g.no(F)+J;pez(F,b);F.timestampOffset=J}; pez=function(F,J){g.nF(F.info.C.info)||F.info.C.info.Xb();F.T=J;if(g.nF(F.info.C.info)){var b=F.AF();F=F.info.C.C;for(var I=NaN,u=NaN,w=0;ot(b,w);){var M=ht(b,w);isNaN(I)&&(M.type===1936286840?I=M.data.getUint32(M.dataOffset+8):M.type===1836476516&&(I=g.DT(M)));if(M.type===1952867444){!I&&F&&(I=kZ(F));var q=g.US(M);isNaN(u)&&(u=Math.round(J*I)-q);var v=M;q+=u;if(v.data.getUint8(v.dataOffset)){var a=v.data;v=v.dataOffset+4;a.setUint32(v,Math.floor(q/4294967296));a.setUint32(v+4,q&4294967295)}else v.data.setUint32(v.dataOffset+ 4,q)}w=cd(M.type)?w+8:w+M.size}return!0}b=new tt(F.AF());F=F.D?b:new tt(new DataView(F.info.C.C.buffer));I=qx(F);F=b.pos;b.pos=0;if(v6(b)&&Fz(b,231))if(u=JM(b,!0),J=Math.floor(J*1E9/I),Math.ceil(Math.log(J)/Math.log(2)/8)>u)J=!1;else{for(I=u-1;I>=0;I--)b.C.setUint8(b.pos+I,J&255),J>>>=8;b.pos=F;J=!0}else J=!1;return J}; Zc=function(F,J){J=J===void 0?!1:J;var b=tM(F);F=J?0:F.info.W;return b||F}; tM=function(F){g.nF(F.info.C.info)||F.info.C.info.Xb();if(F.U&&F.info.type===6)return F.U.U2;if(g.nF(F.info.C.info)){var J=F.AF();var b=0;J=g.nk(J,1936286840);J=g.N(J);for(var I=J.next();!I.done;I=J.next())I=ffz(I.value),b+=I.ax[0]/I.timescale;b=b||NaN;if(!(b>=0))a:{b=F.AF();J=F.info.C.C;for(var u=I=0,w=0;ot(b,I);){var M=ht(b,I);if(M.type===1836476516)u=g.DT(M);else if(M.type===1836019558){!u&&J&&(u=kZ(J));if(!u){b=NaN;break a}var q=OS(M.data,M.dataOffset,1953653094),v=q;q=u;var a=OS(v.data,v.dataOffset, 1952868452);v=OS(v.data,v.dataOffset,1953658222);var e=Bd(a);Bd(a);e&2&&Bd(a);a=e&8?Bd(a):0;var K=Bd(v),p=K&1;e=K&4;var m=K&256,y=K&512,f=K&1024;K&=2048;var d=TK(v);p&&Bd(v);e&&Bd(v);for(var G=p=0;G2048?"":J.indexOf("https://")===0?J:""}; IZ=function(F,J,b){J.match(Gnm);return F(J,b).then(function(I){var u=g.jl3(I.xhr);return u?IZ(F,u,b):I.xhr})}; Ag=function(F,J,b){F=F===void 0?"":F;J=J===void 0?null:J;b=b===void 0?!1:b;g.uA.call(this);var I=this;this.sourceUrl=F;this.isLivePlayback=b;this.Jz=this.duration=0;this.isPremiere=this.SF=this.Z=this.isLiveHeadPlayable=this.isLive=this.U=!1;this.VN=this.De=0;this.isOtf=this.MW=!1;this.zj=(0,g.jR)();this.Tj=Infinity;this.C={};this.T=new Map;this.state=this.Jw=0;this.timeline=null;this.isManifestless=!1;this.Gj=[];this.W=null;this.kQ=0;this.D="";this.WN=NaN;this.qf=this.NW=this.timestampOffset=this.V= 0;this.G8=this.rf=NaN;this.MI=0;this.KW=this.N=!1;this.fW=[];this.dD={};this.eE=NaN;this.Po={X0W:function(q){uI(I,q)}}; var u;this.oI=(u=J)==null?void 0:u.pW("html5_use_network_error_code_enums");VsG=!!J&&J.pW("html5_modern_vp9_mime_type");var w;wd=!((w=J)==null||!w.pW("html5_enable_flush_during_seek"))&&g.O6();var M;MQ=!((M=J)==null||!M.pW("html5_enable_reset_audio_decoder"))&&g.O6()}; P1k=function(F){return g.le(F.C,function(J){return!!J.info.video&&J.info.video.C>=2160})}; ZdY=function(F){return g.le(F.C,function(J){return!!J.info.video&&J.info.video.isHdr()})}; vd=function(F){return g.le(F.C,function(J){return!!J.info.Ke})}; g.Buz=function(F){return g.le(F.C,function(J){return Zf(J.info)})}; Tua=function(F){return g.le(F.C,function(J){return J.info.video?J.info.video.projectionType==="EQUIRECTANGULAR":!1})}; rGC=function(F){return g.le(F.C,function(J){return J.info.video?J.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; Soo=function(F){return g.le(F.C,function(J){return J.info.video?J.info.video.projectionType==="MESH":!1})}; slC=function(F){return g.le(F.C,function(J){return J.info.video?J.info.video.stereoLayout===1:!1})}; YoG=function(F){return OIz(F.C,function(J){return J.info.video?J.RO():!0})}; Mv=function(F){return g.le(F.C,function(J){return Nv(J.gw.C)})}; uI=function(F,J){F.C[J.info.id]=J;F.T.set(lU(g.H4(J.info,F.MW)),J)}; $tv=function(F,J){return lU({itag:J.itag,lmt:F.MW?0:J.lmt||0,xtags:J.xtags})}; aZ=function(F,J,b){b=b===void 0?0:b;var I=F.mimeType||"",u=F.itag;var w=F.xtags;u=u?u.toString():"";w&&(u+=";"+w);w=u;if(F8(I)){var M=F.width||640;u=F.height||360;var q=F.fps,v=F.qualityLabel,a=F.colorInfo,e=F.projectionType,K;F.stereoLayout&&(K=C1a[F.stereoLayout]);var p=dta(F)||void 0;if(a==null?0:a.primaries)var m=Xez[a.primaries]||void 0;M=new Xk(M,u,q,e,K,void 0,v,p,m);I=qQ(I,M,Df[F.itag||""]);wd&&(I+="; enableflushduringseek=true");MQ&&(I+="; enableresetaudiodecoder=true")}var y;if(LF(I)){var f= F.audioSampleRate;K=F.audioTrack;f=new Yz(f?+f:void 0,F.audioChannels,F.spatialAudioType,F.isDrc,F.loudnessDb,F.trackAbsoluteLoudnessLkfs,F.audioQuality||"AUDIO_QUALITY_UNKNOWN");K&&(m=K.displayName,u=K.id,K=K.audioIsDefault,m&&(y=new g.bI(m,u||"",!!K)))}var d;F.captionTrack&&(v=F.captionTrack,K=v.displayName,m=v.vssId,u=v.languageCode,q=v.kind,v=v.id,K&&m&&u&&(d=new fOC(K,m,u,q,F.xtags,v)));K=Number(F.bitrate)/8;m=Number(F.contentLength);u=Number(F.lastModified);v=F.drmFamilies;q=F.type;b=b&&m?m/ b:0;F=Number(F.approxDurationMs);if(J&&v){var G={};v=g.N(v);for(a=v.next();!a.done;a=v.next())(a=vG[a.value])&&(G[a]=J[a])}return new kz(w,I,{audio:f,video:M,j3:y,Ke:G,LW:K,kA:b,contentLength:m,lastModified:u,captionTrack:d,streamType:q,approxDurationMs:F})}; e$=function(F,J,b){b=b===void 0?0:b;var I=F.type;var u=F.itag;var w=F.xtags;w&&(u=F.itag+";"+w);if(F8(I)){var M=(F.size||"640x360").split("x");M=new Xk(+M[0],+M[1],+F.fps,F.projection_type,+F.stereo_layout,void 0,F.quality_label,F.eotf,F.primaries);I=qQ(I,M,Df[F.itag]);wd&&(I+="; enableflushduringseek=true");MQ&&(I+="; enableresetaudiodecoder=true")}var q;if(LF(I)){var v=new Yz(+F.audio_sample_rate||void 0,+F.audio_channels||0,F.spatial_audio_type,!!F.drc);F.name&&(q=new g.bI(F.name,F.audio_track_id, F.isDefault==="1"))}var a;F.caption_display_name&&F.caption_vss_id&&F.caption_language_code&&(a=new fOC(F.caption_display_name,F.caption_vss_id,F.caption_language_code,F.caption_kind,F.xtags,F.caption_id));w=Number(F.bitrate)/8;var e=Number(F.clen),K=Number(F.lmt);b=b&&e?e/b:0;if(J&&F.drm_families){var p={};for(var m=g.N(F.drm_families.split(",")),y=m.next();!y.done;y=m.next())y=y.value,p[y]=J[y]}return new kz(u,I,{audio:v,video:M,j3:q,Ke:p,LW:w,kA:b,contentLength:e,lastModified:K,captionTrack:a, streamType:F.stream_type,approxDurationMs:Number(F.approx_duration_ms)})}; Qlm=function(F){return Bc(F,function(J){return"FORMAT_STREAM_TYPE_OTF"===J.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; Rgz=function(F){return Bc(F,function(J){return"FORMAT_STREAM_TYPE_OTF"===J.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; DtG=function(F,J){return F.timeline?uV(F.timeline.Z,J):F.Gj.length?uV(F.Gj,J):[]}; KW=function(F,J,b){J=J===void 0?"":J;b=b===void 0?"":b;F=new g.yJ(F,!0);F.set("alr","yes");b&&(b=NX7(decodeURIComponent(b)),F.set(J,encodeURIComponent(b)));return F}; hgo=function(F,J){var b=Q4(J,"id");b=b.replace(":",";");var I=Q4(J,"mimeType"),u=Q4(J,"codecs");I=u?I+'; codecs="'+u+'"':I;u=Number(Q4(J,"bandwidth"))/8;var w=Number(RA(J,"BaseURL").getAttribute(F.D+":contentLength")),M=F.duration&&w?w/F.duration:0;if(F8(I)){var q=Number(Q4(J,"width"));var v=Number(Q4(J,"height")),a=Number(Q4(J,"frameRate")),e=knY(Q4(J,F.D+":projectionType"));a:switch(Q4(J,F.D+":stereoLayout")){case "layout_left_right":var K=1;break a;case "layout_top_bottom":K=2;break a;default:K= 0}q=new Xk(q,v,a,e,K)}if(LF(I)){var p=Number(Q4(J,"audioSamplingRate"));var m=Number(Q4(J.getElementsByTagName("AudioChannelConfiguration")[0],"value"));v=OBv(Q4(J,F.D+":spatialAudioType"));p=new Yz(p,m,v);a:{m=Q4(J,"lang")||"und";if(v=RA(J,"Role"))if(e=Q4(v,"value")||"",g.Ea(onY,e)){v=m+"."+onY[e];a=e==="main";F=Q4(J,F.D+":langName")||m+" - "+e;m=new g.bI(F,v,a);break a}m=void 0}}if(J=RA(J,"ContentProtection"))if(J.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var y={};for(J= J.firstChild;J!=null;J=J.nextSibling)J instanceof Element&&/SystemURL/.test(J.nodeName)&&(F=J.getAttribute("type"),v=J.textContent,F&&v&&(y[F]=v.trim()))}else y=void 0;return new kz(b,I,{audio:p,video:q,j3:m,Ke:y,LW:u,kA:M,contentLength:w})}; knY=function(F){switch(F){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"}}; OBv=function(F){switch(F){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"}}; Utv=function(F,J){J=J===void 0?"":J;F.state=1;F.zj=(0,g.jR)();return EnC(J||F.sourceUrl).then(function(b){if(!F.iR()){F.Jw=b.status;b=b.responseText;var I=new DOMParser;b=UQ(I,Y0z(b),"text/xml").getElementsByTagName("MPD")[0];F.Tj=JGk(Q4(b,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(b.attributes){I=g.N(b.attributes);for(var u=I.next();!u.done;u=I.next())if(u=u.value,u.value==="http://youtube.com/yt/2012/10/10"){I=u.name.split(":")[1];break b}}I=""}F.D=I;F.isLive=F.Tj=F.Tj}; nna=function(F){F.W&&F.W.stop()}; cGv=function(F){var J=F.Tj;isFinite(J)&&(pW(F)?F.refresh():(J=Math.max(0,F.zj+J-(0,g.jR)()),F.W||(F.W=new g.ty(F.refresh,J,F),g.k(F,F.W)),F.W.start(J)))}; tsv=function(F){F=F.C;for(var J in F){var b=F[J].index;if(b.isLoaded())return b.oC()+1}return 0}; gd=function(F){return F.NW?F.NW-(F.V||F.timestampOffset):0}; mt=function(F){return F.qf?F.qf-(F.V||F.timestampOffset):0}; yy=function(F){if(!isNaN(F.WN))return F.WN;var J=F.C,b;for(b in J){var I=J[b].index;if(I.isLoaded()&&!Zf(J[b].info)){J=0;for(b=I.nj();b<=I.oC();b++)J+=I.getDuration(b);J/=I.iA();J=Math.round(J/.5)*.5;I.iA()>10&&(F.WN=J);return J}if(F.isLive&&(I=J[b],I.U2))return I.U2}return NaN}; ZBz=function(F,J){F=hW_(F.C,function(I){return I.index.isLoaded()}); if(!F)return NaN;F=F.index;var b=F.Ea(J);return F.getStartTime(b)===J?J:b=0&&u.segments.splice(w,1)}}}; L4a=function(F){for(var J in F.C)Zf(F.C[J].info)||vzk(F.C[J].index,Infinity)}; NQ=function(F,J,b){for(var I in F.C){var u=F.C[I].index,w=J,M=b;u.Hu&&(w&&(u.H0=Math.max(u.H0,w)),M&&(u.Jd=Math.max(u.Jd||0,M)))}b&&(F.eE=b/1E3)}; FSC=function(F){F.qf=0;F.NW=0;F.MI=0}; lI=function(F){return F.KW&&F.isManifestless?F.isLiveHeadPlayable:F.isLive}; qQ=function(F,J,b){fW===null&&(fW=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(VsG&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return fW||b!=="9"&&b!=="("?fW||b!=="9h"&&b!=="(h"||(F='video/webm; codecs="vp9.2"'):F='video/webm; codecs="vp9"',F;if(!fW&&!WG||F!=='video/webm; codecs="vp9"'&&F!=='video/webm; codecs="vp9.2"')return F; b="00";var I="08",u="01",w="01",M="01";F==='video/webm; codecs="vp9.2"'&&(b="02",I="10",J.primaries==="bt2020"&&(M=u="09"),J.U==="smpte2084"&&(w="16"),J.U==="arib-std-b67"&&(w="18"));return'video/webm; codecs="'+["vp09",b,"51",I,"01",u,w,M,"00"].join(".")+'"'}; ED=function(F,J,b){F=""+F+(J>49?"p60":J>32?"p48":"");J=sr()[F];if(J!=null&&J>0)return J;J=dd.get(F);if(J!=null&&J>0)return J;b=b==null?void 0:b.get(F);return b!=null&&b>0?b:8192}; JVm=function(F){this.PN=F;this.MI=this.DX=this.dD=this.D=this.Z=this.eE=this.Q2=this.Jz=this.Gj=!1;this.V=this.W=0;this.bR=!1;this.kQ=!0;this.nW=!1;this.hN=0;this.Bj=this.fW=!1;this.Se=!0;this.KW=this.zj=!1;this.C={};this.T1=this.disableAv1=this.Um=this.xo=this.cN=this.Om=this.U=this.Y=!1;this.YH=this.PN.S("html5_disable_aac_preference");this.If=Infinity;this.qf=0;this.NW=this.PN.hJ();this.xm=this.PN.experiments.pW("html5_enable_vp9_fairplay");this.GU=this.PN.S("html5_force_av1_for_testing");this.oI= g.eB(this.PN.experiments,"html5_av1_ordinal_cap");this.Uz=this.PN.S("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.M0=this.PN.S("html5_account_onesie_format_selection_during_format_filter");this.LW=g.eB(this.PN.experiments,"html5_max_byterate");this.N=this.PN.S("html5_sunset_aac_high_codec_family");this.WN=this.PN.S("html5_sunset_aac_high_codec_family");this.Kk=this.PN.S("html5_enable_iamf_audio");this.Ly=this.PN.experiments.pW("html5_allow_capability_merge");this.g9=this.PN.S("html5_prefer_h264_encrypted_appletv"); this.y6=this.PN.S("html5_enable_encrypted_av1")}; Hdk=function(F){if(F.Jz)return["f"];if(F.g9&&g.D$("appletv5"))return"9h 9 h 8 H (h ( *".split(" ");var J=["9h","9","h","8"];F.y6&&J.push("1e");J=J.concat(["(h","(","H","*"]);F.fW&&(J.unshift("1"),J.unshift("1h"));F.DX&&J.unshift("h");F.Tj&&(J=(bxo[F.Tj]||[F.Tj]).concat(J));return J}; csY=function(F){var J=["o","a","A"];F.qf===1&&(F.eE&&(J=["m","M"].concat(J)),F.Z&&(J=["mac3","MAC3"].concat(J)),F.D&&(J=["meac3","MEAC3"].concat(J)),F.Kk&&(J=["i","I"].concat(J)));F.Gj&&(J=["so","sa"].concat(J));!F.MI||F.dD||F.T||F.YH||J.unshift("a");F.Q2&&!F.N&&J.unshift("ah");F.T&&(J=(bxo[F.T]||[F.T]).concat(J));return J}; j$=function(F,J,b,I){J=J===void 0?{}:J;if(I===void 0?0:I)return J.disabled=1,0;if(g_(F.D,mp.AV1_CODECS)&&g_(F.D,mp.HEIGHT)&&g_(F.D,mp.BITRATE))return J.isCapabilityUsable=1,8192;try{var u=PLY();if(u)return J.localPref=u}catch(q){}I=1080;u=navigator.hardwareConcurrency;u<=2&&(I=480);J.coreCount=u;if(u=g.eB(F.experiments,"html5_default_av1_threshold"))I=J["default"]=u;!F.S("html5_disable_av1_arm_check")&&Nio()&&(J.isArm=1,I=240);if(F=F.D.Gj)J.mcap=F,I=Math.max(I,F);if(b){var w,M;if(F=(w=b.videoInfos.find(function(q){return c4(q)}))== null?void 0:(M=w.U)==null?void 0:M.powerEfficient)I=8192,J.isEfficient=1; b=b.videoInfos[0].video;w=Math.min(ED("1",b.fps),ED("1",30));J.perfCap=w;I=Math.min(I,w);b.isHdr()&&!F&&(J.hdr=1,I*=.75)}else b=ED("1",30),J.perfCap30=b,I=Math.min(I,b),b=ED("1",60),J.perfCap60=b,I=Math.min(I,b);return J.av1Threshold=I}; GF=function(F,J,b,I){this.flavor=F;this.keySystem=J;this.U=b;this.experiments=I;this.C={};this.oI=this.keySystemAccess=null;this.Ao=this.xA=-1;this.fD=null;this.T=!!I&&I.pW("edge_nonprefixed_eme");I&&I.pW("html5_enable_vp9_fairplay")}; PG=function(F){return F.T?!1:!F.keySystemAccess&&!!Vy()&&F.keySystem==="com.microsoft.playready"}; BG=function(F){return F.keySystem==="com.microsoft.playready"}; TF=function(F){return!F.keySystemAccess&&!!Vy()&&F.keySystem==="com.apple.fps.1_0"}; rd=function(F){return F.keySystem==="com.youtube.fairplay"}; S$=function(F){return F.keySystem==="com.youtube.fairplay.sbdl"}; g.sD=function(F){return F.flavor==="fairplay"}; Vy=function(){var F=window,J=F.MSMediaKeys;cx()&&!J&&(J=F.WebKitMediaKeys);return J&&J.isTypeSupported?J:null}; CW=function(F){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.B4&&!g.O6())return dD("45");if(g.c$||g.K6)return F.pW("edge_nonprefixed_eme");if(g.Yj)return dD("47");if(g.ia){if(F.pW("html5_enable_safari_fairplay"))return!1;if(F=g.eB(F,"html5_safari_desktop_eme_min_version"))return dD(F)}return!0}; I0z=function(F,J,b,I){var u=oR(),w=(b=u||b&&cx())?["com.youtube.fairplay"]:["com.widevine.alpha"];J&&w.unshift("com.youtube.widevine.l3");u&&I&&w.unshift("com.youtube.fairplay.sbdl");return b?w:F?[].concat(g.W(w),g.W(X1.playready)):[].concat(g.W(X1.playready),g.W(w))}; RZ=function(){this.U=this.zQ=0;this.C=Array.from({length:Qy.length}).fill(0)}; uCo=function(){}; w5o=function(){this.startTimeMs=(0,g.jR)();this.C=!1}; MYv=function(){this.C=new uCo}; AV_=function(F,J,b,I){I=I===void 0?1:I;b>=0&&(J in F.C||(F.C[J]=new RZ),F.C[J].Ic(b,I))}; qRY=function(F,J,b,I,u){var w=(0,g.jR)(),M=u?u(J):void 0,q;u=(q=M==null?void 0:M.zQ)!=null?q:1;if(u!==0){var v;q=(v=M==null?void 0:M.profile)!=null?v:b;AV_(F,q,w-I,u)}return J}; D1=function(F,J,b,I,u){if(J&&typeof J==="object"){var w=function(M){return qRY(F,M,b,I,u)}; if(bf(J))return J.then(w);if(vOC(J))return A8(J,w)}return qRY(F,J,b,I,u)}; a0m=function(){}; kj=function(F,J,b,I,u){I=I===void 0?!1:I;g.R.call(this);this.PN=J;this.useCobaltWidevine=I;this.UQ=u;this.U=[];this.T={};this.C={};this.callback=null;this.D=!1;this.Z=[];this.initialize(F,!b)}; KSa=function(F,J){F.callback=J;F.Z=[];CW(F.PN.experiments)?OD(F):eRa(F)}; OD=function(F){if(!F.iR())if(F.U.length===0)F.callback(F.Z);else{var J=F.U[0],b=F.T[J],I=p5m(F,b);if(oZ&&oZ.keySystem===J&&oZ.g7R===JSON.stringify(I))F.UQ("remksa",{re:!0}),gOG(F,b,oZ.keySystemAccess);else{var u,w;F.UQ("remksa",{re:!1,ok:(w=(u=oZ)==null?void 0:u.keySystem)!=null?w:""});oZ=void 0;(hg.isActive()?hg.Zq("emereq",function(){return navigator.requestMediaKeySystemAccess(J,I)}):navigator.requestMediaKeySystemAccess(J,I)).then(pa(function(M){gOG(F,b,M,I)}),pa(function(){F.D=!F.D&&F.T[F.U[0]].flavor=== "widevine"; F.D||F.U.shift();OD(F)}))}}}; gOG=function(F,J,b,I){if(!F.iR()){I&&(oZ={keySystem:J.keySystem,keySystemAccess:b,g7R:JSON.stringify(I)});J.keySystemAccess=b;if(BG(J)){b=VZ();I=g.N(Object.keys(F.C[J.flavor]));for(var u=I.next();!u.done;u=I.next())u=u.value,J.C[u]=!!b.canPlayType(u)}else{b=J.keySystemAccess.getConfiguration();if(b.audioCapabilities)for(I=g.N(b.audioCapabilities),u=I.next();!u.done;u=I.next())mO3(F,J,u.value);if(b.videoCapabilities)for(b=g.N(b.videoCapabilities),I=b.next();!I.done;I=b.next())mO3(F,J,I.value)}F.Z.push(J); F.useCobaltWidevine||F.S("html5_enable_vp9_fairplay")&&S$(J)?(F.U.shift(),OD(F)):F.callback(F.Z)}}; mO3=function(F,J,b){F.S("log_robustness_for_drm")?J.C[b.contentType]=b.robustness||!0:J.C[b.contentType]=!0}; p5m=function(F,J){var b={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(F.S("html5_enable_vp9_fairplay")&&rd(J))return b.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),b.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[b];BG(J)&&(b.initDataTypes=["keyids","cenc"]);for(var I=g.N(Object.keys(F.C[J.flavor])),u=I.next();!u.done;u=I.next()){u=u.value;var w=u.indexOf("audio/")===0,M=w?b.audioCapabilities:b.videoCapabilities;J.flavor!== "widevine"||F.D?M.push({contentType:u}):w?M.push({contentType:u,robustness:"SW_SECURE_CRYPTO"}):(g.B4&&g.D$("windows nt")&&!F.S("html5_drm_enable_moho")||M.push({contentType:u,robustness:"HW_SECURE_ALL"}),w=u,F.S("html5_enable_cobalt_experimental_vp9_decoder")&&u.includes("vp09")&&(w=u+"; experimental=allowed"),M.push({contentType:w,robustness:"SW_SECURE_DECODE"}),cG(F.PN)==="MWEB"&&(Hx()||k6())&&(F.UQ("swcrypto",{}),M.push({contentType:u,robustness:"SW_SECURE_CRYPTO"})))}return[b]}; eRa=function(F){if(Vy()&&(g.ia||x6&&F.S("html5_drm_support_ios_mweb")))F.Z.push(new GF("fairplay","com.apple.fps.1_0","",F.PN.experiments));else{var J=yV3(),b=g.xL(F.U,function(I){var u=F.T[I],w=!1,M=!1,q;for(q in F.C[u.flavor])J(q,I)&&(u.C[q]=!0,w=w||q.indexOf("audio/")===0,M=M||q.indexOf("video/")===0);return w&&M}); b&&F.Z.push(F.T[b]);F.U=[]}F.callback(F.Z)}; yV3=function(){var F=Vy();if(F){var J=F.isTypeSupported;return function(I,u){return J(u,I)}}var b=VZ(); return b&&(b.addKey||b.webkitAddKey)?function(I,u){return!!b.canPlayType(I,u)}:function(){return!1}}; ixY=function(F){this.experiments=F;this.C=2048;this.Z=0;this.eE=(this.N=this.S("html5_streaming_resilience"))?.5:.25;var J=J===void 0?0:J;this.T=g.eB(this.experiments,"html5_media_time_weight_prop")||J;this.D=this.S("html5_app_limited_aware_bwe");this.kQ=g.eB(this.experiments,"html5_sabr_timeout_penalty_factor")||1;this.Gj=(this.W=this.experiments.pW("html5_consider_end_stall"))&&UD;this.U=this.experiments.pW("html5_measure_max_progress_handling");this.Tj=this.S("html5_treat_requests_pre_elbow_as_metadata"); this.V=this.S("html5_media_time_weight")||!!this.T;this.Y=g.eB(this.experiments,"html5_streaming_fallback_byterate");this.S("html5_sabr_live_audio_early_return_fix")&&UD&&(this.C=65536)}; zRC=function(F,J){this.C=void 0;this.experimentIds=F?F.split(","):[];this.flags=HT(J||"","&");F={};J=g.N(this.experimentIds);for(var b=J.next();!b.done;b=J.next())F[b.value]=!0;this.experiments=F}; g.eB=function(F,J){F=F.flags[J];JSON.stringify(F);return Number(F)||0}; xj=function(F,J){return(F=F.flags[J])?F.toString():""}; NMz=function(F){if(F=F.flags.html5_web_po_experiment_ids)if(F=F.replace(/\[ *(.*?) *\]/,"$1"))return F.split(",").map(Number);return[]}; l07=function(F){if(F.C)return F.C;if(F.experimentIds.length<=1)return F.C=F.experimentIds,F.C;var J=[].concat(g.W(F.experimentIds)).map(function(I){return Number(I)}); J.sort();for(var b=J.length-1;b>0;--b)J[b]-=J[b-1];F.C=J.map(function(I){return I.toString()}); F.C.unshift("v1");return F.C}; WSG=function(F){return f0v.then(F)}; nW=function(F,J,b){this.experiments=F;this.fW=J;this.qf=b===void 0?!1:b;this.eE=!!g.kC("cast.receiver.platform.canDisplayType");this.N={};this.Y=!1;this.U=new Map;this.V=!0;this.Z=this.D=!1;this.C=new Map;this.Gj=0;this.kQ=this.experiments.pW("html5_disable_vp9_encrypted");this.T=this.experiments.pW("html5_enable_encrypted_av1");F=g.kC("cast.receiver.platform.getValue");this.WN=g.eB(this.experiments,"html5_kaios_max_resolution");this.W=!this.eE&&F&&F("max-video-resolution-vpx")||null;dOz(this)}; J1a=function(F,J,b){b=b===void 0?1:b;var I=J.itag;if(I==="0")return!0;var u=J.mimeType;if(J.Xb()&&oR()&&F.experiments.pW("html5_appletv_disable_vp9"))return"dwebm";if(J.YQ==="1e"&&!F.T)return"dav1enc";if(c4(J)&&F.Y)return"dav1";if(J.video&&(J.video.isHdr()||J.video.primaries==="bt2020")&&!(g_(F,mp.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high), (video-dynamic-range: high)").matches||window.screen.pixelDepth>24&&window.matchMedia("(color-gamut: p3)").matches)))return"dhdr";if(I=== "338"&&!(g.B4?dD(53):g.Yj&&dD(64)))return"dopus";var w;if(F.WN&&tg&&((w=J.video)==null?void 0:w.C)>F.WN)return"kaios";w=b;w=w===void 0?1:w;b={};J.video&&(J.video.width&&(b[mp.WIDTH.name]=J.video.width),J.video.height&&(b[mp.HEIGHT.name]=J.video.height),J.video.fps&&(b[mp.FRAMERATE.name]=J.video.fps*w),J.video.U&&(b[mp.EOTF.name]=J.video.U),J.LW&&(b[mp.BITRATE.name]=J.LW*8*w),J.YQ==="("&&(b[mp.CRYPTOBLOCKFORMAT.name]="subsample"),J.video.projectionType==="EQUIRECTANGULAR"||J.video.projectionType=== "EQUIRECTANGULAR_THREED_TOP_BOTTOM"||J.video.projectionType==="MESH")&&(b[mp.DECODETOTEXTURE.name]="true");J.audio&&J.audio.numChannels&&(b[mp.CHANNELS.name]=J.audio.numChannels);F.D&&O5(J)&&(b[mp.EXPERIMENTAL.name]="allowed");w=g.N(Object.keys(mp));for(var M=w.next();!M.done;M=w.next()){M=mp[M.value];var q;if(q=b[M.name])if(q=!(M===mp.EOTF&&J.mimeType.indexOf("vp09.02")>0)){q=M;var v=J;q=!(F.experiments.pW("html5_ignore_h264_framerate_cap")&&q===mp.FRAMERATE&&eE4(v))}if(q)if(g_(F,M))if(F.W){if(F.W[M.name]< b[M.name])return M.name}else u=u+"; "+M.name+"="+b[M.name];else if(oT(J)&&M===mp.EOTF)return"dvp92"}F.eE&&J.video&&J.video.C>1080&&J.Ke&&(u+="; hdcp=2.2");return I==="227"?"hqcenc":I!=="585"&&I!=="588"&&I!=="583"&&I!=="586"&&I!=="584"&&I!=="587"&&I!=="591"&&I!=="592"||F.experiments.pW("html5_enable_new_hvc_enc")?F.isTypeSupported(u)?!0:"tpus":"newhvc"}; Z1=function(){var F=k6()&&!dD(29),J=g.D$("google tv")&&g.D$("chrome")&&!dD(30);return F||J?!1:i0_()}; EO7=function(F,J,b){var I=480;J=g.N(J);for(var u=J.next();!u.done;u=J.next()){u=u.value;var w=u.video.C;w<=1080&&w>I&&J1a(F,u,b)===!0&&(I=w)}return I}; g.HG=function(F,J){J=J===void 0?!1:J;return Z1()&&F.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!J&&F.canPlayType(VZ(),"application/x-mpegURL")?!0:!1}; GAo=function(F){jYa(function(){for(var J=g.N(Object.keys(mp)),b=J.next();!b.done;b=J.next())g_(F,mp[b.value])})}; g_=function(F,J){J.name in F.N||(F.N[J.name]=VYk(F,J));return F.N[J.name]}; VYk=function(F,J){if(F.W)return!!F.W[J.name];if(J===mp.BITRATE&&F.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!F.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(J===mp.AV1_CODECS)return F.isTypeSupported("video/mp4; codecs="+J.valid)&&!F.isTypeSupported("video/mp4; codecs="+J.rK);if(J.video){var b='video/webm; codecs="vp9"';F.isTypeSupported(b)||(b='video/mp4; codecs="avc1.4d401e"')}else b='audio/webm; codecs="opus"', F.isTypeSupported(b)||(b='audio/mp4; codecs="mp4a.40.2"');return F.isTypeSupported(b+"; "+J.name+"="+J.valid)&&!F.isTypeSupported(b+"; "+J.name+"="+J.rK)}; Ppa=function(F){F.D||(F.D=!0,LW(F))}; LW=function(F){F.Z=!0;F.experiments.pW("html5_ssap_update_capabilities_on_change")&&BMa(F)}; TMG=function(F,J){var b=0;F.U.has(J)&&(b=F.U.get(J).Lp);F.U.set(J,{Lp:b+1,Jf:Math.pow(2,b+1)});LW(F)}; at=function(F){for(var J=[],b=g.N(F.C.keys()),I=b.next();!I.done;I=b.next()){I=I.value;var u=F.C.get(I);J.push(I+"_"+u.maxWidth+"_"+u.maxHeight)}return J.join(".")}; BMa=function(F){F.Tj=[];for(var J=g.N(F.C.values()),b=J.next();!b.done;b=J.next()){b=b.value;var I=b.YQ;F.experiments.pW("html5_ssap_force_mp4_aac")&&I!=="a"&&I!=="h"||F.U.has(I)||F.Y&&(I==="1"||I==="1h"||F.T&&I==="1e")||F.Tj.push(b)}}; UC3=function(F,J){for(var b=new Map,I=g.N(F.C.keys()),u=I.next();!u.done;u=I.next()){u=u.value;var w=u.split("_")[0];J.has(w)||b.set(u,F.C.get(u))}F.C=b}; n5z=function(F,J,b){var I,u=((I=b.video)==null?void 0:I.fps)||0;I=J+"_"+u;var w=!!b.audio,M={itag:b.itag,YQ:J,Cd:w};if(w)M.numChannels=b.audio.numChannels;else{var q=b.video;M.maxWidth=q==null?void 0:q.width;M.maxHeight=q==null?void 0:q.height;M.maxFramerate=u;g_(F,mp.BITRATE)&&(M.maxBitrateBps=b.LW*8);M.sN=q==null?void 0:q.isHdr()}q=F.C.get(I);q?w||(b=Math.max(q.maxWidth||0,q.maxHeight||0)>Math.max(M.maxWidth||0,M.maxHeight||0)?q:M,J={itag:b.itag,YQ:J,Cd:w,maxWidth:Math.max(q.maxWidth||0,M.maxWidth|| 0),maxHeight:Math.max(q.maxHeight||0,M.maxHeight||0),maxFramerate:u,sN:b.sN},g_(F,mp.BITRATE)&&(J.maxBitrateBps=b.maxBitrateBps),F.C.set(I,J)):F.C.set(I,M)}; trG=function(F,J,b){var I,u=((I=b.video)==null?void 0:I.fps)||0;I=J+"_"+u;var w=!!b.audio,M=F.C.get(I);a:{var q=F.C.get(I),v=!!b.audio;if(q){if(v){var a=!1;break a}var e;if(!v&&((a=b.video)==null?0:a.height)&&q.maxHeight&&q.maxHeight>=((e=b.video)==null?void 0:e.height)){a=!1;break a}}a=!0}a&&(a=b.itag,J=M?M:{itag:a,YQ:J,Cd:w},w?J.numChannels=b.audio.numChannels:(w=b.video,J.maxWidth=w==null?void 0:w.width,J.maxHeight=w==null?void 0:w.height,J.maxFramerate=u,g_(F,mp.BITRATE)&&(J.maxBitrateBps=b.LW* 8),J.sN=w==null?void 0:w.isHdr()),F.C.set(I,J))}; dOz=function(F){var J;(J=navigator.mediaCapabilities)!=null&&J.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(b){b.smooth&&b.powerEfficient&&(F.Gj=2160)})}; F_=function(){g.uA.call(this);this.items={}}; JP=function(){g.lx.apply(this,arguments)}; bb=function(){g.fg.apply(this,arguments)}; rVm=function(F,J,b){this.encryptedClientKey=J;this.D=b;this.C=new Uint8Array(F.buffer,0,16);this.T=new Uint8Array(F.buffer,16)}; SR3=function(F){F.U||(F.U=new JP(F.C));return F.U}; Iw=function(F){try{return lV(F)}catch(J){return null}}; sYz=function(F,J){if(!J&&F)try{J=JSON.parse(F)}catch(u){}if(J){F=J.clientKey?Iw(J.clientKey):null;var b=J.encryptedClientKey?Iw(J.encryptedClientKey):null,I=J.keyExpiresInSeconds?Number(J.keyExpiresInSeconds)*1E3+(0,g.jR)():null;F&&b&&I&&(this.C=new rVm(F,b,I));J.onesieUstreamerConfig&&(this.onesieUstreamerConfig=Iw(J.onesieUstreamerConfig)||void 0);this.baseUrl=J.baseUrl}}; wN=function(){this.data=new Uint8Array(2048);this.pos=0;ub||(ub=VK("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}; Mn=function(F,J){F.add(J==null||isNaN(J)?0:J+1)}; AP=function(F){this.C=this.U=0;this.alpha=Math.exp(Math.log(.5)/F)}; qn=function(F){this.U=F===void 0?15:F;this.values=new Float64Array(176);this.C=new Float64Array(11);this.T=new Float64Array(16)}; vu=function(F,J,b,I){b=b===void 0?.5:b;I=I===void 0?0:I;this.resolution=J;this.U=0;this.T=!1;this.Y8=!0;this.C=Math.round(F*this.resolution);this.values=Array(this.C);for(F=0;F0)J=F.byterate,this.Tj=!0;else{var I; b=(((I=navigator.connection)==null?void 0:I.downlink)||0)*64*1024;b>0&&(J=b,this.Tj=!0)}this.T.Zj(this.policy.W,J);F.delay>0&&this.Y.Zj(1,Math.min(F.delay,2));F.stall>0&&this.V.Zj(1,F.stall);F.init>0&&(this.qf=Math.min(F.init,this.qf));F.interruptions&&(this.Z=this.Z.concat(F.interruptions),this.Z.length>16&&this.Z.pop());this.eE=(0,g.jR)();this.policy.V>0&&(this.dD=new g.ty(this.KW,this.policy.V,this),g.k(this,this.dD),this.dD.start())}; e8=function(F,J,b,I){F.T.Zj(I===void 0?J:I,b/J);F.W=(0,g.jR)()}; $Oa=function(F){F.D||(F.D=(0,g.jR)());F.policy.N&&(F.W=(0,g.jR)())}; Cpv=function(F,J){if(F.D){var b=J-F.D;if(b<6E4){if(b>1E3){var I=F.interruptions;I.push(Math.ceil(b));I.sort(function(u,w){return w-u}); I.length>16&&I.pop()}F.kQ+=b}}F.D=J}; KH=function(F,J,b,I,u,w){w=w===void 0?!1:w;F.fW.Zj(J,b/J);F.W=(0,g.jR)();u||F.N.Zj(1,J-I);w||(F.D=0);F.eE>-1&&(0,g.jR)()-F.eE>3E4&&X57(F)}; pH=function(F,J,b){J=Math.max(J,F.U.C);F.V.Zj(1,b/J)}; gN=function(F){F=F.Y.X3()+F.WN.X3()||0;F=isNaN(F)?.5:F;return F=Math.min(F,5)}; m$=function(F,J,b){isNaN(b)||(F.Gj+=b);isNaN(J)||(F.zj+=J)}; yi=function(F){F=F.T.X3();return F>0?F:1}; ib=function(F,J,b){J=J===void 0?!1:J;b=b===void 0?1048576:b;var I=yi(F);I=1/((F.V.X3()||0)*F.policy.Tj+1/I);var u=F.fW.X3();u=u>0?u:1;var w=Math.max(I,u);F.policy.D>0&&u=4E3}; RRY=function(F){this.experiments=F;this.C=17;this.T=13E4;this.W=.5;this.U=!1;this.eE=this.S("html5_use_histogram_for_bandwidth");this.Z=!1;this.D=g.eB(this.experiments,"html5_auxiliary_estimate_weight");this.Tj=g.eB(this.experiments,"html5_stall_factor")||1;this.V=g.eB(this.experiments,"html5_check_for_idle_network_interval_ms");this.Y=this.experiments.pW("html5_trigger_loader_when_idle_network");this.N=this.experiments.pW("html5_sabr_fetch_on_idle_network_preloaded_players")}; kAY=function(F,J){F=F===void 0?{}:F;J=J===void 0?{}:J;g.R.call(this);var b=this;this.values=F;this.Tz=J;this.U={};this.T=this.C=0;this.Z=new g.ty(function(){DO4(b)},1E4); g.k(this,this.Z)}; Nn=function(F,J){Ox_(F,J);return F.values[J]&&F.Tz[J]?F.values[J]/Math.pow(2,F.C/F.Tz[J]):0}; Ox_=function(F,J){F.values[J]||(J=EX7(),F.values=J.values||{},F.Tz=J.halfLives||{},F.U=J.values?Object.assign({},J.values):{})}; DO4=function(F){var J=EX7();if(J.values){J=J.values;for(var b={},I=g.N(Object.keys(F.values)),u=I.next();!u.done;u=I.next())u=u.value,J[u]&&F.U[u]&&(F.values[u]+=J[u]-F.U[u]),b[u]=Nn(F,u);F.U=b}J=F.Tz;b={};b.values=F.U;b.halfLives=J;g.rm("yt-player-memory",b,2592E3)}; X_=function(F,J,b,I,u){g.R.call(this);this.webPlayerContextConfig=J;this.A4=I;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.pF=this.xm=this.Jz=this.MJ=this.userDisplayName=this.userDisplayImage=this.ir="";this.C={};this.NW={};this.controlsType="0";this.M0=NaN;this.cN=!1;this.K7=(0,g.jR)();this.Kk=0;this.Ok=this.Ys=!1;this.Ar=!0;this.preferGapless=this.G8=this.zU=this.T=this.Px=this.Vk=!1;this.fL=[];this.xH=!1;F=F?g.To(F):{};J&&J.csiPageType&&(this.csiPageType=J.csiPageType);J&&J.csiServiceName&& (this.csiServiceName=J.csiServiceName);J&&J.preferGapless&&(this.preferGapless=J.preferGapless);this.experiments=new zRC(J?J.serializedExperimentIds:F.fexp,J?J.serializedExperimentFlags:F.fflags);this.forcedExperiments=J?J.serializedForcedExperimentIds:u8("",F.forced_experiments)||void 0;this.cspNonce=(J==null?0:J.cspNonce)?J.cspNonce:u8("",F.csp_nonce);this.S("web_player_deprecated_uvr_killswitch");try{var w=document.location.toString()}catch(n){w=""}this.Uz=w;this.ancestorOrigins=(I=window.location.ancestorOrigins)? Array.from(I):[];this.Z=JC(!1,J?J.isEmbed:F.is_embed);if(J&&J.device){if(I=J.device,I.androidOsExperience&&(this.C.caoe=""+I.androidOsExperience),I.androidPlayServicesVersion&&(this.C.capsv=""+I.androidPlayServicesVersion),I.brand&&(this.C.cbrand=I.brand),I.browser&&(this.C.cbr=I.browser),I.browserVersion&&(this.C.cbrver=I.browserVersion),I.cobaltReleaseVehicle&&(this.C.ccrv=""+I.cobaltReleaseVehicle),this.C.c=I.interfaceName||"WEB",this.C.cver=I.interfaceVersion||"html5",I.interfaceTheme&&(this.C.ctheme= I.interfaceTheme),this.C.cplayer=I.interfacePlayerType||"UNIPLAYER",I.model&&(this.C.cmodel=I.model),I.network&&(this.C.cnetwork=I.network),I.os&&(this.C.cos=I.os),I.osVersion&&(this.C.cosver=I.osVersion),I.platform&&(this.C.cplatform=I.platform),w=xj(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),w==="all"||w==="once")I.chipset&&(this.NW.cchip=I.chipset),I.cobaltAppVersion&&(this.NW.ccappver=I.cobaltAppVersion),I.firmwareVersion&&(this.NW.cfrmver=I.firmwareVersion),I.deviceYear&&(this.NW.crqyear= I.deviceYear)}else this.C.c=F.c||"web",this.C.cver=F.cver||"html5",this.C.cplayer="UNIPLAYER";this.loaderUrl=J?this.Z||oOk(this)&&J.loaderUrl?J.loaderUrl||"":this.Uz:this.Z||oOk(this)&&F.loaderUrl?u8("",F.loaderUrl):this.Uz;this.Z&&g.RG("yt.embedded_player.embed_url",this.loaderUrl);this.V=tj(this.loaderUrl,hRz);I=this.loaderUrl;var M=M===void 0?!1:M;this.Yf=nT(tj(I,cVY),I,M,"Trusted Ad Domain URL");this.MI=JC(!1,F.privembed);this.protocol=this.Uz.indexOf("http:")===0?"http":"https";this.ME=ZY((J? J.customBaseYoutubeUrl:F.BASE_YT_URL)||"")||ZY(this.Uz)||this.protocol+"://www.youtube.com/";M=J?J.eventLabel:F.el;I="detailpage";M==="adunit"?I=this.Z?"embedded":"detailpage":M==="embedded"||this.V?I=b8(I,M,UOJ):M&&(I="embedded");this.WN=I;T$_();M=null;I=J?J.playerStyle:F.ps;w=g.te(xOJ,I);!I||w&&!this.V||(M=I);this.playerStyle=M;this.W=g.te(xOJ,this.playerStyle);this.houseBrandUserStatus=J==null?void 0:J.houseBrandUserStatus;this.eE=this.W&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard"; this.oV=!this.eE;this.qf=JC(!1,F.disableplaybackui);this.disablePaidContentOverlay=JC(!1,J==null?void 0:J.disablePaidContentOverlay);this.disableSeek=JC(!1,J==null?void 0:J.disableSeek);this.enableSpeedOptions=(J==null?void 0:J.enableSpeedOptions)||(VZ().defaultPlaybackRate?lb||g.Z$||tg?g.Yj&&dD("20")||g.B4&&dD("4")||g.fH&&dD("11")||U6():!(g.fH&&!g.D$("chrome")||lb||g.D$("android")||g.D$("silk")):!1);this.nL=JC(!1,F.enable_faster_speeds);var q;this.supportsVarispeedExtendedFeatures=(q=J==null?void 0: J.supportsVarispeedExtendedFeatures)!=null?q:!1;this.U=JC(this.playerStyle==="blazer",F.is_html5_mobile_device||J&&J.isMobileDevice);this.zj=tR()||Hx();this.v0=this.S("mweb_allow_background_playback")?!1:this.U&&!this.W;this.dD=Sg();this.lJ=g.Wu;var v;this.qh=!!(J==null?0:(v=J.embedsHostFlags)==null?0:v.optOutApiDeprecation);var a;this.mq=!!(J==null?0:(a=J.embedsHostFlags)==null?0:a.allowPfpImaIntegration);this.Ga=this.S("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var e;J?J.hideInfo!== void 0&&(e=!J.hideInfo):e=F.showinfo;this.gT=g.dN(this)&&!this.qh||JC(!E7(this)&&!j8(this)&&!this.W,e);this.DY=J?!!J.mobileIphoneSupportsInlinePlayback:JC(!1,F.playsinline);q=this.U&&GB&&Vi!=null&&Vi>0&&Vi<=2.3;v=J?J.useNativeControls:F.use_native_controls;this.Y=g.dN(this)&&this.U;a=this.U&&!this.Y;v=g.Pu(this)||!q&&JC(a,v)?"3":"1";this.disableOrganicUi=!(J==null||!J.disableOrganicUi);a=J?J.controlsType:F.controls;this.controlsType=this.disableOrganicUi?"0":a!=="0"&&a!==0?v:"0";this.R5=this.U;this.color= b8("red",J?J.progressBarColor:F.color,nOv);this.eD=this.controlsType==="3";this.T1=!this.Z;this.Wu=(v=!this.T1&&!j8(this)&&!this.eE&&!this.W&&!E7(this))&&!this.eD&&this.controlsType==="1";this.Ly=g.Bu(this)&&v&&this.controlsType==="0"&&!this.Wu&&!(J==null?0:J.embedsEnableEmc3ds);this.Vc=this.fN=q;this.Se=(this.controlsType==="3"||this.U||JC(!1,F.use_media_volume))&&!this.Y;this.OM=x6&&!g.iV(601)?!1:!0;this.Sl=this.Z||!1;this.oI=j8(this)?"":(this.loaderUrl||F.post_message_origin||"").substring(0,128); this.widgetReferrer=u8("",J?J.widgetReferrer:F.widget_referrer);var K;J?J.disableCastApi&&(K=!1):K=F.enablecastapi;K=!this.V||JC(!0,K);q=!0;J&&J.disableMdxCast&&(q=!1);this.LF=this.S("enable_cast_for_web_unplugged")&&g.TB(this)&&q||g.sV(this)&&q||K&&q&&this.controlsType==="1"&&!this.U&&(j8(this)||g.Bu(this)||g.rN(this));this.HQ=!!window.document.pictureInPictureEnabled||rk();K=J?!!J.supportsAutoplayOverride:JC(!1,F.autoplayoverride);this.IP=!(this.U&&!g.dN(this))&&!g.D$("nintendo wiiu")||K;this.D4= (J?!!J.enableMutedAutoplay:JC(!1,F.mutedautoplay))&&!1;K=(j8(this)||E7(this))&&this.playerStyle==="blazer";this.rZ=J?!!J.disableFullscreen:!JC(!0,F.fs);q=g.q1(g.S8(this))&&g.dN(this);this.Om=!this.rZ&&(K||g.mu())&&!q;K=k6()&&dD(58)&&!Hx();q=hY||typeof MediaSource==="undefined";this.ZY=this.S("uniplayer_block_pip")&&(K||q)||this.S("html5_disable_pip_with_standard_api");K=g.dN(this)&&!this.qh;var p;J?J.disableRelatedVideos!==void 0&&(p=!J.disableRelatedVideos):p=F.rel;this.y6=K||JC(!this.W,p);this.Mh= JC(!1,J?J.enableContentOwnerRelatedVideos:F.co_rel);this.N=Hx()&&Vi>0&&Vi<=4.4?"_top":"_blank";this.n7=g.rN(this);this.PS=JC(this.playerStyle==="blazer",J?J.enableCsiLogging:F.enablecsi);switch(this.playerStyle){case "blogger":p="bl";break;case "gmail":p="gm";break;case "gac":p="ga";break;case "books":p="gb";break;case "docs":case "flix":p="gd";break;case "duo":p="gu";break;case "google-live":p="gl";break;case "google-one":p="go";break;case "play":p="gp";break;case "chat":p="hc";break;case "hangouts-meet":p= "hm";break;case "photos-edu":case "picasaweb":p="pw";break;default:p="yt"}this.Tj=p;this.Gj=u8("",J?J.authorizedUserIndex:F.authuser);this.If=g.dN(this)&&(this.MI||!i8z()||this.zj);var m;J?J.disableWatchLater!==void 0&&(m=!J.disableWatchLater):m=F.showwatchlater;this.YH=((p=!this.If)||!!this.Gj&&p)&&JC(!this.eE,this.V?m:void 0);this.xo=J?J.isMobileDevice||!!J.disableKeyboardControls:JC(!1,F.disablekb);this.loop=JC(!1,F.loop);this.pageId=u8("",J?J.initialDelegatedSessionId:F.pageid);this.SD=JC(!0, F.canplaylive);this.nW=JC(!1,F.livemonitor);this.disableSharing=JC(this.W,J?J.disableSharing:F.ss);(m=J&&this.S("fill_video_container_size_override_from_wpcc")?J.videoContainerOverride:F.video_container_override)?(p=m.split("x"),p.length!==2?m=null:(m=Number(p[0]),p=Number(p[1]),m=isNaN(m)||isNaN(p)||m*p<=0?null:new g.gl(m,p))):m=null;this.qa=m;this.mute=J?!!J.startMuted:JC(!1,F.mute);this.storeUserVolume=!this.mute&&JC(this.controlsType!=="0",J?J.storeUserVolume:F.store_user_volume);m=J?J.annotationsLoadPolicy: F.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:b8(void 0,m,s7);this.captionsLanguagePreference=J?J.captionsLanguagePreference||"":u8("",F.cc_lang_pref);m=b8(2,J?J.captionsLanguageLoadPolicy:F.cc_load_policy,s7);this.controlsType==="3"&&m===2&&(m=3);this.Um=m;this.Q2=J?J.hl||"en_US":u8("en_US",F.hl);this.region=J?J.contentRegion||"US":u8("US",F.cr);this.hostLanguage=J?J.hostLanguage||"en":u8("en",F.host_language);this.jn=!this.MI&&Math.random()=480;this.schedule=new aw(q,new ixY(this.experiments),u);g.k(this,this.schedule);var y;this.enableSafetyMode= (y=J==null?void 0:J.initialEnableSafetyMode)!=null?y:JC(!1,F.enable_safety_mode);u=this.qf?!1:j8(this)&&this.playerStyle!=="blazer";var f;J?J.disableAutonav!=null&&(f=!J.disableAutonav):f=F.allow_autonav;this.g9=JC(u,!this.eE&&f);this.sendVisitorIdHeader=J?!!J.sendVisitorIdHeader:JC(!1,F.send_visitor_id_header);var d;this.playerStyle==="docs"&&(J?d=J.disableNativeContextMenu:d=F.disable_native_context_menu);this.disableNativeContextMenu=JC(!1,d);this.c5=En(this)&&this.S("enable_skip_intro_button"); this.embedConfig=u8("",J?J.serializedEmbedConfig:F.embed_config);this.kQ=AC(F,g.dN(this));this.T=this.kQ==="EMBEDDED_PLAYER_MODE_PFL";this.embedsErrorLinks=!(J==null||!J.embedsErrorLinks);this.Tc=JC(!1,F.full_window);var G;this.bR=!((G=this.webPlayerContextConfig)==null?0:G.chromeless);var P;this.livingRoomAppMode=b8("LIVING_ROOM_APP_MODE_UNSPECIFIED",F.living_room_app_mode||(J==null?void 0:(P=J.device)==null?void 0:P.livingRoomAppMode),HxY);var r;f=Ig(NaN,J==null?void 0:(r=J.device)==null?void 0: r.deviceYear);isNaN(f)||(this.deviceYear=f);this.transparentBackground=J?!!J.transparentBackground:JC(!1,F.transparent_background);this.showMiniplayerButton=J?!!J.showMiniplayerButton:JC(!1,F.show_miniplayer_button);var Q;g.dN(this)&&!(J==null?0:(Q=J.embedsHostFlags)==null?0:Q.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=J?!!J.externalFullscreen:JC(!1,F.external_fullscreen);this.showMiniplayerUiWhenMinimized=J?!!J.showMiniplayerUiWhenMinimized:JC(!1,F.use_miniplayer_ui); var D;this.Ar=(D=F.show_loop_video_toggle)!=null?D:!0;this.rf=Math.random()<1E-4;this.T8=F.onesie_hot_config||(J==null?0:J.onesieHotConfig)?new sYz(F.onesie_hot_config,J==null?void 0:J.onesieHotConfig):void 0;this.isTectonic=J?!!J.isTectonic:!!F.isTectonic;this.playerCanaryState=b;this.playerCanaryStage=J==null?void 0:J.canaryStage;this.GU=new kAY;g.k(this,this.GU);this.Px=JC(!1,F.force_gvi);this.datasyncId=(J==null?void 0:J.datasyncId)||g.cT("DATASYNC_ID");this.Uk=g.cT("LOGGED_IN",!1);this.B9=(J== null?void 0:J.allowWoffleManagement)||!1;this.eB=Infinity;this.Gc=NaN;this.livingRoomPoTokenId=J==null?void 0:J.livingRoomPoTokenId;this.S("html5_high_res_logging_always")?this.zU=!0:this.zU=Math.random()*100=0&&F0&&F.rf&&(I.sort(),g.rQ(new g.hC("Player client parameters changed after startup",I)));F.userAge=Ig(F.userAge,J.user_age);F.ir=u8(F.ir,J.user_display_email);F.userDisplayImage=u8(F.userDisplayImage,J.user_display_image);g.LT(F.userDisplayImage)||(F.userDisplayImage= "");F.userDisplayName=u8(F.userDisplayName,J.user_display_name);F.MJ=u8(F.MJ,J.user_gender);F.csiPageType=u8(F.csiPageType,J.csi_page_type);F.csiServiceName=u8(F.csiServiceName,J.csi_service_name);F.PS=JC(F.PS,J.enablecsi);F.pageId=u8(F.pageId,J.pageid);if(b=J.enabled_engage_types)F.enabledEngageTypes=new Set(b.split(","));J.living_room_session_po_token&&(F.jZ=J.living_room_session_po_token.toString())}; Qi=function(F,J){return!F.W&&k6()&&dD(55)&&F.controlsType==="3"&&!J}; g.Rw=function(F){F=Y2(F.ME);return F==="www.youtube-nocookie.com"?"www.youtube.com":F}; D7=function(F,J,b){return F.protocol+"://i1.ytimg.com/vi/"+J+"/"+(b||"hqdefault.jpg")}; k2=function(F){return j8(F)&&!g.TB(F)}; g.Pu=function(F){return F.S("html5_local_playsinline")?x6&&!g.iV(602)&&!("playsInline"in VZ()):x6&&!F.DY||g.D$("nintendo wiiu")?!0:!1}; cG=function(F){return F.C.c}; g.jB=function(F){return/^TVHTML5/.test(cG(F))}; g.O7=function(F){return cG(F)==="TVHTML5"}; oOk=function(F){return cG(F)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; Zxz=function(F){return F.C.cmodel==="CHROMECAST ULTRA/STEAK"||F.C.cmodel==="CHROMECAST/STEAK"}; g.ow=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; En=function(F){return/web/i.test(cG(F))}; g.hP=function(F){return cG(F).toUpperCase()==="WEB"}; CH=function(F){return cG(F)==="WEB_KIDS"}; g.TB=function(F){return cG(F)==="WEB_UNPLUGGED"}; cu=function(F){return cG(F)==="TVHTML5_UNPLUGGED"}; g.dX=function(F){return g.TB(F)||cG(F)==="TV_UNPLUGGED_CAST"||cu(F)}; g.sV=function(F){return cG(F)==="WEB_REMIX"}; g.U7=function(F){return cG(F)==="WEB_EMBEDDED_PLAYER"}; g.nH=function(F){return(F.deviceIsAudioOnly||!g.B4||hY||F.controlsType==="3"?!1:g.Z$?F.Z&&g.iV(51):!0)||(F.deviceIsAudioOnly||!g.Yj||hY||F.controlsType==="3"?!1:g.Z$?F.Z&&g.iV(48):g.iV(38))||(F.deviceIsAudioOnly||!g.fH||hY||F.controlsType==="3"?!1:g.Z$?F.Z&&g.iV(37):g.iV(27))||!F.deviceIsAudioOnly&&g.x2&&!WUa()&&g.iV(11)||!F.deviceIsAudioOnly&&g.ia&&g.iV("604.4")}; Jbk=function(F){if(g.Bu(F)&&GB)return!1;if(g.Yj){if(!g.iV(47)||!g.iV(52)&&g.iV(51))return!1}else if(g.ia)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; IMC=function(F,J){return F.enabledEngageTypes.has(J.toString())||biz.includes(J)}; j8=function(F){return F.WN==="detailpage"}; g.Bu=function(F){return F.WN==="embedded"}; tP=function(F){return F.WN==="leanback"}; E7=function(F){return F.WN==="adunit"||F.playerStyle==="gvn"}; g.rN=function(F){return F.WN==="profilepage"}; g.dN=function(F){return F.Z&&g.Bu(F)&&!E7(F)&&!F.W}; Z7=function(F){if(!F.userDisplayImage)return"";var J=F.userDisplayImage.split("/");if(J.length===5)return F=J[J.length-1].split("="),F[1]="s20-c",J[J.length-1]=F.join("="),J.join("/");if(J.length===8)return J.splice(7,0,"s20-c"),J.join("/");if(J.length===9)return J[7]+="-s20-c",J.join("/");g.rQ(new g.hC("Profile image not a FIFE URL.",F.userDisplayImage));return F.userDisplayImage}; g.Hu=function(F){var J=g.Rw(F);uq3.includes(J)&&(J="www.youtube.com");return F.protocol+"://"+J}; g.LH=function(F,J){J=J===void 0?"":J;if(F.A4){var b=new xn,I,u=F.A4();u.signedOut?I="":u.token?I=u.token:u.pendingResult.then(function(w){u.signedOut?b.resolve(""):b.resolve(w.token)},function(w){g.rQ(new g.hC("b189348328_oauth_callback_failed",{error:w})); b.resolve(J)}); return I!==void 0?r$(I):new Bx(b)}return r$(J)}; FR=function(F,J){J=J===void 0?"":J;return F.Uk?Ix(!0):q7(A8(Ix(g.LH(F,J)),function(b){return Ix(!!b)}),function(){return Ix(!1)})}; Y2=function(F){var J=g.Cu(F);return(F=Number(g.$V(4,F))||null)?J+":"+F:J}; Ji=function(F,J){J=J===void 0?!1:J;var b=Df[F],I=wSz[b],u=Mja[F];if(!u||!I)return null;J=new Xk(J?u.height:u.width,J?u.width:u.height,u.fps);I=qQ(I,J,b);return new kz(F,I,{video:J,LW:u.bitrate/8})}; qCY=function(F){var J=wSz[Df[F]],b=Abo[F];return b&&J?new kz(F,J,{audio:new Yz(b.audioSampleRate,b.numChannels)}):null}; br=function(F){this.C=F}; IH=function(F,J,b,I){if(b)return Tk();b={};var u=VZ();J=g.N(J);for(var w=J.next();!w.done;w=J.next())if(w=w.value,F.canPlayType(u,w.getInfo().mimeType)||I){var M=w.C.video.quality;if(!b[M]||b[M].getInfo().Xb())b[M]=w}F=[];b.auto&&F.push(b.auto);I=g.N(QZ);for(u=I.next();!u.done;u=I.next())(u=b[u.value])&&F.push(u);return F.length?r$(F):Tk()}; vAz=function(F){this.itag=F.itag;this.url=F.url;this.codecs=F.codecs;this.width=F.width;this.height=F.height;this.fps=F.fps;this.bitrate=F.bitrate;var J;this.U=((J=F.audioItag)==null?void 0:J.split(","))||[];this.yD=F.yD;this.Ke=F.Ke||"";this.j3=F.j3;this.audioChannels=F.audioChannels;this.C=""}; aMz=function(F,J,b,I){J=J===void 0?!1:J;b=b===void 0?!0:b;I=I===void 0?{}:I;var u={};F=g.N(F);for(var w=F.next();!w.done;w=F.next()){w=w.value;if(J&&MediaSource&&MediaSource.isTypeSupported){var M=w.type;w.audio_channels&&(M=M+"; channels="+w.audio_channels);if(!MediaSource.isTypeSupported(M)){I[w.itag]="tpus";continue}}if(b||!w.drm_families||w.eotf!=="smpte2084"&&w.eotf!=="arib-std-b67"){M=void 0;var q={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},v=w.type.match(/codecs="([^"]*)"/); v=v?v[1]:"";w.audio_track_id&&(M=new g.bI(w.name,w.audio_track_id,!!w.is_default));var a=w.eotf;w=new vAz({itag:w.itag,url:w.url,codecs:v,width:Number(w.width),height:Number(w.height),fps:Number(w.fps),bitrate:Number(w.bitrate),audioItag:w.audio_itag,yD:a?q[a]:void 0,Ke:w.drm_families,j3:M,audioChannels:Number(w.audio_channels)});u[w.itag]=u[w.itag]||[];u[w.itag].push(w)}else I[w.itag]="enchdr"}return u}; eaz=function(F,J,b,I,u){this.T=F;this.U=J;this.D=b;this.cpn=I;this.W=u;this.Z=0;this.C=""}; KqY=function(F,J){F.T.some(function(b){var I;return((I=b.j3)==null?void 0:I.getId())===J}); F.C=J}; ur=function(F,J,b){F.cpn&&(J=g.Os(J,{cpn:F.cpn}));b&&(J=g.Os(J,{paired:b}));return J}; pSo=function(F,J){F=F.itag.toString();J!==null&&(F+=J.itag.toString());return F}; gA4=function(F){for(var J=[],b=[],I=g.N(F.U),u=I.next();!u.done;u=I.next())u=u.value,u.bitrate<=F.Z?J.push(u):b.push(u);J.sort(function(w,M){return M.bitrate-w.bitrate}); b.sort(function(w,M){return w.bitrate-M.bitrate}); F.U=J.concat(b)}; w7=function(F,J,b){this.C=F;this.U=J;this.expiration=b;this.gw=null}; mhm=function(F,J){if(!(hY||cx()||oR()))return null;F=aMz(J,F.S("html5_filter_fmp4_in_hls"));if(!F)return null;J=[];for(var b={},I=g.N(Object.keys(F)),u=I.next();!u.done;u=I.next()){u=g.N(F[u.value]);for(var w=u.next();!w.done;w=u.next()){var M=w.value;M.j3&&(w=M.j3.getId(),b[w]||(M=new g.t8(w,M.j3),b[w]=M,J.push(M)))}}return J.length>0?J:null}; lMz=function(F,J,b,I,u,w,M){if(!(hY||cx()||oR()))return Tk();var q={},v=ybm(b),a=aMz(b,F.S("html5_filter_fmp4_in_hls"),F.D.V,q);if(!a)return M({noplst:1}),Tk();iik(a);b={};var e=(b.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",b),K;b=[];var p=[],m=[],y=null,f="";I=I&&I.match(/hls_timedtext_playlist/)?new vAz({itag:"0",url:I,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,j3:new g.bI("English","en",!1)}):null;for(var d=g.N(Object.keys(a)),G=d.next();!G.done;G=d.next())if(G=G.value,!F.S("html5_disable_drm_hfr_1080")|| G!=="383"&&G!=="373"){G=g.N(a[G]);for(var P=G.next();!P.done;P=G.next())if(P=P.value,P.width){for(var r=g.N(P.U),Q=r.next();!Q.done;Q=r.next())if(Q=Q.value,a[Q]){P.C=Q;break}P.C||(P.C=zaJ(a,P));if(r=a[P.C])if(b.push(P),P.Ke==="fairplay"&&(K=e),Q="",P.yD==="PQ"?Q="smpte2084":P.yD==="HLG"&&(Q="arib-std-b67"),Q&&(f=Q),m.push(NIz(r,[P],I,w,P.itag,P.width,P.height,P.fps,v,void 0,void 0,K,Q)),!y||P.width*P.height*P.fps>y.width*y.height*y.fps)y=P}else p.push(P)}else q[G]="disdrmhfr";m.reduce(function(D, t){return t.getInfo().isEncrypted()&&D},!0)&&(K=e); u=Math.max(u,0);e=y||{};a=e.fps===void 0?0:e.fps;y=e.width===void 0?0:e.width;e=e.height===void 0?0:e.height;d=F.S("html5_native_audio_track_switching");m.push(NIz(p,b,I,w,"93",y,e,a,v,"auto",u,K,f,d));Object.entries(q).length&&M(q);return IH(F.D,m,Qi(F,J),!1)}; NIz=function(F,J,b,I,u,w,M,q,v,a,e,K,p,m){for(var y=0,f="",d=g.N(F),G=d.next();!G.done;G=d.next())G=G.value,f||(f=G.itag),G.audioChannels&&G.audioChannels>y&&(y=G.audioChannels,f=G.itag);u=new kz(u,"application/x-mpegURL",{audio:new Yz(0,y),video:new Xk(w,M,q,null,void 0,a,void 0,p),Ke:K,zg:f});F=new eaz(F,J,b?[b]:[],I,!!m);F.Z=e?e:1369843;return new w7(u,F,v)}; ybm=function(F){F=g.N(F);for(var J=F.next();!J.done;J=F.next())if(J=J.value,J.url&&(J=J.url.split("expire/"),!(J.length<=1)))return+J[1].split("/")[0];return NaN}; zaJ=function(F,J){for(var b=g.N(Object.keys(F)),I=b.next();!I.done;I=b.next()){I=I.value;var u=F[I][0];if(!u.width&&u.Ke===J.Ke&&!u.audioChannels)return I}return""}; iik=function(F){for(var J=new Set,b=g.N(Object.values(F)),I=b.next();!I.done;I=b.next())I=I.value,I.length&&(I=I[0],I.height&&I.codecs.startsWith("vp09")&&J.add(I.height));b=[];if(J.size){I=g.N(Object.keys(F));for(var u=I.next();!u.done;u=I.next())if(u=u.value,F[u].length){var w=F[u][0];w.height&&J.has(w.height)&&!w.codecs.startsWith("vp09")&&b.push(u)}}J=g.N(b);for(b=J.next();!b.done;b=J.next())delete F[b.value]}; MF=function(F,J){this.C=F;this.U=J}; fMa=function(F,J,b,I){var u=[];b=g.N(b);for(var w=b.next();!w.done;w=b.next()){var M=w.value;if(M.url){w=new g.yJ(M.url,!0);if(M.s){var q=w,v=M.sp,a=NX7(decodeURIComponent(M.s));q.set(v,encodeURIComponent(a))}q=g.N(Object.keys(I));for(v=q.next();!v.done;v=q.next())v=v.value,w.set(v,I[v]);M=JG(M.type,M.quality,M.itag,M.width,M.height);u.push(new MF(M,w))}}return IH(F.D,u,Qi(F,J),!1)}; Ai=function(F,J){this.C=F;this.U=J}; Wqk=function(F,J,b){var I=[];b=g.N(b);for(var u=b.next();!u.done;u=b.next())if((u=u.value)&&u.url){var w=JG(u.type,"medium","0");I.push(new Ai(w,u.url))}return IH(F.D,I,Qi(F,J),!1)}; dha=function(F,J){var b=[],I=JG(J.type,"auto",J.itag);b.push(new Ai(I,J.url));return IH(F.D,b,!1,!0)}; jSa=function(F){return F&&EAG[F]?EAG[F]:null}; GJ4=function(F){if(F=F.commonConfig)this.url=F.url,this.urlQueryOverride=F.urlQueryOverride,F.ustreamerConfig&&(this.v5=Iw(F.ustreamerConfig)||void 0)}; Vj3=function(F,J){var b;if(J=J==null?void 0:(b=J.watchEndpointSupportedOnesieConfig)==null?void 0:b.html5PlaybackOnesieConfig)F.NS=new GJ4(J)}; g.qF=function(F){F=F===void 0?{}:F;this.languageCode=F.languageCode||"";this.languageName=F.languageName||null;this.kind=F.kind||"";this.name=F.name===void 0?null:F.name;this.displayName=F.displayName||null;this.id=F.id||null;this.C=F.is_servable||!1;this.isTranslateable=F.is_translateable||!1;this.url=F.url||null;this.vssId=F.vss_id||"";this.isDefault=F.is_default||!1;this.translationLanguage=F.translationLanguage||null;this.xtags=F.xtags||"";this.captionId=F.captionId||""}; g.aH=function(F){var J={languageCode:F.languageCode,languageName:F.languageName,displayName:g.vC(F),kind:F.kind,name:F.name,id:F.id,is_servable:F.C,is_default:F.isDefault,is_translateable:F.isTranslateable,vss_id:F.vssId};F.xtags&&(J.xtags=F.xtags);F.captionId&&(J.captionId=F.captionId);F.translationLanguage&&(J.translationLanguage=F.translationLanguage);return J}; g.eE=function(F){return F.translationLanguage?F.translationLanguage.languageCode:F.languageCode}; g.Pgk=function(F){var J=F.vssId;F.translationLanguage&&J&&(J="t"+J+"."+g.eE(F));return J}; g.vC=function(F){var J=[];if(F.displayName)J.push(F.displayName);else{var b=F.languageName||"";J.push(b);F.kind==="asr"&&b.indexOf("(")===-1&&J.push(" (Legendas autom\u00e1ticas)");F.name&&J.push(" - "+F.name)}F.translationLanguage&&J.push(" >> "+F.translationLanguage.languageName);return J.join("")}; SCz=function(F,J,b,I){F||(F=J&&BIz.hasOwnProperty(J)&&TI7.hasOwnProperty(J)?TI7[J]+"_"+BIz[J]:void 0);J=F;if(!J)return null;F=J.match(rb4);if(!F||F.length!==5)return null;if(F=J.match(rb4)){var u=Number(F[3]),w=[7,8,10,5,6];F=!(Number(F[1])===1&&u===8)&&w.indexOf(u)>=0}else F=!1;return b||I||F?J:null}; KC=function(F,J){for(var b={},I=g.N(Object.keys(sSm)),u=I.next();!u.done;u=I.next()){u=u.value;var w=J?J+u:u;w=F[w+"_webp"]||F[w];g.LT(w)&&(b[sSm[u]]=w)}return b}; pC=function(F){var J={};if(!F||!F.thumbnails)return J;F=F.thumbnails.filter(function(q){return!!q.url}); F.sort(function(q,v){return q.width-v.width||q.height-v.height}); for(var b=g.N(Object.keys(YCm)),I=b.next();!I.done;I=b.next()){var u=Number(I.value);I=YCm[u];for(var w=g.N(F),M=w.next();!M.done;M=w.next())if(M=M.value,M.width>=u){u=$h7(M.url);g.LT(u)&&(J[I]=u);break}}(F=F.pop())&&F.width>=1280&&(F=$h7(F.url),g.LT(F)&&(J["maxresdefault.jpg"]=F));return J}; $h7=function(F){return F.startsWith("//")?"https:"+F:F}; g7=function(F){return F&&F.baseUrl||""}; mZ=function(F){F=g.bi(F);for(var J=g.N(Object.keys(F)),b=J.next();!b.done;b=J.next()){b=b.value;var I=F[b];F[b]=Array.isArray(I)?I[0]:I}return F}; Cg3=function(F,J){F.botguardData=J.playerAttestationRenderer.botguardData;J=J.playerAttestationRenderer.challenge;J!=null&&(F.vQ=J)}; Rao=function(F,J){J=g.N(J);for(var b=J.next();!b.done;b=J.next()){b=b.value;var I=b.interstitials.map(function(M){var q=g.O(M,XS7);if(q)return{is_yto_interstitial:!0,raw_player_response:q};if(M=g.O(M,QSk))return Object.assign({is_yto_interstitial:!0},FF(M))}); I=g.N(I);for(var u=I.next();!u.done;u=I.next())switch(u=u.value,b.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":F.interstitials=F.interstitials.concat({time:0,playerVars:u,Fa:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":F.interstitials=F.interstitials.concat({time:0x7ffffffffffff,playerVars:u,Fa:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var w=Number(b.podConfig.timeToInsertAtMillis);F.interstitials=F.interstitials.concat({time:w,playerVars:u, Fa:w===0?5:7})}}}; Dhk=function(F,J){if(J=J.find(function(b){return!(!b||!b.tooltipRenderer)}))F.tooltipRenderer=J.tooltipRenderer}; kJ4=function(F,J){J.subscribeCommand&&(F.subscribeCommand=J.subscribeCommand);J.unsubscribeCommand&&(F.unsubscribeCommand=J.unsubscribeCommand);J.addToWatchLaterCommand&&(F.addToWatchLaterCommand=J.addToWatchLaterCommand);J.removeFromWatchLaterCommand&&(F.removeFromWatchLaterCommand=J.removeFromWatchLaterCommand);J.getSharePanelCommand&&(F.getSharePanelCommand=J.getSharePanelCommand)}; Oik=function(F,J){J!=null?(F.RV=J,F.T0=!0):(F.RV="",F.T0=!1)}; yE=function(F,J){this.type=F||"";this.id=J||""}; g.ir=function(F){return new yE(F.substring(0,2),F.substring(2))}; g.zt=function(F,J){this.PN=F;this.author="";this.U5=null;this.playlistLength=0;this.C=this.sessionData=null;this.N={};this.title="";if(J){this.author=J.author||J.playlist_author||"";this.title=J.playlist_title||"";if(F=J.session_data)this.sessionData=HT(F,"&");var b;this.C=((b=J.thumbnail_ids)==null?void 0:b.split(",")[0])||null;this.N=KC(J,"playlist_");this.videoId=J.video_id||void 0;if(b=J.list)switch(J.listType){case "user_uploads":this.playlistId=(new yE("UU","PLAYER_"+b)).toString();break;default:if(F= J.playlist_length)this.playlistLength=Number(F)||0;this.playlistId=g.ir(b).toString();if(J=J.video)this.videoId=(J[0]||null).video_id||void 0}else J.playlist&&(this.playlistLength=J.playlist.toString().split(",").length)}}; g.NF=function(F,J){this.PN=F;this.lH=this.author="";this.U5=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.VF=this.lengthText="";this.sessionData=null;this.N={};this.title="";if(J){this.ariaLabel=J.aria_label||void 0;this.author=J.author||"";this.lH=J.lH||"";if(F=J.endscreen_autoplay_session_data)this.U5=HT(F,"&");this.Te=J.Te;this.isLivePlayback=J.live_playback==="1";this.isUpcoming=!!J.isUpcoming;if(F=J.length_seconds)this.lengthSeconds=typeof F==="string"?Number(F):F;this.lengthText= J.lengthText||"";this.VF=J.VF||"";this.publishedTimeText=J.publishedTimeText||void 0;if(F=J.session_data)this.sessionData=HT(F,"&");this.shortViewCount=J.short_view_count_text||void 0;this.N=KC(J);this.title=J.title||"";this.videoId=J.docid||J.video_id||J.videoId||J.id||void 0;this.watchUrl=J.watchUrl||void 0}}; oA3=function(F){var J,b,I=(J=F.getWatchNextResponse())==null?void 0:(b=J.contents)==null?void 0:b.twoColumnWatchNextResults,u,w,M,q,v;F=(u=F.getWatchNextResponse())==null?void 0:(w=u.playerOverlays)==null?void 0:(M=w.playerOverlayRenderer)==null?void 0:(q=M.endScreen)==null?void 0:(v=q.watchNextEndScreenRenderer)==null?void 0:v.results;if(!F){var a,e;F=I==null?void 0:(a=I.endScreen)==null?void 0:(e=a.endScreen)==null?void 0:e.results}return F}; g.fC=function(F){var J,b,I;F=g.O((J=F.getWatchNextResponse())==null?void 0:(b=J.playerOverlays)==null?void 0:(I=b.playerOverlayRenderer)==null?void 0:I.decoratedPlayerBarRenderer,lr);return g.O(F==null?void 0:F.playerBar,ham)}; cba=function(F){this.C=F.playback_progress_0s_url;this.T=F.playback_progress_2s_url;this.U=F.playback_progress_10s_url}; Uhz=function(){if(WC===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(J){}a:{try{var F=!!self.localStorage}catch(J){F=!1}if(F&&(F=g.Yd(g.cK()+"::yt-player"))){WC=new C0(F);break a}WC=void 0}}return WC}; g.d7=function(){var F=Uhz();if(!F)return{};try{var J=F.get("yt-player-lv");return JSON.parse(J||"{}")}catch(b){return{}}}; g.xh_=function(F){var J=Uhz();J&&(F=JSON.stringify(F),J.set("yt-player-lv",F))}; g.E9=function(F){return g.d7()[F]||0}; g.jE=function(F,J){var b=g.d7();J!==b[F]&&(J!==0?b[F]=J:delete b[F],g.xh_(b))}; g.Gt=function(F){return g.S(function(J){return J.return(g.ku(nAk(),F))})}; PC=function(F,J,b,I,u,w,M,q){var v,a,e,K,p,m;return g.S(function(y){switch(y.C){case 1:return v=g.E9(F),v===4?y.return(4):g.T(y,g.tY(),2);case 2:a=y.U;if(!a)throw g.NP("wiac");if(!q||M===void 0){y.gD(3);break}return g.T(y,tjz(q,M),4);case 4:M=y.U;case 3:return e=b.lastModified||"0",g.T(y,g.Gt(a),5);case 5:return K=y.U,g.lk(y,6),VE++,g.T(y,g.B$(K,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",Em:!0},function(f){if(w!==void 0&&M!==void 0){var d=""+F+"|"+J.id+"|"+e+"|"+String(w).padStart(10, "0");d=g.Tl(f.objectStore("media"),M,d)}else d=g.fD.resolve(void 0);var G=Zik(F,J.v1()),P=Zik(F,!J.v1()),r={fmts:Him(I),format:b||{}};G=g.Tl(f.objectStore("index"),r,G);var Q=I.downloadedEndTime===-1;r=Q?f.objectStore("index").get(P):g.fD.resolve(void 0);var D={fmts:"music",format:{}};f=Q&&u&&!J.v1()?g.Tl(f.objectStore("index"),D,P):g.fD.resolve(void 0);return g.fD.all([f,r,d,G]).then(function(t){t=g.N(t);t.next();t=t.next().value;VE--;var n=g.E9(F);if(n!==4&&Q&&u||t!==void 0&&g.LqG(t.fmts))n=1,g.jE(F, n);return n})}),8); case 8:return y.return(y.U);case 6:p=g.dY(y);VE--;m=g.E9(F);if(m===4)return y.return(m);g.jE(F,4);throw p;}})}; g.Fek=function(F){var J,b;return g.S(function(I){if(I.C==1)return g.T(I,g.tY(),2);if(I.C!=3){J=I.U;if(!J)throw g.NP("ri");return g.T(I,g.Gt(J),3)}b=I.U;return I.return(g.B$(b,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(u){var w=IDBKeyRange.bound(F+"|",F+"~");return u.objectStore("index").getAll(w).then(function(M){return M.map(function(q){return q?q.format:{}})})}))})}; bUz=function(F,J,b,I,u){var w,M,q;return g.S(function(v){if(v.C==1)return g.T(v,g.tY(),2);if(v.C!=3){w=v.U;if(!w)throw g.NP("rc");return g.T(v,g.Gt(w),3)}M=v.U;q=g.B$(M,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(a){var e=""+F+"|"+J+"|"+b+"|"+String(I).padStart(10,"0");return a.objectStore("media").get(e)}); return u?v.return(q.then(function(a){if(a===void 0)throw Error("No data from indexDb");return JI_(u,a)}).catch(function(a){throw new g.hC("Error while reading chunk: "+a.name+", "+a.message); })):v.return(q)})}; g.LqG=function(F){return F?F==="music"?!0:F.includes("dlt=-1")||!F.includes("dlt="):!1}; Zik=function(F,J){return""+F+"|"+(J?"v":"a")}; Him=function(F){var J={};return LX((J.dlt=F.downloadedEndTime.toString(),J.mket=F.maxKnownEndTime.toString(),J.avbr=F.averageByteRate.toString(),J))}; ujk=function(F){var J={},b={};F=g.N(F);for(var I=F.next();!I.done;I=F.next()){var u=I.value,w=u.split("|");u.match(g.IpG)?(I=Number(w.pop()),isNaN(I)?b[u]="?":(w=w.join("|"),(u=J[w])?(w=u[u.length-1],I===w.end+1?w.end=I:u.push({start:I,end:I})):J[w]=[{start:I,end:I}])):b[u]="?"}F=g.N(Object.keys(J));for(I=F.next();!I.done;I=F.next())I=I.value,b[I]=J[I].map(function(M){return M.start+"-"+M.end}).join(","); return b}; BC=function(F){g.uA.call(this);this.C=null;this.T=new X4;this.C=null;this.W=new Set;this.crossOrigin=F||""}; wFa=function(F,J,b){for(b=Tt(F,b);b>=0;){var I=F.levels[b];if(I.isLoaded(r7(I,J))&&(I=g.SE(I,J)))return I;b--}return g.SE(F.levels[0],J)}; AIv=function(F,J,b){b=Tt(F,b);for(var I,u;b>=0;b--)if(I=F.levels[b],u=r7(I,J),!I.isLoaded(u)){I=F;var w=b,M=w+"-"+u;I.W.has(M)||(I.W.add(M),I.T.enqueue(w,{Ab:w,rV:u}))}M54(F)}; M54=function(F){if(!F.C&&!F.T.isEmpty()){var J=F.T.remove();F.C=qx7(F,J)}}; qx7=function(F,J){var b=document.createElement("img");F.crossOrigin&&(b.crossOrigin=F.crossOrigin);b.src=F.levels[J.Ab].tF(J.rV);b.onload=function(){var I=J.Ab,u=J.rV;F.C!==null&&(F.C.onload=null,F.C=null);I=F.levels[I];I.loaded.add(u);M54(F);var w=I.columns*I.rows;u*=w;I=Math.min(u+w-1,I.mm()-1);u=[u,I];F.publish("l",u[0],u[1])}; return b}; g.s9=function(F,J,b,I){this.level=F;this.Z=J;this.loaded=new Set;this.level=F;this.Z=J;F=b.split("#");this.width=Math.floor(Number(F[0]));this.height=Math.floor(Number(F[1]));this.frameCount=Math.floor(Number(F[2]));this.columns=Math.floor(Number(F[3]));this.rows=Math.floor(Number(F[4]));this.C=Math.floor(Number(F[5]));this.T=F[6];this.signature=F[7];this.videoLength=I}; r7=function(F,J){return Math.floor(J/(F.columns*F.rows))}; g.SE=function(F,J){J>=F.hZ()&&F.ll();var b=r7(F,J),I=F.columns*F.rows,u=J%I;J=u%F.columns;u=Math.floor(u/F.columns);var w=F.ll()+1-I*b;if(w1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; v8a=function(F,J,b){return(F=F.levels[J])?F.Hj(b):-1}; Tt=function(F,J){var b=F.Z.get(J);if(b)return b;b=F.levels.length;for(var I=0;I=J)return F.Z.set(J,I),I;F.Z.set(J,b-1);return b-1}; $$=function(F,J,b,I){b=b.split("#");b=[b[1],b[2],0,b[3],b[4],-1,b[0],""].join("#");g.s9.call(this,F,J,b,0);this.U=null;this.D=I?2:0}; CC=function(F,J,b,I){Y$.call(this,F,0,void 0,J,!(I===void 0||!I));for(F=0;F(b!=null?b:50)&&(b=zSC.shift())&&hi.delete(b),b=u),u!==b&&F.fQ("ssei","dcpn_"+u+"_"+b+"_"+F.clientPlaybackNonce),b)}; k$=function(F,J){var b=J.raw_watch_next_response;if(!b){var I=J.watch_next_response;I&&(b=JSON.parse(I))}if(b){F.dD=b;var u=F.dD.playerCueRangeSet;u&&g.cC(F,u);var w=F.dD.playerOverlays;if(w){var M=w.playerOverlayRenderer;if(M){var q=M.autonavToggle;q&&(F.autoplaySwitchButtonRenderer=g.O(q,Ncv),F.S("web_player_autonav_use_server_provided_state")&&U9(F)&&(F.autonavState=F.autoplaySwitchButtonRenderer.enabled?2:1));var v=M.videoDetails;if(v){var a=v.embeddedPlayerOverlayVideoDetailsRenderer;var e=v.playerOverlayVideoDetailsRenderer; e&&(e.title&&(J.title=g.Kr(e.title)),e.subtitle&&(J.subtitle=g.Kr(e.subtitle)))}g.Bu(F.PN)&&(F.YH=!!M.addToMenu);lpC(F,M.shareButton);M.startPosition&&M.endPosition&&(F.progressBarStartPosition=M.startPosition,F.progressBarEndPosition=M.endPosition);var K=M.gatedActionsOverlayRenderer;K&&(F.er=g.O(K,fpJ));var p,m,y,f=g.O((p=F.getWatchNextResponse())==null?void 0:(m=p.playerOverlays)==null?void 0:(y=m.playerOverlayRenderer)==null?void 0:y.infoPanel,Wea);if(f){F.Sj=Number(f==null?void 0:f.durationMs)|| NaN;if(f==null?0:f.infoPanelOverviewViewModel)F.xH=f==null?void 0:f.infoPanelOverviewViewModel;if(f==null?0:f.infoPanelDetailsViewModel)F.R5=f==null?void 0:f.infoPanelDetailsViewModel}F.showSeekingControls=!!M.showSeekingControls}}var d,G,P=(d=F.getWatchNextResponse())==null?void 0:(G=d.contents)==null?void 0:G.twoColumnWatchNextResults;if(P){var r=P.desktopOverlay&&g.O(P.desktopOverlay,dEC);r&&(r.suppressShareButton&&(F.showShareButton=!1),r.suppressWatchLaterButton&&(F.YH=!1))}a&&E8_(F,J,a);var Q= Ig(0,J.autoplay_count),D=F.getWatchNextResponse(),t,n=(t=D.contents)==null?void 0:t.twoColumnWatchNextResults,uk,AJ,F7,h=(uk=D.playerOverlays)==null?void 0:(AJ=uk.playerOverlayRenderer)==null?void 0:(F7=AJ.autoplay)==null?void 0:F7.playerOverlayAutoplayRenderer,L=oA3(F),l,c=(l=D.contents)==null?void 0:l.singleColumnWatchNextResults;if(c){var Da;if(((Da=c.autoplay)==null?0:Da.autoplay)&&!c.playlist){var fz=c.autoplay.autoplay.sets,Kz={},Vz=new g.NF(F.J()),Za=null,Ib;if(fz){for(var yU=g.N(fz),E=yU.next();!E.done;E= yU.next()){var V=E.value.autoplayVideoRenderer;if(V&&V.compactVideoRenderer){Za=V.compactVideoRenderer;break}}if(Ib=fz[0].autoplayVideo){var B=Ib.clickTrackingParams;B&&(Kz.itct=B);Kz.autonav="1";Kz.playnext=String(Q)}}else Kz.feature="related-auto";var Y=g.O(Ib,g.x$);if(Za){Vz.videoId=Za.videoId;var X=Za.shortBylineText;X&&(Vz.author=g.Kr(X));var JJ=Za.title;JJ&&(Vz.title=g.Kr(JJ))}else Y!=null&&Y.videoId&&(Vz.videoId=Y.videoId);Vz.U5=Kz;F.suggestions=[];F.N6=Vz}}if(L){for(var wY=[],M4=g.N(L),C= M4.next();!C.done;C=M4.next()){var ez=C.value,yz=void 0,va=null;if(ez.endScreenVideoRenderer){var rY=ez.endScreenVideoRenderer,pz=rY.title;va=new g.NF(F.J());va.videoId=rY.videoId;va.lengthSeconds=rY.lengthInSeconds||0;var QU=rY.publishedTimeText;QU&&(va.publishedTimeText=g.Kr(QU));var Kf=rY.shortBylineText;Kf&&(va.author=g.Kr(Kf));var hJ=rY.shortViewCountText;hJ&&(va.shortViewCount=g.Kr(hJ));if(pz){va.title=g.Kr(pz);var QI=pz.accessibility;if(QI){var qX=QI.accessibilityData;qX&&qX.label&&(va.ariaLabel= qX.label)}}var rU=rY.navigationEndpoint;if(rU){yz=rU.clickTrackingParams;var of=g.O(rU,g.x$),af=g.O(rU,g.S0);of?va.Te=of:af!=null&&(va.watchUrl=af.url)}var oD=rY.thumbnailOverlays;if(oD)for(var Ry=g.N(oD),h6=Ry.next();!h6.done;h6=Ry.next()){var lB=h6.value.thumbnailOverlayTimeStatusRenderer;if(lB)if(lB.style==="LIVE"){va.isLivePlayback=!0;break}else if(lB.style==="UPCOMING"){va.isUpcoming=!0;break}}va.N=pC(rY.thumbnail)}else if(ez.endScreenPlaylistRenderer){var eq=ez.endScreenPlaylistRenderer,rb= eq.navigationEndpoint;if(!rb)continue;var pI=g.O(rb,g.x$);if(!pI)continue;var SP=pI.videoId;va=new g.zt(F.J());va.playlistId=eq.playlistId;va.playlistLength=Number(eq.videoCount)||0;va.C=SP||null;va.videoId=SP;var s4=eq.title;s4&&(va.title=g.Kr(s4));var Yo=eq.shortBylineText;Yo&&(va.author=g.Kr(Yo));yz=rb.clickTrackingParams;va.N=pC(eq.thumbnail)}va&&(yz&&(va.sessionData={itct:yz}),wY.push(va))}F.suggestions=wY}if(h){F.hK=!!h.preferImmediateRedirect;F.n7=F.n7||!!h.webShowNewAutonavCountdown;F.A4= F.A4||!!h.webShowBigThumbnailEndscreen;if(F.n7||F.A4){var PR=n||null,HW=new g.NF(F.J());HW.videoId=h.videoId;var cz=h.videoTitle;if(cz){HW.title=g.Kr(cz);var Iy=cz.accessibility;if(Iy){var WQ=Iy.accessibilityData;WQ&&WQ.label&&(HW.ariaLabel=WQ.label)}}var CX=h.byline;CX&&(HW.author=g.Kr(CX));var pf=h.publishedTimeText;pf&&(HW.publishedTimeText=g.Kr(pf));var pB=h.shortViewCountText;pB&&(HW.shortViewCount=g.Kr(pB));var gu=h.thumbnailOverlays;if(gu)for(var m4=g.N(gu),Jo=m4.next();!Jo.done;Jo=m4.next()){var wj= Jo.value.thumbnailOverlayTimeStatusRenderer;if(wj)if(wj.style==="LIVE"){HW.isLivePlayback=!0;break}else if(wj.style==="UPCOMING"){HW.isUpcoming=!0;break}else if(wj.style==="DEFAULT"&&wj.text){HW.lengthText=g.Kr(wj.text);var bq=wj.text.accessibility;if(bq){var Ir=bq.accessibilityData;Ir&&Ir.label&&(HW.VF=Ir.label||"")}break}}HW.N=pC(h.background);var yh=h.nextButton;if(yh){var i1=yh.buttonRenderer;if(i1){var zn=i1.navigationEndpoint;if(zn){var Nt=g.O(zn,g.x$);Nt&&(HW.Te=Nt)}}}if(h.topBadges){var l1= h.topBadges[0];if(l1){var fB=g.O(l1,jk7);fB&&fB.style==="BADGE_STYLE_TYPE_PREMIUM"&&(HW.cwN=!0)}}var rS=h.alternativeTitle;rS&&(HW.lH=g.Kr(rS));var di={autonav:"1",playnext:String(Q)};HW.playlistId&&(di.autoplay="1");if(PR){var Si,hD,uq,We,wa=(Si=PR.autoplay)==null?void 0:(hD=Si.autoplay)==null?void 0:(uq=hD.sets)==null?void 0:(We=uq[0])==null?void 0:We.autoplayVideo;if(wa){var du=wa.clickTrackingParams;du&&(di.itct=du);var MG=g.O(wa,g.x$);MG&&(HW.TD=MG)}}else if(h){var Eo,js,Gn,Vh=(Eo=h.nextButton)== null?void 0:(js=Eo.buttonRenderer)==null?void 0:(Gn=js.navigationEndpoint)==null?void 0:Gn.clickTrackingParams;Vh&&(di.itct=Vh)}di.itct||(di.feature="related-auto");HW.U5=di;F.suggestions||(F.suggestions=[]);F.N6=HW}h.countDownSecs!=null&&(F.UO=h.countDownSecs*1E3);h.countDownSecsForFullscreen!=null&&(F.Yd=h.countDownSecsForFullscreen>=0?h.countDownSecsForFullscreen*1E3:-1);F.S("web_autonav_color_transition")&&h.watchToWatchTransitionRenderer&&(F.watchToWatchTransitionRenderer=g.O(h.watchToWatchTransitionRenderer, GXz))}var Ao=oA3(F);if(Ao){var Pe,sW,Be,qG=Ao==null?void 0:(Pe=Ao[0])==null?void 0:(sW=Pe.endScreenVideoRenderer)==null?void 0:(Be=sW.navigationEndpoint)==null?void 0:Be.clickTrackingParams,Tn=g.nC(F);qG&&Tn&&(Tn.sessionData={itct:qG})}F.dD.currentVideoThumbnail&&(F.N=pC(F.dD.currentVideoThumbnail));var ru,jf,lP,GM,vf,yn=(ru=F.dD)==null?void 0:(jf=ru.contents)==null?void 0:(lP=jf.twoColumnWatchNextResults)==null?void 0:(GM=lP.results)==null?void 0:(vf=GM.results)==null?void 0:vf.contents;if(yn&&yn[1]){var iC, zS,Ss,MB,NK=(iC=yn[1].videoSecondaryInfoRenderer)==null?void 0:(zS=iC.owner)==null?void 0:(Ss=zS.videoOwnerRenderer)==null?void 0:(MB=Ss.thumbnail)==null?void 0:MB.thumbnails;NK&&NK.length&&(F.profilePicture=NK[NK.length-1].url)}var Ys=M1(J),so,$o=(so=F.getWatchNextResponse())==null?void 0:so.onResponseReceivedEndpoints;if($o)for(var Yn=g.N($o),ar=Yn.next();!ar.done;ar=Yn.next()){var el=ar.value;g.O(el,ti)&&(F.qH=g.O(el,ti));var AW=g.O(el,V57),$n=void 0;if(($n=AW)==null?0:$n.entityKeys)F.JY=AW.entityKeys|| [],AW.visibleOnLoadKeys&&(F.visibleOnLoadKeys=AW.visibleOnLoadKeys)}if(F.S("web_key_moments_markers")){var CY=g.ZR.getState().entities,CB=g.Ms("visibility_override","markersVisibilityOverrideEntity");var X$=qs(CY,"markersVisibilityOverrideEntity",CB);F.cN=(X$==null?void 0:X$.videoId)===(F.videoId||Ys)&&(X$==null?0:X$.visibilityOverrideMarkersKey)?X$.visibilityOverrideMarkersKey:F.visibleOnLoadKeys;F.visibleOnLoadKeys=[].concat(g.W(F.cN))}}}; U9=function(F){var J;return((J=F.autoplaySwitchButtonRenderer)==null?void 0:J.enabled)!==void 0}; HC=function(F){return!!(F.T&&F.T.videoInfos&&F.T.videoInfos.length)}; g.IU=function(F){var J=F.Y;F.S("html5_gapless_unlimit_format_selection")&&LC(F)&&(J=!1);var b=!!F.C&&F.C.MW,I=F.PN,u=F.rH(),w=Fc(F),M=F.Q2,q=J,v=F.isOtf();J=F.Bj();var a=F.nW,e=F.getUserAudio51Preference(),K=Jw(F),p=new JVm(I);if(I.hJ()||I.S("html5_logging_format_selection"))p.U=!0;p.Jz=w;p.Q2=M&&I.V;p.qf=e;g.D$("windows nt 5.1")&&!g.Yj&&(p.DX=!0);if(w=u)w=g.nH(I)?Jbk(I):!1;w&&(p.Gj=!0);q&&(p.DX=!0,p.MI=!0);v&&!I.S("html5_otf_prefer_vp9")&&(p.DX=!0);I.playerStyle==="picasaweb"&&(v&&(p.DX=!1),p.kQ= !1);a&&(p.DX=!0);g_(I.D,mp.CHANNELS)&&(I.S("html5_enable_aac51")&&(p.eE=!0),I.S("html5_enable_ac3")&&(p.Z=!0),I.S("html5_enable_eac3")&&(p.D=!0),I.S("html5_enable_ac3_gapless")&&(p.dD=!0));I.S("html5_block_8k_hfr")&&(p.nW=!0);p.W=g.eB(I.experiments,"html5_max_selectable_quality_ordinal");p.V=g.eB(I.experiments,"html5_min_selectable_quality_ordinal");tg&&(p.If=480);if(b||u)p.kQ=!1;p.bR=!1;p.disableAv1=K;b=j$(I,p.C,void 0,p.disableAv1);b>0&&b<2160&&(Qh()||I.S("html5_format_hybridization"))&&(p.C.supportsChangeType= +Qh(),p.hN=b);b>=2160&&(p.fW=!0);PLY()&&(p.C.serveVp9OverAv1IfHigherRes=0,p.Se=!1);p.Bj=J;p.KW=g.c$||Ll()&&!J?!1:!0;p.Y=I.S("html5_format_hybridization");p.Om=I.S("html5_disable_encrypted_vp9_live_non_2k_4k");bE(F)&&(p.T1=F.S("html5_prefer_language_over_codec"));oR()&&F.playerResponse&&F.playerResponse.playerConfig&&F.playerResponse.playerConfig.webPlayerConfig&&F.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(p.Z=!0,p.D=!0);F.Y&&F.isAd()&&(F.aX&&(p.Tj=F.aX),F.nI&&(p.T= F.nI));p.zj=F.isLivePlayback&&F.So()&&F.PN.S("html5_drm_live_audio_51");p.Um=F.sK;return F.K7=p}; Jw=function(F){return F.PN.S("html5_disable_av1")||F.S("html5_gapless_shorts_disable_av1")&&LC(F)?!0:!1}; PMz=function(F){XH("drm_pb_s",void 0,F.zj);F.oI||F.C&&vd(F.C);var J={};F.C&&(J=DC7(F.ZT,g.IU(F),F.PN.D,F.C,function(b){return F.publish("ctmp","fmtflt",b)},!0,new Set)); J=new kj(J,F.PN,F.Km,F.useCobaltWidevine?oR()?uE(F):!1:!1,function(b,I){F.UQ(b,I)}); g.k(F,J);F.b1=!1;F.loading=!0;KSa(J,function(b){XH("drm_pb_f",void 0,F.zj);for(var I=g.N(b),u=I.next();!u.done;u=I.next())switch(u=u.value,u.flavor){case "fairplay":u.oI=F.oI;u.xA=F.xA;u.Ao=F.Ao;break;case "widevine":u.fD=F.fD}F.v0=b;if(F.v0.length>0&&(F.D=F.v0[0],F.PN.hJ())){b={};I=g.N(Object.entries(F.D.C));for(u=I.next();!u.done;u=I.next()){var w=g.N(u.value);u=w.next().value;w=w.next().value;var M="unk";(u=u.match(/(.*)codecs="(.*)"/))&&(M=u[2]);b[M]=w}F.UQ("drmProbe",b)}F.Sc()})}; Bca=function(F,J){if(J.length===0||wS(F))return null;Mb(F,"html5_enable_cobalt_experimental_vp9_decoder")&&(WG=!0);var b=F.Ke;var I=F.lengthSeconds,u=F.isLivePlayback,w=F.SF,M=F.PN,q=Rgz(J);if(u||w){M=M.experiments;I=new Ag("",M,!0);I.U=!w;I.MW=!0;I.isManifestless=!0;I.isLive=!w;I.SF=w;J=g.N(J);for(u=J.next();!u.done;u=J.next()){var v=u.value;u=aZ(v,b);q=Wd(v);q=KW(q.VP||v.url||"",q.Ou,q.s);var a=q.get("id");a&&a.includes("%7E")&&(I.N=!0);var e=void 0;a=(e=M)==null?void 0:e.pW("html5_max_known_end_time_rebase"); e=Number(v.targetDurationSec||5);v=Number(v.maxDvrDurationSec||14400);var K=Number(q.get("mindsq")||q.get("min_sq")||"0"),p=Number(q.get("maxdsq")||q.get("max_sq")||"0")||Infinity;I.De=I.De||K;I.VN=I.VN||p;var m=!Zf(u);q&&uI(I,new hM(q,u,{U2:e,Hu:m,jD:v,De:K,VN:p,gC:300,SF:w,jf:a}))}b=I}else if(q==="FORMAT_STREAM_TYPE_OTF"){I=I===void 0?0:I;w=new Ag("",M.experiments,!1);w.duration=I||0;M=g.N(J);for(I=M.next();!I.done;I=M.next())I=I.value,J=aZ(I,b,w.duration),u=Wd(I),(u=KW(u.VP||I.url||"",u.Ou,u.s))&& (J.streamType==="FORMAT_STREAM_TYPE_OTF"?uI(w,new c6(u,J,"sq/0")):uI(w,new Jg(u,J,jo(I.initRange),jo(I.indexRange))));w.isOtf=!0;b=w}else{I=I===void 0?0:I;w=new Ag("",M.experiments,!1);w.duration=I||0;M=g.N(J);for(I=M.next();!I.done;I=M.next())q=I.value,I=aZ(q,b,w.duration),J=jo(q.initRange),u=jo(q.indexRange),a=Wd(q),(q=KW(a.VP||q.url||"",a.Ou,a.s))&&uI(w,new Jg(q,I,J,u));b=w}w=F.isLivePlayback&&!F.SF&&!F.fW&&!F.isPremiere;F.S("html5_live_head_playable")&&(!Aw(F)&&w&&F.UQ("missingLiveHeadPlayable", {}),F.PN.Tj==="yt"&&(b.KW=!0));return b}; wS=function(F){return oR()?!uE(F):cx()?!(!F.oI||!F.S("html5_enable_safari_fairplay")&&Z1()):!1}; uE=function(F){return F.S("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.cC=function(F,J){J=g.N(J);for(var b=J.next();!b.done;b=J.next())if(b=b.value,b.cueRangeSetIdentifier){var I=void 0;F.J5.set(b.cueRangeSetIdentifier,(I=b.playerCueRanges)!=null?I:[])}}; qb=function(F){return!(!F.C||!F.C.isManifestless)}; vE=function(F){return F.Se?F.isLowLatencyLiveStream&&F.C!=null&&yy(F.C)>=5:F.isLowLatencyLiveStream&&F.C!=void 0&&yy(F.C)>=5}; TcJ=function(F){return oR()&&uE(F)?!1:wS(F)&&(g.dX(F.PN)?!F.isLivePlayback:F.hlsvp)||!Z1()||F.Z1?!0:!1}; skm=function(F){F.loading=!0;F.MJ=!1;if(rIa(F))g.Fek(F.videoId).then(function(I){Sx4(F,I)}).then(function(){F.Sc()}); else{Hq(F.y6)||g.rQ(new g.hC("DASH MPD Origin invalid: ",F.y6));var J=F.y6,b=g.eB(F.PN.experiments,"dash_manifest_version")||4;J=g.Os(J,{mpd_version:b});F.isLowLatencyLiveStream&&F.latencyClass!=="NORMAL"||(J=g.Os(J,{pacing:0}));xtv(J,F.PN.experiments,F.isLivePlayback).then(function(I){F.iR()||(aU(F,I,!0),XH("mrc",void 0,F.zj),F.Sc())},function(I){F.iR()||(F.loading=!1,F.publish("dataloaderror",new E5("manifest.net.retryexhausted",{backend:"manifest", rc:I.status},1)))}); XH("mrs",void 0,F.zj)}}; Sx4=function(F,J){var b=J.map(function(v){return v.itag}),I; if((I=F.playerResponse)!=null&&I.streamingData){I=[];if(F.S("html5_offline_always_use_local_formats")){b=0;for(var u=g.N(J),w=u.next();!w.done;w=u.next()){w=w.value;var M=Object.assign({},w);M.signatureCipher="";I.push(M);M=g.N(F.playerResponse.streamingData.adaptiveFormats);for(var q=M.next();!q.done;q=M.next())if(q=q.value,w.itag===q.itag&&w.xtags===q.xtags){b+=1;break}}be&&(e=m.getInfo().audio.numChannels)}e>2&&F.UQ("hlschl",{mn:e});var d;((d=F.K7)==null?0:d.U)&&F.UQ("hlsfmtaf",{itags:K.join(".")});var G;if(F.S("html5_enable_vp9_fairplay")&&((G=F.D)==null?0:S$(G)))for(F.UQ("drm",{sbdlfbk:1}),e=g.N(F.v0),K=e.next();!K.done;K=e.next())if(K=K.value,rd(K)){F.D=K;break}gS(F,a)})}return Tk()}; Qk_=function(F){if(F.isExternallyHostedPodcast&&F.IP){var J=pY(F.IP);if(!J[0])return Tk();F.FH=J[0];return dha(F.PN,J[0]).then(function(b){gS(F,b)})}return F.qh&&F.AK?Wqk(F.PN,F.isAd(),F.qh).then(function(b){gS(F,b)}):Tk()}; DEk=function(F){if(F.isExternallyHostedPodcast)return Tk();var J=pY(F.IP,F.dL);if(F.hlsvp){var b=apk(F.hlsvp,F.clientPlaybackNonce,F.M0);J.push(b)}return fMa(F.PN,F.isAd(),J,RSG(F)).then(function(I){gS(F,I)})}; $E3=function(F,J){F.T=J;if(F.T){J=g.N(F.T.videoInfos);for(var b=J.next();!b.done;b=J.next()){b=b.value;var I=b.containerType;I!==0&&(F.Nc[I]=b.id)}}m7(F);if(F.D&&F.T&&F.T.videoInfos&&!(F.T.videoInfos.length<=0)&&(J=t1(F.T.videoInfos[0]),F.D.flavor==="fairplay"!==J))for(b=g.N(F.v0),I=b.next();!I.done;I=b.next())if(I=I.value,J===(I.flavor==="fairplay")){F.D=I;break}}; gS=function(F,J){F.g9=J;$E3(F,new u9(g.EG(F.g9,function(b){return b.getInfo()})))}; RSG=function(F){var J={cpn:F.clientPlaybackNonce,c:F.PN.C.c,cver:F.PN.C.cver};F.Ac&&(J.ptk=F.Ac,J.oid=F.En,J.ptchn=F.MH,J.pltype=F.S4,F.s8&&(J.m=F.s8));return J}; g.yR=function(F){return wS(F)&&F.oI?(F={},F.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",F):F.U&&F.U.Ke||null}; kXa=function(F){var J=iE(F);return J&&J.text?g.Kr(J.text):F.paidContentOverlayText}; OU7=function(F){var J=iE(F);return J&&J.durationMs?L5(J.durationMs):F.paidContentOverlayDurationMs}; iE=function(F){var J,b,I;return F.playerResponse&&F.playerResponse.paidContentOverlay&&F.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.O((J=F.dD)==null?void 0:(b=J.playerOverlays)==null?void 0:(I=b.playerOverlayRenderer)==null?void 0:I.playerDisclosure,o8k)||null}; ze=function(F){var J="";if(F.LX)return F.LX;F.isLivePlayback&&(J=F.allowLiveDvr?"dvr":F.isPremiere?"lp":F.fW?"window":"live");F.SF&&(J="post");return J}; g.Nb=function(F,J){return typeof F.keywords[J]!=="string"?null:F.keywords[J]}; hSa=function(F){return!!F.pF||!!F.SY||!!F.N5||!!F.Uc||F.XJ||F.V.focEnabled||F.V.rmktEnabled}; g.lE=function(F){return!!(F.y6||F.IP||F.qh||F.hlsvp||F.wk())}; DR=function(F){if(F.S("html5_onesie")&&F.errorCode)return!1;var J=g.te(F.kQ,"ypc");F.ypcPreview&&(J=!1);return F.o8()&&!F.loading&&(g.lE(F)||g.te(F.kQ,"heartbeat")||J)}; pY=function(F,J){F=JR(F);var b={};if(J){J=g.N(J.split(","));for(var I=J.next();!I.done;I=J.next())(I=I.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(b[I[1]]={width:I[2],height:I[3]})}J=g.N(F);for(I=J.next();!I.done;I=J.next()){I=I.value;var u=b[I.itag];u&&(I.width=u.width,I.height=u.height)}return F}; m7=function(F){var J=F.getAvailableAudioTracks();J=J.concat(F.eB);for(var b=0;b0:J||F.adFormat!=="17_8"||F.isAutonav||g.U7(F.PN)||F.dK?F.GU?!1:F.PN.IP||F.PN.D4||!g.dN(F.PN)?!J&&$s(F)==="adunit"&&F.pF?!1:!0:!1:!1:(F.GU?0:F.Vk)&&g.dN(F.PN)?!0:!1;F.S("html5_log_detailpage_autoplay")&&$s(F)==="detailpage"&&F.UQ("autoplay_info",{autoplay:F.NJ,autonav:F.isAutonav,wasDompaused:F.GU,result:J});return J}; g.ks=function(F){return F.oauthToken||F.PN.pF}; uZ_=function(F){if(F.S("html5_stateful_audio_normalization")){var J=1,b=g.eB(F.PN.experiments,"html5_default_ad_gain");b&&F.isAd()&&(J=b);var I;if(b=((I=F.Z)==null?void 0:I.audio.U)||F.e9){I=(0,g.jR)();F.c5=2;var u=I-F.PN.Gc<=F.maxStatefulTimeThresholdSec*1E3;F.applyStatefulNormalization&&u?F.c5=4:u||(F.PN.eB=Infinity,F.PN.Gc=NaN);u=(F.c5===4?g.AD(F.PN.eB,F.minimumLoudnessTargetLkfs,F.loudnessTargetLkfs):F.loudnessTargetLkfs)-b;if(F.c5!==4){var w,M,q,v,a=((w=F.playerResponse)==null?void 0:(M=w.playerConfig)== null?void 0:(q=M.audioConfig)==null?void 0:(v=q.loudnessNormalizationConfig)==null?void 0:v.statelessLoudnessAdjustmentGain)||0;u+=a}u=Math.min(u,0);F.preserveStatefulLoudnessTarget&&(F.PN.eB=b+u,F.PN.Gc=I);F=Math.min(1,Math.pow(10,u/20))||J}else F=IXa(F)}else F=IXa(F);return F}; IXa=function(F){var J=1,b=g.eB(F.PN.experiments,"html5_default_ad_gain");b&&F.isAd()&&(J=b);var I;if(b=((I=F.Z)==null?void 0:I.audio.T)||F.LF)F.c5=1;return Math.min(1,Math.pow(10,-b/20))||J}; Fc=function(F){var J=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],b=cG(F.PN)==="TVHTML5_SIMPLY"&&F.PN.C.ctheme==="MUSIC";F.D4||!g.sV(F.PN)&&!b||!J.includes(F.musicVideoType)&&!F.isExternallyHostedPodcast||(F.D4=!0);if(J=g.O6())J=/Starboard\/([0-9]+)/.exec(g.Bk()),J=(J?parseInt(J[1],10):NaN)<10;b=F.PN;b=(cG(b)==="TVHTML5_CAST"||cG(b)==="TVHTML5"&&(b.C.cver.startsWith("6.20130725")||b.C.cver.startsWith("6.20130726")))&&F.PN.C.ctheme==="MUSIC";var I;if(I=!F.D4)b||(b=F.PN,b=cG(b)=== "TVHTML5"&&b.C.cver.startsWith("7")),I=b;I&&!J&&(J=F.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",b=(F.S("cast_prefer_audio_only_for_atv_and_uploads")||F.S("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&F.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",J||b||F.isExternallyHostedPodcast)&&(F.D4=!0);return F.PN.deviceIsAudioOnly||F.D4&&F.PN.V}; g.wNC=function(F){var J;if(!(J=F.S("html5_enable_sabr_live_captions")&&F.MW()&&bE(F))){var b,I,u;J=((b=F.playerResponse)==null?void 0:(I=b.playerConfig)==null?void 0:(u=I.compositeVideoConfig)==null?void 0:u.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}return J}; OW=function(F){var J,b,I;return!!((J=F.playerResponse)==null?0:(b=J.playerConfig)==null?0:(I=b.mediaCommonConfig)==null?0:I.splitScreenEligible)}; oU=function(F){var J;return!((J=F.playerResponse)==null||!J.compositePlayabilityStatus)}; Myk=function(F){return isNaN(F)?0:Math.max((Date.now()-F)/1E3-30,0)}; hw=function(F){return!(!F.qa||!F.PN.V)&&F.wk()}; Aca=function(F){return F.enablePreroll&&F.enableServerStitchedDai}; qpG=function(F){return F.DY&&!F.rZ}; bE=function(F){var J=F.S("html5_enable_sabr_on_drive")&&F.PN.Tj==="gd";if(F.Zt)return F.DY&&F.UQ("fds",{fds:!0},!0),!1;if(F.PN.Tj!=="yt"&&!J)return F.DY&&F.UQ("dsvn",{ns:F.PN.Tj},!0),!1;if(F.cotn||!F.C||F.C.isOtf||F.G4&&!F.S("html5_enable_sabr_csdai"))return!1;if(F.S("html5_use_sabr_requests_for_debugging"))return!0;if(F.DY&&F.rZ)return F.UQ("esfw",{usbc:F.DY,hsu:!!F.rZ},!0),!0;if(F.S("html5_remove_client_sabr_determination"))return!1;var b=!F.C.MW&&!F.So();J=b&&UD&&F.S("html5_enable_sabr_vod_streaming_xhr"); b=b&&!UD&&F.S("html5_enable_sabr_vod_non_streaming_xhr");var I=cE(F),u=F.S("html5_enable_sabr_drm_vod_streaming_xhr")&&UD&&F.So()&&!F.C.MW&&(F.Gc==="1"?!1:!0);(J=J||b||I||u)&&!F.rZ&&F.UQ("sabr",{loc:"m"},!0);return J&&!!F.rZ}; cE=function(F){var J;if(!(J=UD&&F.MW()&&F.So()&&(F.Gc==="1"?!1:!0)&&F.S("html5_sabr_live_drm_streaming_xhr"))){J=F.MW()&&!F.So()&&UD;var b=F.MW()&&F.latencyClass!=="ULTRALOW"&&!F.isLowLatencyLiveStream&&F.S("html5_sabr_live_normal_latency_streaming_xhr"),I=F.isLowLatencyLiveStream&&F.S("html5_sabr_live_low_latency_streaming_xhr"),u=F.latencyClass==="ULTRALOW"&&F.S("html5_sabr_live_ultra_low_latency_streaming_xhr");J=J&&(b||I||u)}b=J;J=F.enableServerStitchedDai&&b&&F.S("html5_enable_sabr_ssdai_streaming_xhr"); b=!F.enableServerStitchedDai&&b;I=F.MW()&&!UD&&F.S("html5_enable_sabr_live_non_streaming_xhr");F=UD&&(F.vV()||OW(F)&&F.S("html5_enable_sabr_for_lifa_eligible_streams"));return J||b||I||F}; g.oH=function(F){return F.TL&&bE(F)}; rIa=function(F){var J;if(J=!!F.cotn)J=F.videoId,J=!!J&&g.E9(J)===1;return J&&!F.qa}; g.UW=function(F){if(!F.C||!F.U||!F.Z)return!1;var J=F.C.C,b=!!J[F.U.id]&&Nv(J[F.U.id].gw.C);J=!!J[F.Z.id]&&Nv(J[F.Z.id].gw.C);return(F.U.itag==="0"||b)&&J}; xs=function(F){return F.Op?["OK","LIVE_STREAM_OFFLINE"].includes(F.Op.status):!0}; t54=function(F){return(F=F.Dc)&&F.showError?F.showError:!1}; Mb=function(F,J){return F.S(J)?!0:(F.fflags||"").includes(J+"=true")}; vf3=function(F){return F.S("html5_heartbeat_iff_heartbeat_params_filled")}; iU3=function(F,J){J.inlineMetricEnabled&&(F.inlineMetricEnabled=!0);J.playback_progress_0s_url&&(F.Uc=new cba(J));if(J=J.video_masthead_ad_quartile_urls)F.SY=J.quartile_0_url,F.Kw=J.quartile_25_url,F.tK=J.quartile_50_url,F.mD=J.quartile_75_url,F.z4=J.quartile_100_url,F.N5=J.quartile_0_urls,F.zP=J.quartile_25_urls,F.t5=J.quartile_50_urls,F.Fr=J.quartile_75_urls,F.VT=J.quartile_100_urls}; yIY=function(F){var J={};F=g.N(F);for(var b=F.next();!b.done;b=F.next()){b=b.value;var I=b.split("=");I.length===2?J[I[0]]=I[1]:J[b]=!0}return J}; pFJ=function(F){if(F){if(brv(F))return F;F=IUm(F);if(brv(F,!0))return F}return""}; g.aXG=function(F){return F.captionsLanguagePreference||F.PN.captionsLanguagePreference||g.Nb(F,"yt:cc_default_lang")||F.PN.Q2}; nY=function(F){return!(!F.isLivePlayback||!F.hasProgressBarBoundaries())}; g.nC=function(F){var J;return F.N6||((J=F.suggestions)==null?void 0:J[0])||null}; g.tw=function(F){return F.T0&&(F.S("embeds_enable_pfp_always_unbranded")||F.PN.mq)}; Zh=function(F,J){F.S("html5_log_autoplay_src")&&LC(F)&&F.UQ("apsrc",{src:J})}; g.HE=function(F){var J,b;return!!((J=F.embeddedPlayerConfig)==null?0:(b=J.embeddedPlayerFlags)==null?0:b.enableMusicUx)}; g.FE=function(F){var J=F.J(),b=g.LY(J),I=J.oI;(J.S("embeds_web_enable_iframe_api_send_full_embed_url")||J.S("embeds_web_enable_rcat_validation_in_havs")||J.S("embeds_enable_autoplay_and_visibility_signals"))&&g.Bu(J)&&(I&&(b.thirdParty=Object.assign({},b.thirdParty,{embedUrl:I})),rjz(b,F));if(I=F.WN)b.clickTracking={clickTrackingParams:I};I=b.client||{};var u="EMBED",w=$s(F);w==="leanback"?u="WATCH":J.S("gvi_channel_client_screen")&&w==="profilepage"?u="CHANNEL":F.nW?u="LIVE_MONITOR":w==="detailpage"? u="WATCH_FULL_SCREEN":w==="adunit"?u="ADUNIT":w==="sponsorshipsoffer"&&(u="UNKNOWN");I.clientScreen=u;if(J=F.kidsAppInfo)I.kidsAppInfo=JSON.parse(J);(u=F.mq)&&!J&&(I.kidsAppInfo={contentSettings:{ageUpMode:eGk[u]}});if(J=F.Vj)I.unpluggedAppInfo={enableFilterMode:!0};(u=F.unpluggedFilterModeType)&&!J&&(I.unpluggedAppInfo={filterModeType:KzG[u]});if(J=F.Tj)I.unpluggedLocationInfo=J;b.client=I;I=b.request||{};F.Ly&&(I.isPrefetch=!0);if(J=F.mdxEnvironment)I.mdxEnvironment=J;if(J=F.mdxControlMode)I.mdxControlMode= pN3[J];b.request=I;I=b.user||{};if(J=F.eE)I.credentialTransferTokens=[{token:J,scope:"VIDEO"}];if(J=F.Um)I.delegatePurchases={oauthToken:J},I.kidsParent={oauthToken:J};b.user=I;if(I=F.contextParams)b.activePlayers=[{playerContextParams:I}];if(F=F.clientScreenNonce)b.clientScreenNonce=F;return b}; g.LY=function(F){var J=g.UV(),b=J.client||{};if(F.forcedExperiments){var I=F.forcedExperiments.split(","),u=[];I=g.N(I);for(var w=I.next();!w.done;w=I.next())u.push(Number(w.value));b.experimentIds=u}if(u=F.homeGroupInfo)b.homeGroupInfo=JSON.parse(u);if(u=F.getPlayerType())b.playerType=u;if(u=F.C.ctheme)b.theme=u;if(u=F.livingRoomAppMode)b.tvAppInfo=Object.assign({},b.tvAppInfo,{livingRoomAppMode:u});u=F.deviceYear;F.S("html5_propagate_device_year")&&u&&(b.tvAppInfo=Object.assign({},b.tvAppInfo,{deviceYear:u})); if(u=F.livingRoomPoTokenId)b.tvAppInfo=Object.assign({},b.tvAppInfo,{livingRoomPoTokenId:u});J.client=b;b=J.user||{};F.enableSafetyMode&&(b=Object.assign({},b,{enableSafetyMode:!0}));F.pageId&&(b=Object.assign({},b,{onBehalfOfUser:F.pageId}));J.user=b;b=F.oI;F.S("embeds_web_enable_iframe_api_send_full_embed_url")||F.S("embeds_web_enable_rcat_validation_in_havs")||F.S("embeds_enable_autoplay_and_visibility_signals")||!b||(J.thirdParty={embedUrl:b});return J}; Nwz=function(F,J,b){var I=F.videoId,u=g.FE(F),w=F.J(),M={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(dP()),referer:document.location.toString(),signatureTimestamp:20138};g.Qe();F.isAutonav&&(M.autonav=!0);g.Rg(0,141)&&(M.autonavState=g.Rg(0,140)?"STATE_OFF":"STATE_ON");M.autoCaptionsDefaultOn=g.Rg(0,66);Dh(F)&&(M.autoplay=!0);w.V&&F.cycToken&&(M.cycToken=F.cycToken);w.enablePrivacyFilter&&(M.enablePrivacyFilter=!0);F.isFling&&(M.fling=!0);var q=F.forceAdsUrl;if(q){var v={},a=[];q=q.split(","); q=g.N(q);for(var e=q.next();!e.done;e=q.next()){e=e.value;var K=e.split("|");K.length!==3||e.includes("=")||(K[0]="breaktype="+K[0],K[1]="offset="+K[1],K[2]="url="+K[2]);e={adtype:"video_ad"};K=g.N(K);for(var p=K.next();!p.done;p=K.next()){var m=g.N(p.value.split("="));p=m.next().value;m=wao(m);e[p]=m.join("=")}K=e.url;p=e.presetad;m=e.viralresponseurl;var y=Number(e.campaignid);if(e.adtype==="in_display_ad")K&&(v.url=K),p&&(v.presetAd=p),m&&(v.viralAdResponseUrl=m),y&&(v.viralCampaignId=String(y)); else if(e.adtype==="video_ad"){var f={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(e.offset)||0)}};if(e=gfa[e.breaktype])f.breakType=e;K&&(f.url=K);p&&(f.presetAd=p);m&&(f.viralAdResponseUrl=m);y&&(f.viralCampaignId=String(y));a.push(f)}}M.forceAdParameters={videoAds:a,inDisplayAd:v}}F.isInlinePlaybackNoAd&&(M.isInlinePlaybackNoAd=!0);F.isLivingRoomDeeplink&&(M.isLivingRoomDeeplink=!0);v=F.IB;if(v!=null){v={startWalltime:String(v)};if(a=F.ZY)v.manifestDuration=String(a||14400);M.liveContext= v}if(F.mutedAutoplay&&(M.mutedAutoplay=!0,F.S("embeds_enable_full_length_inline_muted_autoplay"))){v=w.getWebPlayerContextConfig();var d,G;(v==null?0:(d=v.embedsHostFlags)==null?0:d.allowMutedAutoplayDurationMode)&&(v==null?0:(G=v.embedsHostFlags)==null?0:G.allowMutedAutoplayDurationMode.includes(m0v[F.mutedAutoplayDurationMode]))&&(M.mutedAutoplayDurationMode=m0v[F.mutedAutoplayDurationMode])}if(F.GU?0:F.Vk)M.splay=!0;d=F.vnd;d===5&&(M.vnd=d);d={};if(G=F.isMdxPlayback)d.triggeredByMdx=G;if(G=F.lK)d.skippableAdsSupported= G.split(",").includes("ska");if(a=F.I6){G=F.vO;v=[];a=g.N(Shz(a));for(q=a.next();!q.done;q=a.next()){q=q.value;e=q.platform;q={applicationState:q.zB?"INACTIVE":"ACTIVE",clientFormFactor:ycC[e]||"UNKNOWN_FORM_FACTOR",clientName:Yh4[q.i$]||"UNKNOWN_INTERFACE",clientVersion:q.deviceVersion||"",platform:imY[e]||"UNKNOWN_PLATFORM"};e={};if(G){K=void 0;try{K=JSON.parse(G)}catch(P){g.rQ(P)}K&&(e={params:[{key:"ms",value:K.ms}]},K.advertising_id&&(e.advertisingId=K.advertising_id),K.limit_ad_tracking!==void 0&& K.limit_ad_tracking!==null&&(e.limitAdTracking=K.limit_ad_tracking),q.osName=K.os_name,q.userAgent=K.user_agent,q.windowHeightPoints=K.window_height_points,q.windowWidthPoints=K.window_width_points)}v.push({adSignalsInfo:e,remoteClient:q})}d.remoteContexts=v}G=F.sourceContainerPlaylistId;v=F.serializedMdxMetadata;if(G||v)a={},G&&(a.mdxPlaybackContainerInfo={sourceContainerPlaylistId:G}),v&&(a.serializedMdxMetadata=v),d.mdxPlaybackSourceContext=a;M.mdxContext=d;d=J.width;d>0&&(M.playerWidthPixels= Math.round(d));if(J=J.height)M.playerHeightPixels=Math.round(J);b!==0&&(M.vis=b);if(b=w.widgetReferrer)M.widgetReferrer=b.substring(0,128);g.dN(w)&&M&&(M.ancestorOrigins=w.ancestorOrigins);F.defaultActiveSourceVideoId&&(M.compositeVideoContext={defaultActiveSourceVideoId:F.defaultActiveSourceVideoId});if(w=w.getWebPlayerContextConfig())M.encryptedHostFlags=w.encryptedHostFlags;I={videoId:I,context:u,playbackContext:{contentPlaybackContext:M}};F.reloadPlaybackParams&&(I.playbackContext.reloadPlaybackContext= {reloadPlaybackParams:F.reloadPlaybackParams});F.contentCheckOk&&(I.contentCheckOk=!0);if(u=F.clientPlaybackNonce)I.cpn=u;if(u=F.playerParams)I.params=u;if(u=F.playlistId)I.playlistId=u;F.racyCheckOk&&(I.racyCheckOk=!0);u=F.J();if(M=u.embedConfig)I.serializedThirdPartyEmbedConfig=M;I.captionParams={};M=g.Rg(g.Qe(),65);F.deviceCaptionsOn!=null?I.captionParams.deviceCaptionsOn=F.deviceCaptionsOn:g.hP(u)&&(I.captionParams.deviceCaptionsOn=M!=null?!M:!1);F.Ch&&(I.captionParams.deviceCaptionsLangPref= F.Ch);F.Xc.length?I.captionParams.viewerSelectedCaptionLangs=F.Xc:g.hP(u)&&(M=g.Ca(),M==null?0:M.length)&&(I.captionParams.viewerSelectedCaptionLangs=M);M=F.fetchType==="onesie"&&F.S("html5_onesie_attach_po_token");w=F.fetchType!=="onesie"&&F.S("html5_non_onesie_attach_po_token");if(M||w)M=F.J(),M.jZ&&(I.serviceIntegrityDimensions={},I.serviceIntegrityDimensions.poToken=M.jZ);u.S("fetch_att_independently")&&(I.attestationRequest={omitBotguardData:!0});if(u.S("html5_enable_sabr_from_watch_server")|| u.S("html5_create_default_device_playback_capabilities")||u.S("html5_report_supports_vp9_encoding"))I.playbackContext||(I.playbackContext={}),I.playbackContext.devicePlaybackCapabilities=zGa(F),I.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding===!1&&F.UQ("noVp9",{});return I}; zGa=function(F){var J=!(F==null?0:F.Bj())&&(F==null?void 0:F.MW())&&Ll(),b;if(b=F==null?0:F.S("html5_report_supports_vp9_encoding")){if(F==null)b=0;else{b=g.IU(F);F=F.J().D;var I=Ji("243");b=I?qv(b,I,F,!0)===!0:!1}b=b&&!J}return{supportsVp9Encoding:!!b,supportXhr:UD}}; fXC=function(F,J){var b,I,u;return g.S(function(w){if(w.C==1)return b={context:g.LY(F.J()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:F.videoId,cpn:F.clientPlaybackNonce}}]},I=g.ZI(lXY),g.T(w,g.cf(J,b,I),2);u=w.U;return w.return(u)})}; Wz_=function(F,J,b){var I=g.eB(J.experiments,"bg_vm_reinit_threshold");(!VA||(0,g.jR)()-VA>I)&&fXC(F,b).then(function(u){u&&(u=u.botguardData)&&g.TR(u,J)},function(u){F.iR()||(u=Gj(u),F.UQ("attf",u.details))})}; Ja=function(F,J){g.R.call(this);this.app=F;this.state=J}; Ij=function(F,J,b){F.state.C.hasOwnProperty(J)||by(F,J,b);F.state.V[J]=function(){return b.apply(F,g.Ba.apply(0,arguments))}; F.state.W.add(J)}; uy=function(F,J,b){F.state.C.hasOwnProperty(J)||by(F,J,b);F.app.J().V&&(F.state.Y[J]=function(){return b.apply(F,g.Ba.apply(0,arguments))},F.state.W.add(J))}; by=function(F,J,b){F.state.C[J]=function(){return b.apply(F,g.Ba.apply(0,arguments))}}; g.wO=function(F,J,b){return F.state.C[J].apply(F.state.C,g.W(b))}; MZ=function(){g.EJ.call(this);this.D=new Map}; Aa=function(){g.R.apply(this,arguments);this.element=null;this.W=new Set;this.V={};this.Y={};this.C={};this.N=new Set;this.T=new MZ;this.U=new MZ;this.Z=new MZ;this.D=new MZ}; d0_=function(F,J,b){typeof F==="string"&&(F={mediaContentUrl:F,startSeconds:J,suggestedQuality:b});a:{if((J=F.mediaContentUrl)&&(J=/\/([ve]|embed)\/([^#?]+)/.exec(J))&&J[2]){J=J[2];break a}J=null}F.videoId=J;return qZ(F)}; qZ=function(F,J,b){if(typeof F==="string")return{videoId:F,startSeconds:J,suggestedQuality:b};J={};b=g.N(Efm);for(var I=b.next();!I.done;I=b.next())I=I.value,F[I]&&(J[I]=F[I]);return J}; jnY=function(F,J,b,I){if(g.Um(F)&&!Array.isArray(F)){J="playlist list listType index startSeconds suggestedQuality".split(" ");b={};for(I=0;I32&&I.push("hfr");J.isHdr()&&I.push("hdr");J.primaries==="bt2020"&&I.push("wcg");b.video_quality_features=I}}if(F=F.getPlaylistId())b.list=F;return b}; pE=function(){vp.apply(this,arguments)}; gO=function(F,J){var b={};if(F.app.J().eE){F=g.N(BwG);for(var I=F.next();!I.done;I=F.next())I=I.value,J.hasOwnProperty(I)&&(b[I]=J[I]);if(J=b.qoe_cat)F="",typeof J==="string"&&J.length>0&&(F=J.split(",").filter(function(u){return Tw4.includes(u)}).join(",")),b.qoe_cat=F; rcC(b)}else for(F=g.N(Spz),I=F.next();!I.done;I=F.next())I=I.value,J.hasOwnProperty(I)&&(b[I]=J[I]);return b}; rcC=function(F){var J=F.raw_player_response;if(!J){var b=F.player_response;b&&(J=JSON.parse(b))}delete F.player_response;delete F.raw_player_response;if(J){F.raw_player_response={streamingData:J.streamingData};var I;if((I=J.playbackTracking)==null?0:I.qoeUrl)F.raw_player_response=Object.assign({},F.raw_player_response,{playbackTracking:{qoeUrl:J.playbackTracking.qoeUrl}});var u;if((u=J.videoDetails)==null?0:u.videoId)F.raw_player_response=Object.assign({},F.raw_player_response,{videoDetails:{videoId:J.videoDetails.videoId}})}}; md=function(F,J,b){var I=F.app.Ze(b);if(!I)return 0;F=I-F.app.getCurrentTime(b);return J-F}; Ypm=function(F){var J=J===void 0?5:J;return F?snG[F]||J:J}; g.y_=function(){pE.apply(this,arguments)}; $0_=function(F){by(F,"getInternalApiInterface",F.getInternalApiInterface);by(F,"addEventListener",F.OC);by(F,"removeEventListener",F.esG);by(F,"cueVideoByPlayerVars",F.Zi);by(F,"loadVideoByPlayerVars",F.CTQ);by(F,"preloadVideoByPlayerVars",F.Jev);by(F,"getAdState",F.getAdState);by(F,"sendAbandonmentPing",F.sendAbandonmentPing);by(F,"setLoopRange",F.setLoopRange);by(F,"getLoopRange",F.getLoopRange);by(F,"setAutonavState",F.setAutonavState);by(F,"seekTo",F.HdR);by(F,"seekBy",F.QPG);by(F,"seekToLiveHead", F.seekToLiveHead);by(F,"requestSeekToWallTimeSeconds",F.requestSeekToWallTimeSeconds);by(F,"seekToStreamTime",F.seekToStreamTime);by(F,"startSeekCsiAction",F.startSeekCsiAction);by(F,"getStreamTimeOffset",F.getStreamTimeOffset);by(F,"getVideoData",F.Bs);by(F,"setInlinePreview",F.setInlinePreview);by(F,"getAppState",F.getAppState);by(F,"updateLastActiveTime",F.updateLastActiveTime);by(F,"setBlackout",F.setBlackout);by(F,"setUserEngagement",F.setUserEngagement);by(F,"updateSubtitlesUserSettings",F.updateSubtitlesUserSettings); by(F,"getPresentingPlayerType",F.eh);by(F,"canPlayType",F.canPlayType);by(F,"updatePlaylist",F.updatePlaylist);by(F,"updateVideoData",F.updateVideoData);by(F,"updateEnvironmentData",F.updateEnvironmentData);by(F,"sendVideoStatsEngageEvent",F.tTQ);by(F,"productsInVideoVisibilityUpdated",F.productsInVideoVisibilityUpdated);by(F,"setSafetyMode",F.setSafetyMode);by(F,"isAtLiveHead",function(J){return F.isAtLiveHead(void 0,J)}); by(F,"getVideoAspectRatio",F.getVideoAspectRatio);by(F,"getPreferredQuality",F.getPreferredQuality);by(F,"getPlaybackQualityLabel",F.getPlaybackQualityLabel);by(F,"setPlaybackQualityRange",F.pgI);by(F,"onAdUxClicked",F.onAdUxClicked);by(F,"getFeedbackProductData",F.getFeedbackProductData);by(F,"getStoryboardFrame",F.getStoryboardFrame);by(F,"getStoryboardFrameIndex",F.getStoryboardFrameIndex);by(F,"getStoryboardLevel",F.getStoryboardLevel);by(F,"getNumberOfStoryboardLevels",F.getNumberOfStoryboardLevels); by(F,"getCaptionWindowContainerId",F.getCaptionWindowContainerId);by(F,"getAvailableQualityLabels",F.getAvailableQualityLabels);by(F,"addCueRange",F.addCueRange);by(F,"addUtcCueRange",F.addUtcCueRange);by(F,"showAirplayPicker",F.showAirplayPicker);by(F,"dispatchReduxAction",F.dispatchReduxAction);by(F,"getPlayerResponse",F.lL);by(F,"getWatchNextResponse",F.Yp);by(F,"getHeartbeatResponse",F.D9);by(F,"getCurrentTime",F.gr);by(F,"getDuration",F.lO);by(F,"getPlayerState",F.getPlayerState);by(F,"getPlayerStateObject", F.QH);by(F,"getVideoLoadedFraction",F.getVideoLoadedFraction);by(F,"getProgressState",F.getProgressState);by(F,"getVolume",F.getVolume);by(F,"setVolume",F.WM);by(F,"isMuted",F.isMuted);by(F,"mute",F.Vs);by(F,"unMute",F.yZ);by(F,"loadModule",F.loadModule);by(F,"unloadModule",F.unloadModule);by(F,"getOption",F.vX);by(F,"getOptions",F.getOptions);by(F,"setOption",F.setOption);by(F,"loadVideoById",F.iZ);by(F,"loadVideoByUrl",F.M9);by(F,"playVideo",F.kB);by(F,"loadPlaylist",F.loadPlaylist);by(F,"nextVideo", F.nextVideo);by(F,"previousVideo",F.previousVideo);by(F,"playVideoAt",F.playVideoAt);by(F,"getDebugText",F.getDebugText);by(F,"getWebPlayerContextConfig",F.getWebPlayerContextConfig);by(F,"notifyShortsAdSwipeEvent",F.notifyShortsAdSwipeEvent);by(F,"getVideoContentRect",F.getVideoContentRect);by(F,"setSqueezeback",F.setSqueezeback);by(F,"toggleSubtitlesOn",F.toggleSubtitlesOn);by(F,"isSubtitlesOn",F.isSubtitlesOn);by(F,"reportPlaybackIssue",F.reportPlaybackIssue);by(F,"setAutonav",F.setAutonav);by(F, "isNotServable",F.isNotServable);by(F,"channelSubscribed",F.channelSubscribed);by(F,"channelUnsubscribed",F.channelUnsubscribed);by(F,"togglePictureInPicture",F.togglePictureInPicture);by(F,"supportsGaplessAudio",F.supportsGaplessAudio);by(F,"supportsGaplessShorts",F.supportsGaplessShorts);by(F,"enqueueVideoByPlayerVars",function(J){return void F.enqueueVideoByPlayerVars(J)}); by(F,"clearQueue",F.clearQueue);by(F,"getAudioTrack",F.XG);by(F,"setAudioTrack",F.xkW);by(F,"getAvailableAudioTracks",F.GG);by(F,"getMaxPlaybackQuality",F.getMaxPlaybackQuality);by(F,"getUserPlaybackQualityPreference",F.getUserPlaybackQualityPreference);by(F,"getSubtitlesUserSettings",F.getSubtitlesUserSettings);by(F,"resetSubtitlesUserSettings",F.resetSubtitlesUserSettings);by(F,"setMinimized",F.setMinimized);by(F,"setOverlayVisibility",F.setOverlayVisibility);by(F,"confirmYpcRental",F.confirmYpcRental); by(F,"queueNextVideo",F.queueNextVideo);by(F,"handleExternalCall",F.handleExternalCall);by(F,"logApiCall",F.logApiCall);by(F,"isExternalMethodAvailable",F.isExternalMethodAvailable);by(F,"setScreenLayer",F.setScreenLayer);by(F,"getCurrentPlaylistSequence",F.getCurrentPlaylistSequence);by(F,"getPlaylistSequenceForTime",F.getPlaylistSequenceForTime);by(F,"shouldSendVisibilityState",F.shouldSendVisibilityState);by(F,"syncVolume",F.syncVolume);by(F,"highlightSettingsMenuItem",F.highlightSettingsMenuItem); by(F,"openSettingsMenuItem",F.openSettingsMenuItem);by(F,"getEmbeddedPlayerResponse",F.getEmbeddedPlayerResponse);by(F,"getVisibilityState",F.getVisibilityState);by(F,"isMutedByMutedAutoplay",F.isMutedByMutedAutoplay);F.S("embeds_enable_emc3ds_muted_autoplay")&&by(F,"isMutedByEmbedsMutedAutoplay",F.isMutedByEmbedsMutedAutoplay);by(F,"setGlobalCrop",F.setGlobalCrop);by(F,"setInternalSize",F.setInternalSize);by(F,"setFauxFullscreen",F.setFauxFullscreen);by(F,"setAppFullscreen",F.setAppFullscreen)}; zP=function(F,J,b){F=g.iy(F.W1(),J);return b?(b.addOnDisposeCallback(F),null):F}; g.NZ=function(F,J,b){return F.app.J().xo?J:g.m8("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:J,SHORTCUT:b})}; CSz=function(F){F.W1().element.setAttribute("aria-live","polite")}; g.ly=function(F,J){g.y_.call(this,F,J);$0_(this);uy(this,"addEventListener",this.Dp);uy(this,"removeEventListener",this.Xg_);uy(this,"cueVideoByPlayerVars",this.XV);uy(this,"loadVideoByPlayerVars",this.wbG);uy(this,"preloadVideoByPlayerVars",this.yez);uy(this,"loadVideoById",this.iZ);uy(this,"loadVideoByUrl",this.M9);uy(this,"playVideo",this.kB);uy(this,"loadPlaylist",this.loadPlaylist);uy(this,"nextVideo",this.nextVideo);uy(this,"previousVideo",this.previousVideo);uy(this,"playVideoAt",this.playVideoAt); uy(this,"getVideoData",this.cX);uy(this,"seekBy",this.SoG);uy(this,"seekTo",this.hsQ);uy(this,"showControls",this.showControls);uy(this,"hideControls",this.hideControls);uy(this,"cancelPlayback",this.cancelPlayback);uy(this,"getProgressState",this.getProgressState);uy(this,"isInline",this.isInline);uy(this,"setInline",this.setInline);uy(this,"setLoopVideo",this.setLoopVideo);uy(this,"getLoopVideo",this.getLoopVideo);uy(this,"getVideoContentRect",this.getVideoContentRect);uy(this,"getVideoStats",this.yH); uy(this,"getCurrentTime",this.Aa);uy(this,"getDuration",this.lO);uy(this,"getPlayerState",this.Hs);uy(this,"getVideoLoadedFraction",this.oY);uy(this,"mute",this.Vs);uy(this,"unMute",this.yZ);uy(this,"setVolume",this.WM);uy(this,"loadModule",this.loadModule);uy(this,"unloadModule",this.unloadModule);uy(this,"getOption",this.vX);uy(this,"getOptions",this.getOptions);uy(this,"setOption",this.setOption);uy(this,"addCueRange",this.addCueRange);uy(this,"getDebugText",this.getDebugText);uy(this,"getStoryboardFormat", this.getStoryboardFormat);uy(this,"toggleFullscreen",this.toggleFullscreen);uy(this,"isFullscreen",this.isFullscreen);uy(this,"getPlayerSize",this.getPlayerSize);uy(this,"toggleSubtitles",this.toggleSubtitles);uy(this,"setCenterCrop",this.setCenterCrop);uy(this,"setFauxFullscreen",this.setFauxFullscreen);uy(this,"setSizeStyle",this.setSizeStyle);uy(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);uy(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);Vyz(this)}; g.fE=function(F){F=F.TF();var J=F.sz.get("endscreen");return J&&J.X$()?!0:F.Gr()}; g.Wp=function(F,J){F.getPresentingPlayerType()===3?F.publish("mdxautoplaycancel"):F.jE("onAutonavCancelled",J)}; g.Ef=function(F){var J=dO(F.TF());return F.app.FY&&!F.isFullscreen()||F.getPresentingPlayerType()===3&&J&&J.FI()&&J.Q5()||!!F.getPlaylist()}; g.jV=function(F,J){g.wO(F,"addEmbedsConversionTrackingParams",[J])}; g.V_=function(F){return(F=g.GP(F.TF()))?F.s3():{}}; g.XNJ=function(F){F=(F=F.getVideoData())&&F.U;return!!F&&!(!F.audio||!F.video)&&F.mimeType!=="application/x-mpegURL"}; g.Pp=function(F,J,b){F=F.mG().element;var I=qL(F.children,function(u){u=Number(u.getAttribute("data-layer"));return b-u||1}); I<0&&(I=-(I+1));bB(F,J,I);J.setAttribute("data-layer",String(b))}; g.Bp=function(F){var J=F.J();if(!J.g9)return!1;var b=F.getVideoData();if(!b||F.getPresentingPlayerType()===3)return!1;var I=(!b.isLiveDefaultBroadcast||J.S("allow_poltergust_autoplay"))&&!nY(b);I=b.isLivePlayback&&(!J.S("allow_live_autoplay")||!I);var u=b.isLivePlayback&&J.S("allow_live_autoplay_on_mweb");F=F.getPlaylist();F=!!F&&F.FI();var w=b.dD&&b.dD.playerOverlays||null;w=!!(w&&w.playerOverlayRenderer&&w.playerOverlayRenderer.autoplay);w=b.T0&&w;return!b.ypcPreview&&(!I||u)&&!g.te(b.kQ,"ypc")&& !F&&(!g.dN(J)||w)}; Qn7=function(F){F=F.app.F_();if(!F)return!1;var J=F.getVideoData();if(!J.U||!J.U.video||J.U.video.C<1080||J.oR)return!1;var b=/^qsa/.test(J.clientPlaybackNonce),I="r";J.U.id.indexOf(";")>=0&&(b=/^[a-p]/.test(J.clientPlaybackNonce),I="x");return b?(F.UQ("iqss",{trigger:I},!0),!0):!1}; TP=function(){Cw.apply(this,arguments);this.requestHeaders={}}; SV=function(){rO||(rO=new TP);return rO}; sf=function(F,J){J?F.requestHeaders.Authorization="Bearer "+J:delete F.requestHeaders.Authorization}; g.YJ=function(F,J,b,I){I=I===void 0?!1:I;g.vi.call(this,J);var u=this;this.G=F;this.kQ=I;this.Y=new g.s5(this);this.Tj=new g.ZU(this,b,!0,void 0,void 0,function(){u.qZ()}); g.k(this,this.Y);g.k(this,this.Tj)}; $J=function(F){var J=F.G.getRootNode();return F.G.S("web_watch_pip")||F.G.S("web_shorts_pip")?Xl(J):document}; RGz=function(F){F.U&&(document.activeElement&&g.uB(F.element,document.activeElement)&&F.U.focus(),F.U.setAttribute("aria-expanded","false"),F.U=void 0);g.Ve(F.Y);F.N=void 0}; CE=function(F,J,b){F.K4()?F.fk():F.Bo(J,b)}; XE=function(F,J,b,I){I=new g.U({X:"div",Dv:["ytp-linked-account-popup-button"],sQ:I,L:{role:"button",tabindex:"0"}});J=new g.U({X:"div",K:"ytp-linked-account-popup",L:{role:"dialog","aria-modal":"true",tabindex:"-1"},j:[{X:"div",K:"ytp-linked-account-popup-title",sQ:J},{X:"div",K:"ytp-linked-account-popup-description",sQ:b},{X:"div",K:"ytp-linked-account-popup-buttons",j:[I]}]});g.YJ.call(this,F,{X:"div",K:"ytp-linked-account-popup-container",j:[J]},100);var u=this;this.dialog=J;g.k(this,this.dialog); I.listen("click",function(){u.fk()}); g.k(this,I);g.Pp(this.G,this.element,4);this.hide()}; g.Rj=function(F,J,b,I){g.vi.call(this,F);this.priority=J;b&&g.Q_(this,b);I&&this.Ce(I)}; g.Dd=function(F,J,b,I){F=F===void 0?{}:F;J=J===void 0?[]:J;b=b===void 0?!1:b;I=I===void 0?!1:I;J.push("ytp-menuitem");var u=F;"role"in u||(u.role="menuitem");b||(u=F,"tabindex"in u||(u.tabindex="0"));F={X:b?"a":"div",Dv:J,L:F,j:[{X:"div",K:"ytp-menuitem-icon",sQ:"{{icon}}"},{X:"div",K:"ytp-menuitem-label",sQ:"{{label}}"},{X:"div",K:"ytp-menuitem-content",sQ:"{{content}}"}]};I&&F.j.push({X:"div",K:"ytp-menuitem-secondary-icon",sQ:"{{secondaryIcon}}"});return F}; g.Q_=function(F,J){F.updateValue("label",J)}; kJ=function(F){g.Rj.call(this,g.Dd({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var J=this;this.G=F;this.U=this.C=!1;this.Rf=F.z6();F.createServerVe(this.element,this,!0);this.B(this.G,"settingsMenuVisibilityChanged",function(b){J.tJ(b)}); this.B(this.G,"videodatachange",this.Z);this.listen("click",this.onClick);this.Z()}; Of=function(F){return F?g.Kr(F):""}; oj=function(F){g.R.call(this);this.api=F}; ha=function(F){oj.call(this,F);var J=this;by(F,"setAccountLinkState",function(b){J.setAccountLinkState(b)}); by(F,"updateAccountLinkingConfig",function(b){J.updateAccountLinkingConfig(b)}); F.addEventListener("videodatachange",function(b,I){J.onVideoDataChange(I)}); F.addEventListener("settingsMenuInitialized",function(){J.menuItem=new kJ(J.api);g.k(J,J.menuItem)})}; D0Y=function(F){this.api=F;this.C={}}; cp=function(F,J,b,I){J in F.C||(b=new g.b6(b,I,{id:J,priority:2,namespace:"appad"}),F.api.TU([b],1),F.C[J]=b)}; Uf=function(F){oj.call(this,F);var J=this;this.events=new g.s5(this);g.k(this,this.events);this.C=new D0Y(this.api);this.events.B(this.api,"legacyadtrackingpingreset",function(){J.C.C={}}); this.events.B(this.api,"legacyadtrackingpingchange",function(b){var I=J.C;cp(I,"part2viewed",1,0x8000000000000);cp(I,"engagedview",Math.max(1,b.xm*1E3),0x8000000000000);if(!b.isLivePlayback){var u=b.lengthSeconds*1E3;LC(b)&&I.api.S("html5_shorts_gapless_ads_duration_fix")&&(u=I.api.getProgressState().seekableEnd*1E3-b.YC);cp(I,"videoplaytime25",u*.25,u);cp(I,"videoplaytime50",u*.5,u);cp(I,"videoplaytime75",u*.75,u);cp(I,"videoplaytime100",u,0x8000000000000);cp(I,"conversionview",u,0x8000000000000); cp(I,"videoplaybackstart",1,u);cp(I,"videoplayback2s",2E3,u);cp(I,"videoplayback10s",1E4,u)}}); this.events.B(this.api,g.u6("appad"),this.U);this.events.B(this.api,g.wq("appad"),this.U)}; hGm=function(F,J,b){if(!(b in J))return!1;J=J[b];Array.isArray(J)||(J=[J]);J=g.N(J);for(b=J.next();!b.done;b=J.next()){b=b.value;var I={CPN:F.api.getVideoData().clientPlaybackNonce};b=g.TM(b,I);I=void 0;I=I===void 0?!1:I;(I=nT(tj(b,k2m),b,I,"Active View 3rd Party Integration URL"))||(I=void 0,I=I===void 0?!1:I,I=nT(tj(b,OmC),b,I,"Google/YouTube Brand Lift URL"));I||(I=void 0,I=I===void 0?!1:I,I=nT(tj(b,ofo),b,I,"Nielsen OCR URL"));g.Xp(b,void 0,I)}return!0}; xJ=function(F,J){cca(F,J).then(function(b){g.Xp(J,void 0,void 0,b)})}; nE=function(F,J){J.forEach(function(b){xJ(F,b)})}; cca=function(F,J){return g.jB(F.api.J())&&AR(J)&&Mk(J)?g.LH(F.api.J(),g.ks(F.api.getVideoData())).then(function(b){var I;b&&(I={Authorization:"Bearer "+b});return I},void 0):r$()}; U0a=function(F){oj.call(this,F);this.events=new g.s5(F);g.k(this,this.events);this.events.B(F,"videoready",function(J){if(F.getPresentingPlayerType()===1){var b,I,u={playerDebugData:{pmlSignal:!!((b=J.getPlayerResponse())==null?0:(I=b.adPlacements)==null?0:I.some(function(w){var M;return w==null?void 0:(M=w.adPlacementRenderer)==null?void 0:M.renderer})), contentCpn:J.clientPlaybackNonce}};g.AY("adsClientStateChange",u)}})}; ta=function(F){g.U.call(this,{X:"button",Dv:["ytp-button"],L:{title:"{{title}}","aria-label":"{{label}}","data-priority":"2","data-tooltip-target-id":"ytp-autonav-toggle-button"},j:[{X:"div",K:"ytp-autonav-toggle-button-container",j:[{X:"div",K:"ytp-autonav-toggle-button",L:{"aria-checked":"true"}}]}]});this.G=F;this.U=[];this.C=!1;this.isChecked=!0;F.createClientVe(this.element,this,113681);this.B(F,"presentingplayerstatechange",this.fT);this.listen("click",this.onClick);this.G.J().S("web_player_autonav_toggle_always_listen")&& x0G(this);zP(F,this.element,this);this.fT()}; x0G=function(F){F.U.push(F.B(F.G,"videodatachange",F.fT));F.U.push(F.B(F.G,"videoplayerreset",F.fT));F.U.push(F.B(F.G,"onPlaylistUpdate",F.fT));F.U.push(F.B(F.G,"autonavchange",F.Jy))}; nfk=function(F){F.isChecked=F.isChecked;F.RI("ytp-autonav-toggle-button").setAttribute("aria-checked",String(F.isChecked));var J=F.isChecked?"A reprodu\u00e7\u00e3o autom\u00e1tica est\u00e1 ativada":"A reprodu\u00e7\u00e3o autom\u00e1tica est\u00e1 desativada";F.updateValue("title",J);F.updateValue("label",J);F.G.Dl()}; tyC=function(F){return F.G.J().S("web_player_autonav_use_server_provided_state")&&U9(F.Yl())}; Zm7=function(F){oj.call(this,F);var J=this;this.events=new g.s5(F);g.k(this,this.events);this.events.B(F,"standardControlsInitialized",function(){var b=new ta(F);g.k(J,b);F.KO(b,"RIGHT_CONTROLS_LEFT")})}; Zd=function(F,J){g.Rj.call(this,g.Dd({role:"menuitemcheckbox","aria-checked":"false"}),J,F,{X:"div",K:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; Hp=function(F,J){F.checked=J;F.element.setAttribute("aria-checked",String(F.checked))}; Hmo=function(F){var J=!F.J().rZ&&F.getPresentingPlayerType()!==3;return F.isFullscreen()||J}; g.LE=function(F,J,b,I){var u=F.currentTarget;if((b===void 0||!b)&&g.f0(F))return F.preventDefault(),!0;J.pauseVideo();F=u.getAttribute("href");g.Qm(F,I,!0);return!1}; g.Fy=function(F,J,b){if(k2(J.J())&&J.getPresentingPlayerType()!==2){if(g.f0(b))return J.isFullscreen()&&!J.J().externalFullscreen&&J.toggleFullscreen(),b.preventDefault(),!0}else{var I=g.f0(b);I&&J.pauseVideo();g.Qm(F,void 0,!0);I&&(g.RJ(F),b.preventDefault())}return!1}; FBz=function(){var F=Lz4.includes("pt-BR")?{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",G1:!0,L:{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"}}]}:{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",G1:!0,L:{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"}}]};F.K="ytp-subtitles-button-icon";return F}; JH=function(){return{X:"div",K:"ytp-spinner-container",j:[{X:"div",K:"ytp-spinner-rotator",j:[{X:"div",K:"ytp-spinner-left",j:[{X:"div",K:"ytp-spinner-circle"}]},{X:"div",K:"ytp-spinner-right",j:[{X:"div",K:"ytp-spinner-circle"}]}]}]}}; bX=function(F){if(document.createRange){var J=document.createRange();J&&(J.selectNodeContents(F),F=window.getSelection())&&(F.removeAllRanges(),F.addRange(J))}}; we=function(F){var J=F.S("web_player_use_cinematic_label_2")?"Ambiente integrado":"Ilumina\u00e7\u00e3o cinematogr\u00e1fica";Zd.call(this,J,g.Ia.wb);var b=this;this.G=F;this.C=!1;this.U=new g.ty(function(){g.Mr(b.element,"ytp-menuitem-highlighted")},0); this.Rf=F.z6();this.setIcon({X:"svg",L:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{X:"path",L:{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.T,this);this.listen(uX,this.Z);g.k(this,this.U)}; MV=function(F){oj.call(this,F);var J=this;this.C=!1;F.addEventListener("settingsMenuInitialized",function(){J8z(J)}); F.addEventListener("highlightSettingsMenu",function(b){J8z(J);var I=J.menuItem;b==="menu_item_cinematic_lighting"&&(g.uG(I.element,"ytp-menuitem-highlighted"),g.uG(I.element,"ytp-menuitem-highlight-transition-enabled"),I.U.start())}); by(F,"updateCinematicSettings",function(b){J.updateCinematicSettings(b)})}; J8z=function(F){F.menuItem||(F.menuItem=new we(F.api),g.k(F,F.menuItem),F.menuItem.VG(F.C))}; AH=function(F){oj.call(this,F);var J=this;this.events=new g.s5(F);g.k(this,this.events);this.events.B(F,"applicationvideodatachange",function(b,I){J.wz(b,I)})}; qV=function(F){oj.call(this,F);this.events=new g.s5(F);g.k(this,this.events);by(F,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));by(F,"setCreatorEndscreenHideButton",this.C.bind(this))}; vl=function(F,J,b,I){Zd.call(this,"Volume est\u00e1vel",g.Ia.IM);g.uG(this.element,"ytp-drc-menu-item");this.Rf=F.z6();this.Z=J;this.C=b;this.hasDrcAudioTrack=I;F.addEventListener("videodatachange",this.U.bind(this));F.S("mta_drc_mutual_exclusion_removal")&&this.B(F,"onPlaybackAudioChange",this.U);F=this.C()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());this.setIcon({X:"svg",L:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{X:"path",L:{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.T,this);Hp(this,F);this.Rf.V6(this)}; aa=function(F){oj.call(this,F);var J=this;this.events=new g.s5(F);g.k(this,this.events);F.S("html5_show_drc_toggle")&&F.addEventListener("settingsMenuInitialized",function(){J.menuItem||(J.menuItem=new vl(J.api,J.setDrcUserPreference.bind(J),J.getDrcUserPreference.bind(J),J.U.bind(J)),g.k(J,J.menuItem))}); by(this.api,"setDrcUserPreference",function(I){J.setDrcUserPreference(I)}); by(this.api,"getDrcUserPreference",function(){return J.getDrcUserPreference()}); by(this.api,"hasDrcAudioTrack",function(){return J.U()}); var b;this.C=(b=g.S9("yt-player-drc-pref"))!=null?b:1;this.updateEnvironmentData()}; ed=function(F){oj.call(this,F);var J=this;this.C={};this.events=new g.s5(F);g.k(this,this.events);this.events.B(F,"videodatachange",function(){J.onVideoDataChange()}); this.events.B(F,g.u6("embargo"),function(b){J.api.rT(!0);var I,u=(I=J.C[b.id])!=null?I:[];I=g.N(u);for(u=I.next();!u.done;u=I.next()){var w=u.value;J.api.hideControls();J.api.Je("auth",2,"This video isn't available in your current playback area",dk({embargoed:1,id:b.id,idx:b.U,start:b.start}));u=void 0;(w=(u=w.embargo)==null?void 0:u.onTrigger)&&J.api.jE("innertubeCommand",w)}})}; bao=function(F,J){var b;return(b=J.onEnter)==null?void 0:b.some(F.U)}; Io_=function(F,J){J=g.N(J);for(var b=J.next();!b.done;b=J.next()){b=b.value;var I=void 0,u=Number((I=b.playbackPosition)==null?void 0:I.utcTimeMillis)/1E3,w=void 0;I=u+Number((w=b.duration)==null?void 0:w.seconds);w="embargo_"+u;F.api.addUtcCueRange(w,u,I,"embargo",!1);b.onEnter&&(F.C[w]=b.onEnter.filter(F.U))}}; Kc=function(F){oj.call(this,F);var J=this;this.C=[];this.events=new g.s5(F);g.k(this,this.events);by(F,"addEmbedsConversionTrackingParams",function(b){J.api.J().Ga&&J.addEmbedsConversionTrackingParams(b)}); this.events.B(F,"veClickLogged",function(b){J.api.hasVe(b)&&(b=Ae(b.visualElement.getAsJspb(),2),J.C.push(b))})}; uaz=function(F){oj.call(this,F);by(F,"isEmbedsShortsMode",function(){return F.isEmbedsShortsMode()})}; wXv=function(F){oj.call(this,F);var J=this;this.events=new g.s5(F);g.k(this,this.events);this.events.B(F,"initialvideodatacreated",function(b){lf(N7(),16623);J.C=g.W8();var I=F.J().IP&&!b.GU;if(RU(b)&&I){lf(N7(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(b.getWatchNextResponse()){var u,w=(u=b.getWatchNextResponse())==null?void 0:u.trackingParams;w&&WX(w)}if(b.getPlayerResponse()){var M;(b=(M=b.getPlayerResponse())==null?void 0:M.trackingParams)&&WX(b)}}else lf(N7(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),b.getEmbeddedPlayerResponse()&&(M=(w=b.getEmbeddedPlayerResponse())==null?void 0:w.trackingParams)&&WX(M)}); this.events.B(F,"loadvideo",function(){lf(N7(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:J.C})}); this.events.B(F,"cuevideo",function(){lf(N7(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:J.C})}); this.events.B(F,"largeplaybuttonclicked",function(b){lf(N7(),27240,b.visualElement)}); this.events.B(F,"playlistnextbuttonclicked",function(b){lf(N7(),27240,b.visualElement)}); this.events.B(F,"playlistprevbuttonclicked",function(b){lf(N7(),27240,b.visualElement)}); this.events.B(F,"playlistautonextvideo",function(){lf(N7(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; pc=function(F,J){g.R.call(this);var b=this;this.C=null;this.T=J;J=[];for(var I=0;I<=100;I++)J.push(I/100);J={threshold:J,trackVisibility:!0,delay:1E3};(this.U=window.IntersectionObserver?new IntersectionObserver(function(u){u=u[u.length-1];typeof u.isVisible==="undefined"?document.visibilityState==="visible"&&u.isIntersecting&&u.intersectionRatio>0?b.C=u.intersectionRatio:document.visibilityState==="hidden"?b.C=0:b.C=null:b.C=u.isVisible?u.intersectionRatio:0;typeof b.T==="function"&&b.T(b.C)},J): null)&&this.U.observe(F)}; A8z=function(F){oj.call(this,F);var J=this;this.events=new g.s5(F);g.k(this,this.events);this.events.B(F,"applicationInitialized",function(){Mvo(J)})}; Mvo=function(F){var J=F.api.getRootNode(),b=J;if(!F.api.S("embeds_emc3ds_inview_ks")){var I;b=F.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((I=J.parentElement)==null?void 0:I.parentElement)||J:J}F.C=new pc(b,function(u){u!=null&&(F.api.J().XI=u,F.api.J().us="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.k(F,F.C);F.events.B(F.api,"videoStatsPingCreated",function(u){var w=F.C;w=w.C==null?null:Math.round(w.C*100)/100;u.inview=w!=null?w:void 0;w=F.api.getPlayerSize();if(w.height>0&&w.width>0){w=[Math.round(w.width),Math.round(w.height)];var M=g.ow();M>1&&w.push(M);w=w.join(":")}else w=void 0;u.size=w})}; qrm=function(F){var J;return((J=((F==null?void 0:F.messageRenderers)||[]).find(function(b){return!!b.timeCounterRenderer}))==null?void 0:J.timeCounterRenderer)||null}; ge=function(F){g.U.call(this,{X:"div",Dv:["ytp-player-content","ytp-iv-player-content"],j:[{X:"div",K:"ytp-free-preview-countdown-timer",j:[{X:"span",sQ:"{{label}}"},{X:"span",K:"ytp-free-preview-countdown-timer-separator",sQ:"\u2022"},{X:"span",sQ:"{{duration}}"}]}]});this.api=F;this.C=null;this.T=this.U=0;this.B(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; aoz=function(F,J){F.C||(F.U=J,F.T=(0,g.jR)(),F.C=new g.n8(function(){vTa(F)},null),vTa(F))}; vTa=function(F){var J=Math,b=J.round,I=Math.min((0,g.jR)()-F.T,F.U);J=b.call(J,(F.U-I)/1E3);F.updateValue("duration",ev({seconds:J}));J<=0&&F.C?mg(F):F.C&&F.C.start()}; mg=function(F){F.C&&(F.C.dispose(),F.C=null)}; e2k=function(F){oj.call(this,F);var J=this;this.events=new g.s5(F);g.k(this,this.events);this.events.B(F,"basechromeinitialized",function(){J.C=new ge(F);g.k(J,J.C);g.Pp(F,J.C.element,4);J.C.hide()})}; y5=function(F){g.U.call(this,{X:"button",Dv:["ytp-fullerscreen-edu-button","ytp-button"],j:[{X:"div",Dv:["ytp-fullerscreen-edu-text"],sQ:"Role para ver detalhes"},{X:"div",Dv:["ytp-fullerscreen-edu-chevron"],j:[{X:"svg",L:{height:"100%",viewBox:"0 0 24 24",width:"100%"},j:[{X:"path",L:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],L:{"data-priority":"1"}});this.SE=F;this.C=new g.ZU(this,250,void 0,100);this.T=this.U=!1;F.createClientVe(this.element,this,61214);g.k(this, this.C);this.B(F,"fullscreentoggled",this.VG);this.B(F,"presentingplayerstatechange",this.VG);this.listen("click",this.onClick);this.VG()}; iX=function(F){oj.call(this,F);var J=this;this.events=new g.s5(F);g.k(this,this.events);by(this.api,"updateFullerscreenEduButtonSubtleModeState",function(I){J.updateFullerscreenEduButtonSubtleModeState(I)}); by(this.api,"updateFullerscreenEduButtonVisibility",function(I){J.updateFullerscreenEduButtonVisibility(I)}); var b=F.J();F.S("external_fullscreen_with_edu")&&b.externalFullscreen&&k2(b)&&b.controlsType==="1"&&this.events.B(F,"standardControlsInitialized",function(){J.C=new y5(F);g.k(J,J.C);F.KO(J.C)})}; KBv=function(F){g.U.call(this,{X:"div",K:"ytp-gated-actions-overlay",j:[{X:"div",K:"ytp-gated-actions-overlay-background",j:[{X:"div",K:"ytp-gated-actions-overlay-background-overlay"}]},{X:"button",Dv:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],L:{"aria-label":"Fechar"},j:[g.iA()]},{X:"div",K:"ytp-gated-actions-overlay-bar",j:[{X:"div",K:"ytp-gated-actions-overlay-text-container",j:[{X:"div",K:"ytp-gated-actions-overlay-title",sQ:"{{title}}"},{X:"div",K:"ytp-gated-actions-overlay-subtitle", sQ:"{{subtitle}}"}]},{X:"div",K:"ytp-gated-actions-overlay-button-container"}]}]});var J=this;this.api=F;this.background=this.RI("ytp-gated-actions-overlay-background");this.U=this.RI("ytp-gated-actions-overlay-button-container");this.C=[];this.B(this.RI("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){J.api.jE("onCloseMiniplayer")}); this.hide()}; gTG=function(F,J){var b=0;b=0;for(var I={};b u&&(u=q.width,w="url("+q.url+")")}b.background.style.backgroundImage=w;gTG(b,I.actionButtons||[]);b.show()}else b.hide()}); g.Pp(this.api,this.C.element,4)}; z9=function(F){oj.call(this,F);var J=this;uy(this.api,"getSphericalProperties",function(){return J.getSphericalProperties()}); uy(this.api,"setSphericalProperties",function(){J.setSphericalProperties.apply(J,g.W(g.Ba.apply(0,arguments)))}); Ij(this.api,"getSphericalProperties",function(){return J.api.getPresentingPlayerType()===2?{}:J.getSphericalProperties()}); Ij(this.api,"setSphericalProperties",function(){var b=g.Ba.apply(0,arguments);J.api.getPresentingPlayerType()!==2&&J.setSphericalProperties.apply(J,g.W(b))})}; NV=function(F){oj.call(this,F);by(F,"createClientVe",this.createClientVe.bind(this));by(F,"createServerVe",this.createServerVe.bind(this));by(F,"destroyVe",this.destroyVe.bind(this));by(F,"hasVe",this.hasVe.bind(this));by(F,"logClick",this.logClick.bind(this));by(F,"logVisibility",this.logVisibility.bind(this));by(F,"setTrackingParams",this.setTrackingParams.bind(this))}; lX=function(F,J,b,I){function u(M){var q=!(M.status!==204&&M.status!==200&&!M.response),v;M={succ:""+ +q,rc:M.status,lb:((v=M.response)==null?void 0:v.byteLength)||0,rt:((0,g.jR)()-w).toFixed(),shost:g.Cu(F),trigger:J};y8m(M,F);b&&b(M);I&&!q&&I(new E5("pathprobe.net",M))} var w=(0,g.jR)();g.E6(F,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:u,onTimeout:u})}; y8m=function(F,J){var b;((b=window.performance)==null?0:b.getEntriesByName)&&(J=performance.getEntriesByName(J))&&J.length&&(J=J[0],F.pedns=(J.domainLookupEnd-J.startTime).toFixed(),F.pecon=(J.connectEnd-J.domainLookupEnd).toFixed(),F.perqs=(J.requestStart-J.connectEnd).toFixed(),iaY&&(F.perqsa=J.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; fc=function(F,J){this.Zy=F;this.policy=J;this.playbackRate=1}; z2v=function(F,J){var b=Math.min(2.5,gN(F.Zy));F=Wl(F);return J-b*F}; de=function(F,J,b,I,u){u=u===void 0?!1:u;if(F.policy.HQ)return Math.ceil(F.policy.HQ*J);F.policy.Ar&&(I=Math.abs(I));I/=F.playbackRate;var w=1/ib(F.Zy);b=Math.max(.9*(I-3),gN(F.Zy)+F.Zy.U.C*w)/w*.8/(J+b);b=Math.min(b,I);F.policy.iJ>0&&u&&(b=Math.max(b,F.policy.iJ));return NB7(F,b,J)}; NB7=function(F,J,b){return Math.ceil(Math.max(Math.max(F.policy.ZY,F.policy.TZ*b),Math.min(Math.min(F.policy.zj,31*b),Math.ceil(J*b))))||F.policy.ZY}; loz=function(F,J,b){b=de(F,J.C.info.LW,b.C.info.LW,0);var I=gN(F.Zy)+b/ib(F.Zy);return Math.max(I,I+F.policy.pT-b/J.C.info.LW)}; Wl=function(F){return ib(F.Zy,!F.policy.wX,F.policy.xA)}; Ee=function(F){return Wl(F)/F.playbackRate}; jd=function(F,J,b){var I=F.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],u=F.policy.playbackStartPolicy.startMinReadaheadPolicy||[];F=Infinity;J=g.N(J&&I.length>0?I:u);for(I=J.next();!I.done;I=J.next())I=I.value,u=I.minReadaheadMs||0,b<(I.minBandwidthBytesPerSec||0)||F>u&&(F=u);return F0&&(this.U=b.mY)}; ETz=function(F,J,b,I,u){if(!I.info.Z){if(b.length===0)b.push(I);else{var w;(F=(w=b.pop())==null?void 0:g.xm(w,I))?b.push(F):b.push(I)}return u}var M;(b=(M=b.pop())==null?void 0:g.xm(M,I))||(b=I);if(F.policy.y6&&b.info.U)return F.logger&&F.logger({incompleteSegment:b.info.uX()}),u;M=F.K5(b);I=M.formatId;u=M.Mf;b=M.clipId;w=M.Mr;M=M.startTimeMs;if(!F.policy.Lv&&F.policy.U&&F.xl){var q=V5(F.xl,b);M+=q}I={clipId:b,formatId:I,startTimeMs:M,durationMs:w,I5:u,Tn:u,B_:M,FT:w};u=foJ(J,I.startTimeMs);(b=u>= 0?J[u]:null)&&WBz(F,b,I)?I=b:(u+=1,J.splice(u,0,I));b=0;for(w=u+1;w=a+M.U?M=!0:e+M.U=0?F:-F-2}; jxo=function(F,J){if(F.dw){var b=F.dw.N0();if(b.length!==0){if(F.T&&J){var I=F.T,u=I.info.hF;!Mt(b,u)&&I.info.W>0&&(0,g.jR)()-F.W<5E3&&(F.logger&&F.logger({dend:I.info.uX()}),b=m_J(b,u,u+.01))}F.policy.fD&&F.logger&&F.logger({cbri:""+F.C});I=[];for(var w=u=0;u=M){var e=0;if(F.xl){var K=Pl(F.xl,v*1E3);K&&(e=K.ac/1E3)}K=Object.assign({},F.Ym[w]);var p=F.lR.T.get(lU(F.Ym[w].formatId)), m=Math.max(v,M);M=p.index.Ea(m+F.U/1E3-e);v=p.index.getStartTime(M)+e;var y=M+ +(Math.abs(v-m)>F.U/1E3);m=y+F.Z;y=(p.index.getStartTime(y)+e)*1E3;w!==F.C||J?(K.I5=m,K.startTimeMs=y):(F.logger&&F.logger({pEvict:"1",og:K.startTimeMs,adj:v*1E3}),K.I5=M+F.Z,K.startTimeMs=v*1E3);K.B_=K.startTimeMs;M=void 0;v=((M=F.T)==null?void 0:M.info.duration)||11;w===F.C&&qF.U/1E3);M=v+F.Z;e=(p.index.nV(v)+e)*1E3;K.Tn=M;K.durationMs=e-K.startTimeMs;K.FT=K.durationMs;K.I5<=K.Tn&&I.push(K)}aF.U)return!1;if(d7k(F,J.formatId,b.formatId))return J.durationMs=Math.max(I,u)-J.startTimeMs,J.FT=J.durationMs,J.Tn=Math.max(J.Tn,b.Tn),!0;if(Math.abs(J.startTimeMs-b.startTimeMs)<=F.U){if(J.durationMs>b.durationMs+F.U){F=J.formatId;var w=J.I5,M=J.Tn;J.formatId=b.formatId;J.durationMs=b.durationMs;J.I5=b.I5;J.FT=b.durationMs;J.Tn=b.Tn;b.formatId=F;b.startTimeMs=u;b.B_=u;b.durationMs=I-u;b.FT=b.durationMs; b.I5=w;b.Tn=M;return!1}J.formatId=b.formatId;return!0}I>b.startTimeMs&&(J.durationMs=b.startTimeMs-J.startTimeMs,J.FT=J.durationMs,J.clipId===b.clipId&&(J.Tn=b.I5-1));return!1}; d7k=function(F,J,b){return J.itag!==b.itag||J.xtags!==b.xtags?!1:F.lR.MW||J.lmt===b.lmt}; PfC=function(F,J,b){if(F.logger){for(var I=[],u=0;u=0&&se(F.audioTrack,F.C)>=0&&w?((F.videoTrack.D||F.audioTrack.D)&&F.Zv.UQ("iterativeSeeking",{status:"done",count:F.seekCount}),F.videoTrack.D=!1,F.audioTrack.D=!1):I&&g.qf(function(){if(F.U||!F.policy.xm)Cc(F);else{var M=J.startTime,q=J.duration;if(!F.policy.W){var v=b?F.videoTrack.D:F.audioTrack.D,a=F.videoTrack.W!==-1&&F.audioTrack.W!==-1,e=F.C>=M&&F.C432E3&&FSC(F.lR);F.T&&(u=F.T,F.T=0);g.qf(function(){F.policy.W||Xy(F,u,102)}); F.Zv.UQ("initManifestlessSync",{st:u,ost:u+F.Zv.Xq(),a:F.audioTrack.W,v:F.videoTrack.W});F.Z&&(F.Z.resolve(u+.1),F.Z=null);F.policy.W&&Xy(F,u,102)}}}; Dm=function(F,J){var b=this;this.e3=F;this.requestNumber=++Qxv;this.C=this.now();this.N=this.Tj=NaN;this.V=this.C;this.T=this.Kk=this.D=0;this.W=this.C;this.dD=this.Y=this.kQ=this.T1=this.If=this.WN=this.U=this.Z=0;this.eE=this.isActive=!1;this.Om=this.bR=0;this.Po={OAG:function(){return b.Kj}}; this.Zy=J.Zy;this.snapshot=QYv(this.Zy);this.policy=this.Zy.U;this.vu=!!J.vu;this.r_=J.r_;this.nD=J.nD||0;this.x7=J.x7||0;J.QY&&(this.fW=new wN);var I;this.Kj=(I=J.Kj)!=null?I:!1;this.vu||$Oa(this.Zy)}; R2m=function(F){F.kQ=Math.max(F.kQ,F.D-F.If);F.Y=Math.max(F.Y,F.V-F.T1);F.WN=0}; k7=function(F,J,b){Cpv(F.Zy,J);F.fW&&(F.fW.add(Math.ceil(J)-Math.ceil(F.V)),F.fW.add(Math.max(0,Math.ceil(b/1024)-Math.ceil(F.D/1024))));var I=J-F.V,u=b-F.D;F.Kk=u;F.dD=Math.max(F.dD,u/(I+.01)*1E3);F.V=J;F.D=b;F.WN&&b>F.WN&&R2m(F)}; Oe=function(F,J){F.url=J;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; oa=function(F,J){Dm.call(this,F,J);this.Um=this.xm=!1;this.zj=this.Gj=Infinity;this.KW=NaN;this.Q2=!1;this.nW=NaN;this.NW=this.qf=this.Jz=0;this.XL=J.XL||1;this.TO=J.TO||this.XL;this.jB=J.jB;this.Mf=J.Mf;this.Qi=J.Qi;D74(this);this.Kq(this.C);this.cN=(this.nW-this.C)/1E3}; kRo=function(F){var J=F.qf||F.Jz;return J?F.snapshot.delay+Math.min(F.x7,(F.N-F.Tj)/1E3)+J:F.cN}; hH=function(F,J,b){if(!F.vu){J=Math.max(J,.01);var I=F.nD?Math.max(J,b/F.nD):J,u=F.Zy.U.T;u&&(I=J,F.nD&&(I=Math.max(J,b/F.nD*u)));e8(F.Zy,J,b,I)}}; Oa3=function(F){return(F.W-F.C)/1E3}; D74=function(F){F.KW=F.C+F.snapshot.delay*1E3;F.Q2=!1}; cl=function(F,J){if(F.jB&&F.Mf!==void 0&&F.Qi!==void 0){var b=Math,I=b.min,u=F.Gj;var w=F.jB;var M=F.C;if(oTz(w,F.Mf))w=J;else{var q=0;w.lq&&(q=.2);w=M+(w.x7+q)*1E3}F.Gj=I.call(b,u,w);b=Math;I=b.min;u=F.zj;w=F.jB;M=F.C;q=h2o(w,F.Mf,F.Qi);q!==2&&(J=q?J:M+w.x7*1E3,w.lq&&(J+=w.x7*1E3));F.zj=I.call(b,u,J);F.Gj<=F.C?D74(F):(F.KW=F.Gj,F.Q2=!0)}}; c8o=function(F,J){if(F.UL(J,1)){var b=F.getUint8(J);b=b<128?1:b<192?2:b<224?3:b<240?4:5}else b=0;if(b<1||!F.UL(J,b))return[-1,J];if(b===1)F=F.getUint8(J++);else if(b===2)b=F.getUint8(J++),F=F.getUint8(J++),F=(b&63)+64*F;else if(b===3){b=F.getUint8(J++);var I=F.getUint8(J++);F=F.getUint8(J++);F=(b&31)+32*(I+256*F)}else if(b===4){b=F.getUint8(J++);I=F.getUint8(J++);var u=F.getUint8(J++);F=F.getUint8(J++);F=(b&15)+16*(I+256*(u+256*F))}else b=J+1,F.focus(b),NJ(F,b,4)?F=BPo(F).getUint32(b-F.O2,!0):(I= F.getUint8(b+2)+256*F.getUint8(b+3),F=F.getUint8(b)+256*(F.getUint8(b+1)+256*I)),J+=5;return[F,J]}; Ue=function(F){this.e3=F;this.C=new m_}; x7=function(F,J){this.info=F;this.callback=J;this.state=1;this.v_=this.Kb=!1;this.Mk=null}; U7o=function(F){return g.jw(F.info.aI,function(J){return J.type===3})}; nc=function(F,J,b,I){var u=this;I=I===void 0?{}:I;this.policy=J;this.e3=b;this.status=0;this.C=new m_;this.U=0;this.iR=this.Z=this.T=!1;this.xhr=new XMLHttpRequest;this.xhr.open(I.method||"GET",F);if(I.headers)for(F=I.headers,J=g.N(Object.keys(F)),b=J.next();!b.done;b=J.next())b=b.value,this.xhr.setRequestHeader(b,F[b]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return u.H_()}; this.xhr.onload=function(){return u.onDone()}; this.xhr.onerror=function(){return u.onError()}; this.xhr.fetch(function(w){u.C.append(w);u.U+=w.length;w=(0,g.jR)();u.e3.Hl(w,u.U)},function(){},I.body||null)}; x73=function(F,J){this.U=(new TextEncoder).encode(F);this.C=(new TextEncoder).encode(J)}; tjz=function(F,J){var b,I,u;return g.S(function(w){if(w.C==1){if(!J)return w.return(J);b=tH.EA();I=new g.lx(F.U);return g.T(w,I.encrypt(J,F.C),2)}u=w.U;tH.Gy("woe",b,Math.ceil(J.byteLength/16));return w.return(u)})}; JI_=function(F,J){var b,I,u;return g.S(function(w){if(w.C==1){if(!J)return w.return(J);b=tH.EA();I=new g.lx(F.U);return g.T(w,I.decrypt(J,F.C),2)}u=w.U;tH.Gy("wod",b,Math.ceil(J.byteLength/16));return w.return(u)})}; tvJ=function(F,J){var b=this;this.C=F;this.e3=J;this.loaded=this.status=0;this.error="";F=dG(this.C.get("range")||"");if(!F)throw Error("bad range");this.range=F;this.U=new m_;nTm(this).then(function(){b.e3.A6()},function(I){b.error=""+I||"unknown_err"; b.e3.A6()})}; nTm=function(F){var J,b,I,u,w,M,q,v,a,e,K,p,m,y,f;return g.S(function(d){if(d.C==1){F.status=200;J=F.C.get("docid");b=n5(F.C.get("fmtid")||"");I=F.C.get("lmt")||"0";u=+(F.C.get("csz")||0);if(!J||!b||!u)throw Error("Invalid local URL");F.C.get("ck")&&F.C.get("civ")&&(w=new x73(F.C.get("ck"),F.C.get("civ")));M=F.range;q=Math.floor(M.start/u);v=Math.floor(M.end/u);a=q}if(d.C!=5)return a<=v?g.T(d,bUz(J,b,I,a,w),5):d.gD(0);e=d.U;if(e===void 0)throw Error("invariant: data is undefined");K=a*u;p=(a+1)*u; m=Math.max(0,M.start-K);y=Math.min(M.end+1,p)-(m+K);f=new Uint8Array(e.buffer,m,y);F.U.append(f);F.loaded+=y;F.loaded0&&(J.C=Math.min(J.C+w,10),J.U=u),J.C>0?(J.C--,J=!0):J=!1,J)typeof b==="function"&&(b=b()),I&&(b=I(b)),console.log("plyr."+F,b); else{var M;b=((M=Mam.get(F))!=null?M:0)+1;Mam.set(F,b);b%100===1&&console.warn("plyr","plyr."+F+" is chatty, dropping logs.")}}; wda=function(){this.C=10;this.U=Date.now()}; Fx=function(F,J){g.R.call(this);var b=this;this.policy=F;this.aI=J;this.U=0;this.C=null;this.yk=[];this.T=null;this.Po={Mp:function(){return b.aI}}; this.aI.length===1||g.jw(this.aI,function(I){return!!I.range})}; J9=function(F,J,b){F.C&&(yK(F.C,J),J=F.C,F.C=null);for(var I=0,u=0,w=g.N(F.aI),M=w.next();!M.done;M=w.next())if(M=M.value,M.range&&I+M.T<=F.U)I+=M.T;else{J.getLength();if(V4(M)&&!b&&F.U+J.getLength()-u=400?(F.lastError="net.badstatus",!0):(u===void 0?0:u)?(F.lastError="ump.spsrejectfailure",!0):b||I!==void 0&&I?!1:(F.lastError=J===204?"net.nocontent":"net.connect",!0)}; A9=function(F,J){if(F.policy.Yd)return!1;var b=J.getResponseHeader("content-type"),I=J.f5();F=!I||I<=F.policy.F$;return(!J.kx()||!b||b.indexOf("text/plain")!==-1)&&F}; KpJ=function(F,J){var b="";J=J.fZ();J.getLength()<=F.policy.F$&&(b=edo(F,J.HS()));return b}; edo=function(F,J){var b=WA(J);return Hq(b)?(F.logger.debug(function(){return"Redirecting to "+b}),b):""}; Ih=function(F){return gG(F.T,zK(F.iC.XY))}; pdm=function(F){var J=F.timing.BQ();J.shost=zK(F.iC.XY);return J}; gZY=function(F,J){return(F==null?void 0:F.maxWidth)>(J==null?void 0:J.maxWidth)||(F==null?void 0:F.maxHeight)>(J==null?void 0:J.maxHeight)}; mvz=function(F,J){for(var b=g.N(J.keys()),I=b.next();!I.done;I=b.next())if(I=J.get(I.value),I.length!==0){g.vW(I,function(q,v){return v.maxFramerate-q.maxFramerate}); for(var u=[I[0]],w=0,M=1;MF.C||b.push(I)}return b}; q$=function(F,J,b){var I=zdz[F]||[];b.S("html5_shorts_onesie_mismatched_fix")&&(I=N_7[F]||[]);J.push.apply(J,g.W(I));b.S("html5_early_media_for_drm")&&J.push.apply(J,g.W(lTz[F]||[]))}; GK3=function(F,J){var b=g.IU(F),I=F.J(),u=I.D;I=I.S("html5_shorts_onesie_mismatched_fix");var w=F.yM();if(I){if(!u.Z){if(w&&vs)return vs;if(ah)return ah}}else if(ah&&!u.Z)return ah;var M=[],q=[],v={},a=eI.concat(fT3);I&&(a=eI.concat(Wpk));F.S("html5_early_media_for_drm")&&(a=a.concat(dv4),F.S("allow_vp9_1080p_mq_enc")&&a.push(EZz));var e=[].concat(g.W(jt4));if(b.N)for(var K=0;Kb.hN)){var f=g.eB(F.J().experiments,"html5_drm_byterate_soft_cap");f>0&&pLz(y)&&y.LW>f||(K?(M.push(m),q$(m,M,F)):(y=qv(b,y,u),y===!0?(K=!0,M.push(m),q$(m,M,F)):v[m]=y))}}}e=g.N(e);for(a=e.next();!a.done;a=e.next())for(a=g.N(a.value),K=a.next();!K.done;K=a.next())if(K= K.value,(p=qCY(K))&&p.audio&&(F.S("html5_onesie_51_audio")||!U5(p)&&!xz(p)))if(p=qv(b,p,u),p===!0){q.push(K);q$(K,q,F);break}else v[K]=p;b.U&&J("orfmts",v);if(I)return u.Z&&(u.Z=!1,vs=ah=void 0),w?vs={video:M,audio:q}:ah={video:M,audio:q};ah={video:M,audio:q};u.Z=!1;return ah}; g.B_G=function(F,J,b){var I=b.D,u=[],w=[],M=b.S("html5_shorts_onesie_mismatched_fix");F=F.yM();var q=eI.concat(fT3);M&&(q=eI.concat(Wpk));b.S("html5_early_media_for_drm")&&(q=q.concat(dv4),b.S("allow_vp9_1080p_mq_enc")&&q.push(EZz));var v=[].concat(g.W(jt4));if(J.N)for(var a=0;a0&&pLz(K)&&K.LW>p)&&qv(J,K,I)===!0){u.push({videoCodec:Vak[Df[e]],maxWidth:K.video.width,maxHeight:K.video.height,maxFramerate:K.video.fps});break}}}}M=g.N(v);for(F=M.next();!F.done;F=M.next())for(F=g.N(F.value),v=F.next();!v.done;v=F.next())if(v=v.value,(q=qCY(v))&&q.audio&&(b.S("html5_onesie_51_audio")||!U5(q)&&!xz(q))&&qv(J,q,I)=== !0){w.push({audioCodec:P9z[Df[v]],numChannels:q.audio.numChannels});break}return{videoFormatCapabilities:u,audioFormatCapabilities:w}}; Kv=function(F){var J={},b=F.wD,I=F.PN,u=b.getVideoData(),w=rB(0),M=b.getPlayerSize(),q=b.getVisibilityState();w&&(J.bWN=w,J.lastManualDirection=dek(),w=tf4()||0,w>0&&(w=(I.S("html5_use_date_now_for_local_storage")?Date.now():(0,g.jR)())-w,I.S("html5_use_date_now_for_local_storage")?w>0&&(J.timeSinceLastManualFormatSelectionMs=w):J.timeSinceLastManualFormatSelectionMs=w));w=I.S("html5_use_streamer_bandwidth_for_low_latency_live")&&u.isLowLatencyLiveStream;if(I.schedule.Tj&&!w){var v;w=I.S("html5_disable_bandwidth_cofactors_for_sabr_live")? !((v=F.Zg)==null||!v.wX):!1;J.Q7=ib(I.schedule,!w)}v=g.ow();var a=g.CF.medium,e=Math.floor(a*16/9);w=u.yM()?a:e;a=u.yM()?e:a;J.pz=Math.max(M.width*v,w);J.y7=Math.max(M.height*v,a);J.visibility=q;J.dEQ=dP();J.dJ=b.Iv()*1E3;M=F.wD.hp(!0);var K,p,m,y,f,d;J.LpG={defaultPolicy:(M==null?void 0:(K=M.kV)==null?void 0:K.C)||0,smooth:(M==null?void 0:(p=M.Crj)==null?void 0:p.C)||0,visibility:(M==null?void 0:(m=M.UJf)==null?void 0:m.C)||0,zC:(M==null?void 0:(y=M.Kp)==null?void 0:y.C)||0,performance:(M==null? void 0:(f=M.Tl)==null?void 0:f.C)||0,speed:(M==null?void 0:(d=M.e4Q)==null?void 0:d.C)||0};if(I.S("html5_sabr_report_sticky_constraints")){var G;J.Q9=(M==null?void 0:(G=M.u3R)==null?void 0:G.C)||0}else J.Q9=rB();I.S("html5_enable_sabr_drm_hd720p")&&F.sabrLicenseConstraint&&(J.sabrLicenseConstraint=F.sabrLicenseConstraint);if(I.S("html5_onesie_media_capabilities")||I.S("html5_enable_server_format_filter"))J.C5=3;I.S("html5_onesie_audio_only_playback")&&Fc(u)&&(J.C5=1);var P;((P=F.Zg)==null?0:P.Um)&& F.BDG&&(J.C5=J.C5===void 0?7:J.C5|4);K=u.K7?u.K7:g.IU(u);I.S("html5_onesie_media_capabilities")&&(J.mediaCapabilities=g.B_G(u,K,I));var r;if((r=F.Zg)==null?0:r.C&&r.Uz){m=I.D;r=[];p=[];y=new Map;I.S("html5_ssap_update_capabilities_on_change")?(m.Tj||BMa(m),f=m.Tj||[]):f=Array.from(m.C.values());f=g.N(f);for(d=f.next();!d.done;d=f.next())G=d.value,G.Cd?p.push({audioCodec:P9z[G.YQ],numChannels:G.numChannels,spatialCapabilityBitmask:T_G[G.YQ]}):(P=Vak[G.YQ],d={videoCodec:P,maxWidth:G.maxWidth||0,maxHeight:G.maxHeight|| 0,maxFramerate:G.maxFramerate||0,is10BitSupported:G.sN||!1},G.maxBitrateBps&&(d.maxBitrateBps=G.maxBitrateBps,M=Ji(G.itag),q=void 0,((q=M)==null?0:q.video)&&qv(K,M,m)===!0&&(M=M.LW*8,M>d.maxBitrateBps&&(d.maxBitrateBps=M))),G=P+"_"+G.sN,P=y.get(G)||[],P.push(d),y.set(G,P));r=mvz(r,y);m={};I.S("html5_ssff_denylist_opus_low")&&(m={itagDenylist:[249,350]});J.mediaCapabilities={videoFormatCapabilities:r,audioFormatCapabilities:p,hdrModeBitmask:3,perPlaybackAttributes:m}}var Q;if((Q=F.Zg)==null?0:Q.C){J.DX= K.DX;var D;J.hN=(D=F.Zg)==null?void 0:D.hN}I.xH&&(J.fp=I.xH);J.qs=F.yP;J.F7=F.F7;J.Bq=F.Bq;J.Bk=F.Bk;if(I.S("html5_fix_time_since_last_seek_reporting")?F.JO!==void 0:F.JO)J.l4G=(0,g.jR)()-F.JO;F.isPrefetch&&I.S("html5_report_prefetch_requests")&&(J.isPrefetch=!0);UD||(J.l7D=!0);Q=gN(I.schedule)*1E3;Q>0&&(J.m8=Q);var t;((t=F.Zg)==null?0:t.Ao)&&F.nB&&F.nB0?n:I.schedule.interruptions[0]||0);var uk;if((uk=F.Zg)==null?0:uk.NW)J.iK=F.iK;var AJ;((AJ=F.Zg)==null?0:AJ.nx)&&u.HQ&&(J.audioTrackId=u.HQ);var F7;if((F7=F.Zg)==null?0:F7.AR)if(F=aIa())J.detailedNetworkType=rtz[F]||rtz.other;return J}; pv=function(F,J,b,I,u,w,M){var q={};J&&(q.yh=J);if(!F)return q;q.playbackCookie=b==null?void 0:b.playbackCookie;u&&(q.d3=u);q.xr=[];q.FO=[];if(M==null?0:M.size)for(J=g.N(M.values()),b=J.next();!b.done;b=J.next())q.FO.push(b.value);if(F.fV&&F.sabrContextUpdates.size>0)for(J=g.N(F.sabrContextUpdates.values()),b=J.next();!b.done;b=J.next())SS7(q,b.value,I);bE(F)&&!g.oH(F)&&F.S("html5_enable_sabr_request_pipelining")&&w&&SS7(q,w,I);F.ul&&(q.N6Q=F.ul);I=F.J().C;q.clientInfo={clientName:stk[I.c.toUpperCase()]|| 0};I.cbrand&&(q.clientInfo.deviceMake=I.cbrand);I.cmodel&&(q.clientInfo.deviceModel=I.cmodel);I.cver&&(q.clientInfo.clientVersion=I.cver);I.cos&&(q.clientInfo.osName=I.cos);I.cosver&&(q.clientInfo.osVersion=I.cosver);I=F.J();I.S("html5_sabr_enable_server_xtag_selection")&&I.Q2&&(q.clientInfo.hl=I.Q2);F.v5&&(q.v5=F.v5);return q}; SS7=function(F,J,b){var I=J.type||0;(b==null?0:b.has(I))?F.FO.push(J):F.xr.push(I)}; re=function(F,J,b,I,u,w){var M=w===void 0?{}:w;var q=M.qM===void 0?[]:M.qM;var v=M.d5===void 0?!1:M.d5;var a=M.O8===void 0?0:M.O8;var e=M.poToken===void 0?"":M.poToken;var K=M.GV===void 0?void 0:M.GV;var p=M.HJ===void 0?"":M.HJ;var m=M.j6===void 0?0:M.j6;var y=M.vD===void 0?new Uint8Array(0):M.vD;var f=M.QZ===void 0?!1:M.QZ;w=M.aV===void 0?0:M.aV;M=M.yh===void 0?void 0:M.yh;x7.call(this,J,u);var d=this;this.policy=F;this.logger=new g.Hl("dash/request");this.a4=this.Jw=0;this.wN=!1;this.Jd=this.H0= null;this.iQ=!1;this.vD=this.j6=null;this.JR=this.XK=!1;this.Ip=null;this.aV=this.Bn=0;this.MO=!1;this.Po={aC:function(P){d.aC(P)}, n8Q:function(){return d.Mk}, g6E:function(P){d.Mk=P}, kHD:function(P){d.Jw=P}, RgE:function(P){d.lX.lastError=P}, qt:function(){return d.xhr}}; this.timing=new oa(this,b);this.d5=v;this.j6=m;this.vD=y;this.iC=g.Co(this.info,this.policy,I);this.iC.set("rn",this.hd().toString());this.iC.set("rbuf",(a*1E3).toFixed().toString());this.d5&&this.iC.set("smb","1");this.policy.qa&&e&&this.iC.set("pot",e);p&&this.iC.set("bbs",p);this.policy.useUmp&&!Nv(this.iC.XY)&&(this.XC=new Ue(this),this.iC.set("ump","1"),this.iC.set("srfvp","1"));if(F=this.policy.df?this.policy.F8&&!isNaN(this.info.Qi)&&this.info.Qi>this.policy.VT?!1:!0:!1)J=null,this.policy.IB&& this.policy.E2?J=[1]:f&&(J=[]),J!=null&&(this.policy.Yw&&J.push(2),this.iC.set("defsel",J.join(",")));this.lX=new bh(this,this.policy,this.iC,this.info.gw,this.timing,this.logger,I,K);this.qM=q||null;this.v_=YS_(this);Atv(this.lX);I=void 0;if(this.policy.XJ||this.XC||this.policy.fW)I={method:"POST"},q=(0,g.gg)([120,0]),K={},this.policy.O5&&M&&(M=pv(void 0,M),K.QD=M),this.policy.Ac&&this.vD&&(K.videoPlaybackUstreamerConfig=this.vD),this.policy.fW&&(M=this.info.Z)&&Object.assign(K,M),Object.keys(K).length> 0?I.body=g.ux(K,g.Ur):I.body=q;if(this.j6&&this.vD){this.iC.set("iwts","1");I={method:"POST"};M={Bk:this.j6*1E3};var G;q=(G=this.info.Z)==null?void 0:G.Zc;G=g.ux({yc:M,Zc:q||void 0,videoPlaybackUstreamerConfig:this.vD},g.Ur);I.body=G}try{this.xhr=Zm(this.iC,this.policy.Y,this.timing,F,I),this.lX.U.start(),w&&(this.Vt=new g.ty(this.Bf,w,this),this.Vt.start(w+(this.timing.Zy.Y.X3()||0)*1E3)),this.policy.eN&&Oe(this.timing,this.tF()),this.logger.debug(function(){return"Sent, itag="+d.iC.get("itag")+ " seg="+d.info.aI[0].Mf+" range="+d.iC.get("range")+" time="+Math.round(d.info.aI[0].hF)+"-"+Math.round(g.ck(d.info.aI).H1)+" rtp="+(d.timing.Z0()-Date.now()).toFixed(0)}),g.qf(function(){})}catch(P){$va(this,P,!0)}}; YS_=function(F){if(!($m(F.info)&&F.info.Kj()&&F.policy.K7&&F.qM)||F.info.gw.U>=2||rB()>0||!VBz())return!1;var J=F.iC.get("aitags");if(!J)return!1;J=n5(J).split(",");for(var b=[],I=g.N(F.qM),u=I.next();!u.done;u=I.next())u=u.value,g.te(J,u)&&b.push(u);if(!b.length)return!1;F.iC.set("altitags",g.x_(b.join(",")));return!0}; $va=function(F,J,b){b=b===void 0?!1:b;g.Td(J);F.lX.lastError="player.exception";F.errorMessage=J.name+"_"+J.message;b?g.qf(function(){wg(F.lX)}):wg(F.lX)}; C9k=function(F,J){F.timing.eE=!0;F.xhr.kx()&&F.timing.Is();if(F.policy.Ly){var b;(b=F.Vt)==null||b.stop()}J9(F.Mk,J,!1)}; XdC=function(F,J){F.info=J;if(F.Mk){var b=F.Mk;J=J.aI;(J.length!==b.aI.length||J.length0){J=g.N(J.aI);for(var b=J.next();!b.done;b=J.next()){var I=void 0;F+=((I=b.value.range)==null?void 0:I.length)||0}return F}if(J.oD.length>0)for(b=g.N(J.oD),I=b.next();!I.done;I=b.next())F+=I.value.YI||0;return F+J.o_}; Ws=function(F,J){if(N$){var b=0;F=F.Fq.get(J);if(F==null||!F.Y_)return 0;F=g.N(F.Y_.values());for(J=F.next();!J.done;J=F.next())b+=J.value.data.getLength();return b}return((b=F.Fq.get(J))==null?void 0:b.yk.getLength())||0}; dg=function(F,J){F=F.Fq.get(J);if(N$){if(F==null||!F.kN)return!1;J=F.Y_.size>0;return F.yF.length>0||J}return!(F==null||!F.kN)&&!(F==null||!F.yk.getLength())}; oZ7=function(F,J){var b=F.Fq.get(J),I=Okz(F,J),u=!I&&!!b.bytesReceived;if(N$){var w;if((w=F.lR)==null?0:w.MW){F=g.N(b.Y_.values());for(J=F.next();!J.done;J=F.next())if(!J.value.AY)return!1;return u}}else if(w=F.R7(J),u&&F.C&&w!==void 0)return w;return(u||b.bytesReceived===I)&&b.o4+Ws(F,J)===b.bytesReceived}; hda=function(F,J,b){F.Fq.set(J,{yk:new m_,o4:0,bytesReceived:0,o_:0,Ms:!1,Ph:!1,R7:!1,Cd:b,wm:[],aI:[],oD:[],kN:!1,Y_:new Map,WP:new Map,yF:[]});F.logger.debug(function(){return"[initStream] formatId: "+J})}; cta=function(F,J,b,I){b.aI.push.apply(b.aI,g.W(I));if(N$){b.WP.has(J)||b.WP.set(J,[]);var u;(u=b.WP.get(J)).push.apply(u,g.W(I))}else if(b.Mk)for(F=g.N(I),J=F.next();!J.done;J=F.next())b.Mk.aI.push(J.value);else{b.Mk=new Fx(F.Zg,[].concat(g.W(b.aI)));var w;((w=F.Zg)==null?0:w.us)&&g.k(F,b.Mk)}}; UvC=function(F,J,b){var I,u=(I=F.lR)==null?void 0:I.T.get(J);if(!u)return[];if(b.Uv){var w;return((w=u.nu(0,b.clipId))==null?void 0:w.aI)||[]}if(u.pc()){var M=b.startMs,q=b.durationMs,v=1E3,a;if(((a=F.Zg)==null?0:a.C)&&b.timeRange){var e;M=(e=b.timeRange.startTicks)!=null?e:-1;var K;q=(K=b.timeRange.Ll)!=null?K:-1;var p;v=(p=b.timeRange.timescale)!=null?p:-1}if(b.eK<0||b.Ev<0||q<0||M<0||b.YI<0||v<0)return fv(F,J),[];F=EL(b.eK,b.YI);J=b.JE||0;return[new GC(3,u,F,"makeSliceInfosMediaBytes",b.Ev-1,M/ v,q/v,J,F.length-J,void 0,b.C4,b.clipId)]}if(b.Ev<0)return fv(F,J),[];var m;return((m=F.lR)==null?0:m.MW)?(J=u.U2,a=J*u.info.LW,e=((M=F.Zg)==null?0:M.y6)?b.JE:void 0,((v=F.Zg)==null?0:v.hG)&&b.timeRange&&!e&&(q=b.timeRange.startTicks/b.timeRange.timescale),[new GC(3,u,void 0,"makeSliceInfosMediaBytes",b.Ev,q,J,e,a,!0,b.C4,b.clipId)]):[]}; xvz=function(F,J,b){F.lR=J;F.Zg=b;J=g.N(F.Fq);for(b=J.next();!b.done;b=J.next()){var I=g.N(b.value);b=I.next().value;I=I.next().value;for(var u=g.N(I.wm),w=u.next();!w.done;w=u.next()){w=w.value;var M=UvC(F,b,w);cta(F,w.V5,I,M)}}}; Ed=function(F,J,b,I){F.logger.debug(function(){return"[addStreamData] formatId: "+b+",headerId: "+J+" bytes: "+I.getLength()}); (F=F.Fq.get(b))&&!F.Ph&&(N$?(F.Y_.has(J)||F.Y_.set(J,{data:new m_,No:0,AY:!1}),yK(F.Y_.get(J).data,I)):yK(F.yk,I),F.bytesReceived+=I.getLength(),F.Ms=!0)}; lh=function(F,J){F.logger.debug(function(){return"[closeStream] formatId: "+J}); var b=F.Fq.get(J);b&&!b.Ph&&(b.Ph=!0,b.aP&&b.aP(),nZ7(F)&&F.Z.XD())}; nZ7=function(F){F=g.N(F.Fq.values());for(var J=F.next();!J.done;J=F.next())if(!J.value.Ph)return!1;return!0}; jI=function(F,J,b,I,u,w,M,q){g.R.call(this);this.policy=F;this.info=J;this.lR=b;this.e3=u;this.ob=q;this.logger=new g.Hl("sabr");this.XC=new Ue(this);this.mV=new ih(this);this.ZV=new zL(this);this.state=1;this.bY=!1;this.xB=0;this.clipId="";this.Td=this.fF=-1;this.KE=0;this.Ct=-1;this.MO=this.NH=!1;this.fK=0;this.C2=!1;this.policy.Au?this.uC=new mw(this,w):this.uC=new oa(this,w);this.iC=this.policy.NW?J.ZS:taG(J,this.policy,I);this.iC.set("rn",""+this.hd());this.iC.set("alr","yes");xvz(this.ZV,b, F);this.lX=new bh(this,this.policy,this.iC,J.gw,this.uC,this.logger,I,M,this.policy.enableServerDrivenRequestCancellation);Atv(this.lX);var v;if((v=this.policy)==null?0:v.us)g.k(this,this.ZV),g.k(this,this.lX);F=J.U;J={method:"POST",body:F};F&&(this.KE=F.length);try{this.xhr=Zm(this.iC,this.policy.Y,this.uC,UD,J),this.policy.eN&&Oe(this.uC,this.tF()),this.lX.U.start()}catch(a){g.rQ(a)}}; Zk_=function(F){F.policy.JY&&F.TY&&!F.C2?F.C2=!0:F.uC.Is()}; HkG=function(F,J){var b=-1,I=-1,u=-1,w;if((w=F.tC)==null?0:w.items)for(F=g.N(F.tC.items),w=F.next();!w.done;w=F.next())w=w.value,J=q,v=F.lR.isManifestless&&F.policy.TX, M){var a;if(((a=F.C)==null?void 0:a.Wg.event)==="predictStart"&&F.C.MfF.D&&(F.D=NaN,F.V=NaN);if(F.C&&F.C.Mf===J)if(I=F.C,u&&I){var M=I.Wg;w=u.F0(M);M.event==="predictStart"&&(F.eE=J);F.UQ("sdai",{onqevt:M.event,sq:J,mt:b,gab:w,cst:M.startSecs,cueid:F.policy.oe&&(w||M.event==="start")?M.identifier:void 0},!0);if(w)if(M.event!=="predictStart")M.event==="start"&&F.eE===J-1&&F.UQ("sdai",{gabonstart:J}),I.Hz?Bs(F, 4,"cue"):(F.D=J,F.V=b,F.UQ("sdai",{joinad:F.U,sg:F.D,st:F.V.toFixed(3)}),F.N=Date.now(),Bs(F,2,"join"),u.O3(I.Wg));else{var q=J+Math.max(Math.ceil(-M.C/5E3),1);w=Math.floor(b-M.C/1E3);F.policy.D?F.T=w:F.Z=q;F.UQ("sdai",{onpred:b,estsq:q,estmt:w.toFixed(3)});rg(F.Zv,w,w,q);F.N=Date.now();Bs(F,3,"predict");u.O3(I.Wg)}else F.U===1?((q=F.W)==null?0:q.GA(b))?(rg(F.Zv,b,b,J),Bs(F,4,"sk2had")):Bs(F,5,"nogab"):M.event==="predictStart"&&(F.policy.D&&F.T>0?(b=Math.floor(b-M.C/1E3),F.T!==b&&F.UQ("sdai",{updateSt:b, old:F.T}),F.T=b):F.Z>0&&(b=J+Math.max(Math.ceil(-M.C/5E3),1),F.Z!==b&&(F.UQ("sdai",{updateSt:b,old:F.Z}),F.Z=b)));var v,a;if(F.vV&&M.event==="start"&&((v=F.C)==null?void 0:v.Wg.event)!=="predictStart"&&((a=F.C)==null?void 0:a.Mf)===J-1){var e;F.UQ("sdai",{ovlpst:(e=F.C)==null?void 0:e.Wg.event,sq:J})}}else F.UQ("sdai",{nulldec:1,sq:J,mt:b.toFixed(3),evt:(I==null?void 0:(M=I.Wg)==null?void 0:M.event)||"none"});else F.U===1&&Bs(F,5,"noad")}; gmC=function(F,J,b){if(F.U===1||F.U===2)return!1;if(F.U!==0&&J===F.audioTrack){if(F.policy.D)return p6v(F.videoTrack,b)||p6v(F.videoTrack,b+1);F=SI(F.videoTrack);if(b>(F?F.Mf:-1))return!1}return!0}; sd=function(F,J,b){return(b<0||b===F.D)&&!isNaN(F.V)?F.V:J}; acG=function(F,J){if(F.C){var b=F.C.Wg.Bg-(J.startTime+F.Y-F.C.Wg.startSecs);b<=0||(b=new YZ(F.C.Wg.startSecs-(isNaN(F.Y)?0:F.Y),b,F.C.Wg.context,F.C.Wg.identifier,"stop",F.C.Wg.C+J.duration*1E3),F.UQ("cuepointdiscontinuity",{segNum:J.Mf}),Ps(F,b,J.Mf))}}; Bs=function(F,J,b){F.U!==J&&(F.UQ("sdai",{setsst:J,old:F.U,r:b}),F.U=J)}; Yi=function(F,J,b,I){(I===void 0?0:I)?Bs(F,1,"seek"):J>0&&Math.abs(J-b)>=5&&F.U===4&&Bs(F,5,"sk2t."+J.toFixed(2)+";ct."+b.toFixed(2))}; $i=function(F,J,b){this.audio=F;this.video=J;this.reason=b}; Cv=function(F,J,b){this.C=F;this.reason=J;this.token=b;this.videoId=void 0}; Xx=function(F,J,b){g.R.call(this);this.policy=F;this.Z=J;this.UQ=b;this.T=new Map;this.D=0;this.W=!1;this.C="";this.U=!1}; Q8=function(F,J,b){if(b===void 0?0:b)F.W=!0;++F.D;b=6E4*Math.pow(2,F.D);b=(0,g.jR)()+b;F.T.set(J.info.id,b)}; Rh=function(F){for(var J=g.N(F.T.entries()),b=J.next();!b.done;b=J.next()){var I=g.N(b.value);b=I.next().value;I=I.next().value;I<(0,g.jR)()&&F.T.delete(b)}return F.T}; mxz=function(F){return F.W&&Rh(F).size>0}; Dq=function(F,J){F.C!==J&&(F.C=J,F.U=!0)}; yMo=function(F,J){var b;J&&(b=g.xL(F.Z.C,function(u){return u.id===J})); if(!b&&(b=g.xL(F.Z.C,function(u){var w;return!((w=u.j3)==null||!w.isDefault)}),J)){var I; F.UQ("iaf",{id:J,sid:(I=b)==null?void 0:I.id})}return b}; Od=function(F,J,b,I,u,w){var M=this;w=w===void 0?[]:w;this.Zv=F;this.Gj=J;this.policy=b;this.lR=I;this.W=u;this.nW=w;this.logger=new g.Hl("dash/abr");this.C=QE;this.T=this.V=null;this.N=-1;this.qf=!1;this.nextVideo=this.U=null;this.Z=[];this.zj=new Set;this.fW={};this.oI=new AP(1);this.Y=0;this.KW=this.eE=this.Tj=!1;this.kQ=0;this.Jz=!1;this.WN=new Set;this.dD=!1;this.Po={Id:function(){ki(M)}}; this.D=new Xx(this.policy,u,function(q,v){M.Zv.UQ(q,v)})}; fc3=function(F,J,b){oh(F,J);J=yMo(F.D,b);b||J||(J=iov(F));J=J||F.W.C[0];F.U=F.lR.C[J.id];ki(F);F.V=F.U;zuk(F);NGm(F);F.T=F.nextVideo;F.V=F.U;return lcY(F)}; Emk=function(F,J){if(WcY(F,J))return null;if(J.reason==="m"&&J.isLocked())return F.logger.debug(function(){return"User sets constraint to: "+It(J)}),oh(F,J),F.Y=F.Z.length-1,ki(F),h9(F),F.eE=F.eE||F.T!==F.nextVideo,F.T=F.nextVideo,new $i(F.U,F.T,J.reason); J.reason==="r"&&(F.N=-1);oh(F,J);h9(F);if(J.reason==="r"&&F.nextVideo===F.T)return new $i(F.U,F.nextVideo,J.reason);dx4(F);return null}; jAo=function(F,J,b){F.U=F.lR.C[J];F.V=F.U;return new $i(F.V,F.T,b?"t":"m")}; GCC=function(F,J){if(J.info.video){if(F.T!==J)return F.T=J,lcY(F)}else F.KW=F.V!==J,F.V=J;return null}; Voo=function(F,J){if(J.C.info.video&&J.Z){var b=(J.U+J.T)/J.duration,I=J.C.info.LW;b&&I&&(F.oI.Zj(1,b/I),F.policy.T&&b/I>1.5&&F.Zv.UQ("overshoot",{sq:J.Mf,br:b,max:I}))}}; cs=function(F,J,b){Q8(F.D,J,b===void 0?!1:b);F.N=-1;oh(F,F.C)}; PUJ=function(F,J){return new $i(F.V,F.T,J||F.C.reason)}; dx4=function(F){if(F.T&&F.nextVideo&&Ud(F,F.T.info)F.policy.hN,q=u<=F.policy.hN?c4(I):O5(I);if(!w||M||q)b[u]=I}return b}; oh=function(F,J){F.C=J;var b=F.W.videoInfos;if(!F.C.isLocked()){var I=(0,g.jR)();b=g.qN(b,function(q){if(q.LW>this.policy.LW)return!1;var v=this.lR.C[q.id];return Rh(this.D).get(q.id)>I?!1:v.gw.U>4||v.W>4?(this.logger.debug(function(){return"Remove "+b1(q)+"; 4 load failures"}),!1):this.WN.has(+q.itag)?!1:!0},F); mxz(F.D)&&(b=g.qN(b,function(q){return q.video.width<=854&&q.video.height<=480}))}b.length||(b=F.W.videoInfos); var u=b;F.policy.Vc&&(u=TG7(F,u,J));u=g.qN(u,J.Z,J);if(F.C.isLocked()&&F.D.C){var w=g.xL(b,function(q){return q.id===F.D.C}); w?u=[w]:Dq(F.D,"")}F.policy.Vc||(u=TG7(F,u,J));u.length||(u=[b[0]]);u.sort(function(q,v){return Ud(F,q)-Ud(F,v)}); J={};for(b=1;bJ.kJ.video.width?(g.ZH(u,b),b--):Ud(F,J.j8)*F.policy.N>Ud(F,J.kJ)&&(g.ZH(u,b-1),b--);var M=u[u.length-1];F.Jz=!!F.T&&!!F.T.info&&F.T.info.YQ!==M.YQ;F.logger.debug(function(){return"Constraint: "+It(F.C)+", "+u.length+" fmts selectable, max selectable fmt: "+b1(M)}); F.Z=u;F.zj.clear();J=!1;for(b=0;b=1080&&(J=!0);rMa(F.policy,M,F.lR.MW)}; TG7=function(F,J,b){var I=b.reason==="m"||b.reason==="s";F.policy.CM&&xi&&g.ia&&(!I||b.C<1080)&&(J=J.filter(function(a){return a.video&&(!a.U||a.U.powerEfficient)})); if(J.length>0)if(Qh()){var u=BGv(F,J);J=J.filter(function(a){return!!a&&!!a.video&&a.YQ===u[a.video.C].YQ})}else{var w,M,q=(w=J[0])==null?void 0:(M=w.video)==null?void 0:M.C; if(q){b=J.filter(function(a){return!!a&&!!a.video&&a.video.C===q}); var v=BGv(F,b)[q].YQ;J=J.filter(function(a){return!!a&&!!a.video&&a.YQ===v})}}return J}; SLz=function(F,J){for(var b=0;b+1I}; ki=function(F){if(!F.U||!F.policy.Z&&!F.U.info.j3){var J=F.W.C;F.U&&(J=J.filter(function(I){return I.audio.C===F.U.info.audio.C}),J.length||(J=F.W.C)); F.U=F.lR.C[J[0].id];if(J.length>1){if(F.policy.Wu){if(F.policy.Q2)return;var b=g.xL(J,function(I){return I.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); b&&(F.U=F.lR.C[b.id])}b=!1;if(b=F.policy.g9?!0:F.C.isLocked()?F.C.C<240:SLz(F,F.U))F.U=F.lR.C[g.ck(J).id]}}}; h9=function(F){if(!F.nextVideo||!F.policy.Z)if(F.C.isLocked())F.nextVideo=F.C.C<=360?F.lR.C[F.Z[0].id]:F.lR.C[g.ck(F.Z).id],F.logger.debug(function(){return"Select max fmt: "+b1(F.nextVideo.info)}); else{for(var J=Math.min(F.Y,F.Z.length-1),b=Ee(F.Gj),I=Ud(F,F.U.info),u=b/F.policy.Tj-I;J>0&&!(Ud(F,F.Z[J])<=u);J--);for(var w=b/F.policy.N-I;J=w);J++);F.nextVideo=F.lR.C[F.Z[J].id];F.Y!==J&&F.logger.info(function(){return"Adapt to: "+b1(F.nextVideo.info)+", bandwidth: "+b.toFixed(0)+", bandwidth to downgrade: "+u.toFixed(0)+", bandwidth to upgrade: "+w.toFixed(0)+", constraint: "+It(F.C)}); F.Y=J}}; zuk=function(F){var J=F.policy.Tj,b=Ee(F.Gj),I=b/J-Ud(F,F.U.info);J=g.nz(F.Z,function(u){return Ud(this,u)w?u=0:I[M]>F.buffered[M]&&(M===w-1?u=2:M===w-2&&I[M+1]>F.buffered[M+1]&&(u=3))}F.C.add(J<<3|(b&&4)|u);J=Math.ceil(F.track.Iv()*1E3);F.C.add(J-F.D);F.D=J;if(u===1)for(F.C.add(w),M=J=0;M=2&&F.C.add(I[w- 1]-F.buffered[w-1]);b&&F.C.add(b);F.buffered=I}; Zq=function(F,J,b){var I=this;this.policy=F;this.C=J;this.kQ=b;this.Z=this.U=0;this.eT=null;this.Tj=new Set;this.N=[];this.indexRange=this.initRange=null;this.Y=new xn;this.eE=this.Gj=!1;this.Po={o8R:function(){return I.T}, TfI:function(){return I.chunkSize}, LwN:function(){return I.V}, cOQ:function(){return I.W}}; (J=X6v(this))?(this.chunkSize=J.csz,this.T=Math.floor(J.clen/J.csz),this.V=J.ck,this.W=J.civ):(this.chunkSize=F.UK,this.T=0,this.V=g.Nq(16),this.W=g.Nq(16));this.D=new Uint8Array(this.chunkSize);this.V&&this.W&&(this.crypto=new x73(this.V,this.W))}; X6v=function(F){if(F.policy.D4&&F.policy.sK)for(var J=g.N(F.policy.D4),b=J.next(),I={};!b.done;I={tU:void 0,NV:void 0},b=J.next())if(b=g.bi(b.value),I.tU=+b.clen,I.NV=+b.csz,I.tU>0&&I.NV>0&&F.policy.Z===b.docid&&F.C.info.id===b.fmtid&&F.C.info.lastModified===+b.lmt)return F={},F.clen=I.tU,F.csz=I.NV,F.ck=b.ck,F.civ=b.civ,F}; Hs=function(F){return!!F.eT&&F.eT.aQ()}; Dxo=function(F,J){if(!Hs(F)&&!F.iR()){if(!(F.Gj||(F.Gj=!0,F.T>0))){var b=Lv(F);b=PC(F.policy.Z,F.C.info,Fo(F),b,F.policy.nW);Ju(F,b)}if(J.info.type===1){if(F.eT){b2(F,Error("Woffle: Expect INIT slices to always start us off"));return}F.initRange=EL(0,J.C.getLength())}else if(J.info.type===2)F.eT&&F.eT.type===1||b2(F,Error("Woffle: Index before init")),F.indexRange=EL(F.initRange.end+1,J.C.getLength());else if(J.info.type===3){if(!F.eT){b2(F,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(F.eT.type===3&&!B6(F.eT,J.info)&&(F.N=[],J.info.Mf!==TC(F.eT)||J.info.U!==0))return;if(J.info.Z){b=g.N(F.N);for(var I=b.next();!I.done;I=b.next())QAz(F,I.value);F.N=[]}else{F.N.push(J);F.eT=J.info;return}}else{b2(F,Error("Woffle: Unexpected slice type"));return}F.eT=J.info;QAz(F,J);Ru3(F)}}; QAz=function(F,J){var b=0,I=J.C.HS();if(F.Z=I.length)return;if(b<0)throw Error("Missing data");F.Z=F.T;F.U=0}for(u={};b0){var M=I.getUint32(b+28);w+=M*16+4}var q=I.getUint32(b+w-4);try{var v=cMa(J.subarray(b+w,b+w+q));if(v!==null){var a=v;break a}}catch(e){}}b+=u}a=null;break a}catch(e){a=null;break a}a=void 0}if(a!=null)for(J=KI(Xe(a,7)),J==null||F.Xb||(F.cryptoPeriodIndex=J),J=KI(Xe(a,10)),J!=null&&J>0&&!F.Xb&&(F.C=J),a=c3(a, 2,Nya,void 0===WFo?2:4),a=g.N(a),J=a.next();!J.done;J=a.next())F.T.push(g.zw(VI(J.value),4))}; xxz=function(F){return isNaN(F.cryptoPeriodIndex)?g.zw(F.initData):""+F.cryptoPeriodIndex}; w9=function(F,J,b){var I=b===void 0?{}:b;b=I.videoDuration===void 0?0:I.videoDuration;var u=I.MM===void 0?void 0:I.MM;I=I.HH===void 0?!1:I.HH;this.videoId=F;this.status=J;this.videoDuration=b;this.MM=u;this.HH=I}; nm7=function(F,J,b,I,u){this.videoId=F;this.Qw=J;this.U=b;this.bytesDownloaded=I;this.C=u}; Md=function(F){this.C=F;this.offset=0}; Au=function(F){if(F.offset>=F.C.getLength())throw Error();return F.C.getUint8(F.offset++)}; toa=function(F,J){J=J===void 0?!1:J;var b=Au(F);if(b===1){J=-1;for(b=0;b<7;b++){var I=Au(F);J===-1&&I!==255&&(J=0);J>-1&&(J=J*256+I)}return J}I=128;for(var u=0;u<6&&I>b;u++)b=b*256+Au(F),I*=128;return J?b:b-I}; Zo7=function(F){try{var J=toa(F,!0),b=toa(F,!1);return{id:J,size:b}}catch(I){return{id:-1,size:-1}}}; Hoo=function(F){for(var J=new Md(F),b=-1,I=0,u=0;!I||!u;){var w=Zo7(J),M=w.id;w=w.size;if(M<0)return;if(M===176){if(w!==2)return;I=J.VB()}else if(M===186){if(w!==2)return;u=J.VB()}M===374648427?b=J.VB()+w:M!==408125543&&M!==174&&M!==224&&J.skip(w)}J=lH(F,0,b);b=new DataView(J.buffer);b.setUint16(I,3840);b.setUint16(u,2160);I=new m_([J]);yK(I,F);return I}; Lc3=function(F,J,b){var I=this;this.Zv=F;this.policy=J;this.W=b;this.logger=new g.Hl("dash");this.U=[];this.C=null;this.Gj=-1;this.N=0;this.WN=NaN;this.Tj=0;this.T=NaN;this.Y=this.qf=0;this.Jz=-1;this.fW=this.D=this.Z=this.kQ=null;this.oI=this.KW=NaN;this.V=this.eE=this.zj=this.nW=null;this.bR=!1;this.dD=this.timestampOffset=0;this.Po={ym:function(){return I.U}}; if(this.policy.Z){var u=this.W,w=this.policy.Z;this.policy.nW&&F.UQ("atv",{ap:this.policy.nW});this.V=new Zq(this.policy,u,function(M,q,v){qd(F,new w9(I.policy.Z,2,{MM:new nm7(w,M,u.info,q,v)}))}); this.V.Y.promise.then(function(M){I.V=null;M===1?qd(F,new w9(I.policy.Z,M)):I.Zv.UQ("offlineerr",{status:M.toString()})},function(M){var q=(M.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); M instanceof Io&&!M.C?(I.logger.info(function(){return"Assertion failed: "+q}),I.Zv.UQ("offlinenwerr",{em:q}),v0(I),qd(F,new w9(I.policy.Z,4))):(I.logger.info(function(){return"Failed to write to disk: "+q}),I.Zv.UQ("dldbwerr",{em:q}),v0(I),qd(F,new w9(I.policy.Z,4,{HH:!0})))})}}; Ft7=function(F){return F.U.length?F.U[0]:null}; Jgm=function(F,J){return F.U.some(function(b){return b.info.Mf===J})}; M$a=function(F,J,b,I){I=I===void 0?0:I;if(F.D){var u=F.D.U+F.D.T;if(b.info.U>0)if(b.info.Mf===F.D.Mf&&b.info.U=0&&F.D.Mf>=0&&!B6(F.D,b.info))throw new g.hC("improper_continuation",F.D.uX(),b.info.uX());OFG(F.D,b.info)||ao(F,"d")}else if(b.info.U>0)throw new g.hC("continuation_of_null",b.info.uX());F.D=b.info;F.W=b.info.C;if(b.info.U===0){if(F.C)if(!F.Zv.isOffline()||F.policy.Gc)F.Zv.UQ("slice_not_fully_processed",{buffered:F.C.info.uX(), push:b.info.uX()});else throw new g.hC("slice_not_fully_processed",F.C.info.uX(),b.info.uX());e3(F);F.qf=I}else{if(F.qf&&I&&F.qf!==I)throw F=new g.hC("lmt_mismatch",b.info.Mf,F.qf,I),F.level="WARNING",F;!b.info.C.pc()&&F.Z&&(I=b.info,u=F.Z.fF,I.D="updateWithEmsg",I.Mf=u)}if(F.C){I=g.xm(F.C,b);if(!I)throw new g.hC("failed_to_merge",F.C.info.uX(),b.info.uX());F.C=I}else F.C=b;a:{b=g.nF(F.C.info.C.info);if(F.C.info.type!==3){if(!F.C.info.Z)break a;F.C.info.type===6?bWa(F,J,F.C):I1J(F,F.C);F.C=null}for(;F.C;){I= F.C.C.getLength();if(F.Gj<=0&&F.N===0){var w=F.C.C,M=-1;u=-1;if(b){for(var q=0;q+80))break;if(K!==408125543)if(K===524531317)q=!0,e>=0&&(u=w.VB()+e,v=!0);else{if(q&&(K===160||K===163)&&(M<0&&(M=a),v))break;K===163&&(M=Math.max(0,M),u=w.VB()+e);if(K===160){M<0&&(u=M=w.VB()+e);break}w.skip(e)}}M<0&&(u=-1)}if(M< 0)break;F.Gj=M;F.N=u-M}if(F.Gj>I)break;F.Gj?(I=u1Y(F,F.Gj),I.D&&wGa(F,I),bWa(F,J,I),K7(F,I),F.Gj=0):F.N&&(I=u1Y(F,F.N<0?Infinity:F.N),F.N-=I.C.getLength(),K7(F,I))}}F.C&&F.C.info.Z&&(K7(F,F.C),F.C=null)}; I1J=function(F,J){!J.info.C.pc()&&J.info.U===0&&(g.nF(J.info.C.info)||J.info.C.info.Xb())&&zgC(J);if(J.info.type===1)try{wGa(F,J),AgG(F,J)}catch(u){g.Td(u);var b=rG(J.info);b.hms="1";F.Zv.handleError("fmt.unparseable",b||{},1)}b=J.info.C;b.Eg(J);F.V&&Dxo(F.V,J);if(b.VJ()&&F.policy.C)a:{F=F.Zv.lR;J=J.info.clipId;b=g.H4(b.info,F.MW);if(J){var I=$tv(F,b);if(F.dD[I])break a;F.dD[I]=J}F.fW.push(b)}}; sxY=function(F,J,b){if(F.U.length!==0&&(b||F.U.some(function(w){return w.info.hF=g9(M)+q):J=F.getDuration()>=M.getDuration(),J=!J;J&&a1z(b)&&(J=F.kQ,p7?(q=yGG(b),M=1/q,q=g9(F,q),J=g9(J)+M-q):J=J.getDuration()- F.getDuration(),J=1+J/b.info.duration,Nko(b.AF(),J))}else{M=!1;F.Z||(zgC(b),b.U&&(F.Z=b.U,M=!0,w=b.info,I=b.U.fF,w.D="updateWithEmsg",w.Mf=I,w=b.U,w.aQ&&(I=F.W.index,I.U=!w.aQ,I.T="emsg"),w=b.info.C.info,I=b.AF(),g.nF(w)?xZ(I,1701671783):w.Xb()&&bU([408125543],307544935,I)));a:if((w=Zc(b,F.policy.If))&&iBo(b))q=e0G(F,b),F.Y+=q,w-=q,F.Tj+=w,F.T=F.policy.XI?F.T+w:NaN;else{if(F.policy.N5){if(I=v=F.Zv.C1(g.no(b),1),F.T>=0&&b.info.type!==6){if(F.policy.XI&&isNaN(F.KW)){g.rQ(new g.hC("Missing duration while processing previous chunk", b.info.uX()));F.Zv.isOffline()&&!F.policy.Gc||Ktk(F,b,I);ao(F,"m");break a}var a=v-F.T,e=a-F.Y,K=b.info.Mf,p=F.fW?F.fW.Mf:-1,m=F.oI,y=F.KW,f=F.policy.gO&&a>F.policy.gO,d=Math.abs(e)>10,G=Math.abs(F.T-I)<1E-7;if(Math.abs(e)>1E-4){F.dD+=1;var P=(u=F.Z)==null?void 0:Xh(u);u={audio:""+ +F.Cd(),sq:K.toFixed(),sliceStart:v,lastSq:p.toFixed(),lastSliceStart:m,lastSliceDuration:y,totalDrift:(a*1E3).toFixed(),segDrift:(e*1E3).toFixed(),skipRewrite:""+ +(f||d)};if(P==null?0:P.length)u.adCpn=P[0];F.Zv.handleError("qoe.avsync", u);F.Jz=K}f||d||G||(I=F.T);u=e0G(F,b,v);w-=u;F.Y=a+u;F.policy.T&&(e&&!G||u)&&(a=(q=F.Z)==null?void 0:Xh(q),F.Zv.UQ("discontinuityRewrite",{adCpn:(a==null?0:a.length)?a.join("."):"",itag:b.info.C.info.itag,sq:b.info.Mf,originalStartTime:v,rewrittenStartTime:I,startTimeAdjustment:I-v,segDrift:(e*1E3).toFixed(),originalDuration:w+u,rewrittenDuration:w,durationAdjustment:u}))}}else I=isNaN(F.T)?b.info.startTime:F.T;Ktk(F,b,I)&&(F.Tj+=w,F.T=I+w,F.policy.k6&&F.dD>=F.policy.k6&&(F.dD=0,F.Zv.M$({resetForRewrites:"count"})))}F.fW= b.info;F.KW=tM(b);b.T>=0&&(F.oI=b.T);if(M&&F.Z){M=pGa(F,!0);So(b.info,M);F.C&&So(F.C.info,M);J=g.N(J);for(q=J.next();!q.done;q=J.next())q=q.value,u=void 0,F.policy.W&&q.Mf!==((u=F.Z)==null?void 0:u.fF)||So(q,M);(b.info.Z||F.C&&F.C.info.Z)&&b.info.type!==6||(F.eE=M,F.policy.oI?(J=gja(F.Z),F.Zv.Io(F.W,M,J)):(J=F.Zv,J.lR.isManifestless&&mQo(J,M,null,!!F.W.info.video)),F.policy.IP||ygm(F))}}AgG(F,b);F.timestampOffset&&gna(b,F.timestampOffset)}; K7=function(F,J){if(J.info.Z){F.nW=J.info;if(F.Z){var b=F.Z,I=pGa(F,!1);b=gja(b);F.Zv.Io(F.W,I,b);F.eE||F.policy.IP||ygm(F);F.eE=null}e3(F)}F.V&&Dxo(F.V,J);if(I=F.q$())if(I=g.xm(I,J,F.policy.Ys)){F.U.pop();F.U.push(I);return}F.U.push(J)}; gja=function(F){if(F.Hz()){var J=F.data["Stitched-Video-Id"]?F.data["Stitched-Video-Id"].split(",").slice(0,-1):[],b=Xh(F),I=[];if(F.data["Stitched-Video-Duration-Us"])for(var u=g.N(F.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),w=u.next();!w.done;w=u.next())I.push((Number(w.value)||0)/1E6);u=[];if(F.data["Stitched-Video-Start-Frame-Index"]){w=g.N(F.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var M=w.next();!M.done;M=w.next())u.push(Number(M.value)||0)}u=[]; if(F.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(w=g.N(F.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),M=w.next();!M.done;M=w.next())u.push((Number(M.value)||0)/1E6);F=new hum(J,b,I,u,g.mMJ(F),g.y17(F))}else F=null;return F}; e3=function(F){F.C=null;F.Gj=-1;F.N=0;F.Z=null;F.WN=NaN;F.Tj=0;F.eE=null}; ao=function(F,J){J={rst4disc:J,cd:F.Y.toFixed(3),sq:F.fW?F.fW.Mf:-1};F.T=NaN;F.Y=0;F.Jz=-1;F.fW=null;F.oI=NaN;F.KW=NaN;F.zj=null;F.Zv.UQ("mdstm",J)}; AgG=function(F,J){if(F.W.info.Ke){if(J.info.C.info.Xb()){var b=new tt(J.AF());if(Hd(b,[408125543,374648427,174,28032,25152,20533,18402])){var I=JM(b,!0);b=I!==16?null:Mx(b,I)}else b=null;I="webm"}else J.info.V=OoG(J.AF()),b=omv(J.info.V),I="cenc";b&&b.length&&(b=new u2(b,I),F.policy.wI&&g.nF(J.info.C.info)&&(I=jTo(J.AF()))&&(b.U=I),b.Xb=J.info.C.info.Xb(),J.U&&J.U.cryptoPeriodIndex&&(b.cryptoPeriodIndex=J.U.cryptoPeriodIndex),J.U&&J.U.U&&(b.C=J.U.U),F.Zv.vc(b))}}; ygm=function(F){var J=F.Z,b=p4J(J);b&&(b.startSecs+=F.WN,F.Zv.K9(F.W,b,J.fF,J.Hz()))}; pGa=function(F,J){var b,I=F.Z;if(b=p4J(I))b.startSecs+=F.WN;var u=F.WN;F=J?I.U2:F.Tj;var w=I.Hz()?2:1;return new d_(I.fF,u,F,I.ingestionTime,"sq/"+I.fF,void 0,void 0,J,b,w)}; Ktk=function(F,J,b){if(!pez(J,b))return J=rG(J.info),J.smst="1",F.Zv.handleError("fmt.unparseable",J||{},1),!1;isNaN(F.WN)&&(F.WN=b);return!0}; e0G=function(F,J,b){var I=0;if(J.info.C.info.Xb()&&!iBo(J))return 0;if(F.kQ&&!F.Cd()){var u=0;b&&g.nF(J.info.C.info)?u=b-F.T:J.info.C.info.Xb()&&(u=F.Y);var w=J.info.Mf;b=Zc(J,F.policy.If);var M=F.kQ;var q=M.Jz;M=M.Y;var v=Math.abs(M-u)>.02;if((w===q||w>q&&w>F.Jz)&&v){I=Math.max(.95,Math.min(1.05,(b-(M-u))/b));if(g.nF(J.info.C.info))Nko(J.AF(),I);else if(J.info.C.info.Xb()&&(w=u-M,!g.nF(J.info.C.info)&&(J.info.C.info.Xb(),I=new tt(J.AF()),q=J.D?I:new tt(new DataView(J.info.C.C.buffer)),Zc(J,!0)))){var a= w*1E3,e=qx(q);q=I.pos;I.pos=0;if(I.C.getUint8(I.pos)===160||v6(I))if(Fz(I,160))if(JM(I,!0),Fz(I,155)){if(w=I.pos,v=JM(I,!0),I.pos=w,a=a*1E9/e,e=IA(I),a=e+Math.max(-e*.7,Math.min(e,a)),a=Math.sign(a)*Math.floor(Math.abs(a)),!(Math.ceil(Math.log(a)/Math.log(2)/8)>v)){I.pos=w+1;for(w=v-1;w>=0;w--)I.C.setUint8(I.pos+w,a&255),a>>>=8;I.pos=q}}else I.pos=q;else I.pos=q;else I.pos=q}I=Zc(J,F.policy.If);I=b-I}I&&J.info.C.info.Xb()&&F.Zv.UQ("webmDurationAdjustment",{durationAdjustment:I,videoDrift:u+I,audioDrift:M})}return I}; a1z=function(F){return F.info.C.pc()&&F.info.Mf===F.info.C.index.oC()}; g9=function(F,J){J=(J=J===void 0?0:J)?Math.round(F.timestampOffset*J)/J:F.timestampOffset;F.W.Z&&J&&(J+=F.W.Z.C);return J+F.getDuration()}; iWo=function(F,J){J<0||(F.U.forEach(function(b){gna(b,J)}),F.timestampOffset=J)}; T9=function(F,J,b,I,u){x7.call(this,b,u);var w=this;this.policy=F;this.formatId=J;this.ZV=I;this.lastError=null;this.aP=function(){w.iR()||(w.ZV.Fq.has(w.formatId)?(w.isComplete()||w.C.start(),dg(w.ZV,w.formatId)&&w.EX(2),w.ZV.Ph(w.formatId)&&(oZ7(w.ZV,w.formatId)?w.aC(4):(w.lastError="net.closed",w.aC(5)))):(w.lastError="player.exception",w.aC(5)))}; this.C=new g.ty(function(){w.isComplete()||(w.lastError="net.timeout",w.aC(5))},this.policy.LT); this.C.start();DvJ(this.ZV,this.formatId,this.aP);g.qf(this.aP)}; mV=function(F,J,b,I){g.R.call(this);var u=this;this.Zv=F;this.policy=J;this.C=b;this.timing=I;this.logger=new g.Hl("dash");this.T=[];this.Gj=[];this.U=this.dw=null;this.qf=!1;this.dD=this.zj=0;this.W=-1;this.eE=!1;this.WN=-1;this.kQ=this.fW=null;this.Tj=NaN;this.Po={ND:function(){return u.Z}, F5z:function(){return u.T}, CJz:function(){return u.Y}}; this.Z=new Lc3(F,J,b);this.policy.C&&(this.Y=new G9(this.Z,this.Zv.getManifest(),this.policy,function(w){u.policy.GH&&u.UQ("buftl",w)})); this.policy.bR&&(this.N=new nv(this));this.LW=b.info.LW;this.V=this.policy.eE?!1:b.a9();this.isManifestless=b.a9();this.D=this.V;g.k(this,this.fW)}; yO=function(F,J,b){b=b===void 0?!1:b;J&&p7&&iWo(F.Z,J.Av());if(!b){var I;(I=F.Y)==null||BB3(I)}F.dw=J;(J=F.Y)!=null&&(J.dw=F.dw)}; i2=function(F){var J=F.dw&&F.dw.Vo();if(F.policy.zd){if((F=F.Y)==null)F=void 0;else{var b;F=(b=F.T)==null?void 0:b.info}return F||null}return J}; z04=function(F){for(var J={},b=0;b4&&F.Gj.shift()}; Ndo=function(F,J){if(J.Im()){var b=J.UY();b=g.N(b);for(var I=b.next();!I.done;I=b.next())I=I.value,F.policy.T&&J instanceof T9&&F.UQ("omblss",{s:I.info.uX()}),Nd(F,J.info.aI,I,J.PZ())}}; Nd=function(F,J,b,I){I=I===void 0?0:I;isNaN(F.Tj)||(F.UQ("aswm",{sq:J[0].Mf,id:J[0].C.info.itag,xtag:J[0].C.info.C,ep:Date.now()-F.Tj}),F.Tj=NaN);switch(b.info.type){case 1:case 2:l1C(F,b);break;case 4:var u=b.info.C,w=u.v7(b),M;((M=F.U)==null?0:M.type===4)&&tg7(b.info,F.U)&&(F.U=u.Iq(F.U).pop());b=g.N(w);for(u=b.next();!u.done;u=b.next())Nd(F,J,u.value,I);break;case 3:b.info.C.info.video?(u=F.timing,u.kQ||(u.kQ=(0,g.jR)(),dM("fvb_r",u.kQ,u.C))):(u=F.timing,u.W||(u.W=(0,g.jR)(),dM("fab_r",u.W,u.C))); M$a(F.Z,J,b,I);F.policy.C&&f1o(F);break;case 6:M$a(F.Z,J,b,I),F.U=b.info}}; l1C=function(F,J){if(J.info.type===1)if(J.info.C.info.video){var b=F.timing;b.fW||(b.fW=(0,g.jR)(),dM("vis_r",b.fW,b.C))}else b=F.timing,b.Y||(b.Y=(0,g.jR)(),dM("ais_r",b.Y,b.C));I1J(F.Z,J);F=F.Zv;F.videoTrack.C.VJ()&&F.audioTrack.C.VJ()&&F.policy.C&&!F.lR.MW&&(J=F.audioTrack.getDuration(),b=F.videoTrack.getDuration(),Math.abs(J-b)>1&&F.UQ("trBug",{af:""+g.H4(F.audioTrack.C.info,!1),vf:""+g.H4(F.videoTrack.C.info,!1),a:""+J,v:""+b}))}; Ra=function(F){return Ft7(F.Z)}; f1o=function(F){F.T.length?F.U=g.ck(g.ck(F.T).info.aI):F.Z.U.length?F.U=F.Z.q$().info:F.U=i2(F)}; l2=function(F,J){var b={Ym:[],mI:[]},I;if((F=F.Y)==null)F=void 0;else{PfC(F,F.Ym,"og");jxo(F,J);PfC(F,F.Ym,"trim");var u=Vv3(F);J=u.Ym;u=u.Lc;for(var w=[],M=0;M0){var p=wu(K,v);p>=0&&(e=(K.end(p)-v+.1)*1E3)}w.push({formatId:g.H4(q.info.C.info,F.lR.MW), C4:q.info.C4,sequenceNumber:q.info.Mf+F.Z,oh:a,Wf:q.info.T,XX:e})}F={Ym:J,mI:w}}return(I=F)!=null?I:b}; se=function(F,J,b){b=b===void 0?!1:b;if(F.dw){var I=F.dw.N0(),u=AG(I,J),w=NaN,M=i2(F);M&&(w=AG(I,M.C.index.getStartTime(M.Mf)));if(u===w&&F.U&&F.U.T&&WtY(f7(F),0))return J}F=dQa(F,J,b);return F>=0?F:NaN}; $7=function(F,J,b){F.C.VJ();var I=dQa(F,J);if(I>=0)return I;var u;(u=F.Y)==null||GRG(u,J,b);b=Math;I=b.min;u=F.Z;if(u.V)if(u=u.V,u.eT&&u.eT.type===3)u=u.eT.startTime;else if(u.T>0){var w=u.C.index;w=g.AL(w.offsets.subarray(0,w.count),u.T*u.chunkSize);u=u.C.index.getStartTime(w>=0?w:Math.max(0,-w-2))}else u=0;else u=Infinity;J=I.call(b,J,u);if(F.policy.U){var M,q;b=(M=F.Zv.IH())==null?void 0:(q=Pl(M,J))==null?void 0:q.clipId;F.U=F.C.CA(J,void 0,b).aI[0]}else F.U=F.policy.eE?null:F.C.CA(J).aI[0];W0(F)&& (F.dw&&F.dw.abort(),F.policy.QF&&(M=F.Y)!=null&&(M.T=void 0));F.dD=0;return F.U?F.U.startTime:J}; r83=function(F){F.V=!0;F.D=!0;F.W=-1;$7(F,Infinity)}; d9=function(F){for(var J=0,b=g.N(F.T),I=b.next();!I.done;I=b.next())J+=HFa(I.value.info);return J+=qDo(F.Z)}; j3=function(F,J){J=J===void 0?!1:J;var b=F.Zv.getCurrentTime(),I=F.Z.q$(),u=(I==null?void 0:I.info.H1)||0;F.policy.Uk&&(I==null?0:I.info.C.a9())&&!I.info.Z&&(u=I.info.hF);if(F.policy.U&&I&&I.info.clipId){var w,M=(((w=F.Zv.IH())==null?void 0:V5(w,I.info.clipId))||0)/1E3;u+=M}if(!F.dw)return F.policy.C&&J&&!isNaN(b)&&I?u-b:0;if((w=i2(F))&&EE(F,w))return w.H1;M=F.dw.N0(!0);if(J&&I)return w=0,F.policy.C&&(w=ve(M,u+.02)),w+u-b;u=ve(M,b);F.policy.BO&&w&&(J=wu(M,b),M=wu(M,w.hF-.02),J===M&&(b=w.H1-b,F.policy.T&& b>u+.02&&F.UQ("abh",{bh:u,bhtls:b}),u=Math.max(u,b)));return u}; Eja=function(F){var J=i2(F);return J?J.H1-F.Zv.getCurrentTime():0}; jZz=function(F,J){if(F.T.length){if(F.T[0].info.aI[0].startTime<=J)return;Sd(F)}for(var b=F.Z,I=b.U.length-1;I>=0;I--)b.U[I].info.startTime>J&&b.U.pop();f1o(F);F.U&&J=0;M--){var q=u.U[M];q.info.Mf>=J&&(u.U.pop(),u.T-=Zc(q,u.policy.If),w=q.info)}w&&(u.D=u.U.length>0?u.U[u.U.length-1].info:u.zj,u.U.length!==0||u.D||ao(u,"r"));u.Zv.UQ("mdstm",{rollbk:1,itag:w?w.C.info.itag:"",popped:w?w.Mf:-1,sq:J,lastslc:u.D?u.D.Mf:-1,lastfraget:u.T.toFixed(3)});if(F.policy.C)return F.U=null,!0;I>b?$7(F,I):F.U=F.C.iH(J-1,!1).aI[0]}catch(v){return J=Gj(v),J.details.reason="rollbkerr", F.Zv.handleError(J.errorCode,J.details,J.severity),!1}return!0}; P0=function(F,J){var b;for(b=0;b0?b||J.Mf>=F.WN:b}; T1=function(F){var J;return W0(F)||EE(F,(J=F.Z.q$())==null?void 0:J.info)}; f7=function(F){var J=[],b=i2(F);b&&J.push(b);J=g.FP(J,F.Z.Mp());b=g.N(F.T);for(var I=b.next();!I.done;I=b.next()){I=I.value;for(var u=g.N(I.info.aI),w=u.next(),M={};!w.done;M={oy:void 0},w=u.next())M.oy=w.value,I.Kb&&(J=g.qN(J,function(q){return function(v){return!tg7(v,q.oy)}}(M))),(P6(M.oy)||M.oy.type===4)&&J.push(M.oy)}F.U&&!DMY(F.U,g.ck(J),F.U.C.pc())&&J.push(F.U); return J}; WtY=function(F,J){if(!F.length)return!1;for(J+=1;J=J){J=w;break a}}J=u}return J<0?NaN:WtY(F,b?J:0)?F[J].startTime:NaN}; r9=function(F){return!(!F.U||F.U.C===F.C)}; GFG=function(F){return r9(F)&&F.C.VJ()&&F.U.C.info.LWJ&&I.H11080&&!F.N6&&(F.dD=36700160,F.cN=5242880,F.zj=Math.max(4194304,F.zj),F.N6=!0);J.video.C>2160&&!F.IX&&(F.dD=104857600,F.LW=13107200,F.IX=!0);g.eB(F.PN.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?J.isEncrypted()&&g.O6()&&g.D$("samsung")&&(g.D$("kant")||g.D$("muse"))&&(F.LW=g.eB(F.PN.experiments,"html5_samsung_kant_limit_max_bitrate")):J.isEncrypted()&&g.O6()&&g.D$("kant")&&(F.LW=1310720);F.oV!==0&&J.isEncrypted()&&(F.LW=F.oV);F.Yf!==0&&J.isEncrypted()&& b&&(F.LW=F.Yf);J.LW&&(F.xA=Math.max(F.ZY,Math.min(F.zj,5*J.LW)))}; Xo=function(F){return F.C&&F.fL&&F.playbackStartPolicy}; QO=function(F){return F.U||F.C&&F.Uz}; Ro=function(F,J,b,I){F.fL&&(F.playbackStartPolicy=J,F.P$=b,F.uh=I)}; C7=function(F,J,b){b=b===void 0?0:b;return g.eB(F.PN.experiments,J)||b}; DQv=function(F){var J=F===void 0?{}:F;F=J.E2;var b=J.lq;var I=J.x7;var u=J.oC;J=J.pu;this.E2=F;this.lq=b;this.x7=I;this.oC=u;this.pu=J}; oTz=function(F,J){if(J<0)return!0;var b=F.oC();return J0)return 2;if(J<0)return 1;b=F.oC();return J(0,g.jR)()?0:1}; ka=function(F,J,b,I,u,w,M,q,v,a,e,K,p,m){m=m===void 0?null:m;g.R.call(this);var y=this;this.Zv=F;this.policy=J;this.videoTrack=b;this.audioTrack=I;this.Z=u;this.C=w;this.timing=M;this.D=q;this.schedule=v;this.lR=a;this.T=e;this.Tj=K;this.QZ=p;this.vD=m;this.eE=!1;this.HJ="";this.jB=null;this.Qi=NaN;this.Gj=!1;this.U=null;this.j6=this.N=NaN;this.aV=this.W=0;this.logger=new g.Hl("dash");this.Po={Z5:function(f,d){return y.Z5(f,d)}}; this.policy.bd>0&&(this.HJ=g.Nq(this.policy.bd));this.policy.pF&&(this.Y=new D6(this.Zv,this.policy,this.schedule),g.k(this,this.Y))}; cg7=function(F,J,b){var I=J.U?J.U.C.gw:J.C.gw;var u=F.Z,w;(w=!F.policy.AQ)||(w=zK(I.C)===zK(I.T));w?I=!1:(u=gG(u,zK(I.T)),w=6E4*Math.pow(u.Z,1.6),(0,g.jR)()=u.Z?(u.UQ("sdai",{haltrq:w+1,est:u.Z}),I=!1):I=u.U!==2;if(!I||!Nx(J.U?J.U.C.gw:J.C.gw,F.policy,F.Z,F.Zv.NU())||F.Zv.isSuspended&&(!zB(F.schedule)||F.Zv.M2))return!1;if(F.policy.Z&&VE>=5)return g.Z_(F.Zv.P_),!1;if(F.lR.isManifestless){if(J.T.length>0&&J.U&&J.U.Mf===-1||J.T.length>=F.policy.Pn||!F.policy.ez&&J.T.length>0&&!F.policy.Y.lq)return!1;if(J.V)return!F.lR.isLive||!isNaN(F.Qi)}if(rgz(J))return F.logger.debug("Pending request with server-selectable format found"), !1;if(!J.U){if(!J.C.VJ())return!1;$7(J,F.Zv.getCurrentTime())}if(Ra(J)&&(J.q$()!==Ra(J)||F.Zv.isSuspended))return!1;u=(I=F.policy.HO)&&!J.T.length&&j3(J,!0)=F.policy.xx)return!1;I=J.U;if(!I)return!0;I.type===4&&I.C.VJ()&&(J.U=g.ck(I.C.Iq(I)),I=J.U);if(!I.aQ()&&!I.C.D$(I))return!1;w=F.lR.SF||F.lR.Z;if(F.lR.isManifestless&&w){w=J.C.index.oC();var M=b.C.index.oC(); w=Math.min(w,M);if(J.C.index.cY()>0&&w>0&&I.Mf>=w)return J.WN=w,b.WN=w,!1}if(I.C.info.audio&&I.type===4||I.aQ())return!1;w=!J.D&&!b.D;if(u=!u)u=I.H1,u=!!(b.U&&!EE(b,b.U)&&b.U.H1UQ4(F,J)?(UQ4(F,J),!1):(F=J.dw)&&F.isLocked()?!1:!0}; UQ4=function(F,J){var b=F.C;b=b.C?b.C.Wg:null;if(F.policy.kQ&&b)return b.startSecs+b.Bg+15;J=Y7(F.Zv,J);F.policy.Kk>0&&(b=((0,g.jR)()-F.Zv.JO)/1E3,J=Math.min(J,F.policy.Kk+F.policy.jm*b));b=F.Zv.getCurrentTime()+J;return F.policy.ra&&(J=xQm(F.Zv)+F.policy.ra,J=0||J.gw.U3("defrag")==="1"||J.gw.U3("otf")==="1"){J=null;break a}u=EL(0,4096)}u=new sL([new GC(5,I.C,u,"createProbeRequestInfo"+I.D,I.Mf)],J.U);u.Xx=b;u.C=J.C;J=u}J&&oo(F,J)}}; oo=function(F,J){F.Zv.U6(J);var b=HFa(J),I=F.Zv.To();b={Zy:F.schedule,XL:b,TO:z2v(F.D,b),Kj:V4(J.aI[0]),vu:Nv(J.gw.C),QY:F.policy.T,r_:function(M,q){F.Zv.h7(M,q)}}; if(F.schedule.U.V){var u,w;b.nD=(((u=F.videoTrack.C)==null?void 0:u.info.LW)||0)+(((w=F.audioTrack.C)==null?void 0:w.info.LW)||0)}F.jB&&(b.Mf=J.aI[0].Mf,b.Qi=J.Qi,b.jB=F.jB);I={O8:LYC(J,F.Zv.getCurrentTime()),qM:F.policy.K7&&$m(J)&&J.aI[0].C.info.video?YLz(F.T):void 0,d5:F.policy.kQ,poToken:F.Zv.f1(),GV:F.Zv.f$(),HJ:F.HJ,j6:isNaN(F.j6)?null:F.j6,vD:F.vD,QZ:F.QZ,aV:F.aV,yh:I};return new re(F.policy,J,b,F.Z,function(M,q){try{a:{var v=M.info.aI[0].C,a=v.info.video?F.videoTrack:F.audioTrack;if(!(M.state>= 2)||M.isComplete()||M.r$()||!(!F.Zv.HN||F.Zv.isSuspended||j3(a)>3)){var e=ojm(M,F.policy,F.Z);e===1&&(F.Gj=!0);nja(F,M,e);if(M.isComplete()||M.iR()&&q<3){if(F.policy.T){var K=M.timing.BQ();K.rst=M.state;K.strm=M.xhr.kx();K.cncl=M.xhr&&M.lX.Z?1:0;F.Zv.UQ("rqs",K)}M.wN&&F.Zv.UQ("sbwe3",{},!0)}if(!F.iR()&&M.state>=2){qLm(F.timing,M,v);var p=F.Zv;F.j6&&M.Ip&&p&&(F.j6=NaN,F.Zv.AV(M.Ip),F.Zv.hP(),F.Zv.UQ("cabrUtcSeek",{mediaTimeSeconds:M.Ip}));M.Tp&&F.j6&&M.Tp&&!M.Tp.action&&(F.Zv.l4(F.j6),F.j6=NaN,F.Zv.UQ("cabrUtcSeekFallback", {targetUtcTimeSeconds:F.j6}));M.WQ&&F.Zv.n3(M.WQ);F.policy.Ly&&(F.aV=M.aV);if(M.state===3){P0(a,M);$m(M.info)&&hu(F,a,v,!0);if(F.U){var m=M.info.R9();m&&F.U.Vz(M.info.aI[0].Mf,v.info.id,m)}F.Zv.Va()}else if(M.isComplete()&&M.info.aI[0].type===5){if(M.state!==4)M.J4()&&F.Zv.handleError(M.rB(),M.qp());else{var y=(M.info.aI[0].C.info.video?F.videoTrack:F.audioTrack).T[0]||null;y&&y instanceof re&&y.r$()&&y.DD(!0)}M.dispose()}else{M.J4()||t$_(F,M);var f;((f=M.Tk)==null?0:f.itagDenylist)&&F.Zv.c8(M.Tk.itagDenylist); if(M.state===4)c0(F,M),F.C&&Kc7(F.C,M.info,F.U);else if(F.policy.df&&M.Im()&&!M.isComplete()&&!c0(F,M)&&!M.J4())break a;M.J4()&&(ZWo(F,M),isNaN(F.j6)||(F.Zv.l4(F.j6),F.j6=NaN));F.policy.T1&&!M.isComplete()?UE(F.Zv):F.Zv.Va();var d=h0a(M,F.policy,F.Z);nja(F,M,d)}}}}}catch(G){q=F.eE?1:0,F.eE=!0,M=jg(q),q=Gj(G,q),F.Zv.handleError(q.errorCode,q.details,q.severity),M||F.Zv.uq()}},I)}; t$_=function(F,J){if(J.v_&&J.state>=2&&J.state!==3){var b=J.xhr.getResponseHeader("X-Response-Itag");if(b){F.logger.debug(function(){return"Applying streamer-selected format "+b}); var I=sAa(F.T,b),u=J.info.T;u&&(u-=I.IK(),I.T=!0,J.info.aI[0].C.T=!1,XdC(J,I.nu(u)),xa(F.Zv,F.videoTrack,I),SDo(F.videoTrack,I),F.Zv.L9(I.info.video.quality),(u=J.PZ())&&I.info.lastModified&&I.info.lastModified!==+u&&P0(F.videoTrack,J))}else J.v_=!1}}; ZWo=function(F,J){var b=J.info.aI[0].C,I=J.rB();if(Nv(b.gw.C)){var u=g.NL(J.Aw(),3);F.Zv.UQ("dldbrerr",{em:u||"none"})}u=J.info.aI[0].Mf;var w=sd(F.C,J.info.aI[0].hF,u);I==="net.badstatus"&&(F.W+=1);if(J.canRetry()&&n7(F.Zv)){if(!(J.info.gw.U>=F.policy.Xz&&F.U&&J.info.isDecorated()&&I==="net.badstatus"&&F.U.Ty(w,u))){u=(b.info.video&&b.gw.U>1||J.Jw===410||J.Jw===500||J.Jw===503)&&!(Rh(F.T.D).size>0)&&!Nv(b.gw.C);w=J.qp();var M=b.info.video?F.videoTrack:F.audioTrack;u&&(w.stun="1");F.Zv.handleError(I, w);F.iR()||(u&&(F.logger.debug(function(){return"Stunning format "+b.info.id}),cs(F.T,b)),P0(M,J),F.Zv.Va())}}else M=1,F.U&&J.info.isDecorated()&&I==="net.badstatus"&&F.U.Ty(w,u)&&(M=0),F.lR.isLive&&J.rB()==="net.badstatus"&&F.W<=F.policy.rZ*2?(L4a(F.lR),F.lR.SF||F.lR.isPremiere?Q5(F.Zv,0,{Ky:"badStatusWorkaround"}):F.lR.Z?Q5(F.Zv,F.lR.qf,{Ky:"badStatusWorkaround", C1:!0}):tu(F.Zv)):F.Zv.handleError(I,J.qp(),M)}; c0=function(F,J){if(F.policy.useUmp&&J.iR())return!1;try{var b=J.info.aI[0].C,I=b.info.video?F.videoTrack:F.audioTrack;if(F.lR.isManifestless&&I){F.W=0;I.V&&(J.iR(),J.isComplete()||J.Im(),I.V=!1);J.BL()&&F.Zv.zS.Zj(1,J.BL());var u=J.cY(),w=J.Vm();NQ(F.lR,u,w)}if(J.info.Kj()&&!Ym(J.info))for(var M=g.N(J.UY()),q=M.next();!q.done;q=M.next())l1C(I,q.value);for(F.Zv.getCurrentTime();I.T.length&&I.T[0].state===4;){var v=I.T.shift();Ndo(I,v);I.zj=v.Er()}I.T.length&&Ndo(I,I.T[0]);var a=!!Ra(I);a&&J instanceof T9&&(b.info.Cd()?JMC(F.timing):Fc_(F.timing));return a}catch(e){J=J.qp();J.origin="hrhs";a:{F=F.Zv;b=e;if(b instanceof Error){J.msg||(J.msg=""+b.message);J.name||(J.name=""+b.name);if(b instanceof g.hC&&b.args)for(I=g.N(Object.entries(b.args)),u=I.next();!u.done;u=I.next())w=g.N(u.value),u=w.next().value,w=w.next().value,J["arg"+u]=""+w;g.rQ(b);if(b.level==="WARNING"){F.wD.M$(J);break a}}F.handleError("fmt.unplayable",J,1)}return!1}}; HW3=function(F){var J=F.videoTrack.C.index;F.jB=new DQv({E2:F.policy.E2,lq:F.policy.Y.lq,x7:J.Yg(),oC:function(){return J.oC()}, pu:function(){return J.pu()}})}; hu=function(F,J,b,I){if(!(b.VJ()||b.Ne()||b.T||!Nx(b.gw,F.policy,F.Z)||b.info.YQ==="f"||F.policy.C)){if(I){I=F.D;var u=b.info;I=NB7(I,u.video?I.policy.tG:I.policy.Dc,u.LW)}else I=0;I=b.nu(I);F=oo(F,I);Ym(I)&&z1(J,F);b.T=!0}}; gC=function(F,J,b,I,u,w,M,q){g.R.call(this);var v=this;this.Zv=F;this.Zg=J;this.videoTrack=b;this.audioTrack=I;this.lR=u;this.N=w;this.isAudioOnly=M;this.V=q;this.U=QE;this.Gj=!1;this.logger=new g.Hl("sabr");this.Y=this.eE=this.Tj=!1;this.videoInfos=this.D=this.N.videoInfos;this.T=this.kQ=this.N.C;this.C=new Xx(J,w,function(a,e){v.Zv.UQ(a,e)}); this.Zg.A4||Ltm(this);this.isAudioOnly&&F$k(this,this.lR.C["0"])}; JPv=function(F,J){var b=[];J=g.N(J);for(var I=J.next();!I.done;I=J.next())b.push(g.H4(I.value,F.lR.MW));return b}; F$k=function(F,J,b){J!==F.Z&&(F.Z&&(F.Gj=!0),F.Z=J,F.m0(J,F.videoTrack,b))}; u_3=function(F,J){F.logger.debug("setConstraint: "+It(J));QO(F.Zg)&&(F.eE=J.reason==="m"||J.reason==="l"?!0:!1);J.reason==="m"?J.isLocked()&&bHJ(F,J.C):I7C(F,J)?my(F,J.U,J.C):F.videoInfos=F.D;F.U=J}; I7C=function(F,J){return F.Zg.gL&&J.reason==="b"||F.Zg.Q1?!1:F.Zg.HC?!0:J.reason==="l"||J.reason==="b"||J.reason==="o"}; wuk=function(F,J){return J.isLocked()&&F.C.U||F.U===void 0?!1:J.Hg(F.U)}; M8m=function(F,J){var b,I=(b=F.Z)==null?void 0:b.info.video.C;return F.Gj?!0:F.Z?J!==I?!0:!F.C.U||F.Zg.Tc&&F.C.C===F.Z.info.itag?!1:!0:!1}; bHJ=function(F,J){var b=F.C.C;if(b){F.videoInfos=F.D;var I=g.xL(F.videoInfos,function(u){return u.id===b}); I&&I.video.C===J?F.videoInfos=[I]:(I=F.videoInfos.map(function(u){return u.id}),F.Zv.UQ("sabrpf",{pfid:""+b, vfids:""+I.join(".")}),my(F,J,J),Dq(F.C,""))}else my(F,J,J)}; my=function(F,J,b){F.videoInfos=F.D;F.videoInfos=g.qN(F.videoInfos,function(I){return I.video.C>=J&&I.video.C<=b})}; Ltm=function(F){var J=yMo(F.C,F.V);J&&(F.T=[J])}; APC=function(F,J,b){if(F.Zg.A4){if(F.V){var I=g.qN(F.T,function(u){return u.id===F.V}); return y1(I,b).includes(J)}I=g.qN(F.T,function(u){var w;return!((w=u.j3)==null||!w.isDefault)}); if(I.length>0)return y1(I,b).includes(J)}return y1(F.T,b).includes(J)}; y1=function(F,J){return F.map(function(b){return lU(g.H4(b,J))})}; q7_=function(F){var J;if((J=F.U)==null?0:J.isLocked())return F.videoInfos;var b=Rh(F.C);J=g.qN(F.videoInfos,function(I){return I.LW>F.Zg.LW?!1:!b.has(I.id)}); mxz(F.C)&&(J=g.qN(J,function(I){return I.video.width<=854&&I.video.height<=480})); return J}; e1G=function(F,J,b,I){var u=F.lR,w=F.wD.getVideoData(),M=g.oH(w),q=F.cJ,v=Kv({PN:w.J(),wD:F.wD,yP:F.yP,Zg:F.Zg,JO:F.JO,nB:F.nB,qU:F.qU,Il:F.Il,XU:F.XU,isPrefetch:F.isPrefetch,Qg:F.Qg,sabrLicenseConstraint:w.sabrLicenseConstraint,Bk:F.Bk,iK:F.iK,F7:F.F7,Bq:F.Bq,BDG:!!q}),a=pv(w,F.yh,F.nextRequestPolicy,F.hD,F.d3,F.RsR,F.rJ);I&&b&&(I=a.FO?a.FO.map(function(f){return f.type}):[],b("ssap",{stmctxt:I.join("_"), unsntctxt:a.xr?a.xr.join("_"):""}));I=F.ma;var e=F.LU;if(e===void 0&&I===void 0){var K;e=v2G(u.MW,(K=F.H6)==null?void 0:K.video);var p;I=v2G(u.MW,(p=F.H6)==null?void 0:p.audio)}if(w.vD)var m=w.vD;w={yc:v,mI:F.mI,ma:I,LU:e,cJ:q,videoPlaybackUstreamerConfig:m,QD:a};F.Zc&&(w.Zc=F.Zc);if(M&&J){M=new Map;var y=g.N(u.fW);for(q=y.next();!q.done;q=y.next())q=q.value,(v=u.dD[$tv(u,q)]||"")?(M.has(v)||M.set(v,[]),M.get(v).push(q)):b&&b("ssap",{nocid4fmt:(q.itag||"")+"_"+(q.lmt||0)+"_"+(q.xtags||"")});u=new Map; y=g.N(F.Ym);for(q=y.next();!q.done;q=y.next())q=q.value,v=q.startTimeMs||0,a=void 0,K=(a=J)==null?void 0:Pl(a,v),a=K.clipId,K=K.ac,a?(u.has(a)||(p=M.get(a)||[],u.set(a,{clipId:a,Ym:[],Pe:p})),K!==0&&(q.startTimeMs=v-K),u.get(a).Ym.push(q)):b&&(a=void 0,b("ssap",{nocid4range:"1",fmt:((a=q.formatId)==null?void 0:a.itag)||"",st:v.toFixed(3),d:(q.durationMs||0).toFixed(3),timeline:iz(J)}));w.qG=[];u=g.N(u.entries());for(M=u.next();!M.done;M=u.next())M=g.N(M.value),M.next(),M=M.next().value,w.qG.push(M); if(F.Ym.length&&!w.qG.length){b&&b("ssap",{nobfrange:"1",br:a73(F.Ym),timeline:iz(J)});return}F.Iz&&(w.Iz=F.Iz);F.cH&&(w.cH=F.cH)}else w.Ym=F.Ym,w.Pe=u.fW,M&&((y=F.Ym)==null?void 0:y.length)>0&&!J&&b&&b("ssap",{bldmistlm:"1"});return w}; v2G=function(F,J){return J?[g.H4(J.info,F)]:[]}; a73=function(F){var J="";F=g.N(F);for(var b=F.next();!b.done;b=F.next()){b=b.value;var I=void 0,u=void 0,w=void 0;J+="fmt."+(((I=b.formatId)==null?void 0:I.itag)||"")+"_"+(((u=b.formatId)==null?void 0:u.lmt)||0)+"_"+(((w=b.formatId)==null?void 0:w.xtags)||"")+";st."+(b.startTimeMs||0).toFixed(3)+";d."+(b.durationMs||0).toFixed(3)+";"}return J}; z6=function(F,J,b){var I=this;this.requestType=F;this.gw=J;this.e3=b;this.U=null;this.Po={A3G:function(){var u;return(u=I.data)==null?void 0:u.isPrefetch}, d3:function(){var u;return(u=I.data)==null?void 0:u.d3}}}; taG=function(F,J,b){J=iU(F.gw,K$z(F,J,b),J);F.Gz()&&J.set("probe","1");return J}; K$z=function(F,J,b){F.Xx===void 0&&(F.Xx=F.gw.Xx(J,b));return F.Xx}; puz=function(F){var J,b;return((J=F.C)==null?void 0:(b=J.yc)==null?void 0:b.qs)||0}; g2z=function(F){var J,b;return!!((J=F.C)==null?0:(b=J.yc)==null?0:b.Bk)}; mn7=function(F){var J={},b=[],I=[];if(!F.data)return J;for(var u=0;u0;v--)b.push(q)}b.length!==M?J.error=!0:(w=b.slice(-w),b.length=u,S7z(J,b,w));break;case 1:S7z(J,s_,Yb);break;case 0:O_(J, J.C&7);b=DJ(J,16);u=DJ(J,16);(b^u)!==65535&&(J.error=!0);J.output.set(J.data.subarray(J.U,J.U+b),J.T);J.U+=b;J.T+=b;break;default:J.error=!0}F.T>F.output.length&&(F.output=new Uint8Array(F.T*2),F.T=0,F.U=0,F.Z=!1,F.C=0,F.register=0)}F.output.length!==F.T&&(F.output=F.output.subarray(0,F.T));return F.error?new Uint8Array(0):F.output}; S7z=function(F,J,b){J=kb(J);b=kb(b);for(var I=F.data,u=F.output,w=F.T,M=F.register,q=F.C,v=F.U;;){if(q<15){if(v>I.length){F.error=!0;break}M|=(I[v+1]<<8)+I[v]<>=7;a<0;)a=J[(M&1)-a],M>>=1;else M>>=a&15;q-=a&15;a>>=4;if(a<256)u[w++]=a;else if(F.register=M,F.C=q,F.U=v,a>256){M=CS[a];M+=DJ(F,$b[a]);v=rP7(F,b);q=Q1[v];q+=DJ(F,Xd[v]);if(sw4&&Mb.length&&(F.error=!0);F.register|=(b[I+1]<<8)+b[I]<=0)return O_(F,b&15),b>>4;for(O_(F,7);b<0;)b=J[DJ(F,1)-b];return b>>4}; DJ=function(F,J){for(;F.C=F.data.length)return F.error=!0,0;F.register|=F.data[F.U++]<>=J;F.C-=J;return b}; O_=function(F,J){F.C-=J;F.register>>=J}; kb=function(F){for(var J=[],b=g.N(F),I=b.next();!I.done;I=b.next())I=I.value,J[I]||(J[I]=0),J[I]++;var u=J[0]=0;b=[];var w=0;I=0;for(var M=1;M7&&(w+=J[M]);for(u=1;u>v&1;q=w<<4|M;if(M<=7)for(v=1<<7-M;v--;)I[v<>=7;M--;){I[v]||(I[v]=-J,J+=2);var a=u&1;u>>=1;v=a-I[v]}I[v]=q}}return I}; Y74=function(F){var J,b,I,u,w,M,q;return g.S(function(v){switch(v.C){case 1:if(!("DecompressionStream"in window))return v.return(g.o7(new g.R7(F)));J=new DecompressionStream("gzip");b=J.writable.getWriter();b.write(F);b.close();I=J.readable.getReader();u=new m_([]);case 2:return g.T(v,I.read(),5);case 5:w=v.U;M=w.value;if(q=w.done){v.gD(4);break}u.append(M);v.gD(2);break;case 4:return v.return(u.HS())}})}; hf=function(F,J){this.C=F;this.PV=J}; $n_=function(F){return q7(q7(wB(function(){return A8(F.PV,function(J){return F.vr(F.C,J)})}),function(){return F.Br(F.C)}),function(){return F.Fe(F.C)})}; Cb3=function(F,J){return $n_(new hf(F,J))}; cv=function(F){y8.call(this,"onesie");this.Wo=F;this.C={};this.T=!0;this.Z=null;this.queue=new T6(this);this.D={};this.W=FO3(function(J,b){var I=this;return function w(){var M,q,v,a,e,K,p,m,y,f,d,G,P,r,Q,D,t,n,uk,AJ;return pav(w,function(F7){switch(F7.C){case 1:g.f3(F7,2);I.Wo.rS();M=function(h){return function(L){throw{name:h,message:L};}}; q=J.HS();g.lk(F7,4,5);if(!b){F7.gD(7);break}return vCo(F7,q7(Xuz(I.Wo,q,I.iv),M("DecryptError")).wait(),8);case 8:v=F7.U;case 7:if(!I.Wo.enableCompression){F7.gD(9);break}return vCo(F7,q7(Cb3((K=v)!=null?K:q,I.Wo.J().Lv),M("DecompressError")).wait(),10);case 10:a=F7.U;case 9:e=RW((m=(p=a)!=null?p:v)!=null?m:q,LOz);case 5:g.Em(F7,0,2);if(f=(y=I.Wo.J())==null?void 0:y.PV)((d=v)==null?void 0:d.buffer)===f.exports.memory.buffer&&f.free(v.byteOffset),((G=a)==null?void 0:G.buffer)===f.exports.memory.buffer&& f.free(a.byteOffset);g.jz(F7,6);break;case 4:throw r=P=g.dY(F7),new E5("onesie.response.parse",{name:(n=r.name)!=null?n:"unknown",message:(uk=r.message)!=null?uk:"unknown",wasm:((Q=I.Wo.J())==null?0:Q.PV)?((D=I.Wo.J())==null?0:(t=D.PV)==null?0:t.xf)?"1js":"1":"0",enc:I.T,gz:I.Wo.enableCompression,webcrypto:!!Ns()});case 6:return Qw4(e),AJ=g.Ev(e.body),F7.return(AJ);case 2:g.Em(F7),g.jz(F7,0)}})}()})}; U_=function(F){var J=F.queue;J.C.length&&J.C[0].isEncrypted&&!J.U&&(J.C.length=0);J=g.N(Object.keys(F.C));for(var b=J.next();!b.done;b=J.next()){b=b.value;var I=F.C[b];if(!I.kt){var u=F.queue;u.C.push({videoId:I.videoId,formatId:b,isEncrypted:!1});u.U||SS(u)}}}; Dnv=function(F,J){var b=J.getLength(),I=!1;switch(F.Z){case 0:F.Wo.S("html5_future_onesie_ump_handler_on_player_response")?q7(A8(F.W(J,F.T),function(u){R1a(F.Wo,u)}),function(u){F.Wo.R6(u)}):F.rS(J,F.T).then(function(u){R1a(F.Wo,u)},function(u){F.Wo.R6(u)}); break;case 2:F.G$("ormk");J=J.HS();F.queue.decrypt(J);break;default:I=!0}F.Wo.BF&&F.Wo.UQ("ombup","id.11;pt."+F.Z+";len."+b+(I?";ignored.1":""));F.Z=null}; Qw4=function(F){if(F.cB!==1)throw new E5("onesie.response.badproxystatus",{st:F.cB,webcrypto:!!Ns(),textencoder:!!g.Qz.TextEncoder});if(F.Sa!==200)throw new E5("onesie.response.badstatus",{st:F.Sa});}; kB7=function(F){return new Promise(function(J){setTimeout(J,F)})}; OHm=function(F,J){var b=F.J();b=F.Ly&&b.S("html5_onesie_preload_use_content_owner");var I=F.NS,u=xj(J.rD.experiments,"debug_bandaid_hostname");if(u)J=V1(J,u);else if((b===void 0?0:b)&&(I==null?0:I.url)&&!J.U){var w=zK(new g.yJ(I.url));J=V1(J,w)}else J=(w=J.C.get(0))==null?void 0:w.location.clone();if(J&&F.videoId){w=Iw(F.videoId);F=[];if(w)for(w=g.N(w),b=w.next();!b.done;b=w.next())F.push(b.value.toString(16).padStart(2,"0"));J.set("id",F.join(""));return J}}; o2z=function(F,J,b){b=b===void 0?0:b;var I,u;return g.S(function(w){if(w.C==1)return I=[],I.push(J.load()),b>0&&I.push(kB7(b)),g.T(w,Promise.race(I),2);u=OHm(F,J);return w.return(u)})}; h1k=function(F,J,b,I){I=I===void 0?!1:I;F.set("cpn",J.clientPlaybackNonce);F.set("opr","1");var u=J.J();F.set("por","1");Ns()||F.set("onem","1");J.startSeconds>0&&F.set("osts",""+J.startSeconds);I||(u.S("html5_onesie_disable_partial_segments")&&F.set("oses","1"),J=u.S("html5_gapless_onesie_no_media_bytes")&&LC(J)&&J.Ly,b&&!J?(J=b.audio,F.set("pvi",b.video.join(",")),u.S("html5_onesie_disable_audio_bytes")||F.set("pai",J.join(",")),UD||F.set("osh","1")):(F.set("oad","0"),F.set("ovd","0"),F.set("oaad", "0"),F.set("oavd","0")))}; cP_=function(F,J,b,I,u){u=u===void 0?!1:u;var w="https://youtubei.googleapis.com/youtubei/"+J.wX.innertubeApiVersion+"/player",M=[{name:"Content-Type",value:"application/json"}];I&&M.push({name:"Authorization",value:"Bearer "+I});M.push({name:"User-Agent",value:g.Bk()});g.cT("EOM_VISITOR_DATA")?M.push({name:"X-Goog-EOM-Visitor-Id",value:g.cT("EOM_VISITOR_DATA")}):(b=b.visitorData||g.cT("VISITOR_DATA"))&&M.push({name:"X-Goog-Visitor-Id",value:b});(b=g.cT("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&M.push({name:"X-YouTube-Lava-Device-Context", value:b});(J=xj(J.experiments,"debug_sherlog_username"))&&M.push({name:"X-Youtube-Sherlog-Username",value:J});F=VK(JSON.stringify(F));return{url:w,vZ:M,postBody:F,mYQ:u,fX:u}}; xnz=function(F,J,b,I,u,w){var M=g.ux(F,HTa,F.fX?void 0:b.PV),q={encryptedClientKey:J.C.encryptedClientKey,CH:!0,rR:!0,RK:Un7(b,!!F.fX),Ef:b.experiments.pW("html5_use_jsonformatter_to_parse_player_response")};if(F.fX)q.ojQ=M;else{F=J.encrypt(M);var v;if(((v=b.PV)==null?void 0:v.exports.memory.buffer)===M.buffer&&F.byteOffset!==M.byteOffset){var a;(a=b.PV)==null||a.free(M.byteOffset)}var e;F=((e=b.PV)==null?void 0:e.yl(F))||F;M=q.wR=F;(0,g.jR)();M=UqJ(new cAz(J.C.T),M,J.iv);q.lQ=M;q.iv=J.iv}J=I.getVideoData(); b=Kv({PN:b,wD:I,yP:J.startSeconds*1E3});u={bz:q,yc:b,onesieUstreamerConfig:u,v5:w,QD:pv(J)};J.reloadPlaybackParams&&(u.reloadPlaybackParams=J.reloadPlaybackParams);return u}; n2m=function(F,J,b){var I,u,w;return g.S(function(M){if(M.C==1)return I=g.ux(J,HTa),g.T(M,W$z(b,I),2);if(M.C!=3)return u=M.U,g.T(M,dno(b,u),3);w=M.U;return M.return({wR:u,encryptedClientKey:b.C.encryptedClientKey,iv:b.iv,lQ:w,CH:!0,rR:!0,RK:Un7(F,!!J.fX),Ef:F.experiments.pW("html5_use_jsonformatter_to_parse_player_response")})})}; t87=function(F,J,b,I,u,w){var M,q,v,a;return g.S(function(e){if(e.C==1)return g.T(e,n2m(b,F,J),2);M=e.U;q=I.getVideoData();v=Kv({PN:b,wD:I,yP:q.startSeconds*1E3});a={bz:M,yc:v,onesieUstreamerConfig:u,v5:w,QD:pv(q)};q.reloadPlaybackParams&&(a.reloadPlaybackParams=q.reloadPlaybackParams);return e.return(a)})}; Un7=function(F,J){F=ib(F.schedule,!0);J=J||!!Ns()&&F>1572864;return"DecompressionStream"in window||!J}; nS=function(F,J){g.R.call(this);var b=this;this.wD=F;this.playerRequest=J;this.rD=this.wD.J();this.videoData=this.wD.getVideoData();this.logger=new g.Hl("onesie");this.BF=this.rD.hJ();this.IA=this.rD.T8;this.tI=new jS(this.IA.C,this.rD.Lv,yPz(this.rD));this.xhr=null;this.state=1;this.O1=new xn;this.DJ=!1;this.playerResponse="";this.XC=new Ue(this);this.cF=new cv(this);this.Yu=this.rD.S("html5_onesie_check_timeout");this.Sd=new g.ty(this.Fo,500,this);this.PJ=new g.ty(this.HZ,1E4,this);this.GN=new g.ty(function(){if(!b.isComplete()){var I= xb(b);b.R6(new E5("net.timeout",I))}},g.eB(this.rD.experiments,"html5_onesie_request_timeout_ms")); this.nK=new g.ty(this.OkE,2E3,this);this.L3="";this.vH=this.mC=!1;this.h8=this.wD.f$();this.IZ="";this.y_=this.S("html5_onesie_wait_for_media_availability");this.enableCompression=this.SI=this.jG=!1;this.Sf=[];this.Td=this.fF=-1;g.k(this.videoData,this);g.k(this,this.Sd);g.k(this,this.PJ);g.k(this,this.nK);g.k(this,this.tI);F=Z1();UD&&F&&!this.rD.S("html5_disable_onesie_media_bytes")&&(this.qk=new Map);this.iO=new Map;this.wV=new Map;this.tf=new Map;this.l6=new Map}; rC=function(F,J){var b;return(b=F.qk)==null?void 0:b.get(J)}; HH_=function(F,J,b){var I;return g.S(function(u){if(u.C==1)return F.G$("oprd_s"),ZH_(F)?g.T(u,E2z(F.tI,J,b),3):(I=F.tI.decrypt(J,b),u.gD(2));u.C!=2&&(I=u.U);F.G$("oprd_c");return u.return(I)})}; Xuz=function(F,J,b){F.G$("oprd_s");J=f7k(F.tI).encrypt(J,b);A8(J,function(){F.G$("oprd_c")}); return J}; L$C=function(F){return F.S("html5_onesie_host_probing")||F.BF?UD:!1}; R1a=function(F,J){F.G$("oprr");F.playerResponse=J;F.SI||(F.y_=!1);tf(F)}; tf=function(F){if(!F.playerResponse)return!1;if(F.jG)return!0;var J=F.videoData.S("html5_onesie_audio_only_playback")&&Fc(F.videoData);if(F.qk&&F.y_){if(!F.qk.has(F.L3))return!1;var b=F.qk.get(F.L3),I;if(I=b){I=!1;for(var u=g.N(b.Fq.keys()),w=u.next();!w.done;w=u.next())if(w=b.Fq.get(w.value))for(var M=g.N(w.oD),q=M.next();!q.done;q=M.next())q.value.YI>0&&(w.Cd?I=!0:J=!0);I=!(J&&I)}if(I)return!1}F.G$("ofr");F.O1.resolve(F.playerResponse);if(!F.Yu){var v;(v=F.GN)==null||v.start();F.PJ.start()}return F.jG= !0}; Jia=function(F){if(F.qk&&!F.S("html5_onesie_media_capabilities")){F.G$("ogsf_s");var J=GK3(F.wD.getVideoData(),function(I,u){F.UQ(I,u)}),b=FZa(F.wD); J.video=ika(b,J.video);F.G$("ogsf_c");if(J.video.length)return J;F.UQ("ombspf","l."+b.U+";u."+b.C+";o."+b.T+";r."+b.reason)}}; ZH_=function(F,J){return F.S("html5_onesie_sync_request_encryption")||(J==null?0:J.fX)||g.U7(F.rD)&&F.S("html5_embed_onesie_use_sync_encryption")?!1:!!Ns()}; xb=function(F){if(!F.uC)return{};var J=F.uC.BQ(),b;J.d=(b=F.uC.fW)==null?void 0:b.G7();J.shost=F.ZS;J.ty="o";return J}; bC4=function(F,J){var b,I;(I=(F=(b=F.qk)==null?void 0:b.get(J))==null)||(J=F.T?!1:F.T=!0,I=!J);return!I}; IRa=function(F,J,b,I,u,w,M,q,v,a,e){g.R.call(this);var K=this;this.wD=F;this.Zv=J;this.policy=b;this.audioTrack=I;this.videoTrack=u;this.lR=w;this.Zy=M;this.Jz=q;this.T=v;this.timing=a;this.N=e;this.C=[];this.V={};this.zj=this.KW=!1;this.hD=new Set;this.D=this.dD=this.Tj=this.XU=0;this.Z=null;this.Gj={Ym:[],mI:[]};this.kQ={Ym:[],mI:[]};this.W=null;this.qf=[];this.Po={jv_:function(){return K.C}, uUf:function(){return K.V}, q0j:function(){K.C.length=0}, lqW:function(){return K.hD}, fqQ:function(){return K.Tj}, GHW:function(p){K.Tj=p}, Wo_:function(p){K.D=p}, G2:function(p){K.W=p}}; this.videoData=this.wD.getVideoData();this.policy.pF&&(this.fW=new D6(this.Zv,this.policy,this.Zy),g.k(this,this.fW))}; MEm=function(F,J){J=J===void 0?!1:J;if(uRY(F,J)){F.policy.V&&F.Zv.UQ("sabrcrq",{create:1});var b=new z6(0,F.lR.Y,F);F.policy.jZ>0&&F.D++;J=wCJ(F,b,J);F.C.push(J);var I;(I=F.fW)==null||kFm(I,F.lR.Y)}}; aRo=function(F,J){var b=AiY(F);if(F.policy.Mh){var I=F.Gj;var u=F.kQ}else I=ZJ(F,F.audioTrack),u=ZJ(F,F.videoTrack);var w=[].concat(g.W(I.Ym),g.W(u.Ym));F.policy.Um&&F.W&&w.push.apply(w,g.W(F.qf));var M=[].concat(g.W(I.mI),g.W(u.mI)),q=F.Zv.To(),v,a,e=F.wD,K=F.lR,p=F.U,m=F.hD,y=F.policy,f=F.Zv.JO,d=xQm(F.Zv)*1E3,G=(v=F.WN)==null?void 0:v.qU;v=(a=F.WN)==null?void 0:a.Il;var P;a=Number((P=F.T.Z)==null?void 0:P.info.itag)||0;var r;P=Number((r=F.T.W)==null?void 0:r.info.itag)||0;J={wD:e,lR:K,Ym:w,mI:M, yP:b,nextRequestPolicy:p,hD:m,Zg:y,JO:f,nB:d,qU:G,Il:v,XU:F.XU,isPrefetch:J||F.Zv.isSuspended,Iz:a,cH:P,yh:q,rJ:F.wD.oK()};b=F.Zv.f1();w=Iw(b);b&&(J.d3=w);if(b=F.wD.bK())J.Bk=b*1E3;var Q;b=F.T;w=b.Tj;if((b.Zg.U&&b.Zg.vP||((Q=b.Zg)==null?0:Q.C&&Q.Uz))&&!w)for(Q=g.N(b.T),M=Q.next();!M.done;M=Q.next())if(M.value.j3){w=!0;break}Q=QO(b.Zg)&&!w?[]:JPv(b,b.T);J.ma=Q;Q=F.T;QO(Q.Zg)&&!Q.eE?Q=[]:(b=q7_(Q),b.length===0&&(b=Q.D),Q=JPv(Q,b));J.LU=Q;J.cJ=F.policy.Um&&F.W?[F.W]:void 0;F.policy.jh&&(J.F7=q9a(F.Zv, F.audioTrack),J.Bq=q9a(F.Zv,F.videoTrack));if(F.policy.D){I=v$7(F,I.Ym,u.Ym);var D;if(u=(D=F.Z)==null?void 0:D.RN(I))J.Zc=u}F.policy.qf&&F.C.length>0&&F.C[0].DA()&&(J.RsR=F.C[0].Xw());return J}; AiY=function(F){var J,b=F.policy.W&&((J=F.Zv)==null?void 0:J.RD());J=F.Zv.getCurrentTime()||0;J=eCz(F,J);var I=F.Zv.Xq()||0;J+=I;I=EW(F.videoData)||g.dS(F.videoData);var u=0;b?(I&&(u=Number.MAX_SAFE_INTEGER),F.videoData.fW&&(u=Math.ceil(F.videoData.qf*1E3))):u=Math.ceil(J*1E3);return Math.min(Number.MAX_SAFE_INTEGER,u)}; eCz=function(F,J){if(F.Zv.isSeeking())return J;var b=F.wD.Qa();if(!b)return J;b=b.Z4();if(b.length===0||Mt(b,J))return J;if(!sE(F.videoTrack,J)&&!sE(F.audioTrack,J))return F.Zv.UQ("sundrn",{b:0,lt:J}),J;for(var I=J,u=Infinity,w=0;wJ)){var M=J-b.end(w);M=20)?(F.Zv.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),J):I}; v$7=function(F,J,b){var I=F.Zv.getCurrentTime()||0;J=KZm(F,J,I);F=KZm(F,b,I);return Math.min(J,F)}; KZm=function(F,J,b){F=F.Zv.Xq()||0;J=g.N(J);for(var I=J.next();!I.done;I=J.next()){var u=I.value;I=u.startTimeMs?u.startTimeMs/1E3-F:0;u=I+(u.durationMs?u.durationMs/1E3:0);if(I<=b&&b<=u)return u}return b}; uRY=function(F,J){if(F.policy.jZ>0){var b=Math.floor((0,g.jR)()/1E4);if(b===F.dD){if(F.D>=F.policy.jZ){if(F.D===F.policy.jZ){var I={reason:"toomanyrequests"};I.limit=F.D;F.Zv.handleError("player.exception",I);F.D+=1}return!1}}else F.dD=b,F.D=0}J=!J&&!zB(F.Zy)&&!F.policy.n7;if(F.Zv.isSuspended&&(F.Zv.M2||J))return!1;if(F.eE&&(0,g.jR)()0&&(!F.policy.qf||F.C.length!==1||!F.C[0].DA()))return!1;var u;if((u=F.lR.Y)==null||!Nx(u,F.policy,F.V,F.Zv.NU()))return!1; u=F.policy.sP&&F.policy.U&&F.Zv.IH();if(T1(F.audioTrack)&&T1(F.videoTrack)&&!u)return!1;if(F.policy.U&&F.Y&&!F.Zv.IH())return F.Ck("ssap",{pauseontlm:1}),!1;if(Hv(F,F.audioTrack)&&Hv(F,F.videoTrack))return F.policy.T&&F.Zv.UQ("sabrHeap",{a:""+d9(F.audioTrack),v:""+d9(F.videoTrack)}),!1;if(u=F.policy.D)u=!1,F.N.U===2?u=!0:F.N.U===3&&(AiY(F),F.Zv.Xq(),J=v$7(F,l2(F.audioTrack,F.Zv.isSeeking()).Ym,l2(F.videoTrack,F.Zv.isSeeking()).Ym),b=F.N,J>=b.T?(b.UQ("sdai",{haltrq:J,est:b.T}),J=!0):J=!1,J&&(u=!0)), u&&F.policy.V&&F.Zv.UQ("sabrcrq",{waitad:1});if(u)return!1;F.policy.Mh&&(F.Gj=ZJ(F,F.audioTrack),F.kQ=ZJ(F,F.videoTrack));if(!F.U)return F.policy.V&&F.Zv.UQ("sabrcrq",{nopolicy:1}),!0;if(F.wD.bK())return F.policy.V&&F.Zv.UQ("sabrcrq",{utc:1}),!0;if(F.T.Y)return F.policy.V&&F.Zv.UQ("sabrcrq",{audio:1}),!0;if(!F.U.targetAudioReadaheadMs||!F.U.targetVideoReadaheadMs)return F.policy.V&&F.Zv.UQ("sabrcrq",{noreadahead:1}),!0;if(F.policy.W&&F.Zv.RD())return F.policy.V&&F.Zv.UQ("sabrcrq",{seekToHead:1}), !0;u=Math.min(Y7(F.Zv,F.audioTrack)*1E3,F.U.targetAudioReadaheadMs);J=Math.min(Y7(F.Zv,F.videoTrack)*1E3,F.U.targetVideoReadaheadMs);var w=Math.min(u,J);b=j3(F.audioTrack,!0)*1E3;var M=j3(F.videoTrack,!0)*1E3;if(F.policy.Mh){var q=F.wD.getCurrentTime()*1E3;var v=pC_(F.Gj.Ym,q);q=pC_(F.kQ.Ym,q)}else v=b,q=M;var a=vJ||I>=0&&u.I5>I+1)break;b=Math.max(b,u.startTimeMs+u.durationMs);I=Math.max(I,u.Tn)}return Math.max(0,b-J)}; wCJ=function(F,J,b){var I={Zy:F.Zy,r_:function(v,a){F.wD.h7(v,a)}, Kj:F.policy.v0,QY:F.policy.T};F.Zy.U.V&&(I.nD=(F.videoTrack.C.info.LW||0)+(F.audioTrack.C.info.LW||0));F.policy.G8&&(I.x7=F.audioTrack.C.index.Yg(),I.Kj=!1);var u=K$z(J,F.policy,F.V)?2:1;u!==F.Tj&&(F.Tj=u,yi3(F));b=aRo(F,b);if((F.policy.U||F.policy.qf)&&F.policy.T&&b.hD){for(var w=u="",M=g.N(b.hD),q=M.next();!q.done;q=M.next())q=q.value,F.videoData.sabrContextUpdates.has(q)?u+="_"+q:w+="_"+q;F.Zv.UQ("sabrbldrqs",{ctxts:u,misctxts:w})}J.setData(b,F.Zv.IH(),F.policy,F.V)||!F.policy.U&&!F.policy.qf|| F.Zv.handleError("player.exception",{reason:"buildsabrrequestdatafailed"},1);I=new jI(F.policy,J,F.lR,F.V,F,I,F.Zv.f$(),F.policy.Lv?F.Zv.IH():void 0);GL(F.timing);F.policy.V&&F.Zv.UQ("sabrcrq",{rn:I.hd(),probe:J.Gz()});return I}; JX=function(F,J){if(J.iR()||F.iR())F.policy.Ga||(F.policy.W?FJ(F.Zv):F.Zv.Va());else{if(F.policy.T&&J.isComplete()&&J instanceof jI){var b=F.Zv,I=b.UQ,u,w,M=Object.assign(J.uC.BQ(),{rst:J.state,strm:J.xhr.kx(),d:(u=J.uC.fW)==null?void 0:u.G7(),cncl:J.xhr&&J.lX.Z?1:0,rqb:J.KE,cwt:J.fK,swt:(w=J.TY)==null?void 0:w.SQ});u=Object.assign(mn7(J.info),M);I.call(b,"rqs",u)}if(J.isComplete()&&J.Gz()&&J instanceof jI)F.policy.MI?J.wi()?(J.dispose(),F.C.length===0?F.Zv.Va():(F=F.C[0],F instanceof jI&&F.r$()&& F.DD(!1))):J.J4()&&F.Zv.handleError(J.rB(),J.qp()):(J.dispose(),F.Zv.Va());else{if(J.Cs())J instanceof jI&&qLm(F.timing,J),yi3(F),iCY(F);else if(J.J4())b=F.wD.bK(),J instanceof jI&&g2z(J.info)&&b&&F.Zv.l4(b),J instanceof nS?F.C.pop():(b=1,J.canRetry()&&n7(F.Zv)&&(zCm(F,J),b=0),F.Zv.handleError(J.rB(),J.qp(),b));else{if(F.Zv.isSuspended&&!J.isComplete())return;iCY(F)}J.iR()||J instanceof nS||(J.isComplete()?b=h0a(J,F.policy,F.V):(b=ojm(J,F.policy,F.V),b===1&&(F.KW=!0)),b!==0&&(I=new z6(1,J.info.gw), I.Xx=b===2,wCJ(F,I)));F.policy.T1&&!J.isComplete()?UE(F.Zv):F.Zv.Va()}}}; iCY=function(F){for(;F.C.length&&F.C[0].zR(F.B1());){var J=F.C.shift();N7o(F,J);if(F.policy.D){var b=F;if(!b.policy.oI&&J.zR(b.B1())){var I=J.hd();if(b.oI!==I){var u=J.bO();J=u.fF;var w=u.Td;u=u.isDecorated;!b.Z||w<0||(b.oI=I,I=sd(b.N,w/1E3,J),w=b.Zv.Xq()||0,TL(b.N,J,I-w,u,b.Z))}}}}F.C.length&&N7o(F,F.C[0])}; N7o=function(F,J){var b=new Set(J.nP(F.B1()));b=g.N(b);for(var I=b.next();!I.done;I=b.next()){var u=I.value;if(!(I=!(J instanceof nS))){I=F.T;var w=I.lR.MW,M=y1(I.videoInfos,w);I=APC(I,u,w)||M.includes(u)}if(I&&(I=J.Mp(u,F.B1()),w=F.policy.Um&&Zf(I[0].C.info),(!(!w&&F.policy.yT&&I.length>0&&(I[0].C.info.Cd()?j3(F.audioTrack):j3(F.videoTrack))>3)||J.isComplete())&&J.Im(u,F.B1()))){u=J.UY(u,F.B1());if(F.policy.U){M=I[0].C.info;var q=F.Zv.IH();if(q&&M){var v=J.f2();q.api.S("html5_ssap_set_format_info_on_video_data")&& v===B0(q)&&(M.Cd()?q.playback.getVideoData().Z=M:q.playback.getVideoData().U=M);if(q=bm(q.timeline,v))if(q=q[0].getVideoData())M.Cd()?q.Z=M:q.U=M}}u=g.N(u);for(M=u.next();!M.done;M=u.next())if(M=M.value,F.policy.T&&J instanceof nS&&F.Zv.UQ("omblss",{s:M.info.uX()}),w)q=F,q.videoData.MW()&&q.W&&lU(q.W)===lU(g.H4(M.info.C.info,q.lR.MW))&&q.wD.publish("sabrCaptionsDataLoaded",M,q.T2.bind(q));else{q=M.info.C.info.Cd();var a=M.info.C;if(q){v=void 0;var e=F.T,K=(v=J.eJ(F.B1()))==null?void 0:v.token;e.Y= !1;a!==e.W&&(e.W=a,e.m0(a,e.audioTrack,K))}else v=void 0,F$k(F.T,a,(v=J.eJ(F.B1()))==null?void 0:v.token);v=q?F.audioTrack:F.videoTrack;J instanceof nS&&(v.V=!1,J instanceof nS&&(q?JMC(F.timing):Fc_(F.timing)));try{Nd(v,I,M)}catch(p){M=Gj(p),F.Zv.handleError(M.errorCode,M.details,M.severity),v.uq(),F.J3(!1,"pushSlice"),FJ(F.Zv)}}}}}; zCm=function(F,J){F.policy.qf?F.C.splice(F.C.indexOf(J)).forEach(function(b){b.dispose()}):(F.C.pop(),J==null||J.dispose())}; lRG=function(F,J,b){for(var I=[],u=0;u0)for(var J=g.N(F.videoData.sabrContextUpdates.keys()),b=J.next();!b.done;b=J.next()){b=b.value;var I=void 0;((I=F.videoData.sabrContextUpdates.get(b))==null?0:I.sendByDefault)&&F.hD.add(b)}if(F.policy.qf&&F.C.length)for(J=g.N(F.C),b=J.next();!b.done;b=J.next())(b=b.value.Xw())&&b.type&&b.sendByDefault&&F.hD.add(b.type)}; dFz=function(F){F.policy.Se&&(F.WN=void 0,F.XU=0)}; E$v=function(F,J){if(J.J4()||J.iR()){var b=F.Zv,I=b.UQ,u=J.state;F=F.B1();var w,M;if((J=(w=J.qk)==null?void 0:w.get(F))==null)J=void 0;else{w=0;F=J.nP();for(var q=0;q=F.policy.GW,M=!1;if(w){var q=0;!isNaN(J)&&J>F.D&&(q=J-F.D,F.D=J);q/u=F.policy.DY&&!F.T;if(!w&&!b&&B7_(F,J))return NaN;b&&(F.T=!0);a:{I=M;b=(0,g.jR)()/1E3-(F.a4.X3()||0)-F.V.C-F.policy.M0;w=F.U.startTime;b=w+b;if(I){if(isNaN(J)){Im(F,NaN,"n",J);w=NaN;break a}I=J-F.policy.qh;I=w.hF&&I<=w.H1){I=!0;break a}I=!1}I=!I}if(I)return F.UQ("ostmf",{ct:F.getCurrentTime(),a:J.C.info.Cd()}),!1;(F=F.eE)!=null&&(F.Fq.get(b).kN=!0);return!0}; Cr_=function(F){if(!F.lR.MW)return!0;var J=F.wD.getVideoData();if(J.S("html5_skip_live_preroll_onesie")&&F.wD.wK()||J.S("html5_skip_live_preroll_onesie_post_live")&&F.wD.wK()&&(J.SF||J.isPremiere))return F.UQ("ombpa",{}),!1;var b,I;if(F.policy.Z1&&!!((b=F.Tj)==null?0:(I=b.O9)==null?0:I.B0G)!==F.lR.SF)return F.UQ("ombplmm",{}),!1;b=J.Kk||J.liveUtcStartSeconds||J.Uz;if(F.lR.SF&&b)return F.UQ("ombplst",{}),!1;if(F.lR.N)return F.UQ("ombab",{}),!1;b=Date.now();return lI(F.lR)&&!isNaN(F.Gj)&&b-F.Gj>F.policy.m_* 1E3?(F.UQ("ombttl",{}),!1):F.lR.De&&F.lR.Z||!F.policy.e9&&F.lR.isPremiere||!(ei(J)===0||F.policy.C&&J.S("html5_enable_onesie_media_for_sabr_proxima_optin"))||J.S("html5_disable_onesie_media_for_mosaic")&&oU(J)||J.S("html5_disable_onesie_media_for_ssdai")&&J.isDaiEnabled()&&J.enableServerStitchedDai?!1:!0}; XCo=function(F,J){var b=J.C,I=F.lR.MW;if(Cr_(F))if(F.eE&&F.eE.Fq.has(lU(g.H4(b.info,I)))){if(I=lU(g.H4(b.info,I)),$FC(F,J)){var u=new sL(F.eE.Mp(I)),w=function(M){try{if(M.J4())F.handleError(M.rB(),M.qp()),P0(J,M),$m(M.info)&&hu(F.D,J,b,!0),F.Va();else if(c0(F.D,M)){var q;(q=F.Z)==null||Kc7(q,M.info,F.Y);F.Va()}}catch(v){M=Gj(v),F.handleError(M.errorCode,M.details,M.severity),F.uq()}}; b.T=!0;Ym(u)&&(z1(J,new T9(F.policy,I,u,F.eE,w)),GL(F.timing))}}else F.UQ("ombfmt",{})}; MS=function(F,J){J=J||F.videoTrack&&F.videoTrack.U&&F.videoTrack.U.startTime||F.getCurrentTime();var b=xa,I=F.videoTrack,u=F.C;J=u.nextVideo&&u.nextVideo.index.Ea(J)||0;u.kQ!==J&&(u.fW={},u.kQ=J,oh(u,u.C));J=!u.C.isLocked()&&u.N>-1&&(0,g.jR)()-u.NJ.C&&J.reason==="b";I||u||b?(F.wD.M$({reattachOnConstraint:I?"u":u?"drm":"perf",lo:J.U,up:J.C}),F.policy.Tc||(F.U.C.U=!1)):(F.policy.Tc&&(F.U.C.U=!1),FJ(F))}}else if(!WcY(F.C,J)&&F.videoTrack){F.logger.debug(function(){return"Setting constraint: r="+J.reason+" u="+J.C}); b=F.C.C;ciz(F,Emk(F.C,J));MS(F);I=J.isLocked()&&J.reason==="m"&&F.C.eE;u=F.policy.B9&&J.reason==="l"&&r9(F.videoTrack);b=b.C>J.C&&J.reason==="b";var w=F.C.Jz&&!Qh();I||u||b||w?F.wD.M$({reattachOnConstraint:I?"u":u?"drm":w?"codec":"perf"}):FJ(F)}}; xFk=function(F,J,b){if((!F.HN||kn(F.HN)&&!F.policy.mq)&&!F.wq.isSeeking()&&(F.policy.C||r9(J)&&J.C.VJ()&&F.C.Tj)){var I=F.getCurrentTime()+loz(F.N,J,b);F.logger.debug(function(){return"Clearing back to "+I.toFixed(3)}); jZz(J,I)}}; ciz=function(F,J){J&&(F.logger.debug(function(){return"Logging new format: "+b1(J.video.info)}),n$v(F.wD,new Cv(J.video,J.reason))); if(F.C.KW){var b=PUJ(F.C,"a");F.wD.TV(new Cv(b.audio,b.reason))}}; FJ=function(F){g.Z_(F.Q2)}; UE=function(F){F.policy.T1&&F.policy.df&&Math.min(Eja(F.videoTrack),Eja(F.audioTrack))*1E3>F.policy.Ie?g.Z_(F.Um):F.Va()}; tEk=function(F,J){var b=(0,g.jR)()-J,I=j3(F.audioTrack,!0)*1E3,u=j3(F.videoTrack,!0)*1E3;F.logger.debug(function(){return"Appends paused for "+b}); if(F.policy.T&&(F.UQ("apdpe",{dur:b.toFixed(),abuf:I.toFixed(),vbuf:u.toFixed()}),Xo(F.policy))){var w=Ee(F.N);F.UQ("sdps",{ct:J,ah:I.toFixed(),vh:u.toFixed(),mr:jd(F.N,F.Pl,w),bw:w.toFixed(),js:F.isSeeking(),re:+F.Pl,ps:(F.policy.P$||"").toString(),rn:(F.policy.uh||"").toString()})}}; ZCm=function(F){if(F.policy.U&&Ya(F.videoTrack)&&Ya(F.audioTrack))return"ssap";if(rgz(F.videoTrack))return F.logger.debug("Pausing appends for server-selectable format"),"ssf";if(F.policy.KW&&$a(F.videoTrack)&&$a(F.audioTrack))return"updateEnd";if(T1(F.audioTrack)||T1(F.videoTrack)&&F.videoTrack.C.info.YQ!=="f")return"";if(F.wq.isSeeking()){var J=F.N;var b=F.videoTrack;var I=F.audioTrack;if(J.policy.C){var u=J.policy.eB;Xo(J.policy)&&(u=jd(J,!1,Ee(J)));J=u;b=j3(I,!0)>=J&&j3(b,!0)>=J}else b.T.length|| I.T.length?(u=b.C.info.LW+I.C.info.LW,u=10*(1-Ee(J)/u),J=Math.max(u,J.policy.eB),b=j3(I,!0)>=J&&j3(b,!0)>=J):b=!0;if(!b)return"abr";b=F.videoTrack;if(b.T.length>0&&b.Z.U.length===1&&Ft7(b.Z).info.W360);I=Xo(F.policy)&&F.policy.Sl;if(!F.Pl||!I&&b)return"";b=F.policy.T8;Xo(F.policy)&&(b=jd(F.N,F.Pl,Ee(F.N)));b=V$z(F.videoTrack, F.getCurrentTime(),b)||V$z(F.audioTrack,F.getCurrentTime(),b);return Xo(F.policy)?b?"mbnm":"":(F.videoTrack.T.length>0||F.audioTrack.T.length>0||OE(F.D,F.videoTrack,F.audioTrack)||OE(F.D,F.audioTrack,F.videoTrack))&&b?"nord":""}; HCC=function(F){if(F.V){var J=F.V.Va(F.audioTrack,qt(F.HN.U.N0()));J&&F.wD.seekTo(J,{sL:!0,Ky:"pollSubsegmentReadahead",C1:!0})}}; wEv=function(F,J,b){if(F.policy.KW&&$a(J))return!1;if(b.Nt())return!0;if(!b.eq())return!1;var I=Ra(J);if(!I||I.info.type===6)return!1;var u=F.policy.Fr;if(u&&!I.info.Z){var w=I.info.hF-F.getCurrentTime();if(I.info.Ww)return F.policy.C&&Jw4(F,J),F.policy.s8&&sxY(J.Z,w,!1),!1;bYY(F,J);var q;F.policy.zU&&b===((q=F.HN)==null?void 0:q.C)&&F.oI&&(b.WH()===0?(F.oI=!1,F.policy.zU=!1):F.nW=b.WH());if(!Iho(F,b,I,J))return!1;F.policy.KW&&I.info.aQ()?(F.wD.J().hJ()&&F.UQ("eosl",{ls:I.info.uX()}), I.isLocked=!0):(J.IE(I),Voo(F.C,I.info),F.logger.debug(function(){return"Appended "+I.info.uX()+", buffered: "+u1(b.N0())})); u&&ucG(F,I.info.C.d2);return!0}; Jw4=function(F,J){J===F.videoTrack?F.qf=F.qf||(0,g.jR)():F.WN=F.WN||(0,g.jR)()}; bYY=function(F,J){J===F.videoTrack?F.qf=0:F.WN=0}; Iho=function(F,J,b,I){var u=F.policy.bR?(0,g.jR)():0,w=b.D&&b.info.C.C||void 0,M=b.C;b.D&&(M=Mi4(F,b,M)||M);var q=M.HS();M=F.policy.bR?(0,g.jR)():0;J=Awz(F,J,q,b.info,w);(I=I.N)!=null&&(w=b.info,u=M-u,M=(0,g.jR)()-M,!I.U||OFG(I.U,w)&&I.U.Mf===w.Mf||I.flush(),I.Z+=u,I.T+=M,u=1,!I.U&&w.U&&(u=2),t9(I,u,J),M=Math.ceil(w.U/1024),u===2&&I.C.add(M),I.C.add(Math.ceil((w.U+w.T)/1024)-M),I.U=w);F.kQ=0;if(J===0)return F.dD&&(F.logger.debug("Retry succeed, back to normal append logic."),F.dD=!1,F.cN=!1),F.bR= 0,!0;if(J===2||J===5)return qWz(F,"checked",J,b.info),!1;if(J===1){if(!F.dD)return F.logger.debug("QuotaExceeded, retrying."),F.dD=!0,!1;if(!F.cN)return F.cN=!0,F.wD.seekTo(F.getCurrentTime(),{Ky:"quotaExceeded",C1:!0}),!1;b.info.v1()?(u=F.policy,u.dD=Math.floor(u.dD*.8),u.Gj=Math.floor(u.Gj*.8)):(u=F.policy,u.cN=Math.floor(u.cN*.8),u.Gj=Math.floor(u.Gj*.8));F.policy.C?Q8(F.U.C,b.info.C,!1):cs(F.C,b.info.C)}F.wD.M$({reattachOnAppend:J});return!1}; Mi4=function(F,J,b){var I;if(I=F.policy.Uc&&F.HN&&!F.HN.Y&&!F.wD.Sq())J=J.info.C.info,I=J.Xb()&&O5(J)&&J.video&&J.video.width<3840&&J.video.width>J.video.height;if(I&&(F.HN.Y=!0,Tj('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return b=Hoo(b),F.policy.T&&F.UQ("sp4k",{s:!!b}),b}; qWz=function(F,J,b,I){var u="fmt.unplayable",w=1;b===5||b===3?(u="fmt.unparseable",F.policy.C?!I.C.info.video||Rh(F.U.C).size>0||Q8(F.U.C,I.C,!1):!I.C.info.video||Rh(F.C.D).size>0||cs(F.C,I.C)):b===2&&(F.bR<15?(F.bR++,u="html5.invalidstate",w=0):u="fmt.unplayable");I=rG(I);var M;I.mrs=(M=F.HN)==null?void 0:ce(M);I.origin=J;I.reason=b;F.handleError(u,I,w)}; mQo=function(F,J,b,I,u){var w=F.lR;var M=F.policy.C,q=!1,v=-1,a;for(a in w.C){var e=Zf(w.C[a].info)||w.C[a].info.v1();if(I===e)if(e=w.C[a].index,e.vF(J.Mf)){q=e;var K=J,p=q.QB(K.Mf);p&&p.startTime!==K.startTime?(q.segments=[],q.S9(K),q=!0):q=!1;q?v=J.Mf:!J.pending&&M&&(K=e.getDuration(J.Mf),K!==J.duration&&(w.publish("clienttemp","mfldurUpdate",{itag:w.C[a].info.itag,seg:J.Mf,od:K,nd:J.duration},!1),e.S9(J),q=!0))}else e.S9(J),q=!0}v>=0&&(M={},w.publish("clienttemp","resetMflIndex",(M[I?"v":"a"]= v,M),!1));w=q;XX7(F.wq,J,I,w);F.Z.Io(J,b,I,u);J.Mf===F.lR.De&&w&&mt(F.lR)&&J.startTime>mt(F.lR)&&(F.lR.qf=J.startTime+(isNaN(F.timestampOffset)?0:F.timestampOffset),F.wq.isSeeking()&&F.wq.C 5)return F.kQ=0,F.wD.M$({initSegStuck:1,as:I.info.uX()}),!0}else F.kQ=0,F.xm=I;F.policy.A2&&(b.abort(),(M=J.N)!=null&&(t9(M,4),M.flush()));u=Awz(F,b,w,v,u);var a;(a=J.N)==null||CUC(a,u,v);if(u!==0)return vsz(F,u,I),!0;I.info.v1()?uzk(F.timing):w63(F.timing);F.logger.debug(function(){return"Appended init for "+I.info.C.info.id}); ucG(F,I.info.C.d2);return b.x0()}; LZ_=function(F,J,b){if(J.yO()==null){F=i2(F);if(!(J=!F||F.C!==b.info.C)){a:if(F=F.V,b=b.info.V,F.length!==b.length)b=!1;else{for(J=0;J1)return 6;v.fW=new g.ty(function(){var e=Ra(v);F.iR()||e==null||!e.isLocked?F.wD.J().hJ()&&F.UQ("eosl",{delayA:e==null?void 0:e.info.uX()}):ahC(v)?(F.wD.J().hJ()&&F.UQ("eosl",{dunlock:e==null?void 0:e.info.uX()}),eL7(F, v===F.audioTrack)):(F.UQ("nue",{ls:e.info.uX()}),e.info.Y+=1,F.HN&&F.jc())},1E4,F); F.wD.J().hJ()&&F.UQ("eosl",{delayS:I.uX()});v.fW.start()}if(F.policy.uH&&(I==null?0:I.aQ())){var a;if((a=v.kQ)==null?0:a.isActive())g.HQ(v.kQ),F.UQ("sbac",{as:I.uX()});v.kQ=new g.ty(function(){F.UQ("sbum5s",{as:I.uX()})},5E3,F); v.kQ.start()}F.policy.KI&&(I==null?void 0:I.C)instanceof Xz&&I.aQ()&&F.UQ("poseos",{itag:I.C.info.itag,seg:I.Mf,lseg:I.C.index.oC(),es:I.C.index.T});J.appendBuffer(b,I,u)}catch(e){if(e instanceof DOMException){if(e.code===11)return 2;if(e.code===12)return 5;if(e.code===22||e.message.indexOf("Not enough storage")===0)return J=Object.assign({name:"QuotaExceededError",buffered:u1(J.N0()).replace(/,/g,"_"),vheap:d9(F.videoTrack),aheap:d9(F.audioTrack),message:g.NL(e.message,3),track:F.HN?J===F.HN.U?"v": "a":"u"},S9_()),F.handleError("player.exception",J),1;g.Td(e)}return 4}return F.HN.Ph()?3:0}; Q5=function(F,J,b){F.wD.seekTo(J,b)}; ucG=function(F,J){J&&F.wD.vc(new u2(J.key,J.type))}; qd=function(F,J){F.wD.N8(J)}; Y7=function(F,J){if(F.dD&&!F.Pl)return 3;if(F.isSuspended)return 1;var b;if((b=F.HN)==null?0:b.HN&&b.HN.streaming===!1)return 4;b=(J.C.info.audio?F.policy.cN:F.policy.dD)/(J.LW*F.policy.jn);if(F.policy.nI>0&&F.HN&&kn(F.HN)&&(J=J.C.info.video?F.HN.U:F.HN.C)&&!J.x0()){J=J.N0();var I=wu(J,F.getCurrentTime());I>=0&&(J=F.getCurrentTime()-J.start(I),b+=Math.max(0,Math.min(J-F.policy.nI,F.policy.vO)))}F.policy.Gj>0&&(b=Math.min(b,F.policy.Gj));return b}; q9a=function(F,J){return(Y7(F,J)+F.policy.Xc)*J.LW}; pEG=function(F){F.Jz&&!F.isSuspended&&zB(F.schedule)&&(K74(F,F.Jz),F.Jz="")}; K74=function(F,J){lX(J,"cms",function(b){F.policy.T&&F.UQ("pathprobe",b)},function(b){F.wD.handleError(b)})}; gso=function(F,J){if(F.HN&&F.HN.Z&&!F.HN.Ph()&&(J.O8=j3(F.videoTrack),J.U=j3(F.audioTrack),F.policy.T)){var b=d9(F.videoTrack),I=d9(F.audioTrack),u=u1(F.HN.U.N0(),"_",5),w=u1(F.HN.C.N0(),"_",5);Object.assign(J.C,{lvq:b,laq:I,lvb:u,lab:w})}J.bandwidthEstimate=Wl(F.N);var M;(M=F.audioTrack.N)==null||M.flush();var q;(q=F.videoTrack.N)==null||q.flush();F.logger.debug(function(){return dk(J.C)})}; mbv=function(F,J){F.Y=J;F.Z&&(F.Z.W=J);F.Y.iD(F.videoTrack.C.info.Xb());F.D.U=F.Y;F.policy.D&&(F.T.Z=F.Y)}; ywo=function(F,J){if(F.HN&&F.HN.U){if(F.policy.UP){var b=CIa(F.audioTrack);if(b&&b.Cd()){var I=F.wD;I.D1&&(I.D1.C=b,I.zF(I.D1.videoId).dC(I.D1))}}F.policy.aB&&(b=CIa(F.videoTrack))&&b.v1()&&(I=F.wD,I.mN&&(I.mN.C=b,I.zF(I.mN.videoId).K_(I.mN)));J-=isNaN(F.timestampOffset)?0:F.timestampOffset;F.getCurrentTime()!==J&&F.resume();F.wq.isSeeking()&&F.HN&&!F.HN.Ph()&&(b=F.getCurrentTime()<=J&&J=J&&sH7(F,I.startTime,!1)}); return b&&b.startTimeF.getCurrentTime())return b.start/1E3;return Infinity}; lhY=function(F){var J=i2(F.videoTrack),b=i2(F.audioTrack);return J&&!$Qk(F.videoTrack)?J.startTime:b&&!$Qk(F.audioTrack)?b.startTime:NaN}; mFY=function(F){if(F.wD.getVideoData().isLivePlayback)return!1;var J=F.wD.Qa();if(!J)return!1;J=J.getDuration();return g$o(F,J)}; g$o=function(F,J){if(!F.HN||!F.HN.C||!F.HN.U)return!1;var b=F.getCurrentTime(),I=F.HN.C.N0();F=F.HN.U.N0();I=I?AG(I,b):b;b=F?AG(F,b):b;b=Math.min(I,b);return isNaN(b)?!1:b>=J-.01}; vsz=function(F,J,b){F.policy.wp&&LC(F.wD.getVideoData())?(F.wD.eI()||qWz(F,"sepInit",J,b.info),fha(F.wD,"sie")):qWz(F,"sepInit",J,b.info)}; n7=function(F){return F.wD.NU()0){var u=I.C.shift();dbo(I,u.info)}I.C.length>0&&(u=I.C[0].time-(0,g.jR)(),I.U.start(Math.max(0,u)))}},0); g.k(this,this.U);J.subscribe("widevine_set_need_key_info",this.D,this)}; dbo=function(F,J){a:{var b=J.cryptoPeriodIndex;if(isNaN(b)&&F.T.size>0)b=!0;else{for(var I=g.N(F.T.values()),u=I.next();!u.done;u=I.next())if(u.value.cryptoPeriodIndex===b){b=!0;break a}b=!1}}F.publish("log_qoe",{wvagt:"reqnews",canskip:b});b||F.publish("rotated_need_key_info_ready",J)}; Esa=function(){var F={};var J=F.url;var b=F.interval;F=F.retries;this.url=J;this.interval=b;this.retries=F}; jUz=function(F,J){this.statusCode=F;this.message=J;this.U=this.heartbeatParams=this.errorMessage=null;this.C={};this.nextFairplayKeyId=null}; GeC=function(F,J,b){b=b===void 0?"":b;g.R.call(this);this.message=F;this.requestNumber=J;this.bC=b;this.onError=this.onSuccess=null;this.C=new g.Wz(5E3,2E4,.2)}; Vi_=function(F,J,b){F.onSuccess=J;F.onError=b}; BSa=function(F,J,b,I){var u={timeout:3E4,onSuccess:function(w){if(!F.iR()){XH("drm_net_r",void 0,F.bC);var M=w.status==="LICENSE_STATUS_OK"?0:9999,q=null;if(w.license)try{q=lV(w.license)}catch(y){g.Td(y)}if(M!==0||q){q=new jUz(M,q);M!==0&&w.reason&&(q.errorMessage=w.reason);if(w.authorizedFormats){M={};for(var v=[],a={},e=g.N(w.authorizedFormats),K=e.next();!K.done;K=e.next())if(K=K.value,K.trackType&&K.keyId){var p=PE3[K.trackType];if(p){p==="HD"&&w.isHd720&&(p="HD720");K.isHdr&&(p+="HDR");M[p]|| (v.push(p),M[p]=!0);var m=null;try{m=lV(K.keyId)}catch(y){g.Td(y)}m&&(a[g.zw(m,4)]=p)}}q.U=v;q.C=a}w.nextFairplayKeyId&&(q.nextFairplayKeyId=w.nextFairplayKeyId);w.sabrLicenseConstraint&&(q.sabrLicenseConstraint=lV(w.sabrLicenseConstraint));w=q}else w=null;if(w)F.onSuccess(w,F.requestNumber);else F.onError(F,"drm.net","t.p;p.i")}}, onError:function(w){if(!F.iR())if(w&&w.error)w=w.error,F.onError(F,"drm.net.badstatus","t.r;p.i;c."+w.code+";s."+w.status,w.code);else F.onError(F,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){F.onError(F,"drm.net","rt.req."+F.requestNumber)}}; I&&(u.C0="Bearer "+I);g.ZD(b,"player/get_drm_license",J,u)}; TSm=function(F,J,b,I){g.uA.call(this);this.videoData=F;this.rD=J;this.Y=b;this.sessionId=I;this.D={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.Tj=this.eE=!1;this.T=null;this.Gj=[];this.Z=[];this.V=!1;this.C={};this.status="";this.W=NaN;this.U=F.D;this.cryptoPeriodIndex=b.cryptoPeriodIndex;F={};Object.assign(F,this.rD.C);F.cpn=this.videoData.clientPlaybackNonce;this.videoData.eE&&(F.vvt=this.videoData.eE,this.videoData.mdxEnvironment&&(F.mdx_environment=this.videoData.mdxEnvironment)); this.rD.Gj&&(F.authuser=this.rD.Gj);this.rD.pageId&&(F.pageid=this.rD.pageId);isNaN(this.cryptoPeriodIndex)||(F.cpi=this.cryptoPeriodIndex.toString());var u=(u=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.Bk()))?u[1]:"";u==="ATV"&&(F.cdt=u);this.D=F;this.D.session_id=I;this.N=!0;this.U.flavor==="widevine"&&(this.D.hdr="1");this.U.flavor==="playready"&&(J=Number(xj(J.experiments,"playready_first_play_expiration")),!isNaN(J)&&J>=0&&(this.D.mfpe=""+J),this.N=!1);J="";g.sD(this.U)?S$(this.U)?(I=b.U)&&(J="https://www.youtube.com/api/drm/fps?ek="+ QGa(I)):(J=b.initData.subarray(4),J=new Uint16Array(J.buffer,J.byteOffset,J.byteLength/2),J=String.fromCharCode.apply(null,J).replace("skd://","https://")):J=this.U.U;this.baseUrl=J;this.fairplayKeyId=hz(this.baseUrl,"ek")||"";if(J=hz(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(J);this.Gj=b.Xb?[g.zw(b.initData,4)]:b.T;pj(this,{sessioninit:b.cryptoPeriodIndex});this.status="in"}; YWG=function(F,J){pj(F,{createkeysession:1});F.status="gr";XH("drm_gk_s",void 0,F.videoData.zj);F.url=rwG(F);try{F.T=J.createSession(F.Y,function(b){pj(F,{m:b})})}catch(b){J="t.g"; b instanceof DOMException&&(J+=";c."+b.code);F.publish("licenseerror","drm.unavailable",1,J,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}F.T&&(SW7(F.T,function(b,I){sUo(F,b,I)},function(b,I,u){if(!F.iR()){I=void 0; var w=1;g.sD(F.U)&&g.TB(F.rD)&&F.rD.S("html5_enable_safari_fairplay")&&u===1212433232&&(I="ERROR_HDCP",w=F.rD.S("html5_safari_fairplay_ignore_hdcp")?0:w);F.error("drm.keyerror",w,b,I)}},function(){F.iR()||(pj(F,{onkyadd:1}),F.Tj||(F.publish("sessionready"),F.Tj=!0))},function(b){F.mw(b)}),g.k(F,F.T))}; rwG=function(F){var J=F.baseUrl;Fh4(J)||F.error("drm.net",2,"t.x");if(!hz(J,"fexp")){var b=["23898307","23914062","23916106","23883098"].filter(function(u){return F.rD.experiments.experiments[u]}); b.length>0&&(F.D.fexp=b.join())}b=g.N(Object.keys(F.D));for(var I=b.next();!I.done;I=b.next())I=I.value,J=Vqv(J,I,F.D[I]);return J}; sUo=function(F,J,b){if(!F.iR())if(J){pj(F,{onkmtyp:b});F.status="km";switch(b){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":$ba(F,J);return;default:F.publish("ctmp","message_type",{t:b,l:J.byteLength})}F.eE||(XH("drm_gk_f",void 0,F.videoData.zj),F.eE=!0,F.publish("newsession",F));if(BG(F.U)&&(J=CEv(J),!J))return;J=new GeC(J,++F.requestNumber,F.videoData.zj);Vi_(J,function(I){XE_(F,I)},function(I,u,w){if(!F.iR()){var M=0; I.C.U>=3&&(M=1,u="drm.net.retryexhausted");pj(F,{onlcsrqerr:u,info:w});F.error(u,M,w);F.shouldRetry(jg(M),I)&&QUa(F,I)}}); g.k(F,J);RL3(F,J)}else F.error("drm.unavailable",1,"km.empty")}; $ba=function(F,J){pj(F,{sdpvrq:1});F.W=Date.now();if(F.U.flavor!=="widevine")F.error("drm.provision",1,"e.flavor;f."+F.U.flavor+";l."+J.byteLength);else{var b={cpn:F.videoData.clientPlaybackNonce};Object.assign(b,F.rD.C);b=g.Os("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",b);J={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, J)}),responseType:"arraybuffer"};g.Px(b,J,3,500).then(pa(function(I){I=I.xhr;if(!F.iR()){I=new Uint8Array(I.response);var u=String.fromCharCode.apply(null,I);try{var w=JSON.parse(u)}catch(M){}w&&w.signedResponse?(F.publish("ctmp","drminfo",{provisioning:1}),w=(Date.now()-F.W)/1E3,F.W=NaN,F.publish("ctmp","provs",{et:w.toFixed(3)}),F.T&&F.T.update(I)):(w=w&&w.error&&w.error.message,I="e.parse",w&&(I+=";m."+w),F.error("drm.provision",1,I))}}),pa(function(I){F.iR()||F.error("drm.provision",1,"e."+I.errorCode+ ";c."+(I.xhr&&I.xhr.status))}))}}; gr=function(F){var J;if(J=F.N&&F.T!=null)F=F.T,J=!(!F.C||!F.C.keyStatuses);return J}; RL3=function(F,J){F.status="km";XH("drm_net_s",void 0,F.videoData.zj);var b=new g.tB(F.rD.wX),I={context:g.vr(b.config_||g.qK())};I.drmSystem=Dbz[F.U.flavor];I.videoId=F.videoData.videoId;I.cpn=F.videoData.clientPlaybackNonce;I.sessionId=F.sessionId;I.licenseRequest=g.zw(J.message);I.drmParams=F.videoData.drmParams;isNaN(F.cryptoPeriodIndex)||(I.isKeyRotated=!0,I.cryptoPeriodIndex=F.cryptoPeriodIndex);var u,w,M=!!((u=F.videoData.U)==null?0:(w=u.video)==null?0:w.isHdr());I.drmVideoFeature=M?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";if(I.context&&I.context.client){if(u=F.rD.C)I.context.client.deviceMake=u.cbrand,I.context.client.deviceModel=u.cmodel,I.context.client.browserName=u.cbr,I.context.client.browserVersion=u.cbrver,I.context.client.osName=u.cos,I.context.client.osVersion=u.cosver;I.context.user=I.context.user||{};I.context.request=I.context.request||{};F.videoData.eE&&(I.context.user.credentialTransferTokens=[{token:F.videoData.eE,scope:"VIDEO"}]);I.context.request.mdxEnvironment=F.videoData.mdxEnvironment|| I.context.request.mdxEnvironment;F.videoData.Um&&(I.context.user.kidsParent={oauthToken:F.videoData.Um});g.sD(F.U)&&(I.fairplayKeyId=g.zw(Rva(F.fairplayKeyId)));g.LH(F.rD,g.ks(F.videoData)).then(function(q){BSa(J,I,b,q);F.status="rs"})}else F.error("drm.net",2,"t.r;ic.0")}; XE_=function(F,J){if(!F.iR())if(pj(F,{onlcsrsp:1}),F.status="rr",J.statusCode!==0)F.error("drm.auth",1,"t.f;c."+J.statusCode,J.errorMessage||void 0);else{XH("drm_kr_s",void 0,F.videoData.zj);if(J.heartbeatParams&&J.heartbeatParams.url&&F.videoData.S("outertube_streaming_data_always_use_staging_license_service")){var b=F.U.U.match(/(.*)youtube.com/g);b&&(J.heartbeatParams.url=b[0]+J.heartbeatParams.url)}J.heartbeatParams&&F.publish("newlicense",J.heartbeatParams);J.U&&(F.Z=J.U,F.videoData.Au||F.publish("newlicense", new Esa),F.videoData.Au=!0,F.V=Bc(F.Z,function(I){return I.includes("HDR")})); J.C&&(F.rD.S("html5_enable_vp9_fairplay")&&S$(F.U)?(b=g.zw(Rva(F.fairplayKeyId),4),F.C[b]={type:J.C[b],status:"unknown"}):F.C=ND(J.C,function(I){return{type:I,status:"unknown"}})); rd(F.U)&&(J.message=rA_(g.zw(J.message)));F.T&&(pj(F,{updtks:1}),F.status="ku",F.T.update(J.message).then(function(){XH("drm_kr_f",void 0,F.videoData.zj);gr(F)||(pj(F,{ksApiUnsup:1}),F.publish("keystatuseschange",F))},function(I){I="msuf.req."+F.requestNumber+";msg."+g.NL(I.message,3); F.error("drm.keyerror",1,I)})); g.sD(F.U)&&F.publish("fairplay_next_need_key_info",F.baseUrl,J.nextFairplayKeyId);F.rD.S("html5_enable_vp9_fairplay")&&S$(F.U)&&F.publish("qualitychange",kek(F.Z));J.sabrLicenseConstraint&&F.publish("sabrlicenseconstraint",J.sabrLicenseConstraint)}}; QUa=function(F,J){var b=J.C.getValue();b=new g.ty(function(){RL3(F,J)},b); g.k(F,b);b.start();g.dK(J.C);pj(F,{rtyrq:1})}; OYz=function(F,J){for(var b=[],I=g.N(Object.keys(F.C)),u=I.next();!u.done;u=I.next())u=u.value,b.push(u+"_"+F.C[u].type+"_"+F.C[u].status);return b.join(J)}; osJ=function(F){var J={};J[F.status]=gr(F)?OYz(F,"."):F.Z.join(".");return J}; hLa=function(F,J){switch(F){case "highres":case "hd2880":F="UHD2";break;case "hd2160":case "hd1440":F="UHD1";break;case "hd1080":case "hd720":F="HD";break;case "large":case "medium":case "small":case "light":case "tiny":F="SD";break;default:return""}J&&(F+="HDR");return F}; cwa=function(F,J){for(var b in F.C)if(F.C[b].status==="usable"&&F.C[b].type===J)return!0;return!1}; Ubo=function(F,J){for(var b in F.C)if(F.C[b].type===J)return F.C[b].status}; pj=function(F,J){var b=b===void 0?!1:b;dk(J);(b||F.rD.hJ())&&F.publish("ctmp","drmlog",J)}; xbz=function(F){var J=F[0];F[0]=F[3];F[3]=J;J=F[1];F[1]=F[2];F[2]=J;J=F[4];F[4]=F[5];F[5]=J;J=F[6];F[6]=F[7];F[7]=J}; kek=function(F){return g.te(F,"UHD2")||g.te(F,"UHD2HDR")?"highres":g.te(F,"UHD1")||g.te(F,"UHD1HDR")?"hd2160":g.te(F,"HD")||g.te(F,"HDHDR")?"hd1080":g.te(F,"HD720")||g.te(F,"HD720HDR")?"hd720":"large"}; CEv=function(F){for(var J="",b=0;b'.charCodeAt(I);F=F.T.createSession("video/mp4",J,b);return new mQ(null,null,null,null,F)}; Fda=function(F,J){var b=F.W[J.sessionId];!b&&F.Z&&(b=F.Z,F.Z=null,b.sessionId=J.sessionId,F.W[J.sessionId]=b);return b}; ZYG=function(F,J){var b=F.subarray(4);b=new Uint16Array(b.buffer,b.byteOffset,b.byteLength/2);b=String.fromCharCode.apply(null,b).match(/ek=([0-9a-f]+)/)[1];for(var I="",u=0;u=0&&F.push(I);F=parseFloat(F.join("."))}else F=NaN;F>19.2999?(F=b.xA,b=b.Ao,b>=F&&(b=F*.75),J=(F-b)*.5,b=new eA(J,F,F-J-b,this)):b=null;break a;case "widevine":b=new Kj(J,this,F);break a;default:b=null}if(this.D=b)g.k(this,this.D),this.D.subscribe("rotated_need_key_info_ready",this.j4,this),this.D.subscribe("log_qoe",this.H9,this);CW(this.rD.experiments);this.H9({cks:this.C.getInfo()})}; bEa=function(F){var J=F.Z.sj();J?J.then(pa(function(){uoa(F)}),pa(function(b){if(!F.iR()){g.Td(b); var I="t.a";b instanceof DOMException&&(I+=";n."+b.name+";m."+b.message);F.publish("licenseerror","drm.unavailable",1,I,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(F.H9({mdkrdy:1}),F.N=!0); F.Tj&&(J=F.Tj.sj())}; M3k=function(F,J,b){F.dD=!0;b=new u2(J,b);F.rD.S("html5_eme_loader_sync")&&(F.W.get(J)||F.W.set(J,b));w0_(F,b)}; w0_=function(F,J){if(!F.iR()){F.H9({onInitData:1});if(F.rD.S("html5_eme_loader_sync")&&F.videoData.T&&F.videoData.T.C){var b=F.V.get(J.initData);J=F.W.get(J.initData);if(!b||!J)return;J=b;b=J.initData;F.W.remove(b);F.V.remove(b)}F.H9({initd:J.initData.length,ct:J.contentType});if(F.C.flavor==="widevine")if(F.WN&&!F.videoData.isLivePlayback)z$(F);else{if(!(F.rD.S("vp9_drm_live")&&F.videoData.isLivePlayback&&J.Xb)){F.WN=!0;b=J.cryptoPeriodIndex;var I=J.C;Uxz(J);J.Xb||(I&&J.C!==I?F.publish("ctmp","cpsmm", {emsg:I,pssh:J.C}):b&&J.cryptoPeriodIndex!==b&&F.publish("ctmp","cpimm",{emsg:b,pssh:J.cryptoPeriodIndex}));F.publish("widevine_set_need_key_info",J)}}else F.j4(J)}}; uoa=function(F){if(!F.iR())if(F.rD.S("html5_drm_set_server_cert")||S$(F.C)){var J=F.Z.setServerCertificate();J?J.then(pa(function(b){F.rD.hJ()&&F.publish("ctmp","ssc",{success:b})}),pa(function(b){F.publish("ctmp","ssce",{n:b.name, m:b.message})})).then(pa(function(){Auo(F)})):Auo(F)}else Auo(F)}; Auo=function(F){F.iR()||(F.N=!0,F.H9({onmdkrdy:1}),z$(F))}; qEk=function(F){return F.C.flavor==="widevine"&&F.videoData.S("html5_drm_cpi_license_key")}; z$=function(F){if((F.dD||F.rD.S("html5_widevine_use_fake_pssh"))&&F.N&&!F.kQ){for(;F.T.length;){var J=F.T[0],b=qEk(F)?xxz(J):g.zw(J.initData);if(S$(F.C)&&!J.U)F.T.shift();else{if(F.U.get(b))if(F.C.flavor!=="fairplay"||S$(F.C)){F.T.shift();continue}else F.U.delete(b);Uxz(J);break}}F.T.length&&F.createSession(F.T[0])}}; vaC=function(F){var J;if(J=g.O6()){var b;J=!((b=F.Z.U)==null||!b.getMetrics)}J&&(J=F.Z.getMetrics())&&(J=g.Ev(J),F.publish("ctmp","drm",{metrics:J}))}; a6m=function(){var F=XQk();return!(!F||F==="visible")}; KVz=function(F){var J=eN3();J&&document.addEventListener(J,F,!1)}; p0_=function(F){var J=eN3();J&&document.removeEventListener(J,F,!1)}; eN3=function(){if(document.visibilityState)var F="visibilitychange";else{if(!document[Kw+"VisibilityState"])return"";F=Kw+"visibilitychange"}return F}; gaC=function(F){g.R.call(this);var J=this;this.wD=F;this.EN=0;this.W=this.U=this.D=!1;this.Z=0;this.PN=this.wD.J();this.videoData=this.wD.getVideoData();this.T=g.eB(this.PN.experiments,"html5_delayed_retry_count");this.C=new g.ty(function(){J.wD.sV()},g.eB(this.PN.experiments,"html5_delayed_retry_delay_ms")); g.k(this,this.C)}; N9G=function(F,J,b){var I=F.videoData.U,u=F.videoData.Z;LC(F.wD.getVideoData())&&F.PN.S("html5_gapless_fallback_on_qoe_restart")&&fha(F.wD,"pe");if((J==="progressive.net.retryexhausted"||J==="fmt.unplayable"||J==="fmt.decode")&&!F.wD.ji.D&&I&&I.itag==="22")return F.wD.ji.D=!0,F.je("qoe.restart",{reason:"fmt.unplayable.22"}),F.wD.d_(),!0;var w=!1;if(F.videoData.isExternallyHostedPodcast){if(w=F.videoData.FH)b.mimeType=w.type,F.UQ("3pp",{url:w.url});b.ns="3pp";F.wD.Je(J,1,"VIDEO_UNAVAILABLE",dk((new E5(J, b,1)).details));return!0}var M=F.EN+3E4<(0,g.jR)()||F.C.isActive();if(F.PN.S("html5_empty_src")&&F.videoData.isAd()&&J==="fmt.unplayable"&&/Empty src/.test(""+b.msg))return b.origin="emptysrc",F.je("auth",b),!0;M||NS(F.wD.o6())||(b.nonfg="paused",M=!0,F.wD.pauseVideo());(J==="fmt.decode"||J==="fmt.unplayable")&&(u==null?0:U5(u)||xz(u))&&(TMG(F.PN.D,u.YQ),b.acfallexp=u.YQ,w=M=!0);!M&&F.T>0&&(F.C.start(),M=!0,b.delayed="1",--F.T);u=F.wD.Zv;!M&&((I==null?0:c4(I))||(I==null?0:O5(I)))&&(TMG(F.PN.D,I.YQ), w=M=!0,b.cfallexp=I.YQ);if(F.PN.S("html5_ssap_ignore_decode_error_for_next_video")&&g.oH(F.videoData)&&J==="fmt.unplayable"&&b.cid&&b.ccid&&NS(F.wD.o6())){if(b.cid!==b.ccid)return b.ignerr="1",F.je("ssap.transitionfailure",b),!0;F.je("ssap.transitionfailure",b);if(mdm(F.wD,J))return!0}if(!M)return yuJ(F,b);if(F.PN.S("html5_ssap_skip_decoding_clip_with_incompatible_codec")&&g.oH(F.videoData)&&J==="fmt.unplayable"&&b.cid&&b.ccid&&b.cid!==b.ccid&&NS(F.wD.o6())&&(F.je("ssap.transitionfailure",b),mdm(F.wD, J)))return!0;M=!1;F.D?F.EN=(0,g.jR)():M=F.D=!0;var q=F.videoData;if(q.bR){q=q.bR.Qm();var v=Date.now()/1E3+1800;q=q6048E5&&ddo(F,"signature");return!1}; ddo=function(F,J){try{window.location.reload(),F.je("qoe.restart",{detail:"pr."+J})}catch(b){}}; joJ=function(F,J){J=J===void 0?"fmt.noneavailable":J;var b=F.PN.D;b.V=!1;LW(b);F.je("qoe.restart",{e:J,detail:"hdr"});F.wD.sV(!0)}; G1o=function(F,J,b,I,u,w){this.videoData=F;this.C=J;this.reason=b;this.U=I;this.token=u;this.videoId=w}; V3z=function(F,J,b){this.rD=F;this.DZ=J;this.wD=b;this.Y=this.W=this.C=this.Z=this.V=this.U=0;this.D=!1;this.N=g.eB(this.rD.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.T=new Map}; B9_=function(F,J,b){!F.rD.S("html5_tv_ignore_capable_constraint")&&g.jB(F.rD)&&(b=b.compose(P23(F,J)));return b}; T9m=function(F){if(F.wD.o6().isInline())return QE;var J;F.S("html5_exponential_memory_for_sticky")?J=Nn(F.rD.GU,"sticky-lifetime")<.5?"auto":Jt[rB()]:J=Jt[rB()];return g.HX("auto",J,!1,"s")}; SEm=function(F,J){var b,I=ru4(F,(b=J.C)==null?void 0:b.videoInfos);b=F.wD.getPlaybackRate();return b>1&&I?(F=EO7(F.rD.D,J.C.videoInfos,b),new Zo(0,F,!0,"o")):new Zo(0,0,!1,"o")}; ru4=function(F,J){return J&&g.jB(F.rD)?J.some(function(b){return b.video.fps>32}):!1}; so_=function(F,J){var b=F.wD.bU();F.S("html5_use_video_quality_cap_for_ustreamer_constraint")&&b&&b.EU>0&&Fh(J.videoData.zd)&&(F=b.EU,J.videoData.zd=new Zo(0,F,!1,"u"));return J.videoData.zd}; P23=function(F,J){if(g.jB(F.rD)&&g_(F.rD.D,mp.HEIGHT))var b=J.C.videoInfos[0].video.C;else{var I=!!J.C.C;var u;g.Pu(F.rD)&&(u=window.screen&&window.screen.width?new g.gl(window.screen.width,window.screen.height):null);u||(u=F.rD.qa?F.rD.qa.clone():F.DZ.lk());(x6||xi||I)&&u.scale(g.ow());I=u;Fc(J.videoData)||hw(J.videoData);J=J.C.videoInfos;if(J.length){u=g.eB(F.rD.experiments,"html5_override_oversend_fraction")||.85;var w=J[0].video;w.projectionType!=="MESH"&&w.projectionType!=="EQUIRECTANGULAR"&& w.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||GB||(u=.45);F=g.eB(F.rD.experiments,"html5_viewport_undersend_maximum");for(w=0;w0&&(b=Math.min(b,I));if(I=g.eB(F.rD.experiments,"html5_max_vertical_resolution")){F=4320;for(u=0;u I&&(F=Math.min(F,w.video.C));if(F<4320){for(u=I=0;u32){u=!0;break a}}u=!1}u&&(b=Math.min(b,I));(I=g.eB(F.rD.experiments,"html5_live_quality_cap"))&&J.videoData.isLivePlayback&&(b=Math.min(b,I));b=$dC(F,J,b);F=g.eB(F.rD.experiments,"html5_byterate_soft_cap");return new Zo(0,b===4320?0:b,!1,"d",F)}; X03=function(F){var J,b,I,u;return g.S(function(w){switch(w.C){case 1:return F.C.C&&typeof((J=navigator.mediaCapabilities)==null?void 0:J.decodingInfo)==="function"?g.T(w,Promise.resolve(),2):w.return(Promise.resolve());case 2:b=g.N(F.C.videoInfos),I=b.next();case 3:if(I.done){w.gD(0);break}u=I.value;return g.T(w,gya(u),4);case 4:I=b.next(),w.gD(3)}})}; RN_=function(F,J){if(!J.videoData.U||F.S("html5_disable_performance_downgrade"))return!1;Date.now()-F.V>6E4&&(F.U=0);F.U++;F.V=Date.now();if(F.U!==4)return!1;Qov(F,J.videoData.U);return!0}; k1J=function(F,J,b,I){if(!J||!b||!J.videoData.U)return!1;var u=g.eB(F.rD.experiments,"html5_df_downgrade_thresh"),w=F.S("html5_log_media_perf_info");if(!((0,g.jR)()-F.Z<5E3?0:w||u>0))return!1;var M=((0,g.jR)()-F.Z)/1E3;F.Z=(0,g.jR)();b=b.getVideoPlaybackQuality();if(!b)return!1;var q=b.droppedVideoFrames-F.W,v=b.totalVideoFrames-F.Y;F.W=b.droppedVideoFrames;F.Y=b.totalVideoFrames;var a=b.displayCompositedVideoFrames===0?0:b.displayCompositedVideoFrames||-1;w&&F.rD.hJ()&&F.wD.UQ("ddf",{dr:b.droppedVideoFrames, de:b.totalVideoFrames,comp:a});if(I)return F.C=0,!1;if((v-q)/M>F.N||!u||g.jB(F.rD))return!1;F.C=(v>60?q/v:0)>u?F.C+1:0;if(F.C!==3)return!1;Qov(F,J.videoData.U);F.wD.UQ("dfd",Object.assign({dr:b.droppedVideoFrames,de:b.totalVideoFrames},Ddo()));return!0}; Qov=function(F,J){var b=J.YQ,I=J.video.fps,u=J.video.C-1,w=F.T;J=""+b+(I>49?"p60":I>32?"p48":"");b=ED(b,I,w);u>0&&(b=Math.min(b,u));if(!lm.has(J)&&$T().includes(J)){var M=b;b=sr();+b[J]>0&&(M=Math.min(+b[J],M));b[J]!==M&&(b[J]=M,g.rm("yt-player-performance-cap",b,2592E3))}else if(lm.has(J)||w==null){a:{M=M===void 0?!0:M;I=$T().slice();if(M){if(I.includes(J))break a;I.push(J)}else{if(!I.includes(J))break a;I.splice(I.indexOf(J),1)}g.rm("yt-player-performance-cap-active-set",I,2592E3)}dd.set(J,b)}else lm.add(J), w==null||w.set(J,b);F.wD.KL()}; fj=function(F,J){if(!J.C.C)return F.D?new Zo(0,360,!1,"b"):QE;for(var b=!1,I=!1,u=g.N(J.C.videoInfos),w=u.next();!w.done;w=u.next())c4(w.value)?b=!0:I=!0;b=b&&I;I=0;u=g.eB(F.rD.experiments,"html5_performance_cap_floor");u=F.rD.U?240:u;J=g.N(J.C.videoInfos);for(w=J.next();!w.done;w=J.next()){var M=w.value;if(!b||!c4(M))if(w=ED(M.YQ,M.video.fps,F.T),M=M.video.C,Math.max(w,u)>=M){I=M;break}}return new Zo(0,I,!1,"b")}; O7a=function(F,J){var b=F.wD.o6();return b.isInline()&&!J.ez?new Zo(0,480,!1,"v"):b.isBackground()&&dP()/1E3>60&&!g.jB(F.rD)?new Zo(0,360,!1,"v"):QE}; oa3=function(F,J,b){if(F.rD.experiments.pW("html5_disable_client_autonav_cap_for_onesie")&&J.fetchType==="onesie"||g.jB(F.rD)&&(rB(-1)>=1080||J.osid))return QE;var I=g.eB(F.rD.experiments,"html5_autonav_quality_cap"),u=g.eB(F.rD.experiments,"html5_autonav_cap_idle_secs");return I&&J.isAutonav&&dP()/1E3>u?(b&&(I=$dC(F,b,I)),new Zo(0,I,!1,"e")):QE}; $dC=function(F,J,b){if(F.S("html5_optimality_defaults_chooses_next_higher")&&b)for(F=J.C.videoInfos,J=1;J=0||(F.provider.wD.getVisibilityState()===3?F.D=!0:(F.C=g.dr(F.provider),F.delay.start()))}; UdG=function(F){if(!(F.U<0)){var J=g.dr(F.provider),b=J-F.Z;F.Z=J;F.playerState.state===8?F.playTimeSecs+=b:F.playerState.isBuffering()&&!g.x(F.playerState,16)&&(F.rebufferTimeSecs+=b)}}; xd7=function(F){var J;switch((J=F.rD.playerCanaryStage)==null?void 0:J.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"}}; naz=function(F){return window.PressureObserver&&new window.PressureObserver(F)}; t3G=function(F){F=F===void 0?naz:F;g.R.call(this);var J=this;try{this.T=F(function(I){J.U=I.at(-1)}); var b;this.Z=(b=this.T)==null?void 0:b.observe("cpu",{sampleInterval:2E3}).catch(function(I){I instanceof DOMException&&(J.C=I)})}catch(I){I instanceof DOMException&&(this.C=I)}}; Z7z=function(F){var J={},b=window.h5vcc;J.hwConcurrency=navigator.hardwareConcurrency;F.C&&(J.cpe=F.C.message);F.U&&(J.cpt=F.U.time,J.cps=F.U.state);if(b==null?0:b.cVal)J.cb2s=b.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),J.cb5s=b.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),J.cb30s=b.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30");return J}; H7z=function(F){var J;g.S(function(b){switch(b.C){case 1:return g.lk(b,2),g.T(b,F.Z,4);case 4:g.Wa(b,3);break;case 2:g.dY(b);case 3:(J=F.T)==null||J.disconnect(),g.N4(b)}})}; Fy7=function(F,J){J?LV7.test(F):(F=g.bi(F),Object.keys(F).includes("cpn"))}; bSo=function(F,J,b,I,u,w,M){var q={format:"RAW"},v={};if(w$(F)&&Mk()){if(M){var a;((a=Jf_.uaChPolyfill)==null?void 0:a.state.type)!==2?M=null:(M=Jf_.uaChPolyfill.state.data.values,M={"Synth-Sec-CH-UA-Arch":M.architecture,"Synth-Sec-CH-UA-Model":M.model,"Synth-Sec-CH-UA-Platform":M.platform,"Synth-Sec-CH-UA-Platform-Version":M.platformVersion,"Synth-Sec-CH-UA-Full-Version":M.uaFullVersion});v=Object.assign(v,M);q.withCredentials=!0}(M=g.cT("EOM_VISITOR_DATA"))?v["X-Goog-EOM-Visitor-Id"]=M:I?v["X-Goog-Visitor-Id"]= I:g.cT("VISITOR_DATA")&&(v["X-Goog-Visitor-Id"]=g.cT("VISITOR_DATA"));b&&(v["X-Goog-PageId"]=b);(I=J.Gj)&&!cu(J)&&(v["X-Goog-AuthUser"]=I);u&&(v.Authorization="Bearer "+u);J.S("enable_datasync_id_header_in_web_vss_pings")&&J.Uk&&J.datasyncId&&(v["X-YouTube-DataSync-Id"]=J.datasyncId);M||v["X-Goog-Visitor-Id"]||u||b||I?q.withCredentials=!0:J.S("html5_send_cpn_with_options")&&LV7.test(F)&&(q.withCredentials=!0)}Object.keys(v).length>0&&(q.headers=v);w&&(q.onFinish=w);return Object.keys(q).length>1? q:null}; IJz=function(F,J,b,I,u,w,M,q){Mk()&&b.token&&(F=IR(F,{ctt:b.token,cttype:b.Ix,mdx_environment:b.mdxEnvironment}));I.S("net_pings_low_priority")&&(J||(J={}),J.priority="low");w||q&&I.S("nwl_skip_retry")?(J==null?J={}:Fy7(F,I.S("html5_assert_cpn_with_regex")),M?xP().sendAndWrite(F,J):xP().sendThenWrite(F,J,q)):J?(Fy7(F,I.S("html5_assert_cpn_with_regex")),I.S("net_pings_use_fetch")?qYo(F,J):g.E6(F,J)):g.Xp(F,u)}; uda=function(F){for(var J=[],b=0;b0&&b>0&&!F.U&&F.T<1E7)try{F.Z=F.D({sampleInterval:J,maxBufferSize:b});var I;(I=F.Z)==null||I.addEventListener("samplebufferfull",function(){return g.S(function(u){if(u.C==1)return g.T(u,F.stop(),2);Afo(F);g.N4(u)})})}catch(u){F.U=MSv(u.message)}}; jA=function(F,J){var b,I;return!!((b=window.h5vcc)==null?0:(I=b.settings)==null?0:I.set(F,J))}; vbJ=function(){var F,J,b,I=(F=window.h5vcc)==null?void 0:(J=F.settings)==null?void 0:(b=J.getPersistentSettingAsString)==null?void 0:b.call(J,"cpu_usage_tracker_intervals");if(I!=null){var u;F=(u=JSON.parse(I))!=null?u:[];u=F.filter(function(a){return a.type==="total"}).map(function(a){return a.seconds}); J=g.N(q_C);for(b=J.next();!b.done;b=J.next())b=b.value,u.indexOf(b)===-1&&F.push({type:"total",seconds:b});var w,M;(w=window.h5vcc)==null||(M=w.settings)==null||M.set("cpu_usage_tracker_intervals_enabled",1);var q,v;(q=window.h5vcc)==null||(v=q.settings)==null||v.set("cpu_usage_tracker_intervals",JSON.stringify(F))}}; aJm=function(){var F=window.H5vccPlatformService,J="";if(F&&F.has("dev.cobalt.coat.clientloginfo")&&(F=F.open("dev.cobalt.coat.clientloginfo",function(){}))){var b=F.send(new ArrayBuffer(0)); b&&(J=String.fromCharCode.apply(String,g.W(new Uint8Array(b))));F.close()}return J}; g.Pg=function(F,J){g.R.call(this);var b=this;this.provider=F;this.logger=new g.Hl("qoe");this.C={};this.sequenceNumber=1;this.W=NaN;this.r0="N";this.N=this.bN=this.aq=this.Om=this.D=0;this.NW=this.qf=this.V=this.zj="";this.T1=this.dD=NaN;this.If=0;this.Se=-1;this.MI=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.cN=this.isEmbargoed=this.WN=this.isOffline=this.isBuffering=!1;this.M0=[];this.eE=null;this.bR=this.T=this.nW=this.Y=!1;this.U=-1;this.Jz=!1;this.y6=new g.ty(this.sI_,750,this);this.Tj= this.adCpn=this.Gj=this.contentCpn="";this.adFormat=void 0;this.xo=0;this.Ly=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.g9=new Set(["gd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.Um=!1;this.Kk=NaN;this.fW=0;this.Q2=!1;this.kQ=0;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.xm=!1;this.Po={pZ:function(u){b.pZ(u)}, S1_:function(){return b.Z}, Vd:function(){return b.contentCpn}, XQR:function(){return b.Gj}, reportStats:function(){b.reportStats()}, wQD:function(){return b.C.cat}, U3:function(u){return b.C[u]}, UbG:function(){return b.kQ}}; var I=g.eB(this.provider.rD.experiments,"html5_qoe_proto_mock_length");I&&!G$.length&&(G$=uda(I));g.k(this,this.y6);try{navigator.getBattery().then(function(u){b.eE=u})}catch(u){}g.VT(this,0,"vps",["N"]); F.rD.hJ()&&(this.fW=(0,g.jR)(),this.Kk=g.g$(function(){var u=(0,g.jR)(),w=u-b.fW;w>500&&b.UQ("vmlock",{diff:w.toFixed()});b.fW=u},250)); F.wD.IH()&&J&&(this.kQ=J-Math.round(g.dr(F)*1E3));this.provider.videoData.iq&&(this.remoteControlMode=eH7[this.provider.videoData.iq]||0);this.provider.videoData.I6&&(J=$CJ(this.provider.videoData.I6),J==null?0:J.length)&&(this.remoteConnectedDevices=J);if(F.rD.hJ()||F.S("html5_log_cpu_info"))this.oI=new t3G,g.k(this,this.oI);J=g.eB(F.rD.experiments,"html5_js_self_profiler_sample_interval_ms");F=g.eB(F.rD.experiments,"html5_js_self_profiler_max_samples");J>0&&F>0&&(this.KW=new Ei(J,F),g.k(this,this.KW))}; g.VT=function(F,J,b,I){var u=F.C[b];u||(u=[],F.C[b]=u);u.push(J.toFixed(3)+":"+I.join(":"))}; KyY=function(F,J){var b=F.adCpn||F.provider.videoData.clientPlaybackNonce,I=F.provider.getCurrentTime(b);g.VT(F,J,"cmt",[I.toFixed(3)]);I=F.provider.Fb(b);if(F.Z&&I*1E3>F.Z.Tm+100&&F.Z){var u=F.Z;b=u.isAd;I=I*1E3-u.Tm;F.DC=J*1E3-u.idW-I-u.UkD;u=(0,g.jR)()-I;J=F.DC;I=F.provider.videoData;var w=I.isAd();if(b||w){w=(b?"ad":"video")+"_to_"+(w?"ad":"video");var M={};I.W&&(M.cttAuthInfo={token:I.W,videoId:I.videoId});M.startTime=u-J;Rr(w,M);g.Qk({targetVideoId:I.videoId,targetCpn:I.clientPlaybackNonce}, w);XH("pbs",u,w)}else u=F.provider.wD.Iu(),u.W!==I.clientPlaybackNonce?(u.D=I.clientPlaybackNonce,u.U=J):I.yM()||g.rQ(new g.hC("CSI timing logged before gllat",{cpn:I.clientPlaybackNonce}));F.UQ("gllat",{l:F.DC.toFixed(),prev_ad:+b});delete F.Z}}; Bg=function(F,J){J=J===void 0?NaN:J;J=J>=0?J:g.dr(F.provider);var b=F.provider.wD.Jt(),I=b.TH-(F.dD||0);I>0&&g.VT(F,J,"bwm",[I,(b.Oi-(F.T1||0)).toFixed(3)]);isNaN(F.dD)&&b.TH&&F.isOffline&&F.pZ(!1);F.dD=b.TH;F.T1=b.Oi;isNaN(b.bandwidthEstimate)||g.VT(F,J,"bwe",[b.bandwidthEstimate.toFixed(0)]);F.provider.rD.hJ()&&Object.keys(b.C).length!==0&&F.UQ("bwinfo",b.C);if(F.provider.rD.hJ()||F.provider.rD.S("html5_log_meminfo"))I=S9_(),Object.values(I).some(function(w){return w!==void 0})&&F.UQ("meminfo", I); if(F.provider.rD.hJ()||F.provider.rD.S("html5_log_cpu_info")){var u;(I=(u=F.oI)==null?void 0:Z7z(u))&&Object.values(I).some(function(w){return w!=null})&&F.UQ("cpuinfo",I)}F.KW&&F.UQ("jsprof",F.KW.flush()); F.eE&&g.VT(F,J,"bat",[F.eE.level,F.eE.charging?"1":"0"]);u=F.provider.wD.getVisibilityState();F.Se!==u&&(g.VT(F,J,"vis",[u]),F.Se=u);KyY(F,J);(u=pv4(F.provider))&&u!==F.If&&(g.VT(F,J,"conn",[u]),F.If=u);gbz(F,J,b)}; gbz=function(F,J,b){if(!isNaN(b.O8)){var I=b.O8;b.U96E3&&(new g.ty(F.reportStats,0,F)).start()}; iSJ=function(F){F.provider.videoData.Ly&&T$(F,"prefetch");F.provider.videoData.T1&&F.UQ("reload",{r:F.provider.videoData.reloadReason,ct:F.provider.videoData.T1});F.provider.videoData.nW&&T$(F,"monitor");F.provider.videoData.isLivePlayback&&T$(F,"live");UD&&T$(F,"streaming");F.provider.videoData.iq&&F.UQ("ctrl",{mode:F.provider.videoData.iq},!0);if(F.provider.videoData.I6){var J=F.provider.videoData.I6.replace(/,/g,"_");F.UQ("ytp",{type:J},!0)}F.provider.videoData.Zh&&(J=F.provider.videoData.Zh.replace(/,/g, "."),F.UQ("ytrexp",{ids:J},!0));var b=F.provider.videoData;J=F.provider.rD.S("enable_white_noise")||F.provider.rD.S("enable_webgl_noop");b=g.KY(b)||g.ji(b)||g.Ge(b)||g.VR(b);(J||b)&&(J=(0,g.rr)())&&(F.C.gpu=[J]);hw(F.provider.videoData)&&g.VT(F,g.dr(F.provider),"dt",["1"]);F.provider.rD.hJ()&&(J=(0,g.jR)()-F.provider.rD.K7,F.UQ("playerage",{secs:Math.pow(1.6,Math.round(Math.log(J/1E3)/Math.log(1.6))).toFixed()}));F.T=!0;F.W=g.g$(function(){F.reportStats()},1E4)}; NC3=function(F,J,b){var I=g.dr(F.provider);zHJ(F,I,J,0,b);Bg(F,I);yf3(F)}; zHJ=function(F,J,b,I,u){var w=F.provider.rD.C.cbrver;F.provider.rD.C.cbr==="Chrome"&&/^96[.]/.test(w)&&b==="net.badstatus"&&/rc\.500/.test(u)&&lJC(F,3);F.provider.rD.S("html5_use_ump")&&/b248180278/.test(u)&&lJC(F,4);w=F.provider.getCurrentTime(F.adCpn||F.provider.videoData.clientPlaybackNonce);I=I===1?"fatal":"";b=[b,I,w.toFixed(3)];I&&(u+=";a6s."+A3());u&&b.push(fJz(u));g.VT(F,J,"error",b);F.T=!0}; Wyz=function(F){F.U>=0||(F.provider.rD.Vk||F.provider.wD.getVisibilityState()!==3?F.U=g.dr(F.provider):F.Jz=!0)}; dUY=function(F,J,b,I){if(b!==F.r0){J=10&&F.playTimeSecs<=180&&(F.C.qoealert=["1"],F.cN=!0)),b!=="B"||F.r0!=="PL"&&F.r0!=="PB"||(F.isBuffering=!0),F.D=J);F.r0==="PL"&&(b==="B"||b==="S")||F.provider.rD.hJ()?Bg(F,J):(F.Um||b!=="PL"||(F.Um=!0,gbz(F,J,F.provider.wD.Jt())),KyY(F,J));b==="PL"&&g.Z_(F.y6);var u=[b];b==="S"&&I&&u.push("ss."+I);g.VT(F,J,"vps",u);F.r0=b; F.Om=J;F.D=J;F.T=!0}}; T$=function(F,J){var b=F.C.cat||[];b.push(J);F.C.cat=b}; SA=function(F,J,b,I,u,w){var M=g.dr(F.provider);b!==1&&b!==3&&b!==5||g.VT(F,M,"vps",[F.r0]);var q=F.C.xvt||[];q.push("t."+M.toFixed(3)+";m."+w.toFixed(3)+";g."+J+";tt."+b+";np.0;c."+I+";d."+u);F.C.xvt=q}; lJC=function(F,J){if(!F.bR){var b=F.C.fcnz;b||(b=[],F.C.fcnz=b);b.push(String(J));F.bR=!0}}; fJz=function(F){/[^a-zA-Z0-9;.!_-]/.test(F)&&(F=F.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return F}; EbC=function(F){this.provider=F;this.V=!1;this.C=0;this.Z=-1;this.y5=NaN;this.T=0;this.segments=[];this.W=this.D=0;this.previouslyEnded=!1;this.N=this.provider.wD.getVolume();this.Y=this.provider.wD.isMuted()?1:0;this.U=si(this.provider)}; YU=function(F){F.U.startTime=F.T;F.U.endTime=F.C;var J=!1;F.segments.length&&g.ck(F.segments).isEmpty()?(F.segments[F.segments.length-1].previouslyEnded&&(F.U.previouslyEnded=!0),F.segments[F.segments.length-1]=F.U,J=!0):F.segments.length&&F.U.isEmpty()||(F.segments.push(F.U),J=!0);J?F.U.endTime===0&&(F.previouslyEnded=!1):F.U.previouslyEnded&&(F.previouslyEnded=!0);F.D+=F.C-F.T;F.U=si(F.provider);F.U.previouslyEnded=F.previouslyEnded;F.previouslyEnded=!1;F.T=F.C}; G6C=function(F){j7z(F);F.W=g.g$(function(){F.update()},100); F.y5=g.dr(F.provider);F.U=si(F.provider)}; j7z=function(F){g.ii(F.W);F.W=NaN}; VS7=function(F,J,b){b-=F.y5;return J===F.C&&b>.5}; Pzo=function(F,J,b,I){this.rD=J;this.NW=b;this.segments=[];this.experimentIds=[];this.KW=this.Om=this.isFinal=this.delayThresholdMet=this.Um=this.Se=this.autoplay=this.autonav=!1;this.If="yt";this.W=[];this.V=this.N=null;this.sendVisitorIdHeader=this.Jz=!1;this.Y=this.pageId="";this.D=b==="watchtime";this.T=b==="playback";this.Gj=b==="atr";this.Vk=b==="engage";this.sendVisitorIdHeader=!1;this.uri=this.Gj?"/api/stats/"+b:"//"+J.Dc+"/api/stats/"+b;I&&(this.Om=I.fs,I.rtn&&(this.V=I.rtn),this.D?(this.playerState= I.state,I.rti>0&&(this.N=I.rti)):(this.zU=I.mos,this.n7=I.volume,I.at&&(this.adType=I.at)),I.autonav&&(this.autonav=I.autonav),I.inview!=null&&(this.MI=I.inview),I.size&&(this.T1=I.size),I.playerwidth&&(this.playerWidth=I.playerwidth),I.playerheight&&(this.playerHeight=I.playerheight));this.g9=g.To(J.C);this.Y=xj(J.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.Y==="all"||this.Y==="once")this.Q2=g.To(J.NW);this.GU=J.oI;this.experimentIds=l07(J.experiments);this.zj=J.Q2;this.If=J.Tj;this.region= J.region;this.userAge=J.userAge;this.nW=J.MJ;this.M0=dP();this.sendVisitorIdHeader=J.sendVisitorIdHeader;this.kQ=J.S("vss_pings_using_networkless")||J.S("kevlar_woffle");this.K7=J.S("vss_final_ping_send_and_write");this.WN=J.S("vss_use_send_and_write");this.pageId=J.pageId;this.xH=J.S("vss_playback_use_send_and_write");J.livingRoomAppMode&&(this.livingRoomAppMode=J.livingRoomAppMode);this.Uz=J.Z&&J.S("embeds_append_synth_ch_headers");g.dN(J)&&(this.qf=J.kQ);g.q1(g.S8(J))&&this.W.push(1);this.accessToken= g.ks(F);F.Ga[this.NW]?this.Z=F.Ga[this.NW]:F.Ga.playback&&(this.Z=F.Ga.playback);this.adFormat=F.adFormat;this.adQueryId=F.adQueryId;this.autoplay=Dh(F);this.T&&(this.Se=(F.S("html5_enable_log_server_autoplay")||F.S("enable_cleanup_masthead_autoplay_hack_fix"))&&F.dK&&$s(F)==="adunit"?!0:!1);this.autonav=F.isAutonav||this.autonav;this.contentVideoId=QR(F);this.clientPlaybackNonce=F.clientPlaybackNonce;this.Um=F.T0;F.W&&(this.Tj=F.W,this.cN=F.kZ);F.mdxEnvironment&&(this.mdxEnvironment=F.mdxEnvironment); this.C=F.KW;this.xm=F.xm;F.U&&(this.Ly=F.U.itag,F.Z&&F.Z.itag!==this.Ly&&(this.bR=F.Z.itag));F.C&&Mv(F.C)&&(this.offlineDownloadUserChoice="1");this.eventLabel=$s(F);this.KW=F.GU?!1:F.Vk;this.xo=F.Wu;if(J=ze(F))this.jZ=J;this.YH=F.BE;this.partnerId=F.partnerId;this.eventId=F.eventId;this.playlistId=F.Bi||F.playlistId;this.Xz=F.Xz;this.iq=F.iq;this.I6=F.I6;this.fN=F.fN;this.subscribed=F.subscribed;this.videoId=F.videoId;this.videoMetadata=F.videoMetadata;this.visitorData=F.visitorData;this.osid=F.osid; this.TP=F.TP;this.referrer=F.referrer;this.Yf=F.Tt||F.Yf;this.oI=F.KT;this.PC=F.PC;this.userGenderAge=F.userGenderAge;this.bd=F.bd;this.embedsRct=F.embedsRct;this.embedsRctn=F.embedsRctn;g.dN(this.rD)&&F.mutedAutoplay&&(F.S("embeds_enable_full_length_inline_muted_autoplay")&&F.mutedAutoplayDurationMode===2&&F.limitedPlaybackDurationInSeconds===0&&F.endSeconds===0?this.W.push(7):this.W.push(2));F.isEmbedsShortsMode(new g.gl(this.playerWidth,this.playerHeight),!!this.playlistId)&&this.W.push(3);g.HE(F)&& this.W.push(4);this.dD=F.AQ;F.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=F.compositeLiveIngestionOffsetToken)}; BCa=function(F,J){var b=F.sendVisitorIdHeader?F.visitorData:void 0;return g.LH(F.rD,F.accessToken).then(function(I){return bSo(F.uri,F.rD,F.pageId,b,I,J,F.Uz)})}; S_a=function(F,J){return function(){F.rD.S("html5_simplify_pings")?(F.C=F.fW,F.y6=J(),F.M0=0,F.send()):BCa(F).then(function(b){var I=TCY(F);I.cmt=I.len;I.lact="0";var u=J().toFixed(3);I.rt=Number(u).toString();I=g.Os(F.uri,I);F.rD.S("vss_through_gel_double")&&rfk(I);F.kQ?(b==null&&(b={}),F.WN?xP().sendAndWrite(I,b):xP().sendThenWrite(I,b)):b?g.E6(I,b):g.Xp(I)})}}; TCY=function(F){var J={ns:F.If,el:F.eventLabel,cpn:F.clientPlaybackNonce,ver:2,cmt:F.U(F.C),fmt:F.Ly,fs:F.Om?"1":"0",rt:F.U(F.y6),adformat:F.adFormat,content_v:F.contentVideoId,euri:F.GU,lact:F.M0,live:F.jZ,cl:(728418168).toString(),mos:F.zU,state:F.playerState,volume:F.n7};F.subscribed&&(J.subscribed="1");Object.assign(J,F.g9);F.Y==="all"?Object.assign(J,F.Q2):F.Y==="once"&&F.T&&Object.assign(J,F.Q2);F.autoplay&&(J.autoplay="1");F.Se&&(J.sautoplay="1");F.Um&&(J.dni="1");!F.D&&F.qf&&(J.epm=s7Y[F.qf]); F.isFinal&&(J["final"]="1");F.KW&&(J.splay="1");F.xm&&(J.delay=F.xm);F.zj&&(J.hl=F.zj);F.region&&(J.cr=F.region);F.userGenderAge&&(J.uga=F.userGenderAge);F.userAge!==void 0&&F.nW&&(J.uga=F.nW+F.userAge);F.fW!==void 0&&(J.len=F.U(F.fW));!F.D&&F.experimentIds.length>0&&(J.fexp=F.experimentIds.toString());F.V!==null&&(J.rtn=F.U(F.V));F.Yf&&(J.feature=F.Yf);F.iq&&(J.ctrl=F.iq);F.I6&&(J.ytr=F.I6);F.bR&&(J.afmt=F.bR);F.offlineDownloadUserChoice&&(J.ODUC=F.offlineDownloadUserChoice);F.Kk&&(J.lio=F.U(F.Kk)); F.D?(J.idpj=F.xo,J.ldpj=F.YH,F.delayThresholdMet&&(J.dtm="1"),F.N!=null&&(J.rti=F.U(F.N)),F.bd&&(J.ald=F.bd),F.compositeLiveIngestionOffsetToken&&(J.clio=F.compositeLiveIngestionOffsetToken)):F.adType!==void 0&&(J.at=F.adType);F.T1&&(F.T||F.D)&&(J.size=F.T1);F.T&&F.W.length&&(J.pbstyle=F.W.join(","));F.MI!=null&&(F.T||F.D)&&(J.inview=F.U(F.MI));F.D&&(J.volume=$U(F,g.EG(F.segments,function(I){return I.volume})),J.st=$U(F,g.EG(F.segments,function(I){return I.startTime})),J.et=$U(F,g.EG(F.segments,function(I){return I.endTime})), Bc(F.segments,function(I){return I.playbackRate!==1})&&(J.rate=$U(F,g.EG(F.segments,function(I){return I.playbackRate}))),Bc(F.segments,function(I){return I.C!=="-"})&&(J.als=g.EG(F.segments,function(I){return I.C}).join(",")),Bc(F.segments,function(I){return I.previouslyEnded})&&(J.pe=g.EG(F.segments,function(I){return""+ +I.previouslyEnded}).join(","))); J.muted=$U(F,g.EG(F.segments,function(I){return I.muted?1:0})); Bc(F.segments,function(I){return I.visibilityState!==0})&&(J.vis=$U(F,g.EG(F.segments,function(I){return I.visibilityState}))); Bc(F.segments,function(I){return I.connectionType!==0})&&(J.conn=$U(F,g.EG(F.segments,function(I){return I.connectionType}))); Bc(F.segments,function(I){return I.U!==0})&&(J.blo=$U(F,g.EG(F.segments,function(I){return I.U}))); Bc(F.segments,function(I){return!!I.T})&&(J.blo=g.EG(F.segments,function(I){return I.T}).join(",")); Bc(F.segments,function(I){return!!I.compositeLiveStatusToken})&&(J.cbs=g.EG(F.segments,function(I){return I.compositeLiveStatusToken}).join(",")); Bc(F.segments,function(I){return I.Z!=="-"})&&(J.cc=g.EG(F.segments,function(I){return I.Z}).join(",")); Bc(F.segments,function(I){return I.clipId!=="-"})&&(J.clipid=g.EG(F.segments,function(I){return I.clipId}).join(",")); if(Bc(F.segments,function(I){return!!I.audioId})){var b="au"; F.T&&(b="au_d");J[b]=g.EG(F.segments,function(I){return I.audioId}).join(",")}Mk()&&F.Tj&&(J.ctt=F.Tj,J.cttype=F.cN,J.mdx_environment=F.mdxEnvironment); F.Vk&&(J.etype=F.eE!==void 0?F.eE:0);F.oI&&(J.uoo=F.oI);F.livingRoomAppMode&&F.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(J.clram=Y_Y[F.livingRoomAppMode]||F.livingRoomAppMode);F.Z?$Uv(F,J):(J.docid=F.videoId,J.referrer=F.referrer,J.ei=F.eventId,J.of=F.TP,J.osid=F.osid,J.vm=F.videoMetadata,F.adQueryId&&(J.aqi=F.adQueryId),F.autonav&&(J.autonav="1"),F.playlistId&&(J.list=F.playlistId),F.fN&&(J.ssrt="1"),F.PC&&(J.upt=F.PC));F.T&&(F.embedsRct&&(J.rct=F.embedsRct),F.embedsRctn&&(J.rctn= F.embedsRctn),F.compositeLiveIngestionOffsetToken&&(J.clio=F.compositeLiveIngestionOffsetToken));F.dD&&(J.host_cpn=F.dD);return J}; $Uv=function(F,J){if(J&&F.Z){var b=new Set(["q","feature","mos"]),I=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),u=new Set(["aqi","autonav","list","ssrt","upt"]);F.Z.ns==="3pp"&&(J.ns="3pp");for(var w=g.N(Object.keys(F.Z)),M=w.next();!M.done;M=w.next())M=M.value,I.has(M)||b.has(M)||u.has(M)&&!F.Z[M]||(J[M]=F.Z[M])}}; $U=function(F,J){return g.EG(J,F.U).join(",")}; rfk=function(F){F.indexOf("watchtime")!==-1&&g.AY("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:F}})}; Cza=function(F,J){F.attestationResponse&&BCa(F).then(function(b){b=b||{};b.method="POST";b.postParams={atr:F.attestationResponse};F.kQ?F.WN?xP().sendAndWrite(J,b):xP().sendThenWrite(J,b):g.E6(J,b)})}; Cj=function(F){g.R.call(this);this.provider=F;this.W="paused";this.D=NaN;this.V=[10,10,10,40];this.N=this.Y=0;this.eE=this.kQ=this.Gj=this.Tj=this.T=!1;this.U=this.Z=NaN;this.C=new EbC(F)}; DUJ=function(F){if(!F.T){F.provider.videoData.Yn===16623&&g.rQ(Error("Playback for EmbedPage"));var J=XJ(F,"playback");a:{if(F.provider.rD.S("web_player_use_server_vss_schedule")){var b,I=(b=F.provider.videoData.getPlayerResponse())==null?void 0:b.playbackTracking,u=I==null?void 0:I.videostatsScheduledFlushWalltimeSeconds;I=I==null?void 0:I.videostatsDefaultFlushIntervalSeconds;if(u&&u.length>0&&I){b=[];var w=F.provider.videoData.Wu,M=F.provider.videoData.BE,q=-w;u=g.N(u);for(var v=u.next();!v.done;v= u.next())v=v.value,b.push(v-q),q=v;b.push(I+M-w);b.push(I);F.V=b;break a}}F.V=[10+F.provider.videoData.Wu,10,10,40+F.provider.videoData.BE-F.provider.videoData.Wu,40]}G6C(F.C);J.V=QT(F);F.U>0&&(J.C-=F.U);J.send();F.provider.videoData.Ac&&(J=F.provider.rD,I=F.provider.videoData,b={html5:"1",video_id:I.videoId,cpn:I.clientPlaybackNonce,ei:I.eventId,ptk:I.Ac,oid:I.En,ptchn:I.MH,pltype:I.S4,content_v:QR(I)},I.s8&&Object.assign(b,{m:I.s8}),J=g.Os(J.ME+"ptracking",b),Xvv(F,J));F.provider.videoData.xm|| (Q7C(F),RHJ(F),F.t6());F.T=!0;J=F.C;J.C=J.provider.wD.Fb();J.y5=g.dr(J.provider);!(J.T===0&&J.C<5)&&J.C-J.T>2&&(J.T=J.C);J.V=!0;F.provider.rD.S("html5_log_vss_details")&&F.provider.wD.UQ("vssinit",{})}}; QT=function(F,J){J=J===void 0?NaN:J;var b=g.dr(F.provider);J=isNaN(J)?b:J;J=Math.ceil(J);var I=F.V[F.Y];F.Y+11E3;!(w.length>1)&&w[0].isEmpty()||q||(M.V=QT(F,u));M.send();F.N++}},(u-b)*1E3); return F.Z=u}; Rm=function(F){g.m1(F.D);F.D=NaN}; k6m=function(F){F.C.update();F=F.C;F.segments.length&&F.C===F.T||YU(F);var J=F.segments;F.segments=[];return J}; XJ=function(F,J){var b=obk(F.provider);Object.assign(b,{state:F.W});J=new Pzo(F.provider.videoData,F.provider.rD,J,b);J.C=F.provider.wD.Fb();b=F.provider.videoData.clientPlaybackNonce;J.C=F.provider.wD.pV(b);F.provider.videoData.isLivePlayback||(J.fW=F.provider.wD.getDuration(b));F.provider.videoData.C&&(b=F.provider.videoData.C.Ze(J.C))&&(J.Kk=b-J.C);J.y6=g.dr(F.provider);J.segments=[si(F.provider)];return J}; OSm=function(F,J){var b=XJ(F,"watchtime");hHo(F)&&(b.delayThresholdMet=!0,F.Gj=!0);if(F.U>0){for(var I=g.N(J),u=I.next();!u.done;u=I.next())u=u.value,u.startTime-=F.U,u.endTime-=F.U;b.C-=F.U}else b.C=F.C.Lt();b.segments=J;return b}; DW=function(F,J){var b=cfG(F,!isNaN(F.Z));J&&(F.Z=NaN);return b}; cfG=function(F,J){var b=OSm(F,k6m(F));!isNaN(F.Z)&&J&&(b.N=F.Z);return b}; hHo=function(F){var J;if(J=F.provider.videoData.isLoaded()&&F.provider.videoData.xm&&F.T&&!F.Gj)J=F.C,J=J.D+J.provider.wD.Fb()-J.T>=F.provider.videoData.xm;return!!J}; Q7C=function(F){F.provider.videoData.youtubeRemarketingUrl&&!F.kQ&&(Xvv(F,F.provider.videoData.youtubeRemarketingUrl),F.kQ=!0)}; RHJ=function(F){F.provider.videoData.googleRemarketingUrl&&!F.eE&&(Xvv(F,F.provider.videoData.googleRemarketingUrl),F.eE=!0)}; UU_=function(F){F.provider.rD.S("html5_log_vss_details")&&F.provider.wD.UQ("vssfi",{});if(!F.iR()&&F.T){F.W="paused";var J=DW(F);J.isFinal=!0;J.send();F.dispose()}}; xUz=function(F,J){if(!F.iR())if(g.x(J.state,2)||g.x(J.state,512)){if(F.W="paused",g.e1(J,2)||g.e1(J,512))g.e1(J,2)&&(F.C.previouslyEnded=!0),F.T&&(Rm(F),DW(F).send(),F.Z=NaN)}else if(g.x(J.state,8)){F.W="playing";var b=F.T&&isNaN(F.D)?QT(F):NaN;!isNaN(b)&&(aJ(J,64)<0||aJ(J,512)<0)&&(F=cfG(F,!1),F.V=b,F.send())}else F.W="paused"}; nbk=function(F,J,b){if(!F.Tj){b||(b=XJ(F,"atr"));b.attestationResponse=J;try{b.send()}catch(I){if(I.message!=="Unknown Error")throw I;}F.Tj=!0}}; Xvv=function(F,J){var b=F.provider.rD;g.LH(F.provider.rD,g.ks(F.provider.videoData)).then(function(I){var u=F.provider.rD.pageId,w=F.provider.rD.sendVisitorIdHeader?F.provider.videoData.visitorData:void 0,M=F.provider.rD.S("vss_pings_using_networkless")||F.provider.rD.S("kevlar_woffle"),q=F.provider.rD.S("allow_skip_networkless");I=bSo(J,b,u,w,I);IJz(J,I,{token:F.provider.videoData.W,Ix:F.provider.videoData.kZ,mdxEnvironment:F.provider.videoData.mdxEnvironment},b,void 0,M&&!q,!1,!0)})}; tSC=function(){this.endTime=this.startTime=-1;this.Z="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.U=0;this.compositeLiveStatusToken=this.T=void 0;this.volume=this.connectionType=0;this.muted=!1;this.C=this.clipId="-";this.previouslyEnded=!1}; kU=function(F,J,b){this.videoData=F;this.rD=J;this.wD=b;this.C=void 0}; g.dr=function(F){return ZS_(F)()}; ZS_=function(F){if(!F.C){var J=g.Ha(function(I){var u=(0,g.jR)();I&&u<=631152E6&&(F.wD.UQ("ytnerror",{issue:28799967,value:""+u}),u=(new Date).getTime()+2);return u},F.rD.S("html5_validate_yt_now")),b=J(); F.C=function(){return Math.round(J()-b)/1E3}; F.wD.oZ()}return F.C}; obk=function(F){var J=F.wD.w$()||{};J.fs=F.wD.tO();J.volume=F.wD.getVolume();J.muted=F.wD.isMuted()?1:0;J.mos=J.muted;J.clipid=F.wD.Pz();var b;J.playerheight=((b=F.wD.getPlayerSize())==null?void 0:b.height)||0;var I;J.playerwidth=((I=F.wD.getPlayerSize())==null?void 0:I.width)||0;F=F.videoData;b={};F.U&&(b.fmt=F.U.itag,F.Z&&(F.Se?F.Z.itag!==F.U.itag:F.Z.itag!=F.U.itag)&&(b.afmt=F.Z.itag));b.ei=F.eventId;b.list=F.playlistId;b.cpn=F.clientPlaybackNonce;F.videoId&&(b.v=F.videoId);F.T8&&(b.infringe=1); (F.GU?0:F.Vk)&&(b.splay=1);(I=ze(F))&&(b.live=I);F.dK&&(b.sautoplay=1);F.NJ&&(b.autoplay=1);F.Xz&&(b.sdetail=F.Xz);F.partnerId&&(b.partnerid=F.partnerId);F.osid&&(b.osid=F.osid);F.UK&&(b.cc=g.Pgk(F.UK));return Object.assign(J,b)}; pv4=function(F){var J=aIa();if(J)return HSG[J]||HSG.other;if(g.jB(F.rD)){F=navigator.userAgent;if(/[Ww]ireless[)]/.test(F))return 3;if(/[Ww]ired[)]/.test(F))return 30}return 0}; si=function(F){var J=new tSC,b;J.Z=((b=obk(F).cc)==null?void 0:b.toString())||"-";J.playbackRate=F.wD.getPlaybackRate();b=F.wD.getVisibilityState();b!==0&&(J.visibilityState=b);F.rD.cN&&(J.U=1);J.T=F.videoData.xx;J.compositeLiveStatusToken=F.videoData.compositeLiveStatusToken;b=F.wD.getAudioTrack();b.j3&&b.j3.id&&b.j3.id!=="und"&&(J.audioId=b.j3.id);J.connectionType=pv4(F);J.volume=F.wD.getVolume();J.muted=F.wD.isMuted();J.clipId=F.wD.Pz()||"-";J.C=F.videoData.pM||"-";return J}; g.Oi=function(F,J){g.R.call(this);var b=this;this.provider=F;this.Z=!1;this.T=new Map;this.r0=new g.FC;this.Po={JgQ:function(){return b.qoe}, wl_:function(){return b.C}, iNR:function(){return b.U}}; this.provider.videoData.o8()&&!this.provider.videoData.qh&&(this.C=new Cj(this.provider),this.C.U=this.provider.videoData.xo/1E3,g.k(this,this.C),this.qoe=new g.Pg(this.provider,J),g.k(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.UV=this.provider.videoData.clientPlaybackNonce)&&this.T.set(this.UV,this.C));if(F.rD.playerCanaryState==="canary"||F.rD.playerCanaryState==="holdback")this.U=new Wg(this.provider),g.k(this,this.U)}; LyJ=function(F){return!!F.C&&!!F.qoe}; om=function(F){F.U&&cuk(F.U);F.qoe&&Wyz(F.qoe)}; FQ_=function(F){if(F.qoe){F=F.qoe;for(var J=F.provider.videoData,b=F.provider.rD,I=g.N(b.fL),u=I.next();!u.done;u=I.next())T$(F,u.value);if(F.provider.S("html5_enable_qoe_cat_list"))for(I=g.N(J.oV),u=I.next();!u.done;u=I.next())T$(F,u.value);else J.fL&&T$(F,F.provider.videoData.fL);J.MW()&&(I=J.C,qb(J)&&T$(F,"manifestless"),I&&yy(I)&&T$(F,"live-segment-"+yy(I).toFixed(1)));bE(J)?T$(F,"sabr"):F.dM(ei(J));if(OW(J)||J.vV())J.vV()&&T$(F,"ssa"),T$(F,"lifa");J.gatewayExperimentGroup&&(I=J.gatewayExperimentGroup, I==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?I="spkadtrt":I==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(I="spkadctrl"),T$(F,I));b.Tj!=="yt"&&(F.C.len=[J.lengthSeconds.toFixed(2)]);J.cotn&&!hw(J)&&F.pZ(!0);b.hJ()&&(J=aJm())&&F.UQ("cblt",{m:J});if(b.S("html5_log_screen_diagonal")){b=F.UQ;var w;J=((w=window.H5vccScreen)==null?0:w.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;b.call(F,"cbltdiag",{v:J})}}}; JXo=function(F){if(F.provider.wD.IH()){if(F.Z)return;F.Z=!0}F.C&&DUJ(F.C);if(F.U){F=F.U;var J=g.dr(F.provider);F.C<0&&(F.C=J,F.delay.start());F.U=J;F.Z=J}}; bjY=function(F,J){F.C&&(F=F.C,J===58?F.C.update():F.T&&(Rm(F),DW(F).send(),F.Z=NaN))}; IWa=function(F,J){if(g.e1(J,1024)||g.e1(J,512)||g.e1(J,4)){if(F.U){var b=F.U;b.U>=0||(b.C=-1,b.delay.stop())}F.qoe&&(b=F.qoe,b.Y||(b.U=-1))}if(F.provider.videoData.enableServerStitchedDai&&F.UV){var I;(I=F.T.get(F.UV))==null||xUz(I,J)}else F.C&&xUz(F.C,J);if(F.qoe){I=F.qoe;b=J.state;var u=g.dr(I.provider),w=I.getPlayerState(b);dUY(I,u,w,b.seekSource||void 0);w=b.e6;g.x(b,128)&&w&&(w.BG=w.BG||"",zHJ(I,u,w.errorCode,w.Zu,w.BG));(g.x(b,2)||g.x(b,128))&&I.reportStats(u);b.isPlaying()&&!I.Y&&(I.U>=0&& (I.C.user_intent=[I.U.toString()]),I.Y=!0);yf3(I)}F.U&&(I=F.U,UdG(I),I.playerState=J.state,I.U>=0&&g.e1(J,16)&&I.seekCount++,J.state.isError()&&I.send());F.provider.wD.IH()&&(F.r0=J.state)}; uJY=function(F){if(F.provider.videoData.enableServerStitchedDai&&F.UV){var J;(J=F.T.get(F.UV))!=null&&YU(J.C)}else F.C&&YU(F.C.C)}; wgv=function(F){F.U&&F.U.send();if(F.qoe){var J=F.qoe;if(J.T){J.r0==="PL"&&(J.r0="N");var b=g.dr(J.provider);g.VT(J,b,"vps",[J.r0]);J.Y||(J.U>=0&&(J.C.user_intent=[J.U.toString()]),J.Y=!0);J.provider.rD.hJ()&&J.UQ("finalized",{});J.WN=!0;J.reportStats(b)}}if(F.provider.videoData.enableServerStitchedDai)for(J=g.N(F.T.values()),b=J.next();!b.done;b=J.next())UU_(b.value);else F.C&&UU_(F.C);F.dispose()}; MAv=function(F,J){F.C&&nbk(F.C,J)}; AXk=function(F){if(!F.C)return null;var J=XJ(F.C,"atr");return function(b){F.C&&nbk(F.C,b,J)}}; qik=function(F,J,b,I){b.adFormat=b.If;var u=J.wD;J=new Cj(new kU(b,J.rD,{getDuration:function(){return b.lengthSeconds}, getCurrentTime:function(){return u.getCurrentTime()}, Fb:function(){return u.Fb()}, pV:function(){return u.pV()}, IH:function(){return u.IH()}, Jt:function(){return u.Jt()}, getPlayerSize:function(){return u.getPlayerSize()}, getAudioTrack:function(){return b.getAudioTrack()}, getPlaybackRate:function(){return u.getPlaybackRate()}, mH:function(){return u.mH()}, getVisibilityState:function(){return u.getVisibilityState()}, Iu:function(){return u.Iu()}, w$:function(){return u.w$()}, getVolume:function(){return u.getVolume()}, isMuted:function(){return u.isMuted()}, tO:function(){return u.tO()}, Pz:function(){return u.Pz()}, getProximaLatencyPreference:function(){return u.getProximaLatencyPreference()}, oZ:function(){u.oZ()}, UQ:function(w,M){u.UQ(w,M)}, Kt:function(){return u.Kt()}})); J.U=I;g.k(F,J);return J}; vUa=function(){this.O8=0;this.T=this.Oi=this.TH=this.U=NaN;this.C={};this.bandwidthEstimate=NaN}; hX=function(F,J,b){g.R.call(this);var I=this;this.rD=F;this.wD=J;this.U=b;this.C=new Map;this.UV="";this.Po={b7:function(){return Array.from(I.C.keys())}}}; aWY=function(F,J){F.C.has(J)&&(wgv(F.C.get(J)),F.C.delete(J))}; era=function(){this.C=g.IV;this.array=[]}; pgG=function(F,J,b){var I=[];for(J=KQC(F,J);Jb)break}return I}; gUY=function(F,J){var b=[];F=g.N(F.array);for(var I=F.next();!I.done&&!(I=I.value,I.contains(J)&&b.push(I),I.start>J);I=F.next());return b}; mS4=function(F){return F.array.slice(KQC(F,0x7ffffffffffff),F.array.length)}; KQC=function(F,J){F=qL(F.array,function(b){return J-b.start||1}); return F<0?-(F+1):F}; yXv=function(F,J){var b=NaN;F=g.N(F.array);for(var I=F.next();!I.done;I=F.next())if(I=I.value,I.contains(J)&&(isNaN(b)||I.endJ&&(isNaN(b)||I.startF.mediaTime+F.D&&J1)F.Z=!0;if((u===void 0?0:u)||isNaN(F.U))F.U=J;if(F.C)J!==F.mediaTime&&(F.C=!1);else if(J>0&&F.mediaTime===J){u=1500;if(F.rD.S("html5_buffer_underrun_transition_fix")){u=g.eB(F.rD.experiments,"html5_min_playback_advance_for_steady_state_secs");var w=g.eB(F.rD.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");u=u>0&&w>0&&Math.abs(J-F.U)(I||!F.Z?u:400)}F.mediaTime=J;F.T=b;return!1}; WQa=function(F,J){this.videoData=F;this.C=J}; dS3=function(F,J,b){return J.b_(b).then(function(){return r$(new WQa(J,J.T))},function(I){I instanceof Error&&g.rQ(I); var u=P4('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),w=Tj('audio/mp4; codecs="mp4a.40.2"'),M=u||w,q=J.isLivePlayback&&!g.HG(F.D,!0);I="fmt.noneavailable";q?I="html5.unsupportedlive":M||(I="html5.missingapi");M=q||!M?2:1;u={buildRej:"1",a:J.wk(),d:!!J.y6,drm:J.So(),f18:J.IP.indexOf("itag=18")>=0,c18:u};J.C&&(J.So()?(u.f142=!!J.C.C["142"],u.f149=!!J.C.C["149"],u.f279=!!J.C.C["279"]):(u.f133=!!J.C.C["133"],u.f140=!!J.C.C["140"],u.f242=!!J.C.C["242"]),u.cAAC=w,u.cAVC=Tj('video/mp4; codecs="avc1.42001E"'), u.cVP9=Tj('video/webm; codecs="vp9"'));J.D&&(u.drmsys=J.D.keySystem,w=0,J.D.C&&(w=Object.keys(J.D.C).length),u.drmst=w);return new E5(I,u,M)})}; tX=function(F){this.data=window.Float32Array?new Float32Array(F):Array(F);this.U=this.C=F-1}; EUo=function(F){return F.data[F.C]||0}; jm7=function(F){this.D=F;this.T=this.U=0;this.Z=new tX(50)}; Hg=function(F,J,b){g.uA.call(this);this.videoData=F;this.experiments=J;this.W=b;this.U=[];this.Z=0;this.T=!0;this.D=!1;this.V=0;b=new G$z;F.latencyClass==="ULTRALOW"&&(b.Z=!1);F.nW?b.U=3:g.dS(F)&&(b.U=2);F.latencyClass==="NORMAL"&&(b.W=!0);var I=g.eB(J,"html5_liveness_drift_proxima_override");if(ei(F)!==0&&I){b.C=I;var u;((u=F.C)==null?0:P1k(u))&&b.C--}bE(F)&&J.pW("html5_sabr_parse_live_metadata_playback_boundaries")&&(b.N=!0);if(g.D$("trident/")||g.D$("edge/"))u=g.eB(J,"html5_platform_minimum_readahead_seconds")|| 3,b.T=Math.max(b.T,u);g.eB(J,"html5_minimum_readahead_seconds")&&(b.T=g.eB(J,"html5_minimum_readahead_seconds"));g.eB(J,"html5_maximum_readahead_seconds")&&(b.Y=g.eB(J,"html5_maximum_readahead_seconds"));J.pW("html5_force_adaptive_readahead")&&(b.Z=!0);if(u=g.eB(J,"html5_liveness_drift_chunk_override"))b.C=u;vE(F)&&(b.C=(b.C+1)/5,F.latencyClass==="LOW"&&(b.C*=2));if(F.latencyClass==="ULTRALOW"||F.latencyClass==="LOW")b.D=g.eB(J,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,b.V=g.eB(J, "html5_low_latency_max_allowable_liveness_drift_chunks")||10;this.policy=b;this.Y=this.policy.U!==1;this.C=ZW(this,VAo(this,isNaN(F.liveChunkReadahead)?3:F.liveChunkReadahead,F))}; Pmz=function(F,J){if(J)return J=F.videoData,J=VAo(F,isNaN(J.liveChunkReadahead)?3:J.liveChunkReadahead,J),ZW(F,J);if(F.U.length){if(Math.min.apply(null,F.U)>1)return ZW(F,F.C-1);if(F.policy.Z)return ZW(F,F.C+1)}return F.C}; Br7=function(F,J){if(!F.U.length)return!1;var b=F.C;F.C=Pmz(F,J===void 0?!1:J);if(J=b!==F.C)F.U=[],F.Z=0;return J}; Lj=function(F,J){return J>=F.z8()-Trm(F)}; rXG=function(F,J,b){J=Lj(F,J);b||J?J&&(F.T=!0):F.T=!1;F.Y=F.policy.U===2||F.policy.U===3&&F.T}; Si7=function(F,J){J=Lj(F,J);F.D!==J&&F.publish("livestatusshift",J);F.D=J}; Trm=function(F){var J=F.policy.C;F.D||(J=Math.max(J-1,0));return J*FI(F)}; VAo=function(F,J,b){b.nW&&J--;vE(b)&&(J=1);if(ei(b)!==0&&(F=g.eB(F.experiments,"html5_live_chunk_readahead_proxima_override"))){J=F;var I;((I=b.C)==null?0:P1k(I))&&J++}return J}; FI=function(F){return F.videoData.C?yy(F.videoData.C)||5:5}; ZW=function(F,J){J=Math.max(Math.max(1,Math.ceil(F.policy.T/FI(F))),J);return Math.min(Math.min(8,Math.floor(F.policy.Y/FI(F))),J)}; G$z=function(){this.T=0;this.Y=Infinity;this.Z=!0;this.C=2;this.U=1;this.W=!1;this.V=10;this.N=!1;this.D=1}; IX=function(F){g.R.call(this);this.wD=F;this.C=0;this.U=null;this.W=this.Z=0;this.T={};this.rD=this.wD.J();this.D=new g.ty(this.Va,1E3,this);this.bR=new JZ({delayMs:g.eB(this.rD.experiments,"html5_seek_timeout_delay_ms")});this.WN=new JZ({delayMs:g.eB(this.rD.experiments,"html5_long_rebuffer_threshold_ms")});this.cN=bt(this,"html5_seek_set_cmt");this.zj=bt(this,"html5_seek_jiggle_cmt");this.Jz=bt(this,"html5_seek_new_elem");this.Kk=bt(this,"html5_unreported_seek_reseek");this.Gj=bt(this,"html5_long_rebuffer_jiggle_cmt"); this.fW=bt(this,"html5_long_rebuffer_ssap_clip_not_match");this.kQ=new JZ({delayMs:2E4});this.KW=bt(this,"html5_seek_new_elem_shorts");this.nW=bt(this,"html5_seek_new_media_source_shorts_reuse");this.oI=bt(this,"html5_seek_new_media_element_shorts_reuse");this.dD=bt(this,"html5_reseek_after_time_jump");this.Y=bt(this,"html5_gapless_handoff_close_end_long_rebuffer");this.Tj=bt(this,"html5_gapless_slow_seek");this.N=bt(this,"html5_gapless_slice_append_stuck");this.eE=bt(this,"html5_gapless_slow_start"); this.V=bt(this,"html5_ads_preroll_lock_timeout");this.xm=bt(this,"html5_ssap_ad_longrebuffer_new_element");this.Um=new JZ({delayMs:g.eB(this.rD.experiments,"html5_skip_slow_ad_delay_ms")||5E3,rE:!this.rD.S("html5_report_slow_ads_as_error")});this.Q2=new JZ({delayMs:g.eB(this.rD.experiments,"html5_skip_slow_ad_delay_ms")||5E3,rE:!this.rD.S("html5_skip_slow_buffering_ad")});this.Om=new JZ({delayMs:g.eB(this.rD.experiments,"html5_slow_start_timeout_delay_ms")});this.qf=bt(this,"html5_slow_start_no_media_source"); g.k(this,this.D)}; bt=function(F,J){var b=g.eB(F.rD.experiments,J+"_delay_ms");F=F.rD.S(J+"_cfl");return new JZ({delayMs:b,rE:F})}; smk=function(F,J){F.C=J}; ut=function(F,J,b,I,u,w,M,q){J.test(b)?(F.je(u,J,M),J.rE||w()):(J.cG&&J.U&&!J.Z?(b=(0,g.jR)(),I?J.C||(J.C=b):J.C=0,w=!I&&b-J.U>J.cG,b=J.C&&b-J.C>J.hC||w?J.Z=!0:!1):b=!1,b&&(q=Object.assign({},F.Cy(J),q),q.wn=M,q.we=u,q.wsuc=I,F.wD.UQ("workaroundReport",q),I&&(J.reset(),F.T[u]=!1)))}; JZ=function(F){var J=F===void 0?{}:F;F=J.delayMs===void 0?0:J.delayMs;var b=J.hC===void 0?1E3:J.hC;var I=J.cG===void 0?3E4:J.cG;J=J.rE===void 0?!1:J.rE;this.C=this.U=this.T=this.startTimestamp=0;this.Z=!1;this.D=Math.ceil(F/1E3);this.hC=b;this.cG=I;this.rE=J}; Xg7=function(F){g.R.call(this);var J=this;this.wD=F;this.W=this.C=this.Zv=this.mediaElement=this.playbackData=null;this.Z=0;this.D=this.Tj=this.T=null;this.eE=!1;this.Um=0;this.Y=!1;this.timestampOffset=0;this.V=!0;this.zj=0;this.Jz=this.Om=!1;this.N=0;this.nW=!1;this.Gj=0;this.rD=this.wD.J();this.videoData=this.wD.getVideoData();this.policy=new Yiz;this.kQ=new IX(this.wD);this.bR=this.dD=this.qf=this.U=NaN;this.fW=new g.ty(function(){$SG(J,!1)},2E3); this.Q2=new g.ty(function(){wo(J)}); this.KW=new g.ty(function(){J.eE=!0;Cm4(J,{})}); this.cN=NaN;this.WN=new g.ty(function(){var b=J.rD.GU;b.C+=1E4/36E5;b.C-b.T>1/6&&(DO4(b),b.T=b.C);J.WN.start()},1E4); g.k(this,this.kQ);g.k(this,this.fW);g.k(this,this.KW);g.k(this,this.Q2);g.k(this,this.WN)}; DS4=function(F,J){F.playbackData=J;F.videoData.isLivePlayback&&(F.W=new jm7(function(){a:{if(F.playbackData&&F.playbackData.C.C){if(qb(F.videoData)&&F.Zv){var b=F.Zv.zS.X3()||0;break a}if(F.videoData.C){b=F.videoData.C.kQ;break a}}b=0}return b}),F.C=new Hg(F.videoData,F.rD.experiments,function(){return F.lC(!0)})); Mg(F.wD)?(J=Qmv(F),J.bM?(F.S("html5_sabr_enable_utc_seek_requests")&&bE(F.videoData)&&F.CI(J.bM,J.startSeconds),F.Z=J.startSeconds):J.startSeconds>0&&F.seekTo(J.startSeconds,{Ky:"seektimeline_startPlayback",seekSource:15}),F.V=!1):RrJ(F)||(F.Z=F.Z||(g.oH(F.videoData)?0:F.videoData.startSeconds)||0)}; OjJ=function(F,J){(F.Zv=J)?k$_(F,!0):AZ(F)}; oUz=function(F,J){g.Z_(F.kQ.D);F.S("html5_exponential_memory_for_sticky")&&(J.state.isPlaying()?g.Z_(F.WN):F.WN.stop());if(F.mediaElement)if(J.oldState.state===8&&AV(J.state)&&J.state.isBuffering()){J=F.mediaElement.getCurrentTime();var b=F.mediaElement.Z4();var I=F.S("manifestless_post_live_ufph")||F.S("manifestless_post_live")?wu(b,Math.max(J-3.5,0)):wu(b,J-3.5);I>=0&&J>b.end(I)-1.1&&I+10?(qg(F.wD,F.getCurrentTime()+F.videoData.limitedPlaybackDurationInSeconds),F.Jz=!0):F.videoData.isLivePlayback&&F.videoData.endSeconds>0&&(qg(F.wD,F.getCurrentTime()+F.videoData.endSeconds),F.Jz=!0))}; cXG=function(F,J){var b=F.getCurrentTime(),I=F.isAtLiveHead(b);if(F.W&&I){var u=F.W;if(u.C&&!(b>=u.U&&b50&&u.U.shift())),u=F.C,rXG(u,b,J===void 0?!0:J),Si7(u,b),J&&$SG(F,!0));I!==F.Om&&(J=F.getCurrentTime()-F.bR<=500,b=F.Um>=1E3,J||b||(J=F.wD.zF(),J.qoe&&(J=J.qoe,b=g.dr(J.provider), g.VT(J,b,"lh",[I?"1":"0"])),F.Om=I,F.Um++,F.bR=F.getCurrentTime()))}; $SG=function(F,J){if(F.C){var b=F.C;var I=F.getCurrentTime();!Lj(b,I)&&b.B0()?(b.policy.W&&(b.policy.C=Math.max(b.policy.C+b.policy.D,b.policy.V)),b=Infinity):b=I0&&tG(F.mediaElement)>0&&(F.U=vO(F,F.U,!1)),!F.mediaElement||!Zj7(F))F.Q2.start(750);else if(!isNaN(F.U)&&isFinite(F.U)){var J=F.dD-(F.U-F.timestampOffset);if(!(J===0||F.S("html5_enable_new_seek_timeline_logic")&&Math.abs(J)<.005))if(J=F.mediaElement.getCurrentTime()-F.U,Math.abs(J)<=F.zj||F.S("html5_enable_new_seek_timeline_logic")&&Math.abs(J)<.005)F.T&&F.T.resolve(F.mediaElement.getCurrentTime()); else{if(F.videoData.GS)F.videoData.GS=!1;else if(!Aw(F.videoData)&&F.U>=F.lC()-.1){F.U=F.lC();F.T.resolve(F.lC());F.wD.vk();return}try{var b=F.U-F.timestampOffset;F.mediaElement.seekTo(b);F.kQ.C=b;F.dD=b;F.Z=F.U;F.S("html5_enable_new_seek_timeline_logic")&&(F.Y=!1)}catch(I){}}}}; Zj7=function(F){if(!F.mediaElement||F.mediaElement.kR()===0||F.mediaElement.hasError())return!1;var J=F.mediaElement.getCurrentTime()>0;if(!(F.videoData.T&&F.videoData.T.C||F.videoData.isLivePlayback)&&F.videoData.So())return J;if(F.U>=0){var b=F.mediaElement.Me();if(b.length||!J)return Mt(b,F.U-F.timestampOffset)}return J}; tAG=function(F,J){F.D&&(F.D.resolve(J),F.wD.yv(),F.rD.hJ()&&(J=F.Cy(),J["native"]=""+ +F.Y,J.otgt=""+(F.U+F.timestampOffset),F.wD.UQ("seekEnd",J)));AZ(F)}; AZ=function(F){F.U=NaN;F.dD=NaN;F.T=null;F.Tj=null;F.D=null;F.eE=!1;F.Y=!1;F.zj=0;F.fW.stop();F.KW.stop()}; FPa=function(F,J,b){var I=F.mediaElement,u=J.type;switch(u){case "seeking":var w=I.getCurrentTime()+F.timestampOffset;if(!F.T||F.Y&&w!==F.U){var M=!!F.T;F.T=new xn;F.S("html5_enable_new_seek_timeline_logic")&&F.T.then(function(v){tAG(F,v)},function(){AZ(F)}); if(F.videoData.isAd()){var q;LHY({adCpn:F.videoData.clientPlaybackNonce,contentCpn:(q=F.videoData.AQ)!=null?q:""},J.C)}F.dD=w;smk(F.kQ,I.getCurrentTime());F.seekTo(w,{seekSource:104,Ky:"seektimeline_mediaElementEvent"});b&&HjJ(b,w*1E3,!!M);F.Y=!0}break;case "seeked":F.T&&F.T.resolve(F.mediaElement.getCurrentTime());break;case "loadedmetadata":Mg(F.wD)||LQC(F);wo(F);break;case "progress":wo(F);break;case "pause":F.N=F.getCurrentTime()}F.N&&((u==="play"||u==="playing"||u==="timeupdate"||u==="progress")&& F.getCurrentTime()-F.N>10&&(F.S("html5_enable_new_media_element_puase_jump")?(F.wD.je(new E5("qoe.restart",{reason:"pauseJump"})),F.wD.sV()):F.seekTo(F.N,{Ky:"pauseJump"})),u!=="pause"&&u!=="play"&&u!=="playing"&&u!=="progress"&&(F.N=0))}; JZY=function(F){return(EW(F.videoData)||!!F.videoData.liveUtcStartSeconds)&&(!!F.videoData.liveUtcStartSeconds||RrJ(F))&&!!F.videoData.C}; RrJ=function(F){return!!F.videoData.startSeconds&&isFinite(F.videoData.startSeconds)&&F.videoData.startSeconds>1E9}; Qmv=function(F){var J=0,b=NaN,I="";if(!F.V)return{startSeconds:J,bM:b,source:I};F.videoData.fW?J=F.videoData.qf:Aw(F.videoData)&&(J=Infinity);if(g.dS(F.videoData))return{startSeconds:J,bM:b,source:I};F.videoData.startSeconds?(I="ss",J=F.videoData.startSeconds):F.videoData.Uz&&(I="stss",J=F.videoData.Uz);F.videoData.liveUtcStartSeconds&&(b=F.videoData.liveUtcStartSeconds);if(isFinite(J)&&(J>F.lC()||JF.lC()||b0?(I.onesie="0",F.handleError(new E5("html5.missingapi",I)),!1):!0}; axz=function(F){var J=SV();sf(J,F);return g.IW(J,vXz())}; AZa=function(F,J){var b,I,u,w,M,q,v,a,e,K,p,m,y,f,d,G,P,r,Q,D,t,n,uk,AJ,F7,h;return g.S(function(L){if(L.C==1)return J.fetchType="onesie",b=Nwz(J,F.getPlayerSize(),F.getVisibilityState()),I=new nS(F,b),g.T(L,I.fetch(),2);u=L.U;w={player_response:u};J.loading=!1;M=F.t_.S$;if(I.qk){q=g.N(I.qk.entries());for(v=q.next();!v.done;v=q.next())a=v.value,e=g.N(a),K=e.next().value,p=e.next().value,m=K,y=p,M.C.set(m,y,180),m===J.videoId&&(f=y.nP(),J.ws=f);M.lB=I}d=g.N(I.iO.entries());for(G=d.next();!G.done;G= d.next())P=G.value,r=g.N(P),Q=r.next().value,D=r.next().value,t=Q,n=D,M.U.set(t,n,180);g.O9(J,w,!0);if(J.loading||DR(J))return L.return(Promise.resolve());M.C.removeAll();M.U.removeAll();J.ws=[];uk={};AJ="onesie.response";F7=0;J.errorCode?(AJ="auth",uk.ec=J.errorCode,uk.ed=J.errorDetail,uk.es=J.yx||"",F7=2):(uk.successButUnplayable="1",uk.disposed=""+ +J.iR(),uk.afmts=""+ +/adaptiveFormats/.test(u),uk.cpn=J.clientPlaybackNonce);h=new E5(AJ,uk,F7);return L.return(Promise.reject(h))})}; wOa=function(F,J){var b,I,u,w,M,q,v,a,e,K,p;return g.S(function(m){switch(m.C){case 1:b=J.isAd(),I=!b,u=b?1:3,w=0;case 2:if(!(w0)){m.gD(5);break}return g.T(m,db(5E3),6);case 6:M=new g.hC("Retrying OnePlatform request",{attempt:w}),g.rQ(M);case 5:return g.lk(m,7),g.T(m,eOY(F,J),9);case 9:return m.return();case 7:q=g.dY(m);v=Gj(q);a=v.errorCode;e=F.J();K=e.S("html5_use_network_error_code_enums")?401:"401";I&&a==="manifest.net.badstatus"&&v.details.rc===K&&(I=!1,w===u-1&&(u+= 1));if(w===u-1)return p=KPm(b,v.details),p.details.backend="op",p.details.originec=a,m.return(Promise.reject(p));if(a==="auth"||a==="manifest.net.retryexhausted")return m.return(Promise.reject(v));F.handleError(v);if(jg(v.severity)){m.gD(4);break}case 3:w++;m.gD(2);break;case 4:return m.return(Promise.reject(KPm(b,{backend:"op"})))}})}; eOY=function(F,J){function b(AJ){AJ.readyState===2&&F.G$("ps_c")} var I,u,w,M,q,v,a,e,K,p,m,y,f,d,G,P,r,Q,D,t,n,uk;return g.S(function(AJ){switch(AJ.C){case 1:J.fetchType="gp";I=F.J();u=g.LH(I,g.ks(J));if(!u.C){w=u.getValue();AJ.gD(2);break}return g.T(AJ,u.C,3);case 3:w=AJ.U;case 2:return M=w,q=axz(M),v=Nwz(J,F.getPlayerSize(),F.getVisibilityState()),a=g.ZI(pO4),e=g.ks(J),K=(0,g.jR)(),p=!1,m="empty",y=0,F.G$("psns"),f={H_:b},g.T(AJ,g.cf(q,v,a,void 0,f),4);case 4:d=AJ.U;F.G$("psnr");if(J.iR())return AJ.return();d?"error"in d&&d.error?(p=!0,m="esf:"+d.error.message, y=d.error.code):d.errorMetadata&&(p=!0,m="its",y=d.errorMetadata.status):p=!0;if(p)return G=0,P=((0,g.jR)()-K).toFixed(),r={},r=I.S("html5_use_network_error_code_enums")?{backend:"op",rc:y,rt:P,reason:m,has_kpt:J.Um?"1":"0",has_mdx_env:J.mdxEnvironment?"1":"0",has_omit_key_flag:g.cT("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:I.pageId?"1":"0",has_token:e?"1":"0",has_vvt:J.eE?"1":"0",is_mdx:J.isMdxPlayback?"1":"0",mdx_ctrl:J.iq||"",token_eq:e===g.ks(J)?"1":"0"}:{backend:"op", rc:""+y,rt:P,reason:m,has_kpt:J.Um?"1":"0",has_mdx_env:J.mdxEnvironment?"1":"0",has_omit_key_flag:g.cT("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:I.pageId?"1":"0",has_token:e?"1":"0",has_vvt:J.eE?"1":"0",is_mdx:J.isMdxPlayback?"1":"0",mdx_ctrl:J.iq||"",token_eq:e===g.ks(J)?"1":"0"},Q="manifest.net.connect",y===429?(Q="auth",G=2):y>200&&(Q="manifest.net.badstatus",y===400&&(G=2)),AJ.return(Promise.reject(new E5(Q,r,G)));J.loading=!1;g.O9(J,{raw_player_response:d},!0); D=d;g.Bu(J.J())&&D&&D.trackingParams&&WX(D.trackingParams);if(J.errorCode)return t={ec:J.errorCode,ed:J.errorDetail,es:J.yx||""},AJ.return(Promise.reject(new E5("auth",t,2)));if(!J.loading&&!DR(J))return n=J.isAd()?"auth":"manifest.net.retryexhausted",uk=J.isAd()?2:1,AJ.return(Promise.reject(new E5(n,{successButUnplayable:"1",hasMedia:g.lE(J)?"1":"0"},uk)));g.N4(AJ)}})}; uI7=function(F,J,b){function I(y){y=Gj(y);if(jg(y.severity))return Promise.reject(y);F.handleError(y);return!1} function u(){return!0} var w,M,q,v,a,e,K,p,m;return g.S(function(y){switch(y.C){case 1:var f=F.J(),d=F.getPlayerSize(),G=F.getVisibilityState();F.isFullscreen();var P=window.location.search;if(J.partnerId===38&&f.playerStyle==="books")P=J.videoId.indexOf(":"),P=g.Os("//play.google.com/books/volumes/"+J.videoId.slice(0,P)+"/content/media",{aid:J.videoId.slice(P+1),sig:J.gb});else if(J.partnerId===30&&f.playerStyle==="docs")P=g.Os("https://docs.google.com/get_video_info",{docid:J.videoId,authuser:J.rb,authkey:J.GJ,eurl:f.oI}); else if(J.partnerId===33&&f.playerStyle==="google-live")P=g.Os("//google-liveplayer.appspot.com/get_video_info",{key:J.videoId});else{f.Tj!=="yt"&&g.Td(Error("getVideoInfoUrl for invalid namespace: "+f.Tj));var r={html5:"1",video_id:J.videoId,cpn:J.clientPlaybackNonce,eurl:f.oI,ps:f.playerStyle,el:$s(J),hl:f.Q2,list:J.playlistId,agcid:J.jh,aqi:J.adQueryId,sts:20138,lact:dP()};Object.assign(r,f.C);f.forcedExperiments&&(r.forced_experiments=f.forcedExperiments);J.eE?(r.vvt=J.eE,J.mdxEnvironment&&(r.mdx_environment= J.mdxEnvironment)):g.ks(J)&&(r.access_token=g.ks(J));J.adFormat&&(r.adformat=J.adFormat);J.slotPosition>=0&&(r.slot_pos=J.slotPosition);J.breakType&&(r.break_type=J.breakType);J.xd!==null&&(r.ad_id=J.xd);J.oe!==null&&(r.ad_sys=J.oe);J.gL!==null&&(r.encoded_ad_playback_context=J.gL);f.captionsLanguagePreference&&(r.cc_lang_pref=f.captionsLanguagePreference);f.Um&&f.Um!==2&&(r.cc_load_policy=f.Um);var Q=g.Rg(g.Qe(),65);g.hP(f)&&Q!=null&&!Q&&(r.device_captions_on="1");f.mute&&(r.mute=f.mute);J.annotationsLoadPolicy&& f.annotationsLoadPolicy!==2&&(r.iv_load_policy=J.annotationsLoadPolicy);J.uK&&(r.endscreen_ad_tracking=J.uK);(Q=f.fW.get(J.videoId))&&Q.xE&&(r.ic_track=Q.xE);J.WN&&(r.itct=J.WN);Dh(J)&&(r.autoplay="1");J.mutedAutoplay&&(r.mutedautoplay=J.mutedAutoplay);J.isAutonav&&(r.autonav="1");J.CM&&(r.noiba="1");J.isMdxPlayback&&(r.mdx="1",r.ytr=J.I6);J.mdxControlMode&&(r.mdx_control_mode=J.mdxControlMode);J.lK&&(r.ytrcc=J.lK);J.b2&&(r.utpsa="1");J.isFling&&(r.is_fling="1");J.isInlinePlaybackNoAd&&(r.mute="1"); J.vnd&&(r.vnd=J.vnd);J.forceAdsUrl&&(Q=J.forceAdsUrl.split("|").length===3,r.force_ad_params=Q?J.forceAdsUrl:"||"+J.forceAdsUrl);J.Ly&&(r.preload=J.Ly);d.width&&(r.width=d.width);d.height&&(r.height=d.height);(J.GU?0:J.Vk)&&(r.splay="1");J.ypcPreview&&(r.ypc_preview="1");QR(J)&&(r.content_v=QR(J));J.nW&&(r.livemonitor=1);f.Gj&&(r.authuser=f.Gj);f.pageId&&(r.pageid=f.pageId);f.Jz&&(r.ei=f.Jz);f.Z&&(r.iframe="1");J.contentCheckOk&&(r.cco="1");J.racyCheckOk&&(r.rco="1");f.V&&J.IB&&(r.live_start_walltime= J.IB);f.V&&J.ZY&&(r.live_manifest_duration=J.ZY);f.V&&J.playerParams&&(r.player_params=J.playerParams);f.V&&J.cycToken&&(r.cyc=J.cycToken);f.V&&J.LT&&(r.tkn=J.LT);G!==0&&(r.vis=G);f.enableSafetyMode&&(r.enable_safety_mode="1");J.Um&&(r.kpt=J.Um);J.mq&&(r.kids_age_up_mode=J.mq);J.kidsAppInfo&&(r.kids_app_info=J.kidsAppInfo);J.Vj&&(r.upg_content_filter_mode="1");f.widgetReferrer&&(r.widget_referrer=f.widgetReferrer.substring(0,128));J.Tj?(d=J.Tj.latitudeE7!=null&&J.Tj.longitudeE7!=null?J.Tj.latitudeE7+ ","+J.Tj.longitudeE7:",",d+=","+(J.Tj.clientPermissionState||0)+","+(J.Tj.locationRadiusMeters||"")+","+(J.Tj.locationOverrideToken||"")):d=null;d&&(r.uloc=d);J.jn&&(r.internalipoverride=J.jn);f.embedConfig&&(r.embed_config=f.embedConfig);f.Mh&&(r.co_rel="1");f.ancestorOrigins.length>0&&(r.ancestor_origins=Array.from(f.ancestorOrigins).join(","));f.homeGroupInfo!==void 0&&(r.home_group_info=f.homeGroupInfo);f.livingRoomAppMode!==void 0&&(r.living_room_app_mode=f.livingRoomAppMode);f.enablePrivacyFilter&& (r.enable_privacy_filter="1");J.isLivingRoomDeeplink&&(r.is_living_room_deeplink="1");J.U8&&J.TX&&(r.clip=J.U8,r.clipt=J.TX);J.XZ&&(r.disable_watch_next="1");J.Ys&&(r.forced_by_var="1");for(var D in r)!gc3.has(D)&&r[D]&&String(r[D]).length>512&&(g.rQ(Error("GVI param too long: "+D)),r[D]="");D=f.ME;g.TB(f)&&(D=ZY(D.replace(/\b(?:www|web)([.-])/,"tv$1"))||f.ME);f=g.Os(D+"get_video_info",r);P&&(f=wQY(f,P));P=f}w=P;q=(M=J.isAd())?1:3;v=0;case 2:if(!(v0)){y.gD(5);break}return g.T(y, db(5E3),6);case 6:e={playerretry:v,playerretrysrc:b},M||(e.recover="embedded"),a=ui(w,e);case 5:return g.T(y,mg7(J,a).then(u,I),7);case 7:if(K=y.U)return y.return();v++;y.gD(2);break;case 4:p=M?"auth":"manifest.net.retryexhausted";m=M?2:1;if(!M&&Math.random()<1E-4)try{g.rQ(new g.hC("b/152131571",btoa(w)))}catch(t){}return y.return(Promise.reject(new E5(p,{backend:"gvi"},m)))}})}; mg7=function(F,J){function b(d){return I(d.xhr)} function I(d){if(!F.iR()){d=d?d.status:-1;var G=0,P=((0,g.jR)()-e).toFixed();P=u.S("html5_use_network_error_code_enums")?{backend:"gvi",rc:d,rt:P}:{backend:"gvi",rc:""+d,rt:P};var r="manifest.net.connect";d===429?(r="auth",G=2):d>200&&(r="manifest.net.badstatus",d===400&&(G=2));return Promise.reject(new E5(r,P,G))}} var u,w,M,q,v,a,e,K,p,m,y,f;return g.S(function(d){if(d.C==1){F.fetchType="gvi";u=F.J();var G={};F.vO&&(G.ytrext=F.vO);(q=g.Vj(G)?void 0:G)?(w={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:q},M=ui(J,{action_display_post:1})):(w={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},M=J);v={};u.sendVisitorIdHeader&&F.visitorData&&(v["X-Goog-Visitor-Id"]=F.visitorData);(a=xj(u.experiments,"debug_sherlog_username"))&&(v["X-Youtube-Sherlog-Username"]=a);Object.keys(v).length> 0&&(w.headers=v);e=(0,g.jR)();return g.T(d,IZ(Vt,M,w).then(void 0,b),2)}K=d.U;if(!K||!K.responseText)return d.return(I(K));F.loading=!1;p=FF(K.responseText);g.O9(F,p,!0);if(F.errorCode)return m={ec:F.errorCode,ed:F.errorDetail,es:F.yx||""},d.return(Promise.reject(new E5("auth",m,2)));if(!F.loading&&!DR(F))return y=F.isAd()?"auth":"manifest.net.retryexhausted",f=F.isAd()?2:1,d.return(Promise.reject(new E5(y,{successButUnplayable:"1"},f)));g.N4(d)})}; KPm=function(F,J){return new E5(F?"auth":"manifest.net.retryexhausted",J,F?2:1)}; go=function(F,J,b){b=b===void 0?!1:b;var I,u,w,M;g.S(function(q){if(q.C==1){I=F.J();if(b&&(!g.U7(I)||$s(J)!=="embedded")||J.XZ||$s(J)!=="adunit"&&(g.jB(I)||CH(I)||g.sV(I)||g.TB(I)||cG(I)==="WEB_CREATOR"))return q.return();u=g.LH(I,g.ks(J));return u.C?g.T(q,u.C,3):(w=u.getValue(),q.gD(2))}q.C!=2&&(w=q.U);M=w;return q.return(yZ7(F,J,M))})}; yZ7=function(F,J,b){var I,u,w,M,q;return g.S(function(v){if(v.C==1){g.lk(v,2);I=axz(b);var a=J.J();g.Qe();var e={context:g.FE(J),videoId:J.videoId,racyCheckOk:J.racyCheckOk,contentCheckOk:J.contentCheckOk,autonavState:"STATE_NONE"};$s(J)==="adunit"&&(e.isAdPlayback=!0);a.embedConfig&&(e.serializedThirdPartyEmbedConfig=a.embedConfig);a.Mh&&(e.showContentOwnerOnly=!0);J.QC&&(e.showShortsOnly=!0);g.Rg(0,141)&&(e.autonavState=g.Rg(0,140)?"STATE_OFF":"STATE_ON");if(g.hP(a)){var K=g.Rg(0,65);K=K!=null? !K:!1;var p=!!g.S9("yt-player-sticky-caption");e.captionsRequested=K&&p}var m;if(a=(m=a.getWebPlayerContextConfig())==null?void 0:m.encryptedHostFlags)e.playbackContext={encryptedHostFlags:a};u=e;w=g.ZI(i1J);F.G$("wn_s");return g.T(v,g.cf(I,u,w),4)}if(v.C!=2)return M=v.U,F.G$("wn_r"),!M||"error"in M&&M.error||(q=M,g.Bu(J.J())&&q.trackingParams&&WX(q.trackingParams),g.O9(J,{raw_watch_next_response:M},!1)),g.Wa(v,0);g.dY(v);g.N4(v)})}; zOm=function(F){F.G$("vir");F.G$("ps_s");Oz("vir",void 0,"video_to_ad");var J=vco(F);J.then(function(){F.G$("virc");Oz("virc",void 0,"video_to_ad");F.G$("ps_r");Oz("ps_r",void 0,"video_to_ad")},function(){F.G$("virc"); Oz("virc",void 0,"video_to_ad")}); return J}; g.it=function(F,J,b,I,u,w,M,q,v,a){v=v===void 0?new g.RH(F):v;a=a===void 0?!0:a;g.uA.call(this);var e=this;this.rD=F;this.playerType=J;this.qW=b;this.DZ=I;this.getVisibilityState=w;this.visibility=M;this.t_=q;this.videoData=v;this.h1=a;this.logger=new g.Hl("VideoPlayer");this.dI=new fWv(this.rD);this.Le=null;this.JI=new im;this.nN=null;this.ji=new V3z(this.rD,this.DZ,this);this.Pr=!0;this.HN=this.Zv=null;this.CN=[];this.zz=new p1;this.Pg=this.g3=null;this.KA=new p1;this.Mw=null;this.f6=this.kc=!1; this.Eh=NaN;this.sB=!1;this.playerState=new g.FC;this.SA=[];this.Jl=new g.s5;this.Qd=new gaC(this);this.mediaElement=null;this.tY=new g.ty(this.htz,15E3,this);this.Ci=this.F9=!1;this.Wk=NaN;this.y4=!1;this.uu=0;this.X7=!1;this.bf=NaN;this.Yq=new aX(new Map([["bufferhealth",function(){return hrC(e.dY)}], ["bandwidth",function(){return e.tp()}], ["networkactivity",function(){return e.rD.schedule.Gj}], ["livelatency",function(){return e.isAtLiveHead()&&e.isPlaying()?NoG(e):NaN}], ["rawlivelatency",function(){return NoG(e)}]])); this.EN=0;this.loop=!1;this.playbackRate=1;this.s9=0;this.dY=new Xg7(this);this.eb=!1;this.Q3=[];this.gH=this.uY=0;this.aO=this.Of=!1;this.Oi=this.TH=0;this.Ox=-1;this.I1="";this.bI=new g.ty(this.bL,0,this);this.dN=!1;this.II=this.xl=null;this.t3I=[this.Jl,this.bI,this.tY,this.Yq];this.mN=this.D1=null;this.G0=function(){var K=e.zF();K.provider.rD.Vk||K.provider.wD.getVisibilityState()===3||(K.provider.rD.Vk=!0);uJY(K);if(K.U){var p=K.U;p.D&&p.C<0&&p.provider.wD.getVisibilityState()!==3&&cuk(p)}K.qoe&& (K=K.qoe,K.Jz&&K.U<0&&K.provider.rD.Vk&&Wyz(K),K.T&&Bg(K));e.Zv&&mP(e);e.rD.v0&&!e.videoData.backgroundable&&e.mediaElement&&!e.Hh()&&(e.isBackground()&&e.mediaElement.EP()?(e.UQ("bgmobile",{suspend:1}),e.Cc(!0,!0)):e.isBackground()||yM(e)&&e.UQ("bgmobile",{resume:1}))}; this.Po={mw:function(K){e.mw(K)}, unE:function(K){e.Le=K}, VD_:function(){return e.uN}, Db:function(){return e.Gk}, SS:function(){return e.HN}, NoI:function(){return e.Gx}, IQv:function(){return e.Pa}, FUG:function(){}, J:function(){return e.rD}, Qa:function(){return e.mediaElement}, B$R:function(K){e.X8(K)}, Nfz:function(){return e.DZ}}; this.logger.debug(function(){return"creating, type "+J}); this.f8=new g.cg(function(){return e.getCurrentTime()},function(){return e.getPlaybackRate()},function(){return e.getPlayerState()},function(K,p){K!==g.u6("endcr")||g.x(e.playerState,32)||e.vk(); u(K,p,e.playerType)},function(K,p){g.oH(e.videoData)&&e.UQ(K,p)}); g.k(this,this.f8);g.k(this,this.dY);lxz(this,v);this.videoData.subscribe("dataupdated",this.RxG,this);this.videoData.subscribe("dataloaded",this.Ha,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.UQ,this);this.videoData.subscribe("ctmpstr",this.fQ,this);this.g2();KVz(this.G0);this.visibility.subscribe("visibilitystatechange",this.G0);this.Gx=new g.ty(this.Xm,g.eB(this.rD.experiments,"html5_player_att_initial_delay_ms")||4500,this);this.Pa= new g.ty(this.Xm,g.eB(this.rD.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.P0=new g.Ui(this)}; lxz=function(F,J){if(F.playerType===2||F.rD.Yf)J.AK=!0;var b=SCz(J.If,J.KI,F.rD.Z,F.rD.V);b&&(J.adFormat=b);F.playerType===2&&(J.NJ=!0);if(F.isFullscreen()||F.rD.Z)b=g.S9("yt-player-autonavstate"),J.autonavState=b||(F.rD.Z?2:F.videoData.autonavState);J.endSeconds&&J.endSeconds>J.startSeconds&&qg(F,J.endSeconds)}; fx7=function(F){wgv(F.uN);g.q8(F.uN);for(var J=F.Gk,b=g.N(J.C.values()),I=b.next();!I.done;I=b.next())wgv(I.value);J.C.clear();g.q8(F.Gk)}; WPG=function(F){var J=F.videoData;zOm(F).then(void 0,function(b){F.videoData!==J||J.iR()||(b=Gj(b),b.errorCode==="auth"&&F.videoData.errorDetail?F.Je(b.errorCode,2,unescape(F.videoData.errorReason),dk(b.details),F.videoData.errorDetail,F.videoData.yx||void 0):F.handleError(b))})}; jXG=function(F){if(!g.x(F.playerState,128))if(F.videoData.isLoaded(),F.logger.debug("finished loading playback data"),F.CN=g.JL(F.videoData.kQ),g.lE(F.videoData)){F.qW.tick("bpd_s");zx(F).then(function(){F.qW.tick("bpd_c");if(!F.iR()){F.kc&&(F.gY(IY(IY(F.playerState,512),1)),yM(F));var I=F.videoData;I.endSeconds&&I.endSeconds>I.startSeconds&&qg(F,I.endSeconds);F.zz.finished=!0;Ng(F,"dataloaded");F.KA.Ax()&&dgm(F);hN3(F.ji,F.Pg)}}); F.S("html5_log_media_perf_info")&&F.UQ("loudness",{v:F.videoData.LF.toFixed(3)},!0);var J,b=(J=F.mediaElement)==null?void 0:J.Pb();b&&"disablePictureInPicture"in b&&F.S("html5_disable_pip_with_standard_api")&&(b.disablePictureInPicture=F.rD.ZY&&!F.videoData.backgroundable);Ecv(F)}else Ng(F,"dataloaded")}; zx=function(F){lt(F);F.Pg=null;var J=dS3(F.rD,F.videoData,F.Hh());F.g3=J;F.g3.then(function(b){Gx3(F,b)},function(b){F.iR()||(b=Gj(b),F.visibility.isBackground()?(f1(F,"vp_none_avail"),F.g3=null,F.zz.reset()):(F.zz.finished=!0,F.Je(b.errorCode,b.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",dk(b.details))))}); return J}; Gx3=function(F,J){if(!F.iR()&&!J.videoData.iR()){F.logger.debug("finished building playback data");F.Pg=J;DS4(F.dY,F.Pg);if(F.videoData.isLivePlayback){var b=VLv(F.t_.S$,F.videoData.videoId)||F.Zv&&!isNaN(F.Zv.Gj);b=F.S("html5_onesie_live")&&b;Mg(F)||F.videoData.Kk>0&&!qb(F.videoData)||b||F.seekTo(F.lC(),{Ky:"videoplayer_playbackData",seekSource:18})}if(F.videoData.T.C){if(F.S("html5_sabr_report_missing_url_as_error")&&qpG(F.videoData)){F.handleError(new E5("fmt.missing",{missabrurl:"1"},2));return}F.Zv? g.rQ(Error("Duplicated Loader")):(b=g.eB(F.rD.experiments,"html5_onesie_defer_content_loader_ms"))&&F.wK()&&VLv(F.t_.S$,F.videoData.AS)?g.pl(function(){F.iR()||F.Zv||Pto(F)},b):Pto(F)}else!F.videoData.T.C&&hw(F.videoData)&&F.N8(new w9(F.videoData.videoId||"",4)); F.Z$();X03(J).then(function(){var I={};F.KL(I);F.rD.hJ()&&F.S("html5_log_media_perf_info")&&F.UQ("av1Info",I);mP(F)})}}; dgm=function(F){F.iR();F.logger.debug("try finish readying playback");if(F.KA.finished)F.logger.debug("already finished readying");else if(F.zz.finished)if(g.x(F.playerState,128))F.logger.debug("cannot finish readying because of error");else if(F.CN.length)F.logger.debug(function(){return"cannot finish readying because of pending preroll: "+F.CN}); else if(F.f8.started||zr7(F.f8),F.Bx())F.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{F.Zv&&(F.f6=vmJ(F.Zv.timing));F.KA.finished||(F.KA.finished=!0);var J=F.S("html5_onesie_live")&&F.Zv&&!isNaN(F.Zv.Gj);!F.videoData.isLivePlayback||F.videoData.Kk>0&&!qb(F.videoData)||J||Mg(F)||(F.logger.debug("seek to head for live"),F.seekTo(Infinity,{Ky:"videoplayer_readying",seekSource:18}),F.isBackground()&&(F.Ci=!0));FQ_(F.zF());F.logger.debug("finished readying playback"); F.publish("playbackready",F);Dj("pl_c",F.qW.timerName)||(F.qW.tick("pl_c"),Oz("pl_c",void 0,"video_to_ad"));Dj("pbr",F.qW.timerName)||(F.qW.tick("pbr"),Oz("pbr",void 0,"video_to_ad"))}else F.logger.debug("playback data not loaded")}; qg=function(F,J){F.nN&&Bo3(F);F.nN=new g.b6(J*1E3,0x7ffffffffffff);F.nN.namespace="endcr";F.addCueRange(F.nN)}; Bo3=function(F){F.removeCueRange(F.nN);F.nN=null}; ToJ=function(F,J,b,I,u){var w=F.zF(u),M=g.oH(F.videoData)?w.getVideoData():F.videoData;M.U=b;var q=g.WO(F);b=new G1o(M,b,J,q?q.itag:"",I);F.rD.experiments.pW("html5_refactor_sabr_video_format_selection_logging")?(b.videoId=u,F.mN=b):w.K_(b);u=F.ji;u.U=0;u.C=0;F.publish("internalvideoformatchange",M,J==="m")}; g.WO=function(F){var J=E$(F);return Fh(J)||!F.Pg?null:g.xL(F.Pg.C.videoInfos,function(b){return J.Z(b)})}; E$=function(F){if(F.Pg){var J=F.ji;var b=F.Pg;F=F.YA();var I=T9m(J);if(Fh(I)){if(I=P23(J,b).compose(YEz(J,b)).compose(C2a(J,b)).compose(O7a(J,b.videoData)).compose(oa3(J,b.videoData,b)).compose(fj(J,b)).compose(SEm(J,b)),Fh(F)||J.S("html5_apply_pbr_cap_for_drm"))I=I.compose(so_(J,b))}else J.S("html5_perf_cap_override_sticky")&&(I=I.compose(fj(J,b))),J.S("html5_ustreamer_cap_override_sticky")&&(I=I.compose(so_(J,b)));I=I.compose(SEm(J,b));J=b.videoData.hG.compose(I).compose(b.videoData.VZ).compose(F)}else J= QE;return J}; FZa=function(F){var J=F.ji;F=F.videoData;var b=O7a(J,F);J.S("html5_disable_client_autonav_cap_for_onesie")||b.compose(oa3(J,F));return b}; mP=function(F){if(F.videoData.T&&F.videoData.T.C){var J=E$(F);F.Zv&&UF7(F.Zv,J)}}; rZ7=function(F){var J;return!!(F.S("html5_native_audio_track_switching")&&g.ia&&((J=F.videoData.U)==null?0:t1(J)))}; S$7=function(F){if(!rZ7(F))return!1;var J;F=(J=F.mediaElement)==null?void 0:J.audioTracks();return!!(F&&F.length>1)}; Y$G=function(F){var J=sXm(F);if(J)return F.videoData.getAvailableAudioTracks().find(function(b){return b.j3.getName()===J})}; sXm=function(F){var J;if(F=(J=F.mediaElement)==null?void 0:J.audioTracks())for(J=0;J0&&(J.D4=I.F$)); J.B9=I.PS;J.hN=j$(b,{},I.T||void 0,Jw(I));J.nW=Fc(I)&&g.sV(b);bE(I)&&(b.S("html5_sabr_allow_video_keyframe_without_audio")&&(J.xo=!0),b.S("html5_sabr_report_partial_segment_estimated_duration")&&(J.uK=!0),J.C=!0,J.lJ=b.S("html5_sabr_enable_utc_seek_requests"),J.fN=b.S("html5_sabr_enable_live_clock_offset"),J.Sl=b.S("html5_disable_client_resume_policy_for_sabr"),J.ul=b.S("html5_trigger_loader_when_idle_network"),J.cE=b.S("html5_sabr_parse_live_metadata_playback_boundaries"),J.LI=b.S("html5_enable_platform_backpressure_with_sabr"), J.c5=b.S("html5_consume_onesie_next_request_policy_for_sabr"),J.Ao=b.S("html5_sabr_report_next_ad_break_time"),J.GH=b.S("html5_log_high_res_buffer_timeline")&&b.hJ(),J.s8=b.S("html5_remove_stuck_slices_beyond_max_buffer_limits"),J.zd=b.S("html5_gapless_sabr_btl_last_slice")&&LC(I),J.QF=b.S("html5_reset_last_appended_slice_on_seek")&&LC(I),qb(I)?(J.XZ=!0,J.v0=b.S("html5_disable_variability_tracker_for_live"),J.Jz=b.S("html5_sabr_use_accurate_slice_info_params"),b.S("html5_simplified_backup_timeout_sabr_live")&& (J.Px=!0,J.xH=J.sW)):J.MI=b.S("html5_probe_request_on_sabr_request_progress"),J.Cu=b.S("html5_serve_start_seconds_seek_for_post_live_sabr"),J.Vk=b.S("html5_flush_index_on_updated_timestamp_offset"),J.qf=b.S("html5_enable_sabr_request_pipelining")&&!g.oH(I),J.Uk=b.S("html5_ignore_partial_segment_from_live_readahead"),J.KI=b.S("html5_use_non_active_broadcast_for_post_live"),J.WN=b.S("html5_use_centralized_player_time"),J.In=b.S("html5_consume_onesie_sabr_seek"),J.eE=b.S("html5_enable_sabr_seek_loader_refactor"), J.hG=b.S("html5_update_segment_start_time_from_media_header"),I.enableServerStitchedDai&&(J.D=!0,J.Op=b.S("html5_reset_server_stitch_state_for_non_sabr_seek"),J.ZT=b.S("html5_remove_ssdai_append_pause"),J.oI=b.S("html5_consume_ssdai_info_with_streaming"),J.R5=b.S("html5_process_all_cuepoints")));J.W=J.C&&b.S("html5_sabr_live");J.Um=g.wNC(I);g_(b.D,mp.BITRATE)&&(J.LW=NaN);if(q=g.eB(b.experiments,"html5_request_size_max_kb"))J.zj=q*1024;b.D.D?J.GU="; "+mp.EXPERIMENTAL.name+"=allowed":b.S("html5_enable_cobalt_tunnel_mode")&& (J.GU="; tunnelmode=true");q=I.serverPlaybackStartConfig;(q==null?0:q.enable)&&(q==null?0:q.playbackStartPolicy)&&(J.fL=!0,Ro(J,q.playbackStartPolicy,2));q=$gG(F);F.JI.removeAll();a:{b=F.t_.S$;if(I=F.videoData.videoId)if(u=b.C.get(I)){b.C.remove(I);b=u;break a}b=void 0}F.Zv=new g.wr(F,F.rD.schedule,J,F.videoData.C,F.videoData.T,E$(F),q,F.videoData.enableServerStitchedDai,b,F.videoData.zj);J=F.videoData.S("html5_disable_preload_for_ssdai_with_preroll")&&F.videoData.isLivePlayback&&F.wK()?!0:F.kc&& g.jB(F.rD)&&F.videoData.isLivePlayback;F.Zv.initialize(F.getCurrentTime(),E$(F),J);F.videoData.probeUrl&&(F.Zv.Jz=F.videoData.probeUrl);if(F.CN.length||F.kc)F.videoData.cotn||jL(F,!1);OjJ(F.dY,F.Zv);F.xl&&(mbv(F.Zv,new g.vg(F.xl)),F.UQ("sdai",{sdl:1}));F.II&&(F.Zv.pQ(F.II),F.dY.V=!1);g.UW(F.videoData)&&(F=F.Zv,F.policy.rZ=F.policy.jY)}; lt=function(F){F.Zv&&(F.Zv.dispose(),F.Zv=null,OjJ(F.dY,null));F.wZ()?Ctz(F):F.vl()}; Ctz=function(F){if(F.HN)if(F.logger.debug("release media source"),F.Ul(),F.HN.D)try{F.rD.hJ()&&F.UQ("rms",{l:"vprms",sr:F.wZ(),rs:ce(F.HN)});F.HN.clear();var J;(J=F.mediaElement)!=null&&(J.U=F.HN);F.HN=null}catch(b){J=new g.hC("Error while clearing Media Source in VideoPlayer: "+b.name+", "+b.message),J=Gj(J),F.handleError(J),F.vl()}else F.vl()}; XO_=function(F,J){J=J===void 0?!1:J;if(F.HN)return F.HN.T;F.logger.debug("update media source");a:{J=J===void 0?!1:J;try{g.O6()&&F.videoData.rH()&&jJa(F.mediaElement);var b=F.mediaElement.SS(F.cQ(),F.yw())}catch(u){if(N9G(F.Qd,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",u);F.Je("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}F.w5(b,!1,!1,J)}var I;return((I=F.SS())==null?void 0:I.T)||null}; QXo=function(F,J){J=J===void 0?!1:J;if(F.Zv){var b=F.getCurrentTime()-F.Xq();F.Zv.seek(b,{g$:J}).rX(function(){})}else Pto(F)}; DgG=function(F,J,b,I){b=b===void 0?!1:b;I=I===void 0?!1:I;if(F.HN&&(!J||F.HN===J)){F.logger.debug("media source opened");var u=F.getDuration();!u&&qb(F.videoData)&&(u=25200);if(F.HN.isView){var w=u;F.logger.debug(function(){return"Set media source duration to "+w+", video duration "+u}); w>F.HN.getDuration()&&ROa(F,w)}else ROa(F,u);o$z(F.Zv,F.HN,b,I);F.publish("mediasourceattached")}}; ROa=function(F,J){if(F.HN){F.HN.GI(J);var b;(b=F.Zv)!=null&&b.policy.WN&&(b.W=J)}}; n$v=function(F,J){ToJ(F,J.reason,J.C.info,J.token,J.videoId)}; kx7=function(F,J){F.rD.experiments.pW("enable_adb_handling_in_sabr")&&(F.pauseVideo(!0),F.Ir(),J&&F.Je("sabr.config",1,"BROWSER_OR_EXTENSION_ERROR"))}; Ng=function(F,J){F.publish("internalvideodatachange",J===void 0?"dataupdated":J,F,F.videoData)}; O1J=function(F){for(var J=g.N("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),b=J.next();!b.done;b=J.next())F.Jl.B(F.mediaElement,b.value,F.X8,F);F.rD.fD&&F.mediaElement.Yx()&&(F.Jl.B(F.mediaElement,"webkitplaybacktargetavailabilitychanged",F.om_,F),F.Jl.B(F.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",F.JJv,F))}; hO3=function(F){g.ii(F.Eh);ocz(F)||(F.Eh=g.g$(function(){return ocz(F)},100))}; ocz=function(F){var J=F.mediaElement;J&&F.F9&&!F.videoData.Gj&&!Dj("vfp",F.qW.timerName)&&J.kR()>=2&&!J.isEnded()&&qt(J.Z4())>0&&F.qW.tick("vfp");return(J=F.mediaElement)&&!F.videoData.Gj&&J.getDuration()>0&&(J.isPaused()&&J.kR()>=2&&qt(J.Z4())>0&&(Dj("pbp",F.qW.timerName)||F.qW.tick("pbp"),!F.videoData.XI||F.sB||J.isSeeking()||(F.sB=!0,F.publish("onPlaybackPauseAtStart"))),J=J.getCurrentTime(),nj(F.dI,J))?(F.v8(),!0):!1}; UgC=function(F){F.zF().aP();if(Aw(F.videoData)&&Date.now()>F.s9+6283){if(!(!F.isAtLiveHead()||F.videoData.C&&pW(F.videoData.C))){var J=F.zF();if(J.qoe){J=J.qoe;var b=J.provider.wD.Jt(),I=g.dr(J.provider);gbz(J,I,b);b=b.T;isNaN(b)||g.VT(J,I,"e2el",[b.toFixed(3)])}}F.S("html5_alc_live_log_rawlat")?(J=F.videoData,J=g.dX(J.J())?!0:g.O7(J.J())?J.Gc==="6":!1):J=g.dX(F.rD);J&&F.UQ("rawlat",{l:K1(F.Yq,"rawlivelatency").toFixed(3)});F.s9=Date.now()}F.videoData.U&&t1(F.videoData.U)&&(J=F.I3())&&J.videoHeight!== F.gH&&(F.gH=J.videoHeight,ToJ(F,"a",cZo(F,F.videoData.bR)))}; cZo=function(F,J){if(J.C.video.quality==="auto"&&t1(J.getInfo())&&F.videoData.g9)for(var b=g.N(F.videoData.g9),I=b.next();!I.done;I=b.next())if(I=I.value,I.getHeight()===F.gH&&I.C.video.quality!=="auto")return I.getInfo();return J.getInfo()}; NoG=function(F){if(!Aw(F.videoData))return NaN;var J=0;F.Zv&&F.videoData.C&&(J=qb(F.videoData)?F.Zv.zS.X3()||0:F.videoData.C.kQ);return(0,g.jR)()/1E3-F.Ze()-J}; ncz=function(F){F.mediaElement&&F.mediaElement.Hh()&&(F.bf=(0,g.jR)());F.rD.lJ?g.pl(function(){xga(F)},0):xga(F)}; xga=function(F){var J;if((J=F.HN)==null||!J.yB()){if(F.mediaElement)try{F.Mw=F.mediaElement.playVideo()}catch(I){f1(F,"err."+I)}if(F.Mw){var b=F.Mw;b.then(void 0,function(I){F.logger.debug(function(){return"playMediaElement failed: "+I}); if(!g.x(F.playerState,4)&&!g.x(F.playerState,256)&&F.Mw===b)if(I&&I.name==="AbortError"&&I.message&&I.message.includes("load"))F.logger.debug(function(){return"ignore play media element failure: "+I.message}); else{var u="promise";I&&I.name&&(u+=";m."+I.name);f1(F,u);F.eb=!0;F.videoData.GU=!0}})}}}; f1=function(F,J){g.x(F.playerState,128)||(F.gY(wM(F.playerState,1028,9)),F.UQ("dompaused",{r:J}),F.publish("onAutoplayBlocked"))}; yM=function(F,J){J=J===void 0?!1:J;if(!F.mediaElement||!F.videoData.T)return!1;var b=J;b=b===void 0?!1:b;var I=null;var u;if((u=F.videoData.T)==null?0:u.C){I=XO_(F,b);var w;(w=F.Zv)==null||w.resume()}else lt(F),F.videoData.bR&&(I=F.videoData.bR.DB());u=F.mediaElement.EP();b=!1;u&&u.Hg(I)||(tLk(F,I),b=!0);g.x(F.playerState,2)||(I=F.dY,J=J===void 0?!1:J,I.D||!(I.Z>0)||I.mediaElement&&I.mediaElement.getCurrentTime()>0||(J={Ky:"seektimeline_resumeTime",g$:J},I.videoData.Gj||(J.seekSource=15),I.seekTo(I.Z, J)));a:{J=b;if(bE(F.videoData)){if(!F.videoData.So())break a}else if(!g.yR(F.videoData))break a;if(F.mediaElement)if((I=F.videoData.D)&&F.mediaElement.Yx()){u=F.mediaElement.Pb();if(F.Le)if(u!==F.Le.element)Gx(F);else if(J&&I.flavor==="fairplay"&&!oR())Gx(F);else break a;if(F.S("html5_report_error_for_unsupported_tvos_widevine")&&oR()&&I.flavor==="widevine")F.Je("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{F.Le=new I6a(u,F.videoData,F.rD);F.Le.subscribe("licenseerror", F.LJ,F);F.Le.subscribe("qualitychange",F.HyE,F);F.Le.subscribe("heartbeatparams",F.Nq,F);F.Le.subscribe("keystatuseschange",F.mw,F);F.Le.subscribe("ctmp",F.UQ,F);F.S("html5_widevine_use_fake_pssh")&&!F.videoData.isLivePlayback&&I.flavor==="widevine"&&F.Le.vc(new u2(Z1z,"cenc",!1));J=g.N(F.JI.keys);for(I=J.next();!I.done;I=J.next())I=F.JI.get(I.value),F.Le.vc(I);F.S("html5_eme_loader_sync")||F.JI.removeAll()}}else F.Je("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}return b}; tLk=function(F,J){F.qW.tick("vta");Oz("vta",void 0,"video_to_ad");F.getCurrentTime()>0&&US7(F.dY,F.getCurrentTime());F.mediaElement.activate(J);F.HN&&Fs(0,4);!F.videoData.Gj&&F.playerState.isOrWillBePlaying()&&F.tY.start();if(rZ7(F)){var b;if(J=(b=F.mediaElement)==null?void 0:b.audioTracks())J.onchange=function(){F.publish("internalaudioformatchange",F.videoData,!0)}}}; Gx=function(F){F.Le&&(F.Le.dispose(),F.Le=null)}; H1G=function(F){var J=J===void 0?!1:J;F.logger.debug("reattachVideoSource");F.mediaElement&&(F.HN?(Gx(F),F.vl(),XO_(F,J)):(F.videoData.bR&&F.videoData.bR.TK(),F.mediaElement.stopVideo()),F.playVideo())}; LPa=function(F,J){F.rD.S("html5_log_rebuffer_reason")&&(J={r:J,lact:dP()},F.mediaElement&&(J.bh=ZO(F.mediaElement)),F.UQ("bufreason",J))}; FXC=function(F,J){if(F.rD.hJ()&&F.mediaElement){var b=F.mediaElement.Cy();b.omt=(F.mediaElement.getCurrentTime()+F.Xq()).toFixed(3);b.ps=F.playerState.state.toString(16);b.rt=(g.dr(F.zF().provider)*1E3).toFixed();b.e=J;F.Q3[F.uY++%5]=b}try{if(J==="timeupdate"||J==="progress")return}catch(I){}F.logger.debug(function(){return"video element event "+J})}; J2m=function(F){if(F.rD.hJ()){F.Q3.sort(function(I,u){return+I.rt-+u.rt}); for(var J=g.N(F.Q3),b=J.next();!b.done;b=J.next())b=b.value,F.UQ("vpe",Object.assign({t:b.rt},b));F.Q3=[];F.uY=0}}; bV4=function(F){if(g.D$("cobalt")&&g.D$("nintendo switch")){var J=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;F.UQ("nxdock",{d:J})}}; jL=function(F,J){var b;(b=F.Zv)==null||AX(b,J)}; mdm=function(F,J){return g.oH(F.videoData)&&F.II?F.II.handleError(J,void 0):!1}; Ecv=function(F){Mb(F.videoData,"html5_set_debugging_opt_in")&&(F=g.Qe(),g.Rg(0,183)||(kq(183,!0),F.save()))}; Iga=function(F){return g.oH(F.videoData)&&F.II?LS(F.II):F.videoData.lC()}; fha=function(F,J){F.t_.W9()||(F.UQ("sgap",{f:J}),F.t_.clearQueue(!1,J==="pe"))}; Mg=function(F){return F.S("html5_disable_video_player_initiated_seeks")&&bE(F.videoData)}; uN_=function(F){oj.call(this,F);var J=this;this.events=new g.s5(F);g.k(this,this.events);by(this.api,"isLifaAdPlaying",function(){return J.api.isLifaAdPlaying()}); this.events.B(F,"serverstitchedvideochange",function(){J.api.isLifaAdPlaying()?(J.playbackRate=J.api.getPlaybackRate(),J.api.setPlaybackRate(1)):J.api.setPlaybackRate(J.playbackRate)}); this.playbackRate=1}; wUv=function(F){oj.call(this,F);var J=this;this.events=new g.s5(F);g.k(this,this.events);by(this.api,"seekToChapterWithAnimation",function(b){J.seekToChapterWithAnimation(b)}); by(this.api,"seekToTimeWithAnimation",function(b,I){J.seekToTimeWithAnimation(b,I)}); by(this.api,"renderChapterSeekingAnimation",function(b,I,u){J.api.renderChapterSeekingAnimation(b,I,u)}); by(this.api,"setMacroMarkers",function(b){J.setMacroMarkers(F,b)}); by(this.api,"changeMarkerVisibility",function(b,I,u){J.changeMarkerVisibility(b,I,u)}); by(this.api,"isSameMarkerTypeVisible",function(b){return J.isSameMarkerTypeVisible(b)})}; Mn7=function(F,J,b){var I=F.api.getCurrentTime()*1E30&&u>0&&(b.width+=u,g.aN(J.element,"width",b.width+"px")));F.size=b}}; g.O$=function(F,J){var b=F.C[F.C.length-1];b!==J&&(F.C.push(J),SOC(F,b,J))}; g.oX=function(F){if(!(F.C.length<=1)){var J=F.C.pop(),b=F.C[0];F.C=[b];SOC(F,J,b,!0)}}; SOC=function(F,J,b,I){ssG(F);J&&(J.unsubscribe("size-change",F.vp,F),J.unsubscribe("back",F.qL,F));b.subscribe("size-change",F.vp,F);b.subscribe("back",F.qL,F);if(F.uT){g.uG(b.element,I?"ytp-panel-animate-back":"ytp-panel-animate-forward");b.Az(F.element);b.focus();F.element.scrollLeft=0;F.element.scrollTop=0;var u=F.size;r2k(F);g.lu(F.element,u);F.W=new g.ty(function(){YOk(F,J,b,I)},20,F); F.W.start()}else b.Az(F.element),J&&J.detach()}; YOk=function(F,J,b,I){F.W.dispose();F.W=null;g.uG(F.element,"ytp-popup-animating");I?(g.uG(J.element,"ytp-panel-animate-forward"),g.Mr(b.element,"ytp-panel-animate-back")):(g.uG(J.element,"ytp-panel-animate-back"),g.Mr(b.element,"ytp-panel-animate-forward"));g.lu(F.element,F.size);F.V=new g.ty(function(){g.Mr(F.element,"ytp-popup-animating");J.detach();g.An(J.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);F.V.dispose();F.V=null},250,F); F.V.start()}; ssG=function(F){F.W&&g.HQ(F.W);F.V&&g.HQ(F.V)}; hZ=function(F){g.kc.call(this,F,"ytp-shopping-product-menu");this.RH=new g.RX(this.G);g.k(this,this.RH);this.hide();g.O$(this,this.RH);g.Pp(this.G,this.element,4)}; Cdz=function(F,J,b){var I,u=J==null?void 0:(I=J.text)==null?void 0:I.simpleText;u&&(b=$aY(F,b,u,J==null?void 0:J.icon,J==null?void 0:J.secondaryIcon),J.navigationEndpoint&&b.listen("click",function(){F.G.jE("innertubeCommand",J.navigationEndpoint);F.hide()},F))}; XUo=function(F,J,b){var I,u=J==null?void 0:(I=J.text)==null?void 0:I.simpleText;u&&$aY(F,b,u,J==null?void 0:J.icon).listen("click",function(){var w;(J==null?void 0:(w=J.icon)==null?void 0:w.iconType)==="HIDE"?F.G.publish("featuredproductdismissed"):J.serviceEndpoint&&F.G.jE("innertubeCommand",J.serviceEndpoint);F.hide()},F)}; $aY=function(F,J,b,I,u){J=new g.Rj(g.Dd({},[],!1,!!u),J,b);u&&J.updateValue("secondaryIcon",Qso(u));J.setIcon(Qso(I));g.k(F,J);F.RH.V6(J,!0);return J}; Qso=function(F){if(!F)return null;switch(F.iconType){case "ACCOUNT_CIRCLE":return{X:"svg",L:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{X:"path",L:{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{X:"svg",L:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},j:[{X:"path",L:{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 fZ_();case "HIDE":return{X:"svg",L:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},j:[{X:"g",j:[{X:"path",L:{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 fr()}}; cO=function(F){XI.call(this,F,!1,!0);this.isCounterfactual=this.U=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.Y=!0;this.overflowButton=new g.U({X:"button",Dv:["ytp-featured-product-overflow-icon","ytp-button"],L:{"aria-haspopup":"true"}});this.overflowButton.hide();g.k(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.U({X:"img",K:"ytp-suggested-action-badge-img",L:{src:"{{url}}"}}); this.thumbnailImage.hide();g.k(this,this.thumbnailImage);this.thumbnailIcon=new g.U({X:"div",K:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.k(this,this.thumbnailIcon);this.banner=new g.U({X:"a",K:"ytp-suggested-action-container",j:[this.thumbnailImage,this.thumbnailIcon,{X:"div",K:"ytp-suggested-action-details",j:[{X:"text",K:"ytp-suggested-action-title",sQ:"{{title}}"},{X:"text",K:"ytp-suggested-action-subtitle",sQ:"{{subtitle}}"},{X:"text",K:"ytp-suggested-action-metadata-text", sQ:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.k(this,this.banner);this.banner.Az(this.T.element);this.B(this.G,"videodatachange",this.onVideoDataChange);this.B(this.G,g.u6("suggested_action_view_model"),this.qIQ);this.B(this.G,g.wq("suggested_action_view_model"),this.iyf);this.B(this.overflowButton.element,"click",this.Lr);this.B(F,"featuredproductdismissed",this.tx);this.G.createServerVe(this.banner.element,this.banner,!0)}; RT7=function(F){F.isInitialized&&(F.enabled=F.isVisible,F.eE=F.isVisible,C1(F),F.sY(),F.thumbnailImage.wY(F.isVisible),F.shouldHideDismissButton||F.dismissButton.wY(F.isVisible),F.shouldShowOverflowButton&&F.overflowButton.wY(F.isVisible))}; U$=function(){cO.apply(this,arguments)}; DaY=function(F){oj.call(this,F);this.C=new U$(this.api);g.k(this,this.C);g.Pp(this.api,this.C.element,4)}; xc=function(F){oj.call(this,F);var J=this;this.C="";this.T=!0;this.U=this.api.S("html5_enable_audio_track_stickiness_phase_two");var b=new g.s5(F);g.k(this,b);b.B(F,"internalaudioformatchange",function(I,u){kNz(J,I,u)}); b.B(F,"videoplayerreset",function(){OVk(J)}); b.B(F,"videodatachange",function(I,u){J.onVideoDataChange(I,u)})}; kNz=function(F,J,b){if(b){var I="";o0J(F,J)&&(I=J,F.U||(F.C=J),F.api.S("html5_sabr_enable_server_xtag_selection")&&(b=F.api.getVideoData(void 0,!0)))&&(b.HQ=J);if(F.U&&I&&hTo(F,I)){var u;A8(FR(F.api.J(),(u=F.api.getVideoData())==null?void 0:g.ks(u)),function(w){c2z(F,I,w)})}}}; OVk=function(F){if(F.C)Ua7(F);else{var J;if(F.U&&((J=Xa())==null?0:J.size)){var b;A8(FR(F.api.J(),(b=F.api.getVideoData())==null?void 0:g.ks(b)),function(I){if((I=xaJ(I))&&hTo(F,I)){var u=F.api.getVideoData(void 0,!0);u&&(u.HQ=I)}})}}}; Ua7=function(F){var J=F.api.getVideoData(void 0,!0);J&&(J.HQ=F.C)}; c2z=function(F,J,b){xaJ(b)!==J&&(n0k([{settingItemId:n1(b),settingOptionValue:{stringValue:J}}]),A8(F.n8(),function(I){w8G(I,n1(b),{stringValue:J})}))}; tnY=function(F,J){q7(A8(A8(F.n8(),function(b){return I4o(b,[n1(J)])}),function(b){if(b){b=g.N(b); for(var I=b.next();!I.done;I=b.next()){var u=I.value;I=u.key;u=u.value;I&&u&&n0k([{settingItemId:I,settingOptionValue:u}])}}}),function(){F.T=!0})}; o0J=function(F,J){F=F.api.getAvailableAudioTracks();F=g.N(F);for(var b=F.next();!b.done;b=F.next())if(b=b.value,b.getLanguageInfo().getId()===J)return b;return null}; xaJ=function(F){F=n1(F);var J=Xa();F=J?J.get(F):void 0;return F&&F.stringValue?F.stringValue:""}; n1=function(F){var J=(484).toString();F&&(J=(483).toString());return J}; hTo=function(F,J){var b;return J.split(".")[0]!==""&&((b=F.api.getVideoData())==null?void 0:!oU(b))}; n0k=function(F){var J=Xa();J||(J=new Map);F=g.N(F);for(var b=F.next();!b.done;b=F.next())b=b.value,J.set(b.settingItemId,b.settingOptionValue);J=JSON.stringify(Object.fromEntries(J));g.rm("yt-player-user-settings",J,2592E3)}; g.tZ=function(F,J,b,I,u,w,M){g.Rj.call(this,g.Dd({"aria-haspopup":"true"}),J,F);this.Rf=I;this.Y=!1;this.T=null;this.options={};this.U=new g.RX(b,void 0,F,u,w,M);g.k(this,this.U);this.listen("keydown",this.IS);this.listen("click",this.open)}; ZVJ=function(F){if(F.T){var J=F.options[F.T];J.element.getAttribute("aria-checked");J.element.setAttribute("aria-checked","false");F.T=null}}; HVk=function(F,J){g.tZ.call(this,"Timer de suspens\u00e3o",g.Ia.SLEEP_TIMER,F,J);this.G=F;this.N={};this.W=this.Wz("Off");this.V=this.C="";F.S("web_settings_menu_icons")&&this.setIcon({X:"svg",L:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{X:"path",L:{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.Z=new g.U({X:"div",Dv:["ytp-menuitem-label-wrapper"],j:[{X:"div",sQ:"Fim do v\u00eddeo"},{X:"div",Dv:["ytp-menuitem-sublabel"],sQ:"{{content}}"}]});g.k(this,this.Z);this.listen("click",this.onClick);this.B(F,"videodatachange",this.onVideoDataChange);this.B(F,"presentingplayerstatechange",this.VG);this.B(F,"settingsMenuVisibilityChanged",this.Ys_);F.createClientVe(this.element,this,218889);this.VG();this.G.jE("onSleepTimerFeatureAvailable")}; LXY=function(F){var J="Off 10 15 20 30 45 60".split(" "),b;((b=F.G.getVideoData())==null?0:b.isLivePlayback)||J.push("End of video");b=F.G.getPlaylist();var I;b&&((I=b.listId)==null?void 0:I.type)!=="RD"&&J.push("End of playlist");F.Wx(g.EG(J,F.Wz));F.N=g.mF(J,F.Wz,F);J=F.Wz("End of video");F.options[J]&&g.Q_(F.options[J],F.Z)}; FGk=function(F,J){var b=F.N[J],I=b==="End of video"||b==="End of playlist";b==="Off"&&(F.C="");F.G.getPlayerState()!==0&&F.G.getPlayerState()!==5||!I?(F.W=J,g.tZ.prototype.qE.call(F,J),F.oQ(J),F.G.jE("onSleepTimerSettingsChanged",b)):F.G.jE("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"O v\u00eddeo j\u00e1 terminou"}}}}})}; Zx=function(F){oj.call(this,F);var J=this;F.addEventListener("settingsMenuInitialized",function(){J.menuItem||(J.menuItem=new HVk(J.api,J.api.z6()),g.k(J,J.menuItem))}); F.addEventListener("openSettingsMenuItem",function(b){if(b==="menu_item_sleep_timer"){if(!J.menuItem){var I;(I=J.api.z6())==null||I.Bo()}J.menuItem.open()}}); by(F,"resetSleepTimerMenuSettings",function(){J.resetSleepTimerMenuSettings()}); by(F,"setSleepTimerTimeLeft",function(b){J.setSleepTimerTimeLeft(b)}); by(F,"setVideoTimeLeft",function(b){J.setVideoTimeLeft(b)})}; Jqa=function(F){oj.call(this,F);var J=this;this.events=new g.s5(F);g.k(this,this.events);this.events.B(F,"onSnackbarMessage",function(b){switch(b){case 1:b=J.api.getPlayerStateObject(),b.isBuffering()&&g.x(b,8)&&g.x(b,16)&&J.api.jE("innertubeCommand",{openPopupAction:{popup:{notificationActionRenderer:{responseText:{runs:[{text:"Enfrentando interrup\u00e7\u00f5es?"}]},actionButton:{buttonRenderer:{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:{runs:[{text:"Descubra por qu\u00ea"}]},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.L1=function(F,J,b,I,u){J=J===void 0?!1:J;I=I===void 0?!1:I;u=u===void 0?!1:u;g.uA.call(this);this.N=u;this.V=!1;this.Z=new j9(this);this.D=this.W=null;this.T=this.U=!1;g.k(this,this.Z);this.target=F;this.C=J;this.Y=b||F;this.V=I;J&&(g.xM&&this.target.setAttribute("draggable","true"),u||(this.target.style.touchAction="none"));HO(this)}; FN=function(F){g.Ve(F.Z,!F.C)}; HO=function(F){F.D=null;F.W=null;F.B(J2("over"),F.YW);F.B("touchstart",F.tZ);F.C&&F.B(J2("down"),F.Sm_)}; bnC=function(F,J){for(var b=0;bu.start&&b>=5;G+=r}y=G.substr(0,4)+" "+G.substr(4,4)+" "+G.substr(8,4)+" "+(G.substr(12,4)+" "+G.substr(16, 4))}else y="";v={video_id_and_cpn:String(J.videoId)+" / "+y,codecs:"",dims_and_frames:"",bandwidth_kbps:v.toFixed(0)+" Kbps",buffer_health_seconds:e.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:K?"":"display:none",drm:K,debug_info:b,extra_debug_info:"",bandwidth_style:m,network_activity_style:m,network_activity_bytes:a.toFixed(0)+" KB",shader_info:p,shader_info_style:p?"":"display:none",playback_categories:""};a=I.clientWidth+"x"+I.clientHeight+(u>1?"*"+u.toFixed(2):"");e="-";M.totalVideoFrames&& (e=(M.droppedVideoFrames||0)+" dropped of "+M.totalVideoFrames);v.dims_and_frames=a+" / "+e;F=F.getVolume();M=uZ_(J);var D;a=((D=J.Z)==null?0:D.audio.C)?"DRC":Math.round(F*M)+"%";D=Math.round(F)+"% / "+a;F=J.LF.toFixed(1);isFinite(Number(F))&&(D+=" (content loudness "+F+"dB)");v.volume=D;v.resolution=I.videoWidth+"x"+I.videoHeight;if(I=J.U){if(D=I.video)F=D.fps,F>1&&(v.resolution+="@"+F),(F=w.DYD)&&F.video&&(v.resolution+=" / "+F.video.width+"x"+F.video.height,F.video.fps>1&&(v.resolution+="@"+F.video.fps)), v.codecs=Aqa(I),!J.Z||I.audio&&I.video?I.zg&&(v.codecs+=" / "+I.zg+"A"):v.codecs+=" / "+Aqa(J.Z),D.U||D.primaries?(F=D.U||"unknown",F==="smpte2084"?F+=" (PQ)":F==="arib-std-b67"&&(F+=" (HLG)"),v.color=F+" / "+(D.primaries||"unknown"),v.color_style=""):v.color_style="display:none";if(I.debugInfo)for(v.fmt_debug_info="",I=g.N(I.debugInfo),D=I.next();!D.done;D=I.next())D=D.value,v.fmt_debug_info+=D.label+":"+D.text+" ";v.fmt_debug_info_style=v.fmt_debug_info&&v.fmt_debug_info.length>0?"":"display:none"}I= J.isLivePlayback;D=J.SF;v.live_mode_style=I||D?"":"display:none";v.live_latency_style=I?"":"display:none";if(D)v.live_mode="Post-Live"+(qb(J)?" Manifestless":"");else if(I){D=K1(q,"livelatency");v.live_latency_secs=D.toFixed(2)+"s";I=qb(J)?"Manifestless, ":"";J.fW&&(I+="Windowed, ");F="Uncertain";if(D>=0&&D<120)if(J.latencyClass&&J.latencyClass!=="UNKNOWN")switch(J.latencyClass){case "NORMAL":F="Optimized for Normal Latency";break;case "LOW":F="Optimized for Low Latency";break;case "ULTRALOW":F="Optimized for Ultra Low Latency"; break;default:F="Unknown Latency Setting"}else F=J.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";I+=F;(D=w.xYj)&&(I+=", seq "+D.sequence);v.live_mode=I}!w.isGapless||LC(J)&&w.W9||(v.playback_categories+="Gapless ");v.playback_categories_style=v.playback_categories?"":"display:none";v.bandwidth_samples=eL(q,"bandwidth");v.network_activity_samples=eL(q,"networkactivity");v.live_latency_samples=eL(q,"livelatency");v.buffer_health_samples=eL(q,"bufferhealth");w=g.UW(J); if(J.cotn||w)v.cotn_and_local_media=(J.cotn?J.cotn:"null")+" / "+w;v.cotn_and_local_media_style=v.cotn_and_local_media?"":"display:none";Mb(J,"web_player_release_debug")?(v.release_name="youtube.player.web_20250218_01_RC00",v.release_style=""):v.release_style="display:none";v.debug_info&&f.length>0&&v.debug_info.length+f.length<=60?v.debug_info+=" "+f:v.extra_debug_info=f;v.extra_debug_info_style=v.extra_debug_info&&v.extra_debug_info.length>0?"":"display:none";return v}; Aqa=function(F){var J=/codecs="([^"]*)"/.exec(F.mimeType);return J&&J[1]?J[1]+" ("+F.itag+")":F.itag}; qa=function(F,J,b,I,u){g.U.call(this,{X:"div",K:"ytp-horizonchart"});this.V=J;this.sampleCount=b;this.Z=I;this.W=u;this.index=0;this.heightPx=-1;this.T=this.U=null;this.C=Math.round(F/b);this.element.style.width=this.C*this.sampleCount+"px";this.element.style.height=this.V+"em"}; vU=function(F,J){if(F.heightPx===-1){var b=null;try{b=g.H1("CANVAS"),F.U=b.getContext("2d")}catch(q){}if(F.U){var I=F.C*F.sampleCount;F.T=b;F.T.width=I;F.T.style.width=I+"px";F.element.appendChild(F.T)}else for(F.sampleCount=Math.floor(F.sampleCount/4),F.C*=4,b=0;b1?2:1,F.T.height=F.heightPx*b,F.T.style.height= F.heightPx+"px",F.U.scale(1,b)));J=g.N(J);for(I=J.next();!I.done;I=J.next()){b=F;var u=F.index,w=I.value;for(I=0;I+20&&g.J6(J.T.element);I.classList.add("ytp-timely-actions-overlay");J.T.element.appendChild(I)}); g.k(this,this.T);g.Pp(this.api,this.T.element,4)}; WGJ=function(F){F.timelyActions&&(F.Z=F.timelyActions.reduce(function(J,b){if(b.cueRangeId===void 0)return J;J[b.cueRangeId]=0;return J},{}))}; pV=function(F,J){if(F.timelyActions){F=g.N(F.timelyActions);for(var b=F.next();!b.done;b=F.next())if(b=b.value,b.cueRangeId===J)return b}}; dHz=function(F,J){if((F=pV(F,J))&&F.onCueRangeExit)return $W(F.onCueRangeExit)}; ErJ=function(F){if(F.C!==void 0){var J=(J=pV(F,F.C))&&J.onCueRangeEnter?$W(J.onCueRangeEnter):void 0;var b=pV(F,F.C);if(b&&b.additionalTrigger){var I=!1;for(var u=g.N(b.additionalTrigger),w=u.next();!w.done;w=u.next())w=w.value,w.type&&w.args&&F.W[w.type]!==void 0&&(I=I||F.W[w.type](w.args))}else I=!0;J&&I&&(F.api.jE("innertubeCommand",J),F.setTimeout(b),F.Z[F.C]!==void 0&&F.Z[F.C]++)}}; Ns_=function(F,J){return F.U===void 0?!1:J.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(J.seekLengthMilliseconds)===5E3?F.U===72:J.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(J.seekLengthMilliseconds)===1E4?F.U===74:J.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(J.seekLengthMilliseconds)===5E3?F.U===71:J.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(J.seekLengthMilliseconds)===1E4?F.U===73:!1}; lbo=function(F){if(F=F.getWatchNextResponse()){var J,b;F=(J=F.playerOverlays)==null?void 0:(b=J.playerOverlayRenderer)==null?void 0:b.timelyActionsOverlayViewModel;J=g.O(F,j9G);if(J!=null&&J.timelyActions)return J==null?void 0:J.timelyActions.map(function(I){return g.O(I,G4o)}).filter(function(I){return!!I})}}; Vca=function(F){oj.call(this,F);var J=this;Ij(this.api,"getPlaybackRate",function(){return J.api.getPlaybackRate()}); Ij(this.api,"setPlaybackRate",function(b){typeof b==="number"&&J.api.setPlaybackRate(b)})}; P_J=function(F){F=F.tF();if(!F)return!1;F=g.bi(F).exp||"";return F.includes("xpv")||F.includes("xpe")}; Bs3=function(F){F=g.N(g.gA(F,!0));for(var J=F.next();!J.done;J=F.next())if(P_J(J.value))return!0;return!1}; Ts3=function(F,J){F=g.N(g.gA(F,!0));for(var b=F.next();!b.done;b=F.next())if(b=b.value,P_J(b)){var I={potc:"1",pot:J};b.url&&(b.url=IR(b.url,I))}}; rqa=function(F){var J=new wjv,b={},I=(b["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",b);return new WR(J,F,function(){return I})}; Sba=function(F){return g.S(function(J){if(J.C==1)return g.lk(J,2),g.T(J,F,4);if(J.C!=2)return g.Wa(J,0);g.dY(J);g.N4(J)})}; yl=function(F){oj.call(this,F);var J=this;this.useLivingRoomPoToken=!1;this.Z=new g.m6;this.qW=null;this.V=!1;this.T=null;this.D=!1;var b=F.J().getWebPlayerContextConfig();this.events=new g.s5(F);g.k(this,this.events);this.events.B(F,"spsumpreject",function(I,u,w){J.D=u;I&&J.V&&!J.T&&(J.S("html5_generate_content_po_token")&&w?J.Bp(w):J.S("html5_generate_session_po_token")&&s9G(J));J.T||J.api.UQ("stp",{s:+J.V,b:+J.D})}); this.events.B(F,"poTokenVideoBindingChange",function(I){J.Bp(I)}); this.useLivingRoomPoToken=!(b==null||!b.useLivingRoomPoToken);F.addEventListener("csiinitialized",function(){J.qW=F.Iu();var I=(J.S("html5_generate_session_po_token")||J.S("html5_generate_content_po_token"))&&!J.useLivingRoomPoToken;try{if(J.S("html5_use_shared_owl_instance"))YbC(J);else if(I){J.qW.QJ("pot_isc");J.S("html5_new_wpo_client")||$H3(J);var u=g.eB(J.api.J().experiments,"html5_webpo_kaios_defer_timeout_ms");u?(J.S("html5_new_wpo_client")&&(J.U=UU()),g.pl(function(){mX(J)},u)):J.S("html5_webpo_idle_priority_job")? (J.S("html5_new_wpo_client")&&(J.U=UU()),g.tC(g.HK(),function(){mX(J)})):mX(J)}}catch(w){w instanceof Error&&g.rQ(w)}}); F.addEventListener("trackListLoaded",this.L8.bind(this));F.gm(this)}; C_a=function(F){var J=xj(F.experiments,"html5_web_po_request_key");return J?J:g.jB(F)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; id=function(F,J){if(F.S("html5_webpo_bge_ctmp")){var b,I={hwpo:!!F.C,hwpor:!((b=F.C)==null||!b.isReady())};F.api.UQ(J,I)}}; YbC=function(F){var J,b;g.S(function(I){if(I.C==1)return id(F,"swpo_i"),F.U=UU(),zN(F),g.T(I,PQ(),2);if(I.C!=3)return J=I.U,id(F,"swpo_co"),g.T(I,bLo(J),3);b=I.U;F.C=Xm3(F,b);id(F,"swpo_cc");F.C.ready().then(function(){F.Z.resolve();id(F,"swpo_re")}); g.pl(function(){mX(F);id(F,"swpo_si")},0); g.N4(I)})}; $H3=function(F){var J=F.api.J(),b=C_a(J),I=rqa(b);J=new tN({vJ:b,lB:I,onEvent:function(u){(u=Q9_[u])&&F.qW.QJ(u)}, onError:g.rQ,J$:NMz(J.experiments),l3:function(){return void F.api.UQ("itr",{})}, T6v:J.experiments.pW("html5_web_po_disable_remote_logging")||RqC.includes(g.Cu(J.ME)||"")});J.ready().then(function(){return void F.Z.resolve()}); g.k(F,J);F.C=J}; DH3=function(F){var J=F.api.J(),b=rqa(C_a(J)),I=b.vY.bind(b);b.vY=function(q){var v;return g.S(function(a){if(a.C==1)return g.T(a,I(q),2);v=a.U;F.api.UQ("itr",{});return a.return(v)})}; try{var u=new d8({lB:b,xu:{maxAttempts:5},qK:{disable:J.experiments.pW("html5_web_po_disable_remote_logging")||RqC.includes(g.Cu(J.ME)||""),jg:NMz(J.experiments),dW_:F.S("wpo_dis_lfdms")?0:1E3},DIv:g.rQ});var w=new cR({w0:u,lB:b,onError:g.rQ});Sba(w.Ey()).then(function(){return void F.Z.resolve()}); g.k(F,u);g.k(F,w);F.C=Xm3(F,w)}catch(q){g.rQ(q);var M;(M=u)==null||M.dispose()}}; mX=function(F){var J=F.api.J();F.qW.QJ("pot_ist");F.C?F.C.start():F.S("html5_new_wpo_client")&&DH3(F);F.S("html5_bandaid_attach_content_po_token")||(F.S("html5_generate_session_po_token")&&(zN(F),s9G(F)),J=g.eB(J.experiments,"html5_session_po_token_interval_time_ms")||0,J>0&&(F.W=g.g$(function(){zN(F)},J)),F.V=!0)}; zN=function(F){var J,b,I,u;g.S(function(w){if(!F.S("html5_generate_session_po_token")||F.useLivingRoomPoToken)return w.return();J=F.api.J();b=g.cT("EOM_VISITOR_DATA")||g.cT("VISITOR_DATA");I=J.Uk?J.datasyncId:b;u=xj(J.experiments,"html5_mock_content_binding_for_session_token")||J.livingRoomPoTokenId||I;J.jZ=Na(F,u);g.N4(w)})}; Na=function(F,J){if(!F.C)return F.U?F.U(J):"";try{var b=F.C.isReady();F.qW.QJ(b?"pot_cms":"pot_csms");var I="";I=F.S("html5_web_po_token_disable_caching")?F.C.fA({Gi:J}):F.C.fA({Gi:J,Oa:{DT:J,GFI:150,Fz:!0,l2:!0}});F.qW.QJ(b?"pot_cmf":"pot_csmf");if(b){var u;(u=F.T)==null||u.resolve();F.T=null;if(F.D){F.D=!1;var w;(w=F.api.app.F_())==null||w.AI(!1)}}return I}catch(M){return g.rQ(M),""}}; s9G=function(F){F.C&&(F.T=new xn,F.C.ready().then(function(){F.qW.QJ("pot_if");zN(F)}))}; Xm3=function(F,J){F.S("html5_web_po_token_disable_caching")||J.aA(150);var b=!1,I=Sba(J.Ey()).then(function(){b=!0}); return{isReady:function(){return b}, ready:function(){return I}, fA:function(u){return J.fA({Gi:u.Gi,xS:!0,Ft:!0,Oa:u.Oa?{DT:u.Oa.DT,Fz:u.Oa.Fz,l2:u.Oa.l2}:void 0})}, start:function(){}}}; k4C=function(F){oj.call(this,F);var J=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.s5(F);g.k(this,this.events);this.events.B(F,"heartbeatRequest",function(b){if(J.freePreviewUsageDetails.length||J.freePreviewWatchedDuration!==null)b.heartbeatRequestParams||(b.heartbeatRequestParams={}),b.heartbeatRequestParams.unpluggedParams||(b.heartbeatRequestParams.unpluggedParams={}),J.freePreviewUsageDetails.length>0?b.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= J.freePreviewUsageDetails:b.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+J.freePreviewWatchedDuration}}); by(F,"setFreePreviewWatchedDuration",function(b){J.freePreviewWatchedDuration=b}); by(F,"setFreePreviewUsageDetails",function(b){J.freePreviewUsageDetails=b})}; ld=function(F){g.R.call(this);this.features=[];var J=this.C,b=new NV(F),I=new ha(F),u=new Tx(F),w=new yl(F);var M=g.dX(F.J())?void 0:new ed(F);var q=new BO(F),v=new eqa(F),a=new Vca(F),e=new z9(F);var K=g.dX(F.J())?new k4C(F):void 0;var p=F.S("html5_enable_ssap")?new McG(F):void 0;var m=F.S("web_cinematic_watch_settings")&&(m=F.J().getWebPlayerContextConfig())!=null&&m.cinematicSettingsAvailable?new MV(F):void 0;var y=new iX(F);var f=F.S("enable_courses_player_overlay_purchase")?new m7G(F):void 0; var d=g.hP(F.J())?new e2k(F):void 0;var G=new Kc(F);var P=F.J().Z?new wXv(F):void 0;var r=g.dN(F.J())?new uaz(F):void 0;var Q=F.S("web_player_move_autonav_toggle")&&F.J().g9?new Zm7(F):void 0;var D=g.hP(F.J())?new wUv(F):void 0;var t=F.S("web_enable_speedmaster")&&g.hP(F.J())?new ud(F):void 0;var n=F.J().Tc?void 0:new zqm(F);var uk=F.S("report_pml_debug_signal")?new U0a(F):void 0;var AJ=new zTz(F),F7=new Yc(F);var h=F.S("enable_web_player_player_in_bar_feature")&&g.sV(F.J())?new Pda(F):void 0;var L= navigator.mediaSession&&window.MediaMetadata&&F.J().b1?new VM(F):void 0;var l=F.S("html5_enable_drc")&&!F.J().W?new aa(F):void 0;var c=new Uf(F);var Da=g.hP(F.J())?new DaY(F):void 0;var fz=F.S("html5_enable_d6de4")?new ro(F):void 0;var Kz=g.hP(F.J())&&F.S("web_sleep_timer")?new Zx(F):void 0;var Vz=g.dN(F.J())?new A8z(F):void 0;var Za=new xc(F),Ib=new AH(F),yU=new uN_(F);var E=F.S("enable_sabr_snackbar_message")?new Jqa(F):void 0;var V=F.S("web_enable_timely_actions")?new fbm(F):void 0;J.call(this, b,I,u,w,M,q,v,a,e,K,p,m,y,f,d,G,P,r,Q,D,t,n,uk,AJ,F7,h,void 0,L,l,c,void 0,Da,fz,Kz,Vz,void 0,Za,Ib,yU,void 0,E,V,new qV(F))}; fV=function(){this.U=this.C=NaN}; On3=function(F,J){this.rD=F;this.timerName="";this.T=!1;this.U=NaN;this.Z=new fV;this.C=J||null;this.T=!1}; orY=function(F,J,b){var I=g.Bu(J.PN)&&!J.PN.W;if(J.PN.PS&&(j8(J.PN)||J.PN.WN==="shortspage"||tP(J.PN)||I)&&!F.T){F.T=!0;F.W=J.clientPlaybackNonce;g.cT("TIMING_ACTION")||hE("TIMING_ACTION",F.rD.csiPageType);F.rD.csiServiceName&&hE("CSI_SERVICE_NAME",F.rD.csiServiceName);if(F.C){I=F.C.Iu();for(var u=g.N(Object.keys(I)),w=u.next();!w.done;w=u.next())w=w.value,XH(w,I[w],F.timerName);I=g.tE(XrG)(F.C.WY);g.Qk(I,F.timerName);I=F.C;I.U={};I.WY={}}g.Qk({playerInfo:{visibilityState:g.tE(CCv)()},playerType:"LATENCY_PLAYER_HTML5"}, F.timerName);F.D!==J.clientPlaybackNonce||Number.isNaN(F.U)||(Dj("_start",F.timerName)?b=g.tE(Sl)("_start",F.timerName)+F.U:g.rQ(new g.hC("attempted to log gapless pbs before CSI timeline started",{cpn:J.clientPlaybackNonce})));b&&!Dj("pbs",F.timerName)&&F.tick("pbs",b)}}; hq7=function(F,J,b,I,u,w,M){F=(F===b?"video":"ad")+"_to_"+(J===b?"video":"ad");if(F!=="video_to_ad"||w!=null&&w.Gj){w=F==="ad_to_video"?w:I;b=w==null?void 0:w.As;var q={};if(I==null?0:I.W)q.cttAuthInfo={token:I.W,videoId:I.videoId};u&&(q.startTime=u);Rr(F,q);var v,a,e;I={targetVideoId:(v=I==null?void 0:I.videoId)!=null?v:"empty_video",targetCpn:J,adVideoId:(a=w==null?void 0:w.videoId)!=null?a:"empty_video",adClientPlaybackNonce:(e=b==null?void 0:b.cpn)!=null?e:w==null?void 0:w.clientPlaybackNonce}; b&&(I.adBreakType=b.adBreakType,I.adType=b.adType);g.Qk(I,F);XH("pbs",M!=null?M:(0,g.jR)(),F)}}; WU=function(F){xKa();UKk();F.timerName=""}; cqk=function(F){if(F.C){var J=F.C;J.U={};J.WY={}}F.T=!1;F.D=void 0;F.U=NaN}; UHv=function(F,J){g.uA.call(this);this.PN=F;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.C=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.N={};this.U=0;if(F=J.session_data)this.sessionData=HT(F,"&");this.index=Math.max(0,Number(J.index)||0);this.loop=!!J.loop;this.startSeconds=Number(J.startSeconds)||0;this.title=J.playlist_title||"";this.description=J.playlist_description||"";this.author= J.author||J.playlist_author||"";J.video_id&&(this.items[this.index]=J);if(F=J.api)typeof F==="string"&&F.length===16?J.list="PL"+F:J.playlist=F;if(F=J.list)switch(J.listType){case "user_uploads":this.listId=new yE("UU","PLAYER_"+F);break;default:var b=J.playlist_length;b&&(this.length=Number(b)||0);this.listId=g.ir(F);if(F=J.video)this.items=F.slice(0),this.loaded=!0}else if(J.playlist){F=J.playlist.toString().split(",");this.index>0&&(this.items=[]);F=g.N(F);for(b=F.next();!b.done;b=F.next())(b= b.value)&&this.items.push({video_id:b});this.length=this.items.length;if(F=J.video)this.items=F.slice(0),this.loaded=!0}this.setShuffle(!!J.shuffle);if(F=J.suggestedQuality)this.quality=F;this.N=KC(J,"playlist_");this.T=(J=J.thumbnail_ids)?J.split(","):[]}; xHv=function(F){return!!(F.playlist||F.list||F.api)}; nrG=function(F){var J=F.index+1;return J>=F.length?0:J}; tcJ=function(F){var J=F.index-1;return J<0?F.length-1:J}; g.dA=function(F,J,b,I){J=J!==void 0?J:F.index;J=F.items&&J in F.items?F.items[F.order[J]]:null;var u=null;J&&(b&&(J.autoplay="1"),I&&(J.autonav="1"),u=new g.RH(F.PN,J),g.k(F,u),u.Ar=!0,u.startSeconds=F.startSeconds||u.clipStart||0,F.listId&&(u.playlistId=F.listId.toString()));return u}; Zn4=function(F,J){F.index=g.AD(J,0,F.length-1);F.startSeconds=0}; HnY=function(F,J){if(J.video&&J.video.length){F.title=J.title||"";F.description=J.description;F.views=J.views;F.likes=J.likes;F.dislikes=J.dislikes;F.author=J.author||"";var b=J.loop;b&&(F.loop=b);b=g.dA(F);F.items=[];for(var I=g.N(J.video),u=I.next();!u.done;u=I.next())if(u=u.value)u.video_id=u.encrypted_id,F.items.push(u);F.length=F.items.length;(J=J.index)?F.index=J:F.findIndex(b);F.setShuffle(!1);F.loaded=!0;F.U++;F.C&&F.C()}}; Jd_=function(F,J){var b,I,u,w,M,q,v;return g.S(function(a){if(a.C==1){b=g.IW();var e=F.J(),K={context:g.FE(F),playbackContext:{contentPlaybackContext:{ancestorOrigins:e.ancestorOrigins}}},p=e.getWebPlayerContextConfig();if(p==null?0:p.encryptedHostFlags)K.playbackContext.contentPlaybackContext.encryptedHostFlags=p.encryptedHostFlags;if(p==null?0:p.hideInfo)K.playerParams={showinfo:!1};e=e.embedConfig;p=J.docid||J.video_id||J.videoId||J.id;if(!p){p=J.raw_embedded_player_response;if(!p){var m=J.embedded_player_response; m&&(p=JSON.parse(m))}if(p){var y,f,d,G,P,r;p=((r=g.O((y=p)==null?void 0:(f=y.embedPreview)==null?void 0:(d=f.thumbnailPreviewRenderer)==null?void 0:(G=d.playButton)==null?void 0:(P=G.buttonRenderer)==null?void 0:P.navigationEndpoint,g.x$))==null?void 0:r.videoId)||null}else p=null}y=(y=p)?y:void 0;f=F.playlistId?F.playlistId:J.list;d=J.listType;if(f){var Q;d==="user_uploads"?Q={username:f}:Q={playlistId:f};LGa(e,y,J,Q);K.playlistRequest=Q}else J.playlist?(Q={templistVideoIds:J.playlist.toString().split(",")}, LGa(e,y,J,Q),K.playlistRequest=Q):y&&(Q={videoId:y},e&&(Q.serializedThirdPartyEmbedConfig=e),K.singleVideoRequest=Q);I=K;u=g.ZI(F9z);g.lk(a,2);return g.T(a,g.cf(b,I,u),4)}if(a.C!=2)return w=a.U,M=F.J(),J.raw_embedded_player_response=w,M.kQ=AC(J,g.dN(M)),M.T=M.kQ==="EMBEDDED_PLAYER_MODE_PFL",w&&(q=w,q.trackingParams&&WX(q.trackingParams)),a.return(new g.RH(M,J));v=g.dY(a);v instanceof Error||(v=Error("b259802748"));g.Td(v);return a.return(F)})}; LGa=function(F,J,b,I){b.index&&(I.playlistIndex=String(Number(b.index)+1));I.videoId=J?J:"";F&&(I.serializedThirdPartyEmbedConfig=F)}; g.jn=function(F,J){EO.get(F);EO.set(F,J)}; g.GN=function(F){g.uA.call(this);this.loaded=!1;this.player=F}; b9C=function(){this.U=[];this.C=[]}; g.gA=function(F,J){return J?F.C.concat(F.U):F.C}; g.Vl=function(F,J){switch(J.kind){case "asr":IB4(J,F.U);break;default:IB4(J,F.C)}}; IB4=function(F,J){g.xL(J,function(b){return F.Hg(b)})||J.push(F)}; g.PU=function(F){g.R.call(this);this.SE=F;this.U=new b9C;this.Z=null;this.D=[];this.Y=[]}; g.BU=function(F,J,b){g.PU.call(this,F);this.videoData=J;this.audioTrack=b;this.C=null;this.T=!1;this.D=J.Cu;this.Y=J.cO;this.T=g.Xc(J)}; g.TN=function(F,J){return Zf(F.info)?J?F.info.itag===J:!0:!1}; g.uiz=function(F,J){if(F.C!=null&&g.dX(J.J())&&!F.C.isManifestless&&F.C.C.rawcc!=null)return!0;if(!F.MW())return!1;J=!!F.C&&F.C.isManifestless&&Object.values(F.C.C).some(function(b){return g.TN(b,"386")}); F=!!F.C&&!F.C.isManifestless&&g.Buz(F.C);return J||F}; g.rA=function(F,J,b,I,u,w){g.PU.call(this,F);this.videoId=b;this.K6=u;this.eventId=w;this.W={};this.C=null;F=I||g.bi(J).hl||"";F=F.split("_").join("-");this.T=IR(J,{hl:F})}; wy7=function(F,J){this.U=F;this.C=J;this.onFailure=void 0}; MO4=function(F,J){return{xk:F.xk&&J.xk,PV:F.PV&&J.PV,sync:F.sync&&J.sync,streaming:F.streaming&&J.streaming}}; sO=function(F,J){var b=Adz,I=this;this.path=F;this.T=J;this.Z=b;this.capabilities={xk:!!this.T,PV:"WebAssembly"in window,sync:"WebAssembly"in window,streaming:"WebAssembly"in window&&"instantiateStreaming"in WebAssembly&&"compileStreaming"in WebAssembly};this.D=new wy7([{name:"compileStreaming",condition:function(u){return!!I.U&&u.streaming}, Bm:Sn.Yr("wmcx",function(){return WebAssembly.compileStreaming(fetch(I.path))}), onFailure:function(){return I.capabilities.streaming=!1}}, {name:"sync",condition:function(u){return u.sync}, Bm:function(){return A8(q3a(I),Sn.Yr("wmcs",function(u){return new WebAssembly.Module(u)}))}, onFailure:function(){return I.capabilities.sync=!1}}, {name:"async",condition:function(){return!0}, Bm:function(){return A8(q3a(I),Sn.Yr("wmca",function(u){return WebAssembly.compile(u)}))}, onFailure:function(){return I.capabilities.PV=!1}}]); this.W=new wy7([{name:"instantiateStreaming",condition:function(u){return u.PV&&u.streaming&&!I.U&&!I.C}, Bm:function(u,w){return Sn.Zq("wmix",function(){return WebAssembly.instantiateStreaming(fetch(I.path),w)}).then(function(M){I.C=Ix(M.module); return{instance:M.instance,xf:!1}})}, onFailure:function(){return I.capabilities.streaming=!1}}, {name:"sync",condition:function(u){return u.PV&&u.sync}, Bm:function(u,w){return A8(v3J(I,u),Sn.Yr("wmis",function(M){return{instance:new WebAssembly.Instance(M,w),xf:!1}}))}, onFailure:function(){return I.capabilities.sync=!1}}, {name:"async",condition:function(u){return u.PV}, Bm:function(u,w){return A8(A8(v3J(I,u),Sn.Yr("wmia",function(M){return WebAssembly.instantiate(M,w)})),function(M){return{instance:M, xf:!1}})}, onFailure:function(){return I.capabilities.PV=!1}}, {name:"asmjs",condition:function(u){return u.xk}, Bm:function(u,w){return Ix(Sn.Zq("wmij",function(){return I.T(w)}).then(function(M){return{instance:{exports:M}, xf:!0}}))}, onFailure:function(){return I.capabilities.xk=!1}}],function(u,w,M){return I.Z(M,u.instance.exports)})}; K9Y=function(F){var J=aBo;return J.instantiate(F?MO4(J.capabilities,F):J.capabilities,new eQz)}; q3a=function(F){if(F.U)return F.U;var J=fetch(F.path).then(function(b){return b.arrayBuffer()}).then(function(b){F.U=Ix(b); return b}).then(void 0,function(b){g.rQ(Error("wasm module fetch failure: "+b.message,{cause:b})); F.U=void 0;throw b;}); F.U=Ix(J);return F.U}; v3J=function(F,J){if(!J.PV)return uf(Error("wasm unavailable"));if(F.C)return F.C;F.C=q7(A8(F.compile(J),function(b){F.C=Ix(b);return b}),function(b){g.rQ(Error("wasm module compile failure: "+b.message,{cause:b})); F.C=void 0;throw b;}); return F.C}; py3=function(){}; g3z=function(){var F=this;this.proc_exit=function(){}; this.fd_write=function(J,b,I){if(!F.exports)return 1;J=new Uint32Array(F.exports.memory.buffer,b,I*2);b=[];for(var u=0;u=11;F=F.api.J().Y&&os;return!(!J&&!F)}; Jq=function(F,J){return!F.api.isInline()&&!H9G(F,dm(J))&&g.f0(J)}; Z9o=function(F){F.rq.q6();if(F.tR&&F.YJ)F.YJ=!1;else if(!F.api.J().qf&&!F.bJ()){var J=F.api.getPlayerStateObject();g.x(J,2)&&g.fE(F.api)||F.PP(J);!F.api.J().Om||J.isCued()||g.x(J,1024)?F.UW():F.hR.isActive()?(F.Fw(),F.hR.stop()):F.hR.start()}}; FWa=function(F,J){var b;if((b=F.api.getVideoData())==null?0:b.mutedAutoplay){var I,u;if((I=J.target)==null?0:(u=I.className)==null?0:u.includes("ytp-info-panel"))return!1}return g.f0(J)&&F.api.isMutedByMutedAutoplay()?(F.api.unMute(),F.api.getPresentingPlayerType()===2&&F.api.playVideo(),J=F.api.getPlayerStateObject(),!g.x(J,4)||g.x(J,8)||g.x(J,2)||F.UW(),!0):!1}; JUv=function(F,J,b){F.api.isFullscreen()?b<1-J&&F.api.toggleFullscreen():b>1+J&&F.api.toggleFullscreen()}; tOa=function(F){var J=k6()&&RR()>=67&&!F.api.J().Y;F=F.api.J().disableOrganicUi;return!g.D$("tizen")&&!tg&&!J&&!F}; b_=function(F,J){J=J===void 0?2:J;g.uA.call(this);this.api=F;this.C=null;this.eF=new j9(this);g.k(this,this.eF);this.U=upC;this.eF.B(this.api,"presentingplayerstatechange",this.ev);this.C=this.eF.B(this.api,"progresssync",this.Q6);this.Fa=J;this.Fa===1&&this.Q6()}; g.I9=function(F){g.U.call(this,{X:"div",j:[{X:"div",K:"ytp-bezel-text-wrapper",j:[{X:"div",K:"ytp-bezel-text",sQ:"{{title}}"}]},{X:"div",K:"ytp-bezel",L:{role:"status","aria-label":"{{label}}"},j:[{X:"div",K:"ytp-bezel-icon",sQ:"{{icon}}"}]}]});this.G=F;this.U=new g.ty(this.show,10,this);F=this.G.S("delhi_modern_web_player")?1E3:500;this.C=new g.ty(this.hide,F,this);g.k(this,this.U);g.k(this,this.C);this.hide()}; ws=function(F,J,b){if(J<=0){b=Gh();J="som desativado";var I=0}else b=b?{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",G1:!0,L:{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"}}]}:{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",G1:!0,L:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z", fill:"#fff"}}]},I=Math.floor(J),J=I+"volume";u_(F,b,J,I+"%")}; beY=function(F,J){J=J?{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",G1:!0,K:"ytp-svg-fill",L:{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"}}]}:lZJ();var b=F.G.getPlaybackRate(),I=g.m8("A velocidade do v\u00eddeo \u00e9 $RATE",{RATE:String(b)});u_(F,J,I,b+"x")}; IuG=function(F,J){J=J?"Legendas/legendas ocultas ativadas":"Legendas/legendas ocultas desativadas";u_(F,FBz(),J)}; u_=function(F,J,b,I){I=I===void 0?"":I;F.updateValue("label",b===void 0?"":b);F.updateValue("icon",J);g.L8(F.C);F.U.start();F.updateValue("title",I);g.qr(F.element,"ytp-bezel-text-hide",!I)}; ufv=function(F,J){g.U.call(this,{X:"button",Dv:["ytp-button","ytp-cards-button"],L:{"aria-label":"Exibir cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.dN(F.J()))},j:[{X:"span",K:"ytp-cards-button-icon-default",j:[{X:"div",K:"ytp-cards-button-icon",j:[F.J().S("player_new_info_card_format")?dPk():{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",G1:!0,K:"ytp-svg-fill",L:{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"}}]}]}, {X:"div",K:"ytp-cards-button-title",sQ:"Informa\u00e7\u00f5es"}]},{X:"span",K:"ytp-cards-button-icon-shopping",j:[{X:"div",K:"ytp-cards-button-icon",j:[{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",K:"ytp-svg-shadow",L:{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"}},{X:"path",K:"ytp-svg-fill",L:{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"}},{X:"path",K:"ytp-svg-shadow-fill",L:{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"}}]}]},{X:"div", K:"ytp-cards-button-title",sQ:"Compras"}]}]});this.G=F;this.T=J;this.C=null;this.U=new g.ZU(this,250,!0,100);g.k(this,this.U);g.qr(this.T,"ytp-show-cards-title",g.dN(F.J()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.QCf);this.Zf(!0)}; whz=function(F,J){g.U.call(this,{X:"div",K:"ytp-cards-teaser",j:[{X:"div",K:"ytp-cards-teaser-box"},{X:"div",K:"ytp-cards-teaser-text",j:F.J().S("player_new_info_card_format")?[{X:"button",K:"ytp-cards-teaser-info-icon",L:{"aria-label":"Exibir cards","aria-haspopup":"true"},j:[dPk()]},{X:"span",K:"ytp-cards-teaser-label",sQ:"{{text}}"},{X:"button",K:"ytp-cards-teaser-close-button",L:{"aria-label":"Fechar"},j:[g.iA()]}]:[{X:"span",K:"ytp-cards-teaser-label",sQ:"{{text}}"}]}]});var b=this;this.G=F; this.EV=J;this.Z=new g.ZU(this,250,!1,250);this.C=null;this.Y=new g.ty(this.J_Q,300,this);this.V=new g.ty(this.olQ,2E3,this);this.W=[];this.U=null;this.N=new g.ty(function(){b.element.style.margin="0"},250); this.onClickCommand=this.T=null;g.k(this,this.Z);g.k(this,this.Y);g.k(this,this.V);g.k(this,this.N);F.J().S("player_new_info_card_format")?(g.uG(F.getRootNode(),"ytp-cards-teaser-dismissible"),this.B(this.RI("ytp-cards-teaser-close-button"),"click",this.ZN),this.B(this.RI("ytp-cards-teaser-info-icon"),"click",this.bD),this.B(this.RI("ytp-cards-teaser-label"),"click",this.bD)):this.listen("click",this.bD);this.B(J.element,"mouseover",this.mB);this.B(J.element,"mouseout",this.b0);this.B(F,"cardsteasershow", this.Cx_);this.B(F,"cardsteaserhide",this.fk);this.B(F,"cardstatechange",this.RL);this.B(F,"presentingplayerstatechange",this.RL);this.B(F,"appresize",this.xe);this.B(F,"onShowControls",this.xe);this.B(F,"onHideControls",this.ow);this.listen("mouseenter",this.XH)}; Mez=function(F){g.U.call(this,{X:"button",Dv:[MH.BUTTON,MH.TITLE_NOTIFICATIONS],L:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},j:[{X:"div",K:MH.TITLE_NOTIFICATIONS_ON,L:{title:"Deixar de receber notifica\u00e7\u00f5es de todos os v\u00eddeos novos","aria-label":"Receber notifica\u00e7\u00f5es das inscri\u00e7\u00f5es"},j:[g.lA()]},{X:"div",K:MH.TITLE_NOTIFICATIONS_OFF,L:{title:"Receber notifica\u00e7\u00f5es de todos os v\u00eddeos novos","aria-label":"Receber notifica\u00e7\u00f5es das inscri\u00e7\u00f5es"}, j:[{X:"svg",L:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},j:[{X:"path",L:{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=F;this.C=!1;F.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Receber notifica\u00e7\u00f5es de todos os v\u00eddeos novos")}; AUC=function(F,J){F.C=J;F.element.classList.toggle(MH.NOTIFICATIONS_ENABLED,F.C);var b=F.api.getVideoData();b?(J=J?b.wI:b.Ie)?(F=F.api.n8())?ho(F,J):g.Td(Error("No innertube service available when updating notification preferences.")):g.Td(Error("No update preferences command available.")):g.Td(Error("No video data when updating notification preferences."))}; vN3=function(F,J,b){var I=I===void 0?800:I;var u=u===void 0?600:u;var w=document.location.protocol;F=dD_(w+"//"+F+"/signin?context=popup","feature",J,"next",w+"//"+location.hostname+"/post_login");qKm(F,b,I,u)}; qKm=function(F,J,b,I){b=b===void 0?800:b;I=I===void 0?600:I;if(F=g.C5(window,F,"loginPopup","width="+b+",height="+I+",resizable=yes,scrollbars=yes"))N$m(function(){J()}),F.moveTo((screen.width-b)/2,(screen.height-I)/2)}; g.Aq=function(F,J,b,I,u,w,M,q,v,a,e,K){F=F.charAt(0)+F.substring(1).toLowerCase();b=b.charAt(0)+b.substring(1).toLowerCase();if(J==="0"||J==="-1")J=null;if(I==="0"||I==="-1")I=null;var p=e.J(),m=p.userDisplayName&&g.Bu(p);g.U.call(this,{X:"div",Dv:["ytp-button","ytp-sb"],j:[{X:"div",K:"ytp-sb-subscribe",L:m?{title:g.m8("Inscrever-se como $USER_NAME",{USER_NAME:p.userDisplayName}),"aria-label":"Inscrever-se no canal","data-tooltip-image":Z7(p),"data-tooltip-opaque":String(g.dN(p)),tabindex:"0",role:"button"}: {"aria-label":"Inscrever-se no canal"},j:[{X:"div",K:"ytp-sb-text",j:[{X:"div",K:"ytp-sb-icon"},F]},J?{X:"div",K:"ytp-sb-count",sQ:J}:""]},{X:"div",K:"ytp-sb-unsubscribe",L:m?{title:g.m8("Inscrito como $USER_NAME",{USER_NAME:p.userDisplayName}),"aria-label":"Cancelar inscri\u00e7\u00e3o no canal","data-tooltip-image":Z7(p),"data-tooltip-opaque":String(g.dN(p)),tabindex:"0",role:"button"}:{"aria-label":"Cancelar inscri\u00e7\u00e3o no canal"},j:[{X:"div",K:"ytp-sb-text",j:[{X:"div",K:"ytp-sb-icon"}, b]},I?{X:"div",K:"ytp-sb-count",sQ:I}:""]}],L:{"aria-live":"polite"}});var y=this;this.channelId=M;this.G=e;this.T=K;var f=this.RI("ytp-sb-subscribe"),d=this.RI("ytp-sb-unsubscribe");w&&g.uG(this.element,"ytp-sb-classic");if(u){q?this.C():this.U();var G=function(){if(p.Gj){var r=y.channelId;if(v||a){var Q={c:r};var D;g.GR.isInitialized()&&(D=zK_(Q));Q=D||"";if(D=e.getVideoData())if(D=D.subscribeCommand){var t=e.n8();t?(ho(t,D,{botguardResponse:Q,feature:v}),e.jE("SUBSCRIBE",r)):g.Td(Error("No innertube service available when updating subscriptions."))}else g.Td(Error("No subscribe command in videoData.")); else g.Td(Error("No video data available when updating subscription."))}d.focus();d.removeAttribute("aria-hidden");f.setAttribute("aria-hidden","true")}else vN3(g.Rw(y.G.J()),"sb_button",y.Z)},P=function(){var r=y.channelId; if(v||a){var Q=e.getVideoData();ho(e.n8(),Q.unsubscribeCommand,{feature:v});e.jE("UNSUBSCRIBE",r)}f.focus();f.removeAttribute("aria-hidden");d.setAttribute("aria-hidden","true")}; this.B(f,"click",G);this.B(d,"click",P);this.B(f,"keypress",function(r){r.keyCode===13&&G(r)}); this.B(d,"keypress",function(r){r.keyCode===13&&P(r)}); this.B(e,"SUBSCRIBE",this.C);this.B(e,"UNSUBSCRIBE",this.U);this.T&&m&&(CSz(e),zP(e,f,this),zP(e,d,this))}else g.uG(f,"ytp-sb-disabled"),g.uG(d,"ytp-sb-disabled")}; KWz=function(F){g.U.call(this,{X:"div",K:"ytp-title-channel",j:[{X:"div",K:"ytp-title-beacon"},{X:"a",K:"ytp-title-channel-logo",L:{href:"{{channelLink}}",target:F.J().N,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{X:"div",K:"ytp-title-expanded-overlay",L:{"aria-hidden":"{{flyoutUnfocusable}}"},j:[{X:"div",K:"ytp-title-expanded-heading",j:[{X:"div",K:"ytp-title-expanded-title",j:[{X:"a",sQ:"{{expandedTitle}}",L:{href:"{{channelTitleLink}}",target:F.J().N,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{X:"div",K:"ytp-title-expanded-subtitle",sQ:"{{expandedSubtitle}}",L:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var J=this;this.api=F;this.channel=this.RI("ytp-title-channel");this.U=this.RI("ytp-title-channel-logo");this.channelName=this.RI("ytp-title-expanded-title");this.W=this.RI("ytp-title-expanded-overlay");this.T=this.C=this.subscribeButton=null;this.Z=!1;F.createClientVe(this.U,this,36925);F.createClientVe(this.channelName,this, 37220);g.dN(this.api.J())&&auz(this);this.B(F,"videodatachange",this.VG);this.B(F,"videoplayerreset",this.VG);this.B(this.channelName,"click",function(b){J.api.logClick(J.channelName);g.C5(window,eXa(J));b.preventDefault()}); this.B(this.U,"click",this.woD);this.VG()}; ph3=function(F){if(!F.api.J().If){var J=F.api.getVideoData(),b=new g.Aq("Inscreva-se",null,"Inscrito",null,!0,!1,J.uB,J.subscribed,"channel_avatar",null,F.api,!0);F.api.createServerVe(b.element,F);var I;F.api.setTrackingParams(b.element,((I=J.subscribeButtonRenderer)==null?void 0:I.trackingParams)||null);F.B(b.element,"click",function(){F.api.logClick(b.element)}); F.subscribeButton=b;g.k(F,F.subscribeButton);F.subscribeButton.Az(F.W);F.subscribeButton.hide();var u=new Mez(F.api);F.C=u;g.k(F,u);u.Az(F.W);u.hide();F.B(F.api,"SUBSCRIBE",function(){J.Ok&&(u.show(),F.api.logVisibility(u.element,!0))}); F.B(F.api,"UNSUBSCRIBE",function(){J.Ok&&(u.hide(),F.api.logVisibility(u.element,!1),AUC(u,!1))})}}; auz=function(F){var J=F.api.J();ph3(F);F.updateValue("flyoutUnfocusable","true");F.updateValue("channelTitleFocusable","-1");F.updateValue("shouldHideExpandedTitleForA11y","true");F.updateValue("shouldHideExpandedSubtitleForA11y","true");J.U||J.zj||(F.B(F.channel,"mouseenter",F.qD),F.B(F.channel,"mouseleave",F.xJ),F.B(F.channel,"focusin",F.qD),F.B(F.channel,"focusout",function(b){F.channel.contains(b.relatedTarget)||F.xJ()})); F.T=new g.ty(function(){F.isExpanded()&&(F.api.logVisibility(F.channelName,!1),F.subscribeButton&&(F.subscribeButton.hide(),F.api.logVisibility(F.subscribeButton.element,!1)),F.C&&(F.C.hide(),F.api.logVisibility(F.C.element,!1)),F.channel.classList.remove("ytp-title-expanded"),F.channel.classList.add("ytp-title-show-collapsed"))},500); g.k(F,F.T);F.B(F.channel,gNY,function(){mpz(F)}); F.B(F.api,"onHideControls",F.vR);F.B(F.api,"appresize",F.vR);F.B(F.api,"fullscreentoggled",F.vR)}; mpz=function(F){F.channel.classList.remove("ytp-title-show-collapsed");F.channel.classList.remove("ytp-title-show-expanded")}; yU_=function(F){var J=F.api.getPlayerSize();return g.dN(F.api.J())&&J.width>=524}; eXa=function(F){var J=F.api.J(),b=F.api.getVideoData(),I=g.Hu(J)+b.Om;g.HE(b)&&(I="https://music.youtube.com"+b.Om);if(!g.dN(J))return I;J={};g.wO(F.api,"addEmbedsConversionTrackingParams",[J]);return g.Os(I,J)}; qH=function(F){var J=g.Dd({"aria-haspopup":"true"});g.Rj.call(this,J,F);this.listen("keydown",this.C)}; vm=function(F,J){F.element.setAttribute("aria-haspopup",String(J))}; ie4=function(F,J){g.U.call(this,{X:"div",K:"ytp-user-info-panel",L:{"aria-label":"Informa\u00e7\u00f5es do usu\u00e1rio"},j:F.J().Gj&&!F.S("embeds_web_always_enable_signed_out_state")?[{X:"div",K:"ytp-user-info-panel-icon",sQ:"{{icon}}"},{X:"div",K:"ytp-user-info-panel-content",j:[{X:"div",K:"ytp-user-info-panel-info",L:{tabIndex:"{{userInfoFocusable}}",role:"text"},sQ:"{{watchingAsUsername}}"},{X:"div",K:"ytp-user-info-panel-info",L:{tabIndex:"{{userInfoFocusable2}}",role:"text"},sQ:"{{watchingAsEmail}}"}]}]: [{X:"div",K:"ytp-user-info-panel-icon",sQ:"{{icon}}"},{X:"div",K:"ytp-user-info-panel-content",j:[{X:"div",j:[{X:"text",L:{tabIndex:"{{userInfoFocusable}}"},sQ:"Conta desconectada"}]},{X:"div",K:"ytp-user-info-panel-login",j:[{X:"a",L:{tabIndex:"{{userInfoFocusable2}}",role:"button"},sQ:F.J().If?"":"Fazer login no YouTube"}]}]}]});this.SE=F;this.C=J;F.J().Gj||F.J().If||this.B(this.RI("ytp-user-info-panel-login"),"click",this.u8);this.closeButton=new g.U({X:"button",Dv:["ytp-collapse","ytp-button"], L:{title:"Fechar"},j:[g.j0()]});this.closeButton.Az(this.element);g.k(this,this.closeButton);this.B(window,"blur",this.hide);this.B(document,"click",this.s7);this.VG()}; Nha=function(F,J,b){g.RX.call(this,F);this.Rf=J;this.Fd=b;this.getVideoUrl=new qH(6);this.Lj=new qH(5);this.YZ=new qH(4);this.Cy=new qH(3);this.Fu=new g.Rj(g.Dd({href:"{{href}}",target:this.G.J().N},void 0,!0),2,"Resolver problemas de reprodu\u00e7\u00e3o");this.showVideoInfo=new g.Rj(g.Dd(),1,"Estat\u00edsticas para nerds");this.I4=new g.vi({X:"div",Dv:["ytp-copytext","ytp-no-contextmenu"],L:{draggable:"false",tabindex:"1"},sQ:"{{text}}"});this.xa=new QM(this.G,this.I4);this.nf=this.u4=null;g.dN(this.G.J())&& (this.closeButton=new g.U({X:"button",Dv:["ytp-collapse","ytp-button"],L:{title:"Fechar"},j:[g.j0()]}),g.k(this,this.closeButton),this.closeButton.Az(this.element),this.closeButton.listen("click",this.Yh,this));g.dN(this.G.J())&&(this.T6=new g.Rj(g.Dd(),8,"Conta"),g.k(this,this.T6),this.V6(this.T6,!0),this.T6.listen("click",this.j8Q,this),F.createClientVe(this.T6.element,this.T6,137682));this.G.J().Ar&&(this.YR=new Zd("Loop",7),g.k(this,this.YR),this.V6(this.YR,!0),this.YR.listen("click",this.KnW, this),F.createClientVe(this.YR.element,this.YR,28661));g.k(this,this.getVideoUrl);this.V6(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.dIR,this);F.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.k(this,this.Lj);this.V6(this.Lj,!0);this.Lj.listen("click",this.lyQ,this);F.createClientVe(this.Lj.element,this.Lj,28660);g.k(this,this.YZ);this.V6(this.YZ,!0);this.YZ.listen("click",this.Elz,this);F.createClientVe(this.YZ.element,this.YZ,28658);g.k(this,this.Cy);this.V6(this.Cy, !0);this.Cy.listen("click",this.MeE,this);g.k(this,this.Fu);this.V6(this.Fu,!0);this.Fu.listen("click",this.fgN,this);g.k(this,this.showVideoInfo);this.V6(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.noD,this);g.k(this,this.I4);this.I4.listen("click",this.Xoj,this);g.k(this,this.xa);J=document.queryCommandSupported&&document.queryCommandSupported("copy");U4k("Chromium")>=43&&(J=!0);U4k("Firefox")<=40&&(J=!1);J&&(this.u4=new g.U({X:"textarea",K:"ytp-html5-clipboard",L:{readonly:"", tabindex:"-1"}}),g.k(this,this.u4),this.u4.Az(this.element));var I;(I=this.T6)==null||I.setIcon(VRz());var u;(u=this.YR)==null||u.setIcon({X:"svg",L:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},j:[{X:"path",L:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});this.Cy.setIcon({X:"svg",L:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{X:"path",L:{"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.Fu.setIcon(fZ_());this.showVideoInfo.setIcon(WHo());this.B(F,"onLoopChange",this.onLoopChange);this.B(F,"videodatachange",this.onVideoDataChange);zX7(this);this.gy(this.G.getVideoData())}; a9=function(F,J){var b=!1;if(F.u4){var I=F.u4.element;I.value=J;I.select();try{b=document.execCommand("copy")}catch(u){}}b?F.Rf.fk():(F.I4.Ce(J,"text"),g.O$(F.Rf,F.xa),bX(F.I4.element),F.u4&&(F.u4=null,zX7(F)));return b}; zX7=function(F){var J=!!F.u4;g.Q_(F.Cy,J?"Copiar informa\u00e7\u00f5es de depura\u00e7\u00e3o":"Ver informa\u00e7\u00f5es sobre depura\u00e7\u00e3o");vm(F.Cy,!J);g.Q_(F.YZ,J?"Copiar c\u00f3digo de incorpora\u00e7\u00e3o":"Ver c\u00f3digo de incorpora\u00e7\u00e3o");vm(F.YZ,!J);g.Q_(F.getVideoUrl,J?"Copiar URL do v\u00eddeo":"Ver URL do v\u00eddeo");vm(F.getVideoUrl,!J);g.Q_(F.Lj,J?"Copiar URL do v\u00eddeo no momento atual":"Ver URL do v\u00eddeo no tempo atual");vm(F.Lj,!J);F.YZ.setIcon(J?zU7(): null);F.getVideoUrl.setIcon(J?zh():null);F.Lj.setIcon(J?zh():null)}; lua=function(F){return g.dN(F.G.J())?F.T6:F.YR}; WWY=function(F,J){g.kc.call(this,F);this.Fd=J;this.Z=new g.s5(this);this.eE=new g.ty(this.X1f,1E3,this);this.Gj=this.T=null;g.k(this,this.Z);g.k(this,this.eE);F.createClientVe(this.element,this,28656);g.uG(this.element,"ytp-contextmenu");fuC(this);this.hide()}; fuC=function(F){g.Ve(F.Z);var J=F.G.J();J.playerStyle==="gvn"||J.U||J.zj||(J=F.G.mG(),F.Z.B(J,"contextmenu",F.etQ),F.Z.B(J,"touchstart",F.Pt,null,!0),F.Z.B(J,"touchmove",F.pK,null,!0),F.Z.B(J,"touchend",F.pK,null,!0))}; dpz=function(F){F.G.isFullscreen()?g.Pp(F.G,F.element,10):F.Az($J(F).body)}; ec=function(F,J,b){b=b===void 0?240:b;g.U.call(this,{X:"button",Dv:["ytp-button","ytp-copylink-button"],L:{title:"{{title-attr}}","data-tooltip-opaque":String(g.dN(F.J()))},j:[{X:"div",K:"ytp-copylink-icon",sQ:"{{icon}}"},{X:"div",K:"ytp-copylink-title",sQ:"Copiar link",L:{"aria-hidden":"true"}}]});this.api=F;this.C=J;this.U=b;this.visible=!1;this.tooltip=this.C.W1();J=F.J();this.tooltip.element.setAttribute("aria-live","polite");g.qr(this.element,"ytp-show-copylink-title",g.dN(J));F.createClientVe(this.element, this,86570);this.listen("click",this.onClick);this.B(F,"videodatachange",this.VG);this.B(F,"videoplayerreset",this.VG);this.B(F,"appresize",this.VG);this.VG();this.addOnDisposeCallback(g.iy(this.tooltip,this.element))}; ENk=function(F){var J=F.api.J(),b=F.api.getVideoData(),I=F.api.mG().getPlayerSize().width;J=J.T;return!!b.videoId&&I>=F.U&&b.lJ&&!g.tw(b)&&!F.api.isEmbedsShortsMode()&&!J}; jza=function(F){F.updateValue("icon",gV());if(F.api.J().U)F.tooltip.R$(F.element,"Link copiado para a \u00e1rea de transfer\u00eancia");else{F.updateValue("title-attr","Link copiado para a \u00e1rea de transfer\u00eancia");F.tooltip.Dl();F.tooltip.R$(F.element);var J=F.listen("mouseleave",function(){F.iX(J);F.VG();F.tooltip.DW()})}}; G3G=function(F,J){return g.S(function(b){if(b.C==1)return g.lk(b,2),g.T(b,navigator.clipboard.writeText(J),4);if(b.C!=2)return b.return(!0);g.dY(b);var I=b.return,u=!1,w=g.H1("TEXTAREA");w.value=J;w.setAttribute("readonly","");var M=F.api.getRootNode();M.appendChild(w);if(hY){var q=window.getSelection();q.removeAllRanges();var v=document.createRange();v.selectNodeContents(w);q.addRange(v);w.setSelectionRange(0,J.length)}else w.select();try{u=document.execCommand("copy")}catch(a){}M.removeChild(w); return I.call(b,u)})}; Kn=function(F){g.U.call(this,{X:"div",K:"ytp-doubletap-ui-legacy",j:[{X:"div",K:"ytp-doubletap-fast-forward-ve"},{X:"div",K:"ytp-doubletap-rewind-ve"},{X:"div",K:"ytp-doubletap-static-circle",j:[{X:"div",K:"ytp-doubletap-ripple"}]},{X:"div",K:"ytp-doubletap-overlay-a11y"},{X:"div",K:"ytp-doubletap-seek-info-container",j:[{X:"div",K:"ytp-doubletap-arrows-container",j:[{X:"span",K:"ytp-doubletap-base-arrow"},{X:"span",K:"ytp-doubletap-base-arrow"},{X:"span",K:"ytp-doubletap-base-arrow"}]},{X:"div", K:"ytp-doubletap-tooltip",j:[{X:"div",K:"ytp-seek-icon-text-container",j:[{X:"div",K:"ytp-seek-icon",sQ:"{{seekIcon}}"},{X:"div",K:"ytp-chapter-seek-text-legacy",sQ:"{{seekText}}"}]},{X:"div",K:"ytp-doubletap-tooltip-label",sQ:"{{seekTime}}"}]}]}]});this.G=F;this.Z=new g.ty(this.show,10,this);this.U=new g.ty(this.hide,700,this);this.V=this.T=0;this.Tj=this.W=!1;this.C=this.RI("ytp-doubletap-static-circle");g.k(this,this.Z);g.k(this,this.U);this.hide();this.Y=this.RI("ytp-doubletap-fast-forward-ve"); this.N=this.RI("ytp-doubletap-rewind-ve");this.G.createClientVe(this.Y,this,28240);this.G.createClientVe(this.N,this,28239);this.G.logVisibility(this.Y,!0);this.G.logVisibility(this.N,!0);this.W=F.S("web_show_cumulative_seek_time");this.Tj=F.S("web_center_static_circles")}; pn=function(F,J,b,I){if(I=I===void 0?null:I){var u=J===-1?F.N.visualElement:F.Y.visualElement;I={seekData:I};var w=g.W8();w&&g.tE(nO)(void 0,w,u,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",I,void 0)}F.T=J===F.V?F.T+b:b;F.V=J;u=F.G.mG().getPlayerSize();F.W?F.U.stop():g.L8(F.U);F.Z.start();F.element.setAttribute("data-side",J===-1?"back":"forward");g.uG(F.element,"ytp-time-seeking");F.C.style.width="110px";F.C.style.height="110px";I=u.width*.1-15;J===1?F.Tj?(F.C.style.right=I+"px",F.C.style.left=""): (F.C.style.right="",F.C.style.left=u.width*.8-30+"px"):J===-1&&(F.Tj?(F.C.style.right="",F.C.style.left=I+"px"):(F.C.style.right="",F.C.style.left=u.width*.1-15+"px"));F.C.style.top=u.height*.5+15+"px";Vem(F,F.W?F.T:b)}; PKC=function(F,J,b,I){I=I===void 0?null:I;g.L8(F.U);F.Z.start();switch(J){case -1:J="back";break;case 1:J="forward";break;default:J=""}F.element.setAttribute("data-side",J);F.C.style.width="0";F.C.style.height="0";g.uG(F.element,"ytp-chapter-seek");F.updateValue("seekText",b);F.updateValue("seekTime","");b=F.RI("ytp-seek-icon");if(I){a:if(I){switch(I){case "PREMIUM_STANDALONE":I={X:"svg",L:{height:"24px",version:"1.1",viewBox:"-2 -2 24 24",width:"24px"},j:[{X:"path",L:{d:"M 0 1.43 C 0 .64 .64 0 1.43 0 L 18.56 0 C 19.35 0 20 .64 20 1.43 L 20 18.56 C 20 19.35 19.35 20 18.56 20 L 1.43 20 C .64 20 0 19.35 0 18.56 Z M 0 1.43 ", fill:"#c00"}},{X:"path",L:{d:"M 7.88 11.42 L 7.88 15.71 L 5.37 15.71 L 5.37 3.52 L 10.12 3.52 C 11.04 3.52 11.84 3.69 12.54 4.02 C 13.23 4.36 13.76 4.83 14.14 5.45 C 14.51 6.07 14.70 6.77 14.70 7.56 C 14.70 8.75 14.29 9.69 13.48 10.38 C 12.66 11.07 11.53 11.42 10.08 11.42 Z M 7.88 9.38 L 10.12 9.38 C 10.79 9.38 11.30 9.23 11.64 8.91 C 11.99 8.60 12.17 8.16 12.17 7.57 C 12.17 6.98 11.99 6.5 11.64 6.12 C 11.29 5.76 10.80 5.57 10.18 5.56 L 7.88 5.56 Z M 7.88 9.38 ",fill:"#fff","fill-rule":"nonzero"}}]}; break a;case "PREMIUM_STANDALONE_CAIRO":I={X:"svg",L:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},j:[{X:"rect",L:{fill:"white",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{X:"rect",L:{fill:"url(#ytp-premium-standalone-gradient)",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{X:"path",L:{d:"M12.75 13.02H9.98V11.56H12.75C13.24 11.56 13.63 11.48 13.93 11.33C14.22 11.17 14.44 10.96 14.58 10.68C14.72 10.40 14.79 10.09 14.79 9.73C14.79 9.39 14.72 9.08 14.58 8.78C14.44 8.49 14.22 8.25 13.93 8.07C13.63 7.89 13.24 7.80 12.75 7.80H10.54V17H8.70V6.33H12.75C13.58 6.33 14.28 6.48 14.86 6.77C15.44 7.06 15.88 7.46 16.18 7.97C16.48 8.48 16.64 9.06 16.64 9.71C16.64 10.40 16.48 10.99 16.18 11.49C15.88 11.98 15.44 12.36 14.86 12.62C14.28 12.89 13.58 13.02 12.75 13.02Z", fill:"white"}},{X:"defs",j:[{X:"linearGradient",L:{gradientUnits:"userSpaceOnUse",id:"ytp-premium-standalone-gradient",x1:"2",x2:"22",y1:"22",y2:"2"},j:[{X:"stop",L:{offset:"0.3","stop-color":"#E1002D"}},{X:"stop",L:{offset:"0.9","stop-color":"#E01378"}}]}]}]};break a}I=void 0}else I=null;F.updateValue("seekIcon",I);b.style.display="inline-block"}else b.style.display="none"}; Vem=function(F,J){J=g.m8("$TOTAL_SEEK_TIME segundos",{TOTAL_SEEK_TIME:J.toString()});F.updateValue("seekTime",J)}; Bh7=function(F){XI.call(this,F,!1,!0);this.kQ=[];this.Kk=[];this.Y=!0;this.badge.element.classList.add("ytp-featured-product");this.WN=new g.U({X:"div",K:"ytp-featured-product-open-in-new"});g.k(this,this.WN);this.countdownTimer=new g.U({X:"text",K:"ytp-featured-product-countdown",sQ:"{{content}}"});this.countdownTimer.hide();g.k(this,this.countdownTimer);this.U=new g.U({X:"div",K:"ytp-featured-product-trending",j:[{X:"div",K:"ytp-featured-product-trending-icon"},{X:"text",K:"ytp-featured-product-trending-text", sQ:"{{trendingOffer}}"}]});this.U.hide();g.k(this,this.U);this.overflowButton=new g.U({X:"button",Dv:["ytp-featured-product-overflow-icon","ytp-button"],L:{"aria-haspopup":"true"}});this.overflowButton.hide();g.k(this,this.overflowButton);this.V=new g.U({X:"text",K:"ytp-featured-product-exclusive-countdown",sQ:"{{content}}",L:{id:"exclusiveCountdown","aria-hidden":"true"}});this.V.hide();g.k(this,this.V);this.W=new g.U({X:"div",K:"ytp-featured-product-exclusive-container",L:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"}, j:[{X:"div",K:"ytp-featured-product-exclusive-badge-container",j:[{X:"div",K:"ytp-featured-product-exclusive-badge",j:[{X:"text",K:"ytp-featured-product-exclusive-badge-text",sQ:"{{exclusive}}",L:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.V]});this.W.hide();g.k(this,this.W);this.banner=new g.U({X:"a",K:"ytp-featured-product-container",j:[{X:"div",K:"ytp-featured-product-thumbnail",j:[{X:"img",L:{src:"{{thumbnail}}"}},this.WN]},{X:"div",K:"ytp-featured-product-details",j:[{X:"text",K:"ytp-featured-product-title", sQ:"{{title}}"},this.G.S("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{X:"div",K:"ytp-featured-product-price-container",L:{"aria-label":"{{priceA11yText}}"},j:[{X:"text",K:"ytp-featured-product-price-when-promotion-text-enabled",sQ:"{{price}}",L:{"aria-hidden":"true"}},{X:"text",K:"ytp-featured-product-promotion-text",sQ:"{{promotionText}}",L:{"aria-hidden":"true"}}]}:{X:"div",L:{"aria-label":"{{priceA11yText}}"},j:[{X:"text",K:"ytp-featured-product-price",sQ:"{{price}}", L:{"aria-hidden":"true"}},{X:"text",K:"ytp-featured-product-sales-original-price",sQ:"{{salesOriginalPrice}}",L:{"aria-hidden":"true"}},{X:"text",K:"ytp-featured-product-price-drop-reference-price",sQ:"{{priceDropReferencePrice}}",L:{"aria-hidden":"true"}}]},this.G.S("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{X:"div",K:"ytp-featured-product-when-promotion-text-enabled",j:[{X:"text",K:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",sQ:"{{affiliateDisclaimer}}"}, this.U,{X:"text",K:"ytp-featured-product-vendor-when-promotion-text-enabled",sQ:"{{vendor}}"}]}:{X:"div",j:[{X:"text",K:"ytp-featured-product-affiliate-disclaimer",sQ:"{{affiliateDisclaimer}}"},this.G.S("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.W:null,this.U,{X:"text",K:"ytp-featured-product-vendor",sQ:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.k(this,this.banner);this.banner.Az(this.T.element);this.B(this.G,g.u6("featured_product"),this.v7E);this.B(this.G, g.wq("featured_product"),this.t7);this.B(this.G,"videodatachange",this.onVideoDataChange);this.B(this.overflowButton.element,"click",this.RM);this.B(F,"featuredproductdismissed",this.tx)}; ThJ=function(F){var J,b;F=(J=F.C)==null?void 0:(b=J.bannerData)==null?void 0:b.itemData;var I,u,w;return(F==null||!F.affiliateDisclaimer)&&(F==null?0:(I=F.exclusivesData)==null?0:I.exclusiveOfferLabelText)&&(F==null?0:(u=F.exclusivesData)==null?0:u.expirationTimestampMs)&&(F==null?0:(w=F.exclusivesData)==null?0:w.exclusiveOfferCountdownText)?!0:!1}; SKG=function(F){var J,b,I,u,w=(J=F.C)==null?void 0:(b=J.bannerData)==null?void 0:(I=b.itemData)==null?void 0:(u=I.exclusivesData)==null?void 0:u.expirationTimestampMs;J=(Number(w)-Date.now())/1E3;if(J>0){if(J<604800){var M,q,v,a;b=(M=F.C)==null?void 0:(q=M.bannerData)==null?void 0:(v=q.itemData)==null?void 0:(a=v.exclusivesData)==null?void 0:a.exclusiveOfferCountdownText;if(b!==void 0)for(M=Date.now(),q=g.N(b),v=q.next();!v.done;v=q.next())if(v=v.value,v!==void 0&&v.text!==void 0&&(a=Number(v.textDisplayStartTimestampMs), !isNaN(a)&&M>=a)){v.insertCountdown?(J=v.text.replace(/\$0/,String(ev({seconds:J}))),F.V.Ce(J)):F.V.Ce(v.text);F.V.show();break}}var e,K,p,m;F.W.update({exclusive:(e=F.C)==null?void 0:(K=e.bannerData)==null?void 0:(p=K.itemData)==null?void 0:(m=p.exclusivesData)==null?void 0:m.exclusiveOfferLabelText});F.W.show();gs(F);var y;(y=F.NW)==null||y.start()}else rUk(F)}; rUk=function(F){var J;(J=F.NW)==null||J.stop();F.V.hide();F.W.hide();mG(F)}; szo=function(F){var J,b,I=(J=F.C)==null?void 0:(b=J.bannerData)==null?void 0:b.itemData;return F.G.S("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(I==null||!I.priceReplacementText)&&(I==null?0:I.promotionText)?I==null?void 0:I.promotionText.content:null}; YKz=function(F){var J,b,I=(J=F.C)==null?void 0:(b=J.bannerData)==null?void 0:b.itemData,u,w;if(!(I!=null&&I.priceReplacementText||F.G.S("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(I==null?0:(u=I.dealsData)==null?0:(w=u.sales)==null?0:w.originalPrice)){var M,q;return I==null?void 0:(M=I.dealsData)==null?void 0:(q=M.sales)==null?void 0:q.originalPrice}return null}; $pk=function(F){var J,b,I=(J=F.C)==null?void 0:(b=J.bannerData)==null?void 0:b.itemData,u,w,M,q;if(!((I==null?0:I.priceReplacementText)||F.G.S("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(I==null?0:(u=I.dealsData)==null?0:(w=u.sales)==null?0:w.originalPrice))&&(I==null?0:(M=I.dealsData)==null?0:(q=M.priceDrop)==null?0:q.referencePrice)){var v,a;return I==null?void 0:(v=I.dealsData)==null?void 0:(a=v.priceDrop)==null?void 0:a.referencePrice}return null}; CKz=function(F){var J,b,I=(J=F.C)==null?void 0:(b=J.bannerData)==null?void 0:b.itemData;if(I==null?0:I.priceReplacementText)return I==null?void 0:I.priceReplacementText;if((I==null?0:I.promotionText)&&F.G.S("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var u;return(I==null?void 0:I.price)+" "+(I==null?void 0:(u=I.promotionText)==null?void 0:u.content)}var w,M;if(I==null?0:(w=I.dealsData)==null?0:(M=w.sales)==null?0:M.originalPrice){var q,v;return I==null?void 0:(q=I.dealsData)== null?void 0:(v=q.sales)==null?void 0:v.salesPriceAccessibilityLabel}var a,e;if(I==null?0:(a=I.dealsData)==null?0:(e=a.priceDrop)==null?0:e.referencePrice){var K,p;return(I==null?void 0:I.price)+" "+(I==null?void 0:(K=I.dealsData)==null?void 0:(p=K.priceDrop)==null?void 0:p.referencePrice)}return I==null?void 0:I.price}; Xho=function(F){if(F.G.S("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var J,b,I;return F.U.uT?null:(J=F.C)==null?void 0:(b=J.bannerData)==null?void 0:(I=b.itemData)==null?void 0:I.vendorName}var u,w,M,q,v,a;return F.U.uT||F.W.uT||((u=F.C)==null?0:(w=u.bannerData)==null?0:(M=w.itemData)==null?0:M.affiliateDisclaimer)?null:(q=F.C)==null?void 0:(v=q.bannerData)==null?void 0:(a=v.itemData)==null?void 0:a.vendorName}; RXY=function(F,J){y$(F);if(J){var b=g.ZR.getState().entities;b=qs(b,"featuredProductsEntity",J);if(b!=null&&b.productsData){J=[];b=g.N(b.productsData);for(var I=b.next();!I.done;I=b.next()){I=I.value;var u=void 0;if((u=I)!=null&&u.identifier&&I.featuredSegments){F.kQ.push(I);var w=void 0;u=g.N((w=I)==null?void 0:w.featuredSegments);for(w=u.next();!w.done;w=u.next()){var M=w.value;w=Qza(M.startTimeSec);w!==void 0&&(M=Qza(M.endTimeSec),J.push(new g.b6(w*1E3,M===void 0?0x7ffffffffffff:M*1E3,{id:I.identifier, namespace:"featured_product"})))}}}F.G.TU(J)}}}; mG=function(F){if(F.trendingOfferEntityKey){var J=g.ZR.getState().entities;if(J=qs(J,"trendingOfferEntity",F.trendingOfferEntityKey)){var b,I,u;J.encodedSkuId!==((b=F.C)==null?void 0:(I=b.bannerData)==null?void 0:(u=I.itemData)==null?void 0:u.encodedOfferSkuId)?gs(F):(F.U.update({trendingOffer:J.shortLabel+" \u2022 "+J.countLabel}),F.U.show(),F.banner.update({vendor:Xho(F)}))}else gs(F)}else gs(F)}; gs=function(F){F.U.hide();F.banner.update({vendor:Xho(F)})}; y$=function(F){F.kQ=[];F.t7();F.G.Yo("featured_product")}; Dp_=function(F){var J,b,I,u,w=(J=F.C)==null?void 0:(b=J.bannerData)==null?void 0:(I=b.itemData)==null?void 0:(u=I.hiddenProductOptions)==null?void 0:u.dropTimestampMs;J=(Number(w)-Date.now())/1E3;F.countdownTimer.Ce(ev({seconds:J}));if(J>0){var M;(M=F.xm)==null||M.start()}}; k3Y=function(F){var J;(J=F.xm)==null||J.stop();F.countdownTimer.hide()}; Qza=function(F){if(F!==void 0&&F.trim()!==""&&(F=Math.trunc(Number(F.trim())),!(isNaN(F)||F<0)))return F}; Upa=function(F,J,b){g.U.call(this,{X:"div",Dv:["ytp-info-panel-action-item"],j:[{X:"div",K:"ytp-info-panel-action-item-disclaimer",sQ:"{{disclaimer}}"},{X:"a",Dv:["ytp-info-panel-action-item-button","ytp-button"],L:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},j:[{X:"div",K:"ytp-info-panel-action-item-icon",sQ:"{{icon}}"},{X:"div",K:"ytp-info-panel-action-item-label",sQ:"{{label}}"}]}]});this.G=F;this.C=b;this.disclaimer=this.RI("ytp-info-panel-action-item-disclaimer");this.button= this.RI("ytp-info-panel-action-item-button");this.o8=!1;this.G.createServerVe(this.element,this,!0);this.listen("click",this.onClick);F="";b=g.O(J==null?void 0:J.onTap,sT);var I=g.O(b,g.S0);this.o8=!1;I?(F=I.url||"",F.startsWith("//")&&(F="https:"+F),this.o8=!0,g.Sp(this.button,g.Ty(F))):(I=g.O(b,Oe4))&&!this.C?((F=I.phoneNumbers)&&F.length>0?(F="sms:"+F[0],I.messageText&&(F+="?&body="+encodeURI(I.messageText))):F="",this.o8=!0,g.Sp(this.button,g.Ty(F,[oN4]))):(b=g.O(b,hXm))&&!this.C&&(F=b.phoneNumber? "tel:"+b.phoneNumber:"",this.o8=!0,g.Sp(this.button,g.Ty(F,[cU_])));var u;if(b=(u=J.disclaimerText)==null?void 0:u.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var w;this.update({label:(w=J.bodyText)==null?void 0:w.content,icon:fr(),disclaimer:b})}else{this.disclaimer.style.display="none";var M;this.update({label:(M=J.bodyText)==null?void 0:M.content,icon:fr()})}this.G.setTrackingParams(this.element,J.trackingParams||null);this.o8&&(this.U={externalLinkData:{url:F}})}; xpm=function(F,J){var b=wV();g.YJ.call(this,F,{X:"div",K:"ytp-info-panel-detail-skrim",j:[{X:"div",K:"ytp-info-panel-detail",L:{role:"dialog",id:b},j:[{X:"div",K:"ytp-info-panel-detail-header",j:[{X:"div",K:"ytp-info-panel-detail-title",sQ:"{{title}}"},{X:"button",Dv:["ytp-info-panel-detail-close","ytp-button"],L:{"aria-label":"Fechar"},j:[g.iA()]}]},{X:"div",K:"ytp-info-panel-detail-body",sQ:"{{body}}"},{X:"div",K:"ytp-info-panel-detail-items"}]}]},250);this.C=J;this.items=this.RI("ytp-info-panel-detail-items"); this.T=new g.s5(this);this.itemData=[];this.Z=b;this.B(this.RI("ytp-info-panel-detail-close"),"click",this.fk);this.B(this.RI("ytp-info-panel-detail-skrim"),"click",this.fk);this.B(this.RI("ytp-info-panel-detail"),"click",function(I){I.stopPropagation()}); g.k(this,this.T);this.G.createServerVe(this.element,this,!0);this.B(F,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",F.getVideoData());this.hide()}; nNC=function(F,J){F=g.N(F.itemData);for(var b=F.next();!b.done;b=F.next())b=b.value,b.G.logVisibility(b.element,J)}; Hez=function(F,J){g.U.call(this,{X:"div",K:"ytp-info-panel-preview",L:{"aria-live":"assertive","aria-atomic":"true","aria-owns":J.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.dN(F.J()))},j:[{X:"div",K:"ytp-info-panel-preview-text",sQ:"{{text}}"},{X:"div",K:"ytp-info-panel-preview-chevron",sQ:"{{chevron}}"}]});var b=this;this.G=F;this.r0=this.C=this.videoId=null;this.Z=this.showControls=this.U=!1;this.B(this.element,"click",function(){F.logClick(b.element);F.bJ();CE(J)}); this.T=new g.ZU(this,250,!1,100);g.k(this,this.T);this.G.createServerVe(this.element,this,!0);this.B(F,"videodatachange",this.onVideoDataChange);this.B(F,"presentingplayerstatechange",this.Wt);this.B(this.G,"paidcontentoverlayvisibilitychange",this.WB);this.B(this.G,"infopaneldetailvisibilitychange",this.WB);var I=F.getVideoData()||{};tea(I)&&Zem(this,I);this.B(F,"onShowControls",this.gF);this.B(F,"onHideControls",this.kz)}; Zem=function(F,J){if(!J.ir||!F.G.Bx()){var b=J.Sj||1E4,I=tea(J);F.C?J.videoId&&J.videoId!==F.videoId&&(g.L8(F.C),F.videoId=J.videoId,I?(LWC(F,b,J),F.Bo()):(F.fk(),F.C.dispose(),F.C=null)):I&&(J.videoId&&(F.videoId=J.videoId),LWC(F,b,J),F.Bo())}}; tea=function(F){var J,b,I,u;return!!((J=F.xH)==null?0:(b=J.title)==null?0:b.content)||!!((I=F.xH)==null?0:(u=I.bodyText)==null?0:u.content)}; LWC=function(F,J,b){F.C&&F.C.dispose();F.C=new g.ty(F.jPI,J,F);g.k(F,F.C);var I;J=((I=b.xH)==null?void 0:I.trackingParams)||null;F.G.setTrackingParams(F.element,J);var u;var w,M;if(b==null?0:(w=b.xH)==null?0:(M=w.title)==null?0:M.content){var q;I=(u=b.xH)==null?void 0:(q=u.title)==null?void 0:q.content;var v,a;if((v=b.xH)==null?0:(a=v.bodyText)==null?0:a.content)I+=" \u2022 ";u=I}else u="";var e,K;b=((e=b.xH)==null?void 0:(K=e.bodyText)==null?void 0:K.content)||"";F.update({text:u+b,chevron:g.yr()})}; FJm=function(F,J){F.C&&(g.x(J,8)?(F.U=!0,F.Bo(),F.C.start()):(g.x(J,2)||g.x(J,64))&&F.videoId&&(F.videoId=null))}; i_=function(F){var J=null;try{J=F.toLocaleString("pt-BR",{style:"percent"})}catch(b){J=F.toLocaleString(void 0,{style:"percent"})}return J}; z4=function(F,J){var b=0;F=g.N(F);for(var I=F.next();!(I.done||I.value.startTime>J);I=F.next())b++;return b===0?b:b-1}; J74=function(F,J){for(var b=0,I=g.N(F),u=I.next();!u.done;u=I.next()){u=u.value;if(J=u.timeRangeStartMillis&&J0?J[0]:null;var b=g.c1("ytp-chrome-bottom"),I=g.c1("ytp-ad-module");F.Z=!(b==null||!b.contains(J));F.Y=!(I==null||!I.contains(J));F.N=!(J==null||!J.hasAttribute("data-tooltip-target-fixed"));return J}; zDa=function(F,J,b){if(!F.W){if(J){F.tooltipRenderer=J;J=F.tooltipRenderer.text;var I=!1,u;(J==null?0:(u=J.runs)==null?0:u.length)&&J.runs[0].text&&(F.update({title:J.runs[0].text.toString()}),I=!0);g.Wc(F.title,I);J=F.tooltipRenderer.detailsText;u=!1;var w;if((J==null?0:(w=J.runs)==null?0:w.length)&&J.runs[0].text){I=J.runs[0].text.toString();w=I.indexOf("$TARGET_ICON");if(w>-1)if(F.tooltipRenderer.targetId){J=[];I=I.split("$TARGET_ICON");var M=new g.Mc({X:"span",K:"ytp-promotooltip-details-icon", j:[y7J[F.tooltipRenderer.targetId]]});g.k(F,M);for(var q=[],v=g.N(I),a=v.next();!a.done;a=v.next())a=new g.Mc({X:"span",K:"ytp-promotooltip-details-component",sQ:a.value}),g.k(F,a),q.push(a);I.length===2?(J.push(q[0].element),J.push(M.element),J.push(q[1].element)):I.length===1&&(w===0?(J.push(M.element),J.push(q[0].element)):(J.push(q[0].element),J.push(M.element)));w=J.length?J:null}else w=null;else w=I;if(w){if(typeof w!=="string")for(g.J6(F.details),u=g.N(w),w=u.next();!w.done;w=u.next())F.details.appendChild(w.value); else F.update({details:w});u=!0}}g.Wc(F.details,u);u=F.tooltipRenderer.acceptButton;w=!1;var e,K,p;((e=g.O(u,g.TX))==null?0:(K=e.text)==null?0:(p=K.runs)==null?0:p.length)&&g.O(u,g.TX).text.runs[0].text&&(F.update({acceptButtonText:g.O(u,g.TX).text.runs[0].text.toString()}),w=!0);g.Wc(F.acceptButton,w);e=F.tooltipRenderer.dismissButton;K=!1;var m,y,f;((m=g.O(e,g.TX))==null?0:(y=m.text)==null?0:(f=y.runs)==null?0:f.length)&&g.O(e,g.TX).text.runs[0].text&&(F.update({dismissButtonText:g.O(e,g.TX).text.runs[0].text.toString()}), K=!0);g.Wc(F.dismissButton,K)}b&&(F.T=b);F.C=mia(F);F.V=!1;F.G.J().S("web_player_hide_nitrate_promo_tooltip")||F.wY(!0);iRa(F);F.uT&&!F.Tj&&(F.Tj=!0,F.Po.Iy(0));F.U&&F.G.logVisibility(F.element,F.uT)}}; jc=function(F){F.wY(!1);F.U&&F.G.logVisibility(F.element,F.uT)}; N6m=function(F){var J,b,I,u=((J=g.O(F.acceptButton,g.TX))==null?void 0:(b=J.text)==null?void 0:(I=b.runs)==null?void 0:I.length)&&!!g.O(F.acceptButton,g.TX).text.runs[0].text,w,M,q;J=((w=g.O(F.dismissButton,g.TX))==null?void 0:(M=w.text)==null?void 0:(q=M.runs)==null?void 0:q.length)&&!!g.O(F.dismissButton,g.TX).text.runs[0].text;return u||J}; iRa=function(F){var J;if(!(J=!F.C)){J=F.C;var b=window.getComputedStyle(J);J=b.display==="none"||b.visibility==="hidden"||J.getAttribute("aria-hidden")==="true"}if(J||F.G.isMinimized())F.wY(!1);else if(J=g.fL(F.C),J.width&&J.height){F.G.kU(F.element,F.C);var I=F.G.mG().getPlayerSize().height;b=g.fL(F.RI("ytp-promotooltip-container")).height;F.Z?F.element.style.top=I-b-J.height-12+"px":F.N||(I=F.G.xK().height-b-J.height-12,F.element.style.top=I+"px");I=F.RI("ytp-promotooltip-pointer");var u=g.NB(F.C, F.G.getRootNode()),w=Number(F.element.style.left.replace(/[^\d\.]/g,""));F=F.G.isFullscreen()?18:12;I.style.left=u.x-w+J.width/2-F+"px";I.style.top=b+"px"}else F.wY(!1)}; G4=function(F){g.U.call(this,{X:"button",Dv:["ytp-replay-button","ytp-button"],L:{title:"Reiniciar"},j:[g.dV()]});this.G=F;this.B(F,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.aC(F.getPlayerStateObject());zP(this.G,this.element,this)}; V$=function(F,J){J=J===void 0?240:J;g.U.call(this,{X:"button",Dv:["ytp-button","ytp-search-button"],L:{title:"Pesquisar","data-tooltip-opaque":String(g.dN(F.J()))},j:[{X:"div",K:"ytp-search-icon",sQ:"{{icon}}"},{X:"div",K:"ytp-search-title",sQ:"Pesquisar"}]});this.api=F;this.U=J;this.visible=!1;this.updateValue("icon",{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},j:[{X:"path",K:"ytp-svg-fill",L:{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"}}]}); F.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.C();this.B(F,"appresize",this.C);this.B(F,"videodatachange",this.C);zP(F,this.element,this)}; g.Pm=function(F,J,b,I){I=I===void 0?240:I;g.U.call(this,{X:"button",Dv:["ytp-button","ytp-share-button"],L:{title:"Compartilhar","aria-haspopup":"true","aria-owns":b.element.id,"data-tooltip-opaque":String(g.dN(F.J()))},j:[{X:"div",K:"ytp-share-icon",sQ:"{{icon}}"},{X:"div",K:"ytp-share-title",sQ:"Compartilhar"}]});this.api=F;this.C=J;this.T=b;this.Z=I;this.U=this.visible=!1;this.tooltip=this.C.W1();F.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.B(F,"videodatachange", this.VG);this.B(F,"videoplayerreset",this.VG);this.B(F,"appresize",this.VG);this.B(F,"presentingplayerstatechange",this.VG);this.VG();this.addOnDisposeCallback(g.iy(this.tooltip,this.element))}; lPG=function(F){var J=F.api.J(),b=F.api.getVideoData(),I=g.dN(J)&&g.Ef(F.api)&&g.x(F.api.getPlayerStateObject(),128);J=J.T||J.disableSharing&&F.api.getPresentingPlayerType()!==2||!b.showShareButton||b.lJ||I||g.tw(b)||F.U;I=F.api.mG().getPlayerSize().width;return!!b.videoId&&I>=F.Z&&!J}; fPv=function(F,J){J.name!=="InvalidStateError"&&J.name!=="AbortError"&&(J.name==="NotAllowedError"?(F.C.bJ(),CE(F.T,F.element,!1)):g.Td(J))}; diz=function(F,J){var b=wV(),I=F.J();b={X:"div",K:"ytp-share-panel",L:{id:wV(),role:"dialog","aria-labelledby":b},j:[{X:"div",K:"ytp-share-panel-inner-content",j:[{X:"div",K:"ytp-share-panel-title",L:{id:b},sQ:"Compartilhar"},{X:"a",Dv:["ytp-share-panel-link","ytp-no-contextmenu"],L:{href:"{{link}}",target:I.N,title:"Compartilhar link","aria-label":"{{shareLinkWithUrl}}"},sQ:"{{linkText}}"},{X:"label",K:"ytp-share-panel-include-playlist",j:[{X:"input",K:"ytp-share-panel-include-playlist-checkbox", L:{type:"checkbox",checked:"true"}},"Incluir lista de reprodu\u00e7\u00e3o"]},{X:"div",K:"ytp-share-panel-loading-spinner",j:[JH()]},{X:"div",K:"ytp-share-panel-service-buttons",sQ:"{{buttons}}"},{X:"div",K:"ytp-share-panel-error",sQ:"Ocorreu um erro ao recuperar informa\u00e7\u00f5es de compartilhamento. Tente novamente mais tarde."}]},{X:"button",Dv:["ytp-share-panel-close","ytp-button"],L:{title:"Fechar"},j:[g.iA()]}]};g.YJ.call(this,F,b,250);var u=this;this.moreButton=null;this.api=F;this.tooltip= J.W1();this.T=[];this.W=this.RI("ytp-share-panel-inner-content");this.closeButton=this.RI("ytp-share-panel-close");this.B(this.closeButton,"click",this.fk);this.addOnDisposeCallback(g.iy(this.tooltip,this.closeButton));this.Z=this.RI("ytp-share-panel-include-playlist-checkbox");this.B(this.Z,"click",this.VG);this.C=this.RI("ytp-share-panel-link");this.addOnDisposeCallback(g.iy(this.tooltip,this.C));this.api.createClientVe(this.C,this,164503);this.B(this.C,"click",function(w){w.preventDefault();u.api.logClick(u.C); var M=u.api.getVideoUrl(!0,!0,!1,!1);M=WJo(u,M);g.Fy(M,u.api,w)&&u.api.jE("SHARE_CLICKED")}); this.listen("click",this.i8);this.B(F,"videoplayerreset",this.hide);this.B(F,"fullscreentoggled",this.onFullscreenToggled);this.B(F,"onLoopRangeChange",this.sfQ);this.hide()}; jLz=function(F,J){EvG(F);for(var b=J.links||J.shareTargets,I=0,u={},w=0;w'),(f=m.document)&&f.write&&(f.write($_(y)),f.close()))):((m=g.C5(m,f,p,r))&&y.noopener&&(m.opener=null),m&&y.noreferrer&&(m.opener=null));m&&(m.opener||(m.opener=window),m.focus());K.preventDefault()}}}(u)); u.Xi.addOnDisposeCallback(g.iy(F.tooltip,u.Xi.element));q==="Facebook"?F.api.createClientVe(u.Xi.element,u.Xi,164504):q==="Twitter"&&F.api.createClientVe(u.Xi.element,u.Xi,164505);F.B(u.Xi.element,"click",function(e){return function(){F.api.logClick(e.Xi.element)}}(u)); F.api.logVisibility(u.Xi.element,!0);F.T.push(u.Xi);I++}}var v=J.more||J.moreLink,a=new g.U({X:"a",Dv:["ytp-share-panel-service-button","ytp-button"],j:[{X:"span",K:"ytp-share-panel-service-button-more",j:[{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},j:[{X:"rect",L:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{X:"path",L:{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"}}]}]}],L:{href:v,target:"_blank",title:"Mais"}});a.listen("click",function(e){var K=v;F.api.logClick(F.moreButton.element);K=WJo(F,K);g.Fy(K,F.api,e)&&F.api.jE("SHARE_CLICKED")}); a.addOnDisposeCallback(g.iy(F.tooltip,a.element));F.api.createClientVe(a.element,a,164506);F.B(a.element,"click",function(){F.api.logClick(a.element)}); F.api.logVisibility(a.element,!0);F.T.push(a);F.moreButton=a;F.updateValue("buttons",F.T)}; WJo=function(F,J){var b={};g.dN(F.api.J())&&(g.wO(F.api,"addEmbedsConversionTrackingParams",[b]),J=g.Os(J,b));return J}; EvG=function(F){for(var J=g.N(F.T),b=J.next();!b.done;b=J.next())b=b.value,b.detach(),g.q8(b);F.T=[]}; Bm=function(F){return F===void 0||F.startSec===void 0||F.endSec===void 0?!1:!0}; G7z=function(F,J){F.startSec+=J;F.endSec+=J}; PYz=function(F){XI.call(this,F);this.U=this.C=this.isContentForward=this.V=!1;VUo(this);this.B(this.G,"changeProductsInVideoVisibility",this.wVN);this.B(this.G,"videodatachange",this.onVideoDataChange)}; B67=function(F){F.W&&F.fW.element.removeChild(F.W.element);F.W=void 0}; r77=function(F,J){return J.map(function(b){var I,u;if((b=(I=g.O(b,T6a))==null?void 0:(u=I.thumbnail)==null?void 0:u.thumbnails)&&b.length!==0)return b[0].url}).filter(function(b){return b!==void 0}).map(function(b){b=new g.U({X:"img", K:"ytp-suggested-action-product-thumbnail",L:{alt:"",src:b}});g.k(F,b);return b})}; SgC=function(F,J){F.isContentForward=J;g.qr(F.badge.element,"ytp-suggested-action-badge-content-forward",J)}; T4=function(F){var J=F.isContentForward&&!F.DS();g.qr(F.badge.element,"ytp-suggested-action-badge-preview-collapsed",J&&F.C);g.qr(F.badge.element,"ytp-suggested-action-badge-preview-expanded",J&&F.U)}; rs=function(F,J,b){return new g.b6(F*1E3,J*1E3,{priority:9,namespace:b})}; sL_=function(F){F.G.Yo("shopping_overlay_visible");F.G.Yo("shopping_overlay_preview_collapsed");F.G.Yo("shopping_overlay_preview_expanded");F.G.Yo("shopping_overlay_expanded")}; VUo=function(F){F.B(F.G,g.u6("shopping_overlay_visible"),function(){F.G0(!0)}); F.B(F.G,g.wq("shopping_overlay_visible"),function(){F.G0(!1)}); F.B(F.G,g.u6("shopping_overlay_expanded"),function(){F.eE=!0;C1(F)}); F.B(F.G,g.wq("shopping_overlay_expanded"),function(){F.eE=!1;C1(F)}); F.B(F.G,g.u6("shopping_overlay_preview_collapsed"),function(){F.C=!0;T4(F)}); F.B(F.G,g.wq("shopping_overlay_preview_collapsed"),function(){F.C=!1;T4(F)}); F.B(F.G,g.u6("shopping_overlay_preview_expanded"),function(){F.U=!0;T4(F)}); F.B(F.G,g.wq("shopping_overlay_preview_expanded"),function(){F.U=!1;T4(F)})}; CYJ=function(F){g.U.call(this,{X:"div",K:"ytp-shorts-title-channel",j:[{X:"a",K:"ytp-shorts-title-channel-logo",L:{href:"{{channelLink}}",target:F.J().N,"aria-label":"{{channelLogoLabel}}"}},{X:"div",K:"ytp-shorts-title-expanded-heading",j:[{X:"div",K:"ytp-shorts-title-expanded-title",j:[{X:"a",sQ:"{{expandedTitle}}",L:{href:"{{channelTitleLink}}",target:F.J().N,tabIndex:"0"}}]}]}]});var J=this;this.api=F;this.C=this.RI("ytp-shorts-title-channel-logo");this.channelName=this.RI("ytp-shorts-title-expanded-title"); this.subscribeButton=null;F.createClientVe(this.C,this,36925);this.B(this.C,"click",function(b){J.api.logClick(J.C);g.C5(window,Ygz(J));b.preventDefault()}); F.createClientVe(this.channelName,this,37220);this.B(this.channelName,"click",function(b){J.api.logClick(J.channelName);g.C5(window,Ygz(J));b.preventDefault()}); $ik(this);this.B(F,"videodatachange",this.VG);this.B(F,"videoplayerreset",this.VG);this.VG()}; $ik=function(F){if(!F.api.J().If){var J=F.api.getVideoData(),b=new g.Aq("Inscreva-se",null,"Inscrito",null,!0,!1,J.uB,J.subscribed,"channel_avatar",null,F.api,!0);F.api.createServerVe(b.element,F);var I;F.api.setTrackingParams(b.element,((I=J.subscribeButtonRenderer)==null?void 0:I.trackingParams)||null);F.B(b.element,"click",function(){F.api.logClick(b.element)}); F.subscribeButton=b;g.k(F,F.subscribeButton);F.subscribeButton.Az(F.element)}}; Ygz=function(F){var J=F.api.J(),b=F.api.getVideoData();b=g.Hu(J)+b.Om;if(!g.dN(J))return b;J={};g.wO(F.api,"addEmbedsConversionTrackingParams",[J]);return g.Os(b,J)}; Sc=function(F){g.YJ.call(this,F,{X:"button",Dv:["ytp-skip-intro-button","ytp-popup","ytp-button"],j:[{X:"div",K:"ytp-skip-intro-button-text",sQ:"Pular introdu\u00e7\u00e3o"}]},100);var J=this;this.T=!1;this.C=new g.ty(function(){J.hide()},5E3); this.jZ=this.B9=NaN;g.k(this,this.C);this.V=function(){J.show()}; this.W=function(){J.hide()}; this.Z=function(){var b=J.G.getCurrentTime();b>J.B9/1E3&&b0?{X:"svg",L:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},j:[{X:"path",Dv:["ytp-circle-arrow","ytp-svg-fill"],L:{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"}}, {X:"text",Dv:["ytp-jump-button-text","ytp-svg-fill"],L:{x:"7.05",y:"15.05"}}]}:{X:"svg",L:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},j:[{X:"path",Dv:["ytp-circle-arrow","ytp-svg-fill"],L:{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"}}, {X:"text",Dv:["ytp-jump-button-text","ytp-svg-fill"],L:{x:"6.5",y:"15"}}]}]});var b=this;this.G=F;this.C=J;this.U=new g.ty(function(){b.T?(b.T=!1,b.U.start()):b.element.classList.remove("ytp-jump-spin","backwards")},250); this.T=!1;(J=J>0)?this.G.createClientVe(this.element,this,36843):this.G.createClientVe(this.element,this,36844);var I=g.m8(J?"Avance $SECONDS segundos. (\u2192)":"Volte $SECONDS segundos. (\u2190)",{SECONDS:Math.abs(this.C).toString()});this.update({title:I,"data-title-no-tooltip":I,"aria-keyshortcuts":J?"\u2192":"\u2190"});this.Z=this.element.querySelector(".ytp-jump-button-text");this.Z.textContent=Math.abs(this.C).toString();this.listen("click",this.onClick,this);zP(F,this.element,this)}; ov3=function(F,J){J?F.element.classList.add("ytp-jump-button-enabled"):F.element.classList.remove("ytp-jump-button-enabled");F.G.logVisibility(F.element,J);F.G.Dl()}; Q$=function(F,J){Yr.call(this,F,J,"timedMarkerCueRange","Momentos importantes da visualiza\u00e7\u00e3o");this.B(F,g.wq("timedMarkerCueRange"),this.Q6);this.B(F,"updatemarkervisibility",this.updateVideoData)}; hDa=function(F){var J,b=(J=F.G.getVideoData())==null?void 0:J.cN;if(b)for(F=F.Z.dD,b=g.N(b),J=b.next();!J.done;J=b.next())if(J=F[J.value]){var I=void 0,u=void 0,w=void 0;if(((I=J.onTap)==null?void 0:(u=I.innertubeCommand)==null?void 0:(w=u.changeEngagementPanelVisibilityAction)==null?void 0:w.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return J}}; R9=function(F){var J=F.S("web_enable_pip_on_miniplayer");g.U.call(this,{X:"button",Dv:["ytp-miniplayer-button","ytp-button"],L:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"6","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},j:[J?{X:"svg",L:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},j:[{X:"g",L:{transform:"translate(96, -96) scale(0.8)"},j:[{X:"path",G1:!0,L:{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"}}]}]}: Pak()]});this.G=F;this.visible=!1;this.listen("click",this.onClick);this.B(F,"fullscreentoggled",this.VG);this.updateValue("title",g.NZ(F,"Miniplayer","i"));this.update({"data-title-no-tooltip":"Miniplayer"});zP(F,this.element,this);F.createClientVe(this.element,this,62946);this.VG()}; Db=function(F,J,b){b=b===void 0?!1:b;g.U.call(this,{X:"button",Dv:["ytp-mute-button","ytp-button"],L:F.J().dD?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}"}:{"aria-disabled":"true","aria-haspopup":"true"},sQ:"{{icon}}"});this.G=F;this.WN=b;this.C=null;this.Z=this.N=this.W=this.eE=NaN;this.Gj=this.V=null;this.T=[];this.U=[];this.visible=!1;this.Y=null;F.S("delhi_modern_web_player")&&this.update({"data-priority":3}); b=this.G.J();this.updateValue("icon",Gh());this.tooltip=J.W1();this.C=new g.Mc({X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"defs",j:[{X:"clipPath",L:{id:"ytp-svg-volume-animation-mask"},j:[{X:"path",L:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{X:"path",L:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{X:"path",K:"ytp-svg-volume-animation-mover",L:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{X:"clipPath",L:{id:"ytp-svg-volume-animation-slash-mask"}, j:[{X:"path",K:"ytp-svg-volume-animation-mover",L:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{X:"path",G1:!0,Dv:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],L:{"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"}},{X:"path",G1:!0,Dv:["ytp-svg-fill","ytp-svg-volume-animation-hider"],L:{"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.k(this,this.C);this.V=this.C.RI("ytp-svg-volume-animation-speaker");this.Gj=this.V.getAttribute("d");this.T=g.kM("ytp-svg-volume-animation-mover",this.C.element);this.U=g.kM("ytp-svg-volume-animation-hider",this.C.element);this.kQ=new en;g.k(this,this.kQ);this.Tj=new en;g.k(this,this.Tj);this.listen("click",this.y_D);this.B(F,"appresize",this.c7);this.B(F,"onVolumeChange",this.onVolumeChange);var I=null;b.dD?this.addOnDisposeCallback(g.iy(J.W1(), this.element)):(J="Seu navegador n\u00e3o suporta a altera\u00e7\u00e3o de volume. $BEGIN_LINKSaiba mais$END_LINK".split(/\$(BEGIN|END)_LINK/),I=new g.YJ(F,{X:"span",Dv:["ytp-popup","ytp-generic-popup"],L:{tabindex:"0"},j:[J[0],{X:"a",L:{href:"https://support.google.com/youtube/?p=noaudio",target:b.N},sQ:J[2]},J[4]]},100,!0),g.k(this,I),I.hide(),I.subscribe("show",function(u){F.rG(I,u)}),g.Pp(F,I.element,4)); this.message=I;F.createClientVe(this.element,this,28662);this.c7(F.mG().getPlayerSize());this.setVolume(F.getVolume(),F.isMuted())}; xiv=function(F,J){F.eE=J;var b=F.Gj;J&&(b+=mHa(c7Y,Uim,J));F.V.setAttribute("d",b)}; nvC=function(F,J){F.N=J;for(var b=20*J,I=0;I=3&&F.G.getPresentingPlayerType()!==2}; F0v=function(F){var J=dO(F.G.TF());return J?F.C?J.FI():J.Q5():!1}; ZRk=function(F){var J={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},b=F.playlist!=null&&F.playlist.FI();b=g.Ef(F.G)&&(!F.C||b);var I=F.C&&g.Bp(F.G),u=F0v(F),w=F.C&&F.G.getPresentingPlayerType()===5,M=g.NZ(F.G,"Pr\u00f3ximo","SHIFT+n"),q=g.NZ(F.G,"Anterior","SHIFT+p");if(w)J.title="Iniciar v\u00eddeo";else if(F.T)J.title="Reiniciar";else if(b){var v=null;F.playlist&&(v=g.dA(F.playlist,F.C?nrG(F.playlist):tcJ(F.playlist)));if(v){if(v.videoId){var a= F.playlist.listId;J.url=F.G.J().getVideoUrl(v.videoId,a?a.toString():void 0)}J.text=v.title;J.duration=v.lengthText?v.lengthText:v.lengthSeconds?g.lD(v.lengthSeconds):null;J.preview=v.lr("mqdefault.jpg")}F.C?(J.title=M,J["data-title-no-tooltip"]="Pr\u00f3ximo",J["aria-keyshortcuts"]="SHIFT+n"):(J.title=q,J["data-title-no-tooltip"]="Anterior",J["aria-keyshortcuts"]="SHIFT+p")}else if(I){if(q=(v=F.videoData)==null?void 0:g.nC(v))J.url=q.t4(),J.text=q.title,J.duration=q.lengthText?q.lengthText:q.lengthSeconds? g.lD(q.lengthSeconds):null,J.preview=q.lr("mqdefault.jpg");J.title=M;J["data-title-no-tooltip"]="Pr\u00f3ximo";J["aria-keyshortcuts"]="SHIFT+n"}J.disabled=!I&&!b&&!u&&!w;F.update(J);F.V=!!J.url;I||b||F.T||u||w?F.U||(F.U=g.iy(F.tooltip,F.element),F.W=F.listen("click",F.onClick,F)):F.U&&(F.U(),F.U=null,F.iX(F.W),F.W=null);F.tooltip.Dl();g.qr(F.element,"ytp-playlist-ui",F.C&&b)}; b43=function(F,J){g.U.call(this,{X:"div",K:"ytp-fine-scrubbing",j:[{X:"div",K:"ytp-fine-scrubbing-draggable",j:[{X:"div",K:"ytp-fine-scrubbing-thumbnails",L:{tabindex:"0",role:"slider",type:"range","aria-label":"Clique ou role o painel at\u00e9 a busca precisa","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{X:"div",L:{"aria-hidden":"true"},K:"ytp-fine-scrubbing-cursor"},{X:"div",K:"ytp-fine-scrubbing-seek-time",L:{"aria-hidden":"true"}, sQ:"{{seekTime}}"},{X:"div",K:"ytp-fine-scrubbing-play",j:[Wi()],L:{title:"Reproduzir desta posi\u00e7\u00e3o",role:"button"}},{X:"div",K:"ytp-fine-scrubbing-dismiss",j:[g.iA()],L:{title:"Sair da busca precisa",role:"button"}}]});var b=this;this.api=F;this.W=this.RI("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.RI("ytp-fine-scrubbing-dismiss");this.Gj=this.RI("ytp-fine-scrubbing-draggable");this.playButton=this.RI("ytp-fine-scrubbing-play");this.thumbnails=[];this.U=[];this.qf=this.C=0; this.fW=void 0;this.Tj=NaN;this.dD=this.N=this.T=this.Y=0;this.Z=[];this.interval=this.frameCount=0;this.V=160;this.scale=1;this.zj=0;this.isEnabled=this.WN=!1;JFa(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.iy(J,this.dismissButton));this.addOnDisposeCallback(g.iy(J,this.playButton));this.kQ=new g.L1(this.Gj,!0);this.kQ.subscribe("dragstart",this.oT,this);this.kQ.subscribe("dragmove",this.vI,this);this.kQ.subscribe("dragend",this.Mg,this);this.B(F,"SEEK_COMPLETE",this.hI);F.S("web_fix_fine_scrubbing_false_play")&& this.B(F,"rootnodemousedown",function(I){b.eE=I}); this.W.addEventListener("keydown",function(){}); g.k(this,this.kQ);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.W,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; JFa=function(F,J){var b=g.lD(J),I=g.m8("Procurar $PROGRESS",{PROGRESS:g.lD(J,!0)});F.update({ariamin:0,ariamax:Math.floor(F.api.getDuration()),arianow:Math.floor(J),arianowtext:I,seekTime:b})}; INo=function(F){F.Tj=NaN;F.N=0;F.Y=F.T}; Mbz=function(F){var J=F.api.Si();if(J){var b=90*F.scale,I=Tt(J,160*F.scale);if(J=J.levels[I]){F.V=J.width;if(!F.Z.length){I=[];for(var u=r7(J,J.ll()),w=J.columns*J.rows,M=J.frameCount,q=0;q<=u;q++)for(var v=MF.Z.length;)I= void 0,(I=F.thumbnails.pop())==null||I.dispose();for(;F.thumbnails.lengthb.length;)I=void 0,(I=F.U.pop())==null||I.dispose(); for(;F.U.length-b?-J/b*F.interval*.5:-(J+b/2)/b*F.interval}; AFa=function(F){return-((F.W.offsetWidth||(F.frameCount-1)*F.V*F.scale)-F.C/2)}; u6o=function(){g.U.call(this,{X:"div",K:"ytp-fine-scrubbing-thumbnail"})}; wIa=function(){g.U.call(this,{X:"div",K:"ytp-fine-scrubbing-chapter-title",j:[{X:"div",K:"ytp-fine-scrubbing-chapter-title-content",sQ:"{{chapterTitle}}"}]})}; vE7=function(F){g.U.call(this,{X:"div",K:"ytp-heat-map-chapter",j:[{X:"svg",K:"ytp-heat-map-svg",L:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},j:[{X:"defs",j:[{X:"clipPath",L:{id:"{{id}}"},j:[{X:"path",K:"ytp-heat-map-path",L:{d:"",fill:"white"}}]},{X:"linearGradient",L:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},j:[{X:"stop",L:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{X:"stop",L:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{X:"rect",K:"ytp-heat-map-graph",L:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{X:"rect",K:"ytp-heat-map-hover",L:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{X:"rect",K:"ytp-heat-map-play",L:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{X:"path",K:"ytp-modern-heat-map",L:{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=F;this.Y=this.RI("ytp-heat-map-svg");this.W=this.RI("ytp-heat-map-path");this.Z=this.RI("ytp-heat-map-graph");this.V=this.RI("ytp-heat-map-play");this.C=this.RI("ytp-heat-map-hover");this.T=this.RI("ytp-modern-heat-map");this.o8=!1;this.U=60;F=""+g.n3(this);this.update({id:F});F="url(#"+F+")";this.Z.setAttribute("clip-path",F);this.V.setAttribute("clip-path",F);this.C.setAttribute("clip-path", F)}; aNa=function(F,J){J>0&&(F.U=J,F.Y.style.height=F.U+"px")}; hq=function(){g.U.call(this,{X:"div",K:"ytp-chapter-hover-container",j:[{X:"div",K:"ytp-progress-bar-padding"},{X:"div",K:"ytp-progress-list",j:[{X:"div",Dv:["ytp-play-progress","ytp-swatch-background-color"]},{X:"div",K:"ytp-progress-linear-live-buffer"},{X:"div",K:"ytp-load-progress"},{X:"div",K:"ytp-hover-progress"},{X:"div",K:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.U=this.RI("ytp-progress-list");this.W=this.RI("ytp-progress-linear-live-buffer"); this.Z=this.RI("ytp-ad-progress-list");this.V=this.RI("ytp-load-progress");this.Y=this.RI("ytp-play-progress");this.T=this.RI("ytp-hover-progress");this.C=this.RI("ytp-chapter-hover-container")}; cm=function(F,J){g.aN(F.C,"width",J)}; enJ=function(F,J){g.aN(F.C,"margin-right",J+"px")}; K0Y=function(){this.U=this.position=this.T=this.C=this.Z=this.width=NaN}; pIC=function(){g.U.call(this,{X:"div",K:"ytp-timed-marker"});this.C=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.xr=function(F,J){g.vi.call(this,{X:"div",K:"ytp-progress-bar-container",L:{"aria-disabled":"true"},j:[{X:"div",Dv:["ytp-heat-map-container"],j:[{X:"div",K:"ytp-heat-map-edu"}]},{X:"div",Dv:["ytp-progress-bar"],L:{tabindex:"0",role:"slider","aria-label":"Bot\u00e3o deslizante de busca","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},j:[{X:"div",K:"ytp-chapters-container"},{X:"div",K:"ytp-timed-markers-container"},{X:"div", K:"ytp-clip-start-exclude"},{X:"div",K:"ytp-clip-end-exclude"},{X:"div",K:"ytp-scrubber-container",j:[{X:"div",Dv:["ytp-scrubber-button","ytp-swatch-background-color"],j:[{X:"div",K:"ytp-scrubber-pull-indicator"},{X:"img",Dv:["ytp-decorated-scrubber-button"]}]}]}]},{X:"div",Dv:["ytp-fine-scrubbing-container"],j:[{X:"div",K:"ytp-fine-scrubbing-edu"}]},{X:"div",K:"ytp-bound-time-left",sQ:"{{boundTimeLeft}}"},{X:"div",K:"ytp-bound-time-right",sQ:"{{boundTimeRight}}"},{X:"div",K:"ytp-clip-start",L:{title:"{{clipstarttitle}}"}, sQ:"{{clipstarticon}}"},{X:"div",K:"ytp-clip-end",L:{title:"{{clipendtitle}}"},sQ:"{{clipendicon}}"}]});this.api=F;this.xH=!1;this.YH=this.Lv=this.KW=this.W=this.ir=0;this.Uz=null;this.xo=!1;this.qf={};this.Kk={};this.clipEnd=Infinity;this.Om=this.RI("ytp-clip-end");this.If=new g.L1(this.Om,!0);this.NW=this.RI("ytp-clip-end-exclude");this.T1=this.RI("ytp-clip-start-exclude");this.clipStart=0;this.xm=this.RI("ytp-clip-start");this.MI=new g.L1(this.xm,!0);this.N=this.nW=0;this.progressBar=this.RI("ytp-progress-bar"); this.cN={};this.dD={};this.Um=this.RI("ytp-chapters-container");this.D4=this.RI("ytp-timed-markers-container");this.C=[];this.V=[];this.zU={};this.jZ=null;this.Gj=-1;this.bR=this.kQ=0;this.Ly=this.Y=null;this.GU=this.RI("ytp-scrubber-button");this.Se=this.RI("ytp-decorated-scrubber-button");this.MJ=this.RI("ytp-scrubber-container");this.oI=new g.K$;this.n7=new K0Y;this.T=new BL(0,0);this.AJ=null;this.Tj=this.K7=!1;this.IP=null;this.eE=this.RI("ytp-heat-map-container");this.M0=this.RI("ytp-heat-map-edu"); this.Z=[];this.heatMarkersDecorations=[];this.Jz=this.RI("ytp-fine-scrubbing-container");this.y6=this.RI("ytp-fine-scrubbing-edu");this.U=void 0;this.WN=this.g9=this.fW=!1;this.tooltip=J.W1();this.addOnDisposeCallback(g.iy(this.tooltip,this.Om));g.k(this,this.If);this.If.subscribe("hoverstart",this.R2,this);this.If.subscribe("hoverend",this.PB,this);this.B(this.Om,"click",this.nZ);this.addOnDisposeCallback(g.iy(this.tooltip,this.xm));g.k(this,this.MI);this.MI.subscribe("hoverstart",this.R2,this); this.MI.subscribe("hoverend",this.PB,this);this.B(this.xm,"click",this.nZ);gEm(this);this.B(F,"resize",this.mO);this.B(F,"presentingplayerstatechange",this.ZWG);this.B(F,"videodatachange",this.xR);this.B(F,"videoplayerreset",this.e_Q);this.B(F,"cuerangesadded",this.njv);this.B(F,"cuerangesremoved",this.sPQ);this.B(F,"onLoopRangeChange",this.Lg);this.B(F,"innertubeCommand",this.onClickCommand);this.B(F,g.u6("timedMarkerCueRange"),this.T0E);this.B(F,"updatemarkervisibility",this.Wi);this.B(F,"serverstitchedvideochange", this.a4G);this.updateVideoData(F.getVideoData(),!0);this.Lg(F.getLoopRange());Ub(this)&&!this.U&&(this.U=new b43(this.api,this.tooltip),F=g.zv(this.element).x||0,this.U.mO(F,this.W),this.U.Az(this.Jz),g.k(this,this.U),this.B(this.U.dismissButton,"click",this.FZ),this.B(this.U.playButton,"click",this.MD),this.B(this.U.element,"dblclick",this.MD));this.api.createClientVe(this.eE,this,139609,!0);this.api.createClientVe(this.M0,this,140127,!0);this.api.createClientVe(this.y6,this,151179,!0);this.api.createClientVe(this.progressBar, this,38856,!0)}; gEm=function(F){if(F.C.length===0){var J=new hq;F.C.push(J);g.k(F,J);J.Az(F.Um,0)}for(;F.C.length>1;)F.C.pop().dispose();cm(F.C[0],"100%");F.C[0].startTime=0;F.C[0].title=""}; mmz=function(F){var J=J===void 0?NaN:J;var b=new vE7(F.api);F.Z.push(b);g.k(F,b);b.Az(F.eE);J>=0&&(b.element.style.width=J+"px")}; yFa=function(F){for(;F.V.length;)F.V.pop().dispose()}; zn3=function(F){var J,b,I,u,w;return(w=g.O((u=g.O((J=F.getWatchNextResponse())==null?void 0:(b=J.playerOverlays)==null?void 0:(I=b.playerOverlayRenderer)==null?void 0:I.decoratedPlayerBarRenderer,lr))==null?void 0:u.playerBar,i4z))==null?void 0:w.chapters}; Ntv=function(F){for(var J=F.C,b=[],I=0;I=M&&f<=e&&w.push(p)}v>0&&(F.eE.style.height=v+"px");M=F.Z[I];e=w;p=u;y=v;f=I===0;f=f===void 0?!1:f;aNa(M,y);K=e;m=M.U;f=f===void 0?!1:f;var d=1E3/K.length,G=[];G.push({x:0,y:100});for(var P=0;P0&&(b=w[w.length-1])}g.nn(F);q=[];J=g.N(J.heatMarkersDecorations||[]);for(u=J.next();!u.done;u=J.next())if(u=g.O(u.value,Gra))v=u.label,I=b=a=void 0,q.push({visibleTimeRangeStartMillis:(a=u.visibleTimeRangeStartMillis)!=null?a:-1,visibleTimeRangeEndMillis:(b=u.visibleTimeRangeEndMillis)!=null?b:-1,decorationTimeMillis:(I=u.decorationTimeMillis)!=null?I:NaN,label:v?g.Kr(v):""});F.heatMarkersDecorations=q}}; W0a=function(F,J){F.V.push(J);g.k(F,J);J.Az(F.D4,F.D4.children.length)}; dm7=function(F,J){J=g.N(J);for(var b=J.next();!b.done;b=J.next()){b=b.value;var I=tq(F,b.timeRangeStartMillis/(F.T.C*1E3),Zb(F));g.aN(b.element,"transform","translateX("+I+"px) scaleX(0.6)")}}; lNk=function(F,J){var b=0,I=!1;J=g.N(J);for(var u=J.next();!u.done;u=J.next()){u=u.value;if(g.O(u,Pjz)){u=g.O(u,Pjz);var w={startTime:NaN,title:null,onActiveCommand:void 0},M=u.title;w.title=M?g.Kr(M):"";M=u.timeRangeStartMillis;M!=null&&(w.startTime=M);w.onActiveCommand=u.onActiveCommand;u=w;b===0&&u.startTime!==0&&(F.C[b].startTime=0,F.C[b].title="",F.C[b].onActiveCommand=u.onActiveCommand,b++,I=!0);F.C.length<=b&&(w=new hq,F.C.push(w),g.k(F,w),w.Az(F.Um,F.Um.children.length));F.C[b].startTime= u.startTime;F.C[b].title=u.title?u.title:"";F.C[b].onActiveCommand=u.onActiveCommand;F.C[b].index=I?b-1:b}b++}for(;b=0;I--)if(F.C[I].width>0){enJ(F.C[I],0);var u=Math.floor(F.C[I].width);F.C[I].width=u;cm(F.C[I],u+"px");break}F.C[b].width=0;cm(F.C[b],"0")}else b===F.C.length-1?(I=Math.floor(F.C[b].width+J),F.C[b].width=I,cm(F.C[b],I+"px")):(J=F.C[b].width+J,I=Math.round(J),J-=I,F.C[b].width=I,cm(F.C[b],I+"px"));b=0;if(F.Z.length===F.C.length)for(J=0;J< F.Z.length;J++)I=F.C[J].width,F.Z[J].element.style.width=I+"px",F.Z[J].element.style.left=b+"px",b+=I+Ln(F);F.api.S("delhi_modern_web_player")&&(F.C.length===1?F.C[0].U.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(F.C[0].U.classList.remove("ytp-progress-bar-end"),F.C[0].U.classList.add("ytp-progress-bar-start"),F.C[F.C.length-1].U.classList.add("ytp-progress-bar-end")))}; Bt4=function(F,J){var b=0,I=!1,u=F.C.length,w=F.T.C*1E3;w===0&&(w=F.api.getProgressState().seekableEnd*1E3);if(w>0&&F.W>0){for(var M=F.W-Ln(F)*F.kQ,q=F.bR===0?3:M*F.bR,v=g.N(F.C),a=v.next();!a.done;a=v.next())a.value.width=0;for(;b1);a=(w===0?0:v/w*M)+F.C[b].width;if(a>q)F.C[b].width=a;else{F.C[b].width=0;var e=F,K=b,p=e.C[K-1];p!==void 0&&p.width>0? p.width+=a:KF.bR&&(F.bR=v/w),I=!0)}b++}}return I}; Hm=function(F){if(F.W){var J=F.api.getProgressState(),b=F.api.getVideoData();if(!(b&&b.enableServerStitchedDai&&b.enablePreroll)||isFinite(J.current)){var I;if(((I=F.api.getVideoData())==null?0:nY(I))&&J.airingStart&&J.airingEnd)var u=Fi(F,J.airingStart,J.airingEnd);else if(F.api.getPresentingPlayerType()===2&&F.api.J().S("show_preskip_progress_bar_for_skippable_ads")){var w,M,q;u=(b=(u=F.api.getVideoData())==null?void 0:(w=u.getPlayerResponse())==null?void 0:(M=w.playerConfig)==null?void 0:(q=M.webPlayerConfig)== null?void 0:q.skippableAdProgressBarDuration)?Fi(F,J.seekableStart,b/1E3):Fi(F,J.seekableStart,J.seekableEnd)}else u=Fi(F,J.seekableStart,J.seekableEnd);w=Tg(u,J.loaded,0);J=Tg(u,J.current,0);M=F.T.U!==u.U||F.T.C!==u.C;F.T=u;Jd(F,J,w);M&&TtJ(F);rF3(F)}}}; Fi=function(F,J,b){return Suk(F)?new BL(Math.max(J,F.AJ.startTimeMs/1E3),Math.min(b,F.AJ.endTimeMs/1E3)):new BL(J,b)}; sBk=function(F,J){var b;if(((b=F.AJ)==null?void 0:b.type)==="repeatChapter"||(J==null?void 0:J.type)==="repeatChapter")J&&(J=F.C[z4(F.C,J.startTimeMs)],g.qr(J.C,"ytp-repeating-chapter",!1)),F.AJ&&(J=F.C[z4(F.C,F.AJ.startTimeMs)],g.qr(J.C,"ytp-repeating-chapter",!0)),F.C.forEach(function(I){g.qr(I.C,"ytp-exp-chapter-hover-container",!F.AJ)})}; IQ=function(F,J){var b=F.T;b=b.U+J.U*b.getLength();if(F.C.length>1){b=b7(F,J.T,!0);for(var I=0,u=0;u0&&(I+=F.C[u].width,I+=Ln(F));b=(F.C[b].startTime+(J.T-I)/F.C[b].width*((b===F.C.length-1?F.T.C*1E3:F.C[b+1].startTime)-F.C[b].startTime))/1E3||0}return b}; u7=function(F,J,b,I,u){J=J<0?0:Math.floor(Math.min(J,F.api.getDuration())*1E3);b=b<0?0:Math.floor(Math.min(b,F.api.getDuration())*1E3);F=F.progressBar.visualElement;I={seekData:{startMediaTimeMs:J,endMediaTimeMs:b,seekSource:I}};(J=g.W8())&&g.tE(nO)(void 0,J,F,u,I,void 0)}; Yu7=function(F,J,b){if(b>=F.C.length)return!1;var I=F.W-Ln(F)*F.kQ;return Math.abs(J-F.C[b].startTime/1E3)/F.T.C*I<4}; TtJ=function(F){F.GU.style.removeProperty("height");for(var J=g.N(Object.keys(F.qf)),b=J.next();!b.done;b=J.next())$ma(F,b.value);w1(F);Jd(F,F.N,F.nW)}; Zb=function(F){var J=F.oI.x;J=g.AD(J,0,F.W);F.n7.update(J,F.W);return F.n7}; Ad=function(F){return(F.Tj?135:90)-M2(F)}; M2=function(F){var J=48,b=F.api.J();F.Tj?J=54:g.dN(b)&&!b.U?J=40:F.api.S("delhi_modern_web_player")&&(J=68);return J}; Jd=function(F,J,b){F.N=J;F.nW=b;var I=Zb(F),u=F.T.C;var w=F.T;w=w.U+F.N*w.getLength();var M=g.m8("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.lD(w,!0),DURATION:g.lD(u,!0)}),q=z4(F.C,w*1E3);q=F.C[q].title;F.update({ariamin:Math.floor(F.T.U),ariamax:Math.floor(u),arianow:Math.floor(w),arianowtext:q?q+" "+M:M});u=F.clipStart;w=F.clipEnd;F.AJ&&F.api.getPresentingPlayerType()!==2&&(u=F.AJ.startTimeMs/1E3,w=F.AJ.endTimeMs/1E3);u=Tg(F.T,u,0);q=Tg(F.T,w,1);M=F.api.getVideoData();w=g.AD(J,u,q);b=(M==null? 0:g.UW(M))?1:g.AD(b,u,q);J=tq(F,J,I);g.aN(F.MJ,"transform","translateX("+J+"px)");F.api.S("delhi_modern_web_player")&&CjC(F,J);q2(F,I,u,w,"PLAY_PROGRESS");(M==null?0:nY(M))?(J=F.api.getProgressState().seekableEnd)&&q2(F,I,w,Tg(F.T,J),"LIVE_BUFFER"):q2(F,I,u,b,"LOAD_PROGRESS");if(F.api.S("web_player_heat_map_played_bar")){var v;(v=F.Z[0])!=null&&v.V.setAttribute("width",(w*100).toFixed(2)+"%")}}; CjC=function(F,J){J||(J=tq(F,F.N,Zb(F)));var b=F.xo?36:28,I=J-b/2;J+=b/2;F.Um.style.clipPath='path("M 0 0 L 0 8 L '+(I+" 8 C "+(I+6+" 8 "+(I+6)+" 0 "+I+" 0 L 0 0 M ")+(J+" 0 L ")+(F.W+" 0 L ")+(F.W+" 8 L ")+(J+" 8 C ")+(J-6+" 8 "+(J-6)+" 0 "+J+' 0")'))}; q2=function(F,J,b,I,u){var w=F.C.length,M=J.C-F.kQ*Ln(F),q=b*M;b=b7(F,q);var v=I*M;M=b7(F,v);u==="HOVER_PROGRESS"&&(M=b7(F,J.C*I,!0),v=J.C*I-XIa(F,J.C*I)*Ln(F));I=Math.max(q-QBY(F,b),0);for(q=b;q=F.C.length)return F.W;for(var b=0,I=0;I0||F.NW.clientWidth>0?(w=J.clientWidth/b,F=-1*F.T1.clientWidth/b):(w/=b,F=-1*F.C[u].element.offsetLeft/b),g.aN(J,"background-size",w+"px"),g.aN(J,"background-position-x",F+"px"))}; vy=function(F,J,b,I,u){u||F.api.J().U?J.style.width=b+"px":g.aN(J,"transform","scalex("+(I?b/I:0)+")")}; b7=function(F,J,b){var I=0;(b===void 0?0:b)&&(J-=XIa(F,J)*Ln(F));b=g.N(F.C);for(var u=b.next();!u.done;u=b.next()){u=u.value;if(J>u.width)J-=u.width;else break;I++}return I===F.C.length?I-1:I}; tq=function(F,J,b){var I=J*F.T.C*1E3;for(var u=-1,w=g.N(F.C),M=w.next();!M.done;M=w.next())M=M.value,I>M.startTime&&M.width>0&&u++;I=u<0?0:u;u=b.C-Ln(F)*F.kQ;return J*u+Ln(F)*I+b.Z}; XIa=function(F,J){for(var b=F.C.length,I=0,u=g.N(F.C),w=u.next();!w.done;w=u.next())if(w=w.value,w.width!==0)if(J>w.width)J-=w.width,J-=Ln(F),I++;else break;return I===b?b-1:I}; g.kra=function(F,J,b,I){var u=F.W!==b,w=F.Tj!==I;F.ir=J;F.W=b;F.Tj=I;Ub(F)&&(J=F.U)!=null&&(J.scale=I?1.5:1);TtJ(F);F.C.length===1&&(F.C[0].width=b||0);u&&g.nn(F);F.U&&w&&Ub(F)&&(F.U.isEnabled&&(b=F.Tj?135:90,I=b-M2(F),F.Jz.style.height=b+"px",g.aN(F.eE,"transform","translateY("+-I+"px)"),g.aN(F.progressBar,"transform","translateY("+-I+"px)")),Mbz(F.U))}; w1=function(F){var J=!!F.AJ&&F.api.getPresentingPlayerType()!==2,b=F.clipStart,I=F.clipEnd,u=!0,w=!0;J&&F.AJ?(b=F.AJ.startTimeMs/1E3,I=F.AJ.endTimeMs/1E3):(u=b>F.T.U,w=F.T.C>0&&IF.N);g.qr(F.GU,"ytp-scrubber-button-hover",b===I&&F.C.length>1);if(F.api.S("web_player_heat_map_played_bar")){var w;(w=F.Z[0])!=null&&w.C.setAttribute("width",(J.U*100).toFixed(2)+"%")}}}; $ma=function(F,J){var b=F.qf[J];J=F.Kk[J];var I=Zb(F),u=Tg(F.T,b.start/1E3,0),w=M0a(b,F.Tj)/I.width;var M=Tg(F.T,b.end/1E3,1);w!==Number.POSITIVE_INFINITY&&(u=g.AD(u,0,M-w));M=Math.min(M,u+w);b.color&&(J.style.background=b.color);b=u;J.style.left=Math.max(b*I.C+I.Z,0)+"px";vy(F,J,g.AD((M-b)*I.C+I.Z,0,I.width),I.width,!0)}; O4G=function(F,J){var b=J.getId();F.qf[b]===J&&(g.ID(F.Kk[b]),delete F.qf[b],delete F.Kk[b])}; Ub=function(F){var J=g.hP(F.api.J())&&(F.api.S("web_shorts_pip")||F.api.S("web_watch_pip")),b;return!((b=F.api.getVideoData())==null?0:b.isLivePlayback)&&!F.api.isMinimized()&&!F.api.isInline()&&(!F.api.JN()||!J)}; aQ=function(F){F.U&&(F.U.disable(),F.KW=0,F.eE.style.removeProperty("transform"),F.progressBar.style.removeProperty("transform"),F.Jz.style.removeProperty("height"),F.element.parentElement&&F.element.parentElement.style.removeProperty("height"))}; oEJ=function(F,J){var b=J/Ad(F)*M2(F);g.aN(F.progressBar,"transform","translateY("+-J+"px)");g.aN(F.eE,"transform","translateY("+-J+"px)");g.aN(F.Jz,"transform","translateY("+b+"px)");F.Jz.style.height=J+b+"px";F.element.parentElement&&(F.element.parentElement.style.height=M2(F)-b+"px")}; hnz=function(F,J){J?F.Y||(F.element.removeAttribute("aria-disabled"),F.Y=new g.L1(F.progressBar,!0),F.Y.subscribe("hovermove",F.eSG,F),F.Y.subscribe("hoverend",F.T9Q,F),F.Y.subscribe("dragstart",F.U0N,F),F.Y.subscribe("dragmove",F.XVv,F),F.Y.subscribe("dragend",F.ZeQ,F),F.api&&F.api.S("delhi_modern_web_player")&&(F.Ly=new g.L1(F.progressBar,!0),F.Ly.subscribe("hoverstart",function(){F.xo=!0;CjC(F)},F),F.Ly.subscribe("hoverend",function(){F.xo=!1; CjC(F)},F)),F.IP=F.listen("keydown",F.dF)):F.Y&&(F.element.setAttribute("aria-disabled","true"),F.iX(F.IP),F.Y.cancel(),F.Y.dispose(),F.Y=null)}; Ln=function(F){return F.api.S("delhi_modern_web_player")?4:F.Tj?3:2}; Suk=function(F){var J;return!((J=F.AJ)==null||!J.postId)&&F.api.getPresentingPlayerType()!==2}; eO=function(F,J){g.U.call(this,{X:"button",Dv:["ytp-remote-button","ytp-button"],L:{title:"Reproduzir na TV","aria-haspopup":"true","data-priority":"9"},sQ:"{{icon}}"});this.G=F;this.Rf=J;this.C=null;this.B(F,"onMdxReceiversChange",this.VG);this.B(F,"presentingplayerstatechange",this.VG);this.B(F,"appresize",this.VG);F.createClientVe(this.element,this,139118);this.VG();this.listen("click",this.U,this);zP(F,this.element,this)}; K9=function(F,J){g.U.call(this,{X:"button",Dv:["ytp-button","ytp-settings-button"],L:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":wV(),title:"Detalhes","data-tooltip-target-id":"ytp-settings-button"},j:[g.Ej()]});this.G=F;this.Rf=J;this.U=!0;this.listen("click",this.T);this.B(F,"onPlaybackQualityChange",this.updateBadge);this.B(F,"videodatachange",this.updateBadge);this.B(F,"webglsettingschanged",this.updateBadge);this.B(F,"appresize",this.C);zP(F,this.element,this);this.G.createClientVe(this.element, this,28663);this.updateBadge();this.C(F.mG().getPlayerSize())}; cFa=function(F,J){F.U=!!J;F.C(F.G.mG().getPlayerSize())}; p9=function(F,J){Zd.call(this,"Anota\u00e7\u00f5es",g.Ia.YX);this.G=F;this.Rf=J;this.C=!1;F.S("web_settings_menu_icons")&&this.setIcon({X:"svg",L:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{X:"path",L:{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.B(F,"videodatachange",this.VG);this.B(F,"onApiChange",this.VG);this.subscribe("select",this.onSelect,this);this.VG()}; g1=function(F,J){g.tZ.call(this,"Faixa de \u00e1udio",g.Ia.AUDIO,F,J);this.G=F;this.tracks={};g.uG(this.element,"ytp-audio-menu-item");this.countLabel=new g.U({X:"div",j:[{X:"span",sQ:"Faixa de \u00e1udio"},{X:"span",K:"ytp-menuitem-label-count",sQ:"{{content}}"}]});F.S("web_settings_menu_icons")&&this.setIcon({X:"svg",L:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{X:"path",L:{d:"M11.72,11.93C13.58,11.59,15,9.96,15,8c0-2.21-1.79-4-4-4C8.79,4,7,5.79,7,8c0,1.96,1.42,3.59,3.28,3.93 C4.77,12.21,2,15.76,2,20h18C20,15.76,17.23,12.21,11.72,11.93z M8,8c0-1.65,1.35-3,3-3s3,1.35,3,3s-1.35,3-3,3S8,9.65,8,8z M11,12.9c5.33,0,7.56,2.99,7.94,6.1H3.06C3.44,15.89,5.67,12.9,11,12.9z M16.68,11.44l-0.48-0.88C17.31,9.95,18,8.77,18,7.5 c0-1.27-0.69-2.45-1.81-3.06l0.49-0.88C18.11,4.36,19,5.87,19,7.5C19,9.14,18.11,10.64,16.68,11.44z M18.75,13.13l-0.5-0.87 C19.95,11.28,21,9.46,21,7.5s-1.05-3.78-2.75-4.76l0.5-0.87C20.75,3.03,22,5.19,22,7.5S20.76,11.97,18.75,13.13z", fill:"white"}}]});g.k(this,this.countLabel);g.Q_(this,this.countLabel);this.B(F,"videodatachange",this.VG);this.B(F,"onPlaybackAudioChange",this.VG);this.VG()}; m9=function(F,J){Zd.call(this,"Reprodu\u00e7\u00e3o autom\u00e1tica",g.Ia.m4);this.G=F;this.Rf=J;this.C=!1;this.T=[];this.B(F,"presentingplayerstatechange",this.U);this.subscribe("select",this.onSelect,this);F.createClientVe(this.element,this,113682);this.U()}; Umk=function(F,J){g.Rj.call(this,g.Dd({"aria-haspopup":"false"}),0,"Mais op\u00e7\u00f5es");this.G=F;this.Rf=J;this.B(this.element,"click",this.onClick);this.Rf.V6(this)}; xmC=function(F,J){var b;g.hP(F.J())&&(b={X:"div",K:"ytp-panel-footer-content",j:[{X:"span",sQ:"Ajuste a qualidade do download em "},{X:"a",K:"ytp-panel-footer-content-link",sQ:"Detalhes",L:{href:"/account_downloads"}}]});g.tZ.call(this,"Qualidade",g.Ia.aM,F,J,void 0,void 0,b);this.G=F;this.Gj={};this.N={};this.Z={};this.kQ=new Set;this.C=this.W=!1;this.V="unknown";this.Tj="";this.eE=new g.hB;g.k(this,this.eE);this.W=this.G.S("web_player_use_new_api_for_quality_pullback");this.C=this.G.S("web_player_enable_premium_hbr_playback_cap"); F.S("web_settings_menu_icons")&&this.setIcon({X:"svg",L:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{X:"path",L:{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.uG(this.U.element,"ytp-quality-menu");this.B(F,"videodatachange",this.Mc);this.B(F,"videoplayerreset",this.Mc);this.B(F,"onPlaybackQualityChange",this.NC);this.Mc();F.createClientVe(this.element,this,137721)}; tba=function(F,J,b){var I=F.Gj[J],u=g.CF[J];return nEm(F,I?I.qualityLabel:u?u+"p":"Autom\u00e1tico",J,b)}; Z4k=function(F,J,b,I,u){var w=(J=F.C?F.Z[J]:F.N[J])&&J.quality,M=J&&J.qualityLabel;M=M?M:"Autom\u00e1tico";I&&(M="("+M);F=nEm(F,M,w||"",u);I&&F.j.push(")");(I=(I=J&&J.paygatedQualityDetails)&&I.paygatedIndicatorText)&&b&&F.j.push({X:"div",K:"ytp-premium-label",sQ:I});return F}; nEm=function(F,J,b,I){J={X:"span",Dv:I,j:[J]};var u;I="ytp-swatch-color";if(F.W||F.C)I="ytp-swatch-color-white";b==="highres"?u="8K":b==="hd2880"?u="5K":b==="hd2160"?u="4K":b.indexOf("hd")===0&&b!=="hd720"&&(u="HD");u&&(J.j.push(" "),J.j.push({X:"sup",K:I,sQ:u}));return J}; yw=function(F,J,b,I,u){var w={X:"div",K:"ytp-input-slider-section",j:[{X:"input",K:"ytp-input-slider",L:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};u&&w.j.unshift(u);g.U.call(this,w);this.T=F;this.Z=J;this.W=b;this.initialValue=I;this.header=u;this.C=this.RI("ytp-input-slider");this.U=I?I:F;this.init();this.B(this.C,"input",this.V)}; L0J=function(F,J){F.U=J;F.updateValue("slidervalue",F.U);F.C.valueAsNumber=F.U;H43(F,J)}; H43=function(F,J){F.C.style.setProperty("--yt-slider-shape-gradient-percent",(J-F.T)/(F.Z-F.T)*100+"%")}; i7=function(F){yw.call(this,F.getAvailablePlaybackRates()[0],F.getAvailablePlaybackRates()[F.getAvailablePlaybackRates().length-1],.05,F.getPlaybackRate(),{X:"div",K:"ytp-speedslider-indicator-container",j:[{X:"div",K:"ytp-speedslider-badge"},{X:"p",K:"ytp-speedslider-text"}]});this.G=F;this.N=xXG(this.eE,this);g.uG(this.C,"ytp-speedslider");this.Y=this.RI("ytp-speedslider-text");this.kQ=this.RI("ytp-speedslider-badge");FfG(this);this.B(this.C,"change",this.Gj);this.B(this.C,"keydown",this.Tj)}; FfG=function(F){F.Y.textContent=F.U+"x";F.kQ.classList.toggle("ytp-speedslider-premium-badge",F.U>2&&F.G.S("enable_web_premium_varispeed"))}; zU=function(F,J,b,I,u,w,M){g.U.call(this,{X:"div",K:"ytp-slider-section",L:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},j:[{X:"div",K:"ytp-slider",j:[{X:"div",K:"ytp-slider-handle"}]}]});this.Y=F;this.N=J;this.U=b;this.T=I;this.Tj=u;this.WN=w;this.range=this.T-this.U;this.fW=this.RI("ytp-slider-section");this.Z=this.RI("ytp-slider");this.eE=this.RI("ytp-slider-handle");this.V=new g.L1(this.Z, !0);this.C=M?M:b;g.k(this,this.V);this.V.subscribe("dragmove",this.Qu,this);this.B(this.element,"keydown",this.Sv);this.B(this.element,"wheel",this.l8);this.init()}; N2=function(F){zU.call(this,.05,.05,F.getAvailablePlaybackRates()[0],F.getAvailablePlaybackRates()[F.getAvailablePlaybackRates().length-1],150,20,F.getPlaybackRate());this.G=F;this.W=g.H1("P");this.kQ=xXG(this.Gj,this);g.uG(this.Z,"ytp-speedslider");g.uG(this.W,"ytp-speedslider-text");F=this.W;var J=this.Z;J.parentNode&&J.parentNode.insertBefore(F,J.nextSibling);J0G(this);this.B(this.G,"onPlaybackRateChange",this.updateValues)}; J0G=function(F){F.W.textContent=bto(F,F.C)+"x"}; bto=function(F,J){F=Number(g.AD(J,F.U,F.T).toFixed(2));J=Math.floor((F+.001)*100%5+2E-15);var b=F;J!==0&&(b=F-J*.01);return Number(b.toFixed(2))}; IsY=function(F){g.vi.call(this,{X:"div",K:"ytp-speedslider-component"});F.S("web_settings_use_input_slider")?this.C=new i7(F):this.C=new N2(F);g.k(this,this.C);this.element.appendChild(this.C.element)}; u2a=function(F){var J=new IsY(F);QM.call(this,F,J,"Personalizado");g.k(this,J)}; w_v=function(F,J){var b=new u2a(F);g.tZ.call(this,"Velocidade da reprodu\u00e7\u00e3o",g.Ia.Ng,F,J,l7(F)?void 0:"Personalizado",l7(F)?void 0:function(){g.O$(J,b)}); var I=this;this.W=!1;g.k(this,b);this.V=new i7(F);g.k(this,this.V);F.S("web_settings_menu_icons")&&this.setIcon({X:"svg",L:{height:"24",viewBox:"0 0 24 24",width:"24"},j:[{X:"path",L:{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.G=F;this.W=!1;this.Tj=null;l7(F)?(this.C=g.m8("Personalizado ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.G.getPlaybackRate().toString()}),this.Z=this.G.getPlaybackRate()):this.Z=this.C=null;this.N=this.G.getAvailablePlaybackRates();this.B(F,"presentingplayerstatechange",this.VG);var u;((u=this.G.getVideoData())==null?0:u.vV())&&this.B(F,"serverstitchedvideochange",this.VG);this.B(this.V.C,"change",function(){I.W=!0;I.VG()}); this.VG()}; A0z=function(F,J){var b=M_m(J);F.C&&(F.W||J===F.Z)?(F.oQ(F.C),F.Ce(J.toString())):F.oQ(b)}; vlY=function(F){F.Wx(F.N.map(M_m));F.C=null;F.Z=null;var J=F.G.getPlaybackRate();if(!F.N.includes(J)||l7(F.G))qcz(F,J),F.oQ(F.C)}; qcz=function(F,J){F.Z=J;F.C=g.m8("Personalizado ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:J.toString()});J=F.N.map(M_m);J.unshift(F.C);F.Wx(J)}; M_m=function(F){return F.toString()}; l7=function(F){return F.S("web_settings_menu_surface_custom_playback")}; asa=function(F){return F.S("web_settings_menu_surface_custom_playback")&&F.S("web_settings_use_input_slider")}; Kfv=function(F,J,b,I){var u=new g.RX(J,void 0,"Modifica\u00e7\u00e3o do v\u00eddeo");g.tZ.call(this,I.text||"",F,J,b,"Modifica\u00e7\u00e3o do v\u00eddeo",function(){g.O$(b,u)}); var w=this;g.uG(this.element,"ytp-subtitles-options-menu-item");this.setting=I.option.toString();F=I.options;this.settings=g.mF(F,this.IW,this);this.W=u;g.k(this,this.W);J=new g.Rj({X:"div",K:"ytp-menuitemtitle",sQ:"Permitir um estilo de legenda diferente se especificado pelo v\u00eddeo."},0);g.k(this,J);this.W.V6(J,!0);this.Z=new g.Rj({X:"div",K:"ytp-menuitem",L:{role:"menuitemradio",tabindex:"0"},j:[{X:"div",K:"ytp-menuitem-label",sQ:"Ativ."}]},-1);g.k(this,this.Z);this.W.V6(this.Z,!0);this.B(this.Z.element, "click",function(){e7_(w,!0)}); this.C=new g.Rj({X:"div",K:"ytp-menuitem",L:{role:"menuitemradio",tabindex:"0"},j:[{X:"div",K:"ytp-menuitem-label",sQ:"Desat"}]},-2);g.k(this,this.C);this.W.V6(this.C,!0);this.B(this.C.element,"click",function(){e7_(w,!1)}); this.Wx(g.EG(F,this.IW))}; e7_=function(F,J){F.publish("settingChange",F.setting+"Override",!J);F.Rf.qL()}; f9=function(F,J){g.RX.call(this,F,void 0,"Op\u00e7\u00f5es");var b=this;this.Hc={};for(var I=0;I=0);if(!(J<0||J===F.Z)){F.Z=J;J=243*F.scale;var b=141*F.scale,I=wFa(F.U,F.Z,J);RDz(F.bg,I,J,b,!0);F.Gj.start()}}; R7z=function(F){var J=F.C;F.type===3&&F.kQ.stop();F.api.removeEventListener("appresize",F.eE);F.N||J.setAttribute("title",F.T);F.T="";F.C=null;F.updateValue("keyBoardShortcut","")}; kzJ=function(F){g.U.call(this,{X:"button",Dv:["ytp-watch-later-button","ytp-button"],L:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.dN(F.J()))},j:[{X:"div",K:"ytp-watch-later-icon",sQ:"{{icon}}"},{X:"div",K:"ytp-watch-later-title",sQ:"Assistir mais tarde"}]});this.G=F;this.icon=null;this.visible=this.isRequestPending=this.C=!1;CSz(F);F.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.B(F,"videoplayerreset",this.onReset);this.B(F, "appresize",this.QT);this.B(F,"videodatachange",this.QT);this.B(F,"presentingplayerstatechange",this.QT);this.QT();F=this.G.J();var J=g.S9("yt-player-watch-later-pending");F.Z&&J?(G0z(),DyJ(this)):this.VG(2);g.qr(this.element,"ytp-show-watch-later-title",g.dN(F));zP(this.G,this.element,this)}; Ot4=function(F){var J=F.G.getPlayerSize(),b=F.G.J(),I=F.G.getVideoData(),u=g.dN(b)&&g.Ef(F.G)&&g.x(F.G.getPlayerStateObject(),128),w=b.T;return b.YH&&J.width>=240&&!I.isAd()&&I.YH&&!u&&!g.tw(I)&&!F.G.isEmbedsShortsMode()&&!w}; olm=function(F,J){vN3(g.Rw(F.G.J()),"wl_button",function(){G0z({videoId:J});window.location.reload()})}; DyJ=function(F){if(!F.isRequestPending){F.isRequestPending=!0;F.VG(3);var J=F.G.getVideoData();J=F.C?J.removeFromWatchLaterCommand:J.addToWatchLaterCommand;var b=F.G.n8(),I=F.C?function(){F.C=!1;F.isRequestPending=!1;F.VG(2);F.G.J().V&&F.G.jE("WATCH_LATER_VIDEO_REMOVED")}:function(){F.C=!0; F.isRequestPending=!1;F.VG(1);F.G.J().U&&F.G.R$(F.element);F.G.J().V&&F.G.jE("WATCH_LATER_VIDEO_ADDED")}; ho(b,J).then(I,function(){F.isRequestPending=!1;F.VG(4,"Ocorreu um erro. Tente novamente mais tarde.");F.G.J().V&&F.G.jE("WATCH_LATER_ERROR","Ocorreu um erro. Tente novamente mais tarde.")})}}; h7C=function(F,J){if(J!==F.icon){switch(J){case 3:var b=JH();break;case 1:b=gV();break;case 2:b={X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",G1:!0,K:"ytp-svg-fill",L:{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:b={X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path", G1:!0,L:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}F.updateValue("icon",b);F.icon=J}}; g.Y3=function(){g.LV.apply(this,arguments);this.BH=(this.uy=g.dN(this.api.J()))&&(this.api.J().U||Hx()||tR());this.VI=48;this.hU=69;this.oU=this.yN=null;this.hx=[];this.zY=this.BD=this.Ko=this.zX=this.Fd=null;this.FR=[];this.contextMenu=this.cg=this.overflowButton=this.z7=this.EV=this.searchButton=this.copyLinkButton=this.shareButton=this.J6=this.AX=this.title=this.channelAvatar=this.YG=this.tooltip=null;this.RA=!1;this.Ee=this.SV=this.W2=this.At=null;this.eW=this.Hd=this.pn=!1}; c0_=function(F){var J=F.api.J(),b=g.x(F.api.getPlayerStateObject(),128);return J.Z&&b&&!F.api.isFullscreen()}; Uy_=function(F){if(F.Ru()&&!F.api.isEmbedsShortsMode()&&F.z7){var J=F.api.S("web_player_hide_overflow_button_if_empty_menu");!F.J6||J&&!Ot4(F.J6)||aPJ(F.z7,F.J6);!F.shareButton||J&&!lPG(F.shareButton)||aPJ(F.z7,F.shareButton);!F.copyLinkButton||J&&!ENk(F.copyLinkButton)||aPJ(F.z7,F.copyLinkButton)}else{if(F.z7){J=F.z7;for(var b=g.N(J.actionButtons),I=b.next();!I.done;I=b.next())I.value.detach();J.actionButtons=[]}F.searchButton&&!g.uB(F.AX.element,F.searchButton.element)&&F.searchButton.Az(F.AX.element); F.J6&&!g.uB(F.AX.element,F.J6.element)&&F.J6.Az(F.AX.element);F.shareButton&&!g.uB(F.AX.element,F.shareButton.element)&&F.shareButton.Az(F.AX.element);F.copyLinkButton&&!g.uB(F.AX.element,F.copyLinkButton.element)&&F.copyLinkButton.Az(F.AX.element)}}; xyG=function(F,J,b){J=b?J.lastElementChild:J.firstElementChild;for(var I=null;J;){if(pL(J,"display")!=="none"&&J.getAttribute("aria-hidden")!=="true"){var u=void 0;J.tabIndex>=0?u=J:u=xyG(F,J,b);u&&(I?b?u.tabIndex>I.tabIndex&&(I=u):u.tabIndexI/1E3+1)return{msg:"in-the-past"};if(w.isLivePlayback&&!isFinite(I))return{msg:"live-infinite"};(I=J.Qa())&&I.isView()&&(I=I.mediaElement);if(I&&I.mQ().length>12&&g.yR(u))return{msg:"played-ranges"};if(!u.T)return null;if(!M)return{msg:"no-pvd-formats"};if(!u.T.C||!M.C)return{msg:"non-dash"};I=M.videoInfos[0];var q=u.T.videoInfos[0];F.V&&LC(w)&&(I=J.cQ(),q= b.cQ());if(!I||!q)return{msg:"no-video-info"};if(F.T&&(c4(I)||c4(q)))return{msg:"av1"};J=F.C&&w.yM()&&Qh();if(q.containerType!==I.containerType)if(J)w.UQ("sgap",{ierr:"container"});else return{msg:"container"};if(F.U&&!J&&(q.YQ!==I.YQ||q.YQ===""||I.YQ===""))return{msg:"codec"};if(F.Z&&q.video&&I.video&&Math.abs(q.video.width/q.video.height-I.video.width/I.video.height)>.01)return{msg:"ratio"};if(g.yR(w)&&g.yR(u))return{msg:"content-protection"};M=M.C[0];u=u.T.C[0];b=M.audio;var v=u.audio;if(b.sampleRate!== v.sampleRate&&!g.B4)if(J)w.UQ("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:M.itag,cr:b.sampleRate,ni:u.itag,nr:v.sampleRate};return(b.numChannels||2)!==(v.numChannels||2)?{msg:"channel-count"}:F.D&&w.yM()&&I.video.fps!==q.video.fps?{msg:"fps"}:null}; Htz=function(F,J,b){var I=F.getVideoData(),u=J.getVideoData();if(!I.J().supportsGaplessShorts())return{nq:"env"};if(b.W){if(I.NJ&&!I.isAd()||u.NJ&&!u.isAd())return{nq:"autoplay"}}else if(I.NJ||u.NJ)return{nq:"autoplay"};if(!I.Y)return{nq:"client"};if(!F.W9())return{nq:"no-empty"};F=Zta(b,F,J,Infinity);return F!=null?{nq:F.msg}:null}; Xi=function(F){g.R.call(this);this.app=F;this.D=this.Z=this.U=this.C=null;this.T=1;this.events=new g.s5(this);this.events.B(this.app.SE,g.wq("gaplessshortslooprange"),this.Y);g.k(this,this.events)}; Lfk=function(){this.Z=this.W=this.T=this.V=this.D=this.U=this.C=!1}; Fna=function(F){var J=new Lfk;J.C=F.S("h5_gapless_support_types_diff");J.D=F.S("h5_gapless_error_on_fps_diff");J.V=F.S("html5_gapless_use_format_info_fix");J.T=F.S("html5_gapless_disable_on_av1")&&!F.S("html5_gapless_enable_on_av1");J.U=F.S("html5_gapless_check_codec_diff_strictly");J.W=F.S("html5_gapless_on_ad_autoplay");J.Z=F.S("html5_gapless_disable_diff_aspect_radio");return J}; g.Qw=function(F,J,b,I){I=I===void 0?!1:I;nB.call(this);this.mediaElement=F;this.start=J;this.end=b;this.C=I}; JKz=function(F,J,b,I,u,w){w=w===void 0?0:w;g.R.call(this);var M=this;this.policy=F;this.C=J;this.U=b;this.t_=u;this.D=w;this.Z=this.T=null;this.currentVideoDuration=this.W=-1;this.V=!1;this.O1=new xn;this.Pu=I-J.Xq()*1E3;this.O1.then(void 0,function(){}); this.timeout=new g.ty(function(){M.Wh("timeout")},1E4); g.k(this,this.timeout);this.Y=isFinite(I);this.status={status:0,error:null}}; u3k=function(F){var J,b,I,u,w,M,q,v,a,e;return g.S(function(K){if(K.C==1){if(F.iR())return K.return(Promise.reject(Error(F.status.error||"disposed")));F.timeout.start();J=g.RQ.EA();return g.T(K,F.O1,2)}g.RQ.Gy("gtfta",J);b=F.C.Qa();if(b.isEnded())return F.Wh("ended_in_finishTransition"),K.return(Promise.reject(Error(F.status.error||"")));if(!F.Z||!kn(F.Z))return F.Wh("next_mse_closed"),K.return(Promise.reject(Error(F.status.error||"")));if(F.U.SS()!==F.Z)return F.Wh("next_mse_mismatch"),K.return(Promise.reject(Error(F.status.error|| "")));I=bZm(F);u=I.UR;w=I.Jn;M=I.CK;F.C.rg(!1,!0);q=I3Y(b,u,M,!F.U.getVideoData().isAd());F.U.setMediaElement(q);(v=F.C.Lu())&&F.U.ol(v.aq,v.bN);F.Y&&(F.U.seekTo(F.U.getCurrentTime()+.001,{sL:!0,rd:3,Ky:"gapless_pseudo"}),q.play(),r$());a=b.Cy();a.cpn=F.C.getVideoData().clientPlaybackNonce;a.st=""+u;a.et=""+M;F.U.UQ("gapless",a);F.C.UQ("gaplessTo",{cpn:F.U.getVideoData().clientPlaybackNonce});e=F.C.getPlayerType()===F.U.getPlayerType();F.C.y3(w,!0,!1,e,F.U.getVideoData().clientPlaybackNonce);F.U.y3(F.U.getCurrentTime(), !0,!0,e,F.C.getVideoData().clientPlaybackNonce);F.U.n9();g.qf(function(){!F.U.getVideoData().Gj&&F.U.getPlayerState().isOrWillBePlaying()&&F.U.v8()}); DB(F,6);F.dispose();return K.return(Promise.resolve())})}; qMv=function(F){if(F.U.getVideoData().T){var J=F.t_.J().S("html5_gapless_suspend_next_loader")&&F.D===1;F.U.w5(F.Z,J,wZG(F));DB(F,3);Mxo(F);var b=AKY(F);J=b.MF;b=b.kT;J.subscribe("updateend",F.S7,F);b.subscribe("updateend",F.S7,F);F.S7(J);F.S7(b)}}; Mxo=function(F){F.C.unsubscribe("internalvideodatachange",F.Vx,F);F.U.unsubscribe("internalvideodatachange",F.Vx,F);F.t_.J().S("html5_gapless_use_format_info_fix")&&(F.C.unsubscribe("internalvideoformatchange",F.Vx,F),F.U.unsubscribe("internalvideoformatchange",F.Vx,F));F.C.unsubscribe("mediasourceattached",F.Vx,F);F.U.unsubscribe("statechange",F.wj,F)}; I3Y=function(F,J,b,I){F=F.isView()?F.mediaElement:F;return new g.Qw(F,J,b,I)}; DB=function(F,J){J<=F.status.status||(F.status={status:J,error:null},J===5&&F.O1.resolve())}; wZG=function(F){return F.t_.J().S("html5_gapless_no_clear_buffer_timeline")&&F.D===1&&bE(F.C.getVideoData())}; bZm=function(F){var J=F.C.Qa();J=J.isView()?J.start:0;var b=F.C.getVideoData().isLivePlayback?Infinity:F.C.LP(!0);b=Math.min(F.Pu/1E3,b)+J;var I=F.Y?100:0;F=b-F.U.Fb()+I;return{uc:J,UR:F,Jn:b,CK:Infinity}}; AKY=function(F){return{MF:F.T.C.Us,kT:F.T.U.Us}}; k3=function(F){g.R.call(this);var J=this;this.app=F;this.D=this.U=this.C=null;this.Y=!1;this.T=this.Z=null;this.V=Fna(this.app.J());this.W=function(){g.qf(function(){vxk(J)})}}; a3m=function(F,J,b,I,u){I=I===void 0?0:I;u=u===void 0?0:u;F.W9()||O3(F);F.Z=new xn;F.C=J;var w=b,M=u===0;M=M===void 0?!0:M;var q=F.app.F_(),v=q.getVideoData().isLivePlayback?Infinity:q.LP(!0)*1E3;w>v&&(w=v-200,F.Y=!0);M&&q.getCurrentTime()>=w/1E3?F.W():(F.U=q,M&&(M=w,w=F.U,F.app.SE.addEventListener(g.u6("vqueued"),F.W),M=isFinite(M)||M/1E3>w.getDuration()?M:0x8000000000000,F.D=new g.b6(M,0x8000000000000,{namespace:"vqueued"}),w.addCueRange(F.D)));M=I/=1E3;w=J.getVideoData().C;I&&w&&F.U&&(q=I,v=0, J.getVideoData().isLivePlayback&&(M=Math.min(b/1E3,F.U.LP(!0)),v=Math.max(0,M-F.U.getCurrentTime()),q=Math.min(I,J.LP()+v)),M=ZBz(w,q)||I,M!==I&&F.C.UQ("qvaln",{st:I,at:M,rm:v,ct:q}));J=M;I=F.C;I.getVideoData().Ly=!0;I.getVideoData().Y=!0;I.PE(!0);w={};F.U&&(w=F.U.Iv(),M=F.U.getVideoData().clientPlaybackNonce,w={crt:(w*1E3).toFixed(),cpn:M});I.UQ("queued",w);J!==0&&I.seekTo(J+.01,{sL:!0,rd:3,Ky:"videoqueuer_queued"});F.T=new JKz(F.V,F.app.F_(),F.C,b,F.app,u);b=F.T;b.status.status!==Infinity&&(DB(b, 1),b.C.subscribe("internalvideodatachange",b.Vx,b),b.U.subscribe("internalvideodatachange",b.Vx,b),b.t_.J().S("html5_gapless_use_format_info_fix")&&(b.C.subscribe("internalvideoformatchange",b.Vx,b),b.U.subscribe("internalvideoformatchange",b.Vx,b)),b.C.subscribe("mediasourceattached",b.Vx,b),b.U.subscribe("statechange",b.wj,b),b.C.subscribe("newelementrequired",b.Mz,b),b.Vx());return F.Z}; vxk=function(F){var J,b,I,u,w,M,q,v,a;g.S(function(e){switch(e.C){case 1:if(F.iR()||!F.Z||!F.C)return e.return();F.Y&&F.app.F_().vk(!0,!1);b=F.app.J().S("html5_force_csdai_gapful_transition")&&((J=F.app.F_())==null?void 0:J.getVideoData().isDaiEnabled());I=null;if(!F.T||b){e.gD(2);break}g.lk(e,3);return g.T(e,u3k(F.T),5);case 5:g.Wa(e,2);break;case 3:I=u=g.dY(e);case 2:if(!F.C)return e.return();g.RQ.Zq("vqsp",function(){F.app.LA(F.C)}); if(!F.C)return e.return();w=F.C.Qa();F.app.J().S("html5_gapless_seek_on_negative_time")&&w&&w.getCurrentTime()<-.01&&F.C.seekTo(0);g.RQ.Zq("vqpv",function(){F.app.playVideo()}); if(I||b)F.C?(M=I?I.message:"forced",(q=F.U)==null||q.UQ("gapfulfbk",{r:M}),F.C.lz(M)):(v=F.U)==null||v.UQ("gapsp",{});a=F.Z;O3(F);a&&a.resolve();return e.return(Promise.resolve())}})}; O3=function(F,J){J=J===void 0?!1:J;if(F.U){if(F.D){var b=F.U;F.app.SE.removeEventListener(g.u6("vqueued"),F.W);b.removeCueRange(F.D)}F.U=null;F.D=null}F.T&&(F.T.status.status!==6&&(b=F.T,b.status.status!==Infinity&&b.D!==1&&b.Wh("Canceled")),F.T=null);F.Z=null;F.C&&!J&&F.C!==F.app.Nf()&&F.C!==F.app.F_()&&xU(F.C);F.C&&J&&F.C.vl();F.C=null;F.Y=!1}; e93=function(F){var J;return((J=F.T)==null?void 0:J.currentVideoDuration)||-1}; Kn3=function(F,J,b){if(F.W9())return"qie";if(F.C==null||F.C.wD.iR()||F.C.getVideoData()==null)return"qpd";if(J.videoId!==F.C.B1())return"vinm";if(e93(F)<=0)return"ivd";if(b!==1)return"upt";if((b=F.T)==null)F=void 0;else if(b.getStatus().status!==5)F="niss";else if(Zta(b.policy,b.C,b.U,b.Pu)!=null)F="pge";else{J=AKY(b);F=J.MF;var I=J.kT;J=g.eB(b.t_.J().experiments,"html5_shorts_gapless_next_buffer_in_seconds");b=b.W+J;I=Mt(I.N0(),b);F=Mt(F.N0(),b);F=!(J>0)||I&&F?null:"neb"}return F!=null?F:null}; pZm=function(){g.uA.call(this);var F=this;this.fullscreen=0;this.Z=this.T=this.pictureInPicture=this.C=this.U=this.inline=!1;this.D=function(){F.G0()}; KVz(this.D);this.W=this.getVisibilityState(this.Hh(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.JN(),this.n$(),this.I9(),this.tD())}; NS=function(F){return!(F.isMinimized()||F.isInline()||F.isBackground()||F.JN()||F.n$()||F.I9()||F.tD())}; gx3=function(F,J){g.R.call(this);this.T=this.Z=null;this.C=F;this.U=J}; Npz=function(F){var J=F.experiments,b=J.pW.bind(J);mTG=b("html5_use_async_stopVideo");yKG=b("html5_pause_for_async_stopVideo");iZk=b("html5_not_reset_media_source");b("html5_listen_for_audio_output_changed")&&(BJ3=!0);Oo=b("html5_not_reset_media_source");z97=b("html5_not_reset_media_source");KB=b("html5_retain_source_buffer_appends_for_debugging");Ib3=b("web_watch_pip");b("html5_mediastream_applies_timestamp_offset")&&(p7=!0);var I=g.eB(J,"html5_cobalt_override_quic");I&&jA("QUIC",+(I>0));(I=g.eB(J, "html5_cobalt_audio_write_ahead_ms"))&&jA("Media.AudioWriteDurationLocal",I);(I=b("html5_cobalt_enable_decode_to_texture"))&&jA("Media.PlayerConfiguration.DecodeToTexturePreferred",I?1:0);(F.hJ()||b("html5_log_cpu_info"))&&vbJ();Error.stackTraceLimit=50;var u=g.eB(J,"html5_idle_rate_limit_ms");u&&Object.defineProperty(window,"requestIdleCallback",{value:function(w){return window.setTimeout(w,u)}}); GAo(F.D);N$=b("html5_use_ump_request_slicer");iaY=b("html5_record_now");b("html5_disable_streaming_xhr")&&(UD=!1);b("html5_byterate_constraints")&&(La=!0);b("html5_use_non_active_broadcast_for_post_live")&&(km=!0);b("html5_sunset_aac_high_codec_family")&&(Df["141"]="a");b("html5_enable_encrypted_av1")&&(h1=!0)}; l3C=function(F){return F.slice(12).replace(/_[a-z]/g,function(J){return J.toUpperCase().replace("_","")}).replace("Dot",".")}; f3m=function(F){var J={},b;for(b in F.experiments.flags)if(b.startsWith("cobalt_h5vcc")){var I=l3C(b),u=g.eB(F.experiments,b);I&&u&&(J[I]=jA(I,u))}return J}; oQ=function(F,J,b,I,u){u=u===void 0?[]:u;g.R.call(this);this.rD=F;this.V2=J;this.Z=b;this.segments=u;this.C=void 0;this.U=new Map;u.length&&(this.C=u[0])}; Wnm=function(F){if(!(F.segments.length<2)){var J=F.segments.shift();if(J){var b=J.C,I=[];if(b.size){b=g.N(b.values());for(var u=b.next();!u.done;u=b.next()){u=g.N(u.value);for(var w=u.next();!w.done;w=u.next()){w=w.value;for(var M=g.N(w.segments),q=M.next();!q.done;q=M.next())(q=hd(q.value))&&I.push(q);w.removeAll()}}}(b=hd(J))&&I.push(b);I=g.N(I);for(b=I.next();!b.done;b=I.next())F.U.delete(b.value);J.dispose()}}}; cy=function(F,J,b,I){if(!F.C||J>b)return!1;J=new oQ(F.rD,J,b,F.C,I);I=g.N(I);for(b=I.next();!b.done;b=I.next()){b=b.value;var u=hd(b);u&&u!==hd(F.C)&&F.U.set(u,[b])}F=F.C;F.C.has(J.Ez())?F.C.get(J.Ez()).push(J):F.C.set(J.Ez(),[J]);return!0}; bm=function(F,J){return F.U.get(J)}; dTk=function(F,J,b){F.U.set(J,b)}; U3=function(F,J,b,I,u,w){return new ExJ(b,b+(I||0),!I,J,F,u,w)}; ExJ=function(F,J,b,I,u,w,M){g.R.call(this);this.V2=F;this.T=J;this.U=b;this.type=I;this.Z=u;this.videoData=w;this.Gg=M;this.C=new Map;m7(w)}; hd=function(F){return F.videoData.clientPlaybackNonce}; jC7=function(F){if(F.C.size)for(var J=g.N(F.C.values()),b=J.next();!b.done;b=J.next()){b=g.N(b.value);for(var I=b.next();!I.done;I=b.next())I.value.dispose()}F.C.clear()}; GQ_=function(F){this.end=this.start=F}; g.x3=function(){this.C=new Map;this.T=new Map;this.U=new Map}; g.n9=function(F,J,b,I){g.R.call(this);var u=this;this.api=F;this.rD=J;this.playback=b;this.app=I;this.fW=new g.x3;this.U=new Map;this.W=[];this.D=[];this.T=new Map;this.NW=new Map;this.Tj=new Map;this.KW=null;this.Kk=NaN;this.Q2=this.xm=null;this.Om=new g.ty(function(){Vx_(u,u.Kk,u.xm||void 0)}); this.events=new g.s5(this);this.Um=15E3;this.Gj=new g.ty(function(){u.WN=!0;u.playback.lP(u.Um);PNz(u);u.rk(!1)},this.Um); this.WN=!1;this.V=new Map;this.bR=[];this.eE=null;this.g9=new Set;this.qf=[];this.If=[];this.y6=[];this.Se=[];this.C=void 0;this.kQ=0;this.zj=!0;this.N=!1;this.dD=[];this.oI=new Set;this.Ly=new Set;this.M0=new Set;this.x_=0;this.Jz=new Set;this.MI=0;this.Bu=this.T1=!1;this.GF=this.Z="";this.nW=null;this.Po={aQG:function(){return u.U}, ZNE:function(){return u.W}, mpG:function(){return u.T}, t9:function(w){u.onCueRangeEnter(u.U.get(w))}, JOQ:function(w){u.onCueRangeExit(u.U.get(w))}, TOQ:function(w,M){u.U.set(w,M)}, ZPG:function(w){u.GF=w}, O0:function(){return u.O0()}, b1j:function(w){return u.Tj.get(w)}}; this.playback.getPlayerType();this.playback.Ow(this);this.cN=this.rD.hJ();g.k(this,this.Om);g.k(this,this.events);g.k(this,this.Gj);this.events.B(this.api,g.u6("serverstitchedcuerange"),this.onCueRangeEnter);this.events.B(this.api,g.wq("serverstitchedcuerange"),this.onCueRangeExit)}; SMo=function(F,J,b,I,u,w,M,q){var v=Bp3(F,w,w+u);F.WN&&F.Ck({adaftto:1});b||F.Ck({missadcon:1,enter:w,len:u,aid:q});F.Y&&!F.Y.hj&&(F.Y.hj=q);F.Bu&&F.Ck({adfbk:1,enter:w,len:u,aid:q});var a=F.playback;M=M===void 0?w+u:M;w===M&&!u&&F.rD.S("html5_allow_zero_duration_ads_on_timeline")&&F.Ck({attl0d:1});w>M&&td(F,{reason:"enterTime_greater_than_return",V2:w,Xd:M});var e=a.Ho()*1E3;wa&&td(F,{reason:"parent_return_greater_than_content_duration",Xd:M,y3D:a});a=null;e=g.AL(F.D,{Xd:w},function(K,p){return K.Xd-p.Xd}); e>=0&&(a=F.D[e],a.Xd>w&&Tp_(F,J.video_id||"",w,M,a));if(v&&a)for(e=0;e.5&&F.Ck({ttdtb:1,delta:M,cpn:u.cpn,enter:J.adCpn,exit:b.adCpn,seek:I,skip:w});F.api.S("html5_ssdai_enable_media_end_cue_range")&&F.api.ey();if(J.isAd&&b.isAd){u=!!w;if(J.adCpn&&b.adCpn){var q=F.T.get(J.adCpn);var v=F.T.get(b.adCpn)}u?F.Ck({igtransskip:1,enter:J.adCpn,exit:b.adCpn,seek:I,skip:w}):Ff(F,v,q,b.au,J.au,I,u)}else if(!J.isAd&&b.isAd){F.GF=u.cpn;F.api.publish("serverstitchedvideochange");q=Hy(F,"a2c");F.Ck(q); F.x_=0;if(q=b.Os)F.kQ=q.end;var a;b.adCpn&&(a=F.T.get(b.adCpn));a&&F.playback.QE(a,u,b.au,J.au,I,!!w)}else if(J.isAd&&!b.isAd){var e;J.adCpn&&(e=F.T.get(J.adCpn));e&&(F.kQ=0,F.GF=e.cpn,L9(F,e),a=Hy(F,"c2a",e),F.Ck(a),F.x_=1,F.playback.QE(u,e,b.au,J.au,I,!!w))}}; bK=function(F,J,b){b=b===void 0?0:b;var I=g.AL(F.D,{V2:(J+b)*1E3},function(q,v){return q.V2-v.V2}); I=I<0?(I+2)*-1:I;if(I>=0)for(var u=J*1E3,w=I;w<=I+1&&w=M.V2-b*1E3&&u<=M.Xd+b*1E3)return{MQ:M,K3:J}}return{MQ:void 0,K3:J}}; YMk=function(F,J){var b="";(J=sC7(F,J))&&(b=J.getId());return b?F.T.get(b):void 0}; sC7=function(F,J){if(F.GF){var b=F.U.get(F.GF);if(b&&b.start-200<=J&&b.end+200>=J)return b}F=g.N(F.U.values());for(b=F.next();!b.done;b=F.next())if(b=b.value,b.start<=J&&b.end>=J)return b}; Vx_=function(F,J,b){var I=F.Q2||F.app.F_().getPlayerState();Iz(F,!0);F.playback.seekTo(J,b);F=F.app.F_();J=F.getPlayerState();I.isOrWillBePlaying()&&!J.isOrWillBePlaying()?F.playVideo():I.isPaused()&&!J.isPaused()&&F.pauseVideo()}; Iz=function(F,J){F.Kk=NaN;F.xm=null;F.Om.stop();F.KW&&J&&F.KW.P2();F.Q2=null;F.KW=null}; $T_=function(F){var J=J===void 0?-1:J;var b=b===void 0?Infinity:b;for(var I=[],u=g.N(F.D),w=u.next();!w.done;w=u.next())w=w.value,(w.V2b)&&I.push(w);F.D=I;I=g.N(F.U.values());for(u=I.next();!u.done;u=I.next())u=u.value,u.start>=J&&u.end<=b&&(F.playback.removeCueRange(u),F.U.delete(u.getId()),F.Ck({rmAdCR:1}));I=bK(F,J/1E3);J=I.MQ;I=I.K3;if(J&&(I=I*1E3-J.V2,u=J.V2+I,J.durationMs=I,J.Xd=u,I=F.U.get(J.cpn))){u=g.N(F.W);for(w=u.next();!w.done;w=u.next())w=w.value,w.start===I.end?w.start=J.V2+ J.durationMs:w.end===I.start&&(w.end=J.V2);I.start=J.V2;I.end=J.V2+J.durationMs}if(J=bK(F,b/1E3).MQ){var M;I="playback_timelinePlaybackId_"+J.r9+"_video_id_"+((M=J.videoData)==null?void 0:M.videoId)+"_durationMs_"+J.durationMs+"_enterTimeMs_"+J.V2+"_parentReturnTimeMs_"+J.Xd;F.AN("Invalid_clearEndTimeMs_"+b+"_that_falls_during_"+I+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; CNk=function(F){F.fW.clearAll();F.U.clear();F.W=[];F.D=[];F.T.clear();F.NW.clear();F.Tj.clear();F.V.clear();F.bR=[];F.eE=null;F.g9.clear();F.qf=[];F.If=[];F.y6=[];F.Se=[];F.dD=[];F.oI.clear();F.Ly.clear();F.M0.clear();F.Jz.clear();F.WN=!1;F.C=void 0;F.kQ=0;F.zj=!0;F.N=!1;F.x_=0;F.MI=0;F.T1=!1;F.Bu=!1;F.Z="";F.Gj.isActive()&&ZB(F)}; QC4=function(F,J,b,I,u,w){if(!F.Bu)if(g.XZk(F,b))F.Ck({gdu:"undec",seg:b,itag:u});else if(J=uK(F,J,b,I,w),!(F.playback.getVideoData().vV()&&(J==null?0:J.L$)))return J}; uK=function(F,J,b,I,u){var w=F.V.get(b);if(!w){if(w=R93(F,J))return w;J=F.El(b-1,I!=null?I:2);if(u)return F.Ck({misscue:u,sq:b,type:I,prevsstate:J==null?void 0:J.W$,prevrecord:F.V.has(b-1)}),F.V.get(b-1);if((J==null?void 0:J.W$)===2)return F.Ck({adnf:1,sq:b,type:I,prevrecord:F.V.has(b-1)}),F.V.get(b-1)}return w}; R93=function(F,J){J+=F.Kc();if(F.playback.getVideoData().vV())a:{var b=1;b=b===void 0?0:b;var I=J*1E3;F=g.N(F.D);for(var u=F.next();!u.done;u=F.next()){u=u.value;var w=u.l7?u.l7*1E3:u.V2;if(I>=u.V2-b*1E3&&I<=w+u.durationMs+b*1E3){b={MQ:u,K3:J};break a}}b={MQ:void 0,K3:J}}else F.rD.S("html5_use_time_without_threshold_first")&&(b=bK(F,J)),F.rD.S("html5_use_time_without_threshold_first")&&((I=b)==null?0:I.MQ)||(b=bK(F,J,1));var M;return(M=b)==null?void 0:M.MQ}; DTC=function(F,J){J=J===void 0?"":J;var b=Iw(J)||void 0;if(!J||!b){var I;F.Ck({adcfg:(I=J)==null?void 0:I.length,dcfg:b==null?void 0:b.length})}return b}; kQm=function(F){if(F.dD.length)for(var J=g.N(F.dD),b=J.next();!b.done;b=J.next())F.onCueRangeExit(b.value);J=g.N(F.U.values());for(b=J.next();!b.done;b=J.next())F.playback.removeCueRange(b.value);J=g.N(F.W);for(b=J.next();!b.done;b=J.next())F.playback.removeCueRange(b.value);F.U.clear();F.W=[];F.fW.clearAll();F.C||(F.zj=!0)}; Ff=function(F,J,b,I,u,w,M){if(J&&b){F.GF=b.cpn;L9(F,b);var q=Hy(F,"a2a",b);F.Ck(q);F.x_++;F.playback.QE(J,b,I||0,u||0,!!w,!!M)}else F.Ck({misspbkonadtrans:1,enter:(b==null?void 0:b.cpn)||"",exit:(J==null?void 0:J.cpn)||"",seek:w,skip:M})}; ox7=function(F,J,b,I){if(I)for(I=0;Ib){var w=u.end;u.end=J;OZz(F,b,w)}else if(u.start>=J&&u.startb)u.start=b;else if(u.end>J&&u.end<=b&&u.start=J&&u.end<=b){F.playback.removeCueRange(u);if(F.dD.includes(u))F.onCueRangeExit(u);F.W.splice(I,1);continue}I++}else OZz(F,J,b)}; OZz=function(F,J,b){J=F.B$(J,b);b=!0;g.eJ(F.W,J,function(M,q){return M.start-q.start}); for(var I=0;I0){var u=F.W[I],w=F.W[I-1];if(Math.round(w.end/1E3)>=Math.round(u.start/1E3)){w.end=u.end;u!==J?F.playback.removeCueRange(u):b=!1;F.W.splice(I,1);continue}}I++}if(b)for(F.playback.addCueRange(J),J=F.playback.oG("serverstitchedcuerange",36E5),J=g.N(J),b=J.next();!b.done;b=J.next())F.U.delete(b.value.getId())}; wh=function(F,J,b){if(b===void 0||!b){b=g.N(F.bR);for(var I=b.next();!I.done;I=b.next()){I=I.value;if(J>=I.start&&J<=I.end)return;if(J===I.end+1){I.end+=1;return}}F.bR.push(new GQ_(J))}}; g.XZk=function(F,J){F=g.N(F.bR);for(var b=F.next();!b.done;b=F.next())if(b=b.value,J>=b.start&&J<=b.end)return!0;return!1}; Tp_=function(F,J,b,I,u){var w;J={reason:"overlapping_playbacks",xbG:J,V2:b,Xd:I,vfW:u.r9,ofG:((w=u.videoData)==null?void 0:w.videoId)||"",xpQ:u.durationMs,FwE:u.V2,BoW:u.Xd};td(F,J)}; td=function(F,J,b){F.playback.Qb(J,b)}; h9C=function(F,J){var b=[];F=F.Tj.get(J);if(!F)return[];F=g.N(F);for(J=F.next();!J.done;J=F.next())J=J.value,J.cpn&&b.push(J.cpn);return b}; cKv=function(F,J,b){var I=0;F=F.Tj.get(b);if(!F)return-1;F=g.N(F);for(b=F.next();!b.done;b=F.next()){if(b.value.cpn===J)return I;I++}return-1}; UTm=function(F,J){var b=0;F=F.Tj.get(J);if(!F)return 0;F=g.N(F);for(J=F.next();!J.done;J=F.next())J=J.value,J.durationMs!==0&&J.Xd!==J.V2&&b++;return b}; xTY=function(F,J,b){var I=!1;if(b&&(b=F.Tj.get(b))){b=g.N(b);for(var u=b.next();!u.done;u=b.next())u=u.value,u.durationMs!==0&&u.Xd!==u.V2&&(u=u.cpn,J===u&&(I=!0),I&&!F.Ly.has(u)&&(F.Ck({decoratedAd:u}),F.Ly.add(u)))}}; PNz=function(F){F.cN&&F.Ck({adf:"0_"+((new Date).getTime()/1E3-F.MI)+"_isTimeout_"+F.WN})}; Bp3=function(F,J,b){if(F.qf.length)for(var I=g.N(F.qf),u=I.next(),w={};!u.done;w={C$:void 0},u=I.next()){w.C$=u.value;u=w.C$.startSecs*1E3;var M=w.C$.Bg*1E3+u;if(J>u&&Ju&&b0&&I>J*1E3+F.zsv)&&(I=JlG(F,b))){J=!1;b=void 0;I=g.N(I.segments);for(u=I.next();!u.done;u=I.next()){u=u.value;if(J){b=u;break}hd(u)===F.GF&&(J=!0)}I=void 0;if(b)I=hd(b);else if(J){var w;I=(w=F.timeline.C)==null?void 0:hd(w)}if(I)F.finishSegmentByCpn(F.GF,I,2,void 0);else{var M;F.api.UQ("ssap",{mfnc:1,mfncc:(M=F.timeline.C)== null?void 0:hd(M)})}}}}; HZ7=function(F){return F.api.S("html5_force_ssap_gapful_switch")||F.api.S("html5_ssap_enable_legacy_browser_logic")&&!Qh()}; wbo=function(F,J,b,I){F.zp.set(J,I);IKC(F,J,b);urz(F,b)}; V5=function(F,J){F=bm(F.timeline,J);return(F==null?0:F.length)?F[0].Ez():0}; Pl=function(F,J){var b=b===void 0?!1:b;var I=F.timeline.C;if(!I)return{clipId:"",ac:0};var u=MFk(F,J,b);if(u)return{clipId:hd(u)||"",ac:u.Ez()};F.api.UQ("mci",{cs:hd(I),mt:J,tl:iz(F),invt:!!b});return{clipId:"",ac:0}}; LS=function(F){var J=F.timeline.C;if(!J)return 0;F=0;if(J.C.size===0)return(J.jo()-J.Ez())/1E3;J=J.C.values();J=g.N(J);for(var b=J.next();!b.done;b=J.next()){b=g.N(b.value);for(var I=b.next();!I.done;I=b.next())I=I.value,F+=(I.jo()-I.Ez())/1E3}return F}; qA3=function(F,J){return(F=Ala(F,J*1E3))?F.Ez():0}; vtG=function(F,J){var b=bm(F.timeline,J);J=0;if(b==null?0:b.length)for(F=g.N(b),b=F.next();!b.done;b=F.next())b=b.value,J+=(b.jo()-b.Ez())/1E3;else return LS(F);return J}; Ala=function(F,J){if(F=bm(F.timeline,F.GF)){F=g.N(F);for(var b=F.next();!b.done;b=F.next())if(b=b.value,b.Ez()<=J&&b.jo()>=J)return b}}; aKz=function(F){var J=F.playback.getVideoData();F.GF&&(F=F.xZ.get(F.GF))&&(J=F);return J}; JlG=function(F,J,b){b=b===void 0?!1:b;var I=F.timeline.C;if(I){I=I.C;var u=Array.from(I.keys());g.vW(u);J=g.AL(u,J);J=I.get(u[J<0?(J+2)*-1:J]);if(!b&&J){b=g.N(J);for(J=b.next();!J.done;J=b.next())if(J=J.value,J.Ez()!==J.jo())return J;return F.timeline}return J&&J.length>0?J[J.length-1]:void 0}}; MFk=function(F,J,b){b=b===void 0?!1:b;var I=JlG(F,J,b);if(I){if(F=I.segments,F.length){for(var u=g.N(F),w=u.next();!w.done;w=u.next())if(w=w.value,w.Ez()<=J&&w.jo()>J)return w;if(b&&I.Ez()===I.jo())return F[0]}}else F.api.UQ("ssap",{ctnf:1})}; txz=function(F,J){var b;if(F.al)for(b=F.A7.shift();b&&b!==F.al;)b=F.A7.shift();else b=F.A7.shift();if(b){if(F.JD.has(b))eI3(F,b);else if(J===3||J===4)F.xi.stop(),F.api.playVideo(1,F.api.S("html5_ssap_keep_media_on_finish_segment"));F.zp.set(F.GF,J);F.api.UQ("ssap",{onvftn:1});urz(F,b);return!1}F.api.UQ("ssap",{onvftv:1});F.xi.stop();return!0}; eI3=function(F,J){J=bm(F.timeline,J);if(J==null?0:J.length)F.api.pauseVideo(),F.xi.start(J[0].Gg)}; urz=function(F,J){var b=F.playback.getVideoData(),I=b.clientPlaybackNonce;F.Lo&&(F.events.iX(F.Lo),F.Lo=null,F.playback.oO());var u=F.GF,w=!1;if(u==="")u=I,w=!0;else if(u===void 0){var M=F.playback.wD.Db().UV;M&&F.timeline.U.has(M)&&(u=M);F.api.UQ("ssap",{mcc:u+";"+J});F.playback.je(new E5("ssap.timelineerror",{e:"missing_current_cpn",pcpn:u,ccpn:J}))}if(u===J)w&&b&&Kr_(F,b,w);else{M=F.zp.get(u);if(!w&&(!M||M!==3&&M!==5&&M!==6&&M!==7)){var q=F.api.ey(F.GF);F.api.UQ("ssap",{nmec:q,cpc:F.GF,ec:J})}M&& M!==2||F.g_();F.GF=J;F.g_();J=bm(F.timeline,F.GF);if(J==null?0:J.length){J=J[0];q=J.getType();u!==I&&(F.Ny=u,b=F.xZ.get(u));M?F.zp.delete(u):M=w?1:2;F.api.S("html5_ssap_pacf_qoe_ctmp")&&q===2&&!J.U&&(F.Lo=F.events.B(F.api,"onVideoProgress",F.kUz));F.api.UQ("ssapt",{ostro:M,pcpn:u,ccpn:F.GF});a:{var v=F.GF;if(!F.iF.has(v))for(var a=g.N(F.iF),e=a.next();!e.done;e=a.next()){var K=g.N(e.value);e=K.next().value;K=K.next().value;if(K.getId().includes(v)){v=e;break a}}}e=v;a=F.api.J().S("html5_ssap_insert_su_before_nonvideo")&& e!==F.GF;K=F.playback.wD.Db();if(K.UV!==e){var p=K.zF(K.UV);v=K.zF(e);K.UV=e;v!==p&&(p.qoe&&(e=p.qoe,e.provider.rD.hJ()&&e.UQ("ssap",{qoesus:"1",vid:e.provider.videoData.videoId}),a&&(a=g.dr(e.provider),dUY(e,a,"SU")),isNaN(e.W)||g.ii(e.W)),v.resume())}a=Math.max(0,Mp(F,u));v=F.playback.getCurrentTime();e=Math.max(0,v-V5(F,F.GF)/1E3);v=J.getVideoData();K=M===3||M===5||M===6||M===7;F.api.S("html5_ssap_skip_illegal_seeking")&&(p=F.playback.getPlayerState(),p=!g.x(p,8)&&g.x(p,16),K=K||p,p&&F.api.UQ("ssap", {iis:1}));p=F.playback;var m=u,y=F.GF,f=F.playback.getPlayerState();p.wD.Db().wS(m,y,a,e,!1,K,f,!0);F.api.UQ("ssapt",{ostri:M,pcpn:u,ccpn:F.GF});var d;a=u;e=F.GF;K=(d=F.Fm.get(u))!=null?d:(0,g.jR)();hq7(a,e,I,v,K,b);F.Fm.delete(u);w?b=void 0:b||F.api.UQ("ssap",{pvdm:u+";"+F.GF,pvdmc:F.GF===I?"1":"0"});F.api.UQ("ssap",{tpac:u+";"+F.GF,tpcc:I,tpv:(v==null?0:v.o8())?"1":"0"},!1,1);F.api.J().S("html5_ssap_cleanup_player_switch_ad_player")&&F.api.yW();F.api.publish("videodatachange","newdata",v,q,b,M); J.U||F.playback.getVideoData().publish("dataupdated");F.JD.delete(u);F.al="";v&&q===1?Kr_(F,v):F.playback.UQ("ssap",{nis:F.GF});q===2?F.x_++:F.x_=0}}}; Kr_=function(F,J,b){b=b===void 0?!1:b;if(J.startSeconds&&F.AL){var I=J.startSeconds;J=bm(F.timeline,J.clientPlaybackNonce);if(J==null?0:J.length)I+=J[0].Ez()/1E3,F.api.S("htm5_ssap_ignore_initial_seek_if_too_big")&&I>=F.Lt()||(F.playback.seekTo(I,{Ki:!0}),F.AL=!1,F.playback.UQ("ssap",{is:F.GF,co:b?"1":"0",tse:I.toFixed()}))}}; IKC=function(F,J,b){J=bm(F.timeline,J);if(J!=null&&J.length&&(J=JlG(F,J[0].Ez()))){J=g.N(J.segments);for(var I=J.next();!I.done;I=J.next()){I=I.value;if(hd(I)===b)break;if(I=hd(I)){var u=F.iF.get(I);u&&F.playback.removeCueRange(u);F.iF.delete(I)}}}}; B0=function(F){return F.playback.getVideoData().clientPlaybackNonce}; sZk=function(F,J){if(F.OA&&F.GF!==J)return!1;if(F.OS)return!0;if(J=F.iF.get(J))if(J=J.getId().split(","),J.length>1)for(var b=0;bw)return AU(F,"enterAfterReturn enterTimeMs="+u+" is greater than parentReturnTimeMs="+w.toFixed(3),M,q),"";var a=v.Ho()*1E3;if(ua)return v="returnAfterDuration parentReturnTimeMs="+w.toFixed(3)+" is greater than parentDurationMs="+a+". And timestampOffset in seconds is "+ v.Xq(),AU(F,v,M,q),"";a=null;for(var e=g.N(F.U),K=e.next();!K.done;K=e.next()){K=K.value;if(u>=K.V2&&uK.V2)return AU(F,"overlappingReturn",M,q),"";if(w===K.V2)return AU(F,"outOfOrder",M,q),"";u===K.Xd&&(a=K)}M="cs_childplayback_"+m3m++;q={Os:qp(I,!0),Pu:Infinity,target:null};var p={r9:M,playerVars:J,playerType:b,durationMs:I,V2:u,Xd:w,vn:q};F.U=F.U.concat(p).sort(function(f,d){return f.V2-d.V2}); a?ylJ(F,a,{Os:qp(a.durationMs,!0),Pu:a.vn.Pu,target:p}):(J={Os:qp(u,!1),Pu:u,target:p},F.D.set(J.Os,J),v.addCueRange(J.Os));J=!0;if(F.C===F.app.F_()&&(v=v.getCurrentTime()*1E3,v>=p.V2&&vJ)break;if(w>J)return{MQ:I,K3:J-u};b=w-I.Xd/1E3}return{MQ:null,K3:J-b}}; pbv=function(F,J,b){b=b===void 0?{}:b;var I=F.W||F.app.F_().getPlayerState();ee(F,!0);J=isFinite(J)?J:F.C.z8();var u=Wr7(F,J);J=u.K3;var w=(u=u.MQ)&&!vh(F,u)||!u&&F.C!==F.app.F_(),M=J*1E3;M=F.T&&F.T.start<=M&&M<=F.T.end;!w&&M||az(F);u?isa(F,u,J,b,I):d3z(F,J,b,I)}; d3z=function(F,J,b,I){var u=F.C;u!==F.app.F_()&&F.app.Hk();u.seekTo(J,Object.assign({},{Ky:"application_timelinemanager"},b));Etz(F,I)}; isa=function(F,J,b,I,u){var w=vh(F,J);if(!w){J.playerVars.prefer_gapless=!0;F.rD.S("html5_enable_ssap_entity_id")&&(J.playerVars.cached_load=!0);var M=new g.RH(F.rD,J.playerVars);M.r9=J.r9;F.api.Ml(M,J.playerType)}M=F.app.F_();w||M.addCueRange(J.vn.Os);M.seekTo(b,Object.assign({},{Ky:"application_timelinemanager"},I));Etz(F,u)}; Etz=function(F,J){F=F.app.F_();var b=F.getPlayerState();J.isOrWillBePlaying()&&!b.isOrWillBePlaying()?F.playVideo():J.isPaused()&&!b.isPaused()&&F.pauseVideo()}; ee=function(F,J){F.Tj=NaN;F.N=null;F.Y.stop();F.Z&&J&&F.Z.P2();F.W=null;F.Z=null}; vh=function(F,J){F=F.app.F_();return!!F&&F.getVideoData().r9===J.r9}; j54=function(F){var J=F.U.find(function(u){return vh(F,u)}); if(J){var b=F.app.F_();az(F);var I=new g.FC(8);J=fK4(F,J)/1E3;d3z(F,J,{},I);b.UQ("forceParentTransition",{childPlayback:1});F.C.UQ("forceParentTransition",{parentPlayback:1})}}; VFo=function(F,J,b){J=J===void 0?-1:J;b=b===void 0?Infinity:b;for(var I=J,u=b,w=g.N(F.D),M=w.next();!M.done;M=w.next()){var q=g.N(M.value);M=q.next().value;q=q.next().value;q.Pu>=I&&q.target&&q.target.Xd<=u&&(F.C.removeCueRange(M),F.D.delete(M))}I=J;u=b;w=[];M=g.N(F.U);for(q=M.next();!q.done;q=M.next())if(q=q.value,q.V2>=I&&q.Xd<=u){var v=F;v.V===q&&az(v);vh(v,q)&&v.app.Hk()}else w.push(q);F.U=w;I=Wr7(F,J/1E3);J=I.MQ;I=I.K3;J&&(I*=1E3,GYa(F,J,I,J.Xd===J.V2+J.durationMs?J.V2+I:J.Xd));(J=Wr7(F,b/1E3).MQ)&& AU(F,"Invalid clearEndTimeMs="+b+" that falls during playback={timelinePlaybackId="+(J.r9+" video_id="+J.playerVars.video_id+" durationMs="+J.durationMs+" enterTimeMs="+J.V2+" parentReturnTimeMs="+J.Xd+"}.Child playbacks can only have duration updated not their start."))}; GYa=function(F,J,b,I){J.durationMs=b;J.Xd=I;I={Os:qp(b,!0),Pu:b,target:null};ylJ(F,J,I);vh(F,J)&&F.app.F_().getCurrentTime()*1E3>b&&(J=fK4(F,J)/1E3,b=F.app.F_().getPlayerState(),d3z(F,J,{},b))}; AU=function(F,J,b,I){F.C.UQ("timelineerror",{e:J,cpn:b?b:void 0,videoId:I?I:void 0})}; BnC=function(F){F&&F!=="web"&&PZ7.includes(F)}; gh=function(F,J){g.R.call(this);var b=this;this.data=[];this.T=F||NaN;this.U=J||null;this.C=new g.ty(function(){Ke(b);pe(b)}); g.k(this,this.C)}; Tn4=function(F){Ke(F);return F.data.map(function(J){return J.value})}; Ke=function(F){var J=(0,g.jR)();F.data.forEach(function(b){b.expirew?{width:J.width,height:J.width/u,aspectRatio:u}:uu?F.width=F.height*b:bv;if(z3(F)){var a=CZ7(F);var e=isNaN(a)||g.c$||xi&&g.ia||v;hY&&!g.iV(601)?a=u.aspectRatio:e=e||w.controlsType==="3";e?v?(e=w.S("place_shrunken_video_on_left_of_player")?16:F.getPlayerSize().width-J.width-16,a=Math.max((F.getPlayerSize().height-J.height)/2,0),e=new g.uu(e,a,J.width, J.height),F.UI.style.setProperty("border-radius","12px")):e=new g.uu(0,0,J.width,J.height):(b=u.aspectRatio/a,e=new g.uu((J.width-u.width/b)/2,(J.height-u.height)/2,u.width/b,u.height),b===1&&g.ia&&(a=e.width-J.height*a,a>0&&(e.width+=a,e.height+=a)));g.qr(F.element,"ytp-fit-cover-video",Math.max(e.width-u.width,e.height-u.height)<1);if(q||F.WU)F.UI.style.display="";F.Gq=!0}else{e=-J.height;hY?e*=window.devicePixelRatio:g.x2&&(e-=window.screen.height);e=new g.uu(0,e,J.width,J.height);if(q||F.WU)F.UI.style.display= "none";F.Gq=!1}qB(F.zN,e)||(F.zN=e,g.TB(w)?(F.UI.style.setProperty("width",e.width+"px","important"),F.UI.style.setProperty("height",e.height+"px","important")):g.lu(F.UI,e.getSize()),I=new g.K$(e.left,e.top),g.yf(F.UI,Math.round(I.x),Math.round(I.y)),I=!0);J=new g.uu((J.width-u.width)/2,(J.height-u.height)/2,u.width,u.height);qB(F.n_,J)||(F.n_=J,I=!0);g.aN(F.UI,"transform",b===1?"":"scaleX("+b+")");M&&v!==F.HG&&(v&&(F.UI.addEventListener(uX,F.Zz),F.UI.addEventListener("transitioncancel",F.Zz),F.UI.classList.add(g.QA.VIDEO_CONTAINER_TRANSITIONING)), F.HG=v,F.app.SE.publish("playerUnderlayVisibilityChange",F.HG?"transitioning":"hidden"));return I}; D3a=function(){this.csn=g.W8();this.clientPlaybackNonce=null;this.elements=new Set;this.T=new Set;this.C=new Set;this.U=new Set}; kYz=function(F){if(F.csn!==g.W8())if(F.csn==="UNDEFINED_CSN")F.csn=g.W8();else{var J=g.W8(),b=g.fO();if(J&&b){F.csn=J;for(var I=g.N(F.elements),u=I.next();!u.done;u=I.next())(u=u.value.visualElement)&&u.isClientVe()&&J&&b&&(g.Nk("combine_ve_grafts")?fa(N7(),u,b):g.tE(g.oO)(void 0,J,b,u))}if(J)for(F=g.N(F.C),b=F.next();!b.done;b=F.next())(b=b.value.visualElement)&&b.isClientVe()&&g.H8(J,b)}}; g.Np=function(F,J,b,I){g.R.call(this);var u=this;this.logger=new g.Hl("App");this.f_=this.FY=!1;this.tB={};this.UA=[];this.yn=!1;this.mf=null;this.intentionalPlayback=!1;this.fB=!0;this.Q0=!1;this.Rb=this.Aq=null;this.QR=!0;this.mediaElement=this.AJ=null;this.hE=NaN;this.Ry=!1;this.m1=this.pX=this.II=this.jF=this.screenLayer=this.playlist=null;this.e0=[];this.EF=0;this.Po={v8N:function(){return u.z0}, IH:function(){return u.II}, pQ:function(M){u.II=M}, Cn:function(M,q){u.II&&u.II.Cn(M,q)}}; this.logger.debug("constructor begin");this.config=nQm(J||{});this.webPlayerContextConfig=b;qJC();J=this.config.args||{};this.rD=new X_(J,b,b?b.canaryState:this.config.assets.player_canary_state,I,this);g.k(this,this.rD);Npz(this.rD);I=f3m(this.rD);this.rD.hJ()&&this.e0.push({key:"h5vcc",value:I});this.rD.experiments.pW("jspb_serialize_with_worker")&&o6m();this.rD.experiments.pW("gzip_gel_with_worker")&&Yko();this.rD.U&&!OsJ&&(window.addEventListener(lb?"touchstart":"click",t_7,{capture:!0,passive:!0}), OsJ=!0);this.S("html5_onesie")&&(this.GV=new G6(this.rD),g.k(this,this.GV));this.q7=JC(j8(this.rD)&&!0,J.enablesizebutton);this.u5=JC(!1,J.player_wide);this.visibility=new pZm;g.k(this,this.visibility);this.S("web_log_theater_mode_visibility")&&this.Wp(JC(!1,J.player_wide));this.FY=JC(!1,J.external_list);this.events=new g.s5(this);g.k(this,this.events);this.S("start_client_gcf")&&(Gf(Tf(),{lE:MK,fS:u$Y()}),this.bv=Tf().resolve(MK),AE4(this.bv));this.ae_=new MZ;g.k(this,this.ae_);this.sT=new D3a;I= new Aa;this.SE=new g.ly(this,I);g.k(this,this.SE);this.template=new YAa(this);g.k(this,this.template);this.appState=1;this.wg=ot3(this);g.k(this,I);I={};this.XQ=(I.internalvideodatachange=this.wz,I.playbackready=this.jfQ,I.playbackstarted=this.nm_,I.statechange=this.a7W,I);this.Nr=new ld(this.SE);this.HV=hIk(this);I=this.S("html5_load_wasm");J=this.S("html5_allow_asmjs");if(I&&clz||J)this.rD.Lv=$2J(this.HV,J),q7(A8(this.rD.Lv,function(M){u.rD.PV=M;var q;(q=u.F_())==null||q.UQ("wasm",{a:M.xf})}),function(M){g.rQ(M); M="message"in M&&M.message||M.toString()||"";var q;(q=u.F_())==null||q.UQ("wasm",{e:M})}); else if(I&&!clz){var w;(w=this.F_())==null||w.UQ("wasm",{e:"wasm unavailable"})}this.qW=new On3(this.rD,this.HV);this.SE.publish("csiinitialized");w=10;g.jB(this.rD)&&(w=3);cu(this.rD)&&(w=g.eB(this.rD.experiments,"tvhtml5_unplugged_preload_cache_size"));w=new gh(w,function(M){M!==u.F4(M.getPlayerType())&&xU(M)}); g.k(this,w);this.z0=new gx3(w,{});w=U33(this);this.z0.uM(w.P0);x3_(this);w={};this.Af=(w.airplayactivechange=this.onAirPlayActiveChange,w.airplayavailabilitychange=this.onAirPlayAvailabilityChange,w.beginseeking=this.TT,w.sabrCaptionsDataLoaded=this.Yc,w.endseeking=this.Pv,w.internalAbandon=this.ID,w.internalaudioformatchange=this.dC,w.internalvideodatachange=this.onVideoDataChange,w.internalvideoformatchange=this.K_,w.liveviewshift=this.VeQ,w.playbackstalledatstart=this.N9I,w.progresssync=this.udN, w.onAbnormalityDetected=this.Ir,w.onSnackbarMessage=this.onSnackbarMessage,w.onLoadProgress=this.onLoadProgress,w.SEEK_COMPLETE=this.hI,w.SEEK_TO=this.ooR,w.onVideoProgress=this.onVideoProgress,w.onLoadedMetadata=this.onLoadedMetadata,w.onAutoplayBlocked=this.onAutoplayBlocked,w.onPlaybackPauseAtStart=this.NYQ,w.playbackready=this.IyQ,w.statechange=this.jU,w.newelementrequired=this.ER,w.heartbeatparams=this.Nq,w.videoelementevent=this.X8,w.drmoutputrestricted=this.onDrmOutputRestricted,w.signatureexpired= this.agQ,w.nonfatalerror=this.jC_,w.reloadplayer=this.qsE,w);this.Qt=new g.s5(this);g.k(this,this.Qt);this.S$=new yd;g.k(this,this.S$);this.Dw=this.BY=-1;this.Co=new g.ty(this.template.resize,16,this.template);g.k(this,this.Co);this.xl=new gtz(this.SE,this.rD,this.Nf(),this);this.wf=new oQ(this.rD);this.s2=new k3(this);g.k(this,this.s2);this.Nm=new Xi(this);g.k(this,this.Nm);BnC(this.rD.C.c);this.events.B(this.SE,g.u6("appapi"),this.yJG);this.events.B(this.SE,g.wq("appapi"),this.pb_);this.events.B(this.SE, g.u6("appprogressboundary"),this.s8D);this.events.B(this.SE,g.wq("applooprange"),this.eL);this.events.B(this.SE,"presentingplayerstatechange",this.hh);this.events.B(this.SE,"resize",this.MFR);this.template.Az(Rf(document,F));this.events.B(this.SE,"offlineslatestatechange",this.ayN);this.events.B(this.SE,"sabrCaptionsTrackChanged",this.tFR);this.events.B(this.SE,"sabrCaptionsBufferedRangesUpdated",this.K1E);this.HV.G.J().B9&&$0(this.HV,"offline");this.rD.bR&&g.jn("ux",g.$3);F=g.eB(this.rD.experiments, "html5_defer_fetch_att_ms");this.rQ=new g.ty(this.IeQ,F,this);g.k(this,this.rQ);this.Yl().o8()&&(g.Yq()&&this.Yl().kQ.push("remote"),ntC(this));this.qW.tick("fs");tFk(this);this.rD.bR&&$0(this.HV,"ux",!0);g.dN(this.HV.G.J())&&$0(this.HV,"embed");this.S("web_player_sentinel_is_uniplayer")||g.rQ(new g.hC("Player experiment flags missing","web_player_sentinel_is_uniplayer"));F=this.S("web_player_sentinel_yt_experiments_sync");w=g.Nk("web_player_sentinel_yt_experiments_sync");F!==w&&g.rQ(new g.hC("b/195699950", {yt:F,player:w}));b||g.rQ(new g.hC("b/179532961"));this.sf=ZsY(this);if(b=g.eB(this.rD.experiments,"html5_block_pip_safari_delay"))this.HL=new g.ty(this.Wy,b,this),g.k(this,this.HL);SN=this.rD.MI;b=g.eB(this.rD.experiments,"html5_performance_impact_profiling_timer_ms");b>0&&(this.w1=new g.fu(b),g.k(this,this.w1),this.events.B(this.w1,"tick",function(){u.UB&&Hs7.Gy("apit",u.UB);u.UB=Hs7.EA()})); this.SE.publish("applicationInitialized");this.logger.debug("constructor end")}; ZsY=function(F){function J(b){b.stack&&b.stack.indexOf("player")!==-1&&(F.F_()||F.Nf()).Wv(b)} SQ.subscribe("handleError",J);xD.push(J);return function(){SQ.unsubscribe("handleError",J);var b=xD.indexOf(J);b!==-1&&xD.splice(b,1)}}; U33=function(F){var J=new g.RH(F.rD,F.config.args);F.SE.publish("initialvideodatacreated",J);return g.lK(F,1,J)}; x3_=function(F){var J=F.Nf();J.setPlaybackRate(F.rD.Z?1:Lra(F,Number(g.S9("yt-player-playback-rate"))||1));J.Sn(F.XQ,F);J.XR()}; hIk=function(F){var J="",b=SAa(F);b.indexOf("//")===0&&(b=F.rD.protocol+":"+b);var I=b.lastIndexOf("/base.js");I!==-1&&(J=b.substring(0,I+1));if(b=Error().stack)if(b=b.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))b=b[1],b.includes(J)||g.rQ(Error("Player module URL mismatch: "+(b+" vs "+J+".")));J=new zQo(F.SE,J);Fvk(F,J);return J}; Fvk=function(F,J){var b={};b=(b.destroyed=function(){F.onApiChange()},b); J.T=b}; ot3=function(F){if(F.rD.storeUserVolume){F=g.S9("yt-player-volume")||{};var J=F.volume;F={volume:isNaN(J)?100:g.AD(Math.floor(J),0,100),muted:!!F.muted}}else F={volume:100,muted:F.rD.mute};return F}; fe=function(F){F.mediaElement=F.rD.deviceIsAudioOnly?new g.A2(g.H1("AUDIO")):C9.pop()||new g.A2(g.H1("VIDEO"));g.k(F,F.mediaElement);var J=F.F_();J&&J.setMediaElement(F.mediaElement);try{F.rD.Se?(F.pX&&F.events.iX(F.pX),F.pX=F.events.B(F.mediaElement,"volumechange",F.vlD)):(F.mediaElement.sA(F.wg.muted),F.mediaElement.setVolume(F.wg.volume/100))}catch(u){F.Wh("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(u&&typeof u==="object"&&"message"in u&&typeof u.message==="string"&&u.message.replace(/[;:,]/g, "_")));return}g.Ve(F.Qt);JOm(F);J=F.template;var b=F.mediaElement.Pb();J.UI=b;J.Sh=!1;J.UI.parentNode||bB(J.N1,J.UI,0);J.zN=new g.uu(0,0,0,0);RIv(J);iK(J);b=J.UI;g.uG(b,"video-stream");g.uG(b,g.QA.MAIN_VIDEO);var I=J.app.J();I.rZ&&b.setAttribute("data-no-fullscreen","true");I.S("html5_local_playsinline")?"playsInline"in VZ()&&(b.playsInline=!0):I.DY&&(b.setAttribute("webkit-playsinline",""),b.setAttribute("playsinline",""));I.fN&&J.UI&&J.B(b,"click",b.play,b);try{F.mediaElement.activate()}catch(u){F.Wh("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(u&&typeof u==="object"&&"message"in u&&typeof u.message==="string"&&u.message.replace(/[;:,]/g,"_")))}}; Ilz=function(F){if(!bha(F)){var J=F.Nf().Qa();J&&(J=J.X5(),J instanceof Promise&&J.catch(function(){})); Wh(F,qO(F.getPlayerStateObject()))}}; JOm=function(F){var J=F.mediaElement;rk()?F.Qt.B(J,"webkitpresentationmodechanged",F.F1Q):window.document.pictureInPictureEnabled&&(F.Qt.B(J,"enterpictureinpicture",function(){F.mU(!0)}),F.Qt.B(J,"leavepictureinpicture",function(){F.mU(!1)})); x6&&(F.Qt.B(J,"webkitbeginfullscreen",function(){F.wT(3)}),F.Qt.B(J,"webkitendfullscreen",function(){F.wT(0)}))}; uMa=function(F,J){var b=J.getPlayerType(),I=F.z0.F4(b);J!==F.Nf()&&J!==I&&(I==null||xU(I),F.z0.U[b]=J)}; wHG=function(F,J){J=J===void 0?!0:J;F.logger.debug("start clear presenting player");var b;if(b=F.m1){b=F.m1;var I=F.mediaElement;b=!!I&&I===b.mediaElement}b&&(F.rg(),fe(F));if(b=F.F_())b.rg(!J),b.TW(F.Af,F),b.getPlayerType()!==1&&xU(b);F.z0.T=null;F.logger.debug("finish clear presenting player")}; g.lK=function(F,J,b,I){var u=F.qW;J===2&&(u=new On3(F.rD));return new g.it(F.rD,J,u,F.template,function(w,M,q){F.SE.publish(w,M,q)},function(){return F.SE.getVisibilityState()},F.visibility,F,b,I)}; MGo=function(F,J,b,I){F=g.lK(F,J,b,I);F.XR();return F}; dh=function(F,J){return F.Uo(J)?F.Nf():J}; EK=function(F,J){var b=F.F_(),I=F.Nf();return b&&J===I&&F.Uo(J)&&F.Uo(b)?b:J}; vh_=function(F){F.logger.debug("start application playback");if(F.Nf().getPlayerState().isError())F.logger.debug("start application playback done, player in error state");else{var J=je(F);F.Yl().isLoaded();J&&F.uJ(6);AOv(F);P7m(F.HV)||qIm(F)}}; qIm=function(F){if(!je(F)){var J=XN(F.HV);J&&!J.created&&N1_(F.HV)&&(F.logger.debug("reload ad module"),J.create())}}; AOv=function(F){F.logger.debug("start presenter playback");var J=F.getVideoData(),b=F.HV;P7m(b)||b.jd();!clz&&b.G.S("html5_allow_asmjs")&&Y3G(b);$0(b,"embed");$0(b,"kids");$0(b,"remote");$0(b,"miniplayer");$0(b,"offline");$0(b,"unplugged");$0(b,"ypc",!1,!0);$0(b,"ypc_clickwrap",!1,!0);$0(b,"yto",!1,!0);$0(b,"webgl",!1,!0);B1C(b)||($0(b,"captions",!0),$0(b,"endscreen"),b.lD()||b.kO(),$0(b,"creatorendscreen",!0));b.FA();F.SE.publish("videoready",J)}; G3=function(F){F=F.Yl();F.o8();return RU(F)}; tFk=function(F){F.logger.debug("start prepare initial playback");F.Uy();var J=F.config.args;fe(F);var b=F.Yl();F.SE.SZ("onVolumeChange",F.wg);if(J&&xHv(J)){var I=k2(F.rD);I&&!F.FY&&(J.fetch=0);var u=g.dN(F.rD);u&&!F.FY&&(J.fetch=0);Vd(F,J);g.dN(F.rD)&&F.qW.tick("ep_pr_s");if(!I||F.FY)if(u&&!F.FY)alk(F);else if(!b.o8())F.playlist.onReady(function(){Ph(F)})}F.LA(F.Nf()); g.x(F.Nf().getPlayerState(),128)||(J=vyv(!F.rD.deviceIsAudioOnly),J==="fmt.noneavailable"?F.Wh("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):J==="html5.missingapi"?F.Wh(J,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):b&&b.o8()&&G3(F)&&(F.rD.IP||F.rD.D4)?Bh(F):b.jY?F.S("embeds_enable_full_length_inline_muted_autoplay")?F.SE.mutedAutoplay({durationMode:b.mutedAutoplayDurationMode}):F.SE.mutedAutoplay():g.S9("yt-player-playback-on-reload")?(g.AY("embedsItpPlayedOnReload",{playedOnReload:!0, isLoggedIn:!!F.rD.Gj}),g.rm("yt-player-playback-on-reload",!1),Bh(F)):tP(F.rD)||e3Y(F),g.hP(F.rD)||cG(F.rD)==="MWEB"?(g.tC(g.HK(),function(){T3(F)}),g.tC(g.HK(),function(){iJG()})):(T3(F),iJG()),F.logger.debug("finish prepare initial playback"))}; T3=function(F){if(!F.S("use_rta_for_player"))if(F.S("fetch_att_independently"))g.Z_(F.rQ);else{var J=F.getVideoData().botguardData;J&&g.TR(J,F.rD,F.getVideoData().vQ||"")}}; e3Y=function(F){F.logger.debug("start initialize to CUED mode");F.SE.publish("initializingmode");F.uJ(2);F.S("embeds_web_enable_defer_loading_remote_js")&&g.U7(F.rD)?g.tC(g.HK(),function(){$0(F.HV,"remote")}):$0(F.HV,"remote"); $0(F.HV,"miniplayer");F.logger.debug("initialized to CUED mode")}; Bh=function(F){F.logger.debug("start initialize application playback");var J=F.Nf();if(g.x(J.getPlayerState(),128))return!1;var b=J.getVideoData();G3(F)&&F.rD.D4&&(C9.length&&F.f_?(rh(F,{muted:!1,volume:F.wg.volume},!1),Se(F,!1)):C9.length||F.wg.muted||(rh(F,{muted:!0,volume:F.wg.volume},!1),Se(F,!0)));G3(F)&&g.dN(F.rD)&&b.mutedAutoplay&&(rh(F,{muted:!0,volume:F.wg.volume},!1),Se(F,!0));b.tE&&rh(F,{muted:!0,volume:F.wg.volume},!1);Kvk(F,1,b,!1);F.SE.publish("initializingmode");F.LA(F.Nf());F.uJ(3); var I;if(!(I=!F.rD.OM)){if(I=F.m1){I=F.m1;var u=F.mediaElement;I=!!u&&u===I.mediaElement}I=I&&F.yn}I&&(F.rg(),fe(F),J.setMediaElement(F.mediaElement));J.Df();if(g.x(J.getPlayerState(),128))return!1;b.XI||Wh(F,3);return F.yn=!0}; je=function(F){F=dO(F.HV);return!!F&&F.loaded}; pHY=function(F,J){if(!F.AJ)return!1;var b=F.AJ.startTimeMs*.001-1,I=F.AJ.endTimeMs*.001;F.AJ.type==="repeatChapter"&&I--;return Math.abs(J-b)<=1E-6||Math.abs(J-I)<=1E-6||J>=b&&J<=I}; yOa=function(F){var J=F.F_();J&&LC(J.getVideoData())&&!J.YM()&&(J=gha(F)*1E3-F.getVideoData().YC,F.S("html5_gapless_new_slr")?(F=F.Nm,mz_(F.app,"gaplessshortslooprange"),J=new g.b6(0,J,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(F=F.app.F_())&&F.addCueRange(J)):F.setLoopRange({startTimeMs:0,endTimeMs:J,type:"shortsLoop"}))}; ihG=function(F){var J=F.Nf();if(!(g.x(J.getPlayerState(),64)&&F.Yl().isLivePlayback&&F.AJ.startTimeMs<5E3)){if(F.AJ.type==="repeatChapter"){var b,I=(b=PSC(F.TF()))==null?void 0:b.p8(),u;b=(u=F.getVideoData())==null?void 0:u.wX;I instanceof g.LV&&b&&(u=b[z4(b,F.AJ.startTimeMs)],I.renderChapterSeekingAnimation(0,u.title));isNaN(Number(F.AJ.loopCount))?F.AJ.loopCount=0:F.AJ.loopCount++;F.AJ.loopCount===1&&F.SE.jE("innertubeCommand",F.getVideoData().OD)}I={Ky:"application_loopRangeStart"};if(F.AJ.type=== "clips"||F.AJ.type==="shortsLoop")I.seekSource=58;J.seekTo(F.AJ.startTimeMs*.001,I)}}; Lra=function(F,J){var b=F.SE.getAvailablePlaybackRates();J=Number(J.toFixed(2));F=b[0];b=b[b.length-1];J<=F?J=F:J>=b?J=b:(F=Math.floor(J*100+.001)%5,J=F===0?J:Math.floor((J-F*.01)*100+.001)/100);return J}; gha=function(F,J){J=F.F4(J);if(!J)return 0;J=dh(F,J);return sK(F,J.LP(),J)}; sK=function(F,J,b){if(F.Uo(b)){b=b.getVideoData();if(YN(F))b=J;else{F=F.xl;for(var I=g.N(F.U),u=I.next();!u.done;u=I.next())if(u=u.value,b.r9===u.r9){J+=u.V2/1E3;break}I=J;F=g.N(F.U);for(u=F.next();!u.done;u=F.next()){u=u.value;if(b.r9===u.r9)break;var w=u.V2/1E3;if(w1&&(u=!1);if(!F.Ry||u!==J){b=b.lock(u?"portrait":"landscape");if(b!=null)b["catch"](function(){}); F.Ry=!0}}else F.Ry&&(F.Ry=!1,b.unlock())}; Du=function(F,J,b){F.SE.publish(J,b);var I=g.jB(F.rD)||g.TB(F.rD)||g.sV(F.rD);if(b&&I){switch(J){case "cuerangemarkersupdated":var u="onCueRangeMarkersUpdated";break;case "cuerangesadded":u="onCueRangesAdded";break;case "cuerangesremoved":u="onCueRangesRemoved"}u&&F.SE.jE(u,b.map(function(w){return{getId:function(){return this.id}, end:w.end,id:w.getId(),namespace:w.namespace==="ad"?"ad":"",start:w.start,style:w.style,visible:w.visible}}))}}; kN=function(F,J,b,I,u,w){b=b===void 0?!0:b;var M=F.F4(u);M&&(M.getPlayerType()===2&&!F.Uo(M)||g.dS(M.getVideoData()))||(F.getPresentingPlayerType()===3?dO(F.HV).Lx("control_seek",J,b):(M&&M===F.Nf()&&F.AJ&&!pHY(F,J)&&F.setLoopRange(null),F.seekTo(J,b,I,u,w)))}; YIa=function(F,J,b,I){b&&(F.rg(),fe(F));b=F.F_();b.SW(J);var u=F.getVideoData(),w={};w.video_id=u.videoId;w.adformat=u.adFormat;u.isLivePlayback||(w.start=b.getCurrentTime(),w.resume="1");u.isLivePlayback&&qb(u)&&g.dX(F.rD)&&(w.live_utc_start=b.Ze(),w.resume="1");u.eE&&(w.vvt=u.eE);u.W&&(w.vss_credentials_token=u.W,w.vss_credentials_token_type=u.kZ);u.oauthToken&&(w.oauth_token=u.oauthToken);u.Ys&&(w.force_gvi=u.Ys);w.autoplay=1;w.reload_count=u.T1+1;w.reload_reason=J;u.KT&&(w.unplugged_partner_opt_out= u.KT);u.Lv&&(w.ypc_is_premiere_trailer=u.Lv);u.playerParams&&(w.player_params=u.playerParams);F.loadVideoByPlayerVars(w,void 0,!0,void 0,void 0,I);J==="signature"&&F.jF&&qIm(F)}; $zC=function(F,J){F.Yl().autonavState=J;g.rm("yt-player-autonavstate",J);F.SE.publish("autonavchange",J)}; Cla=function(F){var J=F.getVideoData().T8,b=F.rD.cN,I=F.isInline()&&!F.getVideoData().Tv,u=F.mediaElement;J||b||I?u.Zw():(u.PL(),rh(F,F.wg))}; $N=function(F){var J=XN(F.TF());J&&J.created&&(F.logger.debug("reset ad module"),J.destroy())}; YN=function(F){return F.getVideoData().enableServerStitchedDai&&!!F.jF}; XHm=function(F,J){J.bounds=F.getBoundingClientRect();for(var b=g.N(["display","opacity","visibility","zIndex"]),I=b.next();!I.done;I=b.next())I=I.value,J[I]=pL(F,I);J.hidden=!!F.hidden}; SAa=function(F){if(F.webPlayerContextConfig){var J=F.webPlayerContextConfig.trustedJsUrl;return J?fX(J).toString():F.webPlayerContextConfig.jsUrl}return F.config.assets&&F.config.assets.js?F.config.assets.js:""}; Q_a=function(F,J){var b=F.F4(1);if(b){if(b.getVideoData().clientPlaybackNonce===J)return b;if((F=F.s2.C)&&F.getVideoData().clientPlaybackNonce===J)return F}return null}; R3_=function(F){return F.name==="TypeError"&&F.stack.includes("/s/player/")&&RR()<=105}; Dza=function(F){return F.isTimeout?"NO_BID":"ERR_BID"}; kO4=function(){var F=null;SYm().then(function(J){return F=J},function(J){return F=Dza(J)}); return F}; OhY=function(){var F=db(1E3,"NO_BID");return Nf(LCm([SYm(),F]).rX(Dza),function(){F.cancel()})}; OK=function(F){return F.g9?g.Rg(g.Qe(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; oz=function(F){this.player=F;this.T=this.C=1}; cOm=function(F,J,b,I,u,w){J.client||(J.client={});F.player.J().S("h5_remove_url_for_get_ad_break")||(J.client.originalUrl=b);var M=w$(b),q=g.Cu(b)?!1:!0;(M||q)&&typeof Intl!=="undefined"&&(J.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);q=g.Cu(b)?!1:!0;if(M||q||I!==""){var v={};b=LX(aR(I)).split("&");var a=new Map;b.forEach(function(e){e=e.split("=");e.length>1&&a.set(e[0].toString(),decodeURIComponent(e[1].toString()))}); a.has("bid")&&(v.bid=a.get("bid"));v.params=[];oh_.forEach(function(e){a.has(e)&&(e={key:e,value:a.get(e)},v.params.push(e))}); h3z(F,v);J.adSignalsInfo=v}J.client.unpluggedAppInfo||(J.client.unpluggedAppInfo={});J.client.unpluggedAppInfo.enableFilterMode=!1;b=u.C.cosver;b!=null&&b!=="cosver"&&(J.client.osVersion=b);b=u.C.cplatform;b!=null&&b!=="cplatform"&&b!==""&&(J.client.platform=b);b=u.C.cmodel;b!=null&&b!=="cmodel"&&(J.client.deviceModel=b);b=u.C.cplayer;b!=null&&b!=="cplayer"&&(J.client.playerType=b);b=u.C.cbrand;b!=null&&b!=="cbrand"&&(J.client.deviceMake=b);J.user||(J.user={});J.user.lockedSafetyMode=!1;(u.S("embeds_web_enable_iframe_api_send_full_embed_url")|| u.S("embeds_enable_autoplay_and_visibility_signals"))&&g.Bu(u)&&rjz(J,w,F.player.getPlayerState(1))}; nhz=function(F,J){var b=!1;if(J==="")return b;J.split(",").forEach(function(I){var u={},w={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},M="ACTIVE";I[0]==="!"&&(I=I.substring(1),M="INACTIVE");I=I.split("-");I.length<3||(I[0]in Uzk&&(w.clientName=Uzk[I[0]]),I[1]in xzY&&(w.platform=xzY[I[1]]),w.applicationState=M,w.clientVersion=I.length>2?I[2]:"",u.remoteClient=w,F.remoteContexts?F.remoteContexts.push(u):F.remoteContexts=[u],b=!0)}); return b}; Zh3=function(F){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in tG3))return!1;F=F.split(RegExp("[:&]"));var J=tG3.FLAG_AUTO_CAPTIONS_DEFAULT_ON,b="f"+(1+Math.floor(J/31)).toString();J=1<=2?M[1]:"";var q=Lvv.test(J),v=Flk.exec(J);v=v!=null&&v.length>=2?v[1]:"";var a=JTk.exec(J);a=a!=null&&a.length>=2&&!Number.isNaN(Number(a[1]))?Number(a[1]):1;var e=bNz.exec(J);e=e!=null&&e.length>=2?e[1]:"0";var K=Y2(F.player.J().ME),p=F.player.getVideoData(1),m=g.UV(p.WN,!0),y="BISCOTTI_ID"in b?b.BISCOTTI_ID:"";cOm(F,m,J,y.toString(),F.player.J(), p);p={splay:!1,lactMilliseconds:b.LACT.toString(),playerHeightPixels:Math.trunc(b.P_H),playerWidthPixels:Math.trunc(b.P_W),vis:Math.trunc(b.VIS),signatureTimestamp:20138,autonavState:OK(F.player.J())};I&&(I={},nhz(I,b.YT_REMOTE)&&(p.mdxContext=I));if(I=IEv.includes(K)?void 0:g.$6("PREF")){for(var f=I.split(RegExp("[:&]")),d=0,G=f.length;d1&&P[1].toUpperCase()==="TRUE"){m.user.lockedSafetyMode=!0;break}}p.autoCaptionsDefaultOn= Zh3(I)}J=ugv.exec(J);(J=J!=null&&J.length>=2?J[1]:"")&&v&&(m.user.credentialTransferTokens=[{token:J,scope:"VIDEO"}]);J={contentPlaybackContext:p};M={adBlock:Math.trunc(b.AD_BLOCK),params:M,breakIndex:a,breakPositionMs:e,clientPlaybackNonce:b.CPN,topLevelDomain:K,isProxyAdTagRequest:q,context:m,adSignalsInfoString:LX(aR(y.toString())),overridePlaybackContext:J};u!==void 0&&(M.cueProcessedMs=Math.round(u).toString());v&&(M.videoId=v);b.LIVE_TARGETING_CONTEXT&&(M.liveTargetingParams=b.LIVE_TARGETING_CONTEXT); b.AD_BREAK_LENGTH&&(M.breakLengthMs=Math.trunc(b.AD_BREAK_LENGTH*1E3).toString());w&&(M.driftFromHeadMs=w.toString());M.currentMediaTimeMs=Math.round(F.player.getCurrentTime(1)*1E3);(F=F.player.getGetAdBreakContext())&&(M.getAdBreakContext=F);return M}; MHa=function(){oz.apply(this,arguments)}; ATa=function(F,J,b,I,u){var w=b.SN;var M=b.Os;var q=F.player.J().jm,v=0;b.cueProcessedMs&&M&&!w&&(b=M.end-M.start,b>0&&(v=Math.floor(b/1E3)));var a={AD_BLOCK:u,AD_BREAK_LENGTH:w?w.Bg:v,AUTONAV_STATE:OK(F.player.J()),CA_TYPE:"image",CPN:F.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:F.player.mJ()*1E3,LACT:dP(),LIVE_INDEX:w?F.T++:1,LIVE_TARGETING_CONTEXT:w&&w.context?w.context:"",MIDROLL_POS:M?Math.round(M.start/1E3):0,MIDROLL_POS_MS:M?Math.round(M.start):0,VIS:F.player.getVisibilityState(), P_H:F.player.mG().lk().height,P_W:F.player.mG().lk().width,YT_REMOTE:q?q.join(","):""},e=vx(qk);Object.keys(e).forEach(function(K){e[K]!=null&&(a[K.toUpperCase()]=e[K].toString())}); I!==""&&(a.BISCOTTI_ID=I);I={};AR(J)&&(I.sts="20138",(F=F.player.J().forcedExperiments)&&(I.forced_experiments=F));return ui(g.TM(J,a),I)}; q8G=function(F,J){var b=F.player.J(),I,u=(I=F.player.getVideoData(1))==null?void 0:I.oauthToken;return g.LH(b,u).then(function(w){if(w&&Mk()){var M=SV();sf(M,w)}return g.cf(F.player.n8(M),J,"/youtubei/v1/player/ad_break").then(function(q){return q})})}; vwv=function(F){this.EQ=F}; aEm=function(F){this.G=F}; eVz=function(F){this.EQ=F}; pDz=function(F){g.R.call(this);this.C=F;this.t0=KlJ(this)}; KlJ=function(F){var J=new ei3(F.C.py);g.k(F,J);F=g.N([new vwv(F.C.EQ),new aEm(F.C.G),new eVz(F.C.EQ),new BP(F.C.pD,F.C.Rk),new r0,new YG(F.C.RP,F.C.SB,F.C.EQ),new TI,new PP]);for(var b=F.next();!b.done;b=F.next())Kiz(J,b.value);F=g.N(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(b=F.next();!b.done;b=F.next())Sk(J,b.value,function(){}); return J}; hU=function(F){var J=F.QG,b=F.uR;F=F.P1;var I=new VKY,u={P9:new A5k(J.get(),b),uR:b};return{S3:new tc(b,F,J,u),context:u,Zl:I}}; ch=function(F,J,b,I,u){g.R.call(this);this.U=J;this.OQ=b;this.QG=I;this.cV=u;this.listeners=[];var w=new j9(this);g.k(this,w);w.B(F,"internalAbandon",this.ID);this.addOnDisposeCallback(function(){g.Ve(w)})}; UK=function(F){this.G=F;this.adVideoId=this.C=this.videoId=this.adCpn=this.contentCpn=null;this.D=!0;this.U=this.T=!1;this.adFormat=null;this.Z="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; gwz=function(F){F.contentCpn=null;F.adCpn=null;F.videoId=null;F.adVideoId=null;F.adFormat=null;F.Z="AD_PLACEMENT_KIND_UNKNOWN";F.actionType="unknown_type";F.T=!1;F.U=!1}; mAo=function(F,J){F=g.N(J);for(J=F.next();!J.done;J=F.next())if((J=J.value.renderer)&&(J.instreamVideoAdRenderer||J.linearAdSequenceRenderer||J.sandwichedLinearAdRenderer||J.instreamSurveyAdRenderer)){XH("ad_i");g.Qk({isMonetized:!0});break}}; yTC=function(F){var J;(J=F.G.getVideoData(1))!=null&&J.Gj&&(F.U=!1,J={},F.C&&F.videoId&&(J.cttAuthInfo={token:F.C,videoId:F.videoId}),Rr("video_to_ad",J))}; kO=function(F){F.U=!1;var J={};F.C&&F.videoId&&(J.cttAuthInfo={token:F.C,videoId:F.videoId});Rr("ad_to_video",J);iNk(F)}; iNk=function(F){if(F.T)if(F.Z==="AD_PLACEMENT_KIND_START"&&F.actionType==="video_to_ad")Yk("video_to_ad");else{var J={adBreakType:zA(F.Z),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:F.videoStreamType};F.actionType==="ad_to_video"?(F.contentCpn&&(J.targetCpn=F.contentCpn),F.videoId&&(J.targetVideoId=F.videoId)):(F.adCpn&&(J.targetCpn=F.adCpn),F.adVideoId&&(J.targetVideoId=F.adVideoId));F.adFormat&&(J.adType=F.adFormat);F.contentCpn&& (J.clientPlaybackNonce=F.contentCpn);F.videoId&&(J.videoId=F.videoId);F.adCpn&&(J.adClientPlaybackNonce=F.adCpn);F.adVideoId&&(J.adVideoId=F.adVideoId);g.Qk(J,F.actionType)}}; xN=function(F){g.R.call(this);this.G=F;this.C=new Map;this.U=new j9(this);g.k(this,this.U);this.U.B(this.G,g.u6("ad"),this.onCueRangeEnter,this);this.U.B(this.G,g.wq("ad"),this.onCueRangeExit,this)}; zV4=function(F,J,b,I,u){g.b6.call(this,J,b,{id:F,namespace:"ad",priority:u,visible:I})}; ne=function(F){this.G=F}; tU=function(F){this.G=F;g.eB(this.G.J().experiments,"tv_pacf_logging_sample_rate")}; fF=function(F,J){J=J===void 0?!1:J;return F.G.J().S("html5_ssap_force_ads_ctmp")?!0:(J||F.G.J().hJ())&&F.G.J().S("html5_ssap_pacf_qoe_ctmp")}; Zu=function(F){var J,b;return(b=(J=F.G.getVideoData(1))==null?void 0:g.oH(J))!=null?b:!1}; Un=function(F,J){return F.G.J().S(J)}; Nva=function(F){return F.G.J().S("substitute_ad_cpn_macro_in_ssdai")}; mz=function(F){var J,b,I;return((J=F.G.getVideoData(1).getPlayerResponse())==null?void 0:(b=J.playerConfig)==null?void 0:(I=b.daiConfig)==null?void 0:I.enableServerStitchedDai)||!1}; zxo=function(F){return F.G.J().S("html5_enable_vod_slar_with_notify_pacf")}; lE_=function(F){return F.G.J().S("html5_recognize_predict_start_cue_point")}; x8=function(F){return F.G.J().experiments.pW("enable_desktop_player_underlay")}; fEo=function(F){return F.G.J().experiments.pW("html5_load_empty_player_in_media_break_sub_lra")}; TA=function(F){return F.G.J().experiments.pW("html5_load_ads_instead_of_cue")}; rM=function(F){return F.G.J().experiments.pW("html5_preload_ads")}; on=function(F){return F.G.J().experiments.pW("enable_ads_control_flow_deterministic_id_generation")}; Wl3=function(F){return F.G.J().experiments.pW("enable_desktop_discovery_video_abandon_pings")||g.O7(F.G.J())}; dA7=function(F){return F.G.J().experiments.pW("enable_progres_commands_lr_feeds")}; Ew_=function(F){return F.G.J().experiments.pW("html5_cuepoint_identifier_logging")}; jvv=function(F){switch(F){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}}; GH3=function(){g.uA.call(this);var F=this;this.C={};this.addOnDisposeCallback(function(){for(var J=g.N(Object.keys(F.C)),b=J.next();!b.done;b=J.next())delete F.C[b.value]})}; Hh=function(){if(VHk===null){VHk=new GH3;VF(f8).U="b";var F=VF(f8),J=gi(F)=="h"||gi(F)=="b",b=!(Sw(),!1);J&&b&&(F.D=!0,F.W=new s2m)}return VHk}; P4v=function(F,J,b){F.C[J]=b}; Bv3=function(F){switch(F){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}}; Le=function(F,J,b){this.OQ=F;this.G=J;this.uR=b;this.U=new Set;this.C=new Map;Hh().subscribe("adactiveviewmeasurable",this.rM,this);Hh().subscribe("adfullyviewableaudiblehalfdurationimpression",this.I7,this);Hh().subscribe("adviewableimpression",this.CQ,this);Hh().subscribe("adaudioaudible",this.LB,this);Hh().subscribe("adaudiomeasurable",this.NO,this)}; J7=function(F,J,b){var I=b.Mi,u=b.cP,w=b.listener,M=b.uv;b=b.Tf===void 0?!1:b.Tf;if(F.C.has(J))q_("Unexpected registration of layout in LidarApi");else{if(M){if(F.U.has(M))return;F.U.add(M)}F.C.set(J,w);wf(Sw().Dy,"fmd",1);oIk(VF(f8),I);var q=b?J:void 0;P4v(Hh(),J,{nt:function(){if(!u)return{};var v=F.G.getPresentingPlayerType(!0),a;return(a=F.G.getVideoData(v))!=null&&a.isAd()?{currentTime:F.OQ.get().getCurrentTimeSec(v,!1,q),duration:u,isPlaying:Fm(F.OQ.get(),v).isPlaying(),isVpaid:!1,isYouTube:!0, volume:F.OQ.get().isMuted()?0:F.OQ.get().getVolume()/100}:{}}})}}; bY=function(F,J){F.C.has(J)?(F.C.delete(J),delete Hh().C[J]):q_("Unexpected unregistration of layout in LidarApi")}; Tvk=function(F,J){if(F.G.isLifaAdPlaying()){var b=F.G.xK(!0,!0);F.Ei(J,b.width*.5*1.1,b.height*.25*1.1,b.width*.5*.9,b.height*.5*.9)}}; svC=function(F,J,b){var I={};rTz(F,I,J,b);S84(I);I.LACT=IL(function(){return dP().toString()}); I.VIS=IL(function(){return F.getVisibilityState().toString()}); I.SDKV="h.3.0";I.VOL=IL(function(){return F.isMuted()?"0":Math.round(F.getVolume()).toString()}); I.VED="";return I}; Y8C=function(F,J){var b={};if(J)return b;if(!F.kind)return g.Td(Error("AdPlacementConfig without kind")),b;if(F.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||F.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!F.adTimeOffset||!F.adTimeOffset.offsetStartMilliseconds)return g.Td(Error("malformed AdPlacementConfig")),b;b.MIDROLL_POS=IL(vj(Math.round(L5(F.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else b.MIDROLL_POS=IL(vj("0"));return b}; IL=function(F){return{toString:function(){return F()}}}; $A3=function(F,J,b){function I(q,v){(v=b[v])&&(w[q]=v)} function u(q,v){(v=b[v])&&(w[q]=M(v))} if(!b||g.Vj(b))return F;var w=Object.assign({},F),M=J?encodeURIComponent:function(q){return q}; u("DV_VIEWABILITY","doubleVerifyViewability");u("IAS_VIEWABILITY","integralAdsViewability");u("MOAT_INIT","moatInit");u("MOAT_VIEWABILITY","moatViewability");I("GOOGLE_VIEWABILITY","googleViewability");I("VIEWABILITY","viewability");return w}; rTz=function(F,J,b,I){J.CPN=IL(function(){var u;(u=F.getVideoData(1))?u=u.clientPlaybackNonce:(g.rQ(Error("Video data is null.")),u=null);return u}); J.AD_MT=IL(function(){if(I!=null)var u=I;else{var w=b;F.J().S("html5_ssap_use_cpn_to_get_time")||(w=void 0);if(F.J().S("enable_h5_shorts_ad_fill_ad_mt_macro")||F.J().S("enable_desktop_discovery_pings_ad_mt_macro")||g.O7(F.J())){var M=F.getPresentingPlayerType(!0),q;u=((q=F.getVideoData(M))==null?0:q.isAd())?C4m(F,M,w):0}else u=C4m(F,2,w)}return Math.round(Math.max(0,u*1E3)).toString()}); J.MT=IL(function(){return Math.round(Math.max(0,F.getCurrentTime(1,!1)*1E3)).toString()}); J.P_H=IL(function(){return F.mG().lk().height.toString()}); J.P_W=IL(function(){return F.mG().lk().width.toString()}); J.PV_H=IL(function(){return F.mG().getVideoContentRect().height.toString()}); J.PV_W=IL(function(){return F.mG().getVideoContentRect().width.toString()})}; S84=function(F){F.CONN=IL(vj("0"));F.WT=IL(function(){return Date.now().toString()})}; C4m=function(F,J,b){return b!==void 0?F.getCurrentTime(J,!1,b):F.getCurrentTime(J,!1)}; XD4=function(){}; QvJ=function(F,J,b,I,u){var w,M,q,v,a,e,K,p,m,y,f,d,G;g.S(function(P){switch(P.C){case 1:w=!!J.scrubReferrer;M=g.TM(J.baseUrl,$A3(b,w,I));q={};if(!J.headers){P.gD(2);break}v=F.Z();if(!v.C){a=v.getValue();P.gD(3);break}return g.T(P,v.C,4);case 4:a=P.U;case 3:e=a;K=g.N(J.headers);for(p=K.next();!p.done;p=K.next())switch(m=p.value,m.headerType){case "VISITOR_ID":g.cT("VISITOR_DATA")&&(q["X-Goog-Visitor-Id"]=g.cT("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.cT("EOM_VISITOR_DATA")&&(q["X-Goog-EOM-Visitor-Id"]= g.cT("EOM_VISITOR_DATA"));break;case "USER_AUTH":e&&(q.Authorization="Bearer "+e);break;case "PLUS_PAGE_ID":(y=F.D())&&(q["X-Goog-PageId"]=y);break;case "AUTH_USER":f=F.C();!e&&f&&(q["X-Goog-AuthUser"]=f);break;case "DATASYNC_ID":if(d=void 0,(d=F.T())==null?0:d.pW("enable_datasync_id_header_in_web_vss_pings"))G=F.U(),w$(M)&&g.cT("LOGGED_IN")&&G&&(q["X-YouTube-DataSync-Id"]=G)}"X-Goog-EOM-Visitor-Id"in q&&"X-Goog-Visitor-Id"in q&&delete q["X-Goog-Visitor-Id"];case 2:g.Xp(M,void 0,w,Object.keys(q).length!== 0?q:void 0,"",!0,u),g.N4(P)}})}; RVo=function(F,J,b,I,u){this.Z=F;this.D=J;this.C=b;this.U=I;this.T=u}; DAa=function(F,J){this.C=F;this.uR=J}; uY=function(F,J,b,I,u,w,M){var q=q===void 0?new RVo(function(){var v=F.J(),a=F.getVideoData(1);return g.LH(v,a?g.ks(a):"")},function(){return F.J().pageId},function(){return F.J().Gj},function(){var v; return(v=F.J().datasyncId)!=null?v:""},function(){return F.J().experiments}):q; this.G=F;this.U=J;this.X4=b;this.QG=I;this.S3=u;this.uR=w;this.Zl=M;this.Z=q;this.hM=null;this.C=new Map;this.T=new DAa(q,this.uR)}; ONz=function(F,J,b,I,u){var w=dw(F.U.get(),b);w?(b=Vp(F,kHY(w),w,void 0,void 0,I),J.hasOwnProperty("baseUrl")?F.Z.send(J,b):F.T.send(J,b,{},u)):q_("Trying to ping from an unknown layout",void 0,void 0,{layoutId:b})}; yr7=function(F,J,b,I,u,w){I=I===void 0?[]:I;var M=dw(F.U.get(),J);if(M){var q=F.X4.get().RQ(J,b),v=Vp(F,kHY(M),M,u,w);I.forEach(function(a,e){a.baseUrl&&(F.T.send(a.baseUrl,v,q,a.attributionSrcMode),a.serializedAdPingMetadata&&F.S3.A3("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,M,new tla(a,e),void 0,void 0,M.adLayoutLoggingData))})}else q_("Trying to track from an unknown layout.",void 0,void 0,{layoutId:J, trackingType:b})}; l6=function(F,J){F.G.sendVideoStatsEngageEvent(J,void 0,2)}; tV=function(F,J){g.AY("adsClientStateChange",J)}; owz=function(F,J){F.C.has(J.qe())?q_("Trying to register an existing AdErrorInfoSupplier."):F.C.set(J.qe(),J)}; hVG=function(F,J){F.C.delete(J.qe())||q_("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; Lx=function(F,J,b){typeof b==="string"?F.G.getVideoData(1).fQ(J,b):F.G.getVideoData(1).UQ(J,b)}; kHY=function(F){var J=uL(F.clientMetadata,"metadata_type_ad_placement_config");F=uL(F.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:J,Jb:F}}; Vp=function(F,J,b,I,u,w){var M=b?cTC(F):{},q=b?UA7(F,b.layoutId):{},v=xAJ(F),a,e=u!=null?u:(a=gM(F.QG.get(),2))==null?void 0:a.clientPlaybackNonce;F.G.J().S("enable_player_logging_lr_home_infeed_ads")&&!e&&(e=gM(F.QG.get(),1).clientPlaybackNonce);u=void 0;if(b){var K;if((K=F.Zl.C.get(b.layoutId))==null?0:K.Tf)u=b.layoutId}K={};F=Object.assign({},svC(F.G,u,I),Y8C(J.adPlacementConfig,(b==null?void 0:b.renderingContent)!==void 0),q,M,v,(K.FINAL=IL(function(){return"1"}),K.AD_CPN=IL(function(){return e|| ""}),K)); (b==null?void 0:b.renderingContent)!==void 0||(F.SLOT_POS=IL(function(){return(J.Jb||0).toString()})); b={};w=Object.assign({},F,w);F=g.N(Object.values(nwY));for(I=F.next();!I.done;I=F.next())I=I.value,M=w[I],M!=null&&M.toString()!=null&&(b[I]=M.toString());return b}; cTC=function(F){var J={},b,I=(b=F.hM)==null?void 0:b.EJ/1E3;I!=null&&(J.SURVEY_ELAPSED_MS=IL(function(){return Math.round(I*1E3).toString()})); J.SURVEY_LOCAL_TIME_EPOCH_S=IL(function(){return Math.round(Date.now()/1E3).toString()}); return J}; UA7=function(F,J){F=F.C.get(J);if(!F)return{};F=F.Vw();if(!F)return{};J={};return J.YT_ERROR_CODE=F.UE.toString(),J.ERRORCODE=F.a$.toString(),J.ERROR_MSG=F.errorMessage,J}; xAJ=function(F){var J={},b=F.G.getVideoData(1);J.ASR=IL(function(){var I;return(I=b==null?void 0:b.cE)!=null?I:null}); J.EI=IL(function(){var I;return(I=b==null?void 0:b.eventId)!=null?I:null}); return J}; w6=function(F,J,b){g.R.call(this);this.G=F;this.CP=J;this.uR=b;this.listeners=[];this.D5=null;this.r4=new Map;J=new g.s5(this);g.k(this,J);J.B(F,"videodatachange",this.PxG);J.B(F,"serverstitchedvideochange",this.JFN);this.Hm=gM(this)}; gM=function(F,J){var b=F.G.getVideoData(J);return b?F.b_(b,J||F.G.getPresentingPlayerType(!0)):null}; tH7=function(F,J,b){var I=F.b_(J,b);F.Hm=I;F.listeners.forEach(function(u){u.CZ(I)})}; ZNz=function(F){switch(F){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}}; Mi=function(F,J,b){g.R.call(this);this.G=F;this.QG=J;this.uR=b;this.listeners=[];this.xN=[];this.C=function(){q_("Called 'doUnlockPreroll' before it's initialized.")}; J=new j9(this);b=new g.s5(this);g.k(this,b);g.k(this,J);J.B(F,"progresssync",this.G$G);J.B(F,"presentingplayerstatechange",this.CC_);J.B(F,"fullscreentoggled",this.onFullscreenToggled);J.B(F,"onVolumeChange",this.onVolumeChange);J.B(F,"minimized",this.Kv);J.B(F,"overlayvisibilitychange",this.bq);J.B(F,"shortsadswipe",this.c9);J.B(F,"resize",this.mO);b.B(F,g.u6("appad"),this.nF)}; A7=function(F){Zu(F.uR.get())||F.C()}; HNa=function(F,J){F.xN=F.xN.filter(function(b){return b!==J})}; qi=function(F,J,b){return F.getCurrentTimeSec(J,b)}; LlC=function(F,J){var b;J=(b=F.QG.get().r4.get(J))!=null?b:null;if(J===null)return q_("Expected ad video start time on playback timeline"),0;F=F.G.getCurrentTime(2,!0);return F0){var w=J.end.toString();u.forEach(function(M){(M=M.config&&M.config.adPlacementConfig)&&M.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&M.adTimeOffset&&M.adTimeOffset.offsetEndMilliseconds==="-1"&&M.adTimeOffset.offsetEndMilliseconds!==w&&(M.adTimeOffset.offsetEndMilliseconds=w)}); I.map(function(M){return g.O(M,sx)}).forEach(function(M){var q; (M=M==null?void 0:(q=M.slotEntryTrigger)==null?void 0:q.mediaTimeRangeTrigger)&&M.offsetEndMilliseconds==="-1"&&(M.offsetEndMilliseconds=w)})}return{GX:u, adSlots:I,Hp:!1,ssdaiAdsConfig:F.ssdaiAdsConfig}}; pR=function(F){g.R.call(this);this.G=F;this.listeners=[];this.C=new j9(this);g.k(this,this.C);this.C.B(this.G,"aduxclicked",this.onAdUxClicked);this.C.B(this.G,"aduxmouseover",this.C9);this.C.B(this.G,"aduxmouseout",this.rz);this.C.B(this.G,"muteadaccepted",this.vmz)}; uOC=function(F,J,b){J=g.EG(J,function(I){return new X$C(I,b,I.id)}); F.G.jE("onAdUxUpdate",J)}; g6=function(F,J){F=g.N(F.listeners);for(var b=F.next();!b.done;b=F.next())J(b.value)}; mJ=function(F,J){this.U=F;this.T=J===void 0?!1:J;this.C={}}; wwo=function(F,J){var b=F.startSecs+F.Bg;b=b<=0?null:b;if(b===null)return null;switch(F.event){case "start":case "continue":case "stop":break;case "predictStart":if(J)break;return null;default:return null}J=Math.max(F.startSecs,0);return{US:new f6(J,b),tER:new YZ(J,b-J,F.context,F.identifier,F.event,F.C)}}; MC_=function(){this.C=[]}; gkv=function(F,J,b){var I=g.AL(F.C,J);if(I>=0)return J;J=-I-1;return J>=F.C.length||F.C[J]>b?null:F.C[J]}; ya=function(F,J,b){g.R.call(this);this.G=F;this.uR=J;this.EQ=b;this.listeners=[];this.Z=!1;this.KX=[];this.C=null;this.D=new mJ(this,lE_(J.get()));this.T=new MC_;this.U=null}; A4k=function(F,J){F.KX.push(J);for(var b=!1,I=g.N(F.listeners),u=I.next();!u.done;u=I.next())b=u.value.FB(J)||b;F.Z=b;Ew_(F.uR.get())&&Lx(F.EQ.get(),"onci","cpi."+J.identifier+";cpe."+J.event+";cps."+J.startSecs+";cbi."+b)}; vH_=function(F,J){tV(F.EQ.get(),{cuepointTrigger:{event:q2G(J.event),cuepointId:J.identifier,totalCueDurationMs:J.Bg*1E3,playheadTimeMs:J.C,cueStartTimeMs:J.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:F.G.getVideoData(1).clientPlaybackNonce}})}; q2G=function(F){switch(F){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 wU(F,"Unexpected cuepoint event")}}; iY=function(F){this.G=F}; a2C=function(F,J){F.G.cueVideoByPlayerVars(J,2)}; z7=function(F){this.G=F}; Ni=function(F){this.G=F}; ejm=function(F){switch(F){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:wU(F,"unknown transitionReason")}}; Kma=function(F){this.G=F}; pwG=function(F,J,b,I,u){g.R.call(this);var w=this,M=Ri(function(){return new Op(w.uR)}); g.k(this,M);var q=Ri(function(){return new hc(M,w.uR)}); g.k(this,q);var v=Ri(function(){return new fm}); g.k(this,v);var a=Ri(function(){return new N0(F)}); g.k(this,a);var e=Ri(function(){return new cN(M,q,w.uR)}); g.k(this,e);var K=Ri(function(){return new ZX}); g.k(this,K);this.sI=Ri(function(){return new pR(J)}); g.k(this,this.sI);this.D7=Ri(function(){return new kX(u)}); g.k(this,this.D7);this.qI=Ri(function(){return new UK(J)}); g.k(this,this.qI);this.h_=Ri(function(){return new xN(J)}); g.k(this,this.h_);this.NI=Ri(function(){return new iY(J)}); g.k(this,this.NI);this.py=Ri(function(){return new ne(J)}); g.k(this,this.py);this.uR=Ri(function(){return new tU(J)}); g.k(this,this.uR);var p=Ri(function(){return new KR(I)}); g.k(this,p);var m=Ri(function(){return new KT(w.uR)}); g.k(this,m);this.yJ=Ri(function(){return new z7(J)}); g.k(this,this.yJ);this.Gf=Ri(function(){return new hj}); g.k(this,this.Gf);this.QG=Ri(function(){return new w6(J,K,w.uR)}); g.k(this,this.QG);var y=hU({QG:this.QG,uR:this.uR,P1:m}),f=y.context,d=y.Zl;this.S3=y.S3;this.cV=Ri(function(){return new ya(J,w.uR,w.EQ)}); g.k(this,this.cV);this.RC=Ri(function(){return new Ni(J)}); g.k(this,this.RC);this.OQ=Ri(function(){return new Mi(J,w.QG,w.uR)}); g.k(this,this.OQ);y=Ri(function(){return new ey(M,e,q,w.uR,m,"SLOT_TYPE_ABOVE_FEED",w.OQ,w.M_,w.oH)}); g.k(this,y);this.p7=Ri(function(){return new cq(w.uR)}); this.X4=Ri(function(){return new Le(w.OQ,J,w.uR)}); g.k(this,this.X4);this.EQ=Ri(function(){return new uY(J,v,w.X4,w.QG,w.S3,w.uR,d)}); g.k(this,this.EQ);this.a5=new iS(y6,lY,function(P,r,Q,D){return Ux(q.get(),P,r,Q,D)},a,e,q,m,this.uR,this.QG); g.k(this,this.a5);this.Dg=new z2(a,y,b,this.uR,F,this.QG,this.OQ,this.qI);g.k(this,this.Dg);var G=new ch(J,this.Dg,this.OQ,this.QG,this.cV);this.FW=Ri(function(){return G}); this.wM=G;this.M_=new gw(a,e,this.FW,this.cV,this.OQ,this.uR,this.EQ,this.RC);g.k(this,this.M_);this.Ld=new lS(a,e,this.h_,this.FW,f);g.k(this,this.Ld);this.Es=new S5(this.uR,a,e,y,this.QG,this.Ld,b);g.k(this,this.Es);this.WS=Ri(function(){return new er(p,q,m,w.uR,w.EQ,w.OQ,w.RC)}); g.k(this,this.WS);this.Oz=Ri(function(){return new Kd}); g.k(this,this.Oz);this.fv=new PN(F,this.sI,this.uR);g.k(this,this.fv);this.pk=new BN(F);g.k(this,this.pk);this.E8=new T2(F);g.k(this,this.E8);this.NE=new Sy(F,this.FW,f);g.k(this,this.NE);this.bx=new sp(F,this.h_,this.OQ,this.QG,f);g.k(this,this.bx);this.KB=new Yf(F,this.QG);g.k(this,this.KB);this.oH=new XZ(F,this.cV,this.OQ,this.EQ,this.FW);g.k(this,this.oH);this.ix=new $f(F);g.k(this,this.ix);this.z$=new kf(F);g.k(this,this.z$);this.Y0=new Cm(F);g.k(this,this.Y0);this.rW=new DX(F);g.k(this,this.rW); this.z$=new kf(F);g.k(this,this.z$);this.g0=Ri(function(){return new Ep}); g.k(this,this.g0);this.bF=Ri(function(){return new jy(w.OQ)}); g.k(this,this.bF);this.B4=Ri(function(){return new CA_(w.sI,w.EQ,F,v,w.X4)}); g.k(this,this.B4);this.gZ=Ri(function(){return new ts(w.Es,a,M)}); g.k(this,this.gZ);this.lF=Ri(function(){return new Ld(w.uR,w.EQ,w.ix,w.X4)}); g.k(this,this.lF);this.n4=Ri(function(){return new Mh(F,w.z$,w.ix,w.QG,w.RC,w.OQ,w.EQ,K,w.cV,w.X4,w.p7,w.NI,w.h_,w.qI,w.py,w.D7,w.yJ,w.uR,v,f,d)}); g.k(this,this.n4);this.WR=Ri(function(){return new Zro(w.OQ,w.EQ,w.D7,w.uR,w.X4,w.QG)}); g.k(this,this.WR);this.Gh=Ri(function(){return new Qr7(w.sI,w.OQ,w.EQ,v,w.X4,w.E8,w.rW,w.D7,w.uR,b)}); g.k(this,this.Gh);this.u9=Ri(function(){return new XiJ(w.sI,w.EQ,v)}); g.k(this,this.u9);this.cI=new eU(F,this.Gf,M);g.k(this,this.cI);this.JX={xG:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Es],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.M_],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.a5],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Dg],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ld]]),Y6:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.WS],["SLOT_TYPE_ABOVE_FEED",this.Oz],["SLOT_TYPE_FORECASTING",this.Oz], ["SLOT_TYPE_IN_PLAYER",this.Oz],["SLOT_TYPE_PLAYER_BYTES",this.Oz],["SLOT_TYPE_PLAYER_UNDERLAY",this.Oz],["SLOT_TYPE_PLAYBACK_TRACKING",this.Oz],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Oz]]),Rn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.fv],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.fv],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.pk],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.pk],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.pk],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.pk],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.pk],["TRIGGER_TYPE_SLOT_ID_EXITED",this.pk],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.pk],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.pk],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.pk],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.pk],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.pk],["TRIGGER_TYPE_CLOSE_REQUESTED",this.E8],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.NE],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.bx],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.bx],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.bx],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.bx],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.bx],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.bx],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.bx],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.KB],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.KB],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.ix],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.NE],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Y0],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.rW],["TRIGGER_TYPE_AD_BREAK_STARTED",this.z$],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.oH],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.oH],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.oH],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.oH],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.oH]]),ud:new Map([["SLOT_TYPE_ABOVE_FEED",this.g0], ["SLOT_TYPE_AD_BREAK_REQUEST",this.g0],["SLOT_TYPE_FORECASTING",this.g0],["SLOT_TYPE_IN_PLAYER",this.g0],["SLOT_TYPE_PLAYER_BYTES",this.bF],["SLOT_TYPE_PLAYER_UNDERLAY",this.g0],["SLOT_TYPE_PLAYBACK_TRACKING",this.g0],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.g0]]),i4:new Map([["SLOT_TYPE_ABOVE_FEED",this.B4],["SLOT_TYPE_AD_BREAK_REQUEST",this.gZ],["SLOT_TYPE_FORECASTING",this.lF],["SLOT_TYPE_PLAYER_BYTES",this.n4],["SLOT_TYPE_PLAYBACK_TRACKING",this.WR],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.WR],["SLOT_TYPE_IN_PLAYER",this.Gh],["SLOT_TYPE_PLAYER_UNDERLAY",this.u9]])};this.listeners=[v.get()];this.Zd={Es:this.Es,SB:this.uR.get(),vN:this.D7.get(),p_:this.OQ.get(),Dg:this.Dg,Xg:M.get(),lV:this.Gf.get(),Rk:this.fv,pD:v.get(),RP:this.QG.get()}}; gH3=function(F,J,b,I,u){g.R.call(this);var w=this,M=Ri(function(){return new Op(w.uR)}); g.k(this,M);var q=Ri(function(){return new hc(M,w.uR)}); g.k(this,q);var v=Ri(function(){return new fm}); g.k(this,v);var a=Ri(function(){return new N0(F)}); g.k(this,a);var e=Ri(function(){return new cN(M,q,w.uR)}); g.k(this,e);var K=Ri(function(){return new ZX}); g.k(this,K);this.sI=Ri(function(){return new pR(J)}); g.k(this,this.sI);this.D7=Ri(function(){return new kX(u)}); g.k(this,this.D7);this.qI=Ri(function(){return new UK(J)}); g.k(this,this.qI);this.h_=Ri(function(){return new xN(J)}); g.k(this,this.h_);this.NI=Ri(function(){return new iY(J)}); g.k(this,this.NI);this.py=Ri(function(){return new ne(J)}); g.k(this,this.py);this.uR=Ri(function(){return new tU(J)}); g.k(this,this.uR);var p=Ri(function(){return new KR(I)}); g.k(this,p);var m=Ri(function(){return new KT(w.uR)}); g.k(this,m);var y=Ri(function(){return new ey(M,e,q,w.uR,m,null,null,w.M_,w.oH)}); g.k(this,y);this.yJ=Ri(function(){return new z7(J)}); g.k(this,this.yJ);this.Gf=Ri(function(){return new hj}); g.k(this,this.Gf);this.QG=Ri(function(){return new w6(J,K,w.uR)}); g.k(this,this.QG);var f=hU({QG:this.QG,uR:this.uR,P1:m}),d=f.context,G=f.Zl;this.S3=f.S3;this.cV=Ri(function(){return new ya(J,w.uR,w.EQ)}); this.OQ=Ri(function(){return new Mi(J,w.QG,w.uR)}); g.k(this,this.OQ);this.X4=Ri(function(){return new Le(w.OQ,J,w.uR)}); g.k(this,this.X4);this.EQ=Ri(function(){return new uY(J,v,w.X4,w.QG,w.S3,w.uR,G)}); g.k(this,this.EQ);this.p7=Ri(function(){return new cq(w.uR)}); g.k(this,this.p7);this.a5=new iS(y6,lY,function(r,Q,D,t){return Ux(q.get(),r,Q,D,t)},a,e,q,m,this.uR,this.QG); g.k(this,this.a5);this.Dg=new z2(a,y,b,this.uR,F,this.QG,this.OQ,this.qI);g.k(this,this.Dg);var P=new ch(J,this.Dg,this.OQ,this.QG,this.cV);this.FW=Ri(function(){return P}); this.wM=P;this.M_=new gw(a,e,this.FW,this.cV,this.OQ,this.uR,this.EQ);g.k(this,this.M_);this.Ld=new lS(a,e,this.h_,this.FW,d);g.k(this,this.Ld);this.Es=new S5(this.uR,a,e,y,this.QG,this.Ld,b);g.k(this,this.Es);this.WS=Ri(function(){return new er(p,q,m,w.uR,w.EQ,w.OQ)}); g.k(this,this.WS);this.Oz=Ri(function(){return new Kd}); g.k(this,this.Oz);this.fv=new PN(F,this.sI,this.uR);g.k(this,this.fv);this.pk=new BN(F);g.k(this,this.pk);this.E8=new T2(F);g.k(this,this.E8);this.NE=new Sy(F,this.FW,d);g.k(this,this.NE);this.bx=new sp(F,this.h_,this.OQ,this.QG,d);g.k(this,this.bx);this.ix=new $f(F);g.k(this,this.ix);this.Y0=new Cm(F);g.k(this,this.Y0);this.rW=new DX(F);g.k(this,this.rW);this.RC=Ri(function(){return new Ni(J)}); g.k(this,this.RC);this.z$=new kf(F);g.k(this,this.z$);this.oH=new XZ(F,this.cV,this.OQ,this.EQ,this.FW);g.k(this,this.oH);this.g0=Ri(function(){return new Ep}); g.k(this,this.g0);this.bF=Ri(function(){return new jy(w.OQ)}); g.k(this,this.bF);this.gZ=Ri(function(){return new ts(w.Es,a,M)}); g.k(this,this.gZ);this.lF=Ri(function(){return new Ld(w.uR,w.EQ,w.ix,w.X4)}); g.k(this,this.lF);this.Gh=Ri(function(){return new RJG(w.sI,w.OQ,w.EQ,v,w.X4,w.E8,w.rW,w.D7,w.uR,b)}); g.k(this,this.Gh);this.n4=Ri(function(){return new Ab(F,w.z$,w.ix,w.EQ,w.X4,w.p7,w.NI,w.QG,w.OQ,w.h_,w.qI,w.py,w.D7,w.yJ,w.uR,w.RC,d,G)}); g.k(this,this.n4);this.cI=new eU(F,this.Gf,M);g.k(this,this.cI);this.JX={xG:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Es],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.M_],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.a5],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Dg],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ld]]),Y6:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.WS],["SLOT_TYPE_FORECASTING",this.Oz],["SLOT_TYPE_IN_PLAYER",this.Oz], ["SLOT_TYPE_PLAYER_BYTES",this.Oz]]),Rn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.fv],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.pk],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.pk],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.pk],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.pk],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.pk],["TRIGGER_TYPE_SLOT_ID_EXITED",this.pk],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.pk],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.pk],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.pk], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.pk],["TRIGGER_TYPE_CLOSE_REQUESTED",this.E8],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.NE],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.bx],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.bx],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.bx],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.ix],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.NE],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Y0],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.rW],["TRIGGER_TYPE_AD_BREAK_STARTED",this.z$],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.oH],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.oH],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.oH],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.oH],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.oH]]),ud:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.g0],["SLOT_TYPE_FORECASTING",this.g0],["SLOT_TYPE_IN_PLAYER",this.g0],["SLOT_TYPE_PLAYER_BYTES",this.bF]]), i4:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.gZ],["SLOT_TYPE_FORECASTING",this.lF],["SLOT_TYPE_IN_PLAYER",this.Gh],["SLOT_TYPE_PLAYER_BYTES",this.n4]])};this.listeners=[v.get()];this.Zd={Es:this.Es,SB:this.uR.get(),vN:this.D7.get(),p_:this.OQ.get(),Dg:this.Dg,Xg:M.get(),lV:this.Gf.get(),Rk:this.fv,pD:v.get(),RP:this.QG.get()}}; moG=function(F,J,b,I,u){g.R.call(this);var w=this,M=Ri(function(){return new Op(w.uR)}); g.k(this,M);var q=Ri(function(){return new hc(M,w.uR)}); g.k(this,q);var v=Ri(function(){return new fm}); g.k(this,v);var a=Ri(function(){return new N0(F)}); g.k(this,a);var e=Ri(function(){return new cN(M,q,w.uR)}); g.k(this,e);var K=Ri(function(){return new ZX}); g.k(this,K);this.sI=Ri(function(){return new pR(J)}); g.k(this,this.sI);this.D7=Ri(function(){return new kX(u)}); g.k(this,this.D7);this.qI=Ri(function(){return new UK(J)}); g.k(this,this.qI);this.h_=Ri(function(){return new xN(J)}); g.k(this,this.h_);this.NI=Ri(function(){return new iY(J)}); g.k(this,this.NI);this.py=Ri(function(){return new ne(J)}); g.k(this,this.py);this.uR=Ri(function(){return new tU(J)}); g.k(this,this.uR);var p=Ri(function(){return new KR(I)}); g.k(this,p);var m=Ri(function(){return new KT(w.uR)}); g.k(this,m);var y=Ri(function(){return new ey(M,e,q,w.uR,m,null,null,null,null)}); g.k(this,y);this.yJ=Ri(function(){return new z7(J)}); g.k(this,this.yJ);this.QG=Ri(function(){return new w6(J,K,w.uR)}); g.k(this,this.QG);var f=hU({QG:this.QG,uR:this.uR,P1:m}),d=f.context,G=f.Zl;this.S3=f.S3;this.OQ=Ri(function(){return new Mi(J,w.QG,w.uR)}); g.k(this,this.OQ);this.X4=Ri(function(){return new Le(w.OQ,J,w.uR)}); g.k(this,this.X4);this.EQ=Ri(function(){return new uY(J,v,w.X4,w.QG,w.S3,w.uR,G)}); g.k(this,this.EQ);this.p7=Ri(function(){return new cq(w.uR)}); g.k(this,this.p7);this.a5=new iS(y6,lY,function(r,Q,D,t){return Ux(q.get(),r,Q,D,t)},a,e,q,m,this.uR,this.QG); g.k(this,this.a5);this.Dg=new z2(a,y,b,this.uR,F,this.QG,this.OQ,this.qI);g.k(this,this.Dg);var P=new ch(J,this.Dg,this.OQ,this.QG);this.FW=Ri(function(){return P}); this.wM=P;this.Ld=new lS(a,e,this.h_,this.FW,d);g.k(this,this.Ld);this.Es=new S5(this.uR,a,e,y,this.QG,this.Ld,b);g.k(this,this.Es);this.WS=Ri(function(){return new er(p,q,m,w.uR,w.EQ,w.OQ)}); g.k(this,this.WS);this.Oz=Ri(function(){return new Kd}); g.k(this,this.Oz);this.fv=new PN(F,this.sI,this.uR);g.k(this,this.fv);this.pk=new BN(F);g.k(this,this.pk);this.NE=new Sy(F,this.FW,d);g.k(this,this.NE);this.bx=new sp(F,this.h_,this.OQ,this.QG,d);g.k(this,this.bx);this.ix=new $f(F);g.k(this,this.ix);this.Y0=new Cm(F);g.k(this,this.Y0);this.RC=Ri(function(){return new Ni(J)}); g.k(this,this.RC);this.z$=new kf(F);g.k(this,this.z$);this.g0=Ri(function(){return new Ep}); g.k(this,this.g0);this.bF=Ri(function(){return new jy(w.OQ)}); g.k(this,this.bF);this.gZ=Ri(function(){return new ts(w.Es,a,M)}); g.k(this,this.gZ);this.lF=Ri(function(){return new Ld(w.uR,w.EQ,w.ix,w.X4)}); g.k(this,this.lF);this.CE=Ri(function(){return new t0o(w.sI,w.OQ,w.EQ,v,b,w.uR)}); g.k(this,this.CE);this.n4=Ri(function(){return new Ab(F,w.z$,w.ix,w.EQ,w.X4,w.p7,w.NI,w.QG,w.OQ,w.h_,w.qI,w.py,w.D7,w.yJ,w.uR,w.RC,d,G)}); g.k(this,this.n4);this.JX={xG:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Es],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.a5],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Dg],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ld]]),Y6:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.WS],["SLOT_TYPE_FORECASTING",this.Oz],["SLOT_TYPE_IN_PLAYER",this.Oz],["SLOT_TYPE_PLAYER_BYTES",this.Oz]]),Rn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.fv],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.pk],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.pk],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.pk],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.pk],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.pk],["TRIGGER_TYPE_SLOT_ID_EXITED",this.pk],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.pk],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.pk],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.pk],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.NE],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.bx],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.bx],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.ix],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.NE],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Y0],["TRIGGER_TYPE_AD_BREAK_STARTED",this.z$]]),ud:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.g0],["SLOT_TYPE_ABOVE_FEED",this.g0],["SLOT_TYPE_FORECASTING",this.g0],["SLOT_TYPE_IN_PLAYER",this.g0],["SLOT_TYPE_PLAYER_BYTES",this.bF]]),i4:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.gZ],["SLOT_TYPE_FORECASTING",this.lF],["SLOT_TYPE_IN_PLAYER", this.CE],["SLOT_TYPE_PLAYER_BYTES",this.n4]])};this.listeners=[v.get()];this.Zd={Es:this.Es,SB:this.uR.get(),vN:this.D7.get(),p_:this.OQ.get(),Dg:this.Dg,Xg:M.get(),lV:null,Rk:this.fv,pD:v.get(),RP:this.QG.get()}}; y4C=function(F,J,b,I,u){g.R.call(this);var w=this,M=Ri(function(){return new Op(w.uR)}); g.k(this,M);var q=Ri(function(){return new hc(M,w.uR)}); g.k(this,q);var v=Ri(function(){return new fm}); g.k(this,v);var a=Ri(function(){return new N0(F)}); g.k(this,a);var e=Ri(function(){return new cN(M,q,w.uR)}); g.k(this,e);var K=Ri(function(){return new ZX}); g.k(this,K);this.Ma=Ri(function(){return new Kma(J)}); g.k(this,this.Ma);this.sI=Ri(function(){return new pR(J)}); g.k(this,this.sI);this.D7=Ri(function(){return new kX(u)}); g.k(this,this.D7);this.qI=Ri(function(){return new UK(J)}); g.k(this,this.qI);this.h_=Ri(function(){return new xN(J)}); g.k(this,this.h_);this.NI=Ri(function(){return new iY(J)}); g.k(this,this.NI);this.py=Ri(function(){return new ne(J)}); g.k(this,this.py);this.uR=Ri(function(){return new tU(J)}); g.k(this,this.uR);var p=Ri(function(){return new KR(I)}); g.k(this,p);var m=Ri(function(){return new KT(w.uR)}); g.k(this,m);var y=Ri(function(){return new ey(M,e,q,w.uR,m,null,null,null,null)}); g.k(this,y);this.yJ=Ri(function(){return new z7(J)}); g.k(this,this.yJ);this.QG=Ri(function(){return new w6(J,K,w.uR)}); g.k(this,this.QG);var f=hU({QG:this.QG,uR:this.uR,P1:m}),d=f.context,G=f.Zl;this.S3=f.S3;this.OQ=Ri(function(){return new Mi(J,w.QG,w.uR)}); g.k(this,this.OQ);this.X4=Ri(function(){return new Le(w.OQ,J,w.uR)}); g.k(this,this.X4);this.EQ=Ri(function(){return new uY(J,v,w.X4,w.QG,w.S3,w.uR,G)}); g.k(this,this.EQ);this.p7=Ri(function(){return new cq(w.uR)}); g.k(this,this.p7);this.a5=new iS(EYa,lY,function(r,Q,D,t){return cp3(q.get(),r,Q,D,t)},a,e,q,m,this.uR,this.QG); g.k(this,this.a5);this.Dg=new z2(a,y,b,this.uR,F,this.QG,this.OQ,this.qI);g.k(this,this.Dg);var P=new ch(J,this.Dg,this.OQ,this.QG);this.FW=Ri(function(){return P}); this.wM=P;this.Ld=new lS(a,e,this.h_,this.FW,d);g.k(this,this.Ld);this.Es=new S5(this.uR,a,e,y,this.QG,this.Ld,b);g.k(this,this.Es);this.WS=Ri(function(){return new er(p,q,m,w.uR,w.EQ,w.OQ)}); g.k(this,this.WS);this.Oz=Ri(function(){return new Kd}); g.k(this,this.Oz);this.fv=new PN(F,this.sI,this.uR);g.k(this,this.fv);this.pk=new BN(F);g.k(this,this.pk);this.NE=new Sy(F,this.FW,d);g.k(this,this.NE);this.bx=new sp(F,this.h_,this.OQ,this.QG,d);g.k(this,this.bx);this.ix=new $f(F);g.k(this,this.ix);this.Y0=new Cm(F);g.k(this,this.Y0);this.RC=Ri(function(){return new Ni(J)}); g.k(this,this.RC);this.z$=new kf(F);g.k(this,this.z$);this.g0=Ri(function(){return new Ep}); g.k(this,this.g0);this.bF=Ri(function(){return new jy(w.OQ)}); g.k(this,this.bF);this.gZ=Ri(function(){return new ts(w.Es,a,M)}); g.k(this,this.gZ);this.lF=Ri(function(){return new Ld(w.uR,w.EQ,w.ix,w.X4)}); g.k(this,this.lF);this.n4=Ri(function(){return new Ab(F,w.z$,w.ix,w.EQ,w.X4,w.p7,w.NI,w.QG,w.OQ,w.h_,w.qI,w.py,w.D7,w.yJ,w.uR,w.RC,d,G)}); g.k(this,this.n4);this.zw=Ri(function(){return new kp4(w.sI,w.OQ,w.EQ,v,w.Ma,b,w.QG)}); g.k(this,this.zw);this.JX={xG:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Es],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.a5],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Dg],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ld]]),Y6:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.WS],["SLOT_TYPE_FORECASTING",this.Oz],["SLOT_TYPE_IN_PLAYER",this.Oz],["SLOT_TYPE_PLAYER_BYTES",this.Oz]]),Rn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.fv],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.pk],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.pk],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.pk],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.pk],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.pk],["TRIGGER_TYPE_SLOT_ID_EXITED",this.pk],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.pk],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.pk],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.pk],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.NE],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.bx],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.bx],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.ix],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.NE],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Y0],["TRIGGER_TYPE_AD_BREAK_STARTED",this.z$]]),ud:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.g0],["SLOT_TYPE_FORECASTING",this.g0],["SLOT_TYPE_IN_PLAYER",this.g0],["SLOT_TYPE_PLAYER_BYTES",this.bF]]),i4:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.gZ],["SLOT_TYPE_FORECASTING",this.lF],["SLOT_TYPE_IN_PLAYER",this.zw],["SLOT_TYPE_PLAYER_BYTES", this.n4]])};this.listeners=[v.get()];this.Zd={Es:this.Es,SB:this.uR.get(),vN:this.D7.get(),p_:this.OQ.get(),Dg:this.Dg,Xg:M.get(),lV:null,Rk:this.fv,pD:v.get(),RP:this.QG.get()}}; iy4=function(F,J,b,I,u){g.R.call(this);var w=this,M=Ri(function(){return new Op(w.uR)}); g.k(this,M);var q=Ri(function(){return new hc(M,w.uR)}); g.k(this,q);var v=Ri(function(){return new fm}); g.k(this,v);var a=Ri(function(){return new N0(F)}); g.k(this,a);var e=Ri(function(){return new cN(M,q,w.uR)}); g.k(this,e);var K=Ri(function(){return new ZX}); g.k(this,K);this.Ma=Ri(function(){return new Kma(J)}); g.k(this,this.Ma);this.sI=Ri(function(){return new pR(J)}); g.k(this,this.sI);this.D7=Ri(function(){return new kX(u)}); g.k(this,this.D7);this.qI=Ri(function(){return new UK(J)}); g.k(this,this.qI);this.h_=Ri(function(){return new xN(J)}); g.k(this,this.h_);this.NI=Ri(function(){return new iY(J)}); g.k(this,this.NI);this.py=Ri(function(){return new ne(J)}); g.k(this,this.py);this.uR=Ri(function(){return new tU(J)}); g.k(this,this.uR);var p=Ri(function(){return new KR(I)}); g.k(this,p);var m=Ri(function(){return new KT(w.uR)}); g.k(this,m);this.yJ=Ri(function(){return new z7(J)}); g.k(this,this.yJ);this.QG=Ri(function(){return new w6(J,K,w.uR)}); g.k(this,this.QG);var y=hU({QG:this.QG,uR:this.uR,P1:m}),f=y.context,d=y.Zl;this.S3=y.S3;this.cV=Ri(function(){return new ya(J,w.uR,w.EQ)}); g.k(this,this.cV);this.RC=Ri(function(){return new Ni(J)}); g.k(this,this.RC);this.OQ=Ri(function(){return new Mi(J,w.QG,w.uR)}); g.k(this,this.OQ);y=Ri(function(){return new ey(M,e,q,w.uR,m,null,w.OQ,w.M_,w.oH,3)}); g.k(this,y);this.p7=Ri(function(){return new cq(w.uR)}); this.X4=Ri(function(){return new Le(w.OQ,J,w.uR)}); g.k(this,this.X4);this.EQ=Ri(function(){return new uY(J,v,w.X4,w.QG,w.S3,w.uR,d)}); g.k(this,this.EQ);this.Dg=new z2(a,y,b,this.uR,F,this.QG,this.OQ,this.qI);g.k(this,this.Dg);var G=new ch(J,this.Dg,this.OQ,this.QG,this.cV);this.FW=Ri(function(){return G}); this.wM=G;this.a5=new iS(jdk,lY,function(P,r,Q,D){return cp3(q.get(),P,r,Q,D)},a,e,q,m,this.uR,this.QG); g.k(this,this.a5);this.M_=new gw(a,e,this.FW,this.cV,this.OQ,this.uR,this.EQ,this.RC);g.k(this,this.M_);this.Ld=new lS(a,e,this.h_,this.FW,f);g.k(this,this.Ld);this.Es=new S5(this.uR,a,e,y,this.QG,this.Ld,b);g.k(this,this.Es);this.WS=Ri(function(){return new er(p,q,m,w.uR,w.EQ,w.OQ,w.RC)}); g.k(this,this.WS);this.Oz=Ri(function(){return new Kd}); g.k(this,this.Oz);this.fv=new PN(F,this.sI,this.uR);g.k(this,this.fv);this.pk=new BN(F);g.k(this,this.pk);this.NE=new Sy(F,this.FW,f);g.k(this,this.NE);this.bx=new sp(F,this.h_,this.OQ,this.QG,f);g.k(this,this.bx);this.KB=new Yf(F,this.QG);g.k(this,this.KB);this.oH=new XZ(F,this.cV,this.OQ,this.EQ,this.FW);g.k(this,this.oH);this.ix=new $f(F);g.k(this,this.ix);this.Y0=new Cm(F);g.k(this,this.Y0);this.z$=new kf(F);g.k(this,this.z$);this.g0=Ri(function(){return new Ep}); g.k(this,this.g0);this.bF=Ri(function(){return new jy(w.OQ)}); g.k(this,this.bF);this.gZ=Ri(function(){return new ts(w.Es,a,M)}); g.k(this,this.gZ);this.lF=Ri(function(){return new Ld(w.uR,w.EQ,w.ix,w.X4)}); g.k(this,this.lF);this.n4=Ri(function(){return new Mh(F,w.z$,w.ix,w.QG,w.RC,w.OQ,w.EQ,K,w.cV,w.X4,w.p7,w.NI,w.h_,w.qI,w.py,w.D7,w.yJ,w.uR,v,f,d)}); g.k(this,this.n4);this.Gh=Ri(function(){return new Op4(w.sI,w.OQ,w.EQ,v,w.Ma,b,w.uR,w.QG)}); g.k(this,this.Gh);this.JX={xG:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Es],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.M_],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.a5],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Dg],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ld]]),Y6:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.WS],["SLOT_TYPE_FORECASTING",this.Oz],["SLOT_TYPE_IN_PLAYER",this.Oz],["SLOT_TYPE_PLAYER_BYTES",this.Oz]]),Rn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.fv],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.pk],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.pk],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.pk],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.pk],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.pk],["TRIGGER_TYPE_SLOT_ID_EXITED",this.pk],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.pk],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.pk],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.pk],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.NE],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.bx],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.bx],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.KB],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.KB],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.ix],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.NE],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Y0],["TRIGGER_TYPE_AD_BREAK_STARTED",this.z$],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.oH],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.oH],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.oH],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.oH],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.oH]]),ud:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.g0],["SLOT_TYPE_FORECASTING",this.g0],["SLOT_TYPE_IN_PLAYER",this.g0],["SLOT_TYPE_PLAYER_BYTES",this.bF]]),i4:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.gZ],["SLOT_TYPE_FORECASTING",this.lF],["SLOT_TYPE_PLAYER_BYTES",this.n4],["SLOT_TYPE_IN_PLAYER",this.Gh]])};this.listeners=[v.get()]; this.Zd={Es:this.Es,SB:this.uR.get(),vN:this.D7.get(),p_:this.OQ.get(),Dg:this.Dg,Xg:M.get(),lV:null,Rk:this.fv,pD:v.get(),RP:this.QG.get()}}; NW7=function(F,J,b,I){function u(){return w.U} g.R.call(this);var w=this;F.J().experiments.pW("html5_dispose_of_manager_before_dependency")?(this.C=zja(u,F,J,b,I),this.U=(new DY(this.C)).T(),g.k(this,this.U),g.k(this,this.C)):(this.C=zja(u,F,J,b,I),g.k(this,this.C),this.U=(new DY(this.C)).T(),g.k(this,this.U))}; fR=function(F){return F.C.Zd}; zja=function(F,J,b,I,u){try{var w=J.J();if(g.hP(w))var M=new pwG(F,J,b,I,u);else if(g.U7(w))M=new gH3(F,J,b,I,u);else if(CH(w))M=new moG(F,J,b,I,u);else if(g.sV(w))M=new y4C(F,J,b,I,u);else if(g.TB(w))M=new iy4(F,J,b,I,u);else throw new TypeError("Unknown web interface");return M}catch(q){return M=J.J(),q_("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:M.C.cplatform,interface:M.C.c,RvN:M.C.cver,PyI:M.C.ctheme,Gz_:M.C.cplayer,nIE:M.playerStyle}),new bya(F,J,b,I,u)}}; l2z=function(F){R4.call(this,F)}; f2z=function(F,J,b,I,u){xS.call(this,F,{X:"div",K:"ytp-ad-timed-pie-countdown-container",j:[{X:"svg",K:"ytp-ad-timed-pie-countdown",L:{viewBox:"0 0 20 20"},j:[{X:"circle",K:"ytp-ad-timed-pie-countdown-background",L:{r:"10",cx:"10",cy:"10"}},{X:"circle",K:"ytp-ad-timed-pie-countdown-inner",L:{r:"5",cx:"10",cy:"10"}},{X:"circle",K:"ytp-ad-timed-pie-countdown-outer",L:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",J,b,I,u);this.Z=this.RI("ytp-ad-timed-pie-countdown-container");this.T=this.RI("ytp-ad-timed-pie-countdown-inner"); this.W=this.RI("ytp-ad-timed-pie-countdown-outer");this.U=Math.ceil(2*Math.PI*5);this.hide()}; Wmo=function(F,J,b,I,u,w){a4.call(this,F,{X:"div",K:"ytp-ad-action-interstitial",L:{tabindex:"0"},j:[{X:"div",K:"ytp-ad-action-interstitial-background-container"},{X:"div",K:"ytp-ad-action-interstitial-slot",j:[{X:"div",K:"ytp-ad-action-interstitial-instream-info"},{X:"div",K:"ytp-ad-action-interstitial-card",j:[{X:"div",K:"ytp-ad-action-interstitial-image-container"},{X:"div",K:"ytp-ad-action-interstitial-headline-container"},{X:"div",K:"ytp-ad-action-interstitial-description-container"},{X:"div", K:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",J,b,I);this.HA=u;this.qm=w;this.navigationEndpoint=this.C=this.skipButton=this.U=this.actionButton=null;this.dD=this.RI("ytp-ad-action-interstitial-instream-info");this.qf=this.RI("ytp-ad-action-interstitial-image-container");this.N=new $S(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,"ytp-ad-action-interstitial-image");g.k(this,this.N);this.N.Az(this.qf);this.WN=this.RI("ytp-ad-action-interstitial-headline-container"); this.W=new ci(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,"ytp-ad-action-interstitial-headline");g.k(this,this.W);this.W.Az(this.WN);this.eE=this.RI("ytp-ad-action-interstitial-description-container");this.T=new ci(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,"ytp-ad-action-interstitial-description");g.k(this,this.T);this.T.Az(this.eE);this.nW=this.RI("ytp-ad-action-interstitial-background-container");this.KW=new $S(this.api,this.layoutId,this.interactionLoggingClientData, this.vN,"ytp-ad-action-interstitial-background",!0);g.k(this,this.KW);this.KW.Az(this.nW);this.oI=this.RI("ytp-ad-action-interstitial-action-button-container");this.slot=this.RI("ytp-ad-action-interstitial-slot");this.aH=this.RI("ytp-ad-action-interstitial-card");this.Z=new j9;g.k(this,this.Z);this.hide()}; do_=function(F){var J=g.c1("html5-video-player");J&&g.qr(J,"ytp-ad-display-override",F)}; VCC=function(F,J,b,I){a4.call(this,F,{X:"div",K:"ytp-ad-overlay-slot",j:[{X:"div",K:"ytp-ad-overlay-container"}]},"invideo-overlay",J,b,I);this.N=[];this.nW=this.WN=this.Z=this.oI=this.dD=null;this.KW=!1;this.W=null;this.eE=0;F=this.RI("ytp-ad-overlay-container");this.qf=new IJ(F,45E3,6E3,.3,.4);g.k(this,this.qf);this.T=EH7(this);g.k(this,this.T);this.T.Az(F);this.U=j$k(this);g.k(this,this.U);this.U.Az(F);this.C=GW_(this);g.k(this,this.C);this.C.Az(F);this.hide()}; EH7=function(F){var J=new g.vi({X:"div",K:"ytp-ad-text-overlay",j:[{X:"div",K:"ytp-ad-overlay-ad-info-button-container"},{X:"div",K:"ytp-ad-overlay-close-container",j:[{X:"button",K:"ytp-ad-overlay-close-button",j:[Vr(Pna)]}]},{X:"div",K:"ytp-ad-overlay-title",sQ:"{{title}}"},{X:"div",K:"ytp-ad-overlay-desc",sQ:"{{description}}"},{X:"div",Dv:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],sQ:"{{displayUrl}}"}]});F.B(J.RI("ytp-ad-overlay-title"),"click",function(b){Wn(F,J.element,b)}); F.B(J.RI("ytp-ad-overlay-link"),"click",function(b){Wn(F,J.element,b)}); F.B(J.RI("ytp-ad-overlay-close-container"),"click",F.JZ);J.hide();return J}; j$k=function(F){var J=new g.vi({X:"div",Dv:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],j:[{X:"div",K:"ytp-ad-overlay-ad-info-button-container"},{X:"div",K:"ytp-ad-overlay-close-container",j:[{X:"button",K:"ytp-ad-overlay-close-button",j:[Vr(Pna)]}]},{X:"div",K:"ytp-ad-overlay-text-image",j:[{X:"img",L:{src:"{{imageUrl}}"}}]},{X:"div",K:"ytp-ad-overlay-title",sQ:"{{title}}"},{X:"div",K:"ytp-ad-overlay-desc",sQ:"{{description}}"},{X:"div",Dv:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], sQ:"{{displayUrl}}"}]});F.B(J.RI("ytp-ad-overlay-title"),"click",function(b){Wn(F,J.element,b)}); F.B(J.RI("ytp-ad-overlay-link"),"click",function(b){Wn(F,J.element,b)}); F.B(J.RI("ytp-ad-overlay-close-container"),"click",F.JZ);F.B(J.RI("ytp-ad-overlay-text-image"),"click",F.w1G);J.hide();return J}; GW_=function(F){var J=new g.vi({X:"div",K:"ytp-ad-image-overlay",j:[{X:"div",K:"ytp-ad-overlay-ad-info-button-container"},{X:"div",K:"ytp-ad-overlay-close-container",j:[{X:"button",K:"ytp-ad-overlay-close-button",j:[Vr(Pna)]}]},{X:"div",K:"ytp-ad-overlay-image",j:[{X:"img",L:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});F.B(J.RI("ytp-ad-overlay-image"),"click",function(b){Wn(F,J.element,b)}); F.B(J.RI("ytp-ad-overlay-close-container"),"click",F.JZ);J.hide();return J}; BWz=function(F,J){if(J){var b=g.O(J,PF)||null;b==null?g.Td(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(J=g.c1("video-ads ytp-ad-module")||null,J==null?g.Td(Error("Could not locate the root ads container element to attach the ad info dialog.")):(F.WN=new g.vi({X:"div",K:"ytp-ad-overlay-ad-info-dialog-container"}),g.k(F,F.WN),F.WN.Az(J),J=new hr(F.api,F.layoutId,F.interactionLoggingClientData,F.vN,F.WN.element,!1),g.k(F,J),J.init(bA("ad-info-hover-text-button"),b,F.macros), F.W?(J.Az(F.W,0),J.subscribe("f",F.FOW,F),J.subscribe("e",F.x3,F),F.B(F.W,"click",F.BwI),F.B(g.c1("ytp-ad-button",J.element),"click",function(){var I;if(g.O((I=g.O(b.button,g.TX))==null?void 0:I.serviceEndpoint,xPC))F.KW=F.api.getPlayerState(1)===2,F.api.pauseVideo();else F.api.onAdUxClicked("ad-info-hover-text-button",F.layoutId)}),F.nW=J):g.Td(Error("Ad info button container within overlay ad was not present."))))}else g.rQ(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; r4C=function(F,J){if(TWC(F,d6)||F.api.isMinimized())return!1;var b=e0(J.title),I=e0(J.description);if(g.d5(b)||g.d5(I))return!1;F.createServerVe(F.T.element,J.trackingParams||null);F.T.updateValue("title",e0(J.title));F.T.updateValue("description",e0(J.description));F.T.updateValue("displayUrl",e0(J.displayUrl));J.navigationEndpoint&&g.bV(F.N,J.navigationEndpoint);F.T.show();F.qf.start();F.logVisibility(F.T.element,!0);F.B(F.T.element,"mouseover",function(){F.eE++}); return!0}; S2_=function(F,J){if(TWC(F,d6)||F.api.isMinimized())return!1;var b=e0(J.title),I=e0(J.description);if(g.d5(b)||g.d5(I))return!1;F.createServerVe(F.U.element,J.trackingParams||null);F.U.updateValue("title",e0(J.title));F.U.updateValue("description",e0(J.description));F.U.updateValue("displayUrl",e0(J.displayUrl));F.U.updateValue("imageUrl",KHo(J.image));J.navigationEndpoint&&g.bV(F.N,J.navigationEndpoint);F.oI=J.imageNavigationEndpoint||null;F.U.show();F.qf.start();F.logVisibility(F.U.element,!0); F.B(F.U.element,"mouseover",function(){F.eE++}); return!0}; s$C=function(F,J){if(F.api.isMinimized())return!1;var b=p$z(J.image),I=b;b.width0?(J=new rJ(F.api,F.C),J.Az(F.playerOverlay), g.k(F,J)):g.Td(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(J)))}}else g.Td(Error("addCommonComponents() needs to be called before starting countdown."))}; hj3=function(F){function J(b){return{toString:function(){return b()}}} F.macros.SURVEY_LOCAL_TIME_EPOCH_S=J(function(){var b=new Date;return(Math.round(b.valueOf()/1E3)+-1*b.getTimezoneOffset()*60).toString()}); F.macros.SURVEY_ELAPSED_MS=J(function(){return(Date.now()-F.T).toString()})}; c4z=function(F,J,b,I,u){Va.call(this,F,J,b,I,"survey-question-multi-select");this.eE=u;this.noneOfTheAbove=null;this.submitEndpoints=[];this.W=null;this.hide()}; Uo4=function(F,J,b){F.noneOfTheAbove=new Rjz(F.api,F.layoutId,F.interactionLoggingClientData,F.vN);F.noneOfTheAbove.Az(F.answers);F.noneOfTheAbove.init(bA("survey-none-of-the-above"),J,b)}; nHk=function(F){F.U.forEach(function(J){J.C.toggleButton(!1)}); xoo(F,!0)}; xoo=function(F,J){var b=F.Z;F=tC7(F);J=J===void 0?!1:J;b.C&&(F?b.C.hide():b.C.show(),J&&b.C instanceof gJ&&!b.C.Z&&ID7(b.C,!1));b.U&&(F?b.U.show():b.U.hide())}; tC7=function(F){return F.U.some(function(J){return J.C.isToggled()})||F.noneOfTheAbove.button.isToggled()}; Pn=function(F,J,b,I,u){Va.call(this,F,J,b,I,"survey-question-single-select",function(M){w.api.J().S("supports_multi_step_on_desktop")&&u([M])}); var w=this;this.hide()}; Bn=function(F,J,b,I){a4.call(this,F,{X:"div",K:"ytp-ad-survey",j:[{X:"div",K:"ytp-ad-survey-questions"}]},"survey",J,b,I);this.questions=[];this.U=[];this.conditioningRules=[];this.C=0;this.W=this.RI("ytp-ad-survey-questions");this.api.J().S("fix_survey_color_contrast_on_destop")&&this.RI("ytp-ad-survey").classList.add("color-contrast-fix");this.api.J().S("web_enable_speedmaster")&&this.RI("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; Lmv=function(F,J){var b=F.U[J],I;(I=F.T)==null||I.dispose();g.O(b,GX)?Zyo(F,g.O(b,GX),F.macros):g.O(b,j5)&&Hyz(F,g.O(b,j5),F.macros);F.C=J}; Zyo=function(F,J,b){var I=new Pn(F.api,F.layoutId,F.interactionLoggingClientData,F.vN,F.Z.bind(F));I.Az(F.W);I.init(bA("survey-question-single-select"),J,b);F.api.J().S("supports_multi_step_on_desktop")?F.T=I:F.questions.push(I);g.k(F,I)}; Hyz=function(F,J,b){var I=new c4z(F.api,F.layoutId,F.interactionLoggingClientData,F.vN,F.Z.bind(F));I.Az(F.W);I.init(bA("survey-question-multi-select"),J,b);F.api.J().S("supports_multi_step_on_desktop")?F.T=I:F.questions.push(I);g.k(F,I)}; T7=function(F,J,b,I){a4.call(this,F,{X:"div",K:"ytp-ad-survey-interstitial",j:[{X:"div",K:"ytp-ad-survey-interstitial-contents",j:[{X:"div",K:"ytp-ad-survey-interstitial-logo",j:[{X:"div",K:"ytp-ad-survey-interstitial-logo-image"}]},{X:"div",K:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",J,b,I);this.C=this.actionButton=null;this.interstitial=this.RI("ytp-ad-survey-interstitial");this.U=this.RI("ytp-ad-survey-interstitial-contents");this.text=this.RI("ytp-ad-survey-interstitial-text"); this.logoImage=this.RI("ytp-ad-survey-interstitial-logo-image");this.transition=new g.ZU(this,500,!1,300);g.k(this,this.transition)}; F3_=function(F,J){J=J&&YS(J)||"";if(g.d5(J))g.rQ(Error("Found ThumbnailDetails without valid image URL"));else{var b=F.style;F=F.style.cssText;var I=document.implementation.createHTMLDocument("").createElement("DIV");I.style.cssText=F;F=kvv(I.style);b.cssText=[F,'background-image:url("'+J+'");'].join("")}}; Jmk=function(F){var J=g.c1("html5-video-player");J&&g.qr(J,"ytp-ad-display-override",F)}; r6=function(F,J,b,I,u,w){w=w===void 0?0:w;xS.call(this,F,{X:"div",K:"ytp-preview-ad",j:[{X:"div",K:"ytp-preview-ad__text"}]},"preview-ad",J,b,I,u);var M=this;this.eE=w;this.U=0;this.Z=-1;this.T=this.RI("ytp-preview-ad__text");switch(this.eE){case 1:this.T.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.ZU(this,400,!1,100,function(){M.hide()}); g.k(this,this.transition);this.hide()}; SU=function(F,J,b,I){a4.call(this,F,{X:"img",K:"ytp-ad-avatar"},"ad-avatar",J,b,I);this.hide()}; bPo=function(F){switch(F.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}}; sg=function(F,J,b,I,u,w){u=u===void 0?!1:u;w=w===void 0?!1:w;a4.call(this,F,{X:"button",K:"ytp-ad-button-vm"},"ad-button",J,b,I);this.buttonText=this.buttonIcon=null;this.hide();this.C=u;this.U=w}; I9C=function(F,J,b,I,u){xS.call(this,F,{X:"div",Dv:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],j:[{X:"div",K:"ytp-ad-avatar-lockup-card__avatar_and_text_container",j:[{X:"div",K:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",J,b,I,u);this.startMilliseconds=0;this.adAvatar=new SU(this.api,this.layoutId,this.interactionLoggingClientData,this.vN);g.k(this,this.adAvatar);bB(this.element,this.adAvatar.element,0);this.headline=new j1(this.api,this.layoutId, this.interactionLoggingClientData,this.vN);g.k(this,this.headline);this.headline.Az(this.RI("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new j1(this.api,this.layoutId,this.interactionLoggingClientData,this.vN);g.k(this,this.description);this.description.Az(this.RI("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new sg(this.api, this.layoutId,this.interactionLoggingClientData,this.vN);g.k(this,this.adButton);this.adButton.Az(this.element);this.hide()}; Yv=function(F,J,b,I){a4.call(this,F,{X:"button",K:"ytp-skip-ad-button",j:[{X:"div",K:"ytp-skip-ad-button__text"}]},"skip-button",J,b,I);var u=this;this.U=!1;this.Z=this.RI("ytp-skip-ad-button__text");this.transition=new g.ZU(this,500,!1,100,function(){u.hide()}); g.k(this,this.transition);this.C=new IJ(this.element,15E3,5E3,.5,.5,!0);g.k(this,this.C);this.hide()}; uDk=function(F,J,b,I,u){xS.call(this,F,{X:"div",K:"ytp-skip-ad"},"skip-ad",J,b,I,u);this.skipOffsetMilliseconds=0;this.Z=this.isSkippable=!1;var w;if((w=this.api.getVideoData())==null?0:w.isDaiEnabled())this.Z=this.api.J().S("clean_player_style_fix_on_web");if(this.Z||!this.api.J().experiments.pW("disable_ad_preview_for_instream_ads"))this.U=new r6(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,this.C),g.k(this,this.U),this.U.Az(this.element);this.T=new Yv(this.api,this.layoutId, this.interactionLoggingClientData,this.vN);g.k(this,this.T);this.T.Az(this.element);this.hide()}; $v=function(F,J,b,I){a4.call(this,F,{X:"div",K:"ytp-visit-advertiser-link"},"visit-advertiser-link",J,b,I);this.hide();this.api.S("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-visit-advertiser-link--clean-player");this.api.S("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-visit-advertiser-link--clean-player-with-light-shadow")}; CR=function(F,J,b,I,u){a4.call(this,F,{X:"div",K:"ytp-ad-player-overlay-layout",j:[{X:"div",K:"ytp-ad-player-overlay-layout__player-card-container"},{X:"div",K:"ytp-ad-player-overlay-layout__ad-info-container"},{X:"div",K:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{X:"div",K:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",J,b,I);this.U=u;this.WN=this.RI("ytp-ad-player-overlay-layout__player-card-container");this.C=this.RI("ytp-ad-player-overlay-layout__ad-info-container"); this.N=this.RI("ytp-ad-player-overlay-layout__skip-or-preview-container");this.eE=this.RI("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; wJk=function(F,J,b,I){a4.call(this,F,{X:"div",K:"ytp-ad-grid-card-text",j:[{X:"div",K:"ytp-ad-grid-card-text__metadata",j:[{X:"div",K:"ytp-ad-grid-card-text__metadata__headline"},{X:"div",K:"ytp-ad-grid-card-text__metadata__description",j:[{X:"div",K:"ytp-ad-grid-card-text__metadata__description__line"},{X:"div",K:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{X:"div",K:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",J,b,I);this.headline=new j1(this.api,this.layoutId,this.interactionLoggingClientData, this.vN);g.k(this,this.headline);this.headline.Az(this.RI("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new sg(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,!0);g.k(this,this.moreInfoButton);this.moreInfoButton.Az(this.RI("ytp-ad-grid-card-text__button"))}; Xm=function(F,J,b,I){a4.call(this,F,{X:"div",K:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",J,b,I);this.C=[]}; Qa=function(F,J,b,I,u,w,M){xS.call(this,F,w,M,J,b,I,u);this.playerProgressOffsetMs=0;this.U=!1}; MTk=function(F){var J=g.c1("html5-video-player");J&&g.qr(J,"ytp-ad-display-override",F)}; Am3=function(F,J,b,I,u){Qa.call(this,F,J,b,I,u,{X:"div",K:"ytp-display-underlay-text-grid-cards",j:[{X:"div",K:"ytp-display-underlay-text-grid-cards__content_container",j:[{X:"div",K:"ytp-display-underlay-text-grid-cards__content_container__header",j:[{X:"div",K:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{X:"div",K:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{X:"div",K:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {X:"div",K:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new Xm(this.api,this.layoutId,this.interactionLoggingClientData,this.vN);g.k(this,this.adGridCardCollection);this.adGridCardCollection.Az(this.RI("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new sg(this.api,this.layoutId,this.interactionLoggingClientData,this.vN);g.k(this,this.adButton);this.adButton.Az(this.RI("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.T=this.RI("ytp-display-underlay-text-grid-cards__content_container");this.Z=this.RI("ytp-display-underlay-text-grid-cards__content_container__header")}; RL=function(F,J,b,I){a4.call(this,F,{X:"div",K:"ytp-ad-details-line"},"ad-details-line",J,b,I);this.C=[];this.hide()}; DP=function(F,J,b,I){a4.call(this,F,{X:"div",K:"ytp-image-background",j:[{X:"img",K:"ytp-image-background-image"}]},"image-background",J,b,I);this.hide()}; qBJ=function(F,J,b,I,u){xS.call(this,F,{X:"svg",K:"ytp-timed-pie-countdown",L:{viewBox:"0 0 20 20"},j:[{X:"circle",K:"ytp-timed-pie-countdown__background",L:{r:"10",cx:"10",cy:"10"}},{X:"circle",K:"ytp-timed-pie-countdown__inner",L:{r:"5",cx:"10",cy:"10"}},{X:"circle",K:"ytp-timed-pie-countdown__outer",L:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",J,b,I,u);this.T=this.RI("ytp-timed-pie-countdown__inner");this.U=Math.ceil(2*Math.PI*5);this.hide()}; kv=function(F,J,b,I){a4.call(this,F,{X:"div",K:"ytp-video-interstitial-buttoned-centered-layout",L:{tabindex:"0"},j:[{X:"div",K:"ytp-video-interstitial-buttoned-centered-layout__content",j:[{X:"div",K:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{X:"div",K:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",j:[{X:"div",K:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{X:"div",K:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {X:"div",K:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{X:"div",K:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{X:"div",K:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",J,b,I);this.U=null;this.Z=this.RI("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.T=new j9;g.k(this,this.T);this.hide()}; v1o=function(F){var J=g.c1("html5-video-player");J&&g.qr(J,"ytp-ad-display-override",F)}; a9Y=function(F){if(!F.adAvatar||!g.O(F.adAvatar,Og))return g.Td(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!F.headline)return g.Td(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!F.adBadge||!g.O(F.adBadge,oL))return g.Td(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!F.adButton||!g.O(F.adButton,h7))return g.Td(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!F.adInfoRenderer|| !g.O(F.adInfoRenderer,PF))return g.Td(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;F=F.durationMilliseconds||0;return typeof F!=="number"||F<=0?(g.Td(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+F)),!1):!0}; cn=function(F,J,b){R4.call(this,F);this.api=F;this.vN=J;this.U={};F=new g.U({X:"div",Dv:["video-ads","ytp-ad-module"]});g.k(this,F);tg&&g.uG(F.element,"ytp-ads-tiny-mode");this.D=new yv(F.element);g.k(this,this.D);g.Pp(this.api,F.element,4);x8(b)&&(b=new g.U({X:"div",Dv:["ytp-ad-underlay"]}),g.k(this,b),this.T=new yv(b.element),g.k(this,this.T),g.Pp(this.api,b.element,0));g.k(this,Slv())}; e_m=function(F,J){F=g.P1(F.U,J.id,null);F==null&&g.rQ(Error("Component not found for element id: "+J.id));return F||null}; K3z=function(F){g.GN.call(this,F);var J=this;this.U=null;this.created=!1;this.T=F.J().S("h5_use_refactored_get_ad_break")?new MHa(this.player):new oz(this.player);this.Z=function(){if(J.U!=null)return J.U;var I=new pDz({Rk:fR(J.C).Rk,RP:fR(J.C).RP,G:J.player,SB:fR(J.C).SB,EQ:J.C.C.EQ,pD:fR(J.C).pD,py:J.C.C.py});J.U=I.t0;return J.U}; this.C=new NW7(this.player,this,this.T,this.Z);g.k(this,this.C);var b=F.J();!En(b)||g.TB(b)||CH(b)||(g.k(this,new cn(F,fR(this.C).vN,fR(this.C).SB)),g.k(this,new l2z(F)))}; pJ_=function(F){F.created!==F.loaded&&q_("Created and loaded are out of sync")}; ym4=function(F){g.GN.prototype.load.call(F);var J=fR(F.C).SB;try{F.player.getRootNode().classList.add("ad-created")}catch(v){q_(v instanceof Error?v:String(v))}var b=F.player.getVideoData(1),I=b&&b.videoId||"",u=b&&b.getPlayerResponse()||{},w=(!F.player.J().experiments.pW("debug_ignore_ad_placements")&&u&&u.adPlacements||[]).map(function(v){return v.adPlacementRenderer}),M=((u==null?void 0:u.adSlots)||[]).map(function(v){return g.O(v,sx)}); u=u.playerConfig&&u.playerConfig.daiConfig&&u.playerConfig.daiConfig.enableDai||!1;b&&b.MW();w=g1a(w,M,J,fR(F.C).Xg);M=b&&b.clientPlaybackNonce||"";b=b&&b.Ta||!1;if(fF(J,!0)&&b){var q;J={};(q=F.player.getVideoData())==null||q.UQ("p_cpb",(J.cc=M,J))}q=1E3*F.player.getDuration(1);mWz(F);F.C.C.wM.a6(M,q,b,w.Oh,w.Y$,w.Oh,u,I)}; mWz=function(F){var J,b;if(b=(J=F.player.getVideoData(1))==null||!J.Ta)J=F.player.J(),b=En(J)&&!g.dX(J)&&J.playerStyle==="desktop-polymer";b&&(F=F.player.getInternalApi(),F.addEventListener("updateKevlarOrC3Companion",vPz),F.addEventListener("updateEngagementPanelAction",aDz),F.addEventListener("changeEngagementPanelVisibility",eoa),window.addEventListener("yt-navigate-start",prz))}; Ug=function(F,J){J===F.fP&&(F.fP=void 0)}; iPo=function(F){var J=fR(F.C).Dg,b=J.Z().GR("SLOT_TYPE_PLAYER_BYTES",1);J=gM(J.QG.get(),1).clientPlaybackNonce;var I=!1;b=g.N(b);for(var u=b.next();!u.done;u=b.next()){u=u.value;var w=u.slotType==="SLOT_TYPE_PLAYER_BYTES"&&u.slotEntryTrigger instanceof fi?u.slotEntryTrigger.fI:void 0;w&&w===J&&(I&&q_("More than 1 preroll playerBytes slot detected",u),I=!0)}I||A7(fR(F.C).p_)}; z_3=function(F){if(Zu(fR(F.C).SB))return!0;var J="";F=g.N(fR(F.C).pD.ML.keys());for(var b=F.next();!b.done;b=F.next()){b=b.value;if(b.slotType==="SLOT_TYPE_PLAYER_BYTES"&&b.BN==="core")return!0;J+=b.slotType+" "}Math.random()<.01&&q_("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:J});return!1}; NzY=function(F){F=g.N(fR(F.C).pD.ML.values());for(var J=F.next();!J.done;J=F.next())if(J.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; dJz=function(F,J,b,I,u,w){b=b===void 0?[]:b;I=I===void 0?"":I;u=u===void 0?"":u;var M=fR(F.C).SB,q=F.player.getVideoData(1);q&&q.getPlayerResponse();q&&q.MW();b=g1a(J,b,M,fR(F.C).Xg);Vt4(fR(F.C).Es,I,b.Oh,b.Y$,J,u,w)}; g1a=function(F,J,b,I){J={Oh:[],Y$:J};F=g.N(F);for(var u=F.next();!u.done;u=F.next())if((u=u.value)&&u.renderer!=null){var w=u.renderer;if(!b.G.J().S("html5_enable_vod_lasr_with_notify_pacf")){var M=void 0,q=void 0,v=void 0,a=void 0,e=I;g.O((a=w.sandwichedLinearAdRenderer)==null?void 0:a.adVideoStart,an)?(M=g.O((v=w.sandwichedLinearAdRenderer)==null?void 0:v.adVideoStart,an),M=kuk(M,e),g.CO(w.sandwichedLinearAdRenderer.adVideoStart,an,M)):g.O((q=w.linearAdSequenceRenderer)==null?void 0:q.adStart,an)&& (v=g.O((M=w.linearAdSequenceRenderer)==null?void 0:M.adStart,an),M=kuk(v,e),g.CO(w.linearAdSequenceRenderer.adStart,an,M))}J.Oh.push(u)}return J}; g.xv=function(F){if(typeof DOMParser!="undefined")return UQ(new DOMParser,Y0z(F),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.nR=function(F){g.R.call(this);this.callback=F;this.C=new Nr(0,0,.4,0,.2,1,1,1);this.delay=new g.n8(this.next,window,this);g.k(this,this.delay)}; g.l94=function(F){var J=F.J();return J.y6&&!J.T&&g.dN(J)?F.isEmbedsShortsMode()?(F=F.xK(),Math.min(F.width,F.height)>=315):!F.Ru():!1}; g.t7=function(F){g.U.call(this,{X:"div",K:"ytp-more-videos-view",L:{tabIndex:"-1"}});var J=this;this.api=F;this.U=!0;this.T=new g.s5(this);this.C=[];this.suggestionData=[];this.columns=this.containerWidth=this.Y=this.Z=this.scrollPosition=0;this.title=new g.U({X:"h2",K:"ytp-related-title",sQ:"{{title}}"});this.previous=new g.U({X:"button",Dv:["ytp-button","ytp-previous"],L:{"aria-label":"Mostrar v\u00eddeos sugeridos anteriores"},j:[g.mh()]});this.V=new g.nR(function(b){J.suggestions.element.scrollLeft= -b}); this.next=new g.U({X:"button",Dv:["ytp-button","ytp-next"],L:{"aria-label":"Mostrar mais v\u00eddeos sugeridos"},j:[g.yr()]});g.k(this,this.T);this.W=F.J().Z;g.k(this,this.title);this.title.Az(this.element);this.suggestions=new g.U({X:"div",K:"ytp-suggestions"});g.k(this,this.suggestions);this.suggestions.Az(this.element);g.k(this,this.previous);this.previous.Az(this.element);this.previous.listen("click",this.fC,this);g.k(this,this.V);f9J(this);g.k(this,this.next);this.next.Az(this.element);this.next.listen("click", this.iG,this);this.T.B(this.api,"appresize",this.mO);this.T.B(this.api,"fullscreentoggled",this.Up);this.T.B(this.api,"videodatachange",this.onVideoDataChange);this.mO(this.api.mG().getPlayerSize());this.onVideoDataChange()}; f9J=function(F){for(var J={t8:0};J.t8<16;J={t8:J.t8},++J.t8){var b=new g.U({X:"a",K:"ytp-suggestion-link",L:{href:"{{link}}",target:F.api.J().N,"aria-label":"{{aria_label}}"},j:[{X:"div",K:"ytp-suggestion-image"},{X:"div",K:"ytp-suggestion-overlay",L:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},j:[{X:"div",K:"ytp-suggestion-title",sQ:"{{title}}"},{X:"div",K:"ytp-suggestion-author",sQ:"{{author_and_views}}"},{X:"div",L:{"data-is-live":"{{is_live}}"},K:"ytp-suggestion-duration", sQ:"{{duration}}"}]}]});g.k(F,b);var I=b.RI("ytp-suggestion-link");g.aN(I,"transitionDelay",J.t8/20+"s");F.T.B(I,"click",function(u){return function(w){var M=u.t8;if(F.U){var q=F.suggestionData[M],v=q.sessionData;F.W&&F.api.S("web_player_log_click_before_generating_ve_conversion_params")?(F.api.logClick(F.C[M].element),M=q.t4(),q={},g.jV(F.api,q),M=g.Os(M,q),g.Fy(M,F.api,w)):g.LE(w,F.api,F.W,v||void 0)&&F.api.yp(q.videoId,v,q.playlistId)}else w.preventDefault(),document.activeElement.blur()}}(J)); b.Az(F.suggestions.element);F.C.push(b);F.api.createServerVe(b.element,b)}}; W3a=function(F){if(F.api.J().S("web_player_log_click_before_generating_ve_conversion_params"))for(var J=Math.floor(-F.scrollPosition/(F.Z+8)),b=Math.min(J+F.columns,F.suggestionData.length)-1;J<=b;J++)F.api.logVisibility(F.C[J].element,!0)}; g.ZP=function(F){var J=F.api.Ua()?32:16;J=F.Y/2+J;F.next.element.style.bottom=J+"px";F.previous.element.style.bottom=J+"px";J=F.scrollPosition;var b=F.containerWidth-F.suggestionData.length*(F.Z+8);g.qr(F.element,"ytp-scroll-min",J>=0);g.qr(F.element,"ytp-scroll-max",J<=b)}; E1z=function(F){for(var J=F.suggestionData.length,b=0;b>>0)+"_",u=0;return J}); K3("Symbol.iterator",function(F){if(F)return F;F=Symbol("Symbol.iterator");for(var J="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),b=0;b=w}}); K3("String.prototype.endsWith",function(F){return F?F:function(J,b){var I=T_(this,J,"endsWith");J+="";b===void 0&&(b=I.length);b=Math.max(0,Math.min(b|0,I.length));for(var u=J.length;u>0&&b>0;)if(I[--b]!=J[--u])return!1;return u<=0}}); K3("Array.prototype.entries",function(F){return F?F:function(){return Sz(this,function(J,b){return[J,b]})}}); K3("Math.imul",function(F){return F?F:function(J,b){J=Number(J);b=Number(b);var I=J&65535,u=b&65535;return I*u+((J>>>16&65535)*u+I*(b>>>16&65535)<<16>>>0)|0}}); K3("Math.trunc",function(F){return F?F:function(J){J=Number(J);if(isNaN(J)||J===Infinity||J===-Infinity||J===0)return J;var b=Math.floor(Math.abs(J));return J<0?-b:b}}); K3("Math.clz32",function(F){return F?F:function(J){J=Number(J)>>>0;if(J===0)return 32;var b=0;(J&4294901760)===0&&(J<<=16,b+=16);(J&4278190080)===0&&(J<<=8,b+=8);(J&4026531840)===0&&(J<<=4,b+=4);(J&3221225472)===0&&(J<<=2,b+=2);(J&2147483648)===0&&b++;return b}}); K3("Math.log10",function(F){return F?F:function(J){return Math.log(J)/Math.LN10}}); K3("Number.isNaN",function(F){return F?F:function(J){return typeof J==="number"&&isNaN(J)}}); K3("Array.prototype.keys",function(F){return F?F:function(){return Sz(this,function(J){return J})}}); K3("Array.prototype.values",function(F){return F?F:function(){return Sz(this,function(J,b){return b})}}); K3("Array.prototype.fill",function(F){return F?F:function(J,b,I){var u=this.length||0;b<0&&(b=Math.max(0,u+b));if(I==null||I>u)I=u;I=Number(I);I<0&&(I=Math.max(0,u+I));for(b=Number(b||0);b1342177279)throw new RangeError("Invalid count value");J|=0;for(var I="";J;)if(J&1&&(I+=b),J>>>=1)b+=b;return I}}); K3("Promise.prototype.finally",function(F){return F?F:function(J){return this.then(function(b){return Promise.resolve(J()).then(function(){return b})},function(b){return Promise.resolve(J()).then(function(){throw b; })})}}); K3("String.prototype.padStart",function(F){return F?F:function(J,b){var I=T_(this,null,"padStart");J-=I.length;b=b!==void 0?String(b):" ";return(J>0&&b?b.repeat(Math.ceil(J/b.length)).substring(0,J):"")+I}}); K3("Array.prototype.findIndex",function(F){return F?F:function(J,b){return m4a(this,J,b).zy}}); K3("Math.sign",function(F){return F?F:function(J){J=Number(J);return J===0||isNaN(J)?J:J>0?1:-1}}); K3("WeakSet",function(F){function J(b){this.C=new WeakMap;if(b){b=g.N(b);for(var I;!(I=b.next()).done;)this.add(I.value)}} if(function(){if(!F||!Object.seal)return!1;try{var b=Object.seal({}),I=Object.seal({}),u=new F([b]);if(!u.has(b)||u.has(I))return!1;u.delete(b);u.add(I);return!u.has(b)&&u.has(I)}catch(w){return!1}}())return F; J.prototype.add=function(b){this.C.set(b,!0);return this}; J.prototype.has=function(b){return this.C.has(b)}; J.prototype.delete=function(b){return this.C.delete(b)}; return J}); K3("Array.prototype.copyWithin",function(F){function J(b){b=Number(b);return b===Infinity||b===-Infinity?b:b|0} return F?F:function(b,I,u){var w=this.length;b=J(b);I=J(I);u=u===void 0?w:J(u);b=b<0?Math.max(w+b,0):Math.min(b,w);I=I<0?Math.max(w+I,0):Math.min(I,w);u=u<0?Math.max(w+u,0):Math.min(u,w);if(bI;)--u in this?this[--b]=this[u]:delete this[--b];return this}}); K3("Int8Array.prototype.copyWithin",YC);K3("Uint8Array.prototype.copyWithin",YC);K3("Uint8ClampedArray.prototype.copyWithin",YC);K3("Int16Array.prototype.copyWithin",YC);K3("Uint16Array.prototype.copyWithin",YC);K3("Int32Array.prototype.copyWithin",YC);K3("Uint32Array.prototype.copyWithin",YC);K3("Float32Array.prototype.copyWithin",YC);K3("Float64Array.prototype.copyWithin",YC);K3("Array.prototype.at",function(F){return F?F:$C}); K3("Int8Array.prototype.at",C3);K3("Uint8Array.prototype.at",C3);K3("Uint8ClampedArray.prototype.at",C3);K3("Int16Array.prototype.at",C3);K3("Uint16Array.prototype.at",C3);K3("Int32Array.prototype.at",C3);K3("Uint32Array.prototype.at",C3);K3("Float32Array.prototype.at",C3);K3("Float64Array.prototype.at",C3);K3("String.prototype.at",function(F){return F?F:$C}); K3("Array.prototype.findLastIndex",function(F){return F?F:function(J,b){return yJo(this,J,b).zy}}); K3("Int8Array.prototype.findLastIndex",X7);K3("Uint8Array.prototype.findLastIndex",X7);K3("Uint8ClampedArray.prototype.findLastIndex",X7);K3("Int16Array.prototype.findLastIndex",X7);K3("Uint16Array.prototype.findLastIndex",X7);K3("Int32Array.prototype.findLastIndex",X7);K3("Uint32Array.prototype.findLastIndex",X7);K3("Float32Array.prototype.findLastIndex",X7);K3("Float64Array.prototype.findLastIndex",X7);K3("Number.parseInt",function(F){return F||parseInt});var nu,xC,i3a;nu=nu||{};g.Qz=this||self;xC="closure_uid_"+(Math.random()*1E9>>>0);i3a=0;g.z(uW,Error);g.R.prototype.iJ=!1;g.R.prototype.iR=function(){return this.iJ}; g.R.prototype.dispose=function(){this.iJ||(this.iJ=!0,this.X_())}; g.R.prototype[Symbol.dispose]=function(){this.dispose()}; g.R.prototype.addOnDisposeCallback=function(F,J){this.iJ?J!==void 0?F.call(J):F():(this.In||(this.In=[]),J&&(F=F.bind(J)),this.In.push(F))}; g.R.prototype.X_=function(){if(this.In)for(;this.In.length;)this.In.shift()()};var d47;g.z(em,g.R);em.prototype.share=function(){if(this.iR())throw Error("E:AD");this.Z++;return this}; em.prototype.dispose=function(){--this.Z||g.R.prototype.dispose.call(this)}; d47=Symbol.dispose;ECk.prototype.Ic=function(F,J){this.C.Ic("/client_streamz/bg/frs",F,J)}; jGa.prototype.Ic=function(F,J,b,I,u,w){this.C.Ic("/client_streamz/bg/wrl",F,J,b,I,u,w)}; G_Y.prototype.C=function(F,J){this.U.ge("/client_streamz/bg/ec",F,J)}; Vzo.prototype.Ic=function(F,J,b,I){this.C.Ic("/client_streamz/bg/el",F,J,b,I)}; PkG.prototype.C=function(F,J,b){this.U.ge("/client_streamz/bg/cec",F,J,b)}; BY4.prototype.C=function(F,J,b){this.U.ge("/client_streamz/bg/po/csc",F,J,b)}; TYJ.prototype.C=function(F,J,b){this.U.ge("/client_streamz/bg/po/ctav",F,J,b)}; rJ_.prototype.C=function(F,J,b){this.U.ge("/client_streamz/bg/po/cwsc",F,J,b)};g.Fb(iW,Error);iW.prototype.name="CustomError";var bGG;var Y4=void 0,sq,SXm=typeof TextDecoder!=="undefined",Ckk,$44=typeof String.prototype.isWellFormed==="function",YmG=typeof TextEncoder!=="undefined";var GV=String.prototype.trim?function(F){return F.trim()}:function(F){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(F)[1]},BUY=/&/g,TUz=//g,SFa=/"/g,sFv=/'/g,YFz=/\x00/g,Pvv=/[\x00&<>"']/;var rmv=Om(1,!0),TV=Om(610401301,!1);Om(899588437,!1);var SBC=Om(725719775,!1);Om(651175828,!1);Om(722764542,!1);Om(2147483644,!1);Om(2147483645,!1);Om(2147483646,rmv);Om(2147483647,!0);var r5=!!g.kC("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var Sm,sPC=g.Qz.navigator;Sm=sPC?sPC.userAgentData||null:null;var Z3J,Gi,Bc;Z3J=Array.prototype.indexOf?function(F,J){return Array.prototype.indexOf.call(F,J,void 0)}:function(F,J){if(typeof F==="string")return typeof J!=="string"||J.length!=1?-1:F.indexOf(J,0); for(var b=0;b=0;b--)if(b in F&&F[b]===J)return b;return-1}; g.gy=Array.prototype.forEach?function(F,J,b){Array.prototype.forEach.call(F,J,b)}:function(F,J,b){for(var I=F.length,u=typeof F==="string"?F.split(""):F,w=0;wparseFloat(R_v)){QPo=String(Hn);break a}}QPo=R_v}var vLo=QPo,Ae3={};var x6,nl;g.Yj=Xb();x6=O1()||YL("iPod");nl=YL("iPad");g.Wu=oCC();g.B4=Rb();g.ia=DH()&&!ob();var etC={},ff=null,KRG=eu||g.xM||typeof g.Qz.btoa=="function";var fH_=typeof Uint8Array!=="undefined",m83=!g.K6&&typeof btoa==="function",N5G=/[-_.]/g,izo={"-":"+",_:"/",".":"="},EX={};dy.prototype.isEmpty=function(){return this.C==null}; dy.prototype.sizeBytes=function(){var F=Gw(this);return F?F.length:0}; var d8J;var jbC=void 0;var ry=typeof Symbol==="function"&&typeof Symbol()==="symbol",GV4=new Set,OPC=Tw("jas",void 0,!0,!0),IM=Tw(void 0,"1oa",!0),oy=Tw(void 0,Symbol(),!0),ifG=Tw(void 0,"0actk"),Zz4=Tw(void 0,"8utk");Math.max.apply(Math,g.W(Object.values({HD_:1,Qcj:2,lY_:4,DQ_:8,qYG:16,RkN:32,hVI:64,acI:128,JDE:256,o0z:512,SkW:1024,E0_:2048,FJQ:4096,l2G:8192,p9R:16384})));var SJ=ry?OPC:"z_W",PWa={z_W:{value:0,configurable:!0,writable:!0,enumerable:!1}},Vm3=Object.defineProperties;var j2={},UF,o1z=[];YK(o1z,55);UF=Object.freeze(o1z);var WFo=Object.freeze({});var S1v=UX(function(F){return typeof F==="number"}),reo=UX(function(F){return typeof F==="string"}),sbY=UX(function(F){return typeof F==="boolean"}),bf=UX(function(F){return F!=null&&typeof F==="object"&&typeof F.then==="function"}),J8=UX(function(F){return!!F&&(typeof F==="object"||typeof F==="function")});var xK=typeof g.Qz.BigInt==="function"&&typeof g.Qz.BigInt(0)==="bigint";var fI=UX(function(F){return xK?F>=h_k&&F<=cm_:F[0]==="-"?Y1z(F,UW7):Y1z(F,xW4)}),UW7=Number.MIN_SAFE_INTEGER.toString(),h_k=xK?BigInt(Number.MIN_SAFE_INTEGER):void 0,xW4=Number.MAX_SAFE_INTEGER.toString(),cm_=xK?BigInt(Number.MAX_SAFE_INTEGER):void 0;var PVm=typeof Uint8Array.prototype.slice==="function",tL=0,Ze=0,bIz;var mL=typeof BigInt==="function"?BigInt.asIntN:void 0,nLJ=typeof BigInt==="function"?BigInt.asUintN:void 0,za=Number.isSafeInteger,qu=Number.isFinite,iv=Math.trunc,Rt7=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var P3;var Ta,gK3;g.A=Gwz.prototype;g.A.init=function(F,J,b,I){I=I===void 0?{}:I;this.FJ=I.FJ===void 0?!1:I.FJ;F&&(F=fG(F),this.U=F.buffer,this.D=F.gk,this.Z=J||0,this.T=b!==void 0?this.Z+b:this.U.length,this.C=this.Z)}; g.A.free=function(){this.clear();Bo.length<100&&Bo.push(this)}; g.A.clear=function(){this.U=null;this.D=!1;this.C=this.T=this.Z=0;this.FJ=!1}; g.A.reset=function(){this.C=this.Z}; g.A.AF=function(){var F=this.W;F||(F=this.U,F=this.W=new DataView(F.buffer,F.byteOffset,F.byteLength));return F}; var Bo=[];Tb.prototype.free=function(){this.C.clear();this.U=this.Z=-1;LR.length<100&&LR.push(this)}; Tb.prototype.reset=function(){this.C.reset();this.T=this.C.C;this.U=this.Z=-1}; var LR=[];g.A=CG.prototype;g.A.toJSON=function(){return B3(this)}; g.A.G7=function(F){return JSON.stringify(B3(this,F))}; g.A.clone=function(){var F=this.Z7;return new this.constructor(Yp(F,F[SJ]|0,!1))}; g.A.gk=function(){return!!((this.Z7[SJ]|0)&2)}; g.A.DM=j2;g.A.toString=function(){return this.Z7.toString()};var $LG,XWz;RM.prototype.length=function(){return this.C.length}; RM.prototype.end=function(){var F=this.C;this.C=[];return F};var x4=Uq(),n1a=Uq(),tTm=Uq(),ZPz=Uq(),HP_=Uq(),L3k=Uq(),FoW=Uq(),JJH=Uq();var ULC=tx(function(F,J,b,I,u){if(F.U!==2)return!1;SD(F,uP(J,I,b),u);return!0},cL4),xL3=tx(function(F,J,b,I,u){if(F.U!==2)return!1; SD(F,uP(J,I,b),u);return!0},cL4),w3=Symbol(),JQ=Symbol(),tJo=Symbol(),LF4=Symbol(),Zw,Ho;var b3t=q9(function(F,J,b){if(F.U!==1)return!1;a0(J,b,VH(F.C));return!0},ep,FoW),IaL=q9(function(F,J,b){if(F.U!==1)return!1; F=VH(F.C);a0(J,b,F===0?void 0:F);return!0},ep,FoW),u7z=q9(function(F,J,b,I){if(F.U!==1)return!1; Jx(J,b,I,VH(F.C));return!0},ep,FoW),waR=q9(function(F,J,b){if(F.U!==0)return!1; a0(J,b,d4(F.C));return!0},K5,HP_),Mze=q9(function(F,J,b){if(F.U!==0)return!1; F=d4(F.C);a0(J,b,F===0?void 0:F);return!0},K5,HP_),AJe=q9(function(F,J,b,I){if(F.U!==0)return!1; Jx(J,b,I,d4(F.C));return!0},K5,HP_),qmU=q9(function(F,J,b){if(F.U!==0)return!1; a0(J,b,Eq(F.C));return!0},p5,ZPz),vCR=q9(function(F,J,b){if(F.U!==0)return!1; F=Eq(F.C);a0(J,b,F===0?void 0:F);return!0},p5,ZPz),aaW=q9(function(F,J,b,I){if(F.U!==0)return!1; Jx(J,b,I,Eq(F.C));return!0},p5,ZPz),evz=q9(function(F,J,b){if(F.U!==1)return!1; a0(J,b,Gb(F.C));return!0},function(F,J,b){oK4(F,b,tmv(J))},L3k),Kom=v9(function(F,J,b){if(F.U!==1&&F.U!==2)return!1; J=t_(J,J[SJ]|0,b,!1);if(F.U==2)for(b=Eq(F.C)>>>0,b=F.C.C+b;F.C.C>>0);return!0},function(F,J,b){J=KI(J); J!=null&&J!=null&&(hx(F,b,0),k4(F.C,J))},Uq()),NYL=q9(function(F,J,b){if(F.U!==0)return!1; a0(J,b,Eq(F.C));return!0},function(F,J,b){J=e2(J); J!=null&&(J=parseInt(J,10),hx(F,b,0),Rmz(F.C,J))},Uq());g.z(A_Y,CG);g.z(mk,CG);var lw=[1,2,3];var laR=[0,lw,yJR,aaW,gCe];var fae=[0,JF,[0,b3t,waR]];g.z(yG,CG);var N9=[1,2,3];var Wob=[0,N9,AJe,u7z,IB,fae];g.z(iw,CG);var d4b=[0,JF,laR,Wob];var ECW=[0,[1,2,3],IB,[0,F6,-1,pat],IB,[0,F6,-1,qmU,pat],IB,[0,F6]];g.z(zy,CG);zy.prototype.LN=function(){var F=c3(this,3,dU,3,!0);OX(F);return F[void 0]};zy.prototype.C=M2o([0,F6,ECW,m4k,JF,d4b,evz,Kom]);g.z(vpz,CG);var zWa=globalThis.trustedTypes,f5;d3.prototype.toString=function(){return this.C+""};Gy.prototype.toString=function(){return this.C}; var fzG=new Gy("about:invalid#zClosurez");var cU_=B9("tel"),oN4=B9("sms"),lz_=[B9("data"),B9("http"),B9("https"),B9("mailto"),B9("ftp"),new P9(function(F){return/^[^:]*([/?#]|$)/.test(F)})],WLY=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;sQ.prototype.toString=function(){return this.C+""};QG.prototype.toString=function(){return this.C+""};OQ.prototype.toString=function(){return this.C};var hQ={};g.jGk=String.prototype.repeat?function(F,J){return F.repeat(J)}:function(F,J){return Array(J+1).join(F)};g.A=Fl.prototype;g.A.isEnabled=function(){if(!g.Qz.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{xD:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.A.set=function(F,J,b){var I=!1;if(typeof b==="object"){var u=b.dkW;I=b.secure||!1;var w=b.domain||void 0;var M=b.path||void 0;var q=b.xD}if(/[;=\s]/.test(F))throw Error('Invalid cookie name "'+F+'"');if(/[;\r\n]/.test(J))throw Error('Invalid cookie value "'+J+'"');q===void 0&&(q=-1);b=w?";domain="+w:"";M=M?";path="+M:"";I=I?";secure":"";q=q<0?"":q==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+q*1E3)).toUTCString();this.C.cookie=F+"="+J+b+M+q+I+(u!=null?";samesite="+ u:"")}; g.A.get=function(F,J){for(var b=F+"=",I=(this.C.cookie||"").split(";"),u=0,w;u=0;J--)this.remove(F[J])}; var s6=new Fl(typeof document=="undefined"?null:document);be.prototype.compress=function(F){var J,b,I,u;return g.S(function(w){switch(w.C){case 1:return J=new CompressionStream("gzip"),b=(new Response(J.readable)).arrayBuffer(),I=J.writable.getWriter(),g.T(w,I.write((new TextEncoder).encode(F)),2);case 2:return g.T(w,I.close(),3);case 3:return u=Uint8Array,g.T(w,b,4);case 4:return w.return(new u(w.U))}})}; be.prototype.isSupported=function(F){return F<1024?!1:typeof CompressionStream!=="undefined"};g.z(If,CG);ue.prototype.setInterval=function(F){this.intervalMs=F;this.bC&&this.enabled?(this.stop(),this.start()):this.bC&&this.stop()}; ue.prototype.start=function(){var F=this;this.enabled=!0;this.bC||(this.bC=setTimeout(function(){F.tick()},this.intervalMs),this.U=this.C())}; ue.prototype.stop=function(){this.enabled=!1;this.bC&&(clearTimeout(this.bC),this.bC=void 0)}; ue.prototype.tick=function(){var F=this;if(this.enabled){var J=Math.max(this.C()-this.U,0);J0?b:void 0));b=RF(b,4,aF(u>0?u:void 0));b=RF(b,5,aF(w>0?w:void 0));u=b.Z7;w=u[SJ]|0;b=w&2?b:new b.constructor(Yp(u,w,!0));Ax(M,qI,10,b)}M=this.C.clone();b=Date.now().toString();M=RF(M,4,lv(b));F=vo(M,iB,3,F.slice());I&&(M=new wl,I=RF(M,13,aF(I)), M=new MD,I=Ax(M,wl,2,I),M=new yx,I=Ax(M,MD,1,I),I=zb(I,2,9),Ax(F,yx,18,I));J&&mC(F,14,J);return F};var $Xa=function(){if(!g.Qz.addEventListener||!Object.defineProperty)return!1;var F=!1,J=Object.defineProperty({},"passive",{get:function(){F=!0}}); try{var b=function(){}; g.Qz.addEventListener("test",b,J);g.Qz.removeEventListener("test",b,J)}catch(I){}return F}();var gNY=iGz("AnimationEnd"),uX=iGz("TransitionEnd");g.Wz.prototype.U=0;g.Wz.prototype.reset=function(){this.C=this.T=this.Z;this.U=0}; g.Wz.prototype.getValue=function(){return this.T};g.z(zlY,CG);var G_5=g3(zlY);g.z(N47,CG);var wt=new function(){this.C=N47;this.isRepeated=0;this.U=MX;this.defaultValue=void 0};g.z(jX,g.R);g.A=jX.prototype;g.A.X_=function(){this.i6();this.U.stop();this.WN.stop();g.R.prototype.X_.call(this)}; g.A.dispatch=function(F){if(F instanceof iB)this.log(F);else try{var J=new iB,b=F.G7();var I=yH(J,8,b);this.log(I)}catch(u){}}; g.A.log=function(F){if(this.fW){F=F.clone();var J=this.zj++;F=mC(F,21,J);this.componentId&&yH(F,26,this.componentId);J=F;if(dLJ(J)==null){var b=Date.now();b=Number.isFinite(b)?b.toString():"0";RF(J,1,lv(b))}U8a(Xe(J,15))!=null||mC(J,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(b=this.experimentIds.clone(),Ax(J,If,16,b));J=this.C.length-1E3+1;J>0&&(this.C.splice(0,J),this.Z+=J);this.C.push(F);this.aU||this.U.enabled||this.U.start()}}; g.A.flush=function(F,J){var b=this;if(this.C.length===0)F&&F();else if(this.kQ&&this.N)this.T.U=3,E4_(this);else{var I=Date.now();if(this.dD>I&&this.Gj0&&(b.Gj=Date.now(),b.dD=b.Gj+f);p=wt.C?wt.U(p,wt.C,175237375):wt.U(p,175237375,null);if(p=p===null?void 0:p)p=Ae(p,1,-1),p!==-1&&(b.D=new g.Wz(p<1?1:p,3E5,.1),b.U.setInterval(b.D.getValue()))}}F&&F();b.W=0},a=function(K,p){var m=w5(u,iB,3); var y;var f=(y=U8a(Xe(u,14)))!=null?y:void 0;g.dK(b.D);b.U.setInterval(b.D.getValue());K===401&&w&&(b.qf=w);f&&(b.Z+=f);p===void 0&&(p=b.isRetryable(K));p&&(b.C=m.concat(b.C),b.aU||b.U.enabled||b.U.start());J&&J("net-send-failed",K);++b.W},e=function(){b.network&&b.network.send(q,v,a)}; M?M.then(function(K){q.requestHeaders["Content-Encoding"]="gzip";q.requestHeaders["Content-Type"]="application/binary";q.body=K;q.Sw=2;e()},function(){e()}):e()}}}}; g.A.i6=function(){this.T.isFinal=!0;this.flush();this.T.isFinal=!1}; g.A.isRetryable=function(F){return 500<=F&&F<600||F===401||F===0};GE.prototype.send=function(F,J,b){var I=this,u,w,M,q,v,a,e,K,p,m;return g.S(function(y){switch(y.C){case 1:return w=(u=I.Xo?new AbortController:void 0)?setTimeout(function(){u.abort()},F.timeoutMillis):void 0,g.lk(y,2,3),M=Object.assign({},{method:F.requestType, headers:Object.assign({},F.requestHeaders)},F.body&&{body:F.body},F.withCredentials&&{credentials:"include"},{signal:F.timeoutMillis&&u?u.signal:null}),g.T(y,fetch(F.url,M),5);case 5:q=y.U;if(q.status!==200){(v=b)==null||v(q.status);y.gD(3);break}if((a=J)==null){y.gD(7);break}return g.T(y,q.text(),8);case 8:a(y.U);case 7:case 3:g.Em(y);clearTimeout(w);g.jz(y,0);break;case 2:e=g.dY(y);switch((K=e)==null?void 0:K.name){case "AbortError":(p=b)==null||p(408);break;default:(m=b)==null||m(400)}y.gD(3)}})}; GE.prototype.Go=function(){return 4};g.z(Vx,g.R);Vx.prototype.aJ=function(){this.D=!0;return this}; Vx.prototype.build=function(){this.network||(this.network=new GE);var F=new jX({logSource:this.logSource,o3:this.o3?this.o3:kaJ,sessionIndex:this.sessionIndex,mEQ:this.x6,Wc:this.Z,aU:!1,aJ:this.D,XA:this.XA,network:this.network});g.k(this,F);if(this.U){var J=this.U,b=fb(F.T);yH(b,7,J)}F.V=new be;this.componentId&&(F.componentId=this.componentId);this.gM&&(F.gM=this.gM);this.pageId&&(F.pageId=this.pageId);this.C&&((b=this.C)?(F.experimentIds||(F.experimentIds=new If),J=F.experimentIds,b=b.G7(),yH(J, 4,b)):F.experimentIds&&RF(F.experimentIds,4));this.T&&(F.kQ=F.N);yx7(F.T);this.network.Cf&&this.network.Cf(this.logSource);this.network.n7G&&this.network.n7G(F);return F};g.z(Pz,g.R);Pz.prototype.flush=function(F){F=F||[];if(F.length){for(var J=new vpz,b=[],I=0;I-1?(J=F[M],b||(J.Ux=!1)):(J=new Sqv(J,this.src,w,!!I,u),J.Ux=b,F.push(J));return J}; g.A.remove=function(F,J,b,I){F=F.toString();if(!(F in this.listeners))return!1;var u=this.listeners[F];J=Qx(u,J,b,I);return J>-1?($e(u[J]),g.ZH(u,J),u.length==0&&(delete this.listeners[F],this.C--),!0):!1}; g.A.removeAll=function(F){F=F&&F.toString();var J=0,b;for(b in this.listeners)if(!F||b==F){for(var I=this.listeners[b],u=0;u-1?F[u]:null}; g.A.hasListener=function(F,J){var b=F!==void 0,I=b?F.toString():"",u=J!==void 0;return g.le(this.listeners,function(w){for(var M=0;M>>0);g.Fb(g.Zr,g.R);g.Zr.prototype[T4C]=!0;g.A=g.Zr.prototype;g.A.addEventListener=function(F,J,b,I){g.Dr(this,F,J,b,I)}; g.A.removeEventListener=function(F,J,b,I){RlJ(this,F,J,b,I)}; g.A.dispatchEvent=function(F){var J=this.XS;if(J){var b=[];for(var I=1;J;J=J.XS)b.push(J),++I}J=this.G3;I=F.type||F;if(typeof F==="string")F=new g.SX(F,J);else if(F instanceof g.SX)F.target=F.target||J;else{var u=F;F=new g.SX(I,J);g.Sq(F,u)}u=!0;var w;if(b)for(w=b.length-1;!F.U&&w>=0;w--){var M=F.currentTarget=b[w];u=Hz(M,I,!0,F)&&u}F.U||(M=F.currentTarget=J,u=Hz(M,I,!0,F)&&u,F.U||(u=Hz(M,I,!1,F)&&u));if(b)for(w=0;!F.U&&w0){this.U--;var F=this.C;this.C=F.next;F.next=null}else F=this.T();return F};var b5;u5.prototype.add=function(F,J){var b=cxv.get();b.set(F,J);this.U?this.U.next=b:this.C=b;this.U=b}; u5.prototype.remove=function(){var F=null;this.C&&(F=this.C,this.C=this.C.next,this.C||(this.U=null),F.next=null);return F}; var cxv=new Lb(function(){return new wb},function(F){return F.reset()}); wb.prototype.set=function(F,J){this.C=F;this.scope=J;this.next=null}; wb.prototype.reset=function(){this.next=this.scope=this.C=null};var Mf,Az=!1,o4o=new u5;n43.prototype.reset=function(){this.context=this.U=this.T=this.C=null;this.Z=!1}; var tDv=new Lb(function(){return new n43},function(F){F.reset()}); g.gb.prototype.then=function(F,J,b){return AQJ(this,FQ(typeof F==="function"?F:null),FQ(typeof J==="function"?J:null),b)}; g.gb.prototype.$goog_Thenable=!0;g.A=g.gb.prototype;g.A.finally=function(F){var J=this;F=FQ(F);return new Promise(function(b,I){b53(J,function(u){F();b(u)},function(u){F(); I(u)})})}; g.A.rX=function(F,J){return AQJ(this,null,FQ(F),J)}; g.A.catch=g.gb.prototype.rX;g.A.cancel=function(F){if(this.C==0){var J=new l5(F);g.qf(function(){Ii_(this,J)},this)}}; g.A.BqD=function(F){this.C=0;pu(this,2,F)}; g.A.vjQ=function(F){this.C=0;pu(this,3,F)}; g.A.YV=function(){for(var F;F=uvv(this);)w9z(this,F,this.C,this.V);this.W=!1}; var qaz=N8;g.Fb(l5,iW);l5.prototype.name="cancel";g.Fb(g.fu,g.Zr);g.A=g.fu.prototype;g.A.enabled=!1;g.A.J_=null;g.A.setInterval=function(F){this.gg=F;this.J_&&this.enabled?(this.stop(),this.start()):this.J_&&this.stop()}; g.A.EjN=function(){if(this.enabled){var F=g.L3()-this.k9;F>0&&F0&&(this.getStatus(),this.W=setTimeout(this.hk.bind(this), this.Tj)),this.getStatus(),this.N=!0,this.C.send(F),this.N=!1}catch(M){this.getStatus(),rDa(this,M)}}; g.A.hk=function(){typeof nu!="undefined"&&this.C&&(this.Z="Timed out after "+this.Tj+"ms, aborting",this.U=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.A.abort=function(F){this.C&&this.T&&(this.getStatus(),this.T=!1,this.D=!0,this.C.abort(),this.D=!1,this.U=F||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),xV(this))}; g.A.X_=function(){this.C&&(this.T&&(this.T=!1,this.D=!0,this.C.abort(),this.D=!1),xV(this,!0));g.Us.k7.X_.call(this)}; g.A.zm=function(){this.iR()||(this.Gj||this.N||this.D?Sav(this):this.k$j())}; g.A.k$j=function(){Sav(this)}; g.A.isActive=function(){return!!this.C}; g.A.isComplete=function(){return g.tz(this)==4}; g.A.getStatus=function(){try{return g.tz(this)>2?this.C.status:-1}catch(F){return-1}}; g.A.getResponseHeader=function(F){if(this.C&&this.isComplete())return F=this.C.getResponseHeader(F),F===null?void 0:F}; g.A.getLastError=function(){return typeof this.Z==="string"?this.Z:String(this.Z)};Jv.prototype.send=function(F,J,b){J=J===void 0?function(){}:J; b=b===void 0?function(){}:b; Bla(F.url,function(I){I=I.target;ZL(I)?J(g.Hj(I)):b(I.getStatus())},F.requestType,F.body,F.requestHeaders,F.timeoutMillis,F.withCredentials)}; Jv.prototype.Go=function(){return 1};I6.prototype.done=function(){this.logger.Fg(this.event,b3()-this.startTime)}; g.z(u3,em);g.z(M6,u3);g.A=M6.prototype;g.A.VV=function(){}; g.A.n1=function(){}; g.A.Fg=function(){}; g.A.AN=function(){}; g.A.oE=function(){}; g.A.sX=function(F,J,b){return b}; g.A.X9=function(){}; g.A.U4=function(){}; g.A.ZM=function(){}; g.A.YE=function(){}; g.z(Av,u3);g.A=Av.prototype;g.A.update=function(F){this.logger.dispose();this.logger=F}; g.A.n1=function(F){this.logger.n1(F)}; g.A.Fg=function(F,J){this.logger.Fg(F,J)}; g.A.AN=function(F){this.logger.AN(F)}; g.A.oE=function(){this.logger.oE()}; g.A.sX=function(F,J,b){return this.logger.sX(F,J,b)}; g.A.X9=function(F){this.logger.X9(F)}; g.A.U4=function(F){this.logger.U4(F)}; g.A.ZM=function(F){this.logger.ZM(F)}; g.A.YE=function(F){this.logger.YE(F)}; g.A.DL=function(F){this.logger instanceof a6&&this.logger.DL(F)}; g.A.VV=function(F){this.logger.VV(F)}; g.z(q6,g.R);g.z(vR,u3);g.A=vR.prototype;g.A.DL=function(F){this.uF=F}; g.A.VV=function(F){this.metrics.whE.Ic(F,this.bk)}; g.A.n1=function(F){this.metrics.eventCount.C(F,this.bk)}; g.A.Fg=function(F,J){this.metrics.pp.Ic(J,F,this.uF,this.bk)}; g.A.AN=function(F){this.metrics.errorCount.C(F,this.uF,this.bk)}; g.A.sX=function(F,J,b){function I(M){if(!u.iR()){var q=b3()-w;u.metrics.TBR.Ic(q,F,J,M,u.uF,u.bk)}} var u=this,w=b3();b.then(function(){I(0)},function(M){M instanceof jP?I(M.code):I(-1)}); return b}; g.A.X9=function(F){this.metrics.Z8v.C(F,this.uF,this.bk)}; g.A.U4=function(F){this.metrics.V7.C(F,this.uF,this.bk)}; g.A.ZM=function(F){this.metrics.ecG.C(F,this.uF,this.bk)}; g.z(a6,vR);a6.prototype.YE=function(F){var J=this;this.C.dispose();this.U&&this.service.dispose();this.service=this.options.SK("46",this.options.J$.concat(F));this.C=new q6(function(){return void J.service.AM()},this.options.Tg); this.metrics=$Da(this.service);this.T=F}; a6.prototype.oE=function(){X14(this.C)};g.z(eW,CG);g.z(K2,CG);g.z(p2,CG);var BY8=g3(p2),R6k=function(F){return UX(function(J){return J instanceof F&&!((J.Z7[SJ]|0)&2)})}(p2); p2.messageId="bfkj";g.z(M8,CG);g.z(g8,CG);var DDa=g3(g8);g.z(y3,g.R);y3.prototype.snapshot=function(F){if(this.iR())throw Error("Already disposed");this.logger.n1("n");var J=this.logger.share();return this.T.then(function(b){var I=b.M3;return new Promise(function(u){var w=new I6(J,"n");I(function(M){w.done();J.VV(M.length);J.oE();J.dispose();u(M)},[F.Gi, F.hV,F.Hw,F.tV])})})}; y3.prototype.BA=function(F){var J=this;if(this.iR())throw Error("Already disposed");this.logger.n1("n");var b=w8(this.logger,function(){return J.Z([F.Gi,F.hV,F.Hw,F.tV])},"n"); this.logger.VV(b.length);this.logger.oE();return b}; y3.prototype.qw=function(F){this.T.then(function(J){var b;(b=J.dY_)==null||b(F)})}; y3.prototype.OO=function(){return this.logger.share()};g.z(l3,CG);g.z(f2,CG);WR.prototype.s5=function(F,J){var b=this,I,u,w,M,q;return g.S(function(v){if(v.C==1){var a=new l3;I=iP(a,1,b.vJ);F&&iP(I,2,F);J&&iP(I,3,J);u=b.C();return g.T(v,b.client.create(I,u),2)}w=v.U;M=VI(xp(w,2));if(M.length){a=v.return;var e=new Uint8Array(M.length);for(var K=0;K0;)J[b++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(F%62),F=Math.floor(F/62);return J.join("")}};var y6a;g.z(r8,g.R);r8.prototype.fA=function(F,J){var b=this.iy(F);J==null||J(b);return w8(this.logger,function(){return g.zw(b,2)},this.T)}; y6a=Symbol.dispose;g.z(Y9,r8);Y9.prototype.iy=function(F,J){var b=this;this.logger.n1(this.C);++this.D>=this.W&&this.U.resolve();var I=F();F=w8(this.logger,function(){return b.Z(I)},"C"); if(F===void 0)throw new uW(17,"YNJ:Undefined");if(!(F instanceof Uint8Array))throw new uW(18,"ODM:Invalid");J==null||J(F);return F}; g.z($9,r8);$9.prototype.iy=function(){return this.Z}; g.z(C2,r8);C2.prototype.iy=function(){var F=this;return w8(this.logger,function(){return lV(F.Z)},"d")}; C2.prototype.fA=function(){return this.Z}; g.z(X5,r8);X5.prototype.iy=function(){if(this.Z)return this.Z;this.Z=ibz(this,function(F){return"_"+mI_(F)}); return ibz(this,function(F){return F})}; g.z(DF,r8);DF.prototype.iy=function(F){var J=F();if(J.length>118)throw new uW(19,"DFO:Invalid");F=Math.floor(Date.now()/1E3);var b=[Math.random()*255,Math.random()*255],I=b.concat([this.Z&255,this.clientState],[F>>24&255,F>>16&255,F>>8&255,F&255]);F=new Uint8Array(2+I.length+J.length);F[0]=34;F[1]=I.length+J.length;F.set(I,2);F.set(J,2+I.length);J=F.subarray(2);for(I=b=b.length;I150))try{this.cache=new ark(F,this.logger)}catch(J){this.reportError(new uW(22,"GBJ:init",J))}}; k9.prototype.reportError=function(F){this.logger.AN(F.code);this.onError(F);return F}; g.z(cR,k9);cR.prototype.Ey=function(){return this.Z.promise}; cR.prototype.iy=function(F){return OU(this,Object.assign({},F),!1)}; cR.prototype.fA=function(F){return OU(this,Object.assign({},F),!0)}; var EeJ=function(F){return UX(function(J){if(!J8(J))return!1;for(var b=g.N(Object.entries(F)),I=b.next();!I.done;I=b.next()){var u=g.N(I.value);I=u.next().value;u=u.next().value;if(!(I in J)){if(u.WUN===!0)continue;return!1}if(!u(J[I]))return!1}return!0})}({w0:function(F){return UX(function(J){return J instanceof F})}(d8)},"");g.z(x9,CG);var Smt=g3(x9);VXC.prototype.getMetadata=function(){return this.metadata};n2.prototype.getMetadata=function(){return this.metadata}; n2.prototype.getStatus=function(){return this.status};tv.prototype.V=function(F,J){J=J===void 0?{}:J;return new VXC(F,this,J)}; tv.prototype.getName=function(){return this.name};var sGe=new tv("/google.internal.waa.v1.Waa/Create",l3,x9,function(F){return F.G7()},Smt);g.z(ZF,CG);var TYe=new tv("/google.internal.waa.v1.Waa/GenerateIT",f2,ZF,function(F){return F.G7()},g3(ZF));var uQ7=new Set(["SAPISIDHASH","APISIDHASH"]);var Zb7=Promise;g.z(HR,CG);HR.prototype.getValue=function(){var F=Xe(this,2);if(Array.isArray(F)||F instanceof CG)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return xp(this,2)};g.z(L2,CG);L2.prototype.getMessage=function(){return pG(this,2)}; var sDJ=g3(L2);FB.prototype.d$=function(F,J){F=="data"?this.T.push(J):F=="metadata"?this.D.push(J):F=="status"?this.W.push(J):F=="end"?this.Z.push(J):F=="error"&&this.U.push(J);return this}; FB.prototype.removeListener=function(F,J){F=="data"?wR(this.T,J):F=="metadata"?wR(this.D,J):F=="status"?wR(this.W,J):F=="end"?wR(this.Z,J):F=="error"&&wR(this.U,J);return this}; FB.prototype.cancel=function(){this.C.abort()}; FB.prototype.cancel=FB.prototype.cancel;FB.prototype.removeListener=FB.prototype.removeListener;FB.prototype.on=FB.prototype.d$;g.z(BKG,Error);g.Fb(g.Ml,Nl7);g.Ml.prototype.C=function(){var F=new AN(this.Z,this.T);this.U&&F.setCredentialsMode(this.U);return F}; g.Ml.prototype.setCredentialsMode=function(F){this.U=F}; g.Fb(AN,g.Zr);g.A=AN.prototype;g.A.open=function(F,J){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.Tj=F;this.N=J;this.readyState=1;ql(this)}; g.A.send=function(F){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.C=!0;var J={headers:this.Y,method:this.Tj,credentials:this.D,cache:void 0};F&&(J.body=F);(this.eE||g.Qz).fetch(new Request(this.N,J)).then(this.PRj.bind(this),this.My.bind(this))}; g.A.abort=function(){this.response=this.responseText="";this.Y=new Headers;this.status=0;this.T&&this.T.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.C&&this.readyState!=4&&(this.C=!1,vt(this));this.readyState=0}; g.A.PRj=function(F){if(this.C&&(this.Z=F,this.U||(this.status=this.Z.status,this.statusText=this.Z.statusText,this.U=F.headers,this.readyState=2,ql(this)),this.C&&(this.readyState=3,ql(this),this.C)))if(this.responseType==="arraybuffer")F.arrayBuffer().then(this.u_W.bind(this),this.My.bind(this));else if(typeof g.Qz.ReadableStream!=="undefined"&&"body"in F){this.T=F.body.getReader();if(this.W){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.'); this.response=[]}else this.response=this.responseText="",this.V=new TextDecoder;YPv(this)}else F.text().then(this.Gjv.bind(this),this.My.bind(this))}; g.A.rzQ=function(F){if(this.C){if(this.W&&F.value)this.response.push(F.value);else if(!this.W){var J=F.value?F.value:new Uint8Array(0);if(J=this.V.decode(J,{stream:!F.done}))this.response=this.responseText+=J}F.done?vt(this):ql(this);this.readyState==3&&YPv(this)}}; g.A.Gjv=function(F){this.C&&(this.response=this.responseText=F,vt(this))}; g.A.u_W=function(F){this.C&&(this.response=F,vt(this))}; g.A.My=function(){this.C&&vt(this)}; g.A.setRequestHeader=function(F,J){this.Y.append(F,J)}; g.A.getResponseHeader=function(F){return this.U?this.U.get(F.toLowerCase())||"":""}; g.A.getAllResponseHeaders=function(){if(!this.U)return"";for(var F=[],J=this.U.entries(),b=J.next();!b.done;)b=b.value,F.push(b[0]+": "+b[1]),b=J.next();return F.join("\r\n")}; g.A.setCredentialsMode=function(F){this.D=F}; Object.defineProperty(AN.prototype,"withCredentials",{get:function(){return this.D==="include"}, set:function(F){this.setCredentialsMode(F?"include":"same-origin")}});g.a2.prototype.toString=function(){var F=[],J=this.D;J&&F.push(iF(J,Ymb,!0),":");var b=this.C;if(b||J=="file")F.push("//"),(J=this.Y)&&F.push(iF(J,Ymb,!0),"@"),F.push(g.x_(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),b=this.T,b!=null&&F.push(":",String(b));if(b=this.U)this.C&&b.charAt(0)!="/"&&F.push("/"),F.push(iF(b,b.charAt(0)=="/"?$48:CkW,!0));(b=this.Z.toString())&&F.push("?",b);(b=this.W)&&F.push("#",iF(b,XaR));return F.join("")}; g.a2.prototype.resolve=function(F){var J=this.clone(),b=!!F.D;b?g.eh(J,F.D):b=!!F.Y;b?J.Y=F.Y:b=!!F.C;b?g.KM(J,F.C):b=F.T!=null;var I=F.U;if(b)g.pM(J,F.T);else if(b=!!F.U){if(I.charAt(0)!="/")if(this.C&&!this.U)I="/"+I;else{var u=J.U.lastIndexOf("/");u!=-1&&(I=J.U.slice(0,u+1)+I)}u=I;if(u==".."||u==".")I="";else if(g.E1(u,"./")||g.E1(u,"/.")){I=Wk(u,"/");u=u.split("/");for(var w=[],M=0;M1||w.length==1&&w[0]!="")&&w.pop(), I&&M==u.length&&w.push("")):(w.push(q),I=!0)}I=w.join("/")}else I=u}b?J.U=I:b=F.Z.toString()!=="";b?gR(J,F.Z.clone()):b=!!F.W;b&&(J.W=F.W);return J}; g.a2.prototype.clone=function(){return new g.a2(this)}; var Ymb=/[#\/\?@]/g,CkW=/[#\?:]/g,$48=/[#\?]/g,CBo=/[#\?@]/g,XaR=/#/g;g.A=yu.prototype;g.A.add=function(F,J){lF(this);this.T=null;F=fM(this,F);var b=this.C.get(F);b||this.C.set(F,b=[]);b.push(J);this.U=this.U+1;return this}; g.A.remove=function(F){lF(this);F=fM(this,F);return this.C.has(F)?(this.T=null,this.U=this.U-this.C.get(F).length,this.C.delete(F)):!1}; g.A.clear=function(){this.C=this.T=null;this.U=0}; g.A.isEmpty=function(){lF(this);return this.U==0}; g.A.forEach=function(F,J){lF(this);this.C.forEach(function(b,I){b.forEach(function(u){F.call(J,u,I,this)},this)},this)}; g.A.b7=function(){lF(this);for(var F=Array.from(this.C.values()),J=Array.from(this.C.keys()),b=[],I=0;I0?String(F[0]):J}; g.A.toString=function(){if(this.T)return this.T;if(!this.C)return"";for(var F=[],J=Array.from(this.C.keys()),b=0;b>>3;w.T!=1&&w.T!=2&&w.T!=15&&jh(w,M,q,"unexpected tag");w.C=1;w.U=0;w.Z=0} function b(v){w.Z++;w.Z==5&&v&240&&jh(w,M,q,"message length too long");w.U|=(v&127)<<(w.Z-1)*7;v&128||(w.C=2,w.Y=0,typeof Uint8Array!=="undefined"?w.D=new Uint8Array(w.U):w.D=Array(w.U),w.U==0&&u())} function I(v){w.D[w.Y++]=v;w.Y==w.U&&u()} function u(){if(w.T<15){var v={};v[w.T]=w.D;w.V.push(v)}w.C=0} for(var w=this,M=F instanceof Array?F:new Uint8Array(F),q=0;q0?F:null};Gm.prototype.isInputValid=function(){return this.C===null}; Gm.prototype.Aw=function(){return this.C}; Gm.prototype.V4=function(){return!1}; Gm.prototype.parse=function(F){this.C!==null&&hh_(this,F,"stream already broken");var J=null;try{var b=this.T;b.T||oe3(b,F,"stream already broken");b.C+=F;var I=Math.floor(b.C.length/4);if(I==0)var u=null;else{try{var w=gLa(b.C.slice(0,I*4))}catch(M){oe3(b,b.C,M.message)}b.U+=I*4;b.C=b.C.slice(I*4);u=w}J=u===null?null:this.Z.parse(u)}catch(M){hh_(this,F,M.message)}this.U+=F.length;return J};var Rvk={INIT:0,rI:1,Ye:2,VW:3,nX:4,jK:5,STRING:6,yA:7,ue:8,dj:9,le:10,Qr:11,hm:12,z_:13,KS:14,xv:15,k$:16,gj:17,W4:18,nY:19,ph:20};g.A=Pt.prototype;g.A.isInputValid=function(){return this.D!=3}; g.A.Aw=function(){return this.N}; g.A.done=function(){return this.D===2}; g.A.V4=function(){return!1}; g.A.parse=function(F){function J(){for(;p0;)if(y=F[p++], w.Y===4?w.Y=0:w.Y++,!y)break a;if(y==='"'&&!w.V){w.C=I();break}if(y==="\\"&&!w.V&&(w.V=!0,y=F[p++],!y))break;if(w.V)if(w.V=!1,y==="u"&&(w.Y=1),y=F[p++])continue;else break;q.lastIndex=p;y=q.exec(F);if(!y){p=F.length+1;break}p=y.index+1;y=F[y.index];if(!y)break}w.T+=p-f;continue;case v.dj:if(!y)continue;y==="r"?w.C=v.le:Bt(w,F,p);continue;case v.le:if(!y)continue;y==="u"?w.C=v.Qr:Bt(w,F,p);continue;case v.Qr:if(!y)continue;y==="e"?w.C=I():Bt(w,F,p);continue;case v.hm:if(!y)continue;y==="a"?w.C=v.z_: Bt(w,F,p);continue;case v.z_:if(!y)continue;y==="l"?w.C=v.KS:Bt(w,F,p);continue;case v.KS:if(!y)continue;y==="s"?w.C=v.xv:Bt(w,F,p);continue;case v.xv:if(!y)continue;y==="e"?w.C=I():Bt(w,F,p);continue;case v.k$:if(!y)continue;y==="u"?w.C=v.gj:Bt(w,F,p);continue;case v.gj:if(!y)continue;y==="l"?w.C=v.W4:Bt(w,F,p);continue;case v.W4:if(!y)continue;y==="l"?w.C=I():Bt(w,F,p);continue;case v.nY:y==="."?w.C=v.ph:Bt(w,F,p);continue;case v.ph:if("0123456789.eE+-".indexOf(y)!==-1)continue;else p--,w.T--,w.C= I();continue;default:Bt(w,F,p)}}} function I(){var y=M.pop();return y!=null?y:v.rI} function u(y){w.U>1||(y||(y=K===-1?w.Z+F.substring(e,p):F.substring(K,p)),w.Tj?w.W.push(y):w.W.push(JSON.parse(y)),K=p)} for(var w=this,M=w.eE,q=w.Gj,v=Rvk,a=F.length,e=0,K=-1,p=0;p0?(m=w.W,w.W=[],m):null}return null};Tm.prototype.isInputValid=function(){return this.D===null}; Tm.prototype.Aw=function(){return this.D}; Tm.prototype.V4=function(){return!1}; Tm.prototype.parse=function(F){function J(v){w.U=6;w.D="The stream is broken @"+w.C+"/"+M+". Error: "+v+". With input:\n";throw Error(w.D);} function b(){w.T=new Pt({GaE:!0,gJ:!0})} function I(v){if(v)for(var a=0;a1)&&J("extra status: "+v);w.W=!0;var a={};a[2]=v[0];w.Z.push(a)}} for(var w=this,M=0;M0?(F=w.Z,w.Z=[],F):null};rR.prototype.qt=function(){return this.C}; rR.prototype.getStatus=function(){return this.D}; rR.prototype.Tj=function(F){F=F.target;try{if(F==this.C)a:{var J=g.tz(this.C),b=this.C.U,I=this.C.getStatus(),u=g.Hj(this.C);F=[];if(g.Lu(this.C)instanceof Array){var w=g.Lu(this.C);w.length>0&&w[0]instanceof Uint8Array&&(this.N=!0,F=w)}if(!(J<3||J==3&&!u&&F.length==0))if(I=I==200||I==206,J==4&&(b==8?Sh(this,7):b==7?Sh(this,8):I||Sh(this,3)),this.U||(this.U=c6a(this.C),this.U==null&&Sh(this,5)),this.D>2)CM(this);else{if(F.length>this.T){var M=F.length;b=[];try{if(this.U.V4())for(var q=0;qthis.T){q=u.slice(this.T);this.T=u.length;try{var a=this.U.parse(q);a!=null&&this.Z&&this.Z(a)}catch(e){Sh(this,5);CM(this);break a}}J==4?(u.length!= 0||this.N?Sh(this,2):Sh(this,4),CM(this)):Sh(this,1)}}}catch(e){Sh(this,6),CM(this)}};g.A=UIa.prototype;g.A.d$=function(F,J){var b=this.U[F];b||(b=[],this.U[F]=b);b.push(J);return this}; g.A.addListener=function(F,J){this.d$(F,J);return this}; g.A.removeListener=function(F,J){var b=this.U[F];b&&g.Hk(b,J);(F=this.C[F])&&g.Hk(F,J);return this}; g.A.once=function(F,J){var b=this.C[F];b||(b=[],this.C[F]=b);b.push(J);return this}; g.A.uqW=function(F){var J=this.U.data;J&&xIa(F,J);(J=this.C.data)&&xIa(F,J);this.C.data=[]}; g.A.Igv=function(){switch(this.T.getStatus()){case 1:XB(this,"readable");break;case 5:case 6:case 4:case 7:case 3:XB(this,"error");break;case 8:XB(this,"close");break;case 2:XB(this,"end")}};neo.prototype.serverStreaming=function(F,J,b,I){var u=this,w=F.substring(0,F.length-I.name.length);return tXz(function(M){var q=M.m$,v=M.getMetadata(),a=JzG(u,!1);v=buz(u,v,a,w+q.getName());var e=IL4(a,q.U,!0);M=q.C(M.xC);a.send(v,"POST",M);return e},this.Z).call(this,I.V(J,b))};wjv.prototype.create=function(F,J){return FIa(this.C,this.U+"/$rpc/google.internal.waa.v1.Waa/Create",F,J||{},sGe)};var D4e=1,ct=new WeakMap;g.z(Qu,g.R);Qu.prototype.signal=function(){var F=new DV(!1);this.signals.add(F);g.k(this,F);return F}; Qu.prototype.C_=function(F){return R2(this,F).C_()}; g.z(DV,g.R);g.A=DV.prototype;g.A.sj=function(){var F=this,J=D4e++;ko(function(){MPm(F,J)}); return J}; g.A.detach=function(F){var J=this;ko(function(){var b=J.slots.get(F);b&&b.jb()})}; g.A.value=function(F){return this.promise(!0,F)}; g.A.C_=function(){return this.Pf}; g.A.next=function(F){return this.promise(!1,F)}; g.A.promise=function(F,J){var b=this,I=JQa();ko(function(){if(b.iR())I.reject(new l5("Signal initially disposed"));else if(J&&J.iR())I.reject(new l5("Owner initially disposed"));else if(F&&b.Py&&b.Ai)I.resolve(b.Pf);else if(b.CX.add(I),Nf(I.promise,function(){b.CX.delete(I)}),J){var u=function(){I.reject(new l5("Owner asynchronously disposed"))}; Nf(I.promise,function(){var w=ct.get(J);w&&g.Hk(w,u)}); vVC(J,u)}}); return I.promise}; g.A.X_=function(){var F=this;g.R.prototype.X_.call(this);ko(function(){for(var J=g.N(F.slots.values()),b=J.next();!b.done;b=J.next())b=b.value.jb,b();F.slots.clear();J=g.N(F.CX);for(b=J.next();!b.done;b=J.next())b.value.reject(new l5("Signal asynchronously disposed"));F.CX.clear()})}; var o2=[],hN=!1;g.z(U4,g.R);U4.prototype.start=function(){var F=this;if(this.iR())throw new nM("Cannot start a disposed timer.");if(!this.W){this.Z=0;if(this.V){var J=Date.now();this.handle=setInterval(function(){F.Z=F.milliseconds>0?Math.trunc((Date.now()-J)/F.milliseconds):F.Z+1;var b;(b=F.U)==null||b.resolve();F.U=void 0;if(F.T){var I;(I=F.C)!=null&&O4(R2(I,F.T),F)}F.e3.aZ(F)},this.milliseconds)}else this.handle=setTimeout(function(){F.state=3; F.handle=void 0;F.Z=1;var b;(b=F.U)==null||b.resolve();F.U=void 0;if(F.T){var I;(I=F.C)!=null&&O4(R2(I,F.T),F)}F.e3.aZ(F)},this.milliseconds); this.state=1}}; U4.prototype.cancel=function(){if(this.W){this.clear();this.state=2;var F;(F=this.U)==null||F.reject(new xo);var J;(J=this.e3.Gm)==null||J.call(this);if(this.D){var b;(b=this.C)!=null&&O4(R2(b,this.D))}}}; U4.prototype.X_=function(){this.clear();var F;(F=this.U)==null||F.reject(new nM);this.state=4;g.R.prototype.X_.call(this)}; U4.prototype.clear=function(){this.V?clearInterval(this.handle):clearTimeout(this.handle);this.handle=void 0}; g.q4.Object.defineProperties(U4.prototype,{W:{configurable:!0,enumerable:!0,get:function(){return this.state===1}}, isCancelled:{configurable:!0,enumerable:!0,get:function(){return this.state===2}}, isExpired:{configurable:!0,enumerable:!0,get:function(){return this.state===3}}, tick:{configurable:!0,enumerable:!0,get:function(){return this.Z}}, Y:{configurable:!0,enumerable:!0,get:function(){switch(this.state){case 0:case 1:return this.U!=null||(this.U=new g.m6),this.U.promise;case 3:return Promise.resolve();case 2:return Promise.reject(new xo("Timer has been cancelled."));case 4:return Promise.reject(new nM("Timer has been disposed."));default:wU(this.state)}}}, aZ:{configurable:!0,enumerable:!0,get:function(){if(this.iR())throw new nM("Cannot attach a signal to a disposed timer.");this.T||(this.C!=null||(this.C=new Qu(this)),this.T=this.C.signal());return this.T}}, Gm:{configurable:!0,enumerable:!0,get:function(){if(this.iR())throw new nM("Cannot attach a signal to a disposed timer.");this.D||(this.C!=null||(this.C=new Qu(this)),this.D=this.C.signal());return this.D}}}); g.z(xo,iW);g.z(nM,iW);g.z(tN,k9);g.A=tN.prototype;g.A.isReady=function(){return!!this.C}; g.A.ready=function(){var F=this;return g.S(function(J){return g.T(J,F.T.promise,0)})}; g.A.s5=function(F){return KIa(this,this.logger.sX("c",F===void 0?1:F,this.lB.s5(z5().C,null)),new uW(10,"JVZ:Timeout"))}; g.A.prefetch=function(){this.state===1&&(this.wL=this.s5())}; g.A.start=function(){if(this.state===1){this.state=2;var F=new I6(this.logger,"r");this.ready().finally(function(){return void F.done()}); gV7(this)}}; g.A.iy=function(F){mfo(this,F);return OU(this,eB3(F),!1)}; g.A.fA=function(F){mfo(this,F);return OU(this,eB3(F),!0)};var Nb_={NONE:0,wSE:1},LIG={ZG:0,ehf:1,Tej:2,Zj_:3},sG={jR:"a",LSv:"d",VIDEO:"v"};Ht.prototype.isVisible=function(){return this.We?this.BV>=.3:this.BV>=.5};var q5={tm_:0,D_Q:1},Zu3={NONE:0,XxW:1,Q5D:2};LM.prototype.getValue=function(){return this.U}; g.z(FV,LM);FV.prototype.T=function(F){this.U===null&&g.jq(this.Z,F)&&(this.U=F)}; g.z(Jh,LM);Jh.prototype.T=function(F){this.U===null&&typeof F==="number"&&(this.U=F)}; g.z(bT,LM);bT.prototype.T=function(F){this.U===null&&typeof F==="string"&&(this.U=F)};II.prototype.disable=function(){this.U=!1}; II.prototype.enable=function(){this.U=!0}; II.prototype.isEnabled=function(){return this.U}; II.prototype.reset=function(){this.C={};this.U=!0;this.T={}};var rj=document,K_=window;var JNk=!g.K6&&!DH();vY.prototype.now=function(){return 0}; vY.prototype.U=function(){return 0}; vY.prototype.T=function(){return 0}; vY.prototype.C=function(){return 0};g.z(ew,vY);ew.prototype.now=function(){return aI()&&K_.performance.now?K_.performance.now():vY.prototype.now.call(this)}; ew.prototype.U=function(){return aI()&&K_.performance.memory?K_.performance.memory.totalJSHeapSize||0:vY.prototype.U.call(this)}; ew.prototype.T=function(){return aI()&&K_.performance.memory?K_.performance.memory.usedJSHeapSize||0:vY.prototype.T.call(this)}; ew.prototype.C=function(){return aI()&&K_.performance.memory?K_.performance.memory.jsHeapSizeLimit||0:vY.prototype.C.call(this)};var WIv=eP(function(){var F=!1;try{var J=Object.defineProperty({},"passive",{get:function(){F=!0}}); g.Qz.addEventListener("test",null,J)}catch(b){}return F});dfC.prototype.isVisible=function(){return mx(rj)===1};var jcJ={i8E:"allow-forms",flG:"allow-modals",Mo_:"allow-orientation-lock",E4j:"allow-pointer-lock",dJE:"allow-popups",llD:"allow-popups-to-escape-sandbox",QQz:"allow-presentation",Sa_:"allow-same-origin",H8D:"allow-scripts",VoG:"allow-top-navigation",hcj:"allow-top-navigation-by-user-activation"},Bb7=eP(function(){return Gqv()});var scz=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");lT.prototype.tF=function(F,J,b){F=F+"//"+J+b;var I=Xjk(this)-b.length;if(I<0)return"";this.C.sort(function(a,e){return a-e}); b=null;J="";for(var u=0;u=v.length){I-=v.length;F+=v;J=this.T;break}b=b==null?w:b}}I="";b!=null&&(I=""+J+"trn="+b);return F+I};PY.prototype.setInterval=function(F,J){return K_.setInterval(F,J)}; PY.prototype.clearInterval=function(F){K_.clearInterval(F)}; PY.prototype.setTimeout=function(F,J){return K_.setTimeout(F,J)}; PY.prototype.clearTimeout=function(F){K_.clearTimeout(F)};g.z(Ti,CG);Ti.prototype.C=M2o([0,IaL,Mze,-2,vCR]);var Hu_={Jdj:1,Zp:2,ekW:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};F67.prototype.fq=function(F){if(typeof F==="string"&&F.length!=0){var J=this.Dy;if(J.U){F=F.split("&");for(var b=F.length-1;b>=0;b--){var I=F[b].split("="),u=decodeURIComponent(I[0]);I.length>1?(I=decodeURIComponent(I[1]),I=/^[0-9]+$/g.exec(I)?parseInt(I,10):I):I=1;(u=J.C[u])&&u.T(I)}}}};var Mm=null;var C_=g.Qz.performance,k_e=!!(C_&&C_.mark&&C_.measure&&C_.clearMarks),YI=eP(function(){var F;if(F=k_e){var J=J===void 0?window:J;if(Mm===null){Mm="";try{F="";try{F=J.top.location.hash}catch(I){F=J.location.hash}if(F){var b=F.match(/\bdeid=([\d,]+)/);Mm=b?b[1]:""}}catch(I){}}J=Mm;F=!!J.indexOf&&J.indexOf("1337")>=0}return F}); $I.prototype.disable=function(){this.C=!1;this.events!==this.U.google_js_reporting_queue&&(YI()&&g.gy(this.events,MWm),this.events.length=0)}; $I.prototype.start=function(F,J){if(!this.C)return null;var b=u53()||IFm();F=new wRv(F,J,b);J="goog_"+F.label+"_"+F.uniqueId+"_start";C_&&YI()&&C_.mark(J);return F}; $I.prototype.end=function(F){if(this.C&&typeof F.value==="number"){var J=u53()||IFm();F.duration=J-F.value;J="goog_"+F.label+"_"+F.uniqueId+"_end";C_&&YI()&&C_.mark(J);!this.C||this.events.length>2048||this.events.push(F)}};Avz.prototype.l5=function(F,J,b,I,u){u=u||this.Zk;try{var w=new lT;w.C.push(1);w.U[1]=f_("context",F);J.error&&J.meta&&J.id||(J=new DA(kI(J)));if(J.msg){var M=J.msg.substring(0,512);w.C.push(2);w.U[2]=f_("msg",M)}var q=J.meta||{};if(this.Uj)try{this.Uj(q)}catch(m){}if(I)try{I(q)}catch(m){}I=[q];w.C.push(3);w.U[3]=I;var v=$fJ();if(v.U){var a=v.U.url||"";w.C.push(4);w.U[4]=f_("top",a)}var e={url:v.C.url||""};if(v.C.url){var K=v.C.url.match(YV);var p=Bj(K[1],null,K[3],K[4])}else p="";a=[e,{url:p}];w.C.push(5); w.U[5]=a;Jva(this.C,u,w,b)}catch(m){try{Jva(this.C,u,{context:"ecmserr",rctx:F,msg:kI(m),url:v&&v.C.url},b)}catch(y){}}return this.zK}; g.z(DA,b2J);var QF,RI,XV=new $I;QF=new function(){var F="https:";K_&&K_.location&&K_.location.protocol==="http:"&&(F="http:");this.U=F;this.C=.01}; RI=new Avz;K_&&K_.document&&(K_.document.readyState=="complete"?v9C():XV.C&&gf(K_,"load",function(){v9C()}));var K67=Date.now(),n_=-1,UG=-1,BR4,th=-1,xI=!1;g.A=ZA.prototype;g.A.getHeight=function(){return this.bottom-this.top}; g.A.clone=function(){return new ZA(this.top,this.right,this.bottom,this.left)}; g.A.contains=function(F){return this&&F?F instanceof ZA?F.left>=this.left&&F.right<=this.right&&F.top>=this.top&&F.bottom<=this.bottom:F.x>=this.left&&F.x<=this.right&&F.y>=this.top&&F.y<=this.bottom:!1}; g.A.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.A.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.A.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.A.scale=function(F,J){J=typeof J==="number"?J:F;this.left*=F;this.right*=F;this.top*=J;this.bottom*=J;return this};JW.prototype.Hg=function(F,J){return!!F&&(!(J===void 0?0:J)||this.volume==F.volume)&&this.T==F.T&&L_(this.C,F.C)&&!0};bu.prototype.Pb=function(){return this.V}; bu.prototype.Hg=function(F,J){return this.Z.Hg(F.Z,J===void 0?!1:J)&&this.V==F.V&&L_(this.T,F.T)&&L_(this.W,F.W)&&this.C==F.C&&this.D==F.D&&this.U==F.U&&this.Y==F.Y};var O3t={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},j7={rP:"start",PT:"firstquartile",yu:"midpoint",Cz:"thirdquartile",COMPLETE:"complete",ERROR:"error",J0:"metric",PAUSE:"pause",b8:"resume",LY:"skip",ew:"viewable_impression",Yz:"mute",UC:"unmute",Ri:"fullscreen",uG:"exitfullscreen",IL:"bufferstart",NB:"bufferfinish",kF:"fully_viewable_audible_half_duration_impression",oM:"measurable_impression",pm:"abandon",sD:"engagedview",qx:"impression",UD:"creativeview",Bt:"loaded", jm_:"progress",CLOSE:"close",HFN:"collapse",lWW:"overlay_resize",Qm_:"overlay_unmeasurable_impression",SYQ:"overlay_unviewable_impression",VS_:"overlay_viewable_immediate_impression",HcW:"overlay_viewable_end_of_session_impression",TJ:"custom_metric_viewable",nm:"audio_audible",b9:"audio_measurable",aL:"audio_impression"},D5z="start firstquartile midpoint thirdquartile resume loaded".split(" "),kim=["start","firstquartile","midpoint","thirdquartile"],rNk=["abandon"],c2={UNKNOWN:-1,rP:0,PT:1,yu:2, Cz:3,COMPLETE:4,J0:5,PAUSE:6,b8:7,LY:8,ew:9,Yz:10,UC:11,Ri:12,uG:13,kF:14,oM:15,pm:16,sD:17,qx:18,UD:19,Bt:20,TJ:21,IL:22,NB:23,aL:27,b9:28,nm:29};var g9J={PkI:"addEventListener",H4W:"getMaxSize",Vij:"getScreenSize",h3G:"getState",z3W:"getVersion",rrN:"removeEventListener",VBG:"isViewable"};g.A=g.uu.prototype;g.A.clone=function(){return new g.uu(this.left,this.top,this.width,this.height)}; g.A.contains=function(F){return F instanceof g.K$?F.x>=this.left&&F.x<=this.left+this.width&&F.y>=this.top&&F.y<=this.top+this.height:this.left<=F.left&&this.left+this.width>=F.left+F.width&&this.top<=F.top&&this.top+this.height>=F.top+F.height}; g.A.getSize=function(){return new g.gl(this.width,this.height)}; g.A.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.A.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.A.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.A.scale=function(F,J){J=typeof J==="number"?J:F;this.left*=F;this.width*=F;this.top*=J;this.height*=J;return this};var zPz={};VWk.prototype.update=function(F){F&&F.document&&(this.V=IN(!1,F,this.isMobileDevice),this.C=IN(!0,F,this.isMobileDevice),B84(this,F),P3a(this,F))};sN.prototype.cancel=function(){BY().clearTimeout(this.C);this.C=null}; sN.prototype.schedule=function(){var F=this,J=BY(),b=Sw().C.C;this.C=J.setTimeout(rf(b,oI(143,function(){F.U++;F.T.sample()})),pR3())};g.A=Yg.prototype;g.A.WO=function(){return!1}; g.A.initialize=function(){return this.isInitialized=!0}; g.A.gE=function(){return this.C.WN}; g.A.N4=function(){return this.C.Tj}; g.A.R6=function(F,J){if(!this.Tj||(J===void 0?0:J))this.Tj=!0,this.WN=F,this.Y=0,this.C!=this||CL(this)}; g.A.getName=function(){return this.C.dD}; g.A.bH=function(){return this.C.hA()}; g.A.hA=function(){return{}}; g.A.UT=function(){return this.C.Y}; g.A.EZ=function(){var F=Tv();F.C=IN(!0,this.T,F.isMobileDevice)}; g.A.d8=function(){P3a(Tv(),this.T)}; g.A.mT=function(){return this.Z.C}; g.A.sample=function(){}; g.A.isActive=function(){return this.C.W}; g.A.Qf=function(F){var J=this.C;this.C=F.UT()>=this.Y?F:this;J!==this.C?(this.W=this.C.W,CL(this)):this.W!==this.C.W&&(this.W=this.C.W,CL(this))}; g.A.e$=function(F){if(F.U===this.C){var J=!this.Z.Hg(F,this.N);this.Z=F;J&&SUG(this)}}; g.A.s1=function(){return this.N}; g.A.dispose=function(){this.kQ=!0}; g.A.iR=function(){return this.kQ};g.A=Xw.prototype;g.A.observe=function(){return!0}; g.A.unobserve=function(){}; g.A.Ei=function(F){this.D=F}; g.A.dispose=function(){if(!this.iR()){var F=this.U;g.Hk(F.D,this);F.N&&this.s1()&&rv7(F);this.unobserve();this.Gj=!0}}; g.A.iR=function(){return this.Gj}; g.A.bH=function(){return this.U.bH()}; g.A.UT=function(){return this.U.UT()}; g.A.gE=function(){return this.U.gE()}; g.A.N4=function(){return this.U.N4()}; g.A.Qf=function(){}; g.A.e$=function(){this.Sy()}; g.A.s1=function(){return this.kQ};g.A=Qf.prototype;g.A.UT=function(){return this.C.UT()}; g.A.gE=function(){return this.C.gE()}; g.A.N4=function(){return this.C.N4()}; g.A.create=function(F,J,b){var I=null;this.C&&(I=this.fM(F,J,b),$g(this.C,I));return I}; g.A.l0=function(){return this.A5()}; g.A.A5=function(){return!1}; g.A.init=function(F){return this.C.initialize()?($g(this.C,this),this.Z=F,!0):!1}; g.A.Qf=function(F){F.UT()==0&&this.Z(F.gE(),this)}; g.A.e$=function(){}; g.A.s1=function(){return!1}; g.A.dispose=function(){this.D=!0}; g.A.iR=function(){return this.D}; g.A.bH=function(){return{}};RN.prototype.add=function(F,J,b){++this.T;F=new YUz(F,J,b);this.C.push(new YUz(F.U,F.C,F.T+this.T/4096));this.U=!0;return this};RPJ.prototype.toString=function(){var F="//pagead2.googlesyndication.com//pagead/gen_204",J=kg(this.C);J.length>0&&(F+="?"+J);return F};ON.prototype.update=function(F,J,b){F&&(this.C+=J,this.U+=J,this.Z+=J,this.T=Math.max(this.T,this.Z));if(b===void 0?!F:b)this.Z=0};var hPz=[1,.75,.5,.3,0];oN.prototype.update=function(F,J,b,I,u,w){w=w===void 0?!0:w;J=u?Math.min(F,J):J;for(u=0;u0&&J>=M;M=!(F>0&&F>=M)||b;this.C[u].update(w&&q,I,!w||M)}};tW.prototype.update=function(F,J,b,I){this.V=this.V!=-1?Math.min(this.V,J.BV):J.BV;this.eE=Math.max(this.eE,J.BV);this.Gj=this.Gj!=-1?Math.min(this.Gj,J.N_):J.N_;this.WN=Math.max(this.WN,J.N_);this.bR.update(J.N_,b.N_,J.C,F,I);this.qf+=F;J.BV===0&&(this.dD+=F);this.U.update(J.BV,b.BV,J.C,F,I);b=I||b.We!=J.We?b.isVisible()&&J.isVisible():b.isVisible();J=!J.isVisible()||J.C;this.KW.update(b,F,J)}; tW.prototype.kI=function(){return this.KW.T>=this.nW};if(rj&&rj.URL){var oCL=rj.URL,hv5;if(hv5=!!oCL){var cJk;a:{if(oCL){var U4W=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var AF=U4W.exec(decodeURIComponent(oCL));if(AF){cJk=AF[1]&&AF[1].length>1?AF[1].substring(1):"true";break a}}catch(F){}}cJk=""}hv5=cJk.length>0}RI.zK=!hv5};var x4U=new ZA(0,0,0,0);var L6v=new ZA(0,0,0,0);g.z(JS,g.R);g.A=JS.prototype; g.A.X_=function(){if(this.f4.C){if(this.QO.Jq){var F=this.f4.C;F.removeEventListener&&F.removeEventListener("mouseover",this.QO.Jq,p_());this.QO.Jq=null}this.QO.Bd&&(F=this.f4.C,F.removeEventListener&&F.removeEventListener("mouseout",this.QO.Bd,p_()),this.QO.Bd=null)}this.Eu&&this.Eu.dispose();this.JF&&this.JF.dispose();delete this.W8;delete this.Ql;delete this.Pi;delete this.f4.EG;delete this.f4.C;delete this.QO;delete this.Eu;delete this.JF;delete this.Dy;g.R.prototype.X_.call(this)}; g.A.IG=function(){return this.JF?this.JF.C:this.position}; g.A.fq=function(F){Sw().fq(F)}; g.A.s1=function(){return!1}; g.A.wl=function(){return new tW}; g.A.v9=function(){return this.W8}; g.A.x5=function(F){return IVm(this,F,1E4)}; g.A.VG=function(F,J,b,I,u,w,M){this.Pc||(this.NN&&(F=this.AU(F,b,u,M),I=I&&this.HD.BV>=(this.We()?.3:.5),this.Ww(w,F,I),this.y5=J,F.BV>0&&-1===this.BU&&(this.BU=J),this.aj==-1&&this.kI()&&(this.aj=J),this.i5==-2&&(this.i5=LL(this.IG())?F.BV:-1),this.HD=F),this.Ql(this))}; g.A.Ww=function(F,J,b){this.v9().update(F,J,this.HD,b)}; g.A.Cb=function(){return new Ht}; g.A.AU=function(F,J,b,I){b=this.Cb();b.C=J;J=BY().U;J=mx(rj)===0?-1:J.isVisible()?0:1;b.U=J;b.BV=this.va(F);b.We=this.We();b.N_=I;return b}; g.A.va=function(F){return this.opacity===0&&M5(this.Dy,"opac")===1?0:F}; g.A.We=function(){return!1}; g.A.iM=function(){return this.oQQ||this.pNW}; g.A.YW=function(){cY()}; g.A.iN=function(){cY()}; g.A.E0=function(){return 0}; g.A.kI=function(){return this.W8.kI()}; g.A.NZ=function(){var F=this.NN;F=(this.hasCompleted||this.iR())&&!F;var J=Sw().U!==2||this.h4G;return this.Pc||J&&F?2:this.kI()?4:3}; g.A.yY=function(){return 0};g.I8.prototype.next=function(){return g.qm}; g.qm={done:!0,value:void 0};g.I8.prototype.WF=function(){return this};g.z(voz,Ht);var vI=e$k([void 0,1,2,3,4,8,16]),aB=e$k([void 0,4,8,16]),nC1={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:AS("p0",aB),p1:AS("p1",aB),p2:AS("p2",aB),p3:AS("p3",aB),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:MN("mtos1",[0,2,4],!1,aB),mtos2:MN("mtos2",[0,2,4],!1,aB),mtos3:MN("mtos3",[0,2,4],!1,aB),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:AS("a0",aB),a1:AS("a1",aB),a2:AS("a2",aB),a3:AS("a3",aB),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:AS("c0",aB),c1:AS("c1",aB),c2:AS("c2",aB),c3:AS("c3",aB),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:AS("qmtos",vI),qnc:AS("qnc",vI),qmv:AS("qmv",vI),qnv:AS("qnv",vI), 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:AS("ss0",aB),ss1:AS("ss1",aB),ss2:AS("ss2",aB),ss3:AS("ss3",aB),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"},tzz=Object.assign({},nC1,{avid:vj("audio"),avas:"avas",vs:"vs"}),Z3e={atos:"atos",avt:MN("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(F,J){return function(b){return b[F]===void 0&&J!==void 0?J:b[F]}}("ss",0), t:"t"};e7.prototype.getValue=function(){return this.U}; e7.prototype.update=function(F,J){F>=32||(this.C&1<=.5;Pc(J.volume)&&(this.Z=this.Z!=-1?Math.min(this.Z,J.volume):J.volume,this.W=Math.max(this.W,J.volume));w&&(this.kQ+=F,this.N+=u?F:0);this.C.update(J.BV,b.BV,J.C,F,I,u);this.T.update(!0,F);this.D.update(u,F);this.Tj.update(b.fullscreen,F);this.cN.update(u&&!w,F);F=Math.floor(J.mediaTime/1E3);this.fW.update(F,J.isVisible());this.oI.update(F,J.BV>=1);this.Jz.update(F, w2(J))}};iMk.prototype.U=function(F){this.T||(this.C(F)?(F=PTk(this.N,this.Z,F),this.D|=F,F=F==0):F=!1,this.T=F)};g.z(g2,iMk);g2.prototype.C=function(){return!0}; g2.prototype.W=function(){return!1}; g2.prototype.getId=function(){var F=this,J=Go(j7,function(b){return b==F.Z}); return c2[J].toString()}; g2.prototype.toString=function(){var F="";this.W()&&(F+="c");this.T&&(F+="s");this.D>0&&(F+=":"+this.D);return this.getId()+F};g.z(ma,g2);ma.prototype.U=function(F,J){J=J===void 0?null:J;J!=null&&this.V.push(J);g2.prototype.U.call(this,F)};g.z(yC,z$o);yC.prototype.U=function(){return null}; yC.prototype.T=function(){return[]};g.z(iR,Xw);g.A=iR.prototype;g.A.qV=function(){if(this.element){var F=this.element,J=this.U.C.T;try{try{var b=E9_(F.getBoundingClientRect())}catch(a){b=new ZA(0,0,0,0)}var I=b.right-b.left,u=b.bottom-b.top,w=fF4(F,J),M=w.x,q=w.y;var v=new ZA(Math.round(q),Math.round(M+I),Math.round(q+u),Math.round(M))}catch(a){v=x4U.clone()}this.T=v;this.C=s6C(this,this.T)}}; g.A.RJ=function(){this.W=this.U.Z.C}; g.A.Nn=function(F){var J=M5(this.Dy,"od")==1;return H2Y(F,this.W,this.element,J)}; g.A.gQ=function(){this.timestamp=cY()}; g.A.Sy=function(){this.gQ();this.qV();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var F=this.element;var J=new g.gl(F.videoWidth,F.videoHeight);F=this.C;var b=HY(F),I=F.getHeight(),u=J.width;J=J.height;u<=0||J<=0||b<=0||I<=0||(u/=J,J=b/I,F=F.clone(),u>J?(b/=u,I=(I-b)/2,I>0&&(I=F.top+I,F.top=Math.round(I),F.bottom=Math.round(I+b))):(I*=u,b=Math.round((b-I)/2),b>0&&(b=F.left+b,F.left=Math.round(b),F.right=Math.round(b+I))));this.C=F}this.RJ(); F=this.C;b=this.W;F=F.left<=b.right&&b.left<=F.right&&F.top<=b.bottom&&b.top<=F.bottom?new ZA(Math.max(F.top,b.top),Math.min(F.right,b.right),Math.min(F.bottom,b.bottom),Math.max(F.left,b.left)):new ZA(0,0,0,0);b=F.top>=F.bottom||F.left>=F.right?new ZA(0,0,0,0):F;F=this.U.Z;J=u=I=0;if((this.C.bottom-this.C.top)*(this.C.right-this.C.left)>0)if(this.Nn(b))b=new ZA(0,0,0,0);else{I=Tv().Z;J=new ZA(0,I.height,I.width,0);var w;I=FL(b,(w=this.D)!=null?w:this.C);u=FL(b,Tv().C);J=FL(b,J)}w=b.top>=b.bottom|| b.left>=b.right?new ZA(0,0,0,0):Fw(b,-this.C.left,-this.C.top);Su()||(u=I=0);this.N=new bu(F,this.element,this.C,w,I,u,this.timestamp,J)}; g.A.getName=function(){return this.U.getName()};var H3b=new ZA(0,0,0,0);g.z(zZ,iR);g.A=zZ.prototype;g.A.observe=function(){this.Z();return!0}; g.A.e$=function(){iR.prototype.Sy.call(this)}; g.A.gQ=function(){}; g.A.qV=function(){}; g.A.Sy=function(){this.Z();iR.prototype.Sy.call(this)}; g.A.Qf=function(F){F=F.isActive();F!==this.Y&&(F?this.Z():(Tv().C=new ZA(0,0,0,0),this.C=new ZA(0,0,0,0),this.W=new ZA(0,0,0,0),this.timestamp=-1));this.Y=F};var eb={},PF7=(eb.firstquartile=0,eb.midpoint=1,eb.thirdquartile=2,eb.complete=3,eb);g.z(lR,JS);g.A=lR.prototype;g.A.s1=function(){return!0}; g.A.ZX=function(){return this.vS==2}; g.A.x5=function(F){return IVm(this,F,Math.max(1E4,this.T/3))}; g.A.VG=function(F,J,b,I,u,w,M){var q=this,v=this.V(this)||{};g.Sq(v,u);this.T=v.duration||this.T;this.N=v.isVpaid||this.N;this.dD=v.isYouTube||this.dD;BY();this.bR=!1;u=lVm(this,J);NRa(this)===1&&(w=u);JS.prototype.VG.call(this,F,J,b,I,v,w,M);this.OT&&this.OT.T&&g.gy(this.W,function(a){a.U(q)})}; g.A.Ww=function(F,J,b){JS.prototype.Ww.call(this,F,J,b);d2(this).update(F,J,this.HD,b);this.nW=w2(this.HD)&&w2(J);this.WN==-1&&this.oI&&(this.WN=this.v9().T.C);this.Cv.T=0;F=this.kI();J.isVisible()&&a8(this.Cv,"vs");F&&a8(this.Cv,"vw");Pc(J.volume)&&a8(this.Cv,"am");w2(J)?a8(this.Cv,"a"):a8(this.Cv,"mut");this.o9&&a8(this.Cv,"f");J.U!=-1&&(a8(this.Cv,"bm"),J.U==1&&(a8(this.Cv,"b"),w2(J)&&a8(this.Cv,"umutb")));w2(J)&&J.isVisible()&&a8(this.Cv,"avs");this.nW&&F&&a8(this.Cv,"avw");J.BV>0&&a8(this.Cv, "pv");E0(this,this.v9().T.C,!0)&&a8(this.Cv,"gdr");xg(this.v9().U,1)>=2E3&&a8(this.Cv,"pmx");this.bR&&a8(this.Cv,"tvoff")}; g.A.wl=function(){return new Kq}; g.A.v9=function(){return this.W8}; g.A.Cb=function(){return new voz}; g.A.AU=function(F,J,b,I){F=JS.prototype.AU.call(this,F,J,b,I===void 0?-1:I);F.fullscreen=this.o9;F.paused=this.ZX();F.volume=b.volume;Pc(F.volume)||(this.Um++,J=this.HD,Pc(J.volume)&&(F.volume=J.volume));b=b.currentTime;F.mediaTime=b!==void 0&&b>=0?b:-1;return F}; g.A.va=function(F){return Tv(),this.o9?1:JS.prototype.va.call(this,F)}; g.A.E0=function(){return 1}; g.A.getDuration=function(){return this.T}; g.A.NZ=function(){return this.Pc?2:Wja(this)?5:this.kI()?4:3}; g.A.yY=function(){return this.cN?this.v9().D.T>=2E3?4:3:2}; g.A.Ei=function(F){this.JF&&this.JF.Ei(F)};var LoR=g.L3();R$G.prototype.reset=function(){this.C=[];this.U=[]}; var TZ=VF(R$G);g.z(s0,Qf);g.A=s0.prototype;g.A.getName=function(){return(this.U?this.U:this.C).getName()}; g.A.bH=function(){return(this.U?this.U:this.C).bH()}; g.A.UT=function(){return(this.U?this.U:this.C).UT()}; g.A.init=function(F){var J=!1;(0,g.gy)(this.T,function(b){b.initialize()&&(J=!0)}); J&&(this.Z=F,$g(this.C,this));return J}; g.A.dispose=function(){(0,g.gy)(this.T,function(F){F.dispose()}); Qf.prototype.dispose.call(this)}; g.A.l0=function(){return Bc(this.T,function(F){return F.WO()})}; g.A.A5=function(){return Bc(this.T,function(F){return F.WO()})}; g.A.fM=function(F,J,b){return new iR(F,this.C,J,b)}; g.A.e$=function(F){this.U=F.U};var noY={threshold:[0,.3,.5,.75,1]};g.z(YR,iR);g.A=YR.prototype;g.A.observe=function(){var F=this;this.eE||(this.eE=cY());if(eP4(298,function(){return thv(F)}))return!0; this.U.R6("msf");return!1}; g.A.unobserve=function(){if(this.Z&&this.element)try{this.Z.unobserve(this.element),this.Y?(this.Y.unobserve(this.element),this.Y=null):this.V&&(this.V.disconnect(),this.V=null)}catch(F){}}; g.A.Sy=function(){var F=$R(this);F.length>0&&Cq(this,F);iR.prototype.Sy.call(this)}; g.A.qV=function(){}; g.A.Nn=function(){return!1}; g.A.RJ=function(){}; g.A.bH=function(){var F={};return Object.assign(this.U.bH(),(F.niot_obs=this.eE,F.niot_cbk=this.Tj,F))}; g.A.getName=function(){return"nio"};g.z(XL,Qf);XL.prototype.getName=function(){return"nio"}; XL.prototype.A5=function(){return!Tv().U&&this.C.C.T.IntersectionObserver!=null}; XL.prototype.fM=function(F,J,b){return new YR(F,this.C,J,b)};g.z(QC,Yg);QC.prototype.mT=function(){return Tv().C}; QC.prototype.WO=function(){var F=HM3();this.Y!==F&&(this.C!=this&&F>this.C.Y&&(this.C=this,CL(this)),this.Y=F);return F==2};R8.prototype.sample=function(){O0(this,r2(),!1)}; R8.prototype.Z=function(){var F=Su(),J=cY();F?(xI||(n_=J,g.gy(TZ.C,function(b){var I=b.v9();I.zj=pq(I,J,b.vS!=1)})),xI=!0):(this.V=IA7(this,J),xI=!1,BR4=J,g.gy(TZ.C,function(b){b.NN&&(b.v9().Y=J)})); O0(this,r2(),!F)}; var DS=VF(R8);var wYa=null,K8="",ef=!1;var qGz=Ahz().s0,hS=Ahz().uS;var eAa={i4E:"visible",rNR:"audible",oZ_:"time",JrQ:"timetype"},Kxz={visible:function(F){return/^(100|[0-9]{1,2})$/.test(F)}, audible:function(F){return F=="0"||F=="1"}, timetype:function(F){return F=="mtos"||F=="tos"}, time:function(F){return/^(100|[0-9]{1,2})%$/.test(F)||/^([0-9])+ms$/.test(F)}}; aAm.prototype.setTime=function(F,J,b){J=="ms"?(this.T=F,this.Z=-1):(this.T=-1,this.Z=F);this.D=b===void 0?"tos":b;return this};g.z(nq,g2);nq.prototype.getId=function(){return this.V}; nq.prototype.W=function(){return!0}; nq.prototype.C=function(F){var J=F.v9(),b=F.getDuration();return Bc(this.Y,function(I){if(I.C!=void 0)var u=gIC(I,J);else b:{switch(I.D){case "mtos":u=I.U?J.D.T:J.T.C;break b;case "tos":u=I.U?J.D.C:J.T.C;break b}u=0}u==0?I=!1:(I=I.T!=-1?I.T:b!==void 0&&b>0?I.Z*b:-1,I=I!=-1&&u>=I);return I})};g.z(tS,ptC);tS.prototype.C=function(F){var J=new Kj4;J.C=v2(F,nC1);J.U=v2(F,Z3e);return J};g.z(ZS,g2);ZS.prototype.C=function(F){return Wja(F)};g.z(H2,z$o);g.z(Lq,g2);Lq.prototype.C=function(F){return F.v9().kI()};g.z(F0,ma);F0.prototype.C=function(F){var J=g.te(this.V,M5(Sw().Dy,"ovms"));return!F.Pc&&(F.vS!=0||J)};g.z(Jy,H2);Jy.prototype.U=function(){return new F0(this.C)}; Jy.prototype.T=function(){return[new Lq("viewable_impression",this.C),new ZS(this.C)]};g.z(bo,zZ);bo.prototype.Z=function(){var F=g.kC("ima.admob.getViewability"),J=M5(this.Dy,"queryid");typeof F==="function"&&J&&F(J)}; bo.prototype.getName=function(){return"gsv"};g.z(IE,Qf);IE.prototype.getName=function(){return"gsv"}; IE.prototype.A5=function(){var F=Tv();Sw();return F.U&&!1}; IE.prototype.fM=function(F,J,b){return new bo(this.C,J,b)};g.z(uo,zZ);uo.prototype.Z=function(){var F=this,J=g.kC("ima.bridge.getNativeViewability"),b=M5(this.Dy,"queryid");typeof J==="function"&&b&&J(b,function(I){g.Vj(I)&&F.V++;var u=I.opt_nativeViewVisibleBounds||{},w=I.opt_nativeViewHidden;F.C=j6k(I.opt_nativeViewBounds||{});var M=F.U.Z;M.C=w?H3b.clone():j6k(u);F.timestamp=I.opt_nativeTime||-1;Tv().C=M.C;I=I.opt_nativeVolume;I!==void 0&&(M.volume=I)})}; uo.prototype.getName=function(){return"nis"};g.z(wi,Qf);wi.prototype.getName=function(){return"nis"}; wi.prototype.A5=function(){var F=Tv();Sw();return F.U&&!1}; wi.prototype.fM=function(F,J,b){return new uo(this.C,J,b)};g.z(Mw,Yg);g.A=Mw.prototype;g.A.WO=function(){return this.U.P5!=null}; g.A.hA=function(){var F={};this.fW&&(F.mraid=this.fW);this.Gj&&(F.mlc=1);F.mtop=this.U.rXI;this.V&&(F.mse=this.V);this.qf&&(F.msc=1);F.mcp=this.U.compatibility;return F}; g.A.Ui=function(F){var J=g.Ba.apply(1,arguments);try{return this.U.P5[F].apply(this.U.P5,J)}catch(b){hh(538,b,.01,function(I){I.method=F})}}; g.A.initialize=function(){var F=this;if(this.isInitialized)return!this.N4();this.isInitialized=!0;if(this.U.compatibility===2)return this.V="ng",this.R6("w"),!1;if(this.U.compatibility===1)return this.V="mm",this.R6("w"),!1;Tv().Y=!0;this.T.document.readyState&&this.T.document.readyState=="complete"?zAC(this):Hc(this.T,"load",function(){BY().setTimeout(oI(292,function(){return zAC(F)}),100)},292); return!0}; g.A.EZ=function(){var F=Tv(),J=d5m(this,"getMaxSize");F.C=new ZA(0,J.width,J.height,0)}; g.A.d8=function(){Tv().Z=d5m(this,"getScreenSize")}; g.A.dispose=function(){lA3(this);Yg.prototype.dispose.call(this)};var nVY=new function(F,J){this.key=F;this.defaultValue=J===void 0?!1:J;this.valueType="boolean"}("45378663");g.A=qw.prototype;g.A.iU=function(F){bR(F,!1);ook(F)}; g.A.PH=function(){}; g.A.zM=function(F,J,b,I){var u=this;F=new lR(K_,F,b?J:-1,7,this.m7(),this.By());F.Dj=I;iu_(F.Dy);wf(F.Dy,"queryid",F.Dj);F.fq("");MhG(F,function(){return u.ZJ.apply(u,g.W(g.Ba.apply(0,arguments)))},function(){return u.kj_.apply(u,g.W(g.Ba.apply(0,arguments)))}); (I=VF(S7).C)&&bMY(F,I);this.T&&(F.Ei(this.T),this.T=null);F.f4.EG&&VF(Ljz);return F}; g.A.Qf=function(F){switch(F.UT()){case 0:if(F=VF(S7).C)F=F.C,g.Hk(F.D,this),F.N&&this.s1()&&rv7(F);aE();break;case 2:kR()}}; g.A.e$=function(){}; g.A.s1=function(){return!1}; g.A.kj_=function(F,J){F.Pc=!0;switch(F.E0()){case 1:BfC(F,J);break;case 2:this.zO(F)}}; g.A.MEQ=function(F){var J=F.V(F);J&&(J=J.volume,F.cN=Pc(J)&&J>0);j2a(F,0);return GZ(F,"start",Su())}; g.A.Fs=function(F,J,b){O0(DS,[F],!Su());return this.lS(F,J,b)}; g.A.lS=function(F,J,b){return GZ(F,b,Su())}; g.A.OWW=function(F){return yP(F,"firstquartile",1)}; g.A.DfG=function(F){F.oI=!0;return yP(F,"midpoint",2)}; g.A.EQ_=function(F){return yP(F,"thirdquartile",3)}; g.A.gQQ=function(F){var J=yP(F,"complete",4);fq(F);return J}; g.A.WGz=function(F){F.vS=3;return GZ(F,"error",Su())}; g.A.v3=function(F,J,b){J=Su();if(F.ZX()&&!J){var I=F.v9(),u=cY();I.Y=u}O0(DS,[F],!J);F.ZX()&&(F.vS=1);return GZ(F,b,J)}; g.A.fvz=function(F,J){J=this.Fs(F,J||{},"skip");fq(F);return J}; g.A.qQG=function(F,J){bR(F,!0);return this.Fs(F,J||{},"fullscreen")}; g.A.AzG=function(F,J){bR(F,!1);return this.Fs(F,J||{},"exitfullscreen")}; g.A.GO=function(F,J,b){J=F.v9();var I=cY();J.zj=pq(J,I,F.vS!=1);O0(DS,[F],!Su());F.vS==1&&(F.vS=2);return GZ(F,b,Su())}; g.A.iWG=function(F){O0(DS,[F],!Su());return F.U()}; g.A.VU=function(F){O0(DS,[F],!Su());this.hf(F);fq(F);return F.U()}; g.A.ZJ=function(){}; g.A.zO=function(){}; g.A.hf=function(){}; g.A.Qe=function(){}; g.A.Ln=function(){}; g.A.By=function(){this.C||(this.C=this.Ln());return this.C==null?new yC:new Jy(this.C)}; g.A.m7=function(){return new tS};g.z(io,g2);io.prototype.C=function(F){return F.yY()==4};g.z(zM,ma);zM.prototype.C=function(F){F=F.yY();return F==3||F==4};g.z(Nw,H2);Nw.prototype.U=function(){return new zM(this.C)}; Nw.prototype.T=function(){return[new io(this.C)]};g.z(lo,ptC);lo.prototype.C=function(F){F&&(F.e===28&&(F=Object.assign({},F,{avas:3})),F.vs===4||F.vs===5)&&(F=Object.assign({},F,{vs:3}));var J=new Kj4;J.C=v2(F,tzz);J.U=v2(F,Z3e);return J};sIv.prototype.U=function(){return g.kC(this.C)};g.z(f8,qw);g.A=f8.prototype;g.A.PH=function(F,J){var b=this,I=VF(S7);if(I.C!=null)switch(I.C.getName()){case "nis":var u=XY7(this,F,J);break;case "gsv":u=CTm(this,F,J);break;case "exc":u=QIo(this,F)}u||(J.opt_overlayAdElement?u=void 0:J.opt_adElement&&(u=rhv(this,F,J.opt_adElement,J.opt_osdId)));u&&u.E0()==1&&(u.V==g.ac&&(u.V=function(w){return b.Qe(w)}),$5Y(this,u,J)); return u}; g.A.Qe=function(F){F.U=0;F.kQ=0;if(F.Z=="h"||F.Z=="n"){Sw();F.Jz&&(Sw(),gi(this)!="h"&&gi(this));var J=g.kC("ima.common.getVideoMetadata");if(typeof J==="function")try{var b=J(F.Dj)}catch(u){F.U|=4}else F.U|=2}else if(F.Z=="b")if(J=g.kC("ytads.bulleit.getVideoMetadata"),typeof J==="function")try{b=J(F.Dj)}catch(u){F.U|=4}else F.U|=2;else if(F.Z=="ml")if(J=g.kC("ima.common.getVideoMetadata"),typeof J==="function")try{b=J(F.Dj)}catch(u){F.U|=4}else F.U|=2;else F.U|=1;F.U||(b===void 0?F.U|=8:b===null? F.U|=16:g.Vj(b)?F.U|=32:b.errorCode!=null&&(F.kQ=b.errorCode,F.U|=64));b==null&&(b={});J=b;F.Y=0;for(var I in O3t)J[I]==null&&(F.Y|=O3t[I]);SGa(J,"currentTime");SGa(J,"duration");Pc(b.volume)&&Pc()&&(b.volume*=NaN);return b}; g.A.Ln=function(){Sw();gi(this)!="h"&&gi(this);var F=RAo(this);return F!=null?new sIv(F):null}; g.A.zO=function(F){!F.C&&F.Pc&&mU(this,F,"overlay_unmeasurable_impression")&&(F.C=!0)}; g.A.hf=function(F){F.OH&&(F.kI()?mU(this,F,"overlay_viewable_end_of_session_impression"):mU(this,F,"overlay_unviewable_impression"),F.OH=!1)}; g.A.ZJ=function(){}; g.A.zM=function(F,J,b,I){if(tPz()){var u=M5(Sw().Dy,"mm"),w={};(u=(w[sG.jR]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",w[sG.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",w)[u])&&oIk(this,u);this.Z==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&hh(1044,Error())}F=qw.prototype.zM.call(this,F,J,b,I);this.D&&(J=this.W,F.D==null&&(F.D=new ANG),J.C[F.Dj]=F.D,F.D.D=LoR);return F}; g.A.iU=function(F){F&&F.E0()==1&&this.D&&delete this.W.C[F.Dj];return qw.prototype.iU.call(this,F)}; g.A.By=function(){this.C||(this.C=this.Ln());return this.C==null?new yC:this.Z==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new Nw(this.C):new Jy(this.C)}; g.A.m7=function(){return this.Z==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new lo:new tS}; g.A.Ei=function(F,J,b,I,u){J=new ZA(b,J+I,b+u,J);(F=B2(TZ,F))?F.Ei(J):this.T=J}; var FR8=OG(193,chJ,void 0,TfG);g.RG("Goog_AdSense_Lidar_sendVastEvent",FR8);var JeH=oI(194,function(F,J){J=J===void 0?{}:J;F=O_Y(VF(f8),F,J);return hA4(F)}); g.RG("Goog_AdSense_Lidar_getViewability",JeH);var bzz=OG(195,function(){return oVC()}); g.RG("Goog_AdSense_Lidar_getUrlSignalsArray",bzz);var IHe=oI(196,function(){return JSON.stringify(oVC())}); g.RG("Goog_AdSense_Lidar_getUrlSignalsList",IHe);var U5a=(new Date("2024-01-01T00:00:00Z")).getTime();var twv=AJJ(["//tpc.googlesyndication.com/sodar/",""]);g.z(BQ,g.R);BQ.prototype.Ey=function(){return this.wpc.f()}; BQ.prototype.aA=function(F){this.wpc.c(F)}; BQ.prototype.iy=function(F){return this.wpc.m(F2a(F))}; BQ.prototype.fA=function(F){return this.wpc.mws(F2a(F))}; g.z(VP,g.R);VP.prototype.snapshot=function(F){return this.w0.s(Object.assign({},F.Gi&&{c:F.Gi},F.hV&&{s:F.hV},F.tV!==void 0&&{p:F.tV}))}; VP.prototype.qw=function(F){this.w0.e(F)}; VP.prototype.OO=function(){return this.w0.l()};var Hq7=(new Date).getTime();var IGm="://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(" "),uwv=/\bocr\b/;var MuG=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var fGo=0,lGm=0,W2m=0;var AW7=Object.assign({},{attributes:{},handleError:function(F){throw F;}},{S0Q:!0, VlE:!0,Sg:!1,DbG:!1,PSQ:!1,EfQ:!1,H1I:SBC});var Sf=null,YQ=!1,zYJ=1,X0=Symbol("SIGNAL"),K4={version:0,iAQ:0,Y8:!1,K8:void 0,fU:void 0,TI:void 0,KJ:0,BS:void 0,zZ:void 0,hn:!1,zD:!1,kind:"unknown",Dh:function(){return!1}, iY:function(){}, K0:function(){}, Ml_:function(){}};var p4=Symbol("UNSET"),gt=Symbol("COMPUTING"),m0=Symbol("ERRORED");Object.assign({},K4,{value:p4,Y8:!0,error:null,eP:ri,kind:"computed",Dh:function(F){return F.value===p4||F.value===gt}, iY:function(F){if(F.value===gt)throw Error("Detected cycle in computations.");var J=F.value;F.value=gt;var b=eY4(F),I=!1;try{var u=F.nz();sY(null);I=J!==p4&&J!==m0&&u!==m0&&F.eP(J,u)}catch(w){u=m0,F.error=w}finally{K2z(F,b)}I?F.value=J:(F.value=u,F.version++)}});var yWv=Object.assign({},K4,{eP:ri,value:void 0,kind:"signal"});Object.assign({},K4,{value:p4,Y8:!0,error:null,eP:ri,Dh:function(F){return F.value===p4||F.value===gt}, iY:function(F){if(F.value===gt)throw Error("Detected cycle in computations.");var J=F.value;F.value=gt;var b=eY4(F);try{var I=F.source();var u=F.nz(I,J===p4||J===m0?void 0:{source:F.TqN,value:J});F.TqN=I}catch(w){u=m0,F.error=w}finally{K2z(F,b)}J!==p4&&u!==m0&&F.eP(J,u)?F.value=J:(F.value=u,F.version++)}});Object.assign({},K4,{zD:!0,hn:!1,K0:function(F){F.schedule!==null&&F.schedule(F.LUD)}, evW:!1,O1z:function(){}});var dB7=Symbol("updater");g.z(RE,g.Zr);RE.prototype.dispose=function(){window.removeEventListener("offline",this.T);window.removeEventListener("online",this.T);this.Xa.q_(this.D);delete RE.instance}; RE.prototype.Vi=function(){return this.C}; RE.prototype.Va=function(){var F=this;this.D=this.Xa.Ti(function(){var J;return g.S(function(b){if(b.C==1)return F.C?((J=window.navigator)==null?0:J.onLine)?b.gD(3):g.T(b,QP(F),3):g.T(b,QP(F),3);F.Va();g.N4(b)})},3E4)};kQ.prototype.set=function(F,J){J=J===void 0?!0:J;0<=F&&F<52&&Number.isInteger(F)&&this.data[F]!==J&&(this.data[F]=J,this.C=-1)}; kQ.prototype.get=function(F){return!!this.data[F]};var oE;g.Fb(g.n8,g.R);g.A=g.n8.prototype;g.A.start=function(){this.stop();this.Z=!1;var F=Vu_(this),J=PuG(this);F&&!J&&this.U.mozRequestAnimationFrame?(this.C=g.Dr(this.U,"MozBeforePaint",this.T),this.U.mozRequestAnimationFrame(null),this.Z=!0):this.C=F&&J?F.call(this.U,this.T):this.U.setTimeout(UXa(this.T),20)}; g.A.stop=function(){if(this.isActive()){var F=Vu_(this),J=PuG(this);F&&!J&&this.U.mozRequestAnimationFrame?xe(this.C):F&&J?J.call(this.U,this.C):this.U.clearTimeout(this.C)}this.C=null}; g.A.isActive=function(){return this.C!=null}; g.A.zE=function(){this.Z&&this.C&&xe(this.C);this.C=null;this.W.call(this.D,g.L3())}; g.A.X_=function(){this.stop();g.n8.k7.X_.call(this)};g.Fb(g.ty,g.R);g.A=g.ty.prototype;g.A.Od=0;g.A.X_=function(){g.ty.k7.X_.call(this);this.stop();delete this.C;delete this.U}; g.A.start=function(F){this.stop();this.Od=g.Wj(this.T,F!==void 0?F:this.gg)}; g.A.stop=function(){this.isActive()&&g.Qz.clearTimeout(this.Od);this.Od=0}; g.A.isActive=function(){return this.Od!=0}; g.A.S_=function(){this.Od=0;this.C&&this.C.call(this.U)};g.F4.prototype[Symbol.iterator]=function(){return this}; g.F4.prototype.next=function(){var F=this.C.next();return{value:F.done?void 0:this.U.call(void 0,F.value),done:F.done}};g.Fb(g.vV,g.Zr);g.A=g.vV.prototype;g.A.isPlaying=function(){return this.C==1}; g.A.isPaused=function(){return this.C==-1}; g.A.pJ=function(){this.Jr("begin")}; g.A.ly=function(){this.Jr("end")}; g.A.onFinish=function(){this.Jr("finish")}; g.A.onStop=function(){this.Jr("stop")}; g.A.Jr=function(F){this.dispatchEvent(F)};var ube=eP(function(){var F=g.H1("DIV"),J=g.xM?"-webkit":eu?"-moz":null,b="transition:opacity 1s linear;";J&&(b+=J+"-transition:opacity 1s linear;");J=LLC({style:b});if(F.nodeType===1&&/^(script|style)$/i.test(F.tagName))throw Error("");F.innerHTML=$_(J);return g.KL(F.firstChild,"transition")!=""});g.Fb(a3,g.vV);g.A=a3.prototype;g.A.play=function(){if(this.isPlaying())return!1;this.pJ();this.Jr("play");this.startTime=g.L3();this.C=1;if(ube())return g.aN(this.U,this.W),this.T=g.Wj(this.zxG,void 0,this),!0;this.QA(!1);return!1}; g.A.zxG=function(){g.fL(this.U);rWo(this.U,this.V);g.aN(this.U,this.Z);this.T=g.Wj((0,g.tJ)(this.QA,this,!1),this.D*1E3)}; g.A.stop=function(){this.isPlaying()&&this.QA(!0)}; g.A.QA=function(F){g.aN(this.U,"transition","");g.Qz.clearTimeout(this.T);g.aN(this.U,this.Z);this.endTime=g.L3();this.C=0;if(F)this.onStop();else this.onFinish();this.ly()}; g.A.X_=function(){this.stop();a3.k7.X_.call(this)}; g.A.pause=function(){};var sNa={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};eM("Element","attributes")||eM("Node","attributes");eM("Element","innerHTML")||eM("HTMLElement","innerHTML");eM("Node","nodeName");eM("Node","nodeType");eM("Node","parentNode");eM("Node","childNodes");eM("HTMLElement","style")||eM("Element","style");eM("HTMLStyleElement","sheet");var RYm=$BJ("getPropertyValue"),DB4=$BJ("setProperty");eM("Element","namespaceURI")||eM("Node","namespaceURI");var QNG={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var hYa,dWv,ogC,OL3,cWz;hYa=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]");dWv=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.wkz=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.p6=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]");ogC=/^http:\/\/.*/;g.Mmb=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");OL3=/\s+/;cWz=/[\d\u06f0-\u06f9]/;m5.prototype.WF=function(){return new yN(this.U())}; m5.prototype[Symbol.iterator]=function(){return new iG(this.U())}; m5.prototype.C=function(){return new iG(this.U())}; g.z(yN,g.I8);yN.prototype.next=function(){return this.U.next()}; yN.prototype[Symbol.iterator]=function(){return new iG(this.U)}; yN.prototype.C=function(){return new iG(this.U)}; g.z(iG,m5);iG.prototype.next=function(){return this.T.next()};Nr.prototype.clone=function(){return new Nr(this.C,this.V,this.T,this.D,this.Z,this.W,this.U,this.Y)}; Nr.prototype.Hg=function(F){return this.C==F.C&&this.V==F.V&&this.T==F.T&&this.D==F.D&&this.Z==F.Z&&this.W==F.W&&this.U==F.U&&this.Y==F.Y};f6.prototype.clone=function(){return new f6(this.start,this.end)}; f6.prototype.getLength=function(){return this.end-this.start};(function(){if(SIa){var F=/Windows NT ([0-9.]+)/;return(F=F.exec(g.Bk()))?F[1]:"0"}return xi?(F=/1[0|1][_.][0-9_.]+/,(F=F.exec(g.Bk()))?F[0].replace(/_/g,"."):"10"):g.Z$?(F=/Android\s+([^\);]+)(\)|;)/,(F=F.exec(g.Bk()))?F[1]:""):$Wa||Cc7||XJJ?(F=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(F=F.exec(g.Bk()))?F[1].replace(/_/g,"."):""):""})();var xB7=function(){if(g.Yj)return WV(/Firefox\/([0-9.]+)/);if(g.K6||g.c$||g.fH)return vLo;if(g.B4){if(ob()||he()){var F=WV(/CriOS\/([0-9.]+)/);if(F)return F}return WV(/Chrome\/([0-9.]+)/)}if(g.ia&&!ob())return WV(/Version\/([0-9.]+)/);if(x6||nl){if(F=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.Bk()))return F[1]+"."+F[2]}else if(g.Wu)return(F=WV(/Android\s+([0-9.]+)/))?F:WV(/Version\/([0-9.]+)/);return""}();g.Fb(g.EJ,g.R);g.A=g.EJ.prototype;g.A.subscribe=function(F,J,b){var I=this.U[F];I||(I=this.U[F]=[]);var u=this.W;this.C[u]=F;this.C[u+1]=J;this.C[u+2]=b;this.W=u+3;I.push(u);return u}; g.A.unsubscribe=function(F,J,b){if(F=this.U[F]){var I=this.C;if(F=F.find(function(u){return I[u+1]==J&&I[u+2]==b}))return this.gB(F)}return!1}; g.A.gB=function(F){var J=this.C[F];if(J){var b=this.U[J];this.Z!=0?(this.T.push(F),this.C[F+1]=function(){}):(b&&g.Hk(b,F),delete this.C[F],delete this.C[F+1],delete this.C[F+2])}return!!J}; g.A.publish=function(F,J){var b=this.U[F];if(b){var I=Array(arguments.length-1),u=arguments.length,w;for(w=1;w0&&this.Z==0)for(;b=this.T.pop();)this.gB(b)}}return w!=0}return!1}; g.A.clear=function(F){if(F){var J=this.U[F];J&&(J.forEach(this.gB,this),delete this.U[F])}else this.C.length=0,this.U={}}; g.A.X_=function(){g.EJ.k7.X_.call(this);this.clear();this.T.length=0};g.jM.prototype.set=function(F,J){J===void 0?this.C.remove(F):this.C.set(F,g.Gq(J))}; g.jM.prototype.get=function(F){try{var J=this.C.get(F)}catch(b){return}if(J!==null)try{return JSON.parse(J)}catch(b){throw"Storage: Invalid value was encountered";}}; g.jM.prototype.remove=function(F){this.C.remove(F)};g.Fb(G8,g.jM);G8.prototype.set=function(F,J){G8.k7.set.call(this,F,ZLY(J))}; G8.prototype.U=function(F){F=G8.k7.get.call(this,F);if(F===void 0||F instanceof Object)return F;throw"Storage: Invalid value was encountered";}; G8.prototype.get=function(F){if(F=this.U(F)){if(F=F.data,F===void 0)throw"Storage: Invalid value was encountered";}else F=void 0;return F};g.Fb(VN,G8);VN.prototype.set=function(F,J,b){if(J=ZLY(J)){if(b){if(b=b.length)return g.qm;var u=b.key(J++);if(F)return g.uR(u);u=b.getItem(u);if(typeof u!=="string")throw"Storage mechanism: Invalid value was encountered";return g.uR(u)}; return I}; g.A.clear=function(){rD(this);this.C.clear()}; g.A.key=function(F){rD(this);return this.C.key(F)};g.Fb(SM,T8);g.Fb(Fav,T8);g.Fb(sJ,BV);sJ.prototype.set=function(F,J){this.U.set(this.C+F,J)}; sJ.prototype.get=function(F){return this.U.get(this.C+F)}; sJ.prototype.remove=function(F){this.U.remove(this.C+F)}; sJ.prototype.WF=function(F){var J=this.U[Symbol.iterator](),b=this,I=new g.I8;I.next=function(){var u=J.next();if(u.done)return u;for(u=u.value;u.slice(0,b.C.length)!=b.C;){u=J.next();if(u.done)return u;u=u.value}return g.uR(F?u.slice(b.C.length):b.U.get(u))}; return I};$d.prototype.getValue=function(){return this.U}; $d.prototype.clone=function(){return new $d(this.C,this.U)};g.A=C6.prototype;g.A.wB=function(F,J){var b=this.C;b.push(new $d(F,J));F=b.length-1;J=this.C;for(b=J[F];F>0;){var I=F-1>>1;if(J[I].C>b.C)J[F]=J[I],F=I;else break}J[F]=b}; g.A.remove=function(){var F=this.C,J=F.length,b=F[0];if(!(J<=0)){if(J==1)F.length=0;else{F[0]=F.pop();F=0;J=this.C;for(var I=J.length,u=J[F];F>1;){var w=F*2+1,M=F*2+2;w=Mu.C)break;J[F]=J[w];F=w}J[F]=u}return b.getValue()}}; g.A.td=function(){for(var F=this.C,J=[],b=F.length,I=0;I>>16&65535|0;for(var w;b!==0;){w=b>2E3?2E3:b;b-=w;do u=u+J[I++]|0,F=F+u|0;while(--w);u%=65521;F%=65521}return u|F<<16|0};for(var KX={},yq,etL=[],ij=0;ij<256;ij++){yq=ij;for(var KRb=0;KRb<8;KRb++)yq=yq&1?3988292384^yq>>>1:yq>>>1;etL[ij]=yq}KX=function(F,J,b,I){b=I+b;for(F^=-1;I>>8^etL[(F^J[I])&255];return F^-1};var bJ={};bJ={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 n6=[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],HV=[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],dN7=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],KaC=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Mj=Array(576);DC(Mj);var AE=Array(60);DC(AE);var ZC=Array(512);DC(ZC);var xd=Array(256);DC(xd);var tn=Array(29);DC(tn);var L6=Array(30);DC(L6);var lSJ,fSa,Wam,N2o=!1;var iJ;iJ=[new y9(0,0,0,0,function(F,J){var b=65535;for(b>F.NQ-5&&(b=F.NQ-5);;){if(F.nk<=1){pX(F);if(F.nk===0&&J===0)return 1;if(F.nk===0)break}F.Wb+=F.nk;F.nk=0;var I=F.dX+b;if(F.Wb===0||F.Wb>=I)if(F.nk=F.Wb-I,F.Wb=I,qj(F,!1),F.a8.eZ===0)return 1;if(F.Wb-F.dX>=F.QM-262&&(qj(F,!1),F.a8.eZ===0))return 1}F.wB=0;if(J===4)return qj(F,!0),F.a8.eZ===0?3:4;F.Wb>F.dX&&qj(F,!1);return 1}), new y9(4,4,8,4,gF),new y9(4,5,16,8,gF),new y9(4,6,32,32,gF),new y9(4,4,16,16,mM),new y9(8,16,32,32,mM),new y9(8,16,128,128,mM),new y9(8,32,128,256,mM),new y9(32,128,258,1024,mM),new y9(32,258,258,4096,mM)];var z8C={};z8C=function(){this.input=null;this.CO=this.zi=this.a7=0;this.output=null;this.CS=this.eZ=this.MK=0;this.msg="";this.state=null;this.wU=2;this.d9=0};var ERo=Object.prototype.toString; zT.prototype.push=function(F,J){var b=this.a8,I=this.options.chunkSize;if(this.ended)return!1;var u=J===~~J?J:J===!0?4:0;typeof F==="string"?b.input=JSY(F):ERo.call(F)==="[object ArrayBuffer]"?b.input=new Uint8Array(F):b.input=F;b.a7=0;b.zi=b.input.length;do{b.eZ===0&&(b.output=new R3.R4(I),b.MK=0,b.eZ=I);F=iq3(b,u);if(F!==1&&F!==0)return this.ly(F),this.ended=!0,!1;if(b.eZ===0||b.zi===0&&(u===4||u===2))if(this.options.qP==="string"){var w=R3.V0(b.output,b.MK);J=w;w=w.length;if(w<65537&&(J.subarray&& aHm||!J.subarray))J=String.fromCharCode.apply(null,R3.V0(J,w));else{for(var M="",q=0;q0||b.eZ===0)&&F!==1);if(u===4)return(b=this.a8)&&b.state?(I=b.state.status,I!==42&&I!==69&&I!==73&&I!==91&&I!==103&&I!==113&&I!==666?F=Ip(b,-2):(b.state=null,F=I===113?Ip(b,-3):0)):F=-2,this.ly(F),this.ended=!0,F===0;u===2&&(this.ly(0),b.eZ=0);return!0}; zT.prototype.ly=function(F){F===0&&(this.result=this.options.qP==="string"?this.chunks.join(""):R3.AA(this.chunks));this.chunks=[];this.err=F;this.msg=this.a8.msg};var lJ="@@redux/INIT"+Nj(),T2Y="@@redux/REPLACE"+Nj();var rS7=typeof Symbol==="function"&&Symbol.observable||"@@observable";var pkb=[0,i3k,-3,uj];g.z(dF,CG);dF.prototype.getType=function(){return g4(this,11)};var cMa=function(){var F=[0,NYL,zvL,F6,i3k,F6,-1,uj,i3k,uj,-1,NYL,uj,zvL,JF,pkb,F6,-1,uj];return function(J,b){if(LR.length){var I=LR.pop();Tym(I,b);I.C.init(J,void 0,void 0,b);J=I}else J=new Tb(J,b);try{var u=new dF,w=u.Z7;I0(F)(w,J);var M=u}finally{J.free()}return M}}();var $Nz=-1869581410;var xPC=new g.Ek("adInfoDialogEndpoint");var gW3=new g.Ek("adPingingEndpoint");var YVo=new g.Ek("crossDeviceProgressCommand");var HS=new g.Ek("actionCompanionAdRenderer");var A1=new g.Ek("adActionInterstitialRenderer");var gLk=new g.Ek("adDurationRemainingRenderer");var PF=new g.Ek("adHoverTextButtonRenderer");var cY4=new g.Ek("adInfoDialogRenderer");var an=new g.Ek("adMessageRenderer");var BF=new g.Ek("adPreviewRenderer");var Fj=new g.Ek("adsEngagementPanelRenderer");var A3z=new g.Ek("dismissablePanelTextPortraitImageRenderer");var wA4=new g.Ek("adsEngagementPanelSectionListViewModel");var m8z=new g.Ek("flyoutCtaRenderer");var Li=new g.Ek("imageCompanionAdRenderer");var wk=new g.Ek("instreamAdPlayerOverlayRenderer");var Oya=new g.Ek("instreamSurveyAdBackgroundImageRenderer");var VB=new g.Ek("instreamSurveyAdPlayerOverlayRenderer");var iM=new g.Ek("instreamSurveyAdRenderer"),GX=new g.Ek("instreamSurveyAdSingleSelectQuestionRenderer"),j5=new g.Ek("instreamSurveyAdMultiSelectQuestionRenderer"),zr=new g.Ek("instreamSurveyAdAnswerRenderer"),yee=new g.Ek("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var me=new g.Ek("instreamVideoAdRenderer");var izR=new g.Ek("textOverlayAdContentRenderer"),ztW=new g.Ek("enhancedTextOverlayAdContentRenderer"),N5b=new g.Ek("imageOverlayAdContentRenderer");var MM=new g.Ek("playerOverlayLayoutRenderer");var qM=new g.Ek("videoInterstitialButtonedCenteredLayoutRenderer");var K_C=new g.Ek("aboveFeedAdLayoutRenderer");var pA3=new g.Ek("belowPlayerAdLayoutRenderer");var eMY=new g.Ek("inPlayerAdLayoutRenderer");var lM=new g.Ek("playerBytesAdLayoutRenderer");var gFa=new g.Ek("playerBytesSequenceItemAdLayoutRenderer");var dc=new g.Ek("playerUnderlayAdLayoutRenderer");var yB=new g.Ek("adIntroRenderer");var AI=new g.Ek("playerBytesSequentialLayoutRenderer");var c37=new g.Ek("slidingTextPlayerOverlayRenderer");var zX=new g.Ek("surveyTextInterstitialRenderer");var Ex=new g.Ek("videoAdTrackingRenderer");var lHb=new g.Ek("simpleAdBadgeRenderer");var IS=new g.Ek("skipAdRenderer"),fHV=new g.Ek("skipButtonRenderer");var sx=new g.Ek("adSlotRenderer");var fU=new g.Ek("squeezebackPlayerSidePanelRenderer");var WRW=new g.Ek("timedPieCountdownRenderer");var Og=new g.Ek("adAvatarViewModel");var oL=new g.Ek("adBadgeViewModel");var h7=new g.Ek("adButtonViewModel");var d8e=new g.Ek("adDetailsLineViewModel");var ELb=new g.Ek("adDisclosureBannerViewModel");var jbL=new g.Ek("adPodIndexViewModel");var GV8=new g.Ek("imageBackgroundViewModel");var Vmz=new g.Ek("adGridCardCollectionViewModel");var PWH=new g.Ek("adGridCardTextViewModel");var B5R=new g.Ek("adPreviewViewModel");var T5U=new g.Ek("playerAdAvatarLockupCardButtonedViewModel");var reR=new g.Ek("skipAdButtonViewModel");var S1t=new g.Ek("skipAdViewModel");var sb5=new g.Ek("timedPieCountdownViewModel");var Y1m=new g.Ek("visitAdvertiserLinkViewModel");var JI=new g.Ek("bannerImageLayoutViewModel");var bM=new g.Ek("topBannerImageTextIconButtonedLayoutViewModel");var Ik=new g.Ek("adsEngagementPanelLayoutViewModel");var WF=new g.Ek("displayUnderlayTextGridCardsLayoutViewModel");g.fY=new g.Ek("browseEndpoint");var $8W=new g.Ek("confirmDialogEndpoint");var yC7=new g.Ek("rawColdConfigGroup");var m1z=new g.Ek("rawHotConfigGroup");g.p0=new g.Ek("commandExecutorCommand");g.z(Q8k,CG);var tYJ={uaE:0,fXQ:1,KqD:32,osz:61,aXI:67,p5Q:103,y6N:86,zPE:42,tnD:60,EsN:62,vsG:73,Fq_:76,YvW:88,jk_:90,bLG:99,Vnf:98,nsj:100,BKI:102,m$G:41,c6N:69,LqI:70,NKR:71,k6Q:2,gKW:27,ANDROID:3,toN:54,xJj:14,n4W:91,FPN:55,BBW:24,v4R:20,o4G:18,yhz:21,pDG:104,b8j:30,LPN:29,NB_:28,A6G:101,IlG:34,alR:36,JhD:38,IOS:5,uI_:15,DhR:92,G8_:40,RT_:25,k8f:17,gRj:19,WI_:64,A4R:66,ODR:26,fY_:22,MBQ:33,ERG:68,dhN:35,qkD:53,iDG:37,Ps_:39,cr_:7,LJ_:57,NeQ:43,r6Q:59,Icz:93,chz:74,C1N:75,w5G:85,U$E:65,ePf:80,ZLD:8,bjD:10, skQ:58,X5_:63,TKQ:72,mJj:23,CSG:11,w0j:13,lj_:12,maE:16,hPG:56,J6D:31,G6Q:77,KtR:84,x$N:87,x_I:89,tiG:94,LII:95};g.z(j4,CG);j4.prototype.kp=function(){return pG(this,3)}; j4.prototype.iL=function(){return pG(this,5)}; j4.prototype.j2=function(F){return yH(this,5,F)};g.z(GT,CG);g.z(R8G,CG);g.z(V9,CG);g.A=V9.prototype;g.A.getDeviceId=function(){return pG(this,6)}; g.A.kM=function(F){var J=c3(this,9,e2,3,!0);OX(J,F);return J[F]}; g.A.getPlayerType=function(){return g4(this,36)}; g.A.setHomeGroupInfo=function(F){return Ax(this,R8G,81,F)}; g.A.clearLocationPlayabilityToken=function(){return RF(this,89)};g.z(PT,CG);PT.prototype.getValue=function(){return pG(this,bP(this,pKY)===2?2:-1)}; var pKY=[2,3,4,5,6];g.z(BT,CG);BT.prototype.setTrackingParams=function(F){return RF(this,1,T5z(F,!1))};g.z(TT,CG);g.z(rF,CG);rF.prototype.kM=function(F){var J=c3(this,5,KI,3,!0);OX(J,F);return J[F]};g.z(S4,CG);S4.prototype.getToken=function(){return eD(this,2)}; S4.prototype.setToken=function(F){return yH(this,2,F)};g.z(sk,CG);sk.prototype.setSafetyMode=function(F){return zb(this,5,F)};g.z(YD,CG);YD.prototype.r5=function(F){return Ax(this,V9,1,F)};var rc=new g.Ek("thumbnailLandscapePortraitRenderer");g.CWe=new g.Ek("changeEngagementPanelVisibilityAction");var zoz=new g.Ek("continuationCommand");g.XkV=new g.Ek("openPopupAction");g.Nm=new g.Ek("webCommandMetadata");var jk7=new g.Ek("metadataBadgeRenderer");var iAm=new g.Ek("signalServiceEndpoint");var sT=new g.Ek("innertubeCommand");var wro=new g.Ek("loggingDirectives");var jE3={XS_:"EMBEDDED_PLAYER_MODE_UNKNOWN",TZG:"EMBEDDED_PLAYER_MODE_DEFAULT",Z4R:"EMBEDDED_PLAYER_MODE_PFP",e3D:"EMBEDDED_PLAYER_MODE_PFL"};var HUJ=new g.Ek("channelThumbnailEndpoint");var ZUY=new g.Ek("embeddedPlayerErrorMessageRenderer");var UEm=new g.Ek("embeddedPlayerOverlayVideoDetailsRenderer"),Lez=new g.Ek("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),FzY=new g.Ek("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var Wea=new g.Ek("embedsInfoPanelRenderer");var Qb1=new g.Ek("feedbackEndpoint");var Rtb=new g.Ek("callToActionButtonViewModel");var D8L=new g.Ek("interactionLoggingCommandMetadata");var fkm={HLQ:"WEB_DISPLAY_MODE_UNKNOWN",d$G:"WEB_DISPLAY_MODE_BROWSER",Qkj:"WEB_DISPLAY_MODE_MINIMAL_UI",SvN:"WEB_DISPLAY_MODE_STANDALONE",lXD:"WEB_DISPLAY_MODE_FULLSCREEN"};g.z($D,CG);$D.prototype.getPlayerType=function(){return g4(this,7)}; $D.prototype.B1=function(){return pG(this,19)}; $D.prototype.setVideoId=function(F){return yH(this,19,F)};g.z(Q9,CG);g.z(Rp,CG);g.z(Dk,CG); var kVb=[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];var Oze=new g.Ek("loggingContext");g.z(kD,CG);g.z(Ok,CG);Ok.prototype.B1=function(){return eD(this,bP(this,Ak)===1?1:-1)}; Ok.prototype.setVideoId=function(F){return FW(this,1,Ak,W3(F))}; Ok.prototype.getPlaylistId=function(){return eD(this,bP(this,Ak)===2?2:-1)}; var Ak=[1,2];g.z(DNa,CG);var ti=new g.Ek("changeKeyedMarkersVisibilityCommand");var oLb=new g.Ek("changeMarkersVisibilityCommand");var V57=new g.Ek("loadMarkersCommand");var hte=new g.Ek("suggestedActionDataViewModel");var G4o=new g.Ek("timelyActionViewModel");var j9G=new g.Ek("timelyActionsOverlayViewModel");var T6a=new g.Ek("productListItemRenderer");var ceV=new g.Ek("shoppingOverlayRenderer");var xEm=new g.Ek("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var U8k=new g.Ek("adFeedbackEndpoint");var x8U=new g.Ek("menuEndpoint");var hXm=new g.Ek("phoneDialerEndpoint");var Oe4=new g.Ek("sendSmsEndpoint");var cIz=new g.Ek("copyTextEndpoint");var nLe=new g.Ek("shareEndpoint"),tmt=new g.Ek("shareEntityEndpoint"),Zz8=new g.Ek("shareEntityServiceEndpoint"),Hze=new g.Ek("webPlayerShareEntityServiceEndpoint");g.S0=new g.Ek("urlEndpoint");g.x$=new g.Ek("watchEndpoint");var LRL=new g.Ek("watchPlaylistEndpoint");g.FF8=new g.Ek("offlineOrchestrationActionCommand");var g07=new g.Ek("compositeVideoOverlayRenderer");var JL1=new g.Ek("miniplayerRenderer");var o8k=new g.Ek("paidContentOverlayRenderer");var bfW=new g.Ek("playerMutedAutoplayOverlayRenderer"),Ie1=new g.Ek("playerMutedAutoplayEndScreenRenderer");var XS7=new g.Ek("unserializedPlayerResponse"),uP5=new g.Ek("unserializedPlayerResponse");var wWU=new g.Ek("playlistEditEndpoint");var lj;g.TX=new g.Ek("buttonRenderer");lj=new g.Ek("toggleButtonRenderer");var uS3=new g.Ek("counterfactualRenderer");var MJ8=new g.Ek("resolveUrlCommandMetadata");var ALb=new g.Ek("modifyChannelNotificationPreferenceEndpoint");var p8m=new g.Ek("pingingEndpoint");var qXR=new g.Ek("unsubscribeEndpoint");g.WE=new g.Ek("subscribeButtonRenderer");var vKV=new g.Ek("subscribeEndpoint");var pXY=new g.Ek("buttonViewModel");var Mta=new g.Ek("qrCodeRenderer");var HxY={pxf:"LIVING_ROOM_APP_MODE_UNSPECIFIED",oRW:"LIVING_ROOM_APP_MODE_MAIN",vRQ:"LIVING_ROOM_APP_MODE_KIDS",J4D:"LIVING_ROOM_APP_MODE_MUSIC",y4Q:"LIVING_ROOM_APP_MODE_UNPLUGGED",BXW:"LIVING_ROOM_APP_MODE_GAMING"};var Ncv=new g.Ek("autoplaySwitchButtonRenderer");var lr,i4z,ham,Pjz;lr=new g.Ek("decoratedPlayerBarRenderer");i4z=new g.Ek("chapteredPlayerBarRenderer");ham=new g.Ek("multiMarkersPlayerBarRenderer");Pjz=new g.Ek("chapterRenderer");g.fNC=new g.Ek("markerRenderer");var aeb=new g.Ek("decoratedPlayheadRenderer");var dEC=new g.Ek("desktopOverlayConfigRenderer");var qvG=new g.Ek("engagementPanelSectionListRenderer");var fpJ=new g.Ek("gatedActionsOverlayViewModel");var jBJ=new g.Ek("heatMarkerRenderer");var EEa=new g.Ek("heatmapRenderer");var GXz=new g.Ek("watchToWatchTransitionRenderer");var n8C=new g.Ek("playlistPanelRenderer");var emR=new g.Ek("productUpsellSuggestedActionViewModel");var KF5=new g.Ek("suggestedActionTimeRangeTrigger"),pWt=new g.Ek("suggestedActionsRenderer"),gKz=new g.Ek("suggestedActionRenderer");var Gra=new g.Ek("timedMarkerDecorationRenderer");var q5a=new g.Ek("cipher");var QSk=new g.Ek("playerVars");var mLL=new g.Ek("playerVars");var f4=g.Qz.window,yLH,ifb,op=(f4==null?void 0:(yLH=f4.yt)==null?void 0:yLH.config_)||(f4==null?void 0:(ifb=f4.ytcfg)==null?void 0:ifb.data_)||{};g.RG("yt.config_",op);var xD=[];var Zqo=/^[\w.]*$/,UN7={q:!0,search_query:!0},cSC=String(HT);var qk=new function(){var F=window.document;this.C=window;this.U=F}; g.RG("yt.ads_.signals_.getAdSignalsString",function(F){return LX(aR(F))});g.L3();var Lak="XMLHttpRequest"in g.Qz?function(){return new XMLHttpRequest}:null;var zm5="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.W(zm5);var I_m={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"},u03="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.W(zm5)),KUG=!1,Jy4=wQY,vQG=d$;g.z(Gk,iW);Bx.prototype.then=function(F,J,b){return this.C?this.C.then(F,J,b):this.T===1&&F?(F=F.call(b,this.U))&&typeof F.then==="function"?F:r$(F):this.T===2&&J?(F=J.call(b,this.U))&&typeof F.then==="function"?F:Tk(F):this}; Bx.prototype.getValue=function(){return this.U}; Bx.prototype.$goog_Thenable=!0;var SN=!1;var hY=x6||nl;var dw3=/^([0-9\.]+):([0-9\.]+)$/;g.z(ag,iW);ag.prototype.name="BiscottiError";g.z(vK,iW);vK.prototype.name="BiscottiMissingError";var VfJ={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},e9=null;var jFv=AJJ(["data-"]),CoJ={};var NyH=0,Kw=g.xM?"webkit":eu?"moz":g.K6?"ms":g.fH?"o":"",leR=g.kC("ytDomDomGetNextId")||function(){return++NyH}; g.RG("ytDomDomGetNextId",leR);var Dwz={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};zD.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; zD.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; zD.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var N1=g.Qz.ytEventsEventsListeners||{};g.RG("ytEventsEventsListeners",N1);var oQC=g.Qz.ytEventsEventsCounter||{count:0};g.RG("ytEventsEventsCounter",oQC);var xwC=eP(function(){var F=!1;try{var J=Object.defineProperty({},"passive",{get:function(){F=!0}}); window.addEventListener("test",null,J)}catch(b){}return F}),hbz=eP(function(){var F=!1; try{var J=Object.defineProperty({},"capture",{get:function(){F=!0}}); window.addEventListener("test",null,J)}catch(b){}return F});var WI;WI=window;g.jR=WI.ytcsi&&WI.ytcsi.now?WI.ytcsi.now:WI.performance&&WI.performance.timing&&WI.performance.now&&WI.performance.timing.navigationStart?function(){return WI.performance.timing.navigationStart+WI.performance.now()}:function(){return(new Date).getTime()};g.Fb(Ey,g.R);Ey.prototype.N=function(F){F.C===void 0&&kMv(F);var J=F.C;F.U===void 0&&kMv(F);this.C=new g.K$(J,F.U)}; Ey.prototype.IG=function(){return this.C||new g.K$}; Ey.prototype.Tj=function(){if(this.C){var F=(0,g.jR)();if(this.Z!=0){var J=this.W,b=this.C,I=J.x-b.x;J=J.y-b.y;I=Math.sqrt(I*I+J*J)/(F-this.Z);this.U[this.T]=Math.abs((I-this.D)/this.D)>.5?1:0;for(b=J=0;b<4;b++)J+=this.U[b]||0;J>=3&&this.V();this.D=I}this.Z=F;this.W=this.C;this.T=(this.T+1)%4}}; Ey.prototype.X_=function(){g.ii(this.Y);g.fw(this.eE)};g.z(j9,g.R);j9.prototype.B=function(F,J,b,I,u){b=g.tE((0,g.tJ)(b,I||this.Um));b={target:F,name:J,callback:b};var w;u&&xwC()&&(w={passive:!0});F.addEventListener(J,b.callback,w);this.V.push(b);return b}; j9.prototype.iX=function(F){for(var J=0;J=D.Sp)||d.C.version>=t||d.C.objectStoreNames.contains(Q)||P.push(Q)}v=P;if(v.length===0){f.gD(5);break}a=Object.keys(b.options.ET); e=q.objectStoreNames();if(b.Db.options.version+1)throw p.close(),b.T=!1,$rv(b,m);return f.return(p);case 8:throw J(), K instanceof Error&&!g.Nk("ytidb_async_stack_killswitch")&&(K.stack=K.stack+"\n"+M.substring(M.indexOf("\n")+1)),zl(K,b.name,"",(y=b.options.version)!=null?y:-1);}})} function J(){b.C===I&&(b.C=void 0)} var b=this;if(!this.T)throw $rv(this);if(this.C)return this.C;var I,u={blocking:function(w){w.close()}, closed:J,ivv:J,upgrade:this.options.upgrade};return this.C=I=F()};var Ol=new DZ("YtIdbMeta",{ET:{databases:{Sp:1}},upgrade:function(F,J){J(1)&&g.Vb(F,"databases",{keyPath:"actualName"})}});var xu,Ul=new function(){}(new function(){});new g.m6;g.z(ZZ,DZ);ZZ.prototype.U=function(F,J,b){b=b===void 0?{}:b;return(this.options.shared?h4z:oda)(F,J,Object.assign({},b))}; ZZ.prototype.delete=function(F){F=F===void 0?{}:F;return(this.options.shared?ndv:cnC)(this.name,F)};var Bye={},Z6z=g.H$("ytGcfConfig",{ET:(Bye.coldConfigStore={Sp:1},Bye.hotConfigStore={Sp:1},Bye),shared:!1,upgrade:function(F,J){J(1)&&(g.sl(g.Vb(F,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.sl(g.Vb(F,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.z(Fp,g.R);Fp.prototype.X_=function(){for(var F=g.N(this.U),J=F.next();!J.done;J=F.next()){var b=this.C;J=b.indexOf(J.value);J>=0&&b.splice(J,1)}this.U.length=0;g.R.prototype.X_.call(this)};MK.prototype.j2=function(F){this.hotHashData=F;g.RG("yt.gcf.config.hotHashData",this.hotHashData||null)};var Ty1=typeof TextEncoder!=="undefined"?new TextEncoder:null,Rzm=Ty1?function(F){return Ty1.encode(F)}:function(F){F=g.lW(F); for(var J=new Uint8Array(F.length),b=0;b=J?!1:!0}; g.A.wy=function(){var F=this;if(!S6(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.T7.FX("QUEUED",this.mp).then(function(J){J&&!F.Nw(J,F.d1)?F.Xa.Ti(function(){return g.S(function(b){if(b.C==1)return J.id===void 0?b.gD(2):g.T(b,F.T7.JC(J.id,F.mp),2);F.wy();g.N4(b)})}):F.zn.Vi()&&F.VD()})};var $P;var Nm3={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,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470, fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491, castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515};var SX1={},uFC=g.H$("ServiceWorkerLogsDatabase",{ET:(SX1.SWHealthLog={Sp:1},SX1),shared:!0,upgrade:function(F,J){J(1)&&g.sl(g.Vb(F,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var Qn={},a$4=0;var RK;kP.prototype.requestComplete=function(F,J){J&&(this.U=!0);F=this.removeParams(F);this.C.get(F)||this.C.set(F,J)}; kP.prototype.isEndpointCFR=function(F){F=this.removeParams(F);return(F=this.C.get(F))?!1:F===!1&&this.U?!0:null}; kP.prototype.removeParams=function(F){return F.split("?")[0]}; kP.prototype.removeParams=kP.prototype.removeParams;kP.prototype.isEndpointCFR=kP.prototype.isEndpointCFR;kP.prototype.requestComplete=kP.prototype.requestComplete;kP.getInstance=OZ;g.z(oK,g.Zr);g.A=oK.prototype;g.A.Vi=function(){return this.C.Vi()}; g.A.jV=function(F){this.C.C=F}; g.A.j5=function(){var F=window.navigator.onLine;return F===void 0?!0:F}; g.A.QX=function(){this.U=!0}; g.A.listen=function(F,J){return this.C.listen(F,J)}; g.A.sO=function(F){F=QP(this.C,F);F.then(function(J){g.Nk("use_cfr_monitor")&&OZ().requestComplete("generate_204",J)}); return F}; oK.prototype.sendNetworkCheckRequest=oK.prototype.sO;oK.prototype.listen=oK.prototype.listen;oK.prototype.enableErrorFlushing=oK.prototype.QX;oK.prototype.getWindowStatus=oK.prototype.j5;oK.prototype.networkStatusHint=oK.prototype.jV;oK.prototype.isNetworkAvailable=oK.prototype.Vi;oK.getInstance=px4;g.z(g.hB,g.Zr);g.hB.prototype.Vi=function(){var F=g.kC("yt.networkStatusManager.instance.isNetworkAvailable");return F?F.bind(this.U)():!0}; g.hB.prototype.jV=function(F){var J=g.kC("yt.networkStatusManager.instance.networkStatusHint").bind(this.U);J&&J(F)}; g.hB.prototype.sO=function(F){var J=this,b;return g.S(function(I){b=g.kC("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(J.U);return g.Nk("skip_network_check_if_cfr")&&OZ().isEndpointCFR("generate_204")?I.return(new Promise(function(u){var w;J.jV(((w=window.navigator)==null?void 0:w.onLine)||!0);u(J.Vi())})):b?I.return(b(F)):I.return(!0)})};var cr;g.z(UZ,sZ);UZ.prototype.writeThenSend=function(F,J){J||(J={});J=nA(F,J);g.Uy()||(this.C=!1);sZ.prototype.writeThenSend.call(this,F,J)}; UZ.prototype.sendThenWrite=function(F,J,b){J||(J={});J=nA(F,J);g.Uy()||(this.C=!1);sZ.prototype.sendThenWrite.call(this,F,J,b)}; UZ.prototype.sendAndWrite=function(F,J){J||(J={});J=nA(F,J);g.Uy()||(this.C=!1);sZ.prototype.sendAndWrite.call(this,F,J)}; UZ.prototype.awaitInitialization=function(){return this.T.promise};var zya=g.Qz.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.RG("ytNetworklessLoggingInitializationOptions",zya);g.tB.prototype.isReady=function(){!this.config_&&gDk()&&(this.config_=g.qK());return!!this.config_};var sy5,LA,JA;sy5=g.Qz.ytPubsubPubsubInstance||new g.EJ;LA=g.Qz.ytPubsubPubsubSubscribedKeys||{};JA=g.Qz.ytPubsubPubsubTopicToKeys||{};g.FT=g.Qz.ytPubsubPubsubIsSynchronous||{};g.EJ.prototype.subscribe=g.EJ.prototype.subscribe;g.EJ.prototype.unsubscribeByKey=g.EJ.prototype.gB;g.EJ.prototype.publish=g.EJ.prototype.publish;g.EJ.prototype.clear=g.EJ.prototype.clear;g.RG("ytPubsubPubsubInstance",sy5);g.RG("ytPubsubPubsubTopicToKeys",JA);g.RG("ytPubsubPubsubIsSynchronous",g.FT); g.RG("ytPubsubPubsubSubscribedKeys",LA);var E6J={};g.z(mA,g.R);mA.prototype.append=function(F){if(!this.U)throw Error("This does not support the append operation");F=F.Pb();this.Pb().appendChild(F)}; g.z(yv,mA);yv.prototype.Pb=function(){return this.C};g.z(VNa,g.R);var i0=Date.now().toString();var WB={};var Vv=Symbol("injectionDeps");Ew.prototype.toString=function(){return"InjectionToken("+this.name+")"}; rRJ.prototype.resolve=function(F){return F instanceof jZ?PB(this,F.key,[],!0):PB(this,F,[])};var BB;var rP=window;var CJ=g.Nk("web_enable_lifecycle_monitoring")&&SZ()!==0,QRv=g.Nk("web_enable_lifecycle_monitoring");$k_.prototype.cancel=function(){for(var F=g.N(this.C),J=F.next();!J.done;J=F.next())J=J.value,J.jobId===void 0||J.KZ||this.scheduler.q_(J.jobId),J.KZ=!0;this.U.resolve()};g.A=XT.prototype;g.A.install=function(F){this.plugins.push(F);return this}; g.A.uninstall=function(){var F=this;g.Ba.apply(0,arguments).forEach(function(J){J=F.plugins.indexOf(J);J>-1&&F.plugins.splice(J,1)})}; g.A.transition=function(F,J){var b=this;CJ&&sRz(this.state);var I=this.transitions.find(function(w){return Array.isArray(w.from)?w.from.find(function(M){return M===b.state&&w.qP===F}):w.from===b.state&&w.qP===F}); if(I){this.U&&(Ci_(this.U),this.U=void 0);RyJ(this,F,J);this.state=F;CJ&&YB(this.state);I=I.action.bind(this);var u=this.plugins.filter(function(w){return w[F]}).map(function(w){return w[F]}); I(Xx3(this,u),J)}else throw Error("no transition specified from "+this.state+" to "+F);}; g.A.DkN=function(F){var J=g.Ba.apply(1,arguments);g.HK();for(var b=g.N(F),I=b.next(),u={};!I.done;u={QV:void 0},I=b.next())u.QV=I.value,Anz(function(w){return function(){Ru(w.QV.name);kB(function(){return w.QV.callback.apply(w.QV,g.W(J))}); Dn(w.QV.name)}}(u))}; g.A.qoQ=function(F){var J=g.Ba.apply(1,arguments),b,I,u,w;return g.S(function(M){M.C==1&&(g.HK(),b=g.N(F),I=b.next(),u={});if(M.C!=3){if(I.done)return M.gD(0);u.f3=I.value;u.Jj=void 0;w=function(q){return function(){Ru(q.f3.name);var v=kB(function(){return q.f3.callback.apply(q.f3,g.W(J))}); bf(v)?q.Jj=g.Nk("web_lifecycle_error_handling_killswitch")?v.then(function(){Dn(q.f3.name)}):v.then(function(){Dn(q.f3.name)},function(a){Y6C(a); Dn(q.f3.name)}):Dn(q.f3.name)}}(u); Anz(w);return u.Jj?g.T(M,u.Jj,3):M.gD(3)}u={f3:void 0,Jj:void 0};I=b.next();return M.gD(2)})}; g.A.u$=function(F){var J=g.Ba.apply(1,arguments),b=this,I=F.map(function(u){return{Pd:function(){Ru(u.name);kB(function(){return u.callback.apply(u,g.W(J))}); Dn(u.name)}, priority:Qv(b,u)}}); I.length&&(this.U=new $k_(I))}; g.q4.Object.defineProperties(XT.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var ou;g.z(Ow,XT);Ow.prototype.D=function(F,J){var b=this;this.C=g.tC(0,function(){b.currentState==="application_navigating"&&b.transition("none")},5E3); F(J==null?void 0:J.event)}; Ow.prototype.W=function(F,J){this.C&&(g.D_.q_(this.C),this.C=null);F(J==null?void 0:J.event)};var mi=[];g.RG("yt.logging.transport.getScrapedGelPayloads",function(){return mi});hA.prototype.storePayload=function(F,J){F=cB(F);this.store[F]?this.store[F].push(J):(this.U={},this.store[F]=[J]);this.C++;g.Nk("more_accurate_gel_parser")&&(J=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(J));return F}; hA.prototype.smartExtractMatchingEntries=function(F){if(!F.keys.length)return[];for(var J=xB(this,F.keys.splice(0,1)[0]),b=[],I=0;I=0){I=!1;break a}}I=!0}I&&(J=$W(J))&&this.jj(J)}}; g.A.fE=function(F){return F}; g.A.Ff=function(F){var J=this.Gj;J.V=!0;J.U=F.touches.length;J.C.isActive()&&(J.C.stop(),J.D=!0);F=F.touches;J.W=Pia(J,F)||F.length!=1;var b=F.item(0);J.W||!b?(J.Y=Infinity,J.N=Infinity):(J.Y=b.clientX,J.N=b.clientY);for(b=J.T.length=0;b=0)}if(b||F&&Math.pow(F.clientX-J.Y,2)+Math.pow(F.clientY-J.N,2)>25)J.Z=!0}; g.A.Kr=function(F){if(this.Gj){var J=this.Gj,b=F.changedTouches;b&&J.V&&J.U==1&&!J.Z&&!J.D&&!J.W&&Pia(J,b)&&(J.Tj=F,J.C.start());J.U=F.touches.length;J.U===0&&(J.V=!1,J.Z=!1,J.T.length=0);J.D=!1}}; g.A.jj=function(F){this.layoutId?this.vN.executeCommand(F,this.layoutId):g.Td(new g.hC("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))}; g.A.createServerVe=function(F,J){this.api.createServerVe(F,this);this.api.setTrackingParams(F,J)}; g.A.logVisibility=function(F,J){this.api.hasVe(F)&&this.api.logVisibility(F,J,this.interactionLoggingClientData)}; g.A.X_=function(){this.clear(null);this.iX(this.bR);for(var F=g.N(this.kQ),J=F.next();!J.done;J=F.next())this.iX(J.value);g.vi.prototype.X_.call(this)};g.z(Pi,a4); Pi.prototype.init=function(F,J,b){a4.prototype.init.call(this,F,J,b);this.C=J;if(J.text==null&&J.icon==null)g.rQ(Error("ButtonRenderer did not have text or an icon set."));else{switch(J.style||null){case "STYLE_UNKNOWN":F="ytp-ad-button-link";break;default:F=null}F!=null&&g.uG(this.element,F);J.text!=null&&(F=g.Kr(J.text),g.d5(F)||(this.element.setAttribute("aria-label",F),this.T=new g.vi({X:"span",K:"ytp-ad-button-text",sQ:F}),g.k(this,this.T),this.T.Az(this.element)));J.accessibilityData&&J.accessibilityData.accessibilityData&& J.accessibilityData.accessibilityData.label&&!g.d5(J.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",J.accessibilityData.accessibilityData.label);J.icon!=null&&(J=Vr(J.icon,this.Z),J!=null&&(this.U=new g.vi({X:"span",K:"ytp-ad-button-icon",j:[J]}),g.k(this,this.U)),this.W?bB(this.element,this.U.element,0):this.U.Az(this.element))}}; Pi.prototype.clear=function(){this.hide()}; Pi.prototype.onClick=function(F){a4.prototype.onClick.call(this,F);F=g.N(rYY(this));for(var J=F.next();!J.done;J=F.next())J=J.value,this.layoutId?this.vN.executeCommand(J,this.layoutId):g.Td(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.z(Bi,g.R);Bi.prototype.X_=function(){this.U&&g.fw(this.U);this.C.clear();Th=null;g.R.prototype.X_.call(this)}; Bi.prototype.register=function(F,J){J&&this.C.set(F,J)}; var Th=null;g.z(sj,a4); sj.prototype.init=function(F,J,b){a4.prototype.init.call(this,F,J,b);F=J.hoverText||null;J=J.button&&g.O(J.button,g.TX)||null;J==null?g.Td(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new Pi(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,void 0,void 0,void 0,void 0,this.T),g.k(this,this.button),this.button.init(bA("button"),J,this.macros),F&&this.button.element.setAttribute("aria-label",g.Kr(F)),this.button.Az(this.element),this.N&&!g.I3(this.button.element, "ytp-ad-clickable")&&g.uG(this.button.element,"ytp-ad-clickable"),this.T&&(g.uG(this.button.element,"ytp-ad-hover-text-button--clean-player"),this.api.S("clean_player_style_fix_on_web")&&g.uG(this.button.element,"ytp-ad-hover-text-button--clean-player-with-light-shadow")),F&&(this.U=new g.vi({X:"div",K:"ytp-ad-hover-text-container"}),this.W&&(J=new g.vi({X:"div",K:"ytp-ad-hover-text-callout"}),J.Az(this.U.element),g.k(this,J)),g.k(this,this.U),this.U.Az(this.element),J=rV(F),bB(this.U.element,J,0)), this.show())}; sj.prototype.hide=function(){this.button&&this.button.hide();this.U&&this.U.hide();a4.prototype.hide.call(this)}; sj.prototype.show=function(){this.button&&this.button.show();a4.prototype.show.call(this)};g.z($S,a4); $S.prototype.init=function(F,J,b){a4.prototype.init.call(this,F,J,b);b=(F=J.thumbnail)&&YS(F)||"";g.d5(b)?Math.random()<.01&&g.rQ(Error("Found AdImage without valid image URL")):(this.C?g.aN(this.element,"backgroundImage","url("+b+")"):Ua(this.element,{src:b}),Ua(this.element,{alt:F&&F.accessibility&&F.accessibility.label||""}),J&&J.adRendererCommands&&J.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; $S.prototype.clear=function(){this.hide()};g.z(Cr,a4);g.A=Cr.prototype;g.A.hide=function(){a4.prototype.hide.call(this);this.T&&this.T.focus()}; g.A.show=function(){this.T=document.activeElement;a4.prototype.show.call(this);this.Z.focus()}; g.A.init=function(F,J,b){a4.prototype.init.call(this,F,J,b);this.U=J;J.dialogMessages||J.title!=null?J.confirmLabel==null?g.Td(Error("ConfirmDialogRenderer.confirmLabel was not set.")):J.cancelLabel==null?g.Td(Error("ConfirmDialogRenderer.cancelLabel was not set.")):$PY(this,J):g.Td(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.A.clear=function(){g.Ve(this.C);this.hide()}; g.A.eX=function(){this.hide()}; g.A.S8=function(){var F=this.U.cancelEndpoint;F&&(this.layoutId?this.vN.executeCommand(F,this.layoutId):g.Td(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.A.Zs=function(){var F=this.U.confirmNavigationEndpoint||this.U.confirmEndpoint;F&&(this.layoutId?this.vN.executeCommand(F,this.layoutId):g.Td(Error("Missing layoutId for confirm dialog.")));this.hide()};g.z(XX,a4);g.A=XX.prototype; g.A.init=function(F,J,b){a4.prototype.init.call(this,F,J,b);this.T=J;if(J.defaultText==null&&J.defaultIcon==null)g.Td(Error("ToggleButtonRenderer must have either text or icon set."));else if(J.defaultIcon==null&&J.toggledIcon!=null)g.Td(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(J.style){switch(J.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":F="ytp-ad-toggle-button-default-style";break;default:F=null}F!=null&&g.uG(this.Z,F)}F={};J.defaultText? (b=g.Kr(J.defaultText),g.d5(b)||(F.buttonText=b,this.api.J().experiments.pW("a11y_h5_associate_survey_question")||this.C.setAttribute("aria-label",b),this.api.J().experiments.pW("fix_h5_toggle_button_a11y")&&this.U.setAttribute("aria-label",b))):g.Wc(this.WN,!1);J.defaultTooltip&&(F.tooltipText=J.defaultTooltip,this.C.hasAttribute("aria-label")||this.U.setAttribute("aria-label",J.defaultTooltip));J.defaultIcon?(b=Vr(J.defaultIcon),this.updateValue("untoggledIconTemplateSpec",b),J.toggledIcon?(this.eE= !0,b=Vr(J.toggledIcon),this.updateValue("toggledIconTemplateSpec",b)):(g.Wc(this.N,!0),g.Wc(this.W,!1)),g.Wc(this.C,!1)):g.Wc(this.U,!1);g.Vj(F)||this.update(F);J.isToggled&&(g.uG(this.Z,"ytp-ad-toggle-button-toggled"),this.toggleButton(J.isToggled));Qr(this);this.B(this.element,"change",this.H7);this.show()}}; g.A.onClick=function(F){this.kQ.length>0&&(this.toggleButton(!this.isToggled()),this.H7());a4.prototype.onClick.call(this,F)}; g.A.H7=function(){g.qr(this.Z,"ytp-ad-toggle-button-toggled",this.isToggled());for(var F=g.N(Caz(this,this.isToggled())),J=F.next();!J.done;J=F.next())J=J.value,this.layoutId?this.vN.executeCommand(J,this.layoutId):g.Td(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);Qr(this)}; g.A.clear=function(){this.hide()}; g.A.toggleButton=function(F){g.qr(this.Z,"ytp-ad-toggle-button-toggled",F);this.C.checked=F;Qr(this)}; g.A.isToggled=function(){return this.C.checked};g.z(R4,j9);R4.prototype.W=function(F){if(Array.isArray(F)){F=g.N(F);for(var J=F.next();!J.done;J=F.next())J=J.value,J instanceof X$C&&this.Z(J)}};g.z(DU,a4);g.A=DU.prototype;g.A.init=function(F,J,b){a4.prototype.init.call(this,F,J,b);J.reasons?J.confirmLabel==null?g.Td(Error("AdFeedbackRenderer.confirmLabel was not set.")):(J.cancelLabel==null&&g.rQ(Error("AdFeedbackRenderer.cancelLabel was not set.")),J.title==null&&g.rQ(Error("AdFeedbackRenderer.title was not set.")),kl_(this,J)):g.Td(Error("AdFeedbackRenderer.reasons were not set."))}; g.A.clear=function(){WK(this.W);WK(this.N);this.Z.length=0;this.hide()}; g.A.hide=function(){this.C&&this.C.hide();this.U&&this.U.hide();a4.prototype.hide.call(this);this.T&&this.T.focus()}; g.A.show=function(){this.C&&this.C.show();this.U&&this.U.show();this.T=document.activeElement;a4.prototype.show.call(this);this.W.focus()}; g.A.kP=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.A.GUv=function(){this.hide()}; kS.prototype.Pb=function(){return this.C.element}; kS.prototype.getCommand=function(){return this.U}; kS.prototype.isChecked=function(){return this.T.checked};g.z(Oj,Cr);Oj.prototype.eX=function(F){Cr.prototype.eX.call(this,F);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; Oj.prototype.S8=function(F){Cr.prototype.S8.call(this,F);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; Oj.prototype.Zs=function(F){Cr.prototype.Zs.call(this,F);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.z(o4,a4);g.A=o4.prototype; g.A.init=function(F,J,b){a4.prototype.init.call(this,F,J,b);this.W=J;if(J.dialogMessage==null&&J.title==null)g.Td(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{J.confirmLabel==null&&g.rQ(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(F=J.closeOverlayRenderer&&g.O(J.closeOverlayRenderer,g.TX)||null)this.C=new Pi(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.k(this,this.C),this.C.init(bA("button"),F,this.macros),this.C.Az(this.element);J.title&&(F=g.Kr(J.title),this.updateValue("title",F));if(J.adReasons)for(F=J.adReasons,b=0;b=this.qf?(this.WN.hide(),this.KW=!0,this.publish("i")):this.T&&this.T.isTemplated()&&(F=Math.max(0,Math.ceil((this.qf-F)/1E3)),F!=this.oI&&(Uj(this.T,{TIME_REMAINING:String(F)}),this.oI=F)))}};g.z(J5,xS);g.A=J5.prototype; g.A.init=function(F,J,b){xS.prototype.init.call(this,F,J,b);if(J.image&&J.image.thumbnail)if(J.headline)if(J.description)if((F=J.actionButton&&g.O(J.actionButton,g.TX))&&F.navigationEndpoint){var I=this.api.getVideoData(2);if(I!=null)if(J.image&&J.image.thumbnail){var u=J.image.thumbnail.thumbnails;u!=null&&u.length>0&&g.d5(g.Zi(u[0].url))&&(u[0].url=I.profilePicture)}else g.rQ(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.T.init(bA("ad-image"),J.image,b);this.W.init(bA("ad-text"), J.headline,b);this.Z.init(bA("ad-text"),J.description,b);this.U.init(bA("button"),F,b);b=cQ(this.U.element);hy(this.U.element,b+" This link opens in new tab");this.eE=F.navigationEndpoint;this.api.cz()||this.show();this.api.J().S("enable_larger_flyout_cta_on_desktop")&&(this.RI("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.RI("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.RI("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"), this.RI("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.RI("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.RI("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.U.element.classList.add("ytp-flyout-cta-action-button-large"),this.U.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.RI("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large")); this.api.addEventListener("playerUnderlayVisibilityChange",this.Kg.bind(this));this.WN=J.startMs||0;nr(this)}else g.Td(Error("FlyoutCtaRenderer has no valid action button."));else g.Td(Error("FlyoutCtaRenderer has no description AdText."));else g.Td(Error("FlyoutCtaRenderer has no headline AdText."));else g.rQ(Error("FlyoutCtaRenderer has no image."))}; g.A.onClick=function(F){xS.prototype.onClick.call(this,F);this.api.pauseVideo();!g.uB(this.U.element,F.target)&&this.eE&&(this.layoutId?this.vN.executeCommand(this.eE,this.layoutId):g.Td(Error("Missing layoutId for flyout cta.")))}; g.A.Nh=function(){if(this.C){var F=this.C.getProgressState();(F&&F.current||this.qf)&&1E3*F.current>=this.WN&&(tr(this),g.Mr(this.element,"ytp-flyout-cta-inactive"),this.U.element.removeAttribute("tabIndex"))}}; g.A.Cj=function(){this.clear()}; g.A.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.Kg.bind(this))}; g.A.show=function(){this.U&&this.U.show();xS.prototype.show.call(this)}; g.A.hide=function(){this.U&&this.U.hide();xS.prototype.hide.call(this)}; g.A.Kg=function(F){F=="hidden"?this.show():this.hide()};g.z(bD,a4);g.A=bD.prototype; g.A.init=function(F,J,b){a4.prototype.init.call(this,F,J,b);this.C=J;if(this.C.rectangle)for(F=this.C.likeButton&&g.O(this.C.likeButton,lj),J=this.C.dislikeButton&&g.O(this.C.dislikeButton,lj),this.T.init(bA("toggle-button"),F,b),this.U.init(bA("toggle-button"),J,b),this.B(this.element,"change",this.xL),this.Z.show(100),this.show(),b=g.N(this.C&&this.C.impressionCommands||[]),F=b.next();!F.done;F=b.next())F=F.value,this.layoutId?this.vN.executeCommand(F,this.layoutId):g.Td(Error("Missing layoutId for instream user sentiment."))}; g.A.clear=function(){this.hide()}; g.A.hide=function(){this.T.hide();this.U.hide();a4.prototype.hide.call(this)}; g.A.show=function(){this.T.show();this.U.show();a4.prototype.show.call(this)}; g.A.xL=function(){TjG(this.element,"ytp-ad-instream-user-sentiment-selected");this.C.postMessageAction&&this.api.jE("onYtShowToast",this.C.postMessageAction);this.Z.hide()}; g.A.onClick=function(F){this.kQ.length>0&&this.xL();a4.prototype.onClick.call(this,F)};g.z(IJ,g.R);g.A=IJ.prototype;g.A.X_=function(){this.reset();g.R.prototype.X_.call(this)}; g.A.reset=function(){g.Ve(this.Z);this.W=!1;this.C&&this.C.stop();this.D.stop();this.T&&(this.T=!1,this.V.play())}; g.A.start=function(){this.reset();this.Z.B(this.U,"mouseover",this.B7,this);this.Z.B(this.U,"mouseout",this.FM,this);this.Tj&&(this.Z.B(this.U,"focusin",this.B7,this),this.Z.B(this.U,"focusout",this.FM,this));this.C?this.C.start():(this.W=this.T=!0,g.aN(this.U,{opacity:this.N}))}; g.A.B7=function(){this.T&&(this.T=!1,this.V.play());this.D.stop();this.C&&this.C.stop()}; g.A.FM=function(){this.W?this.D.start():this.C&&this.C.start()}; g.A.wQ=function(){this.T||(this.T=!0,this.Y.play(),this.W=!0)};var FEa=[new uD("b.f_",!1,0),new uD("j.s_",!1,2),new uD("r.s_",!1,4),new uD("e.h_",!1,6),new uD("i.s_",!0,8),new uD("s.t_",!1,10),new uD("p.h_",!1,12),new uD("s.i_",!1,14),new uD("f.i_",!1,16),new uD("a.b_",!1,18),new uD("a.o_",!1),new uD("g.o_",!1,22),new uD("p.i_",!1,24),new uD("p.m_",!1),new uD("i.k_",!0,28),new uD("n.k_",!0,20),new uD("i.f_",!1),new uD("a.s_",!0),new uD("m.c_",!1),new uD("n.h_",!1,26),new uD("o.p_",!1)].reduce(function(F,J){F[J.U]=J;return F},{});g.z(K0,xS);g.A=K0.prototype; g.A.init=function(F,J,b){xS.prototype.init.call(this,F,J,b);this.eE=J;(this.WN=bAG(this))&&g.rQ(Error("hasAdControlInClickCommands_ is true."));if(!J||g.Vj(J))g.Td(Error("SkipButtonRenderer was not specified or empty."));else if(!J.message||g.Vj(J.message))g.Td(Error("SkipButtonRenderer.message was not specified or empty."));else{F=this.W?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"};J=Vr(F);J==null?g.Td(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+F.iconType+".")): (this.Z=new g.vi({X:"button",Dv:[this.W?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],j:[{X:"span",K:this.W?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",j:[J]}]}),g.k(this,this.Z),this.Z.Az(this.T.element),this.U=new ci(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,"ytp-ad-skip-button-text"),this.W&&this.U.element.classList.add("ytp-ad-skip-button-text-centered"),this.U.init(bA("ad-text"),this.eE.message,b),g.k(this,this.U),bB(this.Z.element,this.U.element, 0));var I=I===void 0?null:I;b=this.api.J();!(this.kQ.length>0)&&b.U&&(tg?0:"ontouchstart"in document.documentElement&&(EV_()||yF()))&&(this.iX(this.bR),I&&this.iX(I),this.kQ=[this.B(this.element,"touchstart",this.Ff,this),this.B(this.element,"touchmove",this.xY,this),this.B(this.element,"touchend",this.Kr,this)])}}; g.A.clear=function(){this.qf.reset();this.hide()}; g.A.hide=function(){this.T.hide();this.U&&this.U.hide();tr(this);xS.prototype.hide.call(this)}; g.A.onClick=function(F){if(this.Z!=null){if(F){var J=F||window.event;J.returnValue=!1;J.preventDefault&&J.preventDefault()}var b;if(HD7(F,{contentCpn:((b=this.api.getVideoData(1))==null?void 0:b.clientPlaybackNonce)||""})===0)this.api.jE("onAbnormalityDetected");else if(xS.prototype.onClick.call(this,F),this.publish("j"),this.api.jE("onAdSkip"),this.KW||!this.WN)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.A.fE=function(F){if(!this.KW)return this.WN&&q_("SkipButton click commands not pruned while ALC exist"),F;var J,b=(J=g.O(F,g.p0))==null?void 0:J.commands;if(!b)return F;F=[];for(J=0;J=this.W&&ID7(this,!0)};g.z(mN,Pi);mN.prototype.init=function(F,J,b){Pi.prototype.init.call(this,F,J,b);F=!1;J.text!=null&&(F=g.Kr(J.text),F=!g.d5(F));F?J.navigationEndpoint==null?g.rQ(Error("No visit advertiser clickthrough provided in renderer,")):J.style!=="STYLE_UNKNOWN"?g.rQ(Error("Button style was not a link-style type in renderer,")):this.show():g.rQ(Error("No visit advertiser text was present in the renderer."))};g.z(ym,a4); ym.prototype.init=function(F,J,b){a4.prototype.init.call(this,F,J,b);F=J.text;g.d5(e0(F))?g.rQ(Error("SimpleAdBadgeRenderer has invalid or empty text")):(F&&F.text&&(J=F.text,this.T&&!this.U&&(J=this.api.J(),J=F.text+" "+(J&&J.U?"\u2022":"\u00b7")),J={text:J,isTemplated:F.isTemplated},F.style&&(J.style=F.style),F.targetId&&(J.targetId=F.targetId),F=new ci(this.api,this.layoutId,this.interactionLoggingClientData,this.vN),F.init(bA("simple-ad-badge"),J,b),F.Az(this.element),g.k(this,F)),this.show())}; ym.prototype.clear=function(){this.hide()};g.z(iD,I4);g.z(zg,g.uA);g.A=zg.prototype;g.A.YO=function(){return this.durationMs}; g.A.stop=function(){this.C&&this.eF.iX(this.C)}; g.A.Q6=function(F){this.U={seekableStart:0,seekableEnd:this.durationMs/1E3,current:F.current};this.publish("h")}; g.A.getProgressState=function(){return this.U}; g.A.BW=function(F){g.e1(F,2)&&this.publish("g")};g.z(N_,g.uA);g.A=N_.prototype;g.A.YO=function(){return this.durationMs}; g.A.start=function(){this.C||(this.C=!0,this.bC.start())}; g.A.stop=function(){this.C&&(this.C=!1,this.bC.stop())}; g.A.Q6=function(){this.EJ+=100;var F=!1;this.EJ>this.durationMs&&(this.EJ=this.durationMs,this.bC.stop(),F=!0);this.U={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.EJ/1E3};this.publish("h");F&&this.publish("g")}; g.A.getProgressState=function(){return this.U};g.z(WL,xS);g.A=WL.prototype;g.A.init=function(F,J,b){xS.prototype.init.call(this,F,J,b);var I;if(J==null?0:(I=J.templatedCountdown)==null?0:I.templatedAdText){F=J.templatedCountdown.templatedAdText;if(!F.isTemplated){g.rQ(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.U=new ci(this.api,this.layoutId,this.interactionLoggingClientData,this.vN);this.U.init(bA("ad-text"),F,{});this.U.Az(this.element);g.k(this,this.U)}this.show()}; g.A.clear=function(){this.hide()}; g.A.hide=function(){tr(this);xS.prototype.hide.call(this)}; g.A.Cj=function(){this.hide()}; g.A.Nh=function(){if(this.C!=null){var F=this.C.getProgressState();if(F!=null&&F.current!=null&&this.U){var J=this.C instanceof zg?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:F.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.C instanceof N_?F.seekableEnd:this.api.getDuration(2,!1);F=F.current;J=this.api.J().experiments.pW("enable_player_overlay_non_negative_remaining_duration_on_web")?Math.max(J-F,0):J-F;Uj(this.U,{FORMATTED_AD_DURATION_REMAINING:String(g.lD(J)), TIME_REMAINING:String(Math.ceil(J))})}}}; g.A.show=function(){nr(this);xS.prototype.show.call(this)};g.z(dJ,ci);dJ.prototype.onClick=function(F){ci.prototype.onClick.call(this,F);this.api.onAdUxClicked(this.componentType)};g.z(j1,a4);j1.prototype.init=function(F,J){a4.prototype.init.call(this,F,J,{});if(F=J.content){g.wK(this.element,F);var b,I;J=((b=J.interaction)==null?void 0:(I=b.accessibility)==null?void 0:I.label)||F;this.element.setAttribute("aria-label",J)}else g.Td(Error("AdSimpleAttributedString does not have text content"))}; j1.prototype.clear=function(){this.hide()}; j1.prototype.onClick=function(F){a4.prototype.onClick.call(this,F)};g.z(Gg,a4); Gg.prototype.init=function(F,J){a4.prototype.init.call(this,F,J,{});(F=J.label)&&F.content&&!g.d5(F.content)?(this.adBadgeText.init(bA("ad-simple-attributed-string"),new EV(F)),(J=J.adPodIndex)&&J.content&&!g.d5(J.content)&&(this.C=new j1(this.api,this.layoutId,this.interactionLoggingClientData,this.vN),this.C.Az(this.element),g.k(this,this.C),this.C.element.classList.add("ytp-ad-badge__pod-index"),this.C.init(bA("ad-simple-attributed-string"),new EV(J))),this.element.classList.add(this.U?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.Td(Error("No label is returned in AdBadgeViewModel."))}; Gg.prototype.show=function(){this.adBadgeText.show();var F;(F=this.C)==null||F.show();a4.prototype.show.call(this)}; Gg.prototype.hide=function(){this.adBadgeText.hide();var F;(F=this.C)==null||F.hide();a4.prototype.hide.call(this)};g.z(Vm,a4); Vm.prototype.init=function(F,J){a4.prototype.init.call(this,F,J,{});(F=J.adPodIndex)&&F.content&&!g.d5(F.content)&&(this.C=new j1(this.api,this.layoutId,this.interactionLoggingClientData,this.vN),this.C.Az(this.element),g.k(this,this.C),this.C.init(bA("ad-simple-attributed-string"),new EV(F)),(this.api.J().S("clean_player_style_fix_on_web")?J.visibilityCondition==="AD_POD_INDEX_VISIBILITY_CONDITION_AUTOHIDE":!this.U||J.visibilityCondition!=="AD_POD_INDEX_VISIBILITY_CONDITION_ALWAYS_SHOW_IF_NONSKIPPABLE")&&this.element.classList.add("ytp-ad-pod-index--autohide")); this.element.classList.add("ytp-ad-pod-index--stark");this.api.S("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-ad-pod-index--stark-with-light-shadow");this.show()}; Vm.prototype.show=function(){var F;(F=this.C)==null||F.show();a4.prototype.show.call(this)}; Vm.prototype.hide=function(){var F;(F=this.C)==null||F.hide();a4.prototype.hide.call(this)};g.z(PL,a4); PL.prototype.init=function(F,J){a4.prototype.init.call(this,F,J,{});if(J!=null&&J.text){var b;if(((b=J.text)==null?0:b.content)&&!g.d5(J.text.content)){this.C=new g.vi({X:"div",K:"ytp-ad-disclosure-banner__text",sQ:J.text.content});g.k(this,this.C);this.C.Az(this.element);var I,u;F=((I=J.interaction)==null?void 0:(u=I.accessibility)==null?void 0:u.label)||J.text.content;this.element.setAttribute("aria-label",F);var w;if((w=J.interaction)==null?0:w.onTap)this.U=new g.vi({X:"div",K:"ytp-ad-disclosure-banner__chevron",j:[g.yr()]}), g.k(this,this.U),this.U.Az(this.element);this.show()}}else g.Td(Error("No banner text found in AdDisclosureBanner."))}; PL.prototype.clear=function(){this.hide()};BL.prototype.getLength=function(){return this.C-this.U};g.z(rJ,g.vi);rJ.prototype.Q6=function(){var F=this.U.getProgressState(),J=F.seekableEnd;this.api.getPresentingPlayerType()===2&&this.api.J().S("show_preskip_progress_bar_for_skippable_ads")&&(J=this.T?this.T/1E3:F.seekableEnd);F=Tg(new BL(F.seekableStart,J),F.current,0);this.progressBar.style.width=F*100+"%"}; rJ.prototype.onStateChange=function(){g.TB(this.api.J())||(this.api.getPresentingPlayerType()===2?this.C===-1&&(this.show(),this.C=this.U.subscribe("h",this.Q6,this),this.Q6()):this.C!==-1&&(this.hide(),this.U.gB(this.C),this.C=-1))};g.z(S1,a4); S1.prototype.init=function(F,J,b,I){a4.prototype.init.call(this,F,J,b);b=!0;if(J.skipOrPreviewRenderer){var u=J.skipOrPreviewRenderer;F=g.O(u,IS);u=g.O(u,BF);F?(u=new gJ(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,this.U,this.eE),u.Az(this.N),u.init(bA("skip-button"),F,this.macros),g.k(this,u)):u&&!this.api.J().experiments.pW("disable_ad_preview_for_instream_ads")&&(F=new Lr(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,this.U,!1),F.Az(this.N),F.init(bA("ad-preview"),u, this.macros),FY(F),g.k(this,F));if(F=g.O(J.skipOrPreviewRenderer,IS)){b=!1;var w=F.skipOffsetMilliseconds}}J.brandInteractionRenderer&&(F=J.brandInteractionRenderer.brandInteractionRenderer,u=new bD(this.api,this.layoutId,this.interactionLoggingClientData,this.vN),u.Az(this.qf),u.init(bA("instream-user-sentiment"),F,this.macros),g.k(this,u));if(F=g.O(J,m8z))if(F=g.O(F,m8z))u=new J5(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,this.U,!!J.showWithoutLinkedMediaLayout),g.k(this,u), u.Az(this.W),u.init(bA("flyout-cta"),F,this.macros);F=(this.api.J().S("disable_ad_duration_remaining_for_instream_video_ads")||J.adPodIndex!==void 0)&&!1;I=I&&I.videoAdDurationSeconds;if(J.adBadgeRenderer){var M=J.adBadgeRenderer;u=g.O(M,oL);u!=null?(M=new Gg(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,F),g.k(this,M),M.Az(this.C),M.init(bA("ad-badge"),u,this.macros),this.T=M.element):(u=M.simpleAdBadgeRenderer,u==null&&(u={text:{text:"An\u00fancio",isTemplated:!1}}),M=new ym(this.api, this.layoutId,this.interactionLoggingClientData,this.vN,!0),g.k(this,M),M.Az(this.C),M.init(bA("simple-ad-badge"),u,this.macros))}J.adPodIndex&&(u=g.O(J.adPodIndex,jbL),u!=null&&(b=new Vm(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,b),g.k(this,b),b.Az(this.C),b.init(bA("ad-pod-index"),u)));J.adDurationRemaining&&!J.showWithoutLinkedMediaLayout&&(b=J.adDurationRemaining.adDurationRemainingRenderer,b==null&&(b={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}", isTemplated:!0}}}),I=new WL(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,this.U,I,F),g.k(this,I),I.Az(this.C),I.init(bA("ad-duration-remaining"),b,this.macros),F&&I.element.classList.add("ytp-ad-duration-remaining-autohide"));J.adInfoRenderer&&(I=g.O(J.adInfoRenderer,PF))&&(b=new hr(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,this.element,void 0,F),g.k(this,b),this.api.J().S("enable_ad_pod_index_autohide")&&this.T!==null?this.C.insertBefore(b.element,this.T.nextSibling): b.Az(this.C),b.init(bA("ad-info-hover-text-button"),I,this.macros));J.visitAdvertiserRenderer&&(b=g.O(J.visitAdvertiserRenderer,g.TX))&&(u=M6z(this)&&this.Z?this.Z:this.C)&&(I=new mN(this.api,this.layoutId,this.interactionLoggingClientData,this.vN),g.k(this,I),I.Az(u),I.init(bA("visit-advertiser"),b,this.macros),OY(I.element),b=cQ(I.element),hy(I.element,b+" This link opens in new tab"));!(I=this.api.J())||g.Pu(I)||I.controlsType!="3"&&!I.disableOrganicUi||(w=new rJ(this.api,this.U,w,F),w.Az(this.dD), g.k(this,w));J.adDisclosureBannerRenderer&&(J=g.O(J.adDisclosureBannerRenderer,ELb))&&(w=new PL(this.api,this.layoutId,this.interactionLoggingClientData,this.vN),w.Az(this.WN),w.init(bA("ad-disclosure-banner"),J),g.k(this,w));this.api.J().S("enable_updated_html5_player_focus_style")&&g.uG(this.element,"ytp-ad-player-overlay-updated-focus-style");F&&this.api.J().U&&this.C.classList.add("ytp-ad-player-overlay-instream-info--clean-player-mweb");this.show()}; S1.prototype.clear=function(){this.hide()};C0.prototype.set=function(F,J,b){b=b!==void 0?Date.now()+b:void 0;this.C.set(F,J,b)}; C0.prototype.get=function(F){return this.C.get(F)}; C0.prototype.remove=function(F){this.C.remove(F)};var DI=null,ky=null,OV=null,KE7=null;g.RG("yt.www.ads.eventcache.getLastCompanionData",function(){return DI}); g.RG("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.RG("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return ky}); g.RG("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return OV}); g.RG("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return KE7});var gPk=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);oJ.prototype.handleResponse=function(F,J){if(!J)throw Error("request needs to be passed into ConsistencyService");var b,I;J=((b=J.K1.context)==null?void 0:(I=b.request)==null?void 0:I.consistencyTokenJars)||[];var u;(F=(u=F.responseContext)==null?void 0:u.consistencyTokenJar)&&this.replace(J,F)}; oJ.prototype.replace=function(F,J){F=g.N(F);for(var b=F.next();!b.done;b=F.next())delete this.C[b.value.encryptedTokenJarContents];yBz(this,J)};var DLV=window.location.hostname.split(".").slice(-2).join("."),PI;cL.getInstance=function(){PI=g.kC("yt.clientLocationService.instance");PI||(PI=new cL,g.RG("yt.clientLocationService.instance",PI));return PI}; g.A=cL.prototype; g.A.setLocationOnInnerTubeContext=function(F){F.client||(F.client={});if(this.C)F.client.locationInfo||(F.client.locationInfo={}),F.client.locationInfo.latitudeE7=Math.floor(this.C.coords.latitude*1E7),F.client.locationInfo.longitudeE7=Math.floor(this.C.coords.longitude*1E7),F.client.locationInfo.horizontalAccuracyMeters=Math.round(this.C.coords.accuracy),F.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.T||this.locationPlayabilityToken)F.client.locationPlayabilityToken=this.T|| this.locationPlayabilityToken}; g.A.handleResponse=function(F){var J;F=(J=F.responseContext)==null?void 0:J.locationPlayabilityToken;F!==void 0&&(this.locationPlayabilityToken=F,this.C=void 0,g.cT("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=h5(this))&&this.localStorage.set("yt-location-playability-token",F,15552E3):g.Y6("YT_CL",JSON.stringify({loctok:F}),15552E3,DLV,!0))}; g.A.clearLocationPlayabilityToken=function(F){F==="TVHTML5"?(this.localStorage=h5(this))&&this.localStorage.remove("yt-location-playability-token"):g.Cl("YT_CL");this.T=void 0;this.U!==-1&&(clearTimeout(this.U),this.U=-1)}; g.A.getCurrentPositionFromGeolocation=function(){var F=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var J=!1,b=1E4;g.cT("INNERTUBE_CLIENT_NAME")==="MWEB"&&(J=!0,b=15E3);return new Promise(function(I,u){navigator.geolocation.getCurrentPosition(function(w){F.C=w;I(w)},function(w){u(w)},{enableHighAccuracy:J, maximumAge:0,timeout:b})})}; g.A.createUnpluggedLocationInfo=function(F){var J={};F=F.coords;if(F==null?0:F.latitude)J.latitudeE7=Math.floor(F.latitude*1E7);if(F==null?0:F.longitude)J.longitudeE7=Math.floor(F.longitude*1E7);if(F==null?0:F.accuracy)J.locationRadiusMeters=Math.round(F.accuracy);return J}; g.A.createLocationInfo=function(F){var J={};F=F.coords;if(F==null?0:F.latitude)J.latitudeE7=Math.floor(F.latitude*1E7);if(F==null?0:F.longitude)J.longitudeE7=Math.floor(F.longitude*1E7);return J};g.A=fDm.prototype;g.A.contains=function(F){return Object.prototype.hasOwnProperty.call(this.C,F)}; g.A.get=function(F){if(this.contains(F))return this.C[F]}; g.A.set=function(F,J){this.C[F]=J}; g.A.b7=function(){return Object.keys(this.C)}; g.A.remove=function(F){delete this.C[F]};n0.prototype.getModuleId=function(F){return F.serviceId.getModuleId()}; n0.prototype.get=function(F){a:{var J=this.mappings.get(F.toString());switch(J.type){case "mapping":F=J.value;break a;case "factory":J=J.value();this.mappings.set(F.toString(),{type:"mapping",value:J});F=J;break a;default:F=wU(J)}}return F}; n0.prototype.registerService=function(F,J){this.mappings.set(F.toString(),{type:"mapping",value:J});return F}; new n0;var BI={},WE4=(BI.WEB_UNPLUGGED="^unplugged/",BI.WEB_UNPLUGGED_ONBOARDING="^unplugged/",BI.WEB_UNPLUGGED_OPS="^unplugged/",BI.WEB_UNPLUGGED_PUBLIC="^unplugged/",BI.WEB_CREATOR="^creator/",BI.WEB_KIDS="^kids/",BI.WEB_EXPERIMENTS="^experiments/",BI.WEB_MUSIC="^music/",BI.WEB_REMIX="^music/",BI.WEB_MUSIC_EMBEDDED_PLAYER="^music/",BI.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",BI);HL.prototype.D=function(F,J,b){J=J===void 0?{}:J;b=b===void 0?aK:b;var I={context:g.UV(F.clickTrackingParams,!1,this.Z)};var u=this.U(F);if(u){this.C(I,u,J);var w;J=g.ZI(this.T());(u=(w=g.O(F.commandMetadata,g.Nm))==null?void 0:w.apiUrl)&&(J=u);w=zbY(XF(J));F=Object.assign({},{command:F},void 0);I={input:w,w_:Qt(w),K1:I,config:F};I.config.R3?I.config.R3.identity=b:I.config.R3={identity:b};return I}g.Td(new g.hC("Error: Failed to create Request from Command.",F))}; g.q4.Object.defineProperties(HL.prototype,{Z:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.z(L0,HL);g.z(FH,L0);FH.prototype.D=function(){return{input:"/getDatasyncIdsEndpoint",w_:Qt("/getDatasyncIdsEndpoint","GET"),K1:{}}}; FH.prototype.T=function(){return[]}; FH.prototype.U=function(){}; FH.prototype.C=function(){};var kw1={},bJz=(kw1.GET_DATASYNC_IDS=t5(FH),kw1);var Tr={},Ofz=(Tr["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",Tr["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",Tr["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",Tr["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",Tr["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",Tr["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",Tr["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", Tr["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",Tr["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",Tr["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",Tr["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",Tr["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",Tr["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",Tr["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",Tr["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", Tr["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",Tr["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",Tr["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",Tr["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",Tr["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",Tr["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",Tr["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", Tr["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",Tr.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",Tr["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",Tr["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",Tr["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",Tr["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",Tr["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",Tr["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", Tr["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",Tr["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",Tr["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",Tr["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",Tr["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",Tr["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",Tr["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",Tr["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",Tr["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",Tr["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",Tr.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",Tr["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",Tr["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",Tr["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",Tr["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",Tr["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",Tr["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",Tr["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",Tr["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",Tr["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",Tr["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",Tr["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",Tr["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",Tr["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",Tr["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",Tr["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",Tr["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",Tr["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",Tr["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",Tr["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",Tr["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",Tr["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", Tr["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",Tr["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",Tr["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",Tr["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",Tr["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",Tr["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",Tr["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",Tr["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",Tr["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", Tr["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",Tr["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",Tr["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",Tr["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",Tr["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",Tr["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",Tr["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",Tr["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", Tr),rt={},BLa=(rt.auto_search="LATENCY_ACTION_AUTO_SEARCH",rt.ad_to_ad="LATENCY_ACTION_AD_TO_AD",rt.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",rt.app_startup="LATENCY_ACTION_APP_STARTUP",rt.browse="LATENCY_ACTION_BROWSE",rt.cast_splash="LATENCY_ACTION_CAST_SPLASH",rt.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",rt.channels="LATENCY_ACTION_CHANNELS",rt.chips="LATENCY_ACTION_CHIPS",rt.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",rt.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", rt.editor="LATENCY_ACTION_EDITOR",rt.embed="LATENCY_ACTION_EMBED",rt.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",rt.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",rt.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",rt.explore="LATENCY_ACTION_EXPLORE",rt.favorites="LATENCY_ACTION_FAVORITES",rt.home="LATENCY_ACTION_HOME",rt.inboarding="LATENCY_ACTION_INBOARDING",rt.library="LATENCY_ACTION_LIBRARY",rt.live="LATENCY_ACTION_LIVE",rt.live_pagination= "LATENCY_ACTION_LIVE_PAGINATION",rt.management="LATENCY_ACTION_MANAGEMENT",rt.mini_app="LATENCY_ACTION_MINI_APP_PLAY",rt.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",rt.onboarding="LATENCY_ACTION_ONBOARDING",rt.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",rt.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",rt.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",rt.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",rt.prebuffer="LATENCY_ACTION_PREBUFFER", rt.prefetch="LATENCY_ACTION_PREFETCH",rt.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",rt.profile_switcher="LATENCY_ACTION_LOGIN",rt.projects="LATENCY_ACTION_PROJECTS",rt.reel_watch="LATENCY_ACTION_REEL_WATCH",rt.results="LATENCY_ACTION_RESULTS",rt.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",rt.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",rt.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",rt.review="LATENCY_ACTION_REVIEW",rt.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER", rt.search_ui="LATENCY_ACTION_SEARCH_UI",rt.search_suggest="LATENCY_ACTION_SUGGEST",rt.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",rt.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",rt.seek="LATENCY_ACTION_PLAYER_SEEK",rt.settings="LATENCY_ACTION_SETTINGS",rt.store="LATENCY_ACTION_STORE",rt.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",rt.tenx="LATENCY_ACTION_TENX",rt.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",rt.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",rt.watch="LATENCY_ACTION_WATCH", rt.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",rt["watch,watch7"]="LATENCY_ACTION_WATCH",rt["watch,watch7_html5"]="LATENCY_ACTION_WATCH",rt["watch,watch7ad"]="LATENCY_ACTION_WATCH",rt["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",rt.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",rt.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",rt.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",rt.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",rt.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE", rt.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",rt.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",rt.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",rt);Object.assign(BLa,Ofz);g.z(fp,e6);var oPz=new KA("aft-recorded",fp);var oK8=g.Qz.ytLoggingGelSequenceIdObj_||{};g.RG("ytLoggingGelSequenceIdObj_",oK8);var Ez=g.Qz.ytLoggingLatencyUsageStats_||{};g.RG("ytLoggingLatencyUsageStats_",Ez);Wf.prototype.tick=function(F,J,b,I){jl(this,"tick_"+F+"_"+J)||g.AY("latencyActionTicked",{tickName:F,clientActionNonce:J},{timestamp:b,cttAuthInfo:I})}; Wf.prototype.info=function(F,J,b){var I=Object.keys(F).join("");jl(this,"info_"+I+"_"+J)||(F=Object.assign({},F),F.clientActionNonce=J,g.AY("latencyActionInfo",F,{cttAuthInfo:b}))}; Wf.prototype.jspbInfo=function(F,J,b){for(var I="",u=0;u=u.length?(J.append(u),F-=u.length):F?(J.append(new Uint8Array(u.buffer,u.byteOffset,F)),b.append(new Uint8Array(u.buffer,u.byteOffset+F,u.length-F)),F=0):b.append(u);return{lf:J,eS:b}}; g.A.isFocused=function(F){return F>=this.O2&&F=64&&(this.W.set(F.subarray(0,64-this.U),this.U),J=64-this.U,this.U=0,OJC(this,this.W,0));for(;J+64<=b;J+=64)OJC(this,F,J);J=this.start&&(F=2&&b.ssdaiAdsConfig&&q_("Unexpected ad placement renderers length",F.slot,null,{length:I.length});I.some(function(u){var w,M,q,v;return!!((w=u.renderer)==null?0:(M=w.linearAdSequenceRenderer)==null?0:(q=M.linearAds)==null?0:q.length)||!((v=u.renderer)==null||!v.instreamVideoAdRenderer)})||Ar_(F)})}; MC.prototype.fn=function(){UY7(this.C)};As.prototype.Ge=function(){var F=this;ckz(this.U,function(){var J=uL(F.slot.clientMetadata,"metadata_type_ad_break_request_data");return J.cueProcessedMs?F.C.get().fetch({iW:J.getAdBreakUrl,rU:new g.b6(J.F1,J.xI),cueProcessedMs:J.cueProcessedMs}):F.C.get().fetch({iW:J.getAdBreakUrl,rU:new g.b6(J.F1,J.xI)})})}; As.prototype.fn=function(){UY7(this.U)};qC.prototype.Ge=function(){var F=this.slot.clientMetadata,J,b=(J=this.slot.fulfilledLayout)!=null?J:uL(F,"metadata_type_fulfilled_layout");jOJ(this.callback,this.slot,b)}; qC.prototype.fn=function(){iL(this.callback,this.slot,new Z("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")};aV.prototype.build=function(F,J){return J.fulfilledLayout||v7(J,{WV:["metadata_type_fulfilled_layout"]})?new qC(F,J):this.T(F,J)};g.z(er,aV); er.prototype.T=function(F,J){if(v7(J,{WV:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new MC(F,J,this.C,this.U,this.P1,this.uR,this.EQ,this.OQ,this.RC);if(v7(J,{WV:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new As(F,J,this.C,this.U,this.P1,this.uR);throw new Z("Unsupported slot with type: "+J.slotType+" and client metadata: "+wX(J.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.z(Kd,aV);Kd.prototype.T=function(F,J){throw new Z("Unsupported slot with type: "+J.slotType+" and client metadata: "+wX(J.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.A=qj7.prototype;g.A.Bb=function(){return this.slot}; g.A.xQ=function(){return this.layout}; g.A.init=function(){}; g.A.release=function(){}; g.A.startRendering=function(F){if(F.layoutId!==this.layout.layoutId)this.callback.XW(this.slot,F,new bL("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 J=uL(F.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.bT(this.slot,F),jWo(this.T, this.slot,J)):q_("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,F)}}; g.A.T$=function(F,J){F.layoutId!==this.layout.layoutId?this.callback.XW(this.slot,F,new bL("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.A_(this.slot,F,J),aUv(this),eeG(this))};g.z(i6,g.uA);g.A=i6.prototype;g.A.Bb=function(){return this.U.slot}; g.A.xQ=function(){return this.U.layout}; g.A.init=function(){this.T.get().addListener(this)}; g.A.release=function(){this.T.get().removeListener(this);this.dispose()}; g.A.dA=function(){}; g.A.Mt=function(){}; g.A.fb=function(){}; g.A.qy=function(){}; g.A.startRendering=function(F){var J=this;yp(this.U,F,function(){return void J.Mm()})}; g.A.Mm=function(){this.T.get().Mm(this.C)}; g.A.T$=function(F,J){var b=this;yp(this.U,F,function(){var I=b.T.get();uOC(I,b.C,3);b.C=[];b.callback.A_(b.slot,F,J)})}; g.A.X_=function(){this.T.iR()||this.T.get().removeListener(this);g.uA.prototype.X_.call(this)}; g.q4.Object.defineProperties(i6.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.U.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.U.layout}}});jr.prototype.RQ=function(F,J){J=J===void 0?!1:J;var b=(this.T.get(F)||[]).concat();if(J=J&&gSm(F)){var I=this.T.get(J);I&&b.push.apply(b,g.W(I))}P7(this,F,b);this.C.add(F);J&&this.C.add(J)}; jr.prototype.JJ=function(F,J){J=J===void 0?!1:J;if(!this.C.has(F)){var b=J&&gSm(F);b&&(J=!this.C.has(b));this.RQ(F,J)}};g.z(irz,I4);g.z(sh,i6);g.A=sh.prototype;g.A.Oo=function(F,J){fd("ads-engagement-panel-layout",F,this.W.get().ML,this.EQ.get(),this.Z,this.D,this.Bb(),this.xQ(),J)}; g.A.startRendering=function(F){NC(this.yG,this.Bb(),this.xQ(),g.O(this.xQ().renderingContent,Ik),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(J,b,I,u,w){return new irz(J,b,I,u,w)},this.C); i6.prototype.startRendering.call(this,F)}; g.A.bT=function(F,J){this.D===J.layoutId&&(this.Z===null?this.Z=this.EQ.get().C8():q_("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.A.A_=function(){}; g.A.mu=function(){}; g.A.Bh=function(){}; g.A.tX=function(){}; g.A.d0=function(){}; g.A.lx=function(){}; g.A.xj=function(){}; g.A.F3=function(){}; g.A.gq=function(){}; g.A.fd=function(){}; g.A.Y7=function(){}; g.A.X_=function(){mO(this.rY(),this);i6.prototype.X_.call(this)};g.z(NVa,I4);g.z(Y5,i6);g.A=Y5.prototype;g.A.Oo=function(F,J){fd("banner-image",F,this.W.get().ML,this.EQ.get(),this.Z,this.D,this.Bb(),this.xQ(),J)}; g.A.startRendering=function(F){NC(this.yG,this.Bb(),this.xQ(),g.O(this.xQ().renderingContent,JI),this.callback,"metadata_type_banner_image_layout_view_model",function(J,b,I,u,w){return new NVa(J,b,I,u,w)},this.C); i6.prototype.startRendering.call(this,F)}; g.A.bT=function(F,J){this.D===J.layoutId&&(this.Z===null?this.Z=this.EQ.get().C8():q_("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.A.A_=function(){}; g.A.mu=function(){}; g.A.Bh=function(){}; g.A.tX=function(){}; g.A.d0=function(){}; g.A.lx=function(){}; g.A.xj=function(){}; g.A.F3=function(){}; g.A.gq=function(){}; g.A.fd=function(){}; g.A.Y7=function(){}; g.A.X_=function(){mO(this.rY(),this);i6.prototype.X_.call(this)};g.z($5,I4);g.z(Cd,i6);g.A=Cd.prototype;g.A.Oo=function(F,J){fd("action-companion",F,this.W.get().ML,this.EQ.get(),this.Z,this.D,this.Bb(),this.xQ(),J)}; g.A.startRendering=function(F){NC(this.yG,this.Bb(),this.xQ(),g.O(this.xQ().renderingContent,HS),this.callback,"metadata_type_action_companion_ad_renderer",function(J,b,I,u,w){return new $5(J,b,I,u,w)},this.C); i6.prototype.startRendering.call(this,F)}; g.A.bT=function(F,J){J.layoutId===this.layout.layoutId?this.yG.JJ("impression"):this.D===J.layoutId&&(this.Z===null?this.Z=this.EQ.get().C8():q_("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.A.A_=function(){}; g.A.mu=function(){}; g.A.Bh=function(){}; g.A.tX=function(){}; g.A.d0=function(){}; g.A.lx=function(){}; g.A.xj=function(){}; g.A.F3=function(){}; g.A.gq=function(){}; g.A.fd=function(){}; g.A.Y7=function(){}; g.A.X_=function(){mO(this.rY(),this);i6.prototype.X_.call(this)};g.z(Wha,I4);g.z(XK,i6);g.A=XK.prototype;g.A.Oo=function(F,J){fd("image-companion",F,this.W.get().ML,this.EQ.get(),this.Z,this.D,this.Bb(),this.xQ(),J)}; g.A.startRendering=function(F){NC(this.yG,this.Bb(),this.xQ(),g.O(this.xQ().renderingContent,Li),this.callback,"metadata_type_image_companion_ad_renderer",function(J,b,I,u,w){return new Wha(J,b,I,u,w)},this.C); i6.prototype.startRendering.call(this,F)}; g.A.bT=function(F,J){J.layoutId===this.layout.layoutId?this.yG.JJ("impression"):this.D===J.layoutId&&(this.Z===null?this.Z=this.EQ.get().C8():q_("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.A.A_=function(){}; g.A.mu=function(){}; g.A.Bh=function(){}; g.A.tX=function(){}; g.A.d0=function(){}; g.A.lx=function(){}; g.A.xj=function(){}; g.A.F3=function(){}; g.A.gq=function(){}; g.A.fd=function(){}; g.A.Y7=function(){}; g.A.X_=function(){mO(this.rY(),this);i6.prototype.X_.call(this)};g.z(ESz,I4);g.z(Qp,i6);g.A=Qp.prototype;g.A.Oo=function(F,J){fd("shopping-companion",F,this.W.get().ML,this.EQ.get(),this.Z,this.D,this.Bb(),this.xQ(),J)}; g.A.startRendering=function(F){NC(this.yG,this.Bb(),this.xQ(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(J,b,I,u,w){return new ESz(J,b,I,u,w)},this.C); i6.prototype.startRendering.call(this,F)}; g.A.bT=function(F,J){J.layoutId===this.layout.layoutId?this.yG.JJ("impression"):this.D===J.layoutId&&(this.Z===null?this.Z=this.EQ.get().C8():q_("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.A.A_=function(){}; g.A.mu=function(){}; g.A.Bh=function(){}; g.A.tX=function(){}; g.A.d0=function(){}; g.A.lx=function(){}; g.A.xj=function(){}; g.A.F3=function(){}; g.A.gq=function(){}; g.A.fd=function(){}; g.A.Y7=function(){}; g.A.X_=function(){mO(this.rY(),this);i6.prototype.X_.call(this)};g.z(DQ,i6);g.A=DQ.prototype;g.A.startRendering=function(F){NC(this.yG,this.Bb(),this.xQ(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(J,b,I,u,w){return new $5(J,b,I,u,w)},this.C); i6.prototype.startRendering.call(this,F)}; g.A.bT=function(){}; g.A.A_=function(){}; g.A.mu=function(){}; g.A.Bh=function(){}; g.A.tX=function(){}; g.A.d0=function(){}; g.A.lx=function(){}; g.A.xj=function(){}; g.A.F3=function(){}; g.A.gq=function(){}; g.A.fd=function(){}; g.A.Y7=function(){}; g.A.X_=function(){mO(this.rY(),this);i6.prototype.X_.call(this)}; g.A.Oo=function(){};g.A=TV7.prototype;g.A.Bb=function(){return this.slot}; g.A.xQ=function(){return this.layout}; g.A.init=function(){this.OQ.get().addListener(this);this.OQ.get().xN.push(this);var F=uL(this.layout.clientMetadata,"metadata_type_video_length_seconds"),J=uL(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");W7(this.layout.ww)&&J7(this.X4.get(),this.layout.layoutId,{Mi:J,cP:F,listener:this})}; g.A.release=function(){this.OQ.get().removeListener(this);HNa(this.OQ.get(),this);W7(this.layout.ww)&&bY(this.X4.get(),this.layout.layoutId)}; g.A.startRendering=function(F){this.callback.bT(this.slot,F)}; g.A.T$=function(F,J){Wl3(this.uR.get())&&!this.C&&(this.yG.JJ("abandon"),this.C=!0);this.callback.A_(this.slot,F,J)}; g.A.nF=function(F){switch(F.id){case "part2viewed":this.yG.JJ("start");this.yG.JJ("impression");break;case "videoplaytime25":this.yG.JJ("first_quartile");break;case "videoplaytime50":this.yG.JJ("midpoint");break;case "videoplaytime75":this.yG.JJ("third_quartile");break;case "videoplaytime100":Wl3(this.uR.get())?this.C||(this.yG.JJ("complete"),this.C=!0):this.yG.JJ("complete");Sr(this.yG)&&Ts(this.yG,Infinity,!0);dA7(this.uR.get())&&RV(this.U,Infinity,!0);break;case "engagedview":Sr(this.yG)||this.yG.JJ("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:q_("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.A.onVolumeChange=function(){}; g.A.OJ=function(){}; g.A.Kv=function(){}; g.A.bq=function(){}; g.A.onFullscreenToggled=function(){}; g.A.jT=function(){}; g.A.mP=function(){}; g.A.XB=function(F){dA7(this.uR.get())&&RV(this.U,F*1E3,!1);Sr(this.yG)&&Ts(this.yG,F*1E3,!1)}; g.A.c9=function(){}; g.A.rM=function(){this.yG.JJ("active_view_measurable")}; g.A.CQ=function(){this.yG.JJ("active_view_viewable")}; g.A.I7=function(){this.yG.JJ("active_view_fully_viewable_audible_half_duration")}; g.A.NO=function(){this.yG.JJ("audio_measurable")}; g.A.LB=function(){this.yG.JJ("audio_audible")};g.z(k5,i6);g.A=k5.prototype;g.A.init=function(){i6.prototype.init.call(this);var F=uL(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),J={adsClientData:this.layout.lT};this.C.push(new iD(F,this.layout.layoutId,uL(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),J,!0))}; g.A.bS=function(){this.Z||this.OQ.get().resumeVideo(1)}; g.A.startRendering=function(F){i6.prototype.startRendering.call(this,F);vn(this.OQ.get(),"ad-showing");this.callback.bT(this.slot,F);this.D.fP=this}; g.A.T$=function(F,J){i6.prototype.T$.call(this,F,J);aL(this.OQ.get(),"ad-showing");Ug(this.D,this)}; g.A.Oo=function(F){switch(F){case "ad-info-icon-button":(this.Z=this.OQ.get().ZX(1))||this.OQ.get().pauseVideo();break;case "visit-advertiser":this.OQ.get().pauseVideo()}}; g.A.X_=function(){i6.prototype.X_.call(this)};g.z(Oh,I4);g.z(oV,i6);g.A=oV.prototype;g.A.startRendering=function(F){NC(this.yG,this.Bb(),this.xQ(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(J,b,I,u,w){return new Oh(J,b,I,u,w)},this.C); i6.prototype.startRendering.call(this,F)}; g.A.bT=function(){}; g.A.A_=function(){}; g.A.mu=function(){}; g.A.Bh=function(){}; g.A.tX=function(){}; g.A.d0=function(){}; g.A.lx=function(){}; g.A.xj=function(){}; g.A.F3=function(){}; g.A.gq=function(){}; g.A.fd=function(){}; g.A.Y7=function(){}; g.A.X_=function(){mO(this.rY(),this);i6.prototype.X_.call(this)}; g.A.Oo=function(){};g.z(hs,I4);g.z(c7,i6);c7.prototype.init=function(){i6.prototype.init.call(this);this.C.push(new hs(g.O(this.layout.renderingContent,WF),this.layout.layoutId,{adsClientData:this.layout.lT}))}; c7.prototype.Oo=function(){WN(this.Z.get(),this.D)&&l6(this.EQ.get(),3)}; c7.prototype.startRendering=function(F){i6.prototype.startRendering.call(this,F);this.callback.bT(this.slot,F)}; c7.prototype.X_=function(){i6.prototype.X_.call(this)};g.z(Uh,I4);g.z(x5,i6);x5.prototype.init=function(){i6.prototype.init.call(this);var F=g.O(this.layout.renderingContent,A1)||uL(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),J=zs(this.yG);this.C.push(new Uh(F,J,this.layout.layoutId,{adsClientData:this.layout.lT},!0,!0))}; x5.prototype.startRendering=function(F){i6.prototype.startRendering.call(this,F);this.callback.bT(this.slot,F)}; x5.prototype.Oo=function(F,J){if(J===this.layout.layoutId)switch(F){case "skip-button":var b;(F=(b=uL(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:b.current)&&F.uE(this.Bb(),this.layout)}}; x5.prototype.X_=function(){i6.prototype.X_.call(this)};ts.prototype.build=function(F,J,b,I){if(nd(I,{WV:["metadata_type_ad_break_response_data"],C7:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new qj7(F,b,I,this.U,this.T,this.C);throw new bL("Unsupported layout with type: "+I.layoutType+" and client metadata: "+wX(I.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.z(s43,I4);g.z(ZQ,i6);g.A=ZQ.prototype;g.A.Oo=function(F,J){fd("ads-engagement-panel",F,this.W.get().ML,this.EQ.get(),this.Z,this.D,this.Bb(),this.xQ(),J)}; g.A.startRendering=function(F){NC(this.yG,this.Bb(),this.xQ(),g.O(this.xQ().renderingContent,Fj),this.callback,"metadata_type_ads_engagement_panel_renderer",function(J,b,I,u,w){return new s43(J,b,I,u,w)},this.C); i6.prototype.startRendering.call(this,F)}; g.A.bT=function(F,J){J.layoutId===this.layout.layoutId?this.yG.JJ("impression"):this.D===J.layoutId&&(this.Z===null?this.Z=this.EQ.get().C8():q_("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.A.A_=function(){}; g.A.mu=function(){}; g.A.Bh=function(){}; g.A.tX=function(){}; g.A.d0=function(){}; g.A.lx=function(){}; g.A.xj=function(){}; g.A.F3=function(){}; g.A.gq=function(){}; g.A.fd=function(){}; g.A.Y7=function(){}; g.A.X_=function(){mO(this.rY(),this);i6.prototype.X_.call(this)};g.z(H7,i6);g.A=H7.prototype;g.A.Oo=function(F,J){fd("top-banner-image-text-icon-buttoned",F,this.W.get().ML,this.EQ.get(),this.Z,this.D,this.Bb(),this.xQ(),J)}; g.A.startRendering=function(F){NC(this.yG,this.Bb(),this.xQ(),g.O(this.xQ().renderingContent,bM),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(J,b,I,u,w){return new Oh(J,b,I,u,w)},this.C); i6.prototype.startRendering.call(this,F)}; g.A.bT=function(F,J){this.D===J.layoutId&&(this.Z===null?this.Z=this.EQ.get().C8():q_("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.A.A_=function(){}; g.A.mu=function(){}; g.A.Bh=function(){}; g.A.tX=function(){}; g.A.d0=function(){}; g.A.lx=function(){}; g.A.xj=function(){}; g.A.F3=function(){}; g.A.gq=function(){}; g.A.fd=function(){}; g.A.Y7=function(){}; g.A.X_=function(){mO(this.rY(),this);i6.prototype.X_.call(this)};CA_.prototype.build=function(F,J,b,I){if(nd(I,Yja())||g.O(I.renderingContent,Fj)!==void 0)return new ZQ(F,b,I,this.sI,this.EQ,this.rY,this.X4,this.C);if(nd(I,fU_())||g.O(I.renderingContent,HS)!==void 0)return new Cd(F,b,I,this.sI,this.EQ,this.rY,this.X4,this.C);if(nd(I,dc3())||g.O(I.renderingContent,Li)!==void 0)return new XK(F,b,I,this.sI,this.EQ,this.rY,this.X4,this.C);if(nd(I,j4a()))return new Qp(F,b,I,this.sI,this.EQ,this.rY,this.X4,this.C);if(nd(I,BVz()))return new DQ(F,b,I,this.sI,this.EQ,this.rY, this.X4,this.C);if(nd(I,lUY())||g.O(I.renderingContent,JI)!==void 0)return new Y5(F,b,I,this.sI,this.EQ,this.rY,this.X4,this.C);if(nd(I,$ck())||g.O(I.renderingContent,bM)!==void 0)return new H7(F,b,I,this.sI,this.EQ,this.rY,this.X4,this.C);if(nd(I,rra()))return new oV(F,b,I,this.sI,this.EQ,this.rY,this.X4,this.C);if(nd(I,zek())||g.O(I.renderingContent,Ik)!==void 0)return new sh(F,b,I,this.sI,this.EQ,this.rY,this.X4,this.C);throw new bL("Unsupported layout with type: "+I.layoutType+" and client metadata: "+ wX(I.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};XiJ.prototype.build=function(F,J,b,I){if(nd(I,{WV:["metadata_type_linked_player_bytes_layout_id"],C7:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new c7(F,b,I,this.sI,this.EQ,this.C);throw new bL("Unsupported layout with type: "+I.layoutType+" and client metadata: "+wX(I.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.A=Q4Y.prototype;g.A.Bb=function(){return this.slot}; g.A.xQ=function(){return this.layout}; g.A.init=function(){}; g.A.release=function(){}; g.A.startRendering=function(F){F.layoutId!==this.layout.layoutId?this.callback.XW(this.slot,F,new bL("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.bT(this.slot,F),this.yG.JJ("impression"),OR(this.cD,F,"normal"))}; g.A.T$=function(F,J){F.layoutId!==this.layout.layoutId?this.callback.XW(this.slot,F,new bL("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.A_(this.slot,F,J)};g.A=Dca.prototype;g.A.Bb=function(){return this.slot}; g.A.xQ=function(){return this.layout}; g.A.init=function(){}; g.A.release=function(){}; g.A.startRendering=function(F){F.layoutId!==this.layout.layoutId?this.callback.XW(this.slot,F,new bL("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.bT(this.slot,F),this.yG.JJ("impression"),OR(this.cD,F,"normal"))}; g.A.T$=function(F,J){F.layoutId!==this.layout.layoutId?this.callback.XW(this.slot,F,new bL("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.A_(this.slot,F,J)};Ld.prototype.build=function(F,J,b,I){if(!this.uR.get().G.J().S("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(nd(I,Re7()))return new Q4Y(F,b,I,this.EQ,this.cD)}else if(nd(I,{WV:[],C7:["LAYOUT_TYPE_FORECASTING"]}))return new Dca(F,b,I,this.EQ,this.cD);throw new bL("Unsupported layout with type: "+I.layoutType+" and client metadata: "+wX(I.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.z(oS7,I4);g.z(Fk,i6);g.A=Fk.prototype;g.A.init=function(){i6.prototype.init.call(this);var F=g.O(this.layout.renderingContent,MM)||uL(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),J={adsClientData:this.layout.lT};this.C.push(new oS7(F,uL(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,J))}; g.A.bS=function(){this.Z||this.OQ.get().resumeVideo(2)}; g.A.startRendering=function(F){i6.prototype.startRendering.call(this,F);this.callback.bT(this.slot,F);this.D.fP=this}; g.A.T$=function(F,J){i6.prototype.T$.call(this,F,J);Ug(this.D,this)}; g.A.Oo=function(F){if(WN(this.W.get(),this.V))switch(F){case "visit-advertiser-link":l6(this.EQ.get(),3)}switch(F){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.Z||this.OQ.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.Z=this.OQ.get().ZX(2))||this.OQ.get().pauseVideo();break;case "visit-advertiser-link":this.OQ.get().pauseVideo();heG(this).m3();break;case "skip-button":if(F=heG(this), this.layout.renderingContent&&!LK(this.layout.clientMetadata,"metadata_type_dai")||!F.oz){var J;(F=(J=uL(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:J.current)&&F.uE(this.Bb(),this.layout)}else q_("Requesting to skip by LegacyPlayerBytes when components enabled"),F.XO(this.Bb(),this.layout)}}; g.A.X_=function(){i6.prototype.X_.call(this)};g.z(J1,i6);g.A=J1.prototype;g.A.init=function(){i6.prototype.init.call(this);var F=g.O(this.layout.renderingContent,wk)||uL(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),J={adsClientData:this.layout.lT},b;(b=!!this.layout.renderingContent)||(b=!bO(this).oz);this.C.push(new iD(F,this.layout.layoutId,uL(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),J,b))}; g.A.bS=function(){this.Z||this.OQ.get().resumeVideo(2)}; g.A.startRendering=function(F){i6.prototype.startRendering.call(this,F);this.callback.bT(this.slot,F);this.D.fP=this}; g.A.T$=function(F,J){i6.prototype.T$.call(this,F,J);Ug(this.D,this)}; g.A.Oo=function(F){if(WN(this.W.get(),this.V))switch(F){case "visit-advertiser":l6(this.EQ.get(),3)}switch(F){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.Z||this.OQ.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.Z=this.OQ.get().ZX(2))||this.OQ.get().pauseVideo();break;case "visit-advertiser":this.OQ.get().pauseVideo();bO(this).m3();break;case "skip-button":if(F=bO(this),this.layout.renderingContent&& !LK(this.layout.clientMetadata,"metadata_type_dai")||!F.oz){var J;(F=(J=uL(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:J.current)&&F.uE(this.Bb(),this.layout)}else q_("Requesting to skip by LegacyPlayerBytes"),F.XO(this.Bb(),this.layout)}}; g.A.X_=function(){i6.prototype.X_.call(this)};g.z(UcJ,I4);g.z(IT,i6);g.A=IT.prototype;g.A.startRendering=function(F){var J=this;yp(this.U,F,function(){J.C.push(new UcJ(uL(J.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),F.layoutId,F.lT));J.Mm();J.callback.bT(J.slot,F);g.x(Fm(J.OQ.get(),1),512)&&J.callback.XW(J.Bb(),J.xQ(),new bL("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.A.mP=function(){}; g.A.jT=function(F){if(F.state.isError()){var J;this.callback.XW(this.Bb(),this.xQ(),new bL("A player error happened during adNotify",{playerErrorCode:(J=F.state.e6)==null?void 0:J.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.A.onFullscreenToggled=function(){}; g.A.Kv=function(){}; g.A.bq=function(){}; g.A.OJ=function(){}; g.A.onVolumeChange=function(){}; g.A.nF=function(){}; g.A.c9=function(){}; g.A.Oo=function(){};g.z(nSY,I4);g.z(uO,i6);uO.prototype.init=function(){i6.prototype.init.call(this);var F=g.O(this.layout.renderingContent,qM),J=zs(this.yG);this.C.push(new nSY(F,J,this.layout.layoutId,{adsClientData:this.layout.lT}))}; uO.prototype.startRendering=function(F){i6.prototype.startRendering.call(this,F);this.callback.bT(this.slot,F)}; uO.prototype.Oo=function(F,J){if(J===this.layout.layoutId)switch(F){case "skip-button":var b;(F=(b=uL(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:b.current)&&F.uE(this.Bb(),this.layout)}}; uO.prototype.X_=function(){i6.prototype.X_.call(this)};t0o.prototype.build=function(F,J,b,I){if(F=v4(F,b,I,this.sI,this.OQ,this.EQ,this.U,this.C,this.uR))return F;throw new bL("Unsupported layout with type: "+I.layoutType+" and client metadata: "+wX(I.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.A=KF.prototype;g.A.Bb=function(){return this.slot}; g.A.xQ=function(){return this.layout}; g.A.init=function(){this.OQ.get().addListener(this);this.OQ.get().xN.push(this);var F=this.layout.renderingContent?gM(this.QG.get(),1).Xk/1E3:uL(this.layout.clientMetadata,"metadata_type_video_length_seconds"),J=uL(this.layout.clientMetadata,"metadata_type_active_view_traffic_type"),b=uL(this.layout.clientMetadata,"metadata_type_active_view_identifier");W7(this.layout.ww)&&J7(this.X4.get(),this.layout.layoutId,{Mi:J,cP:F,listener:this,uv:b})}; g.A.release=function(){this.OQ.get().removeListener(this);HNa(this.OQ.get(),this);W7(this.layout.ww)&&bY(this.X4.get(),this.layout.layoutId)}; g.A.startRendering=function(F){this.callback.bT(this.slot,F)}; g.A.T$=function(F,J){pF(this,"abandon");this.callback.A_(this.slot,F,J)}; g.A.nF=function(F){switch(F.id){case "part2viewed":this.yG.JJ("start");this.yG.JJ("impression");break;case "videoplaytime25":this.yG.JJ("first_quartile");break;case "videoplaytime50":this.yG.JJ("midpoint");break;case "videoplaytime75":this.yG.JJ("third_quartile");break;case "videoplaytime100":pF(this,"complete");Sr(this.yG)&&Ts(this.yG,Infinity,!0);break;case "engagedview":Sr(this.yG)||this.yG.JJ("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:q_("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.A.onVolumeChange=function(){}; g.A.OJ=function(){}; g.A.Kv=function(){}; g.A.bq=function(){}; g.A.onFullscreenToggled=function(){}; g.A.jT=function(F){this.C||(g.e1(F,4)&&!g.e1(F,2)?B7(this.yG,"pause"):aJ(F,4)<0&&!(aJ(F,2)<0)&&B7(this.yG,"resume"))}; g.A.mP=function(){}; g.A.XB=function(F){Sr(this.yG)&&Ts(this.yG,F*1E3,!1)}; g.A.c9=function(){pF(this,"swipe")}; g.A.rM=function(){this.yG.JJ("active_view_measurable")}; g.A.CQ=function(){this.yG.JJ("active_view_viewable")}; g.A.I7=function(){this.yG.JJ("active_view_fully_viewable_audible_half_duration")}; g.A.NO=function(){this.yG.JJ("audio_measurable")}; g.A.LB=function(){this.yG.JJ("audio_audible")};Zro.prototype.build=function(F,J,b,I){if(b.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.O(I.renderingContent,Ex)!==void 0)return new KF(F,b,I,this.OQ,this.EQ,this.uR,this.X4,this.QG);J=["metadata_type_ad_placement_config"];for(var u=g.N(Gs()),w=u.next();!w.done;w=u.next())J.push(w.value);if(nd(I,{WV:J,C7:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return b.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new KF(F,b,I,this.OQ,this.EQ,this.uR,this.X4,this.QG):new TV7(F,b,I,this.OQ,this.EQ, this.D7,this.uR,this.X4);throw new bL("Unsupported layout with type: "+I.layoutType+" and client metadata: "+wX(I.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var iO={contentCpn:"",Hn:new Map};A5k.prototype.Ck=function(F,J){var b={};J=Object.assign({},J,(b.cc=this.RP.Vd(),b));this.RP.G.UQ(F,J)};var A_5,X6; A_5={zc_:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",Cq_:"AUTHENTICATION_MALFORMED",w9G:"AUTHENTICATION_MISSING",Tgz:"BAD_REQUEST",Pq_:"CAST_SESSION_DEVICE_MISMATCHED",RVG:"CAST_SESSION_VIDEO_MISMATCHED",kiQ:"CAST_TOKEN_EXPIRED",g__:"CAST_TOKEN_FAILED",WSI:"CAST_TOKEN_MALFORMED",ANI:"CGI_PARAMS_MALFORMED",OFI:"CGI_PARAMS_MISSING",j6R:"DEVICE_FALLBACK",R3j:"GENERIC_WITH_LINK_AND_CPN",kc_:"ERROR_HDCP",g0_:"LICENSE",ADI:"VIDEO_UNAVAILABLE",Mif:"FORMAT_UNAVAILABLE",S2j:"GEO_FAILURE", n0R:"HTML5_AUDIO_RENDERER_ERROR",a2Q:"GENERIC_WITHOUT_LINK",b4W:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",m_z:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",cDQ:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",LtQ:"HTML5_SPS_UMP_STATUS_REJECTED",scG:"INVALID_DRM_MESSAGE",aWD:"PURCHASE_NOT_FOUND",bcG:"PURCHASE_REFUNDED",C7_:"RENTAL_EXPIRED",XuG:"RETRYABLE_ERROR",WJG:"SERVER_ERROR",daW:"SIGNATURE_EXPIRED",zhz:"STOPPED_BY_ANOTHER_PLAYBACK",KJR:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",tpj:"STREAMING_NOT_ALLOWED", xaz:"STREAM_LICENSE_NOT_FOUND",puG:"TOO_MANY_REQUESTS",YMR:"TOO_MANY_REQUESTS_WITH_LINK",jnD:"TOO_MANY_STREAMS_PER_ENTITLEMENT",nZ_:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",kfQ:"VIDEO_FORBIDDEN",gsG:"VIDEO_NOT_FOUND",X9E:"BROWSER_OR_EXTENSION_ERROR"};X6={}; g.nV=(X6.ALREADY_PINNED_ON_A_DEVICE="Voc\u00ea j\u00e1 fez o download deste v\u00eddeo para a quantidade m\u00e1xima de dispositivos permitida pelo propriet\u00e1rio dos direitos autorais. Antes de reproduzi-lo aqui, ser\u00e1 necess\u00e1rio remov\u00ea-lo de outro dispositivo.",X6.DEVICE_FALLBACK="Este v\u00eddeo n\u00e3o est\u00e1 dispon\u00edvel neste dispositivo.",X6.GENERIC_WITH_LINK_AND_CPN="Ocorreu um erro. Tente novamente mais tarde. (ID de reprodu\u00e7\u00e3o: $CPN) $BEGIN_LINKSaiba mais$END_LINK", X6.LICENSE="Ocorreu um erro ao licenciar este v\u00eddeo.",X6.VIDEO_UNAVAILABLE="V\u00eddeo indispon\u00edvel",X6.FORMAT_UNAVAILABLE="O v\u00eddeo n\u00e3o est\u00e1 dispon\u00edvel na qualidade selecionada. Tente novamente mais tarde.",X6.GEO_FAILURE="Este v\u00eddeo n\u00e3o est\u00e1 dispon\u00edvel em seu pa\u00eds.",X6.HTML5_AUDIO_RENDERER_ERROR="Erro ao renderizar \u00e1udio. Reinicie seu computador.",X6.GENERIC_WITHOUT_LINK="Ocorreu um erro. Tente novamente mais tarde.",X6.HTML5_NO_AVAILABLE_FORMATS_FALLBACK= "Este formato de v\u00eddeo n\u00e3o \u00e9 suportado.",X6.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="No momento, seu navegador n\u00e3o reconhece os formatos de v\u00eddeo dispon\u00edveis. $BEGIN_LINKClique aqui para visitar as perguntas frequentes sobre v\u00eddeos em HTML5.$END_LINK",X6.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="N\u00e3o \u00e9 poss\u00edvel tocar este v\u00eddeo no seu navegador. $BEGIN_LINKSaiba mais$END_LINK",X6.HTML5_SPS_UMP_STATUS_REJECTED="Algo deu errado. Atualize ou tente de novo depois. $BEGIN_LINKSaiba mais$END_LINK", X6.INVALID_DRM_MESSAGE="A mensagem espec\u00edfica do sistema de DRM (gest\u00e3o de direitos digitais) \u00e9 inv\u00e1lida.",X6.PURCHASE_NOT_FOUND="Este v\u00eddeo requer pagamento.",X6.PURCHASE_REFUNDED="A compra deste v\u00eddeo foi estornada.",X6.RENTAL_EXPIRED="O aluguel deste v\u00eddeo expirou.",X6.CAST_SESSION_DEVICE_MISMATCHED="O dispositivo na sess\u00e3o de transmiss\u00e3o n\u00e3o corresponde ao solicitado.",X6.CAST_SESSION_VIDEO_MISMATCHED="O v\u00eddeo da sess\u00e3o de transmiss\u00e3o n\u00e3o corresponde ao solicitado.", X6.CAST_TOKEN_FAILED="Sess\u00e3o de transmiss\u00e3o n\u00e3o dispon\u00edvel. Atualize ou tente novamente mais tarde.",X6.CAST_TOKEN_EXPIRED="A sess\u00e3o de transmiss\u00e3o expirou. Atualize.",X6.CAST_TOKEN_MALFORMED="Sess\u00e3o de transmiss\u00e3o inv\u00e1lida. Atualize ou tente novamente mais tarde.",X6.SERVER_ERROR="Ocorreu um erro interno do servidor. Tente novamente mais tarde.",X6.STOPPED_BY_ANOTHER_PLAYBACK="Sua conta est\u00e1 reproduzindo este v\u00eddeo em outro local. Recarregue esta p\u00e1gina para continuar assistindo.", X6.STREAM_LICENSE_NOT_FOUND="Reprodu\u00e7\u00e3o de v\u00eddeo interrompida. Tente novamente.",X6.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Foram utilizados muitos dispositivos/endere\u00e7os IP no per\u00edodo de 24 horas.",X6.STREAMING_NOT_ALLOWED="Reprodu\u00e7\u00e3o n\u00e3o permitida porque este v\u00eddeo est\u00e1 fixado a outro dispositivo.",X6.RETRYABLE_ERROR="Ocorreu um erro tempor\u00e1rio no servidor. Tente novamente mais tarde.",X6.TOO_MANY_REQUESTS="Fa\u00e7a login para assistir este v\u00eddeo.", X6.TOO_MANY_REQUESTS_WITH_LINK="$BEGIN_LINKClique aqui$END_LINK para assistir este v\u00eddeo no YouTube.",X6.TOO_MANY_STREAMS_PER_USER="A reprodu\u00e7\u00e3o foi interrompida porque est\u00e3o sendo exibidos muitos v\u00eddeos da mesma conta.",X6.TOO_MANY_STREAMS_PER_ENTITLEMENT="A reprodu\u00e7\u00e3o foi interrompida porque este v\u00eddeo foi reproduzido em muitos dispositivos.",X6.UNSUPPORTED_DEVICE="A reprodu\u00e7\u00e3o n\u00e3o \u00e9 compat\u00edvel com este dispositivo.",X6.VIDEO_FORBIDDEN= "O acesso a este v\u00eddeo \u00e9 proibido.",X6.VIDEO_NOT_FOUND="N\u00e3o foi poss\u00edvel localizar o v\u00eddeo.",X6.BROWSER_OR_EXTENSION_ERROR="Algo deu errado. Atualize ou tente de novo depois. $BEGIN_LINKSaiba mais$END_LINK",X6);var qF8;var vpU=g.Bk(),azb=vpU.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!azb||azb.length<2)qF8=void 0;else{var eW1=vpU.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);qF8=eW1&&eW1.length===6?Number(eW1[5].replace("_",".")):0}var FG=qF8,os=FG>=0;g.z(g.s5,j9);g.s5.prototype.B=function(F,J,b,I,u){return j9.prototype.B.call(this,F,J,b,I,u)};var Qq={},vG=(Qq.FAIRPLAY="fairplay",Qq.PLAYREADY="playready",Qq.WIDEVINE="widevine",Qq.CLEARKEY=null,Qq.FLASHACCESS=null,Qq.UNKNOWN=null,Qq.WIDEVINE_CLASSIC=null,Qq);Yz.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var RB={},mp=(RB.WIDTH={name:"width",video:!0,valid:640,rK:99999},RB.HEIGHT={name:"height",video:!0,valid:360,rK:99999},RB.FRAMERATE={name:"framerate",video:!0,valid:30,rK:9999},RB.BITRATE={name:"bitrate",video:!0,valid:3E5,rK:2E9},RB.EOTF={name:"eotf",video:!0,valid:"bt709",rK:"catavision"},RB.CHANNELS={name:"channels",video:!1,valid:2,rK:99},RB.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",rK:"invalidformat"},RB.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", rK:"nope"},RB.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",rK:"av99.0.05M.08"},RB.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",rK:"invalid"},RB);var KLk=["h","H"],p3t=["9","("],gp1=["9h","(h"],mub=["8","*"],y_5=["a","A"],iIz=["o","O"],zWH=["m","M"],NUm=["mac3","MAC3"],lzV=["meac3","MEAC3"],DN={},bxo=(DN.h=KLk,DN.H=KLk,DN["9"]=p3t,DN["("]=p3t,DN["9h"]=gp1,DN["(h"]=gp1,DN["8"]=mub,DN["*"]=mub,DN.a=y_5,DN.A=y_5,DN.o=iIz,DN.O=iIz,DN.m=zWH,DN.M=zWH,DN.mac3=NUm,DN.MAC3=NUm,DN.meac3=lzV,DN.MEAC3=lzV,DN),fzb=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),xCk=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var H={},Df=(H["0"]="f",H["160"]="h",H["133"]="h",H["134"]="h",H["135"]="h",H["136"]="h",H["137"]="h",H["264"]="h",H["266"]="h",H["138"]="h",H["298"]="h",H["299"]="h",H["304"]="h",H["305"]="h",H["214"]="h",H["216"]="h",H["374"]="h",H["375"]="h",H["140"]="a",H["141"]="ah",H["327"]="sa",H["258"]="m",H["380"]="mac3",H["328"]="meac3",H["161"]="H",H["142"]="H",H["143"]="H",H["144"]="H",H["222"]="H",H["223"]="H",H["145"]="H",H["224"]="H",H["225"]="H",H["146"]="H",H["226"]="H",H["227"]="H",H["147"]="H", H["384"]="H",H["376"]="H",H["385"]="H",H["377"]="H",H["149"]="A",H["261"]="M",H["381"]="MAC3",H["329"]="MEAC3",H["598"]="9",H["278"]="9",H["242"]="9",H["243"]="9",H["244"]="9",H["775"]="9",H["776"]="9",H["777"]="9",H["778"]="9",H["779"]="9",H["780"]="9",H["781"]="9",H["782"]="9",H["783"]="9",H["247"]="9",H["248"]="9",H["353"]="9",H["355"]="9",H["356"]="9",H["271"]="9",H["577"]="9",H["313"]="9",H["579"]="9",H["272"]="9",H["302"]="9",H["303"]="9",H["407"]="9",H["408"]="9",H["308"]="9",H["315"]="9", H["330"]="9h",H["331"]="9h",H["332"]="9h",H["333"]="9h",H["334"]="9h",H["335"]="9h",H["336"]="9h",H["337"]="9h",H["338"]="so",H["600"]="o",H["250"]="o",H["251"]="o",H["774"]="o",H["194"]="*",H["195"]="*",H["220"]="*",H["221"]="*",H["196"]="*",H["197"]="*",H["279"]="(",H["280"]="(",H["317"]="(",H["318"]="(",H["273"]="(",H["274"]="(",H["357"]="(",H["358"]="(",H["275"]="(",H["359"]="(",H["360"]="(",H["276"]="(",H["583"]="(",H["584"]="(",H["314"]="(",H["585"]="(",H["561"]="(",H["277"]="(",H["361"]="(h", H["362"]="(h",H["363"]="(h",H["364"]="(h",H["365"]="(h",H["366"]="(h",H["591"]="(h",H["592"]="(h",H["367"]="(h",H["586"]="(h",H["587"]="(h",H["368"]="(h",H["588"]="(h",H["562"]="(h",H["409"]="(",H["410"]="(",H["411"]="(",H["412"]="(",H["557"]="(",H["558"]="(",H["394"]="1",H["395"]="1",H["396"]="1",H["397"]="1",H["398"]="1",H["399"]="1",H["720"]="1",H["721"]="1",H["400"]="1",H["401"]="1",H["571"]="1",H["402"]="1",H["694"]="1h",H["695"]="1h",H["696"]="1h",H["697"]="1h",H["698"]="1h",H["699"]="1h",H["700"]= "1h",H["701"]="1h",H["702"]="1h",H["703"]="1h",H["386"]="3",H["387"]="w",H["406"]="6",H["787"]="1",H["788"]="1",H["548"]="1e",H["549"]="1e",H["550"]="1e",H["551"]="1e",H["809"]="1e",H["810"]="1e",H["552"]="1e",H["811"]="1e",H["812"]="1e",H["553"]="1e",H["813"]="1e",H["814"]="1e",H["554"]="1e",H["815"]="1e",H["816"]="1e",H["555"]="1e",H["817"]="1e",H["818"]="1e",H["572"]="1e",H["556"]="1e",H["645"]="(",H["646"]="(",H["647"]="(",H["648"]="(",H["649"]="(",H["650"]="(",H["651"]="(",H["652"]="(",H["653"]= "(",H["654"]="(",H["655"]="(",H["656"]="(",H["657"]="(",H["658"]="(",H["659"]="(",H["660"]="(",H["661"]="(",H["662"]="(",H["663"]="(",H["664"]="(",H["665"]="(",H["666"]="(",H["667"]="(",H["668"]="(",H["669"]="(",H["670"]="(",H["671"]="(",H["672"]="(",H["673"]="(",H["674"]="(h",H["675"]="(h",H["676"]="(h",H["677"]="(h",H["678"]="(h",H["679"]="(h",H["680"]="(h",H["681"]="(h",H["682"]="(h",H["683"]="(h",H["684"]="(h",H["685"]="(h",H["686"]="(h",H["687"]="(h",H["688"]="A",H["689"]="A",H["690"]="A",H["691"]= "MEAC3",H["773"]="i",H["806"]="I",H["805"]="I",H["829"]="9",H["830"]="9",H["831"]="9",H["832"]="9",H["833"]="9",H["834"]="9",H["835"]="9",H["836"]="9",H["837"]="9",H["838"]="9",H["839"]="9",H["840"]="9",H["841"]="(",H["842"]="(",H["843"]="(",H["844"]="(",H["845"]="(",H["846"]="(",H["847"]="(",H["848"]="(",H["849"]="(",H["850"]="(",H["851"]="(",H["852"]="(",H["865"]="9",H["866"]="9",H["867"]="9",H["868"]="9",H["869"]="9",H["870"]="9",H["871"]="9",H["872"]="9",H["873"]="9",H["874"]="9",H["875"]="9", H["876"]="9",H["877"]="(",H["878"]="(",H["879"]="(",H["880"]="(",H["881"]="(",H["882"]="(",H["883"]="(",H["884"]="(",H["885"]="(",H["886"]="(",H["887"]="(",H["888"]="(",H);var kE={},C1a=(kE.STEREO_LAYOUT_UNKNOWN=0,kE.STEREO_LAYOUT_LEFT_RIGHT=1,kE.STEREO_LAYOUT_TOP_BOTTOM=2,kE);var Ou,Jt;Ou={};g.CF=(Ou.auto=0,Ou.tiny=144,Ou.light=144,Ou.small=240,Ou.medium=360,Ou.large=480,Ou.hd720=720,Ou.hd1080=1080,Ou.hd1440=1440,Ou.hd2160=2160,Ou.hd2880=2880,Ou.highres=4320,Ou);Jt={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var QZ="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");Xk.prototype.isHdr=function(){return this.U==="smpte2084"||this.U==="arib-std-b67"};kz.prototype.Xb=function(){return this.containerType===2}; kz.prototype.isEncrypted=function(){return!!this.Ke}; kz.prototype.Cd=function(){return!!this.audio}; kz.prototype.v1=function(){return!!this.video}; var h1=!1;g.z(es,g.uA);g.A=es.prototype;g.A.appendBuffer=function(F,J,b){if(this.Us.q4()!==this.appendWindowStart+this.start||this.Us.Js()!==this.appendWindowEnd+this.start||this.Us.Xq()!==this.timestampOffset+this.start)this.Us.supports(1),this.Us.ZL(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.Us.sM(this.timestampOffset+this.start);this.Us.appendBuffer(F,J,b)}; g.A.abort=function(){this.Us.abort()}; g.A.remove=function(F,J){this.Us.remove(F+this.start,J+this.start)}; g.A.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.A.clear=function(){this.Us.clear()}; g.A.ZL=function(F,J){this.appendWindowStart=F;this.appendWindowEnd=J}; g.A.Av=function(){return this.timestampOffset+this.start}; g.A.q4=function(){return this.appendWindowStart}; g.A.Js=function(){return this.appendWindowEnd}; g.A.sM=function(F){this.timestampOffset=F}; g.A.Xq=function(){return this.timestampOffset}; g.A.N0=function(F){F=this.Us.N0(F===void 0?!1:F);return al(F,this.start,this.end)}; g.A.x0=function(){return this.Us.x0()}; g.A.WH=function(){return this.Us.WH()}; g.A.yB=function(){return this.Us.yB()}; g.A.Nt=function(){return this.Us.Nt()}; g.A.Yk=function(){this.Us.Yk()}; g.A.EL=function(F){return this.Us.EL(F)}; g.A.yO=function(){return this.Us.yO()}; g.A.LV=function(){return this.Us.LV()}; g.A.vL=function(){return this.Us.vL()}; g.A.G_=function(F,J,b){this.Us.G_(F,J,b)}; g.A.Pw=function(F,J,b){this.Us.Pw(F,J,b)}; g.A.J7=function(F,J){return this.Us.J7(F,J)}; g.A.supports=function(F){return this.Us.supports(F)}; g.A.Vo=function(){return this.Us.Vo()}; g.A.isView=function(){return!0}; g.A.eq=function(){return this.Us.eq()?this.isActive:!1}; g.A.isLocked=function(){return this.I$&&!this.isActive}; g.A.Cy=function(F){F=this.Us.Cy(F);F.vw=this.start+"-"+this.end;return F}; g.A.N2=function(){return this.Us.N2()}; g.A.A8=function(){return this.Us.A8()}; g.A.ZF=function(){return this.Us.ZF()}; g.A.X_=function(){this.Us.TW(this.GB);g.uA.prototype.X_.call(this)};var p7=!1;g.z(X8,g.uA);g.A=X8.prototype;g.A.appendBuffer=function(F,J,b){this.Sz=!1;b&&(this.iV=b);if(F.length){var I;((I=this.dw)==null?0:I.appendBuffer)?this.dw.appendBuffer(F):this.dw?this.dw.append(F):this.ou&&this.ou.webkitSourceAppend(this.id,F)}J&&(J.isEncrypted()&&(this.Wd=this.iV),J.type===3&&(this.eT=J),this.qq.push(J.uX()),this.qq.length>4&&this.qq.shift());this.wc&&(this.wc.length>=2||F.length>1048576?delete this.wc:this.wc.push(F))}; g.A.abort=function(){try{this.dw?this.dw.abort():this.ou&&this.ou.webkitSourceAbort(this.id)}catch(F){z97&&g.Td(new g.hC("Error while abort the source buffer: "+F.name+", "+F.message))}this.iV=this.eT=null}; g.A.remove=function(F,J,b){this.Sz=!1;var I;if((I=this.dw)==null?0:I.remove)b&&b({b:u1(this.N0()),s:F,e:J}),this.dw.remove(F,J)}; g.A.removeAll=function(){this.remove(this.q4(),this.Js())}; g.A.clear=function(){this.yB()||(this.abort(),this.removeAll(),this.Wd=this.iV=this.eT=null,this.appendWindowStart=this.timestampOffset=0,this.Oj=Il([],[]),this.Sz=!1,this.wc=KB?[]:void 0,this.uU=!0)}; g.A.q4=function(){if(p7&&this.v1)return this.appendWindowStart;var F;return((F=this.dw)==null?void 0:F.appendWindowStart)||0}; g.A.Js=function(){var F;return((F=this.dw)==null?void 0:F.appendWindowEnd)||0}; g.A.ZL=function(F,J){this.dw&&(p7&&this.v1?(this.appendWindowStart=F,this.dw.appendWindowEnd=J):F>this.q4()?(this.dw.appendWindowEnd=J,this.dw.appendWindowStart=F):(this.dw.appendWindowStart=F,this.dw.appendWindowEnd=J))}; g.A.Av=function(){return this.timestampOffset}; g.A.sM=function(F){p7?this.timestampOffset=F:this.supports(1)&&(this.dw.timestampOffset=F)}; g.A.Xq=function(){return p7?this.timestampOffset:this.supports(1)?this.dw.timestampOffset:0}; g.A.N0=function(F){if(F===void 0?0:F)return this.Sz||this.x0()||(this.Oj=this.N0(!1),this.Sz=!0),this.Oj;try{return this.dw?this.dw.buffered:this.ou?this.ou.webkitSourceBuffered(this.id):Il([0],[Infinity])}catch(J){return Il([],[])}}; g.A.x0=function(){var F;return((F=this.dw)==null?void 0:F.updating)||!1}; g.A.yB=function(){return this.uU}; g.A.Nt=function(){return!this.uU&&this.x0()}; g.A.Yk=function(){this.uU=!1}; g.A.EL=function(F){var J=F==null?void 0:F.YQ;F=F==null?void 0:F.containerType;return!J&&!F||J===this.YQ&&F===this.containerType}; g.A.yO=function(){return this.iV}; g.A.LV=function(){return this.Wd}; g.A.J7=function(F,J){return this.containerType!==F||this.YQ!==J}; g.A.G_=function(F,J,b){if(this.containerType!==F||b&&this.J7(F,b))this.supports(4),Qh()&&this.dw.changeType(J),b&&(this.YQ=b);this.containerType=F}; g.A.Pw=function(F,J,b){this.containerType&&this.J7(F,J)&&Qh()&&this.dw.changeType(b);this.containerType=F;this.YQ=J}; g.A.Vo=function(){return this.eT}; g.A.isView=function(){return!1}; g.A.supports=function(F){switch(F){case 1:var J;return((J=this.dw)==null?void 0:J.timestampOffset)!==void 0;case 0:var b;return!((b=this.dw)==null||!b.appendBuffer);case 2:var I;return!((I=this.dw)==null||!I.remove);case 3:var u,w;return!!(((u=this.dw)==null?0:u.addEventListener)&&((w=this.dw)==null?0:w.removeEventListener));case 4:return!(!this.dw||!this.dw.changeType);default:return!1}}; g.A.eq=function(){return!this.x0()}; g.A.isLocked=function(){return!1}; g.A.Cy=function(F){F.to=this.Xq();F.up=this.x0();var J,b=((J=this.dw)==null?void 0:J.appendWindowStart)||0,I;J=((I=this.dw)==null?void 0:I.appendWindowEnd)||Infinity;F.aw=b.toFixed(3)+"-"+J.toFixed(3);return F}; g.A.WH=function(){var F;return((F=this.dw)==null?void 0:F.writeHead)||0}; g.A.N2=function(){for(var F={},J=0;J=7&&qVa(this,function(){g.pl(function(){Ggv(F,F.getCurrentTime(),0)},500)}); return J}; g.A.seekTo=function(F){this.kR()>0&&(os&&FG<4&&(F=Math.max(.1,F)),this.setCurrentTime(F))}; g.A.Cc=function(){if(!this.U&&this.HN)if(this.HN.D)try{var F;ol(this,{l:"mer",sr:(F=this.wD)==null?void 0:F.wZ(),rs:ce(this.HN)});this.HN.clear();this.U=this.HN;this.HN=void 0}catch(J){F=new g.hC("Error while clearing Media Source in MediaElement: "+J.name+", "+J.message),g.Td(F),this.stopVideo()}else this.stopVideo()}; g.A.stopVideo=function(){var F=this;if(!this.U){var J;(J=this.HN)==null||d_v(J);if(mTG){if(!this.T){var b=new xn;b.then(void 0,function(){}); this.T=b;yKG&&this.pause();g.pl(function(){F.T===b&&(He(F),b.resolve())},200)}}else He(this)}}; g.A.aG=function(){var F=this.Z4();return qt(F)>0&&this.getDuration()?AG(F,this.getCurrentTime()):0}; g.A.jN=function(){var F=this.getDuration();return F===Infinity?1:F?this.aG()/F:0}; g.A.Cy=function(){try{var F=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:u1(this.mQ(),",",3),vbu:u1(this.Z4()),vbs:u1(this.Me()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.kR(),vns:""+this.CG(),vec:""+this.rB(),vemsg:this.Aw(),vvol:""+this.getVolume(),vdom:""+ +this.IN(),vsrc:""+ +!!this.dB(),vw:""+F.width,vh:""+F.height}}catch(J){return{}}}; g.A.hasError=function(){return this.rB()>0}; g.A.addEventListener=function(F,J){this.Z.listen(F,J,!1,this);this.WL(F)}; g.A.removeEventListener=function(F,J){this.Z.iX(F,J,!1,this)}; g.A.dispatchEvent=function(F){if(this.T&&F.type==="pause")return!1;if(iZk){var J,b=((J=F.C)==null?void 0:J.timeStamp)||Infinity;J=b>performance.now()?b-Date.now()+performance.now():b;b=this.U||this.HN;if((b==null?0:b.yB())||J<=((b==null?void 0:b.W)||0)){var I;ol(this,{l:"mede",sr:(I=this.wD)==null?void 0:I.wZ(),et:F.type});return!1}if(this.V1)return ol(this,{l:"medes",et:F.type}),b&&F.type==="seeking"&&(b.W=performance.now(),this.V1=!1),!1}return this.Z.dispatchEvent(F)}; g.A.PL=function(){this.W=!1}; g.A.Zw=function(){this.W=!0;this.sA(!0)}; g.A.dQ=function(){this.W&&!this.rl()&&this.sA(!0)}; g.A.Hg=function(F){return!!F&&F.Pb()===this.Pb()}; g.A.X_=function(){this.V&&this.removeEventListener("volumechange",this.dQ);mTG&&He(this);g.R.prototype.X_.call(this)}; var mTG=!1,yKG=!1,iZk=!1,BJ3=!1;g.A=g.FC.prototype;g.A.isPaused=function(){return g.x(this,4)}; g.A.isPlaying=function(){return g.x(this,8)&&!g.x(this,512)&&!g.x(this,64)&&!g.x(this,2)}; g.A.isOrWillBePlaying=function(){return g.x(this,8)&&!g.x(this,2)&&!g.x(this,1024)}; g.A.isCued=function(){return g.x(this,64)&&!g.x(this,8)&&!g.x(this,4)}; g.A.isBuffering=function(){return g.x(this,1)&&!g.x(this,2)}; g.A.isError=function(){return g.x(this,128)}; g.A.isSuspended=function(){return g.x(this,512)}; g.A.DR=function(){return g.x(this,64)&&g.x(this,4)}; g.A.toString=function(){return"PSt."+this.state.toString(16)}; var oB={},hF=(oB.BUFFERING="buffering-mode",oB.CUED="cued-mode",oB.ENDED="ended-mode",oB.PAUSED="paused-mode",oB.PLAYING="playing-mode",oB.SEEKING="seeking-mode",oB.UNSTARTED="unstarted-mode",oB);g.z(aY,g.R);g.A=aY.prototype;g.A.jp=function(){return this.T}; g.A.Bb=function(){return this.slot}; g.A.xQ=function(){return this.layout}; g.A.init=function(){var F=uL(this.layout.clientMetadata,"metadata_type_video_length_seconds"),J=uL(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");W7(this.layout.ww)&&J7(this.X4.get(),this.layout.layoutId,{Mi:J,cP:F,listener:this,Tf:this.f7()});owz(this.EQ.get(),this);F=this.Zl;J=this.layout.layoutId;var b={Tf:this.f7()};F.C.set(J,b);this.zo()}; g.A.yf=function(){}; g.A.release=function(){W7(this.layout.ww)&&bY(this.X4.get(),this.layout.layoutId);hVG(this.EQ.get(),this);this.Zl.C.delete(this.layout.layoutId);this.SM()}; g.A.h3=function(){}; g.A.y$=function(){}; g.A.startRendering=function(F){lO(eY(this));if(Kx(this,F)){var J=this.C;fF(J.params.P9.uR.get(),!0)&&M1_(J,"p_sr",{});px(this);this.mz(F);this.f7()||this.j9(!1)}}; g.A.bT=function(F,J){if(J.layoutId===this.layout.layoutId){this.Lk="rendering";this.U=this.OQ.get().isMuted()||this.OQ.get().getVolume()===0;this.JJ("impression");this.JJ("start");if(this.OQ.get().isMuted()){NO(this,"mute");var b;F=((b=v5(this))==null?void 0:b.muteCommands)||[];On(this.D7.get(),F,this.layout.layoutId)}if(this.OQ.get().isFullscreen()){this.RQ("fullscreen");var I;b=((I=v5(this))==null?void 0:I.fullscreenCommands)||[];On(this.D7.get(),b,this.layout.layoutId)}this.f7()||(I=this.qI.get(), I.T&&!I.U&&(I.D=!1,I.U=!0,I.actionType!=="ad_to_video"&&(Oz("pbs",void 0,I.actionType),g.Nk("finalize_all_timelines")&&nPz(I.actionType))));this.UM(1);this.SX(J);var u;J=((u=v5(this))==null?void 0:u.impressionCommands)||[];On(this.D7.get(),J,this.layout.layoutId)}}; g.A.B8=function(F,J,b){this.V={UE:3,a$:F==="load_timeout"?402:400,errorMessage:J.message};this.JJ("error");var I;F=((I=v5(this))==null?void 0:I.errorCommands)||[];On(this.D7.get(),F,this.layout.layoutId);this.f7()||this.Vp.XW(this.slot,this.layout,J,b)}; g.A.Cm=function(){if(this.Lk==="rendering"){NO(this,"pause");var F,J=((F=v5(this))==null?void 0:F.pauseCommands)||[];On(this.D7.get(),J,this.layout.layoutId);this.UM(2)}}; g.A.wu=function(){if(this.Lk==="rendering"){NO(this,"resume");var F,J=((F=v5(this))==null?void 0:F.resumeCommands)||[];On(this.D7.get(),J,this.layout.layoutId)}}; g.A.wW=function(F,J){J=J===void 0?!1:J;if(this.Lk==="rendering"){var b={currentTimeSec:F,flush:J};W4(this.C,"p_ip",b);Ts(this.yG,F*1E3,J);this.U||Ts(this.yG,F*1E3,J===void 0?!1:J);var I=this.Ol();if(I){I/=1E3;if(F>=I*.25||J)this.JJ("first_quartile"),W4(this.C,"p_fq",b);if(F>=I*.5||J)this.JJ("midpoint"),W4(this.C,"p_sq",b);if(F>=I*.75||J)this.JJ("third_quartile"),W4(this.C,"p_tq",b);this.uR.get().G.J().experiments.pW("enable_progress_command_flush_on_kabuki")?RV(this.Z,F*1E3,J):RV(this.Z,F*1E3,$_v(this)? J:!1)}}}; g.A.Vd=function(){var F;return((F=gM(this.QG.get(),1))==null?void 0:F.clientPlaybackNonce)||""}; g.A.e7=function(F,J){F.layoutId!==this.layout.layoutId?this.Vp.XW(this.slot,F,new bL("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"):J()}; g.A.A_=function(F,J,b){if(J.layoutId===this.layout.layoutId)switch(this.Lk="not_rendering",this.layoutExitReason=void 0,this.f7()||(F=b!=="normal"||this.position+1===this.W)&&this.j9(F),this.Ij(b),this.UM(0),b){case "abandoned":if(rq(this.yG,"impression")){var I,u=((I=v5(this))==null?void 0:I.abandonCommands)||[];On(this.D7.get(),u,this.layout.layoutId)}break;case "normal":I=((u=v5(this))==null?void 0:u.completeCommands)||[];On(this.D7.get(),I,this.layout.layoutId);break;case "skipped":var w;I=((w= v5(this))==null?void 0:w.skipCommands)||[];On(this.D7.get(),I,this.layout.layoutId)}}; g.A.qe=function(){return this.layout.layoutId}; g.A.Vw=function(){return this.V}; g.A.rM=function(){if(this.Lk==="rendering"){this.yG.JJ("active_view_measurable");var F,J=((F=v5(this))==null?void 0:F.activeViewMeasurableCommands)||[];On(this.D7.get(),J,this.layout.layoutId)}}; g.A.I7=function(){if(this.Lk==="rendering"){this.yG.JJ("active_view_fully_viewable_audible_half_duration");var F,J=((F=v5(this))==null?void 0:F.activeViewFullyViewableAudibleHalfDurationCommands)||[];On(this.D7.get(),J,this.layout.layoutId)}}; g.A.CQ=function(){if(this.Lk==="rendering"){this.yG.JJ("active_view_viewable");var F,J=((F=v5(this))==null?void 0:F.activeViewViewableCommands)||[];On(this.D7.get(),J,this.layout.layoutId)}}; g.A.LB=function(){if(this.Lk==="rendering"){this.yG.JJ("audio_audible");var F,J=((F=v5(this))==null?void 0:F.activeViewAudioAudibleCommands)||[];On(this.D7.get(),J,this.layout.layoutId)}}; g.A.NO=function(){if(this.Lk==="rendering"){this.yG.JJ("audio_measurable");var F,J=((F=v5(this))==null?void 0:F.activeViewAudioMeasurableCommands)||[];On(this.D7.get(),J,this.layout.layoutId)}}; g.A.j9=function(F){this.qI.get().j9(uL(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,F,this.position,this.W,!1)}; g.A.onFullscreenToggled=function(F){if(this.Lk==="rendering")if(F){this.RQ("fullscreen");var J,b=((J=v5(this))==null?void 0:J.fullscreenCommands)||[];On(this.D7.get(),b,this.layout.layoutId)}else this.RQ("end_fullscreen"),J=((b=v5(this))==null?void 0:b.endFullscreenCommands)||[],On(this.D7.get(),J,this.layout.layoutId)}; g.A.onVolumeChange=function(){if(this.Lk==="rendering")if(this.OQ.get().isMuted()){NO(this,"mute");var F,J=((F=v5(this))==null?void 0:F.muteCommands)||[];On(this.D7.get(),J,this.layout.layoutId)}else NO(this,"unmute"),F=((J=v5(this))==null?void 0:J.unmuteCommands)||[],On(this.D7.get(),F,this.layout.layoutId)}; g.A.Kv=function(){}; g.A.bq=function(){}; g.A.OJ=function(){}; g.A.nF=function(){}; g.A.c9=function(){}; g.A.RQ=function(F){this.yG.RQ(F,!this.U)}; g.A.JJ=function(F){this.yG.JJ(F,!this.U)}; g.A.f7=function(){var F=uL(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return F===void 0?(q_("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.uR.get().f7(F)};g.z(ER,aY);g.A=ER.prototype;g.A.zo=function(){}; g.A.SM=function(){var F=this.EQ.get();F.hM===this&&(F.hM=null);this.bC.stop()}; g.A.h3=function(){this.bC.stop();aY.prototype.Cm.call(this)}; g.A.y$=function(){GA(this);aY.prototype.wu.call(this)}; g.A.Ol=function(){return uL(this.xQ().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.A.T$=function(F,J){var b=this;this.e7(F,function(){b.Lk!=="rendering_stop_requested"&&(b.Lk="rendering_stop_requested",b.layoutExitReason=J,mS(b,J),b.bC.stop())})}; g.A.Q6=function(){var F=Date.now(),J=F-this.qj;this.qj=F;this.EJ+=J;this.EJ>=this.Ol()?this.wv():(this.wW(this.EJ/1E3),jY(this,this.EJ))}; g.A.Ij=function(){}; g.A.mP=function(){}; g.z(VL,ER);g.A=VL.prototype;g.A.jT=function(F){if(this.Lk!=="not_rendering"){F=yL(this,F);var J=this.OQ.get().getPresentingPlayerType()===2;this.Lk==="rendering_start_requested"?J&&aT(F)&&this.Rh():J?g.e1(F,2)?q_("Receive player ended event during MediaBreak",this.Bb(),this.xQ()):ip(this,F):this.dE()}}; g.A.mz=function(){sJ7(this);J4Y(this.OQ.get());this.EQ.get().hM=this;Dj("pbp")||Dj("pbs")||Oz("pbp");Dj("pbp","watch")||Dj("pbs","watch")||Oz("pbp",void 0,"watch");this.Rh()}; g.A.SX=function(F){this.qI.get();var J=uL(F.clientMetadata,"metadata_type_ad_placement_config").kind,b=this.position===0;F=uL(F.clientMetadata,"metadata_type_linked_in_player_layout_type");F={adBreakType:zA(J),adType:U_k(F)};var I=void 0;b?J!=="AD_PLACEMENT_KIND_START"&&(I="video_to_ad"):I="ad_to_ad";XH("ad_mbs",void 0,I);g.Qk(F,I);GA(this)}; g.A.dE=function(){this.Kl()}; g.A.wv=function(){XLo(this);this.Kl()}; g.z(P5,ER);g.A=P5.prototype;g.A.jT=function(F){this.Lk!=="not_rendering"&&(F=yL(this,F),ip(this,F))}; g.A.mz=function(){q_("Not used in SSAP")}; g.A.SX=function(){GA(this)}; g.A.dE=function(){q_("Not used in SSAP")}; g.A.wv=function(){XLo(this);this.Vp.NK(this.Bb(),this.xQ(),"normal")}; g.z(B5,P5);B5.prototype.T$=function(F,J){var b=this;this.e7(F,function(){mY(b.T,J)&&(b.Lk="rendering_stop_requested",b.layoutExitReason=J,mS(b,J),b.bC.stop())})}; B5.prototype.startRendering=function(F){lO(eY(this));Kx(this,F)&&(px(this),this.EQ.get().hM=this)};g.z(SY,aY);g.A=SY.prototype;g.A.dE=function(){this.Kl()}; g.A.jT=function(F){if(this.Lk!=="not_rendering"){F=yL(this,F);var J=this.OQ.get().getPresentingPlayerType()===2;this.Lk==="rendering_start_requested"?J&&aT(F)&&this.Rh():!J||g.e1(F,2)?this.Kl():ip(this,F)}}; g.A.zo=function(){uL(this.xQ().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=uL(this.xQ().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.A.SM=function(){uL(this.xQ().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.pN){var F=this.context.P9,J=this.pN,b=this.xQ().layoutId;if(fF(F.uR.get(),!0)){var I={};F.Ck("mccru",(I.cid=J,I.p_ac=b,I))}this.h_.get().removeCueRange(this.pN)}this.pN=void 0;var u;(u=this.O4)==null||u.dispose();this.OX&&this.OX.dispose()}; g.A.mz=function(F){var J=TA(this.uR.get()),b=rM(this.uR.get());if(J&&b&&!this.f7()){b=uL(F.clientMetadata,"metadata_type_preload_player_vars");var I=g.eB(this.uR.get().G.J().experiments,"html5_preload_wait_time_secs");b&&this.OX&&this.OX.start(I*1E3)}D_m(this,F);sJ7(this);J?(b=this.NI.get(),F=uL(F.clientMetadata,"metadata_type_player_vars"),b.G.loadVideoByPlayerVars(F,!1,2)):a2C(this.NI.get(),uL(F.clientMetadata,"metadata_type_player_vars"));var u;(u=this.O4)==null||u.start();J||this.NI.get().G.playVideo(2)}; g.A.SX=function(){var F;(F=this.O4)==null||F.stop();this.pN="adcompletioncuerange:"+this.xQ().layoutId;this.h_.get().addCueRange(this.pN,0x7ffffffffffff,0x8000000000000,!1,this,2,2);F=this.context.P9;var J=this.pN,b=this.xQ().layoutId;if(fF(F.uR.get(),!0)){var I={};F.Ck("mccr",(I.cid=J,I.p_ac=b,I))}(this.adCpn=SVa(this))||q_("Media layout confirmed started, but ad CPN not set.");this.py.get().t3("onAdStart",this.adCpn);this.pw=Date.now()}; g.A.Ol=function(){var F;return(F=gM(this.QG.get(),2))==null?void 0:F.Xk}; g.A.m3=function(){this.yG.RQ("clickthrough")}; g.A.T$=function(F,J){var b=this;this.e7(F,function(){if(b.Lk!=="rendering_stop_requested"){b.Lk="rendering_stop_requested";b.layoutExitReason=J;mS(b,J);var I;(I=b.O4)==null||I.stop();b.OX&&b.OX.stop();kg_(b)}})}; g.A.onCueRangeEnter=function(F){if(F!==this.pN)q_("Received CueRangeEnter signal for unknown layout.",this.Bb(),this.xQ(),{cueRangeId:F});else{var J=this.context.P9,b=this.xQ().layoutId;if(fF(J.uR.get(),!0)){var I={};J.Ck("mccre",(I.cid=F,I.p_ac=b,I))}this.h_.get().removeCueRange(this.pN);this.pN=void 0;Un(this.context.uR.get(),"html5_ssap_flush_at_stop_rendering")&&this.f7()||(F=uL(this.xQ().clientMetadata,"metadata_type_video_length_seconds"),this.wW(F,!0),this.JJ("complete"))}}; g.A.Ij=function(F){F!=="abandoned"&&this.py.get().t3("onAdComplete");this.py.get().t3("onAdEnd",this.adCpn)}; g.A.onCueRangeExit=function(){}; g.A.mP=function(F){this.Lk==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&F>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.OQ.get().PQ(!0),this.wW(F))}; g.A.wW=function(F,J){aY.prototype.wW.call(this,F,J===void 0?!1:J);J=Date.now()-this.pw;var b=F*1E3,I={contentCpn:this.Vd(),adCpn:SVa(this)};if(F>=5&&!this.Wr){var u=J<1E3?0:1;wJ(u,"i.k_",{metadata:I,JK:J,yr:Math.floor(b/1E3)});hE("IKDSTAT",u);u===0&&O0J(this)&&this.py.get().t3("onAbnormalityDetected");this.Wr=!0}F-this.ZI>=5&&(u=J=2||(this.bX.T$(this.layout,J),F=Un(this.params.context.uR.get(),"html5_ssap_pass_transition_reason")&&J==="abandoned",this.FN()&&!F&&(Un(this.params.context.uR.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(J)||q_("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:J})),this.RC.get().finishSegmentByCpn(this.layout.layoutId, gM(this.QG.get(),1).clientPlaybackNonce,fx(J,this.params.context.uR))),this.OQ.get().removeListener(this),this.ZD()&&yZ(this.bX.jp())&&this.wO.A_(this.slot,this.layout,this.bX.jp().C))}; g.A.cq=function(F,J,b){uYk({cpn:F,RP:this.QG.get(),RE:!0});this.xQ().layoutId!==F||Un(this.params.context.uR.get(),"html5_ssap_pass_transition_reason")&&b===5||(this.bX.jp().currentState<2&&(F=W5(b,this.params.context.uR),F==="error"?this.wO.XW(this.slot,this.layout,new bL("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:b},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):OR(this.ix, this.layout,F)),Un(this.params.context.uR.get(),"html5_ssap_exit_without_waiting_for_transition")||this.wO.A_(this.slot,this.layout,this.bX.jp().C))};g.z(XC,g.R);g.A=XC.prototype;g.A.Bb=function(){return this.slot}; g.A.xQ=function(){return this.layout}; g.A.CZ=function(){}; g.A.L7=function(){return this.PD[this.gI]}; g.A.Hx=function(){return this.gI}; g.A.h3=function(F,J){var b=this.L7();J.layoutId!==RY(b,F,J)?q_("pauseLayout for a PlayerBytes layout that is not currently active",F,J):b.h3()}; g.A.y$=function(F,J){var b=this.L7();J.layoutId!==RY(b,F,J)?q_("resumeLayout for a PlayerBytes layout that is not currently active",F,J):b.y$()}; g.A.XO=function(F,J){var b=this.L7();H0J(this,F,J);LNG(b,F,J)&&this.Fj(b.Bb(),b.xQ(),"skipped")}; g.A.uE=function(F,J){var b=this.L7();FKG(this);Joa(b,F,J)&&(F=bpv(this,b,F,J),F!==void 0&&(this.f7()?q_("Should not happen. Should delete"):uHv(this,b.Bb(),b.xQ(),F)))}; g.A.o2=function(F,J){var b=Object.assign({},QL(this),{layoutId:J.layoutId}),I=b.layoutId,u=b.RE;if(b.Tf){var w={};NM(b.RP,"wrse",(w.ec=I,w.is=u,w.ctp=zj(I),w))}G0(this.Qp,F,J)}; g.A.bT=function(F,J){var b;(b=this.L7())==null||b.bT(F,J)}; g.A.A_=function(F,J,b){J.layoutId===this.xQ().layoutId&&(this.GZ=!1,mO(this.rY(),this));var I;(I=this.L7())==null||I.A_(F,J,b)}; g.A.mP=function(F){var J;(J=this.L7())==null||J.mP(F)}; g.A.D0=function(F,J,b){this.Hx()===-1&&(this.callback.bT(this.slot,this.layout),this.gI++);var I=this.L7();I?(I.B8(F,J,b),this.f7()&&this.callback.XW(this.slot,this.layout,J,b)):q_("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.Hx()),layoutId:this.xQ().layoutId})}; g.A.onFullscreenToggled=function(F){var J;(J=this.L7())==null||J.onFullscreenToggled(F)}; g.A.Kv=function(F){var J;(J=this.L7())==null||J.Kv(F)}; g.A.OJ=function(F){var J;(J=this.L7())==null||J.OJ(F)}; g.A.onVolumeChange=function(){var F;(F=this.L7())==null||F.onVolumeChange()}; g.A.oA=function(F,J,b){VS(this.Qp,F,J,b)}; g.A.JV=function(F){F.startRendering(F.xQ())}; g.A.init=function(){var F=uL(this.xQ().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");F&&(F.current=this);if(this.PD.length<1)throw new Z("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.PD.length)});if(F=uL(this.xQ().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))F.current=this;F=g.N(this.PD);for(var J=F.next();!J.done;J=F.next())J=J.value,J.init(),Gda(this.Qp,this.slot,J.xQ()),VQa(this.Qp,this.slot,J.xQ()); if(this.f7())for(this.QG.get().addListener(this),Hrz(Z0m(this),this.QG.get()),F=Z0m(this),F=g.N(F),J=F.next();!J.done;J=F.next())this.Tx(J.value)}; g.A.Tx=function(F){var J=uL(F.clientMetadata,"metadata_type_player_vars");J?(F.layoutType!=="LAYOUT_TYPE_MEDIA"&&q_("Non-video ad contains playerVars",this.slot,F),this.NI.get().addPlayerResponseForAssociation({playerVars:J})):(F=x_G(F),this.NI.get().addPlayerResponseForAssociation({As:F}))}; g.A.release=function(){var F=uL(this.xQ().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");F&&(F.current=null);if(F=uL(this.xQ().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))F.current=null;F=g.N(this.PD);for(var J=F.next();!J.done;J=F.next())J=J.value,P$G(this.Qp,this.slot,J.xQ()),J.release();this.f7()&&(this.QG.get().removeListener(this),Lh3())}; g.A.e7=function(F){return F.layoutId!==this.xQ().layoutId?(this.callback.XW(this.Bb(),F,new bL("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.xQ().layoutId+("and LayoutType: "+this.xQ().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.A.tj=function(){this.OQ.get().addListener(this);gX(this.rY(),this)}; g.A.jT=function(F){if(F.state.isError()){var J,b;this.D0((J=F.state.e6)==null?void 0:J.errorCode,new bL("There was a player error during this media layout.",{playerErrorCode:(b=F.state.e6)==null?void 0:b.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(J=this.L7())&&J.jT(F)}; g.A.f7=function(){var F=uL(this.Bb().clientMetadata,"metadata_type_eligible_for_ssap");return F===void 0?(q_("Expected SSAP eligibility in PlayerBytes slots",this.Bb(),this.xQ()),!1):this.uR.get().f7(F)}; g.A.bq=function(){}; g.A.mu=function(){}; g.A.Bh=function(){}; g.A.tX=function(){}; g.A.d0=function(){}; g.A.lx=function(){}; g.A.xj=function(){}; g.A.F3=function(){}; g.A.gq=function(){}; g.A.fd=function(){}; g.A.Y7=function(){}; g.A.nF=function(){}; g.A.c9=function(){}; g.z(oY,XC);g.A=oY.prototype;g.A.yK=function(F,J,b){this.Fj(F,J,b)}; g.A.JW=function(F,J){this.Fj(F,J,"error")}; g.A.Fj=function(F,J,b){var I=this;IjJ(this,F,J,b,function(){D0(I,I.Hx()+1)})}; g.A.startRendering=function(F){this.e7(F)&&(this.tj(),yTC(this.qI.get()),fEo(this.uR.get())||J4Y(this.OQ.get()),this.Hx()===-1&&D0(this,this.Hx()+1))}; g.A.T$=function(F,J){var b=this;this.GZ=!0;this.Hx()===this.PD.length?this.callback.A_(this.slot,this.layout,J):(F=this.L7(),F.T$(F.xQ(),J),this.Vn=function(){b.callback.A_(b.slot,b.layout,J)}); this.OQ.get().G.Hk();a2C(this.NI.get(),{});F=Fm(this.OQ.get(),1);F.isPaused()&&!g.x(F,2)&&this.OQ.get().playVideo();this.OQ.get().removeListener(this);this.GZ&&wfC(this)}; g.A.cq=function(){}; g.A.mX=function(){}; g.A.NK=function(){}; g.z(hV,XC);g.A=hV.prototype;g.A.yK=function(F,J,b){F=Object.assign({},QL(this),{layoutId:J.layoutId,layoutExitReason:b});J=F.layoutId;b=F.layoutExitReason;var I={};NM(F.RP,"prse",(I.xc=J,I.ler=b,I.ctp=zj(J),I))}; g.A.JW=function(){q_("onSubLayoutError in SSAP")}; g.A.Fj=function(){q_("exitSubLayoutAndPlayNext in SSAP")}; g.A.L7=function(){return this.MY}; g.A.Hx=function(){var F=this;return this.PD.findIndex(function(J){var b;return J.xQ().layoutId===((b=F.MY)==null?void 0:b.xQ().layoutId)})}; g.A.JV=function(F){A5(this.MY===void 0,"replacing another adapter");this.MY=F;F.startRendering(F.xQ())}; g.A.oA=function(F,J,b){VS(this.Qp,F,J,b);var I;A5(J.layoutId===((I=this.MY)==null?void 0:I.xQ().layoutId),"currentAdapter does not match exiting layout",{slot:F?"slot: "+F.slotType:"",subLayout:M_(J)})&&(this.MY=void 0)}; g.A.release=function(){XC.prototype.release.call(this);A5(this.MY===void 0,"currentAdapter is still active during release");this.MY=void 0}; g.A.FN=function(){return this.OQ.get().getPresentingPlayerType()===2}; g.A.T$=function(F,J){function b(){c5(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(J)||q_("Composite stopRendering: Unexpected layout exit reason",this.slot,F,{layoutExitReason:J}))} function I(){this.MY&&UR(this,this.MY,J);if(this.FN()&&(!c5(this)||J!=="abandoned")){b.call(this);var w;var M=((w=this.QG.get().G.getVideoData())==null?void 0:w.clientPlaybackNonce)||"";w=gM(this.QG.get(),1).clientPlaybackNonce;this.RC.get().finishSegmentByCpn(M,w,fx(J,this.uR))}Ml7(this,J)} function u(){if(this.MY){var w=this.MY;w.jp().currentState<2&&w.T$(w.xQ(),J);w=c5(this)&&J==="abandoned";this.FN()&&!w&&(b.call(this),this.RC.get().finishSegmentByCpn(this.MY.xQ().layoutId,gM(this.QG.get(),1).clientPlaybackNonce,fx(J,this.uR)))}} A5(F.layoutId===this.xQ().layoutId,"StopRendering for wrong layout")&&mY(this.h$.U,J)&&(this.ZD()?I.call(this):u.call(this))}; g.A.A_=function(F,J,b){XC.prototype.A_.call(this,F,J,b);J.layoutId===this.xQ().layoutId&&this.OQ.get().removeListener(this)}; g.A.Vd=function(){return gM(this.QG.get(),1).clientPlaybackNonce}; g.A.cq=function(F,J,b){uYk(Object.assign({},QL(this),{cpn:F}));if(!c5(this)||b!==5)if(this.ZD()){if(this.MY&&this.MY.xQ().layoutId!==J){var I=this.MY.xQ().layoutId;I!==F&&q_("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:I,exitingCpn:F,enteringCpn:J});F=W5(b,this.uR);UR(this,this.MY,F)}else this.MY&&q_("onClipExited: active layout is entering again");J===this.Vd()&&qz7(this,b)}else{if(this.MY&&this.MY.xQ().layoutId===F)Ao3(this,this.MY,b);else{var u;q_("Exiting cpn does not match active cpn", this.slot,(I=this.MY)==null?void 0:I.xQ(),{exitingCpn:F,transitionReason:b,activeCpn:(u=this.MY)==null?void 0:u.xQ().layoutId})}J===this.Vd()&&(this.MY!==void 0&&(q_("active adapter is not properly exited",this.slot,this.layout,{activeLayout:M_(this.MY.xQ())}),Ao3(this,this.MY,b)),qz7(this,b),Ml7(this,this.h$.U.C))}}; g.A.ZD=function(){return Un(this.uR.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.A.startRendering=function(F){this.e7(F)&&(F=this.h$,A5(F.C===1,"tickStartRendering: state is not initial"),F.C=2,this.tj())}; g.A.mX=function(F){II_(Object.assign({},QL(this),{cpn:F}));var J=this.PD.find(function(b){return b.xQ().layoutId===F}); J?(this.h$.C!==2&&(DRa(this.z$,this.slot.slotId),A5(this.h$.C===2,"Expect started"),this.callback.bT(this.slot,this.layout)),this.JV(J),G0(this.Qp,this.slot,J.xQ())):vkm(this,F)}; g.A.XO=function(F,J){H0J(this,F,J);var b=this.L7();b?LNG(b,F,J)&&ajv(this,"skipped"):eJ7(this,"onSkipRequested")}; g.A.uE=function(F,J){var b;a:{if(b=this.L7()){if(FKG(this),Joa(b,F,J)&&(F=bpv(this,b,F,J),F!==void 0)){b={sC:b,qVN:this.PD[F]};break a}}else eJ7(this,"SkipWithAdPodSkip");b=void 0}if(F=b)b=F.sC,J=F.qVN,F=b.xQ().layoutId,this.ZD()?UR(this,b,"skipped"):b.T$(b.xQ(),"skipped"),b=J.xQ().layoutId,this.RC.get().finishSegmentByCpn(F,b,fx("skipped",this.uR))}; g.A.o2=function(){q_("Not used in html5_ssap_fix_layout_exit")}; g.A.jT=function(F){var J;(J=this.L7())==null||J.jT(F)}; g.A.D0=function(){q_("Not used in html5_ssap_fix_layout_exit")}; g.A.NK=function(F,J,b){var I;if(((I=this.L7())==null?void 0:I.xQ().layoutId)!==J.layoutId)return void q_("requestToExitSubLayout: wrong layout");ajv(this,b)};g.z(xO,g.R);g.A=xO.prototype;g.A.Bb=function(){return this.bX.Bb()}; g.A.xQ=function(){return this.bX.xQ()}; g.A.init=function(){var F=uL(this.xQ().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");F&&(F.current=this);this.zo()}; g.A.zo=function(){this.bX.init()}; g.A.release=function(){var F=uL(this.xQ().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");F&&(F.current=null);this.SM()}; g.A.SM=function(){this.bX.release()}; g.A.h3=function(){this.bX.h3()}; g.A.y$=function(){this.bX.y$()}; g.A.XO=function(F,J){q_("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.Bb(),this.xQ(),{requestingSlot:F,requestingLayout:J})}; g.A.startRendering=function(F){F.layoutId!==this.xQ().layoutId?this.callback.XW(this.Bb(),F,new bL("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.xQ().layoutId+("and LayoutType: "+this.xQ().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.OQ.get().addListener(this),gX(this.rY(),this),yTC(this.qI.get()),fEo(this.uR.get())||J4Y(this.OQ.get()),this.bX.startRendering(F))}; g.A.T$=function(F,J){this.GZ=!0;this.bX.T$(F,J);this.OQ.get().G.Hk();a2C(this.NI.get(),{});F=Fm(this.OQ.get(),1);F.isPaused()&&!g.x(F,2)&&this.OQ.get().playVideo();this.OQ.get().removeListener(this);this.GZ&&this.bX.dE()}; g.A.bT=function(F,J){this.bX.bT(F,J)}; g.A.A_=function(F,J,b){J.layoutId===this.xQ().layoutId&&(this.GZ=!1,mO(this.rY(),this));this.bX.A_(F,J,b);J.layoutId===this.xQ().layoutId&&kO(this.qI.get())}; g.A.mP=function(F){this.bX.mP(F)}; g.A.jT=function(F){if(F.state.isError()){var J,b;this.D0((J=F.state.e6)==null?void 0:J.errorCode,new bL("There was a player error during this media layout.",{playerErrorCode:(b=F.state.e6)==null?void 0:b.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.bX.jT(F)}; g.A.D0=function(F,J,b){this.bX.B8(F,J,b)}; g.A.onFullscreenToggled=function(F){this.bX.onFullscreenToggled(F)}; g.A.Kv=function(F){this.bX.Kv(F)}; g.A.OJ=function(F){this.bX.OJ(F)}; g.A.onVolumeChange=function(){this.bX.onVolumeChange()}; g.A.bq=function(){}; g.A.mu=function(){}; g.A.Bh=function(){}; g.A.tX=function(){}; g.A.d0=function(){}; g.A.lx=function(){}; g.A.xj=function(){}; g.A.F3=function(){}; g.A.gq=function(){}; g.A.fd=function(){}; g.A.Y7=function(){}; g.A.nF=function(){}; g.A.c9=function(){};g.A=nx.prototype;g.A.Bb=function(){return this.slot}; g.A.xQ=function(){return this.layout}; g.A.init=function(){this.cV.get().addListener(this);this.OQ.get().addListener(this);var F=uL(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var J=uL(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.Z){var b=this.cV.get().KX.slice(-1)[0];b!==void 0&&(F=b.startSecs*1E3,J=(b.startSecs+b.Bg)*1E3)}this.yf(F,J);var I;b=(I=this.QG.get().Hm)==null?void 0:I.clientPlaybackNonce;I=this.layout.lT.adClientDataEntry;tV(this.EQ.get(),{daiStateTrigger:{filledAdsDurationMs:J-F,contentCpn:b, adClientData:I}});var u=this.cV.get();u=gkv(u.T,F,J);u!==null&&(tV(this.EQ.get(),{daiStateTrigger:{filledAdsDurationMs:u-F,contentCpn:b,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:I}}),this.RC.get().pO(u,J))}; g.A.release=function(){this.SM();this.cV.get().removeListener(this);this.OQ.get().removeListener(this)}; g.A.startRendering=function(){this.mz();this.callback.bT(this.slot,this.layout)}; g.A.T$=function(F,J){this.SH(J);this.driftRecoveryMs!==null&&(Z0(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(mGa(this)-uL(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.OQ.get().G.mJ()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.A_(this.slot,this.layout,J)}; g.A.FB=function(){return!1}; g.A.u3=function(F){var J=uL(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),b=uL(this.layout.clientMetadata,"metadata_type_layout_exit_ms");F*=1E3;if(J<=F&&F0&&Pq(this.C(),J)}; g.A.Bh=function(F){this.D.delete(F.slotId);for(var J=[],b=g.N(this.iT.values()),I=b.next();!I.done;I=b.next()){I=I.value;var u=I.trigger;u instanceof UC&&u.triggeringSlotId===F.slotId&&J.push(I)}J.length>0&&Pq(this.C(),J)}; g.A.tX=function(F){for(var J=[],b=g.N(this.iT.values()),I=b.next();!I.done;I=b.next()){I=I.value;var u=I.trigger;u instanceof $A&&u.slotType===F.slotType&&u.C!==F.slotId&&J.push(I)}J.length>0&&Pq(this.C(),J)}; g.A.d0=function(F){this.T.add(F.slotId);for(var J=[],b=g.N(this.iT.values()),I=b.next();!I.done;I=b.next())I=I.value,I.trigger instanceof DM&&F.slotId===I.trigger.triggeringSlotId&&J.push(I);J.length>0&&Pq(this.C(),J)}; g.A.lx=function(F){this.T.delete(F.slotId);this.Z.add(F.slotId);for(var J=[],b=g.N(this.iT.values()),I=b.next();!I.done;I=b.next())if(I=I.value,I.trigger instanceof kA)F.slotId===I.trigger.triggeringSlotId&&J.push(I);else if(I.trigger instanceof EC){var u=I.trigger;F.slotId===u.slotId&&this.U.has(u.triggeringLayoutId)&&J.push(I)}J.length>0&&Pq(this.C(),J)}; g.A.xj=function(F){for(var J=[],b=g.N(this.iT.values()),I=b.next();!I.done;I=b.next())I=I.value,I.trigger instanceof OC&&F.slotId===I.trigger.triggeringSlotId&&J.push(I);J.length>0&&Pq(this.C(),J)}; g.A.F3=function(F){for(var J=[],b=g.N(this.iT.values()),I=b.next();!I.done;I=b.next())I=I.value,I.trigger instanceof oS&&F.slotId===I.trigger.triggeringSlotId&&J.push(I);J.length>0&&Pq(this.C(),J)}; g.A.gq=function(F,J){this.W.add(J.layoutId)}; g.A.fd=function(F,J){this.W.delete(J.layoutId)}; g.A.bT=function(F,J){this.U.add(J.layoutId);for(var b=[],I=g.N(this.iT.values()),u=I.next();!u.done;u=I.next())if(u=u.value,u.trigger instanceof jj)J.layoutId===u.trigger.triggeringLayoutId&&b.push(u);else if(u.trigger instanceof YA){var w=u.trigger;F.slotType===w.slotType&&J.layoutType===w.layoutType&&J.layoutId!==w.C&&b.push(u)}else u.trigger instanceof EC&&(w=u.trigger,J.layoutId===w.triggeringLayoutId&&this.Z.has(w.slotId)&&b.push(u));b.length>0&&Pq(this.C(),b)}; g.A.A_=function(F,J,b){this.U.delete(J.layoutId);F=[];for(var I=g.N(this.iT.values()),u=I.next();!u.done;u=I.next())if(u=u.value,u.trigger instanceof Vc&&J.layoutId===u.trigger.triggeringLayoutId&&F.push(u),u.trigger instanceof GJ){var w=u.trigger;J.layoutId===w.triggeringLayoutId&&w.C.includes(b)&&F.push(u)}F.length>0&&Pq(this.C(),F)}; g.A.Y7=function(){}; g.A.a6=function(){this.Z.clear()}; g.A.mW=function(){};g.z(T2,g.R);T2.prototype.cS=function(F,J,b,I){if(this.iT.has(J.triggerId))throw new Z("Tried to register duplicate trigger for slot.");if(!(J instanceof WS))throw new Z("Incorrect TriggerType: Tried to register trigger of type "+J.triggerType+" in CloseRequestedTriggerAdapter");this.iT.set(J.triggerId,new tb(F,J,b,I))}; T2.prototype.CD=function(F){this.iT.delete(F.triggerId)};g.z(Sy,g.R);Sy.prototype.cS=function(F,J,b,I){if(this.iT.has(J.triggerId))throw new Z("Tried to register duplicate trigger for slot.");if(!(J instanceof fi||J instanceof Xq))throw new Z("Incorrect TriggerType: Tried to register trigger of type "+J.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.iT.set(J.triggerId,new tb(F,J,b,I))}; Sy.prototype.CD=function(F){this.iT.delete(F.triggerId)}; Sy.prototype.a6=function(F){for(var J=[],b=J.push,I=b.apply,u=[],w=g.N(this.iT.values()),M=w.next();!M.done;M=w.next())M=M.value,M.trigger instanceof fi&&M.trigger.fI===F&&u.push(M);I.call(b,J,g.W(u));b=J.push;I=b.apply;u=[];w=g.N(this.iT.values());for(M=w.next();!M.done;M=w.next())M=M.value,M.trigger instanceof Xq&&M.trigger.C!==F&&u.push(M);I.call(b,J,g.W(u));J.length&&Pq(this.C(),J)}; Sy.prototype.mW=function(F){for(var J=[],b=J.push,I=b.apply,u=[],w=g.N(this.iT.values()),M=w.next();!M.done;M=w.next()){M=M.value;var q=M.trigger;q instanceof Xq&&q.C===F&&u.push(M)}I.call(b,J,g.W(u));J.length&&Pq(this.C(),J)};g.z(sp,g.R);g.A=sp.prototype;g.A.cS=function(F,J,b,I){if(this.iT.has(J.triggerId))throw new Z("Tried to register duplicate trigger for slot.");var u="adtriggercuerange:"+J.triggerId;if(J instanceof Sj)Stv(this,F,J,b,I,u,J.C.start,J.C.end,J.fI,J.visible);else if(J instanceof dI)Stv(this,F,J,b,I,u,0x7ffffffffffff,0x8000000000000,J.fI,J.visible);else throw new Z("Incorrect TriggerType: Tried to register trigger of type "+J.triggerType+" in CueRangeTriggerAdapter");}; g.A.CD=function(F){var J=this.iT.get(F.triggerId);J&&this.h_.get().removeCueRange(J.cueRangeId);this.iT.delete(F.triggerId)}; g.A.onCueRangeEnter=function(F){var J=sdJ(this,F);if(J&&(J=this.iT.get(J)))if(g.x(Fm(this.OQ.get()),32))this.C.add(J.cueRangeId);else{var b=J==null?void 0:J.lh.trigger;if(b instanceof Sj||b instanceof dI){if(fF(this.context.uR.get())){var I=J.lh.slot,u=J.lh.layout,w={};this.context.P9.Ck("cre",(w.ca=J.lh.category,w.tt=b.triggerType,w.st=I.slotType,w.lt=u==null?void 0:u.layoutType,w.cid=F,w))}Pq(this.U(),[J.lh])}}}; g.A.onCueRangeExit=function(F){(F=sdJ(this,F))&&(F=this.iT.get(F))&&this.C.delete(F.cueRangeId)}; g.A.jT=function(F){if(aJ(F,16)<0){F=g.N(this.C);for(var J=F.next();!J.done;J=F.next())this.onCueRangeEnter(J.value,!0);this.C.clear()}}; g.A.mu=function(){}; g.A.Bh=function(){}; g.A.tX=function(){}; g.A.d0=function(){}; g.A.lx=function(){}; g.A.xj=function(){}; g.A.F3=function(){}; g.A.gq=function(){}; g.A.fd=function(){}; g.A.bT=function(){}; g.A.A_=function(){}; g.A.Y7=function(){}; g.A.mP=function(){}; g.A.onFullscreenToggled=function(){}; g.A.Kv=function(){}; g.A.bq=function(){}; g.A.OJ=function(){}; g.A.onVolumeChange=function(){}; g.A.nF=function(){}; g.A.c9=function(){};g.z(Yf,g.R);g.A=Yf.prototype; g.A.cS=function(F,J,b,I){if(this.U.has(J.triggerId)||this.T.has(J.triggerId))throw new Z("Tried to re-register the trigger.");F=new tb(F,J,b,I);if(F.trigger instanceof rI)this.U.set(F.trigger.triggerId,F);else if(F.trigger instanceof PS)this.T.set(F.trigger.triggerId,F);else throw new Z("Incorrect TriggerType: Tried to register trigger of type "+F.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.U.has(F.trigger.triggerId)&&F.slot.slotId===this.C&&Pq(this.Z(),[F])}; g.A.CD=function(F){this.U.delete(F.triggerId);this.T.delete(F.triggerId)}; g.A.CZ=function(F){F=F.slotId;if(this.C!==F){var J=[];this.C!=null&&J.push.apply(J,g.W(YtY(this.T,this.C)));F!=null&&J.push.apply(J,g.W(YtY(this.U,F)));this.C=F;J.length&&Pq(this.Z(),J)}}; g.A.cq=function(){}; g.A.mX=function(){};g.z($f,g.R);g.A=$f.prototype;g.A.cS=function(F,J,b,I){if(this.iT.has(J.triggerId))throw new Z("Tried to register duplicate trigger for slot.");if(!(J instanceof Ci))throw new Z("Incorrect TriggerType: Tried to register trigger of type "+J.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.iT.set(J.triggerId,new tb(F,J,b,I))}; g.A.CD=function(F){this.iT.delete(F.triggerId)}; g.A.bT=function(){}; g.A.A_=function(){}; g.A.mu=function(){}; g.A.Bh=function(){}; g.A.tX=function(){}; g.A.d0=function(){}; g.A.lx=function(){}; g.A.xj=function(){}; g.A.F3=function(){}; g.A.gq=function(){}; g.A.fd=function(){}; g.A.Y7=function(){};g.z(Cm,g.R);g.A=Cm.prototype;g.A.Y7=function(F,J){for(var b=[],I=g.N(this.iT.values()),u=I.next();!u.done;u=I.next()){u=u.value;var w=u.trigger;w.opportunityType===F&&(w.associatedSlotId&&w.associatedSlotId!==J||b.push(u))}b.length&&Pq(this.C(),b)}; g.A.cS=function(F,J,b,I){if(this.iT.has(J.triggerId))throw new Z("Tried to register duplicate trigger for slot.");if(!(J instanceof hiY))throw new Z("Incorrect TriggerType: Tried to register trigger of type "+J.triggerType+" in OpportunityEventTriggerAdapter");this.iT.set(J.triggerId,new tb(F,J,b,I))}; g.A.CD=function(F){this.iT.delete(F.triggerId)}; g.A.mu=function(){}; g.A.Bh=function(){}; g.A.tX=function(){}; g.A.d0=function(){}; g.A.lx=function(){}; g.A.xj=function(){}; g.A.F3=function(){}; g.A.gq=function(){}; g.A.fd=function(){}; g.A.bT=function(){}; g.A.A_=function(){};g.z(XZ,g.R);g.A=XZ.prototype;g.A.cS=function(F,J,b,I){F=new tb(F,J,b,I);if(J instanceof BS||J instanceof sC||J instanceof TJ||J instanceof Qc||J instanceof okC){if(this.iT.has(J.triggerId))throw new Z("Tried to register duplicate trigger for slot.");this.iT.set(J.triggerId,F);b=b.slotId;F=this.T.has(b)?this.T.get(b):new Set;F.add(J);this.T.set(b,F)}else throw new Z("Incorrect TriggerType: Tried to register trigger of type "+J.triggerType+" in PrefetchTriggerAdapter");}; g.A.CD=function(F){this.iT.delete(F.triggerId)}; g.A.mu=function(F){var J=F.slotId;if(this.T.has(J)){F=0;var b=new Set;J=g.N(this.T.get(J));for(var I=J.next();!I.done;I=J.next())if(I=I.value,b.add(I.triggerId),I instanceof sC&&I.breakDurationMs){F=I.breakDurationMs;break}Q6(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",F,b)}}; g.A.Bh=function(){}; g.A.tX=function(){}; g.A.d0=function(){}; g.A.lx=function(){}; g.A.xj=function(){}; g.A.F3=function(){}; g.A.gq=function(){}; g.A.fd=function(){}; g.A.bT=function(){}; g.A.A_=function(){}; g.A.Y7=function(){}; g.A.FB=function(F){if(this.C){this.U&&this.U.stop();this.Z&&g.Z_(this.Z);F=F.Bg*1E3+1E3;for(var J=0,b=g.N(this.iT.values()),I=b.next();!I.done;I=b.next())I=I.value.trigger,I instanceof BS&&I.breakDurationMs<=F&&I.breakDurationMs>J&&(J=I.breakDurationMs);F=J;if(F>0)return Q6(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",F,new Set,!0),Q6(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",F,new Set,!1),!0}return!1}; g.A.u3=function(){}; g.A.a6=function(F){this.C&&this.C.contentCpn!==F?(q_("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:F,fetchInstructionsCpn:this.C.contentCpn}),Rn(this)):CQG(this)}; g.A.mW=function(F){this.C&&this.C.contentCpn!==F&&q_("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:F,fetchInstructionsCpn:this.C.contentCpn},!0);Rn(this)}; g.A.Ot=function(F){var J=this;if(this.C)q_("Unexpected multiple fetch instructions for the current content");else{this.C=F;F=Qdo(F);this.U=new g.ty(function(){CQG(J)},F?F:6E5); this.U.start();this.Z=new g.ty(function(){J.C&&(J.U&&(J.U.stop(),J.U.start()),$RJ(J,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},XMJ(this.C)); F=this.OQ.get().getCurrentTimeSec(1,!1);for(var b=g.N(this.cV.get().KX),I=b.next();!I.done;I=b.next())I=I.value,Lx(this.EQ.get(),"nocache","ct."+Date.now()+";cmt."+F+";d."+I.Bg.toFixed(3)+";tw."+(I.startSecs-F)+";cid."+I.identifier+";")}}; g.A.X_=function(){g.R.prototype.X_.call(this);Rn(this)};g.z(DX,g.R);g.A=DX.prototype;g.A.cS=function(F,J,b,I){if(this.iT.has(J.triggerId))throw new Z("Tried to register duplicate trigger for slot.");if(!(J instanceof ni))throw new Z("Incorrect TriggerType: Tried to register trigger of type "+J.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.iT.set(J.triggerId,new tb(F,J,b,I));F=this.C.has(J.triggeringLayoutId)?this.C.get(J.triggeringLayoutId):new Set;F.add(J);this.C.set(J.triggeringLayoutId,F)}; g.A.CD=function(F){this.iT.delete(F.triggerId);if(!(F instanceof ni))throw new Z("Incorrect TriggerType: Tried to unregister trigger of type "+F.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var J=this.U.get(F.triggerId);J&&(J.dispose(),this.U.delete(F.triggerId));if(J=this.C.get(F.triggeringLayoutId))J.delete(F),J.size===0&&this.C.delete(F.triggeringLayoutId)}; g.A.mu=function(){}; g.A.Bh=function(){}; g.A.tX=function(){}; g.A.d0=function(){}; g.A.lx=function(){}; g.A.xj=function(){}; g.A.F3=function(){}; g.A.gq=function(){}; g.A.fd=function(){}; g.A.Y7=function(){}; g.A.bT=function(F,J){var b=this;if(this.C.has(J.layoutId)){F=this.C.get(J.layoutId);F=g.N(F);var I=F.next();for(J={};!I.done;J={BM:void 0},I=F.next())J.BM=I.value,I=new g.ty(function(u){return function(){var w=b.iT.get(u.BM.triggerId);Pq(b.T(),[w])}}(J),J.BM.durationMs),I.start(),this.U.set(J.BM.triggerId,I)}}; g.A.A_=function(){};g.z(kf,g.R);kf.prototype.cS=function(F,J,b,I){if(this.iT.has(J.triggerId))throw new Z("Tried to register duplicate trigger for slot.");if(!(J instanceof Nh))throw new Z("Incorrect TriggerType: Tried to register trigger of type "+J.triggerType+" in VideoTransitionTriggerAdapter.");this.iT.set(J.triggerId,new tb(F,J,b,I))}; kf.prototype.CD=function(F){this.iT.delete(F.triggerId)};cN.prototype.gt=function(F){return F.kind==="AD_PLACEMENT_KIND_START"};g.z(nm,g.R);g.A=nm.prototype;g.A.logEvent=function(F){this.A3(F)}; g.A.k0=function(F,J,b){this.A3(F,void 0,void 0,void 0,J,void 0,void 0,void 0,J.adSlotLoggingData,void 0,void 0,b)}; g.A.Ah=function(F,J,b,I){this.A3(F,void 0,void 0,void 0,J,b?b:void 0,void 0,void 0,J.adSlotLoggingData,b?b.adLayoutLoggingData:void 0,void 0,I)}; g.A.VA=function(F,J,b,I){Un(this.uR.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+F,"trigger:",b,"slot:",J,"layout:",I);vq(this.C.get())&&this.A3(F,void 0,void 0,void 0,J,I?I:void 0,void 0,b,J.adSlotLoggingData,I?I.adLayoutLoggingData:void 0)}; g.A.Q4=function(F,J,b,I,u){this.A3(F,J,b,I,void 0,void 0,void 0,void 0,void 0,void 0,void 0,u)}; g.A.kK=function(F,J,b,I){this.A3("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,b,I,void 0,void 0,b.adSlotLoggingData,I?I.adLayoutLoggingData:void 0,{errorType:F,errorMessage:J})}; g.A.A3=function(F,J,b,I,u,w,M,q,v,a,e,K){var p=this;K=K===void 0?0:K;Un(this.uR.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+F,"slot:",u,"layout:",w,"ping:",M,"Opportunity:",{opportunityType:J,associatedSlotId:b,diE:I,HPj:q,adSlotLoggingData:v,adLayoutLoggingData:a});try{var m=function(){if(!p.uR.get().G.J().S("html5_disable_client_tmp_logs")&&F!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){F||q_("Empty PACF event type",u,w);var y=vq(p.C.get()),f={eventType:F,eventOrder:++p.eventCount},d={}; u&&(d.slotData=qe(y,u));w&&(d.layoutData=f4C(y,w));M&&(d.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:M.C.serializedAdPingMetadata,pingIndex:M.index});q&&(d.triggerData=Aj(q.trigger,q.category));J&&(d.opportunityData=Wia(y,J,b,I));y={organicPlaybackContext:{contentCpn:gM(p.QG.get(),1).clientPlaybackNonce}};y.organicPlaybackContext.isLivePlayback=gM(p.QG.get(),1).MW;var G;y.organicPlaybackContext.isMdxPlayback=(G=gM(p.QG.get(),1))==null?void 0:G.isMdxPlayback; var P;if((P=gM(p.QG.get(),1))==null?0:P.daiEnabled)y.organicPlaybackContext.isDaiContent=!0;var r;if(G=(r=gM(p.QG.get(),2))==null?void 0:r.clientPlaybackNonce)y.adVideoPlaybackContext={adVideoCpn:G};y&&(d.externalContext=y);f.adClientData=d;v&&(f.serializedSlotAdServingData=v.serializedSlotAdServingDataEntry);a&&(f.serializedAdServingData=a.serializedAdServingDataEntry);e&&(f.errorInfo=e);g.AY("adsClientStateChange",{adsClientEvent:f})}}; K&&K>0?g.tC(g.HK(),function(){return m()},K):m()}catch(y){Un(this.uR.get(),"html5_log_pacf_logging_errors")&&g.tC(g.HK(),function(){q_(y instanceof Error?y:String(y),u,w,{pacf_message:"exception during pacf logging"})})}};var duW=new Set("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED".split(" "));g.z(tc,nm);g.A=tc.prototype; g.A.k0=function(F,J,b){nm.prototype.k0.call(this,F,J,b);fF(this.uR.get())&&(b={},this.context.P9.Ck("pacf",(b.et=F,b.st=J.slotType,b.si=J.slotId,b)))}; g.A.Ah=function(F,J,b,I){var u=duW.has(F);nm.prototype.Ah.call(this,F,J,b,I);fF(this.uR.get(),u)&&(I={},this.context.P9.Ck("pacf",(I.et=F,I.st=J.slotType,I.si=J.slotId,I.lt=b==null?void 0:b.layoutType,I.li=b==null?void 0:b.layoutId,I.p_ac=b==null?void 0:b.layoutId,I)))}; g.A.Q4=function(F,J,b,I,u){nm.prototype.Q4.call(this,F,J,b,I,u);fF(this.uR.get())&&(b={},this.context.P9.Ck("pacf",(b.et=F,b.ot=J,b.ss=I==null?void 0:I.length,b)))}; g.A.VA=function(F,J,b,I){nm.prototype.VA.call(this,F,J,b,I);if(fF(this.uR.get())){var u={};this.context.P9.Ck("pacf",(u.et=F,u.tt=b.trigger.triggerType,u.tc=b.category,u.st=J.slotType,u.si=J.slotId,u.lt=I==null?void 0:I.layoutType,u.li=I==null?void 0:I.layoutId,u.p_ac=I==null?void 0:I.layoutId,u))}}; g.A.kK=function(F,J,b,I){nm.prototype.kK.call(this,F,J,b,I);if(fF(this.uR.get(),!0)){var u={};this.context.P9.Ck("perror",(u.ert=F,u.erm=J,u.st=b.slotType,u.si=b.slotId,u.lt=I==null?void 0:I.layoutType,u.li=I==null?void 0:I.layoutId,u.p_ac=I==null?void 0:I.layoutId,u))}}; g.A.A3=function(F,J,b,I,u,w,M,q,v,a,e){if(g.jB(this.uR.get().G.J())){var K=this.uR.get();K=g.eB(K.G.J().experiments,"H5_async_logging_delay_ms")}else K=void 0;nm.prototype.A3.call(this,F,J,b,I,u,w,M,q,v,a,e,K)};ZX.prototype.clear=function(){this.C.clear()};Fa.prototype.resolve=function(F){HN(this,F)}; Fa.prototype.reject=function(F){Lm(this,F)}; Fa.prototype.state=function(){return this.currentState==="done"?{state:"done",result:this.result}:this.currentState==="fail"?{state:"fail",error:this.error}:{state:"wait"}}; Fa.prototype.wait=function(){var F=this;return function b(){return pav(b,function(I){if(I.C==1)return g.f3(I,2),g.T(I,{Z9:F},4);if(I.C!=2)return I.return(I.U);g.Em(I);return g.jz(I,0)})}()}; var vOC=UX(function(F){return J8(F)?F instanceof Fa:!1});var ax=window.Toz||"pt-BR";gB.prototype.r5=function(F){this.client=F}; gB.prototype.C=function(){this.clear();this.csn=g.W8()}; gB.prototype.clear=function(){this.T.clear();this.U.clear();this.Z.clear();this.csn=null};yA.prototype.r5=function(F){g.tE(mB().r5).bind(mB())(F)}; yA.prototype.clear=function(){g.tE(mB().clear).bind(mB())()};g.A=zR.prototype;g.A.r5=function(F){this.client=F}; g.A.vy=function(F,J){var b=this;J=J===void 0?{}:J;g.tE(function(){var I,u,w,M=((I=g.O(F==null?void 0:F.commandMetadata,g.Nm))==null?void 0:I.rootVe)||((u=g.O(F==null?void 0:F.commandMetadata,D8L))==null?void 0:(w=u.screenVisualElement)==null?void 0:w.uiType);if(M){I=g.O(F==null?void 0:F.commandMetadata,MJ8);if(I==null?0:I.parentTrackingParams){var q=g.NY(I.parentTrackingParams);if(I.parentCsn)var v=I.parentCsn}else J.clickedVisualElement?q=J.clickedVisualElement:F.clickTrackingParams&&(q=g.NY(F.clickTrackingParams)); a:{I=g.O(F,g.x$);u=g.O(F,LRL);if(I){if(u=bTm(I,"VIDEO")){I={token:u,videoId:I.videoId};break a}}else if(u&&(I=bTm(u,"PLAYLIST"))){I={token:I,playlistId:u.playlistId};break a}I=void 0}J=Object.assign({},{cttAuthInfo:I,parentCsn:v},J);if(g.Nk("expectation_logging")){var a;J.loggingExpectations=((a=g.O(F==null?void 0:F.commandMetadata,D8L))==null?void 0:a.loggingExpectations)||void 0}lf(b,M,q,J)}else g.rQ(new g.hC("Error: Trying to create a new screen without a rootVeType",F))})()}; g.A.clickCommand=function(F,J,b){F=F.clickTrackingParams;b=b===void 0?0:b;F?(b=g.W8(b===void 0?0:b))?(ql7(this.client,b,g.NY(F),J),J=!0):J=!1:J=!1;return J}; g.A.stateChanged=function(F,J,b){this.visualElementStateChanged(g.NY(F),J,b===void 0?0:b)}; g.A.visualElementStateChanged=function(F,J,b){b=b===void 0?0:b;b===0&&this.U.has(b)?this.Y.push([F,J]):Ajv(this,F,J,b)};Er.prototype.fetch=function(F,J,b){var I=this,u=aYk(F,J,b);return new Promise(function(w,M){function q(){if(b==null?0:b.m5)try{var a=I.handleResponse(F,u.status,u.response,b);w(a)}catch(e){M(e)}else w(I.handleResponse(F,u.status,u.response,b))} u.onerror=q;u.onload=q;var v;u.send((v=J.body)!=null?v:null)})}; Er.prototype.handleResponse=function(F,J,b,I){b=b.replace(")]}'","");try{var u=JSON.parse(b)}catch(w){g.rQ(new g.hC("JSON parsing failed after XHR fetch",F,J,b));if((I==null?0:I.m5)&&b)throw new g.FS(1,"JSON parsing failed after XHR fetch");u={}}J!==200&&(g.rQ(new g.hC("XHR API fetch failed",F,J,b)),u=Object.assign({},u,{errorMetadata:{status:J}}));return u};jv.getInstance=function(){var F=g.kC("ytglobal.storage_");F||(F=new jv,g.RG("ytglobal.storage_",F));return F}; jv.prototype.estimate=function(){var F,J,b;return g.S(function(I){F=navigator;return((J=F.storage)==null?0:J.estimate)?I.return(F.storage.estimate()):((b=F.webkitTemporaryStorage)==null?0:b.queryUsageAndQuota)?I.return(eKv()):I.return()})}; g.RG("ytglobal.storageClass_",jv);wZ.prototype.AN=function(F){this.handleError(F)}; wZ.prototype.logEvent=function(F,J){switch(F){case "IDB_DATA_CORRUPTED":g.Nk("idb_data_corrupted_killswitch")||this.C("idbDataCorrupted",J);break;case "IDB_UNEXPECTEDLY_CLOSED":this.C("idbUnexpectedlyClosed",J);break;case "IS_SUPPORTED_COMPLETED":g.Nk("idb_is_supported_completed_killswitch")||this.C("idbIsSupportedCompleted",J);break;case "QUOTA_EXCEEDED":pq3(this,J);break;case "TRANSACTION_ENDED":this.T&&Math.random()<=.1&&this.C("idbTransactionEnded",J);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":F= Object.assign({},J,{hasWindowUnloaded:this.U}),this.C("idbTransactionAborted",F)}};var cI={},nAk=g.H$("yt-player-local-media",{ET:(cI.index={Sp:2},cI.media={Sp:2},cI.captions={Sp:5},cI),shared:!1,upgrade:function(F,J){J(2)&&(g.Vb(F,"index"),g.Vb(F,"media"));J(5)&&g.Vb(F,"captions");J(6)&&(P$(F,"metadata"),P$(F,"playerdata"))}, version:5});var Ept={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},Uu;a:{var xE=g.Bk();xE=xE.toLowerCase();if(g.E1(xE,"android")){var jFt=xE.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(jFt){var Gam=parseFloat(jFt[1]);if(Gam<100){Uu=Gam;break a}}var V2W=xE.match("("+Object.keys(Ept).join("|")+")");Uu=V2W?Ept[V2W[0]]:0}else Uu=void 0}var Vi=Uu,GB=Vi>=0;var Jf_=window;var gXz=eP(function(){var F,J;return(J=(F=window).matchMedia)==null?void 0:J.call(F,"(prefers-reduced-motion: reduce)").matches});var VA;g.GR=new Vo;VA=0;var PX={CJ:function(F,J){var b=F[0];F[0]=F[J%F.length];F[J%F.length]=b}, Hb:function(F,J){F.splice(0,J)}, nM:function(F){F.reverse()}};var gc3=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var UD=WOv()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.c$?!0:!1;var UOJ={qaE:"adunit",YJj:"detailpage",CFN:"editpage",U_R:"embedded",tBD:"leanback",ydj:"previewpage",YYD:"profilepage",T3:"unplugged",vKj:"playlistoverview",hhj:"sponsorshipsoffer",ijI:"shortspage",BZ_:"handlesclaiming",I2N:"immersivelivepage",v_v:"creatormusic",r4Q:"immersivelivepreviewpage",Rcz:"admintoolyurt",DaD:"shortsaudiopivot",zVf:"consumption"};var n4,Pvt,By;n4={};g.QA=(n4.STOP_EVENT_PROPAGATION="html5-stop-propagation",n4.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",n4.IV_DRAWER_OPEN="ytp-iv-drawer-open",n4.MAIN_VIDEO="html5-main-video",n4.VIDEO_CONTAINER="html5-video-container",n4.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",n4.HOUSE_BRAND="house-brand",n4);Pvt={};By=(Pvt.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",Pvt.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",Pvt);var BX3={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var sVa={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},Yh4={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"},eH7={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var g8z={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.t8.prototype.getLanguageInfo=function(){return this.j3}; g.t8.prototype.getXtags=function(){if(!this.xtags){var F=this.id.split(";");F.length>1&&(this.xtags=F[1])}return this.xtags}; g.t8.prototype.toString=function(){return this.j3.name}; g.t8.prototype.getLanguageInfo=g.t8.prototype.getLanguageInfo;Zo.prototype.Hg=function(F){return this.U===F.U&&this.C===F.C&&this.T===F.T&&this.reason===F.reason&&(!La||this.LW===F.LW)}; Zo.prototype.isLocked=function(){return this.T&&!!this.U&&this.U===this.C}; Zo.prototype.compose=function(F){if(F.T&&Fh(F))return QE;if(F.T||Fh(this))return F;if(this.T||Fh(F))return this;var J=this.U&&F.U?Math.max(this.U,F.U):this.U||F.U,b=this.C&&F.C?Math.min(this.C,F.C):this.C||F.C;J=Math.min(J,b);var I=0;La&&(I=this.LW!==0&&F.LW!==0?Math.min(this.LW,F.LW):this.LW===0?F.LW:this.LW);return La&&J===this.U&&b===this.C&&I===this.LW||!La&&J===this.U&&b===this.C?this:La?new Zo(J,b,!1,b===this.C&&I===this.LW?this.reason:F.reason,I):new Zo(J,b,!1,b===this.C?this.reason:F.reason)}; Zo.prototype.Z=function(F){return!F.video||La&&this.LW!==0&&this.LW=0}; g.A.cn=function(){var F=this.segments[this.segments.length-1];return F?F.endTime:NaN}; g.A.Ho=function(){return this.segments[0].startTime}; g.A.iA=function(){return this.segments.length}; g.A.VB=function(){return 0}; g.A.Ea=function(F){return(F=this.uA(F))?F.Mf:-1}; g.A.XN=function(F){return(F=this.QB(F))?F.sourceURL:""}; g.A.getStartTime=function(F){return(F=this.QB(F))?F.startTime:0}; g.A.nV=function(F){return this.getStartTime(F)+this.getDuration(F)}; g.A.uf=bk(1);g.A.isLoaded=function(){return this.segments.length>0}; g.A.QB=function(F){if(this.C&&this.C.Mf===F)return this.C;F=g.AL(this.segments,new d_(F,0,0,0,""),function(J,b){return J.Mf-b.Mf}); return this.C=F>=0?this.segments[F]:null}; g.A.uA=function(F){if(this.C&&this.C.startTime<=F&&F=0?this.segments[F]:this.segments[Math.max(0,-F-2)]}; g.A.append=function(F){if(F.length)if(F=g.JL(F),this.segments.length){var J=this.segments.length?g.ck(this.segments).endTime:0,b=F[0].Mf-this.oC();b>1&&H3G(this.segments);for(b=b>0?0:-b+1;bF.Mf&&this.index.nj()<=F.Mf+1}; g.A.update=function(F,J,b){this.index.append(F);vzk(this.index,b);F=this.index;F.U=J;F.T="update"}; g.A.VJ=function(){return this.Ne()?!0:fo.prototype.VJ.call(this)}; g.A.iH=function(F,J){var b=this.index.XN(F),I=this.index.getStartTime(F),u=this.index.getDuration(F),w;J?u=w=0:w=this.info.LW>0?this.info.LW*u:1E3;return new sL([new GC(3,this,void 0,"liveCreateRequestInfoForSegment",F,I,u,0,w,!J)],b)}; g.A.IK=function(){return this.Ne()?0:this.initRange.length}; g.A.RO=function(){return!1};Dc.prototype.update=function(F){var J=void 0;this.U&&(J=this.U);var b=new Dc,I=Array.from(F.getElementsByTagName("S"));if(I.length){var u=+Q4(F,"timescale")||1,w=(+I[0].getAttribute("t")||0)/u,M=+Q4(F,"startNumber")||0;b.Z=w;var q=J?J.startSecs+J.Bg:0,v=Date.parse(bBk(Q4(F,"yt:segmentIngestTime")))/1E3;b.D=F.parentElement.tagName==="SegmentTemplate";b.D&&(b.V=Q4(F,"media"));F=J?M-J.Mf:1;b.W=F>0?0:-F+1;F=g.N(I);for(I=F.next();!I.done;I=F.next()){I=I.value;for(var a=+I.getAttribute("d")/u,e=(+I.getAttribute("yt:sid")|| 0)/u,K=+I.getAttribute("r")||0,p=0;p<=K;p++)if(J&&M<=J.Mf)M++;else{var m=new F4_(M,q,a,v+e,w);b.C.push(m);var y=I;var f=u,d=m.startSecs;m=y.getAttribute("yt:cuepointTimeOffset");var G=y.getAttribute("yt:cuepointDuration");if(m&&G){m=Number(m);d=-m/f+d;f=Number(G)/f;G=y.getAttribute("yt:cuepointContext")||null;var P=y.getAttribute("yt:cuepointIdentifier")||"";y=y.getAttribute("yt:cuepointEvent")||"";y=new YZ(d,f,G,P,TUm[y]||"unknown",m)}else y=null;y&&b.T.push(y);M++;q+=a;w+=a;v+=a+e}}b.C.length&& (b.U=g.ck(b.C))}this.W=b.W;this.U=b.U||this.U;g.bV(this.C,b.C);g.bV(this.T,b.T);this.D=b.D;this.V=b.V;this.Z===-1&&(this.Z=b.getStreamTimeOffset())}; Dc.prototype.getStreamTimeOffset=function(){return this.Z===-1?0:this.Z};g.z(OL,g.ES);g.A=OL.prototype;g.A.Yg=function(){return this.x7}; g.A.vF=function(F,J){F=oA(this,F);return F>=0&&(J||!this.segments[F].pending)}; g.A.nj=function(){return this.Hu?this.segments.length?this.uA(this.Ho()).Mf:-1:g.ES.prototype.nj.call(this)}; g.A.Ho=function(){if(this.SF)return 0;if(!this.Hu)return g.ES.prototype.Ho.call(this);if(!this.segments.length)return 0;var F=Math.max(g.ck(this.segments).endTime-this.jD,0);return this.De>0&&this.uA(F).Mf0)return this.Jd/1E3;if(!this.segments.length)return g.ES.prototype.cn.call(this);var F=this.oC();if(!this.Hu||F<=this.segments[this.segments.length-1].Mf)F=this.segments[this.segments.length-1];else{var J=this.segments[this.segments.length-1];F=new d_(F,Math.max(0,J.startTime-(J.Mf-F)*this.x7),this.x7,0,"sq/"+F,void 0,void 0,!0)}return this.SF?Math.min(this.jD,F.endTime):F.endTime}; g.A.iA=function(){return this.Hu?this.segments.length?this.oC()-this.nj()+1:0:g.ES.prototype.iA.call(this)}; g.A.oC=function(){var F=Math.min(this.VN,Math.max(g.ES.prototype.oC.call(this),this.H0)),J=this.jD*1E3;J=this.Jd>0&&this.Jd0&&this.H0>0&&!J&&(J=this.uA(this.jD))&&(F=Math.min(J.Mf-1,F));return F}; g.A.pu=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.A.S9=function(F){var J=oA(this,F.Mf);if(J>=0)this.segments[J]=F;else if(this.segments.splice(-(J+1),0,F),this.gC&&F.Mf%(300/this.x7)===0){var b=this.segments[0].Mf,I=Math.floor(this.gC/this.x7);F=F.Mf-I;J=-(J+1)-I;J>0&&F>b&&(this.segments=this.segments.slice(J))}}; g.A.cY=function(){return this.H0}; g.A.kD=function(F){return km?!this.U&&F>=0&&this.oC()<=F:g.ES.prototype.kD.call(this,F)}; g.A.uA=function(F){if(!this.Hu)return g.ES.prototype.uA.call(this,F);if(!this.segments.length)return null;var J=this.segments[this.segments.length-1];if(F=J.endTime)J=J.Mf+Math.floor((F-J.endTime)/this.x7+1);else{J=qL(this.segments,function(I){return F=I.endTime?1:0}); if(J>=0)return this.segments[J];var b=-(J+1);J=this.segments[b-1];b=this.segments[b];J=Math.floor((F-J.endTime)/((b.startTime-J.endTime)/(b.Mf-J.Mf-1))+1)+J.Mf}return this.QB(J)}; g.A.QB=function(F){if(!this.Hu)return g.ES.prototype.QB.call(this,F);if(!this.segments.length)return null;var J=oA(this,F);if(J>=0)return this.segments[J];var b=-(J+1);J=this.x7;if(b===0)var I=Math.max(0,this.segments[0].startTime-(this.segments[0].Mf-F)*J);else b===this.segments.length?(I=this.segments[this.segments.length-1],I=I.endTime+(F-I.Mf-1)*J):(I=this.segments[b-1],J=this.segments[b],J=(J.startTime-I.endTime)/(J.Mf-I.Mf-1),I=I.endTime+(F-I.Mf-1)*J);return new d_(F,I,J,0,"sq/"+F,void 0,void 0, !0)}; var km=!1;g.z(hM,Xz);g.A=hM.prototype;g.A.a9=function(){return!0}; g.A.VJ=function(){return!0}; g.A.D$=function(F){return this.OL()&&F.T&&!F.Z||!F.C.index.kD(F.Mf)}; g.A.nu=function(){}; g.A.CA=function(F,J){return typeof F!=="number"||isFinite(F)?Xz.prototype.CA.call(this,F,J===void 0?!1:J):new sL([new GC(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.U2,void 0,this.U2*this.info.LW)],"")}; g.A.iH=function(F,J){var b=b===void 0?!1:b;if(this.index.vF(F))return Xz.prototype.iH.call(this,F,J);var I=this.index.getStartTime(F),u=Math.round(this.U2*this.info.LW),w=this.U2;J&&(w=u=0);return new sL([new GC(b?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",F,I,w,void 0,u,!J)],F>=0?"sq/"+F:"")};g.z(c6,fo);g.A=c6.prototype;g.A.pc=function(){return!1}; g.A.OL=function(){return!1}; g.A.a9=function(){return!1}; g.A.nu=function(){return new sL([new GC(1,this,void 0,"otfInit")],this.D)}; g.A.dW=function(){return null}; g.A.qc=function(F){this.D$(F);return aOa(this,TC(F),!1)}; g.A.CA=function(F,J){J=J===void 0?!1:J;F=this.index.Ea(F);J&&(F=Math.min(this.index.oC(),F+1));return aOa(this,F,!0)}; g.A.Eg=function(F){F.info.type===1&&(this.C||(this.C=lH(F.C)),F.U&&F.U.uri==="http://youtube.com/streaming/otf/durations/112015"&&ega(this,F.U))}; g.A.D$=function(F){return F.T===0?!0:this.index.oC()>F.Mf&&this.index.nj()<=F.Mf+1}; g.A.IK=function(){return 0}; g.A.RO=function(){return!1};UL.prototype.AF=function(){return this.C.AF()};g.A=g.Lo.prototype;g.A.vF=function(F){return F<=this.oC()}; g.A.VB=function(F){return this.offsets[F]}; g.A.getStartTime=function(F){return this.startTicks[F]/this.C}; g.A.nV=function(F){return this.getStartTime(F)+this.getDuration(F)}; g.A.uf=bk(0);g.A.Ze=function(){return NaN}; g.A.getDuration=function(F){F=this.dR(F);return F>=0?F/this.C:-1}; g.A.dR=function(F){return F+1=0}; g.A.cn=function(){return this.U?this.startTicks[this.count]/this.C:NaN}; g.A.Ho=function(){return 0}; g.A.iA=function(){return this.count}; g.A.XN=function(){return""}; g.A.Ea=function(F){F=g.AL(this.startTicks.subarray(0,this.count),F*this.C);return F>=0?F:Math.max(0,-F-2)}; g.A.isLoaded=function(){return this.oC()>=0}; g.A.K2=function(F,J){if(F>=this.oC())return 0;var b=0;for(J=this.getStartTime(F)+J;Fthis.getStartTime(F);F++)b=Math.max(b,lOv(this,F)/this.getDuration(F));return b}; g.A.resize=function(F){F+=2;var J=this.offsets;this.offsets=new Float64Array(F+1);var b=this.startTicks;this.startTicks=new Float64Array(F+1);for(F=0;F0&&F&&(b=b.range.end+1,F=Math.min(F,this.info.contentLength-b),F>0&&I.push(new GC(4,this,EL(b,F),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,J)));return new sL(I)}; g.A.Eg=function(F){if(F.info.type===1){if(this.C)return;this.C=lH(F.C)}else if(F.info.type===2){if(this.D||this.index.oC()>=0)return;if(g.nF(this.info)){var J=this.index,b=F.AF();F=F.info.range.start;var I=g.Rt(b,0,1936286840);b=ffz(I);J.C=b.timescale;var u=b.ES;J.offsets[0]=b.CR+F+I.size;J.startTicks[0]=u;J.U=!0;F=b.ax.length;for(I=0;I0&&F===w[0].PY)for(F=0;F=J+b)break}u.length||g.Td(new g.hC("b189619593",""+F,""+J,""+b));return new sL(u)}; g.A.v7=function(F){for(var J=this.Iq(F.info),b=F.info.range.start+F.info.U,I=[],u=0;u=this.index.VB(b+1);)b++;return this.v2(b,J,F.T).aI}; g.A.D$=function(F){F.aQ();return this.VJ()?!0:F.range.end+1this.info.contentLength&&(J=new W6(J.start,this.info.contentLength-1)),new sL([new GC(4,F.C,J,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,F.clipId)]);F.type===4&&(F=this.Iq(F),F=F[F.length-1]);var b=0,I=F.range.start+F.U+F.T;F.type===3&&(F.aQ(),b=F.Mf,I===F.range.end+1&&(b+=1));return this.v2(b,I,J)}; g.A.qc=function(){return null}; g.A.CA=function(F,J,b){J=J===void 0?!1:J;F=this.index.Ea(F);J&&(F=Math.min(this.index.oC(),F+1));return this.v2(F,this.index.VB(F),0,b)}; g.A.pc=function(){return!0}; g.A.OL=function(){return!0}; g.A.a9=function(){return!1}; g.A.IK=function(){return this.indexRange.length+this.initRange.length}; g.A.RO=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var ZN={},Xez=(ZN.COLOR_PRIMARIES_BT709="bt709",ZN.COLOR_PRIMARIES_BT2020="bt2020",ZN.COLOR_PRIMARIES_UNKNOWN=null,ZN.COLOR_PRIMARIES_UNSPECIFIED=null,ZN),HI={},W4z=(HI.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",HI.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",HI.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",HI.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",HI.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,HI.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,HI);g.bI.prototype.getName=function(){return this.name}; g.bI.prototype.getId=function(){return this.id}; g.bI.prototype.getIsDefault=function(){return this.isDefault}; g.bI.prototype.toString=function(){return this.name}; g.bI.prototype.getName=g.bI.prototype.getName;g.bI.prototype.getId=g.bI.prototype.getId;g.bI.prototype.getIsDefault=g.bI.prototype.getIsDefault;var Gnm=/action_display_post/;var VsG,wd,MQ;g.z(Ag,g.uA);g.A=Ag.prototype;g.A.isLoading=function(){return this.state===1}; g.A.J4=function(){return this.state===3}; g.A.i7I=function(F){var J=F.getElementsByTagName("Representation");if(F.getElementsByTagName("SegmentList").length>0||F.getElementsByTagName("SegmentTemplate").length>0){this.MW=this.U=!0;this.timeline||(this.timeline=new u8_);qoC(this.timeline,F);this.publish("refresh");for(F=0;F=0?e=dG(p):K=K+"?range="+p}v.call(q,new d_(a.Mf,a.startSecs,a.Bg,a.C,K,e,a.U))}I=u}b.update(I,this.isLive,this.Jz)}vnv(this.timeline);return!0}this.duration=JGk(Q4(F,"mediaPresentationDuration")); a:{for(F=0;F0))return this.lC()-F}}F=this.C;for(var J in F){var b=F[J].index;if(b.isLoaded()&&!Zf(F[J].info))return b.Ho()}return 0}; g.A.getStreamTimeOffset=function(){return this.V}; g.A.Ze=function(F){for(var J in this.C){var b=this.C[J].index;if(b.isLoaded()){var I=b.Ea(F),u=b.Ze(I);if(u)return u+F-b.getStartTime(I)}}return NaN}; var fW=null,r_U,WG=!((r_U=navigator.mediaCapabilities)==null||!r_U.decodingInfo),onY={commentary:1,alternate:2,dub:3,main:4};var lm=new Set,dd=new Map;GF.prototype.clone=function(F){return new GF(this.flavor,F,this.U,this.experiments)}; GF.prototype.Cy=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; GF.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 SFH={},X1=(SFH.playready=["com.youtube.playready","com.microsoft.playready"],SFH.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],SFH),L4={},Dbz=(L4.widevine="DRM_SYSTEM_WIDEVINE",L4.fairplay="DRM_SYSTEM_FAIRPLAY",L4.playready="DRM_SYSTEM_PLAYREADY",L4),F2={},sFt=(F2.widevine=1,F2.fairplay=2,F2.playready=3,F2);RZ.prototype.Ic=function(F,J){J=J===void 0?1:J;this.zQ+=J;this.U+=F;F/=J;for(var b=0;b0)I+="."+Qy[u].toFixed(0)+"_"+b.C[u].toFixed(0);else break;b=I}b&&(F[J]=b)}this.C=new uCo;return F}; g.A.toString=function(){return""};g.A=a0m.prototype;g.A.isActive=function(){return!1}; g.A.xw=function(){}; g.A.p$=function(){}; g.A.Yr=function(F,J){return J}; g.A.EA=function(){}; g.A.Gy=function(){}; g.A.Zq=function(F,J){return J()}; g.A.Or=function(){return{}}; g.A.toString=function(){return""};var J0,YFm,$ub,CvW,X3R,QF1,bs,Sn,tH,Hs7,hg;J0=new a0m;YFm=!!+Uk("html5_enable_profiler");$ub=!!+Uk("html5_onesie_enable_profiler");CvW=!!+Uk("html5_offline_encryption_enable_profiler");X3R=!!+Uk("html5_performance_impact_profiling_timer_ms");QF1=!!+Uk("html5_drm_enable_profiler");bs=YFm||$ub||CvW||X3R||QF1?new MYv:J0;g.RQ=YFm?bs:J0;Sn=$ub?bs:J0;tH=CvW?bs:J0;Hs7=X3R?bs:J0;hg=QF1?bs:J0;var oZ;g.z(kj,g.R); kj.prototype.initialize=function(F,J){for(var b=this,I=g.N(Object.keys(F)),u=I.next();!u.done;u=I.next()){u=g.N(F[u.value]);for(var w=u.next();!w.done;w=u.next())if(w=w.value,w.Ke)for(var M=g.N(Object.keys(w.Ke)),q=M.next();!q.done;q=M.next()){var v=q.value;q=v;v=X1[v];!v&&this.S("html5_enable_vp9_fairplay")&&q==="fairplay"&&(v=["com.youtube.fairplay.sbdl"]);if(v){v=g.N(v);for(var a=v.next();!a.done;a=v.next())a=a.value,this.T[a]=this.T[a]||new GF(q,a,w.Ke[q],this.PN.experiments),this.C[q]=this.C[q]|| {},this.C[q][w.mimeType]=!0}}}oR()&&(this.T["com.youtube.fairplay"]=new GF("fairplay","com.youtube.fairplay","",this.PN.experiments),this.S("html5_enable_vp9_fairplay")||(this.C.fairplay=this.C.fairplay||{},this.C.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.C.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.U=I0z(J,this.useCobaltWidevine,this.S("html5_enable_safari_fairplay"),this.S("html5_enable_vp9_fairplay")).filter(function(e){return!!b.T[e]})}; kj.prototype.S=function(F){return this.PN.experiments.pW(F)};var RW5={"":"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"};ixY.prototype.S=function(F){return this.experiments.pW(F)};var nOv={RED:"red",IXv:"white"};zRC.prototype.pW=function(F){F=this.flags[F];JSON.stringify(F);return F==="true"};var f0v=Promise.resolve(),jYa=window.queueMicrotask?window.queueMicrotask.bind(window):WSG;nW.prototype.canPlayType=function(F,J){F=F.canPlayType?F.canPlayType(J):!1;hY?F=F||Dub[J]:Vi===2.2?F=F||kae[J]:k6()&&(F=F||OIU[J]);return!!F}; nW.prototype.isTypeSupported=function(F){return this.eE?window.cast.receiver.platform.canDisplayType(F):Tj(F)}; var kae={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},OIU={"application/x-mpegURL":"maybe"},Dub={"application/x-mpegURL":"maybe"};g.z(F_,g.uA);F_.prototype.add=function(F,J){if(!this.items[F]&&(J.Xj||J.d4||J.xE)){var b=this.items,I=J;Object.isFrozen&&!Object.isFrozen(J)&&(I=Object.create(J),Object.freeze(I));b[F]=I;this.publish("vast_info_card_add",F)}}; F_.prototype.remove=function(F){var J=this.get(F);delete this.items[F];return J}; F_.prototype.get=function(F){return this.items[F]||null}; F_.prototype.isEmpty=function(){return g.Vj(this.items)};g.z(JP,g.lx);JP.prototype.C=function(F,J){return g.lx.prototype.C.call(this,F,J)}; JP.prototype.U=function(F,J,b){var I=this;return g.S(function(u){return u.C==1?g.T(u,g.lx.prototype.U.call(I,F,J,b),2):u.return(u.U)})}; g.z(bb,g.fg);bb.prototype.encrypt=function(F,J){return g.fg.prototype.encrypt.call(this,F,J)};var ub;wN.prototype.add=function(F){if(this.pos+20>this.data.length){var J=new Uint8Array(this.data.length*2);J.set(this.data);this.data=J}for(;F>31;)this.data[this.pos++]=ub[(F&31)+32],F>>=5;this.data[this.pos++]=ub[F|0]}; wN.prototype.G7=function(){return g.Ev(this.data.subarray(0,this.pos))}; wN.prototype.reset=function(){this.pos=0};AP.prototype.Zj=function(F,J){var b=Math.pow(this.alpha,F);this.C=J*(1-b)+b*this.C;this.U+=F}; AP.prototype.X3=function(){return this.C/(1-Math.pow(this.alpha,this.U))};qn.prototype.Zj=function(F,J){for(var b=0;b<10;b++){var I=this.C[b],u=I+(b===0?F:0),w=1*Math.pow(2,b);if(u<=w)break;I=Math.min(1,(u-w*.5)/I);for(u=0;u<16;u++)w=this.values[b*16+u]*I,this.values[(b+1)*16+u]+=w,this.C[b+1]+=w,this.values[b*16+u]-=w,this.C[b]-=w}I=b=0;u=8192;J>8192&&(b=Math.ceil(Math.log(J/8192)/Math.log(2)),I=8192*Math.pow(2,b-1),u=I*2);b+2>16?this.values[15]+=F:(J=(J-I)/(u-I),this.values[b]+=F*(1-J),this.values[b+1]+=F*J);this.C[0]+=F}; qn.prototype.X3=function(){var F=F===void 0?this.U:F;var J=J===void 0?.02:J;var b=b===void 0?.98:b;for(var I=this.T,u=0;u<16;u++)I[u]=this.values[u];u=this.C[0];for(var w=1;w<11;w++){var M=this.C[w];if(M===0)break;for(var q=Math.min(1,(F-u)/M),v=0;v<16;v++)I[v]+=this.values[w*16+v]*q;u+=M*q;if(q<1)break}for(w=F=M=0;w<16;w++){q=M+I[w]/u;F+=Math.max(0,Math.min(q,b)-Math.max(M,J))*(w>0?8192*Math.pow(2,w-1):0);if(q>b)break;M=q}return F/(b-J)};vu.prototype.Zj=function(F,J){F=Math.min(this.C,Math.max(1,Math.round(F*this.resolution)));F+this.U>=this.C&&(this.T=!0);for(;F--;)this.values[this.U]=J,this.U=(this.U+1)%this.C;this.Y8=!0}; vu.prototype.percentile=function(F){var J=this;if(!this.T&&this.U===0)return 0;this.Y8&&(g.vW(this.D,function(b,I){return J.values[b]-J.values[I]}),this.Y8=!1); return this.values[this.D[Math.round(F*((this.T?this.C:this.U)-1))]]||0}; vu.prototype.X3=function(){return this.W?(this.percentile(this.Z-this.W)+this.percentile(this.Z)+this.percentile(this.Z+this.W))/3:this.percentile(this.Z)};g.z(aw,g.R);aw.prototype.KW=function(){var F;(F=this.dD)==null||F.start();if(zB(this)&&this.policy.Y){var J;(J=this.t_)==null||J.mR()}};RRY.prototype.S=function(F){return this.experiments.pW(F)};g.z(kAY,g.R);var xOJ="blogger gac books docs duo flix google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),Fqv={YaE:"caoe",jQj:"capsv",eVE:"cbrand",ZFW:"cbr",s6Q:"cbrver",DLj:"cchip",Q6G:"ccappver",SJN:"ccrv",f2G:"cfrmver",UhG:"c",ZD_:"cver",eT_:"ctheme",TX_:"cplayer",TTD:"cmodel",AdE:"cnetwork",EKI:"cos",dQN:"cosver",KWE:"cplatform",Ua_:"crqyear"};g.z(X_,g.R);g.A=X_.prototype;g.A.S=function(F){return this.experiments.pW(F)}; g.A.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.A.getVideoUrl=function(F,J,b,I,u,w,M){J={list:J};b&&(u?J.time_continue=b:J.t=b);b=M?"music.youtube.com":g.Rw(this);u=b==="www.youtube.com";!w&&I&&u?w="https://youtu.be/"+F:g.TB(this)?(w="https://"+b+"/fire",J.v=F):(w&&u?(w=this.protocol+"://"+b+"/shorts/"+F,I&&(J.feature="share")):(w=this.protocol+"://"+b+"/watch",J.v=F),hY&&(F=kZz())&&(J.ebc=F));return g.Os(w,J)}; g.A.getVideoEmbedCode=function(F,J,b,I){J="https://"+g.Rw(this)+"/embed/"+J;I&&(J=g.Os(J,{list:I}));I=b.width;b=b.height;J=tQ(J);F=tQ(F!=null?F:"YouTube video player");return'')}; g.A.supportsGaplessAudio=function(){return g.B4&&!hY&&RR()>=74||g.Yj&&g.iV(68)?!0:!1}; g.A.supportsGaplessShorts=function(){return!this.S("html5_enable_short_gapless")||this.zj||g.ia?!1:!0}; g.A.getPlayerType=function(){return this.C.cplayer}; g.A.hJ=function(){return this.zU}; var uq3=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],LSa=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],biz=[19];var Iq={},Abo=(Iq["140"]={numChannels:2},Iq["141"]={numChannels:2},Iq["251"]={audioSampleRate:48E3,numChannels:2},Iq["774"]={audioSampleRate:48E3,numChannels:2},Iq["380"]={numChannels:6},Iq["328"]={numChannels:6},Iq["773"]={},Iq),us={},wSz=(us["1"]='video/mp4; codecs="av01.0.08M.08"',us["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',us["1e"]='video/mp4; codecs="av01.0.08M.08"',us["9"]='video/webm; codecs="vp9"',us["("]='video/webm; codecs="vp9"',us["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', us.h='video/mp4; codecs="avc1.64001e"',us.H='video/mp4; codecs="avc1.64001e"',us.o='audio/webm; codecs="opus"',us.a='audio/mp4; codecs="mp4a.40.2"',us.ah='audio/mp4; codecs="mp4a.40.2"',us.mac3='audio/mp4; codecs="ac-3"; channels=6',us.meac3='audio/mp4; codecs="ec-3"; channels=6',us.i='audio/mp4; codecs="iamf.001.001.Opus"',us),wH={},Mja=(wH["337"]={width:3840,height:2160,bitrate:3E7,fps:30},wH["336"]={width:2560,height:1440,bitrate:15E6,fps:30},wH["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, wH["702"]={width:7680,height:4320,bitrate:4E7,fps:60},wH["701"]={width:3840,height:2160,bitrate:2E7,fps:60},wH["700"]={width:2560,height:1440,bitrate:1E7,fps:60},wH["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},wH["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},wH["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},wH["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, wH["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},wH["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},wH["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},wH["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},wH["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},wH["315"]={width:3840,height:2160,bitrate:2E7,fps:60},wH["308"]={width:2560, height:1440,bitrate:1E7,fps:60},wH["303"]={width:1920,height:1080,bitrate:5E6,fps:60},wH["302"]={width:1280,height:720,bitrate:25E5,fps:60},wH["299"]={width:1920,height:1080,bitrate:75E5,fps:60},wH["298"]={width:1280,height:720,bitrate:35E5,fps:60},wH["571"]={width:7680,height:4320,bitrate:3E7,fps:60},wH["401"]={width:3840,height:2160,bitrate:15E6,fps:60},wH["400"]={width:2560,height:1440,bitrate:75E5,fps:60},wH["399"]={width:1920,height:1080,bitrate:2E6,fps:60},wH["398"]={width:1280,height:720,bitrate:1E6, fps:60},wH["397"]={width:854,height:480,bitrate:4E5,fps:30},wH["396"]={width:640,height:360,bitrate:25E4,fps:30},wH["787"]={width:1080,height:608,bitrate:2E5,fps:30},wH["788"]={width:1080,height:608,bitrate:4E5,fps:30},wH["572"]={width:7680,height:4320,bitrate:3E7,fps:60},wH["555"]={width:3840,height:2160,bitrate:15E6,fps:60},wH["554"]={width:2560,height:1440,bitrate:75E5,fps:60},wH["553"]={width:1920,height:1080,bitrate:2E6,fps:60},wH["552"]={width:1280,height:720,bitrate:1E6,fps:60},wH["551"]={width:854, height:480,bitrate:4E5,fps:30},wH["550"]={width:640,height:360,bitrate:25E4,fps:30},wH["313"]={width:3840,height:2160,bitrate:8E6,fps:30},wH["271"]={width:2560,height:1440,bitrate:4E6,fps:30},wH["248"]={width:1920,height:1080,bitrate:2E6,fps:30},wH["247"]={width:1280,height:720,bitrate:15E5,fps:30},wH["244"]={width:854,height:480,bitrate:52E4,fps:30},wH["243"]={width:640,height:360,bitrate:28E4,fps:30},wH["137"]={width:1920,height:1080,bitrate:4E6,fps:30},wH["136"]={width:1280,height:720,bitrate:3E6, fps:30},wH["135"]={width:854,height:480,bitrate:1E6,fps:30},wH["385"]={width:1920,height:1080,bitrate:6503313,fps:60},wH["376"]={width:1280,height:720,bitrate:5706960,fps:60},wH["384"]={width:1280,height:720,bitrate:3660979,fps:60},wH["225"]={width:1280,height:720,bitrate:5805E3,fps:30},wH["224"]={width:1280,height:720,bitrate:453E4,fps:30},wH["145"]={width:1280,height:720,bitrate:2682052,fps:30},wH);g.A=br.prototype;g.A.getInfo=function(){return this.C}; g.A.DB=function(){return null}; g.A.Qm=function(){var F=this.DB();return F?(F=g.bi(F.gw),Number(F.expire)):NaN}; g.A.TK=function(){}; g.A.getHeight=function(){return this.C.video.height};eaz.prototype.build=function(){gA4(this);var F=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],J={};a:if(this.C)var b=this.C;else{b="";for(var I=g.N(this.T),u=I.next();!u.done;u=I.next())if(u=u.value,u.j3){if(u.j3.getIsDefault()){b=u.j3.getId();break a}b||(b=u.j3.getId())}}I=g.N(this.T);for(u=I.next();!u.done;u=I.next())if(u=u.value,this.W||!u.j3||u.j3.getId()===b)J[u.itag]||(J[u.itag]=[]),J[u.itag].push(u);b=g.N(this.U);for(I=b.next();!I.done;I=b.next())if(I=I.value,u=J[I.C]){u=g.N(u);for(var w=u.next();!w.done;w= u.next()){var M=F,q=M.push;w=w.value;var v="#EXT-X-MEDIA:TYPE=AUDIO,",a="YES",e="audio";if(w.j3){e=w.j3;var K=e.getId().split(".")[0];K&&(v+='LANGUAGE="'+K+'",');(this.C?this.C===e.getId():e.getIsDefault())||(a="NO");e=e.getName()}K="";I!==null&&(K=I.itag.toString());K=ur(this,w.url,K);v=v+('NAME="'+e+'",DEFAULT='+(a+',AUTOSELECT=YES,GROUP-ID="'))+(pSo(w,I)+'",URI="'+(K+'"'));q.call(M,v)}}b=g.N(this.D);for(I=b.next();!I.done;I=b.next())I=I.value,u=opm,I=(M=I.j3)?'#EXT-X-MEDIA:URI="'+ur(this,I.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+u+'",LANGUAGE="'+M.getId()+'",NAME="'+M.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,I&&F.push(I);b=this.D.length>0?opm:void 0;I=g.N(this.U);for(u=I.next();!u.done;u=I.next())u=u.value,q=J[u.C],M=void 0,((M=q)==null?void 0:M.length)>0&&(M=u,q=q[0],q="#EXT-X-STREAM-INF:BANDWIDTH="+(M.bitrate+q.bitrate)+',CODECS="'+(M.codecs+","+q.codecs+'",RESOLUTION=')+(M.width+"x"+M.height+',AUDIO="')+(pSo(q,M)+'",')+(b?'SUBTITLES="'+b+'",':"")+"CLOSED-CAPTIONS=NONE",M.fps>1&&(q+= ",FRAME-RATE="+M.fps),M.yD&&(q+=",VIDEO-RANGE="+M.yD),F.push(q),F.push(ur(this,u.url,"")));return F.join("\n")}; var opm="text";g.z(w7,br);w7.prototype.Qm=function(){return this.expiration}; w7.prototype.DB=function(){if(!this.gw||this.gw.iR()){var F=this.U.build();F="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(F);this.gw=new Rl(F)}return this.gw};g.z(MF,br);MF.prototype.DB=function(){return new Rl(this.U.tF())}; MF.prototype.TK=function(){this.U=fk(this.U)};g.z(Ai,br);Ai.prototype.DB=function(){return new Rl(this.U)};var My={},EAG=(My.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",My.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",My.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",My);g.A=g.qF.prototype;g.A.getId=function(){return this.id}; g.A.getName=function(){return this.name}; g.A.isServable=function(){return this.C}; g.A.tF=function(){return this.url}; g.A.getXtags=function(){return this.xtags}; g.A.toString=function(){return this.languageCode+": "+g.vC(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.A.Hg=function(F){return F?this.toString()===F.toString():!1}; g.A.o8=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var BIz={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},TI7={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},rb4=/^(\d*)_((\d*)_?(\d*))$/;var sSm={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},YCm={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var A0={},hWV=(A0.ALWAYS=1,A0.BY_REQUEST=3,A0.UNKNOWN=void 0,A0),qy={},c_k=(qy.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",qy.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",qy.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",qy.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",qy);var VZJ; VZJ=function(F){for(var J=Object.keys(F),b={},I=0;II-J?-1:F}; g.A.ll=function(){return this.U.oC()}; g.A.hZ=function(){return this.U.nj()}; g.A.oW=function(F){this.U=F};g.z(CC,Y$);CC.prototype.U=function(F,J){return Y$.prototype.U.call(this,"$N|"+F,J)}; CC.prototype.D=function(F,J,b){return new $$(F,J,b,this.isLive)};var zSC=[],hi=new Set;g.z(g.RH,g.uA);g.A=g.RH.prototype; g.A.setData=function(F){F=F||{};var J=F.errordetail;J!=null&&(this.errorDetail=J);var b=F.errorcode;b!=null?this.errorCode=b:F.status==="fail"&&(this.errorCode="auth");var I=F.reason;I!=null&&(this.errorReason=I);var u=F.subreason;u!=null&&(this.yx=u);this.S("html5_enable_ssap_entity_id")||this.clientPlaybackNonce||(this.clientPlaybackNonce=F.cpn||(this.PN.hJ()?"r"+g.Nq(15):g.Nq(16)));this.nW=JC(this.PN.nW,F.livemonitor);eSz(this,F);var w=F.raw_player_response;if(w)this.CT=w;else{var M=F.player_response; M&&(w=JSON.parse(M))}if(this.S("html5_enable_ssap_entity_id")){var q=F.cached_load;q&&(this.Ta=JC(this.Ta,q));if(!this.clientPlaybackNonce){var v=F.cpn;v?(this.fQ("ssei","shdc"),this.clientPlaybackNonce=v):this.clientPlaybackNonce=this.PN.hJ()?"r"+g.Nq(15):g.Nq(16)}}w&&(this.playerResponse=w);if(this.playerResponse){var a=this.playerResponse.annotations;if(a)for(var e=g.N(a),K=e.next();!K.done;K=e.next()){var p=K.value.playerAnnotationsUrlsRenderer;if(p){p.adsOnly&&(this.LI=!0);var m=p.loadPolicy; m&&(this.annotationsLoadPolicy=hWV[m]);var y=p.invideoUrl;y&&(this.Jz=FK(y));break}}var f=this.playerResponse.attestation;f&&Cg3(this,f);var d=this.playerResponse.cotn;d&&(this.cotn=d);var G=this.playerResponse.heartbeatParams;if(G){vf3(this)&&(this.sP=!0);var P=G.heartbeatToken;P&&(this.drmSessionId=G.drmSessionId||"",this.heartbeatToken=P,this.u_=Number(G.intervalMilliseconds),this.Fl=Number(G.maxRetries),this.Bw=!!G.softFailOnError,this.Xp=!!G.useInnertubeHeartbeatsForDrm,this.GH=!0);this.heartbeatServerData= G.heartbeatServerData;var r;this.us=!((r=G.heartbeatAttestationConfig)==null||!r.requiresAttestation)}var Q=this.playerResponse.messages;Q&&Dhk(this,Q);var D=this.playerResponse.overlay;if(D){var t=D.playerControlsOverlayRenderer;if(t)if(Oik(this,t.controlBgHtml),t.mutedAutoplay){var n=g.O(t.mutedAutoplay,bfW);if(n&&n.endScreen){var uk=g.O(n.endScreen,Ie1);uk&&uk.text&&(this.Do=g.Kr(uk.text))}}else this.mutedAutoplay=!1}var AJ=this.playerResponse.playabilityStatus;if(AJ){var F7=AJ.backgroundability; F7&&F7.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var h,L;if((h=AJ.offlineability)==null?0:(L=h.offlineabilityRenderer)==null?0:L.offlineable)this.offlineable=!0;var l=AJ.contextParams;l&&(this.contextParams=l);var c=AJ.pictureInPicture;c&&c.pictureInPictureRenderer.playableInPip&&(this.pipable=!0);AJ.playableInEmbed&&(this.allowEmbed=!0);var Da=AJ.ypcClickwrap;if(Da){var fz=Da.playerLegacyDesktopYpcClickwrapRenderer,Kz=Da.ypcRentalActivationRenderer;if(fz)this.Vc=fz.durationMessage|| "",this.ir=!0;else if(Kz){var Vz=Kz.durationMessage;this.Vc=Vz?g.Kr(Vz):"";this.ir=!0}}var Za=AJ.errorScreen;if(Za){if(Za.playerLegacyDesktopYpcTrailerRenderer){var Ib=Za.playerLegacyDesktopYpcTrailerRenderer;this.gO=Ib.trailerVideoId||"";var yU=Za.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var E=yU&&yU.ypcTrailerRenderer}else if(Za.playerLegacyDesktopYpcOfferRenderer)Ib=Za.playerLegacyDesktopYpcOfferRenderer;else if(Za.ypcTrailerRenderer){E=Za.ypcTrailerRenderer;var V=E.fullVideoMessage;this.sW= V?g.Kr(V):"";var B,Y;this.gO=((B=g.O(E,uP5))==null?void 0:(Y=B.videoDetails)==null?void 0:Y.videoId)||""}Ib&&(this.uH=Ib.itemTitle||"",Ib.itemUrl&&(this.A2=Ib.itemUrl),Ib.itemBuyUrl&&(this.gW=Ib.itemBuyUrl),this.WC=Ib.itemThumbnail||"",this.HC=Ib.offerHeadline||"",this.Pn=Ib.offerDescription||"",this.Mh=Ib.offerId||"",this.Oc=Ib.offerButtonText||"",this.uh=Ib.offerButtonFormattedText||null,this.k6=Ib.overlayDurationMsec||NaN,this.sW=Ib.fullVideoMessage||"",this.Tc=!0);if(E){var X=g.O(E,uP5);if(X)this.gT= {raw_player_response:X};else{var JJ=g.O(E,mLL);this.gT=JJ?FF(JJ):null}this.Tc=!0}}}var wY=this.playerResponse.playbackTracking;if(wY){var M4=F,C=g7(wY.googleRemarketingUrl);C&&(this.googleRemarketingUrl=C);var ez=g7(wY.youtubeRemarketingUrl);ez&&(this.youtubeRemarketingUrl=ez);var yz={},va=g7(wY.ptrackingUrl);if(va){var rY=mZ(va),pz=rY.oid;pz&&(this.En=pz);var QU=rY.pltype;QU&&(this.S4=QU);var Kf=rY.ptchn;Kf&&(this.MH=Kf);var hJ=rY.ptk;hJ&&(this.Ac=encodeURIComponent(hJ));var QI=rY.m;QI&&(this.s8= QI)}var qX=g7(wY.qoeUrl);if(qX){for(var rU=g.bi(qX),of=g.N(Object.keys(rU)),af=of.next();!af.done;af=of.next()){var oD=af.value,Ry=rU[oD];rU[oD]=Array.isArray(Ry)?Ry.join(","):Ry}this.AR=rU;var h6=rU.cat;h6&&(this.S("html5_enable_qoe_cat_list")?this.oV=this.oV.concat(h6.split(",")):this.fL=h6);var lB=rU.live;lB&&(this.LX=lB);var eq=rU.drm_product;eq&&(this.Gc=eq)}var rb=g7(wY.videostatsPlaybackUrl);if(rb){var pI=mZ(rb),SP=pI.adformat;if(SP){M4.adformat=SP;var s4=this.J(),Yo=SCz(SP,this.KI,s4.Z,s4.V); Yo&&(this.adFormat=Yo)}var PR=pI.aqi;PR&&(M4.ad_query_id=PR);var HW=pI.autoplay;HW&&(this.NJ=HW=="1",this.dK=HW=="1",Zh(this,"vss"));var cz=pI.autonav;cz&&(this.isAutonav=cz=="1");var Iy=pI.delay;Iy&&(this.xm=L5(Iy));var WQ=pI.ei;WQ&&(this.eventId=WQ);if(pI.adcontext||SP)this.NJ=!0,Zh(this,"ad");var CX=pI.feature;CX&&(this.Yf=CX);var pf=pI.list;pf&&(this.playlistId=pf);var pB=pI.of;pB&&(this.TP=pB);var gu=pI.osid;gu&&(this.osid=gu);var m4=pI.referrer;m4&&(this.referrer=m4);var Jo=pI.sdetail;Jo&&(this.Xz= Jo);var wj=pI.ssrt;wj&&(this.fN=wj=="1");var bq=pI.subscribed;bq&&(this.subscribed=bq=="1",this.V.subscribed=bq);var Ir=pI.uga;Ir&&(this.userGenderAge=Ir);var yh=pI.upt;yh&&(this.PC=yh);var i1=pI.vm;i1&&(this.videoMetadata=i1);yz.playback=pI}var zn=g7(wY.videostatsWatchtimeUrl);if(zn){var Nt=mZ(zn),l1=Nt.ald;l1&&(this.bd=l1);yz.watchtime=Nt}var fB=g7(wY.atrUrl);if(fB){var rS=mZ(fB);yz.atr=rS}var di=g7(wY.engageUrl);if(di){var Si=mZ(di);yz.engage=Si}this.Ga=yz;if(wY.promotedPlaybackTracking){var hD= wY.promotedPlaybackTracking;hD.startUrls&&(this.N5=hD.startUrls);hD.firstQuartileUrls&&(this.zP=hD.firstQuartileUrls);hD.secondQuartileUrls&&(this.t5=hD.secondQuartileUrls);hD.thirdQuartileUrls&&(this.Fr=hD.thirdQuartileUrls);hD.completeUrls&&(this.VT=hD.completeUrls);hD.engagedViewUrls&&(hD.engagedViewUrls.length>1&&g.rQ(new g.hC("There are more than one engaged_view_urls.")),this.pF=hD.engagedViewUrls[0])}}var uq=this.playerResponse.playerCueRanges;uq&&uq.length>0&&(this.cueRanges=uq);var We=this.playerResponse.playerCueRangeSet; We&&g.cC(this,We);a:{var wa=this.playerResponse.adPlacements;if(wa)for(var du=g.N(wa),MG=du.next();!MG.done;MG=du.next()){var Eo=void 0,js=void 0,Gn=(Eo=MG.value.adPlacementRenderer)==null?void 0:(js=Eo.renderer)==null?void 0:js.videoAdTrackingRenderer;if(Gn){var Vh=Gn;break a}}Vh=null}var Ao=Vh;wY&&wY.promotedPlaybackTracking&&Ao&&g.rQ(new g.hC("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));Ao&&(this.XJ=!0);var Pe=this.playerResponse.playerAds;if(Pe)for(var sW= F,Be=g.N(Pe),qG=Be.next();!qG.done;qG=Be.next()){var Tn=qG.value;if(Tn){var ru=Tn.playerLegacyDesktopWatchAdsRenderer;if(ru){var jf=ru.playerAdParams;if(jf){jf.autoplay=="1"&&(this.dK=this.NJ=!0);this.cE=jf.encodedAdSafetyReason||null;jf.showContentThumbnail!==void 0&&(this.Px=!!jf.showContentThumbnail);sW.enabled_engage_types=jf.enabledEngageTypes;break}}}}var lP=this.playerResponse.playerConfig;if(lP){var GM=lP.manifestlessWindowedLiveConfig;if(GM){var vf=Number(GM.minDvrSequence),yn=Number(GM.maxDvrSequence), iC=Number(GM.minDvrMediaTimeMs),zS=Number(GM.maxDvrMediaTimeMs),Ss=Number(GM.startWalltimeMs);vf&&(this.De=vf);iC&&(this.qf=iC/1E3,this.S("html5_sabr_parse_live_metadata_playback_boundaries")&&bE(this)&&(this.rf=iC/1E3));yn&&(this.VN=yn);zS&&(this.NW=zS/1E3,this.S("html5_sabr_parse_live_metadata_playback_boundaries")&&bE(this)&&(this.G8=zS/1E3));Ss&&(this.MI=Ss/1E3);(vf||iC)&&(yn||zS)&&(this.allowLiveDvr=this.isLivePlayback=this.fW=!0,this.SF=!1)}var MB=lP.daiConfig;if(MB){if(MB.enableDai){this.Uo= !0;var NK=MB.enableServerStitchedDai;NK&&(this.enableServerStitchedDai=NK);var Ys=MB.enablePreroll;Ys&&(this.enablePreroll=Ys)}var so;if(MB.daiType==="DAI_TYPE_SS_DISABLED"||((so=MB.debugInfo)==null?0:so.isDisabledUnpluggedChannel))this.vP=!0;MB.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.G4=!0)}var $o=lP.audioConfig;if($o){var Yn=$o.loudnessDb;Yn!=null&&(this.LF=Yn);var ar=$o.trackAbsoluteLoudnessLkfs;ar!=null&&(this.e9=ar);var el=$o.loudnessTargetLkfs;el!=null&&(this.loudnessTargetLkfs=el);$o.audioMuted&& (this.T8=!0);$o.muteOnStart&&(this.tE=!0);var AW=$o.loudnessNormalizationConfig;if(AW){AW.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);AW.preserveStatefulLoudnessTarget&&(this.preserveStatefulLoudnessTarget=!0);var $n=AW.minimumLoudnessTargetLkfs;$n!=null&&(this.minimumLoudnessTargetLkfs=$n);var CY=AW.maxStatefulTimeThresholdSec;CY!=null&&(this.maxStatefulTimeThresholdSec=CY)}this.S("web_player_audio_playback_from_audio_config")&&$o.playAudioOnly&&(this.D4=!0)}var CB=lP.playbackEndConfig; if(CB){var X$=CB.endSeconds,IdC=CB.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(X$&&(this.endSeconds=X$),IdC&&(this.limitedPlaybackDurationInSeconds=IdC))}var Z6=lP.fairPlayConfig;if(Z6){var uEm=Z6.certificate;uEm&&(this.oI=Iw(uEm));var wpa=Number(Z6.keyRotationPeriodMs);wpa>0&&(this.xA=wpa);var MV7=Number(Z6.keyPrefetchMarginMs);MV7>0&&(this.Ao=MV7)}var xF=lP.playbackStartConfig;if(xF){this.Sl=Number(xF.startSeconds);var AaC=xF.liveUtcStartSeconds,qfo=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds> 0;AaC&&!qfo&&(this.liveUtcStartSeconds=Number(AaC));var qQz=xF.startPosition;if(qQz){var vJG=qQz.utcTimeMillis;vJG&&!qfo&&(this.liveUtcStartSeconds=Number(vJG)*.001);var ada=qQz.streamTimeMillis;ada&&(this.Uz=Number(ada)*.001)}this.progressBarStartPosition=xF.progressBarStartPosition;this.progressBarEndPosition=xF.progressBarEndPosition}else{var v_a=lP.skippableSegmentsConfig;if(v_a){var e5G=v_a.introSkipDurationMs;e5G&&(this.nL=Number(e5G)/1E3);var KdC=v_a.outroSkipDurationMs;KdC&&(this.Ud=Number(KdC)/ 1E3)}}var aiv=lP.skippableIntroConfig;if(aiv){var ppo=Number(aiv.startMs),gJa=Number(aiv.endMs);isNaN(ppo)||isNaN(gJa)||(this.B9=ppo,this.jZ=gJa)}var mZ_=lP.streamSelectionConfig;mZ_&&(this.M0=Number(mZ_.maxBitrate));var yaz=lP.vrConfig;yaz&&(this.mj=yaz.partialSpherical=="1");var vF=lP.webDrmConfig;if(vF){vF.skipWidevine&&(this.Km=!0);var iEG=vF.widevineServiceCert;iEG&&(this.fD=Iw(iEG));vF.useCobaltWidevine&&(this.useCobaltWidevine=!0);vF.startWithNoQualityConstraint&&(this.PS=!0)}var UY=lP.mediaCommonConfig; if(UY){var H0=UY.dynamicReadaheadConfig;if(H0){this.maxReadAheadMediaTimeMs=H0.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=H0.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs=H0.readAheadGrowthRateMs||NaN;var z5C,NOC=UY==null?void 0:(z5C=UY.mediaUstreamerRequestConfig)==null?void 0:z5C.videoPlaybackUstreamerConfig;NOC&&(this.vD=Iw(NOC));var esz=UY==null?void 0:UY.sabrContextUpdates;if(esz&&esz.length>0)for(var ld_=g.N(esz),KkJ=ld_.next();!KkJ.done;KkJ=ld_.next()){var au=KkJ.value; if(au.type&&au.value){var JEV={type:au.type,scope:au.scope,value:Iw(au.value)||void 0,sendByDefault:au.sendByDefault};this.sabrContextUpdates.set(au.type,JEV)}}}var fd_=UY.serverPlaybackStartConfig;fd_&&(this.serverPlaybackStartConfig=fd_);UY.useServerDrivenAbr&&(this.DY=!0);var WdJ=UY.requestPipeliningConfig;WdJ&&(this.requestPipeliningConfig=WdJ)}var dZa=lP.inlinePlaybackConfig;dZa&&(this.Tv=!!dZa.showAudioControls);var L7=lP.embeddedPlayerConfig;if(L7){this.embeddedPlayerConfig=L7;var p9k=L7.embeddedPlayerMode; if(p9k){var EJv=this.J();EJv.kQ=p9k;EJv.T=p9k==="EMBEDDED_PLAYER_MODE_PFL"}var jjk=L7.permissions;jjk&&(this.allowImaMonetization=!!jjk.allowImaMonetization)}var GPv=lP.ssapConfig;GPv&&(this.TL=GPv.ssapPrerollEnabled||!1);var Fd=lP.webPlayerConfig;Fd&&(Fd.gatewayExperimentGroup&&(this.gatewayExperimentGroup=Fd.gatewayExperimentGroup),Fd.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var xQ=this.playerResponse.streamingData;if(xQ){var g_7=xQ.formats;if(g_7){for(var ak=[],VV7=g.N(g_7),m9k=VV7.next();!m9k.done;m9k= VV7.next()){var yQa=m9k.value;ak.push(yQa.itag+"/"+yQa.width+"x"+yQa.height)}this.dL=ak.join(",");ak=[];for(var PyG=g.N(g_7),i57=PyG.next();!i57.done;i57=PyG.next()){var e5=i57.value,KU={itag:e5.itag,type:e5.mimeType,quality:e5.quality},BOY=e5.url;BOY&&(KU.url=BOY);var Jf=Wd(e5),bXz=Jf.VP,IkL=Jf.Ou,u$5=Jf.s;Jf.R_&&(KU.url=bXz,KU.sp=IkL,KU.s=u$5);ak.push(g.kV(KU))}this.IP=ak.join(",")}var zsa=xQ.hlsFormats;if(zsa){var TOm=lP||null,bz={};if(TOm){var N3G=TOm.audioPairingConfig;if(N3G&&N3G.pairs)for(var raz= g.N(N3G.pairs),lia=raz.next();!lia.done;lia=raz.next()){var Sfz=lia.value,fik=Sfz.videoItag;bz[fik]||(bz[fik]=[]);bz[fik].push(Sfz.audioItag)}}for(var sjo={},YfJ=g.N(zsa),Wk3=YfJ.next();!Wk3.done;Wk3=YfJ.next()){var $Zv=Wk3.value;sjo[$Zv.itag]=$Zv.bitrate}for(var Cya=[],Xp7=g.N(zsa),d93=Xp7.next();!d93.done;d93=Xp7.next()){var Jz=d93.value,EN={itag:Jz.itag,type:Jz.mimeType,url:Jz.url,bitrate:Jz.bitrate,width:Jz.width,height:Jz.height,fps:Jz.fps},I7=Jz.audioTrack;if(I7){var Qja=I7.displayName;Qja&& (EN.name=Qja,EN.audio_track_id=I7.id,I7.audioIsDefault&&(EN.is_default="1"))}if(Jz.drmFamilies){for(var R5z=[],DZG=g.N(Jz.drmFamilies),E_z=DZG.next();!E_z.done;E_z=DZG.next())R5z.push(vG[E_z.value]);EN.drm_families=R5z.join(",")}var uz=bz[Jz.itag];if(uz&&uz.length){EN.audio_itag=uz.join(",");var kPY=sjo[uz[0]];kPY&&(EN.bitrate+=kPY)}var OEY=dta(Jz);OEY&&(EN.eotf=OEY);Jz.audioChannels&&(EN.audio_channels=Jz.audioChannels);Cya.push(g.kV(EN))}this.hlsFormats=Cya.join(",")}var j0k=xQ.licenseInfos;if(j0k&& j0k.length>0){for(var oJz={},h5z=g.N(j0k),Gy3=h5z.next();!Gy3.done;Gy3=h5z.next()){var ca3=Gy3.value,UZG=ca3.drmFamily,xZz=ca3.url;UZG&&xZz&&(oJz[vG[UZG]]=xZz)}this.Ke=oJz}var nJJ=xQ.drmParams;nJJ&&(this.drmParams=nJJ);var tVv=xQ.dashManifestUrl;tVv&&(this.y6=g.Os(tVv,{cpn:this.clientPlaybackNonce}));var ZEa=xQ.hlsManifestUrl;ZEa&&(this.hlsvp=ZEa);var HEz=xQ.probeUrl;HEz&&(this.probeUrl=FK(g.Os(HEz,{cpn:this.clientPlaybackNonce})));var Ldk=xQ.serverAbrStreamingUrl;Ldk&&(this.rZ=new g.yJ(Ldk,!0))}var Fg_= this.playerResponse.trackingParams;Fg_&&(this.WN=Fg_);var cW=this.playerResponse.videoDetails;if(cW){var ju=F,VpG=cW.videoId;VpG&&(this.videoId=VpG,ju.video_id||(ju.video_id=VpG));var JHY=cW.channelId;JHY&&(this.V.uid=JHY.substring(2));var Pwk=cW.title;Pwk&&(this.title=Pwk,ju.title||(ju.title=Pwk));var B3k=cW.lengthSeconds;B3k&&(this.lengthSeconds=Number(B3k),ju.length_seconds||(ju.length_seconds=B3k));var bco=cW.keywords;bco&&(this.keywords=yIY(bco));var T37=cW.channelId;T37&&(this.uB=T37,ju.ucid|| (ju.ucid=T37));var Im4=cW.viewCount;Im4&&(this.rawViewCount=Number(Im4));var rQz=cW.author;rQz&&(this.author=rQz,ju.author||(ju.author=rQz));var uy4=cW.shortDescription;uy4&&(this.shortDescription=uy4);var wlv=cW.isCrawlable;wlv&&(this.isListed=wlv);var Mdz=cW.musicVideoType;Mdz&&(this.musicVideoType=Mdz);var SQv=cW.isLive;SQv!=null&&(this.isLivePlayback=SQv);if(SQv||cW.isUpcoming)this.isPremiere=!cW.isLiveContent;var AHo=cW.thumbnail;AHo&&(this.N=pC(AHo));var qe4=cW.isExternallyHostedPodcast;qe4&& (this.isExternallyHostedPodcast=qe4);var s0Y=cW.viewerLivestreamJoinPosition;if(s0Y==null?0:s0Y.utcTimeMillis)this.tG=L5(s0Y.utcTimeMillis);var v7z=lP||null,YQz=F;cW.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=!0);cW.isUpcoming&&(this.isUpcoming=!0);if(cW.isPostLiveDvr){this.SF=!0;var amY=cW.latencyClass;amY&&(this.latencyClass=c_k[amY]||"UNKNOWN");cW.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var $9z=!1;this.nW?(this.allowLiveDvr=Z1()?!0:nl&&FG<5?!1:!0,this.isLivePlayback= !0):cW.isLive?(YQz.livestream="1",this.allowLiveDvr=cW.isLiveDvrEnabled?Z1()?!0:nl&&FG<5?!1:!0:!1,this.partnerId=27,$9z=!0):cW.isUpcoming&&($9z=!0);if(cW.isLive||this.nW&&this.S("html5_parse_live_monitor_flags")){cW.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0);var ek3=cW.latencyClass;ek3&&(this.latencyClass=c_k[ek3]||"UNKNOWN");var Kgk=cW.liveChunkReadahead;Kgk&&(this.liveChunkReadahead=Kgk);var nQ=v7z&&v7z.livePlayerConfig;if(nQ){nQ.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0); nQ.hasSubfragmentedWebm&&(this.I0=!0);nQ.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var pl4=nQ.liveExperimentalContentId;pl4&&(this.liveExperimentalContentId=Number(pl4));var g7k=nQ.isLiveHeadPlayable;this.S("html5_live_head_playable")&&g7k!=null&&(this.isLiveHeadPlayable=g7k)}}$9z&&(this.isLivePlayback=!0,YQz.adformat&&YQz.adformat.split("_")[1]!=="8"||this.kQ.push("heartbeat"),this.GH=!0)}var mVo=cW.isPrivate;mVo!==void 0&&(this.isPrivate=JC(this.isPrivate,mVo))}if(AJ){var yHY= cW||null,icY=!1,t3=AJ.errorScreen;icY=t3&&(t3.playerLegacyDesktopYpcOfferRenderer||t3.playerLegacyDesktopYpcTrailerRenderer||t3.ypcTrailerRenderer)?!0:yHY&&yHY.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(AJ.status);if(!icY){this.errorCode=jSa(AJ.errorCode)||"auth";var wC=t3&&t3.playerErrorMessageRenderer;if(wC){this.playerErrorMessageRenderer=wC;var zkz=wC.reason;zkz&&(this.errorReason=g.Kr(zkz));var Cwz=wC.subreason;Cwz&&(this.yx=g.Kr(Cwz),this.TZ=Cwz)}else this.errorReason= AJ.reason||null;var X9z=AJ.status;if(X9z==="LOGIN_REQUIRED")this.errorDetail="1";else if(X9z==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(X9z==="AGE_CHECK_REQUIRED"){var NeC=AJ.errorScreen,lmz=NeC&&NeC.playerKavRenderer;this.errorDetail=lmz&&lmz.kavUrl?"4":"3"}else this.errorDetail=AJ.isBlockedInRestrictedMode?"5":"0"}}var fmk=this.playerResponse.interstitialPods;fmk&&Rao(this,fmk);this.Jz&&this.eventId&&(this.Jz=ui(this.Jz,{ei:this.eventId}));var Q0o=this.playerResponse.captions;if(Q0o&& Q0o.playerCaptionsTracklistRenderer)a:{var Gv=Q0o.playerCaptionsTracklistRenderer;this.captionTracks=[];if(Gv.captionTracks)for(var WgC=g.N(Gv.captionTracks),Rsk=WgC.next();!Rsk.done;Rsk=WgC.next()){var Vf=Rsk.value,dVo=pFJ(Vf.baseUrl);if(!dVo)break a;var D9m={is_translateable:!!Vf.isTranslatable,languageCode:Vf.languageCode,languageName:Vf.name&&g.Kr(Vf.name),url:dVo,vss_id:Vf.vssId,kind:Vf.kind};D9m.name=Vf.trackName;D9m.displayName=Vf.name&&g.Kr(Vf.name);this.captionTracks.push(new g.qF(D9m))}this.nT= Gv.audioTracks||[];this.oF=Gv.defaultAudioTrackIndex||0;this.Cu=[];if(Gv.translationLanguages)for(var E7G=g.N(Gv.translationLanguages),kyz=E7G.next();!kyz.done;kyz=E7G.next()){var Zy=kyz.value,eZ={};eZ.languageCode=Zy.languageCode;eZ.languageName=g.Kr(Zy.languageName);if(Zy.translationSourceTrackIndices){eZ.translationSourceTrackIndices=[];for(var jaa=g.N(Zy.translationSourceTrackIndices),O53=jaa.next();!O53.done;O53=jaa.next())eZ.translationSourceTrackIndices.push(O53.value)}if(Zy.excludeAudioTrackIndices){eZ.excludeAudioTrackIndices= [];for(var G9m=g.N(Zy.excludeAudioTrackIndices),o_7=G9m.next();!o_7.done;o_7=G9m.next())eZ.excludeAudioTrackIndices.push(o_7.value)}this.Cu.push(eZ)}this.cO=[];if(Gv.defaultTranslationSourceTrackIndices)for(var Vd3=g.N(Gv.defaultTranslationSourceTrackIndices),hsm=Vd3.next();!hsm.done;hsm=Vd3.next())this.cO.push(hsm.value);this.ra=!!Gv.contribute&&!!Gv.contribute.captionsMetadataRenderer}(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.Sl=Number(this.clipConfig.startTimeMs)* .001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&kJ4(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var PXm;this.compositeLiveIngestionOffsetToken=(PXm=this.playerResponse.playbackTracking)==null?void 0:PXm.compositeLiveIngestionOffsetToken;var Beo;this.compositeLiveStatusToken=(Beo=this.playerResponse.playbackTracking)==null?void 0: Beo.compositeLiveStatusToken}k$(this,F);F.queue_info&&(this.queueInfo=F.queue_info);var Te_=F.hlsdvr;Te_!=null&&(this.allowLiveDvr=Number(Te_)===1?Z1()?!0:nl&&FG<5?!1:!0:!1);this.adQueryId=F.ad_query_id||null;this.cE||(this.cE=F.encoded_ad_safety_reason||null);this.jh=F.agcid||null;this.xd=F.ad_id||null;this.oe=F.ad_sys||null;this.gL=F.encoded_ad_playback_context||null;this.T8=JC(this.T8,F.infringe||F.muted);this.GJ=F.authkey;this.rb=F.authuser;this.mutedAutoplay=JC(this.mutedAutoplay,F&&F.playmuted); this.S("embeds_enable_full_length_inline_muted_autoplay")&&(this.mutedAutoplayDurationMode=Ig(this.mutedAutoplayDurationMode,F&&F.muted_autoplay_duration_mode));this.jY=JC(this.jY,F&&F.mutedautoplay);var MU=F.length_seconds;MU&&(this.lengthSeconds=typeof MU==="string"?L5(MU):MU);if(this.isAd()||this.Ar||!g.q1(g.S8(this.PN)))this.endSeconds=Ig(this.endSeconds,this.Ud||F.end||F.endSeconds);else{var wTW=g.S8(this.PN),Af=this.lengthSeconds;switch(wTW){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":Af> 30?this.limitedPlaybackDurationInSeconds=30:Af<30&&Af>10&&(this.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=Af*.2}}this.WN=u8(this.WN,F.itct);this.CM=JC(this.CM,F.noiba);this.UP=JC(this.UP,F.is_live_destination);this.isLivePlayback=JC(this.isLivePlayback,F.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.MW();F.isUpcoming&&(this.isUpcoming=JC(this.isUpcoming,F.isUpcoming));this.SF= JC(this.SF,F.post_live_playback);this.fW&&(this.SF=!1);this.isMdxPlayback=JC(this.isMdxPlayback,F.mdx);var qU=F.mdx_control_mode;qU&&(this.mdxControlMode=typeof qU==="number"?qU:L5(qU));this.isInlinePlaybackNoAd=JC(this.isInlinePlaybackNoAd,F.is_inline_playback_no_ad);this.T1=Ig(this.T1,F.reload_count);this.reloadReason=u8(this.reloadReason,F.reload_reason);this.Px=JC(this.Px,F.show_content_thumbnail);this.b2=JC(this.b2,F.utpsa);this.cycToken=F.cyc||null;this.LT=F.tkn||null;var rHJ=KC(F);Object.keys(rHJ).length> 0&&(this.N=rHJ);this.eE=u8(this.eE,F.vvt);this.mdxEnvironment=u8(this.mdxEnvironment,F.mdx_environment);F.source_container_playlist_id&&(this.sourceContainerPlaylistId=F.source_container_playlist_id);F.serialized_mdx_metadata&&(this.serializedMdxMetadata=F.serialized_mdx_metadata);this.gb=F.osig;this.eventId||(this.eventId=F.eventid);this.osid||(this.osid=F.osid);this.playlistId=u8(this.playlistId,F.list);F.index&&(this.playlistIndex=this.playlistIndex===void 0?Ig(0,F.index):Ig(this.playlistIndex, F.index));this.f0=F.pyv_view_beacon_url;this.k5=F.pyv_quartile25_beacon_url;this.Ig=F.pyv_quartile50_beacon_url;this.E6=F.pyv_quartile75_beacon_url;this.IJ=F.pyv_quartile100_beacon_url;var Sea=F.session_data;!this.Tt&&Sea&&(this.Tt=HT(Sea,"&").feature);this.isFling=Ig(this.isFling?1:0,F.is_fling)===1;this.vnd=Ig(this.vnd,F.vnd);this.forceAdsUrl=u8(this.forceAdsUrl,F.force_ads_url);this.iq=u8(this.iq,F.ctrl);this.I6=u8(this.I6,F.ytr);this.lK=F.ytrcc;this.Zh=F.ytrexp;this.vO=F.ytrext;this.If=u8(this.If, F.adformat);this.KI=u8(this.KI,F.attrib);this.slotPosition=Ig(this.slotPosition,F.slot_pos);this.breakType=F.break_type;this.fN=JC(this.fN,F.ssrt);this.videoId=M1(F)||this.videoId;this.W=u8(this.W,F.vss_credentials_token);this.kZ=u8(this.kZ,F.vss_credentials_token_type);this.D4=JC(this.D4,F.audio_only);this.Q2=JC(this.Q2,F.aac_high);this.h5=JC(this.h5,F.prefer_low_quality_audio);this.ez=JC(this.ez,F.uncap_inline_quality);this.S("html5_enable_qoe_cat_list")?F.qoe_cat&&(this.oV=this.oV.concat(F.qoe_cat.split(","))): this.fL=u8(this.fL,F.qoe_cat);this.qa=JC(this.qa,F.download_media);var saJ=F.prefer_gapless;this.Y=saJ!=null?JC(this.Y,saJ):this.Y?this.Y:this.PN.preferGapless&&this.PN.supportsGaplessShorts();OK3(this.playerResponse)&&this.kQ.push("ad");var YeJ=F.adaptive_fmts;YeJ&&(this.adaptiveFormats=YeJ,this.UQ("adpfmts",{},!0));var $Vv=F.allow_embed;$Vv&&(this.allowEmbed=Number($Vv)===1);var CX7=F.backgroundable;CX7&&(this.backgroundable=Number(CX7)===1);var Xlm=F.autonav;Xlm&&(this.isAutonav=Number(Xlm)=== 1);var Qak=F.autoplay;Qak&&(this.NJ=this.dK=Number(Qak)===1,Zh(this,"c"));var Rka=F.iv_load_policy;Rka&&(this.annotationsLoadPolicy=b8(this.annotationsLoadPolicy,Rka,s7));var DV4=F.cc_lang_pref;DV4&&(this.captionsLanguagePreference=u8(DV4,this.captionsLanguagePreference));var k9J=F.cc_load_policy;k9J&&(this.HO=b8(this.HO,k9J,s7));var Oc_;this.deviceCaptionsOn=(Oc_=F.device_captions_on)!=null?Oc_:void 0;var o77;this.Ch=(o77=F.device_captions_lang_pref)!=null?o77:"";var hkC;this.Xc=(hkC=F.viewer_selected_caption_langs)!= null?hkC:[];if(!this.S("html5_enable_ssap_entity_id")){var cHz=F.cached_load;cHz&&(this.Ta=JC(this.Ta,cHz))}if(F.dash==="0"||F.dash===0||F.dash===!1)this.Z1=!0;var UVG=F.dashmpd;UVG&&(this.y6=g.Os(UVG,{cpn:this.clientPlaybackNonce}));var xVJ=F.delay;xVJ&&(this.xm=L5(xVJ));var cQ7=this.Ud||F.end;if(this.Se?cQ7!=null:cQ7!=void 0)this.clipEnd=Ig(this.clipEnd,cQ7);var n7o=F.fmt_list;n7o&&(this.dL=n7o);F.heartbeat_preroll&&this.kQ.push("heartbeat");this.Wu=-Math.floor(Math.random()*10);this.BE=-Math.floor(Math.random()* 40);var tdz=F.is_listed;tdz&&(this.isListed=JC(this.isListed,tdz));var ZcY=F.is_private;ZcY&&(this.isPrivate=JC(this.isPrivate,ZcY));var Hc3=F.is_dni;Hc3&&(this.T0=JC(this.T0,Hc3));var Lgm=F.dni_color;Lgm&&(this.RV=u8(this.RV,Lgm));var Fwz=F.pipable;Fwz&&(this.pipable=JC(this.pipable,Fwz));this.FK=(this.rh=this.pipable&&this.PN.HQ)&&!this.PN.showMiniplayerButton;var J9_=F.paid_content_overlay_duration_ms;J9_&&(this.paidContentOverlayDurationMs=L5(J9_));var bvz=F.paid_content_overlay_text;bvz&&(this.paidContentOverlayText= bvz);var Iqz=F.url_encoded_fmt_stream_map;Iqz&&(this.IP=Iqz);var uxG=F.hls_formats;uxG&&(this.hlsFormats=uxG);var wsJ=F.hlsvp;wsJ&&(this.hlsvp=wsJ);var vv=F.live_start_walltime;vv&&(this.IB=typeof vv==="number"?vv:L5(vv));var a7=F.live_manifest_duration;a7&&(this.ZY=typeof a7==="number"?a7:L5(a7));var MIk=F.player_params;MIk&&(this.playerParams=MIk);var A9o=F.partnerid;A9o&&(this.partnerId=Ig(this.partnerId,A9o));var qdG=F.probe_url;qdG&&(this.probeUrl=FK(g.Os(qdG,{cpn:this.clientPlaybackNonce}))); var U9o=F.pyv_billable_url;U9o&&HOY(U9o)&&(this.pF=U9o);var x9z=F.pyv_conv_url;x9z&&HOY(x9z)&&(this.n0=x9z);iU3(this,F);this.startSeconds>0?this.S("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.Sl||this.nL||F.start||F.startSeconds)&&this.UQ("lss",{css:this.startSeconds,pcss:this.Sl,iss:this.nL,ps:F.start||void 0,pss:F.startSeconds||void 0}):this.Kk=this.startSeconds=Ig(this.startSeconds,this.Sl||this.nL||F.start||F.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds> 0)){var viY=F.live_utc_start;if(viY!=null)this.liveUtcStartSeconds=Number(viY);else{var n_z=this.startSeconds;n_z&&isFinite(n_z)&&n_z>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var aqC=F.utc_start_millis;aqC&&(this.liveUtcStartSeconds=Number(aqC)*.001)}var eFz=F.stream_time_start_millis;eFz&&(this.Uz=Number(eFz)*.001);var tp_=this.nL||F.start;(this.Se?tp_==null||Number(F.resume)===1:tp_==void 0||F.resume=="1")||this.isLivePlayback|| (this.clipStart=Ig(this.clipStart,tp_));var Kwm=F.url_encoded_third_party_media;Kwm&&(this.qh=JR(Kwm));var Z5G=F.ypc_offer_button_formatted_text;if(Z5G){var psY=JSON.parse(Z5G);this.uh=psY!=null?psY:null;this.VS=Z5G}var gi3=F.ypc_offer_button_text;gi3&&(this.Oc=gi3);var m$o=F.ypc_offer_description;m$o&&(this.Pn=m$o);var y93=F.ypc_offer_headline;y93&&(this.HC=y93);var iva=F.ypc_full_video_message;iva&&(this.sW=iva);var zFJ=F.ypc_offer_id;zFJ&&(this.Mh=zFJ);var Ngm=F.ypc_buy_url;Ngm&&(this.gW=Ngm); var lq3=F.ypc_item_thumbnail;lq3&&(this.WC=lq3);var fqm=F.ypc_item_title;fqm&&(this.uH=fqm);var Wwa=F.ypc_item_url;Wwa&&(this.A2=Wwa);var d$o=F.ypc_vid;d$o&&(this.gO=d$o);F.ypc_overlay_timeout&&(this.k6=Number(F.ypc_overlay_timeout));var Eia=F.ypc_trailer_player_vars;Eia&&(this.gT=FF(Eia));var jhv=F.ypc_original_itct;jhv&&(this.vt=jhv);this.uB=u8(this.uB,F.ucid);F.baseUrl&&(this.V.baseUrl=F.baseUrl);F.uid&&(this.V.uid=F.uid);F.oeid&&(this.V.oeid=F.oeid);F.ieid&&(this.V.ieid=F.ieid);F.ppe&&(this.V.ppe= F.ppe);F.engaged&&(this.V.engaged=F.engaged);F.subscribed&&(this.V.subscribed=F.subscribed);this.V.focEnabled=JC(this.V.focEnabled,F.focEnabled);this.V.rmktEnabled=JC(this.V.rmktEnabled,F.rmktEnabled);this.GW=F.storyboard_spec||null;this.QF=F.live_storyboard_spec||null;this.On=F.iv_endscreen_url||null;this.GH=JC(this.GH,F.ypc_license_checker_module);this.Tc=JC(this.Tc,F.ypc_module);this.ir=JC(this.ir,F.ypc_clickwrap_module);this.Tc&&this.kQ.push("ypc");this.ir&&this.kQ.push("ypc_clickwrap");this.Vr= {video_id:F.video_id,eventid:F.eventid,cbrand:F.cbrand,cbr:F.cbr,cbrver:F.cbrver,c:F.c,cver:F.cver,ctheme:F.ctheme,cplayer:F.cplayer,cmodel:F.cmodel,cnetwork:F.cnetwork,cos:F.cos,cosver:F.cosver,cplatform:F.cplatform,user_age:F.user_age,user_display_image:F.user_display_image,user_display_name:F.user_display_name,user_gender:F.user_gender,csi_page_type:F.csi_page_type,csi_service_name:F.csi_service_name,enablecsi:F.enablecsi,enabled_engage_types:F.enabled_engage_types};KeG(this,F);var GL3=F.cotn; GL3&&(this.cotn=GL3);if(TcJ(this))wS(this)&&(this.isLivePlayback&&this.y6&&(this.MJ=!0),this.oI&&(this.b1=!0));else if(rIa(this))this.MJ=!0;else{var VIz,Phz,BgY=((VIz=this.playerResponse)==null?void 0:(Phz=VIz.streamingData)==null?void 0:Phz.adaptiveFormats)||[];if(BgY.length>0)var pU=Bca(this,BgY);else{var TgJ=this.adaptiveFormats;if(TgJ&&!wS(this)){Mb(this,"html5_enable_cobalt_experimental_vp9_decoder")&&(WG=!0);var HA=pY(TgJ),H5k=this.Ke,r9o=this.lengthSeconds,M4R=this.isLivePlayback,gc=this.SF, LQ=this.PN,AE8=Qlm(HA);if(M4R||gc){var SdY=LQ==null?void 0:LQ.experiments,Q3=new Ag("",SdY,!0);Q3.MW=!0;Q3.isManifestless=!0;Q3.U=!gc;Q3.isLive=!gc;Q3.SF=gc;for(var sha=g.N(HA),LkG=sha.next();!LkG.done;LkG=sha.next()){var FU=LkG.value,Ydm=e$(FU,H5k),KJ=KW(FU.url,FU.sp,FU.s),$$C=KJ.get("id");$$C&&$$C.includes("%7E")&&(Q3.N=!0);var Cha=void 0,qk5=(Cha=SdY)==null?void 0:Cha.pW("html5_max_known_end_time_rebase"),vDH=Number(FU.target_duration_sec)||5,ak5=Number(FU.max_dvr_duration_sec)||14400,Xs4=Number(KJ.get("mindsq")|| KJ.get("min_sq")||"0"),Qhm=Number(KJ.get("maxdsq")||KJ.get("max_sq")||"0")||Infinity;Q3.De=Q3.De||Xs4;Q3.VN=Q3.VN||Qhm;var ez1=!Zf(Ydm);KJ&&uI(Q3,new hM(KJ,Ydm,{U2:vDH,Hu:ez1,jD:ak5,De:Xs4,VN:Qhm,gC:300,SF:gc,jf:qk5}))}var RFv=Q3}else{if(AE8==="FORMAT_STREAM_TYPE_OTF"){var eS=r9o;eS=eS===void 0?0:eS;var J$=new Ag("",LQ==null?void 0:LQ.experiments,!1);J$.duration=eS||0;for(var D$Y=g.N(HA),FD_=D$Y.next();!FD_.done;FD_=D$Y.next()){var bx=FD_.value,JDz=e$(bx,H5k,J$.duration),b$G=KW(bx.url,bx.sp,bx.s); if(b$G)if(JDz.streamType==="FORMAT_STREAM_TYPE_OTF")uI(J$,new c6(b$G,JDz,"sq/0"));else{var KM1=dG(bx.init),pTb=dG(bx.index);uI(J$,new Jg(b$G,JDz,KM1,pTb))}}J$.isOtf=!0;var kLG=J$}else{var KS=r9o;KS=KS===void 0?0:KS;var pS=new Ag("",LQ==null?void 0:LQ.experiments,!1);pS.duration=KS||0;for(var Ovz=g.N(HA),I8z=Ovz.next();!I8z.done;I8z=Ovz.next()){var I1=I8z.value,gDW=e$(I1,H5k,pS.duration),mjz=dG(I1.init),yEL=dG(I1.index),oik=KW(I1.url,I1.sp,I1.s);oik&&uI(pS,new Jg(oik,gDW,mjz,yEL))}kLG=pS}RFv=kLG}var hFz= RFv;if(HA.length>0){var c9v=HA[0];if(this.J().playerStyle==="hangouts-meet"&&c9v.url){var iXR=g.bi(c9v.url);this.SD=this.SD||Number(iXR.expire)}}var zze=this.isLivePlayback&&!this.SF&&!this.fW&&!this.isPremiere;this.S("html5_live_head_playable")&&(!Aw(this)&&zze&&this.UQ("missingLiveHeadPlayable",{}),this.PN.Tj==="yt"&&(hFz.KW=!0));pU=hFz}else pU=null;this.UQ("pafmts",{isManifestFilled:!!pU})}if(pU){aU(this,pU);var U$z=!0}else U$z=!1;U$z?this.enableServerStitchedDai=this.enableServerStitchedDai&& qb(this):this.y6&&(this.PN.Tj==="yt"&&this.MW()&&this.S("drm_manifestless_unplugged")&&this.S("html5_deprecate_manifestful_fallback")?this.UQ("deprecateMflFallback",{}):this.MJ=!0)}var ulG=F.adpings;ulG&&(this.mY=ulG?FF(ulG):null);var x$a=F.feature;x$a&&(this.Yf=x$a);var ni3=F.referrer;ni3&&(this.referrer=ni3);this.clientScreenNonce=u8(this.clientScreenNonce,F.csn);this.Yn=Ig(this.Yn,F.root_ve_type);this.mq=Ig(this.mq,F.kids_age_up_mode);this.Se||F.kids_app_info==void 0||(this.kidsAppInfo=F.kids_app_info); this.Se&&F.kids_app_info!=null&&(this.kidsAppInfo=F.kids_app_info);this.Vj=JC(this.Vj,F.upg_content_filter_mode);this.unpluggedFilterModeType=Ig(this.unpluggedFilterModeType,F.unplugged_filter_mode_type);var tI3=F.unplugged_location_info;tI3&&(this.Tj=tI3);var Zv7=F.unplugged_partner_opt_out;Zv7&&(this.KT=u8("",Zv7));this.XZ=JC(this.XZ,F.disable_watch_next);this.jn=u8(this.jn,F.internal_ip_override);this.wp=!!F.is_yto_interstitial;(this.interstitials.length||this.wp)&&this.kQ.push("yto");var Hva= F.bB;Hva&&(this.bB=Hva);var Lwa;this.zj=(Lwa=F.csi_timer)!=null?Lwa:"";this.Ys=!!F.force_gvi;F.watchUrl&&(this.watchUrl=F.watchUrl);var pJ=F.watch_endpoint;this.S("html5_attach_watch_endpoint_ustreamer_config")&&pJ&&Vj3(this,pJ);if(pJ==null?0:pJ.ustreamerConfig)this.v5=Iw(pJ.ustreamerConfig);var FVz,Juk,b74=pJ==null?void 0:(FVz=pJ.loggingContext)==null?void 0:(Juk=FVz.qoeLoggingContext)==null?void 0:Juk.serializedContextData;b74&&(this.xz=b74);g.dN(this.PN)&&this.PN.G8&&(this.embedsRct=u8(this.embedsRct, F.rct),this.embedsRctn=u8(this.embedsRctn,F.rctn));this.XI=this.XI||!!F.pause_at_start;F.default_active_source_video_id&&(this.defaultActiveSourceVideoId=F.default_active_source_video_id)}; g.A.J=function(){return this.PN}; g.A.S=function(F){return this.PN.S(F)}; g.A.hX=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.A.hasSupportedAudio51Tracks=function(){var F;return!((F=this.K7)==null||!F.cN)}; g.A.getUserAudio51Preference=function(){var F=1;cu(this.PN)&&this.S("html5_ytv_surround_toggle_default_off")?F=0:g.O7(this.PN)&&this.isLivePlayback&&this.So()&&(F=0);var J;return(J=g.S9("yt-player-audio51"))!=null?J:F}; g.A.OR=function(){this.iR()||(this.C.U||this.C.unsubscribe("refresh",this.OR,this),this.Mu(-1))}; g.A.Mu=function(F){if(!this.isLivePlayback||!this.D||this.D.flavor!=="fairplay"){var J=DtG(this.C,this.mE);if(J.length>0){for(var b=g.N(J),I=b.next();!I.done;I=b.next())I=I.value,I.startSecs=Math.max(I.startSecs,this.Ho()),this.S("html5_cuepoint_identifier_logging")&&I.event==="start"&&this.UQ("cuepoint",{pubCue:I.identifier,segNum:F});this.publish("cuepointupdated",J,F);this.mE+=J.length;if(qb(this)&&this.PN.hJ())for(J=g.N(J),b=J.next();!b.done;b=J.next())b=b.value,this.UQ("cuepoint",{segNum:F,event:b.event, startSecs:b.startSecs,id:b.identifier.slice(-16)}),b.event==="start"&&(b=b.startSecs,this.BO.start=this.KW,this.BO.end=b+3)}}}; g.A.Sc=function(){this.iR()||(this.loading=!1,this.publish("dataloaded"))}; g.A.So=function(){return this.IX!==void 0?this.IX:this.IX=!!this.Ke||!!this.C&&vd(this.C)}; g.A.b_=function(F){var J=this;if(this.iR())return Tk();this.g9=this.bR=this.T=null;Mb(this,"html5_high_res_logging_always")&&(this.PN.zU=!0);return CMk(this,F).then(void 0,function(){return XF3(J,F)}).then(void 0,function(){return Qk_(J)}).then(void 0,function(){return DEk(J)})}; g.A.Si=function(){if(this.cotn)return null;var F=g.dX(this.PN)||this.S("web_l3_storyboard");if(!this.Uk)if(this.playerResponse&&this.playerResponse.storyboards){var J=this.playerResponse.storyboards,b=J.playerStoryboardSpecRenderer;b&&b.spec?this.Uk=new Y$(b.spec,this.lengthSeconds,void 0,!1,F):(J=J.playerLiveStoryboardSpecRenderer)&&J.spec&&this.C&&(b=opz(this.C.C).index)&&(this.Uk=new CC(J.spec,this.C.isLive,b,F))}else this.GW?this.Uk=new Y$(this.GW,this.lengthSeconds,void 0,!1,F):this.QF&&this.C&& (J=opz(this.C.C).index)&&(this.Uk=new CC(this.QF,this.C.isLive,J,F));return this.Uk}; g.A.getStoryboardFormat=function(){if(this.cotn)return null;if(this.playerResponse&&this.playerResponse.storyboards){var F=this.playerResponse.storyboards;return(F=F.playerStoryboardSpecRenderer||F.playerLiveStoryboardSpecRenderer)&&F.spec||null}return this.GW||this.QF}; g.A.lC=function(){return this.C&&!isNaN(this.C.lC())?this.C.lC():qb(this)?0:this.lengthSeconds}; g.A.Ho=function(){return this.C&&!isNaN(this.C.Ho())?this.C.Ho():0}; g.A.getPlaylistSequenceForTime=function(F){if(this.C&&this.U){var J=this.C.C[this.U.id];if(!J)return null;var b=J.index.Ea(F);J=J.index.getStartTime(b);return{sequence:b,elapsed:Math.floor((F-J)*1E3)}}return null}; g.A.o8=function(){return!this.iR()&&!(!this.videoId&&!this.qh)}; g.A.wk=function(){var F,J,b;return!!this.adaptiveFormats||!!((F=this.playerResponse)==null?0:(J=F.streamingData)==null?0:(b=J.adaptiveFormats)==null?0:b.length)}; g.A.isLoaded=function(){return DR(this)&&!this.MJ&&!this.b1}; g.A.lr=function(F){F||(F="hqdefault.jpg");var J=this.N[F];return J||this.PN.eE||F==="pop1.jpg"||F==="pop2.jpg"||F==="sddefault.jpg"||F==="hq720.jpg"||F==="maxresdefault.jpg"?J:D7(this.PN,this.videoId,F)}; g.A.MW=function(){return this.isLivePlayback||this.SF||this.fW||!(!this.liveUtcStartSeconds||!this.ZY)}; g.A.isOtf=function(){return!!this.C&&(this.C.isOtf||!this.SF&&!this.isLivePlayback&&this.C.U)}; g.A.getAvailableAudioTracks=function(){return this.T?this.T.getAvailableAudioTracks().length>0?this.T.getAvailableAudioTracks():this.dk||[]:[]}; g.A.getAudioTrack=function(){var F=this;if(this.Z&&!t1(this.Z))return g.xL(this.getAvailableAudioTracks(),function(I){return I.id===F.Z.id})||this.eB; if(this.dk){if(!this.eD)for(var J=g.N(this.dk),b=J.next();!b.done;b=J.next())if(b=b.value,b.j3.getIsDefault()){this.eD=b;break}return this.eD||this.eB}return this.eB}; g.A.getPlayerResponse=function(){return this.playerResponse}; g.A.getWatchNextResponse=function(){return this.dD}; g.A.getHeartbeatResponse=function(){return this.nx}; g.A.t4=function(){return this.watchUrl?this.watchUrl:this.PN.getVideoUrl(this.videoId)}; g.A.rH=function(){return!!this.C&&(Tua(this.C)||rGC(this.C)||Soo(this.C))}; g.A.getEmbeddedPlayerResponse=function(){return this.yN}; g.A.yM=function(){return(this.eventLabel||this.PN.WN)==="shortspage"}; g.A.isAd=function(){return this.aB||!!this.adFormat}; g.A.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.A.vV=function(){var F,J,b;return this.isDaiEnabled()&&!!((F=this.playerResponse)==null?0:(J=F.playerConfig)==null?0:(b=J.daiConfig)==null?0:b.ssaEnabledPlayback)}; g.A.Ew=function(){return vf3(this)?this.sP:this.GH||this.Lv}; g.A.Gr=function(){return this.Tc||this.Lv}; g.A.Bj=function(){return Mb(this,"html5_samsung_vp9_live")}; g.A.UQ=function(F,J,b){this.publish("ctmp",F,J,b)}; g.A.fQ=function(F,J,b){this.publish("ctmpstr",F,J,b)}; g.A.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.A.getGetAdBreakContext=function(F,J){F=F===void 0?NaN:F;J=J===void 0?NaN:J;var b={isSabr:bE(this)},I,u=(I=this.getHeartbeatResponse())==null?void 0:I.adBreakHeartbeatParams;u&&(b.adBreakHeartbeatParams=u);if(this.S("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.C&&!isNaN(F)&&!isNaN(J)){J=F-J;for(var w in this.C.C)if(I=this.C.C[w],I.info.v1()||I.info.Cd())if(I=I.index,I.isLoaded()){w=I.Ea(J);I=I.Ze(w)+J-I.getStartTime(w);this.UQ("gabc",{t:F.toFixed(3),mt:J.toFixed(3),sg:w,igt:I.toFixed(3)}); b.livePlaybackPosition={utcTimeMillis:""+(I*1E3).toFixed(0)};break}}return b}; g.A.isEmbedsShortsMode=function(F,J){if(!g.dN(this.PN))return!1;var b;if(!this.S("embeds_enable_emc3ds_shorts")&&((b=this.PN.getWebPlayerContextConfig())==null?0:b.embedsEnableEmc3ds)||(this.PN.kQ||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||J)return!1;var I,u;return!!(((I=this.embeddedPlayerConfig)==null?0:(u=I.embeddedPlayerFlags)==null?0:u.isShortsExperienceEligible)&&F.width<=F.height)}; g.A.X_=function(){g.uA.prototype.X_.call(this);this.mY=null;delete this.XE;delete this.accountLinkingConfig;delete this.C;this.T=this.nx=this.playerResponse=this.dD=null;this.IP=this.adaptiveFormats="";delete this.botguardData;this.cN=this.suggestions=this.N6=null;this.sabrContextUpdates.clear()};var ycC={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},imY={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},gfa={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},eGk={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"},pN3={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},KzG={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"},m0v={0:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_UNSPECIFIED",1:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_30_SECONDS",2:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_FULL"};g.z(Ja,g.R);g.A=Ja.prototype;g.A.handleExternalCall=function(F,J,b){var I=this.state.V[F],u=this.state.Y[F],w=I;if(u)if(b&&tj(b,M2R))w=u;else if(!I)throw Error('API call from an untrusted origin: "'+b+'"');this.logApiCall(F,b);if(w){b=!1;I=g.N(J);for(u=I.next();!u.done;u=I.next())if(String(u.value).includes("javascript:")){b=!0;break}b&&g.rQ(Error('Dangerous call to "'+F+'" with ['+J+"]."));return w.apply(this,J)}throw Error('Unknown API method: "'+F+'".');}; g.A.logApiCall=function(F,J,b){var I=this.app.J();I.jn&&!this.state.N.has(F)&&(this.state.N.add(F),g.AY("webPlayerApiCalled",{callerUrl:I.loaderUrl,methodName:F,origin:J||void 0,playerStyle:I.playerStyle||void 0,embeddedPlayerMode:I.kQ,errorCode:b}))}; g.A.publish=function(F){var J=g.Ba.apply(1,arguments);this.state.T.publish.apply(this.state.T,[F].concat(g.W(J)));if(F==="videodatachange"||F==="resize"||F==="cardstatechange")this.state.U.publish.apply(this.state.U,[F].concat(g.W(J))),this.state.Z.publish.apply(this.state.Z,[F].concat(g.W(J)))}; g.A.jE=function(F){var J=g.Ba.apply(1,arguments);this.state.T.publish.apply(this.state.T,[F].concat(g.W(J)));this.state.U.publish.apply(this.state.U,[F].concat(g.W(J)))}; g.A.IC=function(F){var J=g.Ba.apply(1,arguments);this.state.T.publish.apply(this.state.T,[F].concat(g.W(J)));this.state.U.publish.apply(this.state.U,[F].concat(g.W(J)));this.state.Z.publish.apply(this.state.Z,[F].concat(g.W(J)))}; g.A.SZ=function(F){var J=g.Ba.apply(1,arguments);this.state.T.publish.apply(this.state.T,[F].concat(g.W(J)));this.state.U.publish.apply(this.state.U,[F].concat(g.W(J)));this.state.Z.publish.apply(this.state.Z,[F].concat(g.W(J)));this.state.D.publish.apply(this.state.D,[F].concat(g.W(J)))}; g.A.S=function(F){return this.app.J().S(F)}; g.A.X_=function(){if(this.state.element){var F=this.state.element,J;for(J in this.state.C)this.state.C.hasOwnProperty(J)&&(F[J]=null);this.state.element=null}g.R.prototype.X_.call(this)};g.z(MZ,g.EJ);MZ.prototype.publish=function(F){var J=g.Ba.apply(1,arguments);if(this.D.has(F))return this.D.get(F).push(J),!0;var b=!1;try{for(J=[J],this.D.set(F,J);J.length;)b=g.EJ.prototype.publish.call.apply(g.EJ.prototype.publish,[this,F].concat(g.W(J.shift())))}finally{this.D.delete(F)}return b};g.z(Aa,g.R);Aa.prototype.X_=function(){this.D.dispose();this.Z.dispose();this.U.dispose();this.T.dispose();this.N=this.C=this.Y=this.V=this.W=void 0};var Efm=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.z(vp,Ja);g.A=vp.prototype;g.A.getApiInterface=function(){return Array.from(this.state.W)}; g.A.q3=function(F,J){this.state.D.subscribe(F,J)}; g.A.ZdD=function(F,J){this.state.D.unsubscribe(F,J)}; g.A.getPlayerState=function(F){return z33(this.app,F)}; g.A.S5=function(){return z33(this.app)}; g.A.VTI=function(F,J,b){KE(this)&&(Qd(this.app,!0,1),kN(this.app,F,J,b,1))}; g.A.getCurrentTime=function(F,J,b){var I=this.getPlayerState(F);if(this.app.getAppState()===2&&I===5){var u;return((u=this.app.getVideoData())==null?void 0:u.startSeconds)||0}return this.S("web_player_max_seekable_on_ended")&&I===0?gha(this.app,F):F?this.app.getCurrentTime(F,J,b):this.app.getCurrentTime(F)}; g.A.Ws=function(){return this.app.getCurrentTime(1)}; g.A.fR=function(){var F=this.app.Ze(1);return isNaN(F)?this.getCurrentTime(1):F}; g.A.qA=function(){return this.app.getDuration(1)}; g.A.WM=function(F,J){F=g.AD(Math.floor(F),0,100);isFinite(F)&&rh(this.app,{volume:F,muted:this.isMuted()},J)}; g.A.bdG=function(F){this.WM(F,!1)}; g.A.Vs=function(F){rh(this.app,{muted:!0,volume:this.getVolume()},F)}; g.A.V3G=function(){this.Vs(!1)}; g.A.yZ=function(F){eV(this.app)&&!this.S("embeds_enable_emc3ds_muted_autoplay")||rh(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},F)}; g.A.Fr_=function(){eV(this.app)&&this.S("embeds_enable_emc3ds_muted_autoplay")||this.yZ(!1)}; g.A.getPlayerMode=function(){var F={};this.app.getVideoData().T0&&(F.pfp={enableIma:g.tw(this.app.getVideoData())&&this.app.Yl().allowImaMonetization,autoplay:RU(this.app.Yl()),mutedAutoplay:this.app.Yl().mutedAutoplay});return F}; g.A.kB=function(){var F=this.app.getPresentingPlayerType();if(F===2&&!this.app.Uo()){var J=XN(this.app.TF());if(!z_3(J)||NzY(J))return}F===3?dO(this.app.TF()).Lx("control_play"):this.app.J().S("html5_ssap_ignore_play_for_ad")&&g.oH(this.app.Yl())&&F===2||this.app.playVideo(F)}; g.A.hxQ=function(){Qd(this.app,!0,1);this.kB()}; g.A.pauseVideo=function(F){var J=this.app.getPresentingPlayerType();if(J!==2||this.app.Uo()||z_3(XN(this.app.TF())))J===3?dO(this.app.TF()).Lx("control_pause"):this.app.pauseVideo(J,F)}; g.A.Prz=function(){var F=this.app,J=!1;F.rD.T1&&(F.SE.publish("pageTransition"),J=!0);F.stopVideo(J)}; g.A.clearVideo=function(){}; g.A.getAvailablePlaybackRates=function(){var F=this.app.J();return F.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(F.Z?F.ancestorOrigins[0]:window.location.origin)||F.nL?CVk:F.supportsVarispeedExtendedFeatures?XWU:F.S("web_remix_allow_up_to_3x_playback_rate")&&g.sV(F)?Qym:Vq:[1]}; g.A.getPlaybackQuality=function(F){return(F=this.app.F4(F))?F.getPlaybackQuality():"unknown"}; g.A.ywG=function(){}; g.A.getAvailableQualityLevels=function(F){return(F=this.app.F4(F))?(F=g.EG(F.W0(),function(J){return J.quality}),F.length&&(F[0]==="auto"&&F.shift(),F=F.concat(["auto"])),F):[]}; g.A.Ps=function(){return this.getAvailableQualityLevels(1)}; g.A.xp=function(){return this.L2()}; g.A.FG=function(){return 1}; g.A.getVideoLoadedFraction=function(F){return this.app.getVideoLoadedFraction(F)}; g.A.L2=function(){return this.getVideoLoadedFraction()}; g.A.Ja=function(){return 0}; g.A.getSize=function(){var F=this.app.mG().getPlayerSize();return{width:F.width,height:F.height}}; g.A.setSize=function(){this.app.mG().resize()}; g.A.loadVideoById=function(F,J,b,I){if(!F)return!1;F=qZ(F,J,b);return this.app.loadVideoByPlayerVars(F,I)}; g.A.rJj=function(F,J,b){F=this.loadVideoById(F,J,b,1);Qd(this.app,F,1)}; g.A.cueVideoById=function(F,J,b,I){F=qZ(F,J,b);this.app.cueVideoByPlayerVars(F,I)}; g.A.eg=function(F,J,b){this.cueVideoById(F,J,b,1)}; g.A.loadVideoByUrl=function(F,J,b,I){F=d0_(F,J,b);return this.app.loadVideoByPlayerVars(F,I)}; g.A.UW_=function(F,J,b){F=this.loadVideoByUrl(F,J,b,1);Qd(this.app,F,1)}; g.A.cueVideoByUrl=function(F,J,b,I){F=d0_(F,J,b);this.app.cueVideoByPlayerVars(F,I)}; g.A.sS=function(F,J,b){this.cueVideoByUrl(F,J,b,1)}; g.A.pR=function(){var F=this.app.J();if(F.eE)return"";var J=this.app.Yl(),b=void 0;J.isLivePlayback||(b=Math.floor(this.app.getCurrentTime(1)));return F.getVideoUrl(J.videoId,this.getPlaylistId()||void 0,b)}; g.A.Ob=function(){return this.app.getDebugText()}; g.A.getVideoEmbedCode=function(){var F=this.app.J();if(F.eE)return"";var J=this.app.Yl();return F.getVideoEmbedCode(J.isPrivate?"":J.title,this.app.Yl().videoId,this.app.mG().getPlayerSize(),this.getPlaylistId()||void 0)}; g.A.A1=function(F,J,b){return GO_(this.app,F,J,b)}; g.A.removeCueRange=function(F){return Pl_(this.app,F)}; g.A.loadPlaylist=function(F,J,b,I){this.app.loadPlaylist(F,J,b,I)}; g.A.NDG=function(F,J,b,I){this.loadPlaylist(F,J,b,I);Qd(this.app,!0,1)}; g.A.cuePlaylist=function(F,J,b,I){this.app.cuePlaylist(F,J,b,I)}; g.A.nextVideo=function(F,J){this.app.nextVideo(F,J)}; g.A.h8_=function(){this.nextVideo();Qd(this.app,!0,1)}; g.A.previousVideo=function(F){this.app.previousVideo(F)}; g.A.Yzf=function(){this.previousVideo();Qd(this.app,!0,1)}; g.A.playVideoAt=function(F){this.app.playVideoAt(F)}; g.A.VZz=function(F){this.playVideoAt(F);Qd(this.app,!0,1)}; g.A.setShuffle=function(F){var J=this.app.getPlaylist();J&&J.setShuffle(F)}; g.A.setLoop=function(F){var J=this.app.getPlaylist();J&&(J.loop=F)}; g.A.VH=function(){var F=this.app.getPlaylist();if(!F)return null;for(var J=[],b=0;b=400)if(F=this.Yl(),this.G.J().S("client_respect_autoplay_switch_button_renderer"))F=!!F.autoplaySwitchButtonRenderer;else{var J,b,I,u;F=!!((J=F.getWatchNextResponse())==null?0:(b=J.contents)==null?0:(I=b.twoColumnWatchNextResults)==null?0:(u=I.autoplay)==null?0:u.autoplay)!==!1}if(F)this.C||(this.C=!0,this.wY(this.C),this.G.J().S("web_player_autonav_toggle_always_listen")||x0G(this), J=this.Yl(),this.Jy(J.autonavState),this.G.logVisibility(this.element,this.C));else if(this.C=!1,this.wY(this.C),!this.G.J().S("web_player_autonav_toggle_always_listen"))for(this.G.J().S("web_player_autonav_toggle_always_listen"),J=g.N(this.U),b=J.next();!b.done;b=J.next())this.iX(b.value)}; g.A.Jy=function(F){tyC(this)?this.isChecked=F!==1:((F=F!==1)||(g.Qe(),F=g.Nk("web_autonav_allow_off_by_default")&&!g.Rg(0,141)&&g.cT("AUTONAV_OFF_BY_DEFAULT")?!1:!g.Rg(0,140)),this.isChecked=F);nfk(this)}; g.A.onClick=function(){this.isChecked=!this.isChecked;this.G.LZ(this.isChecked?2:1);nfk(this);if(tyC(this)){var F=this.Yl().autoplaySwitchButtonRenderer;this.isChecked&&(F==null?0:F.onEnabledCommand)?this.G.jE("innertubeCommand",F.onEnabledCommand):!this.isChecked&&(F==null?0:F.onDisabledCommand)&&this.G.jE("innertubeCommand",F.onDisabledCommand)}this.G.logClick(this.element)}; g.A.getValue=function(){return this.isChecked}; g.A.Yl=function(){return this.G.getVideoData(1)};g.z(Zm7,oj);g.z(Zd,g.Rj);Zd.prototype.onClick=function(){this.enabled&&(Hp(this,!this.checked),this.publish("select",this.checked))}; Zd.prototype.getValue=function(){return this.checked}; Zd.prototype.setEnabled=function(F){(this.enabled=F)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var Lz4=["en-CA","en","es-MX","fr-CA"];g.z(we,Zd);we.prototype.VG=function(F){F?this.C||(this.Rf.V6(this),this.C=!0):this.C&&(this.Rf.Yj(this),this.C=!1);this.C&&Hp(this,mez())}; we.prototype.Z=function(){g.Mr(this.element,"ytp-menuitem-highlight-transition-enabled")}; we.prototype.T=function(F){var J=mez();F!==J&&(J=g.Qe(),kq(190,F),kq(192,!0),J.save(),this.G.jE("cinematicSettingsToggleChange",F))}; we.prototype.X_=function(){this.C&&this.Rf.Yj(this);Zd.prototype.X_.call(this)};g.z(MV,oj);MV.prototype.updateCinematicSettings=function(F){this.C=F;var J;(J=this.menuItem)==null||J.VG(F);this.api.publish("onCinematicSettingsVisibilityChange",F)};g.z(AH,oj);AH.prototype.wz=function(F,J){J=J.clipConfig;F==="dataloaded"&&J&&J.startTimeMs!=null&&J.endTimeMs!=null&&this.api.setLoopRange({startTimeMs:Math.floor(Number(J.startTimeMs)),endTimeMs:Math.floor(Number(J.endTimeMs)),postId:J.postId,type:"clips"})};g.z(qV,oj);qV.prototype.setCreatorEndscreenVisibility=function(F){var J;(J=k0(this.api.TF()))==null||J.wY(F)}; qV.prototype.C=function(F){function J(I){I==="creatorendscreen"&&(I=k0(b.api.TF()))&&I.o7_(b.hideButton)} var b=this;this.hideButton=F;this.events.B(this.api,"modulecreated",J);J("creatorendscreen")};g.z(vl,Zd);vl.prototype.T=function(F){this.Z(F?1:0)}; vl.prototype.U=function(){var F=this.hasDrcAudioTrack(),J=this.C()===1&&F;Hp(this,J);this.setEnabled(F)}; vl.prototype.X_=function(){this.Rf.Yj(this);Zd.prototype.X_.call(this)};g.z(aa,oj);aa.prototype.getDrcUserPreference=function(){return this.C}; aa.prototype.setDrcUserPreference=function(F){g.rm("yt-player-drc-pref",F,31536E3);F!==this.C&&(this.C=F,this.updateEnvironmentData(),this.U()&&this.api.d_())}; aa.prototype.updateEnvironmentData=function(){this.api.J().xH=this.C===1}; aa.prototype.U=function(){var F,J,b=(F=this.api.getVideoData())==null?void 0:(J=F.T)==null?void 0:J.C;if(!b)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.S("mta_drc_mutual_exclusion_removal")){var I=this.api.getAudioTrack().j3.id;return Bc(b,function(u){var w;return u.audio.C&&((w=u.j3)==null?void 0:w.id)===I})}return Bc(b,function(u){var w; return((w=u.audio)==null?void 0:w.C)===!0})};g.z(ed,oj);ed.prototype.onVideoDataChange=function(){var F=this,J=this.api.getVideoData();this.api.Yo("embargo",1);var b=J==null?void 0:J.J5.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(b==null?0:b.length)?Io_(this,b.filter(function(I){return bao(F,I)})):(J==null?0:J.cueRanges)&&Io_(this,J.cueRanges.filter(function(I){return bao(F,I)}))}; ed.prototype.U=function(F){return F.embargo!==void 0}; ed.prototype.X_=function(){oj.prototype.X_.call(this);this.C={}};g.z(Kc,oj); Kc.prototype.addEmbedsConversionTrackingParams=function(F){var J=this.api.J(),b=J.widgetReferrer,I=J.oI,u=this.C,w="",M=J.getWebPlayerContextConfig();M&&(w=M.embedsIframeOriginParam||"");b.length>0&&(F.embeds_widget_referrer=b);I.length>0&&(F.embeds_referring_euri=I);J.Z&&w.length>0&&(F.embeds_referring_origin=w);M&&M.embedsFeature&&(F.feature=M.embedsFeature);u.length>0&&(J.S("embeds_web_enable_lite_experiment_control_arm_logging")?u.unshift(28572):g.q1(g.S8(J))&&u.unshift(159628),J=u.join(","),J= g.O6()?J:g.NL(J,4),F.source_ve_path=J);this.C.length=0};g.z(uaz,oj);g.z(wXv,oj);g.z(pc,g.R);pc.prototype.X_=function(){g.R.prototype.X_.call(this);this.C=null;this.U&&this.U.disconnect()};g.z(A8z,oj);g.z(ge,g.U);ge.prototype.show=function(){g.U.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; ge.prototype.onVideoDataChange=function(F){var J,b,I=(J=this.api.getVideoData())==null?void 0:(b=J.getPlayerResponse())==null?void 0:b.playabilityStatus;I&&(J=qrm(I),g.x(this.api.getPlayerStateObject(),128)||F==="dataloaderror"||!J?(this.U=0,mg(this),this.hide()):(F=(J.remainingTimeSecs||0)*1E3,F>0&&(this.show(),this.updateValue("label",Ka(J.label)),aoz(this,F))))}; ge.prototype.X_=function(){mg(this);g.U.prototype.X_.call(this)};g.z(e2k,oj);g.z(y5,g.U);y5.prototype.onClick=function(){this.SE.logClick(this.element);this.SE.jE("onFullerscreenEduClicked")}; y5.prototype.VG=function(){this.SE.isFullscreen()?this.U?this.C.hide():this.C.show():this.hide();this.SE.logVisibility(this.element,this.SE.isFullscreen()&&!this.U)};g.z(iX,oj);iX.prototype.updateFullerscreenEduButtonSubtleModeState=function(F){var J;(J=this.C)!=null&&(g.qr(J.element,"ytp-fullerscreen-edu-button-subtle",F),F&&!J.T&&(J.element.setAttribute("title","Role para ver detalhes"),zP(J.SE,J.element,J),J.T=!0))}; iX.prototype.updateFullerscreenEduButtonVisibility=function(F){var J;(J=this.C)!=null&&(J.U=F,J.VG())};g.z(KBv,g.U);g.z(m7G,oj);g.z(z9,oj);z9.prototype.getSphericalProperties=function(){var F=g.GP(this.api.TF());return F?F.getSphericalProperties():{}}; z9.prototype.setSphericalProperties=function(F){if(F){var J=g.GP(this.api.TF());J&&J.setSphericalProperties(F,!0)}};g.z(NV,oj);g.A=NV.prototype;g.A.createClientVe=function(F,J,b,I){this.api.createClientVe(F,J,b,I===void 0?!1:I)}; g.A.createServerVe=function(F,J,b){this.api.createServerVe(F,J,b===void 0?!1:b)}; g.A.setTrackingParams=function(F,J){this.api.setTrackingParams(F,J)}; g.A.logClick=function(F,J){this.api.logClick(F,J)}; g.A.logVisibility=function(F,J,b){this.api.logVisibility(F,J,b)}; g.A.hasVe=function(F){return this.api.hasVe(F)}; g.A.destroyVe=function(F){this.api.destroyVe(F)};var iaY=!1;fc.prototype.setPlaybackRate=function(F){this.playbackRate=Math.max(1,F)}; fc.prototype.getPlaybackRate=function(){return this.playbackRate};G9.prototype.K5=function(F){var J=g.H4(F.info.C.info,this.lR.MW),b=F.info.Mf+this.Z,I=F.info.startTime*1E3;if(this.policy.Jz)try{I=this.policy.Jz?g.no(F)*1E3:F.info.startTime*1E3}catch(M){Math.random()>.99&&this.logger&&(I=lH(F.C).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:F.info.uX(),encodedDataView:g.zw(I,4)})),I=F.info.startTime*1E3}var u=F.info.clipId,w=this.policy.Jz?g.mtk(F)*1E3:F.info.duration*1E3;this.policy.Jz&&(I<0||w<0)&&(this.logger&&(this.logger({missingSegInfo:F.info.uX(), startTimeMs:I,durationMs:w}),this.policy.OM||(I<0&&(I=F.info.startTime*1E3),w<0&&(w=F.info.duration*1E3))),this.policy.OM&&(I<0&&(I=F.info.startTime*1E3),w<0&&(w=F.info.duration*1E3)));return{formatId:J,Mf:b,startTimeMs:I,clipId:u,Mr:w}}; G9.prototype.sM=function(F){this.timestampOffset=F};Bl.prototype.seek=function(F,J){F!==this.C&&(this.seekCount=0);this.C=F;var b=this.videoTrack.U,I=this.audioTrack.U,u=this.audioTrack.dw,w=$74(this,this.videoTrack,F,this.videoTrack.dw,J);J=$74(this,this.audioTrack,this.policy.xo?F:w,u,J);F=Math.max(F,w,J);this.D=!0;this.lR.isManifestless&&(TBk(this,this.videoTrack,b),TBk(this,this.audioTrack,I));return F}; Bl.prototype.isSeeking=function(){return this.D}; Bl.prototype.AV=function(F){this.T=F}; var YrY=2/24;var Qxv=0;g.A=Dm.prototype;g.A.mx=function(){this.Tj=this.now();Cpv(this.Zy,this.Tj);this.e3.mx()}; g.A.Hl=function(F,J){var b=this.policy.U?(0,g.jR)():0;k7(this,F,J);F-this.W<10&&this.U>0||this.ju(F,J);this.e3.Hl(F,J);this.policy.U&&(F=(0,g.jR)()-b,this.Om+=F,this.bR=Math.max(F,this.bR))}; g.A.ju=function(F,J){var b=(F-this.W)/1E3,I=J-this.T;this.vu||(m$(this.Zy,b,I),this.r_(b,I));this.W=F;this.T=J}; g.A.A6=function(){this.WN&&R2m(this);this.e3.A6()}; g.A.Q$=function(F){this.WN||(this.WN=this.D-this.Kk+F,this.If=this.D,this.T1=this.V)}; g.A.Is=function(F,J){F=F===void 0?this.V:F;J=J===void 0?this.D:J;this.U>0||(this.N=F,this.U=J,this.eE=this.isActive=!0)}; g.A.Ih=function(){return this.x7||2}; g.A.QL=function(){}; g.A.BQ=function(){var F,J={rn:this.requestNumber,rt:(this.V-this.C).toFixed(),lb:this.D,stall:(1E3*this.Z).toFixed(),ht:(this.Tj-this.C).toFixed(),elt:(this.N-this.C).toFixed(),elb:this.U,d:(F=this.fW)==null?void 0:F.G7()};this.url&&y8m(J,this.url);this.policy.U&&(J.mph=this.bR.toFixed(),J.tph=this.Om.toFixed());J.ulb=this.kQ;J.ult=this.Y;J.abw=this.dD;return J}; g.A.now=function(){return(0,g.jR)()}; g.A.deactivate=function(){this.isActive&&(this.isActive=!1)};g.z(oa,Dm);g.A=oa.prototype;g.A.BQ=function(){var F=Dm.prototype.BQ.call(this);F.pb=this.XL;F.pt=(1E3*this.cN).toFixed();F.se=this.NW;return F}; g.A.AO=function(){var F=this.e3;this.oI||(this.oI=F.AO?F.AO():1);return this.oI}; g.A.sF=function(){return this.jB?this.AO()!==1:!1}; g.A.b5=function(F,J,b){if(!this.xm){this.xm=!0;if(!this.vu){k7(this,F,J);this.ju(F,J);var I=this.AO();this.NW=b;if(!this.policy.D||!this.vu)if(I===2&&this.policy.D){I=F-this.N0)||hH(this,I,J),this.U>0&&pH(this.Zy,J,this.Z));F=(F-this.C)/1E3||.01;this.policy.Tj&&!(this.U>0)||KH(this.Zy,F,this.T,kRo(this),this.Kj)}this.deactivate()}}; g.A.j$=function(F,J,b){b&&(this.oI=2);F<0&&this.x7&&(F=this.x7);J?this.Jz+=F:this.qf+=F}; g.A.Ih=function(){return this.qf||this.Jz||Dm.prototype.Ih.call(this)}; g.A.ju=function(F,J){var b=(F-this.W)/1E3,I=J-this.T,u=this.AO();this.isActive?u===1&&((I>0||this.policy.W)&&(b>.2||I<1024)?(this.Z+=b,I>0&&b>.2&&hH(this,this.nD?b:.05,I),this.Um=!0):I>0&&(hH(this,b,I),this.Um=!0)):J&&J>=this.policy.C&&this.Is(F,J);Dm.prototype.ju.call(this,F,J)}; g.A.oo=function(F){if(!this.vu){k7(this,F,this.D);var J=(F-this.C)/1E3;this.AO()!==2&&this.U>0&&(this.Z+=(F-this.W)/1E3,pH(this.Zy,this.T,this.Z));KH(this.Zy,J,this.T,kRo(this),this.Kj,!0);F=(F-this.W)/1E3;m$(this.Zy,F,0);this.r_(F,0)}}; g.A.Is=function(F,J){F=F===void 0?this.V:F;J=J===void 0?this.D:J;if(!(this.U>0)&&(Dm.prototype.Is.call(this,F,J),this.AO()===1)){J=(this.Tj-this.C)/1E3;var b=(F-this.Tj)/1E3;this.jB&&cl(this,this.now());this.Q2||this.vu||(this.x7&&(b=Math.max(0,b-this.x7)),F=this.Zy,F.Y.Zj(1,J),F.WN.Zj(1,b))}}; g.A.Y5=function(){this.jB&&cl(this,this.now());return this.KW}; g.A.qO=function(){var F;if(F=this.T>this.TO)F=(F=this.T)?F>=this.policy.C:!1;return F}; g.A.Z0=function(){return this.nW}; g.A.Kq=function(F){F=F===void 0?this.now():F;if(this.jB){cl(this,F);if(this.oI?this.sF():this.Gj!==this.zj){var J=this.zj;if(F0?b+F:b+Math.max(F,J)}; g.A.jq=function(){return this.now()-this.N}; g.A.TR=function(){return(this.T-this.U)*1E3/this.jq()||0}; g.A.jO=function(){return this.N};Ue.prototype.feed=function(F){yK(this.C,F);this.Va()}; Ue.prototype.Va=function(){if(this.Z){if(!this.C.getLength())return;var F=this.C.split(this.T-this.U),J=F.lf;F=F.eS;if(!this.e3.Q$(this.Z,J,this.U,this.T))return;this.U+=J.getLength();this.C=F;this.U===this.T&&(this.Z=this.T=this.U=void 0)}for(;;){var b=0;F=g.N(c8o(this.C,b));J=F.next().value;b=F.next().value;b=g.N(c8o(this.C,b));F=b.next().value;b=b.next().value;if(J<0||F<0)break;if(!this.C.UL(b,F)){if(!this.e3.Q$||!this.C.UL(b,1))break;b=this.C.split(b).eS;this.e3.Q$(J,b,0,F)&&(this.Z=J,this.U= b.getLength(),this.T=F,this.C=new m_([]));break}F=this.C.split(b).eS.split(F);b=F.eS;this.e3.zk(J,F.lf);this.C=b}}; Ue.prototype.dispose=function(){this.C=new m_};g.A=x7.prototype;g.A.BL=function(){return 0}; g.A.cY=function(){return null}; g.A.Vm=function(){return null}; g.A.Ax=function(){return this.state>=1}; g.A.isComplete=function(){return this.state>=3}; g.A.J4=function(){return this.state===5}; g.A.onStateChange=function(){}; g.A.aC=function(F){var J=this.state;this.state=F;this.onStateChange(J);this.callback&&this.callback(this,J)}; g.A.EX=function(F){F&&this.state=this.xhr.HEADERS_RECEIVED}; g.A.getResponseHeader=function(F){try{return this.xhr.getResponseHeader(F)}catch(J){return""}}; g.A.f5=function(){return+this.getResponseHeader("content-length")}; g.A.HF=function(){return this.U}; g.A.q5=function(){return this.status>=200&&this.status<300&&!!this.U}; g.A.vx=function(){return this.C.getLength()>0}; g.A.YU=function(){var F=this.C;this.C=new m_;return F}; g.A.fZ=function(){return this.C}; g.A.abort=function(){this.iR=!0;this.xhr.abort()}; g.A.kx=function(){return!0}; g.A.vG=function(){return this.T}; g.A.Aw=function(){return""};g.A=tvJ.prototype;g.A.getResponseHeader=function(F){return F==="content-type"?this.C.get("type"):""}; g.A.abort=function(){}; g.A.X0=function(){return!0}; g.A.f5=function(){return this.range.length}; g.A.HF=function(){return this.loaded}; g.A.q5=function(){return!!this.loaded}; g.A.vx=function(){return!!this.U.getLength()}; g.A.YU=function(){var F=this.U;this.U=new m_;return F}; g.A.fZ=function(){return this.U}; g.A.kx=function(){return!0}; g.A.vG=function(){return!!this.error}; g.A.Aw=function(){return this.error};g.A=Hak.prototype;g.A.start=function(F){var J={credentials:"include",cache:"no-store"};Object.assign(J,this.V);this.Z&&(J.signal=this.Z.signal);F=new Request(F,J);fetch(F).then(this.N,this.onError).then(void 0,MP)}; g.A.onDone=function(){this.iR()||this.e3.A6()}; g.A.getResponseHeader=function(F){return this.responseHeaders?this.responseHeaders.get(F):null}; g.A.X0=function(){return!!this.responseHeaders}; g.A.HF=function(){return this.U}; g.A.f5=function(){return+this.getResponseHeader("content-length")}; g.A.q5=function(){return this.status>=200&&this.status<300&&!!this.U}; g.A.vx=function(){return!!this.C.getLength()}; g.A.YU=function(){this.vx();var F=this.C;this.C=new m_;return F}; g.A.fZ=function(){this.vx();return this.C}; g.A.iR=function(){return this.D}; g.A.abort=function(){this.T&&this.T.cancel().catch(function(){}); this.Z&&this.Z.abort();this.D=!0}; g.A.kx=function(){return!0}; g.A.vG=function(){return this.W}; g.A.Aw=function(){return this.errorMessage};g.A=LBz.prototype;g.A.onDone=function(){if(!this.iR){this.status=this.xhr.status;try{this.response=this.xhr.response,this.U=this.response.byteLength}catch(F){}this.C=!0;this.e3.A6()}}; g.A.H_=function(){this.xhr.readyState===2&&this.e3.mx()}; g.A.aP=function(F){this.iR||(this.status=this.xhr.status,this.C||(this.U=F.loaded),this.e3.Hl((0,g.jR)(),F.loaded))}; g.A.X0=function(){return this.xhr.readyState>=2}; g.A.getResponseHeader=function(F){try{return this.xhr.getResponseHeader(F)}catch(J){return g.rQ(Error("Could not read XHR header "+F)),""}}; g.A.f5=function(){return+this.getResponseHeader("content-length")}; g.A.HF=function(){return this.U}; g.A.q5=function(){return this.status>=200&&this.status<300&&this.C&&!!this.U}; g.A.vx=function(){return this.C&&!!this.response&&!!this.response.byteLength}; g.A.YU=function(){this.vx();var F=this.response;this.response=void 0;return new m_([new Uint8Array(F)])}; g.A.fZ=function(){this.vx();return new m_([new Uint8Array(this.response)])}; g.A.abort=function(){this.iR=!0;this.xhr.abort()}; g.A.kx=function(){return!1}; g.A.vG=function(){return!1}; g.A.Aw=function(){return""};g.Hl.prototype.info=function(){}; g.Hl.prototype.debug=function(){}; g.Hl.prototype.C=bk(46);var IT3=new Map,Mam=new Map,uh7=new function(){var F=this;this.C=new Map;this.Po={rgE:function(){return F.C}}};g.z(Fx,g.R);Fx.prototype.UY=function(){if(!this.yk.length)return[];var F=this.yk;this.yk=[];this.T=g.ck(F).info;return F}; Fx.prototype.WJ=function(){return this.yk}; Fx.prototype.X_=function(){g.R.prototype.X_.call(this);this.C=null;this.yk.length=0;this.aI.length=0;this.T=null};g.z(bh,g.R);g.A=bh.prototype; g.A.PaR=function(){if(!this.iR()){var F=(0,g.jR)(),J=!1;if(this.policy.Px){F=F-(this.timing.U>0?this.timing.N:this.timing.C)-this.timing.Ih()*1E3;var b=po(Ih(this),!1);F>=2E3*b?J=!0:F>=this.policy.sW*b&&(this.C=this.policy.PS)}else if(this.timing.U>0){if(this.D){this.policy.MI&&(this.C=0);return}var I=this.timing.Z0();this.timing.Kq();var u=this.timing.Z0();u-I>=this.policy.xH*.8?(this.C++,this.logger.debug(function(){return"Mispredicted by "+(u-I).toFixed(0)}),J=this.C>=5):this.C=0}else{var w=F- this.timing.Y5(); this.policy.PS&&w>0&&(this.C+=1);J=po(Ih(this),!1)*this.policy.SY;(J=w>J*1E3)&&this.logger.debug(function(){return"Elbow late by "+w.toFixed(3)})}this.C>0&&this.e3.QU(); J?this.DD(!1):this.U.start()}}; g.A.DD=function(F){this.Z=!0;F&&!this.policy.Vj&&(F=Ih(this),F.U+=1);this.e3.h2();this.lastError="net.timeout";wg(this)}; g.A.canRetry=function(F){var J=Ih(this);F=F?this.policy.Xz:this.policy.rZ;return J.timedOut0&&(J=J.C.getUint8(0),F.ubyte=J,b===1&&J===0&&(F.b248180278=!0))}this.Jw&&(F.rc=this.policy.gT?this.Jw:this.Jw.toString());this.policy.Ly&&this.jH&&(F.tr=this.jH);F.itag=this.info.aI[0].C.info.itag;F.ml=""+ +this.info.aI[0].C.VJ();F.sq=""+this.info.aI[0].Mf;this.iC&&(F.ifi=""+ +l9(this.info.gw.T));this.Jw!==410&&this.Jw!==500&&this.Jw!==503||(F.fmt_unav="true");var I;(b=this.errorMessage||((I=this.xhr)==null? void 0:I.Aw()))&&(F.msg=b);this.d5&&(F.smb="1");this.info.isDecorated()&&(F.sdai="1");return F}; g.A.Er=function(){return Oa3(this.timing)}; g.A.Aw=function(){return this.xhr.Aw()||""}; g.A.qO=function(){return this.isComplete()||this.timing.qO()}; g.A.Hl=function(){!this.iR()&&this.xhr&&(this.Jw=this.xhr.status,this.policy.BE&&this.Mk&&this.FC(!1),this.Im()?this.EX(2):!this.iQ&&this.qO()&&(this.EX(),this.iQ=!0))}; g.A.mx=function(){if(!this.iR()&&this.xhr){if(!this.a4&&this.xhr.X0()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var F=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.a4=((0,g.jR)()-F)/1E3}this.xhr.X0()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.IF&&!VBz()&&g.rm("yt-player-headers-readable",!0,2592E3);F=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var J=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),b;(b=this.Vt)==null||b.stop();this.H0=F||this.H0; this.Jd=J||this.Jd}}; g.A.A6=function(){var F=this.xhr;if(!this.iR()&&F){this.Jw=F.status;F=this.hv(F);if(this.policy.Ly){var J;(J=this.Vt)==null||J.stop()}F===5?wg(this.lX):this.aC(F);this.lX.U.stop()}}; g.A.hv=function(F){var J=this;Qt_(this);if(M$(this.lX,this.xhr.status,this.Bn?this.timing.eE||this.JR:this.xhr.q5(),!1,this.MO))return 5;var b="";A9(this.lX,this.xhr)&&(b=KpJ(this.lX,this.xhr));if(b)return Ko(Ih(this.lX)),this.info.Vz(this.iC,b),3;b=F.HF();if(this.XC){this.FC(!0);Qt_(this);if(M$(this.lX,this.xhr.status,this.timing.eE||this.JR,!1,this.MO))return 5;if(!this.XK){if(this.JR)return Ko(Ih(this.lX)),3;this.lX.lastError="net.closed";return 5}}else{if(M$(this.lX,this.xhr.status,this.xhr.q5(), !1,this.MO))return 5;var I=this.info.T;if(I&&I!==b||F.vG())return this.lX.lastError="net.closed",5;this.FC(!0)}I=U7o(this)?F.getResponseHeader("X-Bandwidth-Est"):0;if(F=U7o(this)?F.getResponseHeader("X-Bandwidth-Est3"):0)this.wN=!0,this.policy.fV&&(I=F);aTC(this.lX,b,I?Number(I):0,this.info.aI[0].type===5);this.logger.debug(function(){var u=J.timing;return"Succeeded, rtpd="+(u.cN*1E3+u.C-Date.now()).toFixed(0)}); return 4}; g.A.canRetry=function(){this.iR();var F=this.info.isDecorated();return this.lX.canRetry(F)}; g.A.onStateChange=function(){this.isComplete()&&(this.policy.SD?this.h2():this.timing.deactivate())}; g.A.DD=function(F){this.lX.DD(F)}; g.A.QU=function(){this.callback&&this.callback(this,this.state)}; g.A.r$=function(){return this.lX.r$()}; g.A.dispose=function(){x7.prototype.dispose.call(this);this.lX.dispose();var F;(F=this.Vt)==null||F.dispose();this.policy.SD||this.h2()}; g.A.h2=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.A.UY=function(){if(!this.WJ().length)return[];this.Kb=!0;return this.Mk.UY()}; g.A.Im=function(){if(this.state<1)return!1;if(this.Mk&&this.Mk.yk.length)return!0;var F;return((F=this.xhr)==null?0:F.vx())?!0:!1}; g.A.WJ=function(){this.FC(!1);return this.Mk?this.Mk.WJ():[]}; g.A.FC=function(F){try{if(F||this.xhr.X0()&&this.xhr.vx()&&!A9(this.lX,this.xhr)&&!this.v_)this.Mk||(this.Mk=new Fx(this.policy,this.info.aI)),this.xhr.vx()&&(this.XC?this.XC.feed(this.xhr.YU()):J9(this.Mk,this.xhr.YU(),F&&!this.xhr.vx()))}catch(J){this.XC?$va(this,J):g.rQ(J)}}; g.A.zk=function(F,J){switch(F){case 21:F=J.split(1).eS;C9k(this,F);break;case 22:this.XK=!0;J9(this.Mk,new m_([]),!0);break;case 43:if(F=$F(new PA(J),1))this.info.Vz(this.iC,F),this.JR=!0;break;case 45:J=na(new PA(J));F=J.Lq;J=J.Ns;F&&J&&(this.Ip=F/J);break;case 44:this.Tp=Gsz(new PA(J));var b,I,u;!this.timing.eE&&((b=this.Tp)==null?void 0:b.action)===4&&((I=this.Tp)==null?0:(u=I.nE)==null?0:u.Bn)&&(this.Bn=this.Tp.nE.Bn);break;case 53:this.policy.Ly&&(F=dCG(new PA(J)).aV)&&(this.Vt||(this.aV=F,this.Vt= new g.ty(this.Bf,F,this)),this.Vt.start());break;case 60:this.Tk=xT(new PA(J));break;case 58:if(F=Jsz(new PA(J)))this.WQ=F,F.WQ===3&&(this.MO=!0)}}; g.A.Q$=function(F,J,b,I){b||this.timing.Q$(I);if(F!==21)return!1;if(F=this.policy.BE)if(I=J.getLength()+b===I,F*=this.info.aI[0].C.info.LW,!I&&J.getLength()0)return!1;if(!this.xhr.X0())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.XC)var F=!this.info.T;else this.xhr.f5()?F=!1:(F=this.xhr.getResponseHeader("content-type"),F=F==="audio/mp4"||F==="video/mp4"||F==="video/webm");if(!F)return!1;if(isNaN(this.info.Qi)){F=this.xhr.getResponseHeader("x-head-seqnum");var J=this.timing.policy.N?1:0;if(!F)this.logger.debug("No x-head-seqnum, cannot tell if head segment."); else if(Number(F)>this.info.aI[0].Mf+J)return!1}return!0}; g.A.PZ=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.A.cY=function(){this.xhr&&(this.H0=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.H0}; g.A.Vm=function(){this.xhr&&(this.Jd=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.Jd}; g.A.rB=function(){return this.lX.rB()}; g.A.Bf=function(){if(!this.iR()&&this.xhr){this.jH="heartbeat";var F=this.lX;F.C+=2;this.QU()}};g.z(mw,Dm);g.A=mw.prototype;g.A.ju=function(F,J){var b=(F-this.W)/1E3,I=J-this.T;this.U>0?I>0&&(this.Gj&&(b>.2||I<1024?(this.Z+=b,b>.2&&Rd_(this,.05,I)):Rd_(this,b,I)),this.qf&&(this.zj+=I,this.KW+=b)):J>this.policy.C&&this.Is(F,J);Dm.prototype.ju.call(this,F,J)}; g.A.b5=function(F,J){k7(this,F,J);this.ju(F,J);this.Gj&&(J=this.T*this.snapshot.stall+this.T/this.snapshot.byterate,this.U>0&&pH(this.Zy,this.zj,this.Z),F=(F-this.C)/1E3||.01,this.policy.Tj&&!(this.U>0)||KH(this.Zy,F,this.T,J,!1))}; g.A.oo=function(F){k7(this,F,this.D);var J=(F-this.W)/1E3;m$(this.Zy,J,0);this.r_(J,0);!this.Gj&&this.U>0||(J=this.T*this.snapshot.stall+this.T/this.snapshot.byterate,this.U>0&&(this.Z+=(F-this.W)/1E3,pH(this.Zy,this.zj,this.Z)),KH(this.Zy,((F-this.C)/1E3||.01)*this.policy.kQ,this.T,J,!1,!0))}; g.A.GM=function(F){F=F.g4||2147483647;(F&2)!==2&&(this.qf=!1);(F&1)===1&&(this.Gj=!0)}; g.A.r3=function(F){F=F.g4||2147483647;(F&2)===2&&(this.qf=!1);(F&1)===1&&(this.Gj=!1)}; g.A.jO=function(){return this.N}; g.A.jq=function(){var F=this.qf?this.now()-this.W:0;return Math.max(this.KW*1E3+F,1)}; g.A.TR=function(){return this.zj*1E3/this.jq()}; g.A.Is=function(F,J){F=F===void 0?this.V:F;J=J===void 0?this.D:J;this.U>0||(Dm.prototype.Is.call(this,F,J),J=this.Zy,F=(F-this.Tj)/1E3,J.Y.Zj(1,(this.Tj-this.C)/1E3),J.WN.Zj(1,F))}; g.A.QL=function(F){this.Jz=F}; g.A.BQ=function(){var F=Dm.prototype.BQ.call(this);F.rbw=this.TR();F.rbe=+this.qf;F.gbe=+this.Gj;F.ackt=(this.Jz-this.C).toFixed();return F}; g.A.Kq=function(){}; g.A.Z0=function(){return NaN}; g.A.Y5=function(){return this.C+this.snapshot.delay*1E3};y8.prototype.zk=function(F,J){J.getLength();switch(F){case 20:F=new PA(J);F={V5:rE(F,1),videoId:$F(F,2),itag:rE(F,3),lmt:rE(F,4),xtags:$F(F,5),eK:rE(F,6),Uv:St(F,8),Ev:rE(F,9),lQ_:rE(F,10),startMs:rE(F,11),durationMs:rE(F,12),YI:rE(F,14),timeRange:CQ(F,15,QiC),C4:rE(F,16),JE:rE(F,17),clipId:$F(F,1E3)};this.zT(F);break;case 21:this.Vv(J,!1);break;case 22:this.L1(J);break;case 31:F=RW(J,mC4);this.Bc(F);break;case 52:F=RW(J,E5z);this.Vh(F);break;default:this.AT(F,J)}}; y8.prototype.zT=function(){}; y8.prototype.AT=function(){};g.z(ih,y8);g.A=ih.prototype; g.A.AT=function(F,J){J.getLength();switch(F){case 35:this.Np(J);break;case 44:this.ej(J);break;case 43:this.JT(J);break;case 53:this.Bv(J);break;case 55:F=new PA(J);(F={timeline:CQ(F,1,P6o),fV_:CQ(F,2,rsm)},F.timeline)&&F.timeline.y9&&this.e3.b3(F.timeline.y9,F.timeline.IVQ,F.fV_);break;case 56:this.Ue();break;case 57:this.eM(J);break;case 42:this.f9(J);break;case 45:this.IV(J);break;case 59:this.TM(J);break;case 51:this.Xu(J);break;case 49:this.GM(J);break;case 50:this.r3(J);break;case 47:this.Zn(J); break;case 58:this.n3(J);break;case 61:this.e3.uC.QL((0,g.jR)());break;case 66:this.S2(J);break;case 46:this.CU(J);break;case 67:this.onSnackbarMessage(J)}}; g.A.Xu=function(F){F=new PA(F);F={wnQ:QK(F,1,cX),CH_:QK(F,2,cX)};this.e3.Xu(F)}; g.A.TM=function(F){var J=new PA(F);F=XS(J,1);var b=XS(J,2);J=XS(J,3);this.e3.TM(F,b,J)}; g.A.IV=function(F){F=na(new PA(F));this.e3.IV(F)}; g.A.Zn=function(F){F=RW(F,zpJ);this.e3.Zn(F)}; g.A.f9=function(F){F=new PA(F);F={videoId:$F(F,1),formatId:CQ(F,2,cX),endTimeMs:rE(F,3),KwQ:rE(F,4),mimeType:$F(F,5),Ji:CQ(F,6,v54),indexRange:CQ(F,7,v54),Qw:CQ(F,8,aQo)};this.e3.f9(F)}; g.A.eM=function(F){F=rsm(new PA(F));this.e3.eM(F)}; g.A.Ue=function(){this.e3.Ue()}; g.A.Np=function(F){F=ysk(new PA(F));this.e3.Np(F)}; g.A.Bv=function(F){F=dCG(new PA(F));this.e3.Bv(F)}; g.A.ej=function(F){F=Gsz(new PA(F));this.e3.ej(F)}; g.A.JT=function(F){F={redirectUrl:$F(new PA(F),1)};this.e3.JT(F)}; g.A.Vv=function(F){var J=F.getUint8(0);if(F.getLength()!==1){F=F.split(1).eS;var b=this.U[J]||null;b&&Ed(this.e3.ZV,J,b,F)}}; g.A.L1=function(F){F=F.getUint8(0);var J=this.U[F]||null;J&&this.e3.L1(F,J)}; g.A.Vh=function(F){this.e3.Vh(F)}; g.A.zT=function(F){var J=F.V5,b=F.Uv,I=F.eK,u=F.JE,w=F.C4,M=F.Ev,q=F.startMs,v=F.durationMs,a=F.timeRange,e=F.YI,K=F.clipId,p=lU(F);F=fzb.has(Df[""+F.itag]);this.U[J]=p;this.e3.j$(p,F,{V5:J,Uv:!!b,eK:I!=null?I:-1,Ev:M!=null?M:-1,startMs:q!=null?q:-1,durationMs:v!=null?v:-1,YI:e,JE:u,C4:w,clipId:K,timeRange:a})}; g.A.GM=function(F){F={g4:rE(new PA(F),1)};this.e3.GM(F)}; g.A.r3=function(F){F={g4:rE(new PA(F),1)};this.e3.r3(F)}; g.A.Bc=function(F){this.e3.Bc(F)}; g.A.n3=function(F){F=Jsz(new PA(F));this.e3.n3(F)}; g.A.S2=function(F){F={ZC:CQ(new PA(F),1,fQ7)};this.e3.S2(F)}; g.A.onSnackbarMessage=function(F){F=rE(new PA(F),1);this.e3.onSnackbarMessage(F)}; g.A.CU=function(F){F={reloadPlaybackParams:CQ(new PA(F),1,F8z)};this.e3.CU(F)};g.z(zL,g.R);g.A=zL.prototype;g.A.nP=function(){return Array.from(this.Fq.keys())}; g.A.IE=function(F){F=this.Fq.get(F);var J=F.yk;F.o4+=J.getLength();F.yk=new m_;return J}; g.A.Ph=function(F){return this.Fq.get(F).Ph}; g.A.R7=function(F){return this.Fq.get(F).R7}; g.A.j$=function(F,J,b,I){this.Fq.get(F)||hda(this,F,J);J=this.Fq.get(F);if(this.lR){F=UvC(this,F,b);if(I)for(var u=g.N(F),w=u.next();!w.done;w=u.next()){w=w.value;var M=I;w.N=M;w.startTime+=M;w.hF+=M;w.H1+=M}cta(this,b.V5,J,F)}else b.Uv?J.o_=b.YI:J.oD.push(b),J.wm.push(b)}; g.A.Mp=function(F){var J;return((J=this.Fq.get(F))==null?void 0:J.aI)||[]}; g.A.EX=function(){for(var F=g.N(this.Fq.values()),J=F.next();!J.done;J=F.next())J=J.value,J.Ms&&(J.aP&&J.aP(),J.Ms=!1)}; g.A.L1=function(F,J){this.logger.debug(function(){return"[onMediaEnd] formatId: "+J}); var b=this.Fq.get(J);if(N$){if(b&&!b.Ph){if(b.Y_.get(F))b.Y_.get(F).AY=!0;else{var I;((I=this.Zg)==null?0:I.y6)&&b.Y_.set(F,{data:new m_,No:0,AY:!0})}b.R7=!0}}else b&&!b.R7&&(b.R7=!0)}; g.A.UY=function(F){if(N$){var J=this.Fq.get(F);if(J)for(var b=g.N(J.Y_),I=b.next();!I.done;I=b.next()){var u=g.N(I.value);I=u.next().value;u=u.next().value;var w=J.WP.get(I);if(V4(w[0])){if(!u.AY)continue;var M=w,q=u.data;q.getLength();w=0;var v=[];M=g.N(M);for(var a=M.next();!a.done;a=M.next()){a=a.value;var e=a.T,K=iH(q,w,e);w+=e;v.push(new UL(a,K))}J.yF.push.apply(J.yF,g.W(v))}else if(u.data.getLength()>0||!w[0].range&&u.AY)q=void 0,w=w[0],v=u.No,M=u.data,w.range||(q=u.AY),a=M.getLength(),q=new UL(nz_(w, w.U+v,a,q),M),u.No+=q.info.T,J.yF.push(q);J.Y_.get(I).data=new m_;u.AY&&J.Y_.delete(I)}F=this.Fq.get(F);if(!F)return[];J=F.yF;F.yF=[];b=g.N(J);for(I=b.next();!I.done;I=b.next())F.o4+=I.value.info.T;return J||[]}b=(J=this.Fq.get(F))==null?void 0:J.Mk;if(!b)return[];this.FC(F,b);return b.UY()}; g.A.Im=function(F){if(N$)return dg(this,F);var J,b,I;return!!((b=(J=this.Fq.get(F))==null?void 0:J.Mk)==null?0:(I=b.WJ())==null?0:I.length)||dg(this,F)}; g.A.FC=function(F,J){for(;dg(this,F);){var b=this.IE(F);var I=F;I=this.Fq.get(I).Ph&&!Ws(this,I);J9(J,b,I&&oZ7(this,F))}}; g.A.X_=function(){g.R.prototype.X_.call(this);for(var F=g.N(this.Fq.keys()),J=F.next();!J.done;J=F.next())lh(this,J.value);var b;if((b=this.Zg)==null?0:b.us)for(F=g.N(this.Fq.values()),J=F.next();!J.done;J=F.next())J=J.value,J.Y_.clear(),J.WP.clear(),J.yF.length=0,J.aI.length=0,J.wm.length=0,J.oD.length=0;this.Fq.clear()}; var N$=!1;g.z(jI,g.R);g.A=jI.prototype;g.A.Hl=function(){!this.iR()&&this.xhr&&(this.FC(!1),JX(this.e3,this))}; g.A.mx=function(){}; g.A.A6=function(){if(!this.iR()&&this.xhr){var F=this.hv();F===5?wg(this.lX):this.aC(F);this.lX.U.stop();var J;(J=this.BJ)==null||J.stop()}}; g.A.hv=function(){var F="";A9(this.lX,this.xhr)&&(F=KpJ(this.lX,this.xhr));if(F)return this.info.gw.Vz(this.iC,F),3;this.FC(!0);if(M$(this.lX,this.xhr.status,this.xhr.q5(),this.info.Gz(),this.MO))return 5;if(this.bY)return 3;aTC(this.lX,this.xhr.HF(),0,this.Gz());this.policy.Se&&dFz(this.e3);return 4}; g.A.FC=function(F){var J=this.xhr;if((F||!A9(this.lX,this.xhr))&&J.vx()){F=J.YU();var b=F.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+b}); this.XC.feed(F)}}; g.A.zk=function(F,J){this.xhr.kx()&&F===21&&Zk_(this);this.mV.zk(F,J)}; g.A.Q$=function(F,J,b,I){b||(this.uC.Q$(I),this.policy.JY&&F===21&&Zk_(this));if(F!==21)return!1;this.uC.eE=!0;F=J.getLength();b||(this.Ct=J.getUint8(0),J=J.split(1).eS);var u=this.policy.t5,w=this.mV.U[this.Ct],M=this.lR.T.get(w);if(u&&M&&(u*=M.info.LW,F+b!==I&&F0){this.policy.Px&&this.lX.U.stop();F=this.uC.jq();J=this.uC.TR();var b=HkG(this,F);if(!(J>b.E4||b.tq>0&&this.info.Yy()>b.tq)){this.xB=(0,g.jR)();var I;(I=this.BJ)==null||I.stop();this.policy.Se&&(I=this.e3,F={qU:Math.round(J*F/1E3),Il:F},I.policy.Se&&(I.WN=F,I.XU++));this.DD(!1)}}}}; g.A.DD=function(F){this.lX.DD(F)}; g.A.ej=function(F){this.e3.ej(F,this.hd())}; g.A.JT=function(F){this.bY=!0;this.info.gw.Vz(this.iC,F.redirectUrl)}; g.A.GM=function(F){this.uC instanceof mw&&this.uC.GM(F)}; g.A.r3=function(F){this.uC instanceof mw&&this.uC.r3(F)}; g.A.b3=function(F,J,b){this.e3.b3(F,J,b,this.hd())}; g.A.f9=function(F){var J=F.formatId,b=lU({itag:J.itag,lmt:J.lmt,xtags:J.xtags}),I,u,w=new W6(((I=F.Ji)==null?void 0:I.first)||0,((u=F.Ji)==null?void 0:u.ex)||0),M,q;I=new W6(((M=F.indexRange)==null?void 0:M.first)||0,((q=F.indexRange)==null?void 0:q.ex)||0);if(!this.lR.T.get(b)){b=F.Qw||{};if(this.policy.rf){var v,a;F=(v=F.mimeType)!=null?v:"";v=(a=J.itag)!=null?a:0;a=Df[""+v];b.mimeType=a!=="9"&&a!=="9h"?F:'video/webm; codecs="'+["vp09",a==="9h"?"02":"00","51",a==="9h"?"10":"08","01.01.01.01.00"].join(".")+ '"'}else b.mimeType=F.mimeType;b.itag=J.itag;b.lastModified=""+(J.lmt||0);b.xtags=J.xtags;J=this.lR;a=KW("");v=aZ(b,null);uI(J,new Jg(a,v,w,I))}}; g.A.IV=function(F){this.e3.IV(F)}; g.A.onSnackbarMessage=function(F){if(this.policy.dL)this.e3.onSnackbarMessage(F)}; g.A.Bc=function(F){this.TY=F;this.fK=(0,g.jR)();this.e3.Bc(F)}; g.A.TM=function(F,J,b){this.e3.TM(F,J,b)}; g.A.eM=function(F){F.scope===2&&(this.MTR=F);this.e3.eM(F)}; g.A.Ue=function(){this.NH=!0;this.e3.Ue()}; g.A.Xu=function(F){this.policy.Uz&&this.e3.Xu(F)}; g.A.Zn=function(F){this.e3.Zn(F,this.hd())}; g.A.n3=function(F){F.WQ===3&&(this.MO=!0);this.e3.n3(F)}; g.A.S2=function(F){this.e3.S2(F)}; g.A.CU=function(F){this.e3.CU(F)}; g.A.canRetry=function(){this.iR();return this.lX.canRetry(!1)}; g.A.dispose=function(){if(!this.iR()){g.R.prototype.dispose.call(this);this.lX.dispose();var F;(F=this.BJ)==null||F.dispose();this.aC(-1);this.h2()}}; g.A.aC=function(F){this.state=F;JX(this.e3,this)}; g.A.Gz=function(){return this.info.Gz()}; g.A.DA=function(){return this.NH}; g.A.Xw=function(){return this.MTR}; g.A.j$=function(F,J,b){b.clipId&&(this.clipId=b.clipId);this.policy.D&&!J&&(this.fF=b.Ev,this.Td=b.startMs);var I=0;this.policy.Lv&&this.ob&&this.clipId&&(I=V5(this.ob,this.clipId)/1E3);this.ZV.j$(F,J,b,I);this.policy.G8&&this.TY&&this.uC instanceof oa&&(I=this.TY.rL,this.uC.j$(b.durationMs/1E3,J,I>0&&b.Ev+1>=I));this.ZV.Fq.get(F).kN=!0}; g.A.L1=function(F,J){this.ZV.L1(F,J)}; g.A.Vh=function(F){this.requestIdentifier=F}; g.A.UY=function(F){return this.ZV.UY(F)}; g.A.Mp=function(F){return this.ZV.Mp(F)}; g.A.Im=function(F){return this.ZV.Im(F)}; g.A.nP=function(){return this.ZV.nP()}; g.A.AO=function(){return 1}; g.A.hd=function(){return this.uC.requestNumber}; g.A.eJ=function(){return this.requestIdentifier}; g.A.f2=function(){return this.clipId}; g.A.tF=function(){return this.iC.tF()}; g.A.XD=function(){this.h2()}; g.A.h2=function(){this.uC.deactivate();var F;(F=this.xhr)==null||F.abort()}; g.A.isComplete=function(){return this.state>=3}; g.A.Cs=function(){return this.state===3}; g.A.J4=function(){return this.state===5}; g.A.wi=function(){return this.state===4}; g.A.zR=function(){return this.isComplete()}; g.A.Ax=function(){return this.state>=1}; g.A.r$=function(){return this.policy.MI?this.lX.r$():0}; g.A.QU=function(){this.policy.MI&&JX(this.e3,this)}; g.A.n2=function(){return puz(this.info)}; g.A.rB=function(){return this.lX.rB()}; g.A.qp=function(){var F=pdm(this.lX);Object.assign(F,mn7(this.info));F.req="sabr";F.rn=this.hd();var J;if((J=this.xhr)==null?0:J.status)F.rc=this.policy.gT?this.xhr.status:this.xhr.status.toString();var b;(J=(b=this.xhr)==null?void 0:b.Aw())&&(F.msg=J);this.xB&&(b=HkG(this,this.xB-this.uC.jO()),F.letm=b.avN,F.mrbps=b.E4,F.mram=b.tq);return F}; g.A.bO=function(){return{fF:this.fF,Td:this.Td,isDecorated:this.info.isDecorated()}};Lpz.prototype.tick=function(F,J){this.ticks[F]=J?window.performance.timing.navigationStart+J:(0,g.jR)()};g.z(V8,g.uA);g.A=V8.prototype; g.A.Io=function(F,J,b,I){var u=!1;this.policy.oI&&(u=b?this.kQ===F.Mf:this.Gj===F.Mf);if(this.W&&I&&!u){I=[];u=[];var w=[],M=void 0,q=0;J&&(I=J.C,u=J.U,w=J.Z,M=J.T,q=J.W$,this.UQ("sdai",{sq:F.Mf,ssvicpns:I.join("."),ssvid:u.join(".")}));this.policy.oI&&(b?this.kQ=F.Mf:this.Gj=F.Mf);this.W.Za(F.Mf,F.startTime,this.U,I,u,w,b,q,M)}if(this.policy.oI){if(b||this.policy.R5){this.U===1&&Bs(this,5,"noad");var v;F.Mf!==((v=this.C)==null?void 0:v.Mf)&&(euC(this,F,J,b),isNaN(F.startTime)||TL(this,F.Mf,sd(this, F.startTime,F.Mf),!!J,this.W))}}else b&&euC(this,F,J)}; g.A.K9=function(F,J,b){var I=this.videoTrack.C.index.oC()<=J;this.C={Wg:F,Mf:J,Hz:b};I&&Ps(this,F,J)}; g.A.CB=function(){this.W&&this.W.CB()}; g.A.UQ=function(F,J,b){(F!=="sdai"||this.policy.WC||(b===void 0?0:b))&&this.Zv.UQ(F,J)}; g.A.l1=function(F,J){var b=this.videoTrack.C.index.Ea(F);if(b>=0){var I;var u=((I=J.xl.El(b,2))==null?void 0:I.VO)||"";if(this.policy.D||u)return J.rO(F,b),rg(this.Zv,F,F,b),this.UQ("sdai",{cmskpad:1,t:F.toFixed(3),sq:b}),!0}this.UQ("sdai",{cmskpad:0,t:F.toFixed(3),sq:b});return!1};g.z(Xx,g.R);Xx.prototype.KL=function(F,J,b){b=b===void 0?{}:b;this.policy.hN=j$(F,b,this.Z,J===void 0?!1:J)};Od.prototype.c8=function(F){var J=this;if(this.policy.GS){var b=new Set(F);b.size===this.WN.size&&[].concat(g.W(b)).every(function(I){return J.WN.has(I)})||(this.Zv.UQ("lwnmow",{itagDenylist:[].concat(g.W(F)).join(",")}),this.Zv.zV(!!b.size),this.N=-1,this.WN=b,oh(this,this.C),this.dD=!0)}}; Od.prototype.KL=function(F,J,b){b=b===void 0?{}:b;var I=this.policy.hN;this.D.KL(F,J===void 0?!1:J,b);if(I!==this.policy.hN){oh(this,this.C);h9(this);var u,w;I>this.policy.hN&&((u=this.T)==null?0:c4(u.info))&&((w=this.nextVideo)==null||!c4(w.info))&&(this.Tj=!0)}};nv.prototype.sM=function(F){this.timestampOffset=F;this.flush()}; nv.prototype.flush=function(){if(this.C.pos>0){var F={a:this.track.Cd(),u:this.C.G7(),pd:Math.round(this.Z),ad:Math.round(this.T)},J=this.U;if(J){var b=J.C.info;F.itag=b.itag;b.C&&(F.xtags=b.C);F.sq=J.Mf;F.st=J.startTime;F.sd=J.duration;this.track.policy.Ud&&(F.si=J.uX());J.Z&&(F.esl=J.U+J.T);J.aQ()&&(F.eos=1)}isNaN(this.timestampOffset)||(F.to=this.timestampOffset);var I;if(J=(I=this.track.dw)==null?void 0:I.Cy({})){for(var u in J)this.W[u]!==J[u]&&(F["sb_"+u]=J[u]);this.W=J}this.track.UQ("sbu", F);this.C.reset();this.buffered=[];this.D=this.T=this.Z=0;this.timestampOffset=this.U=void 0}};Zq.prototype.dispose=function(){this.eE=!0}; Zq.prototype.iR=function(){return this.eE}; g.z(Io,Error);var Z1z=new Uint8Array([0,0,0,38,112,115,115,104,0,0,0,0,237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237,0,0,0,6,72,227,220,149,155,6]);Md.prototype.skip=function(F){this.offset+=F}; Md.prototype.VB=function(){return this.offset};g.A=Lc3.prototype;g.A.ym=function(){return this.U}; g.A.q$=function(){return this.U.length?this.U[this.U.length-1]:null}; g.A.uq=function(){this.U=[];e3(this);v0(this)}; g.A.IE=function(F){this.zj=this.U.shift().info;F.info.Hg(this.zj)}; g.A.Mp=function(){return g.EG(this.U,function(F){return F.info})}; g.A.Cd=function(){return!!this.W.info.audio}; g.A.getDuration=function(){return this.W.index.cn()};g.z(T9,x7);g.A=T9.prototype;g.A.onStateChange=function(){this.iR()&&(fv(this.ZV,this.formatId),this.C.dispose())}; g.A.qp=function(){var F=Okz(this.ZV,this.formatId),J;var b=((J=this.ZV.Fq.get(this.formatId))==null?void 0:J.bytesReceived)||0;var I;J=((I=this.ZV.Fq.get(this.formatId))==null?void 0:I.o4)||0;return{expected:F,received:b,bytesShifted:J,sliceLength:Ws(this.ZV,this.formatId),isAnyMediaEndReceived:this.ZV.R7(this.formatId)}}; g.A.Er=function(){return 0}; g.A.qO=function(){return!0}; g.A.UY=function(){return this.ZV.UY(this.formatId)}; g.A.WJ=function(){return[]}; g.A.Im=function(){return this.ZV.Im(this.formatId)}; g.A.rB=function(){return this.lastError}; g.A.r$=function(){return 0};g.z(mV,g.R);g.A=mV.prototype;g.A.Cd=function(){return!!this.C.info.audio}; g.A.q$=function(){return this.Z.q$()}; g.A.IE=function(F){this.Z.IE(F);var J;(J=this.Y)!=null&&(J.D.add(F.info.Mf),J.C=ETz(J,J.Ym,J.Lc,F,J.C),J.T=F,J.W=(0,g.jR)());this.LW=Math.max(this.LW,F.info.C.info.LW||0)}; g.A.getDuration=function(){if(this.policy.U){var F=this.Zv.IH();if(F)return LS(F)}return this.C.index.cn()}; g.A.uq=function(){Sd(this);this.Z.uq()}; g.A.ND=function(){return this.Z}; g.A.isRequestPending=function(F){return this.T.length?F===this.T[this.T.length-1].info.aI[0].Mf:!1}; g.A.sM=function(F){var J;(J=this.Y)==null||J.sM(F);var b;(b=this.N)==null||b.sM(F)}; g.A.UQ=function(F,J){this.Zv.UQ(F,J)}; g.A.Iv=function(){return this.Zv.Iv()}; g.A.dispose=function(){var F;(F=this.N)==null||F.flush();g.R.prototype.dispose.call(this)};g.z(D6,g.R);D6.prototype.T=function(){this.U++>15||(this.C=!this.C,new OW3(this.Zv,this.policy,this.Zy,this.gw,this.C),this.delay.start())}; g.A=OW3.prototype;g.A.mx=function(){}; g.A.Hl=function(){}; g.A.A6=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.HF()===this.size)this.Zv.UQ("rqs",this.getInfo());else{var F="net.connect";this.xhr.status>200?F="net.badstatus":this.xhr.X0()&&(F="net.closed");this.onError(F)}}; g.A.onError=function(F){var J=this;this.Zv.handleError(F,this.getInfo());lX("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(b){J.Zv.UQ("pathprobe",b)},function(b){J.Zv.handleError(b.errorCode,b.details)})}; g.A.getInfo=function(){var F=this.timing.BQ();F.shost=zK(this.location.XY);F.pb=this.size;return F};g.z(ka,g.R); ka.prototype.V=function(F,J){if(F.V){this.lR.isLive?(F=this.lR.De&&this.lR.Z?F.C.iH(this.lR.De,!1):F.C.CA(Infinity),F.Qi=this.Qi):F=F.C.iH(0,!1);if(this.Tj){var b=this.Tj;F.Qi===0&&(F.D=b.Y)}else F.D=this.N;return F}b=F.U;if(!b.C.VJ())return b.C.pc()?(F=de(this.D,F.C.info.LW,J.C.info.LW,0),F=b.C.dW(b,F)):F=b.C.qc(b),F;var I=b.H1-this.Zv.getCurrentTime(),u=!b.range||b.T===0&&b.U===0?0:b.range.length-(b.U+b.T),w=b.C;this.Z5(F,I)&&u===0&&(this.lR.isManifestless?w=F.C:(w=b.startTime+qS,b.T&&(w+=b.duration), $7(F,w),b=F.U,w=b.C));w.pc()?(u=this.T,J=de(this.D,w.info.LW,J.C.info.LW,I,u.Z.length>0&&u.Y===0&&this.Zv.Pl),I=r9(F),F=b.C.dW(b,J),(J=F.T)&&F.aI.length>1&&(I||F.gw.U||F.aI[0].C!==b.C?F=b.C.dW(b,F.aI[0].T):(I=F.aI[F.aI.length-1],w=I.T/J,!I.Z&&w<.4&&(F=b.C.dW(b,J-I.T))))):(b.Mf<0&&(J=rG(b),J.pr=""+F.T.length,this.Zv.isSeeking()&&(J.sk="1"),J.snss=b.D,this.Zv.UQ("nosq",J)),F=w.qc(b));if(this.policy.kQ)for(b=g.N(F.aI),J=b.next();!J.done;J=b.next())J.value.type=6;return F}; ka.prototype.Z5=function(F,J){if(!r9(F)||!F.C.VJ())return!1;var b=this.T.dD||GFG(F)||J<=this.policy.TP||this.T.Tj;this.logger.debug(function(){return"ready to adapt: "+b+", upgrade pending: "+GFG(F)+", health: "+J}); return b}; ka.prototype.X_=function(){g.R.prototype.X_.call(this)}; var qS=2/24;g.z(gC,g.R);gC.prototype.m0=function(F,J,b){var I;var u=((I=this.U)==null?void 0:I.reason)==="m"?"m":this.U&&I7C(this,this.U)?this.U.reason:"a";this.Zv.m0(new Cv(F,u,b));xa(this.Zv,J,F,!0)}; gC.prototype.Id=function(F,J){for(var b=g.N(this.kQ),I=b.next();!I.done;I=b.next())if(I=I.value,I.id===F)return this.Zg.A4||(this.T=[I]),this.W=this.lR.C[F],QO(this.Zg)&&(this.Tj=!0),new Cv(this.W,J?"t":"m");this.T=[];return null}; gC.prototype.KL=function(F,J,b){b=b===void 0?{}:b;this.C.KL(F,J===void 0?!1:J,b)};z6.prototype.setData=function(F,J,b,I){var u=this;I=I===void 0?{}:I;if(b==null?0:b.NW)this.ZS=taG(this,b,I),F.iK=this.gw.iK();if(this.Gz())return!0;this.data=F;this.C=e1G(F,J,function(w,M){var q;(q=u.e3)==null||q.Ck(w,M)},b==null?void 0:b.T); if(!this.C)return!1;this.U=g.ux(this.C,w7Y);return!0}; z6.prototype.Gz=function(){return this.requestType===1}; z6.prototype.Yy=function(){var F;return((F=this.e3)==null?void 0:F.Yy())||0}; z6.prototype.isDecorated=function(){var F;return!((F=this.data)==null||!F.Zc)};NU.prototype.encrypt=function(F){this.PV.exports.AES128CTRCipher_encrypt(this.cipher,F.byteOffset,F.byteLength);return F}; NU.prototype.iR=function(){return this.cipher===0}; NU.prototype.dispose=function(){this.PV.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};fS.prototype.encrypt=function(F,J){return Ix(this.subtleCrypto.encrypt({name:"AES-CTR",length:128,counter:J},this.key,F).catch(function(b){return Promise.reject(b.name+": "+b.message)}).then(function(b){return new Uint8Array(b)}))}; fS.prototype.iR=function(){return this.C}; fS.prototype.dispose=function(){this.C=!0}; Sn.p$(fS,{encrypt:lz("oan2")});Wv.prototype.encrypt=function(F,J){yo(this.U,J);return Ix(this.U.encrypt(F))}; Wv.prototype.iR=function(){return this.C}; Wv.prototype.dispose=function(){this.C=!0}; Sn.p$(Wv,{encrypt:lz("oap")});dC.prototype.encrypt=function(F,J){var b=this.PV.Fc(J),I=this.C;I.PV.exports.AES128CTRCipher_setCounter(I.cipher,(b!=null?b:J).byteOffset);J=this.PV.Fc(F);this.C.encrypt(J!=null?J:F);b&&this.PV.free(b.byteOffset);return J?Ix(this.PV.yl(J)):Ix(F)}; dC.prototype.iR=function(){return this.C.iR()}; dC.prototype.dispose=function(){this.C.dispose()}; Sn.p$(dC,{encrypt:lz("oalw")});E_.prototype.encrypt=function(F,J){var b=this,I=uf("");F.length<=this.rp&&this.C&&!this.Z&&(I=q7(I,function(){return b.C?b.C.encrypt(F,J):uf("wasm unavailable")})); F.length<=this.Wq&&(this.C&&this.Z&&(I=q7(I,function(){return b.C?b.C.encrypt(F,J):uf("wasm unavailable")})),I=q7(I,function(){return NNm(b,F,J)})); return q7(q7(I,function(){return l7Y(b,F,J)}),function(){return NNm(b,F,J)})}; E_.prototype.iR=function(){return this.D}; E_.prototype.dispose=function(){this.D=!0;var F;(F=this.T)==null||A8(F,g.q8);g.q8(this.C);g.q8(this.U)};jS.prototype.encrypt=function(F){(0,g.jR)();return(new bb(this.C.C)).encrypt(F,this.iv)}; jS.prototype.decrypt=function(F,J){(0,g.jR)();return(new bb(this.C.C)).decrypt(F,J)}; jS.prototype.iR=function(){return this.T}; jS.prototype.dispose=function(){this.T=!0;g.q8(this.U)};g.z(G6,g.R);G6.prototype.T=function(F,J){if(J){J=J instanceof g.yJ?J:V1(this,J);var b;((b=this.C.get(F))==null?void 0:zK(b.location))!==zK(J)&&this.C.set(F,new BN_(J,F))}else this.C.delete(F)}; G6.prototype.load=function(){var F=this,J,b,I,u,w,M,q,v,a,e;return g.S(function(K){switch(K.C){case 1:J=F.C.get(0);g.lk(K,2);var p;if(p=J&&!F.U)p=zK(J.location),p=F.U===uh(p);if(p){K.gD(4);break}return g.T(K,Bv(F,F.U?2:0),5);case 5:if(b=K.U)F.T(0,b),l9(b)&&F.T(1,fk(b));case 4:g.Wa(K,3);break;case 2:I=g.dY(K);g.rQ(I);if(!F.U){K.gD(3);break}F.U=!1;return g.T(K,F.load(),7);case 7:return K.return();case 3:if(!F.rD.experiments.pW("html5_onesie_probe_ec_hosts")){K.gD(0);break}g.lk(K,9);u=F;w=u.T;M=3;return g.T(K, Bv(F,1),11);case 11:return w.call(u,M,K.U),q=F,v=q.T,a=4,g.T(K,Bv(F,2),12);case 12:v.call(q,a,K.U);g.Wa(K,0);break;case 9:e=g.dY(K),g.rQ(e),g.N4(K)}})}; G6.prototype.V=function(){var F=this,J,b;return g.S(function(I){g.Z_(F.Y);J=g.eB(F.rD.experiments,"html5_onesie_prewarm_max_lact_ms");if(dP()>=J)return I.return();(b=F.C.get(0))&&V8o(F,b);g.N4(I)})}; var jwz={pFz:0,kQQ:1,LWQ:2,gZD:3,yNE:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};T6.prototype.decrypt=function(F){var J=this,b,I,u,w,M,q;return g.S(function(v){switch(v.C){case 1:if(J.C.length&&!J.C[0].isEncrypted)return v.return();J.U=!0;J.cF.G$("omd_s");b=new Uint8Array(16);Ns()?I=new JP(F):u=new bb(F);case 2:if(!J.C.length||!J.C[0].isEncrypted){v.gD(4);break}w=J.C.shift();if(!I){M=u.decrypt(w.buffer.HS(),b);v.gD(5);break}return g.T(v,I.decrypt(w.buffer.HS(),b),6);case 6:M=v.U;case 5:q=M;for(var a=0;a=4)){var J=xb(this),b=this.xhr;J.rc=b.status;F&&(J.ab=!0);if(b.Aw()){var I="onesie.net";J.msg=b.Aw()}else b.status>=400?I="onesie.net.badstatus":b.q5()?this.DJ||(I="onesie.response.noplayerresponse"):I=b.status===204?"onesie.net.nocontent":"onesie.net.connect";I?this.R6(new E5(I,J)):(this.G$("or_fs"),this.uC.b5((0,g.jR)(),b.HF(),0),this.aC(4),this.BF&&this.UQ("rqs",J));this.BF&&this.UQ("ombre", "ok."+ +!I);this.y_=!1;tf(this);U_(this.cF);if(!this.Yu){this.PJ.stop();var u;(u=this.GN)==null||u.stop()}var w;if(F=(w=this.h8)==null?void 0:Pbz(w))for(w=0;w1E3){var F;(F=this.uC)==null||F.oo((0,g.jR)());F=xb(this);if(this.rD.hJ()&&this.xhr instanceof nc){var J=this.xhr;F.xrs=J.xhr.readyState;F.xpb=J.C.getLength();F.xdc=J.Z}this.R6(new E5("net.timeout",F))}}else(0,g.jR)()-this.uC.C>1E4&&((J=this.uC)==null||J.oo((0,g.jR)()),this.HZ());this.isComplete()||this.Sd.start()}}; g.A.HZ=function(){this.logger.info("Onesie request timed out");this.y_=!1;if(!tf(this)){var F=xb(this);F.timeout="1";this.R6(new E5("onesie.request",F))}}; g.A.R6=function(F){var J=this;F=Gj(F);this.jG?this.wD.je(F):(this.O1.reject(F),this.jG=!0);U_(this.cF);this.Yu||this.PJ.stop();this.G$("or_fe");var b,I;(b=this.h8)==null||(I=Pbz(b))==null||I.forEach(function(u){J.UQ("pathprobe",u)}); this.aC(5);this.dispose()}; g.A.isComplete=function(){return this.state>=3}; g.A.wi=function(){return this.state===4}; g.A.zR=function(F){var J,b;return this.isComplete()||!!((J=this.qk)==null?0:(b=J.get(F))==null?0:b.C)}; g.A.Cs=function(){return!1}; g.A.J4=function(){return this.state===5}; g.A.notifySubscribers=function(F){for(var J=0;J102400&&!this.mC&&(this.G$("or100k"),this.mC=!0);if(F.vx()){var J=F.YU(),b=J.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+b}); this.BF&&this.UQ("ombrss","len."+b);this.XC.feed(J)}if(this.qk)for(var I=g.N(this.qk.keys()),u=I.next();!u.done;u=I.next()){var w=u.value;F=void 0;(F=this.qk.get(w))==null||F.EX();this.notifySubscribers(w)}}catch(M){this.R6(M)}}; g.A.hd=function(){return this.uC.requestNumber}; g.A.eJ=function(F){return this.tf.get(F)}; g.A.bO=function(){return{fF:this.fF,Td:this.Td,isDecorated:!1}};g.z(IRa,g.R);g.A=IRa.prototype;g.A.J3=function(F,J){this.eE=void 0;dFz(this);lRG(this,F,J)}; g.A.Tq=function(F){if(this.C.length===0)return!1;var J=this.C[0];return J instanceof nS?F===this.Zv.getCurrentTime()*1E3:!(J instanceof jI&&g2z(J.info))&&Math.abs(J.n2()-F)<50}; g.A.Np=function(F){this.U=F;this.eE=(0,g.jR)()+(F.backoffTimeMs||0)}; g.A.ej=function(F,J){if(F.action===void 0){var b=this.wD.bK();b!==void 0&&this.Zv.l4(b)}else if(F.action!==0||!this.zj)switch(F.action===0&&this.policy.cO&&(F.action=2),b={},b.reason=F.cej,b.action=F.action,b.rn=J,F.action){case 1:this.policy.D&&this.Z&&this.Z.Ty(void 0,void 0,b);break;case 0:this.zj=!0;this.videoData.vV()&&this.policy.D&&this.Z&&this.Z.Ty(void 0,void 0,b,!1);this.Zv.Xh(b);break;case 2:this.Zv.handleError("sabr.config",b,1);break;case 5:kx7(this.wD,!0);break;case 6:kx7(this.wD,!1); break;case 3:this.policy.NW&&((F=this.lR.Y)!=null&&(F.Y=!0),this.Zv.handleError("sabr.hostfallback",b))}}; g.A.b3=function(F,J,b,I){if(this.policy.U){this.Zv.UQ("ssap",{rn:I,v:J,tl:jHJ(F)});var u=this.Zv.IH();F={Hn:F,context:b,version:J};fRC(this,b);u?WZv(this,u,F):(this.Zv.UQ("ssap",{cacheclips:1,rn:I,v:J}),this.Y=F)}}; g.A.eM=function(F){var J=this.policy.gW;this.Zv.UQ("ssap",{onsbrctxt:F.type,dflt:F.sendByDefault,enable:J?1:0});J&&(fRC(this,F),this.wD.eM(F))}; g.A.Ue=function(){}; g.A.IV=function(F){if(F.Lq!==void 0&&F.Ns){var J=F.Lq/F.Ns;this.audioTrack.V=!1;this.videoTrack.V=!1;if(this.policy.eE||this.policy.In||this.policy.Ga)this.Zv.wq.U=!1;this.Zv.C1(J,1);if(this.wD.getCurrentTime()!==J){var b={Ky:"sabr_seek",g$:!0,Ki:!0};F.seekSource&&(b.seekSource=F.seekSource);Q5(this.Zv,J+.1,b)}}}; g.A.onSnackbarMessage=function(F){this.wD.publish("onSnackbarMessage",F)}; g.A.Bc=function(F){F.rL&&F.dl&&NQ(this.lR,F.rL,F.dl);this.policy.cE&&(F.N9&&F.Ib&&(this.lR.rf=F.N9/F.Ib),F.Ks&&F.tb&&(this.lR.G8=F.Ks/F.tb));F.wh!=null&&this.wD.dM(F.wh);this.policy.fN&&F.SQ&&(F=((0,g.jR)()-F.SQ)/1E3,this.Zv.zS.Zj(1,F))}; g.A.n3=function(F){this.Zv.n3(F)}; g.A.TM=function(F,J,b){this.policy.T&&this.Zv.UQ("sabrctxtplc",{start:F?F.join("_"):"",stop:J?J.join("_"):"",discard:b?b.join("_"):""});if(F){F=g.N(F);for(var I=F.next();!I.done;I=F.next())this.hD.add(I.value)}if(J)for(J=g.N(J),F=J.next();!F.done;F=J.next())F=F.value,this.hD.has(F)&&this.hD.delete(F);if(b)for(b=g.N(b),J=b.next();!J.done;J=b.next())J=J.value,this.videoData.sabrContextUpdates.has(J)&&(this.videoData.sabrContextUpdates.delete(J),J===3&&(this.videoData.ul=""))}; g.A.Xu=function(){}; g.A.G2=function(F){this.W=F}; g.A.T2=function(F){this.qf=F}; g.A.Zn=function(F,J){Ro(this.policy,F,4,J)}; g.A.S2=function(F){if(F==null?0:F.ZC)if(F=F.ZC.Dk){F=g.N(F);for(var J=F.next();!J.done;J=F.next())if(J=J.value,J.formatId){var b=this.lR.T.get(lU(J.formatId));b&&b.info&&(b.info.debugInfo=J.debugInfo)}}}; g.A.CU=function(F){(F=F==null?void 0:F.reloadPlaybackParams)&&this.wD.publish("reloadplayer",F)}; g.A.B1=function(){return this.wD.B1()||""}; g.A.Yy=function(){var F=j3(this.audioTrack,!0)*1E3,J=j3(this.videoTrack,!0)*1E3;return Math.min(F,J)}; g.A.Ck=function(F,J){this.Zv.UQ(F,J)}; g.A.U6=function(F){ciz(this.Zv,GCC(this.Jz,F))}; g.A.X_=function(){g.R.prototype.X_.call(this);this.U=void 0;lRG(this,!0,"i");this.C=[]};Gt4.prototype.Va=function(F,J){if(this.Z)return ri_(this,J);if(J=Ra(F)){var b=J.U;b&&b.T&&b.C&&(F=F.T.length?F.T[0]:null)&&F.state>=2&&!F.J4()&&F.info.Qi===0&&(this.Z=F,this.V=b,this.U=J.info,this.W=this.startTimeSecs=Date.now()/1E3,this.D=this.U.startTime)}return NaN}; Gt4.prototype.clear=function(){this.U=this.V=this.Z=null;this.C=this.D=this.W=this.startTimeSecs=NaN;this.T=!1};g.z(g.wr,g.R);g.A=g.wr.prototype;g.A.initialize=function(F,J,b){this.logger.debug(function(){return"Initialized, t="+F}); F=F||0;this.policy.C||(J=PUJ(this.C),n$v(this.wD,new Cv(J.video,J.reason)),this.wD.TV(new Cv(J.audio,J.reason)));this.lR.isManifestless&&HW3(this.D);this.V&&PrJ(this.V,this.videoTrack.C);J=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var I=!this.lR.isManifestless;this.policy.Cu&&(I=I||this.lR.SF);this.policy.WN||(this.currentTime=I?F:J);this.policy.eE&&this.seek(this.getCurrentTime(),{}).rX(function(){}); if(this.policy.C){var u;((u=this.Tj)==null?0:bC4(u,this.B1()||""))&&Cr_(this)&&$FC(this,this.videoTrack)&&$FC(this,this.audioTrack)&&(E$v(this.T,this.Tj),this.policy.W&&Y9o(this))}else this.eE&&(XCo(this,this.videoTrack),XCo(this,this.audioTrack),kKk(this.eE),delete this.eE);b?(this.policy.ir?(this.Om=b,AX(this,b)):AX(this,!1),g.Z_(this.P_)):(b=this.getCurrentTime()===0,hu(this.D,this.videoTrack,this.videoTrack.C,b),hu(this.D,this.audioTrack,this.audioTrack.C,b),this.policy.C&&MEm(this.T,!0),this.policy.eE|| this.seek(this.getCurrentTime(),{}).rX(function(){}),this.timing.tick("gv")); (this.lR.De||this.lR.VN||this.lR.qf||this.lR.NW||this.lR.MI)&&this.wD.V_(this.lR)}; g.A.resume=function(){if(this.isSuspended||this.Pl){this.logger.debug("Resumed.");this.M2=this.Pl=this.isSuspended=!1;try{this.Va()}catch(F){g.Td(F)}}}; g.A.YM=function(){return!this.policy.Om}; g.A.Ul=function(F,J){F=F===void 0?!1:F;J=J===void 0?!1:J;this.logger.debug("detaching media source");ktz(this);this.wD.wZ()&&(this.W=NaN);F?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.fW&&this.UQ("loader",{setsmb:1}),this.policy.kQ=!0,this.uq()):(this.policy.ir?AX(this,this.Om):AX(this,!1),J||this.uq())}; g.A.setAudioTrack=function(F,J,b){b=b===void 0?!1:b;if(!this.iR()){var I=!isNaN(J);b&&I&&(this.audioTrack.Tj=Date.now(),this.policy.zU&&(this.oI=!0));if(this.policy.C){var u=this.U.Id(F.id,I);this.logger.debug(function(){return"Logging new audio format: "+u.C.info.id}); this.wD.TV(u)}else{var w=jAo(this.C,F.id,I);this.logger.debug(function(){return"Logging new audio format: "+w.audio.info.id}); this.wD.TV(new Cv(w.audio,w.reason))}if(I&&(b=this.audioTrack.C.index.Ea(J),this.UQ("setAudio",{id:F.id,cmt:J,sq:b}),b>=0)){this.policy.C&&(this.U.Y=!0,this.J3(!0,"mosaic"));G1(this.audioTrack,b,NaN,NaN);!this.policy.Vk&&this.lR.isLive&&zF(this.lR,b,!1);return}this.wD.M$()}}; g.A.setPlaybackRate=function(F){F!==this.N.getPlaybackRate()&&this.N.setPlaybackRate(F)}; g.A.Tr=function(F){var J=this.T.W;this.T.G2(F);this.UQ("scfidc",{curr:lU(J),"new":lU(F)});F&&lU(F)!==lU(J)&&(this.J3(!1,"caption change"),this.Va())}; g.A.Uu=function(F){this.T.T2(F)}; g.A.m0=function(F){var J=F.C.info.Cd();this.logger.debug(function(){return"New "+(J?"audio":"video")+" format from SABR: "+b1(F.C.info)}); J?this.wD.TV(F):n$v(this.wD,F)}; g.A.U6=function(F){P6(F.aI[F.aI.length-1])&&ciz(this,GCC(this.C,F.aI[0].C))}; g.A.f1=function(){return this.wD.f1()}; g.A.To=function(){return this.wD.To()}; g.A.n3=function(F){this.wD.J().hJ()&&this.UQ("sps",{status:F.WQ||""});if(F.WQ===1)this.wD.videoData.pT=0;else if(F.WQ===2||F.WQ===3){var J=!1;if(F.WQ===3){J=this.wD.NU();var b;this.If=(b=F.wg_)!=null?b:Infinity;this.wD.videoData.pT=J+1;(J=n7(this))&&this.AI(!0)}this.wD.Y3(!0,J)}}; g.A.f$=function(){return this.wD.f$()}; g.A.Y4=function(){return this.wD.Y4()}; g.A.L9=function(F){this.wD.L9(F)}; g.A.Fp_=function(){var F,J=(F=this.wD.Qa())==null?void 0:F.getCurrentTime();J?this.wD.UQ("rms",{cta:J}):g.Z_(this.NW)}; g.A.Va=function(){hCk(this);if(this.HN&&kn(this.HN)&&!this.HN.x0()&&(!this.policy.WN||isFinite(this.getCurrentTime()))){var F=i2(this.videoTrack);F=this.policy.LX&&F&&F.aQ();this.lR.isManifestless&&this.lR.Z&&gd(this.lR)?(this.W=gd(this.lR),this.HN.GI(this.W)):lI(this.lR)&&!F?isNaN(this.W)?(this.W=this.getCurrentTime()+3600,this.HN.GI(this.W)):this.W<=this.getCurrentTime()+1800&&(this.W=Math.max(this.W+1800,this.getCurrentTime()+3600),this.HN.GI(this.W)):this.HN.isView||(F=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.W)||this.W!==F)&&F>0&&(this.HN.GI(F),this.W=F))}if(!this.iR())if(pW(this.lR)&&this.lR.J4()){var J=this.lR;this.handleError("manifest.net.retryexhausted",J.oI?{rc:J.Jw}:{rc:J.Jw.toString()},1)}else if(this.policy.C)a:{try{iCY(this.T);this.lR.isManifestless&&this.policy.W&&Cc(this.wq);if(DFk(this)&&this.HN&&!hG(this.HN)&&this.videoTrack.qf&&this.audioTrack.qf){this.UQ("ssap",{delaysb:1,v:this.videoTrack.C.info.id,vf:this.videoTrack.C.info.YQ,a:this.audioTrack.C.info.id, af:this.audioTrack.C.info.YQ});var b=this.HN,I=this.videoTrack.C,u=this.audioTrack.C;!hG(b)&&u&&I&&(lI_(b,I.info,u.info,this.policy.GU),OCv(this,b))}var w;((w=this.HN)==null?0:hG(w))&&this.jc();this.policy.C||MS(this);MEm(this.T)}catch(q){g.rQ(q);J=q;if(J.message.includes("changeType")){this.UQ("ssap",{exp:J.name,msg:J.message,s:J.stack});break a}this.handleError("fmt.unplayable",{exp:J.name,msg:J.message,s:J.stack},1)}pEG(this);g.Z_(this.KW)}else if(!this.lR.U||!Bd3(this.videoTrack)&&!Bd3(this.audioTrack)|| (this.videoTrack.D||this.audioTrack.D)&&this.policy.xm?b=!1:(this.uq(),this.wD.seekTo(Infinity,{Ky:"checkLoaderTracksSync",C1:!0}),b=!0),!b){hCk(this);this.lR.isManifestless&&(Tdz(this.videoTrack),Tdz(this.audioTrack),Cc(this.wq),(b=Ra(this.videoTrack))&&b.U&&(b=b.U.T&&!this.policy.E2,this.UQ(b===this.policy.Y.lq?"strm":"strmbug",{strm:b,sfmp4:this.policy.Y.lq,dfs:this.policy.E2},!0)));if(this.HN)this.jc();else if(this.policy.Z){var M;b=!1;if(this.policy.xd)for(I=g.N([this.videoTrack,this.audioTrack]), u=I.next();!u.done;u=I.next()){w=u.value;for(u=Ra(w);u&&w.q$()!==i2(w);u=Ra(w))w.IE(u);b=b||!!u}else(J=Ra(this.videoTrack))&&this.videoTrack.IE(J),(M=Ra(this.audioTrack))&&this.audioTrack.IE(M);W0(this.videoTrack)&&W0(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(J||M||b)&&FJ(this)}MS(this);hu(this.D,this.videoTrack,this.videoTrack.C,!1);hu(this.D,this.audioTrack,this.audioTrack.C,!1);this.policy.Nc||xFk(this,this.videoTrack,this.audioTrack);cg7(this.D,this.videoTrack, this.audioTrack);cg7(this.D,this.audioTrack,this.videoTrack);pEG(this);this.V&&(J=this.V,J.Z?(M=J.W+J.policy.GW,J.T||(M=Math.min(M,J.startTimeSecs+J.policy.DY)),J=Math.max(0,M*1E3-Date.now())):J=NaN,isNaN(J)||g.Z_(this.T1,J));g.Z_(this.KW)}}; g.A.Xh=function(F){this.wD.Xh(F)}; g.A.jc=function(){var F=this;if(this.HN){var J=this.HN.C,b=this.HN.U;zLa(this,this.audioTrack);zLa(this,this.videoTrack);var I=ZCm(this);if(I){if(this.policy.df){if(!J.yO()){var u=Ra(this.audioTrack);if(u){if(!um(this,this.audioTrack,J,u.info))return;F74(this,this.audioTrack,J,u)}}if(!b.yO()&&(u=Ra(this.videoTrack))){if(!um(this,this.videoTrack,b,u.info))return;F74(this,this.videoTrack,b,u)}}this.Ik||(this.Ik=(0,g.jR)(),this.logger.debug(function(){return"Appends pause start "+F.Ik+" reason "+I}), this.policy.T&&this.UQ("apdps",{r:I}))}else if(this.Ik&&(tEk(this,this.Ik),this.Ik=0),HCC(this),u=!1,this.policy.U&&Ya(this.videoTrack)||!wEv(this,this.videoTrack,b)||(u=!0,bo7(this.timing),Mov(this.timing)),this.HN&&!this.HN.Ph()&&(this.policy.U&&Ya(this.audioTrack)||!wEv(this,this.audioTrack,J)||(u=!0,IcJ(this.timing),AMk(this.timing)),!this.iR()&&this.HN)){if(!this.policy.Om&&W0(this.videoTrack)&&W0(this.audioTrack)&&kn(this.HN)&&!this.HN.x0()){b=!1; b=i2(this.audioTrack);if(this.policy.U){var w;J=(w=this.II)==null?void 0:Pl(w,b.hF*1E3);b=!(!J||J.clipId!==b.clipId);this.UQ("ssap",{eos:b})}else w=b.C,b=w===this.lR.C[w.info.id];b&&(this.logger.debug("Setting EOS"),fI3(this.HN),X57(this.schedule))}u&&!this.HN.isAsync()&&FJ(this)}}}; g.A.Jk=function(F){var J,b=F===((J=this.HN)==null?void 0:J.C)?this.audioTrack:this.videoTrack,I;(I=b.kQ)==null||I.stop();var u;if((u=Ra(b))==null?0:u.isLocked){if(this.wD.J().hJ()){var w;this.UQ("eosl",{ounlock:(w=Ra(b))==null?void 0:w.info.uX()})}var M;eL7(this,F===((M=this.HN)==null?void 0:M.C))}var q;if(this.policy.zU&&F===((q=this.HN)==null?void 0:q.C)&&this.nW){J=this.nW-this.getCurrentTime();var v;this.wD.UQ("asl",{l:J,xtag:(v=i2(this.audioTrack))==null?void 0:v.C.info.C});this.oI=!1;this.nW= 0}F.yB()&&F.N0().length===0&&(F.Yk(),this.HN&&!this.HN.yB()&&(this.wD.J().hJ()&&this.wD.UQ("rms",{ld:"seek"}),this.HN.W=performance.now(),this.wD.dU(),this.wD.J().hJ()&&g.Z_(this.NW)));var a;(a=b.N)!=null&&t9(a,0);this.policy.bR&&this.policy.uH&&this.HN&&(b=F.Vo())&&b.aQ()&&!Mt(F.N0(),Math.min(b.hF+qS,b.H1))&&this.UQ("sbunb",{st:b.hF,et:b.H1});this.policy.T1?UE(this):this.Va()}; g.A.YmI=function(F){if(this.HN){var J=i2(F===this.HN.C?this.audioTrack:this.videoTrack);if(F=F.ZF())for(var b=0;bthis.T&&(this.T=b,g.Vj(this.C)||(this.C={},this.Z.stop(),this.U.stop())),this.C[J]=F,g.Z_(this.U))}}; eA.prototype.D=function(){for(var F=g.N(Object.keys(this.C)),J=F.next();!J.done;J=F.next()){var b=J.value;J=this.publish;for(var I=this.T,u=this.C[b].match(YV),w=[],M=g.N(u[6].split("&")),q=M.next();!q.done;q=M.next())q=q.value,q.indexOf("cpi=")===0?w.push("cpi="+I.toString()):q.indexOf("ek=")===0?w.push("ek="+g.x_(b)):w.push(q);u[6]="?"+w.join("&");b="skd://"+u.slice(2).join("");u=b.length*2;I=new Uint8Array(u+4);I[0]=u%256;I[1]=(u-I[0])/256;for(u=0;u0)for(var b=g.N(this.C),I=b.next();!I.done;I=b.next())if(J===I.value.info.cryptoPeriodIndex){J=!0;break a}J=!1}if(!J){J=(0,g.jR)();a:{b=F.cryptoPeriodIndex;if(!isNaN(b)){I=g.N(this.T.values());for(var u=I.next();!u.done;u=I.next())if(Math.abs(u.value.cryptoPeriodIndex-b)<=1){b=!0;break a}}b=!1}b?(b=F.C,b=Math.max(0,Math.random()*((isNaN(b)?120:b)-30))*1E3):b=0;this.publish("log_qoe",{wvagt:"delay."+b,cpi:F.cryptoPeriodIndex,reqlen:this.C.length, ignore:this.Z});b<=0?dbo(this,F):this.Z||(this.C.push({time:J+b,info:F}),g.Z_(this.U,b))}}; Kj.prototype.X_=function(){this.C=[];am.prototype.X_.call(this)};var is={},PE3=(is.DRM_TRACK_TYPE_AUDIO="AUDIO",is.DRM_TRACK_TYPE_SD="SD",is.DRM_TRACK_TYPE_HD="HD",is.DRM_TRACK_TYPE_UHD1="UHD1",is);g.z(GeC,g.R);g.z(TSm,g.uA);g.A=TSm.prototype;g.A.mw=function(F){var J=this;this.iR()||F.size<=0||(F.forEach(function(b,I){var u=BG(J.U)?I:b;I=new Uint8Array(BG(J.U)?b:I);BG(J.U)&&xbz(I);b=g.zw(I,4);xbz(I);I=g.zw(I,4);J.C[b]?J.C[b].status=u:J.C[I]?J.C[I].status=u:J.C[b]={type:"",status:u}}),OYz(this,","),pj(this,{onkeystatuschange:1}),this.status="kc",this.publish("keystatuseschange",this))}; g.A.error=function(F,J,b,I){this.iR()||(this.publish("licenseerror",F,J,b,I),F==="drm.provision"&&(F=(Date.now()-this.W)/1E3,this.W=NaN,this.publish("ctmp","provf",{et:F.toFixed(3)})));jg(J)&&this.dispose()}; g.A.shouldRetry=function(F,J){return!F&&this.requestNumber===J.requestNumber}; g.A.X_=function(){this.C={};g.uA.prototype.X_.call(this)}; g.A.Cy=function(){var F={ctype:this.Y.contentType||"",length:this.Y.initData.length,requestedKeyIds:this.Gj,cryptoPeriodIndex:this.cryptoPeriodIndex};this.T&&(F.keyStatuses=this.C);return F}; g.A.getInfo=function(){var F=this.Z.join();if(gr(this)){var J=new Set,b;for(b in this.C)this.C[b].status!=="usable"&&J.add(this.C[b].type);F+="/UKS."+Array.from(J)}return F+="/"+this.cryptoPeriodIndex}; g.A.tF=function(){return this.url};g.z(mQ,g.R);g.A=mQ.prototype;g.A.yq=function(F){if(this.D){var J=F.messageType||"license-request";this.D(new Uint8Array(F.message),J)}}; g.A.mw=function(){this.V&&this.V(this.C.keyStatuses)}; g.A.onClosed=function(){this.iR()||g.D$("xboxone")&&this.T&&this.T("closed")}; g.A.VK=function(F){this.D&&this.D(F.message,"license-request")}; g.A.HB=function(F){if(this.T){if(this.U){var J=this.U.error.code;F=this.U.error.systemCode}else J=F.errorCode,F=F.systemCode;this.T("t.prefixedKeyError;c."+J+";sc."+F,J,F)}}; g.A.SU=function(){this.W&&this.W()}; g.A.update=function(F){var J=this;if(this.C)return(hg.isActive()?hg.Zq("emeupd",function(){return J.C.update(F)}):this.C.update(F)).then(null,pa(function(b){tio(J,"t.update",b)})); this.U?this.U.update(F):this.element.addKey?this.element.addKey(this.Y.keySystem,F,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.Y.keySystem,F,this.initData,this.sessionId);return r$()}; g.A.X_=function(){this.C&&(this.N?this.C.close().catch(g.rQ):this.C.close());this.element=null;g.R.prototype.X_.call(this)};g.z(yT,g.R);g.A=yT.prototype;g.A.sj=function(){var F=this;if(this.C.keySystemAccess)return(hg.isActive()?hg.Zq("emenew",function(){return F.C.keySystemAccess.createMediaKeys()}):this.C.keySystemAccess.createMediaKeys()).then(function(b){if(!F.iR())if(F.U=b,hg.isActive())hg.Zq("emeset",function(){return F.element.setMediaKeys(b)}); else{var I;(I=F.element)==null||I.setMediaKeys(b)}}); if(PG(this.C))this.T=new (Vy())(this.C.keySystem);else if(TF(this.C)){this.T=new (Vy())(this.C.keySystem);var J;(J=this.element)==null||J.webkitSetMediaKeys(this.T)}else hg.isActive()&&this.UQ("emev",{v:"01b"}),GD(this.D,this.element,["keymessage","webkitkeymessage"],this.aS),GD(this.D,this.element,["keyerror","webkitkeyerror"],this.j1),GD(this.D,this.element,["keyadded","webkitkeyadded"],this.YY);return null}; g.A.setServerCertificate=function(){return this.U.setServerCertificate?this.C.flavor==="widevine"&&this.C.fD?this.U.setServerCertificate(this.C.fD):S$(this.C)&&this.C.oI?this.U.setServerCertificate(this.C.oI):null:null}; g.A.createSession=function(F,J){var b=F.initData;if(this.C.keySystemAccess){J&&J("createsession");var I=this.U.createSession();rd(this.C)?b=ZYG(b,this.C.oI):S$(this.C)&&(b=W7z(b)||new Uint8Array(0));J&&J("genreq");var u=hg.isActive()?hg.Zq("emegen",function(){return I.generateRequest(F.contentType,b)}):I.generateRequest(F.contentType,b); var w=new mQ(null,null,null,I,null,this.V);u.then(function(){J&&J("genreqsuccess")},pa(function(q){tio(w,"t.generateRequest",q)})); return w}if(PG(this.C))return L7J(this,b);if(TF(this.C))return HYk(this,b);if((u=this.element)==null?0:u.generateKeyRequest)this.element.generateKeyRequest(this.C.keySystem,b);else{var M;(M=this.element)==null||M.webkitGenerateKeyRequest(this.C.keySystem,b)}return this.Z=new mQ(this.element,this.C,b,null,null,this.V)}; g.A.aS=function(F){var J=Fda(this,F);J&&J.VK(F)}; g.A.j1=function(F){var J=Fda(this,F);J&&J.HB(F)}; g.A.YY=function(F){var J=Fda(this,F);J&&J.SU(F)}; g.A.getMetrics=function(){if(this.U&&this.U.getMetrics)try{var F=this.U.getMetrics()}catch(J){}return F}; g.A.X_=function(){this.T=this.U=null;var F;(F=this.Z)==null||F.dispose();F=g.N(Object.values(this.W));for(var J=F.next();!J.done;J=F.next())J.value.dispose();this.W={};g.R.prototype.X_.call(this);delete this.element};g.A=im.prototype;g.A.get=function(F){F=this.findIndex(F);return F!==-1?this.values[F]:null}; g.A.remove=function(F){F=this.findIndex(F);F!==-1&&(this.keys.splice(F,1),this.values.splice(F,1))}; g.A.removeAll=function(){this.keys=[];this.values=[]}; g.A.set=function(F,J){var b=this.findIndex(F);b!==-1?this.values[b]=J:(this.keys.push(F),this.values.push(J))}; g.A.findIndex=function(F){return g.nz(this.keys,function(J){return g.ay(F,J)})};g.z(I6a,g.uA);g.A=I6a.prototype;g.A.OyN=function(F){this.H9({onecpt:1});F.initData&&M3k(this,new Uint8Array(F.initData),F.initDataType)}; g.A.YIv=function(F){this.H9({onndky:1});M3k(this,F.initData,F.contentType)}; g.A.vc=function(F){this.H9({onneedkeyinfo:1});this.rD.S("html5_eme_loader_sync")&&(this.V.get(F.initData)||this.V.set(F.initData,F));w0_(this,F)}; g.A.j4=function(F){this.T.push(F);z$(this)}; g.A.createSession=function(F){var J=qEk(this)?xxz(F):g.zw(F.initData);this.U.get(J);this.kQ=!0;F=new TSm(this.videoData,this.rD,F,this.drmSessionId);this.U.set(J,F);F.subscribe("ctmp",this.Yi,this);F.subscribe("keystatuseschange",this.mw,this);F.subscribe("licenseerror",this.LJ,this);F.subscribe("newlicense",this.dV,this);F.subscribe("newsession",this.lw,this);F.subscribe("sessionready",this.BB,this);F.subscribe("fairplay_next_need_key_info",this.qz,this);this.rD.S("html5_enable_vp9_fairplay")&&F.subscribe("qualitychange", this.DK,this);this.rD.S("html5_enable_sabr_drm_hd720p")&&F.subscribe("sabrlicenseconstraint",this.x0I,this);YWG(F,this.Z)}; g.A.dV=function(F){this.iR()||(this.H9({onnelcswhb:1}),F&&!this.heartbeatParams&&(this.heartbeatParams=F,this.publish("heartbeatparams",F)))}; g.A.lw=function(){this.iR()||(this.H9({newlcssn:1}),this.T.shift(),this.kQ=!1,z$(this))}; g.A.BB=function(){if(PG(this.C)&&(this.H9({onsnrdy:1}),this.qf--,this.qf===0)){var F=this.Tj,J,b;(J=F.element)==null||(b=J.msSetMediaKeys)==null||b.call(J,F.T)}}; g.A.mw=function(F){if(!this.iR()){!this.fW&&this.videoData.S("html5_log_drm_metrics_on_key_statuses")&&(vaC(this),this.fW=!0);this.H9({onksch:1});var J=this.DK;if(!gr(F)&&g.c$&&F.U.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var b="large";else{b=[];var I=!0;if(gr(F))for(var u=g.N(Object.keys(F.C)),w=u.next();!w.done;w=u.next())w=w.value,F.C[w].status==="usable"&&b.push(F.C[w].type),F.C[w].status!=="unknown"&&(I=!1);if(!gr(F)||I)b=F.Z;b=kek(b)}J.call(this,b);this.publish("keystatuseschange", F)}}; g.A.Yi=function(F,J){this.iR()||this.publish("ctmp",F,J)}; g.A.qz=function(F,J){this.iR()||this.publish("fairplay_next_need_key_info",F,J)}; g.A.LJ=function(F,J,b,I){this.iR()||(this.videoData.S("html5_log_drm_metrics_on_error")&&vaC(this),this.publish("licenseerror",F,J,b,I))}; g.A.YA=function(){return this.Y}; g.A.DK=function(F){var J=g.HX("auto",F,!1,"l");if(this.videoData.PS){if(this.Y.Hg(J))return}else if(C6z(this.Y,F))return;this.Y=J;this.publish("qualitychange");this.H9({updtlq:F})}; g.A.x0I=function(F){this.videoData.sabrLicenseConstraint=F}; g.A.X_=function(){this.C.keySystemAccess&&this.element&&(this.Gj?this.element.setMediaKeys(null).catch(g.rQ):this.element.setMediaKeys(null));this.element=null;this.T=[];for(var F=g.N(this.U.values()),J=F.next();!J.done;J=F.next())J=J.value,J.unsubscribe("ctmp",this.Yi,this),J.unsubscribe("keystatuseschange",this.mw,this),J.unsubscribe("licenseerror",this.LJ,this),J.unsubscribe("newlicense",this.dV,this),J.unsubscribe("newsession",this.lw,this),J.unsubscribe("sessionready",this.BB,this),J.unsubscribe("fairplay_next_need_key_info", this.qz,this),this.rD.S("html5_enable_vp9_fairplay")&&J.unsubscribe("qualitychange",this.DK,this),J.dispose();this.U.clear();this.W.removeAll();this.V.removeAll();this.heartbeatParams=null;g.uA.prototype.X_.call(this)}; g.A.Cy=function(){for(var F={systemInfo:this.C.Cy(),sessions:[]},J=g.N(this.U.values()),b=J.next();!b.done;b=J.next())F.sessions.push(b.value.Cy());return F}; g.A.getInfo=function(){return this.U.size<=0?"no session":""+this.U.values().next().value.getInfo()+(this.D?"/KR":"")}; g.A.H9=function(F,J){J=J===void 0?!1:J;this.iR()||(dk(F),(this.rD.hJ()||J)&&this.publish("ctmp","drmlog",F))};g.z(gaC,g.R);g.A=gaC.prototype;g.A.Sq=function(){return!!this.EN}; g.A.rC=function(){return this.U}; g.A.handleError=function(F){var J=this;l6G(this,F);if((F.errorCode!=="html5.invalidstate"&&F.errorCode!=="fmt.unplayable"&&F.errorCode!=="fmt.unparseable"||!N9G(this,F.errorCode,F.details))&&!Ea3(this,F)){if(this.PN.Tj!=="yt"&&WVY(this,F)&&this.videoData.SD&&(0,g.jR)()/1E3>this.videoData.SD&&this.PN.Tj==="hm"){var b=Object.assign({e:F.errorCode},F.details);b.stalesigexp="1";b.expire=this.videoData.SD;b.init=this.videoData.H4/1E3;b.now=(0,g.jR)()/1E3;b.systelapsed=((0,g.jR)()-this.videoData.H4)/1E3; F=new E5(F.errorCode,b,2);this.wD.Je(F.errorCode,2,"SIGNATURE_EXPIRED",dk(F.details))}if(jg(F.severity)){var I;b=(I=this.wD.Zv)==null?void 0:I.C.C;if(this.PN.S("html5_use_network_error_code_enums"))if(f67(F)&&b&&b.isLocked())var u="FORMAT_UNAVAILABLE";else if(this.PN.W||F.errorCode!=="auth"||F.details.rc!==429)F.errorCode==="ump.spsrejectfailure"&&(u="HTML5_SPS_UMP_STATUS_REJECTED");else{u="TOO_MANY_REQUESTS";var w="6"}else f67(F)&&b&&b.isLocked()?u="FORMAT_UNAVAILABLE":this.PN.W||F.errorCode!=="auth"|| F.details.rc!=="429"?F.errorCode==="ump.spsrejectfailure"&&(u="HTML5_SPS_UMP_STATUS_REJECTED"):(u="TOO_MANY_REQUESTS",w="6");this.wD.Je(F.errorCode,F.severity,u,dk(F.details),w)}else this.wD.publish("nonfatalerror",F),I=/^pp/.test(this.videoData.clientPlaybackNonce),this.je(F.errorCode,F.details),I&&F.errorCode==="manifest.net.connect"&&(F="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.jR)(),lX(F,"manifest",function(M){J.W=!0;J.UQ("pathprobe",M)},function(M){J.je(M.errorCode, M.details)}))}}; g.A.UQ=function(F,J){this.wD.zF().UQ(F,J)}; g.A.je=function(F,J){J=dk(J);this.wD.zF().je(F,J)};V3z.prototype.hp=function(F,J){return(J===void 0?0:J)?{Tl:F?fj(this,F):QE,kV:F?C2a(this,F):QE,Crj:F?YEz(this,F):QE,UJf:F?O7a(this,F.videoData):QE,Kp:F?oa3(this,F.videoData,F):QE,e4Q:F?SEm(this,F):QE,u3R:T9m(this)}:{Tl:F?fj(this,F):QE}}; V3z.prototype.S=function(F){return this.rD.S(F)};g.z(Wg,g.R);Wg.prototype.onError=function(F){if(F!=="player.fatalexception"||this.provider.S("html5_exception_to_health"))F==="sabr.fallback"&&(this.encounteredSabrFallback=!0),F.match(Uub)?this.networkErrorCount++:this.nonNetworkErrorCount++}; Wg.prototype.send=function(){if(!(this.T||this.C<0)){UdG(this);var F=g.dr(this.provider)-this.C,J="PLAYER_PLAYBACK_STATE_UNKNOWN",b=this.playerState.e6;this.playerState.isError()?J=b&&b.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.x(this.playerState,2)?J="PLAYER_PLAYBACK_STATE_ENDED":g.x(this.playerState,64)?J="PLAYER_PLAYBACK_STATE_UNSTARTED":g.x(this.playerState,16)||g.x(this.playerState,32)?J="PLAYER_PLAYBACK_STATE_SEEKING":g.x(this.playerState,1)&&g.x(this.playerState, 4)?J="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.x(this.playerState,1)?J="PLAYER_PLAYBACK_STATE_BUFFERING":g.x(this.playerState,4)?J="PLAYER_PLAYBACK_STATE_PAUSED":g.x(this.playerState,8)&&(J="PLAYER_PLAYBACK_STATE_PLAYING");b=RW5[ze(this.provider.videoData)];a:switch(this.provider.rD.playerCanaryState){case "canary":var I="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":I="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:I="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var u=xd7(this.provider), w=this.U<0?F:this.U-this.C;F=this.provider.rD.K7+36E5<(0,g.jR)();J={started:this.U>=0,stateAtSend:J,joinLatencySecs:w,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:I,playerCanaryStage:u,isAd:this.provider.videoData.isAd(),liveMode:b,hasDrm:!!g.yR(this.provider.videoData),isGapless:this.provider.videoData.Y,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:bE(this.provider.videoData)};F||g.AY("html5PlayerHealthEvent",J);this.T=!0;this.dispose()}}; Wg.prototype.X_=function(){this.T||this.send();window.removeEventListener("error",this.Qh);window.removeEventListener("unhandledrejection",this.Qh);g.R.prototype.X_.call(this)}; var Uub=/\bnet\b/;g.z(t3G,g.R);t3G.prototype.X_=function(){H7z(this);g.R.prototype.X_.call(this)};var LV7=/[?&]cpn=/;g.z(Ei,g.R);Ei.prototype.flush=function(){var F={};this.U&&(F.pe=this.U);this.C.length>0&&(F.pt=this.C.join("."));this.C=[];return F}; Ei.prototype.stop=function(){var F=this,J,b,I;return g.S(function(u){if(u.C==1)return g.lk(u,2),g.T(u,(J=F.Z)==null?void 0:J.stop(),4);if(u.C!=2)return(b=u.U)&&F.logTrace(b),g.Wa(u,0);I=g.dY(u);F.U=MSv(I.message);g.N4(u)})}; Ei.prototype.logTrace=function(F){this.encoder.reset();this.encoder.add(1);this.encoder.add(F.resources.length);for(var J=g.N(F.resources),b=J.next();!b.done;b=J.next()){b=b.value.replace("https://www.youtube.com/s/","");this.encoder.add(b.length);for(var I=0;I=0?F:g.dr(this.provider),["PL","B","S"].indexOf(this.r0)>-1&&(!g.Vj(this.C)||F>=this.D+30)&&(g.VT(this,F,"vps",[this.r0]),this.D=F),!g.Vj(this.C))){this.sequenceNumber===7E3&&g.rQ(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){Bg(this,F);var J=this.provider.wD.Kt();J=g.N(J);for(var b=J.next();!b.done;b=J.next())b=b.value,this.UQ(b.key,b.value);J=F;b=this.provider.wD.mH();var I=b.droppedVideoFrames||0,u=b.totalVideoFrames|| 0,w=I-this.aq,M=u&&!this.bN;I>b.totalVideoFrames||w>5E3?NC3(this,"html5.badframedropcount","df."+I+";tf."+b.totalVideoFrames):(w>0||M)&&g.VT(this,J,"df",[w]);this.aq=I;this.bN=u;this.N>0&&(g.VT(this,F,"glf",[this.N]),this.N=0);bs.isActive()&&(F=bs.Or(),Object.keys(F).length>0&&this.UQ("profile",F));this.Q2&&T$(this,"lwnmow");this.provider.rD.hJ()&&this.provider.S("html5_record_now")&&this.UQ("now",{wt:(0,g.jR)()});F={};this.provider.videoData.U&&(F.fmt=this.provider.videoData.U.itag,(J=this.provider.videoData.Z)&& J.itag!==F.fmt&&(F.afmt=J.itag));F.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(F.adcpn=this.adCpn);this.Tj&&(F.addocid=this.Tj);this.contentCpn&&(F.ccpn=this.contentCpn);this.Gj&&(F.cdocid=this.Gj);this.provider.videoData.cotn&&(F.cotn=this.provider.videoData.cotn);F.el=$s(this.provider.videoData);F.content_v=QR(this.provider.videoData);F.ns=this.provider.rD.Tj;F.fexp=l07(this.provider.rD.experiments).toString();F.cl=(728418168).toString();(J=this.provider.videoData.adFormat||this.adFormat)&& (F.adformat=J);(J=ze(this.provider.videoData))&&(F.live=J);this.provider.videoData.So()&&(F.drm=1,this.provider.videoData.D&&(F.drm_system=sFt[this.provider.videoData.D.flavor]||0),this.provider.videoData.Gc&&(F.drm_product=this.provider.videoData.Gc));Mk()&&this.provider.videoData.W&&(F.ctt=this.provider.videoData.W,F.cttype=this.provider.videoData.kZ,this.provider.videoData.mdxEnvironment&&(F.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(F.dai= this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.P4&&(F.dai_fallback="1")):this.provider.videoData.r9?F.dai="cs":this.provider.videoData.vP&&(F.dai="disabled");F.seq=this.sequenceNumber++;if(this.provider.videoData.AR){if(J=this.provider.videoData.AR,F&&J)for(J.ns==="3pp"&&(F.ns="3pp"),this.g9.has(J.ns)&&T$(this,"hbps"),J.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=J.shbpslc),b=g.N(Object.keys(J)),I=b.next();!I.done;I=b.next())I=I.value,this.Ly.has(I)|| (F[I]=J[I])}else F.event="streamingstats",F.docid=this.provider.videoData.videoId,F.ei=this.provider.videoData.eventId;this.isEmbargoed&&(F.embargoed="1");Object.assign(F,this.provider.rD.C);if(J=F.seq)J={cpn:this.provider.videoData.clientPlaybackNonce,sequenceNumber:+J,serializedWatchEndpointLoggingContext:this.provider.videoData.xz},this.serializedHouseBrandPlayerServiceLoggingContext&&(J.serializedHouseBrandPlayerServiceLoggingContext=lV(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0), this.provider.videoData.playerResponseCpn&&(J.playerResponseCpn=this.provider.videoData.playerResponseCpn),G$.length&&(J.decoderInfo=G$),this.provider.wD.IH()&&(J.transitionStitchType=4,this.kQ&&(J.timestampOffsetMsecs=this.kQ)),this.remoteControlMode&&(J.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(J.remoteConnectedDevices=this.remoteConnectedDevices),J=g.ux(J,qho),J=g.zw(J,4),this.C.qclc=[J];F=g.Os("//"+this.provider.rD.Dc+"/api/stats/qoe",F);b=J="";I=g.N(Object.keys(this.C)); for(u=I.next();!u.done;u=I.next())u=u.value,this.C[u]===null?g.rQ(new g.hC("Stats report key has invalid value",u)):(u="&"+u+"="+this.C[u].join(","),u.length>100?b+=u:J+=u);mUm(this,F+J,b.replace(/ /g,"%20"))}this.C={}}}; g.A.zV=function(F){this.Q2=F}; g.A.X6=function(){if(this.provider.videoData.D){var F=this.provider.videoData.D;T$(this,"eme-"+(F.keySystemAccess?"final":PG(F)?"ms":rd(F)?"ytfp":TF(F)?"safarifp":"nonfinal"))}}; g.A.K_=function(F){var J=g.dr(this.provider);if(!this.provider.rD.experiments.pW("html5_refactor_sabr_video_format_selection_logging")||F.C.id!==this.zj){var b=[F.C.id,F.U,this.zj,F.reason];F.token&&b.push(F.token);g.VT(this,J,"vfs",b);this.zj=F.C.id;b=this.provider.wD.getPlayerSize();if(b.width>0&&b.height>0){b=[Math.round(b.width),Math.round(b.height)];var I=g.ow();I>1&&b.push(I);g.VT(this,J,"view",b)}this.nW||(this.provider.rD.hJ()&&T$(this,"rqs2"),this.provider.videoData.C&&Mv(this.provider.videoData.C)&& (this.C.preload=["1"]));this.T=this.nW=!0}F.reason==="m"&&++this.xo===100&&lJC(this,2);g.VT(this,J,"vps",[this.r0]);this.reportStats(J)}; g.A.dC=function(F){var J=g.dr(this.provider);if(this.provider.rD.experiments.pW("html5_refactor_sabr_audio_format_selection_logging")){J=F.C;var b=[J.audio&&J.video?J.zg?J.zg:"":J.id];J.j3&&J.j3.id&&b.push(J.j3.id);J=b.join(";");J!==this.V&&(b=[J,this.V,F.reason],F.token&&b.push(F.token),g.VT(this,g.dr(this.provider),"afs",b),this.V=J)}else F.C.id!==this.V&&(b=[F.C.id,this.V,F.reason],F.token&&b.push(F.token),g.VT(this,J,"afs",b),this.V=F.C.id)}; g.A.gK=bk(55);g.A.rT=function(F){this.isEmbargoed=F}; g.A.XF=bk(33);g.A.IQ=bk(38);g.A.onPlaybackRateChange=function(F){var J=g.dr(this.provider);F&&F!==this.MI&&(g.VT(this,J,"rate",[F]),this.MI=F);this.reportStats(J)}; g.A.yz=bk(28);g.A.getPlayerState=function(F){if(g.x(F,128))return"ER";if(g.x(F,2048))return"B";if(g.x(F,512))return"SU";if(g.x(F,16)||g.x(F,32))return"S";if(F.isOrWillBePlaying()&&g.x(F,64))return"B";var J=xu8[qO(F)];g.jB(this.provider.rD)&&J==="B"&&this.provider.wD.getVisibilityState()===3&&(J="SU");J==="B"&&g.x(F,4)&&(J="PB");return J}; g.A.X_=function(){g.R.prototype.X_.call(this);g.ii(this.W);g.ii(this.Kk)}; g.A.pZ=function(F){this.isOffline=F;g.VT(this,g.dr(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.A.UQ=function(F,J,b){var I=this.C.ctmp||[],u=this.M0.indexOf(F)!==-1;u||this.M0.push(F);if(!b||!u){var w=typeof J!=="string"?dk(J):J;w=fJz(w);if(!b&&!/^t[.]/.test(w)){var M=g.dr(this.provider)*1E3;w="t."+M.toFixed()+";"+w}I.push(F+":"+w);this.logger.debug(function(){return"ctmp "+F+" "+w}); this.C.ctmp=I;yf3(this);return M}}; g.A.Ep=function(F,J,b){this.Z={idW:Number(this.UQ("glrem",{nst:F.toFixed(),rem:J.toFixed(),ca:+b})),Tm:F,UkD:J,isAd:b}}; g.A.Bl=function(F,J,b){g.VT(this,g.dr(this.provider),"ad_playback",[F,J,b])}; g.A.M5=function(F,J){var b=g.dr(this.provider)*1E3,I=this.C.daism||[];I.push("t."+b.toFixed(0)+";smw."+(F*1E3).toFixed(0)+";smo."+(J*1E3).toFixed(0));this.C.daism=I}; g.A.resume=function(){var F=this;this.provider.rD.hJ()&&this.UQ("ssap",{qoesus:"0",vid:this.provider.videoData.videoId});isNaN(this.W)?iSJ(this):this.W=g.g$(function(){F.reportStats()},1E4)}; var zz={},xu8=(zz[5]="N",zz[-1]="N",zz[3]="B",zz[0]="EN",zz[2]="PA",zz[1]="PL",zz[-1E3]="ER",zz[1E3]="N",zz),G$=[];EbC.prototype.Lt=function(){return this.C}; EbC.prototype.update=function(){if(this.V){var F=this.provider.wD.pV(this.provider.videoData.clientPlaybackNonce)||0,J=g.dr(this.provider);F>=this.provider.wD.getDuration()-.1&&(this.previouslyEnded=!0);if(F!==this.C||VS7(this,F,J)){var b;if(!(b=FJ-this.y5+2||VS7(this,F,J))){b=this.provider.wD.getVolume();var I=b!==this.N,u=this.provider.wD.isMuted()?1:0;u!==this.Y?(this.Y=u,b=!0):(!I||this.Z>=0||(this.N=b,this.Z=J),b=J-this.Z,this.Z>=0&&b>2?(this.Z=-1,b=!0):b=!1)}b&&(YU(this),this.T= F);this.y5=J;this.C=F}}};Pzo.prototype.send=function(F){var J=this;if(!this.Jz){var b=TCY(this),I=g.Os(this.uri,b);this.rD.S("vss_through_gel_double")&&rfk(I);this.Gj&&!this.rD.S("html5_simplify_pings")?Cza(this,I):BCa(this,F).then(function(u){J.Gj&&(u=u||{},u.method="POST",u.postParams={atr:J.attestationResponse});IJz(I,u,{token:J.Tj,Ix:J.cN,mdxEnvironment:J.mdxEnvironment},J.rD,F,J.kQ,J.isFinal&&J.K7||J.WN||J.T&&J.xH)}); this.Jz=!0}}; Pzo.prototype.U=function(F){F===void 0&&(F=NaN);return Number(F.toFixed(3)).toString()}; var Ny={},Y_Y=(Ny.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,Ny.LIVING_ROOM_APP_MODE_MAIN=1,Ny.LIVING_ROOM_APP_MODE_KIDS=2,Ny.LIVING_ROOM_APP_MODE_MUSIC=3,Ny.LIVING_ROOM_APP_MODE_UNPLUGGED=4,Ny.LIVING_ROOM_APP_MODE_GAMING=5,Ny),ls={},s7Y=(ls.EMBEDDED_PLAYER_MODE_UNKNOWN=0,ls.EMBEDDED_PLAYER_MODE_DEFAULT=1,ls.EMBEDDED_PLAYER_MODE_PFP=2,ls.EMBEDDED_PLAYER_MODE_PFL=3,ls);g.z(Cj,g.R);g.A=Cj.prototype;g.A.aP=function(){this.C.update();hHo(this)&&(Q7C(this),RHJ(this),this.t6())}; g.A.X_=function(){g.R.prototype.X_.call(this);Rm(this);j7z(this.C)}; g.A.Cy=function(){return TCY(XJ(this,"playback"))}; g.A.t6=function(){this.provider.videoData.V.eventLabel=$s(this.provider.videoData);this.provider.videoData.V.playerStyle=this.provider.rD.playerStyle;this.provider.videoData.pF&&(this.provider.videoData.V.feature="pyv");this.provider.videoData.V.vid=this.provider.videoData.videoId;var F=this.provider.videoData.V;var J=this.provider.videoData;J=J.isAd()||!!J.pF;F.isAd=J}; g.A.C8=function(F){var J=XJ(this,"engage");J.eE=F;return S_a(J,ZS_(this.provider))};tSC.prototype.isEmpty=function(){return this.endTime===this.startTime};kU.prototype.S=function(F){return this.rD.S(F)}; kU.prototype.getCurrentTime=function(F){if(this.S("html5_ssap_current_time_for_logging_refactor")){var J=this.wD.IH();if(J&&(F=F||J.h4()))return Mp(J,F)}else if(g.oH(this.videoData)){var b=this.wD.IH();if(b)return F=this.wD.getCurrentTime(),b=(((J=Pl(b,F*1E3))==null?void 0:J.ac)||0)/1E3,F-b}return this.wD.getCurrentTime()}; kU.prototype.Fb=function(F){if(this.S("html5_ssap_current_time_for_logging_refactor")){var J=this.wD.IH();if(J&&(F=F||J.h4()))return Mp(J,F)}else if(g.oH(this.videoData)){var b=this.wD.IH();if(b)return F=this.wD.Fb(),b=(((J=Pl(b,F*1E3))==null?void 0:J.ac)||0)/1E3,F-b}return this.wD.Fb()}; var HSG={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.z(g.Oi,g.R);g.A=g.Oi.prototype;g.A.aP=function(){if(this.provider.videoData.enableServerStitchedDai&&this.UV){var F;(F=this.T.get(this.UV))==null||F.aP()}else this.C&&this.C.aP()}; g.A.rT=function(F){this.qoe&&this.qoe.rT(F)}; g.A.XF=bk(32);g.A.IQ=bk(37);g.A.M5=function(F,J){this.qoe&&this.qoe.M5(F,J)}; g.A.je=function(F,J){this.qoe&&NC3(this.qoe,F,J);if(this.U)this.U.onError(F)}; g.A.K_=function(F){this.qoe&&this.qoe.K_(F)}; g.A.dC=function(F){this.qoe&&this.qoe.dC(F)}; g.A.onPlaybackRateChange=function(F){if(this.qoe)this.qoe.onPlaybackRateChange(F);this.C&&YU(this.C.C)}; g.A.gK=bk(54);g.A.UQ=function(F,J,b){this.qoe&&this.qoe.UQ(F,J,b)}; g.A.Ep=function(F,J,b){this.qoe&&this.qoe.Ep(F,J,b)}; g.A.dM=function(F){var J;(J=this.qoe)==null||J.dM(F)}; g.A.V_=function(F){var J;(J=this.qoe)==null||J.V_(F)}; g.A.zV=function(F){this.qoe&&this.qoe.zV(F)}; g.A.Bl=function(F,J,b){this.qoe&&this.qoe.Bl(F,J,b)}; g.A.yz=bk(27);g.A.H2=function(){if(this.qoe)return this.qoe.H2()}; g.A.Cy=function(){if(this.provider.videoData.enableServerStitchedDai&&this.UV){var F,J;return(J=(F=this.T.get(this.UV))==null?void 0:F.Cy())!=null?J:{}}return this.C?this.C.Cy():{}}; g.A.Lu=function(){var F;return(F=this.qoe)==null?void 0:F.Lu()}; g.A.ol=function(F,J){var b;(b=this.qoe)==null||b.ol(F,J)}; g.A.C8=function(F){return this.C?this.C.C8(F):function(){}}; g.A.t6=function(){this.C&&this.C.t6()}; g.A.getVideoData=function(){return this.provider.videoData}; g.A.resume=function(){this.qoe&&this.qoe.resume()};g.z(hX,g.R); hX.prototype.g2=function(F,J,b){if(this.C.has(F)){var I=this.C.get(F);if(J.videoId&&!LyJ(I))this.U.UQ("ssap",{rlc:F}),aWY(this,F);else return}if(!this.C.has(F)){I=new kU(J,this.rD,this.wD);var u=Math.round(g.dr(this.U.provider)*1E3);I=new g.Oi(I,u);LyJ(I)||this.U.UQ("nqv",{vv:J.videoId});u=this.U.getVideoData();this.C.set(F,I);if(I.qoe){var w=I.qoe,M=u.videoId||"";w.contentCpn=u.clientPlaybackNonce;w.Gj=M}FQ_(I);b===2&&(this.rD.S("html5_log_ad_playback_docid")?(b=this.U,b.qoe&&(b=b.qoe,I=J.If||"", u=J.breakType||0,J=J.videoId||"",w=this.rD.Tj||"yt",g.VT(b,g.dr(b.provider),"ad_playback",[F,I,u,J,w]))):this.U.Bl(F,J.If||"",J.breakType||0))}}; hX.prototype.wS=function(F,J,b,I,u,w,M,q){if(F!==J){var v=this.zF(F),a=this.zF(J),e,K=F===((e=v.getVideoData())==null?void 0:e.clientPlaybackNonce),p;e=J===((p=a.getVideoData())==null?void 0:p.clientPlaybackNonce);var m;p=K?((m=v.getVideoData())==null?void 0:m.videoId)||"":"nvd";var y;m=e?((y=a.getVideoData())==null?void 0:y.videoId)||"":"nvd";K&&(v=v.qoe)!=null&&(SA(v,4,w?4:u?2:0,J,m,b),v.reportStats());e&&(om(a),(J=a.qoe)!=null&&(SA(J,4,w?5:u?3:1,F,p,I),J.reportStats()),IWa(a,new g.vL(M,a.r0)), JXo(a));q&&aWY(this,F)}}; hX.prototype.zF=function(F){F=F||this.UV;return this.C.get(F)||this.U};g.z(g.cg,g.R);g.A=g.cg.prototype; g.A.TU=function(F,J){this.sync();J&&this.C.array.length>=2E3&&this.oG("captions",1E4);J=this.C;if(F.length>1&&F.length>J.array.length)J.array=J.array.concat(F),J.array.sort(J.C);else for(var b=g.N(F),I=b.next();!I.done;I=b.next())I=I.value,!J.array.length||J.C(I,J.array[J.array.length-1])>0?J.array.push(I):g.eJ(J.array,I,J.C);F=g.N(F);for(J=F.next();!J.done;J=F.next())J=J.value,J.namespace==="ad"&&this.Z("ssap",{acrsid:J.getId(),acrsst:J.start,acrset:J.end,acrscpt:J.playerType});this.T=NaN;this.sync()}; g.A.L4=function(F){F.length>1E4&&g.rQ(new g.hC("Over 10k cueRanges removal occurs with a sample: ",F[0]));if(!this.iR()){for(var J=g.N(F),b=J.next();!b.done;b=J.next())(b=b.value)&&b.namespace==="ad"&&this.Z("ssap",{rcrid:b.getId(),rcst:b.start,rcet:b.end,rcpt:b.playerType});var I=new Set(F);this.U=this.U.filter(function(u){return!I.has(u)}); ijG(this.C,I);this.sync()}}; g.A.oG=function(F,J){var b=(isNaN(this.T)?g.x(this.W(),2)?0x8000000000000:this.N()*1E3:this.T)-J;J=this.Y4().filter(function(I){return I.namespace===F&&I.endthis.C,w=g.x(b,8)&&g.x(b,16),M=this.wD.o6().isBackground()||b.isSuspended();ut(this,this.bR,w&&!M,u,"qoe.slowseek",function(){},"timeout"); var q=isFinite(this.C);q=w&&q&&PD4(J,this.C);var v=!I||Math.abs(I-this.C)>10,a=this.rD.S("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),e=I===0&&this.U&&[11,10].includes(this.U);ut(this,this.cN,q&&v&&!M&&(!a||!e),u,"qoe.slowseek",function(){J.seekTo(F.C)},"set_cmt"); v=q&&Mt(J.Z4(),this.C);var K=this.wD.Zv;q=!K||K.YM();var p=function(){J.seekTo(F.C+.001)}; ut(this,this.zj,v&&q&&!M,u,"qoe.slowseek",p,"jiggle_cmt");q=function(){return F.wD.sV()}; ut(this,this.Jz,v&&!M,u,"qoe.slowseek",q,"new_elem");v=AV(b);a=b.isBuffering();var m=J.Z4(),y=wu(m,I),f=y>=0&&m.end(y)>I+5,d=v&&a&&f;e=this.wD.getVideoData();ut(this,this.KW,I<.002&&this.C<.002&&w&&g.jB(this.rD)&&g.Xc(e)&&!M,u,"qoe.slowseek",q,"slow_seek_shorts");ut(this,this.Tj,e.yM()&&w&&!M&&!e.Gj,u,"qoe.slowseek",q,"slow_seek_gapless_shorts");ut(this,this.Gj,d&&!M,v&&!a,"qoe.longrebuffer",p,"jiggle_cmt");ut(this,this.kQ,d&&!M,v&&!a,"qoe.longrebuffer",q,"new_elem_nnr");if(K){var G=K.getCurrentTime(); w=J.mQ();w=y53(w,G);w=!K.isSeeking()&&I===w;ut(this,this.Kk,v&&a&&w&&!M,v&&!a&&!w,"qoe.longrebuffer",function(){J.seekTo(G)},"seek_to_loader")}w={}; p=wu(m,Math.max(I-3.5,0));d=p>=0&&I>m.end(p)-1.1;var P=p>=0&&p+1=0&&d&&P<11;w.close2edge=d;w.gapsize=P;w.buflen=m.length;this.U&&(w.seekSour=this.U);if(p=this.wD.IH()){d=p.h4();P=d!==Pl(p,I*1E3).clipId;var r=g.eB(this.rD.experiments,"html5_ssap_skip_seeking_offset_ms"),Q=(V5(p,d)+r)/1E3;ut(this,this.fW,P&&v&&a&&!M,v&&!a,"qoe.longrebuffer",function(){J.seekTo(Q)},"ssap_clip_not_match")}ut(this,this.WN,v&&a&&!M,v&&!a,"qoe.longrebuffer", function(){},"timeout",w); w=b.isSuspended();w=this.wD.wK()&&!w;ut(this,this.V,w,!w,"qoe.start15s",function(){F.wD.d6("ad")},"ads_preroll_timeout"); p=I-this.Z<.5;var D;w=!((D=this.wD.IH())==null||!D.zc());P=(d=e.isAd()||w&&this.rD.experiments.pW("html5_ssap_skip_slow_ad"))&&v&&!a&&p;D=function(){var t=F.wD,n=g.oH(t.videoData)&&t.II,uk=t.t_.getVideoData();(uk&&t.videoData.isAd()&&uk.r9===t.getVideoData().r9||!t.videoData.Uo)&&!n?t.Je("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+t.videoData.videoId):Mb(t.videoData,"html5_ssap_skip_slow_ad")&&n&&t.II.zc()&&(t.je(new E5("ssap.transitionfailure",{cpn:Pl(t.II,t.Fb()).clipId,pcpn:t.II.h4(), cmt:t.Fb()})),t=t.II,n=t.playback.Fb(),(n=Ala(t,n))&&bs3(t,n.jo()/1E3))}; ut(this,this.Um,P,!P,"ad.rebuftimeout",D,"skip_slow_ad");p=d&&a&&Mt(J.Z4(),I+5)&&p;ut(this,this.Q2,p&&!M,!p,"ad.rebuftimeout",D,"skip_slow_ad_buf");D=b.isOrWillBePlaying()&&g.x(b,64)&&!M;ut(this,this.Om,D,u,"qoe.start15s",function(){},"timeout"); D=!!K&&!K.HN&&b.isOrWillBePlaying();ut(this,this.qf,D,u,"qoe.start15s",q,"newElemMse");D=ve(m,0);p=g.x(b,16)||g.x(b,32);p=!M&&b.isOrWillBePlaying()&&a&&!p&&(g.x(b,64)||I===0)&&D>5;ut(this,this.nW,g.Xc(e)&&p,v&&!a,"qoe.longrebuffer",function(){F.wD.M$()},"reset_media_source"); ut(this,this.oI,g.Xc(e)&&p,v&&!a,"qoe.longrebuffer",q,"reset_media_element");this.Z===0&&(this.W=I);p=a&&this.C===0&&I>1&&I===this.W;ut(this,this.dD,g.Xc(e)&&p,v&&!a,"qoe.slowseek",function(){J.seekTo(0)},"reseek_after_time_jump"); M=b.isOrWillBePlaying()&&!M;f=this.wD.LP()-I<6&&!f&&this.wD.Rs();ut(this,this.Y,e.yM()&&M&&a&&f,v&&!a,"qoe.longrebuffer",function(){F.wD.sV(!1,!0)},"handoff_end_long_buffer_reload"); K=(K==null?void 0:lhY(K))||NaN;K=m.length>1||!isNaN(K)&&K-.1<=I;ut(this,this.N,LC(e)&&M&&a&&K,v&&!a,"qoe.longrebuffer",q,"gapless_slice_append_stuck");K=y>=0&&m.end(y)>=2;M=LC(e)&&this.wD.dN&&K&&!e.Gj&&M&&(a||g.x(b,8)&&g.x(b,16));ut(this,this.eE,M,u,"qoe.start15s",q,"gapless_slow_start");b=!!(w&&D>5&&b.isPlaying()&&I<.1);ut(this,this.xm,b,I>.5&&v,"qoe.longrebuffer",q,"ssap_stuck_in_ad_beginning");this.Z=I;this.D.start()}}; IX.prototype.je=function(F,J,b){J=this.Cy(J);J.wn=b;J.wdup=this.T[F]?"1":"0";this.wD.je(new E5(F,J));this.T[F]=!0}; IX.prototype.Cy=function(F){F=Object.assign(this.wD.Cy(!0),F.Cy());this.C&&(F.stt=this.C.toFixed(3));this.wD.getVideoData().isLivePlayback&&(F.ct=this.wD.getCurrentTime().toFixed(3),F.to=this.wD.Xq().toFixed(3));delete F.uga;delete F.euri;delete F.referrer;delete F.fexp;delete F.vm;return F}; JZ.prototype.reset=function(){this.C=this.U=this.T=this.startTimestamp=0;this.Z=!1}; JZ.prototype.test=function(F){if(!this.D||this.U)return!1;if(!F)return this.reset(),!1;F=(0,g.jR)();if(!this.startTimestamp)this.startTimestamp=F,this.T=0;else if(this.T>=this.D)return this.U=F,!0;this.T+=1;return!1}; JZ.prototype.Cy=function(){var F={},J=(0,g.jR)();this.startTimestamp&&(F.wsd=(J-this.startTimestamp).toFixed());this.U&&(F.wtd=(J-this.U).toFixed());this.C&&(F.wssd=(J-this.C).toFixed());return F};g.z(Xg7,g.R);g.A=Xg7.prototype;g.A.setMediaElement=function(F){(this.mediaElement=F)?(this.mediaElement&&(this.D||this.Z||!this.mediaElement.BR()||this.seekTo(.01,{Ky:"seektimeline_setupMediaElement"})),wo(this)):AZ(this)}; g.A.getCurrentTime=function(){if(Mg(this.wD)){if(!isNaN(this.U))return this.U}else if(!isNaN(this.U)&&isFinite(this.U))return this.U;return this.mediaElement&&Zj7(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.Z||0}; g.A.bK=function(){return this.oI}; g.A.Fb=function(){return this.getCurrentTime()-this.Xq()}; g.A.z8=function(){return this.C?this.C.z8():Infinity}; g.A.isAtLiveHead=function(F){if(!this.C)return!1;F===void 0&&(F=this.getCurrentTime());return Lj(this.C,F)}; g.A.B0=function(){return!!this.C&&this.C.B0()}; g.A.seekTo=function(F,J){var b=J===void 0?{}:J;J=b.o$===void 0?!1:b.o$;var I=b.ZK===void 0?0:b.ZK;var u=b.sL===void 0?!1:b.sL;var w=b.rd===void 0?0:b.rd;var M=b.Ky===void 0?"":b.Ky;var q=b.seekSource===void 0?void 0:b.seekSource;var v=b.C1===void 0?!1:b.C1;var a=b.g$===void 0?!1:b.g$;b=b.Ki===void 0?!1:b.Ki;v&&(F+=this.Xq());bE(this.videoData)&&this.S("html5_sabr_enable_utc_seek_requests")&&q===29&&(this.oI=void 0);v=F=this.lC())||!g.dS(this.videoData),e||(f={st:f,mst:this.lC()},this.C&&this.S("html5_high_res_seek_logging")&&(f.ht=this.C.z8(),f.adft=Trm(this.C)),this.wD.UQ("seeknotallowed",f)),f=e));if(!f)return this.T&&(this.T=null,nUm(this)),g.yX(this.getCurrentTime());f=.005;a&&this.S("html5_sabr_seek_no_shift_tolerance")&&(f=0);if(Math.abs(F-this.U)<=f&&this.eE)return this.D;M&&(f=F,(this.rD.hJ()||this.S("html5_log_seek_reasons"))&& this.wD.UQ("seekreason",{reason:M,tgt:f}));q&&(this.kQ.U=q);this.eE&&AZ(this);this.D||(this.D=new xn);F&&!isFinite(F)&&k$_(this,!1);(M=b||v)||(M=F,M=!(this.videoData.isLivePlayback&&this.videoData.T&&!this.videoData.T.C&&!(this.mediaElement&&this.mediaElement.kR()>0&&tG(this.mediaElement)>0)||qb(this.videoData)&&this.Ho()===this.lC(!1)?0:isFinite(M)||!qb(this.videoData)));M||(F=vO(this,F,u));F&&!isFinite(F)&&k$_(this,!1);this.Z=F;this.zj=w;this.U=F;this.N=0;this.C&&(u=this.C,w=F,rXG(u,w,!1),Si7(u, w));u=this.wD;w=F;M={o$:J,seekSource:q};u.dY.Z=w;b=u.dI;b.mediaTime=w;b.C=!0;M.o$&&u.MG(M);M=w>u.videoData.endSeconds&&w>u.videoData.limitedPlaybackDurationInSeconds;u.nN&&M&&isFinite(w)&&Bo3(u);wJ.start&&Bo3(this.wD);return this.D}; g.A.lC=function(F){if(!this.videoData.isLivePlayback)return Iga(this.wD);var J;return nY(this.videoData)&&((J=this.mediaElement)==null?0:J.isPaused())&&this.videoData.C?(F=this.getCurrentTime(),Myk(this.Ze(F)*1E3)+F):this.S("html5_sabr_parse_live_metadata_playback_boundaries")&&bE(this.videoData)&&this.videoData.C?F?this.videoData.C.eE||0:this.videoData.C.G8||0:qb(this.videoData)&&this.videoData.fW&&this.videoData.C?this.videoData.C.lC()+this.timestampOffset:this.videoData.T&&this.videoData.T.C?!F&& this.C?this.C.z8():Iga(this.wD)+this.timestampOffset:this.mediaElement?oR()?Myk(this.mediaElement.l_().getTime()):tG(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.A.Ho=function(){if(g.oH(this.videoData)){var F=this.wD;g.oH(F.videoData);var J,b;return(b=(J=F.II)==null?void 0:J.Ho())!=null?b:F.videoData.Ho()}if(this.S("html5_sabr_parse_live_metadata_playback_boundaries")&&bE(this.videoData)){var I;return((I=this.videoData.C)==null?void 0:I.rf)||0}J=this.videoData?this.videoData.Ho()+this.timestampOffset:this.timestampOffset;return nY(this.videoData)&&this.videoData.C&&(b=Number((F=this.videoData.progressBarStartPosition)==null?void 0:F.utcTimeMillis)/1E3,F= this.getCurrentTime(),F=this.Ze(F)-F,!isNaN(b)&&!isNaN(F))?Math.max(J,b-F):J}; g.A.dU=function(){this.D||this.seekTo(this.Z,{Ky:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.A.RD=function(){return this.eE&&!isFinite(this.U)}; g.A.X_=function(){OjJ(this,null);this.kQ.dispose();g.R.prototype.X_.call(this)}; g.A.Cy=function(){var F={};this.Zv&&Object.assign(F,this.Zv.Cy());this.mediaElement&&Object.assign(F,this.mediaElement.Cy());return F}; g.A.mL=function(F){this.timestampOffset=F}; g.A.getStreamTimeOffset=function(){return qb(this.videoData)?0:this.videoData.C?this.videoData.C.getStreamTimeOffset():0}; g.A.Xq=function(){return this.timestampOffset}; g.A.Ze=function(F){return this.videoData&&this.videoData.C?this.videoData.C.Ze(F-this.timestampOffset):NaN}; g.A.jN=function(){if(!this.mediaElement)return 0;if(EW(this.videoData)){var F=this.mediaElement,J=F.Z4();F=(qt(J)>0&&F.getDuration()?J.end(J.length-1):0)+this.timestampOffset-this.Ho();J=this.lC()-this.Ho();return Math.max(0,Math.min(1,F/J))}return this.mediaElement.jN()}; g.A.TV=function(F){this.W&&(this.W.C=F)}; g.A.CI=function(F,J){this.wD.UQ("requestUtcSeek",{time:F});bE(this.videoData)&&this.S("html5_sabr_enable_utc_seek_requests")&&(this.oI=F);var b;(b=this.Zv)==null||b.CI(F);J&&(this.Gj=J)}; g.A.l4=function(F){bE(this.videoData)&&this.S("html5_sabr_enable_utc_seek_requests")&&(this.oI=void 0);if(this.Gj)this.wD.UQ("utcSeekingFallback",{source:"streamTime",timeSeconds:this.Gj}),this.wD.seekTo(this.Gj,{Ky:"utcSeekingFallback_streamTime"}),this.Gj=0;else{var J=this.getCurrentTime();isNaN(J)||(F=this.Ze(J)-F,J-=F,this.wD.UQ("utcSeekingFallback",{source:"estimate",timeSeconds:J}),this.wD.seekTo(J,{Ky:"utcSeekingFallback_estimate"}))}}; g.A.hP=function(){this.Gj=0}; g.A.S=function(F){return this.rD&&this.rD.S(F)};g.z(aX,g.R);aX.prototype.start=function(){this.U.start()}; aX.prototype.stop=function(){this.U.stop()}; aX.prototype.clear=function(){for(var F=g.N(this.C.values()),J=F.next();!J.done;J=F.next())J.value.clear()}; aX.prototype.sample=function(){for(var F=g.N(this.T),J=F.next();!J.done;J=F.next()){var b=g.N(J.value);J=b.next().value;b=b.next().value;this.C.has(J)||this.C.set(J,new IxC(npL.has(J)));this.C.get(J).update(b())}this.U.start()}; var npL=new Set(["networkactivity"]);IxC.prototype.update=function(F){this.C?(this.buffer.add(F-this.C_||0),this.C_=F):this.buffer.add(F)}; IxC.prototype.clear=function(){this.buffer.clear();this.C_=0};p1.prototype.Ax=function(){return this.started}; p1.prototype.start=function(){this.started=!0}; p1.prototype.reset=function(){this.finished=this.started=!1};var q$C=!1;g.z(g.it,g.uA);g.A=g.it.prototype;g.A.X_=function(){this.logger.debug("dispose");g.ii(this.Eh);p0_(this.G0);this.visibility.unsubscribe("visibilitystatechange",this.G0);fx7(this);lt(this);g.D_.q_(this.Wk);this.rg();this.Pg=null;g.q8(this.videoData);g.q8(this.Qd);g.q8(this.Gx);g.q8(this.Pa);g.vk(this.t3I);this.nN=null;g.uA.prototype.X_.call(this)}; g.A.Bl=function(F,J,b,I,u){if(this.rD.S("html5_log_ad_playback_docid")){var w=this.zF();if(w.qoe){w=w.qoe;var M=this.rD.Tj||"yt";g.VT(w,g.dr(w.provider),"ad_playback",[F,J,b,u,M])}}else this.zF().Bl(F,J,b);this.S("html5_log_media_perf_info")&&this.UQ("adloudness",{ld:I.toFixed(3),cpn:F})}; g.A.M4=function(){var F;return(F=this.Zv)==null?void 0:F.M4()}; g.A.E5=function(){var F;return(F=this.Zv)==null?void 0:F.E5()}; g.A.cQ=function(){var F;return(F=this.Zv)==null?void 0:F.cQ()}; g.A.yw=function(){var F;return(F=this.Zv)==null?void 0:F.yw()}; g.A.So=function(){return this.videoData.So()}; g.A.wZ=function(){return this.S("html5_not_reset_media_source")&&!this.So()&&!this.videoData.isLivePlayback&&g.Xc(this.videoData)&&!this.rD.supportsGaplessShorts()}; g.A.XR=function(){if(this.videoData.Y){var F;if(!(F=this.videoData.nI)){var J;F=(J=this.t_.F_())==null?void 0:J.M4()}this.videoData.nI=F;if(!(F=this.videoData.aX)){var b;F=(b=this.t_.F_())==null?void 0:b.E5()}this.videoData.aX=F}if(t54(this.videoData)||!xs(this.videoData))b=this.videoData.errorDetail,this.Je(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),b,b,this.videoData.yx||void 0);this.S("html5_generate_content_po_token")&&this.Bp();this.S("html5_enable_d6de4")&&this.JM(); if(this.S("html5_ssap_cleanup_player_switch_ad_player")||this.S("html5_ssap_cleanup_ad_player_on_new_data"))if(b=this.t_.Yl())this.I1=b.clientPlaybackNonce}; g.A.Db=function(){return this.Gk}; g.A.g2=function(){!this.uN||this.uN.iR();this.uN=new g.Oi(new kU(this.videoData,this.rD,this));this.Gk=new hX(this.rD,this,this.uN)}; g.A.getVideoData=function(){return this.videoData}; g.A.J=function(){return this.rD}; g.A.hp=function(F){return this.ji.hp(this.Pg,F===void 0?!1:F)}; g.A.zF=function(F){if(F)a:{for(var J=this.Gk,b=g.N(J.C.values()),I=b.next();!I.done;I=b.next())if(I=I.value,I.getVideoData().videoId===F){F=I;break a}F=J.U}else F=this.Gk.zF();return F}; g.A.o6=function(){return this.visibility}; g.A.I3=function(){return this.mediaElement&&this.mediaElement.Yx()?this.mediaElement.Pb():null}; g.A.Qa=function(){return this.mediaElement}; g.A.J2=function(){if(this.S("html5_check_video_data_errors_before_playback_start")&&this.videoData.errorCode)return!1;this.J().W&&this.J().houseBrandUserStatus&&this.UQ("hbut",{status:this.J().houseBrandUserStatus});if(this.videoData.o8())return!0;this.Je("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.A.PE=function(F){(F=F===void 0?!1:F)||g.oH(this.videoData)||om(this.zF());this.kc=F;!this.J2()||this.zz.Ax()?g.jB(this.rD)&&this.videoData.isLivePlayback&&this.zz.Ax()&&!this.zz.finished&&!this.kc&&this.Ha():(this.zz.start(),F=this.zF(),g.dr(F.provider),F.qoe&&iSJ(F.qoe),this.Ha())}; g.A.Ha=function(){if(this.videoData.isLoaded()){var F=this.Qd;g.eB(F.PN.experiments,"html5_player_min_build_cl")>0&&g.eB(F.PN.experiments,"html5_player_min_build_cl")>728418168&&ddo(F,"oldplayer");jXG(this)}else this.videoData.MJ||this.videoData.b1?this.kc&&g.jB(this.rD)&&this.videoData.isLivePlayback||(this.videoData.MJ?skm(this.videoData):(F=this.zF(),F.qoe&&(F=F.qoe,T$(F,"protected"),F.provider.videoData.D?F.X6():F.provider.videoData.subscribe("dataloaded",F.X6,F)),PMz(this.videoData))):!this.videoData.loading&& this.h1&&WPG(this)}; g.A.Ow=function(F){this.xl=F;this.Zv&&(mbv(this.Zv,new g.vg(F)),this.UQ("sdai",{sdsstm:1}))}; g.A.pQ=function(F){this.II=F;this.Zv&&this.Zv.pQ(F)}; g.A.NP=bk(15);g.A.isFullscreen=function(){return this.visibility.isFullscreen()}; g.A.isBackground=function(){return this.visibility.isBackground()}; g.A.d_=function(){var F=this;this.logger.debug("Updating for format change");zx(this).then(function(){return yM(F)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.A.Df=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.PE();this.J2()&&!g.x(this.playerState,128)&&(this.KA.Ax()||(this.KA.start(),this.videoData.XI?this.gY(IY(this.playerState,4)):this.gY(IY(IY(this.playerState,8),1))),dgm(this))}; g.A.JQ=function(){return this.zz.finished}; g.A.sendAbandonmentPing=function(){g.x(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.Xm(!0),fx7(this),g.D_.q_(this.Wk))}; g.A.vk=function(F,J){F=F===void 0?!0:F;(J===void 0||J)&&this.mediaElement&&this.mediaElement.pause();this.gY(F?new g.FC(14):new g.FC)}; g.A.B5=function(){uJY(this.zF())}; g.A.Je=function(F,J,b,I,u,w){this.logger.debug(function(){return"set player error: ec="+F+", detail="+u}); var M,q;g.jq(A_5,b)?M=b:b?q=b:M="GENERIC_WITHOUT_LINK";I=(I||"")+(";a6s."+A3());if(F==="auth"||F==="drm.auth"||F==="heartbeat.stop")b&&(I+=";r."+b.replaceAll(" ","_")),w&&(I+="sr."+w.replaceAll(" ","_"));J={errorCode:F,errorDetail:u,errorMessage:q||g.nV[M]||"",Ap:M,yx:w||"",BG:I,Zu:J,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=F;Ng(this,"dataloaderror");this.gY(bp(this.playerState,128,J));g.D_.q_(this.Wk);lt(this);this.Cc()}; g.A.d6=function(F){this.CN=this.CN.filter(function(J){return F!==J}); this.logger.debug(function(){return"set preroll ready for "+F}); g.oH(this.videoData)&&!this.Bx()&&this.qW.QJ("pl_pr");this.KA.Ax()&&dgm(this)}; g.A.Bx=function(){var F;(F=!!this.CN.length)||(F=this.f8.C.array[0],F=!!F&&F.start<=-0x8000000000000);return F}; g.A.B0=function(){return this.dY.B0()}; g.A.isPlaying=function(){return this.playerState.isPlaying()}; g.A.DR=function(){return this.playerState.DR()&&this.videoData.XI}; g.A.getPlayerState=function(){return this.playerState}; g.A.Tr=function(F){var J;(J=this.Zv)==null||J.Tr(F)}; g.A.Uu=function(F){var J;(J=this.Zv)==null||J.Uu(F)}; g.A.getPlayerType=function(){return this.playerType}; g.A.getPreferredQuality=function(){if(this.Pg){var F=this.Pg;F=F.videoData.hG.compose(F.videoData.VZ);F=b9(F)}else F="auto";return F}; g.A.Ni=bk(20);g.A.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.A.setMediaElement=function(F){this.logger.debug("set media element");if(this.mediaElement&&F.Pb()===this.mediaElement.Pb()&&(F.isView()||this.mediaElement.isView())){if(F.isView()||!this.mediaElement.isView())g.Ve(this.Jl),this.mediaElement=F,this.mediaElement.wD=this,O1J(this),this.dY.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.rg();if(!this.playerState.isError()){var J=up(this.playerState,512);g.x(J,8)&&!g.x(J,2)&&(J=IY(J,1));F.isView()&&(J=up(J,64));this.gY(J)}this.mediaElement= F;this.mediaElement.wD=this;!g.jB(this.rD)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);O1J(this);this.dY.setMediaElement(this.mediaElement);this.S("html5_prewarm_media_source")&&!this.Qd.Sq()&&EyC(this.mediaElement)}}; g.A.rg=function(F,J,b){F=F===void 0?!1:F;J=J===void 0?!1:J;b=b===void 0?!1:b;this.logger.debug("remove media element");if(this.mediaElement){var I=this.getCurrentTime();I>0&&(this.dY.Z=I);this.dY.setMediaElement(null);!F&&this.wZ()?Ctz(this):this.vl(b);this.Zv&&(FJ(this.Zv),jL(this,J));this.tY.stop();if(this.mediaElement&&(!this.KA.Ax()&&!this.wK()||this.playerState.isError()||g.x(this.playerState,2)||this.gY(IY(this.playerState,512)),this.mediaElement)){g.Ve(this.Jl);if(F||!this.mediaElement.isView())this.qW.AG("mesv_s"), this.mediaElement.stopVideo(),Gx(this);this.mediaElement=this.mediaElement.wD=null}}}; g.A.playVideo=function(F,J){F=F===void 0?!1:F;J=J===void 0?!1:J;var b=this,I,u,w,M,q,v;return g.S(function(a){if(a.C==1){b.logger.debug("start play video");var e=window.google_image_requests;e&&e.length>10&&(window.google_image_requests=e.slice(-10));if(g.x(b.playerState,128))return a.return();if(b.Qd.rC())return b.publish("signatureexpired"),a.return();b.mediaElement&&om(b.zF());b.Df();(g.x(b.playerState,64)||F)&&b.gY(IY(b.playerState,8));return b.KA.finished&&b.mediaElement?b.Pg||!b.g3?a.gD(2): g.T(a,b.g3,3):a.return()}if(a.C!=2&&g.x(b.playerState,128))return a.return();if(!b.videoData.T)return b.videoData.isLivePlayback&&!g.HG(b.rD.D,!0)?(I="html5.unsupportedlive",u=2):(I=b.videoData.So()?"fmt.unplayable":"fmt.noneavailable",u=1),g.rQ(Error("selectableFormats")),b.Je(I,u,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),a.return();if(b.Hh()&&b.videoData.T.C)return b.logger.debug("rebuild playbackData for airplay"),a.return(zx(b));if(Mg(b))e=b.dY,Aw(e.videoData)?!e.isAtLiveHead(e.getCurrentTime())&& e.B0()&&e.wD.seekTo(Infinity,{Ky:"seektimeline_peggedToLive",seekSource:34}):g.oH(e.videoData)&&e.getCurrentTime()M;M=J.S("html5_dont_save_under_1080")&&M<1080;if(!u||!w&&!M){var q;u=ru4(J,(q=I.C)==null?void 0:q.videoInfos);q=J.wD.getPlaybackRate();q>1&&u&&(q=EO7(J.rD.D,I.C.videoInfos,q),F.C!==0&&q=480;if(J.S("html5_exponential_memory_for_sticky")){v=J.rD.GU;a=1;var e=e===void 0?!1:e;Ox_(v,"sticky-lifetime");v.values["sticky-lifetime"]&&v.Tz["sticky-lifetime"]||(v.values["sticky-lifetime"]=0,v.Tz["sticky-lifetime"]=0);e&&Nn(v,"sticky-lifetime")>.0625&&(a=v.Tz["sticky-lifetime"]*2);v.values["sticky-lifetime"]+=1*Math.pow(2,v.C/a);v.Tz["sticky-lifetime"]=a; v.Z.start()}if(J.S("html5_perf_cap_override_sticky")){e=J.T;v=J.S("html5_perserve_av1_perf_cap");v=v===void 0?!1:v;if(v===void 0?0:v){a=sr();J=g.N(Object.keys(a));for(F=J.next();!F.done;F=J.next())F=F.value,F.indexOf("1")!==0&&delete a[F];g.rm("yt-player-performance-cap",a,2592E3)}else g.sy("yt-player-performance-cap");jiz(v);if(v){v=g.N(dd.keys());for(a=v.next();!a.done;a=v.next())a=a.value,a.startsWith("1")||dd.delete(a);v=g.N(lm.values());for(a=v.next();!a.done;a=v.next())a=a.value,a.startsWith("1")|| lm.delete(a);v=g.N(e.keys());for(a=v.next();!a.done;a=v.next())a=a.value,a.startsWith("1")||e.delete(a)}else dd.clear(),lm.clear(),e.clear()}}}this.Zv&&(e=this.Zv,b=b||"",e.policy.C?Dq(e.U.C,b):Dq(e.C.D,b));this.Z$()}; g.A.getUserPlaybackQualityPreference=function(){return this.videoData.T&&!this.videoData.T.C?b9(this.videoData.hG):Jt[rB()]}; g.A.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.A.setUserAudio51Preference=function(F,J){this.getUserAudio51Preference()!==F&&(this.UQ("toggle51",{pref:F}),g.rm("yt-player-audio51",F,J?31536E3:2592E3),this.d_())}; g.A.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.A.setProximaLatencyPreference=function(F){var J=this.getProximaLatencyPreference();this.UQ("proxima",{pref:F});g.rm("yt-player-proxima-pref",F,31536E3);J!==F&&(F=this.dY,F.nW=!0,F.wD.seekTo(Infinity,{Ky:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.A.getProximaLatencyPreference=function(){var F;return(F=Sv())!=null?F:0}; g.A.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.A.Bp=function(){this.videoData.videoId?this.t_.Bp(this.videoData):this.UQ("povid",{})}; g.A.JM=function(){this.videoData.videoId?this.t_.JM(this.videoData):this.UQ("piavid",{})}; g.A.Z$=function(){if(!this.iR()&&!g.x(this.playerState,128)&&this.videoData.T){if(this.videoData.T.C)mP(this);else{var F=E$(this),J=this.videoData;a:{var b=this.videoData.g9;if(F.C){for(var I=g.N(b),u=I.next();!u.done;u=I.next()){u=u.value;var w=u.getInfo(),M=g.CF[w.video.quality];if((!F.T||w.video.quality!=="auto")&&M<=F.C){b=u;break a}}b=b[b.length-1]}else b=b[0]}J.bR=b;ToJ(this,F.reason,cZo(this,this.videoData.bR))}if(this.S("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.dY.V= !1,this.playVideo()}}; g.A.sU=function(F,J){if(this.iR()||g.x(this.playerState,128))return!1;var b,I=!((b=this.videoData.T)==null||!b.C);b=I&&J?this.getCurrentTime()-this.Xq():NaN;if(this.rD.experiments.pW("html5_record_audio_format_intent")){var u=this.zF();if(u.qoe){u=u.qoe;var w=[F.j3.id,isNaN(b)?"m":"t"];g.VT(u,g.dr(u.provider),"afi",w)}}if(I)return J&&(I=hrC(this.dY),this.UQ("aswh",{id:F.id,xtags:F.xtags,bh:I.toFixed(3)})),this.Zv.setAudioTrack(F,b,J),!0;if(S$7(this)){a:{J=this.mediaElement.audioTracks();for(I=0;I< J.length;++I)if(b=J[I],b.label===F.j3.getName()){if(b.enabled){J=!1;break a}J=b.enabled=!0;break a}J=void 0}J&&this.UQ("hlsaudio",{id:F.id})}else{a:if(J=this.videoData,J.Z&&!t1(J.Z)||F===J.eD||!J.g9||J.g9.length<=0)J=!1;else{I=g.N(J.g9);for(b=I.next();!b.done;b=I.next()){b=b.value;if(!(b instanceof w7)){J=!1;break a}u=F.j3.getId();b.U&&(KqY(b.U,u),b.gw=null)}J.eD=F;J=!0}J&&yM(this)&&(this.publish("internalaudioformatchange",this.videoData,!0),this.UQ("hlsaudio",{id:F.id}))}return!0}; g.A.getAvailableAudioTracks=function(){return g.oH(this.videoData)&&this.II?aKz(this.II).getAvailableAudioTracks():this.videoData.getAvailableAudioTracks()}; g.A.getAudioTrack=function(){if(S$7(this)){var F=Y$G(this);if(F)return F}return this.videoData.getAudioTrack()}; g.A.mR=function(){if(this.videoData.S("html5_trigger_loader_when_idle_network")&&!this.videoData.MW()&&bE(this.videoData)){var F;(F=this.Zv)!=null&&F.Va()}}; g.A.La=function(){if(LC(this.videoData)&&this.videoData.S("html5_gapless_append_early")){var F;(F=this.Zv)!=null&&F.Va()}}; g.A.Ul=function(F){F=F===void 0?!1:F;if(this.Zv){var J=this.Zv,b=J.Ul;var I=this.videoData;I=I.S("html5_ssdai_use_post_for_media")&&I.enableServerStitchedDai?!1:qb(I)&&I.Uo&&!I.isAd();b.call(J,I,F)}}; g.A.vl=function(F){F=F===void 0?!1:F;this.HN&&(this.logger.debug("remove media source"),d_v(this.HN),this.Ul(F),this.HN.dispose(),this.HN=null)}; g.A.SS=function(){return this.HN}; g.A.w5=function(F,J,b,I){function u(M){try{DgG(w,M,J,b)}catch(q){g.rQ(q),w.handleError(new E5("fmt.unplayable",{msi:"1",ename:q&&typeof q==="object"&&"name"in q?String(q.name):void 0},1))}} var w=this;J=J===void 0?!1:J;b=b===void 0?!1:b;QXo(this,I===void 0?!1:I);this.HN=F;this.wZ()&&ce(this.HN)==="open"?u(this.HN):zE_(this.HN,u)}; g.A.vc=function(F){this.logger.debug("onNeedKeyInfo");this.JI.set(F.initData,F);this.Le&&(this.Le.vc(F),this.S("html5_eme_loader_sync")||this.JI.remove(F.initData))}; g.A.L9=function(F){this.videoData.zd=g.HX("auto",F,!1,"u");mP(this)}; g.A.TV=function(F){var J=F.reason,b=F.C.info,I=F.token,u=F.videoId,w=this.zF(u),M=g.oH(this.videoData)?w.getVideoData():this.videoData;if(b!==M.Z){var q=!M.Z;M.Z=b;J!=="m"&&J!=="t"&&(J=q?"i":"a");var v=J==="m"||J==="t";this.rD.experiments.pW("html5_refactor_sabr_audio_format_selection_logging")?this.D1=new G1o(M,b,J,"",I,u):w.dC(new G1o(M,b,J,"",I));this.publish("internalaudioformatchange",M,!q&&v)}this.dY.TV(F.C.index)}; g.A.N8=function(F){this.publish("localmediachange",F)}; g.A.KL=function(F){F=F===void 0?{}:F;var J;(J=this.Zv)==null||J.KL(this.rD,Jw(this.videoData),F)}; g.A.rC=function(){return this.Qd.rC()}; g.A.SW=function(F){this.je(new E5("staleconfig",{reason:F}))}; g.A.handleError=function(F){this.Qd.handleError(F)}; g.A.Sq=function(){return this.Qd.Sq()}; g.A.l4=function(F){this.dY.l4(F)}; g.A.sV=function(F,J,b){F=F===void 0?!1:F;J=J===void 0?!1:J;b=b===void 0?!1:b;var I=this,u,w,M;return g.S(function(q){if(q.C==1){I.Zv&&I.Zv.CB();I.Zv&&I.Zv.iR()&<(I);if(I.S("html5_enable_vp9_fairplay")&&I.So()&&(u=I.videoData.C)!=null)for(var v in u.C)u.C.hasOwnProperty(v)&&(u.C[v].C=null,u.C[v].T=!1);I.gY(IY(I.playerState,2048));I.S("html5_ssap_keep_media_on_finish_segment")&&g.oH(I.videoData)?I.publish("newelementrequired",b):I.publish("newelementrequired");return F?g.T(q,zx(I),2):q.gD(2)}I.videoData.MW()&& ((w=I.Zv)==null?0:w.Gj)&&!Mg(I)&&((M=I.isAtLiveHead())&&Aw(I.videoData)?I.seekTo(Infinity,{Ky:"videoPlayer_getNewElement"}):I.videoData.SF&&I.Zv&&(v=I.Zv,v.lR.MW&&(v.lR.SF||v.lR.Z||v.lR.isPremiere?(v.seek(0,{Ky:"loader_resetSqless"}),v.videoTrack.V=!0,v.audioTrack.V=!0,v.videoTrack.D=!0,v.audioTrack.D=!0):lI(v.lR)&&tu(v))));J&&I.seekTo(0,{seekSource:105});g.x(I.playerState,8)&&(I.S("html5_ssap_keep_media_on_finish_segment")&&g.oH(I.videoData)?I.playVideo(!1,b):I.playVideo());g.N4(q)})}; g.A.lA=function(F){this.UQ("hgte",{ne:+F});this.videoData.Y=!1;F&&this.sV();this.Zv&&RCz(this.Zv)}; g.A.lz=function(F){this.UQ("newelem",{r:F});this.sV()}; g.A.pauseVideo=function(F){F=F===void 0?!1:F;if((g.x(this.playerState,64)||g.x(this.playerState,2))&&!F)if(g.x(this.playerState,8))this.gY(wM(this.playerState,4,8));else if(this.DR())yM(this);else return;g.x(this.playerState,128)||(F?this.gY(IY(this.playerState,256)):this.gY(wM(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.dS(this.videoData)&&this.Zv&&jL(this,!1)}; g.A.stopVideo=function(){this.pauseVideo();this.Zv&&(jL(this,!1),this.Zv.uq())}; g.A.Cc=function(F,J){F=F===void 0?!1:F;J=J===void 0?!1:J;if(this.wZ()&&J){var b;(b=this.mediaElement)==null||b.Cc()}else{var I;(I=this.mediaElement)==null||I.stopVideo()}Gx(this);lt(this);g.x(this.playerState,128)||(F?this.gY(up(up(IY(this.playerState,4),8),16)):this.gY(bp(this.playerState)));this.videoData.videoId&&this.rD.fW.remove(this.videoData.videoId)}; g.A.seekTo=function(F,J){J=J===void 0?{}:J;this.logger.debug(function(){return"SeekTo "+F+", "+JSON.stringify(J)}); g.x(this.playerState,2)&&yM(this);J.QEQ&&this.gY(IY(this.playerState,2048));J.seekSource!==58&&J.seekSource!==60||!this.S("html5_update_vss_during_gapless_seeking")||bjY(this.zF(),J.seekSource);this.dY.seekTo(F,J);this.f8.sync()}; g.A.MG=function(F){this.qW.Z.TT();g.x(this.playerState,32)||(this.gY(IY(this.playerState,32,F==null?void 0:F.seekSource)),g.x(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking",this));this.Q6()}; g.A.P2=function(F){F=F==null?void 0:F.seekSource;g.x(this.playerState,32)?(this.gY(wM(this.playerState,16,32,F)),this.publish("endseeking",this)):g.x(this.playerState,2)||this.gY(IY(this.playerState,16,F));this.qW.Z.Pv(this.videoData,this.playerState.isPaused())}; g.A.p9=function(F){this.P2(F)}; g.A.yv=function(){this.publish("SEEK_COMPLETE")}; g.A.Ir=function(){this.publish("onAbnormalityDetected")}; g.A.eM=function(F){var J=this.t_,b=this.videoData.clientPlaybackNonce,I=this.playerType;if(F.scope===4){var u=F.type;if(u){var w=J.Nf(),M=w.getVideoData().clientPlaybackNonce;I===1&&(M=b);(J=Q_a(J,M))?(b=J.getVideoData())&&(F.writePolicy===2&&b.sabrContextUpdates.has(u)||b.sabrContextUpdates.set(u,F)):w.UQ("scuset",{ncpf:"1",ccpn:M,crcpn:b})}else g.rQ(Error("b/380308491: contextUpdateType is undefined"))}}; g.A.oK=function(){if(this.t_.Yl().fV&&this.playerType===2)return this.t_.oK("")}; g.A.getCurrentTime=function(){return this.dY.getCurrentTime()}; g.A.bK=function(){return this.dY.bK()}; g.A.Fb=function(){return this.dY.Fb()}; g.A.pV=function(F){return this.II&&(F=F||this.II.h4())?Mp(this.II,F):this.Fb()}; g.A.z8=function(){return this.dY.z8()}; g.A.getPlaylistSequenceForTime=function(F){return this.videoData.getPlaylistSequenceForTime(F-this.Xq())}; g.A.aG=function(){var F=NaN;this.mediaElement&&(F=this.mediaElement.aG());return F>=0?F:this.getCurrentTime()}; g.A.Ze=function(){var F;return((F=this.videoData.C)==null?0:F.Ze)?this.videoData.C.Ze(this.getCurrentTime()-this.Xq()):this.mediaElement&&(F=this.mediaElement.l_())&&(F=F.getTime(),!isNaN(F))?F/1E3+this.getCurrentTime():NaN}; g.A.getDuration=function(F){return g.oH(this.videoData)&&this.II?F?vtG(this.II,F):LS(this.II):this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.Xq():this.lC()?this.lC():0}; g.A.Jt=function(){var F=new vUa;if(this.Zv){var J=this.rD.schedule,b=this.rD.hJ();b=b===void 0?!1:b;F.TH=J.Gj;F.Oi=J.zj;F.bandwidthEstimate=ib(J);if(b){b=(J.Y.X3()*1E3).toFixed();var I=(J.WN.X3()*1E3).toFixed(),u=gN(J).toFixed(2),w=((J.V.X3()||0)*1E9).toFixed(2),M=J.T.X3().toFixed(0),q=J.fW.X3().toFixed(0),v=J.N.percentile(.5).toFixed(2),a=J.N.percentile(.92).toFixed(2),e=J.N.percentile(.96).toFixed(2),K=J.N.percentile(.98).toFixed(2);J.C?J.C.reset():J.C=new wN;J.C.add(J.kQ);J.C.add(J.interruptions.length); for(var p=0,m=J.interruptions.length-1;m>=0;m--){var y=J.interruptions[m];J.C.add(y-p);p=y}p=0;for(m=J.Z.length-1;m>=0;m--){y=J.Z[m];var f=y.stamp/36E5;J.C.add(f-p);p=f;J.C.add(y.net/1E3);J.C.add(y.max)}J=J.C.G7();F.C={ttr:b,ttm:I,d:u,st:w,bw:M,abw:q,v50:v,v92:a,v96:e,v98:K,"int":J}}gso(this.Zv,F)}else this.mediaElement&&(F.O8=ZO(this.mediaElement));F.TH=this.TH;F.Oi=this.Oi;F.T=this.isAtLiveHead()&&this.isPlaying()?NoG(this):NaN;return F}; g.A.h7=function(F,J){this.Oi+=F;this.TH+=J}; g.A.jN=function(){return this.mediaElement?g.dS(this.videoData)?1:EW(this.videoData)?this.isAtLiveHead()||this.B0()?1:this.dY.jN():this.mediaElement.jN():0}; g.A.o0=function(){var F=this.getCurrentTime();if(this.Le){var J="IT/"+(this.Le.C.getInfo()+"/"+b9(this.YA()));J+="/"+this.Le.getInfo()}else J="";var b=this.isGapless(),I=this.W9(),u=this.H2(),w=g.WO(this),M=this.getPlayerState(),q=this.getPlaylistSequenceForTime(this.getCurrentTime());a:{var v=0;var a="";if(this.xl){if(this.xl.Bu){a="D,";break a}v=this.xl.Jp();a=this.xl.h4().substring(0,4)}else this.II&&(v=this.II.Jp(),a=this.II.h4().substring(0,4));v>0?(v="AD"+v+", ",a&&(v+=a+", "),a=v):a=""}return{currentTime:F, d2:J,isGapless:b,W9:I,DC:u,DYD:w,playerState:M,xYj:q,suI:this.Yq,pH:a,rh_:this.mH()}}; g.A.Cy=function(F){var J={};if(F===void 0?0:F){Object.assign(J,this.zF().Cy());this.mediaElement&&(Object.assign(J,this.mediaElement.Cy()),Object.assign(J,this.mH()));this.Zv&&Object.assign(J,this.Zv.Cy());this.Le&&(J.drm=JSON.stringify(this.Le.Cy()));J.state=this.playerState.state.toString(16);g.x(this.playerState,128)&&(J.debug_error=JSON.stringify(this.playerState.e6));this.Bx()&&(J.prerolls=this.CN.join(","));this.videoData.M0&&(J.ismb=this.videoData.M0);this.videoData.latencyClass!=="UNKNOWN"&& (J.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(J.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)J.is_mosaic=1;this.videoData.cotn&&(J.is_offline=1,J.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(J.playerResponseCpn=this.videoData.playerResponseCpn);this.t_.isOrchestrationLeader()&&(J.leader=1);this.videoData.isLivePlayback&&(this.videoData.C&& yy(this.videoData.C)&&(J.segduration=yy(this.videoData.C)),F=this.dY,J.lat=F.W?EUo(F.W.Z):0,J.liveutcstart=this.videoData.liveUtcStartSeconds);J.relative_loudness=this.videoData.LF.toFixed(3);if(F=g.WO(this))J.optimal_format=F.video.qualityLabel;J.user_qual=rB();J.release_version="youtube.player.web_20250218_01_RC00";g.oH(this.videoData)&&this.II&&(J.ssap=iz(this.II))}J.debug_videoId=this.videoData.videoId;return J}; g.A.addCueRange=function(F){this.dO([F])}; g.A.removeCueRange=function(F){this.f8.L4([F])}; g.A.nJ=function(){this.f8.sync()}; g.A.oG=function(F,J){return this.f8.oG(F,J)}; g.A.dO=function(F,J){this.f8.TU(F,J)}; g.A.hc=function(F){this.f8.L4(F)}; g.A.Qs=function(F){var J=this.f8;F.length<=0||J.iR()||(F=J.C,F.array.sort(F.C))}; g.A.Y4=function(){return this.f8.Y4()||[]}; g.A.md=function(){return this.X7}; g.A.Hh=function(){return this.visibility.Hh()}; g.A.Rv=function(){this.mediaElement&&this.mediaElement.Rv()}; g.A.RxG=function(){Ng(this)}; g.A.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.A.X8=function(F){var J=F.target.dB();if(this.mediaElement&&this.mediaElement.dB()&&this.mediaElement.dB()===J){FXC(this,F.type);switch(F.type){case "error":var b=LB(this.mediaElement)||"",I=this.mediaElement.Aw();if(b==="capability.changed"){this.S("html5_restart_on_capability_change")?(this.UQ("capchg",{msg:I}),this.sV(!0)):zx(this);return}if(this.mediaElement.hasError()&&(N9G(this.Qd,b,{msg:I})||g.oH(this.videoData)&&this.II&&(I=this.playerState.e6,this.II.handleError(b,I==null?void 0:I.Zu))))return; if(this.isBackground()&&this.mediaElement.rB()===4){this.Cc();f1(this,"unplayable");return}break;case "durationchange":b=this.mediaElement.getDuration();isFinite(b)&&(!this.HN||b>0)&&b!==1&&this.GI(b);break;case "ratechange":this.Zv&&this.Zv.setPlaybackRate(this.mediaElement.getPlaybackRate());zr7(this.f8);this.zF().onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":bV4(this);this.publish("onLoadedMetadata");hO3(this);b=this.Ze();this.videoData.tG&&(this.videoData.tG=b);break; case "loadstart":hO3(this);break;case "progress":case "suspend":this.Q6();this.publish("onLoadProgress",this,this.jN());break;case "playing":this.qW.AG("plev");this.Ci&&!Mg(this)&&(this.Ci=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{Ky:"videoplayer_onPlaying"})));break;case "timeupdate":b=this.mediaElement&&!this.mediaElement.getCurrentTime();I=this.mediaElement&&this.mediaElement.kR()===0;if(b&&(!this.F9||I))return;this.F9=this.F9||!!this.mediaElement.getCurrentTime(); ocz(this);this.Q6();if(!this.mediaElement||this.mediaElement.dB()!==J)return;this.publish("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(this.mediaElement.mQ().length>0&&this.mediaElement.Z4().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.Zv)return;this.S("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.kR()>2||!this.mediaElement.isSeeking()&&Mt(this.mediaElement.Z4(),this.mediaElement.getCurrentTime()))&& (b=this.mediaElement.Cy(),b.bh=ZO(this.mediaElement).toFixed(3),this.UQ("uwe",b));g.oH(this.videoData)&&this.II&&bs3(this.II,this.mediaElement.getCurrentTime());break;case "resize":bV4(this);this.videoData.U&&this.videoData.U.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.eb&&g.x(this.playerState,8)&&!g.x(this.playerState,1024)&&this.getCurrentTime()===0&&g.ia){f1(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.dB()=== J){FPa(this.dY,F,this.II||void 0);this.publish("videoelementevent",F);J=this.playerState;I=this.dI;var u=this.mediaElement;b=this.videoData.clientPlaybackNonce;var w=g.oH(this.videoData)&&this.II?LS(this.II):void 0;if(!g.x(J,128)){var M=J.state;u=u?u:F.target;var q=u.getCurrentTime();if(!g.x(J,64)||F.type!=="ended"&&F.type!=="pause"){w=w||u.getDuration();w=u.isEnded()||q>1&&Math.abs(q-w)<1.1;var v=F.type==="pause"&&u.isEnded();q=F.type==="ended"||F.type==="waiting"||F.type==="timeupdate"&&!g.x(J, 4)&&!nj(I,q);if(v||w&&q)u.CG()>0&&u.dB()&&(M=14);else switch(F.type){case "error":LB(u)&&(M|=128);break;case "pause":g.x(J,256)?(M^=256)||(M=64):g.x(J,32)||g.x(J,2)||g.x(J,4)||(M=4,g.x(J,1)&&g.x(J,8)&&(M|=1));break;case "playing":q=M;M=(M|8)&-1093;q&4?(M|=1,JV(I,u,!0)):nj(I,u.getCurrentTime())&&(M&=-2);g.x(J,1)&&JV(I,u)&&(M|=1);break;case "seeking":M|=16;g.x(J,8)&&(M|=1);M&=-3;break;case "seeked":M&=-17;JV(I,u,!0);break;case "waiting":g.x(J,2)||(M|=1);JV(I,u);break;case "timeupdate":q=g.x(J,16),w= g.x(J,4),(g.x(J,8)||q)&&!w&&nj(I,u.getCurrentTime())&&(M=8),JV(I,u)&&(M|=1)}}I=M;M=null;I&128&&(M=F.target,u=LB(M),q=1,u?(u==="capability.changed"&&(q=2),w="GENERIC_WITHOUT_LINK",v=M.Cy(),v.mediaElem="1",/AUDIO_RENDERER/.test(M.Aw())&&(w="HTML5_AUDIO_RENDERER_ERROR"),M={errorCode:u,errorMessage:g.nV[w]||"",Ap:w,BG:dk(v),Zu:q,cpn:J.e6?J.e6.cpn:""}):M=null,M&&(M.cpn=b));J=bp(J,I,M)}!g.x(this.playerState,1)&&g.x(J,1)&&LPa(this,"evt"+F.type);this.gY(J)}}}; g.A.om_=function(F){F=F.C.availability==="available";F!==this.X7&&(this.X7=F,this.publish("airplayavailabilitychange"))}; g.A.JJv=function(){var F=(0,g.jR)(),J=this.mediaElement.Hh();this.UQ("airplay",{ia:J});!J&&!isNaN(this.bf)&&F-this.bf<2E3||(this.bf=F,J!==this.Hh()&&(F=this.visibility,F.C!==J&&(F.C=J,F.G0()),this.UQ("airplay",{rbld:J}),this.d_()),this.publish("airplayactivechange"))}; g.A.rk=function(F){if(this.Zv){var J=this.Zv,b=J.Z,I=J.getCurrentTime(),u=Date.now()-b.N;b.N=NaN;b.UQ("sdai",{adfetchdone:F,d:u});F&&!isNaN(b.V)&&b.U!==3&&rg(b.Zv,I,b.V,b.D);b.policy.D?b.T=NaN:b.Z=NaN;Bs(b,4,b.U===3?"adfps":"adf");FJ(J)}}; g.A.v8=function(){g.ii(this.Eh);this.tY.stop();this.videoData.Gj=!0;this.rD.Ys=!0;this.rD.Kk=0;var F=this.Qd;if(F.videoData.U){var J=F.PN.D,b=F.videoData.U.YQ;J.U.has(b)&&(J.U.delete(b),LW(J))}F.C.stop();this.CV();g.x(this.playerState,8)&&this.gY(up(this.playerState,65));this.kc=!1;JXo(this.zF());g.Z_(this.Gx);this.publish("playbackstarted");(F=g.kC("yt.scheduler.instance.clearPriorityThreshold"))?F():Fs(0,0)}; g.A.CV=function(){var F=this.t_.Yl(),J={},b={};!Dj("pbs",this.qW.timerName)&&Gp.measure&&Gp.getEntriesByName&&(Gp.getEntriesByName("mark_nr")[0]?t6G("mark_nr"):t6G());F.videoId&&(J.videoId=F.videoId);F.clientPlaybackNonce&&!this.S("web_player_early_cpn")&&(J.clientPlaybackNonce=F.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(b.isPausedOnLoad=!0);b.itag=F.U?Number(F.U.itag):-1;F.Ly&&(b.preloadType=String(this.f6?2:1));J.liveStreamMode=RW5[ze(F)];J.playerInfo=b;this.qW.infoGel(J); if(this.Zv){F=this.Zv.timing;window&&window.performance&&window.performance.getEntriesByName&&(F.T&&(J=window.performance.getEntriesByName(F.T),J.length&&(J=J[0],F.tick("vri",J.fetchStart),F.tick("vdns",J.domainLookupEnd),F.tick("vreq",J.requestStart),F.tick("vrc",J.responseEnd))),F.U&&(J=window.performance.getEntriesByName(F.U),J.length&&(J=J[0],F.tick("ari",J.fetchStart),F.tick("adns",J.domainLookupEnd),F.tick("areq",J.requestStart),F.tick("arc",J.responseEnd))));F=F.ticks;for(var I in F)F.hasOwnProperty(I)&& this.qW.tick(I,F[I])}}; g.A.Y1=function(F,J,b){F=(F+(this.Ox===3?.3:0))/J;J=Math.floor(F*4);J>this.Ox&&(this.UQ("vpq",{q:J,cpn:b||this.videoData.clientPlaybackNonce,ratio:F.toFixed(3)}),this.Ox=J)}; g.A.oO=function(){this.Ox=-1}; g.A.Q6=function(F){var J=this;F=F===void 0?!1:F;if(this.mediaElement&&this.videoData){cXG(this.dY,this.isPlaying());var b=this.getCurrentTime();!this.Zv||g.x(this.playerState,4)&&g.dS(this.videoData)||g.x(this.playerState,32)&&bE(this.videoData)||ywo(this.Zv,b);this.S("html5_ssap_pacf_qoe_ctmp")&&this.playerType===2&&this.Y1(b,this.videoData.lengthSeconds);b>5&&(this.dY.Z=b);var I=g.Lw();I?g.D_.q_(this.Wk):g.m1(this.Wk);var u=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!u||nY(this.videoData))&& !g.x(this.playerState,128)){var w=function(){if(J.mediaElement&&!g.x(J.playerState,128)){J.rD.hJ()&&FXC(J,"pfx");var M=J.getCurrentTime();J.S("html5_buffer_underrun_transition_fix")&&(M-=J.Xq());var q=ZO(J.mediaElement),v=g.x(J.playerState,8),a=nj(J.dI,M),e=TJ_(J.dI,M,(0,g.jR)(),q);v&&a?J.gY(up(J.playerState,1)):v&&e?(v=J.getDuration(),a=Aw(J.videoData),v&&Math.abs(v-M)<1.1?(J.UQ("setended",{ct:M,bh:q,dur:v,live:a}),J.mediaElement.iS()?(J.logger.debug("seek to 0 because of looping"),J.seekTo(0,{Ky:"videoplayer_loop", seekSource:37})):J.vk()):(J.playerState.isBuffering()||LPa(J,"progress_fix"),J.gY(IY(J.playerState,1)))):(v&&!a&&!e&&M>0&&(v=(Date.now()-J.EN)/1E3,a=J.getDuration(),M>a-1&&J.UQ("misspg",{t:M.toFixed(2),d:a.toFixed(2),r:v.toFixed(2),bh:q.toFixed(2)})),J.playerState.isPaused()&&J.playerState.isBuffering()&&ZO(J.mediaElement)>5&&J.gY(up(J.playerState,1)));J.Q6()}}; this.mediaElement.mQ().length===0?this.Wk=I?g.D_.Ti(w,100):g.pl(w,100):this.Wk=I?g.D_.Ti(w,500):g.pl(w,500)}this.videoData.KW=b;this.II&&this.II.g_();!F&&this.isPlaying()&&UgC(this);k1J(this.ji,this.Pg,this.Qa(),this.isBackground())&&mP(this);this.publish("progresssync",this,F);u&&nY(this.videoData)&&this.publish("onVideoProgress",this,this.getCurrentTime())}}; g.A.bL=function(){this.Je("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.A.H2=function(){return this.zF().H2()}; g.A.tp=function(){return this.Zv?this.Zv.tp():ib(this.rD.schedule,!0)}; g.A.gY=function(F){if(!g.MO(this.playerState,F)){this.logger.debug(function(){return"Setting state "+F.toString()}); var J=new g.vL(F,this.playerState);this.playerState=F;J2m(this);var b=!this.SA.length;this.SA.push(J);var I=this.mediaElement&&this.mediaElement.isSeeking();I=J.oldState.state===8&&!I;g.e1(J,1)&&I&&g.x(this.playerState,8)&&!g.x(this.playerState,64)&&this.Zv&&(QH7(this.Zv),this.mediaElement&&ZO(this.mediaElement)>=5&&RN_(this.ji,this.Pg)&&mP(this));(I=g.eB(this.rD.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.x(F,1)&&(g.x(F,8)||g.x(F,16))?this.bI.start(I):this.bI.stop();(aJ(J,8)<0|| g.e1(J,1024))&&this.tY.stop();!g.e1(J,8)||this.videoData.Gj||g.x(J.state,1024)||this.tY.start();g.x(J.state,8)&&aJ(J,16)<0&&!g.x(J.state,32)&&!g.x(J.state,2)&&this.playVideo();g.x(J.state,2)&&EW(this.videoData)&&(this.GI(this.getCurrentTime()),this.Q6(!0));g.e1(J,2)&&(this.Xm(!0),this.rD.hJ()&&this.S("html5_sabr_parse_live_metadata_playback_boundaries")&&bE(this.videoData)&&this.videoData.C&&(I={minst:""+this.videoData.C.rf,cminst:""+(this.videoData.C.Ho()+this.Xq()),maxst:""+this.videoData.C.G8, hts:""+this.videoData.C.eE,cmaxst:""+(this.videoData.C.lC()+this.Xq())},this.UQ("sabrSeekableBoundaries",I)));g.e1(J,128)&&this.Cc();this.videoData.C&&this.videoData.isLivePlayback&&!this.Of&&(aJ(J,8)<0?nna(this.videoData.C):g.e1(J,8)&&this.videoData.C.resume());oUz(this.dY,J);IWa(this.zF(),J);if(b&&!this.iR())try{for(var u=g.N(this.SA),w=u.next();!w.done;w=u.next()){var M=w.value;Nr7(this.f8,M);this.publish("statechange",M)}}finally{this.SA.length=0}}}; g.A.oZ=function(){this.qW.tick("qoes")}; g.A.dU=function(){this.dY.dU()}; g.A.LJ=function(F,J,b,I){a:{var u=this.Qd;I=I===void 0?"LICENSE":I;b=b.substring(0,256);var w=jg(J);F==="drm.keyerror"&&this.Le&&this.Le.U.keys.length>1&&u.Z<96&&(F="drm.sessionlimitexhausted",w=!1);if(w)if(u.videoData.U&&u.videoData.U.video.isHdr())joJ(u,F);else{if(u.wD.Je(F,J,I,b),yuJ(u,{detail:b}))break a}else u.je(F,{detail:b});F==="drm.sessionlimitexhausted"&&(u.UQ("retrydrm",{sessionLimitExhausted:1}),u.Z++,H1G(u.wD))}}; g.A.HyE=function(){var F=this,J=g.eB(this.rD.experiments,"html5_license_constraint_delay"),b=Ll();J&&b?(J=new g.ty(function(){F.Z$();Ng(F)},J),g.k(this,J),J.start()):(this.Z$(),Ng(this))}; g.A.Nq=function(F){this.publish("heartbeatparams",F)}; g.A.mw=function(F){this.UQ("keystatuses",osJ(F));var J="auto",b=!1;this.videoData.U&&(J=this.videoData.U.video.quality,b=this.videoData.U.video.isHdr());if(this.S("html5_drm_check_all_key_error_states")){var I=hLa(J,b);I=gr(F)?cwa(F,I):F.Z.includes(I)}else{a:{J=hLa(J,b);for(I in F.C)if(F.C[I].status==="output-restricted"){var u=F.C[I].type;if(J===""||u==="AUDIO"||J===u){I=!0;break a}}I=!1}I=!I}if(this.S("html5_enable_vp9_fairplay")){if(b)if(F.V){var w;if((w=this.Le)==null?0:S$(w.C))if((b=this.Le)== null)b=0;else{J=w=void 0;u=g.N(b.U.values());for(var M=u.next();!M.done;M=u.next())M=M.value,w||(w=Ubo(M,"SD")),J||(J=Ubo(M,"AUDIO"));b.H9({sd:w,audio:J});b=w==="output-restricted"||J==="output-restricted"}else b=!I;if(b){this.UQ("drm",{dshdr:1});joJ(this.Qd);return}}else{this.videoData.sK||(this.videoData.sK=!0,this.UQ("drm",{dphdr:1}),this.sV(!0));return}var q;if((q=this.Le)==null?0:S$(q.C))return}else if(q=F.V&&I,b&&!q){joJ(this.Qd);return}I||cwa(F,"AUDIO")&&cwa(F,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"), F=osJ(F),this.aO?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.S("html5_report_fatal_drm_restricted_error_killswitch")||this.Je("drm.keyerror",2,void 0,"info."+F)):(this.aO=!0,this.je(new E5("qoe.restart",Object.assign({},{retrydrm:1},F))),mP(this),H1G(this)))}; g.A.htz=function(){if(!this.videoData.Gj&&this.mediaElement&&!this.isBackground()){var F="0";this.mediaElement.kR()>0&&ZO(this.mediaElement)>=5&&this.videoData.T&&this.videoData.T.C&&(this.gY(IY(this.playerState,1)),LPa(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),F="1");J2m(this);var J=this.videoData.T;F={restartmsg:F,mfmt:!HC(this.videoData),mdrm:!(!(J&&J.videoInfos&&J.videoInfos.length&&J.videoInfos[0].Ke)||this.Le),mfmtinfo:!this.videoData.U,prerolls:this.Bx()?this.CN.join(","): "0"};if(this.Le){J=this.Le;if(J.U.size<=0){var b="ns;";J.N||(b+="nr;");J=b+="ql."+J.T.length}else J=osJ(J.U.values().next().value),J=dk(J);F.drmp=J}var I;Object.assign(F,((I=this.Zv)==null?void 0:I.Cy())||{});var u;Object.assign(F,((u=this.mediaElement)==null?void 0:u.Cy())||{});this.zF().je("qoe.start15s",dk(F));this.publish("loadsofttimeout")}}; g.A.GI=function(F){this.videoData.lengthSeconds!==F&&(this.videoData.lengthSeconds=F,Ng(this))}; g.A.Xm=function(F,J){var b=this;F=F===void 0?!1:F;if(!this.y4)if(Dj("att_s","player_att")||Oz("att_s",void 0,"player_att"),this.S("use_rta_for_player"))(function(){var u,w,M,q;return g.S(function(v){switch(v.C){case 1:if(!(u=F)){v.gD(2);break}return g.T(v,g.EBG(),3);case 3:u=!v.U;case 2:if(u)return v.return();g.lk(v,4);w=AXk(b.zF());if(!w)throw Error();M={};return g.T(v,g.dq3((M.cpn=b.videoData.clientPlaybackNonce,M.encryptedVideoId=b.videoData.videoId||"",M),3E4),6);case 6:q=v.U;if(b.y4)throw Error(); if(!q.challenge)throw g.rQ(Error("Not sending attestation ping; no attestation challenge string")),Error();b.y4=!0;var a=[q.challenge];q.error?a.push("r1c="+q.error):q.webResponse&&a.push("r1a="+q.webResponse);var e;((e=q.adblockReporting)==null?void 0:e.reportingStatus)!==void 0&&a.push("r6a="+q.adblockReporting.reportingStatus);var K;((K=q.adblockReporting)==null?void 0:K.broadSpectrumDetectionResult)!==void 0&&a.push("r6b="+q.adblockReporting.broadSpectrumDetectionResult);w(a.join("&"));Oz("att_f", void 0,"player_att");g.Wa(v,0);break;case 4:g.dY(v),Oz("att_e",void 0,"player_att"),g.N4(v)}})})().then(function(){J==null||J()}); else{var I=new g.lY7(this.videoData);if("c1a"in I.iB&&!g.GR.isInitialized()){Oz("att_wb",void 0,"player_att");this.uu===2&&Math.random()<.01&&g.rQ(Error("Botguard not available after 2 attempts"));if(F)return;if(this.uu<5){g.Z_(this.Pa);this.uu++;return}}(I=g.fY7(I))?(Oz("att_f",void 0,"player_att"),MAv(this.zF(),I),this.y4=!0):Oz("att_e",void 0,"player_att")}}; g.A.LP=function(F){F=F===void 0?!1:F;if(Aw(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.B0()||g.dS(this.videoData)))F=this.getCurrentTime();else if(g.oH(this.videoData)&&this.II){F=this.II;var J=this.getCurrentTime();F=(F=MFk(F,J*1E3))?(F.jo()-F.Ez())/1E3:0}else F=this.lC(F);return F}; g.A.rA=function(){return g.oH(this.videoData)?this.videoData.Ho():this.Ho()}; g.A.lC=function(F){return this.dY.lC(F===void 0?!1:F)}; g.A.Ho=function(){return this.dY.Ho()}; g.A.Xq=function(){return this.dY?this.dY.Xq():0}; g.A.getStreamTimeOffset=function(){return this.dY?this.dY.getStreamTimeOffset():0}; g.A.Kc=function(){var F=0;this.rD.S("web_player_ss_media_time_offset")&&(F=this.getStreamTimeOffset()===0?this.Xq():this.getStreamTimeOffset());return F}; g.A.setPlaybackRate=function(F){var J;this.playbackRate!==F&&ru4(this.ji,(J=this.videoData.T)==null?void 0:J.videoInfos)&&(this.playbackRate=F,mP(this));this.playbackRate=F;this.mediaElement&&this.mediaElement.setPlaybackRate(F)}; g.A.getPlaybackRate=function(){return this.playbackRate}; g.A.getPlaybackQuality=function(){var F="unknown";if(this.videoData.U&&(F=this.videoData.U.video.quality,F==="auto"&&this.mediaElement)){var J=this.I3();J&&J.videoHeight>0&&(F=$z(J.videoWidth,J.videoHeight))}return F}; g.A.isHdr=function(){return!!(this.videoData.U&&this.videoData.U.video&&this.videoData.U.video.isHdr())}; g.A.t6=function(){this.zF().t6()}; g.A.sendVideoStatsEngageEvent=function(F,J){var b=this.zF();b.C?(b=XJ(b.C,"engage"),b.eE=F,b.send(J)):J&&J()}; g.A.C8=function(F){return this.zF().C8(F)}; g.A.isAtLiveHead=function(F,J){J=J===void 0?!1:J;return Aw(this.videoData)&&(this.Pr||J)?this.dY.isAtLiveHead(F):!1}; g.A.mJ=function(){var F=this.lC(),J=this.getCurrentTime(),b;(b=!Aw(this.videoData))||(b=this.dY,b=!(b.C&&b.C.T));return b||this.B0()||isNaN(F)||isNaN(J)?0:Math.max(0,F-J)}; g.A.qT=function(F){(this.Pr=F)||this.tY.stop();this.videoData.C&&(F?this.videoData.C.resume():nna(this.videoData.C));if(this.Zv){var J=this.videoData.S("html5_disable_preload_for_ssdai_with_preroll")&&this.wK()&&this.videoData.isLivePlayback;F&&!J?this.Zv.resume():jL(this,!0)}g.x(this.playerState,2)||F?g.x(this.playerState,512)&&F&&this.gY(up(this.playerState,512)):this.gY(IY(this.playerState,512));J=this.zF();J.qoe&&(J=J.qoe,g.VT(J,g.dr(J.provider),"stream",[F?"A":"I"]))}; g.A.Wv=function(F){F={n:F.name,m:F.message};this.zF().je("player.exception",dk(F))}; g.A.yz=bk(25);g.A.gK=bk(52);g.A.rT=function(F){this.zF().rT(F)}; g.A.dM=function(F){this.zF().dM(F)}; g.A.zV=function(F){this.zF().zV(F)}; g.A.XF=bk(30);g.A.IQ=bk(35);g.A.V_=function(F){this.zF().V_(F)}; g.A.Mj=function(){this.UQ("hidden",{},!0)}; g.A.mH=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.A.YM=function(){return this.Zv?this.Zv.YM():!0}; g.A.setLoop=function(F){this.loop=F;this.mediaElement&&!g.jB(this.rD)&&this.mediaElement.setLoop(F);this.Zv&&this.S("html5_loop_skip_set_end_of_stream")&&(F?this.Zv.policy.Om=!0:RCz(this.Zv))}; g.A.iS=function(){return this.mediaElement&&!g.jB(this.rD)?this.mediaElement.iS():this.loop}; g.A.mL=function(F){this.UQ("timestamp",{o:F.toString()});this.dY.mL(F)}; g.A.G$=function(F){this.qW.tick(F)}; g.A.QJ=function(F){return this.qW.QJ(F)}; g.A.AG=function(F){this.qW.AG(F)}; g.A.UQ=function(F,J,b){b=b===void 0?!1:b;this.zF().UQ(F,J,b)}; g.A.fQ=function(F,J,b){b=b===void 0?!1:b;this.zF().UQ(F,J,b)}; g.A.je=function(F){this.zF().je(F.errorCode,dk(F.details));F=F.errorCode;if(this.videoData.isLivePlayback&&(F==="qoe.longrebuffer"||F==="qoe.slowseek")||F==="qoe.restart"){F=this.Zv?z04(this.Zv.videoTrack):{};var J,b;this.UQ("lasoe",Object.assign(this.Zv?z04(this.Zv.audioTrack):{},(J=this.HN)==null?void 0:(b=J.C)==null?void 0:b.N2()));var I,u;this.UQ("lvsoe",Object.assign(F,(I=this.HN)==null?void 0:(u=I.U)==null?void 0:u.N2()))}}; g.A.Ep=function(F,J,b){this.zF().Ep(F,J,b)}; g.A.QE=function(F,J,b,I,u,w,M,q){var v;if((v=this.videoData.C)!=null&&v.isLive){var a=J.playerType===2?J:F,e=F.videoData.videoId,K=J.videoData.videoId;if(e&&K){v=this.zF();if(v.qoe){var p=v.qoe,m=F.cpn,y=J.cpn,f=a.videoData.If,d=p.provider.videoData.clientPlaybackNonce,G=p.provider.videoData.videoId,P=y!==d&&K!==G;d=m!==d&&e!==G;p.reportStats();p.adCpn&&p.adCpn!==m||(p.adCpn=d?m:"",p.Tj=d?e:"",p.adFormat=d?f:void 0,SA(p,2,w?4:u?2:0,y,K,I),p.reportStats(),p.adCpn=P?y:"",p.Tj=P?K:"",p.adFormat=P?f: void 0,SA(p,2,w?5:u?3:1,m,e,b),p.reportStats())}b=F.cpn;if(v.T.has(b)){if(u=v.T.get(b),DW(u,!0).send(),Rm(u),b!==v.provider.videoData.clientPlaybackNonce){UU_(u);var r;(r=v.C)==null||k6m(r);v.T.delete(b)}}else v.UV=v.provider.videoData.clientPlaybackNonce,v.UV&&v.C&&(v.T.set(v.UV,v.C),DW(v.C).send(),Rm(v.C));r=J.cpn;a=a.videoData;I-=this.Kc();if(v.T.has(r)){I=v.T.get(r);var Q=I.T&&isNaN(I.D)?QT(I):NaN;I=cfG(I,!1);isNaN(Q)||(I.V=Q);I.send()}else I=qik(v,v.provider,a,I),v.T.set(r,I),xUz(I,new g.vL(IY(new g.FC, 8),new g.FC)),DUJ(I),(Q=v.C)==null||Rm(Q);v.UV=r;this.S("html5_unify_csi_server_stitched_transition_logging")?hq7(F.cpn,J.cpn,this.videoData.clientPlaybackNonce,J.videoData,M,void 0,q):(Q=this.videoData.clientPlaybackNonce,v=J.videoData,F=(F.cpn===Q?"video":"ad")+"_to_"+(J.cpn===Q?"video":"ad"),Q={},v.W&&(Q.cttAuthInfo={token:v.W,videoId:v.videoId}),M&&(Q.startTime=M),Rr(F,Q),g.Qk({targetVideoId:v.videoId,targetCpn:J.cpn,isSsdai:!0},F),XH("pbs",q!=null?q:(0,g.jR)(),F))}}else J=this.logger,bkJ(J.tag, 5,"SSTEvent for nonSS",J.U)}; g.A.Kt=function(){var F=this.t_,J=F.e0;F.e0=[];return J}; g.A.Xh=function(F){this.videoData.Zt=!0;this.je(new E5("sabr.fallback",F));this.sV(!0)}; g.A.sy=function(F,J){this.videoData.P4=!0;if(J===void 0||J)this.je(new E5("qoe.restart",F)),this.sV(!0);this.videoData.vV()&&this.S("html5_reload_caption_on_ssdai_fallback")&&this.t_.VE()}; g.A.lP=function(F){this.UQ("sdai",{aftimeout:F});this.je(new E5("ad.fetchtimeout",{timeout:F}))}; g.A.Qb=function(F,J){this.UQ("timelineerror",F);F=new E5("dai.timelineerror",F);J?this.Je("dai.timelineerror",1,"RETRYABLE_ERROR",dk(F.details)):this.je(F)}; g.A.Iv=function(){return g.dr(this.zF().provider)}; g.A.getPlayerSize=function(){return this.DZ.getPlayerSize()}; g.A.lk=function(){return this.DZ.lk()}; g.A.Iu=function(){return this.qW}; g.A.w$=function(){return this.t_.w$()}; g.A.getVolume=function(){return this.t_.getVolume()}; g.A.tO=function(){return this.t_.tO()}; g.A.isMuted=function(){return this.t_.isMuted()}; g.A.Pz=function(){return this.t_.Pz()}; g.A.PA=function(){this.Of=!0}; g.A.S=function(F){return this.rD.S(F)}; g.A.y3=function(F,J,b,I,u){this.UQ("xvt",{m:F,g:J?1:0,tt:b?1:0,np:I?1:0,c:u})}; g.A.YB=function(){var F;(F=this.Zv)==null||F.resume()}; g.A.wK=function(){return g.te(this.CN,"ad")}; g.A.l1=function(){var F=this.getCurrentTime(),J=F-this.Xq();var b=this.mediaElement?qt(this.mediaElement.Z4()):0;b=Math.floor(Math.max(b-J,0))+100;var I;if(!this.S("html5_ssdai_disable_seek_to_skip")&&((I=this.Zv)==null?0:I.nU(J,this.lC())))return this.UQ("sdai",{skipad:1,ct:J.toFixed(3),adj:0}),!0;var u;return((u=this.Zv)==null?0:u.l1(J,b))?(this.UQ("sdai",{skipad:1,ct:J.toFixed(3),adj:b.toFixed(3)}),bE(this.videoData)&&this.Zv.seek(J+b,{seekSource:89,Ky:"videoplayer_skipServerStitchedAd"}),b1_(this.dY, F),!0):!1}; g.A.hJ=function(){return this.rD.hJ()}; g.A.f1=function(){if(this.S("html5_generate_content_po_token"))return this.videoData.IF||"";this.t_.Am();return this.rD.jZ||""}; g.A.To=function(){if(this.videoData.videoId)return this.videoData.Cl}; g.A.B1=function(){return this.videoData.videoId}; g.A.f$=function(){return this.t_.GV}; g.A.Pq=function(){return this.kc}; g.A.Rs=function(){return this.t_.Rs()}; g.A.CI=function(F,J){this.dY.CI(F,J)}; g.A.hP=function(){this.dY.hP()}; g.A.Y3=function(F,J){var b=this.S("html5_generate_content_po_token")?this.videoData:void 0;this.t_.Y3(F,J,b)}; g.A.KU=function(F,J){var b;(b=this.Zv)==null||b.KU(F,J)}; g.A.H$=function(){var F=this.SS();return!!F&&F.H$()}; g.A.IH=function(){return this.II}; g.A.ol=function(F,J){this.zF().ol(F,J)}; g.A.Lu=function(){return this.zF().Lu()}; g.A.NU=function(){return this.videoData.pT}; g.A.W9=function(){return this.t_.W9()}; g.A.eI=function(){return this.t_.eI(this)}; g.A.n9=function(){this.dN=!0}; g.A.zA=function(){return this.I1}; g.A.AI=function(F){var J;(J=this.Zv)==null||J.AI(F)};g.z(uN_,oj);g.z(wUv,oj);g.A=wUv.prototype;g.A.seekToChapterWithAnimation=function(F){var J=this;if(g.aj(this.api)&&!(F<0)){var b=this.api.getVideoData(),I=b.wX;if(I&&F=0)return;J=~J;g.wy(this.items,J,0,F);bB(this.menuItems.element,F.element,J)}F.subscribe("size-change",this.tT,this);this.menuItems.publish("size-change")}; g.A.Yj=function(F){F.unsubscribe("size-change",this.tT,this);this.iR()||(g.Hk(this.items,F),this.menuItems.element.removeChild(F.element),this.menuItems.publish("size-change"))}; g.A.tT=function(){this.menuItems.publish("size-change")}; g.A.focus=function(){for(var F=0,J=0;J1&&g.oX(this)}; g.A.vp=function(){ssG(this);this.uT&&(r2k(this),g.lu(this.element,this.size))}; g.A.qL=function(){var F=this.C.pop();SOC(this,F,this.C[this.C.length-1],!0)}; g.A.cW=function(F){if(!F.defaultPrevented)switch(F.keyCode){case 27:this.fk();F.preventDefault();break;case 37:this.C.length>1&&this.qL();F.preventDefault();break;case 39:F.preventDefault()}}; g.A.focus=function(){this.C.length&&this.C[this.C.length-1].focus()}; g.A.X_=function(){g.YJ.prototype.X_.call(this);this.W&&this.W.dispose();this.V&&this.V.dispose()};g.z(hZ,g.kc);hZ.prototype.open=function(F,J){this.initialize(F.items)&&this.Bo(J,!!J)}; hZ.prototype.initialize=function(F){g.Dx(this.RH);if(F===void 0||F.length===0)return!1;var J=F.length;F=g.N(F);for(var b=F.next();!b.done;b=F.next())this.V6(b.value,J--);return!0}; hZ.prototype.V6=function(F,J){F.menuNavigationItemRenderer?Cdz(this,F.menuNavigationItemRenderer,J):F.menuServiceItemRenderer&&XUo(this,F.menuServiceItemRenderer,J)};g.z(cO,XI);g.A=cO.prototype;g.A.aD=function(F){F.target!==this.dismissButton.element&&F.target!==this.overflowButton.element&&(this.o7(),this.onClickCommand&&this.G.jE("innertubeCommand",this.onClickCommand))}; g.A.tx=function(){this.enabled=!1;this.N.hide()}; g.A.jM=function(){return!!this.C&&this.enabled}; g.A.onVideoDataChange=function(F,J){this.UH(J);if(this.C){this.Z6();a:if(!this.isCounterfactual){var b,I,u;this.banner.update({title:(b=this.C)==null?void 0:b.title,subtitle:(I=this.C)==null?void 0:I.subtitle,metadata:(u=this.C)==null?void 0:u.metadataText});var w;this.onClickCommand=g.O((w=this.C)==null?void 0:w.onTap,sT);var M;if(F=g.O((M=this.C)==null?void 0:M.onOverflow,sT))this.V=g.O(F,x8U);var q;if((q=this.C)==null?0:q.thumbnailImage){var v,a;M=((v=this.C)==null?void 0:(a=v.thumbnailImage)== null?void 0:a.sources)||[];if(M.length===0)break a;this.thumbnailImage.update({url:M[0].url})}else{var e;if((e=this.C)==null?0:e.thumbnailIconName){var K;this.thumbnailIcon.update({icon:(K=this.C)==null?void 0:K.thumbnailIconName})}}var p;this.shouldShowOverflowButton=!((p=this.C)==null||!p.shouldShowOverflowButton);var m;this.shouldHideDismissButton=!((m=this.C)==null||!m.shouldHideDismissButton)}var y;this.banner.element.setAttribute("aria-label",((y=this.C)==null?void 0:y.a11yLabel)||"");var f; this.KW=(f=this.C)==null?void 0:f.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;RT7(this)}}; g.A.qIQ=function(){this.isVisible=!0;RT7(this)}; g.A.iyf=function(){this.isVisible=!1;RT7(this)}; g.A.gh=function(){XI.prototype.gh.call(this);this.U&&this.G.logVisibility(this.banner.element,this.isVisible)}; g.A.o7=function(){XI.prototype.o7.call(this,!1);this.U&&this.G.logClick(this.banner.element)}; g.A.Lr=function(F){this.W||(this.W=new hZ(this.G),g.k(this,this.W));var J,b;if((J=this.V)==null?0:(b=J.menu)==null?0:b.menuRenderer)this.W.open(this.V.menu.menuRenderer,F.target),F.preventDefault()}; g.A.UH=function(){}; g.A.Z6=function(){}; g.A.X_=function(){this.G.Yo("suggested_action_view_model");XI.prototype.X_.call(this)};g.z(U$,cO); U$.prototype.UH=function(F){var J,b,I;this.productUpsellSuggestedActionViewModel=g.O((J=F.getWatchNextResponse())==null?void 0:(b=J.playerOverlays)==null?void 0:(I=b.playerOverlayRenderer)==null?void 0:I.suggestedActionViewModel,emR);var u;if((u=this.productUpsellSuggestedActionViewModel)==null?0:u.content){var w;this.C=g.O((w=this.productUpsellSuggestedActionViewModel)==null?void 0:w.content,hte)}var M,q;if(this.U=!!((M=this.productUpsellSuggestedActionViewModel)==null?0:(q=M.loggingDirectives)==null? 0:q.trackingParams)){var v,a;this.G.setTrackingParams(this.banner.element,((v=this.productUpsellSuggestedActionViewModel)==null?void 0:(a=v.loggingDirectives)==null?void 0:a.trackingParams)||null)}var e;this.isCounterfactual=!((e=this.productUpsellSuggestedActionViewModel)==null||!e.isCounterfactualServing)}; U$.prototype.Z6=function(){var F=[],J,b=g.N(((J=this.productUpsellSuggestedActionViewModel)==null?void 0:J.ranges)||[]);for(J=b.next();!J.done;J=b.next()){var I=J.value;I&&(J=Number(I.startTimeMilliseconds),I=Number(I.endTimeMilliseconds),isNaN(J)||isNaN(I)||F.push(new g.b6(J,I,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.G.TU(F)};g.z(DaY,oj);g.z(xc,oj);xc.prototype.onVideoDataChange=function(F,J){var b=this;if(!oU(J)&&(F==="newdata"&&OVk(this),this.U&&F==="dataloaded")){var I;A8(FR(this.api.J(),(I=this.api.getVideoData())==null?void 0:g.ks(I)),function(u){var w=xaJ(u);w&&(w=o0J(b,b.C||w))&&b.api.setAudioTrack(w,!0);b.T&&(b.T=!1,tnY(b,u))})}}; xc.prototype.n8=function(){var F=this;if(g.jB(this.api.J())){var J,b=g.LH(this.api.J(),(J=this.api.getVideoData())==null?void 0:g.ks(J));return A8(Ix(b),function(I){var u=SV();sf(u,I);return F.api.n8(u)})}return Ix(this.api.n8())};g.z(g.tZ,g.Rj);g.A=g.tZ.prototype;g.A.open=function(){g.O$(this.Rf,this.U)}; g.A.oQ=function(F){ZVJ(this);var J=this.options[F];J&&(J.element.setAttribute("aria-checked","true"),this.Ce(this.gX(F)),this.T=F)}; g.A.Wx=function(F){g.Dx(this.U);for(var J={},b=!1,I=0;I=0?this.C.playbackRate:1}catch(F){return 1}}; g.A.setPlaybackRate=function(F){this.getPlaybackRate()!==F&&(this.C.playbackRate=F);return F}; g.A.iS=function(){return this.C.loop}; g.A.setLoop=function(F){this.C.loop=F}; g.A.canPlayType=function(F,J){return this.C.canPlayType(F,J)}; g.A.isPaused=function(){return this.C.paused}; g.A.isSeeking=function(){return this.C.seeking}; g.A.isEnded=function(){return this.C.ended}; g.A.rl=function(){return this.C.muted}; g.A.sA=function(F){Sg();this.C.muted=F}; g.A.mQ=function(){return this.C.played||Il([],[])}; g.A.Z4=function(){try{var F=this.C.buffered}catch(J){}return F||Il([],[])}; g.A.Me=function(){return this.C.seekable||Il([],[])}; g.A.l_=function(){var F=this.C;return F.getStartDate?F.getStartDate():null}; g.A.getCurrentTime=function(){return this.C.currentTime}; g.A.setCurrentTime=function(F){this.C.currentTime=F}; g.A.getDuration=function(){return this.C.duration}; g.A.load=function(){var F=this.C.playbackRate;try{this.C.load()}catch(J){}this.C.playbackRate=F}; g.A.pause=function(){this.C.pause()}; g.A.play=function(){var F=this.C.play();if(!F||!F.then)return null;F.then(void 0,function(){}); return F}; g.A.kR=function(){return this.C.readyState}; g.A.CG=function(){return this.C.networkState}; g.A.rB=function(){return this.C.error?this.C.error.code:null}; g.A.Aw=function(){return this.C.error?this.C.error.message:""}; g.A.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.C instanceof window.HTMLVideoElement&&this.C.getVideoPlaybackQuality)return this.C.getVideoPlaybackQuality();if(this.C){var F=this.C,J=F.webkitDroppedFrameCount;if(F=F.webkitDecodedFrameCount)return{droppedVideoFrames:J||0,totalVideoFrames:F}}return{}}; g.A.Hh=function(){return!!this.C.webkitCurrentPlaybackTargetIsWireless}; g.A.Rv=function(){return!!this.C.webkitShowPlaybackTargetPicker()}; g.A.togglePictureInPicture=function(){var F=this.C,J=window.document;window.document.pictureInPictureEnabled?this.C!==J.pictureInPictureElement?F.requestPictureInPicture():J.exitPictureInPicture():rk()&&F.webkitSetPresentationMode(F.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.A.IG=function(){var F=this.C;return new g.K$(F.offsetLeft,F.offsetTop)}; g.A.getSize=function(){return g.fL(this.C)}; g.A.setSize=function(F){g.lu(this.C,F)}; g.A.getVolume=function(){return this.C.volume}; g.A.setVolume=function(F){Sg();this.C.volume=F}; g.A.WL=function(F){this.D[F]||(this.C.addEventListener(F,this.listener),this.D[F]=this.listener)}; g.A.setAttribute=function(F,J){this.C.setAttribute(F,J)}; g.A.removeAttribute=function(F){this.C.removeAttribute(F)}; g.A.hasAttribute=function(F){return this.C.hasAttribute(F)}; g.A.qN=bk(57);g.A.HP=bk(59);g.A.V8=bk(61);g.A.j7=bk(63);g.A.X5=function(){return i8(this.C)}; g.A.EW=function(F){g.uG(this.C,F)}; g.A.p5=function(F){return g.KL(this.C,F)}; g.A.IN=function(){return g.uB(document.body,this.C)}; g.A.audioTracks=function(){var F=this.C;if("audioTracks"in F)return F.audioTracks}; g.A.X_=function(){for(var F=g.N(Object.keys(this.D)),J=F.next();!J.done;J=F.next())J=J.value,this.C.removeEventListener(J,this.D[J]);nB.prototype.X_.call(this)}; g.A.uD=function(F){this.C.disableRemotePlayback=F};g.z(qa,g.U);g.z(as,g.U);as.prototype.show=function(){g.U.prototype.show.call(this);this.VG();this.SE.S("html5_enable_moving_s4n_window")&&g.jB(this.SE.J())&&this.Y()}; as.prototype.hide=function(){g.U.prototype.hide.call(this);this.delay.stop();this.Z.stop()}; as.prototype.VG=function(){var F=(0,g.jR)(),J=qbG(this.SE);vU(this.C,J.bandwidth_samples);vU(this.V,J.network_activity_samples);vU(this.T,J.live_latency_samples);vU(this.U,J.buffer_health_samples);var b={};J=g.N(Object.entries(J));for(var I=J.next();!I.done;I=J.next()){var u=g.N(I.value);I=u.next().value;u=u.next().value;this.N[I]!==u&&(b[I]=" "+String(u));this.N[I]=u}this.update(b);F=(0,g.jR)()-F>25?5E3:500;this.delay.start(F)}; as.prototype.Y=function(){this.W?(this.position+=1,this.position>15&&(this.W=!1)):(--this.position,this.position<=0&&(this.W=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.Z.start(2E4)};g.z(eqa,oj);g.z(en,g.R);en.prototype.C=function(){var F=(0,g.jR)()-this.startTime;F=Fthis.Z[F])&&(this.C=F,ErJ(this))}; g.A.onCueRangeExit=function(F){var J=dHz(this,F);J&&this.C===F&&this.api.jE("innertubeCommand",J);this.clearTimeout();this.C=void 0}; g.A.onTimeout=function(F){this.C!==void 0&&(F==null?void 0:F.cueRangeId)===this.C&&(F=dHz(this,this.C))&&this.api.jE("innertubeCommand",F)}; g.A.p9=function(F){this.U=F}; g.A.yv=function(){ErJ(this);this.U=void 0}; g.A.setTimeout=function(F){var J=this,b=Number(F==null?void 0:F.maxVisibleDurationMilliseconds);b&&(this.clearTimeout(),this.D=setTimeout(function(){J.onTimeout(F)},b))}; g.A.clearTimeout=function(){this.D&&clearTimeout(this.D);this.D=void 0}; g.A.X_=function(){this.timelyActions=this.U=this.C=this.videoId=void 0;this.Z={};this.L4();this.clearTimeout();oj.prototype.X_.call(this)};g.z(Vca,oj);var W_={},Q9_=(W_[1]="pot_ss",W_[2]="pot_sf",W_[3]="pot_se",W_[4]="pot_xs",W_[5]="pot_xf",W_[6]="pot_xe",W_),RqC=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.z(yl,oj);yl.prototype.X_=function(){this.W&&(g.ii(this.W),this.W=void 0);oj.prototype.X_.call(this)}; yl.prototype.Am=function(){(this.C?!this.C.isReady():this.U)&&zN(this)}; yl.prototype.L8=function(F,J,b){var I=this;if(Bs3(F)){var u=b||"",w;if((w=this.C)==null?0:w.isReady())J=Na(this,u),Ts3(F,J);else{var M=new g.m6;J.push(M.promise);this.Z.promise.then(function(){var q=Na(I,u);Ts3(F,q);M.resolve()})}}}; yl.prototype.Bp=function(F){var J=this;if(this.C||this.U)F.IF=Na(this,F.videoId),this.C&&!this.C.isReady()&&(this.T=new xn,this.Z.promise.then(function(){J.qW.QJ("pot_if");F.IF=Na(J,F.videoId)}))};g.z(k4C,oj);g.z(ld,g.R);ld.prototype.C=function(){for(var F=g.N(g.Ba.apply(0,arguments)),J=F.next();!J.done;J=F.next())(J=J.value)&&this.features.push(J)}; ld.prototype.X_=function(){for(var F=this.features.length-1;F>=0;F--)this.features[F].dispose();this.features.length=0;g.R.prototype.X_.call(this)};fV.prototype.TT=function(){this.U=(0,g.jR)()}; fV.prototype.reset=function(){this.C=this.U=NaN}; fV.prototype.Pv=function(F,J){if(F.clientPlaybackNonce&&!isNaN(this.C)){if(Math.random()<.01){J=J?"pbp":"pbs";var b={startTime:this.C};F.W&&(b.cttAuthInfo={token:F.W,videoId:F.videoId});Rr("seek",b);g.Qk({clientPlaybackNonce:F.clientPlaybackNonce},"seek");isNaN(this.U)||XH("pl_ss",this.U,"seek");XH(J,(0,g.jR)(),"seek")}this.reset()}};g.A=On3.prototype;g.A.reset=function(){Yk(this.timerName)}; g.A.tick=function(F,J){XH(F,J,this.timerName)}; g.A.QJ=function(F){return kk(F,this.timerName)}; g.A.AG=function(F){dM(F,void 0,this.timerName)}; g.A.infoGel=function(F){g.Qk(F,this.timerName)};g.z(UHv,g.uA);g.A=UHv.prototype;g.A.FI=function(F){return this.loop||!!F||this.index+1=0}; g.A.setShuffle=function(F){this.shuffle=F;F=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var J=0;J0)||OO(this,1,!0)}; g.A.j_=function(){this.W=!0;this.C.iX(this.D);this.D=this.C.B(document,"mouseup",this.wF)}; g.A.wF=function(){this.W=!1;OO(this,8,!1);this.C.iX(this.D);this.D=this.C.B(this.target,"mousedown",this.j_)}; g.A.aW=function(F){if(F=(F=F.changedTouches)&&F[0])this.Gj=F.identifier,this.C.iX(this.Y),this.Y=this.C.B(this.target,"touchend",this.U7,void 0,!0),OO(this,1024,!0)}; g.A.U7=function(F){if(F=F.changedTouches)for(var J=0;J1280||w>720)if(u=b.lr("maxresdefault.jpg"))break;if(I>640||w>480)if(u=b.lr("maxresdefault.jpg"))break; if(I>320||w>180)if(u=b.lr("sddefault.jpg")||b.lr("hqdefault.jpg")||b.lr("mqdefault.jpg"))break;if(u=b.lr("default.jpg"))break}g.U7(J)&&(J=new Image,J.addEventListener("load",function(){JAm()}),J.src=u?u:"",this.api.Iu().tick("ftr")); this.W.style.backgroundImage=u?"url("+u+")":""};g.z(g.UO,g.U);g.UO.prototype.resize=function(){}; g.UO.prototype.U=function(F){var J=this;this.T=!1;o3_(this);var b=F.Ap,I=this.api.J();b!=="GENERIC_WITHOUT_LINK"||I.W?b==="TOO_MANY_REQUESTS"?(I=this.api.getVideoData(),this.Ce(t2(this,"TOO_MANY_REQUESTS_WITH_LINK",I.t4(),void 0,void 0,void 0,!1))):b!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||I.W?this.api.J().S("html5_enable_bandaid_error_screen")&&b==="HTML5_SPS_UMP_STATUS_REJECTED"&&!I.W?(I=I.hostLanguage,F="//support.google.com/youtube?p=videoError",I&&(F=g.Os(F,{hl:I})),this.Ce(t2(this,"HTML5_SPS_UMP_STATUS_REJECTED", F))):this.api.J().S("enable_adb_handling_in_sabr")&&b==="BROWSER_OR_EXTENSION_ERROR"&&!I.W?(I=I.hostLanguage,F="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",I&&(F=g.Os(F,{hl:I})),this.Ce(t2(this,"BROWSER_OR_EXTENSION_ERROR",F))):this.Ce(g.x0(F.errorMessage)):this.Ce(t2(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(F=I.hostLanguage,b="//support.google.com/youtube/?p=player_error1",F&&(b=g.Os(b, {hl:F})),this.Ce(t2(this,"GENERIC_WITH_LINK_AND_CPN",b,!0)),I.T1&&!I.Z&&O9z(this,function(w){if(g.LE(w,J.api,!k2(J.api.J()))){w={as3:!1,html5:!0,player:!0,cpn:J.api.getVideoData().clientPlaybackNonce};var M=J.api;M.IC("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:w});M.isFullscreen()&&M.toggleFullscreen()}})); if(this.T){var u=this.RI("ytp-error-link");u&&(this.api.createClientVe(u,this,216104),this.api.logVisibility(u,!0),O9z(this,function(){J.api.logClick(u)}))}}; var kUJ=/([^<>]+)<\/a>/;g.z(hQk,g.U);g.A=hQk.prototype;g.A.onClick=function(F){this.innertubeCommand?(this.G.jE("innertubeCommand",this.innertubeCommand),F.preventDefault()):g.LE(F,this.G,!0);this.G.logClick(this.element)}; g.A.onVideoDataChange=function(F,J){U24(this,J);this.r0&&x2m(this,this.r0)}; g.A.Tb=function(F){var J=this.G.getVideoData();this.videoId!==J.videoId&&U24(this,J);this.C&&x2m(this,F.state);this.r0=F.state}; g.A.Bo=function(){this.Z.show();this.G.publish("paidcontentoverlayvisibilitychange",!0);this.G.logVisibility(this.element,!0)}; g.A.fk=function(){this.Z.hide();this.G.publish("paidcontentoverlayvisibilitychange",!1);this.G.logVisibility(this.element,!1)};g.z(Zg,g.U);Zg.prototype.hide=function(){this.C.stop();this.message.style.display="none";g.U.prototype.hide.call(this)}; Zg.prototype.onStateChange=function(F){this.aC(F.state)}; Zg.prototype.aC=function(F){(g.x(F,128)||this.api.Pq()?0:g.x(F,16)||g.x(F,1))?this.C.start():this.hide()}; Zg.prototype.U=function(){this.message.style.display="block"};g.z(HU,g.YJ);HU.prototype.onMutedAutoplayChange=function(F){this.T&&(F?(n3C(this),this.Bo()):(this.C&&this.logClick(),this.fk()))}; HU.prototype.hh=function(F){this.api.isMutedByMutedAutoplay()&&g.e1(F,2)&&this.fk()}; HU.prototype.onClick=function(){this.api.unMute();this.logClick()}; HU.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.z(g.LV,g.s5);g.A=g.LV.prototype;g.A.init=function(){var F=this.api,J=F.getPlayerStateObject();this.KG=F.getPlayerSize();this.gY(J);this.E1();this.mO();this.api.publish("basechromeinitialized",this);this.WZ()&&this.api.publish("standardControlsInitialized")}; g.A.onVideoDataChange=function(F,J){var b=this.Mq!==J.videoId;if(b||F==="newdata"){F=this.api;F.isFullscreen()||(this.KG=F.getPlayerSize());var I;((I=this.api.getVideoData(1))==null?0:g.oH(I))&&this.MP()}b&&(this.Mq=J.videoId,b=this.rq,b.kQ=3E3,OO(b,512,!0),this.E1());this.api.S("web_render_jump_buttons")&&J.showSeekingControls&&(this.D6=572)}; g.A.rFW=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.A.qR=function(){var F=this.api.AD()&&this.api.U0(),J=this.api.bA();return this.pn||F||this.xb||J}; g.A.MP=function(){var F=!this.qR();g.qr(this.api.getRootNode(),"ytp-menu-shown",!F);var J;((J=this.api.getVideoData(1))==null?0:g.oH(J))&&g.qr(this.api.getRootNode(),"ytp-hide-controls",!F)}; g.A.ZO=function(F){try{if(!g.uB(this.api.getRootNode(),F))return!1}catch(J){return!1}for(;F&&!v4k(F);)F=F===this.api.getRootNode()?null:F.parentElement||null;return!!F}; g.A.lN=function(F){var J=this.api.getRootNode();g.qr(J,"ytp-autohide",F);g.qr(J,"ytp-autohide-active",!0);this.U$.start(F?250:100);F&&(this.tR=!1,g.Mr(J,"ytp-touch-mode"));this.YJ=!F;this.api.GY(!F)}; g.A.Ut=function(){var F=this.api.getRootNode();g.qr(F,"ytp-autohide-active",!1)}; g.A.zSQ=function(){this.wd=!0}; g.A.hSv=function(F){if(this.api.J().S("player_doubletap_to_seek")||this.api.J().Y)this.wd=!1,this.UU&&this.iX(this.UU),this.jk===0&&Jq(this,F)?(this.Fw(),this.Ex.start(),this.UU=this.B(this.api.mG(),"touchmove",this.zSQ,void 0,!0)):this.Ex.stop();L9k(this)&&Jq(this,F)&&!this.api.J().Y&&Z9o(this);var J=this.Xl.K4();if(!g.dN(this.api.J())&&lb&&FWa(this,F))J&&F.preventDefault();else if(this.tR=!0,g.uG(this.api.getRootNode(),"ytp-touch-mode"),this.rq.q6(),this.api.J().S("player_doubletap_to_seek")||this.api.J().Y)if(J= this.api.getPlayerStateObject(),!(!this.api.hX()||g.x(J,2)&&g.fE(this.api)||g.x(J,64))){J=Date.now()-this.Gt;this.jk+=1;if(J<=350){this.c$=!0;J=this.api.getPlayerSize().width/3;var b=this.api.getRootNode().getBoundingClientRect(),I=F.targetTouches[0].clientX-b.left;b=F.targetTouches[0].clientY-b.top;var u=(this.jk-1)*10;I>0&&IJ*2&&I=650;this.rq.resize();g.qr(J,"ytp-fullscreen",this.api.isFullscreen());g.qr(J,"ytp-large-width-mode",b);g.qr(J,"ytp-small-mode",this.Ru());g.qr(J,"ytp-tiny-mode",this.pG());g.qr(J,"ytp-big-mode",this.Ua());this.vg&&this.vg.resize(F)}; g.A.hh=function(F){this.gY(F.state);this.E1()}; g.A.Gp=bk(5);g.A.b6=function(){var F=!!this.Mq&&!this.api.w6()&&!this.ZE,J=this.api.getPresentingPlayerType()===2,b=this.api.J();if(J){if(Cc7&&b.S("enable_visit_advertiser_support_on_ipad_mweb"))return!1;J=XN(this.api.TF());F&&(J&&J.player?F=(F=J.player.getVideoData(2))?F.isListed&&!g.dX(J.player.J()):!1:(q_("showInfoBarDuringAd: this is null"),F=!1));return F}return F&&(b.gT||this.api.isFullscreen()||b.Tc)}; g.A.E1=function(){var F=this.b6();this.CL!==F&&(this.CL=F,g.qr(this.api.getRootNode(),"ytp-hide-info-bar",!F))}; g.A.gY=function(F){var J=F.isCued()||this.api.Bx()&&this.api.getPresentingPlayerType()!==3;J!==this.isCued&&(this.isCued=J,this.T_&&this.iX(this.T_),this.T_=this.B(this.api.mG(),"touchstart",this.hSv,void 0,J));var b=this.rq,I=F.isPlaying()&&!g.x(F,32)||this.api.G9();OO(b,128,!I);b=this.rq;I=this.api.getPresentingPlayerType()===3;OO(b,256,I);b=this.api.getRootNode();g.x(F,2)?I=[hF.ENDED]:(I=[],g.x(F,8)?I.push(hF.PLAYING):g.x(F,4)&&I.push(hF.PAUSED),g.x(F,1)&&!g.x(F,32)&&I.push(hF.BUFFERING),g.x(F, 32)&&I.push(hF.SEEKING),g.x(F,64)&&I.push(hF.UNSTARTED));g.ay(this.aT,I)||(g.An(b,this.aT),this.aT=I,g.wD(b,I));I=this.api.J();var u=g.x(F,2);a:{var w=this.api.J();var M=w.controlsType;switch(M){case "2":case "0":w=!1;break a}w=M==="3"&&!g.x(F,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:NzY(XN(this.api.TF())))||this.api.bA()||g.dN(w)&&this.api.getPresentingPlayerType()===2?!1:!0}g.qr(b,"ytp-hide-controls",!w);g.qr(b,"ytp-native-controls",I.controlsType==="3"&&!J&&!u&&!this.xb);g.x(F, 128)&&!g.dN(I)?(this.vg||(this.vg=new g.UO(this.api),g.k(this,this.vg),g.Pp(this.api,this.vg.element,4)),this.vg.U(F.e6),this.vg.show()):this.vg&&(this.vg.dispose(),this.vg=null)}; g.A.bJ=function(){return this.api.AD()&&this.api.U0()?(this.api.Xs(!1,!1),!0):this.api.w6()?(g.Wp(this.api,!0),!0):!1}; g.A.onMutedAutoplayChange=function(F){this.xb=F;this.MP()}; g.A.Ua=function(){return!1}; g.A.Ru=function(){return!this.Ua()&&(this.api.getPlayerSize().width=0&&J.left>=0&&J.bottom>J.top&&J.right>J.left?J:null;J=this.size;F=F.clone();J=J.clone();I&&(M=J,u=5,(u&65)==65&&(F.x=I.right)&&(u&=-2),(u&132)==132&&(F.y=I.bottom)&&(u&=-5),F.xI.right&&(M.width=Math.min(I.right-F.x,w+M.width-I.left),M.width=Math.max(M.width,0))),F.x+M.width>I.right&&u&1&&(F.x=Math.max(I.right-M.width,I.left)),F.yI.bottom&&(M.height=Math.min(I.bottom-F.y,w+M.height-I.top),M.height=Math.max(M.height,0))),F.y+M.height>I.bottom&&u&4&&(F.y=Math.max(I.bottom-M.height,I.top)));I=new g.uu(0,0,0,0);I.left=F.x;I.top=F.y;I.width= J.width;I.height=J.height;g.yf(this.element,new g.K$(I.left,I.top));g.Ve(this.Z);this.Z.B($J(this),"contextmenu",this.k1z);this.Z.B(this.G,"fullscreentoggled",this.onFullscreenToggled);this.Z.B(this.G,"pageTransition",this.Gb)}; g.A.k1z=function(F){if(!F.defaultPrevented){var J=dm(F);g.uB(this.element,J)||this.fk();this.G.J().disableNativeContextMenu&&F.preventDefault()}}; g.A.onFullscreenToggled=function(){this.fk();dpz(this)}; g.A.Gb=function(){this.fk()};g.z(ec,g.U);ec.prototype.onClick=function(){var F=this,J,b,I,u;return g.S(function(w){if(w.C==1)return J=F.api.J(),b=F.api.getVideoData(),I=F.api.getPlaylistId(),u=J.getVideoUrl(b.videoId,I,void 0,!0),g.T(w,G3G(F,u),2);w.U&&jza(F);F.api.logClick(F.element);g.N4(w)})}; ec.prototype.VG=function(){this.updateValue("icon",{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",G1:!0,K:"ytp-svg-fill",L:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3 c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.updateValue("title-attr","Copiar link");this.visible=ENk(this);g.qr(this.element,"ytp-copylink-button-visible", this.visible);this.wY(this.visible);this.tooltip.Dl();this.api.logVisibility(this.element,this.visible&&this.D)}; ec.prototype.tJ=function(F){g.U.prototype.tJ.call(this,F);this.api.logVisibility(this.element,this.visible&&F)}; ec.prototype.X_=function(){g.U.prototype.X_.call(this);g.Mr(this.element,"ytp-copylink-button-visible")};g.z(Kn,g.U);Kn.prototype.show=function(){g.U.prototype.show.call(this);g.Z_(this.U)}; Kn.prototype.hide=function(){this.Z.stop();this.T=0;this.RI("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.Mr(this.element,"ytp-chapter-seek");g.Mr(this.element,"ytp-time-seeking");g.U.prototype.hide.call(this)}; Kn.prototype.xn=function(F,J,b,I){this.T=F===this.V?this.T+I:I;this.V=F;var u=F===-1?this.N:this.Y;u&&this.G.logClick(u);this.W?this.U.stop():g.L8(this.U);this.Z.start();this.element.setAttribute("data-side",F===-1?"back":"forward");var w=3*this.G.mG().getPlayerSize().height;u=this.G.mG().getPlayerSize();u=u.width/3-3*u.height;this.C.style.width=w+"px";this.C.style.height=w+"px";F===1?(this.C.style.left="",this.C.style.right=u+"px"):F===-1&&(this.C.style.right="",this.C.style.left=u+"px");var M=w* 2.5;w=M/2;var q=this.RI("ytp-doubletap-ripple");q.style.width=M+"px";q.style.height=M+"px";F===1?(F=this.G.mG().getPlayerSize().width-J+Math.abs(u),q.style.left="",q.style.right=F-w+"px"):F===-1&&(F=Math.abs(u)+J,q.style.right="",q.style.left=F-w+"px");q.style.top="calc((33% + "+Math.round(b)+"px) - "+w+"px)";if(b=this.RI("ytp-doubletap-ripple"))b.classList.remove("ytp-doubletap-ripple"),b.classList.add("ytp-doubletap-ripple");Vem(this,this.W?this.T:I)};g.z(Bh7,XI);g.A=Bh7.prototype;g.A.RM=function(F){this.qf||(this.qf=new hZ(this.G),g.k(this,this.qf));var J,b;if((J=this.Um)==null?0:(b=J.menu)==null?0:b.menuRenderer)this.qf.open(this.Um.menu.menuRenderer,F.target),F.preventDefault()}; g.A.jM=function(){return!!this.C}; g.A.DS=function(){return!!this.C}; g.A.aD=function(F){F.target===this.overflowButton.element?F.preventDefault():(this.T1&&this.G.jE("innertubeCommand",this.T1),this.o7(!1))}; g.A.tx=function(){this.o7(!0);var F,J;((F=this.C)==null?0:(J=F.bannerData)==null?0:J.dismissedStatusKey)&&this.Kk.push(this.C.bannerData.dismissedStatusKey);this.t7()}; g.A.ye=function(){this.t7();y$(this)}; g.A.v7E=function(F){var J=this,b;if(F.id!==((b=this.C)==null?void 0:b.identifier)){this.t7();b=g.N(this.kQ);for(var I=b.next();!I.done;I=b.next()){var u=I.value,w=void 0,M=void 0;if((I=(w=u)==null?void 0:(M=w.bannerData)==null?void 0:M.itemData)&&u.identifier===F.id){M=w=void 0;var q=((w=u)==null?void 0:(M=w.bannerData)==null?void 0:M.dismissedStatusKey)||"";if(this.Kk.includes(q))break;this.C=u;this.banner.element.setAttribute("aria-label",I.accessibilityLabel||"");I.trackingParams&&(this.Z=!0,this.G.setTrackingParams(this.badge.element, I.trackingParams));this.N.show();C1(this);this.WN.wY(!I.stayInApp);k3Y(this);rUk(this);mG(this);this.T1=g.O(I.onTapCommand,sT);if(u=g.O(I.menuOnTap,sT))this.Um=g.O(u,x8U);u=void 0;this.banner.update({thumbnail:(u=(I.thumbnailSources||[])[0])==null?void 0:u.url,title:I.productTitle,price:I.priceReplacementText?I.priceReplacementText:I.price,salesOriginalPrice:YKz(this),priceDropReferencePrice:$pk(this),promotionText:szo(this),priceA11yText:CKz(this),affiliateDisclaimer:I.affiliateDisclaimer,vendor:Xho(this)}); q=M=w=u=void 0;((u=I)==null?0:(w=u.hiddenProductOptions)==null?0:w.showDropCountdown)&&((M=I)==null?0:(q=M.hiddenProductOptions)==null?0:q.dropTimestampMs)&&(this.xm=new g.ty(function(){Dp_(J)},1E3),this.WN.hide(),this.countdownTimer.show(),Dp_(this)); this.G.S("web_player_enable_featured_product_banner_exclusives_on_desktop")&&ThJ(this)&&(this.NW=new g.ty(function(){SKG(J)},1E3),SKG(this))}}}}; g.A.t7=function(){this.C&&(this.C=void 0,this.sY())}; g.A.onVideoDataChange=function(F,J){var b=this;F==="dataloaded"&&y$(this);var I,u,w;F=g.O((I=J.getWatchNextResponse())==null?void 0:(u=I.playerOverlays)==null?void 0:(w=u.playerOverlayRenderer)==null?void 0:w.productsInVideoOverlayRenderer,ceV);this.overflowButton.show();this.dismissButton.hide();var M=F==null?void 0:F.featuredProductsEntityKey;this.trendingOfferEntityKey=F==null?void 0:F.trendingOfferEntityKey;this.kQ.length||(RXY(this,M),mG(this));var q;(q=this.MI)==null||q.call(this);this.MI=g.ZR.subscribe(function(){RXY(b, M);mG(b)})}; g.A.X_=function(){y$(this);k3Y(this);rUk(this);XI.prototype.X_.call(this)};g.z(Upa,g.U);Upa.prototype.onClick=function(){this.G.logClick(this.element,this.U)};g.z(xpm,g.YJ);g.A=xpm.prototype;g.A.show=function(){g.YJ.prototype.show.call(this);this.G.publish("infopaneldetailvisibilitychange",!0);this.G.logVisibility(this.element,!0);nNC(this,!0)}; g.A.hide=function(){g.YJ.prototype.hide.call(this);this.G.publish("infopaneldetailvisibilitychange",!1);this.G.logVisibility(this.element,!1);nNC(this,!1)}; g.A.getId=function(){return this.Z}; g.A.DQ=function(){return this.itemData.length}; g.A.onVideoDataChange=function(F,J){if(J){var b,I,u,w;this.update({title:((b=J.R5)==null?void 0:(I=b.title)==null?void 0:I.content)||"",body:((u=J.R5)==null?void 0:(w=u.bodyText)==null?void 0:w.content)||""});var M;F=((M=J.R5)==null?void 0:M.trackingParams)||null;this.G.setTrackingParams(this.element,F);M=g.N(this.itemData);for(F=M.next();!F.done;F=M.next())F.value.dispose();this.itemData=[];var q;if((q=J.R5)==null?0:q.ctaButtons)for(J=g.N(J.R5.ctaButtons),q=J.next();!q.done;q=J.next())if(q=g.O(q.value, Rtb))q=new Upa(this.G,q,this.C),q.o8&&(this.itemData.push(q),q.Az(this.items))}}; g.A.X_=function(){this.hide();g.YJ.prototype.X_.call(this)};g.z(Hez,g.U);g.A=Hez.prototype;g.A.onVideoDataChange=function(F,J){Zem(this,J);this.r0&&FJm(this,this.r0)}; g.A.Wt=function(F){var J=this.G.getVideoData();this.videoId!==J.videoId&&Zem(this,J);FJm(this,F.state);this.r0=F.state}; g.A.WB=function(F){(this.Z=F)?this.hide():this.C&&this.show()}; g.A.gF=function(){this.U||this.Bo();this.showControls=!0}; g.A.kz=function(){this.U||this.fk();this.showControls=!1}; g.A.Bo=function(){var F;if((F=this.G)==null?0:F.S("embeds_web_enable_info_panel_sizing_fix")){var J;F=(J=this.G)==null?void 0:J.getPlayerSize();J=F.width<380;var b;F=F.height<(((b=this.G)==null?0:b.isEmbedsShortsMode())?400:280);var I,u;if((((I=this.G)==null?0:I.getPlayerStateObject().isCued())||((u=this.G)==null?0:g.x(u.getPlayerStateObject(),1024)))&&J&&F)return}this.C&&!this.Z&&(this.T.show(),this.G.publish("infopanelpreviewvisibilitychange",!0),this.G.logVisibility(this.element,!0))}; g.A.fk=function(){this.C&&!this.Z&&(this.T.hide(),this.G.publish("infopanelpreviewvisibilitychange",!1),this.G.logVisibility(this.element,!1))}; g.A.jPI=function(){this.U=!1;this.showControls||this.fk()};var LLL={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(LLL).reduce(function(F,J){F[LLL[J]]=J;return F},{}); var FC8={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(FC8).reduce(function(F,J){F[FC8[J]]=J;return F},{}); var JxV={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(JxV).reduce(function(F,J){F[JxV[J]]=J;return F},{});var bGb,IwW;bGb=[{option:"#fff",text:"Branco"},{option:"#ff0",text:"Amarelo"},{option:"#0f0",text:"Verde"},{option:"#0ff",text:"Ciano"},{option:"#00f",text:"Azul"},{option:"#f0f",text:"Magenta"},{option:"#f00",text:"Vermelho"},{option:"#080808",text:"Preto"}];IwW=[{option:0,text:i_(0)},{option:.25,text:i_(.25)},{option:.5,text:i_(.5)},{option:.75,text:i_(.75)},{option:1,text:i_(1)}]; g.fn=[{option:"fontFamily",text:"Estilo de fonte",options:[{option:1,text:"Serifada monoespa\u00e7ada"},{option:2,text:"Serifada proporcional"},{option:3,text:"Sem serifa monoespa\u00e7ada"},{option:4,text:"Sem serifa proporcional"},{option:5,text:"Casual"},{option:6,text:"Cursiva"},{option:7,text:"Versalete"}]},{option:"color",text:"Cor da fonte",options:bGb},{option:"fontSizeIncrement",text:"Tamanho da fonte",options:[{option:-2,text:i_(.5)},{option:-1,text:i_(.75)},{option:0,text:i_(1)},{option:1, text:i_(1.5)},{option:2,text:i_(2)},{option:3,text:i_(3)},{option:4,text:i_(4)}]},{option:"background",text:"Cor de fundo",options:bGb},{option:"backgroundOpacity",text:"Opacidade de fundo",options:IwW},{option:"windowColor",text:"Cor da janela",options:bGb},{option:"windowOpacity",text:"Opacidade da janela",options:IwW},{option:"charEdgeStyle",text:"Estilo de borda do caractere",options:[{option:0,text:"Nenhuma"},{option:4,text:"Sombra projetada"},{option:1,text:"Aumentada"},{option:2,text:"Reduzida"}, {option:3,text:"Circunscrito"}]},{option:"textOpacity",text:"Opacidade da fonte",options:[{option:.25,text:i_(.25)},{option:.5,text:i_(.5)},{option:.75,text:i_(.75)},{option:1,text:i_(1)}]}];var uW5=[27,9,33,34,13,32,187,61,43,189,173,95,79,87,67,80,78,75,70,65,68,87,83,107,221,109,219];g.z(MU4,g.s5);g.A=MU4.prototype; g.A.Xe=function(F){F.repeat||(this.T.hQ=!1);var J=!1,b=F.keyCode,I=dm(F),u=!F.altKey&&!F.ctrlKey&&!F.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||uW5.includes(b)),w=!1,M=!1,q=this.api.J();F.defaultPrevented?(u=!1,M=!0):q.xo&&!this.api.isMutedByEmbedsMutedAutoplay()&&(u=!1);if(b===9)J=!0;else{if(I)switch(b){case 32:case 13:if(I.tagName==="BUTTON"||I.tagName==="A"||I.tagName==="INPUT")J=!0,u=!1;else if(u){var v=I.getAttribute("role");!v||v!=="option"&&v!=="button"&&v.indexOf("menuitem")!==0|| (J=!0,I.click(),w=!0)}break;case 37:case 39:case 36:case 35:J=I.getAttribute("role")==="slider";break;case 38:case 40:v=I.getAttribute("role"),I=b===38?I.previousSibling:I.nextSibling,v==="slider"?J=!0:u&&(v==="option"?(I&&I.getAttribute("role")==="option"&&I.focus(),w=J=!0):v&&v.indexOf("menuitem")===0&&(I&&I.hasAttribute("role")&&I.getAttribute("role").indexOf("menuitem")===0&&I.focus(),w=J=!0))}if(u&&!w)switch(b){case 38:w=Math.min(this.api.getVolume()+5,100);ws(this.Fd,w,!1);this.api.setVolume(w); M=w=!0;break;case 40:w=Math.max(this.api.getVolume()-5,0);ws(this.Fd,w,!0);this.api.setVolume(w);M=w=!0;break;case 36:this.api.hX()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),M=w=!0);break;case 35:this.api.hX()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),M=w=!0)}}J&&NH(this,!0);(J||M)&&this.rq.q6();(w||u&&this.handleGlobalKeyDown(b,F.shiftKey,F.ctrlKey,F.altKey,F.metaKey,F.key,F.code,F.repeat))&&F.preventDefault();q.V&&(F={keyCode:F.keyCode, altKey:F.altKey,ctrlKey:F.ctrlKey,metaKey:F.metaKey,shiftKey:F.shiftKey,handled:F.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.SZ("onKeyPress",F))}; g.A.s6=function(F){var J=F.keyCode;(!this.api.S("web_player_spacebar_control_bugfix")||this.api.S("web_player_spacebar_control_bugfix")&&!this.Z)&&this.handleGlobalKeyUp(J,F.shiftKey,F.ctrlKey,F.altKey,F.metaKey,F.key,F.code)&&F.preventDefault()}; g.A.handleGlobalKeyUp=function(F,J,b,I,u,w,M){this.api.publish("keyboardserviceglobalkeyup",{keyCode:F,shiftKey:J,ctrlKey:b,altKey:I,metaKey:u,key:w,code:M});J=!1;if(this.T.hQ)return J;(b=g.GP(this.api.TF()))&&(b=b.Gd)&&b.uT&&(b.ea(F),J=!0);switch(F){case 9:NH(this,!0);J=!0;break;case 32:if(this.api.S("web_speedmaster_spacebar_control")&&(!this.api.S("web_player_spacebar_control_bugfix")&&!this.Z||this.api.S("web_player_spacebar_control_bugfix"))&&!this.api.J().xo){var q,v;F=(q=this.progressBar)== null?void 0:(v=q.U)==null?void 0:v.isEnabled;J=this.UW(F)}}return J}; g.A.handleGlobalKeyDown=function(F,J,b,I,u,w,M,q){q||(this.T.hQ=!1);var v=!1,a=this.api.J();if(a.xo&&!this.api.isMutedByEmbedsMutedAutoplay())return v;var e=g.GP(this.api.TF());if(e&&(e=e.Gd)&&e.uT)switch(F){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:v=e.TB(F)}a.W||v||(v=w||String.fromCharCode(F).toLowerCase(),this.U+=v,"awesome".indexOf(this.U)===0?(v=!0,7===this.U.length&&TjG(this.api.getRootNode(),"ytp-color-party")):(this.U=v,v="awesome".indexOf(this.U)===0));if(!v&&(!this.api.isMutedByEmbedsMutedAutoplay()|| uW5.includes(F))){var K=this.api.getVideoData(),p,m;e=(p=this.progressBar)==null?void 0:(m=p.U)==null?void 0:m.isEnabled;p=K?K.wX:[];m=xi?I:b;switch(F){case 80:J&&!a.qf&&(u_(this.Fd,BZ7(),"Anterior"),this.api.previousVideo(),v=!0);break;case 78:J&&!a.qf&&(u_(this.Fd,Nc(),"Pr\u00f3ximo"),this.api.nextVideo(),v=!0);break;case 74:this.api.hX()&&(this.api.startSeekCsiAction(),this.C?this.api.S("enable_key_press_seek_logging")?(v=l_(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"), pn(this.C,-1,10,v)):pn(this.C,-1,10):u_(this.Fd,{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",G1:!0,K:"ytp-svg-fill",L:{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),v=!0);break;case 76:this.api.hX()&&(this.api.startSeekCsiAction(),this.C?this.api.S("enable_key_press_seek_logging")?(v=l_(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),pn(this.C,1,10,v)):pn(this.C,1,10):u_(this.Fd,{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",G1:!0,K:"ytp-svg-fill",L:{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),v=!0);break;case 37:this.api.hX()&&(this.api.startSeekCsiAction(),m?(m=IPC(p,this.api.getCurrentTime()*1E3),m!==-1&&this.C!=null&&(PKC(this.C,-1,p[m].title),this.api.seekTo(p[m].startTime/1E3,void 0,void 0,void 0,53),v=!0)):(this.C?this.api.S("enable_key_press_seek_logging")?(v=l_(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),pn(this.C,-1,5,v)):pn(this.C,-1,5):u_(this.Fd,{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36", width:"100%"},j:[{X:"path",G1:!0,K:"ytp-svg-fill",L:{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),v=!0));break;case 39:this.api.hX()&&(this.api.startSeekCsiAction(),m?(m=bRm(p,this.api.getCurrentTime()*1E3),m!==-1&&this.C!=null&&(PKC(this.C,1,p[m].title),this.api.seekTo(p[m].startTime/1E3,void 0,void 0,void 0,52),v=!0)):(this.C!=null?this.api.S("enable_key_press_seek_logging")?(v=l_(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),pn(this.C,1,5,v)):pn(this.C,1,5):u_(this.Fd,{X:"svg",L:{height:"100%",version:"1.1", viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",G1:!0,K:"ytp-svg-fill",L:{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),v=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),ws(this.Fd,this.api.getVolume(),!1)):(this.api.mute(),ws(this.Fd,0,!0));v=!0;break;case 32:v=this.api.S("web_speedmaster_spacebar_control")?!this.api.J().qf:this.UW(e);break;case 75:v=this.UW(e);break;case 190:J?a.enableSpeedOptions&&qgm(this)&&(v=this.api.getPlaybackRate(),this.api.setPlaybackRate(v+.25,!0),beY(this.Fd,!1),v=!0):this.api.hX()&&(this.step(1),v=!0);break;case 188:J? a.enableSpeedOptions&&qgm(this)&&(v=this.api.getPlaybackRate(),this.api.setPlaybackRate(v-.25,!0),beY(this.Fd,!0),v=!0):this.api.hX()&&(this.step(-1),v=!0);break;case 70:Hmo(this.api)&&(this.api.toggleFullscreen().catch(function(){}),v=!0); break;case 27:e?(this.progressBar.FZ(),v=!0):this.W()&&(v=!0)}if(a.controlsType!=="3")switch(F){case 67:g.Y0(this.api.TF())&&(a=this.api.getOption("captions","track"),this.api.toggleSubtitles(),IuG(this.Fd,!a||a&&!a.displayName),v=!0);break;case 79:Wm(this,"textOpacity");break;case 87:Wm(this,"windowOpacity");break;case 187:case 61:Wm(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:Wm(this,"fontSizeIncrement",!0,!0)}var y;J||b||I||(F>=48&&F<=57?y=F-48:F>=96&&F<=105&&(y=F-96));y!=null&&this.api.hX()&& (this.api.startSeekCsiAction(),a=this.api.getProgressState(),this.api.seekTo(y/10*(a.seekableEnd-a.seekableStart)+a.seekableStart,void 0,void 0,void 0,81),v=!0);v&&this.rq.q6()}this.Z||this.api.publish("keyboardserviceglobalkeydown",{keyCode:F,shiftKey:J,ctrlKey:b,altKey:I,metaKey:u,key:w,code:M,repeat:q},this.T);return v}; g.A.step=function(F){this.api.hX();if(this.api.getPlayerStateObject().isPaused()){var J=this.api.getVideoData().U;J&&(J=J.video)&&this.api.seekBy(F/(J.fps||30),void 0,void 0,F>0?77:78)}}; g.A.UW=function(F){if(!this.api.J().qf){var J;var b,I=(J=this.api.getVideoData())==null?void 0:(b=J.getPlayerResponse())==null?void 0:b.playabilityStatus;if(I){var u;J=((u=g.O(I.miniplayer,JL1))==null?void 0:u.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else J=!1;J&&this.api.jE("onExpandMiniplayer");F?this.progressBar.MD():(F=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.Fd.PP(F),F?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.A.X_=function(){g.L8(this.D);g.s5.prototype.X_.call(this)};g.z(g.ds,g.U);g.ds.prototype.aE=bk(11); g.ds.prototype.VG=function(){var F=this.G.J(),J=F.T||this.G.S("web_player_hide_overflow_button_if_empty_menu")&&this.z7.isEmpty();F=g.dN(F)&&g.Ef(this.G)&&g.x(this.G.getPlayerStateObject(),128);var b=this.G.getPlayerSize();this.visible=this.G.Ru()&&!F&&b.width>=240&&!g.tw(this.G.getVideoData())&&!J&&!this.C&&!this.G.isEmbedsShortsMode();g.qr(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.G.Dl();this.G.logVisibility(this.element,this.visible&&this.D)}; g.ds.prototype.tJ=function(F){g.U.prototype.tJ.call(this,F);this.G.logVisibility(this.element,this.visible&&F)}; g.ds.prototype.X_=function(){g.U.prototype.X_.call(this);g.Mr(this.element,"ytp-overflow-button-visible")};g.z(vvJ,g.YJ);g.A=vvJ.prototype;g.A.A0=function(F){F=dm(F);g.uB(this.element,F)&&(g.uB(this.C,F)||g.uB(this.closeButton,F)||CE(this))}; g.A.fk=function(){g.YJ.prototype.fk.call(this);this.G.DW(this.element)}; g.A.show=function(){this.uT&&this.G.publish("OVERFLOW_PANEL_OPENED");g.YJ.prototype.show.call(this);this.element.setAttribute("aria-modal","true");eD_(this,!0)}; g.A.hide=function(){g.YJ.prototype.hide.call(this);this.element.removeAttribute("aria-modal");eD_(this,!1)}; g.A.onFullscreenToggled=function(F){!F&&this.K4()&&CE(this)}; g.A.isEmpty=function(){return this.actionButtons.length===0}; g.A.focus=function(){for(var F=g.N(this.actionButtons),J=F.next();!J.done;J=F.next())if(J=J.value,J.uT){J.focus();break}};g.z(KJk,g.U);KJk.prototype.onClick=function(F){g.LE(F,this.api)&&this.api.playVideoAt(this.index)};g.z(pnk,g.YJ);g.A=pnk.prototype;g.A.show=function(){g.YJ.prototype.show.call(this);this.C.B(this.api,"videodatachange",this.Fv);this.C.B(this.api,"onPlaylistUpdate",this.Fv);this.Fv()}; g.A.hide=function(){g.YJ.prototype.hide.call(this);g.Ve(this.C);this.updatePlaylist(null)}; g.A.Fv=function(){this.updatePlaylist(this.api.getPlaylist());this.api.J().T&&(this.RI("ytp-playlist-menu-title-name").removeAttribute("href"),this.T&&(this.iX(this.T),this.T=null))}; g.A.It=function(){var F=this.playlist,J=F.author,b=J?"por $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",I={CURRENT_POSITION:String(F.index+1),PLAYLIST_LENGTH:String(F.getLength())};J&&(I.AUTHOR=J);this.update({title:F.title,subtitle:g.m8(b,I),playlisturl:this.api.getVideoUrl(!0)});J=F.U;if(J===this.Z)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[F.index];else{b=g.N(this.playlistData);for(I=b.next();!I.done;I=b.next())I.value.dispose(); b=F.getLength();this.playlistData=[];for(I=0;I=this.U&&!F.T&&!J.isAd()&&!this.api.isEmbedsShortsMode()}else F=!1;this.visible=F;this.wY(this.visible);g.qr(this.element,"ytp-search-button-visible",this.visible);g.qr(this.element,"ytp-show-search-title",!this.api.Ru());this.api.logVisibility(this.element,this.visible&&this.D)}; V$.prototype.tJ=function(F){g.U.prototype.tJ.call(this,F);this.api.logVisibility(this.element,this.visible&&F)};g.z(g.Pm,g.U);g.A=g.Pm.prototype;g.A.by=bk(8);g.A.onClick=function(){var F=this,J=this.api.J(),b=this.api.getVideoData(this.api.getPresentingPlayerType()),I=this.api.getPlaylistId();J=this.api.S("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):J.getVideoUrl(b.videoId,I,void 0,!0);if(navigator.share)try{var u=navigator.share({title:b.title,url:J});u instanceof Promise&&u.catch(function(w){fPv(F,w)})}catch(w){w instanceof Error&&fPv(this,w)}else this.C.bJ(),CE(this.T,this.element,!1); this.api.logClick(this.element)}; g.A.VG=function(){var F=this.api.J(),J=this.api.isEmbedsShortsMode();g.qr(this.element,"ytp-show-share-title",g.dN(F)&&!J);this.C.Ua()&&J?(F=(this.api.mG().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.aN(this.element,"right",F+"px")):J&&g.aN(this.element,"right","0px");this.updateValue("icon",{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",G1:!0,K:"ytp-svg-fill",L:{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=lPG(this);g.qr(this.element,"ytp-share-button-visible",this.visible);this.wY(this.visible);this.tooltip.Dl();this.api.logVisibility(this.element,lPG(this)&&this.D)}; g.A.tJ=function(F){g.U.prototype.tJ.call(this,F);this.api.logVisibility(this.element,this.visible&&F)}; g.A.X_=function(){g.U.prototype.X_.call(this);g.Mr(this.element,"ytp-share-button-visible")};g.z(diz,g.YJ);g.A=diz.prototype;g.A.i8=function(F){F=dm(F);g.uB(this.W,F)||g.uB(this.closeButton,F)||CE(this)}; g.A.fk=function(){g.YJ.prototype.fk.call(this);this.tooltip.DW(this.element);this.api.logVisibility(this.C,!1);for(var F=g.N(this.T),J=F.next();!J.done;J=F.next())J=J.value,this.api.hasVe(J.element)&&this.api.logVisibility(J.element,!1)}; g.A.show=function(){var F=this.uT;g.YJ.prototype.show.call(this);this.VG();F||this.api.jE("onSharePanelOpened")}; g.A.sfQ=function(){this.uT&&this.VG()}; g.A.VG=function(){var F=this;g.uG(this.element,"ytp-share-panel-loading");g.Mr(this.element,"ytp-share-panel-fail");var J=this.api.getVideoData(),b=this.api.getPlaylistId()&&this.Z.checked;J.getSharePanelCommand&&ho(this.api.n8(),J.getSharePanelCommand,{includeListId:b}).then(function(I){F.iR()||(g.Mr(F.element,"ytp-share-panel-loading"),jLz(F,I))}); J=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",J);this.updateValue("linkText",J);this.updateValue("shareLinkWithUrl",g.m8("Compartilhar o link $URL",{URL:J}));bX(this.C);this.api.logVisibility(this.C,!0)}; g.A.onFullscreenToggled=function(F){!F&&this.K4()&&CE(this)}; g.A.focus=function(){this.C.focus()}; g.A.X_=function(){g.YJ.prototype.X_.call(this);EvG(this)};g.z(PYz,XI);g.A=PYz.prototype;g.A.X_=function(){sL_(this);XI.prototype.X_.call(this)}; g.A.aD=function(F){F.target!==this.dismissButton.element&&(this.o7(!1),this.G.jE("innertubeCommand",this.onClickCommand))}; g.A.tx=function(){this.Jz=!0;this.o7(!0);this.sY()}; g.A.wVN=function(F){this.V=F;this.sY()}; g.A.onVideoDataChange=function(F,J){if(F=!!J.videoId&&this.videoId!==J.videoId)this.videoId=J.videoId,this.Jz=!1,this.Gj=!0,this.Y=this.eE=!1,sL_(this),SgC(this,!1),this.U=this.C=!1,T4(this),B67(this);if(F||!J.videoId)this.Tj=this.Z=!1;var b,I;if(J==null?0:(b=J.getPlayerResponse())==null?0:(I=b.videoDetails)==null?0:I.isLiveContent)this.G0(!1);else{var u,w,M;J=g.O((u=J.getWatchNextResponse())==null?void 0:(w=u.playerOverlays)==null?void 0:(M=w.playerOverlayRenderer)==null?void 0:M.productsInVideoOverlayRenderer, ceV);this.V=this.enabled=!1;if(J){if(u=J==null?void 0:J.featuredProductsEntityKey){w=g.ZR.getState().entities;var q;if((q=qs(w,"featuredProductsEntity",u))==null?0:q.productsData){this.G0(!1);return}}this.enabled=!0;if(!this.Z){var v;q=(v=J.badgeInteractionLogging)==null?void 0:v.trackingParams;(this.Z=!!q)&&this.G.setTrackingParams(this.badge.element,q||null)}if(!this.Tj){var a;if(this.Tj=!((a=J.dismissButton)==null||!a.trackingParams)){var e;this.G.setTrackingParams(this.dismissButton.element,((e= J.dismissButton)==null?void 0:e.trackingParams)||null)}}J.isContentForward&&(v=J.productsData,SgC(this,!0),B67(this),v=r77(this,v),a=[],v.length>0&&a.push(v[0]),v.length>1&&(e=new g.U({X:"div",K:"ytp-suggested-action-more-products-icon"}),g.k(this,e),a.push(e),a.push.apply(a,g.W(v.slice(1)))),this.W=new g.U({X:"div",j:a,K:"ytp-suggested-action-content-forward-container"}),g.k(this,this.W),this.fW.element.append(this.W.element));this.text=g.Kr(J.text);var K;if(v=(K=J.dismissButton)==null?void 0:K.a11yLabel)this.KW= g.Kr(v);this.onClickCommand=J.onClickCommand;this.timing=J.timing;this.TU()}BAz(this);C1(this);this.sY()}}; g.A.jM=function(){return!this.V&&this.enabled&&!this.Jz&&!this.G.Ru()&&!this.Om&&(this.Y||this.Gj)}; g.A.jC=function(F){XI.prototype.jC.call(this,F);if(this.C||this.U)this.timing&&Bm(this.timing.preview)&&(this.C=!1,T4(this),this.U=!1,T4(this),this.G.Yo("shopping_overlay_preview_collapsed"),this.G.Yo("shopping_overlay_preview_expanded"),F=rs(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),Bm(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.G.Yo("shopping_overlay_expanded"),F.end=this.timing.expanded.endSec*1E3),this.G.TU([F])), this.eE=!0,C1(this);T4(this)}; g.A.G0=function(F){(this.Y=F)?($c(this),C1(this,!1)):(sL_(this),this.dD.start());this.sY()}; g.A.TU=function(F){var J=this.timing;F=(F===void 0?0:F)+this.G.getCurrentTime();var b=[],I=J.visible,u=J.preview;J=J.expanded;Bm(I)&&(G7z(I,F),b.push(rs(I.startSec,I.endSec,"shopping_overlay_visible")));Bm(u)&&(G7z(u,F),I=u.startSec+1,b.push(rs(u.startSec,I,"shopping_overlay_preview_collapsed")),b.push(rs(I,u.endSec,"shopping_overlay_preview_expanded")));Bm(J)&&(G7z(J,F),b.push(rs(J.startSec,J.endSec,"shopping_overlay_expanded")));this.G.TU(b)};g.z(CYJ,g.U); CYJ.prototype.VG=function(){var F=this.api.J();this.wY(g.dN(F)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.uT);var J=this.api.getVideoData(),b=!1;this.api.getPresentingPlayerType()===2?b=!!J.videoId&&!!J.isListed&&!!J.author&&!!J.Om&&!!J.profilePicture:g.dN(F)&&(b=!!J.videoId&&!!J.Om&&!!J.profilePicture&&!g.tw(J)&&!F.T&&!(F.Y&&this.api.getPlayerSize().width<200));var I=J.profilePicture;F=g.dN(F)?J.expandedTitle:J.author;I=I===void 0? "":I;F=F===void 0?"":F;b?(this.U!==I&&(this.C.style.backgroundImage="url("+I+")",this.U=I),this.updateValue("channelLogoLabel",g.m8("Foto do canal $CHANNEL_NAME",{CHANNEL_NAME:F})),g.uG(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Mr(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.C,b&&this.D);this.api.logVisibility(this.channelName,b&&this.D);this.subscribeButton&&(this.subscribeButton.channelId=J.uB);this.updateValue("expandedTitle",J.expandedTitle)};g.z(Sc,g.YJ);Sc.prototype.show=function(){g.YJ.prototype.show.call(this);this.C.start()}; Sc.prototype.hide=function(){g.YJ.prototype.hide.call(this);this.C.stop()}; Sc.prototype.xR=function(F,J){F==="dataloaded"&&((this.B9=J.B9,this.jZ=J.jZ,isNaN(this.B9)||isNaN(this.jZ))?this.T&&(this.G.Yo("intro"),this.G.removeEventListener(g.u6("intro"),this.V),this.G.removeEventListener(g.wq("intro"),this.W),this.G.removeEventListener("onShowControls",this.Z),this.hide(),this.T=!1):(this.G.addEventListener(g.u6("intro"),this.V),this.G.addEventListener(g.wq("intro"),this.W),this.G.addEventListener("onShowControls",this.Z),F=new g.b6(this.B9,this.jZ,{priority:9,namespace:"intro"}), this.G.TU([F]),this.T=!0))};g.z(sb,g.U);sb.prototype.onClick=function(){this.G.Rv()}; sb.prototype.VG=function(){var F=!0;g.dN(this.G.J())&&(F=F&&this.G.mG().getPlayerSize().width>=480);this.wY(F);this.updateValue("icon",this.G.Hh()?{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",G1:!0,L:{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"}}]}: {X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",G1:!0,K:"ytp-svg-fill",L:{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.z(QLJ,g.U);QLJ.prototype.X_=function(){this.C=null;g.U.prototype.X_.call(this)};g.z(Yr,g.U);Yr.prototype.onClick=function(){this.G.jE("innertubeCommand",this.U)}; Yr.prototype.N=function(F){F!==this.W&&(this.update({title:F,ariaLabel:F}),this.W=F);F?this.show():this.hide()}; Yr.prototype.Y=function(){this.C.disabled=this.U==null;g.qr(this.C,"ytp-chapter-container-disabled",this.C.disabled);this.Q6()};g.z($r,Yr);$r.prototype.onClickCommand=function(F){g.O(F,ti)&&this.Q6()}; $r.prototype.updateVideoData=function(F,J){var b,I,u;F=g.O((b=J.getWatchNextResponse())==null?void 0:(I=b.playerOverlays)==null?void 0:(u=I.playerOverlayRenderer)==null?void 0:u.decoratedPlayerBarRenderer,lr);b=g.O(F==null?void 0:F.playerBarActionButton,g.TX);this.G.S("web_player_updated_entrypoint")&&(this.V=Ka(b==null?void 0:b.text));this.U=b==null?void 0:b.command;Yr.prototype.Y.call(this)}; $r.prototype.Q6=function(){var F=this.G.S("web_player_updated_entrypoint")?this.V:"",J=this.Z.C,b,I=((b=this.G.getLoopRange())==null?void 0:b.type)==="clips";if(J.length>1&&!I){F=this.G.getProgressState().current*1E3;b=z4(J,F);F=J[b].title||"Cap\u00edtulos";if(b!==this.currentIndex||this.T)this.G.jE("innertubeCommand",J[b].onActiveCommand),this.currentIndex=b;this.T=!1}else this.T=!0;Yr.prototype.N.call(this,F)};g.z(Cn,g.U);Cn.prototype.W=function(F){g.x(F.state,32)?Dik(this,this.api.Si()):this.uT&&(g.x(F.state,16)||g.x(F.state,1))||this.C.hide()}; Cn.prototype.aP=function(){var F=this.api.getPlayerStateObject();(g.x(F,32)||g.x(F,16))&&k7Y(this)}; Cn.prototype.V=function(){this.T=NaN;k7Y(this)}; Cn.prototype.hide=function(){this.U&&Dik(this,null);g.U.prototype.hide.call(this)};g.z(ORz,g.U);g.A=ORz.prototype;g.A.onClick=function(){var F=this;if(this.G.J().Om||this.G.J().Y){this.G.logClick(this.element);try{this.G.toggleFullscreen().catch(function(J){F.L5(J)})}catch(J){this.L5(J)}}else CE(this.message,this.element,!0)}; g.A.L5=function(F){String(F).includes("fullscreen error")?g.rQ(F):g.Td(F);this.MS()}; g.A.MS=function(){this.disable();this.message.Bo(this.element,!0)}; g.A.Up=function(){ye()===this.G.getRootNode()?this.T.start():(this.T.stop(),this.message&&this.message.hide())}; g.A.t1=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var F=window.screen.width*.9,J=window.screen.height*.9,b=Math.max(window.outerWidth,window.innerWidth),I=Math.max(window.outerHeight,window.innerHeight);if(b>I!==F>J){var u=b;b=I;I=u}F>b&&J>I&&this.MS()}}; g.A.disable=function(){var F=this;if(!this.message){var J=(pw(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"Tela cheia indispon\u00edvel. $BEGIN_LINKSaiba mais$END_LINK":"Seu navegador n\u00e3o tem suporte para tela cheia. $BEGIN_LINKSaiba mais$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.YJ(this.G,{X:"div",Dv:["ytp-popup","ytp-generic-popup"],L:{role:"alert",tabindex:"0"},j:[J[0],{X:"a",L:{href:"https://support.google.com/youtube/answer/6276924", target:this.G.J().N},sQ:J[2]},J[4]]},100,!0);this.message.hide();g.k(this,this.message);this.message.subscribe("show",function(b){F.U.rG(F.message,b)}); g.Pp(this.G,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.C)();this.C=null}}; g.A.VG=function(){var F=Hmo(this.G),J=this.G.J().Y&&this.G.getPlayerSize().width<250;this.wY(F&&!J);var b;((b=this.G.J())==null?0:b.S("embeds_use_parent_visibility_in_ve_logging"))?this.G.logVisibility(this.element,this.uT&&this.D):this.G.logVisibility(this.element,this.uT)}; g.A.wT=function(F){if(F){var J={X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"g",K:"ytp-fullscreen-button-corner-2",j:[{X:"path",G1:!0,K:"ytp-svg-fill",L:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{X:"g",K:"ytp-fullscreen-button-corner-3",j:[{X:"path",G1:!0,K:"ytp-svg-fill",L:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{X:"g",K:"ytp-fullscreen-button-corner-0",j:[{X:"path",G1:!0,K:"ytp-svg-fill",L:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{X:"g", K:"ytp-fullscreen-button-corner-1",j:[{X:"path",G1:!0,K:"ytp-svg-fill",L:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};F=g.NZ(this.G,"Sair da tela inteira","f");this.update({"data-title-no-tooltip":"Sair da tela inteira"});document.activeElement===this.element&&this.G.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(b){g.rQ(b)})}else J={X:"svg", L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"g",K:"ytp-fullscreen-button-corner-0",j:[{X:"path",G1:!0,K:"ytp-svg-fill",L:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{X:"g",K:"ytp-fullscreen-button-corner-1",j:[{X:"path",G1:!0,K:"ytp-svg-fill",L:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{X:"g",K:"ytp-fullscreen-button-corner-2",j:[{X:"path",G1:!0,K:"ytp-svg-fill",L:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{X:"g",K:"ytp-fullscreen-button-corner-3", j:[{X:"path",G1:!0,K:"ytp-svg-fill",L:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},F=g.NZ(this.G,"Tela inteira","f"),this.update({"data-title-no-tooltip":"Tela inteira"});F=this.message?null:F;this.update({title:F,icon:J});this.U.W1().Dl()}; g.A.X_=function(){this.message||((0,this.C)(),this.C=null);g.U.prototype.X_.call(this)}; g.A.tJ=function(F){g.U.prototype.tJ.call(this,F);var J;((J=this.G.J())==null?0:J.S("embeds_use_parent_visibility_in_ve_logging"))&&this.G.logVisibility(this.element,this.uT&&F)};g.z(XG,g.U);XG.prototype.onClick=function(){this.G.logClick(this.element);this.G.seekBy(this.C,!0);var F=this.C>0?1:-1,J=Math.abs(this.C),b=this.G.p8().zX;b&&pn(b,F,J);this.U.isActive()?this.T=!0:(F=["ytp-jump-spin"],this.C<0&&F.push("backwards"),this.element.classList.add.apply(this.element.classList,g.W(F)),g.Z_(this.U))};g.z(Q$,Yr);Q$.prototype.onClickCommand=function(F){g.O(F,oLb)&&this.Q6()}; Q$.prototype.updateVideoData=function(){var F,J;this.U=(F=hDa(this))==null?void 0:(J=F.onTap)==null?void 0:J.innertubeCommand;Yr.prototype.Y.call(this)}; Q$.prototype.Q6=function(){var F="",J=this.Z.V,b,I=(b=hDa(this))==null?void 0:b.headerTitle;b=I?g.Kr(I):"";var u;I=((u=this.G.getLoopRange())==null?void 0:u.type)==="clips";J.length>1&&!I&&(F=this.G.getProgressState().current*1E3,u=J74(J,F),F=u!=null?J[u].title:b,u!=null&&u!==this.currentIndex&&(this.G.jE("innertubeCommand",J[u].onActiveCommand),this.currentIndex=u));Yr.prototype.N.call(this,F)};g.z(R9,g.U);R9.prototype.onClick=function(){this.G.jE("onCollapseMiniplayer");this.G.logClick(this.element)}; R9.prototype.VG=function(){this.visible=!this.G.isFullscreen();this.wY(this.visible);this.G.logVisibility(this.element,this.visible&&this.D)}; R9.prototype.tJ=function(F){g.U.prototype.tJ.call(this,F);this.G.logVisibility(this.element,this.visible&&F)};g.z(Db,g.U);g.A=Db.prototype;g.A.c7=function(F){this.visible=F.width>=300||this.WN;this.wY(this.visible);this.G.logVisibility(this.element,this.visible&&this.D)}; g.A.y_D=function(){this.G.J().dD?this.G.isMuted()?this.G.unMute():this.G.mute():CE(this.message,this.element,!0);this.G.logClick(this.element)}; g.A.onVolumeChange=function(F){this.setVolume(F.volume,F.muted)}; g.A.setVolume=function(F,J){var b=this,I=J?0:F/100,u=this.G.J();F=I===0?1:F>50?1:0;if(this.W!==F){var w=this.eE;isNaN(w)?xiv(this,F):grG(this.kQ,function(q){xiv(b,w+(b.W-w)*q)},250); this.W=F}I=I===0?1:0;if(this.Z!==I){var M=this.N;isNaN(M)?nvC(this,I):grG(this.Tj,function(q){nvC(b,M+(b.Z-M)*q)},250); this.Z=I}u.dD&&(u=g.NZ(this.G,"Sem \u00e1udio","m"),I=g.NZ(this.G,"Reativar o som","m"),this.updateValue("title",J?I:u),this.update({"data-title-no-tooltip":J?"Reativar o som":"Sem \u00e1udio"}),this.tooltip.Dl())}; g.A.tJ=function(F){g.U.prototype.tJ.call(this,F);this.G.logVisibility(this.element,this.visible&&F)}; var c7Y=["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"],Uim=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",26.77," C",23.01,",",25.86," ",26,",",22.28," ",26,",",18," C",26,",",13.72," ", 23.01,",",10.14," ",19,",",9.23," L",19,",",11.29," Z"];g.z(g.kr,g.U);g.A=g.kr.prototype;g.A.onStateChange=function(F){this.aC(F.state);var J;((J=this.G.J())==null?0:J.S("embeds_use_parent_visibility_in_ve_logging"))&&this.G.logVisibility(this.element,this.uT&&this.D)}; g.A.aC=function(F){var J=g.dS(this.G.getVideoData()),b=!1;F.isOrWillBePlaying()?F=J?4:2:g.x(F,2)?(F=3,b=J):F=1;this.element.disabled=b;if(this.C!==F){J=null;switch(F){case 2:J=g.NZ(this.G,"Pausa","k");this.update({"data-title-no-tooltip":"Pausa"});break;case 3:J="Reiniciar";this.update({"data-title-no-tooltip":"Reiniciar"});break;case 1:J=g.NZ(this.G,"Reproduzir","k");this.update({"data-title-no-tooltip":"Reproduzir"});break;case 4:J="Interromper reprodu\u00e7\u00e3o ao vivo",this.update({"data-title-no-tooltip":"Interromper reprodu\u00e7\u00e3o ao vivo"})}F=== 3?this.update({title:J,icon:tU7(F)}):(this.update({title:J}),(J=tU7(F))&&this.C&&this.C!==3?yqa(this.transition,this.element,J):this.updateValue("icon",J));this.tooltip.Dl();this.C=F}}; g.A.onVideoDataChange=function(){g.qr(this.element,"ytp-play-button-playlist",g.Ef(this.G))}; g.A.UW=function(F){this.G.logClick(this.element);if(this.G.getPlayerStateObject().isOrWillBePlaying())this.G.pauseVideo();else{if(this.G.isMinimized()&&this.G.getPlayerStateObject().isCued()){var J={},b;if((b=this.G.getVideoData())==null?0:b.W)J.cttAuthInfo={token:this.G.getVideoData().W,videoId:this.G.getVideoData().videoId};Rr("direct_playback",J);this.G.Iu().timerName="direct_playback"}else this.C!==3||this.G.J().S("html5_no_csi_on_replay")||WU(this.G.Iu());this.G.playVideo()}this.G.isMinimized()&& (F==null?void 0:F.type)==="click"&&this.element.blur()}; g.A.tJ=function(F){g.U.prototype.tJ.call(this,F);var J;((J=this.G.J())==null?0:J.S("embeds_use_parent_visibility_in_ve_logging"))&&this.G.logVisibility(this.element,this.uT&&F)};g.z(g.Ob,g.U);g.A=g.Ob.prototype;g.A.onVideoDataChange=function(){HRY(this);this.Z&&(this.iX(this.Z),this.Z=null);this.videoData=this.G.getVideoData(1);if(this.playlist=this.G.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.Z=this.B(this.G,"progresssync",this.fY);this.T=LJv(this);ZRk(this);this.BI(this.G.mG().getPlayerSize())}; g.A.BI=function(F){F=F===void 0?this.G.mG().getPlayerSize():F;var J,b=((J=this.G.getLoopRange())==null?void 0:J.type)==="clips";F=(g.Ef(this.G)||this.C&&g.Bp(this.G)&&!this.G.S("web_hide_next_button")||F0v(this))&&!b&&(this.C||F.width>=400);this.wY(F);this.G.logVisibility(this.element,F)}; g.A.onClick=function(F){this.G.logClick(this.element);var J=!0;this.V?J=g.LE(F,this.G):F.preventDefault();J&&(this.C&&this.G.getPresentingPlayerType()===5?this.G.publish("ytoprerollinternstitialnext"):this.C?(WU(this.G.Iu()),this.G.publish("playlistnextbuttonclicked",this.element),this.G.nextVideo(!0)):this.T?this.G.seekTo(0):(WU(this.G.Iu()),this.G.publish("playlistprevbuttonclicked",this.element),this.G.previousVideo(!0)))}; g.A.fY=function(){var F=LJv(this);F!==this.T&&(this.T=F,ZRk(this))}; g.A.X_=function(){this.U&&(this.U(),this.U=null);HRY(this);g.U.prototype.X_.call(this)};g.z(b43,g.U);g.A=b43.prototype;g.A.E7=function(F){this.oT(F.pageX);this.vI(F.pageX+F.deltaX);INo(this)}; g.A.oT=function(F){this.Tj=F-this.qf}; g.A.vI=function(F){F-=this.qf;!isNaN(this.Tj)&&this.thumbnails.length>0&&(this.N=F-this.Tj,this.thumbnails.length>0&&this.N!==0&&(this.T=this.Y+this.N,F=quz(this,this.T),this.T<=this.C/2&&this.T>=AFa(this)?(this.api.seekTo(F,!1,void 0,void 0,25),g.aN(this.Gj,"transform","translateX("+(this.T-this.C/2)+"px)"),JFa(this,F)):this.T=this.Y))}; g.A.Mg=function(){this.eE&&(this.eE.vz=!0);var F=(0,g.jR)()-this.zj<300;if(Math.abs(this.N)<5&&!F){this.zj=(0,g.jR)();F=this.Tj+this.N;var J=this.C/2-F;this.oT(F);this.vI(F+J);INo(this);this.api.logClick(this.W)}INo(this)}; g.A.hI=function(){o9(this,this.api.getCurrentTime())}; g.A.play=function(F){this.api.seekTo(quz(this,this.T),void 0,void 0,void 0,26);this.api.playVideo();F&&this.api.logClick(this.playButton)}; g.A.onExit=function(F){this.api.seekTo(this.dD,void 0,void 0,void 0,63);this.api.playVideo();F&&this.api.logClick(this.dismissButton)}; g.A.mO=function(F,J){this.qf=F;this.C=J;o9(this,this.api.getCurrentTime())}; g.A.enable=function(){this.isEnabled||(this.isEnabled=!0,this.dD=this.api.getCurrentTime(),JFa(this,this.dD),g.qr(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.fW=this.B(this.element,"wheel",this.E7),this.logVisibility(this.isEnabled))}; g.A.disable=function(){this.isEnabled=!1;this.hide();g.qr(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.fW&&this.iX(this.fW);this.logVisibility(this.isEnabled)}; g.A.reset=function(){this.disable();this.Z=[];this.WN=!1}; g.A.logVisibility=function(F){this.api.logVisibility(this.element,F);this.api.logVisibility(this.W,F);this.api.logVisibility(this.dismissButton,F);this.api.logVisibility(this.playButton,F)}; g.A.X_=function(){for(;this.U.length;){var F=void 0;(F=this.U.pop())==null||F.dispose()}g.U.prototype.X_.call(this)}; g.z(u6o,g.U);g.z(wIa,g.U);g.z(vE7,g.U);g.z(hq,g.U);hq.prototype.Pb=function(F){return F==="PLAY_PROGRESS"?this.Y:F==="LOAD_PROGRESS"?this.V:F==="LIVE_BUFFER"?this.W:this.T};K0Y.prototype.update=function(F,J,b,I){b=b===void 0?0:b;this.width=J;this.Z=b;this.C=J-b-(I===void 0?0:I);this.position=g.AD(F,b,b+this.C);this.T=this.position-b;this.U=this.T/this.C};g.z(pIC,g.U);g.z(g.xr,g.vi);g.A=g.xr.prototype; g.A.Wi=function(){var F=!1,J=this.api.getVideoData();if(!J)return F;this.api.Yo("timedMarkerCueRange");yFa(this);for(var b=g.N(J.cN),I=b.next();!I.done;I=b.next()){I=I.value;var u=void 0,w=(u=this.dD[I])==null?void 0:u.markerType;u=void 0;var M=(u=this.dD[I])==null?void 0:u.markers;if(!M)break;if(w==="MARKER_TYPE_TIMESTAMPS"){F=g.N(M);for(w=F.next();!w.done;w=F.next()){u=w.value;w=new pIC;M=void 0;w.title=((M=u.title)==null?void 0:M.simpleText)||"";w.timeRangeStartMillis=Number(u.startMillis);w.C= Number(u.durationMillis);var q=M=void 0;w.onActiveCommand=(q=(M=u.onActive)==null?void 0:M.innertubeCommand)!=null?q:void 0;W0a(this,w)}dm7(this,this.V);F=this.V;w=this.zU;u=[];M=null;for(q=0;qv&&(M.end=v);v=um3(v,v+e);u.push(v);M=v;w[v.id]=F[q].onActiveCommand}}this.api.TU(u);this.jZ=this.dD[I];F=!0}else if(w==="MARKER_TYPE_HEATMAP"){I=this.dD[I];e=a=u=v=q=M=void 0;if(I&& I.markers){w=(u=(e=I.markersMetadata)==null?void 0:(a=e.heatmapMetadata)==null?void 0:a.minHeightDp)!=null?u:0;u=(M=(v=I.markersMetadata)==null?void 0:(q=v.heatmapMetadata)==null?void 0:q.maxHeightDp)!=null?M:60;M=this.C.length;q=null;for(v=0;v=e&&y<=K&&a.push(m)}u>0&&(this.eE.style.height= u+"px");e=this.Z[v];K=a;m=w;var f=u,d=v===0;d=d===void 0?!1:d;aNa(e,f);p=K;y=e.U;d=d===void 0?!1:d;var G=1E3/p.length,P=[];P.push({x:0,y:100});for(var r=0;r0&&(q=a[a.length-1])}g.nn(this)}u=void 0;w=[];if(I=(u=I.markersDecoration)==null?void 0:u.timedMarkerDecorations)for(I=g.N(I),u=I.next();!u.done;u=I.next())u=u.value,v=q=M=void 0,w.push({visibleTimeRangeStartMillis:(M=u.visibleTimeRangeStartMillis)!=null?M:-1,visibleTimeRangeEndMillis:(q=u.visibleTimeRangeEndMillis)!=null?q:-1,decorationTimeMillis:(v=u.decorationTimeMillis)!= null?v:NaN,label:u.label?g.Kr(u.label):""});I=w;this.heatMarkersDecorations=I}}J.Yw=this.V;g.qr(this.element,"ytp-timed-markers-enabled",F);return F}; g.A.mO=function(){g.nn(this);Hm(this);dm7(this,this.V);if(this.U){var F=g.zv(this.element).x||0;this.U.mO(F,this.W)}}; g.A.onClickCommand=function(F){if(F=g.O(F,ti)){var J=F.key;F.isVisible&&J&&Vb7(this,J)}}; g.A.T0E=function(F){this.api.jE("innertubeCommand",this.zU[F.id])}; g.A.Q6=function(){Hm(this);var F=this.api.getCurrentTime();(Fthis.clipEnd)&&this.nZ()}; g.A.dF=function(F){if(!F.defaultPrevented){var J=!1;switch(F.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);J=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);J=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);J=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);J=!0;break;case 38:this.api.S("enable_key_press_seek_logging")&&u7(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);J=!0;break;case 40:this.api.S("enable_key_press_seek_logging")&&u7(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),J=!0}J&&F.preventDefault()}}; g.A.xR=function(F,J){this.updateVideoData(J,F==="newdata")}; g.A.e_Q=function(){this.xR("newdata",this.api.getVideoData())}; g.A.updateVideoData=function(F,J){J=J===void 0?!1:J;var b=!!F&&F.o8();if(b&&(nY(F)||Suk(this)?this.K7=!1:this.K7=F.allowLiveDvr,g.qr(this.api.getRootNode(),"ytp-enable-live-buffer",!(F==null||!nY(F))),this.api.S("enable_custom_playhead_parsing"))){var I,u,w,M=g.O((I=F.getWatchNextResponse())==null?void 0:(u=I.playerOverlays)==null?void 0:(w=u.playerOverlayRenderer)==null?void 0:w.decoratedPlayerBarRenderer,lr);if(M==null?0:M.progressColor)for(I=0;I0;)this.Z.pop().dispose();this.heatMarkersDecorations=[];this.cN={};var K;(K=this.U)==null||K.reset();aQ(this);g.qr(this.api.getRootNode(),"ytp-fine-scrubbing-exp",Ub(this))}else this.nZ();this.QN()}if(F){var p;K=((p=this.AJ)==null?void 0:p.type)==="clips";if(p=!F.isLivePlayback){p=this.api.getVideoData();J=g.fC(p);b=zn3(p);var m;p=J!=null||b!=null&&b.length>0||((m=p.JY)== null?void 0:m.length)>0}if(p&&!K){m=this.api.getVideoData();K=g.fC(m);p=!1;if(K==null?0:K.markersMap){p=this.api.getVideoData();var y;p.eN=((y=K.visibleOnLoad)==null?void 0:y.key)||p.eN;y=g.N(K.markersMap);for(K=y.next();!K.done;K=y.next())K=K.value,K.key&&K.value&&(this.cN[K.key]=K.value,K.value.onChapterRepeat&&(p.OD=K.value.onChapterRepeat));p.eN!=null&&Vb7(this,p.eN);p=!0}var f;if(((f=m.JY)==null?void 0:f.length)>0){f=g.ZR.getState().entities;y=g.N(m.JY);for(K=y.next();!K.done;K=y.next())if(K= K.value,b=void 0,J=(b=qs(f,"macroMarkersListEntity",K))==null?void 0:b.markersList,q=b=void 0,((b=J)==null?void 0:b.markerType)==="MARKER_TYPE_TIMESTAMPS"||((q=J)==null?void 0:q.markerType)==="MARKER_TYPE_HEATMAP")this.dD[K]=J;p=this.Wi()||p}!p&&(f=zn3(m))&&(lNk(this,f),m.wX=this.C,Ntv(this));sBk(this,null);F.qH&&this.Z.length===0&&(F=F.qH,f=F.key,F.isVisible&&f&&Vb7(this,f))}else gEm(this),yFa(this)}Hm(this)}; g.A.ZWG=function(F){this.Y&&!g.x(F.state,32)&&this.api.getPresentingPlayerType()!==3&&this.Y.cancel();var J;((J=this.U)==null?0:J.isEnabled)&&g.x(F.state,8)&&this.api.pauseVideo();F=this.api.getPresentingPlayerType()===2||!this.api.hX()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.qr(this.GU,"ytp-hide-scrubber-button",F)}; g.A.Lg=function(F){var J=!!this.AJ!==!!F,b=this.AJ;this.AJ=F;sBk(this,b);(F==null?void 0:F.type)!=="clips"&&F||(F?(this.updateValue("clipstarticon",jek()),this.updateValue("clipendicon",jek()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",iDo()),this.updateValue("clipendicon",yYa()),this.updateValue("clipstarttitle","Assista o v\u00eddeo completo"),this.updateValue("clipendtitle","Assista o v\u00eddeo completo")),J&&(this.updateVideoData(this.api.getVideoData(), !0),g.nn(this)),w1(this));Jd(this,this.N,this.nW)}; g.A.eSG=function(F,J,b){var I=g.zv(this.element),u=Zb(this).C,w=b?b.getAttribute("data-tooltip"):void 0,M=b?b.getAttribute("data-position"):void 0,q=b?b.getAttribute("data-offset-y"):void 0;q=q?Number(q):0;M&&(F=Tg(this.T,Number(b.getAttribute("data-position")),0)*u+g.zv(this.progressBar).x);this.oI.x=F-I.x;this.oI.y=J-I.y;F=Zb(this);b=IQ(this,F);J=0;var v;if((v=this.api.getVideoData())==null?0:nY(v))(v=this.api.getProgressState().seekableEnd)&&b>v&&(b=v,F.position=Tg(this.T,v)*Zb(this).C),J=this.T.U; Suk(this)&&(J=this.T.U);v=w||g.lD(this.K7?b-this.T.C:b-J);J=F.position+this.ir;b-=this.api.Xq();var a;if((a=this.U)==null||!a.isEnabled)if(this.api.Si()){if(this.C.length>1){a=b7(this,this.oI.x,!0);if(!this.AJ)for(I=0;I1)for(I=0;I0)for(a=this.oI.x,I=g.N(this.V),u=I.next();!u.done;u=I.next())u=u.value,M=tq(this,u.timeRangeStartMillis/ (this.T.C*1E3),Zb(this)),g.qr(u.element,"ytp-timed-marker-hover",M<=a&&M+6>=a);I=this.tooltip.scale;q=(isNaN(q)?0:q)-45*I;this.api.S("web_key_moments_markers")?this.jZ?(a=J74(this.V,b*1E3),a=a!=null?this.V[a].title:""):(a=z4(this.C,b*1E3),a=this.C[a].title):(a=z4(this.C,b*1E3),a=this.C[a].title);a||(q+=16*I);this.tooltip.scale===.6&&(g.hP(this.api.J())?(q=this.api.mG().getPlayerSize().height-225,q=a?q+110:q+110+16):q=a?110:126);I=z4(this.C,b*1E3);this.Gj=Yu7(this,b,I)?I:Yu7(this,b,I+1)?I+1:-1;g.qr(this.api.getRootNode(), "ytp-progress-bar-snap",this.Gj!==-1&&this.C.length>1);I=!1;u=g.N(this.heatMarkersDecorations);for(M=u.next();!M.done;M=u.next()){M=M.value;var e=b*1E3;e>=M.visibleTimeRangeStartMillis&&e<=M.visibleTimeRangeEndMillis&&(a=M.label,v=g.lD(M.decorationTimeMillis/1E3),I=!0)}this.g9!==I&&(this.g9=I,this.api.logVisibility(this.M0,this.g9));g.qr(this.api.getRootNode(),"ytp-progress-bar-decoration",I);I=160*this.tooltip.scale*2;u=a.length*(this.Tj?8.55:5.7);u=u<=I?u:I;M=u<160*this.tooltip.scale;I=3;!M&&u/ 2>F.position&&(I=1);!M&&u/2>this.W-F.position&&(I=2);this.api.J().Y&&(q-=10);this.Z.length&&this.Z[0].o8&&(q-=14*(this.Tj?2:1),this.fW||(this.fW=!0,this.api.logVisibility(this.eE,this.fW)));var K;if(Ub(this)&&(((K=this.U)==null?0:K.isEnabled)||this.KW>0)){var p;q-=((p=this.U)==null?0:p.isEnabled)?Ad(this):this.KW}K=void 0;Ub(this)&&!this.api.S("web_player_hide_fine_scrubbing_edu")&&(K="Puxe para cima para uma busca precisa",this.WN||(this.WN=!0,this.api.logVisibility(this.y6,this.WN)));this.tooltip.EO(J, b,v,!!w,q,a,I,K)}else this.tooltip.EO(J,b,v,!!w,q);g.uG(this.api.getRootNode(),"ytp-progress-bar-hover");rF3(this)}; g.A.T9Q=function(){this.QN();g.Mr(this.api.getRootNode(),"ytp-progress-bar-hover");this.fW&&(this.fW=!1,this.api.logVisibility(this.eE,this.fW));this.WN&&(this.WN=!1,this.api.logVisibility(this.y6,this.WN))}; g.A.U0N=function(F,J){Ub(this)&&this.U&&(this.U.WN?o9(this.U,this.api.getCurrentTime()):Mbz(this.U),this.U.show(),g.qr(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.U.isEnabled));this.Uz&&(this.Uz.dispose(),this.Uz=null);this.Lv=J;this.YH=this.api.getCurrentTime();this.C.length>1&&this.Gj!==-1?this.api.seekTo(this.C[this.Gj].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(IQ(this,Zb(this)),!1,void 0,void 0,7);g.uG(this.element,"ytp-drag");(this.xH=this.api.getPlayerStateObject().isOrWillBePlaying())&& this.api.pauseVideo()}; g.A.ZeQ=function(){if(Ub(this)&&this.U){var F=Ad(this);this.KW>=F*.5?(this.U.enable(),o9(this.U,this.api.getCurrentTime()),oEJ(this,F)):aQ(this)}if(g.x(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var J;if((J=this.U)==null?0:J.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.C.length>1&&this.Gj!==-1)this.api.S("html5_enable_progress_bar_slide_seek_logging")&&u7(this,this.YH,this.C[this.Gj].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.C[this.Gj].startTime/1E3,void 0,void 0,void 0,7);else{F=IQ(this,Zb(this));this.api.S("html5_enable_progress_bar_slide_seek_logging")&&u7(this,this.YH,F,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(F,void 0,void 0,void 0,7);J=g.N(this.heatMarkersDecorations);for(var b=J.next();!b.done;b=J.next())b=b.value,F*1E3>=b.visibleTimeRangeStartMillis&&F*1E3<=b.visibleTimeRangeEndMillis&& this.api.logClick(this.M0)}g.Mr(this.element,"ytp-drag");this.xH&&!g.x(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.A.XVv=function(F,J){F=Zb(this);F=IQ(this,F);this.api.seekTo(F,!1,void 0,void 0,7);var b;Ub(this)&&((b=this.U)==null?0:b.WN)&&(o9(this.U,F),this.U.isEnabled||(b=Ad(this),this.KW=g.AD(this.Lv-J-10,0,b),oEJ(this,this.KW)))}; g.A.QN=function(){this.tooltip.BZ()}; g.A.R2=function(){this.AJ||(this.updateValue("clipstarticon",mPC()),this.updateValue("clipendicon",mPC()),g.uG(this.element,"ytp-clip-hover"))}; g.A.PB=function(){this.AJ||(this.updateValue("clipstarticon",iDo()),this.updateValue("clipendicon",yYa()),g.Mr(this.element,"ytp-clip-hover"))}; g.A.nZ=function(){this.clipStart=0;this.clipEnd=Infinity;w1(this);Jd(this,this.N,this.nW)}; g.A.njv=function(F){F=g.N(F);for(var J=F.next();!J.done;J=F.next())if(J=J.value,J.visible){var b=J.getId();if(!this.qf[b]){var I=g.H1("DIV");J.tooltip&&I.setAttribute("data-tooltip",J.tooltip);this.qf[b]=J;this.Kk[b]=I;g.bG(I,J.style);$ma(this,b);this.api.J().S("disable_ad_markers_on_content_progress_bar")||this.C[0].Z.appendChild(I)}}else O4G(this,J)}; g.A.sPQ=function(F){F=g.N(F);for(var J=F.next();!J.done;J=F.next())O4G(this,J.value)}; g.A.FZ=function(F){this.U&&(this.U.onExit(F!=null),aQ(this))}; g.A.MD=function(F){this.U&&(this.U.play(F!=null),aQ(this))}; g.A.a4G=function(){hnz(this,this.api.hX())}; g.A.X_=function(){hnz(this,!1);g.vi.prototype.X_.call(this)};g.z(eO,g.U);eO.prototype.isActive=function(){return!!this.G.getOption("remote","casting")}; eO.prototype.VG=function(){var F=!1;this.G.getOptions().includes("remote")&&(F=this.G.getOption("remote","receivers").length>1);this.wY(F&&this.G.mG().getPlayerSize().width>=400);this.G.logVisibility(this.element,this.uT);var J=1;F&&this.isActive()&&(J=2);if(this.C!==J){this.C=J;switch(J){case 1:this.updateValue("icon",{X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},j:[{X:"path",G1:!0,L:{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.guG())}g.qr(this.element,"ytp-remote-button-active",this.isActive())}}; eO.prototype.U=function(){if(this.G.getOption("remote","quickCast"))this.G.setOption("remote","quickCast",!0);else{var F=this.Rf,J=this.element;if(F.K4())F.fk();else{F.initialize();a:{var b=g.N(F.RH.items);for(var I=b.next();!I.done;I=b.next())if(I=I.value,I.priority===1){b=I;break a}b=null}b&&(b.open(),F.Bo(J));F.Bo(J)}}this.G.logClick(this.element)};g.z(K9,g.U);K9.prototype.C=function(F){var J=this.G.J(),b=400;this.G.S("web_player_small_hbp_settings_menu")&&J.W?b=300:J.Y&&(b=200);F=this.U&&F.width>=b;this.wY(F);this.G.S("embeds_use_parent_visibility_in_ve_logging")?this.G.logVisibility(this.element,F&&this.D):this.G.logVisibility(this.element,F)}; K9.prototype.T=function(){if(this.Rf.uT)this.Rf.fk();else{var F=g.Y0(this.G.TF());F&&!F.loaded&&(F.qJ("tracklist",{includeAsr:!0}).length||F.load());this.G.logClick(this.element);this.Rf.Bo(this.element)}}; K9.prototype.updateBadge=function(){var F=this.G.isHdr(),J=this.G.getPresentingPlayerType(),b=J!==2&&J!==3,I=g.V_(this.G),u=b&&!!g.GP(this.G.TF());J=u&&I.displayMode===1;I=u&&I.displayMode===2;b=(u=J||I)||!b?null:this.G.getPlaybackQuality();g.qr(this.element,"ytp-hdr-quality-badge",F);g.qr(this.element,"ytp-hd-quality-badge",!F&&(b==="hd1080"||b==="hd1440"));g.qr(this.element,"ytp-4k-quality-badge",!F&&b==="hd2160");g.qr(this.element,"ytp-5k-quality-badge",!F&&b==="hd2880");g.qr(this.element,"ytp-8k-quality-badge", !F&&b==="highres");g.qr(this.element,"ytp-3d-badge-grey",!F&&u&&J);g.qr(this.element,"ytp-3d-badge",!F&&u&&I)};g.z(p9,Zd);p9.prototype.isLoaded=function(){var F=g.Dg(this.G.TF());return F!==void 0&&F.loaded}; p9.prototype.VG=function(){g.Dg(this.G.TF())!==void 0&&this.G.getPresentingPlayerType()!==3?this.C||(this.Rf.V6(this),this.C=!0):this.C&&(this.Rf.Yj(this),this.C=!1);Hp(this,this.isLoaded())}; p9.prototype.onSelect=function(F){this.isLoaded();F?this.G.loadModule("annotations_module"):this.G.unloadModule("annotations_module");this.G.publish("annotationvisibility",F)}; p9.prototype.X_=function(){this.C&&this.Rf.Yj(this);Zd.prototype.X_.call(this)};g.z(g1,g.tZ);g1.prototype.VG=function(){var F=this.G.getAvailableAudioTracks();F.length>1?(this.Wx(g.EG(F,this.C)),this.tracks=g.mF(F,this.C,this),this.countLabel.Ce(F.length?" ("+F.length+")":""),this.publish("size-change"),this.oQ(this.C(this.G.getAudioTrack())),this.enable(!0)):this.enable(!1)}; g1.prototype.qE=function(F){g.tZ.prototype.qE.call(this,F);this.G.setAudioTrack(this.tracks[F]);this.Rf.qL()}; g1.prototype.C=function(F){return F.toString()};g.z(m9,Zd); m9.prototype.U=function(){var F=this.G.getPresentingPlayerType();if(F!==2&&F!==3&&g.Bp(this.G))this.C||(this.Rf.V6(this),this.C=!0,this.T.push(this.B(this.G,"videodatachange",this.U)),this.T.push(this.B(this.G,"videoplayerreset",this.U)),this.T.push(this.B(this.G,"onPlaylistUpdate",this.U)),this.T.push(this.B(this.G,"autonavchange",this.Z)),F=this.G.getVideoData(),this.Z(F.autonavState),this.G.logVisibility(this.element,this.C));else if(this.C){this.Rf.Yj(this);this.C=!1;F=g.N(this.T);for(var J=F.next();!J.done;J= F.next())this.iX(J.value)}}; m9.prototype.Z=function(F){Hp(this,F!==1)}; m9.prototype.onSelect=function(F){this.G.LZ(F?2:1);this.C&&(this.G.logVisibility(this.element,this.C),this.G.logClick(this.element))}; m9.prototype.X_=function(){this.C&&this.Rf.Yj(this);Zd.prototype.X_.call(this)};g.z(Umk,g.Rj);Umk.prototype.onClick=function(F){F.preventDefault();var J,b;(J=g.aj(this.G))==null||(b=J.z6())==null||b.fk();var I,u;(I=g.aj(this.G))==null||(u=I.MZ())==null||u.Bo(F.target)};g.z(xmC,g.tZ);g.A=xmC.prototype; g.A.Mc=function(){var F=this.G.getPresentingPlayerType();if(F!==2&&F!==3){this.Gj=this.G.W0();F=this.G.getAvailableQualityLevels();if(this.C){this.Z={};var J=g.wO(this.G,"getAvailableQualityData",[]);J=g.N(J);for(var b=J.next();!b.done;b=J.next())b=b.value,this.Z[b.qualityLabel]=b;J=Object.keys(this.Z);F[F.length-1]==="auto"&&J.push("auto");this.kQ=new Set(F)}else if(this.W){b=g.wO(this.G,"getAvailableQualityData",[]);J=[];b=g.N(b);for(var I=b.next();!I.done;I=b.next())I=I.value,this.N[I.quality]= I,I.quality&&J.push(I.quality);F[F.length-1]==="auto"&&J.push("auto")}else J=F;g.XNJ(this.G)&&this.G.wk()&&J.unshift("missing-qualities");Qn7(this.G)&&J.unshift("inline-survey");this.Wx(J);F=this.G.getVideoData().cotn?!0:!1;b=this.eE.Vi();b=!g.hP(this.G.J())||!(F===void 0?0:F)||!(b===void 0||b);F=this.U;b=b===void 0?!1:b;F.O6&&g.qr(F.RI("ytp-panel-footer"),"ytp-panel-hide-footer",b===void 0?!1:b);if(J.length){this.NC();this.enable(!0);return}}this.enable(!1)}; g.A.NC=function(){if(this.C){var F=this.G.getPreferredQuality();this.kQ.has(F)&&(this.V=this.G.getPlaybackQuality(),this.Tj=this.G.getPlaybackQualityLabel(),F==="auto"?(this.oQ(F),this.Ce(this.gX(F))):this.oQ(this.Tj))}else F=this.G.getPreferredQuality(),this.options[F]&&(this.V=this.G.getPlaybackQuality(),this.oQ(F),F==="auto"&&this.Ce(this.gX(F)))}; g.A.qE=function(F){if(F!=="missing-qualities"){g.tZ.prototype.qE.call(this,F);var J=this.C?this.Z[F]:this.N[F];var b=J==null?void 0:J.quality,I=J==null?void 0:J.formatId,u=J==null?void 0:J.paygatedQualityDetails;J=u==null?void 0:u.endpoint;if(u){var w;u=(w=this.options[F])==null?void 0:w.element;this.G.logClick(u)}if(this.C){var M,q;if((M=g.O(J,g.XkV))==null?0:(q=M.popup)==null?0:q.notificationActionRenderer)this.G.jE("innertubeCommand",J);else if(J){this.G.jE("innertubeCommand",J);return}I?this.G.setPlaybackQuality(b, I):this.G.setPlaybackQuality(b)}else{if(this.W){var v,a;if((v=g.O(J,g.XkV))==null?0:(a=v.popup)==null?0:a.notificationActionRenderer)this.G.jE("innertubeCommand",J);else if(J){this.G.jE("innertubeCommand",J);return}}this.G.setPlaybackQuality(F)}this.Rf.fk();this.Mc()}}; g.A.open=function(){for(var F=g.N(Object.values(this.options)),J=F.next();!J.done;J=F.next()){J=J.value;var b=void 0;this.G.hasVe((b=J)==null?void 0:b.element)&&(b=void 0,this.G.logVisibility((b=J)==null?void 0:b.element,!0))}g.tZ.prototype.open.call(this);this.G.logClick(this.element)}; g.A.vC=function(F,J,b){var I=this;if(F==="missing-qualities")return new g.Rj({X:"a",Dv:["ytp-menuitem"],L:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.G.J().N,tabindex:"0",role:"menuitemradio"},j:[{X:"div",Dv:["ytp-menuitem-label"],sQ:"{{label}}"}]},J,this.gX(F));if(F!=="inline-survey"){var u,w=(u=this.C?this.Z[F]:this.N[F])==null?void 0:u.paygatedQualityDetails;u=w==null?void 0:w.veType;w=w==null?void 0:w.trackingParams;J=g.tZ.prototype.vC.call(this,F,J,b);w?(this.G.createServerVe(J.element, this,!0),this.G.setTrackingParams(J.element,w)):u&&this.G.createClientVe(J.element,this,u,!0);return J}F=[{X:"span",sQ:"Que tal?"}];b=g.N([!0,!1]);w=b.next();for(u={};!w.done;u={oN:void 0},w=b.next())u.oN=w.value,w=new g.U({X:"span",K:"ytp-menuitem-inline-survey-response",j:[u.oN?Eu3():NZJ()],L:{tabindex:"0",role:"button"}}),w.listen("click",function(M){return function(){var q=I.G.app.F_();q&&(q.UQ("iqsr",{tu:M.oN}),q.getVideoData().oR=!0);I.Rf.fk();I.Mc()}}(u)),F.push(w); return new g.Rj({X:"div",K:"ytp-menuitem",L:{"aria-disabled":"true"},j:[{X:"div",Dv:["ytp-menuitem-label"],j:F}]},J)}; g.A.gX=function(F,J){J=J===void 0?!1:J;if(F==="missing-qualities")return{X:"div",sQ:"Faltam op\u00e7\u00f5es?"};if(F==="inline-survey")return"";var b=this.W||this.C?[Z4k(this,F,J,!1)]:[tba(this,F)];var I=this.G.getPreferredQuality();J||I!=="auto"||F!=="auto"||(b.push(" "),this.C?b.push(Z4k(this,this.Tj,J,!0,["ytp-menu-label-secondary"])):this.W?b.push(Z4k(this,this.V,J,!0,["ytp-menu-label-secondary"])):b.push(tba(this,this.V,["ytp-menu-label-secondary"])));return{X:"div",j:b}};g.z(yw,g.U);yw.prototype.init=function(){this.updateValue("minvalue",this.T);this.updateValue("maxvalue",this.Z);this.updateValue("stepvalue",this.W);this.updateValue("slidervalue",this.U);H43(this,this.U)}; yw.prototype.V=function(){L0J(this,Number(this.C.value));this.C.focus()};g.z(i7,yw);i7.prototype.V=function(){yw.prototype.V.call(this);this.Y&&FfG(this)}; i7.prototype.Gj=function(){this.N()}; i7.prototype.eE=function(){this.G.setPlaybackRate(this.U,!0)}; i7.prototype.Tj=function(F){if(!F.defaultPrevented){switch(F.code){case "ArrowDown":var J=-this.W;break;case "ArrowUp":J=this.W;break;default:return}L0J(this,Math.min(this.Z,Math.max(Number((this.U+J).toFixed(2)),this.T)));this.N();FfG(this);F.preventDefault()}};g.z(zU,g.U);g.A=zU.prototype;g.A.init=function(){this.yE(this.C);this.updateValue("minvalue",this.U);this.updateValue("maxvalue",this.T)}; g.A.Sv=function(F){if(!F.defaultPrevented){switch(F.keyCode){case 37:case 40:var J=-this.Y;break;case 39:case 38:J=this.Y;break;default:return}this.yE(this.C+J);F.preventDefault()}}; g.A.l8=function(F){var J=this.C;J+=(F.deltaX||-F.deltaY)<0?-this.N:this.N;this.yE(J);F.preventDefault()}; g.A.Qu=function(F){F=(F-g.zv(this.Z).x)/this.Tj*this.range+this.U;this.yE(F)}; g.A.yE=function(F,J){J=J===void 0?"":J;F=g.AD(F,this.U,this.T);J===""&&(J=F.toString());this.updateValue("valuenow",F);this.updateValue("valuetext",J);this.eE.style.left=(F-this.U)/this.range*(this.Tj-this.WN)+"px";this.C=F}; g.A.focus=function(){this.fW.focus()};g.z(N2,zU);N2.prototype.Gj=function(){this.G.setPlaybackRate(this.C,!0)}; N2.prototype.yE=function(F){zU.prototype.yE.call(this,F,bto(this,F).toString());this.W&&(J0G(this),this.kQ())}; N2.prototype.updateValues=function(){var F=this.G.getPlaybackRate();bto(this,this.C)!==F&&(this.yE(F),J0G(this))};g.z(IsY,g.vi);IsY.prototype.focus=function(){this.C.focus()};g.z(u2a,QM);g.z(w_v,g.tZ);g.A=w_v.prototype;g.A.gX=function(F){return F==="1"?"Normal":F.toLocaleString()}; g.A.VG=function(){var F,J=(F=this.G.getVideoData())==null?void 0:F.vV();F=this.G.getPresentingPlayerType(J);this.enable(F!==2&&F!==3);vlY(this)}; g.A.Wx=function(F){g.tZ.prototype.Wx.call(this,F);this.V&&this.V.C.focus()}; g.A.QW=function(F){g.tZ.prototype.QW.call(this,F);F?(this.Tj=this.B(this.G,"onPlaybackRateChange",this.onPlaybackRateChange),vlY(this),A0z(this,this.G.getPlaybackRate())):(this.iX(this.Tj),this.Tj=null)}; g.A.onPlaybackRateChange=function(F){var J=this.G.getPlaybackRate();!this.W&&this.N.includes(J)||qcz(this,J);A0z(this,F)}; g.A.vC=function(F,J,b){return F===this.C&&asa(this.G)?g.tZ.prototype.vC.call(this,F,J,b,{X:"div",K:"ytp-speed-slider-menu-footer",j:[this.V]}):g.tZ.prototype.vC.call(this,F,J,b)}; g.A.qE=function(F){g.tZ.prototype.qE.call(this,F);F===this.C?this.G.setPlaybackRate(this.Z,!0):this.G.setPlaybackRate(Number(F),!0);asa(this.G)&&F===this.C||this.Rf.qL()}; g.A.zv=function(F){var J=F===this.C;this.W=!1;J&&l7(this.G)&&!asa(this.G)?(F=new u2a(this.G),g.O$(this.Rf,F)):g.tZ.prototype.zv.call(this,F)};g.z(Kfv,g.tZ);g.A=Kfv.prototype;g.A.oQ=function(F){g.tZ.prototype.oQ.call(this,F)}; g.A.IW=function(F){return F.option.toString()}; g.A.getOption=function(F){return this.settings[F]}; g.A.gX=function(F){return this.getOption(F).text||""}; g.A.qE=function(F){g.tZ.prototype.qE.call(this,F);this.publish("settingChange",this.setting,this.settings[F].option)};g.z(f9,g.RX);f9.prototype.FF=function(F){for(var J=g.N(Object.keys(F)),b=J.next();!b.done;b=J.next()){var I=b.value;if(b=this.Hc[I]){var u=F[I].toString();I=!!F[I+"Override"];b.options[u]&&(b.oQ(u),b.Z.element.setAttribute("aria-checked",String(!I)),b.C.element.setAttribute("aria-checked",String(I)))}}}; f9.prototype.p4=function(F,J){this.publish("settingChange",F,J)};g.z(Wy,g.tZ);Wy.prototype.C=function(F){return F.languageCode}; Wy.prototype.gX=function(F){return this.languages[F].languageName||""}; Wy.prototype.qE=function(F){this.publish("select",F);this.G.logClick(this.element);g.oX(this.Rf)};g.z(myv,g.tZ);g.A=myv.prototype;g.A.Ed=function(F){return g.Vj(F)?"__off__":F.displayName}; g.A.gX=function(F){return F==="__off__"?"Desativado":F==="__translate__"?"Traduzir automaticamente":F==="__contribute__"?"Adicionar legendas/CC":F==="__correction__"?"Sugerir corre\u00e7\u00f5es na legenda":(F==="__off__"?{}:this.tracks[F]).displayName}; g.A.qE=function(F){if(F==="__translate__")this.C.open();else if(F==="__contribute__"){this.G.pauseVideo();this.G.isFullscreen()&&this.G.toggleFullscreen();var J=g.BX(this.G.J(),this.G.getVideoData());g.RJ(J)}else if(F==="__correction__"){this.G.pauseVideo();this.G.isFullscreen()&&this.G.toggleFullscreen();var b=y07(this);d1(this,b);g.tZ.prototype.qE.call(this,this.Ed(b));var I,u;b=(J=this.G.getVideoData().getPlayerResponse())==null?void 0:(I=J.captions)==null?void 0:(u=I.playerCaptionsTracklistRenderer)== null?void 0:u.openTranscriptCommand;this.G.jE("innertubeCommand",b);this.Rf.qL();this.Z&&this.G.logClick(this.Z)}else{if(F==="__correction__"){this.G.pauseVideo();this.G.isFullscreen()&&this.G.toggleFullscreen();J=y07(this);d1(this,J);g.tZ.prototype.qE.call(this,this.Ed(J));var w,M;J=(b=this.G.getVideoData().getPlayerResponse())==null?void 0:(w=b.captions)==null?void 0:(M=w.playerCaptionsTracklistRenderer)==null?void 0:M.openTranscriptCommand;this.G.jE("innertubeCommand",J)}else this.G.logClick(this.element), d1(this,F==="__off__"?{}:this.tracks[F]),g.tZ.prototype.qE.call(this,F);this.Rf.qL()}}; g.A.VG=function(){var F=this.G.getOptions();F=F&&F.indexOf("captions")!==-1;var J=this.G.getVideoData(),b=J&&J.ra,I,u=!((I=this.G.getVideoData())==null||!g.UW(I));I={};if(F||b){var w;if(F){var M=this.G.getOption("captions","track");I=this.G.getOption("captions","tracklist",{includeAsr:!0});var q=u?[]:this.G.getOption("captions","translationLanguages");this.tracks=g.mF(I,this.Ed,this);u=g.EG(I,this.Ed);var v,a;y07(this)&&((w=J.getPlayerResponse())==null?0:(v=w.captions)==null?0:(a=v.playerCaptionsTracklistRenderer)== null?0:a.openTranscriptCommand)&&u.push("__correction__");if(q.length&&!g.Vj(M)){if((w=M.translationLanguage)&&w.languageName){var e=w.languageName;w=q.findIndex(function(K){return K.languageName===e}); wk3(q,w)}p_Y(this.C,q);u.push("__translate__")}w=this.Ed(M)}else this.tracks={},u=[],w="__off__";u.unshift("__off__");this.tracks.__off__={};b&&u.unshift("__contribute__");this.tracks[w]||(this.tracks[w]=M,u.push(w));this.Wx(u);this.oQ(w);M&&M.translationLanguage?this.C.oQ(this.C.C(M.translationLanguage)):ZVJ(this.C);F&&this.W.FF(this.G.getSubtitlesUserSettings());this.countLabel.Ce(I&&I.length?" ("+I.length+")":"");this.publish("size-change");this.G.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.A.Ht=function(F){var J=this.G.getOption("captions","track");J=g.To(J);J.translationLanguage=this.C.languages[F];d1(this,J)}; g.A.p4=function(F,J){if(F==="reset")this.G.resetSubtitlesUserSettings();else{var b={};b[F]=J;this.G.updateSubtitlesUserSettings(b)}gl7(this,!0);this.V.start();this.W.FF(this.G.getSubtitlesUserSettings())}; g.A.pV_=function(F){F||g.L8(this.V)}; g.A.X_=function(){g.L8(this.V);g.tZ.prototype.X_.call(this)}; g.A.open=function(){g.tZ.prototype.open.call(this);this.options.__correction__&&!this.Z&&(this.Z=this.options.__correction__.element,this.G.createClientVe(this.Z,this,167341),this.G.logVisibility(this.Z,!0))};g.z(itk,g.kc);g.A=itk.prototype; g.A.initialize=function(){if(!this.isInitialized){var F=this.G.J();this.isInitialized=!0;try{this.dn=new xmC(this.G,this)}catch(b){g.rQ(Error("QualityMenuItem creation failed"))}g.k(this,this.dn);var J=new myv(this.G,this);g.k(this,J);F.T||(J=new p9(this.G,this),g.k(this,J));F.enableSpeedOptions&&(J=new w_v(this.G,this),g.k(this,J));(g.dN(F)||F.W)&&(F.U||F.zj)&&(J=new Umk(this.G,this),g.k(this,J));F.g9&&!F.S("web_player_move_autonav_toggle")&&(F=new m9(this.G,this),g.k(this,F));F=new g1(this.G,this); g.k(this,F);this.G.publish("settingsMenuInitialized");cFa(this.settingsButton,this.RH.DQ())}}; g.A.V6=function(F){this.initialize();this.RH.V6(F);cFa(this.settingsButton,this.RH.DQ())}; g.A.Yj=function(F){this.uT&&this.RH.DQ()<=1&&this.hide();this.RH.Yj(F);cFa(this.settingsButton,this.RH.DQ())}; g.A.Bo=function(F){this.initialize();this.RH.DQ()>0&&g.kc.prototype.Bo.call(this,F)}; g.A.fk=function(){this.AB?this.AB=!1:g.kc.prototype.fk.call(this)}; g.A.show=function(){g.kc.prototype.show.call(this);g.uG(this.G.getRootNode(),"ytp-settings-shown")}; g.A.hide=function(){g.kc.prototype.hide.call(this);g.Mr(this.G.getRootNode(),"ytp-settings-shown")}; g.A.G0=function(F){this.G.logVisibility(this.element,F);this.G.publish("settingsMenuVisibilityChanged",F)};g.z(NHG,g.U);g.A=NHG.prototype;g.A.onClick=function(){if(ls3(this)&&(this.G.toggleSubtitles(),this.G.logClick(this.element),!this.isEnabled())){var F=!1,J=g.Rg(g.Qe(),65);g.hP(this.G.J())&&J!=null&&(F=!J);F&&this.G.J().S("web_player_nitrate_promo_tooltip")&&this.G.publish("showpromotooltip",this.element)}}; g.A.Z7E=function(F){var J,b;(J=g.aj(this.G))==null||(b=J.z6())==null||b.Bo(F)}; g.A.isEnabled=function(){return!!this.G.getOption("captions","track").displayName}; g.A.VG=function(){var F=ls3(this),J=300;this.G.J().Y&&(J=480);if(this.G.J().W){this.updateValue("title",g.NZ(this.G,"Legendas/legendas ocultas","c"));this.update({"data-title-no-tooltip":"Legendas/legendas ocultas"});var b=F}else{if(F)(b=this.RI("ytp-subtitles-button-icon"))==null||b.setAttribute("fill-opacity","1"),this.updateValue("title",g.NZ(this.G,"Legendas/legendas ocultas","c")),this.update({"data-title-no-tooltip":"Legendas/legendas ocultas"});else{var I;(I=this.RI("ytp-subtitles-button-icon"))== null||I.setAttribute("fill-opacity","0.3");this.updateValue("title","N\u00e3o h\u00e1 legendas/closed captions dispon\u00edveis");this.update({"data-title-no-tooltip":"N\u00e3o h\u00e1 legendas/closed captions dispon\u00edveis"})}b=!0}this.tooltip.Dl();b=b&&this.G.mG().getPlayerSize().width>=J;this.wY(b);this.G.S("embeds_use_parent_visibility_in_ve_logging")?this.G.logVisibility(this.element,b&&this.D):this.G.logVisibility(this.element,b);F?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed", !1)}; g.A.tJ=function(F){g.U.prototype.tJ.call(this,F);this.G.J().S("embeds_use_parent_visibility_in_ve_logging")&&this.G.logVisibility(this.element,this.uT&&F)};g.z(g.E3,g.U);g.A=g.E3.prototype; g.A.Q6=function(){var F=this.api.mG().getPlayerSize().width,J=this.N;this.api.J().Y&&(J=400);J=F>=J&&(!jO(this)||!g.x(this.api.getPlayerStateObject(),64));this.wY(J);g.qr(this.element,"ytp-time-display-allow-autohide",J&&F<400);F=this.api.getProgressState();if(J){J=this.api.getPresentingPlayerType();var b=this.api.getCurrentTime(J,!1);this.U&&(b-=F.airingStart);GU(this)&&(b-=this.AJ.startTimeMs/1E3);GU(this)||jO(this)||!this.T||(b=this.api.getDuration(J,!1)-b);b=g.lD(b);this.Z!==b&&(this.updateValue("currenttime", b),this.Z=b);J=GU(this)?g.lD((this.AJ.endTimeMs-this.AJ.startTimeMs)/1E3):g.lD(this.api.getDuration(J,!1));this.W!==J&&(this.updateValue("duration",J),this.W=J)}fsm(this,F.isAtLiveHead);Wfo(this,this.api.getLoopRange())}; g.A.onLoopRangeChange=function(F){var J=this.AJ!==F;this.AJ=F;J&&(this.Q6(),dy4(this))}; g.A.gHW=function(){this.api.setLoopRange(null)}; g.A.sC_=function(){this.T=!this.T;this.Q6()}; g.A.onVideoDataChange=function(F,J,b){this.updateVideoData((this.api.J().S("enable_topsoil_wta_for_halftime")||this.api.J().S("enable_topsoil_wta_for_halftime_live_infra"))&&b===2?this.api.getVideoData(1):J);this.Q6();dy4(this)}; g.A.updateVideoData=function(F){this.uV=F.isLivePlayback&&!F.nW;this.U=nY(F);this.isPremiere=F.isPremiere;g.qr(this.element,"ytp-live",jO(this))}; g.A.onClick=function(F){F.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.A.X_=function(){this.C&&this.C();g.U.prototype.X_.call(this)};g.z(jqa,g.U);g.A=jqa.prototype;g.A.Up=function(){var F=this.api.Ua();this.T!==F&&(this.T=F,ElJ(this,this.api.getVolume(),this.api.isMuted()))}; g.A.rj=function(F){this.wY(F.width>=350)}; g.A.zb=function(F){if(!F.defaultPrevented){var J=F.keyCode,b=null;J===37?b=this.volume-5:J===39?b=this.volume+5:J===36?b=0:J===35&&(b=100);b!==null&&(b=g.AD(b,0,100),b===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(b)),F.preventDefault())}}; g.A.Vu=function(F){var J=F.deltaX||-F.deltaY;F.deltaMode?this.api.setVolume(this.volume+(J<0?-10:10)):this.api.setVolume(this.volume+g.AD(J/10,-10,10));F.preventDefault()}; g.A.m0_=function(){Vw(this,this.C,!0,this.U,this.api.YK());this.N=this.volume;this.api.isMuted()&&this.api.unMute()}; g.A.h0=function(F){var J=this.T?78:52,b=this.T?18:12;F-=g.zv(this.Y).x;this.api.setVolume(g.AD((F-b/2)/(J-b),0,1)*100)}; g.A.beD=function(){Vw(this,this.C,!1,this.U,this.api.YK());this.volume===0&&(this.api.mute(),this.api.setVolume(this.N))}; g.A.onVolumeChange=function(F){ElJ(this,F.volume,F.muted)}; g.A.E$=function(){Vw(this,this.C,this.isDragging,this.U,this.api.YK())}; g.A.X_=function(){g.U.prototype.X_.call(this);g.Mr(this.V,"ytp-volume-slider-active")};g.z(Py,g.U); Py.prototype.onVideoDataChange=function(){var F=this.api.J();this.mO();this.visible=!!this.api.getVideoData().videoId&&!g.tw(this.api.getVideoData(1));this.wY(this.visible);this.api.logVisibility(this.element,this.visible&&this.D);if(this.visible){var J=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",J)}F.T&&(this.C&&(this.iX(this.C),this.C=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.uG(this.element,"no-link")); J=this.api.J();F=this.api.getVideoData();var b="";J.T||(J=g.Rw(J),J.indexOf("www.")===0&&(J=J.substring(4)),b=g.HE(F)?"Assistir no YouTube Music":J==="youtube.com"?"Assistir no YouTube":g.m8("Assista em $WEBSITE",{WEBSITE:J}));this.updateValue("title",b)}; Py.prototype.onClick=function(F){this.api.S("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var J=this.api.J(),b=this.api.getVideoUrl(!g.f0(F),!1,!0,!0);if(g.dN(J)){var I={};g.dN(J)&&g.wO(this.api,"addEmbedsConversionTrackingParams",[I]);b=g.Os(b,I)}g.Fy(b,this.api,F);this.api.S("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; Py.prototype.mO=function(){var F={X:"svg",L:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},j:[{X:"path",G1:!0,K:"ytp-svg-fill",L:{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 "}}]}, J=28666,b=this.api.getVideoData();this.api.isEmbedsShortsMode()?F={X:"svg",L:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},j:[{X:"path",L:{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.HE(b)&&(F={X:"svg",L:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},j:[{X:"path",L:{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"}},{X:"path",L:{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"}},{X:"path",L:{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"}},{X:"path",L:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{X:"path",L:{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"}},{X:"path",L:{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"}},{X:"path",L:{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"}},{X:"path",L:{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"}},{X:"path",L:{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"}},{X:"path",L:{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"}},{X:"path",L:{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"}},{X:"path",L:{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"}}]},J=216163);g.HE(b)?g.uG(this.element,"ytp-youtube-music-button"):g.Mr(this.element,"ytp-youtube-music-button");F.L=Object.assign({},F.L,{"aria-hidden":"true"});this.updateValue("logoSvg",F);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,J,!0)}; Py.prototype.tJ=function(F){g.U.prototype.tJ.call(this,F);this.api.logVisibility(this.element,this.visible&&F)};g.z(V_C,g.s5);g.A=V_C.prototype;g.A.aP=function(){if(this.G.S("web_player_max_seekable_on_ended")||!g.x(this.G.getPlayerStateObject(),2))this.progressBar.Q6(),this.WN.Q6()}; g.A.lN=function(){this.OU();this.rq.U?this.aP():this.progressBar.QN()}; g.A.KY=function(){this.aP();this.Y.start()}; g.A.OU=function(){var F;if(F=!this.G.J().U){F=this.progressBar;var J=2*g.ow()*F.W;F=F.T.getLength()*1E3/F.api.getPlaybackRate()/J<300}F=F&&this.G.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;J=!F;this.rq.U||(F=J=!1);J?this.eE||(this.eE=this.B(this.G,"progresssync",this.aP)):this.eE&&(this.iX(this.eE),this.eE=null);F?this.Y.isActive()||this.Y.start():this.Y.stop()}; g.A.mO=function(){var F=this.G.Ua(),J=this.G.mG().getPlayerSize(),b=BH7(this),I=Math.max(J.width-b*2,100);if(this.cN!==J.width||this.bR!==F){this.cN=J.width;this.bR=F;var u=THa(this);this.Z.element.style.width=u+"px";this.Z.element.style.left=b+"px";g.kra(this.progressBar,b,u,F);this.G.W1().Cw=u}b=this.T;I=Math.min(570*(F?1.5:1),I);F=Math.min(413*(F?1.5:1),Math.round((J.height-r0C(this))*.82));b.maxWidth=I;b.maxHeight=F;b.vp();this.OU();this.G.J().S("html5_player_dynamic_bottom_gradient")&&XnG(this.nW, J.height)}; g.A.onVideoDataChange=function(){var F=this.G.getVideoData();this.zj.style.background=F.T0?F.RV:"";this.Tj&&ov3(this.Tj,F.showSeekingControls);this.N&&ov3(this.N,F.showSeekingControls)}; g.A.Pb=function(){return this.Z.element};g.z(Sc3,XI);g.A=Sc3.prototype;g.A.aD=function(F){F.target!==this.dismissButton.element&&(this.onClickCommand&&this.G.jE("innertubeCommand",this.onClickCommand),this.tx())}; g.A.tx=function(){this.enabled=!1;this.N.hide()}; g.A.onVideoDataChange=function(F,J){F==="dataloaded"&&sqz(this);F=[];var b,I,u,w;if(J=(w=g.O((b=J.getWatchNextResponse())==null?void 0:(I=b.playerOverlays)==null?void 0:(u=I.playerOverlayRenderer)==null?void 0:u.suggestedActionsRenderer,pWt))==null?void 0:w.suggestedActions)for(b=g.N(J),I=b.next();!I.done;I=b.next())(I=g.O(I.value,gKz))&&g.O(I.trigger,KF5)&&F.push(I);if(F.length!==0){b=[];F=g.N(F);for(I=F.next();!I.done;I=F.next())if(I=I.value,u=g.O(I.trigger,KF5))w=(w=I.title)?g.Kr(w):"View Chapters", J=u.timeRangeStartMillis,u=u.timeRangeEndMillis,J!=null&&u!=null&&I.tapCommand&&(b.push(new g.b6(J,u,{priority:9,namespace:"suggested_action_button_visible",id:w})),this.suggestedActions[w]=I.tapCommand);this.G.TU(b)}}; g.A.jM=function(){return this.enabled}; g.A.G0=function(){this.enabled?this.dD.start():$c(this);this.sY()}; g.A.X_=function(){sqz(this);XI.prototype.X_.call(this)};var j_={},r1=(j_.CHANNEL_NAME="ytp-title-channel-name",j_.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",j_.LINK="ytp-title-link",j_.SESSIONLINK="yt-uix-sessionlink",j_.SUBTEXT="ytp-title-subtext",j_.TEXT="ytp-title-text",j_.TITLE="ytp-title",j_);g.z(SO,g.U);SO.prototype.onClick=function(F){this.api.logClick(this.element);var J=this.api.J(),b=this.api.getVideoUrl(!g.f0(F),!1,!0);g.dN(J)&&(J={},g.wO(this.api,"addEmbedsConversionTrackingParams",[J]),b=g.Os(b,J));g.Fy(b,this.api,F)}; SO.prototype.VG=function(){var F=this.api.getVideoData(),J=this.api.J();this.updateValue("title",F.title);var b={X:"a",K:r1.CHANNEL_NAME,L:{href:"{{channelLink}}",target:"_blank"},sQ:"{{channelName}}"};this.api.J().T&&(b={X:"span",K:r1.CHANNEL_NAME,sQ:"{{channelName}}",L:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",b);Yca(this);this.api.getPresentingPlayerType()===2&&(b=this.api.getVideoData(),b.videoId&&b.isListed&&b.author&&b.Om&&b.profilePicture?(this.updateValue("channelLink", b.Om),this.updateValue("channelName",b.author),this.updateValue("channelTitleFocusable","0")):Yca(this));b=J.externalFullscreen||!this.api.isFullscreen()&&J.Tc;g.qr(this.link,r1.FULLERSCREEN_LINK,b);J.eE||!F.videoId||b||g.tw(F)||J.T?this.C&&(this.updateValue("url",null),this.iX(this.C),this.C=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.C||(this.C=this.B(this.link,"click",this.onClick)));J.T&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.dN(J)?F.expandedTitle: F.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.z(g.s3,g.U);g.A=g.s3.prototype;g.A.setEnabled=function(F){if(this.type!=null)if(F)switch(this.type){case 3:case 2:CsG(this);this.V.show();break;default:this.V.show()}else this.V.hide();this.Y=F}; g.A.EO=function(F,J,b,I,u,w,M,q){if(!this.WN||this.env.Y){this.type===3&&this.QN();this.type!==1&&(g.bG(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.Y&&this.V.show(),this.U&&this.U.dispose(),(this.U=this.api.Si())&&this.U.subscribe("l",this.DP,this));if(q){var v=g.fL(this.bg).height||141;this.fW.style.bottom=v+2+"px"}this.update({text:b,title:w!=null?w:"",eduText:q!=null?q:""});g.qr(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!w);this.api.isInline()&&g.uG(this.bottomText, "ytp-modern-tooltip-text");g.qr(this.element,"ytp-text-detail",!!I);b=-1;this.U&&(b=Tt(this.U,243*this.scale),this.env.S("web_l3_storyboard")&&this.U.levels.length===4&&(b=this.U.levels.length-1),b=v8a(this.U,b,J));Qqv(this,b);if(M)switch(J=g.fL(this.element).width,M){case 1:this.title.style.right="0";this.title.style.textAlign="left";break;case 2:this.title.style.right=J+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=J/2+"px",this.title.style.textAlign="center"}X_o(this, !!I,F,u)}}; g.A.BZ=function(){this.type===1&&this.QN()}; g.A.R$=function(F,J){if(this.type)if(this.type===3)this.QN();else return;$yo(this,F,3,J)}; g.A.Dl=function(){this.C&&!this.N&&this.C.hasAttribute("title")&&(this.T=this.C.getAttribute("title")||"",this.C.removeAttribute("title"),this.Y&&CsG(this))}; g.A.DP=function(F,J){F<=this.Z&&this.Z<=J&&(F=this.Z,this.Z=NaN,Qqv(this,F))}; g.A.LGv=function(){AIv(this.U,this.Z,243*this.scale)}; g.A.QN=function(){switch(this.type){case 2:var F=this.C;F.removeEventListener("mouseout",this.Tj);F.addEventListener("mouseover",this.W);F.removeEventListener("blur",this.Tj);F.addEventListener("focus",this.W);R7z(this);break;case 3:R7z(this);break;case 1:this.U&&(this.U.unsubscribe("l",this.DP,this),this.U=null),this.api.removeEventListener("videoready",this.eE),this.Gj.stop()}this.type=null;this.Y&&this.V.hide()}; g.A.DW=function(){if(this.C)for(var F=0;F=0;J--)if(this.hx[J]===F){this.hx.splice(J,1);break}OO(this.rq,64,this.hx.length>0)}; g.A.qR=function(){this.api.AD()&&this.api.U0();return!!this.oU||c0_(this)||g.LV.prototype.qR.call(this)}; g.A.u2=bk(3);g.A.by=bk(7);g.A.aE=bk(10); g.A.MP=function(){var F=!this.qR(),J=F&&this.api.AD()&&!g.x(this.api.getPlayerStateObject(),2)&&!g.tw(this.api.getVideoData())&&!this.api.J().T&&!this.api.isEmbedsShortsMode(),b=this.uy&&g.Ef(this.api)&&g.x(this.api.getPlayerStateObject(),128);F||b?(this.zY.show(),this.Ko.show()):(this.zY.hide(),this.Ko.hide(),this.api.DW(this.BD.element));J?this.EV.Bo():this.EV.fk();this.cg&&Psv(this.cg,this.eW||!F);this.api.S("web_player_hide_overflow_button_if_empty_menu")&&Uy_(this);g.LV.prototype.MP.call(this)}; g.A.kU=function(F,J,b,I,u){F.style.left="";F.style.top="";F.style.bottom="";var w=g.fL(F),M=I||this.cg&&g.uB(this.cg.Pb(),J),q=I=null;b!=null&&M||(I=g.fL(J),q=g.NB(J,this.api.getRootNode()),b==null&&(b=q.x+I.width/2));b-=w.width/2;M?(J=this.cg,I=BH7(J),q=THa(J),M=this.api.mG().getPlayerSize().height,b=g.AD(b,I,I+q-w.width),w=M-r0C(J)-w.height):g.uB(this.BD.element,J)?(J=this.api.mG().getPlayerSize().width,b=g.AD(b,12,J-w.width-12),w=this.Ua()?this.hU:this.VI,this.api.J().playerStyle==="gvn"&&(w+= 20),this.uy&&(w-=this.Ua()?26:18)):(J=this.api.mG().getPlayerSize(),b=g.AD(b,12,J.width-w.width-12),w=q.y>(J.height-I.height)/2?q.y-w.height-12:q.y+I.height+12);F.style.top=w+(u||0)+"px";F.style.left=b+"px"}; g.A.lN=function(F){F&&(this.api.DW(this.BD.element),this.cg&&this.api.DW(this.cg.Pb()));this.BH&&(g.qr(this.contextMenu.element,"ytp-autohide",F),g.qr(this.contextMenu.element,"ytp-autohide-active",!0));g.LV.prototype.lN.call(this,F)}; g.A.Ut=function(){g.LV.prototype.Ut.call(this);this.BH&&(g.qr(this.contextMenu.element,"ytp-autohide-active",!1),this.BH&&(this.contextMenu.hide(),this.z7&&this.z7.hide()))}; g.A.xK=function(F,J){var b=this.api.mG().getPlayerSize();b=new g.uu(0,0,b.width,b.height);if(F||this.rq.U&&!this.qR()){if(this.api.J().gT||J)F=this.Ua()?this.hU:this.VI,b.top+=F,b.height-=F;this.cg&&(b.height-=r0C(this.cg))}return b}; g.A.Up=function(F){var J=this.api.getRootNode();F?J.parentElement?(J.setAttribute("aria-label","Player de v\u00eddeo do YouTube em tela cheia"),this.api.J().externalFullscreen||(J.parentElement.insertBefore(this.At.element,J),J.parentElement.insertBefore(this.W2.element,J.nextSibling))):g.Td(Error("Player not in DOM.")):(J.setAttribute("aria-label","Player de v\u00eddeo do YouTube"),this.At.detach(),this.W2.detach());this.mO();this.E1()}; g.A.Ua=function(){var F=this.api.J();return this.api.isFullscreen()&&!F.Y||!1}; g.A.showControls=function(F){this.pn=!F;this.MP()}; g.A.mO=function(){var F=this.Ua();this.tooltip.scale=F?1.5:1;this.contextMenu&&g.qr(this.contextMenu.element,"ytp-big-mode",F);this.MP();this.api.S("web_player_hide_overflow_button_if_empty_menu")||Uy_(this);this.E1();var J=this.api.isEmbedsShortsMode();J&&F?(F=(this.api.mG().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.aN(this.BD.element,"padding-left",F+"px"),g.aN(this.BD.element,"padding-right",F+"px")):J&&(g.aN(this.BD.element,"padding-left",""),g.aN(this.BD.element,"padding-right", ""));g.LV.prototype.mO.call(this)}; g.A.b6=function(){if(c0_(this)&&!g.Ef(this.api))return!1;var F=this.api.getVideoData();return!g.dN(this.api.J())||this.api.getPresentingPlayerType()===2||!this.yN||((F=this.yN||F.yN)?(F=F.embedPreview)?(F=F.thumbnailPreviewRenderer,F=F.videoDetails&&g.O(F.videoDetails,UEm)||null):F=null:F=null,F&&F.collapsedRenderer&&F.expandedRenderer)?g.LV.prototype.b6.call(this):!1}; g.A.E1=function(){g.LV.prototype.E1.call(this);this.api.logVisibility(this.title.element,!!this.CL);this.YG&&this.YG.tJ(!!this.CL);this.channelAvatar.tJ(!!this.CL);this.overflowButton&&this.overflowButton.tJ(this.Ru()&&!!this.CL);this.shareButton&&this.shareButton.tJ(!this.Ru()&&!!this.CL);this.J6&&this.J6.tJ(!this.Ru()&&!!this.CL);this.searchButton&&this.searchButton.tJ(!this.Ru()&&!!this.CL);this.copyLinkButton&&this.copyLinkButton.tJ(!this.Ru()&&!!this.CL);if(!this.CL){this.api.DW(this.BD.element); for(var F=0;F5&&J.UQ("glrs",{cmt:b});J.seekTo(0,{seekSource:58});J.UQ("glrre",{cmt:b})}}; Xi.prototype.X_=function(){this.C=null;g.R.prototype.X_.call(this)};g.z(g.Qw,nB);g.A=g.Qw.prototype;g.A.isView=function(){return!0}; g.A.BR=function(){var F=this.mediaElement.getCurrentTime();if(F=4&&F!=="player-reload-after-handoff";this.status={status:Infinity,error:F};if(this.C&&this.U){var I=this.U.getVideoData().clientPlaybackNonce;this.C.je(new E5("dai.transitionfailure",Object.assign(J,{cpn:I,transitionTimeMs:this.Pu,msg:F})));this.C.lA(b)}this.O1.reject(F);this.dispose()}}; g.A.Rs=function(){return this.status.status>=4&&this.status.status<6}; g.A.X_=function(){Mxo(this);this.C.unsubscribe("newelementrequired",this.Mz,this);if(this.T){var F=this.T.U;this.T.C.Us.unsubscribe("updateend",this.S7,this);F.Us.unsubscribe("updateend",this.S7,this)}g.R.prototype.X_.call(this)}; g.A.wj=function(F){g.e1(F,128)&&this.Wh("player-error-event")};g.z(k3,g.R);k3.prototype.clearQueue=function(F,J){F=F===void 0?!1:F;J=J===void 0?!1:J;this.Z&&this.Z.reject("Queue cleared");this.app.J().S("html5_gapless_fallback_on_qoe_restart_v2")||J&&this.U&&this.U.lA(!1);O3(this,F)}; k3.prototype.W9=function(){return!this.C}; k3.prototype.Rs=function(){var F;return((F=this.T)==null?void 0:F.Rs())||!1}; k3.prototype.X_=function(){O3(this);g.R.prototype.X_.call(this)};g.z(pZm,g.uA);g.A=pZm.prototype;g.A.getVisibilityState=function(F,J,b,I,u,w,M,q){return F?4:a6m()?3:J?2:b?1:I?5:u?7:w?8:M?9:q?10:0}; g.A.wT=function(F){this.fullscreen!==F&&(this.fullscreen=F,this.G0())}; g.A.setMinimized=function(F){this.U!==F&&(this.U=F,this.G0())}; g.A.setInline=function(F){this.inline!==F&&(this.inline=F,this.G0())}; g.A.mU=function(F){this.pictureInPicture!==F&&(this.pictureInPicture=F,this.G0())}; g.A.setSqueezeback=function(F){this.T!==F&&(this.T=F,this.G0())}; g.A.Wp=function(F){this.Z!==F&&(this.Z=F,this.G0())}; g.A.Hh=function(){return this.C}; g.A.tO=function(){return this.fullscreen!==0}; g.A.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.A.SP=function(){return this.fullscreen}; g.A.isMinimized=function(){return this.U}; g.A.isInline=function(){return this.inline}; g.A.isBackground=function(){return a6m()}; g.A.JN=function(){return this.pictureInPicture}; g.A.n$=function(){return!1}; g.A.I9=function(){return this.T}; g.A.tD=function(){return this.Z}; g.A.G0=function(){this.publish("visibilitychange");var F=this.getVisibilityState(this.Hh(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.JN(),this.n$(),this.I9(),this.tD());F!==this.W&&this.publish("visibilitystatechange");this.W=F}; g.A.X_=function(){p0_(this.D);g.uA.prototype.X_.call(this)};g.z(gx3,g.R);g.A=gx3.prototype;g.A.Nf=function(){return this.Z}; g.A.uM=function(F){this.Z=F}; g.A.F_=function(){return this.T}; g.A.LA=function(F){this.T=F}; g.A.F4=function(F){return this.U[F]||null}; g.A.X_=function(){for(var F=g.N(Object.values(this.U)),J=F.next();!J.done;J=F.next())xU(J.value);g.R.prototype.X_.call(this)};g.z(oQ,g.R);g.A=oQ.prototype;g.A.enqueue=function(F,J){if(F.Z!==this)return!1;if(this.segments.length===0||(J===void 0?0:J))this.C=F;this.segments.push(F);return!0}; g.A.Ez=function(){return this.V2||0}; g.A.jo=function(){return this.Z||0}; g.A.removeAll=function(){for(;this.segments.length;){var F=void 0;(F=this.segments.pop())==null||F.dispose()}this.U.clear();this.T=void 0}; g.A.X_=function(){this.removeAll();g.R.prototype.X_.call(this)}; g.z(ExJ,g.R);g.A=ExJ.prototype;g.A.Ez=function(){return this.V2}; g.A.jo=function(){return this.T}; g.A.getType=function(){return this.type}; g.A.getVideoData=function(){return this.videoData}; g.A.gy=function(F){m7(F);this.videoData=F}; g.A.X_=function(){jC7(this);g.R.prototype.X_.call(this)};g.x3.prototype.El=function(F,J){if(J===1)return this.C.get(F);if(J===2)return this.T.get(F);if(J===3)return this.U.get(F)}; g.x3.prototype.M6=bk(50);g.x3.prototype.Za=function(F,J,b,I){b={VO:I,W$:b};J?this.T.set(F,b):this.C.set(F,b)}; g.x3.prototype.clearAll=function(){this.C.clear();this.T.clear();this.U.clear()}; g.z(g.n9,g.R);g.A=g.n9.prototype;g.A.B$=function(F,J,b){return new g.b6(F,J,{id:b,namespace:"serverstitchedcuerange",priority:9})}; g.A.VL=function(F){var J=F.l7?F.l7*1E3:F.V2,b=this.U.get(F.cpn);b&&this.playback.removeCueRange(b);this.U.delete(F.cpn);this.T.delete(F.cpn);b=this.D.indexOf(F);b>=0&&this.D.splice(b,1);b=[];for(var I=g.N(this.W),u=I.next();!u.done;u=I.next())u=u.value,u.end<=J?this.playback.removeCueRange(u):b.push(u);this.W=b;OZz(this,0,J+F.durationMs)}; g.A.onCueRangeEnter=function(F){this.dD.push(F);var J=F.getId();this.Ck({oncueEnter:1,cpn:J,start:F.start,end:F.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.Fb()||0).toFixed(3)});var b=J==="";this.Jz.add(F.U);var I=this.T.get(J);if(b){var u;if(this.playback.getVideoData().vV()&&((u=this.C)==null?0:u.kh)&&this.Z){this.x_=0;this.C=void 0;this.nW&&(this.events.iX(this.nW),this.nW=null);this.Z="";this.zj=!0;return}}else if(this.Ck({enterAdCueRange:1}),this.playback.getVideoData().vV()&& (I==null?0:I.L$))return;if(this.zj&&!this.C)this.zj=!1,!b&&I&&(b=this.playback.getCurrentTime(),JU(this,{Os:F,isAd:!0,F2:!0,au:b,adCpn:J},{isAd:!1,F2:!1,au:b}),this.GF=I.cpn,L9(this,I),F=Hy(this,"midab",I),this.Ck(F),this.x_=1),this.N=!1;else if(this.C){if(this.C.F2)this.Ck({a_pair_of_same_transition_occurs_enter:1,acpn:this.C.adCpn,transitionTime:this.C.au,cpn:J,currentTime:this.playback.getCurrentTime()}),I=this.playback.getCurrentTime(),F={Os:F,isAd:!b,F2:!0,au:I,adCpn:J},J={Os:this.C.Os,isAd:this.C.isAd, F2:!1,au:I,adCpn:this.C.adCpn},this.C.Os&&this.Jz.delete(this.C.Os.U),JU(this,F,J);else{if(this.C.Os===F){this.Ck({same_cue_range_pair_enter:1,acpn:this.C.adCpn,transitionTime:this.C.au,cpn:J,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:F.start,cueRangeEndTime:F.end});this.C=void 0;return}if(this.C.adCpn===J){J&&this.Ck({dchtsc:J});this.C=void 0;return}F={Os:F,isAd:!b,F2:!0,au:this.playback.getCurrentTime(),adCpn:J};JU(this,F,this.C)}this.C=void 0;this.N=!1}else this.C={Os:F,isAd:!b, F2:!0,au:this.playback.getCurrentTime(),adCpn:J}}; g.A.onCueRangeExit=function(F){var J=F.getId();this.Ck({oncueExit:1,cpn:J,start:F.start,end:F.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.Fb()||0).toFixed(3)});var b=J==="",I=this.T.get(J);if(this.playback.getVideoData().vV()&&!b&&I){if(I.L$)return;I.L$=!0;this.V.clear();if(this.rD.S("html5_lifa_no_rewatch_ad_sbc"))if(this.playback.H$()){var u=I.V2;this.playback.KU(u/1E3,(u+I.durationMs)/1E3)}else this.playback.UQ("lifa",{remove:0})}if(this.Jz.has(F.U))if(this.Jz.delete(F.U), this.dD=this.dD.filter(function(w){return w!==F}),this.zj&&(this.N=this.zj=!1,this.Ck({cref:1})),this.C){if(this.C.F2){if(this.C.Os===F){this.Ck({same_cue_range_pair_exit:1, acpn:this.C.adCpn,transitionTime:this.C.au,cpn:J,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:F.start,cueRangeEndTime:F.end});this.C=void 0;return}if(this.C.adCpn===J){J&&this.Ck({dchtsc:J});this.C=void 0;return}J={Os:F,isAd:!b,F2:!1,au:this.playback.getCurrentTime(),adCpn:J};JU(this,this.C,J)}else if(this.Ck({a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.C.adCpn,transitionTime:this.C.au,upcomingCpn:J,contentCpn:this.playback.getVideoData().clientPlaybackNonce,currentTime:this.playback.getCurrentTime()}), this.C.adCpn===J)return;this.C=void 0;this.N=!1}else this.C={Os:F,isAd:!b,F2:!1,au:this.playback.getCurrentTime(),adCpn:J};else this.Ck({ignore_single_exit:1})}; g.A.O0=function(){return{cpn:this.playback.getVideoData().clientPlaybackNonce,durationMs:0,V2:0,playerType:1,Xd:0,videoData:this.playback.getVideoData(),errorCount:0}}; g.A.zc=function(){if(this.Bu)return!1;var F=void 0;this.GF&&(F=this.T.get(this.GF));return this.playback.getVideoData().vV()?!!F&&!F.L$:!!F}; g.A.seekTo=function(F,J,b,I){F=F===void 0?0:F;J=J===void 0?{}:J;b=b===void 0?!1:b;I=I===void 0?null:I;if(this.playback.getVideoData().vV()&&F<=this.kQ/1E3)this.playback.pauseVideo(),this.kQ=0,this.N=!0,this.playback.sV(),this.playback.seekTo(F),this.playback.playVideo();else if(this.N=!0,b)Vx_(this,F,J);else{b=this.app.F_();var u=b===this.KW?this.Q2:null;Iz(this,!1);this.Kk=F;this.xm=J;I!=null&&this.Om.start(I);b&&(this.Q2=u||b.getPlayerState(),b.MG(),this.KW=b)}}; g.A.X_=function(){Iz(this,!1);$T_(this);CNk(this);g.R.prototype.X_.call(this)}; g.A.iD=function(F){this.T1=F;this.Ck({swebm:F})}; g.A.Vz=function(F,J,b){if(b&&J){var I=this.V.get(F);if(I){I.locations||(I.locations=new Map);var u=Number(J.split(";")[0]);b=new g.yJ(b);this.Ck({hdlredir:1,itag:J,seg:F,hostport:zK(b)});I.locations.set(u,b)}}}; g.A.Rz=function(F,J,b,I,u,w){var M=I===3,q=QC4(this,F,J,I,b,w);if(!q){wh(this,J,M);var v=g.XZk(this,J)?"undec":"ncp";this.Ck({gvprp:v,mt:F,seg:J,tt:I,itag:b,ce:w});return null}M||this.V.set(J,q);w=q.i7;var a;I=((a=this.El(J-1,I,u))==null?void 0:a.VO)||"";I===""&&this.Ck({eds:1});a=DTC(this,q.ssdaiAdsConfig);u=this.playback.getVideoData();var e;M=((e=u.U)==null?void 0:e.containerType)||0;e=u.Nc[M];q=q.k8&&J>=q.k8?q.k8:void 0;e={zW:w?h9C(this,w):[],nw:a,VO:I,Fy:q,SR:L5(e.split(";")[0]),Hi:e.split(";")[1]|| ""};q={Zc:e};this.cN&&(F={gvprpro:"v",sq:J,mt:F.toFixed(3),itag:b,acpns:((v=e.zW)==null?void 0:v.join("_"))||"none",abid:w},this.Ck(F));return q}; g.A.RN=function(F){a:{if(!this.Bu){var J=R93(this,F);if(!(this.playback.getVideoData().vV()&&(J==null?0:J.L$)))break a}J=void 0}var b=J;if(!b)return this.Ck({gvprp:"ncp",mt:F}),null;J=b.i7;var I=DTC(this,b.ssdaiAdsConfig);b=b.k8&&b.lM&&F>=b.lM?b.k8:void 0;var u=this.playback.getVideoData(),w,M=((w=u.U)==null?void 0:w.containerType)||0;w=u.Nc[M];w={zW:J?h9C(this,J):[],nw:I,Fy:b,SR:L5(w.split(";")[0]),Hi:w.split(";")[1]||""};if(this.rD.S("html5_use_time_without_threshold_first")){var q;F={gvprpro:"v", mt:F.toFixed(3),acpns:((q=w.zW)==null?void 0:q.join("_"))||"none",abid:J};this.Ck(F)}return w}; g.A.R9=function(F,J,b,I,u,w){var M=Number(b.split(";")[0]),q=I===3;F=QC4(this,F,J,I,b,w);this.Ck({gdu:1,seg:J,itag:M,pb:""+!!F});if(!F)return wh(this,J,q),null;F.locations||(F.locations=new Map);if(!F.locations.has(M)){var v,a;w=(v=F.videoData.getPlayerResponse())==null?void 0:(a=v.streamingData)==null?void 0:a.adaptiveFormats;if(!w)return this.Ck({gdu:"noadpfmts",seg:J,itag:M}),wh(this,J,q),null;v=w.find(function(p){return p.itag===M}); if(!v||!v.url){var e=F.videoData.videoId;F=[];var K=g.N(w);for(I=K.next();!I.done;I=K.next())F.push(I.value.itag);this.Ck({gdu:"nofmt",seg:J,vid:e,itag:M,fullitag:b,itags:F.join(",")});wh(this,J,q);return null}F.locations.set(M,new g.yJ(v.url,!0))}w=F.locations.get(M);if(!w)return this.Ck({gdu:"nourl",seg:J,itag:M}),wh(this,J,q),null;w=new aA(w);this.T1&&(w.get("dvc")?this.Ck({dvc:w.get("dvc")||""}):w.set("dvc","webm"));(I=(K=this.El(J-1,I,u))==null?void 0:K.VO)&&w.set("daistate",I);F.k8&&J>=F.k8&& w.set("skipsq",""+F.k8);(K=this.playback.getVideoData().clientPlaybackNonce)&&w.set("cpn",K);K=[];F.i7&&(K=h9C(this,F.i7),K.length>0&&w.set("acpns",K.join(",")));q||this.V.set(J,F);q=null;q=w.get("aids");I=w.tF();(I==null?void 0:I.length)>2048&&this.Ck({urltoolong:1,sq:J,itag:M,len:I.length});this.cN&&(I&&(w=F.cpn,u=F.i7,xTY(this,w,u),u&&!this.M0.has(u)&&(w=cKv(this,w,u),v=UTm(this,u),this.Ck({iofa:w}),this.Ck({noawnzd:v-w}),this.Ck({acpns:K.join("."),aids:(e=q)==null?void 0:e.replace(/,/g,".")}), this.M0.add(u))),this.Ck({gdu:"v",seg:J,itag:b,ast:F.V2.toFixed(3),alen:F.durationMs.toFixed(3),acpn:F.cpn,avid:F.videoData.videoId}));return I}; g.A.nU=function(F,J,b){var I=uK(this,F,b);return(I=I?(I.V2+I.durationMs)/1E3:0)&&J>I?(this.rO(F,b,!0),this.playback.seekTo(I),!0):!1}; g.A.rO=function(F,J,b){b=b===void 0?!1:b;var I=uK(this,F,J);if(I){var u=void 0,w=I.i7;if(w){this.Ck({skipadonsq:J,sts:b,abid:w,acpn:I.cpn,avid:I.videoData.videoId});b=this.Tj.get(w);if(!b)return;b=g.N(b);for(w=b.next();!w.done;w=b.next())w=w.value,w.k8=J,w.lM=F,w.V2>I.V2&&(u=w)}this.Z=I.cpn;kQm(this);F=this.playback.getCurrentTime();Ff(this,I,u,F,F,!1,!0)}}; g.A.yb=function(){for(var F=g.N(this.D),J=F.next();!J.done;J=F.next())J=J.value,J.k8=NaN,J.lM=NaN;kQm(this);this.Ck({rsac:"resetSkipAd",sac:this.Z});this.Z=""}; g.A.El=function(F,J,b){return this.fW.El(F,J,b)}; g.A.M6=bk(49); g.A.Za=function(F,J,b,I,u,w,M,q,v){I.length>0&&this.Ck({onssinfo:1,sq:F,start:J.toFixed(3),cpns:I.join(","),ds:u.join(","),isVideo:M?1:0});v&&this.fW.Za(F,M,q,v);q=bE(this.playback.getVideoData())&&this.rD.S("html5_process_all_cuepoints");if(M||q){if(I.length&&u.length)for(this.Z&&this.Z===I[0]&&this.Ck({skipfail:1,sq:F,acpn:this.Z}),F=J+this.Kc(),M=0;M0&&(this.x_=0,this.GF="",this.api.publish("serverstitchedvideochange"));this.playback.sy(b,I);return!0}; g.A.CB=function(){this.Ck({rstdaist:1});this.fW.clearAll()}; g.A.Jx=function(F){var J;if(F!==((J=this.eE)==null?void 0:J.identifier))this.Ck({ignorenoad:F});else{this.g9.add(F);var b;((b=this.eE)==null?void 0:b.identifier)===F&&ZB(this)}}; g.A.Jp=function(){return this.x_}; g.A.h4=function(){return this.GF}; g.A.F0=function(F){if(this.playback.getVideoData().vV()&&(this.rD.S("html5_lifa_no_gab_on_predict_start")&&F.event==="predictStart"||F.event==="continue"||F.event==="stop"))return this.Ck({cuepoint_skipped:F.event}),!1;var J=XN(this.api.TF());if(J=J?J.F0(F):!1)this.Y={wJ:F.identifier,zL:F.startSecs};else if(this.Y&&this.Y.wJ===F.identifier&&F.startSecs>this.Y.zL+1){this.Ck({cueStChg:F.identifier,oldSt:this.Y.zL.toFixed(3),newSt:F.startSecs.toFixed(3),abid:this.Y.hj});if(this.Y.hj){var b=F.startSecs- this.Y.zL,I=this.Tj.get(this.Y.hj);if(I){I=g.N(I);for(var u=I.next();!u.done;u=I.next())u=u.value,u.V2>=0&&(u.V2+=b*1E3,this.rD.S("html5_ssdai_update_timeline_on_start_time_change")&&(u.Xd+=b*1E3),this.Ck({newApEt:u.V2,newApPrt:u.Xd,acpn:u.cpn}))}}this.Y.zL=F.startSecs}return J}; g.A.GA=function(F){return this.Bu?!1:!!R93(this,F)}; g.A.xq=function(F){var J=this;this.playback.pauseVideo();var b=this.playback.getCurrentTime(),I=this.T.get(this.GF),u=this.U.get(this.GF);if(I){this.Z=this.GF;this.N=!1;I.L$=!0;var w=this.playback.getCurrentTime();this.C={Os:u,isAd:!0,F2:!1,au:w,adCpn:this.GF,kh:I,E6z:F};this.playback.getVideoData().vV()&&this.playback.QE(I,this.O0(),w,this.playback.getCurrentTime(),!1,!0,F,(0,g.jR)());if(u==null?0:u.start)this.kQ=w*1E3-u.start;this.V.clear();this.playback.sV();this.GF=this.O0().cpn;this.api.publish("serverstitchedvideochange"); this.playback.seekTo(b,{seekSource:89,Ky:"lifa_skip"});this.playback.playVideo();this.nW||(this.nW=this.events.B(this.api,"progresssync",function(){J.VL(I)})); return!0}this.Ck({skipFail:b},!0);return!1}; g.A.Ck=function(F,J){((J===void 0?0:J)||this.cN||this.playback.getVideoData().vV())&&this.playback.UQ("sdai",F)}; var rKY=0;g.z(nx4,g.n9);g.A=nx4.prototype;g.A.VL=function(F){var J=this.U.get(F.cpn);J&&this.playback.removeCueRange(J);this.U.delete(F.cpn);this.T.delete(F.cpn);F=this.D.indexOf(F);F>=0&&this.D.splice(F,1)}; g.A.onCueRangeEnter=function(F){var J=F.getId();this.playback.UQ("sdai",{oncueEnter:1,cpn:J,start:F.start,end:F.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.Fb()||0).toFixed(3)});J=this.T.get(J);this.playback.UQ("sdai",{enterAdCueRange:1});var b=this.GF||this.O0().cpn,I;b=(I=this.T.get(b))!=null?I:this.O0();J&&(F={Os:F,PX:b,Ts:J,eO:this.playback.getCurrentTime()},this.wS(F))}; g.A.onCueRangeExit=function(F){for(var J=this.playback.getCurrentTime()*1E3,b=F.getId(),I=g.N(this.U.values()),u=I.next();!u.done;u=I.next())if(u=u.value,u.getId()!==b&&J>=u.start&&J<=u.end)return;if(J=this.T.get(b))F={Os:F,PX:J,Ts:this.O0(),eO:this.playback.getCurrentTime()},this.wS(F)}; g.A.wS=function(F){this.Z||this.N||this.g_(this.GF);var J=F.PX,b=F.Ts;if(b.cpn===this.GF)this.playback.UQ("sdai",{igtranssame:1,enter:b.cpn,exit:J.cpn});else{var I=this.N,u=!!this.Z;this.Z="";F=F.eO;var w=J.playerType===2?J.V2/1E3+J.videoData.KW:this.O0().videoData.KW;if(J.playerType===2&&b.playerType===2)u?this.playback.UQ("sdai",{igtransskip:1,enter:b.cpn,exit:J.cpn,seek:I,skip:this.Z}):Ff(this,J,b,w,F,I,u);else{this.GF=b.cpn;if(J.playerType===1&&b.playerType===2){this.kQ=0;L9(this,b);var M=Hy(this, "c2a",b);this.playback.UQ("sdai",M);this.x_++}else if(J.playerType===2&&b.playerType===1){M=J.videoData.KW;this.api.publish("serverstitchedvideochange");var q=Hy(this,"a2c");this.playback.UQ("sdai",q);this.x_=0;this.kQ=M}this.playback.QE(J,b,w,F,I,u)}this.Z="";this.N=!1}}; g.A.seekTo=function(F,J,b,I){F=F===void 0?0:F;J=J===void 0?{}:J;b=b===void 0?!1:b;I=I===void 0?null:I;this.g_(this.GF);g.n9.prototype.seekTo.call(this,F,J,b,I)}; g.A.rO=function(F,J,b){b=b===void 0?!1:b;var I=uK(this,F,J);if(I){var u=void 0,w=I.i7;if(w){this.playback.UQ("sdai",{skipadonsq:J,sts:b,abid:w,acpn:I.cpn,avid:I.videoData.videoId});b=this.Tj.get(w);if(!b)return;b=g.N(b);for(w=b.next();!w.done;w=b.next())w=w.value,w.k8=J,w.lM=F,w.V2>I.V2&&(u=w)}this.g_(this.GF);this.Z=I.cpn;kQm(this);F=this.playback.getCurrentTime();Ff(this,I,u,F,F,!1,!0)}}; g.A.Za=function(F,J,b,I,u,w,M,q,v){I.length>0&&this.playback.UQ("sdai",{onssinfo:1,sq:F,start:J.toFixed(3),cpns:I.join(","),ds:u.join(","),isVideo:M?1:0});v&&this.fW.Za(F,M,q,v);b=bE(this.playback.getVideoData())&&this.rD.S("html5_process_all_cuepoints");if(M||b){if(I.length&&u.length)for(this.Z&&this.Z===I[0]&&this.playback.UQ("sdai",{skipfail:1,sq:F,acpn:this.Z}),F=J+this.Kc(),M=0;M0?I:0}else this.O0().videoData.KW=this.playback.getCurrentTime()};g.z(Ln4,g.R);g.A=Ln4.prototype; g.A.Cn=function(F,J){J=J===void 0?"":J;if(this.timeline.T===J)return!0;var b=this.timeline.C,I=b==null?void 0:b.getVideoData();if(!b||!I)return this.api.UQ("ssap",{htsm:b?0:1}),!1;if(this.api.S("html5_ssap_clear_timeline_before_update")){var u=this.timeline,w;(w=u.C)==null||jC7(w);u.U.clear()}u=hd(b);var M=!1;w=[];var q=new Map;b=[];var v=[],a=0,e=0,K=0,p=[];F=g.N(F);for(var m=F.next();!m.done;m=F.next())a:{var y=void 0,f=void 0,d=m.value,G=d.clipId;if(G){if(d.Xn){K=d.Xn.E9||0;m=d.Xn.lZ||1;var P= Number(((d.Xn.P3||0)/(d.Xn.Rd||1)*1E3).toFixed(0));K=m=P+Number((K/m*1E3).toFixed(0))}else m=P=K,this.g5.has(G)||this.JD.add(G);var r=(f=q.get(G))!=null?f:0,Q=this.timeline.T;f=!1;if(Q&&this.api.S("html5_ssap_clear_timeline_before_update")){if(Q=this.iF.get(G))Q.start=P,Q.end=m,f=!0}else{if(Q){var D=G;Q=P;var t=m,n=r,uk=bm(this.timeline,D);if(uk!=null&&uk.length){n=q){this.zp.set(F,b);IKC(this,F,J);this.Fm.set(F,(0,g.jR)());if(b=this.iF.get(J))for(b=b.getId().split(","),b=g.N(b),M=b.next();!M.done;M=b.next())M=M.value,M!==J&&this.JD.has(M)&&(this.JD.delete(M),this.g5.add(M));this.g_();J=w.Ez()/1E3;w=void 0;b=(w=g.eB(this.api.J().experiments,"html5_ssap_skip_seeking_offset_ms"))!=null?w:0;this.api.S("html5_ssap_keep_media_on_finish_segment")?this.playback.seekTo(J+ b/1E3,{g$:!0}):this.playback.seekTo(J+b/1E3);this.OA?(this.api.UQ("ssap",{gpfreload:this.GF}),HZ7(this)||(this.OA=!1),this.playback.sV(!1,!1,this.api.S("html5_ssap_keep_media_on_finish_segment"))):I&&this.playback.sV(!1,!1,this.api.S("html5_ssap_keep_media_on_finish_segment"));u&&this.api.playVideo(1,this.api.S("html5_ssap_keep_media_on_finish_segment"));return[F]}}}return[]}; g.A.Lt=function(){var F=this.timeline.C;if(!F)return 0;var J=F.jo();F=g.N(F.C.values());for(var b=F.next();!b.done;b=F.next()){b=g.N(b.value);for(var I=b.next();!I.done;I=b.next())I=I.value,I.jo()>J&&(J=I.jo())}return J/1E3}; g.A.Ho=function(){var F=this.playback.getCurrentTime()*1E3;var J=Ala(this,F);if(!J){var b=bm(this.timeline,this.GF);if(b){b=g.N(b);for(var I=b.next();!I.done;I=b.next())I=I.value,I.Ez()>F&&(J=I)}}return J&&J.getType()===1?J.Ez()/1E3:0}; g.A.getVideoData=function(F){if(F===2&&!this.zc()){if(this.Ny&&this.xZ.has(this.Ny))return this.xZ.get(this.Ny);this.api.UQ("ssap",{lpanf:""+B0(this)});return null}return aKz(this)}; g.A.zc=function(){var F=bm(this.timeline,this.GF);return(F==null?0:F.length)?F[0].getType()===2:!1}; g.A.bA=function(){var F=bm(this.timeline,this.GF);return(F==null?0:F.length)?F[0].U:!1}; g.A.seekTo=function(F,J){J=J===void 0?{}:J;var b=qA3(this,this.playback.getCurrentTime());this.playback.seekTo(F+b/1E3,J)}; g.A.B$=function(F,J,b){return new g.b6(F,J,{id:b,namespace:"ssap",priority:9})}; g.A.onCueRangeEnter=function(F){if(!this.dS.has(F.getId())){this.api.UQ("ssap",{oce:1,cpn:F.getId(),st:F.start,et:F.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.Fb()||0).toFixed(3)});for(var J=F.getId().split(","),b=0;bb+1)for(I=b+1;I0?J:0}; g.A.kUz=function(F){var J=this.xZ.get(this.GF);J&&this.playback.Y1(F-J.xo/1E3,J.lengthSeconds,this.GF)}; g.A.X_=function(){this.api.J().hJ()&&this.api.UQ("ssap",{di:""+this.GF,dic:""+this.playback.getVideoData().clientPlaybackNonce});this.xZ.clear();this.JD.clear();this.dS.clear();this.zp.clear();this.Fm.clear();this.g5.clear();this.A7=[];ZZY(this);this.al="";g.Ve(this.events);g.R.prototype.X_.call(this)};g.z(gtz,g.R);g.A=gtz.prototype;g.A.onCueRangeEnter=function(F){if(this.C===this.app.F_()){var J=this.D.get(F);J?lKY(this,J.target,J.Pu,F):this.je("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:F.toString()})}else if(J=this.U.find(function(u){return u.vn.Os===F})){var b=J.vn,I=b.target; b=b.Pu;I?lKY(this,I,b,F):NnJ(this,J.Xd,b,F)}}; g.A.onQueuedVideoLoaded=function(){var F=this.V;az(this);if(F){if(!vh(this,F)){var J=this.app.F_();this.je("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:J==null?void 0:J.getVideoData().clientPlaybackNonce,ccpn:""+F.playerVars.cpn})}this.app.F_().addCueRange(F.vn.Os)}}; g.A.seekTo=function(F,J,b,I){F=F===void 0?0:F;J=J===void 0?{}:J;I=I===void 0?null:I;if(b===void 0?0:b)pbv(this,F,J);else{b=this.app.F_()||null;var u=b===this.Z?this.W:null;ee(this,!1);this.Tj=F;this.N=J;I!=null&&this.Y.start(I);b&&(this.W=u||b.getPlayerState(),b.MG(),this.Z=b)}}; g.A.hh=function(F){g.e1(F,128)&&j54(this)}; g.A.isManifestless=function(){return qb(this.C.getVideoData())}; g.A.X_=function(){ee(this,!1);VFo(this);g.R.prototype.X_.call(this)}; g.A.je=function(F,J){this.C.je(new E5(F,J))}; var m3m=0;var PZ7="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_FOR_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.z(gh,g.R);g.A=gh.prototype;g.A.get=function(F){Ke(this);var J=this.data.find(function(b){return b.key===F}); return J?J.value:null}; g.A.set=function(F,J,b){this.remove(F,!0);Ke(this);F={key:F,value:J,expire:Infinity};b&&isFinite(b)&&(b*=1E3,F.expire=(0,g.jR)()+b);for(this.data.push(F);this.data.length>this.T;)(b=this.data.shift())&&mW(this,b,!0);pe(this)}; g.A.remove=function(F,J){J=J===void 0?!1:J;var b=this.data.find(function(I){return I.key===F}); b&&(mW(this,b,J),g.Lz(this.data,function(I){return I.key===F}),pe(this))}; g.A.removeAll=function(F){if(F=F===void 0?!1:F)for(var J=g.N(this.data),b=J.next();!b.done;b=J.next())mW(this,b.value,F);this.data=[];pe(this)}; g.A.X_=function(){var F=this;g.R.prototype.X_.call(this);this.data.forEach(function(J){mW(F,J,!0)}); this.data=[]};g.z(yd,g.R);yd.prototype.bU=function(F){if(F)return this.U.get(F)}; yd.prototype.X_=function(){this.C.removeAll();this.U.removeAll();g.R.prototype.X_.call(this)};g.wo5=eP(function(){var F=window.AudioContext||window.webkitAudioContext;try{return new F}catch(J){return J.name}});g.z(YAa,g.U);g.A=YAa.prototype;g.A.EW=function(){g.wD(this.element,g.Ba.apply(0,arguments))}; g.A.rg=function(){this.UI&&(this.UI.removeEventListener("focus",this.Ds),g.ID(this.UI),this.UI=null)}; g.A.Uy=function(){this.iR();var F=this.app.J();F.OM||this.EW("tag-pool-enabled");F.W&&this.EW(g.QA.HOUSE_BRAND);F.playerStyle==="gvn"&&(this.EW("ytp-gvn"),this.element.style.backgroundColor="transparent");F.T1&&(this.JU=g.b0("yt-dom-content-change",this.resize,this));this.B(window,"orientationchange",this.resize,this);this.B(window,"resize",this.resize,this)}; g.A.GY=function(F){g.Pu(this.app.J());this.Sh=!F;iK(this)}; g.A.resize=function(){if(this.UI){var F=this.lk();if(!F.isEmpty()){var J=!g.mD(F,this.n_.getSize()),b=RIv(this);J&&(this.n_.width=F.width,this.n_.height=F.height);F=this.app.J();(b||J||F.T1)&&this.app.SE.publish("resize",this.getPlayerSize())}}}; g.A.xR=function(F,J){this.updateVideoData(J)}; g.A.updateVideoData=function(F){if(this.UI){var J=this.app.J();hY&&(this.UI.setAttribute("x-webkit-airplay","allow"),F.title?this.UI.setAttribute("title",F.title):this.UI.removeAttribute("title"));this.UI.setAttribute("controlslist","nodownload");J.Vc&&F.videoId&&(this.UI.poster=F.lr("default.jpg"))}J=g.Nb(F,"yt:bgcolor");this.N1.style.backgroundColor=J?J:"";this.hq=wm(g.Nb(F,"yt:stretch"));this.zq=wm(g.Nb(F,"yt:crop"),!0);g.qr(this.element,"ytp-dni",F.T0);this.resize()}; g.A.setGlobalCrop=function(F){this.DF=wm(F,!0);this.resize()}; g.A.setCenterCrop=function(F){this.ij=F;this.resize()}; g.A.wT=function(){}; g.A.getPlayerSize=function(){var F=this.app.J(),J=this.app.SE.isFullscreen(),b=F.externalFullscreen&&g.dN(F);if(J&&k6()&&!b)return new g.gl(window.outerWidth,window.outerHeight);b=!isNaN(this.gG.width)&&!isNaN(this.gG.height);var I=this.app.J().S("kevlar_player_enable_squeezeback_fullscreen_sizing");if(J&&!b&&I)return new g.gl(this.element.clientWidth,this.element.clientHeight);if(J||F.Sl){if(window.matchMedia){F="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.Kx&&this.Kx.media=== F||(this.Kx=window.matchMedia(F));var u=this.Kx&&this.Kx.matches}if(u)return new g.gl(window.innerWidth,window.innerHeight)}else if(b)return this.gG.clone();return new g.gl(this.element.clientWidth,this.element.clientHeight)}; g.A.lk=function(){var F=this.app.J().S("enable_desktop_player_underlay"),J=this.getPlayerSize(),b=g.eB(this.app.J().experiments,"player_underlay_min_player_width");return F&&this.DE&&J.width>b?(F=g.eB(this.app.J().experiments,"player_underlay_video_width_fraction"),new g.gl(Math.min(J.height*this.getVideoAspectRatio(),J.width*F),Math.min(J.height,J.width*F/this.getVideoAspectRatio()))):J}; g.A.getVideoAspectRatio=function(){return isNaN(this.hq)?CZ7(this):this.hq}; g.A.getVideoContentRect=function(F){var J=this.lk();F=Xb7(this,J,this.getVideoAspectRatio(),F);return new g.uu((J.width-F.width)/2,(J.height-F.height)/2,F.width,F.height)}; g.A.PQ=function(F){this.DE=F;this.resize()}; g.A.cz=function(){return this.HG}; g.A.onMutedAutoplayChange=function(){iK(this)}; g.A.setInternalSize=function(F){g.mD(this.gG,F)||(this.gG=F,this.resize())}; g.A.X_=function(){this.JU&&g.Iu(this.JU);this.rg();g.U.prototype.X_.call(this)};g.A=D3a.prototype;g.A.click=function(F,J){this.elements.has(F);this.C.has(F);var b=g.W8();b&&F.visualElement&&g.Jr(b,F.visualElement,J)}; g.A.createClientVe=function(F,J,b,I){var u=this;I=I===void 0?!1:I;this.elements.has(F);this.elements.add(F);b=Wua(b);F.visualElement=b;var w=g.W8(),M=g.fO();w&&M&&(g.Nk("combine_ve_grafts")?fa(N7(),b,M):g.tE(g.oO)(void 0,w,M,b));J.addOnDisposeCallback(function(){u.elements.has(F)&&u.destroyVe(F)}); I&&this.U.add(F)}; g.A.createServerVe=function(F,J,b){var I=this;b=b===void 0?!1:b;this.elements.has(F);this.elements.add(F);J.addOnDisposeCallback(function(){I.destroyVe(F)}); b&&this.U.add(F)}; g.A.destroyVe=function(F){this.elements.has(F);this.elements.delete(F);this.T.delete(F);this.C.delete(F);this.U.delete(F)}; g.A.vy=function(F,J){this.clientPlaybackNonce!==J&&(this.clientPlaybackNonce=J,lf(N7(),F),kYz(this))}; g.A.setTrackingParams=function(F,J){this.elements.has(F);J&&(F.visualElement=g.NY(J))}; g.A.wY=function(F,J,b){this.elements.has(F);J?this.C.add(F):this.C.delete(F);var I=g.W8(),u=F.visualElement;this.U.has(F)?I&&u&&(J?g.LO(I,[u]):g.FX(I,[u])):J&&!this.T.has(F)&&(I&&u&&g.H8(I,u,void 0,b),this.T.add(F))}; g.A.hasVe=function(F){return this.elements.has(F)};g.z(g.Np,g.R);g.Np.create=function(F,J,b,I){try{var u=typeof F==="string"?F:"player"+g.n3(F),w=Gz[u];if(w){try{w.dispose()}catch(q){g.Td(q)}Gz[u]=null}var M=new g.Np(F,J,b,I);M.addOnDisposeCallback(function(){Gz[u]=null;M.sf&&M.sf()}); return Gz[u]=M}catch(q){throw g.Td(q),(q&&q instanceof Error?q:Error(String(q))).stack;}}; g.A=g.Np.prototype;g.A.o6=function(){return this.visibility}; g.A.uM=function(F){var J=this.Nf();if(F!==J){F.getVideoData().autonavState=J.getVideoData().autonavState;J.TW(this.XQ,this);var b=J.getPlaybackRate();xU(J);this.z0.uM(F);F.setPlaybackRate(b);F.Sn(this.XQ,this);ntC(this)}}; g.A.n8=function(){this.mf||(this.mf=g.IW(SV(),vXz()));return this.mf}; g.A.rg=function(F){if(this.mediaElement){this.pX&&(this.events.iX(this.pX),this.pX=null);g.Ve(this.Qt);var J=this.F_();J&&J.rg(!0,!1,F);this.template.rg();try{this.S("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.bb()}catch(b){g.rQ(b)}this.mediaElement=null}}; g.A.LA=function(F,J){if(F!==this.F_()){this.logger.debug(function(){return"start set presenting player, type "+F.getPlayerType()+", vid "+F.getVideoData().videoId}); var b=null,I=this.F_();I&&(b=I.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),CV(this.HV,3),Du(this,"cuerangesremoved",I.Y4()),this.s2&&!F.isGapless()&&I.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),I=F.wZ()&&I.wZ(),this.qW.AG("iv_s"),wHG(this,I));F.getPlayerType()===1&&this.uM(F);uMa(this,F);this.z0.LA(F);this.mediaElement&&F.setMediaElement(this.mediaElement);F.Sn(this.Af,this);F.rC()?YIa(this,"setPresenting",!1):(this.xR("newdata",F,F.getVideoData()), b&&!g.MO(b,F.getPlayerState())&&this.jU(new g.vL(F.getPlayerState(),b)),J=J&&this.S("html5_player_preload_ad_fix")&&F.getPlayerType()===1,F.JQ()&&!J&&this.xR("dataloaded",F,F.getVideoData()),(J=(J=F.getVideoData().U)&&J.video)&&this.SE.SZ("onPlaybackQualityChange",J.quality),Du(this,"cuerangesadded",F.Y4()),J=F.getPlayerState(),g.x(J,2)?Ilz(this):g.x(J,8)?F.playVideo():F.DR()&&F.pauseVideo(),J=this.Nf(),F.getPlayerType()===2&&(F.getVideoData().AQ=J.getVideoData().clientPlaybackNonce),F.getPlayerType()!== 2||this.Uo()||(b=F.getVideoData(),J.Bl(b.clientPlaybackNonce,b.If||"",b.breakType||0,b.LF,b.videoId||"")),this.logger.debug("finish set presenting player"))}}; g.A.Hk=function(){if(this.Nf()!==this.F_()){var F=this.F_();this.logger.debug(function(){return"release presenting player, type "+(F==null?void 0:F.getPlayerType())+", vid "+(F==null?void 0:F.getVideoData().videoId)}); this.LA(this.Nf())}}; g.A.F4=function(F){if(F)if(F===1)F=this.Nf();else if(this.getVideoData().enableServerStitchedDai&&F===2)F=this.getVideoData().enablePreroll?this.z0.F4(2)||this.F_():this.F_();else if(g.oH(this.getVideoData())&&F===2){if(F=this.S("html5_ssap_return_content_player_during_preroll"))if(F=this.II)F=this.II,F=F.GF===""?!0:F.zc();F=F?this.F_():this.z0.F4(2)||this.F_()}else F=this.z0.F4(F)||null;else F=this.F_();return F}; g.A.Nf=function(){return this.z0.Nf()}; g.A.F_=function(){return this.z0.F_()}; g.A.v$=bk(44);g.A.jfQ=function(){je(this)||(this.logger.debug("application playback ready"),this.uJ(5))}; g.A.IyQ=function(F){if(!je(this)){this.logger.debug("playback ready");Tx3(this);var J=F.getPlayerState();F.DR()?this.pauseVideo():J.isOrWillBePlaying()&&this.playVideo()}}; g.A.canPlayType=function(F){return P4(F)}; g.A.J=function(){return this.rD}; g.A.getVideoData=function(){return this.F_().getVideoData()}; g.A.jP=bk(18);g.A.Yl=function(){return this.Nf().getVideoData()}; g.A.getVideoLoadedFraction=function(F){F=this.F4(F);return F?g.UW(F.getVideoData())?1:(F=F.Qa())?F.jN():0:0}; g.A.mG=function(){return this.template}; g.A.TF=function(){return this.HV}; g.A.Iu=function(){return this.qW}; g.A.Pp=function(F){var J=this.F4(1);J&&J.vk(F)}; g.A.w$=function(){var F=this.HV.w$();this.SE.publish("videoStatsPingCreated",F);return F}; g.A.getVolume=function(){return Math.round(this.SE.getVolume())}; g.A.isMuted=function(){return this.SE.isMuted()}; g.A.Pz=function(){if(this.Nf()===this.F_()&&this.AJ)return this.AJ.postId}; g.A.IeQ=function(){var F=this;this.S("use_rta_for_player")||(g.jB(this.rD)?g.LH(this.rD,g.ks(this.getVideoData())).then(function(J){sf(SV(),J);Wz_(F.getVideoData(),F.rD,F.n8())}):Wz_(this.getVideoData(),this.rD,this.n8()))}; g.A.Bp=function(F){this.SE.publish("poTokenVideoBindingChange",F)}; g.A.JM=function(F){this.SE.publish("d6de4videobindingchange",F)}; g.A.Am=function(){this.kC&&this.kC.Am()}; g.A.gm=function(F){this.kC=F}; g.A.Q_=function(F){if(F===1){this.qW.tick("vr");var J=this.F_();J.CV();orY(this.qW,J.getVideoData(),Bxz(this));T1a(this.HV)}J=this.rD;(tP(J)&&J.V||g.TB(J))&&(this.Uo()||this.SE.SZ("onAdStateChange",F))}; g.A.setLoopVideo=function(F){var J=this.F_();J===this.Nf()&&J.iS()!==F&&(J.setLoop(F),this.SE.jE("onLoopChange",F))}; g.A.getLoopVideo=function(){return this.F_().iS()}; g.A.setLoopRange=function(F){var J=!1;!!this.AJ!==!!F?J=!0:this.AJ&&F&&(J=this.AJ.startTimeMs!==F.startTimeMs||this.AJ.endTimeMs!==F.endTimeMs||this.AJ.postId!==F.postId||this.AJ.type!==F.type);if(J){(J=this.F_())&&LC(J.getVideoData())&&J.UQ("slr",{et:(F==null?void 0:F.endTimeMs)||-1});J=this.Nf();J.Yo("applooprange");if(F){var b=new g.b6(F.startTimeMs,F.endTimeMs,{id:"looprange",namespace:"applooprange"});J.addCueRange(b)}else{this.Yl().clipConfig=void 0;var I;((b=this.AJ)==null?void 0:b.type)!== "repeatChapter"||isNaN(Number((I=this.AJ)==null?void 0:I.loopCount))||(b={loopCount:String(this.AJ.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.AY("repeatChapterLoopEvent",b))}this.AJ=F;this.SE.jE("onLoopRangeChange",F||void 0);this.Nf()===this.F_()&&(this.eL(),J.wD.B5())}}; g.A.getLoopRange=function(){return this.AJ}; g.A.eL=function(){var F="",J=this.Nf();this.AJ?J!==this.F_()?F="pnea":pHY(this,J.getCurrentTime())&&(this.AJ.loopCount=0,F="ilr"):F="nlr";var b=this.F_();if(b&&LC(b.getVideoData()))if(this.S("html5_gapless_log_loop_range_info")){var I,u;b.UQ("slrre",{rej:F,ct:J.getCurrentTime(),lst:(I=this.AJ)==null?void 0:I.startTimeMs,let:(u=this.AJ)==null?void 0:u.endTimeMs})}else b.UQ("slrre",{});F||ihG(this)}; g.A.setPlaybackRate=function(F,J){if(!isNaN(F)){F=Lra(this,F);var b=this.Nf();b.getPlaybackRate()!==F&&(b.setPlaybackRate(F),J&&!this.rD.Z&&g.rm("yt-player-playback-rate",F),this.SE.SZ("onPlaybackRateChange",F))}}; g.A.getCurrentTime=function(F,J,b){J=J===void 0?!0:J;if(this.getPresentingPlayerType()===3)return dO(this.HV).getCurrentTime();var I=F===2&&this.getVideoData().enableServerStitchedDai,u=g.oH(this.getVideoData());F=I||u?this.F_():this.F4(F);if(!F)return 0;if(u&&this.II)return J=this.II,F=F.getCurrentTime(),b?b=Mp(J,b):(b=qA3(J,F),b=F-b/1E3),b;if(J){if(I&&this.jF&&(b=this.jF.kQ/1E3,b!==0))return b;b=EK(this,F);return sK(this,b.getCurrentTime(),b)}I&&this.jF?(b=this.jF,F=F.getCurrentTime(),b=(b=sC7(b, F*1E3))?F-b.start/1E3:F):b=F.getCurrentTime();return b}; g.A.aG=function(){var F=this.F4();if(!F)return 0;F=EK(this,F);return sK(this,F.aG(),F)}; g.A.getDuration=function(F,J){J=J===void 0?!0:J;var b=this.getVideoData(),I=F===2&&b.enableServerStitchedDai,u=g.oH(b);var w=I||u?this.F_():this.F4(F);if(!w)return 0;if(b.hasProgressBarBoundaries()&&!I&&!u){var M,q=Number((M=b.progressBarStartPosition)==null?void 0:M.utcTimeMillis),v;b=Number((v=b.progressBarEndPosition)==null?void 0:v.utcTimeMillis);if(!isNaN(q)&&!isNaN(b))return(b-q)/1E3}if(u&&this.II)return J=vtG(this.II,this.II.h4()),F===1&&J===0?w.getDuration():J;if(J)return w=dh(this,w),sK(this, w.getDuration(),w);I&&this.jF?(F=this.jF,w=w.getCurrentTime(),w=(w=YMk(F,w*1E3))?w.durationMs/1E3:0):w=w.getDuration();return w}; g.A.Ze=function(F){var J=this.F4(F);return J?this.Uo(J)?(J=dh(this,J),J.Ze()-J.getCurrentTime()+this.getCurrentTime(F)):J.Ze():0}; g.A.Ug=function(){return this.wf}; g.A.addPlayerResponseForAssociation=function(F){this.II&&this.II.addPlayerResponseForAssociation(F)}; g.A.finishSegmentByCpn=function(F,J,b){return this.II?this.II.finishSegmentByCpn(F,J,b):[]}; g.A.Uy=function(){this.template.Uy();var F=this.SE;F.state.element=this.template.element;var J=F.state.element,b;for(b in F.state.C)F.state.C.hasOwnProperty(b)&&(J[b]=F.state.C[b]);(F=QEm(this.template.element))&&this.events.B(this.template,F,this.onFullscreenChange);this.events.B(window,"resize",this.Eof)}; g.A.getDebugText=function(F){var J=this.Nf().Cy(F),b=this.F_(),I=this.Nf();if(b&&b!==I){b=b.Cy(F);I=g.N(Object.keys(b));for(var u=I.next();!u.done;u=I.next())u=u.value,J["ad"+u]=b[u];if(F){b=J;I={};if(u=Rf(document,"movie_player"))I.bounds=u.getBoundingClientRect(),I["class"]=u.className;u={};var w=g.c1("video-ads");w?(XHm(w,u),u.html=w.outerHTML):u.missing=1;w={};var M=g.c1("videoAdUiSkipContainer"),q=g.c1("ytp-ad-skip-button-container"),v=g.c1("ytp-skip-ad-button"),a=M||q||v;a?(XHm(a,w),w.ima=M? 1:0,w.bulleit=q?1:0,w.component=v?1:0):w.missing=1;I=JSON.stringify({player:I,videoAds:u,skipButton:w});b.ad_skipBtnDbgInfo=I}}F&&this.mediaElement&&(J["0sz"]=""+(+yj(this.mediaElement.getSize())===0),J.op=this.mediaElement.p5("opacity"),b=this.mediaElement.IG().y+this.mediaElement.getSize().height,J.yof=""+(+b<=0),J.dis=this.mediaElement.p5("display"));F&&((F=(0,g.rr)())&&(J.gpu=F),(F=this.rD.playerStyle)&&(J.ps=F),this.rD.zj&&(J.webview=1));J.debug_playbackQuality=this.SE.getPlaybackQuality(1); J.debug_date=(new Date).toString();J.origin=window.origin;J.timestamp=Date.now();delete J.uga;delete J.q;return JSON.stringify(J,null,2)}; g.A.getFeedbackProductData=function(){var F={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.J().experiments.experimentIds.join(", "),player_release:"youtube.player.web_20250218_01_RC00"},J=this.getPlayerStateObject().e6;J&&(F.player_error_code=J.errorCode,F.player_error_details=JSON.stringify(J.errorDetail));return F}; g.A.getPresentingPlayerType=function(F){if(this.appState===1)return 1;if(je(this))return 3;var J;if(F&&((J=this.jF)==null?0:J.zc(this.getCurrentTime())))return 2;var b;return g.oH(this.getVideoData())&&((b=this.II)==null?0:b.zc())?2:this.F_().getPlayerType()}; g.A.bA=function(){return g.oH(this.getVideoData())&&this.II?this.II.bA():!1}; g.A.getPlayerStateObject=function(F){return this.getPresentingPlayerType()===3?dO(this.HV).r0:this.F4(F).getPlayerState()}; g.A.getAppState=function(){return this.appState}; g.A.X8=function(F){switch(F.type){case "loadedmetadata":this.Co.start();F=g.N(this.UA);for(var J=F.next();!J.done;J=F.next())J=J.value,VG7(this,J.id,J.I4G,J.NqI,void 0,!1);this.UA=[];break;case "loadstart":this.qW.AG("gv");break;case "progress":case "timeupdate":qt(F.target.Z4())>=2&&this.qW.AG("l2s");break;case "playing":g.x2&&this.Co.start();if(g.jB(this.rD))F=!1;else{var b=this.F_();J=g.GP(this.TF());F=this.mediaElement.p5("display")==="none"||yj(this.mediaElement.getSize())===0;var I=z3(this.template), u=b.getVideoData();b=g.sV(this.rD);u=Fc(u);J=!I||J||b||u||this.rD.cN;F=F&&!J}F&&(F=this.F_(),F.Mj(),this.getVideoData().T1||(this.getVideoData().T1=1,this.ER(),F.playVideo()))}}; g.A.onLoadProgress=function(F,J){this.SE.IC("onLoadProgress",J)}; g.A.N9I=function(){this.SE.publish("playbackstalledatstart")}; g.A.Yc=function(F,J){this.SE.publish("sabrCaptionsDataLoaded",F,J)}; g.A.tFR=function(F){var J;(J=this.F_())==null||J.Tr(F)}; g.A.K1E=function(F){var J;(J=this.F_())==null||J.Uu(F)}; g.A.onVideoProgress=function(F,J){F=EK(this,F.P0);J=sK(this,F.getCurrentTime(),F);this.SE.SZ("onVideoProgress",J);this.S("html5_pip_visibility_on_resize")&&dzJ(this,this.visibility.JN())&&this.stopVideo()}; g.A.onAutoplayBlocked=function(){this.SE.SZ("onAutoplayBlocked");var F,J=(F=this.F_())==null?void 0:F.getVideoData();J&&(J.F8=!0);this.S("embeds_enable_autoplay_and_visibility_signals")&&g.dN(this.rD)&&(F={autoplayBrowserPolicy:Rx(),autoplayIntended:Do(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.AY("embedsAutoplayStatusChanged",F))}; g.A.udN=function(){this.SE.publish("progresssync")}; g.A.NYQ=function(){this.SE.IC("onPlaybackPauseAtStart")}; g.A.a7W=function(F){if(this.getPresentingPlayerType()===1){g.e1(F,1)&&!g.x(F.state,64)&&this.Yl().isLivePlayback&&this.Nf().isAtLiveHead()&&this.SE.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.e1(F,2)){if(this.AJ&&this.AJ.endTimeMs>=(this.getDuration()-1)*1E3){ihG(this);return}Ilz(this)}if(g.x(F.state,128)){var J=F.state;this.cancelPlayback(5);J=J.e6;JSON.stringify({errorData:J,debugInfo:this.getDebugText(!0)});this.SE.SZ("onError",Ypm(J.errorCode));this.SE.IC("onDetailedError",{errorCode:J.errorCode, errorDetail:J.errorDetail,message:J.errorMessage,messageKey:J.Ap,cpn:J.cpn});(0,g.jR)()-this.rD.K7>6048E5&&this.SE.IC("onReloadRequired")}J={};if(F.state.isPlaying()&&!F.state.isBuffering()&&!Dj("pbresume","ad_to_video")&&Dj("_start","ad_to_video")){var b=this.getVideoData();J.clientPlaybackNonce=b.clientPlaybackNonce;b.videoId&&(J.videoId=b.videoId);g.Qk(J,"ad_to_video");XH("pbresume",void 0,"ad_to_video");T1a(this.HV)}this.SE.publish("applicationplayerstatechange",F)}}; g.A.jU=function(F){this.getPresentingPlayerType()!==3&&this.SE.publish("presentingplayerstatechange",F)}; g.A.hh=function(F){Wh(this,qO(F.state));g.x(F.state,1024)&&this.SE.isMutedByMutedAutoplay()&&(rh(this,{muted:!1,volume:this.wg.volume},!1),Se(this,!1))}; g.A.wz=function(F,J,b){F==="newdata"&&ntC(this);this.SE.publish("applicationvideodatachange",F,b)}; g.A.dC=function(F,J){this.SE.IC("onPlaybackAudioChange",this.SE.getAudioTrack().j3.name);this.SE.publish("internalaudioformatchange",this.SE.getAudioTrack().j3.id,J)}; g.A.K_=function(F){var J=this.F_().getVideoData();F===J&&this.SE.SZ("onPlaybackQualityChange",F.U.video.quality)}; g.A.yW=function(){var F=this.z0.F4(2);if(F){var J=F.getVideoData();F=F.zA();var b;(b=this.F_())==null||b.UQ("ssdai",{cleanaply:1,acpn:J==null?void 0:J.clientPlaybackNonce,avid:J.videoId,ccpn:F,sccpn:this.Yl().clientPlaybackNonce===F?1:0,isDai:this.Yl().enableServerStitchedDai?1:0});delete this.z0.U[2]}}; g.A.onVideoDataChange=function(F,J,b){this.xR(F,J.P0,b)}; g.A.xR=function(F,J,b){this.logger.debug(function(){return"on video data change "+F+", player type "+J.getPlayerType()+", vid "+b.videoId}); this.rD.hJ()&&J.UQ("vdc",{type:F,vid:b.videoId||"",cpn:b.clientPlaybackNonce||""});J===this.Nf()&&(this.rD.pF=b.oauthToken);if(J===this.Nf()){this.getVideoData().enableServerStitchedDai&&!this.jF?(this.Nf().UQ("sdai",{initSstm:1}),this.jF=this.S("html5_enable_ssdai_transition_with_only_enter_cuerange")?new nx4(this.SE,this.rD,this.Nf(),this):new g.n9(this.SE,this.rD,this.Nf(),this)):!this.getVideoData().enableServerStitchedDai&&this.jF&&(this.jF.dispose(),this.jF=null);var I,u;!g.oH(this.getVideoData())|| F!=="newdata"&&F!=="dataloaded"||this.getVideoData().clientPlaybackNonce===((I=this.wf.C)==null?void 0:(u=I.getVideoData())==null?void 0:u.clientPlaybackNonce)?!g.oH(this.getVideoData())&&this.II&&(this.II.dispose(),this.II=null):(Wnm(this.wf),this.S("html5_ssap_cleanup_ad_player_on_new_data")&&this.yW(),I=U3(this.wf,1,0,this.getDuration(1)*1E3,this.getVideoData()),this.wf.enqueue(I,!0),cy(this.wf,0,this.getDuration(1)*1E3,[I]),dTk(this.wf,this.getVideoData().clientPlaybackNonce,[I]),this.II&&(this.II.dispose(), this.II=null),this.II=new Ln4(this.SE,this.wf,this.Nf()),this.z0.Nf().pQ(this.II))}if(F==="newdata")this.logger.debug("new video data, destroy modules"),CV(this.HV,2),this.SE.publish("videoplayerreset",J);else{if(!this.mediaElement)return;F==="dataloaded"&&(this.Nf()===this.F_()?($2(b.PN,b.Vr),vh_(this)):AOv(this));J.getPlayerType()===1&&(this.rD.dD&&Cla(this),this.getVideoData().isLivePlayback&&!this.rD.SD&&this.Wh("html5.unsupportedlive",2,"DEVICE_FALLBACK"),b.isLoaded()&&((hSa(b)||this.getVideoData().mY)&& this.SE.publish("legacyadtrackingpingchange",this.getVideoData()),b.hasProgressBarBoundaries()&&Nxk(this)));this.SE.publish("videodatachange",F,b,J.getPlayerType())}this.SE.SZ("onVideoDataChange",{type:F,playertype:J.getPlayerType()});this.eL();(I=b.Yn)?this.sT.vy(I,b.clientPlaybackNonce):kYz(this.sT)}; g.A.Kn=function(){Vd(this,null);this.SE.IC("onPlaylistUpdate")}; g.A.s8D=function(F){delete this.tB[F.getId()];this.Nf().removeCueRange(F);a:{F=this.getVideoData();var J,b,I,u,w,M,q,v,a,e,K=((J=F.dD)==null?void 0:(b=J.contents)==null?void 0:(I=b.singleColumnWatchNextResults)==null?void 0:(u=I.autoplay)==null?void 0:(w=u.autoplay)==null?void 0:w.sets)||((M=F.dD)==null?void 0:(q=M.contents)==null?void 0:(v=q.twoColumnWatchNextResults)==null?void 0:(a=v.autoplay)==null?void 0:(e=a.autoplay)==null?void 0:e.sets);if(K)for(J=g.N(K),b=J.next();!b.done;b=J.next())if(b= b.value,u=I=void 0,b=b.autoplayVideo||((I=b.autoplayVideoRenderer)==null?void 0:(u=I.autoplayEndpointRenderer)==null?void 0:u.endpoint),I=g.O(b,g.x$),w=u=void 0,b!=null&&((u=I)==null?void 0:u.videoId)===F.videoId&&((w=I)==null?0:w.continuePlayback)){F=b;break a}F=null}(J=g.O(F,g.x$))&&this.SE.jE("onPlayVideo",{sessionData:{autonav:"1",itct:F==null?void 0:F.clickTrackingParams},videoId:J.videoId,watchEndpoint:J})}; g.A.uJ=function(F){var J=this;F!==this.appState&&(this.logger.debug(function(){return"app state change "+J.appState+" -> "+F}),F===2&&this.getPresentingPlayerType()===1&&(Wh(this,-1),Wh(this,5)),this.appState=F,this.SE.publish("appstatechange",F))}; g.A.Wh=function(F,J,b,I,u){this.Nf().Je(F,J,b,I,u)}; g.A.Nb=function(F,J){this.Nf().handleError(new E5(F,J))}; g.A.isAtLiveHead=function(F,J){J=J===void 0?!1:J;var b=this.F4(F);if(!b)return!1;F=dh(this,b);b=EK(this,b);return F!==b?F.isAtLiveHead(sK(this,b.getCurrentTime(),b),!0):F.isAtLiveHead(void 0,J)}; g.A.mJ=function(){var F=this.F4();return F?dh(this,F).mJ():0}; g.A.seekTo=function(F,J,b,I,u){J=J!==!1;if(I=this.F4(I))this.appState===2&&Bh(this),this.Uo(I)?YN(this)?this.jF.seekTo(F,{seekSource:u},J,b):this.xl.seekTo(F,{seekSource:u},J,b):g.oH(this.getVideoData())&&this.II?this.II.seekTo(F,{o$:!J,ZK:b,Ky:"application",seekSource:u}):I.seekTo(F,{o$:!J,ZK:b,Ky:"application",seekSource:u})}; g.A.seekBy=function(F,J,b,I){this.seekTo(this.getCurrentTime()+F,J,b,I)}; g.A.hI=function(){this.SE.SZ("SEEK_COMPLETE")}; g.A.Ir=function(){this.SE.jE("onAbnormalityDetected")}; g.A.onSnackbarMessage=function(F){this.SE.jE("onSnackbarMessage",F)}; g.A.ooR=function(F,J){F=F.P0;var b=F.getVideoData();if(this.appState===1||this.appState===2)b.startSeconds=J;this.appState===2?g.x(F.getPlayerState(),512)||Bh(this):this.SE.SZ("SEEK_TO",J)}; g.A.onAirPlayActiveChange=function(){this.SE.publish("airplayactivechange");this.rD.S("html5_external_airplay_events")&&this.SE.IC("onAirPlayActiveChange",this.SE.Hh())}; g.A.onAirPlayAvailabilityChange=function(){this.SE.publish("airplayavailabilitychange");this.rD.S("html5_external_airplay_events")&&this.SE.IC("onAirPlayAvailabilityChange",this.SE.X7())}; g.A.showAirplayPicker=function(){var F;(F=this.F_())==null||F.Rv()}; g.A.TT=function(){this.SE.publish("beginseeking")}; g.A.Pv=function(){this.SE.publish("endseeking")}; g.A.getStoryboardFormat=function(F){return(F=this.F4(F))?dh(this,F).getVideoData().getStoryboardFormat():null}; g.A.Si=function(F){return(F=this.F4(F))?dh(this,F).getVideoData().Si():null}; g.A.Uo=function(F){F=F||this.F_();var J=!1;if(F){F=F.getVideoData();if(YN(this))F=F===this.jF.playback.getVideoData();else a:if(J=this.xl,F===J.C.getVideoData()&&J.U.length)F=!0;else{J=g.N(J.U);for(var b=J.next();!b.done;b=J.next())if(F.r9===b.value.r9){F=!0;break a}F=!1}J=F}return J}; g.A.AP=function(F,J,b,I,u,w,M){this.logger.debug(function(){return"Adding video to timeline id="+F.video_id+"\n lengthMs="+I+" enterTimeMs="+u}); var q="",v=YN(this),a;(a=this.F_())==null||a.UQ("appattl",{sstm:this.jF?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:v});q=v?SMo(this.jF,F,J,b,I,u,w,M):zI4(this.xl,F,b,I,u,w);this.logger.debug(function(){return"Video added to timeline id="+F.video_id+" timelinePlaybackId="+q}); return q}; g.A.UN=function(F,J,b,I,u,w,M){if(YN(this)){var q=SMo(this.jF,F,J,b,I,u,w,M);this.logger.debug(function(){return"Remaining video added to timeline id="+F.video_id+" timelinePlaybackId="+q})}return""}; g.A.Jx=function(F){var J;(J=this.jF)==null||J.Jx(F)}; g.A.pO=function(F,J){F=F===void 0?-1:F;J=J===void 0?Infinity:J;YN(this)||VFo(this.xl,F,J)}; g.A.y8=function(F,J,b){if(YN(this)){var I=this.jF,u=I.NW.get(F);u?(b===void 0&&(b=u.Xd),u.durationMs=J,u.Xd=b):I.AN("Invalid_timelinePlaybackId_"+F+"_specified")}else{I=this.xl;u=null;for(var w=g.N(I.U),M=w.next();!M.done;M=w.next())if(M=M.value,M.r9===F){u=M;break}u?(b===void 0&&(b=u.Xd),GYa(I,u,J,b)):AU(I,"InvalidTimelinePlaybackId timelinePlaybackId="+F)}}; g.A.enqueueVideoByPlayerVars=function(F,J,b,I){b=b===void 0?Infinity:b;I=I===void 0?"":I;this.Uo();F=new g.RH(this.rD,F);I&&(F.r9=I);llY(this,F,J,b)}; g.A.queueNextVideo=function(F,J,b,I,u){b=b===void 0?NaN:b;b=this.preloadVideoByPlayerVars(F,J===void 0?1:J,b,I===void 0?"":I,u===void 0?"":u);F=this.F_();b&&F&&(J=b.P0,this.S("html5_check_queue_on_data_loaded")?this.J().supportsGaplessShorts()&&F.getVideoData().Y&&(b=this.Nm,I=this.s2.V,b.Z!==J&&(b.U=F,b.Z=J,b.T=1,b.C=J.getVideoData(),b.D=I,b.C.isLoaded()?b.W():b.C.subscribe("dataloaded",b.W,b))):(J=Htz(F,J,this.s2.V),J!=null?(F.UQ("sgap",J),F.getVideoData().Y&&F.lA(!1)):(F=b.getVideoData(),J=this.Nm, J.C!==F&&(J.C=F,J.T=1,F.isLoaded()?J.V():J.C.subscribe("dataloaded",J.V,J)))))}; g.A.VY=function(F,J,b,I){var u=this;b=b===void 0?0:b;I=I===void 0?0:I;var w=this.F_();w&&dh(this,w).PA();a3m(this.s2,F,J,b,I).then(function(){u.SE.IC("onQueuedVideoLoaded")},function(){})}; g.A.W9=function(){return this.s2.W9()}; g.A.eI=function(F){return this.s2.C===F.P0}; g.A.clearQueue=function(F,J){F=F===void 0?!1:F;J=J===void 0?!1:J;this.logger.debug("Clearing queue");this.s2.clearQueue(F,J)}; g.A.loadVideoByPlayerVars=function(F,J,b,I,u,w){J=J===void 0?1:J;var M=this.Nf();if(J===2&&this.Yl().enableServerStitchedDai&&M&&!M.wK())return M.UQ("lvonss",{vid:(F==null?void 0:F.videoId)||"",ptype:J}),!1;var q=!1;M=new g.RH(this.rD,F);M.reloadPlaybackParams=w;g.U7(this.rD)&&!M.NJ&&WU(this.qW);var v;w=this.qW;var a=(v=M.zj)!=null?v:"";w.timerName=a;this.qW.QJ("pl_i");this.S("web_player_early_cpn")&&M.clientPlaybackNonce&&this.qW.infoGel({clientPlaybackNonce:M.clientPlaybackNonce});if(zGa(M).supportsVp9Encoding=== !1){var e;(e=this.F_())==null||e.UQ("noVp9",{})}if(this.J().supportsGaplessShorts()){v=Kn3(this.s2,M,J);if(v==null){Wh(this,-1);F=this.s2;F.app.J().S("html5_gapless_new_slr")?mz_(F.app,"gaplessshortslooprange"):F.app.setLoopRange(null);F.app.getVideoData().GS=!0;var K;(K=F.C)==null||K.YB();var p;(p=F.C)!=null&&om(p.wD.zF());b={Ky:"gapless_to_next_video",seekSource:60};var m;(m=F.app.F_())==null||m.seekTo(e93(F),b);if(!F.app.getPlayerStateObject(J).isPlaying()){var y;(y=F.app.F_())==null||y.playVideo(!0)}F.W(); return!0}m=this.S("html5_shorts_gapless_preload_fallback");y=this.s2.C;m&&y&&!y.wD.iR()&&(K=y.getVideoData(),K=this.rD.S("html5_autonav_autoplay_in_preload_key")?Ce(this,J,K):Xf(this,J,K.videoId,K.r9),this.z0.C.set(K,y,3600));this.s2.clearQueue(m);var f;(f=this.F_())==null||f.UQ("sgap",{f:v})}if(u){for(;M.bB.length&&M.bB[0].isExpired();)M.bB.shift();q=M.bB.length-1;q=q>0&&u.U(M.bB[q])&&u.U(M.bB[q-1]);M.bB.push(u)}b||(F&&xHv(F)?(k2(this.rD)&&!this.FY&&(F.fetch=0),Vd(this,F)):this.playlist&&Vd(this, null),F&&(this.FY=JC(!1,F.external_list)));this.SE.publish("loadvideo");J=this.Ml(M,J,I);q&&this.Wh("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+M.bB.join()).replace(/[;:,]/g,"_"));return J}; g.A.preloadVideoByPlayerVars=function(F,J,b,I,u){J=J===void 0?1:J;b=b===void 0?NaN:b;I=I===void 0?"":I;u=u===void 0?"":u;var w="";if(this.rD.S("html5_autonav_autoplay_in_preload_key"))w=WvY(this,J,F,u);else{var M=M1(F);w=Xf(this,J,M,u)}if(this.z0.C.get(w))return this.logger.debug(function(){return"already preloaded "+w}),null; F=new g.RH(this.rD,F);u&&(F.r9=u);return flz(this,F,J,b,I)}; g.A.setMinimized=function(F){this.visibility.setMinimized(F);(F=sQv(this.HV))&&(this.isMinimized()?F.load():F.unload());this.SE.publish("minimized")}; g.A.setInline=function(F){this.visibility.setInline(F)}; g.A.setInlinePreview=function(F){this.visibility.setInline(F)}; g.A.mU=function(F){Ehv(this,F)||this.visibility.mU(F)}; g.A.setSqueezeback=function(F){this.visibility.setSqueezeback(F)}; g.A.Wy=function(){var F,J=(F=this.mediaElement)==null?void 0:F.Pb();J&&((this.S("html5_disable_pip_with_standard_api")||this.S("html5_pip_visibility_on_resize"))&&document.exitFullscreen().catch(function(){}),i8(J).catch(function(b){g.rQ(b)}))}; g.A.F1Q=function(){this.mediaElement.Pb();this.mediaElement.Pb().webkitPresentationMode==="picture-in-picture"?this.mU(!0):this.mU(!1)}; g.A.togglePictureInPicture=function(){var F=this.F_();F&&F.togglePictureInPicture()}; g.A.Ml=function(F,J,b){J=J===void 0?1:J;this.logger.debug(function(){return"start load video, id "+F.videoId+", type "+J}); Dj("_start",this.qW.timerName)||g.tE(Tp)(void 0,this.qW.timerName);var I=!1,u=Kvk(this,J,F,!1);u?(I=!0,F.dispose()):(u=MGo(this,J,F,b).P0,(this.S("html5_onesie")||this.S("html5_load_before_stop"))&&u.J2()&&u.PE(),this.Co.stop(),J===1&&J!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,J),this.LA(u));u===this.Nf()&&(this.rD.pF=F.oauthToken);if(!u.J2())return!1;if(u===this.Nf())return this.uJ(1),b=Bh(this),I&&this.S("html5_player_preload_ad_fix")&&u.getPlayerType()===1&& u.JQ()&&this.xR("dataloaded",u,u.getVideoData()),b;u.Df();return!0}; g.A.cueVideoByPlayerVars=function(F,J){var b=this;J=J===void 0?1:J;var I=this.Nf();if(this.Yl().enableServerStitchedDai&&I&&!I.wK()&&F&&Object.keys(F).length>0)I.UQ("qvonss",{vid:(F==null?void 0:F.videoId)||"",ptype:J});else if(F&&xHv(F))if(this.fB=!0,Vd(this,F),(F=g.dA(this.playlist))&&F.o8())Rz(this,F,J);else this.playlist.onReady(function(){Ph(b)}); else{J||(J=this.getPresentingPlayerType());J===1&&this.Kn();I=new g.RH(this.rD,F);var u=g.dN(this.rD)&&!this.rD.eE&&J===1&&!I.isAd()&&!I.If;this.SE.publish("cuevideo");u?(this.F_().getVideoData().loading=!0,Jd_(I,F?F:{}).then(function(w){Rz(b,w,J)}),I.dispose()):Rz(this,I,J)}}; g.A.yp=function(F,J,b,I,u,w,M){if(!F&&!b)throw Error("Playback source is invalid");if(j8(this.rD)||g.dX(this.rD))return J=J||{},J.lact=dP(),J.vis=this.SE.getVisibilityState(),this.SE.jE("onPlayVideo",{videoId:F,watchEndpoint:w,sessionData:J,listId:b}),!1;cqk(this.qW);this.qW.reset();F={video_id:F};I&&(F.autoplay="1");I&&(F.autonav="1");w&&(F.player_params=w.playerParams);M&&(F.oauth_token=M);b?(F.list=b,this.loadPlaylist(F)):this.loadVideoByPlayerVars(F,1);return!0}; g.A.cuePlaylist=function(F,J,b,I){this.fB=!0;j_z(this,F,J,b,I)}; g.A.loadPlaylist=function(F,J,b,I){this.fB=!1;j_z(this,F,J,b,I)}; g.A.im=function(){return this.SE.isMutedByMutedAutoplay()?!1:this.getPresentingPlayerType()===3?!0:!(!this.playlist||!this.playlist.FI())}; g.A.jy=bk(13); g.A.nextVideo=function(F,J){var b=g.nC(this.Nf().getVideoData());g.Bp(this.SE)&&b?this.yp(b.videoId,J?b.U5:b.sessionData,b.playlistId,J,void 0,b.TD||void 0):this.FY?this.SE.IC("onPlaylistNext"):this.getPresentingPlayerType()===3?dO(this.HV).nextVideo():!this.playlist||k2(this.rD)&&!this.SE.isFullscreen()||(this.playlist.FI(F)&&Zn4(this.playlist,nrG(this.playlist)),this.playlist.loaded?(F=J&&this.rD.S("html5_player_autonav_logging"),J&&this.SE.publish("playlistautonextvideo"),this.Ml(g.dA(this.playlist,void 0, J,F),1)):this.fB=!1)}; g.A.previousVideo=function(F){this.FY?this.SE.IC("onPlaylistPrevious"):this.getPresentingPlayerType()===3?dO(this.HV).hB():!this.playlist||k2(this.rD)&&!this.SE.isFullscreen()||(this.playlist.Q5(F)&&Zn4(this.playlist,tcJ(this.playlist)),this.playlist.loaded?this.Ml(g.dA(this.playlist),1):this.fB=!1)}; g.A.playVideoAt=function(F){this.FY?this.SE.IC("onPlaylistIndex",F):this.playlist&&(this.playlist.loaded?this.Ml(g.dA(this.playlist,F),1):this.fB=!1,Zn4(this.playlist,F))}; g.A.getPlaylist=function(){return this.playlist}; g.A.xg=bk(23);g.A.yJG=function(F){this.SE.SZ("onCueRangeEnter",F.getId())}; g.A.pb_=function(F){this.SE.SZ("onCueRangeExit",F.getId())}; g.A.VE=function(){var F=g.Y0(this.TF());F&&F.VE()}; g.A.dO=function(F,J,b){var I=this.F4(J);if(I){var u=this.Yl();if(g.oH(u)){if(this.II)if(this.S("html5_ssap_enable_cpn_triggered_media_end")&&I.getPlayerType()===2&&this.II.zc()&&(I=this.Nf()),J===1)for(var w=V5(this.II,u.clientPlaybackNonce),M=g.N(F),q=M.next();!q.done;q=M.next())q=q.value,q.start+=w,q.end+=w,q.ac=w,q.T=u.clientPlaybackNonce;else if(this.S("html5_ssap_enable_cpn_triggered_media_end")&&J===2)for(this.getPresentingPlayerType(),u=g.N(F),w=u.next();!w.done;w=u.next())w.value.T=this.II.h4(); u=g.N(F);for(w=u.next();!w.done;w=u.next())M=void 0,w.value.playerType=(M=J)!=null?M:1}I.dO(F,b);J&&this.getPresentingPlayerType()!==J||Du(this,"cuerangesadded",F)}}; g.A.hc=function(F,J){var b=this.F4(J);b&&(b.hc(F),J&&this.getPresentingPlayerType()!==J||Du(this,"cuerangesremoved",F))}; g.A.ey=function(F){var J=this.F_()||this.Nf(),b=this.getPresentingPlayerType();return this.S("html5_ssap_enable_cpn_triggered_media_end")?J.ey(b,F):J.ey(b)}; g.A.nm_=function(){function F(){var I=J.screenLayer||(J.isMinimized()?3:0),u=g.W8(I);if(u&&u!=="UNDEFINED_CSN"){var w=J.rD.S("web_player_attach_player_response_ve"),M=J.rD.S("web_playback_associated_ve");I={cpn:J.getVideoData().clientPlaybackNonce,csn:u};J.getVideoData().WN&&(w||M)&&(w=g.NY(J.getVideoData().WN),g.H8(u,w),M&&(I.playbackVe=w.getAsJson()));J.getVideoData().queueInfo&&(I.queueInfo=J.getVideoData().queueInfo);u={};J.S("web_playback_associated_log_ctt")&&J.getVideoData().W&&(u.cttAuthInfo= {token:J.getVideoData().W,videoId:J.getVideoData().videoId});g.AY("playbackAssociated",I,u)}else g.rQ(new g.hC("CSN Missing or undefined during playback association"))} var J=this,b=this.F_();this.getPresentingPlayerType();orY(this.qW,b.getVideoData(),Bxz(this));G3(this)&&this.rD.Z&&$s(this.Yl())==="embedded"&&this.QR&&Math.random()<.01&&g.AY("autoplayTriggered",{intentional:this.intentionalPlayback});this.QR=!1;T1a(this.HV);this.S("web_player_defer_ad")&&qIm(this);this.SE.IC("onPlaybackStartExternal");(this.rD.S("mweb_client_log_screen_associated"),CH(this.rD))||F();b={};this.getVideoData().W&&(b.cttAuthInfo={token:this.getVideoData().W,videoId:this.getVideoData().videoId}); b.sampleRate=20;Rr("player_att",b);if(this.getVideoData().botguardData||this.S("fetch_att_independently"))g.hP(this.rD)||cG(this.rD)==="MWEB"?g.tC(g.HK(),function(){T3(J)}):T3(this); this.eL();yOa(this);this.S("embeds_enable_autoplay_and_visibility_signals")&&g.dN(this.rD)&&(b={autoplayBrowserPolicy:Rx(),autoplayIntended:Do(this.getVideoData()),autoplayStatus:TXv(this.getVideoData(),1),cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.AY("embedsAutoplayStatusChanged",b))}; g.A.ID=function(){this.SE.publish("internalAbandon");$N(this)}; g.A.onApiChange=function(){var F=this.F_();this.rD.V&&F?this.SE.SZ("onApiChange",F.getPlayerType()):this.SE.SZ("onApiChange")}; g.A.vlD=function(){var F=this.mediaElement;F={volume:g.AD(Math.floor(F.getVolume()*100),0,100),muted:F.rl()};F.muted||Se(this,!1);this.wg=g.To(F);this.SE.SZ("onVolumeChange",F)}; g.A.mutedAutoplay=function(F){var J=this.getVideoData().videoId;isNaN(this.hE)&&(this.hE=this.getVideoData().startSeconds);if(!this.S("embeds_enable_full_length_inline_muted_autoplay"))J&&(this.loadVideoByPlayerVars({video_id:J,playmuted:!0,start:this.hE}),this.SE.IC("onMutedAutoplayStarts"));else if((F==null?0:F.videoId)||J)this.loadVideoByPlayerVars({video_id:(F==null?0:F.videoId)?F==null?void 0:F.videoId:J,playmuted:!0,start:this.hE,muted_autoplay_duration_mode:F==null?void 0:F.durationMode}), this.SE.IC("onMutedAutoplayStarts")}; g.A.onFullscreenChange=function(){var F=rO7(this);this.wT(F?1:0);s_C(this,!!F)}; g.A.wT=function(F){var J=!!F,b=!!this.SP()!==J;this.visibility.wT(F);this.template.wT(J);this.S("html5_media_fullscreen")&&!J&&this.mediaElement&&rO7(this)===this.mediaElement.Pb()&&this.mediaElement.X5();this.template.resize();b&&this.qW.tick("fsc");b&&(this.SE.publish("fullscreentoggled",J),F=this.Yl(),J={fullscreen:J,videoId:F.P$||F.videoId,time:this.getCurrentTime()},this.SE.getPlaylistId()&&(J.listId=this.SE.getPlaylistId()),this.SE.SZ("onFullscreenChange",J))}; g.A.tO=function(){return this.visibility.tO()}; g.A.isFullscreen=function(){return this.visibility.isFullscreen()}; g.A.SP=function(){return this.visibility.SP()}; g.A.Eof=function(){if(this.F_()){var F=window.screen.width*window.screen.height,J=window.outerHeight*window.outerWidth;this.S("html5_disable_pip_with_standard_api")&&(this.EF=Math.max(this.EF,F,J));var b=this.SP();b!==0&&b!==1||this.wT(rO7(this)?1:0);this.S("html5_pip_visibility_on_resize")?(F=J/this.EF<.33,this.visibility.mU(F),Ehv(this,F)):this.S("html5_disable_pip_with_standard_api")?this.mU(J/F<.33):this.mediaElement&&dzJ(this,J/F<.33)&&this.mediaElement.X5()}}; g.A.VeQ=function(F){this.getPresentingPlayerType()!==3&&this.SE.publish("liveviewshift",F)}; g.A.playVideo=function(F,J){this.logger.debug(function(){return"play video, player type "+F}); var b=this.F4(F);b&&(this.appState===2?(g.U7(this.rD)&&WU(this.qW),Bh(this)):g.x(b.getPlayerState(),2)?(J=36,this.getVideoData().yM()&&(J=37),this.seekTo(0,void 0,void 0,void 0,J)):b.playVideo(!1,J))}; g.A.pauseVideo=function(F,J){(F=this.F4(F))&&F.pauseVideo(J)}; g.A.stopVideo=function(F){F=F===void 0?!1:F;this.logger.debug(function(){return"stop video"}); var J=this.Nf().getVideoData(),b=new g.RH(this.rD,{video_id:J.P$||J.videoId,oauth_token:J.oauthToken});b.N=g.To(J.N);var I;!F||(I=this.webPlayerContextConfig)!=null&&I.disableStaleness||(b.Q1=!0);this.cancelPlayback(6);Rz(this,b,1)}; g.A.cancelPlayback=function(F,J){var b=this;this.logger.debug(function(){return"start cancel playback, type "+J}); var I=this.F4(J);I?J===2&&I.getPlayerType()===1&&(Aca(this.Yl())||g.oH(this.getVideoData()))?I.UQ("canclpb",{r:"no_adpb_ssdai"}):(this.rD.hJ()&&I.UQ("canclpb",{r:F}),this.appState===1||this.appState===2?this.logger.debug(function(){return"cancel playback end, app not started, state "+b.appState}):(I===this.F_()&&(this.logger.debug("cancel playback, destroy modules"),CV(this.HV,F)),J===1&&(I.stopVideo(),$N(this)),I.Cc(void 0,F!==6),Du(this,"cuerangesremoved",I.Y4()),I.wD.f8.reset(),this.s2&&I.isGapless()&& (I.rg(!0),I.setMediaElement(this.mediaElement)))):this.logger.debug("cancel playback end, no player to cancel")}; g.A.sendVideoStatsEngageEvent=function(F,J,b){(J=this.F4(J))&&IMC(this.rD,F)?J.sendVideoStatsEngageEvent(F,b):b&&b()}; g.A.C8=function(F){var J=this.F4();return J&&IMC(this.rD,F)?J.C8(F):null}; g.A.updatePlaylist=function(){!k2(this.rD)&&g.dN(this.rD)&&alk(this);this.SE.IC("onPlaylistUpdate")}; g.A.setSizeStyle=function(F,J){this.q7=F;this.S("web_log_theater_mode_visibility")?this.Wp(J):this.u5=J;this.SE.publish("sizestylechange",F,J);this.template.resize()}; g.A.Wp=function(F){this.visibility.Wp(F)}; g.A.tD=function(){return this.S("web_log_theater_mode_visibility")?this.visibility.tD():this.u5}; g.A.isMinimized=function(){return this.visibility.isMinimized()}; g.A.isInline=function(){return this.visibility.isInline()}; g.A.JN=function(){return this.visibility.JN()}; g.A.n$=function(){return this.visibility.n$()}; g.A.I9=function(){return this.visibility.I9()}; g.A.Xt=function(){return this.q7}; g.A.getAdState=function(){if(this.getPresentingPlayerType()===3)return dO(this.HV).getAdState();if(!this.Uo()){var F=XN(this.TF());if(F)return F.getAdState()}return-1}; g.A.MFR=function(F){var J=this.template.getVideoContentRect();qB(this.Rb,J)||(this.Rb=J,(J=this.F_())&&J.Z$(),(J=this.Nf())&&J===this.F_()&&J.Z$(),this.SP()===1&&this.Ry&&s_C(this,!0));this.Aq&&g.mD(this.Aq,F)||(this.SE.publish("appresize",F),this.Aq=F)}; g.A.hX=function(){return this.SE.hX()}; g.A.agQ=function(){this.getPresentingPlayerType()===2&&this.xl.isManifestless()?j54(this.xl):(this.jF&&($T_(this.jF),$N(this)),YIa(this,"signature"))}; g.A.qsE=function(F){F&&YIa(this,"reloadPlayerEvent",void 0,F)}; g.A.ER=function(F){this.rg(F);fe(this)}; g.A.jC_=function(F){if(F.errorCode==="manifest.net.badstatus"){var J=this.rD.experiments.pW("html5_use_network_error_code_enums")?401:"401";F.details.rc===J&&this.SE.jE("onPlayerRequestAuthFailed")}}; g.A.Nq=function(F){this.SE.publish("heartbeatparams",F)}; g.A.LZ=function(F){this.SE.jE("onAutonavChangeRequest",F!==1)}; g.A.Qa=function(){return this.mediaElement}; g.A.setBlackout=function(F){if(this.rD.cN!==F){this.rD.cN=F;var J=this.F_();J&&(J.wD.B5(),this.rD.dD&&Cla(this),J.rT(F))}}; g.A.ayN=function(){var F=this.F_();if(F){var J=!this.SE.G9();F.qT(J)}}; g.A.onLoadedMetadata=function(){this.SE.IC("onLoadedMetadata")}; g.A.onDrmOutputRestricted=function(){this.SE.IC("onDrmOutputRestricted")}; g.A.Rq=function(){this.intentionalPlayback=!0}; g.A.X_=function(){this.HV.dispose();this.Nr.dispose();this.xl.dispose();this.jF&&this.jF.dispose();this.wf.removeAll();this.wf.dispose();this.II&&this.II.dispose();xU(this.Nf());this.rg();this.z0.dispose();g.vk(this.playlist);g.R.prototype.X_.call(this)}; g.A.S=function(F){return this.rD.S(F)}; g.A.setScreenLayer=function(F){this.screenLayer=F}; g.A.getInternalApi=function(){return this.SE.getInternalApi()}; g.A.createSubtitlesModuleIfNeeded=function(){return this.HV.createSubtitlesModuleIfNeeded()}; g.A.isOrchestrationLeader=function(){var F=Rs(this.HV);return F?F.isOrchestrationLeader():!1}; g.A.getVideoUrl=function(F,J,b,I,u){if(this.AJ&&this.AJ.postId)return F=this.rD.getVideoUrl(F),F=cj(F,"v"),F.replace("/watch","/clip/"+this.AJ.postId);var w=this.SE.isEmbedsShortsMode()||this.rD.WN==="shortspage",M=g.HE(this.getVideoData());return this.rD.getVideoUrl(F,J,b,I,u,w,M)}; g.A.Rs=function(){return this.s2.Rs()}; g.A.Y3=function(F,J,b){this.SE.publish("spsumpreject",F,J,b)}; g.A.mR=function(){try{for(var F=g.N(Object.values(this.z0.U)),J=F.next();!J.done;J=F.next()){var b=J.value;b.wD.iR()||b.mR()}if(this.S("html5_sabr_fetch_on_idle_network_preloaded_players"))for(var I=g.N(Tn4(this.z0.C)),u=I.next();!u.done;u=I.next()){var w=u.value;w.wD.iR()||w.mR()}this.Nf().mR()}catch(M){g.rQ(M)}}; g.A.xq=function(){if(this.jF){var F=(0,g.jR)();return this.jF.xq(F)}return!1}; g.A.oK=function(F){var J=this.Nf();F&&(J=Q_a(this,F));if(J){var b=J.getVideoData();F=new Map;b=g.N(b.sabrContextUpdates);for(var I=b.next();!I.done;I=b.next()){var u=g.N(I.value);I=u.next().value;u=u.next().value;var w,M;if(M=u.scope===4)(w=J)==null?w=0:(M=void 0,w=!((M=w.wD.Zv)==null||!M.T.hD.has(I))),M=w;M&&F.set(I,u)}return F}this.Nf().UQ("scuget",{ncpf:"1",ccpn:F})}; var Gz={};var MDU={D_:[{qb:/Unable to load player module/,weight:20},{qb:/Failed to fetch/,weight:500},{qb:/XHR API fetch failed/,weight:10},{qb:/JSON parsing failed after XHR fetch/,weight:10},{qb:/Retrying OnePlatform request/,weight:10},{qb:/CSN Missing or undefined during playback association/,weight:100},{qb:/Non-recoverable error. Do not retry./,weight:0},{qb:/Internal Error. Retry with an exponential backoff./,weight:0},{qb:/API disabled by application./,weight:0}],Jg:[{callback:R3_,weight:500}]};var Lvv=/[&\?]action_proxy=1/,Hhm=/[&\?]token=([\w-]*)/,Flk=/[&\?]video_id=([\w-]*)/,JTk=/[&\?]index=([\d-]*)/,bNz=/[&\?]m_pos_ms=([\d-]*)/,ugv=/[&\?]vvt=([\w-]*)/,oh_="ca_type dt el flash u_tz u_his u_h u_w u_ah u_aw u_cd u_nplug u_nmime frm u_java bc bih biw brdim vis wgl".split(" "),IEv="www.youtube-nocookie.com youtube-nocookie.com www.youtube-nocookie.com:443 youtube.googleapis.com www.youtubeedu.com www.youtubeeducation.com video.google.com redirector.gvt1.com".split(" "),Uzk={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"},xzY={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},tG3={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};oz.prototype.XT=function(F){this.player.Iu().tick(F)}; oz.prototype.fetch=function(F,J){var b=this;if(!F.match(/\[BISCOTTI_ID\]/g))return this.U(F,J);var I=this.C===1;I&&this.XT("a_bid_s");var u=kO4();if(u!==null)return I&&this.XT("a_bid_f"),this.U(F,J,u);u=OhY();I&&Nf(u,function(){b.XT("a_bid_f")}); return u.then(function(w){return b.U(F,J,w)})}; oz.prototype.U=function(F,J,b){var I=this,u=J===void 0?{}:J;J=u.SN;var w=u.Os;var M=u.cueProcessedMs;b=b===void 0?"":b;var q=this.player.getVideoData(1);u=this.player.J().jm;var v=0;if(M&&w&&!J){var a=w.end-w.start;a>0&&(v=Math.floor(a/1E3))}v=J?J.Bg:v;var e={AD_BLOCK:this.C++,AD_BREAK_LENGTH:v,AUTONAV_STATE:OK(this.player.J()),CA_TYPE:"image",CPN:q.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.mJ()*1E3,LACT:dP(),LIVE_INDEX:J?this.T++:1,LIVE_TARGETING_CONTEXT:J&&J.context?J.context:"",MIDROLL_POS:w? Math.round(w.start/1E3):0,MIDROLL_POS_MS:w?Math.round(w.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.mG().lk().height,P_W:this.player.mG().lk().width,YT_REMOTE:u?u.join(","):""},K=vx(qk);Object.keys(K).forEach(function(m){K[m]!=null&&(e[m.toUpperCase()]=K[m].toString())}); b!==""&&(e.BISCOTTI_ID=b);b={};AR(F)&&(b.sts="20138",(J=this.player.J().forcedExperiments)&&(b.forced_experiments=J));var p=ui(g.TM(F,e),b);return p.split("?").length!==2?i5(Error("Invalid AdBreakInfo URL")):g.LH(this.player.J(),q==null?void 0:q.oauthToken).then(function(m){if(m&&Mk()){var y=SV();sf(y,m)}m=I.player.n8(y);y=wD4(I,p,e,q.isMdxPlayback,M);return g.cf(m,y,"/youtubei/v1/player/ad_break").then(function(f){return f})})}; oz.prototype.reset=function(){this.T=this.C=1};g.z(MHa,oz); MHa.prototype.U=function(F,J,b){J=J===void 0?{}:J;var I=J.SN;var u=J.Os;var w=J.cueProcessedMs;b=b===void 0?"":b;J=this.C;this.C++;var M=this.player.J().S("h5_disable_macro_substitution_in_get_ad_break")?F:ATa(this,F,{SN:I,Os:u,cueProcessedMs:w},b,J);if(M.split("?").length!==2)return Math.random()<.1&&g.rQ(Error("Invalid AdBreakInfo URL")),i5(Error("Invalid AdBreakInfo URL"));var q=this.player.getVideoData(1).isMdxPlayback,v=b;b=Hhm.exec(M);b=b!=null&&b.length>=2?b[1]:"";F=Lvv.test(M);var a=Flk.exec(M); a=a!=null&&a.length>=2?a[1]:"";var e=JTk.exec(M);e=e!=null&&e.length>=2&&!Number.isNaN(Number(e[1]))?Number(e[1]):1;var K=bNz.exec(M);K=K!=null&&K.length>=2?K[1]:"0";var p=Y2(this.player.J().ME),m=g.UV(this.player.getVideoData(1).WN,!0);cOm(this,m,M,v===""?"":v,this.player.J(),this.player.getVideoData(1));v={splay:!1,lactMilliseconds:String(dP()),playerHeightPixels:Math.trunc(this.player.mG().lk().height),playerWidthPixels:Math.trunc(this.player.mG().lk().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20138,autonavState:OK(this.player.J())};if(q){q={};var y=this.player.J().jm;nhz(q,y?y.join(","):"")&&(v.mdxContext=q)}if(q=IEv.includes(p)?void 0:g.$6("PREF")){y=q.split(RegExp("[:&]"));for(var f=0,d=y.length;f1&&G[1].toUpperCase()==="TRUE"){m.user.lockedSafetyMode=!0;break}}v.autoCaptionsDefaultOn=Zh3(q)}M=ugv.exec(M);(M=M!=null&&M.length>=2?M[1]:"")&&a&&(m.user.credentialTransferTokens= [{token:M,scope:"VIDEO"}]);M={contentPlaybackContext:v};v=this.player.getVideoData(1).getGetAdBreakContext();q=this.player.getVideoData(1).clientPlaybackNonce;y=w!==void 0?Math.round(w).toString():void 0;f=(I==null?0:I.context)?I.context:void 0;d=0;w&&u&&!I&&(u=u.end-u.start,u>0&&(d=Math.floor(u/1E3)));I=(I=Math.trunc((I?I.Bg:d)*1E3))?String(I):void 0;u=this.player.mJ()*1E3;u=Number.isNaN(u)?0:Math.trunc(u);J={adBlock:J,params:b,breakIndex:e,breakPositionMs:K,clientPlaybackNonce:q,topLevelDomain:p, isProxyAdTagRequest:F,context:m,overridePlaybackContext:M,cueProcessedMs:y,videoId:a?a:void 0,liveTargetingParams:f,breakLengthMs:I,driftFromHeadMs:u?String(u):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:v?v:void 0};return q8G(this,J)};var Axm={wuR:"replaceUrlMacros",fW_:"onAboutThisAdPopupClosed",q2I:"executeCommand"};vwv.prototype.LN=function(){return"adPingingEndpoint"}; vwv.prototype.Th=function(F,J,b){ONz(this.EQ.get(),F,J,b)};aEm.prototype.LN=function(){return"changeEngagementPanelVisibilityAction"}; aEm.prototype.Th=function(F){this.G.jE("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:F})};eVz.prototype.LN=function(){return"loggingUrls"}; eVz.prototype.Th=function(F,J,b){F=g.N(F);for(var I=F.next();!I.done;I=F.next())I=I.value,ONz(this.EQ.get(),I.baseUrl,J,b,I.attributionSrcMode)};g.z(pDz,g.R);g.z(ch,g.R);g.A=ch.prototype;g.A.addListener=function(F){this.listeners.push(F)}; g.A.removeListener=function(F){this.listeners=this.listeners.filter(function(J){return J!==F})}; g.A.a6=function(F,J,b,I,u,w,M,q){if(F==="")q_("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(F!==this.C||b){this.C=F;this.OQ.get().a6(F,J,b,I,u,w,M,q);this.QG.get().a6(F,J,b,I,u,w,M,q);var v;(v=this.cV)==null||v.get().a6(F,J,b,I,u,w,M,q);this.U.a6(F,J,b,I,u,w,M,q);v=g.N(this.listeners);for(var a=v.next();!a.done;a=v.next())a.value.a6(F,J,b,I,u,w,M,q)}else q_("Duplicate content video loaded signal")}; g.A.ID=function(){this.C&&this.mW(this.C)}; g.A.mW=function(F){this.C=void 0;for(var J=g.N(this.listeners),b=J.next();!b.done;b=J.next())b.value.mW(F)};UK.prototype.j9=function(F,J,b,I,u){gwz(this);this.D=!J&&b===0;var w=this.G.getVideoData(1),M=this.G.getVideoData(2);w&&(this.contentCpn=w.clientPlaybackNonce,this.videoId=w.videoId,this.C=w.W);M&&(this.adCpn=M.clientPlaybackNonce,this.adVideoId=M.videoId,this.adFormat=M.adFormat);this.Z=F;I<=0?(gwz(this),this.D=!J&&b===0):(this.actionType=this.D?J?"unknown_type":"video_to_ad":J?"ad_to_video":"ad_to_ad",this.videoStreamType=u?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.T=!0,Dj("_start",this.actionType)&&iNk(this)))}; UK.prototype.reset=function(){return new UK(this.G)};g.z(xN,g.R);xN.prototype.addCueRange=function(F,J,b,I,u,w,M){w=w===void 0?3:w;M=M===void 0?1:M;this.C.has(F)?q_("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:F}):(F=new zV4(F,J,b,I,w),this.C.set(F.id,{Os:F,listener:u,Fa:M}),this.G.TU([F],M))}; xN.prototype.removeCueRange=function(F){var J=this.C.get(F);J?(this.G.L4([J.Os],J.Fa),this.C.delete(J.Os.id)):q_("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:F})}; xN.prototype.onCueRangeEnter=function(F){if(this.C.has(F.id))this.C.get(F.id).listener.onCueRangeEnter(F.id)}; xN.prototype.onCueRangeExit=function(F){if(this.C.has(F.id))this.C.get(F.id).listener.onCueRangeExit(F.id)}; g.z(zV4,g.b6);ne.prototype.Q_=function(F){this.G.Q_(F)}; ne.prototype.t3=function(F){var J=g.Ba.apply(1,arguments);F==="onAdStart"||F==="onAdEnd"?this.G.SZ.apply(this.G,[F].concat(g.W(J))):this.G.jE.apply(this.G,[F].concat(g.W(J)))};tU.prototype.f7=function(F){return F&&Zu(this)};var VHk=null;g.z(GH3,g.uA);GH3.prototype.nt=function(F){return this.C.hasOwnProperty(F)?this.C[F].nt():{}}; g.RG("ytads.bulleit.getVideoMetadata",function(F){return Hh().nt(F)}); g.RG("ytads.bulleit.triggerExternalActivityEvent",function(F,J,b){var I=Hh();b=jvv(b);b!==null&&I.publish(b,{queryId:F,viewabilityString:J})});g.A=Le.prototype;g.A.RQ=function(F,J){if(!this.C.has(F))return{};if(J==="seek"){J=this.G.J().S("html5_dai_enable_active_view_creating_completed_adblock");J=J===void 0?!1:J;var b=VF(f8).PH(F,{});b?fq(b):J&&(F=VF(f8).zM(null,cY(),!1,F),F.vS=3,cN_([F]));return{}}J=Bv3(J);if(J===null)return{};var I=this.G.I3();if(!I)return{};var u=this.G.getPresentingPlayerType(!0);if((b=this.G.getVideoData(u))==null||!b.isAd())return{};b={opt_adElement:I,opt_fullscreen:this.OQ.get().isFullscreen()};return chJ(J,F,b)}; g.A.Ei=function(F,J,b,I,u){this.C.has(F)&&(I<=0||u<=0||VF(f8).Ei(F,J,b,I,u))}; g.A.rM=function(F){var J;(J=this.C.get(F.queryId))==null||J.rM()}; g.A.I7=function(F){var J;(J=this.C.get(F.queryId))==null||J.I7()}; g.A.CQ=function(F){var J;(J=this.C.get(F.queryId))==null||J.CQ()}; g.A.LB=function(F){var J;(J=this.C.get(F.queryId))==null||J.LB()}; g.A.NO=function(F){var J;(J=this.C.get(F.queryId))==null||J.NO()};XD4.prototype.send=function(F,J,b,I){try{QvJ(this,F,J,b,I===void 0?!1:I)}catch(u){}};g.z(RVo,XD4);DAa.prototype.send=function(F,J,b,I){var u=!1;try{if(I==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||I==="ATTRIBUTION_SRC_MODE_XHR_OPTION")u=!0,F=eyz(F);I=u;var w=F.match(YV);if(w[1]==="https")var M=F;else w[1]="https",M=Bj("https",w[2],w[3],w[4],w[5],w[6],w[7]);var q=wcG(M);w=[];var v=t7o(M)&&this.uR.get().G.J().experiments.pW("add_auth_headers_to_remarketing_google_dot_com_ping");if(AR(M)||v)w.push({headerType:"USER_AUTH"}),w.push({headerType:"PLUS_PAGE_ID"}),w.push({headerType:"VISITOR_ID"}),w.push({headerType:"EOM_VISITOR_ID"}), w.push({headerType:"AUTH_USER"}),w.push({headerType:"DATASYNC_ID"});this.C.send({baseUrl:M,scrubReferrer:q,headers:w},J,b,I)}catch(a){}};uY.prototype.C8=function(){return this.G.C8(1)};g.z(w6,g.R);g.A=w6.prototype;g.A.Vd=function(){return this.G.getVideoData(1).clientPlaybackNonce}; g.A.addListener=function(F){this.listeners.push(F)}; g.A.removeListener=function(F){this.listeners=this.listeners.filter(function(J){return J!==F})}; g.A.a6=function(){this.r4.clear();this.D5=null;this.CP.get().clear()}; g.A.mW=function(){}; g.A.PxG=function(F,J,b,I,u){J.videoId==="nPpU29QrbiU"&&this.G.UQ("ads_ssm_vdc_s",{pt:b,dvt:F});mz(this.uR.get())&&F!=="dataloaded"||tH7(this,J,b);if(Zu(this.uR.get())&&F==="newdata"&&u!==void 0){F=this.Vd();var w=J.clientPlaybackNonce,M={};NM(this,"rte",(M.ec=w,M.xc=I==null?void 0:I.clientPlaybackNonce,M.tr=u,M.pt=b,M.ia=w!==F,M.ctp=zj(w),M));J=J.clientPlaybackNonce;I=I==null?void 0:I.clientPlaybackNonce;u=ZNz(u);if(u!==1)if(I!==void 0)for(b=g.N(this.listeners),F=b.next();!F.done;F=b.next())F.value.cq(I, J,u);else q_("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:J,transitionReason:String(u)});u=g.N(this.listeners);for(I=u.next();!I.done;I=u.next())I.value.mX(J)}}; g.A.JFN=function(F,J){F!==void 0&&(this.D5=F,J===void 0?q_("Expected ad video start time on SS video changed"):this.r4.set(F,J));var b=this.G.getPresentingPlayerType(!0),I=this.G.getVideoData(b);this.G.getVideoData(1).UQ("ads_ssvc",{pt:b,cpn:I==null?void 0:I.clientPlaybackNonce,crtt:this.G.getCurrentTime(1,!1),atlh:this.G.isAtLiveHead(),adstt:J});I?tH7(this,I,b):q_("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.G.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:F})}; g.A.b_=function(F,J){var b=F.author,I=F.clientPlaybackNonce,u=F.isListed,w=F.r9,M=F.title,q=F.iq,v=F.I6,a=F.isMdxPlayback,e=F.kZ,K=F.mdxEnvironment,p=F.isAutonav,m=F.dK,y=F.NJ,f=F.Ta,d=F.videoId||"",G=F.profilePicture||"",P=F.uB||"",r=F.yM()||!1,Q=F.vV()||!1;F=F.lK||void 0;w=this.CP.get().C.get(w)||{layoutId:null,slotId:null};var D=this.G.getVideoData(1),t=D.MW();D=D.getPlayerResponse();J=1E3*this.G.getDuration(J);var n=1E3*this.G.getDuration(1),uk,AJ,F7=(D==null?void 0:(uk=D.playerConfig)==null? void 0:(AJ=uk.daiConfig)==null?void 0:AJ.enableDai)||!1,h,L;uk=(D==null?void 0:(h=D.playerConfig)==null?void 0:(L=h.daiConfig)==null?void 0:L.enablePreroll)||!1;return Object.assign({},w,{videoId:d,author:b,clientPlaybackNonce:I,Xk:J,tN:n,daiEnabled:F7,yg:uk,isListed:u,MW:t,profilePicture:G,title:M,uB:P,iq:q,I6:v,lK:F,isMdxPlayback:a,kZ:e,mdxEnvironment:K,isAutonav:p,dK:m,NJ:y,Ta:f,yM:r,vV:Q})}; g.A.X_=function(){this.listeners.length=0;this.Hm=null;g.R.prototype.X_.call(this)};g.z(Mi,g.R);g.A=Mi.prototype;g.A.a6=function(){var F=this;Zu(this.uR.get())||(this.C=Ku(function(){F.G.iR()||F.G.d6("ad",1)}))}; g.A.mW=function(){}; g.A.addListener=function(F){this.listeners.push(F)}; g.A.removeListener=function(F){this.listeners=this.listeners.filter(function(J){return J!==F})}; g.A.XB=function(){}; g.A.playVideo=function(){this.G.playVideo()}; g.A.pauseVideo=function(){this.G.pauseVideo()}; g.A.resumeVideo=function(F){this.ZX(F)&&this.G.playVideo()}; g.A.ZX=function(F){return this.G.getPlayerState(F)===2}; g.A.getCurrentTimeSec=function(F,J,b){var I=this.QG.get().D5;if(F===2&&!J&&I!==null)return LlC(this,I);Un(this.uR.get(),"html5_ssap_use_cpn_to_get_time")||(b=void 0);return b!==void 0?this.G.getCurrentTime(F,J,b):this.G.getCurrentTime(F,J)}; g.A.getVolume=function(){return this.G.getVolume()}; g.A.isMuted=function(){return this.G.isMuted()}; g.A.getPresentingPlayerType=function(){return this.G.getPresentingPlayerType(!0)}; g.A.getPlayerState=function(F){return this.G.getPlayerState(F)}; g.A.isFullscreen=function(){return this.G.isFullscreen()}; g.A.isAtLiveHead=function(){return this.G.isAtLiveHead()}; g.A.PQ=function(F){this.G.PQ(F)}; g.A.G$G=function(){var F=this.G.getPresentingPlayerType(!0),J=this.getCurrentTimeSec(F,!1);if(F===2){F=g.N(this.listeners);for(var b=F.next();!b.done;b=F.next())b.value.mP(J)}else if(F===1)for(F=g.N(this.xN),b=F.next();!b.done;b=F.next())b.value.XB(J)}; g.A.CC_=function(F){for(var J=g.N(this.listeners),b=J.next();!b.done;b=J.next())b.value.jT(F,this.getPresentingPlayerType())}; g.A.onFullscreenToggled=function(F){for(var J=g.N(this.listeners),b=J.next();!b.done;b=J.next())b.value.onFullscreenToggled(F)}; g.A.onVolumeChange=function(){for(var F=g.N(this.listeners),J=F.next();!J.done;J=F.next())J.value.onVolumeChange()}; g.A.Kv=function(){for(var F=this.G.isMinimized(),J=g.N(this.listeners),b=J.next();!b.done;b=J.next())b.value.Kv(F)}; g.A.bq=function(F){for(var J=g.N(this.listeners),b=J.next();!b.done;b=J.next())b.value.bq(F)}; g.A.mO=function(){for(var F=this.G.mG().lk(),J=g.N(this.listeners),b=J.next();!b.done;b=J.next())b.value.OJ(F)}; g.A.nF=function(F){for(var J=g.N(this.listeners),b=J.next();!b.done;b=J.next())b.value.nF(F)}; g.A.c9=function(){for(var F=g.N(this.listeners),J=F.next();!J.done;J=F.next())J.value.c9()};g.z(bya,g.R);g.z(eU,g.R);eU.prototype.X_=function(){this.Gf.iR()||this.Gf.get().removeListener(this);g.R.prototype.X_.call(this)};KR.prototype.fetch=function(F){var J=F.rU;return this.C.fetch(F.iW,{SN:F.SN===void 0?void 0:F.SN,Os:J,cueProcessedMs:F.cueProcessedMs===void 0?0:F.cueProcessedMs}).then(function(b){return I2a(b,J)})};g.z(pR,g.R);g.A=pR.prototype;g.A.addListener=function(F){this.listeners.push(F)}; g.A.removeListener=function(F){this.listeners=this.listeners.filter(function(J){return J!==F})}; g.A.Mm=function(F){uOC(this,F,1)}; g.A.onAdUxClicked=function(F,J){g6(this,function(b){b.Oo(F,J)})}; g.A.C9=function(F){g6(this,function(J){J.Mt(F)})}; g.A.rz=function(F){g6(this,function(J){J.fb(F)})}; g.A.vmz=function(F){g6(this,function(J){J.qy(F)})};mJ.prototype.reduce=function(F){switch(F.event){case "unknown":return}var J=F.identifier;var b=this.C[J];b?J=b:(b={JP:null,gi:-Infinity},J=this.C[J]=b);b=F.startSecs+F.C/1E3;if(!(b=this.C.startSecs&&b.startSecs<=this.C.startSecs+this.C.Bg)){var I=void 0;Ew_(this.uR.get())&&b.identifier!==((I=this.C)==null?void 0:I.identifier)&& Lx(this.EQ.get(),"ocud","cpi."+b.identifier+";cpe."+b.event+";cps."+b.startSecs+";");I=void 0;b.identifier!==((I=this.C)==null?void 0:I.identifier)&&q_("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.C=b,A4k(this,b)}}; g.A.X_=function(){this.U!=null&&(this.U.unsubscribe("cuepointupdated",this.GT,this),this.U=null);this.listeners.length=0;this.KX.length=0;g.R.prototype.X_.call(this)};iY.prototype.addPlayerResponseForAssociation=function(F){this.G.addPlayerResponseForAssociation(F)};g.A=Ni.prototype;g.A.AP=function(F,J,b,I,u,w,M){return this.G.AP(F,J,b,I,u,w,M)}; g.A.pO=function(F,J){this.G.pO(F,J)}; g.A.y8=function(F,J,b){this.G.y8(F,J,b)}; g.A.Jx=function(F){this.G.Jx(F)}; g.A.UN=function(F,J,b,I,u,w,M){this.G.UN(F,J,b,I,u,w,M)}; g.A.l1=function(F){return this.G.l1(F)}; g.A.finishSegmentByCpn=function(F,J,b){b=ejm(b);this.G.finishSegmentByCpn(F,J,b)};g.z(pwG,g.R);g.z(gH3,g.R);g.z(moG,g.R);g.z(y4C,g.R);g.z(iy4,g.R);g.z(NW7,g.R);NW7.prototype.T=function(){return this.U};g.z(l2z,R4); l2z.prototype.Z=function(F){var J=F.content;if(J.componentType==="shopping-companion")switch(F.actionType){case 1:case 2:F=this.C.getVideoData(1);this.C.jE("updateKevlarOrC3Companion",{contentVideoId:F&&F.videoId,shoppingCompanionCarouselRenderer:J.renderer,layoutId:J.layoutId,macros:J.macros,onLayoutVisibleCallback:J.C,interactionLoggingClientData:J.interactionLoggingClientData});break;case 3:this.C.jE("updateKevlarOrC3Companion",{})}else if(J.componentType==="action-companion")switch(F.actionType){case 1:case 2:F=this.C.getVideoData(1); this.C.jE("updateKevlarOrC3Companion",{contentVideoId:F&&F.videoId,actionCompanionAdRenderer:J.renderer,layoutId:J.layoutId,macros:J.macros,onLayoutVisibleCallback:J.C,interactionLoggingClientData:J.interactionLoggingClientData});break;case 3:J.renderer&&(J=this.C.getVideoData(1),this.C.jE("updateKevlarOrC3Companion",{contentVideoId:J&&J.videoId})),this.C.jE("updateKevlarOrC3Companion",{})}else if(J.componentType==="image-companion")switch(F.actionType){case 1:case 2:F=this.C.getVideoData(1);this.C.jE("updateKevlarOrC3Companion", {contentVideoId:F&&F.videoId,imageCompanionAdRenderer:J.renderer,layoutId:J.layoutId,macros:J.macros,onLayoutVisibleCallback:J.C,interactionLoggingClientData:J.interactionLoggingClientData});break;case 3:J=this.C.getVideoData(1),this.C.jE("updateKevlarOrC3Companion",{contentVideoId:J&&J.videoId}),this.C.jE("updateKevlarOrC3Companion",{})}else if(J.componentType==="top-banner-image-text-icon-buttoned")switch(F.actionType){case 1:case 2:F=this.C.getVideoData(1);this.C.jE("updateKevlarOrC3Companion", {contentVideoId:F&&F.videoId,topBannerImageTextIconButtonedLayoutViewModel:J.renderer,layoutId:J.layoutId,macros:J.macros,onLayoutVisibleCallback:J.C,interactionLoggingClientData:J.interactionLoggingClientData});break;case 3:J.renderer&&(J=this.C.getVideoData(1),this.C.jE("updateKevlarOrC3Companion",{contentVideoId:J&&J.videoId})),this.C.jE("updateKevlarOrC3Companion",{})}else if(J.componentType==="banner-image")switch(F.actionType){case 1:case 2:F=this.C.getVideoData(1);this.C.jE("updateKevlarOrC3Companion", {contentVideoId:F&&F.videoId,bannerImageLayoutViewModel:J.renderer,layoutId:J.layoutId,macros:J.macros,onLayoutVisibleCallback:J.C,interactionLoggingClientData:J.interactionLoggingClientData});break;case 3:J=this.C.getVideoData(1),this.C.jE("updateKevlarOrC3Companion",{contentVideoId:J&&J.videoId}),this.C.jE("updateKevlarOrC3Companion",{})}else if(J.componentType==="ads-engagement-panel")switch(J=J.renderer,F.actionType){case 1:case 2:this.C.jE("updateEngagementPanelAction",J.addAction);this.C.jE("changeEngagementPanelVisibility", J.expandAction);break;case 3:this.C.jE("changeEngagementPanelVisibility",J.hideAction),this.C.jE("updateEngagementPanelAction",J.removeAction)}else if(J.componentType==="ads-engagement-panel-layout"){var b=J.renderer;switch(F.actionType){case 1:case 2:this.C.jE("updateEngagementPanelAction",{action:$W(b.addAction),layoutId:J.layoutId,onLayoutVisibleCallback:J.C,interactionLoggingClientData:J.interactionLoggingClientData});this.C.jE("changeEngagementPanelVisibility",$W(b.expandAction));break;case 3:this.C.jE("changeEngagementPanelVisibility", $W(b.hideAction)),this.C.jE("updateEngagementPanelAction",{action:$W(b.removeAction)})}}};g.z(f2z,xS);g.A=f2z.prototype;g.A.init=function(F,J,b){xS.prototype.init.call(this,F,J,b);g.aN(this.T,"stroke-dasharray","0 "+this.U);this.T.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.W.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.Z.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.A.clear=function(){this.hide()}; g.A.hide=function(){tr(this);xS.prototype.hide.call(this)}; g.A.show=function(){nr(this);xS.prototype.show.call(this)}; g.A.Cj=function(){this.hide()}; g.A.Nh=function(){if(this.C){var F=this.C.getProgressState();F!=null&&F.current!=null&&g.aN(this.T,"stroke-dasharray",F.current/F.seekableEnd*this.U+" "+this.U)}};g.z(Wmo,a4);g.A=Wmo.prototype; g.A.init=function(F,J,b){a4.prototype.init.call(this,F,J,b);if(J.image&&J.image.thumbnail)if(J.headline)if(J.description)if(J.backgroundImage&&J.backgroundImage.thumbnail)if(J.actionButton&&g.O(J.actionButton,g.TX))if(F=J.durationMilliseconds||0,typeof F!=="number"||F<=0)g.Td(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+F));else if(J.navigationEndpoint){var I=this.api.getVideoData(2);if(I!=null){var u=J.image.thumbnail.thumbnails;u!=null&& u.length>0&&g.d5(g.Zi(u[0].url))&&(u[0].url=I.profilePicture,g.d5(g.Zi(I.profilePicture))&&Fp7("VideoPlayer",239976093,"Expected non-empty profile picture."));u=J.backgroundImage.thumbnail.thumbnails;u!=null&&u.length>0&&g.d5(g.Zi(u[0].url))&&(u[0].url=I.lr());u=J.headline;u!=null&&g.d5(g.Zi(u.text))&&(u.text=I.author)}this.N.init(bA("ad-image"),J.image,b);this.W.init(bA("ad-text"),J.headline,b);this.T.init(bA("ad-text"),J.description,b);this.KW.init(bA("ad-image"),J.backgroundImage,b);I=["ytp-ad-action-interstitial-action-button", "ytp-ad-action-interstitial-action-button-rounded"];this.slot.classList.add("ytp-ad-action-interstitial-slot-dark-background");this.W.element.classList.add("ytp-ad-action-interstitial-headline-light");this.T.element.classList.add("ytp-ad-action-interstitial-description-light");I.push("ytp-ad-action-interstitial-action-button-dark");this.api.J().U&&(I.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),I.push("ytp-ad-action-interstitial-action-button-dark"));this.api.J().S("enable_unified_action_endcap_on_web")&& !this.api.J().U&&(I.push("ytp-ad-action-interstitial-action-button-unified"),this.oI.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.N.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.nW.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.aH.classList.add("ytp-ad-action-interstitial-card-unified"),this.eE.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.T.element.classList.add("ytp-ad-action-interstitial-description-unified"), this.WN.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.W.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.qf.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.dD.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new Pi(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,I);g.k(this,this.actionButton);this.actionButton.Az(this.oI); this.actionButton.init(bA("button"),g.O(J.actionButton,g.TX),b);OY(this.actionButton.element);I=cQ(this.actionButton.element);hy(this.actionButton.element,I+" This link opens in new tab");this.navigationEndpoint=J.navigationEndpoint;this.Z.B(this.qf,"click",this.Oy,this);this.Z.B(this.eE,"click",this.Oy,this);!this.api.J().S("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.J().U||this.Z.B(this.WN,"click",this.Oy,this);this.C=this.HA?new zg(this.api,F):new N_(F);g.k(this,this.C);if(J.skipButton){(F= g.O(J.skipButton,fHV))&&this.C&&(this.skipButton=new K0(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,this.C,this.qm),g.k(this,this.skipButton),this.skipButton.Az(this.element),this.skipButton.init(bA("skip-button"),F,b));b=this.api.S("disable_ad_preview_for_instream_ads");if(F=J.adBadgeRenderer)if(F=g.O(F,lHb))I=new ym(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,!0,b),I.Az(this.dD),I.init(bA("simple-ad-badge"),F,this.macros),g.k(this,I);if(F=J.adInfoRenderer)if(F= g.O(F,PF))b=new hr(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,this.element,void 0,b),b.Az(this.dD),b.init(bA("ad-info-hover-text-button"),F,this.macros),g.k(this,b)}else J.nonskippableOverlayRenderer&&(F=g.O(J.nonskippableOverlayRenderer,BF))&&this.C&&(this.U=new Lr(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,this.C,!1),g.k(this,this.U),this.U.Az(this.element),this.U.init(bA("ad-preview"),F,b));J.countdownRenderer&&(J=J.countdownRenderer,g.O(J,WRW)&&this.C&& (b=new f2z(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,this.C),g.k(this,b),b.Az(this.element),b.init(bA("timed-pie-countdown"),g.O(J,WRW),this.macros)));this.show();this.element.focus()}else g.Td(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.Td(Error("AdActionInterstitialRenderer has no button."));else g.Td(Error("AdActionInterstitialRenderer has no background AdImage."));else g.Td(Error("AdActionInterstitialRenderer has no description AdText."));else g.Td(Error("AdActionInterstitialRenderer has no headline AdText.")); else g.Td(Error("AdActionInterstitialRenderer has no image."))}; g.A.clear=function(){g.Ve(this.Z);this.hide()}; g.A.show=function(){do_(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.U&&this.U.show();a4.prototype.show.call(this)}; g.A.hide=function(){do_(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.U&&this.U.hide();a4.prototype.hide.call(this)}; g.A.Oy=function(){this.navigationEndpoint&&(this.layoutId?this.vN.executeCommand(this.navigationEndpoint,this.layoutId):g.Td(Error("Missing layoutId for ad action interstitial.")))};var Pna={iconType:"CLOSE"},d6=new g.gl(320,63);g.z(VCC,a4);g.A=VCC.prototype; g.A.init=function(F,J,b){a4.prototype.init.call(this,F,J,b);this.Z=J;this.N=g.JL(this.Z.onClickCommands||[]);this.dD=this.Z.onErrorCommand||null;if(F=this.Z.contentSupportedRenderer)F=this.Z.contentSupportedRenderer,J=this.Z.adInfoRenderer||null,g.O(F,izR)?(this.W=g.c1("ytp-ad-overlay-ad-info-button-container",this.T.element),BWz(this,J),F=r4C(this,g.O(F,izR))):g.O(F,ztW)?(this.W=g.c1("ytp-ad-overlay-ad-info-button-container",this.U.element),BWz(this,J),F=S2_(this,g.O(F,ztW))):g.O(F,N5b)?(this.W= g.c1("ytp-ad-overlay-ad-info-button-container",this.C.element),BWz(this,J),F=s$C(this,g.O(F,N5b))):(g.Td(Error("InvideoOverlayAdRenderer content could not be initialized.")),F=!1);F&&(this.show(),Y2o(this,!0))}; g.A.clear=function(){Y2o(this,!1);this.qf.reset();this.eE=0;this.T.hide();this.logVisibility(this.T.element,!1);this.U.hide();this.logVisibility(this.U.element,!1);this.C.hide();this.logVisibility(this.C.element,!1);this.hide();this.dispose()}; g.A.w1G=function(){this.oI&&(this.layoutId?this.vN.executeCommand(this.oI,this.layoutId):g.Td(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.A.JZ=function(){a:{if(this.Z&&this.Z.closeButton&&this.Z.closeButton.buttonRenderer){var F=this.Z.closeButton.buttonRenderer;if(F.serviceEndpoint){F=[F.serviceEndpoint];break a}}F=[]}F=g.N(F);for(var J=F.next();!J.done;J=F.next())J=J.value,this.layoutId?this.vN.executeCommand(J,this.layoutId):g.Td(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.A.FOW=function(){this.KW||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.A.x3=function(){this.KW||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.x3("invideo-overlay")}; g.A.BwI=function(F){F.target===this.W&&g.c1("ytp-ad-button",this.nW.element).click()};g.z($o3,xS);g.A=$o3.prototype;g.A.init=function(F,J,b){xS.prototype.init.call(this,F,J,b);F=J.durationMs;this.T=F==null||F===0?0:F+this.C.getProgressState().current*1E3;if(J.text)var I=J.text.templatedAdText;else J.staticMessage&&(I=J.staticMessage);this.messageText.init(bA("ad-text"),I,b);this.messageText.Az(this.U.element);this.Z.show(100);this.show()}; g.A.clear=function(){this.hide()}; g.A.hide=function(){Cn4(this,!1);xS.prototype.hide.call(this);this.U.hide();this.messageText.hide();tr(this)}; g.A.show=function(){Cn4(this,!0);xS.prototype.show.call(this);nr(this);this.U.show();this.messageText.show()}; g.A.Cj=function(){this.hide()}; g.A.Nh=function(){if(this.C!=null){var F=this.C.getProgressState();F!=null&&F.current!=null&&(F=1E3*F.current,!this.eE&&F>=this.T?(this.Z.hide(),this.eE=!0):this.messageText&&this.messageText.isTemplated()&&(F=Math.max(0,Math.ceil((this.T-F)/1E3)),F!==this.W&&(Uj(this.messageText,{TIME_REMAINING:String(F)}),this.W=F)))}};g.z(Xwz,a4);g.A=Xwz.prototype; g.A.init=function(F,J,b){a4.prototype.init.call(this,F,J,{});J.image&&J.image.thumbnail?J.headline?J.description?J.actionButton&&g.O(J.actionButton,g.TX)?(this.T.init(bA("ad-image"),J.image,b),this.U.init(bA("ad-text"),J.headline,b),this.Z.init(bA("ad-text"),J.description,b),F=["ytp-ad-underlay-action-button"],this.api.J().S("use_blue_buttons_for_desktop_player_underlay")&&F.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new Pi(this.api,this.layoutId,this.interactionLoggingClientData,this.vN, F),J.backgroundColor&&g.aN(this.element,"background-color",g.$y(J.backgroundColor)),g.k(this,this.actionButton),this.actionButton.Az(this.W),this.actionButton.init(bA("button"),g.O(J.actionButton,g.TX),b),J=g.eB(this.api.J().experiments,"player_underlay_video_width_fraction"),this.api.J().S("place_shrunken_video_on_left_of_player")?(b=this.C,g.Mr(b,"ytp-ad-underlay-left-container"),g.uG(b,"ytp-ad-underlay-right-container"),g.aN(this.C,"margin-left",Math.round((J+.02)*100)+"%")):(b=this.C,g.Mr(b,"ytp-ad-underlay-right-container"), g.uG(b,"ytp-ad-underlay-left-container")),g.aN(this.C,"width",Math.round((1-J-.04)*100)+"%"),this.api.cz()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.T4.bind(this)),this.api.addEventListener("resize",this.Un.bind(this))):g.Td(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.Td(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.Td(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.Td(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.A.show=function(){Q$C(!0);this.actionButton&&this.actionButton.show();a4.prototype.show.call(this)}; g.A.hide=function(){Q$C(!1);this.actionButton&&this.actionButton.hide();a4.prototype.hide.call(this)}; g.A.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.T4.bind(this));this.api.removeEventListener("resize",this.Un.bind(this));this.hide()}; g.A.onClick=function(F){a4.prototype.onClick.call(this,F);this.actionButton&&g.uB(this.actionButton.element,F.target)&&this.api.pauseVideo()}; g.A.T4=function(F){F==="transitioning"?(this.C.classList.remove("ytp-ad-underlay-clickable"),this.show()):F==="visible"?this.C.classList.add("ytp-ad-underlay-clickable"):F==="hidden"&&(this.hide(),this.C.classList.remove("ytp-ad-underlay-clickable"))}; g.A.Un=function(F){F.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):F.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.aN(this.U.element,"font-size",F.width/40+"px")};g.z(Eg,a4); Eg.prototype.init=function(F,J,b){a4.prototype.init.call(this,F,J,b);J.toggledLoggingParams&&(this.toggledLoggingParams=J.toggledLoggingParams);J.answer&&g.O(J.answer,g.TX)?(F=new Pi(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),F.Az(this.answer),F.init(bA("ytp-ad-survey-answer-button"),g.O(J.answer,g.TX),b),F.show()):J.answer&&g.O(J.answer,lj)&&(this.C=new XX(this.api,this.layoutId,this.interactionLoggingClientData,this.vN, ["ytp-ad-survey-answer-toggle-button"]),this.C.Az(this.answer),g.k(this,this.C),this.C.init(bA("survey-answer-button"),g.O(J.answer,lj),b));this.show()}; Eg.prototype.jj=function(F){this.layoutId?oi(this.vN,F,this.layoutId,this.macros):g.Td(new g.hC("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))}; Eg.prototype.onClick=function(F){a4.prototype.onClick.call(this,F);if(this.api.J().S("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; Eg.prototype.clear=function(){this.hide()};g.z(Rjz,a4);Rjz.prototype.init=function(F,J,b){a4.prototype.init.call(this,F,J,b);J.answer&&g.O(J.answer,lj)&&(this.button=new XX(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.Az(this.C),this.button.init(bA("survey-none-of-the-above-button"),g.O(J.answer,lj),b));this.show()};g.z(jU,Pi);jU.prototype.init=function(F,J,b){Pi.prototype.init.call(this,F,J,b);F=!1;J.text&&(J=g.Kr(J.text),F=!g.d5(J));F||g.rQ(Error("No submit text was present in the renderer."))}; jU.prototype.onClick=function(F){this.publish("l");Pi.prototype.onClick.call(this,F)};g.z(G7,a4); G7.prototype.init=function(F,J,b){a4.prototype.init.call(this,F,J,b);if(F=J.skipOrPreviewRenderer)g.O(F,IS)?(F=g.O(F,IS),b=new gJ(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,this.Z,!0),b.Az(this.skipOrPreview),b.init(bA("skip-button"),F,this.macros),g.k(this,b),this.C=b):g.O(F,BF)&&(F=g.O(F,BF),b=new Lr(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,this.Z,!1),b.Az(this.skipOrPreview),b.init(bA("ad-preview"),F,this.macros),FY(b),g.k(this,b),this.C=b);this.C== null&&g.Td(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(J)));J.submitButton&&(F=J.submitButton,g.O(F,g.TX)&&(F=g.O(F,g.TX),b=new jU(this.api,this.layoutId,this.interactionLoggingClientData,this.vN),b.Az(this.submitButton),b.init(bA("survey-submit"),F,this.macros),g.k(this,b),this.U=b));F=this.api.S("disable_ad_preview_for_instream_ads");if(b=J.adBadgeRenderer){b=g.O(b,lHb);var I=new ym(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,!0, F,!0);I.Az(this.T);I.init(bA("simple-ad-badge"),b,this.macros);this.adBadge=I.element;g.k(this,I)}if(b=J.adDurationRemaining)b=g.O(b,gLk),I=new WL(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,this.Z,void 0,F),I.Az(this.T),I.init(bA("ad-duration-remaining"),b,this.macros),g.k(this,I);(J=J.adInfoRenderer)&&g.O(J,PF)&&(b=new hr(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,this.element,void 0,F),g.k(this,b),F&&this.adBadge!==void 0?this.T.insertBefore(b.element, this.adBadge.nextSibling):b.Az(this.T),b.init(bA("ad-info-hover-text-button"),g.O(J,PF),this.macros));this.show()}; G7.prototype.clear=function(){this.hide()};g.z(Va,a4);Va.prototype.init=function(F,J,b){a4.prototype.init.call(this,F,J,b);hj3(this)}; Va.prototype.show=function(){this.T=Date.now();a4.prototype.show.call(this)}; Va.prototype.H3=function(){};g.z(c4z,Va);g.A=c4z.prototype;g.A.init=function(F,J,b){var I=this;Va.prototype.init.call(this,F,J,b);J.questionText&&DoC(this,J.questionText);J.answers&&J.answers.forEach(function(u,w){g.O(u,zr)&&kWa(I,g.O(u,zr),b,w)}); this.W=new Set(this.U.map(function(u){return u.C.C})); (F=J.noneOfTheAbove)&&(F=g.O(F,yee))&&Uo4(this,F,b);J.surveyAdQuestionCommon&&oHa(this,J.surveyAdQuestionCommon);J.submitEndpoints&&(this.submitEndpoints=J.submitEndpoints);this.B(this.element,"change",this.onChange);this.show()}; g.A.H3=function(){xoo(this,!1);this.Z.U.subscribe("l",this.reG,this)}; g.A.onChange=function(F){F.target===this.noneOfTheAbove.button.C?nHk(this):this.W.has(F.target)&&(this.noneOfTheAbove.button.toggleButton(!1),xoo(this,!0))}; g.A.reG=function(){var F=[],J=this.U.reduce(function(u,w,M){var q=w.toggledLoggingParams;w.C&&w.C.isToggled()&&q&&(u.push(q),F.push(M));return u},[]).join("&"),b=this.submitEndpoints.map(function(u){if(!u.loggingUrls)return u; u=g.rl(u);u.loggingUrls=u.loggingUrls.map(function(w){w.baseUrl&&(w.baseUrl=oc(w.baseUrl,J));return w}); return u}); if(b){b=g.N(b);for(var I=b.next();!I.done;I=b.next())I=I.value,this.layoutId?oi(this.vN,I,this.layoutId,this.macros):g.Td(Error("Missing layoutId for multi_select_question."))}this.api.J().S("supports_multi_step_on_desktop")&&this.eE(F)}; g.A.clear=function(){this.api.J().S("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.z(Pn,Va);Pn.prototype.init=function(F,J,b){var I=this;Va.prototype.init.call(this,F,J,b);J.questionText&&DoC(this,J.questionText);J.answers&&J.answers.forEach(function(u,w){g.O(u,zr)&&kWa(I,g.O(u,zr),b,w)}); J.surveyAdQuestionCommon?oHa(this,J.surveyAdQuestionCommon):g.Td(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(J)));this.show()}; Pn.prototype.clear=function(){this.api.J().S("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.z(Bn,a4);Bn.prototype.init=function(F,J,b){var I=this;a4.prototype.init.call(this,F,J,b);if(this.api.J().S("supports_multi_step_on_desktop")){var u;this.conditioningRules=(u=J.conditioningRules)!=null?u:[];var w;this.U=(w=J.questions)!=null?w:[];var M;((M=J.questions)==null?0:M.length)&&Lmv(this,0)}else(J.questions||[]).forEach(function(q){g.O(q,GX)?Zyo(I,g.O(q,GX),b):g.O(q,j5)&&Hyz(I,g.O(q,j5),b)}); this.show()}; Bn.prototype.clear=function(){this.api.J().S("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; Bn.prototype.Z=function(F){var J=this;if(this.api.J().S("supports_multi_step_on_desktop")){var b;if((b=this.conditioningRules)==null?0:b.length){var I;if(F.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(u){return u.questionIndex===J.C})==null)g.Td(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(u){if(u.questionIndex===J.C)switch(u.condition){case "CONDITION_ALL_OF":var w;if((w=u.answerIndices)==null?0:w.every(function(q){return F.includes(q)}))I=u.nextQuestionIndex; break;case "CONDITION_ANY_OF":var M;if((M=u.answerIndices)==null?0:M.some(function(q){return F.includes(q)}))I=u.nextQuestionIndex; break;default:g.Td(Error("Expected specified condition in survey conditioning rules."))}}),I!=null)Lmv(this,I); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.Td(Error("No conditioning rules, yet survey is multi step. Expected questions.length to be 1.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}};g.z(T7,a4); T7.prototype.init=function(F,J,b){var I=this;a4.prototype.init.call(this,F,J,b);F=J.timeoutSeconds||0;if(typeof F!=="number"||F<0)g.Td(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+F));else if(J.timeoutCommands)if(J.text)if(J.ctaButton&&g.O(J.ctaButton,g.TX))if(J.brandImage)if(J.backgroundImage&&g.O(J.backgroundImage,rc)&&g.O(J.backgroundImage,rc).landscape){this.layoutId||g.Td(Error("Missing layoutId for survey interstitial."));F3_(this.interstitial,g.O(J.backgroundImage, rc).landscape);F3_(this.logoImage,J.brandImage);g.wK(this.text,g.Kr(J.text));var u=["ytp-ad-survey-interstitial-action-button"];u.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new Pi(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,u);g.k(this,this.actionButton);this.actionButton.Az(this.U);this.actionButton.init(bA("button"),g.O(J.ctaButton,g.TX),b);this.actionButton.show();this.C=new zg(this.api,F*1E3);this.C.subscribe("g",function(){I.transition.hide()}); g.k(this,this.C);this.B(this.element,"click",function(w){var M=w.target===I.interstitial;w=I.actionButton.element.contains(w.target);if(M||w)if(I.transition.hide(),M)I.api.onAdUxClicked(I.componentType,I.layoutId)}); this.transition.show(100)}else g.Td(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.Td(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.Td(Error("SurveyTextInterstitialRenderer has no button."));else g.Td(Error("SurveyTextInterstitialRenderer has no text."));else g.Td(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; T7.prototype.clear=function(){this.hide()}; T7.prototype.show=function(){Jmk(!0);a4.prototype.show.call(this)}; T7.prototype.hide=function(){Jmk(!1);a4.prototype.hide.call(this)};g.z(r6,xS);g.A=r6.prototype; g.A.init=function(F,J){xS.prototype.init.call(this,F,J,{});if(J.durationMilliseconds){if(J.durationMilliseconds<0){g.Td(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+J.durationMilliseconds));return}this.U=J.durationMilliseconds}else this.U=this.C.YO();var b;if((b=J.previewText)==null||!b.text||g.d5(J.previewText.text))g.Td(Error("No text is returned for AdPreview."));else{this.W=J.previewText;J.previewText.isTemplated||g.wK(this.T,J.previewText.text);var I; if(((I=this.api.getVideoData(1))==null?0:I.Px)&&J.previewImage){var u,w;(F=((w=EH(((u=J.previewImage)==null?void 0:u.sources)||[],52,!1))==null?void 0:w.url)||"")&&F.length?(this.previewImage=new g.vi({X:"img",K:"ytp-preview-ad__image",L:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",F),g.k(this,this.previewImage),this.previewImage.Az(this.element)):g.Td(Error("Failed to get imageUrl in AdPreview."))}else this.T.classList.add("ytp-preview-ad__text--padding--wide")}}; g.A.clear=function(){this.hide()}; g.A.hide=function(){tr(this);xS.prototype.hide.call(this)}; g.A.show=function(){nr(this);xS.prototype.show.call(this)}; g.A.Cj=function(){this.hide()}; g.A.Nh=function(){if(this.C){var F=this.C.getProgressState();if(F!=null&&F.current)if(F=1E3*F.current,F>=this.U)this.transition.hide();else{var J;if((J=this.W)==null?0:J.isTemplated)if(J=Math.max(0,Math.ceil((this.U-F)/1E3)),J!==this.Z){var b,I;(F=(b=this.W)==null?void 0:(I=b.text)==null?void 0:I.replace("{TIME_REMAINING}",String(J)))&&g.wK(this.T,F);this.Z=J}}}};g.z(SU,a4); SU.prototype.init=function(F,J){a4.prototype.init.call(this,F,J,{});var b,I;if((F=((I=EH(((b=J.image)==null?void 0:b.sources)||[],bPo(J),!0))==null?void 0:I.url)||"")&&F.length){b=this.RI("ytp-ad-avatar");b.src=F;var u,w;if(I=(u=J.interaction)==null?void 0:(w=u.accessibility)==null?void 0:w.label)b.alt=I;switch(J.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(J.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.Td(Error("Failed to get imageUrl in AdAvatar."))}; SU.prototype.clear=function(){this.hide()}; SU.prototype.onClick=function(F){a4.prototype.onClick.call(this,F)};g.z(sg,a4); sg.prototype.init=function(F,J){a4.prototype.init.call(this,F,J,{});var b;F=(b=J.label)==null?void 0:b.content;if((b=F!=null&&!g.d5(F))||J.iconImage){b&&(this.buttonText=new g.vi({X:"span",K:"ytp-ad-button-vm__text",sQ:F}),g.k(this,this.buttonText),this.buttonText.Az(this.element));var I,u,w=((I=J.interaction)==null?0:(u=I.accessibility)==null?0:u.label)||b?F:"";w&&hy(this.element,w+" This link opens in new tab");OY(this.element);if(J.iconImage){I=void 0;if(J.iconImage){a:{u=J.iconImage;if(u.sources)for(u= g.N(u.sources),F=u.next();!F.done;F=u.next())if(F=F.value,w=void 0,(w=F.clientResource)==null?0:w.imageName){u=F;break a}u=void 0}if(u){var M;I={iconType:(M=u.clientResource)==null?void 0:M.imageName}}}M=Vr(I,!1,this.U);M!=null&&(this.buttonIcon=new g.vi({X:"span",K:"ytp-ad-button-vm__icon",j:[M]}),g.k(this,this.buttonIcon),J.iconLeading?(bB(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):b?(this.buttonIcon.Az(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.Az(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(J.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.C?"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(J.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.rQ(Error("AdButton does not have label or an icon."))}; sg.prototype.clear=function(){this.hide()}; sg.prototype.onClick=function(F){a4.prototype.onClick.call(this,F)};g.z(I9C,xS);g.A=I9C.prototype; g.A.init=function(F,J){xS.prototype.init.call(this,F,J,{});this.api.J().S("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.RI("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"),bB(this.RI("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(F=g.O(J.avatar,Og)){var b=J.headline;if(b){var I=J.description;if(I){var u=g.O(J.button,h7);u?(this.adAvatar.init(bA("ad-avatar"),F),this.headline.init(bA("ad-simple-attributed-string"),new EV(b)),this.description.init(bA("ad-simple-attributed-string"),new EV(I)),b.content&&b.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"), this.adButton.init(bA("ad-button"),u),this.startMilliseconds=J.startMs||0,this.api.cz()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.e4.bind(this)),nr(this)):g.Td(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.Td(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.Td(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.Td(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.A.Nh=function(){if(this.C){var F=this.C.getProgressState();F&&F.current&&1E3*F.current>=this.startMilliseconds&&(tr(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.A.Cj=function(){this.clear()}; g.A.onClick=function(F){this.api.pauseVideo();xS.prototype.onClick.call(this,F)}; g.A.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.e4.bind(this))}; g.A.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();xS.prototype.show.call(this)}; g.A.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();xS.prototype.hide.call(this)}; g.A.e4=function(F){F==="hidden"?this.show():this.hide()};g.z(Yv,a4);g.A=Yv.prototype; g.A.init=function(F,J){a4.prototype.init.call(this,F,J,{});if(!J.label||g.d5(J.label))g.Td(Error("No label is returned for SkipAdButton."));else if(g.wK(this.Z,J.label),F=Vr({iconType:"SKIP_NEXT_NEW"}),F==null)g.Td(Error("Unable to retrieve icon for SkipAdButton"));else if(this.T=new g.vi({X:"span",K:"ytp-skip-ad-button__icon",j:[F]}),g.k(this,this.T),this.T.Az(this.element),this.api.J().experiments.pW("enable_skip_to_next_messaging")&&(J=g.Zi(J.targetId)))this.U=!0,this.element.setAttribute("data-tooltip-target-id",J), this.element.setAttribute("data-tooltip-target-fixed","")}; g.A.onClick=function(F){F&&F.preventDefault();var J,b;HD7(F,{contentCpn:(b=(J=this.api.getVideoData(1))==null?void 0:J.clientPlaybackNonce)!=null?b:""})===0?this.api.jE("onAbnormalityDetected"):(a4.prototype.onClick.call(this,F),this.api.jE("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.A.clear=function(){this.C.reset();this.hide()}; g.A.hide=function(){a4.prototype.hide.call(this)}; g.A.show=function(){this.C.start();a4.prototype.show.call(this);this.U&&this.api.J().experiments.pW("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.z(uDk,xS);g.A=uDk.prototype; g.A.init=function(F,J){xS.prototype.init.call(this,F,J,{});F=g.O(J.preskipState,B5R);if(this.Z||!this.api.J().experiments.pW("disable_ad_preview_for_instream_ads")){if(!F){g.Td(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}var b;(b=this.U)==null||b.init(bA("preview-ad"),F);(b=this.U)!=null&&(b.transition.show(100),b.show())}(b=g.O(J.skippableState,reR))?(J.skipOffsetMilliseconds!=null?this.skipOffsetMilliseconds=J.skipOffsetMilliseconds:(g.rQ(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds= 5E3),this.T.init(bA("skip-button"),b),this.show()):g.Td(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.A.show=function(){nr(this);xS.prototype.show.call(this)}; g.A.hide=function(){!this.isSkippable&&this.U?this.U.hide():this.T&&this.T.hide();tr(this);xS.prototype.hide.call(this)}; g.A.clear=function(){var F;(F=this.U)==null||F.clear();this.T&&this.T.clear();tr(this);xS.prototype.hide.call(this)}; g.A.Cj=function(){this.hide()}; g.A.Nh=function(){if(1E3*this.C.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var F;(F=this.U)!=null&&F.transition.hide();(F=this.T)!=null&&(F.transition.show(),F.show())}};g.z($v,a4); $v.prototype.init=function(F,J){a4.prototype.init.call(this,F,J,{});if(J.label){var b;((b=J.label)==null?0:b.content)&&!g.d5(J.label.content)&&(this.linkText=new g.vi({X:"span",K:"ytp-visit-advertiser-link__text",sQ:J.label.content}),g.k(this,this.linkText),this.linkText.Az(this.element));var I,u;if((I=J.interaction)==null?0:(u=I.accessibility)==null?0:u.label)hy(this.element,J.interaction.accessibility.label+" This link opens in new tab");else{var w;((w=J.label)==null?0:w.content)&&!g.d5(J.label.content)&&hy(this.element, J.label.content+" This link opens in new tab")}OY(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.Td(Error("No label found in VisitAdvertiserLink."))}; $v.prototype.onClick=function(F){a4.prototype.onClick.call(this,F);this.api.onAdUxClicked(this.componentType,this.layoutId)}; $v.prototype.clear=function(){this.hide()};g.z(CR,a4); CR.prototype.init=function(F,J,b,I){a4.prototype.init.call(this,F,J,{});if(J.skipOrPreview){b=J.skipOrPreview;F=g.O(b,S1t);b=g.O(b,B5R);var u,w=this.api.J().S("clean_player_style_fix_on_web")&&((u=this.api.getVideoData())==null?void 0:u.isDaiEnabled());F?(this.rO=new uDk(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,this.U),g.k(this,this.rO),this.rO.Az(this.N),this.rO.init(bA("skip-ad"),F)):!b||this.api.J().experiments.pW("disable_ad_preview_for_instream_ads")&&!w||(this.Z=new r6(this.api, this.layoutId,this.interactionLoggingClientData,this.vN,this.U,1),g.k(this,this.Z),this.Z.Az(this.N),this.Z.init(bA("ad-preview"),b),u=this.Z,u.transition.show(100),u.show());if(u=g.O(J.skipOrPreview,S1t))var M=u.skipOffsetMilliseconds}J.playerAdCard&&(u=g.O(J.playerAdCard,T5U))&&(this.playerAdCard=new I9C(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,this.U),g.k(this,this.playerAdCard),this.playerAdCard.Az(this.WN),this.playerAdCard.init(bA("ad-avatar-lockup-card"),u));u=this.api.J().S("disable_ad_duration_remaining_for_instream_video_ads")|| J.adPodIndex!==void 0;J.adBadgeRenderer&&((F=g.O(J.adBadgeRenderer,oL))?(this.T=new Gg(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,u),g.k(this,this.T),this.T.Az(this.C),this.T.init(bA("ad-badge"),F)):g.Td(Error("AdBadgeViewModel is not found in player overlay layout.")));J.adPodIndex&&(F=g.O(J.adPodIndex,jbL))&&(this.adPodIndex=new Vm(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,g.O(J.skipOrPreview,S1t)===void 0),g.k(this,this.adPodIndex),this.adPodIndex.Az(this.C), this.adPodIndex.init(bA("ad-pod-index"),F));J.adInfoRenderer&&(F=g.O(J.adInfoRenderer,PF))&&(this.adInfoButton=new hr(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,this.element,void 0,u),g.k(this,this.adInfoButton),this.api.J().S("enable_ad_pod_index_autohide")&&this.T!==void 0?this.C.insertBefore(this.adInfoButton.element,this.T.element.nextSibling):this.adInfoButton.Az(this.C),this.adInfoButton.init(bA("ad-info-hover-text-button"),F,this.macros));var q;F=this.api.J().S("clean_player_style_fix_on_web")&& ((q=this.api.getVideoData())==null?void 0:q.isDaiEnabled());J.adDurationRemaining&&(!u||F)&&(q=g.O(J.adDurationRemaining,gLk))&&(this.adDurationRemaining=new WL(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,this.U,I.videoAdDurationSeconds,u),g.k(this,this.adDurationRemaining),u&&this.adPodIndex!==void 0?this.C.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adInfoButton!==void 0?u?this.C.insertBefore(this.adDurationRemaining.element,this.adInfoButton.element.nextSibling): this.C.insertBefore(this.adDurationRemaining.element,this.adInfoButton.element):this.adDurationRemaining.Az(this.C),this.adDurationRemaining.init(bA("ad-duration-remaining"),q,this.macros),u&&this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));J.visitAdvertiserLink&&(I=g.O(J.visitAdvertiserLink,Y1m))&&(this.visitAdvertiserLink=new $v(this.api,this.layoutId,this.interactionLoggingClientData,this.vN),g.k(this,this.visitAdvertiserLink),this.visitAdvertiserLink.Az(this.C), this.visitAdvertiserLink.init(bA("visit-advertiser-link"),I));J.adDisclosureBanner&&(J=g.O(J.adDisclosureBanner,ELb))&&(this.adDisclosureBanner=new PL(this.api,this.layoutId,this.interactionLoggingClientData,this.vN),g.k(this,this.adDisclosureBanner),this.adDisclosureBanner.Az(this.eE),this.adDisclosureBanner.init(bA("ad-disclosure-banner"),J));this.api.J().S("show_preskip_progress_bar_for_skippable_ads")&&(this.W=new rJ(this.api,this.U,M,u),g.k(this,this.W),g.Pp(this.api,this.W.element,4));this.show()}; CR.prototype.clear=function(){this.hide()};g.z(wJk,a4);g.A=wJk.prototype; g.A.init=function(F,J){a4.prototype.init.call(this,F,J,{});if(J!=null&&J.title)if(F=J.title)if(this.headline.init(bA("ad-simple-attributed-string"),new EV(F)),F=g.O(J.moreInfoButton,h7)){if(this.moreInfoButton.init(bA("ad-button"),F),J.descriptions)J.descriptions.length>0&&(F=J.descriptions[0])&&(this.C=new j1(this.api,this.layoutId,this.interactionLoggingClientData,this.vN),g.k(this,this.C),this.C.Az(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.C.init(bA("ad-simple-attributed-string"), new EV(F))),J.descriptions.length>1&&(J=J.descriptions[1])&&(this.U=new j1(this.api,this.layoutId,this.interactionLoggingClientData,this.vN),g.k(this,this.U),this.U.Az(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.U.init(bA("ad-simple-attributed-string"),new EV(J)))}else g.Td(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.Td(Error("No headline found in AdGridCardText."));else g.Td(Error("No headline found in AdGridCardText."))}; g.A.onClick=function(F){a4.prototype.onClick.call(this,F);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.A.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var F;(F=this.C)==null||F.clear();var J;(J=this.U)==null||J.clear()}; g.A.hide=function(){this.headline.hide();this.moreInfoButton.hide();var F;(F=this.C)==null||F.hide();var J;(J=this.U)==null||J.hide();a4.prototype.hide.call(this)}; g.A.show=function(){a4.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var F;(F=this.C)==null||F.show();var J;(J=this.U)==null||J.show()};g.z(Xm,a4);Xm.prototype.init=function(F,J){a4.prototype.init.call(this,F,J,{});if(J!=null&&J.gridCards)if(J.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.Td(Error("Only single column style is currently supported in AdGridCardCollection."));else for(F=g.N(J.gridCards),J=F.next();!J.done;J=F.next()){if(J=g.O(J.value,PWH)){var b=new wJk(this.api,this.layoutId,this.interactionLoggingClientData,this.vN);g.k(this,b);b.Az(this.element);b.init(bA("ad-grid-card-text"),J);this.C.push(b)}}else g.Td(Error("No grid cards found in AdGridCardCollection."))}; Xm.prototype.show=function(){for(var F=g.N(this.C),J=F.next();!J.done;J=F.next())J.value.show();a4.prototype.show.call(this)}; Xm.prototype.clear=function(){this.hide();for(var F=g.N(this.C),J=F.next();!J.done;J=F.next())J.value.clear()}; Xm.prototype.hide=function(){for(var F=g.N(this.C),J=F.next();!J.done;J=F.next())J.value.hide();a4.prototype.hide.call(this)};g.z(Qa,xS);g.A=Qa.prototype;g.A.init=function(F,J,b,I,u){u=u===void 0?0:u;xS.prototype.init.call(this,F,J,b,I);this.playerProgressOffsetMs=u;nr(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.uQ.bind(this));this.api.addEventListener("resize",this.Zo.bind(this));this.api.cz()?(this.U=!0,this.api.PQ(!0),this.show()):this.hide()}; g.A.Nh=function(){if(this.C){var F=this.C.getProgressState();F&&F.current&&!this.U&&1E3*F.current>=this.playerProgressOffsetMs&&(this.U=!0,this.api.PQ(!0),this.show())}}; g.A.Cj=function(){this.U&&this.api.PQ(!1);this.hide()}; g.A.clear=function(){this.api.PQ(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.uQ.bind(this));this.api.removeEventListener("resize",this.Zo.bind(this));tr(this);this.hide()}; g.A.hide=function(){MTk(!1);xS.prototype.hide.call(this)}; g.A.show=function(){MTk(!0);xS.prototype.show.call(this)};g.z(Am3,Qa);g.A=Am3.prototype; g.A.init=function(F,J,b,I){if(J!=null&&J.adGridCardCollection)if(J!=null&&J.adButton){var u=Number(J.playerProgressOffsetMs||"0");isNaN(u)?Qa.prototype.init.call(this,F,J,b,I):Qa.prototype.init.call(this,F,J,b,I,u);F=J.headline;b=g.O(J.adAvatar,Og);F&&b?(this.headline=new j1(this.api,this.layoutId,this.interactionLoggingClientData,this.vN),g.k(this,this.headline),this.headline.Az(this.RI("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(bA("ad-simple-attributed-string"),new EV(F)), this.adAvatar=new SU(this.api,this.layoutId,this.interactionLoggingClientData,this.vN),g.k(this,this.adAvatar),this.adAvatar.Az(this.RI("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(bA("ad-avatar"),b)):this.Z.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");F=g.O(J.adGridCardCollection,Vmz);this.adGridCardCollection.init(bA("ad-grid-card-collection"),F);J=g.O(J.adButton,h7);this.adButton.init(bA("ad-button"),J); this.hide()}else g.Td(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.Td(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.A.onClick=function(F){(this.adButton&&g.uB(this.adButton.element,F.target)||this.adAvatar&&g.uB(this.adAvatar.element,F.target))&&this.api.pauseVideo();Qa.prototype.onClick.call(this,F);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.A.Zo=function(){}; g.A.clear=function(){this.hide();var F;(F=this.headline)==null||F.clear();var J;(J=this.adAvatar)==null||J.clear();this.adGridCardCollection.clear();this.adButton.clear();Qa.prototype.clear.call(this)}; g.A.show=function(){var F;(F=this.headline)==null||F.show();var J;(J=this.adAvatar)==null||J.show();this.adGridCardCollection.show();this.adButton.show();Qa.prototype.show.call(this)}; g.A.hide=function(){var F;(F=this.headline)==null||F.hide();var J;(J=this.adAvatar)==null||J.hide();this.adGridCardCollection.hide();this.adButton.hide();Qa.prototype.hide.call(this)}; g.A.uQ=function(F){F==="transitioning"?(this.T.classList.remove("ytp-ad-underlay-clickable"),this.show()):F==="visible"?this.T.classList.add("ytp-ad-underlay-clickable"):F==="hidden"&&(this.hide(),this.T.classList.remove("ytp-ad-underlay-clickable"))};g.z(RL,a4); RL.prototype.init=function(F,J){a4.prototype.init.call(this,F,J,{});if(J.attributes===void 0)g.Td(Error("No attributes found in AdDetailsLineViewModel."));else if(J.style===void 0)g.Td(Error("No style found in AdDetailsLineViewModel."));else{F=g.N(J.attributes);for(var b=F.next();!b.done;b=F.next())if(b=b.value,b.text!==void 0){b=b.text;var I=J.style,u=new j1(this.api,this.layoutId,this.interactionLoggingClientData,this.vN);g.k(this,u);u.Az(this.element);a:switch(I){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":I="ytp-ad-details-line__text--style-responsive"; break a;default:I="ytp-ad-details-line__text--style-standard"}u.element.classList.add(I);u.init(bA("ad-simple-attributed-string"),new EV(b));this.C.push(u)}this.show()}}; RL.prototype.show=function(){this.C.forEach(function(F){F.show()}); a4.prototype.show.call(this)}; RL.prototype.clear=function(){this.hide()}; RL.prototype.hide=function(){this.C.forEach(function(F){F.hide()}); a4.prototype.hide.call(this)};g.z(DP,a4);DP.prototype.init=function(F,J){a4.prototype.init.call(this,F,J,{});var b,I;(F=((I=EH(((b=J.image)==null?void 0:b.sources)||[]))==null?void 0:I.url)||"")&&F.length?(b=this.RI("ytp-image-background-image"),g.aN(b,"backgroundImage","url("+F+")"),J.blurLevel!==void 0&&g.aN(b,"filter","blur("+J.blurLevel+"px)"),J.gradient!==void 0&&(J=new g.U({X:"div",Dv:["ytp-image-background--gradient-vertical"]}),g.k(this,J),J.Az(this.element)),this.show()):g.Td(Error("Failed to get imageUrl in ImageBackground."))}; DP.prototype.clear=function(){this.hide()};g.z(qBJ,xS);g.A=qBJ.prototype;g.A.init=function(F,J){xS.prototype.init.call(this,F,J,{});g.aN(this.T,"stroke-dasharray","0 "+this.U);this.show()}; g.A.clear=function(){this.hide()}; g.A.hide=function(){tr(this);xS.prototype.hide.call(this)}; g.A.show=function(){nr(this);xS.prototype.show.call(this)}; g.A.Cj=function(){this.hide()}; g.A.Nh=function(){if(this.C){var F=this.C.getProgressState();F!=null&&F.current!=null&&g.aN(this.T,"stroke-dasharray",F.current/F.seekableEnd*this.U+" "+this.U)}};g.z(kv,a4); kv.prototype.init=function(F,J){a4.prototype.init.call(this,F,J,{});if(a9Y(J)){this.adAvatar=new SU(this.api,this.layoutId,this.interactionLoggingClientData,this.vN);g.k(this,this.adAvatar);this.adAvatar.Az(this.RI("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(bA("ad-avatar"),g.O(J.adAvatar,Og));this.headline=new j1(this.api,this.layoutId,this.interactionLoggingClientData,this.vN);g.k(this,this.headline);this.headline.Az(this.RI("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(bA("ad-simple-attributed-string"),new EV(J.headline));if(F=g.O(J.adDetailsLine,d8e))this.detailsLine=new RL(this.api,this.layoutId,this.interactionLoggingClientData,this.vN),g.k(this,this.detailsLine),this.detailsLine.Az(this.RI("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(bA("ad-details-line"),F);this.adButton=new sg(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,!0);g.k(this,this.adButton); this.adButton.Az(this.RI("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(bA("ad-button"),g.O(J.adButton,h7));F=this.api.S("disable_ad_preview_for_instream_ads");this.adBadge=new Gg(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,F);g.k(this,this.adBadge);this.adBadge.Az(this.Z);this.adBadge.init(bA("ad-badge"),g.O(J.adBadge,oL));this.adInfoButton=new hr(this.api,this.layoutId,this.interactionLoggingClientData,this.vN,this.element, void 0,F);g.k(this,this.adInfoButton);this.adInfoButton.Az(this.Z);this.adInfoButton.init(bA("ad-info-hover-text-button"),g.O(J.adInfoRenderer,PF),this.macros);if(F=g.O(J.skipAdButton,reR))this.skipAdButton=new Yv(this.api,this.layoutId,this.interactionLoggingClientData,this.vN),g.k(this,this.skipAdButton),this.skipAdButton.Az(this.element),this.skipAdButton.init(bA("skip-button"),F);this.U=new N_(J.durationMilliseconds);g.k(this,this.U);if(F=g.O(J.countdownViewModel,sb5))this.C=new qBJ(this.api, this.layoutId,this.interactionLoggingClientData,this.vN,this.U),g.k(this,this.C),this.C.Az(this.RI("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.C.init(bA("timed-pie-countdown"),F);if(J=g.O(J.imageBackground,GV8))this.imageBackground=new DP(this.api,this.layoutId,this.interactionLoggingClientData,this.vN),g.k(this,this.imageBackground),this.imageBackground.Az(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"), this.imageBackground.init(bA("image-background"),J);this.show();this.element.focus()}}; kv.prototype.clear=function(){g.Ve(this.T);this.hide()}; kv.prototype.show=function(){v1o(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();a4.prototype.show.call(this)}; kv.prototype.hide=function(){v1o(!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.C&&this.C.hide();this.imageBackground&&this.imageBackground.hide();a4.prototype.hide.call(this)};var qqk="ad-attribution-bar ad-channel-thumbnail advertiser-name ad-preview ad-title skip-button visit-advertiser".split(" ").concat("shopping-companion action-companion image-companion ads-engagement-panel ads-engagement-panel-layout banner-image top-banner-image-text-icon-buttoned".split(" "));g.z(cn,R4); cn.prototype.Z=function(F){var J=F.id,b=F.content,I=b.componentType;if(!qqk.includes(I))switch(F.actionType){case 1:F=this.api;var u=this.vN,w=b.layoutId,M=b.interactionLoggingClientData,q=b instanceof Uh?b.HA:!1,v=b instanceof Uh||b instanceof iD?b.qm:!1;M=M===void 0?{}:M;q=q===void 0?!1:q;v=v===void 0?!1:v;switch(I){case "invideo-overlay":F=new VCC(F,w,M,u);break;case "player-overlay":F=new S1(F,w,M,u,new b_(F),v);break;case "player-overlay-layout":F=new CR(F,w,M,u,new b_(F));break;case "survey":F= new Bn(F,w,M,u);break;case "ad-action-interstitial":F=new Wmo(F,w,M,u,q,v);break;case "video-interstitial-buttoned-centered":F=new kv(F,w,M,u);break;case "survey-interstitial":F=new T7(F,w,M,u);break;case "ad-message":F=new $o3(F,w,M,u,new b_(F,1));break;case "player-underlay":F=new Xwz(F,w,M,u);break;case "display-underlay-text-grid-cards":F=new Am3(F,w,M,u,new b_(F));break;default:F=null}if(!F){g.rQ(Error("No UI component returned from ComponentFactory for type: "+I));break}g.Ea(this.U,J)?g.rQ(Error("Ad UI component already registered: "+ J)):this.U[J]=F;F.bind(b);b instanceof hs?this.T?this.T.append(F.bP):g.rQ(Error("Underlay view was not created but UnderlayRenderer was created")):this.D.append(F.bP);break;case 2:J=e_m(this,F);if(J==null)break;J.bind(b);break;case 3:b=e_m(this,F),b!=null&&(g.q8(b),g.Ea(this.U,J)?(b=this.U,J in b&&delete b[J]):g.rQ(Error("Ad UI component does not exist: "+J)))}}; cn.prototype.X_=function(){g.vk(Object.values(this.U));this.U={};R4.prototype.X_.call(this)};g.z(K3z,g.GN);g.A=K3z.prototype;g.A.create=function(){try{pJ_(this),this.load(),this.created=!0,pJ_(this)}catch(F){q_(F instanceof Error?F:String(F))}}; g.A.load=function(){try{ym4(this)}finally{Zu(fR(this.C).SB)&&this.player.d6("ad",1)}}; g.A.destroy=function(){var F=this.player.getVideoData(1);this.C.C.wM.mW(F&&F.clientPlaybackNonce||"");this.unload();this.created=!1}; g.A.unload=function(){g.GN.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(J){q_(J instanceof Error?J:String(J))}if(this.U!=null){var F=this.U;this.U=null;F.dispose()}this.T.reset()}; g.A.u7=function(){return!1}; g.A.getAdState=function(){return-1}; g.A.getOptions=function(){return Object.values(Axm)}; g.A.qJ=function(F,J){J=J===void 0?{}:J;switch(F){case "replaceUrlMacros":return F=J,F.url?(J=svC(this.player),Object.assign(J,F.sVN),F=g.TM(F.url,J)):F=null,F;case "onAboutThisAdPopupClosed":this.bS(J);break;case "executeCommand":F=J;F.command&&F.layoutId&&this.executeCommand(F);break;default:return null}}; g.A.F0=function(F){var J;return!((J=this.C.C.cV)==null||!J.get().F0(F))}; g.A.bS=function(F){F.isMuted&&vWa(fR(this.C).pD,fR(this.C).Rk,F.layoutId);this.fP&&this.fP.bS()}; g.A.executeCommand=function(F){fR(this.C).vN.executeCommand(F.command,F.layoutId)};g.RG("yt.player.Application.create",g.Np.create);g.RG("yt.player.Application.createAlternate",g.Np.create);Qg4(Gd(),MDU);var v4W=g.kC("ytcsi.tick");v4W&&v4W("pe");g.jn("ad",K3z);g.z(g.nR,g.R);g.nR.prototype.start=function(F,J,b){this.config={from:F,qP:J,duration:b,startTime:(0,g.jR)()};this.next()}; g.nR.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.nR.prototype.next=function(){if(this.config){var F=this.config,J=F.from,b=F.qP,I=F.duration;F=F.startTime;var u=(0,g.jR)()-F;F=this.C;I=UB_(F,u/I);if(I==0)F=F.V;else if(I==1)F=F.Y;else{u=v1(F.V,F.D,I);var w=v1(F.D,F.W,I);F=v1(F.W,F.Y,I);u=v1(u,w,I);w=v1(w,F,I);F=v1(u,w,I)}F=g.AD(F,0,1);this.callback(J+(b-J)*F);F<1&&this.delay.start()}};g.z(g.t7,g.U);g.A=g.t7.prototype;g.A.hasSuggestions=function(){return this.suggestionData.length>0}; g.A.iG=function(){this.U&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.A.show=function(){g.U.prototype.show.call(this);W3a(this)}; g.A.fC=function(){this.U&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.A.Up=function(){this.mO(this.api.mG().getPlayerSize())}; g.A.mO=function(F){var J=this.api.isEmbedsShortsMode()?.5625:16/9,b=this.api.Ua();F=F.width-(b?112:58);b=Math.ceil(F/(b?320:192));var I=(F-b*8)/b;J=Math.floor(I/J);for(var u=g.N(this.C),w=u.next();!w.done;w=u.next())w=w.value.RI("ytp-suggestion-image"),w.style.width=I+"px",w.style.height=J+"px";this.suggestions.element.style.height=J+"px";this.Z=I;this.Y=J;this.containerWidth=F;this.columns=b;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.ZP(this)}; g.A.onVideoDataChange=function(){var F=this.api.J(),J=this.api.getVideoData();this.W=J.T0?!1:F.Z;this.suggestionData=J.suggestions?g.qN(J.suggestions,function(b){return b&&!b.playlistId}):[]; E1z(this);J.T0?this.title.update({title:g.m8("Mais v\u00eddeos de $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:J.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"Mais Shorts":"Mais v\u00eddeos"})}; g.A.scrollTo=function(F){F=g.AD(F,this.containerWidth-this.suggestionData.length*(this.Z+8),0);this.V.start(this.scrollPosition,F,1E3);this.scrollPosition=F;g.ZP(this);W3a(this)};})(_yt_player);